Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
devel/lutok: Switch to FreeBSD upstream
- As per the recent discussion switch to the FreeBSD upstream - For now resetting MAINTAINER to myself with ci@ hat on but anyone from ci@ feel free to commit - Pet port{clippy|fmt} PR: 276071 Approved by: jmmv (private mail)
- Loading branch information
Showing
3 changed files
with
36 additions
and
250 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,53 @@ | ||
PORTNAME= lutok | ||
PORTVERSION= 0.4 | ||
PORTREVISION= 8 | ||
DISTVERSION= 0.4 | ||
PORTREVISION= 9 | ||
CATEGORIES= devel | ||
MASTER_SITES= https://github.com/jmmv/lutok/releases/download/${PORTNAME}-${PORTVERSION}/ \ | ||
LOCAL/jmmv | ||
|
||
MAINTAINER= jmmv@FreeBSD.org | ||
MAINTAINER= bofh@FreeBSD.org | ||
COMMENT= Lightweight C++ API for Lua | ||
WWW= https://github.com/jmmv/lutok/ | ||
|
||
LICENSE= BSD3CLAUSE | ||
|
||
GNU_CONFIGURE= yes | ||
INSTALL_TARGET= install-strip | ||
USES= libtool lua pkgconfig | ||
USES= autoreconf libtool lua pathfix pkgconfig | ||
USE_CXXSTD= gnu++11 | ||
USE_GITHUB= yes | ||
GH_ACCOUNT= freebsd | ||
GH_TAGNAME= ${PORTNAME}-${DISTVERSION} | ||
USE_LDCONFIG= yes | ||
|
||
OPTIONS_DEFINE= DOCS EXAMPLES TEST | ||
OPTIONS_DEFAULT=TEST | ||
|
||
OPTIONS_SUB= yes | ||
TEST_CONFIGURE_WITH= atf | ||
TEST_BUILD_DEPENDS= atf>=0.21:devel/atf | ||
TEST_RUN_DEPENDS= atf>=0.21:devel/atf | ||
|
||
.include <bsd.port.options.mk> | ||
|
||
CONFIGURE_ARGS+= --docdir=${DOCSDIR} | ||
CONFIGURE_ARGS+= --htmldir=${DOCSDIR}/html | ||
# The distfile contains prebuilt doxygen files. Specify --without_doxygen so | ||
# we won't rebuild them | ||
CONFIGURE_ARGS+= --without-doxygen | ||
|
||
GNU_CONFIGURE= yes | ||
# Force the use of the lua version we have chosen via USE_LUA. If we allow | ||
# lutok's configure script search for one using pkgconfig files, it might pick | ||
# a different version. | ||
CONFIGURE_ARGS+= LUA_CFLAGS="-I${LUA_INCDIR}" | ||
CONFIGURE_ARGS+= LUA_LIBS="-L${LUA_LIBDIR} -llua-${LUA_VER} -lm" | ||
|
||
MAKE_FLAGS+= examplesdir=${EXAMPLESDIR} | ||
MAKE_FLAGS+= pkgconfigdir=${PREFIX}/libdata/pkgconfig | ||
.if ! ${PORT_OPTIONS:MDOCS} | ||
MAKE_FLAGS+= doc_DATA= | ||
.endif | ||
.if ! ${PORT_OPTIONS:MEXAMPLES} | ||
MAKE_FLAGS+= examples_DATA= | ||
.endif | ||
|
||
PLIST_SUB+= TESTS="@comment " | ||
|
||
.if ! ${PORT_OPTIONS:MDOCS} | ||
pre-install: .SILENT | ||
${RM} -r ${WRKSRC}/api-docs | ||
.endif | ||
# pkgconfigdir=${PREFIX}/libdata/pkgconfig | ||
|
||
INSTALL_TARGET= install-strip | ||
|
||
PORTDOCS= AUTHORS COPYING NEWS README html/* | ||
|
||
OPTIONS_DEFINE= DOCS EXAMPLES TEST | ||
OPTIONS_DEFAULT=TEST | ||
OPTIONS_SUB= yes | ||
|
||
DOCS_BUILD_DEPENDS= doxygen>0:devel/doxygen | ||
DOCS_CONFIGURE_ON= --docdir=${DOCSDIR} --htmldir=${DOCSDIR}/html | ||
DOCS_CONFIGURE_OFF= --without-doxygen | ||
DOCS_MAKE_ARGS_OFF= doc_DATA= | ||
EXAMPLES_MAKE_ARGS_OFF= dist_examples_DATA= | ||
TEST_BUILD_DEPENDS= atf>=0.21:devel/atf | ||
TEST_RUN_DEPENDS= atf>=0.21:devel/atf | ||
TEST_CONFIGURE_WITH= atf | ||
|
||
pre-install-DOCS-off: | ||
@${RM} -r ${WRKSRC}/api-docs | ||
|
||
post-install-DOCS-on: | ||
${MKDIR} ${STAGEDIR}${DOCSDIR} | ||
(cd ${WRKSRC}/api-docs && ${COPYTREE_SHARE} html ${STAGEDIR}${DOCSDIR}) | ||
|
||
.include <bsd.port.mk> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
SHA256 (lutok-0.4.tar.gz) = 2cec51efa0c8d65ace8b21eaa08384b77abc5087b46e785f78de1c21fb754cd5 | ||
SIZE (lutok-0.4.tar.gz) = 489570 | ||
TIMESTAMP = 1704256837 | ||
SHA256 (freebsd-lutok-0.4-lutok-0.4_GH0.tar.gz) = 475da420c75a566533f8763ee161525a533cf976f1901f089796bb867953098f | ||
SIZE (freebsd-lutok-0.4-lutok-0.4_GH0.tar.gz) = 37561 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters