summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTavis Ormandy <taviso@gentoo.org>2003-08-19 22:24:49 +0000
committerTavis Ormandy <taviso@gentoo.org>2003-08-19 22:24:49 +0000
commit919b206e39e9cd592f16520603b076a91fdab369 (patch)
tree77f885cd2b3b9b92741583e3382e4089d07c96e5 /dev-lang
parentinitial import - cfal (diff)
downloadgentoo-2-919b206e39e9cd592f16520603b076a91fdab369.tar.gz
gentoo-2-919b206e39e9cd592f16520603b076a91fdab369.tar.bz2
gentoo-2-919b206e39e9cd592f16520603b076a91fdab369.zip
initial import - cfal
Diffstat (limited to 'dev-lang')
-rw-r--r--dev-lang/cfal/ChangeLog10
-rw-r--r--dev-lang/cfal/Manifest5
-rw-r--r--dev-lang/cfal/cfal-1.2.0.4.ebuild130
-rw-r--r--dev-lang/cfal/files/digest-cfal-1.2.0.42
4 files changed, 145 insertions, 2 deletions
diff --git a/dev-lang/cfal/ChangeLog b/dev-lang/cfal/ChangeLog
new file mode 100644
index 000000000000..c8614def263d
--- /dev/null
+++ b/dev-lang/cfal/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for dev-lang/cfal
+# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/cfal/ChangeLog,v 1.1 2003/08/19 22:24:41 taviso Exp $
+
+*cfal-1.2.0.4 (19 Aug 2003)
+
+ 19 Aug 2003; Tavis Ormandy <taviso@gentoo.org> cfal-1.2.0.4.ebuild:
+ Initial import, ebuild contributed by Jesse Becker <jbecker@speakeasy.net> in
+ #25902
+
diff --git a/dev-lang/cfal/Manifest b/dev-lang/cfal/Manifest
index c711d848a168..a1e06fda4e23 100644
--- a/dev-lang/cfal/Manifest
+++ b/dev-lang/cfal/Manifest
@@ -1,2 +1,3 @@
-MD5 39279f98950713da817d930caa6375d0 cfal-1.2.0.4-r1.ebuild 6769
-MD5 459fdd606a760e1b9bb6ea8c50d58b7c files/digest-cfal-1.2.0.4-r1 144
+MD5 c9c5810575999d9caa79bc274835d5f0 cfal-1.2.0.4.ebuild 3879
+MD5 70b6a4f1493da91c2d3365c7375a076b ChangeLog 397
+MD5 459fdd606a760e1b9bb6ea8c50d58b7c files/digest-cfal-1.2.0.4 144
diff --git a/dev-lang/cfal/cfal-1.2.0.4.ebuild b/dev-lang/cfal/cfal-1.2.0.4.ebuild
new file mode 100644
index 000000000000..359f08997ba2
--- /dev/null
+++ b/dev-lang/cfal/cfal-1.2.0.4.ebuild
@@ -0,0 +1,130 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/cfal/cfal-1.2.0.4.ebuild,v 1.1 2003/08/19 22:24:41 taviso Exp $
+
+IUSE=""
+
+DESCRIPTION="Compaq's enhanced Fortran compiler for the ALPHA platform"
+HOMEPAGE="http://www.support.compaq.com/alpha-tools"
+
+# its okay to set a SRC_URI here, as the rpm is gpg encrypted
+# and user must agree to the license before getting access
+SRC_URI="ftp://ftp.compaq.com/pub/products/linuxdevtools/latest/crypt/cfal-1.2.0-4.alpha.rpm.crypt
+ ftp://ftp.compaq.com/pub/products/linuxdevtools/latest/cfalrtl-1.2.0-3.alpha.rpm"
+
+S=${WORKDIR}
+LICENSE="PLDSPv2"
+SLOT="0"
+# NOTE: ALPHA Only!
+KEYWORDS="-* ~alpha"
+
+RDEPEND="virtual/glibc
+ dev-libs/libots
+ >=dev-libs/libcpml-5.2.01-r2
+ dev-libs/libcxml"
+
+DEPEND="${RDEPEND}
+ sys-devel/gcc-config
+ app-arch/rpm2targz
+ >=sys-apps/sed-4
+ app-crypt/gnupg
+ >=app-shells/bash-2.05b"
+
+# These variables are not used by Portage, but is used by the functions
+# below.
+cfal_release="1.2.0-4"
+cfalrtl_release="1.2.0-3"
+ee_license_reg="http://h18000.www1.hp.com/products/software/alpha-tools/ee-license.html"
+
+src_unpack() {
+ # convert rpm into tar archive
+ local cfal_rpm="cfal-${cfal_release}.alpha.rpm"
+ local cfalrtl_rpm="cfalrtl-${cfalrtl_release}.alpha.rpm"
+
+ if [ -z ${CFAL_LICENSE_KEY} ]; then
+ eerror ""
+ eerror "You have not set the environment variable"
+ eerror "\$CFAL_LICENSE_KEY, this should be set to"
+ eerror "the password you were sent when you applied"
+ eerror "for your alpha-tools enthusiast/educational"
+ eerror "license."
+ eerror "If you do not have a license key, apply for one"
+ eerror "here ${ee_license_reg}"
+ eerror ""
+ die "no license key in \$CFAL_LICENSE_KEY"
+ fi
+
+ # :-NULL safeguards against bash bug.
+ einfo "Decrypting cfal distribution..."
+ echo ${CFAL_LICENSE_KEY} | gpg --quiet \
+ --homedir=${T} --no-permission-warning \
+ --no-mdc-warning \
+ --passphrase-fd 0 \
+ --output ${cfal_rpm} \
+ --decrypt ${DISTDIR}/${cfal_rpm}.crypt
+
+ ebegin "Unpacking cfal distribution..."
+ # This is the same as using rpm2targz then extracting 'cept that
+ # it's faster, less work, and less hard disk space. rpmoffset is
+ # provided by the rpm2targz package.
+ i=${cfal_rpm}
+ 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
+
+ i=${DISTDIR}/${cfalrtl_rpm}
+ 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 either ${cfal_rpm%.rpm}.tar.gz or ${cfalrtl_rpm%.rpm}.tar.gz"
+}
+
+src_compile() {
+ # shuffling around some directories
+ einfo "Fixing permissions..."
+ chown -R root:root ${S}/usr ${S}/lib
+ chmod 755 ${S}/lib
+
+ einfo "Fixing man pages..."
+ mkdir ${S}/usr/share
+ rm -rf ${S}/usr/man
+ mv ${S}/usr/lib/compaq/cfal-1.2.0/man ${S}/usr/share
+
+ mv ${S}/usr/doc/cfal-1.2.0/README ${S}/usr/doc/cfal-1.2.0/fort.man \
+ ${S}/usr/doc/cfal-1.2.0/decfortran90.hlp ${S}
+ rm -rf ${S}/usr/doc
+
+ # fix up lib paths - bug #15719, comment 6
+ einfo "Copying crtbegin/crtend from gcc..."
+ gcc_libs_path="`gcc-config --get-lib-path`"
+ if [ $? != 0 ] || [ ! -d "${gcc_libs_path}" ]; then
+ die "gcc-config returned an invalid library path (${gcc_libs_path})"
+ else
+ cp -f ${gcc_libs_path}/crt{begin,end}.o usr/lib/compaq/cfal
+ assert "Failed to copy crtbegin/crtend.o from ${gcc_libs_path}"
+ fi
+}
+
+src_install() {
+ # move files over
+ mv usr ${D} || die "cfal installation failed"
+
+ dodoc README fort.man decfortran90.hlp
+
+ dodir /lib
+ dosym /usr/lib/compaq/cfal/fpp /lib/fpp
+
+ prepalldocs
+ prepallman
+}
+
+pkg_postinst () {
+ einfo
+ einfo "cfal has been merged successfully, the EULA"
+ einfo "is available in"
+ einfo
+ einfo "/usr/share/doc/${PF}/README"
+ einfo
+}
diff --git a/dev-lang/cfal/files/digest-cfal-1.2.0.4 b/dev-lang/cfal/files/digest-cfal-1.2.0.4
new file mode 100644
index 000000000000..b39ba26899ad
--- /dev/null
+++ b/dev-lang/cfal/files/digest-cfal-1.2.0.4
@@ -0,0 +1,2 @@
+MD5 b30a4de37d566ecdeb6b127257afa1b5 cfal-1.2.0-4.alpha.rpm.crypt 5072902
+MD5 4e3f138c95082fce26f708c0b41b561d cfalrtl-1.2.0-3.alpha.rpm 980696