aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-08-20 13:43:24 -0300
committerLeo <thinkabit.ukim@gmail.com>2019-08-20 19:57:21 -0300
commit5ffb458719dca028d02652decbe1c902a9648974 (patch)
treef6ce7936bef4ab4596af05b9297edec19e43cc00
parentf13c940cd99989f223e558f03216f27876f2b624 (diff)
downloadaports-5ffb458719dca028d02652decbe1c902a9648974.tar.bz2
aports-5ffb458719dca028d02652decbe1c902a9648974.tar.xz
testing/libctl: upgrade to 4.3.0
-rw-r--r--testing/libctl/APKBUILD39
-rw-r--r--testing/libctl/gh-libguile.patch220
2 files changed, 11 insertions, 248 deletions
diff --git a/testing/libctl/APKBUILD b/testing/libctl/APKBUILD
index bca384bb7e..d18ba1d6b9 100644
--- a/testing/libctl/APKBUILD
+++ b/testing/libctl/APKBUILD
@@ -1,33 +1,23 @@
# Contributor: Isaac Dunham <ibid.ag@gmail.com>
# Maintainer:
pkgname=libctl
-pkgver=3.2.2
-pkgrel=2
+pkgver=4.3.0
+pkgrel=0
pkgdesc="Guile-based library implementing flexible control files for scientific simulations"
url="http://ab-initio.mit.edu/wiki/index.php/Libctl"
arch="all"
-license="GPL"
-depends=""
+license="GPL-2.0-or-later AND LGPL-2.1-or-later"
depends_dev="guile-dev gmp-dev"
-makedepends="$depends_dev gc-dev gfortran"
-install=""
+makedepends="$depends_dev gc-dev gfortran autoconf automake libtool"
subpackages="$pkgname-dev $pkgname-doc"
-source="http://ab-initio.mit.edu/libctl/libctl-$pkgver.tar.gz
- gh-libguile.patch"
+source="$pkgname-$pkgver.tar.gz::https://github.com/stevengj/libctl/archive/v$pkgver.tar.gz"
-_builddir="$srcdir"/libctl-$pkgver
prepare() {
- local i
- cd "$_builddir"
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
+ default_prepare
+ autoreconf -fi
}
build() {
- cd "$_builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -36,19 +26,12 @@ build() {
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var \
- --enable-shared --disable-static \
- || return 1
- make || return 1
+ --enable-shared --disable-static
+ make
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ make DESTDIR="$pkgdir" install
}
-md5sums="5fd7634dc9ae8e7fa70a68473b9cbb68 libctl-3.2.2.tar.gz
-e28653da62d9aed4746025e83f7f5323 gh-libguile.patch"
-sha256sums="8abd8b58bc60e84e16d25b56f71020e0cb24d75b28bc5db86d50028197c7efbc libctl-3.2.2.tar.gz
-03da4add062a949c791dfa722254bc4cb265ff9b8c64c12effd92bed32fdcdaa gh-libguile.patch"
-sha512sums="646456c23490eb3e63e845d4866b16bd1d92b210f2279342560888bb4764e474b97e17ff34beb672d43afe4d42bbcbddbcf8bb49cedc23b886061a93de10e6df libctl-3.2.2.tar.gz
-50a18aa5f42ef26b0d5c3f31a93f156adc4e1a0a37af2db123301e9ef1ac20106705df44e9949e02b605f42be962378b95c150f78614edfae7339c084dfb6522 gh-libguile.patch"
+sha512sums="2d8d2746b7689a41476992ab473b09947dd15f184b188f4219d1cd1d93214169afddb2da22dd7c55bcda1be4d7c7b9af90674522d5153ec5efc5d8e0eed0886c libctl-4.3.0.tar.gz"
diff --git a/testing/libctl/gh-libguile.patch b/testing/libctl/gh-libguile.patch
deleted file mode 100644
index ed3b40165f..0000000000
--- a/testing/libctl/gh-libguile.patch
+++ /dev/null
@@ -1,220 +0,0 @@
-diff --git a/config.h.in b/config.h.in
-index c31e5a9..a79e273 100644
---- a/config.h.in
-+++ b/config.h.in
-@@ -50,7 +50,7 @@
- /* Define if we have gh_vector_ref */
- #undef HAVE_GH_VECTOR_REF
-
--/* Define to 1 if you have the <guile/gh.h> header file. */
-+/* Define to 1 if you have the <libguile.h> header file. */
- #undef HAVE_GUILE_GH_H
-
- /* Define to 1 if you have the <inttypes.h> header file. */
-diff --git a/configure b/configure
-index c51270d..48d783a 100755
---- a/configure
-+++ b/configure
-@@ -12878,7 +12878,7 @@ rm -f core conftest.err conftest.$ac_objext \
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
--for ac_header in libguile.h guile/gh.h
-+for ac_header in libguile.h libguile.h
- do :
- as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
- ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
-@@ -12929,7 +12929,7 @@ $as_echo_n "checking for gh_enter... " >&6; }
- ok=yes
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
--#include <guile/gh.h>
-+#include <libguile.h>
-
- int
- main ()
-@@ -12956,7 +12956,7 @@ $as_echo_n "checking for gh_eval_str... " >&6; }
- ok=yes
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
--#include <guile/gh.h>
-+#include <libguile.h>
-
- int
- main ()
-@@ -12983,7 +12983,7 @@ $as_echo_n "checking for gh_load... " >&6; }
- ok=yes
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
--#include <guile/gh.h>
-+#include <libguile.h>
-
- int
- main ()
-@@ -13010,7 +13010,7 @@ $as_echo_n "checking for gh_bool2scm... " >&6; }
- ok=yes
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
--#include <guile/gh.h>
-+#include <libguile.h>
-
- int
- main ()
-@@ -13037,7 +13037,7 @@ $as_echo_n "checking for gh_vector_ref... " >&6; }
- ok=yes
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
--#include <guile/gh.h>
-+#include <libguile.h>
-
- int
- main ()
-@@ -13064,7 +13064,7 @@ $as_echo_n "checking for gh_list_ref... " >&6; }
- ok=yes
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
--#include <guile/gh.h>
-+#include <libguile.h>
-
- int
- main ()
-@@ -13091,7 +13091,7 @@ $as_echo_n "checking for gh_length... " >&6; }
- ok=yes
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
--#include <guile/gh.h>
-+#include <libguile.h>
-
- int
- main ()
-@@ -13121,7 +13121,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- #if defined(HAVE_LIBGUILE_H)
- # include <libguile.h>
- #else
--# include <guile/gh.h>
-+# include <libguile.h>
- #endif
-
- int
-@@ -13165,7 +13165,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- #if defined(HAVE_LIBGUILE_H)
- # include <libguile.h>
- #else
--# include <guile/gh.h>
-+# include <libguile.h>
- #endif
-
- int
-@@ -13198,7 +13198,7 @@ else
- /* end confdefs.h. */
-
- #include <stdlib.h>
--#include <guile/gh.h>
-+#include <libguile.h>
- void main_entry(int argc, char *argv[])
- {
- gh_eval_str("(define foo 3.14159)");
-diff --git a/configure.ac b/configure.ac
-index 98e38c5..56532c9 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -82,7 +82,7 @@ AC_TRY_LINK_FUNC(gh_enter, AC_MSG_RESULT(yes),
- [AC_TRY_LINK_FUNC(scm_boot_guile, AC_MSG_RESULT(yes),
- [AC_MSG_RESULT(no)
- AC_MSG_ERROR(Guile could not be found)])])
--AC_CHECK_HEADERS([libguile.h guile/gh.h])
-+AC_CHECK_HEADERS([libguile.h libguile.h])
-
- ###########################################################################
-
-@@ -97,43 +97,43 @@ AC_MSG_RESULT($ok)
-
- AC_MSG_CHECKING([for gh_enter])
- ok=yes
--AC_TRY_LINK([#include <guile/gh.h>
-+AC_TRY_LINK([#include <libguile.h>
- ], [gh_enter(0,0,0);], [AC_DEFINE(HAVE_GH_ENTER, 1, [Define if we have gh_enter.])], ok=no)
- AC_MSG_RESULT($ok)
-
- AC_MSG_CHECKING([for gh_eval_str])
- ok=yes
--AC_TRY_LINK([#include <guile/gh.h>
-+AC_TRY_LINK([#include <libguile.h>
- ], [gh_eval_str(0);], [AC_DEFINE(HAVE_GH_EVAL_STR, 1, [Define if we have gh_eval_str.])], ok=no)
- AC_MSG_RESULT($ok)
-
- AC_MSG_CHECKING([for gh_load])
- ok=yes
--AC_TRY_LINK([#include <guile/gh.h>
-+AC_TRY_LINK([#include <libguile.h>
- ], [gh_load(0);], [AC_DEFINE(HAVE_GH_LOAD, 1, [Define if we have gh_load.])], ok=no)
- AC_MSG_RESULT($ok)
-
- AC_MSG_CHECKING([for gh_bool2scm])
- ok=yes
--AC_TRY_LINK([#include <guile/gh.h>
-+AC_TRY_LINK([#include <libguile.h>
- ], [gh_bool2scm(0);], [AC_DEFINE(HAVE_GH_BOOL2SCM, 1, [Define if we have gh_bool2scm])], ok=no)
- AC_MSG_RESULT($ok)
-
- AC_MSG_CHECKING([for gh_vector_ref])
- ok=yes
--AC_TRY_LINK([#include <guile/gh.h>
-+AC_TRY_LINK([#include <libguile.h>
- ], [gh_vector_ref(0,0);], [AC_DEFINE(HAVE_GH_VECTOR_REF, 1, [Define if we have gh_vector_ref])], ok=no)
- AC_MSG_RESULT($ok)
-
- AC_MSG_CHECKING([for gh_list_ref])
- ok=yes
--AC_TRY_LINK([#include <guile/gh.h>
-+AC_TRY_LINK([#include <libguile.h>
- ], [gh_list_ref(0,0);], [AC_DEFINE(HAVE_GH_LIST_REF, 1, [Define if we have gh_list_ref])], ok=no)
- AC_MSG_RESULT($ok)
-
- AC_MSG_CHECKING([for gh_length])
- ok=yes
--AC_TRY_LINK([#include <guile/gh.h>
-+AC_TRY_LINK([#include <libguile.h>
- ], [gh_length(0);], [AC_DEFINE(HAVE_GH_LENGTH, 1, [Define if we have gh_length])], ok=no)
- AC_MSG_RESULT($ok)
-
-@@ -142,7 +142,7 @@ ok=yes
- AC_TRY_LINK([#if defined(HAVE_LIBGUILE_H)
- # include <libguile.h>
- #else
--# include <guile/gh.h>
-+# include <libguile.h>
- #endif
- ], [scm_flush_all_ports();], [AC_DEFINE(HAVE_SCM_FLUSH_ALL_PORTS, 1, [Define if we have scm_flush_all_ports])], ok=no)
- AC_MSG_RESULT($ok)
-@@ -154,7 +154,7 @@ ok=yes
- AC_TRY_LINK([#if defined(HAVE_LIBGUILE_H)
- # include <libguile.h>
- #else
--# include <guile/gh.h>
-+# include <libguile.h>
- #endif
- ], [SCM x; SCM_COMPLEXP(x);], [AC_DEFINE(HAVE_SCM_COMPLEXP, 1, [Define if we have SCM_COMPLEXP])], ok=no)
- AC_MSG_RESULT($ok)
-@@ -163,7 +163,7 @@ AC_MSG_CHECKING([whether gh_lookup works properly])
- ok=yes
- AC_TRY_RUN([
- #include <stdlib.h>
--#include <guile/gh.h>
-+#include <libguile.h>
- void main_entry(int argc, char *argv[])
- {
- gh_eval_str("(define foo 3.14159)");
-diff --git a/src/ctl.h.in b/src/ctl.h.in
-index 1ecee3f..b0c0096 100644
---- a/src/ctl.h.in
-+++ b/src/ctl.h.in
-@@ -26,7 +26,7 @@
- #ifdef HAVE_NO_GH
- # include <libguile.h>
- #else
--# include <guile/gh.h>
-+# include <libguile.h>
- #endif
-
- #ifdef __cplusplus