- Fix MASTER_SITES [1]
- Replace pkg-message instructions by a wrapper script - Cleanups [1]: PR: ports/97647 Submitted by: Martin Wilke <freebsd@unixfreunde.de>
This commit is contained in:
parent
39fe5e6dd1
commit
7b6541a57b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=163164
4 changed files with 26 additions and 20 deletions
|
@ -7,8 +7,10 @@
|
||||||
|
|
||||||
PORTNAME= editss
|
PORTNAME= editss
|
||||||
PORTVERSION= 2.2
|
PORTVERSION= 2.2
|
||||||
|
PORTREVISION= 1
|
||||||
CATEGORIES= games
|
CATEGORIES= games
|
||||||
MASTER_SITES= ftp://ftp.xpilot.org/pub/contrib/
|
MASTER_SITES= ${MASTER_SITE_LOCAL}
|
||||||
|
MASTER_SITE_SUBDIR= jylefort
|
||||||
|
|
||||||
MAINTAINER= jylefort@FreeBSD.org
|
MAINTAINER= jylefort@FreeBSD.org
|
||||||
COMMENT= An editor for XPilot shipshapes
|
COMMENT= An editor for XPilot shipshapes
|
||||||
|
@ -17,16 +19,17 @@ USE_IMAKE= yes
|
||||||
ALL_TARGET= editss
|
ALL_TARGET= editss
|
||||||
MAN6= editss.6
|
MAN6= editss.6
|
||||||
NO_INSTALL_MANPAGES= yes
|
NO_INSTALL_MANPAGES= yes
|
||||||
XFREE86_HTML_MAN= no
|
SUB_FILES= editss
|
||||||
MAN_COMPRESSED= yes
|
|
||||||
|
post-patch:
|
||||||
|
@${REINPLACE_CMD} -e 's|xxpms/ships2|.xpilot-shipshapes|' \
|
||||||
|
${WRKSRC}/editssrc
|
||||||
|
|
||||||
do-install:
|
do-install:
|
||||||
${INSTALL_PROGRAM} ${WRKSRC}/editss ${PREFIX}/bin
|
${INSTALL_SCRIPT} ${WRKDIR}/editss ${PREFIX}/bin/editss
|
||||||
${MKDIR} ${PREFIX}/share/editss
|
${INSTALL_PROGRAM} ${WRKSRC}/editss ${PREFIX}/libexec
|
||||||
${INSTALL_DATA} ${WRKSRC}/editssrc ${PREFIX}/share/editss
|
${MKDIR} ${DATADIR}
|
||||||
|
${INSTALL_DATA} ${WRKSRC}/editssrc ${WRKSRC}/ships ${DATADIR}
|
||||||
${INSTALL_MAN} ${WRKSRC}/editss.6 ${MANPREFIX}/man/man6
|
${INSTALL_MAN} ${WRKSRC}/editss.6 ${MANPREFIX}/man/man6
|
||||||
|
|
||||||
post-install:
|
|
||||||
@${CAT} ${PKGMESSAGE}
|
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
|
10
games/editss/files/editss.in
Normal file
10
games/editss/files/editss.in
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
if ! [ -f $HOME/.editssrc ]; then
|
||||||
|
/usr/bin/install -m 644 %%DATADIR%%/editssrc $HOME/.editssrc
|
||||||
|
fi
|
||||||
|
if ! [ -f $HOME/.xpilot-shipshapes ]; then
|
||||||
|
/usr/bin/install -m 644 %%DATADIR%%/ships $HOME/.xpilot-shipshapes
|
||||||
|
fi
|
||||||
|
|
||||||
|
exec %%PREFIX%%/libexec/editss "$@"
|
|
@ -1,9 +0,0 @@
|
||||||
-------------------------------------------------------------------------------
|
|
||||||
WARNING: editss will dump a core if it is not able to find a shipshapes file.
|
|
||||||
|
|
||||||
You should copy the editss rc file from /usr/X11R6/share/editss/editssrc
|
|
||||||
to $HOME/.editssrc and change the shiplib keyword in that file to make
|
|
||||||
it point to your shipshapes file.
|
|
||||||
|
|
||||||
A nice shipshapes file can be found at ftp://ftp.xpilot.org/pub/shipshapes
|
|
||||||
-------------------------------------------------------------------------------
|
|
|
@ -1,3 +1,5 @@
|
||||||
bin/editss
|
bin/editss
|
||||||
share/editss/editssrc
|
libexec/editss
|
||||||
@dirrm share/editss
|
%%DATADIR%%/editssrc
|
||||||
|
%%DATADIR%%/ships
|
||||||
|
@dirrm %%DATADIR%%
|
||||||
|
|
Loading…
Reference in a new issue