View | Details | Raw Unified | Return to bug 260110 | Differences between
and this patch

Collapse All | Expand All

(-)b/devel/dub/Makefile (-1 / +9 lines)
Lines 1-5 Link Here
1
PORTNAME=	dub
1
PORTNAME=	dub
2
PORTVERSION=	1.14.0
2
PORTVERSION=	1.14.0
3
PORTREVISION=	1
3
DISTVERSIONPREFIX=	v
4
DISTVERSIONPREFIX=	v
4
CATEGORIES=	devel
5
CATEGORIES=	devel
5
6
Lines 17-24 GH_ACCOUNT= dlang Link Here
17
18
18
PLIST_FILES=	bin/${PORTNAME}
19
PLIST_FILES=	bin/${PORTNAME}
19
20
21
.include <bsd.port.pre.mk>
22
20
post-patch:
23
post-patch:
21
	@${REINPLACE_CMD} -e 's|%%PORTVERSION%%|${PORTVERSION}|g' ${WRKSRC}/source/dub/version_.d
24
	@${REINPLACE_CMD} -e 's|%%PORTVERSION%%|${PORTVERSION}|g' ${WRKSRC}/source/dub/version_.d
25
.if (${OSVERSION} >= 1400042)
26
	@${REINPLACE_CMD} -e 's|%%LDFLAGS%%|-L=-Wl,-z,nostart-stop-gc|g' ${WRKSRC}/build.sh
27
.else
28
	@${REINPLACE_CMD} -e 's|%%LDFLAGS%%||g' ${WRKSRC}/build.sh
29
.endif
22
30
23
do-build:
31
do-build:
24
	@cd ${WRKSRC} && ${SH} build.sh
32
	@cd ${WRKSRC} && ${SH} build.sh
Lines 26-29 do-build: Link Here
26
do-install:
34
do-install:
27
	${INSTALL_PROGRAM} ${WRKSRC}/bin/${PORTNAME} ${STAGEDIR}/${PREFIX}/bin/${PORTNAME}
35
	${INSTALL_PROGRAM} ${WRKSRC}/bin/${PORTNAME} ${STAGEDIR}/${PREFIX}/bin/${PORTNAME}
28
36
29
.include <bsd.port.mk>
37
.include <bsd.port.post.mk>
(-)b/devel/dub/files/patch-build.sh (-1 / +1 lines)
Lines 21-27 Link Here
21
 
21
 
22
 echo Running $DMD...
22
 echo Running $DMD...
23
-$DMD -ofbin/dub -g -O -w -version=DubUseCurl -version=DubApplication -Isource $* $LIBS @build-files.txt
23
-$DMD -ofbin/dub -g -O -w -version=DubUseCurl -version=DubApplication -Isource $* $LIBS @build-files.txt
24
+$DMD -ofbin/dub -O -w -version=DubUseCurl -version=DubApplication -Isource $* $LIBS @build-files.txt
24
+$DMD -ofbin/dub -O -w -version=DubUseCurl -version=DubApplication -Isource %%LDFLAGS%% $* $LIBS @build-files.txt
25
 bin/dub --version
25
 bin/dub --version
26
 echo DUB has been built as bin/dub.
26
 echo DUB has been built as bin/dub.
27
 echo
27
 echo

Return to bug 260110