Skip to content

Commit

Permalink
dev-libs/libgaminggear
Browse files Browse the repository at this point in the history
  • Loading branch information
perfect7gentleman committed Aug 15, 2016
1 parent bdce35a commit 6f5df77
Show file tree
Hide file tree
Showing 4 changed files with 91 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dev-libs/libgaminggear/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
AUX libgaminggear-0.10.0-doc.patch 484 SHA256 952751686f15bfd30033d13d2333415c366906b30dc3ee1f30b0a8cfa67e3254 SHA512 c5fbfb231f075f34eb4237edf3de6e335ff735513b72a41fd602422dc9f0fd511f66b4c087bfd0dfc68ebda8d1bc0b70a6eb35e5e3158c50b7a5d641e78ada01 WHIRLPOOL d837bc29cfb52f20fcab146710707f7e5c5583c7baafcaf6155f22e7b6ccec06a13473e252f28c226a63d1f803950d0a88ae02bfef39348e9c071dc0f8cd3381
DIST libgaminggear-0.14.0.tar.bz2 105510 SHA256 d30d624b371aacba0833ab5af622cbe9f91d2e6caf0828f91397b574f082ec91 SHA512 ba28be6e5a893863ca20ca26b0f5386b8ef666b472fcef26fc35abc31da23aff3460e75fa9da3359d3cab8643ecadb3578f0b4c15e626911bee65cbdbe5124d5 WHIRLPOOL ea477b2bdab612e5b5730ce7833cf94414c611b49c10e2ea6c36dc919e78b9c1e283571121c7926a798225c47ac7101d41aa3d56f0fb55f0df3cd614e37cb8a0
EBUILD libgaminggear-0.14.0.ebuild 963 SHA256 5b5e4ef0cd04971ef5b88ecd364440885a821dc7ee7313c1752df6ed9b09afc4 SHA512 92f3bb5c06562abccbeb3bb73d7d790d2c53cbb25be4c961ba3eeba125ecec4461e30a3db60d3b5fa0580ed765b7c7ca9a86b94c2d963bd57e5b1f669efb40cb WHIRLPOOL bbe112efe82154156f899c028e06577e385befff6fa07a3492e91cb47148daf9877df483e61348a5490764639b2be7027c689b8ee9b3abfd71ed95a9cdd9c659
MISC metadata.xml 514 SHA256 9ef051fa3e1a8b451c83d25cc1035f6d2ff2dd73eb1e95950600456f6ce80e38 SHA512 65f19eb124c7dc9a2032eab12e7a3ae663e58aba9d086702442c13d12d4857d9169ec542daa87dde6fe678ed1cbc9136baa7e499f5ac95fdb6d617f50e5097bf WHIRLPOOL ca9795244e758f631808e17bd4ce81c745dc488d229207e98451736bb37c5ee771838ada330fd6adbfef9c8c3621a71ed46dd551e1051466ce5bbb89fc93d2e3
15 changes: 15 additions & 0 deletions dev-libs/libgaminggear/files/libgaminggear-0.10.0-doc.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Set install of the docs to DOCDIR
--- libgaminggear-0.10.0.orig/include/gaminggear/CMakeLists.txt 2015-06-28 12:46:22.615985840 +0100
+++ libgaminggear-0.10.0/include/gaminggear/CMakeLists.txt 2015-06-28 13:01:35.511970664 +0100
@@ -14,10 +14,10 @@ IF(WITH_DOC)
DEPENDS
${CMAKE_CURRENT_BINARY_DIR}/html/index.html
)
-
+
INSTALL(
DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html
- DESTINATION share/doc/libgaminggear
+ DESTINATION ${DOCDIR}
)
ENDIF()
56 changes: 56 additions & 0 deletions dev-libs/libgaminggear/libgaminggear-0.14.0.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=5

inherit cmake-utils gnome2-utils

DESCRIPTION="Provides functionality for gaming input devices"

HOMEPAGE="https://sourceforge.net/projects/libgaminggear/"
SRC_URI="mirror://sourceforge/libgaminggear/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc"

RDEPEND="
x11-libs/gtk+:2
x11-libs/libnotify
media-libs/libcanberra
virtual/libusb:1
dev-libs/dbus-glib
"

DEPEND="${RDEPEND}
doc? ( app-doc/doxygen )"

src_prepare() {
epatch "${FILESDIR}"/${PN}-0.10.0-doc.patch
}

src_configure() {
mycmakeargs=(
-DCMAKE_INSTALL_PREFIX="${EPREFIX}"/usr
-DDOCDIR=share/doc/${PF}
$(cmake-utils_use_with doc DOC)
)
cmake-utils_src_configure
}

src_install() {
cmake-utils_src_install
}

pkg_preinst() {
gnome2_icon_savelist
}

pkg_postinst() {
gnome2_icon_cache_update
}

pkg_postrm() {
gnome2_icon_cache_update
}
16 changes: 16 additions & 0 deletions dev-libs/libgaminggear/metadata.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>[email protected]</email>
<name>Dmitry Pisklov</name>
<description>Proxy maintainer. Assign bugs to him</description>
</maintainer>
<maintainer type="project">
<email>[email protected]</email>
<name>Proxy Maintainers</name>
</maintainer>
<upstream>
<remote-id type="sourceforge">libgaminggear</remote-id>
</upstream>
</pkgmetadata>

0 comments on commit 6f5df77

Please sign in to comment.