svn commit: r346260 - head/misc/asbutton

Martin Wilke miwi at FreeBSD.org
Thu Feb 27 08:43:09 UTC 2014


Author: miwi
Date: Thu Feb 27 08:43:08 2014
New Revision: 346260
URL: http://svnweb.freebsd.org/changeset/ports/346260
QAT: https://qat.redports.org/buildarchive/r346260/

Log:
  - Update MASTER_SITES
  - Add LICENSE
  - Stage support
  
  PR:		187039
  Submitted by:	Ports Fury

Modified:
  head/misc/asbutton/Makefile
  head/misc/asbutton/pkg-plist

Modified: head/misc/asbutton/Makefile
==============================================================================
--- head/misc/asbutton/Makefile	Thu Feb 27 08:41:56 2014	(r346259)
+++ head/misc/asbutton/Makefile	Thu Feb 27 08:43:08 2014	(r346260)
@@ -5,13 +5,13 @@ PORTNAME=	asbutton
 PORTVERSION=	0.3
 PORTREVISION=	3
 CATEGORIES=	misc windowmaker afterstep
-MASTER_SITES=	http://www.tigr.net/afterstep/download/asbutton/
+MASTER_SITES=	AFTERSTEP/apps/asbutton/ \
+		http://tigr.net/afterstep/download/asbutton/
 
 MAINTAINER=	ports at FreeBSD.org
 COMMENT=	Dockapp that displays 4 or 9 buttons to run apps of your choice
 
-DEPRECATED=	No more public distfiles
-EXPIRATION_DATE=	2014-03-07
+LICENSE=	GPLv2
 
 USE_XORG=	x11 xpm
 ALL_TARGET=	asbutton
@@ -19,23 +19,22 @@ MAKE_ARGS=	INCLUDES="-I${LOCALBASE}/incl
 		LIBINC="-L${LOCALBASE}/lib" LIBS="-lm -lX11 -lXpm -lXext" \
 		CCFLAGS="${CFLAGS}"
 
-NO_STAGE=	yes
-.include <bsd.port.pre.mk>
+OPTIONS_DEFINE=	EXAMPLES
 
 post-patch:
