OSDN Git Service

gettext
authorKazuki Sakamoto <sakamoto@splhack.org>
Wed, 17 Jun 2009 21:27:25 +0000 (06:27 +0900)
committerKazuki Sakamoto <sakamoto@splhack.org>
Wed, 17 Jun 2009 21:27:25 +0000 (06:27 +0900)
devel/gettext/Portfile [new file with mode: 0644]
devel/gettext/files/patch-gettext-tools-Makefile.in [new file with mode: 0644]

diff --git a/devel/gettext/Portfile b/devel/gettext/Portfile
new file mode 100644 (file)
index 0000000..cb5ce0c
--- /dev/null
@@ -0,0 +1,74 @@
+# $Id: Portfile 46138 2009-01-30 05:07:47Z ryandesign@macports.org $
+
+PortSystem              1.0
+PortGroup               muniversal 1.0
+
+name                    gettext
+version                 0.17
+revision                4
+categories              devel
+maintainers             ryandesign
+homepage                http://www.gnu.org/software/gettext/
+master_sites            gnu
+platforms               darwin freebsd linux
+use_parallel_build      yes
+
+description \
+    GNU gettext package
+
+long_description \
+    This is the GNU gettext package. It is interesting for \
+    authors or maintainers of other packages or programs \
+    which they want to see internationalized. As one \
+    step the handling of messages in different languages \
+    should be implemented. For this task GNU gettext \
+    provides the needed tools and library functions.
+
+checksums \
+    md5 58a2bc6d39c0ba57823034d55d65d606 \
+    sha1 c51803d9f745f6ace36bd09c0486d5735ce399cf \
+    rmd160 36df9d4ad2848ec26729781e0d7e25b419e7d261
+
+patchfiles \
+    patch-gettext-tools-Makefile.in
+
+configure.cppflags \
+    -no-cpp-precomp
+
+configure.args \
+    --disable-csharp \
+    --without-emacs \
+    --with-included-gettext \
+    --with-included-glib \
+    --with-included-libcroco \
+    --with-included-libxml
+
+depends_lib \
+    port:libiconv \
+    port:ncurses \
+    port:expat
+
+test.run                yes
+test.target             check
+
+if {[variant_isset universal]} {
+       configure.universal_target  10.4
+}
+
+platform darwin 6 {
+    depends_lib-append \
+        lib:libdl:dlcompat
+}
+
+post-destroot {
+    if {[file exists ${destroot}${prefix}/lib/charset.alias]} {
+        delete ${destroot}${prefix}/lib/charset.alias
+    }
+    if {[file exists ${destroot}${prefix}/share/locale/locale.alias]} {
+        delete ${destroot}${prefix}/share/locale/locale.alias
+    }
+}
+
+livecheck.check         regex
+livecheck.url           http://ftp.gnu.org/gnu/gettext/?C=M&O=D
+livecheck.regex         ${name}-(\[0-9.\]+)\\.tar
diff --git a/devel/gettext/files/patch-gettext-tools-Makefile.in b/devel/gettext/files/patch-gettext-tools-Makefile.in
new file mode 100644 (file)
index 0000000..f44a5c6
--- /dev/null
@@ -0,0 +1,11 @@
+--- gettext-tools/Makefile.in.orig     2007-11-06 17:40:19.000000000 -0600
++++ gettext-tools/Makefile.in  2007-11-08 04:43:48.000000000 -0600
+@@ -724,7 +724,7 @@
+ top_srcdir = @top_srcdir@
+ AUTOMAKE_OPTIONS = 1.5 gnu no-dependencies
+ ACLOCAL_AMFLAGS = -I m4 -I ../gettext-runtime/m4 -I ../autoconf-lib-link/m4 -I ../m4 -I gnulib-m4 -I libgettextpo/gnulib-m4
+-SUBDIRS = doc intl gnulib-lib libgrep src libgettextpo po projects styles misc man m4 tests gnulib-tests examples
++SUBDIRS = doc intl gnulib-lib libgrep src libgettextpo po projects styles misc man m4 tests gnulib-tests
+ # Allow users to use "gnulib-tool --update".