From owner-svn-ports-all@FreeBSD.ORG Mon Jun 30 20:58:13 2014 Return-Path: Delivered-To: svn-ports-all@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 ESMTPS id 894F182D; Mon, 30 Jun 2014 20:58:13 +0000 (UTC) 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)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 76E6124A4; Mon, 30 Jun 2014 20:58:13 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s5UKwDJm016583; Mon, 30 Jun 2014 20:58:13 GMT (envelope-from bapt@svn.freebsd.org) Received: (from bapt@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s5UKwDhg016581; Mon, 30 Jun 2014 20:58:13 GMT (envelope-from bapt@svn.freebsd.org) Message-Id: <201406302058.s5UKwDhg016581@svn.freebsd.org> From: Baptiste Daroussin Date: Mon, 30 Jun 2014 20:58:13 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r359919 - head/japanese/gjiten X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jun 2014 20:58:13 -0000 Author: bapt Date: Mon Jun 30 20:58:12 2014 New Revision: 359919 URL: http://svnweb.freebsd.org/changeset/ports/359919 QAT: https://qat.redports.org/buildarchive/r359919/ Log: Support stage [1] While here: - Use options helpers when possible - Remove update-desktop-database (it is useless for this port) PR: 190661 Submitted by: darksoul@darkbsd.org Modified: head/japanese/gjiten/Makefile head/japanese/gjiten/pkg-plist Modified: head/japanese/gjiten/Makefile ============================================================================== --- head/japanese/gjiten/Makefile Mon Jun 30 20:53:41 2014 (r359918) +++ head/japanese/gjiten/Makefile Mon Jun 30 20:58:12 2014 (r359919) @@ -3,6 +3,7 @@ PORTNAME= gjiten PORTVERSION= 2.6 +PORTREVISION= 1 CATEGORIES= japanese gnome MASTER_SITES= http://gjiten.sourceforge.net/ @@ -14,26 +15,27 @@ UTF8_DESC= Use UTF-8 edict dictionaries KANJIPAD_DESC= Use Kanjipad USE_GNOME= gtk20 gconf2 libglade2 libgnomeui -USES= gmake pkgconfig +USES= gmake libtool pkgconfig INSTALLS_OMF= yes GNU_CONFIGURE= yes CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib PORTDOCS= gjiten-doc.ja.html -MAN1= gjiten.1 GCONF_SCHEMAS= gjiten-dicfiles.schemas gjiten.schemas -NO_STAGE= yes -.include +OPTIONS_SUB= yes -.if ${PORT_OPTIONS:MNLS} -USES+= gettext -PLIST_SUB+= NLS="" -.else -PLIST_SUB+= NLS="@comment " -MAKE_ENV+= USE_NLS=no -.endif +NLS_USES= gettext +NLS_MAKE_ENV_OFF= USE_NLS=no + +KANJIPAD_RUN_DEPENDS= ${LOCALBASE}/bin/kanjipad:${PORTSDIR}/japanese/kanjipad +BUILD_DEPENDS= ${LOCALBASE}/bin/xmlto:${PORTSDIR}/textproc/xmlto + +DICTIONARIES= kanjidic edict compdic +GJITEN_DICS= ${DATADIR}/dics/ + +.include .if ${PORT_OPTIONS:MUTF8} EDICT_DIR= ${LOCALBASE}/share/dict/edict-utf-8 @@ -46,32 +48,20 @@ RUN_DEPENDS+= ${EDICT_FILE}:${PORTSDIR}/ USES+= iconv:build .endif -DICTIONARIES= kanjidic edict compdic -GJITEN_DICS= ${DATADIR}/dics/ - -.if ${PORT_OPTIONS:MKANJIPAD} -RUN_DEPENDS+= ${LOCALBASE}/bin/kanjipad:${PORTSDIR}/japanese/kanjipad -.endif - -BUILD_DEPENDS+= ${LOCALBASE}/bin/xmlto:${PORTSDIR}/textproc/xmlto - post-install: -.if ${PORT_OPTIONS:MDOCS} - @${INSTALL} -d ${DOCSDIR} + ${INSTALL} -d ${STAGEDIR}${DOCSDIR} .for f in ${PORTDOCS} - ${INSTALL_DATA} ${WRKSRC}/help/ja/${f} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/help/ja/${f} ${STAGEDIR}${DOCSDIR} .endfor -.endif - @${INSTALL} -d ${GJITEN_DICS} + ${INSTALL} -d ${STAGEDIR}${GJITEN_DICS} .if ${PORT_OPTIONS:MUTF8} .for f in ${DICTIONARIES} - ${INSTALL_DATA} ${EDICT_DIR}/${f} ${GJITEN_DICS} + ${INSTALL_DATA} ${EDICT_DIR}/${f} ${STAGEDIR}${GJITEN_DICS} .endfor .else .for f in ${DICTIONARIES} - ${ICONV_CMD} -c -f EUC-JP -t UTF-8 ${EDICT_DIR}/${f} > ${GJITEN_DICS}/${f} + ${ICONV_CMD} -c -f EUC-JP -t UTF-8 ${EDICT_DIR}/${f} > ${STAGEDIR}${GJITEN_DICS}/${f} .endfor .endif - -@update-desktop-database .include Modified: head/japanese/gjiten/pkg-plist ============================================================================== --- head/japanese/gjiten/pkg-plist Mon Jun 30 20:53:41 2014 (r359918) +++ head/japanese/gjiten/pkg-plist Mon Jun 30 20:58:12 2014 (r359919) @@ -1,4 +1,5 @@ bin/gjiten +man/man1/gjiten.1.gz share/application-registry/gjiten.desktop share/applications/gjiten.desktop %%DATADIR%%/dics/compdic @@ -26,7 +27,3 @@ share/pixmaps/left_ptr_question.png @dirrmtry share/locale/de_CH @dirrmtry share/gnome/help/gjiten/C @dirrmtry share/gnome/help/gjiten -@dirrmtry share/gnome/help -@dirrmtry share/gnome -@exec %%LOCALBASE%%/bin/update-desktop-database > /dev/null || /usr/bin/true -@unexec %%LOCALBASE%%/bin/update-desktop-database > /dev/null || /usr/bin/true