summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarshall Brewer (Gentoo Key) <tomboy64@sina.cn>2016-04-12 22:11:43 +0200
committerIan Delaney <idella4@gentoo.org>2016-04-28 22:12:20 +0800
commit987453ea66b051c13f59a5e32389dfca099cddb6 (patch)
tree85111b99a776f3056a580cf9c0c0a61d9605af37 /dev-libs/libarcus
parentapp-admin/puppet: fix patch for bug 581428 (diff)
downloadgentoo-987453ea66b051c13f59a5e32389dfca099cddb6.tar.gz
gentoo-987453ea66b051c13f59a5e32389dfca099cddb6.tar.bz2
gentoo-987453ea66b051c13f59a5e32389dfca099cddb6.zip
dev-libs/libarcus: initial ebuild, version 1.0.0_pre20160307
Closes: https://github.com/gentoo/gentoo/pull/1298 Signed-off-by: Ian Delaney <idella4@gentoo.org>
Diffstat (limited to 'dev-libs/libarcus')
-rw-r--r--dev-libs/libarcus/Manifest1
-rw-r--r--dev-libs/libarcus/files/libarcus-1.0.0-fix-install-paths.patch77
-rw-r--r--dev-libs/libarcus/libarcus-1.0.0_pre20160307.ebuild43
-rw-r--r--dev-libs/libarcus/metadata.xml22
4 files changed, 143 insertions, 0 deletions
diff --git a/dev-libs/libarcus/Manifest b/dev-libs/libarcus/Manifest
new file mode 100644
index 000000000000..32b3f1b3cd06
--- /dev/null
+++ b/dev-libs/libarcus/Manifest
@@ -0,0 +1 @@
+DIST libarcus-1.0.0_pre20160307.tar.gz 40461 SHA256 ca4f286cc8bae08ddf166fa470f8381f25cf61629168ca965a2f4079e758ebfc SHA512 ec654fbe2d34ad60afd0c1f3745e9f0ef5709e3698ea78d17089dad5e86cb686f38a0ea4cca07b6911058ebdf61c17b51a89c002cbf74cbbd4a68a133d8984e5 WHIRLPOOL 0c688c0fb20022a14bce6870fd1da84c891b2f68f335d9f6ebcc25432dab51823b3e9d20be8a3a51a69bc1832c3cd55576c91e0246fcc15fc4456916d5278b28
diff --git a/dev-libs/libarcus/files/libarcus-1.0.0-fix-install-paths.patch b/dev-libs/libarcus/files/libarcus-1.0.0-fix-install-paths.patch
new file mode 100644
index 000000000000..b1473f7f661c
--- /dev/null
+++ b/dev-libs/libarcus/files/libarcus-1.0.0-fix-install-paths.patch
@@ -0,0 +1,77 @@
+diff -Naur a/CMakeLists.txt b/CMakeLists.txt
+--- a/CMakeLists.txt 2016-03-07 10:36:38.000000000 +0100
++++ b/CMakeLists.txt 2016-04-16 11:54:15.499524812 +0200
+@@ -1,6 +1,7 @@
+ project(arcus)
+ cmake_minimum_required(VERSION 2.8.12)
+
++include(GNUInstallDirs)
+ include(CMakePackageConfigHelpers)
+
+ option(BUILD_PYTHON "Build " ON)
+@@ -14,10 +15,12 @@
+
+ if(BUILD_PYTHON)
+ set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
+- if(APPLE OR WIN32)
+- set(PYTHON_SITE_PACKAGES_DIR lib/python3.4/site-packages CACHE STRING "Directory to install Python bindings to")
+- else()
+- set(PYTHON_SITE_PACKAGES_DIR lib/python3/dist-packages CACHE STRING "Directory to install Python bindings to")
++ if(NOT PYTHON_SITE_PACKAGES_DIR)
++ if(APPLE OR WIN32)
++ set(PYTHON_SITE_PACKAGES_DIR lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages CACHE STRING "Directory to install Python bindings to")
++ else()
++ set(PYTHON_SITE_PACKAGES_DIR lib/python${PYTHON_VERSION_MAJOR}/dist-packages CACHE STRING "Directory to install Python bindings to")
++ endif()
+ endif()
+ find_package(SIP REQUIRED)
+ include_directories(python/ src/ ${PYTHON_INCLUDE_DIR} ${SIP_INCLUDE_DIR})
+@@ -57,7 +60,7 @@
+ set(ARCUS_VERSION 1.0.0)
+ set(ARCUS_SOVERSION 2)
+
+-set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
++set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}")
+
+ if(BUILD_STATIC)
+ add_library(Arcus STATIC ${arcus_SRCS})
+@@ -89,7 +92,7 @@
+ target_include_directories(Arcus PUBLIC
+ ${PROTOBUF_INCLUDE_DIR}
+ $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src>
+- $<INSTALL_INTERFACE:include>
++ $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
+ )
+ target_link_libraries(Arcus PUBLIC
+ ${PROTOBUF_LIBRARY}
+@@ -120,23 +123,23 @@
+
+ install(TARGETS Arcus
+ EXPORT Arcus-targets
+- RUNTIME DESTINATION bin
+- LIBRARY DESTINATION lib
+- ARCHIVE DESTINATION lib
+- PUBLIC_HEADER DESTINATION include/Arcus
++ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
++ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
++ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
++ PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/Arcus
+ )
+
+ install(EXPORT Arcus-targets
+- DESTINATION lib/cmake/Arcus
++ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/Arcus
+ )
+
+-configure_package_config_file(ArcusConfig.cmake.in ${CMAKE_BINARY_DIR}/ArcusConfig.cmake INSTALL_DESTINATION lib/cmake/Arcus)
++configure_package_config_file(ArcusConfig.cmake.in ${CMAKE_BINARY_DIR}/ArcusConfig.cmake INSTALL_DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/Arcus)
+ write_basic_package_version_file(${CMAKE_BINARY_DIR}/ArcusConfigVersion.cmake VERSION ${ARCUS_VERSION} COMPATIBILITY SameMajorVersion)
+
+ install(FILES
+ ${CMAKE_BINARY_DIR}/ArcusConfig.cmake
+ ${CMAKE_BINARY_DIR}/ArcusConfigVersion.cmake
+- DESTINATION lib/cmake/Arcus
++ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/Arcus
+ )
+
+ include(CPackConfig.cmake)
diff --git a/dev-libs/libarcus/libarcus-1.0.0_pre20160307.ebuild b/dev-libs/libarcus/libarcus-1.0.0_pre20160307.ebuild
new file mode 100644
index 000000000000..6f1f571a2278
--- /dev/null
+++ b/dev-libs/libarcus/libarcus-1.0.0_pre20160307.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="6"
+
+PYTHON_COMPAT=( python3_4 python3_5 )
+inherit cmake-utils python-single-r1
+
+MY_PN="libArcus"
+COMMIT="1db8a8e57dbf0d68d9e9f85ef9022b8eae17c9ec"
+
+DESCRIPTION="This library facilitates communication between Cura and its backend"
+HOMEPAGE="https://github.com/Ultimaker/libArcus"
+SRC_URI="https://github.com/Ultimaker/${MY_PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="AGPL-3"
+SLOT="0/2"
+IUSE="examples python static-libs"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="${PYTHON_DEPS}
+ dev-python/sip[${PYTHON_USEDEP}]
+ >=dev-libs/protobuf-3:=
+ >=dev-python/protobuf-python-3:*[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}"
+S="${WORKDIR}/${MY_PN}-${COMMIT}"
+PATCHES=( "${FILESDIR}/${PN}-1.0.0-fix-install-paths.patch" )
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_PYTHON=$(usex python ON OFF)
+ -DBUILD_EXAMPLES=$(usex examples ON OFF)
+ -DBUILD_STATIC=$(usex static-libs ON OFF)
+ )
+ use python && mycmakeargs+=( -DPYTHON_SITE_PACKAGES_DIR="$(python_get_sitedir)" )
+ cmake-utils_src_configure
+}
diff --git a/dev-libs/libarcus/metadata.xml b/dev-libs/libarcus/metadata.xml
new file mode 100644
index 000000000000..8e6bee1bb253
--- /dev/null
+++ b/dev-libs/libarcus/metadata.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>tomboy64@sina.cn</email>
+ <name>Matthew Brewer</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Gentoo Proxy Maintainers Project</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>3dprint@gentoo.org</email>
+ <name>Gentoo 3D Printer Project</name>
+ </maintainer>
+ <slots>
+ <subslots>soname major version number</subslots>
+ </slots>
+ <upstream>
+ <remote-id type="github">Ultimaker/libArcus</remote-id>
+ </upstream>
+</pkgmetadata>