diff options
Diffstat (limited to 'kde-base/kdelibs')
-rw-r--r-- | kde-base/kdelibs/ChangeLog | 8 | ||||
-rw-r--r-- | kde-base/kdelibs/Manifest | 31 | ||||
-rw-r--r-- | kde-base/kdelibs/files/kdelibs-4.14.0-mimetypes.patch | 39 | ||||
-rw-r--r-- | kde-base/kdelibs/kdelibs-4.14.0.ebuild | 304 |
4 files changed, 367 insertions, 15 deletions
diff --git a/kde-base/kdelibs/ChangeLog b/kde-base/kdelibs/ChangeLog index 6ee4eced5f42..e0fe7cbf77bd 100644 --- a/kde-base/kdelibs/ChangeLog +++ b/kde-base/kdelibs/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for kde-base/kdelibs # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/kde-base/kdelibs/ChangeLog,v 1.1026 2014/08/09 11:09:01 johu Exp $ +# $Header: /var/cvsroot/gentoo-x86/kde-base/kdelibs/ChangeLog,v 1.1027 2014/08/20 16:02:44 johu Exp $ + +*kdelibs-4.14.0 (20 Aug 2014) + + 20 Aug 2014; Johannes Huber <johu@gentoo.org> +kdelibs-4.14.0.ebuild, + +files/kdelibs-4.14.0-mimetypes.patch: + Version bump KDE SC 4.14.0 09 Aug 2014; Johannes Huber <johu@gentoo.org> -kdelibs-4.12.5-r1.ebuild: Remove vulnerable version, bug #517864. diff --git a/kde-base/kdelibs/Manifest b/kde-base/kdelibs/Manifest index 8c280f0d7230..1f4d93fb3a0e 100644 --- a/kde-base/kdelibs/Manifest +++ b/kde-base/kdelibs/Manifest @@ -7,6 +7,7 @@ AUX kdelibs-4.10.0-udisks.patch 2012 SHA256 a856a103831162da416ea07ab9f18db5d5eb AUX kdelibs-4.13.1-kio-diskfree.patch 1845 SHA256 85e4d8fe871ea3aba8bcb50140540dfccd48dbe8db6e87e71447d95a1c4928f5 SHA512 0de4e30c379f76a0c8ce63b12bf8c9b509de7343ff6821278eb7189ab49d4ca11b9be0f090cc61cb1ca97872a86218914156de55d28c95709796d66fe450a701 WHIRLPOOL 29863a7d2ccc82958bf1b754456ef4dce993647def8e254d01e2662fb45778108ef336cf8ea87210e8a38254168f9a4f2b34a308c9dd542a29620ba05c10379e AUX kdelibs-4.13.2-CVE-2014-3494.patch 2695 SHA256 4a8382341b750b7170c50363145a360dd698882b6a9fe833cf6573bf292ab3ea SHA512 3c515d13f3673bc72d0d024166327343c0283c08bc68d214e4cf092bb14da436ca70467a84afefce6ed15a1d062253281e5b9b381e80ef7b781ef751fdb7ff25 WHIRLPOOL 707b0ac561a853a142f90284ba6797081c8e5660e1a1e1c0c4fd2f431dd9666d6e9d6a83d382c6f09bbc99891d7342c65fd81ed0077578750b2c433ba1b30dd7 AUX kdelibs-4.13.3-CVE-2014-5033.patch 2063 SHA256 456e20ded57839bcecc3d84fe2abe965de8891139ed41220468b0642f472259e SHA512 887ce9561f6b99c891623607e709e39a9286189a4b00dd1f7d1691c48b3edc5819c21a09d37439c5738be6674ffe0ad7dbee46fa7af7c259a0bc1e25662f9b41 WHIRLPOOL cd8ec1712bfc5474473df37731d2a85dca2b0ecf32e44012c9cf0680ea8a860785066a9410f6d16e14b5edea4f21f9bb80cd58dd7cb626fdc63cd4f1e6c6a21f +AUX kdelibs-4.14.0-mimetypes.patch 1187 SHA256 40cbbf358f11504abfa494508d8d83a4b47ee3cffe30d7076e03ad6f7e0e354c SHA512 fcdb9d5d03782cec401d95fe5ec9f4addda0d586de9ebbf6bad7bb8b402b248e3d24dc5a73f41456474fa2d65f33473d9d1d7d77557bec4da3805e0c31d42541 WHIRLPOOL b39ec794a32b114d4d268fc5849c65e2295921ae34cf608690a06ce5a6d403ddb61c539cc5bd4c17faa29fc2077162ef2a519e1710153a34a4268f3413f36cd6 AUX kdelibs-4.3.80-kdeui_util_kkeyserver_mac.patch 2210 SHA256 3602e079a4788feceff27f7f6bcaeff33828c259a81d0357f7df092000f98a6a SHA512 9207f2ab33e757d3d8ed3279350ea4326339129f232bb67bcce7b3806480fe551c9ba03a93d289df311e913055c343c925f957eb0b0b24bec6a7ef59017090a2 WHIRLPOOL f63b26fc0657f7e72856b493fc469af1cfaa68bb18b1dd4078f9dae44c37a3bdec9114c6a2c92c55b2cdde4d7cbc2ea072df1157b26e43f844dccf16ec8b1f8d AUX kdelibs-4.4.90-xslt.patch 553 SHA256 ffb7b7f44d3e840d1fe5e3b1d859db74f6bf534d44160f48e0f91993200ab55b SHA512 0016a0cb2f4a93cc2a9638a74c8aa42759830304abf97b608393099093a35205bcdfbd0a8a6d501f6628119de34d39c7a40cac9ed99bff7081c651f678533dea WHIRLPOOL 8fd53eb3a5bb083b12f1ff1e68f5ba9208a5badd0210944bf62297899a7416d61cbd29d24adc02024b70789bad289abafcfa24b02370e5ea5929b39022dc6f46 AUX kdelibs-4.6.2-armlinking.patch 1129 SHA256 9b076d1587bb02b85353f3a155199fd6dace7d1c76f189667787bca89192dee6 SHA512 d0208e095e751d4064e3f9b7d836135bce8c7f1cb7b4f1a20ef4d86d2fd5a08523c563c72ab86a871929000f26e4d50fa58fd81f7996edc57066984ce508ff1d WHIRLPOOL 81535f48c1ab14e37fd0dae7751317e72c53f4c55d4c28be67db8c6782af9a0a5e1ee3aba48680b8d367c9b6dda4d0e481392826b5eb597e1965bfbff70aaf38 @@ -16,25 +17,27 @@ AUX kdelibs-4.8.1-norpath.patch 788 SHA256 813acf8e0b23eeac94d6f504ca53a3a5cc2fb AUX kdelibs-4.9.3-werror.patch 1521 SHA256 0dbcfe622041387fddac550c37b30bfd5cf369fab24d08de566e1a64849e2e79 SHA512 79777b19e8ab56a855540c89d0f2d8a00fa40143efa5bded05be71b9ef45045f533128ccef691dd6667f3934c076968abf7fcf5aa311af56c63ba201efe4e3d5 WHIRLPOOL 428f477ccfcf0e4bec3b80d073d4f18d18e520afb24780a5682d146395bbb4067b3fbcb5aabc2f2304de435a8e316433fb32c9d1fc84380fcf17a4d428f521f7 DIST kdelibs-4.12.5.tar.xz 11551604 SHA256 9711c3a3d29387dc8b40425cc2957e9f1f2d747d83e9e0213bb8ff6638e68e09 SHA512 222a3a5ad7a728723862fbfcca6886316964ba1b100214132d27d0f8b1bb89b73824aa0c144cd4dbdf37a43d641d9c602befcd94e8095b7bc73bcba431c3b13f WHIRLPOOL f959b45cd7d8fb0ead29153eac830ba54448b53ff0c9959628513e92c90948b128b0413d3fbdf88698d998f3c2d8d819564013987e6d1034242dbd1de23b3518 DIST kdelibs-4.13.3.tar.xz 11557152 SHA256 d291b4bc159a3f686ad93ff3dfbe90a0a7e33600357e8390c84154ec050efc82 SHA512 9bc6f154cbf1b6e8b46ee255ce099d9ba9e530dd478d4a1bf2d24f8f9a063221da3a938f9520ad9149c6b82c4135dc72ab652c410bd82ad4b7100e16fff7a661 WHIRLPOOL c4f4872d27244d84112ced58bfc1fbde3e1d9e6b13d77c2209a968145c35d3151ba0526279a8f8bd8007d992e762b8902f9cacfb49789992501c7ccc4d497532 +DIST kdelibs-4.14.0.tar.xz 11589324 SHA256 286ecc05d53b1876fb68f42518c3d1cb5ff5320c612ac6381909fecb0a0c636a SHA512 26ab1335fd42ccb2f1c6c5c0c98f53eb31cc0949d1b70245a3cf08df3e33a987ae017af2a62d16f15280768cd6f5f230b862b84ad992e2f0f521e8194df6d91b WHIRLPOOL ea7b11e714d63f8ab1bd4ac6fff4eeb7226673bd60290bb0fbee797ebe3ecdff9f96a7f05d9e9548366019988ea90b20067362a603a173779b5b1c5e0495fbc1 EBUILD kdelibs-4.12.5-r2.ebuild 8687 SHA256 766c49e483380970b54134ef1a3cb49d8a84bdbe718a83f44adc23e0feff675f SHA512 e5d52fb6fb265b95f49808a08d6da06607f3905e5296344ddcad8e7ebee8c218bb7b271c583654369f31f4e4e817cddd4633cd3908ded0b2162df21fa08ea1fa WHIRLPOOL 37af099002f5bb8c66853114436d9f881677d30797897e098eb0a5416d47fc57283847741385d2c9d4e81946be424ae94bcb11300c7b710b46521a870edf3d15 EBUILD kdelibs-4.13.3-r1.ebuild 8598 SHA256 590fb2172d64dbb699295570e68c049196e26bf795241ec9b6516e92273022bf SHA512 649d73efdb82969af6a74c0ff7859830efa14c2a52125ac53eca82ac49652c62682afa164c1debf8c57f5c945e91e5066720f4443be8833c18e5ba4fcb44d481 WHIRLPOOL 09ee20c2861c2a35a7864a232554b66d8308a3ca587e5e63a7a965371574e76f0d80b3a139e68fcab4c060f8062c4a3818a87871b0c5d3b29802e3ea1500c3cc -MISC ChangeLog 58918 SHA256 cfab11e663f6f091904fd9f9aac386793c9b2817a5e811f023378cbbc7a9133e SHA512 667e9b08be87dc5c3b8316b2dd2960595a11bfb17df4fd259e4a6c7acb0ed83cab597dad5f0a54724ead5d8ad3241fb5b2792d446ec1e95b87b6dbca4be6ac05 WHIRLPOOL 6009613aa8031e4e2017099e6b9195a4e7988fc8b1195cd967a3614e67b3d47492cf78d9c80429f980f4d5753e0899e26d98471226acf14cecffe27d406c765c +EBUILD kdelibs-4.14.0.ebuild 8592 SHA256 73a0cb461791071df84ac24c9fc57f56612e63ad31bfc3822c15c7e3cc6e2ebf SHA512 060c4a8213bc5b8e879ed23d94b365050d55a803ac3d6cb59402113379c03c7eb7e6bf3e8fdac32ba72d9538fc99925049d122bf5894cdfc5c6e2a7a98b7afee WHIRLPOOL e5fe1220e11be03a0f54e2f6e06fda519b2885e8aba1649878e74c4019ea7ce0b99a28597578d6450499f6cbf383ac38b42b26cfa5ee4146b6b24a001b9c6b80 +MISC ChangeLog 59092 SHA256 2d08c9028d69258ce91538e1f0004108816b24fa2149fd7e1b033295b628d248 SHA512 d5fd0acb803b2326388c8f628fb177aceafb3164fd7a1b3b2d268e5a8cfb1328baf25cfb413211837e76fc33994bb7d2b5d8dedf3bf6bc8b272d5fc23486caed WHIRLPOOL 8b17ff25e912a4c2b587af573f0593e9d146e7984625204ef9958e44b1ab035535e7b98bc915dae8fab5b2591ee1c73054e8b64536c52b5b44ee4041fd661034 MISC ChangeLog-2009 110608 SHA256 845ba7764dc9cabd4753d146e82cc0347a0dbbe21a76a4aab453106e7d70ba1f SHA512 c643c3bd742f1c2c4322217b4d9f2992310e9bf86f585ef687cf68f54ed2a86d2950f7f3c3fc5021a2dd472b6db39e17415ca6cde478e4ef4f91317a116889b5 WHIRLPOOL 8dd58bffc294a811176bc3f9882a0fa8a12c02fcdd692bacfccfc9745646d5062d3980553388fcdc835bbbecefd0783f029d07a5999e7208ceece5a93fa36893 MISC metadata.xml 335 SHA256 ce5c36bcfe52e7bc12d4c7fb83f64b01fd52f5b329365cadd44bd9d59b1e3a3a SHA512 efc588b15e3096574a9ecf0d0edf99f979197cc0e33b2710fd7babb16f2dcaf3cff22197e9fb429ef97590a1288410f77cd987e5c03b3dac8c85236b9af751e6 WHIRLPOOL 6f8cba5c16126a196fb424944b9c12322579ccbe8165821e5cb11611f941a664dee1a31f52927a346da165c25cd829c1f0187e40d209e5ef7c0af7e1afac3347 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 -iQIcBAEBCAAGBQJT5gFRAAoJEGVpnaTzz9K9oncP/0n2Vv0BtN2A8zvaC4xs1efQ -VvEl7QW+DtJFFx2uAFXC7qqb/lzIukkuL4kVQ+1sjxYtEKWZfamYTV3a24h7tCbE -SH+u4mI5FRl1dxH0QIlFmb91ESWH5rYzUlbwe5o9ZTGyK6ErfC6++GnV+KmOzdqk -KeHa17BUxlll3U8HbvLuJxi3H6SbhpgywS5S9nSQBVwK0zcZEcTbqgm0HnhLxmLL -1nQWfiaV8athr7fjQgTdi631lZgiXW3uB9svdQIIVgDYnA2A9izn5N9g9AM0zGCk -bGa3LXdT9E442hzMpxc+Sd9G20SR1y1MdlYJXyzKnMYHwbX/NTicwMGlqFP7yzgo -RQhjtDtroTanSfy+6AW5MvSGUP8IA1fS8iRDYcXTFb6V33sdJeyZHGcEJ4uqOICw -DBvH82N17Hpk8xAN34r7KydA5rgaP7r1Cz/LEPnIVSxxT0rpO33X0RtXeRQd8EyL -bMGKTr1Ykz5dwTnNVMg/azwA/ILk+ibwXI1IYwpNqjqQYJ11jDdlk2a49ZbA37U3 -kiFfO4hVB4vg0DTB/Q17Rz0qGU7Utnnzv1nxXJjxS2ZuwylaGvNjKvWQqzSgpz6W -PcajBCNpbwmtNNkoedQNpD8oF02cGYpktiD0fTY0fDrQp2XeI4EX+7FSaKMvZLS2 -hHsiUJzuLBsS72INj7nU -=GsaO +iQIcBAEBCAAGBQJT9MbcAAoJEGVpnaTzz9K9zBUP/0HfgaZkjzbj2/ifOP/Qcv2v +ZbUkLaU9KWLCoqxMVVJouSslihBISHzN4yCCYVExstkA5sFl/Jil8g0LbNe4D01K +jNxqix9EPX4v82newJbQs+FeILebrYkXBWFRWVkhhl8d7xDj02Ujc0RMdkfMDk2l +Hvniwrr5fR52b9eid7JBJ4DpWUdCRObcsgDa3ODi0PQveJxriqdE/DZZ6lK6mZ4/ +Z9roKuIBb4NFR0d3cP3hCrihnLn2EBVJmcyAqhnVxb0KtxXoEHVlMK5/Ge1rG0i8 +9lYBYJQdaMTOYPyv7Yh9kthp9ww2kUKMV6c33J8nDNvc8ti71NRJuxGBAtzrFtyd +kC+RdmAB6sgoFCEA/QxnyaYWDx01pyMClh5Ze7LKITg3HU4lO6W6mpWTwJXZAg6E +ol56ernWodEGSXO0CfSlv73Pq3dzBD5IFv0d6cWYd2HC/mi1ys4BVB8Ki2+1KiL1 +K9q2mYmOcTnX64Mbq6J+5iCDWSrdWpEAnFLRDJ5QaJV02FP+AND7q2ubRMXwY8G+ +lZv2scqHSmTyfWUoyDxN7M3gDLqrG6lifQRE8Z1nDNqlqITEm6BfEu/Zq0W4opzR +tqiL7+DToxVrPI3/sXwF7wq8wuHMR+SBJbt2CooTQdiBH5QkZO6ih2x5uLhhMLHA +ml/y1SNu4lasV5McO8ew +=OgwE -----END PGP SIGNATURE----- diff --git a/kde-base/kdelibs/files/kdelibs-4.14.0-mimetypes.patch b/kde-base/kdelibs/files/kdelibs-4.14.0-mimetypes.patch new file mode 100644 index 000000000000..5e543902d7b5 --- /dev/null +++ b/kde-base/kdelibs/files/kdelibs-4.14.0-mimetypes.patch @@ -0,0 +1,39 @@ +Remove fake MIME types that cause warnings. + +The offending MIME types are commented out rather than +physically removed because doing so would cause the patch +to be too large. + +diff --git a/mimetypes/kde.xml b/mimetypes/kde.xml +index 76303db..23351c4 100644 +--- a/mimetypes/kde.xml ++++ b/mimetypes/kde.xml +@@ -1783,8 +1783,8 @@ Notes: + </magic> + <glob pattern="*.abc"/> + </mime-type> +- +- <!-- all/ fake mime types --> ++<!-- ++ all/ fake mime types + <mime-type type="all/all"> + <comment>all files and folders</comment> + <comment xml:lang="ar">كل الملفات و المجلدات</comment> +@@ -1902,7 +1902,7 @@ Notes: + <comment xml:lang="zh_TW">所有檔案</comment> + </mime-type> + +- <!-- uri/ fake mime types --> ++ uri/ fake mime types + <mime-type type="uri/mms"> + <comment>mms: URIs</comment> + <comment xml:lang="ar">mms: وصلات</comment> +@@ -2245,7 +2245,7 @@ Notes: + <comment xml:lang="zh_CN">rtspu: 地址</comment> + <comment xml:lang="zh_TW">rtspu: 網址</comment> + </mime-type> +- ++--> + <mime-type type="application/vnd.kde.fontspackage"> + <sub-class-of type="application/zip"/> + <comment>fonts package</comment> diff --git a/kde-base/kdelibs/kdelibs-4.14.0.ebuild b/kde-base/kdelibs/kdelibs-4.14.0.ebuild new file mode 100644 index 000000000000..307cadd255c4 --- /dev/null +++ b/kde-base/kdelibs/kdelibs-4.14.0.ebuild @@ -0,0 +1,304 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/kde-base/kdelibs/kdelibs-4.14.0.ebuild,v 1.1 2014/08/20 16:02:44 johu Exp $ + +EAPI=5 + +CPPUNIT_REQUIRED="optional" +DECLARATIVE_REQUIRED="always" +OPENGL_REQUIRED="optional" +KDE_HANDBOOK="optional" +inherit kde4-base fdo-mime multilib toolchain-funcs flag-o-matic + +EGIT_BRANCH="KDE/4.14" + +DESCRIPTION="KDE libraries needed by all KDE programs" + +KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux" +LICENSE="LGPL-2.1" +IUSE="3dnow acl alsa altivec +bzip2 debug doc fam jpeg2k kerberos lzma mmx +nepomuk nls openexr +policykit spell sse sse2 ssl +udev +udisks +upower +zeroconf" + +REQUIRED_USE=" + udisks? ( udev ) + upower? ( udev ) +" + +# needs the kate regression testsuite from svn +RESTRICT="test" + +COMMONDEPEND=" + app-crypt/qca:2 + >=app-misc/strigi-0.7.7 + app-text/docbook-xml-dtd:4.2 + app-text/docbook-xsl-stylesheets + >=dev-libs/libattica-0.4.2[qt4] + >=dev-libs/libdbusmenu-qt-0.3.2 + dev-libs/libpcre[unicode] + dev-libs/libxml2 + dev-libs/libxslt + media-libs/fontconfig + media-libs/freetype:2 + media-libs/giflib + media-libs/libpng:0= + media-libs/phonon[qt4] + sys-libs/zlib + virtual/jpeg:0 + >=x11-misc/shared-mime-info-0.60 + acl? ( virtual/acl ) + alsa? ( media-libs/alsa-lib ) + !aqua? ( + x11-libs/libICE + x11-libs/libSM + x11-libs/libX11 + x11-libs/libXau + x11-libs/libXcursor + x11-libs/libXdmcp + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libXft + x11-libs/libXpm + x11-libs/libXrender + x11-libs/libXScrnSaver + x11-libs/libXtst + !kernel_SunOS? ( + || ( + sys-libs/libutempter + >=sys-freebsd/freebsd-lib-9.0 + ) + ) + ) + bzip2? ( app-arch/bzip2 ) + fam? ( virtual/fam ) + jpeg2k? ( media-libs/jasper ) + kerberos? ( virtual/krb5 ) + nepomuk? ( + >=dev-libs/shared-desktop-ontologies-0.11.0 + >=dev-libs/soprano-2.9.0[dbus,raptor,redland] + ) + openexr? ( + media-libs/openexr:= + media-libs/ilmbase:= + ) + policykit? ( >=sys-auth/polkit-qt-0.103.0 ) + spell? ( app-text/enchant ) + ssl? ( dev-libs/openssl ) + udev? ( virtual/udev ) + zeroconf? ( net-dns/avahi[mdnsresponder-compat] ) +" +DEPEND="${COMMONDEPEND} + doc? ( app-doc/doxygen ) + nls? ( virtual/libintl ) +" +RDEPEND="${COMMONDEPEND} + !dev-qt/qtphonon + !<=kde-base/plasma-workspace-4.7.1:4 + !<=kde-base/kcontrol-4.4.50:4 + >=app-crypt/gnupg-2.0.11 + app-misc/ca-certificates + $(add_kdebase_dep kde-env) + sys-apps/dbus[X] + !aqua? ( + udisks? ( sys-fs/udisks:2 ) + x11-apps/iceauth + x11-apps/rgb + >=x11-misc/xdg-utils-1.0.2-r3 + upower? ( || ( >=sys-power/upower-0.9.23 sys-power/upower-pm-utils ) ) + ) + udev? ( app-misc/media-player-info ) +" +PDEPEND=" + $(add_kdebase_dep katepart) + || ( + $(add_kdebase_dep kfmclient) + x11-misc/xdg-utils + ) + handbook? ( + || ( + $(add_kdebase_dep khelpcenter) + kde-base/khelpcenter:5[compat] + ) + ) + nepomuk? ( + $(add_kdebase_dep nepomuk-core) + $(add_kdebase_dep nepomuk-widgets) + ) + policykit? ( + >=sys-auth/polkit-kde-agent-0.99 + ) +" + +PATCHES=( + "${FILESDIR}/dist/01_gentoo_set_xdg_menu_prefix-1.patch" + "${FILESDIR}/dist/02_gentoo_append_xdg_config_dirs-1.patch" + "${FILESDIR}/${PN}-4.14.0-mimetypes.patch" + "${FILESDIR}/${PN}-4.4.90-xslt.patch" + "${FILESDIR}/${PN}-4.6.2-armlinking.patch" + "${FILESDIR}/${PN}-4.6.3-no_suid_kdeinit.patch" + "${FILESDIR}/${PN}-4.8.1-norpath.patch" + "${FILESDIR}/${PN}-4.9.3-werror.patch" + "${FILESDIR}/${PN}-4.10.0-udisks.patch" +) + +pkg_pretend() { + if [[ ${MERGE_TYPE} != binary ]]; then + [[ $(gcc-major-version) -lt 4 ]] || \ + ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -le 3 ]] ) \ + && die "Sorry, but gcc-4.3 and earlier won't work for KDE SC 4.6 (see bug #354837)." + fi +} + +src_prepare() { + kde4-base_src_prepare + + # Rename applications.menu (needs 01_gentoo_set_xdg_menu_prefix-1.patch to work) + sed -e 's|FILES[[:space:]]applications.menu|FILES applications.menu RENAME kde-4-applications.menu|g' \ + -i kded/CMakeLists.txt || die "Sed on CMakeLists.txt for applications.menu failed." + + if use aqua; then + sed -i -e \ + "s:BUNDLE_INSTALL_DIR \"/Applications:BUNDLE_INSTALL_DIR \"${EPREFIX}/${APP_BUNDLE_DIR}:g" \ + cmake/modules/FindKDE4Internal.cmake || die "failed to sed FindKDE4Internal.cmake" + + #if [[ ${CHOST} == *-darwin8 ]]; then + sed -i -e \ + "s:set(_add_executable_param MACOSX_BUNDLE):remove(_add_executable_param MACOSX_BUNDLE):g" \ + cmake/modules/KDE4Macros.cmake || die "failed to sed KDE4Macros.cmake" + #fi + + # solid/solid/backends/iokit doesn't properly link, so disable it. + sed -e "s|\(APPLE\)|(FALSE)|g" -i solid/solid/CMakeLists.txt \ + || die "disabling solid/solid/backends/iokit failed" + sed -e "s|m_backend = .*Backends::IOKit.*;|m_backend = 0;|g" -i solid/solid/managerbase.cpp \ + || die "disabling solid/solid/backends/iokit failed" + + # There's no fdatasync on OSX and the check fails to detect that. + sed -e "/HAVE_FDATASYNC/ d" -i config.h.cmake \ + || die "disabling fdatasync failed" + + # Fix nameser include to nameser8_compat + sed -e "s|nameser8_compat.h|nameser_compat.h|g" -i kio/misc/kpac/discovery.cpp \ + || die "fixing nameser include failed" + append-flags -DHAVE_ARPA_NAMESER8_COMPAT_H=1 + + # Try to fix kkeyserver_mac + epatch "${FILESDIR}"/${PN}-4.3.80-kdeui_util_kkeyserver_mac.patch + fi +} + +src_configure() { + local mycmakeargs=( + -DWITH_HSPELL=OFF + -DWITH_ASPELL=OFF + -DWITH_DNSSD=OFF + -DKDE_DEFAULT_HOME=.kde4 + -DKAUTH_BACKEND=POLKITQT-1 + -DBUILD_libkactivities=OFF + $(cmake-utils_use_build handbook doc) + $(cmake-utils_use_has 3dnow X86_3DNOW) + $(cmake-utils_use_has altivec PPC_ALTIVEC) + $(cmake-utils_use_has mmx X86_MMX) + $(cmake-utils_use_has sse X86_SSE) + $(cmake-utils_use_has sse2 X86_SSE2) + $(cmake-utils_use_with acl) + $(cmake-utils_use_with alsa) + $(cmake-utils_use_with bzip2 BZip2) + $(cmake-utils_use_with fam) + $(cmake-utils_use_with jpeg2k Jasper) + $(cmake-utils_use_with kerberos GSSAPI) + $(cmake-utils_use_with lzma LibLZMA) + $(cmake-utils_use_with nepomuk Soprano) + $(cmake-utils_use_with nepomuk SharedDesktopOntologies) + $(cmake-utils_use_with nls Libintl) + $(cmake-utils_use_with openexr OpenEXR) + $(cmake-utils_use_with opengl OpenGL) + $(cmake-utils_use_with policykit PolkitQt-1) + $(cmake-utils_use_with spell ENCHANT) + $(cmake-utils_use_with ssl OpenSSL) + $(cmake-utils_use_with udev UDev) + $(cmake-utils_use_with udisks SOLID_UDISKS2) + $(cmake-utils_use_with zeroconf Avahi) + ) + kde4-base_src_configure +} + +src_compile() { + kde4-base_src_compile + + # The building of apidox is not managed anymore by the build system + if use doc; then + einfo "Building API documentation" + cd "${S}"/doc/api/ + ./doxygen.sh "${S}" || die "APIDOX generation failed" + fi +} + +src_install() { + kde4-base_src_install + + # use system certificates + rm -f "${ED}"/usr/share/apps/kssl/ca-bundle.crt || die + dosym /etc/ssl/certs/ca-certificates.crt /usr/share/apps/kssl/ca-bundle.crt + + if use doc; then + einfo "Installing API documentation. This could take a bit of time." + cd "${S}"/doc/api/ + docinto /HTML/en/kdelibs-apidox + dohtml -r ${P}-apidocs/* + fi + + if use aqua; then + einfo "fixing ${PN} plugins" + + local _PV=${PV:0:3}.0 + local _dir=${EPREFIX}/usr/$(get_libdir)/kde4/plugins/script + + install_name_tool -id \ + "${_dir}/libkrossqtsplugin.${_PV}.dylib" \ + "${D}/${_dir}/libkrossqtsplugin.${_PV}.dylib" \ + || die "failed fixing libkrossqtsplugin.${_PV}.dylib" + + einfo "fixing ${PN} cmake detection files" + #sed -i -e \ + # "s:if (HAVE_XKB):if (HAVE_XKB AND NOT APPLE):g" \ + echo -e "set(XKB_FOUND FALSE)\nset(HAVE_XKB FALSE)" > \ + "${ED}"/usr/share/apps/cmake/modules/FindXKB.cmake \ + || die "failed fixing FindXKB.cmake" + fi + + einfo Installing environment file. + # Since 44qt4 is sourced earlier QT_PLUGIN_PATH is defined. + echo "COLON_SEPARATED=QT_PLUGIN_PATH" > "${T}/77kde" + echo "QT_PLUGIN_PATH=${EPREFIX}/usr/$(get_libdir)/kde4/plugins" >> "${T}/77kde" + doenvd "${T}/77kde" +} + +pkg_postinst() { + fdo-mime_mime_database_update + + if use zeroconf; then + echo + elog "To make zeroconf support available in KDE make sure that the avahi daemon" + elog "is running." + echo + einfo "If you also want to use zeroconf for hostname resolution, emerge sys-auth/nss-mdns" + einfo "and enable multicast dns lookups by editing the 'hosts:' line in /etc/nsswitch.conf" + einfo "to include 'mdns', e.g.:" + einfo " hosts: files mdns dns" + echo + fi + + kde4-base_pkg_postinst +} + +pkg_prerm() { + # Remove ksycoca4 global database + rm -f "${EROOT}${PREFIX}"/share/kde4/services/ksycoca4 +} + +pkg_postrm() { + fdo-mime_mime_database_update + + kde4-base_pkg_postrm +} |