diff options
Diffstat (limited to 'net-misc')
-rw-r--r-- | net-misc/Manifest.gz | bin | 54971 -> 54963 bytes | |||
-rw-r--r-- | net-misc/mikutter/Manifest | 5 | ||||
-rw-r--r-- | net-misc/mikutter/mikutter-5.0.5.ebuild | 94 | ||||
-rw-r--r-- | net-misc/mikutter/mikutter-9999.ebuild | 57 | ||||
-rw-r--r-- | net-misc/omnisync/Manifest | 2 | ||||
-rw-r--r-- | net-misc/omnisync/omnisync-1.0_p20200130-r1.ebuild (renamed from net-misc/omnisync/omnisync-1.0_p20200130.ebuild) | 15 | ||||
-rw-r--r-- | net-misc/packETH/Manifest | 7 | ||||
-rw-r--r-- | net-misc/packETH/metadata.xml | 1 | ||||
-rw-r--r-- | net-misc/packETH/packETH-2.1-r1.ebuild | 65 | ||||
-rw-r--r-- | net-misc/packETH/packETH-2.1.ebuild | 9 | ||||
-rw-r--r-- | net-misc/packETH/packETH-3.0.ebuild | 64 |
11 files changed, 267 insertions, 52 deletions
diff --git a/net-misc/Manifest.gz b/net-misc/Manifest.gz Binary files differindex 9ae04166911f..fa5c6cf69f37 100644 --- a/net-misc/Manifest.gz +++ b/net-misc/Manifest.gz diff --git a/net-misc/mikutter/Manifest b/net-misc/mikutter/Manifest index 67ce923b0fd7..037be6976e47 100644 --- a/net-misc/mikutter/Manifest +++ b/net-misc/mikutter/Manifest @@ -1,6 +1,9 @@ AUX mikutter 137 BLAKE2B f76eb22d6492f8737ce7de92068f551ece304a7d983a922555db1d6bd36ad895376c7812840afe579959a122c7619ef02c209cb7dc06da1011bc95b9b8d9fe74 SHA512 bbf70ab03b994f9593ea3854d1911f23d1a78d155e6aa755b2456f138ef6f7f2ca5ad7aea477beca487dac43a2e5472ca7f2e7d1503a57aaa93f41f06cafccba +DIST 1585-use-own-blowfish-impl.patch 41698 BLAKE2B c7e62ee5e9d362e7bc103468f4be9a9e49715de63905ca1b2022f01af1bc7f143b46f69f4f73b34bc4f6ba8589ccd138822876c35b7061f0458ee4206aaf6941 SHA512 cddab2449c16b64bc12d272b9302eba01d3e80dfa1d9ade9b125d46508bdc49eb1b4990b25f43c915f76d3e3d4b669a9d5a6b09fbfb6e845690b39d336f120a0 DIST mikutter-5.0.4.tar.gz 2378972 BLAKE2B 58101e91a8d8aeaf71e2bc58a421d0543f864c66c5ea313734ca242bce8115c70a036f6db109670cdb76cbd698d6d0569872c16eeb9eed15d1fd951aabccb35a SHA512 30e8b24af56e38fabeb454d4ea3f6a20b11e7836527f68e61f26f164fed0c2028b29db20c21397b2203fe23fceaef2e92a481d734692da3869dfcedcae2a58e0 +DIST mikutter-5.0.5.tar.gz 2379037 BLAKE2B 455109764e76b19298a0408c51a109f0c3b3b5b2f1b1ffcb59cee6d3fc449c754d8420ea37df2a005d36f3ab4447bbf7f6a7affe934852d07594cbe430cbffed SHA512 8b7d178400b0d7cb674297f9109832e1a19563d35e985636a42028df2414973819ef49b39f80e1a51cf1964634062656dc2071ba8d934083ce327e0a9f3adf28 DIST twitter_api_keys.rb 336 BLAKE2B 9b134fb9169f96c99582d1ceffe39cfa1675b6e747a8a46f6123cbff73b7e255e59aba3f6cf247decc9824244947d260658011b5aa72a915d50565e797e31703 SHA512 39efeed878f763101329c781fb501c5b5df848e4ae3c1f6bcdf3e6b151c5d647c68127f906eccf7861466d2ff88e7f1bdc27065205ed91a80e9cdc89fa5152e4 EBUILD mikutter-5.0.4.ebuild 2918 BLAKE2B f643500f05acac20802ac28f9680f591a7bbd5924038b543694760e4bca8b74bb16e98e410a88067f4ba273b086c61aef1859290e95396623bd2eebb8ba90bff SHA512 e0211b6ca81f1e5014d9c9ce9f15c7f52c4d418b6c6357a7d8a139b2cb62d61829271d536c69020315b61507c25bef6e76543e8d6a76728946a6b20110e8deec -EBUILD mikutter-9999.ebuild 2918 BLAKE2B f643500f05acac20802ac28f9680f591a7bbd5924038b543694760e4bca8b74bb16e98e410a88067f4ba273b086c61aef1859290e95396623bd2eebb8ba90bff SHA512 e0211b6ca81f1e5014d9c9ce9f15c7f52c4d418b6c6357a7d8a139b2cb62d61829271d536c69020315b61507c25bef6e76543e8d6a76728946a6b20110e8deec +EBUILD mikutter-5.0.5.ebuild 2154 BLAKE2B 23fece08bbd45f85d36f0d95c56d249625efbf8774c0d76509d0e3a33bff78a4ad22e66beb57d36051185741b019ae0e6ff2082ff2e2dbb22d9d3568406bebb1 SHA512 f5277167fdec218d3b28b96441ac414183cf585bc679588a5ec7ab2e5256ca5279358a12e8e1d89a44d40de828c9077aa65c444c689c432f40e14555a87a864d +EBUILD mikutter-9999.ebuild 2154 BLAKE2B 23fece08bbd45f85d36f0d95c56d249625efbf8774c0d76509d0e3a33bff78a4ad22e66beb57d36051185741b019ae0e6ff2082ff2e2dbb22d9d3568406bebb1 SHA512 f5277167fdec218d3b28b96441ac414183cf585bc679588a5ec7ab2e5256ca5279358a12e8e1d89a44d40de828c9077aa65c444c689c432f40e14555a87a864d MISC metadata.xml 245 BLAKE2B 679c2c8c096017f4eefa915d06fde493784875e685ee5078252f57a24df6fba8f9829261929f1fee146c10b30485fb81c2fa93614b8348548844658774193f61 SHA512 0d85fefe9769a0241748160f3e73644a81f68d578d392f1c443c2f56d5f05faef7458c8d1380804bbac9280626e95207de32f493be5910a9f7f678bc0fbf5cb9 diff --git a/net-misc/mikutter/mikutter-5.0.5.ebuild b/net-misc/mikutter/mikutter-5.0.5.ebuild new file mode 100644 index 000000000000..65013295fed7 --- /dev/null +++ b/net-misc/mikutter/mikutter-5.0.5.ebuild @@ -0,0 +1,94 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +USE_RUBY="ruby31 ruby32" + +inherit desktop ruby-ng + +PLUGIN_HASH="30071c3008e4616e723cf4e734fc79254019af09" +BLOWFISH_PATCH_NAME="1585-use-own-blowfish-impl.patch" +BLOWFISH_PATCH_URI="https://dev.mikutter.hachune.net/attachments/download/813/${BLOWFISH_PATCH_NAME}" + +if [ "${PV}" = "9999" ]; then + EGIT_REPO_URI="git://mikutter.hachune.net/mikutter.git" + inherit git-r3 + SRC_URI=" ${BLOWFISH_PATCH_URI}" + EGIT_CHECKOUT_DIR="${WORKDIR}/all" +else + SRC_URI="http://mikutter.hachune.net/bin/${P}.tar.gz + ${BLOWFISH_PATCH_URI}" + KEYWORDS="~amd64 ~riscv" +fi + +DESCRIPTION="Simple, powerful and moeful twitter client" +HOMEPAGE="https://mikutter.hachune.net/" + +# Apache license for the blowfish patch +# https://dev.mikutter.hachune.net/issues/1585 +LICENSE="Apache-2.0 MIT" +SLOT="0" +IUSE="+libnotify" + +PATCHES=( + "${DISTDIR}/${BLOWFISH_PATCH_NAME}" +) + +DEPEND="" +RDEPEND=" + libnotify? ( x11-libs/libnotify ) + media-sound/alsa-utils" + +ruby_add_rdepend "=dev-ruby/addressable-2.8* + >=dev-ruby/delayer-1.2.1 + !>=dev-ruby/delayer-2.0 + >=dev-ruby/delayer-deferred-2.2.0 + !>=dev-ruby/delayer-deferred-3.0 + >=dev-ruby/diva-2.0.1 + !>=dev-ruby/diva-3.0 + dev-ruby/httpclient + dev-ruby/json:2 + >=dev-ruby/memoist-0.16.2 + !>=dev-ruby/memoist-0.17 + dev-ruby/moneta + dev-ruby/nokogiri + >=dev-ruby/oauth-0.5.8 + >=dev-ruby/pluggaloid-1.7.0 + !>=dev-ruby/pluggaloid-2.0 + =dev-ruby/prime-0.1.2* + dev-ruby/rcairo + >=dev-ruby/ruby-gettext-3.4 + !>=dev-ruby/ruby-gettext-3.5 + dev-ruby/ruby-gtk3 + >=dev-ruby/typed-array-0.1.2 + !>=dev-ruby/typed-array-0.2 + virtual/ruby-ssl" + +all_ruby_unpack() { + if [ "${PV}" = "9999" ];then + git-3_src_unpack + else + default + fi +} + +all_ruby_install() { + local ruby + + for ruby in ${RUBY_TARGETS_PREFERENCE}; do + if use ruby_targets_${ruby}; then + break + fi + done + + exeinto /usr/share/mikutter + doexe mikutter.rb + insinto /usr/share/mikutter + doins -r core plugin + sed -e "s/ruby19/${ruby}/" "${FILESDIR}"/mikutter \ + | newbin - mikutter + dodoc README + make_desktop_entry mikutter Mikutter \ + /usr/share/mikutter/core/skin/data/icon.png +} diff --git a/net-misc/mikutter/mikutter-9999.ebuild b/net-misc/mikutter/mikutter-9999.ebuild index 0d3a72a482ca..65013295fed7 100644 --- a/net-misc/mikutter/mikutter-9999.ebuild +++ b/net-misc/mikutter/mikutter-9999.ebuild @@ -1,33 +1,40 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -USE_RUBY="ruby31" +USE_RUBY="ruby31 ruby32" inherit desktop ruby-ng PLUGIN_HASH="30071c3008e4616e723cf4e734fc79254019af09" +BLOWFISH_PATCH_NAME="1585-use-own-blowfish-impl.patch" +BLOWFISH_PATCH_URI="https://dev.mikutter.hachune.net/attachments/download/813/${BLOWFISH_PATCH_NAME}" if [ "${PV}" = "9999" ]; then - EGIT_REPO_URI="git://mikutter.hachune.net/mikutter.git - https://github.com/toshia/twitter_api_keys.git" + EGIT_REPO_URI="git://mikutter.hachune.net/mikutter.git" inherit git-r3 - SRC_URI="https://raw.githubusercontent.com/toshia/twitter_api_keys/${PLUGIN_HASH}/twitter_api_keys.rb" + SRC_URI=" ${BLOWFISH_PATCH_URI}" EGIT_CHECKOUT_DIR="${WORKDIR}/all" else SRC_URI="http://mikutter.hachune.net/bin/${P}.tar.gz - https://raw.githubusercontent.com/toshia/twitter_api_keys/${PLUGIN_HASH}/twitter_api_keys.rb" + ${BLOWFISH_PATCH_URI}" KEYWORDS="~amd64 ~riscv" fi DESCRIPTION="Simple, powerful and moeful twitter client" HOMEPAGE="https://mikutter.hachune.net/" -LICENSE="MIT" +# Apache license for the blowfish patch +# https://dev.mikutter.hachune.net/issues/1585 +LICENSE="Apache-2.0 MIT" SLOT="0" IUSE="+libnotify" +PATCHES=( + "${DISTDIR}/${BLOWFISH_PATCH_NAME}" +) + DEPEND="" RDEPEND=" libnotify? ( x11-libs/libnotify ) @@ -56,7 +63,6 @@ ruby_add_rdepend "=dev-ruby/addressable-2.8* dev-ruby/ruby-gtk3 >=dev-ruby/typed-array-0.1.2 !>=dev-ruby/typed-array-0.2 - dev-ruby/twitter-text virtual/ruby-ssl" all_ruby_unpack() { @@ -85,39 +91,4 @@ all_ruby_install() { dodoc README make_desktop_entry mikutter Mikutter \ /usr/share/mikutter/core/skin/data/icon.png - - insinto /usr/share/mikutter/plugin/twitter_api_keys - newins "${DISTDIR}"/twitter_api_keys.rb twitter_api_keys.rb.in -} - -pkg_postinst() { - echo - elog "To use Twitter, you need to setup your Consumer Key/Consumer Secret by running" - elog " emerge --config =${PF}" -} - -pkg_config() { - local PLUGIN_DIR="${EROOT}"/usr/share/mikutter/plugin - local CK CS - - echo - einfon "Please input your Consumer Key for Twitter: " - read -r CK - - echo - einfon "Please input your Consumer Secret for Twitter: " - read -r CS - - if [ -z "${CK}" -o -z "${CS}" ]; then - eerror "Consumer Key or Consumer Secret is missing." - return - fi - - sed -e "/consumer_key = /s!''!'${CK}'!" \ - -e "/consumer_secret = /s!''!'${CS}'!" \ - ${PLUGIN_DIR}/twitter_api_keys/twitter_api_keys.rb.in > \ - ${PLUGIN_DIR}/twitter_api_keys/twitter_api_keys.rb - - echo - einfo "Consuker Key/Consumer secret is set." } diff --git a/net-misc/omnisync/Manifest b/net-misc/omnisync/Manifest index ba663eb415b1..3a257addea89 100644 --- a/net-misc/omnisync/Manifest +++ b/net-misc/omnisync/Manifest @@ -1,5 +1,5 @@ AUX omnisync.confd 970 BLAKE2B a3d678032e7520d359fe078cf4599e98d75a5f3444bb5e1b08ce3cab246424f6d22c153dee45c66417682212adbe0b3c3c9730b41ca36dde5449ce48e8b1a202 SHA512 f3bd6b0eb866eb6650615fd4a838f07afcbb8b9322b12658a855fcca2ec72171b035aeec5a5bd38bb4f4ad14c32647ad14d994df7058d99dbb9d333a309ccfdb AUX omnisync.initd 618 BLAKE2B b532cb4f9c0b763ad97d1098e34e8d4a0b14195698f0f6f518de4e25744058cbe5c66ec53a00eb7bffa9191741d78a75ee3029683e13092a3f227d4955cbecec SHA512 f1c116743fde8578a9812553640da3f680911469d8e38b0af007d69aab99038bed651436f7d9dd5ed8dc939fdd3b94a75c93d15b4bda866460b63c7253788941 DIST omnisync-1.0_p20200130.tar.bz2 26360 BLAKE2B 4b999caf66f63f02241781234c88f8de54b727c9ce116afe77f6cc84e75146b0a748c8ecfe236009ad3704ead46d787cf3c06b556b2ffbecbed37c39322dcdf7 SHA512 b9f66755e990f1ffe2f2524f122581ff397f299f26b4e7d1301e649a1430b2ea814b39b4370621f1281c0b0fdab7aa026d1f827aeb7cfa4993286ad86484a4e8 -EBUILD omnisync-1.0_p20200130.ebuild 954 BLAKE2B afc6ea27a95c2683c265fae95020de122b70e0709a7c3774a134f6e0f812a48bbbb8beda6aec347eb5cf355af48c85bcf7e9184856ca15c16acd66d7a44282fc SHA512 db4ac74350dc37d658bade6fa49f65831d62b694287506ff54d6f2f3e7f14512a73dc3344996641d5063cc003b4e4f889c95f2f7b41319289f2e6cd3f35721e5 +EBUILD omnisync-1.0_p20200130-r1.ebuild 1118 BLAKE2B 556446113d11acf98c908b9ed2920d4351179ea5ced84317a96663d4ab0ec40d0054d3fd67240c76274072b019038ffbba81192b137fa402abe011e9fe4b2c67 SHA512 9e7f32e6f59728ec3b8fb75721df146ed89a9fd7be5d21527e4b149fe7100487e290324a914d5d2d852d7b4c96c51a1806a0e2a085daee71ae4ddb31a8740191 MISC metadata.xml 167 BLAKE2B 868e3b584722eaacf68273db062bb773d8c7e5d7ab2b81ca7e8397643bf7cc106c3a1033594401c99c54f667bb45d6b73f9048fc335580bbd44b4589ad26a832 SHA512 30caadd1496c3b9969136038239a1d8e01f236726b4022c2d7e19ca7575f25f735e556835e581afbf44fbd3e4104c40f2b5ef5fa70118d75c881fdf871962d0a diff --git a/net-misc/omnisync/omnisync-1.0_p20200130.ebuild b/net-misc/omnisync/omnisync-1.0_p20200130-r1.ebuild index c0a9f2f3dae6..149c6e96da64 100644 --- a/net-misc/omnisync/omnisync-1.0_p20200130.ebuild +++ b/net-misc/omnisync/omnisync-1.0_p20200130-r1.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 -inherit cmake vcs-snapshot +inherit cmake flag-o-matic vcs-snapshot SNAPSHOT="c55215330b1e8a61af6d34d57d3d8236c8cc7d5b" @@ -20,6 +20,15 @@ RDEPEND="net-libs/gnutls:= net-analyzer/net-snmp:=" DEPEND="${RDEPEND}" DOCS=( readme.txt Changes ) +src_configure() { + # -Werror=lto-type-mismatch + # https://bugs.gentoo.org/861683 + # appears to be terminally dead + filter-lto + + cmake_src_configure +} + src_install() { cmake_src_install newinitd "${FILESDIR}/${PN}.initd" ${PN} diff --git a/net-misc/packETH/Manifest b/net-misc/packETH/Manifest index fcb7e417d946..0b55526ed0ca 100644 --- a/net-misc/packETH/Manifest +++ b/net-misc/packETH/Manifest @@ -1,5 +1,8 @@ AUX packETH-1.8.1-libs-and-flags.patch 249 BLAKE2B 039c2c8329ad4ba7dde845c34c1de353a5e6e3ac82629675d8f183295946572eabc13da376775c4759e5b00d026efd4ee2b415f61c2da96acda67f44e857630f SHA512 2db5774cf4a3747a2f06cda925269929fdf6895557206c5bd02356de57d85b8868b850494a544089c3b1334f150e729070f652206ec0bd690cecd7adbc68c570 AUX packETH-2.1-fno-common.patch 1050 BLAKE2B 37b96926309c9ee1fa9654941f0f18b9edebea98397128e32550601f7e0a75068c5eca6ae7c5498c99601703519016967e5aeb6614b0237251097fad256ee9bd SHA512 1f51f5746e2fb9405b11e6b64e0e30ba426459d892f3f60e62c879f8ff0276167ab37f630e828b3648e04774aeca9e716962bc936ca5b6d497a6b87d0dad4fd9 DIST packETH-2.1.tar.gz 458750 BLAKE2B c08096e0781fc0174922d2eece31fa5e789ccfd7745eac0f16fbd515c6b5f72c7b9f7575fd215a3a1d0b69d6ae1f08427e5d145abbc83b9cbfeb6c6657d28b35 SHA512 55be4a2eb517c1d040664ea1a16d59dab20b06edbbd073cbf709deb4dfcec8d8eb12b88dfbd578f9bdb0ca614036ac4bbb00be6f865b774da2aa62ce8d3d767e -EBUILD packETH-2.1.ebuild 1056 BLAKE2B 27137a90eae39926a4fe2692047b440e26032fda032ac0f16e1c76a718ca9bdf97c8db38849c4ffcd462846125114d08c8683fa5db8022cb476d01c8beae84a2 SHA512 976cad3aaf4c1bdfc15ac71bb4e6e3e57658c121e547687d40f1cd073eb1484bbdd52b3a64e0948acff9e0f67a0e26409f0fae83506587fdaf86c9585c8de4b2 -MISC metadata.xml 414 BLAKE2B c19aa3a1681a474ec742f901b70a78e685df854bb73315149f4737da0390a6de601ff7333ad6be51fcae7c2ad95095b612817302c28c2a04e725e652b50827fb SHA512 39b41d7072d446e6f9853479fc2eb66c9f0f80a72915387fa48517f822db608c032649f860f8315e0bf30359549ee51b714ea265adfab6b50dba852c4bd6e610 +DIST packETH-3.0.tar.gz 288127 BLAKE2B 5ada3df3ebcfb29ea4b035678899d5271a2c9189513ddd43821f2e264fb31dd8923779c39bdf6066e3cd153c04e4409bdad8fde31f02b01e0dd9650117d6c45a SHA512 5b63483159d7b34c236b797fbdac3526d06fd5e0db34664163b19e643e942ad0919b4eae637047f69f017510e943188219345ff1c6fefa09dcb4023c09501f06 +EBUILD packETH-2.1-r1.ebuild 1195 BLAKE2B e9f002b1f450f5f404d9e4d3ef2d14aa290c13539f2ed3117bad3e6edcbb9556d09d60f4e008934550ed91e0f2cc180914e24bac7d2b51946244fe275722c713 SHA512 52d90c6e94cd8407f2e61d8c0fa6c1f21bcd0d4539d12e66129f63d3b884d5daa535a484d2ed5c510b6087c98b42d4a048231eb5792adb1792cce9f2560f8d4b +EBUILD packETH-2.1.ebuild 1192 BLAKE2B bbd58d03e843edf0d7a6081eb8705ce92a11e9d7539986e931f68bad55228bc60923895e209c02a6fbb4cbe2980dc609c860cbf0f732e121cc91a403a8fe7bfa SHA512 61cb3e233b3e4823cd1fc720aa9f2809371b20597b9e43d5309247c9f4cd764075cdb038aff30b48b5a670db5095be16deb21598427620084dccdcd64eea213b +EBUILD packETH-3.0.ebuild 1153 BLAKE2B 1b780fc58c17fd8609d0255f3a8f3d55ceb75200bd6d2001f3dcc852d1cd9a1fb34fcab6baac9c0dfa1c95fa3cebafc78ccbda14a9bfe2d316e55ca35a85373f SHA512 a829396db8439958143e41a8d041ab622d5347841ae7eadcdfd734a5a3b1e97fa563a313b9b3619d9b2b1b3b16577f4fe2c723d282a17ab8c27acfbe9404bf04 +MISC metadata.xml 466 BLAKE2B c1973b84cad8ea0b188cc966b53e48d434da53c450aeb7dff753357ead118dc52ca90852071d5e625b0049ae2eafed1ca1968072ad40de4fe157ca43936381d1 SHA512 11b3fc2b4f55a3ee6b6a29be12bf18c08e2ff773bf2a6e02e30d86adee9162d057f9d5f9eb5d9a58142fc50de83d3d47d5171d67f4f75b2988d36a8a47f9d6ba diff --git a/net-misc/packETH/metadata.xml b/net-misc/packETH/metadata.xml index fe1725b8caa9..dbaf797912a7 100644 --- a/net-misc/packETH/metadata.xml +++ b/net-misc/packETH/metadata.xml @@ -10,5 +10,6 @@ </use> <upstream> <remote-id type="sourceforge">packeth</remote-id> +<remote-id type="github">jemcek/packETH</remote-id> </upstream> </pkgmetadata> diff --git a/net-misc/packETH/packETH-2.1-r1.ebuild b/net-misc/packETH/packETH-2.1-r1.ebuild new file mode 100644 index 000000000000..91f156e28ba9 --- /dev/null +++ b/net-misc/packETH/packETH-2.1-r1.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools flag-o-matic toolchain-funcs + +DESCRIPTION="Packet generator tool for ethernet" +HOMEPAGE="http://packeth.sourceforge.net/" +SRC_URI="https://github.com/jemcek/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="cli +gtk" +REQUIRED_USE=" + || ( cli gtk ) +" + +RDEPEND=" + gtk? ( + dev-libs/glib:2 + x11-libs/gdk-pixbuf + x11-libs/gtk+:2 + ) +" +DEPEND=" + ${RDEPEND} + gtk? ( virtual/pkgconfig ) +" +PATCHES=( + "${FILESDIR}"/${PN}-1.8.1-libs-and-flags.patch + "${FILESDIR}"/${PN}-2.1-fno-common.patch +) +DOCS=( AUTHORS CHANGELOG README ) + +src_prepare() { + default + use gtk && eautoreconf +} + +src_configure() { + # -Werror=lto-type-mismatch + # https://bugs.gentoo.org/861695 + # https://github.com/jemcek/packETH/issues/42 + filter-lto + + use gtk && default +} + +src_compile() { + use gtk && default + use cli && emake \ + CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" -C cli +} + +src_install() { + use gtk && default + + if use cli; then + dobin cli/${PN}cli + local i + for i in NEWS README TODO; do newdoc cli/${i} ${i}.cli; done + fi +} diff --git a/net-misc/packETH/packETH-2.1.ebuild b/net-misc/packETH/packETH-2.1.ebuild index 1d4deb15c02e..1ef386ad25be 100644 --- a/net-misc/packETH/packETH-2.1.ebuild +++ b/net-misc/packETH/packETH-2.1.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -inherit autotools toolchain-funcs +inherit autotools flag-o-matic toolchain-funcs DESCRIPTION="Packet generator tool for ethernet" HOMEPAGE="http://packeth.sourceforge.net/" @@ -39,6 +39,11 @@ src_prepare() { } src_configure() { + # -Werror=lto-type-mismatch + # https://bugs.gentoo.org/861695 + # https://github.com/jemcek/packETH/issues/42 + filter-lto + use gtk && default } diff --git a/net-misc/packETH/packETH-3.0.ebuild b/net-misc/packETH/packETH-3.0.ebuild new file mode 100644 index 000000000000..5ac86e17d30c --- /dev/null +++ b/net-misc/packETH/packETH-3.0.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools flag-o-matic toolchain-funcs + +DESCRIPTION="Packet generator tool for ethernet" +HOMEPAGE="http://packeth.sourceforge.net/" +SRC_URI="https://github.com/jemcek/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="cli +gtk" +REQUIRED_USE=" + || ( cli gtk ) +" + +RDEPEND=" + gtk? ( + dev-libs/glib:2 + x11-libs/gdk-pixbuf + x11-libs/gtk+:3 + ) +" +DEPEND=" + ${RDEPEND} + gtk? ( virtual/pkgconfig ) +" +PATCHES=( + "${FILESDIR}"/${PN}-1.8.1-libs-and-flags.patch +) +DOCS=( AUTHORS CHANGELOG README ) + +src_prepare() { + default + use gtk && eautoreconf +} + +src_configure() { + # -Werror=lto-type-mismatch + # https://bugs.gentoo.org/861695 + # https://github.com/jemcek/packETH/issues/42 + filter-lto + + use gtk && default +} + +src_compile() { + use gtk && default + use cli && emake \ + CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" -C cli +} + +src_install() { + use gtk && default + + if use cli; then + dobin cli/${PN}cli + local i + for i in NEWS README TODO; do newdoc cli/${i} ${i}.cli; done + fi +} |