summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Nagy <danielnagy@gmx.de>2012-04-26 03:09:40 +0200
committerDaniel Nagy <danielnagy@gmx.de>2012-04-26 03:09:40 +0200
commitbcf0c666a6774bdbec09c922cd13ea754b680750 (patch)
tree0a1322a4c5e58f3d898519fe91c209137b4689e8 /net-libs
parentnew hamlpy dependency (diff)
downloaddrevilt-bcf0c666a6774bdbec09c922cd13ea754b680750.tar.gz
drevilt-bcf0c666a6774bdbec09c922cd13ea754b680750.tar.bz2
drevilt-bcf0c666a6774bdbec09c922cd13ea754b680750.zip
adding cpp-netlib
Diffstat (limited to 'net-libs')
-rw-r--r--net-libs/cpp-netlib/Manifest3
-rw-r--r--net-libs/cpp-netlib/cpp-netlib-0.9.4.ebuild40
-rw-r--r--net-libs/cpp-netlib/files/0001-cmake-fixes.patch31
3 files changed, 74 insertions, 0 deletions
diff --git a/net-libs/cpp-netlib/Manifest b/net-libs/cpp-netlib/Manifest
new file mode 100644
index 0000000..c123a19
--- /dev/null
+++ b/net-libs/cpp-netlib/Manifest
@@ -0,0 +1,3 @@
+AUX 0001-cmake-fixes.patch 1073 RMD160 a43b1635860744885e216d4ecc5638df83a85c0e SHA1 b39dc85d9602f8e85e38002ef7f233c73fcb1e31 SHA256 b01a7452ec08a991993a4f4f770868082d357ca8b2126961e3018c86a3ff11f0
+DIST cpp-netlib-0.9.4.tar.gz 1254510 RMD160 f0371f6a284b83781d336cf0cba90e1fb189d6eb SHA1 b08032126c01f3392de749c30213792d9eca599a SHA256 13a003b3e5053c4d7cfcb67fc538bd77433fa1fa56f10d30a4d3247e977654f3
+EBUILD cpp-netlib-0.9.4.ebuild 921 RMD160 21553f938103cf38a1adabf29c875fd365cd0d5f SHA1 855b812503f9f2835001f4c3848e726c349ee4f3 SHA256 635051c2548d296564355b557d9606c42d0d1c079f555375d915e0a5fd0887af
diff --git a/net-libs/cpp-netlib/cpp-netlib-0.9.4.ebuild b/net-libs/cpp-netlib/cpp-netlib-0.9.4.ebuild
new file mode 100644
index 0000000..cdc73da
--- /dev/null
+++ b/net-libs/cpp-netlib/cpp-netlib-0.9.4.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+
+inherit autotools cmake-utils
+
+DESCRIPTION="The ${PN} is a library that provides application layer protocol support using modern C++ techniques."
+HOMEPAGE="http://cpp-netlib.github.com/"
+SRC_URI="https://github.com/downloads/${PN}/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="examples test"
+
+DEPEND="dev-libs/boost"
+RDEPEND="${DEPEND}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/0001-cmake-fixes.patch
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_SHARED_LIBS=ON
+ )
+ cmake-utils_src_configure
+}
+
+src_install() {
+ # emake DESTDIR="${D}" install || die "install failed"
+ mkdir -p "${D}"/usr/include/boost
+ cp -r boost/* "${D}"/usr/include/boost/
+ mkdir -p "${D}"/usr/lib64
+ cp ${CMAKE_BUILD_DIR}/libs/network/src/*.so "${D}"/usr/lib64/
+}
diff --git a/net-libs/cpp-netlib/files/0001-cmake-fixes.patch b/net-libs/cpp-netlib/files/0001-cmake-fixes.patch
new file mode 100644
index 0000000..fc23590
--- /dev/null
+++ b/net-libs/cpp-netlib/files/0001-cmake-fixes.patch
@@ -0,0 +1,31 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 4667f23..9abd7d3 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -5,9 +5,9 @@
+
+ cmake_minimum_required(VERSION 2.8)
+ project(CPP-NETLIB)
+-set(Boost_USE_STATIC_LIBS ON)
+-set(Boost_USE_MULTI_THREADED ON)
+-find_package( Boost 1.45.0 REQUIRED unit_test_framework system regex date_time thread filesystem program_options )
++#set(Boost_USE_STATIC_LIBS ON)
++#set(Boost_USE_MULTI_THREADED ON)
++find_package( Boost REQUIRED unit_test_framework system regex date_time thread filesystem program_options )
+ find_package( OpenSSL )
+ find_package( Threads )
+ set(CMAKE_VERBOSE_MAKEFILE true)
+@@ -30,11 +30,11 @@ if (Boost_FOUND)
+ include_directories(${Boost_INCLUDE_DIRS})
+ enable_testing()
+ add_subdirectory(libs/network/src)
+- add_subdirectory(libs/network/test)
++ #add_subdirectory(libs/network/test)
+ if (NOT MSVC)
+ add_subdirectory(libs/mime/test)
+ endif(NOT MSVC)
+- add_subdirectory(libs/network/example)
++ #add_subdirectory(libs/network/example)
+ endif(Boost_FOUND)
+
+ enable_testing()