summaryrefslogtreecommitdiff
path: root/media-sound/txppm
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2018-01-27 17:52:35 +0100
committerKarel Kočí <cynerd@email.cz>2018-01-27 17:52:35 +0100
commit776c9dbfde708be4c2bcbc67418debc1462baf09 (patch)
tree7794ec5e70744a8b8de1a9c8c40402c2dcb53b50 /media-sound/txppm
parent700152fdca3193bc66287407a0a8f38af2282b23 (diff)
downloadgentoo-personal-overlay-776c9dbfde708be4c2bcbc67418debc1462baf09.tar.gz
gentoo-personal-overlay-776c9dbfde708be4c2bcbc67418debc1462baf09.tar.bz2
gentoo-personal-overlay-776c9dbfde708be4c2bcbc67418debc1462baf09.zip
Try to add txppm
Diffstat (limited to 'media-sound/txppm')
-rw-r--r--media-sound/txppm/txppm-180112-r1.ebuild57
1 files changed, 57 insertions, 0 deletions
diff --git a/media-sound/txppm/txppm-180112-r1.ebuild b/media-sound/txppm/txppm-180112-r1.ebuild
new file mode 100644
index 0000000..e397e92
--- /dev/null
+++ b/media-sound/txppm/txppm-180112-r1.ebuild
@@ -0,0 +1,57 @@
+EAPI=6
+
+MODULES_OPTIONAL_USE="module"
+inherit linux-mod git-r3
+
+DESCRIPTION="RC-Transmitter ppm signal to joystick input converter through the microphone jack"
+HOMEPAGE="https://github.com/nexx512/txppm"
+
+EGIT_REPO_URI="https://github.com/nexx512/txppm.git"
+
+if [[ ${PV} == 9999 ]]; then
+ KEYWORDS=""
+else
+ EGIT_COMMIT="f3bd54cecd053fc5834986e6adaa1067af8a0a61"
+ KEYWORDS="amd64 ~x86"
+fi
+
+LICENSE="GPL-3"
+SLOT="0"
+IUSE=""
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+
+MODULE_NAMES="tx(kernel/drivers/misc:module)"
+BUILD_TARGETS="module"
+CONFIG_CHECK=""
+
+pkg_setup() {
+ linux-mod_pkg_setup
+}
+
+src_compile() {
+ #BUILD_PARAMS="KERNELDIR=${KERNEL_DIR}"
+ linux-mod_src_compile
+ emake -C software
+}
+
+src_install() {
+ linux-mod_src_install
+
+ cd software
+ dobin ppm2tx
+ dobin ppm2tx-gui
+ dodir /usr/share/txppm
+ insinto /usr/share/txppm
+ doins logo.png
+ insinto /usr/share/pixmaps
+ doins icon.png
+ insinto /usr/share/applications
+ doins txppm.desktop
+}
+
+pkg_postinst() {
+ linux-mod_pkg_postinst
+}
+