[arch-commits] Commit in libc++/repos (6 files)
Daniel Micay
thestinger at nymeria.archlinux.org
Fri Jul 12 22:19:33 UTC 2013
Date: Saturday, July 13, 2013 @ 00:19:32
Author: thestinger
Revision: 93996
archrelease: copy trunk to community-i686, community-x86_64
Added:
libc++/repos/community-i686/
libc++/repos/community-i686/PKGBUILD
(from rev 93995, libc++/trunk/PKGBUILD)
libc++/repos/community-i686/libc++.install
(from rev 93995, libc++/trunk/libc++.install)
libc++/repos/community-x86_64/
libc++/repos/community-x86_64/PKGBUILD
(from rev 93995, libc++/trunk/PKGBUILD)
libc++/repos/community-x86_64/libc++.install
(from rev 93995, libc++/trunk/libc++.install)
---------------------------------+
community-i686/PKGBUILD | 30 ++++++++++++++++++++++++++++++
community-i686/libc++.install | 7 +++++++
community-x86_64/PKGBUILD | 30 ++++++++++++++++++++++++++++++
community-x86_64/libc++.install | 7 +++++++
4 files changed, 74 insertions(+)
Copied: libc++/repos/community-i686/PKGBUILD (from rev 93995, libc++/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD (rev 0)
+++ community-i686/PKGBUILD 2013-07-12 22:19:32 UTC (rev 93996)
@@ -0,0 +1,30 @@
+# Maintainer: Daniel Micay <danielmicay at gmail.com>
+# Contributor: MThinkCpp <mtc.maintainer[at]outlook.com>
+pkgname='libc++'
+pkgver=3.3
+pkgrel=1
+pkgdesc='A new implementation of the C++ standard library, targeting C++11.'
+url='http://libcxx.llvm.org'
+license=('custom:University of Illinois/NCSA Open Source License')
+arch=('i686' 'x86_64')
+depends=('glibc' 'gcc-libs') # gcc-libs for libsupc++ binary
+makedepends=('clang' 'subversion' 'cmake' 'gcc') # gcc provides libsupc++ headers
+source=("http://www.llvm.org/releases/${pkgver}/libcxx-${pkgver}.src.tar.gz")
+md5sums=('SKIP')
+install=$pkgname.install
+
+build() {
+ _gcc_include_dir=/usr/include/c++/$(gcc -dumpversion)
+ _gcc_platform_include_dir=$_gcc_include_dir/$(gcc -dumpmachine)
+ mkdir -p libcxx-${pkgver}.src/build
+ cd libcxx-${pkgver}.src/build
+ cmake -G "Unix Makefiles" -DLIBCXX_CXX_ABI=libsupc++ \
+ -DLIBCXX_LIBSUPCXX_INCLUDE_PATHS="${_gcc_include_dir};${_gcc_platform_include_dir}" \
+ -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr "${srcdir}/libcxx-${pkgver}.src"
+ make
+}
+package() {
+ install -Dm644 libcxx-${pkgver}.src/LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/license.txt"
+ cd libcxx-${pkgver}.src/build
+ make DESTDIR="$pkgdir" install
+}
Copied: libc++/repos/community-i686/libc++.install (from rev 93995, libc++/trunk/libc++.install)
===================================================================
--- community-i686/libc++.install (rev 0)
+++ community-i686/libc++.install 2013-07-12 22:19:32 UTC (rev 93996)
@@ -0,0 +1,7 @@
+post_install() {
+ echo compile with \`clang -std=c++11 -stdlib=libc++ -Wl,-lstdc++\` to use libc++
+}
+
+post_upgrade() {
+ post_install
+}
Copied: libc++/repos/community-x86_64/PKGBUILD (from rev 93995, libc++/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2013-07-12 22:19:32 UTC (rev 93996)
@@ -0,0 +1,30 @@
+# Maintainer: Daniel Micay <danielmicay at gmail.com>
+# Contributor: MThinkCpp <mtc.maintainer[at]outlook.com>
+pkgname='libc++'
+pkgver=3.3
+pkgrel=1
+pkgdesc='A new implementation of the C++ standard library, targeting C++11.'
+url='http://libcxx.llvm.org'
+license=('custom:University of Illinois/NCSA Open Source License')
+arch=('i686' 'x86_64')
+depends=('glibc' 'gcc-libs') # gcc-libs for libsupc++ binary
+makedepends=('clang' 'subversion' 'cmake' 'gcc') # gcc provides libsupc++ headers
+source=("http://www.llvm.org/releases/${pkgver}/libcxx-${pkgver}.src.tar.gz")
+md5sums=('SKIP')
+install=$pkgname.install
+
+build() {
+ _gcc_include_dir=/usr/include/c++/$(gcc -dumpversion)
+ _gcc_platform_include_dir=$_gcc_include_dir/$(gcc -dumpmachine)
+ mkdir -p libcxx-${pkgver}.src/build
+ cd libcxx-${pkgver}.src/build
+ cmake -G "Unix Makefiles" -DLIBCXX_CXX_ABI=libsupc++ \
+ -DLIBCXX_LIBSUPCXX_INCLUDE_PATHS="${_gcc_include_dir};${_gcc_platform_include_dir}" \
+ -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr "${srcdir}/libcxx-${pkgver}.src"
+ make
+}
+package() {
+ install -Dm644 libcxx-${pkgver}.src/LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/license.txt"
+ cd libcxx-${pkgver}.src/build
+ make DESTDIR="$pkgdir" install
+}
Copied: libc++/repos/community-x86_64/libc++.install (from rev 93995, libc++/trunk/libc++.install)
===================================================================
--- community-x86_64/libc++.install (rev 0)
+++ community-x86_64/libc++.install 2013-07-12 22:19:32 UTC (rev 93996)
@@ -0,0 +1,7 @@
+post_install() {
+ echo compile with \`clang -std=c++11 -stdlib=libc++ -Wl,-lstdc++\` to use libc++
+}
+
+post_upgrade() {
+ post_install
+}
More information about the arch-commits
mailing list