diff options
author | ak <ak@FreeBSD.org> | 2012-07-20 05:35:27 +0800 |
---|---|---|
committer | ak <ak@FreeBSD.org> | 2012-07-20 05:35:27 +0800 |
commit | 4e16023cdbc5b8c276cf01ffa704d7cdc366e9ef (patch) | |
tree | 493be47102a5af88896c91855851365cbd14783e /games/evilfinder | |
parent | fbb534cfa7808bed3c09a51d0099aed9db84a8d8 (diff) | |
download | freebsd-ports-gnome-4e16023cdbc5b8c276cf01ffa704d7cdc366e9ef.tar.gz freebsd-ports-gnome-4e16023cdbc5b8c276cf01ffa704d7cdc366e9ef.tar.zst freebsd-ports-gnome-4e16023cdbc5b8c276cf01ffa704d7cdc366e9ef.zip |
- Use new evilnumbers database
- Remove old options remnants
- Remove pkg-plist
- Fix build with clang
- Mark MAKE_JOBS_SAFE
Diffstat (limited to 'games/evilfinder')
-rw-r--r-- | games/evilfinder/Makefile | 44 | ||||
-rw-r--r-- | games/evilfinder/distinfo | 2 | ||||
-rw-r--r-- | games/evilfinder/pkg-plist | 7 |
3 files changed, 31 insertions, 22 deletions
diff --git a/games/evilfinder/Makefile b/games/evilfinder/Makefile index 7cfe70a0940b..4f5ef47273c3 100644 --- a/games/evilfinder/Makefile +++ b/games/evilfinder/Makefile @@ -7,21 +7,31 @@ PORTNAME= evilfinder PORTVERSION= 1.00 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= games -MASTER_SITES= http://lcamtuf.coredump.cx/ -DISTNAME= ef -EXTRACT_SUFX= .tgz +MASTER_SITES= http://lcamtuf.coredump.cx/:src \ + http://lcamtuf.coredump.cx/evilfinder/:numbers +DISTFILES= ef.tgz:src \ + evilnumbers.dat:numbers + +EXTRACT_ONLY= ef.tgz MAINTAINER= ak@FreeBSD.org COMMENT= Numerologically determine the evilness of things WRKSRC= ${WRKDIR}/${PORTNAME} -OPTIONS_DEFINE= WRAPPER +MAKE_JOBS_SAFE= yes -WRAPPER_DESC= Evilfinder local wrapper +PLIST_FILES= bin/ef \ + %%WRAPPER%%bin/evilfinder \ + libexec/ef-shuffle +PORTDATA= evilnumbers.dat +PORTDOCS= README + +OPTIONS_DEFINE= WRAPPER +WRAPPER_DESC= Evilfinder local wrapper OPTIONS_DEFAULT= WRAPPER .include <bsd.port.options.mk> @@ -33,16 +43,20 @@ PLIST_SUB+= WRAPPER="" PLIST_SUB+= WRAPPER="@comment " .endif +post-extract: + @${CP} ${DISTDIR}/evilnumbers.dat ${WRKSRC} + post-patch: @${REINPLACE_CMD} -e '/^CFLAGS/d' ${WRKSRC}/Makefile - @${REINPLACE_CMD} -e "s|evilnumbers.dat|${DATADIR}/evilnumbers.dat|; \ - s|.tmp-%d-%u|/tmp/.tmp-%d-%u|; \ - s|./shuffle|${PREFIX}/libexec/ef-shuffle|" \ + @${REINPLACE_CMD} -e 's|evilnumbers.dat|${DATADIR}/evilnumbers.dat|' \ + -e 's|.tmp-%d-%u|/tmp/.tmp-%d-%u|' \ + -e 's|./shuffle|${PREFIX}/libexec/ef-shuffle|' \ + -e 's|inline||' \ ${WRKSRC}/ef.c -.if !defined(WITHOUT_WRAPPER) - @${SED} -e "s|%%PREFIX%%|${PREFIX}|; \ - s|/dev/stdin|-stdin|; \ - s|%%LOCALBASE%%|${LOCALBASE}|" \ +.if ${PORT_OPTIONS:MWRAPPER} + @${SED} -e 's|%%PREFIX%%|${PREFIX}|' \ + -e 's|/dev/stdin|-stdin|' \ + -e 's|%%LOCALBASE%%|${LOCALBASE}|' \ ${FILESDIR}/evilfinder > ${WRKSRC}/evilfinder .endif @@ -51,10 +65,10 @@ do-install: ${INSTALL_PROGRAM} ${WRKSRC}/shuffle ${PREFIX}/libexec/ef-shuffle ${MKDIR} ${DATADIR} ${INSTALL_DATA} ${WRKSRC}/evilnumbers.dat ${DATADIR} -.if !defined(WITHOUT_WRAPPER) +.if ${PORT_OPTIONS:MWRAPPER} ${INSTALL_SCRIPT} ${WRKSRC}/evilfinder ${PREFIX}/bin .endif -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} ${MKDIR} ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} .endif diff --git a/games/evilfinder/distinfo b/games/evilfinder/distinfo index f32efcb0dee2..7879e4d1a350 100644 --- a/games/evilfinder/distinfo +++ b/games/evilfinder/distinfo @@ -1,2 +1,4 @@ SHA256 (ef.tgz) = 0e61b46c0891f7631a24a06c40988013c5581a9631eb7ed1221ff797299f0588 SIZE (ef.tgz) = 150494 +SHA256 (evilnumbers.dat) = 6162beec29da300c610d8a8e8d879178af6814b6e80ec3ddc12cfdfc4bc330ac +SIZE (evilnumbers.dat) = 5087 diff --git a/games/evilfinder/pkg-plist b/games/evilfinder/pkg-plist deleted file mode 100644 index b3e546845394..000000000000 --- a/games/evilfinder/pkg-plist +++ /dev/null @@ -1,7 +0,0 @@ -bin/ef -%%WRAPPER%%bin/evilfinder -libexec/ef-shuffle -%%PORTDOCS%%%%DOCSDIR%%/README -%%DATADIR%%/evilnumbers.dat -%%PORTDOCS%%@dirrm %%DOCSDIR%% -@dirrm %%DATADIR%% |