[142506] trunk/dports/net/axel
ryandesign at macports.org
ryandesign at macports.org
Sat Dec 12 06:02:48 PST 2015
Revision: 142506
https://trac.macports.org/changeset/142506
Author: ryandesign at macports.org
Date: 2015-11-13 08:19:15 -0800 (Fri, 13 Nov 2015)
Log Message:
-----------
axel: switch to github fork and update to 2.5 (#45134)
Modified Paths:
--------------
trunk/dports/net/axel/Portfile
Added Paths:
-----------
trunk/dports/net/axel/files/
trunk/dports/net/axel/files/patch-configure.diff
Modified: trunk/dports/net/axel/Portfile
===================================================================
--- trunk/dports/net/axel/Portfile 2015-11-13 16:13:51 UTC (rev 142505)
+++ trunk/dports/net/axel/Portfile 2015-11-13 16:19:15 UTC (rev 142506)
@@ -1,9 +1,9 @@
# $Id$
PortSystem 1.0
+PortGroup github 1.0
-name axel
-version 2.4
+github.setup eribertomota axel 2.5
categories net www
platforms darwin
license GPL-2+
@@ -14,21 +14,17 @@
each connection transfers its own, separate, part of the file. \
It may sound weird, but it works very well in practice.
-master_sites https://alioth.debian.org/frs/download.php/file/3016
-homepage http://axel.alioth.debian.org/
-checksums rmd160 34fc9f951495904a44ed9649f88abae9c2840060 \
- sha256 ebc7d40e989c680d2afa632a17e5208101608924cf446da20814a6f3c3338612
+checksums rmd160 19b0eaf895367a32e163fefc49f65e7cac5381ab \
+ sha256 216a1140b1cc5ed0da1412caaf7a32518b2562bc7e39c671deb2170e0afe6b02
-use_bzip2 yes
+depends_lib port:gettext
-depends_lib port:libiconv port:gettext
+patchfiles patch-configure.diff
-configure.args --i18n=1
+configure.args --etcdir=${prefix}/etc \
+ --i18n=1
configure.universal_args-delete --disable-dependency-tracking
-if {[variant_isset universal]} {
- build.args CFLAGS="${configure.cflags} ${configure.universal_cflags} ${configure.cppflags}" \
- LFLAGS="${configure.ldflags} ${configure.universal_ldflags} -lintl -liconv"
-} else {
- build.args CFLAGS="${configure.cflags} ${configure.cc_archflags} ${configure.cppflags}" \
- LFLAGS="${configure.ldflags} -lintl -liconv"
+
+post-destroot {
+ move ${destroot}${prefix}/etc/axelrc ${destroot}${prefix}/etc/axelrc.sample
}
Added: trunk/dports/net/axel/files/patch-configure.diff
===================================================================
--- trunk/dports/net/axel/files/patch-configure.diff (rev 0)
+++ trunk/dports/net/axel/files/patch-configure.diff 2015-11-13 16:19:15 UTC (rev 142506)
@@ -0,0 +1,27 @@
+Do not look for libintl headers outside of the prefix.
+Do record the value of LDFLAGS at configure time (https://github.com/eribertomota/axel/issues/1)
+--- configure.orig 2015-11-01 16:48:49.000000000 -0600
++++ configure 2015-11-13 10:11:08.000000000 -0600
+@@ -114,13 +114,7 @@
+ if [ "$i18n" = "1" ]; then
+ echo 'I18N=1' >> Makefile.settings
+ echo '#define I18N' >> config.h
+- if [ -f /usr/local/include/libintl.h ]; then
+- AXEL_CFLAGS="${AXEL_CFLAGS} -I/usr/local/include"
+- AXEL_LFLAGS="${AXEL_LFLAGS} -L/usr/local/lib"
+- elif [ -f /opt/csw/include/libintl.h ]; then
+- AXEL_CFLAGS="${AXEL_CFLAGS} -I/opt/csw/include"
+- AXEL_LFLAGS="${AXEL_LFLAGS} -L/opt/csw/lib"
+- elif [ -f "${prefix}/include/libintl.h" ]; then
++ if [ -f "${prefix}/include/libintl.h" ]; then
+ AXEL_CFLAGS="${AXEL_CFLAGS} -I${prefix}/include"
+ AXEL_LFLAGS="${AXEL_LFLAGS} -L${prefix}/lib"
+ fi
+@@ -236,6 +230,7 @@
+
+ echo "CFLAGS+=${AXEL_CFLAGS}" >> Makefile.settings
+ echo "LFLAGS+=${AXEL_LFLAGS}" >> Makefile.settings
++echo "LDFLAGS+=${LDFLAGS}" >> Makefile.settings
+
+ echo 'Configuration done:'
+ if [ "$i18n" = "1" ]; then
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151212/5a21b76f/attachment.html>
More information about the macports-changes
mailing list