Date: Sat, 22 Apr 2023 09:38:43 GMT From: =?utf-8?Q?Romain=20Tarti=C3=A8re?= <romain@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: f2c49a0538ad - main - devel/undead: New port Message-ID: <202304220938.33M9chkB029911@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by romain: URL: https://cgit.FreeBSD.org/ports/commit/?id=f2c49a0538adda595f967cff7beff807c7bc8a0f commit f2c49a0538adda595f967cff7beff807c7bc8a0f Author: Romain Tartière <romain@FreeBSD.org> AuthorDate: 2023-04-22 09:01:38 +0000 Commit: Romain Tartière <romain@FreeBSD.org> CommitDate: 2023-04-22 09:37:58 +0000 devel/undead: New port Need an obsolete Phobos module? Here they are, back from the dead and upgraded to work with the latest D. modules included: * std.bitarray * std.date * std.datebase * std.dateparse * std.regexp * std.signals * std.stream and friends * std.xml Some individual functions have been moved here rather than full Phobos modules. They are: * undead.doformat: Contains the doFormat function from std.format * undead.string: Contains regex style pattern matching functions from std.string --- devel/Makefile | 1 + devel/undead/Makefile | 38 ++++++++++++++++++++++++++++++++++++++ devel/undead/distinfo | 3 +++ devel/undead/files/undead.pc.in | 10 ++++++++++ devel/undead/pkg-descr | 20 ++++++++++++++++++++ devel/undead/pkg-plist | 17 +++++++++++++++++ 6 files changed, 89 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index c63a9ff332d3..46e636c8a1c0 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -7615,6 +7615,7 @@ SUBDIR += ultragetopt SUBDIR += umbrello SUBDIR += umlgraph + SUBDIR += undead SUBDIR += unibilium SUBDIR += universal-ctags SUBDIR += upnp diff --git a/devel/undead/Makefile b/devel/undead/Makefile new file mode 100644 index 000000000000..f7d3a4c463a2 --- /dev/null +++ b/devel/undead/Makefile @@ -0,0 +1,38 @@ +PORTNAME= undead +DISTVERSIONPREFIX=v +DISTVERSION= 1.1.8 +CATEGORIES= devel + +MAINTAINER= romain@FreeBSD.org +COMMENT= Obsolete Phobos modules upgraded to work with the latest D + +LICENSE= BSL +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ldmd2:lang/ldc \ + dub:devel/dub + +USE_GITHUB= yes +GH_ACCOUNT= dlang +GH_PROJECT= undeaD + +DUB_CMD= ${LOCALBASE}/bin/dub build --build=release +D_INCLUDE_DIR= ${PREFIX}/include/d +D_LIB_DIR= ${PREFIX}/lib/d +DC= ${PREFIX}/bin/ldmd2 + +SUB_FILES= undead.pc +SUB_LIST= DISTVERSION=${DISTVERSION} + +do-build: + @cd ${WRKSRC} && DC=${DC} ${DUB_CMD} + +do-install: + @${MKDIR} ${STAGEDIR}${D_INCLUDE_DIR} + @${MKDIR} ${STAGEDIR}${D_LIB_DIR} + @${MKDIR} ${STAGEDIR}${PREFIX}/libdata/pkgconfig + ${INSTALL_DATA} ${WRKSRC}/bin/libundead.a ${STAGEDIR}${D_LIB_DIR} + cd ${WRKSRC}/src && ${COPYTREE_SHARE} . ${STAGEDIR}${D_INCLUDE_DIR} "-name *\.d" + cd ${WRKDIR} && ${COPYTREE_SHARE} undead.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig + +.include <bsd.port.mk> diff --git a/devel/undead/distinfo b/devel/undead/distinfo new file mode 100644 index 000000000000..efb7d273eb29 --- /dev/null +++ b/devel/undead/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1682128804 +SHA256 (dlang-undeaD-v1.1.8_GH0.tar.gz) = 36a59b4740b147f4345caa26908f40a97fc7cc67dac6983c226369c59f909e92 +SIZE (dlang-undeaD-v1.1.8_GH0.tar.gz) = 97174 diff --git a/devel/undead/files/undead.pc.in b/devel/undead/files/undead.pc.in new file mode 100644 index 000000000000..f2bb8424d014 --- /dev/null +++ b/devel/undead/files/undead.pc.in @@ -0,0 +1,10 @@ +prefix=%%PREFIX%% +exec_prefix=${prefix} +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: undead +Description: Obsolete Phobos modules, back from the dead. +Version: %%DISTVERSION%% +Libs: -L-L${libdir}/d -L-lundead +Cflags: -I${includedir}/d diff --git a/devel/undead/pkg-descr b/devel/undead/pkg-descr new file mode 100644 index 000000000000..8c15c12bab7e --- /dev/null +++ b/devel/undead/pkg-descr @@ -0,0 +1,20 @@ +Need an obsolete Phobos module? Here they are, back from the dead and upgraded +to work with the latest D. + +modules included: + + * std.bitarray + * std.date + * std.datebase + * std.dateparse + * std.regexp + * std.signals + * std.stream and friends + * std.xml + +Some individual functions have been moved here rather than full Phobos modules. +They are: + + * undead.doformat: Contains the doFormat function from std.format + * undead.string: Contains regex style pattern matching functions from + std.string diff --git a/devel/undead/pkg-plist b/devel/undead/pkg-plist new file mode 100644 index 000000000000..43062fe06269 --- /dev/null +++ b/devel/undead/pkg-plist @@ -0,0 +1,17 @@ +include/d/undead/bitarray.d +include/d/undead/cstream.d +include/d/undead/date.d +include/d/undead/datebase.d +include/d/undead/dateparse.d +include/d/undead/doformat.d +include/d/undead/internal/file.d +include/d/undead/metastrings.d +include/d/undead/regexp.d +include/d/undead/signals.d +include/d/undead/socketstream.d +include/d/undead/stream.d +include/d/undead/string.d +include/d/undead/utf.d +include/d/undead/xml.d +lib/d/libundead.a +libdata/pkgconfig/undead.pc
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202304220938.33M9chkB029911>