1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00

Add staging support, allow it as normal user

This commit is contained in:
Pawel Pekala 2014-06-06 22:23:17 +00:00
parent 876bd8411a
commit cddc36cac7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=356860
2 changed files with 4 additions and 5 deletions

View File

@ -19,7 +19,6 @@ EMACS_PORT_NAME=emacs21
INFO= calc
NO_STAGE= yes
post-patch:
@${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/Makefile

View File

@ -40,16 +40,16 @@
+ $(MAKE) info
+
+install: ${installfiles}
+ install-info ${infodir}/calc.info ${infodir}/dir
+ install-info ${DESTDIR}${infodir}/calc.info ${DESTDIR}${infodir}/dir
+
+.for file in ${infofiles}
+${infodir}/${file}: ${file}
+ install -o root -g wheel -m 0444 $? $@
+ ${BSD_INSTALL_DATA} $? ${DESTDIR}$@
+.endfor
+
+.for file in ${sitefiles}
+${calcsitedir}/${file}: ${file}
+ @install -d -o root -g wheel -m 0755 ${@D}
+ install -o root -g wheel -m 0444 $? $@
+ @install -d -m 0755 ${DESTDIR}${@D}
+ ${BSD_INSTALL_DATA} $? ${DESTDIR}$@
+.endfor