-	@${REINPLACE_CMD} -e 's:gcc :${CC} :' ${WRKSRC}/Makefile
+	@${REINPLACE_CMD} -e 's|gcc |$${CC} |' ${WRKSRC}/Makefile
+
+post-build:
+	@${LN} -sf .asbuttonrc ${WRKSRC}/asbuttonrc
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/asbutton ${PREFIX}/bin
-	@${ECHO} "===>   Installing icons in ${PREFIX}/share/asbutton"
-	@${MKDIR} ${PREFIX}/share/asbutton && ${CHMOD} a+rx ${PREFIX}/share/asbutton
-	${INSTALL_DATA} ${WRKSRC}/icons/*.xpm ${PREFIX}/share/asbutton
-
-post-install:
-	@${ECHO} "===>   Installing sample asbuttonrc in ${PREFIX}/share/examples/asbutton"
-	@${ECHO} "===>   Copy to ~/.asbuttonrc and modify to desired config."
-	@${MKDIR} ${PREFIX}/share/examples/asbutton && ${CHMOD} a+rx ${PREFIX}/share/examples/asbutton
-	${INSTALL_DATA} ${WRKSRC}/.asbuttonrc ${PREFIX}/share/examples/asbutton/asbuttonrc && ${CHMOD} u+rw ${PREFIX}/share/examples/asbutton/asbuttonrc
-	@${ECHO} "===>   Use 'asbutton -h' for help."
+	(cd ${WRKSRC} && ${INSTALL_PROGRAM} asbutton \
+		${STAGEDIR}${PREFIX}/bin)
+	@${MKDIR} ${STAGEDIR}${DATADIR}
+	(cd ${WRKSRC}/icons && ${INSTALL_DATA} *.xpm \
+		${STAGEDIR}${DATADIR})
+	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+	(cd ${WRKSRC} && ${INSTALL_DATA} asbuttonrc \
+		${STAGEDIR}${EXAMPLESDIR})
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>

Modified: head/misc/asbutton/pkg-plist
==============================================================================
--- head/misc/asbutton/pkg-plist	Thu Feb 27 08:41:56 2014	(r346259)
+++ head/misc/asbutton/pkg-plist	Thu Feb 27 08:43:08 2014	(r346260)
@@ -1,61 +1,61 @@
 bin/asbutton
-share/asbutton/asb4-1.xpm
-share/asbutton/asb4-2.xpm
-share/asbutton/asb4-3.xpm
-share/asbutton/asb4-4.xpm
-share/asbutton/asb4-blank.xpm
-share/asbutton/asb4-bullethole.xpm
-share/asbutton/asb4-corel.xpm
-share/asbutton/asb4-filingcabinet.xpm
-share/asbutton/asb4-gear.xpm
-share/asbutton/asb4-gnu-button-thang.xpm
-share/asbutton/asb4-gnu-defaultapp.xpm
-share/asbutton/asb4-gqview.xpm
-share/asbutton/asb4-gv.xpm
-share/asbutton/asb4-info.xpm
-share/asbutton/asb4-info2.xpm
-share/asbutton/asb4-netscape.xpm
-share/asbutton/asb4-network.xpm
-share/asbutton/asb4-package.xpm
-share/asbutton/asb4-redhat.xpm
-share/asbutton/asb4-term-bsd.xpm
-share/asbutton/asb4-term-linux.xpm
-share/asbutton/asb4-turn.xpm
-share/asbutton/asb4-vim.xpm
-share/asbutton/asb4-wilbur.xpm
-share/asbutton/asb4-xmms.xpm
-share/asbutton/asb4-xv.xpm
-share/asbutton/asb9-1.xpm
-share/asbutton/asb9-2.xpm
-share/asbutton/asb9-3.xpm
-share/asbutton/asb9-4.xpm
-share/asbutton/asb9-5.xpm
-share/asbutton/asb9-6.xpm
-share/asbutton/asb9-7.xpm
-share/asbutton/asb9-8.xpm
-share/asbutton/asb9-9.xpm
-share/asbutton/asb9-blank.xpm
-share/asbutton/asb9-bullethole.xpm
-share/asbutton/asb9-corel.xpm
-share/asbutton/asb9-filecabinet.xpm
-share/asbutton/asb9-gear.xpm
-share/asbutton/asb9-gnu-button-thang.xpm
-share/asbutton/asb9-gnu-defaultapp.xpm
-share/asbutton/asb9-gqview.xpm
-share/asbutton/asb9-gv.xpm
-share/asbutton/asb9-info.xpm
-share/asbutton/asb9-info2.xpm
-share/asbutton/asb9-netscape.xpm
-share/asbutton/asb9-network.xpm
-share/asbutton/asb9-package.xpm
-share/asbutton/asb9-redhat.xpm
-share/asbutton/asb9-term-bsd.xpm
-share/asbutton/asb9-term-linux.xpm
-share/asbutton/asb9-turn.xpm
-share/asbutton/asb9-vim.xpm
-share/asbutton/asb9-wilbur.xpm
-share/asbutton/asb9-xmms.xpm
-share/asbutton/asb9-xv.xpm
-share/examples/asbutton/asbuttonrc
- at dirrm share/asbutton
- at dirrm share/examples/asbutton
+%%DATADIR%%/asb4-1.xpm
+%%DATADIR%%/asb4-2.xpm
+%%DATADIR%%/asb4-3.xpm
+%%DATADIR%%/asb4-4.xpm
+%%DATADIR%%/asb4-blank.xpm
+%%DATADIR%%/asb4-bullethole.xpm
+%%DATADIR%%/asb4-corel.xpm
+%%DATADIR%%/asb4-filingcabinet.xpm
+%%DATADIR%%/asb4-gear.xpm
+%%DATADIR%%/asb4-gnu-button-thang.xpm
+%%DATADIR%%/asb4-gnu-defaultapp.xpm
+%%DATADIR%%/asb4-gqview.xpm
+%%DATADIR%%/asb4-gv.xpm
+%%DATADIR%%/asb4-info.xpm
+%%DATADIR%%/asb4-info2.xpm
+%%DATADIR%%/asb4-netscape.xpm
+%%DATADIR%%/asb4-network.xpm
+%%DATADIR%%/asb4-package.xpm
+%%DATADIR%%/asb4-redhat.xpm
+%%DATADIR%%/asb4-term-bsd.xpm
+%%DATADIR%%/asb4-term-linux.xpm
+%%DATADIR%%/asb4-turn.xpm
+%%DATADIR%%/asb4-vim.xpm
+%%DATADIR%%/asb4-wilbur.xpm
+%%DATADIR%%/asb4-xmms.xpm
+%%DATADIR%%/asb4-xv.xpm
+%%DATADIR%%/asb9-1.xpm
+%%DATADIR%%/asb9-2.xpm
+%%DATADIR%%/asb9-3.xpm
+%%DATADIR%%/asb9-4.xpm
+%%DATADIR%%/asb9-5.xpm
+%%DATADIR%%/asb9-6.xpm
+%%DATADIR%%/asb9-7.xpm
+%%DATADIR%%/asb9-8.xpm
+%%DATADIR%%/asb9-9.xpm
+%%DATADIR%%/asb9-blank.xpm
+%%DATADIR%%/asb9-bullethole.xpm
+%%DATADIR%%/asb9-corel.xpm
+%%DATADIR%%/asb9-filecabinet.xpm
+%%DATADIR%%/asb9-gear.xpm
+%%DATADIR%%/asb9-gnu-button-thang.xpm
+%%DATADIR%%/asb9-gnu-defaultapp.xpm
+%%DATADIR%%/asb9-gqview.xpm
+%%DATADIR%%/asb9-gv.xpm
+%%DATADIR%%/asb9-info.xpm
+%%DATADIR%%/asb9-info2.xpm
+%%DATADIR%%/asb9-netscape.xpm
+%%DATADIR%%/asb9-network.xpm
+%%DATADIR%%/asb9-package.xpm
+%%DATADIR%%/asb9-redhat.xpm
+%%DATADIR%%/asb9-term-bsd.xpm
+%%DATADIR%%/asb9-term-linux.xpm
+%%DATADIR%%/asb9-turn.xpm
+%%DATADIR%%/asb9-vim.xpm
+%%DATADIR%%/asb9-wilbur.xpm
+%%DATADIR%%/asb9-xmms.xpm
+%%DATADIR%%/asb9-xv.xpm
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/asbuttonrc
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
+ at dirrm %%DATADIR%%


More information about the svn-ports-all mailing list