Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Sep 2015 18:21:06 +0000 (UTC)
From:      Jung-uk Kim <jkim@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r396526 - head/korean/imhangul
Message-ID:  <201509091821.t89IL6jB028060@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jkim
Date: Wed Sep  9 18:21:06 2015
New Revision: 396526
URL: https://svnweb.freebsd.org/changeset/ports/396526

Log:
  Strip binary and modernize the port.

Modified:
  head/korean/imhangul/Makefile
  head/korean/imhangul/pkg-plist

Modified: head/korean/imhangul/Makefile
==============================================================================
--- head/korean/imhangul/Makefile	Wed Sep  9 18:17:25 2015	(r396525)
+++ head/korean/imhangul/Makefile	Wed Sep  9 18:21:06 2015	(r396526)
@@ -3,7 +3,7 @@
 
 PORTNAME=	imhangul
 PORTVERSION=	${GTKVER}.1.1
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	korean
 MASTER_SITES=	GOOGLE_CODE
 
@@ -15,30 +15,19 @@ LICENSE=	GPLv2
 LIB_DEPENDS=	libhangul.so:${PORTSDIR}/korean/libhangul
 
 GNU_CONFIGURE=	yes
+INSTALL_TARGET=	install-strip
+PLIST_SUB=	GTKVER=${GTKVER}.0
+USE_GNOME=	gtk${GTKVER}0
 USES=		gmake libtool pkgconfig tar:bzip2
 
 OPTIONS_DEFINE=	GTK3 NLS
+OPTIONS_SUB=	yes
 
-.include <bsd.port.options.mk>
+GTK3_VARS=	GTKVER=3
+GTK3_VARS_OFF=	GTKVER=2
 
-.if ${PORT_OPTIONS:MGTK3}
-USE_GNOME=	gtk30
-GTKVER=	3
-PLIST_SUB=	GTK2="@comment " GTK3=""
-.else
-USE_GNOME=	gtk20
-GTKVER=	2
-PLIST_SUB=	GTK2="" GTK3="@comment "
-.endif
-PLIST_SUB+=	GTKVER="${GTKVER}.0"
-
-.if ${PORT_OPTIONS:MNLS}
-USES+=		gettext
-CPPFLAGS+=	-I${LOCALBASE}/include
-LDFLAGS+=	-L${LOCALBASE}/lib
-PLIST_SUB+=	NLS=""
-.else
-PLIST_SUB+=	NLS="@comment "
-.endif
+NLS_CPPFLAGS=	-I${LOCALBASE}/include
+NLS_LDFLAGS=	-L${LOCALBASE}/lib
+NLS_USES=	gettext
 
 .include <bsd.port.mk>

Modified: head/korean/imhangul/pkg-plist
==============================================================================
--- head/korean/imhangul/pkg-plist	Wed Sep  9 18:17:25 2015	(r396525)
+++ head/korean/imhangul/pkg-plist	Wed Sep  9 18:21:06 2015	(r396526)
@@ -1,7 +1,5 @@
 lib/gtk-%%GTKVER%%/immodules/im-hangul.so
-%%GTK2%%%%NLS%%share/locale/ko/LC_MESSAGES/im-hangul.mo
-%%GTK2%%@exec %D/bin/gtk-query-immodules-2.0 --update-cache
-%%GTK2%%@unexec %D/bin/gtk-query-immodules-2.0 --update-cache
-%%GTK3%%%%NLS%%share/locale/ko/LC_MESSAGES/im-hangul-3.0.mo
-%%GTK3%%@exec %D/bin/gtk-query-immodules-3.0 --update-cache
-%%GTK3%%@unexec %D/bin/gtk-query-immodules-3.0 --update-cache
+%%NO_GTK3%%%%NLS%%share/locale/ko/LC_MESSAGES/im-hangul.mo
+%%GTK3%%%%NLS%%share/locale/ko/LC_MESSAGES/im-hangul-%%GTKVER%%.mo
+@exec %D/bin/gtk-query-immodules-%%GTKVER%% --update-cache
+@unexec %D/bin/gtk-query-immodules-%%GTKVER%% --update-cache



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201509091821.t89IL6jB028060>