Portage is a package management system used by Gentoo Linux
# ChangeLog for dev-ada/asis-gpl
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/dev-ada/asis-gpl/ChangeLog,v 1.8 2008/05/17 19:19:06 george Exp $
17 May 2008; George Shapovalov
asis-gpl-3.4.6.2006.ebuild, asis-gpl-4.1.3.2007-r1.ebuild,
asis-gpl-4.1.3.2007-r2.ebuild:
updated DEPEND to use new latex virtual (#222501)
24 Jan 2008; George Shapovalov
asis-gpl-3.4.6.2006.ebuild, -asis-gpl-4.1.3.2007.ebuild,
asis-gpl-4.1.3.2007-r1.ebuild, asis-gpl-4.1.3.2007-r2.ebuild:
fixed quotation issues, removed stale ebuild
*asis-gpl-4.1.3.2007-r2 (14 Sep 2007)
14 Sep 2007;
another fix for #191090
*asis-gpl-4.1.3.2007-r1 (04 Sep 2007)
04 Sep 2007; George Shapovalov
asis-gpl-4.1.3.2007.ebuild, +asis-gpl-4.1.3.2007-r1.ebuild:
changing gcc to gnatgcc (asis needs it occasionally too). Fixes #191090,
thanks to Maxim Reznik for report
*asis-gpl-4.1.3.2007 (25 May 2007)
25 May 2007; George Shapovalov
added new version to match gnat-2007
25 Jan 2007; Marius Mauch
Replacing einfo with elog
*asis-gpl-3.4.6.2006 (26 Oct 2006)
26 Oct 2006; George Shapovalov
+asis-gpl-3.4.6.2006.ebuild:
added the ACT version of asis
DIST asis-gpl-2006.tar.bz2 1546623 RMD160 98dbf455cb45a9cd2352b01d624cae5153b9b881 SHA1 6bd02da83d8c1eede5dd9f038cbcf436201f4d70 SHA256 66825814792b1ddce9a6e3cc43c7426f9a563d9dbaa1b254884139b51279ebf4
DIST asis-gpl-2007-src.tgz 2268673 RMD160 571d43d4ef719fdfd9e75e82901cc527ff1622b2 SHA1 8edb881d08b03e9c423c708d485b3fbecba3a51a SHA256 6b8f5d3372bcfa83a49e991550f8e7ecb66d3fc59cac3d1cbc835eee32da189b
EBUILD asis-gpl-3.4.6.2006.ebuild 3147 RMD160 3b7fd8a04a0764583f7d78f51c6dddabc29406f3 SHA1 c00c01e7c79f42ed6cb621955e48a3273c4cbfe0 SHA256 98e845e11aee84c821591f0e918685ddf09b577dfefa7b67e365e2c9dfc8f695
EBUILD asis-gpl-4.1.3.2007-r1.ebuild 3436 RMD160 508d4d07691be4650ffdfc338ef4ac3dc1722e8c SHA1 69b44cad32b3d64fa9fe11a27352be8635da3258 SHA256 02da5036f2ddca5cbf174e92f340eff8f6962e7cf64e57367de70384359dedf6
EBUILD asis-gpl-4.1.3.2007-r2.ebuild 3481 RMD160 0677559faeadba7c91327c51b992d1d97f09251d SHA1 ce249f45c076ab456be2870241d50cc6f41c6554 SHA256 5ae74e54ed4eee3625be06b580105c3ce6149acbde5d48218e530bb55952ca4c
MISC ChangeLog 1464 RMD160 dc2eac305ba1bb2affbc508aa8f37634ce0e44e0 SHA1 7fddaa26162dda1d5e36cae8509d41c8b3ecc637 SHA256 3111fac573304977cf57d80908673ff5cb1ea62a26c3e1738f558dbb1e90ed19
MISC metadata.xml 637 RMD160 6df3899e69c0810ca05efcbcff060061a15a73ac SHA1 e1a007ec0c698ac861bea0644ade8d8b959beecb SHA256 308a2c7d3860cb42a0227e831e43c12da9c1e914696e3fc38013b31dc2896863
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ada/asis-gpl/asis-gpl-3.4.6.2006.ebuild,v 1.6 2008/05/17 19:19:06 george Exp $
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 --no-color 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
}
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ada/asis-gpl/asis-gpl-4.1.3.2007-r1.ebuild,v 1.3 2008/05/17 19:19:06 george Exp $
inherit eutils flag-o-matic gnatbuild
ACT_Ver=$(get_version_component_range 4)
Gnat_Name="gnat-gpl"
DESCRIPTION="The Ada Semantic Interface Specification (semantic analysis and tools tied to compiler)"
SRC_URI="mirror://gentoo/${PN}-${ACT_Ver}-src.tgz"
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}-src"
# it may be even better to force plain -O2 -pipe -ftracer here
replace-flags -O3 -O2
# 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}}
QA_EXECSTACK="${BINPATH:1}/*
${LIBPATH:1}/adalib/libasis-${ACT_Ver}.so"
pkg_setup() {
currGnat=$(eselect --no-color 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
# and change gcc to gnatgcc where appropriate
src_unpack() {
unpack ${A}
cd "${S}"
for fn in asis/a4g-gnat_int.adb gnat/snames.adb tools/tool_utils/asis_ul-common.adb; do
sed -i -e "s:\"gcc:\"gnatgcc:" ${fn}
done
}
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 () {
# 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
}
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ada/asis-gpl/asis-gpl-4.1.3.2007-r2.ebuild,v 1.3 2008/05/17 19:19:06 george Exp $
inherit eutils flag-o-matic gnatbuild
ACT_Ver=$(get_version_component_range 4)
Gnat_Name="gnat-gpl"
DESCRIPTION="The Ada Semantic Interface Specification (semantic analysis and tools tied to compiler)"
SRC_URI="mirror://gentoo/${PN}-${ACT_Ver}-src.tgz"
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}-src"
# it may be even better to force plain -O2 -pipe -ftracer here
replace-flags -O3 -O2
# 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}}
QA_EXECSTACK="${BINPATH:1}/*
${LIBPATH:1}/adalib/libasis-${ACT_Ver}.so"
pkg_setup() {
currGnat=$(eselect --no-color 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
# and change gcc to gnatgcc where appropriate
src_unpack() {
unpack ${A}
cd "${S}"
for fn in asis/a4g-gnat_int.adb gnat/snames.adb \
tools/tool_utils/asis_ul-common.adb \
tools/gnatmetric/metrics-compute.adb; do
sed -i -e "s:\"gcc:\"gnatgcc:" ${fn}
done
}
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 () {
# 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
}
Ada Semantic Interface Specification is a published international ISO
standard (ISO/IEC 15291:1999). ASIS represents a compiler independent
toolset consisting of a set of standard Ada interfaces which allow extraction
of information about user source programs. This information was previously
only available inside the Ada compilers themselves or exported in
non-standard, and thus non portable mechanisms.
This is the ACT version.