void-packages/srcpkgs/newlisp/template

46 lines
1.5 KiB
Plaintext
Raw Normal View History

2011-12-21 21:12:28 +01:00
# Template file for 'newlisp'
pkgname=newlisp
2013-05-22 10:42:50 +02:00
version=10.5.0
2013-05-22 11:18:54 +02:00
revision=2
hostmakedepends="which"
makedepends="readline-devel libffi-devel"
2011-12-21 21:12:28 +01:00
short_desc="Lisp-like, general-purpose scripting language"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-3, zlib, $pkgname"
2012-06-04 16:57:56 +02:00
homepage="http://www.newlisp.org"
distfiles="$homepage/downloads/$pkgname-$version.tgz"
2013-05-22 10:42:50 +02:00
checksum=dee45745bd776cfdbe416799e05ee65fb0e074f673e57bf6970124dcdfe16467
2011-12-21 21:12:28 +01:00
long_desc="
newLISP is a Lisp-like, general-purpose scripting language. It is especially
well-suited for applications in AI, web search, natural language processing,
and machine learning. Because of its small resource requirements, newLISP
is also excellent for embedded systems applications. Most of the functions
you will ever need are already built in. This includes networking functions,
support for distributed and parallel processing, and Bayesian statistics."
do_build() {
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
export CFLAGS="$CFLAGS -DNEWLISP64"
fi
make -f makefile_linuxLP64_utf8_ffi ${makejobs}
2011-12-21 21:12:28 +01:00
}
do_install() {
vmkdir usr/bin
vmkdir usr/share/man/man1
2013-05-22 11:18:54 +02:00
vmkdir usr/share/licenses/$pkgname
2011-12-21 21:12:28 +01:00
make bindir=$DESTDIR/usr/bin datadir=$DESTDIR/usr/share \
mandir=$DESTDIR/usr/share/man install
2013-05-22 10:42:50 +02:00
mv $DESTDIR/usr/share/doc/$pkgname/COPYING \
$DESTDIR/usr/share/licenses/$pkgname
# Create newlisp symlink;
ln -sfr ${DESTDIR}/usr/bin/newlisp-${version} ${DESTDIR}/usr/bin/newlisp
2011-12-21 21:12:28 +01:00
}
newlisp_package() {
pkg_install() {
vmove usr
}
}