Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Jun 2014 09:12:17 +0000 (UTC)
From:      Pawel Pekala <pawel@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r357660 - head/misc/mc-light
Message-ID:  <201406130912.s5D9CH0B093611@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pawel
Date: Fri Jun 13 09:12:16 2014
New Revision: 357660
URL: http://svnweb.freebsd.org/changeset/ports/357660
QAT: https://qat.redports.org/buildarchive/r357660/

Log:
  - Add staging support
  - Use options subs, helpers

Modified:
  head/misc/mc-light/Makefile
  head/misc/mc-light/pkg-plist

Modified: head/misc/mc-light/Makefile
==============================================================================
--- head/misc/mc-light/Makefile	Fri Jun 13 08:59:03 2014	(r357659)
+++ head/misc/mc-light/Makefile	Fri Jun 13 09:12:16 2014	(r357660)
@@ -15,10 +15,6 @@ RUN_DEPENDS=	gawk:${PORTSDIR}/lang/gawk
 
 CONFLICTS=	mc-4.7*
 
-OPTIONS_DEFINE=	NLS SUBSHELL MC_IN_MC
-SUBSHELL_DESC=	Build with subshell support (only for bash!)
-MC_IN_MC_DESC=	Allow run mc inside mc (useful for mcedit)
-
 USES=		pkgconfig iconv gmake
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS+=--with-included-slang \
@@ -28,31 +24,25 @@ CONFIGURE_ARGS+=--with-included-slang \
 		--without-gpm-mouse \
 		--with-edit
 
-MAN1=		mc.1 mcedit.1
-MAN8=		mcserv.8
+OPTIONS_DEFINE=	NLS SUBSHELL MC_IN_MC
+OPTIONS_SUB=	yes
+
+SUBSHELL_DESC=	Build with subshell support (only for bash!)
+SUBSHELL_CONFIGURE_WITH=	subshell
+
+MC_IN_MC_DESC=	Allow run mc inside mc (useful for mcedit)
+MC_IN_MC_CPPFLAGS=	-DMC_IN_MC_ALLOWED
 
-NO_STAGE=	yes
-.include <bsd.port.options.mk>
+NLS_CONFIGURE_ENABLE=	nls
+NLS_USES=	gettext
 
-.if ! ${PORT_OPTIONS:MSUBSHELL}
-CONFIGURE_ARGS+=--without-subshell
-.endif
-
-.if ${PORT_OPTIONS:MNLS}
-USES+=		gettext
-PLIST_SUB+=	NLS=""
-.else
-CONFIGURE_ARGS+=--disable-nls
-PLIST_SUB+=	NLS="@comment "
-.endif
-
-.if ${PORT_OPTIONS:MMC_IN_MC}
-CPPFLAGS+=	-DMC_IN_MC_ALLOWED
-.endif
+post-patch:
+	@${REINPLACE_CMD} '/destdir/ s|gnulocaledir|DESTDIR)$$(&|' \
+		${WRKSRC}/po/Makefile.in.in
 
 post-install:
 .for i in a arfs audio cpio deb esp ftplist hp48 iso lha lslR mailfs patchfs rar rpm trpm uarj uha zip zoo
-	${CHMOD} 755 ${PREFIX}/share/mc/extfs/${i}
+	${CHMOD} 755 ${STAGEDIR}${PREFIX}/share/mc/extfs/${i} 
 .endfor
 
 .include <bsd.port.mk>

Modified: head/misc/mc-light/pkg-plist
==============================================================================
--- head/misc/mc-light/pkg-plist	Fri Jun 13 08:59:03 2014	(r357659)
+++ head/misc/mc-light/pkg-plist	Fri Jun 13 09:12:16 2014	(r357660)
@@ -2,6 +2,9 @@ bin/mc
 bin/mcedit
 bin/mcmfmt
 bin/mcserv
+man/man1/mc.1.gz
+man/man1/mcedit.1.gz
+man/man8/mcserv.8.gz
 share/mc/FAQ
 share/mc/bin/mcfn_install
 share/mc/codepages/7bit.cp



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