Lines 1-8
Link Here
|
1 |
# Created by: Radim Kolar <hsn@sanatana.dharma> |
1 |
# Created by: Radim Kolar <hsn@sanatana.dharma> |
2 |
# $FreeBSD: head/www/scloader/Makefile 356565 2014-06-05 01:37:29Z miwi $ |
2 |
# $FreeBSD: head/www/scloader/Makefile 347789 2014-03-10 18:01:09Z bapt $ |
3 |
|
3 |
|
4 |
PORTNAME= scloader |
4 |
PORTNAME= scloader |
5 |
PORTVERSION= 0.32 |
5 |
PORTVERSION= 0.32 |
|
|
6 |
PORTREVISION= 1 |
6 |
CATEGORIES= www java |
7 |
CATEGORIES= www java |
7 |
MASTER_SITES= SF |
8 |
MASTER_SITES= SF |
8 |
DISTNAME= loader${PORTVERSION:C/\.//} |
9 |
DISTNAME= loader${PORTVERSION:C/\.//} |
Lines 10-15
Link Here
|
10 |
MAINTAINER= hsn@sendmail.cz |
11 |
MAINTAINER= hsn@sendmail.cz |
11 |
COMMENT= Configurable web graber/spider |
12 |
COMMENT= Configurable web graber/spider |
12 |
|
13 |
|
|
|
14 |
LICENSE= GPLv2 |
15 |
|
13 |
USES= dos2unix zip |
16 |
USES= dos2unix zip |
14 |
USE_JAVA= yes |
17 |
USE_JAVA= yes |
15 |
JAVA_VERSION= 1.6+ |
18 |
JAVA_VERSION= 1.6+ |
Lines 18-27
Link Here
|
18 |
NO_BUILD= yes |
21 |
NO_BUILD= yes |
19 |
|
22 |
|
20 |
PLIST_FILES= bin/${PORTNAME} %%JAVAJARDIR%%/scloader.jar |
23 |
PLIST_FILES= bin/${PORTNAME} %%JAVAJARDIR%%/scloader.jar |
21 |
PORTDOCS= README history todo |
|
|
22 |
|
24 |
|
23 |
DOS2UNIX_REGEX= .+\.[^j][^a][^r]$ |
25 |
DOS2UNIX_REGEX= .+\.[^j][^a][^r]$ |
24 |
|
26 |
|
|
|
27 |
OPTIONS_DEFINE= DOCS EXAMPLES |
28 |
|
29 |
.include <bsd.port.options.mk> |
30 |
|
25 |
do-configure: |
31 |
do-configure: |
26 |
${SED} -e "s|%%JAVA%%|${LOCALBASE}/bin/java|" \ |
32 |
${SED} -e "s|%%JAVA%%|${LOCALBASE}/bin/java|" \ |
27 |
-e "s|%%JAVAJARDIR%%|${JAVAJARDIR}|" \ |
33 |
-e "s|%%JAVAJARDIR%%|${JAVAJARDIR}|" \ |
Lines 29-44
Link Here
|
29 |
|
35 |
|
30 |
do-install: |
36 |
do-install: |
31 |
${INSTALL} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin |
37 |
${INSTALL} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin |
32 |
${MKDIR} ${STAGEDIR}${JAVAJARDIR} |
|
|
33 |
${INSTALL_DATA} ${WRKSRC}/scloader.jar ${STAGEDIR}${JAVAJARDIR} |
38 |
${INSTALL_DATA} ${WRKSRC}/scloader.jar ${STAGEDIR}${JAVAJARDIR} |
34 |
.ifndef NOPORTDOCS |
39 |
.if ${PORT_OPTIONS:MDOCS} |
35 |
${MKDIR} ${STAGEDIR}${DOCSDIR} |
40 |
${MKDIR} ${STAGEDIR}${DOCSDIR} |
36 |
.for i in ${PORTDOCS} |
41 |
.for i in README history todo |
37 |
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR} |
42 |
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR} |
38 |
.endfor |
43 |
.endfor |
39 |
${INSTALL_DATA} ${WRKSRC}/doc/manual.html ${STAGEDIR}${DOCSDIR} |
44 |
${INSTALL_DATA} ${WRKSRC}/doc/manual.html ${STAGEDIR}${DOCSDIR} |
40 |
${INSTALL_DATA} ${WRKSRC}/samples/loader.cnf ${STAGEDIR}${DOCSDIR} |
45 |
.endif |
41 |
PORTDOCS+= manual.html loader.cnf |
46 |
.if ${PORT_OPTIONS:MEXAMPLES} |
|
|
47 |
${MKDIR} ${STAGEDIR}${EXAMPLESDIR} |
48 |
${INSTALL_DATA} ${WRKSRC}/samples/loader.cnf ${STAGEDIR}${EXAMPLESDIR} |
49 |
.endif |
50 |
|
51 |
.if ${PORT_OPTIONS:MDOCS} |
52 |
PORTDOCS+= README history todo manual.html |
53 |
.endif |
54 |
|
55 |
.if ${PORT_OPTIONS:MEXAMPLES} |
56 |
PORTEXAMPLES+= loader.cnf |
42 |
.endif |
57 |
.endif |
43 |
|
58 |
|
44 |
.include <bsd.port.mk> |
59 |
.include <bsd.port.mk> |