diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-01-27 18:07:28 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-01-27 18:07:28 +0000 |
commit | 67f76a858f1ac826bd8a550d756d9ec6e340ed4f (patch) | |
tree | 45f4ada6be05bc180a14e017c9d5c6b58a0eec6e /net-p2p/classified-ads | |
parent | 38b7258d086dd5e263c3bbe3880c8c956676bc71 (diff) |
gentoo resync : 27.01.2018
Diffstat (limited to 'net-p2p/classified-ads')
-rw-r--r-- | net-p2p/classified-ads/Manifest | 6 | ||||
-rw-r--r-- | net-p2p/classified-ads/classified-ads-0.12.ebuild | 88 | ||||
-rw-r--r-- | net-p2p/classified-ads/files/classified-ads-0.12-unit-tests.patch | 48 | ||||
-rw-r--r-- | net-p2p/classified-ads/metadata.xml | 65 |
4 files changed, 175 insertions, 32 deletions
diff --git a/net-p2p/classified-ads/Manifest b/net-p2p/classified-ads/Manifest index 3eaf99e1e98c..d8768ce100c1 100644 --- a/net-p2p/classified-ads/Manifest +++ b/net-p2p/classified-ads/Manifest @@ -1,4 +1,8 @@ +AUX classified-ads-0.12-unit-tests.patch 2200 BLAKE2B 7d8205798aab3bbc04c7b3feada407e347e74887a2ec7bba5fd230345c805d6ffc8110a4f378a4c782049d9d205aa957698eb5421134fb0049c28db42ee490ab SHA512 ffcb49fac566ca410f1b49092f6a799f08bedbb4288b58aa0b702e9456a6aa7d0d0739a0893c7e6072cc2d1bff36e681e43a7c5993bd0e834e9dd8e5545af3dc DIST classified-ads-0.11.tar.gz 2528877 BLAKE2B a2e9bfe2acdf9e95cd6e7246ca50525fdfbaf8b11b8fac41faa7c8fe01db7a4cf1055a69b4cf9168bbce7e7e25438b44d57a50669c3c406015df357c20e9106d SHA512 29e1af0eac079201354364959af8dc606f4d7595fe4e8013212c4e5b30622d095e2beaeeadce350974ef32680329664ad37aae575c103fa052345acf0a49ed04 +DIST classified-ads-0.12.tar.gz 2639300 BLAKE2B 09822a4908e3a34fbd00af60effa53c437e1e32cb1821c0041ca0cb87f4deb74ba79603c5d5aa5fe37384f2bc32f2ccd2979711c2de1e2864361904e62e2de26 SHA512 cbcd3f40cd9003b840b1305361f93c901b073c653f610e46154e8ff1db92167ce77aafe5179168d7403fed7b22fab60cadfc8c1fc95ebe37a4f7ffc616b66929 DIST classified-ads-graphics-0.11.tar.gz 340476 BLAKE2B c9bac95f0e620a671959f0eb8c719cd70be5c9340ccb3bc3baa7eae669b5201d3127880b9006a4031e09be09e72754c8ec07824b3581e3af691c3944d5b32d21 SHA512 c59f65f37a8e4dddb753dbcdec835e946d9de021c5273319b3cd95ef1c3343715ce4b87d76b2d96264acc791a6cced32967521c74978131bd76fbcfc37bb344d +DIST classified-ads-graphics-0.12.tar.gz 340476 BLAKE2B c9bac95f0e620a671959f0eb8c719cd70be5c9340ccb3bc3baa7eae669b5201d3127880b9006a4031e09be09e72754c8ec07824b3581e3af691c3944d5b32d21 SHA512 c59f65f37a8e4dddb753dbcdec835e946d9de021c5273319b3cd95ef1c3343715ce4b87d76b2d96264acc791a6cced32967521c74978131bd76fbcfc37bb344d EBUILD classified-ads-0.11.ebuild 1735 BLAKE2B 24ae015cd8d3e808269bb7b162b4078e2d3848ff7cb8b0a0eae8769c0c11ac62e89ad30d1c3c7b8aa5892983605ddd9028291ff19baaba1649dfbd784be26443 SHA512 86392db458ae8b0341e08e50753b59db1c8cbb3313481e110ed9da4a4818e8cdced4fba2cf08448c842786dfb156ce34d7a58b594955f896d829969f5f9f78b7 -MISC metadata.xml 1672 BLAKE2B 093c7ae44c9b112d96c25f9c9a6c3f1dca47b746d500dd709888864719c151f1465c0ee5a612dc37b15fdaceb37fbf1496d8a0e2bc21624a86e2e36bec0353ce SHA512 12ef46cd8e1e665c9cbea8926780669128c828866856c7fd445d85b3606396650655b9a07320aee1dec34dc41a6c2665804a48fd80945a76625b339d3246ace9 +EBUILD classified-ads-0.12.ebuild 1931 BLAKE2B 54589943a591f3f42906e62d8a98792e386dcfde98d6c02573c9d1cd01ca6a6375e2dbaaf198430014d7984013e1b493334261e632f60e7200f4d4efb19a1966 SHA512 4635643f7d607adba051a270137abe0bc71b48d582ae6df1071e86edc8d6f046ce62afd13d03583ed3c8cd51bf8b6e6fce1fef7003d06328a0a2604d154a8193 +MISC metadata.xml 1851 BLAKE2B b2560a2855eb1640c92300281804959d109859bbfd2ebcca7f2143a9c72a9f181e5b508a69f10b31d488714d1660ec79a4c3a5506230e6036443d67714f660c0 SHA512 56069de00ca8e4ef0480e1baa3699a1293d70a0bb6ef2654263f489f3911a4662ea3c8146b55435641ee17746b334c018298702a9a1004dd2733ab64a9a9f20f diff --git a/net-p2p/classified-ads/classified-ads-0.12.ebuild b/net-p2p/classified-ads/classified-ads-0.12.ebuild new file mode 100644 index 000000000000..083c75d23ab6 --- /dev/null +++ b/net-p2p/classified-ads/classified-ads-0.12.ebuild @@ -0,0 +1,88 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PLOCALES="en fi sv da uk es" +PLOCALE_BACKUP="en" +inherit qmake-utils virtualx l10n + +DESCRIPTION="Program for displaying classified advertisement items" +HOMEPAGE="http://katiska.org/classified-ads/" +SRC_URI="https://github.com/operatornormal/classified-ads/archive/${PV}.tar.gz \ + -> classified-ads-${PV}.tar.gz \ + https://github.com/operatornormal/classified-ads/blob/graphics/preprocessed.tar.gz?raw=true \ + -> classified-ads-graphics-${PV}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +IUSE="doc test" + +RDEPEND="dev-libs/openssl:0 + >=net-libs/libnatpmp-20130911 + <=net-libs/libnatpmp-20140401-r1 + >=net-libs/miniupnpc-1.8 + sys-apps/file + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtnetwork:5[ssl] + dev-qt/qtwidgets:5 + dev-qt/qtsql:5[sqlite] + dev-qt/qtmultimedia:5[widgets] + dev-qt/qtprintsupport:5 + media-libs/opus + virtual/libintl + dev-lang/tcl:= + dev-lang/tk:= + sys-libs/zlib" + +DEPEND="${RDEPEND} + sys-devel/gettext + doc? ( app-doc/doxygen[dot] ) + test? ( dev-libs/libgcrypt:0 + dev-qt/qttest:5 + sys-devel/gdb:0 )" + +src_prepare() { + # preprocessed graphics are unpacked into wrong directory + # so lets move them into correct location: + mv ../ui/* ui/ || die + # unit-test patch + eapply "${FILESDIR}/${P}-unit-tests.patch" + # possible patches + eapply_user +} + +src_configure() { + eqmake5 + if use test; then + cd test || die + eqmake5 + fi +} + +src_compile() { + emake + if use doc; then + pushd doc > /dev/null || die + doxygen || die + popd > /dev/null || die + fi + if use test; then + pushd test > /dev/null || die + emake + popd > /dev/null || die + fi +} + +src_test() { + # testca will return 0 if all unit tests pass + virtx ./test/testca +} + +src_install() { + docompress -x /usr/share/doc/ + emake install INSTALL_ROOT="${D}" DESTDIR="${D}" + use doc && dodoc -r doc/doxygen.generated/html/ +} diff --git a/net-p2p/classified-ads/files/classified-ads-0.12-unit-tests.patch b/net-p2p/classified-ads/files/classified-ads-0.12-unit-tests.patch new file mode 100644 index 000000000000..1a1ec45f130f --- /dev/null +++ b/net-p2p/classified-ads/files/classified-ads-0.12-unit-tests.patch @@ -0,0 +1,48 @@ +Patch-by: Antti Järvinen <antti.jarvinen@katiska.org> +Fixes unit-tests that are in non-compiling condition in released source code. + +--- a/test/testca.pro 2017-11-17 18:30:27.000000000 +0300 ++++ b/test/testca.pro 2017-11-21 21:55:00.000000000 +0300 +@@ -1,5 +1,5 @@ + # +-# Classified Ads is Copyright (c) Antti Järvinen 2013-2016. ++# Classified Ads is Copyright (c) Antti Järvinen 2013-2017. + # + # This file is part of Classified Ads. + # +@@ -42,7 +42,8 @@ SOURCES = testca.cpp ../util/hash.cpp mockup_controller.cpp \ + ../datamodel/voicecall.cpp ../datamodel/cadbrecord.cpp \ + ../datamodel/cadbrecordmodel.cpp ../tcl/tclWrapper.cpp \ + ../datamodel/tclprogram.cpp ../datamodel/tclmodel.cpp \ +- ../tcl/tclCallbacks.cpp ../tcl/tclUtil.cpp ../ui/tclConsole.cpp ++ ../tcl/tclCallbacks.cpp ../tcl/tclUtil.cpp ../ui/tclConsole.cpp \ ++ ../util/ungzip.cpp + HEADERS = ../util/hash.h ../mcontroller.h mockup_controller.h \ + ../datamodel/model.h ../datamodel/nodemodel.h \ + ../datamodel/contentencryptionmodel.h ../net/networklistener.h \ +@@ -68,13 +69,13 @@ HEADERS = ../util/hash.h ../mcontroller.h mockup_controller.h \ + ../net/mvoicecallengine.h ../datamodel/voicecall.h ../datamodel/cadbrecord.h \ + ../datamodel/cadbrecordmodel.h ../tcl/tclWrapper.h \ + ../datamodel/tclprogram.h ../datamodel/tclmodel.h ../tcl/tclCallbacks.h \ +- ../tcl/tclUtil.h ../ui/tclConsole.h ++ ../tcl/tclUtil.h ../ui/tclConsole.h ../util/ungzip.h + CONFIG += debug qtestlib + QT += core network sql + greaterThan(QT_MAJOR_VERSION, 4) { + QT += widgets + } +-LIBS = -lssl -lcrypto -lgcrypt -lnatpmp -lgcov -lminiupnpc -ltcl -ltk ++LIBS = -lssl -lcrypto -lgcrypt -lnatpmp -lgcov -lminiupnpc -ltcl -ltk -lz + lessThan(QT_MAJOR_VERSION, 5) { + LIBS += -lqjson + } +--- a/util/ungzip.cpp 2017-11-17 18:30:27.000000000 +0300 ++++ b/util/ungzip.cpp 2017-11-21 21:55:00.000000000 +0300 +@@ -23,6 +23,6 @@ static const unsigned KZLibBlockSize ( 1024 ) ; +#include "ungzip.h" +#include <zlib.h> // actual gzip functions and data-types +-#include "log.h" ++#include "../log.h" + + UnGZip::UnGZip() { + // not really used diff --git a/net-p2p/classified-ads/metadata.xml b/net-p2p/classified-ads/metadata.xml index 51fdc6e87f25..4546060675a0 100644 --- a/net-p2p/classified-ads/metadata.xml +++ b/net-p2p/classified-ads/metadata.xml @@ -1,36 +1,39 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> - <maintainer type="person"> - <email>antti.jarvinen@katiska.org</email> - <name>Antti Järvinen</name> - <description>proxy maintainer</description> - </maintainer> - <maintainer type="project"> - <email>proxy-maint@gentoo.org</email> - <name>Proxy Maintainers</name> - </maintainer> - <longdescription lang="en"> - Classified ads is an attempt to re-produce parts of the functionality - that went away when Usenet news ceased to exist. This attempt tries to - fix the problem of disappearing news-servers so that there is no servers - required and no service-providers needed for any operation ; - data storage is implemented inside client applications that - users are running. Features of the program currently include: + <maintainer type="person"> + <email>antti.jarvinen@katiska.org</email> + <name>Antti Järvinen</name> + <description>proxy maintainer</description> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <longdescription lang="en"> + Classified ads is an attempt to re-produce parts of the functionality + that went away when Usenet news ceased to exist. This attempt tries to + fix the problem of disappearing news-servers so that there is no servers + required and no service-providers needed for any operation; + data storage is implemented inside client applications that + users are running. Features of the program currently include: - * Posting of ads online. Ads have a category ; there are some pre-defined categories but more can be invented just by typing over the suggested categories. - * Replying to ads either in public or privately to operator. - * (Small-sized) binary attachments to posts. - * Providing basic data of operators - data that operator may enter himself, or leave blank. - * Basic searching of content based on words. - </longdescription> - <upstream> - <maintainer status="active"> - <email>antti.jarvinen@katiska.org</email> - <name>Antti Järvinen</name> - </maintainer> - <changelog>https://github.com/operatornormal/classified-ads/commits/master</changelog> - <bugs-to>https://github.com/operatornormal/classified-ads/issues</bugs-to> - <remote-id type="github">operatornormal/classified-ads</remote-id> - </upstream> + * Posting of ads online. Ads have a category ; there are some + pre-defined categories but more can be invented just by typing + over the suggested categories. + * Replying to ads either in public or privately to operator. + * (Small-sized) binary attachments to posts. + * Providing basic data of operators - data that operator may enter + himself, or leave blank. + * Basic searching of content based on words. + </longdescription> + <upstream> + <maintainer status="active"> + <email>antti.jarvinen@katiska.org</email> + <name>Antti Järvinen</name> + </maintainer> + <changelog>https://github.com/operatornormal/classified-ads/commits/master</changelog> + <bugs-to>https://github.com/operatornormal/classified-ads/issues</bugs-to> + <remote-id type="github">operatornormal/classified-ads</remote-id> + </upstream> </pkgmetadata> |