diff options
author | Norikatsu Shigemura <nork@FreeBSD.org> | 2003-05-03 15:16:03 +0000 |
---|---|---|
committer | Norikatsu Shigemura <nork@FreeBSD.org> | 2003-05-03 15:16:03 +0000 |
commit | a8478f4d2009cf41f5866e6ff103bed9dfaac82e (patch) | |
tree | 8f14ed71692145a6205379d8568eaa72bc548302 /japanese/ebview | |
parent | 25070dfbf4b492067624d36aef38f6962acdb30d (diff) | |
download | ports-a8478f4d2009cf41f5866e6ff103bed9dfaac82e.tar.gz ports-a8478f4d2009cf41f5866e6ff103bed9dfaac82e.zip |
Notes
Diffstat (limited to 'japanese/ebview')
-rw-r--r-- | japanese/ebview/Makefile | 8 | ||||
-rw-r--r-- | japanese/ebview/distinfo | 2 | ||||
-rw-r--r-- | japanese/ebview/files/patch-config.h.in | 12 | ||||
-rw-r--r-- | japanese/ebview/files/patch-configure.in | 22 | ||||
-rw-r--r-- | japanese/ebview/files/patch-src::Makefile.am | 19 | ||||
-rw-r--r-- | japanese/ebview/files/patch-src::eb.c | 42 | ||||
-rw-r--r-- | japanese/ebview/files/patch-src::ebview-client.c | 22 | ||||
-rw-r--r-- | japanese/ebview/files/patch-src::ebview.c | 38 | ||||
-rw-r--r-- | japanese/ebview/files/patch-util::Makefile.am | 15 |
9 files changed, 74 insertions, 106 deletions
diff --git a/japanese/ebview/Makefile b/japanese/ebview/Makefile index cb7a47ef14f4..3e3eac11406e 100644 --- a/japanese/ebview/Makefile +++ b/japanese/ebview/Makefile @@ -6,8 +6,7 @@ # PORTNAME= ebview -PORTVERSION= 0.2.0 -PORTREVISION= 2 +PORTVERSION= 0.2.1 CATEGORIES= japanese MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} @@ -17,12 +16,11 @@ COMMENT= Electronic Book Viewer LIB_DEPENDS= eb.7:${PORTSDIR}/japanese/eb -USE_GNOME= imlib USE_GETOPT_LONG= yes -USE_REINPLACE= yes +USE_GNOME= imlib USE_GMAKE= yes -USE_AUTOMAKE_VER= 14 USE_AUTOCONF_VER= 253 +CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" MAKE_ARGS= ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOMAKE="${TRUE}" \ AUTOHEADER="${TRUE}" diff --git a/japanese/ebview/distinfo b/japanese/ebview/distinfo index ec88753c4f66..fd29803bd409 100644 --- a/japanese/ebview/distinfo +++ b/japanese/ebview/distinfo @@ -1 +1 @@ -MD5 (ebview-0.2.0.tar.gz) = 265a37aef3e165f36f7bcae223395274 +MD5 (ebview-0.2.1.tar.gz) = 9b9965949495a83fcb6f8b2603329676 diff --git a/japanese/ebview/files/patch-config.h.in b/japanese/ebview/files/patch-config.h.in new file mode 100644 index 000000000000..398ea43bc152 --- /dev/null +++ b/japanese/ebview/files/patch-config.h.in @@ -0,0 +1,12 @@ +--- config.h.in.orig Sun Apr 13 13:02:31 2003 ++++ config.h.in Fri May 2 19:58:33 2003 +@@ -77,6 +77,9 @@ + /* Define to 1 if you have the `getgid' function. */ + #undef HAVE_GETGID + ++/* Define to 1 if you have the `getopt_long' function. */ ++#undef HAVE_GETOPT_LONG ++ + /* Define to 1 if you have the `getpagesize' function. */ + #undef HAVE_GETPAGESIZE + diff --git a/japanese/ebview/files/patch-configure.in b/japanese/ebview/files/patch-configure.in index a874e9d6d5a1..371da331e1fd 100644 --- a/japanese/ebview/files/patch-configure.in +++ b/japanese/ebview/files/patch-configure.in @@ -1,13 +1,11 @@ ---- configure.in.orig Tue Nov 19 15:04:30 2002 -+++ configure.in Sat Nov 30 09:27:26 2002 -@@ -14,8 +14,8 @@ - AM_GNU_GETTEXT +--- configure.in.orig Sun Apr 13 12:29:30 2003 ++++ configure.in Fri May 2 20:01:19 2003 +@@ -39,7 +39,7 @@ + AC_PROG_GCC_TRADITIONAL + dnl AC_FUNC_SETVBUF_REVERSED + AC_TYPE_SIGNAL +-AC_CHECK_FUNCS(mkdir select strdup strtol) ++AC_CHECK_FUNCS(mkdir select strdup strtol getopt_long) - dnl Checks for libraries. --AM_PATH_GTK(1.2.8) --AM_PATH_IMLIB() -+AM_PATH_GTK(1.2.8,, AC_MSG_ERROR(Cannot find GTK+ 1.2.8), gmodule gthread) -+AM_PATH_GDK_IMLIB() - eb_LIB_EB3 - - dnl Checks for header files. + _mozilla_include_place=/usr/include/mozilla + AC_ARG_WITH(mozilla-includes, diff --git a/japanese/ebview/files/patch-src::Makefile.am b/japanese/ebview/files/patch-src::Makefile.am deleted file mode 100644 index 241686151746..000000000000 --- a/japanese/ebview/files/patch-src::Makefile.am +++ /dev/null @@ -1,19 +0,0 @@ ---- src/Makefile.am.orig Sat Nov 16 15:33:46 2002 -+++ src/Makefile.am Sat Nov 30 09:38:43 2002 -@@ -2,12 +2,12 @@ - - AM_CPPFLAGS= @EBCONF_PTHREAD_CPPFLAGS@ @EBCONF_EBINCS@ \ - @EBCONF_ZLIBINCS@ @EBCONF_INTLINCS@ --AM_CFLAGS = @GTK_CFLAGS@ @IMLIB_CFLAGS@ @EBCONF_PTHREAD_CFLAGS@ --AM_CXXFLAGS = @GTK_CFLAGS@ @IMLIB_CFLAGS@ @EBCONF_PTHREAD_CFLAGS@ --ebview_LDADD = @GTK_LIBS@ @IMLIB_LIBS@ -lgdk_imlib -lpthread -lgthread \ -+AM_CFLAGS = @GTK_CFLAGS@ @GDK_IMLIB_CFLAGS@ @EBCONF_PTHREAD_CFLAGS@ -+AM_CXXFLAGS = @GTK_CFLAGS@ @GDK_IMLIB_CFLAGS@ @EBCONF_PTHREAD_CFLAGS@ -+ebview_LDADD = @GTK_LIBS@ @GDK_IMLIB_LIBS@ \ - @EBCONF_EBLIBS@ @EBCONF_ZLIBLIBS@ @EBCONF_INTLLIBS@ - ebview_LDFLAGS = @EBCONF_PTHREAD_LDFLAGS@ --ebview_client_LDADD = @GTK_LIBS@ @IMLIB_LIBS@ -lgdk_imlib -lpthread \ -+ebview_client_LDADD = @GTK_LIBS@ @GDK_IMLIB_LIBS@ \ - @EBCONF_EBLIBS@ @EBCONF_ZLIBLIBS@ @EBCONF_INTLLIBS@ - ebview_client_LDFLAGS = @EBCONF_PTHREAD_LDFLAGS@ - diff --git a/japanese/ebview/files/patch-src::eb.c b/japanese/ebview/files/patch-src::eb.c deleted file mode 100644 index 1866b1bc8660..000000000000 --- a/japanese/ebview/files/patch-src::eb.c +++ /dev/null @@ -1,42 +0,0 @@ ---- src/eb.c.orig Mon Nov 18 18:13:06 2002 -+++ src/eb.c Mon Feb 24 02:06:33 2003 -@@ -24,6 +24,7 @@ - #include <iconv.h> - #include <langinfo.h> - #include <wchar.h> -+#include <pthread.h> - - - #define MAX_HITS 50 -@@ -1746,7 +1747,8 @@ - DICT_GROUP *group; - char word[65535]; - -- strcpy(word, arg); -+ strncpy(word, arg, sizeof(word)-1); -+ word[sizeof(word)-1] = '\0'; - - group_item = g_list_first(group_list); - while(group_item != NULL){ -@@ -1854,15 +1856,19 @@ - { - gint rc; - gint method; -+ pthread_attr_t thread_attr; - - thread_running = 1; - hit_count = 0; -- rc = pthread_create(&tid, NULL, ebook_search_thread, (void *)word); -+ -+ pthread_attr_init(&thread_attr); -+ pthread_attr_setstacksize(&thread_attr, 256*1024); -+ rc = pthread_create(&tid, &thread_attr, ebook_search_thread, (void *)word); - if(rc != 0){ - perror("pthread_create"); - exit(1); - } -- -+ pthread_attr_destroy(&thread_attr); - - method = ebook_search_method(); - if(method == SEARCH_METHOD_FULL_TEXT){ diff --git a/japanese/ebview/files/patch-src::ebview-client.c b/japanese/ebview/files/patch-src::ebview-client.c index d898c12f3e02..1e7efe467716 100644 --- a/japanese/ebview/files/patch-src::ebview-client.c +++ b/japanese/ebview/files/patch-src::ebview-client.c @@ -1,13 +1,11 @@ ---- src/ebview-client.c.orig Sat Nov 16 15:33:47 2002 -+++ src/ebview-client.c Sat Nov 30 09:49:47 2002 -@@ -1,8 +1,8 @@ - #include <stdio.h> --#include <sys/socket.h> -+#include <unistd.h> - #include <sys/un.h> - #include <sys/types.h> --#include <unistd.h> -+#include <sys/socket.h> - - #include "../config.h" +--- src/ebview-client.c.orig Sat Apr 26 21:59:23 2003 ++++ src/ebview-client.c Fri May 2 20:14:43 2003 +@@ -30,7 +30,7 @@ + /* The total length of the address includes the sun_family + element */ +-#ifdef __FreeBSD__ ++#ifndef HAVE_GETOPT_LONG + addrLength = sizeof(address.sun_len) + sizeof(address.sun_family) + strlen(address.sun_path) + 1; + address.sun_len = addrLength; + #else diff --git a/japanese/ebview/files/patch-src::ebview.c b/japanese/ebview/files/patch-src::ebview.c new file mode 100644 index 000000000000..7cd42ceafd68 --- /dev/null +++ b/japanese/ebview/files/patch-src::ebview.c @@ -0,0 +1,38 @@ +--- src/ebview.c.orig Sun Apr 13 18:43:30 2003 ++++ src/ebview.c Fri May 2 20:31:01 2003 +@@ -20,9 +20,16 @@ + #include <sys/wait.h> + #include <sys/socket.h> + #include <sys/un.h> +-#include <getopt.h> + #include <pthread.h> + ++#ifdef HAVE_CONFIG_H ++#include "../config.h" ++#endif ++ ++#ifdef HAVE_GETOPT_LONG ++#include <getopt.h> ++#endif ++ + #include "defs.h" + #include "global.h" + +@@ -200,7 +207,7 @@ + optind = 0; + + while(1){ +-#ifdef __FreeBSD__ ++#ifndef HAVE_GETOPT_LONG + c = getopt(g_argc, g_argv, "sprig:"); + #else + c = getopt_long(g_argc, g_argv, "sprig:", +@@ -364,7 +371,7 @@ + /* The total length of the address includes the sun_family + element */ + +-#ifdef __FreeBSD__ ++#ifndef HAVE_GETOPT_LONG + addrLength = sizeof(address.sun_len) + sizeof(address.sun_family) + strlen(address.sun_path) + 1; + address.sun_len = addrLength; + #else diff --git a/japanese/ebview/files/patch-util::Makefile.am b/japanese/ebview/files/patch-util::Makefile.am deleted file mode 100644 index 3a673bbe54f7..000000000000 --- a/japanese/ebview/files/patch-util::Makefile.am +++ /dev/null @@ -1,15 +0,0 @@ ---- util/Makefile.am.orig Sat Nov 16 15:33:50 2002 -+++ util/Makefile.am Sat Nov 30 09:52:44 2002 -@@ -2,9 +2,9 @@ - - AM_CPPFLAGS= @EBCONF_PTHREAD_CPPFLAGS@ @EBCONF_EBINCS@ \ - @EBCONF_ZLIBINCS@ @EBCONF_INTLINCS@ --AM_CFLAGS = @GTK_CFLAGS@ @IMLIB_CFLAGS@ @EBCONF_PTHREAD_CFLAGS@ --AM_CXXFLAGS = @GTK_CFLAGS@ @IMLIB_CFLAGS@ @EBCONF_PTHREAD_CFLAGS@ --ebdump_LDADD = @GTK_LIBS@ @IMLIB_LIBS@\ -+AM_CFLAGS = @GTK_CFLAGS@ @GDK_IMLIB_CFLAGS@ @EBCONF_PTHREAD_CFLAGS@ -+AM_CXXFLAGS = @GTK_CFLAGS@ @GDK_IMLIB_CFLAGS@ @EBCONF_PTHREAD_CFLAGS@ -+ebdump_LDADD = @GTK_LIBS@ @GDK_IMLIB_LIBS@\ - @EBCONF_EBLIBS@ @EBCONF_ZLIBLIBS@ @EBCONF_INTLLIBS@ - ebdump_LDFLAGS = @EBCONF_PTHREAD_LDFLAGS@ - |