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/gnokii |
reinit the tree, so we can have metadata
Diffstat (limited to 'app-mobilephone/gnokii')
-rw-r--r-- | app-mobilephone/gnokii/Manifest | 10 | ||||
-rw-r--r-- | app-mobilephone/gnokii/files/gnokii-0.6.31-fix_xgnokii_inclusion.patch | 11 | ||||
-rw-r--r-- | app-mobilephone/gnokii/files/gnokii-0.6.31-gcc5.patch | 27 | ||||
-rw-r--r-- | app-mobilephone/gnokii/files/gnokii-9999-icon.patch | 11 | ||||
-rw-r--r-- | app-mobilephone/gnokii/files/gnokii-9999-translations.patch | 10 | ||||
-rw-r--r-- | app-mobilephone/gnokii/gnokii-0.6.31-r1.ebuild | 138 | ||||
-rw-r--r-- | app-mobilephone/gnokii/gnokii-9999.ebuild | 136 | ||||
-rw-r--r-- | app-mobilephone/gnokii/metadata.xml | 17 |
8 files changed, 360 insertions, 0 deletions
diff --git a/app-mobilephone/gnokii/Manifest b/app-mobilephone/gnokii/Manifest new file mode 100644 index 000000000000..fe2d69657279 --- /dev/null +++ b/app-mobilephone/gnokii/Manifest @@ -0,0 +1,10 @@ +AUX gnokii-0.6.31-fix_xgnokii_inclusion.patch 260 SHA256 7e754e204e44f9e6c93658419b111995c595a85bfbb543b783624dbeac8e9a5d SHA512 e23b72af4d51c7691b56beab15b36e275e6ea1fb8599d1cee4be98570caf0c9434b2cd61fd3879c41adb219c7ab9b41bd794df27d9be97bb38b3799427039393 WHIRLPOOL 260fa9798cc8d9d29efc6f1993c07288470e7dc581c36fdd0b1e37fd54f969da1c8a9686fe397f978ac68bd0165a7c153b778a03d7c8d22f72301c54accb232e +AUX gnokii-0.6.31-gcc5.patch 863 SHA256 eafe67990e383e92636a88de27f003674374db81d986ddbb397ab18d82b6556d SHA512 548a32f93b059e45c8616dedf49a0ce3b0e63463f8ddc3384b473d91bd12c3fab2c6e21de0b09d2b330c189454a2bf3e486aa25122ea58392d9cb11994592086 WHIRLPOOL 9d743e9aa982adb31b56916ce07baa49923ca18e6ad365fcd9311b4b4dcbc5a86d78b55b5900808abd22e5bad3b7754146d5cff5635264b9045fe992bf3d2dca +AUX gnokii-9999-icon.patch 239 SHA256 cadd0f89fdd23bdb41fb2c0b6faa97611ac113b675aa3668b439a2382d91ab98 SHA512 11ecd345c1bd93a8c0f316b411106bc22c5fecff2a848d075e9feb1bd1581a255dbf5a7eaa7fc525325af9b1c7d90736a7b58104f870f3d7ec329ea0b43c2dc3 WHIRLPOOL 39e05b183e0df7d8304f3fe33814162e464548e0aedee37d8f138be6cf15c65f715f525f60eb956d4c0617ed271d253a537a3b1bf05ddb16257d98d4f9ce419a +AUX gnokii-9999-translations.patch 196 SHA256 6cd5cd81149cf165f2d2ee2e5dc9ee6125dbdf99d30c7f5259ed0f5e22026e96 SHA512 ac167f1d93abf9ed00cd4761ae3b86fdfda33ec5690bf1c0c62a136fe09d0f57dd0d3abe172a3adafb499cc01655995111bc84343932bc6054d45a8e70097af6 WHIRLPOOL 6134297740a23f8181f3adf5b3b68abc0a8ec225b71b708637df408c2710d4cc55800913bc1fe01f1f490e0e346a49a234126e4d48fcd4b0222a1c9fbb57beb9 +DIST gnokii-0.6.31.tar.bz2 1237865 SHA256 8f5a083b05c1a66a3402ca5cd80084e14c2c0632c991bb53b03c78e9adb02501 SHA512 529f6d0d29873f48ac00cf7151ba35dcbd93405ab27d69848ed17dea73f4fba71721d1811d921441b4214777b9b33f760b372631627cc108eb94c39684da343d WHIRLPOOL a14927d205748647187336f408fc7449808e48ff2b6de0df8cc14562d25a67643d1bb4cb97f50c27a5c2acad2bdb503bcec049a4fdac534ce48c763b9715cae7 +EBUILD gnokii-0.6.31-r1.ebuild 3426 SHA256 af5997baad7ab37c870132b6133a549dbd26017dd1de2cd201689dae346d3052 SHA512 8f48893eba869c49641a78a64546e8ed6b614a90d7dcf7e354208750c332de3d471ef3888425bf60fd78be54039411b80e14c6aced6e1f3c45dfdfccb9f9c155 WHIRLPOOL 6172446ea851f88e69f91171cc05a980df68998ee396ddec38cfad0cf4562d5b3a2990ebc75a898dcbf403d6de0abad504ab6e351de52b0c10ae0972fd1b7f3b +EBUILD gnokii-9999.ebuild 3381 SHA256 7601e9be306c0a92c60fd0dde1164b8d9bdbcce4c04647effd70c2de2b69d07a SHA512 cc38a495499a49cedcb13704e008bf8730d1ba03190a61d46efdc3983505e041d77c52dbfb698d2f48fdee398f87bbe96f526e522793b70ce606f51959790d0a WHIRLPOOL 4c1300b6341dc53212d629f345a3af45954b127524d6f8dde63407361099303a590063241f7762fd64e23621851510ea1c33a316d64f9cac8fe4ee7a9d55692f +MISC ChangeLog 4849 SHA256 63680ab07c46b7fbd4213b55c53cfa0bf4d2618bf9d2c2fd11c3e3c7ac285a4e SHA512 426013e6fcca7b48a3a5b6dbf4247cf87a94028c5ff2a178181b3df14c0b86f977a9d2bd24cf2277437f397a280980c418dd255afb0ad98410e7ccb7cf4f85f1 WHIRLPOOL f89bf28ac0d2e60d8cc874fa4f5d1f4f5f1b1a0f1da90622757939afb7681b3cee8cf506e70bac2f0ab2b39cf4edcb58755362b7a0a9855730ab4743aa097279 +MISC ChangeLog-2015 22585 SHA256 b79f4c7da2f21e019e7ea31cc98e55894f12785b6a896c6169cf164e338a7db9 SHA512 eaf839967cad8f47d47d0aa9d4f59d1ba41f1a37f47a66e6ca4c7266dfae15c6d24c092e95e094ef534b29c5571c12925925e54eb2b31a1c62753d75b3221af2 WHIRLPOOL 176b394a8b1527411f5fb7d27fb91b43d296b53fb539bc08130fce4efd35fe2bf23360deabaa7c3a9237898ae9b5851ecc52f7240c39de6316e6075aa37fc617 +MISC metadata.xml 756 SHA256 7aefb1204e231f38653cea94dbdcd68a37d20d9154fcd9eaf2e0cf116e7d367d SHA512 7fbdd7684cd7810fe6114146a3378c346ca8d01df54adbbea292b0727fb039d5ceec29e4a5fd4d3031c17f9f229a4de0d635ae23e57eb507103255ebcb057983 WHIRLPOOL 26286c93586c0becf5e8d403ecf70209e2b16fdd7bbb60f03cd2791273afb25f39ecfb6d3c9fe2cb1944ee04628728899c0392b8b5f669b3af90cf26233d4d6d diff --git a/app-mobilephone/gnokii/files/gnokii-0.6.31-fix_xgnokii_inclusion.patch b/app-mobilephone/gnokii/files/gnokii-0.6.31-fix_xgnokii_inclusion.patch new file mode 100644 index 000000000000..243f78174a0f --- /dev/null +++ b/app-mobilephone/gnokii/files/gnokii-0.6.31-fix_xgnokii_inclusion.patch @@ -0,0 +1,11 @@ +--- a/configure.in ++++ b/configure.in +@@ -689,7 +689,7 @@ + fi + fi + +-AM_CONDITIONAL(XGNOKII, test "x$_support" = "xyes") ++AM_CONDITIONAL(XGNOKII, test "x$x_support" = "xyes") + + dnl ======================== Check for libsocket + AC_CHECK_LIB(socket, socket) diff --git a/app-mobilephone/gnokii/files/gnokii-0.6.31-gcc5.patch b/app-mobilephone/gnokii/files/gnokii-0.6.31-gcc5.patch new file mode 100644 index 000000000000..09b65f5b0f81 --- /dev/null +++ b/app-mobilephone/gnokii/files/gnokii-0.6.31-gcc5.patch @@ -0,0 +1,27 @@ +Patch by Robert Scheck <robert@fedoraproject.org> for gnokii <= 0.6.31 to avoid +build failures with GCC 5.x as "gnokii-0.6.31/xgnokii/xgnokii.c:1209: undefined +reference to `GUI_HideAbout'" and "xgnokii-xgnokii_logos.o:(.data.rel+0xe0): +undefined reference to `CloseLogosWindow'". + +--- gnokii-0.6.31/xgnokii/xgnokii.c 2011-12-02 15:53:04.000000000 +0100 ++++ gnokii-0.6.31/xgnokii/xgnokii.c.gcc5 2015-06-20 15:49:59.000000000 +0200 +@@ -798,7 +798,7 @@ + } + + +-inline void GUI_HideAbout(void) ++void GUI_HideAbout(void) + { + gtk_widget_hide(AboutDialog); + } +--- gnokii-0.6.31/xgnokii/xgnokii_logos.c 2011-12-02 15:53:04.000000000 +0100 ++++ gnokii-0.6.31/xgnokii/xgnokii_logos.c.gcc5 2015-06-20 15:50:15.000000000 +0200 +@@ -1304,7 +1304,7 @@ + return 0; + } + +-inline void CloseLogosWindow(void) ++void CloseLogosWindow(void) + { + gtk_widget_hide(GUI_LogosWindow); + } diff --git a/app-mobilephone/gnokii/files/gnokii-9999-icon.patch b/app-mobilephone/gnokii/files/gnokii-9999-icon.patch new file mode 100644 index 000000000000..13ca2cf6e4ce --- /dev/null +++ b/app-mobilephone/gnokii/files/gnokii-9999-icon.patch @@ -0,0 +1,11 @@ +--- a/xgnokii/xgnokii.desktop.in ++++ b/xgnokii/xgnokii.desktop.in +@@ -2,7 +2,7 @@ + _Name=Xgnokii + _GenericName=Mobile Phone Suite + _Comment=Manage your mobile phone +-Icon=phone ++Icon=xgnokii + Exec=xgnokii + Terminal=false + Type=Application diff --git a/app-mobilephone/gnokii/files/gnokii-9999-translations.patch b/app-mobilephone/gnokii/files/gnokii-9999-translations.patch new file mode 100644 index 000000000000..2f61cc222738 --- /dev/null +++ b/app-mobilephone/gnokii/files/gnokii-9999-translations.patch @@ -0,0 +1,10 @@ +--- a/po/POTFILES.in ++++ b/po/POTFILES.in +@@ -57,6 +57,7 @@ + smsd/pq.c + smsd/smsd.c + smsd/sqlite.c ++utils/gnokii-configure.glade + utils/mgnokiidev.c + xgnokii/xgnokii.c + xgnokii/xgnokii_calendar.c diff --git a/app-mobilephone/gnokii/gnokii-0.6.31-r1.ebuild b/app-mobilephone/gnokii/gnokii-0.6.31-r1.ebuild new file mode 100644 index 000000000000..17779551f5d6 --- /dev/null +++ b/app-mobilephone/gnokii/gnokii-0.6.31-r1.ebuild @@ -0,0 +1,138 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools eutils linux-info + +HOMEPAGE="http://www.gnokii.org/" +if [[ $PV == *9999 ]]; then + EGIT_REPO_URI=" + git://git.savannah.nongnu.org/${PN}.git + http://git.savannah.gnu.org/r/${PN}.git" + inherit git-r3 +else + SRC_URI="http://www.gnokii.org/download/${PN}/${P}.tar.bz2" + KEYWORDS="amd64 hppa ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos" +fi +DESCRIPTION="User space driver and tools for use with mobile phones" + +LICENSE="GPL-2" +SLOT="0" +IUSE="bluetooth debug ical irda mysql nls +pcsc-lite postgres sms usb X" + +RDEPEND=" + !app-mobilephone/smstools + bluetooth? ( kernel_linux? ( net-wireless/bluez ) ) + ical? ( dev-libs/libical:= ) + pcsc-lite? ( sys-apps/pcsc-lite ) + sms? ( + dev-libs/glib:2 + postgres? ( dev-db/postgresql:* ) + mysql? ( virtual/mysql:= ) + ) + usb? ( virtual/libusb:0 ) + X? ( x11-libs/gtk+:2 )" +DEPEND="${RDEPEND} + dev-util/intltool + irda? ( virtual/os-headers ) + nls? ( sys-devel/gettext )" + +CONFIG_CHECK="~UNIX98_PTYS" + +S="${WORKDIR}/${PN}-${PV%.1}" + +# Supported languages and translated documentation +# Be sure all languages are prefixed with a single space! +MY_AVAILABLE_LINGUAS=" cs de et fi fr it nl pl pt sk sl sv zh_CN" +IUSE="${IUSE} ${MY_AVAILABLE_LINGUAS// / linguas_}" + +PATCHES=( + "${FILESDIR}"/${P}-fix_xgnokii_inclusion.patch + "${FILESDIR}"/${P}-gcc5.patch +) + +src_prepare() { + [[ $PV == *9999 ]] && \ + PATCHES=( + "${FILESDIR}"/${P}-icon.patch + "${FILESDIR}"/${P}-translations.patch + ) + + sed -i -e "s:/usr/local:${EPREFIX}/usr:" Docs/sample/gnokiirc || die + + default + mv configure.{in,ac} || die + + eautoreconf +} + +src_configure() { + strip-linguas ${MY_AVAILABLE_LINGUAS} + + local config_xdebug + if use X && use debug; then + config_xdebug="--enable-xdebug" + else + config_xdebug="--disable-xdebug" + fi + + econf \ + --disable-static \ + --enable-security \ + --disable-unix98test \ + $(use_enable bluetooth) \ + ${config_xdebug} \ + $(use_enable debug fulldebug) \ + $(use_enable debug rlpdebug) \ + $(use_enable ical libical) \ + $(use_enable irda) \ + $(use_enable mysql) \ + $(use_enable nls) \ + $(use_enable pcsc-lite libpcsclite) \ + $(use_enable postgres) \ + $(use_enable sms smsd) \ + $(use_enable usb libusb) \ + $(use_with X x) +} + +src_test() { + echo common/phones/fake.c >> po/POTFILES.in || die + default +} + +src_install() { + default + + # package provides .pc files + find "${D}" -name '*.la' -delete || die + + insinto /etc + doins Docs/sample/gnokiirc + + # only one file needs suid root to make a pseudo device + fperms 4755 /usr/sbin/mgnokiidev + + use X && newicon Docs/sample/logo/gnokii.xpm xgnokii.xpm + + if use sms; then + cd smsd || die + + docinto smsd + use mysql && dodoc sms.tables.mysql.sql README.MySQL + use postgres && dodoc sms.tables.pq.sql + dodoc README ChangeLog README.Tru64 action + fi +} + +pkg_postinst() { + elog "Make sure the user that runs gnokii has read/write access to the device" + elog "which your phone is connected to." + elog "The simple way of doing that is to add your user to the uucp group." + if [[ $PV == *9999 ]]; then + elog "This is the GIT version of ${PN}. It is experimental but may have important bug fixes." + elog "You can keep track of the most recent commits at:" + elog " http://git.savannah.gnu.org/cgit/gnokii.git/" + elog "Whenever there is a change you are interested in, you can re-emerge ${P}." + fi +} diff --git a/app-mobilephone/gnokii/gnokii-9999.ebuild b/app-mobilephone/gnokii/gnokii-9999.ebuild new file mode 100644 index 000000000000..3b4263b6ee3f --- /dev/null +++ b/app-mobilephone/gnokii/gnokii-9999.ebuild @@ -0,0 +1,136 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools eutils linux-info + +HOMEPAGE="http://www.gnokii.org/" +if [[ $PV == *9999 ]]; then + EGIT_REPO_URI=" + git://git.savannah.nongnu.org/${PN}.git + http://git.savannah.gnu.org/r/${PN}.git" + inherit git-r3 +else + SRC_URI="http://www.gnokii.org/download/${PN}/${P}.tar.bz2" + KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos" +fi +DESCRIPTION="User space driver and tools for use with mobile phones" + +LICENSE="GPL-2" +SLOT="0" +IUSE="bluetooth debug ical irda mysql nls +pcsc-lite postgres sms usb X" + +RDEPEND=" + !app-mobilephone/smstools + bluetooth? ( kernel_linux? ( net-wireless/bluez ) ) + ical? ( dev-libs/libical:= ) + pcsc-lite? ( sys-apps/pcsc-lite ) + sms? ( + dev-libs/glib:2 + postgres? ( dev-db/postgresql:* ) + mysql? ( virtual/mysql:= ) + ) + usb? ( virtual/libusb:0 ) + X? ( x11-libs/gtk+:2 )" +DEPEND="${RDEPEND} + dev-util/intltool + irda? ( virtual/os-headers ) + nls? ( sys-devel/gettext )" + +CONFIG_CHECK="~UNIX98_PTYS" + +S="${WORKDIR}/${PN}-${PV%.1}" + +# Supported languages and translated documentation +# Be sure all languages are prefixed with a single space! +MY_AVAILABLE_LINGUAS=" cs de et fi fr it nl pl pt sk sl sv zh_CN" +IUSE="${IUSE} ${MY_AVAILABLE_LINGUAS// / linguas_}" + +PATCHES=( + "${FILESDIR}"/${P}-fix_xgnokii_inclusion.patch + "${FILESDIR}"/${P}-gcc5.patch +) + +src_prepare() { + [[ $PV == *9999 ]] && \ + PATCHES=( + "${FILESDIR}"/${P}-icon.patch + "${FILESDIR}"/${P}-translations.patch + ) + + sed -i -e "s:/usr/local:${EPREFIX}/usr:" Docs/sample/gnokiirc || die + + default + + eautoreconf +} + +src_configure() { + strip-linguas ${MY_AVAILABLE_LINGUAS} + + local config_xdebug + if use X && use debug; then + config_xdebug="--enable-xdebug" + else + config_xdebug="--disable-xdebug" + fi + + econf \ + --disable-static \ + --disable-unix98test \ + $(use_enable bluetooth) \ + ${config_xdebug} \ + $(use_enable debug fulldebug) \ + $(use_enable debug rlpdebug) \ + $(use_enable ical libical) \ + $(use_enable irda) \ + $(use_enable mysql) \ + $(use_enable nls) \ + $(use_enable pcsc-lite libpcsclite) \ + $(use_enable postgres) \ + $(use_enable sms smsd) \ + $(use_enable usb libusb) \ + $(use_with X x) +} + +src_test() { + echo common/phones/fake.c >> po/POTFILES.in || die + default +} + +src_install() { + default + + # package provides .pc files + find "${D}" -name '*.la' -delete || die + + insinto /etc + doins Docs/sample/gnokiirc + + # only one file needs suid root to make a pseudo device + fperms 4755 /usr/sbin/mgnokiidev + + use X && newicon Docs/sample/logo/gnokii.xpm xgnokii.xpm + + if use sms; then + cd smsd || die + + docinto smsd + use mysql && dodoc sms.tables.mysql.sql README.MySQL + use postgres && dodoc sms.tables.pq.sql + dodoc README ChangeLog README.Tru64 action + fi +} + +pkg_postinst() { + elog "Make sure the user that runs gnokii has read/write access to the device" + elog "which your phone is connected to." + elog "The simple way of doing that is to add your user to the uucp group." + if [[ $PV == *9999 ]]; then + elog "This is the GIT version of ${PN}. It is experimental but may have important bug fixes." + elog "You can keep track of the most recent commits at:" + elog " http://git.savannah.gnu.org/cgit/gnokii.git/" + elog "Whenever there is a change you are interested in, you can re-emerge ${P}." + fi +} diff --git a/app-mobilephone/gnokii/metadata.xml b/app-mobilephone/gnokii/metadata.xml new file mode 100644 index 000000000000..67376429a674 --- /dev/null +++ b/app-mobilephone/gnokii/metadata.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<!-- maintainer-needed --> +<longdescription> +gnokii provides tools and a user space driver for use with mobile phones. +With gnokii you can do such things as make data calls, update your address book, +change calendar entires, send and receive SMS messages and load ring tones +depending on the phone you have. +</longdescription> +<use> + <flag name="ical">Enable support for <pkg>dev-libs/libical</pkg></flag> + <flag name="irda">Enable infrared support</flag> + <flag name="sms">Enable SMS support (build smsd)</flag> + <flag name="pcsc-lite">Enable smartcard support with <pkg>sys-apps/pcsc-lite</pkg></flag> +</use> +</pkgmetadata> |