blob: e04b36bb33e8a538e4782bd7923d73c0a9683a21 (
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
|
# Maintainer: Pierre-Marie de Rodat <pmderodat on #ada at freenode.net>
pkgname=langkit-git
pkgver=r4926.893bb29e
pkgrel=1
pkgdesc='Compiler for syntactic and semantic language analysis libraries'
url='https://github.com/AdaCore/langkit/'
arch=('any')
license=('GPL')
depends=('gcc-ada' 'gprbuild' 'gnatcoll-core' 'gnatcoll-iconv'
'quex-for_libadalang' 'autopep8' 'python-psutil' 'python-sphinx'
'python-yaml' 'python2-docutils' 'python2-enum34' 'python2-funcy'
'python2-mako' 'yapf')
makedepends=('git')
provides=('langkit')
conflicts=('langkit')
source=('git+https://github.com/AdaCore/langkit.git'
'python2.patch')
sha1sums=('SKIP'
'755fde34ecd1eeb2deeacf67148e22d2934ff6b4')
pkgver() {
cd "$srcdir/${pkgname%-git}"
printf "r%s.%s" \
"$(git rev-list --count HEAD)" \
"$(git rev-parse --short HEAD)"
}
prepare()
{
cd "$srcdir/${pkgname%-git}"
patch -p0 -i "$srcdir/python2.patch"
}
build()
{
cd "$srcdir/${pkgname%-git}"
# Build the Langkit_Support library, used by all Langkit-generated
# libraries.
python2 scripts/build-langkit_support.py generate
python2 scripts/build-langkit_support.py \
--disable-static --enable-shared \
build --build-mode=prod --gargs="-R"
# TODO: build & install static libraries. For now, this fails because
# auto-initialized static libraries are built using partial linking (ld's
# -r option), which conflicts with GCC's by default -pie option.
true || python2 scripts/build-langkit_support.py -vdebug \
--enable-static --disable-shared \
build --build-mode=prod
}
package()
{
cd "$srcdir/${pkgname%-git}"
python2 setup.py install --root="$pkgdir"
python2 scripts/build-langkit_support.py \
--disable-static --enable-shared \
install "$pkgdir/usr"
}
|