blob: ddc8572cfd40cf32a098072fab4b3b392461daf6 (
plain)
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
|
# Maintainer: Rod Kay <rodakay5 at gmail dot com>
pkgbase=gpr
pkgdesc='Parser for Ada GPR project files.'
pkgname=(gpr gpr2tools)
pkgver=26.0w
pkgrel=1
url=https://github.com/AdaCore/gpr
arch=(i686 x86_64)
license=(GPL3 Apache)
depends=(gnatcoll-iconv
gnatcoll-gmp
langkit
python
which
python-funcy
python-mako
python-docutils)
makedepends=(gprbuild python-e3-core)
source=(https://github.com/charlie5/archlinux-gnatstudio-support/raw/refs/heads/main/gnatstudio-sources-2025/gpr2-26.0w-20250409-1629D-src.tar.gz)
sha256sums=(f1312f74ae8e3f7093bd0ca955da2c4d075ae2d4546ed1339e10c8b75d8cd86d)
export ENABLE_SHARED=yes
prepare()
{
cd $srcdir/gpr2-26.0w-20250416-161FC-src
sed -i 's/libexec/lib/g' tools/projects/gpr2tools.gpr
make setup prefix=$pkgdir/usr GPR2KBDIR=/usr/share/gprconfig
}
build()
{
cd $srcdir/gpr2-26.0w-20250416-161FC-src
make all
# Generate documentation.
#
make -C doc \
html pdf \
1> build-docs-warnings.log \
2> build-docs-errors.log
make -C doc/gpr2_user_manual \
all \
1> build-user_manual-warnings.log \
2> build-user_manual-errors.log
}
package_gpr()
{
cd $srcdir/gpr2-26.0w-20250416-161FC-src
make -j1 install-libs
cp $pkgdir/usr/include/gpr2.static/* \
$pkgdir/usr/include/gpr2.relocatable
# cp $pkgdir/usr/include/gpr2.static/gpr2-build-view_tables.ads \
# $pkgdir/usr/include/gpr2.relocatable
# cp $pkgdir/usr/include/gpr2.static/gpr2-build-view_tables.adb \
# $pkgdir/usr/include/gpr2.relocatable
# cp $pkgdir/usr/include/gpr2.static/gpr2-build-view_tables-update_sources_list.adb \
# $pkgdir/usr/include/gpr2.relocatable
# Install the documentation.
#
mkdir -p $pkgdir/usr/share/doc/$pkgname
cp -r doc/gpr2_user_manual/build/html $pkgdir/usr/share/doc/$pkgname
cp doc/gpr2_user_manual/build/latex/gpr2libraryusermanual.pdf $pkgdir/usr/share/doc/$pkgname
# Install the license.
#
install -D -m644 \
LICENSE-lib \
$pkgdir/usr/share/licenses/$pkgname/LICENSE-lib
}
package_gpr2tools()
{
cd $srcdir/gpr2-26.0w-20250416-161FC-src
make -j1 prefix=$pkgdir/usr install-tools
rm -fr $pkgdir/usr/share/examples/gprbuild # Conflict with 'gprbuild'.
mv $pkgdir/usr/bin/gprconfig \
$pkgdir/usr/bin/gpr2config # Conflict with 'gprbuild'.
# Install the documentation.
#
mkdir -p $pkgdir/usr/share/doc/$pkgname
cp -r doc/html $pkgdir/usr/share/doc/$pkgname
cp doc/pdf/gprbuild_ug.pdf $pkgdir/usr/share/doc/$pkgname
# Install the license.
#
install -D -m644 \
LICENSE-tool \
$pkgdir/usr/share/licenses/$pkgname/LICENSE-tool
}
|