summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-libs/libqmi')
-rw-r--r--net-libs/libqmi/Manifest5
-rw-r--r--net-libs/libqmi/files/libqmi-1.0.0-python3.patch176
-rw-r--r--net-libs/libqmi/libqmi-1.0.0.ebuild50
-rw-r--r--net-libs/libqmi/libqmi-1.10.2.ebuild43
-rw-r--r--net-libs/libqmi/libqmi-1.12.6.ebuild43
-rw-r--r--net-libs/libqmi/libqmi-1.4.0.ebuild44
-rw-r--r--net-libs/libqmi/libqmi-1.8.0.ebuild43
-rw-r--r--net-libs/libqmi/libqmi-9999.ebuild43
-rw-r--r--net-libs/libqmi/metadata.xml12
9 files changed, 459 insertions, 0 deletions
diff --git a/net-libs/libqmi/Manifest b/net-libs/libqmi/Manifest
new file mode 100644
index 00000000000..0d71545498d
--- /dev/null
+++ b/net-libs/libqmi/Manifest
@@ -0,0 +1,5 @@
+DIST libqmi-1.0.0.tar.gz 2398450 SHA256 aea6b4c027bc24bdf5a624b50be8413c796c266c1e134425a8e783fb7b5ff419 SHA512 7d1a057fadd65e16e623670cc1a6292c9dc2e22630d329e820320c70acbabba519280bd76a954a5308d395cae23893ba5700b213e397457a8b7410ec6b8fc157 WHIRLPOOL 95a3341068d852f3754ba8c8bfa139a03de38e9a0ad861c84124e3cf55740576a66f8c9a1b33dac8d7c8b3f4924ac3be5a26ccf95d876c79c431949dcb19e2c3
+DIST libqmi-1.10.2.tar.xz 643256 SHA256 0d70b10810e45aebb4af902db59972d756441ca1e301240c5c529ef0f08bf80f SHA512 01f82d674ee1554473660b046fa3cc75f0d4f628d866fc1c111080c06cdb941d6d69950f2efce0f5839c461b459d51f14bf840e4f410a4beb0fad6e4c7dea2e9 WHIRLPOOL a7615cbbb195c94eb493edad0282f4bdf0ca695c3964331e00aa403e2dd83062eda1fd04cfdc77b84f9d9aebf213bc64726c0cc715d4f9ad6368f36cbffb6542
+DIST libqmi-1.12.6.tar.xz 710564 SHA256 0857bffece4e8ddfa7f721dd9ca63b4c78de345ac9ae2faebf04062cacba3780 SHA512 7001f61dbe2be431867a504dbfc634ed5e7c3f3b1740aef7833fb8163d1a6bdffb57793f09062f49c0b8eeff5a011a2a057a938d618f3547ff5942021b3e8a9d WHIRLPOOL 23e4b2d6349f7b6d6c88716787cc06fba5f5eaa426fb6af5d09662fe7e59251a63dd5bace691dcb1e5f76a1457caa382ab7a5e7bf7f123d276965aee79878200
+DIST libqmi-1.4.0.tar.xz 592684 SHA256 812515c36fd77c5f7eb9d52804e9666c4341e8c7dd3d932ca1e607b467831af3 SHA512 ca20352ba0eb4e03946b366ddcfec2892fda1e5dc8351816ee2314bc3d4235637eb143066f0f96bd9a9b5b5b3198265432beb8a984617e6618ddbd5c937e2b93 WHIRLPOOL 99418e9c91f89058279f9353b8b2b277f12fdda85f3114b005be59db9432fed91148bd6bcb3519bc4267cd2d1479c818cd8816d9c6d38a7721ad18f6b2fdd80e
+DIST libqmi-1.8.0.tar.xz 659720 SHA256 fadd8070dd6f95eb00d04058c616ade57966d8e54d894da8ddbf31e98310ee0d SHA512 016fdcdb8e66452be5c82107f00189292822afe97ec3e3a458b5a6bce2174a428035d76efd5f57497a07bfd62991e4330ebe150e91dd178c4f698be8e537d372 WHIRLPOOL 67f9addbb70203dfdb3bf379a1599ce9df197a1cc8e619795c08e28f3247c730f3f106fd02368834815cf1b55b64d22dc23a5108a42e8c509cd9ac4cc1593a93
diff --git a/net-libs/libqmi/files/libqmi-1.0.0-python3.patch b/net-libs/libqmi/files/libqmi-1.0.0-python3.patch
new file mode 100644
index 00000000000..152804dc365
--- /dev/null
+++ b/net-libs/libqmi/files/libqmi-1.0.0-python3.patch
@@ -0,0 +1,176 @@
+http://bugs.gentoo.org/464314
+
+upstream seems to have this fixed already
+
+--- a/build-aux/qmi-codegen/Client.py
++++ b/build-aux/qmi-codegen/Client.py
+@@ -61,10 +61,10 @@ class Client:
+ break
+
+ translations = { 'underscore' : utils.build_underscore_name(self.name),
+- 'no_prefix_underscore_upper' : string.upper(utils.build_underscore_name(self.name[4:])),
++ 'no_prefix_underscore_upper' : utils.build_underscore_name(self.name[4:]).upper(),
+ 'camelcase' : utils.build_camelcase_name(self.name),
+ 'hyphened' : utils.build_dashed_name(self.name),
+- 'service' : string.upper(self.service) }
++ 'service' : self.service.upper() }
+
+ # Emit class header
+ template = (
+@@ -207,8 +207,8 @@ class Client:
+ # At least one field in the indication
+ translations['output_camelcase'] = utils.build_camelcase_name(message.output.fullname)
+ translations['bundle_type'] = 'QMI_TYPE_' + utils.remove_prefix(utils.build_underscore_uppercase_name(message.output.fullname), 'QMI_')
+- translations['service'] = string.upper(self.service)
+- translations['message_name_dashed'] = string.replace(message.name, ' ', '-')
++ translations['service'] = self.service.upper()
++ translations['message_name_dashed'] = message.name.replace(' ', '-')
+ inner_template += (
+ '\n'
+ ' /**\n'
+@@ -263,8 +263,8 @@ class Client:
+ def __emit_methods(self, hfile, cfile, message_list):
+ translations = { 'underscore' : utils.build_underscore_name(self.name),
+ 'camelcase' : utils.build_camelcase_name (self.name),
+- 'service_lowercase' : string.lower(self.service),
+- 'service_uppercase' : string.upper(self.service),
++ 'service_lowercase' : self.service.lower(),
++ 'service_uppercase' : self.service.upper(),
+ 'service_camelcase' : string.capwords(self.service) }
+
+ for message in message_list.list:
+@@ -518,7 +518,7 @@ class Client:
+ """
+ def emit_sections(self, sfile):
+ translations = { 'underscore' : utils.build_underscore_name(self.name),
+- 'no_prefix_underscore_upper' : string.upper(utils.build_underscore_name(self.name[4:])),
++ 'no_prefix_underscore_upper' : utils.build_underscore_name(self.name[4:]).upper(),
+ 'camelcase' : utils.build_camelcase_name (self.name),
+ 'hyphened' : utils.build_dashed_name (self.name) }
+
+--- a/build-aux/qmi-codegen/Field.py
++++ b/build-aux/qmi-codegen/Field.py
+@@ -57,10 +57,10 @@ class Field:
+ self.variable = VariableFactory.create_variable(dictionary, self.fullname, self.container_type)
+
+ # Create the variable name within the Container
+- self.variable_name = 'arg_' + string.lower(utils.build_underscore_name(self.name))
++ self.variable_name = 'arg_' + utils.build_underscore_name(self.name).lower()
+
+ # Create the ID enumeration name
+- self.id_enum_name = string.upper(utils.build_underscore_name(self.prefix + ' TLV ' + self.name))
++ self.id_enum_name = utils.build_underscore_name(self.prefix + ' TLV ' + self.name).upper()
+
+ # Output Fields may have prerequisites
+ self.prerequisites = []
+--- a/build-aux/qmi-codegen/Message.py
++++ b/build-aux/qmi-codegen/Message.py
+@@ -53,7 +53,7 @@ class Message:
+ self.fullname = self.prefix + ' ' + self.service + ' ' + self.name
+
+ # Create the ID enumeration name
+- self.id_enum_name = string.upper(utils.build_underscore_name(self.fullname))
++ self.id_enum_name = utils.build_underscore_name(self.fullname).upper()
+
+ # Build output container.
+ # Every defined message will have its own output container, which
+--- a/build-aux/qmi-codegen/MessageList.py
++++ b/build-aux/qmi-codegen/MessageList.py
+@@ -109,7 +109,7 @@ class MessageList:
+ messages of a given service.
+ """
+ def __emit_get_printable(self, hfile, cfile):
+- translations = { 'service' : string.lower(self.service) }
++ translations = { 'service' : self.service.lower() }
+
+ template = (
+ '\n'
+@@ -175,7 +175,7 @@ class MessageList:
+ introduced.
+ """
+ def __emit_get_version_introduced(self, hfile, cfile):
+- translations = { 'service' : string.lower(self.service) }
++ translations = { 'service' : self.service.lower() }
+
+ template = (
+ '\n'
+--- a/build-aux/qmi-codegen/Variable.py
++++ b/build-aux/qmi-codegen/Variable.py
+@@ -45,7 +45,7 @@ class Variable:
+ self.needs_dispose = False
+
+ self.endian = "QMI_ENDIAN_LITTLE"
+- if dictionary.has_key('endian'):
++ if 'endian' in dictionary:
+ endian = dictionary['endian']
+ if endian == 'network' or endian == 'big':
+ self.endian = "QMI_ENDIAN_BIG"
+--- a/build-aux/qmi-codegen/VariableArray.py
++++ b/build-aux/qmi-codegen/VariableArray.py
+@@ -86,7 +86,7 @@ class VariableArray(Variable):
+ def clear_func_name(self):
+ # element public format might be a base type like 'gchar *' rather
+ # than a structure name like QmiFooBar
+- elt_name = string.replace(self.array_element.public_format, '*', 'pointer')
++ elt_name = self.array_element.public_format.replace('*', 'pointer')
+ return utils.build_underscore_name(self.name) + \
+ '_' + \
+ utils.build_underscore_name_from_camelcase(utils.build_camelcase_name(elt_name))
+--- a/build-aux/qmi-codegen/VariableInteger.py
++++ b/build-aux/qmi-codegen/VariableInteger.py
+@@ -247,7 +247,7 @@ class VariableInteger(Variable):
+ '${lp} g_string_append_printf (${printable}, "%s", tmp ? "yes" : "no");\n')
+ elif self.public_format != self.private_format:
+ translations['public_type_underscore'] = utils.build_underscore_name_from_camelcase(self.public_format)
+- translations['public_type_underscore_upper'] = string.upper(utils.build_underscore_name_from_camelcase(self.public_format))
++ translations['public_type_underscore_upper'] = utils.build_underscore_name_from_camelcase(self.public_format).upper()
+ template += (
+ '#if defined __${public_type_underscore_upper}_IS_ENUM__\n'
+ '${lp} g_string_append_printf (${printable}, "%s", ${public_type_underscore}_get_string ((${public_format})tmp));\n'
+--- a/build-aux/qmi-codegen/utils.py
++++ b/build-aux/qmi-codegen/utils.py
+@@ -54,7 +54,7 @@ def add_copyright(f):
+ Build a header guard string based on the given filename
+ """
+ def build_header_guard(output_name):
+- return "__LIBQMI_GLIB_" + string.upper(string.replace (output_name, '-', '_')) + "__"
++ return "__LIBQMI_GLIB_" + output_name.replace('-', '_').upper() + "__"
+
+
+ """
+@@ -145,7 +145,7 @@ Build an underscore name from the given full name
+ e.g.: "This is a message" --> "this_is_a_message"
+ """
+ def build_underscore_name(name):
+- return string.lower(string.replace (name, ' ', '_'))
++ return name.replace(' ', '_').lower()
+
+
+ """
+@@ -153,7 +153,7 @@ Build an underscore uppercase name from the given full name
+ e.g.: "This is a message" --> "THIS_IS_A_MESSAGE"
+ """
+ def build_underscore_uppercase_name(name):
+- return string.upper(string.replace (name, ' ', '_'))
++ return name.replace(' ', '_').upper()
+
+
+ """
+@@ -170,7 +170,7 @@ Build a camelcase name from the given full name
+ e.g.: "This is a message" --> "ThisIsAMessage"
+ """
+ def build_camelcase_name(name):
+- return string.replace(string.capwords(name), ' ', '')
++ return string.capwords(name).replace(' ', '')
+
+
+ """
+@@ -178,7 +178,7 @@ Build a dashed lowercase name from the given full name
+ e.g.: "This is a message" --> "this-is-a-message"
+ """
+ def build_dashed_name(name):
+- return string.replace(string.lower(name), ' ', '-')
++ return name.replace(' ', '-').lower()
+
+
+ """
diff --git a/net-libs/libqmi/libqmi-1.0.0.ebuild b/net-libs/libqmi/libqmi-1.0.0.ebuild
new file mode 100644
index 00000000000..f9075c5e1a7
--- /dev/null
+++ b/net-libs/libqmi/libqmi-1.0.0.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+inherit multilib autotools eutils
+if [[ ${PV} == "9999" ]] ; then
+ inherit git-2
+ EGIT_REPO_URI="git://anongit.freedesktop.org/libqmi"
+else
+ KEYWORDS="~amd64 ~arm ~mips ~x86"
+ SRC_URI="http://cgit.freedesktop.org/libqmi/snapshot/${P}.tar.gz"
+fi
+
+DESCRIPTION="QMI modem protocol helper library"
+HOMEPAGE="http://cgit.freedesktop.org/libqmi/"
+
+LICENSE="LGPL-2"
+SLOT="0"
+IUSE="doc static-libs test"
+
+RDEPEND=">=dev-libs/glib-2.32"
+DEPEND="${RDEPEND}
+ doc? ( dev-util/gtk-doc )
+ virtual/pkgconfig"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-1.0.0-python3.patch #464314
+ if [[ ! -e configure ]] ; then
+ find -name Makefile.am -exec sed -i 's:^INCLUDES:AM_CPPFLAGS:' {} + || die
+ sed -i \
+ -e 's:noinst_PROGRAMS:check_PROGRAMS:' \
+ {cli/test,libqmi-glib/test}/Makefile.am || die
+ eautoreconf
+ fi
+}
+
+src_configure() {
+ econf \
+ --disable-more-warnings \
+ $(use_enable static{-libs,}) \
+ $(use_with doc{,s}) \
+ $(use_with test{,s})
+}
+
+src_install() {
+ default
+ use static-libs || rm -f "${ED}"/usr/$(get_libdir)/libqmi-glib.la
+}
diff --git a/net-libs/libqmi/libqmi-1.10.2.ebuild b/net-libs/libqmi/libqmi-1.10.2.ebuild
new file mode 100644
index 00000000000..bc45387898a
--- /dev/null
+++ b/net-libs/libqmi/libqmi-1.10.2.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+inherit multilib
+if [[ ${PV} == "9999" ]] ; then
+ inherit git-r3 autotools
+ EGIT_REPO_URI="git://anongit.freedesktop.org/${PN}"
+else
+ KEYWORDS="~amd64 ~arm ~arm64 ~mips ~x86"
+ SRC_URI="http://www.freedesktop.org/software/${PN}/${P}.tar.xz"
+fi
+
+DESCRIPTION="QMI modem protocol helper library"
+HOMEPAGE="http://cgit.freedesktop.org/libqmi/"
+
+LICENSE="LGPL-2"
+SLOT="0"
+IUSE="doc static-libs"
+
+RDEPEND=">=dev-libs/glib-2.32"
+DEPEND="${RDEPEND}
+ doc? ( dev-util/gtk-doc )
+ virtual/pkgconfig"
+[[ ${PV} == "9999" ]] && DEPEND+=" dev-util/gtk-doc" #469214
+
+src_prepare() {
+ [[ -e configure ]] || eautoreconf
+}
+
+src_configure() {
+ econf \
+ --disable-more-warnings \
+ $(use_enable static{-libs,}) \
+ $(use_enable {,gtk-}doc)
+}
+
+src_install() {
+ default
+ use static-libs || rm -f "${ED}/usr/$(get_libdir)/${PN}-glib.la"
+}
diff --git a/net-libs/libqmi/libqmi-1.12.6.ebuild b/net-libs/libqmi/libqmi-1.12.6.ebuild
new file mode 100644
index 00000000000..8ca64b459d0
--- /dev/null
+++ b/net-libs/libqmi/libqmi-1.12.6.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+inherit multilib
+if [[ ${PV} == "9999" ]] ; then
+ inherit git-r3 autotools
+ EGIT_REPO_URI="git://anongit.freedesktop.org/${PN}"
+else
+ KEYWORDS="amd64 arm ~mips x86"
+ SRC_URI="http://www.freedesktop.org/software/${PN}/${P}.tar.xz"
+fi
+
+DESCRIPTION="QMI modem protocol helper library"
+HOMEPAGE="http://cgit.freedesktop.org/libqmi/"
+
+LICENSE="LGPL-2"
+SLOT="0"
+IUSE="doc static-libs"
+
+RDEPEND=">=dev-libs/glib-2.32"
+DEPEND="${RDEPEND}
+ doc? ( dev-util/gtk-doc )
+ virtual/pkgconfig"
+[[ ${PV} == "9999" ]] && DEPEND+=" dev-util/gtk-doc" #469214
+
+src_prepare() {
+ [[ -e configure ]] || eautoreconf
+}
+
+src_configure() {
+ econf \
+ --disable-more-warnings \
+ $(use_enable static{-libs,}) \
+ $(use_enable {,gtk-}doc)
+}
+
+src_install() {
+ default
+ use static-libs || rm -f "${ED}/usr/$(get_libdir)/${PN}-glib.la"
+}
diff --git a/net-libs/libqmi/libqmi-1.4.0.ebuild b/net-libs/libqmi/libqmi-1.4.0.ebuild
new file mode 100644
index 00000000000..2981108d532
--- /dev/null
+++ b/net-libs/libqmi/libqmi-1.4.0.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+inherit multilib
+if [[ ${PV} == "9999" ]] ; then
+ inherit git-2 autotools
+ EGIT_REPO_URI="git://anongit.freedesktop.org/libqmi"
+else
+ KEYWORDS="amd64 arm ~mips x86"
+ SRC_URI="http://www.freedesktop.org/software/libqmi/${P}.tar.xz"
+fi
+
+DESCRIPTION="QMI modem protocol helper library"
+HOMEPAGE="http://cgit.freedesktop.org/libqmi/"
+
+LICENSE="LGPL-2"
+SLOT="0"
+IUSE="doc static-libs test"
+
+RDEPEND=">=dev-libs/glib-2.32"
+DEPEND="${RDEPEND}
+ doc? ( dev-util/gtk-doc )
+ virtual/pkgconfig"
+[[ ${PV} == "9999" ]] && DEPEND+=" dev-util/gtk-doc" #469214
+
+src_prepare() {
+ [[ -e configure ]] || eautoreconf
+}
+
+src_configure() {
+ econf \
+ --disable-more-warnings \
+ $(use_enable static{-libs,}) \
+ $(use_enable {,gtk-}doc) \
+ $(use_with test{,s})
+}
+
+src_install() {
+ default
+ use static-libs || rm -f "${ED}"/usr/$(get_libdir)/libqmi-glib.la
+}
diff --git a/net-libs/libqmi/libqmi-1.8.0.ebuild b/net-libs/libqmi/libqmi-1.8.0.ebuild
new file mode 100644
index 00000000000..9f92c8c1f73
--- /dev/null
+++ b/net-libs/libqmi/libqmi-1.8.0.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+inherit multilib
+if [[ ${PV} == "9999" ]] ; then
+ inherit git-r3 autotools
+ EGIT_REPO_URI="git://anongit.freedesktop.org/${PN}"
+else
+ KEYWORDS="amd64 arm ~mips x86"
+ SRC_URI="http://www.freedesktop.org/software/${PN}/${P}.tar.xz"
+fi
+
+DESCRIPTION="QMI modem protocol helper library"
+HOMEPAGE="http://cgit.freedesktop.org/libqmi/"
+
+LICENSE="LGPL-2"
+SLOT="0"
+IUSE="doc static-libs"
+
+RDEPEND=">=dev-libs/glib-2.32"
+DEPEND="${RDEPEND}
+ doc? ( dev-util/gtk-doc )
+ virtual/pkgconfig"
+[[ ${PV} == "9999" ]] && DEPEND+=" dev-util/gtk-doc" #469214
+
+src_prepare() {
+ [[ -e configure ]] || eautoreconf
+}
+
+src_configure() {
+ econf \
+ --disable-more-warnings \
+ $(use_enable static{-libs,}) \
+ $(use_enable {,gtk-}doc)
+}
+
+src_install() {
+ default
+ use static-libs || rm -f "${ED}/usr/$(get_libdir)/${PN}-glib.la"
+}
diff --git a/net-libs/libqmi/libqmi-9999.ebuild b/net-libs/libqmi/libqmi-9999.ebuild
new file mode 100644
index 00000000000..f008ae69a6c
--- /dev/null
+++ b/net-libs/libqmi/libqmi-9999.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+inherit multilib
+if [[ ${PV} == "9999" ]] ; then
+ inherit git-r3 autotools
+ EGIT_REPO_URI="git://anongit.freedesktop.org/${PN}"
+else
+ KEYWORDS="~amd64 ~arm ~x86"
+ SRC_URI="http://www.freedesktop.org/software/${PN}/${P}.tar.xz"
+fi
+
+DESCRIPTION="QMI modem protocol helper library"
+HOMEPAGE="http://cgit.freedesktop.org/libqmi/"
+
+LICENSE="LGPL-2"
+SLOT="0"
+IUSE="doc static-libs"
+
+RDEPEND=">=dev-libs/glib-2.32"
+DEPEND="${RDEPEND}
+ doc? ( dev-util/gtk-doc )
+ virtual/pkgconfig"
+[[ ${PV} == "9999" ]] && DEPEND+=" dev-util/gtk-doc" #469214
+
+src_prepare() {
+ [[ -e configure ]] || eautoreconf
+}
+
+src_configure() {
+ econf \
+ --disable-more-warnings \
+ $(use_enable static{-libs,}) \
+ $(use_enable {,gtk-}doc)
+}
+
+src_install() {
+ default
+ use static-libs || rm -f "${ED}/usr/$(get_libdir)/${PN}-glib.la"
+}
diff --git a/net-libs/libqmi/metadata.xml b/net-libs/libqmi/metadata.xml
new file mode 100644
index 00000000000..b1647b8ca15
--- /dev/null
+++ b/net-libs/libqmi/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer>
+ <email>vapier@gentoo.org</email>
+ <description>feel free to update</description>
+</maintainer>
+<maintainer>
+ <email>alexxy@gentoo.org</email>
+ <name>Alexey Shvetsov</name>
+</maintainer>
+</pkgmetadata>