From 11d6afa29daee7afb528c9b6bfcc140406cec19e Mon Sep 17 00:00:00 2001 From: David Leverton Date: Mon, 27 Apr 2009 22:16:47 +0100 Subject: [PATCH] Inform7 5Z71 Partially from-source ebuilds will follow at some point, but this will do for now. No added dep on git because as far as I can tell it isn't used unless the user configures it explicitly, and if you want to do that you can install it yourself. --- dev-lang/inform/Manifest | 4 ++ dev-lang/inform/inform-7.5z_p71.ebuild | 121 +++++++++++++++++++++++++++++++++ 2 files changed, 125 insertions(+) create mode 100644 dev-lang/inform/inform-7.5z_p71.ebuild diff --git a/dev-lang/inform/Manifest b/dev-lang/inform/Manifest index a72c16a..0c6128b 100644 --- a/dev-lang/inform/Manifest +++ b/dev-lang/inform/Manifest @@ -2,8 +2,12 @@ AUX glulx-statuswin.patch 2263 RMD160 45adb10652e33130632648837f4cb1c2aed13a83 S AUX inform7-5J39-paths.patch 778 RMD160 88297b0c456d3206f776ae83f8f24192d06b5f7b SHA1 80be29ac03bc87839fcbd4a2976e1431ba7da304 SHA256 9eead021e95bd965df6f69f21c940b565f9816af11f2fcd519e0ea79b6557052 EBUILD inform-7.5t_p18.ebuild 4216 RMD160 f2dba7831e74323bb801e884fbbc58b3e2865795 SHA1 f2b7ddedd53d473de1aa0266b75dba5b9d43e1e1 SHA256 988aa5e789c417aba61eb2484dbe22eb3697a4926893b55a04cfe91924863ece EBUILD inform-7.5u_p92-r2.ebuild 4249 RMD160 686fa44b6f22508e0d8da6b3a811a6f2994b0995 SHA1 e2c555ba85bddb3d32524ba74dc8da00b1ad8c19 SHA256 144b9b5daecd1aae678e61d75426577bfb56b31ff9c0d2d66baf03fac36a7d5a +EBUILD inform-7.5z_p71.ebuild 4237 RMD160 b5fa99939f14fbfb296cc25ce3340e4e693b120c SHA1 78d92a77bcc1a4b2640d047b419ba147f69d7c2e SHA256 d2458b5402981b564b5926186c3fecd5f39dfaa0ce7c571f2c922c6fe5271199 MISC metadata.xml 345 RMD160 7334f7182efbdc50efe436293c5a9fed6a8f5d70 SHA1 adebe1db6195e45d0672b56d071dc76a8e4018db SHA256 cec1e199e41849d774e309816144baf98de60422ff9c81539cec8238d60d90cf DIST I7_5U92_Linux_i386.tar.gz 7238203 RMD160 e9599505f9030f28275bde8d5a9045b06b79f35b SHA1 f85e983fd8d82a776ab91e05027867b8f8e31b9e SHA256 296a0719aff1b47039414aca84a046602ef949534da1cd496118ac672729114f DIST I7_5U92_Linux_all.tar.gz 17019723 RMD160 37e626568813981922522e71ebce95d99c26c1eb SHA1 87364dd9c066d5a6d93726482190595019e4fcd0 SHA256 3d9c585f841ab313e857a2779ba640667f64dc2975fdc8b0b85808ad5a1a2ea5 DIST I7_5T18_Linux_i386.tar.gz 7776160 RMD160 0a478fdaadac4019c0cb8d27e7d179d3d0f57d9d SHA1 a2db6cd55c30e6582d0a0e50ed633fc0bbfb9cd3 SHA256 6634fb9ee8802adbb30a821e319a4af40840270eda27dbe0964bf20a0577f8b7 DIST I7_5T18_Linux_all.tar.gz 16096813 RMD160 a5659d9aed7800e7e27d7088a4e4ac7e494919f4 SHA1 7c6edda8c5c4bf38ab0500a0dbd70617a75830f7 SHA256 a5617fc92281a84f84b03b9d7ff204945cf05be234f5f5d2b229698860079a68 +DIST I7_5Z71_Linux_x86_64.tar.gz 8819453 RMD160 3469d79530b2159263b3ef2eb59752e1b1614476 SHA1 45e7bf63b8946b67811620bd7065a9d7ffc48804 SHA256 a344eba468a03af913db40befa40c9fc74446153f83b0f54139c5283e89e1cec +DIST I7_5Z71_Linux_i386.tar.gz 8007406 RMD160 3588eded90bcd1c5a232f3c84244e79dab859525 SHA1 d5551133f3744e814954cdff4e55f0d5e603f2ab SHA256 218c9e1e441ae300941cee7afe9551de162eb671d56929eaca0ad413b911c96f +DIST I7_5Z71_Linux_all.tar.gz 20029831 RMD160 3637d06936a66f983c2d18de820c84ada0a1e6e0 SHA1 4a6690028b78251e65bae5c4f1e4be3af00d13d5 SHA256 818251f8765885a95c332a97f43e417651670d0ffead57783c3742cff217dff3 diff --git a/dev-lang/inform/inform-7.5z_p71.ebuild b/dev-lang/inform/inform-7.5z_p71.ebuild new file mode 100644 index 0000000..939712c --- /dev/null +++ b/dev-lang/inform/inform-7.5z_p71.ebuild @@ -0,0 +1,121 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +#EAPI=1 + +inherit eutils versionator + +MY_MAJOR=$(get_version_component_range 2) +MY_LETTER=$(get_version_component_range 3) +MY_MINOR=$(get_version_component_range 4) + +MY_LOWERS=abcdefghijklmnopqrstuvwxyz +MY_UPPERS=ABCDEFGHIJKLMNOPQRSTUVWXYZ +MY_INDEX=${MY_LOWERS%${MY_LETTER}*} +MY_UPPER=${MY_UPPERS:${#MY_INDEX}:1} + +MY_PV=${MY_MAJOR}${MY_UPPER}${MY_MINOR#p} +DESCRIPTION="Design system for interactive fiction" +HOMEPAGE="http://inform7.com/" +SRC_URI="amd64? ( http://inform7.com/download/content/${MY_PV}/I7_${MY_PV}_Linux_x86_64.tar.gz ) + x86? ( http://inform7.com/download/content/${MY_PV}/I7_${MY_PV}_Linux_i386.tar.gz ) + !amd64? ( !x86? ( http://inform7.com/download/content/${MY_PV}/I7_${MY_PV}_Linux_all.tar.gz ) )" + +# "Inform" for the core, "GPL-2" for the i7 user-interface script +LICENSE="Inform GPL-2" +SLOT="7" +#KEYWORDS="-* ~amd64 ~arm ~ppc ~s390 ~x86" +KEYWORDS="~amd64 ~x86" +IUSE="doc" + +RESTRICT="strip" + +DEPEND="" +# i7 is written in perl, and uses uuidgen from e2fsprogs +RDEPEND="dev-lang/perl + sys-fs/e2fsprogs + games-engines/glkfrotz + games-engines/glulxe" + # Not released yet, use bundled for now + #>=dev-lang/inform-6.32:6 + +S=${WORKDIR}/inform7-${MY_PV} + +src_unpack() { + unpack ${A} + cd "${S}" + + mkdir usr + cd usr + + case ${CHOST} in + # XXX if the arm team wants to keyword this, someone who knows + # how these things work should probably restrict this to + # compatible CHOSTS + arm*-*) MY_ARCH=armv5tel ;; + i?86-*) MY_ARCH=i386 ;; + # XXX does it work on ppc64? (statically linked, so doesn't + # need 32bit libs) + powerpc*-*) MY_ARCH=ppc ;; + s390-*) MY_ARCH=s390 ;; + s390x-*) MY_ARCH=s390x ;; + x86_64-*) MY_ARCH=x86_64 ;; + *) die "unsupported CHOST" + esac + + unpack ./../inform7-common_${MY_PV}_all.tar.gz + unpack ./../inform7-compilers_${MY_PV}_${MY_ARCH}.tar.gz + # We don't currently use anything from here, but a future version + # might include more interpreters. + unpack ./../inform7-interpreters_${MY_PV}_${MY_ARCH}.tar.gz + + epatch "${FILESDIR}"/inform7-5J39-paths.patch +} + +src_install() { + cp -pPR usr "${D}" || die "cp usr failed" + cd "${D}"/usr + + dodoc share/doc/inform7/README || die "dodoc README failed" + rm share/doc/inform7/README + docinto ChangeLogs + dodoc share/doc/inform7/ChangeLogs/*.txt || die "dodoc ChangeLogs failed" + rm share/doc/inform7/ChangeLogs/*.txt + rmdir share/doc/inform7/ChangeLogs + rm share/doc/inform7/INSTALL + rmdir share/doc/inform7 || die "rmdir doc/inform7 failed" + + # These seem to be useless with the CLI version. + rm share/inform7/Documentation/{,{map,scene}_icons}/*.png || die "rm *.png failed" + rm share/inform7/Documentation/*.gif || die "rm *.gif failed" + rmdir share/inform7/Documentation/{map,scene}_icons || die "rmdir icons failed" + + if use doc; then + mv share/inform7/Documentation share/doc/${PF}/html || die "mv Documentation failed" + dosym /usr/share/doc/${PF}/html /usr/share/inform7/Documentation || die "dosym Documentation failed" + else + rm -r share/inform7/Documentation || die "rm -r Documentation failed" + fi + + # Don't use the bundled interpreter binaries. We do, however, + # keep the bundled Inform 6 compiler, because it has some + # modifications to work with Inform 7-generated code (these will + # be released with Inform 6.32). + # + # The binaries that we do keep are unpacked into /usr/share with + # symlinks in /usr/libexec, which is silly; move them to libexec + # (there doesn't seem to be any need to recreate the symlinks + # going the other way: the i7 script accesses them from libexec). + # List the kept binaries explicitly (instead of using a wildcard) + # so that if a future version adds more, the rmdir will fail and + # alert the maintainer that changes (new dependencies etc) might + # be required. + rm libexec/* || die "rm libexec failed" + mv share/inform7/Compilers/{ni,cBlorb,inform-6.31-biplatform} libexec || die "mv Compilers failed" + rmdir share/inform7/Compilers || die "rmdir Compilers failed" + rm share/inform7/Interpreters/{dumb-frotz,dumb-glulxe,dumb-git} + rmdir share/inform7/Interpreters || die "rmdir Interpreters failed" + + mv man share/man || die "mv man failed" +} -- 2.11.4.GIT