1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-18 08:02:48 +00:00

www/stagit: Update to 0.6

Changes:	https://marc.info/?l=openbsd-ports&m=150264599021227&w=2
This commit is contained in:
Tobias Kortkamp 2017-08-13 18:11:48 +00:00
parent c22c2de009
commit 98b56d0045
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=447906
4 changed files with 17 additions and 44 deletions

View File

@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= stagit
PORTVERSION= 0.5
PORTVERSION= 0.6
CATEGORIES= www
MASTER_SITES= http://dl.2f30.org/releases/
@ -16,15 +16,19 @@ LIB_DEPENDS= libgit2.so:devel/libgit2
MAKE_ARGS= CC="${CC}" \
PREFIX="${PREFIX}" \
DOCSDIR="${DOCSDIR}" \
EXAMPLESDIR="${EXAMPLESDIR}" \
MANPREFIX="${MANPREFIX}/man" \
GITINC="${PREFIX}/include" \
GITLIB="${PREFIX}/lib"
post-install:
${STRIP_CMD} \
${STAGEDIR}${PREFIX}/bin/stagit \
${STAGEDIR}${PREFIX}/bin/stagit-index
post-patch:
@${REINPLACE_CMD} '/strlcat\.o/d; /strlcpy\.o/d' ${WRKSRC}/Makefile
do-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR} ${STAGEDIR}${EXAMPLESDIR} ${STAGEDIR}${PREFIX}/man/man1
${INSTALL_PROGRAM} ${WRKSRC}/stagit ${WRKSRC}/stagit-index ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/stagit.1 ${WRKSRC}/stagit-index.1 ${STAGEDIR}${PREFIX}/man/man1
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.for f in example_create.sh example_post-receive.sh favicon.png logo.png style.css
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${EXAMPLESDIR}
.endfor
.include <bsd.port.mk>

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1483644879
SHA256 (stagit-0.5.tar.gz) = a648f52ef8b0921dfea87a5c6aadcb2bba5b5ea801e2511e83437c613f6fa17a
SIZE (stagit-0.5.tar.gz) = 15497
TIMESTAMP = 1502646144
SHA256 (stagit-0.6.tar.gz) = 71bfb26ed537955ef55119cf79c45654321a795a2d7e697dbce143324e48fd04
SIZE (stagit-0.6.tar.gz) = 16523

View File

@ -1,32 +0,0 @@
--- Makefile.orig 2016-05-07 13:07:28 UTC
+++ Makefile
@@ -21,10 +21,7 @@ DOC = \
TODO
HDR = compat.h
-COMPATOBJ = \
- reallocarray.o\
- strlcat.o\
- strlcpy.o
+COMPATOBJ = reallocarray.o
OBJ = ${SRC:.c=.o} ${COMPATOBJ}
@@ -66,13 +63,14 @@ install: all
cp -f ${BIN} ${SCRIPTS} ${DESTDIR}${PREFIX}/bin
for f in $(BIN) $(SCRIPTS); do chmod 755 ${DESTDIR}${PREFIX}/bin/$$f; done
# installing example files.
- mkdir -p ${DESTDIR}${PREFIX}/share/${NAME}
+ mkdir -p ${DESTDIR}${DOCSDIR}
+ cp -f README ${DESTDIR}${DOCSDIR}
+ mkdir -p ${DESTDIR}${EXAMPLESDIR}
cp -f style.css\
favicon.png\
logo.png\
example.sh\
- README\
- ${DESTDIR}${PREFIX}/share/${NAME}
+ ${DESTDIR}${EXAMPLESDIR}/
# installing manual pages.
mkdir -p ${DESTDIR}${MANPREFIX}/man1
cp -f ${MAN1} ${DESTDIR}${MANPREFIX}/man1

View File

@ -3,7 +3,8 @@ bin/stagit-index
man/man1/stagit-index.1.gz
man/man1/stagit.1.gz
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example.sh
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example_create.sh
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example_post-receive.sh
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/favicon.png
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/logo.png
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/style.css