From owner-svn-ports-head@FreeBSD.ORG Wed Oct 2 20:50:36 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id B6BB8CC1; Wed, 2 Oct 2013 20:50:36 +0000 (UTC) (envelope-from makc@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 9503027D0; Wed, 2 Oct 2013 20:50:36 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r92KoaTJ032338; Wed, 2 Oct 2013 20:50:36 GMT (envelope-from makc@svn.freebsd.org) Received: (from makc@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r92KoZ86032178; Wed, 2 Oct 2013 20:50:35 GMT (envelope-from makc@svn.freebsd.org) Message-Id: <201310022050.r92KoZ86032178@svn.freebsd.org> From: Max Brazhnikov Date: Wed, 2 Oct 2013 20:50:35 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r329107 - in head/textproc/stardict3: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Oct 2013 20:50:36 -0000 Author: makc Date: Wed Oct 2 20:50:35 2013 New Revision: 329107 URL: http://svnweb.freebsd.org/changeset/ports/329107 Log: - Update patches to fix build on 8.x (with old zlib) and 10 (unistd.h) - gnomehack -> pathfix - Convert LIB_DEPENDS to new syntax - Support staging Modified: head/textproc/stardict3/Makefile head/textproc/stardict3/files/patch-lib__src__libcommon.cpp head/textproc/stardict3/files/patch-lib__src__libcommon.h head/textproc/stardict3/pkg-plist Modified: head/textproc/stardict3/Makefile ============================================================================== --- head/textproc/stardict3/Makefile Wed Oct 2 20:37:03 2013 (r329106) +++ head/textproc/stardict3/Makefile Wed Oct 2 20:50:35 2013 (r329107) @@ -10,8 +10,8 @@ DIST_SUBDIR= stardict MAINTAINER= makc@FreeBSD.org COMMENT= Dictionary lookup program written in Gtk2 -LIB_DEPENDS= sigc-2.0.0:${PORTSDIR}/devel/libsigc++20 \ - enchant.1:${PORTSDIR}/textproc/enchant +LIB_DEPENDS= libsigc-2.0.so:${PORTSDIR}/devel/libsigc++20 \ + libenchant.so:${PORTSDIR}/textproc/enchant RUN_DEPENDS= xdg-open:${PORTSDIR}/devel/xdg-utils GNU_CONFIGURE= yes @@ -21,8 +21,7 @@ CONFIGURE_ARGS= --disable-festival \ --disable-espeak \ --disable-updateinfo USE_BZIP2= yes -USE_GNOME= gnomehack -USES= gettext gmake pkgconfig +USES= gettext gmake pathfix pkgconfig CONFIGURE_WRKSRC= ${WRKSRC}/dict BUILD_WRKSRC= ${CONFIGURE_WRKSRC} INSTALL_WRKSRC= ${CONFIGURE_WRKSRC} @@ -34,7 +33,6 @@ OPTIONS_DEFAULT= ${OPTIONS_DEFINE} CONFLICTS_INSTALL= stardict-2.[0-9]* -NO_STAGE= yes .include .if ${PORT_OPTIONS:MGNOME} @@ -50,8 +48,6 @@ PLIST_SUB= GNOME="@comment " MAKE_ARGS+= AUTOMAKE="${TRUE}" ACLOCAL="${TRUE}" .endif -MAN1= stardict.1 - post-patch: .if !${PORT_OPTIONS:MGNOME} ${REINPLACE_CMD} -e '/DATADIRNAME=lib/s,lib,share,' ${WRKSRC}/dict/m4/intltool.m4 @@ -67,7 +63,4 @@ pre-configure: ${SETENV} ${CONFIGURE_ENV} ./${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS} && \ ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${_MAKE_JOBS} ${MAKE_ARGS} ${ALL_TARGET} -post-install: - @${CAT} ${PKGMESSAGE} - .include Modified: head/textproc/stardict3/files/patch-lib__src__libcommon.cpp ============================================================================== --- head/textproc/stardict3/files/patch-lib__src__libcommon.cpp Wed Oct 2 20:37:03 2013 (r329106) +++ head/textproc/stardict3/files/patch-lib__src__libcommon.cpp Wed Oct 2 20:50:35 2013 (r329107) @@ -1,11 +1,10 @@ ---- ./lib/src/libcommon.cpp.orig 2011-07-08 12:35:48.000000000 +0000 -+++ ./lib/src/libcommon.cpp 2012-12-11 07:48:00.601016758 +0000 -@@ -599,7 +599,7 @@ - - int unpack_zlib(const char* arch_file_name, const char* out_file_name) - { -- zip::gzFile in(gzopen(arch_file_name, "rb")); -+ zip::gzFileWrapper in(gzopen(arch_file_name, "rb")); - if(!in) { - g_critical("Unable to open archive file: %s.", arch_file_name); - return EXIT_FAILURE; +--- ./lib/src/libcommon.cpp.orig 2012-01-13 06:21:34.000000000 +0000 ++++ ./lib/src/libcommon.cpp 2013-10-02 15:54:43.701934693 +0000 +@@ -27,6 +27,7 @@ + #include + #include + #include ++#include + #include "libcommon.h" + #ifdef _WIN32 + # include Modified: head/textproc/stardict3/files/patch-lib__src__libcommon.h ============================================================================== --- head/textproc/stardict3/files/patch-lib__src__libcommon.h Wed Oct 2 20:37:03 2013 (r329106) +++ head/textproc/stardict3/files/patch-lib__src__libcommon.h Wed Oct 2 20:50:35 2013 (r329107) @@ -1,11 +1,14 @@ ---- ./lib/src/libcommon.h.orig 2011-07-08 12:32:09.000000000 +0000 -+++ ./lib/src/libcommon.h 2012-12-11 07:48:00.604014902 +0000 -@@ -188,7 +188,7 @@ +--- ./lib/src/libcommon.h.orig 2012-01-13 06:21:34.000000000 +0000 ++++ ./lib/src/libcommon.h 2013-10-02 15:13:21.563936478 +0000 +@@ -188,7 +188,11 @@ } namespace zip { --typedef ResourceWrapper gzFile; -+typedef ResourceWrapper gzFileWrapper; ++#if ZLIB_VERNUM > 0x1250 ++typedef ResourceWrapper gzFile; ++#else + typedef ResourceWrapper gzFile; ++#endif } /* Create a new temporary file. Return file name in file name encoding. Modified: head/textproc/stardict3/pkg-plist ============================================================================== --- head/textproc/stardict3/pkg-plist Wed Oct 2 20:37:03 2013 (r329106) +++ head/textproc/stardict3/pkg-plist Wed Oct 2 20:50:35 2013 (r329107) @@ -20,6 +20,7 @@ lib/stardict/plugins/stardict_wordnet_pa lib/stardict/plugins/stardict_xdxf_parsedata.la lib/stardict/plugins/stardict_xdxf_parsedata.so %%GNOME%%libdata/bonobo/servers/GNOME_Stardict.server +man/man1/stardict.1.gz share/applications/stardict.desktop %%GNOME%%share/gnome/help/stardict/C/figures/acrobat_toolbar.png %%GNOME%%share/gnome/help/stardict/C/figures/portable_apps_menu.png