Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Jun 2016 17:24:21 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r417590 - in head/databases/db6: . files
Message-ID:  <201606261724.u5QHOLdG081392@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Sun Jun 26 17:24:21 2016
New Revision: 417590
URL: https://svnweb.freebsd.org/changeset/ports/417590

Log:
  - Use WRKSRC_SUBDIR
  - Convert to new options target helper
  
  Approved by:	portmgr (blanket)

Modified:
  head/databases/db6/Makefile
  head/databases/db6/files/patch-lang_sql_upgrade61.sh
  head/databases/db6/files/patch-src_dbinc_mutex__int.h

Modified: head/databases/db6/Makefile
==============================================================================
--- head/databases/db6/Makefile	Sun Jun 26 17:24:17 2016	(r417589)
+++ head/databases/db6/Makefile	Sun Jun 26 17:24:21 2016	(r417590)
@@ -15,6 +15,7 @@ MAINTAINER=	mandree@FreeBSD.org
 COMMENT=	Oracle Berkeley DB, revision ${BDBVER}
 
 LICENSE=	AGPLv3
+LICENSE_FILE=	${WRKSRC}/../LICENSE
 
 BDBVER=		${PORTVERSION:R}
 BDBMAJ=		${BDBVER:R}
@@ -27,8 +28,9 @@ CONFIGURE_SCRIPT=	../dist/configure
 GNU_CONFIGURE=	yes
 USES=		gmake libtool
 INSTALL_TARGET=	install_include install_lib install_utilities
-WRKSRC=		${WRKDIR}/${DISTNAME}/build_unix
-PATCH_WRKSRC=	${WRKDIR}/${DISTNAME}
+WRKSRC_SUBDIR=	build_unix
+#WRKSRC=		${WRKDIR}/${DISTNAME}/build_unix
+#PATCH_WRKSRC=	${WRKDIR}/${DISTNAME}
 USE_LDCONFIG=	yes
 PLIST_SUB=	BDBMAJ=${BDBMAJ} BDBVER=${BDBVER}
 MAKE_ARGS+=	docdir=${DOCSDIR}
@@ -83,27 +85,28 @@ post-install:
 .endfor
 	cd ${STAGEDIR}${PREFIX}/bin/${PORTNAME}; \
 	for i in *; do ${LN} -s -f ${PORTNAME}/$$i ../$$i-${BDBVER} ; done
-.if empty(PORT_OPTIONS:MJAVA)
+
+post-install-JAVA-off:
 	${RM} -r -f ${STAGEDIR}${DOCSDIR}/java
 .for i in gsg gsg_db_rep gsg_txn
 	${RM} -r -f ${STAGEDIR}${DOCSDIR}/${i}/JAVA
 .endfor
-.endif
-.if empty(PORT_OPTIONS:MSQL)
+
+post-install-SQL-off:
 	${RM} -r -f ${STAGEDIR}${DOCSDIR}/bdb-sql
-.endif
-.if !empty(PORT_OPTIONS:MTCL)
+
+post-install-SQL-on:
+	${INSTALL_SCRIPT} ${WRKSRC}/../lang/sql/upgrade61.sh \
+	    ${STAGEDIR}${PREFIX}/bin/${PORTNAME}-upgrade61.sh
+
+post-install-TCL-off:
 	echo "package ifneeded Db_tcl ${BDBVER} \
 	      [list load [file join $$dir libdb_tcl-${BDBVER}.so]] \
 	     " > ${STAGEDIR}${PREFIX}/lib/${PORTNAME}/pkgIndex.tcl
-.else
+
+post-install-TCL-on:
 .for i in api_reference/TCL
 	${RM} -r -f ${STAGEDIR}${DOCSDIR}/${i}
 .endfor
-.endif
-
-post-install-SQL-on:
-	${INSTALL_SCRIPT} ${WRKSRC}/../lang/sql/upgrade61.sh \
-	    ${STAGEDIR}${PREFIX}/bin/${PORTNAME}-upgrade61.sh
 
 .include <bsd.port.mk>

Modified: head/databases/db6/files/patch-lang_sql_upgrade61.sh
==============================================================================
--- head/databases/db6/files/patch-lang_sql_upgrade61.sh	Sun Jun 26 17:24:17 2016	(r417589)
+++ head/databases/db6/files/patch-lang_sql_upgrade61.sh	Sun Jun 26 17:24:21 2016	(r417590)
@@ -1,5 +1,5 @@
---- lang/sql/upgrade61.sh.orig	2016-03-28 19:45:53 UTC
-+++ lang/sql/upgrade61.sh
+--- ../lang/sql/upgrade61.sh.orig	2016-03-28 19:45:53 UTC
++++ ../lang/sql/upgrade61.sh
 @@ -1,12 +1,19 @@
  #!/bin/sh
  # This script upgrades SQL databases from BDB 5.0 to early 6.1

Modified: head/databases/db6/files/patch-src_dbinc_mutex__int.h
==============================================================================
--- head/databases/db6/files/patch-src_dbinc_mutex__int.h	Sun Jun 26 17:24:17 2016	(r417589)
+++ head/databases/db6/files/patch-src_dbinc_mutex__int.h	Sun Jun 26 17:24:21 2016	(r417590)
@@ -1,5 +1,5 @@
---- src/dbinc/mutex_int.h.orig	2016-03-28 19:45:54 UTC
-+++ src/dbinc/mutex_int.h
+--- ../src/dbinc/mutex_int.h.orig	2016-03-28 19:45:54 UTC
++++ ../src/dbinc/mutex_int.h
 @@ -652,7 +652,7 @@ MUTEX_SET(int *tsl)  {
  	 : "=&r" (__r), "+r" (tsl)
  	 :



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201606261724.u5QHOLdG081392>