Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] force ebuild to ignore files during installation?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
der bastler
Apprentice
Apprentice


Joined: 13 Apr 2003
Posts: 231

PostPosted: Sun Sep 01, 2013 11:11 am    Post subject: [solved] force ebuild to ignore files during installation? Reply with quote

Recently I've created Python bindings for the timerfd system calls:

https://pypi.python.org/pypi/pytimerfd

The source distribution contains the following files:
  • timerfd.c: the source
  • README: some information on pytimerfd
  • COPYING: LGPL text
  • setup.py: the setup script
  • PKG-INFO: generated by setup.py for source distribution


Now I'm trying to get it into portage. I've created the following ebuild:
Code:
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=5
PYTHON_COMPAT=( python{2_7,3_2} )

inherit distutils-r1 linux-info

DESCRIPTION="Python bindings for the Linux timerfd_* syscalls"
HOMEPAGE="http://pypi.python.org/pypi/pytimerfd http://abelbeck.wordpress.com/"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"

LICENSE="LGPL"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""

DEPEND=""
RDEPEND=""

DOCS=( README )

CONFIG_CHECK="TIMERFD"
ERROR_TIMERFD="${PN} requires support for timerfd() system calls (TIMERFD), being enabled in 'General setup -> Configure standard kernel features (expert users)'."

pkg_setup() {
        linux-info_pkg_setup
}


My system is an amd64 machine and I've checked that my extension can be built for Python v2 and v3 (using compiler directives). Linux-info is used to check for timerfd support in the kernel.

It works so far, but the COPYING file of my tarball is copied to /usr and I don't know how to prevent my ebuild from doing this. Do I have to catch COPYING from being installed?
_________________
Tempus fugit.


Last edited by der bastler on Tue Sep 17, 2013 9:19 pm; edited 1 time in total
Back to top
View user's profile Send private message
der bastler
Apprentice
Apprentice


Joined: 13 Apr 2003
Posts: 231

PostPosted: Tue Sep 17, 2013 4:22 pm    Post subject: Reply with quote

Finally, I found the error.

I had declared the file COPYING as a data file in order to add it to the source distribution. This way it was pulled into /usr/.

I fixed this by creating a MANIFEST.in:
Code:
include COPYING

and building a new source distribution (pytimerfd 1.2 on pypi)

Now the ebuild works and will be submitted to bugzilla in a few minutes...
_________________
Tempus fugit.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum