socsvn commit: r238105 - in soc2012/scher/par_ports/head/fake_ports/with_options: fake5 fake5opt

scher at FreeBSD.org scher at FreeBSD.org
Thu Jun 21 19:24:58 UTC 2012


Author: scher
Date: Thu Jun 21 19:24:55 2012
New Revision: 238105
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=238105

Log:
  Add new fake port (fake5opt)
  

Added:
  soc2012/scher/par_ports/head/fake_ports/with_options/fake5opt/
  soc2012/scher/par_ports/head/fake_ports/with_options/fake5opt/Makefile   (contents, props changed)
  soc2012/scher/par_ports/head/fake_ports/with_options/fake5opt/pkg-descr
Modified:
  soc2012/scher/par_ports/head/fake_ports/with_options/fake5/Makefile

Modified: soc2012/scher/par_ports/head/fake_ports/with_options/fake5/Makefile
==============================================================================
--- soc2012/scher/par_ports/head/fake_ports/with_options/fake5/Makefile	Thu Jun 21 18:28:48 2012	(r238104)
+++ soc2012/scher/par_ports/head/fake_ports/with_options/fake5/Makefile	Thu Jun 21 19:24:55 2012	(r238105)
@@ -5,13 +5,18 @@
 
 WRKSRC= ${WRKDIR}/fake-1.0
 
-OPTIONS_DEFINE= FAKE5_OPT1 FAKE5_OPT2
+OPTIONS_DEFINE= FAKE5_OPT1 FAKE5_OPT2 FAKE5_FAKE5OPT
 
+FAKE5_FAKE5OPT_DESC = Add optional port fake5opt to BUILD_DEPENDS
 FAKE5_OPT1_DESC = Enable FAKE5_OPT1 support
 FAKE5_OPT2_DESC = Use FAKE5_OPT2
 
 .include <bsd.port.options.mk>
 
+.if ${PORT_OPTIONS:MFAKE5_FAKE5OPT}
+BUILD_DEPENDS= ${PORTSDIR}/tmp/fake5opt:${PORTSDIR}/fake_ports/with_options/fake5opt
+.endif
+
 do-install:
 	echo ${PORT_OPTIONS}
 	@echo "Port: "fake5" is installing now"

Added: soc2012/scher/par_ports/head/fake_ports/with_options/fake5opt/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ soc2012/scher/par_ports/head/fake_ports/with_options/fake5opt/Makefile	Thu Jun 21 19:24:55 2012	(r238105)
@@ -0,0 +1,23 @@
+PORTNAME=fake5opt
+PORTVERSION=1.0
+DISTFILES=fake-1.0.tar.gz
+CATEGORIES=fake_ports
+
+WRKSRC= ${WRKDIR}/fake-1.0
+
+OPTIONS_DEFINE= FAKE5OPT_OPT1
+
+FAKE5OPT_OPT1_DESC= just option
+
+
+.include <bsd.port.options.mk>
+
+do-install:
+	@echo "Port: "fake5opt" is installing now"
+	sleep 3; \
+	touch ${PORTSDIR}/tmp/fake5opt;
+
+pre-clean:
+	rm -rf ${PORTSDIR}/tmp/fake5opt;
+
+.include <bsd.port.mk>

Added: soc2012/scher/par_ports/head/fake_ports/with_options/fake5opt/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ soc2012/scher/par_ports/head/fake_ports/with_options/fake5opt/pkg-descr	Thu Jun 21 19:24:55 2012	(r238105)
@@ -0,0 +1,2 @@
+This is a description for fake port
+That is all so far
\ No newline at end of file


More information about the svn-soc-all mailing list