From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1JBGau-0003kI-9p for garchives@archives.gentoo.org; Sat, 05 Jan 2008 21:30:16 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.2/8.14.0) with SMTP id m05LTR29001479; Sat, 5 Jan 2008 21:29:27 GMT Received: from smtp7.ihug.co.nz (smtp7.ihug.co.nz [203.109.136.107]) by robin.gentoo.org (8.14.2/8.14.0) with ESMTP id m05LTP0i001474 for ; Sat, 5 Jan 2008 21:29:26 GMT Received: from cust.filter3.content.ihug.net.nz (smtp.mailfilter3.ihug.co.nz) [10.80.50.3] by smtp7.ihug.co.nz with esmtp (Exim 4.60 #1 (Debian); Ihug conf #216) id 1JBGa3-0000LC-0F; Sun, 06 Jan 2008 10:29:23 +1300 Ironport-Content-Filter: send-to-smtp Received: from 203-173-169-221.dsl.dyn.ihug.co.nz (HELO [10.1.1.3]) ([203.173.169.221]) by smtp.mailfilter3.ihug.co.nz with ESMTP; 06 Jan 2008 10:29:21 +1300 Message-ID: <477FF6B9.6020708@gmail.com> Date: Sun, 06 Jan 2008 10:29:29 +1300 From: Alistair Bush User-Agent: Thunderbird 2.0.0.9 (X11/20071118) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-java@gentoo.org MIME-Version: 1.0 To: Fabian Groffen , gentoo-java@lists.gentoo.org Subject: Re: [gentoo-java] javatoolkit: new project layout References: <477F7510.7020505@gentoo.org> <20080105123126.GG7944@gentoo.org> In-Reply-To: <20080105123126.GG7944@gentoo.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Archives-Salt: eac5fe1f-eaf4-42aa-8984-0779b2fd2e18 X-Archives-Hash: 023561da1385d27fbe6070e1aefc0442 Fabian Groffen wrote: > On 06-01-2008 01:16:16 +1300, Alistair Bush wrote: >> This email is to garner some discussion on my new project layout for >> javatoolkit. > [snip] >> You can browse the repo here >> http://overlays.gentoo.org/proj/java/browser/projects/javatoolkit/branches/layout_refactor_branch > > While you're at it, would it be possible to make javatoolkit a little > bit easier for use prefix folks to maintain? We're happily running Java > in our prefixes so any cooperation here would be greatly appreciated. > > We currently apply this patch: > http://overlays.gentoo.org/proj/alt/browser/trunk/prefix-overlay/dev-java/javatoolkit/files/0.2.0-prefix.patch > (trac is a bit picky about it, so please look at the plain text version > of it) > > As you can see, Prefix is mainly concerned with shebangs (/usr/bin/env > python should work for everyone just fine), and with adding the offset > prefix in the installation paths. I understand that not every path can > be dropped, but it would be great if the make stuff could be simplified, > by e.g. having a variable for the prefix (defaulting to /usr) such that > we could just simply only patch that one, instead of every place, as in > the patch. > > Thanks, > > I believe (and hope) that the distutils src_install() will handle this. Basically setup.py has a --root="${D}" option as in here distutils_src_install() { # need this for python-2.5 + setuptools in cases where # a package uses distutils but does not install anything # in site-packages. (eg. dev-java/java-config-2.x) # - liquidx (14/08/2006) pylibdir="$(${python} -c 'from distutils.sysconfig import get_python_lib; print get_python_lib()')" [ -n "${pylibdir}" ] && dodir "${pylibdir}" if has_version ">=dev-lang/python-2.3"; then ${python} setup.py install --root=${D} --no-compile "$@" || die else ${python} setup.py install --root=${D} "$@" || die fi DDOCS="CHANGELOG KNOWN_BUGS MAINTAINERS PKG-INFO CONTRIBUTORS TODO NEWS" DDOCS="${DDOCS} Change* MANIFEST* README* AUTHORS" for doc in ${DDOCS}; do [ -s "$doc" ] && dodoc $doc done [ -n "${DOCS}" ] && dodoc ${DOCS} } Is this acceptable? -- gentoo-java@gentoo.org mailing list