diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-05-30 11:44:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-05-30 11:44:06 +0100 |
commit | f516638b7fe9592837389826a6152a7e1b251c54 (patch) | |
tree | 8bfecb640b7b6403d7a3d662d923eed630033da7 /net-p2p/transmission | |
parent | 1a61119f9f7b057830e2ce0563f913ec86f282ad (diff) |
gentoo resync : 30.05.2020
Diffstat (limited to 'net-p2p/transmission')
-rw-r--r-- | net-p2p/transmission/Manifest | 5 | ||||
-rw-r--r-- | net-p2p/transmission/files/cmake-unused-command-line.patch | 21 | ||||
-rw-r--r-- | net-p2p/transmission/transmission-3.00-r1.ebuild | 145 | ||||
-rw-r--r-- | net-p2p/transmission/transmission-9999.ebuild | 11 |
4 files changed, 171 insertions, 11 deletions
diff --git a/net-p2p/transmission/Manifest b/net-p2p/transmission/Manifest index 93aa3cff44f1..09cf5d2ea977 100644 --- a/net-p2p/transmission/Manifest +++ b/net-p2p/transmission/Manifest @@ -1,9 +1,12 @@ AUX 60-transmission.conf 56 BLAKE2B 4c2aadb19b4c85ce8ecec4f190f83da81a8b9e27f02cb20b785251122b5a495d1b3b7425378c4e17d3cda3c1c5b92c4297140dcfc3d4973dfbd1ac8e713245ca SHA512 9f79cfb00fa92e6d9054aad615f0ca7a1ad9d57b750e40b8942b7987a4a93d97b1f1ba9774a64f2b16e7c49fe7ae5fb4978d7aca3c481431ff333d508ed36410 +AUX cmake-unused-command-line.patch 875 BLAKE2B 3f86d8cd5977504e89d09948120a09a152be54a5f705c3a0e44b35bb26610750f526e5dcff2f781215a66be3b3a1fba0be797187972adcbfacf41c5835d00341 SHA512 58278a26998f560f52b76bbc76bf4c2981464e2f5c8e13672c288b9eedd0944228ee104abb99422154ba23646135baabb8400344122ad13b1333156af73fea8f AUX libsystemd.patch 630 BLAKE2B 1e7d9ac41ebc8971a86f051aaa5e7c4899004e4ae29b62d8b2963a16047cdd9ce7830156510d8e2f00967dcfb538991138f3b5c31bb2c841e5ddabfdb397ab47 SHA512 5babefd3ab0216dd1cf0b08b1ad10c79d034782ce744c9a4df402036ed1529655b9e05c641e876e9629a8366363ad0bf2d5e7581a621f2b0749ff02c6ed742eb AUX transmission-daemon.confd.4 735 BLAKE2B bc4c06dcf4a12282d36d446537ae8d3a461a9bb84f93b54f7d13be1c430209647bae89054b60f5d8dd434049140f74c1cb4ad04064d03b37ad88a851c28c07fa SHA512 47e78c85857eefb9be6c25d1e789cfb2a276d5816ba911ba1511e764469b2d9998edafe44247aff784113ca28926748bc5fb2b879280b780fd69ffb1e4e40736 AUX transmission-daemon.initd.10 1707 BLAKE2B 57857fa0b628f0c49ebaf13544b366bf9db39c70f31556a21262556ad89657a7f13c84e19f882839e4bc10f2b8afef96aa51f833478e38f215499244ca8b388b SHA512 30d9fe7d06ca3c92ff436e9bbe84729a5b343b52965f8d1d3d43f14f5fa25881dbc9676c5d3d916cff552aad5872ed41c2930e9ce3a5f7c958dbeec0d1ab1ac4 AUX transmission-daemon.service.conf 69 BLAKE2B 6e38a28f54366850ae794896f2954c3af77afead303197c49970873fa604d6b375e71122de8d3645f9fcc8abed4f696ac257bd59ba87ebdc5cdd5839d32c0a7b SHA512 3dc02be596296fc1efbf1bc690be3953709af00c230f55db4d067ff592d87e1a465faa4067bc15d65a8a27fed2cf07d108abb2ed45fc76b47b0642ce2e182946 DIST transmission-2.94.tar.xz 3365952 BLAKE2B d0215a2c595dd3ebb2ed5c94cc3d380c78f62b98388557620534b88b9e2304bb6ac91960395541267f82d70800c4860d0e58125bca33dd158da992d19b4c0def SHA512 ee411743940f2897aa0bbc351ce79f11d860075d2e9e399d60301eae8cfc453e20426ef553fc62ee43019a07c052d512f5d7972cc4411fb57b1312c2c1558da7 +DIST transmission-3.00.tar.xz 3995080 BLAKE2B fb1be44aa630e6a1cf15511ab4ab40156edb16f9410b83058c53548f466fb9502c23157756a29e921e4468db1ebac7832b755cfcf98451c663c64401559f5498 SHA512 c8fb96086ba4b18f04d6181a29f6e2af85864840c533f3470a202dfa686e9431caeccd25f12c975a9a8f9b7802ca0bd73c4edc1ca06bdbada682326cad188a76 EBUILD transmission-2.94-r1.ebuild 3821 BLAKE2B 3ef7bb62f838ee382b5a7d5fb755d15ae3de1a555cdf3b4e6b9cdc40506e9aa271982e046bc379170708e5d802f1b9490ee078f2ee49583157d968442fd8e7c9 SHA512 ca9d0fbe7d6169effdeddc2c16370e26a90207e40e63e675a55aa4e726f0395989cf0c0877bb82dad062988040177eb7d0459bac19cd15053a79cffdd199de01 -EBUILD transmission-9999.ebuild 3314 BLAKE2B 6d83ca174cac776ba91c0ada261f28162c5f8fdcbdaa1fc4a3165dc9b87a964d293453f5ebf6e27a04234e309e0f480d777c7bcdb7b53c83bba99e78ffc5b2d4 SHA512 4a5686d52735847671ece9de72c2afc6998b790c83ae9f492d73c53b6b99e876a10302b0eb19823aebc0dacec80e9f4ac5ed6a3c9ca61760f4d58c72e65ef211 +EBUILD transmission-3.00-r1.ebuild 3228 BLAKE2B 2a68817e0f1c53369448ac21e9881a13568c592d281c70e0cbeb8fac4857914d8c225770d164b8bf1a704b00f2d460ec4082e44f8a490dd24b48cdd0d6086e10 SHA512 049a9946160de701280cbe3833a74668beacc27a22d1b19387aa4b2f3694f1b631a6ec52ecab3cea82a5b12f1c61b4e1fe494b860cb4a830e2911951c0236757 +EBUILD transmission-9999.ebuild 3196 BLAKE2B bd91eee69c5ba68e2bd9d168190eeeda69b1199844d217fd6eff1adfd71085c649b1b66823efe6b66dcd97bcdc32f95eb18686cb3bd986997246b4ea9815fbeb SHA512 f1d288b3406c460485535242af24064b194d43ab02f3b6c17764f3329e58202839202205c230a2b37f87f92788bab0c58398a7b03c5ba6494985db9f456286fe MISC metadata.xml 602 BLAKE2B 05300c81bd2c4df76aaaf8381a788016777e259075aa6a3bf9da239b4832dac1281f718f0fd79ece7d5c238440e07d1aabe15b7da40f34674ac30bbd356d0c6b SHA512 0047a936eda032a4521707ea50dcde06dce3837993e70d43a5b033183ba58633ae46e2d2e56de98a56f3480b30e596c7fbae82fd1e2ee9cbebc7983d9551617d diff --git a/net-p2p/transmission/files/cmake-unused-command-line.patch b/net-p2p/transmission/files/cmake-unused-command-line.patch new file mode 100644 index 000000000000..6e0af5dc7cc9 --- /dev/null +++ b/net-p2p/transmission/files/cmake-unused-command-line.patch @@ -0,0 +1,21 @@ +From 63b8fd6391cd30bb45e1c9432f69c43ade9bb7ea Mon Sep 17 00:00:00 2001 +From: Mike Gilbert <floppym@gentoo.org> +Date: Sat, 23 May 2020 22:25:42 -0400 +Subject: [PATCH] Do not warn about unused command line options + +--- + cmake/TrMacros.cmake | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/cmake/TrMacros.cmake b/cmake/TrMacros.cmake +index 5e439126f..674b2ede0 100644 +--- a/cmake/TrMacros.cmake ++++ b/cmake/TrMacros.cmake +@@ -95,6 +95,7 @@ macro(tr_add_external_auto_library ID DIRNAME LIBNAME) + PREFIX "${${ID}_PREFIX}" + CMAKE_ARGS + -Wno-dev # We don't want to be warned over unused variables ++ --no-warn-unused-cli + "-DCMAKE_TOOLCHAIN_FILE:PATH=${CMAKE_TOOLCHAIN_FILE}" + "-DCMAKE_USER_MAKE_RULES_OVERRIDE=${CMAKE_USER_MAKE_RULES_OVERRIDE}" + "-DCMAKE_C_FLAGS:STRING=${CMAKE_C_FLAGS}" diff --git a/net-p2p/transmission/transmission-3.00-r1.ebuild b/net-p2p/transmission/transmission-3.00-r1.ebuild new file mode 100644 index 000000000000..91ab6b54ceba --- /dev/null +++ b/net-p2p/transmission/transmission-3.00-r1.ebuild @@ -0,0 +1,145 @@ +# Copyright 2006-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake systemd xdg-utils + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/transmission/transmission" +else + SRC_URI="https://dev.gentoo.org/~floppym/dist/${P}.tar.xz" + KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~x86 ~amd64-linux" +fi + +DESCRIPTION="A fast, easy, and free BitTorrent client" +HOMEPAGE="https://transmissionbt.com/" + +# web/LICENSE is always GPL-2 whereas COPYING allows either GPL-2 or GPL-3 for the rest +# transmission in licenses/ is for mentioning OpenSSL linking exception +# MIT is in several libtransmission/ headers +LICENSE="|| ( GPL-2 GPL-3 Transmission-OpenSSL-exception ) GPL-2 MIT" +SLOT="0" +IUSE="appindicator gtk libressl lightweight nls mbedtls qt5 systemd test" +RESTRICT="!test? ( test )" + +ACCT_DEPEND=" + acct-group/transmission + acct-user/transmission +" +BDEPEND="${ACCT_DEPEND} + virtual/pkgconfig + nls? ( + gtk? ( + dev-util/intltool + sys-devel/gettext + ) + qt5? ( + dev-qt/linguist-tools:5 + ) + ) +" +COMMON_DEPEND=" + >=dev-libs/libevent-2.0.10:= + !mbedtls? ( + !libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl:0= ) + ) + mbedtls? ( net-libs/mbedtls:0= ) + net-libs/libnatpmp + >=net-libs/miniupnpc-1.7:= + >=net-misc/curl-7.16.3[ssl] + sys-libs/zlib:= + nls? ( virtual/libintl ) + gtk? ( + >=dev-libs/dbus-glib-0.100 + >=dev-libs/glib-2.32:2 + >=x11-libs/gtk+-3.4:3 + appindicator? ( >=dev-libs/libappindicator-0.4.30:3 ) + ) + qt5? ( + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtwidgets:5 + dev-qt/qtnetwork:5 + dev-qt/qtdbus:5 + ) + systemd? ( >=sys-apps/systemd-209:= ) +" +DEPEND="${COMMON_DEPEND} + nls? ( + virtual/libintl + gtk? ( + dev-util/intltool + sys-devel/gettext + ) + qt5? ( + dev-qt/linguist-tools:5 + ) + ) +" +RDEPEND="${COMMON_DEPEND} + ${ACCT_DEPEND} +" + +PATCHES=( + "${FILESDIR}"/cmake-unused-command-line.patch +) + +src_configure() { + local mycmakeargs=( + -DCMAKE_INSTALL_DOCDIR=share/doc/${PF} + + -DENABLE_GTK=$(usex gtk ON OFF) + -DENABLE_LIGHTWEIGHT=$(usex lightweight ON OFF) + -DENABLE_NLS=$(usex nls ON OFF) + -DENABLE_QT=$(usex qt5 ON OFF) + -DENABLE_TESTS=$(usex test ON OFF) + + -DUSE_SYSTEM_EVENT2=ON + -DUSE_SYSTEM_DHT=OFF + -DUSE_SYSTEM_MINIUPNPC=ON + -DUSE_SYSTEM_NATPMP=ON + -DUSE_SYSTEM_UTP=OFF + -DUSE_SYSTEM_B64=OFF + + -DWITH_CRYPTO=$(usex mbedtls polarssl openssl) + -DWITH_INOTIFY=ON + -DWITH_LIBAPPINDICATOR=$(usex appindicator ON OFF) + -DWITH_SYSTEMD=$(usex systemd ON OFF) + ) + + cmake_src_configure +} + +src_install() { + cmake_src_install + + newinitd "${FILESDIR}"/transmission-daemon.initd.10 transmission-daemon + newconfd "${FILESDIR}"/transmission-daemon.confd.4 transmission-daemon + systemd_dounit daemon/transmission-daemon.service + systemd_install_serviced "${FILESDIR}"/transmission-daemon.service.conf + + insinto /usr/lib/sysctl.d + doins "${FILESDIR}"/60-transmission.conf + + if [[ ${EUID} == 0 ]]; then + diropts -o transmission -g transmission + fi + keepdir /var/lib/transmission +} + +pkg_postrm() { + if use gtk || use qt5; then + xdg_desktop_database_update + xdg_icon_cache_update + fi +} + +pkg_postinst() { + if use gtk || use qt5; then + xdg_desktop_database_update + xdg_icon_cache_update + fi +} diff --git a/net-p2p/transmission/transmission-9999.ebuild b/net-p2p/transmission/transmission-9999.ebuild index 36907b345d40..bc3afb58d95e 100644 --- a/net-p2p/transmission/transmission-9999.ebuild +++ b/net-p2p/transmission/transmission-9999.ebuild @@ -41,7 +41,6 @@ BDEPEND="${ACCT_DEPEND} ) " COMMON_DEPEND=" - dev-libs/libb64:0= >=dev-libs/libevent-2.0.10:= !mbedtls? ( !libressl? ( dev-libs/openssl:0= ) @@ -84,14 +83,6 @@ RDEPEND="${COMMON_DEPEND} ${ACCT_DEPEND} " -src_unpack() { - if [[ ${PV} == 9999 ]]; then - git-r3_src_unpack - else - unpack ${P}.tar.gz - fi -} - src_configure() { local mycmakeargs=( -DCMAKE_INSTALL_DOCDIR=share/doc/${PF} @@ -107,7 +98,7 @@ src_configure() { -DUSE_SYSTEM_MINIUPNPC=ON -DUSE_SYSTEM_NATPMP=ON -DUSE_SYSTEM_UTP=OFF - -DUSE_SYSTEM_B64=ON + -DUSE_SYSTEM_B64=OFF -DWITH_CRYPTO=$(usex mbedtls polarssl openssl) -DWITH_INOTIFY=ON |