diff options
author | Jim Ramsay <lack@gentoo.org> | 2007-06-07 19:35:32 +0000 |
---|---|---|
committer | Jim Ramsay <lack@gentoo.org> | 2007-06-07 19:35:32 +0000 |
commit | 93c5d62ddcc86bae5b84cc38a1c5bfa08b56a2c0 (patch) | |
tree | 27e68f9bf9ee83d149af5eac68b7bbf7b28ac936 /rox-base/rox-clib | |
download | rox-93c5d62ddcc86bae5b84cc38a1c5bfa08b56a2c0.tar.gz rox-93c5d62ddcc86bae5b84cc38a1c5bfa08b56a2c0.tar.bz2 rox-93c5d62ddcc86bae5b84cc38a1c5bfa08b56a2c0.zip |
Commiting initial overlay: multilib changes and preliminary zeroinstall support
svn path=/trunk/overlay/; revision=2
Diffstat (limited to 'rox-base/rox-clib')
-rw-r--r-- | rox-base/rox-clib/rox-clib-2.1.9-r1.ebuild | 60 | ||||
-rw-r--r-- | rox-base/rox-clib/rox-clib-2.1.9-r2.ebuild | 62 |
2 files changed, 122 insertions, 0 deletions
diff --git a/rox-base/rox-clib/rox-clib-2.1.9-r1.ebuild b/rox-base/rox-clib/rox-clib-2.1.9-r1.ebuild new file mode 100644 index 0000000..b7ff00c --- /dev/null +++ b/rox-base/rox-clib/rox-clib-2.1.9-r1.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/rox-base/rox-clib/rox-clib-2.1.9.ebuild,v 1.2 2007/02/09 22:02:10 opfer Exp $ + +inherit multilib + +MY_PN="ROX-CLib" +DESCRIPTION="A library for ROX applications written in C." +HOMEPAGE="http://rox.sourceforge.net/" +SRC_URI="http://www.kerofin.demon.co.uk/rox/${MY_PN}-${PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" + +RDEPEND=">=x11-libs/gtk+-2.0.1 + >=dev-libs/libxml2-2.4.0" + +DEPEND="$RDEPEND + >=dev-util/pkgconfig-0.20" + +S=${WORKDIR}/ROX-CLib +APPNAME=${MY_PN} + +src_compile() { + chmod 0755 AppRun + + # Most rox self-compiles have a 'read' call to wait for the user to + # press return if the compile fails. + # Find and remove this: + sed -i.bak -e 's/\<read WAIT\>/#read/' AppRun + + ./AppRun --compile || die "Could not make ROX-CLib. Sorry." + + # Restore the original AppRun + mv AppRun.bak AppRun +} + +src_install() { + local baselibdir="/usr/$(get_libdir)" + # clean up source instead of remove it! + ( cd src && make clean ) + + # remove silly .cvs files + find . -name '.cvs*' | xargs rm -f >/dev/null 2>&1 + dodoc ${baselibdir}/${APPNAME} + dodir ${baselibdir}/${APPNAME} + cp -r . ${D}${baselibdir}/${APPNAME} + ( + cd Help + dodoc Authors Changes ToDo COPYING README Versions + ) + + #finally link the html and latex dirs + #cd ${D}/usr/share/doc/${P} + #ln -s ${baselibdir}/${APPNAME}/Help/rox-clib.html rox-clib.html + #ln -s ${baselibdir}/${APPNAME}/Help/libdir.html libdir.html + #ln -s ${baselibdir}/${APPNAME}/Help/html html +} diff --git a/rox-base/rox-clib/rox-clib-2.1.9-r2.ebuild b/rox-base/rox-clib/rox-clib-2.1.9-r2.ebuild new file mode 100644 index 0000000..a021159 --- /dev/null +++ b/rox-base/rox-clib/rox-clib-2.1.9-r2.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/rox-base/rox-clib/rox-clib-2.1.9.ebuild,v 1.2 2007/02/09 22:02:10 opfer Exp $ + +inherit multilib 0install + +MY_PN="ROX-CLib" +DESCRIPTION="A library for ROX applications written in C." +HOMEPAGE="http://rox.sourceforge.net/" +SRC_URI="http://www.kerofin.demon.co.uk/rox/${MY_PN}-${PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="" +IUSE="" + +RDEPEND=">=x11-libs/gtk+-2.0.1 + >=dev-libs/libxml2-2.4.0" + +DEPEND="$RDEPEND + >=dev-util/pkgconfig-0.20" + +S=${WORKDIR}/ROX-CLib +APPNAME=${MY_PN} + +ZEROINSTALL_STRIP_REQUIRES=True + +src_compile() { + chmod 0755 AppRun + + # Most rox self-compiles have a 'read' call to wait for the user to + # press return if the compile fails. + # Find and remove this: + sed -i.bak -e 's/\<read WAIT\>/#read/' AppRun + + ./AppRun --compile || die "Could not make ROX-CLib. Sorry." + + # Restore the original AppRun + mv AppRun.bak AppRun +} + +src_install() { + local baselibdir="/usr/$(get_libdir)" + # clean up source instead of remove it! + ( cd src && make clean ) + # remove silly .cvs files + find . -name '.cvs*' | xargs rm -f >/dev/null 2>&1 + dodoc ${baselibdir}/${APPNAME} + dodir ${baselibdir}/${APPNAME} + cp -r . ${D}${baselibdir}/${APPNAME} + ( + cd Help + dodoc Authors Changes ToDo COPYING README Versions + ) + #finally link the html and latex dirs + #cd ${D}/usr/share/doc/${P} + #ln -s ${baselibdir}/${APPNAME}/Help/rox-clib.html rox-clib.html + #ln -s ${baselibdir}/${APPNAME}/Help/libdir.html libdir.html + #ln -s ${baselibdir}/${APPNAME}/Help/html html + + 0install_local_feed ${APPNAME}.xml "${baselibdir}/${APPNAME}" +} |