1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-29 01:13:08 +00:00

Simplify port by using a static pkg-plist instead of an in-port generated one.

This commit is contained in:
Eitan Adler 2013-10-23 22:40:22 +00:00
parent 30d69281cc
commit 103efcfe8e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=331440
2 changed files with 17 additions and 20 deletions

View File

@ -3,23 +3,21 @@
PORTNAME= gtklife
PORTVERSION= 5.1
PORTREVISION= 5
PORTREVISION= 6
CATEGORIES= games
MASTER_SITES= http://ironphoenix.org/tril/gtklife/
MAINTAINER= eadler@FreeBSD.org
COMMENT= GTK+ implementation of Conway's Game of Life
COMMENT= GTK+ implementation of Conways Game of Life
LICENSE= GPLv2
WANT_GNOME= yes
INSTALLS_ICONS= yes
USES= gmake
USES= gmake
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" PREFIX="${PREFIX}" docdir="${DOCSDIR}"
PLIST= ${WRKDIR}/pkg-plist
PLIST_FILES= bin/gtklife
PLIST_DIRS= %%DATADIR%%
PORTDATA= *
PORTDOCS= *
DATA_SUBDIRS= graphics patterns
@ -49,20 +47,6 @@ STARTUP_NOTIFY= false
post-patch:
@${REINPLACE_CMD} -e 's|gtk-config|${GTK_CONFIG}|' ${WRKSRC}/Makefile
pre-install:
@cd ${WRKSRC} && >${PLIST} && \
${FIND} ${DATA_SUBDIRS} ! -type d | ${SORT} \
| ${SED} -e 's|^|%%DATADIR%%/|' >> ${PLIST} && \
${FIND} ${DATA_SUBDIRS} -type d ! -empty | ${SORT} -r \
| ${SED} -e 's|^|@dirrm %%DATADIR%%/|' >> ${PLIST}
.for s in ${ICON_SIZES}
@${ECHO_CMD} "share/icons/hicolor/${s}/apps/gtklife.png" >> ${PLIST}
@${ECHO_CMD} "@dirrmtry share/icons/hicolor/${s}/apps" >> ${PLIST}
@${ECHO_CMD} "@dirrmtry share/icons/hicolor/${s}" >> ${PLIST}
.endfor
@${ECHO_CMD} "@dirrmtry share/icons/hicolor" >> ${PLIST}
@${ECHO_CMD} "@dirrmtry share/icons" >> ${PLIST}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/gtklife ${STAGEDIR}${PREFIX}/bin
cd ${WRKSRC} && \

13
games/gtklife/pkg-plist Normal file
View File

@ -0,0 +1,13 @@
bin/gtklife
share/icons/hicolor/16x16/apps/gtklife.png
share/icons/hicolor/32x32/apps/gtklife.png
share/icons/hicolor/48x48/apps/gtklife.png
@dirrmtry share/icons/hicolor/48x48/apps
@dirrmtry share/icons/hicolor/48x48
@dirrmtry share/icons/hicolor/32x32/apps
@dirrmtry share/icons/hicolor/32x32
@dirrmtry share/icons/hicolor/16x16/apps
@dirrmtry share/icons/hicolor/16x16
@dirrmtry share/icons/hicolor
@dirrmtry share/icons
@dirrmtry share/applications