Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Jul 2014 03:30:44 +0000 (UTC)
From:      "Vanilla I. Shu" <vanilla@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r360129 - in head/x11-wm/ion: . files
Message-ID:  <201407020330.s623UiHZ082988@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: vanilla
Date: Wed Jul  2 03:30:43 2014
New Revision: 360129
URL: http://svnweb.freebsd.org/changeset/ports/360129
QAT: https://qat.redports.org/buildarchive/r360129/

Log:
  1: Stagify.
  2: use @sample to handle sample config file.
  3: bump version.
  
  Approved by:	portmgr@ (blanket approval)

Added:
  head/x11-wm/ion/files/patch-Makefile   (contents, props changed)
  head/x11-wm/ion/files/patch-src-Makefile   (contents, props changed)
Modified:
  head/x11-wm/ion/Makefile
  head/x11-wm/ion/pkg-plist

Modified: head/x11-wm/ion/Makefile
==============================================================================
--- head/x11-wm/ion/Makefile	Wed Jul  2 03:21:04 2014	(r360128)
+++ head/x11-wm/ion/Makefile	Wed Jul  2 03:30:43 2014	(r360129)
@@ -3,7 +3,7 @@
 
 PORTNAME=	ion
 PORTVERSION=	20020207
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	x11-wm
 MASTER_SITES=	http://modeemi.fi/~tuomov/dl/archives/
 
@@ -12,10 +12,7 @@ COMMENT=	A window manager with a text-ed
 
 CONFLICTS=	ion-2-*
 
-MAN1=		ion.1x
-
 USE_XORG=	x11
 USES=		gmake
 
-NO_STAGE=	yes
 .include <bsd.port.mk>

Added: head/x11-wm/ion/files/patch-Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/x11-wm/ion/files/patch-Makefile	Wed Jul  2 03:30:43 2014	(r360129)
@@ -0,0 +1,55 @@
+--- Makefile.orig	2014-07-02 11:22:29.181567830 +0800
++++ Makefile	2014-07-02 11:24:31.679559320 +0800
+@@ -17,7 +17,7 @@ SCRIPTS=scripts/ion-edit scripts/ion-man
+ 
+ ETC=	etc/bindings-default.conf etc/bindings-sun.conf etc/kludges.conf \
+ 	etc/look-brownsteel.conf etc/look-greyviolet.conf \
+-	etc/look-simpleblue.conf etc/look-wheat.conf etc/sample.conf
++	etc/look-simpleblue.conf etc/look-wheat.conf
+ 
+ DOCS=	README LICENSE ChangeLog doc/config.txt doc/functions.txt
+ 
+@@ -31,34 +31,22 @@ man/ion.1x: man/ion.1x.in
+ 	sed 's#PREFIX#$(PREFIX)#g' man/ion.1x.in > man/ion.1x
+ 
+ _install:
+-	$(INSTALLDIR) $(BINDIR)
++	$(INSTALLDIR) $(DESTDIR)$(BINDIR)
+ 	for i in $(SCRIPTS); do \
+-		$(INSTALL) -m $(BIN_MODE) $$i $(BINDIR); \
++		$(INSTALL) -m $(BIN_MODE) $$i $(DESTDIR)$(BINDIR); \
+ 	done
+ 
+-	$(INSTALLDIR) $(MANDIR)/man1
+-	$(INSTALL) -m $(DATA_MODE) man/ion.1x $(MANDIR)/man1
++	$(INSTALLDIR) $(DESTDIR)$(MANDIR)/man1
++	$(INSTALL) -m $(DATA_MODE) man/ion.1x $(DESTDIR)$(MANDIR)/man1
+ 
+-	$(INSTALLDIR) $(DOCDIR)/ion
++	$(INSTALLDIR) $(DESTDIR)$(DOCDIR)/ion
+ 	for i in $(DOCS); do \
+-		$(INSTALL) -m $(DATA_MODE) $$i $(DOCDIR)/ion; \
++		$(INSTALL) -m $(DATA_MODE) $$i $(DESTDIR)$(DOCDIR)/ion; \
+ 	done
+ 
+-	$(INSTALLDIR) $(ETCDIR)/ion
++	$(INSTALLDIR) $(DESTDIR)$(ETCDIR)/ion
+ 	for i in $(ETC); do \
+-		$(INSTALL) -m $(DATA_MODE) $$i $(ETCDIR)/ion; \
++		$(INSTALL) -m $(DATA_MODE) $$i $(DESTDIR)$(ETCDIR)/ion; \
+ 	done
+-
+-	@ if test -f $(ETCDIR)/ion/ion.conf ; then \
+-		echo "$(ETCDIR)/ion/ion.conf already exists. Not installing one."; \
+-	else \
+-		echo "Installing configuration file $(ETCDIR)/ion/ion.conf"; \
+-		if uname -s -p|grep "SunOS sparc" > /dev/null; then \
+-			sed s/bindings-default/bindings-sun/ \
+-			$(ETCDIR)/ion/sample.conf > $(ETCDIR)/ion/ion.conf; \
+-			chmod $(DATA_MODE) $(ETCDIR)/ion/ion.conf; \
+-		else \
+-			cp $(ETCDIR)/ion/sample.conf $(ETCDIR)/ion/ion.conf; \
+-		fi; \
+-	fi
++	$(INSTALL) -m $(DATA_MODE) etc/sample.conf $(DESTDIR)$(ETCDIR)/ion/ion.conf.sample;
+ 

