mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
Fix RUN_DEPENDS, honour NOPORTDOCS and move documentation to PORTSDIR.
PR: 61190 Submitted by: Chris Pressey <cpressey@catseye.mine.nu>
This commit is contained in:
parent
2e497a651d
commit
f30cfc2f3e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=97922
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= xmerl
|
||||
PORTVERSION= 0.19
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= textproc
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= sowap
|
||||
@ -16,25 +17,31 @@ MAINTAINER= olgeni@FreeBSD.org
|
||||
COMMENT= A library for XML processing in Erlang
|
||||
|
||||
BUILD_DEPENDS= erlc:${PORTSDIR}/lang/erlang
|
||||
RUN_DEPENDS= erlc:${PORTSDIR}/lang/erlang
|
||||
RUN_DEPENDS= erl:${PORTSDIR}/lang/erlang
|
||||
|
||||
PLIST_SUB= VERSION="${PORTVERSION}"
|
||||
|
||||
USE_GMAKE= yes
|
||||
|
||||
XMERL= ${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}
|
||||
|
||||
do-install:
|
||||
@${MKDIR} ${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}
|
||||
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
@${CP} -r ${WRKSRC}/doc/* ${DOCSDIR}
|
||||
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
|
||||
@${LN} -s ${DOCSDIR} ${XMERL}/doc
|
||||
.endif
|
||||
|
||||
@${MKDIR} ${PREFIX}/lib/erlang/lib/${PORTNAME}
|
||||
|
||||
@for FILE in ebin inc src; do \
|
||||
${MKDIR} ${PREFIX}/lib/erlang/lib/${PORTNAME}/$${FILE}; \
|
||||
${CP} -r ${WRKSRC}/$${FILE}/* \
|
||||
${PREFIX}/lib/erlang/lib/${PORTNAME}/$${FILE}; \
|
||||
${CHMOD} ${SHAREMODE} \
|
||||
${PREFIX}/lib/erlang/lib/${PORTNAME}/$${FILE}/*; \
|
||||
@for SUBDIR in ebin inc src; do \
|
||||
${MKDIR} ${XMERL}/$${SUBDIR}; \
|
||||
${CP} -r ${WRKSRC}/$${SUBDIR}/* ${XMERL}/$${SUBDIR}; \
|
||||
${CHMOD} ${SHAREMODE} ${XMERL}/$${SUBDIR}/*; \
|
||||
done
|
||||
|
||||
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/lib/erlang/lib/${PORTNAME}
|
||||
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${XMERL}
|
||||
@${LN} -sf ${PORTNAME}-${PORTVERSION} ${PREFIX}/lib/erlang/lib/${PORTNAME}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,67 +1,71 @@
|
||||
lib/erlang/lib/xmerl/ebin/xmerl.app
|
||||
lib/erlang/lib/xmerl/ebin/xmerl.beam
|
||||
lib/erlang/lib/xmerl/ebin/xmerl_eventp.beam
|
||||
lib/erlang/lib/xmerl/ebin/xmerl_html.beam
|
||||
lib/erlang/lib/xmerl/ebin/xmerl_lib.beam
|
||||
lib/erlang/lib/xmerl/ebin/xmerl_scan.beam
|
||||
lib/erlang/lib/xmerl/ebin/xmerl_simple.beam
|
||||
lib/erlang/lib/xmerl/ebin/xmerl_text.beam
|
||||
lib/erlang/lib/xmerl/ebin/xmerl_validate.beam
|
||||
lib/erlang/lib/xmerl/ebin/xmerl_xlate.beam
|
||||
lib/erlang/lib/xmerl/ebin/xmerl_xml.beam
|
||||
lib/erlang/lib/xmerl/ebin/xmerl_xpath.beam
|
||||
lib/erlang/lib/xmerl/ebin/xmerl_xpath_parse.beam
|
||||
lib/erlang/lib/xmerl/ebin/xmerl_xpath_pred.beam
|
||||
lib/erlang/lib/xmerl/ebin/xmerl_xpath_scan.beam
|
||||
lib/erlang/lib/xmerl/ebin/xmerl_xs.beam
|
||||
lib/erlang/lib/xmerl/inc/xmerl.hrl
|
||||
lib/erlang/lib/xmerl/inc/xmerl_xlink.hrl
|
||||
lib/erlang/lib/xmerl/src/Makefile
|
||||
lib/erlang/lib/xmerl/src/xmerl.app.src
|
||||
lib/erlang/lib/xmerl/src/xmerl.erl
|
||||
lib/erlang/lib/xmerl/src/xmerl_eventp.erl
|
||||
lib/erlang/lib/xmerl/src/xmerl_html.erl
|
||||
lib/erlang/lib/xmerl/src/xmerl_lib.erl
|
||||
lib/erlang/lib/xmerl/src/xmerl_scan.erl
|
||||
lib/erlang/lib/xmerl/src/xmerl_simple.erl
|
||||
lib/erlang/lib/xmerl/src/xmerl_text.erl
|
||||
lib/erlang/lib/xmerl/src/xmerl_validate.erl
|
||||
lib/erlang/lib/xmerl/src/xmerl_xlate.erl
|
||||
lib/erlang/lib/xmerl/src/xmerl_xml.erl
|
||||
lib/erlang/lib/xmerl/src/xmerl_xpath.erl
|
||||
lib/erlang/lib/xmerl/src/xmerl_xpath_parse.erl
|
||||
lib/erlang/lib/xmerl/src/xmerl_xpath_parse.yrl
|
||||
lib/erlang/lib/xmerl/src/xmerl_xpath_pred.erl
|
||||
lib/erlang/lib/xmerl/src/xmerl_xpath_scan.erl
|
||||
lib/erlang/lib/xmerl/src/xmerl_xs.erl
|
||||
%%DOCSDIR%%/contributors.html
|
||||
%%DOCSDIR%%/examples/Makefile
|
||||
%%DOCSDIR%%/examples/mkdocs.erl
|
||||
%%DOCSDIR%%/examples/sdocbook2xhtml.erl
|
||||
%%DOCSDIR%%/examples/test_html.erl
|
||||
%%DOCSDIR%%/examples/xmerl_test.erl
|
||||
%%DOCSDIR%%/examples/xml/test.xml
|
||||
%%DOCSDIR%%/examples/xml/test2.xml
|
||||
%%DOCSDIR%%/examples/xml/test3.xml
|
||||
%%DOCSDIR%%/examples/xml/test4.xml
|
||||
%%DOCSDIR%%/examples/xml/test5.xml
|
||||
%%DOCSDIR%%/examples/xml/testdtd.dtd
|
||||
%%DOCSDIR%%/examples/xml/xmerl.xml
|
||||
%%DOCSDIR%%/examples/xml/xmerl_xs.xml
|
||||
%%DOCSDIR%%/examples/xserl_test.erl
|
||||
%%DOCSDIR%%/index.html
|
||||
%%DOCSDIR%%/stylesheet.css
|
||||
%%DOCSDIR%%/xmerl.html
|
||||
%%DOCSDIR%%/xmerl_eventp.html
|
||||
%%DOCSDIR%%/xmerl_examples.html
|
||||
%%DOCSDIR%%/xmerl_scan.html
|
||||
%%DOCSDIR%%/xmerl_xpath.html
|
||||
%%DOCSDIR%%/xmerl_xs.html
|
||||
%%DOCSDIR%%/xmerl_xs_examples.html
|
||||
@dirrm lib/erlang/lib/xmerl/src
|
||||
@dirrm lib/erlang/lib/xmerl/inc
|
||||
@dirrm lib/erlang/lib/xmerl/ebin
|
||||
@dirrm lib/erlang/lib/xmerl
|
||||
@dirrm %%DOCSDIR%%/examples/xml
|
||||
@dirrm %%DOCSDIR%%/examples
|
||||
@dirrm %%DOCSDIR%%
|
||||
lib/erlang/lib/xmerl-%%VERSION%%/ebin/xmerl.app
|
||||
lib/erlang/lib/xmerl-%%VERSION%%/ebin/xmerl.beam
|
||||
lib/erlang/lib/xmerl-%%VERSION%%/ebin/xmerl_eventp.beam
|
||||
lib/erlang/lib/xmerl-%%VERSION%%/ebin/xmerl_html.beam
|
||||
lib/erlang/lib/xmerl-%%VERSION%%/ebin/xmerl_lib.beam
|
||||
lib/erlang/lib/xmerl-%%VERSION%%/ebin/xmerl_scan.beam
|
||||
lib/erlang/lib/xmerl-%%VERSION%%/ebin/xmerl_simple.beam
|
||||
lib/erlang/lib/xmerl-%%VERSION%%/ebin/xmerl_text.beam
|
||||
lib/erlang/lib/xmerl-%%VERSION%%/ebin/xmerl_validate.beam
|
||||
lib/erlang/lib/xmerl-%%VERSION%%/ebin/xmerl_xlate.beam
|
||||
lib/erlang/lib/xmerl-%%VERSION%%/ebin/xmerl_xml.beam
|
||||
lib/erlang/lib/xmerl-%%VERSION%%/ebin/xmerl_xpath.beam
|
||||
lib/erlang/lib/xmerl-%%VERSION%%/ebin/xmerl_xpath_parse.beam
|
||||
lib/erlang/lib/xmerl-%%VERSION%%/ebin/xmerl_xpath_pred.beam
|
||||
lib/erlang/lib/xmerl-%%VERSION%%/ebin/xmerl_xpath_scan.beam
|
||||
lib/erlang/lib/xmerl-%%VERSION%%/ebin/xmerl_xs.beam
|
||||
lib/erlang/lib/xmerl-%%VERSION%%/inc/xmerl.hrl
|
||||
lib/erlang/lib/xmerl-%%VERSION%%/inc/xmerl_xlink.hrl
|
||||
lib/erlang/lib/xmerl-%%VERSION%%/src/Makefile
|
||||
lib/erlang/lib/xmerl-%%VERSION%%/src/xmerl.app.src
|
||||
lib/erlang/lib/xmerl-%%VERSION%%/src/xmerl.erl
|
||||
lib/erlang/lib/xmerl-%%VERSION%%/src/xmerl_eventp.erl
|
||||
lib/erlang/lib/xmerl-%%VERSION%%/src/xmerl_html.erl
|
||||
lib/erlang/lib/xmerl-%%VERSION%%/src/xmerl_lib.erl
|
||||
lib/erlang/lib/xmerl-%%VERSION%%/src/xmerl_scan.erl
|
||||
lib/erlang/lib/xmerl-%%VERSION%%/src/xmerl_simple.erl
|
||||
lib/erlang/lib/xmerl-%%VERSION%%/src/xmerl_text.erl
|
||||
lib/erlang/lib/xmerl-%%VERSION%%/src/xmerl_validate.erl
|
||||
lib/erlang/lib/xmerl-%%VERSION%%/src/xmerl_xlate.erl
|
||||
lib/erlang/lib/xmerl-%%VERSION%%/src/xmerl_xml.erl
|
||||
lib/erlang/lib/xmerl-%%VERSION%%/src/xmerl_xpath.erl
|
||||
lib/erlang/lib/xmerl-%%VERSION%%/src/xmerl_xpath_parse.erl
|
||||
lib/erlang/lib/xmerl-%%VERSION%%/src/xmerl_xpath_parse.yrl
|
||||
lib/erlang/lib/xmerl-%%VERSION%%/src/xmerl_xpath_pred.erl
|
||||
lib/erlang/lib/xmerl-%%VERSION%%/src/xmerl_xpath_scan.erl
|
||||
lib/erlang/lib/xmerl-%%VERSION%%/src/xmerl_xs.erl
|
||||
%%PORTDOCS%%%%DOCSDIR%%/contributors.html
|
||||
%%PORTDOCS%%%%DOCSDIR%%/examples/Makefile
|
||||
%%PORTDOCS%%%%DOCSDIR%%/examples/mkdocs.erl
|
||||
%%PORTDOCS%%%%DOCSDIR%%/examples/sdocbook2xhtml.erl
|
||||
%%PORTDOCS%%%%DOCSDIR%%/examples/test_html.erl
|
||||
%%PORTDOCS%%%%DOCSDIR%%/examples/xmerl_test.erl
|
||||
%%PORTDOCS%%%%DOCSDIR%%/examples/xml/test.xml
|
||||
%%PORTDOCS%%%%DOCSDIR%%/examples/xml/test2.xml
|
||||
%%PORTDOCS%%%%DOCSDIR%%/examples/xml/test3.xml
|
||||
%%PORTDOCS%%%%DOCSDIR%%/examples/xml/test4.xml
|
||||
%%PORTDOCS%%%%DOCSDIR%%/examples/xml/test5.xml
|
||||
%%PORTDOCS%%%%DOCSDIR%%/examples/xml/testdtd.dtd
|
||||
%%PORTDOCS%%%%DOCSDIR%%/examples/xml/xmerl.xml
|
||||
%%PORTDOCS%%%%DOCSDIR%%/examples/xml/xmerl_xs.xml
|
||||
%%PORTDOCS%%%%DOCSDIR%%/examples/xserl_test.erl
|
||||
%%PORTDOCS%%%%DOCSDIR%%/index.html
|
||||
%%PORTDOCS%%%%DOCSDIR%%/stylesheet.css
|
||||
%%PORTDOCS%%%%DOCSDIR%%/xmerl.html
|
||||
%%PORTDOCS%%%%DOCSDIR%%/xmerl_eventp.html
|
||||
%%PORTDOCS%%%%DOCSDIR%%/xmerl_examples.html
|
||||
%%PORTDOCS%%%%DOCSDIR%%/xmerl_scan.html
|
||||
%%PORTDOCS%%%%DOCSDIR%%/xmerl_xpath.html
|
||||
%%PORTDOCS%%%%DOCSDIR%%/xmerl_xs.html
|
||||
%%PORTDOCS%%%%DOCSDIR%%/xmerl_xs_examples.html
|
||||
%%PORTDOCS%%@exec ln -sf %D/%%DOCSDIR%% %D/lib/erlang/lib/xmerl-%%VERSION%%/doc
|
||||
%%PORTDOCS%%@unexec rm -f %D/lib/erlang/lib/xmerl/doc
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%/examples/xml
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%/examples
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%
|
||||
@dirrm lib/erlang/lib/xmerl-%%VERSION%%/src
|
||||
@dirrm lib/erlang/lib/xmerl-%%VERSION%%/inc
|
||||
@dirrm lib/erlang/lib/xmerl-%%VERSION%%/ebin
|
||||
@dirrm lib/erlang/lib/xmerl-%%VERSION%%
|
||||
@exec ln -sf xmerl-%%VERSION%% %D/lib/erlang/lib/xmerl
|
||||
@unexec rm -f %D/lib/erlang/lib/xmerl
|
||||
|
Loading…
Reference in New Issue
Block a user