- Update to latest git revision

- Simplify build handling and respect build flags[1]
- Switch to options helpers[1]
- Remove unneeded @dir's from plist[1]
- Add build dependency on gmake
- Fix conkeror script to be PREFIX independent
- Update dependency on firefox to be inclusive

PR:		205576
Submitted by:	amdmi3[1]
This commit is contained in:
Ashish SHUKLA 2016-01-12 12:48:24 +00:00
parent 19eb680d72
commit 00f7eb7979
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=405869
4 changed files with 12 additions and 49 deletions

View file

@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= conkeror
PORTVERSION= 20140911
PORTVERSION= 20150730
CATEGORIES= www
MASTER_SITES= http://distfiles.pirateparty.in/ashish/ \
LOCAL/ashish
@ -19,20 +19,19 @@ FIREFOX_DESC?= Use XULRunner from Firefox port
LIBXUL_DESC?= Use XULRunner from LibXUL port
OPTIONS_DEFAULT+= LIBXUL
USES= desktop-file-utils tar:xz
USES= desktop-file-utils tar:xz gmake
LIBXUL_USES= gecko
FIREFOX_USES= gecko:firefox,32
.include <bsd.port.options.mk>
FIREFOX_USES= gecko:firefox,32+
ALL_TARGET= # empty
BUILD_ID= ${ECHO_CMD} -n `whoami`@`hostname`_`date +%s`
post-patch:
cd ${WRKSRC} && \
${MV} debian/conkeror.desktop . && \
${MV} contrib/conkeror.desktop . && \
${MV} contrib/man/conkeror.1 . && \
${RM} -rf contrib/debian contrib/man debian tests && \
${RM} -rf contrib/debian contrib/dist contrib/man debian tests && \
${RM} -f contrib/build.sh contrib/install.sh contrib/mketags.sh \
contrib/testrun.sh contrib/run-conkeror && \
${MKDIR} share && \
@ -41,14 +40,12 @@ post-patch:
style share && \
${MV} COPYING CREDITS Info.plist chrome.manifest \
content-policy.manifest share
.if ${PORT_OPTIONS:MFIREFOX}
${REINPLACE_CMD} -e "s,%%DATADIR%%,${DATADIR},g" ${WRKSRC}/conkeror
post-patch-FIREFOX-on:
${REINPLACE_CMD} -e "s/xulrunner/firefox/g" ${WRKSRC}/conkeror
${REINPLACE_CMD} -e "s/XULRUNNER/FIREFOX/g" ${WRKSRC}/conkeror
${REINPLACE_CMD} -e 's/exec $${FIREFOX}/exec $${FIREFOX} -app/' ${WRKSRC}/conkeror
.endif
do-build:
${MAKE} -C ${WRKSRC}
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/libexec/conkeror

View file

@ -1,2 +1,2 @@
SHA256 (conkeror-20140911.tar.xz) = c5ac96c56ff7695f522162e2a4080e3c8c111a62131b6912718475c6ff2890d8
SIZE (conkeror-20140911.tar.xz) = 240232
SHA256 (conkeror-20150730.tar.xz) = 7695fc4e429b2ba6c035ccddc8ecc72cc6a248297999451102c867d8df4c726d
SIZE (conkeror-20150730.tar.xz) = 242640

View file

@ -10,6 +10,6 @@
+elif [ ! -x "${XULRUNNER}" ]; then
+ echo ${XULRUNNER} is not executable.
+else
+ exec ${XULRUNNER} /usr/local/share/conkeror/application.ini "$@"
+ exec ${XULRUNNER} %%DATADIR%%/application.ini "$@"
+fi
+

View file

@ -225,37 +225,3 @@ share/applications/conkeror.desktop
%%DATADIR%%/style/gesso/theme.json
%%DATADIR%%/style/mono/conkeror--mono.css
%%DATADIR%%/style/mono/theme.json
@dir %%DATADIR%%/style/default
@dir %%DATADIR%%/style/gesso
@dir %%DATADIR%%/style/mono
@dir %%DATADIR%%/style
@dir %%DATADIR%%/search-engines
@dir %%DATADIR%%/modules/page-modes
@dir %%DATADIR%%/modules/extensions
@dir %%DATADIR%%/modules/compat
@dir %%DATADIR%%/modules/bindings/default/content-buffer
@dir %%DATADIR%%/modules/bindings/default
@dir %%DATADIR%%/modules/bindings
@dir %%DATADIR%%/modules
@dir %%DATADIR%%/locale/sv-SE
@dir %%DATADIR%%/locale/en-US
@dir %%DATADIR%%/locale
@dir %%DATADIR%%/help
@dir %%DATADIR%%/defaults/preferences
@dir %%DATADIR%%/defaults
@dir %%DATADIR%%/contrib/art
@dir %%DATADIR%%/contrib/config
@dir %%DATADIR%%/contrib/modules
@dir %%DATADIR%%/contrib/xrev/defaults/preferences
@dir %%DATADIR%%/contrib/xrev/defaults
@dir %%DATADIR%%/contrib/xrev/content
@dir %%DATADIR%%/contrib/xrev/chrome
@dir %%DATADIR%%/contrib/xrev
@dir %%DATADIR%%/contrib
@dir %%DATADIR%%/content
@dir %%DATADIR%%/components
@dir %%DATADIR%%/chrome
@dir %%DATADIR%%/branding/content
@dir %%DATADIR%%/branding
@dir %%DATADIR%%
@dir libexec/conkeror