Added: head/x11-wm/ion/files/patch-src-Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/x11-wm/ion/files/patch-src-Makefile	Wed Jul  2 03:30:43 2014	(r360129)
@@ -0,0 +1,12 @@
+--- src/Makefile.orig	2014-07-02 11:27:14.555548726 +0800
++++ src/Makefile	2014-07-02 11:27:31.345550958 +0800
+@@ -35,6 +35,6 @@ ion: $(OBJS) $(EXT_OBJS)
+ 	$(CC) $(OBJS) $(EXT_OBJS) $(LDFLAGS) -o $@
+ 
+ _install:
+-	$(INSTALLDIR) $(BINDIR)
+-	$(INSTALL) -m $(BIN_MODE) ion $(BINDIR)
+-	$(STRIP) $(BINDIR)/ion
++	$(INSTALLDIR) $(DESTDIR)$(BINDIR)
++	$(INSTALL) -m $(BIN_MODE) ion $(DESTDIR)$(BINDIR)
++	$(STRIP) $(DESTDIR)$(BINDIR)/ion

Modified: head/x11-wm/ion/pkg-plist
==============================================================================
--- head/x11-wm/ion/pkg-plist	Wed Jul  2 03:21:04 2014	(r360128)
+++ head/x11-wm/ion/pkg-plist	Wed Jul  2 03:30:43 2014	(r360129)
@@ -4,20 +4,19 @@ bin/ion-man
 bin/ion-runinxterm
 bin/ion-ssh
 bin/ion-view
-etc/ion/bindings-default.conf
-etc/ion/bindings-sun.conf
-etc/ion/kludges.conf
-etc/ion/look-brownsteel.conf
-etc/ion/look-greyviolet.conf
-etc/ion/look-simpleblue.conf
-etc/ion/look-wheat.conf
-@unexec if cmp -s %D/etc/ion/ion.conf %D/etc/ion/sample.conf; then rm -f %D/etc/ion/ion.conf; fi
-etc/ion/sample.conf
-@exec [ -f %B/ion.conf ] || cp %B/%f %B/ion.conf
-share/doc/ion/README
-share/doc/ion/LICENSE
-share/doc/ion/ChangeLog
-share/doc/ion/config.txt
-share/doc/ion/functions.txt
-@dirrm share/doc/ion
-@dirrmtry etc/ion
+%%ETCDIR%%/bindings-default.conf
+%%ETCDIR%%/bindings-sun.conf
+%%ETCDIR%%/kludges.conf
+%%ETCDIR%%/look-brownsteel.conf
+%%ETCDIR%%/look-greyviolet.conf
+%%ETCDIR%%/look-simpleblue.conf
+%%ETCDIR%%/look-wheat.conf
+man/man1/ion.1x.gz
+@sample %%ETCDIR%%/ion.conf.sample
+%%DOCSDIR%%/README
+%%DOCSDIR%%/LICENSE
+%%DOCSDIR%%/ChangeLog
+%%DOCSDIR%%/config.txt
+%%DOCSDIR%%/functions.txt
+@dirrm %%DOCSDIR%%
+@dirrmtry %%ETCDIR%%



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