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-ada/asis-gpl/asis-gpl-3.4.6.2006.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-ada/asis-gpl/asis-gpl-3.4.6.2006.ebuild')
-rw-r--r-- | dev-ada/asis-gpl/asis-gpl-3.4.6.2006.ebuild | 113 |
1 files changed, 113 insertions, 0 deletions
diff --git a/dev-ada/asis-gpl/asis-gpl-3.4.6.2006.ebuild b/dev-ada/asis-gpl/asis-gpl-3.4.6.2006.ebuild new file mode 100644 index 000000000000..92d4d7c3bfe3 --- /dev/null +++ b/dev-ada/asis-gpl/asis-gpl-3.4.6.2006.ebuild @@ -0,0 +1,113 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit eutils flag-o-matic gnatbuild + +ACT_Ver=$(get_version_component_range 4) +Gnat_Name="gnat-gpl" + +DESCRIPTION="The Ada Semantic Interface Specification (tools tied to compiler)" +SRC_URI="mirror://gentoo/${PN}-${ACT_Ver}.tar.bz2" +HOMEPAGE="https://libre.adacore.com/" +LICENSE="GPL-2" + +KEYWORDS="~amd64 ~x86" + +IUSE="doc" +RDEPEND="=dev-lang/gnat-gpl-${PV}*" +DEPEND="${RDEPEND} + doc? ( virtual/latex-base + app-text/texi2html )" + +S="${WORKDIR}/asis-${ACT_Ver}" + +# it may be even better to force plain -O2 -pipe -ftracer here +replace-flags -O3 -O2 + +pkg_setup() { + currGnat=$(eselect gnat show | grep "gnat-" | awk '{ print $1 }') + if [[ "${currGnat}" != "${CTARGET}-${Gnat_Name}-${SLOT}" ]]; then + echo + eerror "The active gnat profile does not correspond to the selected" + eerror "version of asis! Please install the appropriate gnat (if you" + eerror "did not so yet) and run:" + eerror "eselect gnat set ${CTARGET}-${Gnat_Name}-${SLOT}" + eerror "env-update && source /etc/profile" + eerror "and then emerge =dev-ada/${P} again.." + echo + die + fi +} + +# we need to override the eclass defined src_unpack +src_unpack() { + unpack ${A} +} + +src_compile() { + # Build the shared library first, we need -fPIC here + gnatmake -Pasis_bld -XBLD=prod -XOPSYS=default_Unix -cargs ${CFLAGS} -fPIC \ + || die "building libasis.a failed" + gnatgcc -shared -Wl,-soname,libasis-${ACT_Ver}.so \ + -o obj/libasis-${ACT_Ver}.so obj/*.o -lc \ + || die "building libasis.so failed" + + # build tools + for fn in tools/*; do + pushd ${fn} + gnatmake -P${fn:6}.gpr || die "building ${fn:6} failed" + popd + done + + # common stuff is just docs in this case + if use doc; then + emake -C documentation all || die "Failed while compiling documentation" + fi +} + +src_install () { + # we need to adjust some vars defined in gnatbuild.eclass so that they use + # gnat-gpl instead of asis + LIBPATH=${LIBPATH/${PN}/${Gnat_Name}} + BINPATH=${BINPATH/${PN}/${Gnat_Name}} + DATAPATH=${DATAPATH/${PN}/${Gnat_Name}} + + # install the lib + mkdir -p "${D}${LIBPATH}"/adalib + chmod 0755 obj/libasis-${ACT_Ver}.so + cp obj/libasis-${ACT_Ver}.so "${D}${LIBPATH}"/adalib + insinto ${LIBPATH}/adalib + doins obj/*.ali lib/libasis.a + # make appropriate symlinks + pushd "${D}${LIBPATH}"/adalib + ln -s libasis-${ACT_Ver}.so libasis.so + popd + # sources + insinto ${LIBPATH}/adainclude + doins gnat/*.ad[sb] + doins asis/*.ad[sb] + + # tools + mkdir -p "${D}${BINPATH}" + for fn in tools/{asistant,gnat*}; do + cp ${fn}/${fn:6} "${D}${BINPATH}" + done + + # docs and examples + dodoc documentation/*.txt + dohtml documentation/*.html + # info's should go into gnat-gpl dirs + insinto ${DATAPATH}/info/ + doins documentation/*.info + + insinto /usr/share/doc/${PF} + doins -r documentation/*.pdf examples/ tutorial/ templates/ +} + +pkg_postinst() { + echo + elog "The ASIS is installed for the active gnat compiler at gnat's location." + elog "No further configuration is necessary. Enjoy." + echo +} |