[50431] trunk/dports/textproc

takanori at macports.org takanori at macports.org
Thu Apr 30 15:17:24 PDT 2009


Revision: 50431
          http://trac.macports.org/changeset/50431
Author:   takanori at macports.org
Date:     2009-04-30 15:17:24 -0700 (Thu, 30 Apr 2009)
Log Message:
-----------
New port: eblook

Added Paths:
-----------
    trunk/dports/textproc/eblook/
    trunk/dports/textproc/eblook/Portfile
    trunk/dports/textproc/eblook/files/
    trunk/dports/textproc/eblook/files/patch-configure.diff

Added: trunk/dports/textproc/eblook/Portfile
===================================================================
--- trunk/dports/textproc/eblook/Portfile	                        (rev 0)
+++ trunk/dports/textproc/eblook/Portfile	2009-04-30 22:17:24 UTC (rev 50431)
@@ -0,0 +1,61 @@
+# $Id$
+
+PortSystem      1.0
+
+name            eblook
+set ver_main    1.6.1
+set ver_media   20080116
+version         ${ver_main}-media-${ver_media}
+categories      textproc japanese
+maintainers     nomaintainer
+description     Interactive EB interface command for seraching words in CD-ROM books.
+long_description \
+                Eblook supports to access CD-ROM books of EB, EBG, EBXA and EPWING \
+                formats which are popular in Japan. Including the media patch.
+platforms       darwin
+homepage        http://green.ribbon.to/~ikazuhiro/lookup/lookup.html#EBLOOK
+distfiles       ${name}-${ver_main}${extract.suffix}:main \
+                ${name}-${ver_main}+media-${ver_media}.patch.gz:media
+master_sites    http://openlab.jp/edict/eblook/dist/:main \
+                http://green.ribbon.to/~ikazuhiro/lookup/files/:media
+patchfiles      patch-configure.diff
+checksums       ${name}-${ver_main}${extract.suffix} rmd160 32c37963d2627642a5799dd2a4222c511143b8d6 \
+                ${name}-${ver_main}+media-${ver_media}.patch.gz rmd160 bd4d0c42b2a62bd10dd34c03ee4a5be892b691d2
+
+depends_lib     port:eb \
+                port:gettext \
+                port:libiconv \
+                port:ncurses \
+                port:readline \
+                port:zlib
+
+extract.only    ${name}-${ver_main}${extract.suffix}
+worksrcdir      ${name}-${ver_main}
+post-extract {
+    system "cd ${worksrcpath} && gzip -dc ${distpath}/${name}-${ver_main}+media-${ver_media}.patch.gz | patch -p0"
+}
+
+configure.args   --infodir=${prefix}/share/info \
+                 --with-readline \
+                 --with-pager
+
+#use_parallel_build yes
+
+#test.run        yes
+#test.target     check
+
+post-destroot {
+    xinstall -d -m 755 ${destroot}/${prefix}/share/doc/${name}
+    set docs {AUTHORS COPYING ChangeLog INSTALL NEWS README VERSION}
+    foreach f ${docs} {
+        xinstall -m 644 ${worksrcpath}/${f} ${destroot}/${prefix}/share/doc/${name}
+    }
+
+    delete ${destroot}${prefix}/share/info/dir
+}
+
+universal_variant   no
+
+livecheck.check regex
+livecheck.version ${ver_main}+media-${ver_media}
+livecheck.regex "${name}-(\[0-9.a-z\+\-\]+).patch.gz"


Property changes on: trunk/dports/textproc/eblook/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/textproc/eblook/files/patch-configure.diff
===================================================================
--- trunk/dports/textproc/eblook/files/patch-configure.diff	                        (rev 0)
+++ trunk/dports/textproc/eblook/files/patch-configure.diff	2009-04-30 22:17:24 UTC (rev 50431)
@@ -0,0 +1,86 @@
+--- configure	2004-06-19 11:30:49.000000000 +0900
++++ configure	2007-09-16 20:06:43.000000000 +0900
+@@ -21311,14 +21311,82 @@
+ 
+ 
+ 
++ac_func=iconv
++save_LIBS="$LIBS"
++LIBS="$LIBS -L/opt/local/lib -liconv"
++as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
++echo "$as_me:$LINENO: checking for $ac_func" >&5
++echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
++if eval "test \"\${$as_ac_var+set}\" = set"; then
++  echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++  cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h.  */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h.  */
+ 
++#ifdef HAVE_ICONV_H
++# include <iconv.h>
++#endif
++
++int
++main ()
++{
++iconv_open("fr", "to");
++  ;
++  return 0;
++}
++_ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
++  (eval $ac_link) 2>conftest.er1
++  ac_status=$?
++  grep -v '^ *+' conftest.er1 >conftest.err
++  rm -f conftest.er1
++  cat conftest.err >&5
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); } &&
++	 { ac_try='test -z "$ac_c_werror_flag"
++			 || test ! -s conftest.err'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; } &&
++	 { ac_try='test -s conftest$ac_exeext'
++  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  echo "$as_me:$LINENO: \$? = $ac_status" >&5
++  (exit $ac_status); }; }; then
++  eval "$as_ac_var=yes"
++else
++  echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++eval "$as_ac_var=no"
++LIBS="$save_LIBS"
++fi
++rm -f conftest.err conftest.$ac_objext \
++      conftest$ac_exeext conftest.$ac_ext
++fi
++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
++echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
++if test `eval echo '${'$as_ac_var'}'` = yes; then
++  cat >>confdefs.h <<_ACEOF
++#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
++_ACEOF
++
++fi
+ 
+ 
+ 
+ 
+ 
+ 
+-for ac_func in iconv memcpy nl_langinfo setlocale strchr strdup strerror strtol vsnprintf isatty
++for ac_func in memcpy nl_langinfo setlocale strchr strdup strerror strtol vsnprintf isatty
+ do
+ as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
+ echo "$as_me:$LINENO: checking for $ac_func" >&5
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090430/8e7b0359/attachment.html>


More information about the macports-changes mailing list