[arch-commits] Commit in mlton/repos/community-x86_64 (PKGBUILD PKGBUILD)

Alexander Rødseth arodseth at archlinux.org
Mon Aug 7 13:49:27 UTC 2017


    Date: Monday, August 7, 2017 @ 13:49:26
  Author: arodseth
Revision: 249442

archrelease: copy trunk to community-x86_64

Added:
  mlton/repos/community-x86_64/PKGBUILD
    (from rev 249441, mlton/trunk/PKGBUILD)
Deleted:
  mlton/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |   89 ++++++++++++++++++++++++++++++++-----------------------------
 1 file changed, 48 insertions(+), 41 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2017-08-07 13:04:21 UTC (rev 249441)
+++ PKGBUILD	2017-08-07 13:49:26 UTC (rev 249442)
@@ -1,41 +0,0 @@
-# $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>
-
-pkgname=mlton
-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=('git' 'setconf' 'mlton')
-options=('staticlibs')
-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() {
-  # Latest master does not build on x86_64. Older releases does not build on x86_64. WIP
-
-  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 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 "mlton/doc/license/"* "$pkgdir/usr/share/licenses/$pkgname/"
-}
-
-# vim: ts=2 sw=2 et:

Copied: mlton/repos/community-x86_64/PKGBUILD (from rev 249441, mlton/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2017-08-07 13:49:26 UTC (rev 249442)
@@ -0,0 +1,48 @@
+# $Id$
+# Maintainer: Alexander F Rødseth <xyproto at archlinux.org>
+# Contributor: mkoloberdin <my at aprisobal.by>
+# 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>
+
+pkgname=mlton
+pkgver=20170725
+pkgrel=2
+pkgdesc='Whole-program, optimizing Standard ML compiler'
+arch=('x86_64' 'i686')
+url='http://mlton.org/'
+license=('BSD' 'MIT' 'LGPL')
+depends=('gmp')
+makedepends=('git' 'setconf' 'mlton')
+makedepends_x86_64=('smlnj')
+options=('staticlibs')
+source=("git+https://github.com/MLton/mlton#commit=159190284e1268fded189104705939fe3b691b12")
+md5sums=('SKIP')
+
+prepare() {
+  cd "$pkgname"
+
+  sed 's/_BSD_SOURCE/_DEFAULT_SOURCE/g' -i runtime/cenv.h
+  find . -name Makefile -type f -exec setconf {} CFLAGS "$CFLAGS -fPIC" \;
+}
+
+build() {
+  export CFLAGS="$CFLAGS -fPIC"
+  export COMPILE_ARGS="-codegen c -cc-opt '-fPIC'" 
+
+  if [ $arch = 'x86_64' ]; then
+    # Bootstrap with SML-NJ on x86_64
+    make -C "$pkgname" -j1 smlnj-mlton all-no-docs
+  else
+    make -C "$pkgname" -j1 all-no-docs
+  fi
+}
+
+package() {
+  make -C "$pkgname" DESTDIR="$pkgdir" install-no-docs
+  for f in "$pkgname"/doc/license/*-LICENSE; do
+    install -Dm644 "$f" "$pkgdir/usr/share/licenses/$pkgname/$f"
+  done
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list