diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /app-mobilephone/gammu |
reinit the tree, so we can have metadata
Diffstat (limited to 'app-mobilephone/gammu')
-rw-r--r-- | app-mobilephone/gammu/Manifest | 10 | ||||
-rw-r--r-- | app-mobilephone/gammu/files/gammu-1.32.0-bashcompdir.patch | 12 | ||||
-rw-r--r-- | app-mobilephone/gammu/files/gammu-1.36.8-bashcompdir.patch | 12 | ||||
-rw-r--r-- | app-mobilephone/gammu/files/gammu-skip-locktest.patch | 12 | ||||
-rw-r--r-- | app-mobilephone/gammu/gammu-1.33.0-r1.ebuild | 95 | ||||
-rw-r--r-- | app-mobilephone/gammu/gammu-1.36.8.ebuild | 84 | ||||
-rw-r--r-- | app-mobilephone/gammu/metadata.xml | 11 |
7 files changed, 236 insertions, 0 deletions
diff --git a/app-mobilephone/gammu/Manifest b/app-mobilephone/gammu/Manifest new file mode 100644 index 000000000000..23c088f67984 --- /dev/null +++ b/app-mobilephone/gammu/Manifest @@ -0,0 +1,10 @@ +AUX gammu-1.32.0-bashcompdir.patch 517 SHA256 06cf9783c57f98a9485f099271ddac8b42ef93a940d1cc8188ca79b70fe88d87 SHA512 938734128c82672cc5c10807e47c213a1d13e2de322694ff40d89ddd786f5cc991a978dfb5f78415480af4797831df7619ae689e94cf56a8391473cdd5a5cea0 WHIRLPOOL 4293080cdb1b791ffba08496946d3a95c53a127993785580a3c1be066f1bc3e8340d3f4093ecd3f40bae81acfe05e10d1d5992b0fa8287533bea9fcab4c8fbde +AUX gammu-1.36.8-bashcompdir.patch 740 SHA256 fa87ed7a7e1ce233b9cae9a1b6b9c971ff341234c484b693d420ca8b2fbd235b SHA512 74e22ec644c8d221ae12c8fb53d713aee978d5d32a72e7d04f9a31af00242b8083a6999005fcd5e2c50f23a1e33fe7db7a510299941069ce5ecdf9dffa486da4 WHIRLPOOL 8a160bab365e598b83e5499dc69b2e17a2d699eefe0284d253daccabc0f454bc9d879c4be6a8236f4595219f0b6ac264c0010549666b0872a6574b935b55dd48 +AUX gammu-skip-locktest.patch 522 SHA256 fe374362358f1120b1f59a4416c0ee048ba9edaabec02ea7871e812e5404db66 SHA512 a84eac789df444f734de7273b0571353e242cf579c996d57baec44e7f48ad5505d64c236fc015431684ac874b12777bb0279833671e565b94ba00f49bb612e7a WHIRLPOOL 77ad5d7000c0d7232d0559dc34dcccc694b0d295613b0c7ae5a7423f91a0042e38518dfd9b93f02561da53f8e74ff81e104de12e06db14a04041629ea80d1aa9 +DIST gammu-1.33.0.tar.bz2 6535262 SHA256 b326223e36a334dbaed68252a9cf2d90fd898d6de4d1085dcf9c2320881aece3 SHA512 42252a36c7ad5a2945fcf23fcb1b5bb0201d27e8830d3b4a7f4c36bf00f12f5a0f7797e17098bda8d526d4ddc3b1808c0786dfae0feef9424516fa68bf2f3f1e WHIRLPOOL 27c0110da7b686bc7dd19f4f897c59d4e66aa6dbec78dec208fa8c90f70b80c1375c7b8a4b54fe40295d388de61efb11695823a503d1f85a46797c97ddf988fa +DIST gammu-1.36.8.tar.bz2 2095289 SHA256 0ed9c91b4cc5844cad04531e765bc1194cb02bc3e69e6658cd88bfb1cad74f80 SHA512 4ac86b783570db0105e18ef05fc9408e85d1234ab7de720a232a416ad867d3afbe89db7ed408c06d57f8bb38a2e272f86386f11a89e56f1d750da9e9b579ba09 WHIRLPOOL 36172cbf129647b2de48dbbe14122e71fc4f46e2f6ddb29ce546a1e37ea5c2ee0cad28ee37b29b7ddfb9605e6984c6d80d50108bfe0962417da35a1c5b2688ef +EBUILD gammu-1.33.0-r1.ebuild 2599 SHA256 6982f789e4f62baf1c91ec41822ec523fe3de0f2522fefc8a4966217d05e2f68 SHA512 d004ecc07995d02a67edc275f24ab87b16ebbf51df1d58bb07ec366e4e3fab77e2ab0e290f1216e6dc981b12331401d788195fa0028cf1429fd31c84f25b797f WHIRLPOOL 26a929aa10a6264691c9f0361be602ce22fce2dee3af46616cc33bfbf434cb5487eb9df2b92d3259cb392f219b63ba2e29eb81cb97142abff14822ffc42b11b5 +EBUILD gammu-1.36.8.ebuild 2239 SHA256 13000d8726e5384f20dec3b9b46bc562ace2018bc883a3801ee1582dee7ac090 SHA512 27603bedd9434456c5be4c353fe21a651b0cb67690136c7c00c53fafc029a0a77651a42b1289da1b34118d162919c9b0917d9772cb9825d4804db1b6b90ac2dc WHIRLPOOL 4d4b6ac40f933559619152616df2f54bd6ae1013f8174a26ec50c40b716ab312d80a53af49f9af2bd992ed8db640d708927295234e6eb42627e6bc29593ab89d +MISC ChangeLog 3816 SHA256 1e8624e14812e0ab8940f0f8d26ea12941e601e96e693d6a8e920ca395c3717b SHA512 9627cdf909770fedbfc6d4333dfd2ad7bad0a27a0ec470eff39d4cb25fb7f6b837b1134ba6a72faed8f2e057fe31089df7594e1d26eadb2b2d8913a247914609 WHIRLPOOL 0e0b952326cdb0e3a2d8fa57dda823a0e94b07ccc5550e08a388ec236f60d63bdd883753f50f9197f43a839b3ab4f7b406446f5e62a585c9a2e971ea717001aa +MISC ChangeLog-2015 19224 SHA256 afe4eaaa598e9e590cd49ea5c2b3882347367f0f0341868fc9a79feae0648469 SHA512 706d8db4ea9871b84b33bf720e6c6803bcd5c8e81ff3beb2aec17daf6170f78f4021698b9bce7e16e08cc6b67561064b4a99f5fd1cbb6e3f7ea298674fb2b639 WHIRLPOOL 237c65a38b647be15e7a0ef55b71ad5ec88f86c60517e998e52e470ac92e5d08a4750451fa45dabe01ed0e8d53a1de5ee8276059aeca5d38b3f4973244ded0d3 +MISC metadata.xml 310 SHA256 c04e4b044ad92ec44a61be87cb08ea1c140deb3468c0affafe6a1d632b35b46b SHA512 503a7549a2d87293b79d28bb84206f27b63fc90e34623fc9dd8b60e08eb19667f993a1d3b1c2a6e6db100b71b39f1e86c45b8c2ccfafb558a18e6435512d9f2a WHIRLPOOL b56009c1c06c776bdf3517d8b3e9cd797f01f862834f232103004647764ef70eb855a45b2b0b077f012d1ff79abfb0c7c78dbf0b9bcd0cd4222e84bf8bec04ff diff --git a/app-mobilephone/gammu/files/gammu-1.32.0-bashcompdir.patch b/app-mobilephone/gammu/files/gammu-1.32.0-bashcompdir.patch new file mode 100644 index 000000000000..d7ae0a5b8b10 --- /dev/null +++ b/app-mobilephone/gammu/files/gammu-1.32.0-bashcompdir.patch @@ -0,0 +1,12 @@ +diff -ruN gammu-1.32.0/contrib/CMakeLists.txt gammu-1.32.0-patched/contrib/CMakeLists.txt +--- gammu-1.32.0/contrib/CMakeLists.txt 2012-06-27 04:02:27.000000000 -0400 ++++ gammu-1.32.0-patched/contrib/CMakeLists.txt 2013-09-17 16:46:22.852164906 -0400 +@@ -85,7 +85,7 @@ + if (INSTALL_BASH_COMPLETION) + install ( + FILES bash-completion/gammu +- DESTINATION "/etc/bash_completion.d" ++ DESTINATION "/usr/share/bash-completion/" + COMPONENT "bash" + ) + endif (INSTALL_BASH_COMPLETION) diff --git a/app-mobilephone/gammu/files/gammu-1.36.8-bashcompdir.patch b/app-mobilephone/gammu/files/gammu-1.36.8-bashcompdir.patch new file mode 100644 index 000000000000..aceef3da9805 --- /dev/null +++ b/app-mobilephone/gammu/files/gammu-1.36.8-bashcompdir.patch @@ -0,0 +1,12 @@ +diff -BurpN gammu-1.36.8.orig/contrib/CMakeLists.txt gammu-1.36.8/contrib/CMakeLists.txt +--- gammu-1.36.8.orig/contrib/CMakeLists.txt 2015-12-08 13:38:11.000000000 +0300 ++++ gammu-1.36.8/contrib/CMakeLists.txt 2016-01-16 15:49:45.870431342 +0300 +@@ -85,7 +85,7 @@ endif (INSTALL_PHP_EXAMPLES) + if (INSTALL_BASH_COMPLETION) + macro_optional_find_package (BashCompletion) + if (NOT BASH_COMPLETION_FOUND) +- set (BASH_COMPLETION_COMPLETIONSDIR "/etc/bash_completion.d" CACHE PATH "Location of bash_completion.d") ++ set (BASH_COMPLETION_COMPLETIONSDIR "/usr/share/bash-completion/completions" CACHE PATH "Location of bash_completion.d") + endif (NOT BASH_COMPLETION_FOUND) + install ( + FILES bash-completion/gammu diff --git a/app-mobilephone/gammu/files/gammu-skip-locktest.patch b/app-mobilephone/gammu/files/gammu-skip-locktest.patch new file mode 100644 index 000000000000..a509879d5edb --- /dev/null +++ b/app-mobilephone/gammu/files/gammu-skip-locktest.patch @@ -0,0 +1,12 @@ +diff -Nru tests/CMakeLists.txt tests/CMakeLists.txt +--- tests/CMakeLists.txt 2009-09-04 10:56:25.000000000 +0200 ++++ tests/CMakeLists.txt 2009-09-05 07:46:58.000000000 +0200 +@@ -739,7 +739,7 @@ + + # Test for locking, only on !WIN32 and if we can write to lock dir + if (NOT WIN32) +- execute_process(COMMAND test -w /var/lock/ RESULT_VARIABLE VAR_LOCK_WRITABLE) ++ set (VAR_LOCK_WRITABLE 1) + if (VAR_LOCK_WRITABLE EQUAL 0) + add_executable(locking locking.c) + target_link_libraries(locking libGammu) diff --git a/app-mobilephone/gammu/gammu-1.33.0-r1.ebuild b/app-mobilephone/gammu/gammu-1.33.0-r1.ebuild new file mode 100644 index 000000000000..b6b80f011f95 --- /dev/null +++ b/app-mobilephone/gammu/gammu-1.33.0-r1.ebuild @@ -0,0 +1,95 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit eutils cmake-utils python-single-r1 + +DESCRIPTION="A tool to handle your cellular phone" +HOMEPAGE="https://www.wammu.eu/" +SRC_URI="http://dl.cihar.com/${PN}/releases/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="bluetooth curl dbi debug irda mysql nls postgres python usb" + +# TODO: figure out a way to disable gudev +RDEPEND="dev-libs/glib:2= + virtual/libgudev:= + bluetooth? ( net-wireless/bluez:= ) + curl? ( net-misc/curl:= ) + dbi? ( >=dev-db/libdbi-0.8.3:= ) + mysql? ( virtual/mysql:= ) + postgres? ( dev-db/postgresql:=[server] ) + python? ( ${PYTHON_DEPS} ) + usb? ( virtual/libusb:1= ) + dev-util/dialog" +DEPEND="${RDEPEND} + irda? ( virtual/os-headers ) + nls? ( sys-devel/gettext )" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +# sys-devel/gettext is needed for creating .mo files +# Supported languages and translated documentation +# Be sure all languages are prefixed with a single space! +MY_AVAILABLE_LINGUAS=" af ar bg ca cs da de el en_GB es et fi fr gl he hu id it ko nl pl pt_BR ru sk sv sw tr zh_CN zh_TW" +IUSE="${IUSE} ${MY_AVAILABLE_LINGUAS// / linguas_}" + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_prepare() { + epatch "${FILESDIR}/${PN}-skip-locktest.patch" + epatch "${FILESDIR}/${PN}-1.32.0-bashcompdir.patch" + + local lang support_linguas=no + for lang in ${MY_AVAILABLE_LINGUAS} ; do + if use linguas_${lang} ; then + support_linguas=yes + break + fi + done + # install all languages when all selected LINGUAS aren't supported + if [ "${support_linguas}" = "yes" ]; then + for lang in ${MY_AVAILABLE_LINGUAS} ; do + if ! use linguas_${lang} ; then + rm -rf locale/${lang} || die + fi + done + fi +} + +src_configure() { + # debug flag is used inside cmake-utils.eclass + local mycmakeargs=( + $(cmake-utils_use_with bluetooth Bluez) + $(cmake-utils_use_with irda IRDA) + $(cmake-utils_use_with curl CURL) + $(cmake-utils_use_with usb USB) + $(cmake-utils_use_with python PYTHON) + $(cmake-utils_use_with mysql MySQL) + $(cmake-utils_use_with postgres Postgres) + $(cmake-utils_use_with dbi LibDBI) + $(cmake-utils_use_with nls GettextLibs) + $(cmake-utils_use_with nls Iconv) + -DBUILD_SHARED_LIBS=ON + -DINSTALL_DOC_DIR="share/doc/${PF}" + ) + if use python; then + mycmakeargs+=( -DBUILD_PYTHON="${PYTHON}" ) + fi + cmake-utils_src_configure +} + +src_test() { + LD_LIBRARY_PATH="${WORKDIR}/${PN}_build/common" cmake-utils_src_test +} + +src_install() { + cmake-utils_src_install + use python && python_optimize +} diff --git a/app-mobilephone/gammu/gammu-1.36.8.ebuild b/app-mobilephone/gammu/gammu-1.36.8.ebuild new file mode 100644 index 000000000000..dd5cc078d7c7 --- /dev/null +++ b/app-mobilephone/gammu/gammu-1.36.8.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils cmake-utils + +DESCRIPTION="A tool to handle your cellular phone" +HOMEPAGE="https://wammu.eu/gammu/" +SRC_URI="http://dl.cihar.com/${PN}/releases/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="bluetooth curl dbi debug irda mysql nls postgres usb" + +COMMON_DEPEND=" + dev-libs/glib:2= + virtual/libgudev:= + bluetooth? ( net-wireless/bluez:= ) + curl? ( net-misc/curl:= ) + dbi? ( >=dev-db/libdbi-0.8.3:= ) + mysql? ( virtual/mysql:= ) + postgres? ( dev-db/postgresql:= ) + usb? ( virtual/libusb:1= ) +" +DEPEND=" + ${COMMON_DEPEND} + irda? ( virtual/os-headers ) + nls? ( sys-devel/gettext ) +" +RDEPEND=" + ${COMMON_DEPEND} + dev-util/dialog +" + +# sys-devel/gettext is needed for creating .mo files +# Supported languages and translated documentation +# Be sure all languages are prefixed with a single space! +MY_AVAILABLE_LINGUAS=" af ar bg bn ca cs da de el en_GB es et fi fr gl he hu id it ko nl pl pt_BR ro ru sk sv sw tr zh_CN zh_TW" +IUSE="${IUSE} ${MY_AVAILABLE_LINGUAS// / linguas_}" + +src_prepare() { + epatch "${FILESDIR}/${PN}-skip-locktest.patch" \ + "${FILESDIR}/${PN}-1.36.8-bashcompdir.patch" + + local lang support_linguas=no + for lang in ${MY_AVAILABLE_LINGUAS} ; do + if use linguas_${lang} ; then + support_linguas=yes + break + fi + done + # install all languages when all selected LINGUAS aren't supported + if [ "${support_linguas}" = "yes" ]; then + for lang in ${MY_AVAILABLE_LINGUAS} ; do + if ! use linguas_${lang} ; then + rm -rf locale/${lang} || die + fi + done + fi +} + +src_configure() { + # debug flag is used inside cmake-utils.eclass + local mycmakeargs=( + $(cmake-utils_use_with bluetooth Bluez) + $(cmake-utils_use_with irda IRDA) + $(cmake-utils_use_with curl CURL) + $(cmake-utils_use_with usb USB) + $(cmake-utils_use_with mysql MySQL) + $(cmake-utils_use_with postgres Postgres) + $(cmake-utils_use_with dbi LibDBI) + $(cmake-utils_use_with nls GettextLibs) + $(cmake-utils_use_with nls Iconv) + -DBUILD_SHARED_LIBS=ON + -DINSTALL_DOC_DIR="share/doc/${PF}" + ) + cmake-utils_src_configure +} + +src_test() { + LD_LIBRARY_PATH="${WORKDIR}/${PN}_build/common" cmake-utils_src_test +} diff --git a/app-mobilephone/gammu/metadata.xml b/app-mobilephone/gammu/metadata.xml new file mode 100644 index 000000000000..f9cc2e6e7a53 --- /dev/null +++ b/app-mobilephone/gammu/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <!-- maintainer-needed --> + <use> + <flag name="irda">Enables infrared support</flag> + </use> + <upstream> + <remote-id type="github">gammu/gammu</remote-id> + </upstream> +</pkgmetadata> |