From 1d98cee9f7cbb5719df51ab7bd198b72502976c1 Mon Sep 17 00:00:00 2001 From: Jose Alonso Cardenas Marquez Date: Fri, 15 Jun 2018 18:09:04 +0000 Subject: [PATCH] - New port: devel/xdgpaths D library for retrieving XDG base directories as described by XDG Base Directory Specification WWW: https://github.com/FreeSlave/xdgpaths --- devel/Makefile | 1 + devel/xdgpaths/Makefile | 33 +++++++++++++++++++++++++++++ devel/xdgpaths/distinfo | 3 +++ devel/xdgpaths/files/patch-dub.json | 12 +++++++++++ devel/xdgpaths/pkg-descr | 4 ++++ devel/xdgpaths/pkg-plist | 2 ++ 6 files changed, 55 insertions(+) create mode 100644 devel/xdgpaths/Makefile create mode 100644 devel/xdgpaths/distinfo create mode 100644 devel/xdgpaths/files/patch-dub.json create mode 100644 devel/xdgpaths/pkg-descr create mode 100644 devel/xdgpaths/pkg-plist diff --git a/devel/Makefile b/devel/Makefile index 332639f28378..f1aaeb01e8c2 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -6224,6 +6224,7 @@ SUBDIR += xc3sprog SUBDIR += xdg-user-dirs SUBDIR += xdg-utils + SUBDIR += xdgpaths SUBDIR += xfce4-dev-tools SUBDIR += xfce4-vala SUBDIR += xmake diff --git a/devel/xdgpaths/Makefile b/devel/xdgpaths/Makefile new file mode 100644 index 000000000000..fe1958e3df92 --- /dev/null +++ b/devel/xdgpaths/Makefile @@ -0,0 +1,33 @@ +# $FreeBSD$ + +PORTNAME= xdgpaths +PORTVERSION= 0.2.4 +DISTVERSIONPREFIX= v +CATEGORIES= devel + +MAINTAINER= acm@FreeBSD.org +COMMENT= XDG Base Directory Specification implementation in D lang + +LICENSE= BSL + +BUILD_DEPENDS= ldmd2:lang/ldc \ + dub:devel/dub \ + ${LOCALBASE}/lib/d/libisfreedesktop.a:devel/isfreedesktop + +USE_GITHUB= yes +GH_ACCOUNT= FreeSlave + +DUB_CMD= ${LOCALBASE}/bin/dub build --build=release +D_INCLUDE_DIR= ${PREFIX}/include/d +D_LIB_DIR= ${PREFIX}/lib/d + +do-build: + @cd ${WRKSRC} && ${DUB_CMD} + +do-install: + @${MKDIR} ${STAGEDIR}${D_INCLUDE_DIR} + @${MKDIR} ${STAGEDIR}${D_LIB_DIR} + ${INSTALL_DATA} ${WRKSRC}/lib/libxdgpaths.a ${STAGEDIR}${D_LIB_DIR} + cd ${WRKSRC}/source && ${COPYTREE_SHARE} . ${STAGEDIR}${D_INCLUDE_DIR} "-name *\.d" + +.include diff --git a/devel/xdgpaths/distinfo b/devel/xdgpaths/distinfo new file mode 100644 index 000000000000..15643db379f3 --- /dev/null +++ b/devel/xdgpaths/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1513180834 +SHA256 (FreeSlave-xdgpaths-v0.2.4_GH0.tar.gz) = 5eaa56100be022987baa62765474a2e243c00fc7e701895e5e719dee5836c44b +SIZE (FreeSlave-xdgpaths-v0.2.4_GH0.tar.gz) = 6345 diff --git a/devel/xdgpaths/files/patch-dub.json b/devel/xdgpaths/files/patch-dub.json new file mode 100644 index 000000000000..d67636636279 --- /dev/null +++ b/devel/xdgpaths/files/patch-dub.json @@ -0,0 +1,12 @@ +--- dub.json.orig 2017-12-13 11:01:34.079914000 -0500 ++++ dub.json 2017-12-13 11:01:47.615013000 -0500 +@@ -6,9 +6,6 @@ + "authors": ["Roman Chistokhodov"], + "targetPath" : "lib", + "targetType" : "library", +- "dependencies": { +- "isfreedesktop" : "~>0.1.0" +- }, + "buildTypes" : { + "docs" : { + "buildOptions" : ["syntaxOnly"], diff --git a/devel/xdgpaths/pkg-descr b/devel/xdgpaths/pkg-descr new file mode 100644 index 000000000000..938490ab3f8f --- /dev/null +++ b/devel/xdgpaths/pkg-descr @@ -0,0 +1,4 @@ +D library for retrieving XDG base directories as described by XDG Base +Directory Specification + +WWW: https://github.com/FreeSlave/xdgpaths diff --git a/devel/xdgpaths/pkg-plist b/devel/xdgpaths/pkg-plist new file mode 100644 index 000000000000..919e96d82284 --- /dev/null +++ b/devel/xdgpaths/pkg-plist @@ -0,0 +1,2 @@ +include/d/xdgpaths.d +lib/d/libxdgpaths.a