forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev-ada/gnat-suite-bin: version bump tp 2019
Package-Manager: Portage-2.3.79, Repoman-2.3.16 Signed-off-by: Alfredo Tupone <[email protected]>
- Loading branch information
Showing
2 changed files
with
87 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
# Copyright 1999-2020 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI="7" | ||
|
||
MYP=gnat-gpl-${PV} | ||
DESCRIPTION="GNAT Ada suite" | ||
HOMEPAGE="http://libre.adacore.com/" | ||
# Extracted and repacked from gnat-community-2019-20190517-x86_64-linux-bin | ||
SRC_URI="https://dev.gentoo.org/~tupone/distfiles/${P}.txz" | ||
|
||
LICENSE="GPL-2 GPL-3" | ||
SLOT="${PV}" | ||
KEYWORDS="~amd64" | ||
IUSE="" | ||
|
||
DEPEND="" | ||
RDEPEND="${DEPEND} | ||
sys-devel/binutils | ||
sys-devel/gdb" | ||
|
||
PREFIX=/opt/${P} | ||
|
||
src_prepare() { | ||
default | ||
rm Makefile | ||
cd share/examples/gnat | ||
cat header.xml \ | ||
full_project/full.xml \ | ||
options/options.xml \ | ||
other_languages/cpp_main/cpp_main.xml \ | ||
other_languages/cpp_pragmas/cpp_pragmas.xml \ | ||
other_languages/import_from_c/import_from_c.xml \ | ||
plugins/plugins.xml \ | ||
stream_io/stream_io.xml \ | ||
simple_project/simple_project.xml \ | ||
starter/starter.xml \ | ||
xml_stream/xml_stream.xml \ | ||
containers/anagram/anagram.xml \ | ||
containers/genealogy/genealogy.xml \ | ||
containers/hash/hash.xml \ | ||
containers/library/library.xml \ | ||
containers/shapes/shapes.xml \ | ||
containers/spellcheck/spellcheck.xml \ | ||
containers/wordcount/wordcount.xml \ | ||
containers/wordfreq/wordfreq.xml \ | ||
oo_interfaces/oo_interfaces.xml \ | ||
oo_airline/oo_airline.xml \ | ||
altivec/altivec.xml \ | ||
footer.xml \ | ||
> gnat-examples.xml \ | ||
|| die | ||
sed -i \ | ||
-e "s:PREFIX:${PREFIX}:" \ | ||
gnat-examples.xml || die | ||
} | ||
|
||
src_install() { | ||
into ${PREFIX} | ||
dobin bin/* | ||
insinto ${PREFIX} | ||
doins -r etc include lib* share | ||
insinto ${PREFIX}/share/gps/plug-ins | ||
doins share/examples/gnat/gnat-examples.xml | ||
basever=8.3.1 | ||
machine=x86_64-pc-linux-gnu | ||
fperms 755 ${PREFIX}/libexec/gcc/${machine}/${basever}/cc1 | ||
fperms 755 ${PREFIX}/libexec/gcc/${machine}/${basever}/cc1plus | ||
fperms 755 ${PREFIX}/libexec/gcc/${machine}/${basever}/collect2 | ||
fperms 755 ${PREFIX}/libexec/gcc/${machine}/${basever}/gnat1 | ||
fperms 755 ${PREFIX}/libexec/gcc/${machine}/${basever}/liblto_plugin.so.0.0.0 | ||
fperms 755 ${PREFIX}/libexec/gcc/${machine}/${basever}/lto1 | ||
fperms 755 ${PREFIX}/libexec/gcc/${machine}/${basever}/lto-wrapper | ||
fperms 755 ${PREFIX}/libexec/gprbuild/gprbind | ||
fperms 755 ${PREFIX}/libexec/gprbuild/gprlib | ||
} | ||
|
||
pkg_postinst () { | ||
einfo "GNAT GPL is now installed. To launch it, you must put" | ||
einfo " ${PREFIX}/bin" | ||
einfo "in front of your PATH environment variable. The following" | ||
einfo "commands enable you to do this:" | ||
einfo " PATH=${PREFIX}/bin:\$PATH; export PATH (Bourne shell)" | ||
einfo " setenv PATH ${PREFIX}/bin:\$PATH (C shell)" | ||
einfo " Thank you for installing GNAT GPL Edition" | ||
} |