Date: Wednesday, August 2, 2017 @ 07:32:20
  Author: bpiotrowski
Revision: 247397

archrelease: copy trunk to community-i686, community-x86_64

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

---------------------------+
 /PKGBUILD                 |   82 ++++++++++++++++++++++++++++++++++++++++++++
 community-i686/PKGBUILD   |   43 -----------------------
 community-x86_64/PKGBUILD |   43 -----------------------
 3 files changed, 82 insertions(+), 86 deletions(-)

Deleted: community-i686/PKGBUILD
===================================================================
--- community-i686/PKGBUILD     2017-08-02 07:32:07 UTC (rev 247396)
+++ community-i686/PKGBUILD     2017-08-02 07:32:20 UTC (rev 247397)
@@ -1,43 +0,0 @@
-# $Id: PKGBUILD 120612 2014-10-13 14:26:12Z arodseth $
-# Maintainer: Alexander Rødseth <[email protected]>
-# Contributor: [email protected]
-# Contributor: Andreas W. Hauser <[email protected]>
-# Contributor: Brian De Wolf <[email protected]>
-
-pkgname=mlton
-pkgver=20130715
-pkgrel=5
-pkgdesc='Whole-program, optimizing Standard ML compiler'
-arch=('x86_64' 'i686')
-url='http://mlton.org/'
-license=('BSD' 'MIT' 'LGPL')
-depends=('bash' 'gmp')
-makedepends=('setconf')
-options=('staticlibs')
-
-if [[ $CARCH = x86_64 ]]; then
-  
source=("http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver.src.tgz";
 \
-          
"http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver-1.amd64-linux.tgz";)
-  
sha256sums=('215857ad11d44f8d94c27f75e74017aa44b2c9703304bcec9e38c20433143d6c'
-              
'f6f912009b0946b73af88ff5f3e713b6be63b871696e2697ccf1564b56e7d03b')
-else
-  
source=("http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver.src.tgz";
 \
-          
"http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver-1.x86-linux.tgz";)
-  
sha256sums=('215857ad11d44f8d94c27f75e74017aa44b2c9703304bcec9e38c20433143d6c'
-              
'92d89627cf760c56d0e9727f328b006341bf5be283fc7d616a6276c26d95b2cf')
-fi
-
-build() {
-  setconf usr/bin/mlton lib="$srcdir/usr/lib/mlton"
-  PATH="$PATH:$srcdir/usr/bin" make -C "$pkgname-$pkgver" -j1 all-no-docs
-}
-
-package() {
-  make -C "$pkgname-$pkgver" 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/"
-}
-
-# vim:set ts=2 sw=2 et:

Copied: mlton/repos/community-i686/PKGBUILD (from rev 247396, 
mlton/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD                             (rev 0)
+++ community-i686/PKGBUILD     2017-08-02 07:32:20 UTC (rev 247397)
@@ -0,0 +1,41 @@
+# $Id$
+# Maintainer: Alexander F Rødseth <[email protected]>
+# Contributor: [email protected]
+# Contributor: Andreas W. Hauser <[email protected]>
+# Contributor: Brian De Wolf <[email protected]>
+
+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:

Deleted: community-x86_64/PKGBUILD
===================================================================
--- community-x86_64/PKGBUILD   2017-08-02 07:32:07 UTC (rev 247396)
+++ community-x86_64/PKGBUILD   2017-08-02 07:32:20 UTC (rev 247397)
@@ -1,43 +0,0 @@
-# $Id: PKGBUILD 120612 2014-10-13 14:26:12Z arodseth $
-# Maintainer: Alexander Rødseth <[email protected]>
-# Contributor: [email protected]
-# Contributor: Andreas W. Hauser <[email protected]>
-# Contributor: Brian De Wolf <[email protected]>
-
-pkgname=mlton
-pkgver=20130715
-pkgrel=5
-pkgdesc='Whole-program, optimizing Standard ML compiler'
-arch=('x86_64' 'i686')
-url='http://mlton.org/'
-license=('BSD' 'MIT' 'LGPL')
-depends=('bash' 'gmp')
-makedepends=('setconf')
-options=('staticlibs')
-
-if [[ $CARCH = x86_64 ]]; then
-  
source=("http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver.src.tgz";
 \
-          
"http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver-1.amd64-linux.tgz";)
-  
sha256sums=('215857ad11d44f8d94c27f75e74017aa44b2c9703304bcec9e38c20433143d6c'
-              
'f6f912009b0946b73af88ff5f3e713b6be63b871696e2697ccf1564b56e7d03b')
-else
-  
source=("http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver.src.tgz";
 \
-          
"http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver-1.x86-linux.tgz";)
-  
sha256sums=('215857ad11d44f8d94c27f75e74017aa44b2c9703304bcec9e38c20433143d6c'
-              
'92d89627cf760c56d0e9727f328b006341bf5be283fc7d616a6276c26d95b2cf')
-fi
-
-build() {
-  setconf usr/bin/mlton lib="$srcdir/usr/lib/mlton"
-  PATH="$PATH:$srcdir/usr/bin" make -C "$pkgname-$pkgver" -j1 all-no-docs
-}
-
-package() {
-  make -C "$pkgname-$pkgver" 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/"
-}
-
-# vim:set ts=2 sw=2 et:

Copied: mlton/repos/community-x86_64/PKGBUILD (from rev 247396, 
mlton/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD                           (rev 0)
+++ community-x86_64/PKGBUILD   2017-08-02 07:32:20 UTC (rev 247397)
@@ -0,0 +1,41 @@
+# $Id$
+# Maintainer: Alexander F Rødseth <[email protected]>
+# Contributor: [email protected]
+# Contributor: Andreas W. Hauser <[email protected]>
+# Contributor: Brian De Wolf <[email protected]>
+
+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:

Reply via email to