diff options
author | V3n3RiX <venerix@koprulu.sector> | 2025-01-17 06:41:55 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2025-01-17 06:41:55 +0000 |
commit | 6d730aa8064fbab6cc54447b6ed0e60b99c13256 (patch) | |
tree | 8c303cb48dc49dd218b79708ca71904653c5f831 /net-misc | |
parent | cb2f73d10494730ba590096a1f24ebc6d0d61a9f (diff) |
gentoo auto-resync : 17:01:2025 - 06:41:55
Diffstat (limited to 'net-misc')
-rw-r--r-- | net-misc/Manifest.gz | bin | 54165 -> 54165 bytes | |||
-rw-r--r-- | net-misc/clockspeed/Manifest | 3 | ||||
-rw-r--r-- | net-misc/clockspeed/clockspeed-0.62-r8.ebuild | 44 | ||||
-rw-r--r-- | net-misc/clockspeed/clockspeed-0.62-r9.ebuild | 4 | ||||
-rw-r--r-- | net-misc/electrum/Manifest | 2 | ||||
-rw-r--r-- | net-misc/electrum/electrum-4.5.8-r2.ebuild | 2 | ||||
-rw-r--r-- | net-misc/tigervnc-xorg-module/Manifest | 1 | ||||
-rw-r--r-- | net-misc/tigervnc-xorg-module/tigervnc-xorg-module-1.14.90.ebuild | 18 | ||||
-rw-r--r-- | net-misc/tigervnc/Manifest | 3 | ||||
-rw-r--r-- | net-misc/tigervnc/tigervnc-1.14.90.ebuild | 237 |
10 files changed, 264 insertions, 50 deletions
diff --git a/net-misc/Manifest.gz b/net-misc/Manifest.gz Binary files differindex 0a54ffba5549..b070cc69d004 100644 --- a/net-misc/Manifest.gz +++ b/net-misc/Manifest.gz diff --git a/net-misc/clockspeed/Manifest b/net-misc/clockspeed/Manifest index 3509334583ae..b093871a090a 100644 --- a/net-misc/clockspeed/Manifest +++ b/net-misc/clockspeed/Manifest @@ -3,6 +3,5 @@ AUX clockspeed-0.62-gentoo.patch 6605 BLAKE2B e8394fe60510c0505cd343fb38ac080ccd AUX ntpclockset 1100 BLAKE2B a84e6d6ec78e8d0e9be34640db9f18cb6a15dfe35c583b3f1af654ec6ba39ede15bab5d92ed333c3c9758db532c29503f031157b5e18ee6eb3abcd3104b7410e SHA512 4301f84956df473aea2e13f304fc320897e680619a6933f5fe3b6fa229fc4e34dd6874bb6fa417c462f6eae2513ad7cccc843108331ee0a45fb19c7f0563dc6c DIST clockspeed-0.62.tar.gz 25797 BLAKE2B 3e409b09dd426dbe33a1aa27e08313bafb5f682ce4fb42740b88841bad2a88b6095e3b0d178c3d2b0f338a99a8ede03e00e79ce09559dc136addfd1d1e1ceca3 SHA512 4dae1cfcfc5eb1398fd5a7642ff91987487d9828d314d4bd9f93cdadc60fe99889280a7f8e9192674ed19d246bd4a450ad32b1258e450216111c488074db7978 DIST leapsecs.dat.20081114 192 BLAKE2B 71113068e1fce9a11b9acba1527d90f6977302b6d8042fe83522fc2fea260a15b18226bc34cd84637b00d0e58a24c24d6f9ea537f1064b82655647ad4c58e0b6 SHA512 c85634ce30f40a03ae45983ee29483fe5859f291a0a69835dad1f50459327b212b8187a0c2c18c9a27fd74f2d69ed0d9a556349c8b2833b9a30107ed259aacc7 -EBUILD clockspeed-0.62-r8.ebuild 1172 BLAKE2B bfa0f55f24646ec2c907176353fb95dc8a2c153f9a3c184321aea112b8266e9b4e9ea5512d0a3d86a0f6726bc9a6c282deb2767ef92e2e72327c6c4c37649cf5 SHA512 2896db7d033118923b45898265533cd54969b930c492e92be3eecb0a359a11efe66a6d7e84a9491f43789c27ffbd73bc9e822e4e9696a5573b0f9547f8c51106 -EBUILD clockspeed-0.62-r9.ebuild 1217 BLAKE2B 1523d3c118c9f18a5cf80002c90bedc873344eb927e8728ac94e25255bf98cd36b0908f6a224d9ac0b026324cfa0d529de45f924a9b17508abab5c160fdd63d1 SHA512 73c9941a8f1d91f0f8d0c13041a0b96d6e337edfeee3ba8cdb8329c8a494048ae8f75b14380ef14b9f1b99328c7a21444209ceccecd8a7500f4b22da8fa3b222 +EBUILD clockspeed-0.62-r9.ebuild 1202 BLAKE2B 3dd4712de126156f6113b03fe8388ccb13d154ebca2119e9f4662a6dfe2057f25711ede78b99dde446abd1c6058599d429ec186ed6b5488f5a502b56968938a1 SHA512 23c616f97ca45e8e9911f6bd14801971baf3c6279f90321141f479f2abeaebb0043ac900fd2c66c53d318215b9bed0593ef646456cbf1d3e6f82510e6d7f198c MISC metadata.xml 417 BLAKE2B e179a1dcedba9631104d1f58eef7293f9a6e21574983849740f1fb0593f784a6138ccd1940382caa175431fad97aa32dcb18ff183bd54418dccd0da0e0fd860c SHA512 2ee16f79a9b12ac2ba6455c5d19c06ce7fc9ad67b4a51b231fec0e5d57b3b3f57d4e2105686822c98ced5efa2a7f28a3bf5fb9d39dfd0929950bc9cfb55a235b diff --git a/net-misc/clockspeed/clockspeed-0.62-r8.ebuild b/net-misc/clockspeed/clockspeed-0.62-r8.ebuild deleted file mode 100644 index 29bf5a916bca..000000000000 --- a/net-misc/clockspeed/clockspeed-0.62-r8.ebuild +++ /dev/null @@ -1,44 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit flag-o-matic toolchain-funcs - -DESCRIPTION="Simple Network Time Protocol (NTP) client" -HOMEPAGE="https://cr.yp.to/clockspeed.html" - -# this is the trailing part of the name for the latest leapseconds file. -LEAPSECONDS_DATE="20081114" - -SRC_URI="https://cr.yp.to/clockspeed/${P}.tar.gz - https://dev.gentoo.org/~pacho/maintainer-needed/leapsecs.dat."$LEAPSECONDS_DATE"" - -# http://cr.yp.to/distributors.html -LICENSE="public-domain" -SLOT="0" -KEYWORDS="amd64 ~mips x86" -IUSE="static selinux" -RESTRICT="mirror bindist test" - -DEPEND="sys-apps/groff" -RDEPEND="net-dns/djbdns" - -PATCHES=( "${FILESDIR}"/${P}-gentoo.patch ) - -src_configure() { - echo "$(tc-getCC) ${CFLAGS} ${ASFLAGS}" > conf-cc || die - use static && append-ldflags -static - echo "$(tc-getCC) ${LDFLAGS}" > conf-ld || die -} - -src_install() { - dobin clockspeed clockadd clockview sntpclock taiclock taiclockd - dosbin "${FILESDIR}"/ntpclockset - - doman *.1 - dodoc BLURB CHANGES INSTALL README THANKS TODO - - insinto /var/lib/clockspeed - newins "${DISTDIR}"/leapsecs.dat."$LEAPSECONDS_DATE" leapsecs.dat -} diff --git a/net-misc/clockspeed/clockspeed-0.62-r9.ebuild b/net-misc/clockspeed/clockspeed-0.62-r9.ebuild index a605c46179f5..ff6856a5012e 100644 --- a/net-misc/clockspeed/clockspeed-0.62-r9.ebuild +++ b/net-misc/clockspeed/clockspeed-0.62-r9.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -19,7 +19,7 @@ LICENSE="public-domain" SLOT="0" KEYWORDS="amd64 ~mips x86" IUSE="static selinux" -RESTRICT="mirror bindist test" +RESTRICT="test" DEPEND="sys-apps/groff" RDEPEND="net-dns/djbdns" diff --git a/net-misc/electrum/Manifest b/net-misc/electrum/Manifest index bb20c1165810..c446b8094ca5 100644 --- a/net-misc/electrum/Manifest +++ b/net-misc/electrum/Manifest @@ -2,5 +2,5 @@ DIST Electrum-4.5.8.tar.gz 13752500 BLAKE2B e8995e98c90dde3ae758df7e2a959d33c91d DIST Electrum-4.5.8.tar.gz.asc 2499 BLAKE2B a2cd9a2ab2b071bd5fea37bc9aa8a42bae68671d850d762753955bb43be562e25a4d3bdefcd3d7c1840e5e19e16237d7516a110d759733f73c0d66a67f9703f5 SHA512 f15a7b68fa2039f75d99729a34c207f31181afeb865db7cf5b27b68f9a7a4054e9d7ea46bda39fa3441cc6d1c798ae0c797dfdf1c178d2121ba2aff3b434d09a DIST electrum-4.5.8.gh.tar.gz 5896794 BLAKE2B a58a62adfdfe9d3f033033f9120e697cb2c2441076abfc7e914ad7185b9bbe63d81e2c305b80ab57cd0649274f9077f3c4ae59d6236a0bb23ad6838553186894 SHA512 0e7b15747fcce94ad60f068c013a5f6051402b049bb63493179768f6a4c6cb7b8d1b7b1750861afd89f7ed6a83313dee6d40022098ed2dbb9897fbf31e978350 EBUILD electrum-4.5.8-r1.ebuild 3028 BLAKE2B c453e14bfcdf554579e5f5b8f3605dc6fabf46baf75821d17ecde126e8d4612aebf6de337d0927a5636f4993193d4063f6718d090166cc6d00cf403f96cd27ad SHA512 5f39a21f767f4865f2c611bbdd086b57be500c072655355f2f87de8a9fb996d417cbd2af36d9d98314e1ba397457a7228b229fc0afe0fea73bd2b72856bff5aa -EBUILD electrum-4.5.8-r2.ebuild 3280 BLAKE2B 3c623baeafd5f7e0df9f1357f926fa624e55531b1380fe13ea4a773866b2e4042234a001066de29701bf0727e53553cbcab6a2f6bfb539c30e15aec82dd2dfd2 SHA512 9fae62ffef2c92af083749d1a5319e0dfa1bbdfdb52b84e71d3b7939acab31707633b43e420549bf404cfc12d2fae1529315455257cd2ef07e41232320f30e9f +EBUILD electrum-4.5.8-r2.ebuild 3280 BLAKE2B 81c48b122c0415c15874dc207142131f758dd6fa396f9e60821d5214bcc8a95bc27e6f57315302e15816e61c22eee7ba7e2b6cd410cc1c0f57430c911286e1ec SHA512 fba1988ea466d0312708a9081b9d14847ef256c169cebb213514c30a2a7c5fbe2cc7d71e84ad0b4865a76dfc8723fe9fc7174c4e91fcd91bb01cb5c761932081 MISC metadata.xml 505 BLAKE2B e1168203de116392acb4d5719a1cbb56385a8840bc87f21ac13b5150f550a493735124c58dc6132b0a483854696ba6eb825b991ecb1a843b7f158240c08ca4a4 SHA512 dc8a4cf8a8a411df4994a959fea44f971198c8099b1b24d6378d5a49c09e333a37f5f9ade36da17eb99fcd9bddcf63090f30045faef0e902d43cfac1548bd8c8 diff --git a/net-misc/electrum/electrum-4.5.8-r2.ebuild b/net-misc/electrum/electrum-4.5.8-r2.ebuild index e7eecb79c2c5..09ca3fcc853b 100644 --- a/net-misc/electrum/electrum-4.5.8-r2.ebuild +++ b/net-misc/electrum/electrum-4.5.8-r2.ebuild @@ -4,7 +4,7 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{10..12} ) +PYTHON_COMPAT=( python3_{10..13} ) PYTHON_REQ_USE="ncurses?" inherit distutils-r1 verify-sig xdg-utils diff --git a/net-misc/tigervnc-xorg-module/Manifest b/net-misc/tigervnc-xorg-module/Manifest index c380e72db3a9..ed990072c55b 100644 --- a/net-misc/tigervnc-xorg-module/Manifest +++ b/net-misc/tigervnc-xorg-module/Manifest @@ -1,2 +1,3 @@ EBUILD tigervnc-xorg-module-1.14.1.ebuild 447 BLAKE2B 71f6623a95854d1795f4379302c2278401ee55c41556db7b6e2de21708f3ec4f413e8e699a9f64910ca5255e7b6bff15a6279dace1c907a6f8838be7d8ede540 SHA512 4bff3f4d8af5143693fdfd46c992e08076ef691bd688ff9c03de56d10f66f6f2067ee08436921b691781e3855c6ac405a75d6d2c46e840ea2d33457fe16cb4a1 +EBUILD tigervnc-xorg-module-1.14.90.ebuild 452 BLAKE2B e18fafce802679f57fb85623e75fd7a048cf63719656422e98cf1fd36737d9a27dd1cd3c4aac7b4c2759e9f36041c195fa26505a59605801277849bc03f2311f SHA512 3155c3696b40d9374c5c8544d6498ce3f9987f693ed6bb250361cd7686be5ad6261d1a50e5069c6e18be6e24a677991a914abdd2f972afac4d87e5ed5bd10a1f MISC metadata.xml 331 BLAKE2B a429af641beadf65a9af48b70d47442530df38a6653daa75a67bae2f86dafe206ee745086336ef10af5e1d11ed6df08c017a99e2f434c0d8015549e78c8825f2 SHA512 dca884d6e2edf72771b5062195aa3d379ded3d0b9c74f9f7bd4c6f5ae432128e93d53c8b24bcfe76963b9705be325668edab703cd2f8724123b1c70fda59c786 diff --git a/net-misc/tigervnc-xorg-module/tigervnc-xorg-module-1.14.90.ebuild b/net-misc/tigervnc-xorg-module/tigervnc-xorg-module-1.14.90.ebuild new file mode 100644 index 000000000000..2e6cd6b87324 --- /dev/null +++ b/net-misc/tigervnc-xorg-module/tigervnc-xorg-module-1.14.90.ebuild @@ -0,0 +1,18 @@ +# Copyright 2022-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +XSERVER_VERSION="21.1.15" + +DESCRIPTION="Metapackage for the xorg module provided by tigervnc" +HOMEPAGE="https://tigervnc.org/" + +LICENSE="metapackage" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86" + +RDEPEND=" + ~net-misc/tigervnc-${PV}[server] + =x11-base/xorg-server-${XSERVER_VERSION%.*}* +" diff --git a/net-misc/tigervnc/Manifest b/net-misc/tigervnc/Manifest index 55f9125a321b..fe67c22b9fc5 100644 --- a/net-misc/tigervnc/Manifest +++ b/net-misc/tigervnc/Manifest @@ -5,7 +5,10 @@ AUX tigervnc-1.14.0.confd 530 BLAKE2B 1152c237744ee69ab317a8d979a8282abb259cb359 AUX tigervnc-1.14.0.initd 2996 BLAKE2B 675bc890a23805aceeeb1ee559d192c4a39ee7251d520cc5d98cfd2c2f075737fb3ed192903a08f850603847ce7769e3ae01b2c29dc4591cb3444edf835c6e0d SHA512 0e4043df37125e48d4314fc87400bf5e4eb9ca9848d2afead2f34b4f94422a03b939c3cf246a40c44b91e9cf0aec261f35a3c98e9861810db2f5a73f384a3c60 AUX tigervnc-1.14.1-pam.patch 959 BLAKE2B 384b065ac6f273ff302f8469c039e81f0bc7a98f684162aa8883af5332bc3450032e2a87f12d0f0c576df167817b3b7875b6675cc8af26de14f0c0147077b353 SHA512 d6ee39c53cab920a9f3432012714aaaa7f87db90763156bfcea26e394e381fa47eed8cbe62a956cb983059b28811932b16e79dc0445390a59288c27fc77d6caa DIST tigervnc-1.14.1.tar.gz 2097932 BLAKE2B 44593837154e019562f63cad54afaa41d1af7a5199988571002019dc60af193162a54b4c3f4e57a3cef2c824253bec5d83f029ba489a7f5459873255b1968cba SHA512 d7a6cff4a3a1e4c30e2dbd6e17ad2d76145e76f5c1a93abbaf32b1c488377a4eaf936d4e8a24a97863948138ba40031c862f9da1c1cd427da35ebffa8eaa4f31 +DIST tigervnc-1.14.90.tar.gz 2106976 BLAKE2B 02c9509580790a65d76c05067f132a8ac7a834e02f4d46910f235dd55deba995630e74a8dd2e81b7d77bc7ee2f5ccbfbb565aee8f3bf0d15d8c532d366819e69 SHA512 c842f1beb0610a8dc039136592cf4acd8d2ef42f7681c44f98c4ec57c35dd759cb98ad7e8462852a1c85ee8f7f63e3283909e30cc52de6c30b602235f4ffafd2 DIST xorg-server-21.1.14.tar.xz 5016608 BLAKE2B b64ff9bbcd1d1c632b588800acb1531d6295a52347294d323d684a7149a4f803fb38357a102d715525511c8bb8554daf2e71c28149ccb650b1c7c1990351f53e SHA512 833d36ca4a409363dc021a50702bc29dbb32d074de319d6910a158b6e4d8f51a20c3b0de0486d9613d4e526fe4fd60ca306b3c9fcce7d014ca8cc10185afd973 +DIST xorg-server-21.1.15.tar.xz 5009756 BLAKE2B a7d5df70a4af98b903a306850a169879cf083b2c811f6e75e1e916f85441214541f7c9fa0e0089c4bf08c67597166d97ea194c6a0a511948568120e579d1104f SHA512 677bbec81ecdd1d14e1d289a00c40249988985ec636e5473b30c4f63bad03a6cc5f9168cea94969e1550370eee8863595bc9c064c3d218a96123afc7567bf363 EBUILD tigervnc-1.14.1-r3.ebuild 5627 BLAKE2B db59a02eb600fee173539da9f7949e4e9cabb3dca487bb12f1983362888dc4a264f25c6acdcaac4427aeb3ce9e67431974ce08c4bdd292d3bfe1b5012c9249bd SHA512 7a9a27c13a46a9370cb18a494738f6e53524450d085bc00d84b7a789f97757ee1e301886a71baa294323afea810ffd69c81f565ea42db439759c04a4cec4228c +EBUILD tigervnc-1.14.90.ebuild 5632 BLAKE2B 5601cb2151bd100e543b49e6d0cfa4b404e6e84d3d42cea799a42c1b41a5e0fb167a6c2d4791c43155484189a577d0c3e2b31d8818d6757ea7ccb41392049bc1 SHA512 9d2523d4fe1255f281023a00be26a07f5da5ab82f4d4a7f053210dc376524294e4979306a29e927d8d50fb049f3c768c48d6e99b1370e31c6820ea7be34e98ca EBUILD tigervnc-9999.ebuild 5543 BLAKE2B 956f93a567fdcb35afcf62b46fa316b44a7da1ea997ca64e173af535f1d1e8b0f742577b66fb5bb87b2a609ae03dfcd8ec1379408c1eb495f7c9d13ab3064571 SHA512 818c1b9025f391170d2fbe565e2c372e59b722289ab518533836b9548e930f66b600fe06b9badf1e3bfaac9afd560222a673959e884ea52dcb6d44e9047dbf81 MISC metadata.xml 602 BLAKE2B cd3ae9a2fa5758627621230b5bc005b46c65d028764c5578d7684ae7aaa6403d301a59476e2aae6fa4a7a1f38cd0d8c23a7db3a784666aa2f375267444c48658 SHA512 16c1ccff038df995cbe4bace496636e41f1de9c28ad25c45d49f63485d3b7b71d9682866ff1b005acc7b401d66112c1709048298a77fb1c0baadc879fa236743 diff --git a/net-misc/tigervnc/tigervnc-1.14.90.ebuild b/net-misc/tigervnc/tigervnc-1.14.90.ebuild new file mode 100644 index 000000000000..ef7fe09fa151 --- /dev/null +++ b/net-misc/tigervnc/tigervnc-1.14.90.ebuild @@ -0,0 +1,237 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CMAKE_IN_SOURCE_BUILD=1 +inherit autotools cmake flag-o-matic java-pkg-opt-2 optfeature systemd xdg + +XSERVER_VERSION="21.1.15" +XSERVER_PATCH_VERSION="21" + +DESCRIPTION="Remote desktop viewer display system" +HOMEPAGE="https://tigervnc.org" +SRC_URI="server? ( ftp://ftp.freedesktop.org/pub/xorg/individual/xserver/xorg-server-${XSERVER_VERSION}.tar.xz )" + +if [[ ${PV} == *9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/TigerVNC/tigervnc/" +else + SRC_URI+=" https://github.com/TigerVNC/tigervnc/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86" +fi + +LICENSE="GPL-2" +SLOT="0" +IUSE="dri3 +drm gnutls java nls +opengl +server +viewer xinerama" +REQUIRED_USE=" + dri3? ( drm ) + java? ( viewer ) + opengl? ( server ) + || ( server viewer ) +" + +# TODO: sys-libs/libselinux +# <fltk-1.4: https://github.com/TigerVNC/tigervnc/pull/1887#issuecomment-2545662546 +COMMON_DEPEND=" + dev-libs/gmp:= + dev-libs/nettle:= + media-libs/libjpeg-turbo:= + sys-libs/zlib:= + x11-libs/libX11 + x11-libs/libXext + x11-libs/libXrandr + x11-libs/pixman + gnutls? ( net-libs/gnutls:= ) + nls? ( virtual/libiconv ) + server? ( + dev-libs/openssl:0= + sys-libs/pam + x11-libs/libXau + x11-libs/libxcvt + x11-libs/libXdamage + x11-libs/libXdmcp + x11-libs/libXfixes + x11-libs/libXfont2 + x11-libs/libXtst + x11-libs/pixman + x11-apps/xauth + x11-apps/xinit + x11-apps/xkbcomp + x11-apps/xsetroot + x11-misc/xkeyboard-config + dri3? ( + media-libs/mesa[opengl] + x11-libs/libxshmfence + ) + opengl? ( media-libs/libglvnd[X] ) + !net-misc/turbovnc[server] + ) + viewer? ( + media-video/ffmpeg:= + <x11-libs/fltk-1.4:1= + x11-libs/libXi + x11-libs/libXrender + !net-misc/turbovnc[viewer] + ) +" +RDEPEND="${COMMON_DEPEND} + java? ( >=virtual/jre-1.8:* ) + server? ( dev-lang/perl ) +" +DEPEND="${COMMON_DEPEND} + java? ( >=virtual/jdk-1.8:* ) + drm? ( x11-libs/libdrm ) + server? ( + media-fonts/font-util + x11-base/xorg-proto + x11-libs/libXi + x11-libs/libxkbfile + x11-libs/libXrender + x11-libs/xtrans + x11-misc/util-macros + opengl? ( media-libs/mesa ) + ) +" +BDEPEND=" + virtual/pkgconfig + nls? ( sys-devel/gettext ) +" + +PATCHES=( + # Restore Java viewer + "${FILESDIR}"/${PN}-1.11.0-install-java-viewer.patch + "${FILESDIR}"/${PN}-1.14.0-xsession-path.patch + "${FILESDIR}"/${PN}-1.12.80-disable-server-and-pam.patch + "${FILESDIR}"/${PN}-1.14.1-pam.patch +) + +src_unpack() { + if [[ ${PV} == *9999 ]]; then + git-r3_src_unpack + use server && unpack xorg-server-${XSERVER_VERSION}.tar.xz + else + default + fi +} + +src_prepare() { + if use server; then + cp -r "${WORKDIR}"/xorg-server-${XSERVER_VERSION}/. unix/xserver || die + fi + + cmake_src_prepare + + if use server; then + cd unix/xserver || die + eapply ../xserver${XSERVER_PATCH_VERSION}.patch + eautoreconf + sed -i '/strcmp.*-fakescreenfps/,/^ \}/d' os/utils.c || die + + if use drm; then + cd "${WORKDIR}" && \ + sed -i 's:\(drm_fourcc.h\):libdrm/\1:' $(grep drm_fourcc.h -rl .) || die + fi + fi +} + +src_configure() { + if use arm || use hppa; then + append-flags "-fPIC" + fi + + local mycmakeargs=( + -DENABLE_GNUTLS=$(usex gnutls) + -DENABLE_NLS=$(usex nls) + -DBUILD_JAVA=$(usex java) + -DBUILD_SERVER=$(usex server) + -DBUILD_VIEWER=$(usex viewer) + ) + + cmake_src_configure + + if use server; then + cd unix/xserver || die + econf \ + $(use_enable opengl glx) \ + $(use_enable drm libdrm) \ + --disable-config-hal \ + --disable-config-udev \ + --disable-devel-docs \ + --disable-dri \ + $(use_enable dri3) \ + --disable-glamor \ + --disable-kdrive \ + --disable-libunwind \ + --disable-linux-acpi \ + --disable-record \ + --disable-selective-werror \ + --disable-static \ + --disable-unit-tests \ + --disable-xephyr \ + $(use_enable xinerama) \ + --disable-xnest \ + --disable-xorg \ + --disable-xvfb \ + --disable-xwin \ + --enable-dri2 \ + --with-pic \ + --without-dtrace \ + --with-sha1=libcrypto + fi +} + +src_compile() { + cmake_src_compile + + if use server; then + # deps of the vnc module and the module itself + local d subdirs=( + fb xfixes Xext dbe $(usex opengl glx "") $(usev dri3) randr render + damageext miext Xi xkb composite dix mi os present hw/vnc + ) + for d in "${subdirs[@]}"; do + emake -C unix/xserver/"${d}" + done + fi +} + +src_install() { + cmake_src_install + + if use server; then + emake -C unix/xserver/hw/vnc DESTDIR="${D}" install + rm -v "${ED}"/usr/$(get_libdir)/xorg/modules/extensions/libvnc.la || die + + newconfd "${FILESDIR}"/${PN}-1.14.0.confd ${PN} + newinitd "${FILESDIR}"/${PN}-1.14.0.initd ${PN} + + systemd_douserunit unix/vncserver/vncserver@.service + + # install vncserver to /usr/bin too, see bug #836620 + dosym -r /usr/libexec/vncserver /usr/bin/vncserver + fi +} + +pkg_postinst() { + xdg_pkg_postinst + + use server && [[ -n ${REPLACING_VERSIONS} ]] && ver_test "${REPLACING_VERSIONS}" -lt 1.13.1-r3 && { + elog 'OpenRC users: please migrate to one service per display as documented here:' + elog 'https://wiki.gentoo.org/wiki/TigerVNC#Migrating_from_1.13.1-r2_or_lower:' + elog + } + + use server && { + elog 'PLEASE NOTE:' + elog ' The default config directory is now ${XDG_CONFIG_HOME}/tigervnc or' + elog ' ~/.config/tigervnc instead of ~/.vnc' + elog + } + + local OPTIONAL_DM="gnome-base/gdm x11-misc/lightdm x11-misc/sddm x11-misc/slim" + use server && \ + optfeature "keeping track of the xorg-server module" net-misc/tigervnc-xorg-module && \ + optfeature_header "Install any additional display manager package:" && \ + optfeature "proper session support" ${OPTIONAL_DM} +} |