svn commit: r354436 - in head/japanese/lynx: . files

Pawel Pekala pawel at FreeBSD.org
Sun May 18 16:21:51 UTC 2014


Author: pawel
Date: Sun May 18 16:21:50 2014
New Revision: 354436
URL: http://svnweb.freebsd.org/changeset/ports/354436
QAT: https://qat.redports.org/buildarchive/r354436/

Log:
  - Add staging support
  - Convert to USES=tar:bzip2
  - Use @sample for configuration files
  - Remove Enable word from options descriptions

Added:
  head/japanese/lynx/files/patch-makefile.in
     - copied, changed from r354307, head/japanese/lynx/files/patch-aa
Deleted:
  head/japanese/lynx/files/patch-aa
Modified:
  head/japanese/lynx/Makefile
  head/japanese/lynx/pkg-plist

Modified: head/japanese/lynx/Makefile
==============================================================================
--- head/japanese/lynx/Makefile	Sun May 18 16:10:50 2014	(r354435)
+++ head/japanese/lynx/Makefile	Sun May 18 16:21:50 2014	(r354436)
@@ -3,6 +3,7 @@
 
 PORTNAME=	lynx
 DISTVERSION=	${VERSION}.${MINOR_VERSION:S/.//}
+PORTREVISION=	1
 CATEGORIES=	japanese www ipv6
 MASTER_SITES=	http://lynx.isc.org/current/ \
 		http://ftp2.uk.freebsd.org/sites/lynx.isc.org/current/
@@ -18,7 +19,7 @@ MINOR_VERSION=	rel.1
 
 CONFLICTS=	lynx-2.* ja-lynx-2.8.8.*
 
-USE_BZIP2=	yes
+USES=		tar:bzip2
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--with-screen=ncurses --with-zlib --libdir="${L_LIB}" \
 		--enable-nsl-fork --enable-ipv6 \
@@ -26,21 +27,20 @@ CONFIGURE_ARGS=	--with-screen=ncurses --
 		--with-bzlib
 MAKE_ARGS=	helpdir=${L_HELP} docdir=${DOCSDIR}
 MAKEFILE=	makefile
+INSTALL_TARGET=	install-full
 
 WRKSRC=		${WRKDIR}/${PORTNAME}${VERSION:S/./-/g}
 L_LIB=		${PREFIX}/etc
 L_HELP=		${PREFIX}/share/lynx_help
 
-MAN1=		lynx.1
-
 MAKE_JOBS_UNSAFE=yes
 
 OPTIONS_DEFINE=	JAPANESE_UTF8 COLOR_STYLE DEFAULT_COLORS DOCS
 OPTIONS_SUB=	yes
 
-JAPANESE_UTF8_DESC=	Enable experimental Japanese UTF-8 logic
-COLOR_STYLE_DESC=	Enable color style (ncurses/curses)
-DEFAULT_COLORS_DESC=	Enable default colors (ncurses/slang)
+JAPANESE_UTF8_DESC=	Experimental Japanese UTF-8 logic
+COLOR_STYLE_DESC=	Color style (ncurses/curses)
+DEFAULT_COLORS_DESC=	Default colors (ncurses/slang)
 
 JAPANESE_UTF8_USES=		iconv
 JAPANESE_UTF8_CONFIGURE_ON=	${ICONV_CONFIGURE_ARG}
@@ -48,25 +48,10 @@ JAPANESE_UTF8_CONFIGURE_ENABLE=	japanese
 COLOR_STYLE_CONFIGURE_ENABLE=	color-style
 DEFAULT_COLORS_CONFIGURE_ENABLE=default-colors
 
-NO_STAGE=	yes
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MDOCS}
-INSTALL_TARGET=	install-full
-.else
-INSTALL_TARGET=	install install-help
-.endif
-
 # Change "cd foo && $(MAKE_RECUR)" into "$(MAKE_RECUR) -C foo" to unbreak
 # parallel builds
 post-patch:
 	@${REINPLACE_CMD} -E 's|cd (.+) && (\$$\(MAKE_RECUR\))|\2 -C \1|' \
 		${WRKSRC}/${MAKEFILE}.in
 
-post-install:
-.if ${PORT_OPTIONS:MDOCS}
-	@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
-.endif
-	@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${L_HELP}
-
 .include <bsd.port.mk>

