[arch-commits] Commit in mlton/trunk (PKGBUILD)
Alexander Rødseth
arodseth at archlinux.org
Tue Aug 1 20:03:09 UTC 2017
Date: Tuesday, August 1, 2017 @ 20:03:09
Author: arodseth
Revision: 247381
mlton currently only builds for i686. PIC issues. WIP.
Modified:
mlton/trunk/PKGBUILD (contents, properties)
----------+
PKGBUILD | 38 +++++++++++++++++---------------------
1 file changed, 17 insertions(+), 21 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-08-01 19:06:29 UTC (rev 247380)
+++ PKGBUILD 2017-08-01 20:03:09 UTC (rev 247381)
@@ -1,45 +1,41 @@
-# $Id: PKGBUILD 120612 2014-10-13 14:26:12Z arodseth $
+# $Id$
# Maintainer: Alexander F Rødseth <xyproto at archlinux.org>
# Contributor: tochiro at no.spam.mail.berlios.de
# Contributor: Andreas W. Hauser <andy-aur at splashground.de>
# Contributor: Brian De Wolf <arch at bldewolf.com>
-# WIP
-
pkgname=mlton
-pkgver=20130715
-pkgrel=7
+pkgver=20170725
+pkgrel=1
pkgdesc='Whole-program, optimizing Standard ML compiler'
arch=('x86_64' 'i686')
url='http://mlton.org/'
license=('BSD' 'MIT' 'LGPL')
depends=('gmp')
-makedepends=('setconf' 'mlton')
+makedepends=('git' 'setconf' 'mlton')
options=('staticlibs')
-source_x86_64=("http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver.src.tgz" \
- "http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver-2.amd64-linux.tgz")
-sha256sums_x86_64=('215857ad11d44f8d94c27f75e74017aa44b2c9703304bcec9e38c20433143d6c'
- 'f9687c2dcab7b64ea8610911d4df91f6cdc3ad778e39f76d3d452ae890f3f330')
-sha256sums_i686=('215857ad11d44f8d94c27f75e74017aa44b2c9703304bcec9e38c20433143d6c'
- '3f0437a83f83b82da2c44f1e0f6f8d638864eacc58a8a3b3de60ebf84b441702')
-source_i686=("http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver.src.tgz" \
- "http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver-2.x86-linux.tgz")
+source=("git+https://github.com/MLton/mlton#commit=159190284e1268fded189104705939fe3b691b12")
+md5sums=('SKIP')
+prepare() {
+ sed 's/_BSD_SOURCE/_DEFAULT_SOURCE/g' -i mlton/runtime/cenv.h
+ find mlton -name Makefile -type f -exec setconf {} CFLAGS "$CFLAGS -fPIC" \;
+}
+
build() {
- setconf mlton-$pkgver/runtime/Makefile CFLAGS "$CFLAGS -fPIC"
- setconf mlton-$pkgver/runtime/Makefile CXXFLAGS "$CXXFLAGS -fPIC"
+ # Latest master does not build on x86_64. Older releases does not build on x86_64. WIP
- #setconf mlton-$pkgver-2/bin/mlton lib="/usr/lib/mlton"
- #PATH="$PATH:$srcdir/usr/bin" make -C "$pkgname-$pkgver" -j1 all-no-docs
- make -C "$pkgname-$pkgver" -j1 all-no-docs
+ export CFLAGS="$CFLAGS -fPIC"
+ make -C mlton COMPILE_ARGS="-codegen c -cc-opt '-fPIC'" -j1 all-no-docs
+ #make -C mlton COMPILE_ARGS="-codegen c" all-no-docs
}
package() {
- make -C "$pkgname-$pkgver" DESTDIR="$pkgdir" -j1 install-no-docs
+ make -C mlton DESTDIR="$pkgdir" -j1 install-no-docs
# Copy over the handful of licenses and the README as explanation
install -d "$pkgdir/usr/share/licenses/$pkgname"
- cp "$pkgname-$pkgver/doc/license/"* "$pkgdir/usr/share/licenses/$pkgname/"
+ cp "mlton/doc/license/"* "$pkgdir/usr/share/licenses/$pkgname/"
}
# vim: ts=2 sw=2 et:
Property changes on: mlton/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
More information about the arch-commits
mailing list