milis/talimatname/genel/p/ponyc/talimat

40 lines
1.2 KiB
Plaintext
Raw Normal View History

2017-10-27 20:46:27 +02:00
# Tanım: Aktör modellemeye dayanan yüksek performanslı dil.
2017-09-03 18:04:38 +02:00
# URL: http://ponylang.org/
2017-10-27 20:46:27 +02:00
# Paketçi: milisarge
# Gerekler: llvm pcre2
2017-09-03 18:04:38 +02:00
2017-10-28 14:10:23 +02:00
isim=ponyc
surum=0.19.0
devir=1
kaynak=(https://github.com/ponylang/ponyc/archive/$surum.tar.gz::$isim-$surum.tar.gz)
2017-09-03 18:04:38 +02:00
2017-10-27 23:59:41 +02:00
derle() {
2017-10-28 14:10:23 +02:00
cd ponyc-$surum
2017-09-03 18:04:38 +02:00
sed -i 's/-Werror //' Makefile
make -j1 config=release prefix=/usr arch=x86-64 verbose=
mkdir docs
build/release/ponyc packages/stdlib -rexpr -g -o docs
make -j1 config=release prefix=/usr arch=x86-64 verbose= test
2017-10-28 14:10:23 +02:00
install -Dm755 build/release/ponyc "$PKG"/usr/lib/pony/"$surum"/bin/ponyc
2017-09-03 18:04:38 +02:00
install -Dm644 build/release/libponyrt-pic.a "$PKG"/usr/lib/libponyrt.a
install -Dm644 build/release/libponyc.a "$PKG"/usr/lib/libponyc.a
install -Dm644 src/libponyrt/pony.h "$PKG"/usr/include/pony.h
install -dm755 "$PKG"/usr/bin
2017-10-28 14:10:23 +02:00
ln -sf /usr/lib/pony/"$surum"/bin/ponyc "$PKG"/usr/bin
2017-09-03 18:04:38 +02:00
2017-10-28 14:10:23 +02:00
cp -dr --no-preserve=ownership packages "$PKG"/usr/lib/pony/"$surum"
2017-09-03 18:04:38 +02:00
install -dm755 "$PKG"/usr/share/doc/pony
cp -dr --no-preserve=ownership examples "$PKG"/usr/share/doc/pony
cp -dr docs/* "$PKG"/usr/share/doc/pony
2017-10-28 14:10:23 +02:00
install -Dm644 LICENSE "$PKG"/usr/share/licenses/"$isim"/LICENSE
2017-09-03 18:04:38 +02:00
}