Index: ports-mgmt/Makefile =================================================================== --- ports-mgmt/Makefile +++ ports-mgmt/Makefile @@ -78,6 +78,8 @@ SUBDIR += reprise SUBDIR += sccache-overlay SUBDIR += submodules2tuple + SUBDIR += subpkgtest + SUBDIR += subpkgtest2 SUBDIR += synth SUBDIR += wanted-ports Index: ports-mgmt/subpkgtest/Makefile =================================================================== --- /dev/null +++ ports-mgmt/subpkgtest/Makefile @@ -0,0 +1,49 @@ +PORTNAME= port-test +PORTVERSION= 0.0.2 +DISTVERSIONPREFIX= v +CATEGORIES= ports-mgmt + +MAINTAINER= pizzamig@FreeBSD.org +COMMENT= Small C project to be used as test +WWW= https://github.com/pizzamig/port-test + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +USE_GITHUB= yes +GH_ACCOUNT= pizzamig + +OPTIONS_DEFINE= DATA DOCS EXAMPLES +OPTIONS_SUB= yes +OPTIONS_DEFAULT= DATA + +DATA_DESC= Install additional data files + +SUBPACKAGES= cmd2 +SELF_DEPENDS.cmd2= main + +DATA_SUBPACKAGES= data1 data2 +DOCS_SUBPACKAGES= docs +EXAMPLES_SUBPACKAGES= examples + +PORTDOCS= README.md +PORTEXAMPLES= EXAMPLES.md + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/cmd1 ${STAGEDIR}${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/cmd2 ${STAGEDIR}${PREFIX}/bin + +post-install-DATA-on: + ${MKDIR} ${STAGEDIR}${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/data1.txt ${STAGEDIR}${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/data2.txt ${STAGEDIR}${DATADIR} + +post-install-DOCS-on: + ${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR} + +post-install-EXAMPLES-on: + ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/EXAMPLES.md ${STAGEDIR}${EXAMPLESDIR} + +.include Index: ports-mgmt/subpkgtest/distinfo =================================================================== --- /dev/null +++ ports-mgmt/subpkgtest/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1686490183 +SHA256 (pizzamig-port-test-v0.0.2_GH0.tar.gz) = 3845e74e7963712d22bd8219b91914fc217e59bf63e180ccfc7f2aaaf1f2c569 +SIZE (pizzamig-port-test-v0.0.2_GH0.tar.gz) = 2203 Index: ports-mgmt/subpkgtest/pkg-descr =================================================================== --- /dev/null +++ ports-mgmt/subpkgtest/pkg-descr @@ -0,0 +1,2 @@ +port-test is just a test. +The code is only a bunch of hello worlds written in C Index: ports-mgmt/subpkgtest/pkg-descr.cmd2 =================================================================== --- /dev/null +++ ports-mgmt/subpkgtest/pkg-descr.cmd2 @@ -0,0 +1,2 @@ +port-test-cmd2 only contains cmd2 +The code is only a hello world written in C echoing 'cmd2' Index: ports-mgmt/subpkgtest/pkg-descr.data1 =================================================================== --- /dev/null +++ ports-mgmt/subpkgtest/pkg-descr.data1 @@ -0,0 +1 @@ +port-test-data1 only contains data1.txt file Index: ports-mgmt/subpkgtest/pkg-descr.data2 =================================================================== --- /dev/null +++ ports-mgmt/subpkgtest/pkg-descr.data2 @@ -0,0 +1 @@ +port-test-data2 only contains data2.txt file Index: ports-mgmt/subpkgtest/pkg-descr.docs =================================================================== --- /dev/null +++ ports-mgmt/subpkgtest/pkg-descr.docs @@ -0,0 +1 @@ +port-test-docs only contains documentation Index: ports-mgmt/subpkgtest/pkg-descr.examples =================================================================== --- /dev/null +++ ports-mgmt/subpkgtest/pkg-descr.examples @@ -0,0 +1 @@ +port-test-examples only contains examples Index: ports-mgmt/subpkgtest/pkg-plist =================================================================== --- /dev/null +++ ports-mgmt/subpkgtest/pkg-plist @@ -0,0 +1,4 @@ +bin/cmd1 +@@cmd2@@bin/cmd2 +@@data1@@%%DATA%%%%DATADIR%%/data1.txt +@@data2@@%%DATA%%%%DATADIR%%/data2.txt Index: ports-mgmt/subpkgtest2/Makefile =================================================================== --- /dev/null +++ ports-mgmt/subpkgtest2/Makefile @@ -0,0 +1,33 @@ +PORTNAME= port-test2 +PORTVERSION= 0.0.1 +CATEGORIES= ports-mgmt +MASTER_SITES= +DISTFILES= +EXTRACT_ONLY= + +MAINTAINER= pizzamig@FreeBSD.org +COMMENT= Meta port to test dependency of sub-packages +WWW= https://asdf.asdf.de + +NO_ARCH= yes +NO_BUILD= yes + +OPTIONS_DEFINE= DATA DOCS +OPTIONS_DEFAULT= DOCS + +RUN_DEPENDS= ${LOCALBASE}/bin/cmd1:ports-mgmt/subpkgtest \ + port-test-cmd2>=0.0.2:ports-mgmt/subpkgtest~cmd2 + +USES= metaport +PLIST_FILES= bin/link-cmd1 \ + bin/link-cmd2 + +DATA_RUN_DEPENDS= ${LOCALBASE}/share/port-test/data1.txt:ports-mgmt/subpkgtest~data1 +DOCS_RUN_DEPENDS= ${LOCALBASE}/share/doc/port-test/README.md:ports-mgmt/subpkgtest~docs + +do-install: + ${MKDIR} ${STAGEDIR}${PREFIX}/bin + ${LN} -sf ${PREFIX}/bin/cmd1 ${STAGEDIR}${PREFIX}/bin/link-cmd1 + ${LN} -sf ${PREFIX}/bin/cmd2 ${STAGEDIR}${PREFIX}/bin/link-cmd2 + +.include Index: ports-mgmt/subpkgtest2/pkg-descr =================================================================== --- /dev/null +++ ports-mgmt/subpkgtest2/pkg-descr @@ -0,0 +1,2 @@ +subpkgtest2 is just a test. +It's an empty package to test dependencies on tests