diff options
author | Tavis Ormandy <taviso@gentoo.org> | 2003-04-15 00:10:23 +0000 |
---|---|---|
committer | Tavis Ormandy <taviso@gentoo.org> | 2003-04-15 00:10:23 +0000 |
commit | 53b59059a0b431672270d53887bfc36a4f06310a (patch) | |
tree | 91577355c343171688d96b2c981b821dedccabe0 /dev-libs/libcpml | |
parent | Updated packages, packages.build and virtuals (diff) | |
download | gentoo-2-53b59059a0b431672270d53887bfc36a4f06310a.tar.gz gentoo-2-53b59059a0b431672270d53887bfc36a4f06310a.tar.bz2 gentoo-2-53b59059a0b431672270d53887bfc36a4f06310a.zip |
Updating libcpml for compatability with other compaq alpha-tools.
Changed rpm extraction method.
Diffstat (limited to 'dev-libs/libcpml')
-rw-r--r-- | dev-libs/libcpml/ChangeLog | 8 | ||||
-rw-r--r-- | dev-libs/libcpml/libcpml-5.2.01-r2.ebuild | 60 |
2 files changed, 67 insertions, 1 deletions
diff --git a/dev-libs/libcpml/ChangeLog b/dev-libs/libcpml/ChangeLog index 1d31ad5ce3e7..9d816d6bed74 100644 --- a/dev-libs/libcpml/ChangeLog +++ b/dev-libs/libcpml/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-libs/libcpml # Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/libcpml/ChangeLog,v 1.6 2003/03/09 20:40:19 agriffis Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/libcpml/ChangeLog,v 1.7 2003/04/15 00:10:23 taviso Exp $ + +*libcpml-5.2.01-r2 (15 Apr 2003) + + 15 Apr 2003; Tavis Ormandy <taviso@gentoo.org> libcpml-5.2.01-r2.ebuild: + modified ebuild to install libcpml where dev/lang ccc expects, fully backward + compatible. Changed rpm2targz to agriffis improved method. marking ~alpha. 31 Dec 2002; Aron Griffis <agriffis@gentoo.org> libcpml-5.2.01-r1.ebuild: Fix typo in src_unpack diff --git a/dev-libs/libcpml/libcpml-5.2.01-r2.ebuild b/dev-libs/libcpml/libcpml-5.2.01-r2.ebuild new file mode 100644 index 000000000000..016ee5e89c1a --- /dev/null +++ b/dev-libs/libcpml/libcpml-5.2.01-r2.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/libcpml/libcpml-5.2.01-r2.ebuild,v 1.1 2003/04/15 00:10:23 taviso Exp $ + +S=${WORKDIR}/usr +SRC_URI="" +DESCRIPTION="Compaq Linux optimized math library for Alpha/Linux/GNU" +HOMEPAGE="http://h18000.www1.hp.com/math/index.html" +DEPEND="virtual/glibc + app-arch/rpm2targz " +RDEPEND="$DEPEND" +LICENSE="compaq-sdla" +SLOT="5.2.01" +KEYWORDS="-x86 -ppc -sparc ~alpha" +IUSE="ev6" + +src_unpack() { + local EV; use ev6 && EV=ev6 || EV=ev5 + At="cpml_${EV}-5.2.0-1.alpha.rpm" + if [ ! -f ${DISTDIR}/${At} ] ; then + die "Please download ${At} from ${HOMEPAGE}" + fi + +# rpm2targz ${DISTDIR}/${At} +# tar zxf cpml_${EV}-5.2.0-1.alpha.tar.gz + + # agriffis' improved method for rpm extraction + # + i=${DISTDIR}/${At} + dd ibs=`rpmoffset < ${i}` skip=1 if=$i 2>/dev/null \ + | gzip -dc | cpio -idmu 2>/dev/null \ + && find usr -type d -print0 | xargs -0 chmod a+rx + eend ${?} + assert "Failed to extract ${At%.rpm}.tar.gz" + +} + +src_compile () { + local EV; use ev6 && EV=ev6 || EV=ev5 + cd ${WORKDIR}/usr/lib/compaq/cpml-5.2.0 + ld -shared -o libcpml_${EV}.so -soname libcpml.so -whole-archive libcpml_${EV}.a -no-whole-archive -lots +} + +src_install () { + local EV; use ev6 && EV=ev6 || EV=ev5 + + mv ${WORKDIR}/usr ${D} + + dodir /usr/lib/ + dosym ./compaq/cpml-5.2.0/libcpml_${EV}.so /usr/lib/libcpml_${EV}.so + dosym ./compaq/cpml-5.2.0/libcpml_${EV}.a /usr/lib/libcpml_${EV}.a + + dodir /usr/share + mv ${D}/usr/doc ${D}/usr/share + prepalldocs + + dosym ./compaq/cpml-5.2.0/libcpml_${EV}.so /usr/lib/libcpml.so + dosym ./compaq/cpml-5.2.0/libcpml_${EV}.a /usr/lib/libcpml.a +} + |