summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2015-04-14 12:37:32 +0000
committerAlexis Ballier <aballier@gentoo.org>2015-04-14 12:37:32 +0000
commit0b1f0bb20f04e48f9ea92e6c99cdda519a0854bc (patch)
treef13d0e9a52a7dd7a882fd5bea751edae20d46e6e /dev-libs/urdfdom
parentStable for ia64, wrt bug #529544 (diff)
downloadgentoo-2-0b1f0bb20f04e48f9ea92e6c99cdda519a0854bc.tar.gz
gentoo-2-0b1f0bb20f04e48f9ea92e6c99cdda519a0854bc.tar.bz2
gentoo-2-0b1f0bb20f04e48f9ea92e6c99cdda519a0854bc.zip
initial import, ebuild by me
Signed-off-by: Alexis Ballier <aballier@gentoo.org> (Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 160F534A)
Diffstat (limited to 'dev-libs/urdfdom')
-rw-r--r--dev-libs/urdfdom/ChangeLog11
-rw-r--r--dev-libs/urdfdom/metadata.xml8
-rw-r--r--dev-libs/urdfdom/urdfdom-0.3.0.ebuild68
-rw-r--r--dev-libs/urdfdom/urdfdom-9999.ebuild68
4 files changed, 155 insertions, 0 deletions
diff --git a/dev-libs/urdfdom/ChangeLog b/dev-libs/urdfdom/ChangeLog
new file mode 100644
index 000000000000..9637c215f36c
--- /dev/null
+++ b/dev-libs/urdfdom/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for dev-libs/urdfdom
+# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/urdfdom/ChangeLog,v 1.1 2015/04/14 12:37:32 aballier Exp $
+
+*urdfdom-9999 (14 Apr 2015)
+*urdfdom-0.3.0 (14 Apr 2015)
+
+ 14 Apr 2015; Alexis Ballier <aballier@gentoo.org> +urdfdom-0.3.0.ebuild,
+ +urdfdom-9999.ebuild, +metadata.xml:
+ initial import, ebuild by me
+
diff --git a/dev-libs/urdfdom/metadata.xml b/dev-libs/urdfdom/metadata.xml
new file mode 100644
index 000000000000..e7dd05f66879
--- /dev/null
+++ b/dev-libs/urdfdom/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer>
+<email>aballier@gentoo.org</email>
+<name>Alexis Ballier</name>
+</maintainer>
+</pkgmetadata>
diff --git a/dev-libs/urdfdom/urdfdom-0.3.0.ebuild b/dev-libs/urdfdom/urdfdom-0.3.0.ebuild
new file mode 100644
index 000000000000..54ef19e455f1
--- /dev/null
+++ b/dev-libs/urdfdom/urdfdom-0.3.0.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/urdfdom/urdfdom-0.3.0.ebuild,v 1.1 2015/04/14 12:37:32 aballier Exp $
+
+EAPI=5
+
+SCM=""
+if [ "${PV#9999}" != "${PV}" ] ; then
+ SCM="git-r3"
+ EGIT_REPO_URI="https://github.com/ros/urdfdom"
+fi
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit ${SCM} distutils-r1 cmake-utils
+
+if [ "${PV#9999}" != "${PV}" ] ; then
+ KEYWORDS=""
+ SRC_URI=""
+else
+ KEYWORDS="~amd64 ~arm"
+ SRC_URI="https://github.com/ros/urdfdom/archive/${PV}.tar.gz -> ${P}.tar.gz"
+fi
+
+DESCRIPTION="URDF (U-Robot Description Format) library"
+HOMEPAGE="http://ros.org/wiki/urdf"
+LICENSE="BSD"
+SLOT="0"
+IUSE=""
+
+RDEPEND="dev-libs/urdfdom_headers
+ dev-libs/console_bridge
+ dev-libs/boost:=[threads]"
+DEPEND="${RDEPEND}"
+
+PY_S="${S}/urdf_parser_py"
+
+src_prepare() {
+ sed -i -e 's/set(CMAKE_INSTALL_LIBDIR/#/' CMakeLists.txt || die
+ cmake-utils_src_prepare
+ cd "${PY_S}"
+ S="${PY_S}" distutils-r1_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=( "-DPYTHON=FALSE" )
+ cmake-utils_src_configure
+ cd "${PY_S}"
+ S="${PY_S}" distutils-r1_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+ cd "${PY_S}"
+ S="${PY_S}" distutils-r1_src_compile
+}
+
+src_test() {
+ cmake-utils_src_test
+ cd "${PY_S}"
+ S="${PY_S}" distutils-r1_src_test
+}
+
+src_install() {
+ cmake-utils_src_install
+ cd "${PY_S}"
+ S="${PY_S}" distutils-r1_src_install
+}
diff --git a/dev-libs/urdfdom/urdfdom-9999.ebuild b/dev-libs/urdfdom/urdfdom-9999.ebuild
new file mode 100644
index 000000000000..625715ad2eec
--- /dev/null
+++ b/dev-libs/urdfdom/urdfdom-9999.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/urdfdom/urdfdom-9999.ebuild,v 1.1 2015/04/14 12:37:32 aballier Exp $
+
+EAPI=5
+
+SCM=""
+if [ "${PV#9999}" != "${PV}" ] ; then
+ SCM="git-r3"
+ EGIT_REPO_URI="https://github.com/ros/urdfdom"
+fi
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit ${SCM} distutils-r1 cmake-utils
+
+if [ "${PV#9999}" != "${PV}" ] ; then
+ KEYWORDS=""
+ SRC_URI=""
+else
+ KEYWORDS="~amd64 ~arm"
+ SRC_URI="https://github.com/ros/urdfdom/archive/${PV}.tar.gz -> ${P}.tar.gz"
+fi
+
+DESCRIPTION="URDF (U-Robot Description Format) library"
+HOMEPAGE="http://ros.org/wiki/urdf"
+LICENSE="BSD"
+SLOT="0"
+IUSE=""
+
+RDEPEND="dev-libs/urdfdom_headers
+ dev-libs/console_bridge
+ dev-libs/boost:=[threads]"
+DEPEND="${RDEPEND}"
+
+PY_S="${S}/urdf_parser_py"
+
+src_prepare() {
+ sed -i -e 's/set(CMAKE_INSTALL_LIBDIR/#/' CMakeLists.txt || die
+ cmake-utils_src_prepare
+ cd "${PY_S}"
+ S="${PY_S}" distutils-r1_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=( "-DPYTHON=FALSE" )
+ cmake-utils_src_configure
+ cd "${PY_S}"
+ S="${PY_S}" distutils-r1_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+ cd "${PY_S}"
+ S="${PY_S}" distutils-r1_src_compile
+}
+
+src_test() {
+ cmake-utils_src_test
+ cd "${PY_S}"
+ S="${PY_S}" distutils-r1_src_test
+}
+
+src_install() {
+ cmake-utils_src_install
+ cd "${PY_S}"
+ S="${PY_S}" distutils-r1_src_install
+}