Copied and modified: head/japanese/lynx/files/patch-makefile.in (from r354307, head/japanese/lynx/files/patch-aa)
==============================================================================
--- head/japanese/lynx/files/patch-aa	Sat May 17 09:56:00 2014	(r354307, copy source)
+++ head/japanese/lynx/files/patch-makefile.in	Sun May 18 16:21:50 2014	(r354436)
@@ -1,46 +1,34 @@
---- makefile.in.orig	2008-09-22 07:49:47.000000000 +0900
-+++ makefile.in	2010-05-01 11:16:06.000000000 +0900
-@@ -381,14 +381,9 @@
- 		if test "$(COMPRESS_PROG)" != "" ; then \
- 			(cd $(HELPDIR) && $(COMPRESS_PROG) $$files ) \
- 		fi'
--	@echo Updating $(sysconfdir)/lynx.cfg
--	@ECHO_CC@$(SHELL) -c \
--	'if test -f $(SYSCONFDIR)/lynx.cfg ; then \
--		mv $(SYSCONFDIR)/lynx.cfg $(SYSCONFDIR)/lynx.tmp ; \
--	else \
--		cp $(srcdir)/lynx.cfg $(SYSCONFDIR)/lynx.tmp ; \
--	fi'
--	@echo Updating $(sysconfdir)/lynx.cfg to point to installed help-files
-+	@echo Updating $(sysconfdir)/lynx.cfg.default
-+	cp $(srcdir)/lynx.cfg $(SYSCONFDIR)/lynx.tmp ;
-+	@echo Updating $(sysconfdir)/lynx.cfg.default to point to installed help-files
- 	@ECHO_CC at sed	-e '/^HELPFILE:http/s!^!#!' \
- 		-e '/^#HELPFILE:file/s!#!!' \
- 		$(SYSCONFDIR)/lynx.tmp | \
-@@ -396,9 +391,9 @@
+--- makefile.in.orig	2008-09-22 00:49:47.000000000 +0200
++++ makefile.in	2014-05-18 13:31:04.012681258 +0200
+@@ -319,7 +319,7 @@
+ 	fi'
+ 	$(SHELL) -c 'for name in COPYING COPYHEADER; do \
+ 		cd $(HELPDIR) && rm -f $$name ;\
+-		cd $(HELPDIR) && ( $(LN_S) $(DOCDIR)/$$name . || cp $(DOCDIR)/$$name . );\
++		cd $(HELPDIR) && ( $(LN_S) $(docdir)/$$name . || cp $(DOCDIR)/$$name . );\
+ 		done'
+ 	-$(SHELL) -c 'case `id|sed -e "s/(.*//"` in uid=0) chown -R root $(DOCDIR);; esac'
+ 
+@@ -396,8 +396,8 @@
  	$(SHELL) $(scripts_dir)/cfg_path.sh lynx_doc  $(helpdir) | \
  	sed	-e '/^HELPFILE:file/s!$$!$(COMPRESS_EXT)!' \
  		-e '/^HELPFILE:file/s!$(COMPRESS_EXT)$(COMPRESS_EXT)$$!$(COMPRESS_EXT)!' \
 -		>$(SYSCONFDIR)/lynx.cfg
 -	chmod 644 $(SYSCONFDIR)/lynx.cfg
-+		>$(SYSCONFDIR)/lynx.cfg.default
++		>$(SYSCONFDIR)/lynx.cfg.sample
++	chmod 644 $(SYSCONFDIR)/lynx.cfg.sample
  	-rm -f $(SYSCONFDIR)/lynx.tmp
-+	-[ ! -f $(SYSCONFDIR)/lynx.cfg ] && $(INSTALL_DATA) $(SYSCONFDIR)/lynx.cfg.default $(SYSCONFDIR)/lynx.cfg
  
  LYHelp.h : help_files.sed $(srcdir)/LYHelp.hin
- 	@echo Creating $@
-@@ -420,10 +415,11 @@
+@@ -420,10 +420,9 @@
  	$(SHELL) -c 'SHELL=$(SHELL) $(SHELL) $(scripts_dir)/cfg_defs.sh $(srcdir)'
  
  install-cfg : $(SYSCONFDIR)
 -	@$(SHELL) $(scripts_dir)/install-cfg.sh "$(INSTALL_DATA)" $(srcdir)/lynx.cfg $(SYSCONFDIR)/lynx.cfg
-+	@$(SHELL) $(scripts_dir)/install-cfg.sh "$(INSTALL_DATA)" $(srcdir)/lynx.cfg $(SYSCONFDIR)/lynx.cfg.default
  
  install-lss : $(SYSCONFDIR)
 -	@$(SHELL) $(scripts_dir)/install-lss.sh "$(INSTALL_DATA)" $(srcdir)/samples/lynx.lss $(SYSCONFDIR)/lynx.lss
-+	@$(SHELL) $(scripts_dir)/install-lss.sh "$(INSTALL_DATA)" $(srcdir)/samples/lynx.lss $(SYSCONFDIR)/lynx.lss.default
-+	-[ ! -f $(SYSCONFDIR)/lynx.lss ] && $(INSTALL_DATA) $(SYSCONFDIR)/lynx.lss.default $(SYSCONFDIR)/lynx.lss
++	@$(SHELL) $(scripts_dir)/install-lss.sh "$(INSTALL_DATA)" $(srcdir)/samples/lynx.lss $(SYSCONFDIR)/lynx.lss.sample
  
  uninstall ::
  @MSG_DIR_MAKE@	cd $(PO_DIR) && $(MAKE_RECUR) uninstall

Modified: head/japanese/lynx/pkg-plist
==============================================================================
--- head/japanese/lynx/pkg-plist	Sun May 18 16:10:50 2014	(r354435)
+++ head/japanese/lynx/pkg-plist	Sun May 18 16:21:50 2014	(r354436)
@@ -1,10 +1,7 @@
 bin/lynx
- at unexec if [ -f %D/etc/lynx.cfg ] && cmp -s %D/etc/lynx.cfg %D/etc/lynx.cfg.default; then rm -f %D/etc/lynx.cfg; fi
-etc/lynx.cfg.default
- at exec if [ ! -f %D/etc/lynx.cfg ] ; then cp -p %D/%F %B/lynx.cfg; fi
-%%COLOR_STYLE%%@unexec if [ -f %D/etc/lynx.lss ] && cmp -s %D/etc/lynx.lss %D/etc/lynx.lss.default; then rm -f %D/etc/lynx.lss; fi
-%%COLOR_STYLE%%etc/lynx.lss.default
-%%COLOR_STYLE%%@exec if [ ! -f %D/etc/lynx.lss ] ; then cp -p %D/%F %B/lynx.lss; fi
+ at sample etc/lynx.cfg.sample
+%%COLOR_STYLE%%@sample etc/lynx.lss.sample
+man/man1/lynx.1.gz
 @exec mkdir -p %D/share/lynx_help
 %%PORTDOCS%%%%DOCSDIR%%/CHANGES
 %%PORTDOCS%%%%DOCSDIR%%/COPYHEADER


More information about the svn-ports-all mailing list