diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-lang/icon/icon-9.5.0.ebuild | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-lang/icon/icon-9.5.0.ebuild')
-rw-r--r-- | dev-lang/icon/icon-9.5.0.ebuild | 104 |
1 files changed, 104 insertions, 0 deletions
diff --git a/dev-lang/icon/icon-9.5.0.ebuild b/dev-lang/icon/icon-9.5.0.ebuild new file mode 100644 index 000000000000..f8149886adb2 --- /dev/null +++ b/dev-lang/icon/icon-9.5.0.ebuild @@ -0,0 +1,104 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit eutils flag-o-matic multilib toolchain-funcs + +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="public-domain HPND" +SLOT="0" +KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" +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 sys-devel/gcc-apple )" + +src_prepare() { + epatch "${FILESDIR}"/${P}-flags.patch + + # do not prestrip files + find "${S}"/src -name 'Makefile' | xargs sed -i -e "/strip/d" || die +} + +src_configure() { + # 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 + + # sanitise the Makedefs file generated by Configure + sed -i \ + -e 's:-L/usr/X11R6/lib64::g' \ + -e 's:-L/usr/X11R6/lib::g' \ + -e 's:-I/usr/X11R6/include::g' \ + Makedefs || die "sed of Makedefs failed" + + append-flags $(test-flags -fno-strict-aliasing -fwrapv) +} + +src_compile() { + emake -j1 CC="$(tc-getCC)" CFLAGS="${CFLAGS}" +} + +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="${ED}/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 "${ED}"/usr/$(get_libdir)/icon/man + + cd "${S}/doc" + dodoc *.txt *.sed ../README + # dohtml ignores all anything except .html files, no use here + mkdir -p "${ED}"/usr/share/doc/${PF}/html + cp -dpR *.htm *.gif *.jpg *.css "${ED}"/usr/share/doc/${PF}/html + rm -rf "${ED}"/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 +} |