[71950] trunk/dports/net/whois

ryandesign at macports.org ryandesign at macports.org
Tue Sep 28 04:23:28 PDT 2010


Revision: 71950
          http://trac.macports.org/changeset/71950
Author:   ryandesign at macports.org
Date:     2010-09-28 04:23:27 -0700 (Tue, 28 Sep 2010)
Log Message:
-----------
whois: add libidn and libiconv support; see #26634

Modified Paths:
--------------
    trunk/dports/net/whois/Portfile

Added Paths:
-----------
    trunk/dports/net/whois/files/patch-idn-iconv.diff

Modified: trunk/dports/net/whois/Portfile
===================================================================
--- trunk/dports/net/whois/Portfile	2010-09-28 11:14:21 UTC (rev 71949)
+++ trunk/dports/net/whois/Portfile	2010-09-28 11:23:27 UTC (rev 71950)
@@ -15,6 +15,7 @@
 name                        whois
 conflicts                   bahamut ripe-whois
 version                     5.0.7
+revision                    1
 categories                  net
 maintainers                 ryandesign
 homepage                    http://www.linux.it/~md/software/
@@ -35,12 +36,20 @@
 distname                    ${name}_${version}
 worksrcdir                  ${name}-${version}
 
-depends_lib                 port:gettext
-archcheck.files             lib/libintl.dylib
+depends_lib                 port:gettext \
+                            port:libidn \
+                            port:libiconv
 
+archcheck.files             lib/libintl.dylib \
+                            lib/libidn.dylib \
+                            lib/libiconv.dylib
+
 # Bugs should be reported to MacPorts, not upstream.
 patchfiles-append           patch-bugreport.diff
 
+# Add libidn and libiconv support.
+patchfiles-append           patch-idn-iconv.diff
+
 platform darwin {
     # -lcrypt cannot be used (and is unnecessary) on Mac OS X
     patchfiles-append       patch-lcrypt.diff
@@ -67,6 +76,8 @@
 build.target-append         pos
 build.env                   CC="${configure.cc} ${archflags}" \
                             CONFIG_FILE=${prefix}/etc/whois.conf \
+                            HAVE_LIBIDN=1 \
+                            HAVE_ICONV=1 \
                             LOCALEDIR=${prefix}/share/locale
 build.args                  prefix=${prefix} \
                             INCLUDES="${configure.cflags} ${configure.cppflags}" \

Added: trunk/dports/net/whois/files/patch-idn-iconv.diff
===================================================================
--- trunk/dports/net/whois/files/patch-idn-iconv.diff	                        (rev 0)
+++ trunk/dports/net/whois/files/patch-idn-iconv.diff	2010-09-28 11:23:27 UTC (rev 71950)
@@ -0,0 +1,11 @@
+--- Makefile.org	2010-09-28 13:11:24.000000000 +0200
++++ Makefile	2010-09-28 13:11:44.000000000 +0200
+@@ -22,7 +22,7 @@
+ #LDFLAGS += -Zexe -Dstrncasecmp=strnicmp
+ 
+ # OS X
+-#whois_LDADD += -liconv
++whois_LDADD += -liconv -lidn
+ 
+ ifdef CONFIG_FILE
+ DEFS += -DCONFIG_FILE=\"$(CONFIG_FILE)\"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100928/c16771c7/attachment.html>


More information about the macports-changes mailing list