forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gps-2017.ebuild
75 lines (62 loc) · 1.67 KB
/
gps-2017.ebuild
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python2_7 )
inherit python-single-r1 autotools
MYP=${PN}-gpl-${PV}-src
DESCRIPTION="The GNAT Programming Studio"
HOMEPAGE="http://libre.adacore.com/tools/gps/"
SRC_URI="http://mirrors.cdn.adacore.com/art/591c45e2c7a447af2deed03b
-> ${MYP}.tar.gz
doc? ( http://mirrors.cdn.adacore.com/art/591c6d80c7a447af2deed1d7
-> gnat-gpl-2017-x86_64-linux-bin.tar.gz )"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
IUSE="doc"
RDEPEND="${PYTHON_DEPS}
>=dev-ada/gnatcoll-2017[gtk,iconv,pygobject,sqlite,tools]
>=dev-ada/gtkada-2017
dev-ada/libadalang
dev-libs/gobject-introspection
dev-libs/libffi
sys-devel/clang:=
x11-themes/adwaita-icon-theme
x11-themes/hicolor-icon-theme
dev-python/pep8[${PYTHON_USEDEP}]
dev-python/jedi[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}"
RESTRICT="test"
S="${WORKDIR}"/${MYP}
PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
src_prepare() {
default
GCC_PV=6.3.0
mv configure.{in,ac} || die
sed -i \
-e "s:@GNATMAKE@:${CHOST}-gnatmake-${GCC_PV}:g" \
-e "s:@GNAT@:${CHOST}-gnat-${GCC_PV}:g" \
-e "s:@GNATLS@:${CHOST}-gnatls-${GCC_PV}:g" \
aclocal.m4 \
share/support/core/gnat_help_menus.py \
share/support/core/toolchains.py \
share/support/core/projects.py \
cli/src/gps-cli_utils.adb \
toolchains_editor/core/src/toolchains.adb \
|| die
eautoreconf
}
src_configure() {
econf \
--with-clang=$(llvm-config --libdir)
}
src_compile() {
emake GPRBUILD_FLAGS="-v ${MAKEOPTS}"
}
src_install() {
default
if use doc; then
insinto /usr/share/doc
doins -r "${WORKDIR}"/gnat-gpl-2017-x86_64-linux-bin/share/doc/gnat
fi
}