pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

lldb-git: Adapt package for fetching sources from git



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Mon Sep 21 22:38:57 2015 +0200
Changeset:	d21eafb306b11aec6d35ca94b882c3b6973d0e4c

Modified Files:
	lldb-git/Makefile.common

Log Message:
lldb-git: Adapt package for fetching sources from git

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=d21eafb306b11aec6d35ca94b882c3b6973d0e4c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 lldb-git/Makefile.common | 26 +++++++++++++-------------
 1 file changed, 13 insertions(+), 13 deletions(-)

diffs:
diff --git a/lldb-git/Makefile.common b/lldb-git/Makefile.common
index 537f861..b3fcfd8 100644
--- a/lldb-git/Makefile.common
+++ b/lldb-git/Makefile.common
@@ -3,20 +3,23 @@
 # used by lang/clang/Makefile
 # used by lang/libLLVM/Makefile
 
-DISTNAME=	clang-3.6.2
+# This is a dummy package - only for lldb/llvm porting efforts
+# It will conflict with clang and llvm packages
+
+PKGNAME=	lldb-0.0.0
 CATEGORIES=	lang
-MASTER_SITES=	http://llvm.org/releases/${PKGVERSION_NOREV}/
-DISTFILES=	llvm-${PKGVERSION_NOREV}.src.tar.xz \
-		libcxx-${PKGVERSION_NOREV}.src.tar.xz \
-		cfe-${PKGVERSION_NOREV}.src.tar.xz \
-		compiler-rt-${PKGVERSION_NOREV}.src.tar.xz
+
+GIT_REPOSITORIES=	llvm lldb clang
+GIT_REPO.llvm=		git%github.com@localhost:llvm-mirror/llvm.git
+GIT_REPO.clang=		git%github.com@localhost:llvm-mirror/clang.git
+GIT_REPO.lldb=		git%github.com@localhost:llvm-mirror/lldb.git
 
 MAINTAINER=	adam.hoka%gmail.com@localhost
 HOMEPAGE=	http://llvm.org/
 COMMENT=	Low Level Virtual Machine compiler infrastructure
 LICENSE=	modified-bsd
 
-WRKSRC=			${WRKDIR}/llvm-${PKGVERSION_NOREV}.src
+WRKSRC=			${WRKDIR}/llvm
 
 USE_LANGUAGES=		c c++
 USE_TOOLS+=		chown gmake groff gzip pod2html pod2man
@@ -94,13 +97,10 @@ SUBST_SED.libcxx=		-e 's,Major >= 7 || (Major == 6 && Minor == 99 && Micro >= 49
 .endif
 
 post-extract:
-	mv ${WRKDIR}/libcxx-${PKGVERSION_NOREV}.src ${WRKSRC}/projects/libcxx
-	mv ${WRKDIR}/compiler-rt-${PKGVERSION_NOREV}.src ${WRKSRC}/projects/compiler-rt
-	mv ${WRKDIR}/cfe-${PKGVERSION_NOREV}.src ${WRKSRC}/tools/clang
-.if ${OPSYS} == "SunOS"
-	${ECHO} "int sun_ld_needs_a_symbol=0;" >> ${WRKSRC}/lib/Target/NVPTX/InstPrinter/NVPTXInstPrinter.cpp
-.endif
+	mv ${WRKDIR}/clang/ ${WRKSRC}/tools
+	mv ${WRKDIR}/lldb/ ${WRKSRC}/tools
 
+.include "../../wip/mk/git-package.mk"
 .include "../../devel/zlib/buildlink3.mk"
 .include "../../lang/python/tool.mk"
 .include "../../mk/bsd.pkg.mk"


Home | Main Index | Thread Index | Old Index