mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-20 04:02:27 +00:00
1d98cee9f7
D library for retrieving XDG base directories as described by XDG Base Directory Specification WWW: https://github.com/FreeSlave/xdgpaths
34 lines
770 B
Makefile
34 lines
770 B
Makefile
# $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 <bsd.port.mk>
|