milis/talimatname/genel/p/ponyc/talimat

35 lines
1.5 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
2018-01-09 17:38:17 +01:00
# Gerekler: llvm pcre2 binutils-gold
# Grup: geliştirme
2017-09-03 18:04:38 +02:00
2017-10-28 14:10:23 +02:00
isim=ponyc
2018-01-09 17:38:17 +01:00
surum=0.21.2
2017-10-28 14:10:23 +02:00
devir=1
2018-01-09 17:38:17 +01:00
kaynak=(https://github.com/ponylang/ponyc/archive/$surum.tar.gz::$isim-$surum.tar.gz
https://github.com/winksaville/ponyc/commit/64b64a21b1be70caf4202eb1b1fa22dac1bd6575.patch)
2017-09-03 18:04:38 +02:00
2017-10-27 23:59:41 +02:00
derle() {
2018-01-09 17:38:17 +01:00
cd ponyc-$surum
sed -i 's/-Werror //' Makefile
patch -p1 -i ../64b64a21b1be70caf4202eb1b1fa22dac1bd6575.patch
make config=release prefix=/usr arch=x86-64 verbose= default_pic=true
mkdir docs
build/release/ponyc packages/stdlib -rexpr -g -o docs
make config=release prefix=/usr arch=x86-64 verbose= default_pic=true test
install -Dm755 build/release/ponyc "$PKG"/usr/lib/pony/"$surum"/bin/ponyc
install -Dm644 build/release/libponyrt-pic.a "$PKG"/usr/lib/libponyrt-pic.a
install -Dm644 build/release/libponyc.a "$PKG"/usr/lib/libponyc.a
install -Dm644 src/libponyrt/pony.h "$PKG"/usr/include/pony.h
# Ponyc is designed to read its standard packages from the same directory.
install -dm755 "$PKG"/usr/bin
ln -sf /usr/lib/pony/"$surum"/bin/ponyc "$PKG"/usr/bin
cp -dr --no-preserve=ownership packages "$PKG"/usr/lib/pony/"$surum"
# Let's include the examples as documentation is scarce.
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
install -Dm644 LICENSE "$PKG"/usr/share/licenses/"$isim"/LICENSE
2017-09-03 18:04:38 +02:00
}