1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00

Honor EXAMPLESDIR and JAVAJARDIR.

Suggested by: Herve Quiroz <hq@>
This commit is contained in:
Palle Girgensohn 2005-11-10 02:41:43 +00:00
parent 06f0d6a227
commit 32fdacb4b2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=147774
3 changed files with 7 additions and 9 deletions

View File

@ -21,18 +21,15 @@ DIST_SUBDIR= postgresql
USE_ANT= yes
USE_JAVA= yes
JAVA_VERSION?= "1.1+"
USE_REINPLACE= yes
PKGMESSAGE= ${WRKDIR}/.pkg-message
post-patch:
${REINPLACE_CMD} 's,/usr/local/pgsql/share/java,${PREFIX}/share/java/classes,' ${WRKSRC}/README
${REINPLACE_CMD} 's,/usr/local/pgsql/share/java,${JAVAJARDIR},' ${WRKSRC}/README
do-install:
@- ${MKDIR} -m 0755 ${PREFIX}/share/java/classes ;\
${INSTALL_DATA} ${WRKSRC}/jars/postgresql.jar \
${PREFIX}/share/java/classes/postgresql.jar ;\
@- ${INSTALL_DATA} ${WRKSRC}/jars/postgresql.jar ${JAVAJARDIR}/postgresql.jar ;\
${MKDIR} -m 0755 ${DOCSDIR} ;\
${INSTALL_DATA} ${WRKSRC}/README \
${DOCSDIR}/README-jdbc
@ -45,7 +42,8 @@ do-install:
.endif
post-install:
@ ${SED} "s|%%PREFIX%%|${PREFIX}|g" \
@ ${SED} -e "s|%%EXAMPLESDIR%%|${EXAMPLESDIR}|g" \
-e "s|%%JAVAJARDIR%%|${JAVAJARDIR}|g" \
< ${PKGDIR}/pkg-message > ${PKGMESSAGE}
@ ${CAT} ${PKGMESSAGE}

View File

@ -1,8 +1,8 @@
PostgreSQL JDBC support installed!
postgresql.jar resides in
%%PREFIX%%/share/java/classes/postgresql.jar
%%JAVAJARDIR%%/postgresql.jar
Add this to your CLASSPATH!
java examples reside in
%%PREFIX%%/share/examples/postgresql/jdbc
%%EXAMPLESDIR%%/jdbc

View File

@ -16,7 +16,7 @@
%%PORTDOCS%%%%EXAMPLESDIR%%/jdbc/postgresql-examples.jar
%%PORTDOCS%%%%EXAMPLESDIR%%/jdbc/psql.java
%%PORTDOCS%%%%EXAMPLESDIR%%/jdbc/threadsafe.java
share/java/classes/postgresql.jar
%%JAVAJARDIR%%/postgresql.jar
%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%/jdbc/corba
%%PORTDOCS%%@unexec rmdir %D/%%EXAMPLESDIR%%/jdbc 2>/dev/null || true
%%PORTDOCS%%@unexec rmdir %D/%%EXAMPLESDIR%% 2>/dev/null || true