public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Ian Delaney" <idella4@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libarcus/, dev-libs/libarcus/files/
Date: Thu, 28 Apr 2016 14:12:32 +0000 (UTC)	[thread overview]
Message-ID: <1461852740.987453ea66b051c13f59a5e32389dfca099cddb6.idella4@gentoo> (raw)

commit:     987453ea66b051c13f59a5e32389dfca099cddb6
Author:     Marshall Brewer (Gentoo Key) <tomboy64 <AT> sina <DOT> cn>
AuthorDate: Tue Apr 12 20:11:43 2016 +0000
Commit:     Ian Delaney <idella4 <AT> gentoo <DOT> org>
CommitDate: Thu Apr 28 14:12:20 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=987453ea

dev-libs/libarcus: initial ebuild, version 1.0.0_pre20160307

Closes: https://github.com/gentoo/gentoo/pull/1298

Signed-off-by: Ian Delaney <idella4 <AT> gentoo.org>

 dev-libs/libarcus/Manifest                         |  1 +
 .../files/libarcus-1.0.0-fix-install-paths.patch   | 77 ++++++++++++++++++++++
 .../libarcus/libarcus-1.0.0_pre20160307.ebuild     | 43 ++++++++++++
 dev-libs/libarcus/metadata.xml                     | 22 +++++++
 4 files changed, 143 insertions(+)

diff --git a/dev-libs/libarcus/Manifest b/dev-libs/libarcus/Manifest
new file mode 100644
index 0000000..32b3f1b
--- /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 0000000..b1473f7
--- /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 0000000..6f1f571
--- /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 0000000..8e6bee1
--- /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>


             reply	other threads:[~2016-04-28 14:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-28 14:12 Ian Delaney [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-11-30 18:37 [gentoo-commits] repo/gentoo:master commit in: dev-libs/libarcus/, dev-libs/libarcus/files/ Dennis Lamm

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1461852740.987453ea66b051c13f59a5e32389dfca099cddb6.idella4@gentoo \
    --to=idella4@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox