diff options
author | Markus Meier <maekke@gentoo.org> | 2008-08-24 09:40:34 +0000 |
---|---|---|
committer | Markus Meier <maekke@gentoo.org> | 2008-08-24 09:40:34 +0000 |
commit | 62ef8e8f8c21ce084e08b6b45e4c91b3391d3b35 (patch) | |
tree | 2938ad58e56ceada558682de35e2d469d120f24a /dev-lang/icon | |
parent | Version bump (diff) | |
download | gentoo-2-62ef8e8f8c21ce084e08b6b45e4c91b3391d3b35.tar.gz gentoo-2-62ef8e8f8c21ce084e08b6b45e4c91b3391d3b35.tar.bz2 gentoo-2-62ef8e8f8c21ce084e08b6b45e4c91b3391d3b35.zip |
fix multilib-strict (bug #209558) and prestripped files (bug #209560)
(Portage version: 2.2_rc8/cvs/Linux 2.6.27-rc4 i686)
Diffstat (limited to 'dev-lang/icon')
-rw-r--r-- | dev-lang/icon/ChangeLog | 7 | ||||
-rw-r--r-- | dev-lang/icon/icon-9.4.3-r3.ebuild | 103 |
2 files changed, 109 insertions, 1 deletions
diff --git a/dev-lang/icon/ChangeLog b/dev-lang/icon/ChangeLog index faec3e1be0d2..e327ada61be1 100644 --- a/dev-lang/icon/ChangeLog +++ b/dev-lang/icon/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-lang/icon # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/icon/ChangeLog,v 1.33 2008/08/23 05:23:51 jer Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/icon/ChangeLog,v 1.34 2008/08/24 09:40:34 maekke Exp $ + +*icon-9.4.3-r3 (24 Aug 2008) + + 24 Aug 2008; Markus Meier <maekke@gentoo.org> +icon-9.4.3-r3.ebuild: + fix multilib-strict (bug #209558) and prestripped files (bug #209560) 23 Aug 2008; Jeroen Roovers <jer@gentoo.org> metadata.xml: Add GLEP 56 USE flag descriptions. diff --git a/dev-lang/icon/icon-9.4.3-r3.ebuild b/dev-lang/icon/icon-9.4.3-r3.ebuild new file mode 100644 index 000000000000..d378565e5978 --- /dev/null +++ b/dev-lang/icon/icon-9.4.3-r3.ebuild @@ -0,0 +1,103 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/icon/icon-9.4.3-r3.ebuild,v 1.1 2008/08/24 09:40:34 maekke Exp $ + +inherit eutils multilib + +MY_PV=${PV//./} +SRC_URI="http://www.cs.arizona.edu/icon/ftp/packages/unix/icon.v${MY_PV}src.tgz" +HOMEPAGE="http://www.cs.arizona.edu/icon/" +DESCRIPTION="very high level language" + +LICENSE="as-is" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="X iplsrc" + +S="${WORKDIR}/icon.v${MY_PV}src" + +DEPEND="X? ( x11-proto/xextproto + x11-proto/xproto + x11-libs/libX11 + x11-libs/libXpm + x11-libs/libXt ) + sys-devel/gcc" + +src_unpack() { + unpack ${A} + + # Patch the tests so that they do not fail + # The following files in tests/standard are patched.. + # io.icn - change /etc/motd to /etc/gentoo-release + # io.std - change /etc/motd to /etc/gentoo-release + # kwds.std - add two lines for the two new added keywords + # nargs.std - a couple of functions picked up additional parameters + epatch "${FILESDIR}/tests-${MY_PV}.patch" + + # do not prestrip files + find "${S}"/src -name 'Makefile' | xargs sed -i -e "/strip/d" || die +} + +src_compile() { + # select the right compile target. Note there are many platforms + # available + local mytarget; + if [[ ${CHOST} == *-darwin* ]]; then + mytarget="macintosh" + else + mytarget="linux" + fi + + if use X; then + emake X-Configure name=${mytarget} -j1 || die + else + emake Configure name=${mytarget} -j1 || die + fi + + echo "#define MultiThread 1" >> src/h/define.h + echo "#define EventMon 1" >> src/h/define.h + echo "#define Eve 1" >> src/h/define.h + + emake -j1 || die "Make Failed" +} + +src_test() { + make Samples || die "Samples failed" + make Test || die "Test failed" +} + +src_install() { + dodir /usr + dodir /usr/bin + dodir /usr/$(get_libdir) + + make Install dest="${D}/usr/$(get_libdir)/icon" || die "Make install failed" + dosym /usr/$(get_libdir)/icon/bin/icont /usr/bin/icont + dosym /usr/$(get_libdir)/icon/bin/iconx /usr/bin/iconx + dosym /usr/$(get_libdir)/icon/bin/icon /usr/bin/icon + dosym /usr/$(get_libdir)/icon/bin/vib /usr/bin/vib + + cd "${S}/man/man1" + doman icont.1 + doman icon.1 + rm -rf "${D}"/usr/$(get_libdir)/icon/man + + cd "${S}/doc" + dodoc *.txt *.sed ../README + # dohtml ignores all anything except .html files, no use here + mkdir -p "${D}"/usr/share/doc/${PF}/html + cp -dpR *.htm *.gif *.jpg *.css "${D}"/usr/share/doc/${PF}/html + rm -rf "${D}"/usr/$(get_libdir)/icon/{doc,README} + + # optional Icon Programming Library + if use iplsrc; then + cd "${S}" + dodir /usr/$(get_libdir)/icon/ipl + rm ipl/BuildBin + rm ipl/BuildExe + rm ipl/CheckAll + rm ipl/Makefile + insinto /usr/$(get_libdir)/icon + doins -r ipl + fi +} |