summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gentoo/Documentation/README17
-rw-r--r--gentoo/Documentation/TODO27
-rw-r--r--gentoo/Documentation/derived-lists/kdeartwork-3.5.13.19
-rw-r--r--gentoo/Documentation/derived-lists/kdebase-3.5.13.142
-rw-r--r--gentoo/Documentation/derived-lists/kdebase-3.5.13.242
-rw-r--r--gentoo/Documentation/derived-lists/kdegraphics-3.5.13.121
-rw-r--r--gentoo/Documentation/derived-lists/kdemultimedia-3.5.13.116
-rw-r--r--gentoo/Documentation/derived-lists/kdenetwork-3.5.13.118
-rw-r--r--gentoo/Documentation/derived-lists/kdepim-3.5.13.137
-rw-r--r--gentoo/Documentation/derived-lists/kdepim-3.5.13.237
-rw-r--r--gentoo/Documentation/derived-lists/kdetoys-3.5.13.110
-rw-r--r--gentoo/Documentation/derived-lists/kdetoys-3.5.13.210
-rw-r--r--gentoo/Documentation/derived-lists/kdeutils-3.5.13.118
-rw-r--r--gentoo/Documentation/derived-lists/kdeutils-3.5.13.218
-rw-r--r--gentoo/Documentation/derived-lists/tdeaddons-999911
-rw-r--r--gentoo/Documentation/derived-lists/tdeartwork-99999
-rw-r--r--gentoo/Documentation/derived-lists/tdebase-999943
-rw-r--r--gentoo/Documentation/derived-lists/tdegames-999934
-rw-r--r--gentoo/Documentation/derived-lists/tdegraphics-999921
-rw-r--r--gentoo/Documentation/derived-lists/tdemultimedia-999916
-rw-r--r--gentoo/Documentation/derived-lists/tdenetwork-999918
-rw-r--r--gentoo/Documentation/derived-lists/tdepim-999937
-rw-r--r--gentoo/Documentation/derived-lists/tdetoys-999910
-rw-r--r--gentoo/Documentation/derived-lists/tdeutils-999918
-rwxr-xr-xgentoo/Documentation/scripts/test_separate_compilation.sh85
-rwxr-xr-xgentoo/Documentation/scripts/update-keywords-lists32
-rw-r--r--gentoo/Documentation/scripts/usefull_commands15
-rwxr-xr-xgentoo/Documentation/scripts/write-ebuild.sh60
-rw-r--r--gentoo/Documentation/trinity.3.5.13.2.keywords90
-rw-r--r--gentoo/Documentation/trinity.live.keywords200
-rw-r--r--gentoo/Documentation/trinity.overlay10
-rw-r--r--gentoo/app-misc/hal-info/Manifest1
-rw-r--r--gentoo/app-misc/hal-info/hal-info-20091130.ebuild22
-rw-r--r--gentoo/app-misc/hal-info/metadata.xml8
-rw-r--r--gentoo/app-mobilephone/gsmlib/Manifest4
-rw-r--r--gentoo/app-mobilephone/gsmlib/files/gsmlib-1.11-gcc41.patch52
-rw-r--r--gentoo/app-mobilephone/gsmlib/files/gsmlib-1.11-gcc43.patch67
-rw-r--r--gentoo/app-mobilephone/gsmlib/files/gsmlib-1.11-include-gcc34-fix.patch52
-rw-r--r--gentoo/app-mobilephone/gsmlib/gsmlib-1.11_pre041028.ebuild31
-rw-r--r--gentoo/app-mobilephone/gsmlib/metadata.xml6
-rw-r--r--gentoo/app-mobilephone/smssend/Manifest1
-rw-r--r--gentoo/app-mobilephone/smssend/files/smssend-3.4-verizon.diff34
-rw-r--r--gentoo/app-mobilephone/smssend/metadata.xml5
-rw-r--r--gentoo/app-mobilephone/smssend/smssend-3.4-r2.ebuild33
-rw-r--r--gentoo/dev-libs/dbus-1-tqt/Manifest2
-rw-r--r--gentoo/dev-libs/dbus-1-tqt/dbus-1-tqt-3.5.13.1.ebuild24
-rw-r--r--gentoo/dev-libs/dbus-1-tqt/dbus-1-tqt-3.5.13.2.ebuild24
-rw-r--r--gentoo/dev-libs/dbus-1-tqt/dbus-1-tqt-9999.ebuild23
-rw-r--r--gentoo/dev-libs/dbus-1-tqt/metadata.xml8
-rw-r--r--gentoo/dev-libs/dbus-tqt/Manifest1
-rw-r--r--gentoo/dev-libs/dbus-tqt/dbus-tqt-3.5.13.1.ebuild24
-rw-r--r--gentoo/dev-libs/dbus-tqt/dbus-tqt-9999.ebuild24
-rw-r--r--gentoo/dev-libs/dbus-tqt/metadata.xml8
-rw-r--r--gentoo/dev-libs/skyutils/Manifest1
-rw-r--r--gentoo/dev-libs/skyutils/files/fix-Wformat-security-warnings.patch40
-rw-r--r--gentoo/dev-libs/skyutils/files/skyutils-2.8-libs.patch12
-rw-r--r--gentoo/dev-libs/skyutils/metadata.xml9
-rw-r--r--gentoo/dev-libs/skyutils/skyutils-2.8-r5.ebuild37
-rw-r--r--gentoo/dev-qt/qt-meta/metadata.xml8
-rw-r--r--gentoo/dev-qt/qt-meta/qt-meta-3.3.8d.ebuild25
-rw-r--r--gentoo/dev-qt/qt-meta/qt-meta-3.9999.ebuild25
-rw-r--r--gentoo/dev-qt/qt/Manifest17
-rw-r--r--gentoo/dev-qt/qt/files/trinity-3.5.13.1..3.5.13.2/qt3-2012-12-12_02_54_53-Ensure-that-a-valid-DPI-is-always-set-cbe0a27.patch26
-rw-r--r--gentoo/dev-qt/qt/files/trinity-3.5.13.1..3.5.13.2/qt3-2013-01-13_02_45_04-Verify-desktop-widget-screen-number-before-applying-size-changes-This-resolves-Bug-1378-b8ca17c.patch38
-rw-r--r--gentoo/dev-qt/qt/files/trinity-3.5.13.1..3.5.13.2/qt3-2013-02-20_21_52_12-Doublebuffer-QIconView-to-reduce-flicker-This-closes-Bug-1408-897cd5c.patch98
-rw-r--r--gentoo/dev-qt/qt/files/trinity-3.5.13.1..3.5.13.2/qt3-2013-03-02_12_16_10-Fix-textbox-trails-introduced-with-GIT-commit-82b71e49-This-resolves-Bug-1408-a78eb9c.patch19
-rw-r--r--gentoo/dev-qt/qt/files/trinity-3.5.13.1..3.5.13.2/qt3-2013-04-13_13_31_15-Properly-set-WM_CLASS-atom-even-if-Display-pointer-was-passed-to-TQApplication-This-relates-to-Bug-1443-045b2d9.patch46
-rw-r--r--gentoo/dev-qt/qt/files/trinity-3.5.13.1..3.5.13.2/qt3-2013-04-16_17_34_08-Fix-fatal-X11-errors-when-both-external-display-and-command-arguments-are-provided-to-QApplication-This-resolves-Bug-1456-e7d0f7d.patch42
-rw-r--r--gentoo/dev-qt/qt/files/trinity-3.5.13.1..3.5.13.2/qt3-2013-04-20_19_01_58-Fix-Qt-input-method-failure-This-resolves-Bug-1019-c421de2.patch45
-rw-r--r--gentoo/dev-qt/qt/files/trinity-3.5.13.1..3.5.13.2/qt3-2013-04-20_19_01_59-Fix-qmake-library-search-path-on-64-bit-systems-This-resolves-Bug-1016-e374dac.patch13
-rw-r--r--gentoo/dev-qt/qt/files/trinity-3.5.13.1..3.5.13.2/qt3-2013-04-20_19_01_59-Update-zh-tw-translations-c62cd50.patch253
-rw-r--r--gentoo/dev-qt/qt/files/trinity-3.5.13.1..3.5.13.2/qt3-2013-04-20_19_02_00-Add-0084-compositing-patch-from-RedHat-909c3cb.patch73
-rw-r--r--gentoo/dev-qt/qt/files/trinity-3.5.13.1..3.5.13.2/qt3-2013-04-20_19_02_00-Use-unixODBC-instead-of-obsolete-iODBC-This-closes-Bug-792-Thanks-to-L0ner-for-the-patch-3f779ee.patch59
-rw-r--r--gentoo/dev-qt/qt/files/trinity-3.5.13.1..3.5.13.2/qt3-2013-04-20_19_02_01-Make-basic-integer-QDataStream-reads-resistant-to-corruption-from-underlying-IO-device-failure-60621ef.patch133
-rw-r--r--gentoo/dev-qt/qt/files/trinity-3.5.13.1..3.5.13.2/qt3-2013-04-25_03_21_44-Fix-a-number-of-threading-problems-and-crashes-This-partially-resolves-Bug-1467-part-of-the-original-commit-b8e4f24.patch1052
-rw-r--r--gentoo/dev-qt/qt/files/trinity-3.5.13.1..3.5.13.2/qt3-2013-05-03_03_47_45-Fix-corrupted-titlebar-icons-in-subwindows-of-ARGB-applications-90f4a55.patch63
-rw-r--r--gentoo/dev-qt/qt/files/trinity-3.5.13.1..3.5.13.2/qt3-2013-05-04_17_28_30-Fix-ARGB-mode-stippled-focus-rectangle-showing-underlying-window-contents-Fix-TQColor-not-processing-alpha-channel-in-ARGB-mode-d2240de.patch62
-rw-r--r--gentoo/dev-qt/qt/files/trinity-3.5.13.1..3.5.13.2/qt3-2013-05-08_01_43_38-Fix-spelling-mistakes-169c39a.patch52
-rw-r--r--gentoo/dev-qt/qt/metadata.xml8
-rw-r--r--gentoo/dev-qt/qt/qt-3.3.8d-r1.ebuild341
-rw-r--r--gentoo/dev-qt/qt/qt-3.3.8d.ebuild341
-rw-r--r--gentoo/dev-qt/qt/qt-3.9999.ebuild396
-rw-r--r--gentoo/dev-qt/qt4-tqt-engine/Manifest1
-rw-r--r--gentoo/dev-qt/qt4-tqt-engine/files/qt4-tqt-theme-engine-suppress-annoying-warning-about-qt-version.pacth17
-rw-r--r--gentoo/dev-qt/qt4-tqt-engine/metadata.xml8
-rw-r--r--gentoo/dev-qt/qt4-tqt-engine/qt4-tqt-engine-9999.ebuild67
-rw-r--r--gentoo/dev-qt/tqt/metadata.xml8
-rw-r--r--gentoo/dev-qt/tqt/tqt-3.9999.ebuild306
-rw-r--r--gentoo/dev-qt/tqtinterface/Manifest2
-rw-r--r--gentoo/dev-qt/tqtinterface/metadata.xml12
-rw-r--r--gentoo/dev-qt/tqtinterface/tqtinterface-3.5.13.1.ebuild30
-rw-r--r--gentoo/dev-qt/tqtinterface/tqtinterface-3.5.13.2.ebuild30
-rw-r--r--gentoo/dev-qt/tqtinterface/tqtinterface-9999.ebuild36
-rw-r--r--gentoo/eclass/git-2.eclass608
-rw-r--r--gentoo/eclass/kde-functions.eclass706
-rw-r--r--gentoo/eclass/kde.eclass608
-rw-r--r--gentoo/eclass/qt3.eclass97
-rw-r--r--gentoo/eclass/trinity-base.eclass439
-rw-r--r--gentoo/eclass/trinity-functions.eclass205
-rw-r--r--gentoo/eclass/trinity-meta.eclass262
-rw-r--r--gentoo/eclass/trinity-shared-files/kdetoys-3.5.13.1/patches/add-initial-cmake-support.patch.bz2bin0 -> 5469 bytes
-rw-r--r--gentoo/eclass/trinity-shared-files/kdeutils-3.5.13.1/patches/add-initial-cmake-support-1.patch.bz2bin0 -> 12405 bytes
-rw-r--r--gentoo/licenses/AFL-2.046
-rw-r--r--gentoo/media-libs/lcms/Manifest3
-rw-r--r--gentoo/media-libs/lcms/files/lcms-1.19-disable_static_modules.patch20
-rw-r--r--gentoo/media-libs/lcms/files/lcms-1.19-implicit.patch49
-rw-r--r--gentoo/media-libs/lcms/lcms-1.19-r1.ebuild103
-rw-r--r--gentoo/media-libs/lcms/metadata.xml16
-rw-r--r--gentoo/media-libs/libart_lgpl/Manifest4
-rw-r--r--gentoo/media-libs/libart_lgpl/files/0001-gentoo-do-not-build-tests-if-not-required.patch22
-rw-r--r--gentoo/media-libs/libart_lgpl/files/0002-TDE-fix-a-number-of-problems.patch402
-rw-r--r--gentoo/media-libs/libart_lgpl/files/0003-TDE-Clean-up-debug-spew.patch120
-rw-r--r--gentoo/media-libs/libart_lgpl/libart_lgpl-2.3.21-r2.ebuild49
-rw-r--r--gentoo/media-libs/libart_lgpl/metadata.xml16
-rw-r--r--gentoo/metadata/layout.conf2
-rw-r--r--gentoo/net-irc/konversation/Manifest2
-rw-r--r--gentoo/net-irc/konversation/files/konversation-3.5.13.1-initial-cmake.patch1413
-rw-r--r--gentoo/net-irc/konversation/konversation-1.1.13-r1.ebuild36
-rw-r--r--gentoo/net-irc/konversation/konversation-1.1.9999.ebuild33
-rw-r--r--gentoo/net-irc/konversation/metadata.xml8
-rw-r--r--gentoo/profiles/categories2
-rw-r--r--gentoo/profiles/package.mask12
-rw-r--r--gentoo/profiles/package.unmask2
-rw-r--r--gentoo/profiles/package.use.force2
-rw-r--r--gentoo/profiles/package.use.mask12
-rw-r--r--gentoo/profiles/repo_name1
-rw-r--r--gentoo/profiles/use.desc6
-rw-r--r--gentoo/profiles/use.local.desc3
-rw-r--r--gentoo/sys-apps/hal/Manifest7
-rw-r--r--gentoo/sys-apps/hal/Reasons16
-rw-r--r--gentoo/sys-apps/hal/files/0.5.14-hald.conf6
-rw-r--r--gentoo/sys-apps/hal/files/0.5.14-hald.rc.139
-rw-r--r--gentoo/sys-apps/hal/files/hal-0.5.14-fix-glib-includes-in-addons.patch143
-rw-r--r--gentoo/sys-apps/hal/files/hal-0.5.14-fix-gtk-doc-automake.patch11
-rw-r--r--gentoo/sys-apps/hal/files/hal-0.5.14-gentoo-patches-5.tar.bz2bin0 -> 6494 bytes
-rw-r--r--gentoo/sys-apps/hal/files/hal-unmount.dev17
-rw-r--r--gentoo/sys-apps/hal/hal-0.5.14-r4.ebuild307
-rw-r--r--gentoo/sys-apps/hal/metadata.xml36
-rw-r--r--gentoo/trinity-apps/atlantik/atlantik-9999.ebuild13
-rw-r--r--gentoo/trinity-apps/atlantik/metadata.xml8
-rw-r--r--gentoo/trinity-apps/atlantikdesigner/atlantikdesigner-9999.ebuild12
-rw-r--r--gentoo/trinity-apps/atlantikdesigner/metadata.xml8
-rw-r--r--gentoo/trinity-apps/filelight/filelight-9999.ebuild21
-rw-r--r--gentoo/trinity-apps/filelight/metadata.xml8
-rw-r--r--gentoo/trinity-apps/kasteroids/kasteroids-9999.ebuild22
-rw-r--r--gentoo/trinity-apps/kasteroids/metadata.xml8
-rw-r--r--gentoo/trinity-apps/katomic/katomic-9999.ebuild13
-rw-r--r--gentoo/trinity-apps/katomic/metadata.xml8
-rw-r--r--gentoo/trinity-apps/kbackgammon/kbackgammon-9999.ebuild13
-rw-r--r--gentoo/trinity-apps/kbackgammon/metadata.xml8
-rw-r--r--gentoo/trinity-apps/kbattleship/kbattleship-9999.ebuild13
-rw-r--r--gentoo/trinity-apps/kbattleship/metadata.xml8
-rw-r--r--gentoo/trinity-apps/kblackbox/kblackbox-9999.ebuild13
-rw-r--r--gentoo/trinity-apps/kblackbox/metadata.xml8
-rw-r--r--gentoo/trinity-apps/kbounce/kbounce-9999.ebuild22
-rw-r--r--gentoo/trinity-apps/kbounce/metadata.xml8
-rw-r--r--gentoo/trinity-apps/kenolaba/kenolaba-9999.ebuild13
-rw-r--r--gentoo/trinity-apps/kenolaba/metadata.xml8
-rw-r--r--gentoo/trinity-apps/kfouleggs/kfouleggs-9999.ebuild13
-rw-r--r--gentoo/trinity-apps/kfouleggs/metadata.xml8
-rw-r--r--gentoo/trinity-apps/kgoldrunner/kgoldrunner-9999.ebuild13
-rw-r--r--gentoo/trinity-apps/kgoldrunner/metadata.xml8
-rw-r--r--gentoo/trinity-apps/kjumpingcube/kjumpingcube-9999.ebuild13
-rw-r--r--gentoo/trinity-apps/kjumpingcube/metadata.xml8
-rw-r--r--gentoo/trinity-apps/klickety/klickety-9999.ebuild13
-rw-r--r--gentoo/trinity-apps/klickety/metadata.xml8
-rw-r--r--gentoo/trinity-apps/klines/klines-9999.ebuild13
-rw-r--r--gentoo/trinity-apps/klines/metadata.xml8
-rw-r--r--gentoo/trinity-apps/kmahjongg/kmahjongg-9999.ebuild13
-rw-r--r--gentoo/trinity-apps/kmahjongg/metadata.xml8
-rw-r--r--gentoo/trinity-apps/kmines/kmines-9999.ebuild13
-rw-r--r--gentoo/trinity-apps/kmines/metadata.xml8
-rw-r--r--gentoo/trinity-apps/knetwalk/knetwalk-9999.ebuild13
-rw-r--r--gentoo/trinity-apps/knetwalk/metadata.xml8
-rw-r--r--gentoo/trinity-apps/kolf/kolf-9999.ebuild22
-rw-r--r--gentoo/trinity-apps/kolf/metadata.xml8
-rw-r--r--gentoo/trinity-apps/konquest/konquest-9999.ebuild13
-rw-r--r--gentoo/trinity-apps/konquest/metadata.xml8
-rw-r--r--gentoo/trinity-apps/kpat/kpat-9999.ebuild13
-rw-r--r--gentoo/trinity-apps/kpat/metadata.xml8
-rw-r--r--gentoo/trinity-apps/kpoker/kpoker-9999.ebuild13
-rw-r--r--gentoo/trinity-apps/kpoker/metadata.xml8
-rw-r--r--gentoo/trinity-apps/kreversi/kreversi-9999.ebuild13
-rw-r--r--gentoo/trinity-apps/kreversi/metadata.xml8
-rw-r--r--gentoo/trinity-apps/ksame/ksame-9999.ebuild13
-rw-r--r--gentoo/trinity-apps/ksame/metadata.xml8
-rw-r--r--gentoo/trinity-apps/kshisen/kshisen-9999.ebuild13
-rw-r--r--gentoo/trinity-apps/kshisen/metadata.xml8
-rw-r--r--gentoo/trinity-apps/ksirtet/ksirtet-9999.ebuild13
-rw-r--r--gentoo/trinity-apps/ksirtet/metadata.xml8
-rw-r--r--gentoo/trinity-apps/ksmiletris/ksmiletris-9999.ebuild13
-rw-r--r--gentoo/trinity-apps/ksmiletris/metadata.xml8
-rw-r--r--gentoo/trinity-apps/ksnake/ksnake-9999.ebuild13
-rw-r--r--gentoo/trinity-apps/ksnake/metadata.xml8
-rw-r--r--gentoo/trinity-apps/ksokoban/ksokoban-9999.ebuild13
-rw-r--r--gentoo/trinity-apps/ksokoban/metadata.xml8
-rw-r--r--gentoo/trinity-apps/kspaceduel/kspaceduel-9999.ebuild13
-rw-r--r--gentoo/trinity-apps/kspaceduel/metadata.xml8
-rw-r--r--gentoo/trinity-apps/ktron/ktron-9999.ebuild13
-rw-r--r--gentoo/trinity-apps/ktron/metadata.xml8
-rw-r--r--gentoo/trinity-apps/ktuberling/ktuberling-9999.ebuild13
-rw-r--r--gentoo/trinity-apps/ktuberling/metadata.xml8
-rw-r--r--gentoo/trinity-apps/lskat/lskat-9999.ebuild13
-rw-r--r--gentoo/trinity-apps/lskat/metadata.xml8
-rw-r--r--gentoo/trinity-apps/twin4/metadata.xml8
-rw-r--r--gentoo/trinity-apps/twin4/twin4-9999.ebuild13
-rw-r--r--gentoo/trinity-base/akregator/Manifest2
-rw-r--r--gentoo/trinity-base/akregator/akregator-3.5.13.1.ebuild20
-rw-r--r--gentoo/trinity-base/akregator/akregator-3.5.13.2.ebuild20
-rw-r--r--gentoo/trinity-base/akregator/akregator-9999.ebuild20
-rw-r--r--gentoo/trinity-base/akregator/metadata.xml8
-rw-r--r--gentoo/trinity-base/amor/Manifest2
-rw-r--r--gentoo/trinity-base/amor/amor-3.5.13.1.ebuild11
-rw-r--r--gentoo/trinity-base/amor/amor-3.5.13.2.ebuild11
-rw-r--r--gentoo/trinity-base/amor/amor-9999.ebuild11
l---------gentoo/trinity-base/amor/files/shared1
-rw-r--r--gentoo/trinity-base/amor/metadata.xml8
-rw-r--r--gentoo/trinity-base/ark/Manifest2
-rw-r--r--gentoo/trinity-base/ark/ark-3.5.13.1.ebuild16
-rw-r--r--gentoo/trinity-base/ark/ark-3.5.13.2.ebuild16
-rw-r--r--gentoo/trinity-base/ark/ark-9999.ebuild16
l---------gentoo/trinity-base/ark/files/shared1
-rw-r--r--gentoo/trinity-base/ark/metadata.xml8
-rw-r--r--gentoo/trinity-base/arts/Manifest2
-rw-r--r--gentoo/trinity-base/arts/arts-3.5.13.1.ebuild60
-rw-r--r--gentoo/trinity-base/arts/arts-3.5.13.2.ebuild60
-rw-r--r--gentoo/trinity-base/arts/arts-9999.ebuild60
-rw-r--r--gentoo/trinity-base/arts/metadata.xml12
-rw-r--r--gentoo/trinity-base/certmanager/Manifest1
-rw-r--r--gentoo/trinity-base/certmanager/certmanager-3.5.13.2.ebuild26
-rw-r--r--gentoo/trinity-base/certmanager/certmanager-9999.ebuild26
-rw-r--r--gentoo/trinity-base/certmanager/metadata.xml8
-rw-r--r--gentoo/trinity-base/dcoprss/Manifest1
-rw-r--r--gentoo/trinity-base/dcoprss/dcoprss-3.5.13.1.ebuild16
-rw-r--r--gentoo/trinity-base/dcoprss/dcoprss-9999.ebuild16
-rw-r--r--gentoo/trinity-base/dcoprss/metadata.xml8
-rw-r--r--gentoo/trinity-base/drkonqi/Manifest2
-rw-r--r--gentoo/trinity-base/drkonqi/drkonqi-3.5.13.1.ebuild13
-rw-r--r--gentoo/trinity-base/drkonqi/drkonqi-3.5.13.2.ebuild13
-rw-r--r--gentoo/trinity-base/drkonqi/drkonqi-9999.ebuild13
l---------gentoo/trinity-base/drkonqi/files/shared1
-rw-r--r--gentoo/trinity-base/drkonqi/metadata.xml8
-rw-r--r--gentoo/trinity-base/eyesapplet/Manifest2
-rw-r--r--gentoo/trinity-base/eyesapplet/eyesapplet-3.5.13.1.ebuild11
-rw-r--r--gentoo/trinity-base/eyesapplet/eyesapplet-3.5.13.2.ebuild11
-rw-r--r--gentoo/trinity-base/eyesapplet/eyesapplet-9999.ebuild11
l---------gentoo/trinity-base/eyesapplet/files/shared1
-rw-r--r--gentoo/trinity-base/eyesapplet/metadata.xml8
-rw-r--r--gentoo/trinity-base/fifteenapplet/Manifest2
-rw-r--r--gentoo/trinity-base/fifteenapplet/fifteenapplet-3.5.13.1.ebuild11
-rw-r--r--gentoo/trinity-base/fifteenapplet/fifteenapplet-3.5.13.2.ebuild11
-rw-r--r--gentoo/trinity-base/fifteenapplet/fifteenapplet-9999.ebuild11
l---------gentoo/trinity-base/fifteenapplet/files/shared1
-rw-r--r--gentoo/trinity-base/fifteenapplet/metadata.xml8
-rw-r--r--gentoo/trinity-base/kaddressbook-plugins/kaddressbook-plugins-9999.ebuild14
-rw-r--r--gentoo/trinity-base/kaddressbook-plugins/metadata.xml8
-rw-r--r--gentoo/trinity-base/kaddressbook/Manifest1
-rw-r--r--gentoo/trinity-base/kaddressbook/kaddressbook-3.5.13.2.ebuild33
-rw-r--r--gentoo/trinity-base/kaddressbook/kaddressbook-9999.ebuild33
-rw-r--r--gentoo/trinity-base/kaddressbook/metadata.xml11
-rw-r--r--gentoo/trinity-base/kamera/Manifest1
-rw-r--r--gentoo/trinity-base/kamera/kamera-3.5.13.1.ebuild14
-rw-r--r--gentoo/trinity-base/kamera/kamera-9999.ebuild14
-rw-r--r--gentoo/trinity-base/kamera/metadata.xml8
-rw-r--r--gentoo/trinity-base/kappfinder/Manifest2
l---------gentoo/trinity-base/kappfinder/files/shared1
-rw-r--r--gentoo/trinity-base/kappfinder/kappfinder-3.5.13.1.ebuild11
-rw-r--r--gentoo/trinity-base/kappfinder/kappfinder-3.5.13.2.ebuild11
-rw-r--r--gentoo/trinity-base/kappfinder/kappfinder-9999.ebuild11
-rw-r--r--gentoo/trinity-base/kappfinder/metadata.xml8
-rw-r--r--gentoo/trinity-base/kate-plugins/kate-plugins-9999.ebuild14
-rw-r--r--gentoo/trinity-base/kate-plugins/metadata.xml8
-rw-r--r--gentoo/trinity-base/kate/Manifest2
l---------gentoo/trinity-base/kate/files/shared1
-rw-r--r--gentoo/trinity-base/kate/kate-3.5.13.1.ebuild11
-rw-r--r--gentoo/trinity-base/kate/kate-3.5.13.2.ebuild11
-rw-r--r--gentoo/trinity-base/kate/kate-9999.ebuild11
-rw-r--r--gentoo/trinity-base/kate/metadata.xml8
-rw-r--r--gentoo/trinity-base/kcalc/Manifest2
l---------gentoo/trinity-base/kcalc/files/shared1
-rw-r--r--gentoo/trinity-base/kcalc/kcalc-3.5.13.1.ebuild14
-rw-r--r--gentoo/trinity-base/kcalc/kcalc-3.5.13.2.ebuild14
-rw-r--r--gentoo/trinity-base/kcalc/kcalc-9999.ebuild14
-rw-r--r--gentoo/trinity-base/kcalc/metadata.xml8
-rw-r--r--gentoo/trinity-base/kcharselect/Manifest2
l---------gentoo/trinity-base/kcharselect/files/shared1
-rw-r--r--gentoo/trinity-base/kcharselect/kcharselect-3.5.13.1.ebuild12
-rw-r--r--gentoo/trinity-base/kcharselect/kcharselect-3.5.13.2.ebuild12
-rw-r--r--gentoo/trinity-base/kcharselect/kcharselect-9999.ebuild12
-rw-r--r--gentoo/trinity-base/kcharselect/metadata.xml8
-rw-r--r--gentoo/trinity-base/kcheckpass/Manifest2
l---------gentoo/trinity-base/kcheckpass/files/shared1
-rw-r--r--gentoo/trinity-base/kcheckpass/kcheckpass-3.5.13.1.ebuild24
-rw-r--r--gentoo/trinity-base/kcheckpass/kcheckpass-3.5.13.2.ebuild24
-rw-r--r--gentoo/trinity-base/kcheckpass/kcheckpass-9999.ebuild23
-rw-r--r--gentoo/trinity-base/kcheckpass/metadata.xml8
-rw-r--r--gentoo/trinity-base/kcminit/Manifest2
l---------gentoo/trinity-base/kcminit/files/shared1
-rw-r--r--gentoo/trinity-base/kcminit/kcminit-3.5.13.1.ebuild17
-rw-r--r--gentoo/trinity-base/kcminit/kcminit-3.5.13.2.ebuild17
-rw-r--r--gentoo/trinity-base/kcminit/kcminit-9999.ebuild17
-rw-r--r--gentoo/trinity-base/kcminit/metadata.xml8
-rw-r--r--gentoo/trinity-base/kcoloredit/Manifest1
-rw-r--r--gentoo/trinity-base/kcoloredit/kcoloredit-3.5.13.1.ebuild11
-rw-r--r--gentoo/trinity-base/kcoloredit/kcoloredit-9999.ebuild11
-rw-r--r--gentoo/trinity-base/kcoloredit/metadata.xml8
-rw-r--r--gentoo/trinity-base/kcontrol/Manifest2
l---------gentoo/trinity-base/kcontrol/files/shared1
-rw-r--r--gentoo/trinity-base/kcontrol/kcontrol-3.5.13.1.ebuild47
-rw-r--r--gentoo/trinity-base/kcontrol/kcontrol-3.5.13.2.ebuild47
-rw-r--r--gentoo/trinity-base/kcontrol/kcontrol-9999.ebuild46
-rw-r--r--gentoo/trinity-base/kcontrol/metadata.xml12
-rw-r--r--gentoo/trinity-base/kdcop/Manifest2
l---------gentoo/trinity-base/kdcop/files/shared1
-rw-r--r--gentoo/trinity-base/kdcop/kdcop-3.5.13.1.ebuild11
-rw-r--r--gentoo/trinity-base/kdcop/kdcop-3.5.13.2.ebuild11
-rw-r--r--gentoo/trinity-base/kdcop/kdcop-9999.ebuild11
-rw-r--r--gentoo/trinity-base/kdcop/metadata.xml8
-rw-r--r--gentoo/trinity-base/kde-i18n/Manifest1
-rw-r--r--gentoo/trinity-base/kde-i18n/kde-i18n-3.5.13.1.ebuild109
-rw-r--r--gentoo/trinity-base/kde-i18n/metadata.xml8
-rw-r--r--gentoo/trinity-base/kdeartwork-emoticons/Manifest1
-rw-r--r--gentoo/trinity-base/kdeartwork-emoticons/kdeartwork-emoticons-3.5.13.1.ebuild11
-rw-r--r--gentoo/trinity-base/kdeartwork-emoticons/metadata.xml8
-rw-r--r--gentoo/trinity-base/kdeartwork-icewm-themes/Manifest1
-rw-r--r--gentoo/trinity-base/kdeartwork-icewm-themes/kdeartwork-icewm-themes-3.5.13.1.ebuild18
-rw-r--r--gentoo/trinity-base/kdeartwork-icewm-themes/metadata.xml8
-rw-r--r--gentoo/trinity-base/kdeartwork-icon-themes/Manifest1
-rw-r--r--gentoo/trinity-base/kdeartwork-icon-themes/kdeartwork-icon-themes-3.5.13.1.ebuild14
-rw-r--r--gentoo/trinity-base/kdeartwork-icon-themes/metadata.xml8
-rw-r--r--gentoo/trinity-base/kdeartwork-kscreensaver/Manifest1
-rw-r--r--gentoo/trinity-base/kdeartwork-kscreensaver/kdeartwork-kscreensaver-3.5.13.1.ebuild33
-rw-r--r--gentoo/trinity-base/kdeartwork-kscreensaver/metadata.xml8
-rw-r--r--gentoo/trinity-base/kdeartwork-kwin-styles/Manifest1
-rw-r--r--gentoo/trinity-base/kdeartwork-kwin-styles/kdeartwork-kwin-styles-3.5.13.1.ebuild13
-rw-r--r--gentoo/trinity-base/kdeartwork-kwin-styles/metadata.xml8
-rw-r--r--gentoo/trinity-base/kdeartwork-kworldclock/Manifest1
-rw-r--r--gentoo/trinity-base/kdeartwork-kworldclock/kdeartwork-kworldclock-3.5.13.1.ebuild14
-rw-r--r--gentoo/trinity-base/kdeartwork-kworldclock/metadata.xml8
-rw-r--r--gentoo/trinity-base/kdeartwork-meta/kdeartwork-meta-3.5.13.1.ebuild27
-rw-r--r--gentoo/trinity-base/kdeartwork-meta/metadata.xml8
-rw-r--r--gentoo/trinity-base/kdeartwork-sounds/Manifest1
-rw-r--r--gentoo/trinity-base/kdeartwork-sounds/kdeartwork-sounds-3.5.13.1.ebuild11
-rw-r--r--gentoo/trinity-base/kdeartwork-sounds/metadata.xml8
-rw-r--r--gentoo/trinity-base/kdeartwork-styles/Manifest1
-rw-r--r--gentoo/trinity-base/kdeartwork-styles/kdeartwork-styles-3.5.13.1.ebuild11
-rw-r--r--gentoo/trinity-base/kdeartwork-styles/metadata.xml8
-rw-r--r--gentoo/trinity-base/kdeartwork-wallpapers/Manifest1
-rw-r--r--gentoo/trinity-base/kdeartwork-wallpapers/kdeartwork-wallpapers-3.5.13.1.ebuild11
-rw-r--r--gentoo/trinity-base/kdeartwork-wallpapers/metadata.xml8
-rw-r--r--gentoo/trinity-base/kdebase-data/Manifest2
-rw-r--r--gentoo/trinity-base/kdebase-data/kdebase-data-3.5.13.1.ebuild13
-rw-r--r--gentoo/trinity-base/kdebase-data/kdebase-data-3.5.13.2.ebuild13
-rw-r--r--gentoo/trinity-base/kdebase-data/metadata.xml8
-rw-r--r--gentoo/trinity-base/kdebase-kioslaves/Manifest2
-rw-r--r--gentoo/trinity-base/kdebase-kioslaves/files/kdebase-3.5.13.1-fix-kioslaves-with-hal.patch24
-rw-r--r--gentoo/trinity-base/kdebase-kioslaves/files/kdebase-3.5.13.2-fix-mandb-support-in-kio-man.patch146
-rw-r--r--gentoo/trinity-base/kdebase-kioslaves/kdebase-kioslaves-3.5.13.1.ebuild40
-rw-r--r--gentoo/trinity-base/kdebase-kioslaves/kdebase-kioslaves-3.5.13.2.ebuild40
-rw-r--r--gentoo/trinity-base/kdebase-kioslaves/metadata.xml12
-rw-r--r--gentoo/trinity-base/kdebase-meta/kdebase-meta-3.5.13.1.ebuild60
-rw-r--r--gentoo/trinity-base/kdebase-meta/kdebase-meta-3.5.13.2.ebuild60
-rw-r--r--gentoo/trinity-base/kdebase-meta/metadata.xml8
-rw-r--r--gentoo/trinity-base/kdebase-starttde/Manifest2
-rw-r--r--gentoo/trinity-base/kdebase-starttde/files/agent-shutdown.sh13
-rw-r--r--gentoo/trinity-base/kdebase-starttde/files/agent-startup.sh29
-rw-r--r--gentoo/trinity-base/kdebase-starttde/files/kdebase-startkde-3.5.13.1-gentoo.patch63
-rw-r--r--gentoo/trinity-base/kdebase-starttde/files/kdebase-startkde-3.5.13.2-gentoo.patch63
-rw-r--r--gentoo/trinity-base/kdebase-starttde/files/kdebase-startkde-trinity-gentoo.patch46
-rw-r--r--gentoo/trinity-base/kdebase-starttde/kdebase-starttde-3.5.13.1.ebuild98
-rw-r--r--gentoo/trinity-base/kdebase-starttde/kdebase-starttde-3.5.13.2.ebuild98
-rw-r--r--gentoo/trinity-base/kdebase-starttde/metadata.xml8
-rw-r--r--gentoo/trinity-base/kdebugdialog/Manifest2
l---------gentoo/trinity-base/kdebugdialog/files/shared1
-rw-r--r--gentoo/trinity-base/kdebugdialog/kdebugdialog-3.5.13.1.ebuild11
-rw-r--r--gentoo/trinity-base/kdebugdialog/kdebugdialog-3.5.13.2.ebuild11
-rw-r--r--gentoo/trinity-base/kdebugdialog/metadata.xml8
-rw-r--r--gentoo/trinity-base/kdeeject/Manifest2
-rw-r--r--gentoo/trinity-base/kdeeject/kdeeject-3.5.13.1.ebuild15
-rw-r--r--gentoo/trinity-base/kdeeject/kdeeject-3.5.13.2.ebuild15
-rw-r--r--gentoo/trinity-base/kdeeject/metadata.xml8
-rw-r--r--gentoo/trinity-base/kdegraphics-doc/Manifest1
l---------gentoo/trinity-base/kdegraphics-doc/files/shared1
-rw-r--r--gentoo/trinity-base/kdegraphics-doc/kdegraphics-doc-3.5.13.1.ebuild27
-rw-r--r--gentoo/trinity-base/kdegraphics-doc/metadata.xml8
-rw-r--r--gentoo/trinity-base/kdegraphics-kfile-plugins/Manifest1
-rw-r--r--gentoo/trinity-base/kdegraphics-kfile-plugins/files/tdegraphics-poppler-tqt-remove-unnecessary-check.patch19
-rw-r--r--gentoo/trinity-base/kdegraphics-kfile-plugins/kdegraphics-kfile-plugins-3.5.13.1.ebuild30
-rw-r--r--gentoo/trinity-base/kdegraphics-kfile-plugins/metadata.xml8
-rw-r--r--gentoo/trinity-base/kdegraphics-meta/kdegraphics-meta-3.5.13.1.ebuild39
-rw-r--r--gentoo/trinity-base/kdegraphics-meta/metadata.xml8
-rw-r--r--gentoo/trinity-base/kdelibs/Manifest2
-rw-r--r--gentoo/trinity-base/kdelibs/files/kdelibs-3.5.13.1-OnlyShowIn-TDE.patch26
-rw-r--r--gentoo/trinity-base/kdelibs/files/kdelibs-3.5.13.1-bug-1161.patch16
-rw-r--r--gentoo/trinity-base/kdelibs/files/kdelibs-3.5.13.1-fix-insane-kde4-variables.patch13
-rw-r--r--gentoo/trinity-base/kdelibs/files/kdelibs-3.5.13.1-fix-no-xcomposite.patch44
-rw-r--r--gentoo/trinity-base/kdelibs/files/kdelibs-3.5.13.1-make-xcomposite-optional.patch28
-rw-r--r--gentoo/trinity-base/kdelibs/files/kdelibs-3.5.13.2-make-xcomposite-optional.patch29
-rw-r--r--gentoo/trinity-base/kdelibs/kdelibs-3.5.13.1.ebuild136
-rw-r--r--gentoo/trinity-base/kdelibs/kdelibs-3.5.13.2.ebuild137
-rw-r--r--gentoo/trinity-base/kdelibs/metadata.xml13
-rw-r--r--gentoo/trinity-base/kdelirc/Manifest2
l---------gentoo/trinity-base/kdelirc/files/shared1
-rw-r--r--gentoo/trinity-base/kdelirc/kdelirc-3.5.13.1.ebuild11
-rw-r--r--gentoo/trinity-base/kdelirc/kdelirc-3.5.13.2.ebuild11
-rw-r--r--gentoo/trinity-base/kdelirc/metadata.xml8
-rw-r--r--gentoo/trinity-base/kdenetwork-doc/Manifest1
-rw-r--r--gentoo/trinity-base/kdenetwork-doc/files/kdenetwork-3.5.13.1-fix-references-to-user-profile-directory-6f85c0c.patch70
l---------gentoo/trinity-base/kdenetwork-doc/files/shared1
-rw-r--r--gentoo/trinity-base/kdenetwork-doc/kdenetwork-doc-3.5.13.1.ebuild30
-rw-r--r--gentoo/trinity-base/kdenetwork-doc/metadata.xml8
-rw-r--r--gentoo/trinity-base/kdenetwork-filesharing/Manifest1
-rw-r--r--gentoo/trinity-base/kdenetwork-filesharing/files/kdenetwork-bug1330i2-fix-filesharing-parallel-compilation.patch69
-rw-r--r--gentoo/trinity-base/kdenetwork-filesharing/kdenetwork-filesharing-3.5.13.1.ebuild13
-rw-r--r--gentoo/trinity-base/kdenetwork-filesharing/metadata.xml8
-rw-r--r--gentoo/trinity-base/kdenetwork-kfile-plugins/Manifest1
-rw-r--r--gentoo/trinity-base/kdenetwork-kfile-plugins/kdenetwork-kfile-plugins-3.5.13.1.ebuild11
-rw-r--r--gentoo/trinity-base/kdenetwork-kfile-plugins/metadata.xml8
-rw-r--r--gentoo/trinity-base/kdepasswd/Manifest2
l---------gentoo/trinity-base/kdepasswd/files/shared1
-rw-r--r--gentoo/trinity-base/kdepasswd/kdepasswd-3.5.13.1.ebuild14
-rw-r--r--gentoo/trinity-base/kdepasswd/kdepasswd-3.5.13.2.ebuild14
-rw-r--r--gentoo/trinity-base/kdepasswd/metadata.xml8
-rw-r--r--gentoo/trinity-base/kdeprint/Manifest2
-rw-r--r--gentoo/trinity-base/kdeprint/kdeprint-3.5.13.1.ebuild16
-rw-r--r--gentoo/trinity-base/kdeprint/kdeprint-3.5.13.2.ebuild16
-rw-r--r--gentoo/trinity-base/kdeprint/metadata.xml8
-rw-r--r--gentoo/trinity-base/kdesktop/Manifest2
-rw-r--r--gentoo/trinity-base/kdesktop/files/kdesktop-3.5.13.1-onlyshowin-tde.patch19
l---------gentoo/trinity-base/kdesktop/files/shared1
-rw-r--r--gentoo/trinity-base/kdesktop/kdesktop-3.5.13.1.ebuild46
-rw-r--r--gentoo/trinity-base/kdesktop/kdesktop-3.5.13.2.ebuild46
-rw-r--r--gentoo/trinity-base/kdesktop/kdesktop-9999.ebuild42
-rw-r--r--gentoo/trinity-base/kdesktop/metadata.xml11
-rw-r--r--gentoo/trinity-base/kdesu/Manifest2
-rw-r--r--gentoo/trinity-base/kdesu/kdesu-3.5.13.1.ebuild33
-rw-r--r--gentoo/trinity-base/kdesu/kdesu-3.5.13.2.ebuild33
-rw-r--r--gentoo/trinity-base/kdesu/metadata.xml12
-rw-r--r--gentoo/trinity-base/kdetoys-doc/Manifest2
l---------gentoo/trinity-base/kdetoys-doc/files/shared1
-rw-r--r--gentoo/trinity-base/kdetoys-doc/kdetoys-doc-3.5.13.1.ebuild27
-rw-r--r--gentoo/trinity-base/kdetoys-doc/kdetoys-doc-3.5.13.2.ebuild27
-rw-r--r--gentoo/trinity-base/kdetoys-doc/kdetoys-doc-9999.ebuild27
-rw-r--r--gentoo/trinity-base/kdetoys-doc/metadata.xml8
-rw-r--r--gentoo/trinity-base/kdetoys-meta/kdetoys-meta-3.5.13.1.ebuild28
-rw-r--r--gentoo/trinity-base/kdetoys-meta/metadata.xml8
-rw-r--r--gentoo/trinity-base/kdeutils-doc/Manifest2
l---------gentoo/trinity-base/kdeutils-doc/files/shared1
-rw-r--r--gentoo/trinity-base/kdeutils-doc/kdeutils-doc-3.5.13.1.ebuild27
-rw-r--r--gentoo/trinity-base/kdeutils-doc/kdeutils-doc-3.5.13.2.ebuild13
-rw-r--r--gentoo/trinity-base/kdeutils-doc/metadata.xml8
-rw-r--r--gentoo/trinity-base/kdeutils-meta/kdeutils-meta-3.5.13.1.ebuild36
-rw-r--r--gentoo/trinity-base/kdeutils-meta/kdeutils-meta-3.5.13.2.ebuild36
-rw-r--r--gentoo/trinity-base/kdeutils-meta/metadata.xml8
-rw-r--r--gentoo/trinity-base/kdf/Manifest2
l---------gentoo/trinity-base/kdf/files/shared1
-rw-r--r--gentoo/trinity-base/kdf/kdf-3.5.13.1.ebuild11
-rw-r--r--gentoo/trinity-base/kdf/kdf-3.5.13.2.ebuild11
-rw-r--r--gentoo/trinity-base/kdf/kdf-9999.ebuild11
-rw-r--r--gentoo/trinity-base/kdf/metadata.xml8
-rw-r--r--gentoo/trinity-base/kdialog/Manifest2
l---------gentoo/trinity-base/kdialog/files/shared1
-rw-r--r--gentoo/trinity-base/kdialog/kdialog-3.5.13.1.ebuild11
-rw-r--r--gentoo/trinity-base/kdialog/kdialog-3.5.13.2.ebuild11
-rw-r--r--gentoo/trinity-base/kdialog/kdialog-9999.ebuild11
-rw-r--r--gentoo/trinity-base/kdialog/metadata.xml8
-rw-r--r--gentoo/trinity-base/kdict/Manifest1
-rw-r--r--gentoo/trinity-base/kdict/kdict-3.5.13.1.ebuild11
-rw-r--r--gentoo/trinity-base/kdict/kdict-9999.ebuild11
-rw-r--r--gentoo/trinity-base/kdict/metadata.xml8
-rw-r--r--gentoo/trinity-base/kdm/Manifest2
-rwxr-xr-xgentoo/trinity-base/kdm/files/kdm-3.5.13.1-xsession.script66
-rwxr-xr-xgentoo/trinity-base/kdm/files/kdm-3.5.13.2-xsession.script66
-rw-r--r--gentoo/trinity-base/kdm/kdm-3.5.13.1.ebuild105
-rw-r--r--gentoo/trinity-base/kdm/kdm-3.5.13.2.ebuild103
-rw-r--r--gentoo/trinity-base/kdm/metadata.xml12
-rw-r--r--gentoo/trinity-base/kdnssd/Manifest1
-rw-r--r--gentoo/trinity-base/kdnssd/kdnssd-3.5.13.1.ebuild11
-rw-r--r--gentoo/trinity-base/kdnssd/metadata.xml8
-rw-r--r--gentoo/trinity-base/kdvi/Manifest1
-rw-r--r--gentoo/trinity-base/kdvi/kdvi-3.5.13.1.ebuild17
-rw-r--r--gentoo/trinity-base/kdvi/kdvi-9999.ebuild17
-rw-r--r--gentoo/trinity-base/kdvi/metadata.xml8
-rw-r--r--gentoo/trinity-base/kedit/Manifest2
l---------gentoo/trinity-base/kedit/files/shared1
-rw-r--r--gentoo/trinity-base/kedit/kedit-3.5.13.1.ebuild11
-rw-r--r--gentoo/trinity-base/kedit/kedit-3.5.13.2.ebuild11
-rw-r--r--gentoo/trinity-base/kedit/kedit-9999.ebuild11
-rw-r--r--gentoo/trinity-base/kedit/metadata.xml8
-rw-r--r--gentoo/trinity-base/kfax/Manifest1
-rw-r--r--gentoo/trinity-base/kfax/kfax-3.5.13.1.ebuild17
-rw-r--r--gentoo/trinity-base/kfax/kfax-9999.ebuild17
-rw-r--r--gentoo/trinity-base/kfax/metadata.xml8
-rw-r--r--gentoo/trinity-base/kfind/Manifest2
l---------gentoo/trinity-base/kfind/files/shared1
-rw-r--r--gentoo/trinity-base/kfind/kfind-3.5.13.1.ebuild14
-rw-r--r--gentoo/trinity-base/kfind/kfind-3.5.13.2.ebuild14
-rw-r--r--gentoo/trinity-base/kfind/kfind-9999.ebuild14
-rw-r--r--gentoo/trinity-base/kfind/metadata.xml8
-rw-r--r--gentoo/trinity-base/kfloppy/Manifest2
l---------gentoo/trinity-base/kfloppy/files/shared1
-rw-r--r--gentoo/trinity-base/kfloppy/kfloppy-3.5.13.1.ebuild11
-rw-r--r--gentoo/trinity-base/kfloppy/kfloppy-3.5.13.2.ebuild11
-rw-r--r--gentoo/trinity-base/kfloppy/kfloppy-9999.ebuild11
-rw-r--r--gentoo/trinity-base/kfloppy/metadata.xml8
-rw-r--r--gentoo/trinity-base/kgamma/Manifest1
-rw-r--r--gentoo/trinity-base/kgamma/kgamma-3.5.13.1.ebuild14
-rw-r--r--gentoo/trinity-base/kgamma/kgamma-9999.ebuild14
-rw-r--r--gentoo/trinity-base/kgamma/metadata.xml8
-rw-r--r--gentoo/trinity-base/kgantt/Manifest1
-rw-r--r--gentoo/trinity-base/kgantt/kgantt-3.5.13.2.ebuild13
-rw-r--r--gentoo/trinity-base/kgantt/kgantt-9999.ebuild13
-rw-r--r--gentoo/trinity-base/kgantt/metadata.xml8
-rw-r--r--gentoo/trinity-base/kget/Manifest1
-rw-r--r--gentoo/trinity-base/kget/kget-3.5.13.1.ebuild14
-rw-r--r--gentoo/trinity-base/kget/kget-9999.ebuild14
-rw-r--r--gentoo/trinity-base/kget/metadata.xml8
-rw-r--r--gentoo/trinity-base/kghostview/Manifest1
-rw-r--r--gentoo/trinity-base/kghostview/files/tdegraphics-fix-kghostview-parallel-compilation.patch24
-rw-r--r--gentoo/trinity-base/kghostview/kghostview-3.5.13.1.ebuild16
-rw-r--r--gentoo/trinity-base/kghostview/kghostview-9999.ebuild14
-rw-r--r--gentoo/trinity-base/kghostview/metadata.xml8
-rw-r--r--gentoo/trinity-base/kgpg/Manifest2
l---------gentoo/trinity-base/kgpg/files/shared1
-rw-r--r--gentoo/trinity-base/kgpg/kgpg-3.5.13.1.ebuild16
-rw-r--r--gentoo/trinity-base/kgpg/kgpg-3.5.13.2.ebuild16
-rw-r--r--gentoo/trinity-base/kgpg/kgpg-9999.ebuild16
-rw-r--r--gentoo/trinity-base/kgpg/metadata.xml8
-rw-r--r--gentoo/trinity-base/khelpcenter/Manifest2
l---------gentoo/trinity-base/khelpcenter/files/shared1
-rw-r--r--gentoo/trinity-base/khelpcenter/khelpcenter-3.5.13.1.ebuild30
-rw-r--r--gentoo/trinity-base/khelpcenter/khelpcenter-3.5.13.2.ebuild30
-rw-r--r--gentoo/trinity-base/khelpcenter/khelpcenter-9999.ebuild30
-rw-r--r--gentoo/trinity-base/khelpcenter/metadata.xml8
-rw-r--r--gentoo/trinity-base/khexedit/Manifest2
l---------gentoo/trinity-base/khexedit/files/shared1
-rw-r--r--gentoo/trinity-base/khexedit/khexedit-3.5.13.1.ebuild11
-rw-r--r--gentoo/trinity-base/khexedit/khexedit-3.5.13.2.ebuild11
-rw-r--r--gentoo/trinity-base/khexedit/khexedit-9999.ebuild11
-rw-r--r--gentoo/trinity-base/khexedit/metadata.xml8
-rw-r--r--gentoo/trinity-base/khotkeys/Manifest2
l---------gentoo/trinity-base/khotkeys/files/shared1
-rw-r--r--gentoo/trinity-base/khotkeys/khotkeys-3.5.13.1.ebuild25
-rw-r--r--gentoo/trinity-base/khotkeys/khotkeys-3.5.13.2.ebuild25
-rw-r--r--gentoo/trinity-base/khotkeys/khotkeys-9999.ebuild23
-rw-r--r--gentoo/trinity-base/khotkeys/metadata.xml8
-rw-r--r--gentoo/trinity-base/kicker-applets/kicker-applets-9999.ebuild16
-rw-r--r--gentoo/trinity-base/kicker-applets/metadata.xml8
-rw-r--r--gentoo/trinity-base/kicker/Manifest2
-rw-r--r--gentoo/trinity-base/kicker/files/kicker-3.5.13.2-include-dbus.patch51
l---------gentoo/trinity-base/kicker/files/shared1
-rw-r--r--gentoo/trinity-base/kicker/kicker-3.5.13.1.ebuild30
-rw-r--r--gentoo/trinity-base/kicker/kicker-3.5.13.2.ebuild33
-rw-r--r--gentoo/trinity-base/kicker/kicker-9999.ebuild31
-rw-r--r--gentoo/trinity-base/kicker/metadata.xml8
-rw-r--r--gentoo/trinity-base/kiconedit/Manifest1
-rw-r--r--gentoo/trinity-base/kiconedit/kiconedit-3.5.13.1.ebuild11
-rw-r--r--gentoo/trinity-base/kiconedit/metadata.xml8
-rw-r--r--gentoo/trinity-base/kjots/Manifest2
l---------gentoo/trinity-base/kjots/files/shared1
-rw-r--r--gentoo/trinity-base/kjots/kjots-3.5.13.1.ebuild11
-rw-r--r--gentoo/trinity-base/kjots/kjots-3.5.13.2.ebuild11
-rw-r--r--gentoo/trinity-base/kjots/kjots-9999.ebuild11
-rw-r--r--gentoo/trinity-base/kjots/metadata.xml8
-rw-r--r--gentoo/trinity-base/klaptopdaemon/Manifest2
l---------gentoo/trinity-base/klaptopdaemon/files/shared1
-rw-r--r--gentoo/trinity-base/klaptopdaemon/klaptopdaemon-3.5.13.1.ebuild25
-rw-r--r--gentoo/trinity-base/klaptopdaemon/klaptopdaemon-3.5.13.2.ebuild25
-rw-r--r--gentoo/trinity-base/klaptopdaemon/klaptopdaemon-9999.ebuild25
-rw-r--r--gentoo/trinity-base/klaptopdaemon/metadata.xml8
-rw-r--r--gentoo/trinity-base/klipper/Manifest2
l---------gentoo/trinity-base/klipper/files/shared1
-rw-r--r--gentoo/trinity-base/klipper/klipper-3.5.13.1.ebuild22
-rw-r--r--gentoo/trinity-base/klipper/klipper-3.5.13.2.ebuild22
-rw-r--r--gentoo/trinity-base/klipper/klipper-9999.ebuild22
-rw-r--r--gentoo/trinity-base/klipper/metadata.xml8
-rw-r--r--gentoo/trinity-base/kmenuedit/Manifest2
l---------gentoo/trinity-base/kmenuedit/files/shared1
-rw-r--r--gentoo/trinity-base/kmenuedit/kmenuedit-3.5.13.1.ebuild11
-rw-r--r--gentoo/trinity-base/kmenuedit/kmenuedit-3.5.13.2.ebuild11
-rw-r--r--gentoo/trinity-base/kmenuedit/kmenuedit-9999.ebuild11
-rw-r--r--gentoo/trinity-base/kmenuedit/metadata.xml8
-rw-r--r--gentoo/trinity-base/kmilo/Manifest2
-rw-r--r--gentoo/trinity-base/kmilo/files/kdeutils-3.5.13.1-kmilo-fix-powerbook.patch67
l---------gentoo/trinity-base/kmilo/files/shared1
-rw-r--r--gentoo/trinity-base/kmilo/kmilo-3.5.13.1.ebuild30
-rw-r--r--gentoo/trinity-base/kmilo/kmilo-3.5.13.2.ebuild28
-rw-r--r--gentoo/trinity-base/kmilo/kmilo-9999.ebuild28
-rw-r--r--gentoo/trinity-base/kmilo/metadata.xml24
-rw-r--r--gentoo/trinity-base/kmix/Manifest1
-rw-r--r--gentoo/trinity-base/kmix/kmix-3.5.13.1.ebuild22
-rw-r--r--gentoo/trinity-base/kmix/kmix-9999.ebuild22
-rw-r--r--gentoo/trinity-base/kmix/metadata.xml8
-rw-r--r--gentoo/trinity-base/kmoon/Manifest2
l---------gentoo/trinity-base/kmoon/files/shared1
-rw-r--r--gentoo/trinity-base/kmoon/kmoon-3.5.13.1.ebuild11
-rw-r--r--gentoo/trinity-base/kmoon/kmoon-3.5.13.2.ebuild11
-rw-r--r--gentoo/trinity-base/kmoon/kmoon-9999.ebuild11
-rw-r--r--gentoo/trinity-base/kmoon/metadata.xml8
-rw-r--r--gentoo/trinity-base/kmrml/Manifest1
-rw-r--r--gentoo/trinity-base/kmrml/kmrml-3.5.13.1.ebuild11
-rw-r--r--gentoo/trinity-base/kmrml/kmrml-9999.ebuild11
-rw-r--r--gentoo/trinity-base/kmrml/metadata.xml8
-rw-r--r--gentoo/trinity-base/knetattach/Manifest2
l---------gentoo/trinity-base/knetattach/files/shared1
-rw-r--r--gentoo/trinity-base/knetattach/knetattach-3.5.13.1.ebuild11
-rw-r--r--gentoo/trinity-base/knetattach/knetattach-3.5.13.2.ebuild11
-rw-r--r--gentoo/trinity-base/knetattach/knetattach-9999.ebuild11
-rw-r--r--gentoo/trinity-base/knetattach/metadata.xml8
-rw-r--r--gentoo/trinity-base/knewsticker-scripts/knewsticker-scripts-9999.ebuild13
-rw-r--r--gentoo/trinity-base/knewsticker-scripts/metadata.xml8
-rw-r--r--gentoo/trinity-base/knewsticker/Manifest1
-rw-r--r--gentoo/trinity-base/knewsticker/files/knewsticker-a2b3834-fix-various-cmake-build-issues.patch16
-rw-r--r--gentoo/trinity-base/knewsticker/knewsticker-3.5.13.1.ebuild17
-rw-r--r--gentoo/trinity-base/knewsticker/knewsticker-9999.ebuild14
-rw-r--r--gentoo/trinity-base/knewsticker/metadata.xml8
-rw-r--r--gentoo/trinity-base/knotes/Manifest1
-rw-r--r--gentoo/trinity-base/knotes/knotes-3.5.13.2.ebuild18
-rw-r--r--gentoo/trinity-base/knotes/knotes-9999.ebuild18
-rw-r--r--gentoo/trinity-base/knotes/metadata.xml8
-rw-r--r--gentoo/trinity-base/kodo/Manifest2
l---------gentoo/trinity-base/kodo/files/shared1
-rw-r--r--gentoo/trinity-base/kodo/kodo-3.5.13.1.ebuild11
-rw-r--r--gentoo/trinity-base/kodo/kodo-3.5.13.2.ebuild11
-rw-r--r--gentoo/trinity-base/kodo/kodo-9999.ebuild11
-rw-r--r--gentoo/trinity-base/kodo/metadata.xml8
-rw-r--r--gentoo/trinity-base/kolourpaint/Manifest1
-rw-r--r--gentoo/trinity-base/kolourpaint/kolourpaint-3.5.13.1.ebuild12
-rw-r--r--gentoo/trinity-base/kolourpaint/kolourpaint-9999.ebuild12
-rw-r--r--gentoo/trinity-base/kolourpaint/metadata.xml8
-rw-r--r--gentoo/trinity-base/konq-plugins/konq-plugins-9999.ebuild23
-rw-r--r--gentoo/trinity-base/konq-plugins/metadata.xml8
-rw-r--r--gentoo/trinity-base/konqueror/Manifest2
l---------gentoo/trinity-base/konqueror/files/shared1
-rw-r--r--gentoo/trinity-base/konqueror/konqueror-3.5.13.1.ebuild23
-rw-r--r--gentoo/trinity-base/konqueror/konqueror-3.5.13.2.ebuild23
-rw-r--r--gentoo/trinity-base/konqueror/konqueror-9999.ebuild23
-rw-r--r--gentoo/trinity-base/konqueror/metadata.xml8
-rw-r--r--gentoo/trinity-base/konsole/Manifest2
l---------gentoo/trinity-base/konsole/files/shared1
-rw-r--r--gentoo/trinity-base/konsole/konsole-3.5.13.1.ebuild26
-rw-r--r--gentoo/trinity-base/konsole/konsole-3.5.13.2.ebuild26
-rw-r--r--gentoo/trinity-base/konsole/konsole-9999.ebuild26
-rw-r--r--gentoo/trinity-base/konsole/metadata.xml8
-rw-r--r--gentoo/trinity-base/kontact/Manifest1
-rw-r--r--gentoo/trinity-base/kontact/kontact-3.5.13.2.ebuild20
-rw-r--r--gentoo/trinity-base/kontact/kontact-9999.ebuild20
-rw-r--r--gentoo/trinity-base/kontact/metadata.xml8
-rw-r--r--gentoo/trinity-base/kooka/Manifest1
-rw-r--r--gentoo/trinity-base/kooka/kooka-3.5.13.1.ebuild18
-rw-r--r--gentoo/trinity-base/kooka/kooka-9999.ebuild18
-rw-r--r--gentoo/trinity-base/kooka/metadata.xml8
-rw-r--r--gentoo/trinity-base/kopete/Manifest1
-rw-r--r--gentoo/trinity-base/kopete/files/kopete-3.5.13.1-patches/0001-f61f5c1-deleted-forgotten-files-for-commit-6e76ea67.patch6
-rw-r--r--gentoo/trinity-base/kopete/files/kopete-3.5.13.1-patches/0002-f604b5b-fix-build-errors.patch51
-rw-r--r--gentoo/trinity-base/kopete/files/kopete-3.5.13.1-patches/0003-e96ccab-added-xmms-support-to-cmake.patch42
-rw-r--r--gentoo/trinity-base/kopete/files/kopete-3.5.13.1-patches/0004-e0fdfd9-fix-unwanted-rename-icon-with-automake.patch13
-rw-r--r--gentoo/trinity-base/kopete/files/kopete-3.5.13.1-patches/0005-df8b5e2-fix-inadvertent-tq-changes.patch180
-rw-r--r--gentoo/trinity-base/kopete/files/kopete-3.5.13.1-patches/0006-bd6aa1a-fix-inadvertent-tqt-changes.patch37
-rw-r--r--gentoo/trinity-base/kopete/files/kopete-3.5.13.1-patches/0007-a2b3834-fix-various-cmake-build-issues.patch98
-rw-r--r--gentoo/trinity-base/kopete/files/kopete-3.5.13.1-patches/0008-98c9c87-add-missing-file-from-previous-commit-10026753.patch28
-rw-r--r--gentoo/trinity-base/kopete/files/kopete-3.5.13.1-patches/0009-81ace9c-fix-inadvertent-tq-changes.patch15
-rw-r--r--gentoo/trinity-base/kopete/files/kopete-3.5.13.1-patches/0010-6f85c0c-fix-references-to-user-profile-directory.patch39
-rw-r--r--gentoo/trinity-base/kopete/files/kopete-3.5.13.1-patches/0011-631f957-remove-nuisance-unsermake-warning-with-automake.patch12
-rw-r--r--gentoo/trinity-base/kopete/files/kopete-3.5.13.1-patches/0012-4387c55-fix-inadvertent-tq-changes.patch75
-rw-r--r--gentoo/trinity-base/kopete/files/kopete-3.5.13.1-patches/0013.1-412a55a-update-kopete-references-of-gaim-to-pidgin-resolve-bug-865.patch373
-rw-r--r--gentoo/trinity-base/kopete/files/kopete-3.5.13.1-patches/0013.2-412a55a-update-kopete-references-of-gaim-to-pidgin-resolve-bug-865.patch450
-rw-r--r--gentoo/trinity-base/kopete/files/kopete-3.5.13.1-patches/0013.3-412a55a-update-kopete-references-of-gaim-to-pidgin-resolve-bug-865.patch454
-rw-r--r--gentoo/trinity-base/kopete/files/kopete-3.5.13.1-patches/0014-265c466-added-test-of-the-presence-libgadu-with-automake.patch21
-rw-r--r--gentoo/trinity-base/kopete/files/kopete-3.5.13.1-patches/0015-1bf5123-remove-unnecessary-language.patch34
-rw-r--r--gentoo/trinity-base/kopete/kopete-3.5.13.1.ebuild114
-rw-r--r--gentoo/trinity-base/kopete/kopete-9999.ebuild112
-rw-r--r--gentoo/trinity-base/kopete/metadata.xml32
-rw-r--r--gentoo/trinity-base/korganizer/Manifest1
-rw-r--r--gentoo/trinity-base/korganizer/korganizer-3.5.13.2.ebuild46
-rw-r--r--gentoo/trinity-base/korganizer/korganizer-9999.ebuild46
-rw-r--r--gentoo/trinity-base/korganizer/metadata.xml11
-rw-r--r--gentoo/trinity-base/kpager/Manifest2
l---------gentoo/trinity-base/kpager/files/shared1
-rw-r--r--gentoo/trinity-base/kpager/kpager-3.5.13.1.ebuild11
-rw-r--r--gentoo/trinity-base/kpager/kpager-3.5.13.2.ebuild11
-rw-r--r--gentoo/trinity-base/kpager/kpager-9999.ebuild11
-rw-r--r--gentoo/trinity-base/kpager/metadata.xml8
-rw-r--r--gentoo/trinity-base/kpdf/Manifest1
-rw-r--r--gentoo/trinity-base/kpdf/kpdf-3.5.13.1.ebuild14
-rw-r--r--gentoo/trinity-base/kpdf/kpdf-9999.ebuild14
-rw-r--r--gentoo/trinity-base/kpdf/metadata.xml8
-rw-r--r--gentoo/trinity-base/kpersonalizer/Manifest2
l---------gentoo/trinity-base/kpersonalizer/files/shared1
-rw-r--r--gentoo/trinity-base/kpersonalizer/kpersonalizer-3.5.13.1.ebuild13
-rw-r--r--gentoo/trinity-base/kpersonalizer/kpersonalizer-3.5.13.2.ebuild13
-rw-r--r--gentoo/trinity-base/kpersonalizer/kpersonalizer-9999.ebuild13
-rw-r--r--gentoo/trinity-base/kpersonalizer/metadata.xml8
-rw-r--r--gentoo/trinity-base/kpf/Manifest1
-rw-r--r--gentoo/trinity-base/kpf/kpf-3.5.13.1.ebuild11
-rw-r--r--gentoo/trinity-base/kpf/kpf-9999.ebuild11
-rw-r--r--gentoo/trinity-base/kpf/metadata.xml8
-rw-r--r--gentoo/trinity-base/kpovmodeler/Manifest1
-rw-r--r--gentoo/trinity-base/kpovmodeler/kpovmodeler-3.5.13.1.ebuild16
-rw-r--r--gentoo/trinity-base/kpovmodeler/kpovmodeler-9999.ebuild16
-rw-r--r--gentoo/trinity-base/kpovmodeler/metadata.xml8
-rw-r--r--gentoo/trinity-base/kppp/Manifest1
-rw-r--r--gentoo/trinity-base/kppp/files/kppp-v3.5.13.1-a2b3834-fix-various-cmake-build-issues.patch10
-rw-r--r--gentoo/trinity-base/kppp/kppp-3.5.13.1.ebuild16
-rw-r--r--gentoo/trinity-base/kppp/kppp-9999.ebuild13
-rw-r--r--gentoo/trinity-base/kppp/metadata.xml8
-rw-r--r--gentoo/trinity-base/krdc/Manifest1
-rw-r--r--gentoo/trinity-base/krdc/files/krdc-3.5.13.1-702c180-added-openslp-support-to-cmake.patch41
-rw-r--r--gentoo/trinity-base/krdc/krdc-3.5.13.1.ebuild28
-rw-r--r--gentoo/trinity-base/krdc/krdc-9999.ebuild26
-rw-r--r--gentoo/trinity-base/krdc/metadata.xml8
-rw-r--r--gentoo/trinity-base/kreadconfig/Manifest2
l---------gentoo/trinity-base/kreadconfig/files/shared1
-rw-r--r--gentoo/trinity-base/kreadconfig/kreadconfig-3.5.13.1.ebuild11
-rw-r--r--gentoo/trinity-base/kreadconfig/kreadconfig-3.5.13.2.ebuild11
-rw-r--r--gentoo/trinity-base/kreadconfig/kreadconfig-9999.ebuild11
-rw-r--r--gentoo/trinity-base/kreadconfig/metadata.xml8
-rw-r--r--gentoo/trinity-base/kregexpeditor/Manifest2
l---------gentoo/trinity-base/kregexpeditor/files/shared1
-rw-r--r--gentoo/trinity-base/kregexpeditor/kregexpeditor-3.5.13.1.ebuild11
-rw-r--r--gentoo/trinity-base/kregexpeditor/kregexpeditor-3.5.13.2.ebuild11
-rw-r--r--gentoo/trinity-base/kregexpeditor/kregexpeditor-9999.ebuild11
-rw-r--r--gentoo/trinity-base/kregexpeditor/metadata.xml8
-rw-r--r--gentoo/trinity-base/krfb/Manifest1
-rw-r--r--gentoo/trinity-base/krfb/files/krfb-3.5.13.1-702c180-added-openslp-support-to-cmake.patch40
-rw-r--r--gentoo/trinity-base/krfb/krfb-3.5.13.1.ebuild27
-rw-r--r--gentoo/trinity-base/krfb/krfb-9999.ebuild25
-rw-r--r--gentoo/trinity-base/krfb/metadata.xml8
-rw-r--r--gentoo/trinity-base/krootbacking/Manifest2
l---------gentoo/trinity-base/krootbacking/files/shared1
-rw-r--r--gentoo/trinity-base/krootbacking/krootbacking-3.5.13.1.ebuild11
-rw-r--r--gentoo/trinity-base/krootbacking/krootbacking-3.5.13.2.ebuild11
-rw-r--r--gentoo/trinity-base/krootbacking/krootbacking-9999.ebuild11
-rw-r--r--gentoo/trinity-base/krootbacking/metadata.xml8
-rw-r--r--gentoo/trinity-base/kruler/Manifest1
-rw-r--r--gentoo/trinity-base/kruler/kruler-3.5.13.1.ebuild11
-rw-r--r--gentoo/trinity-base/kruler/kruler-9999.ebuild11
-rw-r--r--gentoo/trinity-base/kruler/metadata.xml8
-rw-r--r--gentoo/trinity-base/kscreensaver/Manifest2
l---------gentoo/trinity-base/kscreensaver/files/shared1
-rw-r--r--gentoo/trinity-base/kscreensaver/kscreensaver-3.5.13.1.ebuild29
-rw-r--r--gentoo/trinity-base/kscreensaver/kscreensaver-3.5.13.2.ebuild29
-rw-r--r--gentoo/trinity-base/kscreensaver/metadata.xml11
-rw-r--r--gentoo/trinity-base/ksig/ksig-9999.ebuild11
-rw-r--r--gentoo/trinity-base/ksig/metadata.xml8
-rw-r--r--gentoo/trinity-base/ksim/Manifest2
-rw-r--r--gentoo/trinity-base/ksim/files/fix_crash.patch44
l---------gentoo/trinity-base/ksim/files/shared1
-rw-r--r--gentoo/trinity-base/ksim/ksim-3.5.13.1.ebuild27
-rw-r--r--gentoo/trinity-base/ksim/ksim-3.5.13.2.ebuild26
-rw-r--r--gentoo/trinity-base/ksim/ksim-9999.ebuild26
-rw-r--r--gentoo/trinity-base/ksim/metadata.xml11
-rw-r--r--gentoo/trinity-base/ksirc/Manifest1
-rw-r--r--gentoo/trinity-base/ksirc/ksirc-3.5.13.1.ebuild14
-rw-r--r--gentoo/trinity-base/ksirc/ksirc-9999.ebuild14
-rw-r--r--gentoo/trinity-base/ksirc/metadata.xml8
-rw-r--r--gentoo/trinity-base/ksmserver/Manifest2
l---------gentoo/trinity-base/ksmserver/files/shared1
-rw-r--r--gentoo/trinity-base/ksmserver/ksmserver-3.5.13.1.ebuild24
-rw-r--r--gentoo/trinity-base/ksmserver/ksmserver-3.5.13.2.ebuild24
-rw-r--r--gentoo/trinity-base/ksmserver/ksmserver-9999.ebuild28
-rw-r--r--gentoo/trinity-base/ksmserver/metadata.xml8
-rw-r--r--gentoo/trinity-base/ksnapshot/Manifest1
-rw-r--r--gentoo/trinity-base/ksnapshot/ksnapshot-3.5.13.1.ebuild14
-rw-r--r--gentoo/trinity-base/ksnapshot/ksnapshot-9999.ebuild14
-rw-r--r--gentoo/trinity-base/ksnapshot/metadata.xml8
-rw-r--r--gentoo/trinity-base/ksplashml/Manifest2
l---------gentoo/trinity-base/ksplashml/files/shared1
-rw-r--r--gentoo/trinity-base/ksplashml/ksplashml-3.5.13.1.ebuild23
-rw-r--r--gentoo/trinity-base/ksplashml/ksplashml-3.5.13.2.ebuild23
-rw-r--r--gentoo/trinity-base/ksplashml/ksplashml-9999.ebuild23
-rw-r--r--gentoo/trinity-base/ksplashml/metadata.xml8
-rw-r--r--gentoo/trinity-base/kstart/Manifest2
l---------gentoo/trinity-base/kstart/files/shared1
-rw-r--r--gentoo/trinity-base/kstart/kstart-3.5.13.1.ebuild11
-rw-r--r--gentoo/trinity-base/kstart/kstart-3.5.13.2.ebuild11
-rw-r--r--gentoo/trinity-base/kstart/kstart-9999.ebuild11
-rw-r--r--gentoo/trinity-base/kstart/metadata.xml8
-rw-r--r--gentoo/trinity-base/ksvg/Manifest1
-rw-r--r--gentoo/trinity-base/ksvg/files/ksvg-3.5.13.1-bug1311.patch14
-rw-r--r--gentoo/trinity-base/ksvg/ksvg-3.5.13.1.ebuild20
-rw-r--r--gentoo/trinity-base/ksvg/ksvg-9999.ebuild18
-rw-r--r--gentoo/trinity-base/ksvg/metadata.xml8
-rw-r--r--gentoo/trinity-base/ksysguard/Manifest2
l---------gentoo/trinity-base/ksysguard/files/shared1
-rw-r--r--gentoo/trinity-base/ksysguard/ksysguard-3.5.13.1.ebuild20
-rw-r--r--gentoo/trinity-base/ksysguard/ksysguard-3.5.13.2.ebuild20
-rw-r--r--gentoo/trinity-base/ksysguard/ksysguard-9999.ebuild20
-rw-r--r--gentoo/trinity-base/ksysguard/metadata.xml11
-rw-r--r--gentoo/trinity-base/ksystraycmd/Manifest2
l---------gentoo/trinity-base/ksystraycmd/files/shared1
-rw-r--r--gentoo/trinity-base/ksystraycmd/ksystraycmd-3.5.13.1.ebuild11
-rw-r--r--gentoo/trinity-base/ksystraycmd/ksystraycmd-3.5.13.2.ebuild11
-rw-r--r--gentoo/trinity-base/ksystraycmd/ksystraycmd-9999.ebuild11
-rw-r--r--gentoo/trinity-base/ksystraycmd/metadata.xml8
-rw-r--r--gentoo/trinity-base/ktalkd/Manifest1
-rw-r--r--gentoo/trinity-base/ktalkd/ktalkd-3.5.13.1.ebuild23
-rw-r--r--gentoo/trinity-base/ktalkd/ktalkd-9999.ebuild23
-rw-r--r--gentoo/trinity-base/ktalkd/metadata.xml8
-rw-r--r--gentoo/trinity-base/kteatime/Manifest2
l---------gentoo/trinity-base/kteatime/files/shared1
-rw-r--r--gentoo/trinity-base/kteatime/kteatime-3.5.13.1.ebuild11
-rw-r--r--gentoo/trinity-base/kteatime/kteatime-3.5.13.2.ebuild11
-rw-r--r--gentoo/trinity-base/kteatime/kteatime-9999.ebuild11
-rw-r--r--gentoo/trinity-base/kteatime/metadata.xml8
-rw-r--r--gentoo/trinity-base/ktimer/Manifest2
l---------gentoo/trinity-base/ktimer/files/shared1
-rw-r--r--gentoo/trinity-base/ktimer/ktimer-3.5.13.1.ebuild11
-rw-r--r--gentoo/trinity-base/ktimer/ktimer-3.5.13.2.ebuild11
-rw-r--r--gentoo/trinity-base/ktimer/ktimer-9999.ebuild11
-rw-r--r--gentoo/trinity-base/ktimer/metadata.xml8
-rw-r--r--gentoo/trinity-base/ktip/Manifest2
l---------gentoo/trinity-base/ktip/files/shared1
-rw-r--r--gentoo/trinity-base/ktip/ktip-3.5.13.1.ebuild11
-rw-r--r--gentoo/trinity-base/ktip/ktip-3.5.13.2.ebuild11
-rw-r--r--gentoo/trinity-base/ktip/ktip-9999.ebuild11
-rw-r--r--gentoo/trinity-base/ktip/metadata.xml8
-rw-r--r--gentoo/trinity-base/ktnef/Manifest2
-rw-r--r--gentoo/trinity-base/ktnef/ktnef-3.5.13.1.ebuild13
-rw-r--r--gentoo/trinity-base/ktnef/ktnef-3.5.13.2.ebuild13
-rw-r--r--gentoo/trinity-base/ktnef/ktnef-9999.ebuild13
-rw-r--r--gentoo/trinity-base/ktnef/metadata.xml8
-rw-r--r--gentoo/trinity-base/ktux/Manifest2
l---------gentoo/trinity-base/ktux/files/shared1
-rw-r--r--gentoo/trinity-base/ktux/ktux-3.5.13.1.ebuild11
-rw-r--r--gentoo/trinity-base/ktux/ktux-3.5.13.2.ebuild11
-rw-r--r--gentoo/trinity-base/ktux/ktux-9999.ebuild11
-rw-r--r--gentoo/trinity-base/ktux/metadata.xml8
-rw-r--r--gentoo/trinity-base/kuickshow/Manifest1
-rw-r--r--gentoo/trinity-base/kuickshow/kuickshow-3.5.13.1.ebuild15
-rw-r--r--gentoo/trinity-base/kuickshow/kuickshow-9999.ebuild15
-rw-r--r--gentoo/trinity-base/kuickshow/metadata.xml8
-rw-r--r--gentoo/trinity-base/kview/Manifest1
-rw-r--r--gentoo/trinity-base/kview/kview-3.5.13.1.ebuild12
-rw-r--r--gentoo/trinity-base/kview/kview-9999.ebuild12
-rw-r--r--gentoo/trinity-base/kview/metadata.xml8
-rw-r--r--gentoo/trinity-base/kviewshell/Manifest1
-rw-r--r--gentoo/trinity-base/kviewshell/kviewshell-3.5.13.1.ebuild11
-rw-r--r--gentoo/trinity-base/kviewshell/kviewshell-9999.ebuild11
-rw-r--r--gentoo/trinity-base/kviewshell/metadata.xml8
-rw-r--r--gentoo/trinity-base/kwallet/Manifest2
l---------gentoo/trinity-base/kwallet/files/shared1
-rw-r--r--gentoo/trinity-base/kwallet/kwallet-3.5.13.1.ebuild11
-rw-r--r--gentoo/trinity-base/kwallet/kwallet-3.5.13.2.ebuild11
-rw-r--r--gentoo/trinity-base/kwallet/metadata.xml8
-rw-r--r--gentoo/trinity-base/kweather/Manifest2
l---------gentoo/trinity-base/kweather/files/shared1
-rw-r--r--gentoo/trinity-base/kweather/kweather-3.5.13.1.ebuild11
-rw-r--r--gentoo/trinity-base/kweather/kweather-3.5.13.2.ebuild11
-rw-r--r--gentoo/trinity-base/kweather/kweather-9999.ebuild11
-rw-r--r--gentoo/trinity-base/kweather/metadata.xml8
-rw-r--r--gentoo/trinity-base/kwifimanager/Manifest1
-rw-r--r--gentoo/trinity-base/kwifimanager/files/kwifimanager-fix-3.5.13.1.patch25
-rw-r--r--gentoo/trinity-base/kwifimanager/kwifimanager-3.5.13.1.ebuild26
-rw-r--r--gentoo/trinity-base/kwifimanager/kwifimanager-9999.ebuild24
-rw-r--r--gentoo/trinity-base/kwifimanager/metadata.xml8
-rw-r--r--gentoo/trinity-base/kwin/Manifest2
-rw-r--r--gentoo/trinity-base/kwin/kwin-3.5.13.1.ebuild29
-rw-r--r--gentoo/trinity-base/kwin/kwin-3.5.13.2.ebuild29
-rw-r--r--gentoo/trinity-base/kwin/metadata.xml8
-rw-r--r--gentoo/trinity-base/kworldclock/Manifest2
l---------gentoo/trinity-base/kworldclock/files/shared1
-rw-r--r--gentoo/trinity-base/kworldclock/kworldclock-3.5.13.1.ebuild11
-rw-r--r--gentoo/trinity-base/kworldclock/kworldclock-3.5.13.2.ebuild11
-rw-r--r--gentoo/trinity-base/kworldclock/kworldclock-9999.ebuild11
-rw-r--r--gentoo/trinity-base/kworldclock/metadata.xml8
-rw-r--r--gentoo/trinity-base/kxkb/Manifest2
l---------gentoo/trinity-base/kxkb/files/shared1
-rw-r--r--gentoo/trinity-base/kxkb/kxkb-3.5.13.1.ebuild24
-rw-r--r--gentoo/trinity-base/kxkb/kxkb-3.5.13.2.ebuild24
-rw-r--r--gentoo/trinity-base/kxkb/kxkb-9999.ebuild24
-rw-r--r--gentoo/trinity-base/kxkb/metadata.xml8
-rw-r--r--gentoo/trinity-base/libkcal/Manifest2
-rw-r--r--gentoo/trinity-base/libkcal/libkcal-3.5.13.1.ebuild19
-rw-r--r--gentoo/trinity-base/libkcal/libkcal-3.5.13.2.ebuild19
-rw-r--r--gentoo/trinity-base/libkcal/libkcal-9999.ebuild19
-rw-r--r--gentoo/trinity-base/libkcal/metadata.xml8
-rw-r--r--gentoo/trinity-base/libkdenetwork/Manifest1
-rw-r--r--gentoo/trinity-base/libkdenetwork/libkdenetwork-3.5.13.2.ebuild17
-rw-r--r--gentoo/trinity-base/libkdenetwork/metadata.xml8
-rw-r--r--gentoo/trinity-base/libkdepim/Manifest2
-rw-r--r--gentoo/trinity-base/libkdepim/libkdepim-3.5.13.1.ebuild28
-rw-r--r--gentoo/trinity-base/libkdepim/libkdepim-3.5.13.2.ebuild28
-rw-r--r--gentoo/trinity-base/libkdepim/metadata.xml8
-rw-r--r--gentoo/trinity-base/libkholidays/Manifest1
-rw-r--r--gentoo/trinity-base/libkholidays/libkholidays-3.5.13.2.ebuild13
-rw-r--r--gentoo/trinity-base/libkholidays/libkholidays-9999.ebuild13
-rw-r--r--gentoo/trinity-base/libkholidays/metadata.xml8
-rw-r--r--gentoo/trinity-base/libkmime/Manifest2
-rw-r--r--gentoo/trinity-base/libkmime/libkmime-3.5.13.1.ebuild13
-rw-r--r--gentoo/trinity-base/libkmime/libkmime-3.5.13.2.ebuild13
-rw-r--r--gentoo/trinity-base/libkmime/libkmime-9999.ebuild13
-rw-r--r--gentoo/trinity-base/libkmime/metadata.xml8
-rw-r--r--gentoo/trinity-base/libkonq/Manifest2
-rw-r--r--gentoo/trinity-base/libkonq/files/libkonq-3.5.13.1-onlyshowin-tde.patch20
l---------gentoo/trinity-base/libkonq/files/shared1
-rw-r--r--gentoo/trinity-base/libkonq/libkonq-3.5.13.1.ebuild22
-rw-r--r--gentoo/trinity-base/libkonq/libkonq-3.5.13.2.ebuild22
-rw-r--r--gentoo/trinity-base/libkonq/libkonq-9999.ebuild12
-rw-r--r--gentoo/trinity-base/libkonq/metadata.xml8
-rw-r--r--gentoo/trinity-base/libkpimexchange/Manifest1
-rw-r--r--gentoo/trinity-base/libkpimexchange/libkpimexchange-3.5.13.2.ebuild19
-rw-r--r--gentoo/trinity-base/libkpimexchange/libkpimexchange-9999.ebuild19
-rw-r--r--gentoo/trinity-base/libkpimexchange/metadata.xml8
-rw-r--r--gentoo/trinity-base/libkpimidentities/Manifest1
-rw-r--r--gentoo/trinity-base/libkpimidentities/libkpimidentities-3.5.13.2.ebuild19
-rw-r--r--gentoo/trinity-base/libkpimidentities/libkpimidentities-9999.ebuild19
-rw-r--r--gentoo/trinity-base/libkpimidentities/metadata.xml8
-rw-r--r--gentoo/trinity-base/libkscan/Manifest1
-rw-r--r--gentoo/trinity-base/libkscan/files/tdegraphics-libkscan-fix-name.patch13
-rw-r--r--gentoo/trinity-base/libkscan/libkscan-3.5.13.1.ebuild16
-rw-r--r--gentoo/trinity-base/libkscan/libkscan-9999.ebuild14
-rw-r--r--gentoo/trinity-base/libkscan/metadata.xml8
-rw-r--r--gentoo/trinity-base/librss/Manifest1
-rw-r--r--gentoo/trinity-base/librss/files/tdenetwork-fix-export-librss.patch21
-rw-r--r--gentoo/trinity-base/librss/librss-3.5.13.1.ebuild13
-rw-r--r--gentoo/trinity-base/librss/librss-9999.ebuild11
-rw-r--r--gentoo/trinity-base/librss/metadata.xml8
-rw-r--r--gentoo/trinity-base/libtdegames/libtdegames-9999.ebuild11
-rw-r--r--gentoo/trinity-base/libtdegames/metadata.xml8
-rw-r--r--gentoo/trinity-base/libtdenetwork/libtdenetwork-9999.ebuild17
-rw-r--r--gentoo/trinity-base/libtdenetwork/metadata.xml8
-rw-r--r--gentoo/trinity-base/libtdepim/libtdepim-9999.ebuild29
-rw-r--r--gentoo/trinity-base/libtdepim/metadata.xml8
-rw-r--r--gentoo/trinity-base/lisa/Manifest1
-rw-r--r--gentoo/trinity-base/lisa/files/lisa19
-rw-r--r--gentoo/trinity-base/lisa/files/lisa-3.5.13.1-6f85c0c-fix-references-to-user-profile-directory.patch52
-rw-r--r--gentoo/trinity-base/lisa/files/lisa.conf11
-rw-r--r--gentoo/trinity-base/lisa/files/reslisa19
-rw-r--r--gentoo/trinity-base/lisa/files/reslisa.conf8
-rw-r--r--gentoo/trinity-base/lisa/lisa-3.5.13.1.ebuild31
-rw-r--r--gentoo/trinity-base/lisa/lisa-9999.ebuild28
-rw-r--r--gentoo/trinity-base/lisa/metadata.xml8
-rw-r--r--gentoo/trinity-base/noatun-plugins/metadata.xml8
-rw-r--r--gentoo/trinity-base/noatun-plugins/noatun-plugins-9999.ebuild45
-rw-r--r--gentoo/trinity-base/nsplugins/Manifest2
l---------gentoo/trinity-base/nsplugins/files/shared1
-rw-r--r--gentoo/trinity-base/nsplugins/metadata.xml8
-rw-r--r--gentoo/trinity-base/nsplugins/nsplugins-3.5.13.1.ebuild16
-rw-r--r--gentoo/trinity-base/nsplugins/nsplugins-3.5.13.2.ebuild16
-rw-r--r--gentoo/trinity-base/nsplugins/nsplugins-9999.ebuild16
-rw-r--r--gentoo/trinity-base/renamedlg-plugins/metadata.xml8
-rw-r--r--gentoo/trinity-base/renamedlg-plugins/renamedlg-plugins-9999.ebuild12
-rw-r--r--gentoo/trinity-base/superkaramba/Manifest2
l---------gentoo/trinity-base/superkaramba/files/shared1
-rw-r--r--gentoo/trinity-base/superkaramba/metadata.xml8
-rw-r--r--gentoo/trinity-base/superkaramba/superkaramba-3.5.13.1.ebuild24
-rw-r--r--gentoo/trinity-base/superkaramba/superkaramba-3.5.13.2.ebuild24
-rw-r--r--gentoo/trinity-base/superkaramba/superkaramba-9999.ebuild24
-rw-r--r--gentoo/trinity-base/tde-i18n/metadata.xml8
-rw-r--r--gentoo/trinity-base/tde-i18n/tde-i18n-9999.ebuild60
-rw-r--r--gentoo/trinity-base/tdeaddons-doc/metadata.xml8
-rw-r--r--gentoo/trinity-base/tdeaddons-doc/tdeaddons-doc-9999.ebuild27
-rw-r--r--gentoo/trinity-base/tdeaddons-meta/metadata.xml8
-rw-r--r--gentoo/trinity-base/tdeaddons-meta/tdeaddons-meta-9999.ebuild30
-rw-r--r--gentoo/trinity-base/tdeaddons-tdefile-plugins/metadata.xml8
-rw-r--r--gentoo/trinity-base/tdeaddons-tdefile-plugins/tdeaddons-tdefile-plugins-9999.ebuild11
-rw-r--r--gentoo/trinity-base/tdeartwork-emoticons/metadata.xml8
-rw-r--r--gentoo/trinity-base/tdeartwork-emoticons/tdeartwork-emoticons-9999.ebuild11
-rw-r--r--gentoo/trinity-base/tdeartwork-icewm-themes/metadata.xml8
-rw-r--r--gentoo/trinity-base/tdeartwork-icewm-themes/tdeartwork-icewm-themes-9999.ebuild18
-rw-r--r--gentoo/trinity-base/tdeartwork-icon-themes/metadata.xml8
-rw-r--r--gentoo/trinity-base/tdeartwork-icon-themes/tdeartwork-icon-themes-9999.ebuild23
-rw-r--r--gentoo/trinity-base/tdeartwork-kworldclock/metadata.xml8
-rw-r--r--gentoo/trinity-base/tdeartwork-kworldclock/tdeartwork-kworldclock-9999.ebuild14
-rw-r--r--gentoo/trinity-base/tdeartwork-meta/metadata.xml8
-rw-r--r--gentoo/trinity-base/tdeartwork-meta/tdeartwork-meta-9999.ebuild27
-rw-r--r--gentoo/trinity-base/tdeartwork-sounds/metadata.xml8
-rw-r--r--gentoo/trinity-base/tdeartwork-sounds/tdeartwork-sounds-9999.ebuild11
-rw-r--r--gentoo/trinity-base/tdeartwork-styles/metadata.xml8
-rw-r--r--gentoo/trinity-base/tdeartwork-styles/tdeartwork-styles-9999.ebuild11
-rw-r--r--gentoo/trinity-base/tdeartwork-tdescreensaver/metadata.xml8
-rw-r--r--gentoo/trinity-base/tdeartwork-tdescreensaver/tdeartwork-tdescreensaver-9999.ebuild33
-rw-r--r--gentoo/trinity-base/tdeartwork-twin-styles/metadata.xml8
-rw-r--r--gentoo/trinity-base/tdeartwork-twin-styles/tdeartwork-twin-styles-9999.ebuild13
-rw-r--r--gentoo/trinity-base/tdeartwork-wallpapers/metadata.xml8
-rw-r--r--gentoo/trinity-base/tdeartwork-wallpapers/tdeartwork-wallpapers-9999.ebuild11
l---------gentoo/trinity-base/tdebase-data/files/shared1
-rw-r--r--gentoo/trinity-base/tdebase-data/metadata.xml8
-rw-r--r--gentoo/trinity-base/tdebase-data/tdebase-data-9999.ebuild13
-rw-r--r--gentoo/trinity-base/tdebase-meta/metadata.xml8
-rw-r--r--gentoo/trinity-base/tdebase-meta/tdebase-meta-9999.ebuild61
-rw-r--r--gentoo/trinity-base/tdebase-pam/files/tde-np.pam-610
-rw-r--r--gentoo/trinity-base/tdebase-pam/files/tde.pam-710
-rw-r--r--gentoo/trinity-base/tdebase-pam/metadata.xml9
-rw-r--r--gentoo/trinity-base/tdebase-pam/tdebase-pam-7.ebuild21
-rw-r--r--gentoo/trinity-base/tdebase-starttde/files/agent-shutdown.sh13
-rw-r--r--gentoo/trinity-base/tdebase-starttde/files/agent-startup.sh29
-rw-r--r--gentoo/trinity-base/tdebase-starttde/files/kdebase-startkde-trinity-gentoo.patch46
l---------gentoo/trinity-base/tdebase-starttde/files/shared1
-rw-r--r--gentoo/trinity-base/tdebase-starttde/files/tdebase-starttde-14-gentoo.patch32
-rw-r--r--gentoo/trinity-base/tdebase-starttde/metadata.xml8
-rw-r--r--gentoo/trinity-base/tdebase-starttde/tdebase-starttde-9999.ebuild95
l---------gentoo/trinity-base/tdebase-tdeioslaves/files/shared1
-rw-r--r--gentoo/trinity-base/tdebase-tdeioslaves/metadata.xml15
-rw-r--r--gentoo/trinity-base/tdebase-tdeioslaves/tdebase-tdeioslaves-9999.ebuild47
-rw-r--r--gentoo/trinity-base/tdedebugdialog/metadata.xml8
-rw-r--r--gentoo/trinity-base/tdedebugdialog/tdedebugdialog-9999.ebuild12
-rw-r--r--gentoo/trinity-base/tdednssd/metadata.xml8
-rw-r--r--gentoo/trinity-base/tdednssd/tdednssd-9999.ebuild11
-rw-r--r--gentoo/trinity-base/tdeeject/metadata.xml8
-rw-r--r--gentoo/trinity-base/tdeeject/tdeeject-9999.ebuild15
-rw-r--r--gentoo/trinity-base/tdegames-doc/metadata.xml8
-rw-r--r--gentoo/trinity-base/tdegames-doc/tdegames-doc-9999.ebuild27
-rw-r--r--gentoo/trinity-base/tdegames-meta/metadata.xml8
-rw-r--r--gentoo/trinity-base/tdegames-meta/tdegames-meta-9999.ebuild52
-rw-r--r--gentoo/trinity-base/tdegraphics-doc/metadata.xml8
-rw-r--r--gentoo/trinity-base/tdegraphics-doc/tdegraphics-doc-9999.ebuild27
-rw-r--r--gentoo/trinity-base/tdegraphics-meta/metadata.xml8
-rw-r--r--gentoo/trinity-base/tdegraphics-meta/tdegraphics-meta-9999.ebuild40
-rw-r--r--gentoo/trinity-base/tdegraphics-tdefile-plugins/metadata.xml8
-rw-r--r--gentoo/trinity-base/tdegraphics-tdefile-plugins/tdegraphics-tdefile-plugins-9999.ebuild29
-rw-r--r--gentoo/trinity-base/tdeiconedit/metadata.xml8
-rw-r--r--gentoo/trinity-base/tdeiconedit/tdeiconedit-9999.ebuild11
l---------gentoo/trinity-base/tdeinit/files/shared1
-rw-r--r--gentoo/trinity-base/tdeinit/metadata.xml8
-rw-r--r--gentoo/trinity-base/tdeinit/tdeinit-9999.ebuild11
-rw-r--r--gentoo/trinity-base/tdelibs/metadata.xml17
-rw-r--r--gentoo/trinity-base/tdelibs/tdelibs-9999.ebuild143
-rw-r--r--gentoo/trinity-base/tdelirc/metadata.xml8
-rw-r--r--gentoo/trinity-base/tdelirc/tdelirc-9999.ebuild11
l---------gentoo/trinity-base/tdenetwork-doc/files/shared1
-rw-r--r--gentoo/trinity-base/tdenetwork-doc/metadata.xml8
-rw-r--r--gentoo/trinity-base/tdenetwork-doc/tdenetwork-doc-9999.ebuild27
-rw-r--r--gentoo/trinity-base/tdenetwork-filesharing/metadata.xml8
-rw-r--r--gentoo/trinity-base/tdenetwork-filesharing/tdenetwork-filesharing-9999.ebuild11
-rw-r--r--gentoo/trinity-base/tdenetwork-meta/metadata.xml8
-rw-r--r--gentoo/trinity-base/tdenetwork-meta/tdenetwork-meta-9999.ebuild36
-rw-r--r--gentoo/trinity-base/tdenetwork-tdefile-plugins/metadata.xml8
-rw-r--r--gentoo/trinity-base/tdenetwork-tdefile-plugins/tdenetwork-tdefile-plugins-9999.ebuild11
l---------gentoo/trinity-base/tdepasswd/files/shared1
-rw-r--r--gentoo/trinity-base/tdepasswd/metadata.xml8
-rw-r--r--gentoo/trinity-base/tdepasswd/tdepasswd-9999.ebuild14
l---------gentoo/trinity-base/tdeprint/files/shared1
-rw-r--r--gentoo/trinity-base/tdeprint/metadata.xml8
-rw-r--r--gentoo/trinity-base/tdeprint/tdeprint-9999.ebuild16
-rw-r--r--gentoo/trinity-base/tdescreensaver/metadata.xml11
-rw-r--r--gentoo/trinity-base/tdescreensaver/tdescreensaver-9999.ebuild30
l---------gentoo/trinity-base/tdesu/files/shared1
-rw-r--r--gentoo/trinity-base/tdesu/metadata.xml12
-rw-r--r--gentoo/trinity-base/tdesu/tdesu-9999.ebuild33
l---------gentoo/trinity-base/tdetoys-doc/files/shared1
-rw-r--r--gentoo/trinity-base/tdetoys-doc/metadata.xml8
-rw-r--r--gentoo/trinity-base/tdetoys-doc/tdetoys-doc-9999.ebuild27
-rw-r--r--gentoo/trinity-base/tdetoys-meta/metadata.xml8
-rw-r--r--gentoo/trinity-base/tdetoys-meta/tdetoys-meta-9999.ebuild28
-rw-r--r--gentoo/trinity-base/tdeutils-doc/metadata.xml8
-rw-r--r--gentoo/trinity-base/tdeutils-doc/tdeutils-doc-9999.ebuild13
-rw-r--r--gentoo/trinity-base/tdeutils-meta/metadata.xml8
-rw-r--r--gentoo/trinity-base/tdeutils-meta/tdeutils-meta-9999.ebuild36
-rw-r--r--gentoo/trinity-base/tdewallet/metadata.xml8
-rw-r--r--gentoo/trinity-base/tdewallet/tdewallet-9999.ebuild11
l---------gentoo/trinity-base/tdm/files/shared1
-rwxr-xr-xgentoo/trinity-base/tdm/files/tdm-9999-xsession.script66
-rw-r--r--gentoo/trinity-base/tdm/metadata.xml12
-rw-r--r--gentoo/trinity-base/tdm/tdm-9999.ebuild104
-rw-r--r--gentoo/trinity-base/tqt3integration/Manifest2
l---------gentoo/trinity-base/tqt3integration/files/shared1
-rw-r--r--gentoo/trinity-base/tqt3integration/metadata.xml8
-rw-r--r--gentoo/trinity-base/tqt3integration/tqt3integration-3.5.13.1.ebuild11
-rw-r--r--gentoo/trinity-base/tqt3integration/tqt3integration-3.5.13.2.ebuild11
-rw-r--r--gentoo/trinity-base/tqt3integration/tqt3integration-9999.ebuild11
l---------gentoo/trinity-base/twin/files/shared1
-rw-r--r--gentoo/trinity-base/twin/metadata.xml14
-rw-r--r--gentoo/trinity-base/twin/twin-9999.ebuild47
1065 files changed, 25874 insertions, 0 deletions
diff --git a/gentoo/Documentation/README b/gentoo/Documentation/README
new file mode 100644
index 000000000..27e94fd60
--- /dev/null
+++ b/gentoo/Documentation/README
@@ -0,0 +1,17 @@
+This is a trinity Gentoo overlay.
+Please don't report bugs to Gentoo bugzilla.
+If you want to report a bug feel free to email me at fatzer2@gmail.com. I'm able to read and write in Russian and English.
+Overlay will be filled with ebuilds of ported to cmake programs from the Trinity Project.
+If you are interested in ebuilds for some packages that are not in the overlay, you can email me too.
+
+Live ebuilds aren't tested at all, but you still can try to build them on your own risk.
+
+In order to properly use this overlay, you have to unmask the qt3 USE flag and packages.
+To do so, execute the following commands as root:
+
+# mkdir -p /etc/portage/profile
+# echo -qt3 >> /etc/portage/profile/use.mask
+# mkdir -p /etc/portage/packages.keywords/
+# cp /var/lib/layman/trinity /etc/portage/packages.keywords/
+
+NOTE: hal compilation is now broken. If you know how to fix it, write me an email.
diff --git a/gentoo/Documentation/TODO b/gentoo/Documentation/TODO
new file mode 100644
index 000000000..ee4d90285
--- /dev/null
+++ b/gentoo/Documentation/TODO
@@ -0,0 +1,27 @@
+Need some workarounds on the LDPATH variable. [don't remember what's wrong there, seems it's obsolete]
+
+arts: test
+kdm: test/fix SAK in kdm.
+tdebase-starttde: test the script more heavyly
+sys-apps/hal: fix use description
+trinity-base/ksysguard[dell-laptop] test if it requires i8k kernel module
+trinity-base/kdegraphics-kfile-plugins: add a dependencies for pdf USE (poppler?)
+trinity-base/kdegraphics-kfile-plugins: check for other additional depedencies.
+trinity-base/kpdf: check for it should depend on kdegraphics-kfile-plugins[pdf]
+trinity-base/kpdf: check for other additional depedencies.
+trinity-base/kghostview: check for it should depend on kdegraphics-kfile-plugins[pdf]
+trinity-base/kghostview: check for other additional depedencies.
+trinity-base/kmrml: add dependencies, see what is it.
+trinity-base/kviewshell: test if it depends on kde-base/kdebase-kioslaves
+
+trinity-base/kgpg: check dependencies
+trinity-base/kgpg: if it's possible add app-crypt/pinentry[qt3] to overlay
+
+trinity-base/kopete: review
+trinity-base/tdebase-starttde: add gentoo-specific lines like those in kdebase-starttde
+
+trinity-base/tde-i18n: the ebuild is crappy and need to be rewriten.
+trinity-base/ksmserver-9999: FTBFS with hal. TODO: fill the bug
+
+trinity-base/noatun-plugins: masked due to missing dependency: noatun;
+trinity-base/noatun-plugins: unmask than packaging trinity-base/noatun
diff --git a/gentoo/Documentation/derived-lists/kdeartwork-3.5.13.1 b/gentoo/Documentation/derived-lists/kdeartwork-3.5.13.1
new file mode 100644
index 000000000..94dd7375c
--- /dev/null
+++ b/gentoo/Documentation/derived-lists/kdeartwork-3.5.13.1
@@ -0,0 +1,9 @@
+trinity-base/kdeartwork-emoticons
+trinity-base/kdeartwork-icon-themes
+trinity-base/kdeartwork-icewm-themes
+trinity-base/kdeartwork-kscreensaver
+trinity-base/kdeartwork-kwin-styles
+trinity-base/kdeartwork-kworldclock
+trinity-base/kdeartwork-sounds
+trinity-base/kdeartwork-styles
+trinity-base/kdeartwork-wallpapers
diff --git a/gentoo/Documentation/derived-lists/kdebase-3.5.13.1 b/gentoo/Documentation/derived-lists/kdebase-3.5.13.1
new file mode 100644
index 000000000..9b15eb267
--- /dev/null
+++ b/gentoo/Documentation/derived-lists/kdebase-3.5.13.1
@@ -0,0 +1,42 @@
+trinity-base/kdebase-starttde
+trinity-base/drkonqi
+trinity-base/kappfinder
+trinity-base/kate
+trinity-base/kcheckpass
+trinity-base/kcminit
+trinity-base/kcontrol
+trinity-base/kdcop
+trinity-base/kdebugdialog
+trinity-base/kdepasswd
+trinity-base/kdeprint
+trinity-base/kdesktop
+trinity-base/kdesu
+trinity-base/kdialog
+trinity-base/kdm
+trinity-base/kfind
+trinity-base/khelpcenter
+trinity-base/khotkeys
+trinity-base/kicker
+trinity-base/kdebase-kioslaves
+trinity-base/klipper
+trinity-base/kmenuedit
+trinity-base/konqueror
+trinity-base/konsole
+trinity-base/kpager
+trinity-base/kpersonalizer
+trinity-base/kreadconfig
+trinity-base/kscreensaver
+trinity-base/ksmserver
+trinity-base/ksplashml
+trinity-base/kstart
+trinity-base/ksysguard
+trinity-base/ksystraycmd
+trinity-base/ktip
+trinity-base/kwin
+trinity-base/kxkb
+trinity-base/libkonq
+trinity-base/nsplugins
+trinity-base/knetattach
+trinity-base/kdebase-data
+trinity-base/krootbacking
+trinity-base/tqt3integration
diff --git a/gentoo/Documentation/derived-lists/kdebase-3.5.13.2 b/gentoo/Documentation/derived-lists/kdebase-3.5.13.2
new file mode 100644
index 000000000..9b15eb267
--- /dev/null
+++ b/gentoo/Documentation/derived-lists/kdebase-3.5.13.2
@@ -0,0 +1,42 @@
+trinity-base/kdebase-starttde
+trinity-base/drkonqi
+trinity-base/kappfinder
+trinity-base/kate
+trinity-base/kcheckpass
+trinity-base/kcminit
+trinity-base/kcontrol
+trinity-base/kdcop
+trinity-base/kdebugdialog
+trinity-base/kdepasswd
+trinity-base/kdeprint
+trinity-base/kdesktop
+trinity-base/kdesu
+trinity-base/kdialog
+trinity-base/kdm
+trinity-base/kfind
+trinity-base/khelpcenter
+trinity-base/khotkeys
+trinity-base/kicker
+trinity-base/kdebase-kioslaves
+trinity-base/klipper
+trinity-base/kmenuedit
+trinity-base/konqueror
+trinity-base/konsole
+trinity-base/kpager
+trinity-base/kpersonalizer
+trinity-base/kreadconfig
+trinity-base/kscreensaver
+trinity-base/ksmserver
+trinity-base/ksplashml
+trinity-base/kstart
+trinity-base/ksysguard
+trinity-base/ksystraycmd
+trinity-base/ktip
+trinity-base/kwin
+trinity-base/kxkb
+trinity-base/libkonq
+trinity-base/nsplugins
+trinity-base/knetattach
+trinity-base/kdebase-data
+trinity-base/krootbacking
+trinity-base/tqt3integration
diff --git a/gentoo/Documentation/derived-lists/kdegraphics-3.5.13.1 b/gentoo/Documentation/derived-lists/kdegraphics-3.5.13.1
new file mode 100644
index 000000000..5a9031049
--- /dev/null
+++ b/gentoo/Documentation/derived-lists/kdegraphics-3.5.13.1
@@ -0,0 +1,21 @@
+trinity-base/kamera
+trinity-base/kcoloredit
+#! trinity-base/kdvi
+#! trinity-base/kfax
+trinity-base/kdegraphics-doc
+trinity-base/kdegraphics-kfile-plugins
+trinity-base/kgamma
+trinity-base/kghostview
+trinity-base/kiconedit
+trinity-base/kmrml
+trinity-base/kolourpaint
+trinity-base/kooka
+trinity-base/kpdf
+trinity-base/kpovmodeler
+trinity-base/kruler
+trinity-base/ksnapshot
+trinity-base/ksvg
+trinity-base/kuickshow
+trinity-base/kview
+trinity-base/kviewshell
+trinity-base/libkscan
diff --git a/gentoo/Documentation/derived-lists/kdemultimedia-3.5.13.1 b/gentoo/Documentation/derived-lists/kdemultimedia-3.5.13.1
new file mode 100644
index 000000000..7601d50cf
--- /dev/null
+++ b/gentoo/Documentation/derived-lists/kdemultimedia-3.5.13.1
@@ -0,0 +1,16 @@
+#? trinity-base/akode
+#? trinity-base/apps-artsplugins
+#? trinity-base/juk
+#? trinity-base/kaboodle
+#? trinity-base/kaudiocreator
+#? trinity-base/kdemultimedia-arts
+#? trinity-base/kdemultimedia-kappfinder-data
+#? trinity-base/kdemultimedia-kfile-plugins
+#? trinity-base/kdemultimedia-kioslaves
+#? trinity-base/kmid
+trinity-base/kmix
+#? trinity-base/krec
+#? trinity-base/kscd
+#? trinity-base/libkcddb
+#? trinity-base/mpeglib
+#? trinity-base/noatun
diff --git a/gentoo/Documentation/derived-lists/kdenetwork-3.5.13.1 b/gentoo/Documentation/derived-lists/kdenetwork-3.5.13.1
new file mode 100644
index 000000000..db5da8ac8
--- /dev/null
+++ b/gentoo/Documentation/derived-lists/kdenetwork-3.5.13.1
@@ -0,0 +1,18 @@
+trinity-base/dcoprss
+trinity-base/kdict
+trinity-base/kdnssd
+trinity-base/kget
+trinity-base/knewsticker
+trinity-base/kopete
+trinity-base/kpf
+trinity-base/kppp
+trinity-base/krdc
+trinity-base/krfb
+trinity-base/ksirc
+trinity-base/ktalkd
+trinity-base/kwifimanager
+trinity-base/librss
+trinity-base/lisa
+trinity-base/kdenetwork-doc
+trinity-base/kdenetwork-filesharing
+trinity-base/kdenetwork-kfile-plugins
diff --git a/gentoo/Documentation/derived-lists/kdepim-3.5.13.1 b/gentoo/Documentation/derived-lists/kdepim-3.5.13.1
new file mode 100644
index 000000000..9baa2271a
--- /dev/null
+++ b/gentoo/Documentation/derived-lists/kdepim-3.5.13.1
@@ -0,0 +1,37 @@
+trinity-base/akregator
+#? trinity-base/certmanager
+#? trinity-base/kdepim-doc
+#? trinity-base/indexlib
+#? trinity-base/kabc
+#? trinity-base/kaddressbook
+#? trinity-base/kalarm
+#? trinity-base/kandy
+#? trinity-base/karm
+#? trinity-base/kfile-plugins
+#? trinity-base/kgantt
+#? trinity-base/kdepim-kioslaves
+#? trinity-base/kitchensync
+#? trinity-base/kmail
+#? trinity-base/kmailcvt
+#? trinity-base/kmobile
+#? trinity-base/knode
+#? trinity-base/knotes
+#? trinity-base/kode
+#? trinity-base/konsolekalendar
+#? trinity-base/kontact
+#? trinity-base/korganizer
+#? trinity-base/korn
+#? trinity-base/kdepim-kresources
+trinity-base/ktnef
+#? trinity-base/libemailfunctions
+trinity-base/libkcal
+#? trinity-base/libkholidays
+trinity-base/libkmime
+#? trinity-base/libkpgp
+#? trinity-base/libkpimexchange
+#? trinity-base/libkpimidentities
+#? trinity-base/libksieve
+#? trinity-base/libkdenetwork
+trinity-base/libkdepim
+#? trinity-base/mimelib
+#? trinity-base/kdepim-wizards
diff --git a/gentoo/Documentation/derived-lists/kdepim-3.5.13.2 b/gentoo/Documentation/derived-lists/kdepim-3.5.13.2
new file mode 100644
index 000000000..552415a13
--- /dev/null
+++ b/gentoo/Documentation/derived-lists/kdepim-3.5.13.2
@@ -0,0 +1,37 @@
+trinity-base/akregator
+trinity-base/certmanager
+#? trinity-base/kdepim-doc
+#? trinity-base/indexlib
+#? trinity-base/kabc
+trinity-base/kaddressbook
+#? trinity-base/kalarm
+#? trinity-base/kandy
+#? trinity-base/karm
+#? trinity-base/kfile-plugins
+trinity-base/kgantt
+#? trinity-base/kdepim-kioslaves
+#? trinity-base/kitchensync
+#? trinity-base/kmail
+#? trinity-base/kmailcvt
+#? trinity-base/kmobile
+#? trinity-base/knode
+trinity-base/knotes
+#? trinity-base/kode
+#? trinity-base/konsolekalendar
+trinity-base/kontact
+trinity-base/korganizer
+#? trinity-base/korn
+#? trinity-base/kdepim-kresources
+trinity-base/ktnef
+#? trinity-base/libemailfunctions
+trinity-base/libkcal
+trinity-base/libkholidays
+trinity-base/libkmime
+#? trinity-base/libkpgp
+trinity-base/libkpimexchange
+trinity-base/libkpimidentities
+#? trinity-base/libksieve
+trinity-base/libkdenetwork
+trinity-base/libkdepim
+#? trinity-base/mimelib
+#? trinity-base/kdepim-wizards
diff --git a/gentoo/Documentation/derived-lists/kdetoys-3.5.13.1 b/gentoo/Documentation/derived-lists/kdetoys-3.5.13.1
new file mode 100644
index 000000000..d424d6c4c
--- /dev/null
+++ b/gentoo/Documentation/derived-lists/kdetoys-3.5.13.1
@@ -0,0 +1,10 @@
+trinity-base/amor
+trinity-base/eyesapplet
+trinity-base/fifteenapplet
+trinity-base/kdetoys-doc
+trinity-base/kmoon
+trinity-base/kodo
+trinity-base/kteatime
+trinity-base/ktux
+trinity-base/kweather
+trinity-base/kworldclock
diff --git a/gentoo/Documentation/derived-lists/kdetoys-3.5.13.2 b/gentoo/Documentation/derived-lists/kdetoys-3.5.13.2
new file mode 100644
index 000000000..d424d6c4c
--- /dev/null
+++ b/gentoo/Documentation/derived-lists/kdetoys-3.5.13.2
@@ -0,0 +1,10 @@
+trinity-base/amor
+trinity-base/eyesapplet
+trinity-base/fifteenapplet
+trinity-base/kdetoys-doc
+trinity-base/kmoon
+trinity-base/kodo
+trinity-base/kteatime
+trinity-base/ktux
+trinity-base/kweather
+trinity-base/kworldclock
diff --git a/gentoo/Documentation/derived-lists/kdeutils-3.5.13.1 b/gentoo/Documentation/derived-lists/kdeutils-3.5.13.1
new file mode 100644
index 000000000..9dcaed673
--- /dev/null
+++ b/gentoo/Documentation/derived-lists/kdeutils-3.5.13.1
@@ -0,0 +1,18 @@
+trinity-base/ark
+trinity-base/kdeutils-doc
+trinity-base/kcalc
+trinity-base/kcharselect
+trinity-base/kdelirc
+trinity-base/kdf
+trinity-base/kedit
+trinity-base/kfloppy
+trinity-base/kgpg
+trinity-base/khexedit
+trinity-base/kjots
+trinity-base/klaptopdaemon
+trinity-base/kmilo
+trinity-base/kregexpeditor
+trinity-base/ksim
+trinity-base/ktimer
+trinity-base/kwallet
+trinity-base/superkaramba
diff --git a/gentoo/Documentation/derived-lists/kdeutils-3.5.13.2 b/gentoo/Documentation/derived-lists/kdeutils-3.5.13.2
new file mode 100644
index 000000000..9dcaed673
--- /dev/null
+++ b/gentoo/Documentation/derived-lists/kdeutils-3.5.13.2
@@ -0,0 +1,18 @@
+trinity-base/ark
+trinity-base/kdeutils-doc
+trinity-base/kcalc
+trinity-base/kcharselect
+trinity-base/kdelirc
+trinity-base/kdf
+trinity-base/kedit
+trinity-base/kfloppy
+trinity-base/kgpg
+trinity-base/khexedit
+trinity-base/kjots
+trinity-base/klaptopdaemon
+trinity-base/kmilo
+trinity-base/kregexpeditor
+trinity-base/ksim
+trinity-base/ktimer
+trinity-base/kwallet
+trinity-base/superkaramba
diff --git a/gentoo/Documentation/derived-lists/tdeaddons-9999 b/gentoo/Documentation/derived-lists/tdeaddons-9999
new file mode 100644
index 000000000..f9df50643
--- /dev/null
+++ b/gentoo/Documentation/derived-lists/tdeaddons-9999
@@ -0,0 +1,11 @@
+trinity-apps/atlantikdesigner
+trinity-base/tdeaddons-doc
+trinity-base/kaddressbook-plugins
+trinity-base/kate-plugins
+trinity-base/kicker-applets
+trinity-base/knewsticker-scripts
+trinity-base/konq-plugins
+trinity-base/ksig
+# trinity-base/noatun-plugins
+trinity-base/renamedlg-plugins
+trinity-base/tdeaddons-tdefile-plugins
diff --git a/gentoo/Documentation/derived-lists/tdeartwork-9999 b/gentoo/Documentation/derived-lists/tdeartwork-9999
new file mode 100644
index 000000000..079020283
--- /dev/null
+++ b/gentoo/Documentation/derived-lists/tdeartwork-9999
@@ -0,0 +1,9 @@
+trinity-base/tdeartwork-emoticons
+trinity-base/tdeartwork-icon-themes
+trinity-base/tdeartwork-icewm-themes
+trinity-base/tdeartwork-tdescreensaver
+trinity-base/tdeartwork-twin-styles
+trinity-base/tdeartwork-kworldclock
+trinity-base/tdeartwork-sounds
+trinity-base/tdeartwork-styles
+trinity-base/tdeartwork-wallpapers
diff --git a/gentoo/Documentation/derived-lists/tdebase-9999 b/gentoo/Documentation/derived-lists/tdebase-9999
new file mode 100644
index 000000000..43ea8f642
--- /dev/null
+++ b/gentoo/Documentation/derived-lists/tdebase-9999
@@ -0,0 +1,43 @@
+trinity-base/tdebase-starttde
+trinity-base/drkonqi
+trinity-base/kappfinder
+trinity-base/kate
+trinity-base/kcheckpass
+trinity-base/kcminit
+trinity-base/kcontrol
+trinity-base/kdcop
+trinity-base/tdedebugdialog
+trinity-base/tdepasswd
+trinity-base/tdeprint
+trinity-base/kdesktop
+trinity-base/tdesu
+trinity-base/kdialog
+trinity-base/tdm
+trinity-base/kfind
+trinity-base/khelpcenter
+trinity-base/khotkeys
+trinity-base/kicker
+trinity-base/tdebase-tdeioslaves
+trinity-base/klipper
+trinity-base/kmenuedit
+trinity-base/konqueror
+trinity-base/konsole
+trinity-base/kpager
+trinity-base/kpersonalizer
+trinity-base/kreadconfig
+trinity-base/tdescreensaver
+trinity-base/ksmserver
+trinity-base/ksplashml
+trinity-base/kstart
+trinity-base/ksysguard
+trinity-base/ksystraycmd
+trinity-base/ktip
+trinity-base/twin
+trinity-base/kxkb
+trinity-base/libkonq
+trinity-base/nsplugins
+trinity-base/knetattach
+trinity-base/tdebase-data
+trinity-base/krootbacking
+trinity-base/tqt3integration
+trinity-base/tdeinit
diff --git a/gentoo/Documentation/derived-lists/tdegames-9999 b/gentoo/Documentation/derived-lists/tdegames-9999
new file mode 100644
index 000000000..8731fda7e
--- /dev/null
+++ b/gentoo/Documentation/derived-lists/tdegames-9999
@@ -0,0 +1,34 @@
+trinity-apps/atlantik
+trinity-base/tdegames-doc
+trinity-apps/kasteroids
+trinity-apps/katomic
+trinity-apps/kbackgammon
+trinity-apps/kbattleship
+trinity-apps/kblackbox
+trinity-apps/kbounce
+trinity-apps/kenolaba
+trinity-apps/kfouleggs
+trinity-apps/kgoldrunner
+trinity-apps/kjumpingcube
+trinity-apps/klickety
+trinity-apps/klines
+trinity-apps/kmahjongg
+trinity-apps/kmines
+trinity-apps/knetwalk
+trinity-apps/kolf
+trinity-apps/konquest
+trinity-apps/kpat
+trinity-apps/kpoker
+trinity-apps/kreversi
+trinity-apps/ksame
+trinity-apps/kshisen
+trinity-apps/ksirtet
+trinity-apps/ksmiletris
+trinity-apps/ksnake
+trinity-apps/ksokoban
+trinity-apps/kspaceduel
+trinity-apps/ktron
+trinity-apps/ktuberling
+trinity-base/libtdegames
+trinity-apps/lskat
+trinity-apps/twin4
diff --git a/gentoo/Documentation/derived-lists/tdegraphics-9999 b/gentoo/Documentation/derived-lists/tdegraphics-9999
new file mode 100644
index 000000000..b61ed8bfa
--- /dev/null
+++ b/gentoo/Documentation/derived-lists/tdegraphics-9999
@@ -0,0 +1,21 @@
+trinity-base/kamera
+trinity-base/kcoloredit
+trinity-base/kdvi
+trinity-base/kfax
+trinity-base/tdegraphics-doc
+trinity-base/tdegraphics-tdefile-plugins
+trinity-base/kgamma
+trinity-base/kghostview
+trinity-base/kiconedit
+trinity-base/kmrml
+trinity-base/kolourpaint
+trinity-base/kooka
+trinity-base/kpdf
+trinity-base/kpovmodeler
+trinity-base/kruler
+trinity-base/ksnapshot
+trinity-base/ksvg
+trinity-base/kuickshow
+trinity-base/kview
+trinity-base/kviewshell
+trinity-base/libkscan
diff --git a/gentoo/Documentation/derived-lists/tdemultimedia-9999 b/gentoo/Documentation/derived-lists/tdemultimedia-9999
new file mode 100644
index 000000000..7601d50cf
--- /dev/null
+++ b/gentoo/Documentation/derived-lists/tdemultimedia-9999
@@ -0,0 +1,16 @@
+#? trinity-base/akode
+#? trinity-base/apps-artsplugins
+#? trinity-base/juk
+#? trinity-base/kaboodle
+#? trinity-base/kaudiocreator
+#? trinity-base/kdemultimedia-arts
+#? trinity-base/kdemultimedia-kappfinder-data
+#? trinity-base/kdemultimedia-kfile-plugins
+#? trinity-base/kdemultimedia-kioslaves
+#? trinity-base/kmid
+trinity-base/kmix
+#? trinity-base/krec
+#? trinity-base/kscd
+#? trinity-base/libkcddb
+#? trinity-base/mpeglib
+#? trinity-base/noatun
diff --git a/gentoo/Documentation/derived-lists/tdenetwork-9999 b/gentoo/Documentation/derived-lists/tdenetwork-9999
new file mode 100644
index 000000000..35c32c3b9
--- /dev/null
+++ b/gentoo/Documentation/derived-lists/tdenetwork-9999
@@ -0,0 +1,18 @@
+trinity-base/dcoprss
+trinity-base/kdict
+trinity-base/kget
+trinity-base/knewsticker
+trinity-base/kopete
+trinity-base/kpf
+trinity-base/kppp
+trinity-base/krdc
+trinity-base/krfb
+trinity-base/ksirc
+trinity-base/ktalkd
+trinity-base/kwifimanager
+trinity-base/librss
+trinity-base/lisa
+trinity-base/tdednssd
+trinity-base/tdenetwork-doc
+trinity-base/tdenetwork-filesharing
+trinity-base/tdenetwork-tdefile-plugins
diff --git a/gentoo/Documentation/derived-lists/tdepim-9999 b/gentoo/Documentation/derived-lists/tdepim-9999
new file mode 100644
index 000000000..6e32cfd43
--- /dev/null
+++ b/gentoo/Documentation/derived-lists/tdepim-9999
@@ -0,0 +1,37 @@
+trinity-base/akregator
+trinity-base/certmanager
+#? trinity-base/kdepim-doc
+#? trinity-base/indexlib
+#? trinity-base/kabc
+trinity-base/kaddressbook
+#? trinity-base/kalarm
+#? trinity-base/kandy
+#? trinity-base/karm
+#? trinity-base/kfile-plugins
+trinity-base/kgantt
+#? trinity-base/tdepim-kioslaves
+#? trinity-base/kitchensync
+#? trinity-base/kmail
+#? trinity-base/kmailcvt
+#? trinity-base/kmobile
+#? trinity-base/knode
+trinity-base/knotes
+#? trinity-base/kode
+#? trinity-base/konsolekalendar
+trinity-base/kontact
+#? trinity-base/korganizer
+#? trinity-base/korn
+#? trinity-base/tdepim-kresources
+trinity-base/ktnef
+#? trinity-base/libemailfunctions
+trinity-base/libkcal
+trinity-base/libkholidays
+trinity-base/libkmime
+#? trinity-base/libkpgp
+trinity-base/libkpimexchange
+trinity-base/libkpimidentities
+#? trinity-base/libksieve
+trinity-base/libtdenetwork
+trinity-base/libtdepim
+#? trinity-base/mimelib
+#? trinity-base/tdepim-wizards
diff --git a/gentoo/Documentation/derived-lists/tdetoys-9999 b/gentoo/Documentation/derived-lists/tdetoys-9999
new file mode 100644
index 000000000..4da2cbc71
--- /dev/null
+++ b/gentoo/Documentation/derived-lists/tdetoys-9999
@@ -0,0 +1,10 @@
+trinity-base/amor
+trinity-base/eyesapplet
+trinity-base/fifteenapplet
+trinity-base/tdetoys-doc
+trinity-base/kmoon
+trinity-base/kodo
+trinity-base/kteatime
+trinity-base/ktux
+trinity-base/kweather
+trinity-base/kworldclock
diff --git a/gentoo/Documentation/derived-lists/tdeutils-9999 b/gentoo/Documentation/derived-lists/tdeutils-9999
new file mode 100644
index 000000000..300d3f367
--- /dev/null
+++ b/gentoo/Documentation/derived-lists/tdeutils-9999
@@ -0,0 +1,18 @@
+trinity-base/ark
+trinity-base/tdeutils-doc
+trinity-base/kcalc
+trinity-base/kcharselect
+trinity-base/kdf
+trinity-base/kedit
+trinity-base/kfloppy
+trinity-base/kgpg
+trinity-base/khexedit
+trinity-base/kjots
+trinity-base/klaptopdaemon
+trinity-base/kmilo
+trinity-base/kregexpeditor
+trinity-base/ksim
+trinity-base/ktimer
+trinity-base/superkaramba
+trinity-base/tdelirc
+trinity-base/tdewallet
diff --git a/gentoo/Documentation/scripts/test_separate_compilation.sh b/gentoo/Documentation/scripts/test_separate_compilation.sh
new file mode 100755
index 000000000..75b980f18
--- /dev/null
+++ b/gentoo/Documentation/scripts/test_separate_compilation.sh
@@ -0,0 +1,85 @@
+#!/bin/bash
+# !!!WARNING!!! use with caution
+#
+# This script suppose the kdelibs to be installed
+# how to use :
+# dependecies_test_compilation <package![use[,use]...] [...]
+
+die() {
+ echo '!!! $@'
+ exit -100500
+}
+
+
+RESULT_DIR="/tmp/test-build-$(date +%Y-%m-%d_%H-%M)"
+SUCCESS_LIST="${RESULT_DIR}/success_list"
+FAIL_LIST="${RESULT_DIR}/fail_list"
+LOGS_DIR="${RESULT_DIR}/logs/"
+CONFIG_BAK="${RESULT_DIR}/portage_bak.tar.gz"
+PORTAGE_CONFIG="/etc/portage"
+EMERGE_AUTOUNMASK_OPTS="--autounmask y --autounmask-keep-masks y --autounmask-write y"
+mkdir -p "${RESULT_DIR}" "${LOGS_DIR}";
+
+for pkguse in "$@"; do
+done
+
+# backup config
+tar -cf "${CONFIG_BAK}" -C / "${PORTAGE_CONFIG#/}" || die "backup config failed"
+
+# initial cleanup
+( emerge -NuD world &&
+ emerge --depclean &&
+ emerge -NuD world &&
+ revdep-rebuild &&
+ rm -rf /var/tmp/portage ) || die "initial cleaning failed"
+
+for pkguse in "$@"; do
+ pkg="${pkguse%!*}"
+ use="${pkguse#*!}"
+ use="${use/,// }"
+ pkg_use_file="${PORTAGE_CONFIG}/package.use"
+ [ -d ${pkg_use_file} ] && pkg_use_file="${pkg_use_file}/test.use"
+ echo "$pkg $use" >>"$pkg_use_file"
+ pkg_failed=no
+ # check for it can be emerged due to depenencies uses
+ emerge -p "$pkg"
+ if [ "$?" != 0 ]; then
+ #try unmask uses
+ CONFIG_PROTECT_MASK="/etc/portage" emerge ${EMERGE_AUTOUNMASK_OPTS} "$pkg"
+ emerge -p "$pkg"
+ if [ "$?" != 0 ]; then
+ # we can't emerge the package
+ mkdir -p "${LOGS_DIR}/${pkg}"
+ emerge -p "$pkg" >"${LOGS_DIR}/${pkg}/emerge_failed" 2>&1
+ pkg_failed=yes
+ fi
+ fi
+
+ if [ "$pkg_failed" == no ]; then
+ emerge -1 "$pkg"
+ if [ "$?" != 0 ]; then
+ mkdir -p "${LOGS_DIR}/${pkg}"
+ for f_pkg in $(cd /var/tmp/portage/ && ls -d */*); do
+ cp "/var/tmp/portage/${f_pkg}/temp/build.log" "${LOGS_DIR}/${pkg}/${f_pkg/\//_}.build"
+ done
+ pkg_failed=yes
+ fi
+ fi
+
+ if [ "$pkg_failed" == no ]; then
+ echo "$pkg" >>"${SUCCESS_LIST}"
+ else
+ echo "$pkg" >>"${FAIL_LIST}"
+ fi
+
+ # restoring config
+ rm -rf ${PORTAGE_CONFIG}
+ tar -xf "${CONFIG_BAK}" -C /
+
+ # let's clean system
+ ( emerge -NuD world &&
+ emerge --depclean &&
+ emerge -NuD world &&
+ revdep-rebuild &&
+ rm -rf /var/tmp/portage ) || die "cleaning failed"
+done
diff --git a/gentoo/Documentation/scripts/update-keywords-lists b/gentoo/Documentation/scripts/update-keywords-lists
new file mode 100755
index 000000000..9390cdfb0
--- /dev/null
+++ b/gentoo/Documentation/scripts/update-keywords-lists
@@ -0,0 +1,32 @@
+#!/bin/bash
+
+DOC="Documentation"
+KEYWORDS_LIVE="$DOC/trinity.live.keywords"
+KEYWORDS_3_5_13_2="$DOC/trinity.3.5.13.2.keywords"
+
+resort() {
+ cp "${1}" "${1}.bak"
+ cat "${1}.bak" | sort -u >"$1" && rm "${1}.bak"
+}
+
+find trinity-base/ trinity-apps/ -iname '*9999.ebuild' | while read eb; do
+ PN="$(basename $(dirname ${eb}))"
+ C="$(basename $(dirname $(dirname ${eb})))"
+ P="$(basename ${eb%%.ebuild})"
+ if ! grep "^~$C/$P " "${KEYWORDS_LIVE}" >/dev/null 2>&1; then
+ echo "~$C/$P **" | tee -a "${KEYWORDS_LIVE}"
+ fi
+done
+
+resort "${KEYWORDS_LIVE}"
+
+
+find trinity-base/ trinity-apps -iname '*3.5.13.2.ebuild' | while read eb; do
+ PN="$(basename $(dirname ${eb}))"
+ C="$(basename $(dirname $(dirname ${eb})))"
+ P="$(basename ${eb%%.ebuild})"
+ if ! grep "^~$C/$P" "${KEYWORDS_3_5_13_2}" >/dev/null 2>&1; then
+ echo "~$C/$P" | tee -a "${KEYWORDS_3_5_13_2}"
+ fi
+done
+resort "${KEYWORDS_3_5_13_2}"
diff --git a/gentoo/Documentation/scripts/usefull_commands b/gentoo/Documentation/scripts/usefull_commands
new file mode 100644
index 000000000..8ecaa9888
--- /dev/null
+++ b/gentoo/Documentation/scripts/usefull_commands
@@ -0,0 +1,15 @@
+# Per ebuild check and commit
+for I in <packages> ; do cp kate/metadata.xml $I; ebuild $I/$I-3.9999.ebuild digest; git add $I; git commit -m $I; done
+for I in kstart ksystraycmd ksysguard nsplugin kate kxkb ; do cp kate/metadata.xml $I; ebuild $I/$I-3.9999.ebuild digest; git add $I; git commit -m $I; done
+
+# update trinity live lists
+find trinity-base/ -iname '*9999.ebuild' | while read eb; do PN="$(basename $(dirname ${eb}))"; C="$(basename $(dirname $(dirname ${eb})))"; P="$(basename ${eb%%.ebuild})"; echo "~$C/$P"' **'; done | tee Documentation/trinity.live.keywords
+
+# update all manifests
+find . -iname *.ebuild | while read eb; do ebuild $eb digest; done
+
+# run ./test_separate_compilation.sh
+cat Documentation/derived-lists/<LIST> | sed 's/#.*//;s/^\s*//;s/\s*$//;/^\s*$/d' |xargs bash ./test_separate_compilation.sh
+
+# update manifests which older thatn ebuilds
+find . -iname *.ebuild | while read eb; do ma="$(dirname $eb)/Manifest"; find $(dirname $eb) -type f | while read f; do [ $f -nt $ma ] && ebuild $eb digest && touch $ma; done; done
diff --git a/gentoo/Documentation/scripts/write-ebuild.sh b/gentoo/Documentation/scripts/write-ebuild.sh
new file mode 100755
index 000000000..c567bd6fe
--- /dev/null
+++ b/gentoo/Documentation/scripts/write-ebuild.sh
@@ -0,0 +1,60 @@
+#!/bin/bash
+# Usage ; write-ebuild.sh <TRINITY_MODULE_NAME> [<CATEGORY/]><PN> [DESCRIPTION]
+export LC_ALL=C
+
+EAPI="5"
+
+TRINITY_MODULE_NAME=$1
+PN=$(basename ${2})
+CATEGORY=$(dirname ${2})
+CATEGORY=${CATEGORY:-trinity-base}
+DESCRIPTION="$3"
+
+PV=${PV:=9999}
+KEYWORDS="amd64 x86"
+case "${PV}" in
+ *3.5.13.2) KEYWORDS="~amd64 ~x86" ;;
+ *9999*) KEYWORDS="" ;;
+esac
+
+if [ -z "$DESCRIPTION" ]; then
+ DESCRIPTION_SOURCES=( ${CATEGORY/trinity/kde}/${PN} ${CATEGORY/trinity/kde}/${PN/k/t} kde-base/${PN} kde-base/${PN/k/t} )
+ for descsrc in ${DESCRIPTION_SOURCES[@]}; do
+ DESCRIPTION="$(eix -C $(dirname ${descsrc}) -s $(basename "${descsrc}") | sed -n '/^\s*Description:\s*/{s///;s/\(\<KDE\|\kde\)\>/Trinity/g;p}')"
+ [ -n "$DESCRIPTION" ] && break
+ done
+fi
+
+echo "==> Creating ebuild for ${PN}-${PV}"
+
+mkdir -p "${CATEGORY}/$PN"
+
+cat <<EOF >${CATEGORY}/$PN/$PN-${PV}.ebuild
+# Copyright 1999-$(date +%Y) Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# \$Id\$
+EAPI="$EAPI"
+TRINITY_MODULE_NAME="$TRINITY_MODULE_NAME"
+
+inherit trinity-meta
+
+DESCRIPTION="$DESCRIPTION"
+KEYWORDS="$KEYWORDS"
+IUSE+=""
+EOF
+
+cat <<EOF >"${CATEGORY}/$PN"/metadata.xml
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
+EOF
+
+if [ -d eclass/trinity-shared-files/${TRINITY_MODULE_NAME}-${PV} ]; then
+ mkdir -p "${CATEGORY}/$PN/files/"
+ ln -s "../../../eclass/trinity-shared-files/" "trinity-base/$PN/files/shared"
+fi
diff --git a/gentoo/Documentation/trinity.3.5.13.2.keywords b/gentoo/Documentation/trinity.3.5.13.2.keywords
new file mode 100644
index 000000000..5fbfc2444
--- /dev/null
+++ b/gentoo/Documentation/trinity.3.5.13.2.keywords
@@ -0,0 +1,90 @@
+~trinity-base/akregator-3.5.13.2
+~trinity-base/amor-3.5.13.2
+~trinity-base/ark-3.5.13.2
+~trinity-base/arts-3.5.13.2
+~trinity-base/certmanager-3.5.13.2
+~trinity-base/drkonqi-3.5.13.2
+~trinity-base/eyesapplet-3.5.13.2
+~trinity-base/fifteenapplet-3.5.13.2
+~trinity-base/kaddressbook-3.5.13.2
+~trinity-base/kappfinder-3.5.13.2
+~trinity-base/kate-3.5.13.2
+~trinity-base/kcalc-3.5.13.2
+~trinity-base/kcharselect-3.5.13.2
+~trinity-base/kcheckpass-3.5.13.2
+~trinity-base/kcminit-3.5.13.2
+~trinity-base/kcontrol-3.5.13.2
+~trinity-base/kdcop-3.5.13.2
+~trinity-base/kdebase-data-3.5.13.2
+~trinity-base/kdebase-kioslaves-3.5.13.2
+~trinity-base/kdebase-meta-3.5.13.2
+~trinity-base/kdebase-starttde-3.5.13.2
+~trinity-base/kdebugdialog-3.5.13.2
+~trinity-base/kdeeject-3.5.13.2
+~trinity-base/kdelibs-3.5.13.2
+~trinity-base/kdelirc-3.5.13.2
+~trinity-base/kdepasswd-3.5.13.2
+~trinity-base/kdeprint-3.5.13.2
+~trinity-base/kdesktop-3.5.13.2
+~trinity-base/kdesu-3.5.13.2
+~trinity-base/kdetoys-doc-3.5.13.2
+~trinity-base/kdeutils-doc-3.5.13.2
+~trinity-base/kdeutils-meta-3.5.13.2
+~trinity-base/kdf-3.5.13.2
+~trinity-base/kdialog-3.5.13.2
+~trinity-base/kdm-3.5.13.2
+~trinity-base/kedit-3.5.13.2
+~trinity-base/kfind-3.5.13.2
+~trinity-base/kfloppy-3.5.13.2
+~trinity-base/kgantt-3.5.13.2
+~trinity-base/kgpg-3.5.13.2
+~trinity-base/khelpcenter-3.5.13.2
+~trinity-base/khexedit-3.5.13.2
+~trinity-base/khotkeys-3.5.13.2
+~trinity-base/kicker-3.5.13.2
+~trinity-base/kjots-3.5.13.2
+~trinity-base/klaptopdaemon-3.5.13.2
+~trinity-base/klipper-3.5.13.2
+~trinity-base/kmenuedit-3.5.13.2
+~trinity-base/kmilo-3.5.13.2
+~trinity-base/kmoon-3.5.13.2
+~trinity-base/knetattach-3.5.13.2
+~trinity-base/knotes-3.5.13.2
+~trinity-base/kodo-3.5.13.2
+~trinity-base/konqueror-3.5.13.2
+~trinity-base/konsole-3.5.13.2
+~trinity-base/kontact-3.5.13.2
+~trinity-base/korganizer-3.5.13.2
+~trinity-base/kpager-3.5.13.2
+~trinity-base/kpersonalizer-3.5.13.2
+~trinity-base/kreadconfig-3.5.13.2
+~trinity-base/kregexpeditor-3.5.13.2
+~trinity-base/krootbacking-3.5.13.2
+~trinity-base/kscreensaver-3.5.13.2
+~trinity-base/ksim-3.5.13.2
+~trinity-base/ksmserver-3.5.13.2
+~trinity-base/ksplashml-3.5.13.2
+~trinity-base/kstart-3.5.13.2
+~trinity-base/ksysguard-3.5.13.2
+~trinity-base/ksystraycmd-3.5.13.2
+~trinity-base/kteatime-3.5.13.2
+~trinity-base/ktimer-3.5.13.2
+~trinity-base/ktip-3.5.13.2
+~trinity-base/ktnef-3.5.13.2
+~trinity-base/ktux-3.5.13.2
+~trinity-base/kwallet-3.5.13.2
+~trinity-base/kweather-3.5.13.2
+~trinity-base/kwin-3.5.13.2
+~trinity-base/kworldclock-3.5.13.2
+~trinity-base/kxkb-3.5.13.2
+~trinity-base/libkcal-3.5.13.2
+~trinity-base/libkdenetwork-3.5.13.2
+~trinity-base/libkdepim-3.5.13.2
+~trinity-base/libkholidays-3.5.13.2
+~trinity-base/libkmime-3.5.13.2
+~trinity-base/libkonq-3.5.13.2
+~trinity-base/libkpimexchange-3.5.13.2
+~trinity-base/libkpimidentities-3.5.13.2
+~trinity-base/nsplugins-3.5.13.2
+~trinity-base/superkaramba-3.5.13.2
+~trinity-base/tqt3integration-3.5.13.2
diff --git a/gentoo/Documentation/trinity.live.keywords b/gentoo/Documentation/trinity.live.keywords
new file mode 100644
index 000000000..662ac9827
--- /dev/null
+++ b/gentoo/Documentation/trinity.live.keywords
@@ -0,0 +1,200 @@
+~dev-libs/dbus-1-tqt-9999 **
+~dev-libs/dbus-tqt-9999 **
+~dev-qt/tqt-3.9999 **
+~dev-qt/tqtinterface-9999 **
+~net-irc/konversation-1.1.9999 **
+~trinity-apps/atlantik-9999 **
+~trinity-apps/atlantikdesigner-9999 **
+~trinity-apps/filelight-9999 **
+~trinity-apps/kasteroids-9999 **
+~trinity-apps/katomic-9999 **
+~trinity-apps/kbackgammon-9999 **
+~trinity-apps/kbattleship-9999 **
+~trinity-apps/kblackbox-9999 **
+~trinity-apps/kbounce-9999 **
+~trinity-apps/kenolaba-9999 **
+~trinity-apps/kfouleggs-9999 **
+~trinity-apps/kgoldrunner-9999 **
+~trinity-apps/kjumpingcube-9999 **
+~trinity-apps/klickety-9999 **
+~trinity-apps/klines-9999 **
+~trinity-apps/kmahjongg-9999 **
+~trinity-apps/kmines-9999 **
+~trinity-apps/knetwalk-9999 **
+~trinity-apps/kolf-9999 **
+~trinity-apps/konquest-9999 **
+~trinity-apps/kpat-9999 **
+~trinity-apps/kpoker-9999 **
+~trinity-apps/kreversi-9999 **
+~trinity-apps/ksame-9999 **
+~trinity-apps/kshisen-9999 **
+~trinity-apps/ksirtet-9999 **
+~trinity-apps/ksmiletris-9999 **
+~trinity-apps/ksnake-9999 **
+~trinity-apps/ksokoban-9999 **
+~trinity-apps/kspaceduel-9999 **
+~trinity-apps/ktron-9999 **
+~trinity-apps/ktuberling-9999 **
+~trinity-apps/lskat-9999 **
+~trinity-apps/twin4-9999 **
+~trinity-base/akregator-9999 **
+~trinity-base/amor-9999 **
+~trinity-base/ark-9999 **
+~trinity-base/arts-9999 **
+~trinity-base/certmanager-9999 **
+~trinity-base/dcoprss-9999 **
+~trinity-base/drkonqi-9999 **
+~trinity-base/eyesapplet-9999 **
+~trinity-base/fifteenapplet-9999 **
+~trinity-base/kaddressbook-9999 **
+~trinity-base/kaddressbook-plugins-9999 **
+~trinity-base/kamera-9999 **
+~trinity-base/kappfinder-9999 **
+~trinity-base/kate-9999 **
+~trinity-base/kate-plugins-9999 **
+~trinity-base/kcalc-9999 **
+~trinity-base/kcharselect-9999 **
+~trinity-base/kcheckpass-9999 **
+~trinity-base/kcminit-9999 **
+~trinity-base/kcoloredit-9999 **
+~trinity-base/kcontrol-9999 **
+~trinity-base/kdcop-9999 **
+~trinity-base/kdesktop-9999 **
+~trinity-base/kdetoys-doc-9999 **
+~trinity-base/kdf-9999 **
+~trinity-base/kdialog-9999 **
+~trinity-base/kdict-9999 **
+~trinity-base/kdvi-9999 **
+~trinity-base/kedit-9999 **
+~trinity-base/kfax-9999 **
+~trinity-base/kfind-9999 **
+~trinity-base/kfloppy-9999 **
+~trinity-base/kgamma-9999 **
+~trinity-base/kgantt-9999 **
+~trinity-base/kget-9999 **
+~trinity-base/kghostview-9999 **
+~trinity-base/kgpg-9999 **
+~trinity-base/khelpcenter-9999 **
+~trinity-base/khexedit-9999 **
+~trinity-base/khotkeys-9999 **
+~trinity-base/kicker-9999 **
+~trinity-base/kicker-applets-9999 **
+~trinity-base/kiconedit-9999 **
+~trinity-base/kjots-9999 **
+~trinity-base/klaptopdaemon-9999 **
+~trinity-base/klipper-9999 **
+~trinity-base/kmenuedit-9999 **
+~trinity-base/kmilo-9999 **
+~trinity-base/kmix-9999 **
+~trinity-base/kmoon-9999 **
+~trinity-base/kmrml-9999 **
+~trinity-base/knetattach-9999 **
+~trinity-base/knewsticker-9999 **
+~trinity-base/knewsticker-scripts-9999 **
+~trinity-base/knotes-9999 **
+~trinity-base/kodo-9999 **
+~trinity-base/kolourpaint-9999 **
+~trinity-base/konq-plugins-9999 **
+~trinity-base/konqueror-9999 **
+~trinity-base/konsole-9999 **
+~trinity-base/kontact-9999 **
+~trinity-base/kooka-9999 **
+~trinity-base/kopete-9999 **
+~trinity-base/korganizer-9999 **
+~trinity-base/kpager-9999 **
+~trinity-base/kpdf-9999 **
+~trinity-base/kpersonalizer-9999 **
+~trinity-base/kpf-9999 **
+~trinity-base/kpovmodeler-9999 **
+~trinity-base/kppp-9999 **
+~trinity-base/krdc-9999 **
+~trinity-base/kreadconfig-9999 **
+~trinity-base/kregexpeditor-9999 **
+~trinity-base/krfb-9999 **
+~trinity-base/krootbacking-9999 **
+~trinity-base/kruler-9999 **
+~trinity-base/ksig-9999 **
+~trinity-base/ksim-9999 **
+~trinity-base/ksirc-9999 **
+~trinity-base/ksmserver-9999 **
+~trinity-base/ksnapshot-9999 **
+~trinity-base/ksplashml-9999 **
+~trinity-base/kstart-9999 **
+~trinity-base/ksvg-9999 **
+~trinity-base/ksysguard-9999 **
+~trinity-base/ksystraycmd-9999 **
+~trinity-base/ktalkd-9999 **
+~trinity-base/kteatime-9999 **
+~trinity-base/ktimer-9999 **
+~trinity-base/ktip-9999 **
+~trinity-base/ktnef-9999 **
+~trinity-base/ktux-9999 **
+~trinity-base/kuickshow-9999 **
+~trinity-base/kview-9999 **
+~trinity-base/kviewshell-9999 **
+~trinity-base/kweather-9999 **
+~trinity-base/kwifimanager-9999 **
+~trinity-base/kworldclock-9999 **
+~trinity-base/kxkb-9999 **
+~trinity-base/libkcal-9999 **
+~trinity-base/libkholidays-9999 **
+~trinity-base/libkmime-9999 **
+~trinity-base/libkonq-9999 **
+~trinity-base/libkpimexchange-9999 **
+~trinity-base/libkpimidentities-9999 **
+~trinity-base/libkscan-9999 **
+~trinity-base/librss-9999 **
+~trinity-base/libtdegames-9999 **
+~trinity-base/libtdenetwork-9999 **
+~trinity-base/libtdepim-9999 **
+~trinity-base/lisa-9999 **
+~trinity-base/noatun-plugins-9999 **
+~trinity-base/nsplugins-9999 **
+~trinity-base/renamedlg-plugins-9999 **
+~trinity-base/superkaramba-9999 **
+~trinity-base/tdeaddons-doc-9999 **
+~trinity-base/tdeaddons-meta-9999 **
+~trinity-base/tdeaddons-tdefile-plugins-9999 **
+~trinity-base/tdeartwork-emoticons-9999 **
+~trinity-base/tdeartwork-icewm-themes-9999 **
+~trinity-base/tdeartwork-icon-themes-9999 **
+~trinity-base/tdeartwork-kworldclock-9999 **
+~trinity-base/tdeartwork-meta-9999 **
+~trinity-base/tdeartwork-sounds-9999 **
+~trinity-base/tdeartwork-styles-9999 **
+~trinity-base/tdeartwork-tdescreensaver-9999 **
+~trinity-base/tdeartwork-twin-styles-9999 **
+~trinity-base/tdeartwork-wallpapers-9999 **
+~trinity-base/tdebase-data-9999 **
+~trinity-base/tdebase-meta-9999 **
+~trinity-base/tdebase-starttde-9999 **
+~trinity-base/tdebase-tdeioslaves-9999 **
+~trinity-base/tdedebugdialog-9999 **
+~trinity-base/tdednssd-9999 **
+~trinity-base/tdeeject-9999 **
+~trinity-base/tdegames-doc-9999 **
+~trinity-base/tdegames-meta-9999 **
+~trinity-base/tdegraphics-doc-9999 **
+~trinity-base/tdegraphics-meta-9999 **
+~trinity-base/tdegraphics-tdefile-plugins-9999 **
+~trinity-base/tde-i18n-9999 **
+~trinity-base/tdeiconedit-9999 **
+~trinity-base/tdeinit-9999 **
+~trinity-base/tdelibs-9999 **
+~trinity-base/tdelirc-9999 **
+~trinity-base/tdenetwork-doc-9999 **
+~trinity-base/tdenetwork-filesharing-9999 **
+~trinity-base/tdenetwork-meta-9999 **
+~trinity-base/tdenetwork-tdefile-plugins-9999 **
+~trinity-base/tdepasswd-9999 **
+~trinity-base/tdeprint-9999 **
+~trinity-base/tdescreensaver-9999 **
+~trinity-base/tdesu-9999 **
+~trinity-base/tdetoys-doc-9999 **
+~trinity-base/tdetoys-meta-9999 **
+~trinity-base/tdeutils-doc-9999 **
+~trinity-base/tdeutils-meta-9999 **
+~trinity-base/tdewallet-9999 **
+~trinity-base/tdm-9999 **
+~trinity-base/tqt3integration-9999 **
+~trinity-base/twin-9999 **
diff --git a/gentoo/Documentation/trinity.overlay b/gentoo/Documentation/trinity.overlay
new file mode 100644
index 000000000..7c330b3c2
--- /dev/null
+++ b/gentoo/Documentation/trinity.overlay
@@ -0,0 +1,10 @@
+<layman>
+<overlay type="git" src="https://github.com/Fat-Zer/trinity.git" contact="fatzer2@gmail.com" status="unofficial" name="trinity">
+<link>
+http://www.trinitydesktop.org/
+</link>
+<description>
+Gentoo overlay for Trinity Desktop Environment, a fork of KDE3
+</description>
+</overlay>
+</layman>
diff --git a/gentoo/app-misc/hal-info/Manifest b/gentoo/app-misc/hal-info/Manifest
new file mode 100644
index 000000000..e835d3577
--- /dev/null
+++ b/gentoo/app-misc/hal-info/Manifest
@@ -0,0 +1 @@
+DIST hal-info-20091130.tar.gz 144859 SHA256 3b5a90eaea4359977d36c808a19b3f08835345a258c68b9c6c080ad5ef875224 SHA512 c435e60eaa8170cdf12112e4fbefe34180e499de53c5b30d26c6f8999626708a41600d8ce41a2e999f791e0855676d1ef4362d7b3cd52297195294b8b8b3c52e WHIRLPOOL f6e0807376bdaa90332f532429939550a0f3144a818f51cb21f656790a64afdeefab234a16674eb46a02d272a019c7bf698bfce024067b1b680e1b11e13e2284
diff --git a/gentoo/app-misc/hal-info/hal-info-20091130.ebuild b/gentoo/app-misc/hal-info/hal-info-20091130.ebuild
new file mode 100644
index 000000000..2222dd6fc
--- /dev/null
+++ b/gentoo/app-misc/hal-info/hal-info-20091130.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+DESCRIPTION="The fdi scripts that HAL uses"
+HOMEPAGE="http://hal.freedesktop.org/"
+SRC_URI="http://hal.freedesktop.org/releases/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ia64 x86"
+IUSE=""
+
+RDEPEND=">=sys-apps/hal-0.5.10"
+DEPEND="${RDEPEND}"
+
+# This ebuild does not install any binaries
+RESTRICT="binchecks strip"
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+}
diff --git a/gentoo/app-misc/hal-info/metadata.xml b/gentoo/app-misc/hal-info/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/app-misc/hal-info/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/app-mobilephone/gsmlib/Manifest b/gentoo/app-mobilephone/gsmlib/Manifest
new file mode 100644
index 000000000..e3792f037
--- /dev/null
+++ b/gentoo/app-mobilephone/gsmlib/Manifest
@@ -0,0 +1,4 @@
+AUX gsmlib-1.11-gcc41.patch 2110 SHA256 382dfa6e005cee54d14700191d326d3063e1db0f9f8106f9883a1e4790ae83a6 SHA512 75335091d6dccc7babbd5f55f5c2a51cd51dc22a2b4571641e3beec4d35f5d34938a73c3ae2cf91f759521f05a299a628c70bdd6fc3a8a9948023a9f67ab5efa WHIRLPOOL f7039292deb7d4aacc7ba1b35e2fe90af3a0ad2d1f0b83874f4314f04bc49482b5e07fe10b9c57bb95ab293030ce7eda9e117e0327012f038c0a6a17e8aedcc2
+AUX gsmlib-1.11-gcc43.patch 2342 SHA256 a6647855cc4a4100c45ae4a3d4515d3de92113e7140bf49b55ad211629da454a SHA512 1fe3e11cd45de5a29bdf440733aadbd41635d85793d3f0c1fa0d43fab3cdd9d58c9c6d9a32ba5e2600c85095bf614ff0b2e00db3724f3e2031a460b2abc9ecc6 WHIRLPOOL fc49802ba435f029d164081a79fded10c9918294971d4950a17215b0988e1bc998305c85e174d9d981a7fc0fda9620719fff9c3ca3f5170e3cc05c060b85014a
+AUX gsmlib-1.11-include-gcc34-fix.patch 1436 SHA256 59de49fcf775aad7e4d693274500d629bf399d5738f304804e25069745e3d0fd SHA512 1945d62185b3ac6d63763c3547ef2e264626b808c5254d450a415c20451a9d3c360cae95e9469c424d7abcf3abdc4b2ace9ae3d089dcdef8f64b8d64456e241a WHIRLPOOL 5474569e82b5c5aa6278170404427471d94f7a071e43f654ecbd09d111496b619b17be91ccb8cea4ff35b602d8908bec9fe80bd2749bad7129fe3d516b94c5d3
+DIST gsmlib-pre1.11-041028.tar.gz 499052 SHA256 2dae164cdaa3b6ce41cfe4e41501f44bc665296349a5be4d5d10cb260a87231f SHA512 9009fce488b7ed7aeb0a0581f0586a3898911ea042b92369e0242dc8b0292ca82f913058cfd958a7af121be57cf925598dc26822817ccf81027917abe6b6096a WHIRLPOOL 6970eeeca15dfa14204d02f0f3e55e30e9e43808554df5bc2cb9d16496f1e422cf72373906a8b216df61cbe14d619f35dfa3b04fd676caad5d9d983897adcbe9
diff --git a/gentoo/app-mobilephone/gsmlib/files/gsmlib-1.11-gcc41.patch b/gentoo/app-mobilephone/gsmlib/files/gsmlib-1.11-gcc41.patch
new file mode 100644
index 000000000..a7414e36b
--- /dev/null
+++ b/gentoo/app-mobilephone/gsmlib/files/gsmlib-1.11-gcc41.patch
@@ -0,0 +1,52 @@
+diff -ur gsmlib-1.11-orig/gsmlib/gsm_map_key.h gsmlib-1.11/gsmlib/gsm_map_key.h
+--- gsmlib-1.11-orig/gsmlib/gsm_map_key.h 2006-02-25 19:20:52.000000000 -0500
++++ gsmlib-1.11/gsmlib/gsm_map_key.h 2006-02-25 19:23:01.000000000 -0500
+@@ -78,7 +78,7 @@
+ // MapKey members
+
+ template <class SortedStore>
+- bool gsmlib::operator<(const MapKey<SortedStore> &x,
++ bool operator<(const MapKey<SortedStore> &x,
+ const MapKey<SortedStore> &y)
+ {
+ assert(&x._myStore == &y._myStore);
+@@ -103,7 +103,7 @@
+ }
+
+ template <class SortedStore>
+- bool gsmlib::operator==(const MapKey<SortedStore> &x,
++ bool operator==(const MapKey<SortedStore> &x,
+ const MapKey<SortedStore> &y)
+ {
+ assert(&x._myStore == &y._myStore);
+diff -ur gsmlib-1.11-orig/gsmlib/gsm_me_ta.h gsmlib-1.11/gsmlib/gsm_me_ta.h
+--- gsmlib-1.11-orig/gsmlib/gsm_me_ta.h 2006-02-25 19:20:52.000000000 -0500
++++ gsmlib-1.11/gsmlib/gsm_me_ta.h 2006-02-25 19:21:48.000000000 -0500
+@@ -294,8 +294,8 @@
+ // 3 disable phone receive RF circuits only
+ // 4 disable phone both transmit and receive RF circuits
+ // 5...127 implementation-defined
+- int MeTa::getFunctionalityLevel() throw(GsmException);
+- void MeTa::setFunctionalityLevel(int level) throw(GsmException);
++ int getFunctionalityLevel() throw(GsmException);
++ void setFunctionalityLevel(int level) throw(GsmException);
+
+ // return battery charge status (+CBC):
+ // 0 ME is powered by the battery
+@@ -389,13 +389,13 @@
+ void setCallWaitingLockStatus(FacilityClass cl,
+ bool lock)throw(GsmException);
+
+- void MeTa::setCLIRPresentation(bool enable) throw(GsmException);
++ void setCLIRPresentation(bool enable) throw(GsmException);
+ //(+CLIR)
+
+ // 0:according to the subscription of the CLIR service
+ // 1:CLIR invocation
+ // 2:CLIR suppression
+- int MeTa::getCLIRPresentation() throw(GsmException);
++ int getCLIRPresentation() throw(GsmException);
+
+ friend class Phonebook;
+ friend class SMSStore;
+
diff --git a/gentoo/app-mobilephone/gsmlib/files/gsmlib-1.11-gcc43.patch b/gentoo/app-mobilephone/gsmlib/files/gsmlib-1.11-gcc43.patch
new file mode 100644
index 000000000..ddd78c6db
--- /dev/null
+++ b/gentoo/app-mobilephone/gsmlib/files/gsmlib-1.11-gcc43.patch
@@ -0,0 +1,67 @@
+diff -Naurp gsmlib-1.11-orig/gsmlib/gsm_me_ta.cc gsmlib-1.11/gsmlib/gsm_me_ta.cc
+--- gsmlib-1.11-orig/gsmlib/gsm_me_ta.cc 2003-08-26 02:01:36.000000000 -0600
++++ gsmlib-1.11/gsmlib/gsm_me_ta.cc 2008-02-24 15:09:58.000000000 -0600
+@@ -19,6 +19,8 @@
+ #include <gsmlib/gsm_parser.h>
+ #include <gsmlib/gsm_sysdep.h>
+
++#include <cstdlib>
++
+ using namespace std;
+ using namespace gsmlib;
+
+diff -Naurp gsmlib-1.11-orig/gsmlib/gsm_sms_codec.cc gsmlib-1.11/gsmlib/gsm_sms_codec.cc
+--- gsmlib-1.11-orig/gsmlib/gsm_sms_codec.cc 2004-10-27 17:06:06.000000000 -0600
++++ gsmlib-1.11/gsmlib/gsm_sms_codec.cc 2008-02-24 15:10:44.000000000 -0600
+@@ -23,6 +23,7 @@
+ #ifdef HAVE_STRING_H
+ #include <string.h>
+ #endif
++#include <climits>
+ #include <string>
+ using namespace std;
+ using namespace gsmlib;
+diff -Naurp gsmlib-1.11-orig/gsmlib/gsm_util.cc gsmlib-1.11/gsmlib/gsm_util.cc
+--- gsmlib-1.11-orig/gsmlib/gsm_util.cc 2004-10-27 17:05:53.000000000 -0600
++++ gsmlib-1.11/gsmlib/gsm_util.cc 2008-02-24 15:09:36.000000000 -0600
+@@ -35,6 +35,7 @@
+ #define __USE_GNU
+ #define _GNU_SOURCE
+ #endif
++#include <cstdlib>
+ #include <stdio.h>
+ #include <sys/stat.h>
+
+diff -Naurp gsmlib-1.11-orig/gsmlib/gsm_unix_serial.cc gsmlib-1.11/gsmlib/gsm_unix_serial.cc
+--- gsmlib-1.11-orig/gsmlib/gsm_unix_serial.cc 2004-10-27 16:57:35.000000000 -0600
++++ gsmlib-1.11/gsmlib/gsm_unix_serial.cc 2008-02-24 15:19:03.000000000 -0600
+@@ -28,6 +28,7 @@
+ #include <pthread.h>
+ #include <cassert>
+ #include <assert.h>
++#include <cstring>
+
+ using namespace std;
+ using namespace gsmlib;
+diff -Naurp gsmlib-1.11-orig/gsmlib/gsm_sorted_phonebook.cc gsmlib-1.11/gsmlib/gsm_sorted_phonebook.cc
+--- gsmlib-1.11-orig/gsmlib/gsm_sorted_phonebook.cc 2002-05-14 13:38:12.000000000 -0600
++++ gsmlib-1.11/gsmlib/gsm_sorted_phonebook.cc 2008-02-24 15:22:52.000000000 -0600
+@@ -20,6 +20,7 @@
+ #include <iostream>
+ #include <fstream>
+ #include <limits.h>
++#include <cstring>
+
+ const int MAX_LINE_SIZE = 1000;
+
+diff -Naurp gsmlib-1.11-orig/apps/gsmsmsd.cc gsmlib-1.11/apps/gsmsmsd.cc
+--- gsmlib-1.11-orig/apps/gsmsmsd.cc 2003-08-26 00:47:47.000000000 -0600
++++ gsmlib-1.11/apps/gsmsmsd.cc 2008-02-24 15:25:54.000000000 -0600
+@@ -40,6 +40,7 @@
+ #include <iostream>
+ #include <gsmlib/gsm_me_ta.h>
+ #include <gsmlib/gsm_event.h>
++#include <cstring>
+
+ using namespace std;
+ using namespace gsmlib;
diff --git a/gentoo/app-mobilephone/gsmlib/files/gsmlib-1.11-include-gcc34-fix.patch b/gentoo/app-mobilephone/gsmlib/files/gsmlib-1.11-include-gcc34-fix.patch
new file mode 100644
index 000000000..dda545124
--- /dev/null
+++ b/gentoo/app-mobilephone/gsmlib/files/gsmlib-1.11-include-gcc34-fix.patch
@@ -0,0 +1,52 @@
+--- gsmlib-1.11/gsmlib/gsm_map_key.h 2002-05-14 23:38:12.000000000 +0400
++++ gsmlib-1.11-fixed/gsmlib/gsm_map_key.h 2004-08-02 00:56:40.997784696 +0400
+@@ -25,6 +25,16 @@
+
+ // wrapper for map key, can access Sortedtore to get sortOrder()
+
++ // compare two keys
++ template <class SortedStore> class MapKey;
++
++ template <class SortedStore>
++ bool operator<(const MapKey<SortedStore> &x,
++ const MapKey<SortedStore> &y);
++ template <class SortedStore>
++ bool operator==(const MapKey<SortedStore> &x,
++ const MapKey<SortedStore> &y);
++
+ template <class SortedStore> class MapKey
+ {
+ SortedStore &_myStore; // my store
+@@ -47,20 +57,16 @@
+
+ friend
+ bool operator<
+-#ifndef WIN32
+- <>
+-#endif
++ <SortedStore>
+ (const MapKey<SortedStore> &x,
+ const MapKey<SortedStore> &y);
+ friend
+ bool operator==
+-#ifndef WIN32
+- <>
+-#endif
++ <SortedStore>
+ (const MapKey<SortedStore> &x,
+ const MapKey<SortedStore> &y);
+ };
+-
++/*
+ // compare two keys
+ template <class SortedStore>
+ extern bool operator<(const MapKey<SortedStore> &x,
+@@ -68,7 +74,7 @@
+ template <class SortedStore>
+ extern bool operator==(const MapKey<SortedStore> &x,
+ const MapKey<SortedStore> &y);
+-
++ */
+ // MapKey members
+
+ template <class SortedStore>
diff --git a/gentoo/app-mobilephone/gsmlib/gsmlib-1.11_pre041028.ebuild b/gentoo/app-mobilephone/gsmlib/gsmlib-1.11_pre041028.ebuild
new file mode 100644
index 000000000..2b9a496e2
--- /dev/null
+++ b/gentoo/app-mobilephone/gsmlib/gsmlib-1.11_pre041028.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit eutils
+
+DESCRIPTION="Library and applications to access GSM mobile phones"
+SRC_URI="http://www.pxh.de/fs/gsmlib/snapshots/${PN}-pre${PV%_pre*}-${PV#*_pre}.tar.gz"
+HOMEPAGE="http://www.pxh.de/fs/gsmlib/"
+
+IUSE=""
+SLOT="0"
+LICENSE="LGPL-2"
+KEYWORDS="amd64 ~ia64 ppc ppc64 sparc x86"
+
+RESTRICT="test"
+
+S="${WORKDIR}/${PN}-${PV%_pre*}"
+
+src_unpack() {
+ unpack ${A}
+
+ epatch "${FILESDIR}/${P%_pre*}-include-gcc34-fix.patch"
+ epatch "${FILESDIR}/${P%_pre*}-gcc41.patch"
+ epatch "${FILESDIR}"/${P%_pre*}-gcc43.patch
+}
+
+src_install () {
+ emake DESTDIR="${D}" install || die "make install failed"
+ dodoc README
+}
diff --git a/gentoo/app-mobilephone/gsmlib/metadata.xml b/gentoo/app-mobilephone/gsmlib/metadata.xml
new file mode 100644
index 000000000..957f16029
--- /dev/null
+++ b/gentoo/app-mobilephone/gsmlib/metadata.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<!-- maintainer-needed -->
+<longdescription>Library and applications to access GSM mobile phones.</longdescription>
+</pkgmetadata>
diff --git a/gentoo/app-mobilephone/smssend/Manifest b/gentoo/app-mobilephone/smssend/Manifest
new file mode 100644
index 000000000..81cf96eb0
--- /dev/null
+++ b/gentoo/app-mobilephone/smssend/Manifest
@@ -0,0 +1 @@
+DIST smssend-3.4.tar.gz 407556 SHA256 1f402c34fb61c409488a7806e53aac349038758eef431376714d206de9bf13d0 SHA512 028826fdaff932a8c384d510155af4e868665e1c6989cd6856067128a445a850ef35d6701b8daa73d0ed41ee193e26a2034c0b4a03ea2a35113973ee00d71d8d WHIRLPOOL 14862a733aafd18e6ba0a9d122749e8867216ecbdae150ba8da2df139cdb9914697eba92d93de51083554e5d12bd23a60cb1dd20648a1df42ad009bd8d9061ee
diff --git a/gentoo/app-mobilephone/smssend/files/smssend-3.4-verizon.diff b/gentoo/app-mobilephone/smssend/files/smssend-3.4-verizon.diff
new file mode 100644
index 000000000..3496a0834
--- /dev/null
+++ b/gentoo/app-mobilephone/smssend/files/smssend-3.4-verizon.diff
@@ -0,0 +1,34 @@
+diff -Nur smssend-3.4/scripts/Makefile.am smssend-3.4-new/scripts/Makefile.am
+--- smssend-3.4/scripts/Makefile.am 2004-01-11 13:31:29.000000000 -0500
++++ smssend-3.4-new/scripts/Makefile.am 2004-12-16 02:01:28.141681368 -0500
+@@ -2,6 +2,6 @@
+
+ AUTOMAKE_OPTIONS = no-dependencies dist-shar
+
+-pkgdata_DATA = 130sms.sms 1rstwap.sms 6sensreg.sms 6sens.sms a1_globalsms.sms amazonia.sms americel.sms armgsm.sms atl.sms attwireless.sms banana.sms basemine.sms bcp.sms bell.sms bol_rus.sms bol.sms boltblue.sms bramka.sms bwc.sms clarodigital.sms claro.sms clubmessage.sms comcel.sms coolsmsdk-fast.sms coolsmsdk.sms cosmos.sms cricket.sms ebol.sms e-merge.sms ems-iwarp.sms ermak_rus.sms etsity.sms eurobate.sms eurotel.sms everyday.sms exoset.sms extel-gsm.sms fajront.sms fido.sms freenet.sms freesmsau.sms ft.sms globtel.sms gmxde.sms goingtonight.sms golden.sms gomobile.sms gorizont-rt.sms gtnet.sms halebop.sms hooya.sms hotsms.sms indosat-m3.sms info2you.sms ingyensms.sms inwind.sms iol.sms kiyvstar.sms kyivstar.sms lycosde.sms lycosse.sms lycos.sms lycosuk.sms mageos.sms maxitel.sms megaforums.sms mobimel.sms mobitag.sms mobitel.sms mtnsms.sms mtsmb.sms mts.sms mtsspb.sms mufa.sms mybegin.sms natelskyline.sms netcom.sms netzquadrat.sms nwgsm.sms o2-genie.sms oi.sms onelv.sms orangeportal.sms orange.sms orf.sms oskar.sms paegas.sms pager.sms passagen.sms planet.sms plus.sms proximus.sms quick.sms rekom.sms rogers.sms room33.sms scs-900.sms sfr.sms simobil.sms smarts.sms sms_ac.sms smsitaly.sms smspress.sms smsro.sms sprintpcs.sms starhub.sms suomi24.sms surfeu.sms tango.sms tankssms.sms telebahiacelular.sms telemig.sms telering.sms tess.sms timnordeste.sms timsul.sms t-mobile.sms totalise.sms touristik.sms ubootflash.sms uboot.sms umail.sms umc.sms unimobile.sms universal.sms vivo.sms vizzavifr.sms vizzavigr.sms vizzaviuk.sms vodacom.sms yab.sms
++pkgdata_DATA = 130sms.sms 1rstwap.sms 6sensreg.sms 6sens.sms a1_globalsms.sms amazonia.sms americel.sms armgsm.sms atl.sms attwireless.sms banana.sms basemine.sms bcp.sms bell.sms bol_rus.sms bol.sms boltblue.sms bramka.sms bwc.sms clarodigital.sms claro.sms clubmessage.sms comcel.sms coolsmsdk-fast.sms coolsmsdk.sms cosmos.sms cricket.sms ebol.sms e-merge.sms ems-iwarp.sms ermak_rus.sms etsity.sms eurobate.sms eurotel.sms everyday.sms exoset.sms extel-gsm.sms fajront.sms fido.sms freenet.sms freesmsau.sms ft.sms globtel.sms gmxde.sms goingtonight.sms golden.sms gomobile.sms gorizont-rt.sms gtnet.sms halebop.sms hooya.sms hotsms.sms indosat-m3.sms info2you.sms ingyensms.sms inwind.sms iol.sms kiyvstar.sms kyivstar.sms lycosde.sms lycosse.sms lycos.sms lycosuk.sms mageos.sms maxitel.sms megaforums.sms mobimel.sms mobitag.sms mobitel.sms mtnsms.sms mtsmb.sms mts.sms mtsspb.sms mufa.sms mybegin.sms natelskyline.sms netcom.sms netzquadrat.sms nwgsm.sms o2-genie.sms oi.sms onelv.sms orangeportal.sms orange.sms orf.sms oskar.sms paegas.sms pager.sms passagen.sms planet.sms plus.sms proximus.sms quick.sms rekom.sms rogers.sms room33.sms scs-900.sms sfr.sms simobil.sms smarts.sms sms_ac.sms smsitaly.sms smspress.sms smsro.sms sprintpcs.sms starhub.sms suomi24.sms surfeu.sms tango.sms tankssms.sms telebahiacelular.sms telemig.sms telering.sms tess.sms timnordeste.sms timsul.sms t-mobile.sms totalise.sms touristik.sms ubootflash.sms uboot.sms umail.sms umc.sms unimobile.sms universal.sms verizon.sms vivo.sms vizzavifr.sms vizzavigr.sms vizzaviuk.sms vodacom.sms yab.sms
+
+-EXTRA_DIST = 130sms.sms 1rstwap.sms 6sensreg.sms 6sens.sms a1_globalsms.sms amazonia.sms americel.sms armgsm.sms atl.sms attwireless.sms banana.sms basemine.sms bcp.sms bell.sms bol_rus.sms bol.sms boltblue.sms bramka.sms bwc.sms clarodigital.sms claro.sms clubmessage.sms comcel.sms coolsmsdk-fast.sms coolsmsdk.sms cosmos.sms cricket.sms ebol.sms e-merge.sms ems-iwarp.sms ermak_rus.sms etsity.sms eurobate.sms eurotel.sms everyday.sms exoset.sms extel-gsm.sms fajront.sms fido.sms freenet.sms freesmsau.sms ft.sms globtel.sms gmxde.sms goingtonight.sms golden.sms gomobile.sms gorizont-rt.sms gtnet.sms halebop.sms hooya.sms hotsms.sms indosat-m3.sms info2you.sms ingyensms.sms inwind.sms iol.sms kiyvstar.sms kyivstar.sms lycosde.sms lycosse.sms lycos.sms lycosuk.sms mageos.sms maxitel.sms megaforums.sms mobimel.sms mobitag.sms mobitel.sms mtnsms.sms mtsmb.sms mts.sms mtsspb.sms mufa.sms mybegin.sms natelskyline.sms netcom.sms netzquadrat.sms nwgsm.sms o2-genie.sms oi.sms onelv.sms orangeportal.sms orange.sms orf.sms oskar.sms paegas.sms pager.sms passagen.sms planet.sms plus.sms proximus.sms quick.sms rekom.sms rogers.sms room33.sms scs-900.sms sfr.sms simobil.sms smarts.sms sms_ac.sms smsitaly.sms smspress.sms smsro.sms sprintpcs.sms starhub.sms suomi24.sms surfeu.sms tango.sms tankssms.sms telebahiacelular.sms telemig.sms telering.sms tess.sms timnordeste.sms timsul.sms t-mobile.sms totalise.sms touristik.sms ubootflash.sms uboot.sms umail.sms umc.sms unimobile.sms universal.sms vivo.sms vizzavifr.sms vizzavigr.sms vizzaviuk.sms vodacom.sms yab.sms
++EXTRA_DIST = 130sms.sms 1rstwap.sms 6sensreg.sms 6sens.sms a1_globalsms.sms amazonia.sms americel.sms armgsm.sms atl.sms attwireless.sms banana.sms basemine.sms bcp.sms bell.sms bol_rus.sms bol.sms boltblue.sms bramka.sms bwc.sms clarodigital.sms claro.sms clubmessage.sms comcel.sms coolsmsdk-fast.sms coolsmsdk.sms cosmos.sms cricket.sms ebol.sms e-merge.sms ems-iwarp.sms ermak_rus.sms etsity.sms eurobate.sms eurotel.sms everyday.sms exoset.sms extel-gsm.sms fajront.sms fido.sms freenet.sms freesmsau.sms ft.sms globtel.sms gmxde.sms goingtonight.sms golden.sms gomobile.sms gorizont-rt.sms gtnet.sms halebop.sms hooya.sms hotsms.sms indosat-m3.sms info2you.sms ingyensms.sms inwind.sms iol.sms kiyvstar.sms kyivstar.sms lycosde.sms lycosse.sms lycos.sms lycosuk.sms mageos.sms maxitel.sms megaforums.sms mobimel.sms mobitag.sms mobitel.sms mtnsms.sms mtsmb.sms mts.sms mtsspb.sms mufa.sms mybegin.sms natelskyline.sms netcom.sms netzquadrat.sms nwgsm.sms o2-genie.sms oi.sms onelv.sms orangeportal.sms orange.sms orf.sms oskar.sms paegas.sms pager.sms passagen.sms planet.sms plus.sms proximus.sms quick.sms rekom.sms rogers.sms room33.sms scs-900.sms sfr.sms simobil.sms smarts.sms sms_ac.sms smsitaly.sms smspress.sms smsro.sms sprintpcs.sms starhub.sms suomi24.sms surfeu.sms tango.sms tankssms.sms telebahiacelular.sms telemig.sms telering.sms tess.sms timnordeste.sms timsul.sms t-mobile.sms totalise.sms touristik.sms ubootflash.sms uboot.sms umail.sms umc.sms unimobile.sms universal.sms verizon.sms vivo.sms vizzavifr.sms vizzavigr.sms vizzaviuk.sms vodacom.sms yab.sms
+diff -Nur smssend-3.4/scripts/verizon.sms smssend-3.4-new/scripts/verizon.sms
+--- smssend-3.4/scripts/verizon.sms 1969-12-31 19:00:00.000000000 -0500
++++ smssend-3.4-new/scripts/verizon.sms 2004-12-16 02:00:43.056535352 -0500
+@@ -0,0 +1,18 @@
++#messaging.verizonwireless.com
++#Version 1.0
++#Dane Jackson <dane@unixbigots.org>
++
++NbParams 3
++%Number : The phone number should be 10 digits
++%CallbackNumber : Your phone number - 1 or more digits
++%Message Size=160 Convert : Your message
++
++# Sending message
++# The only important part that's different from the submittal page
++# instead of the disclaimer page is the disclaimer_submit key. So
++# we can just skip the first page.
++
++PostURL http://www.vtext.com/customer_site/jsp/disclaimer.jsp
++PostData min=\%Number%&text=\%Message%&counter=160&sender=\%CallbackNumber%&trackResponses=No&DOMAIN_NAME=@vtext.com&disclaimer_submit=On
++GO
++
diff --git a/gentoo/app-mobilephone/smssend/metadata.xml b/gentoo/app-mobilephone/smssend/metadata.xml
new file mode 100644
index 000000000..6f49eba8f
--- /dev/null
+++ b/gentoo/app-mobilephone/smssend/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<!-- maintainer-needed -->
+</pkgmetadata>
diff --git a/gentoo/app-mobilephone/smssend/smssend-3.4-r2.ebuild b/gentoo/app-mobilephone/smssend/smssend-3.4-r2.ebuild
new file mode 100644
index 000000000..1efcbdedc
--- /dev/null
+++ b/gentoo/app-mobilephone/smssend/smssend-3.4-r2.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit autotools
+
+DESCRIPTION="Universal SMS sender"
+# Was: http://zekiller.skytech.org/smssend_menu_en.html
+HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
+SRC_URI="mirror://gentoo/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc ~ppc64 ~sparc x86"
+IUSE=""
+
+# -r5 of skyutils fixes a runtime crash, bug 588326.
+# Without SSL support in skyutils, some providers fail.
+DEPEND=">=dev-libs/skyutils-2.8-r5[ssl]"
+RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}/${P}-verizon.diff" )
+
+src_prepare() {
+ default
+
+ sed -i 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/g' configure.in \
+ || die 'failed to rename AM_CONFIG_HEADER macro'
+
+ eautoreconf
+}
diff --git a/gentoo/dev-libs/dbus-1-tqt/Manifest b/gentoo/dev-libs/dbus-1-tqt/Manifest
new file mode 100644
index 000000000..1ab93a8f3
--- /dev/null
+++ b/gentoo/dev-libs/dbus-1-tqt/Manifest
@@ -0,0 +1,2 @@
+DIST dbus-1-tqt-3.5.13.1.tar.gz 378109 SHA256 afa621ae0bd65d50d011c1789e98f1418a2c852d2ca72833b1f50805acb1d935 SHA512 5c73d0cf603f345782b318197dec89632123ca2a3802cf152fd8f24600ec670a156f74026e4578bd25af766dd5a5243050442ee07067cfef9bd950f0cd5b3a39 WHIRLPOOL 95e5dd704824cc23390795d775735cdaeb58245c266409888f5cd0b79563e5b00e5b60fd2fbc8e5618889f612dfbcf71566223ed23a2ca1318454812b952b78a
+DIST dbus-1-tqt-trinity-3.5.13.2.tar.xz 302900 SHA256 b4b048a4eaa67e9bedb5d46a15f16f5b814c3eb55474c6bcd4a817105b5e4a64 SHA512 3bc6b732288e9348ebff999644478926fefc8f62235a3accb45fdf828a2ef6988cf2d192b093ad532393fbe57bfbb353371bef18caff27f512d2f046d24f3131 WHIRLPOOL 0d959b83181c97bc26343322312c848e7c7c031912f8f3869806d2d4f682fa142d405016e49da1e498ab9311b18f1cacde5d71de99531412ce51b2dd26e27b51
diff --git a/gentoo/dev-libs/dbus-1-tqt/dbus-1-tqt-3.5.13.1.ebuild b/gentoo/dev-libs/dbus-1-tqt/dbus-1-tqt-3.5.13.1.ebuild
new file mode 100644
index 000000000..900599a64
--- /dev/null
+++ b/gentoo/dev-libs/dbus-1-tqt/dbus-1-tqt-3.5.13.1.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_TYPE="dependencies"
+TRINITY_MODULE_NAME="dbus-1-tqt"
+
+inherit trinity-base
+
+DESCRIPTION="D-BUS TQt bindings"
+HOMEPAGE="http://trinitydesktop.org/"
+LICENSE="GPL-2 LGPL-2"
+KEYWORDS="x86 amd64"
+SLOT="0"
+IUSE=""
+
+DEPEND=">=dev-qt/qt-3.3.8d:3
+ sys-apps/dbus
+ dev-qt/tqtinterface"
+RDEPEND="$DEPEND"
+
+src_configure() {
+ cmake-utils_src_configure
+}
diff --git a/gentoo/dev-libs/dbus-1-tqt/dbus-1-tqt-3.5.13.2.ebuild b/gentoo/dev-libs/dbus-1-tqt/dbus-1-tqt-3.5.13.2.ebuild
new file mode 100644
index 000000000..b9a75d2b7
--- /dev/null
+++ b/gentoo/dev-libs/dbus-1-tqt/dbus-1-tqt-3.5.13.2.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_TYPE="dependencies"
+TRINITY_MODULE_NAME="dbus-1-tqt"
+
+inherit trinity-base
+
+DESCRIPTION="D-BUS TQt bindings"
+HOMEPAGE="http://trinitydesktop.org/"
+LICENSE="GPL-2 LGPL-2"
+KEYWORDS="~amd64 ~x86"
+SLOT="0"
+IUSE=""
+
+DEPEND=">=dev-qt/qt-3.3.8d:3
+ sys-apps/dbus
+ dev-qt/tqtinterface"
+RDEPEND="$DEPEND"
+
+src_configure() {
+ cmake-utils_src_configure
+}
diff --git a/gentoo/dev-libs/dbus-1-tqt/dbus-1-tqt-9999.ebuild b/gentoo/dev-libs/dbus-1-tqt/dbus-1-tqt-9999.ebuild
new file mode 100644
index 000000000..6d1a5cd68
--- /dev/null
+++ b/gentoo/dev-libs/dbus-1-tqt/dbus-1-tqt-9999.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_TYPE="dependencies"
+TRINITY_MODULE_NAME="dbus-1-tqt"
+
+inherit trinity-base
+
+DESCRIPTION="D-BUS TQt bindings"
+HOMEPAGE="http://trinitydesktop.org/"
+LICENSE="GPL-2 LGPL-2"
+KEYWORDS=
+SLOT="0"
+IUSE=""
+
+DEPEND="sys-apps/dbus
+ dev-qt/tqtinterface"
+RDEPEND="$DEPEND"
+
+src_configure() {
+ cmake-utils_src_configure
+}
diff --git a/gentoo/dev-libs/dbus-1-tqt/metadata.xml b/gentoo/dev-libs/dbus-1-tqt/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/dev-libs/dbus-1-tqt/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/dev-libs/dbus-tqt/Manifest b/gentoo/dev-libs/dbus-tqt/Manifest
new file mode 100644
index 000000000..bfd3c3ad9
--- /dev/null
+++ b/gentoo/dev-libs/dbus-tqt/Manifest
@@ -0,0 +1 @@
+DIST dbus-tqt-3.5.13.1.tar.gz 513838 SHA256 f6e024370743c1aae32f9c89660fb22b93f3710864eef679a3be07b2ab3aec71 SHA512 ef9b9d1873b524f07940d9ce31ffb7a8c7002baebb7ab58aec2c93040e9827b33d22a522f63e8d60151bca0f2509f5e4cab0a8d37097ef6262c4a8beca2506db WHIRLPOOL 6b4090816d9790781767d2a523cde61632cabff739966e8c44e06b218a2bfb13c313c574060eaac27fad02dd1df1d7209e1171e2e9f3a93097957c805e31c5b1
diff --git a/gentoo/dev-libs/dbus-tqt/dbus-tqt-3.5.13.1.ebuild b/gentoo/dev-libs/dbus-tqt/dbus-tqt-3.5.13.1.ebuild
new file mode 100644
index 000000000..ea8f2542e
--- /dev/null
+++ b/gentoo/dev-libs/dbus-tqt/dbus-tqt-3.5.13.1.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_TYPE="dependencies"
+TRINITY_MODULE_NAME="dbus-tqt"
+
+inherit trinity-base
+
+DESCRIPTION="D-BUS TQt bindings"
+HOMEPAGE="http://trinitydesktop.org/"
+LICENSE="GPL-2 LGPL-2"
+KEYWORDS="x86 amd64"
+SLOT="0"
+IUSE=""
+
+DEPEND=">=dev-qt/qt-3.3.8d:3
+ dev-qt/tqtinterface
+ !!dev-libs/dbus-qt3-old"
+RDEPEND="$DEPEND"
+
+src_configure() {
+ cmake-utils_src_configure
+}
diff --git a/gentoo/dev-libs/dbus-tqt/dbus-tqt-9999.ebuild b/gentoo/dev-libs/dbus-tqt/dbus-tqt-9999.ebuild
new file mode 100644
index 000000000..6455d67bb
--- /dev/null
+++ b/gentoo/dev-libs/dbus-tqt/dbus-tqt-9999.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_TYPE="dependencies"
+TRINITY_MODULE_NAME="dbus-tqt"
+
+inherit trinity-base
+
+DESCRIPTION="D-BUS TQt bindings"
+HOMEPAGE="http://trinitydesktop.org/"
+LICENSE="GPL-2 LGPL-2"
+KEYWORDS=
+SLOT="0"
+IUSE=""
+
+DEPEND="sys-apps/dbus
+ dev-qt/tqtinterface
+ !!dev-libs/dbus-qt3-old"
+RDEPEND="$DEPEND"
+
+src_configure() {
+ cmake-utils_src_configure
+}
diff --git a/gentoo/dev-libs/dbus-tqt/metadata.xml b/gentoo/dev-libs/dbus-tqt/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/dev-libs/dbus-tqt/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/dev-libs/skyutils/Manifest b/gentoo/dev-libs/skyutils/Manifest
new file mode 100644
index 000000000..c7dbe9421
--- /dev/null
+++ b/gentoo/dev-libs/skyutils/Manifest
@@ -0,0 +1 @@
+DIST skyutils-2.8.tar.gz 357571 SHA256 724c23673f060ec14e452ff8d28a9592993d22328eac5213c780ac674d2a8518 SHA512 65073067f8cd3c81587e6a3b718cd4903004d681f6852afb7de8cb91249fc655afe8234aa780409843649dd0996d877892a97cc5073445ad687c7c2eb6619a01 WHIRLPOOL 1a223fce1fff2f37a0f9cbc20314e19018f4cd7ab50a6b0a12a13ad428442ed9cb58eef586d9e5ca96f7a2d0c76aca3388702a80986c9686ef5ff38d7b3cf64f
diff --git a/gentoo/dev-libs/skyutils/files/fix-Wformat-security-warnings.patch b/gentoo/dev-libs/skyutils/files/fix-Wformat-security-warnings.patch
new file mode 100644
index 000000000..c7fb19bec
--- /dev/null
+++ b/gentoo/dev-libs/skyutils/files/fix-Wformat-security-warnings.patch
@@ -0,0 +1,40 @@
+From 40a157d2161fdd8709a777de6625fbd1b93efed3 Mon Sep 17 00:00:00 2001
+From: Michael Orlitzky <michael@orlitzky.com>
+Date: Sat, 6 Aug 2016 19:23:48 -0400
+Subject: [PATCH 1/1] src/skyutils.h: fix two missing format strings in
+ SU_SYSLOG_FN.
+
+The SU_SYSLOG_FN(x,y) macro could be defined as either syslog(x,y) or
+printf(y), both of which are missing the trivial format string
+"%s". This commit adds it, so that the project builds with no
+-Wformat-security warnings.
+
+Gentoo-Bug: 521114
+---
+ src/skyutils.h | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/skyutils.h b/src/skyutils.h
+index 8b7d59d..f77c9fd 100644
+--- a/src/skyutils.h
++++ b/src/skyutils.h
+@@ -279,14 +279,14 @@ void SU_PrintDebug(int Level,char *Txt, ...);
+ #ifdef __unix__
+ #define SU_PrintDebug(x,...) /* If you have an error here, remove 'x,...' from the () */
+ #include <syslog.h>
+-#define SU_SYSLOG_FN(x,y) syslog(x,y)
++#define SU_SYSLOG_FN(x,y) syslog(x,"%s",y)
+ #else /* !__unix__ */
+ #define SU_PrintDebug() /* Avoid compilation warnings */
+ extern FILE *SU_LogFile;
+ #define SU_SYSLOG_FN(x,y) SU_WriteToLogFile(SU_LogFile,y)
+ #endif /* __unix__ */
+ #else /* DEBUG */
+-#define SU_SYSLOG_FN(x,y) printf(y)
++#define SU_SYSLOG_FN(x,y) printf("%s",y)
+ #endif /* !DEBUG */
+ #ifdef _WIN32
+ #define SU_SLEEP(x) Sleep(x*1000)
+--
+2.7.3
+
diff --git a/gentoo/dev-libs/skyutils/files/skyutils-2.8-libs.patch b/gentoo/dev-libs/skyutils/files/skyutils-2.8-libs.patch
new file mode 100644
index 000000000..990b5fafc
--- /dev/null
+++ b/gentoo/dev-libs/skyutils/files/skyutils-2.8-libs.patch
@@ -0,0 +1,12 @@
+diff -ur skyutils-2.8.orig/configure.in skyutils-2.8/configure.in
+--- skyutils-2.8.orig/configure.in 2005-05-09 08:16:44.000000000 +0000
++++ skyutils-2.8/configure.in 2008-07-18 05:38:13.000000000 +0000
+@@ -208,6 +208,8 @@
+ AC_SUBST(SU_ARCH_LIB)
+ AC_SUBST(SU_ARCH_CFLAGS)
+ AC_SUBST(SU_ANSI_CFLAGS)
++LIBS="$SU_PTHREAD_LIB $SU_DL_LIB $SU_SSL_LIB $SU_ARCH_LIB"
++AC_SUBST(LIBS)
+
+ AC_OUTPUT([
+ Makefile
diff --git a/gentoo/dev-libs/skyutils/metadata.xml b/gentoo/dev-libs/skyutils/metadata.xml
new file mode 100644
index 000000000..209c45955
--- /dev/null
+++ b/gentoo/dev-libs/skyutils/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <longdescription>
+ This library contains many useful functions such as chained lists,
+ string manipulation, socket, and the HTTP protocol.
+ </longdescription>
+</pkgmetadata>
diff --git a/gentoo/dev-libs/skyutils/skyutils-2.8-r5.ebuild b/gentoo/dev-libs/skyutils/skyutils-2.8-r5.ebuild
new file mode 100644
index 000000000..35f216a3b
--- /dev/null
+++ b/gentoo/dev-libs/skyutils/skyutils-2.8-r5.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+inherit flag-o-matic autotools
+
+DESCRIPTION="Library of assorted C utility functions"
+# Was: http://zekiller.skytech.org/coders_en.html
+HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
+SRC_URI="mirror://gentoo/${P}.tar.gz"
+
+LICENSE="LGPL-2.1+"
+SLOT="0"
+KEYWORDS="amd64 ~ppc ~ppc64 ~sparc x86"
+IUSE="ssl"
+
+DEPEND="ssl? ( dev-libs/openssl:0=[sslv3] )"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}/${P}-libs.patch"
+ "${FILESDIR}/fix-Wformat-security-warnings.patch"
+)
+
+src_prepare() {
+ default
+ sed -i 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/g' configure.in \
+ || die 'failed to rename AM_CONFIG_HEADER macro'
+
+ eautoreconf
+}
+
+src_configure() {
+ append-flags -D_GNU_SOURCE
+ econf $(use_enable ssl)
+}
diff --git a/gentoo/dev-qt/qt-meta/metadata.xml b/gentoo/dev-qt/qt-meta/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/dev-qt/qt-meta/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/dev-qt/qt-meta/qt-meta-3.3.8d.ebuild b/gentoo/dev-qt/qt-meta/qt-meta-3.3.8d.ebuild
new file mode 100644
index 000000000..d64ac5d3e
--- /dev/null
+++ b/gentoo/dev-qt/qt-meta/qt-meta-3.3.8d.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI=3
+
+DESCRIPTION="This is a meta package for a Qt3 toolkit it is needed to keep dependencies clean"
+HOMEPAGE="http://qt.nokia.com/ http://www.trinitydesktop.org/"
+
+LICENSE="|| ( QPL-1.0 GPL-2 GPL-3 )"
+SLOT="3"
+KEYWORDS="amd64 x86"
+IUSE="cups debug doc examples firebird ipv6 mysql nas nis opengl postgres sqlite xinerama"
+
+DEPEND="
+ =dev-qt/qt-${PV}:${SLOT}[cups=,debug=,doc=,examples=,firebird=,ipv6=,mysql=]
+ =dev-qt/qt-${PV}:${SLOT}[nas=,nis=,opengl=,postgres=,sqlite=,xinerama=]"
+RDEPEND="${DEPEND}"
+
+pkg_postinst() {
+ echo
+ einfo "Please note that this meta package is only provided for capability."
+ einfo "No packages should depend directly on this meta package, but on the"
+ einfo "dev-qt/qt:${SLOT} package."
+ echo
+}
diff --git a/gentoo/dev-qt/qt-meta/qt-meta-3.9999.ebuild b/gentoo/dev-qt/qt-meta/qt-meta-3.9999.ebuild
new file mode 100644
index 000000000..5999dde57
--- /dev/null
+++ b/gentoo/dev-qt/qt-meta/qt-meta-3.9999.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI=3
+
+DESCRIPTION="This is a meta package for a Qt3 toolkit it is needed to keep dependencies clean"
+HOMEPAGE="http://qt.nokia.com/ http://www.trinitydesktop.org/"
+
+LICENSE="|| ( QPL-1.0 GPL-2 GPL-3 )"
+SLOT="3"
+KEYWORDS=
+IUSE="cups debug doc examples firebird ipv6 mysql nas nis opengl postgres sqlite xinerama"
+
+DEPEND="
+ =dev-qt/qt-${PV}:${SLOT}[cups=,debug=,doc=,examples=,firebird=,ipv6=,mysql=]
+ =dev-qt/qt-${PV}:${SLOT}[nas=,nis=,opengl=,postgres=,sqlite=,xinerama=]"
+RDEPEND="${DEPEND}"
+
+pkg_postinst() {
+ echo
+ einfo "Please note that this meta package is only provided for capability."
+ einfo "No packages should depend directly on this meta package, but on the"
+ einfo "dev-qt/qt:${SLOT} package."
+ echo
+}
diff --git a/gentoo/dev-qt/qt/Manifest b/gentoo/dev-qt/qt/Manifest
new file mode 100644
index 000000000..e2d3452bc
--- /dev/null
+++ b/gentoo/dev-qt/qt/Manifest
@@ -0,0 +1,17 @@
+AUX trinity-3.5.13.1..3.5.13.2/qt3-2012-12-12_02_54_53-Ensure-that-a-valid-DPI-is-always-set-cbe0a27.patch 1053 SHA256 6822c2f3c59c621ba853f583f9fdf2cd6b7ac1b069d1a2ec147e2f4ee6a7aa7b SHA512 c2209b9a61c817422df932f7d844f07a85ac3cc0f6a75770cf3eac279419c5b95091d919a533fac94c72e8b2f98004a5c858870a15660c0b33cb0d94a5aeb431 WHIRLPOOL c434a0f5e7d9b801bb0a6a5c68f564b32b876b2c66ab2bd6511b54cc9755c35cd6f2d3bd8e9deba4dd302dcceb0615d408371f36d1129cadd65246f64ff7098c
+AUX trinity-3.5.13.1..3.5.13.2/qt3-2013-01-13_02_45_04-Verify-desktop-widget-screen-number-before-applying-size-changes-This-resolves-Bug-1378-b8ca17c.patch 1412 SHA256 1c53a022a723f25ca9661d9b6baa552e9ff1cf76f6d3cba4f9f19b8b8c547a1a SHA512 d625c0c6adf436de29780ba5bbf077a30c7fcd6b19c69e2191ab6ad40f20d9f2c2dc0ec55ded01c7bf777c5913c9b5bcac8b09ca1c6a04ea25f39d9fcbb8e137 WHIRLPOOL ed27f89056249d06399f709b4ab8fb5f0fbdc43b8db6cb5935045e061666eb1792b79f1564fd840b9fe880debf2fbd770ed54b29cafc1dd46afb2fea519e3e65
+AUX trinity-3.5.13.1..3.5.13.2/qt3-2013-02-20_21_52_12-Doublebuffer-QIconView-to-reduce-flicker-This-closes-Bug-1408-897cd5c.patch 3266 SHA256 c901cebe79142bb81764138eff6bbdb74c126cd4950555f97924000c791aad96 SHA512 d892a88052a713a8f7d1edcbef15c951aac33a25f1f73e90a63f6b1394413678bf4ed12865710b84ddb4d9536dd452bc1c2f88af7a442807aa0f61aeadff0020 WHIRLPOOL c370ab576e8e68e54a5f0b18c19b19013c762f0434b60cbc595d8f5d465e8c81fdb6496080d4b71f78d4de390a7fbff8181dcce6946eb60f0c7825f2fe1473a5
+AUX trinity-3.5.13.1..3.5.13.2/qt3-2013-03-02_12_16_10-Fix-textbox-trails-introduced-with-GIT-commit-82b71e49-This-resolves-Bug-1408-a78eb9c.patch 599 SHA256 03f4a35d89835a0b3de726492b99d83045a6c4c27170f4c0feaa4d7e7cd361e6 SHA512 b779f7669f40796c9c7b7d4c9e1970b930e661b7247927cdb0c668c084a950dc19bdeab4b15326248ec836987160821fed98f467e8bdfe5c2f250ed8db143f07 WHIRLPOOL 3258ff6dfec41829fe2390bca3cb7739d5fc5d00dcc99f4cc0694c6d2d12f0603b4535ebd2874bb99fae767fa8b63f8bc85e58dfe84f5e108f841f693475f616
+AUX trinity-3.5.13.1..3.5.13.2/qt3-2013-04-13_13_31_15-Properly-set-WM_CLASS-atom-even-if-Display-pointer-was-passed-to-TQApplication-This-relates-to-Bug-1443-045b2d9.patch 1640 SHA256 88cce480013054358856e35df7f734f52a2188276d5ac786707aa7f4eef4575b SHA512 0c6ffd19404633c2ec8d6742fead4713227852174b83fb749656daf4117766d08a94624c81c3e2226d524aa904039337811b4a68878f72170ece0a0ad6136df7 WHIRLPOOL a9ffc49517144ff6c02dbb8be969817baec0960b80e0a2637ecfa3da43f0bf556b9df9c9b93b5485389335b3c24b2fa8ef17224db2c3aa2d5acb46519c7d6d6b
+AUX trinity-3.5.13.1..3.5.13.2/qt3-2013-04-16_17_34_08-Fix-fatal-X11-errors-when-both-external-display-and-command-arguments-are-provided-to-QApplication-This-resolves-Bug-1456-e7d0f7d.patch 1138 SHA256 caca943700c410e75d8bfc8c5b0c07c6041f5a4f1b5068a8ae9907aba3c3e1cb SHA512 121681c67a0417b2ead19d5f3ad206f12f3b10bf997ad12315b2fc3dbc3a60487d90a782cb6899bf4e3a4774cfa06d5233752118acc6b113fd79723b0295e39d WHIRLPOOL 56d5a008c5bcc4e2079e549a596900cd7df763af0f45978e8761c4879e45a466652c3b2184ac6c895181b109a68f5d24f12ce36c7cf7cbfbeda3c7f58fea4c3b
+AUX trinity-3.5.13.1..3.5.13.2/qt3-2013-04-20_19_01_58-Fix-Qt-input-method-failure-This-resolves-Bug-1019-c421de2.patch 1664 SHA256 c28a05e90a19a7a5e73c1d840f2605e2d457f5030242057fd205155f5fd50c1b SHA512 a3ac74e67fc014e0169ceca4d0df953ce6b1897236f090273196ff36133d25b64b66a7b7781695a790760720fd194243c09e3b33a1f02115c96d519db106f3ab WHIRLPOOL a0ec3ad64708840a1a2b2eefd1118979bcdf6c2f158ec5320f626348c3562df6d855864950aa3f00deb22142807f1555af2e2adb64fffdbdfd215962aa968060
+AUX trinity-3.5.13.1..3.5.13.2/qt3-2013-04-20_19_01_59-Fix-qmake-library-search-path-on-64-bit-systems-This-resolves-Bug-1016-e374dac.patch 484 SHA256 3ad05e0a17420315039834c6816c540b3c4695fa3c4a969bc2b1ea44f0b1542c SHA512 45c68ec9a00eae11195f71926a256c683fb6d237763555f0889f9f780971d382ee0e75f718b960355a932314ec3e8347d9282d6f9961701acef077b36365b92e WHIRLPOOL da7640575b82f94cd606a4777f9916a7ec6a7f163b8105004433356a8bef8a165154980d00c3d579cfdbc00fc10690f0b1e531c69da9b9eb03bdcd5e6c7ff644
+AUX trinity-3.5.13.1..3.5.13.2/qt3-2013-04-20_19_01_59-Update-zh-tw-translations-c62cd50.patch 10355 SHA256 9c538abc919d0f54ce7615c2d070f353e894ab712637deabd8aeca5560d3c8a1 SHA512 762e98fcf0772f774524f95d1678e976aa5e8c503a123ef23cf0633baa9d068889ec8259379f5bd021ca37c99c48b9f8ca0f6791de10ad670e62e65b52d2450c WHIRLPOOL 7134d02266ec8356568ed493cde3f99f79e41e3ac422ceb81a0b5d0fac5b47473824ea099f774de426eb893bc487672576f312d716dbbd3c9798fb7439edb065
+AUX trinity-3.5.13.1..3.5.13.2/qt3-2013-04-20_19_02_00-Add-0084-compositing-patch-from-RedHat-909c3cb.patch 2682 SHA256 d2443d46fdfcfa45fc8fd6249efe4a264a3c4c82df6ae786f1d11582321b49be SHA512 a6f5dc4c6ca4502bc12d0e568e6ce8c4d4d9646a7596376db85b58687be32d9569f6b5f663c8eb282595729c4bea110f9c3b5368d6bb1159548d64b33c4dd92f WHIRLPOOL a4e72e38474c336cee82d35208a2119c67d4d3211d6d191bd79abb53c9de580bca47f45544702717f9a22e8da5e7efce120f60b8ee0c78446ea90fc00c71964f
+AUX trinity-3.5.13.1..3.5.13.2/qt3-2013-04-20_19_02_00-Use-unixODBC-instead-of-obsolete-iODBC-This-closes-Bug-792-Thanks-to-L0ner-for-the-patch-3f779ee.patch 1531 SHA256 ee56a45c2ec961e67a9aeaf0e232af089e8f99e8f012ea6210db0e8b0de46a0c SHA512 7408f786aea8104e0a2372c1d46493e5cae7bd13a71f6b7e25803b40e5a6170833f6e2c23ae5f680ed8924e354e499efb63c21baa18de486f64ab5332d8408cf WHIRLPOOL 9b97795a571579a0bc0782052c23e4bbf3a95947c070aaebc563c84497f6bedfc43640a3a2ffe0a1dd83fb86270f02fc7ba3a2465a9c103e663f12cd2e549765
+AUX trinity-3.5.13.1..3.5.13.2/qt3-2013-04-20_19_02_01-Make-basic-integer-QDataStream-reads-resistant-to-corruption-from-underlying-IO-device-failure-60621ef.patch 2928 SHA256 c3736f4297d22c076f107a6b5756ac59cf581b86bb88e2a28cb06fd120cba0ad SHA512 46941d3b677bafd84b1b52efbc56b5b5848423d1f8a9a7f83f485939a2092ce6344dcceeccb524e8ca8b97d3defd060644405d70fadc6f51a8ae6b57d55affbe WHIRLPOOL 031431bca71b586e64b60c63600a8832daa5faee3a150534072bba8d74929fc05639a858739622c5e0552088095e840c2a40a9c6530e58a4f50b20de1b5671a7
+AUX trinity-3.5.13.1..3.5.13.2/qt3-2013-04-25_03_21_44-Fix-a-number-of-threading-problems-and-crashes-This-partially-resolves-Bug-1467-part-of-the-original-commit-b8e4f24.patch 25691 SHA256 7f6156a4f927fae9571c6277e1e4619750c7a0a9d9893a102f262f3105affc65 SHA512 0d9e30ec474e25be3c2542337c5e0ae9f1a2e412d006a528180bdcc692cdab7eb584926e26964453591fd3315ce713ca39660ab50c6688fe4eb3f924fa8bc2e0 WHIRLPOOL b54a8ea84d1d0e850675a0e2168bddd971edb3b493c7f52f7d34d239f4541e3856610dcf05d47b297565bec9e2cb9bbe7aada141703c58fc723f9ffa2f13e424
+AUX trinity-3.5.13.1..3.5.13.2/qt3-2013-05-03_03_47_45-Fix-corrupted-titlebar-icons-in-subwindows-of-ARGB-applications-90f4a55.patch 1996 SHA256 707099432bd702883b488ddf5cd5290b327938168392efc4c03a862abef67000 SHA512 e839b2575def437aa98670298e2804f4f826a6483cf7e220193cf7b641b2b68ec2cf731a23ecb2c8e78bf432d778378e93eccb3d7f51b74cdea68aec0e7b0661 WHIRLPOOL c9d7c1882efa0d41cd19cc4fa175216791d40c053b73714fa67f43ed76b428b2471bf9f447373afddecbcaceeb3febaf7f87ba62d9fec97fc5a3f263c5c89ef8
+AUX trinity-3.5.13.1..3.5.13.2/qt3-2013-05-04_17_28_30-Fix-ARGB-mode-stippled-focus-rectangle-showing-underlying-window-contents-Fix-TQColor-not-processing-alpha-channel-in-ARGB-mode-d2240de.patch 2184 SHA256 3893537b4a328495c717d586b135b940b29ca50de9240878cec350e0208f79f3 SHA512 68c73892f8cc011392261267b3a9ed38b4989e9ed3adbe34982ee1d220be9dba503ec9bf383b29f601b2fc11f490db33b7802c21223050d581ea84b683f0943d WHIRLPOOL 10525ee058888558c191dfe0922f45f53df60a9594e921c6cee94ddcbcbfc2efe3aeb18ab73372adfac3ecfb49943ef875cd936ae1bc01f8da2f3a1baba969db
+AUX trinity-3.5.13.1..3.5.13.2/qt3-2013-05-08_01_43_38-Fix-spelling-mistakes-169c39a.patch 3103 SHA256 19e830e3dcdb0888cd00a94ba9acafb9d6b2c22961306d4a796b5fabba63e449 SHA512 107d8c84fd480b8cbcb93b30ca1f78352e53a776d64221378fc4b5fb9f08decc5edec2973377d37785cc02bdd68c7c305dde2c2a1fad3827ea1964b28b72857c WHIRLPOOL c7c073884cbb99451784a2cf27fa7a7b3dce927e9f6be8111875272e58adb4b689f156d4c0f72896dbbc72473597456910422013d487a2082616d08c213b6db5
+DIST qt3-3.5.13.1.tar.gz 16618074 SHA256 6d124412f89eb7c445668e339cd10114778b3efe56f061886364a0b27141a6ff SHA512 7adda5a6ee2c72086e672230dcd9088d39d975ee802dfc1ac4fcbb0b9cdd2feeac3b1a7147663ffb57b285e0631b14735930ea1f33904c37b000d96c0859ae84 WHIRLPOOL e0afdbc051f6d215ad6e46ec6a9756e96d303177d32c21ee7d944a1abe5b58b153da5afb01942b747278b92876203e05076cd18a0e75a51c5ab3c52b6b25eda6
diff --git a/gentoo/dev-qt/qt/files/trinity-3.5.13.1..3.5.13.2/qt3-2012-12-12_02_54_53-Ensure-that-a-valid-DPI-is-always-set-cbe0a27.patch b/gentoo/dev-qt/qt/files/trinity-3.5.13.1..3.5.13.2/qt3-2012-12-12_02_54_53-Ensure-that-a-valid-DPI-is-always-set-cbe0a27.patch
new file mode 100644
index 000000000..313d9ee50
--- /dev/null
+++ b/gentoo/dev-qt/qt/files/trinity-3.5.13.1..3.5.13.2/qt3-2012-12-12_02_54_53-Ensure-that-a-valid-DPI-is-always-set-cbe0a27.patch
@@ -0,0 +1,26 @@
+diff --git a/src/kernel/qpaintdevice_x11.cpp b/src/kernel/qpaintdevice_x11.cpp
+index a755c01..5941657 100644
+--- a/src/kernel/qpaintdevice_x11.cpp
++++ b/src/kernel/qpaintdevice_x11.cpp
+@@ -529,11 +529,16 @@ static void create_dpis()
+ Q_CHECK_PTR( dpisX );
+ Q_CHECK_PTR( dpisY );
+ for ( i = 0; i < screens; i++ ) {
+- dpisX[ i ] = (DisplayWidth(dpy,i) * 254 + DisplayWidthMM(dpy,i)*5)
+-
+- / (DisplayWidthMM(dpy,i)*10);
+- dpisY[ i ] = (DisplayHeight(dpy,i) * 254 + DisplayHeightMM(dpy,i)*5)
+- / (DisplayHeightMM(dpy,i)*10);
++ if (DisplayWidthMM(dpy,i) < 1)
++ dpisX[ i ] = 75; // default the dpi to 75.
++ else
++ dpisX[ i ] = (DisplayWidth(dpy,i) * 254 + DisplayWidthMM(dpy,i)*5)
++ / (DisplayWidthMM(dpy,i)*10);
++ if (DisplayHeightMM(dpy,i) < 1)
++ dpisY[ i ] = 75; // default the dpi to 75.
++ else
++ dpisY[ i ] = (DisplayHeight(dpy,i) * 254 + DisplayHeightMM(dpy,i)*5)
++ / (DisplayHeightMM(dpy,i)*10);
+ }
+ }
+
diff --git a/gentoo/dev-qt/qt/files/trinity-3.5.13.1..3.5.13.2/qt3-2013-01-13_02_45_04-Verify-desktop-widget-screen-number-before-applying-size-changes-This-resolves-Bug-1378-b8ca17c.patch b/gentoo/dev-qt/qt/files/trinity-3.5.13.1..3.5.13.2/qt3-2013-01-13_02_45_04-Verify-desktop-widget-screen-number-before-applying-size-changes-This-resolves-Bug-1378-b8ca17c.patch
new file mode 100644
index 000000000..980268dea
--- /dev/null
+++ b/gentoo/dev-qt/qt/files/trinity-3.5.13.1..3.5.13.2/qt3-2013-01-13_02_45_04-Verify-desktop-widget-screen-number-before-applying-size-changes-This-resolves-Bug-1378-b8ca17c.patch
@@ -0,0 +1,38 @@
+diff --git a/src/kernel/qapplication_x11.cpp b/src/kernel/qapplication_x11.cpp
+index 203cb39..4a03d95 100644
+--- a/src/kernel/qapplication_x11.cpp
++++ b/src/kernel/qapplication_x11.cpp
+@@ -3446,13 +3446,26 @@ int QApplication::x11ProcessEvent( XEvent* event )
+ // update the size for desktop widget
+ int scr = XRRRootToScreen( appDpy, event->xany.window );
+ QWidget *w = desktop()->screen( scr );
+- QSize oldSize( w->size() );
+- w->crect.setWidth( DisplayWidth( appDpy, scr ) );
+- w->crect.setHeight( DisplayHeight( appDpy, scr ) );
+- if ( w->size() != oldSize ) {
+- QResizeEvent e( w->size(), oldSize );
+- QApplication::sendEvent( w, &e );
+- emit desktop()->resized( scr );
++
++ if (w) {
++ int widgetScr = -1;
++ // make sure the specified widget is on the same screen that received the XRandR event
++ XWindowAttributes widgetAttr;
++ XGetWindowAttributes(appDpy, w->winId(), &widgetAttr);
++ if (widgetAttr.screen) {
++ widgetScr = XScreenNumberOfScreen(widgetAttr.screen);
++ }
++
++ if ((widgetScr < 0) || (widgetScr == scr)) {
++ QSize oldSize( w->size() );
++ w->crect.setWidth( DisplayWidth( appDpy, scr ) );
++ w->crect.setHeight( DisplayHeight( appDpy, scr ) );
++ if ( w->size() != oldSize ) {
++ QResizeEvent e( w->size(), oldSize );
++ QApplication::sendEvent( w, &e );
++ emit desktop()->resized( scr );
++ }
++ }
+ }
+ }
+ #endif // QT_NO_XRANDR
diff --git a/gentoo/dev-qt/qt/files/trinity-3.5.13.1..3.5.13.2/qt3-2013-02-20_21_52_12-Doublebuffer-QIconView-to-reduce-flicker-This-closes-Bug-1408-897cd5c.patch b/gentoo/dev-qt/qt/files/trinity-3.5.13.1..3.5.13.2/qt3-2013-02-20_21_52_12-Doublebuffer-QIconView-to-reduce-flicker-This-closes-Bug-1408-897cd5c.patch
new file mode 100644
index 000000000..6da074b58
--- /dev/null
+++ b/gentoo/dev-qt/qt/files/trinity-3.5.13.1..3.5.13.2/qt3-2013-02-20_21_52_12-Doublebuffer-QIconView-to-reduce-flicker-This-closes-Bug-1408-897cd5c.patch
@@ -0,0 +1,98 @@
+diff --git a/src/iconview/qiconview.cpp b/src/iconview/qiconview.cpp
+index c1ea8cc..36b5da2 100644
+--- a/src/iconview/qiconview.cpp
++++ b/src/iconview/qiconview.cpp
+@@ -214,6 +214,7 @@ public:
+ QIconViewItem *currentItem, *tmpCurrentItem, *highlightedItem,
+ *startDragItem, *pressedItem, *selectAnchor, *renamingItem;
+ QRect *rubber;
++ QPixmap *backBuffer;
+ QTimer *scrollTimer, *adjustTimer, *updateTimer, *inputTimer,
+ *fullRedrawTimer;
+ int rastX, rastY, spacing;
+@@ -2789,6 +2790,7 @@ QIconView::QIconView( QWidget *parent, const char *name, WFlags f )
+ d->currentItem = 0;
+ d->highlightedItem = 0;
+ d->rubber = 0;
++ d->backBuffer = 0;
+ d->scrollTimer = 0;
+ d->startDragItem = 0;
+ d->tmpCurrentItem = 0;
+@@ -2942,6 +2944,8 @@ QIconView::~QIconView()
+ delete item;
+ item = tmp;
+ }
++ delete d->backBuffer;
++ d->backBuffer = 0;
+ delete d->fm;
+ d->fm = 0;
+ #ifndef QT_NO_TOOLTIP
+@@ -4943,6 +4947,47 @@ void QIconView::contentsDropEvent( QDropEvent *e )
+ #endif
+
+ /*!
++ This function grabs all paintevents that otherwise would have been
++ processed by the QScrollView::viewportPaintEvent(). Here we use a
++ doublebuffer to reduce 'on-paint' flickering on QIconView
++ (and of course its children).
++
++ \sa QScrollView::viewportPaintEvent(), QIconView::drawContents()
++*/
++
++void QIconView::bufferedPaintEvent( QPaintEvent* pe )
++{
++ QWidget* vp = viewport();
++ QRect r = pe->rect() & vp->rect();
++ int ex = r.x() + contentsX();
++ int ey = r.y() + contentsY();
++ int ew = r.width();
++ int eh = r.height();
++
++ if ( !d->backBuffer )
++ d->backBuffer = new QPixmap(vp->size());
++ if ( d->backBuffer->size() != vp->size() ) {
++ // Resize function (with hysteresis). Uses a good compromise between memory
++ // consumption and speed (number) of resizes.
++ float newWidth = (float)vp->width();
++ float newHeight = (float)vp->height();
++ if ( newWidth > d->backBuffer->width() || newHeight > d->backBuffer->height() )
++ {
++ newWidth *= 1.1892;
++ newHeight *= 1.1892;
++ d->backBuffer->resize( (int)newWidth, (int)newHeight );
++ } else if ( 1.5*newWidth < d->backBuffer->width() || 1.5*newHeight < d->backBuffer->height() )
++ d->backBuffer->resize( (int)newWidth, (int)newHeight );
++ }
++
++ QPainter p;
++ p.begin(d->backBuffer, vp);
++ drawContentsOffset(&p, contentsX(), contentsY(), ex, ey, ew, eh);
++ p.end();
++ bitBlt(vp, r.x(), r.y(), d->backBuffer, r.x(), r.y(), ew, eh);
++}
++
++/*!
+ \reimp
+ */
+
+@@ -5726,7 +5771,7 @@ bool QIconView::eventFilter( QObject * o, QEvent * e )
+ if ( !d->rubber )
+ drawDragShapes( d->oldDragPos );
+ }
+- viewportPaintEvent( (QPaintEvent*)e );
++ bufferedPaintEvent( (QPaintEvent*)e );
+ if ( d->dragging ) {
+ if ( !d->rubber )
+ drawDragShapes( d->oldDragPos );
+diff --git a/src/iconview/qiconview.h b/src/iconview/qiconview.h
+index 97780d8..109779f 100644
+--- a/src/iconview/qiconview.h
++++ b/src/iconview/qiconview.h
+@@ -452,6 +452,7 @@ protected:
+ void contentsDropEvent( QDropEvent *e );
+ #endif
+
++ void bufferedPaintEvent( QPaintEvent* );
+ void resizeEvent( QResizeEvent* e );
+ void keyPressEvent( QKeyEvent *e );
+ void focusInEvent( QFocusEvent *e );
diff --git a/gentoo/dev-qt/qt/files/trinity-3.5.13.1..3.5.13.2/qt3-2013-03-02_12_16_10-Fix-textbox-trails-introduced-with-GIT-commit-82b71e49-This-resolves-Bug-1408-a78eb9c.patch b/gentoo/dev-qt/qt/files/trinity-3.5.13.1..3.5.13.2/qt3-2013-03-02_12_16_10-Fix-textbox-trails-introduced-with-GIT-commit-82b71e49-This-resolves-Bug-1408-a78eb9c.patch
new file mode 100644
index 000000000..3a8768d0c
--- /dev/null
+++ b/gentoo/dev-qt/qt/files/trinity-3.5.13.1..3.5.13.2/qt3-2013-03-02_12_16_10-Fix-textbox-trails-introduced-with-GIT-commit-82b71e49-This-resolves-Bug-1408-a78eb9c.patch
@@ -0,0 +1,19 @@
+diff --git a/src/iconview/qiconview.cpp b/src/iconview/qiconview.cpp
+index 36b5da2..4387a19 100644
+--- a/src/iconview/qiconview.cpp
++++ b/src/iconview/qiconview.cpp
+@@ -5770,11 +5770,11 @@ bool QIconView::eventFilter( QObject * o, QEvent * e )
+ if ( d->dragging ) {
+ if ( !d->rubber )
+ drawDragShapes( d->oldDragPos );
+- }
+- bufferedPaintEvent( (QPaintEvent*)e );
+- if ( d->dragging ) {
++ viewportPaintEvent( (QPaintEvent*)e );
+ if ( !d->rubber )
+ drawDragShapes( d->oldDragPos );
++ } else {
++ bufferedPaintEvent( (QPaintEvent*)e );
+ }
+ }
+ return TRUE;
diff --git a/gentoo/dev-qt/qt/files/trinity-3.5.13.1..3.5.13.2/qt3-2013-04-13_13_31_15-Properly-set-WM_CLASS-atom-even-if-Display-pointer-was-passed-to-TQApplication-This-relates-to-Bug-1443-045b2d9.patch b/gentoo/dev-qt/qt/files/trinity-3.5.13.1..3.5.13.2/qt3-2013-04-13_13_31_15-Properly-set-WM_CLASS-atom-even-if-Display-pointer-was-passed-to-TQApplication-This-relates-to-Bug-1443-045b2d9.patch
new file mode 100644
index 000000000..2daa09f72
--- /dev/null
+++ b/gentoo/dev-qt/qt/files/trinity-3.5.13.1..3.5.13.2/qt3-2013-04-13_13_31_15-Properly-set-WM_CLASS-atom-even-if-Display-pointer-was-passed-to-TQApplication-This-relates-to-Bug-1443-045b2d9.patch
@@ -0,0 +1,46 @@
+diff --git a/src/kernel/qapplication.cpp b/src/kernel/qapplication.cpp
+index 7296f4c..0ec4904 100644
+--- a/src/kernel/qapplication.cpp
++++ b/src/kernel/qapplication.cpp
+@@ -320,6 +320,7 @@ void qt_init( int *, char **, QApplication::Type );
+ void qt_cleanup();
+ #if defined(Q_WS_X11)
+ void qt_init( Display* dpy, Qt::HANDLE, Qt::HANDLE );
++void qt_init( int *, char **, Display* dpy, Qt::HANDLE, Qt::HANDLE );
+ #endif
+ Q_EXPORT bool qt_tryModalHelper( QWidget *widget, QWidget **rettop );
+
+@@ -908,7 +909,7 @@ QApplication::QApplication(Display *dpy, int argc, char **argv,
+
+ qt_init( &argc, argv, GuiClient );
+ } else {
+- qt_init(dpy, visual, colormap);
++ qt_init( &argc, argv, dpy, visual, colormap );
+ }
+
+ process_cmdline( &argc, argv );
+diff --git a/src/kernel/qapplication_x11.cpp b/src/kernel/qapplication_x11.cpp
+index 4a03d95..0f9d777 100644
+--- a/src/kernel/qapplication_x11.cpp
++++ b/src/kernel/qapplication_x11.cpp
+@@ -1639,7 +1639,7 @@ void qt_init_internal( int *argcptr, char **argv,
+ }
+ #endif
+
+- if ( display ) {
++ if ( display && ((!argcptr) || (!argv)) ) {
+ // Qt part of other application
+
+ appForeignDpy = TRUE;
+@@ -2439,6 +2439,11 @@ void qt_init( Display *display, Qt::HANDLE visual, Qt::HANDLE colormap )
+ qt_init_internal( 0, 0, display, visual, colormap );
+ }
+
++void qt_init( int *argcptr, char **argv, Display *display, Qt::HANDLE visual, Qt::HANDLE colormap )
++{
++ qt_init_internal( argcptr, argv, display, visual, colormap );
++}
++
+
+ /*****************************************************************************
+ qt_cleanup() - cleans up when the application is finished
diff --git a/gentoo/dev-qt/qt/files/trinity-3.5.13.1..3.5.13.2/qt3-2013-04-16_17_34_08-Fix-fatal-X11-errors-when-both-external-display-and-command-arguments-are-provided-to-QApplication-This-resolves-Bug-1456-e7d0f7d.patch b/gentoo/dev-qt/qt/files/trinity-3.5.13.1..3.5.13.2/qt3-2013-04-16_17_34_08-Fix-fatal-X11-errors-when-both-external-display-and-command-arguments-are-provided-to-QApplication-This-resolves-Bug-1456-e7d0f7d.patch
new file mode 100644
index 000000000..40426ef81
--- /dev/null
+++ b/gentoo/dev-qt/qt/files/trinity-3.5.13.1..3.5.13.2/qt3-2013-04-16_17_34_08-Fix-fatal-X11-errors-when-both-external-display-and-command-arguments-are-provided-to-QApplication-This-resolves-Bug-1456-e7d0f7d.patch
@@ -0,0 +1,42 @@
+diff --git a/src/kernel/qapplication_x11.cpp b/src/kernel/qapplication_x11.cpp
+index 0f9d777..50a2bac 100644
+--- a/src/kernel/qapplication_x11.cpp
++++ b/src/kernel/qapplication_x11.cpp
+@@ -1790,18 +1790,26 @@ void qt_init_internal( int *argcptr, char **argv,
+ }
+ }
+ #endif
+- // Connect to X server
+-
+- if( qt_is_gui_used ) {
+- if ( ( appDpy = XOpenDisplay(appDpyName) ) == 0 ) {
+- qWarning( "%s: cannot connect to X server %s", appName,
+- XDisplayName(appDpyName) );
+- qApp = 0;
+- exit( 1 );
+- }
++ if ( display ) {
++ // Display connection already opened by another application
+
+- if ( appSync ) // if "-sync" argument
+- XSynchronize( appDpy, TRUE );
++ appForeignDpy = TRUE;
++ appDpy = display;
++ }
++ else {
++ // Connect to X server
++
++ if( qt_is_gui_used ) {
++ if ( ( appDpy = XOpenDisplay(appDpyName) ) == 0 ) {
++ qWarning( "%s: cannot connect to X server %s", appName,
++ XDisplayName(appDpyName) );
++ qApp = 0;
++ exit( 1 );
++ }
++
++ if ( appSync ) // if "-sync" argument
++ XSynchronize( appDpy, TRUE );
++ }
+ }
+ }
+ // Common code, regardless of whether display is foreign.
diff --git a/gentoo/dev-qt/qt/files/trinity-3.5.13.1..3.5.13.2/qt3-2013-04-20_19_01_58-Fix-Qt-input-method-failure-This-resolves-Bug-1019-c421de2.patch b/gentoo/dev-qt/qt/files/trinity-3.5.13.1..3.5.13.2/qt3-2013-04-20_19_01_58-Fix-Qt-input-method-failure-This-resolves-Bug-1019-c421de2.patch
new file mode 100644
index 000000000..3df8e73ba
--- /dev/null
+++ b/gentoo/dev-qt/qt/files/trinity-3.5.13.1..3.5.13.2/qt3-2013-04-20_19_01_58-Fix-Qt-input-method-failure-This-resolves-Bug-1019-c421de2.patch
@@ -0,0 +1,45 @@
+diff --git a/src/kernel/qapplication_x11.cpp b/src/kernel/qapplication_x11.cpp
+index 50a2bac..9236f3a 100644
+--- a/src/kernel/qapplication_x11.cpp
++++ b/src/kernel/qapplication_x11.cpp
+@@ -195,7 +195,7 @@ static const char *appBTNCol = 0; // application btn color
+ static const char *mwGeometry = 0; // main widget geometry
+ static const char *mwTitle = 0; // main widget title
+ //Ming-Che 10/10
+-char *qt_ximServer = 0; // XIM Server will connect to
++Q_EXPORT char *qt_ximServer = 0; // XIM Server will connect to
+ static bool mwIconic = FALSE; // main widget iconified
+ //Ming-Che 10/10
+ static Display *appDpy = 0; // X11 application display
+@@ -415,13 +415,13 @@ static bool qt_x11EventFilter( XEvent* ev )
+
+ #if !defined(QT_NO_XIM)
+ //XIM qt_xim = 0;
+-XIMStyle qt_xim_style = 0;
+-XIMStyle qt_xim_preferred_style = 0;
+-static XIMStyle xim_default_style = XIMPreeditCallbacks | XIMStatusNothing;
++Q_EXPORT XIMStyle qt_xim_style = 0;
++Q_EXPORT XIMStyle qt_xim_preferred_style = 0;
++Q_EXPORT static XIMStyle xim_default_style = XIMPreeditCallbacks | XIMStatusNothing;
+ #endif
+
+-int qt_ximComposingKeycode=0;
+-QTextCodec * qt_input_mapper = 0;
++Q_EXPORT int qt_ximComposingKeycode=0;
++Q_EXPORT QTextCodec * qt_input_mapper = 0;
+
+ Q_EXPORT Time qt_x_time = CurrentTime;
+ Q_EXPORT Time qt_x_user_time = CurrentTime;
+diff --git a/src/kernel/qinputcontext.h b/src/kernel/qinputcontext.h
+index 99e5d37..5b2650a 100644
+--- a/src/kernel/qinputcontext.h
++++ b/src/kernel/qinputcontext.h
+@@ -69,7 +69,7 @@ struct QInputContextMenu {
+ };
+
+
+-class QInputContext : public QObject
++class Q_EXPORT QInputContext : public QObject
+ {
+ Q_OBJECT
+ public:
diff --git a/gentoo/dev-qt/qt/files/trinity-3.5.13.1..3.5.13.2/qt3-2013-04-20_19_01_59-Fix-qmake-library-search-path-on-64-bit-systems-This-resolves-Bug-1016-e374dac.patch b/gentoo/dev-qt/qt/files/trinity-3.5.13.1..3.5.13.2/qt3-2013-04-20_19_01_59-Fix-qmake-library-search-path-on-64-bit-systems-This-resolves-Bug-1016-e374dac.patch
new file mode 100644
index 000000000..42d1ce7a2
--- /dev/null
+++ b/gentoo/dev-qt/qt/files/trinity-3.5.13.1..3.5.13.2/qt3-2013-04-20_19_01_59-Fix-qmake-library-search-path-on-64-bit-systems-This-resolves-Bug-1016-e374dac.patch
@@ -0,0 +1,13 @@
+diff --git a/mkspecs/linux-g++-64/qmake.conf b/mkspecs/linux-g++-64/qmake.conf
+index 716e5c0..f891b3e 100644
+--- a/mkspecs/linux-g++-64/qmake.conf
++++ b/mkspecs/linux-g++-64/qmake.conf
+@@ -45,7 +45,7 @@ QMAKE_LIBDIR =
+ QMAKE_INCDIR_X11 = /usr/X11R6/include
+ QMAKE_LIBDIR_X11 = /usr/X11R6/lib64
+ QMAKE_INCDIR_QT = $(QTDIR)/include
+-QMAKE_LIBDIR_QT = $(QTDIR)/lib
++QMAKE_LIBDIR_QT = $(QTDIR)/lib64
+ QMAKE_INCDIR_OPENGL = /usr/X11R6/include
+ QMAKE_LIBDIR_OPENGL = /usr/X11R6/lib64
+
diff --git a/gentoo/dev-qt/qt/files/trinity-3.5.13.1..3.5.13.2/qt3-2013-04-20_19_01_59-Update-zh-tw-translations-c62cd50.patch b/gentoo/dev-qt/qt/files/trinity-3.5.13.1..3.5.13.2/qt3-2013-04-20_19_01_59-Update-zh-tw-translations-c62cd50.patch
new file mode 100644
index 000000000..b0cd4d119
--- /dev/null
+++ b/gentoo/dev-qt/qt/files/trinity-3.5.13.1..3.5.13.2/qt3-2013-04-20_19_01_59-Update-zh-tw-translations-c62cd50.patch
@@ -0,0 +1,253 @@
+diff --git a/translations/qt_zh-tw.ts b/translations/qt_zh-tw.ts
+index 8260fe4..0f0eaa8 100644
+--- a/translations/qt_zh-tw.ts
++++ b/translations/qt_zh-tw.ts
+@@ -115,7 +115,7 @@
+ </message>
+ <message>
+ <source>Menu</source>
+- <translation>Menu</translation>
++ <translation>é¸å–®</translation>
+ </message>
+ <message>
+ <source>Help</source>
+@@ -337,7 +337,7 @@
+ </message>
+ <message>
+ <source>A&amp;lpha channel:</source>
+- <translation>Alpha 色頻(&amp;L):</translation>
++ <translation>é€æ˜Žè‰²é »(&amp;L):</translation>
+ </message>
+ <message>
+ <source>&amp;Basic colors</source>
+@@ -429,11 +429,11 @@
+ </message>
+ <message>
+ <source>Read: %1</source>
+- <translation>讀å–: %1</translation>
++ <translation>讀å–:%1</translation>
+ </message>
+ <message>
+ <source>Write: %1</source>
+- <translation>寫入: %1</translation>
++ <translation>寫入:%1</translation>
+ </message>
+ <message>
+ <source>Cancel</source>
+@@ -1194,7 +1194,7 @@ to
+ </message>
+ <message>
+ <source>Customize...</source>
+- <translation>自訂...</translation>
++ <translation>自訂…</translation>
+ </message>
+ </context>
+ <context>
+@@ -1264,7 +1264,7 @@ to
+ </message>
+ <message>
+ <source>&lt;h3&gt;About Qt&lt;/h3&gt;&lt;p&gt;This program uses Qt version %1.&lt;/p&gt;&lt;p&gt;Qt is a C++ toolkit for multiplatform GUI &amp;amp; application development.&lt;/p&gt;&lt;p&gt;Qt provides single-source portability across MS&amp;nbsp;Windows, Mac&amp;nbsp;OS&amp;nbsp;X, Linux, and all major commercial Unix variants.&lt;br&gt;Qt is also available for embedded devices.&lt;/p&gt;&lt;p&gt;Qt is a Trolltech product. See &lt;tt&gt;http://www.trolltech.com/qt/&lt;/tt&gt; for more information.&lt;/p&gt;</source>
+- <translation>&lt;h3&gt;關於 Qt&lt;/h3&gt;&lt;p&gt;本程å¼ä½¿ç”¨ Qt 版本 %1。&lt;/p&gt;&lt;p&gt;Qt æ˜¯ç”¨æ–¼å¤šå¹³å° GUI 和應用程å¼é–‹ç™¼çš„ C++ 工具套件。&lt;/p&gt;&lt;p&gt;Qt 為 MS&amp;nbsp;Windowsã€Mac&amp;nbsp;OS&amp;nbsp;Xã€Linux 和所有主è¦çš„商用 Unix 變異版本,æ供跨平å°çš„單一原始碼å¯æ”œæ€§ã€‚&lt;br&gt;Qt 也å¯ç”¨æ–¼å…§åµŒè£ç½®ã€‚&lt;/p&gt;&lt;p&gt;Qt 是 Trolltech 的產å“。如需詳細資訊,請åƒé–± &lt;tt&gt;http://www.trolltech.com/qt/&lt;/tt&gt;。&lt;/p&gt;</translation>
++ <translation>&lt;h3&gt;關於 Qt&lt;/h3&gt;&lt;p&gt;本程å¼ä½¿ç”¨ Qt 版本 %1。&lt;/p&gt;&lt;p&gt;Qt 是用於多平臺 GUI 和應用程å¼é–‹ç™¼çš„ C++ 工具套件。&lt;/p&gt;&lt;p&gt;Qt 為 MS&amp;nbsp;Windowsã€Mac&amp;nbsp;OS&amp;nbsp;Xã€Linux 和所有主è¦çš„商用 Unix 變異版本,æ供跨平臺的單一原始碼å¯æ”œæ€§ã€‚&lt;br&gt;Qt 也å¯ç”¨æ–¼å…§åµŒè£ç½®ã€‚&lt;/p&gt;&lt;p&gt;Qt 是 Trolltech 的產å“。如需詳細資訊,請åƒé–± &lt;tt&gt;http://www.trolltech.com/qt/&lt;/tt&gt;。&lt;/p&gt;</translation>
+ </message>
+ </context>
+ <context>
+@@ -1282,7 +1282,7 @@ to
+ </message>
+ <message>
+ <source>Aliases: %1</source>
+- <translation>別å: %1</translation>
++ <translation>別å:%1</translation>
+ </message>
+ <message>
+ <source>unknown</source>
+@@ -1338,7 +1338,7 @@ to
+ </message>
+ <message>
+ <source>Browse...</source>
+- <translation>ç€è¦½...</translation>
++ <translation>ç€è¦½â€¦</translation>
+ </message>
+ <message>
+ <source>Options</source>
+@@ -1386,123 +1386,123 @@ to
+ </message>
+ <message>
+ <source>A0 (841 x 1189 mm)</source>
+- <translation>A0 (841 x 1189 mm)</translation>
++ <translation>A0 (841 x 1189 å…¬é‡)</translation>
+ </message>
+ <message>
+ <source>A1 (594 x 841 mm)</source>
+- <translation>A1 (594 x 841 mm)</translation>
++ <translation>A1 (594 x 841 å…¬é‡)</translation>
+ </message>
+ <message>
+ <source>A2 (420 x 594 mm)</source>
+- <translation>A2 (420 x 594 mm)</translation>
++ <translation>A2 (420 x 594 å…¬é‡)</translation>
+ </message>
+ <message>
+ <source>A3 (297 x 420 mm)</source>
+- <translation>A3 (297 x 420 mm)</translation>
++ <translation>A3 (297 x 420 å…¬é‡)</translation>
+ </message>
+ <message>
+ <source>A4 (210x297 mm, 8.26x11.7 inches)</source>
+- <translation>A4 (210x297 mm,8.26x11.7 英å‹)</translation>
++ <translation>A4 (210x297 å…¬é‡ï¼Œ8.26x11.7 英å‹)</translation>
+ </message>
+ <message>
+ <source>A5 (148 x 210 mm)</source>
+- <translation>A5 (148 x 210 mm)</translation>
++ <translation>A5 (148 x 210 å…¬é‡)</translation>
+ </message>
+ <message>
+ <source>A6 (105 x 148 mm)</source>
+- <translation>A6 (105 x 148 mm)</translation>
++ <translation>A6 (105 x 148 å…¬é‡)</translation>
+ </message>
+ <message>
+ <source>A7 (74 x 105 mm)</source>
+- <translation>A7 (74 x 105 mm)</translation>
++ <translation>A7 (74 x 105 å…¬é‡)</translation>
+ </message>
+ <message>
+ <source>A8 (52 x 74 mm)</source>
+- <translation>A8 (52 x 74 mm)</translation>
++ <translation>A8 (52 x 74 å…¬é‡)</translation>
+ </message>
+ <message>
+ <source>A9 (37 x 52 mm)</source>
+- <translation>A9 (37 x 52 mm)</translation>
++ <translation>A9 (37 x 52 å…¬é‡)</translation>
+ </message>
+ <message>
+ <source>B0 (1000 x 1414 mm)</source>
+- <translation>B0 (1000 x 1414 mm)</translation>
++ <translation>B0 (1000 x 1414 å…¬é‡)</translation>
+ </message>
+ <message>
+ <source>B1 (707 x 1000 mm)</source>
+- <translation>B1 (707 x 1000 mm)</translation>
++ <translation>B1 (707 x 1000 å…¬é‡)</translation>
+ </message>
+ <message>
+ <source>B2 (500 x 707 mm)</source>
+- <translation>B2 (500 x 707 mm)</translation>
++ <translation>B2 (500 x 707 å…¬é‡)</translation>
+ </message>
+ <message>
+ <source>B3 (353 x 500 mm)</source>
+- <translation>B3 (353 x 500 mm)</translation>
++ <translation>B3 (353 x 500 å…¬é‡)</translation>
+ </message>
+ <message>
+ <source>B4 (250 x 353 mm)</source>
+- <translation>B4 (250 x 353 mm)</translation>
++ <translation>B4 (250 x 353 å…¬é‡)</translation>
+ </message>
+ <message>
+ <source>B5 (176 x 250 mm, 6.93x9.84 inches)</source>
+- <translation>B5 (176 x 250 mm,6.93x9.84 英å‹)</translation>
++ <translation>B5 (176 x 250 å…¬é‡ï¼Œ6.93x9.84 英å‹)</translation>
+ </message>
+ <message>
+ <source>B6 (125 x 176 mm)</source>
+- <translation>B6 (125 x 176 mm)</translation>
++ <translation>B6 (125 x 176 å…¬é‡)</translation>
+ </message>
+ <message>
+ <source>B7 (88 x 125 mm)</source>
+- <translation>B7 (88 x 125 mm)</translation>
++ <translation>B7 (88 x 125 å…¬é‡)</translation>
+ </message>
+ <message>
+ <source>B8 (62 x 88 mm)</source>
+- <translation>B8 (62 x 88 mm)</translation>
++ <translation>B8 (62 x 88 å…¬é‡)</translation>
+ </message>
+ <message>
+ <source>B9 (44 x 62 mm)</source>
+- <translation>B9 (44 x 62 mm)</translation>
++ <translation>B9 (44 x 62 å…¬é‡)</translation>
+ </message>
+ <message>
+ <source>B10 (31 x 44 mm)</source>
+- <translation>B10 (31 x 44 mm)</translation>
++ <translation>B10 (31 x 44 å…¬é‡)</translation>
+ </message>
+ <message>
+ <source>C5E (163 x 229 mm)</source>
+- <translation>C5E (163 x 229 mm)</translation>
++ <translation>C5E (163 x 229 å…¬é‡)</translation>
+ </message>
+ <message>
+ <source>DLE (110 x 220 mm)</source>
+- <translation>DLE (110 x 220 mm)</translation>
++ <translation>DLE (110 x 220 å…¬é‡)</translation>
+ </message>
+ <message>
+ <source>Executive (7.5x10 inches, 191x254 mm)</source>
+- <translation>Executive (7.5x10 英å‹ï¼Œ191x254 mm)</translation>
++ <translation>Executive (7.5x10 英å‹ï¼Œ191x254 å…¬é‡)</translation>
+ </message>
+ <message>
+ <source>Folio (210 x 330 mm)</source>
+- <translation>Folio (210 x 330 mm)</translation>
++ <translation>Folio (210 x 330 å…¬é‡)</translation>
+ </message>
+ <message>
+ <source>Ledger (432 x 279 mm)</source>
+- <translation>Ledger (432 x 279 mm)</translation>
++ <translation>Ledger (432 x 279 å…¬é‡)</translation>
+ </message>
+ <message>
+ <source>Legal (8.5x14 inches, 216x356 mm)</source>
+- <translation>Legal (8.5x14 英å‹ï¼Œ216x356 mm)</translation>
++ <translation>Legal (8.5x14 英å‹ï¼Œ216x356 å…¬é‡)</translation>
+ </message>
+ <message>
+ <source>Letter (8.5x11 inches, 216x279 mm)</source>
+- <translation>Letter (8.5x11 英å‹ï¼Œ216x279 mm)</translation>
++ <translation>Letter (8.5x11 英å‹ï¼Œ216x279 å…¬é‡)</translation>
+ </message>
+ <message>
+ <source>Tabloid (279 x 432 mm)</source>
+- <translation>Tabloid (279 x 432 mm)</translation>
++ <translation>Tabloid (279 x 432 å…¬é‡)</translation>
+ </message>
+ <message>
+ <source>US Common #10 Envelope (105 x 241 mm)</source>
+- <translation>美國一般 10 è™Ÿä¿¡å° (105 x 241 mm)</translation>
++ <translation>美國一般 10 è™Ÿä¿¡å° (105 x 241 å…¬é‡)</translation>
+ </message>
+ <message>
+ <source>Setup Printer</source>
+@@ -1691,7 +1691,7 @@ to
+ <name>QToolBar</name>
+ <message>
+ <source>More...</source>
+- <translation>其他...</translation>
++ <translation>其他…</translation>
+ </message>
+ </context>
+ <context>
+@@ -1811,7 +1811,7 @@ to
+ </message>
+ <message>
+ <source>&amp;Help</source>
+- <translation>說明(&amp;H)</translation>
++ <translation>求助(&amp;H)</translation>
+ </message>
+ </context>
+ <context>
+@@ -1988,7 +1988,7 @@ to
+ </message>
+ <message>
+ <source>Paste special...</source>
+- <translation>é¸æ“‡æ€§è²¼ä¸Š...</translation>
++ <translation>é¸æ“‡æ€§è²¼ä¸Šâ€¦</translation>
+ </message>
+ <message>
+ <source>Clear</source>
diff --git a/gentoo/dev-qt/qt/files/trinity-3.5.13.1..3.5.13.2/qt3-2013-04-20_19_02_00-Add-0084-compositing-patch-from-RedHat-909c3cb.patch b/gentoo/dev-qt/qt/files/trinity-3.5.13.1..3.5.13.2/qt3-2013-04-20_19_02_00-Add-0084-compositing-patch-from-RedHat-909c3cb.patch
new file mode 100644
index 000000000..b9be973ee
--- /dev/null
+++ b/gentoo/dev-qt/qt/files/trinity-3.5.13.1..3.5.13.2/qt3-2013-04-20_19_02_00-Add-0084-compositing-patch-from-RedHat-909c3cb.patch
@@ -0,0 +1,73 @@
+diff --git a/src/kernel/qwidget_x11.cpp b/src/kernel/qwidget_x11.cpp
+index 02fdebf..a095025 100644
+--- a/src/kernel/qwidget_x11.cpp
++++ b/src/kernel/qwidget_x11.cpp
+@@ -558,7 +558,10 @@ void QWidget::create( WId window, bool initializeWindow, bool destroyOldWindow)
+ wsa.save_under = True;
+ XChangeWindowAttributes( dpy, id, CWOverrideRedirect | CWSaveUnder,
+ &wsa );
+- x11SetWindowType();
++ XClassHint class_hint;
++ class_hint.res_name = (char *) qAppName(); // application name
++ class_hint.res_class = (char *) qAppClass(); // application class
++ XSetClassHint( dpy, id, &class_hint );
+ } else if ( topLevel && !desktop ) { // top-level widget
+ QWidget *p = parentWidget(); // real parent
+ if (p)
+@@ -621,8 +624,6 @@ void QWidget::create( WId window, bool initializeWindow, bool destroyOldWindow)
+ else
+ XDeleteProperty(dpy, id, qt_xa_motif_wm_hints);
+
+- x11SetWindowType();
+-
+ // set _NET_WM_WINDOW_STATE
+ if (curr_winstate > 0)
+ XChangeProperty(dpy, id, qt_net_wm_state, XA_ATOM, 32, PropModeReplace,
+@@ -630,11 +631,6 @@ void QWidget::create( WId window, bool initializeWindow, bool destroyOldWindow)
+ else
+ XDeleteProperty(dpy, id, qt_net_wm_state);
+
+- // set _NET_WM_PID
+- long curr_pid = getpid();
+- XChangeProperty(dpy, id, qt_net_wm_pid, XA_CARDINAL, 32, PropModeReplace,
+- (unsigned char *) &curr_pid, 1);
+-
+ #ifndef QT_NO_XSYNC
+ // set _NET_WM_SYNC_COUNTER
+ createSyncCounter();
+@@ -646,19 +642,31 @@ void QWidget::create( WId window, bool initializeWindow, bool destroyOldWindow)
+ // when we create a toplevel widget, the frame strut should be dirty
+ fstrut_dirty = 1;
+
++ } else {
++ // non-toplevel widgets don't have a frame, so no need to
++ // update the strut
++ fstrut_dirty = 0;
++ }
++
++ if (initializeWindow && (popup || (topLevel && !desktop))) { // properties set on all toplevel windows
++ x11SetWindowType();
++
++ // set _NET_WM_PID
++ long curr_pid = getpid();
++ XChangeProperty(dpy, id, qt_net_wm_pid, XA_CARDINAL, 32, PropModeReplace,
++ (unsigned char *) &curr_pid, 1);
++
+ // declare the widget's object name as window role
+ XChangeProperty( dpy, id,
+ qt_window_role, XA_STRING, 8, PropModeReplace,
+ (unsigned char *)name(), qstrlen( name() ) );
+
+ // set client leader property
++ if ( !qt_x11_wm_client_leader )
++ qt_x11_create_wm_client_leader();
+ XChangeProperty( dpy, id, qt_wm_client_leader,
+ XA_WINDOW, 32, PropModeReplace,
+ (unsigned char *)&qt_x11_wm_client_leader, 1 );
+- } else {
+- // non-toplevel widgets don't have a frame, so no need to
+- // update the strut
+- fstrut_dirty = 0;
+ }
+
+ if ( initializeWindow ) {
diff --git a/gentoo/dev-qt/qt/files/trinity-3.5.13.1..3.5.13.2/qt3-2013-04-20_19_02_00-Use-unixODBC-instead-of-obsolete-iODBC-This-closes-Bug-792-Thanks-to-L0ner-for-the-patch-3f779ee.patch b/gentoo/dev-qt/qt/files/trinity-3.5.13.1..3.5.13.2/qt3-2013-04-20_19_02_00-Use-unixODBC-instead-of-obsolete-iODBC-This-closes-Bug-792-Thanks-to-L0ner-for-the-patch-3f779ee.patch
new file mode 100644
index 000000000..278aec438
--- /dev/null
+++ b/gentoo/dev-qt/qt/files/trinity-3.5.13.1..3.5.13.2/qt3-2013-04-20_19_02_00-Use-unixODBC-instead-of-obsolete-iODBC-This-closes-Bug-792-Thanks-to-L0ner-for-the-patch-3f779ee.patch
@@ -0,0 +1,59 @@
+diff --git a/plugins/src/sqldrivers/odbc/odbc.pro b/plugins/src/sqldrivers/odbc/odbc.pro
+index ac0cf3c..36d35b5 100644
+--- a/plugins/src/sqldrivers/odbc/odbc.pro
++++ b/plugins/src/sqldrivers/odbc/odbc.pro
+@@ -17,7 +17,7 @@ mac {
+ unix {
+ OBJECTS_DIR = .obj
+ !contains( LIBS, .*odbc.* ) {
+- LIBS *= -liodbc
++ LIBS *= -lodbc
+ }
+ }
+
+diff --git a/src/sql/drivers/odbc/qsql_odbc.cpp b/src/sql/drivers/odbc/qsql_odbc.cpp
+index b09afd2..8b0b58b 100644
+--- a/src/sql/drivers/odbc/qsql_odbc.cpp
++++ b/src/sql/drivers/odbc/qsql_odbc.cpp
+@@ -61,19 +61,18 @@
+ #endif
+
+ // newer platform SDKs use SQLLEN instead of SQLINTEGER
+-#ifdef SQLLEN
++#if defined(SQLLEN) || defined(Q_OS_WIN64) || defined(Q_OS_UNIX)
+ # define QSQLLEN SQLLEN
+ #else
+ # define QSQLLEN SQLINTEGER
+ #endif
+
+-#ifdef SQLULEN
++#if defined(SQLULEN) || defined(Q_OS_WIN64) || defined(Q_OS_UNIX)
+ # define QSQLULEN SQLULEN
+ #else
+ # define QSQLULEN SQLUINTEGER
+ #endif
+
+-
+ static const QSQLLEN COLNAMESIZE = 256;
+ //Map Qt parameter types to ODBC types
+ static const SQLSMALLINT qParamType[ 4 ] = { SQL_PARAM_INPUT, SQL_PARAM_INPUT, SQL_PARAM_OUTPUT, SQL_PARAM_INPUT_OUTPUT };
+diff --git a/src/sql/qt_sql.pri b/src/sql/qt_sql.pri
+index 5533c6f..17a6d40 100644
+--- a/src/sql/qt_sql.pri
++++ b/src/sql/qt_sql.pri
+@@ -110,13 +110,13 @@ sql {
+
+ mac {
+ !contains( LIBS, .*odbc.* ) {
+- LIBS *= -liodbc
++ LIBS *= -lodbc
+ }
+ }
+
+ unix {
+ !contains( LIBS, .*odbc.* ) {
+- LIBS *= -liodbc
++ LIBS *= -lodbc
+ }
+ }
+
diff --git a/gentoo/dev-qt/qt/files/trinity-3.5.13.1..3.5.13.2/qt3-2013-04-20_19_02_01-Make-basic-integer-QDataStream-reads-resistant-to-corruption-from-underlying-IO-device-failure-60621ef.patch b/gentoo/dev-qt/qt/files/trinity-3.5.13.1..3.5.13.2/qt3-2013-04-20_19_02_01-Make-basic-integer-QDataStream-reads-resistant-to-corruption-from-underlying-IO-device-failure-60621ef.patch
new file mode 100644
index 000000000..d8ca2cfce
--- /dev/null
+++ b/gentoo/dev-qt/qt/files/trinity-3.5.13.1..3.5.13.2/qt3-2013-04-20_19_02_01-Make-basic-integer-QDataStream-reads-resistant-to-corruption-from-underlying-IO-device-failure-60621ef.patch
@@ -0,0 +1,133 @@
+diff --git a/src/tools/qdatastream.cpp b/src/tools/qdatastream.cpp
+index dfdc20e..2cdd5f7 100644
+--- a/src/tools/qdatastream.cpp
++++ b/src/tools/qdatastream.cpp
+@@ -544,7 +544,10 @@ QDataStream &QDataStream::operator>>( Q_INT8 &i )
+ i = (buf[2] & 0x07)+((buf[1] & 0x07) << 3)+((buf[0] & 0x07) << 6);
+ }
+ } else { // data or text
+- i = (Q_INT8)dev->getch();
++ int ret = dev->getch();
++ if (ret >= 0) {
++ i = (Q_INT8)ret;
++ }
+ }
+ return *this;
+ }
+@@ -574,9 +577,10 @@ QDataStream &QDataStream::operator>>( Q_INT16 &i )
+ } else { // swap bytes
+ register uchar *p = (uchar *)(&i);
+ char b[2];
+- dev->readBlock( b, 2 );
+- *p++ = b[1];
+- *p = b[0];
++ if (dev->readBlock( b, 2 ) >= 2) {
++ *p++ = b[1];
++ *p = b[0];
++ }
+ }
+ return *this;
+ }
+@@ -606,11 +610,12 @@ QDataStream &QDataStream::operator>>( Q_INT32 &i )
+ } else { // swap bytes
+ uchar *p = (uchar *)(&i);
+ char b[4];
+- dev->readBlock( b, 4 );
+- *p++ = b[3];
+- *p++ = b[2];
+- *p++ = b[1];
+- *p = b[0];
++ if (dev->readBlock( b, 4 ) >= 4) {
++ *p++ = b[3];
++ *p++ = b[2];
++ *p++ = b[1];
++ *p = b[0];
++ }
+ }
+ return *this;
+ }
+@@ -643,15 +648,16 @@ QDataStream &QDataStream::operator>>( Q_INT64 &i )
+ } else { // swap bytes
+ uchar *p = (uchar *)(&i);
+ char b[8];
+- dev->readBlock( b, 8 );
+- *p++ = b[7];
+- *p++ = b[6];
+- *p++ = b[5];
+- *p++ = b[4];
+- *p++ = b[3];
+- *p++ = b[2];
+- *p++ = b[1];
+- *p = b[0];
++ if (dev->readBlock( b, 8 ) >= 8) {
++ *p++ = b[7];
++ *p++ = b[6];
++ *p++ = b[5];
++ *p++ = b[4];
++ *p++ = b[3];
++ *p++ = b[2];
++ *p++ = b[1];
++ *p = b[0];
++ }
+ }
+ return *this;
+ }
+@@ -683,9 +689,11 @@ QDataStream &QDataStream::operator>>( Q_LONG &i )
+ } else { // swap bytes
+ register uchar *p = (uchar *)(&i);
+ char b[sizeof(Q_LONG)];
+- dev->readBlock( b, sizeof(Q_LONG) );
+- for ( int j = sizeof(Q_LONG); j; )
+- *p++ = b[--j];
++ if (dev->readBlock( b, sizeof(Q_LONG) ) >= (int)sizeof(Q_LONG)) {
++ for ( int j = sizeof(Q_LONG); j; ) {
++ *p++ = b[--j];
++ }
++ }
+ }
+ return *this;
+ }
+@@ -724,11 +732,12 @@ QDataStream &QDataStream::operator>>( float &f )
+ } else { // swap bytes
+ uchar *p = (uchar *)(&f);
+ char b[4];
+- dev->readBlock( b, 4 );
+- *p++ = b[3];
+- *p++ = b[2];
+- *p++ = b[1];
+- *p = b[0];
++ if (dev->readBlock( b, 4 ) >= 4) {
++ *p++ = b[3];
++ *p++ = b[2];
++ *p++ = b[1];
++ *p = b[0];
++ }
+ }
+ return *this;
+ }
+@@ -752,15 +761,16 @@ QDataStream &QDataStream::operator>>( double &f )
+ } else { // swap bytes
+ register uchar *p = (uchar *)(&f);
+ char b[8];
+- dev->readBlock( b, 8 );
+- *p++ = b[7];
+- *p++ = b[6];
+- *p++ = b[5];
+- *p++ = b[4];
+- *p++ = b[3];
+- *p++ = b[2];
+- *p++ = b[1];
+- *p = b[0];
++ if (dev->readBlock( b, 8 ) >= 8) {
++ *p++ = b[7];
++ *p++ = b[6];
++ *p++ = b[5];
++ *p++ = b[4];
++ *p++ = b[3];
++ *p++ = b[2];
++ *p++ = b[1];
++ *p = b[0];
++ }
+ }
+ return *this;
+ }
diff --git a/gentoo/dev-qt/qt/files/trinity-3.5.13.1..3.5.13.2/qt3-2013-04-25_03_21_44-Fix-a-number-of-threading-problems-and-crashes-This-partially-resolves-Bug-1467-part-of-the-original-commit-b8e4f24.patch b/gentoo/dev-qt/qt/files/trinity-3.5.13.1..3.5.13.2/qt3-2013-04-25_03_21_44-Fix-a-number-of-threading-problems-and-crashes-This-partially-resolves-Bug-1467-part-of-the-original-commit-b8e4f24.patch
new file mode 100644
index 000000000..c47203150
--- /dev/null
+++ b/gentoo/dev-qt/qt/files/trinity-3.5.13.1..3.5.13.2/qt3-2013-04-25_03_21_44-Fix-a-number-of-threading-problems-and-crashes-This-partially-resolves-Bug-1467-part-of-the-original-commit-b8e4f24.patch
@@ -0,0 +1,1052 @@
+diff --git a/src/kernel/qapplication.cpp b/src/kernel/qapplication.cpp
+index 0ec4904..960db1e 100644
+--- a/src/kernel/qapplication.cpp
++++ b/src/kernel/qapplication.cpp
+@@ -546,8 +546,9 @@ static QPostEventList *globalPostedEvents = 0; // list of posted events
+
+ uint qGlobalPostedEventsCount()
+ {
+- if (!globalPostedEvents)
++ if (!globalPostedEvents) {
+ return 0;
++ }
+ return globalPostedEvents->count();
+ }
+
+@@ -2315,8 +2316,9 @@ void QApplication::aboutQt()
+ bool QApplication::notify( QObject *receiver, QEvent *e )
+ {
+ // no events are delivered after ~QApplication() has started
+- if ( is_app_closing )
++ if ( is_app_closing ) {
+ return FALSE;
++ }
+
+ if ( receiver == 0 ) { // serious error
+ #if defined(QT_CHECK_NULL)
+@@ -2358,8 +2360,9 @@ bool QApplication::notify( QObject *receiver, QEvent *e )
+ }
+
+ bool res = FALSE;
+- if ( !receiver->isWidgetType() )
++ if ( !receiver->isWidgetType() ) {
+ res = internalNotify( receiver, e );
++ }
+ else switch ( e->type() ) {
+ #ifndef QT_NO_ACCEL
+ case QEvent::Accel:
+@@ -2367,13 +2370,15 @@ bool QApplication::notify( QObject *receiver, QEvent *e )
+ QKeyEvent* key = (QKeyEvent*) e;
+ res = internalNotify( receiver, e );
+
+- if ( !res && !key->isAccepted() )
++ if ( !res && !key->isAccepted() ) {
+ res = qt_dispatchAccelEvent( (QWidget*)receiver, key );
++ }
+
+ // next lines are for compatibility with Qt <= 3.0.x: old
+ // QAccel was listening on toplevel widgets
+- if ( !res && !key->isAccepted() && !((QWidget*)receiver)->isTopLevel() )
++ if ( !res && !key->isAccepted() && !((QWidget*)receiver)->isTopLevel() ) {
+ res = internalNotify( ((QWidget*)receiver)->topLevelWidget(), e );
++ }
+ }
+ break;
+ #endif //QT_NO_ACCEL
+@@ -3116,8 +3121,9 @@ void QApplication::postEvent( QObject *receiver, QEvent *event )
+ qapp_cleanup_events.set( &globalPostedEvents );
+ }
+
+- if ( !receiver->postedEvents )
++ if ( !receiver->postedEvents ) {
+ receiver->postedEvents = new QPostEventList;
++ }
+ QPostEventList * l = receiver->postedEvents;
+
+ // if this is one of the compressible events, do compression
+@@ -3232,22 +3238,25 @@ void QApplication::sendPostedEvents( QObject *receiver, int event_type )
+ {
+ // Make sure the object hierarchy is stable before processing events
+ // to avoid endless loops
+- if ( receiver == 0 && event_type == 0 )
++ if ( receiver == 0 && event_type == 0 ) {
+ sendPostedEvents( 0, QEvent::ChildInserted );
+-
+- if ( !globalPostedEvents || ( receiver && !receiver->postedEvents ) )
+- return;
++ }
+
+ #ifdef QT_THREAD_SUPPORT
+ QMutexLocker locker( postevent_mutex );
+ #endif
+
++ if ( !globalPostedEvents || ( receiver && !receiver->postedEvents ) ) {
++ return;
++ }
++
+ bool sent = TRUE;
+ while ( sent ) {
+ sent = FALSE;
+
+- if ( !globalPostedEvents || ( receiver && !receiver->postedEvents ) )
++ if ( !globalPostedEvents || ( receiver && !receiver->postedEvents ) ) {
+ return;
++ }
+
+ // if we have a receiver, use the local list. Otherwise, use the
+ // global list
+@@ -3296,8 +3305,9 @@ void QApplication::sendPostedEvents( QObject *receiver, int event_type )
+ if ( e->type() == QEvent::Paint && r->isWidgetType() ) {
+ QWidget * w = (QWidget*)r;
+ QPaintEvent * p = (QPaintEvent*)e;
+- if ( w->isVisible() )
++ if ( w->isVisible() ) {
+ w->repaint( p->reg, p->erase );
++ }
+ } else {
+ sent = TRUE;
+ QApplication::sendEvent( r, e );
+@@ -3318,10 +3328,12 @@ void QApplication::sendPostedEvents( QObject *receiver, int event_type )
+ if ( l == globalPostedEvents ) {
+ globalPostedEvents->first();
+ while( (pe=globalPostedEvents->current()) != 0 ) {
+- if ( pe->event )
++ if ( pe->event ) {
+ globalPostedEvents->next();
+- else
++ }
++ else {
+ globalPostedEvents->remove();
++ }
+ }
+ }
+ }
+diff --git a/src/kernel/qobject.cpp b/src/kernel/qobject.cpp
+index 7790676..375e83b 100644
+--- a/src/kernel/qobject.cpp
++++ b/src/kernel/qobject.cpp
+@@ -471,11 +471,13 @@ QObject::~QObject()
+ blockSig = 0; // unblock signals to keep QGuardedPtr happy
+ emit destroyed( this );
+ emit destroyed();
+- if ( objname )
++ if ( objname ) {
+ delete [] (char*)objname;
++ }
+ objname = 0;
+- if ( pendTimer ) // might be pending timers
++ if ( pendTimer ) { // might be pending timers
+ qKillTimer( this );
++ }
+ QApplication::removePostedEvents( this );
+ if ( isTree ) {
+ remove_tree( this ); // remove from global root list
+@@ -755,12 +757,17 @@ QObject* QObject::child( const char *objName, const char *inheritsClass,
+ bool QObject::event( QEvent *e )
+ {
+ #if defined(QT_CHECK_NULL)
+- if ( e == 0 )
++ if ( e == 0 ) {
+ qWarning( "QObject::event: Null events are not permitted" );
++ }
+ #endif
++ if ( wasDeleted ) {
++ return TRUE;
++ }
+ if ( eventFilters ) { // try filters
+- if ( activate_filters(e) ) // stopped by a filter
++ if ( activate_filters(e) ) { // stopped by a filter
+ return TRUE;
++ }
+ }
+
+ switch ( e->type() ) {
+diff --git a/src/tools/qglist.cpp b/src/tools/qglist.cpp
+index b04ac75..fb94427 100644
+--- a/src/tools/qglist.cpp
++++ b/src/tools/qglist.cpp
+@@ -43,6 +43,10 @@
+ #include "qdatastream.h"
+ #include "qvaluelist.h"
+
++#if defined(QT_THREAD_SUPPORT)
++ #include "qmutex.h"
++#endif // defined(QT_THREAD_SUPPORT)
++
+ /*!
+ \class QLNode qglist.h
+ \reentrant
+@@ -221,6 +225,9 @@ QDataStream &QGList::write( QDataStream &s, QPtrCollection::Item ) const
+
+ QGList::QGList()
+ {
++#if defined(QT_THREAD_SUPPORT)
++ //mutex = new QMutex(true);
++#endif
+ firstNode = lastNode = curNode = 0; // initialize list
+ numNodes = 0;
+ curIndex = -1;
+@@ -234,6 +241,9 @@ QGList::QGList()
+ QGList::QGList( const QGList & list )
+ : QPtrCollection( list )
+ {
++#if defined(QT_THREAD_SUPPORT)
++ //mutex = new QMutex(true);
++#endif
+ firstNode = lastNode = curNode = 0; // initialize list
+ numNodes = 0;
+ curIndex = -1;
+@@ -258,6 +268,9 @@ QGList::~QGList()
+ // twice on the same address! This is insane but let's try not to crash
+ // here.
+ iterators = 0;
++#if defined(QT_THREAD_SUPPORT)
++ //delete mutex;
++#endif
+ }
+
+
+@@ -290,11 +303,13 @@ QGList& QGList::operator=( const QGList &list )
+
+ bool QGList::operator==( const QGList &list ) const
+ {
+- if ( count() != list.count() )
++ if ( count() != list.count() ) {
+ return FALSE;
++ }
+
+- if ( count() == 0 )
++ if ( count() == 0 ) {
+ return TRUE;
++ }
+
+ QLNode *n1 = firstNode;
+ QLNode *n2 = list.firstNode;
+@@ -322,8 +337,15 @@ bool QGList::operator==( const QGList &list ) const
+
+ QLNode *QGList::locate( uint index )
+ {
+- if ( index == (uint)curIndex ) // current node ?
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->lock();
++#endif
++ if ( index == (uint)curIndex ) { // current node ?
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->unlock();
++#endif
+ return curNode;
++ }
+ if ( !curNode && firstNode ) { // set current node
+ curNode = firstNode;
+ curIndex = 0;
+@@ -332,13 +354,18 @@ QLNode *QGList::locate( uint index )
+ int distance = index - curIndex; // node distance to cur node
+ bool forward; // direction to traverse
+
+- if ( index >= numNodes )
++ if ( index >= numNodes ) {
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->unlock();
++#endif
+ return 0;
++ }
+
+- if ( distance < 0 )
++ if ( distance < 0 ) {
+ distance = -distance;
++ }
+ if ( (uint)distance < index && (uint)distance < numNodes - index ) {
+- node = curNode; // start from current node
++ node = curNode; // start from current node
+ forward = index > (uint)curIndex;
+ } else if ( index < numNodes - index ) { // start from first node
+ node = firstNode;
+@@ -352,13 +379,18 @@ QLNode *QGList::locate( uint index )
+ forward = FALSE;
+ }
+ if ( forward ) { // now run through nodes
+- while ( distance-- )
++ while ( distance-- ) {
+ node = node->next;
++ }
+ } else {
+- while ( distance-- )
++ while ( distance-- ) {
+ node = node->prev;
++ }
+ }
+ curIndex = index; // must update index
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->unlock();
++#endif
+ return curNode = node;
+ }
+
+@@ -369,6 +401,9 @@ QLNode *QGList::locate( uint index )
+
+ void QGList::inSort( QPtrCollection::Item d )
+ {
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->lock();
++#endif
+ int index = 0;
+ register QLNode *n = firstNode;
+ while ( n && compareItems(n->data,d) < 0 ){ // find position in list
+@@ -376,6 +411,9 @@ void QGList::inSort( QPtrCollection::Item d )
+ index++;
+ }
+ insertAt( index, d );
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->unlock();
++#endif
+ }
+
+
+@@ -385,6 +423,9 @@ void QGList::inSort( QPtrCollection::Item d )
+
+ void QGList::prepend( QPtrCollection::Item d )
+ {
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->lock();
++#endif
+ register QLNode *n = new QLNode( newItem(d) );
+ Q_CHECK_PTR( n );
+ n->prev = 0;
+@@ -395,6 +436,9 @@ void QGList::prepend( QPtrCollection::Item d )
+ firstNode = curNode = n; // curNode affected
+ numNodes++;
+ curIndex = 0;
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->unlock();
++#endif
+ }
+
+
+@@ -404,16 +448,24 @@ void QGList::prepend( QPtrCollection::Item d )
+
+ void QGList::append( QPtrCollection::Item d )
+ {
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->lock();
++#endif
+ register QLNode *n = new QLNode( newItem(d) );
+ Q_CHECK_PTR( n );
+ n->next = 0;
+- if ( (n->prev = lastNode) ) // list is not empty
++ if ( (n->prev = lastNode) ) { // list is not empty
+ lastNode->next = n;
+- else // initialize list
++ }
++ else { // initialize list
+ firstNode = n;
++ }
+ lastNode = curNode = n; // curNode affected
+ curIndex = numNodes;
+ numNodes++;
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->unlock();
++#endif
+ }
+
+
+@@ -423,25 +475,43 @@ void QGList::append( QPtrCollection::Item d )
+
+ bool QGList::insertAt( uint index, QPtrCollection::Item d )
+ {
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->lock();
++#endif
+ if ( index == 0 ) {
+ prepend( d );
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->unlock();
++#endif
+ return TRUE;
+- } else if ( index == numNodes ) {
++ }
++ else if ( index == numNodes ) {
+ append( d );
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->unlock();
++#endif
+ return TRUE;
+ }
+ QLNode *nextNode = locate( index );
+- if ( !nextNode )
++ if ( !nextNode ) {
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->unlock();
++#endif
+ return FALSE;
++ }
+ QLNode *prevNode = nextNode->prev;
+ register QLNode *n = new QLNode( newItem(d) );
+ Q_CHECK_PTR( n );
+ nextNode->prev = n;
++ Q_ASSERT( (!((curIndex > 0) && (!prevNode))) );
+ prevNode->next = n;
+ n->prev = prevNode; // link new node into list
+ n->next = nextNode;
+ curNode = n; // curIndex set by locate()
+ numNodes++;
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->unlock();
++#endif
+ return TRUE;
+ }
+
+@@ -452,18 +522,30 @@ bool QGList::insertAt( uint index, QPtrCollection::Item d )
+
+ void QGList::relinkNode( QLNode *n )
+ {
+- if ( n == firstNode ) // already first
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->lock();
++#endif
++ if ( n == firstNode ) { // already first
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->unlock();
++#endif
+ return;
++ }
+ curNode = n;
+ unlink();
+ n->prev = 0;
+- if ( (n->next = firstNode) ) // list is not empty
++ if ( (n->next = firstNode) ) { // list is not empty
+ firstNode->prev = n;
+- else // initialize list
++ }
++ else { // initialize list
+ lastNode = n;
++ }
+ firstNode = curNode = n; // curNode affected
+ numNodes++;
+ curIndex = 0;
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->unlock();
++#endif
+ }
+
+
+@@ -473,8 +555,15 @@ void QGList::relinkNode( QLNode *n )
+
+ QLNode *QGList::unlink()
+ {
+- if ( curNode == 0 ) // null current node
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->lock();
++#endif
++ if ( curNode == 0 ) { // null current node
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->unlock();
++#endif
+ return 0;
++ }
+ register QLNode *n = curNode; // unlink this node
+ if ( n == firstNode ) { // removing first node ?
+ if ( (firstNode = n->next) ) {
+@@ -500,9 +589,13 @@ QLNode *QGList::unlink()
+ curIndex--;
+ }
+
+- if ( iterators )
++ if ( iterators ) {
+ iterators->notifyRemove( n, curNode );
++ }
+ numNodes--;
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->unlock();
++#endif
+ return n;
+ }
+
+@@ -513,6 +606,9 @@ QLNode *QGList::unlink()
+
+ bool QGList::removeNode( QLNode *n )
+ {
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->lock();
++#endif
+ #if defined(QT_CHECK_NULL)
+ if ( n == 0 || (n->prev && n->prev->next != n) ||
+ (n->next && n->next->prev != n) ) {
+@@ -526,6 +622,9 @@ bool QGList::removeNode( QLNode *n )
+ delete n;
+ curNode = firstNode;
+ curIndex = curNode ? 0 : -1;
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->unlock();
++#endif
+ return TRUE;
+ }
+
+@@ -537,13 +636,27 @@ bool QGList::removeNode( QLNode *n )
+
+ bool QGList::remove( QPtrCollection::Item d )
+ {
+- if ( d && find(d) == -1 )
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->lock();
++#endif
++ if ( d && find(d) == -1 ) {
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->unlock();
++#endif
+ return FALSE;
++ }
+ QLNode *n = unlink();
+- if ( !n )
++ if ( !n ) {
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->unlock();
++#endif
+ return FALSE;
++ }
+ deleteItem( n->data );
+ delete n;
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->unlock();
++#endif
+ return TRUE;
+ }
+
+@@ -553,13 +666,27 @@ bool QGList::remove( QPtrCollection::Item d )
+
+ bool QGList::removeRef( QPtrCollection::Item d )
+ {
+- if ( findRef(d) == -1 )
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->lock();
++#endif
++ if ( findRef(d) == -1 ) {
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->unlock();
++#endif
+ return FALSE;
++ }
+ QLNode *n = unlink();
+- if ( !n )
++ if ( !n ) {
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->unlock();
++#endif
+ return FALSE;
++ }
+ deleteItem( n->data );
+ delete n;
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->unlock();
++#endif
+ return TRUE;
+ }
+
+@@ -581,13 +708,27 @@ bool QGList::removeRef( QPtrCollection::Item d )
+
+ bool QGList::removeAt( uint index )
+ {
+- if ( !locate(index) )
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->lock();
++#endif
++ if ( !locate(index) ) {
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->unlock();
++#endif
+ return FALSE;
++ }
+ QLNode *n = unlink();
+- if ( !n )
++ if ( !n ) {
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->unlock();
++#endif
+ return FALSE;
++ }
+ deleteItem( n->data );
+ delete n;
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->unlock();
++#endif
+ return TRUE;
+ }
+
+@@ -597,13 +738,23 @@ bool QGList::removeAt( uint index )
+ */
+ bool QGList::replaceAt( uint index, QPtrCollection::Item d )
+ {
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->lock();
++#endif
+ QLNode *n = locate( index );
+- if ( !n )
++ if ( !n ) {
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->unlock();
++#endif
+ return FALSE;
++ }
+ if ( n->data != d ) {
+ deleteItem( n->data );
+ n->data = newItem( d );
+ }
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->unlock();
++#endif
+ return TRUE;
+ }
+
+@@ -615,10 +766,16 @@ bool QGList::replaceAt( uint index, QPtrCollection::Item d )
+
+ QPtrCollection::Item QGList::takeNode( QLNode *n )
+ {
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->lock();
++#endif
+ #if defined(QT_CHECK_NULL)
+ if ( n == 0 || (n->prev && n->prev->next != n) ||
+ (n->next && n->next->prev != n) ) {
+ qWarning( "QGList::takeNode: Corrupted node" );
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->unlock();
++#endif
+ return 0;
+ }
+ #endif
+@@ -628,6 +785,9 @@ QPtrCollection::Item QGList::takeNode( QLNode *n )
+ delete n; // delete the node, not data
+ curNode = firstNode;
+ curIndex = curNode ? 0 : -1;
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->unlock();
++#endif
+ return d;
+ }
+
+@@ -637,9 +797,15 @@ QPtrCollection::Item QGList::takeNode( QLNode *n )
+
+ QPtrCollection::Item QGList::take()
+ {
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->lock();
++#endif
+ QLNode *n = unlink(); // unlink node
+ Item d = n ? n->data : 0;
+ delete n; // delete node, keep contents
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->unlock();
++#endif
+ return d;
+ }
+
+@@ -649,11 +815,21 @@ QPtrCollection::Item QGList::take()
+
+ QPtrCollection::Item QGList::takeAt( uint index )
+ {
+- if ( !locate(index) )
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->lock();
++#endif
++ if ( !locate(index) ) {
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->unlock();
++#endif
+ return 0;
++ }
+ QLNode *n = unlink(); // unlink node
+ Item d = n ? n->data : 0;
+ delete n; // delete node, keep contents
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->unlock();
++#endif
+ return d;
+ }
+
+@@ -663,10 +839,16 @@ QPtrCollection::Item QGList::takeAt( uint index )
+
+ QPtrCollection::Item QGList::takeFirst()
+ {
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->lock();
++#endif
+ first();
+ QLNode *n = unlink(); // unlink node
+ Item d = n ? n->data : 0;
+ delete n;
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->unlock();
++#endif
+ return d;
+ }
+
+@@ -676,10 +858,16 @@ QPtrCollection::Item QGList::takeFirst()
+
+ QPtrCollection::Item QGList::takeLast()
+ {
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->lock();
++#endif
+ last();
+ QLNode *n = unlink(); // unlink node
+ Item d = n ? n->data : 0;
+ delete n;
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->unlock();
++#endif
+ return d;
+ }
+
+@@ -690,14 +878,18 @@ QPtrCollection::Item QGList::takeLast()
+
+ void QGList::clear()
+ {
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->lock();
++#endif
+ register QLNode *n = firstNode;
+
+ firstNode = lastNode = curNode = 0; // initialize list
+ numNodes = 0;
+ curIndex = -1;
+
+- if ( iterators )
++ if ( iterators ) {
+ iterators->notifyClear( FALSE );
++ }
+
+ QLNode *prevNode;
+ while ( n ) { // for all nodes ...
+@@ -706,6 +898,9 @@ void QGList::clear()
+ n = n->next;
+ delete prevNode; // deallocate node
+ }
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->unlock();
++#endif
+ }
+
+
+@@ -716,6 +911,9 @@ void QGList::clear()
+
+ int QGList::findRef( QPtrCollection::Item d, bool fromStart )
+ {
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->lock();
++#endif
+ register QLNode *n;
+ int index;
+ if ( fromStart ) { // start from first node
+@@ -731,6 +929,9 @@ int QGList::findRef( QPtrCollection::Item d, bool fromStart )
+ }
+ curNode = n;
+ curIndex = n ? index : -1;
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->unlock();
++#endif
+ return curIndex; // return position of item
+ }
+
+@@ -742,6 +943,9 @@ int QGList::findRef( QPtrCollection::Item d, bool fromStart )
+
+ int QGList::find( QPtrCollection::Item d, bool fromStart )
+ {
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->lock();
++#endif
+ register QLNode *n;
+ int index;
+ if ( fromStart ) { // start from first node
+@@ -757,6 +961,9 @@ int QGList::find( QPtrCollection::Item d, bool fromStart )
+ }
+ curNode = n;
+ curIndex = n ? index : -1;
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->unlock();
++#endif
+ return curIndex; // return position of item
+ }
+
+@@ -767,6 +974,9 @@ int QGList::find( QPtrCollection::Item d, bool fromStart )
+
+ uint QGList::containsRef( QPtrCollection::Item d ) const
+ {
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->lock();
++#endif
+ register QLNode *n = firstNode;
+ uint count = 0;
+ while ( n ) { // for all nodes...
+@@ -774,6 +984,9 @@ uint QGList::containsRef( QPtrCollection::Item d ) const
+ count++;
+ n = n->next;
+ }
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->unlock();
++#endif
+ return count;
+ }
+
+@@ -784,6 +997,9 @@ uint QGList::containsRef( QPtrCollection::Item d ) const
+
+ uint QGList::contains( QPtrCollection::Item d ) const
+ {
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->lock();
++#endif
+ register QLNode *n = firstNode;
+ uint count = 0;
+ QGList *that = (QGList*)this; // mutable for compareItems()
+@@ -792,6 +1008,9 @@ uint QGList::contains( QPtrCollection::Item d ) const
+ count++;
+ n = n->next;
+ }
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->unlock();
++#endif
+ return count;
+ }
+
+@@ -839,10 +1058,19 @@ uint QGList::contains( QPtrCollection::Item d ) const
+
+ QPtrCollection::Item QGList::first()
+ {
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->lock();
++#endif
+ if ( firstNode ) {
+ curIndex = 0;
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->unlock();
++#endif
+ return (curNode=firstNode)->data;
+ }
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->unlock();
++#endif
+ return 0;
+ }
+
+@@ -852,10 +1080,19 @@ QPtrCollection::Item QGList::first()
+
+ QPtrCollection::Item QGList::last()
+ {
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->lock();
++#endif
+ if ( lastNode ) {
+ curIndex = numNodes-1;
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->unlock();
++#endif
+ return (curNode=lastNode)->data;
+ }
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->unlock();
++#endif
+ return 0;
+ }
+
+@@ -865,15 +1102,24 @@ QPtrCollection::Item QGList::last()
+
+ QPtrCollection::Item QGList::next()
+ {
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->lock();
++#endif
+ if ( curNode ) {
+ if ( curNode->next ) {
+ curIndex++;
+ curNode = curNode->next;
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->unlock();
++#endif
+ return curNode->data;
+ }
+ curIndex = -1;
+ curNode = 0;
+ }
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->unlock();
++#endif
+ return 0;
+ }
+
+@@ -883,15 +1129,24 @@ QPtrCollection::Item QGList::next()
+
+ QPtrCollection::Item QGList::prev()
+ {
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->lock();
++#endif
+ if ( curNode ) {
+ if ( curNode->prev ) {
+ curIndex--;
+ curNode = curNode->prev;
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->unlock();
++#endif
+ return curNode->data;
+ }
+ curIndex = -1;
+ curNode = 0;
+ }
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->unlock();
++#endif
+ return 0;
+ }
+
+@@ -902,9 +1157,16 @@ QPtrCollection::Item QGList::prev()
+
+ void QGList::toVector( QGVector *vector ) const
+ {
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->lock();
++#endif
+ vector->clear();
+- if ( !vector->resize( count() ) )
++ if ( !vector->resize( count() ) ) {
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->unlock();
++#endif
+ return;
++ }
+ register QLNode *n = firstNode;
+ uint i = 0;
+ while ( n ) {
+@@ -912,10 +1174,16 @@ void QGList::toVector( QGVector *vector ) const
+ n = n->next;
+ i++;
+ }
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->unlock();
++#endif
+ }
+
+ void QGList::heapSortPushDown( QPtrCollection::Item* heap, int first, int last )
+ {
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->lock();
++#endif
+ int r = first;
+ while( r <= last/2 ) {
+ // Node r has only one child ?
+@@ -950,6 +1218,9 @@ void QGList::heapSortPushDown( QPtrCollection::Item* heap, int first, int last )
+ }
+ }
+ }
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->unlock();
++#endif
+ }
+
+
+@@ -962,9 +1233,16 @@ void QGList::heapSortPushDown( QPtrCollection::Item* heap, int first, int last )
+
+ void QGList::sort()
+ {
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->lock();
++#endif
+ uint n = count();
+- if ( n < 2 )
++ if ( n < 2 ) {
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->unlock();
++#endif
+ return;
++ }
+
+ // Create the heap
+ QPtrCollection::Item* realheap = new QPtrCollection::Item[ n ];
+@@ -995,6 +1273,9 @@ void QGList::sort()
+ }
+
+ delete [] realheap;
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->unlock();
++#endif
+ }
+
+
+@@ -1019,6 +1300,9 @@ QDataStream &operator<<( QDataStream &s, const QGList &list )
+
+ QDataStream &QGList::read( QDataStream &s )
+ {
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->lock();
++#endif
+ uint num;
+ s >> num; // read number of items
+ clear(); // clear list
+@@ -1042,6 +1326,9 @@ QDataStream &QGList::read( QDataStream &s )
+ }
+ curNode = firstNode;
+ curIndex = curNode ? 0 : -1;
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->unlock();
++#endif
+ return s;
+ }
+
+@@ -1051,12 +1338,18 @@ QDataStream &QGList::read( QDataStream &s )
+
+ QDataStream &QGList::write( QDataStream &s ) const
+ {
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->lock();
++#endif
+ s << count(); // write number of items
+ QLNode *n = firstNode;
+ while ( n ) { // write all items
+ write( s, n->data );
+ n = n->next;
+ }
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->unlock();
++#endif
+ return s;
+ }
+
+@@ -1068,9 +1361,15 @@ QDataStream &QGList::write( QDataStream &s ) const
+ */
+ QLNode* QGList::erase( QLNode* it )
+ {
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->lock();
++#endif
+ QLNode* n = it;
+ it = it->next;
+ removeNode( n );
++#if defined(QT_THREAD_SUPPORT)
++ //mutex->unlock();
++#endif
+ return it;
+ }
+
+diff --git a/src/tools/qglist.h b/src/tools/qglist.h
+index fadc46c..dfacf47 100644
+--- a/src/tools/qglist.h
++++ b/src/tools/qglist.h
+@@ -59,6 +59,8 @@ private:
+ QLNode( QPtrCollection::Item d ) { data = d; }
+ };
+
++class QMutex;
++class QGListPrivate;
+ class QGListIteratorList; // internal helper class
+
+ class Q_EXPORT QGList : public QPtrCollection // doubly linked generic list
+@@ -147,6 +149,12 @@ private:
+
+ QLNode *locate( uint ); // get node at i'th pos
+ QLNode *unlink(); // unlink node
++
++#if defined(QT_THREAD_SUPPORT)
++// QMutex* mutex;
++#endif
++
++// QGListPrivate* d;
+ };
+
+
diff --git a/gentoo/dev-qt/qt/files/trinity-3.5.13.1..3.5.13.2/qt3-2013-05-03_03_47_45-Fix-corrupted-titlebar-icons-in-subwindows-of-ARGB-applications-90f4a55.patch b/gentoo/dev-qt/qt/files/trinity-3.5.13.1..3.5.13.2/qt3-2013-05-03_03_47_45-Fix-corrupted-titlebar-icons-in-subwindows-of-ARGB-applications-90f4a55.patch
new file mode 100644
index 000000000..437dca94c
--- /dev/null
+++ b/gentoo/dev-qt/qt/files/trinity-3.5.13.1..3.5.13.2/qt3-2013-05-03_03_47_45-Fix-corrupted-titlebar-icons-in-subwindows-of-ARGB-applications-90f4a55.patch
@@ -0,0 +1,63 @@
+diff --git a/src/kernel/qwidget_x11.cpp b/src/kernel/qwidget_x11.cpp
+index a095025..783034e 100644
+--- a/src/kernel/qwidget_x11.cpp
++++ b/src/kernel/qwidget_x11.cpp
+@@ -44,6 +44,7 @@
+ #include "qpaintdevicemetrics.h"
+ #include "qpainter.h"
+ #include "qbitmap.h"
++#include "qimage.h"
+ #include "qobjectlist.h"
+ #include "qlayout.h"
+ #include "qtextcodec.h"
+@@ -1231,14 +1232,47 @@ void QWidget::setIcon( const QPixmap &pixmap )
+ }
+ Pixmap icon_pixmap = 0;
+ Pixmap mask_pixmap = 0;
++ QPixmap* pm = NULL;
+ if ( !pixmap.isNull() ) {
+- QPixmap* pm = new QPixmap( pixmap );
++ if (pixmap.depth() == 24) {
++ pm = new QPixmap( pixmap );
++ }
++ else {
++ // With most window managers, only 24-bit icon pixmaps are allowed in the WM hints, otherwise corrupt icons will be displayed
++ // Convert provided pixmaps to 24-bit here
++ int w = pixmap.width();
++ int h = pixmap.height();
++ pm = new QPixmap( pixmap.width(), pixmap.height(), 24 );
++ QImage iconImage = pixmap.convertToImage();
++
++ // Load the new 24-bit RGB pixmap with data
++ GC gc;
++ pm->detach();
++ Qt::HANDLE pmHandle = pm->handle();
++ gc = XCreateGC(x11Display(), pmHandle, 0, 0);
++ for (int y = 0; y < h; ++y) {
++ QRgb *ls = (QRgb *)iconImage.scanLine( y );
++ for (int x = 0; x < w; ++x) {
++ QRgb l = ls[x];
++ int r = int( qRed( l ) );
++ int g = int( qGreen( l ) );
++ int b = int( qBlue( l ) );
++ ls[x] = qRgb( r, g, b );
++ XSetForeground(x11Display(), gc, (r << 16) | (g << 8) | b );
++ XDrawPoint(x11Display(), pmHandle, gc, x, y);
++ }
++ }
++ XFreeGC(x11Display(), gc);
++ }
++
+ extra->topextra->icon = pm;
+- if ( !pm->mask() )
++ if ( !pm->mask() ) {
+ pm->setMask( pm->createHeuristicMask() ); // may do detach()
++ }
+ icon_pixmap = pm->handle();
+- if ( pm->mask() )
++ if ( pm->mask() ) {
+ mask_pixmap = pm->mask()->handle();
++ }
+ }
+ XWMHints *h = XGetWMHints( x11Display(), winId() );
+ XWMHints wm_hints;
diff --git a/gentoo/dev-qt/qt/files/trinity-3.5.13.1..3.5.13.2/qt3-2013-05-04_17_28_30-Fix-ARGB-mode-stippled-focus-rectangle-showing-underlying-window-contents-Fix-TQColor-not-processing-alpha-channel-in-ARGB-mode-d2240de.patch b/gentoo/dev-qt/qt/files/trinity-3.5.13.1..3.5.13.2/qt3-2013-05-04_17_28_30-Fix-ARGB-mode-stippled-focus-rectangle-showing-underlying-window-contents-Fix-TQColor-not-processing-alpha-channel-in-ARGB-mode-d2240de.patch
new file mode 100644
index 000000000..cb9e29c8f
--- /dev/null
+++ b/gentoo/dev-qt/qt/files/trinity-3.5.13.1..3.5.13.2/qt3-2013-05-04_17_28_30-Fix-ARGB-mode-stippled-focus-rectangle-showing-underlying-window-contents-Fix-TQColor-not-processing-alpha-channel-in-ARGB-mode-d2240de.patch
@@ -0,0 +1,62 @@
+diff --git a/src/kernel/qcolor_x11.cpp b/src/kernel/qcolor_x11.cpp
+index eeaee5e..dbd039e 100644
+--- a/src/kernel/qcolor_x11.cpp
++++ b/src/kernel/qcolor_x11.cpp
+@@ -407,8 +407,14 @@ uint QColor::alloc( int screen )
+ b = sd->blue_shift > 0 ? b << sd->blue_shift : b >> -sd->blue_shift;
+ pix = (b & sd->blue_mask) | (g & sd->green_mask) | (r & sd->red_mask)
+ | ~(sd->blue_mask | sd->green_mask | sd->red_mask);
+- if ( screen == QPaintDevice::x11AppScreen() )
++ if (QPaintDevice::x11AppDepth(screen) == 32) {
++ int a = qAlpha(d.argb);
++ pix = pix & 0x00ffffff;
++ pix = pix | (a << 24);
++ }
++ if ( screen == QPaintDevice::x11AppScreen() ) {
+ d.d32.pix = pix;
++ }
+ return pix;
+ }
+ QColorData *c = sd->colorDict->find( (long)(d.argb) );
+diff --git a/src/kernel/qpainter_x11.cpp b/src/kernel/qpainter_x11.cpp
+index 126c0d6..267887e 100644
+--- a/src/kernel/qpainter_x11.cpp
++++ b/src/kernel/qpainter_x11.cpp
+@@ -1842,16 +1842,24 @@ void QPainter::drawWinFocusRect( int x, int y, int w, int h,
+ RasterOp old_rop = (RasterOp)rop;
+
+ if ( xorPaint ) {
+- if ( QColor::numBitPlanes() <= 8 )
++ if ( QColor::numBitPlanes() <= 8 ) {
+ setPen( QPen(color1, 0, Qt::FineDotLine) );
+- else
++ }
++ else if ( QColor::numBitPlanes() <= 8 ) {
+ setPen( QPen(white, 0, Qt::FineDotLine) );
++ }
++ else {
++ setPen( QPen(QColor(qRgba(255,255,255,0)), 0, Qt::FineDotLine) );
++ }
+ setRasterOp( XorROP );
+- } else {
+- if ( qGray( bgColor.rgb() ) < 128 )
++ }
++ else {
++ if ( qGray( bgColor.rgb() ) < 128 ) {
+ setPen( QPen(white, 0, Qt::FineDotLine) );
+- else
++ }
++ else {
+ setPen( QPen(black, 0, Qt::FineDotLine) );
++ }
+ }
+
+ if ( testf(ExtDev|VxF|WxF) ) {
+@@ -1876,6 +1884,7 @@ void QPainter::drawWinFocusRect( int x, int y, int w, int h,
+ XSetLineAttributes( dpy, gc, 1, LineOnOffDash, CapButt, JoinMiter );
+
+ XDrawRectangle( dpy, hd, gc, x, y, w-1, h-1 );
++
+ XSetLineAttributes( dpy, gc, 0, LineSolid, CapButt, JoinMiter );
+ setRasterOp( old_rop );
+ setPen( old_pen );
diff --git a/gentoo/dev-qt/qt/files/trinity-3.5.13.1..3.5.13.2/qt3-2013-05-08_01_43_38-Fix-spelling-mistakes-169c39a.patch b/gentoo/dev-qt/qt/files/trinity-3.5.13.1..3.5.13.2/qt3-2013-05-08_01_43_38-Fix-spelling-mistakes-169c39a.patch
new file mode 100644
index 000000000..11f9dfb22
--- /dev/null
+++ b/gentoo/dev-qt/qt/files/trinity-3.5.13.1..3.5.13.2/qt3-2013-05-08_01_43_38-Fix-spelling-mistakes-169c39a.patch
@@ -0,0 +1,52 @@
+diff --git a/doc/html/qsqlcursor.html b/doc/html/qsqlcursor.html
+index 3111cc5..1caaaa7 100644
+--- a/doc/html/qsqlcursor.html
++++ b/doc/html/qsqlcursor.html
+@@ -386,7 +386,7 @@ record.
+ <a name="x2446"></a> cur.<a href="#insert">insert</a>();
+ </pre>
+ <p> In the above example, a cursor is created on the 'prices' table
+-and a pointer to the insert buffer is aquired using <a href="#primeInsert">primeInsert</a>().
++and a pointer to the insert buffer is acquired using <a href="#primeInsert">primeInsert</a>().
+ Each field's value is set to the desired value and then <a href="#insert">insert</a>()
+ is called to insert the data into the database. Remember: all edit
+ operations (insert(), <a href="#update">update</a>() and delete()) operate on the
+diff --git a/doc/man/man3/qsqlcursor.3qt b/doc/man/man3/qsqlcursor.3qt
+index c7067de..0a97aec 100644
+--- a/doc/man/man3/qsqlcursor.3qt
++++ b/doc/man/man3/qsqlcursor.3qt
+@@ -376,7 +376,7 @@ If \fIinvalidate\fR is TRUE (the default), the cursor will no longer be position
+ cur.insert();
+ .fi
+ .PP
+-In the above example, a cursor is created on the 'prices' table and a pointer to the insert buffer is aquired using primeInsert(). Each field's value is set to the desired value and then insert() is called to insert the data into the database. Remember: all edit operations (insert(), update() and delete()) operate on the contents of the cursor edit buffer and not on the contents of the cursor itself.
++In the above example, a cursor is created on the 'prices' table and a pointer to the insert buffer is acquired using primeInsert(). Each field's value is set to the desired value and then insert() is called to insert the data into the database. Remember: all edit operations (insert(), update() and delete()) operate on the contents of the cursor edit buffer and not on the contents of the cursor itself.
+ .PP
+ See also setMode() and lastError().
+ .SH "bool QSqlCursor::isCalculated ( const QString & name ) const"
+diff --git a/src/kernel/qinternal.cpp b/src/kernel/qinternal.cpp
+index cf1e037..dfb2abc 100644
+--- a/src/kernel/qinternal.cpp
++++ b/src/kernel/qinternal.cpp
+@@ -497,7 +497,7 @@ void QSharedDoubleBuffer::flush()
+ }
+
+ /* \internal
+- Aquire ownership of the shared double buffer pixmap, subject to the
++ Acquire ownership of the shared double buffer pixmap, subject to the
+ following conditions:
+
+ \list 1
+diff --git a/src/sql/qsqlcursor.cpp b/src/sql/qsqlcursor.cpp
+index a1be1f8..2ed963c 100644
+--- a/src/sql/qsqlcursor.cpp
++++ b/src/sql/qsqlcursor.cpp
+@@ -1007,7 +1007,7 @@ QString QSqlCursor::toString( const QSqlIndex& i, QSqlRecord* rec, const QString
+ \printuntil insert
+
+ In the above example, a cursor is created on the 'prices' table
+- and a pointer to the insert buffer is aquired using primeInsert().
++ and a pointer to the insert buffer is acquired using primeInsert().
+ Each field's value is set to the desired value and then insert()
+ is called to insert the data into the database. Remember: all edit
+ operations (insert(), update() and delete()) operate on the
diff --git a/gentoo/dev-qt/qt/metadata.xml b/gentoo/dev-qt/qt/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/dev-qt/qt/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/dev-qt/qt/qt-3.3.8d-r1.ebuild b/gentoo/dev-qt/qt/qt-3.3.8d-r1.ebuild
new file mode 100644
index 000000000..c2b6a84aa
--- /dev/null
+++ b/gentoo/dev-qt/qt/qt-3.3.8d-r1.ebuild
@@ -0,0 +1,341 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI=2
+
+# *** Please remember to update qt3.eclass when revbumping this ***
+
+inherit eutils flag-o-matic toolchain-funcs
+
+DESCRIPTION="The Qt toolkit is a comprehensive C++ application development framework."
+HOMEPAGE="http://qt.nokia.com/ http://www.trinitydesktop.org/"
+
+# IMMQT_P="qt-x11-immodule-unified-qt3.3.8-20070321-gentoo"
+TDE_VERSION="3.5.13.1"
+TDE_PATCH_VERSION="3.5.13.2"
+
+SRC_URI="http://www.mirrorservice.org/sites/trinitydesktop.org/trinity/releases/${TDE_VERSION}/dependencies/qt3-${TDE_VERSION}.tar.gz"
+# immqt? ( mirror://gentoo/${IMMQT_P}.diff.bz2 )
+# immqt-bc? ( mirror://gentoo/${IMMQT_P}.diff.bz2 )"
+
+LICENSE="|| ( QPL-1.0 GPL-2 GPL-3 )"
+
+SLOT="3"
+KEYWORDS="x86 amd64"
+IUSE="cups debug doc examples firebird ipv6 mysql nas nis opengl postgres sqlite xinerama"
+# no odbc, immqt and immqt-bc support anymore.
+DEPEND="
+ virtual/jpeg
+ >=media-libs/freetype-2
+ >=media-libs/libmng-1.0.9
+ media-libs/libpng
+ sys-libs/zlib
+ x11-libs/libXft
+ x11-libs/libXcursor
+ x11-libs/libXi
+ x11-libs/libXrandr
+ x11-libs/libSM
+ cups? ( net-print/cups )
+ firebird? ( dev-db/firebird )
+ mysql? ( virtual/mysql )
+ nas? ( >=media-libs/nas-1.5 )
+ opengl? ( virtual/opengl virtual/glu )
+ postgres? ( dev-db/postgresql )
+ xinerama? ( x11-libs/libXinerama )
+ !!<=dev-qt/qt-meta-3.3.8c"
+RDEPEND="${RDEPEND}
+ x11-proto/inputproto
+ x11-proto/xextproto
+ xinerama? ( x11-proto/xineramaproto )"
+
+# immqt? ( x11-proto/xineramaproto )
+# immqt-bc? ( x11-proto/xineramaproto )"
+#PDEPEND="odbc? ( ~dev-db/qt-unixODBC-$PV )"
+
+S="${WORKDIR}/qt3-3.5.13.1"
+
+QTBASE="/usr/qt/3"
+
+pkg_setup() {
+# if use immqt && use immqt-bc ; then
+# ewarn
+# ewarn "immqt and immqt-bc are exclusive. You cannot set both."
+# ewarn "Please specify either immqt or immqt-bc."
+# ewarn
+# die
+# elif use immqt ; then
+# ewarn
+# ewarn "You are going to compile binary imcompatible immodule for Qt. This means"
+## ewarn "you have to recompile everything depending on Qt after you install it."
+# ewarn "Be aware."
+# ewarn
+# fi
+
+ export QTDIR="${S}"
+
+ CXX=$(tc-getCXX)
+ if [[ ${CXX/g++/} != ${CXX} ]]; then
+ PLATCXX="g++"
+ elif [[ ${CXX/icpc/} != ${CXX} ]]; then
+ PLATCXX="icc"
+ else
+ die "Unknown compiler ${CXX}."
+ fi
+
+ case ${CHOST} in
+ *-freebsd*|*-dragonfly*)
+ PLATNAME="freebsd" ;;
+ *-openbsd*)
+ PLATNAME="openbsd" ;;
+ *-netbsd*)
+ PLATNAME="netbsd" ;;
+ *-darwin*)
+ PLATNAME="darwin" ;;
+ *-linux-*|*-linux)
+ PLATNAME="linux" ;;
+ *)
+ die "Unknown CHOST, no platform choosed."
+ esac
+
+ # probably this should be '*-64' for 64bit archs
+ # in a fully multilib environment (no compatibility symlinks)
+ export PLATFORM="${PLATNAME}-${PLATCXX}"
+}
+
+src_prepare() {
+ # apply trinity patches for minor releases
+ if [[ "$TDE_VERSION" != "$TDE_PATCH_VERSION" ]]; then
+ epatch "${FILESDIR}/trinity-$TDE_VERSION..$TDE_PATCH_VERSION/"
+ fi
+
+ # It's nice to able user apply his own patches.
+ epatch_user
+
+ sed -i -e 's:read acceptance:acceptance=yes:' configure
+
+ # Do not link with -rpath. See bug #75181.
+ find "${S}"/mkspecs -name qmake.conf | xargs \
+ sed -i -e 's:QMAKE_RPATH.*:QMAKE_RPATH =:'
+
+ # known working flags wrt #77623
+ use sparc && export CFLAGS="-O1" && export CXXFLAGS="${CFLAGS}"
+ # set c/xxflags and ldflags
+ strip-flags
+ append-flags -fno-strict-aliasing
+
+ sed -i -e "s:QMAKE_CFLAGS_RELEASE.*=.*:QMAKE_CFLAGS_RELEASE=${CFLAGS}:" \
+ -e "s:QMAKE_CXXFLAGS_RELEASE.*=.*:QMAKE_CXXFLAGS_RELEASE=${CXXFLAGS}:" \
+ -e "s:QMAKE_LFLAGS_RELEASE.*=.*:QMAKE_LFLAGS_RELEASE=${LDFLAGS}:" \
+ -e "s:\<QMAKE_CC\>.*=.*:QMAKE_CC=$(tc-getCC):" \
+ -e "s:\<QMAKE_CXX\>.*=.*:QMAKE_CXX=$(tc-getCXX):" \
+ -e "s:\<QMAKE_LINK\>.*=.*:QMAKE_LINK=$(tc-getCXX):" \
+ -e "s:\<QMAKE_LINK_SHLIB\>.*=.*:QMAKE_LINK_SHLIB=$(tc-getCXX):" \
+ "${S}"/mkspecs/${PLATFORM}/qmake.conf || die
+
+ if [ $(get_libdir) != "lib" ] ; then
+ sed -i -e "s:/lib$:/$(get_libdir):" \
+ "${S}"/mkspecs/${PLATFORM}/qmake.conf || die
+ fi
+
+ sed -i -e "s:CXXFLAGS.*=:CXXFLAGS=${CXXFLAGS} :" \
+ -e "s:LFLAGS.*=:LFLAGS=${LDFLAGS} :" \
+ "${S}"/qmake/Makefile.unix || die
+
+ # remove unnecessary headers
+ rm include/[^q]*.h
+ rm include/*_p.h
+}
+
+src_configure() {
+ export SYSCONF="${D}${QTBASE}"/etc/settings
+
+ # Let's just allow writing to these directories during Qt emerge
+ # as it makes Qt much happier.
+ addwrite "${QTBASE}/etc/settings"
+ addwrite "${HOME}/.qt"
+
+ [ "$(get_libdir)" != "lib" ] && myconf="${myconf} -L/usr/$(get_libdir)"
+
+ # unixODBC support is now a PDEPEND on dev-db/qt-unixODBC; see bug 14178.
+ use nas && myconf+=" -system-nas-sound"
+ use nis && myconf+=" -nis" || myconf+=" -no-nis"
+ use mysql && myconf+=" -plugin-sql-mysql -I/usr/include/mysql -L/usr/$(get_libdir)/mysql" || myconf+=" -no-sql-mysql"
+ use postgres && myconf+=" -plugin-sql-psql -I/usr/include/postgresql/server -I/usr/include/postgresql/pgsql -I/usr/include/postgresql/pgsql/server" || myconf+=" -no-sql-psql"
+ use firebird && myconf+=" -plugin-sql-ibase -I/opt/firebird/include" || myconf+=" -no-sql-ibase"
+ use sqlite && myconf+=" -plugin-sql-sqlite" || myconf+=" -no-sql-sqlite"
+ use cups && myconf+=" -cups" || myconf+=" -no-cups"
+ use opengl && myconf+=" -enable-module=opengl" || myconf+=" -disable-opengl"
+ use debug && myconf+=" -debug" || myconf+=" -release -no-g++-exceptions"
+ use xinerama && myconf+=" -xinerama" || myconf+=" -no-xinerama"
+
+ myconf="${myconf} -system-zlib -qt-gif"
+
+ use ipv6 && myconf+=" -ipv6" || myconf+=" -no-ipv6"
+# use immqt-bc && myconf+=" -inputmethod"
+# use immqt && myconf+=" -inputmethod -inputmethod-ext"
+
+ export YACC='byacc -d'
+ tc-export CC CXX
+ export LINK="$(tc-getCXX)"
+
+ ./configure -sm -thread -stl -system-libjpeg -verbose -largefile \
+ -qt-imgfmt-{jpeg,mng,png} -tablet -system-libmng \
+ -system-libpng -xft -platform ${PLATFORM} -xplatform \
+ ${PLATFORM} -xrender -prefix ${QTBASE} -libdir ${QTBASE}/$(get_libdir) \
+ -fast -no-sql-odbc ${myconf} -dlopen-opengl || die
+
+ emake src-qmake src-moc sub-src || die
+
+ export DYLD_LIBRARY_PATH="${S}/lib:/usr/X11R6/lib:${DYLD_LIBRARY_PATH}"
+ export LD_LIBRARY_PATH="${S}/lib:${LD_LIBRARY_PATH}"
+
+ emake sub-tools || die
+
+ if use examples; then
+ emake sub-tutorial sub-examples || die
+ fi
+
+ # Make the msg2qm utility (not made by default)
+ cd "${S}"/tools/msg2qm
+ ../../bin/qmake
+ emake
+
+ # Make the qembed utility (not made by default)
+ cd "${S}"/tools/qembed
+ ../../bin/qmake
+}
+
+src_install() {
+ local qt_version="$(grep VERSION src/qt.pro | awk '{ print $3 }')"
+ # binaries
+ into ${QTBASE}
+ dobin bin/*
+ dobin tools/msg2qm/msg2qm
+ dobin tools/qembed/qembed
+
+ # libraries
+ dolib.so lib/lib{editor,qassistantclient,designercore}.a
+ dolib.so lib/libqt-mt.la
+ dolib.so lib/libqt-mt.so.${qt_version} lib/libqui.so.1.0.0
+ cd "${D}"/${QTBASE}/$(get_libdir)
+
+ for x in libqui.so ; do
+ ln -s $x.1.0.0 $x.1.0
+ ln -s $x.1.0 $x.1
+ ln -s $x.1 $x
+ done
+
+ # version symlinks - 3.3.5->3.3->3->.so
+ ln -s libqt-mt.so.${qt_version} libqt-mt.so.3.3
+ ln -s libqt-mt.so.3.3 libqt-mt.so.3
+ ln -s libqt-mt.so.3 libqt-mt.so
+
+ # libqt -> libqt-mt symlinks
+ ln -s libqt-mt.so.${qt_version} libqt.so.${qt_version}
+ ln -s libqt-mt.so.3.3 libqt.so.3.3
+ ln -s libqt-mt.so.3 libqt.so.3
+ ln -s libqt-mt.so libqt.so
+
+ # plugins
+ cd "${S}"
+ local plugins=$(find plugins -name "lib*.so" -print)
+ for x in ${plugins}; do
+ exeinto ${QTBASE}/$(dirname ${x})
+ doexe ${x}
+ done
+
+ # Past this point just needs to be done once
+ is_final_abi || return 0
+
+ # includes
+ cd "${S}"
+ dodir ${QTBASE}/include/private
+ cp include/*\.h "${D}"/${QTBASE}/include/
+ cp include/private/*\.h "${D}"/${QTBASE}/include/private/
+
+ # prl files
+ sed -i -e "s:${S}:${QTBASE}:g" "${S}"/lib/*.prl
+ insinto ${QTBASE}/$(get_libdir)
+ doins "${S}"/lib/*.prl
+
+ # pkg-config file
+ insinto /usr/$(get_libdir)/pkgconfig
+ doins "${S}"/lib/*.pc
+
+ # List all the multilib libdirs
+ local libdirs
+ for alibdir in $(get_all_libdirs); do
+ libdirs="${libdirs}:${QTBASE}/${alibdir}"
+ done
+
+ # environment variables
+ cat <<EOF > "${T}"/45qt3
+PATH=${QTBASE}/bin
+ROOTPATH=${QTBASE}/bin
+LDPATH=${libdirs:1}
+QMAKESPEC=${PLATFORM}
+MANPATH=${QTBASE}/doc/man
+EOF
+
+ cat <<EOF > "${T}"/50qtdir3
+QTDIR=${QTBASE}
+EOF
+
+ cat <<EOF > "${T}"/50-qt3-revdep
+SEARCH_DIRS="${QTBASE}"
+EOF
+
+ insinto /etc/revdep-rebuild
+ doins "${T}"/50-qt3-revdep
+
+ doenvd "${T}"/45qt3 "${T}"/50qtdir3
+
+ if [ "${SYMLINK_LIB}" = "yes" ]; then
+ dosym $(get_abi_LIBDIR ${DEFAULT_ABI}) ${QTBASE}/lib
+ fi
+
+ insinto ${QTBASE}/tools/designer
+ doins -r tools/designer/templates
+
+ insinto ${QTBASE}
+ doins -r translations
+
+ keepdir ${QTBASE}/etc/settings
+
+ if use doc; then
+ insinto ${QTBASE}
+ doins -r "${S}"/doc
+ fi
+
+ if use examples; then
+ find "${S}"/examples "${S}"/tutorial -name Makefile | \
+ xargs sed -i -e "s:${S}:${QTBASE}:g"
+
+ cp -r "${S}"/examples "${D}"${QTBASE}/
+ cp -r "${S}"/tutorial "${D}"${QTBASE}/
+ fi
+
+ # misc build reqs
+ insinto ${QTBASE}/mkspecs
+ doins -r "${S}"/mkspecs/${PLATFORM}
+
+ sed -e "s:${S}:${QTBASE}:g" \
+ "${S}"/.qmake.cache > "${D}"${QTBASE}/.qmake.cache
+
+ dodoc FAQ README README-QT.TXT changes*
+# if use immqt || use immqt-bc ; then
+# dodoc "${S}"/README.immodule
+# fi
+}
+
+pkg_postinst() {
+ echo
+ elog "After a rebuild of Qt, it can happen that Qt plugins (such as Qt/KDE styles,"
+ elog "or widgets for the Qt designer) are no longer recognized. If this situation"
+ elog "occurs you should recompile the packages providing these plugins,"
+ elog "and you should also make sure that Qt and its plugins were compiled with the"
+ elog "same version of GCC. Packages that may need to be rebuilt are, for instance,"
+ elog "kde-base/kdelibs, kde-base/kdeartwork and kde-base/kdeartwork-styles."
+ elog "See http://doc.trolltech.com/3.3/plugins-howto.html for more infos."
+ echo
+}
diff --git a/gentoo/dev-qt/qt/qt-3.3.8d.ebuild b/gentoo/dev-qt/qt/qt-3.3.8d.ebuild
new file mode 100644
index 000000000..b866f1cd4
--- /dev/null
+++ b/gentoo/dev-qt/qt/qt-3.3.8d.ebuild
@@ -0,0 +1,341 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI=2
+
+# *** Please remember to update qt3.eclass when revbumping this ***
+
+inherit eutils flag-o-matic toolchain-funcs
+
+DESCRIPTION="The Qt toolkit is a comprehensive C++ application development framework."
+HOMEPAGE="http://qt.nokia.com/ http://www.trinitydesktop.org/"
+
+# IMMQT_P="qt-x11-immodule-unified-qt3.3.8-20070321-gentoo"
+TDE_VERSION="3.5.13.1"
+TDE_PATCH_VERSION="3.5.13.1"
+
+SRC_URI="http://www.mirrorservice.org/sites/trinitydesktop.org/trinity/releases/${TDE_VERSION}/dependencies/qt3-${TDE_VERSION}.tar.gz"
+# immqt? ( mirror://gentoo/${IMMQT_P}.diff.bz2 )
+# immqt-bc? ( mirror://gentoo/${IMMQT_P}.diff.bz2 )"
+
+LICENSE="|| ( QPL-1.0 GPL-2 GPL-3 )"
+
+SLOT="3"
+KEYWORDS="x86 amd64"
+IUSE="cups debug doc examples firebird ipv6 mysql nas nis opengl postgres sqlite xinerama"
+# no odbc, immqt and immqt-bc support anymore.
+DEPEND="
+ virtual/jpeg
+ >=media-libs/freetype-2
+ >=media-libs/libmng-1.0.9
+ media-libs/libpng
+ sys-libs/zlib
+ x11-libs/libXft
+ x11-libs/libXcursor
+ x11-libs/libXi
+ x11-libs/libXrandr
+ x11-libs/libSM
+ cups? ( net-print/cups )
+ firebird? ( dev-db/firebird )
+ mysql? ( virtual/mysql )
+ nas? ( >=media-libs/nas-1.5 )
+ opengl? ( virtual/opengl virtual/glu )
+ postgres? ( dev-db/postgresql )
+ xinerama? ( x11-libs/libXinerama )
+ !!<=dev-qt/qt-meta-3.3.8c"
+RDEPEND="${RDEPEND}
+ x11-proto/inputproto
+ x11-proto/xextproto
+ xinerama? ( x11-proto/xineramaproto )"
+
+# immqt? ( x11-proto/xineramaproto )
+# immqt-bc? ( x11-proto/xineramaproto )"
+#PDEPEND="odbc? ( ~dev-db/qt-unixODBC-$PV )"
+
+S="${WORKDIR}/qt3-3.5.13.1"
+
+QTBASE="/usr/qt/3"
+
+pkg_setup() {
+# if use immqt && use immqt-bc ; then
+# ewarn
+# ewarn "immqt and immqt-bc are exclusive. You cannot set both."
+# ewarn "Please specify either immqt or immqt-bc."
+# ewarn
+# die
+# elif use immqt ; then
+# ewarn
+# ewarn "You are going to compile binary imcompatible immodule for Qt. This means"
+## ewarn "you have to recompile everything depending on Qt after you install it."
+# ewarn "Be aware."
+# ewarn
+# fi
+
+ export QTDIR="${S}"
+
+ CXX=$(tc-getCXX)
+ if [[ ${CXX/g++/} != ${CXX} ]]; then
+ PLATCXX="g++"
+ elif [[ ${CXX/icpc/} != ${CXX} ]]; then
+ PLATCXX="icc"
+ else
+ die "Unknown compiler ${CXX}."
+ fi
+
+ case ${CHOST} in
+ *-freebsd*|*-dragonfly*)
+ PLATNAME="freebsd" ;;
+ *-openbsd*)
+ PLATNAME="openbsd" ;;
+ *-netbsd*)
+ PLATNAME="netbsd" ;;
+ *-darwin*)
+ PLATNAME="darwin" ;;
+ *-linux-*|*-linux)
+ PLATNAME="linux" ;;
+ *)
+ die "Unknown CHOST, no platform choosed."
+ esac
+
+ # probably this should be '*-64' for 64bit archs
+ # in a fully multilib environment (no compatibility symlinks)
+ export PLATFORM="${PLATNAME}-${PLATCXX}"
+}
+
+src_prepare() {
+ # apply trinity patches for minor releases
+ if [[ "$TDE_VERSION" != "$TDE_PATCH_VERSION" ]]; then
+ epatch "${FILESDIR}/trinity-$TDE_VERSION..$TDE_PATCH_VERSION/"
+ fi
+
+ # It's nice to able user apply his own patches.
+ epatch_user
+
+ sed -i -e 's:read acceptance:acceptance=yes:' configure
+
+ # Do not link with -rpath. See bug #75181.
+ find "${S}"/mkspecs -name qmake.conf | xargs \
+ sed -i -e 's:QMAKE_RPATH.*:QMAKE_RPATH =:'
+
+ # known working flags wrt #77623
+ use sparc && export CFLAGS="-O1" && export CXXFLAGS="${CFLAGS}"
+ # set c/xxflags and ldflags
+ strip-flags
+ append-flags -fno-strict-aliasing
+
+ sed -i -e "s:QMAKE_CFLAGS_RELEASE.*=.*:QMAKE_CFLAGS_RELEASE=${CFLAGS}:" \
+ -e "s:QMAKE_CXXFLAGS_RELEASE.*=.*:QMAKE_CXXFLAGS_RELEASE=${CXXFLAGS}:" \
+ -e "s:QMAKE_LFLAGS_RELEASE.*=.*:QMAKE_LFLAGS_RELEASE=${LDFLAGS}:" \
+ -e "s:\<QMAKE_CC\>.*=.*:QMAKE_CC=$(tc-getCC):" \
+ -e "s:\<QMAKE_CXX\>.*=.*:QMAKE_CXX=$(tc-getCXX):" \
+ -e "s:\<QMAKE_LINK\>.*=.*:QMAKE_LINK=$(tc-getCXX):" \
+ -e "s:\<QMAKE_LINK_SHLIB\>.*=.*:QMAKE_LINK_SHLIB=$(tc-getCXX):" \
+ "${S}"/mkspecs/${PLATFORM}/qmake.conf || die
+
+ if [ $(get_libdir) != "lib" ] ; then
+ sed -i -e "s:/lib$:/$(get_libdir):" \
+ "${S}"/mkspecs/${PLATFORM}/qmake.conf || die
+ fi
+
+ sed -i -e "s:CXXFLAGS.*=:CXXFLAGS=${CXXFLAGS} :" \
+ -e "s:LFLAGS.*=:LFLAGS=${LDFLAGS} :" \
+ "${S}"/qmake/Makefile.unix || die
+
+ # remove unnecessary headers
+ rm include/[^q]*.h
+ rm include/*_p.h
+}
+
+src_configure() {
+ export SYSCONF="${D}${QTBASE}"/etc/settings
+
+ # Let's just allow writing to these directories during Qt emerge
+ # as it makes Qt much happier.
+ addwrite "${QTBASE}/etc/settings"
+ addwrite "${HOME}/.qt"
+
+ [ "$(get_libdir)" != "lib" ] && myconf="${myconf} -L/usr/$(get_libdir)"
+
+ # unixODBC support is now a PDEPEND on dev-db/qt-unixODBC; see bug 14178.
+ use nas && myconf+=" -system-nas-sound"
+ use nis && myconf+=" -nis" || myconf+=" -no-nis"
+ use mysql && myconf+=" -plugin-sql-mysql -I/usr/include/mysql -L/usr/$(get_libdir)/mysql" || myconf+=" -no-sql-mysql"
+ use postgres && myconf+=" -plugin-sql-psql -I/usr/include/postgresql/server -I/usr/include/postgresql/pgsql -I/usr/include/postgresql/pgsql/server" || myconf+=" -no-sql-psql"
+ use firebird && myconf+=" -plugin-sql-ibase -I/opt/firebird/include" || myconf+=" -no-sql-ibase"
+ use sqlite && myconf+=" -plugin-sql-sqlite" || myconf+=" -no-sql-sqlite"
+ use cups && myconf+=" -cups" || myconf+=" -no-cups"
+ use opengl && myconf+=" -enable-module=opengl" || myconf+=" -disable-opengl"
+ use debug && myconf+=" -debug" || myconf+=" -release -no-g++-exceptions"
+ use xinerama && myconf+=" -xinerama" || myconf+=" -no-xinerama"
+
+ myconf="${myconf} -system-zlib -qt-gif"
+
+ use ipv6 && myconf+=" -ipv6" || myconf+=" -no-ipv6"
+# use immqt-bc && myconf+=" -inputmethod"
+# use immqt && myconf+=" -inputmethod -inputmethod-ext"
+
+ export YACC='byacc -d'
+ tc-export CC CXX
+ export LINK="$(tc-getCXX)"
+
+ ./configure -sm -thread -stl -system-libjpeg -verbose -largefile \
+ -qt-imgfmt-{jpeg,mng,png} -tablet -system-libmng \
+ -system-libpng -xft -platform ${PLATFORM} -xplatform \
+ ${PLATFORM} -xrender -prefix ${QTBASE} -libdir ${QTBASE}/$(get_libdir) \
+ -fast -no-sql-odbc ${myconf} -dlopen-opengl || die
+
+ emake src-qmake src-moc sub-src || die
+
+ export DYLD_LIBRARY_PATH="${S}/lib:/usr/X11R6/lib:${DYLD_LIBRARY_PATH}"
+ export LD_LIBRARY_PATH="${S}/lib:${LD_LIBRARY_PATH}"
+
+ emake sub-tools || die
+
+ if use examples; then
+ emake sub-tutorial sub-examples || die
+ fi
+
+ # Make the msg2qm utility (not made by default)
+ cd "${S}"/tools/msg2qm
+ ../../bin/qmake
+ emake
+
+ # Make the qembed utility (not made by default)
+ cd "${S}"/tools/qembed
+ ../../bin/qmake
+}
+
+src_install() {
+ local qt_version="$(grep VERSION src/qt.pro | awk '{ print $3 }')"
+ # binaries
+ into ${QTBASE}
+ dobin bin/*
+ dobin tools/msg2qm/msg2qm
+ dobin tools/qembed/qembed
+
+ # libraries
+ dolib.so lib/lib{editor,qassistantclient,designercore}.a
+ dolib.so lib/libqt-mt.la
+ dolib.so lib/libqt-mt.so.${qt_version} lib/libqui.so.1.0.0
+ cd "${D}"/${QTBASE}/$(get_libdir)
+
+ for x in libqui.so ; do
+ ln -s $x.1.0.0 $x.1.0
+ ln -s $x.1.0 $x.1
+ ln -s $x.1 $x
+ done
+
+ # version symlinks - 3.3.5->3.3->3->.so
+ ln -s libqt-mt.so.${qt_version} libqt-mt.so.3.3
+ ln -s libqt-mt.so.3.3 libqt-mt.so.3
+ ln -s libqt-mt.so.3 libqt-mt.so
+
+ # libqt -> libqt-mt symlinks
+ ln -s libqt-mt.so.${qt_version} libqt.so.${qt_version}
+ ln -s libqt-mt.so.3.3 libqt.so.3.3
+ ln -s libqt-mt.so.3 libqt.so.3
+ ln -s libqt-mt.so libqt.so
+
+ # plugins
+ cd "${S}"
+ local plugins=$(find plugins -name "lib*.so" -print)
+ for x in ${plugins}; do
+ exeinto ${QTBASE}/$(dirname ${x})
+ doexe ${x}
+ done
+
+ # Past this point just needs to be done once
+ is_final_abi || return 0
+
+ # includes
+ cd "${S}"
+ dodir ${QTBASE}/include/private
+ cp include/*\.h "${D}"/${QTBASE}/include/
+ cp include/private/*\.h "${D}"/${QTBASE}/include/private/
+
+ # prl files
+ sed -i -e "s:${S}:${QTBASE}:g" "${S}"/lib/*.prl
+ insinto ${QTBASE}/$(get_libdir)
+ doins "${S}"/lib/*.prl
+
+ # pkg-config file
+ insinto /usr/$(get_libdir)/pkgconfig
+ doins "${S}"/lib/*.pc
+
+ # List all the multilib libdirs
+ local libdirs
+ for alibdir in $(get_all_libdirs); do
+ libdirs="${libdirs}:${QTBASE}/${alibdir}"
+ done
+
+ # environment variables
+ cat <<EOF > "${T}"/45qt3
+PATH=${QTBASE}/bin
+ROOTPATH=${QTBASE}/bin
+LDPATH=${libdirs:1}
+QMAKESPEC=${PLATFORM}
+MANPATH=${QTBASE}/doc/man
+EOF
+
+ cat <<EOF > "${T}"/50qtdir3
+QTDIR=${QTBASE}
+EOF
+
+ cat <<EOF > "${T}"/50-qt3-revdep
+SEARCH_DIRS="${QTBASE}"
+EOF
+
+ insinto /etc/revdep-rebuild
+ doins "${T}"/50-qt3-revdep
+
+ doenvd "${T}"/45qt3 "${T}"/50qtdir3
+
+ if [ "${SYMLINK_LIB}" = "yes" ]; then
+ dosym $(get_abi_LIBDIR ${DEFAULT_ABI}) ${QTBASE}/lib
+ fi
+
+ insinto ${QTBASE}/tools/designer
+ doins -r tools/designer/templates
+
+ insinto ${QTBASE}
+ doins -r translations
+
+ keepdir ${QTBASE}/etc/settings
+
+ if use doc; then
+ insinto ${QTBASE}
+ doins -r "${S}"/doc
+ fi
+
+ if use examples; then
+ find "${S}"/examples "${S}"/tutorial -name Makefile | \
+ xargs sed -i -e "s:${S}:${QTBASE}:g"
+
+ cp -r "${S}"/examples "${D}"${QTBASE}/
+ cp -r "${S}"/tutorial "${D}"${QTBASE}/
+ fi
+
+ # misc build reqs
+ insinto ${QTBASE}/mkspecs
+ doins -r "${S}"/mkspecs/${PLATFORM}
+
+ sed -e "s:${S}:${QTBASE}:g" \
+ "${S}"/.qmake.cache > "${D}"${QTBASE}/.qmake.cache
+
+ dodoc FAQ README README-QT.TXT changes*
+# if use immqt || use immqt-bc ; then
+# dodoc "${S}"/README.immodule
+# fi
+}
+
+pkg_postinst() {
+ echo
+ elog "After a rebuild of Qt, it can happen that Qt plugins (such as Qt/KDE styles,"
+ elog "or widgets for the Qt designer) are no longer recognized. If this situation"
+ elog "occurs you should recompile the packages providing these plugins,"
+ elog "and you should also make sure that Qt and its plugins were compiled with the"
+ elog "same version of GCC. Packages that may need to be rebuilt are, for instance,"
+ elog "kde-base/kdelibs, kde-base/kdeartwork and kde-base/kdeartwork-styles."
+ elog "See http://doc.trolltech.com/3.3/plugins-howto.html for more infos."
+ echo
+}
diff --git a/gentoo/dev-qt/qt/qt-3.9999.ebuild b/gentoo/dev-qt/qt/qt-3.9999.ebuild
new file mode 100644
index 000000000..865719dfb
--- /dev/null
+++ b/gentoo/dev-qt/qt/qt-3.9999.ebuild
@@ -0,0 +1,396 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+# *** Please remember to update qt3.eclass when revbumping this ***
+
+inherit eutils git-2 flag-o-matic toolchain-funcs
+
+SRCTYPE="free"
+DESCRIPTION="The Qt toolkit is a comprehensive C++ application development framework."
+HOMEPAGE="http://qt.nokia.com/"
+
+# IMMQT_P="qt-x11-immodule-unified-qt3.3.8-20070321-gentoo"
+
+#SRC_URI="ftp://ftp.trolltech.com/qt/source/qt-x11-${SRCTYPE}-${PV}.tar.gz
+# immqt? ( mirror://gentoo/${IMMQT_P}.diff.bz2 )
+# immqt-bc? ( mirror://gentoo/${IMMQT_P}.diff.bz2 )"
+EGIT_REPO_URI="http://scm.trinitydesktop.org/scm/git/qt3"
+EGIT_BRANCH="master"
+EGIT_PROJECT="trinity/qt3"
+LICENSE="|| ( QPL-1.0 GPL-2 GPL-3 )"
+
+SLOT="3"
+KEYWORDS=
+IUSE="cups debug doc examples firebird ipv6 mysql nas nis opengl postgres sqlite xinerama"
+# no odbc, immqt and immqt-bc support anymore.
+RDEPEND="
+ virtual/jpeg
+ >=media-libs/freetype-2
+ >=media-libs/libmng-1.0.9
+ media-libs/libpng
+ sys-libs/zlib
+ x11-libs/libXft
+ x11-libs/libXcursor
+ x11-libs/libXi
+ x11-libs/libXrandr
+ x11-libs/libSM
+ cups? ( net-print/cups )
+ firebird? ( dev-db/firebird )
+ mysql? ( virtual/mysql )
+ nas? ( >=media-libs/nas-1.5 )
+ opengl? ( virtual/opengl virtual/glu )
+ postgres? ( dev-db/postgresql )
+ xinerama? ( x11-libs/libXinerama )
+ !<=dev-qt/qt-meta-3.3.8c"
+DEPEND="${RDEPEND}
+ x11-proto/inputproto
+ x11-proto/xextproto
+ xinerama? ( x11-proto/xineramaproto )"
+
+# immqt? ( x11-proto/xineramaproto )
+# immqt-bc? ( x11-proto/xineramaproto )"
+#PDEPEND="odbc? ( ~dev-db/qt-unixODBC-$PV )"
+
+#S="${WORKDIR}/qt-x11-${SRCTYPE}-${PV}"
+
+QTBASE="/usr/qt/3"
+
+pkg_setup() {
+# if use immqt && use immqt-bc ; then
+# ewarn
+# ewarn "immqt and immqt-bc are exclusive. You cannot set both."
+# ewarn "Please specify either immqt or immqt-bc."
+# ewarn
+# die
+# elif use immqt ; then
+# ewarn
+# ewarn "You are going to compile binary imcompatible immodule for Qt. This means"
+## ewarn "you have to recompile everything depending on Qt after you install it."
+# ewarn "Be aware."
+# ewarn
+# fi
+
+ export QTDIR="${S}"
+
+ CXX=$(tc-getCXX)
+ if [[ ${CXX/g++/} != ${CXX} ]]; then
+ PLATCXX="g++"
+ elif [[ ${CXX/icpc/} != ${CXX} ]]; then
+ PLATCXX="icc"
+ else
+ die "Unknown compiler ${CXX}."
+ fi
+
+ case ${CHOST} in
+ *-freebsd*|*-dragonfly*)
+ PLATNAME="freebsd" ;;
+ *-openbsd*)
+ PLATNAME="openbsd" ;;
+ *-netbsd*)
+ PLATNAME="netbsd" ;;
+ *-darwin*)
+ PLATNAME="darwin" ;;
+ *-linux-*|*-linux)
+ PLATNAME="linux" ;;
+ *)
+ die "Unknown CHOST, no platform choosed."
+ esac
+
+ # probably this should be '*-64' for 64bit archs
+ # in a fully multilib environment (no compatibility symlinks)
+ export PLATFORM="${PLATNAME}-${PLATCXX}"
+}
+
+src_unpack() {
+ git-2_src_unpack
+# mv "${S}/main/dependencies/qt3/" "${WORKDIR}/"
+# rm -rf "${S}"
+# mv "${WORKDIR}/qt3" "${S}"
+#
+# cd "${S}"
+
+ sed -i -e 's:read acceptance:acceptance=yes:' configure
+
+ # Do not link with -rpath. See bug #75181.
+ find "${S}"/mkspecs -name qmake.conf | xargs \
+ sed -i -e 's:QMAKE_RPATH.*:QMAKE_RPATH =:'
+#
+# # Patch for uic includehint errors (aseigo patch)
+# epatch "${FILESDIR}"/qt-3.3.8-uic-fix.patch
+#
+# # KDE related patches
+# epatch "${FILESDIR}"/0001-dnd_optimization.patch
+# epatch "${FILESDIR}"/0002-dnd_active_window_fix.patch
+# epatch "${FILESDIR}"/0038-dragobject-dont-prefer-unknown.patch
+# epatch "${FILESDIR}"/0044-qscrollview-windowactivate-fix.diff
+# epatch "${FILESDIR}"/0047-fix-kmenu-widget.diff
+# epatch "${FILESDIR}"/0048-qclipboard_hack_80072.patch
+#
+# # ulibc patch (bug #100246)
+# epatch "${FILESDIR}"/qt-ulibc.patch
+#
+# # xinerama patch: http://ktown.kde.org/~seli/xinerama/
+# epatch "${FILESDIR}"/qt-3.3.8-seli-xinerama.patch
+#
+# # Visibility patch, apply only on GCC 4.1 and later for safety
+# # [[ $(gcc-major-version)$(gcc-minor-version) -ge 41 ]] && \
+# epatch "${FILESDIR}"/qt-3.3.8-visibility.patch
+#
+# # Fix configure to correctly pick up gcc version, bug 244732
+# epatch "${FILESDIR}"/qt-3.3.8-fix-compiler-detection.patch
+#
+# # Fix CJK script rendering, bug 229567
+# epatch "${FILESDIR}"/qt-3.3.8b-cjk-fix.patch
+
+ # now it's applyed to git version
+ # Fix libpng-1.4 issues
+# epatch "${FILESDIR}"/qt-3.3.8-libpng14.patch
+
+# if use immqt || use immqt-bc ; then
+# epatch ../${IMMQT_P}.diff
+# sh make-symlinks.sh || die "make symlinks failed"
+#
+# epatch "${FILESDIR}"/qt-3.3.8-immqt+gcc-4.3.patch
+# fi
+#
+# if use mips; then
+# epatch "${FILESDIR}"/qt-3.3.8-mips.patch
+# fi
+#
+# # Add compatibility functions for the TQt interface
+# if use trinity; then
+# epatch "${FILESDIR}"/qt3_3.3.8c.diff
+# epatch ""
+# fi
+#
+ # known working flags wrt #77623
+ use sparc && export CFLAGS="-O1" && export CXXFLAGS="${CFLAGS}"
+ # set c/xxflags and ldflags
+ strip-flags
+ append-flags -fno-strict-aliasing
+#
+# if [[ $( gcc-fullversion ) == "3.4.6" && gcc-specs-ssp ]] ; then
+# ewarn "Appending -fno-stack-protector to CFLAGS/CXXFLAGS"
+# append-flags -fno-stack-protector
+# fi
+#
+ sed -i -e "s:QMAKE_CFLAGS_RELEASE.*=.*:QMAKE_CFLAGS_RELEASE=${CFLAGS}:" \
+ -e "s:QMAKE_CXXFLAGS_RELEASE.*=.*:QMAKE_CXXFLAGS_RELEASE=${CXXFLAGS}:" \
+ -e "s:QMAKE_LFLAGS_RELEASE.*=.*:QMAKE_LFLAGS_RELEASE=${LDFLAGS}:" \
+ -e "s:\<QMAKE_CC\>.*=.*:QMAKE_CC=$(tc-getCC):" \
+ -e "s:\<QMAKE_CXX\>.*=.*:QMAKE_CXX=$(tc-getCXX):" \
+ -e "s:\<QMAKE_LINK\>.*=.*:QMAKE_LINK=$(tc-getCXX):" \
+ -e "s:\<QMAKE_LINK_SHLIB\>.*=.*:QMAKE_LINK_SHLIB=$(tc-getCXX):" \
+ "${S}"/mkspecs/${PLATFORM}/qmake.conf || die
+
+ if [ $(get_libdir) != "lib" ] ; then
+ sed -i -e "s:/lib$:/$(get_libdir):" \
+ "${S}"/mkspecs/${PLATFORM}/qmake.conf || die
+ fi
+
+ sed -i -e "s:CXXFLAGS.*=:CXXFLAGS=${CXXFLAGS} :" \
+ -e "s:LFLAGS.*=:LFLAGS=${LDFLAGS} :" \
+ "${S}"/qmake/Makefile.unix || die
+}
+
+src_compile() {
+ export SYSCONF="${D}${QTBASE}"/etc/settings
+
+ # Let's just allow writing to these directories during Qt emerge
+ # as it makes Qt much happier.
+ addwrite "${QTBASE}/etc/settings"
+ addwrite "${HOME}/.qt"
+
+ [ "$(get_libdir)" != "lib" ] && myconf="${myconf} -L/usr/$(get_libdir)"
+
+ # unixODBC support is now a PDEPEND on dev-db/qt-unixODBC; see bug 14178.
+ use nas && myconf+=" -system-nas-sound"
+ use nis && myconf+=" -nis" || myconf+=" -no-nis"
+ use mysql && myconf+=" -plugin-sql-mysql -I/usr/include/mysql -L/usr/$(get_libdir)/mysql" || myconf+=" -no-sql-mysql"
+ use postgres && myconf+=" -plugin-sql-psql -I/usr/include/postgresql/server -I/usr/include/postgresql/pgsql -I/usr/include/postgresql/pgsql/server" || myconf+=" -no-sql-psql"
+ use firebird && myconf+=" -plugin-sql-ibase -I/opt/firebird/include" || myconf+=" -no-sql-ibase"
+ use sqlite && myconf+=" -plugin-sql-sqlite" || myconf+=" -no-sql-sqlite"
+ use cups && myconf+=" -cups" || myconf+=" -no-cups"
+ use opengl && myconf+=" -enable-module=opengl" || myconf+=" -disable-opengl"
+ use debug && myconf+=" -debug" || myconf+=" -release -no-g++-exceptions"
+ use xinerama && myconf+=" -xinerama" || myconf+=" -no-xinerama"
+
+ myconf="${myconf} -system-zlib -qt-gif"
+
+ use ipv6 && myconf+=" -ipv6" || myconf+=" -no-ipv6"
+# use immqt-bc && myconf+=" -inputmethod"
+# use immqt && myconf+=" -inputmethod -inputmethod-ext"
+
+ export YACC='byacc -d'
+ tc-export CC CXX
+ export LINK="$(tc-getCXX)"
+
+ einfo ./configure -sm -thread -stl -system-libjpeg -verbose -largefile \
+ -qt-imgfmt-{jpeg,mng,png} -tablet -system-libmng \
+ -system-libpng -xft -platform ${PLATFORM} -xplatform \
+ ${PLATFORM} -xrender -prefix ${QTBASE} -libdir ${QTBASE}/$(get_libdir) \
+ -fast -no-sql-odbc ${myconf} -dlopen-opengl || die
+ ./configure -sm -thread -stl -system-libjpeg -verbose -largefile \
+ -qt-imgfmt-{jpeg,mng,png} -tablet -system-libmng \
+ -system-libpng -xft -platform ${PLATFORM} -xplatform \
+ ${PLATFORM} -xrender -prefix ${QTBASE} -libdir ${QTBASE}/$(get_libdir) \
+ -fast -no-sql-odbc ${myconf} -dlopen-opengl || die
+
+ emake src-qmake src-moc sub-src || die
+
+ export DYLD_LIBRARY_PATH="${S}/lib:/usr/X11R6/lib:${DYLD_LIBRARY_PATH}"
+ export LD_LIBRARY_PATH="${S}/lib:${LD_LIBRARY_PATH}"
+
+ emake sub-tools || die
+
+ if use examples; then
+ emake sub-tutorial sub-examples || die
+ fi
+
+ # Make the msg2qm utility (not made by default)
+ cd "${S}"/tools/msg2qm
+ ../../bin/qmake
+ emake
+
+ # Make the qembed utility (not made by default)
+ cd "${S}"/tools/qembed
+ ../../bin/qmake
+ emake
+
+}
+
+src_install() {
+ local qt_version="$(grep VERSION src/qt.pro | awk '{ print $3 }')"
+ # binaries
+ into ${QTBASE}
+ dobin bin/*
+ dobin tools/msg2qm/msg2qm
+ dobin tools/qembed/qembed
+
+ # libraries
+ dolib.so lib/lib{editor,qassistantclient,designercore}.a
+ dolib.so lib/libqt-mt.la
+ dolib.so lib/libqt-mt.so.${qt_version} lib/libqui.so.1.0.0
+ cd "${D}"/${QTBASE}/$(get_libdir)
+
+ for x in libqui.so ; do
+ ln -s $x.1.0.0 $x.1.0
+ ln -s $x.1.0 $x.1
+ ln -s $x.1 $x
+ done
+
+ # version symlinks - 3.3.5->3.3->3->.so
+ ln -s libqt-mt.so.${qt_version} libqt-mt.so.3.3
+ ln -s libqt-mt.so.3.3 libqt-mt.so.3
+ ln -s libqt-mt.so.3 libqt-mt.so
+
+ # libqt -> libqt-mt symlinks
+ ln -s libqt-mt.so.${qt_version} libqt.so.${qt_version}
+ ln -s libqt-mt.so.3.3 libqt.so.3.3
+ ln -s libqt-mt.so.3 libqt.so.3
+ ln -s libqt-mt.so libqt.so
+
+ # plugins
+ cd "${S}"
+ local plugins=$(find plugins -name "lib*.so" -print)
+ for x in ${plugins}; do
+ exeinto ${QTBASE}/$(dirname ${x})
+ doexe ${x}
+ done
+
+ # Past this point just needs to be done once
+ is_final_abi || return 0
+
+ # includes
+ cd "${S}"
+ dodir ${QTBASE}/include/private
+ cp include/*\.h "${D}"/${QTBASE}/include/
+ cp include/private/*\.h "${D}"/${QTBASE}/include/private/
+
+ # prl files
+ sed -i -e "s:${S}:${QTBASE}:g" "${S}"/lib/*.prl
+ insinto ${QTBASE}/$(get_libdir)
+ doins "${S}"/lib/*.prl
+
+ # pkg-config file
+ insinto /usr/$(get_libdir)/pkgconfig
+ doins "${S}"/lib/*.pc
+
+ # List all the multilib libdirs
+ local libdirs
+ for alibdir in $(get_all_libdirs); do
+ libdirs="${libdirs}:${QTBASE}/${alibdir}"
+ done
+
+ # environment variables
+ cat <<EOF > "${T}"/45qt3
+PATH=${QTBASE}/bin
+ROOTPATH=${QTBASE}/bin
+LDPATH=${libdirs:1}
+QMAKESPEC=${PLATFORM}
+MANPATH=${QTBASE}/doc/man
+EOF
+
+ cat <<EOF > "${T}"/50qtdir3
+QTDIR=${QTBASE}
+EOF
+
+ cat <<EOF > "${T}"/50-qt3-revdep
+SEARCH_DIRS="${QTBASE}"
+EOF
+
+ insinto /etc/revdep-rebuild
+ doins "${T}"/50-qt3-revdep
+
+ doenvd "${T}"/45qt3 "${T}"/50qtdir3
+
+ if [ "${SYMLINK_LIB}" = "yes" ]; then
+ dosym $(get_abi_LIBDIR ${DEFAULT_ABI}) ${QTBASE}/lib
+ fi
+
+ insinto ${QTBASE}/tools/designer
+ doins -r tools/designer/templates
+
+ insinto ${QTBASE}
+ doins -r translations
+
+ keepdir ${QTBASE}/etc/settings
+
+ if use doc; then
+ insinto ${QTBASE}
+ doins -r "${S}"/doc
+ fi
+
+ if use examples; then
+ find "${S}"/examples "${S}"/tutorial -name Makefile | \
+ xargs sed -i -e "s:${S}:${QTBASE}:g"
+
+ cp -r "${S}"/examples "${D}"${QTBASE}/
+ cp -r "${S}"/tutorial "${D}"${QTBASE}/
+ fi
+
+ # misc build reqs
+ insinto ${QTBASE}/mkspecs
+ doins -r "${S}"/mkspecs/${PLATFORM}
+
+ sed -e "s:${S}:${QTBASE}:g" \
+ "${S}"/.qmake.cache > "${D}"${QTBASE}/.qmake.cache
+
+ dodoc FAQ README README-QT.TXT changes*
+# if use immqt || use immqt-bc ; then
+# dodoc "${S}"/README.immodule
+# fi
+}
+
+pkg_postinst() {
+ echo
+ elog "After a rebuild of Qt, it can happen that Qt plugins (such as Qt/KDE styles,"
+ elog "or widgets for the Qt designer) are no longer recognized. If this situation"
+ elog "occurs you should recompile the packages providing these plugins,"
+ elog "and you should also make sure that Qt and its plugins were compiled with the"
+ elog "same version of GCC. Packages that may need to be rebuilt are, for instance,"
+ elog "kde-base/kdelibs, kde-base/kdeartwork and kde-base/kdeartwork-styles."
+ elog "See http://doc.trolltech.com/3.3/plugins-howto.html for more infos."
+ echo
+}
diff --git a/gentoo/dev-qt/qt4-tqt-engine/Manifest b/gentoo/dev-qt/qt4-tqt-engine/Manifest
new file mode 100644
index 000000000..5059b13c3
--- /dev/null
+++ b/gentoo/dev-qt/qt4-tqt-engine/Manifest
@@ -0,0 +1 @@
+AUX qt4-tqt-theme-engine-suppress-annoying-warning-about-qt-version.pacth 1094 SHA256 985b992afab2ddb18850ec56c60bbff087739f1ee25ae5eb26f79b21904f7a2e SHA512 904833bfe34979953157565ce2d44bdd48b66f2292dac20eefbb8e6f5a4774738cd5b3fd0f157871cf87a7ad328fbbe9707a76f1a162616d17696128e460ad85 WHIRLPOOL df9b8e3d74b23c96f109c267c572e25225c15b28fc0c635f4f1ef1bd922aa747ab14ca61deff0ace91801a2029427dce7d0ff937b6bfdbbfa9d942f74a1ada1b
diff --git a/gentoo/dev-qt/qt4-tqt-engine/files/qt4-tqt-theme-engine-suppress-annoying-warning-about-qt-version.pacth b/gentoo/dev-qt/qt4-tqt-engine/files/qt4-tqt-theme-engine-suppress-annoying-warning-about-qt-version.pacth
new file mode 100644
index 000000000..1ae80b956
--- /dev/null
+++ b/gentoo/dev-qt/qt4-tqt-engine/files/qt4-tqt-theme-engine-suppress-annoying-warning-about-qt-version.pacth
@@ -0,0 +1,17 @@
+diff --git a/plugin/simplestyle.cpp b/plugin/simplestyle.cpp
+index e876c45..1ea75fc 100644
+--- a/plugin/simplestyle.cpp
++++ b/plugin/simplestyle.cpp
+@@ -247,12 +247,6 @@ Qt4TDEStyle::Qt4TDEStyle() : m_aboutData(NULL), m_tqApplication(NULL), m_tdeAppl
+ qt_filedialog_save_filename_hook = &TDEFileDialogSaveName;
+ qt_filedialog_existing_directory_hook = &TDEFileDialogSelectDirectory;
+ #endif // INTEGRATE_WITH_TDE
+-
+-#if QT_VERSION > 0x040800
+- // How a bug of this magnitude could go undetected in a major Qt4 release is beyond me...I guess cell phones don't generally use thin lines in their widgets!?
+- // This is Yet Another Example of why TDE cannot rely on Qt4 for anything of any real importance
+- printf("[WARNING] Qt4 >= Qt 4.8.0 detected; you are likely affected by these Qt4 bugs:\n[WARNING] https://bugreports.qt-project.org/browse/QTBUG-25896\n[WARNING] https://bugreports.qt-project.org/browse/QTBUG-26013\n[WARNING] There is no known workaround for this problem; your Qt4 application will display with numerous graphical glitches.\n");
+-#endif
+ }
+
+ Qt4TDEStyle::~Qt4TDEStyle()
diff --git a/gentoo/dev-qt/qt4-tqt-engine/metadata.xml b/gentoo/dev-qt/qt4-tqt-engine/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/dev-qt/qt4-tqt-engine/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/dev-qt/qt4-tqt-engine/qt4-tqt-engine-9999.ebuild b/gentoo/dev-qt/qt4-tqt-engine/qt4-tqt-engine-9999.ebuild
new file mode 100644
index 000000000..d618669f4
--- /dev/null
+++ b/gentoo/dev-qt/qt4-tqt-engine/qt4-tqt-engine-9999.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_TYPE="dependencies"
+TRINITY_MODULE_NAME="qt4-tqt-theme-engine"
+
+inherit trinity-base qt4-r2
+
+DESCRIPTION="A trinity Qt4 theme engine using tqt as a backend"
+HOMEPAGE="http://trinitydesktop.org/"
+LICENSE="GPL-2 LGPL-2"
+KEYWORDS=""
+SLOT="0"
+IUSE=""
+
+DEPEND="dev-qt/tqtinterface
+ >=dev-qt/qtcore-4.8.4:4
+ >=dev-qt/qtgui-4.8.4:4"
+RDEPEND="$DEPEND"
+
+need-trinity 9999
+
+src_unpack() {
+ trinity-base_src_unpack
+}
+
+src_prepare() {
+ local pro libdirs d
+
+ trinity-base_src_prepare
+
+ for d in $(get-trinity-libdirs); do
+ libdirs+=" -L$d"
+ done
+
+ for d in $(get_all_libdirs); do
+ libdirs+=" -L/usr/tqt3/$d"
+ done
+
+ for pro in ./plugin/plugin.pro ./lib/lib.pro ./examples/tqt3reference/stylewindow.pro; do
+ sed -i -e 's!\(^INCLUDEPATH += \)/usr/include/tqt3!\1/usr/tqt3/include!;' \
+ -e 's!\(^INCLUDEPATH += \)/opt/trinity/include!\1'"$TDEDIR/include"'!;' \
+ -e '/\(^LIBS += \)/s!!\1 '"$libdirs"'!' $pro || die "sed failed"
+ done
+ epatch "${FILESDIR}/qt4-tqt-theme-engine-suppress-annoying-warning-about-qt-version.pacth"
+}
+
+src_configure() {
+ qt4-r2_src_configure
+}
+
+src_compile() {
+ qt4-r2_src_compile
+}
+
+src_install() {
+ qt4-r2_src_install
+}
+
+pkg_postinst() {
+ ewarn "With Qt >= 4.8.0 you are likely affected by these Qt4 bug:"
+ ewarn " https://bugreports.qt.io/browse/QTBUG-25896"
+ ewarn "To workaround this please make sure to set your Qt graphics system to \"native\""
+ ewarn "rather than \"opengl\". Otherwice Qt4 applications may be displayed with numerous"
+ ewarn "graphical glitches."
+}
diff --git a/gentoo/dev-qt/tqt/metadata.xml b/gentoo/dev-qt/tqt/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/dev-qt/tqt/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/dev-qt/tqt/tqt-3.9999.ebuild b/gentoo/dev-qt/tqt/tqt-3.9999.ebuild
new file mode 100644
index 000000000..4ef34b579
--- /dev/null
+++ b/gentoo/dev-qt/tqt/tqt-3.9999.ebuild
@@ -0,0 +1,306 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI=5
+
+inherit eutils git-2 flag-o-matic toolchain-funcs
+
+SRCTYPE="free"
+DESCRIPTION="The Trinitie's Qt toolkit fork."
+HOMEPAGE="http://trinitydesktop.org/"
+
+# IMMTQT_P="tqt-x11-immodule-unified-tqt3.3.8-20070321-gentoo"
+
+#SRC_URI="ftp://ftp.trolltech.com/tqt/source/tqt-x11-${SRCTYPE}-${PV}.tar.gz
+# immtqt? ( mirror://gentoo/${IMMTQT_P}.diff.bz2 )
+# immtqt-bc? ( mirror://gentoo/${IMMTQT_P}.diff.bz2 )"
+EGIT_REPO_URI="http://scm.trinitydesktop.org/scm/git/tqt3"
+EGIT_PROJECT="trinity/tqt3"
+LICENSE="|| ( QPL-1.0 GPL-2 GPL-3 )"
+
+SLOT="3"
+KEYWORDS=
+IUSE="cups debug doc examples firebird ipv6 mysql nas nis opengl postgres sqlite xinerama"
+# no odbc, immtqt and immtqt-bc support anymore.
+# TODO: optional support for xrender and xrandr
+
+RDEPEND="
+ virtual/jpeg:=
+ >=media-libs/freetype-2
+ >=media-libs/libmng-1.0.9
+ media-libs/libpng:=
+ sys-libs/zlib
+ x11-libs/libXft
+ x11-libs/libXcursor
+ x11-libs/libXi
+ x11-libs/libXrandr
+ x11-libs/libSM
+ cups? ( net-print/cups )
+ firebird? ( dev-db/firebird )
+ mysql? ( virtual/mysql )
+ nas? ( >=media-libs/nas-1.5 )
+ opengl? ( virtual/opengl virtual/glu )
+ postgres? ( dev-db/postgresql:= )
+ xinerama? ( x11-libs/libXinerama )
+ !dev-qt/qt:3
+ !dev-qt/qt-meta:3"
+DEPEND="${RDEPEND}
+ x11-proto/inputproto
+ x11-proto/xextproto
+ xinerama? ( x11-proto/xineramaproto )"
+
+# immtqt? ( x11-proto/xineramaproto )
+# immtqt-bc? ( x11-proto/xineramaproto )"
+#PDEPEND="odbc? ( ~dev-db/tqt-unixODBC-$PV )"
+
+#S="${WORKDIR}/tqt-x11-${SRCTYPE}-${PV}"
+
+TQTBASE="/usr/tqt3"
+
+pkg_setup() {
+# if use immtqt && use immtqt-bc ; then
+# ewarn
+# ewarn "immtqt and immtqt-bc are exclusive. You cannot set both."
+# ewarn "Please specify either immtqt or immtqt-bc."
+# ewarn
+# die
+# elif use immtqt ; then
+# ewarn
+# ewarn "You are going to compile binary imcompatible immodule for Qt. This means"
+## ewarn "you have to recompile everything depending on Qt after you install it."
+# ewarn "Be aware."
+# ewarn
+# fi
+
+ export QTDIR="${S}"
+
+ CXX=$(tc-getCXX)
+ if [[ ${CXX/g++/} != ${CXX} ]]; then
+ PLATCXX="g++"
+ elif [[ ${CXX/icpc/} != ${CXX} ]]; then
+ PLATCXX="icc"
+ else
+ die "Unknown compiler ${CXX}."
+ fi
+
+ case ${CHOST} in
+ *-freebsd*|*-dragonfly*)
+ PLATNAME="freebsd" ;;
+ *-openbsd*)
+ PLATNAME="openbsd" ;;
+ *-netbsd*)
+ PLATNAME="netbsd" ;;
+ *-darwin*)
+ PLATNAME="darwin" ;;
+ *-linux-*|*-linux)
+ PLATNAME="linux" ;;
+ *)
+ die "Unknown CHOST, no platform choosed."
+ esac
+
+ if [[ "$CHOST" == *64* && "$PLATCXX" == "g++" ]]; then
+ export PLATFORM="${PLATNAME}-${PLATCXX}-64"
+ else
+ export PLATFORM="${PLATNAME}-${PLATCXX}"
+ fi
+}
+
+src_prepare() {
+ # Apply user-provided patches
+ epatch_user
+
+ # Do not link with -rpath. See bug #75181.
+ find "${S}"/mkspecs -name qmake.conf | xargs \
+ sed -i -e 's:QMAKE_RPATH.*:QMAKE_RPATH =:'
+# if use immtqt || use immtqt-bc ; then
+# epatch ../${IMMTQT_P}.diff
+# sh make-symlinks.sh || die "make symlinks failed"
+#
+# epatch "${FILESDIR}"/tqt-3.3.8-immtqt+gcc-4.3.patch
+# fi
+
+ # set c/xxflags and ldflags
+ strip-flags
+ append-flags -fno-strict-aliasing
+
+ sed -i -e "s:QMAKE_CFLAGS_RELEASE.*=.*:QMAKE_CFLAGS_RELEASE=${CFLAGS}:" \
+ -e "s:QMAKE_CXXFLAGS_RELEASE.*=.*:QMAKE_CXXFLAGS_RELEASE=${CXXFLAGS}:" \
+ -e "s:QMAKE_LFLAGS_RELEASE.*=.*:QMAKE_LFLAGS_RELEASE=${LDFLAGS}:" \
+ -e "s:\<QMAKE_CC\>.*=.*:QMAKE_CC=$(tc-getCC):" \
+ -e "s:\<QMAKE_CXX\>.*=.*:QMAKE_CXX=$(tc-getCXX):" \
+ -e "s:\<QMAKE_LINK\>.*=.*:QMAKE_LINK=$(tc-getCXX):" \
+ -e "s:\<QMAKE_LINK_SHLIB\>.*=.*:QMAKE_LINK_SHLIB=$(tc-getCXX):" \
+ -e "s:\<QMAKE_STRIP\>.*=.*:QMAKE_STRIP=:" \
+ "${S}/mkspecs/${PLATFORM}/qmake.conf" || die
+
+ if [ $(get_libdir) != "lib" ] ; then
+ sed -i -e "s:/lib$:/$(get_libdir):" \
+ "${S}/mkspecs/${PLATFORM}/qmake.conf" || die
+ fi
+
+ sed -i -e "s:CXXFLAGS.*=:CXXFLAGS=${CXXFLAGS} :" \
+ -e "s:LFLAGS.*=:LFLAGS=${LDFLAGS} :" \
+ "${S}/qmake/Makefile.unix" || die
+
+ # remove docs from install if we don't need it
+ use doc || sed -i -e '/INSTALLS.*=.*htmldocs/d' \
+ "${S}/src/qt_install.pri"
+}
+
+src_configure() {
+ export SYSCONF="${D}${TQTBASE}"/etc/settings
+
+ # Let's just allow writing to these directories during Qt emerge
+ # as it makes Qt much happier.
+ addwrite "${TQTBASE}/etc/settings"
+ addwrite "${HOME}/.qt"
+ addwrite "${HOME}/.tqt"
+
+ # common opts
+ myconf=" -sm -thread -stl -no-verbose -no-verbose -verbose -largefile -tablet"
+ myconf+=" $(echo -{qt-imgfmt-,system-lib}{jpeg,mng,png})"
+ myconf+=" -platform ${PLATFORM} -xplatform ${PLATFORM}"
+ myconf+=" -xft -xrender -prefix ${TQTBASE}"
+ myconf+=" -libdir ${TQTBASE}/$(get_libdir) -fast -no-sql-odbc"
+
+ [ "$(get_libdir)" != "lib" ] && myconf+="${myconf} -L/usr/$(get_libdir)"
+
+ # unixODBC support is now a PDEPEND on dev-db/tqt-unixODBC; see bug 14178.
+ use nas && myconf+=" -system-nas-sound"
+ use nis && myconf+=" -nis" || myconf+=" -no-nis"
+ use mysql && myconf+=" -plugin-sql-mysql -I/usr/include/mysql -L/usr/$(get_libdir)/mysql" || myconf+=" -no-sql-mysql"
+ use postgres && myconf+=" -plugin-sql-psql -I/usr/include/postgresql/server -I/usr/include/postgresql/pgsql -I/usr/include/postgresql/pgsql/server" || myconf+=" -no-sql-psql"
+ use firebird && myconf+=" -plugin-sql-ibase -I/opt/firebird/include" || myconf+=" -no-sql-ibase"
+ use sqlite && myconf+=" -plugin-sql-sqlite" || myconf+=" -no-sql-sqlite"
+ use cups && myconf+=" -cups" || myconf+=" -no-cups"
+ use opengl && myconf+=" -enable-module=opengl" || myconf+=" -disable-opengl"
+ use debug && myconf+=" -debug" || myconf+=" -release -no-g++-exceptions"
+ use xinerama && myconf+=" -xinerama" || myconf+=" -no-xinerama"
+
+ myconf+=" -system-zlib -qt-gif"
+
+ use ipv6 && myconf+=" -ipv6" || myconf+=" -no-ipv6"
+# use immtqt-bc && myconf+=" -inputmethod"
+# use immtqt && myconf+=" -inputmethod -inputmethod-ext"
+
+ myconf+=" -dlopen-opengl"
+
+ export YACC='byacc -d'
+ tc-export CC CXX
+ export LINK="$(tc-getCXX)"
+
+ einfo ./configure ${myconf}
+ ./configure ${myconf} || die
+}
+
+src_compile() {
+ emake src-qmake src-moc sub-src
+
+ export DYLD_LIBRARY_PATH="${S}/lib:/usr/X11R6/lib:${DYLD_LIBRARY_PATH}"
+ export LD_LIBRARY_PATH="${S}/lib:${LD_LIBRARY_PATH}"
+
+ emake sub-tools
+
+ if use examples; then
+ emake sub-tutorial sub-examples
+ fi
+
+ # Make the msg2qm utility (not made by default)
+ cd "${S}"/tools/msg2tqm
+ ../../bin/tqmake || die
+ emake
+
+ # Make the qembed utility (not made by default)
+ cd "${S}"/tools/qembed
+ ../../bin/tqmake || die
+ emake
+
+}
+
+src_install() {
+ emake INSTALL_ROOT="${D}" install
+ # Next executables are missing to be installed:
+ # /usr/qt/3/bin/findtr
+ # /usr/qt/3/bin/conv2ui
+ # /usr/qt/3/bin/qt20fix
+ # /usr/qt/3/bin/qtrename140
+ # I'm not sure if they are really needed
+
+ # fix pkgconfig location
+ dodir /usr/$(get_libdir)
+ mv "${D}${TQTBASE}/$(get_libdir)/pkgconfig" "${D}/usr/$(get_libdir)/"
+
+ # cleanup a bad symlink created by crappy install scrypt
+ rm -r "${D}${TQTBASE}/mkspec/${PLATFORM}/${PLATFORM}"
+
+ # List all the multilib libdirs
+ local libdirs
+ for alibdir in $(get_all_libdirs); do
+ libdirs="${libdirs}:${TQTBASE}/${alibdir}"
+ done
+
+ # environment variables
+ cat <<EOF > "${T}"/44tqt3
+PATH=${TQTBASE}/bin
+ROOTPATH=${TQTBASE}/bin
+LDPATH=${libdirs:1}
+MANPATH=${TQTBASE}/doc/man
+EOF
+
+ cat <<EOF > "${T}"/44-tqt3-revdep
+SEARCH_DIRS="${TQTBASE}"
+EOF
+
+ insinto /etc/revdep-rebuild
+ doins "${T}"/44-tqt3-revdep
+ doenvd "${T}"/44tqt3
+
+ if [ "${SYMLINK_LIB}" = "yes" ]; then
+ dosym $(get_abi_LIBDIR ${DEFAULT_ABI}) ${TQTBASE}/lib
+ fi
+
+# insinto ${TQTBASE}/tools/designer
+# doins -r tools/designer/templates
+#
+# insinto ${TQTBASE}
+# doins -r translations
+#
+ keepdir ${TQTBASE}/etc/settings
+
+ if use doc; then
+ insinto ${TQTBASE}
+ doins -r "${S}"/doc
+ fi
+
+ if use examples; then
+ find "${S}"/examples "${S}"/tutorial -name Makefile | \
+ xargs sed -i -e "s:${S}:${TQTBASE}:g"
+
+ cp -r "${S}"/examples "${D}"${TQTBASE}/
+ cp -r "${S}"/tutorial "${D}"${TQTBASE}/
+ fi
+
+# # misc build reqs
+# insinto ${TQTBASE}/mkspecs
+# doins -r "${S}"/mkspecs/${PLATFORM}
+
+ sed -e "s:${S}:${TQTBASE}:g" \
+ "${S}"/.qmake.cache > "${D}"${TQTBASE}/.qmake.cache
+
+ dodoc FAQ README README-QT.TXT changes*
+# if use immtqt || use immtqt-bc ; then
+# dodoc "${S}"/README.immodule
+# fi
+}
+
+pkg_postinst() {
+ echo
+ elog "After a rebuild of Qt, it can happen that Qt plugins (such as Qt/KDE styles,"
+ elog "or widgets for the Qt designer) are no longer recognized. If this situation"
+ elog "occurs you should recompile the packages providing these plugins,"
+ elog "and you should also make sure that Qt and its plugins were compiled with the"
+ elog "same version of GCC. Packages that may need to be rebuilt are, for instance,"
+ elog "kde-base/kdelibs, kde-base/kdeartwork and kde-base/kdeartwork-styles."
+ elog "See http://doc.trolltech.com/3.3/plugins-howto.html for more infos."
+ echo
+}
diff --git a/gentoo/dev-qt/tqtinterface/Manifest b/gentoo/dev-qt/tqtinterface/Manifest
new file mode 100644
index 000000000..c93c1b692
--- /dev/null
+++ b/gentoo/dev-qt/tqtinterface/Manifest
@@ -0,0 +1,2 @@
+DIST tqtinterface-3.5.13.1.tar.gz 1203318 SHA256 72c8477867a4dfc0f65f00a22a3a4303eb1f1de7211c9e086053ed921a3693a1 SHA512 d0257a9e9eef332d60a13b37dbbbdd202837718384e9edc8d5d429531e914e5b42fab9a41bee65bedfcf5698c79419c04e9741c1a3ac6cafce10579bdec3654e WHIRLPOOL dd8827fc5c7025c111267c13dfb92fbd83635eb78e2af0a2175bf74837b5092050bbe0738d16a8f67173cb6e422b38fb8f730f29a7ee81ec0f6f42f6b8375a77
+DIST tqtinterface-trinity-3.5.13.2.tar.xz 795076 SHA256 385f1c7d38a978a9c43c18d9c65896beae9344fe6de87f72c884f7ec9ab7f84d SHA512 58894e9db01cffda9b2132553ac342d1d47d0f8db231e8be21438c5fcf171b09db3d64fcde065e01ab539f7d9ee7662b4907b19b585eb1aae0ca8c838b1144ee WHIRLPOOL 7ed1ff2f48a30b670be59e2b94bb3b37ec5d481c967d210484ebf3b48541957a8e30bfcd3415534b9aa85e64c87e9af2e777f11a93fe847a899d740df5855c1c
diff --git a/gentoo/dev-qt/tqtinterface/metadata.xml b/gentoo/dev-qt/tqtinterface/metadata.xml
new file mode 100644
index 000000000..1fb595637
--- /dev/null
+++ b/gentoo/dev-qt/tqtinterface/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+ <use>
+ <flag name="qt3">Support for qt3 library(<pkg>dev-qt/qt</pkg>:3)</flag>
+ <flag name="tqt">Support for tqt library(<pkg>dev-qt/tqt</pkg>:3) a trinity fork of qt3</flag>
+ </use>
+</pkgmetadata>
diff --git a/gentoo/dev-qt/tqtinterface/tqtinterface-3.5.13.1.ebuild b/gentoo/dev-qt/tqtinterface/tqtinterface-3.5.13.1.ebuild
new file mode 100644
index 000000000..5f94cfa8e
--- /dev/null
+++ b/gentoo/dev-qt/tqtinterface/tqtinterface-3.5.13.1.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_TYPE="dependencies"
+TRINITY_MODULE_NAME="${PN}"
+
+inherit trinity-base
+
+DESCRIPTION="Interface and abstraction library for Qt and Trinity"
+HOMEPAGE="http://trinitydesktop.org/"
+LICENSE="GPL-2"
+KEYWORDS="x86 amd64"
+IUSE="+qt3 -qt4"
+SLOT="0"
+
+DEPEND="qt3? ( >=dev-qt/qt-3.3.8d:3 )
+ qt4? ( dev-qt/qt-meta:4 )
+ !!x11-libs/tqtinterface"
+
+RDEPEND="${RDEPEND}"
+
+src_configure() {
+ mycmakeargs=(
+ $(cmake-utils_use qt3 USE_QT3)
+ $(cmake-utils_use qt4 USE_QT4)
+ )
+
+ cmake-utils_src_configure
+}
diff --git a/gentoo/dev-qt/tqtinterface/tqtinterface-3.5.13.2.ebuild b/gentoo/dev-qt/tqtinterface/tqtinterface-3.5.13.2.ebuild
new file mode 100644
index 000000000..7f7b7134d
--- /dev/null
+++ b/gentoo/dev-qt/tqtinterface/tqtinterface-3.5.13.2.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_TYPE="dependencies"
+TRINITY_MODULE_NAME="${PN}"
+
+inherit trinity-base
+
+DESCRIPTION="Interface and abstraction library for Qt and Trinity"
+HOMEPAGE="http://trinitydesktop.org/"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~x86"
+IUSE="+qt3 -qt4"
+SLOT="0"
+
+DEPEND="qt3? ( >=dev-qt/qt-3.3.8d:3 )
+ qt4? ( dev-qt/qt-meta:4 )
+ !!x11-libs/tqtinterface"
+
+RDEPEND="${RDEPEND}"
+
+src_configure() {
+ mycmakeargs=(
+ $(cmake-utils_use qt3 USE_QT3)
+ $(cmake-utils_use qt4 USE_QT4)
+ )
+
+ cmake-utils_src_configure
+}
diff --git a/gentoo/dev-qt/tqtinterface/tqtinterface-9999.ebuild b/gentoo/dev-qt/tqtinterface/tqtinterface-9999.ebuild
new file mode 100644
index 000000000..f0e131676
--- /dev/null
+++ b/gentoo/dev-qt/tqtinterface/tqtinterface-9999.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_TYPE="dependencies"
+TRINITY_MODULE_NAME="${PN}"
+
+inherit trinity-base
+
+DESCRIPTION="Interface and abstraction library for Qt and Trinity"
+HOMEPAGE="http://trinitydesktop.org/"
+
+LICENSE="GPL-2"
+KEYWORDS=
+IUSE="-qt3 +tqt"
+REQUIRED_USE="^^ ( qt3 tqt )"
+SLOT="0"
+
+DEPEND="qt3? ( >=dev-qt/qt-3.9999:3 )
+ tqt? ( >=dev-qt/tqt-3.9999 )
+ !!x11-libs/tqtinterface"
+RDEPEND="${DEPEND}"
+
+pkg_setup() {
+ use qt3 && export QTDIR="/usr/qt/3"
+ use tqt && export QTDIR="/usr/tqt3"
+}
+
+src_configure() {
+ mycmakeargs=(
+ -DUSE_QT3=ON
+ -DQT_PREFIX_DIR="$QTDIR"
+ )
+
+ cmake-utils_src_configure
+}
diff --git a/gentoo/eclass/git-2.eclass b/gentoo/eclass/git-2.eclass
new file mode 100644
index 000000000..3dedf642d
--- /dev/null
+++ b/gentoo/eclass/git-2.eclass
@@ -0,0 +1,608 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+# @ECLASS: git-2.eclass
+# @MAINTAINER:
+# Michał Górny <mgorny@gentoo.org>
+# Donnie Berkholz <dberkholz@gentoo.org>
+# @BLURB: Eclass for fetching and unpacking git repositories.
+# @DESCRIPTION:
+# Eclass for easing maitenance of live ebuilds using git as remote repository.
+# Eclass support working with git submodules and branching.
+#
+# This eclass is DEPRECATED. Please use git-r3 instead.
+
+if [[ ${EAPI} == 6 ]]; then
+ die "${ECLASS}.eclass is banned in EAPI ${EAPI}"
+fi
+
+# This eclass support all EAPIs
+EXPORT_FUNCTIONS src_unpack
+
+DEPEND="dev-vcs/git"
+
+# @ECLASS-VARIABLE: EGIT_SOURCEDIR
+# @DESCRIPTION:
+# This variable specifies destination where the cloned
+# data are copied to.
+#
+# EGIT_SOURCEDIR="${S}"
+
+# @ECLASS-VARIABLE: EGIT_STORE_DIR
+# @DESCRIPTION:
+# Storage directory for git sources.
+#
+# EGIT_STORE_DIR="${DISTDIR}/egit-src"
+
+# @ECLASS-VARIABLE: EGIT_HAS_SUBMODULES
+# @DEFAULT_UNSET
+# @DESCRIPTION:
+# If non-empty this variable enables support for git submodules in our
+# checkout. Also this makes the checkout to be non-bare for now.
+
+# @ECLASS-VARIABLE: EGIT_OPTIONS
+# @DEFAULT_UNSET
+# @DESCRIPTION:
+# Variable specifying additional options for fetch command.
+
+# @ECLASS-VARIABLE: EGIT_MASTER
+# @DESCRIPTION:
+# Variable for specifying master branch.
+# Usefull when upstream don't have master branch or name it differently.
+#
+# EGIT_MASTER="master"
+
+# @ECLASS-VARIABLE: EGIT_PROJECT
+# @DESCRIPTION:
+# Variable specifying name for the folder where we check out the git
+# repository. Value of this variable should be unique in the
+# EGIT_STORE_DIR as otherwise you would override another repository.
+#
+# EGIT_PROJECT="${EGIT_REPO_URI##*/}"
+
+# @ECLASS-VARIABLE: EGIT_DIR
+# @DESCRIPTION:
+# Directory where we want to store the git data.
+# This variable should not be overriden.
+#
+# EGIT_DIR="${EGIT_STORE_DIR}/${EGIT_PROJECT}"
+
+# @ECLASS-VARIABLE: EGIT_REPO_URI
+# @REQUIRED
+# @DEFAULT_UNSET
+# @DESCRIPTION:
+# URI for the repository
+# e.g. http://foo, git://bar
+#
+# It can be overriden via env using packagename_LIVE_REPO
+# variable.
+#
+# Support multiple values:
+# EGIT_REPO_URI="git://a/b.git http://c/d.git"
+
+# @ECLASS-VARIABLE: EVCS_OFFLINE
+# @DEFAULT_UNSET
+# @DESCRIPTION:
+# If non-empty this variable prevents performance of any online
+# operations.
+
+# @ECLASS-VARIABLE: EGIT_BRANCH
+# @DESCRIPTION:
+# Variable containing branch name we want to check out.
+# It can be overriden via env using packagename_LIVE_BRANCH
+# variable.
+#
+# EGIT_BRANCH="${EGIT_MASTER}"
+
+# @ECLASS-VARIABLE: EGIT_COMMIT
+# @DESCRIPTION:
+# Variable containing commit hash/tag we want to check out.
+# It can be overriden via env using packagename_LIVE_COMMIT
+# variable.
+#
+# EGIT_COMMIT="${EGIT_BRANCH}"
+
+# @ECLASS-VARIABLE: EGIT_REPACK
+# @DEFAULT_UNSET
+# @DESCRIPTION:
+# If non-empty this variable specifies that repository will be repacked to
+# save space. However this can take a REALLY LONG time with VERY big
+# repositories.
+
+# @ECLASS-VARIABLE: EGIT_PRUNE
+# @DEFAULT_UNSET
+# @DESCRIPTION:
+# If non-empty this variable enables pruning all loose objects on each fetch.
+# This is useful if upstream rewinds and rebases branches often.
+
+# @ECLASS-VARIABLE: EGIT_NONBARE
+# @DEFAULT_UNSET
+# @DESCRIPTION:
+# If non-empty this variable specifies that all checkouts will be done using
+# non bare repositories. This is useful if you can't operate with bare
+# checkouts for some reason.
+
+# @ECLASS-VARIABLE: EGIT_NOUNPACK
+# @DEFAULT_UNSET
+# @DESCRIPTION:
+# If non-empty this variable bans unpacking of ${A} content into the srcdir.
+# Default behaviour is to unpack ${A} content.
+
+# @FUNCTION: git-2_init_variables
+# @INTERNAL
+# @DESCRIPTION:
+# Internal function initializing all git variables.
+# We define it in function scope so user can define
+# all the variables before and after inherit.
+git-2_init_variables() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ local esc_pn liverepo livebranch livecommit
+ esc_pn=${PN//[-+]/_}
+
+ : ${EGIT_SOURCEDIR="${S}"}
+
+ : ${EGIT_STORE_DIR:="${PORTAGE_ACTUAL_DISTDIR-${DISTDIR}}/egit-src"}
+
+ : ${EGIT_HAS_SUBMODULES:=}
+
+ : ${EGIT_OPTIONS:=}
+
+ : ${EGIT_MASTER:=master}
+
+ liverepo=${esc_pn}_LIVE_REPO
+ EGIT_REPO_URI=${!liverepo:-${EGIT_REPO_URI}}
+ [[ ${EGIT_REPO_URI} ]] || die "EGIT_REPO_URI must have some value"
+
+ : ${EVCS_OFFLINE:=}
+
+ livebranch=${esc_pn}_LIVE_BRANCH
+ [[ ${!livebranch} ]] && ewarn "QA: using \"${esc_pn}_LIVE_BRANCH\" variable, you won't get any support"
+ EGIT_BRANCH=${!livebranch:-${EGIT_BRANCH:-${EGIT_MASTER}}}
+
+ livecommit=${esc_pn}_LIVE_COMMIT
+ [[ ${!livecommit} ]] && ewarn "QA: using \"${esc_pn}_LIVE_COMMIT\" variable, you won't get any support"
+ EGIT_COMMIT=${!livecommit:-${EGIT_COMMIT:-${EGIT_BRANCH}}}
+
+ : ${EGIT_REPACK:=}
+
+ : ${EGIT_PRUNE:=}
+}
+
+# @FUNCTION: git-2_submodules
+# @INTERNAL
+# @DESCRIPTION:
+# Internal function wrapping the submodule initialisation and update.
+git-2_submodules() {
+ debug-print-function ${FUNCNAME} "$@"
+ if [[ ${EGIT_HAS_SUBMODULES} ]]; then
+ if [[ ${EVCS_OFFLINE} ]]; then
+ # for submodules operations we need to be online
+ debug-print "${FUNCNAME}: not updating submodules in offline mode"
+ return 1
+ fi
+
+ debug-print "${FUNCNAME}: working in \"${1}\""
+ pushd "${EGIT_DIR}" > /dev/null || die
+
+ debug-print "${FUNCNAME}: git submodule init"
+ git submodule init || die
+ debug-print "${FUNCNAME}: git submodule sync"
+ git submodule sync || die
+ debug-print "${FUNCNAME}: git submodule update"
+ git submodule update || die
+
+ popd > /dev/null || die
+ fi
+}
+
+# @FUNCTION: git-2_branch
+# @INTERNAL
+# @DESCRIPTION:
+# Internal function that changes branch for the repo based on EGIT_COMMIT and
+# EGIT_BRANCH variables.
+git-2_branch() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ local branchname src
+
+ debug-print "${FUNCNAME}: working in \"${EGIT_SOURCEDIR}\""
+ pushd "${EGIT_SOURCEDIR}" > /dev/null || die
+
+ local branchname=branch-${EGIT_BRANCH} src=origin/${EGIT_BRANCH}
+ if [[ ${EGIT_COMMIT} != ${EGIT_BRANCH} ]]; then
+ branchname=tree-${EGIT_COMMIT}
+ src=${EGIT_COMMIT}
+ fi
+ debug-print "${FUNCNAME}: git checkout -b ${branchname} ${src}"
+ git checkout -b ${branchname} ${src} \
+ || die "${FUNCNAME}: changing the branch failed"
+
+ popd > /dev/null || die
+}
+
+# @FUNCTION: git-2_gc
+# @INTERNAL
+# @DESCRIPTION:
+# Internal function running garbage collector on checked out tree.
+git-2_gc() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ local args
+
+ if [[ ${EGIT_REPACK} || ${EGIT_PRUNE} ]]; then
+ pushd "${EGIT_DIR}" > /dev/null || die
+ ebegin "Garbage collecting the repository"
+ [[ ${EGIT_PRUNE} ]] && args='--prune'
+ debug-print "${FUNCNAME}: git gc ${args}"
+ git gc ${args}
+ eend $?
+ popd > /dev/null || die
+ fi
+}
+
+# @FUNCTION: git-2_prepare_storedir
+# @INTERNAL
+# @DESCRIPTION:
+# Internal function preparing directory where we are going to store SCM
+# repository.
+git-2_prepare_storedir() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ local clone_dir
+
+ # initial clone, we have to create master git storage directory and play
+ # nicely with sandbox
+ if [[ ! -d ${EGIT_STORE_DIR} ]]; then
+ debug-print "${FUNCNAME}: Creating git main storage directory"
+ addwrite /
+ mkdir -m 775 -p "${EGIT_STORE_DIR}" \
+ || die "${FUNCNAME}: can't mkdir \"${EGIT_STORE_DIR}\""
+ fi
+
+ # allow writing into EGIT_STORE_DIR
+ addwrite "${EGIT_STORE_DIR}"
+
+ # calculate git.eclass store dir for data
+ # We will try to clone the old repository,
+ # and we will remove it if we don't need it anymore.
+ EGIT_OLD_CLONE=
+ if [[ ${EGIT_STORE_DIR} == */egit-src ]]; then
+ local old_store_dir=${EGIT_STORE_DIR/%egit-src/git-src}
+ local old_location=${old_store_dir}/${EGIT_PROJECT:-${PN}}
+
+ if [[ -d ${old_location} ]]; then
+ EGIT_OLD_CLONE=${old_location}
+ # required to remove the old clone
+ addwrite "${old_store_dir}"
+ fi
+ fi
+
+ # calculate the proper store dir for data
+ # If user didn't specify the EGIT_DIR, we check if he did specify
+ # the EGIT_PROJECT or get the folder name from EGIT_REPO_URI.
+ EGIT_REPO_URI=${EGIT_REPO_URI%/}
+ if [[ ! ${EGIT_DIR} ]]; then
+ if [[ ${EGIT_PROJECT} ]]; then
+ clone_dir=${EGIT_PROJECT}
+ else
+ local strippeduri=${EGIT_REPO_URI%/.git}
+ clone_dir=${strippeduri##*/}
+ fi
+ EGIT_DIR=${EGIT_STORE_DIR}/${clone_dir}
+
+ if [[ ${EGIT_OLD_CLONE} && ! -d ${EGIT_DIR} ]]; then
+ elog "${FUNCNAME}: ${CATEGORY}/${PF} will be cloned from old location."
+ elog "It will be necessary to rebuild the package to fetch updates."
+ EGIT_REPO_URI="${EGIT_OLD_CLONE} ${EGIT_REPO_URI}"
+ fi
+ fi
+ export EGIT_DIR=${EGIT_DIR}
+ debug-print "${FUNCNAME}: Storing the repo into \"${EGIT_DIR}\"."
+}
+
+# @FUNCTION: git-2_move_source
+# @INTERNAL
+# @DESCRIPTION:
+# Internal function moving sources from the EGIT_DIR to EGIT_SOURCEDIR dir.
+git-2_move_source() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ debug-print "${FUNCNAME}: ${MOVE_COMMAND} \"${EGIT_DIR}\" \"${EGIT_SOURCEDIR}\""
+ pushd "${EGIT_DIR}" > /dev/null || die
+ mkdir -p "${EGIT_SOURCEDIR}" \
+ || die "${FUNCNAME}: failed to create ${EGIT_SOURCEDIR}"
+ ${MOVE_COMMAND} "${EGIT_SOURCEDIR}" \
+ || die "${FUNCNAME}: sync to \"${EGIT_SOURCEDIR}\" failed"
+ popd > /dev/null || die
+}
+
+# @FUNCTION: git-2_initial_clone
+# @INTERNAL
+# @DESCRIPTION:
+# Internal function running initial clone on specified repo_uri.
+git-2_initial_clone() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ local repo_uri
+
+ EGIT_REPO_URI_SELECTED=""
+ for repo_uri in ${EGIT_REPO_URI}; do
+ debug-print "${FUNCNAME}: git clone ${EGIT_LOCAL_OPTIONS} \"${repo_uri}\" \"${EGIT_DIR}\""
+ if git clone ${EGIT_LOCAL_OPTIONS} "${repo_uri}" "${EGIT_DIR}"; then
+ # global variable containing the repo_name we will be using
+ debug-print "${FUNCNAME}: EGIT_REPO_URI_SELECTED=\"${repo_uri}\""
+ EGIT_REPO_URI_SELECTED="${repo_uri}"
+ break
+ fi
+ done
+
+ [[ ${EGIT_REPO_URI_SELECTED} ]] \
+ || die "${FUNCNAME}: can't fetch from ${EGIT_REPO_URI}"
+}
+
+# @FUNCTION: git-2_update_repo
+# @INTERNAL
+# @DESCRIPTION:
+# Internal function running update command on specified repo_uri.
+git-2_update_repo() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ local repo_uri
+
+ if [[ ${EGIT_LOCAL_NONBARE} ]]; then
+ # checkout master branch and drop all other local branches
+ git checkout ${EGIT_MASTER} || die "${FUNCNAME}: can't checkout master branch ${EGIT_MASTER}"
+ for x in $(git branch | grep -v "* ${EGIT_MASTER}" | tr '\n' ' '); do
+ debug-print "${FUNCNAME}: git branch -D ${x}"
+ git branch -D ${x} > /dev/null
+ done
+ fi
+
+ EGIT_REPO_URI_SELECTED=""
+ for repo_uri in ${EGIT_REPO_URI}; do
+ # git urls might change, so reset it
+ git config remote.origin.url "${repo_uri}"
+
+ debug-print "${EGIT_UPDATE_CMD}"
+ if ${EGIT_UPDATE_CMD} > /dev/null; then
+ # global variable containing the repo_name we will be using
+ debug-print "${FUNCNAME}: EGIT_REPO_URI_SELECTED=\"${repo_uri}\""
+ EGIT_REPO_URI_SELECTED="${repo_uri}"
+ break
+ fi
+ done
+
+ [[ ${EGIT_REPO_URI_SELECTED} ]] \
+ || die "${FUNCNAME}: can't update from ${EGIT_REPO_URI}"
+}
+
+# @FUNCTION: git-2_fetch
+# @INTERNAL
+# @DESCRIPTION:
+# Internal function fetching repository from EGIT_REPO_URI and storing it in
+# specified EGIT_STORE_DIR.
+git-2_fetch() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ local oldsha cursha repo_type
+
+ [[ ${EGIT_LOCAL_NONBARE} ]] && repo_type="non-bare repository" || repo_type="bare repository"
+
+ if [[ ! -d ${EGIT_DIR} ]]; then
+ git-2_initial_clone
+ pushd "${EGIT_DIR}" > /dev/null || die
+ cursha=$(git rev-parse ${UPSTREAM_BRANCH})
+ echo "GIT NEW clone -->"
+ echo " repository: ${EGIT_REPO_URI_SELECTED}"
+ echo " at the commit: ${cursha}"
+
+ popd > /dev/null || die
+ elif [[ ${EVCS_OFFLINE} ]]; then
+ pushd "${EGIT_DIR}" > /dev/null || die
+ cursha=$(git rev-parse ${UPSTREAM_BRANCH})
+ echo "GIT offline update -->"
+ echo " repository: $(git config remote.origin.url)"
+ echo " at the commit: ${cursha}"
+ popd > /dev/null || die
+ else
+ pushd "${EGIT_DIR}" > /dev/null || die
+ oldsha=$(git rev-parse ${UPSTREAM_BRANCH})
+ git-2_update_repo
+ cursha=$(git rev-parse ${UPSTREAM_BRANCH})
+
+ # fetch updates
+ echo "GIT update -->"
+ echo " repository: ${EGIT_REPO_URI_SELECTED}"
+ # write out message based on the revisions
+ if [[ "${oldsha}" != "${cursha}" ]]; then
+ echo " updating from commit: ${oldsha}"
+ echo " to commit: ${cursha}"
+ else
+ echo " at the commit: ${cursha}"
+ fi
+
+ # print nice statistic of what was changed
+ git --no-pager diff --stat ${oldsha}..${UPSTREAM_BRANCH}
+ popd > /dev/null || die
+ fi
+ # export the version the repository is at
+ export EGIT_VERSION="${cursha}"
+ # log the repo state
+ [[ ${EGIT_COMMIT} != ${EGIT_BRANCH} ]] \
+ && echo " commit: ${EGIT_COMMIT}"
+ echo " branch: ${EGIT_BRANCH}"
+ echo " storage directory: \"${EGIT_DIR}\""
+ echo " checkout type: ${repo_type}"
+
+ # Cleanup after git.eclass
+ if [[ ${EGIT_OLD_CLONE} ]]; then
+ einfo "${FUNCNAME}: removing old clone in ${EGIT_OLD_CLONE}."
+ rm -rf "${EGIT_OLD_CLONE}"
+ fi
+}
+
+# @FUNCTION: git_bootstrap
+# @INTERNAL
+# @DESCRIPTION:
+# Internal function that runs bootstrap command on unpacked source.
+git-2_bootstrap() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ # @ECLASS-VARIABLE: EGIT_BOOTSTRAP
+ # @DESCRIPTION:
+ # Command to be executed after checkout and clone of the specified
+ # repository.
+ # enviroment the package will fail if there is no update, thus in
+ # combination with --keep-going it would lead in not-updating
+ # pakcages that are up-to-date.
+ if [[ ${EGIT_BOOTSTRAP} ]]; then
+ pushd "${EGIT_SOURCEDIR}" > /dev/null || die
+ einfo "Starting bootstrap"
+
+ if [[ -f ${EGIT_BOOTSTRAP} ]]; then
+ # we have file in the repo which we should execute
+ debug-print "${FUNCNAME}: bootstraping with file \"${EGIT_BOOTSTRAP}\""
+
+ if [[ -x ${EGIT_BOOTSTRAP} ]]; then
+ eval "./${EGIT_BOOTSTRAP}" \
+ || die "${FUNCNAME}: bootstrap script failed"
+ else
+ eerror "\"${EGIT_BOOTSTRAP}\" is not executable."
+ eerror "Report upstream, or bug ebuild maintainer to remove bootstrap command."
+ die "\"${EGIT_BOOTSTRAP}\" is not executable"
+ fi
+ else
+ # we execute some system command
+ debug-print "${FUNCNAME}: bootstraping with commands \"${EGIT_BOOTSTRAP}\""
+
+ eval "${EGIT_BOOTSTRAP}" \
+ || die "${FUNCNAME}: bootstrap commands failed"
+ fi
+
+ einfo "Bootstrap finished"
+ popd > /dev/null || die
+ fi
+}
+
+# @FUNCTION: git-2_migrate_repository
+# @INTERNAL
+# @DESCRIPTION:
+# Internal function migrating between bare and normal checkout repository.
+# This is based on usage of EGIT_SUBMODULES, at least until they
+# start to work with bare checkouts sanely.
+# This function also set some global variables that differ between
+# bare and non-bare checkout.
+git-2_migrate_repository() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ local bare returnstate
+
+ # first find out if we have submodules
+ # or user explicitly wants us to use non-bare clones
+ if ! [[ ${EGIT_HAS_SUBMODULES} || ${EGIT_NONBARE} ]]; then
+ bare=1
+ fi
+
+ # test if we already have some repo and if so find out if we have
+ # to migrate the data
+ if [[ -d ${EGIT_DIR} ]]; then
+ if [[ ${bare} && -d ${EGIT_DIR}/.git ]]; then
+ debug-print "${FUNCNAME}: converting \"${EGIT_DIR}\" to bare copy"
+
+ ebegin "Converting \"${EGIT_DIR}\" from non-bare to bare copy"
+ mv "${EGIT_DIR}/.git" "${EGIT_DIR}.bare"
+ export GIT_DIR="${EGIT_DIR}.bare"
+ git config core.bare true > /dev/null
+ returnstate=$?
+ unset GIT_DIR
+ rm -rf "${EGIT_DIR}"
+ mv "${EGIT_DIR}.bare" "${EGIT_DIR}"
+ eend ${returnstate}
+ elif [[ ! ${bare} && ! -d ${EGIT_DIR}/.git ]]; then
+ debug-print "${FUNCNAME}: converting \"${EGIT_DIR}\" to non-bare copy"
+
+ ebegin "Converting \"${EGIT_DIR}\" from bare to non-bare copy"
+ git clone -l "${EGIT_DIR}" "${EGIT_DIR}.nonbare" > /dev/null
+ returnstate=$?
+ rm -rf "${EGIT_DIR}"
+ mv "${EGIT_DIR}.nonbare" "${EGIT_DIR}"
+ eend ${returnstate}
+ fi
+ fi
+ if [[ ${returnstate} -ne 0 ]]; then
+ debug-print "${FUNCNAME}: converting \"${EGIT_DIR}\" failed, removing to start from scratch"
+
+ # migration failed, remove the EGIT_DIR to play it safe
+ einfo "Migration failed, removing \"${EGIT_DIR}\" to start from scratch."
+ rm -rf "${EGIT_DIR}"
+ fi
+
+ # set various options to work with both targets
+ if [[ ${bare} ]]; then
+ debug-print "${FUNCNAME}: working in bare repository for \"${EGIT_DIR}\""
+ EGIT_LOCAL_OPTIONS+="${EGIT_OPTIONS} --bare"
+ MOVE_COMMAND="git clone -l -s -n ${EGIT_DIR// /\\ }"
+ EGIT_UPDATE_CMD="git fetch -t -f -u origin ${EGIT_BRANCH}:${EGIT_BRANCH}"
+ UPSTREAM_BRANCH="${EGIT_BRANCH}"
+ EGIT_LOCAL_NONBARE=
+ else
+ debug-print "${FUNCNAME}: working in bare repository for non-bare \"${EGIT_DIR}\""
+ MOVE_COMMAND="cp -pPR ."
+ EGIT_LOCAL_OPTIONS="${EGIT_OPTIONS}"
+ EGIT_UPDATE_CMD="git pull -f ${EGIT_OPTIONS}"
+ UPSTREAM_BRANCH="origin/${EGIT_BRANCH}"
+ EGIT_LOCAL_NONBARE="true"
+ fi
+}
+
+# @FUNCTION: git-2_cleanup
+# @INTERNAL
+# @DESCRIPTION:
+# Internal function cleaning up all the global variables
+# that are not required after the unpack has been done.
+git-2_cleanup() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ # Here we can unset only variables that are GLOBAL
+ # defined by the eclass, BUT NOT subject to change
+ # by user (like EGIT_PROJECT).
+ # If ebuild writer polutes his environment it is
+ # his problem only.
+ unset EGIT_DIR
+ unset MOVE_COMMAND
+ unset EGIT_LOCAL_OPTIONS
+ unset EGIT_UPDATE_CMD
+ unset UPSTREAM_BRANCH
+ unset EGIT_LOCAL_NONBARE
+}
+
+# @FUNCTION: git-2_src_unpack
+# @DESCRIPTION:
+# Default git src_unpack function.
+git-2_src_unpack() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ git-2_init_variables
+ git-2_prepare_storedir
+ git-2_migrate_repository
+ git-2_fetch "$@"
+ git-2_gc
+ git-2_submodules
+ git-2_move_source
+ git-2_branch
+ git-2_bootstrap
+ git-2_cleanup
+ echo ">>> Unpacked to ${EGIT_SOURCEDIR}"
+
+ # Users can specify some SRC_URI and we should
+ # unpack the files too.
+ if [[ ! ${EGIT_NOUNPACK} ]]; then
+ if has ${EAPI:-0} 0 1; then
+ [[ ${A} ]] && unpack ${A}
+ else
+ default_src_unpack
+ fi
+ fi
+}
diff --git a/gentoo/eclass/kde-functions.eclass b/gentoo/eclass/kde-functions.eclass
new file mode 100644
index 000000000..f1094e7cc
--- /dev/null
+++ b/gentoo/eclass/kde-functions.eclass
@@ -0,0 +1,706 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/eclass/kde-functions.eclass,v 1.175 2009/11/01 20:26:34 abcd Exp $
+
+# @ECLASS: kde-functions.eclass
+# @MAINTAINER:
+# kde@gentoo.org
+# Original author Dan Armak <danarmak@gentoo.org>
+#
+# @BLURB: This contains everything except things that modify ebuild variables and
+# @DESCRIPTION:
+# This contains everything except things that modify ebuild variables
+# and functions (e.g. $P, src_compile() etc.)
+
+inherit qt3 eutils
+
+# map of the monolithic->split ebuild derivation; used to build deps describing
+# the relationships between them
+KDE_DERIVATION_MAP='
+kde-base/kdeaccessibility kde-base/kbstateapplet
+kde-base/kdeaccessibility kde-base/kdeaccessibility-iconthemes
+kde-base/kdeaccessibility kde-base/kmag
+kde-base/kdeaccessibility kde-base/kmousetool
+kde-base/kdeaccessibility kde-base/kmouth
+kde-base/kdeaccessibility kde-base/kttsd
+kde-base/kdeaccessibility kde-base/ksayit
+kde-base/kdeaddons kde-base/atlantikdesigner
+kde-base/kdeaddons kde-base/kaddressbook-plugins
+kde-base/kdeaddons kde-base/kate-plugins
+kde-base/kdeaddons kde-base/kdeaddons-docs-konq-plugins
+kde-base/kdeaddons kde-base/kdeaddons-kfile-plugins
+kde-base/kdeaddons kde-base/kicker-applets
+kde-base/kdeaddons kde-base/knewsticker-scripts
+kde-base/kdeaddons kde-base/konq-plugins
+kde-base/kdeaddons kde-base/konqueror-akregator
+kde-base/kdeaddons kde-base/ksig
+kde-base/kdeaddons kde-base/noatun-plugins
+kde-base/kdeaddons kde-base/renamedlg-audio
+kde-base/kdeaddons kde-base/renamedlg-images
+kde-base/kdeadmin kde-base/kcron
+kde-base/kdeadmin kde-base/kdat
+kde-base/kdeadmin kde-base/kdeadmin-kfile-plugins
+kde-base/kdeadmin kde-base/knetworkconf
+kde-base/kdeadmin kde-base/kpackage
+kde-base/kdeadmin kde-base/ksysv
+kde-base/kdeadmin kde-base/kuser
+kde-base/kdeadmin kde-base/lilo-config
+kde-base/kdeadmin kde-base/secpolicy
+kde-base/kdeartwork kde-base/kdeartwork-emoticons
+kde-base/kdeartwork kde-base/kdeartwork-icewm-themes
+kde-base/kdeartwork kde-base/kdeartwork-iconthemes
+kde-base/kdeartwork kde-base/kdeartwork-kscreensaver
+kde-base/kdeartwork kde-base/kdeartwork-kwin-styles
+kde-base/kdeartwork kde-base/kdeartwork-kworldclock
+kde-base/kdeartwork kde-base/kdeartwork-kworldwatch
+kde-base/kdeartwork kde-base/kdeartwork-sounds
+kde-base/kdeartwork kde-base/kdeartwork-styles
+kde-base/kdeartwork kde-base/kdeartwork-wallpapers
+kde-base/kdebase kde-base/drkonqi
+kde-base/kdebase kde-base/kappfinder
+kde-base/kdebase kde-base/kate
+kde-base/kdebase kde-base/kcheckpass
+kde-base/kdebase kde-base/kcminit
+kde-base/kdebase kde-base/kcontrol
+kde-base/kdebase kde-base/kdcop
+kde-base/kdebase kde-base/kdebase-data
+kde-base/kdebase kde-base/kdebase-kioslaves
+kde-base/kdebase kde-base/kdebase-startkde
+kde-base/kdebase kde-base/kdebugdialog
+kde-base/kdebase kde-base/kdepasswd
+kde-base/kdebase kde-base/kdeprint
+kde-base/kdebase kde-base/kdesktop
+kde-base/kdebase kde-base/kdesu
+kde-base/kdebase kde-base/kdialog
+kde-base/kdebase kde-base/kdm
+kde-base/kdebase kde-base/kfind
+kde-base/kdebase kde-base/khelpcenter
+kde-base/kdebase kde-base/khotkeys
+kde-base/kdebase kde-base/kicker
+kde-base/kdebase kde-base/klipper
+kde-base/kdebase kde-base/kmenuedit
+kde-base/kdebase kde-base/knetattach
+kde-base/kdebase kde-base/konqueror
+kde-base/kdebase kde-base/konsole
+kde-base/kdebase kde-base/kpager
+kde-base/kdebase kde-base/kpersonalizer
+kde-base/kdebase kde-base/kreadconfig
+kde-base/kdebase kde-base/kscreensaver
+kde-base/kdebase kde-base/ksmserver
+kde-base/kdebase kde-base/ksplashml
+kde-base/kdebase kde-base/kstart
+kde-base/kdebase kde-base/ksysguard
+kde-base/kdebase kde-base/ksystraycmd
+kde-base/kdebase kde-base/ktip
+kde-base/kdebase kde-base/kwin
+kde-base/kdebase kde-base/kxkb
+kde-base/kdebase kde-base/libkonq
+kde-base/kdebase kde-base/nsplugins
+kde-base/kdebindings kde-base/dcopc
+kde-base/kdebindings kde-base/dcopjava
+kde-base/kdebindings kde-base/dcopperl
+kde-base/kdebindings kde-base/dcoppython
+kde-base/kdebindings kde-base/kalyptus
+kde-base/kdebindings kde-base/kdejava
+kde-base/kdebindings kde-base/kjsembed
+kde-base/kdebindings kde-base/korundum
+kde-base/kdebindings kde-base/pykde
+kde-base/kdebindings kde-base/qtjava
+kde-base/kdebindings kde-base/qtruby
+kde-base/kdebindings kde-base/qtsharp
+kde-base/kdebindings kde-base/smoke
+kde-base/kdebindings kde-base/xparts
+kde-base/kdeedu kde-base/blinken
+kde-base/kdeedu kde-base/kalzium
+kde-base/kdeedu kde-base/kanagram
+kde-base/kdeedu kde-base/kbruch
+kde-base/kdeedu kde-base/kdeedu-applnk
+kde-base/kdeedu kde-base/keduca
+kde-base/kdeedu kde-base/kgeography
+kde-base/kdeedu kde-base/khangman
+kde-base/kdeedu kde-base/kig
+kde-base/kdeedu kde-base/kiten
+kde-base/kdeedu kde-base/klatin
+kde-base/kdeedu kde-base/klettres
+kde-base/kdeedu kde-base/kmathtool
+kde-base/kdeedu kde-base/kmessedwords
+kde-base/kdeedu kde-base/kmplot
+kde-base/kdeedu kde-base/kpercentage
+kde-base/kdeedu kde-base/kstars
+kde-base/kdeedu kde-base/ktouch
+kde-base/kdeedu kde-base/kturtle
+kde-base/kdeedu kde-base/kverbos
+kde-base/kdeedu kde-base/kvoctrain
+kde-base/kdeedu kde-base/kwordquiz
+kde-base/kdeedu kde-base/libkdeedu
+kde-base/kdegames kde-base/atlantik
+kde-base/kdegames kde-base/kasteroids
+kde-base/kdegames kde-base/katomic
+kde-base/kdegames kde-base/kbackgammon
+kde-base/kdegames kde-base/kbattleship
+kde-base/kdegames kde-base/kblackbox
+kde-base/kdegames kde-base/kbounce
+kde-base/kdegames kde-base/kenolaba
+kde-base/kdegames kde-base/kfouleggs
+kde-base/kdegames kde-base/kgoldrunner
+kde-base/kdegames kde-base/kjumpingcube
+kde-base/kdegames kde-base/klickety
+kde-base/kdegames kde-base/klines
+kde-base/kdegames kde-base/kmahjongg
+kde-base/kdegames kde-base/kmines
+kde-base/kdegames kde-base/knetwalk
+kde-base/kdegames kde-base/kolf
+kde-base/kdegames kde-base/konquest
+kde-base/kdegames kde-base/kpat
+kde-base/kdegames kde-base/kpoker
+kde-base/kdegames kde-base/kreversi
+kde-base/kdegames kde-base/ksame
+kde-base/kdegames kde-base/kshisen
+kde-base/kdegames kde-base/ksirtet
+kde-base/kdegames kde-base/ksmiletris
+kde-base/kdegames kde-base/ksnake
+kde-base/kdegames kde-base/ksokoban
+kde-base/kdegames kde-base/kspaceduel
+kde-base/kdegames kde-base/ktron
+kde-base/kdegames kde-base/ktuberling
+kde-base/kdegames kde-base/kwin4
+kde-base/kdegames kde-base/libkdegames
+kde-base/kdegames kde-base/libksirtet
+kde-base/kdegames kde-base/lskat
+kde-base/kdegraphics kde-base/kamera
+kde-base/kdegraphics kde-base/kcoloredit
+kde-base/kdegraphics kde-base/kdegraphics-kfile-plugins
+kde-base/kdegraphics kde-base/kdvi
+kde-base/kdegraphics kde-base/kfax
+kde-base/kdegraphics kde-base/kgamma
+kde-base/kdegraphics kde-base/kghostview
+kde-base/kdegraphics kde-base/kiconedit
+kde-base/kdegraphics kde-base/kmrml
+kde-base/kdegraphics kde-base/kolourpaint
+kde-base/kdegraphics kde-base/kooka
+kde-base/kdegraphics kde-base/kpdf
+kde-base/kdegraphics kde-base/kpovmodeler
+kde-base/kdegraphics kde-base/kruler
+kde-base/kdegraphics kde-base/ksnapshot
+kde-base/kdegraphics kde-base/ksvg
+kde-base/kdegraphics kde-base/kuickshow
+kde-base/kdegraphics kde-base/kview
+kde-base/kdegraphics kde-base/kviewshell
+kde-base/kdegraphics kde-base/libkscan
+kde-base/kdemultimedia kde-base/akode
+kde-base/kdemultimedia kde-base/artsplugin-akode
+kde-base/kdemultimedia kde-base/artsplugin-audiofile
+kde-base/kdemultimedia kde-base/artsplugin-mpeglib
+kde-base/kdemultimedia kde-base/artsplugin-mpg123
+kde-base/kdemultimedia kde-base/artsplugin-xine
+kde-base/kdemultimedia kde-base/juk
+kde-base/kdemultimedia kde-base/kaboodle
+kde-base/kdemultimedia kde-base/kaudiocreator
+kde-base/kdemultimedia kde-base/kdemultimedia-arts
+kde-base/kdemultimedia kde-base/kdemultimedia-kappfinder-data
+kde-base/kdemultimedia kde-base/kdemultimedia-kfile-plugins
+kde-base/kdemultimedia kde-base/kdemultimedia-kioslaves
+kde-base/kdemultimedia kde-base/kmid
+kde-base/kdemultimedia kde-base/kmix
+kde-base/kdemultimedia kde-base/krec
+kde-base/kdemultimedia kde-base/kscd
+kde-base/kdemultimedia kde-base/libkcddb
+kde-base/kdemultimedia kde-base/mpeglib
+kde-base/kdemultimedia kde-base/noatun
+kde-base/kdenetwork kde-base/dcoprss
+kde-base/kdenetwork kde-base/kdenetwork-filesharing
+kde-base/kdenetwork kde-base/kdenetwork-kfile-plugins
+kde-base/kdenetwork kde-base/kdict
+kde-base/kdenetwork kde-base/kdnssd
+kde-base/kdenetwork kde-base/kget
+kde-base/kdenetwork kde-base/knewsticker
+kde-base/kdenetwork kde-base/kopete
+kde-base/kdenetwork kde-base/kpf
+kde-base/kdenetwork kde-base/kppp
+kde-base/kdenetwork kde-base/krdc
+kde-base/kdenetwork kde-base/krfb
+kde-base/kdenetwork kde-base/ksirc
+kde-base/kdenetwork kde-base/ktalkd
+kde-base/kdenetwork kde-base/kwifimanager
+kde-base/kdenetwork kde-base/librss
+kde-base/kdenetwork kde-base/lisa
+kde-base/kdepim kde-base/akregator
+kde-base/kdepim kde-base/certmanager
+kde-base/kdepim kde-base/kaddressbook
+kde-base/kdepim kde-base/kalarm
+kde-base/kdepim kde-base/kandy
+kde-base/kdepim kde-base/karm
+kde-base/kdepim kde-base/kdepim-kioslaves
+kde-base/kdepim kde-base/kdepim-kresources
+kde-base/kdepim kde-base/kdepim-wizards
+kde-base/kdepim kde-base/kitchensync
+kde-base/kdepim kde-base/kmail
+kde-base/kdepim kde-base/kmailcvt
+kde-base/kdepim kde-base/knode
+kde-base/kdepim kde-base/knotes
+kde-base/kdepim kde-base/kode
+kde-base/kdepim kde-base/konsolekalendar
+kde-base/kdepim kde-base/kontact
+kde-base/kdepim kde-base/kontact-specialdates
+kde-base/kdepim kde-base/korganizer
+kde-base/kdepim kde-base/korn
+kde-base/kdepim kde-base/kpilot
+kde-base/kdepim kde-base/ksync
+kde-base/kdepim kde-base/ktnef
+kde-base/kdepim kde-base/libkcal
+kde-base/kdepim kde-base/libkdenetwork
+kde-base/kdepim kde-base/libkdepim
+kde-base/kdepim kde-base/libkholidays
+kde-base/kdepim kde-base/libkmime
+kde-base/kdepim kde-base/libkpgp
+kde-base/kdepim kde-base/libkpimexchange
+kde-base/kdepim kde-base/libkpimidentities
+kde-base/kdepim kde-base/libksieve
+kde-base/kdepim kde-base/mimelib
+kde-base/kdepim kde-base/networkstatus
+kde-base/kdesdk kde-base/cervisia
+kde-base/kdesdk kde-base/kapptemplate
+kde-base/kdesdk kde-base/kbabel
+kde-base/kdesdk kde-base/kbugbuster
+kde-base/kdesdk kde-base/kcachegrind
+kde-base/kdesdk kde-base/kdesdk-kfile-plugins
+kde-base/kdesdk kde-base/kdesdk-kioslaves
+kde-base/kdesdk kde-base/kdesdk-misc
+kde-base/kdesdk kde-base/kdesdk-scripts
+kde-base/kdesdk kde-base/kmtrace
+kde-base/kdesdk kde-base/kompare
+kde-base/kdesdk kde-base/kspy
+kde-base/kdesdk kde-base/kuiviewer
+kde-base/kdesdk kde-base/umbrello
+kde-base/kdetoys kde-base/amor
+kde-base/kdetoys kde-base/eyesapplet
+kde-base/kdetoys kde-base/fifteenapplet
+kde-base/kdetoys kde-base/kmoon
+kde-base/kdetoys kde-base/kodo
+kde-base/kdetoys kde-base/kteatime
+kde-base/kdetoys kde-base/ktux
+kde-base/kdetoys kde-base/kweather
+kde-base/kdetoys kde-base/kworldclock
+kde-base/kdetoys kde-base/kworldwatch
+kde-base/kdeutils kde-base/ark
+kde-base/kdeutils kde-base/kcalc
+kde-base/kdeutils kde-base/kcharselect
+kde-base/kdeutils kde-base/kdelirc
+kde-base/kdeutils kde-base/kdf
+kde-base/kdeutils kde-base/kedit
+kde-base/kdeutils kde-base/kfloppy
+kde-base/kdeutils kde-base/kgpg
+kde-base/kdeutils kde-base/khexedit
+kde-base/kdeutils kde-base/kjots
+kde-base/kdeutils kde-base/klaptopdaemon
+kde-base/kdeutils kde-base/kmilo
+kde-base/kdeutils kde-base/kregexpeditor
+kde-base/kdeutils kde-base/ksim
+kde-base/kdeutils kde-base/ktimer
+kde-base/kdeutils kde-base/kwalletmanager
+kde-base/kdeutils kde-base/superkaramba
+kde-base/kdewebdev kde-base/kfilereplace
+kde-base/kdewebdev kde-base/kimagemapeditor
+kde-base/kdewebdev kde-base/klinkstatus
+kde-base/kdewebdev kde-base/kommander
+kde-base/kdewebdev kde-base/kxsldbg
+kde-base/kdewebdev kde-base/quanta
+app-office/koffice app-office/karbon
+app-office/koffice app-office/kchart
+app-office/koffice app-office/kexi
+app-office/koffice app-office/kformula
+app-office/koffice app-office/kivio
+app-office/koffice app-office/koffice-data
+app-office/koffice app-office/koffice-libs
+app-office/koffice app-office/koffice-meta
+app-office/koffice app-office/koshell
+app-office/koffice app-office/kplato
+app-office/koffice app-office/kpresenter
+app-office/koffice app-office/krita
+app-office/koffice app-office/kspread
+app-office/koffice app-office/kugar
+app-office/koffice app-office/kword
+'
+
+# @FUNCTION: get-parent-package
+# @USAGE: < name of split-ebuild >
+# @DESCRIPTION:
+# accepts 1 parameter, the name of a split ebuild; echoes the name of its mother package
+get-parent-package() {
+ local parent child
+ while read parent child; do
+ if [[ ${child} == $1 ]]; then
+ echo ${parent}
+ return 0
+ fi
+ done <<EOF
+$KDE_DERIVATION_MAP
+EOF
+ die "Package $1 not found in KDE_DERIVATION_MAP, please report bug"
+}
+
+# @FUNCTION: get-child-packages
+# @USAGE: < name of monolithic package >
+# @DESCRIPTION:
+# accepts 1 parameter, the name of a monolithic package; echoes the names of all ebuilds derived from it
+get-child-packages() {
+ local parent child
+ while read parent child; do
+ [[ ${parent} == $1 ]] && echo -n "${child} "
+ done <<EOF
+$KDE_DERIVATION_MAP
+EOF
+}
+
+# @FUNCTION: is-parent-package
+# @USAGE: < name >
+# @RETURN: 0 if <name> is a parent package, otherwise 1
+is-parent-package() {
+ local parent child
+ while read parent child; do
+ [[ "${parent}" == "$1" ]] && return 0
+ done <<EOF
+$KDE_DERIVATION_MAP
+EOF
+ return 1
+}
+
+# ---------------------------------------------------------------
+# kde/qt directory management etc. functions, was kde-dirs.ebuild
+# ---------------------------------------------------------------
+
+# @FUNCTION: need-kde-at-least
+# @USAGE: < version >
+# @DESCRIPTION:
+# Sets the correct DEPEND and RDEPEND for the needed minimum kde < version >. Also takes
+# care of the correct Qt-version and correct RDEPEND handling.
+need-kde-at-least() {
+ debug-print-function $FUNCNAME "$@"
+
+ KDEVER="$1"
+
+ # determine install locations
+ set-kdedir ${KDEVER}
+
+ if [[ "${RDEPEND-unset}" != "unset" ]]; then
+ x_DEPEND="${RDEPEND}"
+ else
+ x_DEPEND="${DEPEND}"
+ fi
+
+ DEPEND="${DEPEND} >=kde-base/kdelibs-$KDEVER"
+ RDEPEND="${x_DEPEND} >=kde-base/kdelibs-$KDEVER"
+
+ qtver-from-kdever ${KDEVER}
+ need-qt ${selected_version}
+
+ if [[ -n "${KDEBASE}" ]]; then
+ SLOT="$KDEMAJORVER.$KDEMINORVER"
+ else
+ : ${SLOT="0"}
+ fi
+}
+
+# ---------------------------------------------------------------
+# kde/qt directory management etc. functions, was kde-dirs.ebuild
+# ---------------------------------------------------------------
+
+# @FUNCTION: need-kde
+# @USAGE: < version >
+# @DESCRIPTION:
+# Sets the correct DEPEND and RDEPEND for the needed kde < version >. Also takes
+# care of the correct Qt-version and correct RDEPEND handling.
+need-kde() {
+ debug-print-function $FUNCNAME "$@"
+
+ KDEVER="$1"
+
+ # determine install locations
+ set-kdedir ${KDEVER}
+
+ if [[ "${RDEPEND-unset}" != "unset" ]]; then
+ x_DEPEND="${RDEPEND}"
+ else
+ x_DEPEND="${DEPEND}"
+ fi
+ if [[ -n "${KDEBASE}" ]]; then
+ # If we're a kde-base package, we need at least our own version of kdelibs.
+ # Note: we only set RDEPEND if it is already set, otherwise
+ # we break packages relying on portage copying RDEPEND from DEPEND.
+ DEPEND="${DEPEND} ~kde-base/kdelibs-$PV"
+ RDEPEND="${x_DEPEND} ~kde-base/kdelibs-${PV}"
+ else
+ # Things outside kde-base need a minimum version,
+ # but kde-base/kdelibs:kde-4 mustn't satisfy it.
+ min-kde-ver ${KDEVER}
+ DEPEND="${DEPEND} =kde-base/kdelibs-3.5*"
+ RDEPEND="${x_DEPEND} =kde-base/kdelibs-3.5*"
+ fi
+
+ qtver-from-kdever ${KDEVER}
+ need-qt ${selected_version}
+
+ if [[ -n "${KDEBASE}" ]]; then
+ SLOT="$KDEMAJORVER.$KDEMINORVER"
+ else
+ : ${SLOT="0"}
+ fi
+}
+
+# @FUNCTION: set-kdedir
+# @USAGE: < version >
+# @DESCRIPTION:
+# Sets the right directories for the kde <version> wrt what kind of package will
+# be installed, e. g. third-party-apps, kde-base-packages, ...
+set-kdedir() {
+ debug-print-function $FUNCNAME "$@"
+
+
+ # set install location:
+ # - 3rd party apps go into /usr, and have SLOT="0".
+ # - kde-base category ebuilds go into /usr/kde/$MAJORVER.$MINORVER,
+ # and have SLOT="$MAJORVER.$MINORVER".
+ # - kde-base category cvs ebuilds have major version 5 and go into
+ # /usr/kde/cvs; they have SLOT="cvs".
+ # - Backward-compatibility exceptions: all kde2 packages (kde-base or otherwise)
+ # go into /usr/kde/2. kde 3.0.x goes into /usr/kde/3 (and not 3.0).
+ # - kde-base category ebuilds always depend on their exact matching version of
+ # kdelibs and link against it. Other ebuilds link aginst the latest one found.
+ # - This function exports $PREFIX (location to install to) and $KDEDIR
+ # (location of kdelibs to link against) for all ebuilds.
+ #
+ # -- Overrides - deprecated but working for now: --
+ # - If $KDEPREFIX is defined (in the profile or env), it overrides everything
+ # and both base and 3rd party kde stuff goes in there.
+ # - If $KDELIBSDIR is defined, the kdelibs installed in that location will be
+ # used, even by kde-base packages.
+
+ # get version elements
+ IFSBACKUP="$IFS"
+ IFS=".-_"
+ for x in $1; do
+ if [[ -z "$KDEMAJORVER" ]]; then KDEMAJORVER=$x
+ else if [[ -z "$KDEMINORVER" ]]; then KDEMINORVER=$x
+ else if [[ -z "$KDEREVISION" ]]; then KDEREVISION=$x
+ fi; fi; fi
+ done
+ [[ -z "$KDEMINORVER" ]] && KDEMINORVER="0"
+ [[ -z "$KDEREVISION" ]] && KDEREVISION="0"
+ IFS="$IFSBACKUP"
+ debug-print "$FUNCNAME: version breakup: KDEMAJORVER=$KDEMAJORVER KDEMINORVER=$KDEMINORVER KDEREVISION=$KDEREVISION"
+
+ # install prefix
+ if [[ -n "$KDEPREFIX" ]]; then
+ export PREFIX="$KDEPREFIX"
+ else
+ if [[ -z "$KDEBASE" ]]; then
+ PREFIX="/usr/kde/3.5"
+ else
+ case $KDEMAJORVER.$KDEMINORVER in
+ 3*) export PREFIX="/usr/kde/3.5";;
+ 5.0) export PREFIX="/usr/kde/svn";;
+ *) die "failed to set PREFIX";;
+ esac
+ fi
+ fi
+
+ # kdelibs location
+ if [[ -n "$KDELIBSDIR" ]]; then
+ export KDEDIR="$KDELIBSDIR"
+ else
+ if [[ -z "$KDEBASE" ]]; then
+ # find the latest kdelibs installed
+ for x in /usr/kde/{svn,3.5} "${PREFIX}" \
+ "${KDE3LIBSDIR}" "${KDELIBSDIR}" "${KDE3DIR}" "${KDEDIR}" /usr/kde/*; do
+ if [[ -f "${x}/include/kwin.h" ]]; then
+ debug-print found
+ export KDEDIR="$x"
+ break
+ fi
+ done
+ else
+ # kde-base ebuilds must always use the exact version of kdelibs they came with
+ case $KDEMAJORVER.$KDEMINORVER in
+ 3*) export KDEDIR="/usr/kde/3.5";;
+ 5.0) export KDEDIR="/usr/kde/svn";;
+ *) die "failed to set KDEDIR";;
+ esac
+ fi
+ fi
+
+ debug-print "$FUNCNAME: Will use the kdelibs installed in $KDEDIR, and install into $PREFIX."
+}
+
+# @FUNCTION: need-qt
+# @USAGE: < version >
+# @DESCRIPTION:
+# Sets the DEPEND and RDEPEND for Qt <version>.
+need-qt() {
+ debug-print-function $FUNCNAME "${@}"
+
+ QTVER="$1"
+
+ QT=qt
+
+ if [[ "${RDEPEND-unset}" != "unset" ]]; then
+ x_DEPEND="${RDEPEND}"
+ else
+ x_DEPEND="${DEPEND}"
+ fi
+
+ case ${QTVER} in
+ 3*) DEPEND="${DEPEND} =dev-qt/qt-meta-3*"
+ RDEPEND="${RDEPEND} =dev-qt/qt-meta-3*"
+ ;;
+ *) echo "!!! error: $FUNCNAME() called with invalid parameter: \"$QTVER\", please report bug" && exit 1;;
+ esac
+
+}
+
+# @FUNCTION: set-qtdir
+# @DESCRIPTION:
+# This function is not needed anymore.
+set-qtdir() {
+ :
+}
+
+# @FUNCTION: qtver-from-kdever
+# @USAGE: < kde-version >
+# @DESCRIPTION:
+# returns minimal qt version needed for specified kde version
+qtver-from-kdever() {
+ debug-print-function $FUNCNAME "$@"
+
+ local ver
+
+ case $1 in
+ 3.1*) ver=3.1;;
+ 3.2*) ver=3.2;;
+ 3.3*) ver=3.3;;
+ 3.4*) ver=3.3;;
+ 3.5*) ver=3.3;;
+ 3*) ver=3.0.5;;
+ 5) ver=3.3;; # cvs version
+ *) echo "!!! error: $FUNCNAME called with invalid parameter: \"$1\", please report bug" && exit 1;;
+ esac
+
+ selected_version="$ver"
+
+}
+
+min-kde-ver() {
+ debug-print-function $FUNCNAME "$@"
+
+ case $1 in
+ 3.0*) selected_version="3.0";;
+ 3.1*) selected_version="3.1";;
+ 3.2*) selected_version="3.2";;
+ 3.3*) selected_version="3.3";;
+ 3.4*) selected_version="3.4";;
+ 3.5*) selected_version="3.5";;
+ 3*) selected_version="3.0";;
+ 5) selected_version="5";;
+ *) echo "!!! error: $FUNCNAME() called with invalid parameter: \"$1\", please report bug" && exit 1;;
+ esac
+
+}
+
+# @FUNCTION: kde_sandbox_patch
+# @USAGE: < dir > [ dir ] [ dir ] [...]
+# @DESCRIPTION:
+# generic makefile sed for sandbox compatibility. for some reason when the kde makefiles (of many packages
+# and versions) try to chown root and chmod 4755 some binaries (after installing, target install-exec-local),
+# they do it to the files in $(bindir), not $(DESTDIR)/$(bindir). Most of these have been fixed in latest cvs
+# but a few remain here and there.
+#
+# Pass a list of dirs to sed, Makefile.{am,in} in these dirs will be sed'ed.
+# This should be harmless if the makefile doesn't need fixing.
+kde_sandbox_patch() {
+ debug-print-function $FUNCNAME "$@"
+
+ while [[ -n "$1" ]]; do
+ # can't use dosed, because it only works for things in ${D}, not ${S}
+ cd $1
+ for x in Makefile.am Makefile.in Makefile
+ do
+ if [[ -f "$x" ]]; then
+ echo Running sed on $x
+ cp $x ${x}.orig
+ sed -e 's: $(bindir): $(DESTDIR)/$(bindir):g' -e 's: $(kde_datadir): $(DESTDIR)/$(kde_datadir):g' -e 's: $(TIMID_DIR): $(DESTDIR)/$(TIMID_DIR):g' ${x}.orig > ${x}
+ rm ${x}.orig
+ fi
+ done
+ shift
+ done
+
+}
+
+# @FUNCTION: kde_remove_flag
+# @USAGE: < dir > < flag >
+# @DESCRIPTION:
+# remove an optimization flag from a specific subdirectory's makefiles.
+# currently kdebase and koffice use it to compile certain subdirs without
+# -fomit-frame-pointer which breaks some things.
+kde_remove_flag() {
+ debug-print-function $FUNCNAME "$@"
+
+ cd "${S}"/${1} || die "cd to '${S}/${1}' failed."
+ [[ -n "$2" ]] || die "missing argument to kde_remove_flag"
+
+ cp Makefile Makefile.orig
+ sed -e "/CFLAGS/ s/${2}//g
+/CXXFLAGS/ s/${2}//g" Makefile.orig > Makefile
+
+ cd "${OLDPWD}"
+
+}
+
+buildsycoca() {
+ [[ $EBUILD_PHASE != postinst ]] && [[ $EBUILD_PHASE != postrm ]] && \
+ die "buildsycoca() has to be calles in pkg_postinst() and pkg_postrm()."
+
+ if [[ -x ${KDEDIR}/bin/kbuildsycoca ]] && [[ -z ${ROOT} || ${ROOT} == "/" ]] ; then
+ # First of all, make sure that the /usr/share/services directory exists
+ # and it has the right permissions
+ mkdir -p /usr/share/services
+ chown root:0 /usr/share/services
+ chmod 0755 /usr/share/services
+
+ ebegin "Running kbuildsycoca to build global database"
+ # Filter all KDEDIRs not belonging to the current SLOT from XDG_DATA_DIRS
+ # before running kbuildsycoca. This makes sure they don't show up in the
+ # 3.5 K-menu unless the user manually adds them.
+ XDG_DATA_DIRS="/usr/share:${KDEDIR}/share:/usr/local/share"
+ "${KDEDIR}"/bin/kbuildsycoca --global --noincremental &> /dev/null
+ eend $?
+ fi
+}
+
+postprocess_desktop_entries() {
+ [[ $EBUILD_PHASE != preinst ]] && [[ $EBUILD_PHASE != install ]] && \
+ die "postprocess_desktop_entries() has to be called in src_install() or pkg_preinst()."
+
+ if [[ -d ${D}${PREFIX}/share/applnk ]] ; then
+ # min/max depth is _important_ as it excludes legacy KDE stuff. Moving it would cause breakage.
+ local desktop_entries="$(find "${D}${PREFIX}/share/applnk" -mindepth 2 -maxdepth 2 \
+ -name '*\.desktop' -not -path '*.hidden*' 2>/dev/null)"
+
+ if [[ -n ${desktop_entries} ]]; then
+ for entry in ${desktop_entries} ; do
+ if ! [[ -f "${D}${PREFIX}"/share/applications/kde/${entry##*/} ]] ; then
+ dodir "${PREFIX}"/share/applications/kde
+ mv ${entry} "${D}${PREFIX}"/share/applications/kde
+ fi
+ done
+ fi
+ fi
+
+ validate_desktop_entries "${PREFIX}"/share/applications
+}
+
+# is this a kde-base ebuid?
+if [[ "${CATEGORY}" == "kde-base" ]]; then
+ debug-print "${ECLASS}: KDEBASE ebuild recognized"
+ export KDEBASE="true"
+ export KDEREVISION
+fi
diff --git a/gentoo/eclass/kde.eclass b/gentoo/eclass/kde.eclass
new file mode 100644
index 000000000..b85a9bb89
--- /dev/null
+++ b/gentoo/eclass/kde.eclass
@@ -0,0 +1,608 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/eclass/kde.eclass,v 1.223 2009/05/12 12:55:46 tampakrap Exp $
+
+# @ECLASS: kde.eclass
+# @MAINTAINER:
+# kde@gentoo.org
+#
+# original author Dan Armak <danarmak@gentoo.org>
+#
+# Revisions Caleb Tennis <caleb@gentoo.org>
+# @BLURB: The kde eclass is inherited by all kde-* eclasses.
+# @DESCRIPTION:
+# This eclass is inherited by all kde-* eclasses. Few ebuilds inherit straight from here.
+
+[[ -z ${WANT_AUTOMAKE} ]] && WANT_AUTOMAKE="1.9"
+
+inherit base eutils kde-functions flag-o-matic libtool autotools
+
+DESCRIPTION="Based on the $ECLASS eclass"
+HOMEPAGE="http://www.kde.org/"
+IUSE="debug elibc_FreeBSD"
+
+
+if [[ ${CATEGORY} == "kde-base" ]]; then
+ if [[ ${PV##*.} -lt 10 ]] ; then
+ # Keep old ebuilds as is
+ IUSE="${IUSE} kdeenablefinal"
+ else
+ # Don't use --enable-final anymore. Does only cause problems for users and
+ # as an unwelcome extra invalid bug reports, without any reasonable benefit.
+
+ # Get the aRts dependencies right - finally.
+ case "${PN}" in
+ blinken|juk|kalarm|kanagram|kbounce|kcontrol|konq-plugins|kscd|kscreensaver|kttsd|kwifimanager|kdelibs) ARTS_REQUIRED="" ;;
+ artsplugin-*|kaboodle|kasteroids|kdemultimedia-arts|kolf|krec|ksayit|noatun*) ARTS_REQUIRED="yes" ;;
+ *) ARTS_REQUIRED="never" ;;
+ esac
+ fi
+fi
+
+if [[ ${ARTS_REQUIRED} != "yes" && ${ARTS_REQUIRED} != "never" && ${PN} != "arts" ]]; then
+ IUSE="${IUSE} arts"
+fi
+
+# @ECLASS-VARIABLE: KDE_S
+# @DESCRIPTION:
+# Like the 'normal' ${S} this variable takes the path to the temporary build
+# directory. If unset ${S} will be used.
+
+# @ECLASS-VARIABLE: USE_KEG_PACKAGING
+# @DESCRIPTION:
+# Set USE_KEG_PACKAGING=1 before inheriting if the package use extragear-like
+# packaging and then supports ${LANGS} and ${LANGS_DOC} variables. By default
+# translations are found in the po subdirectory of ${S}. Set KEG_PO_DIR to
+# override this default.
+if [[ -n ${USE_KEG_PACKAGING} && -n "${LANGS}${LANGS_DOC}" ]]; then
+ for lang in ${LANGS} ${LANGS_DOC}; do
+ IUSE="${IUSE} linguas_${lang}"
+ done
+fi
+
+DEPEND="sys-devel/make
+ dev-util/pkgconfig
+ dev-lang/perl"
+
+if [[ ${CATEGORY} != "kde-base" ]] || [[ ${CATEGORY} == "kde-base" && ${PV##*.} -lt 10 ]] ; then
+ DEPEND="${DEPEND}
+ x11-libs/libXt
+ x11-proto/xf86vidmodeproto
+ xinerama? ( x11-proto/xineramaproto )"
+ RDEPEND="xinerama? ( x11-libs/libXinerama )"
+ IUSE="${IUSE} xinerama"
+else
+ RDEPEND=""
+fi
+
+if [[ ${ARTS_REQUIRED} == "yes" ]]; then
+ DEPEND="${DEPEND} kde-base/arts"
+ RDEPEND="${RDEPEND} kde-base/arts"
+elif [[ ${ARTS_REQUIRED} != "never" && ${PN} != "arts" ]]; then
+ DEPEND="${DEPEND} arts? ( kde-base/arts )"
+ RDEPEND="${RDEPEND} arts? ( kde-base/arts )"
+fi
+
+# overridden in other places like kde-dist, kde-source and some individual ebuilds
+SLOT="0"
+
+# @ECLASS-VARIABLE: ARTS_REQUIRED
+# @DESCRIPTION:
+# Is aRTs-support required or not? Possible values are 'yes', 'never'. Otherwise
+# leave this variable unset. This results in an arts USE flag.
+
+# @FUNCTION: kde_pkg_setup
+# @DESCRIPTION:
+# Some basic test about arts-support. It also filters some compiler flags
+kde_pkg_setup() {
+ if [[ ${PN} != "arts" ]] && [[ ${PN} != "kdelibs" ]] ; then
+ if [[ ${ARTS_REQUIRED} == 'yes' ]] || \
+ ( [[ ${ARTS_REQUIRED} != "never" ]] && use arts ) ; then
+ if ! built_with_use =kde-base/kdelibs-3.5* arts ; then
+ if has arts ${IUSE} && use arts; then
+ eerror "You are trying to compile ${CATEGORY}/${PF} with the \"arts\" USE flag enabled."
+ else
+ eerror "The package ${CATEGORY}/${PF} you're trying to merge requires aRTs."
+ fi
+ eerror "However, $(best_version =kde-base/kdelibs-3.5*) was compiled with the arts USE flag disabled."
+ eerror
+ if has arts ${IUSE} && use arts; then
+ eerror "You must either disable this USE flag, or recompile"
+ else
+ eerror "To build this package you have to recompile"
+ fi
+ eerror "$(best_version =kde-base/kdelibs-3.5*) with the arts USE flag enabled."
+ die "kdelibs missing arts"
+ fi
+ fi
+ fi
+
+ if [[ "${PN}" = "kdelibs" ]]; then
+ use doc && if ! built_with_use =dev-qt/qt-meta-3* doc ; then
+ eerror "Building kdelibs with the doc USE flag requires qt to be built with the doc USE flag."
+ eerror "Please re-emerge qt-3 with this USE flag enabled."
+ fi
+ fi
+
+ # Let filter visibility flags that will *really* hurt your KDE
+ # _experimental_ support for this is enabled by kdehiddenvisibility useflag
+ filter-flags -fvisibility=hidden -fvisibility-inlines-hidden
+}
+
+# @FUNCTION: kde_src_unpack
+# @DESCRIPTION:
+# This function unpacks the sources.
+# For EAPI 0 and 1 it allso runs kde_src_prepare.
+kde_src_unpack() {
+ debug-print-function $FUNCNAME "$@"
+ [[ -z "$*" ]] || die "$FUNCNAME no longer supports stages."
+ [[ -z "${KDE_S}" ]] && KDE_S="${S}"
+ # Don't use base_src_unpack, as that will call base_src_prepare
+ # in the wrong place
+ [[ -d "${KDE_S}" ]] || unpack ${A}
+ case ${EAPI:-0} in
+ 0|1) kde_src_prepare ;;
+ esac
+}
+
+# @FUNCTION: kde_src_prepare
+# @DESCRIPTION:
+# This function patches the sources. The patches need to be named
+# $PN-$PV-*{diff,patch}
+#
+# This function also handles the linguas if extragear-like packaging is enabled.
+# (See USE_KEG_PACKAGING)
+kde_src_prepare() {
+ debug-print-function $FUNCNAME "$@"
+ local PATCHDIR="${WORKDIR}/patches/"
+
+ # Unpack first and deal with KDE patches after examing possible patch sets.
+ # To be picked up, patches need to be named $PN-$PV-*{diff,patch} and be
+ # placed in $PATCHDIR. Monolithic ebuilds will use the split ebuild patches.
+ if [[ -d "${PATCHDIR}" ]] ; then
+ local packages p f
+ if is-parent-package ${CATEGORY}/${PN} ; then
+ packages="$(get-child-packages ${CATEGORY}/${PN})"
+ packages="${packages//${CATEGORY}\//} ${PN}"
+ else
+ packages="${PN}"
+ fi
+ if [[ -n ${PATCHES[@]} && $(declare -p PATCHES) != 'declare -a '* ]]; then
+ PATCHES=(${PATCHES})
+ fi
+ for p in ${packages}; do
+ for f in "${PATCHDIR}"/${p}-${PV}-*{diff,patch}; do
+ [[ -e ${f} ]] && PATCHES+=("${f}")
+ done
+ if [[ -n "${KDEBASE}" ]]; then
+ for f in "${PATCHDIR}"/${p}-${SLOT}-*{diff,patch}; do
+ [[ -e ${f} ]] && PATCHES+=("${f}")
+ done
+ fi
+ done
+ fi
+
+ base_src_prepare
+
+ # if extragear-like packaging is enabled, set the translations and the
+ # documentation depending on LINGUAS settings
+ if [[ -n ${USE_KEG_PACKAGING} ]]; then
+ if [[ -z ${LINGUAS} ]]; then
+ einfo "You can drop some of the translations of the interface and"
+ einfo "documentation by setting the \${LINGUAS} variable to the"
+ einfo "languages you want installed."
+ einfo
+ einfo "Enabling all languages"
+ else
+ # we sanitise LINGUAS to avoid issues when a user specifies the same
+ # linguas twice. bug #215016.
+ local sanitised_linguas=$(echo "${LINGUAS}" | tr '[[:space:]]' '\n' | sort | uniq)
+ if [[ -n ${LANGS} ]]; then
+ MAKE_PO=$(echo "${sanitised_linguas} ${LANGS}" | tr '[[:space:]]' '\n' | sort | uniq -d | tr '\n' ' ')
+ einfo "Enabling translations for: ${MAKE_PO}"
+ sed -i -e "s:^SUBDIRS[ \t]*=.*:SUBDIRS = ${MAKE_PO}:" "${KDE_S}/${KEG_PO_DIR:-po}/Makefile.am" \
+ || die "sed for locale failed"
+ rm -f "${KDE_S}/configure"
+ fi
+
+ if [[ -n ${LANGS_DOC} ]]; then
+ MAKE_DOC=$(echo "${sanitised_linguas} ${LANGS_DOC}" | tr '[[:space:]]' '\n' | sort | uniq -d | tr '\n' ' ')
+ einfo "Enabling documentation for: ${MAKE_DOC}"
+ [[ -n ${MAKE_DOC} ]] && [[ -n ${DOC_DIR_SUFFIX} ]] && MAKE_DOC=$(echo "${MAKE_DOC}" | tr '\n' ' ') && MAKE_DOC="${MAKE_DOC// /${DOC_DIR_SUFFIX} }"
+ sed -i -e "s:^SUBDIRS[ \t]*=.*:SUBDIRS = ${MAKE_DOC} ${PN}:" \
+ "${KDE_S}/doc/Makefile.am" || die "sed for locale failed"
+ rm -f "${KDE_S}/configure"
+ fi
+ fi
+ fi
+
+ # fix the 'languageChange undeclared' bug group: touch all .ui files, so that the
+ # makefile regenerate any .cpp and .h files depending on them.
+ cd "${KDE_S}"
+ debug-print "$FUNCNAME: Searching for .ui files in ${PWD}"
+ UIFILES="$(find . -name '*.ui' -print)"
+ debug-print "$FUNCNAME: .ui files found:"
+ debug-print "$UIFILES"
+ # done in two stages, because touch doens't have a silent/force mode
+ if [[ -n "$UIFILES" ]]; then
+ debug-print "$FUNCNAME: touching .ui files..."
+ touch $UIFILES
+ fi
+
+ if [[ -d "${WORKDIR}/admin" ]] && [[ -d "${KDE_S}/admin" ]]; then
+ ebegin "Updating admin/ directory..."
+ rm -rf "${KDE_S}/admin" "${KDE_S}/configure" || die "Unable to remove old admin/ directory"
+ ln -s "${WORKDIR}/admin" "${KDE_S}/admin" || die "Unable to symlink the new admin/ directory"
+ eend 0
+ fi
+}
+
+# @FUNCTION: kde_src_configure
+# @USAGE: [ myconf ] [ configure ] [ all ]
+# @DESCRIPTION:
+# This function compiles the sources. It takes care of "cannot write to .kde
+# or .qt"-problem due to sandbox and some other sandbox issues.
+#
+# If no argument is given, all is assumed.
+kde_src_configure() {
+ debug-print-function $FUNCNAME "$@"
+
+ [[ -z "$1" ]] && kde_src_configure all
+
+ [[ -z "${KDE_S}" ]] && KDE_S="${S}"
+ cd "${KDE_S}"
+
+ export kde_widgetdir="$KDEDIR/$(get_libdir)/kde3/plugins/designer"
+
+ # fix the sandbox errors "can't writ to .kde or .qt" problems.
+ # this is a fake homedir that is writeable under the sandbox, so that the build process
+ # can do anything it wants with it.
+ REALHOME="$HOME"
+ mkdir -p "${T}"/fakehome/.kde
+ mkdir -p "${T}"/fakehome/.qt
+ export HOME="${T}"/fakehome
+ addwrite "${QTDIR}/etc/settings"
+
+ # Fix bug 96177: if KDEROOTHOME is defined, the ebuild accesses the real homedir via it, and not our exported $HOME
+ unset KDEHOME
+ unset KDEROOTHOME
+
+ # things that should access the real homedir
+ [[ -d "$REALHOME/.ccache" ]] && ln -sf "$REALHOME/.ccache" "$HOME/"
+
+ while [[ "$1" ]]; do
+
+ case $1 in
+ myconf)
+ debug-print-section myconf
+ if [[ ${CATEGORY} != "kde-base" ]] || [[ ${CATEGORY} == "kde-base" && ${PV##*.} -lt 10 ]] ; then
+ myconf+=" --with-x --enable-mitshm $(use_with xinerama) --with-qt-dir=${QTDIR} --enable-mt --with-qt-libraries=${QTDIR}/$(get_libdir)"
+ else
+ myconf+=" --with-qt-dir=${QTDIR} --enable-mt --with-qt-libraries=${QTDIR}/$(get_libdir)"
+ fi
+ # calculate dependencies separately from compiling, enables ccache to work on kde compiles
+ myconf="$myconf --disable-dependency-tracking"
+ if use debug ; then
+ myconf="$myconf --enable-debug=full --with-debug"
+ else
+ myconf="$myconf --disable-debug --without-debug"
+ fi
+ if hasq kdeenablefinal ${IUSE}; then
+ myconf="$myconf $(use_enable kdeenablefinal final)"
+ fi
+ if [[ ${ARTS_REQUIRED} == "never" ]]; then
+ myconf="$myconf --without-arts"
+ elif [[ ${ARTS_REQUIRED} != 'yes' && ${PN} != "arts" ]]; then
+ # This might break some external package until
+ # ARTS_REQUIRED="yes" is set on them, KDE 3.2 is no more
+ # supported anyway.
+ myconf="$myconf $(use_with arts)"
+ fi
+ debug-print "$FUNCNAME: myconf: set to ${myconf}"
+ ;;
+ configure)
+ debug-print-section configure
+ debug-print "$FUNCNAME::configure: myconf=$myconf"
+
+ export WANT_AUTOMAKE
+
+ # rebuild configure script, etc
+ # This can happen with e.g. a cvs snapshot
+ if [[ ! -f "./configure" ]]; then
+ # This is needed to fix building with autoconf 2.60.
+ # Many thanks to who preferred such a stupid check rather
+ # than a working arithmetic comparison.
+ if [[ -f admin/cvs.sh ]]; then
+ sed -i -e '/case $AUTO\(CONF\|HEADER\)_VERSION in/,+1 s/2\.5/2.[56]/g' \
+ admin/cvs.sh
+ fi
+
+ # Replace the detection script with a dummy, let our wrappers do the work
+ if [[ -f admin/detect-autoconf.sh ]]; then
+ cat - > admin/detect-autoconf.sh <<EOF
+#!/bin/sh
+export AUTOCONF="autoconf"
+export AUTOHEADER="autoheader"
+export AUTOM4TE="autom4te"
+export AUTOMAKE="automake"
+export ACLOCAL="aclocal"
+export WHICH="which"
+EOF
+ fi
+
+ # Make build succeed with >=autoconf-2.65, see http://tinyurl.com/yc4nbhq
+ if [[ -f admin/acinclude.m4.in ]] && \
+ [[ ! -f ${T}/acinclude.m4.in ]]; then
+ cp admin/acinclude.m4.in "${T}"
+ einfo "Patching admin/acinclude.m4.in"
+ patch -f --ignore-whitespace admin/acinclude.m4.in <<'EOF'
+--- admin/acinclude.m4.in
++++ admin/acinclude.m4.in
+@@ -3081,6 +3081,13 @@
+ fi
+ ])
+
++AC_DEFUN([GENTOO_DUMMY_CFLAGS],
++[
++ dnl this prevents stupid AC_PROG_CC to add "-g" to the default CFLAGS
++ CFLAGS=" $CFLAGS"
++])
++AC_BEFORE([GENTOO_DUMMY_CFLAGS],[AC_PROG_CC])
++
+ AC_DEFUN([AC_CHECK_COMPILERS],
+ [
+ AC_ARG_ENABLE(debug,
+@@ -3141,12 +3148,10 @@
+ [kde_use_profiling="no"]
+ )
+
+- dnl this prevents stupid AC_PROG_CC to add "-g" to the default CFLAGS
+- CFLAGS=" $CFLAGS"
+-
+- AC_PROG_CC
++ AC_REQUIRE([GENTOO_DUMMY_CFLAGS])
++ AC_REQUIRE([AC_PROG_CC])
+
+- AC_PROG_CPP
++ AC_REQUIRE([AC_PROG_CPP])
+
+ if test "$GCC" = "yes"; then
+ if test "$kde_use_debug_code" != "no"; then
+@@ -3176,7 +3181,7 @@
+
+ CXXFLAGS=" $CXXFLAGS"
+
+- AC_PROG_CXX
++ AC_REQUIRE([AC_PROG_CXX])
+
+ KDE_CHECK_FOR_BAD_COMPILER
+
+EOF
+ if [[ $? != 0 ]]; then
+ ewarn "Failed to patch admin/acinclude.m4.in"
+ cp "${T}/acinclude.m4.in" admin/acinclude.m4.in
+ fi
+ fi
+ for x in Makefile.cvs admin/Makefile.common; do
+ if [[ -f "$x" && -z "$makefile" ]]; then makefile="$x"; fi
+ done
+ if [[ -f "$makefile" ]]; then
+ debug-print "$FUNCNAME: configure: generating configure script, running make -f $makefile"
+ emake -f $makefile
+ fi
+ [[ -f "./configure" ]] || die "no configure script found, generation unsuccessful"
+ fi
+
+ export PATH="${KDEDIR}/bin:${PATH}"
+
+ # configure doesn't need to know about the other KDEs installed.
+ # in fact, if it does, it sometimes tries to use the wrong dcopidl, etc.
+ # due to the messed up way configure searches for things
+ export KDEDIRS="${PREFIX}:${KDEDIR}"
+
+ # Visiblity stuff is broken. Just disable it when it's present.
+ export kde_cv_prog_cxx_fvisibility_hidden=no
+
+ if hasq kdehiddenvisibility ${IUSE} && use kdehiddenvisibility; then
+ if [[ $(gcc-major-version)$(gcc-minor-version) -ge 41 ]]; then
+ if [[ ${PN} != "kdelibs" && ${PN} != "arts" ]] && \
+ ! fgrep -q "#define __KDE_HAVE_GCC_VISIBILITY" "${KDEDIR}/include/kdemacros.h"; then
+
+ eerror "You asked to enable hidden visibility, but your kdelibs was"
+ eerror "built without its support. Please rebuild kdelibs with the"
+ eerror "kdehiddenvisibility useflag enabled."
+ die "kdelibs without hidden visibility"
+ else
+ unset kde_cv_prog_cxx_fvisibility_hidden
+ myconf="$myconf $(use_enable kdehiddenvisibility gcc-hidden-visibility)"
+ fi
+ else
+ eerror "You're trying to enable hidden visibility, but"
+ eerror "you are using an old GCC version. Hidden visibility"
+ eerror "can be enabled only with GCC 4.1 and later."
+ fi
+ fi
+
+ # If we're in a kde-base ebuild, set the prefixed directories to
+ # override the ones set by econf.
+ if [[ -n ${PREFIX} && ${PREFIX} != "/usr" ]]; then
+ myconf="${myconf} --prefix=${PREFIX}
+ --mandir=${PREFIX}/share/man
+ --infodir=${PREFIX}/share/info
+ --datadir=${PREFIX}/share
+ --sysconfdir=${PREFIX}/etc"
+ fi
+
+ # Use libsuffix to keep KDE happy, the --libdir parameter get
+ # still honored.
+ if [[ $(get_libdir) != "lib" ]] ; then
+ myconf="${myconf} --enable-libsuffix=$(get_libdir | sed s/lib//)"
+ fi
+
+ export PATH="${KDEDIR}/bin:${PATH}"
+
+ # The configure checks for kconfig_compiler do not respect PATH
+ export KCONFIG_COMPILER="${KDEDIR}/bin/kconfig_compiler"
+
+ # Sometimes it doesn't get the include and library paths right,
+ # so hints them.
+ if [[ -z ${PREFIX} || ${PREFIX} != ${KDEDIR} ]]; then
+ myconf="${myconf} --with-extra-includes=${KDEDIR}/include
+ --with-extra-libs=${KDEDIR}/$(get_libdir)"
+ fi
+
+ if grep "cope with newer libtools" "${KDE_S}/admin/ltconfig" &> /dev/null; then
+ einfo "Removing the dummy ltconfig file."
+ rm "${KDE_S}/admin/ltconfig"
+ fi
+
+ use elibc_FreeBSD && myconf="${myconf} --disable-pie"
+
+ elibtoolize
+ econf ${myconf}
+
+ # Seems ./configure add -O2 by default but hppa don't want that but we need -ffunction-sections
+ if [[ "${ARCH}" = "hppa" ]]
+ then
+ einfo "Fixing Makefiles"
+ find "${KDE_S}" -name Makefile -print0 | xargs -0 sed -i -e \
+ 's:-O2:-ffunction-sections:g'
+ fi
+ ;;
+ all)
+ debug-print-section all
+ kde_src_configure myconf configure
+ ;;
+ esac
+
+ shift
+ done
+
+}
+# @FUNCTION: kde_src_compile
+# @USAGE: [ myconf ] [ configure ] [ make ] [ all ]
+# @DESCRIPTION:
+# This function compiles the sources. It takes care of "cannot write to .kde
+# or .qt"-problem due to sandbox and some other sandbox issues.
+#
+# If no argument is given, all is assumed.
+kde_src_compile() {
+ debug-print-function $FUNCNAME "$@"
+
+ [[ -z "$1" ]] && kde_src_compile all
+
+ [[ -z "${KDE_S}" ]] && KDE_S="${S}"
+ cd "${KDE_S}"
+ while [[ "$1" ]]; do
+ case $1 in
+ make)
+ debug-print-section make
+ emake || die "died running emake, $FUNCNAME:make"
+ ;;
+ all)
+ case ${EAPI:-0} in
+ 0|1) kde_src_configure all ;;
+ esac
+ kde_src_compile make
+ ;;
+ *)
+ case ${EAPI:-0} in
+ 0|1) kde_src_configure $1 ;;
+ esac
+ ;;
+ esac
+
+ shift
+ done
+}
+
+# @FUNCTION: kde_src_install
+# @USAGE: [ make ] [ dodoc ] [ all ]
+# @DESCRIPTION:
+# This installs the software, including the right handling of the
+# "/usr/share/doc/kde"-dir, but it only installs AUTHORS, ChangeLog*, README*,
+# NEWS, and TODO (if available) as docs.
+#
+# If no argument is given, all is assumed
+kde_src_install() {
+ debug-print-function $FUNCNAME "$@"
+
+ [[ -z "$1" ]] && kde_src_install all
+
+ [[ -z ${KDE_S} ]] && KDE_S="${S}"
+ cd "${KDE_S}"
+
+ # Ensure that KDE binaries take precedence
+ export PATH="${KDEDIR}/bin:${PATH}"
+
+ while [[ "$1" ]]; do
+
+ case $1 in
+ make)
+ debug-print-section make
+ emake install DESTDIR="${D}" destdir="${D}" || die "died running make install, $FUNCNAME:make"
+ ;;
+ dodoc)
+ debug-print-section dodoc
+ for doc in AUTHORS ChangeLog* README* NEWS TODO; do
+ [[ -s "$doc" ]] && dodoc $doc
+ done
+ ;;
+ all)
+ debug-print-section all
+ kde_src_install make dodoc
+ ;;
+ esac
+
+ shift
+ done
+
+ if [[ -n ${KDEBASE} && "${PN}" != "arts" && -d "${D}"/usr/share/doc/${PF} ]]; then
+ # work around bug #97196
+ dodir /usr/share/doc/kde && \
+ mv "${D}"/usr/share/doc/${PF} "${D}"/usr/share/doc/kde/ || \
+ die "Failed to move docs to kde/ failed."
+ fi
+}
+
+# @FUNCTION: slot_rebuild
+# @USAGE: [ list_of_packages_to_check ]
+# @RETURN: False, if no rebuild is required
+# @DESCRIPTION:
+# Unneeded and therefore deprecated for a long, long time now. Ebuilds are still
+# referencing it, so replacing with a stub.
+# Looks for packages in the supplied list of packages which have not been linked
+# against this kde SLOT. It does this by looking for lib*.la files that doesn't
+# contain the current ${KDEDIR}. If it finds any thus broken packages it prints
+# eerrors and return True.
+#
+# Thanks to Carsten Lohrke in bug 98425.
+slot_rebuild() {
+ :
+}
+
+# @FUNCTION: kde_pkg_preinst
+# @DESCRIPTION:
+# Calls postprocess_desktop_entries
+kde_pkg_preinst() {
+ postprocess_desktop_entries
+}
+
+# @FUNCTION: kde_pkg_postinst
+# @DESCRIPTION:
+# Calls buildsycoca
+kde_pkg_postinst() {
+ buildsycoca
+}
+
+# @FUNCTION: kde_pkg_postrm
+# @DESCRIPTION:
+# Calls buildsycoca
+kde_pkg_postrm() {
+ buildsycoca
+}
+
+case ${EAPI:-0} in
+ 0|1) EXPORT_FUNCTIONS pkg_setup src_unpack src_compile src_install pkg_postinst pkg_postrm pkg_preinst;;
+ 2) EXPORT_FUNCTIONS pkg_setup src_unpack src_prepare src_configure src_compile src_install pkg_postinst pkg_postrm pkg_preinst;;
+esac
diff --git a/gentoo/eclass/qt3.eclass b/gentoo/eclass/qt3.eclass
new file mode 100644
index 000000000..f24091e77
--- /dev/null
+++ b/gentoo/eclass/qt3.eclass
@@ -0,0 +1,97 @@
+# Copyright 2005-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/eclass/qt3.eclass,v 1.41 2009/05/17 15:17:03 hwoarang Exp $
+
+# @ECLASS: qt3.eclass
+# @MAINTAINER:
+# kde-sunset overlay maintainers
+# @BLURB: Eclass for Qt3 packages
+# @DESCRIPTION:
+# This eclass contains various functions that may be useful
+# when dealing with packages using Qt3 libraries.
+
+inherit toolchain-funcs versionator eutils
+
+if [[ -z "${QTDIR}" ]]; then
+ export QTDIR="/usr/qt/3"
+fi
+
+addwrite "${QTDIR}/etc/settings"
+addpredict "${QTDIR}/etc/settings"
+
+# @FUNCTION: eqmake3
+# @USAGE: [.pro file] [additional parameters to qmake]
+# @MAINTAINER:
+# Przemyslaw Maciag <troll@gentoo.org>
+# Davide Pesavento <davidepesa@gmail.com>
+# @DESCRIPTION:
+# Runs qmake on the specified .pro file (defaults to
+# ${PN}.pro if eqmake3 was called with no argument).
+# Additional parameters are passed unmodified to qmake.
+eqmake3() {
+ local LOGFILE="${T}/qmake-$$.out"
+ local projprofile="${1}"
+ [[ -z ${projprofile} ]] && projprofile="${PN}.pro"
+ shift 1
+
+ ebegin "Processing qmake ${projprofile}"
+
+ # file exists?
+ if [[ ! -f ${projprofile} ]]; then
+ echo
+ eerror "Project .pro file \"${projprofile}\" does not exist"
+ eerror "qmake cannot handle non-existing .pro files"
+ echo
+ eerror "This shouldn't happen - please send a bug report to bugs.gentoo.org"
+ echo
+ die "Project file not found in ${PN} sources"
+ fi
+
+ echo >> ${LOGFILE}
+ echo "****** qmake ${projprofile} ******" >> ${LOGFILE}
+ echo >> ${LOGFILE}
+
+ # some standard config options
+ local configoptplus="CONFIG += no_fixpath"
+ local configoptminus="CONFIG -="
+ if has debug ${IUSE} && use debug; then
+ configoptplus="${configoptplus} debug"
+ configoptminus="${configoptminus} release"
+ else
+ configoptplus="${configoptplus} release"
+ configoptminus="${configoptminus} debug"
+ fi
+
+ ${QTDIR}/bin/qmake ${projprofile} \
+ QTDIR=${QTDIR} \
+ QMAKE=${QTDIR}/bin/qmake \
+ QMAKE_CC=$(tc-getCC) \
+ QMAKE_CXX=$(tc-getCXX) \
+ QMAKE_LINK=$(tc-getCXX) \
+ QMAKE_CFLAGS_RELEASE="${CFLAGS}" \
+ QMAKE_CFLAGS_DEBUG="${CFLAGS}" \
+ QMAKE_CXXFLAGS_RELEASE="${CXXFLAGS}" \
+ QMAKE_CXXFLAGS_DEBUG="${CXXFLAGS}" \
+ QMAKE_LFLAGS_RELEASE="${LDFLAGS}" \
+ QMAKE_LFLAGS_DEBUG="${LDFLAGS}" \
+ "${configoptminus}" \
+ "${configoptplus}" \
+ QMAKE_RPATH= \
+ QMAKE_STRIP= \
+ ${@} >> ${LOGFILE} 2>&1
+
+ local result=$?
+ eend ${result}
+
+ # was qmake successful?
+ if [[ ${result} -ne 0 ]]; then
+ echo
+ eerror "Running qmake on \"${projprofile}\" has failed"
+ echo
+ eerror "This shouldn't happen - please send a bug report to bugs.gentoo.org"
+ echo
+ die "qmake failed on ${projprofile}"
+ fi
+
+ return ${result}
+}
diff --git a/gentoo/eclass/trinity-base.eclass b/gentoo/eclass/trinity-base.eclass
new file mode 100644
index 000000000..52b1c3995
--- /dev/null
+++ b/gentoo/eclass/trinity-base.eclass
@@ -0,0 +1,439 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+#
+# Original Author: fat-zer
+# Purpose: support planty of ebuilds for trinity project (a kde3 fork).
+#
+
+inherit trinity-functions cmake-utils base
+
+# FIXME we don't need to write to both
+addwrite "/usr/qt/3/etc/settings"
+addpredict "/usr/qt/3/etc/settings"
+addwrite "/usr/tqt3/etc/settings"
+addpredict "/usr/tqt3/etc/settings"
+
+# ban EAPI 0, 1 and 2
+case $EAPI in
+ 0|1|2|3|4) die "EAPI=${EAPI} is not supported" ;;
+ 5) ;;
+ *) die "Unknown EAPI=${EAPI}"
+esac
+
+# @ECLASS-VARIABLE: BUILD_TYPE
+# @DESCRIPTION:
+# Determins he build type: live or release
+if [[ ${PV} = *9999* ]]; then
+ BUILD_TYPE="live"
+else
+ BUILD_TYPE="release"
+fi
+export BUILD_TYPE
+
+# @ECLASS-VARIABLE: TRINITY_MODULE_NAME
+# @DESCRIPTION:
+# The name of trinity module; It's used for multiple purposes. First of all it
+# determines the tarball name (git repository for live packages)
+echo "${TRINITY_MODULE_NAME:=${PN}}" >/dev/null
+
+# @ECLASS-VARIABLE: TRINITY_SCM
+# @DESCRIPTION:
+# Determins from what version control system code is chiking out for live
+# ebuilds.
+
+# @ECLASS-VARIABLE: TMP_DOCDIR
+# @DESCRIPTION:
+# A temporary directory used to copy common documentation before installing it
+#
+# @ECLASS-VARIABLE: TRINTY_BASE_NO_INSTALL_DOC
+# @DESCRIPTION:
+# if setted to anything except "no" this variable prevents
+# trinity-base_src_install() to install documentation
+#
+
+# @ECLASS-VARIABLE: TRINTY_LANGS
+# @DESCRIPTION:
+# This is a whitespace-separated list of translations this ebuild supports.
+# These translations are automatically added to IUSE. Therefore ebuilds must set
+# this variable before inheriting any eclasses. To enable only selected
+# translations, ebuilds must call enable_selected_linguas(). kde4-{base,meta}.eclass does
+# this for you.
+
+# @ECLASS-VARIABLE: TRINTY_DOC_LANGS
+# @DESCRIPTION:
+# This is a whitespace-separated list of translations this ebuild supports.
+# These translations are automatically added to IUSE. Therefore ebuilds must set
+# this variable before inheriting any eclasses. To enable only selected
+# translations, ebuilds must call enable_selected_linguas(). kde4-{base,meta}.eclass does
+# this for you.
+
+# @ECLASS-VARIABLE: TRINITY_HANDBOOK
+# @DESCRIPTION:
+# Set to enable handbook in application. Possible values are 'always', 'optional'
+# (handbook USE flag) and 'never'.
+# This variable must be set before inheriting any eclasses. Defaults to 'never'.
+# As well It ensures buildtime and runtime dependencies.
+TRINITY_HANDBOOK="${TRINITY_HANDBOOK:-never}"
+
+# @ECLASS-VARIABLE: TRINITY_EXTRAGEAR_PACKAGING
+# @DESCRIPTION:
+# Set TRINITY_EXTRAGEAR_PACKAGING=yes before inheriting if the package use extragear-like
+# packaging and then supports ${TRINITY_LANGS}, ${TRINITY_DOC_LANGS} and
+# ${TRINITY_HANDBOOK} variables. The translations are found in the directory
+# pointed by the TEG_PO_DIR variable.
+
+# @ECLASS-VARIABLE: TRINITY_GIT_MIRROR
+# @DESCRIPTION:
+# User (or ebuild) can decide another git mirror if it's needed;
+# Defaults to http://scm.trinitydesktop.org/scm/git
+
+# @ECLASS-VARIABLE: TRINITY_GIT_BRANCH
+# @DESCRIPTION:
+# Specify git branch for live ebuilds. Default: master
+
+# @ECLASS-VARIABLE: TRINITY_COMMON_DOCS
+# @DESCRIPTION:
+# Common doc names that was found in trinity project's dirs.
+TRINITY_COMMON_DOCS="AUTHORS BUGS CHANGELOG CHANGES COMMENTS COMPLIANCE COMPILING
+ CONFIG_FORMAT CONFIGURING COPYING COPYRIGHT CREDITS DEBUG DESIGN FAQ
+ HACKING HISTORY HOWTO IDEAS INSTALL LICENSE MAINTAINERS NAMING NEWS
+ NOTES PLUGINS PORTING README SECURITY-HOLES TASKGROUPS TEMPLATE
+ TESTCASES THANKS THOUGHTS TODO VERSION"
+
+# @ECLASS-VARIABLE: TRINITY_TARBALL
+# @DESCRIPTION:
+# This variable holds the name of the tarboll with current module's source code.
+
+# @ECLASS-VARIABLE: TRINITY_BASE_SRC_URI
+# @DESCRIPTION:
+# The top SRC_URI for all trinity packages
+TRINITY_BASE_SRC_URI="http://www.mirrorservice.org/sites/trinitydesktop.org/trinity/releases/"
+# TRINITY_BASE_SRC_URI="http://trinity.blackmag.net/releases" # the old one
+
+#reset TRINITY_SCM and inherit proper eclass
+if [[ ${BUILD_TYPE} = live ]]; then
+ # set default TRINITY_SCM if not set
+ [[ -z "$TRINITY_SCM" ]] && TRINITY_SCM=git
+
+ case ${TRINITY_SCM} in
+ git) inherit git-2 ;;
+ *) die "Unsupported TRINITY_SCM=${TRINITY_SCM}" ;;
+ esac
+
+ #set some varyables
+ case ${TRINITY_SCM} in
+ git)
+ EGIT_REPO_URI="${TRINITY_GIT_MIRROR:=http://scm.trinitydesktop.org/scm/git}/${TRINITY_MODULE_NAME}"
+ EGIT_BRANCH="${TRINITY_GIT_BRANCH:=master}"
+ EGIT_PROJECT="trinity/${TRINITY_MODULE_NAME}"
+ EGIT_HAS_SUBMODULES="yes"
+ ;;
+ esac
+ S="${WORKDIR}/${TRINITY_MODULE_NAME}"
+elif [[ "${BUILD_TYPE}" == release ]]; then
+ mod_name="${TRINITY_MODULE_NAME}"
+ mod_ver="${TRINITY_MODULE_VER:=${PV}}"
+
+ case ${mod_ver} in
+ 3.5.13.1)
+ full_mod_name="${mod_name}-${mod_ver}"
+ TRINITY_TARBALL="${full_mod_name}.tar.gz" ;;
+ 3.5.13.2)
+ full_mod_name="${mod_name}-trinity-${mod_ver}"
+ TRINITY_TARBALL="${full_mod_name}.tar.xz" ;;
+ *)
+ full_mod_name="${mod_name}-${mod_ver}"
+ TRINITY_TARBALL="${full_mod_name}.tar.xz"
+ esac
+
+ if [[ -n "${TRINITY_MODULE_TYPE}" ]] ; then
+ SRC_URI="${TRINITY_BASE_SRC_URI}/${mod_ver}/${TRINITY_MODULE_TYPE}/$TRINITY_TARBALL"
+ else
+ SRC_URI="${TRINITY_BASE_SRC_URI}/${mod_ver}/$TRINITY_TARBALL"
+ fi
+
+ S="${WORKDIR}/${full_mod_name}"
+else
+ die "Unknown BUILD_TYPE=${BUILD_TYPE}"
+fi
+
+
+if [[ -n "${TRINITY_EXTRAGEAR_PACKAGING}" ]]; then
+# @ECLASS-VARIABLE: TEG_PO_DIR
+# @DESCRIPTION:
+# Change the translation directory for extragear packages. The default is ${S}/po
+ TEG_PO_DIR="${TEG_PO_DIR:-${S}/po}"
+
+# @ECLASS-VARIABLE: TEG_DOC_DIR
+# @DESCRIPTION:
+# Change the documentation directory for extragear packages. The default is
+# ${S}/doc
+ TEG_DOC_DIR="${TEG_DOC_DIR:-${S}/doc}"
+
+ if [[ -n "${TRINITY_LANGS}" || -n "${TRINITY_DOC_LANGS}" ]]; then
+ for lang in ${TRINITY_LANGS} ${TRINITY_DOC_LANGS}; do
+ IUSE="${IUSE} linguas_${lang}"
+ done
+
+ trinityhandbookdepend="
+ app-text/docbook-xml-dtd:4.2
+ app-text/docbook-xsl-stylesheets
+ "
+ case ${TRINITY_HANDBOOK} in
+ yes | always)
+ DEPEDND+=" ${trinityhandbookdepend}"
+ ;;
+ optional)
+ IUSE+=" +handbook"
+ DEPEND+=" handbook? ( ${trinityhandbookdepend} )"
+ ;;
+ *) ;;
+ esac
+ fi
+fi
+
+# @FUNCTION: trinity-base_src_unpack
+# @DESCRIPTION:
+# A default src unpack function to be call git-2_src_unpack either
+trinity-base_src_unpack() {
+ if [[ ${BUILD_TYPE} = live ]]; then
+ case "${TRINITY_SCM}" in
+
+ git)
+ git-2_src_unpack
+ ;;
+ *) die "TRINITY_SCM: ${TRINITY_SCM} is not supported by ${FUNCNAME}" ;;
+ esac
+ else
+ base_src_unpack
+ fi
+}
+
+
+# @FUNCTION: trinity-base_src_prepare
+# @DESCRIPTION:
+# General pre-configure and pre-compile function for Trinity applications.
+trinity-base_src_prepare() {
+ debug-print-function ${FUNCNAME} "$@"
+
+# # Only enable selected languages, used for KDE extragear apps.
+# if [[ -n ${KDE_LINGUAS} ]]; then
+# enable_selected_linguas
+# fi
+ local dir lang
+
+ # SCM bootstrap
+ if [[ ${BUILD_TYPE} = live ]]; then
+ case ${TRINITY_SCM} in
+ svn) subversion_src_prepare ;;
+ git) ;;
+ *) die "TRINITY_SCM: ${TRINITY_SCM} is not supported by ${FUNCNAME}"
+ esac
+ fi
+
+ # Apply patches
+ base_src_prepare
+
+ # Handle documentation and translations for extragear packages
+ if [[ -n "$TRINITY_EXTRAGEAR_PACKAGING" ]]; then
+ # remove not selected languages
+ if [[ -n $TRINITY_LANGS ]]; then
+ einfo "Removing unselected translations from ${TEG_PO_DIR}"
+ for dir in $(find ${TEG_PO_DIR} -mindepth 1 -maxdepth 1 -type d ); do
+ lang="$(basename "$dir")"
+ if ! has "$lang" ${TRINITY_LANGS}; then
+ eerror "Translation $lang seems to present in the package but is not supported by the ebuild"
+ elif ! has $lang ${LINGUAS}; then
+ rm -rf $dir
+ fi
+ done
+ fi
+
+ # if we removed all translations we should point it
+ if [[ -z $(find ${TEG_PO_DIR} -mindepth 1 -maxdepth 1 -type d) ]]; then
+ TRINITY_NO_TRANSLATIONS=yes
+ fi
+
+ # remove not selected documentation
+ if [[ -n $TRINITY_DOC_LANGS ]]; then
+ einfo "Removing unselected documentation from ${TEG_DOC_DIR}"
+ for dir in $(find ${TEG_DOC_DIR} -mindepth 1 -maxdepth 1 -type d ); do
+ lang="$(basename "$dir")"
+ if [[ "$lang" == "${PN}" || \
+ "$lang" == "${TRINITY_MODULE_NAME}" ]] ; then
+ echo -n; # do nothing it's main documentation
+ elif ! has "$lang" ${TRINITY_LANGS}; then
+ eerror "Documentation translated to language $lang seems to present in the package but is not supported by the ebuild"
+ elif ! has $lang ${LINGUAS}; then
+ rm -rf $dir
+ fi
+ done
+ fi
+ fi
+}
+
+
+# @FUNCTION: trinity-base_src_configure
+# @DESCRIPTION:
+# Call standart cmake-utils_src_onfigure and add some common arguments.
+trinity-base_src_configure() {
+ debug-print-function ${FUNCNAME} "$@"
+ local eg_cmakeargs
+
+ [[ -n "${PREFIX}" ]] && export PREFIX="${TDEDIR}"
+
+ if [[ -n "$TRINITY_EXTRAGEAR_PACKAGING" ]]; then
+ eg_cmakeargs=( -DBUILD_ALL=ON )
+ if [[ "$TRINITY_NO_TRANSLATIONS" == "yes" ]]; then
+ eg_cmakeargs=( -DBUILD_TRANSLATIONS=OFF "${eg_cmakeargs[@]}" )
+ else
+ eg_cmakeargs=( -DBUILD_TRANSLATIONS=ON "${eg_cmakeargs[@]}" )
+ fi
+ if [[ "${TRINITY_HANDBOOK}" == optional ]]; then
+ eg_cmakeargs=(
+ $(cmake-utils_use_with handbook DOC)
+ "${eg_cmakeargs[@]}" )
+ fi
+ fi
+
+ mycmakeargs=(
+ -DCMAKE_INSTALL_PREFIX="${EPREFIX}${TDEDIR}"
+ -DCMAKE_INSTALL_RPATH="${EPREFIX}${TDEDIR}"
+ $([[ "${TRINITY_NEED_ARTS}" == "optional" ]] && cmake-utils_use_with arts ARTS)
+ "${eg_cmakeargs[@]}"
+ "${mycmakeargs[@]}"
+ )
+ cmake-utils_src_configure
+}
+
+# @FUNCTION: trinity-base_src_compile
+# @DESCRIPTION:
+# Just call cmake-utils_src_compile.
+trinity-base_src_compile() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ cmake-utils_src_compile
+}
+
+# @FUNCTION: trinity-base_src_install
+# @DESCRIPTION:
+# Call standart cmake-utils_src_install and installs common documentation.
+trinity-base_src_install() {
+ debug-print-function ${FUNCNAME} "$@"
+ cmake-utils_src_install
+
+ trinity-base_fix_desktop_files
+ if [[ -z "$TRINITY_BASE_NO_INSTALL_DOC" ||
+ "$TRINITY_BASE_NO_INSTALL_DOC" == "no" ]]; then
+ trinity-base_create_tmp_docfiles
+ trinity-base_install_docfiles
+ fi
+}
+
+# @FUNCTION: trinity-base_create_tmp_docfiles
+# @DESCRIPTION:
+# Create docfiles in the form ${TMP_DOCDIR}/path.to.docfile.COMMON_NAME
+# Also see the description for TRINITY_COMMON_DOCS and TMP_DOCDIR.
+trinity-base_create_tmp_docfiles() {
+ debug-print-function ${FUNCNAME} "$@"
+ local srcdirs dir docfile targetdoc
+
+ if [[ -z "$TMP_DOCDIR" || ! -d "$TMP_DOCDIR" ]] ; then
+ TMP_DOCDIR="$T/docs"
+ mkdir -p ${TMP_DOCDIR}
+ fi
+
+ if [[ -z "$@" ]] ; then
+ srcdirs="./"
+ else
+ srcdirs="$@"
+ fi
+
+ einfo "Generating documentation list..."
+ for dir in $srcdirs; do
+ for doc in ${TRINITY_COMMON_DOCS}; do
+ for docfile in $(find $dir -type f -name "*${doc}*"); do
+ targetdoc="${docfile//\//.}"
+ targetdoc="${targetdoc#..}"
+ cp "${docfile}" "$TMP_DOCDIR/${targetdoc}"
+ done
+ done
+ done
+
+# if [[ "${TRINITY_INSTALL_ROOT_DOCS}" == "yes" && " ${srcdirs} " == "* ./ *" ]]; then
+# for doc in ${TRINITY_COMMON_DOCS}; do
+# for docfile in $(ls ./"*${doc}*"); do
+# targetdoc="${docfile//\//.}"
+# targetdoc="${targetdoc#..}"
+# cp "${docfile}" "$TMP_DOCDIR/${targetdoc}"
+# done
+# done
+# fi
+}
+
+# @FUNCTION: trinity-base_install_docfiles
+# @DESCRIPTION:
+# Install documentation from ${TMP_DOCDIR} or from first argument.
+trinity-base_install_docfiles() {
+ debug-print-function ${FUNCNAME} "$@"
+ local doc docdir
+ [[ -n "$TMP_DOCDIR" ]] && docdir="$TMP_DOCDIR"
+ [[ -n "$1" ]] && docdir="$1"
+ [[ -z "$docdir" ]] && die "docdir is not set in ${FUNCNAME}."
+
+ pushd "${docdir}" >/dev/null
+ find . -maxdepth 1 -type f | while read doc; do
+ einfo "Installing documentation: ${doc##*/}"
+ dodoc "${doc}"
+ done
+ popd >/dev/null
+}
+
+# @FUNCTION: trinity-base_fix_desktop_files
+# @DESCRIPTION:
+# Perform desktop files modifications according to current version. You can pass
+# either desktop files or direcories to the parametrs. In case you'd pass a
+# directory the function will recursively search for all desktop files and
+# modify them. If no argument specified the function assume to work on the ${D};
+trinity-base_fix_desktop_files() {
+
+ # Test if we have to perform any file fixing for current version
+ case "3.5" in
+ *${TRINITY_VER}*);;
+ *) return 0 ;;
+ esac
+
+ local file_list dir_list f
+
+ if [ "$#" != 0 ]; then
+ # Get directories and files from arguments
+ for f in $@; do
+ if [ -f "$f" ]; then
+ file_list+=" $f"
+ elif [ -d "$f" ]; then
+ dir_list+=" $f"
+ else
+ eerror "${FUNCNAME}: bad argument type: $(stat -c %F "$f")"
+ fi
+ done
+ else
+ dir_list="${D}"
+ fi
+
+ # Recursivly search for desktop files in directories
+ for f in $dir_list; do
+ file_list+="$(find ${f} -type f -name '*.desktop')"
+ done
+
+ # Performe the updates
+ case "${TRINITY_VER}" in
+ 3.5)
+ for f in $file_list; do
+ sed -i '/^OnlyShowIn=/s/KDE/TDE/g' "$f"
+ done;;
+ esac
+}
+
+EXPORT_FUNCTIONS src_configure src_compile src_install src_prepare
diff --git a/gentoo/eclass/trinity-functions.eclass b/gentoo/eclass/trinity-functions.eclass
new file mode 100644
index 000000000..6e15321d9
--- /dev/null
+++ b/gentoo/eclass/trinity-functions.eclass
@@ -0,0 +1,205 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+#
+# Original Author: Alexander Golubev (Fat-Zer)
+# Purpose: basic trinity functions and variables
+#
+
+inherit versionator multilib
+
+TRINITY_LIVEVER="14.0.0"
+
+# @FUNCTION: set-trinityver
+# @USAGE: < version >
+# @DESCRIPTION:
+# Sets the right TRINITY_VER, TDEDIR etc...
+# !!! unfinished
+set-trinityver() {
+ debug-print-function $FUNCNAME "$@"
+
+ # set install location:
+ # - 3rd party apps go into /usr, and have SLOT="0".
+ # - kde-base category ebuilds go into /usr/kde/$MAJORVER.$MINORVER,
+ # and have SLOT="$MAJORVER.$MINORVER".
+ # - This function exports $PREFIX (location to install to) and $KDEDIR
+ # (location of kdelibs to link against) for all ebuilds.
+ #
+ # -- Overrides - deprecated but working for now: --
+ # - If $KDEPREFIX is defined (in the profile or env), it overrides everything
+ # and both base and 3rd party kde stuff goes in there.
+ # - If $KDELIBSDIR is defined, the kdelibs installed in that location will be
+ # used, even by kde-base packages.
+
+ # get version elements
+ if [[ -n "$1" ]]; then
+ ETRINITY_VER="$1"
+ else
+ ETRINITY_VER="$PV"
+ fi
+
+ case "$ETRINITY_VER" in
+ 3.* )
+ export TRINITY_VER="$(get_version_component_range 1-2 "${ETRINITY_VER}")" ;;
+ 9999 )
+ export TRINITY_VER="$(get_major_version "$TRINITY_LIVEVER" )" ;;
+ * )
+ export TRINITY_VER="$(get_major_version "$ETRINITY_VER" )" ;;
+ esac
+
+ export TDEDIR="/usr/trinity/${TRINITY_VER}"
+ export TDEDIRS="/usr/trinity/${TRINITY_VER}"
+
+ # 3.5.x still uses KDE* variables
+ if [ "${TRINITY_VER}" = "3.5" ]; then
+ export KDEDIR="$TDEDIR"
+ export KDEDIRS="$TDEDIRS"
+ fi
+
+ # this sould solve problems like "cannot find libraries" espessialy when
+ # compiling kdelibs
+ # NOTE: That can breaks compilation of tdelibs:
+ # binaries which runs during compilation are tring to load shared
+ # libraries from the TDE's directory wich may be broken.
+ # TODO: fix that issue for tdelibs
+ adjust-trinity-paths
+}
+
+# @FUNCTION: get-trinity-libdirs
+# @USAGE:
+# @DESCRIPTION:
+# lists all the trinity library directories
+get-trinity-libdirs() {
+ local rv
+ for libdir in $(get_all_libdirs); do
+ echo " ${TDEDIR}/${libdir}"
+ done
+}
+
+# @FUNCTION: adjust-trinity-paths
+# @USAGE: < version >
+# @DESCRIPTION:
+# Adjust PATH LDPATH and LD_LIBRARY_PATH to see only current trinity version
+adjust-trinity-paths() {
+ debug-print-function $FUNCNAME "$@"
+ local libdir
+
+ # this function can be called during depend phase so we shouldn't use sed here
+ PATH="$(trinity_remove_path_component "$PATH" "/usr/trinity/*/bin")"
+ PATH="$(trinity_remove_path_component "$PATH" "/usr/trinity/*/sbin")"
+ PATH="$(trinity_prepand_path_component "$PATH" "${TDEDIR}/bin" )"
+
+ # FIXME: it seems we don't need LDPATH
+# LDPATH="$(trinity_remove_path_component "$LDPATH" "/usr/trinity/*/${libdir}")"
+ LD_LIBRARY_PATH="$(trinity_remove_path_component "$LD_LIBRARY_PATH" "/usr/trinity/*/${libdir}")"
+ for libdir in $(get-trinity-libdirs); do
+# LDPATH="$(trinity_prepand_path_component "$LDPATH" "${TDEDIR}/${libdir}" )"
+ LD_LIBRARY_PATH="$(trinity_prepand_path_component "$LD_LIBRARY_PATH" "${libdir}" )"
+ done
+
+ export PATH
+ export LD_LIBRARY_PATH
+
+ # Unset home paths so aplications wouldn't try to write to root's dir while build
+ unset TDEHOME
+ unset TDEROOTHOME
+}
+
+trinity_remove_path_component() {
+ local i new_path path_array
+
+ IFS=: read -ra path_array <<< "$1"
+ for i in "${path_array[@]}"; do
+ case "$i" in
+ $2 ) ;; # delete specyfied entry
+ "" ) ;;
+ * ) new_path="${new_path}:${i}" ;;
+ esac
+ done
+
+ echo "${new_path#:}"
+}
+
+trinity_prepand_path_component() {
+ local new_path
+
+ new_path="${2%:}:${1#:}"
+ echo "${new_path%:}"
+}
+
+# @FUNCTION: need-trinity
+# @USAGE: < version >
+# @DESCRIPTION:
+# Sets the correct DEPEND and RDEPEND for the needed trinity < version >.
+need-trinity() {
+ debug-print-function $FUNCNAME "$@"
+
+ local my_depend
+
+ # determine install locations
+ set-trinityver $1
+ adjust-trinity-paths
+
+ case "$1" in
+ 3.5*)
+ my_depend=">=trinity-base/kdelibs-${ETRINITY_VER}:3.5";;
+ *)
+ my_depend=">=trinity-base/tdelibs-${ETRINITY_VER}:${TRINITY_VER}";;
+ esac
+
+ DEPEND="$DEPEND $my_depend"
+ RDEPEND="$RDEPEND $my_depend"
+}
+
+# @ECLASS-VARIABLE: TRINITY_NEED_ARTS
+# @DESCRIPTION:
+# This variable is setted by need-arts function. Possible arguments values 'yes', 'no' and 'optional'
+# Default is 'no'
+TRINITY_NEED_ARTS="no"
+
+# @FUNCTION: need-arts
+# @USAGE: need-arts <yes|optional>
+# @DESCRIPTION:
+# This function adds DEPEND's for aRTs-support Possible arguments are 'yes' and 'optinal'
+# 'yes' means arts is required, optional' results in USE flag arts.
+# NOTE: this function modifies IUSE DEPEND and RDEPEND variables, so if you call it before setting
+# those variables don't forget to include the priviously setted value into them.
+need-arts() {
+ debug-print-function $FUNCNAME "$@"
+
+ local tdelibs my_depend
+
+ [[ -z "${1}" ]] && die "$FUNCNAME requires an argument"
+
+ TRINITY_NEED_ARTS=$1;
+
+ case "${TRINITY_VER}" in
+ "") die "You must call set-trinityver unctions to set TRINITY_VER before calling $FUNCNAME.";;
+ 3.5*) tdelibs="trinity-base/kdelibs";;
+ *) tdelibs="trinity-base/tdelibs";;
+ esac
+
+ # handle trinity-base/tdelibs in special way
+ if [[ "${CATEGORY}/${PN}" == "${tdelibs}" ]]; then
+ if [[ "$1" == optional ]]; then
+ my_depend=" arts? ( trinity-base/arts )"
+ IUSE+=" arts"
+ else
+ die "aRTs support for ${tdelibs} supposed to be optional"
+ fi
+ else
+ case "$1" in
+ yes) my_depend=" trinity-base/arts
+ ${tdelibs}[arts]" ;;
+ optional) my_depend=" arts? ( trinity-base/arts
+ ${tdelibs}[arts] )"
+ IUSE+=" arts" ;;
+ *) die "bad parameter: $1"
+ esac
+ fi
+
+ DEPEND+=" ${my_depend}";
+ RDEPEND+=" ${my_depend}";
+}
+
diff --git a/gentoo/eclass/trinity-meta.eclass b/gentoo/eclass/trinity-meta.eclass
new file mode 100644
index 000000000..b6ddb073d
--- /dev/null
+++ b/gentoo/eclass/trinity-meta.eclass
@@ -0,0 +1,262 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+#
+# Original Author: fat-zer
+# Purpose: make easy to install trinity ebuilds.
+#
+
+inherit trinity-base trinity-functions cmake-utils
+
+LICENSE="GPL-2 LGPL-2"
+HOMEPAGE="http://www.trinitydesktop.org/"
+
+# set slot, TDEDIR, TRINITY_VER and PREFIX
+set-trinityver
+[[ -z "$SLOT" ]] && SLOT="$TRINITY_VER"
+
+if [[ "$TRINITY_VER" == "3.5" ]]; then
+# common dependencies
+ DEPEND="trinity-base/kdelibs:${SLOT}"
+else
+ DEPEND="trinity-base/tdelibs:${SLOT}"
+fi
+
+# @FUNCTION: trinity-meta_set_trinity_submodule
+# @DESCRIPTION:
+# sets the TRINITY_SUBMODULE variable to vth value aptained from ${PN}
+# if it doesn't set yet
+trinity-meta_set_trinity_submodule() {
+ debug-print-function $FUNCNAME "$@"
+
+ if [[ -z "$TRINITY_SUBMODULE" ]]; then
+ TRINITY_SUBMODULE="${PN#${TRINITY_MODULE_NAME}-}"
+ fi
+}
+
+# @FUNCTION: trinity-meta_src_pkg_setup
+# @DESCRIPTION:
+# Default pkg_setup function. It sets the correct ${S}
+# nessecary files.
+trinity-meta_pkg_setup() {
+ debug-print-function ${FUNCNAME} "$@"
+ adjust-trinity-paths
+
+ trinity-meta_set_trinity_submodule
+}
+
+# @FUNCTION: trinity-meta_src_unpack
+# @DESCRIPTION:
+# Default source extract function. It tries to unpack only
+# nessecary files.
+trinity-meta_src_unpack() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ if [[ ${BUILD_TYPE} = live ]]; then
+ case "${TRINITY_SCM}" in
+ svn)
+ mkdir -p "$S"
+ ESVN_RESTRICT="export" subversion_src_unpack
+ subversion_wc_info
+ subversion_bootstrap
+ ;;
+ git)
+ git-2_src_unpack
+ ;;
+ *) die "TRINITY_SCM: ${TRINITY_SCM} is not supported by ${FUNCNAME}" ;;
+ esac
+ fi
+ trinity-meta_src_extract
+}
+
+# @FUNCTION: trinity-meta_src_extract
+# @DESCRIPTION:
+# A function to extract the source for a split KDE ebuild.
+# Also see KMMODULE, KMEXTRACT
+trinity-meta_src_extract() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ trinity-meta_create_extractlists
+
+ if [[ "${BUILD_TYPE}" = live ]]; then
+ einfo "Exporting parts of working copy to ${S}"
+ case "$TRINITY_SCM" in
+ svn) trinity-meta_rsync_copy ;;
+ git) # we nothing can do to prevent git from unpacking code
+ ;;
+ *) die "TRINITY_SCM: ${TRINITY_SCM} is not supported by ${FUNCNAME}"
+ esac
+ else
+ local tarfile tarparams f extractlist
+
+ case $TRINITY_TARBALL in
+ *.gz)
+ tarparams=" --gzip"
+ ;;
+ *.xz)
+ tarparams=" --xz"
+ ;;
+ esac
+
+ # Full path to source tarball
+ tarfile="${DISTDIR}/${TRINITY_TARBALL}"
+
+ # Detect real toplevel dir from tarball name - it will be used upon extraction
+ topdir="${TRINITY_TARBALL%.tar.*}"
+
+ ebegin "Unpacking parts of ${TRINITY_TARBALL} to ${WORKDIR}"
+
+ for f in $TSM_EXTRACT_LIST; do
+ extractlist+=" ${topdir}/${f}"
+ done
+
+ tar -xpf "${tarfile}" ${tarparams} -C "${WORKDIR}" ${extractlist} 2> /dev/null \
+ || echo "tar extract command failed at least partially - continuing anyway"
+
+ # Make sure $S points to right place
+ [[ "${WORKDIR}/${topdir}" != "${S}" ]] && S="${WORKDIR}/${topdir}"
+ fi
+}
+
+# @FUNCTION: trinity-meta_rsync_copy
+# @DESCRIPTION:
+# Copies files from svn or git repository to $S
+trinity-meta_rsync_copy() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ local rsync_options subdir targetdir wc_path escm
+ case "${TRINITY_SCM}" in
+ svn) wc_path="${ESVN_WC_PATH}";;
+ git) wc_path="${EGIT_STORE_DIR}/${EGIT_PROJECT}";;
+ *) die "TRINITY_SCM: ${TRINITY_SCM} is not supported by ${FUNCNAME}" ;;
+ esac
+
+ rsync_options="--group --links --owner --perms --quiet --exclude=.svn/ --exclude=.git/"
+
+ # Copy ${TRINITY_MODULE_NAME} non-recursively (toplevel files)
+ rsync ${rsync_options} "${wc_path}"/* "${S}" \
+ || die "rsync: can't export toplevel files to '${S}'."
+ # Copy cmake directory
+ if [[ -d "${wc_path}/cmake" ]]; then
+ rsync --recursive ${rsync_options} "${wc_path}/cmake" "${S}" \
+ || die "rsync: can't export cmake files to '${S}'."
+ fi
+ # Copy all subdirectories listed in $TSM_EXTRACT_LIST
+ for subdir in ${TSM_EXTRACT_LIST}; do
+ rsync --recursive ${rsync_options} "${wc_path}/${subdir}" \
+ "${S}/$(dirname subdir)" \
+ || die "rsync: can't export object '${wc_path}/${subdir}' to '${S}'."
+ done
+}
+
+# @FUNCTION: trinity-meta_create_extractlists
+# @DESCRIPTION:
+# Create lists of files and subdirectories to extract.
+# Also see descriptions of KMMODULE and KMEXTRACT
+trinity-meta_create_extractlists() {
+ debug-print-function ${FUNCNAME} "$@"
+ local submod
+
+ # if $TSM_EXTRACT is not set assign it to dirs named in TRINITY_SUBMODULE
+ if [ -z "${TSM_EXTRACT}" ]; then
+ for submod in ${TRINITY_SUBMODULE}; do
+ TSM_EXTRACT="${TSM_EXTRACT} ${submod}/"
+ done
+ fi
+
+ # add package-specific files and directories
+ case "${TRINITY_MODULE_NAME}" in
+ kdebase) TSM_EXTRACT_LIST+=" kcontrol/ kdmlib/" ;;
+ tdebase) TSM_EXTRACT_LIST+=" kcontrol/" ;;
+ *) ;; # nothing special for over modules
+# *) die "TRINITY_MODULE_NAME ${TRINITY_MODULE_NAME} is not supported by function ${FUNCNAME}" ;;
+ esac
+
+ TSM_EXTRACT_LIST+=" ${TSM_EXTRACT} ${TSM_EXTRACT_ALSO} cmake/ CMakeLists.txt"
+ TSM_EXTRACT_LIST+=" config.h.cmake ConfigureChecks.cmake"
+
+ debug-print "line ${LINENO} ${ECLASS} ${FUNCNAME}: TSM_EXTRACT_LIST=\"${TSM_EXTRACT_LIST}\""
+}
+
+# @FUNCTION: trinity-meta_src_prepare
+# @DESCRIPTION:
+# Default src prepare function. Currently it's only a stub.
+trinity-meta_src_prepare() {
+ debug-print-function ${FUNCNAME} "$@"
+ local shared_patch_dir f f_name;
+
+ shared_patch_dir="${FILESDIR}/shared/${TRINITY_MODULE_NAME}-${PV}/patches/"
+ if [ -d "${shared_patch_dir}" ]; then
+ find "${shared_patch_dir}" -type f | while read f; do
+ f_name="$(basename "${f}")"
+ case "${f_name}" in
+ *.diff | *.patch ) epatch "${f}" ;;
+ *.gz ) cp "${f}" "${T}"
+ gunzip ${T}/${f_name}
+ epatch ${T}/${f_name%.gz}
+ ;;
+ *.bz2 ) cp "${f}" "${T}"
+ bunzip2 ${T}/${f_name}
+ epatch ${T}/${f_name%.bz2}
+ ;;
+ *) die "unknown patch type in the patch directory" ;;
+ esac
+ done;
+ fi
+
+# fix bad cmake code fo 3.5.13.1
+ if [ $PV == "3.5.13.1" ]; then
+ [ -f "cmake/modules/FindTDE.cmake" ] && \
+ sed -ie 's!HINTS\s\+${\w*BIN\w*}!HINTS "${TDE_PREFIX}/bin" ${BIN_INSTALL_DIR}!' \
+ cmake/modules/FindTDE.cmake
+ fi
+
+ trinity-base_src_prepare
+}
+
+# @FUNCTION: trinity-meta_src_configure
+# @DESCRIPTION:
+# Default source configure function. It sets apropriate cmake args.
+# Also see description of KMMODULE
+trinity-meta_src_configure() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ local item tsmargs mod
+
+ for item in $TRINITY_SUBMODULE; do
+ mod="${item^^}"
+ mod="${mod//-/_}"
+ tsmargs+=" -DBUILD_${mod}=ON"
+ done
+
+ mycmakeargs=(
+ "${mycmakeargs[@]}"
+ ${tsmargs}
+ )
+
+ trinity-base_src_configure
+}
+
+# @FUNCTION: trinity-meta_src_compile
+# @DESCRIPTION:
+# Just call trinity-base_src_compile.
+trinity-meta_src_compile() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ trinity-base_src_compile
+}
+
+# @FUNCTION: trinity-meta_src_install
+# @DESCRIPTION:
+# Call default cmake install function. and install documentation.
+trinity-meta_src_install() {
+ debug-print-function ${FUNCNAME} "$@"
+
+ TRINITY_BASE_NO_INSTALL_DOC="yes" trinity-base_src_install
+
+ trinity-base_create_tmp_docfiles $TSM_EXTRACT
+ trinity-base_install_docfiles
+}
+
+EXPORT_FUNCTIONS src_prepare src_configure src_compile src_install src_unpack pkg_setup
diff --git a/gentoo/eclass/trinity-shared-files/kdetoys-3.5.13.1/patches/add-initial-cmake-support.patch.bz2 b/gentoo/eclass/trinity-shared-files/kdetoys-3.5.13.1/patches/add-initial-cmake-support.patch.bz2
new file mode 100644
index 000000000..00ab641cd
--- /dev/null
+++ b/gentoo/eclass/trinity-shared-files/kdetoys-3.5.13.1/patches/add-initial-cmake-support.patch.bz2
Binary files differ
diff --git a/gentoo/eclass/trinity-shared-files/kdeutils-3.5.13.1/patches/add-initial-cmake-support-1.patch.bz2 b/gentoo/eclass/trinity-shared-files/kdeutils-3.5.13.1/patches/add-initial-cmake-support-1.patch.bz2
new file mode 100644
index 000000000..e48e09217
--- /dev/null
+++ b/gentoo/eclass/trinity-shared-files/kdeutils-3.5.13.1/patches/add-initial-cmake-support-1.patch.bz2
Binary files differ
diff --git a/gentoo/licenses/AFL-2.0 b/gentoo/licenses/AFL-2.0
new file mode 100644
index 000000000..6cb40a954
--- /dev/null
+++ b/gentoo/licenses/AFL-2.0
@@ -0,0 +1,46 @@
+The Academic Free License
+ v. 2.0
+
+This Academic Free License (the "License") applies to any original work of authorship (the "Original Work") whose owner (the "Licensor") has placed the following notice immediately following the copyright notice for the Original Work:
+Licensed under the Academic Free License version 2.0
+
+1) Grant of Copyright License. Licensor hereby grants You a world-wide, royalty-free, non-exclusive, perpetual, sublicenseable license to do the following:
+a) to reproduce the Original Work in copies;
+
+b) to prepare derivative works ("Derivative Works") based upon the Original Work;
+
+c) to distribute copies of the Original Work and Derivative Works to the public;
+
+d) to perform the Original Work publicly; and
+
+e) to display the Original Work publicly.
+
+2) Grant of Patent License. Licensor hereby grants You a world-wide, royalty-free, non-exclusive, perpetual, sublicenseable license, under patent claims owned or controlled by the Licensor that are embodied in the Original Work as furnished by the Licensor, to make, use, sell and offer for sale the Original Work and Derivative Works.
+
+3) Grant of Source Code License. The term "Source Code" means the preferred form of the Original Work for making modifications to it and all available documentation describing how to modify the Original Work. Licensor hereby agrees to provide a machine-readable copy of the Source Code of the Original Work along with each copy of the Original Work that Licensor distributes. Licensor reserves the right to satisfy this obligation by placing a machine-readable copy of the Source Code in an information repository reasonably calculated to permit inexpensive and convenient access by You for as long as Licensor continues to distribute the Original Work, and by publishing the address of that information repository in a notice immediately following the copyright notice that applies to the Original Work.
+
+4) Exclusions From License Grant. Neither the names of Licensor, nor the names of any contributors to the Original Work, nor any of their trademarks or service marks, may be used to endorse or promote products derived from this Original Work without express prior written permission of the Licensor. Nothing in this License shall be deemed to grant any rights to trademarks, copyrights, patents, trade secrets or any other intellectual property of Licensor except as expressly stated herein. No patent license is granted to make, use, sell or offer to sell embodiments of any patent claims other than the licensed claims defined in Section 2. No right is granted to the trademarks of Licensor even if such marks are included in the Original Work. Nothing in this License shall be interpreted to prohibit Licensor from licensing under different terms from this License any Original Work that Licensor otherwise would have a right to license.
+
+5) This section intentionally omitted.
+
+6) Attribution Rights. You must retain, in the Source Code of any Derivative Works that You create, all copyright, patent or trademark notices from the Source Code of the Original Work, as well as any notices of licensing and any descriptive text identified therein as an "Attribution Notice." You must cause the Source Code for any Derivative Works that You create to carry a prominent Attribution Notice reasonably calculated to inform recipients that You have modified the Original Work.
+
+7) Warranty of Provenance and Disclaimer of Warranty. Licensor warrants that the copyright in and to the Original Work and the patent rights granted herein by Licensor are owned by the Licensor or are sublicensed to You under the terms of this License with the permission of the contributor(s) of those copyrights and patent rights. Except as expressly stated in the immediately proceeding sentence, the Original Work is provided under this License on an "AS IS" BASIS and WITHOUT WARRANTY, either express or implied, including, without limitation, the warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY OF THE ORIGINAL WORK IS WITH YOU. This DISCLAIMER OF WARRANTY constitutes an essential part of this License. No license to Original Work is granted hereunder except under this disclaimer.
+
+8) Limitation of Liability. Under no circumstances and under no legal theory, whether in tort (including negligence), contract, or otherwise, shall the Licensor be liable to any person for any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or the use of the Original Work including, without limitation, damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses. This limitation of liability shall not apply to liability for death or personal injury resulting from Licensor's negligence to the extent applicable law prohibits such limitation. Some jurisdictions do not allow the exclusion or limitation of incidental or consequential damages, so this exclusion and limitation may not apply to You.
+
+9) Acceptance and Termination. If You distribute copies of the Original Work or a Derivative Work, You must make a reasonable effort under the circumstances to obtain the express assent of recipients to the terms of this License. Nothing else but this License (or another written agreement between Licensor and You) grants You permission to create Derivative Works based upon the Original Work or to exercise any of the rights granted in Section 1 herein, and any attempt to do so except under the terms of this License (or another written agreement between Licensor and You) is expressly prohibited by U.S. copyright law, the equivalent laws of other countries, and by international treaty. Therefore, by exercising any of the rights granted to You in Section 1 herein, You indicate Your acceptance of this License and all of its terms and conditions.
+
+10) Termination for Patent Action. This License shall terminate automatically and You may no longer exercise any of the rights granted to You by this License as of the date You commence an action, including a cross-claim or counterclaim, for patent infringement (i) against Licensor with respect to a patent applicable to software or (ii) against any entity with respect to a patent applicable to the Original Work (but excluding combinations of the Original Work with other software or hardware).
+
+11) Jurisdiction, Venue and Governing Law. Any action or suit relating to this License may be brought only in the courts of a jurisdiction wherein the Licensor resides or in which Licensor conducts its primary business, and under the laws of that jurisdiction excluding its conflict-of-law provisions. The application of the United Nations Convention on Contracts for the International Sale of Goods is expressly excluded. Any use of the Original Work outside the scope of this License or after its termination shall be subject to the requirements and penalties of the U.S. Copyright Act, 17 U.S.C. ¤ 101 et seq., the equivalent laws of other countries, and international treaty. This section shall survive the termination of this License.
+
+12) Attorneys Fees. In any action to enforce the terms of this License or seeking damages relating thereto, the prevailing party shall be entitled to recover its costs and expenses, including, without limitation, reasonable attorneys' fees and costs incurred in connection with such action, including any appeal of such action. This section shall survive the termination of this License.
+
+13) Miscellaneous. This License represents the complete agreement concerning the subject matter hereof. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable.
+
+14) Definition of "You" in This License. "You" throughout this License, whether in upper or lower case, means an individual or a legal entity exercising rights under, and complying with all of the terms of, this License. For legal entities, "You" includes any entity that controls, is controlled by, or is under common control with you. For purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
+
+15) Right to Use. You may use the Original Work in all ways not otherwise restricted or conditioned by this License or by law, and Licensor promises not to interfere with or be responsible for such uses by You.
+
+This license is Copyright (C) 2003 Lawrence E. Rosen. All rights reserved. Permission is hereby granted to copy and distribute this license without modification. This license may not be modified without the express written permission of its copyright owner. \ No newline at end of file
diff --git a/gentoo/media-libs/lcms/Manifest b/gentoo/media-libs/lcms/Manifest
new file mode 100644
index 000000000..665770687
--- /dev/null
+++ b/gentoo/media-libs/lcms/Manifest
@@ -0,0 +1,3 @@
+AUX lcms-1.19-disable_static_modules.patch 578 SHA256 bd56a283da65a7ab262d35c890a99e8b103a3a73e50b997e404c3c0ac3ae467e SHA512 fba391dd6d69122217cdcde985d2154dfc2fd9b9aed5a50a013248e024ee54fe07a98acf917fd0e889578616512a2bdf155f0cbe782795e406d96a90b10bbb33 WHIRLPOOL d40c77d18ab5249252e4cadd5b6e2e40c1e43c0f761758908f2afa06d29dce41d56de52d33fe043d7441180c40ca572571fb7c27b87c43406991e5f1e25ff22c
+AUX lcms-1.19-implicit.patch 1308 SHA256 327eb96faafac582362f57800727896bd5c2206a7bb150f12ef7787e84f3ddd9 SHA512 120db0ea4c5a77563dffef55507a8e7fa172ee73ad3943b6ba55c4a01f4a0a2ae21794f4775d58f0d8ba6b5fbdc28c461622416981683063ff746db9a38c724b WHIRLPOOL df45ecfc6fe36db90c676e25f053b370af466648e36e752acfd9f5c0d5acc25a445bf0a8a476f0913ca5c7f0304940c3af35bf56c021fa34045cfdb1e52419bc
+DIST lcms-1.19.tar.gz 927752 SHA256 80ae32cb9f568af4dc7ee4d3c05a4c31fc513fc3e31730fed0ce7378237273a9 SHA512 85a55ad0673f0df2aaa80d18caa50314319f8da5ee4d84eed919059d0dad9861d684ef6353ce0ec6f9892a4603ce8e8e12f84d46858e23f52846b8aefd3cf449 WHIRLPOOL cb6bcb5497798ff2fa86ff433eae6afea38408306345156da6103aa8af6fc0d48fa1d730c5958c027ba06ea023236328bcb00be60f600d987d060625385c820b
diff --git a/gentoo/media-libs/lcms/files/lcms-1.19-disable_static_modules.patch b/gentoo/media-libs/lcms/files/lcms-1.19-disable_static_modules.patch
new file mode 100644
index 000000000..15e19eeb9
--- /dev/null
+++ b/gentoo/media-libs/lcms/files/lcms-1.19-disable_static_modules.patch
@@ -0,0 +1,20 @@
+--- a/python/Makefile.am
++++ b/python/Makefile.am
+@@ -22,7 +22,7 @@
+
+ endif
+
+-_lcms_la_LDFLAGS = -no-undefined -module -avoid-version \
++_lcms_la_LDFLAGS = -no-undefined -module -avoid-version -shared \
+ -L$(LCMS_PYLIB)/config
+
+ _lcms_la_LIBADD = $(top_builddir)/src/liblcms.la -lpython$(PYTHON_VERSION)
+@@ -31,7 +31,7 @@
+
+ _lcms_la_CPPFLAGS = -I$(PYTHON_PREFIX)/include/python$(PYTHON_VERSION) \
+ -I$(LCMS_PYINCLUDE) \
+- $(AM_CPPFLAGS)
++ $(AM_CPPFLAGS) -shared
+
+
+ EXTRA_DIST = lcms.py lcms.i testbed swig_lcms
diff --git a/gentoo/media-libs/lcms/files/lcms-1.19-implicit.patch b/gentoo/media-libs/lcms/files/lcms-1.19-implicit.patch
new file mode 100644
index 000000000..d80472273
--- /dev/null
+++ b/gentoo/media-libs/lcms/files/lcms-1.19-implicit.patch
@@ -0,0 +1,49 @@
+cmsio1.c: In function 'AdjustEndianessArray16':
+cmsio1.c:118: warning: implicit declaration of function 'swab'
+testcms.c: In function 'CheckSwab':
+testcms.c:113: warning: implicit declaration of function 'swab'
+================================================================================
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -6,6 +6,9 @@
+ # Don't require all the GNU mandated files
+ AUTOMAKE_OPTIONS = 1.7 foreign
+
++# _XOPEN_SOURCE is required for swab() but undefines strcasecmp(), so add _GNU_SOURCE as well:
++AM_CPPFLAGS = -D_XOPEN_SOURCE -D_GNU_SOURCE
++
+ includedir = ${prefix}/include
+
+ # Shared libraries built in this directory
+--- a/src/cmsio1.c
++++ b/src/cmsio1.c
+@@ -24,6 +24,7 @@
+
+
+ #include "lcms.h"
++#include <unistd.h>
+
+ // ----------------------------------------------------------------- Tag Serialization
+
+--- a/testbed/Makefile.am
++++ b/testbed/Makefile.am
+@@ -6,6 +6,9 @@
+ # Don't require all the GNU mandated files
+ AUTOMAKE_OPTIONS = 1.7 foreign
+
++# Required for swab()
++AM_CPPFLAGS = -D_XOPEN_SOURCE
++
+ INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include
+
+ check_PROGRAMS = testcms
+--- a/testbed/testcms.c
++++ b/testbed/testcms.c
+@@ -36,6 +36,7 @@
+ #include <time.h>
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <unistd.h>
+
+ #ifndef NON_WINDOWS
+ #include <icm.h>
diff --git a/gentoo/media-libs/lcms/lcms-1.19-r1.ebuild b/gentoo/media-libs/lcms/lcms-1.19-r1.ebuild
new file mode 100644
index 000000000..d680c9058
--- /dev/null
+++ b/gentoo/media-libs/lcms/lcms-1.19-r1.ebuild
@@ -0,0 +1,103 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="6"
+PYTHON_COMPAT=( python2_{6,7} )
+
+inherit autotools eutils python-r1
+
+DESCRIPTION="A lightweight, speed optimized color management engine"
+HOMEPAGE="http://www.littlecms.com/"
+SRC_URI="http://www.littlecms.com/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~x64-solaris ~x86-solaris"
+IUSE="jpeg python static-libs tiff zlib"
+
+RDEPEND="tiff? ( media-libs/tiff:0 )
+ jpeg? ( virtual/jpeg:0 )
+ zlib? ( sys-libs/zlib )
+ python? ( ${PYTHON_DEPS} )"
+DEPEND="${RDEPEND}
+ python? ( >=dev-lang/swig-1.3.31 )"
+
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+PATCHES=(
+ "${FILESDIR}/${P}-disable_static_modules.patch"
+ "${FILESDIR}/${P}-implicit.patch"
+)
+
+src_prepare() {
+ # Python bindings are built/installed manually.
+ sed -e "/SUBDIRS =/s/ python//" -i Makefile.am
+
+ default
+
+ eautoreconf
+
+ # run swig to regenerate lcms_wrap.cxx and lcms.py (bug #148728)
+ if use python; then
+ cd python
+ ./swig_lcms || die "swig failed to regenerate files"
+ fi
+}
+
+src_configure() {
+ econf \
+ --libdir="${EPREFIX}"/usr/$(get_libdir) \
+ --bindir="${EPREFIX}"/usr/bin \
+ --disable-dependency-tracking \
+ $(use_enable static-libs static) \
+ $(use_with jpeg) \
+ $(use_with python) \
+ $(use_with tiff) \
+ $(use_with zlib)
+}
+
+src_compile() {
+ default
+
+ if use python; then
+ local BUILD_DIR
+ BUILD_DIR=python
+
+ python_copy_sources
+
+ building() {
+ emake \
+ LCMS_PYEXECDIR="${EPREFIX}$(python_get_sitedir)" \
+ LCMS_PYINCLUDE="${EPREFIX}$(python_get_includedir)"
+# No corresponding functions in python-r1
+# LCMS_PYLIB="${EPREFIX}$(python_get_libdir)" \
+# PYTHON_VERSION="$(python_get_version)"
+ }
+ python_foreach_impl run_in_build_dir building
+ fi
+}
+
+src_install() {
+ DOCS=(AUTHORS README* INSTALL NEWS doc/*)
+
+ default
+
+ if use python; then
+ local BUILD_DIR
+ BUILD_DIR=python
+
+ installation() {
+ emake \
+ DESTDIR="${D}" \
+ LCMS_PYEXECDIR="${EPREFIX}$(python_get_sitedir)" \
+ install
+ }
+ python_foreach_impl run_in_build_dir installation
+ fi
+
+ insinto /usr/share/lcms/profiles
+ doins testbed/*.icm
+
+ find "${D}" -name '*.la' -exec rm -f '{}' +
+}
diff --git a/gentoo/media-libs/lcms/metadata.xml b/gentoo/media-libs/lcms/metadata.xml
new file mode 100644
index 000000000..8a119fbe6
--- /dev/null
+++ b/gentoo/media-libs/lcms/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ <description>The maintainer of the package in the overlay</description>
+ </maintainer>
+ <maintainer type="project">
+ <email>printing@gentoo.org</email>
+ <name>Gentoo Printing Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">lcms</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/gentoo/media-libs/libart_lgpl/Manifest b/gentoo/media-libs/libart_lgpl/Manifest
new file mode 100644
index 000000000..417816c00
--- /dev/null
+++ b/gentoo/media-libs/libart_lgpl/Manifest
@@ -0,0 +1,4 @@
+AUX 0001-gentoo-do-not-build-tests-if-not-required.patch 529 SHA256 15eae8cfbe4e8218be9dadd5e6a77830d7b47d4732499dd0a1ba4b325ef51f3c SHA512 6efe371e2a51211698ca0ae9c3c498331ea69342a3be2cf98a9ad060aa062738d6b49830f4c5f65529bb14df5993f516fb14d4c977e9d2263158819ed8c7d67d WHIRLPOOL 2a598d0d2d487592ed0125bef51cfb8c5e4d645fb9011f250e11cec4b65629a9219e884dc5d6e3ee567fb1e135bd52d5f393fd8ed1cc71f508c8de843040890f
+AUX 0002-TDE-fix-a-number-of-problems.patch 11281 SHA256 faa31cb9cfe45539f1b478d9f6792651b913525db8492d9aab980e784f92ee0a SHA512 6ea308b5857e8339994dd1530962c2dd8d225f4f3b553d65003266c84eb79095f7a79c52fba2469e8683aa47f2db0d85dbb1841945ed2fe6d78a4c7efd1662a7 WHIRLPOOL 8a623b5247f8f4002fc28c578b8cd2d16bef7b6c939056f294011b14227d14e6e7c3b4ec07b7191bf7e7a2d80c4e23a9d8368e1aaa8390921dbd16a0d52f4bd7
+AUX 0003-TDE-Clean-up-debug-spew.patch 3607 SHA256 5a1b797b31623bc0b79a51ac15c6573e70fd76306c114f7e781bc8295c9888c8 SHA512 83c651c9e7ac6cdcb28b9a2e1a7542150bfec522e9b9bb05f4679830621164a4e49a4a2e881765e1edf1efcb0a8af9b6252cc004dd33628ea59dd03ca4a8c8d3 WHIRLPOOL 823a59a127709ff2c023e739553ca99749a18786a13c817645159373506cebd45fd17b58529add2b3770fceef529ca04384a818c8621aca0bf441997a55356dd
+DIST libart_lgpl-2.3.21.tar.bz2 329102 SHA256 fdc11e74c10fc9ffe4188537e2b370c0abacca7d89021d4d303afdf7fd7476fa SHA512 8a632a6a4da59e5e8c02ec2f5a57e36d182b325b46513765425e5f171ff9ae326af1b133725beba28f7e76654309e001aee9bace727b5b4c8589405256a3c020 WHIRLPOOL 1e524326519b5e8b12a6bc708bcd9c8e9789a79d2a3cd6bf71fd526b6868407436af7d5b00ece7e41b7ea7419cb700ef0b417e7f22ebcfe4aace2cbfa02bcd80
diff --git a/gentoo/media-libs/libart_lgpl/files/0001-gentoo-do-not-build-tests-if-not-required.patch b/gentoo/media-libs/libart_lgpl/files/0001-gentoo-do-not-build-tests-if-not-required.patch
new file mode 100644
index 000000000..29b80d405
--- /dev/null
+++ b/gentoo/media-libs/libart_lgpl/files/0001-gentoo-do-not-build-tests-if-not-required.patch
@@ -0,0 +1,22 @@
+From f2288355d0709b183b749b10ca0a3c6587cd2ddc Mon Sep 17 00:00:00 2001
+From: Gilles Dartiguelongue <eva@gentoo.org>
+Date: Tue, 6 Apr 2010 15:11:46 +0200
+Subject: [PATCH 1/3] gentoo: do not build tests if not required
+
+---
+ Makefile.am | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Makefile.am b/Makefile.am
+index aec6c5d..95952da 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -1,4 +1,4 @@
+-noinst_PROGRAMS = testart testuta
++check_PROGRAMS = testart testuta
+
+ bin_SCRIPTS = \
+ libart2-config
+--
+1.8.1.5
+
diff --git a/gentoo/media-libs/libart_lgpl/files/0002-TDE-fix-a-number-of-problems.patch b/gentoo/media-libs/libart_lgpl/files/0002-TDE-fix-a-number-of-problems.patch
new file mode 100644
index 000000000..b00967e08
--- /dev/null
+++ b/gentoo/media-libs/libart_lgpl/files/0002-TDE-fix-a-number-of-problems.patch
@@ -0,0 +1,402 @@
+From 12ea00aa1898e33a467e2d8e18b6ebad43a181f3 Mon Sep 17 00:00:00 2001
+From: Golubev Alexander <fatzer2@gmail.com>
+Date: Thu, 15 Aug 2013 02:08:26 +0400
+Subject: [PATCH 2/3] TDE: fix a number of problems
+
+Conflicts:
+ art_config.h
+---
+ ChangeLog | 2 +
+ README | 14 ++++++
+ art_render_gradient.c | 28 ++++++++++++
+ art_render_gradient.h | 3 +-
+ art_vpath_bpath.c | 119 ++++++++++++++++++++++++--------------------------
+ gen_art_config.sh.in | 6 +++
+ libart-config.in | 13 +++++-
+ testart.c | 6 +++
+ 8 files changed, 127 insertions(+), 64 deletions(-)
+
+diff --git a/ChangeLog b/ChangeLog
+index 6861cf3..e274c9c 100644
+--- a/ChangeLog
++++ b/ChangeLog
+@@ -1,3 +1,5 @@
++*** PLEASE SEE THE GIT COMMIT LOG FOR NEWER CHANGES ***
++
+ 2009-01-14 Fridrich Strba <fridrich.strba@bluewin.ch>
+
+ * gen_art_config.c: remove
+diff --git a/README b/README
+index 882527e..a88ec40 100644
+--- a/README
++++ b/README
+@@ -17,3 +17,17 @@ For more information about libart, see the web page:
+ There's also a libart tutorial available at
+ http://www.gnome.org/~mathieu/libart/libart.html
+
++======================================================================
++
++NOTE: The TDE project has take over maintinance of this library,
++starting with the sources from the final upstream release v2.3.21.
++
++This allows the TDE project to resolve remaining issues that cause
++problems or crashes within TDE.
++
++This patched library is only available under the terms of the
++GPL/LGPL, and is NOT for sale by the original author as mentioned
++above, as patch copyright has NOT been transferred to the original
++author and we have no plans to do so.
++
++======================================================================
+diff --git a/art_render_gradient.c b/art_render_gradient.c
+index bf93c6f..008d61a 100644
+--- a/art_render_gradient.c
++++ b/art_render_gradient.c
+@@ -30,7 +30,9 @@
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <string.h>
++#if 0
+ #include <assert.h>
++#endif
+
+ /* Hack to find out how to define alloca on different platforms.
+ * Modified version of glib/galloca.h.
+@@ -203,7 +205,9 @@ calc_color_at (ArtGradientStop *stops,
+ }
+
+ printf ("WARNING! bad ix %d in calc_color_at() [internal error]\n", ix);
++#if 0
+ assert (0);
++#endif
+ }
+
+ static void
+@@ -331,6 +335,7 @@ art_render_gradient_linear_render_8 (ArtRenderCallback *self,
+ printf ("Initial ix: %d\n", ix);
+ #endif
+
++#if 0
+ assert (ix > 0);
+ assert (ix < n_stops);
+ assert ((stops[ix-1].offset <= offset_fraction + EPSILON) ||
+@@ -344,6 +349,17 @@ art_render_gradient_linear_render_8 (ArtRenderCallback *self,
+ assert ((offset_fraction != stops[ix].offset) ||
+ (d_offset <= 0.0));
+ */
++#else
++ if (!( (ix > 0) && (ix < n_stops)
++ && ((stops[ix-1].offset <= offset_fraction + EPSILON) ||
++ ((stops[ix].offset > (1.0 - EPSILON))
++ && (offset_fraction < EPSILON /* == 0.0*/)))
++ && (offset_fraction <= stops[ix].offset)))
++ {
++ printf ("art_render_gradient.c:%d: Old assert() failed!\n", __LINE__);
++ return;
++ }
++#endif
+
+ while (width > 0)
+ {
+@@ -663,6 +679,18 @@ art_render_gradient_radial_render (ArtRenderCallback *self, ArtRender *render,
+ z = b_a + sqrt (rad);
+ else
+ z = b_a;
++
++ if (gradient->spread == ART_GRADIENT_PAD)
++ z = z;
++ else if (gradient->spread == ART_GRADIENT_REPEAT)
++ z = z - floor (z);
++ else /* (gradient->spread == ART_GRADIENT_REFLECT) */
++ {
++ double tmp;
++
++ tmp = z - 2 * floor (0.5 * z);
++ z = tmp > 1 ? 2 - tmp : tmp;
++ }
+ art_render_gradient_setpix (render, bufp, n_stops, stops, z);
+ bufp += pixstride;
+ b_a += db_a;
+diff --git a/art_render_gradient.h b/art_render_gradient.h
+index ef5da95..7e8e0c8 100644
+--- a/art_render_gradient.h
++++ b/art_render_gradient.h
+@@ -52,14 +52,15 @@ struct _ArtGradientLinear {
+ double a;
+ double b;
+ double c;
+- ArtGradientSpread spread;
+ int n_stops;
+ ArtGradientStop *stops;
++ ArtGradientSpread spread;
+ };
+
+ struct _ArtGradientRadial {
+ double affine[6]; /* transforms user coordinates to unit circle */
+ double fx, fy; /* focal point in unit circle coords */
++ ArtGradientSpread spread;
+ int n_stops;
+ ArtGradientStop *stops;
+ };
+diff --git a/art_vpath_bpath.c b/art_vpath_bpath.c
+index 3f9afe7..2459f23 100644
+--- a/art_vpath_bpath.c
++++ b/art_vpath_bpath.c
+@@ -123,18 +123,6 @@ art_vpath_render_bez (ArtVpath **p_vpath, int *pn, int *pn_max,
+ double x3, double y3,
+ double flatness)
+ {
+- double x3_0, y3_0;
+- double z3_0_dot;
+- double z1_dot, z2_dot;
+- double z1_perp, z2_perp;
+- double max_perp_sq;
+-
+- double x_m, y_m;
+- double xa1, ya1;
+- double xa2, ya2;
+- double xb1, yb1;
+- double xb2, yb2;
+-
+ /* It's possible to optimize this routine a fair amount.
+
+ First, once the _dot conditions are met, they will also be met in
+@@ -157,70 +145,79 @@ art_vpath_render_bez (ArtVpath **p_vpath, int *pn, int *pn_max,
+ just that I have this undying quest for more speed...
+
+ */
+-
+- x3_0 = x3 - x0;
+- y3_0 = y3 - y0;
+-
+- /* z3_0_dot is dist z0-z3 squared */
+- z3_0_dot = x3_0 * x3_0 + y3_0 * y3_0;
+-
+- if (z3_0_dot < 0.001)
++ do
+ {
+- /* if start and end point are almost identical, the flatness tests
+- * don't work properly, so fall back on testing whether both of
+- * the other two control points are the same as the start point,
+- * too.
+- */
+- if (hypot(x1 - x0, y1 - y0) < 0.001
+- && hypot(x2 - x0, y2 - y0) < 0.001)
+- goto nosubdivide;
+- else
+- goto subdivide;
+- }
++ /* don't subdivide inside this */
++ double x3_0, y3_0;
++ double z3_0_dot;
++ double z1_dot, z2_dot;
++ double z1_perp, z2_perp;
++ double max_perp_sq;
+
+- /* we can avoid subdivision if:
++ x3_0 = x3 - x0;
++ y3_0 = y3 - y0;
+
+- z1 has distance no more than flatness from the z0-z3 line
++ /* z3_0_dot is dist z0-z3 squared */
++ z3_0_dot = x3_0 * x3_0 + y3_0 * y3_0;
+
+- z1 is no more z0'ward than flatness past z0-z3
++ if (z3_0_dot > 0.001)
++ {
++ /* we can avoid subdivision if:
+
+- z1 is more z0'ward than z3'ward on the line traversing z0-z3
++ z1 has distance no more than flatness from the z0-z3 line
+
+- and correspondingly for z2 */
++ z1 is no more z0'ward than flatness past z0-z3
+
+- /* perp is distance from line, multiplied by dist z0-z3 */
+- max_perp_sq = flatness * flatness * z3_0_dot;
++ z1 is more z0'ward than z3'ward on the line traversing z0-z3
+
+- z1_perp = (y1 - y0) * x3_0 - (x1 - x0) * y3_0;
+- if (z1_perp * z1_perp > max_perp_sq)
+- goto subdivide;
++ and correspondingly for z2 */
+
+- z2_perp = (y3 - y2) * x3_0 - (x3 - x2) * y3_0;
+- if (z2_perp * z2_perp > max_perp_sq)
+- goto subdivide;
++ /* perp is distance from line, multiplied by dist z0-z3 */
++ max_perp_sq = flatness * flatness * z3_0_dot;
+
+- z1_dot = (x1 - x0) * x3_0 + (y1 - y0) * y3_0;
+- if (z1_dot < 0 && z1_dot * z1_dot > max_perp_sq)
+- goto subdivide;
++ z1_perp = (y1 - y0) * x3_0 - (x1 - x0) * y3_0;
++ if (z1_perp * z1_perp > max_perp_sq)
++ break;
+
+- z2_dot = (x3 - x2) * x3_0 + (y3 - y2) * y3_0;
+- if (z2_dot < 0 && z2_dot * z2_dot > max_perp_sq)
+- goto subdivide;
++ z2_perp = (y3 - y2) * x3_0 - (x3 - x2) * y3_0;
++ if (z2_perp * z2_perp > max_perp_sq)
++ break;
+
+- if (z1_dot + z1_dot > z3_0_dot)
+- goto subdivide;
++ z1_dot = (x1 - x0) * x3_0 + (y1 - y0) * y3_0;
++ if (z1_dot < 0 && z1_dot * z1_dot > max_perp_sq)
++ break;
+
+- if (z2_dot + z2_dot > z3_0_dot)
+- goto subdivide;
++ if (z1_dot + z1_dot > z3_0_dot)
++ break;
+
+-
+- nosubdivide:
+- /* don't subdivide */
+- art_vpath_add_point (p_vpath, pn, pn_max,
+- ART_LINETO, x3, y3);
+- return;
++ z2_dot = (x3 - x2) * x3_0 + (y3 - y2) * y3_0;
++ if (z2_dot < 0 && z2_dot * z2_dot > max_perp_sq)
++ break;
+
+- subdivide:
++ if (z2_dot + z2_dot > z3_0_dot)
++ break;
++ }
++ else
++ {
++ /* if start and end point are almost identical, the flatness tests
++ * don't work properly, so fall back on testing whether both of
++ * the other two control points are the same as the start point,
++ * too.
++ */
++ if (hypot(x1 - x0, y1 - y0) > 0.001
++ || hypot(x2 - x0, y2 - y0) > 0.001)
++ break;
++ }
++
++ art_vpath_add_point (p_vpath, pn, pn_max,
++ ART_LINETO, x3, y3);
++ return;
++ } while (0);
++ double x_m, y_m;
++ double xa1, ya1;
++ double xa2, ya2;
++ double xb1, yb1;
++ double xb2, yb2;
+
+ xa1 = (x0 + x1) * 0.5;
+ ya1 = (y0 + y1) * 0.5;
+diff --git a/gen_art_config.sh.in b/gen_art_config.sh.in
+index 79843bc..8c525bd 100644
+--- a/gen_art_config.sh.in
++++ b/gen_art_config.sh.in
+@@ -8,6 +8,9 @@
+
+ echo "/* Automatically generated by gen_art_config */"
+ echo
++echo "#ifndef _ART_CONFIG_H_"
++echo "#define _ART_CONFIG_H_"
++echo
+ echo "#define ART_SIZEOF_CHAR @ART_SIZEOF_CHAR@"
+ echo "#define ART_SIZEOF_SHORT @ART_SIZEOF_SHORT@"
+ echo "#define ART_SIZEOF_INT @ART_SIZEOF_INT@"
+@@ -39,5 +42,8 @@ else
+ fi
+ fi
+
++echo
++echo "#endif /* _ART_CONFIG_H_ */"
++
+ exit 0
+ }
+diff --git a/libart-config.in b/libart-config.in
+index 0a2f3a9..e32f010 100644
+--- a/libart-config.in
++++ b/libart-config.in
+@@ -3,6 +3,8 @@
+ prefix=@prefix@
+ exec_prefix=@exec_prefix@
+ exec_prefix_set=no
++libs=""
++output_libs=no
+
+ usage="\
+ Usage: libart-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--libs] [--cflags]"
+@@ -43,8 +45,11 @@ while test $# -gt 0; do
+ echo $includes
+ ;;
+ --libs)
+- libdirs=-L@libdir@
+- echo $libdirs -lart_lgpl_2 -lm
++ libs="$libs -L@libdir@ -lart_lgpl_2"
++ output_libs=yes
++ ;;
++ --static)
++ libs="$libs -lm"
+ ;;
+ *)
+ echo "${usage}" 1>&2
+@@ -54,3 +59,7 @@ while test $# -gt 0; do
+ shift
+ done
+
++if test $output_libs = yes ; then
++ echo $libs
++fi
++
+diff --git a/testart.c b/testart.c
+index f20b292..994c7ba 100644
+--- a/testart.c
++++ b/testart.c
+@@ -228,6 +228,7 @@ make_testpat (void)
+ art_free (vpath3);
+ #else
+ svp2 = art_svp_from_vpath (vpath2);
++ art_free (vpath2);
+ #endif
+
+ #if 1
+@@ -361,6 +362,7 @@ test_dist (void)
+ 4,
+ 0.5);
+ #endif
++ art_free (vpath);
+
+ art_rgb_svp_aa (svp, 0, 0, 512, 512,
+ 0xffe0a0, 0x100040,
+@@ -431,10 +433,12 @@ test_render_gradient (art_u8 *buf)
+
+ vpath = randstar (50);
+ svp = art_svp_from_vpath (vpath);
++ art_free (vpath);
+
+ render = art_render_new (0, 0, 512, 512, buf, 512 * 3, 3, 8, ART_ALPHA_NONE,
+ NULL);
+ art_render_svp (render, svp);
++ art_svp_free (svp);
+ art_render_gradient_linear (render, &gradient, ART_FILTER_NEAREST);
+ art_render_invoke (render);
+
+@@ -467,6 +471,7 @@ test_render_rad_gradient (art_u8 *buf)
+
+ vpath = randstar (50);
+ svp = art_svp_from_vpath (vpath);
++ art_free (vpath);
+
+ render = art_render_new (0, 0, 512, 512, buf, 512 * 3, 3, 8, ART_ALPHA_NONE,
+ NULL);
+@@ -489,6 +494,7 @@ test_gradient (void)
+
+ vpath = randstar (50);
+ svp = art_svp_from_vpath (vpath);
++ art_free (vpath);
+
+ for (i = 0; i < n_iter; i++)
+ {
+--
+1.8.1.5
+
diff --git a/gentoo/media-libs/libart_lgpl/files/0003-TDE-Clean-up-debug-spew.patch b/gentoo/media-libs/libart_lgpl/files/0003-TDE-Clean-up-debug-spew.patch
new file mode 100644
index 000000000..07f0b59e4
--- /dev/null
+++ b/gentoo/media-libs/libart_lgpl/files/0003-TDE-Clean-up-debug-spew.patch
@@ -0,0 +1,120 @@
+From 2d8f80350005641824e90447234352dc311a3c9d Mon Sep 17 00:00:00 2001
+From: Golubev Alexander <fatzer2@gmail.com>
+Date: Thu, 15 Aug 2013 02:10:16 +0400
+Subject: [PATCH 3/3] TDE: Clean up debug spew
+
+Clean up README file
+---
+ README | 2 +-
+ art_render_gradient.c | 28 ++++------------------------
+ art_render_gradient.h | 2 +-
+ art_svp_intersect.c | 2 ++
+ 4 files changed, 8 insertions(+), 26 deletions(-)
+
+diff --git a/README b/README
+index a88ec40..dc912f9 100644
+--- a/README
++++ b/README
+@@ -19,7 +19,7 @@ http://www.gnome.org/~mathieu/libart/libart.html
+
+ ======================================================================
+
+-NOTE: The TDE project has take over maintinance of this library,
++NOTE: The TDE project has taken over maintenance of this library,
+ starting with the sources from the final upstream release v2.3.21.
+
+ This allows the TDE project to resolve remaining issues that cause
+diff --git a/art_render_gradient.c b/art_render_gradient.c
+index 008d61a..c0638f8 100644
+--- a/art_render_gradient.c
++++ b/art_render_gradient.c
+@@ -30,9 +30,6 @@
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <string.h>
+-#if 0
+-#include <assert.h>
+-#endif
+
+ /* Hack to find out how to define alloca on different platforms.
+ * Modified version of glib/galloca.h.
+@@ -205,9 +202,6 @@ calc_color_at (ArtGradientStop *stops,
+ }
+
+ printf ("WARNING! bad ix %d in calc_color_at() [internal error]\n", ix);
+-#if 0
+- assert (0);
+-#endif
+ }
+
+ static void
+@@ -334,33 +328,19 @@ art_render_gradient_linear_render_8 (ArtRenderCallback *self,
+ #ifdef DEBUG_SPEW
+ printf ("Initial ix: %d\n", ix);
+ #endif
+-
+-#if 0
+- assert (ix > 0);
+- assert (ix < n_stops);
+- assert ((stops[ix-1].offset <= offset_fraction + EPSILON) ||
+- ((stops[ix].offset > (1.0 - EPSILON)) && (offset_fraction < EPSILON /* == 0.0*/)));
+- assert (offset_fraction <= stops[ix].offset);
+- /* FIXME: These asserts may be broken, it is for now
+- safer to not use them. Should be fixed!
+- See bug #121850
+- assert ((offset_fraction != stops[ix-1].offset) ||
+- (d_offset >= 0.0));
+- assert ((offset_fraction != stops[ix].offset) ||
+- (d_offset <= 0.0));
+- */
+-#else
++
+ if (!( (ix > 0) && (ix < n_stops)
+ && ((stops[ix-1].offset <= offset_fraction + EPSILON) ||
+ ((stops[ix].offset > (1.0 - EPSILON))
+ && (offset_fraction < EPSILON /* == 0.0*/)))
+ && (offset_fraction <= stops[ix].offset)))
+ {
++#ifdef DEBUG_SPEW
+ printf ("art_render_gradient.c:%d: Old assert() failed!\n", __LINE__);
++#endif
+ return;
+ }
+-#endif
+-
++
+ while (width > 0)
+ {
+ #ifdef DEBUG_SPEW
+diff --git a/art_render_gradient.h b/art_render_gradient.h
+index 7e8e0c8..79ed4f8 100644
+--- a/art_render_gradient.h
++++ b/art_render_gradient.h
+@@ -60,9 +60,9 @@ struct _ArtGradientLinear {
+ struct _ArtGradientRadial {
+ double affine[6]; /* transforms user coordinates to unit circle */
+ double fx, fy; /* focal point in unit circle coords */
+- ArtGradientSpread spread;
+ int n_stops;
+ ArtGradientStop *stops;
++ ArtGradientSpread spread;
+ };
+
+ struct _ArtGradientStop {
+diff --git a/art_svp_intersect.c b/art_svp_intersect.c
+index 4ece5f4..69ddd39 100644
+--- a/art_svp_intersect.c
++++ b/art_svp_intersect.c
+@@ -601,7 +601,9 @@ art_svp_intersect_add_horiz (ArtIntersectCtx *ctx, ArtActiveSeg *seg)
+ #ifdef CHEAP_SANITYCHECK
+ if (seg->flags & ART_ACTIVE_FLAGS_IN_HORIZ)
+ {
++#ifdef VERBOSE
+ art_warn ("*** attempt to put segment in horiz list twice\n");
++#endif
+ return;
+ }
+ seg->flags |= ART_ACTIVE_FLAGS_IN_HORIZ;
+--
+1.8.1.5
+
diff --git a/gentoo/media-libs/libart_lgpl/libart_lgpl-2.3.21-r2.ebuild b/gentoo/media-libs/libart_lgpl/libart_lgpl-2.3.21-r2.ebuild
new file mode 100644
index 000000000..a568e11b4
--- /dev/null
+++ b/gentoo/media-libs/libart_lgpl/libart_lgpl-2.3.21-r2.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+GCONF_DEBUG="no"
+GNOME_TARBALL_SUFFIX="bz2"
+
+inherit autotools eutils gnome2
+
+DESCRIPTION="a LGPL version of libart"
+HOMEPAGE="http://www.levien.com/libart"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
+IUSE=""
+
+RDEPEND=""
+DEPEND="virtual/pkgconfig"
+
+# The provided tests are interactive only
+RESTRICT="test"
+
+DOCS="AUTHORS ChangeLog NEWS README"
+
+pkg_setup() {
+ G2CONF="${G2CONF} --disable-static"
+}
+
+src_prepare() {
+ gnome2_src_prepare
+
+ # Fix crosscompiling, bug #185684
+ rm "${S}"/art_config.h
+ # NOTE patch is removed automake should handle it
+
+ # Do not build tests if not required
+ epatch "$FILESDIR/0001-gentoo-do-not-build-tests-if-not-required.patch"
+
+ # apply TDE patches
+ epatch "$FILESDIR/0002-TDE-fix-a-number-of-problems.patch"
+ epatch "$FILESDIR/0003-TDE-Clean-up-debug-spew.patch"
+
+ # apply user-provided patches
+ epatch_user
+
+ AT_NOELIBTOOLIZE=yes eautoreconf
+}
diff --git a/gentoo/media-libs/libart_lgpl/metadata.xml b/gentoo/media-libs/libart_lgpl/metadata.xml
new file mode 100644
index 000000000..7e0f0408d
--- /dev/null
+++ b/gentoo/media-libs/libart_lgpl/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ <description>The maintainer of the package in the overlay, please don't report bugs to the gnome team.</description>
+</maintainer>
+<maintainer type="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+</maintainer>
+<upstream>
+ <bugs-to>https://bugs.trinitydesktop.org/buglist.cgi?quicksearch=ALL</bugs-to>
+</upstream>
+</pkgmetadata>
diff --git a/gentoo/metadata/layout.conf b/gentoo/metadata/layout.conf
new file mode 100644
index 000000000..ca9fee103
--- /dev/null
+++ b/gentoo/metadata/layout.conf
@@ -0,0 +1,2 @@
+masters = gentoo
+thin-manifests = true
diff --git a/gentoo/net-irc/konversation/Manifest b/gentoo/net-irc/konversation/Manifest
new file mode 100644
index 000000000..df67858ae
--- /dev/null
+++ b/gentoo/net-irc/konversation/Manifest
@@ -0,0 +1,2 @@
+AUX konversation-3.5.13.1-initial-cmake.patch 37503 SHA256 069bf79e9163564ac2a13ce9b15e9d04a9d59df6cffae43df8cc2a59e241167f SHA512 50461488d835ebe9ab6ce50e48999b5ac47a5ababe845fb8ee30026965335685c4e90a57a5e3f92927fcad295ceae1923e4a89e170c33881d89d363b0e64b368 WHIRLPOOL 2e89a43fe42e78ddd32149fe42a9456d2c050e7a5cbfe63652d7c9d3b3aa22dbe7499cfe7cae62d60081303699ca4710aa8b18175cb24ace6a4bbf2a1cf8a1e1
+DIST konversation-3.5.13.1.tar.gz 6113646 SHA256 039f40d85356014fd2485532c62e8b8d51721f23ea242999721f53cc9d93ab6d SHA512 39f47283d12c3ba58c5980fc167803048b16018635af5667935b1791c5499373af46b7c21ca2167eb486ce39e9e19e675f3ec29e4badbbd8658091988ab59875 WHIRLPOOL c4c09be3921744d60329b4035aa6467cc34361fc424237e02e69d0eb6ee45792b5922892d97337f6d70f7b1e27df17bb41fa2f94bba119fc7ea05d7cb1f8aa0c
diff --git a/gentoo/net-irc/konversation/files/konversation-3.5.13.1-initial-cmake.patch b/gentoo/net-irc/konversation/files/konversation-3.5.13.1-initial-cmake.patch
new file mode 100644
index 000000000..9e280922e
--- /dev/null
+++ b/gentoo/net-irc/konversation/files/konversation-3.5.13.1-initial-cmake.patch
@@ -0,0 +1,1413 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+new file mode 100644
+index 0000000..4f8da3f
+--- /dev/null
++++ b/CMakeLists.txt
+@@ -0,0 +1,84 @@
++#################################################
++#
++# (C) 2012 Golubev Alexander
++# fatzer2 (AT) gmail.com
++#
++# Improvements and feedback are welcome
++#
++# This file is released under GPL >= 2
++#
++#################################################
++
++cmake_minimum_required( VERSION 2.8 )
++
++
++##### general package setup #####################
++
++project( konversation )
++
++
++##### include essential cmake modules ###########
++
++include( FindPkgConfig )
++include( CheckIncludeFile )
++include( CheckLibraryExists )
++# @Add othere required cmake modules here@
++#
++# EXAMPLE:
++# include( CheckTypeSize )
++# include( CheckCSourceCompiles )
++include( CheckCXXSourceCompiles )
++
++
++##### include our cmake modules #################
++
++set( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" )
++include( TDEMacros )
++
++
++##### setup install paths #######################
++
++include( TDESetupPaths )
++tde_setup_paths( )
++
++
++##### optional stuff ############################
++
++option( WITH_XSCREENSAVER "Enable xscreensaver support" ${WITH_ALL_OPTIONS} )
++# set WITH_XSCREENSAVER to use XScreensaver for auto-away feature
++
++
++##### user requested modules ####################
++
++option( BUILD_ALL "Build all" OFF )
++option( BUILD_KONVERSATION "Build konversation" ${BUILD_ALL} )
++option( BUILD_DOC "Build documentation" ${BUILD_ALL} )
++option( BUILD_TRANSLATIONS "Build translations" ${BUILD_ALL} )
++
++
++##### configure checks ##########################
++
++include( ConfigureChecks.cmake )
++
++
++###### global compiler settings #################
++
++add_definitions(
++ -DHAVE_CONFIG_H
++)
++
++set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" )
++set( CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined" )
++set( CMAKE_MODULE_LINKER_FLAGS "-Wl,--no-undefined" )
++
++
++##### konversation directories ##################
++
++tde_conditional_add_subdirectory( BUILD_KONVERSATION konversation )
++tde_conditional_add_subdirectory( BUILD_DOC doc )
++tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
++
++
++##### write configure files #####################
++
++configure_file( config.h.cmake config.h @ONLY )
+diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
+new file mode 100644
+index 0000000..df74bc5
+--- /dev/null
++++ b/ConfigureChecks.cmake
+@@ -0,0 +1,53 @@
++#################################################
++#
++# (C) 2012 Golubev Alexander
++# fatzer2 (AT) gmail.com
++#
++# Improvements and feedback are welcome
++#
++# This file is released under GPL >= 2
++#
++#################################################
++
++##### check for gcc visibility support #########
++# FIXME
++# This should check for [T]Qt3 visibility support
++
++if( WITH_GCC_VISIBILITY )
++ if( NOT UNIX )
++ tde_message_fatal(FATAL_ERROR "\ngcc visibility support was requested, but your system is not *NIX" )
++ endif( NOT UNIX )
++ set( __KDE_HAVE_GCC_VISIBILITY 1 )
++ set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fvisibility=hidden -fvisibility-inlines-hidden")
++ set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden -fvisibility-inlines-hidden")
++endif( WITH_GCC_VISIBILITY )
++
++
++tde_setup_architecture_flags( )
++
++# XScreenSaver
++if( BUILD_KONVERSATION AND WITH_XSCREENSAVER )
++ pkg_search_module( XSCREENSAVER xscrnsaver )
++ if( XSCREENSAVER_FOUND )
++ set( HAVE_XSCREENSAVER 1 )
++ else( XSCREENSAVER_FOUND )
++ tde_message_fatal( "xscreensaver is requested, but was not found on your system" )
++ endif( )
++endif( BUILD_KONVERSATION AND WITH_XSCREENSAVER )
++
++# gettext
++if( BUILD_TRANSLATIONS )
++ include( FindGettext )
++ if( GETTEXT_FOUND )
++ set( MSGFMT_EXECUTABLE ${GETTEXT_MSGFMT_EXECUTABLE}
++ CACHE FILEPATH "path to msgfmt executable" )
++ endif( GETTEXT_FOUND )
++
++ if( NOT MSGFMT_EXECUTABLE )
++ tde_message_fatal( "msgfmt is required but was not found on your system." )
++ endif( NOT MSGFMT_EXECUTABLE )
++endif( BUILD_TRANSLATIONS )
++
++# required stuff
++find_package( TQt )
++find_package( TDE )
+diff --git a/config.h.cmake b/config.h.cmake
+new file mode 100644
+index 0000000..9fed7f2
+--- /dev/null
++++ b/config.h.cmake
+@@ -0,0 +1,9 @@
++#cmakedefine VERSION "@VERSION@"
++
++#cmakedefine HAVE_XSCREENSAVER
++
++// FIXME: add KONVI_VERSION define
++
++// Sane configuration options for modern KDE
++#define USE_KNOTIFY
++#define USE_INFOLIST
+diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt
+new file mode 100644
+index 0000000..dc6bb77
+--- /dev/null
++++ b/doc/CMakeLists.txt
+@@ -0,0 +1,12 @@
++#################################################
++#
++# (C) 2012 Golubev Alexander
++# fatzer2 (AT) gmail.com
++#
++# Improvements and feedback are welcome
++#
++# This file is released under GPL >= 2
++#
++#################################################
++
++tde_auto_add_subdirectories( )
+diff --git a/doc/da/CMakeLists.txt b/doc/da/CMakeLists.txt
+new file mode 100644
+index 0000000..f4d15d6
+--- /dev/null
++++ b/doc/da/CMakeLists.txt
+@@ -0,0 +1,17 @@
++#################################################
++#
++# (C) 2012 Golubev Alexander
++# fatzer2 (AT) gmail.com
++#
++# Improvements and feedback are welcome
++#
++# This file is released under GPL >= 2
++#
++#################################################
++
++
++tde_create_handbook(
++ DESTINATION konversation
++ LANG da
++)
++
+diff --git a/doc/es/CMakeLists.txt b/doc/es/CMakeLists.txt
+new file mode 100644
+index 0000000..2d0902b
+--- /dev/null
++++ b/doc/es/CMakeLists.txt
+@@ -0,0 +1,10 @@
++#################################################
++#
++# (C) 2012 Golubev Alexander
++# fatzer2 (AT) gmail.com
++#
++# Improvements and feedback are welcome
++#
++# This file is released under GPL >= 2
++#
++#################################################
+diff --git a/doc/et/CMakeLists.txt b/doc/et/CMakeLists.txt
+new file mode 100644
+index 0000000..9089f26
+--- /dev/null
++++ b/doc/et/CMakeLists.txt
+@@ -0,0 +1,17 @@
++#################################################
++#
++# (C) 2012 Golubev Alexander
++# fatzer2 (AT) gmail.com
++#
++# Improvements and feedback are welcome
++#
++# This file is released under GPL >= 2
++#
++#################################################
++
++
++tde_create_handbook(
++ DESTINATION konversation
++ LANG et
++)
++
+diff --git a/doc/it/CMakeLists.txt b/doc/it/CMakeLists.txt
+new file mode 100644
+index 0000000..97d745e
+--- /dev/null
++++ b/doc/it/CMakeLists.txt
+@@ -0,0 +1,17 @@
++#################################################
++#
++# (C) 2012 Golubev Alexander
++# fatzer2 (AT) gmail.com
++#
++# Improvements and feedback are welcome
++#
++# This file is released under GPL >= 2
++#
++#################################################
++
++
++tde_create_handbook(
++ DESTINATION konversation
++ LANG it
++)
++
+diff --git a/doc/konversation/CMakeLists.txt b/doc/konversation/CMakeLists.txt
+new file mode 100644
+index 0000000..f85e562
+--- /dev/null
++++ b/doc/konversation/CMakeLists.txt
+@@ -0,0 +1,14 @@
++#################################################
++#
++# (C) 2012 Golubev Alexander
++# fatzer2 (AT) gmail.com
++#
++# Improvements and feedback are welcome
++#
++# This file is released under GPL >= 2
++#
++#################################################
++
++
++tde_create_handbook( DESTINATION konversation )
++
+diff --git a/doc/pt/CMakeLists.txt b/doc/pt/CMakeLists.txt
+new file mode 100644
+index 0000000..e0dac75
+--- /dev/null
++++ b/doc/pt/CMakeLists.txt
+@@ -0,0 +1,17 @@
++#################################################
++#
++# (C) 2012 Golubev Alexander
++# fatzer2 (AT) gmail.com
++#
++# Improvements and feedback are welcome
++#
++# This file is released under GPL >= 2
++#
++#################################################
++
++
++tde_create_handbook(
++ DESTINATION konversation
++ LANG pt
++)
++
+diff --git a/doc/ru/CMakeLists.txt b/doc/ru/CMakeLists.txt
+new file mode 100644
+index 0000000..f0976ef
+--- /dev/null
++++ b/doc/ru/CMakeLists.txt
+@@ -0,0 +1,17 @@
++#################################################
++#
++# (C) 2012 Golubev Alexander
++# fatzer2 (AT) gmail.com
++#
++# Improvements and feedback are welcome
++#
++# This file is released under GPL >= 2
++#
++#################################################
++
++
++tde_create_handbook(
++ DESTINATION konversation
++ LANG ru
++)
++
+diff --git a/doc/sv/CMakeLists.txt b/doc/sv/CMakeLists.txt
+new file mode 100644
+index 0000000..80cafc9
+--- /dev/null
++++ b/doc/sv/CMakeLists.txt
+@@ -0,0 +1,17 @@
++#################################################
++#
++# (C) 2012 Golubev Alexander
++# fatzer2 (AT) gmail.com
++#
++# Improvements and feedback are welcome
++#
++# This file is released under GPL >= 2
++#
++#################################################
++
++
++tde_create_handbook(
++ DESTINATION konversation
++ LANG sv
++)
++
+diff --git a/konversation/CMakeLists.txt b/konversation/CMakeLists.txt
+new file mode 100644
+index 0000000..fb8a913
+--- /dev/null
++++ b/konversation/CMakeLists.txt
+@@ -0,0 +1,14 @@
++#################################################
++#
++# (C) 2012 Golubev Alexander
++# fatzer2 (AT) gmail.com
++#
++# Improvements and feedback are welcome
++#
++# This file is released under GPL >= 2
++#
++#################################################
++
++add_subdirectory( src )
++add_subdirectory( images )
++add_subdirectory( scripts )
+diff --git a/konversation/images/CMakeLists.txt b/konversation/images/CMakeLists.txt
+new file mode 100644
+index 0000000..be0d6c3
+--- /dev/null
++++ b/konversation/images/CMakeLists.txt
+@@ -0,0 +1,13 @@
++#################################################
++#
++# (C) 2012 Golubev Alexander
++# fatzer2 (AT) gmail.com
++#
++# Improvements and feedback are welcome
++#
++# This file is released under GPL >= 2
++#
++#################################################
++
++add_subdirectory( icons )
++add_subdirectory( nickicons )
+diff --git a/konversation/images/icons/CMakeLists.txt b/konversation/images/icons/CMakeLists.txt
+new file mode 100644
+index 0000000..9a7c073
+--- /dev/null
++++ b/konversation/images/icons/CMakeLists.txt
+@@ -0,0 +1,13 @@
++#################################################
++#
++# (C) 2012 Golubev Alexander
++# fatzer2 (AT) gmail.com
++#
++# Improvements and feedback are welcome
++#
++# This file is released under GPL >= 2
++#
++#################################################
++
++tde_install_icons( )
++
+diff --git a/konversation/images/nickicons/CMakeLists.txt b/konversation/images/nickicons/CMakeLists.txt
+new file mode 100644
+index 0000000..e2ef273
+--- /dev/null
++++ b/konversation/images/nickicons/CMakeLists.txt
+@@ -0,0 +1,18 @@
++#################################################
++#
++# (C) 2012 Golubev Alexander
++# fatzer2 (AT) gmail.com
++#
++# Improvements and feedback are welcome
++#
++# This file is released under GPL >= 2
++#
++#################################################
++
++add_subdirectory( alternative )
++add_subdirectory( christmas )
++add_subdirectory( classic )
++add_subdirectory( default )
++add_subdirectory( smiling )
++add_subdirectory( square )
++add_subdirectory( oxygen )
+diff --git a/konversation/images/nickicons/alternative/CMakeLists.txt b/konversation/images/nickicons/alternative/CMakeLists.txt
+new file mode 100644
+index 0000000..6acb10e
+--- /dev/null
++++ b/konversation/images/nickicons/alternative/CMakeLists.txt
+@@ -0,0 +1,18 @@
++#################################################
++#
++# (C) 2012 Golubev Alexander
++# fatzer2 (AT) gmail.com
++#
++# Improvements and feedback are welcome
++#
++# This file is released under GPL >= 2
++#
++#################################################
++
++install( FILES irc_admin.png irc_away.png
++ irc_halfop.png irc_normal.png irc_op.png
++ irc_owner.png irc_voice.png index.desktop
++ DESTINATION
++ ${DATA_INSTALL_DIR}/konversation/themes/alternative
++)
++
+diff --git a/konversation/images/nickicons/christmas/CMakeLists.txt b/konversation/images/nickicons/christmas/CMakeLists.txt
+new file mode 100644
+index 0000000..98f7eb4
+--- /dev/null
++++ b/konversation/images/nickicons/christmas/CMakeLists.txt
+@@ -0,0 +1,18 @@
++#################################################
++#
++# (C) 2012 Golubev Alexander
++# fatzer2 (AT) gmail.com
++#
++# Improvements and feedback are welcome
++#
++# This file is released under GPL >= 2
++#
++#################################################
++
++install( FILES irc_admin.png irc_away.png
++ irc_halfop.png irc_normal.png irc_op.png
++ irc_owner.png irc_voice.png index.desktop
++ DESTINATION
++ ${DATA_INSTALL_DIR}/konversation/themes/christmas
++)
++
+diff --git a/konversation/images/nickicons/classic/CMakeLists.txt b/konversation/images/nickicons/classic/CMakeLists.txt
+new file mode 100644
+index 0000000..58fddd9
+--- /dev/null
++++ b/konversation/images/nickicons/classic/CMakeLists.txt
+@@ -0,0 +1,18 @@
++#################################################
++#
++# (C) 2012 Golubev Alexander
++# fatzer2 (AT) gmail.com
++#
++# Improvements and feedback are welcome
++#
++# This file is released under GPL >= 2
++#
++#################################################
++
++install( FILES irc_admin.png irc_away.png
++ irc_halfop.png irc_normal.png irc_op.png
++ irc_owner.png irc_voice.png index.desktop
++ DESTINATION
++ ${DATA_INSTALL_DIR}/konversation/themes/classic
++)
++
+diff --git a/konversation/images/nickicons/default/CMakeLists.txt b/konversation/images/nickicons/default/CMakeLists.txt
+new file mode 100644
+index 0000000..4b0be7d
+--- /dev/null
++++ b/konversation/images/nickicons/default/CMakeLists.txt
+@@ -0,0 +1,18 @@
++#################################################
++#
++# (C) 2012 Golubev Alexander
++# fatzer2 (AT) gmail.com
++#
++# Improvements and feedback are welcome
++#
++# This file is released under GPL >= 2
++#
++#################################################
++
++install( FILES irc_admin.png irc_away.png
++ irc_halfop.png irc_normal.png irc_op.png
++ irc_owner.png irc_voice.png index.desktop
++ DESTINATION
++ ${DATA_INSTALL_DIR}/konversation/themes/default
++)
++
+diff --git a/konversation/images/nickicons/oxygen/CMakeLists.txt b/konversation/images/nickicons/oxygen/CMakeLists.txt
+new file mode 100644
+index 0000000..e52cfca
+--- /dev/null
++++ b/konversation/images/nickicons/oxygen/CMakeLists.txt
+@@ -0,0 +1,18 @@
++#################################################
++#
++# (C) 2012 Golubev Alexander
++# fatzer2 (AT) gmail.com
++#
++# Improvements and feedback are welcome
++#
++# This file is released under GPL >= 2
++#
++#################################################
++
++install( FILES irc_admin.png irc_away.png
++ irc_halfop.png irc_normal.png irc_op.png
++ irc_owner.png irc_voice.png index.desktop
++ DESTINATION
++ ${DATA_INSTALL_DIR}/konversation/themes/oxygen
++)
++
+diff --git a/konversation/images/nickicons/smiling/CMakeLists.txt b/konversation/images/nickicons/smiling/CMakeLists.txt
+new file mode 100644
+index 0000000..c82a658
+--- /dev/null
++++ b/konversation/images/nickicons/smiling/CMakeLists.txt
+@@ -0,0 +1,18 @@
++#################################################
++#
++# (C) 2012 Golubev Alexander
++# fatzer2 (AT) gmail.com
++#
++# Improvements and feedback are welcome
++#
++# This file is released under GPL >= 2
++#
++#################################################
++
++install( FILES irc_admin.png irc_away.png
++ irc_halfop.png irc_normal.png irc_op.png
++ irc_owner.png irc_voice.png index.desktop
++ DESTINATION
++ ${DATA_INSTALL_DIR}/konversation/themes/smiling
++)
++
+diff --git a/konversation/images/nickicons/square/CMakeLists.txt b/konversation/images/nickicons/square/CMakeLists.txt
+new file mode 100644
+index 0000000..2ef90be
+--- /dev/null
++++ b/konversation/images/nickicons/square/CMakeLists.txt
+@@ -0,0 +1,18 @@
++#################################################
++#
++# (C) 2012 Golubev Alexander
++# fatzer2 (AT) gmail.com
++#
++# Improvements and feedback are welcome
++#
++# This file is released under GPL >= 2
++#
++#################################################
++
++install( FILES irc_admin.png irc_away.png
++ irc_halfop.png irc_normal.png irc_op.png
++ irc_owner.png irc_voice.png index.desktop
++ DESTINATION
++ ${DATA_INSTALL_DIR}/konversation/themes/square
++)
++
+diff --git a/konversation/scripts/CMakeLists.txt b/konversation/scripts/CMakeLists.txt
+new file mode 100644
+index 0000000..5591cd1
+--- /dev/null
++++ b/konversation/scripts/CMakeLists.txt
+@@ -0,0 +1,16 @@
++#################################################
++#
++# (C) 2012 Golubev Alexander
++# fatzer2 (AT) gmail.com
++#
++# Improvements and feedback are welcome
++#
++# This file is released under GPL >= 2
++#
++#################################################
++
++install( FILES fortunes.dat
++ DESTINATION
++ ${DATA_INSTALL_DIR}/konversation/scripts
++)
++
+diff --git a/konversation/src/CMakeLists.txt b/konversation/src/CMakeLists.txt
+new file mode 100644
+index 0000000..3920e18
+--- /dev/null
++++ b/konversation/src/CMakeLists.txt
+@@ -0,0 +1,113 @@
++#################################################
++#
++# (C) 2012 Golubev Alexander
++# fatzer2 (AT) gmail.com
++#
++# Improvements and feedback are welcome
++#
++# This file is released under GPL >= 2
++#
++#################################################
++
++add_subdirectory( config )
++add_subdirectory( linkaddressbook )
++add_subdirectory( blowfish )
++
++include_directories(
++ ${CMAKE_BINARY_DIR}
++ ${CMAKE_CURRENT_BINARY_DIR}
++ ${CMAKE_CURRENT_BINARY_DIR}/config
++ ${CMAKE_CURRENT_SOURCE_DIR}
++ ${CMAKE_CURRENT_SOURCE_DIR}/config
++ ${CMAKE_CURRENT_SOURCE_DIR}/linkaddressbook
++ ${CMAKE_CURRENT_SOURCE_DIR}/blowfish
++ ${TDE_INCLUDE_DIR}
++ ${TQT_INCLUDE_DIRS}
++)
++
++link_directories(
++ ${TQT_LIBRARY_DIRS}
++)
++
++
++##### konversation (executable) #################
++
++tde_add_executable( konversation AUTOMOC
++ SOURCES konviface.skel konviconfigdialog.cpp konversationstatusbar.cpp
++ konvisettingsdialog.cpp viewcontainer.cpp viewtree.cpp viewtreeitem.cpp
++ konversationmainwindow.cpp valuelistviewitem.cpp urlcatcher.cpp
++ scriptlauncher.cpp rawlog.cpp konvdcop.cpp channellistpanel.cpp
++ konsolepanel.cpp identity.cpp statuspanel.cpp dccrecipientdialog.cpp
++ topiccombobox.cpp nicksonline.cpp dcctransferpanel.cpp
++ dcctransferpanelitem.cpp highlight.cpp highlightviewitem.cpp modebutton.cpp
++ ignore_preferencesui.ui ignore_preferences.cpp ignore.cpp nicklistview.cpp
++ ircinput.cpp channeloptionsui.ui channeloptionsdialog.cpp
++ ignorelistviewitem.cpp images.cpp quickbutton.cpp chatwindow.cpp
++ outputfilter.cpp logfilereader.cpp query.cpp konversationapplication.cpp
++ nick.cpp inputfilter.cpp channel.cpp ircview.cpp server.cpp main.cpp
++ dcc_preferencesui.ui log_preferences.ui tabs_preferencesui.ui
++ tabs_preferences.cpp chatwindowappearance_preferences.ui
++ irccolorchooserui.ui colorsappearance_preferences.ui irccolorchooser.cpp
++ channellistviewitem.cpp osd.cpp trayicon.cpp dccchat.cpp multilineedit.cpp
++ nickinfo.cpp dccresumedialog.cpp konversationsound.cpp
++ quickconnectdialog.cpp serverlistdialog.cpp dcctransfersend.cpp
++ dcctransferrecv.cpp channelnick.cpp insertchardialog.cpp irccharsets.cpp
++ editnotifydialog.cpp common.cpp serverison.cpp sslsocket.cpp
++ servergroupsettings.cpp serversettings.cpp servergroupdialog.cpp
++ ssllabel.cpp serverdialog.cpp channeldialog.cpp identitydialog.cpp
++ topiclabel.cpp notificationhandler.cpp joinchannelui.ui
++ joinchanneldialog.cpp emoticon.cpp chatwindowbehaviour_preferences.ui
++ alias_preferencesui.ui osd_preferencesui.ui theme_preferencesui.ui
++ highlight_preferencesui.ui warnings_preferencesui.ui
++ warnings_preferences.cpp quickbuttons_preferencesui.ui
++ watchednicknames_preferencesui.ui generalbehavior_preferences.ui
++ connectionbehavior_preferences.ui fontappearance_preferences.ui
++ nicklistbehavior_preferencesui.ui konvibookmarkhandler.cpp
++ konvibookmarkmenu.cpp ircviewbox.cpp searchbar.cpp osd_preferences.cpp
++ theme_preferences.cpp dcc_preferences.cpp alias_preferences.cpp
++ highlight_preferences.cpp watchednicknames_preferences.cpp
++ quickbuttons_preferences.cpp nicklistbehavior_preferences.cpp
++ tabnotifications_preferences.ui multilinetextedit.cpp serverlistview.cpp
++ nicksonlineitem.cpp searchbarbase.ui autoreplace_preferencesui.ui
++ autoreplace_preferences.cpp servergroupdialogui.ui dcctransfer.cpp
++ dcctransfermanager.cpp dcctransferdetailedinfopanelui.ui
++ dcctransferdetailedinfopanel.cpp dcccommon.cpp queuetunerbase.ui
++ queuetuner.cpp ircqueue.cpp connectionsettings.cpp connectionmanager.cpp
++ awaymanager.cpp
++ LINK linkaddressbookui-static konversationconfig-static blowfish-static
++ kio-shared kabc-shared kimproxy-shared ${XSCREENSAVER_LIBRARIES}
++ DESTINATION ${BIN_INSTALL_DIR}
++)
++
++
++##### other data ################################
++
++install( FILES konversationui.rc eventsrc
++ DESTINATION ${DATA_INSTALL_DIR}/konversation
++)
++
++install( FILES konversation-0.19-colors.pl
++ konversation-0.19-sortorder.pl
++ konversation-0.19-appearance.pl
++ konversation-0.19-tabplacement.pl
++ konversation-0.19-custombrowser.pl
++ konversation-0.19-colorcodes.pl
++ konversation-0.19-notifylists.pl
++ konversation-0.20-quickbuttons.pl
++ konversation-0.20-customfonts.pl
++ PERMISSIONS WORLD_EXECUTE
++ DESTINATION ${KCONF_UPDATE_INSTALL_DIR}
++)
++
++install( FILES konversation.desktop
++ DESTINATION ${XDG_APPS_INSTALL_DIR}
++)
++
++install( FILES konvirc.protocol konvirc6.protocol
++ DESTINATION ${SERVICES_INSTALL_DIR}
++)
++
++install( FILES konversation.upd
++ DESTINATION ${KCONF_UPDATE_INSTALL_DIR}
++)
++
+diff --git a/konversation/src/blowfish/CMakeLists.txt b/konversation/src/blowfish/CMakeLists.txt
+new file mode 100644
+index 0000000..090fede
+--- /dev/null
++++ b/konversation/src/blowfish/CMakeLists.txt
+@@ -0,0 +1,33 @@
++#################################################
++#
++# (C) 2012 Golubev Alexander
++# fatzer2 (AT) gmail.com
++#
++# Improvements and feedback are welcome
++#
++# This file is released under GPL >= 2
++#
++#################################################
++
++include_directories(
++ ${CMAKE_BINARY_DIR}
++ ${CMAKE_CURRENT_BINARY_DIR}
++ ${CMAKE_CURRENT_SOURCE_DIR}
++ ${CMAKE_SOURCE_DIR}/konversation/src
++ ${TDE_INCLUDE_DIR}
++ ${TQT_INCLUDE_DIRS}
++)
++
++link_directories(
++ ${TQT_LIBRARY_DIRS}
++)
++
++
++##### blowfish (static) #########################
++
++tde_add_library( blowfish STATIC_PIC AUTOMOC
++ SOURCES b64stuff.cpp BlowfishCbc.cpp
++ blowfish.cpp mc_blowfish.cpp newblowfish.cpp
++ oldblowfish.cpp
++)
++
+diff --git a/konversation/src/config/CMakeLists.txt b/konversation/src/config/CMakeLists.txt
+new file mode 100644
+index 0000000..60ac82a
+--- /dev/null
++++ b/konversation/src/config/CMakeLists.txt
+@@ -0,0 +1,38 @@
++#################################################
++#
++# (C) 2012 Golubev Alexander
++# fatzer2 (AT) gmail.com
++#
++# Improvements and feedback are welcome
++#
++# This file is released under GPL >= 2
++#
++#################################################
++
++include_directories(
++ ${CMAKE_BINARY_DIR}
++ ${CMAKE_SOURCE_DIR}/konversation/src
++ ${CMAKE_CURRENT_BINARY_DIR}
++ ${CMAKE_CURRENT_SOURCE_DIR}
++ ${TDE_INCLUDE_DIR}
++ ${TQT_INCLUDE_DIRS}
++)
++
++link_directories(
++ ${TQT_LIBRARY_DIRS}
++)
++
++
++##### konversationconfig (static) ###############
++
++tde_add_library( konversationconfig STATIC_PIC AUTOMOC
++ SOURCES preferences_base.kcfgc preferences.cpp
++)
++
++
++##### other data ################################
++
++install( FILES konversation.kcfg
++ DESTINATION ${KCFG_INSTALL_DIR}
++)
++
+diff --git a/konversation/src/konviconfigdialog.cpp b/konversation/src/konviconfigdialog.cpp
+index 2e5050f..95701ba 100644
+--- a/konversation/src/konviconfigdialog.cpp
++++ b/konversation/src/konviconfigdialog.cpp
+@@ -282,3 +282,4 @@ void KonviConfigDialog::updateWidgetsDefault()
+ {
+ }
+
++#include "konviconfigdialog.moc"
+diff --git a/konversation/src/linkaddressbook/CMakeLists.txt b/konversation/src/linkaddressbook/CMakeLists.txt
+new file mode 100644
+index 0000000..92de297
+--- /dev/null
++++ b/konversation/src/linkaddressbook/CMakeLists.txt
+@@ -0,0 +1,37 @@
++#################################################
++#
++# (C) 2012 Golubev Alexander
++# fatzer2 (AT) gmail.com
++#
++# Improvements and feedback are welcome
++#
++# This file is released under GPL >= 2
++#
++#################################################
++
++include_directories(
++ ${CMAKE_BINARY_DIR}
++ ${CMAKE_CURRENT_BINARY_DIR}
++ ${CMAKE_CURRENT_SOURCE_DIR}
++ ${CMAKE_SOURCE_DIR}/konversation/src
++ ${CMAKE_SOURCE_DIR}/konversation/src/config
++ ${CMAKE_BINARY_DIR}/konversation/src/config
++ ${TDE_INCLUDE_DIR}
++ ${TQT_INCLUDE_DIRS}
++)
++
++link_directories(
++ ${TQT_LIBRARY_DIRS}
++)
++
++
++##### linkaddressbookui (static) ################
++
++tde_add_library( linkaddressbookui STATIC_PIC AUTOMOC
++ SOURCES linkaddressbookui_base.ui
++ linkaddressbookui.cpp addressbook_base.cpp
++ addressbook.cpp nicklisttooltip.cpp
++ nicksonlinetooltip.cpp kimiface.skel
++ addresseeitem.cpp
++)
++
+diff --git a/po/CMakeLists.txt b/po/CMakeLists.txt
+new file mode 100644
+index 0000000..dc6bb77
+--- /dev/null
++++ b/po/CMakeLists.txt
+@@ -0,0 +1,12 @@
++#################################################
++#
++# (C) 2012 Golubev Alexander
++# fatzer2 (AT) gmail.com
++#
++# Improvements and feedback are welcome
++#
++# This file is released under GPL >= 2
++#
++#################################################
++
++tde_auto_add_subdirectories( )
+diff --git a/po/ar/CMakeLists.txt b/po/ar/CMakeLists.txt
+new file mode 100644
+index 0000000..fd44998
+--- /dev/null
++++ b/po/ar/CMakeLists.txt
+@@ -0,0 +1,13 @@
++#################################################
++#
++# (C) 2012 Golubev Alexander
++# fatzer2 (AT) gmail.com
++#
++# Improvements and feedback are welcome
++#
++# This file is released under GPL >= 2
++#
++#################################################
++
++tde_create_translation( LANG ar )
++
+diff --git a/po/bg/CMakeLists.txt b/po/bg/CMakeLists.txt
+new file mode 100644
+index 0000000..e197abe
+--- /dev/null
++++ b/po/bg/CMakeLists.txt
+@@ -0,0 +1,13 @@
++#################################################
++#
++# (C) 2012 Golubev Alexander
++# fatzer2 (AT) gmail.com
++#
++# Improvements and feedback are welcome
++#
++# This file is released under GPL >= 2
++#
++#################################################
++
++tde_create_translation( LANG bg )
++
+diff --git a/po/ca/CMakeLists.txt b/po/ca/CMakeLists.txt
+new file mode 100644
+index 0000000..319d43d
+--- /dev/null
++++ b/po/ca/CMakeLists.txt
+@@ -0,0 +1,13 @@
++#################################################
++#
++# (C) 2012 Golubev Alexander
++# fatzer2 (AT) gmail.com
++#
++# Improvements and feedback are welcome
++#
++# This file is released under GPL >= 2
++#
++#################################################
++
++tde_create_translation( LANG ca )
++
+diff --git a/po/da/CMakeLists.txt b/po/da/CMakeLists.txt
+new file mode 100644
+index 0000000..bf44b3c
+--- /dev/null
++++ b/po/da/CMakeLists.txt
+@@ -0,0 +1,13 @@
++#################################################
++#
++# (C) 2012 Golubev Alexander
++# fatzer2 (AT) gmail.com
++#
++# Improvements and feedback are welcome
++#
++# This file is released under GPL >= 2
++#
++#################################################
++
++tde_create_translation( LANG da )
++
+diff --git a/po/de/CMakeLists.txt b/po/de/CMakeLists.txt
+new file mode 100644
+index 0000000..ab9efc7
+--- /dev/null
++++ b/po/de/CMakeLists.txt
+@@ -0,0 +1,13 @@
++#################################################
++#
++# (C) 2012 Golubev Alexander
++# fatzer2 (AT) gmail.com
++#
++# Improvements and feedback are welcome
++#
++# This file is released under GPL >= 2
++#
++#################################################
++
++tde_create_translation( LANG de )
++
+diff --git a/po/el/CMakeLists.txt b/po/el/CMakeLists.txt
+new file mode 100644
+index 0000000..029e5ef
+--- /dev/null
++++ b/po/el/CMakeLists.txt
+@@ -0,0 +1,13 @@
++#################################################
++#
++# (C) 2012 Golubev Alexander
++# fatzer2 (AT) gmail.com
++#
++# Improvements and feedback are welcome
++#
++# This file is released under GPL >= 2
++#
++#################################################
++
++tde_create_translation( LANG el )
++
+diff --git a/po/en_GB/CMakeLists.txt b/po/en_GB/CMakeLists.txt
+new file mode 100644
+index 0000000..a97c853
+--- /dev/null
++++ b/po/en_GB/CMakeLists.txt
+@@ -0,0 +1,13 @@
++#################################################
++#
++# (C) 2012 Golubev Alexander
++# fatzer2 (AT) gmail.com
++#
++# Improvements and feedback are welcome
++#
++# This file is released under GPL >= 2
++#
++#################################################
++
++tde_create_translation( LANG en_GB )
++
+diff --git a/po/es/CMakeLists.txt b/po/es/CMakeLists.txt
+new file mode 100644
+index 0000000..274684f
+--- /dev/null
++++ b/po/es/CMakeLists.txt
+@@ -0,0 +1,13 @@
++#################################################
++#
++# (C) 2012 Golubev Alexander
++# fatzer2 (AT) gmail.com
++#
++# Improvements and feedback are welcome
++#
++# This file is released under GPL >= 2
++#
++#################################################
++
++tde_create_translation( LANG es )
++
+diff --git a/po/et/CMakeLists.txt b/po/et/CMakeLists.txt
+new file mode 100644
+index 0000000..eee279e
+--- /dev/null
++++ b/po/et/CMakeLists.txt
+@@ -0,0 +1,13 @@
++#################################################
++#
++# (C) 2012 Golubev Alexander
++# fatzer2 (AT) gmail.com
++#
++# Improvements and feedback are welcome
++#
++# This file is released under GPL >= 2
++#
++#################################################
++
++tde_create_translation( LANG et )
++
+diff --git a/po/fi/CMakeLists.txt b/po/fi/CMakeLists.txt
+new file mode 100644
+index 0000000..a02ad60
+--- /dev/null
++++ b/po/fi/CMakeLists.txt
+@@ -0,0 +1,13 @@
++#################################################
++#
++# (C) 2012 Golubev Alexander
++# fatzer2 (AT) gmail.com
++#
++# Improvements and feedback are welcome
++#
++# This file is released under GPL >= 2
++#
++#################################################
++
++tde_create_translation( LANG fi )
++
+diff --git a/po/fr/CMakeLists.txt b/po/fr/CMakeLists.txt
+new file mode 100644
+index 0000000..8adcfdf
+--- /dev/null
++++ b/po/fr/CMakeLists.txt
+@@ -0,0 +1,13 @@
++#################################################
++#
++# (C) 2012 Golubev Alexander
++# fatzer2 (AT) gmail.com
++#
++# Improvements and feedback are welcome
++#
++# This file is released under GPL >= 2
++#
++#################################################
++
++tde_create_translation( LANG fr )
++
+diff --git a/po/gl/CMakeLists.txt b/po/gl/CMakeLists.txt
+new file mode 100644
+index 0000000..79b4a9e
+--- /dev/null
++++ b/po/gl/CMakeLists.txt
+@@ -0,0 +1,13 @@
++#################################################
++#
++# (C) 2012 Golubev Alexander
++# fatzer2 (AT) gmail.com
++#
++# Improvements and feedback are welcome
++#
++# This file is released under GPL >= 2
++#
++#################################################
++
++tde_create_translation( LANG gl )
++
+diff --git a/po/he/CMakeLists.txt b/po/he/CMakeLists.txt
+new file mode 100644
+index 0000000..c18caa3
+--- /dev/null
++++ b/po/he/CMakeLists.txt
+@@ -0,0 +1,13 @@
++#################################################
++#
++# (C) 2012 Golubev Alexander
++# fatzer2 (AT) gmail.com
++#
++# Improvements and feedback are welcome
++#
++# This file is released under GPL >= 2
++#
++#################################################
++
++tde_create_translation( LANG he )
++
+diff --git a/po/hu/CMakeLists.txt b/po/hu/CMakeLists.txt
+new file mode 100644
+index 0000000..983f91c
+--- /dev/null
++++ b/po/hu/CMakeLists.txt
+@@ -0,0 +1,13 @@
++#################################################
++#
++# (C) 2012 Golubev Alexander
++# fatzer2 (AT) gmail.com
++#
++# Improvements and feedback are welcome
++#
++# This file is released under GPL >= 2
++#
++#################################################
++
++tde_create_translation( LANG hu )
++
+diff --git a/po/it/CMakeLists.txt b/po/it/CMakeLists.txt
+new file mode 100644
+index 0000000..e0d701d
+--- /dev/null
++++ b/po/it/CMakeLists.txt
+@@ -0,0 +1,13 @@
++#################################################
++#
++# (C) 2012 Golubev Alexander
++# fatzer2 (AT) gmail.com
++#
++# Improvements and feedback are welcome
++#
++# This file is released under GPL >= 2
++#
++#################################################
++
++tde_create_translation( LANG it )
++
+diff --git a/po/ja/CMakeLists.txt b/po/ja/CMakeLists.txt
+new file mode 100644
+index 0000000..83f254a
+--- /dev/null
++++ b/po/ja/CMakeLists.txt
+@@ -0,0 +1,13 @@
++#################################################
++#
++# (C) 2012 Golubev Alexander
++# fatzer2 (AT) gmail.com
++#
++# Improvements and feedback are welcome
++#
++# This file is released under GPL >= 2
++#
++#################################################
++
++tde_create_translation( LANG ja )
++
+diff --git a/po/ka/CMakeLists.txt b/po/ka/CMakeLists.txt
+new file mode 100644
+index 0000000..b0407b8
+--- /dev/null
++++ b/po/ka/CMakeLists.txt
+@@ -0,0 +1,13 @@
++#################################################
++#
++# (C) 2012 Golubev Alexander
++# fatzer2 (AT) gmail.com
++#
++# Improvements and feedback are welcome
++#
++# This file is released under GPL >= 2
++#
++#################################################
++
++tde_create_translation( LANG ka )
++
+diff --git a/po/ko/CMakeLists.txt b/po/ko/CMakeLists.txt
+new file mode 100644
+index 0000000..171a528
+--- /dev/null
++++ b/po/ko/CMakeLists.txt
+@@ -0,0 +1,13 @@
++#################################################
++#
++# (C) 2012 Golubev Alexander
++# fatzer2 (AT) gmail.com
++#
++# Improvements and feedback are welcome
++#
++# This file is released under GPL >= 2
++#
++#################################################
++
++tde_create_translation( LANG ko )
++
+diff --git a/po/pa/CMakeLists.txt b/po/pa/CMakeLists.txt
+new file mode 100644
+index 0000000..4245166
+--- /dev/null
++++ b/po/pa/CMakeLists.txt
+@@ -0,0 +1,13 @@
++#################################################
++#
++# (C) 2012 Golubev Alexander
++# fatzer2 (AT) gmail.com
++#
++# Improvements and feedback are welcome
++#
++# This file is released under GPL >= 2
++#
++#################################################
++
++tde_create_translation( LANG pa )
++
+diff --git a/po/pt/CMakeLists.txt b/po/pt/CMakeLists.txt
+new file mode 100644
+index 0000000..93916be
+--- /dev/null
++++ b/po/pt/CMakeLists.txt
+@@ -0,0 +1,13 @@
++#################################################
++#
++# (C) 2012 Golubev Alexander
++# fatzer2 (AT) gmail.com
++#
++# Improvements and feedback are welcome
++#
++# This file is released under GPL >= 2
++#
++#################################################
++
++tde_create_translation( LANG pt )
++
+diff --git a/po/ru/CMakeLists.txt b/po/ru/CMakeLists.txt
+new file mode 100644
+index 0000000..62b3622
+--- /dev/null
++++ b/po/ru/CMakeLists.txt
+@@ -0,0 +1,13 @@
++#################################################
++#
++# (C) 2012 Golubev Alexander
++# fatzer2 (AT) gmail.com
++#
++# Improvements and feedback are welcome
++#
++# This file is released under GPL >= 2
++#
++#################################################
++
++tde_create_translation( LANG ru )
++
+diff --git a/po/sr/CMakeLists.txt b/po/sr/CMakeLists.txt
+new file mode 100644
+index 0000000..be06fcb
+--- /dev/null
++++ b/po/sr/CMakeLists.txt
+@@ -0,0 +1,13 @@
++#################################################
++#
++# (C) 2012 Golubev Alexander
++# fatzer2 (AT) gmail.com
++#
++# Improvements and feedback are welcome
++#
++# This file is released under GPL >= 2
++#
++#################################################
++
++tde_create_translation( LANG sr )
++
+diff --git a/po/sr@Latn/CMakeLists.txt b/po/sr@Latn/CMakeLists.txt
+new file mode 100644
+index 0000000..5768b19
+--- /dev/null
++++ b/po/sr@Latn/CMakeLists.txt
+@@ -0,0 +1,13 @@
++#################################################
++#
++# (C) 2012 Golubev Alexander
++# fatzer2 (AT) gmail.com
++#
++# Improvements and feedback are welcome
++#
++# This file is released under GPL >= 2
++#
++#################################################
++
++tde_create_translation( LANG sr@Latn )
++
+diff --git a/po/sv/CMakeLists.txt b/po/sv/CMakeLists.txt
+new file mode 100644
+index 0000000..2451444
+--- /dev/null
++++ b/po/sv/CMakeLists.txt
+@@ -0,0 +1,13 @@
++#################################################
++#
++# (C) 2012 Golubev Alexander
++# fatzer2 (AT) gmail.com
++#
++# Improvements and feedback are welcome
++#
++# This file is released under GPL >= 2
++#
++#################################################
++
++tde_create_translation( LANG sv )
++
+diff --git a/po/tr/CMakeLists.txt b/po/tr/CMakeLists.txt
+new file mode 100644
+index 0000000..2fe7323
+--- /dev/null
++++ b/po/tr/CMakeLists.txt
+@@ -0,0 +1,13 @@
++#################################################
++#
++# (C) 2012 Golubev Alexander
++# fatzer2 (AT) gmail.com
++#
++# Improvements and feedback are welcome
++#
++# This file is released under GPL >= 2
++#
++#################################################
++
++tde_create_translation( LANG tr )
++
+diff --git a/po/zh_CN/CMakeLists.txt b/po/zh_CN/CMakeLists.txt
+new file mode 100644
+index 0000000..49d25fd
+--- /dev/null
++++ b/po/zh_CN/CMakeLists.txt
+@@ -0,0 +1,13 @@
++#################################################
++#
++# (C) 2012 Golubev Alexander
++# fatzer2 (AT) gmail.com
++#
++# Improvements and feedback are welcome
++#
++# This file is released under GPL >= 2
++#
++#################################################
++
++tde_create_translation( LANG zh_CN )
++
+diff --git a/po/zh_TW/CMakeLists.txt b/po/zh_TW/CMakeLists.txt
+new file mode 100644
+index 0000000..98f2a40
+--- /dev/null
++++ b/po/zh_TW/CMakeLists.txt
+@@ -0,0 +1,13 @@
++#################################################
++#
++# (C) 2012 Golubev Alexander
++# fatzer2 (AT) gmail.com
++#
++# Improvements and feedback are welcome
++#
++# This file is released under GPL >= 2
++#
++#################################################
++
++tde_create_translation( LANG zh_TW )
++
diff --git a/gentoo/net-irc/konversation/konversation-1.1.13-r1.ebuild b/gentoo/net-irc/konversation/konversation-1.1.13-r1.ebuild
new file mode 100644
index 000000000..da9f3efc3
--- /dev/null
+++ b/gentoo/net-irc/konversation/konversation-1.1.13-r1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_TYPE="applications"
+TRINITY_MODULE_VER="3.5.13.1"
+
+TRINITY_EXTRAGEAR_PACKAGING="yes"
+TRINITY_HANDBOOK="optional"
+TRINITY_LANGS="ar bg ca da de el en_GB es et fi fr gl he hu it ja ka ko pa pt ru sr sr@Latn sv tr zh_CN zh_TW"
+TRINITY_DOC_LANGS="da es et it pt ru sv"
+
+inherit trinity-base
+
+DESCRIPTION="A user friendly IRC Client for Trinity"
+HOMEPAGE="http://trinitydesktop.org/"
+LICENSE="GPL-2 LGPL-2"
+KEYWORDS="amd64 x86"
+
+need-trinity 3.5.13
+
+SLOT="${TRINITY_VER}"
+IUSE="xscreensaver"
+
+DEPEND="xscreensaver? ( x11-libs/libXScrnSaver )"
+RDEPEND="$DEPEND"
+
+PATCHES=( "${FILESDIR}/${PN}-${TRINITY_MODULE_VER}-initial-cmake.patch" )
+
+src_configure() {
+ mycmakeargs=(
+ $(cmake-utils_use_with xscreensaver XSCREENSAVER)
+ )
+
+ trinity-base_src_configure
+}
diff --git a/gentoo/net-irc/konversation/konversation-1.1.9999.ebuild b/gentoo/net-irc/konversation/konversation-1.1.9999.ebuild
new file mode 100644
index 000000000..c9f07147b
--- /dev/null
+++ b/gentoo/net-irc/konversation/konversation-1.1.9999.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_TYPE="applications"
+
+TRINITY_EXTRAGEAR_PACKAGING="yes"
+TRINITY_HANDBOOK="optional"
+TRINITY_LANGS="ar bg ca da de el en_GB es et fi fr gl he hu it ja ka ko pa pt ru sr sr@Latn sv tr zh_CN zh_TW"
+TRINITY_DOC_LANGS="da es et it pt ru sv"
+
+inherit trinity-base
+
+DESCRIPTION="A user friendly IRC Client for Trinity"
+HOMEPAGE="http://trinitydesktop.org/"
+LICENSE="GPL-2 LGPL-2"
+KEYWORDS="amd64 x86"
+
+need-trinity 14.0.0
+
+SLOT="${TRINITY_VER}"
+IUSE="xscreensaver"
+
+DEPEND="xscreensaver? ( x11-libs/libXScrnSaver )"
+RDEPEND="$DEPEND"
+
+src_configure() {
+ mycmakeargs=(
+ $(cmake-utils_use_with xscreensaver XSCREENSAVER)
+ )
+
+ trinity-base_src_configure
+}
diff --git a/gentoo/net-irc/konversation/metadata.xml b/gentoo/net-irc/konversation/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/net-irc/konversation/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/profiles/categories b/gentoo/profiles/categories
new file mode 100644
index 000000000..9be965945
--- /dev/null
+++ b/gentoo/profiles/categories
@@ -0,0 +1,2 @@
+trinity-apps
+trinity-base
diff --git a/gentoo/profiles/package.mask b/gentoo/profiles/package.mask
new file mode 100644
index 000000000..b54776256
--- /dev/null
+++ b/gentoo/profiles/package.mask
@@ -0,0 +1,12 @@
+# an issue with kviewshell-static library in trinity-base/kviewshell;
+# making it shared solves the problem
+# or may be we should just install it ?
+=trinity-base/kdvi-3.5.13.1
+=trinity-base/kfax-3.5.13.1
+
+# masked due masked dependencies
+=trinity-base/kdegraphics-meta-3.5.13.1
+
+# 2017-01-08
+# mask due to missing dependency: trinity-base/noatun
+trinity-base/noatun-plugins
diff --git a/gentoo/profiles/package.unmask b/gentoo/profiles/package.unmask
new file mode 100644
index 000000000..9eceba145
--- /dev/null
+++ b/gentoo/profiles/package.unmask
@@ -0,0 +1,2 @@
+sys-apps/hal
+sys-apps/policycoreutils
diff --git a/gentoo/profiles/package.use.force b/gentoo/profiles/package.use.force
new file mode 100644
index 000000000..e02679f25
--- /dev/null
+++ b/gentoo/profiles/package.use.force
@@ -0,0 +1,2 @@
+#kdm currently doesn't attempt to login without pam support
+kde-base/kdm pam
diff --git a/gentoo/profiles/package.use.mask b/gentoo/profiles/package.use.mask
new file mode 100644
index 000000000..dad9a5091
--- /dev/null
+++ b/gentoo/profiles/package.use.mask
@@ -0,0 +1,12 @@
+# unmask this if we will support powerpc
+trinity-base/kmilo powerbook-laptop
+
+dev-qt/tqtinterface qt4
+trinity-base/kdelibs avahi
+trinity-base/tdelibs avahi
+
+#doesn't really work
+>dev-qt/tqtinterface-14.0.0 qt3
+
+# FIXME: FTBFS
+=trinity-base/ksmserver-9999 hal
diff --git a/gentoo/profiles/repo_name b/gentoo/profiles/repo_name
new file mode 100644
index 000000000..baca3ee9b
--- /dev/null
+++ b/gentoo/profiles/repo_name
@@ -0,0 +1 @@
+trinity
diff --git a/gentoo/profiles/use.desc b/gentoo/profiles/use.desc
new file mode 100644
index 000000000..652ce9925
--- /dev/null
+++ b/gentoo/profiles/use.desc
@@ -0,0 +1,6 @@
+arts - Adds support for aRts: the Trinity sound daemon
+esd - Adds support for media-sound/esound (Enlightened Sound Daemon)
+hal - Enable Hardware Abstraction Layer (HAL) support
+upower - Adds support for sys-power/upower
+qt3 - Adds support for the Qt GUI/Application Toolkit version 3.x
+xrandr - Add support for xrandr
diff --git a/gentoo/profiles/use.local.desc b/gentoo/profiles/use.local.desc
new file mode 100644
index 000000000..93c473221
--- /dev/null
+++ b/gentoo/profiles/use.local.desc
@@ -0,0 +1,3 @@
+sys-apps/hal:dell - FIXME <unknown>
+sys-apps/hal:disk-partition - FIXME <unknown>
+sys-apps/hal:laptop - FIXME <unknown>
diff --git a/gentoo/sys-apps/hal/Manifest b/gentoo/sys-apps/hal/Manifest
new file mode 100644
index 000000000..dd756fdcc
--- /dev/null
+++ b/gentoo/sys-apps/hal/Manifest
@@ -0,0 +1,7 @@
+AUX 0.5.14-hald.conf 119 SHA256 b19e6df9c78b6f813405a7cbff20e049714db1a000e6b71ab2eca02d372d58af SHA512 6cdb3d06175a94537047e7fe6c1652496a2960344601b8741a33385903cf551cec272f59a958bf27ba879817575b1e2d0610f631ec70dcee8506973f259d2878 WHIRLPOOL 492a5852dd69d5faf11f4c85ff7b8e2c0271a42d8d786a945d918d0a13d0f60c24b12a5548493574d970114e2d88f926df9f6410c4323e783dbe75b373a1f959
+AUX 0.5.14-hald.rc.1 1121 SHA256 77303218b30e39c4f14ab06245d3e9a0ed272d98d5a143c3b6c05b73daed94ab SHA512 2d1f6e72d15e1c87dc7994a01f9d1caa6182218719c33e56858e3395c3db025c8fedada8380ecda7b9071cc36e90efa933b23d88b5e3e3feddd7b5d9de71f066 WHIRLPOOL 45e9c706eef47b5a89c8fbc518ebc447dbf9b697f0b685ec638bec047349ccc6236e8accb1274bb7f7bd75f39516e5ada02ecac03a6de189b525388a36164e3c
+AUX hal-0.5.14-fix-glib-includes-in-addons.patch 4499 SHA256 54a96c9628d0a22a5b43b9a939ec7a08dd17a497e60d4626f398c92b8cac7e0e SHA512 080389d36f87ca400ed93c83a678d74bad7fbb0fe5638a2c8ff5cd6ea7f922f1aa1dab03e7e18223eff0c80fc3a06ac0e1009183e39b85b2a05bb52593da7c41 WHIRLPOOL 8aaa90adc4790be12f79814e9a07799cb0915630ebd4aa67b61704e596a2baa083dd15c6dc4226ed23ea1a46921242c6e4079d5cded8d4992a1d17d876f2a266
+AUX hal-0.5.14-fix-gtk-doc-automake.patch 399 SHA256 9936cb0d3c29cc7401e6592b40f62961e84050d641e4dd66c8cc1e4cf7ea6371 SHA512 ef44b8968acee09e98ecb74779738d8824c4b951549aa4ab04161dacf60f7f6e1e417b13e89fabe0d29a5d0b72d4a144cddc7c7a795b628353d58d08410bbf06 WHIRLPOOL bc76f7ae2754a8fb352053a97ec0360d63b113db0b02cc9f0e445b7c7e0246e0dfa38b01d56f6bd56fe191e7fbdda218247e08b9c59ffca715d6ef2bb87960d1
+AUX hal-0.5.14-gentoo-patches-5.tar.bz2 6494 SHA256 5919bf1e3e5ff8b3682b8163e8b9cd86269263f9d023783d0c13dc759b36849c SHA512 501a005e27d57cfb289495d09e8b060e69546e5c78b53da8c86b79a964ec7ba172d044501239fadf683f6d11749e93527008726d739db5d4eabdebead6d3a96d WHIRLPOOL 80093db135d4ec03b58dd2c9110e30bdcb5545179d66c3b5e94efc87b8df5979f4b8d477e84bf94eeeed3bbc4affc0a91a4c4740f2ffc0d7ae3d03a177747ce3
+AUX hal-unmount.dev 397 SHA256 747a4c483f8a558f2c75666e9547e539475f112363f1dbfc6ea19ca393c8e89b SHA512 6a340f19ba3f915281597e18c32555db3e1f12128b51fad4136f6077795d66595ef0689f0d07e26a7ce6ae39c68e37a092622eab918b657f9c9ada27af9184cf WHIRLPOOL 8c096c5864ea18953ed60febaa3af4fe8621ff4c7ba0d30612467b15ba9688607d82da5044aff372b05424015c729f38970c0767e5c9a97c9d60be42ad2a1bc4
+DIST hal-0.5.14.tar.bz2 942954 SHA256 c4c5ecc5d50d5d9c061dc06c405461b1f71c12f2c60ed062350b2e6db2f1c51e SHA512 fe34e0dd0a630b943ea1ce2a2af71260309144fb76ae0f482c475610f0347f403f2a3bac81d27a95868bf640fca78e6e8de0051e8e1a3f39ff6804232ecc333c WHIRLPOOL b5231dde8331a9986f3f44c454e1b953a6039c7675306c92647c8aff5fa3181229f6c2198ffa3dd577cceace03aeb0613dabe5456091566542a1f4c41f95a24c
diff --git a/gentoo/sys-apps/hal/Reasons b/gentoo/sys-apps/hal/Reasons
new file mode 100644
index 000000000..ab7531491
--- /dev/null
+++ b/gentoo/sys-apps/hal/Reasons
@@ -0,0 +1,16 @@
+sys-apps/hal
+
+Ebuild originally added Dec 7, 2006
+Added by Fabio Erculiani <lxnay@sabayonlinux.org>
+
+Ebuild added to fix/add the following issues:
+Enable plugdev support
+NTFS-3G support
+Fix HAL mount when extra options specified
+Fix Gentoo bug #299483
+
+======
+02.08.08 - Wael Nasreddine <wael.nasreddine@sabayonlinux.org>
+ - depend on >=app-misc/hal-info-20080310 instead of
+ =app-misc/hal-info-20080310 because gentoo has marked
+ app-misc/hal-info-20080508 stable.
diff --git a/gentoo/sys-apps/hal/files/0.5.14-hald.conf b/gentoo/sys-apps/hal/files/0.5.14-hald.conf
new file mode 100644
index 000000000..941005a4b
--- /dev/null
+++ b/gentoo/sys-apps/hal/files/0.5.14-hald.conf
@@ -0,0 +1,6 @@
+# /etc/conf.d/hald
+
+# Should HAL be verbose to syslog? Useful for debugging
+HALD_VERBOSE="no"
+
+# vim: ft=gentoo-conf-d
diff --git a/gentoo/sys-apps/hal/files/0.5.14-hald.rc.1 b/gentoo/sys-apps/hal/files/0.5.14-hald.rc.1
new file mode 100644
index 000000000..2bd99fed9
--- /dev/null
+++ b/gentoo/sys-apps/hal/files/0.5.14-hald.rc.1
@@ -0,0 +1,39 @@
+#!/sbin/runscript
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License, v2 or later
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/hal/files/Attic/0.5.14-hald.rc.1,v 1.2 2011/09/18 09:08:28 ssuominen dead $
+
+depend() {
+ use logger acpid
+ need dbus
+ after coldplug dns nscd
+}
+
+start() {
+ [ -z "${HALD_VERBOSE}" ] && HALD_VERBOSE="no"
+ ebegin "Starting Hardware Abstraction Layer daemon"
+
+# REAL_ROOT=`mount -fv / | cut -d' ' -f1`
+# TEST_ROOT=`cat /proc/mounts | cut -d' ' -f1 | head -n 2 | tail -n 1`
+
+# if [ ! -e ${TEST_ROOT} ]; then
+# echo "You need a ${TEST_ROOT} that points to your ${REAL_ROOT}"
+# echo "See http://bugs.gentoo.org/show_bug.cgi?id=175243"
+# echo "Quick fix is: ln -s ${REAL_ROOT} ${TEST_ROOT}"
+# eend 2
+# fi
+
+ if [ -f /proc/acpi/event ]; then
+ chgrp haldaemon /proc/acpi/event
+ chmod 440 /proc/acpi/event
+ fi
+
+ start-stop-daemon --start -q --exec /usr/sbin/hald -- --use-syslog --verbose=${HALD_VERBOSE}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping Hardware Abstraction Layer daemon"
+ start-stop-daemon --stop -q --pidfile /var/run/hald.pid
+ eend $?
+}
diff --git a/gentoo/sys-apps/hal/files/hal-0.5.14-fix-glib-includes-in-addons.patch b/gentoo/sys-apps/hal/files/hal-0.5.14-fix-glib-includes-in-addons.patch
new file mode 100644
index 000000000..7d797188a
--- /dev/null
+++ b/gentoo/sys-apps/hal/files/hal-0.5.14-fix-glib-includes-in-addons.patch
@@ -0,0 +1,143 @@
+--- ./hald/linux/addons/addon-acpi-buttons-toshiba.c.orig 2009-08-24 16:42:30.000000000 +0400
++++ ./hald/linux/addons/addon-acpi-buttons-toshiba.c 2012-11-29 04:47:18.000000000 +0300
+@@ -40,7 +40,7 @@
+ #include <string.h>
+ #include <unistd.h>
+
+-#include <glib/gmain.h>
++#include <glib.h>
+
+ #include "libhal/libhal.h"
+ #include "../../logger.h"
+--- ./hald/linux/addons/addon-storage.c.orig 2009-08-24 16:42:30.000000000 +0400
++++ ./hald/linux/addons/addon-storage.c 2012-11-29 04:47:52.000000000 +0300
+@@ -39,7 +39,7 @@
+ #include <string.h>
+ #include <sys/ioctl.h>
+ #include <unistd.h>
+-#include <glib/gmain.h>
++#include <glib.h>
+ #include <dbus/dbus-glib.h>
+ #include <dbus/dbus-glib-lowlevel.h>
+
+--- ./hald/linux/addons/addon-dell-backlight.cpp.orig 2009-08-24 16:42:30.000000000 +0400
++++ ./hald/linux/addons/addon-dell-backlight.cpp 2012-11-29 04:46:51.000000000 +0300
+@@ -29,7 +29,7 @@
+
+ #include <string.h>
+
+-#include <glib/gmain.h>
++#include <glib.h>
+ #include <dbus/dbus-glib.h>
+ #include <dbus/dbus-glib-lowlevel.h>
+
+--- ./hald/linux/addons/addon-imac-backlight.c.orig 2009-08-24 16:42:30.000000000 +0400
++++ ./hald/linux/addons/addon-imac-backlight.c 2012-11-29 04:47:34.000000000 +0300
+@@ -29,7 +29,7 @@
+ #include <stdlib.h>
+ #include <sys/io.h>
+
+-#include <glib/gmain.h>
++#include <glib.h>
+ #include <dbus/dbus-glib.h>
+ #include <dbus/dbus-glib-lowlevel.h>
+
+--- ./hald/linux/addons/addon-ipw-killswitch.c.orig 2009-08-24 16:42:30.000000000 +0400
++++ ./hald/linux/addons/addon-ipw-killswitch.c 2012-11-29 04:48:16.000000000 +0300
+@@ -36,8 +36,6 @@
+ #include <unistd.h>
+
+ #include <glib.h>
+-#include <glib/gmain.h>
+-#include <glib/gstdio.h>
+ #include <dbus/dbus-glib.h>
+ #include <dbus/dbus-glib-lowlevel.h>
+
+--- ./hald/linux/addons/addon-rfkill-killswitch.c.orig 2009-08-24 16:42:30.000000000 +0400
++++ ./hald/linux/addons/addon-rfkill-killswitch.c 2012-11-29 04:47:12.000000000 +0300
+@@ -36,8 +36,6 @@
+ #include <unistd.h>
+
+ #include <glib.h>
+-#include <glib/gmain.h>
+-#include <glib/gstdio.h>
+ #include <dbus/dbus-glib.h>
+ #include <dbus/dbus-glib-lowlevel.h>
+
+--- ./hald/linux/addons/addon-usb-csr.c.orig 2009-08-24 16:42:30.000000000 +0400
++++ ./hald/linux/addons/addon-usb-csr.c 2012-11-29 04:47:55.000000000 +0300
+@@ -29,7 +29,7 @@
+ #include <string.h>
+ #include <usb.h>
+
+-#include <glib/gmain.h>
++#include <glib.h>
+ #include <dbus/dbus-glib.h>
+ #include <dbus/dbus-glib-lowlevel.h>
+
+--- ./hald/linux/addons/addon-input.c.orig 2009-08-24 16:42:30.000000000 +0400
++++ ./hald/linux/addons/addon-input.c 2012-11-29 05:00:31.000000000 +0300
+@@ -41,8 +41,7 @@
+ #else
+ #include <linux/input.h>
+ #endif
+-#include <glib/gmain.h>
+-#include <glib/gprintf.h>
++#include <glib.h>
+ #include <dbus/dbus-glib-lowlevel.h>
+
+ #include "libhal/libhal.h"
+--- ./hald/linux/addons/addon-omap-backlight.c.orig 2009-08-24 16:42:30.000000000 +0400
++++ ./hald/linux/addons/addon-omap-backlight.c 2012-11-29 04:47:38.000000000 +0300
+@@ -41,7 +41,7 @@
+ #include <fcntl.h>
+ #include <unistd.h>
+
+-#include <glib/gmain.h>
++#include <glib.h>
+ #include <dbus/dbus-glib.h>
+ #include <dbus/dbus-glib-lowlevel.h>
+
+--- ./hald/linux/addons/addon-macbookpro-backlight.c.orig 2009-08-24 16:42:30.000000000 +0400
++++ ./hald/linux/addons/addon-macbookpro-backlight.c 2012-11-29 04:47:43.000000000 +0300
+@@ -39,7 +39,7 @@
+ #include <pci/pci.h>
+ #include <unistd.h>
+
+-#include <glib/gmain.h>
++#include <glib.h>
+ #include <dbus/dbus-glib.h>
+ #include <dbus/dbus-glib-lowlevel.h>
+
+--- ./hald/linux/addons/addon-leds.c.orig 2009-08-24 16:42:30.000000000 +0400
++++ ./hald/linux/addons/addon-leds.c 2012-11-29 04:47:25.000000000 +0300
+@@ -36,8 +36,6 @@
+ #include <unistd.h>
+
+ #include <glib.h>
+-#include <glib/gmain.h>
+-#include <glib/gstdio.h>
+ #include <dbus/dbus-glib.h>
+ #include <dbus/dbus-glib-lowlevel.h>
+
+--- ./hald/linux/addons/addon-cpufreq.c.orig 2009-08-24 16:42:30.000000000 +0400
++++ ./hald/linux/addons/addon-cpufreq.c 2012-11-29 04:48:01.000000000 +0300
+@@ -32,7 +32,6 @@
+ #include <unistd.h>
+ #include <signal.h>
+ #include <getopt.h>
+-#include <glib/gprintf.h>
+
+ #include "addon-cpufreq.h"
+ #include "addon-cpufreq-userspace.h"
+--- ./hald/linux/addons/addon-generic-backlight.c.orig 2009-08-24 16:42:30.000000000 +0400
++++ ./hald/linux/addons/addon-generic-backlight.c 2012-11-29 05:11:49.000000000 +0300
+@@ -35,7 +35,7 @@
+ #include <sys/stat.h>
+ #include <unistd.h>
+
+-#include <glib/gmain.h>
++#include <glib.h>
+ #include <dbus/dbus-glib.h>
+ #include <dbus/dbus-glib-lowlevel.h>
+
diff --git a/gentoo/sys-apps/hal/files/hal-0.5.14-fix-gtk-doc-automake.patch b/gentoo/sys-apps/hal/files/hal-0.5.14-fix-gtk-doc-automake.patch
new file mode 100644
index 000000000..30beb341a
--- /dev/null
+++ b/gentoo/sys-apps/hal/files/hal-0.5.14-fix-gtk-doc-automake.patch
@@ -0,0 +1,11 @@
+--- configure.inorig 2012-11-29 19:37:25.000000000 +0300
++++ configure.in 2012-11-29 19:37:35.000000000 +0300
+@@ -10,6 +10,8 @@
+ AC_INIT(hal, 0.5.14, david@fubar.dk)
+ AM_INIT_AUTOMAKE([gnu 1.9])
+ AM_MAINTAINER_MODE
++AC_CONFIG_MACRO_DIR([.])
++m4_include([gtk-doc.m4])
+ m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
+
+ glib_module="glib-2.0 >= 2.10.0 gobject-2.0 > 2.10.0 dbus-glib-1 >= 0.61"
diff --git a/gentoo/sys-apps/hal/files/hal-0.5.14-gentoo-patches-5.tar.bz2 b/gentoo/sys-apps/hal/files/hal-0.5.14-gentoo-patches-5.tar.bz2
new file mode 100644
index 000000000..917905b3f
--- /dev/null
+++ b/gentoo/sys-apps/hal/files/hal-0.5.14-gentoo-patches-5.tar.bz2
Binary files differ
diff --git a/gentoo/sys-apps/hal/files/hal-unmount.dev b/gentoo/sys-apps/hal/files/hal-unmount.dev
new file mode 100644
index 000000000..04d1fa81b
--- /dev/null
+++ b/gentoo/sys-apps/hal/files/hal-unmount.dev
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+# sanity check. DEVNAME should start with a /
+[ "$DEVNAME" != "${DEVNAME#/}" ] || exit 0
+
+# Lazily unmount drives which are removed, but still mounted
+if [ "$ACTION" = remove ] \
+ && (grep -q "^$DEVNAME" /proc/mounts || grep -q "^$DEVNAME" /etc/mtab); then
+ if [ -x /usr/bin/pumount ] ; then
+ /usr/bin/pumount -l "$DEVNAME";
+ else
+ /bin/umount -l "$DEVNAME";
+ fi
+fi
+
+exit 0
+
diff --git a/gentoo/sys-apps/hal/hal-0.5.14-r4.ebuild b/gentoo/sys-apps/hal/hal-0.5.14-r4.ebuild
new file mode 100644
index 000000000..87014d108
--- /dev/null
+++ b/gentoo/sys-apps/hal/hal-0.5.14-r4.ebuild
@@ -0,0 +1,307 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="2"
+
+inherit eutils linux-info autotools flag-o-matic multilib
+
+PATCH_VERSION="5"
+
+MY_P=${P/_/}
+S=${WORKDIR}/${MY_P}
+PATCHNAME="${MY_P}-gentoo-patches-${PATCH_VERSION}"
+DESCRIPTION="Hardware Abstraction Layer"
+HOMEPAGE="http://www.freedesktop.org/wiki/Software/hal"
+SRC_URI="http://hal.freedesktop.org/releases/${MY_P}.tar.bz2"
+# patches are now removed from gentoo.org
+# http://dev.gentoo.org/~ssuominen/${PATCHNAME}.tar.bz2"
+
+LICENSE="|| ( GPL-2 AFL-2.0 )"
+SLOT="0"
+KEYWORDS="amd64 ia64 x86"
+
+KERNEL_IUSE="kernel_linux kernel_FreeBSD"
+IUSE="X acpi apm crypt debug dell disk-partition doc laptop selinux ${KERNEL_IUSE}"
+
+RDEPEND=">=dev-libs/dbus-glib-0.61
+ >=dev-libs/glib-2.14
+ >=dev-libs/expat-1.95.8
+ =virtual/libusb-0*
+ >=sys-apps/pciutils-2.2.7-r1
+ sys-apps/usbutils
+ virtual/eject
+ amd64? ( >=sys-apps/dmidecode-2.7 )
+ dell? ( >=sys-libs/libsmbios-0.13.4 )
+ disk-partition? ( >=sys-block/parted-1.8.0 )
+ ia64? ( >=sys-apps/dmidecode-2.7 )
+ kernel_linux? (
+ >=virtual/udev-125
+ >=sys-apps/util-linux-2.16
+ >=sys-kernel/linux-headers-2.6.22
+ crypt? ( >=sys-fs/cryptsetup-1.0.5 )
+ )
+ kernel_FreeBSD? ( >=dev-libs/libvolume_id-0.77 )
+ x86? ( >=sys-apps/dmidecode-2.7 )
+ selinux? ( sys-libs/libselinux )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ >=dev-util/gperf-3.0.3
+ >=dev-util/intltool-0.35
+ doc? (
+ app-text/xmlto
+ dev-libs/libxml2
+ dev-util/gtk-doc
+ app-text/docbook-sgml-utils
+ app-text/docbook-xml-dtd:4.1.2
+ )"
+PDEPEND=">=app-misc/hal-info-20081219
+ !gnome-extra/hal-device-manager
+ laptop? ( >=sys-power/pm-utils-0.99.3 )"
+
+## HAL Daemon drops privledges so we need group access to read disks
+HALDAEMON_GROUPS_LINUX="haldaemon,plugdev,disk,cdrom,cdrw,floppy,usb"
+HALDAEMON_GROUPS_FREEBSD="haldaemon,plugdev,operator"
+
+function check_hotplug_net() {
+ local CONFIG_CHECK="~HOTPLUG ~NET"
+ local WARNING_HOTPLUG="CONFIG_HOTPLUG:\tis not set (required for HAL)\n"
+ local WARNING_NET="CONFIG_NET:\tis not set (required for HAL)\n"
+ check_extra_config
+}
+
+function check_inotify() {
+ local CONFIG_CHECK="~INOTIFY_USER"
+ local WARNING_INOTIFY_USER="CONFIG_INOTIFY_USER:\tis not set (required for HAL)\n"
+ check_extra_config
+}
+
+function check_acpi_proc() {
+ local CONFIG_CHECK="~ACPI_PROCFS ~ACPI_PROC_EVENT"
+ local WARNING_ACPI_PROCFS="CONFIG_ACPI_PROCFS:\tis not set (required for HAL)\n"
+ local WARNING_ACPI_PROC_EVENT="CONFIG_ACPI_PROC_EVENT:\tis not set (required for HAL)\n"
+ check_extra_config
+}
+
+pkg_setup() {
+ if use kernel_linux ; then
+ if [[ -e "${ROOT}/usr/src/linux/.config" ]] ; then
+ kernel_is ge 2 6 19 || ewarn "HAL requires a kernel version 2.6.19 or newer"
+
+ if kernel_is lt 2 6 23 && use acpi ; then
+ check_acpi_proc
+ fi
+ fi
+
+ check_hotplug_net
+ check_inotify
+ fi
+
+ # http://devmanual.gentoo.org/ebuild-writing/functions/
+ # http://bugs.gentoo.org/show_bug.cgi?id=191605
+
+ # Create groups for hotplugging and HAL
+ enewgroup haldaemon
+ enewgroup plugdev
+
+ # HAL drops priviledges by default now ...
+ # ... so we must make sure it can read disk/cdrom info (ie. be in ${HALDAEMON_GROUPS} groups)
+ if use kernel_linux; then
+ enewuser haldaemon -1 "-1" /dev/null ${HALDAEMON_GROUPS_LINUX}
+ elif use kernel_FreeBSD; then
+ enewuser haldaemon -1 "-1" /dev/null ${HALDAEMON_GROUPS_FREEBSD}
+ fi
+
+ # Make sure that the haldaemon user is in the ${HALDAEMON_GROUPS}
+ # If users have a problem with this, let them file a bug
+ if [[ ${ROOT} == / ]] ; then
+ if use kernel_linux; then
+ usermod -G ${HALDAEMON_GROUPS_LINUX} haldaemon
+ elif use kernel_FreeBSD; then
+ pw usermod haldaemon -G ${HALDAEMON_GROUPS_FREEBSD}
+ fi
+ fi
+}
+
+src_prepare() {
+ # FIXME: really BAD style
+ tar -xjf "${FILESDIR}/${PATCHNAME}.tar.bz2" -C "${WORKDIR}"
+ EPATCH_MULTI_MSG="Applying Gentoo Patchset ..." \
+ EPATCH_SUFFIX="patch" \
+ EPATCH_SOURCE="${WORKDIR}/${PATCHNAME}/patches/" \
+ EPATCH_FORCE="yes" \
+ epatch
+ epatch "${FILESDIR}/${P}-fix-glib-includes-in-addons.patch"
+
+ # the last one is a work-around for an issue described in:
+ # mail-list: gentoo-desktop
+ # tread: [kde-sunset] sys-apps/hal
+ # start-date: 2012-11-19
+ # if somebody got a better solution, please contact me
+ gtkdocize --version >/dev/null 2>&1 && epatch "${FILESDIR}/${P}-fix-gtk-doc-automake.patch"
+
+ eautoreconf
+}
+
+src_configure() {
+ local acpi="$(use_enable acpi)"
+ local backend=
+ local hardware=
+
+ append-flags -rdynamic
+
+ if use kernel_linux ; then
+ backend="linux"
+ elif use kernel_FreeBSD ; then
+ backend="freebsd"
+ else
+ eerror "Invalid backend"
+ fi
+
+ if use kernel_linux ; then
+ if use acpi ; then
+ # Using IBM ACPI and Toshiba ACPI results in double notification as this
+ # was merged into the Linux Kernel 2.6.22
+ if kernel_is lt 2 6 22 ; then
+ acpi="$acpi --enable-acpi-ibm --enable-acpi-toshiba"
+ else
+ acpi="$acpi --disable-acpi-ibm --disable-acpi-toshiba"
+ fi
+
+ acpi="$acpi --enable-acpi-proc --enable-acpi-acpid"
+ else
+ acpi="$acpi --disable-acpi-ibm --disable-acpi-toshiba"
+ acpi="$acpi --disable-acpi-proc --disable-acpi-acpid"
+ fi
+
+ hardware="--with-cpufreq --with-usb-csr --with-keymaps"
+ use arm && hardware="$hardware --with-omap --enable-pmu"
+ use ppc && hardware="$hardware --enable-pmu"
+ if use x86 || use amd64; then
+ hardware="$hardware --with-macbook --with-macbookpro"
+ fi
+
+ if use dell ; then
+ hardware="$hardware --with-dell-backlight"
+ else
+ hardware="$hardware --without-dell-backlight"
+ fi
+
+ hardware="$hardware --enable-sonypic"
+ else
+ hardware="--without-cpufreq --without-usb-csr --without-keymaps"
+ hardware="$hardware --without-omap"
+ hardware="$hardware --without-dell-backlight"
+ hardware="$hardware --enable-acpi-ibm --enable-acpi-toshiba"
+ hardware="$hardware --disable-sonypic"
+ fi
+
+ econf --with-backend=${backend} \
+ --with-os-type=gentoo \
+ --with-pid-file=/var/run/hald.pid \
+ --with-hwdata=/usr/share/misc \
+ --with-socket-dir=/var/run/hald \
+ --with-udev-prefix=/etc \
+ --enable-umount-helper \
+ --enable-man-pages \
+ --disable-acl-management \
+ --enable-pci \
+ --disable-policy-kit \
+ --disable-console-kit \
+ $(use_enable apm) \
+ $(use_enable debug verbose-mode) \
+ $(use_enable disk-partition parted) \
+ $(use_enable doc docbook-docs) \
+ $(use_enable doc gtk-doc) \
+ --docdir=/usr/share/doc/${PF} \
+ --localstatedir=/var \
+ ${acpi} ${hardware} \
+ || die "configure failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+ dodoc AUTHORS ChangeLog NEWS README || die "docs failed"
+
+ # hal umount for unclean unmounts
+ exeinto /$(get_libdir)/udev/
+ newexe "${FILESDIR}/hal-unmount.dev" hal_unmount || die "udev helper failed"
+
+ # initscript
+ cp "${FILESDIR}/0.5.14-hald.rc.1" "${WORKDIR}/" || \
+ die "failed to copy hald.rc.1"
+ newinitd "${WORKDIR}/0.5.14-hald.rc.1" hald || die "init script failed"
+
+ # configuration
+ cp "${FILESDIR}/0.5.14-hald.conf" "${WORKDIR}/" || \
+ die "failed to copy hald.conf"
+
+ if use debug; then
+ sed -e 's:HALD_VERBOSE="no":HALD_VERBOSE="yes":' \
+ -i "${WORKDIR}/0.5.14-hald.conf" || die "failed to change verbose"
+ fi
+ newconfd "${WORKDIR}/0.5.14-hald.conf" hald || \
+ die "failed to install hald.conf"
+
+ if use X ; then
+ # New Configuration Snippets
+ dodoc "${WORKDIR}/${PATCHNAME}/config-examples/"*.fdi || \
+ die "dodoc X examples failed"
+ fi
+
+ # We now create and keep /media here as both gnome-mount and pmount
+ # use these directories, to avoid collision.
+ keepdir /media
+
+ # We also need to create and keep /etc/fdi/{information,policy,preprobe}
+ # or else hal bombs.
+ keepdir /etc/hal/fdi/{information,policy,preprobe}
+
+ # HAL stores it's fdi cache in /var/cache/hald
+ keepdir /var/cache/hald
+
+ # HAL keeps its unix socket here
+ keepdir /var/run/hald
+ keepdir /var/lib/hal
+}
+
+pkg_postinst() {
+ # Despite what people keep changing this location. Either one works.. it doesn't matter
+ # http://dev.gentoo.org/~plasmaroo/devmanual/ebuild-writing/functions/
+
+ elog "The HAL daemon needs to be running for certain applications to"
+ elog "work. Suggested is to add the init script to your start-up"
+ elog "scripts, this should be done like this :"
+ elog "\`rc-update add hald default\`"
+ echo
+ elog "Access to hal is now protected by either at_console or the plugdev group."
+ elog "If you have problems discovering/configuring hardware, try adding"
+ elog "yourself to plugdev, or ensuring consolekit is started"
+ echo
+ elog "IF you have additional applications which consume ACPI events, you"
+ elog "should consider installing acpid to allow applications to share ACPI"
+ elog "events."
+ if use X ; then
+ echo
+ elog "If you wish to use a non US layout, you may do so by executing:"
+ elog "setxkbmap <layout> or by utilizing your Desktop Environment's"
+ elog "Keyboard Layout Settings mechanism."
+ elog "Under GNOME, this is gnome-keyboard-properties, and under KDE"
+ elog "it is kxkb."
+ fi
+ echo
+ elog "In order have suspend/hibernate function with HAL or apps that use HAL"
+ elog "(such as gnome-power-manager), you should build HAL with the laptop"
+ elog "useflag which will install pm-utils."
+ if use X ; then
+ echo
+ elog "X Input Hotplugging (if you build xorg-server with the HAL useflag)"
+ elog "reads user specific configuration from /etc/hal/fdi/policy/."
+ echo
+ elog "You should remove the Input sections from your xorg.conf once you have"
+ elog "migrated the rules to a HAL fdi file."
+ fi
+
+ ebeep 5
+ epause 5
+}
diff --git a/gentoo/sys-apps/hal/metadata.xml b/gentoo/sys-apps/hal/metadata.xml
new file mode 100644
index 000000000..8cfcc3695
--- /dev/null
+++ b/gentoo/sys-apps/hal/metadata.xml
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+<use>
+ <flag name='acpi'>Enables HAL to attempt to read from /proc/acpi/event, if
+ unavailable, HAL will read events from <pkg>sys-power/acpid</pkg>. If
+ you need multiple acpi readers, ensure acpid is in your default
+ runlevel (rc-update add acpid default) along with HAL. This will also
+ enable HAL to read Toshiba and IBM acpi events which do not get sent
+ via /proc/acpi/event</flag>
+ <flag name='crypt'>Allows HAL to mount volumes that are encrypted using
+ LUKS. <pkg>sys-fs/cryptsetup-luks</pkg> which has recently been renamed
+ to <pkg>sys-fs/cryptsetup</pkg> allows you to create such encrypted
+ volumes. HAL will be able to handle volumes that are removable or
+ fixed.</flag>
+ <flag name='dell'>Builds and installs the Dell addon, which reads data from
+ the Dell SM BIOS via <pkg>sys-libs/libsmbios</pkg>. It will read your
+ service tag information and your hardware backlight data as well as
+ allow you to modify the backlight settings on a Dell laptop.</flag>
+ <flag name='disk-partition'>Allows HAL to use libparted from
+ <pkg>sys-block/parted</pkg> to read raw partition data from your disks
+ and process that data. Future versions of HAL (possibly 0.5.11 and
+ higher) will allow you to create, modify, delete and format partitions
+ from a GUI interface agnostic of your desktop environment.</flag>
+ <flag name='doc'>Generates documentation that describes HAL's fdi
+ format.</flag>
+ <flag name='laptop'>Adds support for power management scripts
+ (<pkg>sys-power/pm-utils</pkg>)</flag>
+ <flag name='selinux'>Installs SELinux policies and links HAL to the SELinux
+ libraries.</flag>
+</use>
+</pkgmetadata>
diff --git a/gentoo/trinity-apps/atlantik/atlantik-9999.ebuild b/gentoo/trinity-apps/atlantik/atlantik-9999.ebuild
new file mode 100644
index 000000000..91b6e03b9
--- /dev/null
+++ b/gentoo/trinity-apps/atlantik/atlantik-9999.ebuild
@@ -0,0 +1,13 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdegames"
+
+inherit trinity-meta
+
+DESCRIPTION="The Atlantic board game"
+KEYWORDS=""
+IUSE+=""
+DEPEND=">=trinity-base/libtdegames-${PV}:${SLOT}"
+RDEPEND="${DEPEND}"
diff --git a/gentoo/trinity-apps/atlantik/metadata.xml b/gentoo/trinity-apps/atlantik/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-apps/atlantik/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-apps/atlantikdesigner/atlantikdesigner-9999.ebuild b/gentoo/trinity-apps/atlantikdesigner/atlantikdesigner-9999.ebuild
new file mode 100644
index 000000000..02f74c70e
--- /dev/null
+++ b/gentoo/trinity-apps/atlantikdesigner/atlantikdesigner-9999.ebuild
@@ -0,0 +1,12 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdeaddons"
+
+inherit trinity-meta
+
+DESCRIPTION="Atlantik gameboard designer"
+KEYWORDS=""
+IUSE+=""
+DEPEND=">=trinity-apps/atlantik-${PV}:${SLOT}"
diff --git a/gentoo/trinity-apps/atlantikdesigner/metadata.xml b/gentoo/trinity-apps/atlantikdesigner/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-apps/atlantikdesigner/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-apps/filelight/filelight-9999.ebuild b/gentoo/trinity-apps/filelight/filelight-9999.ebuild
new file mode 100644
index 000000000..b99b9b37a
--- /dev/null
+++ b/gentoo/trinity-apps/filelight/filelight-9999.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_TYPE="applications"
+
+TRINITY_EXTRAGEAR_PACKAGING="yes"
+TRINITY_HANDBOOK="optional"
+TRINITY_LANGS="az bg br ca cs cy da de el en_GB es et fr ga gl is it ja ka lt nb nl pl pt pt_BR ro ru rw sr sr@Latn sv ta tr uk"
+TRINITY_DOC_LANGS=" da es et it pt ru sv"
+
+inherit trinity-base
+
+DESCRIPTION="Visualise disk usage with interactive map of concentric, segmented rings"
+HOMEPAGE="http://trinitydesktop.org/"
+LICENSE="GPL-2 LGPL-2"
+KEYWORDS=""
+
+need-trinity 14.0.0
+
+SLOT="${TRINITY_VER}"
diff --git a/gentoo/trinity-apps/filelight/metadata.xml b/gentoo/trinity-apps/filelight/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-apps/filelight/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-apps/kasteroids/kasteroids-9999.ebuild b/gentoo/trinity-apps/kasteroids/kasteroids-9999.ebuild
new file mode 100644
index 000000000..d9691a0c7
--- /dev/null
+++ b/gentoo/trinity-apps/kasteroids/kasteroids-9999.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdegames"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity Space Game"
+KEYWORDS=""
+IUSE+=""
+DEPEND=">=trinity-base/libtdegames-${PV}:${SLOT}
+ >=trinity-base/arts-${PV}:${SLOT}"
+RDEPEND="${DEPEND}"
+
+src_configure() {
+ mycmakeargs=(
+ -DWITH_ARTS=ON
+ )
+
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-apps/kasteroids/metadata.xml b/gentoo/trinity-apps/kasteroids/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-apps/kasteroids/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-apps/katomic/katomic-9999.ebuild b/gentoo/trinity-apps/katomic/katomic-9999.ebuild
new file mode 100644
index 000000000..6b6010942
--- /dev/null
+++ b/gentoo/trinity-apps/katomic/katomic-9999.ebuild
@@ -0,0 +1,13 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdegames"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity Atomic Entertainment Game"
+KEYWORDS=""
+IUSE+=""
+DEPEND=">=trinity-base/libtdegames-${PV}:${SLOT}"
+RDEPEND="${DEPEND}"
diff --git a/gentoo/trinity-apps/katomic/metadata.xml b/gentoo/trinity-apps/katomic/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-apps/katomic/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-apps/kbackgammon/kbackgammon-9999.ebuild b/gentoo/trinity-apps/kbackgammon/kbackgammon-9999.ebuild
new file mode 100644
index 000000000..7f8d47286
--- /dev/null
+++ b/gentoo/trinity-apps/kbackgammon/kbackgammon-9999.ebuild
@@ -0,0 +1,13 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdegames"
+
+inherit trinity-meta
+
+DESCRIPTION="A Backgammon program for Trinity"
+KEYWORDS=""
+IUSE+=""
+DEPEND=">=trinity-base/libtdegames-${PV}:${SLOT}"
+RDEPEND="${DEPEND}"
diff --git a/gentoo/trinity-apps/kbackgammon/metadata.xml b/gentoo/trinity-apps/kbackgammon/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-apps/kbackgammon/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-apps/kbattleship/kbattleship-9999.ebuild b/gentoo/trinity-apps/kbattleship/kbattleship-9999.ebuild
new file mode 100644
index 000000000..11e94f70f
--- /dev/null
+++ b/gentoo/trinity-apps/kbattleship/kbattleship-9999.ebuild
@@ -0,0 +1,13 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdegames"
+
+inherit trinity-meta
+
+DESCRIPTION="The Trinity Battleship clone"
+KEYWORDS=""
+IUSE+=""
+DEPEND=">=trinity-base/libtdegames-${PV}:${SLOT}"
+RDEPEND="${DEPEND}"
diff --git a/gentoo/trinity-apps/kbattleship/metadata.xml b/gentoo/trinity-apps/kbattleship/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-apps/kbattleship/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-apps/kblackbox/kblackbox-9999.ebuild b/gentoo/trinity-apps/kblackbox/kblackbox-9999.ebuild
new file mode 100644
index 000000000..4b8ec1438
--- /dev/null
+++ b/gentoo/trinity-apps/kblackbox/kblackbox-9999.ebuild
@@ -0,0 +1,13 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdegames"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity Blackbox Game"
+KEYWORDS=""
+IUSE+=""
+DEPEND=">=trinity-base/libtdegames-${PV}:${SLOT}"
+RDEPEND="${DEPEND}"
diff --git a/gentoo/trinity-apps/kblackbox/metadata.xml b/gentoo/trinity-apps/kblackbox/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-apps/kblackbox/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-apps/kbounce/kbounce-9999.ebuild b/gentoo/trinity-apps/kbounce/kbounce-9999.ebuild
new file mode 100644
index 000000000..ee2216cf9
--- /dev/null
+++ b/gentoo/trinity-apps/kbounce/kbounce-9999.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdegames"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity Bounce Ball Game"
+KEYWORDS=""
+IUSE+="+arts"
+DEPEND=">=trinity-base/libtdegames-${PV}:${SLOT}
+ arts? ( >=trinity-base/arts-${PV}:${SLOT} )"
+RDEPEND="${DEPEND}"
+
+src_configure() {
+ mycmakeargs=(
+ $(cmake-utils_use_with arts ARTS)
+ )
+
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-apps/kbounce/metadata.xml b/gentoo/trinity-apps/kbounce/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-apps/kbounce/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-apps/kenolaba/kenolaba-9999.ebuild b/gentoo/trinity-apps/kenolaba/kenolaba-9999.ebuild
new file mode 100644
index 000000000..d086a6fa6
--- /dev/null
+++ b/gentoo/trinity-apps/kenolaba/kenolaba-9999.ebuild
@@ -0,0 +1,13 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdegames"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity: Board game inspired by Abalone"
+KEYWORDS=""
+IUSE+=""
+DEPEND=">=trinity-base/libtdegames-${PV}:${SLOT}"
+RDEPEND="${DEPEND}"
diff --git a/gentoo/trinity-apps/kenolaba/metadata.xml b/gentoo/trinity-apps/kenolaba/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-apps/kenolaba/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-apps/kfouleggs/kfouleggs-9999.ebuild b/gentoo/trinity-apps/kfouleggs/kfouleggs-9999.ebuild
new file mode 100644
index 000000000..382b134d6
--- /dev/null
+++ b/gentoo/trinity-apps/kfouleggs/kfouleggs-9999.ebuild
@@ -0,0 +1,13 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdegames"
+
+inherit trinity-meta
+
+DESCRIPTION="KFoulEggs is an adaptation of the well-known (at least in Japan) PuyoPuyo game"
+KEYWORDS=""
+IUSE+=""
+DEPEND=">=trinity-base/libtdegames-${PV}:${SLOT}"
+RDEPEND="${DEPEND}"
diff --git a/gentoo/trinity-apps/kfouleggs/metadata.xml b/gentoo/trinity-apps/kfouleggs/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-apps/kfouleggs/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-apps/kgoldrunner/kgoldrunner-9999.ebuild b/gentoo/trinity-apps/kgoldrunner/kgoldrunner-9999.ebuild
new file mode 100644
index 000000000..5c14485ac
--- /dev/null
+++ b/gentoo/trinity-apps/kgoldrunner/kgoldrunner-9999.ebuild
@@ -0,0 +1,13 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdegames"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity: KGoldrunner is a game of action and puzzle solving"
+KEYWORDS=""
+IUSE+=""
+DEPEND=">=trinity-base/libtdegames-${PV}:${SLOT}"
+RDEPEND="${DEPEND}"
diff --git a/gentoo/trinity-apps/kgoldrunner/metadata.xml b/gentoo/trinity-apps/kgoldrunner/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-apps/kgoldrunner/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-apps/kjumpingcube/kjumpingcube-9999.ebuild b/gentoo/trinity-apps/kjumpingcube/kjumpingcube-9999.ebuild
new file mode 100644
index 000000000..d26dda60e
--- /dev/null
+++ b/gentoo/trinity-apps/kjumpingcube/kjumpingcube-9999.ebuild
@@ -0,0 +1,13 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdegames"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity: Tactical one or two player game"
+KEYWORDS=""
+IUSE+=""
+DEPEND=">=trinity-base/libtdegames-${PV}:${SLOT}"
+RDEPEND="${DEPEND}"
diff --git a/gentoo/trinity-apps/kjumpingcube/metadata.xml b/gentoo/trinity-apps/kjumpingcube/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-apps/kjumpingcube/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-apps/klickety/klickety-9999.ebuild b/gentoo/trinity-apps/klickety/klickety-9999.ebuild
new file mode 100644
index 000000000..24cbc450d
--- /dev/null
+++ b/gentoo/trinity-apps/klickety/klickety-9999.ebuild
@@ -0,0 +1,13 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdegames"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity: Klickety is an adaptation of the clickomania game"
+KEYWORDS=""
+IUSE+=""
+DEPEND=">=trinity-base/libtdegames-${PV}:${SLOT}"
+RDEPEND="${DEPEND}"
diff --git a/gentoo/trinity-apps/klickety/metadata.xml b/gentoo/trinity-apps/klickety/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-apps/klickety/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-apps/klines/klines-9999.ebuild b/gentoo/trinity-apps/klines/klines-9999.ebuild
new file mode 100644
index 000000000..bb7aeeebb
--- /dev/null
+++ b/gentoo/trinity-apps/klines/klines-9999.ebuild
@@ -0,0 +1,13 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdegames"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity: Kolor Lines - a little game about balls and how to get rid of them"
+KEYWORDS=""
+IUSE+=""
+DEPEND=">=trinity-base/libtdegames-${PV}:${SLOT}"
+RDEPEND="${DEPEND}"
diff --git a/gentoo/trinity-apps/klines/metadata.xml b/gentoo/trinity-apps/klines/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-apps/klines/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-apps/kmahjongg/kmahjongg-9999.ebuild b/gentoo/trinity-apps/kmahjongg/kmahjongg-9999.ebuild
new file mode 100644
index 000000000..5e72dfb84
--- /dev/null
+++ b/gentoo/trinity-apps/kmahjongg/kmahjongg-9999.ebuild
@@ -0,0 +1,13 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdegames"
+
+inherit trinity-meta
+
+DESCRIPTION="Mahjongg for Trinity"
+KEYWORDS=""
+IUSE+=""
+DEPEND=">=trinity-base/libtdegames-${PV}:${SLOT}"
+RDEPEND="${DEPEND}"
diff --git a/gentoo/trinity-apps/kmahjongg/metadata.xml b/gentoo/trinity-apps/kmahjongg/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-apps/kmahjongg/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-apps/kmines/kmines-9999.ebuild b/gentoo/trinity-apps/kmines/kmines-9999.ebuild
new file mode 100644
index 000000000..20c4b6adc
--- /dev/null
+++ b/gentoo/trinity-apps/kmines/kmines-9999.ebuild
@@ -0,0 +1,13 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdegames"
+
+inherit trinity-meta
+
+DESCRIPTION="KMines is a classic mine sweeper game"
+KEYWORDS=""
+IUSE+=""
+DEPEND=">=trinity-base/libtdegames-${PV}:${SLOT}"
+RDEPEND="${DEPEND}"
diff --git a/gentoo/trinity-apps/kmines/metadata.xml b/gentoo/trinity-apps/kmines/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-apps/kmines/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-apps/knetwalk/knetwalk-9999.ebuild b/gentoo/trinity-apps/knetwalk/knetwalk-9999.ebuild
new file mode 100644
index 000000000..e39a29397
--- /dev/null
+++ b/gentoo/trinity-apps/knetwalk/knetwalk-9999.ebuild
@@ -0,0 +1,13 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdegames"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity tron game"
+KEYWORDS=""
+IUSE+=""
+DEPEND=">=trinity-base/libtdegames-${PV}:${SLOT}"
+RDEPEND="${DEPEND}"
diff --git a/gentoo/trinity-apps/knetwalk/metadata.xml b/gentoo/trinity-apps/knetwalk/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-apps/knetwalk/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-apps/kolf/kolf-9999.ebuild b/gentoo/trinity-apps/kolf/kolf-9999.ebuild
new file mode 100644
index 000000000..ea860f5d9
--- /dev/null
+++ b/gentoo/trinity-apps/kolf/kolf-9999.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdegames"
+
+inherit trinity-meta
+
+DESCRIPTION="Minigolf Game by Trinity"
+KEYWORDS=""
+IUSE+=""
+DEPEND=">=trinity-base/libtdegames-${PV}:${SLOT}
+ >=trinity-base/arts-${PV}:${SLOT}"
+RDEPEND="${DEPEND}"
+
+src_configure() {
+ mycmakeargs=(
+ -DWITH_ARTS=ON
+ )
+
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-apps/kolf/metadata.xml b/gentoo/trinity-apps/kolf/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-apps/kolf/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-apps/konquest/konquest-9999.ebuild b/gentoo/trinity-apps/konquest/konquest-9999.ebuild
new file mode 100644
index 000000000..ef2368544
--- /dev/null
+++ b/gentoo/trinity-apps/konquest/konquest-9999.ebuild
@@ -0,0 +1,13 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdegames"
+
+inherit trinity-meta
+
+DESCRIPTION="Galactic Strategy Trinity Game"
+KEYWORDS=""
+IUSE+=""
+DEPEND=">=trinity-base/libtdegames-${PV}:${SLOT}"
+RDEPEND="${DEPEND}"
diff --git a/gentoo/trinity-apps/konquest/metadata.xml b/gentoo/trinity-apps/konquest/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-apps/konquest/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-apps/kpat/kpat-9999.ebuild b/gentoo/trinity-apps/kpat/kpat-9999.ebuild
new file mode 100644
index 000000000..1117828d4
--- /dev/null
+++ b/gentoo/trinity-apps/kpat/kpat-9999.ebuild
@@ -0,0 +1,13 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdegames"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity patience game"
+KEYWORDS=""
+IUSE+=""
+DEPEND=">=trinity-base/libtdegames-${PV}:${SLOT}"
+RDEPEND="${DEPEND}"
diff --git a/gentoo/trinity-apps/kpat/metadata.xml b/gentoo/trinity-apps/kpat/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-apps/kpat/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-apps/kpoker/kpoker-9999.ebuild b/gentoo/trinity-apps/kpoker/kpoker-9999.ebuild
new file mode 100644
index 000000000..4178bd1ae
--- /dev/null
+++ b/gentoo/trinity-apps/kpoker/kpoker-9999.ebuild
@@ -0,0 +1,13 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdegames"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity poker game"
+KEYWORDS=""
+IUSE+=""
+DEPEND=">=trinity-base/libtdegames-${PV}:${SLOT}"
+RDEPEND="${DEPEND}"
diff --git a/gentoo/trinity-apps/kpoker/metadata.xml b/gentoo/trinity-apps/kpoker/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-apps/kpoker/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-apps/kreversi/kreversi-9999.ebuild b/gentoo/trinity-apps/kreversi/kreversi-9999.ebuild
new file mode 100644
index 000000000..6412e34d5
--- /dev/null
+++ b/gentoo/trinity-apps/kreversi/kreversi-9999.ebuild
@@ -0,0 +1,13 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdegames"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity Board Game"
+KEYWORDS=""
+IUSE+=""
+DEPEND=">=trinity-base/libtdegames-${PV}:${SLOT}"
+RDEPEND="${DEPEND}"
diff --git a/gentoo/trinity-apps/kreversi/metadata.xml b/gentoo/trinity-apps/kreversi/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-apps/kreversi/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-apps/ksame/ksame-9999.ebuild b/gentoo/trinity-apps/ksame/ksame-9999.ebuild
new file mode 100644
index 000000000..f8be72213
--- /dev/null
+++ b/gentoo/trinity-apps/ksame/ksame-9999.ebuild
@@ -0,0 +1,13 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdegames"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity: Same Game - a little game about balls and how to get rid of them"
+KEYWORDS=""
+IUSE+=""
+DEPEND=">=trinity-base/libtdegames-${PV}:${SLOT}"
+RDEPEND="${DEPEND}"
diff --git a/gentoo/trinity-apps/ksame/metadata.xml b/gentoo/trinity-apps/ksame/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-apps/ksame/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-apps/kshisen/kshisen-9999.ebuild b/gentoo/trinity-apps/kshisen/kshisen-9999.ebuild
new file mode 100644
index 000000000..619a4a2bd
--- /dev/null
+++ b/gentoo/trinity-apps/kshisen/kshisen-9999.ebuild
@@ -0,0 +1,13 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdegames"
+
+inherit trinity-meta
+
+DESCRIPTION="A Trinity game similiar to Mahjongg"
+KEYWORDS=""
+IUSE+=""
+DEPEND=">=trinity-base/libtdegames-${PV}:${SLOT}"
+RDEPEND="${DEPEND}"
diff --git a/gentoo/trinity-apps/kshisen/metadata.xml b/gentoo/trinity-apps/kshisen/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-apps/kshisen/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-apps/ksirtet/ksirtet-9999.ebuild b/gentoo/trinity-apps/ksirtet/ksirtet-9999.ebuild
new file mode 100644
index 000000000..08a69fc41
--- /dev/null
+++ b/gentoo/trinity-apps/ksirtet/ksirtet-9999.ebuild
@@ -0,0 +1,13 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdegames"
+
+inherit trinity-meta
+
+DESCRIPTION="KSirtet is an adaptation of the well-known Tetris game"
+KEYWORDS=""
+IUSE+=""
+DEPEND=">=trinity-base/libtdegames-${PV}:${SLOT}"
+RDEPEND="${DEPEND}"
diff --git a/gentoo/trinity-apps/ksirtet/metadata.xml b/gentoo/trinity-apps/ksirtet/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-apps/ksirtet/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-apps/ksmiletris/ksmiletris-9999.ebuild b/gentoo/trinity-apps/ksmiletris/ksmiletris-9999.ebuild
new file mode 100644
index 000000000..6a3c77112
--- /dev/null
+++ b/gentoo/trinity-apps/ksmiletris/ksmiletris-9999.ebuild
@@ -0,0 +1,13 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdegames"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity SmileTris"
+KEYWORDS=""
+IUSE+=""
+DEPEND=">=trinity-base/libtdegames-${PV}:${SLOT}"
+RDEPEND="${DEPEND}"
diff --git a/gentoo/trinity-apps/ksmiletris/metadata.xml b/gentoo/trinity-apps/ksmiletris/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-apps/ksmiletris/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-apps/ksnake/ksnake-9999.ebuild b/gentoo/trinity-apps/ksnake/ksnake-9999.ebuild
new file mode 100644
index 000000000..6660d6211
--- /dev/null
+++ b/gentoo/trinity-apps/ksnake/ksnake-9999.ebuild
@@ -0,0 +1,13 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdegames"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity Tron game"
+KEYWORDS=""
+IUSE+=""
+DEPEND=">=trinity-base/libtdegames-${PV}:${SLOT}"
+RDEPEND="${DEPEND}"
diff --git a/gentoo/trinity-apps/ksnake/metadata.xml b/gentoo/trinity-apps/ksnake/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-apps/ksnake/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-apps/ksokoban/ksokoban-9999.ebuild b/gentoo/trinity-apps/ksokoban/ksokoban-9999.ebuild
new file mode 100644
index 000000000..8a60550c9
--- /dev/null
+++ b/gentoo/trinity-apps/ksokoban/ksokoban-9999.ebuild
@@ -0,0 +1,13 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdegames"
+
+inherit trinity-meta
+
+DESCRIPTION="The japanese warehouse keeper game"
+KEYWORDS=""
+IUSE+=""
+DEPEND=">=trinity-base/libtdegames-${PV}:${SLOT}"
+RDEPEND="${DEPEND}"
diff --git a/gentoo/trinity-apps/ksokoban/metadata.xml b/gentoo/trinity-apps/ksokoban/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-apps/ksokoban/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-apps/kspaceduel/kspaceduel-9999.ebuild b/gentoo/trinity-apps/kspaceduel/kspaceduel-9999.ebuild
new file mode 100644
index 000000000..1ae883f2f
--- /dev/null
+++ b/gentoo/trinity-apps/kspaceduel/kspaceduel-9999.ebuild
@@ -0,0 +1,13 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdegames"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity Space Game"
+KEYWORDS=""
+IUSE+=""
+DEPEND=">=trinity-base/libtdegames-${PV}:${SLOT}"
+RDEPEND="${DEPEND}"
diff --git a/gentoo/trinity-apps/kspaceduel/metadata.xml b/gentoo/trinity-apps/kspaceduel/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-apps/kspaceduel/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-apps/ktron/ktron-9999.ebuild b/gentoo/trinity-apps/ktron/ktron-9999.ebuild
new file mode 100644
index 000000000..e39a29397
--- /dev/null
+++ b/gentoo/trinity-apps/ktron/ktron-9999.ebuild
@@ -0,0 +1,13 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdegames"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity tron game"
+KEYWORDS=""
+IUSE+=""
+DEPEND=">=trinity-base/libtdegames-${PV}:${SLOT}"
+RDEPEND="${DEPEND}"
diff --git a/gentoo/trinity-apps/ktron/metadata.xml b/gentoo/trinity-apps/ktron/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-apps/ktron/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-apps/ktuberling/ktuberling-9999.ebuild b/gentoo/trinity-apps/ktuberling/ktuberling-9999.ebuild
new file mode 100644
index 000000000..500b4b9e3
--- /dev/null
+++ b/gentoo/trinity-apps/ktuberling/ktuberling-9999.ebuild
@@ -0,0 +1,13 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdegames"
+
+inherit trinity-meta
+
+DESCRIPTION="A Trinity potato game for kids"
+KEYWORDS=""
+IUSE+=""
+DEPEND=">=trinity-base/libtdegames-${PV}:${SLOT}"
+RDEPEND="${DEPEND}"
diff --git a/gentoo/trinity-apps/ktuberling/metadata.xml b/gentoo/trinity-apps/ktuberling/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-apps/ktuberling/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-apps/lskat/lskat-9999.ebuild b/gentoo/trinity-apps/lskat/lskat-9999.ebuild
new file mode 100644
index 000000000..2b72b2f2a
--- /dev/null
+++ b/gentoo/trinity-apps/lskat/lskat-9999.ebuild
@@ -0,0 +1,13 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdegames"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity card game"
+KEYWORDS=""
+IUSE+=""
+DEPEND=">=trinity-base/libtdegames-${PV}:${SLOT}"
+RDEPEND="${DEPEND}"
diff --git a/gentoo/trinity-apps/lskat/metadata.xml b/gentoo/trinity-apps/lskat/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-apps/lskat/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-apps/twin4/metadata.xml b/gentoo/trinity-apps/twin4/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-apps/twin4/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-apps/twin4/twin4-9999.ebuild b/gentoo/trinity-apps/twin4/twin4-9999.ebuild
new file mode 100644
index 000000000..483f2eecc
--- /dev/null
+++ b/gentoo/trinity-apps/twin4/twin4-9999.ebuild
@@ -0,0 +1,13 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdegames"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity four-in-a-row game"
+KEYWORDS=""
+IUSE+=""
+DEPEND=">=trinity-base/libtdegames-${PV}:${SLOT}"
+RDEPEND="${DEPEND}"
diff --git a/gentoo/trinity-base/akregator/Manifest b/gentoo/trinity-base/akregator/Manifest
new file mode 100644
index 000000000..4a730c44c
--- /dev/null
+++ b/gentoo/trinity-base/akregator/Manifest
@@ -0,0 +1,2 @@
+DIST kdepim-3.5.13.1.tar.gz 12954293 SHA256 29755dd66b6da83cb1105fd22954869b911c836f806c19d6a56cdfd6ee79287f SHA512 52f0133f0d296488786f26fe118eefb2018542a36de82d2fd253b7af4e1496ffbee1470869510259202b0a1b5cc6fb1b1b7b8a3ec0b27197fa60927281d1cb9e WHIRLPOOL b34852363e6a6ecdeaacbd9b0775ed0c8c5f692181dc1eee14543c0761a92af43bd96139a7588585ac9715721f62f2aaee603af11240a9a5a93d662262168887
+DIST kdepim-trinity-3.5.13.2.tar.xz 10148724 SHA256 2cbd61e28322e4c7d67ffb16ac59329b3f15ba1a4485095994b9bce6786df7c4 SHA512 a84319183813dc78dc97397c8c3871faa3961b458eda8107525b8b9c6789d13aedd8e3c7cb0706c4ca8dd63f69ff67de02716219c8af44ebf96d484d820eb2bf WHIRLPOOL 907d9d86f1b0094b915989ca7f0feb4f67ac1b238a4c6d176ab1ef9164eff78778b2714ebedeb40de28536a8384b39ec7e637f1bb6911cccb40f7d8663811edb
diff --git a/gentoo/trinity-base/akregator/akregator-3.5.13.1.ebuild b/gentoo/trinity-base/akregator/akregator-3.5.13.1.ebuild
new file mode 100644
index 000000000..dc1511e6b
--- /dev/null
+++ b/gentoo/trinity-base/akregator/akregator-3.5.13.1.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdepim"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity news feed aggregator."
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="
+ >=trinity-base/ktnef-${PV}:${SLOT}
+ >=trinity-base/libkmime-${PV}:${SLOT}
+ >=trinity-base/libkdepim-${PV}:${SLOT}
+ >=trinity-base/libkcal-${PV}:${SLOT}"
+RDEPEND="${DEPEND}"
+
+TSM_EXTRACT_ALSO="libkdepim"
diff --git a/gentoo/trinity-base/akregator/akregator-3.5.13.2.ebuild b/gentoo/trinity-base/akregator/akregator-3.5.13.2.ebuild
new file mode 100644
index 000000000..24f019e98
--- /dev/null
+++ b/gentoo/trinity-base/akregator/akregator-3.5.13.2.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdepim"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity news feed aggregator."
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="
+ >=trinity-base/ktnef-${PV}:${SLOT}
+ >=trinity-base/libkmime-${PV}:${SLOT}
+ >=trinity-base/libkdepim-${PV}:${SLOT}
+ >=trinity-base/libkcal-${PV}:${SLOT}"
+RDEPEND="${DEPEND}"
+
+TSM_EXTRACT_ALSO="libkdepim/"
diff --git a/gentoo/trinity-base/akregator/akregator-9999.ebuild b/gentoo/trinity-base/akregator/akregator-9999.ebuild
new file mode 100644
index 000000000..050adbdfb
--- /dev/null
+++ b/gentoo/trinity-base/akregator/akregator-9999.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdepim"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity news feed aggregator."
+KEYWORDS=""
+IUSE=""
+
+DEPEND="
+ >=trinity-base/ktnef-${PV}:${SLOT}
+ >=trinity-base/libkmime-${PV}:${SLOT}
+ >=trinity-base/libtdepim-${PV}:${SLOT}
+ >=trinity-base/libkcal-${PV}:${SLOT}"
+RDEPEND="${DEPEND}"
+
+TSM_EXTRACT_ALSO="libtdepim/"
diff --git a/gentoo/trinity-base/akregator/metadata.xml b/gentoo/trinity-base/akregator/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/akregator/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/amor/Manifest b/gentoo/trinity-base/amor/Manifest
new file mode 100644
index 000000000..23ad50106
--- /dev/null
+++ b/gentoo/trinity-base/amor/Manifest
@@ -0,0 +1,2 @@
+DIST kdetoys-3.5.13.1.tar.gz 3037255 SHA256 41e4224bcf816e52877b17d2dcdc86d94e8f304fee2d3fb35b97921544eafd9d SHA512 e7cd7943004e5d1ec83c0fe484fab82f2cdd5f5d39ee77db419938f023cd3c42ba0b257d0ddc783de7bd528c90195821d810babfa193c60856437593c24ce879 WHIRLPOOL 8d482537f972a24b1cef9ad789edd314517f4e3a6b37056f47d92292c8c30e70def24e99efc552b4504503e2224e1209ae946ff34ac94feaf128c038c54f010d
+DIST kdetoys-trinity-3.5.13.2.tar.xz 2757260 SHA256 a0533ceb6fb103600eb33ef3136d40f84ec826e24e0b95cc45e68ef73a5232f6 SHA512 eb67a70d75a473f885db8993f5eebd3480e68e43e4de60240fde411696ed8b895029505a5125fe51a41d6ccb583ba50c4c67465d770f14f9a1c1533281154f78 WHIRLPOOL d79f58085d2af17453fc50c621ea6fe6909d476cf5f0a6b6ccf51ef69eed0ba073091f587439eb5afd644e0286dfe2ee86ccd903346d3060c3fe90299511018a
diff --git a/gentoo/trinity-base/amor/amor-3.5.13.1.ebuild b/gentoo/trinity-base/amor/amor-3.5.13.1.ebuild
new file mode 100644
index 000000000..f9e407cf8
--- /dev/null
+++ b/gentoo/trinity-base/amor/amor-3.5.13.1.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdetoys"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity: Amusing Misuse Of Resources - desktop-dwelling creature"
+KEYWORDS="amd64 x86"
+IUSE=""
diff --git a/gentoo/trinity-base/amor/amor-3.5.13.2.ebuild b/gentoo/trinity-base/amor/amor-3.5.13.2.ebuild
new file mode 100644
index 000000000..eef2164b5
--- /dev/null
+++ b/gentoo/trinity-base/amor/amor-3.5.13.2.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdetoys"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity: Amusing Misuse Of Resources - desktop-dwelling creature"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
diff --git a/gentoo/trinity-base/amor/amor-9999.ebuild b/gentoo/trinity-base/amor/amor-9999.ebuild
new file mode 100644
index 000000000..298c6edef
--- /dev/null
+++ b/gentoo/trinity-base/amor/amor-9999.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdetoys"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity: Amusing Misuse Of Resources - desktop-dwelling creature"
+KEYWORDS=
+IUSE=""
diff --git a/gentoo/trinity-base/amor/files/shared b/gentoo/trinity-base/amor/files/shared
new file mode 120000
index 000000000..af62be31d
--- /dev/null
+++ b/gentoo/trinity-base/amor/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files/ \ No newline at end of file
diff --git a/gentoo/trinity-base/amor/metadata.xml b/gentoo/trinity-base/amor/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/amor/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/ark/Manifest b/gentoo/trinity-base/ark/Manifest
new file mode 100644
index 000000000..c59ac62b4
--- /dev/null
+++ b/gentoo/trinity-base/ark/Manifest
@@ -0,0 +1,2 @@
+DIST kdeutils-3.5.13.1.tar.gz 2829393 SHA256 3e7ab07fe1bb3e7be7ac3a3796366c88d3b79a58af911546e2c65e32363db527 SHA512 48733e472d0f5da85ef8a32ed6db7fa5e61f0682e49842439e6ea38a1e407059bb35efffe41fc6ed1a718511fd5b2b2c8222d816a23500a4dcbca17461f9a3bd WHIRLPOOL 1488e0c44f60b4d5e397dd2cf93de048eae1b915d4b2b7b1cf27768946f5aae3b5bcc3971ee28b5fa6a57a0b94cca6db0866138b69ad74f1f7bb97cdaaebdbe2
+DIST kdeutils-trinity-3.5.13.2.tar.xz 2259232 SHA256 b2999b9ef39bb2f269b84fdf34a814b5a5599aae7d05538d0bf680c18fb334fa SHA512 f501aa4b61bf440e873eec96f09c0c24ad780db2f9f14b884001c04c04aafccb5afb2b492dcf4fc640f3ec35d86aa419d67936122648a986662cd7b7f4f8a2d8 WHIRLPOOL 49296006875250212f0fdeb0c90c4f69cf0aa7cfd38415e2f7b50bdf81754de64562df2400f4932a502adbe84b58be34cae6c029d68cc62d0e91de5158513239
diff --git a/gentoo/trinity-base/ark/ark-3.5.13.1.ebuild b/gentoo/trinity-base/ark/ark-3.5.13.1.ebuild
new file mode 100644
index 000000000..0b1bac87b
--- /dev/null
+++ b/gentoo/trinity-base/ark/ark-3.5.13.1.ebuild
@@ -0,0 +1,16 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdeutils"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity Archiving tool"
+KEYWORDS="x86 amd64"
+IUSE=""
+
+pkg_postinst(){
+ elog "You may want to install app-arch/lha, app-arch/p7zip, app-arch/rar,"
+ elog "app-arch/zip or app-arch/zoo for support of these archive types."
+}
diff --git a/gentoo/trinity-base/ark/ark-3.5.13.2.ebuild b/gentoo/trinity-base/ark/ark-3.5.13.2.ebuild
new file mode 100644
index 000000000..ec0549744
--- /dev/null
+++ b/gentoo/trinity-base/ark/ark-3.5.13.2.ebuild
@@ -0,0 +1,16 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdeutils"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity Archiving tool"
+KEYWORDS="~x86 ~amd64"
+IUSE=""
+
+pkg_postinst(){
+ elog "You may want to install app-arch/lha, app-arch/p7zip, app-arch/rar,"
+ elog "app-arch/zip or app-arch/zoo for support of these archive types."
+}
diff --git a/gentoo/trinity-base/ark/ark-9999.ebuild b/gentoo/trinity-base/ark/ark-9999.ebuild
new file mode 100644
index 000000000..d4a29b1fd
--- /dev/null
+++ b/gentoo/trinity-base/ark/ark-9999.ebuild
@@ -0,0 +1,16 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdeutils"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity Archiving tool"
+KEYWORDS=""
+IUSE=""
+
+pkg_postinst(){
+ elog "You may want to install app-arch/lha, app-arch/p7zip, app-arch/rar,"
+ elog "app-arch/zip or app-arch/zoo for support of these archive types."
+}
diff --git a/gentoo/trinity-base/ark/files/shared b/gentoo/trinity-base/ark/files/shared
new file mode 120000
index 000000000..af62be31d
--- /dev/null
+++ b/gentoo/trinity-base/ark/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files/ \ No newline at end of file
diff --git a/gentoo/trinity-base/ark/metadata.xml b/gentoo/trinity-base/ark/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/ark/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/arts/Manifest b/gentoo/trinity-base/arts/Manifest
new file mode 100644
index 000000000..ab59b6c09
--- /dev/null
+++ b/gentoo/trinity-base/arts/Manifest
@@ -0,0 +1,2 @@
+DIST arts-3.5.13.1.tar.gz 907039 SHA256 ab0f66866d92f3b5f99cc7f96a99615f6873b2326aa0c81670cafb05d4c19b60 SHA512 287ced8a2251929cb9a47c1c158c11c48d8e1174fa9a41dbd32103e1aed64e51f38a641b6600b966c6ac147c913fe6a21db73e57287fdc7de85c535284f1e9e2 WHIRLPOOL de76330c608d31d99c5fe1d95e457d5b7ca286287e329f1d8adfa7cff0c4d7df0ad0235fa2152fee81b7e4aca193e1b960bb2db28e5a25890d8e819d5f8da4fb
+DIST arts-trinity-3.5.13.2.tar.xz 669044 SHA256 5498d299698b1a0148f31b9d1f807d486ee2d06a0119997eb143f27cab682a3b SHA512 2efd1ed900d909e49e8083bb223efa577968a5b4ed2f3bb5292adaedac20ed804fb177aa5206d62707a18a0198a443141f00b5dec1cdabd834f9abf7107e0548 WHIRLPOOL 02142a7fb8f0d1022178ca422590f57ea06bdf490d528ee1f6a396e9b16c55db226a053dcf7a8dcd09437eb2e9887cd9b89a0a93697b372b9657e9e3cc3cbcb8
diff --git a/gentoo/trinity-base/arts/arts-3.5.13.1.ebuild b/gentoo/trinity-base/arts/arts-3.5.13.1.ebuild
new file mode 100644
index 000000000..69f717f63
--- /dev/null
+++ b/gentoo/trinity-base/arts/arts-3.5.13.1.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+
+TRINITY_MODULE_TYPE="dependencies"
+TRINITY_MODULE_NAME="${PN}"
+
+inherit trinity-base
+
+set-trinityver
+
+DESCRIPTION="aRts, the Trinity sound (and all-around multimedia) server/output manager"
+HOMEPAGE="http://trinitydesktop.org/"
+
+LICENSE="GPL-2"
+KEYWORDS="x86 amd64"
+IUSE="alsa -artswrappersuid jack mp3 nas vorbis"
+SLOT="${TRINITY_VER}"
+
+DEPEND="dev-qt/tqtinterface
+ dev-libs/glib:2
+ media-libs/audiofile
+ mp3? ( media-libs/libmad )
+ nas? ( media-libs/nas )
+ alsa? ( media-libs/alsa-lib )
+ vorbis? ( media-libs/libogg media-libs/libvorbis )
+ jack? ( >=media-sound/jack-audio-connection-kit-0.90 )"
+RDEPEND="${RDEPEND}"
+
+src_configure() {
+ mycmakeargs=(
+ -DAUDIOFILE=ON
+ $(cmake-utils_use_with mp3 MAD)
+ $(cmake-utils_use_with nas NAS)
+ $(cmake-utils_use_with alsa ALSA)
+ $(cmake-utils_use_with vorbis VORBIS)
+ $(cmake-utils_use_with jack JACK)
+ # NOTE: WITH_ESD dropped due to remove of esound long ago
+ )
+
+ trinity-base_src_configure
+}
+
+src_install() {
+ trinity-base_src_install
+
+ # used for realtime priority, but off by default as it is a security hazard
+ use artswrappersuid && chmod u+s "${D}/${PREFIX}/bin/artswrapper"
+}
+
+pkg_postinst() {
+ if ! use artswrappersuid ; then
+ elog "Run chmod u+s ${PREFIX}/bin/artswrapper to let artsd use realtime priority"
+ elog "and so avoid possible skips in sound. However, on untrusted systems this"
+ elog "creates the possibility of a DoS attack that'll use 100% cpu at realtime"
+ elog "priority, and so is off by default. See bug #7883."
+ elog "Or, you can set the local artswrappersuid USE flag to make the ebuild do this."
+ fi
+}
diff --git a/gentoo/trinity-base/arts/arts-3.5.13.2.ebuild b/gentoo/trinity-base/arts/arts-3.5.13.2.ebuild
new file mode 100644
index 000000000..a788528e4
--- /dev/null
+++ b/gentoo/trinity-base/arts/arts-3.5.13.2.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+
+TRINITY_MODULE_TYPE="dependencies"
+TRINITY_MODULE_NAME="${PN}"
+
+inherit trinity-base
+
+set-trinityver
+
+DESCRIPTION="aRts, the Trinity sound (and all-around multimedia) server/output manager"
+HOMEPAGE="http://trinitydesktop.org/"
+
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~x86"
+IUSE="alsa -artswrappersuid jack mp3 nas vorbis"
+SLOT="${TRINITY_VER}"
+
+DEPEND="dev-qt/tqtinterface
+ dev-libs/glib:2
+ media-libs/audiofile
+ mp3? ( media-libs/libmad )
+ nas? ( media-libs/nas )
+ alsa? ( media-libs/alsa-lib )
+ vorbis? ( media-libs/libogg media-libs/libvorbis )
+ jack? ( >=media-sound/jack-audio-connection-kit-0.90 )"
+RDEPEND="${RDEPEND}"
+
+src_configure() {
+ mycmakeargs=(
+ -DAUDIOFILE=ON
+ $(cmake-utils_use_with mp3 MAD)
+ $(cmake-utils_use_with nas NAS)
+ $(cmake-utils_use_with alsa ALSA)
+ $(cmake-utils_use_with vorbis VORBIS)
+ $(cmake-utils_use_with jack JACK)
+ # NOTE: WITH_ESD dropped due to remove of esound long ago
+ )
+
+ trinity-base_src_configure
+}
+
+src_install() {
+ trinity-base_src_install
+
+ # used for realtime priority, but off by default as it is a security hazard
+ use artswrappersuid && chmod u+s "${D}/${PREFIX}/bin/artswrapper"
+}
+
+pkg_postinst() {
+ if ! use artswrappersuid ; then
+ elog "Run chmod u+s ${PREFIX}/bin/artswrapper to let artsd use realtime priority"
+ elog "and so avoid possible skips in sound. However, on untrusted systems this"
+ elog "creates the possibility of a DoS attack that'll use 100% cpu at realtime"
+ elog "priority, and so is off by default. See bug #7883."
+ elog "Or, you can set the local artswrappersuid USE flag to make the ebuild do this."
+ fi
+}
diff --git a/gentoo/trinity-base/arts/arts-9999.ebuild b/gentoo/trinity-base/arts/arts-9999.ebuild
new file mode 100644
index 000000000..b205996d3
--- /dev/null
+++ b/gentoo/trinity-base/arts/arts-9999.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+
+TRINITY_MODULE_TYPE="dependencies"
+TRINITY_MODULE_NAME="${PN}"
+
+inherit trinity-base
+
+set-trinityver
+
+DESCRIPTION="aRts, the Trinity sound (and all-around multimedia) server/output manager"
+HOMEPAGE="http://trinitydesktop.org/"
+
+LICENSE="GPL-2"
+KEYWORDS=
+IUSE="alsa -artswrappersuid jack mp3 nas vorbis"
+SLOT="$TRINITY_VER"
+
+DEPEND="dev-qt/tqtinterface
+ dev-libs/glib:2
+ media-libs/audiofile
+ mp3? ( media-libs/libmad )
+ nas? ( media-libs/nas )
+ alsa? ( media-libs/alsa-lib )
+ vorbis? ( media-libs/libogg media-libs/libvorbis )
+ jack? ( >=media-sound/jack-audio-connection-kit-0.90 )"
+RDEPEND="${RDEPEND}"
+
+src_configure() {
+ mycmakeargs=(
+ -DAUDIOFILE=ON
+ $(cmake-utils_use_with mp3 MAD)
+ $(cmake-utils_use_with nas NAS)
+ $(cmake-utils_use_with alsa ALSA)
+ $(cmake-utils_use_with vorbis VORBIS)
+ $(cmake-utils_use_with jack JACK)
+ # NOTE: WITH_ESD dropped due to remove of esound long ago
+ )
+
+ trinity-base_src_configure
+}
+
+src_install() {
+ trinity-base_src_install
+
+ # used for realtime priority, but off by default as it is a security hazard
+ use artswrappersuid && chmod u+s "${D}/${PREFIX}/bin/artswrapper"
+}
+
+pkg_postinst() {
+ if ! use artswrappersuid ; then
+ elog "Run chmod u+s ${PREFIX}/bin/artswrapper to let artsd use realtime priority"
+ elog "and so avoid possible skips in sound. However, on untrusted systems this"
+ elog "creates the possibility of a DoS attack that'll use 100% cpu at realtime"
+ elog "priority, and so is off by default. See bug #7883."
+ elog "Or, you can set the local artswrappersuid USE flag to make the ebuild do this."
+ fi
+}
diff --git a/gentoo/trinity-base/arts/metadata.xml b/gentoo/trinity-base/arts/metadata.xml
new file mode 100644
index 000000000..c4cdfec98
--- /dev/null
+++ b/gentoo/trinity-base/arts/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+ <use>
+ <flag name="artswrappersuid">Set artswrapper suid for realtime playing, which is a security hazard</flag>
+ </use>
+
+</pkgmetadata>
diff --git a/gentoo/trinity-base/certmanager/Manifest b/gentoo/trinity-base/certmanager/Manifest
new file mode 100644
index 000000000..d6ce26a13
--- /dev/null
+++ b/gentoo/trinity-base/certmanager/Manifest
@@ -0,0 +1 @@
+DIST kdepim-trinity-3.5.13.2.tar.xz 10148724 SHA256 2cbd61e28322e4c7d67ffb16ac59329b3f15ba1a4485095994b9bce6786df7c4 SHA512 a84319183813dc78dc97397c8c3871faa3961b458eda8107525b8b9c6789d13aedd8e3c7cb0706c4ca8dd63f69ff67de02716219c8af44ebf96d484d820eb2bf WHIRLPOOL 907d9d86f1b0094b915989ca7f0feb4f67ac1b238a4c6d176ab1ef9164eff78778b2714ebedeb40de28536a8384b39ec7e637f1bb6911cccb40f7d8663811edb
diff --git a/gentoo/trinity-base/certmanager/certmanager-3.5.13.2.ebuild b/gentoo/trinity-base/certmanager/certmanager-3.5.13.2.ebuild
new file mode 100644
index 000000000..473d1a626
--- /dev/null
+++ b/gentoo/trinity-base/certmanager/certmanager-3.5.13.2.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdepim"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity certificate manager gui"
+KEYWORDS="~amd64 ~x86"
+IUSE+=""
+
+COMMON_DEPEND=">=trinity-base/libkdenetwork-${PV}:${SLOT}
+ >=app-crypt/gpgme-1.1.2-r1
+ || ( >=app-crypt/gnupg-2.0.1-r1 <app-crypt/gnupg-1.9 )"
+ #CHECKME: this is an old kde3-times assertion
+ # We use GnuPG 1.4.x for OpenPGP and 1.9 (via gpgme) for s/mime as upstream advises.
+DEPEND+=" ${COMMON_DEPEND}"
+RDEPEND+=" ${COMMON_DEPEND}"
+
+TSM_EXTRACT_ALSO="libkdepim/ libkpgp/ libkdenetwork/"
+
+pkg_postinst() {
+ trinity-meta_pkg_postinst
+ elog "For X.509 CRL and OCSP support, install app-crypt/dirmngr, please."
+}
diff --git a/gentoo/trinity-base/certmanager/certmanager-9999.ebuild b/gentoo/trinity-base/certmanager/certmanager-9999.ebuild
new file mode 100644
index 000000000..6b91e2448
--- /dev/null
+++ b/gentoo/trinity-base/certmanager/certmanager-9999.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdepim"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity certificate manager gui"
+KEYWORDS=""
+IUSE+=""
+
+COMMON_DEPEND=">=trinity-base/libtdenetwork-${PV}:${SLOT}
+ >=app-crypt/gpgme-1.1.2-r1
+ || ( >=app-crypt/gnupg-2.0.1-r1 <app-crypt/gnupg-1.9 )"
+ #CHECKME: this is an old kde3-times assertion
+ # We use GnuPG 1.4.x for OpenPGP and 1.9 (via gpgme) for s/mime as upstream advises.
+DEPEND+=" ${COMMON_DEPEND}"
+RDEPEND+=" ${COMMON_DEPEND}"
+
+TSM_EXTRACT_ALSO="libtdepim/ libkpgp/ libtdenetwork/"
+
+pkg_postinst() {
+ trinity-meta_pkg_postinst
+ elog "For X.509 CRL and OCSP support, install app-crypt/dirmngr, please."
+}
diff --git a/gentoo/trinity-base/certmanager/metadata.xml b/gentoo/trinity-base/certmanager/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/certmanager/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/dcoprss/Manifest b/gentoo/trinity-base/dcoprss/Manifest
new file mode 100644
index 000000000..1d49700dc
--- /dev/null
+++ b/gentoo/trinity-base/dcoprss/Manifest
@@ -0,0 +1 @@
+DIST kdenetwork-3.5.13.1.tar.gz 8794225 SHA256 21e69e8cb2550561c26913a5cccdc376115f50cffd43f9a94f7a660a303f46f9 SHA512 b3189a9f5e9cddd130b24a82b95ef90db1ec3c7afa280a46101ba7cbf6f9d92f60a536401f648a96459ba87f70ede5f7ae4affe894515a8e858b40ee79cb1b69 WHIRLPOOL de678ab30e3aa8dc3068c895fd000fdab1bc046e272273bf44196a198210efab82ddde3c5e0ffaa863061e9c56e3a8a68ca2f8f03cd77136755f66688f878c65
diff --git a/gentoo/trinity-base/dcoprss/dcoprss-3.5.13.1.ebuild b/gentoo/trinity-base/dcoprss/dcoprss-3.5.13.1.ebuild
new file mode 100644
index 000000000..def15367a
--- /dev/null
+++ b/gentoo/trinity-base/dcoprss/dcoprss-3.5.13.1.ebuild
@@ -0,0 +1,16 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdenetwork"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity RSS server and client for DCOP"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND=">=trinity-base/librss-${PV}:${SLOT}"
+RDEPEND="${DEPEND}"
+
+TSM_EXTRACT_ALSO="librss/"
diff --git a/gentoo/trinity-base/dcoprss/dcoprss-9999.ebuild b/gentoo/trinity-base/dcoprss/dcoprss-9999.ebuild
new file mode 100644
index 000000000..f085b330b
--- /dev/null
+++ b/gentoo/trinity-base/dcoprss/dcoprss-9999.ebuild
@@ -0,0 +1,16 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdenetwork"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity RSS server and client for DCOP"
+KEYWORDS=
+IUSE=""
+
+DEPEND=">=trinity-base/librss-${PV}:${SLOT}"
+RDEPEND="${DEPEND}"
+
+TSM_EXTRACT_ALSO="librss/"
diff --git a/gentoo/trinity-base/dcoprss/metadata.xml b/gentoo/trinity-base/dcoprss/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/dcoprss/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/drkonqi/Manifest b/gentoo/trinity-base/drkonqi/Manifest
new file mode 100644
index 000000000..381340c4b
--- /dev/null
+++ b/gentoo/trinity-base/drkonqi/Manifest
@@ -0,0 +1,2 @@
+DIST kdebase-3.5.13.1.tar.gz 29403228 SHA256 ddd4bd4b508ad027b9d1af2701c6ba64bfc9f8f1d32099e6dd5e7866714f759e SHA512 e1aac19c941a5f2b43a57928fdb43e5ebd646f49c60911d9d317550df96642870792c4e77ecd06e123244e2425ccd4bcb00f0a21011ba7e651d7fcf4553e79cf WHIRLPOOL 931debbf6a65c280221025dcbc02cbb3387b66eb72eddd28a510ee8f97075cd2cc96535dde25d0a32280c399e4a868e9c027772f5d28e7e79b7c1a9080c58034
+DIST kdebase-trinity-3.5.13.2.tar.xz 25890636 SHA256 b9d552226daff64437dfb9699669b95dd7ebc2ca7c43755ba71c10cc6c9ed789 SHA512 df545d44c7d4550d1d77ff6504572b622853c2b8d80062b1aee1a5bdca19f0e708cde35cff54cf2d5098f06a41bde0c89522a3958dea9bb18205dea87c11b797 WHIRLPOOL 79144273bc7985c59a593a3394b12a2053532d2c4c890ce96adad21f6de0413baf3c6270d6d06173ec4546b20d401aa0cc81603d01b8ee41dbdefc825b39b2b1
diff --git a/gentoo/trinity-base/drkonqi/drkonqi-3.5.13.1.ebuild b/gentoo/trinity-base/drkonqi/drkonqi-3.5.13.1.ebuild
new file mode 100644
index 000000000..bfb91450a
--- /dev/null
+++ b/gentoo/trinity-base/drkonqi/drkonqi-3.5.13.1.ebuild
@@ -0,0 +1,13 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity crash handler gives the user feedback if a program crashed"
+KEYWORDS="x86 amd64"
+IUSE=""
+
+RDEPEND="sys-devel/gdb"
diff --git a/gentoo/trinity-base/drkonqi/drkonqi-3.5.13.2.ebuild b/gentoo/trinity-base/drkonqi/drkonqi-3.5.13.2.ebuild
new file mode 100644
index 000000000..010e9de1b
--- /dev/null
+++ b/gentoo/trinity-base/drkonqi/drkonqi-3.5.13.2.ebuild
@@ -0,0 +1,13 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity crash handler gives the user feedback if a program crashed"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="sys-devel/gdb"
diff --git a/gentoo/trinity-base/drkonqi/drkonqi-9999.ebuild b/gentoo/trinity-base/drkonqi/drkonqi-9999.ebuild
new file mode 100644
index 000000000..8d7d6b044
--- /dev/null
+++ b/gentoo/trinity-base/drkonqi/drkonqi-9999.ebuild
@@ -0,0 +1,13 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity crash handler gives the user feedback if a program crashed"
+KEYWORDS=
+IUSE=""
+
+RDEPEND="sys-devel/gdb"
diff --git a/gentoo/trinity-base/drkonqi/files/shared b/gentoo/trinity-base/drkonqi/files/shared
new file mode 120000
index 000000000..ffc286806
--- /dev/null
+++ b/gentoo/trinity-base/drkonqi/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files \ No newline at end of file
diff --git a/gentoo/trinity-base/drkonqi/metadata.xml b/gentoo/trinity-base/drkonqi/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/drkonqi/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/eyesapplet/Manifest b/gentoo/trinity-base/eyesapplet/Manifest
new file mode 100644
index 000000000..23ad50106
--- /dev/null
+++ b/gentoo/trinity-base/eyesapplet/Manifest
@@ -0,0 +1,2 @@
+DIST kdetoys-3.5.13.1.tar.gz 3037255 SHA256 41e4224bcf816e52877b17d2dcdc86d94e8f304fee2d3fb35b97921544eafd9d SHA512 e7cd7943004e5d1ec83c0fe484fab82f2cdd5f5d39ee77db419938f023cd3c42ba0b257d0ddc783de7bd528c90195821d810babfa193c60856437593c24ce879 WHIRLPOOL 8d482537f972a24b1cef9ad789edd314517f4e3a6b37056f47d92292c8c30e70def24e99efc552b4504503e2224e1209ae946ff34ac94feaf128c038c54f010d
+DIST kdetoys-trinity-3.5.13.2.tar.xz 2757260 SHA256 a0533ceb6fb103600eb33ef3136d40f84ec826e24e0b95cc45e68ef73a5232f6 SHA512 eb67a70d75a473f885db8993f5eebd3480e68e43e4de60240fde411696ed8b895029505a5125fe51a41d6ccb583ba50c4c67465d770f14f9a1c1533281154f78 WHIRLPOOL d79f58085d2af17453fc50c621ea6fe6909d476cf5f0a6b6ccf51ef69eed0ba073091f587439eb5afd644e0286dfe2ee86ccd903346d3060c3fe90299511018a
diff --git a/gentoo/trinity-base/eyesapplet/eyesapplet-3.5.13.1.ebuild b/gentoo/trinity-base/eyesapplet/eyesapplet-3.5.13.1.ebuild
new file mode 100644
index 000000000..dd7965688
--- /dev/null
+++ b/gentoo/trinity-base/eyesapplet/eyesapplet-3.5.13.1.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdetoys"
+
+inherit trinity-meta
+
+DESCRIPTION="kicker applet: eyes following the movement of the mouse pointer"
+KEYWORDS="amd64 x86"
+IUSE=""
diff --git a/gentoo/trinity-base/eyesapplet/eyesapplet-3.5.13.2.ebuild b/gentoo/trinity-base/eyesapplet/eyesapplet-3.5.13.2.ebuild
new file mode 100644
index 000000000..5660d0e05
--- /dev/null
+++ b/gentoo/trinity-base/eyesapplet/eyesapplet-3.5.13.2.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdetoys"
+
+inherit trinity-meta
+
+DESCRIPTION="kicker applet: eyes following the movement of the mouse pointer"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
diff --git a/gentoo/trinity-base/eyesapplet/eyesapplet-9999.ebuild b/gentoo/trinity-base/eyesapplet/eyesapplet-9999.ebuild
new file mode 100644
index 000000000..3f78cc3a5
--- /dev/null
+++ b/gentoo/trinity-base/eyesapplet/eyesapplet-9999.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdetoys"
+
+inherit trinity-meta
+
+DESCRIPTION="kicker applet: eyes following the movement of the mouse pointer"
+KEYWORDS=
+IUSE=""
diff --git a/gentoo/trinity-base/eyesapplet/files/shared b/gentoo/trinity-base/eyesapplet/files/shared
new file mode 120000
index 000000000..af62be31d
--- /dev/null
+++ b/gentoo/trinity-base/eyesapplet/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files/ \ No newline at end of file
diff --git a/gentoo/trinity-base/eyesapplet/metadata.xml b/gentoo/trinity-base/eyesapplet/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/eyesapplet/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/fifteenapplet/Manifest b/gentoo/trinity-base/fifteenapplet/Manifest
new file mode 100644
index 000000000..23ad50106
--- /dev/null
+++ b/gentoo/trinity-base/fifteenapplet/Manifest
@@ -0,0 +1,2 @@
+DIST kdetoys-3.5.13.1.tar.gz 3037255 SHA256 41e4224bcf816e52877b17d2dcdc86d94e8f304fee2d3fb35b97921544eafd9d SHA512 e7cd7943004e5d1ec83c0fe484fab82f2cdd5f5d39ee77db419938f023cd3c42ba0b257d0ddc783de7bd528c90195821d810babfa193c60856437593c24ce879 WHIRLPOOL 8d482537f972a24b1cef9ad789edd314517f4e3a6b37056f47d92292c8c30e70def24e99efc552b4504503e2224e1209ae946ff34ac94feaf128c038c54f010d
+DIST kdetoys-trinity-3.5.13.2.tar.xz 2757260 SHA256 a0533ceb6fb103600eb33ef3136d40f84ec826e24e0b95cc45e68ef73a5232f6 SHA512 eb67a70d75a473f885db8993f5eebd3480e68e43e4de60240fde411696ed8b895029505a5125fe51a41d6ccb583ba50c4c67465d770f14f9a1c1533281154f78 WHIRLPOOL d79f58085d2af17453fc50c621ea6fe6909d476cf5f0a6b6ccf51ef69eed0ba073091f587439eb5afd644e0286dfe2ee86ccd903346d3060c3fe90299511018a
diff --git a/gentoo/trinity-base/fifteenapplet/fifteenapplet-3.5.13.1.ebuild b/gentoo/trinity-base/fifteenapplet/fifteenapplet-3.5.13.1.ebuild
new file mode 100644
index 000000000..79103ef15
--- /dev/null
+++ b/gentoo/trinity-base/fifteenapplet/fifteenapplet-3.5.13.1.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdetoys"
+
+inherit trinity-meta
+
+DESCRIPTION="kicker plugin for the 15-game"
+KEYWORDS="amd64 x86"
+IUSE=""
diff --git a/gentoo/trinity-base/fifteenapplet/fifteenapplet-3.5.13.2.ebuild b/gentoo/trinity-base/fifteenapplet/fifteenapplet-3.5.13.2.ebuild
new file mode 100644
index 000000000..b38224d41
--- /dev/null
+++ b/gentoo/trinity-base/fifteenapplet/fifteenapplet-3.5.13.2.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdetoys"
+
+inherit trinity-meta
+
+DESCRIPTION="kicker plugin for the 15-game"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
diff --git a/gentoo/trinity-base/fifteenapplet/fifteenapplet-9999.ebuild b/gentoo/trinity-base/fifteenapplet/fifteenapplet-9999.ebuild
new file mode 100644
index 000000000..68355a9c0
--- /dev/null
+++ b/gentoo/trinity-base/fifteenapplet/fifteenapplet-9999.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdetoys"
+
+inherit trinity-meta
+
+DESCRIPTION="kicker plugin for the 15-game"
+KEYWORDS=
+IUSE=""
diff --git a/gentoo/trinity-base/fifteenapplet/files/shared b/gentoo/trinity-base/fifteenapplet/files/shared
new file mode 120000
index 000000000..af62be31d
--- /dev/null
+++ b/gentoo/trinity-base/fifteenapplet/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files/ \ No newline at end of file
diff --git a/gentoo/trinity-base/fifteenapplet/metadata.xml b/gentoo/trinity-base/fifteenapplet/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/fifteenapplet/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kaddressbook-plugins/kaddressbook-plugins-9999.ebuild b/gentoo/trinity-base/kaddressbook-plugins/kaddressbook-plugins-9999.ebuild
new file mode 100644
index 000000000..5bf621c23
--- /dev/null
+++ b/gentoo/trinity-base/kaddressbook-plugins/kaddressbook-plugins-9999.ebuild
@@ -0,0 +1,14 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdeaddons"
+
+inherit trinity-meta
+
+DESCRIPTION="Plugins for Trinity Addressbook"
+KEYWORDS=""
+IUSE+=""
+DEPEND=">=trinity-base/kaddressbook-${PV}:${SLOT}"
+
+RDEPEND="${DEPEND}"
diff --git a/gentoo/trinity-base/kaddressbook-plugins/metadata.xml b/gentoo/trinity-base/kaddressbook-plugins/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kaddressbook-plugins/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kaddressbook/Manifest b/gentoo/trinity-base/kaddressbook/Manifest
new file mode 100644
index 000000000..d6ce26a13
--- /dev/null
+++ b/gentoo/trinity-base/kaddressbook/Manifest
@@ -0,0 +1 @@
+DIST kdepim-trinity-3.5.13.2.tar.xz 10148724 SHA256 2cbd61e28322e4c7d67ffb16ac59329b3f15ba1a4485095994b9bce6786df7c4 SHA512 a84319183813dc78dc97397c8c3871faa3961b458eda8107525b8b9c6789d13aedd8e3c7cb0706c4ca8dd63f69ff67de02716219c8af44ebf96d484d820eb2bf WHIRLPOOL 907d9d86f1b0094b915989ca7f0feb4f67ac1b238a4c6d176ab1ef9164eff78778b2714ebedeb40de28536a8384b39ec7e637f1bb6911cccb40f7d8663811edb
diff --git a/gentoo/trinity-base/kaddressbook/kaddressbook-3.5.13.2.ebuild b/gentoo/trinity-base/kaddressbook/kaddressbook-3.5.13.2.ebuild
new file mode 100644
index 000000000..9e41727b0
--- /dev/null
+++ b/gentoo/trinity-base/kaddressbook/kaddressbook-3.5.13.2.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdepim"
+
+inherit trinity-meta
+
+DESCRIPTION="The Trinity Address Book"
+KEYWORDS="~amd64 ~x86"
+IUSE+=" gnokii"
+
+COMMON_DEPEND=">=trinity-base/libkdepim-${PV}:${SLOT}
+ >=trinity-base/libkcal-${PV}:${SLOT}
+ >=trinity-base/certmanager-${PV}:${SLOT}
+ >=trinity-base/libkdenetwork-${PV}:${SLOT}
+ gnokii? ( app-mobilephone/gnokii )"
+
+DEPEND+=" ${COMMON_DEPEND}"
+RDEPEND+=" ${COMMON_DEPEND}"
+
+TSM_EXTRACT_ALSO="certmanager/lib/
+ libkdepim/
+ libkdenetwork/
+ libkcal/
+ libemailfunctions/"
+
+src_configure () {
+ mycmakeargs=(
+ $(cmake-utils_use_with gnokii GNOKII )
+ )
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-base/kaddressbook/kaddressbook-9999.ebuild b/gentoo/trinity-base/kaddressbook/kaddressbook-9999.ebuild
new file mode 100644
index 000000000..691eec198
--- /dev/null
+++ b/gentoo/trinity-base/kaddressbook/kaddressbook-9999.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdepim"
+
+inherit trinity-meta
+
+DESCRIPTION="The Trinity Address Book"
+KEYWORDS=""
+IUSE+=" gnokii"
+
+COMMON_DEPEND=">=trinity-base/libtdepim-${PV}:${SLOT}
+ >=trinity-base/libkcal-${PV}:${SLOT}
+ >=trinity-base/certmanager-${PV}:${SLOT}
+ >=trinity-base/libtdenetwork-${PV}:${SLOT}
+ gnokii? ( app-mobilephone/gnokii )"
+
+DEPEND+=" ${COMMON_DEPEND}"
+RDEPEND+=" ${COMMON_DEPEND}"
+
+TSM_EXTRACT_ALSO="certmanager/lib/
+ libtdepim/
+ libtdenetwork/
+ libkcal/
+ libemailfunctions/"
+
+src_configure () {
+ mycmakeargs=(
+ $(cmake-utils_use_with gnokii GNOKII )
+ )
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-base/kaddressbook/metadata.xml b/gentoo/trinity-base/kaddressbook/metadata.xml
new file mode 100644
index 000000000..a79c18aa6
--- /dev/null
+++ b/gentoo/trinity-base/kaddressbook/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+ <use>
+ <flag name="gnokii"> Build with support for <pkg>app-mobilephone/gnokii</pkg></flag>
+ </use>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kamera/Manifest b/gentoo/trinity-base/kamera/Manifest
new file mode 100644
index 000000000..f0ba54e9a
--- /dev/null
+++ b/gentoo/trinity-base/kamera/Manifest
@@ -0,0 +1 @@
+DIST kdegraphics-3.5.13.1.tar.gz 7526074 SHA256 19bd36e261bb6c5d2c9c1eba5f736c642b48422d917d44e576835f7ebb44906b SHA512 693e5ad70dbb00c587e588acfb81fc9475c3a4dbc86f41d6053c0584c533349a7564e34b870cb7bbc57361ac539da6f7d7f1b002ac3cfe8b0201db3eeb9147dd WHIRLPOOL fd2c46c517b3a0293880eaf35967295485555b936d0f1e80e0f2c261a1164cfcc5c4b2d943a12c073914d33b59974cc2dd92a78414614caa10f46dd048d518b4
diff --git a/gentoo/trinity-base/kamera/kamera-3.5.13.1.ebuild b/gentoo/trinity-base/kamera/kamera-3.5.13.1.ebuild
new file mode 100644
index 000000000..adf2f4051
--- /dev/null
+++ b/gentoo/trinity-base/kamera/kamera-3.5.13.1.ebuild
@@ -0,0 +1,14 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdegraphics"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity digital camera manager"
+KEYWORDS="x86 amd64"
+IUSE=""
+
+DEPEND="media-libs/libgphoto2"
+RDEPEND="$DEPEND"
diff --git a/gentoo/trinity-base/kamera/kamera-9999.ebuild b/gentoo/trinity-base/kamera/kamera-9999.ebuild
new file mode 100644
index 000000000..106885353
--- /dev/null
+++ b/gentoo/trinity-base/kamera/kamera-9999.ebuild
@@ -0,0 +1,14 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdegraphics"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity digital camera manager"
+KEYWORDS=
+IUSE=""
+
+DEPEND="media-libs/libgphoto2"
+RDEPEND="$DEPEND"
diff --git a/gentoo/trinity-base/kamera/metadata.xml b/gentoo/trinity-base/kamera/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kamera/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kappfinder/Manifest b/gentoo/trinity-base/kappfinder/Manifest
new file mode 100644
index 000000000..381340c4b
--- /dev/null
+++ b/gentoo/trinity-base/kappfinder/Manifest
@@ -0,0 +1,2 @@
+DIST kdebase-3.5.13.1.tar.gz 29403228 SHA256 ddd4bd4b508ad027b9d1af2701c6ba64bfc9f8f1d32099e6dd5e7866714f759e SHA512 e1aac19c941a5f2b43a57928fdb43e5ebd646f49c60911d9d317550df96642870792c4e77ecd06e123244e2425ccd4bcb00f0a21011ba7e651d7fcf4553e79cf WHIRLPOOL 931debbf6a65c280221025dcbc02cbb3387b66eb72eddd28a510ee8f97075cd2cc96535dde25d0a32280c399e4a868e9c027772f5d28e7e79b7c1a9080c58034
+DIST kdebase-trinity-3.5.13.2.tar.xz 25890636 SHA256 b9d552226daff64437dfb9699669b95dd7ebc2ca7c43755ba71c10cc6c9ed789 SHA512 df545d44c7d4550d1d77ff6504572b622853c2b8d80062b1aee1a5bdca19f0e708cde35cff54cf2d5098f06a41bde0c89522a3958dea9bb18205dea87c11b797 WHIRLPOOL 79144273bc7985c59a593a3394b12a2053532d2c4c890ce96adad21f6de0413baf3c6270d6d06173ec4546b20d401aa0cc81603d01b8ee41dbdefc825b39b2b1
diff --git a/gentoo/trinity-base/kappfinder/files/shared b/gentoo/trinity-base/kappfinder/files/shared
new file mode 120000
index 000000000..ffc286806
--- /dev/null
+++ b/gentoo/trinity-base/kappfinder/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files \ No newline at end of file
diff --git a/gentoo/trinity-base/kappfinder/kappfinder-3.5.13.1.ebuild b/gentoo/trinity-base/kappfinder/kappfinder-3.5.13.1.ebuild
new file mode 100644
index 000000000..04e7dfdd0
--- /dev/null
+++ b/gentoo/trinity-base/kappfinder/kappfinder-3.5.13.1.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity tool that generates *.desktop files for well known apps"
+KEYWORDS="x86 amd64"
+IUSE=""
diff --git a/gentoo/trinity-base/kappfinder/kappfinder-3.5.13.2.ebuild b/gentoo/trinity-base/kappfinder/kappfinder-3.5.13.2.ebuild
new file mode 100644
index 000000000..4efc413ec
--- /dev/null
+++ b/gentoo/trinity-base/kappfinder/kappfinder-3.5.13.2.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity tool that generates *.desktop files for well known apps"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
diff --git a/gentoo/trinity-base/kappfinder/kappfinder-9999.ebuild b/gentoo/trinity-base/kappfinder/kappfinder-9999.ebuild
new file mode 100644
index 000000000..1282b2c4d
--- /dev/null
+++ b/gentoo/trinity-base/kappfinder/kappfinder-9999.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity tool that generates *.desktop files for well known apps"
+KEYWORDS=
+IUSE=""
diff --git a/gentoo/trinity-base/kappfinder/metadata.xml b/gentoo/trinity-base/kappfinder/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kappfinder/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kate-plugins/kate-plugins-9999.ebuild b/gentoo/trinity-base/kate-plugins/kate-plugins-9999.ebuild
new file mode 100644
index 000000000..13c292e8d
--- /dev/null
+++ b/gentoo/trinity-base/kate-plugins/kate-plugins-9999.ebuild
@@ -0,0 +1,14 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdeaddons"
+TSM_EXTRACT="kate"
+
+inherit trinity-meta
+
+DESCRIPTION="kate plugins and docs"
+KEYWORDS=""
+IUSE+=""
+DEPEND=">=trinity-base/kate-${PV}:${SLOT}"
+RDEPEND="${DEPEND}"
diff --git a/gentoo/trinity-base/kate-plugins/metadata.xml b/gentoo/trinity-base/kate-plugins/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kate-plugins/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kate/Manifest b/gentoo/trinity-base/kate/Manifest
new file mode 100644
index 000000000..381340c4b
--- /dev/null
+++ b/gentoo/trinity-base/kate/Manifest
@@ -0,0 +1,2 @@
+DIST kdebase-3.5.13.1.tar.gz 29403228 SHA256 ddd4bd4b508ad027b9d1af2701c6ba64bfc9f8f1d32099e6dd5e7866714f759e SHA512 e1aac19c941a5f2b43a57928fdb43e5ebd646f49c60911d9d317550df96642870792c4e77ecd06e123244e2425ccd4bcb00f0a21011ba7e651d7fcf4553e79cf WHIRLPOOL 931debbf6a65c280221025dcbc02cbb3387b66eb72eddd28a510ee8f97075cd2cc96535dde25d0a32280c399e4a868e9c027772f5d28e7e79b7c1a9080c58034
+DIST kdebase-trinity-3.5.13.2.tar.xz 25890636 SHA256 b9d552226daff64437dfb9699669b95dd7ebc2ca7c43755ba71c10cc6c9ed789 SHA512 df545d44c7d4550d1d77ff6504572b622853c2b8d80062b1aee1a5bdca19f0e708cde35cff54cf2d5098f06a41bde0c89522a3958dea9bb18205dea87c11b797 WHIRLPOOL 79144273bc7985c59a593a3394b12a2053532d2c4c890ce96adad21f6de0413baf3c6270d6d06173ec4546b20d401aa0cc81603d01b8ee41dbdefc825b39b2b1
diff --git a/gentoo/trinity-base/kate/files/shared b/gentoo/trinity-base/kate/files/shared
new file mode 120000
index 000000000..ffc286806
--- /dev/null
+++ b/gentoo/trinity-base/kate/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files \ No newline at end of file
diff --git a/gentoo/trinity-base/kate/kate-3.5.13.1.ebuild b/gentoo/trinity-base/kate/kate-3.5.13.1.ebuild
new file mode 100644
index 000000000..42a04559b
--- /dev/null
+++ b/gentoo/trinity-base/kate/kate-3.5.13.1.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="Kate is an MDI texteditor."
+KEYWORDS="x86 amd64"
+IUSE=""
diff --git a/gentoo/trinity-base/kate/kate-3.5.13.2.ebuild b/gentoo/trinity-base/kate/kate-3.5.13.2.ebuild
new file mode 100644
index 000000000..7703f9c31
--- /dev/null
+++ b/gentoo/trinity-base/kate/kate-3.5.13.2.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="Kate is an MDI texteditor."
+KEYWORDS="~amd64 ~x86"
+IUSE=""
diff --git a/gentoo/trinity-base/kate/kate-9999.ebuild b/gentoo/trinity-base/kate/kate-9999.ebuild
new file mode 100644
index 000000000..c183eec18
--- /dev/null
+++ b/gentoo/trinity-base/kate/kate-9999.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="Kate is an MDI texteditor."
+KEYWORDS=
+IUSE=""
diff --git a/gentoo/trinity-base/kate/metadata.xml b/gentoo/trinity-base/kate/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kate/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kcalc/Manifest b/gentoo/trinity-base/kcalc/Manifest
new file mode 100644
index 000000000..c59ac62b4
--- /dev/null
+++ b/gentoo/trinity-base/kcalc/Manifest
@@ -0,0 +1,2 @@
+DIST kdeutils-3.5.13.1.tar.gz 2829393 SHA256 3e7ab07fe1bb3e7be7ac3a3796366c88d3b79a58af911546e2c65e32363db527 SHA512 48733e472d0f5da85ef8a32ed6db7fa5e61f0682e49842439e6ea38a1e407059bb35efffe41fc6ed1a718511fd5b2b2c8222d816a23500a4dcbca17461f9a3bd WHIRLPOOL 1488e0c44f60b4d5e397dd2cf93de048eae1b915d4b2b7b1cf27768946f5aae3b5bcc3971ee28b5fa6a57a0b94cca6db0866138b69ad74f1f7bb97cdaaebdbe2
+DIST kdeutils-trinity-3.5.13.2.tar.xz 2259232 SHA256 b2999b9ef39bb2f269b84fdf34a814b5a5599aae7d05538d0bf680c18fb334fa SHA512 f501aa4b61bf440e873eec96f09c0c24ad780db2f9f14b884001c04c04aafccb5afb2b492dcf4fc640f3ec35d86aa419d67936122648a986662cd7b7f4f8a2d8 WHIRLPOOL 49296006875250212f0fdeb0c90c4f69cf0aa7cfd38415e2f7b50bdf81754de64562df2400f4932a502adbe84b58be34cae6c029d68cc62d0e91de5158513239
diff --git a/gentoo/trinity-base/kcalc/files/shared b/gentoo/trinity-base/kcalc/files/shared
new file mode 120000
index 000000000..af62be31d
--- /dev/null
+++ b/gentoo/trinity-base/kcalc/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files/ \ No newline at end of file
diff --git a/gentoo/trinity-base/kcalc/kcalc-3.5.13.1.ebuild b/gentoo/trinity-base/kcalc/kcalc-3.5.13.1.ebuild
new file mode 100644
index 000000000..37989f20c
--- /dev/null
+++ b/gentoo/trinity-base/kcalc/kcalc-3.5.13.1.ebuild
@@ -0,0 +1,14 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdeutils"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity calculator"
+KEYWORDS="x86 amd64"
+IUSE=""
+
+DEPEND="dev-libs/gmp:*"
+RDEPEND="${DEPEND}"
diff --git a/gentoo/trinity-base/kcalc/kcalc-3.5.13.2.ebuild b/gentoo/trinity-base/kcalc/kcalc-3.5.13.2.ebuild
new file mode 100644
index 000000000..00e77886d
--- /dev/null
+++ b/gentoo/trinity-base/kcalc/kcalc-3.5.13.2.ebuild
@@ -0,0 +1,14 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdeutils"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity calculator"
+KEYWORDS="~x86 ~amd64"
+IUSE=""
+
+DEPEND="dev-libs/gmp:*"
+RDEPEND="${DEPEND}"
diff --git a/gentoo/trinity-base/kcalc/kcalc-9999.ebuild b/gentoo/trinity-base/kcalc/kcalc-9999.ebuild
new file mode 100644
index 000000000..e48e1774c
--- /dev/null
+++ b/gentoo/trinity-base/kcalc/kcalc-9999.ebuild
@@ -0,0 +1,14 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdeutils"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity calculator"
+KEYWORDS=""
+IUSE=""
+
+DEPEND="dev-libs/gmp:*"
+RDEPEND="${DEPEND}"
diff --git a/gentoo/trinity-base/kcalc/metadata.xml b/gentoo/trinity-base/kcalc/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kcalc/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kcharselect/Manifest b/gentoo/trinity-base/kcharselect/Manifest
new file mode 100644
index 000000000..c59ac62b4
--- /dev/null
+++ b/gentoo/trinity-base/kcharselect/Manifest
@@ -0,0 +1,2 @@
+DIST kdeutils-3.5.13.1.tar.gz 2829393 SHA256 3e7ab07fe1bb3e7be7ac3a3796366c88d3b79a58af911546e2c65e32363db527 SHA512 48733e472d0f5da85ef8a32ed6db7fa5e61f0682e49842439e6ea38a1e407059bb35efffe41fc6ed1a718511fd5b2b2c8222d816a23500a4dcbca17461f9a3bd WHIRLPOOL 1488e0c44f60b4d5e397dd2cf93de048eae1b915d4b2b7b1cf27768946f5aae3b5bcc3971ee28b5fa6a57a0b94cca6db0866138b69ad74f1f7bb97cdaaebdbe2
+DIST kdeutils-trinity-3.5.13.2.tar.xz 2259232 SHA256 b2999b9ef39bb2f269b84fdf34a814b5a5599aae7d05538d0bf680c18fb334fa SHA512 f501aa4b61bf440e873eec96f09c0c24ad780db2f9f14b884001c04c04aafccb5afb2b492dcf4fc640f3ec35d86aa419d67936122648a986662cd7b7f4f8a2d8 WHIRLPOOL 49296006875250212f0fdeb0c90c4f69cf0aa7cfd38415e2f7b50bdf81754de64562df2400f4932a502adbe84b58be34cae6c029d68cc62d0e91de5158513239
diff --git a/gentoo/trinity-base/kcharselect/files/shared b/gentoo/trinity-base/kcharselect/files/shared
new file mode 120000
index 000000000..af62be31d
--- /dev/null
+++ b/gentoo/trinity-base/kcharselect/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files/ \ No newline at end of file
diff --git a/gentoo/trinity-base/kcharselect/kcharselect-3.5.13.1.ebuild b/gentoo/trinity-base/kcharselect/kcharselect-3.5.13.1.ebuild
new file mode 100644
index 000000000..a2bd385c9
--- /dev/null
+++ b/gentoo/trinity-base/kcharselect/kcharselect-3.5.13.1.ebuild
@@ -0,0 +1,12 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdeutils"
+TRINITY_SUBMODULE="${PN} charselectapplet"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity character selection utility and panel applet"
+KEYWORDS="x86 amd64"
+IUSE=""
diff --git a/gentoo/trinity-base/kcharselect/kcharselect-3.5.13.2.ebuild b/gentoo/trinity-base/kcharselect/kcharselect-3.5.13.2.ebuild
new file mode 100644
index 000000000..f333242bd
--- /dev/null
+++ b/gentoo/trinity-base/kcharselect/kcharselect-3.5.13.2.ebuild
@@ -0,0 +1,12 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdeutils"
+TRINITY_SUBMODULE="${PN} charselectapplet"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity character selection utility and panel applet"
+KEYWORDS="~x86 ~amd64"
+IUSE=""
diff --git a/gentoo/trinity-base/kcharselect/kcharselect-9999.ebuild b/gentoo/trinity-base/kcharselect/kcharselect-9999.ebuild
new file mode 100644
index 000000000..7904ab2fc
--- /dev/null
+++ b/gentoo/trinity-base/kcharselect/kcharselect-9999.ebuild
@@ -0,0 +1,12 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdeutils"
+TRINITY_SUBMODULE="${PN} charselectapplet"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity character selection utility and panel applet"
+KEYWORDS=""
+IUSE=""
diff --git a/gentoo/trinity-base/kcharselect/metadata.xml b/gentoo/trinity-base/kcharselect/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kcharselect/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kcheckpass/Manifest b/gentoo/trinity-base/kcheckpass/Manifest
new file mode 100644
index 000000000..381340c4b
--- /dev/null
+++ b/gentoo/trinity-base/kcheckpass/Manifest
@@ -0,0 +1,2 @@
+DIST kdebase-3.5.13.1.tar.gz 29403228 SHA256 ddd4bd4b508ad027b9d1af2701c6ba64bfc9f8f1d32099e6dd5e7866714f759e SHA512 e1aac19c941a5f2b43a57928fdb43e5ebd646f49c60911d9d317550df96642870792c4e77ecd06e123244e2425ccd4bcb00f0a21011ba7e651d7fcf4553e79cf WHIRLPOOL 931debbf6a65c280221025dcbc02cbb3387b66eb72eddd28a510ee8f97075cd2cc96535dde25d0a32280c399e4a868e9c027772f5d28e7e79b7c1a9080c58034
+DIST kdebase-trinity-3.5.13.2.tar.xz 25890636 SHA256 b9d552226daff64437dfb9699669b95dd7ebc2ca7c43755ba71c10cc6c9ed789 SHA512 df545d44c7d4550d1d77ff6504572b622853c2b8d80062b1aee1a5bdca19f0e708cde35cff54cf2d5098f06a41bde0c89522a3958dea9bb18205dea87c11b797 WHIRLPOOL 79144273bc7985c59a593a3394b12a2053532d2c4c890ce96adad21f6de0413baf3c6270d6d06173ec4546b20d401aa0cc81603d01b8ee41dbdefc825b39b2b1
diff --git a/gentoo/trinity-base/kcheckpass/files/shared b/gentoo/trinity-base/kcheckpass/files/shared
new file mode 120000
index 000000000..ffc286806
--- /dev/null
+++ b/gentoo/trinity-base/kcheckpass/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files \ No newline at end of file
diff --git a/gentoo/trinity-base/kcheckpass/kcheckpass-3.5.13.1.ebuild b/gentoo/trinity-base/kcheckpass/kcheckpass-3.5.13.1.ebuild
new file mode 100644
index 000000000..ccae69c9c
--- /dev/null
+++ b/gentoo/trinity-base/kcheckpass/kcheckpass-3.5.13.1.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="A simple password checker, used by any software in need of user authentication."
+KEYWORDS="x86 amd64"
+IUSE="pam"
+
+RDEPEND="
+ pam? ( trinity-base/tdebase-pam )"
+DEPEND="${RDEPEND}"
+
+src_configure() {
+ mycmakeargs=(
+ -D_WITH_SHADOW=ON
+ $(cmake-utils_use_with pam PAM)
+ )
+
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-base/kcheckpass/kcheckpass-3.5.13.2.ebuild b/gentoo/trinity-base/kcheckpass/kcheckpass-3.5.13.2.ebuild
new file mode 100644
index 000000000..326b05786
--- /dev/null
+++ b/gentoo/trinity-base/kcheckpass/kcheckpass-3.5.13.2.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="A simple password checker, used by any software in need of user authentication."
+KEYWORDS="~amd64 ~x86"
+IUSE="pam"
+
+RDEPEND="
+ pam? ( trinity-base/tdebase-pam )"
+DEPEND="${RDEPEND}"
+
+src_configure() {
+ mycmakeargs=(
+ -D_WITH_SHADOW=ON
+ $(cmake-utils_use_with pam PAM)
+ )
+
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-base/kcheckpass/kcheckpass-9999.ebuild b/gentoo/trinity-base/kcheckpass/kcheckpass-9999.ebuild
new file mode 100644
index 000000000..3e9cfadda
--- /dev/null
+++ b/gentoo/trinity-base/kcheckpass/kcheckpass-9999.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="A simple password checker, used by any software in need of user authentication."
+KEYWORDS=
+IUSE="pam"
+
+RDEPEND="
+ pam? ( virtual/pam )"
+DEPEND="${RDEPEND}"
+
+src_configure() {
+ mycmakeargs=(
+ $(cmake-utils_use_with pam PAM)
+ )
+
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-base/kcheckpass/metadata.xml b/gentoo/trinity-base/kcheckpass/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kcheckpass/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kcminit/Manifest b/gentoo/trinity-base/kcminit/Manifest
new file mode 100644
index 000000000..381340c4b
--- /dev/null
+++ b/gentoo/trinity-base/kcminit/Manifest
@@ -0,0 +1,2 @@
+DIST kdebase-3.5.13.1.tar.gz 29403228 SHA256 ddd4bd4b508ad027b9d1af2701c6ba64bfc9f8f1d32099e6dd5e7866714f759e SHA512 e1aac19c941a5f2b43a57928fdb43e5ebd646f49c60911d9d317550df96642870792c4e77ecd06e123244e2425ccd4bcb00f0a21011ba7e651d7fcf4553e79cf WHIRLPOOL 931debbf6a65c280221025dcbc02cbb3387b66eb72eddd28a510ee8f97075cd2cc96535dde25d0a32280c399e4a868e9c027772f5d28e7e79b7c1a9080c58034
+DIST kdebase-trinity-3.5.13.2.tar.xz 25890636 SHA256 b9d552226daff64437dfb9699669b95dd7ebc2ca7c43755ba71c10cc6c9ed789 SHA512 df545d44c7d4550d1d77ff6504572b622853c2b8d80062b1aee1a5bdca19f0e708cde35cff54cf2d5098f06a41bde0c89522a3958dea9bb18205dea87c11b797 WHIRLPOOL 79144273bc7985c59a593a3394b12a2053532d2c4c890ce96adad21f6de0413baf3c6270d6d06173ec4546b20d401aa0cc81603d01b8ee41dbdefc825b39b2b1
diff --git a/gentoo/trinity-base/kcminit/files/shared b/gentoo/trinity-base/kcminit/files/shared
new file mode 120000
index 000000000..ffc286806
--- /dev/null
+++ b/gentoo/trinity-base/kcminit/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files \ No newline at end of file
diff --git a/gentoo/trinity-base/kcminit/kcminit-3.5.13.1.ebuild b/gentoo/trinity-base/kcminit/kcminit-3.5.13.1.ebuild
new file mode 100644
index 000000000..c811abcea
--- /dev/null
+++ b/gentoo/trinity-base/kcminit/kcminit-3.5.13.1.ebuild
@@ -0,0 +1,17 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="KCMInit - runs startups initialization for Control Modules."
+KEYWORDS="x86 amd64"
+IUSE=""
+
+DEPEND="x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXrender
+ x11-libs/libXtst"
+RDEPEND="${RDEPEND}"
diff --git a/gentoo/trinity-base/kcminit/kcminit-3.5.13.2.ebuild b/gentoo/trinity-base/kcminit/kcminit-3.5.13.2.ebuild
new file mode 100644
index 000000000..c9666663b
--- /dev/null
+++ b/gentoo/trinity-base/kcminit/kcminit-3.5.13.2.ebuild
@@ -0,0 +1,17 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="KCMInit - runs startups initialization for Control Modules."
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXrender
+ x11-libs/libXtst"
+RDEPEND="${RDEPEND}"
diff --git a/gentoo/trinity-base/kcminit/kcminit-9999.ebuild b/gentoo/trinity-base/kcminit/kcminit-9999.ebuild
new file mode 100644
index 000000000..37d0f4093
--- /dev/null
+++ b/gentoo/trinity-base/kcminit/kcminit-9999.ebuild
@@ -0,0 +1,17 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="KCMInit - runs startups initialization for Control Modules."
+KEYWORDS=
+IUSE=""
+
+DEPEND="x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXrender
+ x11-libs/libXtst"
+RDEPEND="${RDEPEND}"
diff --git a/gentoo/trinity-base/kcminit/metadata.xml b/gentoo/trinity-base/kcminit/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kcminit/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kcoloredit/Manifest b/gentoo/trinity-base/kcoloredit/Manifest
new file mode 100644
index 000000000..f0ba54e9a
--- /dev/null
+++ b/gentoo/trinity-base/kcoloredit/Manifest
@@ -0,0 +1 @@
+DIST kdegraphics-3.5.13.1.tar.gz 7526074 SHA256 19bd36e261bb6c5d2c9c1eba5f736c642b48422d917d44e576835f7ebb44906b SHA512 693e5ad70dbb00c587e588acfb81fc9475c3a4dbc86f41d6053c0584c533349a7564e34b870cb7bbc57361ac539da6f7d7f1b002ac3cfe8b0201db3eeb9147dd WHIRLPOOL fd2c46c517b3a0293880eaf35967295485555b936d0f1e80e0f2c261a1164cfcc5c4b2d943a12c073914d33b59974cc2dd92a78414614caa10f46dd048d518b4
diff --git a/gentoo/trinity-base/kcoloredit/kcoloredit-3.5.13.1.ebuild b/gentoo/trinity-base/kcoloredit/kcoloredit-3.5.13.1.ebuild
new file mode 100644
index 000000000..672997d8f
--- /dev/null
+++ b/gentoo/trinity-base/kcoloredit/kcoloredit-3.5.13.1.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdegraphics"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity color selector/editor"
+KEYWORDS="x86 amd64"
+IUSE=""
diff --git a/gentoo/trinity-base/kcoloredit/kcoloredit-9999.ebuild b/gentoo/trinity-base/kcoloredit/kcoloredit-9999.ebuild
new file mode 100644
index 000000000..80d7102a7
--- /dev/null
+++ b/gentoo/trinity-base/kcoloredit/kcoloredit-9999.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdegraphics"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity color selector/editor"
+KEYWORDS=
+IUSE=""
diff --git a/gentoo/trinity-base/kcoloredit/metadata.xml b/gentoo/trinity-base/kcoloredit/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kcoloredit/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kcontrol/Manifest b/gentoo/trinity-base/kcontrol/Manifest
new file mode 100644
index 000000000..381340c4b
--- /dev/null
+++ b/gentoo/trinity-base/kcontrol/Manifest
@@ -0,0 +1,2 @@
+DIST kdebase-3.5.13.1.tar.gz 29403228 SHA256 ddd4bd4b508ad027b9d1af2701c6ba64bfc9f8f1d32099e6dd5e7866714f759e SHA512 e1aac19c941a5f2b43a57928fdb43e5ebd646f49c60911d9d317550df96642870792c4e77ecd06e123244e2425ccd4bcb00f0a21011ba7e651d7fcf4553e79cf WHIRLPOOL 931debbf6a65c280221025dcbc02cbb3387b66eb72eddd28a510ee8f97075cd2cc96535dde25d0a32280c399e4a868e9c027772f5d28e7e79b7c1a9080c58034
+DIST kdebase-trinity-3.5.13.2.tar.xz 25890636 SHA256 b9d552226daff64437dfb9699669b95dd7ebc2ca7c43755ba71c10cc6c9ed789 SHA512 df545d44c7d4550d1d77ff6504572b622853c2b8d80062b1aee1a5bdca19f0e708cde35cff54cf2d5098f06a41bde0c89522a3958dea9bb18205dea87c11b797 WHIRLPOOL 79144273bc7985c59a593a3394b12a2053532d2c4c890ce96adad21f6de0413baf3c6270d6d06173ec4546b20d401aa0cc81603d01b8ee41dbdefc825b39b2b1
diff --git a/gentoo/trinity-base/kcontrol/files/shared b/gentoo/trinity-base/kcontrol/files/shared
new file mode 120000
index 000000000..ffc286806
--- /dev/null
+++ b/gentoo/trinity-base/kcontrol/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files \ No newline at end of file
diff --git a/gentoo/trinity-base/kcontrol/kcontrol-3.5.13.1.ebuild b/gentoo/trinity-base/kcontrol/kcontrol-3.5.13.1.ebuild
new file mode 100644
index 000000000..bc339bb3a
--- /dev/null
+++ b/gentoo/trinity-base/kcontrol/kcontrol-3.5.13.1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="The Trinity Control Center"
+KEYWORDS="x86 amd64"
+IUSE="samba logitech-mouse ieee1394"
+
+SLOT="$TRINITY_VER"
+
+DEPEND="x11-libs/libX11
+ x11-libs/libXrender
+ x11-libs/libXcursor
+ x11-libs/libXrandr
+ samba? ( net-fs/samba )
+ logitech-mouse? ( virtual/libusb:0 )
+ ieee1394? ( sys-libs/libraw1394 )
+ >=trinity-base/libkonq-${PV}:${SLOT}
+ >=trinity-base/kicker-${PV}:${SLOT}"
+
+RDEPEND="${DEPEND}
+ sys-apps/usbutils
+ >=trinity-base/kcminit-${PV}:${SLOT}
+ >=trinity-base/kdebase-data-${PV}:${SLOT}
+ >=trinity-base/kdesu-${PV}:${SLOT}
+ >=trinity-base/khelpcenter-${PV}:${SLOT}
+ >=trinity-base/khotkeys-${PV}:${SLOT}"
+
+TSM_EXTRACT_ALSO="kicker/ kwin/ kdesktop/ klipper/ kxkb/"
+
+src_configure() {
+ mycmakeargs=(
+ -DWITH_XCURSOR=ON
+ -DWITH_XRANDR=ON
+ -DWITH_XRENDER=ON
+ -DWITH_USBIDS=/usr/share/misc/usb.ids
+ $(cmake-utils_use_with samba SAMBA)
+ $(cmake-utils_use_with logitech-mouse LIBUSB)
+ $(cmake-utils_use_with ieee1394 LIBRAW1394)
+ )
+
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-base/kcontrol/kcontrol-3.5.13.2.ebuild b/gentoo/trinity-base/kcontrol/kcontrol-3.5.13.2.ebuild
new file mode 100644
index 000000000..043b575b0
--- /dev/null
+++ b/gentoo/trinity-base/kcontrol/kcontrol-3.5.13.2.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="The Trinity Control Center"
+KEYWORDS="~amd64 ~x86"
+IUSE="samba logitech-mouse ieee1394"
+
+SLOT="$TRINITY_VER"
+
+DEPEND="x11-libs/libX11
+ x11-libs/libXrender
+ x11-libs/libXcursor
+ x11-libs/libXrandr
+ samba? ( net-fs/samba )
+ logitech-mouse? ( virtual/libusb:0 )
+ ieee1394? ( sys-libs/libraw1394 )
+ >=trinity-base/libkonq-${PV}:${SLOT}
+ >=trinity-base/kicker-${PV}:${SLOT}"
+
+RDEPEND="${DEPEND}
+ sys-apps/usbutils
+ >=trinity-base/kcminit-${PV}:${SLOT}
+ >=trinity-base/kdebase-data-${PV}:${SLOT}
+ >=trinity-base/kdesu-${PV}:${SLOT}
+ >=trinity-base/khelpcenter-${PV}:${SLOT}
+ >=trinity-base/khotkeys-${PV}:${SLOT}"
+
+TSM_EXTRACT_ALSO="kicker/ kwin/ kdesktop/ klipper/ kxkb/"
+
+src_configure() {
+ mycmakeargs=(
+ -DWITH_XCURSOR=ON
+ -DWITH_XRANDR=ON
+ -DWITH_XRENDER=ON
+ -DWITH_USBIDS=/usr/share/misc/usb.ids
+ $(cmake-utils_use_with samba SAMBA)
+ $(cmake-utils_use_with logitech-mouse LIBUSB)
+ $(cmake-utils_use_with ieee1394 LIBRAW1394)
+ )
+
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-base/kcontrol/kcontrol-9999.ebuild b/gentoo/trinity-base/kcontrol/kcontrol-9999.ebuild
new file mode 100644
index 000000000..44287b969
--- /dev/null
+++ b/gentoo/trinity-base/kcontrol/kcontrol-9999.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="The Trinity Control Center"
+KEYWORDS=
+IUSE="samba logitech-mouse ieee1394 +xrandr"
+
+DEPEND="x11-libs/libX11
+ x11-libs/libXrender
+ x11-libs/libXcursor
+ samba? ( net-fs/samba )
+ logitech-mouse? ( virtual/libusb:0 )
+ ieee1394? ( sys-libs/libraw1394 )
+ xrandr? ( x11-libs/libXrandr )
+ >=trinity-base/tdelibs-${PV}:${SLOT}[xrandr?]
+ >=trinity-base/libkonq-${PV}:${SLOT}
+ >=trinity-base/kicker-${PV}:${SLOT}"
+
+RDEPEND="${DEPEND}
+ sys-apps/usbutils
+ >=trinity-base/kcminit-${PV}:${SLOT}
+ >=trinity-base/tdebase-data-${PV}:${SLOT}
+ >=trinity-base/tdesu-${PV}:${SLOT}
+ >=trinity-base/khelpcenter-${PV}:${SLOT}
+ >=trinity-base/khotkeys-${PV}:${SLOT}"
+
+TSM_EXTRACT_ALSO="kicker/ twin/ kdesktop/ klipper/ kxkb/"
+
+src_configure() {
+ mycmakeargs=(
+ -DWITH_XCURSOR=ON
+ -DWITH_XRENDER=ON
+ -DWITH_USBIDS=/usr/share/misc/usb.ids
+ $(cmake-utils_use_with samba SAMBA)
+ $(cmake-utils_use_with logitech-mouse LIBUSB)
+ $(cmake-utils_use_with ieee1394 LIBRAW1394)
+ $(cmake-utils_use_with xrandr XRANDR)
+ )
+
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-base/kcontrol/metadata.xml b/gentoo/trinity-base/kcontrol/metadata.xml
new file mode 100644
index 000000000..4cc351dcc
--- /dev/null
+++ b/gentoo/trinity-base/kcontrol/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+ <use>
+ <flag name="logitech-mouse">Build the Control Center module to
+ configure logitech mice</flag>
+ </use>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kdcop/Manifest b/gentoo/trinity-base/kdcop/Manifest
new file mode 100644
index 000000000..381340c4b
--- /dev/null
+++ b/gentoo/trinity-base/kdcop/Manifest
@@ -0,0 +1,2 @@
+DIST kdebase-3.5.13.1.tar.gz 29403228 SHA256 ddd4bd4b508ad027b9d1af2701c6ba64bfc9f8f1d32099e6dd5e7866714f759e SHA512 e1aac19c941a5f2b43a57928fdb43e5ebd646f49c60911d9d317550df96642870792c4e77ecd06e123244e2425ccd4bcb00f0a21011ba7e651d7fcf4553e79cf WHIRLPOOL 931debbf6a65c280221025dcbc02cbb3387b66eb72eddd28a510ee8f97075cd2cc96535dde25d0a32280c399e4a868e9c027772f5d28e7e79b7c1a9080c58034
+DIST kdebase-trinity-3.5.13.2.tar.xz 25890636 SHA256 b9d552226daff64437dfb9699669b95dd7ebc2ca7c43755ba71c10cc6c9ed789 SHA512 df545d44c7d4550d1d77ff6504572b622853c2b8d80062b1aee1a5bdca19f0e708cde35cff54cf2d5098f06a41bde0c89522a3958dea9bb18205dea87c11b797 WHIRLPOOL 79144273bc7985c59a593a3394b12a2053532d2c4c890ce96adad21f6de0413baf3c6270d6d06173ec4546b20d401aa0cc81603d01b8ee41dbdefc825b39b2b1
diff --git a/gentoo/trinity-base/kdcop/files/shared b/gentoo/trinity-base/kdcop/files/shared
new file mode 120000
index 000000000..ffc286806
--- /dev/null
+++ b/gentoo/trinity-base/kdcop/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files \ No newline at end of file
diff --git a/gentoo/trinity-base/kdcop/kdcop-3.5.13.1.ebuild b/gentoo/trinity-base/kdcop/kdcop-3.5.13.1.ebuild
new file mode 100644
index 000000000..c8bac7561
--- /dev/null
+++ b/gentoo/trinity-base/kdcop/kdcop-3.5.13.1.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity: graphical DCOP browser/client"
+KEYWORDS="x86 amd64"
+IUSE=""
diff --git a/gentoo/trinity-base/kdcop/kdcop-3.5.13.2.ebuild b/gentoo/trinity-base/kdcop/kdcop-3.5.13.2.ebuild
new file mode 100644
index 000000000..d25a0dfdd
--- /dev/null
+++ b/gentoo/trinity-base/kdcop/kdcop-3.5.13.2.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity: graphical DCOP browser/client"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
diff --git a/gentoo/trinity-base/kdcop/kdcop-9999.ebuild b/gentoo/trinity-base/kdcop/kdcop-9999.ebuild
new file mode 100644
index 000000000..a689eb3a0
--- /dev/null
+++ b/gentoo/trinity-base/kdcop/kdcop-9999.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity: graphical DCOP browser/client"
+KEYWORDS=
+IUSE=""
diff --git a/gentoo/trinity-base/kdcop/metadata.xml b/gentoo/trinity-base/kdcop/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kdcop/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kde-i18n/Manifest b/gentoo/trinity-base/kde-i18n/Manifest
new file mode 100644
index 000000000..648109bc3
--- /dev/null
+++ b/gentoo/trinity-base/kde-i18n/Manifest
@@ -0,0 +1 @@
+DIST kde-i18n-3.5.13.1.tar.gz 378322677 SHA256 659ce86b7b86583c59ffd6118c563b69f185ce0125b58a6d1babcf1f020a1e0a SHA512 cbfdacd92b2e064ecc9fc00cbab3d362e6a8c015e15db7b63255209f9b20ecbea6e32c503720834c8a7882447eefd659cb2198ac5cc4ecfdd3baabc741e5ddc1 WHIRLPOOL b4478ad7fff628fd152e84c98f2e19a945a46aa579a79f97823ffff961763b83554ae21a4725bc1534e28fe2795b8dea746fb920a1def9da8c4dafa56ba448f9
diff --git a/gentoo/trinity-base/kde-i18n/kde-i18n-3.5.13.1.ebuild b/gentoo/trinity-base/kde-i18n/kde-i18n-3.5.13.1.ebuild
new file mode 100644
index 000000000..00b9d15ea
--- /dev/null
+++ b/gentoo/trinity-base/kde-i18n/kde-i18n-3.5.13.1.ebuild
@@ -0,0 +1,109 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kde-i18n"
+
+inherit eutils trinity-base
+
+set-trinityver
+
+DESCRIPTION="Trinity internationalization package"
+HOMEPAGE="http://www.trinitydesktop.org/"
+LICENSE="GPL-2"
+
+SLOT="${TRINITY_VER}"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="
+ sys-devel/libtool
+ >=sys-devel/automake-1.10.1"
+RDEPEND=""
+
+LANGS="af ar az be bg bn br bs ca cs csb cy da de el en_GB eo es et
+eu fa fi fr fy ga gl he hi hr hu is it ja kk km ko lt lv mk mn ms
+nb nds nl nn pa pl pt pt_BR ro ru rw se sk sl sr sr@Latn ss sv ta te
+tg th tr uk uz uz@cyrillic vi wa zh_CN zh_TW"
+
+for X in ${LANGS} ; do
+ IUSE="${IUSE} linguas_${X}"
+done
+
+src_unpack() {
+ local tarball tarfile tarparams f extractlist postfix
+
+ case ${A} in
+ *.gz)
+ tarparams=" --gzip"
+ postfix="gz"
+ ;;
+ *.bz2)
+ tarparams=" --bzip2"
+ postfix="bz2"
+ ;;
+ esac
+
+ tarfile="${DISTDIR}/${A}"
+ topdir="${A%.tar.*}"
+
+ for X in ${LANGS} ; do
+ use "linguas_${X}" && extractlist+=" ${topdir}/tde-i18n-${X#linguas_}"
+ done
+
+ if [[ -z ${LINGUAS} ]] || [[ -z "${extractlist}" && "${LINGUAS}" != "en" ]]; then
+ echo
+ ewarn "You either have the LINGUAS environment variable unset or it"
+ ewarn "contains languages not supported by trinity-base/kde-i18n."
+ ewarn "Because of that, kde-i18n will not add any kind of language"
+ ewarn "support."
+ ewarn
+ ewarn "If you didn't intend this to happen, the available language"
+ ewarn "codes are:"
+ ewarn "${LANGS}"
+ echo
+ fi
+
+ extractlist+=" ${topdir}/admin"
+
+ ebegin "Unpacking parts of ${tarball} to ${WORKDIR}"
+ tar -xpf "${tarfile}" ${tarparams} -C "${WORKDIR}" ${extractlist} 2> /dev/null \
+ || echo "tar extract command failed at least partially - continuing anyway"
+}
+
+src_prepare(){
+ cp -Rp /usr/share/libtool/config/ltmain.sh "${S}/admin/ltmain.sh"
+ cp -Rp /usr/share/aclocal/libtool.m4 "${S}/admin/libtool.m4.in"
+ for dir in $(ls -d "${S}"/tde-i18n-*); do
+ einfo "Preparing $dir"
+ cd "$dir" && emake -f "admin/Makefile.common";
+ done
+}
+
+src_configure() {
+ PREFIX="${TDEDIR}"
+ for dir in $(ls -d "${S}"/tde-i18n-*); do
+ einfo "Configuring $dir"
+ cd "${dir}" && econf \
+ --without-arts \
+ --prefix="${PREFIX}" \
+ --mandir="${PREFIX}/share/man"\
+ --infodir="${PREFIX}/share/info" \
+ --datadir="${PREFIX}/share" \
+ --sysconfdir="${PREFIX}/etc"
+ done
+}
+
+src_compile() {
+ for dir in $(ls -d "${S}"/tde-i18n-*); do
+ einfo "Compiling $dir"
+ cd "${dir}" && emake;
+ done
+}
+
+src_install() {
+ for dir in $(ls -d "${S}"/tde-i18n-*); do
+ einfo "Installing $dir"
+ cd "${dir}" && emake install DESTDIR="${D}"
+ done
+}
diff --git a/gentoo/trinity-base/kde-i18n/metadata.xml b/gentoo/trinity-base/kde-i18n/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kde-i18n/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kdeartwork-emoticons/Manifest b/gentoo/trinity-base/kdeartwork-emoticons/Manifest
new file mode 100644
index 000000000..339bae1ed
--- /dev/null
+++ b/gentoo/trinity-base/kdeartwork-emoticons/Manifest
@@ -0,0 +1 @@
+DIST kdeartwork-3.5.13.1.tar.gz 27560795 SHA256 048f7eb031808d9216156c76fde96844021bd0d310301f8b83593b57f121b641 SHA512 4fc5a1746af087ba7f6852751533efd918a1e617553ba7e8280c00ecd59b51ef0eaad622a9d0f2e675a16aa427f36049dc46adbbfd58b27cac4fbe1ff3442172 WHIRLPOOL 43151d5639d0aa26530b5b52b071955ca3f1b0be007557b57fb17d955820105ea11a96c397eb0a8a41ac2a61e5e1d243cae74d6e7f2e31eb4f1a4128988a4e81
diff --git a/gentoo/trinity-base/kdeartwork-emoticons/kdeartwork-emoticons-3.5.13.1.ebuild b/gentoo/trinity-base/kdeartwork-emoticons/kdeartwork-emoticons-3.5.13.1.ebuild
new file mode 100644
index 000000000..514c60be2
--- /dev/null
+++ b/gentoo/trinity-base/kdeartwork-emoticons/kdeartwork-emoticons-3.5.13.1.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdeartwork"
+
+inherit trinity-meta
+
+DESCRIPTION="EmotIcons (icons for things like smilies :-) for Trinity"
+KEYWORDS="x86 amd64"
+IUSE=""
diff --git a/gentoo/trinity-base/kdeartwork-emoticons/metadata.xml b/gentoo/trinity-base/kdeartwork-emoticons/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kdeartwork-emoticons/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kdeartwork-icewm-themes/Manifest b/gentoo/trinity-base/kdeartwork-icewm-themes/Manifest
new file mode 100644
index 000000000..339bae1ed
--- /dev/null
+++ b/gentoo/trinity-base/kdeartwork-icewm-themes/Manifest
@@ -0,0 +1 @@
+DIST kdeartwork-3.5.13.1.tar.gz 27560795 SHA256 048f7eb031808d9216156c76fde96844021bd0d310301f8b83593b57f121b641 SHA512 4fc5a1746af087ba7f6852751533efd918a1e617553ba7e8280c00ecd59b51ef0eaad622a9d0f2e675a16aa427f36049dc46adbbfd58b27cac4fbe1ff3442172 WHIRLPOOL 43151d5639d0aa26530b5b52b071955ca3f1b0be007557b57fb17d955820105ea11a96c397eb0a8a41ac2a61e5e1d243cae74d6e7f2e31eb4f1a4128988a4e81
diff --git a/gentoo/trinity-base/kdeartwork-icewm-themes/kdeartwork-icewm-themes-3.5.13.1.ebuild b/gentoo/trinity-base/kdeartwork-icewm-themes/kdeartwork-icewm-themes-3.5.13.1.ebuild
new file mode 100644
index 000000000..82efd3356
--- /dev/null
+++ b/gentoo/trinity-base/kdeartwork-icewm-themes/kdeartwork-icewm-themes-3.5.13.1.ebuild
@@ -0,0 +1,18 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdeartwork"
+
+inherit trinity-meta
+
+DESCRIPTION="Themes for IceWM from the Trinityartwork package."
+KEYWORDS="x86 amd64"
+IUSE=""
+
+RDEPEND="$DEPEND
+ >=trinity-base/kdeartwork-kwin-styles-${PV}:${SLOT}"
+
+pkg_postinst() {
+ elog "More IceWM themes are available installing x11-themes/icewm-themes"
+}
diff --git a/gentoo/trinity-base/kdeartwork-icewm-themes/metadata.xml b/gentoo/trinity-base/kdeartwork-icewm-themes/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kdeartwork-icewm-themes/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kdeartwork-icon-themes/Manifest b/gentoo/trinity-base/kdeartwork-icon-themes/Manifest
new file mode 100644
index 000000000..339bae1ed
--- /dev/null
+++ b/gentoo/trinity-base/kdeartwork-icon-themes/Manifest
@@ -0,0 +1 @@
+DIST kdeartwork-3.5.13.1.tar.gz 27560795 SHA256 048f7eb031808d9216156c76fde96844021bd0d310301f8b83593b57f121b641 SHA512 4fc5a1746af087ba7f6852751533efd918a1e617553ba7e8280c00ecd59b51ef0eaad622a9d0f2e675a16aa427f36049dc46adbbfd58b27cac4fbe1ff3442172 WHIRLPOOL 43151d5639d0aa26530b5b52b071955ca3f1b0be007557b57fb17d955820105ea11a96c397eb0a8a41ac2a61e5e1d243cae74d6e7f2e31eb4f1a4128988a4e81
diff --git a/gentoo/trinity-base/kdeartwork-icon-themes/kdeartwork-icon-themes-3.5.13.1.ebuild b/gentoo/trinity-base/kdeartwork-icon-themes/kdeartwork-icon-themes-3.5.13.1.ebuild
new file mode 100644
index 000000000..44b6e14e4
--- /dev/null
+++ b/gentoo/trinity-base/kdeartwork-icon-themes/kdeartwork-icon-themes-3.5.13.1.ebuild
@@ -0,0 +1,14 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdeartwork"
+
+inherit trinity-meta
+KMMODULE="IconThemes"
+
+DESCRIPTION="Icon themes for Trinity"
+KEYWORDS="x86 amd64"
+IUSE=""
+
+TSM_EXTRACT="IconThemes/"
diff --git a/gentoo/trinity-base/kdeartwork-icon-themes/metadata.xml b/gentoo/trinity-base/kdeartwork-icon-themes/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kdeartwork-icon-themes/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kdeartwork-kscreensaver/Manifest b/gentoo/trinity-base/kdeartwork-kscreensaver/Manifest
new file mode 100644
index 000000000..339bae1ed
--- /dev/null
+++ b/gentoo/trinity-base/kdeartwork-kscreensaver/Manifest
@@ -0,0 +1 @@
+DIST kdeartwork-3.5.13.1.tar.gz 27560795 SHA256 048f7eb031808d9216156c76fde96844021bd0d310301f8b83593b57f121b641 SHA512 4fc5a1746af087ba7f6852751533efd918a1e617553ba7e8280c00ecd59b51ef0eaad622a9d0f2e675a16aa427f36049dc46adbbfd58b27cac4fbe1ff3442172 WHIRLPOOL 43151d5639d0aa26530b5b52b071955ca3f1b0be007557b57fb17d955820105ea11a96c397eb0a8a41ac2a61e5e1d243cae74d6e7f2e31eb4f1a4128988a4e81
diff --git a/gentoo/trinity-base/kdeartwork-kscreensaver/kdeartwork-kscreensaver-3.5.13.1.ebuild b/gentoo/trinity-base/kdeartwork-kscreensaver/kdeartwork-kscreensaver-3.5.13.1.ebuild
new file mode 100644
index 000000000..d76efa4b1
--- /dev/null
+++ b/gentoo/trinity-base/kdeartwork-kscreensaver/kdeartwork-kscreensaver-3.5.13.1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdeartwork"
+
+inherit trinity-meta
+
+DESCRIPTION="Extra screensavers for Trinity"
+KEYWORDS="x86 amd64"
+IUSE="opengl xscreensaver arts"
+
+DEPEND="
+ >=trinity-base/kscreensaver-${PV}:${SLOT}
+ >=trinity-base/krootbacking-${PV}:${SLOT}
+ media-libs/libart_lgpl
+ opengl? ( virtual/opengl )
+ xscreensaver? ( x11-misc/xscreensaver )
+ arts? ( trinity-base/arts )"
+RDEPEND="$DEPEND"
+
+TSM_EXTRACT_ALSO="FindXscreensaver.cmake"
+
+src_configure() {
+ mycmakeargs=(
+ -DWITH_LIBART=ON
+ $(cmake-utils_use_with opengl OPENGL)
+ $(cmake-utils_use_with xscreensaver XSCREENSAVER)
+ $(cmake-utils_use_with arts ARTS)
+ )
+
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-base/kdeartwork-kscreensaver/metadata.xml b/gentoo/trinity-base/kdeartwork-kscreensaver/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kdeartwork-kscreensaver/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kdeartwork-kwin-styles/Manifest b/gentoo/trinity-base/kdeartwork-kwin-styles/Manifest
new file mode 100644
index 000000000..339bae1ed
--- /dev/null
+++ b/gentoo/trinity-base/kdeartwork-kwin-styles/Manifest
@@ -0,0 +1 @@
+DIST kdeartwork-3.5.13.1.tar.gz 27560795 SHA256 048f7eb031808d9216156c76fde96844021bd0d310301f8b83593b57f121b641 SHA512 4fc5a1746af087ba7f6852751533efd918a1e617553ba7e8280c00ecd59b51ef0eaad622a9d0f2e675a16aa427f36049dc46adbbfd58b27cac4fbe1ff3442172 WHIRLPOOL 43151d5639d0aa26530b5b52b071955ca3f1b0be007557b57fb17d955820105ea11a96c397eb0a8a41ac2a61e5e1d243cae74d6e7f2e31eb4f1a4128988a4e81
diff --git a/gentoo/trinity-base/kdeartwork-kwin-styles/kdeartwork-kwin-styles-3.5.13.1.ebuild b/gentoo/trinity-base/kdeartwork-kwin-styles/kdeartwork-kwin-styles-3.5.13.1.ebuild
new file mode 100644
index 000000000..1efdbc7e4
--- /dev/null
+++ b/gentoo/trinity-base/kdeartwork-kwin-styles/kdeartwork-kwin-styles-3.5.13.1.ebuild
@@ -0,0 +1,13 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdeartwork"
+
+inherit trinity-meta
+DESCRIPTION="Window styles for Trinity"
+KEYWORDS="x86 amd64"
+IUSE=""
+
+DEPEND=">=trinity-base/kwin-${PV}:${SLOT}"
+RDEPEND="$DEPEND"
diff --git a/gentoo/trinity-base/kdeartwork-kwin-styles/metadata.xml b/gentoo/trinity-base/kdeartwork-kwin-styles/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kdeartwork-kwin-styles/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kdeartwork-kworldclock/Manifest b/gentoo/trinity-base/kdeartwork-kworldclock/Manifest
new file mode 100644
index 000000000..339bae1ed
--- /dev/null
+++ b/gentoo/trinity-base/kdeartwork-kworldclock/Manifest
@@ -0,0 +1 @@
+DIST kdeartwork-3.5.13.1.tar.gz 27560795 SHA256 048f7eb031808d9216156c76fde96844021bd0d310301f8b83593b57f121b641 SHA512 4fc5a1746af087ba7f6852751533efd918a1e617553ba7e8280c00ecd59b51ef0eaad622a9d0f2e675a16aa427f36049dc46adbbfd58b27cac4fbe1ff3442172 WHIRLPOOL 43151d5639d0aa26530b5b52b071955ca3f1b0be007557b57fb17d955820105ea11a96c397eb0a8a41ac2a61e5e1d243cae74d6e7f2e31eb4f1a4128988a4e81
diff --git a/gentoo/trinity-base/kdeartwork-kworldclock/kdeartwork-kworldclock-3.5.13.1.ebuild b/gentoo/trinity-base/kdeartwork-kworldclock/kdeartwork-kworldclock-3.5.13.1.ebuild
new file mode 100644
index 000000000..6cd0eda1c
--- /dev/null
+++ b/gentoo/trinity-base/kdeartwork-kworldclock/kdeartwork-kworldclock-3.5.13.1.ebuild
@@ -0,0 +1,14 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdeartwork"
+
+inherit trinity-meta
+
+DESCRIPTION="kworldclock from kdeartwork"
+KEYWORDS="x86 amd64"
+IUSE=""
+
+RDEPEND="$DEPEND
+ >=trinity-base/kworldclock-${PV}:${SLOT}"
diff --git a/gentoo/trinity-base/kdeartwork-kworldclock/metadata.xml b/gentoo/trinity-base/kdeartwork-kworldclock/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kdeartwork-kworldclock/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kdeartwork-meta/kdeartwork-meta-3.5.13.1.ebuild b/gentoo/trinity-base/kdeartwork-meta/kdeartwork-meta-3.5.13.1.ebuild
new file mode 100644
index 000000000..662646f92
--- /dev/null
+++ b/gentoo/trinity-base/kdeartwork-meta/kdeartwork-meta-3.5.13.1.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+
+inherit trinity-functions
+
+set-trinityver
+
+DESCRIPTION="kdeartwork meta package - merge this to pull in all kdeartwork-derived packages"
+HOMEPAGE="http://www.trinitydesktop.org/"
+LICENSE="GPL-2 LGPL-2"
+KEYWORDS="x86 amd64"
+
+SLOT="$TRINITY_VER"
+IUSE=""
+
+RDEPEND="
+ >=trinity-base/kdeartwork-emoticons-${PV}:${SLOT}
+ >=trinity-base/kdeartwork-icon-themes-${PV}:${SLOT}
+ >=trinity-base/kdeartwork-icewm-themes-${PV}:${SLOT}
+ >=trinity-base/kdeartwork-kscreensaver-${PV}:${SLOT}
+ >=trinity-base/kdeartwork-kwin-styles-${PV}:${SLOT}
+ >=trinity-base/kdeartwork-kworldclock-${PV}:${SLOT}
+ >=trinity-base/kdeartwork-sounds-${PV}:${SLOT}
+ >=trinity-base/kdeartwork-styles-${PV}:${SLOT}
+ >=trinity-base/kdeartwork-wallpapers-${PV}:${SLOT}"
diff --git a/gentoo/trinity-base/kdeartwork-meta/metadata.xml b/gentoo/trinity-base/kdeartwork-meta/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kdeartwork-meta/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kdeartwork-sounds/Manifest b/gentoo/trinity-base/kdeartwork-sounds/Manifest
new file mode 100644
index 000000000..339bae1ed
--- /dev/null
+++ b/gentoo/trinity-base/kdeartwork-sounds/Manifest
@@ -0,0 +1 @@
+DIST kdeartwork-3.5.13.1.tar.gz 27560795 SHA256 048f7eb031808d9216156c76fde96844021bd0d310301f8b83593b57f121b641 SHA512 4fc5a1746af087ba7f6852751533efd918a1e617553ba7e8280c00ecd59b51ef0eaad622a9d0f2e675a16aa427f36049dc46adbbfd58b27cac4fbe1ff3442172 WHIRLPOOL 43151d5639d0aa26530b5b52b071955ca3f1b0be007557b57fb17d955820105ea11a96c397eb0a8a41ac2a61e5e1d243cae74d6e7f2e31eb4f1a4128988a4e81
diff --git a/gentoo/trinity-base/kdeartwork-sounds/kdeartwork-sounds-3.5.13.1.ebuild b/gentoo/trinity-base/kdeartwork-sounds/kdeartwork-sounds-3.5.13.1.ebuild
new file mode 100644
index 000000000..f1e9fc1aa
--- /dev/null
+++ b/gentoo/trinity-base/kdeartwork-sounds/kdeartwork-sounds-3.5.13.1.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdeartwork"
+
+inherit trinity-meta
+
+DESCRIPTION="Extra sound themes for Trinity"
+KEYWORDS="x86 amd64"
+IUSE=""
diff --git a/gentoo/trinity-base/kdeartwork-sounds/metadata.xml b/gentoo/trinity-base/kdeartwork-sounds/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kdeartwork-sounds/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kdeartwork-styles/Manifest b/gentoo/trinity-base/kdeartwork-styles/Manifest
new file mode 100644
index 000000000..339bae1ed
--- /dev/null
+++ b/gentoo/trinity-base/kdeartwork-styles/Manifest
@@ -0,0 +1 @@
+DIST kdeartwork-3.5.13.1.tar.gz 27560795 SHA256 048f7eb031808d9216156c76fde96844021bd0d310301f8b83593b57f121b641 SHA512 4fc5a1746af087ba7f6852751533efd918a1e617553ba7e8280c00ecd59b51ef0eaad622a9d0f2e675a16aa427f36049dc46adbbfd58b27cac4fbe1ff3442172 WHIRLPOOL 43151d5639d0aa26530b5b52b071955ca3f1b0be007557b57fb17d955820105ea11a96c397eb0a8a41ac2a61e5e1d243cae74d6e7f2e31eb4f1a4128988a4e81
diff --git a/gentoo/trinity-base/kdeartwork-styles/kdeartwork-styles-3.5.13.1.ebuild b/gentoo/trinity-base/kdeartwork-styles/kdeartwork-styles-3.5.13.1.ebuild
new file mode 100644
index 000000000..ce394cf16
--- /dev/null
+++ b/gentoo/trinity-base/kdeartwork-styles/kdeartwork-styles-3.5.13.1.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdeartwork"
+
+inherit trinity-meta
+
+DESCRIPTION="Extra styles for Trinity"
+KEYWORDS="x86 amd64"
+IUSE=""
diff --git a/gentoo/trinity-base/kdeartwork-styles/metadata.xml b/gentoo/trinity-base/kdeartwork-styles/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kdeartwork-styles/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kdeartwork-wallpapers/Manifest b/gentoo/trinity-base/kdeartwork-wallpapers/Manifest
new file mode 100644
index 000000000..339bae1ed
--- /dev/null
+++ b/gentoo/trinity-base/kdeartwork-wallpapers/Manifest
@@ -0,0 +1 @@
+DIST kdeartwork-3.5.13.1.tar.gz 27560795 SHA256 048f7eb031808d9216156c76fde96844021bd0d310301f8b83593b57f121b641 SHA512 4fc5a1746af087ba7f6852751533efd918a1e617553ba7e8280c00ecd59b51ef0eaad622a9d0f2e675a16aa427f36049dc46adbbfd58b27cac4fbe1ff3442172 WHIRLPOOL 43151d5639d0aa26530b5b52b071955ca3f1b0be007557b57fb17d955820105ea11a96c397eb0a8a41ac2a61e5e1d243cae74d6e7f2e31eb4f1a4128988a4e81
diff --git a/gentoo/trinity-base/kdeartwork-wallpapers/kdeartwork-wallpapers-3.5.13.1.ebuild b/gentoo/trinity-base/kdeartwork-wallpapers/kdeartwork-wallpapers-3.5.13.1.ebuild
new file mode 100644
index 000000000..fff193740
--- /dev/null
+++ b/gentoo/trinity-base/kdeartwork-wallpapers/kdeartwork-wallpapers-3.5.13.1.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdeartwork"
+
+inherit trinity-meta
+
+DESCRIPTION="Wallpapers from Trinity"
+KEYWORDS="x86 amd64"
+IUSE=""
diff --git a/gentoo/trinity-base/kdeartwork-wallpapers/metadata.xml b/gentoo/trinity-base/kdeartwork-wallpapers/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kdeartwork-wallpapers/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kdebase-data/Manifest b/gentoo/trinity-base/kdebase-data/Manifest
new file mode 100644
index 000000000..381340c4b
--- /dev/null
+++ b/gentoo/trinity-base/kdebase-data/Manifest
@@ -0,0 +1,2 @@
+DIST kdebase-3.5.13.1.tar.gz 29403228 SHA256 ddd4bd4b508ad027b9d1af2701c6ba64bfc9f8f1d32099e6dd5e7866714f759e SHA512 e1aac19c941a5f2b43a57928fdb43e5ebd646f49c60911d9d317550df96642870792c4e77ecd06e123244e2425ccd4bcb00f0a21011ba7e651d7fcf4553e79cf WHIRLPOOL 931debbf6a65c280221025dcbc02cbb3387b66eb72eddd28a510ee8f97075cd2cc96535dde25d0a32280c399e4a868e9c027772f5d28e7e79b7c1a9080c58034
+DIST kdebase-trinity-3.5.13.2.tar.xz 25890636 SHA256 b9d552226daff64437dfb9699669b95dd7ebc2ca7c43755ba71c10cc6c9ed789 SHA512 df545d44c7d4550d1d77ff6504572b622853c2b8d80062b1aee1a5bdca19f0e708cde35cff54cf2d5098f06a41bde0c89522a3958dea9bb18205dea87c11b797 WHIRLPOOL 79144273bc7985c59a593a3394b12a2053532d2c4c890ce96adad21f6de0413baf3c6270d6d06173ec4546b20d401aa0cc81603d01b8ee41dbdefc825b39b2b1
diff --git a/gentoo/trinity-base/kdebase-data/kdebase-data-3.5.13.1.ebuild b/gentoo/trinity-base/kdebase-data/kdebase-data-3.5.13.1.ebuild
new file mode 100644
index 000000000..086034d13
--- /dev/null
+++ b/gentoo/trinity-base/kdebase-data/kdebase-data-3.5.13.1.ebuild
@@ -0,0 +1,13 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+TRINITY_SUBMODULE="l10n pics applnk"
+
+DESCRIPTION="Icons, localization data and .desktop files from kdebase."
+KEYWORDS="x86 amd64"
+IUSE=""
diff --git a/gentoo/trinity-base/kdebase-data/kdebase-data-3.5.13.2.ebuild b/gentoo/trinity-base/kdebase-data/kdebase-data-3.5.13.2.ebuild
new file mode 100644
index 000000000..55d0c5d58
--- /dev/null
+++ b/gentoo/trinity-base/kdebase-data/kdebase-data-3.5.13.2.ebuild
@@ -0,0 +1,13 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+TRINITY_SUBMODULE="l10n pics applnk"
+
+DESCRIPTION="Icons, localization data and .desktop files from kdebase."
+KEYWORDS="~amd64 ~x86"
+IUSE=""
diff --git a/gentoo/trinity-base/kdebase-data/metadata.xml b/gentoo/trinity-base/kdebase-data/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kdebase-data/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kdebase-kioslaves/Manifest b/gentoo/trinity-base/kdebase-kioslaves/Manifest
new file mode 100644
index 000000000..381340c4b
--- /dev/null
+++ b/gentoo/trinity-base/kdebase-kioslaves/Manifest
@@ -0,0 +1,2 @@
+DIST kdebase-3.5.13.1.tar.gz 29403228 SHA256 ddd4bd4b508ad027b9d1af2701c6ba64bfc9f8f1d32099e6dd5e7866714f759e SHA512 e1aac19c941a5f2b43a57928fdb43e5ebd646f49c60911d9d317550df96642870792c4e77ecd06e123244e2425ccd4bcb00f0a21011ba7e651d7fcf4553e79cf WHIRLPOOL 931debbf6a65c280221025dcbc02cbb3387b66eb72eddd28a510ee8f97075cd2cc96535dde25d0a32280c399e4a868e9c027772f5d28e7e79b7c1a9080c58034
+DIST kdebase-trinity-3.5.13.2.tar.xz 25890636 SHA256 b9d552226daff64437dfb9699669b95dd7ebc2ca7c43755ba71c10cc6c9ed789 SHA512 df545d44c7d4550d1d77ff6504572b622853c2b8d80062b1aee1a5bdca19f0e708cde35cff54cf2d5098f06a41bde0c89522a3958dea9bb18205dea87c11b797 WHIRLPOOL 79144273bc7985c59a593a3394b12a2053532d2c4c890ce96adad21f6de0413baf3c6270d6d06173ec4546b20d401aa0cc81603d01b8ee41dbdefc825b39b2b1
diff --git a/gentoo/trinity-base/kdebase-kioslaves/files/kdebase-3.5.13.1-fix-kioslaves-with-hal.patch b/gentoo/trinity-base/kdebase-kioslaves/files/kdebase-3.5.13.1-fix-kioslaves-with-hal.patch
new file mode 100644
index 000000000..ebde62e50
--- /dev/null
+++ b/gentoo/trinity-base/kdebase-kioslaves/files/kdebase-3.5.13.1-fix-kioslaves-with-hal.patch
@@ -0,0 +1,24 @@
+diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
+index 3834f6d..8dc8a3f 100644
+--- a/ConfigureChecks.cmake
++++ b/ConfigureChecks.cmake
+@@ -233,7 +233,6 @@ find_package( TQt )
+ find_package( TDE )
+
+
+-# dbus-tqt need Qt flags
+ # dbus (kdm, ksmserver)
+ if( BUILD_KDM OR BUILD_KSMSERVER )
+
+@@ -242,6 +241,11 @@ if( BUILD_KDM OR BUILD_KSMSERVER )
+ tde_message_fatal( "dbus-1 is required, but was not found on your system" )
+ endif( )
+
++endif( )
++
++
++# dbus-tqt (kdm, ksmserver, kioslaves(media))
++if( BUILD_KDM OR BUILD_KSMSERVER OR (BUILD_KIOSLAVES AND WITH_HAL) )
+ # check for dbus-tqt
+ pkg_check_modules( DBUS_TQT REQUIRED dbus-tqt )
+ tde_save( CMAKE_REQUIRED_INCLUDES CMAKE_REQUIRED_LIBRARIES )
diff --git a/gentoo/trinity-base/kdebase-kioslaves/files/kdebase-3.5.13.2-fix-mandb-support-in-kio-man.patch b/gentoo/trinity-base/kdebase-kioslaves/files/kdebase-3.5.13.2-fix-mandb-support-in-kio-man.patch
new file mode 100644
index 000000000..4e981bc91
--- /dev/null
+++ b/gentoo/trinity-base/kdebase-kioslaves/files/kdebase-3.5.13.2-fix-mandb-support-in-kio-man.patch
@@ -0,0 +1,146 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index d36ee0e..e91f8e8 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -220,15 +220,6 @@ if( BUILD_STARTKDE )
+ endif()
+
+
+-##### Determine whether older manpage support is used ##########
+-
+-if( EXISTS "/usr/sbin/makewhatis" )
+- set( WITH_MAKEWHATIS "1" )
+- message( STATUS "Selected makewhatis for kio-man on your system" )
+-else()
+- message( STATUS "Selected man-db for kio-man on your system" )
+-endif()
+-
+ ##### Checks for a distribution-specific 1st menu item, generally a control center
+ if(EXISTS "/usr/share/applications/YaST.desktop")
+ set( KICKOFF_DIST_CONFIG_SHORTCUT1 "/usr/share/applications/YaST.desktop" )
+diff --git a/config.h.cmake b/config.h.cmake
+index d41643b..7a86d97 100644
+--- a/config.h.cmake
++++ b/config.h.cmake
+@@ -182,9 +182,6 @@
+ // Defined when wanting ksmserver shutdown debugging timing markers in .xsession-errors
+ #cmakedefine BUILD_PROFILE_SHUTDOWN 1
+
+-// Use makewhatis manpage support
+-#cmakedefine WITH_MAKEWHATIS "@WITH_MAKEWHATIS@"
+-
+ // Kickoff menu
+ #cmakedefine KICKOFF_DIST_CONFIG_SHORTCUT1 "@KICKOFF_DIST_CONFIG_SHORTCUT1@"
+ #cmakedefine KICKOFF_DIST_CONFIG_SHORTCUT2 "@KICKOFF_DIST_CONFIG_SHORTCUT2@"
+diff --git a/kioslave/man/kio_man.cpp b/kioslave/man/kio_man.cpp
+index 63fed2e..4da85ba 100644
+--- a/kioslave/man/kio_man.cpp
++++ b/kioslave/man/kio_man.cpp
+@@ -580,48 +580,64 @@ char *MANProtocol::readManPage(const char *_filename)
+ kdDebug(7107) << "resolved to " << filename << endl;
+ }
+ lastdir = filename.left(filename.findRev('/'));
+-
+-#ifdef WITH_MAKEWHATIS
+- TQIODevice *fd= KFilterDev::deviceForFile(filename);
+
+- if ( !fd || !fd->open(IO_ReadOnly))
+- {
+- delete fd;
+- return 0;
+- }
+- TQByteArray array(fd->readAll());
+- kdDebug(7107) << "read " << array.size() << endl;
+- fd->close();
+- delete fd;
++ size_t len;
+
+- if (array.isEmpty())
+- return 0;
++ if( hasManRecode() ) {
++ myStdStream = TQString::null;
++ KProcess proc;
+
+- const int len = array.size();
+- buf = new char[len + 4];
+- tqmemmove(buf + 1, array.data(), len);
+-#else
+- myStdStream = TQString::null;
+- KProcess proc;
+- /* TODO: detect availability of 'man --recode' so that this can go
+- * upstream */
+- proc << "man" << "--recode" << "UTF-8" << filename;
++ proc << "man" << "--recode" << "UTF-8" << filename;
+
+- TQApplication::connect(&proc, TQT_SIGNAL(receivedStdout (KProcess *, char *, int)),
+- this, TQT_SLOT(slotGetStdOutputUtf8(KProcess *, char *, int)));
+- proc.start(KProcess::Block, KProcess::All);
++ TQApplication::connect(&proc, TQT_SIGNAL(receivedStdout (KProcess *, char *, int)),
++ this, TQT_SLOT(slotGetStdOutputUtf8(KProcess *, char *, int)));
++ proc.start(KProcess::Block, KProcess::All);
++
++ const TQCString cstr=myStdStream.utf8();
++ len = cstr.size() != 0 ? cstr.size() - 1 : 0;
++ buf = new char[len + 4];
++ tqmemmove(buf + 1, cstr.data(), len);
++ } else {
++ TQIODevice *fd= KFilterDev::deviceForFile(filename);
++
++ if ( !fd || !fd->open(IO_ReadOnly))
++ {
++ delete fd;
++ return 0;
++ }
++ TQByteArray array(fd->readAll());
++ kdDebug(7107) << "read " << array.size() << endl;
++ fd->close();
++ delete fd;
++
++ if (array.isEmpty())
++ return 0;
++
++ len = array.size();
++ buf = new char[len + 4];
++ tqmemmove(buf + 1, array.data(), len);
++ }
+
+- const TQCString cstr=myStdStream.utf8();
+- const int len = cstr.size()-1;
+- buf = new char[len + 4];
+- tqmemmove(buf + 1, cstr.data(), len);
+-#endif
+ buf[0]=buf[len]='\n'; // Start and end with a end of line
+ buf[len+1]=buf[len+2]='\0'; // Two NUL characters at end
+ }
+ return buf;
+ }
+
++bool MANProtocol::hasManRecode(bool force) {
++ static bool rv=0, wasChecked=0;
++ if ( !wasChecked || force ) {
++ KProcess proc;
++ // lets' try to recode the man page of man.
++ // that should be enough to be sure that man-db is installed.
++ proc << "man" << "--recode" << "UTF-8" << "man";
++
++ proc.start(KProcess::Block, KProcess::All);
++ rv = proc.exitStatus() == 0;
++ wasChecked = 1;
++ }
++ return rv;
++}
+
+ void MANProtocol::outputError(const TQString& errmsg)
+ {
+diff --git a/kioslave/man/kio_man.h b/kioslave/man/kio_man.h
+index 617245f..1a28dcf 100644
+--- a/kioslave/man/kio_man.h
++++ b/kioslave/man/kio_man.h
+@@ -66,6 +66,7 @@ private slots:
+ private:
+ void checkManPaths();
+ TQStringList manDirectories();
++ static bool hasManRecode(bool force=0);
+ TQMap<TQString, TQString> buildIndexMap(const TQString& section);
+ bool addWhatIs(TQMap<TQString, TQString>& i, const TQString& f, const TQString& mark);
+ void parseWhatIs( TQMap<TQString, TQString> &i, TQTextStream &t, const TQString &mark );
diff --git a/gentoo/trinity-base/kdebase-kioslaves/kdebase-kioslaves-3.5.13.1.ebuild b/gentoo/trinity-base/kdebase-kioslaves/kdebase-kioslaves-3.5.13.1.ebuild
new file mode 100644
index 000000000..564014691
--- /dev/null
+++ b/gentoo/trinity-base/kdebase-kioslaves/kdebase-kioslaves-3.5.13.1.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+TSM_EXTRACT="kioslave"
+
+DESCRIPTION="Generic Trinity KIOslaves"
+KEYWORDS="x86 amd64"
+IUSE="hal ldap openexr samba sasl"
+
+DEPEND="
+ x11-libs/libXcursor
+ openexr? ( >=media-libs/openexr-1.2.2-r2 )
+ samba? ( net-fs/samba )
+ ldap? ( net-nds/openldap )
+ sasl? ( dev-libs/cyrus-sasl:2 )
+ hal? ( dev-libs/dbus-tqt =sys-apps/hal-0.5* )"
+
+RDEPEND="${DEPEND}
+ virtual/ssh
+ trinity-base/kdeeject:${SLOT}"
+
+PATCHES=( "${FILESDIR}/${TRINITY_MODULE_NAME}-3.5.13.1-fix-kioslaves-with-hal.patch" )
+
+src_configure() {
+ mycmakeargs=(
+ -DWITH_XCURSOR=ON
+ $(cmake-utils_use_with hal HAL)
+ $(cmake-utils_use_with ldap LDAP)
+ $(cmake-utils_use_with openexr OPENEXR)
+ $(cmake-utils_use_with samba SAMBA)
+ $(cmake-utils_use_with sasl SASL)
+ )
+
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-base/kdebase-kioslaves/kdebase-kioslaves-3.5.13.2.ebuild b/gentoo/trinity-base/kdebase-kioslaves/kdebase-kioslaves-3.5.13.2.ebuild
new file mode 100644
index 000000000..90dde1cec
--- /dev/null
+++ b/gentoo/trinity-base/kdebase-kioslaves/kdebase-kioslaves-3.5.13.2.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+TSM_EXTRACT="kioslave"
+
+DESCRIPTION="Generic Trinity KIOslaves"
+KEYWORDS="~amd64 ~x86"
+IUSE="hal ldap openexr samba sasl"
+
+DEPEND="
+ x11-libs/libXcursor
+ openexr? ( >=media-libs/openexr-1.2.2-r2 )
+ samba? ( net-fs/samba )
+ ldap? ( net-nds/openldap )
+ sasl? ( dev-libs/cyrus-sasl:2 )
+ hal? ( dev-libs/dbus-tqt =sys-apps/hal-0.5* )"
+
+RDEPEND="${DEPEND}
+ virtual/ssh
+ trinity-base/kdeeject:${SLOT}"
+
+PATCHES=( "${FILESDIR}/${TRINITY_MODULE_NAME}-3.5.13.2-fix-mandb-support-in-kio-man.patch" )
+
+src_configure() {
+ mycmakeargs=(
+ -DWITH_XCURSOR=ON
+ $(cmake-utils_use_with hal HAL)
+ $(cmake-utils_use_with ldap LDAP)
+ $(cmake-utils_use_with openexr OPENEXR)
+ $(cmake-utils_use_with samba SAMBA)
+ $(cmake-utils_use_with sasl SASL)
+ )
+
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-base/kdebase-kioslaves/metadata.xml b/gentoo/trinity-base/kdebase-kioslaves/metadata.xml
new file mode 100644
index 000000000..a8b413944
--- /dev/null
+++ b/gentoo/trinity-base/kdebase-kioslaves/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+ <longdescription>
+ kioslaves is the Trinity VFS framework which plugins present a filesystem-like view of arbitrary data.
+ This package provides most generic KIOslaves provided by kdebase.
+ </longdescription>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kdebase-meta/kdebase-meta-3.5.13.1.ebuild b/gentoo/trinity-base/kdebase-meta/kdebase-meta-3.5.13.1.ebuild
new file mode 100644
index 000000000..0b19cbf81
--- /dev/null
+++ b/gentoo/trinity-base/kdebase-meta/kdebase-meta-3.5.13.1.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+
+inherit trinity-functions
+
+set-trinityver
+
+DESCRIPTION="kdebase metapackage - merge this to pull in all kdebase-derived packages"
+HOMEPAGE="http://www.trinitydesktop.org/"
+LICENSE="GPL-2 LGPL-2"
+
+SLOT="$TRINITY_VER"
+IUSE=""
+KEYWORDS="x86 amd64"
+
+RDEPEND=">=trinity-base/kdebase-starttde-${PV}:${SLOT}
+ >=trinity-base/drkonqi-${PV}:${SLOT}
+ >=trinity-base/kappfinder-${PV}:${SLOT}
+ >=trinity-base/kate-${PV}:${SLOT}
+ >=trinity-base/kcheckpass-${PV}:${SLOT}
+ >=trinity-base/kcminit-${PV}:${SLOT}
+ >=trinity-base/kcontrol-${PV}:${SLOT}
+ >=trinity-base/kdcop-${PV}:${SLOT}
+ >=trinity-base/kdebugdialog-${PV}:${SLOT}
+ >=trinity-base/kdepasswd-${PV}:${SLOT}
+ >=trinity-base/kdeprint-${PV}:${SLOT}
+ >=trinity-base/kdeeject-${PV}:${SLOT}
+ >=trinity-base/kdesktop-${PV}:${SLOT}
+ >=trinity-base/kdesu-${PV}:${SLOT}
+ >=trinity-base/kdialog-${PV}:${SLOT}
+ >=trinity-base/kdm-${PV}:${SLOT}
+ >=trinity-base/kfind-${PV}:${SLOT}
+ >=trinity-base/khelpcenter-${PV}:${SLOT}
+ >=trinity-base/khotkeys-${PV}:${SLOT}
+ >=trinity-base/kicker-${PV}:${SLOT}
+ >=trinity-base/kdebase-kioslaves-${PV}:${SLOT}
+ >=trinity-base/klipper-${PV}:${SLOT}
+ >=trinity-base/kmenuedit-${PV}:${SLOT}
+ >=trinity-base/konqueror-${PV}:${SLOT}
+ >=trinity-base/konsole-${PV}:${SLOT}
+ >=trinity-base/kpager-${PV}:${SLOT}
+ >=trinity-base/kpersonalizer-${PV}:${SLOT}
+ >=trinity-base/kreadconfig-${PV}:${SLOT}
+ >=trinity-base/kscreensaver-${PV}:${SLOT}
+ >=trinity-base/ksmserver-${PV}:${SLOT}
+ >=trinity-base/ksplashml-${PV}:${SLOT}
+ >=trinity-base/kstart-${PV}:${SLOT}
+ >=trinity-base/ksysguard-${PV}:${SLOT}
+ >=trinity-base/ksystraycmd-${PV}:${SLOT}
+ >=trinity-base/ktip-${PV}:${SLOT}
+ >=trinity-base/kwin-${PV}:${SLOT}
+ >=trinity-base/kxkb-${PV}:${SLOT}
+ >=trinity-base/libkonq-${PV}:${SLOT}
+ >=trinity-base/nsplugins-${PV}:${SLOT}
+ >=trinity-base/knetattach-${PV}:${SLOT}
+ >=trinity-base/kdebase-data-${PV}:${SLOT}
+ >=trinity-base/krootbacking-${PV}:${SLOT}
+ >=trinity-base/tqt3integration-${PV}:${SLOT}"
diff --git a/gentoo/trinity-base/kdebase-meta/kdebase-meta-3.5.13.2.ebuild b/gentoo/trinity-base/kdebase-meta/kdebase-meta-3.5.13.2.ebuild
new file mode 100644
index 000000000..b3d9532e5
--- /dev/null
+++ b/gentoo/trinity-base/kdebase-meta/kdebase-meta-3.5.13.2.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+
+inherit trinity-functions
+
+set-trinityver
+
+DESCRIPTION="kdebase metapackage - merge this to pull in all kdebase-derived packages"
+HOMEPAGE="http://www.trinitydesktop.org/"
+LICENSE="GPL-2 LGPL-2"
+
+SLOT="$TRINITY_VER"
+IUSE=""
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND=">=trinity-base/kdebase-starttde-${PV}:${SLOT}
+ >=trinity-base/drkonqi-${PV}:${SLOT}
+ >=trinity-base/kappfinder-${PV}:${SLOT}
+ >=trinity-base/kate-${PV}:${SLOT}
+ >=trinity-base/kcheckpass-${PV}:${SLOT}
+ >=trinity-base/kcminit-${PV}:${SLOT}
+ >=trinity-base/kcontrol-${PV}:${SLOT}
+ >=trinity-base/kdcop-${PV}:${SLOT}
+ >=trinity-base/kdebugdialog-${PV}:${SLOT}
+ >=trinity-base/kdepasswd-${PV}:${SLOT}
+ >=trinity-base/kdeprint-${PV}:${SLOT}
+ >=trinity-base/kdeeject-${PV}:${SLOT}
+ >=trinity-base/kdesktop-${PV}:${SLOT}
+ >=trinity-base/kdesu-${PV}:${SLOT}
+ >=trinity-base/kdialog-${PV}:${SLOT}
+ >=trinity-base/kdm-${PV}:${SLOT}
+ >=trinity-base/kfind-${PV}:${SLOT}
+ >=trinity-base/khelpcenter-${PV}:${SLOT}
+ >=trinity-base/khotkeys-${PV}:${SLOT}
+ >=trinity-base/kicker-${PV}:${SLOT}
+ >=trinity-base/kdebase-kioslaves-${PV}:${SLOT}
+ >=trinity-base/klipper-${PV}:${SLOT}
+ >=trinity-base/kmenuedit-${PV}:${SLOT}
+ >=trinity-base/konqueror-${PV}:${SLOT}
+ >=trinity-base/konsole-${PV}:${SLOT}
+ >=trinity-base/kpager-${PV}:${SLOT}
+ >=trinity-base/kpersonalizer-${PV}:${SLOT}
+ >=trinity-base/kreadconfig-${PV}:${SLOT}
+ >=trinity-base/kscreensaver-${PV}:${SLOT}
+ >=trinity-base/ksmserver-${PV}:${SLOT}
+ >=trinity-base/ksplashml-${PV}:${SLOT}
+ >=trinity-base/kstart-${PV}:${SLOT}
+ >=trinity-base/ksysguard-${PV}:${SLOT}
+ >=trinity-base/ksystraycmd-${PV}:${SLOT}
+ >=trinity-base/ktip-${PV}:${SLOT}
+ >=trinity-base/kwin-${PV}:${SLOT}
+ >=trinity-base/kxkb-${PV}:${SLOT}
+ >=trinity-base/libkonq-${PV}:${SLOT}
+ >=trinity-base/nsplugins-${PV}:${SLOT}
+ >=trinity-base/knetattach-${PV}:${SLOT}
+ >=trinity-base/kdebase-data-${PV}:${SLOT}
+ >=trinity-base/krootbacking-${PV}:${SLOT}
+ >=trinity-base/tqt3integration-${PV}:${SLOT}"
diff --git a/gentoo/trinity-base/kdebase-meta/metadata.xml b/gentoo/trinity-base/kdebase-meta/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kdebase-meta/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kdebase-starttde/Manifest b/gentoo/trinity-base/kdebase-starttde/Manifest
new file mode 100644
index 000000000..381340c4b
--- /dev/null
+++ b/gentoo/trinity-base/kdebase-starttde/Manifest
@@ -0,0 +1,2 @@
+DIST kdebase-3.5.13.1.tar.gz 29403228 SHA256 ddd4bd4b508ad027b9d1af2701c6ba64bfc9f8f1d32099e6dd5e7866714f759e SHA512 e1aac19c941a5f2b43a57928fdb43e5ebd646f49c60911d9d317550df96642870792c4e77ecd06e123244e2425ccd4bcb00f0a21011ba7e651d7fcf4553e79cf WHIRLPOOL 931debbf6a65c280221025dcbc02cbb3387b66eb72eddd28a510ee8f97075cd2cc96535dde25d0a32280c399e4a868e9c027772f5d28e7e79b7c1a9080c58034
+DIST kdebase-trinity-3.5.13.2.tar.xz 25890636 SHA256 b9d552226daff64437dfb9699669b95dd7ebc2ca7c43755ba71c10cc6c9ed789 SHA512 df545d44c7d4550d1d77ff6504572b622853c2b8d80062b1aee1a5bdca19f0e708cde35cff54cf2d5098f06a41bde0c89522a3958dea9bb18205dea87c11b797 WHIRLPOOL 79144273bc7985c59a593a3394b12a2053532d2c4c890ce96adad21f6de0413baf3c6270d6d06173ec4546b20d401aa0cc81603d01b8ee41dbdefc825b39b2b1
diff --git a/gentoo/trinity-base/kdebase-starttde/files/agent-shutdown.sh b/gentoo/trinity-base/kdebase-starttde/files/agent-shutdown.sh
new file mode 100644
index 000000000..07cf74772
--- /dev/null
+++ b/gentoo/trinity-base/kdebase-starttde/files/agent-shutdown.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+#
+# This file is executed at kde shutdown.
+# Uncomment the following lines to kill the agents
+# that were started at session startup.
+
+#if [ -n "${GPG_AGENT_INFO}" ]; then
+# kill $(echo ${GPG_AGENT_INFO} | cut -d':' -f 2) >/dev/null 2>&1
+#fi
+
+#if [ -n "${SSH_AGENT_PID}" ]; then
+# eval "$(ssh-agent -s -k)"
+#fi
diff --git a/gentoo/trinity-base/kdebase-starttde/files/agent-startup.sh b/gentoo/trinity-base/kdebase-starttde/files/agent-startup.sh
new file mode 100644
index 000000000..e97c7b658
--- /dev/null
+++ b/gentoo/trinity-base/kdebase-starttde/files/agent-startup.sh
@@ -0,0 +1,29 @@
+# Agents startup file
+#
+# This file is sourced at trinity startup, so that
+# the environment variables set here are available
+# throughout the session.
+
+# Uncomment the following lines to start gpg-agent
+# and/or ssh-agent at kde startup.
+# If you do so, do not forget to uncomment the respective
+# lines in TDEDIR/shutdown/agent-shutdown.sh to
+# properly kill the agents when the session ends.
+
+#if [ -x /usr/bin/gpg-agent ]; then
+# eval "$(/usr/bin/gpg-agent --daemon)"
+#fi
+
+#if [ -x /usr/bin/ssh-agent ]; then
+# eval "$(/usr/bin/ssh-agent -s)"
+#fi
+
+# Uncomment the following lines to start rxvt-unicode which has the ability to
+# run multiple terminals in one single process, thus starting up faster and
+# saving resources.
+# The --opendisplay ensures that the daemon quits when the X server terminates,
+# therefore we don't need matching lines in agent-shutdown.sh.
+
+#if [ -x /usr/bin/urxvtd ]; then
+# /usr/bin/urxvtd --opendisplay --fork --quiet
+#fi
diff --git a/gentoo/trinity-base/kdebase-starttde/files/kdebase-startkde-3.5.13.1-gentoo.patch b/gentoo/trinity-base/kdebase-starttde/files/kdebase-startkde-3.5.13.1-gentoo.patch
new file mode 100644
index 000000000..9f84aa306
--- /dev/null
+++ b/gentoo/trinity-base/kdebase-starttde/files/kdebase-startkde-3.5.13.1-gentoo.patch
@@ -0,0 +1,63 @@
+--- startkde 2012-12-08 19:03:57.264176845 +0400
++++ startkde.gentoo 2012-12-08 19:42:37.448228534 +0400
+@@ -45,6 +45,16 @@
+ # because we still need to do some cleanup.
+ trap '[startkde] echo GOT SIGHUP' HUP
+
++# Gentoo: setup environment, filter other slotted KDE installs from PATH
++_KDEDIR=@REPLACE_PREFIX@
++#export KDEDIRS=${_KDEDIR}:/usr:/usr/local
++export PATH=${_KDEDIR}/bin:$(echo ${PATH} | sed 's/$/:/g;s#/usr/trinity/[^/]*/s\?bin/\?:##g;s/:$//g')
++export ROOTPATH=${_KDEDIR}/sbin:${_KDEDIR}/bin:$(echo ${PATH} | sed 's/$/:/g;s#/usr/trinity/[^/]*/s\?bin/\?:##g;s/:$//g')
++export LDPATH=@REPLACE_LIBS@:${LDPATH}
++export XDG_DATA_DIRS=${_KDEDIR}/share:$(echo ${XDG_DATA_DIRS} | sed 's/$/:/g;s#/usr/trinity/[^/]*/share/\?:##g;s/:$//g')
++unset _KDEDIR
++# Gentoo part ends
++
+ # Check if a TDE session is already running.
+ if kcheckrunning >/dev/null 2>&1; then
+ echo "[startkde] TDE seems to be already running on this display."
+@@ -52,6 +62,20 @@
+ exit 1
+ fi
+
++# Gentoo part:
++# Scrapped old TDE-x -> TDE-y update code, but keep symlink code
++pushd ${HOME}
++if [ -L .trinity -o ! -e .trinity ]; then
++ # handle ~/.trinity* dirs - separate ones for separate trinity instances
++ rm -f .trinity
++ if [ ! -e .trinity-3.5 ]; then
++ mkdir .trinity-3.5
++ fi
++ ln -sf .trinity-3.5 .trinity
++fi
++popd
++# Gentoo part ends
++
+ # Set the background color.
+ # The standard X background is nasty, causing moire effects and exploding
+ # people's heads. We use colours from the standard TDE palette for those with
+@@ -435,6 +459,13 @@
+ done
+ done
+
++# Source scripts in /etc/X11/xinit/xinitrc.d/ for system-level defined stuff
++if test -d "/etc/X11/xinit/xinitrc.d/"; then
++ for file in "/etc/X11/xinit/xinitrc.d/"*; do
++ test -x "$file" && . "$file"
++ done
++fi
++
+ # Activate the TDE font directories.
+ #
+ # There are 4 directories that may be used for supplying fonts for TDE.
+@@ -688,7 +719,7 @@
+ # Clean up
+ $KDEDIR/bin/kdeinit_shutdown
+ $KDEDIR/bin/dcopserver_shutdown --wait
+-$KDEDIR/bin/artsshell -q terminate
++[ -x ${KDEDIR}/bin/artsshell ] && $KDEDIR/bin/artsshell -q terminate
+ # KDE4 support
+ if [ -f /usr/bin/kdeinit4_shutdown ]; then
+ /usr/bin/kde4 kdeinit4_shutdown 2>/dev/null
diff --git a/gentoo/trinity-base/kdebase-starttde/files/kdebase-startkde-3.5.13.2-gentoo.patch b/gentoo/trinity-base/kdebase-starttde/files/kdebase-startkde-3.5.13.2-gentoo.patch
new file mode 100644
index 000000000..9f84aa306
--- /dev/null
+++ b/gentoo/trinity-base/kdebase-starttde/files/kdebase-startkde-3.5.13.2-gentoo.patch
@@ -0,0 +1,63 @@
+--- startkde 2012-12-08 19:03:57.264176845 +0400
++++ startkde.gentoo 2012-12-08 19:42:37.448228534 +0400
+@@ -45,6 +45,16 @@
+ # because we still need to do some cleanup.
+ trap '[startkde] echo GOT SIGHUP' HUP
+
++# Gentoo: setup environment, filter other slotted KDE installs from PATH
++_KDEDIR=@REPLACE_PREFIX@
++#export KDEDIRS=${_KDEDIR}:/usr:/usr/local
++export PATH=${_KDEDIR}/bin:$(echo ${PATH} | sed 's/$/:/g;s#/usr/trinity/[^/]*/s\?bin/\?:##g;s/:$//g')
++export ROOTPATH=${_KDEDIR}/sbin:${_KDEDIR}/bin:$(echo ${PATH} | sed 's/$/:/g;s#/usr/trinity/[^/]*/s\?bin/\?:##g;s/:$//g')
++export LDPATH=@REPLACE_LIBS@:${LDPATH}
++export XDG_DATA_DIRS=${_KDEDIR}/share:$(echo ${XDG_DATA_DIRS} | sed 's/$/:/g;s#/usr/trinity/[^/]*/share/\?:##g;s/:$//g')
++unset _KDEDIR
++# Gentoo part ends
++
+ # Check if a TDE session is already running.
+ if kcheckrunning >/dev/null 2>&1; then
+ echo "[startkde] TDE seems to be already running on this display."
+@@ -52,6 +62,20 @@
+ exit 1
+ fi
+
++# Gentoo part:
++# Scrapped old TDE-x -> TDE-y update code, but keep symlink code
++pushd ${HOME}
++if [ -L .trinity -o ! -e .trinity ]; then
++ # handle ~/.trinity* dirs - separate ones for separate trinity instances
++ rm -f .trinity
++ if [ ! -e .trinity-3.5 ]; then
++ mkdir .trinity-3.5
++ fi
++ ln -sf .trinity-3.5 .trinity
++fi
++popd
++# Gentoo part ends
++
+ # Set the background color.
+ # The standard X background is nasty, causing moire effects and exploding
+ # people's heads. We use colours from the standard TDE palette for those with
+@@ -435,6 +459,13 @@
+ done
+ done
+
++# Source scripts in /etc/X11/xinit/xinitrc.d/ for system-level defined stuff
++if test -d "/etc/X11/xinit/xinitrc.d/"; then
++ for file in "/etc/X11/xinit/xinitrc.d/"*; do
++ test -x "$file" && . "$file"
++ done
++fi
++
+ # Activate the TDE font directories.
+ #
+ # There are 4 directories that may be used for supplying fonts for TDE.
+@@ -688,7 +719,7 @@
+ # Clean up
+ $KDEDIR/bin/kdeinit_shutdown
+ $KDEDIR/bin/dcopserver_shutdown --wait
+-$KDEDIR/bin/artsshell -q terminate
++[ -x ${KDEDIR}/bin/artsshell ] && $KDEDIR/bin/artsshell -q terminate
+ # KDE4 support
+ if [ -f /usr/bin/kdeinit4_shutdown ]; then
+ /usr/bin/kde4 kdeinit4_shutdown 2>/dev/null
diff --git a/gentoo/trinity-base/kdebase-starttde/files/kdebase-startkde-trinity-gentoo.patch b/gentoo/trinity-base/kdebase-starttde/files/kdebase-startkde-trinity-gentoo.patch
new file mode 100644
index 000000000..0d37eab5b
--- /dev/null
+++ b/gentoo/trinity-base/kdebase-starttde/files/kdebase-startkde-trinity-gentoo.patch
@@ -0,0 +1,46 @@
+--- startkde.orig 2011-09-19 14:54:22.812972431 +0400
++++ startkde 2011-09-19 15:02:54.050401619 +0400
+@@ -9,6 +9,15 @@
+ # because we still need to do some cleanup.
+ trap '[startkde] echo GOT SIGHUP' HUP
+
++# Gentoo: setup environment, filter other slotted KDE installs from PATH
++_KDEDIR=@REPLACE_PREFIX@
++#export KDEDIRS=${_KDEDIR}:/usr:/usr/local
++export PATH=${_KDEDIR}/bin:$(echo ${PATH} | sed 's/$/:/g;s#/usr/kde/[^/]*/s\?bin/\?:##g;s/:$//g')
++export ROOTPATH=${_KDEDIR}/sbin:${_KDEDIR}/bin:$(echo ${PATH} | sed 's/$/:/g;s#/usr/kde/[^/]*/s\?bin/\?:##g;s/:$//g')
++export LDPATH=@REPLACE_LIBS@:${LDPATH}
++export XDG_DATA_DIRS=${_KDEDIR}/share:$(echo ${XDG_DATA_DIRS} | sed 's/$/:/g;s#/usr/kde/[^/]*/share/\?:##g;s/:$//g')
++# Gentoo part ends
++
+ # Check if a KDE session is already running.
+ if kcheckrunning >/dev/null 2>&1; then
+ echo "[startkde] KDE seems to be already running on this display."
+@@ -340,6 +349,13 @@
+ done
+ done
+
++# Source scripts in /etc/X11/xinit/xinitrc.d/ for system-level defined stuff
++if test -d "/etc/X11/xinit/xinitrc.d/"; then
++ for file in "/etc/X11/xinit/xinitrc.d/"*; do
++ test -x "$file" && . "$file"
++ done
++fi
++
+ # Activate the kde font directories.
+ #
+ # There are 4 directories that may be used for supplying fonts for KDE.
+@@ -593,7 +609,12 @@
+ # Clean up
+ kdeinit_shutdown
+ dcopserver_shutdown --wait
+-artsshell -q terminate
++
++# Terminate artsshell if it exists
++if [ -e ${_KDEDIR}/bin/artsshell ] ; then
++ artsshell -q terminate ;
++fi
++
+ # KDE4 support
+ if [ -f /usr/bin/kdeinit4_shutdown ]; then
+ kde4 kdeinit4_shutdown 2>/dev/null
diff --git a/gentoo/trinity-base/kdebase-starttde/kdebase-starttde-3.5.13.1.ebuild b/gentoo/trinity-base/kdebase-starttde/kdebase-starttde-3.5.13.1.ebuild
new file mode 100644
index 000000000..2a14b29c1
--- /dev/null
+++ b/gentoo/trinity-base/kdebase-starttde/kdebase-starttde-3.5.13.1.ebuild
@@ -0,0 +1,98 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="starttde script, which starts a complete Trinity session, and associated scripts"
+KEYWORDS="x86 amd64"
+IUSE=""
+
+RDEPEND="x11-apps/xmessage
+ x11-apps/xsetroot
+ x11-apps/xset
+ x11-apps/xrandr
+ x11-apps/mkfontdir
+ x11-apps/xprop
+ >=trinity-base/kdesktop-${PV}:${SLOT}
+ >=trinity-base/kcminit-${PV}:${SLOT}
+ >=trinity-base/ksmserver-${PV}:${SLOT}
+ >=trinity-base/kwin-${PV}:${SLOT}
+ >=trinity-base/kpersonalizer-${PV}:${SLOT}
+ >=trinity-base/kreadconfig-${PV}:${SLOT}
+ >=trinity-base/ksplashml-${PV}:${SLOT}"
+
+TSM_EXTRACT="startkde README.pam INSTALL AUTHORS COPYING COPYING-DOCS kdm"
+
+src_prepare() {
+ epatch "${FILESDIR}/kdebase-startkde-${PV}-gentoo.patch"
+
+ trinity-base_src_prepare
+}
+
+src_configure() {
+ echo -n "";
+}
+
+src_compile() {
+ # Patch the starttde script to setup the environment for KDE 4.0
+ # Add our TDEDIR
+ sed -e "s#@REPLACE_PREFIX@#${TDEDIR}#" \
+ "${S}/startkde" >"${S}/starttde" || die "Sed for PREFIX failed."
+
+ # List all the multilib libdirs
+ local _libdir _libdirs
+ for _libdir in $(get_all_libdirs); do
+ _libdirs="${_libdirs}:${PREFIX}/${_libdir}"
+ done
+ _libdirs=${_libdirs#:}
+
+ # Complete LDPATH
+ sed -i -e "s#@REPLACE_LIBS@#${_libdirs}#" \
+ "${S}/starttde" || die "Sed for LDPATH failed."
+}
+
+src_install() {
+ # starttde script
+ exeinto "${TDEDIR}/bin"
+ doexe starttde
+
+ # startup and shutdown scripts
+ exeinto "${TDEDIR}/env"
+ doexe "${FILESDIR}/agent-startup.sh"
+
+ exeinto "${TDEDIR}/shutdown"
+ doexe "${FILESDIR}/agent-shutdown.sh"
+
+ # freedesktop environment variables
+ cat <<EOF > "${T}/xdg.sh"
+export XDG_CONFIG_DIRS="${TDEDIR}/etc/xdg"
+EOF
+ exeinto "${TDEDIR}/env"
+ doexe "${T}/xdg.sh"
+
+ # x11 session script
+ cat <<EOF > "${T}/tde-${SLOT}"
+#!/bin/sh
+exec ${TDEDIR}/bin/starttde
+EOF
+ exeinto /etc/X11/Sessions
+ doexe "${T}/tde-${SLOT}" # FIXME: change script branding to trinity
+
+ # (not really) freedesktop compliant session script
+ sed -e "s:@TDE_BINDIR@:${TDEDIR}/bin:g;s:Name=Trinity:Name=Trinity ${SLOT}:" \
+ -e "s/startkde/starttde/" \
+ "${S}/kdm/kfrontend/sessions/tde.desktop.in" > "${T}/tde-${SLOT}.desktop"
+ insinto /usr/share/xsessions
+ doins "${T}/tde-${SLOT}.desktop"
+}
+
+pkg_postinst () {
+ echo
+ elog "To enable gpg-agent and/or ssh-agent in Trinity sessions,"
+ elog "edit ${TDEDIR}/env/agent-startup.sh and"
+ elog "${TDEDIR}/shutdown/agent-shutdown.sh"
+ echo
+}
diff --git a/gentoo/trinity-base/kdebase-starttde/kdebase-starttde-3.5.13.2.ebuild b/gentoo/trinity-base/kdebase-starttde/kdebase-starttde-3.5.13.2.ebuild
new file mode 100644
index 000000000..2a66ee3a0
--- /dev/null
+++ b/gentoo/trinity-base/kdebase-starttde/kdebase-starttde-3.5.13.2.ebuild
@@ -0,0 +1,98 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="starttde script, which starts a complete Trinity session, and associated scripts"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="x11-apps/xmessage
+ x11-apps/xsetroot
+ x11-apps/xset
+ x11-apps/xrandr
+ x11-apps/mkfontdir
+ x11-apps/xprop
+ >=trinity-base/kdesktop-${PV}:${SLOT}
+ >=trinity-base/kcminit-${PV}:${SLOT}
+ >=trinity-base/ksmserver-${PV}:${SLOT}
+ >=trinity-base/kwin-${PV}:${SLOT}
+ >=trinity-base/kpersonalizer-${PV}:${SLOT}
+ >=trinity-base/kreadconfig-${PV}:${SLOT}
+ >=trinity-base/ksplashml-${PV}:${SLOT}"
+
+TSM_EXTRACT="startkde README.pam INSTALL AUTHORS COPYING COPYING-DOCS kdm"
+
+src_prepare() {
+ epatch "${FILESDIR}/kdebase-startkde-${PV}-gentoo.patch"
+
+ trinity-base_src_prepare
+}
+
+src_configure() {
+ echo -n "";
+}
+
+src_compile() {
+ # Patch the starttde script to setup the environment for KDE 4.0
+ # Add our TDEDIR
+ sed -e "s#@REPLACE_PREFIX@#${TDEDIR}#" \
+ "${S}/startkde" >"${S}/starttde" || die "Sed for PREFIX failed."
+
+ # List all the multilib libdirs
+ local _libdir _libdirs
+ for _libdir in $(get_all_libdirs); do
+ _libdirs="${_libdirs}:${PREFIX}/${_libdir}"
+ done
+ _libdirs=${_libdirs#:}
+
+ # Complete LDPATH
+ sed -i -e "s#@REPLACE_LIBS@#${_libdirs}#" \
+ "${S}/starttde" || die "Sed for LDPATH failed."
+}
+
+src_install() {
+ # starttde script
+ exeinto "${TDEDIR}/bin"
+ doexe starttde
+
+ # startup and shutdown scripts
+ exeinto "${TDEDIR}/env"
+ doexe "${FILESDIR}/agent-startup.sh"
+
+ exeinto "${TDEDIR}/shutdown"
+ doexe "${FILESDIR}/agent-shutdown.sh"
+
+ # freedesktop environment variables
+ cat <<EOF > "${T}/xdg.sh"
+export XDG_CONFIG_DIRS="${TDEDIR}/etc/xdg"
+EOF
+ exeinto "${TDEDIR}/env"
+ doexe "${T}/xdg.sh"
+
+ # x11 session script
+ cat <<EOF > "${T}/tde-${SLOT}"
+#!/bin/sh
+exec ${TDEDIR}/bin/starttde
+EOF
+ exeinto /etc/X11/Sessions
+ doexe "${T}/tde-${SLOT}" # FIXME: change script branding to trinity
+
+ # (not really) freedesktop compliant session script
+ sed -e "s:@TDE_BINDIR@:${TDEDIR}/bin:g;s:Name=Trinity:Name=Trinity ${SLOT}:" \
+ -e "s/startkde/starttde/" \
+ "${S}/kdm/kfrontend/sessions/tde.desktop.in" > "${T}/tde-${SLOT}.desktop"
+ insinto /usr/share/xsessions
+ doins "${T}/tde-${SLOT}.desktop"
+}
+
+pkg_postinst () {
+ echo
+ elog "To enable gpg-agent and/or ssh-agent in Trinity sessions,"
+ elog "edit ${TDEDIR}/env/agent-startup.sh and"
+ elog "${TDEDIR}/shutdown/agent-shutdown.sh"
+ echo
+}
diff --git a/gentoo/trinity-base/kdebase-starttde/metadata.xml b/gentoo/trinity-base/kdebase-starttde/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kdebase-starttde/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kdebugdialog/Manifest b/gentoo/trinity-base/kdebugdialog/Manifest
new file mode 100644
index 000000000..381340c4b
--- /dev/null
+++ b/gentoo/trinity-base/kdebugdialog/Manifest
@@ -0,0 +1,2 @@
+DIST kdebase-3.5.13.1.tar.gz 29403228 SHA256 ddd4bd4b508ad027b9d1af2701c6ba64bfc9f8f1d32099e6dd5e7866714f759e SHA512 e1aac19c941a5f2b43a57928fdb43e5ebd646f49c60911d9d317550df96642870792c4e77ecd06e123244e2425ccd4bcb00f0a21011ba7e651d7fcf4553e79cf WHIRLPOOL 931debbf6a65c280221025dcbc02cbb3387b66eb72eddd28a510ee8f97075cd2cc96535dde25d0a32280c399e4a868e9c027772f5d28e7e79b7c1a9080c58034
+DIST kdebase-trinity-3.5.13.2.tar.xz 25890636 SHA256 b9d552226daff64437dfb9699669b95dd7ebc2ca7c43755ba71c10cc6c9ed789 SHA512 df545d44c7d4550d1d77ff6504572b622853c2b8d80062b1aee1a5bdca19f0e708cde35cff54cf2d5098f06a41bde0c89522a3958dea9bb18205dea87c11b797 WHIRLPOOL 79144273bc7985c59a593a3394b12a2053532d2c4c890ce96adad21f6de0413baf3c6270d6d06173ec4546b20d401aa0cc81603d01b8ee41dbdefc825b39b2b1
diff --git a/gentoo/trinity-base/kdebugdialog/files/shared b/gentoo/trinity-base/kdebugdialog/files/shared
new file mode 120000
index 000000000..ffc286806
--- /dev/null
+++ b/gentoo/trinity-base/kdebugdialog/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files \ No newline at end of file
diff --git a/gentoo/trinity-base/kdebugdialog/kdebugdialog-3.5.13.1.ebuild b/gentoo/trinity-base/kdebugdialog/kdebugdialog-3.5.13.1.ebuild
new file mode 100644
index 000000000..8da6e9b02
--- /dev/null
+++ b/gentoo/trinity-base/kdebugdialog/kdebugdialog-3.5.13.1.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="A Trinity dialog box for setting preferences for debug output."
+KEYWORDS="x86 amd64"
+IUSE=""
diff --git a/gentoo/trinity-base/kdebugdialog/kdebugdialog-3.5.13.2.ebuild b/gentoo/trinity-base/kdebugdialog/kdebugdialog-3.5.13.2.ebuild
new file mode 100644
index 000000000..52f7aeea3
--- /dev/null
+++ b/gentoo/trinity-base/kdebugdialog/kdebugdialog-3.5.13.2.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="A Trinity dialog box for setting preferences for debug output."
+KEYWORDS="~amd64 ~x86"
+IUSE=""
diff --git a/gentoo/trinity-base/kdebugdialog/metadata.xml b/gentoo/trinity-base/kdebugdialog/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kdebugdialog/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kdeeject/Manifest b/gentoo/trinity-base/kdeeject/Manifest
new file mode 100644
index 000000000..381340c4b
--- /dev/null
+++ b/gentoo/trinity-base/kdeeject/Manifest
@@ -0,0 +1,2 @@
+DIST kdebase-3.5.13.1.tar.gz 29403228 SHA256 ddd4bd4b508ad027b9d1af2701c6ba64bfc9f8f1d32099e6dd5e7866714f759e SHA512 e1aac19c941a5f2b43a57928fdb43e5ebd646f49c60911d9d317550df96642870792c4e77ecd06e123244e2425ccd4bcb00f0a21011ba7e651d7fcf4553e79cf WHIRLPOOL 931debbf6a65c280221025dcbc02cbb3387b66eb72eddd28a510ee8f97075cd2cc96535dde25d0a32280c399e4a868e9c027772f5d28e7e79b7c1a9080c58034
+DIST kdebase-trinity-3.5.13.2.tar.xz 25890636 SHA256 b9d552226daff64437dfb9699669b95dd7ebc2ca7c43755ba71c10cc6c9ed789 SHA512 df545d44c7d4550d1d77ff6504572b622853c2b8d80062b1aee1a5bdca19f0e708cde35cff54cf2d5098f06a41bde0c89522a3958dea9bb18205dea87c11b797 WHIRLPOOL 79144273bc7985c59a593a3394b12a2053532d2c4c890ce96adad21f6de0413baf3c6270d6d06173ec4546b20d401aa0cc81603d01b8ee41dbdefc825b39b2b1
diff --git a/gentoo/trinity-base/kdeeject/kdeeject-3.5.13.1.ebuild b/gentoo/trinity-base/kdeeject/kdeeject-3.5.13.1.ebuild
new file mode 100644
index 000000000..5918dcb4c
--- /dev/null
+++ b/gentoo/trinity-base/kdeeject/kdeeject-3.5.13.1.ebuild
@@ -0,0 +1,15 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity eject frontend"
+KEYWORDS="x86 amd64"
+IUSE=""
+
+DEPEND="trinity-base/kdialog:${SLOT}"
+RDEPEND="${DEPEND}
+ virtual/eject"
diff --git a/gentoo/trinity-base/kdeeject/kdeeject-3.5.13.2.ebuild b/gentoo/trinity-base/kdeeject/kdeeject-3.5.13.2.ebuild
new file mode 100644
index 000000000..5918dcb4c
--- /dev/null
+++ b/gentoo/trinity-base/kdeeject/kdeeject-3.5.13.2.ebuild
@@ -0,0 +1,15 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity eject frontend"
+KEYWORDS="x86 amd64"
+IUSE=""
+
+DEPEND="trinity-base/kdialog:${SLOT}"
+RDEPEND="${DEPEND}
+ virtual/eject"
diff --git a/gentoo/trinity-base/kdeeject/metadata.xml b/gentoo/trinity-base/kdeeject/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kdeeject/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kdegraphics-doc/Manifest b/gentoo/trinity-base/kdegraphics-doc/Manifest
new file mode 100644
index 000000000..f0ba54e9a
--- /dev/null
+++ b/gentoo/trinity-base/kdegraphics-doc/Manifest
@@ -0,0 +1 @@
+DIST kdegraphics-3.5.13.1.tar.gz 7526074 SHA256 19bd36e261bb6c5d2c9c1eba5f736c642b48422d917d44e576835f7ebb44906b SHA512 693e5ad70dbb00c587e588acfb81fc9475c3a4dbc86f41d6053c0584c533349a7564e34b870cb7bbc57361ac539da6f7d7f1b002ac3cfe8b0201db3eeb9147dd WHIRLPOOL fd2c46c517b3a0293880eaf35967295485555b936d0f1e80e0f2c261a1164cfcc5c4b2d943a12c073914d33b59974cc2dd92a78414614caa10f46dd048d518b4
diff --git a/gentoo/trinity-base/kdegraphics-doc/files/shared b/gentoo/trinity-base/kdegraphics-doc/files/shared
new file mode 120000
index 000000000..af62be31d
--- /dev/null
+++ b/gentoo/trinity-base/kdegraphics-doc/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files/ \ No newline at end of file
diff --git a/gentoo/trinity-base/kdegraphics-doc/kdegraphics-doc-3.5.13.1.ebuild b/gentoo/trinity-base/kdegraphics-doc/kdegraphics-doc-3.5.13.1.ebuild
new file mode 100644
index 000000000..aa997ce38
--- /dev/null
+++ b/gentoo/trinity-base/kdegraphics-doc/kdegraphics-doc-3.5.13.1.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdegraphics"
+
+inherit trinity-meta
+
+DESCRIPTION="Documentaion for kdegraphics-derived packages"
+KEYWORDS="x86 amd64"
+IUSE=""
+RDEPEND="
+ >=trinity-base/khelpcenter-${PV}:${SLOT}"
+
+pkg_setup() {
+ # we should reduce MAKEOPTS -j parametr to no more than 4
+ local makeopts_j
+ makeopts_j="$(echo "$MAKEOPTS" | sed -n 's/\(^\|.*\s\)\(-j\s*[0-9]\+\)\(\s.*\|$\)/\2/p')"
+ if [ -n "$makeopts_j" -a "$makeopts_j" > 4 ]; then
+ export MAKEOPTS="${MAKEOPTS//"${makeopts_j}"/-j4}"
+
+ ewarn "This ebuild needs huge amoumt of memmory to compile in highly parallel"
+ ewarn "mode so it can chew it all. MAKEOPTS are reduced to \"$MAKEOPTS\"."
+ fi
+
+ trinity-meta_pkg_setup
+}
diff --git a/gentoo/trinity-base/kdegraphics-doc/metadata.xml b/gentoo/trinity-base/kdegraphics-doc/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kdegraphics-doc/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kdegraphics-kfile-plugins/Manifest b/gentoo/trinity-base/kdegraphics-kfile-plugins/Manifest
new file mode 100644
index 000000000..f0ba54e9a
--- /dev/null
+++ b/gentoo/trinity-base/kdegraphics-kfile-plugins/Manifest
@@ -0,0 +1 @@
+DIST kdegraphics-3.5.13.1.tar.gz 7526074 SHA256 19bd36e261bb6c5d2c9c1eba5f736c642b48422d917d44e576835f7ebb44906b SHA512 693e5ad70dbb00c587e588acfb81fc9475c3a4dbc86f41d6053c0584c533349a7564e34b870cb7bbc57361ac539da6f7d7f1b002ac3cfe8b0201db3eeb9147dd WHIRLPOOL fd2c46c517b3a0293880eaf35967295485555b936d0f1e80e0f2c261a1164cfcc5c4b2d943a12c073914d33b59974cc2dd92a78414614caa10f46dd048d518b4
diff --git a/gentoo/trinity-base/kdegraphics-kfile-plugins/files/tdegraphics-poppler-tqt-remove-unnecessary-check.patch b/gentoo/trinity-base/kdegraphics-kfile-plugins/files/tdegraphics-poppler-tqt-remove-unnecessary-check.patch
new file mode 100644
index 000000000..35448ab1e
--- /dev/null
+++ b/gentoo/trinity-base/kdegraphics-kfile-plugins/files/tdegraphics-poppler-tqt-remove-unnecessary-check.patch
@@ -0,0 +1,19 @@
+--- kfile-plugins/dependencies/poppler-tqt/ConfigureChecks.cmake.orig 2012-10-30 15:37:44.306343796 +0400
++++ kfile-plugins/dependencies/poppler-tqt/ConfigureChecks.cmake 2012-10-30 15:37:56.031354364 +0400
+@@ -1,11 +1,9 @@
+ # Poppler
+-if( BUILD_KPDF )
+- pkg_search_module( POPPLER poppler )
+- if( POPPLER_FOUND )
+- set( HAVE_POPPLER 1 )
+- else( )
+- tde_message_fatal( "poppler is required, but was not found on your system" )
+- endif( )
++pkg_search_module( POPPLER poppler )
++if( POPPLER_FOUND )
++ set( HAVE_POPPLER 1 )
++else( )
++ tde_message_fatal( "poppler is required, but was not found on your system" )
+ endif( )
+
+ tde_save( CMAKE_REQUIRED_INCLUDES CMAKE_REQUIRED_LIBRARIES )
diff --git a/gentoo/trinity-base/kdegraphics-kfile-plugins/kdegraphics-kfile-plugins-3.5.13.1.ebuild b/gentoo/trinity-base/kdegraphics-kfile-plugins/kdegraphics-kfile-plugins-3.5.13.1.ebuild
new file mode 100644
index 000000000..2a7c868ff
--- /dev/null
+++ b/gentoo/trinity-base/kdegraphics-kfile-plugins/kdegraphics-kfile-plugins-3.5.13.1.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdegraphics"
+
+inherit trinity-meta
+
+DESCRIPTION="kfile plugins from kdegraphics"
+KEYWORDS="x86 amd64"
+IUSE="tiff openexr pdf"
+
+DEPEND="
+ tiff? ( media-libs/tiff:= )
+ openexr? ( >=media-libs/openexr-1.2.2-r2 )
+ pdf? ( app-text/poppler )"
+RDEPEND="$DEPEND"
+
+PATCHES=( "$FILESDIR/tdegraphics-poppler-tqt-remove-unnecessary-check.patch" )
+TSM_EXTRACT_ALSO="kghostview/dscparse/"
+
+src_configure() {
+ mycmakeargs=(
+ $(cmake-utils_use_with tiff TIFF)
+ $(cmake-utils_use_with openexr OPENEXR)
+ $(cmake-utils_use_with pdf PDF)
+ )
+
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-base/kdegraphics-kfile-plugins/metadata.xml b/gentoo/trinity-base/kdegraphics-kfile-plugins/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kdegraphics-kfile-plugins/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kdegraphics-meta/kdegraphics-meta-3.5.13.1.ebuild b/gentoo/trinity-base/kdegraphics-meta/kdegraphics-meta-3.5.13.1.ebuild
new file mode 100644
index 000000000..5aa7282bb
--- /dev/null
+++ b/gentoo/trinity-base/kdegraphics-meta/kdegraphics-meta-3.5.13.1.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+
+inherit trinity-functions
+
+set-trinityver
+
+DESCRIPTION="kdegraphics metapackage - merge this to pull in all kdegraphics-derived packages"
+HOMEPAGE="http://www.trinitydesktop.org/"
+LICENSE="GPL-2 LGPL-2"
+
+SLOT="${TRINITY_VER}"
+IUSE=""
+KEYWORDS="amd64 x86"
+
+RDEPEND="
+ >=trinity-base/kamera-${PV}:${SLOT}
+ >=trinity-base/kcoloredit-${PV}:${SLOT}
+ >=trinity-base/kdvi-${PV}:${SLOT}
+ >=trinity-base/kfax-${PV}:${SLOT}
+ >=trinity-base/kdegraphics-kfile-plugins-${PV}:${SLOT}
+ >=trinity-base/kdegraphics-doc-${PV}:${SLOT}
+ >=trinity-base/kgamma-${PV}:${SLOT}
+ >=trinity-base/kghostview-${PV}:${SLOT}
+ >=trinity-base/kiconedit-${PV}:${SLOT}
+ >=trinity-base/kmrml-${PV}:${SLOT}
+ >=trinity-base/kolourpaint-${PV}:${SLOT}
+ >=trinity-base/kooka-${PV}:${SLOT}
+ >=trinity-base/kpdf-${PV}:${SLOT}
+ >=trinity-base/kpovmodeler-${PV}:${SLOT}
+ >=trinity-base/kruler-${PV}:${SLOT}
+ >=trinity-base/ksnapshot-${PV}:${SLOT}
+ >=trinity-base/ksvg-${PV}:${SLOT}
+ >=trinity-base/kuickshow-${PV}:${SLOT}
+ >=trinity-base/kview-${PV}:${SLOT}
+ >=trinity-base/kviewshell-${PV}:${SLOT}
+ >=trinity-base/libkscan-${PV}:${SLOT}"
diff --git a/gentoo/trinity-base/kdegraphics-meta/metadata.xml b/gentoo/trinity-base/kdegraphics-meta/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kdegraphics-meta/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kdelibs/Manifest b/gentoo/trinity-base/kdelibs/Manifest
new file mode 100644
index 000000000..bd7b6990b
--- /dev/null
+++ b/gentoo/trinity-base/kdelibs/Manifest
@@ -0,0 +1,2 @@
+DIST kdelibs-3.5.13.1.tar.gz 16866773 SHA256 ac9540aa5da0706e257411ab70f05997a67999374e4eded915d93163cc82a84c SHA512 8b6fb1576d6f946b4d32df488f4e7c22e2db6783d075da40b4a35fef967ee222fcf73db7174b8e8d7dd6511cbd1399abf7d39c8f20517e260963734ed95c0156 WHIRLPOOL 6b2c64560af1bd24af6af6bd68e4fcbe83be48637d104028a6633ea90b79159d27afb09ed1e98462f2516fe40078b558f541f6cf3cd0f4cf1dcc7aff762c452a
+DIST kdelibs-trinity-3.5.13.2.tar.xz 13269336 SHA256 3415b04c65c9978d97cb1ca57c3fb391116a774e798c6890328c3da091a5ca9c SHA512 b6c3b9811d9a620030576ac4466fbad73b40034f1158b0278eef10363a2d67b7396ffbd2cf782d9317e95ae0f2492840e9d0cf7d7852c302d6e22ba93b11c611 WHIRLPOOL 8dc7ed209874810da9e44614e90def3f45ff688109e38c5e498bf6d14a761aae08985bc96a761c5f4763e000f7c4e9757f3a4092211c5dc6f5e80d2397af1657
diff --git a/gentoo/trinity-base/kdelibs/files/kdelibs-3.5.13.1-OnlyShowIn-TDE.patch b/gentoo/trinity-base/kdelibs/files/kdelibs-3.5.13.1-OnlyShowIn-TDE.patch
new file mode 100644
index 000000000..9d9187f8e
--- /dev/null
+++ b/gentoo/trinity-base/kdelibs/files/kdelibs-3.5.13.1-OnlyShowIn-TDE.patch
@@ -0,0 +1,26 @@
+diff --git a/kinit/autostart.cpp b/kinit/autostart.cpp
+index 48325f2..d4bdb7b 100644
+--- a/kinit/autostart.cpp
++++ b/kinit/autostart.cpp
+@@ -178,7 +178,7 @@ AutoStart::loadAutoStartList()
+
+ if (config.hasKey("OnlyShowIn"))
+ {
+- if ((!config.readListEntry("OnlyShowIn", ';').contains("TDE")) && (!config.readListEntry("OnlyShowIn", ';').contains("KDE")))
++ if (!config.readListEntry("OnlyShowIn", ';').contains("TDE"))
+ continue;
+ }
+ if (config.hasKey("NotShowIn"))
+diff --git a/kio/kio/kservicegroup.cpp b/kio/kio/kservicegroup.cpp
+index 6758ca1..18b402b 100644
+--- a/kio/kio/kservicegroup.cpp
++++ b/kio/kio/kservicegroup.cpp
+@@ -84,7 +84,7 @@ KServiceGroup::KServiceGroup( const TQString &configFile, const TQString & _relp
+ TQStringList tmpList;
+ if (config.hasKey("OnlyShowIn"))
+ {
+- if ((!config.readListEntry("OnlyShowIn", ';').contains("TDE")) && (!config.readListEntry("OnlyShowIn", ';').contains("KDE")))
++ if (!config.readListEntry("OnlyShowIn", ';').contains("TDE"))
+ d->m_bNoDisplay = true;
+ }
+ if (config.hasKey("NotShowIn"))
diff --git a/gentoo/trinity-base/kdelibs/files/kdelibs-3.5.13.1-bug-1161.patch b/gentoo/trinity-base/kdelibs/files/kdelibs-3.5.13.1-bug-1161.patch
new file mode 100644
index 000000000..094708ccd
--- /dev/null
+++ b/gentoo/trinity-base/kdelibs/files/kdelibs-3.5.13.1-bug-1161.patch
@@ -0,0 +1,16 @@
+diff --git a/kdeui/ksharedpixmap.cpp b/kdeui/ksharedpixmap.cpp
+index 29c6702..64c54e1 100644
+--- a/kdeui/ksharedpixmap.cpp
++++ b/kdeui/ksharedpixmap.cpp
+@@ -160,9 +160,8 @@ bool KSharedPixmap::x11Event(XEvent *event)
+ void *drawable_id = (void *) pixmap_id;
+ Drawable pixmap = *(Drawable*) drawable_id;
+
+- Status status = XGetGeometry(qt_xdisplay(), pixmap, &root, &dummy, &dummy, &width, &height, &udummy, &udummy);
+-
+- if (status == BadDrawable)
++ if (!XGetGeometry(qt_xdisplay(), pixmap, &root, &dummy, &dummy,
++ &width, &height, &udummy, &udummy))
+ return false;
+
+ if (d->rect.isEmpty())
diff --git a/gentoo/trinity-base/kdelibs/files/kdelibs-3.5.13.1-fix-insane-kde4-variables.patch b/gentoo/trinity-base/kdelibs/files/kdelibs-3.5.13.1-fix-insane-kde4-variables.patch
new file mode 100644
index 000000000..2247b898f
--- /dev/null
+++ b/gentoo/trinity-base/kdelibs/files/kdelibs-3.5.13.1-fix-insane-kde4-variables.patch
@@ -0,0 +1,13 @@
+diff --git a/kio/kio/kservice.cpp b/kio/kio/kservice.cpp
+index 4964103..368fe9a 100644
+--- a/kio/kio/kservice.cpp
++++ b/kio/kio/kservice.cpp
+@@ -198,7 +198,7 @@ KService::init( KDesktopFile *config )
+
+ m_strExec = config->readPathEntry( "Exec" );
+ if (kde4application && !m_strExec.startsWith("/")) {
+- m_strExec = "KDEHOME=$HOME/.kde XDG_DATA_DIRS=/usr/share KDEDIRS=/usr/ XDG_CONFIG_DIRS=/etc/xdg/ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:$PATH "+m_strExec;
++ m_strExec = "KDEHOME=$HOME/.kde4 XDG_DATA_DIRS=/usr/share KDEDIRS=/usr/ XDG_CONFIG_DIRS=/etc/xdg/ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:$PATH "+m_strExec;
+ } else if (config->readBoolEntry("X-KDE-SubstituteUID")) {
+ int space = m_strExec.find(" ");
+ if (space==-1)
diff --git a/gentoo/trinity-base/kdelibs/files/kdelibs-3.5.13.1-fix-no-xcomposite.patch b/gentoo/trinity-base/kdelibs/files/kdelibs-3.5.13.1-fix-no-xcomposite.patch
new file mode 100644
index 000000000..e359a6284
--- /dev/null
+++ b/gentoo/trinity-base/kdelibs/files/kdelibs-3.5.13.1-fix-no-xcomposite.patch
@@ -0,0 +1,44 @@
+--- kdecore/kapplication.cpp.orig 2012-10-26 11:49:24.000000000 +0400
++++ kdecore/kapplication.cpp 2012-10-26 11:49:33.000000000 +0400
+@@ -186,7 +186,7 @@
+ static Atom kde_xdnd_drop;
+ #endif
+
+-#ifdef Q_WS_X11
++#if defined(Q_WS_X11) && defined(COMPOSITE)
+ static int composite_event, composite_error, composite_opcode;
+ static bool x11_composite_error_generated;
+ static int x11_error(Display *dpy, XErrorEvent *ev) {
+@@ -1981,7 +1981,7 @@
+ return false;
+ }
+
+-bool KApplication::detectCompositionManagerAvailable(bool force_available) {
++bool KApplication::detectCompositionManagerAvailable(bool force_available, bool /* available */) {
+ const char *home;
+ struct passwd *p;
+ p = getpwuid(getuid());
+@@ -2023,21 +2023,17 @@
+ return 0;
+ }
+
+-Qt::HANDLE KApplication::getX11RGBAVisual(char *display) {
++Qt::HANDLE KApplication::getX11RGBAVisual(Display *dpy) {
+ return 0;
+ }
+
+-Qt::HANDLE KApplication::getX11RGBAColormap(char *display) {
++Qt::HANDLE KApplication::getX11RGBAColormap(Display *dpy) {
+ return 0;
+ }
+
+ bool KApplication::isX11CompositionAvailable() {
+ return false;
+ }
+-
+-KApplication KApplication::KARGBApplication( bool allowStyles ) {
+- return KApplication::KApplication(allowStyles, true);
+-}
+ #endif
+
+ static bool kapp_block_user_input = false;
diff --git a/gentoo/trinity-base/kdelibs/files/kdelibs-3.5.13.1-make-xcomposite-optional.patch b/gentoo/trinity-base/kdelibs/files/kdelibs-3.5.13.1-make-xcomposite-optional.patch
new file mode 100644
index 000000000..1b7e1c91a
--- /dev/null
+++ b/gentoo/trinity-base/kdelibs/files/kdelibs-3.5.13.1-make-xcomposite-optional.patch
@@ -0,0 +1,28 @@
+--- CMakeLists.txt.orig 2012-10-25 09:20:57.773606598 +0400
++++ CMakeLists.txt 2012-10-26 07:18:14.793762688 +0400
+@@ -81,5 +81,6 @@
+ OPTION( WITH_ASPELL "Enable aspell support" OFF )
+ OPTION( WITH_HSPELL "Enable hspell support" OFF )
++OPTION( WITH_XCOMPOSITE "Enable xcomposite support" ${WITH_ALL_OPTIONS} )
+
+
+ ##### set PKG_CONFIG_PATH #######################
+@@ -564,10 +565,14 @@
+
+ ##### check for xcomposite #########################
+
+-pkg_search_module( XCOMPOSITE xcomposite )
+-if( XCOMPOSITE_FOUND )
+- set( HAVE_XCOMPOSITE 1 )
+-endif( XCOMPOSITE_FOUND )
++if( WITH_XCOMPOSITE )
++ pkg_search_module( XCOMPOSITE xcomposite )
++ if( XCOMPOSITE_FOUND )
++ set( HAVE_XCOMPOSITE 1 )
++ else()
++ message(FATAL_ERROR "\nxcomposite support was requested, but xcomposite was not found on your system" )
++ endif( XCOMPOSITE_FOUND )
++endif( WITH_XCOMPOSITE )
+
+ ##### check for libxml-2.0 ######################
+
diff --git a/gentoo/trinity-base/kdelibs/files/kdelibs-3.5.13.2-make-xcomposite-optional.patch b/gentoo/trinity-base/kdelibs/files/kdelibs-3.5.13.2-make-xcomposite-optional.patch
new file mode 100644
index 000000000..c635b0036
--- /dev/null
+++ b/gentoo/trinity-base/kdelibs/files/kdelibs-3.5.13.2-make-xcomposite-optional.patch
@@ -0,0 +1,29 @@
+--- CMakeLists.txt.orig 2013-05-09 23:16:28.000000000 +0400
++++ CMakeLists.txt 2013-06-28 04:17:31.677764189 +0400
+@@ -85,6 +85,7 @@
+
+ OPTION( WITH_ASPELL "Enable aspell support" ${WITH_ALL_OPTIONS} )
+ OPTION( WITH_HSPELL "Enable hspell support" ${WITH_ALL_OPTIONS} )
++OPTION( WITH_XCOMPOSITE "Enable xcomposite support" ${WITH_ALL_OPTIONS} )
+
+ set( KDE4_DEFAULT_HOME ".kde" CACHE PATH "KDE4 home directory passed as KDEHOME to kde4 applications" )
+
+@@ -588,10 +589,14 @@
+
+ ##### check for xcomposite #########################
+
+-pkg_search_module( XCOMPOSITE xcomposite )
+-if( XCOMPOSITE_FOUND )
+- set( HAVE_XCOMPOSITE 1 )
+-endif( XCOMPOSITE_FOUND )
++if( WITH_XCOMPOSITE )
++ pkg_search_module( XCOMPOSITE xcomposite )
++ if( XCOMPOSITE_FOUND )
++ set( HAVE_XCOMPOSITE 1 )
++ else()
++ message(FATAL_ERROR "\nxcomposite support was requested, but xcomposite was not found on your system" )
++ endif( XCOMPOSITE_FOUND )
++endif( WITH_XCOMPOSITE )
+
+ ##### check for libxml-2.0 ######################
+
diff --git a/gentoo/trinity-base/kdelibs/kdelibs-3.5.13.1.ebuild b/gentoo/trinity-base/kdelibs/kdelibs-3.5.13.1.ebuild
new file mode 100644
index 000000000..5b042be44
--- /dev/null
+++ b/gentoo/trinity-base/kdelibs/kdelibs-3.5.13.1.ebuild
@@ -0,0 +1,136 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="$PN"
+
+inherit trinity-base multilib
+
+set-trinityver
+
+DESCRIPTION="Trinity libraries needed by all TDE programs."
+HOMEPAGE="http://www.trinitydesktop.org/"
+LICENSE="GPL-2 LGPL-2"
+SLOT="$TRINITY_VER"
+KEYWORDS="x86 amd64"
+IUSE="alsa avahi arts cups fam jpeg2k lua openexr spell sudo tiff utempter
+ xcomposite"
+
+DEPEND="${DEPEND}
+ =dev-qt/tqtinterface-${TRINITY_VER}*
+ >=dev-libs/libxslt-1.1.16
+ >=dev-libs/libxml2-2.6.6
+ >=dev-libs/libpcre-6.6
+ media-libs/libart_lgpl
+ net-dns/libidn
+ app-text/ghostscript-gpl
+ >=dev-libs/openssl-0.9.7d:=
+ media-libs/fontconfig
+ media-libs/freetype:2
+ media-libs/libart_lgpl
+ x11-libs/libXcursor
+ alsa? ( media-libs/alsa-lib )
+ arts? ( trinity-base/arts:= )
+ avahi? ( net-dns/avahi )
+ cups? ( >=net-print/cups-1.1.19 )
+ fam? ( virtual/fam )
+ jpeg2k? ( media-libs/jasper )
+ lua? ( dev-lang/lua:* )
+ openexr? ( >=media-libs/openexr-1.2.2-r2 )
+ spell? ( >=app-dicts/aspell-en-6.0.0 >=app-text/aspell-0.60.5 )
+ sudo? ( app-admin/sudo )
+ tiff? ( media-libs/tiff:= )
+ utempter? ( sys-libs/libutempter )
+ xcomposite? ( x11-libs/libXcomposite )"
+# NOTE: upstream lacks avahi support, so the use flag is currenly masked
+
+RDEPEND="${DEPEND}"
+
+PATCHES=( "$FILESDIR/${PN}-3.5.13.1-make-xcomposite-optional.patch"
+ "$FILESDIR/${PN}-3.5.13.1-fix-no-xcomposite.patch"
+ "$FILESDIR/${PN}-3.5.13.1-OnlyShowIn-TDE.patch"
+ "$FILESDIR/${PN}-3.5.13.1-bug-1161.patch"
+ "$FILESDIR/${PN}-3.5.13.1-fix-insane-kde4-variables.patch")
+
+src_configure() {
+ mycmakeargs=(
+ -DMALLOC_FULL=ON
+ -DWITH_LIBIDN=ON
+ -DWITH_SSL=ON
+ -DWITH_LIBART=ON
+ -DWITH_PCRE=ON
+ -DWITH_XCURSOR=ON
+ -DWITH_HSPELL=OFF
+ $(cmake-utils_use_with alsa ALSA)
+ $(cmake-utils_use_with arts ARTS)
+ $(cmake-utils_use_with avahi AVAHI)
+ $(cmake-utils_use_with cups CUPS)
+ $(cmake-utils_use_with kernel_linux INOTIFY)
+ $(cmake-utils_use_with jpeg2k JASPER)
+ $(cmake-utils_use_with lua LUA)
+ $(cmake-utils_use_with openexr OPENEXR)
+ $(cmake-utils_use_with spell ASPELL)
+ $(cmake-utils_use_with fam GAMIN)
+ $(cmake-utils_use_with tiff TIFF)
+ $(cmake-utils_use_with utempter UTEMPTER)
+ $(cmake-utils_use_with xcomposite XCOMPOSITE)
+ $(cmake-utils_use_with sudo SUDO_KDESU_BACKEND)
+ )
+
+ trinity-base_src_configure
+}
+
+src_install() {
+ trinity-base_src_install
+
+ dodir /etc/env.d
+ # KDE implies that the install path is listed first in TDEDIRS and the user
+ # directory (implicitly added) to be the last entry. Doing otherwise breaks
+ # certain functionality. Do not break this (once again *sigh*), but read the code.
+ # KDE saves the installed path implicitly and so this is not needed, /usr
+ # is set in ${TDEDIR}/share/config/kdeglobals and so TDEDIRS is not needed.
+
+ # List all the multilib libdirs
+ local libdirs
+ for libdir in $(get_all_libdirs); do
+ libdirs="${TDEDIR}/${libdir}:${libdirs}"
+ done
+
+ # number goes down with version upgrade
+ # NOTE: they should be less than kdepaths for kde-3.5
+ cat <<EOF > "${D}/etc/env.d/42trinitypaths-${SLOT}"
+PATH=${TDEDIR}/bin
+ROOTPATH=${TDEDIR}/sbin:${TDEDIR}/bin
+LDPATH=${libdirs#:}
+MANPATH=${TDEDIR}/share/man
+CONFIG_PROTECT="${TDEDIR}/share/config ${TDEDIR}/env ${TDEDIR}/shutdown /usr/share/config"
+#TDE_IS_PRELINKED=1
+# Excessive flushing to disk as in releases before KDE 3.5.10. Usually you don't want that.
+#TDE_EXTRA_FSYNC=1
+XDG_DATA_DIRS="${TDEDIR}/share"
+EOF
+
+ # Make sure the target for the revdep-rebuild stuff exists. Fixes bug 184441.
+ dodir /etc/revdep-rebuild
+
+cat <<EOF > "${D}/etc/revdep-rebuild/50-trinity-${SLOT}"
+SEARCH_DIRS="${TDEDIR}/bin ${TDEDIR}/lib*"
+EOF
+
+ # make documentation help accessible throught symlink
+ dosym ${TDEDIR}/share/doc/kde/HTML ${TDEDIR}/share/doc/HTML
+
+ trinity-base_create_tmp_docfiles
+ trinity-base_install_docfiles
+}
+
+pkg_postinst () {
+ if use sudo; then
+ einfo "Remember sudo use flag sets only the defauld value"
+ einfo "It can be overriden on a user-level by adding:"
+ einfo " [super-user-command]"
+ einfo " super-user-command=su"
+ einfo "To the kdeglobal config file which is should be usually"
+ einfo "located in the ~/.trinity/share/config/ directory."
+ fi
+}
diff --git a/gentoo/trinity-base/kdelibs/kdelibs-3.5.13.2.ebuild b/gentoo/trinity-base/kdelibs/kdelibs-3.5.13.2.ebuild
new file mode 100644
index 000000000..9d3933ede
--- /dev/null
+++ b/gentoo/trinity-base/kdelibs/kdelibs-3.5.13.2.ebuild
@@ -0,0 +1,137 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="$PN"
+
+inherit trinity-base multilib
+
+set-trinityver
+
+DESCRIPTION="Trinity libraries needed by all TDE programs."
+HOMEPAGE="http://www.trinitydesktop.org/"
+LICENSE="GPL-2 LGPL-2"
+SLOT="${TRINITY_VER}"
+KEYWORDS="~amd64 ~x86"
+IUSE="alsa avahi arts cups fam jpeg2k lua lzma openexr spell sudo tiff utempter
+ xcomposite"
+
+DEPEND="${DEPEND}
+ =dev-qt/tqtinterface-${TRINITY_VER}*
+ >=dev-libs/libxslt-1.1.16
+ >=dev-libs/libxml2-2.6.6
+ >=dev-libs/libpcre-6.6
+ media-libs/libart_lgpl
+ net-dns/libidn
+ app-text/ghostscript-gpl
+ >=dev-libs/openssl-0.9.7d:=
+ media-libs/fontconfig
+ media-libs/freetype:2
+ media-libs/libart_lgpl
+ x11-libs/libXcursor
+ alsa? ( media-libs/alsa-lib )
+ arts? ( trinity-base/arts:= )
+ avahi? ( net-dns/avahi )
+ cups? ( >=net-print/cups-1.1.19 )
+ fam? ( virtual/fam )
+ jpeg2k? ( media-libs/jasper )
+ lua? ( dev-lang/lua:* )
+ openexr? ( >=media-libs/openexr-1.2.2-r2 )
+ spell? ( >=app-dicts/aspell-en-6.0.0 >=app-text/aspell-0.60.5 )
+ sudo? ( app-admin/sudo )
+ tiff? ( media-libs/tiff:= )
+ utempter? ( sys-libs/libutempter )
+ xcomposite? ( x11-libs/libXcomposite )
+ lzma? ( app-arch/xz-utils )"
+# NOTE: upstream lacks avahi support, so the use flag is currenly masked
+
+RDEPEND="${DEPEND}"
+
+PATCHES=( "$FILESDIR/${PN}-3.5.13.2-make-xcomposite-optional.patch"
+ "$FILESDIR/${PN}-3.5.13.1-fix-no-xcomposite.patch"
+ "$FILESDIR/${PN}-3.5.13.1-OnlyShowIn-TDE.patch" )
+
+src_configure() {
+ mycmakeargs=(
+ -DMALLOC_FULL=ON
+ -DWITH_LIBIDN=ON
+ -DWITH_SSL=ON
+ -DWITH_LIBART=ON
+ -DWITH_PCRE=ON
+ -DWITH_XCURSOR=ON
+ -DWITH_HSPELL=OFF
+ -DKDE4_DEFAULT_HOME=.kde4
+ $(cmake-utils_use_with alsa ALSA)
+ $(cmake-utils_use_with arts ARTS)
+ $(cmake-utils_use_with avahi AVAHI)
+ $(cmake-utils_use_with cups CUPS)
+ $(cmake-utils_use_with kernel_linux INOTIFY)
+ $(cmake-utils_use_with jpeg2k JASPER)
+ $(cmake-utils_use_with lua LUA)
+ $(cmake-utils_use_with lzma LZMA)
+ $(cmake-utils_use_with openexr OPENEXR)
+ $(cmake-utils_use_with spell ASPELL)
+ $(cmake-utils_use_with fam GAMIN)
+ $(cmake-utils_use_with tiff TIFF)
+ $(cmake-utils_use_with utempter UTEMPTER)
+ $(cmake-utils_use_with xcomposite XCOMPOSITE)
+ $(cmake-utils_use_with sudo SUDO_KDESU_BACKEND)
+ )
+
+ trinity-base_src_configure
+}
+
+src_install() {
+ trinity-base_src_install
+
+ dodir /etc/env.d
+ # KDE implies that the install path is listed first in TDEDIRS and the user
+ # directory (implicitly added) to be the last entry. Doing otherwise breaks
+ # certain functionality. Do not break this (once again *sigh*), but read the code.
+ # KDE saves the installed path implicitly and so this is not needed, /usr
+ # is set in ${TDEDIR}/share/config/kdeglobals and so TDEDIRS is not needed.
+
+ # List all the multilib libdirs
+ local libdirs
+ for libdir in $(get_all_libdirs); do
+ libdirs="${TDEDIR}/${libdir}:${libdirs}"
+ done
+
+ # number goes down with version upgrade
+ # NOTE: they should be less than kdepaths for kde-3.5
+ cat <<EOF > "${D}/etc/env.d/42trinitypaths-${SLOT}"
+PATH=${TDEDIR}/bin
+ROOTPATH=${TDEDIR}/sbin:${TDEDIR}/bin
+LDPATH=${libdirs#:}
+MANPATH=${TDEDIR}/share/man
+CONFIG_PROTECT="${TDEDIR}/share/config ${TDEDIR}/env ${TDEDIR}/shutdown /usr/share/config"
+#TDE_IS_PRELINKED=1
+# Excessive flushing to disk as in releases before KDE 3.5.10. Usually you don't want that.
+#TDE_EXTRA_FSYNC=1
+XDG_DATA_DIRS="${TDEDIR}/share"
+EOF
+
+ # Make sure the target for the revdep-rebuild stuff exists. Fixes bug 184441.
+ dodir /etc/revdep-rebuild
+
+cat <<EOF > "${D}/etc/revdep-rebuild/50-trinity-${SLOT}"
+SEARCH_DIRS="${TDEDIR}/bin ${TDEDIR}/lib*"
+EOF
+
+ # make documentation help accessible throught symlink
+ dosym ${TDEDIR}/share/doc/kde/HTML ${TDEDIR}/share/doc/HTML
+
+ trinity-base_create_tmp_docfiles
+ trinity-base_install_docfiles
+}
+
+pkg_postinst () {
+ if use sudo; then
+ einfo "Remember sudo use flag sets only the defauld value"
+ einfo "It can be overriden on a user-level by adding:"
+ einfo " [super-user-command]"
+ einfo " super-user-command=su"
+ einfo "To the kdeglobal config file which is should be usually"
+ einfo "located in the ~/.trinity/share/config/ directory."
+ fi
+}
diff --git a/gentoo/trinity-base/kdelibs/metadata.xml b/gentoo/trinity-base/kdelibs/metadata.xml
new file mode 100644
index 000000000..ac4ddb965
--- /dev/null
+++ b/gentoo/trinity-base/kdelibs/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+ <use>
+ <flag name="sudo"> Use <pkg>app-admin/sudo</pkg> as a default program to
+ obtain root privileges.</flag>
+ <flag name="utempter">Records user logins. Useful on multi-user systems</flag>
+ </use>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kdelirc/Manifest b/gentoo/trinity-base/kdelirc/Manifest
new file mode 100644
index 000000000..c59ac62b4
--- /dev/null
+++ b/gentoo/trinity-base/kdelirc/Manifest
@@ -0,0 +1,2 @@
+DIST kdeutils-3.5.13.1.tar.gz 2829393 SHA256 3e7ab07fe1bb3e7be7ac3a3796366c88d3b79a58af911546e2c65e32363db527 SHA512 48733e472d0f5da85ef8a32ed6db7fa5e61f0682e49842439e6ea38a1e407059bb35efffe41fc6ed1a718511fd5b2b2c8222d816a23500a4dcbca17461f9a3bd WHIRLPOOL 1488e0c44f60b4d5e397dd2cf93de048eae1b915d4b2b7b1cf27768946f5aae3b5bcc3971ee28b5fa6a57a0b94cca6db0866138b69ad74f1f7bb97cdaaebdbe2
+DIST kdeutils-trinity-3.5.13.2.tar.xz 2259232 SHA256 b2999b9ef39bb2f269b84fdf34a814b5a5599aae7d05538d0bf680c18fb334fa SHA512 f501aa4b61bf440e873eec96f09c0c24ad780db2f9f14b884001c04c04aafccb5afb2b492dcf4fc640f3ec35d86aa419d67936122648a986662cd7b7f4f8a2d8 WHIRLPOOL 49296006875250212f0fdeb0c90c4f69cf0aa7cfd38415e2f7b50bdf81754de64562df2400f4932a502adbe84b58be34cae6c029d68cc62d0e91de5158513239
diff --git a/gentoo/trinity-base/kdelirc/files/shared b/gentoo/trinity-base/kdelirc/files/shared
new file mode 120000
index 000000000..af62be31d
--- /dev/null
+++ b/gentoo/trinity-base/kdelirc/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files/ \ No newline at end of file
diff --git a/gentoo/trinity-base/kdelirc/kdelirc-3.5.13.1.ebuild b/gentoo/trinity-base/kdelirc/kdelirc-3.5.13.1.ebuild
new file mode 100644
index 000000000..b7636506b
--- /dev/null
+++ b/gentoo/trinity-base/kdelirc/kdelirc-3.5.13.1.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdeutils"
+
+inherit trinity-meta
+
+DESCRIPTION="KDElirc - Trinity Frontend to lirc"
+KEYWORDS="x86 amd64"
+IUSE=""
diff --git a/gentoo/trinity-base/kdelirc/kdelirc-3.5.13.2.ebuild b/gentoo/trinity-base/kdelirc/kdelirc-3.5.13.2.ebuild
new file mode 100644
index 000000000..01e91a642
--- /dev/null
+++ b/gentoo/trinity-base/kdelirc/kdelirc-3.5.13.2.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdeutils"
+
+inherit trinity-meta
+
+DESCRIPTION="KDElirc - Trinity Frontend to lirc"
+KEYWORDS="~x86 ~amd64"
+IUSE=""
diff --git a/gentoo/trinity-base/kdelirc/metadata.xml b/gentoo/trinity-base/kdelirc/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kdelirc/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kdenetwork-doc/Manifest b/gentoo/trinity-base/kdenetwork-doc/Manifest
new file mode 100644
index 000000000..1d49700dc
--- /dev/null
+++ b/gentoo/trinity-base/kdenetwork-doc/Manifest
@@ -0,0 +1 @@
+DIST kdenetwork-3.5.13.1.tar.gz 8794225 SHA256 21e69e8cb2550561c26913a5cccdc376115f50cffd43f9a94f7a660a303f46f9 SHA512 b3189a9f5e9cddd130b24a82b95ef90db1ec3c7afa280a46101ba7cbf6f9d92f60a536401f648a96459ba87f70ede5f7ae4affe894515a8e858b40ee79cb1b69 WHIRLPOOL de678ab30e3aa8dc3068c895fd000fdab1bc046e272273bf44196a198210efab82ddde3c5e0ffaa863061e9c56e3a8a68ca2f8f03cd77136755f66688f878c65
diff --git a/gentoo/trinity-base/kdenetwork-doc/files/kdenetwork-3.5.13.1-fix-references-to-user-profile-directory-6f85c0c.patch b/gentoo/trinity-base/kdenetwork-doc/files/kdenetwork-3.5.13.1-fix-references-to-user-profile-directory-6f85c0c.patch
new file mode 100644
index 000000000..be286f17e
--- /dev/null
+++ b/gentoo/trinity-base/kdenetwork-doc/files/kdenetwork-3.5.13.1-fix-references-to-user-profile-directory-6f85c0c.patch
@@ -0,0 +1,70 @@
+diff --git a/doc/knewsticker/index.docbook b/doc/knewsticker/index.docbook
+index 1532f8b..635acb2 100644
+--- a/doc/knewsticker/index.docbook
++++ b/doc/knewsticker/index.docbook
+@@ -1146,7 +1146,7 @@ necessary.</para>
+ to talk to &knewsticker; but you can use it if you modified the
+ configuration file by hand.</para>
+ <tip><para>The configuration file is saved in
+- <filename>~/.kde/share/config/knewsticker_appletrc</filename></para></tip>
++ <filename>~/.trinity/share/config/knewsticker_appletrc</filename></para></tip>
+ <para>Example:</para>
+ <screen width="40">
+ <prompt>%</prompt> <userinput><command>dcop</command> <option>knewsticker</option> <option>KNewsTicker</option> <option>reparseConfig</option></userinput>
+diff --git a/doc/kopete/index.docbook b/doc/kopete/index.docbook
+index c6fba95..7c334b3 100644
+--- a/doc/kopete/index.docbook
++++ b/doc/kopete/index.docbook
+@@ -912,11 +912,11 @@ Shortcuts...</guimenuitem></menuchoice>.</para></tip>
+
+ <para>The emoticons are easy to install - you just place a directory containing
+ the icon files along with an XML file describing the mapping from text to picture in
+-$KDEDIR/share/apps/kopete/pics/emoticons (or $KDEHOME, for example, in /home/joeuser/.kde/).</para>
++$KDEDIR/share/apps/kopete/pics/emoticons (or $KDEHOME, for example, in /home/joeuser/.trinity/).</para>
+
+ <orderedlist>
+ <listitem><para>Copy the extracted directory to $KDEDIR/share/apps/kopete/pics/emoticons or
+- $HOME/.kde/share/apps/kopete/pics/emoticons (or wherever $KDEHOME is)</para></listitem>
++ $HOME/.trinity/share/apps/kopete/pics/emoticons (or wherever $KDEHOME is)</para></listitem>
+ <listitem><para>Select Configure &kopete; from the Settings menu and click on Appearance in the left panel of the Preferences window and click on the Emoticons tab</para></listitem>
+ <listitem><para>Select the emoticons set you just installed from the list</para></listitem>
+ <listitem><para>Now you can use the newly installed emoticons in &kopete;</para></listitem>
+diff --git a/doc/kppp/accounting.docbook b/doc/kppp/accounting.docbook
+index ec6db43..22a3064 100644
+--- a/doc/kppp/accounting.docbook
++++ b/doc/kppp/accounting.docbook
+@@ -11,7 +11,7 @@ the <userinput><option>-r</option>
+ <replaceable>rule_file</replaceable></userinput> command line option to &kppp;
+ and must be installed in <filename
+ class="directory">${KDEDIR}/share/apps/kppp/Rules</filename> or in <filename
+-class="directory">${HOME}/.kde/share/apps/kppp/Rules</filename> before you will
++class="directory">${HOME}/.trinity/share/apps/kppp/Rules</filename> before you will
+ be able to select it in this dialog.</para>
+
+ <programlisting>
+diff --git a/doc/kwifimanager/index.docbook b/doc/kwifimanager/index.docbook
+index 07cc908..8c902d2 100644
+--- a/doc/kwifimanager/index.docbook
++++ b/doc/kwifimanager/index.docbook
+@@ -279,7 +279,7 @@
+ This option is most useful when searching for the special network name
+ <quote>any</quote>. In this mode, the card will log into any network it finds. The
+ logfile's position is <filename class="directory"
+- >$<envar>HOME</envar>/.kde/share/apps/kwifimanager/wireless-log</filename>
++ >$<envar>HOME</envar>/.trinity/share/apps/kwifimanager/wireless-log</filename>
+ </para>
+ </sect3>
+ <sect3>
+diff --git a/doc/lisa/index.docbook b/doc/lisa/index.docbook
+index d93e31d..8dcccb5 100644
+--- a/doc/lisa/index.docbook
++++ b/doc/lisa/index.docbook
+@@ -584,7 +584,7 @@ MaxPingsAtOnce = 256 #send up to 256 ICMP echo requests at on
+ <term><option>-k</option>, <option>--kde1</option></term>
+ <listitem>
+ <para>Search first for
+-<filename>$<envar>HOME</envar>/.kde/share/config/lisarc</filename>, then
++<filename>$<envar>HOME</envar>/.trinity/share/config/lisarc</filename>, then
+ for
+ <filename>$<envar>KDEDIR</envar>/share/config/lisarc</filename>.</para>
+ </listitem>
diff --git a/gentoo/trinity-base/kdenetwork-doc/files/shared b/gentoo/trinity-base/kdenetwork-doc/files/shared
new file mode 120000
index 000000000..af62be31d
--- /dev/null
+++ b/gentoo/trinity-base/kdenetwork-doc/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files/ \ No newline at end of file
diff --git a/gentoo/trinity-base/kdenetwork-doc/kdenetwork-doc-3.5.13.1.ebuild b/gentoo/trinity-base/kdenetwork-doc/kdenetwork-doc-3.5.13.1.ebuild
new file mode 100644
index 000000000..913769449
--- /dev/null
+++ b/gentoo/trinity-base/kdenetwork-doc/kdenetwork-doc-3.5.13.1.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdenetwork"
+
+inherit trinity-meta
+
+DESCRIPTION="Documentaion for kdegraphics-derived packages"
+KEYWORDS="x86 amd64"
+IUSE=""
+RDEPEND="
+ >=trinity-base/khelpcenter-${PV}:${SLOT}"
+
+PATCHES=(
+ "${FILESDIR}/kdenetwork-3.5.13.1-fix-references-to-user-profile-directory-6f85c0c.patch" )
+
+pkg_setup() {
+ # we should reduce MAKEOPTS -j parametr to no more than 4
+ local makeopts_j
+ makeopts_j="$(echo "$MAKEOPTS" | sed -n 's/\(^\|.*\s\)\(-j\s*[0-9]\+\)\(\s.*\|$\)/\2/p')"
+ if [ -n "$makeopts_j" -a "$makeopts_j" > 4 ]; then
+ export MAKEOPTS="${MAKEOPTS//"${makeopts_j}"/-j4}"
+
+ ewarn "This ebuild needs huge amoumt of memmory to compile in highly parallel"
+ ewarn "mode so it can chew it all. MAKEOPTS are reduced to \"$MAKEOPTS\"."
+ fi
+
+ trinity-meta_pkg_setup
+}
diff --git a/gentoo/trinity-base/kdenetwork-doc/metadata.xml b/gentoo/trinity-base/kdenetwork-doc/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kdenetwork-doc/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kdenetwork-filesharing/Manifest b/gentoo/trinity-base/kdenetwork-filesharing/Manifest
new file mode 100644
index 000000000..1d49700dc
--- /dev/null
+++ b/gentoo/trinity-base/kdenetwork-filesharing/Manifest
@@ -0,0 +1 @@
+DIST kdenetwork-3.5.13.1.tar.gz 8794225 SHA256 21e69e8cb2550561c26913a5cccdc376115f50cffd43f9a94f7a660a303f46f9 SHA512 b3189a9f5e9cddd130b24a82b95ef90db1ec3c7afa280a46101ba7cbf6f9d92f60a536401f648a96459ba87f70ede5f7ae4affe894515a8e858b40ee79cb1b69 WHIRLPOOL de678ab30e3aa8dc3068c895fd000fdab1bc046e272273bf44196a198210efab82ddde3c5e0ffaa863061e9c56e3a8a68ca2f8f03cd77136755f66688f878c65
diff --git a/gentoo/trinity-base/kdenetwork-filesharing/files/kdenetwork-bug1330i2-fix-filesharing-parallel-compilation.patch b/gentoo/trinity-base/kdenetwork-filesharing/files/kdenetwork-bug1330i2-fix-filesharing-parallel-compilation.patch
new file mode 100644
index 000000000..956b28f4b
--- /dev/null
+++ b/gentoo/trinity-base/kdenetwork-filesharing/files/kdenetwork-bug1330i2-fix-filesharing-parallel-compilation.patch
@@ -0,0 +1,69 @@
+diff --git a/filesharing/advanced/kcm_sambaconf/CMakeLists.txt b/filesharing/advanced/kcm_sambaconf/CMakeLists.txt
+index 41723ee..d466124 100644
+--- a/filesharing/advanced/kcm_sambaconf/CMakeLists.txt
++++ b/filesharing/advanced/kcm_sambaconf/CMakeLists.txt
+@@ -37,6 +37,24 @@ tde_add_library( filesharesamba STATIC_PIC AUTOMOC
+ filemodedlgimpl.cpp smbpasswdfile.cpp passwd.cpp hiddenfileview.cpp
+ dictmanager.cpp qmultichecklistitem.cpp smbconfconfigwidget.cpp
+ linuxpermissionchecker.cpp expertuserdlg.ui
++ DEPENDENCIES filesharesamba_generate_headers
++)
++
++# Those headers are also required by target in another subdirectory.
++# So we have to add such target for our generated header files to avoid
++# race conditions.
++# SEE cmake FAQ: http://www.cmake.org/Wiki/CMake_FAQ
++#
++add_custom_target( filesharesamba_generate_headers
++ DEPENDS
++ ${CMAKE_CURRENT_BINARY_DIR}/share.h
++ ${CMAKE_CURRENT_BINARY_DIR}/share.h
++ ${CMAKE_CURRENT_BINARY_DIR}/socketoptionsdlg.h
++ ${CMAKE_CURRENT_BINARY_DIR}/userselectdlg.h
++ ${CMAKE_CURRENT_BINARY_DIR}/groupselectdlg.h
++ ${CMAKE_CURRENT_BINARY_DIR}/usertab.h
++ ${CMAKE_CURRENT_BINARY_DIR}/filemodedlg.h
++ ${CMAKE_CURRENT_BINARY_DIR}/expertuserdlg.h
+ )
+
+
+diff --git a/filesharing/advanced/propsdlgplugin/CMakeLists.txt b/filesharing/advanced/propsdlgplugin/CMakeLists.txt
+index 26d94f5..bd96ae6 100644
+--- a/filesharing/advanced/propsdlgplugin/CMakeLists.txt
++++ b/filesharing/advanced/propsdlgplugin/CMakeLists.txt
+@@ -11,7 +11,8 @@
+
+ include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+- ${CMAKE_CURRENT_BINARY_DIR}/../kcm_sambaconf
++ ${CMAKE_BINARY_DIR}/filesharing/advanced/kcm_sambaconf
++ ${CMAKE_SOURCE_DIR}/filesharing/advanced/kcm_sambaconf
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+ )
+@@ -32,7 +33,7 @@ install( FILES
+
+ tde_add_library( propsdlgplugin_common STATIC_PIC AUTOMOC
+ SOURCES propertiespage.cpp propertiespagegui.ui
+- DEPENDENCIES filesharesamba
++ DEPENDENCIES filesharesamba_generate_headers
+ )
+
+
+diff --git a/filesharing/advanced/propsdlgplugin/propertiespage.cpp b/filesharing/advanced/propsdlgplugin/propertiespage.cpp
+index 5ff1af7..6042b9e 100644
+--- a/filesharing/advanced/propsdlgplugin/propertiespage.cpp
++++ b/filesharing/advanced/propsdlgplugin/propertiespage.cpp
+@@ -44,9 +44,9 @@
+ #include "../nfs/nfsdialog.h"
+
+ // Samba related
+-#include "../kcm_sambaconf/sambafile.h"
+-#include "../kcm_sambaconf/sambashare.h"
+-#include "../kcm_sambaconf/sharedlgimpl.h"
++#include "sambafile.h"
++#include "sambashare.h"
++#include "sharedlgimpl.h"
+
+ #include "propertiespage.h"
+
diff --git a/gentoo/trinity-base/kdenetwork-filesharing/kdenetwork-filesharing-3.5.13.1.ebuild b/gentoo/trinity-base/kdenetwork-filesharing/kdenetwork-filesharing-3.5.13.1.ebuild
new file mode 100644
index 000000000..a9fa878da
--- /dev/null
+++ b/gentoo/trinity-base/kdenetwork-filesharing/kdenetwork-filesharing-3.5.13.1.ebuild
@@ -0,0 +1,13 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdenetwork"
+
+inherit trinity-meta
+
+DESCRIPTION="kcontrol filesharing config module for NFS, SMB etc"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+PATCHES=( "${FILESDIR}/kdenetwork-bug1330i2-fix-filesharing-parallel-compilation.patch" )
diff --git a/gentoo/trinity-base/kdenetwork-filesharing/metadata.xml b/gentoo/trinity-base/kdenetwork-filesharing/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kdenetwork-filesharing/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kdenetwork-kfile-plugins/Manifest b/gentoo/trinity-base/kdenetwork-kfile-plugins/Manifest
new file mode 100644
index 000000000..1d49700dc
--- /dev/null
+++ b/gentoo/trinity-base/kdenetwork-kfile-plugins/Manifest
@@ -0,0 +1 @@
+DIST kdenetwork-3.5.13.1.tar.gz 8794225 SHA256 21e69e8cb2550561c26913a5cccdc376115f50cffd43f9a94f7a660a303f46f9 SHA512 b3189a9f5e9cddd130b24a82b95ef90db1ec3c7afa280a46101ba7cbf6f9d92f60a536401f648a96459ba87f70ede5f7ae4affe894515a8e858b40ee79cb1b69 WHIRLPOOL de678ab30e3aa8dc3068c895fd000fdab1bc046e272273bf44196a198210efab82ddde3c5e0ffaa863061e9c56e3a8a68ca2f8f03cd77136755f66688f878c65
diff --git a/gentoo/trinity-base/kdenetwork-kfile-plugins/kdenetwork-kfile-plugins-3.5.13.1.ebuild b/gentoo/trinity-base/kdenetwork-kfile-plugins/kdenetwork-kfile-plugins-3.5.13.1.ebuild
new file mode 100644
index 000000000..49a9c9b70
--- /dev/null
+++ b/gentoo/trinity-base/kdenetwork-kfile-plugins/kdenetwork-kfile-plugins-3.5.13.1.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdenetwork"
+
+inherit trinity-meta
+
+DESCRIPTION="kfile plugins from the kdenetwork provides a torrent file support."
+KEYWORDS="amd64 x86"
+IUSE=""
diff --git a/gentoo/trinity-base/kdenetwork-kfile-plugins/metadata.xml b/gentoo/trinity-base/kdenetwork-kfile-plugins/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kdenetwork-kfile-plugins/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kdepasswd/Manifest b/gentoo/trinity-base/kdepasswd/Manifest
new file mode 100644
index 000000000..381340c4b
--- /dev/null
+++ b/gentoo/trinity-base/kdepasswd/Manifest
@@ -0,0 +1,2 @@
+DIST kdebase-3.5.13.1.tar.gz 29403228 SHA256 ddd4bd4b508ad027b9d1af2701c6ba64bfc9f8f1d32099e6dd5e7866714f759e SHA512 e1aac19c941a5f2b43a57928fdb43e5ebd646f49c60911d9d317550df96642870792c4e77ecd06e123244e2425ccd4bcb00f0a21011ba7e651d7fcf4553e79cf WHIRLPOOL 931debbf6a65c280221025dcbc02cbb3387b66eb72eddd28a510ee8f97075cd2cc96535dde25d0a32280c399e4a868e9c027772f5d28e7e79b7c1a9080c58034
+DIST kdebase-trinity-3.5.13.2.tar.xz 25890636 SHA256 b9d552226daff64437dfb9699669b95dd7ebc2ca7c43755ba71c10cc6c9ed789 SHA512 df545d44c7d4550d1d77ff6504572b622853c2b8d80062b1aee1a5bdca19f0e708cde35cff54cf2d5098f06a41bde0c89522a3958dea9bb18205dea87c11b797 WHIRLPOOL 79144273bc7985c59a593a3394b12a2053532d2c4c890ce96adad21f6de0413baf3c6270d6d06173ec4546b20d401aa0cc81603d01b8ee41dbdefc825b39b2b1
diff --git a/gentoo/trinity-base/kdepasswd/files/shared b/gentoo/trinity-base/kdepasswd/files/shared
new file mode 120000
index 000000000..ffc286806
--- /dev/null
+++ b/gentoo/trinity-base/kdepasswd/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files \ No newline at end of file
diff --git a/gentoo/trinity-base/kdepasswd/kdepasswd-3.5.13.1.ebuild b/gentoo/trinity-base/kdepasswd/kdepasswd-3.5.13.1.ebuild
new file mode 100644
index 000000000..44ee9c91e
--- /dev/null
+++ b/gentoo/trinity-base/kdepasswd/kdepasswd-3.5.13.1.ebuild
@@ -0,0 +1,14 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity GUI for passwd"
+KEYWORDS="x86 amd64"
+IUSE=""
+
+DEPEND=">=trinity-base/libkonq-${PV}:${SLOT}"
+RDEPEND="${DEPEND}"
diff --git a/gentoo/trinity-base/kdepasswd/kdepasswd-3.5.13.2.ebuild b/gentoo/trinity-base/kdepasswd/kdepasswd-3.5.13.2.ebuild
new file mode 100644
index 000000000..5cee2ede2
--- /dev/null
+++ b/gentoo/trinity-base/kdepasswd/kdepasswd-3.5.13.2.ebuild
@@ -0,0 +1,14 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity GUI for passwd"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=">=trinity-base/libkonq-${PV}:${SLOT}"
+RDEPEND="${DEPEND}"
diff --git a/gentoo/trinity-base/kdepasswd/metadata.xml b/gentoo/trinity-base/kdepasswd/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kdepasswd/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kdeprint/Manifest b/gentoo/trinity-base/kdeprint/Manifest
new file mode 100644
index 000000000..381340c4b
--- /dev/null
+++ b/gentoo/trinity-base/kdeprint/Manifest
@@ -0,0 +1,2 @@
+DIST kdebase-3.5.13.1.tar.gz 29403228 SHA256 ddd4bd4b508ad027b9d1af2701c6ba64bfc9f8f1d32099e6dd5e7866714f759e SHA512 e1aac19c941a5f2b43a57928fdb43e5ebd646f49c60911d9d317550df96642870792c4e77ecd06e123244e2425ccd4bcb00f0a21011ba7e651d7fcf4553e79cf WHIRLPOOL 931debbf6a65c280221025dcbc02cbb3387b66eb72eddd28a510ee8f97075cd2cc96535dde25d0a32280c399e4a868e9c027772f5d28e7e79b7c1a9080c58034
+DIST kdebase-trinity-3.5.13.2.tar.xz 25890636 SHA256 b9d552226daff64437dfb9699669b95dd7ebc2ca7c43755ba71c10cc6c9ed789 SHA512 df545d44c7d4550d1d77ff6504572b622853c2b8d80062b1aee1a5bdca19f0e708cde35cff54cf2d5098f06a41bde0c89522a3958dea9bb18205dea87c11b797 WHIRLPOOL 79144273bc7985c59a593a3394b12a2053532d2c4c890ce96adad21f6de0413baf3c6270d6d06173ec4546b20d401aa0cc81603d01b8ee41dbdefc825b39b2b1
diff --git a/gentoo/trinity-base/kdeprint/kdeprint-3.5.13.1.ebuild b/gentoo/trinity-base/kdeprint/kdeprint-3.5.13.1.ebuild
new file mode 100644
index 000000000..74664c608
--- /dev/null
+++ b/gentoo/trinity-base/kdeprint/kdeprint-3.5.13.1.ebuild
@@ -0,0 +1,16 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity printer queue/device manager"
+KEYWORDS="x86 amd64"
+IUSE="cups"
+
+DEPEND="cups? ( net-print/cups )"
+RDEPEND="${DEPEND}
+ app-text/enscript
+ app-text/psutils"
diff --git a/gentoo/trinity-base/kdeprint/kdeprint-3.5.13.2.ebuild b/gentoo/trinity-base/kdeprint/kdeprint-3.5.13.2.ebuild
new file mode 100644
index 000000000..3f1e2c293
--- /dev/null
+++ b/gentoo/trinity-base/kdeprint/kdeprint-3.5.13.2.ebuild
@@ -0,0 +1,16 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity printer queue/device manager"
+KEYWORDS="~amd64 ~x86"
+IUSE="cups"
+
+DEPEND="cups? ( net-print/cups )"
+RDEPEND="${DEPEND}
+ app-text/enscript
+ app-text/psutils"
diff --git a/gentoo/trinity-base/kdeprint/metadata.xml b/gentoo/trinity-base/kdeprint/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kdeprint/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kdesktop/Manifest b/gentoo/trinity-base/kdesktop/Manifest
new file mode 100644
index 000000000..381340c4b
--- /dev/null
+++ b/gentoo/trinity-base/kdesktop/Manifest
@@ -0,0 +1,2 @@
+DIST kdebase-3.5.13.1.tar.gz 29403228 SHA256 ddd4bd4b508ad027b9d1af2701c6ba64bfc9f8f1d32099e6dd5e7866714f759e SHA512 e1aac19c941a5f2b43a57928fdb43e5ebd646f49c60911d9d317550df96642870792c4e77ecd06e123244e2425ccd4bcb00f0a21011ba7e651d7fcf4553e79cf WHIRLPOOL 931debbf6a65c280221025dcbc02cbb3387b66eb72eddd28a510ee8f97075cd2cc96535dde25d0a32280c399e4a868e9c027772f5d28e7e79b7c1a9080c58034
+DIST kdebase-trinity-3.5.13.2.tar.xz 25890636 SHA256 b9d552226daff64437dfb9699669b95dd7ebc2ca7c43755ba71c10cc6c9ed789 SHA512 df545d44c7d4550d1d77ff6504572b622853c2b8d80062b1aee1a5bdca19f0e708cde35cff54cf2d5098f06a41bde0c89522a3958dea9bb18205dea87c11b797 WHIRLPOOL 79144273bc7985c59a593a3394b12a2053532d2c4c890ce96adad21f6de0413baf3c6270d6d06173ec4546b20d401aa0cc81603d01b8ee41dbdefc825b39b2b1
diff --git a/gentoo/trinity-base/kdesktop/files/kdesktop-3.5.13.1-onlyshowin-tde.patch b/gentoo/trinity-base/kdesktop/files/kdesktop-3.5.13.1-onlyshowin-tde.patch
new file mode 100644
index 000000000..ff73afdea
--- /dev/null
+++ b/gentoo/trinity-base/kdesktop/files/kdesktop-3.5.13.1-onlyshowin-tde.patch
@@ -0,0 +1,19 @@
+diff --git a/kdesktop/kdiconview.cc b/kdesktop/kdiconview.cc
+index 0997069..bdbaaa7 100644
+--- a/kdesktop/kdiconview.cc
++++ b/kdesktop/kdiconview.cc
+@@ -1009,12 +1009,12 @@ bool KDIconView::makeFriendlyText( KFileIVI *fileIVI )
+ TQStringList tmpList;
+ if (cfg.hasKey("OnlyShowIn"))
+ {
+- if (!cfg.readListEntry("OnlyShowIn", ';').contains("KDE"))
++ if (!cfg.readListEntry("OnlyShowIn", ';').contains("TDE"))
+ return false;
+ }
+ if (cfg.hasKey("NotShowIn"))
+ {
+- if (cfg.readListEntry("NotShowIn", ';').contains("KDE"))
++ if (cfg.readListEntry("NotShowIn", ';').contains("TDE"))
+ return false;
+ }
+ if (cfg.hasKey("TryExec"))
diff --git a/gentoo/trinity-base/kdesktop/files/shared b/gentoo/trinity-base/kdesktop/files/shared
new file mode 120000
index 000000000..ffc286806
--- /dev/null
+++ b/gentoo/trinity-base/kdesktop/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files \ No newline at end of file
diff --git a/gentoo/trinity-base/kdesktop/kdesktop-3.5.13.1.ebuild b/gentoo/trinity-base/kdesktop/kdesktop-3.5.13.1.ebuild
new file mode 100644
index 000000000..795ef7d2a
--- /dev/null
+++ b/gentoo/trinity-base/kdesktop/kdesktop-3.5.13.1.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="The part of TDE ui that handles icons, desktop, screensaver etc"
+KEYWORDS="x86 amd64"
+IUSE="pam xscreensaver"
+
+DEPEND="x11-libs/libXrender
+ x11-libs/libXcursor
+ >=trinity-base/libkonq-${PV}:${SLOT}
+ >=trinity-base/kcontrol-${PV}:${SLOT}
+ xscreensaver? ( x11-proto/scrnsaverproto )"
+ # Requires the desktop background settings module,
+ # so until we separate the kcontrol modules into separate ebuilds :-),
+ # there's a dep here
+RDEPEND="${DEPEND}
+ >=trinity-base/kcheckpass-${PV}:${SLOT}
+ >=trinity-base/kdialog-${PV}:${SLOT}
+ >=trinity-base/konqueror-${PV}:${SLOT}
+ xscreensaver? ( x11-libs/libXScrnSaver )
+ pam? ( trinity-base/tdebase-pam )"
+
+TSM_EXTRACT_ALSO="kcheckpass/"
+
+PATCHES=( "$FILESDIR/${PN}-3.5.13.1-onlyshowin-tde.patch")
+
+src_configure() {
+ mycmakeargs=(
+ -DWITH_XCURSORS=ON
+ -DWITH_XRENDER=ON
+ $(cmake-utils_use_with pam PAM)
+ $(cmake-utils_use_with xscreensaver XSCREENSAVER)
+ )
+
+ trinity-meta_src_configure
+}
+
+src_install() {
+ trinity-meta_src_install
+ trinity-base_fix_desktop_files "${D}${TDEDIR}/share/apps/kdesktop/Desktop/"*
+}
diff --git a/gentoo/trinity-base/kdesktop/kdesktop-3.5.13.2.ebuild b/gentoo/trinity-base/kdesktop/kdesktop-3.5.13.2.ebuild
new file mode 100644
index 000000000..00ad2bdc0
--- /dev/null
+++ b/gentoo/trinity-base/kdesktop/kdesktop-3.5.13.2.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="The part of TDE ui that handles icons, desktop, screensaver etc"
+KEYWORDS="~amd64 ~x86"
+IUSE="pam xscreensaver"
+
+DEPEND="x11-libs/libXrender
+ x11-libs/libXcursor
+ >=trinity-base/libkonq-${PV}:${SLOT}
+ >=trinity-base/kcontrol-${PV}:${SLOT}
+ xscreensaver? ( x11-proto/scrnsaverproto )"
+ # Requires the desktop background settings module,
+ # so until we separate the kcontrol modules into separate ebuilds :-),
+ # there's a dep here
+RDEPEND="${DEPEND}
+ >=trinity-base/kcheckpass-${PV}:${SLOT}
+ >=trinity-base/kdialog-${PV}:${SLOT}
+ >=trinity-base/konqueror-${PV}:${SLOT}
+ xscreensaver? ( x11-libs/libXScrnSaver )
+ pam? ( trinity-base/tdebase-pam )"
+
+TSM_EXTRACT_ALSO="kcheckpass/"
+
+PATCHES=( "$FILESDIR/${PN}-3.5.13.1-onlyshowin-tde.patch")
+
+src_configure() {
+ mycmakeargs=(
+ -DWITH_XCURSORS=ON
+ -DWITH_XRENDER=ON
+ $(cmake-utils_use_with pam PAM)
+ $(cmake-utils_use_with xscreensaver XSCREENSAVER)
+ )
+
+ trinity-meta_src_configure
+}
+
+src_install() {
+ trinity-meta_src_install
+ trinity-base_fix_desktop_files "${D}${TDEDIR}/share/apps/kdesktop/Desktop/"*
+}
diff --git a/gentoo/trinity-base/kdesktop/kdesktop-9999.ebuild b/gentoo/trinity-base/kdesktop/kdesktop-9999.ebuild
new file mode 100644
index 000000000..43531a0df
--- /dev/null
+++ b/gentoo/trinity-base/kdesktop/kdesktop-9999.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="The part of TDE ui that handles icons, desktop, screensaver etc"
+KEYWORDS=
+IUSE="pam xscreensaver"
+
+COMMON_DEPEND="x11-libs/libXrender
+ x11-libs/libXcursor
+ >=trinity-base/libkonq-${PV}:${SLOT}
+ >=trinity-base/kcontrol-${PV}:${SLOT}
+ xscreensaver? ( x11-libs/libXScrnSaver )"
+ # Requires the desktop background settings module,
+ # so until we separate the kcontrol modules into separate ebuilds :-),
+ # there's a dep here
+DEPEND="${COMMON_DEPEND}
+ xscreensaver? ( x11-proto/scrnsaverproto )
+ xscreensaver? ( x11-misc/xscreensaver )"
+# TODO remove x11-misc/xscreensaver after TDE bug # will be fixed
+RDEPEND="${COMMON_DEPEND}
+ >=trinity-base/kcheckpass-${PV}:${SLOT}
+ >=trinity-base/kdialog-${PV}:${SLOT}
+ >=trinity-base/konqueror-${PV}:${SLOT}
+ pam? ( trinity-base/tdebase-pam )"
+
+TSM_EXTRACT_ALSO="kcheckpass/"
+
+src_configure() {
+ mycmakeargs=(
+ -DWITH_XCURSORS=ON
+ -DWITH_XRENDER=ON
+ $(cmake-utils_use_with pam PAM)
+ $(cmake-utils_use_with xscreensaver XSCREENSAVER)
+ )
+
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-base/kdesktop/metadata.xml b/gentoo/trinity-base/kdesktop/metadata.xml
new file mode 100644
index 000000000..04b5336cd
--- /dev/null
+++ b/gentoo/trinity-base/kdesktop/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+ <longdescription>
+ KDesktop is the Trinity interface that handles icons, desktop popup menus and screensaver system.
+ </longdescription>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kdesu/Manifest b/gentoo/trinity-base/kdesu/Manifest
new file mode 100644
index 000000000..381340c4b
--- /dev/null
+++ b/gentoo/trinity-base/kdesu/Manifest
@@ -0,0 +1,2 @@
+DIST kdebase-3.5.13.1.tar.gz 29403228 SHA256 ddd4bd4b508ad027b9d1af2701c6ba64bfc9f8f1d32099e6dd5e7866714f759e SHA512 e1aac19c941a5f2b43a57928fdb43e5ebd646f49c60911d9d317550df96642870792c4e77ecd06e123244e2425ccd4bcb00f0a21011ba7e651d7fcf4553e79cf WHIRLPOOL 931debbf6a65c280221025dcbc02cbb3387b66eb72eddd28a510ee8f97075cd2cc96535dde25d0a32280c399e4a868e9c027772f5d28e7e79b7c1a9080c58034
+DIST kdebase-trinity-3.5.13.2.tar.xz 25890636 SHA256 b9d552226daff64437dfb9699669b95dd7ebc2ca7c43755ba71c10cc6c9ed789 SHA512 df545d44c7d4550d1d77ff6504572b622853c2b8d80062b1aee1a5bdca19f0e708cde35cff54cf2d5098f06a41bde0c89522a3958dea9bb18205dea87c11b797 WHIRLPOOL 79144273bc7985c59a593a3394b12a2053532d2c4c890ce96adad21f6de0413baf3c6270d6d06173ec4546b20d401aa0cc81603d01b8ee41dbdefc825b39b2b1
diff --git a/gentoo/trinity-base/kdesu/kdesu-3.5.13.1.ebuild b/gentoo/trinity-base/kdesu/kdesu-3.5.13.1.ebuild
new file mode 100644
index 000000000..0f9802b2e
--- /dev/null
+++ b/gentoo/trinity-base/kdesu/kdesu-3.5.13.1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity gui for su(1) or sudo"
+KEYWORDS="x86 amd64"
+IUSE="sudo"
+
+DEPEND+=" sudo? ( app-admin/sudo )"
+RDEPEND+=" ${DEPEND}"
+
+src_configure () {
+ mycmakeargs=(
+ $(cmake-utils_use_with sudo SUDO_KDESU_BACKEND)
+ )
+
+ trinity-meta_src_configure
+}
+
+pkg_postinst () {
+ if use sudo; then
+ einfo "Remember sudo use flag sets only the defauld value"
+ einfo "It can be overriden on a user-level by adding:"
+ einfo " [super-user-command]"
+ einfo " super-user-command=su"
+ einfo "To the kdeglobal config file which is should be usually"
+ einfo "located in the ~/.trinity/share/config/ directory."
+ fi
+}
diff --git a/gentoo/trinity-base/kdesu/kdesu-3.5.13.2.ebuild b/gentoo/trinity-base/kdesu/kdesu-3.5.13.2.ebuild
new file mode 100644
index 000000000..3324828d6
--- /dev/null
+++ b/gentoo/trinity-base/kdesu/kdesu-3.5.13.2.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity gui for su(1) or sudo"
+KEYWORDS="~amd64 ~x86"
+IUSE="sudo"
+
+DEPEND+=" sudo? ( app-admin/sudo )"
+RDEPEND+=" ${DEPEND}"
+
+src_configure () {
+ mycmakeargs=(
+ $(cmake-utils_use_with sudo SUDO_KDESU_BACKEND)
+ )
+
+ trinity-meta_src_configure
+}
+
+pkg_postinst () {
+ if use sudo; then
+ einfo "Remember sudo use flag sets only the defauld value"
+ einfo "It can be overriden on a user-level by adding:"
+ einfo " [super-user-command]"
+ einfo " super-user-command=su"
+ einfo "To the kdeglobal config file which is should be usually"
+ einfo "located in the ~/.trinity/share/config/ directory."
+ fi
+}
diff --git a/gentoo/trinity-base/kdesu/metadata.xml b/gentoo/trinity-base/kdesu/metadata.xml
new file mode 100644
index 000000000..6863f5db6
--- /dev/null
+++ b/gentoo/trinity-base/kdesu/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+ <use>
+ <flag name="sudo"> Use <pkg>app-admin/sudo</pkg> as a default program to
+ obtain root privileges.</flag>
+ </use>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kdetoys-doc/Manifest b/gentoo/trinity-base/kdetoys-doc/Manifest
new file mode 100644
index 000000000..23ad50106
--- /dev/null
+++ b/gentoo/trinity-base/kdetoys-doc/Manifest
@@ -0,0 +1,2 @@
+DIST kdetoys-3.5.13.1.tar.gz 3037255 SHA256 41e4224bcf816e52877b17d2dcdc86d94e8f304fee2d3fb35b97921544eafd9d SHA512 e7cd7943004e5d1ec83c0fe484fab82f2cdd5f5d39ee77db419938f023cd3c42ba0b257d0ddc783de7bd528c90195821d810babfa193c60856437593c24ce879 WHIRLPOOL 8d482537f972a24b1cef9ad789edd314517f4e3a6b37056f47d92292c8c30e70def24e99efc552b4504503e2224e1209ae946ff34ac94feaf128c038c54f010d
+DIST kdetoys-trinity-3.5.13.2.tar.xz 2757260 SHA256 a0533ceb6fb103600eb33ef3136d40f84ec826e24e0b95cc45e68ef73a5232f6 SHA512 eb67a70d75a473f885db8993f5eebd3480e68e43e4de60240fde411696ed8b895029505a5125fe51a41d6ccb583ba50c4c67465d770f14f9a1c1533281154f78 WHIRLPOOL d79f58085d2af17453fc50c621ea6fe6909d476cf5f0a6b6ccf51ef69eed0ba073091f587439eb5afd644e0286dfe2ee86ccd903346d3060c3fe90299511018a
diff --git a/gentoo/trinity-base/kdetoys-doc/files/shared b/gentoo/trinity-base/kdetoys-doc/files/shared
new file mode 120000
index 000000000..af62be31d
--- /dev/null
+++ b/gentoo/trinity-base/kdetoys-doc/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files/ \ No newline at end of file
diff --git a/gentoo/trinity-base/kdetoys-doc/kdetoys-doc-3.5.13.1.ebuild b/gentoo/trinity-base/kdetoys-doc/kdetoys-doc-3.5.13.1.ebuild
new file mode 100644
index 000000000..d5e69871a
--- /dev/null
+++ b/gentoo/trinity-base/kdetoys-doc/kdetoys-doc-3.5.13.1.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdetoys"
+
+inherit trinity-meta
+
+DESCRIPTION="Documentaion for kdetoys-derived packages"
+KEYWORDS="amd64 x86"
+IUSE=""
+RDEPEND="
+ >=trinity-base/khelpcenter-${PV}:${SLOT}"
+
+pkg_setup() {
+ # we should reduce MAKEOPTS -j parametr to no more than 4
+ local makeopts_j
+ makeopts_j="$(echo "$MAKEOPTS" | sed -n 's/\(^\|.*\s\)\(-j\s*[0-9]\+\)\(\s.*\|$\)/\2/p')"
+ if [ -n "$makeopts_j" -a "$makeopts_j" > 4 ]; then
+ export MAKEOPTS="${MAKEOPTS//"${makeopts_j}"/-j4}"
+
+ ewarn "This ebuild needs huge amoumt of memmory to compile in highly parallel"
+ ewarn "mode so it can chew it all. MAKEOPTS are reduced to \"$MAKEOPTS\"."
+ fi
+
+ trinity-meta_pkg_setup
+}
diff --git a/gentoo/trinity-base/kdetoys-doc/kdetoys-doc-3.5.13.2.ebuild b/gentoo/trinity-base/kdetoys-doc/kdetoys-doc-3.5.13.2.ebuild
new file mode 100644
index 000000000..cf874e746
--- /dev/null
+++ b/gentoo/trinity-base/kdetoys-doc/kdetoys-doc-3.5.13.2.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdetoys"
+
+inherit trinity-meta
+
+DESCRIPTION="Documentaion for kdetoys-derived packages"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+RDEPEND="
+ >=trinity-base/khelpcenter-${PV}:${SLOT}"
+
+pkg_setup() {
+ # we should reduce MAKEOPTS -j parametr to no more than 4
+ local makeopts_j
+ makeopts_j="$(echo "$MAKEOPTS" | sed -n 's/\(^\|.*\s\)\(-j\s*[0-9]\+\)\(\s.*\|$\)/\2/p')"
+ if [ -n "$makeopts_j" -a "$makeopts_j" > 4 ]; then
+ export MAKEOPTS="${MAKEOPTS//"${makeopts_j}"/-j4}"
+
+ ewarn "This ebuild needs huge amoumt of memmory to compile in highly parallel"
+ ewarn "mode so it can chew it all. MAKEOPTS are reduced to \"$MAKEOPTS\"."
+ fi
+
+ trinity-meta_pkg_setup
+}
diff --git a/gentoo/trinity-base/kdetoys-doc/kdetoys-doc-9999.ebuild b/gentoo/trinity-base/kdetoys-doc/kdetoys-doc-9999.ebuild
new file mode 100644
index 000000000..eb607c92a
--- /dev/null
+++ b/gentoo/trinity-base/kdetoys-doc/kdetoys-doc-9999.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdetoys"
+
+inherit trinity-meta
+
+DESCRIPTION="Documentaion for kdetoys-derived packages"
+KEYWORDS=
+IUSE=""
+RDEPEND="
+ >=trinity-base/khelpcenter-${PV}:${SLOT}"
+
+pkg_setup() {
+ # we should reduce MAKEOPTS -j parametr to no more than 4
+ local makeopts_j
+ makeopts_j="$(echo "$MAKEOPTS" | sed -n 's/\(^\|.*\s\)\(-j\s*[0-9]\+\)\(\s.*\|$\)/\2/p')"
+ if [ -n "$makeopts_j" -a "$makeopts_j" > 4 ]; then
+ export MAKEOPTS="${MAKEOPTS//"${makeopts_j}"/-j4}"
+
+ ewarn "This ebuild needs huge amoumt of memmory to compile in highly parallel"
+ ewarn "mode so it can chew it all. MAKEOPTS are reduced to \"$MAKEOPTS\"."
+ fi
+
+ trinity-meta_pkg_setup
+}
diff --git a/gentoo/trinity-base/kdetoys-doc/metadata.xml b/gentoo/trinity-base/kdetoys-doc/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kdetoys-doc/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kdetoys-meta/kdetoys-meta-3.5.13.1.ebuild b/gentoo/trinity-base/kdetoys-meta/kdetoys-meta-3.5.13.1.ebuild
new file mode 100644
index 000000000..1c2b55146
--- /dev/null
+++ b/gentoo/trinity-base/kdetoys-meta/kdetoys-meta-3.5.13.1.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+
+inherit trinity-functions
+
+set-trinityver
+
+DESCRIPTION="kdetoys metapackage - merge this to pull in all kdetoys-derived packages"
+HOMEPAGE="http://www.trinitydesktop.org/"
+LICENSE="GPL-2 LGPL-2"
+
+SLOT="$TRINITY_VER"
+IUSE=""
+KEYWORDS="x86 amd64"
+
+RDEPEND="
+ >=trinity-base/amor-${PV}:${SLOT}
+ >=trinity-base/eyesapplet-${PV}:${SLOT}
+ >=trinity-base/fifteenapplet-${PV}:${SLOT}
+ >=trinity-base/kdetoys-doc-${PV}:${SLOT}
+ >=trinity-base/kmoon-${PV}:${SLOT}
+ >=trinity-base/kodo-${PV}:${SLOT}
+ >=trinity-base/kteatime-${PV}:${SLOT}
+ >=trinity-base/ktux-${PV}:${SLOT}
+ >=trinity-base/kweather-${PV}:${SLOT}
+ >=trinity-base/kworldclock-${PV}:${SLOT}"
diff --git a/gentoo/trinity-base/kdetoys-meta/metadata.xml b/gentoo/trinity-base/kdetoys-meta/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kdetoys-meta/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kdeutils-doc/Manifest b/gentoo/trinity-base/kdeutils-doc/Manifest
new file mode 100644
index 000000000..c59ac62b4
--- /dev/null
+++ b/gentoo/trinity-base/kdeutils-doc/Manifest
@@ -0,0 +1,2 @@
+DIST kdeutils-3.5.13.1.tar.gz 2829393 SHA256 3e7ab07fe1bb3e7be7ac3a3796366c88d3b79a58af911546e2c65e32363db527 SHA512 48733e472d0f5da85ef8a32ed6db7fa5e61f0682e49842439e6ea38a1e407059bb35efffe41fc6ed1a718511fd5b2b2c8222d816a23500a4dcbca17461f9a3bd WHIRLPOOL 1488e0c44f60b4d5e397dd2cf93de048eae1b915d4b2b7b1cf27768946f5aae3b5bcc3971ee28b5fa6a57a0b94cca6db0866138b69ad74f1f7bb97cdaaebdbe2
+DIST kdeutils-trinity-3.5.13.2.tar.xz 2259232 SHA256 b2999b9ef39bb2f269b84fdf34a814b5a5599aae7d05538d0bf680c18fb334fa SHA512 f501aa4b61bf440e873eec96f09c0c24ad780db2f9f14b884001c04c04aafccb5afb2b492dcf4fc640f3ec35d86aa419d67936122648a986662cd7b7f4f8a2d8 WHIRLPOOL 49296006875250212f0fdeb0c90c4f69cf0aa7cfd38415e2f7b50bdf81754de64562df2400f4932a502adbe84b58be34cae6c029d68cc62d0e91de5158513239
diff --git a/gentoo/trinity-base/kdeutils-doc/files/shared b/gentoo/trinity-base/kdeutils-doc/files/shared
new file mode 120000
index 000000000..af62be31d
--- /dev/null
+++ b/gentoo/trinity-base/kdeutils-doc/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files/ \ No newline at end of file
diff --git a/gentoo/trinity-base/kdeutils-doc/kdeutils-doc-3.5.13.1.ebuild b/gentoo/trinity-base/kdeutils-doc/kdeutils-doc-3.5.13.1.ebuild
new file mode 100644
index 000000000..f5e4b9068
--- /dev/null
+++ b/gentoo/trinity-base/kdeutils-doc/kdeutils-doc-3.5.13.1.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdeutils"
+
+inherit trinity-meta
+
+DESCRIPTION="Documentaion for kdeutils-derived packages"
+KEYWORDS="x86 amd64"
+IUSE=""
+RDEPEND="
+ >=trinity-base/khelpcenter-${PV}:${SLOT}"
+
+pkg_setup() {
+ # we should reduce MAKEOPTS -j parametr to no more than 4
+ local makeopts_j
+ makeopts_j="$(echo "$MAKEOPTS" | sed -n 's/\(^\|.*\s\)\(-j\s*[0-9]\+\)\(\s.*\|$\)/\2/p')"
+ if [ -n "$makeopts_j" -a "$makeopts_j" > 4 ]; then
+ export MAKEOPTS="${MAKEOPTS//"${makeopts_j}"/-j4}"
+
+ ewarn "This ebuild needs huge amoumt of memmory to compile in highly parallel"
+ ewarn "mode so it can chew it all. MAKEOPTS are reduced to \"$MAKEOPTS\"."
+ fi
+
+ trinity-meta_pkg_setup
+}
diff --git a/gentoo/trinity-base/kdeutils-doc/kdeutils-doc-3.5.13.2.ebuild b/gentoo/trinity-base/kdeutils-doc/kdeutils-doc-3.5.13.2.ebuild
new file mode 100644
index 000000000..698fd9c7a
--- /dev/null
+++ b/gentoo/trinity-base/kdeutils-doc/kdeutils-doc-3.5.13.2.ebuild
@@ -0,0 +1,13 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdeutils"
+
+inherit trinity-meta
+
+DESCRIPTION="Documentaion for kdeutils-derived packages"
+KEYWORDS="~x86 ~amd64"
+IUSE=""
+RDEPEND="
+ >=trinity-base/khelpcenter-${PV}:${SLOT}"
diff --git a/gentoo/trinity-base/kdeutils-doc/metadata.xml b/gentoo/trinity-base/kdeutils-doc/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kdeutils-doc/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kdeutils-meta/kdeutils-meta-3.5.13.1.ebuild b/gentoo/trinity-base/kdeutils-meta/kdeutils-meta-3.5.13.1.ebuild
new file mode 100644
index 000000000..423303774
--- /dev/null
+++ b/gentoo/trinity-base/kdeutils-meta/kdeutils-meta-3.5.13.1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+
+inherit trinity-functions
+
+set-trinityver
+
+DESCRIPTION="kdeutils metapackage - merge this to pull in all kdeutils-derived packages"
+HOMEPAGE="http://www.trinitydesktop.org/"
+LICENSE="GPL-2 LGPL-2"
+
+SLOT="$TRINITY_VER"
+IUSE=""
+KEYWORDS="x86 amd64"
+
+RDEPEND="
+ >=trinity-base/ark-${PV}:${SLOT}
+ >=trinity-base/kdeutils-doc-${PV}:${SLOT}
+ >=trinity-base/kcalc-${PV}:${SLOT}
+ >=trinity-base/kcharselect-${PV}:${SLOT}
+ >=trinity-base/kdelirc-${PV}:${SLOT}
+ >=trinity-base/kdf-${PV}:${SLOT}
+ >=trinity-base/kedit-${PV}:${SLOT}
+ >=trinity-base/kfloppy-${PV}:${SLOT}
+ >=trinity-base/kgpg-${PV}:${SLOT}
+ >=trinity-base/khexedit-${PV}:${SLOT}
+ >=trinity-base/kjots-${PV}:${SLOT}
+ >=trinity-base/klaptopdaemon-${PV}:${SLOT}
+ >=trinity-base/kmilo-${PV}:${SLOT}
+ >=trinity-base/kregexpeditor-${PV}:${SLOT}
+ >=trinity-base/ksim-${PV}:${SLOT}
+ >=trinity-base/ktimer-${PV}:${SLOT}
+ >=trinity-base/kwallet-${PV}:${SLOT}
+ >=trinity-base/superkaramba-${PV}:${SLOT}"
diff --git a/gentoo/trinity-base/kdeutils-meta/kdeutils-meta-3.5.13.2.ebuild b/gentoo/trinity-base/kdeutils-meta/kdeutils-meta-3.5.13.2.ebuild
new file mode 100644
index 000000000..f81a9b7d9
--- /dev/null
+++ b/gentoo/trinity-base/kdeutils-meta/kdeutils-meta-3.5.13.2.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+
+inherit trinity-functions
+
+set-trinityver
+
+DESCRIPTION="kdeutils metapackage - merge this to pull in all kdeutils-derived packages"
+HOMEPAGE="http://www.trinitydesktop.org/"
+LICENSE="GPL-2 LGPL-2"
+
+SLOT="$TRINITY_VER"
+IUSE=""
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+ >=trinity-base/ark-${PV}:${SLOT}
+ >=trinity-base/kdeutils-doc-${PV}:${SLOT}
+ >=trinity-base/kcalc-${PV}:${SLOT}
+ >=trinity-base/kcharselect-${PV}:${SLOT}
+ >=trinity-base/kdelirc-${PV}:${SLOT}
+ >=trinity-base/kdf-${PV}:${SLOT}
+ >=trinity-base/kedit-${PV}:${SLOT}
+ >=trinity-base/kfloppy-${PV}:${SLOT}
+ >=trinity-base/kgpg-${PV}:${SLOT}
+ >=trinity-base/khexedit-${PV}:${SLOT}
+ >=trinity-base/kjots-${PV}:${SLOT}
+ >=trinity-base/klaptopdaemon-${PV}:${SLOT}
+ >=trinity-base/kmilo-${PV}:${SLOT}
+ >=trinity-base/kregexpeditor-${PV}:${SLOT}
+ >=trinity-base/ksim-${PV}:${SLOT}
+ >=trinity-base/ktimer-${PV}:${SLOT}
+ >=trinity-base/kwallet-${PV}:${SLOT}
+ >=trinity-base/superkaramba-${PV}:${SLOT}"
diff --git a/gentoo/trinity-base/kdeutils-meta/metadata.xml b/gentoo/trinity-base/kdeutils-meta/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kdeutils-meta/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kdf/Manifest b/gentoo/trinity-base/kdf/Manifest
new file mode 100644
index 000000000..c59ac62b4
--- /dev/null
+++ b/gentoo/trinity-base/kdf/Manifest
@@ -0,0 +1,2 @@
+DIST kdeutils-3.5.13.1.tar.gz 2829393 SHA256 3e7ab07fe1bb3e7be7ac3a3796366c88d3b79a58af911546e2c65e32363db527 SHA512 48733e472d0f5da85ef8a32ed6db7fa5e61f0682e49842439e6ea38a1e407059bb35efffe41fc6ed1a718511fd5b2b2c8222d816a23500a4dcbca17461f9a3bd WHIRLPOOL 1488e0c44f60b4d5e397dd2cf93de048eae1b915d4b2b7b1cf27768946f5aae3b5bcc3971ee28b5fa6a57a0b94cca6db0866138b69ad74f1f7bb97cdaaebdbe2
+DIST kdeutils-trinity-3.5.13.2.tar.xz 2259232 SHA256 b2999b9ef39bb2f269b84fdf34a814b5a5599aae7d05538d0bf680c18fb334fa SHA512 f501aa4b61bf440e873eec96f09c0c24ad780db2f9f14b884001c04c04aafccb5afb2b492dcf4fc640f3ec35d86aa419d67936122648a986662cd7b7f4f8a2d8 WHIRLPOOL 49296006875250212f0fdeb0c90c4f69cf0aa7cfd38415e2f7b50bdf81754de64562df2400f4932a502adbe84b58be34cae6c029d68cc62d0e91de5158513239
diff --git a/gentoo/trinity-base/kdf/files/shared b/gentoo/trinity-base/kdf/files/shared
new file mode 120000
index 000000000..af62be31d
--- /dev/null
+++ b/gentoo/trinity-base/kdf/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files/ \ No newline at end of file
diff --git a/gentoo/trinity-base/kdf/kdf-3.5.13.1.ebuild b/gentoo/trinity-base/kdf/kdf-3.5.13.1.ebuild
new file mode 100644
index 000000000..3aaef74fc
--- /dev/null
+++ b/gentoo/trinity-base/kdf/kdf-3.5.13.1.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdeutils"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity free disk space utility"
+KEYWORDS="x86 amd64"
+IUSE=""
diff --git a/gentoo/trinity-base/kdf/kdf-3.5.13.2.ebuild b/gentoo/trinity-base/kdf/kdf-3.5.13.2.ebuild
new file mode 100644
index 000000000..ce6c7c1d5
--- /dev/null
+++ b/gentoo/trinity-base/kdf/kdf-3.5.13.2.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdeutils"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity free disk space utility"
+KEYWORDS="~x86 ~amd64"
+IUSE=""
diff --git a/gentoo/trinity-base/kdf/kdf-9999.ebuild b/gentoo/trinity-base/kdf/kdf-9999.ebuild
new file mode 100644
index 000000000..a439c66af
--- /dev/null
+++ b/gentoo/trinity-base/kdf/kdf-9999.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdeutils"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity free disk space utility"
+KEYWORDS=""
+IUSE=""
diff --git a/gentoo/trinity-base/kdf/metadata.xml b/gentoo/trinity-base/kdf/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kdf/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kdialog/Manifest b/gentoo/trinity-base/kdialog/Manifest
new file mode 100644
index 000000000..381340c4b
--- /dev/null
+++ b/gentoo/trinity-base/kdialog/Manifest
@@ -0,0 +1,2 @@
+DIST kdebase-3.5.13.1.tar.gz 29403228 SHA256 ddd4bd4b508ad027b9d1af2701c6ba64bfc9f8f1d32099e6dd5e7866714f759e SHA512 e1aac19c941a5f2b43a57928fdb43e5ebd646f49c60911d9d317550df96642870792c4e77ecd06e123244e2425ccd4bcb00f0a21011ba7e651d7fcf4553e79cf WHIRLPOOL 931debbf6a65c280221025dcbc02cbb3387b66eb72eddd28a510ee8f97075cd2cc96535dde25d0a32280c399e4a868e9c027772f5d28e7e79b7c1a9080c58034
+DIST kdebase-trinity-3.5.13.2.tar.xz 25890636 SHA256 b9d552226daff64437dfb9699669b95dd7ebc2ca7c43755ba71c10cc6c9ed789 SHA512 df545d44c7d4550d1d77ff6504572b622853c2b8d80062b1aee1a5bdca19f0e708cde35cff54cf2d5098f06a41bde0c89522a3958dea9bb18205dea87c11b797 WHIRLPOOL 79144273bc7985c59a593a3394b12a2053532d2c4c890ce96adad21f6de0413baf3c6270d6d06173ec4546b20d401aa0cc81603d01b8ee41dbdefc825b39b2b1
diff --git a/gentoo/trinity-base/kdialog/files/shared b/gentoo/trinity-base/kdialog/files/shared
new file mode 120000
index 000000000..ffc286806
--- /dev/null
+++ b/gentoo/trinity-base/kdialog/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files \ No newline at end of file
diff --git a/gentoo/trinity-base/kdialog/kdialog-3.5.13.1.ebuild b/gentoo/trinity-base/kdialog/kdialog-3.5.13.1.ebuild
new file mode 100644
index 000000000..00c63b8b4
--- /dev/null
+++ b/gentoo/trinity-base/kdialog/kdialog-3.5.13.1.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="KDialog can be used to show nice dialog boxes from shell scripts"
+KEYWORDS="x86 amd64"
+IUSE=""
diff --git a/gentoo/trinity-base/kdialog/kdialog-3.5.13.2.ebuild b/gentoo/trinity-base/kdialog/kdialog-3.5.13.2.ebuild
new file mode 100644
index 000000000..9465b53b9
--- /dev/null
+++ b/gentoo/trinity-base/kdialog/kdialog-3.5.13.2.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="KDialog can be used to show nice dialog boxes from shell scripts"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
diff --git a/gentoo/trinity-base/kdialog/kdialog-9999.ebuild b/gentoo/trinity-base/kdialog/kdialog-9999.ebuild
new file mode 100644
index 000000000..73646f6c9
--- /dev/null
+++ b/gentoo/trinity-base/kdialog/kdialog-9999.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="KDialog can be used to show nice dialog boxes from shell scripts"
+KEYWORDS=
+IUSE=""
diff --git a/gentoo/trinity-base/kdialog/metadata.xml b/gentoo/trinity-base/kdialog/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kdialog/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kdict/Manifest b/gentoo/trinity-base/kdict/Manifest
new file mode 100644
index 000000000..1d49700dc
--- /dev/null
+++ b/gentoo/trinity-base/kdict/Manifest
@@ -0,0 +1 @@
+DIST kdenetwork-3.5.13.1.tar.gz 8794225 SHA256 21e69e8cb2550561c26913a5cccdc376115f50cffd43f9a94f7a660a303f46f9 SHA512 b3189a9f5e9cddd130b24a82b95ef90db1ec3c7afa280a46101ba7cbf6f9d92f60a536401f648a96459ba87f70ede5f7ae4affe894515a8e858b40ee79cb1b69 WHIRLPOOL de678ab30e3aa8dc3068c895fd000fdab1bc046e272273bf44196a198210efab82ddde3c5e0ffaa863061e9c56e3a8a68ca2f8f03cd77136755f66688f878c65
diff --git a/gentoo/trinity-base/kdict/kdict-3.5.13.1.ebuild b/gentoo/trinity-base/kdict/kdict-3.5.13.1.ebuild
new file mode 100644
index 000000000..939ded471
--- /dev/null
+++ b/gentoo/trinity-base/kdict/kdict-3.5.13.1.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdenetwork"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity dict client (for dict.org-like servers)"
+KEYWORDS="amd64 x86"
+IUSE=""
diff --git a/gentoo/trinity-base/kdict/kdict-9999.ebuild b/gentoo/trinity-base/kdict/kdict-9999.ebuild
new file mode 100644
index 000000000..1f5ad04d5
--- /dev/null
+++ b/gentoo/trinity-base/kdict/kdict-9999.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdenetwork"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity dict client (for dict.org-like servers)"
+KEYWORDS=
+IUSE=""
diff --git a/gentoo/trinity-base/kdict/metadata.xml b/gentoo/trinity-base/kdict/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kdict/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kdm/Manifest b/gentoo/trinity-base/kdm/Manifest
new file mode 100644
index 000000000..381340c4b
--- /dev/null
+++ b/gentoo/trinity-base/kdm/Manifest
@@ -0,0 +1,2 @@
+DIST kdebase-3.5.13.1.tar.gz 29403228 SHA256 ddd4bd4b508ad027b9d1af2701c6ba64bfc9f8f1d32099e6dd5e7866714f759e SHA512 e1aac19c941a5f2b43a57928fdb43e5ebd646f49c60911d9d317550df96642870792c4e77ecd06e123244e2425ccd4bcb00f0a21011ba7e651d7fcf4553e79cf WHIRLPOOL 931debbf6a65c280221025dcbc02cbb3387b66eb72eddd28a510ee8f97075cd2cc96535dde25d0a32280c399e4a868e9c027772f5d28e7e79b7c1a9080c58034
+DIST kdebase-trinity-3.5.13.2.tar.xz 25890636 SHA256 b9d552226daff64437dfb9699669b95dd7ebc2ca7c43755ba71c10cc6c9ed789 SHA512 df545d44c7d4550d1d77ff6504572b622853c2b8d80062b1aee1a5bdca19f0e708cde35cff54cf2d5098f06a41bde0c89522a3958dea9bb18205dea87c11b797 WHIRLPOOL 79144273bc7985c59a593a3394b12a2053532d2c4c890ce96adad21f6de0413baf3c6270d6d06173ec4546b20d401aa0cc81603d01b8ee41dbdefc825b39b2b1
diff --git a/gentoo/trinity-base/kdm/files/kdm-3.5.13.1-xsession.script b/gentoo/trinity-base/kdm/files/kdm-3.5.13.1-xsession.script
new file mode 100755
index 000000000..3106eea99
--- /dev/null
+++ b/gentoo/trinity-base/kdm/files/kdm-3.5.13.1-xsession.script
@@ -0,0 +1,66 @@
+#! /bin/sh
+# Xsession - run as user
+
+session=$1
+
+# Note that the respective logout scripts are not sourced.
+case $SHELL in
+ */bash)
+ [ -z "$BASH" ] && exec $SHELL $0 "$@"
+ set +o posix
+ [ -f /etc/profile ] && . /etc/profile
+ if [ -f $HOME/.bash_profile ]; then
+ . $HOME/.bash_profile
+ elif [ -f $HOME/.bash_login ]; then
+ . $HOME/.bash_login
+ elif [ -f $HOME/.profile ]; then
+ . $HOME/.profile
+ fi
+ ;;
+ */zsh)
+ [ -z "$ZSH_NAME" ] && exec $SHELL $0 "$@"
+ emulate -R zsh
+ [ -d /etc/zsh ] && zdir=/etc/zsh || zdir=/etc
+ zhome=${ZDOTDIR:-$HOME}
+ # zshenv is always sourced automatically.
+ [ -f $zdir/zprofile ] && . $zdir/zprofile
+ [ -f $zhome/.zprofile ] && . $zhome/.zprofile
+ [ -f $zdir/zlogin ] && . $zdir/zlogin
+ [ -f $zhome/.zlogin ] && . $zhome/.zlogin
+ setopt shwordsplit noextendedglob
+ ;;
+ */csh|*/tcsh)
+ # [t]cshrc is always sourced automatically.
+ # Note that sourcing csh.login after .cshrc is non-standard.
+ xsess_tmp=`mktemp /tmp/xsess-env-XXXXXX`
+ $SHELL -c "if (-f /etc/csh.login) source /etc/csh.login; if (-f ~/.login) source ~/.login; /bin/sh -c export -p >! $xsess_tmp"
+ . $xsess_tmp
+ rm -f $xsess_tmp
+ ;;
+ *) # Plain sh, ksh, and anything we don't know.
+ [ -f /etc/profile ] && . /etc/profile
+ [ -f $HOME/.profile ] && . $HOME/.profile
+ ;;
+esac
+
+[ -f /etc/xprofile ] && . /etc/xprofile
+[ -f $HOME/.xprofile ] && . $HOME/.xprofile
+
+case $session in
+ "")
+ exec xmessage -center -buttons OK:0 -default OK "Sorry, $DESKTOP_SESSION is no valid session."
+ ;;
+ failsafe)
+ exec xterm -geometry 80x24-0-0
+ ;;
+ custom)
+ exec /bin/sh $HOME/.xsession
+ ;;
+ default)
+ exec /usr/trinity/3.5/bin/starttde
+ ;;
+ *)
+ eval exec "$session"
+ ;;
+esac
+exec xmessage -center -buttons OK:0 -default OK "Sorry, cannot execute $session. Check $DESKTOP_SESSION.desktop."
diff --git a/gentoo/trinity-base/kdm/files/kdm-3.5.13.2-xsession.script b/gentoo/trinity-base/kdm/files/kdm-3.5.13.2-xsession.script
new file mode 100755
index 000000000..3106eea99
--- /dev/null
+++ b/gentoo/trinity-base/kdm/files/kdm-3.5.13.2-xsession.script
@@ -0,0 +1,66 @@
+#! /bin/sh
+# Xsession - run as user
+
+session=$1
+
+# Note that the respective logout scripts are not sourced.
+case $SHELL in
+ */bash)
+ [ -z "$BASH" ] && exec $SHELL $0 "$@"
+ set +o posix
+ [ -f /etc/profile ] && . /etc/profile
+ if [ -f $HOME/.bash_profile ]; then
+ . $HOME/.bash_profile
+ elif [ -f $HOME/.bash_login ]; then
+ . $HOME/.bash_login
+ elif [ -f $HOME/.profile ]; then
+ . $HOME/.profile
+ fi
+ ;;
+ */zsh)
+ [ -z "$ZSH_NAME" ] && exec $SHELL $0 "$@"
+ emulate -R zsh
+ [ -d /etc/zsh ] && zdir=/etc/zsh || zdir=/etc
+ zhome=${ZDOTDIR:-$HOME}
+ # zshenv is always sourced automatically.
+ [ -f $zdir/zprofile ] && . $zdir/zprofile
+ [ -f $zhome/.zprofile ] && . $zhome/.zprofile
+ [ -f $zdir/zlogin ] && . $zdir/zlogin
+ [ -f $zhome/.zlogin ] && . $zhome/.zlogin
+ setopt shwordsplit noextendedglob
+ ;;
+ */csh|*/tcsh)
+ # [t]cshrc is always sourced automatically.
+ # Note that sourcing csh.login after .cshrc is non-standard.
+ xsess_tmp=`mktemp /tmp/xsess-env-XXXXXX`
+ $SHELL -c "if (-f /etc/csh.login) source /etc/csh.login; if (-f ~/.login) source ~/.login; /bin/sh -c export -p >! $xsess_tmp"
+ . $xsess_tmp
+ rm -f $xsess_tmp
+ ;;
+ *) # Plain sh, ksh, and anything we don't know.
+ [ -f /etc/profile ] && . /etc/profile
+ [ -f $HOME/.profile ] && . $HOME/.profile
+ ;;
+esac
+
+[ -f /etc/xprofile ] && . /etc/xprofile
+[ -f $HOME/.xprofile ] && . $HOME/.xprofile
+
+case $session in
+ "")
+ exec xmessage -center -buttons OK:0 -default OK "Sorry, $DESKTOP_SESSION is no valid session."
+ ;;
+ failsafe)
+ exec xterm -geometry 80x24-0-0
+ ;;
+ custom)
+ exec /bin/sh $HOME/.xsession
+ ;;
+ default)
+ exec /usr/trinity/3.5/bin/starttde
+ ;;
+ *)
+ eval exec "$session"
+ ;;
+esac
+exec xmessage -center -buttons OK:0 -default OK "Sorry, cannot execute $session. Check $DESKTOP_SESSION.desktop."
diff --git a/gentoo/trinity-base/kdm/kdm-3.5.13.1.ebuild b/gentoo/trinity-base/kdm/kdm-3.5.13.1.ebuild
new file mode 100644
index 000000000..42cac2ed3
--- /dev/null
+++ b/gentoo/trinity-base/kdm/kdm-3.5.13.1.ebuild
@@ -0,0 +1,105 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta linux-info
+
+TSM_EXTRACT_ALSO="sak"
+
+DESCRIPTION="Trinity login manager, similar to xdm and gdm"
+KEYWORDS="x86 amd64"
+IUSE="pam xdmcp xcomposite sak"
+
+DEPEND="pam? ( trinity-base/tdebase-pam )
+ xdmcp? ( x11-libs/libXdmcp )
+ xcomposite? ( x11-libs/libXcomposite )
+ sys-apps/dbus
+ x11-libs/libXrandr
+ x11-libs/libXtst
+ >=trinity-base/kcontrol-${PV}:${SLOT}
+ dev-libs/dbus-tqt"
+
+RDEPEND="${DEPEND}
+ >=trinity-base/kdepasswd-${PV}:${SLOT}
+ x11-apps/xinit
+ x11-apps/xmessage"
+
+pkg_setup() {
+ trinity-meta_pkg_setup;
+ use sak && TRINITY_SUBMODULE+=" tsak"
+}
+
+src_configure() {
+ mycmakeargs=(
+ -DWITH_XTEST=ON
+ -DWITH_LIBART=ON
+ -DWITH_XRANDR=ON
+ -DWITH_SHADOW=ON
+ $(cmake-utils_use_with xcomposite XCOMPOSITE )
+ $(cmake-utils_use_with xdmcp XDMCP )
+ $(cmake-utils_use_with pam PAM )
+ )
+
+ trinity-meta_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ # Customize the kdmrc configuration
+ sed -i -e "s:#SessionsDirs=:SessionsDirs=/usr/share/xsessions\n#SessionsDirs=:" \
+ "${D}${TDEDIR}/share/config/kdm/kdmrc" || die "sed kdmrc failed"
+
+ # install XSession upstream script seems to be debian-cpecific
+ cp "${FILESDIR}/${P}-xsession.script" "${D}/${TDEDIR}/share/config/kdm/Xsession"
+
+}
+
+pkg_postinst() {
+ local sak_ok
+ # set the default kdm face icon if it's not already set by the system admin
+ # because this is user-overrideable in that way, it's not in src_install
+ if [ ! -e "${ROOT}${TDEDIR}/share/apps/kdm/faces/.default.face.icon" ]; then
+ mkdir -p "${ROOT}${TDEDIR}/share/apps/kdm/faces"
+ cp "${ROOT}${TDEDIR}/share/apps/kdm/pics/users/default1.png" \
+ "${ROOT}${TDEDIR}/share/apps/kdm/faces/.default.face.icon"
+ fi
+ if [ ! -e "${ROOT}${TDEDIR}/share/apps/kdm/faces/root.face.icon" ]; then
+ mkdir -p "${ROOT}${TDEDIR}/share/apps/kdm/faces"
+ cp "${ROOT}${TDEDIR}/share/apps/kdm/pics/users/root1.png" \
+ "${ROOT}${TDEDIR}/share/apps/kdm/faces/root.face.icon"
+ fi
+
+ if use sak; then
+ sak_ok=yes
+ if ! linux_config_exists; then
+ ewarn "Can't check the linux kernel configuration."
+ ewarn "You might have some incompatible options enabled."
+ sak_ok=no
+ else
+ if ! linux_chkconfig_present INPUT_UINPUT; then
+ eerror "You build kdm with sak feature enabled. "
+ eerror "It requires the INPUT_UINPUT support enabled."
+ eerror "Please enable it:"
+ eerror " CONFIG_INPUT_UINPUT=y"
+ eerror "in /usr/src/linux/.config or"
+ eerror " Device Drivers --->"
+ eerror " Input device support --->"
+ eerror " [*] Miscellaneous devices --->"
+ eerror " <*> User level driver support"
+ sak_ok=no
+ fi
+ fi
+ if [[ "$sak_ok" != yes ]]; then
+ sed -i -e 's:#\?\s*UseSAK=\(true\|false\)\?:UseSak=false:' \
+ "${D}${TDEDIR}/share/config/kdm/kdmrc" || die "sed kdmrc failed"
+ ewarn "SAK feature is disabled. You can enable it yourself by setting UseSAK=true "
+ ewarn "in ${TDEDIR}/share/config/kdm/kdmrc "
+ else
+ ewarn "SAK feature is enabled. You can disable it yourself by setting UseSAK=false"
+ ewarn "in ${TDEDIR}/share/config/kdm/kdmrc "
+ fi
+ fi
+}
diff --git a/gentoo/trinity-base/kdm/kdm-3.5.13.2.ebuild b/gentoo/trinity-base/kdm/kdm-3.5.13.2.ebuild
new file mode 100644
index 000000000..79759dab8
--- /dev/null
+++ b/gentoo/trinity-base/kdm/kdm-3.5.13.2.ebuild
@@ -0,0 +1,103 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta linux-info
+
+DESCRIPTION="Trinity login manager, similar to xdm and gdm"
+KEYWORDS="~amd64 ~x86"
+IUSE="pam xdmcp xcomposite sak"
+
+DEPEND="pam? ( trinity-base/tdebase-pam )
+ xdmcp? ( x11-libs/libXdmcp )
+ xcomposite? ( x11-libs/libXcomposite )
+ sys-apps/dbus
+ x11-libs/libXrandr
+ x11-libs/libXtst
+ >=trinity-base/kcontrol-${PV}:${SLOT}
+ dev-libs/dbus-tqt"
+
+RDEPEND="${DEPEND}
+ >=trinity-base/kdepasswd-${PV}:${SLOT}
+ x11-apps/xinit
+ x11-apps/xmessage"
+
+pkg_setup() {
+ trinity-meta_pkg_setup;
+ use sak && TRINITY_SUBMODULE+=" tsak"
+}
+
+src_configure() {
+ mycmakeargs=(
+ -DWITH_XTEST=ON
+ -DWITH_LIBART=ON
+ -DWITH_XRANDR=ON
+ -DWITH_SHADOW=ON
+ $(cmake-utils_use_with xcomposite XCOMPOSITE )
+ $(cmake-utils_use_with xdmcp XDMCP )
+ $(cmake-utils_use_with pam PAM )
+ )
+
+ trinity-meta_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ # Customize the kdmrc configuration
+ sed -i -e "s:#SessionsDirs=:SessionsDirs=/usr/share/xsessions\n#SessionsDirs=:" \
+ "${D}${TDEDIR}/share/config/kdm/kdmrc" || die "sed kdmrc failed"
+
+ # install XSession upstream script seems to be debian-cpecific
+ cp "${FILESDIR}/${P}-xsession.script" "${D}/${TDEDIR}/share/config/kdm/Xsession"
+
+}
+
+pkg_postinst() {
+ local sak_ok
+ # set the default kdm face icon if it's not already set by the system admin
+ # because this is user-overrideable in that way, it's not in src_install
+ if [ ! -e "${ROOT}${TDEDIR}/share/apps/kdm/faces/.default.face.icon" ]; then
+ mkdir -p "${ROOT}${TDEDIR}/share/apps/kdm/faces"
+ cp "${ROOT}${TDEDIR}/share/apps/kdm/pics/users/default1.png" \
+ "${ROOT}${TDEDIR}/share/apps/kdm/faces/.default.face.icon"
+ fi
+ if [ ! -e "${ROOT}${TDEDIR}/share/apps/kdm/faces/root.face.icon" ]; then
+ mkdir -p "${ROOT}${TDEDIR}/share/apps/kdm/faces"
+ cp "${ROOT}${TDEDIR}/share/apps/kdm/pics/users/root1.png" \
+ "${ROOT}${TDEDIR}/share/apps/kdm/faces/root.face.icon"
+ fi
+
+ if use sak; then
+ sak_ok=yes
+ if ! linux_config_exists; then
+ ewarn "Can't check the linux kernel configuration."
+ ewarn "You might have some incompatible options enabled."
+ sak_ok=no
+ else
+ if ! linux_chkconfig_present INPUT_UINPUT; then
+ eerror "You build kdm with sak feature enabled. "
+ eerror "It requires the INPUT_UINPUT support enabled."
+ eerror "Please enable it:"
+ eerror " CONFIG_INPUT_UINPUT=y"
+ eerror "in /usr/src/linux/.config or"
+ eerror " Device Drivers --->"
+ eerror " Input device support --->"
+ eerror " [*] Miscellaneous devices --->"
+ eerror " <*> User level driver support"
+ sak_ok=no
+ fi
+ fi
+ if [[ "$sak_ok" != yes ]]; then
+ sed -i -e 's:#\?\s*UseSAK=\(true\|false\)\?:UseSak=false:' \
+ "${D}${TDEDIR}/share/config/kdm/kdmrc" || die "sed kdmrc failed"
+ ewarn "SAK feature is disabled. You can enable it yourself by setting UseSAK=true "
+ ewarn "in ${TDEDIR}/share/config/kdm/kdmrc "
+ else
+ ewarn "SAK feature is enabled. You can disable it yourself by setting UseSAK=false"
+ ewarn "in ${TDEDIR}/share/config/kdm/kdmrc "
+ fi
+ fi
+}
diff --git a/gentoo/trinity-base/kdm/metadata.xml b/gentoo/trinity-base/kdm/metadata.xml
new file mode 100644
index 000000000..2a40b2145
--- /dev/null
+++ b/gentoo/trinity-base/kdm/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+ <use>
+ <flag name="xdmcp">Support for <pkg>x11-libs/libXdmcp</pkg></flag>
+ <flag name="sak">Adds SAK (Secure Attention Key) feature</flag>
+ </use>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kdnssd/Manifest b/gentoo/trinity-base/kdnssd/Manifest
new file mode 100644
index 000000000..1d49700dc
--- /dev/null
+++ b/gentoo/trinity-base/kdnssd/Manifest
@@ -0,0 +1 @@
+DIST kdenetwork-3.5.13.1.tar.gz 8794225 SHA256 21e69e8cb2550561c26913a5cccdc376115f50cffd43f9a94f7a660a303f46f9 SHA512 b3189a9f5e9cddd130b24a82b95ef90db1ec3c7afa280a46101ba7cbf6f9d92f60a536401f648a96459ba87f70ede5f7ae4affe894515a8e858b40ee79cb1b69 WHIRLPOOL de678ab30e3aa8dc3068c895fd000fdab1bc046e272273bf44196a198210efab82ddde3c5e0ffaa863061e9c56e3a8a68ca2f8f03cd77136755f66688f878c65
diff --git a/gentoo/trinity-base/kdnssd/kdnssd-3.5.13.1.ebuild b/gentoo/trinity-base/kdnssd/kdnssd-3.5.13.1.ebuild
new file mode 100644
index 000000000..ac2014925
--- /dev/null
+++ b/gentoo/trinity-base/kdnssd/kdnssd-3.5.13.1.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdenetwork"
+
+inherit trinity-meta
+
+DESCRIPTION="A DNSSD (DNS Service Discovery - part of Rendezvous) ioslave and kded module"
+KEYWORDS="amd64 x86"
+IUSE=""
diff --git a/gentoo/trinity-base/kdnssd/metadata.xml b/gentoo/trinity-base/kdnssd/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kdnssd/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kdvi/Manifest b/gentoo/trinity-base/kdvi/Manifest
new file mode 100644
index 000000000..f0ba54e9a
--- /dev/null
+++ b/gentoo/trinity-base/kdvi/Manifest
@@ -0,0 +1 @@
+DIST kdegraphics-3.5.13.1.tar.gz 7526074 SHA256 19bd36e261bb6c5d2c9c1eba5f736c642b48422d917d44e576835f7ebb44906b SHA512 693e5ad70dbb00c587e588acfb81fc9475c3a4dbc86f41d6053c0584c533349a7564e34b870cb7bbc57361ac539da6f7d7f1b002ac3cfe8b0201db3eeb9147dd WHIRLPOOL fd2c46c517b3a0293880eaf35967295485555b936d0f1e80e0f2c261a1164cfcc5c4b2d943a12c073914d33b59974cc2dd92a78414614caa10f46dd048d518b4
diff --git a/gentoo/trinity-base/kdvi/kdvi-3.5.13.1.ebuild b/gentoo/trinity-base/kdvi/kdvi-3.5.13.1.ebuild
new file mode 100644
index 000000000..1d21a4775
--- /dev/null
+++ b/gentoo/trinity-base/kdvi/kdvi-3.5.13.1.ebuild
@@ -0,0 +1,17 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdegraphics"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity DVI viewer"
+KEYWORDS="x86 amd64"
+IUSE=""
+
+DEPEND="media-libs/freetype:2
+ >=trinity-base/kviewshell-${PV}:${SLOT}"
+RDEPEND="$DEPEND"
+
+TSM_EXTRACT_ALSO="kviewshell"
diff --git a/gentoo/trinity-base/kdvi/kdvi-9999.ebuild b/gentoo/trinity-base/kdvi/kdvi-9999.ebuild
new file mode 100644
index 000000000..4d005d9ec
--- /dev/null
+++ b/gentoo/trinity-base/kdvi/kdvi-9999.ebuild
@@ -0,0 +1,17 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdegraphics"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity DVI viewer"
+KEYWORDS=
+IUSE=""
+
+DEPEND="media-libs/freetype:2
+ >=trinity-base/kviewshell-${PV}:${SLOT}"
+RDEPEND="$DEPEND"
+
+TSM_EXTRACT_ALSO="kviewshell"
diff --git a/gentoo/trinity-base/kdvi/metadata.xml b/gentoo/trinity-base/kdvi/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kdvi/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kedit/Manifest b/gentoo/trinity-base/kedit/Manifest
new file mode 100644
index 000000000..c59ac62b4
--- /dev/null
+++ b/gentoo/trinity-base/kedit/Manifest
@@ -0,0 +1,2 @@
+DIST kdeutils-3.5.13.1.tar.gz 2829393 SHA256 3e7ab07fe1bb3e7be7ac3a3796366c88d3b79a58af911546e2c65e32363db527 SHA512 48733e472d0f5da85ef8a32ed6db7fa5e61f0682e49842439e6ea38a1e407059bb35efffe41fc6ed1a718511fd5b2b2c8222d816a23500a4dcbca17461f9a3bd WHIRLPOOL 1488e0c44f60b4d5e397dd2cf93de048eae1b915d4b2b7b1cf27768946f5aae3b5bcc3971ee28b5fa6a57a0b94cca6db0866138b69ad74f1f7bb97cdaaebdbe2
+DIST kdeutils-trinity-3.5.13.2.tar.xz 2259232 SHA256 b2999b9ef39bb2f269b84fdf34a814b5a5599aae7d05538d0bf680c18fb334fa SHA512 f501aa4b61bf440e873eec96f09c0c24ad780db2f9f14b884001c04c04aafccb5afb2b492dcf4fc640f3ec35d86aa419d67936122648a986662cd7b7f4f8a2d8 WHIRLPOOL 49296006875250212f0fdeb0c90c4f69cf0aa7cfd38415e2f7b50bdf81754de64562df2400f4932a502adbe84b58be34cae6c029d68cc62d0e91de5158513239
diff --git a/gentoo/trinity-base/kedit/files/shared b/gentoo/trinity-base/kedit/files/shared
new file mode 120000
index 000000000..af62be31d
--- /dev/null
+++ b/gentoo/trinity-base/kedit/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files/ \ No newline at end of file
diff --git a/gentoo/trinity-base/kedit/kedit-3.5.13.1.ebuild b/gentoo/trinity-base/kedit/kedit-3.5.13.1.ebuild
new file mode 100644
index 000000000..6af68e16f
--- /dev/null
+++ b/gentoo/trinity-base/kedit/kedit-3.5.13.1.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdeutils"
+
+inherit trinity-meta
+
+DESCRIPTION="Very simple text editor for Trinity"
+KEYWORDS="amd64 x86"
+IUSE=""
diff --git a/gentoo/trinity-base/kedit/kedit-3.5.13.2.ebuild b/gentoo/trinity-base/kedit/kedit-3.5.13.2.ebuild
new file mode 100644
index 000000000..58597d19a
--- /dev/null
+++ b/gentoo/trinity-base/kedit/kedit-3.5.13.2.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdeutils"
+
+inherit trinity-meta
+
+DESCRIPTION="Very simple text editor for Trinity"
+KEYWORDS="~x86 ~amd64"
+IUSE=""
diff --git a/gentoo/trinity-base/kedit/kedit-9999.ebuild b/gentoo/trinity-base/kedit/kedit-9999.ebuild
new file mode 100644
index 000000000..86d80ad5f
--- /dev/null
+++ b/gentoo/trinity-base/kedit/kedit-9999.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdeutils"
+
+inherit trinity-meta
+
+DESCRIPTION="Very simple text editor for Trinity"
+KEYWORDS=""
+IUSE=""
diff --git a/gentoo/trinity-base/kedit/metadata.xml b/gentoo/trinity-base/kedit/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kedit/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kfax/Manifest b/gentoo/trinity-base/kfax/Manifest
new file mode 100644
index 000000000..f0ba54e9a
--- /dev/null
+++ b/gentoo/trinity-base/kfax/Manifest
@@ -0,0 +1 @@
+DIST kdegraphics-3.5.13.1.tar.gz 7526074 SHA256 19bd36e261bb6c5d2c9c1eba5f736c642b48422d917d44e576835f7ebb44906b SHA512 693e5ad70dbb00c587e588acfb81fc9475c3a4dbc86f41d6053c0584c533349a7564e34b870cb7bbc57361ac539da6f7d7f1b002ac3cfe8b0201db3eeb9147dd WHIRLPOOL fd2c46c517b3a0293880eaf35967295485555b936d0f1e80e0f2c261a1164cfcc5c4b2d943a12c073914d33b59974cc2dd92a78414614caa10f46dd048d518b4
diff --git a/gentoo/trinity-base/kfax/kfax-3.5.13.1.ebuild b/gentoo/trinity-base/kfax/kfax-3.5.13.1.ebuild
new file mode 100644
index 000000000..eaf2c2b1f
--- /dev/null
+++ b/gentoo/trinity-base/kfax/kfax-3.5.13.1.ebuild
@@ -0,0 +1,17 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdegraphics"
+TRINITY_SUBMODULE="kfax kfaxview"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity G3/G4 fax viewer"
+KEYWORDS="x86 amd64"
+IUSE=""
+
+DEPEND=">=trinity-base/kviewshell-${PV}:${SLOT}"
+RDEPEND="$DEPEND"
+
+TSM_EXTRACT_ALSO="kviewshell"
diff --git a/gentoo/trinity-base/kfax/kfax-9999.ebuild b/gentoo/trinity-base/kfax/kfax-9999.ebuild
new file mode 100644
index 000000000..e7b052b70
--- /dev/null
+++ b/gentoo/trinity-base/kfax/kfax-9999.ebuild
@@ -0,0 +1,17 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdegraphics"
+TRINITY_SUBMODULE="kfax kfaxview"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity G3/G4 fax viewer"
+KEYWORDS=
+IUSE=""
+
+DEPEND=">=trinity-base/kviewshell-${PV}:${SLOT}"
+RDEPEND="$DEPEND"
+
+TSM_EXTRACT_ALSO="kviewshell"
diff --git a/gentoo/trinity-base/kfax/metadata.xml b/gentoo/trinity-base/kfax/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kfax/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kfind/Manifest b/gentoo/trinity-base/kfind/Manifest
new file mode 100644
index 000000000..381340c4b
--- /dev/null
+++ b/gentoo/trinity-base/kfind/Manifest
@@ -0,0 +1,2 @@
+DIST kdebase-3.5.13.1.tar.gz 29403228 SHA256 ddd4bd4b508ad027b9d1af2701c6ba64bfc9f8f1d32099e6dd5e7866714f759e SHA512 e1aac19c941a5f2b43a57928fdb43e5ebd646f49c60911d9d317550df96642870792c4e77ecd06e123244e2425ccd4bcb00f0a21011ba7e651d7fcf4553e79cf WHIRLPOOL 931debbf6a65c280221025dcbc02cbb3387b66eb72eddd28a510ee8f97075cd2cc96535dde25d0a32280c399e4a868e9c027772f5d28e7e79b7c1a9080c58034
+DIST kdebase-trinity-3.5.13.2.tar.xz 25890636 SHA256 b9d552226daff64437dfb9699669b95dd7ebc2ca7c43755ba71c10cc6c9ed789 SHA512 df545d44c7d4550d1d77ff6504572b622853c2b8d80062b1aee1a5bdca19f0e708cde35cff54cf2d5098f06a41bde0c89522a3958dea9bb18205dea87c11b797 WHIRLPOOL 79144273bc7985c59a593a3394b12a2053532d2c4c890ce96adad21f6de0413baf3c6270d6d06173ec4546b20d401aa0cc81603d01b8ee41dbdefc825b39b2b1
diff --git a/gentoo/trinity-base/kfind/files/shared b/gentoo/trinity-base/kfind/files/shared
new file mode 120000
index 000000000..ffc286806
--- /dev/null
+++ b/gentoo/trinity-base/kfind/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files \ No newline at end of file
diff --git a/gentoo/trinity-base/kfind/kfind-3.5.13.1.ebuild b/gentoo/trinity-base/kfind/kfind-3.5.13.1.ebuild
new file mode 100644
index 000000000..552bb9f1a
--- /dev/null
+++ b/gentoo/trinity-base/kfind/kfind-3.5.13.1.ebuild
@@ -0,0 +1,14 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity file find utility"
+KEYWORDS="x86 amd64"
+IUSE=""
+
+DEPEND=">=trinity-base/libkonq-${PV}:${SLOT}"
+RDEPEND="${DEPEND}"
diff --git a/gentoo/trinity-base/kfind/kfind-3.5.13.2.ebuild b/gentoo/trinity-base/kfind/kfind-3.5.13.2.ebuild
new file mode 100644
index 000000000..23759c233
--- /dev/null
+++ b/gentoo/trinity-base/kfind/kfind-3.5.13.2.ebuild
@@ -0,0 +1,14 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity file find utility"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=">=trinity-base/libkonq-${PV}:${SLOT}"
+RDEPEND="${DEPEND}"
diff --git a/gentoo/trinity-base/kfind/kfind-9999.ebuild b/gentoo/trinity-base/kfind/kfind-9999.ebuild
new file mode 100644
index 000000000..16797daf9
--- /dev/null
+++ b/gentoo/trinity-base/kfind/kfind-9999.ebuild
@@ -0,0 +1,14 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity file find utility"
+KEYWORDS=
+IUSE=""
+
+DEPEND=">=trinity-base/libkonq-${PV}:${SLOT}"
+RDEPEND="${DEPEND}"
diff --git a/gentoo/trinity-base/kfind/metadata.xml b/gentoo/trinity-base/kfind/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kfind/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kfloppy/Manifest b/gentoo/trinity-base/kfloppy/Manifest
new file mode 100644
index 000000000..c59ac62b4
--- /dev/null
+++ b/gentoo/trinity-base/kfloppy/Manifest
@@ -0,0 +1,2 @@
+DIST kdeutils-3.5.13.1.tar.gz 2829393 SHA256 3e7ab07fe1bb3e7be7ac3a3796366c88d3b79a58af911546e2c65e32363db527 SHA512 48733e472d0f5da85ef8a32ed6db7fa5e61f0682e49842439e6ea38a1e407059bb35efffe41fc6ed1a718511fd5b2b2c8222d816a23500a4dcbca17461f9a3bd WHIRLPOOL 1488e0c44f60b4d5e397dd2cf93de048eae1b915d4b2b7b1cf27768946f5aae3b5bcc3971ee28b5fa6a57a0b94cca6db0866138b69ad74f1f7bb97cdaaebdbe2
+DIST kdeutils-trinity-3.5.13.2.tar.xz 2259232 SHA256 b2999b9ef39bb2f269b84fdf34a814b5a5599aae7d05538d0bf680c18fb334fa SHA512 f501aa4b61bf440e873eec96f09c0c24ad780db2f9f14b884001c04c04aafccb5afb2b492dcf4fc640f3ec35d86aa419d67936122648a986662cd7b7f4f8a2d8 WHIRLPOOL 49296006875250212f0fdeb0c90c4f69cf0aa7cfd38415e2f7b50bdf81754de64562df2400f4932a502adbe84b58be34cae6c029d68cc62d0e91de5158513239
diff --git a/gentoo/trinity-base/kfloppy/files/shared b/gentoo/trinity-base/kfloppy/files/shared
new file mode 120000
index 000000000..af62be31d
--- /dev/null
+++ b/gentoo/trinity-base/kfloppy/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files/ \ No newline at end of file
diff --git a/gentoo/trinity-base/kfloppy/kfloppy-3.5.13.1.ebuild b/gentoo/trinity-base/kfloppy/kfloppy-3.5.13.1.ebuild
new file mode 100644
index 000000000..73039d769
--- /dev/null
+++ b/gentoo/trinity-base/kfloppy/kfloppy-3.5.13.1.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdeutils"
+
+inherit trinity-meta
+
+DESCRIPTION="KFloppy - formats disks and puts a DOS or ext2fs filesystem on them."
+KEYWORDS="x86 amd64"
+IUSE=""
diff --git a/gentoo/trinity-base/kfloppy/kfloppy-3.5.13.2.ebuild b/gentoo/trinity-base/kfloppy/kfloppy-3.5.13.2.ebuild
new file mode 100644
index 000000000..b9e13145a
--- /dev/null
+++ b/gentoo/trinity-base/kfloppy/kfloppy-3.5.13.2.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdeutils"
+
+inherit trinity-meta
+
+DESCRIPTION="KFloppy - formats disks and puts a DOS or ext2fs filesystem on them."
+KEYWORDS="~x86 ~amd64"
+IUSE=""
diff --git a/gentoo/trinity-base/kfloppy/kfloppy-9999.ebuild b/gentoo/trinity-base/kfloppy/kfloppy-9999.ebuild
new file mode 100644
index 000000000..dbc857843
--- /dev/null
+++ b/gentoo/trinity-base/kfloppy/kfloppy-9999.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdeutils"
+
+inherit trinity-meta
+
+DESCRIPTION="KFloppy - formats disks and puts a DOS or ext2fs filesystem on them."
+KEYWORDS=""
+IUSE=""
diff --git a/gentoo/trinity-base/kfloppy/metadata.xml b/gentoo/trinity-base/kfloppy/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kfloppy/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kgamma/Manifest b/gentoo/trinity-base/kgamma/Manifest
new file mode 100644
index 000000000..f0ba54e9a
--- /dev/null
+++ b/gentoo/trinity-base/kgamma/Manifest
@@ -0,0 +1 @@
+DIST kdegraphics-3.5.13.1.tar.gz 7526074 SHA256 19bd36e261bb6c5d2c9c1eba5f736c642b48422d917d44e576835f7ebb44906b SHA512 693e5ad70dbb00c587e588acfb81fc9475c3a4dbc86f41d6053c0584c533349a7564e34b870cb7bbc57361ac539da6f7d7f1b002ac3cfe8b0201db3eeb9147dd WHIRLPOOL fd2c46c517b3a0293880eaf35967295485555b936d0f1e80e0f2c261a1164cfcc5c4b2d943a12c073914d33b59974cc2dd92a78414614caa10f46dd048d518b4
diff --git a/gentoo/trinity-base/kgamma/kgamma-3.5.13.1.ebuild b/gentoo/trinity-base/kgamma/kgamma-3.5.13.1.ebuild
new file mode 100644
index 000000000..889c4450f
--- /dev/null
+++ b/gentoo/trinity-base/kgamma/kgamma-3.5.13.1.ebuild
@@ -0,0 +1,14 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdegraphics"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity screen gamma values kcontrol module"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND=">=trinity-base/kcontrol-${PV}:${SLOT}"
+RDEPEND="${DEPEND}"
diff --git a/gentoo/trinity-base/kgamma/kgamma-9999.ebuild b/gentoo/trinity-base/kgamma/kgamma-9999.ebuild
new file mode 100644
index 000000000..8489cadd7
--- /dev/null
+++ b/gentoo/trinity-base/kgamma/kgamma-9999.ebuild
@@ -0,0 +1,14 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdegraphics"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity screen gamma values kcontrol module"
+KEYWORDS=
+IUSE=""
+
+DEPEND=">=trinity-base/kcontrol-${PV}:${SLOT}"
+RDEPEND="${DEPEND}"
diff --git a/gentoo/trinity-base/kgamma/metadata.xml b/gentoo/trinity-base/kgamma/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kgamma/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kgantt/Manifest b/gentoo/trinity-base/kgantt/Manifest
new file mode 100644
index 000000000..d6ce26a13
--- /dev/null
+++ b/gentoo/trinity-base/kgantt/Manifest
@@ -0,0 +1 @@
+DIST kdepim-trinity-3.5.13.2.tar.xz 10148724 SHA256 2cbd61e28322e4c7d67ffb16ac59329b3f15ba1a4485095994b9bce6786df7c4 SHA512 a84319183813dc78dc97397c8c3871faa3961b458eda8107525b8b9c6789d13aedd8e3c7cb0706c4ca8dd63f69ff67de02716219c8af44ebf96d484d820eb2bf WHIRLPOOL 907d9d86f1b0094b915989ca7f0feb4f67ac1b238a4c6d176ab1ef9164eff78778b2714ebedeb40de28536a8384b39ec7e637f1bb6911cccb40f7d8663811edb
diff --git a/gentoo/trinity-base/kgantt/kgantt-3.5.13.2.ebuild b/gentoo/trinity-base/kgantt/kgantt-3.5.13.2.ebuild
new file mode 100644
index 000000000..f0ba5600e
--- /dev/null
+++ b/gentoo/trinity-base/kgantt/kgantt-3.5.13.2.ebuild
@@ -0,0 +1,13 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdepim"
+
+inherit trinity-meta
+
+DESCRIPTION="A Trinity library for drawing and editing gantt-diagramms"
+KEYWORDS="~amd64 ~x86"
+IUSE+=""
+
+TSM_EXTRACT_ALSO="libkdepim/"
diff --git a/gentoo/trinity-base/kgantt/kgantt-9999.ebuild b/gentoo/trinity-base/kgantt/kgantt-9999.ebuild
new file mode 100644
index 000000000..1ae99ee94
--- /dev/null
+++ b/gentoo/trinity-base/kgantt/kgantt-9999.ebuild
@@ -0,0 +1,13 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdepim"
+
+inherit trinity-meta
+
+DESCRIPTION="A Trinity library for drawing and editing gantt-diagramms"
+KEYWORDS=""
+IUSE+=""
+
+TSM_EXTRACT_ALSO="libtdepim/"
diff --git a/gentoo/trinity-base/kgantt/metadata.xml b/gentoo/trinity-base/kgantt/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kgantt/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kget/Manifest b/gentoo/trinity-base/kget/Manifest
new file mode 100644
index 000000000..1d49700dc
--- /dev/null
+++ b/gentoo/trinity-base/kget/Manifest
@@ -0,0 +1 @@
+DIST kdenetwork-3.5.13.1.tar.gz 8794225 SHA256 21e69e8cb2550561c26913a5cccdc376115f50cffd43f9a94f7a660a303f46f9 SHA512 b3189a9f5e9cddd130b24a82b95ef90db1ec3c7afa280a46101ba7cbf6f9d92f60a536401f648a96459ba87f70ede5f7ae4affe894515a8e858b40ee79cb1b69 WHIRLPOOL de678ab30e3aa8dc3068c895fd000fdab1bc046e272273bf44196a198210efab82ddde3c5e0ffaa863061e9c56e3a8a68ca2f8f03cd77136755f66688f878c65
diff --git a/gentoo/trinity-base/kget/kget-3.5.13.1.ebuild b/gentoo/trinity-base/kget/kget-3.5.13.1.ebuild
new file mode 100644
index 000000000..ac764885d
--- /dev/null
+++ b/gentoo/trinity-base/kget/kget-3.5.13.1.ebuild
@@ -0,0 +1,14 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdenetwork"
+
+inherit trinity-meta
+
+DESCRIPTION="An advanced download manager for Trinity"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="x11-libs/libXext"
+RDEPEND="${DEPEND}"
diff --git a/gentoo/trinity-base/kget/kget-9999.ebuild b/gentoo/trinity-base/kget/kget-9999.ebuild
new file mode 100644
index 000000000..509f2e386
--- /dev/null
+++ b/gentoo/trinity-base/kget/kget-9999.ebuild
@@ -0,0 +1,14 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdenetwork"
+
+inherit trinity-meta
+
+DESCRIPTION="An advanced download manager for Trinity"
+KEYWORDS=
+IUSE=""
+
+DEPEND="x11-libs/libXext"
+RDEPEND="${DEPEND}"
diff --git a/gentoo/trinity-base/kget/metadata.xml b/gentoo/trinity-base/kget/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kget/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kghostview/Manifest b/gentoo/trinity-base/kghostview/Manifest
new file mode 100644
index 000000000..f0ba54e9a
--- /dev/null
+++ b/gentoo/trinity-base/kghostview/Manifest
@@ -0,0 +1 @@
+DIST kdegraphics-3.5.13.1.tar.gz 7526074 SHA256 19bd36e261bb6c5d2c9c1eba5f736c642b48422d917d44e576835f7ebb44906b SHA512 693e5ad70dbb00c587e588acfb81fc9475c3a4dbc86f41d6053c0584c533349a7564e34b870cb7bbc57361ac539da6f7d7f1b002ac3cfe8b0201db3eeb9147dd WHIRLPOOL fd2c46c517b3a0293880eaf35967295485555b936d0f1e80e0f2c261a1164cfcc5c4b2d943a12c073914d33b59974cc2dd92a78414614caa10f46dd048d518b4
diff --git a/gentoo/trinity-base/kghostview/files/tdegraphics-fix-kghostview-parallel-compilation.patch b/gentoo/trinity-base/kghostview/files/tdegraphics-fix-kghostview-parallel-compilation.patch
new file mode 100644
index 000000000..3aa8138a6
--- /dev/null
+++ b/gentoo/trinity-base/kghostview/files/tdegraphics-fix-kghostview-parallel-compilation.patch
@@ -0,0 +1,24 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index c87ee85..09c3cfa 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -95,7 +95,8 @@ set( CMAKE_MODULE_LINKER_FLAGS "-Wl,--no-undefined" )
+
+ ##### tdegraphics directories ###################
+
+-if( BUILD_KFILE_PLUGINS OR BUILD_GHOSTKVIEW )
++# kghostview/ps requires dscparse-static library
++if( BUILD_KFILE_PLUGINS AND NOT BUILD_KGHOSTVIEW )
+ add_subdirectory( kghostview/dscparse )
+ endif( )
+
+--- a/kghostview/CMakeLists.txt
++++ b/kghostview/CMakeLists.txt
+@@ -10,6 +10,7 @@
+ #################################################
+
+ add_subdirectory( data )
++add_subdirectory( dscparse )
+
+ include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
diff --git a/gentoo/trinity-base/kghostview/kghostview-3.5.13.1.ebuild b/gentoo/trinity-base/kghostview/kghostview-3.5.13.1.ebuild
new file mode 100644
index 000000000..32b936066
--- /dev/null
+++ b/gentoo/trinity-base/kghostview/kghostview-3.5.13.1.ebuild
@@ -0,0 +1,16 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdegraphics"
+
+inherit trinity-meta
+
+DESCRIPTION="A Trinity Viewer for PostScript (.ps, .eps) and PDF (.pdf) files"
+KEYWORDS="x86 amd64"
+IUSE=""
+
+DEPEND="x11-libs/libXft"
+RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}/tdegraphics-fix-${PN}-parallel-compilation.patch" )
diff --git a/gentoo/trinity-base/kghostview/kghostview-9999.ebuild b/gentoo/trinity-base/kghostview/kghostview-9999.ebuild
new file mode 100644
index 000000000..49c41a7b1
--- /dev/null
+++ b/gentoo/trinity-base/kghostview/kghostview-9999.ebuild
@@ -0,0 +1,14 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdegraphics"
+
+inherit trinity-meta
+
+DESCRIPTION="A Trinity Viewer for PostScript (.ps, .eps) and PDF (.pdf) files"
+KEYWORDS=
+IUSE=""
+
+DEPEND="x11-libs/libXft"
+RDEPEND="${DEPEND}"
diff --git a/gentoo/trinity-base/kghostview/metadata.xml b/gentoo/trinity-base/kghostview/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kghostview/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kgpg/Manifest b/gentoo/trinity-base/kgpg/Manifest
new file mode 100644
index 000000000..c59ac62b4
--- /dev/null
+++ b/gentoo/trinity-base/kgpg/Manifest
@@ -0,0 +1,2 @@
+DIST kdeutils-3.5.13.1.tar.gz 2829393 SHA256 3e7ab07fe1bb3e7be7ac3a3796366c88d3b79a58af911546e2c65e32363db527 SHA512 48733e472d0f5da85ef8a32ed6db7fa5e61f0682e49842439e6ea38a1e407059bb35efffe41fc6ed1a718511fd5b2b2c8222d816a23500a4dcbca17461f9a3bd WHIRLPOOL 1488e0c44f60b4d5e397dd2cf93de048eae1b915d4b2b7b1cf27768946f5aae3b5bcc3971ee28b5fa6a57a0b94cca6db0866138b69ad74f1f7bb97cdaaebdbe2
+DIST kdeutils-trinity-3.5.13.2.tar.xz 2259232 SHA256 b2999b9ef39bb2f269b84fdf34a814b5a5599aae7d05538d0bf680c18fb334fa SHA512 f501aa4b61bf440e873eec96f09c0c24ad780db2f9f14b884001c04c04aafccb5afb2b492dcf4fc640f3ec35d86aa419d67936122648a986662cd7b7f4f8a2d8 WHIRLPOOL 49296006875250212f0fdeb0c90c4f69cf0aa7cfd38415e2f7b50bdf81754de64562df2400f4932a502adbe84b58be34cae6c029d68cc62d0e91de5158513239
diff --git a/gentoo/trinity-base/kgpg/files/shared b/gentoo/trinity-base/kgpg/files/shared
new file mode 120000
index 000000000..af62be31d
--- /dev/null
+++ b/gentoo/trinity-base/kgpg/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files/ \ No newline at end of file
diff --git a/gentoo/trinity-base/kgpg/kgpg-3.5.13.1.ebuild b/gentoo/trinity-base/kgpg/kgpg-3.5.13.1.ebuild
new file mode 100644
index 000000000..c2a70ea3e
--- /dev/null
+++ b/gentoo/trinity-base/kgpg/kgpg-3.5.13.1.ebuild
@@ -0,0 +1,16 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdeutils"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity gpg keyring manager"
+KEYWORDS="x86 amd64"
+IUSE=""
+
+RDEPEND="app-crypt/gnupg
+ || ( app-crypt/pinentry[qt4]
+ app-crypt/pinentry[gtk]
+ app-crypt/pinentry[qt3] )"
diff --git a/gentoo/trinity-base/kgpg/kgpg-3.5.13.2.ebuild b/gentoo/trinity-base/kgpg/kgpg-3.5.13.2.ebuild
new file mode 100644
index 000000000..b68853718
--- /dev/null
+++ b/gentoo/trinity-base/kgpg/kgpg-3.5.13.2.ebuild
@@ -0,0 +1,16 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdeutils"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity gpg keyring manager"
+KEYWORDS="~x86 ~amd64"
+IUSE=""
+
+RDEPEND="app-crypt/gnupg
+ || ( app-crypt/pinentry[qt4]
+ app-crypt/pinentry[gtk]
+ app-crypt/pinentry[qt3] )"
diff --git a/gentoo/trinity-base/kgpg/kgpg-9999.ebuild b/gentoo/trinity-base/kgpg/kgpg-9999.ebuild
new file mode 100644
index 000000000..6cbbb4f9e
--- /dev/null
+++ b/gentoo/trinity-base/kgpg/kgpg-9999.ebuild
@@ -0,0 +1,16 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdeutils"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity gpg keyring manager"
+KEYWORDS=""
+IUSE=""
+
+RDEPEND="app-crypt/gnupg
+ || ( app-crypt/pinentry[qt4]
+ app-crypt/pinentry[gtk]
+ app-crypt/pinentry[qt3] )"
diff --git a/gentoo/trinity-base/kgpg/metadata.xml b/gentoo/trinity-base/kgpg/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kgpg/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/khelpcenter/Manifest b/gentoo/trinity-base/khelpcenter/Manifest
new file mode 100644
index 000000000..381340c4b
--- /dev/null
+++ b/gentoo/trinity-base/khelpcenter/Manifest
@@ -0,0 +1,2 @@
+DIST kdebase-3.5.13.1.tar.gz 29403228 SHA256 ddd4bd4b508ad027b9d1af2701c6ba64bfc9f8f1d32099e6dd5e7866714f759e SHA512 e1aac19c941a5f2b43a57928fdb43e5ebd646f49c60911d9d317550df96642870792c4e77ecd06e123244e2425ccd4bcb00f0a21011ba7e651d7fcf4553e79cf WHIRLPOOL 931debbf6a65c280221025dcbc02cbb3387b66eb72eddd28a510ee8f97075cd2cc96535dde25d0a32280c399e4a868e9c027772f5d28e7e79b7c1a9080c58034
+DIST kdebase-trinity-3.5.13.2.tar.xz 25890636 SHA256 b9d552226daff64437dfb9699669b95dd7ebc2ca7c43755ba71c10cc6c9ed789 SHA512 df545d44c7d4550d1d77ff6504572b622853c2b8d80062b1aee1a5bdca19f0e708cde35cff54cf2d5098f06a41bde0c89522a3958dea9bb18205dea87c11b797 WHIRLPOOL 79144273bc7985c59a593a3394b12a2053532d2c4c890ce96adad21f6de0413baf3c6270d6d06173ec4546b20d401aa0cc81603d01b8ee41dbdefc825b39b2b1
diff --git a/gentoo/trinity-base/khelpcenter/files/shared b/gentoo/trinity-base/khelpcenter/files/shared
new file mode 120000
index 000000000..ffc286806
--- /dev/null
+++ b/gentoo/trinity-base/khelpcenter/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files \ No newline at end of file
diff --git a/gentoo/trinity-base/khelpcenter/khelpcenter-3.5.13.1.ebuild b/gentoo/trinity-base/khelpcenter/khelpcenter-3.5.13.1.ebuild
new file mode 100644
index 000000000..54416f1cb
--- /dev/null
+++ b/gentoo/trinity-base/khelpcenter/khelpcenter-3.5.13.1.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+TRINITY_SUBMODULE="khelpcenter doc"
+
+DESCRIPTION="The Trinity help center."
+KEYWORDS="x86 amd64"
+
+RDEPEND="
+ >=trinity-base/kdebase-kioslaves-${PV}:${SLOT}
+ >=www-misc/htdig-3.2.0_beta6-r1"
+IUSE=""
+
+pkg_setup() {
+ # we should reduce MAKEOPTS -j parametr to no more than 4
+ local makeopts_j
+ makeopts_j="$(echo "$MAKEOPTS" | sed -n 's/\(^\|.*\s\)\(-j\s*[0-9]\+\)\(\s.*\|$\)/\2/p')"
+ if [ -n "$makeopts_j" -a "$makeopts_j" > 4 ]; then
+ export MAKEOPTS="${MAKEOPTS//"${makeopts_j}"/-j4}"
+
+ ewarn "This ebuild needs huge amoumt of memmory to compile in highly parallel"
+ ewarn "mode so it can chew it all. MAKEOPTS are reduced to \"$MAKEOPTS\"."
+ fi
+
+ trinity-meta_pkg_setup
+}
diff --git a/gentoo/trinity-base/khelpcenter/khelpcenter-3.5.13.2.ebuild b/gentoo/trinity-base/khelpcenter/khelpcenter-3.5.13.2.ebuild
new file mode 100644
index 000000000..dda48c60b
--- /dev/null
+++ b/gentoo/trinity-base/khelpcenter/khelpcenter-3.5.13.2.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+TRINITY_SUBMODULE="khelpcenter doc"
+
+DESCRIPTION="The Trinity help center."
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+ >=trinity-base/kdebase-kioslaves-${PV}:${SLOT}
+ >=www-misc/htdig-3.2.0_beta6-r1"
+IUSE=""
+
+pkg_setup() {
+ # we should reduce MAKEOPTS -j parametr to no more than 4
+ local makeopts_j
+ makeopts_j="$(echo "$MAKEOPTS" | sed -n 's/\(^\|.*\s\)\(-j\s*[0-9]\+\)\(\s.*\|$\)/\2/p')"
+ if [ -n "$makeopts_j" -a "$makeopts_j" > 4 ]; then
+ export MAKEOPTS="${MAKEOPTS//"${makeopts_j}"/-j4}"
+
+ ewarn "This ebuild needs huge amoumt of memmory to compile in highly parallel"
+ ewarn "mode so it can chew it all. MAKEOPTS are reduced to \"$MAKEOPTS\"."
+ fi
+
+ trinity-meta_pkg_setup
+}
diff --git a/gentoo/trinity-base/khelpcenter/khelpcenter-9999.ebuild b/gentoo/trinity-base/khelpcenter/khelpcenter-9999.ebuild
new file mode 100644
index 000000000..a2273cb4b
--- /dev/null
+++ b/gentoo/trinity-base/khelpcenter/khelpcenter-9999.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdebase"
+
+inherit trinity-meta
+TRINITY_SUBMODULE="khelpcenter doc"
+
+DESCRIPTION="The Trinity help center."
+KEYWORDS=
+
+RDEPEND="
+ >=trinity-base/tdebase-tdeioslaves-${PV}:${SLOT}
+ >=www-misc/htdig-3.2.0_beta6-r1"
+IUSE=""
+
+pkg_setup() {
+ # we should reduce MAKEOPTS -j parametr to no more than 4
+ local makeopts_j
+ makeopts_j="$(echo "$MAKEOPTS" | sed -n 's/\(^\|.*\s\)\(-j\s*[0-9]\+\)\(\s.*\|$\)/\2/p')"
+ if [ -n "$makeopts_j" -a "$makeopts_j" > 4 ]; then
+ export MAKEOPTS="${MAKEOPTS//"${makeopts_j}"/-j4}"
+
+ ewarn "This ebuild needs huge amoumt of memmory to compile in highly parallel"
+ ewarn "mode so it can chew it all. MAKEOPTS are reduced to \"$MAKEOPTS\"."
+ fi
+
+ trinity-meta_pkg_setup
+}
diff --git a/gentoo/trinity-base/khelpcenter/metadata.xml b/gentoo/trinity-base/khelpcenter/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/khelpcenter/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/khexedit/Manifest b/gentoo/trinity-base/khexedit/Manifest
new file mode 100644
index 000000000..c59ac62b4
--- /dev/null
+++ b/gentoo/trinity-base/khexedit/Manifest
@@ -0,0 +1,2 @@
+DIST kdeutils-3.5.13.1.tar.gz 2829393 SHA256 3e7ab07fe1bb3e7be7ac3a3796366c88d3b79a58af911546e2c65e32363db527 SHA512 48733e472d0f5da85ef8a32ed6db7fa5e61f0682e49842439e6ea38a1e407059bb35efffe41fc6ed1a718511fd5b2b2c8222d816a23500a4dcbca17461f9a3bd WHIRLPOOL 1488e0c44f60b4d5e397dd2cf93de048eae1b915d4b2b7b1cf27768946f5aae3b5bcc3971ee28b5fa6a57a0b94cca6db0866138b69ad74f1f7bb97cdaaebdbe2
+DIST kdeutils-trinity-3.5.13.2.tar.xz 2259232 SHA256 b2999b9ef39bb2f269b84fdf34a814b5a5599aae7d05538d0bf680c18fb334fa SHA512 f501aa4b61bf440e873eec96f09c0c24ad780db2f9f14b884001c04c04aafccb5afb2b492dcf4fc640f3ec35d86aa419d67936122648a986662cd7b7f4f8a2d8 WHIRLPOOL 49296006875250212f0fdeb0c90c4f69cf0aa7cfd38415e2f7b50bdf81754de64562df2400f4932a502adbe84b58be34cae6c029d68cc62d0e91de5158513239
diff --git a/gentoo/trinity-base/khexedit/files/shared b/gentoo/trinity-base/khexedit/files/shared
new file mode 120000
index 000000000..af62be31d
--- /dev/null
+++ b/gentoo/trinity-base/khexedit/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files/ \ No newline at end of file
diff --git a/gentoo/trinity-base/khexedit/khexedit-3.5.13.1.ebuild b/gentoo/trinity-base/khexedit/khexedit-3.5.13.1.ebuild
new file mode 100644
index 000000000..46f83b7e0
--- /dev/null
+++ b/gentoo/trinity-base/khexedit/khexedit-3.5.13.1.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdeutils"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity hex editor"
+KEYWORDS="x86 amd64"
+IUSE=""
diff --git a/gentoo/trinity-base/khexedit/khexedit-3.5.13.2.ebuild b/gentoo/trinity-base/khexedit/khexedit-3.5.13.2.ebuild
new file mode 100644
index 000000000..7af916976
--- /dev/null
+++ b/gentoo/trinity-base/khexedit/khexedit-3.5.13.2.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdeutils"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity hex editor"
+KEYWORDS="~x86 ~amd64"
+IUSE=""
diff --git a/gentoo/trinity-base/khexedit/khexedit-9999.ebuild b/gentoo/trinity-base/khexedit/khexedit-9999.ebuild
new file mode 100644
index 000000000..b41ff837d
--- /dev/null
+++ b/gentoo/trinity-base/khexedit/khexedit-9999.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdeutils"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity hex editor"
+KEYWORDS=""
+IUSE=""
diff --git a/gentoo/trinity-base/khexedit/metadata.xml b/gentoo/trinity-base/khexedit/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/khexedit/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/khotkeys/Manifest b/gentoo/trinity-base/khotkeys/Manifest
new file mode 100644
index 000000000..381340c4b
--- /dev/null
+++ b/gentoo/trinity-base/khotkeys/Manifest
@@ -0,0 +1,2 @@
+DIST kdebase-3.5.13.1.tar.gz 29403228 SHA256 ddd4bd4b508ad027b9d1af2701c6ba64bfc9f8f1d32099e6dd5e7866714f759e SHA512 e1aac19c941a5f2b43a57928fdb43e5ebd646f49c60911d9d317550df96642870792c4e77ecd06e123244e2425ccd4bcb00f0a21011ba7e651d7fcf4553e79cf WHIRLPOOL 931debbf6a65c280221025dcbc02cbb3387b66eb72eddd28a510ee8f97075cd2cc96535dde25d0a32280c399e4a868e9c027772f5d28e7e79b7c1a9080c58034
+DIST kdebase-trinity-3.5.13.2.tar.xz 25890636 SHA256 b9d552226daff64437dfb9699669b95dd7ebc2ca7c43755ba71c10cc6c9ed789 SHA512 df545d44c7d4550d1d77ff6504572b622853c2b8d80062b1aee1a5bdca19f0e708cde35cff54cf2d5098f06a41bde0c89522a3958dea9bb18205dea87c11b797 WHIRLPOOL 79144273bc7985c59a593a3394b12a2053532d2c4c890ce96adad21f6de0413baf3c6270d6d06173ec4546b20d401aa0cc81603d01b8ee41dbdefc825b39b2b1
diff --git a/gentoo/trinity-base/khotkeys/files/shared b/gentoo/trinity-base/khotkeys/files/shared
new file mode 120000
index 000000000..ffc286806
--- /dev/null
+++ b/gentoo/trinity-base/khotkeys/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files \ No newline at end of file
diff --git a/gentoo/trinity-base/khotkeys/khotkeys-3.5.13.1.ebuild b/gentoo/trinity-base/khotkeys/khotkeys-3.5.13.1.ebuild
new file mode 100644
index 000000000..ed7aa263a
--- /dev/null
+++ b/gentoo/trinity-base/khotkeys/khotkeys-3.5.13.1.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity hotkey daemon"
+KEYWORDS="x86 amd64"
+IUSE="arts"
+
+DEPEND="
+ arts? ( >=trinity-base/arts-${PV}:${SLOT} )
+ x11-libs/libXtst"
+RDEPEND="$DEPEND"
+
+src_configure() {
+ mycmakeargs=(
+ -D_WITH_XTEST=ON
+ $(cmake-utils_use_with arts ARTS)
+ )
+
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-base/khotkeys/khotkeys-3.5.13.2.ebuild b/gentoo/trinity-base/khotkeys/khotkeys-3.5.13.2.ebuild
new file mode 100644
index 000000000..e469535a8
--- /dev/null
+++ b/gentoo/trinity-base/khotkeys/khotkeys-3.5.13.2.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity hotkey daemon"
+KEYWORDS="~amd64 ~x86"
+IUSE="arts"
+
+DEPEND="
+ arts? ( >=trinity-base/arts-${PV}:${SLOT} )
+ x11-libs/libXtst"
+RDEPEND="$DEPEND"
+
+src_configure() {
+ mycmakeargs=(
+ -D_WITH_XTEST=ON
+ $(cmake-utils_use_with arts ARTS)
+ )
+
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-base/khotkeys/khotkeys-9999.ebuild b/gentoo/trinity-base/khotkeys/khotkeys-9999.ebuild
new file mode 100644
index 000000000..2bb16525b
--- /dev/null
+++ b/gentoo/trinity-base/khotkeys/khotkeys-9999.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdebase"
+
+inherit trinity-meta
+
+need-arts optional
+
+DESCRIPTION="Trinity hotkey daemon"
+KEYWORDS=""
+
+DEPEND+=" x11-libs/libXtst"
+RDEPEND+=" x11-libs/libXtst"
+
+src_configure() {
+ mycmakeargs=(
+ -D_WITH_XTEST=ON
+ )
+
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-base/khotkeys/metadata.xml b/gentoo/trinity-base/khotkeys/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/khotkeys/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kicker-applets/kicker-applets-9999.ebuild b/gentoo/trinity-base/kicker-applets/kicker-applets-9999.ebuild
new file mode 100644
index 000000000..38bd968f8
--- /dev/null
+++ b/gentoo/trinity-base/kicker-applets/kicker-applets-9999.ebuild
@@ -0,0 +1,16 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdeaddons"
+
+inherit trinity-meta
+
+DESCRIPTION="kicker applets"
+KEYWORDS=""
+IUSE+=""
+DEPEND=">=trinity-base/kicker-${PV}:${SLOT}"
+
+RDEPEND="${DEPEND}"
+
+# no xmms support
diff --git a/gentoo/trinity-base/kicker-applets/metadata.xml b/gentoo/trinity-base/kicker-applets/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kicker-applets/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kicker/Manifest b/gentoo/trinity-base/kicker/Manifest
new file mode 100644
index 000000000..381340c4b
--- /dev/null
+++ b/gentoo/trinity-base/kicker/Manifest
@@ -0,0 +1,2 @@
+DIST kdebase-3.5.13.1.tar.gz 29403228 SHA256 ddd4bd4b508ad027b9d1af2701c6ba64bfc9f8f1d32099e6dd5e7866714f759e SHA512 e1aac19c941a5f2b43a57928fdb43e5ebd646f49c60911d9d317550df96642870792c4e77ecd06e123244e2425ccd4bcb00f0a21011ba7e651d7fcf4553e79cf WHIRLPOOL 931debbf6a65c280221025dcbc02cbb3387b66eb72eddd28a510ee8f97075cd2cc96535dde25d0a32280c399e4a868e9c027772f5d28e7e79b7c1a9080c58034
+DIST kdebase-trinity-3.5.13.2.tar.xz 25890636 SHA256 b9d552226daff64437dfb9699669b95dd7ebc2ca7c43755ba71c10cc6c9ed789 SHA512 df545d44c7d4550d1d77ff6504572b622853c2b8d80062b1aee1a5bdca19f0e708cde35cff54cf2d5098f06a41bde0c89522a3958dea9bb18205dea87c11b797 WHIRLPOOL 79144273bc7985c59a593a3394b12a2053532d2c4c890ce96adad21f6de0413baf3c6270d6d06173ec4546b20d401aa0cc81603d01b8ee41dbdefc825b39b2b1
diff --git a/gentoo/trinity-base/kicker/files/kicker-3.5.13.2-include-dbus.patch b/gentoo/trinity-base/kicker/files/kicker-3.5.13.2-include-dbus.patch
new file mode 100644
index 000000000..ddfbd9e46
--- /dev/null
+++ b/gentoo/trinity-base/kicker/files/kicker-3.5.13.2-include-dbus.patch
@@ -0,0 +1,51 @@
+diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
+index 8dc8a3f..24c47df 100644
+--- a/ConfigureChecks.cmake
++++ b/ConfigureChecks.cmake
+@@ -233,8 +233,8 @@ find_package( TQt )
+ find_package( TDE )
+
+
+-# dbus (kdm, ksmserver)
+-if( BUILD_KDM OR BUILD_KSMSERVER )
++# dbus (kdm, ksmserver, kicker)
++if( BUILD_KDM OR BUILD_KSMSERVER OR BUILD_KICKER )
+
+ pkg_search_module( DBUS dbus-1 )
+ if( NOT DBUS_FOUND )
+diff --git a/kicker/kicker/buttons/CMakeLists.txt b/kicker/kicker/buttons/CMakeLists.txt
+index 1e7ede5..18e8601 100644
+--- a/kicker/kicker/buttons/CMakeLists.txt
++++ b/kicker/kicker/buttons/CMakeLists.txt
+@@ -18,6 +18,7 @@ include_directories(
+ ${CMAKE_SOURCE_DIR}/kicker/kicker/ui
+ ${CMAKE_SOURCE_DIR}/libkonq
+ ${DBUS_TQT_INCLUDE_DIRS}
++ ${DBUS_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+ )
+diff --git a/kicker/kicker/core/CMakeLists.txt b/kicker/kicker/core/CMakeLists.txt
+index f2eb010..c850ff5 100644
+--- a/kicker/kicker/core/CMakeLists.txt
++++ b/kicker/kicker/core/CMakeLists.txt
+@@ -18,6 +18,7 @@ include_directories(
+ ${CMAKE_SOURCE_DIR}/kicker/kicker/ui
+ ${CMAKE_SOURCE_DIR}/kicker/kicker/buttons
+ ${DBUS_TQT_INCLUDE_DIRS}
++ ${DBUS_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+ )
+diff --git a/kicker/kicker/ui/CMakeLists.txt b/kicker/kicker/ui/CMakeLists.txt
+index a6e9510..8929962 100644
+--- a/kicker/kicker/ui/CMakeLists.txt
++++ b/kicker/kicker/ui/CMakeLists.txt
+@@ -21,6 +21,7 @@ include_directories(
+ ${CMAKE_SOURCE_DIR}/kdmlib
+ ${CMAKE_SOURCE_DIR}/libkonq
+ ${DBUS_TQT_INCLUDE_DIRS}
++ ${DBUS_INCLUDE_DIRS}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+ )
diff --git a/gentoo/trinity-base/kicker/files/shared b/gentoo/trinity-base/kicker/files/shared
new file mode 120000
index 000000000..ffc286806
--- /dev/null
+++ b/gentoo/trinity-base/kicker/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files \ No newline at end of file
diff --git a/gentoo/trinity-base/kicker/kicker-3.5.13.1.ebuild b/gentoo/trinity-base/kicker/kicker-3.5.13.1.ebuild
new file mode 100644
index 000000000..7d6e40d1f
--- /dev/null
+++ b/gentoo/trinity-base/kicker/kicker-3.5.13.1.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="The Trinity application starter panel, capable of applets and extensions"
+KEYWORDS="x86 amd64"
+IUSE="xcomposite"
+
+DEPEND=">=trinity-base/libkonq-${PV}:${SLOT}
+ >=trinity-base/kdebase-data-${PV}:${SLOT}
+ xcomposite? ( x11-libs/libXrender )
+ xcomposite? ( x11-libs/libXfixes )
+ xcomposite? ( x11-libs/libXcomposite )"
+
+RDEPEND="${DEPEND}
+ trinity-base/kmenuedit:${SLOT}"
+
+src_configure() {
+ mycmakeargs=(
+ $(cmake-utils_use_with xcomposite XFIXES)
+ $(cmake-utils_use_with xcomposite XRENDER)
+ $(cmake-utils_use_with xcomposite XCOMPOSITE)
+ )
+
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-base/kicker/kicker-3.5.13.2.ebuild b/gentoo/trinity-base/kicker/kicker-3.5.13.2.ebuild
new file mode 100644
index 000000000..3d5ae385d
--- /dev/null
+++ b/gentoo/trinity-base/kicker/kicker-3.5.13.2.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="The Trinity application starter panel, capable of applets and extensions"
+KEYWORDS="~amd64 ~x86"
+IUSE="hal xcomposite"
+
+DEPEND=">=trinity-base/libkonq-${PV}:${SLOT}
+ >=trinity-base/kdebase-data-${PV}:${SLOT}
+ xcomposite? ( x11-libs/libXrender
+ x11-libs/libXfixes
+ x11-libs/libXcomposite )"
+
+RDEPEND="${DEPEND}
+ trinity-base/kmenuedit:${SLOT}"
+
+PATCHES=( "$FILESDIR/${PN}-3.5.13.2-include-dbus.patch" )
+
+src_configure() {
+ mycmakeargs=(
+ $(cmake-utils_use_with xcomposite XFIXES)
+ $(cmake-utils_use_with xcomposite XRENDER)
+ $(cmake-utils_use_with xcomposite XCOMPOSITE)
+ $(cmake-utils_use_with hal HAL)
+ )
+
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-base/kicker/kicker-9999.ebuild b/gentoo/trinity-base/kicker/kicker-9999.ebuild
new file mode 100644
index 000000000..cb5dafdae
--- /dev/null
+++ b/gentoo/trinity-base/kicker/kicker-9999.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="The Trinity application starter panel, capable of applets and extensions"
+KEYWORDS=
+IUSE="xcomposite"
+
+DEPEND=">=trinity-base/libkonq-${PV}:${SLOT}
+ >=trinity-base/tdebase-data-${PV}:${SLOT}
+ dev-libs/dbus-tqt
+ xcomposite? ( x11-libs/libXrender
+ x11-libs/libXfixes
+ x11-libs/libXcomposite )"
+
+RDEPEND="${DEPEND}
+ trinity-base/kmenuedit:${SLOT}"
+
+src_configure() {
+ mycmakeargs=(
+ $(cmake-utils_use_with xcomposite XFIXES)
+ $(cmake-utils_use_with xcomposite XRENDER)
+ $(cmake-utils_use_with xcomposite XCOMPOSITE)
+ )
+
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-base/kicker/metadata.xml b/gentoo/trinity-base/kicker/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kicker/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kiconedit/Manifest b/gentoo/trinity-base/kiconedit/Manifest
new file mode 100644
index 000000000..f0ba54e9a
--- /dev/null
+++ b/gentoo/trinity-base/kiconedit/Manifest
@@ -0,0 +1 @@
+DIST kdegraphics-3.5.13.1.tar.gz 7526074 SHA256 19bd36e261bb6c5d2c9c1eba5f736c642b48422d917d44e576835f7ebb44906b SHA512 693e5ad70dbb00c587e588acfb81fc9475c3a4dbc86f41d6053c0584c533349a7564e34b870cb7bbc57361ac539da6f7d7f1b002ac3cfe8b0201db3eeb9147dd WHIRLPOOL fd2c46c517b3a0293880eaf35967295485555b936d0f1e80e0f2c261a1164cfcc5c4b2d943a12c073914d33b59974cc2dd92a78414614caa10f46dd048d518b4
diff --git a/gentoo/trinity-base/kiconedit/kiconedit-3.5.13.1.ebuild b/gentoo/trinity-base/kiconedit/kiconedit-3.5.13.1.ebuild
new file mode 100644
index 000000000..309685dbf
--- /dev/null
+++ b/gentoo/trinity-base/kiconedit/kiconedit-3.5.13.1.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdegraphics"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity Icon Editor"
+KEYWORDS="x86 amd64"
+IUSE=""
diff --git a/gentoo/trinity-base/kiconedit/metadata.xml b/gentoo/trinity-base/kiconedit/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kiconedit/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kjots/Manifest b/gentoo/trinity-base/kjots/Manifest
new file mode 100644
index 000000000..c59ac62b4
--- /dev/null
+++ b/gentoo/trinity-base/kjots/Manifest
@@ -0,0 +1,2 @@
+DIST kdeutils-3.5.13.1.tar.gz 2829393 SHA256 3e7ab07fe1bb3e7be7ac3a3796366c88d3b79a58af911546e2c65e32363db527 SHA512 48733e472d0f5da85ef8a32ed6db7fa5e61f0682e49842439e6ea38a1e407059bb35efffe41fc6ed1a718511fd5b2b2c8222d816a23500a4dcbca17461f9a3bd WHIRLPOOL 1488e0c44f60b4d5e397dd2cf93de048eae1b915d4b2b7b1cf27768946f5aae3b5bcc3971ee28b5fa6a57a0b94cca6db0866138b69ad74f1f7bb97cdaaebdbe2
+DIST kdeutils-trinity-3.5.13.2.tar.xz 2259232 SHA256 b2999b9ef39bb2f269b84fdf34a814b5a5599aae7d05538d0bf680c18fb334fa SHA512 f501aa4b61bf440e873eec96f09c0c24ad780db2f9f14b884001c04c04aafccb5afb2b492dcf4fc640f3ec35d86aa419d67936122648a986662cd7b7f4f8a2d8 WHIRLPOOL 49296006875250212f0fdeb0c90c4f69cf0aa7cfd38415e2f7b50bdf81754de64562df2400f4932a502adbe84b58be34cae6c029d68cc62d0e91de5158513239
diff --git a/gentoo/trinity-base/kjots/files/shared b/gentoo/trinity-base/kjots/files/shared
new file mode 120000
index 000000000..af62be31d
--- /dev/null
+++ b/gentoo/trinity-base/kjots/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files/ \ No newline at end of file
diff --git a/gentoo/trinity-base/kjots/kjots-3.5.13.1.ebuild b/gentoo/trinity-base/kjots/kjots-3.5.13.1.ebuild
new file mode 100644
index 000000000..4c13ba798
--- /dev/null
+++ b/gentoo/trinity-base/kjots/kjots-3.5.13.1.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdeutils"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity note taking utility"
+KEYWORDS="x86 amd64"
+IUSE=""
diff --git a/gentoo/trinity-base/kjots/kjots-3.5.13.2.ebuild b/gentoo/trinity-base/kjots/kjots-3.5.13.2.ebuild
new file mode 100644
index 000000000..cdfd25ca9
--- /dev/null
+++ b/gentoo/trinity-base/kjots/kjots-3.5.13.2.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdeutils"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity note taking utility"
+KEYWORDS="~x86 ~amd64"
+IUSE=""
diff --git a/gentoo/trinity-base/kjots/kjots-9999.ebuild b/gentoo/trinity-base/kjots/kjots-9999.ebuild
new file mode 100644
index 000000000..04db92137
--- /dev/null
+++ b/gentoo/trinity-base/kjots/kjots-9999.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdeutils"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity note taking utility"
+KEYWORDS=""
+IUSE=""
diff --git a/gentoo/trinity-base/kjots/metadata.xml b/gentoo/trinity-base/kjots/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kjots/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/klaptopdaemon/Manifest b/gentoo/trinity-base/klaptopdaemon/Manifest
new file mode 100644
index 000000000..c59ac62b4
--- /dev/null
+++ b/gentoo/trinity-base/klaptopdaemon/Manifest
@@ -0,0 +1,2 @@
+DIST kdeutils-3.5.13.1.tar.gz 2829393 SHA256 3e7ab07fe1bb3e7be7ac3a3796366c88d3b79a58af911546e2c65e32363db527 SHA512 48733e472d0f5da85ef8a32ed6db7fa5e61f0682e49842439e6ea38a1e407059bb35efffe41fc6ed1a718511fd5b2b2c8222d816a23500a4dcbca17461f9a3bd WHIRLPOOL 1488e0c44f60b4d5e397dd2cf93de048eae1b915d4b2b7b1cf27768946f5aae3b5bcc3971ee28b5fa6a57a0b94cca6db0866138b69ad74f1f7bb97cdaaebdbe2
+DIST kdeutils-trinity-3.5.13.2.tar.xz 2259232 SHA256 b2999b9ef39bb2f269b84fdf34a814b5a5599aae7d05538d0bf680c18fb334fa SHA512 f501aa4b61bf440e873eec96f09c0c24ad780db2f9f14b884001c04c04aafccb5afb2b492dcf4fc640f3ec35d86aa419d67936122648a986662cd7b7f4f8a2d8 WHIRLPOOL 49296006875250212f0fdeb0c90c4f69cf0aa7cfd38415e2f7b50bdf81754de64562df2400f4932a502adbe84b58be34cae6c029d68cc62d0e91de5158513239
diff --git a/gentoo/trinity-base/klaptopdaemon/files/shared b/gentoo/trinity-base/klaptopdaemon/files/shared
new file mode 120000
index 000000000..af62be31d
--- /dev/null
+++ b/gentoo/trinity-base/klaptopdaemon/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files/ \ No newline at end of file
diff --git a/gentoo/trinity-base/klaptopdaemon/klaptopdaemon-3.5.13.1.ebuild b/gentoo/trinity-base/klaptopdaemon/klaptopdaemon-3.5.13.1.ebuild
new file mode 100644
index 000000000..7e9402d2c
--- /dev/null
+++ b/gentoo/trinity-base/klaptopdaemon/klaptopdaemon-3.5.13.1.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdeutils"
+
+inherit trinity-meta
+
+DESCRIPTION="KLaptopdaemon - Trinity battery monitoring and management for laptops."
+KEYWORDS="x86 amd64"
+IUSE="xscreensaver"
+
+DEPEND="x11-libs/libXtst
+ xscreensaver? ( x11-libs/libXScrnSaver )
+ virtual/os-headers"
+RDEPEND="${DEPEND}"
+
+src_configure() {
+ mycmakeargs=(
+ "-DWITH_DPMS=ON"
+ $(cmake-utils_use_with xscreensaver XSCREENSAVER)
+ )
+
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-base/klaptopdaemon/klaptopdaemon-3.5.13.2.ebuild b/gentoo/trinity-base/klaptopdaemon/klaptopdaemon-3.5.13.2.ebuild
new file mode 100644
index 000000000..e8a93bc72
--- /dev/null
+++ b/gentoo/trinity-base/klaptopdaemon/klaptopdaemon-3.5.13.2.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdeutils"
+
+inherit trinity-meta
+
+DESCRIPTION="KLaptopdaemon - Trinity battery monitoring and management for laptops."
+KEYWORDS="~x86 ~amd64"
+IUSE="xscreensaver"
+
+DEPEND="x11-libs/libXtst
+ xscreensaver? ( x11-libs/libXScrnSaver )
+ virtual/os-headers"
+RDEPEND="${DEPEND}"
+
+src_configure() {
+ mycmakeargs=(
+ "-DWITH_DPMS=ON"
+ $(cmake-utils_use_with xscreensaver XSCREENSAVER)
+ )
+
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-base/klaptopdaemon/klaptopdaemon-9999.ebuild b/gentoo/trinity-base/klaptopdaemon/klaptopdaemon-9999.ebuild
new file mode 100644
index 000000000..fc6ee6bfd
--- /dev/null
+++ b/gentoo/trinity-base/klaptopdaemon/klaptopdaemon-9999.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdeutils"
+
+inherit trinity-meta
+
+DESCRIPTION="KLaptopdaemon - Trinity battery monitoring and management for laptops."
+KEYWORDS=""
+IUSE="xscreensaver"
+
+DEPEND="x11-libs/libXtst
+ xscreensaver? ( x11-libs/libXScrnSaver )
+ virtual/os-headers"
+RDEPEND="${DEPEND}"
+
+src_configure() {
+ mycmakeargs=(
+ "-DWITH_DPMS=ON"
+ $(cmake-utils_use_with xscreensaver XSCREENSAVER)
+ )
+
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-base/klaptopdaemon/metadata.xml b/gentoo/trinity-base/klaptopdaemon/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/klaptopdaemon/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/klipper/Manifest b/gentoo/trinity-base/klipper/Manifest
new file mode 100644
index 000000000..381340c4b
--- /dev/null
+++ b/gentoo/trinity-base/klipper/Manifest
@@ -0,0 +1,2 @@
+DIST kdebase-3.5.13.1.tar.gz 29403228 SHA256 ddd4bd4b508ad027b9d1af2701c6ba64bfc9f8f1d32099e6dd5e7866714f759e SHA512 e1aac19c941a5f2b43a57928fdb43e5ebd646f49c60911d9d317550df96642870792c4e77ecd06e123244e2425ccd4bcb00f0a21011ba7e651d7fcf4553e79cf WHIRLPOOL 931debbf6a65c280221025dcbc02cbb3387b66eb72eddd28a510ee8f97075cd2cc96535dde25d0a32280c399e4a868e9c027772f5d28e7e79b7c1a9080c58034
+DIST kdebase-trinity-3.5.13.2.tar.xz 25890636 SHA256 b9d552226daff64437dfb9699669b95dd7ebc2ca7c43755ba71c10cc6c9ed789 SHA512 df545d44c7d4550d1d77ff6504572b622853c2b8d80062b1aee1a5bdca19f0e708cde35cff54cf2d5098f06a41bde0c89522a3958dea9bb18205dea87c11b797 WHIRLPOOL 79144273bc7985c59a593a3394b12a2053532d2c4c890ce96adad21f6de0413baf3c6270d6d06173ec4546b20d401aa0cc81603d01b8ee41dbdefc825b39b2b1
diff --git a/gentoo/trinity-base/klipper/files/shared b/gentoo/trinity-base/klipper/files/shared
new file mode 120000
index 000000000..ffc286806
--- /dev/null
+++ b/gentoo/trinity-base/klipper/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files \ No newline at end of file
diff --git a/gentoo/trinity-base/klipper/klipper-3.5.13.1.ebuild b/gentoo/trinity-base/klipper/klipper-3.5.13.1.ebuild
new file mode 100644
index 000000000..20d7cca1b
--- /dev/null
+++ b/gentoo/trinity-base/klipper/klipper-3.5.13.1.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="kicker applet for Trinity and X clipboard management"
+KEYWORDS="x86 amd64"
+IUSE=""
+
+DEPEND="x11-libs/libXfixes"
+RDEPEND="${RDEPEND}"
+
+src_configure() {
+ mycmakeargs=(
+ -DWITH_XFIXES=ON
+ )
+
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-base/klipper/klipper-3.5.13.2.ebuild b/gentoo/trinity-base/klipper/klipper-3.5.13.2.ebuild
new file mode 100644
index 000000000..004a156b4
--- /dev/null
+++ b/gentoo/trinity-base/klipper/klipper-3.5.13.2.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="kicker applet for Trinity and X clipboard management"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="x11-libs/libXfixes"
+RDEPEND="${RDEPEND}"
+
+src_configure() {
+ mycmakeargs=(
+ -DWITH_XFIXES=ON
+ )
+
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-base/klipper/klipper-9999.ebuild b/gentoo/trinity-base/klipper/klipper-9999.ebuild
new file mode 100644
index 000000000..7540af8c8
--- /dev/null
+++ b/gentoo/trinity-base/klipper/klipper-9999.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="kicker applet for Trinity and X clipboard management"
+KEYWORDS=
+IUSE=""
+
+DEPEND="x11-libs/libXfixes"
+RDEPEND="${RDEPEND}"
+
+src_configure() {
+ mycmakeargs=(
+ -DWITH_XFIXES=ON
+ )
+
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-base/klipper/metadata.xml b/gentoo/trinity-base/klipper/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/klipper/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kmenuedit/Manifest b/gentoo/trinity-base/kmenuedit/Manifest
new file mode 100644
index 000000000..381340c4b
--- /dev/null
+++ b/gentoo/trinity-base/kmenuedit/Manifest
@@ -0,0 +1,2 @@
+DIST kdebase-3.5.13.1.tar.gz 29403228 SHA256 ddd4bd4b508ad027b9d1af2701c6ba64bfc9f8f1d32099e6dd5e7866714f759e SHA512 e1aac19c941a5f2b43a57928fdb43e5ebd646f49c60911d9d317550df96642870792c4e77ecd06e123244e2425ccd4bcb00f0a21011ba7e651d7fcf4553e79cf WHIRLPOOL 931debbf6a65c280221025dcbc02cbb3387b66eb72eddd28a510ee8f97075cd2cc96535dde25d0a32280c399e4a868e9c027772f5d28e7e79b7c1a9080c58034
+DIST kdebase-trinity-3.5.13.2.tar.xz 25890636 SHA256 b9d552226daff64437dfb9699669b95dd7ebc2ca7c43755ba71c10cc6c9ed789 SHA512 df545d44c7d4550d1d77ff6504572b622853c2b8d80062b1aee1a5bdca19f0e708cde35cff54cf2d5098f06a41bde0c89522a3958dea9bb18205dea87c11b797 WHIRLPOOL 79144273bc7985c59a593a3394b12a2053532d2c4c890ce96adad21f6de0413baf3c6270d6d06173ec4546b20d401aa0cc81603d01b8ee41dbdefc825b39b2b1
diff --git a/gentoo/trinity-base/kmenuedit/files/shared b/gentoo/trinity-base/kmenuedit/files/shared
new file mode 120000
index 000000000..ffc286806
--- /dev/null
+++ b/gentoo/trinity-base/kmenuedit/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files \ No newline at end of file
diff --git a/gentoo/trinity-base/kmenuedit/kmenuedit-3.5.13.1.ebuild b/gentoo/trinity-base/kmenuedit/kmenuedit-3.5.13.1.ebuild
new file mode 100644
index 000000000..1c43b4097
--- /dev/null
+++ b/gentoo/trinity-base/kmenuedit/kmenuedit-3.5.13.1.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity menu editor"
+KEYWORDS="x86 amd64"
+IUSE=""
diff --git a/gentoo/trinity-base/kmenuedit/kmenuedit-3.5.13.2.ebuild b/gentoo/trinity-base/kmenuedit/kmenuedit-3.5.13.2.ebuild
new file mode 100644
index 000000000..53bc88121
--- /dev/null
+++ b/gentoo/trinity-base/kmenuedit/kmenuedit-3.5.13.2.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity menu editor"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
diff --git a/gentoo/trinity-base/kmenuedit/kmenuedit-9999.ebuild b/gentoo/trinity-base/kmenuedit/kmenuedit-9999.ebuild
new file mode 100644
index 000000000..075d4ced0
--- /dev/null
+++ b/gentoo/trinity-base/kmenuedit/kmenuedit-9999.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity menu editor"
+KEYWORDS=
+IUSE=""
diff --git a/gentoo/trinity-base/kmenuedit/metadata.xml b/gentoo/trinity-base/kmenuedit/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kmenuedit/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kmilo/Manifest b/gentoo/trinity-base/kmilo/Manifest
new file mode 100644
index 000000000..c59ac62b4
--- /dev/null
+++ b/gentoo/trinity-base/kmilo/Manifest
@@ -0,0 +1,2 @@
+DIST kdeutils-3.5.13.1.tar.gz 2829393 SHA256 3e7ab07fe1bb3e7be7ac3a3796366c88d3b79a58af911546e2c65e32363db527 SHA512 48733e472d0f5da85ef8a32ed6db7fa5e61f0682e49842439e6ea38a1e407059bb35efffe41fc6ed1a718511fd5b2b2c8222d816a23500a4dcbca17461f9a3bd WHIRLPOOL 1488e0c44f60b4d5e397dd2cf93de048eae1b915d4b2b7b1cf27768946f5aae3b5bcc3971ee28b5fa6a57a0b94cca6db0866138b69ad74f1f7bb97cdaaebdbe2
+DIST kdeutils-trinity-3.5.13.2.tar.xz 2259232 SHA256 b2999b9ef39bb2f269b84fdf34a814b5a5599aae7d05538d0bf680c18fb334fa SHA512 f501aa4b61bf440e873eec96f09c0c24ad780db2f9f14b884001c04c04aafccb5afb2b492dcf4fc640f3ec35d86aa419d67936122648a986662cd7b7f4f8a2d8 WHIRLPOOL 49296006875250212f0fdeb0c90c4f69cf0aa7cfd38415e2f7b50bdf81754de64562df2400f4932a502adbe84b58be34cae6c029d68cc62d0e91de5158513239
diff --git a/gentoo/trinity-base/kmilo/files/kdeutils-3.5.13.1-kmilo-fix-powerbook.patch b/gentoo/trinity-base/kmilo/files/kdeutils-3.5.13.1-kmilo-fix-powerbook.patch
new file mode 100644
index 000000000..f5830b6bb
--- /dev/null
+++ b/gentoo/trinity-base/kmilo/files/kdeutils-3.5.13.1-kmilo-fix-powerbook.patch
@@ -0,0 +1,67 @@
+diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
+index 14828bc..2766533 100644
+--- a/ConfigureChecks.cmake
++++ b/ConfigureChecks.cmake
+@@ -117,24 +117,21 @@ endif( )
+
+ ##### kmilo #####################################
+
+-if ( BUILD_KMILO )
++if( BUILD_KMILO )
+ # FIXME: If anybody will ever compile trinity for POWERPC and especialy for
+-# POWERBOOK he should test those checks and modules
+- if( WITH_POWERBOOK )
++# POWERBOOK he or she should test workability of those modules
++ if( WITH_POWERBOOK OR WITH_POWERBOOK2 )
++ check_library_exists( "pbb" "init_libpbb" "" HAVE_PBBIPC_LIBRARY )
+ check_include_file( "pbbipc.h" HAVE_PBBIPC_H )
+- if( NOT HAVE_PBBIPC_H )
+- tde_message_fatal( "pbbipc.h header is required, but was not found on your system" )
+- endif( NOT HAVE_PBBIPC_H )
+- endif( WITH_POWERBOOK )
+-
+- if( WITH_POWERBOOK2 )
+ check_include_file( "pbb.h" HAVE_PBB_H )
+- if( NOT HAVE_PBB_H )
+- tde_message_fatal( "pbb.h header is required, but was not found on your system" )
+- endif( NOT HAVE_PBB_H )
+- endif( WITH_POWERBOOK2 )
+-
+-endif (BUILD_KMILO)
++ if( HAVE_PBBIPC_LIBRARY AND ( ( WITH_POWERBOOK AND HAVE_PBBIPC_H ) OR
++ ( WITH_POWERBOOK2 AND HAVE_PBB_H ) ) )
++ set( PBB_LIBRARY pbb CACHE INTERNAL "" )
++ else()
++ tde_message_fatal( "suitable pbbuttonosd is required, but was not found on your system" )
++ endif()
++ endif( WITH_POWERBOOK OR WITH_POWERBOOK2 )
++endif( BUILD_KMILO )
+
+
+ ##### ksim ######################################
+diff --git a/kmilo/powerbook/CMakeLists.txt b/kmilo/powerbook/CMakeLists.txt
+index 461d2d2..bb98b70 100644
+--- a/kmilo/powerbook/CMakeLists.txt
++++ b/kmilo/powerbook/CMakeLists.txt
+@@ -28,7 +28,7 @@ link_directories(
+
+ tde_add_kpart( kmilo_powerbook AUTOMOC
+ SOURCES pb_monitor.cpp
+- LINK kio-shared kmilo-shared
++ LINK kio-shared kmilo-shared ${PBB_LIBRARY}
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+ )
+
+diff --git a/kmilo/powerbook2/CMakeLists.txt b/kmilo/powerbook2/CMakeLists.txt
+index 461d2d2..bb98b70 100644
+--- a/kmilo/powerbook2/CMakeLists.txt
++++ b/kmilo/powerbook2/CMakeLists.txt
+@@ -28,7 +28,7 @@ link_directories(
+
+ tde_add_kpart( kmilo_powerbook AUTOMOC
+ SOURCES pb_monitor.cpp
+- LINK kio-shared kmilo-shared
++ LINK kio-shared kmilo-shared ${PBB_LIBRARY}
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+ )
+
diff --git a/gentoo/trinity-base/kmilo/files/shared b/gentoo/trinity-base/kmilo/files/shared
new file mode 120000
index 000000000..af62be31d
--- /dev/null
+++ b/gentoo/trinity-base/kmilo/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files/ \ No newline at end of file
diff --git a/gentoo/trinity-base/kmilo/kmilo-3.5.13.1.ebuild b/gentoo/trinity-base/kmilo/kmilo-3.5.13.1.ebuild
new file mode 100644
index 000000000..64fd8d860
--- /dev/null
+++ b/gentoo/trinity-base/kmilo/kmilo-3.5.13.1.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdeutils"
+
+inherit trinity-meta
+
+DESCRIPTION="kded module supports some hardware input devices, such as special keys"
+KEYWORDS="x86 amd64"
+IUSE="asus-laptop dell-laptop powerbook-laptop thinkpad-laptop vaio-laptop lm_sensors"
+
+DEPEND="powerbook-laptop? ( app-laptop/pbbuttonsd )"
+RDEPEND="${DEPEND}
+ lm_sensors? ( sys-apps/lm_sensors )"
+
+PATCHES=( "$FILESDIR/${TRINITY_MODULE_NAME}-${PV}-${PN}-fix-powerbook.patch" )
+
+src_configure() {
+ mycmakeargs=(
+ $(cmake-utils_use_with asus-laptop ASUS)
+ $(cmake-utils_use_with dell-laptop I8K)
+ $(cmake-utils_use_with powerbook-laptop POWERBOOK2)
+ $(cmake-utils_use_with thinkpad-laptop THINKPAD)
+ $(cmake-utils_use_with vaio-laptop VAIO)
+ $(cmake-utils_use_with lm_sensors SENSORS)
+ )
+
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-base/kmilo/kmilo-3.5.13.2.ebuild b/gentoo/trinity-base/kmilo/kmilo-3.5.13.2.ebuild
new file mode 100644
index 000000000..99b580f88
--- /dev/null
+++ b/gentoo/trinity-base/kmilo/kmilo-3.5.13.2.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdeutils"
+
+inherit trinity-meta
+
+DESCRIPTION="kded module supports some hardware input devices, such as special keys"
+KEYWORDS="~x86 ~amd64"
+IUSE="asus-laptop dell-laptop powerbook-laptop thinkpad-laptop vaio-laptop lm_sensors"
+
+DEPEND="powerbook-laptop? ( app-laptop/pbbuttonsd )"
+RDEPEND="${DEPEND}
+ lm_sensors? ( sys-apps/lm_sensors )"
+
+src_configure() {
+ mycmakeargs=(
+ $(cmake-utils_use_with asus-laptop ASUS)
+ $(cmake-utils_use_with dell-laptop I8K)
+ $(cmake-utils_use_with powerbook-laptop POWERBOOK2)
+ $(cmake-utils_use_with thinkpad-laptop THINKPAD)
+ $(cmake-utils_use_with vaio-laptop VAIO)
+ $(cmake-utils_use_with lm_sensors SENSORS)
+ )
+
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-base/kmilo/kmilo-9999.ebuild b/gentoo/trinity-base/kmilo/kmilo-9999.ebuild
new file mode 100644
index 000000000..5920cd6c6
--- /dev/null
+++ b/gentoo/trinity-base/kmilo/kmilo-9999.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdeutils"
+
+inherit trinity-meta
+
+DESCRIPTION="kded module supports some hardware input devices, such as special keys"
+KEYWORDS=""
+IUSE="asus-laptop dell-laptop powerbook-laptop thinkpad-laptop vaio-laptop lm_sensors"
+
+DEPEND="powerbook-laptop? ( app-laptop/pbbuttonsd )"
+RDEPEND="${DEPEND}
+ lm_sensors? ( sys-apps/lm_sensors )"
+
+src_configure() {
+ mycmakeargs=(
+ $(cmake-utils_use_with asus-laptop ASUS)
+ $(cmake-utils_use_with dell-laptop I8K)
+ $(cmake-utils_use_with powerbook-laptop POWERBOOK2)
+ $(cmake-utils_use_with thinkpad-laptop THINKPAD)
+ $(cmake-utils_use_with vaio-laptop VAIO)
+ $(cmake-utils_use_with lm_sensors SENSORS)
+ )
+
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-base/kmilo/metadata.xml b/gentoo/trinity-base/kmilo/metadata.xml
new file mode 100644
index 000000000..942997580
--- /dev/null
+++ b/gentoo/trinity-base/kmilo/metadata.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+ <use>
+ <flag name="asus-laptop">Adds support for some asus-specific laptop hardware.</flag>
+ <flag name="dell-laptop">Adds support for some dell-specific laptop hardware.</flag>
+ <flag name="powerbook-laptop">Adds support for some powerbook-specific laptop hardware.</flag>
+ <flag name="thinkpad-laptop">Adds support for some thinkpad-specific laptop hardware.</flag>
+ <flag name="vaio-laptop">Adds support for some vaio-specific laptop hardware.</flag>
+ </use>
+ <longdescription>
+ This is a kded module that can be extended to support various types of hardware
+ input devices that exist, such as those on keyboards.
+
+ The output device is skinnable, though not extensible by 3rd parties currently.
+ This will come in the future when the API is finalised.
+
+ It lacks very much functionality.
+ </longdescription>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kmix/Manifest b/gentoo/trinity-base/kmix/Manifest
new file mode 100644
index 000000000..abcd62931
--- /dev/null
+++ b/gentoo/trinity-base/kmix/Manifest
@@ -0,0 +1 @@
+DIST kdemultimedia-3.5.13.1.tar.gz 5867909 SHA256 24dae208691264336d5ad309cfe2dc52ead6482f4fdde5e4684e1ffed6057ee0 SHA512 66383d5b4a641384dc9dd6536bdc577e660088480decaff967d250ffbce3bbc40c13a7df67300601f51ec1291516671bc820c4439425b2bfa2419f392e05c563 WHIRLPOOL 6dd5855075f579add484ee35f1dc3e0042bedd39ce1d21da236248d7b6c24833c2e8b7d080a4bfd59fcf5729f5b8d1e16e9ae2a383b21d76745fa8e4ff09e615
diff --git a/gentoo/trinity-base/kmix/kmix-3.5.13.1.ebuild b/gentoo/trinity-base/kmix/kmix-3.5.13.1.ebuild
new file mode 100644
index 000000000..da130ca96
--- /dev/null
+++ b/gentoo/trinity-base/kmix/kmix-3.5.13.1.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdemultimedia"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity mixer gui"
+KEYWORDS="amd64 x86"
+IUSE="alsa"
+
+DEPEND="alsa? ( media-libs/alsa-lib )"
+RDEPEND="${DEPEND}"
+
+src_configure() {
+ mycmakeargs=(
+ $(cmake-utils_use_with alsa ALSA)
+ )
+
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-base/kmix/kmix-9999.ebuild b/gentoo/trinity-base/kmix/kmix-9999.ebuild
new file mode 100644
index 000000000..88cd80329
--- /dev/null
+++ b/gentoo/trinity-base/kmix/kmix-9999.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdemultimedia"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity mixer gui"
+KEYWORDS=
+IUSE="alsa"
+
+DEPEND="alsa? ( media-libs/alsa-lib )"
+RDEPEND="${DEPEND}"
+
+src_configure() {
+ mycmakeargs=(
+ $(cmake-utils_use_with alsa ALSA)
+ )
+
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-base/kmix/metadata.xml b/gentoo/trinity-base/kmix/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kmix/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kmoon/Manifest b/gentoo/trinity-base/kmoon/Manifest
new file mode 100644
index 000000000..23ad50106
--- /dev/null
+++ b/gentoo/trinity-base/kmoon/Manifest
@@ -0,0 +1,2 @@
+DIST kdetoys-3.5.13.1.tar.gz 3037255 SHA256 41e4224bcf816e52877b17d2dcdc86d94e8f304fee2d3fb35b97921544eafd9d SHA512 e7cd7943004e5d1ec83c0fe484fab82f2cdd5f5d39ee77db419938f023cd3c42ba0b257d0ddc783de7bd528c90195821d810babfa193c60856437593c24ce879 WHIRLPOOL 8d482537f972a24b1cef9ad789edd314517f4e3a6b37056f47d92292c8c30e70def24e99efc552b4504503e2224e1209ae946ff34ac94feaf128c038c54f010d
+DIST kdetoys-trinity-3.5.13.2.tar.xz 2757260 SHA256 a0533ceb6fb103600eb33ef3136d40f84ec826e24e0b95cc45e68ef73a5232f6 SHA512 eb67a70d75a473f885db8993f5eebd3480e68e43e4de60240fde411696ed8b895029505a5125fe51a41d6ccb583ba50c4c67465d770f14f9a1c1533281154f78 WHIRLPOOL d79f58085d2af17453fc50c621ea6fe6909d476cf5f0a6b6ccf51ef69eed0ba073091f587439eb5afd644e0286dfe2ee86ccd903346d3060c3fe90299511018a
diff --git a/gentoo/trinity-base/kmoon/files/shared b/gentoo/trinity-base/kmoon/files/shared
new file mode 120000
index 000000000..af62be31d
--- /dev/null
+++ b/gentoo/trinity-base/kmoon/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files/ \ No newline at end of file
diff --git a/gentoo/trinity-base/kmoon/kmoon-3.5.13.1.ebuild b/gentoo/trinity-base/kmoon/kmoon-3.5.13.1.ebuild
new file mode 100644
index 000000000..5a8d4ed1a
--- /dev/null
+++ b/gentoo/trinity-base/kmoon/kmoon-3.5.13.1.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdetoys"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity moon phase display"
+KEYWORDS="amd64 x86"
+IUSE=""
diff --git a/gentoo/trinity-base/kmoon/kmoon-3.5.13.2.ebuild b/gentoo/trinity-base/kmoon/kmoon-3.5.13.2.ebuild
new file mode 100644
index 000000000..99b68b41a
--- /dev/null
+++ b/gentoo/trinity-base/kmoon/kmoon-3.5.13.2.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdetoys"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity moon phase display"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
diff --git a/gentoo/trinity-base/kmoon/kmoon-9999.ebuild b/gentoo/trinity-base/kmoon/kmoon-9999.ebuild
new file mode 100644
index 000000000..839933c23
--- /dev/null
+++ b/gentoo/trinity-base/kmoon/kmoon-9999.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdetoys"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity moon phase display"
+KEYWORDS=
+IUSE=""
diff --git a/gentoo/trinity-base/kmoon/metadata.xml b/gentoo/trinity-base/kmoon/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kmoon/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kmrml/Manifest b/gentoo/trinity-base/kmrml/Manifest
new file mode 100644
index 000000000..f0ba54e9a
--- /dev/null
+++ b/gentoo/trinity-base/kmrml/Manifest
@@ -0,0 +1 @@
+DIST kdegraphics-3.5.13.1.tar.gz 7526074 SHA256 19bd36e261bb6c5d2c9c1eba5f736c642b48422d917d44e576835f7ebb44906b SHA512 693e5ad70dbb00c587e588acfb81fc9475c3a4dbc86f41d6053c0584c533349a7564e34b870cb7bbc57361ac539da6f7d7f1b002ac3cfe8b0201db3eeb9147dd WHIRLPOOL fd2c46c517b3a0293880eaf35967295485555b936d0f1e80e0f2c261a1164cfcc5c4b2d943a12c073914d33b59974cc2dd92a78414614caa10f46dd048d518b4
diff --git a/gentoo/trinity-base/kmrml/kmrml-3.5.13.1.ebuild b/gentoo/trinity-base/kmrml/kmrml-3.5.13.1.ebuild
new file mode 100644
index 000000000..1e7afcf9f
--- /dev/null
+++ b/gentoo/trinity-base/kmrml/kmrml-3.5.13.1.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdegraphics"
+
+inherit trinity-meta
+
+DESCRIPTION="KIO and konqueror plugins for MRML - an image indexing service"
+KEYWORDS="x86 amd64"
+IUSE=""
diff --git a/gentoo/trinity-base/kmrml/kmrml-9999.ebuild b/gentoo/trinity-base/kmrml/kmrml-9999.ebuild
new file mode 100644
index 000000000..ea7c47f34
--- /dev/null
+++ b/gentoo/trinity-base/kmrml/kmrml-9999.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdegraphics"
+
+inherit trinity-meta
+
+DESCRIPTION="KIO and konqueror plugins for MRML - an image indexing service"
+KEYWORDS=
+IUSE=""
diff --git a/gentoo/trinity-base/kmrml/metadata.xml b/gentoo/trinity-base/kmrml/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kmrml/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/knetattach/Manifest b/gentoo/trinity-base/knetattach/Manifest
new file mode 100644
index 000000000..381340c4b
--- /dev/null
+++ b/gentoo/trinity-base/knetattach/Manifest
@@ -0,0 +1,2 @@
+DIST kdebase-3.5.13.1.tar.gz 29403228 SHA256 ddd4bd4b508ad027b9d1af2701c6ba64bfc9f8f1d32099e6dd5e7866714f759e SHA512 e1aac19c941a5f2b43a57928fdb43e5ebd646f49c60911d9d317550df96642870792c4e77ecd06e123244e2425ccd4bcb00f0a21011ba7e651d7fcf4553e79cf WHIRLPOOL 931debbf6a65c280221025dcbc02cbb3387b66eb72eddd28a510ee8f97075cd2cc96535dde25d0a32280c399e4a868e9c027772f5d28e7e79b7c1a9080c58034
+DIST kdebase-trinity-3.5.13.2.tar.xz 25890636 SHA256 b9d552226daff64437dfb9699669b95dd7ebc2ca7c43755ba71c10cc6c9ed789 SHA512 df545d44c7d4550d1d77ff6504572b622853c2b8d80062b1aee1a5bdca19f0e708cde35cff54cf2d5098f06a41bde0c89522a3958dea9bb18205dea87c11b797 WHIRLPOOL 79144273bc7985c59a593a3394b12a2053532d2c4c890ce96adad21f6de0413baf3c6270d6d06173ec4546b20d401aa0cc81603d01b8ee41dbdefc825b39b2b1
diff --git a/gentoo/trinity-base/knetattach/files/shared b/gentoo/trinity-base/knetattach/files/shared
new file mode 120000
index 000000000..ffc286806
--- /dev/null
+++ b/gentoo/trinity-base/knetattach/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files \ No newline at end of file
diff --git a/gentoo/trinity-base/knetattach/knetattach-3.5.13.1.ebuild b/gentoo/trinity-base/knetattach/knetattach-3.5.13.1.ebuild
new file mode 100644
index 000000000..566925f22
--- /dev/null
+++ b/gentoo/trinity-base/knetattach/knetattach-3.5.13.1.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity network wizard"
+KEYWORDS="x86 amd64"
+IUSE=""
diff --git a/gentoo/trinity-base/knetattach/knetattach-3.5.13.2.ebuild b/gentoo/trinity-base/knetattach/knetattach-3.5.13.2.ebuild
new file mode 100644
index 000000000..403e2d6d5
--- /dev/null
+++ b/gentoo/trinity-base/knetattach/knetattach-3.5.13.2.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity network wizard"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
diff --git a/gentoo/trinity-base/knetattach/knetattach-9999.ebuild b/gentoo/trinity-base/knetattach/knetattach-9999.ebuild
new file mode 100644
index 000000000..e58858984
--- /dev/null
+++ b/gentoo/trinity-base/knetattach/knetattach-9999.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity network wizard"
+KEYWORDS=
+IUSE=""
diff --git a/gentoo/trinity-base/knetattach/metadata.xml b/gentoo/trinity-base/knetattach/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/knetattach/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/knewsticker-scripts/knewsticker-scripts-9999.ebuild b/gentoo/trinity-base/knewsticker-scripts/knewsticker-scripts-9999.ebuild
new file mode 100644
index 000000000..c3bf4f739
--- /dev/null
+++ b/gentoo/trinity-base/knewsticker-scripts/knewsticker-scripts-9999.ebuild
@@ -0,0 +1,13 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdeaddons"
+
+inherit trinity-meta
+
+DESCRIPTION="Kicker applet - RSS news ticker"
+KEYWORDS=""
+IUSE+=""
+DEPEND=">=trinity-base/knewsticker-${PV}:${SLOT}"
+RDEPEND="${DEPEND}"
diff --git a/gentoo/trinity-base/knewsticker-scripts/metadata.xml b/gentoo/trinity-base/knewsticker-scripts/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/knewsticker-scripts/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/knewsticker/Manifest b/gentoo/trinity-base/knewsticker/Manifest
new file mode 100644
index 000000000..1d49700dc
--- /dev/null
+++ b/gentoo/trinity-base/knewsticker/Manifest
@@ -0,0 +1 @@
+DIST kdenetwork-3.5.13.1.tar.gz 8794225 SHA256 21e69e8cb2550561c26913a5cccdc376115f50cffd43f9a94f7a660a303f46f9 SHA512 b3189a9f5e9cddd130b24a82b95ef90db1ec3c7afa280a46101ba7cbf6f9d92f60a536401f648a96459ba87f70ede5f7ae4affe894515a8e858b40ee79cb1b69 WHIRLPOOL de678ab30e3aa8dc3068c895fd000fdab1bc046e272273bf44196a198210efab82ddde3c5e0ffaa863061e9c56e3a8a68ca2f8f03cd77136755f66688f878c65
diff --git a/gentoo/trinity-base/knewsticker/files/knewsticker-a2b3834-fix-various-cmake-build-issues.patch b/gentoo/trinity-base/knewsticker/files/knewsticker-a2b3834-fix-various-cmake-build-issues.patch
new file mode 100644
index 000000000..44c044b0e
--- /dev/null
+++ b/gentoo/trinity-base/knewsticker/files/knewsticker-a2b3834-fix-various-cmake-build-issues.patch
@@ -0,0 +1,16 @@
+diff --git a/knewsticker/kntsrcfilepropsdlg/CMakeLists.txt b/knewsticker/kntsrcfilepropsdlg/CMakeLists.txt
+index f6d02b0..f6871ed 100644
+--- a/knewsticker/kntsrcfilepropsdlg/CMakeLists.txt
++++ b/knewsticker/kntsrcfilepropsdlg/CMakeLists.txt
+@@ -32,9 +32,9 @@ install( FILES
+ DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+-##### kntsrcfilepropsdlg (module) ###############
++##### libkntsrcfilepropsdlg (module) ###############
+
+-tde_add_kpart( kntsrcfilepropsdlg AUTOMOC
++tde_add_kpart( libkntsrcfilepropsdlg AUTOMOC
+ SOURCES
+ kntsrcfilepropsdlg.cpp kntsrcfilepropsdlgwidget.ui
+ LINK knewstickercommon-static rss-shared
diff --git a/gentoo/trinity-base/knewsticker/knewsticker-3.5.13.1.ebuild b/gentoo/trinity-base/knewsticker/knewsticker-3.5.13.1.ebuild
new file mode 100644
index 000000000..1ca689430
--- /dev/null
+++ b/gentoo/trinity-base/knewsticker/knewsticker-3.5.13.1.ebuild
@@ -0,0 +1,17 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdenetwork"
+
+inherit trinity-meta
+
+DESCRIPTION="kicker plugin: rss news ticker"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND=">=trinity-base/librss-${PV}:${SLOT}"
+RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}/knewsticker-a2b3834-fix-various-cmake-build-issues.patch" )
+TSM_EXTRACT_ALSO="librss/"
diff --git a/gentoo/trinity-base/knewsticker/knewsticker-9999.ebuild b/gentoo/trinity-base/knewsticker/knewsticker-9999.ebuild
new file mode 100644
index 000000000..f170f6c4f
--- /dev/null
+++ b/gentoo/trinity-base/knewsticker/knewsticker-9999.ebuild
@@ -0,0 +1,14 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdenetwork"
+
+inherit trinity-meta
+
+DESCRIPTION="kicker plugin: rss news ticker"
+KEYWORDS=
+IUSE=""
+
+DEPEND=">=trinity-base/librss-${PV}:${SLOT}"
+RDEPEND="${DEPEND}"
diff --git a/gentoo/trinity-base/knewsticker/metadata.xml b/gentoo/trinity-base/knewsticker/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/knewsticker/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/knotes/Manifest b/gentoo/trinity-base/knotes/Manifest
new file mode 100644
index 000000000..d6ce26a13
--- /dev/null
+++ b/gentoo/trinity-base/knotes/Manifest
@@ -0,0 +1 @@
+DIST kdepim-trinity-3.5.13.2.tar.xz 10148724 SHA256 2cbd61e28322e4c7d67ffb16ac59329b3f15ba1a4485095994b9bce6786df7c4 SHA512 a84319183813dc78dc97397c8c3871faa3961b458eda8107525b8b9c6789d13aedd8e3c7cb0706c4ca8dd63f69ff67de02716219c8af44ebf96d484d820eb2bf WHIRLPOOL 907d9d86f1b0094b915989ca7f0feb4f67ac1b238a4c6d176ab1ef9164eff78778b2714ebedeb40de28536a8384b39ec7e637f1bb6911cccb40f7d8663811edb
diff --git a/gentoo/trinity-base/knotes/knotes-3.5.13.2.ebuild b/gentoo/trinity-base/knotes/knotes-3.5.13.2.ebuild
new file mode 100644
index 000000000..b5cb8531b
--- /dev/null
+++ b/gentoo/trinity-base/knotes/knotes-3.5.13.2.ebuild
@@ -0,0 +1,18 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdepim"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity Notes application"
+KEYWORDS="~amd64 ~x86"
+IUSE+=""
+
+COMMON_DEPEND=">=trinity-base/libkcal-${PV}:${SLOT}
+ >=trinity-base/libkdepim-${PV}:${SLOT}"
+DEPEND+=" $COMMON_DEPEND"
+RDEPEND+=" $COMMON_DEPEND"
+
+TSM_EXTRACT_ALSO="libkdepim/"
diff --git a/gentoo/trinity-base/knotes/knotes-9999.ebuild b/gentoo/trinity-base/knotes/knotes-9999.ebuild
new file mode 100644
index 000000000..1f1e939d5
--- /dev/null
+++ b/gentoo/trinity-base/knotes/knotes-9999.ebuild
@@ -0,0 +1,18 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdepim"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity Notes application"
+KEYWORDS=""
+IUSE+=""
+
+COMMON_DEPEND=">=trinity-base/libkcal-${PV}:${SLOT}
+ >=trinity-base/libtdepim-${PV}:${SLOT}"
+DEPEND+=" $COMMON_DEPEND"
+RDEPEND+=" $COMMON_DEPEND"
+
+TSM_EXTRACT_ALSO="libtdepim/"
diff --git a/gentoo/trinity-base/knotes/metadata.xml b/gentoo/trinity-base/knotes/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/knotes/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kodo/Manifest b/gentoo/trinity-base/kodo/Manifest
new file mode 100644
index 000000000..23ad50106
--- /dev/null
+++ b/gentoo/trinity-base/kodo/Manifest
@@ -0,0 +1,2 @@
+DIST kdetoys-3.5.13.1.tar.gz 3037255 SHA256 41e4224bcf816e52877b17d2dcdc86d94e8f304fee2d3fb35b97921544eafd9d SHA512 e7cd7943004e5d1ec83c0fe484fab82f2cdd5f5d39ee77db419938f023cd3c42ba0b257d0ddc783de7bd528c90195821d810babfa193c60856437593c24ce879 WHIRLPOOL 8d482537f972a24b1cef9ad789edd314517f4e3a6b37056f47d92292c8c30e70def24e99efc552b4504503e2224e1209ae946ff34ac94feaf128c038c54f010d
+DIST kdetoys-trinity-3.5.13.2.tar.xz 2757260 SHA256 a0533ceb6fb103600eb33ef3136d40f84ec826e24e0b95cc45e68ef73a5232f6 SHA512 eb67a70d75a473f885db8993f5eebd3480e68e43e4de60240fde411696ed8b895029505a5125fe51a41d6ccb583ba50c4c67465d770f14f9a1c1533281154f78 WHIRLPOOL d79f58085d2af17453fc50c621ea6fe6909d476cf5f0a6b6ccf51ef69eed0ba073091f587439eb5afd644e0286dfe2ee86ccd903346d3060c3fe90299511018a
diff --git a/gentoo/trinity-base/kodo/files/shared b/gentoo/trinity-base/kodo/files/shared
new file mode 120000
index 000000000..af62be31d
--- /dev/null
+++ b/gentoo/trinity-base/kodo/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files/ \ No newline at end of file
diff --git a/gentoo/trinity-base/kodo/kodo-3.5.13.1.ebuild b/gentoo/trinity-base/kodo/kodo-3.5.13.1.ebuild
new file mode 100644
index 000000000..ed22adf09
--- /dev/null
+++ b/gentoo/trinity-base/kodo/kodo-3.5.13.1.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdetoys"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity: measure the desktop mileage of your mouse pointer"
+KEYWORDS="amd64 x86"
+IUSE=""
diff --git a/gentoo/trinity-base/kodo/kodo-3.5.13.2.ebuild b/gentoo/trinity-base/kodo/kodo-3.5.13.2.ebuild
new file mode 100644
index 000000000..f25fd9998
--- /dev/null
+++ b/gentoo/trinity-base/kodo/kodo-3.5.13.2.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdetoys"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity: measure the desktop mileage of your mouse pointer"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
diff --git a/gentoo/trinity-base/kodo/kodo-9999.ebuild b/gentoo/trinity-base/kodo/kodo-9999.ebuild
new file mode 100644
index 000000000..da8961185
--- /dev/null
+++ b/gentoo/trinity-base/kodo/kodo-9999.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdetoys"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity: measure the desktop mileage of your mouse pointer"
+KEYWORDS=
+IUSE=""
diff --git a/gentoo/trinity-base/kodo/metadata.xml b/gentoo/trinity-base/kodo/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kodo/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kolourpaint/Manifest b/gentoo/trinity-base/kolourpaint/Manifest
new file mode 100644
index 000000000..f0ba54e9a
--- /dev/null
+++ b/gentoo/trinity-base/kolourpaint/Manifest
@@ -0,0 +1 @@
+DIST kdegraphics-3.5.13.1.tar.gz 7526074 SHA256 19bd36e261bb6c5d2c9c1eba5f736c642b48422d917d44e576835f7ebb44906b SHA512 693e5ad70dbb00c587e588acfb81fc9475c3a4dbc86f41d6053c0584c533349a7564e34b870cb7bbc57361ac539da6f7d7f1b002ac3cfe8b0201db3eeb9147dd WHIRLPOOL fd2c46c517b3a0293880eaf35967295485555b936d0f1e80e0f2c261a1164cfcc5c4b2d943a12c073914d33b59974cc2dd92a78414614caa10f46dd048d518b4
diff --git a/gentoo/trinity-base/kolourpaint/kolourpaint-3.5.13.1.ebuild b/gentoo/trinity-base/kolourpaint/kolourpaint-3.5.13.1.ebuild
new file mode 100644
index 000000000..f0e65b377
--- /dev/null
+++ b/gentoo/trinity-base/kolourpaint/kolourpaint-3.5.13.1.ebuild
@@ -0,0 +1,12 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdegraphics"
+
+inherit trinity-meta
+
+DESCRIPTION="Paint Program for Trinity"
+KEYWORDS="x86 amd64"
+IUSE=""
+LICENSE="BSD"
diff --git a/gentoo/trinity-base/kolourpaint/kolourpaint-9999.ebuild b/gentoo/trinity-base/kolourpaint/kolourpaint-9999.ebuild
new file mode 100644
index 000000000..6e275e78f
--- /dev/null
+++ b/gentoo/trinity-base/kolourpaint/kolourpaint-9999.ebuild
@@ -0,0 +1,12 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdegraphics"
+
+inherit trinity-meta
+
+DESCRIPTION="Paint Program for Trinity"
+KEYWORDS=
+IUSE=""
+LICENSE="BSD"
diff --git a/gentoo/trinity-base/kolourpaint/metadata.xml b/gentoo/trinity-base/kolourpaint/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kolourpaint/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/konq-plugins/konq-plugins-9999.ebuild b/gentoo/trinity-base/konq-plugins/konq-plugins-9999.ebuild
new file mode 100644
index 000000000..6477b2885
--- /dev/null
+++ b/gentoo/trinity-base/konq-plugins/konq-plugins-9999.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdeaddons"
+
+inherit trinity-meta
+
+DESCRIPTION="Various plugins for Konqueror."
+KEYWORDS=""
+IUSE+="arts"
+DEPEND=">=trinity-base/konqueror-${PV}:${SLOT}
+ arts? ( >=trinity-base/arts-${PV}:${SLOT} )
+"
+RDEPEND="${DEPEND}"
+
+src_configure() {
+ mycmakeargs=(
+ "-DWITH_ARTS=$(usex arts)"
+ )
+
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-base/konq-plugins/metadata.xml b/gentoo/trinity-base/konq-plugins/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/konq-plugins/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/konqueror/Manifest b/gentoo/trinity-base/konqueror/Manifest
new file mode 100644
index 000000000..381340c4b
--- /dev/null
+++ b/gentoo/trinity-base/konqueror/Manifest
@@ -0,0 +1,2 @@
+DIST kdebase-3.5.13.1.tar.gz 29403228 SHA256 ddd4bd4b508ad027b9d1af2701c6ba64bfc9f8f1d32099e6dd5e7866714f759e SHA512 e1aac19c941a5f2b43a57928fdb43e5ebd646f49c60911d9d317550df96642870792c4e77ecd06e123244e2425ccd4bcb00f0a21011ba7e651d7fcf4553e79cf WHIRLPOOL 931debbf6a65c280221025dcbc02cbb3387b66eb72eddd28a510ee8f97075cd2cc96535dde25d0a32280c399e4a868e9c027772f5d28e7e79b7c1a9080c58034
+DIST kdebase-trinity-3.5.13.2.tar.xz 25890636 SHA256 b9d552226daff64437dfb9699669b95dd7ebc2ca7c43755ba71c10cc6c9ed789 SHA512 df545d44c7d4550d1d77ff6504572b622853c2b8d80062b1aee1a5bdca19f0e708cde35cff54cf2d5098f06a41bde0c89522a3958dea9bb18205dea87c11b797 WHIRLPOOL 79144273bc7985c59a593a3394b12a2053532d2c4c890ce96adad21f6de0413baf3c6270d6d06173ec4546b20d401aa0cc81603d01b8ee41dbdefc825b39b2b1
diff --git a/gentoo/trinity-base/konqueror/files/shared b/gentoo/trinity-base/konqueror/files/shared
new file mode 120000
index 000000000..ffc286806
--- /dev/null
+++ b/gentoo/trinity-base/konqueror/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files \ No newline at end of file
diff --git a/gentoo/trinity-base/konqueror/konqueror-3.5.13.1.ebuild b/gentoo/trinity-base/konqueror/konqueror-3.5.13.1.ebuild
new file mode 100644
index 000000000..ed751920e
--- /dev/null
+++ b/gentoo/trinity-base/konqueror/konqueror-3.5.13.1.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity: Web browser, file manager, ..."
+KEYWORDS="x86 amd64"
+IUSE="java"
+# FIXME: support branding USE flag
+
+DEPEND="
+ >=trinity-base/libkonq-${PV}:${SLOT}"
+
+RDEPEND="${DEPEND}
+ >=trinity-base/kcontrol-${PV}:${SLOT}
+ >=trinity-base/kdebase-kioslaves-${PV}:${SLOT}
+ >=trinity-base/kfind-${PV}:${SLOT}
+ java? ( >=virtual/jre-1.4 )"
+
+TSM_EXTRACT_ALSO="kdesktop"
diff --git a/gentoo/trinity-base/konqueror/konqueror-3.5.13.2.ebuild b/gentoo/trinity-base/konqueror/konqueror-3.5.13.2.ebuild
new file mode 100644
index 000000000..a272eb3ad
--- /dev/null
+++ b/gentoo/trinity-base/konqueror/konqueror-3.5.13.2.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity: Web browser, file manager, ..."
+KEYWORDS="~amd64 ~x86"
+IUSE="java"
+# FIXME: support branding USE flag
+
+DEPEND="
+ >=trinity-base/libkonq-${PV}:${SLOT}"
+
+RDEPEND="${DEPEND}
+ >=trinity-base/kcontrol-${PV}:${SLOT}
+ >=trinity-base/kdebase-kioslaves-${PV}:${SLOT}
+ >=trinity-base/kfind-${PV}:${SLOT}
+ java? ( >=virtual/jre-1.4 )"
+
+TSM_EXTRACT_ALSO="kdesktop"
diff --git a/gentoo/trinity-base/konqueror/konqueror-9999.ebuild b/gentoo/trinity-base/konqueror/konqueror-9999.ebuild
new file mode 100644
index 000000000..3a0927961
--- /dev/null
+++ b/gentoo/trinity-base/konqueror/konqueror-9999.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity: Web browser, file manager, ..."
+KEYWORDS=
+IUSE="java"
+# FIXME: support branding USE flag
+
+DEPEND="
+ >=trinity-base/libkonq-${PV}:${SLOT}"
+
+RDEPEND="${DEPEND}
+ >=trinity-base/kcontrol-${PV}:${SLOT}
+ >=trinity-base/tdebase-tdeioslaves-${PV}:${SLOT}
+ >=trinity-base/kfind-${PV}:${SLOT}
+ java? ( >=virtual/jre-1.4 )"
+
+TSM_EXTRACT_ALSO="kdesktop"
diff --git a/gentoo/trinity-base/konqueror/metadata.xml b/gentoo/trinity-base/konqueror/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/konqueror/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/konsole/Manifest b/gentoo/trinity-base/konsole/Manifest
new file mode 100644
index 000000000..381340c4b
--- /dev/null
+++ b/gentoo/trinity-base/konsole/Manifest
@@ -0,0 +1,2 @@
+DIST kdebase-3.5.13.1.tar.gz 29403228 SHA256 ddd4bd4b508ad027b9d1af2701c6ba64bfc9f8f1d32099e6dd5e7866714f759e SHA512 e1aac19c941a5f2b43a57928fdb43e5ebd646f49c60911d9d317550df96642870792c4e77ecd06e123244e2425ccd4bcb00f0a21011ba7e651d7fcf4553e79cf WHIRLPOOL 931debbf6a65c280221025dcbc02cbb3387b66eb72eddd28a510ee8f97075cd2cc96535dde25d0a32280c399e4a868e9c027772f5d28e7e79b7c1a9080c58034
+DIST kdebase-trinity-3.5.13.2.tar.xz 25890636 SHA256 b9d552226daff64437dfb9699669b95dd7ebc2ca7c43755ba71c10cc6c9ed789 SHA512 df545d44c7d4550d1d77ff6504572b622853c2b8d80062b1aee1a5bdca19f0e708cde35cff54cf2d5098f06a41bde0c89522a3958dea9bb18205dea87c11b797 WHIRLPOOL 79144273bc7985c59a593a3394b12a2053532d2c4c890ce96adad21f6de0413baf3c6270d6d06173ec4546b20d401aa0cc81603d01b8ee41dbdefc825b39b2b1
diff --git a/gentoo/trinity-base/konsole/files/shared b/gentoo/trinity-base/konsole/files/shared
new file mode 120000
index 000000000..ffc286806
--- /dev/null
+++ b/gentoo/trinity-base/konsole/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files \ No newline at end of file
diff --git a/gentoo/trinity-base/konsole/konsole-3.5.13.1.ebuild b/gentoo/trinity-base/konsole/konsole-3.5.13.1.ebuild
new file mode 100644
index 000000000..d54e92bec
--- /dev/null
+++ b/gentoo/trinity-base/konsole/konsole-3.5.13.1.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="X terminal for use with Trinity."
+KEYWORDS="x86 amd64"
+IUSE=""
+
+DEPEND="x11-libs/libX11
+ x11-libs/libXrender"
+
+RDEPEND="${DEPEND}
+ x11-apps/bdftopcf
+ >=trinity-base/kcontrol-${PV}:${SLOT}"
+
+src_configure() {
+ mycmakeargs=(
+ -DWITH_XRENDER=ON
+ )
+
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-base/konsole/konsole-3.5.13.2.ebuild b/gentoo/trinity-base/konsole/konsole-3.5.13.2.ebuild
new file mode 100644
index 000000000..b811227f5
--- /dev/null
+++ b/gentoo/trinity-base/konsole/konsole-3.5.13.2.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="X terminal for use with Trinity."
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="x11-libs/libX11
+ x11-libs/libXrender"
+
+RDEPEND="${DEPEND}
+ x11-apps/bdftopcf
+ >=trinity-base/kcontrol-${PV}:${SLOT}"
+
+src_configure() {
+ mycmakeargs=(
+ -DWITH_XRENDER=ON
+ )
+
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-base/konsole/konsole-9999.ebuild b/gentoo/trinity-base/konsole/konsole-9999.ebuild
new file mode 100644
index 000000000..d85c92c8d
--- /dev/null
+++ b/gentoo/trinity-base/konsole/konsole-9999.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="X terminal for use with Trinity."
+KEYWORDS=
+IUSE=""
+
+DEPEND="x11-libs/libX11
+ x11-libs/libXrender"
+
+RDEPEND="${DEPEND}
+ x11-apps/bdftopcf
+ >=trinity-base/kcontrol-${PV}:${SLOT}"
+
+src_configure() {
+ mycmakeargs=(
+ -DWITH_XRENDER=ON
+ )
+
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-base/konsole/metadata.xml b/gentoo/trinity-base/konsole/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/konsole/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kontact/Manifest b/gentoo/trinity-base/kontact/Manifest
new file mode 100644
index 000000000..d6ce26a13
--- /dev/null
+++ b/gentoo/trinity-base/kontact/Manifest
@@ -0,0 +1 @@
+DIST kdepim-trinity-3.5.13.2.tar.xz 10148724 SHA256 2cbd61e28322e4c7d67ffb16ac59329b3f15ba1a4485095994b9bce6786df7c4 SHA512 a84319183813dc78dc97397c8c3871faa3961b458eda8107525b8b9c6789d13aedd8e3c7cb0706c4ca8dd63f69ff67de02716219c8af44ebf96d484d820eb2bf WHIRLPOOL 907d9d86f1b0094b915989ca7f0feb4f67ac1b238a4c6d176ab1ef9164eff78778b2714ebedeb40de28536a8384b39ec7e637f1bb6911cccb40f7d8663811edb
diff --git a/gentoo/trinity-base/kontact/kontact-3.5.13.2.ebuild b/gentoo/trinity-base/kontact/kontact-3.5.13.2.ebuild
new file mode 100644
index 000000000..b44c610e8
--- /dev/null
+++ b/gentoo/trinity-base/kontact/kontact-3.5.13.2.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdepim"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity personal information manager"
+KEYWORDS="~amd64 ~x86"
+IUSE+=""
+COMMON_DEPEND=">=trinity-base/libkdepim-${PV}:${SLOT}
+ >=trinity-base/libkpimidentities-${PV}:${SLOT}
+ >=trinity-base/libkholidays-${PV}:${SLOT}
+ >=trinity-base/knotes-${PV}:${SLOT}"
+
+DEPEND+=" $COMMON_DEPEND"
+RDEPEND+=" $COMMON_DEPEND"
+
+TSM_EXTRACT_ALSO="libkdepim/ libkdenetwork/"
diff --git a/gentoo/trinity-base/kontact/kontact-9999.ebuild b/gentoo/trinity-base/kontact/kontact-9999.ebuild
new file mode 100644
index 000000000..05f536736
--- /dev/null
+++ b/gentoo/trinity-base/kontact/kontact-9999.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdepim"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity personal information manager"
+KEYWORDS=""
+IUSE+=""
+COMMON_DEPEND=">=trinity-base/libtdepim-${PV}:${SLOT}
+ >=trinity-base/libkpimidentities-${PV}:${SLOT}
+ >=trinity-base/libkholidays-${PV}:${SLOT}
+ >=trinity-base/knotes-${PV}:${SLOT}"
+
+DEPEND+=" $COMMON_DEPEND"
+RDEPEND+=" $COMMON_DEPEND"
+
+TSM_EXTRACT_ALSO="libtdepim/ libtdenetwork/"
diff --git a/gentoo/trinity-base/kontact/metadata.xml b/gentoo/trinity-base/kontact/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kontact/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kooka/Manifest b/gentoo/trinity-base/kooka/Manifest
new file mode 100644
index 000000000..f0ba54e9a
--- /dev/null
+++ b/gentoo/trinity-base/kooka/Manifest
@@ -0,0 +1 @@
+DIST kdegraphics-3.5.13.1.tar.gz 7526074 SHA256 19bd36e261bb6c5d2c9c1eba5f736c642b48422d917d44e576835f7ebb44906b SHA512 693e5ad70dbb00c587e588acfb81fc9475c3a4dbc86f41d6053c0584c533349a7564e34b870cb7bbc57361ac539da6f7d7f1b002ac3cfe8b0201db3eeb9147dd WHIRLPOOL fd2c46c517b3a0293880eaf35967295485555b936d0f1e80e0f2c261a1164cfcc5c4b2d943a12c073914d33b59974cc2dd92a78414614caa10f46dd048d518b4
diff --git a/gentoo/trinity-base/kooka/kooka-3.5.13.1.ebuild b/gentoo/trinity-base/kooka/kooka-3.5.13.1.ebuild
new file mode 100644
index 000000000..7e368b43c
--- /dev/null
+++ b/gentoo/trinity-base/kooka/kooka-3.5.13.1.ebuild
@@ -0,0 +1,18 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdegraphics"
+
+inherit trinity-meta
+
+DESCRIPTION="Kooka is a Trinity application which provides access to scanner hardware"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="
+ >=trinity-base/libkscan-${PV}:${SLOT}
+ media-libs/tiff:="
+RDEPEND="${DEPEND}"
+
+TSM_EXTRACT_ALSO="libkscan"
diff --git a/gentoo/trinity-base/kooka/kooka-9999.ebuild b/gentoo/trinity-base/kooka/kooka-9999.ebuild
new file mode 100644
index 000000000..4d582bb7b
--- /dev/null
+++ b/gentoo/trinity-base/kooka/kooka-9999.ebuild
@@ -0,0 +1,18 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdegraphics"
+
+inherit trinity-meta
+
+DESCRIPTION="Kooka is a Trinity application which provides access to scanner hardware"
+KEYWORDS=
+IUSE=""
+
+DEPEND="
+ >=trinity-base/libkscan-${PV}:${SLOT}
+ media-libs/tiff:="
+RDEPEND="${DEPEND}"
+
+TSM_EXTRACT_ALSO="libkscan"
diff --git a/gentoo/trinity-base/kooka/metadata.xml b/gentoo/trinity-base/kooka/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kooka/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kopete/Manifest b/gentoo/trinity-base/kopete/Manifest
new file mode 100644
index 000000000..1d49700dc
--- /dev/null
+++ b/gentoo/trinity-base/kopete/Manifest
@@ -0,0 +1 @@
+DIST kdenetwork-3.5.13.1.tar.gz 8794225 SHA256 21e69e8cb2550561c26913a5cccdc376115f50cffd43f9a94f7a660a303f46f9 SHA512 b3189a9f5e9cddd130b24a82b95ef90db1ec3c7afa280a46101ba7cbf6f9d92f60a536401f648a96459ba87f70ede5f7ae4affe894515a8e858b40ee79cb1b69 WHIRLPOOL de678ab30e3aa8dc3068c895fd000fdab1bc046e272273bf44196a198210efab82ddde3c5e0ffaa863061e9c56e3a8a68ca2f8f03cd77136755f66688f878c65
diff --git a/gentoo/trinity-base/kopete/files/kopete-3.5.13.1-patches/0001-f61f5c1-deleted-forgotten-files-for-commit-6e76ea67.patch b/gentoo/trinity-base/kopete/files/kopete-3.5.13.1-patches/0001-f61f5c1-deleted-forgotten-files-for-commit-6e76ea67.patch
new file mode 100644
index 000000000..a5a7fb59a
--- /dev/null
+++ b/gentoo/trinity-base/kopete/files/kopete-3.5.13.1-patches/0001-f61f5c1-deleted-forgotten-files-for-commit-6e76ea67.patch
@@ -0,0 +1,6 @@
+diff --git a/kopete/styles/Gaim/Contents/Resources/Footer.html b/kopete/styles/Gaim/Contents/Resources/Footer.html
+deleted file mode 100644
+index e69de29..0000000
+diff --git a/kopete/styles/Gaim/Contents/Resources/Header.html b/kopete/styles/Gaim/Contents/Resources/Header.html
+deleted file mode 100644
+index e69de29..0000000
diff --git a/gentoo/trinity-base/kopete/files/kopete-3.5.13.1-patches/0002-f604b5b-fix-build-errors.patch b/gentoo/trinity-base/kopete/files/kopete-3.5.13.1-patches/0002-f604b5b-fix-build-errors.patch
new file mode 100644
index 000000000..90b116c32
--- /dev/null
+++ b/gentoo/trinity-base/kopete/files/kopete-3.5.13.1-patches/0002-f604b5b-fix-build-errors.patch
@@ -0,0 +1,51 @@
+diff --git a/kopete/protocols/jabber/kioslave/CMakeLists.txt b/kopete/protocols/jabber/kioslave/CMakeLists.txt
+index 6c691ae..9539457 100644
+--- a/kopete/protocols/jabber/kioslave/CMakeLists.txt
++++ b/kopete/protocols/jabber/kioslave/CMakeLists.txt
+@@ -37,6 +37,6 @@ tde_add_kpart( kio_jabberdisco AUTOMOC
+ LINK
+ jabberclient-static idn
+ iris_xmpp_core-static iris_xmpp_im-static iris_jabber-static iris-static
+- qca-static cutestuff_network-static cutestuff_util-static kio-shared idn
++ qca-static cutestuff_network-static cutestuff_util-static kio-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+ )
+diff --git a/kopete/protocols/sms/services/smsclient.cpp b/kopete/protocols/sms/services/smsclient.cpp
+index 9fb5a92..984e843 100644
+--- a/kopete/protocols/sms/services/smsclient.cpp
++++ b/kopete/protocols/sms/services/smsclient.cpp
+@@ -59,7 +59,7 @@ void SMSClient::send(const Kopete::Message& msg)
+ m_msg = msg;
+
+ KConfigGroup* c = m_account->configGroup();
+- TQString provider = c->readEntry(TQString("%1:%2").arg("SMSClient").arg("ProviderName");
++ TQString provider = c->readEntry(TQString("%1:%2").arg("SMSClient").arg("ProviderName"));
+
+ if (provider.isNull())
+ {
+@@ -67,7 +67,7 @@ void SMSClient::send(const Kopete::Message& msg)
+ return;
+ }
+
+- TQString programName = c->readEntry(TQString("%1:%2").arg("SMSClient").arg("ProgramName");
++ TQString programName = c->readEntry(TQString("%1:%2").arg("SMSClient").arg("ProgramName"));
+ if (programName.isNull())
+ programName = "/usr/bin/sms_client";
+
+@@ -97,14 +97,14 @@ TQWidget* SMSClient::configureWidget(TQWidget* parent)
+ prefWidget->configDir->setMode(KFile::Directory);
+ TQString configDir;
+ if (m_account)
+- configDir = m_account->configGroup()->readEntry(TQString("%1:%2").arg("SMSClient").arg("ConfigDir");
++ configDir = m_account->configGroup()->readEntry(TQString("%1:%2").arg("SMSClient").arg("ConfigDir"));
+ if (configDir.isNull())
+ configDir = "/etc/sms";
+ prefWidget->configDir->setURL(configDir);
+
+ TQString programName;
+ if (m_account)
+- programName = m_account->configGroup()->readEntry(TQString("%1:%2").arg("SMSClient").arg("ProgramName");
++ programName = m_account->configGroup()->readEntry(TQString("%1:%2").arg("SMSClient").arg("ProgramName"));
+ if (programName.isNull())
+ programName = "/usr/bin/sms_client";
+ prefWidget->program->setURL(programName);
diff --git a/gentoo/trinity-base/kopete/files/kopete-3.5.13.1-patches/0003-e96ccab-added-xmms-support-to-cmake.patch b/gentoo/trinity-base/kopete/files/kopete-3.5.13.1-patches/0003-e96ccab-added-xmms-support-to-cmake.patch
new file mode 100644
index 000000000..3fb2a2eaf
--- /dev/null
+++ b/gentoo/trinity-base/kopete/files/kopete-3.5.13.1-patches/0003-e96ccab-added-xmms-support-to-cmake.patch
@@ -0,0 +1,42 @@
+diff --git a/kopete/plugins/nowlistening/CMakeLists.txt b/kopete/plugins/nowlistening/CMakeLists.txt
+index b1b6b19..a236a7e 100644
+--- a/kopete/plugins/nowlistening/CMakeLists.txt
++++ b/kopete/plugins/nowlistening/CMakeLists.txt
+@@ -9,6 +9,8 @@
+ #
+ #################################################
+
++include( ConfigureChecks.cmake )
++
+ include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+@@ -16,6 +18,7 @@ include_directories(
+ ${CMAKE_SOURCE_DIR}/kopete/libkopete/ui
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
++ ${XMMS_INCLUDES}
+ )
+
+ link_directories(
+@@ -38,7 +41,7 @@ tde_add_kpart( kopete_nowlistening AUTOMOC
+ nowlisteningconfig.kcfgc nowlisteningplugin.cpp nlkscd.cpp
+ nlnoatun.cpp nlxmms.cpp nowlisteningguiclient.cpp nljuk.cpp
+ nlamarok.cpp nlkaffeine.cpp
+- LINK kopete-shared
++ LINK kopete-shared ${XMMS_LIBS}
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+ )
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 2601743..86199c1 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -48,6 +48,7 @@ option( WITH_JINGLE "Enable jingle support (kopete)" OFF )
+ option( WITH_SPEEX "Enable speex support (for jingle)" OFF )
+ option( WITH_WEBCAM "Enable webcam support (kopete/msn)" OFF )
+ option( WITH_GSM "Enable GSM SMS support (kopete/sms)" OFF )
++option( WITH_XMMS "Enable XMMS support (kopete/nowlistening)" OFF )
+ option( WITH_ARTS "Enable aRts support" OFF )
+ option( WITH_SLP "Enable OpenSLP support (krdc, krfb)" OFF )
+
diff --git a/gentoo/trinity-base/kopete/files/kopete-3.5.13.1-patches/0004-e0fdfd9-fix-unwanted-rename-icon-with-automake.patch b/gentoo/trinity-base/kopete/files/kopete-3.5.13.1-patches/0004-e0fdfd9-fix-unwanted-rename-icon-with-automake.patch
new file mode 100644
index 000000000..88346c853
--- /dev/null
+++ b/gentoo/trinity-base/kopete/files/kopete-3.5.13.1-patches/0004-e0fdfd9-fix-unwanted-rename-icon-with-automake.patch
@@ -0,0 +1,13 @@
+diff --git a/kopete/icons/Makefile.am b/kopete/icons/Makefile.am
+index a4b97f0..f3e403d 100644
+--- a/kopete/icons/Makefile.am
++++ b/kopete/icons/Makefile.am
+@@ -1 +1,8 @@
+ KDE_ICON=AUTO
++
++install-data-local:
++ if test -e $(DESTDIR)$(kde_icondir)/crystalsvg/16x16/apps/jabber_gateway_http/ws.png; then \
++ mv $(DESTDIR)$(kde_icondir)/crystalsvg/16x16/apps/jabber_gateway_http/ws.png \
++ $(DESTDIR)$(kde_icondir)/crystalsvg/16x16/apps/jabber_gateway_http-ws.png; \
++ rmdir $(DESTDIR)$(kde_icondir)/crystalsvg/16x16/apps/jabber_gateway_http; \
++ fi
diff --git a/gentoo/trinity-base/kopete/files/kopete-3.5.13.1-patches/0005-df8b5e2-fix-inadvertent-tq-changes.patch b/gentoo/trinity-base/kopete/files/kopete-3.5.13.1-patches/0005-df8b5e2-fix-inadvertent-tq-changes.patch
new file mode 100644
index 000000000..968ffaf45
--- /dev/null
+++ b/gentoo/trinity-base/kopete/files/kopete-3.5.13.1-patches/0005-df8b5e2-fix-inadvertent-tq-changes.patch
@@ -0,0 +1,180 @@
+diff --git a/kopete/libkopete/tests/create_test.rb b/kopete/libkopete/tests/create_test.rb
+index ba6e0c2..7951bf3 100755
+--- a/kopete/libkopete/tests/create_test.rb
++++ b/kopete/libkopete/tests/create_test.rb
+@@ -37,7 +37,7 @@ fileCpp.gsub!(/template/, className.downcase.gsub(/::/,""))
+ fileCpp.gsub!(/Template/, className.gsub(/::/,""))
+ fileCpp.gsub!(/some requirement/, className + " class.")
+
+-makefileAm = "kunittest_template_test_la_SOURCES = template_test.cpp\nkunittest_template_test_la_LIBADD = -lkunittest ../tqmock/libkopete_tqmock.la\nkunittest_template_test_la_LDFLAGS = -module $(KDE_CHECK_PLUGIN) $(all_libraries)\n"
++makefileAm = "kunittest_template_test_la_SOURCES = template_test.cpp\nkunittest_template_test_la_LIBADD = -lkunittest ../mock/libkopete_mock.la\nkunittest_template_test_la_LDFLAGS = -module $(KDE_CHECK_PLUGIN) $(all_libraries)\n"
+ makefileAm.gsub!(/template/, className.downcase.gsub(/::/,""))
+
+ hNew = hBase.gsub(/template/, className.downcase.gsub(/::/,""))
+diff --git a/kopete/libkopete/tests/kopetemessage_test.cpp b/kopete/libkopete/tests/kopetemessage_test.cpp
+index bfd9e39..57908e4 100644
+--- a/kopete/libkopete/tests/kopetemessage_test.cpp
++++ b/kopete/libkopete/tests/kopetemessage_test.cpp
+@@ -29,11 +29,11 @@
+ #include <kdebug.h>
+
+ #include "kopetemessage_test.h"
+-#include "kopeteaccount_tqmock.h"
+-#include "kopeteprotocol_tqmock.h"
+-#include "kopetecontact_tqmock.h"
+-#include "kopetemetacontact_tqmock.h"
+-#include "kopeteaccount_tqmock.h"
++#include "kopeteaccount_mock.h"
++#include "kopeteprotocol_mock.h"
++#include "kopetecontact_mock.h"
++#include "kopetemetacontact_mock.h"
++#include "kopeteaccount_mock.h"
+
+ using namespace KUnitTest;
+
+diff --git a/kopete/libkopete/tests/mock/kopeteaccount_mock.cpp b/kopete/libkopete/tests/mock/kopeteaccount_mock.cpp
+index 8beb6e8..7d46fc3 100644
+--- a/kopete/libkopete/tests/mock/kopeteaccount_mock.cpp
++++ b/kopete/libkopete/tests/mock/kopeteaccount_mock.cpp
+@@ -1,5 +1,5 @@
+ /*
+- Account tqmock object class
++ Account mock object class
+
+ Copyright (c) 2005 by Duncan Mac-Vicar Prett <duncan@kde.org>
+
+@@ -15,9 +15,9 @@
+ *************************************************************************
+ */
+
+-#include "kopeteaccount_tqmock.h"
++#include "kopeteaccount_mock.h"
+ #include "kopetemetacontact.h"
+-#include "kopeteaccount_tqmock.h"
++#include "kopeteaccount_mock.h"
+
+ namespace Kopete
+ {
+diff --git a/kopete/libkopete/tests/mock/kopeteaccount_mock.h b/kopete/libkopete/tests/mock/kopeteaccount_mock.h
+index be4f281..039632f 100644
+--- a/kopete/libkopete/tests/mock/kopeteaccount_mock.h
++++ b/kopete/libkopete/tests/mock/kopeteaccount_mock.h
+@@ -1,5 +1,5 @@
+ /*
+- Account tqmock object class
++ Account mock object class
+
+ Copyright (c) 2005 by Duncan Mac-Vicar Prett <duncan@kde.org>
+
+diff --git a/kopete/libkopete/tests/mock/kopetecontact_mock.cpp b/kopete/libkopete/tests/mock/kopetecontact_mock.cpp
+index 43a5b81..ea90bee 100644
+--- a/kopete/libkopete/tests/mock/kopetecontact_mock.cpp
++++ b/kopete/libkopete/tests/mock/kopetecontact_mock.cpp
+@@ -1,5 +1,5 @@
+ /*
+- Contact tqmock object class
++ Contact mock object class
+
+ Copyright (c) 2005 by Duncan Mac-Vicar Prett <duncan@kde.org>
+
+@@ -15,7 +15,7 @@
+ *************************************************************************
+ */
+
+-#include "kopetecontact_tqmock.h"
++#include "kopetecontact_mock.h"
+
+ namespace Kopete
+ {
+diff --git a/kopete/libkopete/tests/mock/kopetecontact_mock.h b/kopete/libkopete/tests/mock/kopetecontact_mock.h
+index aba361a..00ec878 100644
+--- a/kopete/libkopete/tests/mock/kopetecontact_mock.h
++++ b/kopete/libkopete/tests/mock/kopetecontact_mock.h
+@@ -1,5 +1,5 @@
+ /*
+- Contact tqmock object class
++ Contact mock object class
+
+ Copyright (c) 2005 by Duncan Mac-Vicar Prett <duncan@kde.org>
+
+diff --git a/kopete/libkopete/tests/mock/kopetemessage_mock.cpp b/kopete/libkopete/tests/mock/kopetemessage_mock.cpp
+index 66f325e..a3e543e 100644
+--- a/kopete/libkopete/tests/mock/kopetemessage_mock.cpp
++++ b/kopete/libkopete/tests/mock/kopetemessage_mock.cpp
+@@ -1,5 +1,5 @@
+ /*
+- Message tqmock object class
++ Message mock object class
+
+ Copyright (c) 2005 by Duncan Mac-Vicar Prett <duncan@kde.org>
+
+@@ -15,6 +15,6 @@
+ *************************************************************************
+ */
+
+-#include "kopetemessage_tqmock.h"
++#include "kopetemessage_mock.h"
+
+
+diff --git a/kopete/libkopete/tests/mock/kopetemessage_mock.h b/kopete/libkopete/tests/mock/kopetemessage_mock.h
+index f8677ee..1345e92 100644
+--- a/kopete/libkopete/tests/mock/kopetemessage_mock.h
++++ b/kopete/libkopete/tests/mock/kopetemessage_mock.h
+@@ -1,5 +1,5 @@
+ /*
+- Message tqmock object class
++ Message mock object class
+
+ Copyright (c) 2005 by Duncan Mac-Vicar Prett <duncan@kde.org>
+
+diff --git a/kopete/libkopete/tests/mock/kopetemetacontact_mock.cpp b/kopete/libkopete/tests/mock/kopetemetacontact_mock.cpp
+index e9cc95a..32f0fe1 100644
+--- a/kopete/libkopete/tests/mock/kopetemetacontact_mock.cpp
++++ b/kopete/libkopete/tests/mock/kopetemetacontact_mock.cpp
+@@ -15,6 +15,6 @@
+ *************************************************************************
+ */
+
+-#include "kopetemetacontact_tqmock.h"
++#include "kopetemetacontact_mock.h"
+
+
+diff --git a/kopete/libkopete/tests/mock/kopeteprotocol_mock.cpp b/kopete/libkopete/tests/mock/kopeteprotocol_mock.cpp
+index 97bcfee..d9ae1d3 100644
+--- a/kopete/libkopete/tests/mock/kopeteprotocol_mock.cpp
++++ b/kopete/libkopete/tests/mock/kopeteprotocol_mock.cpp
+@@ -1,5 +1,5 @@
+ /*
+- Protocol tqmock object class
++ Protocol mock object class
+
+ Copyright (c) 2005 by Duncan Mac-Vicar Prett <duncan@kde.org>
+
+@@ -15,7 +15,7 @@
+ *************************************************************************
+ */
+
+-#include "kopeteprotocol_tqmock.h"
++#include "kopeteprotocol_mock.h"
+
+ namespace Kopete
+ {
+@@ -44,6 +44,6 @@ KopeteEditAccountWidget* Protocol::createEditAccountWidget( Kopete::Account *acc
+ return 0L;
+ }
+
+-} // end ns tqmock
++} // end ns mock
+ } // end ns test
+ } // end ns kopete
+diff --git a/kopete/libkopete/tests/mock/kopeteprotocol_mock.h b/kopete/libkopete/tests/mock/kopeteprotocol_mock.h
+index d2ad36f..db40740 100644
+--- a/kopete/libkopete/tests/mock/kopeteprotocol_mock.h
++++ b/kopete/libkopete/tests/mock/kopeteprotocol_mock.h
+@@ -1,5 +1,5 @@
+ /*
+- Protocol tqmock object class
++ Protocol mock object class
+
+ Copyright (c) 2005 by Duncan Mac-Vicar Prett <duncan@kde.org>
+
diff --git a/gentoo/trinity-base/kopete/files/kopete-3.5.13.1-patches/0006-bd6aa1a-fix-inadvertent-tqt-changes.patch b/gentoo/trinity-base/kopete/files/kopete-3.5.13.1-patches/0006-bd6aa1a-fix-inadvertent-tqt-changes.patch
new file mode 100644
index 000000000..8cb91742e
--- /dev/null
+++ b/gentoo/trinity-base/kopete/files/kopete-3.5.13.1-patches/0006-bd6aa1a-fix-inadvertent-tqt-changes.patch
@@ -0,0 +1,37 @@
+diff --git a/kopete/protocols/jabber/jingle/jinglewatchsessiontask.h b/kopete/protocols/jabber/jingle/jinglewatchsessiontask.h
+index 8c37b0c..7a3a906 100644
+--- a/kopete/protocols/jabber/jingle/jinglewatchsessiontask.h
++++ b/kopete/protocols/jabber/jingle/jinglewatchsessiontask.h
+@@ -21,7 +21,7 @@
+
+ /**
+ * This task watch for incoming Jingle session and notify manager.
+- * It is declared in the header to be "tqmoc"-able.
++ * It is declared in the header to be "moc"-able.
+ */
+ class JingleWatchSessionTask : public XMPP::Task
+ {
+diff --git a/kopete/protocols/jabber/libiris/iris/jabber/all_mocs.cpp b/kopete/protocols/jabber/libiris/iris/jabber/all_mocs.cpp
+index 8532fd4..b76a283 100644
+--- a/kopete/protocols/jabber/libiris/iris/jabber/all_mocs.cpp
++++ b/kopete/protocols/jabber/libiris/iris/jabber/all_mocs.cpp
+@@ -1,5 +1,5 @@
+ /*
+- * all_tqmocs.cpp - #include all .tqmoc files in this directory
++ * all_mocs.cpp - #include all .moc files in this directory
+ * Copyright (C) 2004 Richard Smith
+ *
+ * This library is free software; you can redistribute it and/or
+diff --git a/kopete/protocols/msn/msnaccount.h b/kopete/protocols/msn/msnaccount.h
+index 31ae451..d35f23e 100644
+--- a/kopete/protocols/msn/msnaccount.h
++++ b/kopete/protocols/msn/msnaccount.h
+@@ -135,7 +135,7 @@ private slots:
+ void slotOpenInbox();
+ void slotChangePublicName();
+
+-//#if !defined NDEBUG //(Stupid tqmoc which don't see when he don't need to slot this slot)
++//#if !defined NDEBUG //(Stupid moc which don't see when he don't need to slot this slot)
+ /**
+ * Show simple debugging aid
+ */
diff --git a/gentoo/trinity-base/kopete/files/kopete-3.5.13.1-patches/0007-a2b3834-fix-various-cmake-build-issues.patch b/gentoo/trinity-base/kopete/files/kopete-3.5.13.1-patches/0007-a2b3834-fix-various-cmake-build-issues.patch
new file mode 100644
index 000000000..a6355caf0
--- /dev/null
+++ b/gentoo/trinity-base/kopete/files/kopete-3.5.13.1-patches/0007-a2b3834-fix-various-cmake-build-issues.patch
@@ -0,0 +1,98 @@
+diff --git a/kopete/kopete/kconf_update/CMakeLists.txt b/kopete/kopete/kconf_update/CMakeLists.txt
+index 1317d82..967b8ef 100644
+--- a/kopete/kopete/kconf_update/CMakeLists.txt
++++ b/kopete/kopete/kconf_update/CMakeLists.txt
+@@ -39,7 +39,7 @@ install( PROGRAMS
+
+ ##### kopete_account_kconf_update (executable) ##
+
+-tde_add_executable( kopete_account_kconf_update
++tde_add_executable( "kopete-account-kconf_update"
+ SOURCES kopete-account-kconf_update.cpp
+ LINK ${TQT_LIBRARIES}
+ DESTINATION ${LIB_INSTALL_DIR}/kconf_update_bin
+@@ -48,7 +48,7 @@ tde_add_executable( kopete_account_kconf_update
+
+ ##### kopete_pluginloader2_kconf_update (executable)
+
+-tde_add_executable( kopete_pluginloader2_kconf_update
++tde_add_executable( "kopete-pluginloader2-kconf_update"
+ SOURCES kopete-pluginloader2.cpp
+ LINK ${TQT_LIBRARIES}
+ DESTINATION ${LIB_INSTALL_DIR}/kconf_update_bin
+@@ -57,7 +57,7 @@ tde_add_executable( kopete_pluginloader2_kconf_update
+
+ ##### kopete_nameTracking_kconf_update (executable)
+
+-tde_add_executable( kopete_nameTracking_kconf_update
++tde_add_executable( "kopete-nameTracking-kconf_update"
+ SOURCES kopete-nameTracking.cpp
+ LINK kdecore-shared
+ DESTINATION ${LIB_INSTALL_DIR}/kconf_update_bin
+diff --git a/kopete/libkopete/CMakeLists.txt b/kopete/libkopete/CMakeLists.txt
+index bbed254..d012c2a 100644
+--- a/kopete/libkopete/CMakeLists.txt
++++ b/kopete/libkopete/CMakeLists.txt
+@@ -49,7 +49,7 @@ install( FILES
+ kopetetransfermanager.h kopeteuiglobal.h kabcpersistence.h
+ managedconnectionaccount.h kopetenotifydataobject.h
+ kopeteversion.h kopeteprefs.h kopetepicture.h webcamwidget.h
+- kopetepluginmanager.h
++ kopetepluginmanager.h kopeteblacklister.h
+ DESTINATION ${INCLUDE_INSTALL_DIR}/kopete )
+
+
+diff --git a/kopete/libkopete/avdevice/CMakeLists.txt b/kopete/libkopete/avdevice/CMakeLists.txt
+index 8e37773..2a8b817 100644
+--- a/kopete/libkopete/avdevice/CMakeLists.txt
++++ b/kopete/libkopete/avdevice/CMakeLists.txt
+@@ -40,7 +40,7 @@ tde_add_library( kopete_videodevice SHARED AUTOMOC
+ videocontrol.cpp videodevice.cpp videodevicemodelpool.cpp
+ videodevicepool.cpp videoinput.cpp bayer.cpp
+ sonix_compress.cpp
+- VERSION 1.0.0
++ VERSION 0.0.0
+ LINK kdecore-shared
+ DESTINATION ${LIB_INSTALL_DIR}
+ )
+diff --git a/kopete/protocols/jabber/kioslave/CMakeLists.txt b/kopete/protocols/jabber/kioslave/CMakeLists.txt
+index 9539457..24b4ce8 100644
+--- a/kopete/protocols/jabber/kioslave/CMakeLists.txt
++++ b/kopete/protocols/jabber/kioslave/CMakeLists.txt
+@@ -35,8 +35,8 @@ install( FILES jabberdisco.protocol DESTINATION ${SERVICES_INSTALL_DIR} )
+ tde_add_kpart( kio_jabberdisco AUTOMOC
+ SOURCES jabberdisco.cpp
+ LINK
+- jabberclient-static idn
++ jabberclient-static
+ iris_xmpp_core-static iris_xmpp_im-static iris_jabber-static iris-static
+- qca-static cutestuff_network-static cutestuff_util-static kio-shared
++ qca-static cutestuff_network-static cutestuff_util-static kio-shared idn
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+ )
+diff --git a/kopete/protocols/meanwhile/CMakeLists.txt b/kopete/protocols/meanwhile/CMakeLists.txt
+index 994f6e3..198dfaa 100644
+--- a/kopete/protocols/meanwhile/CMakeLists.txt
++++ b/kopete/protocols/meanwhile/CMakeLists.txt
+@@ -35,9 +35,9 @@ link_directories(
+ install( FILES kopete_meanwhile.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+-##### new_target0 (module) #######################
++##### kopete_meanwhile (module) #######################
+
+-tde_add_kpart( new_target0 AUTOMOC
++tde_add_kpart( kopete_meanwhile AUTOMOC
+ SOURCES
+ meanwhileprotocol.cpp meanwhileaddcontactpage.cpp
+ meanwhileeditaccountwidget.cpp meanwhileaccount.cpp
+diff --git a/kopete/protocols/msn/webcam/libmimic/CMakeLists.txt b/kopete/protocols/msn/webcam/libmimic/CMakeLists.txt
+index d98fc83..5a34066 100644
+--- a/kopete/protocols/msn/webcam/libmimic/CMakeLists.txt
++++ b/kopete/protocols/msn/webcam/libmimic/CMakeLists.txt
+@@ -20,4 +20,5 @@ tde_add_library( mimic STATIC_PIC
+ SOURCES
+ mimic.c encode.c decode.c bitstring.c vlc_common.c vlc_encode.c
+ vlc_decode.c fdct_quant.c idct_dequant.c colorspace.c deblock.c
++ LINK ${GLIB2_LIBRARIES}
+ )
diff --git a/gentoo/trinity-base/kopete/files/kopete-3.5.13.1-patches/0008-98c9c87-add-missing-file-from-previous-commit-10026753.patch b/gentoo/trinity-base/kopete/files/kopete-3.5.13.1-patches/0008-98c9c87-add-missing-file-from-previous-commit-10026753.patch
new file mode 100644
index 000000000..a23146a01
--- /dev/null
+++ b/gentoo/trinity-base/kopete/files/kopete-3.5.13.1-patches/0008-98c9c87-add-missing-file-from-previous-commit-10026753.patch
@@ -0,0 +1,28 @@
+diff --git a/kopete/plugins/nowlistening/ConfigureChecks.cmake b/kopete/plugins/nowlistening/ConfigureChecks.cmake
+new file mode 100644
+index 0000000..0780035
+--- /dev/null
++++ b/kopete/plugins/nowlistening/ConfigureChecks.cmake
+@@ -0,0 +1,22 @@
++#################################################
++#
++# (C) 2012 Slavek Banko
++# slavek (DOT) banko (AT) axis.cz
++#
++# Improvements and feedback are welcome
++#
++# This file is released under GPL >= 2
++#
++#################################################
++
++# xmms
++if( WITH_XMMS )
++ find_program( XMMS_CONFIG xmms-config )
++ if( XMMS_CONFIG )
++ set( HAVE_XMMS 1 )
++ EXEC_PROCESS( COMMAND ${XMMS_CONFIG} --cflags OUTPUT_VARIABLE XMMS_INCLUDES )
++ EXEC_PROCESS( COMMAND ${XMMS_CONFIG} --libs OUTPUT_VARIABLE XMMS_LIBS )
++ else( )
++ tde_message_fatal( "xmms is required, but was not found on your system" )
++ endif( )
++endif( )
diff --git a/gentoo/trinity-base/kopete/files/kopete-3.5.13.1-patches/0009-81ace9c-fix-inadvertent-tq-changes.patch b/gentoo/trinity-base/kopete/files/kopete-3.5.13.1-patches/0009-81ace9c-fix-inadvertent-tq-changes.patch
new file mode 100644
index 000000000..d778c7fc2
--- /dev/null
+++ b/gentoo/trinity-base/kopete/files/kopete-3.5.13.1-patches/0009-81ace9c-fix-inadvertent-tq-changes.patch
@@ -0,0 +1,15 @@
+diff --git a/kopete/kopete.api b/kopete/kopete.api
+index 04084b8..95a196a 100644
+--- a/kopete/kopete.api
++++ b/kopete/kopete.api
+@@ -59,8 +59,8 @@ WARN_LOGFILE =
+ INPUT = libkopete libkopete/ui
+ FILE_PATTERNS = *.h
+ RECURSIVE = NO
+-EXCLUDE_PATTERNS = *.tqmoc.* \
+- tqmoc* \
++EXCLUDE_PATTERNS = *.moc.* \
++ moc* \
+ *.all_cpp.* \
+ *unload.* \
+ */test/* \
diff --git a/gentoo/trinity-base/kopete/files/kopete-3.5.13.1-patches/0010-6f85c0c-fix-references-to-user-profile-directory.patch b/gentoo/trinity-base/kopete/files/kopete-3.5.13.1-patches/0010-6f85c0c-fix-references-to-user-profile-directory.patch
new file mode 100644
index 000000000..f4d414470
--- /dev/null
+++ b/gentoo/trinity-base/kopete/files/kopete-3.5.13.1-patches/0010-6f85c0c-fix-references-to-user-profile-directory.patch
@@ -0,0 +1,39 @@
+diff --git a/kopete/kopete/chatwindow/kopetechatwindowstyle.h b/kopete/kopete/chatwindow/kopetechatwindowstyle.h
+index 38c5f35..aa6f73a 100644
+--- a/kopete/kopete/chatwindow/kopetechatwindowstyle.h
++++ b/kopete/kopete/chatwindow/kopetechatwindowstyle.h
+@@ -65,7 +65,7 @@ public:
+ /**
+ * Get the style path.
+ * The style path points to the directory where the style is located.
+- * ex: ~/.kde/share/apps/kopete/styles/StyleName/
++ * ex: ~/.trinity/share/apps/kopete/styles/StyleName/
+ *
+ * @return the style path based.
+ */
+diff --git a/kopete/libkopete/kopetepicture.h b/kopete/libkopete/kopetepicture.h
+index 46e7a7c..a681e7c 100644
+--- a/kopete/libkopete/kopetepicture.h
++++ b/kopete/libkopete/kopetepicture.h
+@@ -41,7 +41,7 @@ namespace Kopete
+ * You can only use an TQImage and a image path to create/update
+ * the picture.
+ * If the picture doesn't exist as a file, it generate a local
+- * copy into ~/.kde/share/apps/kopete/metacontactpicturecache
++ * copy into ~/.trinity/share/apps/kopete/metacontactpicturecache
+ *
+ * This class is implicitly shared, so don't use it as a pointer.
+ *
+diff --git a/kopete/plugins/history/converter.cpp b/kopete/plugins/history/converter.cpp
+index 677ed1d..2bf748c 100644
+--- a/kopete/plugins/history/converter.cpp
++++ b/kopete/plugins/history/converter.cpp
+@@ -45,7 +45,7 @@ void HistoryPlugin::convertOldHistory()
+
+
+ TQString kopetedir=locateLocal( "data", TQString::fromLatin1( "kopete"));
+- TQDir d( kopetedir ); //d should point to ~/.kde/share/apps/kopete/
++ TQDir d( kopetedir ); //d should point to ~/.trinity/share/apps/kopete/
+
+ d.setFilter( TQDir::Dirs );
+
diff --git a/gentoo/trinity-base/kopete/files/kopete-3.5.13.1-patches/0011-631f957-remove-nuisance-unsermake-warning-with-automake.patch b/gentoo/trinity-base/kopete/files/kopete-3.5.13.1-patches/0011-631f957-remove-nuisance-unsermake-warning-with-automake.patch
new file mode 100644
index 000000000..ea1a6526e
--- /dev/null
+++ b/gentoo/trinity-base/kopete/files/kopete-3.5.13.1-patches/0011-631f957-remove-nuisance-unsermake-warning-with-automake.patch
@@ -0,0 +1,12 @@
+diff --git a/kopete/protocols/jabber/libiris/iris/xmpp-core/Makefile.am b/kopete/protocols/jabber/libiris/iris/xmpp-core/Makefile.am
+index 56be2c4..8e89a08 100644
+--- a/kopete/protocols/jabber/libiris/iris/xmpp-core/Makefile.am
++++ b/kopete/protocols/jabber/libiris/iris/xmpp-core/Makefile.am
+@@ -1,6 +1,6 @@
+ # The only Q_OBJECT lines are in securestream.{h,cpp} and we deal with them below.
+ # Give metasources a file with no Q_OBJECT line to stop unsermake assuming we want METASOURCES = AUTO
+-METASOURCES = ignore_this_warning.moc
++METASOURCES = AUTO
+
+ noinst_LTLIBRARIES = libiris_xmpp_core.la
+ AM_CPPFLAGS = $(IDN_CFLAGS)
diff --git a/gentoo/trinity-base/kopete/files/kopete-3.5.13.1-patches/0012-4387c55-fix-inadvertent-tq-changes.patch b/gentoo/trinity-base/kopete/files/kopete-3.5.13.1-patches/0012-4387c55-fix-inadvertent-tq-changes.patch
new file mode 100644
index 000000000..dc437b278
--- /dev/null
+++ b/gentoo/trinity-base/kopete/files/kopete-3.5.13.1-patches/0012-4387c55-fix-inadvertent-tq-changes.patch
@@ -0,0 +1,75 @@
+diff --git a/kopete/libkopete/tests/mock/kopeteaccount_mock.h b/kopete/libkopete/tests/mock/kopeteaccount_mock.h
+index 039632f..2d30f8f 100644
+--- a/kopete/libkopete/tests/mock/kopeteaccount_mock.h
++++ b/kopete/libkopete/tests/mock/kopeteaccount_mock.h
+@@ -15,8 +15,8 @@
+ *************************************************************************
+ */
+
+-#ifndef _KOPETEACCOUNT_TQMOCK_H_
+-#define _KOPETEACCOUNT_TQMOCK_H_
++#ifndef _KOPETEACCOUNT_MOCK_H_
++#define _KOPETEACCOUNT_MOCK_H_
+
+ #include "kopeteaccount.h"
+
+diff --git a/kopete/libkopete/tests/mock/kopetecontact_mock.h b/kopete/libkopete/tests/mock/kopetecontact_mock.h
+index 00ec878..e25844d 100644
+--- a/kopete/libkopete/tests/mock/kopetecontact_mock.h
++++ b/kopete/libkopete/tests/mock/kopetecontact_mock.h
+@@ -15,8 +15,8 @@
+ *************************************************************************
+ */
+
+-#ifndef _KOPETECONTACT_TQMOCK_H_
+-#define _KOPETECONTACT_TQMOCK_H_
++#ifndef _KOPETECONTACT_MOCK_H_
++#define _KOPETECONTACT_MOCK_H_
+
+ #include "kopetecontact.h"
+
+diff --git a/kopete/libkopete/tests/mock/kopetemessage_mock.h b/kopete/libkopete/tests/mock/kopetemessage_mock.h
+index 1345e92..13c9257 100644
+--- a/kopete/libkopete/tests/mock/kopetemessage_mock.h
++++ b/kopete/libkopete/tests/mock/kopetemessage_mock.h
+@@ -15,8 +15,8 @@
+ *************************************************************************
+ */
+
+-#ifndef _KOPETEMESSAGE_TQMOCK_H_
+-#define _KOPETEMESSAGE_TQMOCK_H_
++#ifndef _KOPETEMESSAGE_MOCK_H_
++#define _KOPETEMESSAGE_MOCK_H_
+
+ #include "kopetemessage.h"
+
+diff --git a/kopete/libkopete/tests/mock/kopetemetacontact_mock.h b/kopete/libkopete/tests/mock/kopetemetacontact_mock.h
+index 2fa6d8c..f331171 100644
+--- a/kopete/libkopete/tests/mock/kopetemetacontact_mock.h
++++ b/kopete/libkopete/tests/mock/kopetemetacontact_mock.h
+@@ -15,8 +15,8 @@
+ *************************************************************************
+ */
+
+-#ifndef _KOPETEMETACONTACT_TQMOCK_H_
+-#define _KOPETEMETACONTACT_TQMOCK_H_
++#ifndef _KOPETEMETACONTACT_MOCK_H_
++#define _KOPETEMETACONTACT_MOCK_H_
+
+ #include "kopetemetacontact.h"
+
+diff --git a/kopete/libkopete/tests/mock/kopeteprotocol_mock.h b/kopete/libkopete/tests/mock/kopeteprotocol_mock.h
+index db40740..d250279 100644
+--- a/kopete/libkopete/tests/mock/kopeteprotocol_mock.h
++++ b/kopete/libkopete/tests/mock/kopeteprotocol_mock.h
+@@ -15,8 +15,8 @@
+ *************************************************************************
+ */
+
+-#ifndef _KOPETEPROTOCOL_TQMOCK_H_
+-#define _KOPETEPROTOCOL_TQMOCK_H_
++#ifndef _KOPETEPROTOCOL_MOCK_H_
++#define _KOPETEPROTOCOL_MOCK_H_
+
+ #include "kopeteprotocol.h"
+
diff --git a/gentoo/trinity-base/kopete/files/kopete-3.5.13.1-patches/0013.1-412a55a-update-kopete-references-of-gaim-to-pidgin-resolve-bug-865.patch b/gentoo/trinity-base/kopete/files/kopete-3.5.13.1-patches/0013.1-412a55a-update-kopete-references-of-gaim-to-pidgin-resolve-bug-865.patch
new file mode 100644
index 000000000..dcf95d82d
--- /dev/null
+++ b/gentoo/trinity-base/kopete/files/kopete-3.5.13.1-patches/0013.1-412a55a-update-kopete-references-of-gaim-to-pidgin-resolve-bug-865.patch
@@ -0,0 +1,373 @@
+diff --git a/kopete/ChangeLog b/kopete/ChangeLog
+index 5339291..9b94a50 100644
+--- a/kopete/ChangeLog
++++ b/kopete/ChangeLog
+@@ -143,7 +143,7 @@
+ * Rearrange the yahoo message parsing a bit so we do it all before we
+ create the KopeteMessage object for it.
+
+- Workaround gaim's bugginess when sending URLs so that there
++ Workaround pidgin's bugginess when sending URLs so that there
+ aren't parse errors. (#87190)
+
+ 2004-08-14 14:22 Matt Rogers <matt.rogers@kdemail.net>
+diff --git a/kopete/protocols/groupwise/gwprotocol.cpp b/kopete/protocols/groupwise/gwprotocol.cpp
+index 68a31fb..237122c 100644
+--- a/kopete/protocols/groupwise/gwprotocol.cpp
++++ b/kopete/protocols/groupwise/gwprotocol.cpp
+@@ -5,7 +5,7 @@
+
+ Based on Testbed
+ Copyright (c) 2003 by Will Stephenson <will@stevello.free-online.co.uk>
+- rtfizeTest from nm_rtfize_text, from Gaim src/protocols/novell/nmuser.c
++ rtfizeTest from nm_rtfize_text, from Pidgin src/protocols/novell/nmuser.c
+ Copyright (c) 2004 Novell, Inc. All Rights Reserved
+
+ Kopete (c) 2002-2003 by the Kopete developers <kopete-devel@kde.org>
+@@ -178,7 +178,7 @@ TQString GroupWiseProtocol::rtfizeText( const TQString & plain )
+ "{\\colortbl ;\\red0\\green0\\blue0;}\n"
+ "\\uc1\\cf1\\f0\\fs18 %1\\par\n}");
+ TQString outputText; // output text
+- TQCString plainUtf8 = plain.utf8(); // encoded as UTF8, because that's what this encoding algorithm, taken from Gaim's Novell plugin
++ TQCString plainUtf8 = plain.utf8(); // encoded as UTF8, because that's what this encoding algorithm, taken from Pidgin's Novell plugin
+ uint index = 0; // current char to transcode
+ while ( index < plainUtf8.length() )
+ {
+diff --git a/kopete/protocols/groupwise/gwprotocol.h b/kopete/protocols/groupwise/gwprotocol.h
+index 95105f1..b73406c 100644
+--- a/kopete/protocols/groupwise/gwprotocol.h
++++ b/kopete/protocols/groupwise/gwprotocol.h
+@@ -5,7 +5,7 @@
+
+ Based on Testbed
+ Copyright (c) 2003 by Will Stephenson <will@stevello.free-online.co.uk>
+- rtfizeTest from nm_rtfize_text, from Gaim src/protocols/novell/nmuser.c
++ rtfizeTest from nm_rtfize_text, from Pidgin src/protocols/novell/nmuser.c
+ Copyright (c) 2004 Novell, Inc. All Rights Reserved
+
+ Kopete (c) 2002-2003 by the Kopete developers <kopete-devel@kde.org>
+diff --git a/kopete/protocols/groupwise/libgroupwise/coreprotocol.cpp b/kopete/protocols/groupwise/libgroupwise/coreprotocol.cpp
+index 449adfe..9e7a131 100644
+--- a/kopete/protocols/groupwise/libgroupwise/coreprotocol.cpp
++++ b/kopete/protocols/groupwise/libgroupwise/coreprotocol.cpp
+@@ -5,7 +5,7 @@
+ Copyright (c) 2004 SUSE Linux AG http://www.suse.com
+
+ Based on Iris, Copyright (C) 2003 Justin Karneges
+- url_escape_string from Gaim src/protocols/novell/nmconn.c
++ url_escape_string from Pidgin src/protocols/novell/nmconn.c
+ Copyright (c) 2004 Novell, Inc. All Rights Reserved
+
+ Kopete (c) 2002-2004 by the Kopete developers <kopete-devel@kde.org>
+@@ -273,11 +273,11 @@ void CoreProtocol::fieldsToWire( Field::FieldList fields, int depth )
+ TQDataStream dout( bytesOut, IO_WriteOnly );
+ dout.setByteOrder( TQDataStream::LittleEndian );
+
+- // these fields are ignored by Gaim's novell
++ // these fields are ignored by Pidgin's novell
+ if ( field->type() == NMFIELD_TYPE_BINARY || field->method() == NMFIELD_METHOD_IGNORE )
+ continue;
+
+- // GAIM writes these tags to the secure socket separately - if we can't connect, check here
++ // PIDGIN writes these tags to the secure socket separately - if we can't connect, check here
+ // NM Protocol 1 writes them in an apparently arbitrary order
+ // tag
+ //dout.writeRawBytes( GW_URLVAR_TAG, sizeof( GW_URLVAR_TAG ) );
+diff --git a/kopete/protocols/groupwise/libgroupwise/eventprotocol.cpp b/kopete/protocols/groupwise/libgroupwise/eventprotocol.cpp
+index 93ce7c9..7532706 100644
+--- a/kopete/protocols/groupwise/libgroupwise/eventprotocol.cpp
++++ b/kopete/protocols/groupwise/libgroupwise/eventprotocol.cpp
+@@ -177,7 +177,7 @@ Transfer * EventProtocol::parse( const TQByteArray & wire, uint& bytes )
+ case ContactAdd: //104
+ case ReceiveFile: //109
+ case ConferenceRename: //116
+- // unhandled because unhandled in Gaim
++ // unhandled because unhandled in Pidgin
+ break;
+ /* GW7 */
+ case ReceivedBroadcast: //122
+diff --git a/kopete/protocols/groupwise/libgroupwise/gwclientstream.cpp b/kopete/protocols/groupwise/libgroupwise/gwclientstream.cpp
+index f39c2ec..1034b22 100644
+--- a/kopete/protocols/groupwise/libgroupwise/gwclientstream.cpp
++++ b/kopete/protocols/groupwise/libgroupwise/gwclientstream.cpp
+@@ -4,7 +4,7 @@
+ Copyright (c) 2004 SUSE Linux AG http://www.suse.com
+
+ Based on Iris, Copyright (C) 2003 Justin Karneges
+- encode_method from Gaim src/protocols/novell/nmconn.c
++ encode_method from Pidgin src/protocols/novell/nmconn.c
+ Copyright (c) 2004 Novell, Inc. All Rights Reserved
+
+ Kopete (c) 2002-2004 by the Kopete developers <kopete-devel@kde.org>
+diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/getstatustask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/getstatustask.cpp
+index 2b77e33..1ef621d 100644
+--- a/kopete/protocols/groupwise/libgroupwise/tasks/getstatustask.cpp
++++ b/kopete/protocols/groupwise/libgroupwise/tasks/getstatustask.cpp
+@@ -35,7 +35,7 @@ void GetStatusTask::userDN( const TQString & dn )
+ m_userDN = dn;
+ // set up Transfer
+ Field::FieldList lst;
+- // changed from USERID to DN as per Gaim/GWIM
++ // changed from USERID to DN as per Pidgin/GWIM
+ lst.append( new Field::SingleField( NM_A_SZ_DN, 0, NMFIELD_TYPE_UTF8, m_userDN ) );
+ createTransfer( "getstatus", lst );
+ }
+diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/sendmessagetask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/sendmessagetask.cpp
+index fdf1173..7180b4d 100644
+--- a/kopete/protocols/groupwise/libgroupwise/tasks/sendmessagetask.cpp
++++ b/kopete/protocols/groupwise/libgroupwise/tasks/sendmessagetask.cpp
+@@ -31,7 +31,7 @@ SendMessageTask::~SendMessageTask()
+
+ void SendMessageTask::message( const TQStringList & recipientDNList, const OutgoingMessage & msg )
+ {
+- // Assumes the conference is instantiated, unlike Gaim's nm_send_message
++ // Assumes the conference is instantiated, unlike Pidgin's nm_send_message
+ Field::FieldList lst, tmp, msgBodies;
+ // list containing GUID
+ tmp.append( new Field::SingleField( NM_A_SZ_OBJECT_ID, 0, NMFIELD_TYPE_UTF8, msg.guid ) );
+diff --git a/kopete/protocols/jabber/jabberchatsession.cpp b/kopete/protocols/jabber/jabberchatsession.cpp
+index c18c907..75bcdd0 100644
+--- a/kopete/protocols/jabber/jabberchatsession.cpp
++++ b/kopete/protocols/jabber/jabberchatsession.cpp
+@@ -287,7 +287,7 @@ void JabberChatSession::slotMessageSent ( Kopete::Message &message, Kopete::Chat
+ TQString xhtmlBody = message.escapedBody();
+
+ // According to JEP-0071 8.9 it is only RECOMMANDED to replace \n with <br/>
+- // which mean that some implementation (gaim 2 beta) may still think that \n are linebreak.
++ // which mean that some implementation (pidgin 2 beta) may still think that \n are linebreak.
+ // and considered the fact that KTextEditor generate a well indented XHTML, we need to remove all \n from it
+ // see Bug 121627
+ // Anyway, theses client that do like that are *WRONG* considreded the example of jep-71 where there are lot of
+diff --git a/kopete/protocols/jabber/jingle/libjingle/talk/examples/call/status.h b/kopete/protocols/jabber/jingle/libjingle/talk/examples/call/status.h
+index cab9312..c6e6324 100644
+--- a/kopete/protocols/jabber/jingle/libjingle/talk/examples/call/status.h
++++ b/kopete/protocols/jabber/jingle/libjingle/talk/examples/call/status.h
+@@ -119,7 +119,7 @@ public:
+ status_.find("Auto Status") != std::string::npos)
+ return STR_EMPTY;
+ }
+- if (jid_.resource().find("Gaim") != std::string::npos) {
++ if (jid_.resource().find("Pidgin") != std::string::npos) {
+ if (status_ == "Sorry, I ran out for a bit!")
+ return STR_EMPTY;
+ }
+diff --git a/kopete/protocols/meanwhile/README b/kopete/protocols/meanwhile/README
+index 5c77dbf..4730c3f 100644
+--- a/kopete/protocols/meanwhile/README
++++ b/kopete/protocols/meanwhile/README
+@@ -9,7 +9,7 @@ To INSTALL
+ installing libmeanwhile
+ =======================
+ from http://meanwhile.sf.net - use version 0.3
+-Refer to INSTALL in the meanwhile code. Run configure without specifying the --with_gaim_src
++Refer to INSTALL in the meanwhile code. Run configure without specifying the --with_pidgin_src
+ # autogen.sh
+ # ./configure --prefix=/usr
+ # make
+diff --git a/kopete/protocols/msn/ReleaseNotes b/kopete/protocols/msn/ReleaseNotes
+index 3a2b2f6..1a36724 100644
+--- a/kopete/protocols/msn/ReleaseNotes
++++ b/kopete/protocols/msn/ReleaseNotes
+@@ -23,7 +23,7 @@ release:
+ internally a group ID is used. Kopete currently uses the name as a unique
+ identifier, however, and will likely get a bit confused by this. If you
+ do experience problems, you could join both groups using another MSN
+- client, like the official client, Trillian or Gaim as a workaround.
++ client, like the official client, Trillian or Pidgin as a workaround.
+
+ - Kopete contacts can be at Top-Level and in no groups. MSN doesn't
+ support this freature. The kopete's contact list can differe from server
+diff --git a/kopete/protocols/msn/msnaccount.cpp b/kopete/protocols/msn/msnaccount.cpp
+index 6c4aa9c..c4dcabf 100644
+--- a/kopete/protocols/msn/msnaccount.cpp
++++ b/kopete/protocols/msn/msnaccount.cpp
+@@ -1178,7 +1178,7 @@ void MSNAccount::slotCreateChat( const TQString& ID, const TQString& address, co
+
+ /**
+ * This code should open a chatwindow when a socket is open
+- * It has been disabled because gaim open switchboeard too often
++ * It has been disabled because pidgin open switchboeard too often
+ *
+ * the solution is to open the window only when the contact start typing
+ * see MSNChatSession::receivedTypingMsg
+diff --git a/kopete/protocols/msn/msnswitchboardsocket.cpp b/kopete/protocols/msn/msnswitchboardsocket.cpp
+index 7d67876..3298e46 100644
+--- a/kopete/protocols/msn/msnswitchboardsocket.cpp
++++ b/kopete/protocols/msn/msnswitchboardsocket.cpp
+@@ -695,7 +695,7 @@ int MSNSwitchBoardSocket::sendMsg( const Kopete::Message &msg )
+ }
+ }
+
+- // User-Agent is not a official flag, but GAIM has it
++ // User-Agent is not a official flag, but PIDGIN has it
+ TQString UA;
+ if( config->readBoolEntry("SendClientInfo", true) )
+ {
+diff --git a/kopete/protocols/oscar/liboscar/TODO b/kopete/protocols/oscar/liboscar/TODO
+index 1ec9be9..ed14e15 100644
+--- a/kopete/protocols/oscar/liboscar/TODO
++++ b/kopete/protocols/oscar/liboscar/TODO
+@@ -17,7 +17,7 @@ Misc. Before Merge things
+ Direct Connections
+ ====================================
+ When/If we get around to it. Matt knows absolutely nothing about direct connections and the only online source of documentation is no longer online. :(
+-This will definately be one of those things we have to dissect gaim for. :/
++This will definately be one of those things we have to dissect pidgin for. :/
+
+
+ SNAC 0x15 parsing
+diff --git a/kopete/protocols/oscar/liboscar/buddyicontask.cpp b/kopete/protocols/oscar/liboscar/buddyicontask.cpp
+index c75a592..c766148 100644
+--- a/kopete/protocols/oscar/liboscar/buddyicontask.cpp
++++ b/kopete/protocols/oscar/liboscar/buddyicontask.cpp
+@@ -137,7 +137,7 @@ void BuddyIconTask::sendIcon()
+ m_seq = client()->snacSequence();
+ SNAC s = { 0x0010, 0x0002, 0x0000, m_seq };
+ Buffer* b = new Buffer;
+- b->addWord( 1 ); //gaim hard codes it, so will we
++ b->addWord( 1 ); //pidgin hard codes it, so will we
+ b->addWord( m_iconLength );
+ b->addString( m_icon );
+ Transfer* t = createTransfer( f, s, b );
+diff --git a/kopete/protocols/oscar/liboscar/chatnavservicetask.cpp b/kopete/protocols/oscar/liboscar/chatnavservicetask.cpp
+index 3004af0..4a34ae2 100644
+--- a/kopete/protocols/oscar/liboscar/chatnavservicetask.cpp
++++ b/kopete/protocols/oscar/liboscar/chatnavservicetask.cpp
+@@ -115,7 +115,7 @@ void ChatNavServiceTask::onGo()
+
+ void ChatNavServiceTask::createRoom( WORD exchange, const TQString& name )
+ {
+- //most of this comes from gaim. thanks to them for figuring it out
++ //most of this comes from pidgin. thanks to them for figuring it out
+ TQString cookie = "create"; //hardcoded, seems to be ignored by AOL
+ TQString lang = "en";
+ TQString charset = "us-ascii";
+diff --git a/kopete/protocols/oscar/liboscar/coreprotocol.cpp b/kopete/protocols/oscar/liboscar/coreprotocol.cpp
+index 2a4d96f..e3c2642 100644
+--- a/kopete/protocols/oscar/liboscar/coreprotocol.cpp
++++ b/kopete/protocols/oscar/liboscar/coreprotocol.cpp
+@@ -7,7 +7,7 @@
+ Based on code Copyright (c) 2004 SuSE Linux AG http://www.suse.com
+
+ Based on Iris, Copyright (C) 2003 Justin Karneges
+- url_escape_string from Gaim src/protocols/novell/nmconn.c
++ url_escape_string from Pidgin src/protocols/novell/nmconn.c
+ Copyright (c) 2004 Novell, Inc. All Rights Reserved
+
+ Kopete (c) 2002-2004 by the Kopete developers <kopete-devel@kde.org>
+diff --git a/kopete/protocols/oscar/liboscar/sendmessagetask.cpp b/kopete/protocols/oscar/liboscar/sendmessagetask.cpp
+index 1b8cbfb..df1a819 100644
+--- a/kopete/protocols/oscar/liboscar/sendmessagetask.cpp
++++ b/kopete/protocols/oscar/liboscar/sendmessagetask.cpp
+@@ -141,7 +141,7 @@ void SendMessageTask::addChannel1Data( Buffer* b )
+ {
+ Buffer tlv2buffer;
+
+- //Send features TLV using data from gaim. Features are different
++ //Send features TLV using data from pidgin. Features are different
+ //depending on whether we're ICQ or AIM
+ if ( client()->isIcq() )
+ {
+@@ -266,7 +266,7 @@ void SendMessageTask::addRendezvousMessageData( Buffer* b )
+ b->addLEWord( 0x001B ); // length of this data segment, always 27
+
+ // protocol version
+- // miranda,licq use 8, gaim,icq5 use 9, icq2003b uses 10.
++ // miranda,licq use 8, pidgin,icq5 use 9, icq2003b uses 10.
+ // 9 seems to make things a litle difficult, 10 seems a little more like 8, but still more difficult
+ b->addLEWord( 0x0008 ); // so stick with 8 for now :)
+
+diff --git a/kopete/protocols/oscar/liboscar/userdetails.cpp b/kopete/protocols/oscar/liboscar/userdetails.cpp
+index 8a1b6c4..f873702 100644
+--- a/kopete/protocols/oscar/liboscar/userdetails.cpp
++++ b/kopete/protocols/oscar/liboscar/userdetails.cpp
+@@ -363,7 +363,7 @@ void UserDetails::detectClient()
+ clientMatched=true; // default case will set it to false again if we did not find anything
+ switch (m_dcLastInfoUpdateTime)
+ {
+- case 0xFFFFFFFFL: //gaim behaves like official AIM so we can't detect them, only look for miranda
++ case 0xFFFFFFFFL: //pidgin behaves like official AIM so we can't detect them, only look for miranda
+ {
+ if (m_dcLastExtStatusUpdateTime & 0x80000000)
+ m_clientName=TQString::fromLatin1("Miranda alpha");
+@@ -439,9 +439,9 @@ void UserDetails::detectClient()
+ m_clientName=TQString::fromLatin1("ICQ2go");
+ }
+ }
+- else if (hasCap(CAP_BUDDYICON)) // only gaim seems to advertize this on ICQ
++ else if (hasCap(CAP_BUDDYICON)) // only pidgin seems to advertize this on ICQ
+ {
+- m_clientName = TQString::fromLatin1("Gaim");
++ m_clientName = TQString::fromLatin1("Pidgin");
+ }
+ else if (hasCap(CAP_XTRAZ))
+ {
+diff --git a/kopete/protocols/yahoo/libkyahoo/libyahoo.c b/kopete/protocols/yahoo/libkyahoo/libyahoo.c
+index a97e7be..b3a1f9f 100644
+--- a/kopete/protocols/yahoo/libkyahoo/libyahoo.c
++++ b/kopete/protocols/yahoo/libkyahoo/libyahoo.c
+@@ -4,10 +4,10 @@
+ * Some code copyright (C) 2002, Philip S Tellis <philip . tellis AT gmx . net>
+ *
+ * Much of this code was taken and adapted from the yahoo module for
+- * gaim released under the GNU GPL. This code is also released under the
++ * pidgin released under the GNU GPL. This code is also released under the
+ * GNU GPL.
+ *
+- * This code is derivitive of Gaim <http://gaim.sourceforge.net>
++ * This code is derivitive of Pidgin <http://pidgin.sourceforge.net>
+ * copyright (C) 1998-1999, Mark Spencer <markster@marko.net>
+ * 1998-1999, Adam Fritzler <afritz@marko.net>
+ * 1998-2002, Rob Flynn <rob@marko.net>
+diff --git a/kopete/protocols/yahoo/libkyahoo/libyahoo.h b/kopete/protocols/yahoo/libkyahoo/libyahoo.h
+index b15f57a..e9cad06 100644
+--- a/kopete/protocols/yahoo/libkyahoo/libyahoo.h
++++ b/kopete/protocols/yahoo/libkyahoo/libyahoo.h
+@@ -4,10 +4,10 @@
+ * Some code copyright (C) 2002, Philip S Tellis <philip . tellis AT gmx . net>
+ *
+ * Much of this code was taken and adapted from the yahoo module for
+- * gaim released under the GNU GPL. This code is also released under the
++ * pidgin released under the GNU GPL. This code is also released under the
+ * GNU GPL.
+ *
+- * This code is derivitive of Gaim <http://gaim.sourceforge.net>
++ * This code is derivitive of Pidgin <http://pidgin.sourceforge.net>
+ * copyright (C) 1998-1999, Mark Spencer <markster@marko.net>
+ * 1998-1999, Adam Fritzler <afritz@marko.net>
+ * 1998-2002, Rob Flynn <rob@marko.net>
+diff --git a/kopete/protocols/yahoo/libkyahoo/yahoo_fn.c b/kopete/protocols/yahoo/libkyahoo/yahoo_fn.c
+index 5671289..72cebd2 100644
+--- a/kopete/protocols/yahoo/libkyahoo/yahoo_fn.c
++++ b/kopete/protocols/yahoo/libkyahoo/yahoo_fn.c
+@@ -1,5 +1,5 @@
+ /*
+- * gaim
++ * pidgin
+ *
+ * Some code copyright (C) 1998-1999, Mark Spencer <markster@marko.net>
+ * libfaim code copyright 1998, 1999 Adam Fritzler <afritz@auk.cx>
+diff --git a/kopete/protocols/yahoo/libkyahoo/yahoo_fn.h b/kopete/protocols/yahoo/libkyahoo/yahoo_fn.h
+index c4b34c8..fc9d68e 100644
+--- a/kopete/protocols/yahoo/libkyahoo/yahoo_fn.h
++++ b/kopete/protocols/yahoo/libkyahoo/yahoo_fn.h
+@@ -1,5 +1,5 @@
+ /*
+- * gaim
++ * pidgin
+ *
+ * Copyright (C) 2003
+ *
+diff --git a/kopete/protocols/yahoo/yahooaccount.cpp b/kopete/protocols/yahoo/yahooaccount.cpp
+index 7cc330f..a38fecc 100644
+--- a/kopete/protocols/yahoo/yahooaccount.cpp
++++ b/kopete/protocols/yahoo/yahooaccount.cpp
+@@ -174,7 +174,7 @@ TQString YahooAccount::stripMsgColorCodes(const TQString& msg)
+ filteredMsg.replace( "\033[4m", "<u>" );
+ filteredMsg.replace( "\033[x4m", "</u>" );
+
+- //GAIM doesn't check for ^[[3m. Does this ever get sent?
++ //PIDGIN doesn't check for ^[[3m. Does this ever get sent?
+ filteredMsg.replace( "\033[3m", "<i>" );
+ filteredMsg.replace( "\033[x3m", "</i>" );
+
diff --git a/gentoo/trinity-base/kopete/files/kopete-3.5.13.1-patches/0013.2-412a55a-update-kopete-references-of-gaim-to-pidgin-resolve-bug-865.patch b/gentoo/trinity-base/kopete/files/kopete-3.5.13.1-patches/0013.2-412a55a-update-kopete-references-of-gaim-to-pidgin-resolve-bug-865.patch
new file mode 100644
index 000000000..ffd366283
--- /dev/null
+++ b/gentoo/trinity-base/kopete/files/kopete-3.5.13.1-patches/0013.2-412a55a-update-kopete-references-of-gaim-to-pidgin-resolve-bug-865.patch
@@ -0,0 +1,450 @@
+diff --git a/kopete/styles/CMakeLists.txt b/kopete/styles/CMakeLists.txt
+index a98079a..7a4653e 100644
+--- a/kopete/styles/CMakeLists.txt
++++ b/kopete/styles/CMakeLists.txt
+@@ -15,4 +15,4 @@ add_subdirectory( Clean )
+ add_subdirectory( Clear )
+ add_subdirectory( Konqi )
+ add_subdirectory( Retropete )
+-add_subdirectory( Gaim )
++add_subdirectory( Pidgin )
+diff --git a/kopete/styles/Gaim/CMakeLists.txt b/kopete/styles/Gaim/CMakeLists.txt
+deleted file mode 100644
+index f08e42e..0000000
+--- a/kopete/styles/Gaim/CMakeLists.txt
++++ /dev/null
+@@ -1,12 +0,0 @@
+-#################################################
+-#
+-# (C) 2010-2011 Serghei Amelian
+-# serghei (DOT) amelian (AT) gmail.com
+-#
+-# Improvements and feedback are welcome
+-#
+-# This file is released under GPL >= 2
+-#
+-#################################################
+-
+-add_subdirectory( Contents )
+diff --git a/kopete/styles/Gaim/CREDITS b/kopete/styles/Gaim/CREDITS
+deleted file mode 100644
+index 4e52378..0000000
+--- a/kopete/styles/Gaim/CREDITS
++++ /dev/null
+@@ -1,7 +0,0 @@
+-Original textonly Style for Adium written by Mark Fickett
+-http://www.adiumxtras.com/index.php?a=xtras&xtra_id=44
+-
+-Modified justtext Style for Adium written by Huw Rowlands
+-http://www.adiumxtras.com/index.php?a=xtras&xtra_id=990
+-
+-Modified Gaim Style for Kopete written by Thanos Kyritsis
+diff --git a/kopete/styles/Gaim/Contents/CMakeLists.txt b/kopete/styles/Gaim/Contents/CMakeLists.txt
+deleted file mode 100644
+index 88724a1..0000000
+--- a/kopete/styles/Gaim/Contents/CMakeLists.txt
++++ /dev/null
+@@ -1,12 +0,0 @@
+-#################################################
+-#
+-# (C) 2010-2011 Serghei Amelian
+-# serghei (DOT) amelian (AT) gmail.com
+-#
+-# Improvements and feedback are welcome
+-#
+-# This file is released under GPL >= 2
+-#
+-#################################################
+-
+-add_subdirectory( Resources )
+diff --git a/kopete/styles/Gaim/Contents/Info.plist b/kopete/styles/Gaim/Contents/Info.plist
+deleted file mode 100644
+index c5fb682..0000000
+--- a/kopete/styles/Gaim/Contents/Info.plist
++++ /dev/null
+@@ -1,31 +0,0 @@
+-<?xml version="1.0" encoding="UTF-8"?>
+-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
+- "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+-<plist version="1.0">
+-<dict>
+- <key>CFBundleDevelopmentRegion</key>
+- <string>English</string>
+- <key>CFBundleGetInfoString</key>
+- <string>Gaim Kopete chat Style</string>
+- <key>CFBundleIdentifier</key>
+- <string>Kopete.Gaim.style</string>
+- <key>CFBundleInfoDictionaryVersion</key>
+- <string>1.0</string>
+- <key>CFBundleName</key>
+- <string>Gaim</string>
+- <key>CFBundlePackageType</key>
+- <string>KopeteChatStyle</string>
+- <key>DefaultBackgroundColor</key>
+- <string>FFFFFF</string>
+- <key>DefaultFontFamily</key>
+- <string>DejaVu Sans Mono</string>
+- <key>DefaultFontSize</key>
+- <integer>12</integer>
+- <key>DisableCustomBackground</key>
+- <false/>
+- <key>DisplayNameForNoVariant</key>
+- <string>grays</string>
+- <key>ShowsUserIcons</key>
+- <false/>
+-</dict>
+-</plist>
+diff --git a/kopete/styles/Gaim/Contents/Makefile.am b/kopete/styles/Gaim/Contents/Makefile.am
+deleted file mode 100644
+index 6940fe8..0000000
+--- a/kopete/styles/Gaim/Contents/Makefile.am
++++ /dev/null
+@@ -1 +0,0 @@
+-SUBDIRS = Resources
+\ No newline at end of file
+diff --git a/kopete/styles/Gaim/Contents/Resources/CMakeLists.txt b/kopete/styles/Gaim/Contents/Resources/CMakeLists.txt
+deleted file mode 100644
+index f212a87..0000000
+--- a/kopete/styles/Gaim/Contents/Resources/CMakeLists.txt
++++ /dev/null
+@@ -1,18 +0,0 @@
+-#################################################
+-#
+-# (C) 2010-2011 Serghei Amelian
+-# serghei (DOT) amelian (AT) gmail.com
+-#
+-# Improvements and feedback are welcome
+-#
+-# This file is released under GPL >= 2
+-#
+-#################################################
+-
+-add_subdirectory( Incoming )
+-add_subdirectory( Outgoing )
+-add_subdirectory( Variants )
+-
+-install( FILES
+- main.css Footer.html Header.html Status.html
+- DESTINATION ${DATA_INSTALL_DIR}/kopete/styles/Gaim/Contents/Resources )
+diff --git a/kopete/styles/Gaim/Contents/Resources/Incoming/Action.html b/kopete/styles/Gaim/Contents/Resources/Incoming/Action.html
+deleted file mode 100644
+index 0f2993c..0000000
+--- a/kopete/styles/Gaim/Contents/Resources/Incoming/Action.html
++++ /dev/null
+@@ -1,6 +0,0 @@
+-<div class="KopeteMessage" style="direction: %messageDirection%;">
+- <span style="color:%senderColor%;s"><span class="inActionTime">(%time{%H:%M:%S}%) </span>
+- <span class="inActionMetacontact">%sender%:&nbsp;</span></span>
+- <span class="inActionMessage" style="background-color: %textbackgroundcolor{#4386cf}%;">%message%</span>
+-</div>
+-<div id="insert"></div>
+diff --git a/kopete/styles/Gaim/Contents/Resources/Incoming/CMakeLists.txt b/kopete/styles/Gaim/Contents/Resources/Incoming/CMakeLists.txt
+deleted file mode 100644
+index f4a2302..0000000
+--- a/kopete/styles/Gaim/Contents/Resources/Incoming/CMakeLists.txt
++++ /dev/null
+@@ -1,14 +0,0 @@
+-#################################################
+-#
+-# (C) 2010-2011 Serghei Amelian
+-# serghei (DOT) amelian (AT) gmail.com
+-#
+-# Improvements and feedback are welcome
+-#
+-# This file is released under GPL >= 2
+-#
+-#################################################
+-
+-install( FILES
+- Action.html Content.html NextContent.html
+- DESTINATION ${DATA_INSTALL_DIR}/kopete/styles/Gaim/Contents/Resources/Incoming )
+diff --git a/kopete/styles/Gaim/Contents/Resources/Incoming/Content.html b/kopete/styles/Gaim/Contents/Resources/Incoming/Content.html
+deleted file mode 100644
+index 89d07c9..0000000
+--- a/kopete/styles/Gaim/Contents/Resources/Incoming/Content.html
++++ /dev/null
+@@ -1,6 +0,0 @@
+-<div class="KopeteMessage" style="direction: %messageDirection%;">
+- <span style="color:%senderColor%;"><span class="inContentTime">(%time{%H:%M:%S}%) </span>
+- <span class="inMetacontact">%sender%:&nbsp;</span></span>
+- <span class="IncomingMessage" style="background-color: %textbackgroundcolor{#4386cf}%;">%message%</span>
+-</div>
+-<div id="insert"></div>
+diff --git a/kopete/styles/Gaim/Contents/Resources/Incoming/Makefile.am b/kopete/styles/Gaim/Contents/Resources/Incoming/Makefile.am
+deleted file mode 100644
+index dea2810..0000000
+--- a/kopete/styles/Gaim/Contents/Resources/Incoming/Makefile.am
++++ /dev/null
+@@ -1,4 +0,0 @@
+-style_DATA = Action.html Content.html NextContent.html
+-styledir = $(kde_datadir)/kopete/styles/Gaim/Contents/Resources/Incoming
+-
+-EXTRA_DIST = $(style_DATA)
+\ No newline at end of file
+diff --git a/kopete/styles/Gaim/Contents/Resources/Incoming/NextContent.html b/kopete/styles/Gaim/Contents/Resources/Incoming/NextContent.html
+deleted file mode 100644
+index 89d07c9..0000000
+--- a/kopete/styles/Gaim/Contents/Resources/Incoming/NextContent.html
++++ /dev/null
+@@ -1,6 +0,0 @@
+-<div class="KopeteMessage" style="direction: %messageDirection%;">
+- <span style="color:%senderColor%;"><span class="inContentTime">(%time{%H:%M:%S}%) </span>
+- <span class="inMetacontact">%sender%:&nbsp;</span></span>
+- <span class="IncomingMessage" style="background-color: %textbackgroundcolor{#4386cf}%;">%message%</span>
+-</div>
+-<div id="insert"></div>
+diff --git a/kopete/styles/Gaim/Contents/Resources/Makefile.am b/kopete/styles/Gaim/Contents/Resources/Makefile.am
+deleted file mode 100644
+index 75c9567..0000000
+--- a/kopete/styles/Gaim/Contents/Resources/Makefile.am
++++ /dev/null
+@@ -1,5 +0,0 @@
+-SUBDIRS = Incoming Outgoing Variants
+-style_DATA = main.css Footer.html Header.html Status.html
+-styledir = $(kde_datadir)/kopete/styles/Gaim/Contents/Resources
+-
+-EXTRA_DIST = $(style_DATA)
+\ No newline at end of file
+diff --git a/kopete/styles/Gaim/Contents/Resources/Outgoing/Action.html b/kopete/styles/Gaim/Contents/Resources/Outgoing/Action.html
+deleted file mode 100644
+index a7d6ef0..0000000
+--- a/kopete/styles/Gaim/Contents/Resources/Outgoing/Action.html
++++ /dev/null
+@@ -1,6 +0,0 @@
+-<div class="KopeteMessage" style="direction: %messageDirection%;">
+- <span style="color:%senderColor%;"><span class="outActionTime">(%time{%H:%M:%S}%) </span>
+- <span class="outActionMetacontact">%sender%:&nbsp;</span></span>
+- <span class="outActionMessage" style="background-color: %textbackgroundcolor{#4386cf}%;">%message%</span>
+-</div>
+-<div id="insert"></div>
+diff --git a/kopete/styles/Gaim/Contents/Resources/Outgoing/CMakeLists.txt b/kopete/styles/Gaim/Contents/Resources/Outgoing/CMakeLists.txt
+deleted file mode 100644
+index 32d0ae5..0000000
+--- a/kopete/styles/Gaim/Contents/Resources/Outgoing/CMakeLists.txt
++++ /dev/null
+@@ -1,14 +0,0 @@
+-#################################################
+-#
+-# (C) 2010-2011 Serghei Amelian
+-# serghei (DOT) amelian (AT) gmail.com
+-#
+-# Improvements and feedback are welcome
+-#
+-# This file is released under GPL >= 2
+-#
+-#################################################
+-
+-install( FILES
+- Action.html Content.html NextContent.html
+- DESTINATION ${DATA_INSTALL_DIR}/kopete/styles/Gaim/Contents/Resources/Outgoing )
+diff --git a/kopete/styles/Gaim/Contents/Resources/Outgoing/Content.html b/kopete/styles/Gaim/Contents/Resources/Outgoing/Content.html
+deleted file mode 100644
+index 9ea2bb6..0000000
+--- a/kopete/styles/Gaim/Contents/Resources/Outgoing/Content.html
++++ /dev/null
+@@ -1,6 +0,0 @@
+-<div class="KopeteMessage" style="direction: %messageDirection%;">
+- <span style="color:%senderColor%;"><span class="outContentTime">(%time{%H:%M:%S}%) </span>
+- <span class="outMetacontact">%sender%:&nbsp;</span></span>
+- <span class="OutgoingMessage" style="background-color: %textbackgroundcolor{#4386cf}%;">%message%</span>
+-</div>
+-<div id="insert"></div>
+diff --git a/kopete/styles/Gaim/Contents/Resources/Outgoing/Makefile.am b/kopete/styles/Gaim/Contents/Resources/Outgoing/Makefile.am
+deleted file mode 100644
+index ce2edce..0000000
+--- a/kopete/styles/Gaim/Contents/Resources/Outgoing/Makefile.am
++++ /dev/null
+@@ -1,4 +0,0 @@
+-style_DATA = Action.html Content.html NextContent.html
+-styledir = $(kde_datadir)/kopete/styles/Gaim/Contents/Resources/Outgoing
+-
+-EXTRA_DIST = $(style_DATA)
+diff --git a/kopete/styles/Gaim/Contents/Resources/Outgoing/NextContent.html b/kopete/styles/Gaim/Contents/Resources/Outgoing/NextContent.html
+deleted file mode 100644
+index 9ea2bb6..0000000
+--- a/kopete/styles/Gaim/Contents/Resources/Outgoing/NextContent.html
++++ /dev/null
+@@ -1,6 +0,0 @@
+-<div class="KopeteMessage" style="direction: %messageDirection%;">
+- <span style="color:%senderColor%;"><span class="outContentTime">(%time{%H:%M:%S}%) </span>
+- <span class="outMetacontact">%sender%:&nbsp;</span></span>
+- <span class="OutgoingMessage" style="background-color: %textbackgroundcolor{#4386cf}%;">%message%</span>
+-</div>
+-<div id="insert"></div>
+diff --git a/kopete/styles/Gaim/Contents/Resources/Status.html b/kopete/styles/Gaim/Contents/Resources/Status.html
+deleted file mode 100644
+index 4858785..0000000
+--- a/kopete/styles/Gaim/Contents/Resources/Status.html
++++ /dev/null
+@@ -1,5 +0,0 @@
+-<div class="KopeteMessage" style="direction: %messageDirection%;">
+- <span class="InternalTime">(%time{%H:%M:%S}%) </span>
+- <span class="InternalDelim">#&nbsp;</span>
+- <span class="InternalMessage">%message%</span>
+-</div>
+diff --git a/kopete/styles/Gaim/Contents/Resources/Variants/CMakeLists.txt b/kopete/styles/Gaim/Contents/Resources/Variants/CMakeLists.txt
+deleted file mode 100644
+index fda3022..0000000
+--- a/kopete/styles/Gaim/Contents/Resources/Variants/CMakeLists.txt
++++ /dev/null
+@@ -1,14 +0,0 @@
+-#################################################
+-#
+-# (C) 2010-2011 Serghei Amelian
+-# serghei (DOT) amelian (AT) gmail.com
+-#
+-# Improvements and feedback are welcome
+-#
+-# This file is released under GPL >= 2
+-#
+-#################################################
+-
+-install( FILES
+- No-Colors.css Name-Colors.css Status-Colors.css Contact-Colors.css
+- DESTINATION ${DATA_INSTALL_DIR}/kopete/styles/Gaim/Contents/Resources/Variants )
+diff --git a/kopete/styles/Gaim/Contents/Resources/Variants/Contact-Colors.css b/kopete/styles/Gaim/Contents/Resources/Variants/Contact-Colors.css
+deleted file mode 100644
+index 7a85556..0000000
+--- a/kopete/styles/Gaim/Contents/Resources/Variants/Contact-Colors.css
++++ /dev/null
+@@ -1,10 +0,0 @@
+-
+-@import url(../main.css);
+-
+-.inContentTime, .inMetacontact {
+- color: inherit;
+-}
+-
+-.outContentTime, .outMetacontact {
+- color: inherit;
+-}
+\ No newline at end of file
+diff --git a/kopete/styles/Gaim/Contents/Resources/Variants/Makefile.am b/kopete/styles/Gaim/Contents/Resources/Variants/Makefile.am
+deleted file mode 100644
+index bdd4856..0000000
+--- a/kopete/styles/Gaim/Contents/Resources/Variants/Makefile.am
++++ /dev/null
+@@ -1,4 +0,0 @@
+-style_DATA = No-Colors.css Name-Colors.css Status-Colors.css Contact-Colors.css
+-styledir = $(kde_datadir)/kopete/styles/Gaim/Contents/Resources/Variants
+-
+-EXTRA_DIST = $(style_DATA)
+\ No newline at end of file
+diff --git a/kopete/styles/Gaim/Contents/Resources/Variants/Name-Colors.css b/kopete/styles/Gaim/Contents/Resources/Variants/Name-Colors.css
+deleted file mode 100644
+index f9fce97..0000000
+--- a/kopete/styles/Gaim/Contents/Resources/Variants/Name-Colors.css
++++ /dev/null
+@@ -1,13 +0,0 @@
+-@import url(../main.css);
+-
+-.inActionTime, .inActionMetacontact, .inActionMessage {
+- color: #000000;
+-}
+-
+-.outActionTime, .outActionMetacontact, .outActionMessage {
+- color: #000000;
+-}
+-
+-.InternalTime, .InternalDelim, .InternalMessage {
+- color: #000000;
+-}
+\ No newline at end of file
+diff --git a/kopete/styles/Gaim/Contents/Resources/Variants/No-Colors.css b/kopete/styles/Gaim/Contents/Resources/Variants/No-Colors.css
+deleted file mode 100644
+index d847a19..0000000
+--- a/kopete/styles/Gaim/Contents/Resources/Variants/No-Colors.css
++++ /dev/null
+@@ -1,22 +0,0 @@
+-@import url(../main.css);
+-
+-.inContentTime, .inMetacontact {
+- color: #000000;
+-}
+-
+-.outContentTime, .outMetacontact {
+- color: #000000;
+-}
+-
+-.inActionTime, .inActionMetacontact, .inActionMessage {
+- color: #000000;
+-}
+-
+-.outActionTime, .outActionMetacontact, .outActionMessage {
+- color: #000000;
+-}
+-
+-.InternalTime, .InternalDelim, .InternalMessage {
+- color: #000000;
+-}
+-
+diff --git a/kopete/styles/Gaim/Contents/Resources/Variants/Status-Colors.css b/kopete/styles/Gaim/Contents/Resources/Variants/Status-Colors.css
+deleted file mode 100644
+index 373f6d7..0000000
+--- a/kopete/styles/Gaim/Contents/Resources/Variants/Status-Colors.css
++++ /dev/null
+@@ -1,9 +0,0 @@
+-@import url(../main.css);
+-
+-.inContentTime, .inMetacontact {
+- color: #000000;
+-}
+-
+-.outContentTime, .outMetacontact {
+- color: #000000;
+-}
+\ No newline at end of file
+diff --git a/kopete/styles/Gaim/Contents/Resources/main.css b/kopete/styles/Gaim/Contents/Resources/main.css
+deleted file mode 100644
+index 393d2f1..0000000
+--- a/kopete/styles/Gaim/Contents/Resources/main.css
++++ /dev/null
+@@ -1,40 +0,0 @@
+-/* textonly by Mark Fickett, 2004. Poke/edit/maul, but leave credit - think GPL */
+-/* Generally: naib.webhop.org Adium-related: naib.webhop.org/~markfickett/adium */
+-
+-body {
+- background: #ffffff;
+-}
+-
+-div {
+- overflow: auto;
+-}
+-
+-a:link { text-decoration: none; }
+-a:visited { text-decoration: none; }
+-a:hover { text-decoration: underline; }
+-a:active { text-decoration: none; }
+-
+-.inMetacontact, .outMetacontact, .inActionMetacontact, .outActionMetacontact, .InternalDelim {
+- font-weight: bold;
+-}
+-
+-.inContentTime, .inMetacontact {
+- color: #a82f2f;
+-}
+-
+-.outContentTime, .outMetacontact {
+- color: #16569e;
+-}
+-
+-.inActionTime, .inActionMetacontact, .inActionMessage {
+- color: green;
+-}
+-
+-.outActionTime, .outActionMetacontact, .outActionMessage {
+- color: green;
+-}
+-
+-.InternalTime, .InternalDelim, .InternalMessage {
+- color: #9400d3;
+-}
+-
+diff --git a/kopete/styles/Gaim/Makefile.am b/kopete/styles/Gaim/Makefile.am
+deleted file mode 100644
+index 331c9b5..0000000
+--- a/kopete/styles/Gaim/Makefile.am
++++ /dev/null
+@@ -1 +0,0 @@
+-SUBDIRS = Contents
+\ No newline at end of file
diff --git a/gentoo/trinity-base/kopete/files/kopete-3.5.13.1-patches/0013.3-412a55a-update-kopete-references-of-gaim-to-pidgin-resolve-bug-865.patch b/gentoo/trinity-base/kopete/files/kopete-3.5.13.1-patches/0013.3-412a55a-update-kopete-references-of-gaim-to-pidgin-resolve-bug-865.patch
new file mode 100644
index 000000000..418fd4120
--- /dev/null
+++ b/gentoo/trinity-base/kopete/files/kopete-3.5.13.1-patches/0013.3-412a55a-update-kopete-references-of-gaim-to-pidgin-resolve-bug-865.patch
@@ -0,0 +1,454 @@
+diff --git a/kopete/styles/Makefile.am b/kopete/styles/Makefile.am
+index 39e20e7..3d7bcf0 100644
+--- a/kopete/styles/Makefile.am
++++ b/kopete/styles/Makefile.am
+@@ -1,2 +1,2 @@
+-SUBDIRS = Kopete Hacker Clean Clear Konqi Retropete Gaim
++SUBDIRS = Kopete Hacker Clean Clear Konqi Retropete Pidgin
+
+diff --git a/kopete/styles/Pidgin/CMakeLists.txt b/kopete/styles/Pidgin/CMakeLists.txt
+new file mode 100644
+index 0000000..f08e42e
+--- /dev/null
++++ b/kopete/styles/Pidgin/CMakeLists.txt
+@@ -0,0 +1,12 @@
++#################################################
++#
++# (C) 2010-2011 Serghei Amelian
++# serghei (DOT) amelian (AT) gmail.com
++#
++# Improvements and feedback are welcome
++#
++# This file is released under GPL >= 2
++#
++#################################################
++
++add_subdirectory( Contents )
+diff --git a/kopete/styles/Pidgin/CREDITS b/kopete/styles/Pidgin/CREDITS
+new file mode 100644
+index 0000000..ee91cc7
+--- /dev/null
++++ b/kopete/styles/Pidgin/CREDITS
+@@ -0,0 +1,7 @@
++Original textonly Style for Adium written by Mark Fickett
++http://www.adiumxtras.com/index.php?a=xtras&xtra_id=44
++
++Modified justtext Style for Adium written by Huw Rowlands
++http://www.adiumxtras.com/index.php?a=xtras&xtra_id=990
++
++Modified Pidgin Style for Kopete written by Thanos Kyritsis
+diff --git a/kopete/styles/Pidgin/Contents/CMakeLists.txt b/kopete/styles/Pidgin/Contents/CMakeLists.txt
+new file mode 100644
+index 0000000..88724a1
+--- /dev/null
++++ b/kopete/styles/Pidgin/Contents/CMakeLists.txt
+@@ -0,0 +1,12 @@
++#################################################
++#
++# (C) 2010-2011 Serghei Amelian
++# serghei (DOT) amelian (AT) gmail.com
++#
++# Improvements and feedback are welcome
++#
++# This file is released under GPL >= 2
++#
++#################################################
++
++add_subdirectory( Resources )
+diff --git a/kopete/styles/Pidgin/Contents/Info.plist b/kopete/styles/Pidgin/Contents/Info.plist
+new file mode 100644
+index 0000000..87cd60e
+--- /dev/null
++++ b/kopete/styles/Pidgin/Contents/Info.plist
+@@ -0,0 +1,31 @@
++<?xml version="1.0" encoding="UTF-8"?>
++<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
++ "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
++<plist version="1.0">
++<dict>
++ <key>CFBundleDevelopmentRegion</key>
++ <string>English</string>
++ <key>CFBundleGetInfoString</key>
++ <string>Pidgin Kopete chat Style</string>
++ <key>CFBundleIdentifier</key>
++ <string>Kopete.Pidgin.style</string>
++ <key>CFBundleInfoDictionaryVersion</key>
++ <string>1.0</string>
++ <key>CFBundleName</key>
++ <string>Pidgin</string>
++ <key>CFBundlePackageType</key>
++ <string>KopeteChatStyle</string>
++ <key>DefaultBackgroundColor</key>
++ <string>FFFFFF</string>
++ <key>DefaultFontFamily</key>
++ <string>DejaVu Sans Mono</string>
++ <key>DefaultFontSize</key>
++ <integer>12</integer>
++ <key>DisableCustomBackground</key>
++ <false/>
++ <key>DisplayNameForNoVariant</key>
++ <string>grays</string>
++ <key>ShowsUserIcons</key>
++ <false/>
++</dict>
++</plist>
+diff --git a/kopete/styles/Pidgin/Contents/Makefile.am b/kopete/styles/Pidgin/Contents/Makefile.am
+new file mode 100644
+index 0000000..6940fe8
+--- /dev/null
++++ b/kopete/styles/Pidgin/Contents/Makefile.am
+@@ -0,0 +1 @@
++SUBDIRS = Resources
+\ No newline at end of file
+diff --git a/kopete/styles/Pidgin/Contents/Resources/CMakeLists.txt b/kopete/styles/Pidgin/Contents/Resources/CMakeLists.txt
+new file mode 100644
+index 0000000..1ab98d5
+--- /dev/null
++++ b/kopete/styles/Pidgin/Contents/Resources/CMakeLists.txt
+@@ -0,0 +1,18 @@
++#################################################
++#
++# (C) 2010-2011 Serghei Amelian
++# serghei (DOT) amelian (AT) gmail.com
++#
++# Improvements and feedback are welcome
++#
++# This file is released under GPL >= 2
++#
++#################################################
++
++add_subdirectory( Incoming )
++add_subdirectory( Outgoing )
++add_subdirectory( Variants )
++
++install( FILES
++ main.css Footer.html Header.html Status.html
++ DESTINATION ${DATA_INSTALL_DIR}/kopete/styles/Pidgin/Contents/Resources )
+diff --git a/kopete/styles/Pidgin/Contents/Resources/Footer.html b/kopete/styles/Pidgin/Contents/Resources/Footer.html
+new file mode 100644
+index 0000000..e69de29
+diff --git a/kopete/styles/Pidgin/Contents/Resources/Header.html b/kopete/styles/Pidgin/Contents/Resources/Header.html
+new file mode 100644
+index 0000000..e69de29
+diff --git a/kopete/styles/Pidgin/Contents/Resources/Incoming/Action.html b/kopete/styles/Pidgin/Contents/Resources/Incoming/Action.html
+new file mode 100644
+index 0000000..0f2993c
+--- /dev/null
++++ b/kopete/styles/Pidgin/Contents/Resources/Incoming/Action.html
+@@ -0,0 +1,6 @@
++<div class="KopeteMessage" style="direction: %messageDirection%;">
++ <span style="color:%senderColor%;s"><span class="inActionTime">(%time{%H:%M:%S}%) </span>
++ <span class="inActionMetacontact">%sender%:&nbsp;</span></span>
++ <span class="inActionMessage" style="background-color: %textbackgroundcolor{#4386cf}%;">%message%</span>
++</div>
++<div id="insert"></div>
+diff --git a/kopete/styles/Pidgin/Contents/Resources/Incoming/CMakeLists.txt b/kopete/styles/Pidgin/Contents/Resources/Incoming/CMakeLists.txt
+new file mode 100644
+index 0000000..6ff0e0d
+--- /dev/null
++++ b/kopete/styles/Pidgin/Contents/Resources/Incoming/CMakeLists.txt
+@@ -0,0 +1,14 @@
++#################################################
++#
++# (C) 2010-2011 Serghei Amelian
++# serghei (DOT) amelian (AT) gmail.com
++#
++# Improvements and feedback are welcome
++#
++# This file is released under GPL >= 2
++#
++#################################################
++
++install( FILES
++ Action.html Content.html NextContent.html
++ DESTINATION ${DATA_INSTALL_DIR}/kopete/styles/Pidgin/Contents/Resources/Incoming )
+diff --git a/kopete/styles/Pidgin/Contents/Resources/Incoming/Content.html b/kopete/styles/Pidgin/Contents/Resources/Incoming/Content.html
+new file mode 100644
+index 0000000..89d07c9
+--- /dev/null
++++ b/kopete/styles/Pidgin/Contents/Resources/Incoming/Content.html
+@@ -0,0 +1,6 @@
++<div class="KopeteMessage" style="direction: %messageDirection%;">
++ <span style="color:%senderColor%;"><span class="inContentTime">(%time{%H:%M:%S}%) </span>
++ <span class="inMetacontact">%sender%:&nbsp;</span></span>
++ <span class="IncomingMessage" style="background-color: %textbackgroundcolor{#4386cf}%;">%message%</span>
++</div>
++<div id="insert"></div>
+diff --git a/kopete/styles/Pidgin/Contents/Resources/Incoming/Makefile.am b/kopete/styles/Pidgin/Contents/Resources/Incoming/Makefile.am
+new file mode 100644
+index 0000000..7cd3902
+--- /dev/null
++++ b/kopete/styles/Pidgin/Contents/Resources/Incoming/Makefile.am
+@@ -0,0 +1,4 @@
++style_DATA = Action.html Content.html NextContent.html
++styledir = $(kde_datadir)/kopete/styles/Pidgin/Contents/Resources/Incoming
++
++EXTRA_DIST = $(style_DATA)
+\ No newline at end of file
+diff --git a/kopete/styles/Pidgin/Contents/Resources/Incoming/NextContent.html b/kopete/styles/Pidgin/Contents/Resources/Incoming/NextContent.html
+new file mode 100644
+index 0000000..89d07c9
+--- /dev/null
++++ b/kopete/styles/Pidgin/Contents/Resources/Incoming/NextContent.html
+@@ -0,0 +1,6 @@
++<div class="KopeteMessage" style="direction: %messageDirection%;">
++ <span style="color:%senderColor%;"><span class="inContentTime">(%time{%H:%M:%S}%) </span>
++ <span class="inMetacontact">%sender%:&nbsp;</span></span>
++ <span class="IncomingMessage" style="background-color: %textbackgroundcolor{#4386cf}%;">%message%</span>
++</div>
++<div id="insert"></div>
+diff --git a/kopete/styles/Pidgin/Contents/Resources/Makefile.am b/kopete/styles/Pidgin/Contents/Resources/Makefile.am
+new file mode 100644
+index 0000000..f350045
+--- /dev/null
++++ b/kopete/styles/Pidgin/Contents/Resources/Makefile.am
+@@ -0,0 +1,5 @@
++SUBDIRS = Incoming Outgoing Variants
++style_DATA = main.css Footer.html Header.html Status.html
++styledir = $(kde_datadir)/kopete/styles/Pidgin/Contents/Resources
++
++EXTRA_DIST = $(style_DATA)
+\ No newline at end of file
+diff --git a/kopete/styles/Pidgin/Contents/Resources/Outgoing/Action.html b/kopete/styles/Pidgin/Contents/Resources/Outgoing/Action.html
+new file mode 100644
+index 0000000..a7d6ef0
+--- /dev/null
++++ b/kopete/styles/Pidgin/Contents/Resources/Outgoing/Action.html
+@@ -0,0 +1,6 @@
++<div class="KopeteMessage" style="direction: %messageDirection%;">
++ <span style="color:%senderColor%;"><span class="outActionTime">(%time{%H:%M:%S}%) </span>
++ <span class="outActionMetacontact">%sender%:&nbsp;</span></span>
++ <span class="outActionMessage" style="background-color: %textbackgroundcolor{#4386cf}%;">%message%</span>
++</div>
++<div id="insert"></div>
+diff --git a/kopete/styles/Pidgin/Contents/Resources/Outgoing/CMakeLists.txt b/kopete/styles/Pidgin/Contents/Resources/Outgoing/CMakeLists.txt
+new file mode 100644
+index 0000000..68bcd9c
+--- /dev/null
++++ b/kopete/styles/Pidgin/Contents/Resources/Outgoing/CMakeLists.txt
+@@ -0,0 +1,14 @@
++#################################################
++#
++# (C) 2010-2011 Serghei Amelian
++# serghei (DOT) amelian (AT) gmail.com
++#
++# Improvements and feedback are welcome
++#
++# This file is released under GPL >= 2
++#
++#################################################
++
++install( FILES
++ Action.html Content.html NextContent.html
++ DESTINATION ${DATA_INSTALL_DIR}/kopete/styles/Pidgin/Contents/Resources/Outgoing )
+diff --git a/kopete/styles/Pidgin/Contents/Resources/Outgoing/Content.html b/kopete/styles/Pidgin/Contents/Resources/Outgoing/Content.html
+new file mode 100644
+index 0000000..9ea2bb6
+--- /dev/null
++++ b/kopete/styles/Pidgin/Contents/Resources/Outgoing/Content.html
+@@ -0,0 +1,6 @@
++<div class="KopeteMessage" style="direction: %messageDirection%;">
++ <span style="color:%senderColor%;"><span class="outContentTime">(%time{%H:%M:%S}%) </span>
++ <span class="outMetacontact">%sender%:&nbsp;</span></span>
++ <span class="OutgoingMessage" style="background-color: %textbackgroundcolor{#4386cf}%;">%message%</span>
++</div>
++<div id="insert"></div>
+diff --git a/kopete/styles/Pidgin/Contents/Resources/Outgoing/Makefile.am b/kopete/styles/Pidgin/Contents/Resources/Outgoing/Makefile.am
+new file mode 100644
+index 0000000..85a558d
+--- /dev/null
++++ b/kopete/styles/Pidgin/Contents/Resources/Outgoing/Makefile.am
+@@ -0,0 +1,4 @@
++style_DATA = Action.html Content.html NextContent.html
++styledir = $(kde_datadir)/kopete/styles/Pidgin/Contents/Resources/Outgoing
++
++EXTRA_DIST = $(style_DATA)
+diff --git a/kopete/styles/Pidgin/Contents/Resources/Outgoing/NextContent.html b/kopete/styles/Pidgin/Contents/Resources/Outgoing/NextContent.html
+new file mode 100644
+index 0000000..9ea2bb6
+--- /dev/null
++++ b/kopete/styles/Pidgin/Contents/Resources/Outgoing/NextContent.html
+@@ -0,0 +1,6 @@
++<div class="KopeteMessage" style="direction: %messageDirection%;">
++ <span style="color:%senderColor%;"><span class="outContentTime">(%time{%H:%M:%S}%) </span>
++ <span class="outMetacontact">%sender%:&nbsp;</span></span>
++ <span class="OutgoingMessage" style="background-color: %textbackgroundcolor{#4386cf}%;">%message%</span>
++</div>
++<div id="insert"></div>
+diff --git a/kopete/styles/Pidgin/Contents/Resources/Status.html b/kopete/styles/Pidgin/Contents/Resources/Status.html
+new file mode 100644
+index 0000000..4858785
+--- /dev/null
++++ b/kopete/styles/Pidgin/Contents/Resources/Status.html
+@@ -0,0 +1,5 @@
++<div class="KopeteMessage" style="direction: %messageDirection%;">
++ <span class="InternalTime">(%time{%H:%M:%S}%) </span>
++ <span class="InternalDelim">#&nbsp;</span>
++ <span class="InternalMessage">%message%</span>
++</div>
+diff --git a/kopete/styles/Pidgin/Contents/Resources/Variants/CMakeLists.txt b/kopete/styles/Pidgin/Contents/Resources/Variants/CMakeLists.txt
+new file mode 100644
+index 0000000..4976ef9
+--- /dev/null
++++ b/kopete/styles/Pidgin/Contents/Resources/Variants/CMakeLists.txt
+@@ -0,0 +1,14 @@
++#################################################
++#
++# (C) 2010-2011 Serghei Amelian
++# serghei (DOT) amelian (AT) gmail.com
++#
++# Improvements and feedback are welcome
++#
++# This file is released under GPL >= 2
++#
++#################################################
++
++install( FILES
++ No-Colors.css Name-Colors.css Status-Colors.css Contact-Colors.css
++ DESTINATION ${DATA_INSTALL_DIR}/kopete/styles/Pidgin/Contents/Resources/Variants )
+diff --git a/kopete/styles/Pidgin/Contents/Resources/Variants/Contact-Colors.css b/kopete/styles/Pidgin/Contents/Resources/Variants/Contact-Colors.css
+new file mode 100644
+index 0000000..7a85556
+--- /dev/null
++++ b/kopete/styles/Pidgin/Contents/Resources/Variants/Contact-Colors.css
+@@ -0,0 +1,10 @@
++
++@import url(../main.css);
++
++.inContentTime, .inMetacontact {
++ color: inherit;
++}
++
++.outContentTime, .outMetacontact {
++ color: inherit;
++}
+\ No newline at end of file
+diff --git a/kopete/styles/Pidgin/Contents/Resources/Variants/Makefile.am b/kopete/styles/Pidgin/Contents/Resources/Variants/Makefile.am
+new file mode 100644
+index 0000000..5bbbc31
+--- /dev/null
++++ b/kopete/styles/Pidgin/Contents/Resources/Variants/Makefile.am
+@@ -0,0 +1,4 @@
++style_DATA = No-Colors.css Name-Colors.css Status-Colors.css Contact-Colors.css
++styledir = $(kde_datadir)/kopete/styles/Pidgin/Contents/Resources/Variants
++
++EXTRA_DIST = $(style_DATA)
+\ No newline at end of file
+diff --git a/kopete/styles/Pidgin/Contents/Resources/Variants/Name-Colors.css b/kopete/styles/Pidgin/Contents/Resources/Variants/Name-Colors.css
+new file mode 100644
+index 0000000..f9fce97
+--- /dev/null
++++ b/kopete/styles/Pidgin/Contents/Resources/Variants/Name-Colors.css
+@@ -0,0 +1,13 @@
++@import url(../main.css);
++
++.inActionTime, .inActionMetacontact, .inActionMessage {
++ color: #000000;
++}
++
++.outActionTime, .outActionMetacontact, .outActionMessage {
++ color: #000000;
++}
++
++.InternalTime, .InternalDelim, .InternalMessage {
++ color: #000000;
++}
+\ No newline at end of file
+diff --git a/kopete/styles/Pidgin/Contents/Resources/Variants/No-Colors.css b/kopete/styles/Pidgin/Contents/Resources/Variants/No-Colors.css
+new file mode 100644
+index 0000000..d847a19
+--- /dev/null
++++ b/kopete/styles/Pidgin/Contents/Resources/Variants/No-Colors.css
+@@ -0,0 +1,22 @@
++@import url(../main.css);
++
++.inContentTime, .inMetacontact {
++ color: #000000;
++}
++
++.outContentTime, .outMetacontact {
++ color: #000000;
++}
++
++.inActionTime, .inActionMetacontact, .inActionMessage {
++ color: #000000;
++}
++
++.outActionTime, .outActionMetacontact, .outActionMessage {
++ color: #000000;
++}
++
++.InternalTime, .InternalDelim, .InternalMessage {
++ color: #000000;
++}
++
+diff --git a/kopete/styles/Pidgin/Contents/Resources/Variants/Status-Colors.css b/kopete/styles/Pidgin/Contents/Resources/Variants/Status-Colors.css
+new file mode 100644
+index 0000000..373f6d7
+--- /dev/null
++++ b/kopete/styles/Pidgin/Contents/Resources/Variants/Status-Colors.css
+@@ -0,0 +1,9 @@
++@import url(../main.css);
++
++.inContentTime, .inMetacontact {
++ color: #000000;
++}
++
++.outContentTime, .outMetacontact {
++ color: #000000;
++}
+\ No newline at end of file
+diff --git a/kopete/styles/Pidgin/Contents/Resources/main.css b/kopete/styles/Pidgin/Contents/Resources/main.css
+new file mode 100644
+index 0000000..393d2f1
+--- /dev/null
++++ b/kopete/styles/Pidgin/Contents/Resources/main.css
+@@ -0,0 +1,40 @@
++/* textonly by Mark Fickett, 2004. Poke/edit/maul, but leave credit - think GPL */
++/* Generally: naib.webhop.org Adium-related: naib.webhop.org/~markfickett/adium */
++
++body {
++ background: #ffffff;
++}
++
++div {
++ overflow: auto;
++}
++
++a:link { text-decoration: none; }
++a:visited { text-decoration: none; }
++a:hover { text-decoration: underline; }
++a:active { text-decoration: none; }
++
++.inMetacontact, .outMetacontact, .inActionMetacontact, .outActionMetacontact, .InternalDelim {
++ font-weight: bold;
++}
++
++.inContentTime, .inMetacontact {
++ color: #a82f2f;
++}
++
++.outContentTime, .outMetacontact {
++ color: #16569e;
++}
++
++.inActionTime, .inActionMetacontact, .inActionMessage {
++ color: green;
++}
++
++.outActionTime, .outActionMetacontact, .outActionMessage {
++ color: green;
++}
++
++.InternalTime, .InternalDelim, .InternalMessage {
++ color: #9400d3;
++}
++
+diff --git a/kopete/styles/Pidgin/Makefile.am b/kopete/styles/Pidgin/Makefile.am
+new file mode 100644
+index 0000000..331c9b5
+--- /dev/null
++++ b/kopete/styles/Pidgin/Makefile.am
+@@ -0,0 +1 @@
++SUBDIRS = Contents
+\ No newline at end of file
diff --git a/gentoo/trinity-base/kopete/files/kopete-3.5.13.1-patches/0014-265c466-added-test-of-the-presence-libgadu-with-automake.patch b/gentoo/trinity-base/kopete/files/kopete-3.5.13.1-patches/0014-265c466-added-test-of-the-presence-libgadu-with-automake.patch
new file mode 100644
index 000000000..1c5de8523
--- /dev/null
+++ b/gentoo/trinity-base/kopete/files/kopete-3.5.13.1-patches/0014-265c466-added-test-of-the-presence-libgadu-with-automake.patch
@@ -0,0 +1,21 @@
+diff --git a/kopete/protocols/configure.in.in b/kopete/protocols/configure.in.in
+index 0008f19..7a96cc9 100644
+--- a/kopete/protocols/configure.in.in
++++ b/kopete/protocols/configure.in.in
+@@ -27,6 +27,16 @@ fi
+ dnl This may need a test still for compatibility
+ COMPILE_GADU=true
+ use_libgadu_copy=
++if test "$with_external_libgadu" != "no" ; then
++ # Check and setup for libgadu
++ KDE_PKG_CHECK_MODULES(LIBGG, libgadu, [have_libgg=yes], [have_libgg=no])
++ if test "x$have_libgg" = "xno"; then
++ COMPILE_GADU=
++ AC_MSG_RESULT([not found])
++ else
++ AC_MSG_RESULT([found])
++ fi
++fi
+
+ AC_SUBST(LIBGG_INCLUDES)
+ AC_SUBST(LIBGG_LIBS)
diff --git a/gentoo/trinity-base/kopete/files/kopete-3.5.13.1-patches/0015-1bf5123-remove-unnecessary-language.patch b/gentoo/trinity-base/kopete/files/kopete-3.5.13.1-patches/0015-1bf5123-remove-unnecessary-language.patch
new file mode 100644
index 000000000..a5f9cb40f
--- /dev/null
+++ b/gentoo/trinity-base/kopete/files/kopete-3.5.13.1-patches/0015-1bf5123-remove-unnecessary-language.patch
@@ -0,0 +1,34 @@
+diff --git a/kopete/protocols/gadu/gadudccserver.cpp b/kopete/protocols/gadu/gadudccserver.cpp
+index 6e6c370..13d61b3 100644
+--- a/kopete/protocols/gadu/gadudccserver.cpp
++++ b/kopete/protocols/gadu/gadudccserver.cpp
+@@ -159,7 +159,7 @@ GaduDCCServer::watcher() {
+
+ dccEvent = gg_dcc_watch_fd( dccSock );
+ if ( ! dccEvent ) {
+- // connection is fucked
++ // connection is bad
+ // we should try to reenable it
+ // closeDCC();
+ return;
+diff --git a/kopete/protocols/gadu/gadudcctransaction.cpp b/kopete/protocols/gadu/gadudcctransaction.cpp
+index 7ec8d2a..75e7174 100644
+--- a/kopete/protocols/gadu/gadudcctransaction.cpp
++++ b/kopete/protocols/gadu/gadudcctransaction.cpp
+@@ -324,14 +324,14 @@ GaduDCCTransaction::watcher() {
+
+ dccEvent = gg_dcc_watch_fd( dccSock_ );
+ if ( ! dccEvent ) {
+- // connection is fucked
++ // connection is bad
+ closeDCC();
+ return;
+ }
+ switch ( dccEvent->type ) {
+ case GG_EVENT_DCC_CLIENT_ACCEPT:
+ kdDebug(14100) << " GG_EVENT_DCC_CLIENT_ACCEPT " << endl;
+- // check dccsock->peer_uin, if unknown, fuck it;
++ // check dccsock->peer_uin, if unknown, oh well;
+
+ // is it for us ?
+ account = gaduDCC_->account( dccSock_->uin );
diff --git a/gentoo/trinity-base/kopete/kopete-3.5.13.1.ebuild b/gentoo/trinity-base/kopete/kopete-3.5.13.1.ebuild
new file mode 100644
index 000000000..6f3d1fb84
--- /dev/null
+++ b/gentoo/trinity-base/kopete/kopete-3.5.13.1.ebuild
@@ -0,0 +1,114 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdenetwork"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity multi-protocol IM client"
+KEYWORDS="amd64 x86"
+
+IUSE="jingle gsmlib netmeeting speex kernel_linux"
+PLUGINS="latex autoreplace history contactnotes crypt connectionstatus
+ translator nowlistening webpresence texteffect highlight alias
+ motionautoaway netmeeting addbookmarks statistics smpppdcs"
+PROTOCOLS="gadu groupwise irc xmpp oscar msn sms sametime winpopup yahoo"
+# unsupported USE="v4l2 opengl xscreensaver ssl emoticons-manager "
+# USE=xmms works only with xmms1
+IUSE="${IUSE} ${PLUGINS} ${PROTOCOLS}"
+REQUIRED_USE="
+ jingle? ( xmpp )
+ gsmlib? ( sms )
+ netmeeting? ( msn )
+ speex? ( jingle xmpp )"
+
+# MISSING BOTH_DEPEND
+# x11-libs/libXrender
+# xmpp? ( net-dns/libidn )
+# kernel_linux? ( virtual/opengl )
+# opengl? ( dev-qt/qt-meta[opengl] )
+# xscreensaver? ( x11-libs/libXScrnSaver )
+# xmpp|groupwice? =app-crypt/qca-1.0*
+BOTH_DEPEND="
+ jingle? ( dev-libs/glib:2 )
+ netmeeting? ( dev-libs/glib:2 )
+ webpresence? (
+ dev-libs/libxml2
+ dev-libs/libxslt )
+ jingle? (
+ dev-libs/expat
+ speex? ( >=media-libs/speex-1.1.6 )
+ )
+ gsmlib? ( app-mobilephone/gsmlib )
+ gadu? ( net-libs/libgadu )
+ sametime? ( net-libs/meanwhile )
+ media-libs/libv4l
+"
+
+# MISSING DEPEND
+# x11-proto/videoproto
+# kernel_linux? (
+# x11-libs/libXv
+# )
+# xscreensaver? ( x11-proto/scrnsaverproto )
+DEPEND="${BOTH_DEPEND}
+ kernel_linux? (
+ virtual/os-headers
+ )
+"
+
+# MISSING RDEPEND
+# netmeeting? ( net-voip/ekiga )
+# ssl? ( =app-crypt/qca-tls-1.0* )
+RDEPEND="${BOTH_DEPEND}
+ crypt? ( app-crypt/gnupg )
+ latex? (
+ media-gfx/imagemagick
+ virtual/latex-base )
+ sms? ( !gsmlib? ( || (
+ app-mobilephone/smsclient
+ app-mobilephone/smssend ) ) )
+"
+
+PATCHES=( "${FILESDIR}/${P}-patches" )
+
+src_configure() {
+ mycmakeargs=(
+ $(cmake-utils_use_with jingle JINGLE)
+ $(cmake-utils_use_with gsmlib GSM)
+ $(cmake-utils_use_with netmeeting WEBCAM)
+ $(cmake-utils_use_with speex SPEEX)
+
+ $(cmake-utils_use_build latex KOPETE_PLUGIN_LATEX)
+ $(cmake-utils_use_build autoreplace KOPETE_PLUGIN_AUTOREPLACE)
+ $(cmake-utils_use_build history KOPETE_PLUGIN_HISTORY)
+ $(cmake-utils_use_build contactnotes KOPETE_PLUGIN_CONTACTNOTES)
+ $(cmake-utils_use_build crypt KOPETE_PLUGIN_CRYPTOGRAPHY)
+ $(cmake-utils_use_build connectionstatus KOPETE_PLUGIN_CONNECTIONSTATUS)
+ $(cmake-utils_use_build translator KOPETE_PLUGIN_TRANSLATOR)
+ $(cmake-utils_use_build nowlistening KOPETE_PLUGIN_NOWLISTENING)
+ $(cmake-utils_use_build webpresence KOPETE_PLUGIN_WEBPRESENCE)
+ $(cmake-utils_use_build texteffect KOPETE_PLUGIN_TEXTEFFECT)
+ $(cmake-utils_use_build highlight KOPETE_PLUGIN_HIGHLIGHT)
+ $(cmake-utils_use_build alias KOPETE_PLUGIN_ALIAS)
+ $(cmake-utils_use_build motionautoaway KOPETE_PLUGIN_MOTIONAUTOAWAY)
+ $(cmake-utils_use_build netmeeting KOPETE_PLUGIN_NETMEETING)
+ $(cmake-utils_use_build addbookmarks KOPETE_PLUGIN_ADDBOOKMARKS)
+ $(cmake-utils_use_build statistics KOPETE_PLUGIN_STATISTICS)
+ $(cmake-utils_use_build smpppdcs KOPETE_PLUGIN_SMPPPDCS)
+
+ $(cmake-utils_use_build gadu KOPETE_PROTOCOL_GADU)
+ $(cmake-utils_use_build groupwise KOPETE_PROTOCOL_GROUPWISE)
+ $(cmake-utils_use_build irc KOPETE_PROTOCOL_IRC)
+ $(cmake-utils_use_build xmpp KOPETE_PROTOCOL_JABBER)
+ $(cmake-utils_use_build oscar KOPETE_PROTOCOL_OSCAR)
+ $(cmake-utils_use_build msn KOPETE_PROTOCOL_MSN)
+ $(cmake-utils_use_build sms KOPETE_PROTOCOL_SMS)
+ $(cmake-utils_use_build sametime KOPETE_PROTOCOL_MEANWHILE)
+ $(cmake-utils_use_build winpopup KOPETE_PROTOCOL_WINPOPUP)
+ $(cmake-utils_use_build yahoo KOPETE_PROTOCOL_YAHOO)
+ )
+
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-base/kopete/kopete-9999.ebuild b/gentoo/trinity-base/kopete/kopete-9999.ebuild
new file mode 100644
index 000000000..a938dcc94
--- /dev/null
+++ b/gentoo/trinity-base/kopete/kopete-9999.ebuild
@@ -0,0 +1,112 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdenetwork"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity multi-protocol IM client"
+KEYWORDS=
+
+IUSE="jingle gsmlib netmeeting speex kernel_linux"
+PLUGINS="latex autoreplace history contactnotes crypt connectionstatus
+ translator nowlistening webpresence texteffect highlight alias
+ motionautoaway netmeeting addbookmarks statistics smpppdcs"
+PROTOCOLS="gadu groupwise irc xmpp oscar msn sms sametime winpopup yahoo"
+# unsupported USE="v4l2 opengl xscreensaver ssl emoticons-manager "
+# USE=xmms works only with xmms1
+IUSE="${IUSE} ${PLUGINS} ${PROTOCOLS}"
+REQUIRED_USE="
+ jingle? ( xmpp )
+ gsmlib? ( sms )
+ netmeeting? ( msn )
+ speex? ( jingle xmpp )"
+
+# MISSING BOTH_DEPEND
+# x11-libs/libXrender
+# xmpp? ( net-dns/libidn )
+# kernel_linux? ( virtual/opengl )
+# opengl? ( dev-qt/qt-meta[opengl] )
+# xscreensaver? ( x11-libs/libXScrnSaver )
+# xmpp|groupwice? =app-crypt/qca-1.0*
+BOTH_DEPEND="
+ jingle? ( dev-libs/glib:2 )
+ netmeeting? ( dev-libs/glib:2 )
+ webpresence? (
+ dev-libs/libxml2
+ dev-libs/libxslt )
+ jingle? (
+ dev-libs/expat
+ speex? ( >=media-libs/speex-1.1.6 )
+ )
+ gsmlib? ( app-mobilephone/gsmlib )
+ gadu? ( net-libs/libgadu )
+ sametime? ( net-libs/meanwhile )
+ media-libs/libv4l
+"
+
+# MISSING DEPEND
+# x11-proto/videoproto
+# kernel_linux? (
+# x11-libs/libXv
+# )
+# xscreensaver? ( x11-proto/scrnsaverproto )
+DEPEND="${BOTH_DEPEND}
+ kernel_linux? (
+ virtual/os-headers
+ )
+"
+
+# MISSING RDEPEND
+# netmeeting? ( net-voip/ekiga )
+# ssl? ( =app-crypt/qca-tls-1.0* )
+RDEPEND="${BOTH_DEPEND}
+ crypt? ( app-crypt/gnupg )
+ latex? (
+ media-gfx/imagemagick
+ virtual/latex-base )
+ sms? ( !gsmlib? ( || (
+ app-mobilephone/smsclient
+ app-mobilephone/smssend ) ) )
+"
+
+src_configure() {
+ mycmakeargs=(
+ $(cmake-utils_use_with jingle JINGLE)
+ $(cmake-utils_use_with gsmlib GSM)
+ $(cmake-utils_use_with netmeeting WEBCAM)
+ $(cmake-utils_use_with speex SPEEX)
+
+ $(cmake-utils_use_build latex KOPETE_PLUGIN_LATEX)
+ $(cmake-utils_use_build autoreplace KOPETE_PLUGIN_AUTOREPLACE)
+ $(cmake-utils_use_build history KOPETE_PLUGIN_HISTORY)
+ $(cmake-utils_use_build contactnotes KOPETE_PLUGIN_CONTACTNOTES)
+ $(cmake-utils_use_build crypt KOPETE_PLUGIN_CRYPTOGRAPHY)
+ $(cmake-utils_use_build connectionstatus KOPETE_PLUGIN_CONNECTIONSTATUS)
+ $(cmake-utils_use_build translator KOPETE_PLUGIN_TRANSLATOR)
+ $(cmake-utils_use_build nowlistening KOPETE_PLUGIN_NOWLISTENING)
+ $(cmake-utils_use_build webpresence KOPETE_PLUGIN_WEBPRESENCE)
+ $(cmake-utils_use_build texteffect KOPETE_PLUGIN_TEXTEFFECT)
+ $(cmake-utils_use_build highlight KOPETE_PLUGIN_HIGHLIGHT)
+ $(cmake-utils_use_build alias KOPETE_PLUGIN_ALIAS)
+ $(cmake-utils_use_build motionautoaway KOPETE_PLUGIN_MOTIONAUTOAWAY)
+ $(cmake-utils_use_build netmeeting KOPETE_PLUGIN_NETMEETING)
+ $(cmake-utils_use_build addbookmarks KOPETE_PLUGIN_ADDBOOKMARKS)
+ $(cmake-utils_use_build statistics KOPETE_PLUGIN_STATISTICS)
+ $(cmake-utils_use_build smpppdcs KOPETE_PLUGIN_SMPPPDCS)
+
+ $(cmake-utils_use_build gadu KOPETE_PROTOCOL_GADU)
+ $(cmake-utils_use_build groupwise KOPETE_PROTOCOL_GROUPWISE)
+ $(cmake-utils_use_build irc KOPETE_PROTOCOL_IRC)
+ $(cmake-utils_use_build xmpp KOPETE_PROTOCOL_JABBER)
+ $(cmake-utils_use_build oscar KOPETE_PROTOCOL_OSCAR)
+ $(cmake-utils_use_build msn KOPETE_PROTOCOL_MSN)
+ $(cmake-utils_use_build sms KOPETE_PROTOCOL_SMS)
+ $(cmake-utils_use_build sametime KOPETE_PROTOCOL_MEANWHILE)
+ $(cmake-utils_use_build winpopup KOPETE_PROTOCOL_WINPOPUP)
+ $(cmake-utils_use_build yahoo KOPETE_PROTOCOL_YAHOO)
+ )
+
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-base/kopete/metadata.xml b/gentoo/trinity-base/kopete/metadata.xml
new file mode 100644
index 000000000..14d4a468d
--- /dev/null
+++ b/gentoo/trinity-base/kopete/metadata.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+ <use>
+ <flag name="gsmlib">Add <pkg>app-mobilephone/gsmlib</pkg> support to sms plugin.</flag>
+ <flag name="netmeeting">Add Netmeeting plugin and support to the msn protocol.</flag>
+ <flag name="autoreplace">Build autoreplace plugin.</flag>
+ <flag name="history">Build history plugin.</flag>
+ <flag name="contactnotes">Build contactnotes plugin.</flag>
+ <flag name="connectionstatus">Build connectionstatus plugin.</flag>
+ <flag name="translator">Build history plugin that automaticaly translates incoming and outgoing messages.</flag>
+ <flag name="nowlistening">Build nowlistening plugin.</flag>
+ <flag name="webpresence">Build webpresence plugin that shows your status and some more information on web..</flag>
+ <flag name="texteffect">Build texteffect plugin.</flag>
+ <flag name="highlight">Build highlight plugin that allows you to specify highlights on specific events.</flag>
+ <flag name="alias">Build alias plugin.</flag>
+ <flag name="motionautoaway">Build motionautoaway plugin.</flag>
+ <flag name="addbookmarks">Build addbookmarks plugin that automatically adds incoming urls to bookmarks.</flag>
+ <flag name="statistics">Build statistics plugin.</flag>
+ <flag name="smpppdcs">Build smpppdsc plugin.</flag>
+ <flag name="gadu">Enaple Gadu protocol support with <pkg>net-libs/libgadu</pkg>.</flag>
+ <flag name="groupwise">Enable Groupwise protocol support.</flag>
+ <flag name="irc">Enable IRC protocol support.</flag>
+ <flag name="sms">Enable sms sending functionality.</flag>
+ <flag name="sametime">Add sametime protocol support with <pkg>net-libs/meanwhile</pkg>.</flag>
+ <flag name="winpopup">Enable pop-up messages sending on windows. (same as good old "net send" messages ;])</flag>
+ </use>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/korganizer/Manifest b/gentoo/trinity-base/korganizer/Manifest
new file mode 100644
index 000000000..d6ce26a13
--- /dev/null
+++ b/gentoo/trinity-base/korganizer/Manifest
@@ -0,0 +1 @@
+DIST kdepim-trinity-3.5.13.2.tar.xz 10148724 SHA256 2cbd61e28322e4c7d67ffb16ac59329b3f15ba1a4485095994b9bce6786df7c4 SHA512 a84319183813dc78dc97397c8c3871faa3961b458eda8107525b8b9c6789d13aedd8e3c7cb0706c4ca8dd63f69ff67de02716219c8af44ebf96d484d820eb2bf WHIRLPOOL 907d9d86f1b0094b915989ca7f0feb4f67ac1b238a4c6d176ab1ef9164eff78778b2714ebedeb40de28536a8384b39ec7e637f1bb6911cccb40f7d8663811edb
diff --git a/gentoo/trinity-base/korganizer/korganizer-3.5.13.2.ebuild b/gentoo/trinity-base/korganizer/korganizer-3.5.13.2.ebuild
new file mode 100644
index 000000000..1a6e97322
--- /dev/null
+++ b/gentoo/trinity-base/korganizer/korganizer-3.5.13.2.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdepim"
+
+inherit trinity-meta
+
+DESCRIPTION="A Personal Organizer for Trinity"
+KEYWORDS="~amd64 ~x86"
+IUSE+=" exchange"
+COMMON_DEPEND="
+ >=trinity-base/kgantt-${PV}:${SLOT}
+ >=trinity-base/libkdepim-${PV}:${SLOT}
+ >=trinity-base/libkdenetwork-${PV}:${SLOT}
+ >=trinity-base/libkcal-${PV}:${SLOT}
+ >=trinity-base/ktnef-${PV}:${SLOT}
+ >=trinity-base/libkmime-${PV}:${SLOT}
+ >=trinity-base/libkholidays-${PV}:${SLOT}
+ >=trinity-base/certmanager-${PV}:${SLOT}
+ >=trinity-base/libkpimidentities-${PV}:${SLOT}
+ >=trinity-base/kaddressbook-${PV}:${SLOT}
+ exchange? ( >=trinity-base/libkpimexchange-${PV}:${SLOT} )"
+# >=trinity-base/tdepim-tderesources-${PV}:${SLOT}
+
+DEPEND+=" ${COMMON_DEPEND}"
+RDEPEND+=" ${COMMON_DEPEND}"
+
+TSM_EXTRACT_ALSO="certmanager/lib/
+ libemailfunctions/
+ libkcal/
+ libkholidays/
+ libkpimidentities/
+ libkdepim/
+ libkmime/
+ kdgantt/
+ kmail/"
+
+TSM_EXTRACT_ALSO+=" libkpimexchange/core/" # required for USE=exchange
+
+src_configure () {
+ mycmakeargs=(
+ $(cmake-utils_use_with exchange EXCHANGE )
+ )
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-base/korganizer/korganizer-9999.ebuild b/gentoo/trinity-base/korganizer/korganizer-9999.ebuild
new file mode 100644
index 000000000..b9f24c9b0
--- /dev/null
+++ b/gentoo/trinity-base/korganizer/korganizer-9999.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdepim"
+
+inherit trinity-meta
+
+DESCRIPTION="A Personal Organizer for Trinity"
+KEYWORDS=""
+IUSE+=" exchange"
+COMMON_DEPEND="
+ >=trinity-base/kgantt-${PV}:${SLOT}
+ >=trinity-base/libtdepim-${PV}:${SLOT}
+ >=trinity-base/libtdenetwork-${PV}:${SLOT}
+ >=trinity-base/libkcal-${PV}:${SLOT}
+ >=trinity-base/ktnef-${PV}:${SLOT}
+ >=trinity-base/libkmime-${PV}:${SLOT}
+ >=trinity-base/libkholidays-${PV}:${SLOT}
+ >=trinity-base/certmanager-${PV}:${SLOT}
+ >=trinity-base/libkpimidentities-${PV}:${SLOT}
+ >=trinity-base/kaddressbook-${PV}:${SLOT}
+ exchange? ( >=trinity-base/libkpimexchange-${PV}:${SLOT} )"
+# >=trinity-base/tdepim-tderesources-${PV}:${SLOT}
+
+DEPEND+=" ${COMMON_DEPEND}"
+RDEPEND+=" ${COMMON_DEPEND}"
+
+TSM_EXTRACT_ALSO="certmanager/lib/
+ libemailfunctions/
+ libkcal/
+ libkholidays/
+ libkpimidentities/
+ libtdepim/
+ libkmime/
+ kdgantt/
+ kmail/"
+
+TSM_EXTRACT_ALSO+=" libkpimexchange/core/" # required for USE=exchange
+
+src_configure () {
+ mycmakeargs=(
+ $(cmake-utils_use_with exchange EXCHANGE )
+ )
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-base/korganizer/metadata.xml b/gentoo/trinity-base/korganizer/metadata.xml
new file mode 100644
index 000000000..e5061467c
--- /dev/null
+++ b/gentoo/trinity-base/korganizer/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+ <use>
+ <flag name="exchange">Build with support for <pkg>app-mobilephone/gnokii</pkg></flag>
+ </use>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kpager/Manifest b/gentoo/trinity-base/kpager/Manifest
new file mode 100644
index 000000000..381340c4b
--- /dev/null
+++ b/gentoo/trinity-base/kpager/Manifest
@@ -0,0 +1,2 @@
+DIST kdebase-3.5.13.1.tar.gz 29403228 SHA256 ddd4bd4b508ad027b9d1af2701c6ba64bfc9f8f1d32099e6dd5e7866714f759e SHA512 e1aac19c941a5f2b43a57928fdb43e5ebd646f49c60911d9d317550df96642870792c4e77ecd06e123244e2425ccd4bcb00f0a21011ba7e651d7fcf4553e79cf WHIRLPOOL 931debbf6a65c280221025dcbc02cbb3387b66eb72eddd28a510ee8f97075cd2cc96535dde25d0a32280c399e4a868e9c027772f5d28e7e79b7c1a9080c58034
+DIST kdebase-trinity-3.5.13.2.tar.xz 25890636 SHA256 b9d552226daff64437dfb9699669b95dd7ebc2ca7c43755ba71c10cc6c9ed789 SHA512 df545d44c7d4550d1d77ff6504572b622853c2b8d80062b1aee1a5bdca19f0e708cde35cff54cf2d5098f06a41bde0c89522a3958dea9bb18205dea87c11b797 WHIRLPOOL 79144273bc7985c59a593a3394b12a2053532d2c4c890ce96adad21f6de0413baf3c6270d6d06173ec4546b20d401aa0cc81603d01b8ee41dbdefc825b39b2b1
diff --git a/gentoo/trinity-base/kpager/files/shared b/gentoo/trinity-base/kpager/files/shared
new file mode 120000
index 000000000..ffc286806
--- /dev/null
+++ b/gentoo/trinity-base/kpager/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files \ No newline at end of file
diff --git a/gentoo/trinity-base/kpager/kpager-3.5.13.1.ebuild b/gentoo/trinity-base/kpager/kpager-3.5.13.1.ebuild
new file mode 100644
index 000000000..5cdd05d11
--- /dev/null
+++ b/gentoo/trinity-base/kpager/kpager-3.5.13.1.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity Virtual Desktop Overview"
+KEYWORDS="x86 amd64"
+IUSE=""
diff --git a/gentoo/trinity-base/kpager/kpager-3.5.13.2.ebuild b/gentoo/trinity-base/kpager/kpager-3.5.13.2.ebuild
new file mode 100644
index 000000000..40eb30059
--- /dev/null
+++ b/gentoo/trinity-base/kpager/kpager-3.5.13.2.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity Virtual Desktop Overview"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
diff --git a/gentoo/trinity-base/kpager/kpager-9999.ebuild b/gentoo/trinity-base/kpager/kpager-9999.ebuild
new file mode 100644
index 000000000..2d222322a
--- /dev/null
+++ b/gentoo/trinity-base/kpager/kpager-9999.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity Virtual Desktop Overview"
+KEYWORDS=
+IUSE=""
diff --git a/gentoo/trinity-base/kpager/metadata.xml b/gentoo/trinity-base/kpager/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kpager/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kpdf/Manifest b/gentoo/trinity-base/kpdf/Manifest
new file mode 100644
index 000000000..f0ba54e9a
--- /dev/null
+++ b/gentoo/trinity-base/kpdf/Manifest
@@ -0,0 +1 @@
+DIST kdegraphics-3.5.13.1.tar.gz 7526074 SHA256 19bd36e261bb6c5d2c9c1eba5f736c642b48422d917d44e576835f7ebb44906b SHA512 693e5ad70dbb00c587e588acfb81fc9475c3a4dbc86f41d6053c0584c533349a7564e34b870cb7bbc57361ac539da6f7d7f1b002ac3cfe8b0201db3eeb9147dd WHIRLPOOL fd2c46c517b3a0293880eaf35967295485555b936d0f1e80e0f2c261a1164cfcc5c4b2d943a12c073914d33b59974cc2dd92a78414614caa10f46dd048d518b4
diff --git a/gentoo/trinity-base/kpdf/kpdf-3.5.13.1.ebuild b/gentoo/trinity-base/kpdf/kpdf-3.5.13.1.ebuild
new file mode 100644
index 000000000..7ea730e8d
--- /dev/null
+++ b/gentoo/trinity-base/kpdf/kpdf-3.5.13.1.ebuild
@@ -0,0 +1,14 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdegraphics"
+
+inherit trinity-meta
+
+DESCRIPTION="kpdf, a Trinity pdf viewer based on xpdf"
+KEYWORDS="x86 amd64"
+IUSE=""
+
+DEPEND="media-libs/freetype:2"
+RDEPEND="$DEPEND"
diff --git a/gentoo/trinity-base/kpdf/kpdf-9999.ebuild b/gentoo/trinity-base/kpdf/kpdf-9999.ebuild
new file mode 100644
index 000000000..74582958b
--- /dev/null
+++ b/gentoo/trinity-base/kpdf/kpdf-9999.ebuild
@@ -0,0 +1,14 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdegraphics"
+
+inherit trinity-meta
+
+DESCRIPTION="kpdf, a Trinity pdf viewer based on xpdf"
+KEYWORDS=
+IUSE=""
+
+DEPEND="media-libs/freetype:2"
+RDEPEND="$DEPEND"
diff --git a/gentoo/trinity-base/kpdf/metadata.xml b/gentoo/trinity-base/kpdf/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kpdf/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kpersonalizer/Manifest b/gentoo/trinity-base/kpersonalizer/Manifest
new file mode 100644
index 000000000..381340c4b
--- /dev/null
+++ b/gentoo/trinity-base/kpersonalizer/Manifest
@@ -0,0 +1,2 @@
+DIST kdebase-3.5.13.1.tar.gz 29403228 SHA256 ddd4bd4b508ad027b9d1af2701c6ba64bfc9f8f1d32099e6dd5e7866714f759e SHA512 e1aac19c941a5f2b43a57928fdb43e5ebd646f49c60911d9d317550df96642870792c4e77ecd06e123244e2425ccd4bcb00f0a21011ba7e651d7fcf4553e79cf WHIRLPOOL 931debbf6a65c280221025dcbc02cbb3387b66eb72eddd28a510ee8f97075cd2cc96535dde25d0a32280c399e4a868e9c027772f5d28e7e79b7c1a9080c58034
+DIST kdebase-trinity-3.5.13.2.tar.xz 25890636 SHA256 b9d552226daff64437dfb9699669b95dd7ebc2ca7c43755ba71c10cc6c9ed789 SHA512 df545d44c7d4550d1d77ff6504572b622853c2b8d80062b1aee1a5bdca19f0e708cde35cff54cf2d5098f06a41bde0c89522a3958dea9bb18205dea87c11b797 WHIRLPOOL 79144273bc7985c59a593a3394b12a2053532d2c4c890ce96adad21f6de0413baf3c6270d6d06173ec4546b20d401aa0cc81603d01b8ee41dbdefc825b39b2b1
diff --git a/gentoo/trinity-base/kpersonalizer/files/shared b/gentoo/trinity-base/kpersonalizer/files/shared
new file mode 120000
index 000000000..ffc286806
--- /dev/null
+++ b/gentoo/trinity-base/kpersonalizer/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files \ No newline at end of file
diff --git a/gentoo/trinity-base/kpersonalizer/kpersonalizer-3.5.13.1.ebuild b/gentoo/trinity-base/kpersonalizer/kpersonalizer-3.5.13.1.ebuild
new file mode 100644
index 000000000..e0f365543
--- /dev/null
+++ b/gentoo/trinity-base/kpersonalizer/kpersonalizer-3.5.13.1.ebuild
@@ -0,0 +1,13 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity user settings wizard."
+KEYWORDS="x86 amd64"
+IUSE=""
+
+TSM_EXTRACT_ALSO="libkonq/"
diff --git a/gentoo/trinity-base/kpersonalizer/kpersonalizer-3.5.13.2.ebuild b/gentoo/trinity-base/kpersonalizer/kpersonalizer-3.5.13.2.ebuild
new file mode 100644
index 000000000..41c2faccf
--- /dev/null
+++ b/gentoo/trinity-base/kpersonalizer/kpersonalizer-3.5.13.2.ebuild
@@ -0,0 +1,13 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity user settings wizard."
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+TSM_EXTRACT_ALSO="libkonq/"
diff --git a/gentoo/trinity-base/kpersonalizer/kpersonalizer-9999.ebuild b/gentoo/trinity-base/kpersonalizer/kpersonalizer-9999.ebuild
new file mode 100644
index 000000000..bf413ef63
--- /dev/null
+++ b/gentoo/trinity-base/kpersonalizer/kpersonalizer-9999.ebuild
@@ -0,0 +1,13 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity user settings wizard."
+KEYWORDS=
+IUSE=""
+
+TSM_EXTRACT_ALSO="libkonq/"
diff --git a/gentoo/trinity-base/kpersonalizer/metadata.xml b/gentoo/trinity-base/kpersonalizer/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kpersonalizer/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kpf/Manifest b/gentoo/trinity-base/kpf/Manifest
new file mode 100644
index 000000000..1d49700dc
--- /dev/null
+++ b/gentoo/trinity-base/kpf/Manifest
@@ -0,0 +1 @@
+DIST kdenetwork-3.5.13.1.tar.gz 8794225 SHA256 21e69e8cb2550561c26913a5cccdc376115f50cffd43f9a94f7a660a303f46f9 SHA512 b3189a9f5e9cddd130b24a82b95ef90db1ec3c7afa280a46101ba7cbf6f9d92f60a536401f648a96459ba87f70ede5f7ae4affe894515a8e858b40ee79cb1b69 WHIRLPOOL de678ab30e3aa8dc3068c895fd000fdab1bc046e272273bf44196a198210efab82ddde3c5e0ffaa863061e9c56e3a8a68ca2f8f03cd77136755f66688f878c65
diff --git a/gentoo/trinity-base/kpf/kpf-3.5.13.1.ebuild b/gentoo/trinity-base/kpf/kpf-3.5.13.1.ebuild
new file mode 100644
index 000000000..1bf4e3450
--- /dev/null
+++ b/gentoo/trinity-base/kpf/kpf-3.5.13.1.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdenetwork"
+
+inherit trinity-meta
+
+DESCRIPTION="Kicker file server (http) applet"
+KEYWORDS="amd64 x86"
+IUSE=""
diff --git a/gentoo/trinity-base/kpf/kpf-9999.ebuild b/gentoo/trinity-base/kpf/kpf-9999.ebuild
new file mode 100644
index 000000000..8badb4250
--- /dev/null
+++ b/gentoo/trinity-base/kpf/kpf-9999.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdenetwork"
+
+inherit trinity-meta
+
+DESCRIPTION="Kicker file server (http) applet"
+KEYWORDS=
+IUSE=""
diff --git a/gentoo/trinity-base/kpf/metadata.xml b/gentoo/trinity-base/kpf/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kpf/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kpovmodeler/Manifest b/gentoo/trinity-base/kpovmodeler/Manifest
new file mode 100644
index 000000000..f0ba54e9a
--- /dev/null
+++ b/gentoo/trinity-base/kpovmodeler/Manifest
@@ -0,0 +1 @@
+DIST kdegraphics-3.5.13.1.tar.gz 7526074 SHA256 19bd36e261bb6c5d2c9c1eba5f736c642b48422d917d44e576835f7ebb44906b SHA512 693e5ad70dbb00c587e588acfb81fc9475c3a4dbc86f41d6053c0584c533349a7564e34b870cb7bbc57361ac539da6f7d7f1b002ac3cfe8b0201db3eeb9147dd WHIRLPOOL fd2c46c517b3a0293880eaf35967295485555b936d0f1e80e0f2c261a1164cfcc5c4b2d943a12c073914d33b59974cc2dd92a78414614caa10f46dd048d518b4
diff --git a/gentoo/trinity-base/kpovmodeler/kpovmodeler-3.5.13.1.ebuild b/gentoo/trinity-base/kpovmodeler/kpovmodeler-3.5.13.1.ebuild
new file mode 100644
index 000000000..fc9cd8ade
--- /dev/null
+++ b/gentoo/trinity-base/kpovmodeler/kpovmodeler-3.5.13.1.ebuild
@@ -0,0 +1,16 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdegraphics"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity: Modeler for POV-Ray Scenes."
+KEYWORDS="x86 amd64"
+IUSE=""
+
+DEPEND="virtual/opengl
+ >=media-libs/freetype-2.3"
+RDEPEND="${DEPEND}
+ media-gfx/povray"
diff --git a/gentoo/trinity-base/kpovmodeler/kpovmodeler-9999.ebuild b/gentoo/trinity-base/kpovmodeler/kpovmodeler-9999.ebuild
new file mode 100644
index 000000000..ca258ad7b
--- /dev/null
+++ b/gentoo/trinity-base/kpovmodeler/kpovmodeler-9999.ebuild
@@ -0,0 +1,16 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdegraphics"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity: Modeler for POV-Ray Scenes."
+KEYWORDS=
+IUSE=""
+
+DEPEND="virtual/opengl
+ >=media-libs/freetype-2.3"
+RDEPEND="${DEPEND}
+ media-gfx/povray"
diff --git a/gentoo/trinity-base/kpovmodeler/metadata.xml b/gentoo/trinity-base/kpovmodeler/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kpovmodeler/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kppp/Manifest b/gentoo/trinity-base/kppp/Manifest
new file mode 100644
index 000000000..1d49700dc
--- /dev/null
+++ b/gentoo/trinity-base/kppp/Manifest
@@ -0,0 +1 @@
+DIST kdenetwork-3.5.13.1.tar.gz 8794225 SHA256 21e69e8cb2550561c26913a5cccdc376115f50cffd43f9a94f7a660a303f46f9 SHA512 b3189a9f5e9cddd130b24a82b95ef90db1ec3c7afa280a46101ba7cbf6f9d92f60a536401f648a96459ba87f70ede5f7ae4affe894515a8e858b40ee79cb1b69 WHIRLPOOL de678ab30e3aa8dc3068c895fd000fdab1bc046e272273bf44196a198210efab82ddde3c5e0ffaa863061e9c56e3a8a68ca2f8f03cd77136755f66688f878c65
diff --git a/gentoo/trinity-base/kppp/files/kppp-v3.5.13.1-a2b3834-fix-various-cmake-build-issues.patch b/gentoo/trinity-base/kppp/files/kppp-v3.5.13.1-a2b3834-fix-various-cmake-build-issues.patch
new file mode 100644
index 000000000..e080a9dff
--- /dev/null
+++ b/gentoo/trinity-base/kppp/files/kppp-v3.5.13.1-a2b3834-fix-various-cmake-build-issues.patch
@@ -0,0 +1,10 @@
+diff --git a/kppp/Rules/CMakeLists.txt b/kppp/Rules/CMakeLists.txt
+index bb4f384..fc2c702 100644
+--- a/kppp/Rules/CMakeLists.txt
++++ b/kppp/Rules/CMakeLists.txt
+@@ -12,4 +12,4 @@
+ tde_auto_add_subdirectories( )
+
+ install( FILES TEMPLATE DESTINATION ${DATA_INSTALL_DIR}/kppp/Rules )
+-install( PROGRAMS checkrules DESTINATION ${DATA_INSTALL_DIR} )
++install( PROGRAMS checkrules DESTINATION ${DATA_INSTALL_DIR}/kppp/Rules )
diff --git a/gentoo/trinity-base/kppp/kppp-3.5.13.1.ebuild b/gentoo/trinity-base/kppp/kppp-3.5.13.1.ebuild
new file mode 100644
index 000000000..1ae0968a8
--- /dev/null
+++ b/gentoo/trinity-base/kppp/kppp-3.5.13.1.ebuild
@@ -0,0 +1,16 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdenetwork"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity: A dialer and front-end to pppd."
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND="net-dialup/ppp"
+
+PATCHES=(
+ "${FILESDIR}/kppp-v3.5.13.1-a2b3834-fix-various-cmake-build-issues.patch" )
diff --git a/gentoo/trinity-base/kppp/kppp-9999.ebuild b/gentoo/trinity-base/kppp/kppp-9999.ebuild
new file mode 100644
index 000000000..3787062a5
--- /dev/null
+++ b/gentoo/trinity-base/kppp/kppp-9999.ebuild
@@ -0,0 +1,13 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdenetwork"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity: A dialer and front-end to pppd."
+KEYWORDS=
+IUSE=""
+
+RDEPEND="net-dialup/ppp"
diff --git a/gentoo/trinity-base/kppp/metadata.xml b/gentoo/trinity-base/kppp/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kppp/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/krdc/Manifest b/gentoo/trinity-base/krdc/Manifest
new file mode 100644
index 000000000..1d49700dc
--- /dev/null
+++ b/gentoo/trinity-base/krdc/Manifest
@@ -0,0 +1 @@
+DIST kdenetwork-3.5.13.1.tar.gz 8794225 SHA256 21e69e8cb2550561c26913a5cccdc376115f50cffd43f9a94f7a660a303f46f9 SHA512 b3189a9f5e9cddd130b24a82b95ef90db1ec3c7afa280a46101ba7cbf6f9d92f60a536401f648a96459ba87f70ede5f7ae4affe894515a8e858b40ee79cb1b69 WHIRLPOOL de678ab30e3aa8dc3068c895fd000fdab1bc046e272273bf44196a198210efab82ddde3c5e0ffaa863061e9c56e3a8a68ca2f8f03cd77136755f66688f878c65
diff --git a/gentoo/trinity-base/krdc/files/krdc-3.5.13.1-702c180-added-openslp-support-to-cmake.patch b/gentoo/trinity-base/krdc/files/krdc-3.5.13.1-702c180-added-openslp-support-to-cmake.patch
new file mode 100644
index 000000000..4a767d516
--- /dev/null
+++ b/gentoo/trinity-base/krdc/files/krdc-3.5.13.1-702c180-added-openslp-support-to-cmake.patch
@@ -0,0 +1,41 @@
+diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
+index 896491f..fc04621 100644
+--- a/ConfigureChecks.cmake
++++ b/ConfigureChecks.cmake
+@@ -16,3 +16,12 @@ endif( )
+ # required stuff
+ find_package( TQt )
+ find_package( TDE )
++
++if( WITH_SLP )
++ check_library_exists( slp "SLPOpen" "" HAVE_SLP )
++ if( HAVE_SLP )
++ set(LIB_SLP slp )
++ else( )
++ tde_message_fatal( "openslp is required, but was not found on your system" )
++ endif( )
++endif( )
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index d712390..2601743 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -49,6 +49,7 @@ option( WITH_SPEEX "Enable speex support (for jingle)" OFF )
+ option( WITH_WEBCAM "Enable webcam support (kopete/msn)" OFF )
+ option( WITH_GSM "Enable GSM SMS support (kopete/sms)" OFF )
+ option( WITH_ARTS "Enable aRts support" OFF )
++option( WITH_SLP "Enable OpenSLP support (krdc, krfb)" OFF )
+
+
+ ##### kopete protocols ##########################
+diff --git a/krdc/CMakeLists.txt b/krdc/CMakeLists.txt
+index 5451be7..47b3056 100644
+--- a/krdc/CMakeLists.txt
++++ b/krdc/CMakeLists.txt
+@@ -60,6 +60,6 @@ tde_add_executable( krdc AUTOMOC
+ maindialogbase.ui keycapturewidget.ui kservicelocator.cpp
+ keycapturedialog.cpp kremoteview.cpp smartptr.cpp hostpreferences.cpp
+ preferencesdialog.cpp maindialogwidget.cpp maindialog.cpp
+- LINK vnc-static rdp-static kdeui-shared kdnssd-shared kwalletclient-shared jpeg Xext
++ LINK vnc-static rdp-static kdeui-shared kdnssd-shared kwalletclient-shared jpeg Xext ${LIB_SLP}
+ DESTINATION ${BIN_INSTALL_DIR}
+ )
diff --git a/gentoo/trinity-base/krdc/krdc-3.5.13.1.ebuild b/gentoo/trinity-base/krdc/krdc-3.5.13.1.ebuild
new file mode 100644
index 000000000..7fc8211bd
--- /dev/null
+++ b/gentoo/trinity-base/krdc/krdc-3.5.13.1.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdenetwork"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity remote desktop connection (RDP and VNC) client"
+KEYWORDS="amd64 x86"
+IUSE="rdp slp"
+
+DEPEND="
+ dev-libs/openssl:=
+ slp? ( net-libs/openslp )
+ x11-libs/libXext"
+RDEPEND="${DEPEND}
+ rdp? ( >=net-misc/rdesktop-1.4.1 )"
+
+PATCHES=( "${FILESDIR}/krdc-3.5.13.1-702c180-added-openslp-support-to-cmake.patch" )
+
+src_configure() {
+ mycmakeargs=(
+ $(cmake-utils_use_with slp SLP)
+ )
+
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-base/krdc/krdc-9999.ebuild b/gentoo/trinity-base/krdc/krdc-9999.ebuild
new file mode 100644
index 000000000..9e01fa813
--- /dev/null
+++ b/gentoo/trinity-base/krdc/krdc-9999.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdenetwork"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity remote desktop connection (RDP and VNC) client"
+KEYWORDS=
+IUSE="rdp slp"
+
+DEPEND="
+ dev-libs/openssl:=
+ slp? ( net-libs/openslp )
+ x11-libs/libXext"
+RDEPEND="${DEPEND}
+ rdp? ( >=net-misc/rdesktop-1.4.1 )"
+
+src_configure() {
+ mycmakeargs=(
+ $(cmake-utils_use_with slp SLP)
+ )
+
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-base/krdc/metadata.xml b/gentoo/trinity-base/krdc/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/krdc/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kreadconfig/Manifest b/gentoo/trinity-base/kreadconfig/Manifest
new file mode 100644
index 000000000..381340c4b
--- /dev/null
+++ b/gentoo/trinity-base/kreadconfig/Manifest
@@ -0,0 +1,2 @@
+DIST kdebase-3.5.13.1.tar.gz 29403228 SHA256 ddd4bd4b508ad027b9d1af2701c6ba64bfc9f8f1d32099e6dd5e7866714f759e SHA512 e1aac19c941a5f2b43a57928fdb43e5ebd646f49c60911d9d317550df96642870792c4e77ecd06e123244e2425ccd4bcb00f0a21011ba7e651d7fcf4553e79cf WHIRLPOOL 931debbf6a65c280221025dcbc02cbb3387b66eb72eddd28a510ee8f97075cd2cc96535dde25d0a32280c399e4a868e9c027772f5d28e7e79b7c1a9080c58034
+DIST kdebase-trinity-3.5.13.2.tar.xz 25890636 SHA256 b9d552226daff64437dfb9699669b95dd7ebc2ca7c43755ba71c10cc6c9ed789 SHA512 df545d44c7d4550d1d77ff6504572b622853c2b8d80062b1aee1a5bdca19f0e708cde35cff54cf2d5098f06a41bde0c89522a3958dea9bb18205dea87c11b797 WHIRLPOOL 79144273bc7985c59a593a3394b12a2053532d2c4c890ce96adad21f6de0413baf3c6270d6d06173ec4546b20d401aa0cc81603d01b8ee41dbdefc825b39b2b1
diff --git a/gentoo/trinity-base/kreadconfig/files/shared b/gentoo/trinity-base/kreadconfig/files/shared
new file mode 120000
index 000000000..ffc286806
--- /dev/null
+++ b/gentoo/trinity-base/kreadconfig/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files \ No newline at end of file
diff --git a/gentoo/trinity-base/kreadconfig/kreadconfig-3.5.13.1.ebuild b/gentoo/trinity-base/kreadconfig/kreadconfig-3.5.13.1.ebuild
new file mode 100644
index 000000000..a958d646f
--- /dev/null
+++ b/gentoo/trinity-base/kreadconfig/kreadconfig-3.5.13.1.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="A Trinity tool to read KConfig entries - for use in shell scripts"
+KEYWORDS="x86 amd64"
+IUSE=""
diff --git a/gentoo/trinity-base/kreadconfig/kreadconfig-3.5.13.2.ebuild b/gentoo/trinity-base/kreadconfig/kreadconfig-3.5.13.2.ebuild
new file mode 100644
index 000000000..90d824d61
--- /dev/null
+++ b/gentoo/trinity-base/kreadconfig/kreadconfig-3.5.13.2.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="A Trinity tool to read KConfig entries - for use in shell scripts"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
diff --git a/gentoo/trinity-base/kreadconfig/kreadconfig-9999.ebuild b/gentoo/trinity-base/kreadconfig/kreadconfig-9999.ebuild
new file mode 100644
index 000000000..5ebaad707
--- /dev/null
+++ b/gentoo/trinity-base/kreadconfig/kreadconfig-9999.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="A Trinity tool to read KConfig entries - for use in shell scripts"
+KEYWORDS=
+IUSE=""
diff --git a/gentoo/trinity-base/kreadconfig/metadata.xml b/gentoo/trinity-base/kreadconfig/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kreadconfig/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kregexpeditor/Manifest b/gentoo/trinity-base/kregexpeditor/Manifest
new file mode 100644
index 000000000..c59ac62b4
--- /dev/null
+++ b/gentoo/trinity-base/kregexpeditor/Manifest
@@ -0,0 +1,2 @@
+DIST kdeutils-3.5.13.1.tar.gz 2829393 SHA256 3e7ab07fe1bb3e7be7ac3a3796366c88d3b79a58af911546e2c65e32363db527 SHA512 48733e472d0f5da85ef8a32ed6db7fa5e61f0682e49842439e6ea38a1e407059bb35efffe41fc6ed1a718511fd5b2b2c8222d816a23500a4dcbca17461f9a3bd WHIRLPOOL 1488e0c44f60b4d5e397dd2cf93de048eae1b915d4b2b7b1cf27768946f5aae3b5bcc3971ee28b5fa6a57a0b94cca6db0866138b69ad74f1f7bb97cdaaebdbe2
+DIST kdeutils-trinity-3.5.13.2.tar.xz 2259232 SHA256 b2999b9ef39bb2f269b84fdf34a814b5a5599aae7d05538d0bf680c18fb334fa SHA512 f501aa4b61bf440e873eec96f09c0c24ad780db2f9f14b884001c04c04aafccb5afb2b492dcf4fc640f3ec35d86aa419d67936122648a986662cd7b7f4f8a2d8 WHIRLPOOL 49296006875250212f0fdeb0c90c4f69cf0aa7cfd38415e2f7b50bdf81754de64562df2400f4932a502adbe84b58be34cae6c029d68cc62d0e91de5158513239
diff --git a/gentoo/trinity-base/kregexpeditor/files/shared b/gentoo/trinity-base/kregexpeditor/files/shared
new file mode 120000
index 000000000..af62be31d
--- /dev/null
+++ b/gentoo/trinity-base/kregexpeditor/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files/ \ No newline at end of file
diff --git a/gentoo/trinity-base/kregexpeditor/kregexpeditor-3.5.13.1.ebuild b/gentoo/trinity-base/kregexpeditor/kregexpeditor-3.5.13.1.ebuild
new file mode 100644
index 000000000..6aaff4042
--- /dev/null
+++ b/gentoo/trinity-base/kregexpeditor/kregexpeditor-3.5.13.1.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdeutils"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity: Editor for Regular Expressions"
+KEYWORDS="x86 amd64"
+IUSE=""
diff --git a/gentoo/trinity-base/kregexpeditor/kregexpeditor-3.5.13.2.ebuild b/gentoo/trinity-base/kregexpeditor/kregexpeditor-3.5.13.2.ebuild
new file mode 100644
index 000000000..7c84e6594
--- /dev/null
+++ b/gentoo/trinity-base/kregexpeditor/kregexpeditor-3.5.13.2.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdeutils"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity: Editor for Regular Expressions"
+KEYWORDS="~x86 ~amd64"
+IUSE=""
diff --git a/gentoo/trinity-base/kregexpeditor/kregexpeditor-9999.ebuild b/gentoo/trinity-base/kregexpeditor/kregexpeditor-9999.ebuild
new file mode 100644
index 000000000..b082a3565
--- /dev/null
+++ b/gentoo/trinity-base/kregexpeditor/kregexpeditor-9999.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdeutils"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity: Editor for Regular Expressions"
+KEYWORDS=""
+IUSE=""
diff --git a/gentoo/trinity-base/kregexpeditor/metadata.xml b/gentoo/trinity-base/kregexpeditor/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kregexpeditor/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/krfb/Manifest b/gentoo/trinity-base/krfb/Manifest
new file mode 100644
index 000000000..1d49700dc
--- /dev/null
+++ b/gentoo/trinity-base/krfb/Manifest
@@ -0,0 +1 @@
+DIST kdenetwork-3.5.13.1.tar.gz 8794225 SHA256 21e69e8cb2550561c26913a5cccdc376115f50cffd43f9a94f7a660a303f46f9 SHA512 b3189a9f5e9cddd130b24a82b95ef90db1ec3c7afa280a46101ba7cbf6f9d92f60a536401f648a96459ba87f70ede5f7ae4affe894515a8e858b40ee79cb1b69 WHIRLPOOL de678ab30e3aa8dc3068c895fd000fdab1bc046e272273bf44196a198210efab82ddde3c5e0ffaa863061e9c56e3a8a68ca2f8f03cd77136755f66688f878c65
diff --git a/gentoo/trinity-base/krfb/files/krfb-3.5.13.1-702c180-added-openslp-support-to-cmake.patch b/gentoo/trinity-base/krfb/files/krfb-3.5.13.1-702c180-added-openslp-support-to-cmake.patch
new file mode 100644
index 000000000..138bd8506
--- /dev/null
+++ b/gentoo/trinity-base/krfb/files/krfb-3.5.13.1-702c180-added-openslp-support-to-cmake.patch
@@ -0,0 +1,40 @@
+diff --git a/krfb/srvloc/CMakeLists.txt b/krfb/srvloc/CMakeLists.txt
+index 095bcf5..a6b7721 100644
+--- a/krfb/srvloc/CMakeLists.txt
++++ b/krfb/srvloc/CMakeLists.txt
+@@ -24,4 +24,6 @@ tde_add_library( srvloc STATIC_PIC AUTOMOC
+ SOURCES
+ kserviceregistry.cpp uuid.cpp kinetinterface.cpp
+ kinetinterfacewatcher.cpp getifaddrs.cpp
++ LINK
++ ${LIB_SLP}
+ )
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index d712390..2601743 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -49,6 +49,7 @@ option( WITH_SPEEX "Enable speex support (for jingle)" OFF )
+ option( WITH_WEBCAM "Enable webcam support (kopete/msn)" OFF )
+ option( WITH_GSM "Enable GSM SMS support (kopete/sms)" OFF )
+ option( WITH_ARTS "Enable aRts support" OFF )
++option( WITH_SLP "Enable OpenSLP support (krdc, krfb)" OFF )
+
+
+ ##### kopete protocols ##########################
+diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
+index 896491f..fc04621 100644
+--- a/ConfigureChecks.cmake
++++ b/ConfigureChecks.cmake
+@@ -16,3 +16,12 @@ endif( )
+ # required stuff
+ find_package( TQt )
+ find_package( TDE )
++
++if( WITH_SLP )
++ check_library_exists( slp "SLPOpen" "" HAVE_SLP )
++ if( HAVE_SLP )
++ set(LIB_SLP slp )
++ else( )
++ tde_message_fatal( "openslp is required, but was not found on your system" )
++ endif( )
++endif( )
diff --git a/gentoo/trinity-base/krfb/krfb-3.5.13.1.ebuild b/gentoo/trinity-base/krfb/krfb-3.5.13.1.ebuild
new file mode 100644
index 000000000..936e24d69
--- /dev/null
+++ b/gentoo/trinity-base/krfb/krfb-3.5.13.1.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdenetwork"
+
+inherit trinity-meta
+
+DESCRIPTION="VNC-compatible server to share Trinity desktops"
+KEYWORDS="amd64 x86"
+IUSE="slp"
+
+DEPEND="
+ dev-libs/openssl:=
+ slp? ( net-libs/openslp )
+ x11-libs/libXext"
+RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}/krfb-3.5.13.1-702c180-added-openslp-support-to-cmake.patch" )
+
+src_configure() {
+ mycmakeargs=(
+ $(cmake-utils_use_with slp SLP)
+ )
+
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-base/krfb/krfb-9999.ebuild b/gentoo/trinity-base/krfb/krfb-9999.ebuild
new file mode 100644
index 000000000..48a971bf5
--- /dev/null
+++ b/gentoo/trinity-base/krfb/krfb-9999.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdenetwork"
+
+inherit trinity-meta
+
+DESCRIPTION="VNC-compatible server to share Trinity desktops"
+KEYWORDS=
+IUSE="slp"
+
+DEPEND="
+ dev-libs/openssl:=
+ slp? ( net-libs/openslp )
+ x11-libs/libXext"
+RDEPEND="${DEPEND}"
+
+src_configure() {
+ mycmakeargs=(
+ $(cmake-utils_use_with slp SLP)
+ )
+
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-base/krfb/metadata.xml b/gentoo/trinity-base/krfb/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/krfb/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/krootbacking/Manifest b/gentoo/trinity-base/krootbacking/Manifest
new file mode 100644
index 000000000..381340c4b
--- /dev/null
+++ b/gentoo/trinity-base/krootbacking/Manifest
@@ -0,0 +1,2 @@
+DIST kdebase-3.5.13.1.tar.gz 29403228 SHA256 ddd4bd4b508ad027b9d1af2701c6ba64bfc9f8f1d32099e6dd5e7866714f759e SHA512 e1aac19c941a5f2b43a57928fdb43e5ebd646f49c60911d9d317550df96642870792c4e77ecd06e123244e2425ccd4bcb00f0a21011ba7e651d7fcf4553e79cf WHIRLPOOL 931debbf6a65c280221025dcbc02cbb3387b66eb72eddd28a510ee8f97075cd2cc96535dde25d0a32280c399e4a868e9c027772f5d28e7e79b7c1a9080c58034
+DIST kdebase-trinity-3.5.13.2.tar.xz 25890636 SHA256 b9d552226daff64437dfb9699669b95dd7ebc2ca7c43755ba71c10cc6c9ed789 SHA512 df545d44c7d4550d1d77ff6504572b622853c2b8d80062b1aee1a5bdca19f0e708cde35cff54cf2d5098f06a41bde0c89522a3958dea9bb18205dea87c11b797 WHIRLPOOL 79144273bc7985c59a593a3394b12a2053532d2c4c890ce96adad21f6de0413baf3c6270d6d06173ec4546b20d401aa0cc81603d01b8ee41dbdefc825b39b2b1
diff --git a/gentoo/trinity-base/krootbacking/files/shared b/gentoo/trinity-base/krootbacking/files/shared
new file mode 120000
index 000000000..ffc286806
--- /dev/null
+++ b/gentoo/trinity-base/krootbacking/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files \ No newline at end of file
diff --git a/gentoo/trinity-base/krootbacking/krootbacking-3.5.13.1.ebuild b/gentoo/trinity-base/krootbacking/krootbacking-3.5.13.1.ebuild
new file mode 100644
index 000000000..d4c6e4694
--- /dev/null
+++ b/gentoo/trinity-base/krootbacking/krootbacking-3.5.13.1.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="A program to grab the current TDE desktop backrounds for xscreensaver."
+KEYWORDS="x86 amd64"
+IUSE=""
diff --git a/gentoo/trinity-base/krootbacking/krootbacking-3.5.13.2.ebuild b/gentoo/trinity-base/krootbacking/krootbacking-3.5.13.2.ebuild
new file mode 100644
index 000000000..a94f0b192
--- /dev/null
+++ b/gentoo/trinity-base/krootbacking/krootbacking-3.5.13.2.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="A program to grab the current TDE desktop backrounds for xscreensaver."
+KEYWORDS="~amd64 ~x86"
+IUSE=""
diff --git a/gentoo/trinity-base/krootbacking/krootbacking-9999.ebuild b/gentoo/trinity-base/krootbacking/krootbacking-9999.ebuild
new file mode 100644
index 000000000..d0b1a5932
--- /dev/null
+++ b/gentoo/trinity-base/krootbacking/krootbacking-9999.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="A program to grab the current TDE desktop backrounds for xscreensaver."
+KEYWORDS=
+IUSE=""
diff --git a/gentoo/trinity-base/krootbacking/metadata.xml b/gentoo/trinity-base/krootbacking/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/krootbacking/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kruler/Manifest b/gentoo/trinity-base/kruler/Manifest
new file mode 100644
index 000000000..f0ba54e9a
--- /dev/null
+++ b/gentoo/trinity-base/kruler/Manifest
@@ -0,0 +1 @@
+DIST kdegraphics-3.5.13.1.tar.gz 7526074 SHA256 19bd36e261bb6c5d2c9c1eba5f736c642b48422d917d44e576835f7ebb44906b SHA512 693e5ad70dbb00c587e588acfb81fc9475c3a4dbc86f41d6053c0584c533349a7564e34b870cb7bbc57361ac539da6f7d7f1b002ac3cfe8b0201db3eeb9147dd WHIRLPOOL fd2c46c517b3a0293880eaf35967295485555b936d0f1e80e0f2c261a1164cfcc5c4b2d943a12c073914d33b59974cc2dd92a78414614caa10f46dd048d518b4
diff --git a/gentoo/trinity-base/kruler/kruler-3.5.13.1.ebuild b/gentoo/trinity-base/kruler/kruler-3.5.13.1.ebuild
new file mode 100644
index 000000000..b1951c894
--- /dev/null
+++ b/gentoo/trinity-base/kruler/kruler-3.5.13.1.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdegraphics"
+
+inherit trinity-meta
+
+DESCRIPTION="A screen ruler for Trinity"
+KEYWORDS="x86 amd64"
+IUSE=""
diff --git a/gentoo/trinity-base/kruler/kruler-9999.ebuild b/gentoo/trinity-base/kruler/kruler-9999.ebuild
new file mode 100644
index 000000000..63e115643
--- /dev/null
+++ b/gentoo/trinity-base/kruler/kruler-9999.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdegraphics"
+
+inherit trinity-meta
+
+DESCRIPTION="A screen ruler for Trinity"
+KEYWORDS=
+IUSE=""
diff --git a/gentoo/trinity-base/kruler/metadata.xml b/gentoo/trinity-base/kruler/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kruler/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kscreensaver/Manifest b/gentoo/trinity-base/kscreensaver/Manifest
new file mode 100644
index 000000000..381340c4b
--- /dev/null
+++ b/gentoo/trinity-base/kscreensaver/Manifest
@@ -0,0 +1,2 @@
+DIST kdebase-3.5.13.1.tar.gz 29403228 SHA256 ddd4bd4b508ad027b9d1af2701c6ba64bfc9f8f1d32099e6dd5e7866714f759e SHA512 e1aac19c941a5f2b43a57928fdb43e5ebd646f49c60911d9d317550df96642870792c4e77ecd06e123244e2425ccd4bcb00f0a21011ba7e651d7fcf4553e79cf WHIRLPOOL 931debbf6a65c280221025dcbc02cbb3387b66eb72eddd28a510ee8f97075cd2cc96535dde25d0a32280c399e4a868e9c027772f5d28e7e79b7c1a9080c58034
+DIST kdebase-trinity-3.5.13.2.tar.xz 25890636 SHA256 b9d552226daff64437dfb9699669b95dd7ebc2ca7c43755ba71c10cc6c9ed789 SHA512 df545d44c7d4550d1d77ff6504572b622853c2b8d80062b1aee1a5bdca19f0e708cde35cff54cf2d5098f06a41bde0c89522a3958dea9bb18205dea87c11b797 WHIRLPOOL 79144273bc7985c59a593a3394b12a2053532d2c4c890ce96adad21f6de0413baf3c6270d6d06173ec4546b20d401aa0cc81603d01b8ee41dbdefc825b39b2b1
diff --git a/gentoo/trinity-base/kscreensaver/files/shared b/gentoo/trinity-base/kscreensaver/files/shared
new file mode 120000
index 000000000..ffc286806
--- /dev/null
+++ b/gentoo/trinity-base/kscreensaver/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files \ No newline at end of file
diff --git a/gentoo/trinity-base/kscreensaver/kscreensaver-3.5.13.1.ebuild b/gentoo/trinity-base/kscreensaver/kscreensaver-3.5.13.1.ebuild
new file mode 100644
index 000000000..a73969a49
--- /dev/null
+++ b/gentoo/trinity-base/kscreensaver/kscreensaver-3.5.13.1.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity screensaver framework"
+KEYWORDS="x86 amd64"
+IUSE="opengl +krootbacking"
+# CHECKME: if this use needed
+DEPEND="x11-libs/libXt
+ opengl? ( virtual/opengl )
+ krootbacking? ( >=trinity-base/krootbacking-${PV}:${TRINITY_VER} )"
+RDEPEND="${DEPEND}"
+
+src_configure () {
+ if use opengl; then
+ ewarn "OpenGL is not supported by trinity build system yet."
+ ewarn "This use flag is here just for future/past capability"
+ fi
+
+ mycmakeargs=(
+ $(cmake-utils_use_with opengl OPENGL )
+ )
+
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-base/kscreensaver/kscreensaver-3.5.13.2.ebuild b/gentoo/trinity-base/kscreensaver/kscreensaver-3.5.13.2.ebuild
new file mode 100644
index 000000000..65f9c9041
--- /dev/null
+++ b/gentoo/trinity-base/kscreensaver/kscreensaver-3.5.13.2.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity screensaver framework"
+KEYWORDS="~amd64 ~x86"
+IUSE="opengl +krootbacking"
+# CHECKME: if this use needed
+DEPEND="x11-libs/libXt
+ opengl? ( virtual/opengl )
+ krootbacking? ( >=trinity-base/krootbacking-${PV}:${TRINITY_VER} )"
+RDEPEND="${DEPEND}"
+
+src_configure () {
+ if use opengl; then
+ ewarn "OpenGL is not supported by trinity build system yet."
+ ewarn "This use flag is here just for future/past capability"
+ fi
+
+ mycmakeargs=(
+ $(cmake-utils_use_with opengl OPENGL )
+ )
+
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-base/kscreensaver/metadata.xml b/gentoo/trinity-base/kscreensaver/metadata.xml
new file mode 100644
index 000000000..ffa960a71
--- /dev/null
+++ b/gentoo/trinity-base/kscreensaver/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+ <use>
+ <flag name="krootbacking"> Add support the desktop grabbing by kde-base/krootbacking.</flag>
+ </use>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/ksig/ksig-9999.ebuild b/gentoo/trinity-base/ksig/ksig-9999.ebuild
new file mode 100644
index 000000000..e5dc8daa4
--- /dev/null
+++ b/gentoo/trinity-base/ksig/ksig-9999.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdeaddons"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity email signature manager"
+KEYWORDS=""
+IUSE+=""
diff --git a/gentoo/trinity-base/ksig/metadata.xml b/gentoo/trinity-base/ksig/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/ksig/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/ksim/Manifest b/gentoo/trinity-base/ksim/Manifest
new file mode 100644
index 000000000..c59ac62b4
--- /dev/null
+++ b/gentoo/trinity-base/ksim/Manifest
@@ -0,0 +1,2 @@
+DIST kdeutils-3.5.13.1.tar.gz 2829393 SHA256 3e7ab07fe1bb3e7be7ac3a3796366c88d3b79a58af911546e2c65e32363db527 SHA512 48733e472d0f5da85ef8a32ed6db7fa5e61f0682e49842439e6ea38a1e407059bb35efffe41fc6ed1a718511fd5b2b2c8222d816a23500a4dcbca17461f9a3bd WHIRLPOOL 1488e0c44f60b4d5e397dd2cf93de048eae1b915d4b2b7b1cf27768946f5aae3b5bcc3971ee28b5fa6a57a0b94cca6db0866138b69ad74f1f7bb97cdaaebdbe2
+DIST kdeutils-trinity-3.5.13.2.tar.xz 2259232 SHA256 b2999b9ef39bb2f269b84fdf34a814b5a5599aae7d05538d0bf680c18fb334fa SHA512 f501aa4b61bf440e873eec96f09c0c24ad780db2f9f14b884001c04c04aafccb5afb2b492dcf4fc640f3ec35d86aa419d67936122648a986662cd7b7f4f8a2d8 WHIRLPOOL 49296006875250212f0fdeb0c90c4f69cf0aa7cfd38415e2f7b50bdf81754de64562df2400f4932a502adbe84b58be34cae6c029d68cc62d0e91de5158513239
diff --git a/gentoo/trinity-base/ksim/files/fix_crash.patch b/gentoo/trinity-base/ksim/files/fix_crash.patch
new file mode 100644
index 000000000..1e6a810dd
--- /dev/null
+++ b/gentoo/trinity-base/ksim/files/fix_crash.patch
@@ -0,0 +1,44 @@
+diff --git a/ksim/library/pluginglobal.cpp b/ksim/library/pluginglobal.cpp
+index 34a38c3..5f523cc 100644
+--- a/ksim/library/pluginglobal.cpp
++++ b/ksim/library/pluginglobal.cpp
+@@ -155,7 +155,7 @@ bool KSim::Plugin::isNull() const
+ return !d;
+ }
+
+-const TQString &KSim::Plugin::name() const
++TQString KSim::Plugin::name() const
+ {
+ return d ? d->name : TQString();
+ }
+@@ -170,7 +170,7 @@ TQCString KSim::Plugin::libName() const
+ return d ? d->libName : TQCString();
+ }
+
+-const TQString &KSim::Plugin::fileName() const
++TQString KSim::Plugin::fileName() const
+ {
+ return d ? d->filename : TQString();
+ }
+diff --git a/ksim/library/pluginglobal.h b/ksim/library/pluginglobal.h
+index 5dbeef8..e094198 100644
+--- a/ksim/library/pluginglobal.h
++++ b/ksim/library/pluginglobal.h
+@@ -93,7 +93,7 @@ namespace KSim
+ * @return the name of the plugin, NOT the library name
+ * @see #libName
+ */
+- const TQString &name() const;
++ TQString name() const;
+ /**
+ * @return the icon of the plugin
+ */
+@@ -105,7 +105,7 @@ namespace KSim
+ /**
+ * @return path to the .desktop file
+ */
+- const TQString &fileName() const;
++ TQString fileName() const;
+ /**
+ * @return the plugin object
+ */
diff --git a/gentoo/trinity-base/ksim/files/shared b/gentoo/trinity-base/ksim/files/shared
new file mode 120000
index 000000000..af62be31d
--- /dev/null
+++ b/gentoo/trinity-base/ksim/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files/ \ No newline at end of file
diff --git a/gentoo/trinity-base/ksim/ksim-3.5.13.1.ebuild b/gentoo/trinity-base/ksim/ksim-3.5.13.1.ebuild
new file mode 100644
index 000000000..e93db2583
--- /dev/null
+++ b/gentoo/trinity-base/ksim/ksim-3.5.13.1.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdeutils"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity system monitoring applets."
+KEYWORDS="x86 amd64"
+IUSE="snmp lm_sensors dell-laptop"
+
+DEPEND="lm_sensors? ( x11-libs/libXext )
+ snmp? ( net-analyzer/net-snmp )"
+RDEPEND="${DEPEND}
+ lm_sensors? ( sys-apps/lm_sensors )"
+PATCHES=( "$FILESDIR/fix_crash.patch" )
+
+src_configure() {
+ mycmakeargs=(
+ $(cmake-utils_use_with dell-laptop I8K)
+ $(cmake-utils_use_with snmp SNMP)
+ $(cmake-utils_use_with lm_sensors SENSORS)
+ )
+
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-base/ksim/ksim-3.5.13.2.ebuild b/gentoo/trinity-base/ksim/ksim-3.5.13.2.ebuild
new file mode 100644
index 000000000..88f668741
--- /dev/null
+++ b/gentoo/trinity-base/ksim/ksim-3.5.13.2.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdeutils"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity system monitoring applets."
+KEYWORDS="~x86 ~amd64"
+IUSE="snmp lm_sensors dell-laptop"
+
+DEPEND="lm_sensors? ( x11-libs/libXext )
+ snmp? ( net-analyzer/net-snmp )"
+RDEPEND="${DEPEND}
+ lm_sensors? ( sys-apps/lm_sensors )"
+
+src_configure() {
+ mycmakeargs=(
+ $(cmake-utils_use_with dell-laptop I8K)
+ $(cmake-utils_use_with snmp SNMP)
+ $(cmake-utils_use_with lm_sensors SENSORS)
+ )
+
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-base/ksim/ksim-9999.ebuild b/gentoo/trinity-base/ksim/ksim-9999.ebuild
new file mode 100644
index 000000000..ade987e1b
--- /dev/null
+++ b/gentoo/trinity-base/ksim/ksim-9999.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdeutils"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity system monitoring applets."
+KEYWORDS=""
+IUSE="snmp lm_sensors dell-laptop"
+
+DEPEND="lm_sensors? ( x11-libs/libXext )
+ snmp? ( net-analyzer/net-snmp )"
+RDEPEND="${DEPEND}
+ lm_sensors? ( sys-apps/lm_sensors )"
+
+src_configure() {
+ mycmakeargs=(
+ $(cmake-utils_use_with dell-laptop I8K)
+ $(cmake-utils_use_with snmp SNMP)
+ $(cmake-utils_use_with lm_sensors SENSORS)
+ )
+
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-base/ksim/metadata.xml b/gentoo/trinity-base/ksim/metadata.xml
new file mode 100644
index 000000000..41bc6a0ef
--- /dev/null
+++ b/gentoo/trinity-base/ksim/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+ <use>
+ <flag name="dell-laptop">Adds support for some dell-specific laptop hardware.</flag>
+ </use>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/ksirc/Manifest b/gentoo/trinity-base/ksirc/Manifest
new file mode 100644
index 000000000..1d49700dc
--- /dev/null
+++ b/gentoo/trinity-base/ksirc/Manifest
@@ -0,0 +1 @@
+DIST kdenetwork-3.5.13.1.tar.gz 8794225 SHA256 21e69e8cb2550561c26913a5cccdc376115f50cffd43f9a94f7a660a303f46f9 SHA512 b3189a9f5e9cddd130b24a82b95ef90db1ec3c7afa280a46101ba7cbf6f9d92f60a536401f648a96459ba87f70ede5f7ae4affe894515a8e858b40ee79cb1b69 WHIRLPOOL de678ab30e3aa8dc3068c895fd000fdab1bc046e272273bf44196a198210efab82ddde3c5e0ffaa863061e9c56e3a8a68ca2f8f03cd77136755f66688f878c65
diff --git a/gentoo/trinity-base/ksirc/ksirc-3.5.13.1.ebuild b/gentoo/trinity-base/ksirc/ksirc-3.5.13.1.ebuild
new file mode 100644
index 000000000..689f48100
--- /dev/null
+++ b/gentoo/trinity-base/ksirc/ksirc-3.5.13.1.ebuild
@@ -0,0 +1,14 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdenetwork"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity irc client"
+KEYWORDS="amd64 x86"
+IUSE="ssl"
+
+RDEPEND="dev-lang/perl
+ ssl? ( dev-perl/IO-Socket-SSL )"
diff --git a/gentoo/trinity-base/ksirc/ksirc-9999.ebuild b/gentoo/trinity-base/ksirc/ksirc-9999.ebuild
new file mode 100644
index 000000000..d4d2a2580
--- /dev/null
+++ b/gentoo/trinity-base/ksirc/ksirc-9999.ebuild
@@ -0,0 +1,14 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdenetwork"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity irc client"
+KEYWORDS=
+IUSE="ssl"
+
+RDEPEND="dev-lang/perl
+ ssl? ( dev-perl/IO-Socket-SSL )"
diff --git a/gentoo/trinity-base/ksirc/metadata.xml b/gentoo/trinity-base/ksirc/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/ksirc/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/ksmserver/Manifest b/gentoo/trinity-base/ksmserver/Manifest
new file mode 100644
index 000000000..381340c4b
--- /dev/null
+++ b/gentoo/trinity-base/ksmserver/Manifest
@@ -0,0 +1,2 @@
+DIST kdebase-3.5.13.1.tar.gz 29403228 SHA256 ddd4bd4b508ad027b9d1af2701c6ba64bfc9f8f1d32099e6dd5e7866714f759e SHA512 e1aac19c941a5f2b43a57928fdb43e5ebd646f49c60911d9d317550df96642870792c4e77ecd06e123244e2425ccd4bcb00f0a21011ba7e651d7fcf4553e79cf WHIRLPOOL 931debbf6a65c280221025dcbc02cbb3387b66eb72eddd28a510ee8f97075cd2cc96535dde25d0a32280c399e4a868e9c027772f5d28e7e79b7c1a9080c58034
+DIST kdebase-trinity-3.5.13.2.tar.xz 25890636 SHA256 b9d552226daff64437dfb9699669b95dd7ebc2ca7c43755ba71c10cc6c9ed789 SHA512 df545d44c7d4550d1d77ff6504572b622853c2b8d80062b1aee1a5bdca19f0e708cde35cff54cf2d5098f06a41bde0c89522a3958dea9bb18205dea87c11b797 WHIRLPOOL 79144273bc7985c59a593a3394b12a2053532d2c4c890ce96adad21f6de0413baf3c6270d6d06173ec4546b20d401aa0cc81603d01b8ee41dbdefc825b39b2b1
diff --git a/gentoo/trinity-base/ksmserver/files/shared b/gentoo/trinity-base/ksmserver/files/shared
new file mode 120000
index 000000000..ffc286806
--- /dev/null
+++ b/gentoo/trinity-base/ksmserver/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files \ No newline at end of file
diff --git a/gentoo/trinity-base/ksmserver/ksmserver-3.5.13.1.ebuild b/gentoo/trinity-base/ksmserver/ksmserver-3.5.13.1.ebuild
new file mode 100644
index 000000000..6b68ebfda
--- /dev/null
+++ b/gentoo/trinity-base/ksmserver/ksmserver-3.5.13.1.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="The reliable Trinity session manager that talks the standard X11R6"
+KEYWORDS="x86 amd64"
+IUSE="hal"
+
+DEPEND="
+ dev-libs/dbus-tqt
+ hal? ( sys-apps/hal )"
+RDEPEND="${RDEPEND}"
+
+src_configure() {
+ mycmakeargs=(
+ $(cmake-utils_use_with hal HAL )
+ )
+
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-base/ksmserver/ksmserver-3.5.13.2.ebuild b/gentoo/trinity-base/ksmserver/ksmserver-3.5.13.2.ebuild
new file mode 100644
index 000000000..3f85b82c0
--- /dev/null
+++ b/gentoo/trinity-base/ksmserver/ksmserver-3.5.13.2.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="The reliable Trinity session manager that talks the standard X11R6"
+KEYWORDS="~amd64 ~x86"
+IUSE="hal"
+
+DEPEND="
+ dev-libs/dbus-tqt
+ hal? ( sys-apps/hal )"
+RDEPEND="${RDEPEND}"
+
+src_configure() {
+ mycmakeargs=(
+ $(cmake-utils_use_with hal HAL )
+ )
+
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-base/ksmserver/ksmserver-9999.ebuild b/gentoo/trinity-base/ksmserver/ksmserver-9999.ebuild
new file mode 100644
index 000000000..521112ec1
--- /dev/null
+++ b/gentoo/trinity-base/ksmserver/ksmserver-9999.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="The reliable Trinity session manager that talks the standard X11R6"
+KEYWORDS=
+IUSE="hal upower"
+
+DEPEND="
+ dev-libs/dbus-tqt
+ upower? ( dev-libs/dbus-1-tqt )
+ hal? ( sys-apps/hal ) "
+
+RDEPEND="${RDEPEND}
+ upower? ( sys-power/upower ) "
+
+src_configure() {
+ mycmakeargs=(
+ $(cmake-utils_use_with hal HAL )
+ $(cmake-utils_use_with upower UPOWER )
+ )
+
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-base/ksmserver/metadata.xml b/gentoo/trinity-base/ksmserver/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/ksmserver/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/ksnapshot/Manifest b/gentoo/trinity-base/ksnapshot/Manifest
new file mode 100644
index 000000000..f0ba54e9a
--- /dev/null
+++ b/gentoo/trinity-base/ksnapshot/Manifest
@@ -0,0 +1 @@
+DIST kdegraphics-3.5.13.1.tar.gz 7526074 SHA256 19bd36e261bb6c5d2c9c1eba5f736c642b48422d917d44e576835f7ebb44906b SHA512 693e5ad70dbb00c587e588acfb81fc9475c3a4dbc86f41d6053c0584c533349a7564e34b870cb7bbc57361ac539da6f7d7f1b002ac3cfe8b0201db3eeb9147dd WHIRLPOOL fd2c46c517b3a0293880eaf35967295485555b936d0f1e80e0f2c261a1164cfcc5c4b2d943a12c073914d33b59974cc2dd92a78414614caa10f46dd048d518b4
diff --git a/gentoo/trinity-base/ksnapshot/ksnapshot-3.5.13.1.ebuild b/gentoo/trinity-base/ksnapshot/ksnapshot-3.5.13.1.ebuild
new file mode 100644
index 000000000..2768cd7ee
--- /dev/null
+++ b/gentoo/trinity-base/ksnapshot/ksnapshot-3.5.13.1.ebuild
@@ -0,0 +1,14 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdegraphics"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity Screenshot Utility"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="x11-libs/libXext"
+RDEPEND="$DEPEND"
diff --git a/gentoo/trinity-base/ksnapshot/ksnapshot-9999.ebuild b/gentoo/trinity-base/ksnapshot/ksnapshot-9999.ebuild
new file mode 100644
index 000000000..ac828fa3a
--- /dev/null
+++ b/gentoo/trinity-base/ksnapshot/ksnapshot-9999.ebuild
@@ -0,0 +1,14 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdegraphics"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity Screenshot Utility"
+KEYWORDS=
+IUSE=""
+
+DEPEND="x11-libs/libXext"
+RDEPEND="$DEPEND"
diff --git a/gentoo/trinity-base/ksnapshot/metadata.xml b/gentoo/trinity-base/ksnapshot/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/ksnapshot/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/ksplashml/Manifest b/gentoo/trinity-base/ksplashml/Manifest
new file mode 100644
index 000000000..381340c4b
--- /dev/null
+++ b/gentoo/trinity-base/ksplashml/Manifest
@@ -0,0 +1,2 @@
+DIST kdebase-3.5.13.1.tar.gz 29403228 SHA256 ddd4bd4b508ad027b9d1af2701c6ba64bfc9f8f1d32099e6dd5e7866714f759e SHA512 e1aac19c941a5f2b43a57928fdb43e5ebd646f49c60911d9d317550df96642870792c4e77ecd06e123244e2425ccd4bcb00f0a21011ba7e651d7fcf4553e79cf WHIRLPOOL 931debbf6a65c280221025dcbc02cbb3387b66eb72eddd28a510ee8f97075cd2cc96535dde25d0a32280c399e4a868e9c027772f5d28e7e79b7c1a9080c58034
+DIST kdebase-trinity-3.5.13.2.tar.xz 25890636 SHA256 b9d552226daff64437dfb9699669b95dd7ebc2ca7c43755ba71c10cc6c9ed789 SHA512 df545d44c7d4550d1d77ff6504572b622853c2b8d80062b1aee1a5bdca19f0e708cde35cff54cf2d5098f06a41bde0c89522a3958dea9bb18205dea87c11b797 WHIRLPOOL 79144273bc7985c59a593a3394b12a2053532d2c4c890ce96adad21f6de0413baf3c6270d6d06173ec4546b20d401aa0cc81603d01b8ee41dbdefc825b39b2b1
diff --git a/gentoo/trinity-base/ksplashml/files/shared b/gentoo/trinity-base/ksplashml/files/shared
new file mode 120000
index 000000000..ffc286806
--- /dev/null
+++ b/gentoo/trinity-base/ksplashml/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files \ No newline at end of file
diff --git a/gentoo/trinity-base/ksplashml/ksplashml-3.5.13.1.ebuild b/gentoo/trinity-base/ksplashml/ksplashml-3.5.13.1.ebuild
new file mode 100644
index 000000000..4b7f961bf
--- /dev/null
+++ b/gentoo/trinity-base/ksplashml/ksplashml-3.5.13.1.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity splashscreen framework (of Trinity itself, not of individual apps)"
+KEYWORDS="x86 amd64"
+IUSE="xinerama"
+
+DEPEND="x11-libs/libXcursor
+ xinerama? ( x11-proto/xineramaproto )"
+RDEPEND="$DEPEND"
+
+src_configure() {
+ mycmakeargs=(
+ $(cmake-utils_use_with xinerama XINERAMA)
+ )
+
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-base/ksplashml/ksplashml-3.5.13.2.ebuild b/gentoo/trinity-base/ksplashml/ksplashml-3.5.13.2.ebuild
new file mode 100644
index 000000000..edabaa78e
--- /dev/null
+++ b/gentoo/trinity-base/ksplashml/ksplashml-3.5.13.2.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity splashscreen framework (of Trinity itself, not of individual apps)"
+KEYWORDS="~amd64 ~x86"
+IUSE="xinerama"
+
+DEPEND="x11-libs/libXcursor
+ xinerama? ( x11-proto/xineramaproto )"
+RDEPEND="$DEPEND"
+
+src_configure() {
+ mycmakeargs=(
+ $(cmake-utils_use_with xinerama XINERAMA)
+ )
+
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-base/ksplashml/ksplashml-9999.ebuild b/gentoo/trinity-base/ksplashml/ksplashml-9999.ebuild
new file mode 100644
index 000000000..d67ec25c3
--- /dev/null
+++ b/gentoo/trinity-base/ksplashml/ksplashml-9999.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity splashscreen framework (of Trinity itself, not of individual apps)"
+KEYWORDS=
+IUSE="xinerama"
+
+DEPEND="x11-libs/libXcursor
+ xinerama? ( x11-proto/xineramaproto )"
+RDEPEND="$DEPEND"
+
+src_configure() {
+ mycmakeargs=(
+ $(cmake-utils_use_with xinerama XINERAMA)
+ )
+
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-base/ksplashml/metadata.xml b/gentoo/trinity-base/ksplashml/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/ksplashml/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kstart/Manifest b/gentoo/trinity-base/kstart/Manifest
new file mode 100644
index 000000000..381340c4b
--- /dev/null
+++ b/gentoo/trinity-base/kstart/Manifest
@@ -0,0 +1,2 @@
+DIST kdebase-3.5.13.1.tar.gz 29403228 SHA256 ddd4bd4b508ad027b9d1af2701c6ba64bfc9f8f1d32099e6dd5e7866714f759e SHA512 e1aac19c941a5f2b43a57928fdb43e5ebd646f49c60911d9d317550df96642870792c4e77ecd06e123244e2425ccd4bcb00f0a21011ba7e651d7fcf4553e79cf WHIRLPOOL 931debbf6a65c280221025dcbc02cbb3387b66eb72eddd28a510ee8f97075cd2cc96535dde25d0a32280c399e4a868e9c027772f5d28e7e79b7c1a9080c58034
+DIST kdebase-trinity-3.5.13.2.tar.xz 25890636 SHA256 b9d552226daff64437dfb9699669b95dd7ebc2ca7c43755ba71c10cc6c9ed789 SHA512 df545d44c7d4550d1d77ff6504572b622853c2b8d80062b1aee1a5bdca19f0e708cde35cff54cf2d5098f06a41bde0c89522a3958dea9bb18205dea87c11b797 WHIRLPOOL 79144273bc7985c59a593a3394b12a2053532d2c4c890ce96adad21f6de0413baf3c6270d6d06173ec4546b20d401aa0cc81603d01b8ee41dbdefc825b39b2b1
diff --git a/gentoo/trinity-base/kstart/files/shared b/gentoo/trinity-base/kstart/files/shared
new file mode 120000
index 000000000..ffc286806
--- /dev/null
+++ b/gentoo/trinity-base/kstart/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files \ No newline at end of file
diff --git a/gentoo/trinity-base/kstart/kstart-3.5.13.1.ebuild b/gentoo/trinity-base/kstart/kstart-3.5.13.1.ebuild
new file mode 100644
index 000000000..5ad3dfa4c
--- /dev/null
+++ b/gentoo/trinity-base/kstart/kstart-3.5.13.1.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity utility to launch applications with special window properties"
+KEYWORDS="x86 amd64"
+IUSE=""
diff --git a/gentoo/trinity-base/kstart/kstart-3.5.13.2.ebuild b/gentoo/trinity-base/kstart/kstart-3.5.13.2.ebuild
new file mode 100644
index 000000000..a11cf44b8
--- /dev/null
+++ b/gentoo/trinity-base/kstart/kstart-3.5.13.2.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity utility to launch applications with special window properties"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
diff --git a/gentoo/trinity-base/kstart/kstart-9999.ebuild b/gentoo/trinity-base/kstart/kstart-9999.ebuild
new file mode 100644
index 000000000..bf45fc45e
--- /dev/null
+++ b/gentoo/trinity-base/kstart/kstart-9999.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity utility to launch applications with special window properties"
+KEYWORDS=
+IUSE=""
diff --git a/gentoo/trinity-base/kstart/metadata.xml b/gentoo/trinity-base/kstart/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kstart/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/ksvg/Manifest b/gentoo/trinity-base/ksvg/Manifest
new file mode 100644
index 000000000..f0ba54e9a
--- /dev/null
+++ b/gentoo/trinity-base/ksvg/Manifest
@@ -0,0 +1 @@
+DIST kdegraphics-3.5.13.1.tar.gz 7526074 SHA256 19bd36e261bb6c5d2c9c1eba5f736c642b48422d917d44e576835f7ebb44906b SHA512 693e5ad70dbb00c587e588acfb81fc9475c3a4dbc86f41d6053c0584c533349a7564e34b870cb7bbc57361ac539da6f7d7f1b002ac3cfe8b0201db3eeb9147dd WHIRLPOOL fd2c46c517b3a0293880eaf35967295485555b936d0f1e80e0f2c261a1164cfcc5c4b2d943a12c073914d33b59974cc2dd92a78414614caa10f46dd048d518b4
diff --git a/gentoo/trinity-base/ksvg/files/ksvg-3.5.13.1-bug1311.patch b/gentoo/trinity-base/ksvg/files/ksvg-3.5.13.1-bug1311.patch
new file mode 100644
index 000000000..cdec96621
--- /dev/null
+++ b/gentoo/trinity-base/ksvg/files/ksvg-3.5.13.1-bug1311.patch
@@ -0,0 +1,14 @@
+diff --git a/ksvg/ConfigureChecks.cmake b/ksvg/ConfigureChecks.cmake
+index 76177f5..2082482 100644
+--- a/ksvg/ConfigureChecks.cmake
++++ b/ksvg/ConfigureChecks.cmake
+@@ -41,7 +41,9 @@ endif( )
+ # fribidi
+ pkg_search_module( FRIBIDI fribidi )
+ if( FRIBIDI_FOUND )
++ set( CMAKE_REQUIRED_INCLUDES ${FRIBIDI_INCLUDE_DIRS} )
+ check_include_file( fribidi/fribidi-types.h FRIBIDI_NEW_FILENAME )
++ set( CMAKE_REQUIRED_INCLUDES )
+ else( )
+ tde_message_fatal( "fribidi is required, but was not found on your system" )
+ endif( )
diff --git a/gentoo/trinity-base/ksvg/ksvg-3.5.13.1.ebuild b/gentoo/trinity-base/ksvg/ksvg-3.5.13.1.ebuild
new file mode 100644
index 000000000..5baf7429b
--- /dev/null
+++ b/gentoo/trinity-base/ksvg/ksvg-3.5.13.1.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdegraphics"
+
+inherit trinity-meta
+
+DESCRIPTION="SVG viewer library and embeddable kpart"
+KEYWORDS="x86 amd64"
+IUSE=""
+
+DEPEND=">=media-libs/freetype-2.2
+ media-libs/fontconfig
+ media-libs/libart_lgpl
+ media-libs/lcms:0
+ dev-libs/fribidi"
+RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}/${P}-bug1311.patch" )
diff --git a/gentoo/trinity-base/ksvg/ksvg-9999.ebuild b/gentoo/trinity-base/ksvg/ksvg-9999.ebuild
new file mode 100644
index 000000000..78ab38013
--- /dev/null
+++ b/gentoo/trinity-base/ksvg/ksvg-9999.ebuild
@@ -0,0 +1,18 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdegraphics"
+
+inherit trinity-meta
+
+DESCRIPTION="SVG viewer library and embeddable kpart"
+KEYWORDS=
+IUSE=""
+
+DEPEND=">=media-libs/freetype-2.2
+ media-libs/fontconfig
+ media-libs/libart_lgpl
+ media-libs/lcms:0
+ dev-libs/fribidi"
+RDEPEND="${DEPEND}"
diff --git a/gentoo/trinity-base/ksvg/metadata.xml b/gentoo/trinity-base/ksvg/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/ksvg/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/ksysguard/Manifest b/gentoo/trinity-base/ksysguard/Manifest
new file mode 100644
index 000000000..381340c4b
--- /dev/null
+++ b/gentoo/trinity-base/ksysguard/Manifest
@@ -0,0 +1,2 @@
+DIST kdebase-3.5.13.1.tar.gz 29403228 SHA256 ddd4bd4b508ad027b9d1af2701c6ba64bfc9f8f1d32099e6dd5e7866714f759e SHA512 e1aac19c941a5f2b43a57928fdb43e5ebd646f49c60911d9d317550df96642870792c4e77ecd06e123244e2425ccd4bcb00f0a21011ba7e651d7fcf4553e79cf WHIRLPOOL 931debbf6a65c280221025dcbc02cbb3387b66eb72eddd28a510ee8f97075cd2cc96535dde25d0a32280c399e4a868e9c027772f5d28e7e79b7c1a9080c58034
+DIST kdebase-trinity-3.5.13.2.tar.xz 25890636 SHA256 b9d552226daff64437dfb9699669b95dd7ebc2ca7c43755ba71c10cc6c9ed789 SHA512 df545d44c7d4550d1d77ff6504572b622853c2b8d80062b1aee1a5bdca19f0e708cde35cff54cf2d5098f06a41bde0c89522a3958dea9bb18205dea87c11b797 WHIRLPOOL 79144273bc7985c59a593a3394b12a2053532d2c4c890ce96adad21f6de0413baf3c6270d6d06173ec4546b20d401aa0cc81603d01b8ee41dbdefc825b39b2b1
diff --git a/gentoo/trinity-base/ksysguard/files/shared b/gentoo/trinity-base/ksysguard/files/shared
new file mode 120000
index 000000000..ffc286806
--- /dev/null
+++ b/gentoo/trinity-base/ksysguard/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files \ No newline at end of file
diff --git a/gentoo/trinity-base/ksysguard/ksysguard-3.5.13.1.ebuild b/gentoo/trinity-base/ksysguard/ksysguard-3.5.13.1.ebuild
new file mode 100644
index 000000000..93617ac26
--- /dev/null
+++ b/gentoo/trinity-base/ksysguard/ksysguard-3.5.13.1.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="A network enabled task manager/system monitor"
+KEYWORDS="x86 amd64"
+IUSE=" dell-laptop"
+# TODO: make support for sensors when it will be supported by cmake scripts
+
+src_configure() {
+ mycmakeargs=(
+ $(cmake-utils_use_with dell-laptop I8K)
+ )
+
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-base/ksysguard/ksysguard-3.5.13.2.ebuild b/gentoo/trinity-base/ksysguard/ksysguard-3.5.13.2.ebuild
new file mode 100644
index 000000000..8d4c8ef7c
--- /dev/null
+++ b/gentoo/trinity-base/ksysguard/ksysguard-3.5.13.2.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="A network enabled task manager/system monitor"
+KEYWORDS="~amd64 ~x86"
+IUSE=" dell-laptop"
+# TODO: make support for sensors when it will be supported by cmake scripts
+
+src_configure() {
+ mycmakeargs=(
+ $(cmake-utils_use_with dell-laptop I8K)
+ )
+
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-base/ksysguard/ksysguard-9999.ebuild b/gentoo/trinity-base/ksysguard/ksysguard-9999.ebuild
new file mode 100644
index 000000000..a6deac40b
--- /dev/null
+++ b/gentoo/trinity-base/ksysguard/ksysguard-9999.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="A network enabled task manager/system monitor"
+KEYWORDS=
+IUSE=" dell-laptop"
+# TODO: make support for sensors when it will be supported by cmake scripts
+
+src_configure() {
+ mycmakeargs=(
+ $(cmake-utils_use_with dell-laptop I8K)
+ )
+
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-base/ksysguard/metadata.xml b/gentoo/trinity-base/ksysguard/metadata.xml
new file mode 100644
index 000000000..41bc6a0ef
--- /dev/null
+++ b/gentoo/trinity-base/ksysguard/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+ <use>
+ <flag name="dell-laptop">Adds support for some dell-specific laptop hardware.</flag>
+ </use>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/ksystraycmd/Manifest b/gentoo/trinity-base/ksystraycmd/Manifest
new file mode 100644
index 000000000..381340c4b
--- /dev/null
+++ b/gentoo/trinity-base/ksystraycmd/Manifest
@@ -0,0 +1,2 @@
+DIST kdebase-3.5.13.1.tar.gz 29403228 SHA256 ddd4bd4b508ad027b9d1af2701c6ba64bfc9f8f1d32099e6dd5e7866714f759e SHA512 e1aac19c941a5f2b43a57928fdb43e5ebd646f49c60911d9d317550df96642870792c4e77ecd06e123244e2425ccd4bcb00f0a21011ba7e651d7fcf4553e79cf WHIRLPOOL 931debbf6a65c280221025dcbc02cbb3387b66eb72eddd28a510ee8f97075cd2cc96535dde25d0a32280c399e4a868e9c027772f5d28e7e79b7c1a9080c58034
+DIST kdebase-trinity-3.5.13.2.tar.xz 25890636 SHA256 b9d552226daff64437dfb9699669b95dd7ebc2ca7c43755ba71c10cc6c9ed789 SHA512 df545d44c7d4550d1d77ff6504572b622853c2b8d80062b1aee1a5bdca19f0e708cde35cff54cf2d5098f06a41bde0c89522a3958dea9bb18205dea87c11b797 WHIRLPOOL 79144273bc7985c59a593a3394b12a2053532d2c4c890ce96adad21f6de0413baf3c6270d6d06173ec4546b20d401aa0cc81603d01b8ee41dbdefc825b39b2b1
diff --git a/gentoo/trinity-base/ksystraycmd/files/shared b/gentoo/trinity-base/ksystraycmd/files/shared
new file mode 120000
index 000000000..ffc286806
--- /dev/null
+++ b/gentoo/trinity-base/ksystraycmd/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files \ No newline at end of file
diff --git a/gentoo/trinity-base/ksystraycmd/ksystraycmd-3.5.13.1.ebuild b/gentoo/trinity-base/ksystraycmd/ksystraycmd-3.5.13.1.ebuild
new file mode 100644
index 000000000..d00736f42
--- /dev/null
+++ b/gentoo/trinity-base/ksystraycmd/ksystraycmd-3.5.13.1.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="ksystraycmd embeds applications given as argument into the system tray."
+KEYWORDS="x86 amd64"
+IUSE=""
diff --git a/gentoo/trinity-base/ksystraycmd/ksystraycmd-3.5.13.2.ebuild b/gentoo/trinity-base/ksystraycmd/ksystraycmd-3.5.13.2.ebuild
new file mode 100644
index 000000000..1e6c09776
--- /dev/null
+++ b/gentoo/trinity-base/ksystraycmd/ksystraycmd-3.5.13.2.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="ksystraycmd embeds applications given as argument into the system tray."
+KEYWORDS="~amd64 ~x86"
+IUSE=""
diff --git a/gentoo/trinity-base/ksystraycmd/ksystraycmd-9999.ebuild b/gentoo/trinity-base/ksystraycmd/ksystraycmd-9999.ebuild
new file mode 100644
index 000000000..2e77b123f
--- /dev/null
+++ b/gentoo/trinity-base/ksystraycmd/ksystraycmd-9999.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="ksystraycmd embeds applications given as argument into the system tray."
+KEYWORDS=
+IUSE=""
diff --git a/gentoo/trinity-base/ksystraycmd/metadata.xml b/gentoo/trinity-base/ksystraycmd/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/ksystraycmd/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/ktalkd/Manifest b/gentoo/trinity-base/ktalkd/Manifest
new file mode 100644
index 000000000..1d49700dc
--- /dev/null
+++ b/gentoo/trinity-base/ktalkd/Manifest
@@ -0,0 +1 @@
+DIST kdenetwork-3.5.13.1.tar.gz 8794225 SHA256 21e69e8cb2550561c26913a5cccdc376115f50cffd43f9a94f7a660a303f46f9 SHA512 b3189a9f5e9cddd130b24a82b95ef90db1ec3c7afa280a46101ba7cbf6f9d92f60a536401f648a96459ba87f70ede5f7ae4affe894515a8e858b40ee79cb1b69 WHIRLPOOL de678ab30e3aa8dc3068c895fd000fdab1bc046e272273bf44196a198210efab82ddde3c5e0ffaa863061e9c56e3a8a68ca2f8f03cd77136755f66688f878c65
diff --git a/gentoo/trinity-base/ktalkd/ktalkd-3.5.13.1.ebuild b/gentoo/trinity-base/ktalkd/ktalkd-3.5.13.1.ebuild
new file mode 100644
index 000000000..10df0dc77
--- /dev/null
+++ b/gentoo/trinity-base/ktalkd/ktalkd-3.5.13.1.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdenetwork"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity talk daemon"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND="|| ( net-misc/netkit-talk net-misc/ytalk sys-freebsd/freebsd-ubin )"
+
+pkg_postinst() {
+ trinity-meta_pkg_postinst
+
+ if has_version net-misc/ytalk ; then
+ elog "To use net-misc/ytalk as your local network chat program, please"
+ elog "configure your system accordingly, either via the KDE control center"
+ elog "or by calling \"kcmshell kcmktalkd\" on the command line."
+ fi
+}
diff --git a/gentoo/trinity-base/ktalkd/ktalkd-9999.ebuild b/gentoo/trinity-base/ktalkd/ktalkd-9999.ebuild
new file mode 100644
index 000000000..a48876ac9
--- /dev/null
+++ b/gentoo/trinity-base/ktalkd/ktalkd-9999.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdenetwork"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity talk daemon"
+KEYWORDS=
+IUSE=""
+
+RDEPEND="|| ( net-misc/netkit-talk net-misc/ytalk sys-freebsd/freebsd-ubin )"
+
+pkg_postinst() {
+ trinity-meta_pkg_postinst
+
+ if has_version net-misc/ytalk ; then
+ elog "To use net-misc/ytalk as your local network chat program, please"
+ elog "configure your system accordingly, either via the KDE control center"
+ elog "or by calling \"kcmshell kcmktalkd\" on the command line."
+ fi
+}
diff --git a/gentoo/trinity-base/ktalkd/metadata.xml b/gentoo/trinity-base/ktalkd/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/ktalkd/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kteatime/Manifest b/gentoo/trinity-base/kteatime/Manifest
new file mode 100644
index 000000000..23ad50106
--- /dev/null
+++ b/gentoo/trinity-base/kteatime/Manifest
@@ -0,0 +1,2 @@
+DIST kdetoys-3.5.13.1.tar.gz 3037255 SHA256 41e4224bcf816e52877b17d2dcdc86d94e8f304fee2d3fb35b97921544eafd9d SHA512 e7cd7943004e5d1ec83c0fe484fab82f2cdd5f5d39ee77db419938f023cd3c42ba0b257d0ddc783de7bd528c90195821d810babfa193c60856437593c24ce879 WHIRLPOOL 8d482537f972a24b1cef9ad789edd314517f4e3a6b37056f47d92292c8c30e70def24e99efc552b4504503e2224e1209ae946ff34ac94feaf128c038c54f010d
+DIST kdetoys-trinity-3.5.13.2.tar.xz 2757260 SHA256 a0533ceb6fb103600eb33ef3136d40f84ec826e24e0b95cc45e68ef73a5232f6 SHA512 eb67a70d75a473f885db8993f5eebd3480e68e43e4de60240fde411696ed8b895029505a5125fe51a41d6ccb583ba50c4c67465d770f14f9a1c1533281154f78 WHIRLPOOL d79f58085d2af17453fc50c621ea6fe6909d476cf5f0a6b6ccf51ef69eed0ba073091f587439eb5afd644e0286dfe2ee86ccd903346d3060c3fe90299511018a
diff --git a/gentoo/trinity-base/kteatime/files/shared b/gentoo/trinity-base/kteatime/files/shared
new file mode 120000
index 000000000..af62be31d
--- /dev/null
+++ b/gentoo/trinity-base/kteatime/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files/ \ No newline at end of file
diff --git a/gentoo/trinity-base/kteatime/kteatime-3.5.13.1.ebuild b/gentoo/trinity-base/kteatime/kteatime-3.5.13.1.ebuild
new file mode 100644
index 000000000..5156131af
--- /dev/null
+++ b/gentoo/trinity-base/kteatime/kteatime-3.5.13.1.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdetoys"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity utility for making a fine cup of tea"
+KEYWORDS="amd64 x86"
+IUSE=""
diff --git a/gentoo/trinity-base/kteatime/kteatime-3.5.13.2.ebuild b/gentoo/trinity-base/kteatime/kteatime-3.5.13.2.ebuild
new file mode 100644
index 000000000..08e1caa42
--- /dev/null
+++ b/gentoo/trinity-base/kteatime/kteatime-3.5.13.2.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdetoys"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity utility for making a fine cup of tea"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
diff --git a/gentoo/trinity-base/kteatime/kteatime-9999.ebuild b/gentoo/trinity-base/kteatime/kteatime-9999.ebuild
new file mode 100644
index 000000000..7aa0273c3
--- /dev/null
+++ b/gentoo/trinity-base/kteatime/kteatime-9999.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdetoys"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity utility for making a fine cup of tea"
+KEYWORDS=
+IUSE=""
diff --git a/gentoo/trinity-base/kteatime/metadata.xml b/gentoo/trinity-base/kteatime/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kteatime/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/ktimer/Manifest b/gentoo/trinity-base/ktimer/Manifest
new file mode 100644
index 000000000..c59ac62b4
--- /dev/null
+++ b/gentoo/trinity-base/ktimer/Manifest
@@ -0,0 +1,2 @@
+DIST kdeutils-3.5.13.1.tar.gz 2829393 SHA256 3e7ab07fe1bb3e7be7ac3a3796366c88d3b79a58af911546e2c65e32363db527 SHA512 48733e472d0f5da85ef8a32ed6db7fa5e61f0682e49842439e6ea38a1e407059bb35efffe41fc6ed1a718511fd5b2b2c8222d816a23500a4dcbca17461f9a3bd WHIRLPOOL 1488e0c44f60b4d5e397dd2cf93de048eae1b915d4b2b7b1cf27768946f5aae3b5bcc3971ee28b5fa6a57a0b94cca6db0866138b69ad74f1f7bb97cdaaebdbe2
+DIST kdeutils-trinity-3.5.13.2.tar.xz 2259232 SHA256 b2999b9ef39bb2f269b84fdf34a814b5a5599aae7d05538d0bf680c18fb334fa SHA512 f501aa4b61bf440e873eec96f09c0c24ad780db2f9f14b884001c04c04aafccb5afb2b492dcf4fc640f3ec35d86aa419d67936122648a986662cd7b7f4f8a2d8 WHIRLPOOL 49296006875250212f0fdeb0c90c4f69cf0aa7cfd38415e2f7b50bdf81754de64562df2400f4932a502adbe84b58be34cae6c029d68cc62d0e91de5158513239
diff --git a/gentoo/trinity-base/ktimer/files/shared b/gentoo/trinity-base/ktimer/files/shared
new file mode 120000
index 000000000..af62be31d
--- /dev/null
+++ b/gentoo/trinity-base/ktimer/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files/ \ No newline at end of file
diff --git a/gentoo/trinity-base/ktimer/ktimer-3.5.13.1.ebuild b/gentoo/trinity-base/ktimer/ktimer-3.5.13.1.ebuild
new file mode 100644
index 000000000..fc035d084
--- /dev/null
+++ b/gentoo/trinity-base/ktimer/ktimer-3.5.13.1.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdeutils"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity Timer"
+KEYWORDS="x86 amd64"
+IUSE=""
diff --git a/gentoo/trinity-base/ktimer/ktimer-3.5.13.2.ebuild b/gentoo/trinity-base/ktimer/ktimer-3.5.13.2.ebuild
new file mode 100644
index 000000000..9ce107b57
--- /dev/null
+++ b/gentoo/trinity-base/ktimer/ktimer-3.5.13.2.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdeutils"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity Timer"
+KEYWORDS="~x86 ~amd64"
+IUSE=""
diff --git a/gentoo/trinity-base/ktimer/ktimer-9999.ebuild b/gentoo/trinity-base/ktimer/ktimer-9999.ebuild
new file mode 100644
index 000000000..a0d68fca4
--- /dev/null
+++ b/gentoo/trinity-base/ktimer/ktimer-9999.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdeutils"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity Timer"
+KEYWORDS=""
+IUSE=""
diff --git a/gentoo/trinity-base/ktimer/metadata.xml b/gentoo/trinity-base/ktimer/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/ktimer/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/ktip/Manifest b/gentoo/trinity-base/ktip/Manifest
new file mode 100644
index 000000000..381340c4b
--- /dev/null
+++ b/gentoo/trinity-base/ktip/Manifest
@@ -0,0 +1,2 @@
+DIST kdebase-3.5.13.1.tar.gz 29403228 SHA256 ddd4bd4b508ad027b9d1af2701c6ba64bfc9f8f1d32099e6dd5e7866714f759e SHA512 e1aac19c941a5f2b43a57928fdb43e5ebd646f49c60911d9d317550df96642870792c4e77ecd06e123244e2425ccd4bcb00f0a21011ba7e651d7fcf4553e79cf WHIRLPOOL 931debbf6a65c280221025dcbc02cbb3387b66eb72eddd28a510ee8f97075cd2cc96535dde25d0a32280c399e4a868e9c027772f5d28e7e79b7c1a9080c58034
+DIST kdebase-trinity-3.5.13.2.tar.xz 25890636 SHA256 b9d552226daff64437dfb9699669b95dd7ebc2ca7c43755ba71c10cc6c9ed789 SHA512 df545d44c7d4550d1d77ff6504572b622853c2b8d80062b1aee1a5bdca19f0e708cde35cff54cf2d5098f06a41bde0c89522a3958dea9bb18205dea87c11b797 WHIRLPOOL 79144273bc7985c59a593a3394b12a2053532d2c4c890ce96adad21f6de0413baf3c6270d6d06173ec4546b20d401aa0cc81603d01b8ee41dbdefc825b39b2b1
diff --git a/gentoo/trinity-base/ktip/files/shared b/gentoo/trinity-base/ktip/files/shared
new file mode 120000
index 000000000..ffc286806
--- /dev/null
+++ b/gentoo/trinity-base/ktip/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files \ No newline at end of file
diff --git a/gentoo/trinity-base/ktip/ktip-3.5.13.1.ebuild b/gentoo/trinity-base/ktip/ktip-3.5.13.1.ebuild
new file mode 100644
index 000000000..43c9c67a5
--- /dev/null
+++ b/gentoo/trinity-base/ktip/ktip-3.5.13.1.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity tip-of-the-day displayer"
+KEYWORDS="x86 amd64"
+IUSE=""
diff --git a/gentoo/trinity-base/ktip/ktip-3.5.13.2.ebuild b/gentoo/trinity-base/ktip/ktip-3.5.13.2.ebuild
new file mode 100644
index 000000000..16b4921ce
--- /dev/null
+++ b/gentoo/trinity-base/ktip/ktip-3.5.13.2.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity tip-of-the-day displayer"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
diff --git a/gentoo/trinity-base/ktip/ktip-9999.ebuild b/gentoo/trinity-base/ktip/ktip-9999.ebuild
new file mode 100644
index 000000000..65eccee51
--- /dev/null
+++ b/gentoo/trinity-base/ktip/ktip-9999.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity tip-of-the-day displayer"
+KEYWORDS=
+IUSE=""
diff --git a/gentoo/trinity-base/ktip/metadata.xml b/gentoo/trinity-base/ktip/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/ktip/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/ktnef/Manifest b/gentoo/trinity-base/ktnef/Manifest
new file mode 100644
index 000000000..4a730c44c
--- /dev/null
+++ b/gentoo/trinity-base/ktnef/Manifest
@@ -0,0 +1,2 @@
+DIST kdepim-3.5.13.1.tar.gz 12954293 SHA256 29755dd66b6da83cb1105fd22954869b911c836f806c19d6a56cdfd6ee79287f SHA512 52f0133f0d296488786f26fe118eefb2018542a36de82d2fd253b7af4e1496ffbee1470869510259202b0a1b5cc6fb1b1b7b8a3ec0b27197fa60927281d1cb9e WHIRLPOOL b34852363e6a6ecdeaacbd9b0775ed0c8c5f692181dc1eee14543c0761a92af43bd96139a7588585ac9715721f62f2aaee603af11240a9a5a93d662262168887
+DIST kdepim-trinity-3.5.13.2.tar.xz 10148724 SHA256 2cbd61e28322e4c7d67ffb16ac59329b3f15ba1a4485095994b9bce6786df7c4 SHA512 a84319183813dc78dc97397c8c3871faa3961b458eda8107525b8b9c6789d13aedd8e3c7cb0706c4ca8dd63f69ff67de02716219c8af44ebf96d484d820eb2bf WHIRLPOOL 907d9d86f1b0094b915989ca7f0feb4f67ac1b238a4c6d176ab1ef9164eff78778b2714ebedeb40de28536a8384b39ec7e637f1bb6911cccb40f7d8663811edb
diff --git a/gentoo/trinity-base/ktnef/ktnef-3.5.13.1.ebuild b/gentoo/trinity-base/ktnef/ktnef-3.5.13.1.ebuild
new file mode 100644
index 000000000..367fdf568
--- /dev/null
+++ b/gentoo/trinity-base/ktnef/ktnef-3.5.13.1.ebuild
@@ -0,0 +1,13 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdepim"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity Viewer for mail attachments using TNEF format"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+TSM_EXTRACT_ALSO="libkdepim/"
diff --git a/gentoo/trinity-base/ktnef/ktnef-3.5.13.2.ebuild b/gentoo/trinity-base/ktnef/ktnef-3.5.13.2.ebuild
new file mode 100644
index 000000000..14f8a2a8b
--- /dev/null
+++ b/gentoo/trinity-base/ktnef/ktnef-3.5.13.2.ebuild
@@ -0,0 +1,13 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdepim"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity Viewer for mail attachments using TNEF format"
+KEYWORDS="~amd64 ~x86"
+IUSE+=""
+
+TSM_EXTRACT_ALSO="libkdepim/"
diff --git a/gentoo/trinity-base/ktnef/ktnef-9999.ebuild b/gentoo/trinity-base/ktnef/ktnef-9999.ebuild
new file mode 100644
index 000000000..ab67e3c4c
--- /dev/null
+++ b/gentoo/trinity-base/ktnef/ktnef-9999.ebuild
@@ -0,0 +1,13 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdepim"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity Viewer for mail attachments using TNEF format"
+KEYWORDS=""
+IUSE+=""
+
+TSM_EXTRACT_ALSO="libtdepim/"
diff --git a/gentoo/trinity-base/ktnef/metadata.xml b/gentoo/trinity-base/ktnef/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/ktnef/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/ktux/Manifest b/gentoo/trinity-base/ktux/Manifest
new file mode 100644
index 000000000..23ad50106
--- /dev/null
+++ b/gentoo/trinity-base/ktux/Manifest
@@ -0,0 +1,2 @@
+DIST kdetoys-3.5.13.1.tar.gz 3037255 SHA256 41e4224bcf816e52877b17d2dcdc86d94e8f304fee2d3fb35b97921544eafd9d SHA512 e7cd7943004e5d1ec83c0fe484fab82f2cdd5f5d39ee77db419938f023cd3c42ba0b257d0ddc783de7bd528c90195821d810babfa193c60856437593c24ce879 WHIRLPOOL 8d482537f972a24b1cef9ad789edd314517f4e3a6b37056f47d92292c8c30e70def24e99efc552b4504503e2224e1209ae946ff34ac94feaf128c038c54f010d
+DIST kdetoys-trinity-3.5.13.2.tar.xz 2757260 SHA256 a0533ceb6fb103600eb33ef3136d40f84ec826e24e0b95cc45e68ef73a5232f6 SHA512 eb67a70d75a473f885db8993f5eebd3480e68e43e4de60240fde411696ed8b895029505a5125fe51a41d6ccb583ba50c4c67465d770f14f9a1c1533281154f78 WHIRLPOOL d79f58085d2af17453fc50c621ea6fe6909d476cf5f0a6b6ccf51ef69eed0ba073091f587439eb5afd644e0286dfe2ee86ccd903346d3060c3fe90299511018a
diff --git a/gentoo/trinity-base/ktux/files/shared b/gentoo/trinity-base/ktux/files/shared
new file mode 120000
index 000000000..af62be31d
--- /dev/null
+++ b/gentoo/trinity-base/ktux/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files/ \ No newline at end of file
diff --git a/gentoo/trinity-base/ktux/ktux-3.5.13.1.ebuild b/gentoo/trinity-base/ktux/ktux-3.5.13.1.ebuild
new file mode 100644
index 000000000..1335c6aef
--- /dev/null
+++ b/gentoo/trinity-base/ktux/ktux-3.5.13.1.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdetoys"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity: screensaver featuring the Space-Faring Tux"
+KEYWORDS="amd64 x86"
+IUSE=""
diff --git a/gentoo/trinity-base/ktux/ktux-3.5.13.2.ebuild b/gentoo/trinity-base/ktux/ktux-3.5.13.2.ebuild
new file mode 100644
index 000000000..5df60de6f
--- /dev/null
+++ b/gentoo/trinity-base/ktux/ktux-3.5.13.2.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdetoys"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity: screensaver featuring the Space-Faring Tux"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
diff --git a/gentoo/trinity-base/ktux/ktux-9999.ebuild b/gentoo/trinity-base/ktux/ktux-9999.ebuild
new file mode 100644
index 000000000..02999a39c
--- /dev/null
+++ b/gentoo/trinity-base/ktux/ktux-9999.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdetoys"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity: screensaver featuring the Space-Faring Tux"
+KEYWORDS=
+IUSE=""
diff --git a/gentoo/trinity-base/ktux/metadata.xml b/gentoo/trinity-base/ktux/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/ktux/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kuickshow/Manifest b/gentoo/trinity-base/kuickshow/Manifest
new file mode 100644
index 000000000..f0ba54e9a
--- /dev/null
+++ b/gentoo/trinity-base/kuickshow/Manifest
@@ -0,0 +1 @@
+DIST kdegraphics-3.5.13.1.tar.gz 7526074 SHA256 19bd36e261bb6c5d2c9c1eba5f736c642b48422d917d44e576835f7ebb44906b SHA512 693e5ad70dbb00c587e588acfb81fc9475c3a4dbc86f41d6053c0584c533349a7564e34b870cb7bbc57361ac539da6f7d7f1b002ac3cfe8b0201db3eeb9147dd WHIRLPOOL fd2c46c517b3a0293880eaf35967295485555b936d0f1e80e0f2c261a1164cfcc5c4b2d943a12c073914d33b59974cc2dd92a78414614caa10f46dd048d518b4
diff --git a/gentoo/trinity-base/kuickshow/kuickshow-3.5.13.1.ebuild b/gentoo/trinity-base/kuickshow/kuickshow-3.5.13.1.ebuild
new file mode 100644
index 000000000..864d3a32e
--- /dev/null
+++ b/gentoo/trinity-base/kuickshow/kuickshow-3.5.13.1.ebuild
@@ -0,0 +1,15 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdegraphics"
+
+inherit trinity-meta
+
+DESCRIPTION="A fast and versatile image viewer for Trinity"
+KEYWORDS="x86 amd64"
+IUSE=""
+
+DEPEND="x11-libs/libXext
+ media-libs/imlib"
+RDEPEND="${DEPEND}"
diff --git a/gentoo/trinity-base/kuickshow/kuickshow-9999.ebuild b/gentoo/trinity-base/kuickshow/kuickshow-9999.ebuild
new file mode 100644
index 000000000..b726d5d85
--- /dev/null
+++ b/gentoo/trinity-base/kuickshow/kuickshow-9999.ebuild
@@ -0,0 +1,15 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdegraphics"
+
+inherit trinity-meta
+
+DESCRIPTION="A fast and versatile image viewer for Trinity"
+KEYWORDS=
+IUSE=""
+
+DEPEND="x11-libs/libXext
+ media-libs/imlib"
+RDEPEND="${DEPEND}"
diff --git a/gentoo/trinity-base/kuickshow/metadata.xml b/gentoo/trinity-base/kuickshow/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kuickshow/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kview/Manifest b/gentoo/trinity-base/kview/Manifest
new file mode 100644
index 000000000..f0ba54e9a
--- /dev/null
+++ b/gentoo/trinity-base/kview/Manifest
@@ -0,0 +1 @@
+DIST kdegraphics-3.5.13.1.tar.gz 7526074 SHA256 19bd36e261bb6c5d2c9c1eba5f736c642b48422d917d44e576835f7ebb44906b SHA512 693e5ad70dbb00c587e588acfb81fc9475c3a4dbc86f41d6053c0584c533349a7564e34b870cb7bbc57361ac539da6f7d7f1b002ac3cfe8b0201db3eeb9147dd WHIRLPOOL fd2c46c517b3a0293880eaf35967295485555b936d0f1e80e0f2c261a1164cfcc5c4b2d943a12c073914d33b59974cc2dd92a78414614caa10f46dd048d518b4
diff --git a/gentoo/trinity-base/kview/kview-3.5.13.1.ebuild b/gentoo/trinity-base/kview/kview-3.5.13.1.ebuild
new file mode 100644
index 000000000..8c5861408
--- /dev/null
+++ b/gentoo/trinity-base/kview/kview-3.5.13.1.ebuild
@@ -0,0 +1,12 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdegraphics"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity image viewer"
+
+KEYWORDS="amd64 x86"
+IUSE=""
diff --git a/gentoo/trinity-base/kview/kview-9999.ebuild b/gentoo/trinity-base/kview/kview-9999.ebuild
new file mode 100644
index 000000000..610d0ecc4
--- /dev/null
+++ b/gentoo/trinity-base/kview/kview-9999.ebuild
@@ -0,0 +1,12 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdegraphics"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity image viewer"
+
+KEYWORDS=
+IUSE=""
diff --git a/gentoo/trinity-base/kview/metadata.xml b/gentoo/trinity-base/kview/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kview/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kviewshell/Manifest b/gentoo/trinity-base/kviewshell/Manifest
new file mode 100644
index 000000000..f0ba54e9a
--- /dev/null
+++ b/gentoo/trinity-base/kviewshell/Manifest
@@ -0,0 +1 @@
+DIST kdegraphics-3.5.13.1.tar.gz 7526074 SHA256 19bd36e261bb6c5d2c9c1eba5f736c642b48422d917d44e576835f7ebb44906b SHA512 693e5ad70dbb00c587e588acfb81fc9475c3a4dbc86f41d6053c0584c533349a7564e34b870cb7bbc57361ac539da6f7d7f1b002ac3cfe8b0201db3eeb9147dd WHIRLPOOL fd2c46c517b3a0293880eaf35967295485555b936d0f1e80e0f2c261a1164cfcc5c4b2d943a12c073914d33b59974cc2dd92a78414614caa10f46dd048d518b4
diff --git a/gentoo/trinity-base/kviewshell/kviewshell-3.5.13.1.ebuild b/gentoo/trinity-base/kviewshell/kviewshell-3.5.13.1.ebuild
new file mode 100644
index 000000000..ccc77e332
--- /dev/null
+++ b/gentoo/trinity-base/kviewshell/kviewshell-3.5.13.1.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdegraphics"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity: Generic framework for viewer applications"
+KEYWORDS="x86 amd64"
+IUSE=""
diff --git a/gentoo/trinity-base/kviewshell/kviewshell-9999.ebuild b/gentoo/trinity-base/kviewshell/kviewshell-9999.ebuild
new file mode 100644
index 000000000..09099360b
--- /dev/null
+++ b/gentoo/trinity-base/kviewshell/kviewshell-9999.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdegraphics"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity: Generic framework for viewer applications"
+KEYWORDS=
+IUSE=""
diff --git a/gentoo/trinity-base/kviewshell/metadata.xml b/gentoo/trinity-base/kviewshell/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kviewshell/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kwallet/Manifest b/gentoo/trinity-base/kwallet/Manifest
new file mode 100644
index 000000000..c59ac62b4
--- /dev/null
+++ b/gentoo/trinity-base/kwallet/Manifest
@@ -0,0 +1,2 @@
+DIST kdeutils-3.5.13.1.tar.gz 2829393 SHA256 3e7ab07fe1bb3e7be7ac3a3796366c88d3b79a58af911546e2c65e32363db527 SHA512 48733e472d0f5da85ef8a32ed6db7fa5e61f0682e49842439e6ea38a1e407059bb35efffe41fc6ed1a718511fd5b2b2c8222d816a23500a4dcbca17461f9a3bd WHIRLPOOL 1488e0c44f60b4d5e397dd2cf93de048eae1b915d4b2b7b1cf27768946f5aae3b5bcc3971ee28b5fa6a57a0b94cca6db0866138b69ad74f1f7bb97cdaaebdbe2
+DIST kdeutils-trinity-3.5.13.2.tar.xz 2259232 SHA256 b2999b9ef39bb2f269b84fdf34a814b5a5599aae7d05538d0bf680c18fb334fa SHA512 f501aa4b61bf440e873eec96f09c0c24ad780db2f9f14b884001c04c04aafccb5afb2b492dcf4fc640f3ec35d86aa419d67936122648a986662cd7b7f4f8a2d8 WHIRLPOOL 49296006875250212f0fdeb0c90c4f69cf0aa7cfd38415e2f7b50bdf81754de64562df2400f4932a502adbe84b58be34cae6c029d68cc62d0e91de5158513239
diff --git a/gentoo/trinity-base/kwallet/files/shared b/gentoo/trinity-base/kwallet/files/shared
new file mode 120000
index 000000000..af62be31d
--- /dev/null
+++ b/gentoo/trinity-base/kwallet/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files/ \ No newline at end of file
diff --git a/gentoo/trinity-base/kwallet/kwallet-3.5.13.1.ebuild b/gentoo/trinity-base/kwallet/kwallet-3.5.13.1.ebuild
new file mode 100644
index 000000000..399a3e4dd
--- /dev/null
+++ b/gentoo/trinity-base/kwallet/kwallet-3.5.13.1.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdeutils"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity Wallet Management Tool"
+KEYWORDS="x86 amd64"
+IUSE=""
diff --git a/gentoo/trinity-base/kwallet/kwallet-3.5.13.2.ebuild b/gentoo/trinity-base/kwallet/kwallet-3.5.13.2.ebuild
new file mode 100644
index 000000000..ae7e1eecd
--- /dev/null
+++ b/gentoo/trinity-base/kwallet/kwallet-3.5.13.2.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdeutils"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity Wallet Management Tool"
+KEYWORDS="~x86 ~amd64"
+IUSE=""
diff --git a/gentoo/trinity-base/kwallet/metadata.xml b/gentoo/trinity-base/kwallet/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kwallet/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kweather/Manifest b/gentoo/trinity-base/kweather/Manifest
new file mode 100644
index 000000000..23ad50106
--- /dev/null
+++ b/gentoo/trinity-base/kweather/Manifest
@@ -0,0 +1,2 @@
+DIST kdetoys-3.5.13.1.tar.gz 3037255 SHA256 41e4224bcf816e52877b17d2dcdc86d94e8f304fee2d3fb35b97921544eafd9d SHA512 e7cd7943004e5d1ec83c0fe484fab82f2cdd5f5d39ee77db419938f023cd3c42ba0b257d0ddc783de7bd528c90195821d810babfa193c60856437593c24ce879 WHIRLPOOL 8d482537f972a24b1cef9ad789edd314517f4e3a6b37056f47d92292c8c30e70def24e99efc552b4504503e2224e1209ae946ff34ac94feaf128c038c54f010d
+DIST kdetoys-trinity-3.5.13.2.tar.xz 2757260 SHA256 a0533ceb6fb103600eb33ef3136d40f84ec826e24e0b95cc45e68ef73a5232f6 SHA512 eb67a70d75a473f885db8993f5eebd3480e68e43e4de60240fde411696ed8b895029505a5125fe51a41d6ccb583ba50c4c67465d770f14f9a1c1533281154f78 WHIRLPOOL d79f58085d2af17453fc50c621ea6fe6909d476cf5f0a6b6ccf51ef69eed0ba073091f587439eb5afd644e0286dfe2ee86ccd903346d3060c3fe90299511018a
diff --git a/gentoo/trinity-base/kweather/files/shared b/gentoo/trinity-base/kweather/files/shared
new file mode 120000
index 000000000..af62be31d
--- /dev/null
+++ b/gentoo/trinity-base/kweather/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files/ \ No newline at end of file
diff --git a/gentoo/trinity-base/kweather/kweather-3.5.13.1.ebuild b/gentoo/trinity-base/kweather/kweather-3.5.13.1.ebuild
new file mode 100644
index 000000000..b78a778f9
--- /dev/null
+++ b/gentoo/trinity-base/kweather/kweather-3.5.13.1.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdetoys"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity weather status display"
+KEYWORDS="amd64 x86"
+IUSE=""
diff --git a/gentoo/trinity-base/kweather/kweather-3.5.13.2.ebuild b/gentoo/trinity-base/kweather/kweather-3.5.13.2.ebuild
new file mode 100644
index 000000000..2d52cb731
--- /dev/null
+++ b/gentoo/trinity-base/kweather/kweather-3.5.13.2.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdetoys"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity weather status display"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
diff --git a/gentoo/trinity-base/kweather/kweather-9999.ebuild b/gentoo/trinity-base/kweather/kweather-9999.ebuild
new file mode 100644
index 000000000..3d61a5ad3
--- /dev/null
+++ b/gentoo/trinity-base/kweather/kweather-9999.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdetoys"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity weather status display"
+KEYWORDS=
+IUSE=""
diff --git a/gentoo/trinity-base/kweather/metadata.xml b/gentoo/trinity-base/kweather/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kweather/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kwifimanager/Manifest b/gentoo/trinity-base/kwifimanager/Manifest
new file mode 100644
index 000000000..1d49700dc
--- /dev/null
+++ b/gentoo/trinity-base/kwifimanager/Manifest
@@ -0,0 +1 @@
+DIST kdenetwork-3.5.13.1.tar.gz 8794225 SHA256 21e69e8cb2550561c26913a5cccdc376115f50cffd43f9a94f7a660a303f46f9 SHA512 b3189a9f5e9cddd130b24a82b95ef90db1ec3c7afa280a46101ba7cbf6f9d92f60a536401f648a96459ba87f70ede5f7ae4affe894515a8e858b40ee79cb1b69 WHIRLPOOL de678ab30e3aa8dc3068c895fd000fdab1bc046e272273bf44196a198210efab82ddde3c5e0ffaa863061e9c56e3a8a68ca2f8f03cd77136755f66688f878c65
diff --git a/gentoo/trinity-base/kwifimanager/files/kwifimanager-fix-3.5.13.1.patch b/gentoo/trinity-base/kwifimanager/files/kwifimanager-fix-3.5.13.1.patch
new file mode 100644
index 000000000..9e66af37d
--- /dev/null
+++ b/gentoo/trinity-base/kwifimanager/files/kwifimanager-fix-3.5.13.1.patch
@@ -0,0 +1,25 @@
+diff --git a/wifi/ConfigureChecks.cmake b/wifi/ConfigureChecks.cmake
+index f3a7ddb..0d2972b 100644
+--- a/wifi/ConfigureChecks.cmake
++++ b/wifi/ConfigureChecks.cmake
+@@ -21,7 +21,9 @@ endif( )
+
+
+ # check for wireless tools
++set( CMAKE_REQUIRED_FLAGS "-lm" )
+ check_library_exists( iw iw_get_stats "" HAVE_IW )
++set( CMAKE_REQUIRED_FLAGS )
+ if( HAVE_IW )
+ check_include_file( iwlib.h HAVE_IWLIB_H )
+ # we need at least wireless tools >= 27
+diff --git a/wifi/kwireless/CMakeLists.txt b/wifi/kwireless/CMakeLists.txt
+index 5acfb5a..3707722 100644
+--- a/wifi/kwireless/CMakeLists.txt
++++ b/wifi/kwireless/CMakeLists.txt
+@@ -33,5 +33,5 @@ tde_add_kpart( libkwireless AUTOMOC
+ kwireless.cpp kwirelesswidget.cpp linuxwirelesswidget.cpp
+ propertytablebase.ui propertytable.cpp
+ LINK kdeui-shared ${IW_LIBRARY}
+- DESTINATION ${PLUGIN_INSTALL_DIR}
++ DESTINATION ${LIB_INSTALL_DIR}
+ )
diff --git a/gentoo/trinity-base/kwifimanager/kwifimanager-3.5.13.1.ebuild b/gentoo/trinity-base/kwifimanager/kwifimanager-3.5.13.1.ebuild
new file mode 100644
index 000000000..ec388986c
--- /dev/null
+++ b/gentoo/trinity-base/kwifimanager/kwifimanager-3.5.13.1.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdenetwork"
+TRINITY_SUBMODULE="wifi"
+inherit trinity-meta
+
+DESCRIPTION="Trinity wifi (wireless network) gui"
+KEYWORDS="amd64 x86"
+IUSE="arts"
+
+DEPEND="
+ net-wireless/wireless-tools
+ arts? ( trinity-base/arts )"
+RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}/kwifimanager-fix-3.5.13.1.patch" )
+
+src_configure() {
+ mycmakeargs=(
+ $(cmake-utils_use_with arts ARTS)
+ )
+
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-base/kwifimanager/kwifimanager-9999.ebuild b/gentoo/trinity-base/kwifimanager/kwifimanager-9999.ebuild
new file mode 100644
index 000000000..20cb066e9
--- /dev/null
+++ b/gentoo/trinity-base/kwifimanager/kwifimanager-9999.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdenetwork"
+TRINITY_SUBMODULE="wifi"
+inherit trinity-meta
+
+DESCRIPTION="Trinity wifi (wireless network) gui"
+KEYWORDS=
+IUSE="arts"
+
+DEPEND="
+ net-wireless/wireless-tools
+ arts? ( trinity-base/arts )"
+RDEPEND="${DEPEND}"
+
+src_configure() {
+ mycmakeargs=(
+ $(cmake-utils_use_with arts ARTS)
+ )
+
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-base/kwifimanager/metadata.xml b/gentoo/trinity-base/kwifimanager/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kwifimanager/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kwin/Manifest b/gentoo/trinity-base/kwin/Manifest
new file mode 100644
index 000000000..381340c4b
--- /dev/null
+++ b/gentoo/trinity-base/kwin/Manifest
@@ -0,0 +1,2 @@
+DIST kdebase-3.5.13.1.tar.gz 29403228 SHA256 ddd4bd4b508ad027b9d1af2701c6ba64bfc9f8f1d32099e6dd5e7866714f759e SHA512 e1aac19c941a5f2b43a57928fdb43e5ebd646f49c60911d9d317550df96642870792c4e77ecd06e123244e2425ccd4bcb00f0a21011ba7e651d7fcf4553e79cf WHIRLPOOL 931debbf6a65c280221025dcbc02cbb3387b66eb72eddd28a510ee8f97075cd2cc96535dde25d0a32280c399e4a868e9c027772f5d28e7e79b7c1a9080c58034
+DIST kdebase-trinity-3.5.13.2.tar.xz 25890636 SHA256 b9d552226daff64437dfb9699669b95dd7ebc2ca7c43755ba71c10cc6c9ed789 SHA512 df545d44c7d4550d1d77ff6504572b622853c2b8d80062b1aee1a5bdca19f0e708cde35cff54cf2d5098f06a41bde0c89522a3958dea9bb18205dea87c11b797 WHIRLPOOL 79144273bc7985c59a593a3394b12a2053532d2c4c890ce96adad21f6de0413baf3c6270d6d06173ec4546b20d401aa0cc81603d01b8ee41dbdefc825b39b2b1
diff --git a/gentoo/trinity-base/kwin/kwin-3.5.13.1.ebuild b/gentoo/trinity-base/kwin/kwin-3.5.13.1.ebuild
new file mode 100644
index 000000000..655b5fdb3
--- /dev/null
+++ b/gentoo/trinity-base/kwin/kwin-3.5.13.1.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta eutils
+
+DESCRIPTION="Trinity window manager"
+KEYWORDS="x86 amd64"
+IUSE="xcomposite"
+
+DEPEND="x11-libs/libXext
+ x11-libs/libXfixes
+ x11-libs/libXrender
+ xcomposite? ( x11-libs/libXcomposite )"
+RDEPEND="${DEPEND}"
+
+src_configure() {
+ mycmakeargs=(
+ $(cmake-utils_use_with xcomposite XCOMPOSITE)
+ $(cmake-utils_use_with xcomposite XFIXES)
+ $(cmake-utils_use_with xcomposite XRENDER)
+ $(cmake-utils_use_with xcomposite XDAMAGE)
+ $(cmake-utils_use_with xcomposite XEXT)
+ )
+
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-base/kwin/kwin-3.5.13.2.ebuild b/gentoo/trinity-base/kwin/kwin-3.5.13.2.ebuild
new file mode 100644
index 000000000..9d845850a
--- /dev/null
+++ b/gentoo/trinity-base/kwin/kwin-3.5.13.2.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta eutils
+
+DESCRIPTION="Trinity window manager"
+KEYWORDS="~amd64 ~x86"
+IUSE="xcomposite"
+
+DEPEND="x11-libs/libXext
+ x11-libs/libXfixes
+ x11-libs/libXrender
+ xcomposite? ( x11-libs/libXcomposite )"
+RDEPEND="${DEPEND}"
+
+src_configure() {
+ mycmakeargs=(
+ $(cmake-utils_use_with xcomposite XCOMPOSITE)
+ $(cmake-utils_use_with xcomposite XFIXES)
+ $(cmake-utils_use_with xcomposite XRENDER)
+ $(cmake-utils_use_with xcomposite XDAMAGE)
+ $(cmake-utils_use_with xcomposite XEXT)
+ )
+
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-base/kwin/metadata.xml b/gentoo/trinity-base/kwin/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kwin/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kworldclock/Manifest b/gentoo/trinity-base/kworldclock/Manifest
new file mode 100644
index 000000000..23ad50106
--- /dev/null
+++ b/gentoo/trinity-base/kworldclock/Manifest
@@ -0,0 +1,2 @@
+DIST kdetoys-3.5.13.1.tar.gz 3037255 SHA256 41e4224bcf816e52877b17d2dcdc86d94e8f304fee2d3fb35b97921544eafd9d SHA512 e7cd7943004e5d1ec83c0fe484fab82f2cdd5f5d39ee77db419938f023cd3c42ba0b257d0ddc783de7bd528c90195821d810babfa193c60856437593c24ce879 WHIRLPOOL 8d482537f972a24b1cef9ad789edd314517f4e3a6b37056f47d92292c8c30e70def24e99efc552b4504503e2224e1209ae946ff34ac94feaf128c038c54f010d
+DIST kdetoys-trinity-3.5.13.2.tar.xz 2757260 SHA256 a0533ceb6fb103600eb33ef3136d40f84ec826e24e0b95cc45e68ef73a5232f6 SHA512 eb67a70d75a473f885db8993f5eebd3480e68e43e4de60240fde411696ed8b895029505a5125fe51a41d6ccb583ba50c4c67465d770f14f9a1c1533281154f78 WHIRLPOOL d79f58085d2af17453fc50c621ea6fe6909d476cf5f0a6b6ccf51ef69eed0ba073091f587439eb5afd644e0286dfe2ee86ccd903346d3060c3fe90299511018a
diff --git a/gentoo/trinity-base/kworldclock/files/shared b/gentoo/trinity-base/kworldclock/files/shared
new file mode 120000
index 000000000..af62be31d
--- /dev/null
+++ b/gentoo/trinity-base/kworldclock/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files/ \ No newline at end of file
diff --git a/gentoo/trinity-base/kworldclock/kworldclock-3.5.13.1.ebuild b/gentoo/trinity-base/kworldclock/kworldclock-3.5.13.1.ebuild
new file mode 100644
index 000000000..74bb462ea
--- /dev/null
+++ b/gentoo/trinity-base/kworldclock/kworldclock-3.5.13.1.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdetoys"
+TRINITY_SUBMODULE="kworldwatch"
+inherit trinity-meta
+
+DESCRIPTION="Trinity program that displays the part of the Earth lit up by the Sun"
+KEYWORDS="x86 amd64"
+IUSE=""
diff --git a/gentoo/trinity-base/kworldclock/kworldclock-3.5.13.2.ebuild b/gentoo/trinity-base/kworldclock/kworldclock-3.5.13.2.ebuild
new file mode 100644
index 000000000..ae040cf78
--- /dev/null
+++ b/gentoo/trinity-base/kworldclock/kworldclock-3.5.13.2.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdetoys"
+TRINITY_SUBMODULE="kworldwatch"
+inherit trinity-meta
+
+DESCRIPTION="Trinity program that displays the part of the Earth lit up by the Sun"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
diff --git a/gentoo/trinity-base/kworldclock/kworldclock-9999.ebuild b/gentoo/trinity-base/kworldclock/kworldclock-9999.ebuild
new file mode 100644
index 000000000..8c9e57afc
--- /dev/null
+++ b/gentoo/trinity-base/kworldclock/kworldclock-9999.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdetoys"
+TRINITY_SUBMODULE="kworldwatch"
+inherit trinity-meta
+
+DESCRIPTION="Trinity program that displays the part of the Earth lit up by the Sun"
+KEYWORDS=
+IUSE=""
diff --git a/gentoo/trinity-base/kworldclock/metadata.xml b/gentoo/trinity-base/kworldclock/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kworldclock/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/kxkb/Manifest b/gentoo/trinity-base/kxkb/Manifest
new file mode 100644
index 000000000..381340c4b
--- /dev/null
+++ b/gentoo/trinity-base/kxkb/Manifest
@@ -0,0 +1,2 @@
+DIST kdebase-3.5.13.1.tar.gz 29403228 SHA256 ddd4bd4b508ad027b9d1af2701c6ba64bfc9f8f1d32099e6dd5e7866714f759e SHA512 e1aac19c941a5f2b43a57928fdb43e5ebd646f49c60911d9d317550df96642870792c4e77ecd06e123244e2425ccd4bcb00f0a21011ba7e651d7fcf4553e79cf WHIRLPOOL 931debbf6a65c280221025dcbc02cbb3387b66eb72eddd28a510ee8f97075cd2cc96535dde25d0a32280c399e4a868e9c027772f5d28e7e79b7c1a9080c58034
+DIST kdebase-trinity-3.5.13.2.tar.xz 25890636 SHA256 b9d552226daff64437dfb9699669b95dd7ebc2ca7c43755ba71c10cc6c9ed789 SHA512 df545d44c7d4550d1d77ff6504572b622853c2b8d80062b1aee1a5bdca19f0e708cde35cff54cf2d5098f06a41bde0c89522a3958dea9bb18205dea87c11b797 WHIRLPOOL 79144273bc7985c59a593a3394b12a2053532d2c4c890ce96adad21f6de0413baf3c6270d6d06173ec4546b20d401aa0cc81603d01b8ee41dbdefc825b39b2b1
diff --git a/gentoo/trinity-base/kxkb/files/shared b/gentoo/trinity-base/kxkb/files/shared
new file mode 120000
index 000000000..ffc286806
--- /dev/null
+++ b/gentoo/trinity-base/kxkb/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files \ No newline at end of file
diff --git a/gentoo/trinity-base/kxkb/kxkb-3.5.13.1.ebuild b/gentoo/trinity-base/kxkb/kxkb-3.5.13.1.ebuild
new file mode 100644
index 000000000..5867be3c4
--- /dev/null
+++ b/gentoo/trinity-base/kxkb/kxkb-3.5.13.1.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="KControl module for the X11 to configure and switch keyboard layouts"
+KEYWORDS="x86 amd64"
+IUSE=""
+
+DEPEND="x11-libs/libXtst"
+RDEPEND="${DEPEND}
+ x11-misc/xkeyboard-config
+ x11-apps/setxkbmap"
+
+src_configure() {
+ mycmakeargs=(
+ -DWITH_XTEST=ON
+ )
+
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-base/kxkb/kxkb-3.5.13.2.ebuild b/gentoo/trinity-base/kxkb/kxkb-3.5.13.2.ebuild
new file mode 100644
index 000000000..d0c626b51
--- /dev/null
+++ b/gentoo/trinity-base/kxkb/kxkb-3.5.13.2.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="KControl module for the X11 to configure and switch keyboard layouts"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="x11-libs/libXtst"
+RDEPEND="${DEPEND}
+ x11-misc/xkeyboard-config
+ x11-apps/setxkbmap"
+
+src_configure() {
+ mycmakeargs=(
+ -DWITH_XTEST=ON
+ )
+
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-base/kxkb/kxkb-9999.ebuild b/gentoo/trinity-base/kxkb/kxkb-9999.ebuild
new file mode 100644
index 000000000..e30ed33a2
--- /dev/null
+++ b/gentoo/trinity-base/kxkb/kxkb-9999.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="KControl module for the X11 to configure and switch keyboard layouts"
+KEYWORDS=
+IUSE=""
+
+DEPEND="x11-libs/libXtst"
+RDEPEND="${DEPEND}
+ x11-misc/xkeyboard-config
+ x11-apps/setxkbmap"
+
+src_configure() {
+ mycmakeargs=(
+ -DWITH_XTEST=ON
+ )
+
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-base/kxkb/metadata.xml b/gentoo/trinity-base/kxkb/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/kxkb/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/libkcal/Manifest b/gentoo/trinity-base/libkcal/Manifest
new file mode 100644
index 000000000..4a730c44c
--- /dev/null
+++ b/gentoo/trinity-base/libkcal/Manifest
@@ -0,0 +1,2 @@
+DIST kdepim-3.5.13.1.tar.gz 12954293 SHA256 29755dd66b6da83cb1105fd22954869b911c836f806c19d6a56cdfd6ee79287f SHA512 52f0133f0d296488786f26fe118eefb2018542a36de82d2fd253b7af4e1496ffbee1470869510259202b0a1b5cc6fb1b1b7b8a3ec0b27197fa60927281d1cb9e WHIRLPOOL b34852363e6a6ecdeaacbd9b0775ed0c8c5f692181dc1eee14543c0761a92af43bd96139a7588585ac9715721f62f2aaee603af11240a9a5a93d662262168887
+DIST kdepim-trinity-3.5.13.2.tar.xz 10148724 SHA256 2cbd61e28322e4c7d67ffb16ac59329b3f15ba1a4485095994b9bce6786df7c4 SHA512 a84319183813dc78dc97397c8c3871faa3961b458eda8107525b8b9c6789d13aedd8e3c7cb0706c4ca8dd63f69ff67de02716219c8af44ebf96d484d820eb2bf WHIRLPOOL 907d9d86f1b0094b915989ca7f0feb4f67ac1b238a4c6d176ab1ef9164eff78778b2714ebedeb40de28536a8384b39ec7e637f1bb6911cccb40f7d8663811edb
diff --git a/gentoo/trinity-base/libkcal/libkcal-3.5.13.1.ebuild b/gentoo/trinity-base/libkcal/libkcal-3.5.13.1.ebuild
new file mode 100644
index 000000000..a8924a8c9
--- /dev/null
+++ b/gentoo/trinity-base/libkcal/libkcal-3.5.13.1.ebuild
@@ -0,0 +1,19 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdepim"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity kcal library for KOrganizer etc"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="
+ dev-libs/libical
+ >=trinity-base/ktnef-${PV}:${SLOT}
+ >=trinity-base/libkmime-${PV}:${SLOT}"
+RDEPEND="${DEPEND}"
+
+TSM_EXTRACT_ALSO="libemailfunctions/ libkdepim/ libkmime/ ktnef/"
diff --git a/gentoo/trinity-base/libkcal/libkcal-3.5.13.2.ebuild b/gentoo/trinity-base/libkcal/libkcal-3.5.13.2.ebuild
new file mode 100644
index 000000000..456f2a141
--- /dev/null
+++ b/gentoo/trinity-base/libkcal/libkcal-3.5.13.2.ebuild
@@ -0,0 +1,19 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdepim"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity kcal library for KOrganizer etc"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="
+ dev-libs/libical
+ >=trinity-base/ktnef-${PV}:${SLOT}
+ >=trinity-base/libkmime-${PV}:${SLOT}"
+RDEPEND="${DEPEND}"
+
+TSM_EXTRACT_ALSO="libemailfunctions/ libkdepim/ libkmime/ ktnef/"
diff --git a/gentoo/trinity-base/libkcal/libkcal-9999.ebuild b/gentoo/trinity-base/libkcal/libkcal-9999.ebuild
new file mode 100644
index 000000000..b1483a8d0
--- /dev/null
+++ b/gentoo/trinity-base/libkcal/libkcal-9999.ebuild
@@ -0,0 +1,19 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdepim"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity kcal library for KOrganizer etc"
+KEYWORDS=""
+IUSE=""
+
+DEPEND="
+ dev-libs/libical
+ >=trinity-base/ktnef-${PV}:${SLOT}
+ >=trinity-base/libkmime-${PV}:${SLOT}"
+RDEPEND="${DEPEND}"
+
+TSM_EXTRACT_ALSO="libemailfunctions/ libtdepim/ libkmime/ ktnef/"
diff --git a/gentoo/trinity-base/libkcal/metadata.xml b/gentoo/trinity-base/libkcal/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/libkcal/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/libkdenetwork/Manifest b/gentoo/trinity-base/libkdenetwork/Manifest
new file mode 100644
index 000000000..d6ce26a13
--- /dev/null
+++ b/gentoo/trinity-base/libkdenetwork/Manifest
@@ -0,0 +1 @@
+DIST kdepim-trinity-3.5.13.2.tar.xz 10148724 SHA256 2cbd61e28322e4c7d67ffb16ac59329b3f15ba1a4485095994b9bce6786df7c4 SHA512 a84319183813dc78dc97397c8c3871faa3961b458eda8107525b8b9c6789d13aedd8e3c7cb0706c4ca8dd63f69ff67de02716219c8af44ebf96d484d820eb2bf WHIRLPOOL 907d9d86f1b0094b915989ca7f0feb4f67ac1b238a4c6d176ab1ef9164eff78778b2714ebedeb40de28536a8384b39ec7e637f1bb6911cccb40f7d8663811edb
diff --git a/gentoo/trinity-base/libkdenetwork/libkdenetwork-3.5.13.2.ebuild b/gentoo/trinity-base/libkdenetwork/libkdenetwork-3.5.13.2.ebuild
new file mode 100644
index 000000000..9a358f923
--- /dev/null
+++ b/gentoo/trinity-base/libkdenetwork/libkdenetwork-3.5.13.2.ebuild
@@ -0,0 +1,17 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdepim"
+
+inherit trinity-meta
+
+DESCRIPTION="library common to many tdepim apps interacting to network"
+KEYWORDS="~amd64 ~x86"
+IUSE+=""
+
+COMMON_DEPEND=">=app-crypt/gpgme-1.0.2"
+DEPEND+=" ${COMMON_DEPEND}"
+RDEPEND+=" ${COMMON_DEPEND}"
+
+TSM_EXTRACT_ALSO="libkdepim/"
diff --git a/gentoo/trinity-base/libkdenetwork/metadata.xml b/gentoo/trinity-base/libkdenetwork/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/libkdenetwork/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/libkdepim/Manifest b/gentoo/trinity-base/libkdepim/Manifest
new file mode 100644
index 000000000..4a730c44c
--- /dev/null
+++ b/gentoo/trinity-base/libkdepim/Manifest
@@ -0,0 +1,2 @@
+DIST kdepim-3.5.13.1.tar.gz 12954293 SHA256 29755dd66b6da83cb1105fd22954869b911c836f806c19d6a56cdfd6ee79287f SHA512 52f0133f0d296488786f26fe118eefb2018542a36de82d2fd253b7af4e1496ffbee1470869510259202b0a1b5cc6fb1b1b7b8a3ec0b27197fa60927281d1cb9e WHIRLPOOL b34852363e6a6ecdeaacbd9b0775ed0c8c5f692181dc1eee14543c0761a92af43bd96139a7588585ac9715721f62f2aaee603af11240a9a5a93d662262168887
+DIST kdepim-trinity-3.5.13.2.tar.xz 10148724 SHA256 2cbd61e28322e4c7d67ffb16ac59329b3f15ba1a4485095994b9bce6786df7c4 SHA512 a84319183813dc78dc97397c8c3871faa3961b458eda8107525b8b9c6789d13aedd8e3c7cb0706c4ca8dd63f69ff67de02716219c8af44ebf96d484d820eb2bf WHIRLPOOL 907d9d86f1b0094b915989ca7f0feb4f67ac1b238a4c6d176ab1ef9164eff78778b2714ebedeb40de28536a8384b39ec7e637f1bb6911cccb40f7d8663811edb
diff --git a/gentoo/trinity-base/libkdepim/libkdepim-3.5.13.1.ebuild b/gentoo/trinity-base/libkdepim/libkdepim-3.5.13.1.ebuild
new file mode 100644
index 000000000..f3035ffbb
--- /dev/null
+++ b/gentoo/trinity-base/libkdepim/libkdepim-3.5.13.1.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdepim"
+
+inherit trinity-meta
+
+DESCRIPTION="Common library for Trinity PIM applications."
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="
+ >=trinity-base/ktnef-${PV}:${SLOT}
+ >=trinity-base/libkmime-${PV}:${SLOT}
+ >=trinity-base/libkcal-${PV}:${SLOT}"
+RDEPEND="${DEPEND}"
+
+TSM_EXTRACT_ALSO="libemailfunctions/
+ pixmaps/
+ libkmime/kmime_util.h
+ libkcal/"
+
+src_prepare() {
+ trinity-meta_src_prepare
+ # Call Qt 3 designer
+ sed -i -e "s:\"designer\":\"${QTDIR}/bin/designer\":g" "${S}/libkdepim/kcmdesignerfields.cpp" || die "sed failed"
+}
diff --git a/gentoo/trinity-base/libkdepim/libkdepim-3.5.13.2.ebuild b/gentoo/trinity-base/libkdepim/libkdepim-3.5.13.2.ebuild
new file mode 100644
index 000000000..3bd9198fa
--- /dev/null
+++ b/gentoo/trinity-base/libkdepim/libkdepim-3.5.13.2.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdepim"
+
+inherit trinity-meta
+
+DESCRIPTION="Common library for Trinity PIM applications."
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="
+ >=trinity-base/ktnef-${PV}:${SLOT}
+ >=trinity-base/libkmime-${PV}:${SLOT}
+ >=trinity-base/libkcal-${PV}:${SLOT}"
+RDEPEND="${DEPEND}"
+
+TSM_EXTRACT_ALSO="libemailfunctions/
+ pixmaps/
+ libkmime/kmime_util.h
+ libkcal/"
+
+src_prepare() {
+ trinity-meta_src_prepare
+ # Call Qt 3 designer
+ sed -i -e "s:\"designer\":\"${QTDIR}/bin/designer\":g" "${S}/libkdepim/kcmdesignerfields.cpp" || die "sed failed"
+}
diff --git a/gentoo/trinity-base/libkdepim/metadata.xml b/gentoo/trinity-base/libkdepim/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/libkdepim/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/libkholidays/Manifest b/gentoo/trinity-base/libkholidays/Manifest
new file mode 100644
index 000000000..d6ce26a13
--- /dev/null
+++ b/gentoo/trinity-base/libkholidays/Manifest
@@ -0,0 +1 @@
+DIST kdepim-trinity-3.5.13.2.tar.xz 10148724 SHA256 2cbd61e28322e4c7d67ffb16ac59329b3f15ba1a4485095994b9bce6786df7c4 SHA512 a84319183813dc78dc97397c8c3871faa3961b458eda8107525b8b9c6789d13aedd8e3c7cb0706c4ca8dd63f69ff67de02716219c8af44ebf96d484d820eb2bf WHIRLPOOL 907d9d86f1b0094b915989ca7f0feb4f67ac1b238a4c6d176ab1ef9164eff78778b2714ebedeb40de28536a8384b39ec7e637f1bb6911cccb40f7d8663811edb
diff --git a/gentoo/trinity-base/libkholidays/libkholidays-3.5.13.2.ebuild b/gentoo/trinity-base/libkholidays/libkholidays-3.5.13.2.ebuild
new file mode 100644
index 000000000..05483f6a6
--- /dev/null
+++ b/gentoo/trinity-base/libkholidays/libkholidays-3.5.13.2.ebuild
@@ -0,0 +1,13 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdepim"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity library to compute holidays."
+KEYWORDS="~amd64 ~x86"
+IUSE+=""
+
+TSM_EXTRACT_ALSO="libkdepim/"
diff --git a/gentoo/trinity-base/libkholidays/libkholidays-9999.ebuild b/gentoo/trinity-base/libkholidays/libkholidays-9999.ebuild
new file mode 100644
index 000000000..39b3f6872
--- /dev/null
+++ b/gentoo/trinity-base/libkholidays/libkholidays-9999.ebuild
@@ -0,0 +1,13 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdepim"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity library to compute holidays."
+KEYWORDS=""
+IUSE+=""
+
+TSM_EXTRACT_ALSO="libtdepim/"
diff --git a/gentoo/trinity-base/libkholidays/metadata.xml b/gentoo/trinity-base/libkholidays/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/libkholidays/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/libkmime/Manifest b/gentoo/trinity-base/libkmime/Manifest
new file mode 100644
index 000000000..4a730c44c
--- /dev/null
+++ b/gentoo/trinity-base/libkmime/Manifest
@@ -0,0 +1,2 @@
+DIST kdepim-3.5.13.1.tar.gz 12954293 SHA256 29755dd66b6da83cb1105fd22954869b911c836f806c19d6a56cdfd6ee79287f SHA512 52f0133f0d296488786f26fe118eefb2018542a36de82d2fd253b7af4e1496ffbee1470869510259202b0a1b5cc6fb1b1b7b8a3ec0b27197fa60927281d1cb9e WHIRLPOOL b34852363e6a6ecdeaacbd9b0775ed0c8c5f692181dc1eee14543c0761a92af43bd96139a7588585ac9715721f62f2aaee603af11240a9a5a93d662262168887
+DIST kdepim-trinity-3.5.13.2.tar.xz 10148724 SHA256 2cbd61e28322e4c7d67ffb16ac59329b3f15ba1a4485095994b9bce6786df7c4 SHA512 a84319183813dc78dc97397c8c3871faa3961b458eda8107525b8b9c6789d13aedd8e3c7cb0706c4ca8dd63f69ff67de02716219c8af44ebf96d484d820eb2bf WHIRLPOOL 907d9d86f1b0094b915989ca7f0feb4f67ac1b238a4c6d176ab1ef9164eff78778b2714ebedeb40de28536a8384b39ec7e637f1bb6911cccb40f7d8663811edb
diff --git a/gentoo/trinity-base/libkmime/libkmime-3.5.13.1.ebuild b/gentoo/trinity-base/libkmime/libkmime-3.5.13.1.ebuild
new file mode 100644
index 000000000..ff663beff
--- /dev/null
+++ b/gentoo/trinity-base/libkmime/libkmime-3.5.13.1.ebuild
@@ -0,0 +1,13 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdepim"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity kmime library for Message Handling"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+TSM_EXTRACT_ALSO="libkdepim"
diff --git a/gentoo/trinity-base/libkmime/libkmime-3.5.13.2.ebuild b/gentoo/trinity-base/libkmime/libkmime-3.5.13.2.ebuild
new file mode 100644
index 000000000..29a46741a
--- /dev/null
+++ b/gentoo/trinity-base/libkmime/libkmime-3.5.13.2.ebuild
@@ -0,0 +1,13 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdepim"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity kmime library for Message Handling"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+TSM_EXTRACT_ALSO="libkdepim/"
diff --git a/gentoo/trinity-base/libkmime/libkmime-9999.ebuild b/gentoo/trinity-base/libkmime/libkmime-9999.ebuild
new file mode 100644
index 000000000..f42fce889
--- /dev/null
+++ b/gentoo/trinity-base/libkmime/libkmime-9999.ebuild
@@ -0,0 +1,13 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdepim"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity kmime library for Message Handling"
+KEYWORDS=""
+IUSE=""
+
+TSM_EXTRACT_ALSO="libtdepim/"
diff --git a/gentoo/trinity-base/libkmime/metadata.xml b/gentoo/trinity-base/libkmime/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/libkmime/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/libkonq/Manifest b/gentoo/trinity-base/libkonq/Manifest
new file mode 100644
index 000000000..381340c4b
--- /dev/null
+++ b/gentoo/trinity-base/libkonq/Manifest
@@ -0,0 +1,2 @@
+DIST kdebase-3.5.13.1.tar.gz 29403228 SHA256 ddd4bd4b508ad027b9d1af2701c6ba64bfc9f8f1d32099e6dd5e7866714f759e SHA512 e1aac19c941a5f2b43a57928fdb43e5ebd646f49c60911d9d317550df96642870792c4e77ecd06e123244e2425ccd4bcb00f0a21011ba7e651d7fcf4553e79cf WHIRLPOOL 931debbf6a65c280221025dcbc02cbb3387b66eb72eddd28a510ee8f97075cd2cc96535dde25d0a32280c399e4a868e9c027772f5d28e7e79b7c1a9080c58034
+DIST kdebase-trinity-3.5.13.2.tar.xz 25890636 SHA256 b9d552226daff64437dfb9699669b95dd7ebc2ca7c43755ba71c10cc6c9ed789 SHA512 df545d44c7d4550d1d77ff6504572b622853c2b8d80062b1aee1a5bdca19f0e708cde35cff54cf2d5098f06a41bde0c89522a3958dea9bb18205dea87c11b797 WHIRLPOOL 79144273bc7985c59a593a3394b12a2053532d2c4c890ce96adad21f6de0413baf3c6270d6d06173ec4546b20d401aa0cc81603d01b8ee41dbdefc825b39b2b1
diff --git a/gentoo/trinity-base/libkonq/files/libkonq-3.5.13.1-onlyshowin-tde.patch b/gentoo/trinity-base/libkonq/files/libkonq-3.5.13.1-onlyshowin-tde.patch
new file mode 100644
index 000000000..9be02ad7c
--- /dev/null
+++ b/gentoo/trinity-base/libkonq/files/libkonq-3.5.13.1-onlyshowin-tde.patch
@@ -0,0 +1,20 @@
+diff --git a/libkonq/konq_popupmenu.cc b/libkonq/konq_popupmenu.cc
+index 6cd19e5..f58f2e1 100644
+--- a/libkonq/konq_popupmenu.cc
++++ b/libkonq/konq_popupmenu.cc
+@@ -883,13 +883,13 @@ void KonqPopupMenu::setup(KonqPopupFlags kpf)
+ const TQString onlyShowIn = service->property("OnlyShowIn", TQVariant::String).toString();
+ if ( !onlyShowIn.isEmpty() ) {
+ const TQStringList aList = TQStringList::split(';', onlyShowIn);
+- if (!aList.contains("KDE"))
++ if (!aList.contains("TDE"))
+ continue;
+ }
+ const TQString notShowIn = service->property("NotShowIn", TQVariant::String).toString();
+ if ( !notShowIn.isEmpty() ) {
+ const TQStringList aList = TQStringList::split(';', notShowIn);
+- if (aList.contains("KDE"))
++ if (aList.contains("TDE"))
+ continue;
+ }
+
diff --git a/gentoo/trinity-base/libkonq/files/shared b/gentoo/trinity-base/libkonq/files/shared
new file mode 120000
index 000000000..ffc286806
--- /dev/null
+++ b/gentoo/trinity-base/libkonq/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files \ No newline at end of file
diff --git a/gentoo/trinity-base/libkonq/libkonq-3.5.13.1.ebuild b/gentoo/trinity-base/libkonq/libkonq-3.5.13.1.ebuild
new file mode 100644
index 000000000..f34eaa4bd
--- /dev/null
+++ b/gentoo/trinity-base/libkonq/libkonq-3.5.13.1.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="The embeddable part of konqueror"
+KEYWORDS="x86 amd64"
+IUSE="arts"
+DEPEND="arts? ( >=trinity-base/arts-${PV}:${SLOT} )"
+RDEPEND="$DEPEND"
+PATCHES=( "$FILESDIR/${PN}-3.5.13.1-onlyshowin-tde.patch")
+
+src_configure() {
+ mycmakeargs=(
+ $(cmake-utils_use_with arts ARTS)
+ )
+
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-base/libkonq/libkonq-3.5.13.2.ebuild b/gentoo/trinity-base/libkonq/libkonq-3.5.13.2.ebuild
new file mode 100644
index 000000000..7919747e5
--- /dev/null
+++ b/gentoo/trinity-base/libkonq/libkonq-3.5.13.2.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="The embeddable part of konqueror"
+KEYWORDS="~amd64 ~x86"
+IUSE="arts"
+DEPEND="arts? ( >=trinity-base/arts-${PV}:${SLOT} )"
+RDEPEND="$DEPEND"
+PATCHES=( "$FILESDIR/${PN}-3.5.13.1-onlyshowin-tde.patch")
+
+src_configure() {
+ mycmakeargs=(
+ $(cmake-utils_use_with arts ARTS)
+ )
+
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-base/libkonq/libkonq-9999.ebuild b/gentoo/trinity-base/libkonq/libkonq-9999.ebuild
new file mode 100644
index 000000000..45b06ee57
--- /dev/null
+++ b/gentoo/trinity-base/libkonq/libkonq-9999.ebuild
@@ -0,0 +1,12 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdebase"
+
+inherit trinity-meta
+
+need-arts optional
+
+DESCRIPTION="The embeddable part of konqueror"
+KEYWORDS=
diff --git a/gentoo/trinity-base/libkonq/metadata.xml b/gentoo/trinity-base/libkonq/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/libkonq/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/libkpimexchange/Manifest b/gentoo/trinity-base/libkpimexchange/Manifest
new file mode 100644
index 000000000..d6ce26a13
--- /dev/null
+++ b/gentoo/trinity-base/libkpimexchange/Manifest
@@ -0,0 +1 @@
+DIST kdepim-trinity-3.5.13.2.tar.xz 10148724 SHA256 2cbd61e28322e4c7d67ffb16ac59329b3f15ba1a4485095994b9bce6786df7c4 SHA512 a84319183813dc78dc97397c8c3871faa3961b458eda8107525b8b9c6789d13aedd8e3c7cb0706c4ca8dd63f69ff67de02716219c8af44ebf96d484d820eb2bf WHIRLPOOL 907d9d86f1b0094b915989ca7f0feb4f67ac1b238a4c6d176ab1ef9164eff78778b2714ebedeb40de28536a8384b39ec7e637f1bb6911cccb40f7d8663811edb
diff --git a/gentoo/trinity-base/libkpimexchange/libkpimexchange-3.5.13.2.ebuild b/gentoo/trinity-base/libkpimexchange/libkpimexchange-3.5.13.2.ebuild
new file mode 100644
index 000000000..df6b710da
--- /dev/null
+++ b/gentoo/trinity-base/libkpimexchange/libkpimexchange-3.5.13.2.ebuild
@@ -0,0 +1,19 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdepim"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity PIM exchange library"
+KEYWORDS="~amd64 ~x86"
+IUSE+=""
+COMMON_DEPEND=">=trinity-base/libkcal-${PV}:${SLOT}
+ >=trinity-base/ktnef-${PV}:${SLOT}
+ >=trinity-base/libkmime-${PV}:${SLOT}"
+
+DEPEND+=" ${COMMON_DEPEND}"
+RDEPEND+=" ${COMMON_DEPEND}"
+
+TSM_EXTRACT_ALSO="libkdepim/ libkcal/"
diff --git a/gentoo/trinity-base/libkpimexchange/libkpimexchange-9999.ebuild b/gentoo/trinity-base/libkpimexchange/libkpimexchange-9999.ebuild
new file mode 100644
index 000000000..ea0c321f1
--- /dev/null
+++ b/gentoo/trinity-base/libkpimexchange/libkpimexchange-9999.ebuild
@@ -0,0 +1,19 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdepim"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity PIM exchange library"
+KEYWORDS=""
+IUSE+=""
+COMMON_DEPEND=">=trinity-base/libkcal-${PV}:${SLOT}
+ >=trinity-base/ktnef-${PV}:${SLOT}
+ >=trinity-base/libkmime-${PV}:${SLOT}"
+
+DEPEND+=" ${COMMON_DEPEND}"
+RDEPEND+=" ${COMMON_DEPEND}"
+
+TSM_EXTRACT_ALSO="libtdepim/ libkcal/"
diff --git a/gentoo/trinity-base/libkpimexchange/metadata.xml b/gentoo/trinity-base/libkpimexchange/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/libkpimexchange/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/libkpimidentities/Manifest b/gentoo/trinity-base/libkpimidentities/Manifest
new file mode 100644
index 000000000..d6ce26a13
--- /dev/null
+++ b/gentoo/trinity-base/libkpimidentities/Manifest
@@ -0,0 +1 @@
+DIST kdepim-trinity-3.5.13.2.tar.xz 10148724 SHA256 2cbd61e28322e4c7d67ffb16ac59329b3f15ba1a4485095994b9bce6786df7c4 SHA512 a84319183813dc78dc97397c8c3871faa3961b458eda8107525b8b9c6789d13aedd8e3c7cb0706c4ca8dd63f69ff67de02716219c8af44ebf96d484d820eb2bf WHIRLPOOL 907d9d86f1b0094b915989ca7f0feb4f67ac1b238a4c6d176ab1ef9164eff78778b2714ebedeb40de28536a8384b39ec7e637f1bb6911cccb40f7d8663811edb
diff --git a/gentoo/trinity-base/libkpimidentities/libkpimidentities-3.5.13.2.ebuild b/gentoo/trinity-base/libkpimidentities/libkpimidentities-3.5.13.2.ebuild
new file mode 100644
index 000000000..97e45e3a3
--- /dev/null
+++ b/gentoo/trinity-base/libkpimidentities/libkpimidentities-3.5.13.2.ebuild
@@ -0,0 +1,19 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdepim"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity PIM identities library"
+KEYWORDS="~amd64 ~x86"
+IUSE+=""
+
+COMMON_DEPEND=">=trinity-base/certmanager-${PV}:${SLOT}
+ >=trinity-base/libkdepim-${PV}:${SLOT}
+ >=trinity-base/libkmime-${PV}:${SLOT}"
+DEPEND+=" $COMMON_DEPEND"
+RDEPEND+=" $COMMON_DEPEND"
+
+TSM_EXTRACT_ALSO="libkdepim/ libemailfunctions/ libkmime/"
diff --git a/gentoo/trinity-base/libkpimidentities/libkpimidentities-9999.ebuild b/gentoo/trinity-base/libkpimidentities/libkpimidentities-9999.ebuild
new file mode 100644
index 000000000..d635315f2
--- /dev/null
+++ b/gentoo/trinity-base/libkpimidentities/libkpimidentities-9999.ebuild
@@ -0,0 +1,19 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdepim"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity PIM identities library"
+KEYWORDS=""
+IUSE+=""
+
+COMMON_DEPEND=">=trinity-base/certmanager-${PV}:${SLOT}
+ >=trinity-base/libtdepim-${PV}:${SLOT}
+ >=trinity-base/libkmime-${PV}:${SLOT}"
+DEPEND+=" $COMMON_DEPEND"
+RDEPEND+=" $COMMON_DEPEND"
+
+TSM_EXTRACT_ALSO="libtdepim/ libemailfunctions/ libkmime/"
diff --git a/gentoo/trinity-base/libkpimidentities/metadata.xml b/gentoo/trinity-base/libkpimidentities/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/libkpimidentities/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/libkscan/Manifest b/gentoo/trinity-base/libkscan/Manifest
new file mode 100644
index 000000000..f0ba54e9a
--- /dev/null
+++ b/gentoo/trinity-base/libkscan/Manifest
@@ -0,0 +1 @@
+DIST kdegraphics-3.5.13.1.tar.gz 7526074 SHA256 19bd36e261bb6c5d2c9c1eba5f736c642b48422d917d44e576835f7ebb44906b SHA512 693e5ad70dbb00c587e588acfb81fc9475c3a4dbc86f41d6053c0584c533349a7564e34b870cb7bbc57361ac539da6f7d7f1b002ac3cfe8b0201db3eeb9147dd WHIRLPOOL fd2c46c517b3a0293880eaf35967295485555b936d0f1e80e0f2c261a1164cfcc5c4b2d943a12c073914d33b59974cc2dd92a78414614caa10f46dd048d518b4
diff --git a/gentoo/trinity-base/libkscan/files/tdegraphics-libkscan-fix-name.patch b/gentoo/trinity-base/libkscan/files/tdegraphics-libkscan-fix-name.patch
new file mode 100644
index 000000000..5f7013f65
--- /dev/null
+++ b/gentoo/trinity-base/libkscan/files/tdegraphics-libkscan-fix-name.patch
@@ -0,0 +1,13 @@
+diff --git a/libkscan/CMakeLists.txt b/libkscan/CMakeLists.txt
+index b1c75eb..12ecff9 100644
+--- a/libkscan/CMakeLists.txt
++++ b/libkscan/CMakeLists.txt
+@@ -9,7 +9,7 @@
+ #
+ #################################################
+
+-project( libksane )
++project( libkscan )
+
+ include( ConfigureChecks.cmake )
+
diff --git a/gentoo/trinity-base/libkscan/libkscan-3.5.13.1.ebuild b/gentoo/trinity-base/libkscan/libkscan-3.5.13.1.ebuild
new file mode 100644
index 000000000..a8981d5f7
--- /dev/null
+++ b/gentoo/trinity-base/libkscan/libkscan-3.5.13.1.ebuild
@@ -0,0 +1,16 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdegraphics"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity scanner library"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="media-gfx/sane-backends"
+RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}/tdegraphics-${PN}-fix-name.patch" )
diff --git a/gentoo/trinity-base/libkscan/libkscan-9999.ebuild b/gentoo/trinity-base/libkscan/libkscan-9999.ebuild
new file mode 100644
index 000000000..9a1d2f4b3
--- /dev/null
+++ b/gentoo/trinity-base/libkscan/libkscan-9999.ebuild
@@ -0,0 +1,14 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdegraphics"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity scanner library"
+KEYWORDS=
+IUSE=""
+
+DEPEND="media-gfx/sane-backends"
+RDEPEND="${DEPEND}"
diff --git a/gentoo/trinity-base/libkscan/metadata.xml b/gentoo/trinity-base/libkscan/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/libkscan/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/librss/Manifest b/gentoo/trinity-base/librss/Manifest
new file mode 100644
index 000000000..1d49700dc
--- /dev/null
+++ b/gentoo/trinity-base/librss/Manifest
@@ -0,0 +1 @@
+DIST kdenetwork-3.5.13.1.tar.gz 8794225 SHA256 21e69e8cb2550561c26913a5cccdc376115f50cffd43f9a94f7a660a303f46f9 SHA512 b3189a9f5e9cddd130b24a82b95ef90db1ec3c7afa280a46101ba7cbf6f9d92f60a536401f648a96459ba87f70ede5f7ae4affe894515a8e858b40ee79cb1b69 WHIRLPOOL de678ab30e3aa8dc3068c895fd000fdab1bc046e272273bf44196a198210efab82ddde3c5e0ffaa863061e9c56e3a8a68ca2f8f03cd77136755f66688f878c65
diff --git a/gentoo/trinity-base/librss/files/tdenetwork-fix-export-librss.patch b/gentoo/trinity-base/librss/files/tdenetwork-fix-export-librss.patch
new file mode 100644
index 000000000..e6c49a74d
--- /dev/null
+++ b/gentoo/trinity-base/librss/files/tdenetwork-fix-export-librss.patch
@@ -0,0 +1,21 @@
+diff --git a/librss/CMakeLists.txt b/librss/CMakeLists.txt
+index b16edfb..2456b38 100644
+--- a/librss/CMakeLists.txt
++++ b/librss/CMakeLists.txt
+@@ -9,6 +9,8 @@
+ #
+ #################################################
+
++project( librss )
++
+ include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+@@ -37,3 +39,7 @@ tde_add_library( rss SHARED AUTOMOC
+ LINK kio-shared
+ DESTINATION ${LIB_INSTALL_DIR}
+ )
++
++##### install import cmake modules ###############
++
++tde_install_export( )
diff --git a/gentoo/trinity-base/librss/librss-3.5.13.1.ebuild b/gentoo/trinity-base/librss/librss-3.5.13.1.ebuild
new file mode 100644
index 000000000..985a171d2
--- /dev/null
+++ b/gentoo/trinity-base/librss/librss-3.5.13.1.ebuild
@@ -0,0 +1,13 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdenetwork"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity rss library"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+PATCHES=( "${FILESDIR}/tdenetwork-fix-export-librss.patch" )
diff --git a/gentoo/trinity-base/librss/librss-9999.ebuild b/gentoo/trinity-base/librss/librss-9999.ebuild
new file mode 100644
index 000000000..8ef1314b0
--- /dev/null
+++ b/gentoo/trinity-base/librss/librss-9999.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdenetwork"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity rss library"
+KEYWORDS=
+IUSE=""
diff --git a/gentoo/trinity-base/librss/metadata.xml b/gentoo/trinity-base/librss/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/librss/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/libtdegames/libtdegames-9999.ebuild b/gentoo/trinity-base/libtdegames/libtdegames-9999.ebuild
new file mode 100644
index 000000000..6ae1f34aa
--- /dev/null
+++ b/gentoo/trinity-base/libtdegames/libtdegames-9999.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdegames"
+
+inherit trinity-meta
+
+DESCRIPTION="Base library common to many Trinity games"
+KEYWORDS=""
+IUSE+=""
diff --git a/gentoo/trinity-base/libtdegames/metadata.xml b/gentoo/trinity-base/libtdegames/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/libtdegames/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/libtdenetwork/libtdenetwork-9999.ebuild b/gentoo/trinity-base/libtdenetwork/libtdenetwork-9999.ebuild
new file mode 100644
index 000000000..4d7667f6e
--- /dev/null
+++ b/gentoo/trinity-base/libtdenetwork/libtdenetwork-9999.ebuild
@@ -0,0 +1,17 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdepim"
+
+inherit trinity-meta
+
+DESCRIPTION="library common to many tdepim apps interacting to network"
+KEYWORDS=""
+IUSE+=""
+
+COMMON_DEPEND=">=app-crypt/gpgme-1.0.2"
+DEPEND+=" ${COMMON_DEPEND}"
+RDEPEND+=" ${COMMON_DEPEND}"
+
+TSM_EXTRACT_ALSO="libtdepim/"
diff --git a/gentoo/trinity-base/libtdenetwork/metadata.xml b/gentoo/trinity-base/libtdenetwork/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/libtdenetwork/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/libtdepim/libtdepim-9999.ebuild b/gentoo/trinity-base/libtdepim/libtdepim-9999.ebuild
new file mode 100644
index 000000000..0972cddf3
--- /dev/null
+++ b/gentoo/trinity-base/libtdepim/libtdepim-9999.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdepim"
+
+inherit trinity-meta
+
+DESCRIPTION="Common library for Trinity PIM applications."
+KEYWORDS=""
+IUSE+=""
+
+COMMON_DEPEND="
+ >=trinity-base/ktnef-${PV}:${SLOT}
+ >=trinity-base/libkmime-${PV}:${SLOT}
+ >=trinity-base/libkcal-${PV}:${SLOT}"
+DEPEND+=" ${COMMON_DEPEND}"
+RDEPEND+=" ${COMMON_DEPEND}"
+
+TSM_EXTRACT_ALSO="libemailfunctions/
+ pixmaps/
+ libkmime/kmime_util.h
+ libkcal/"
+
+src_prepare() {
+ trinity-meta_src_prepare
+ # Call Qt 3 designer
+ sed -i -e "s:\"designer\":\"${QTDIR}/bin/designer\":g" "${S}/libtdepim/kcmdesignerfields.cpp" || die "sed failed"
+}
diff --git a/gentoo/trinity-base/libtdepim/metadata.xml b/gentoo/trinity-base/libtdepim/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/libtdepim/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/lisa/Manifest b/gentoo/trinity-base/lisa/Manifest
new file mode 100644
index 000000000..1d49700dc
--- /dev/null
+++ b/gentoo/trinity-base/lisa/Manifest
@@ -0,0 +1 @@
+DIST kdenetwork-3.5.13.1.tar.gz 8794225 SHA256 21e69e8cb2550561c26913a5cccdc376115f50cffd43f9a94f7a660a303f46f9 SHA512 b3189a9f5e9cddd130b24a82b95ef90db1ec3c7afa280a46101ba7cbf6f9d92f60a536401f648a96459ba87f70ede5f7ae4affe894515a8e858b40ee79cb1b69 WHIRLPOOL de678ab30e3aa8dc3068c895fd000fdab1bc046e272273bf44196a198210efab82ddde3c5e0ffaa863061e9c56e3a8a68ca2f8f03cd77136755f66688f878c65
diff --git a/gentoo/trinity-base/lisa/files/lisa b/gentoo/trinity-base/lisa/files/lisa
new file mode 100644
index 000000000..eeeae68c7
--- /dev/null
+++ b/gentoo/trinity-base/lisa/files/lisa
@@ -0,0 +1,19 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ use net
+}
+
+start() {
+ ebegin "Starting lisa"
+ start-stop-daemon --start -x _TDEDIR_/bin/lisa -q -- $LISACONF 1>/dev/null
+ eend $? "Failed to start lisa"
+}
+
+stop() {
+ ebegin "Stopping lisa"
+ start-stop-daemon --stop -x _TDEDIR_/bin/lisa -q
+ eend $? "Failed to stop lisa"
+}
diff --git a/gentoo/trinity-base/lisa/files/lisa-3.5.13.1-6f85c0c-fix-references-to-user-profile-directory.patch b/gentoo/trinity-base/lisa/files/lisa-3.5.13.1-6f85c0c-fix-references-to-user-profile-directory.patch
new file mode 100644
index 000000000..ea9dbbeba
--- /dev/null
+++ b/gentoo/trinity-base/lisa/files/lisa-3.5.13.1-6f85c0c-fix-references-to-user-profile-directory.patch
@@ -0,0 +1,52 @@
+diff --git a/lanbrowsing/lisa/README b/lanbrowsing/lisa/README
+index c6d5d1b..5b7c328 100644
+--- a/lanbrowsing/lisa/README
++++ b/lanbrowsing/lisa/README
+@@ -382,7 +382,7 @@ For reslisa the file is named reslisarc instead lisarc.
+ -u, --unix search at first for $HOME/.lisarc, then
+ for /etc/lisarc, this is the default behaviour
+
+--k, --kde1 search at first for $HOME/.kde/share/config/lisarc,
++-k, --kde1 search at first for $HOME/.trinity/share/config/lisarc,
+ then for $KDEDIR/share/config/lisarc
+
+ -K, --kde2 looks for the file lisarc in every directory
+diff --git a/lanbrowsing/lisa/main.cpp b/lanbrowsing/lisa/main.cpp
+index 7de5938..fd96d04 100644
+--- a/lanbrowsing/lisa/main.cpp
++++ b/lanbrowsing/lisa/main.cpp
+@@ -198,7 +198,7 @@ int main(int argc, char** argv)
+ "--kde1, --kde2 and --unix are not supported anymore.\n"\
+ "Lisa will always first look for $(HOME)/.lisarc , then for /etc/lisarc.\n"\
+ "If your lisa configuration file was created using an older version of \n"\
+- "the KDE control center, copy the /root/.kde/share/config/lisarc to /etc and \n"\
++ "the KDE control center, copy the /root/.trinity/share/config/lisarc to /etc and \n"\
+ "then start lisa without any command line options.\n"<<std::endl;
+ return 0;
+ break;
+diff --git a/lanbrowsing/lisa/netmanager.cpp b/lanbrowsing/lisa/netmanager.cpp
+index e652ce9..ad905e3 100644
+--- a/lanbrowsing/lisa/netmanager.cpp
++++ b/lanbrowsing/lisa/netmanager.cpp
+@@ -338,7 +338,7 @@ MyString NetManager::getConfigFileName()
+ /* else if (m_configStyle==KDE1CONFIGSTYLE)
+ {
+ tmpFilename=getenv("HOME");
+- tmpFilename+=MyString("/.kde/share/config/")+tmpBase;
++ tmpFilename+=MyString("/.trinity/share/config/")+tmpBase;
+ if (fileReadable(tmpFilename))
+ return tmpFilename;
+ tmpFilename=getenv("KDEDIR");
+diff --git a/lanbrowsing/lisa/strictmain.cpp b/lanbrowsing/lisa/strictmain.cpp
+index a948d6d..07f5b9b 100644
+--- a/lanbrowsing/lisa/strictmain.cpp
++++ b/lanbrowsing/lisa/strictmain.cpp
+@@ -187,7 +187,7 @@ int main(int argc, char** argv)
+ "--kde1, --kde2 and --unix are not supported anymore.\n"\
+ "ResLisa will always first look for $(HOME)/.reslisarc , then for /etc/reslisarc.\n"\
+ "If your lisa configuration file was created using an older version of \n"\
+- "the KDE control center, copy the $(HOME)/.kde/share/config/reslisarc to $(HOME)/.reslisarc.\n"<<std::endl;
++ "the KDE control center, copy the $(HOME)/.trinity/share/config/reslisarc to $(HOME)/.reslisarc.\n"<<std::endl;
+ break;
+
+ case 'c':
diff --git a/gentoo/trinity-base/lisa/files/lisa.conf b/gentoo/trinity-base/lisa/files/lisa.conf
new file mode 100644
index 000000000..bad3fa826
--- /dev/null
+++ b/gentoo/trinity-base/lisa/files/lisa.conf
@@ -0,0 +1,11 @@
+# Note: this is NOT the main lisa configuratio file. That is in /etc/lisarc.
+# This merely sets startup options for the gentoo lisa initscript.
+# Add anything you want to $LISACONF.
+
+# config file to use; overrides default
+# note that default checks /etc/lisarc and ~/.lisarc
+# LISACONF="$LISACONF --config=myfile"
+
+# port to use; overrides default of 7741
+# I think all lisas on the network have to use the same port
+# LISACONF="$LISACONF --port 7741" \ No newline at end of file
diff --git a/gentoo/trinity-base/lisa/files/reslisa b/gentoo/trinity-base/lisa/files/reslisa
new file mode 100644
index 000000000..dcb2c6560
--- /dev/null
+++ b/gentoo/trinity-base/lisa/files/reslisa
@@ -0,0 +1,19 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ use net
+}
+
+start() {
+ ebegin "Starting reslisa"
+ start-stop-daemon --start -x _TDEDIR_/bin/reslisa -q -- 1>/dev/null
+ eend $? "Failed to start reslisa"
+}
+
+stop() {
+ ebegin "Stopping reslisa"
+ start-stop-daemon --stop -x _TDEDIR_/bin/reslisa -q
+ eend $? "Failed to stop reslisa"
+}
diff --git a/gentoo/trinity-base/lisa/files/reslisa.conf b/gentoo/trinity-base/lisa/files/reslisa.conf
new file mode 100644
index 000000000..0a74c6cae
--- /dev/null
+++ b/gentoo/trinity-base/lisa/files/reslisa.conf
@@ -0,0 +1,8 @@
+# Note: this is NOT the main reslisa configuratio file. That is in /etc/reslisarc.
+# This merely sets startup options for the gentoo reslisa initscript.
+# Add anything you want to $RESLISACONF.
+
+# config file to use; overrides default
+# note that default checks /etc/reslisarc and ~/.reslisarc
+# RESLISACONF="$RESLISACONF --config=myfile"
+
diff --git a/gentoo/trinity-base/lisa/lisa-3.5.13.1.ebuild b/gentoo/trinity-base/lisa/lisa-3.5.13.1.ebuild
new file mode 100644
index 000000000..56319dfb4
--- /dev/null
+++ b/gentoo/trinity-base/lisa/lisa-3.5.13.1.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdenetwork"
+TRINITY_SUBMODULE="lanbrowsing"
+inherit trinity-meta
+
+DESCRIPTION="Trinity Lan Information Server - allows to share information over a network."
+KEYWORDS="amd64 x86"
+IUSE=""
+
+PATCHES=(
+ "${FILESDIR}/lisa-3.5.13.1-6f85c0c-fix-references-to-user-profile-directory.patch" )
+
+src_install() {
+ trinity-meta_src_install
+
+ chmod u+s "${D}/${KDEDIR}/bin/reslisa"
+
+ # lisa, reslisa initscripts
+ sed -e "s:_TDEDIR_:${TDEDIR}:g" "${FILESDIR}/lisa" > "${T}/lisa"
+ sed -e "s:_TDEDIR_:${TDEDIR}:g" "${FILESDIR}/reslisa" > "${T}/reslisa"
+ doinitd "${T}/lisa" "${T}/reslisa"
+
+ newconfd "${FILESDIR}/lisa.conf" lisa
+ newconfd "${FILESDIR}/reslisa.conf" reslisa
+
+ echo '# Default lisa configfile' > "$D/etc/lisarc"
+ echo '# Default reslisa configfile' > "$D/etc/reslisarc"
+}
diff --git a/gentoo/trinity-base/lisa/lisa-9999.ebuild b/gentoo/trinity-base/lisa/lisa-9999.ebuild
new file mode 100644
index 000000000..4b01ce18e
--- /dev/null
+++ b/gentoo/trinity-base/lisa/lisa-9999.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdenetwork"
+TRINITY_SUBMODULE="lanbrowsing"
+inherit trinity-meta
+
+DESCRIPTION="Trinity Lan Information Server - allows to share information over a network."
+KEYWORDS=
+IUSE=""
+
+src_install() {
+ trinity-meta_src_install
+
+ chmod u+s "${D}/${KDEDIR}/bin/reslisa"
+
+ # lisa, reslisa initscripts
+ sed -e "s:_TDEDIR_:${TDEDIR}:g" "${FILESDIR}/lisa" > "${T}/lisa"
+ sed -e "s:_TDEDIR_:${TDEDIR}:g" "${FILESDIR}/reslisa" > "${T}/reslisa"
+ doinitd "${T}/lisa" "${T}/reslisa"
+
+ newconfd "${FILESDIR}/lisa.conf" lisa
+ newconfd "${FILESDIR}/reslisa.conf" reslisa
+
+ echo '# Default lisa configfile' > "$D/etc/lisarc"
+ echo '# Default reslisa configfile' > "$D/etc/reslisarc"
+}
diff --git a/gentoo/trinity-base/lisa/metadata.xml b/gentoo/trinity-base/lisa/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/lisa/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/noatun-plugins/metadata.xml b/gentoo/trinity-base/noatun-plugins/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/noatun-plugins/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/noatun-plugins/noatun-plugins-9999.ebuild b/gentoo/trinity-base/noatun-plugins/noatun-plugins-9999.ebuild
new file mode 100644
index 000000000..9e59012b7
--- /dev/null
+++ b/gentoo/trinity-base/noatun-plugins/noatun-plugins-9999.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdeaddons"
+
+inherit trinity-meta db-use
+
+DESCRIPTION="Various plugins for Noatun."
+KEYWORDS=""
+IUSE="arts sdl berkdb"
+
+COMMON_DEPEND="
+ >=trinity-base/noatun-${PV}:${SLOT}
+ arts? ( >=trinity-base/arts-${PV}:${SLOT} )
+ berkdb? ( =sys-libs/db-4*:= )
+"
+DEPEND="${COMMON_DEPEND}
+ sdl? ( >=media-libs/libsdl-1.2 )
+"
+
+RDEPEND="${COMMON_DEPEND}
+ sdl? ( >=media-libs/libsdl-1.2[X] )
+"
+
+src_compile() {
+ mycmakeargs=(
+ "-DWITH_ARTS=$(usex arts)"
+ "-DWITH_SDL=$(usex sdl)"
+ )
+
+ if use berkdb; then
+ mycmakeargs=( "${mycmakeargs[@]}"
+ "-DWITH_BERKELEY_DB=ON"
+ "-DBERKELEY_DB_LIBS=$(db_libname)"
+ "-DBERKELEY_DB_INCLUDE_DIRS==${ROOT}$(db_includedir)"
+ )
+ else
+ mycmakeargs=( "${mycmakeargs[@]}"
+ "-DWITH_BERKELEY_DB=OFF"
+ )
+ fi
+
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-base/nsplugins/Manifest b/gentoo/trinity-base/nsplugins/Manifest
new file mode 100644
index 000000000..381340c4b
--- /dev/null
+++ b/gentoo/trinity-base/nsplugins/Manifest
@@ -0,0 +1,2 @@
+DIST kdebase-3.5.13.1.tar.gz 29403228 SHA256 ddd4bd4b508ad027b9d1af2701c6ba64bfc9f8f1d32099e6dd5e7866714f759e SHA512 e1aac19c941a5f2b43a57928fdb43e5ebd646f49c60911d9d317550df96642870792c4e77ecd06e123244e2425ccd4bcb00f0a21011ba7e651d7fcf4553e79cf WHIRLPOOL 931debbf6a65c280221025dcbc02cbb3387b66eb72eddd28a510ee8f97075cd2cc96535dde25d0a32280c399e4a868e9c027772f5d28e7e79b7c1a9080c58034
+DIST kdebase-trinity-3.5.13.2.tar.xz 25890636 SHA256 b9d552226daff64437dfb9699669b95dd7ebc2ca7c43755ba71c10cc6c9ed789 SHA512 df545d44c7d4550d1d77ff6504572b622853c2b8d80062b1aee1a5bdca19f0e708cde35cff54cf2d5098f06a41bde0c89522a3958dea9bb18205dea87c11b797 WHIRLPOOL 79144273bc7985c59a593a3394b12a2053532d2c4c890ce96adad21f6de0413baf3c6270d6d06173ec4546b20d401aa0cc81603d01b8ee41dbdefc825b39b2b1
diff --git a/gentoo/trinity-base/nsplugins/files/shared b/gentoo/trinity-base/nsplugins/files/shared
new file mode 120000
index 000000000..ffc286806
--- /dev/null
+++ b/gentoo/trinity-base/nsplugins/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files \ No newline at end of file
diff --git a/gentoo/trinity-base/nsplugins/metadata.xml b/gentoo/trinity-base/nsplugins/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/nsplugins/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/nsplugins/nsplugins-3.5.13.1.ebuild b/gentoo/trinity-base/nsplugins/nsplugins-3.5.13.1.ebuild
new file mode 100644
index 000000000..09e96e263
--- /dev/null
+++ b/gentoo/trinity-base/nsplugins/nsplugins-3.5.13.1.ebuild
@@ -0,0 +1,16 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="Netscape plugins support for Konqueror."
+KEYWORDS="x86 amd64"
+IUSE=""
+
+# CHECKME: dependencies
+DEPEND="x11-libs/libXt
+ =dev-libs/glib-2*"
+RDEPEND="${DEPEND}"
diff --git a/gentoo/trinity-base/nsplugins/nsplugins-3.5.13.2.ebuild b/gentoo/trinity-base/nsplugins/nsplugins-3.5.13.2.ebuild
new file mode 100644
index 000000000..f09033f94
--- /dev/null
+++ b/gentoo/trinity-base/nsplugins/nsplugins-3.5.13.2.ebuild
@@ -0,0 +1,16 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="Netscape plugins support for Konqueror."
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+# CHECKME: dependencies
+DEPEND="x11-libs/libXt
+ =dev-libs/glib-2*"
+RDEPEND="${DEPEND}"
diff --git a/gentoo/trinity-base/nsplugins/nsplugins-9999.ebuild b/gentoo/trinity-base/nsplugins/nsplugins-9999.ebuild
new file mode 100644
index 000000000..325082890
--- /dev/null
+++ b/gentoo/trinity-base/nsplugins/nsplugins-9999.ebuild
@@ -0,0 +1,16 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="Netscape plugins support for Konqueror."
+KEYWORDS=
+IUSE=""
+
+# CHECKME: dependencies
+DEPEND="x11-libs/libXt
+ =dev-libs/glib-2*"
+RDEPEND="${DEPEND}"
diff --git a/gentoo/trinity-base/renamedlg-plugins/metadata.xml b/gentoo/trinity-base/renamedlg-plugins/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/renamedlg-plugins/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/renamedlg-plugins/renamedlg-plugins-9999.ebuild b/gentoo/trinity-base/renamedlg-plugins/renamedlg-plugins-9999.ebuild
new file mode 100644
index 000000000..561b36aa3
--- /dev/null
+++ b/gentoo/trinity-base/renamedlg-plugins/renamedlg-plugins-9999.ebuild
@@ -0,0 +1,12 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdeaddons"
+TSM_EXTRACT="renamedlgplugins"
+
+inherit trinity-meta
+
+DESCRIPTION="renamedlg plugins for image and audio files"
+KEYWORDS=""
+IUSE+=""
diff --git a/gentoo/trinity-base/superkaramba/Manifest b/gentoo/trinity-base/superkaramba/Manifest
new file mode 100644
index 000000000..c59ac62b4
--- /dev/null
+++ b/gentoo/trinity-base/superkaramba/Manifest
@@ -0,0 +1,2 @@
+DIST kdeutils-3.5.13.1.tar.gz 2829393 SHA256 3e7ab07fe1bb3e7be7ac3a3796366c88d3b79a58af911546e2c65e32363db527 SHA512 48733e472d0f5da85ef8a32ed6db7fa5e61f0682e49842439e6ea38a1e407059bb35efffe41fc6ed1a718511fd5b2b2c8222d816a23500a4dcbca17461f9a3bd WHIRLPOOL 1488e0c44f60b4d5e397dd2cf93de048eae1b915d4b2b7b1cf27768946f5aae3b5bcc3971ee28b5fa6a57a0b94cca6db0866138b69ad74f1f7bb97cdaaebdbe2
+DIST kdeutils-trinity-3.5.13.2.tar.xz 2259232 SHA256 b2999b9ef39bb2f269b84fdf34a814b5a5599aae7d05538d0bf680c18fb334fa SHA512 f501aa4b61bf440e873eec96f09c0c24ad780db2f9f14b884001c04c04aafccb5afb2b492dcf4fc640f3ec35d86aa419d67936122648a986662cd7b7f4f8a2d8 WHIRLPOOL 49296006875250212f0fdeb0c90c4f69cf0aa7cfd38415e2f7b50bdf81754de64562df2400f4932a502adbe84b58be34cae6c029d68cc62d0e91de5158513239
diff --git a/gentoo/trinity-base/superkaramba/files/shared b/gentoo/trinity-base/superkaramba/files/shared
new file mode 120000
index 000000000..af62be31d
--- /dev/null
+++ b/gentoo/trinity-base/superkaramba/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files/ \ No newline at end of file
diff --git a/gentoo/trinity-base/superkaramba/metadata.xml b/gentoo/trinity-base/superkaramba/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/superkaramba/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/superkaramba/superkaramba-3.5.13.1.ebuild b/gentoo/trinity-base/superkaramba/superkaramba-3.5.13.1.ebuild
new file mode 100644
index 000000000..2885ed7cf
--- /dev/null
+++ b/gentoo/trinity-base/superkaramba/superkaramba-3.5.13.1.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdeutils"
+
+inherit trinity-meta
+
+DESCRIPTION="A tool to create interactive applets for the Trinity desktop."
+KEYWORDS="x86 amd64"
+#FIXME: add xmms use
+IUSE=""
+
+# RDEPEND="xmms? (media-sound/xmms2)"
+
+src_configure() {
+ mycmakeargs=(
+# $(cmake-utils_use_with xmms XMMS )
+ "-DWITH_XMMS=ON"
+ "-DWITH_KNEWSTUFF=ON"
+ )
+
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-base/superkaramba/superkaramba-3.5.13.2.ebuild b/gentoo/trinity-base/superkaramba/superkaramba-3.5.13.2.ebuild
new file mode 100644
index 000000000..5df992050
--- /dev/null
+++ b/gentoo/trinity-base/superkaramba/superkaramba-3.5.13.2.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdeutils"
+
+inherit trinity-meta
+
+DESCRIPTION="A tool to create interactive applets for the Trinity desktop."
+KEYWORDS="~x86 ~amd64"
+#FIXME: add xmms use
+IUSE=""
+
+# RDEPEND="xmms? (media-sound/xmms2)"
+
+src_configure() {
+ mycmakeargs=(
+# $(cmake-utils_use_with xmms XMMS )
+ "-DWITH_XMMS=ON"
+ "-DWITH_KNEWSTUFF=ON"
+ )
+
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-base/superkaramba/superkaramba-9999.ebuild b/gentoo/trinity-base/superkaramba/superkaramba-9999.ebuild
new file mode 100644
index 000000000..2ae86f9a3
--- /dev/null
+++ b/gentoo/trinity-base/superkaramba/superkaramba-9999.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdeutils"
+
+inherit trinity-meta
+
+DESCRIPTION="A tool to create interactive applets for the Trinity desktop."
+KEYWORDS=""
+#FIXME: add xmms use
+IUSE=""
+
+# RDEPEND="xmms? (media-sound/xmms2)"
+
+src_configure() {
+ mycmakeargs=(
+# $(cmake-utils_use_with xmms XMMS )
+ "-DWITH_XMMS=ON"
+ "-DWITH_KNEWSTUFF=ON"
+ )
+
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-base/tde-i18n/metadata.xml b/gentoo/trinity-base/tde-i18n/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/tde-i18n/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/tde-i18n/tde-i18n-9999.ebuild b/gentoo/trinity-base/tde-i18n/tde-i18n-9999.ebuild
new file mode 100644
index 000000000..53f4a81f5
--- /dev/null
+++ b/gentoo/trinity-base/tde-i18n/tde-i18n-9999.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tde-i18n"
+
+inherit trinity-base cmake-utils l10n
+
+set-trinityver
+
+DESCRIPTION="Trinity internationalization package"
+HOMEPAGE="http://www.trinitydesktop.org/"
+LICENSE="GPL-2"
+
+SLOT="${TRINITY_VER}"
+KEYWORDS=""
+IUSE=""
+
+DEPEND=">=trinity-base/tdelibs-${PV}:${SLOT}"
+RDEPEND="${DEPEND}"
+
+PLOCALES="af ar az be bg bn br bs ca cs csb cy da de el en_GB eo es et
+eu fa fi fr fy ga gl he hi hr hu is it ja kk km ko lt lv mk mn ms
+nb nds nl nn pa pl pt pt_BR ro ru rw se sk sl sr sr@Latn ss sv ta te
+tg th tr uk uz uz@cyrillic vi wa zh_CN zh_TW"
+
+for X in ${LANGS} ; do
+ IUSE="${IUSE} linguas_${X}"
+done
+
+run_phase() {
+ local lang dir phase;
+ phase=$1
+ lang=$2
+
+ dir="tde-i18n-$lang"
+ pushd "$S/$dir" || die "No such dir: $dir"
+ CMAKE_USE_DIR="${S}/${dir}"
+ BUILD_DIR="${WORKDIR}/${dir}-build"
+ trinity-base_${phase}
+ popd
+}
+
+src_prepare() {
+ l10n_find_plocales_changes "${S}" "${PN}-" ""
+ l10n_for_each_locale_do run_phase src_prepare
+}
+
+src_configure() {
+ mycmakeargs=( -DBUILD_ALL=ON )
+ l10n_for_each_locale_do run_phase src_configure
+}
+
+src_compile() {
+ l10n_for_each_locale_do run_phase src_compile
+}
+
+src_install() {
+ l10n_for_each_locale_do run_phase src_install
+}
diff --git a/gentoo/trinity-base/tdeaddons-doc/metadata.xml b/gentoo/trinity-base/tdeaddons-doc/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/tdeaddons-doc/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/tdeaddons-doc/tdeaddons-doc-9999.ebuild b/gentoo/trinity-base/tdeaddons-doc/tdeaddons-doc-9999.ebuild
new file mode 100644
index 000000000..adf21c3fb
--- /dev/null
+++ b/gentoo/trinity-base/tdeaddons-doc/tdeaddons-doc-9999.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdeaddons"
+
+inherit trinity-meta
+
+DESCRIPTION="Documentaion for tdeaddons-derived packages"
+KEYWORDS=""
+IUSE+=""
+RDEPEND="
+ >=trinity-base/khelpcenter-${PV}:${SLOT}"
+
+pkg_setup() {
+ # we should reduce MAKEOPTS -j parametr to no more than 4
+ local makeopts_j
+ makeopts_j="$(echo "$MAKEOPTS" | sed -n 's/\(^\|.*\s\)\(-j\s*[0-9]\+\)\(\s.*\|$\)/\2/p')"
+ if [ -n "$makeopts_j" -a "$makeopts_j" > 4 ]; then
+ export MAKEOPTS="${MAKEOPTS//"${makeopts_j}"/-j4}"
+
+ ewarn "This ebuild needs huge amoumt of memmory to compile in highly parallel"
+ ewarn "mode so it can chew it all. MAKEOPTS are reduced to \"$MAKEOPTS\"."
+ fi
+
+ trinity-meta_pkg_setup
+}
diff --git a/gentoo/trinity-base/tdeaddons-meta/metadata.xml b/gentoo/trinity-base/tdeaddons-meta/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/tdeaddons-meta/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/tdeaddons-meta/tdeaddons-meta-9999.ebuild b/gentoo/trinity-base/tdeaddons-meta/tdeaddons-meta-9999.ebuild
new file mode 100644
index 000000000..b620da556
--- /dev/null
+++ b/gentoo/trinity-base/tdeaddons-meta/tdeaddons-meta-9999.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+
+inherit trinity-functions
+
+set-trinityver
+
+DESCRIPTION="tdeaddons metapackage - merge this to pull in all tdeaddons-derived packages"
+HOMEPAGE="http://www.trinitydesktop.org/"
+LICENSE="GPL-2 LGPL-2"
+
+SLOT="${TRINITY_VER}"
+IUSE=""
+KEYWORDS=
+
+RDEPEND="
+ >=trinity-apps/atlantikdesigner-${PV}:${SLOT}
+ >=trinity-base/tdeaddons-doc-${PV}:${SLOT}
+ >=trinity-base/kaddressbook-plugins-${PV}:${SLOT}
+ >=trinity-base/kate-plugins-${PV}:${SLOT}
+ >=trinity-base/kicker-applets-${PV}:${SLOT}
+ >=trinity-base/knewsticker-scripts-${PV}:${SLOT}
+ >=trinity-base/konq-plugins-${PV}:${SLOT}
+ >=trinity-base/ksig-${PV}:${SLOT}
+ >=trinity-base/renamedlg-plugins-${PV}:${SLOT}
+ >=trinity-base/tdeaddons-tdefile-plugins-${PV}:${SLOT}
+"
+# trinity-base/noatun-plugins masked due to missing dependency: noatun
diff --git a/gentoo/trinity-base/tdeaddons-tdefile-plugins/metadata.xml b/gentoo/trinity-base/tdeaddons-tdefile-plugins/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/tdeaddons-tdefile-plugins/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/tdeaddons-tdefile-plugins/tdeaddons-tdefile-plugins-9999.ebuild b/gentoo/trinity-base/tdeaddons-tdefile-plugins/tdeaddons-tdefile-plugins-9999.ebuild
new file mode 100644
index 000000000..832e752ea
--- /dev/null
+++ b/gentoo/trinity-base/tdeaddons-tdefile-plugins/tdeaddons-tdefile-plugins-9999.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdeaddons"
+
+inherit trinity-meta
+
+DESCRIPTION="Various basic tdefile plugins provided by tdeaddons"
+KEYWORDS=""
+IUSE+=""
diff --git a/gentoo/trinity-base/tdeartwork-emoticons/metadata.xml b/gentoo/trinity-base/tdeartwork-emoticons/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/tdeartwork-emoticons/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/tdeartwork-emoticons/tdeartwork-emoticons-9999.ebuild b/gentoo/trinity-base/tdeartwork-emoticons/tdeartwork-emoticons-9999.ebuild
new file mode 100644
index 000000000..bc7735cfd
--- /dev/null
+++ b/gentoo/trinity-base/tdeartwork-emoticons/tdeartwork-emoticons-9999.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdeartwork"
+
+inherit trinity-meta
+
+DESCRIPTION="EmotIcons (icons for things like smilies :-) for Trinity"
+KEYWORDS=
+IUSE=""
diff --git a/gentoo/trinity-base/tdeartwork-icewm-themes/metadata.xml b/gentoo/trinity-base/tdeartwork-icewm-themes/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/tdeartwork-icewm-themes/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/tdeartwork-icewm-themes/tdeartwork-icewm-themes-9999.ebuild b/gentoo/trinity-base/tdeartwork-icewm-themes/tdeartwork-icewm-themes-9999.ebuild
new file mode 100644
index 000000000..92d019ba9
--- /dev/null
+++ b/gentoo/trinity-base/tdeartwork-icewm-themes/tdeartwork-icewm-themes-9999.ebuild
@@ -0,0 +1,18 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdeartwork"
+
+inherit trinity-meta
+
+DESCRIPTION="Themes for IceWM from the Trinityartwork package."
+KEYWORDS=
+IUSE=""
+
+RDEPEND="$DEPEND
+ >=trinity-base/tdeartwork-twin-styles-${PV}:${SLOT}"
+
+pkg_postinst() {
+ elog "More IceWM themes are available installing x11-themes/icewm-themes"
+}
diff --git a/gentoo/trinity-base/tdeartwork-icon-themes/metadata.xml b/gentoo/trinity-base/tdeartwork-icon-themes/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/tdeartwork-icon-themes/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/tdeartwork-icon-themes/tdeartwork-icon-themes-9999.ebuild b/gentoo/trinity-base/tdeartwork-icon-themes/tdeartwork-icon-themes-9999.ebuild
new file mode 100644
index 000000000..d95d9852c
--- /dev/null
+++ b/gentoo/trinity-base/tdeartwork-icon-themes/tdeartwork-icon-themes-9999.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdeartwork"
+
+inherit trinity-meta
+KMMODULE="IconThemes"
+
+DESCRIPTION="Icon themes for Trinity"
+KEYWORDS=
+IUSE=""
+
+TSM_EXTRACT="IconThemes/"
+
+src_prepare() {
+ trinity-meta_src_prepare
+
+ # file collision with trinity-base/kicker-applets
+ # see: https://bugs.trinitydesktop.org/show_bug.cgi?id=1282
+ rm -f IconThemes/locolor/16x16/apps/ktimemon.png
+ rm -f IconThemes/locolor/32x32/apps/ktimemon.png
+}
diff --git a/gentoo/trinity-base/tdeartwork-kworldclock/metadata.xml b/gentoo/trinity-base/tdeartwork-kworldclock/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/tdeartwork-kworldclock/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/tdeartwork-kworldclock/tdeartwork-kworldclock-9999.ebuild b/gentoo/trinity-base/tdeartwork-kworldclock/tdeartwork-kworldclock-9999.ebuild
new file mode 100644
index 000000000..b7ccdee18
--- /dev/null
+++ b/gentoo/trinity-base/tdeartwork-kworldclock/tdeartwork-kworldclock-9999.ebuild
@@ -0,0 +1,14 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdeartwork"
+
+inherit trinity-meta
+
+DESCRIPTION="kworldclock from kdeartwork"
+KEYWORDS=
+IUSE=""
+
+RDEPEND="$DEPEND
+ >=trinity-base/kworldclock-${PV}:${SLOT}"
diff --git a/gentoo/trinity-base/tdeartwork-meta/metadata.xml b/gentoo/trinity-base/tdeartwork-meta/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/tdeartwork-meta/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/tdeartwork-meta/tdeartwork-meta-9999.ebuild b/gentoo/trinity-base/tdeartwork-meta/tdeartwork-meta-9999.ebuild
new file mode 100644
index 000000000..6f2721048
--- /dev/null
+++ b/gentoo/trinity-base/tdeartwork-meta/tdeartwork-meta-9999.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+
+inherit trinity-functions
+
+set-trinityver
+
+DESCRIPTION="tdeartwork meta package - merge this to pull in all tdeartwork-derived packages"
+HOMEPAGE="http://www.trinitydesktop.org/"
+LICENSE="GPL-2 LGPL-2"
+
+SLOT="$TRINITY_VER"
+KEYWORDS=
+IUSE=""
+
+RDEPEND="
+ >=trinity-base/tdeartwork-emoticons-${PV}:${SLOT}
+ >=trinity-base/tdeartwork-icon-themes-${PV}:${SLOT}
+ >=trinity-base/tdeartwork-icewm-themes-${PV}:${SLOT}
+ >=trinity-base/tdeartwork-tdescreensaver-${PV}:${SLOT}
+ >=trinity-base/tdeartwork-twin-styles-${PV}:${SLOT}
+ >=trinity-base/tdeartwork-kworldclock-${PV}:${SLOT}
+ >=trinity-base/tdeartwork-sounds-${PV}:${SLOT}
+ >=trinity-base/tdeartwork-styles-${PV}:${SLOT}
+ >=trinity-base/tdeartwork-wallpapers-${PV}:${SLOT}"
diff --git a/gentoo/trinity-base/tdeartwork-sounds/metadata.xml b/gentoo/trinity-base/tdeartwork-sounds/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/tdeartwork-sounds/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/tdeartwork-sounds/tdeartwork-sounds-9999.ebuild b/gentoo/trinity-base/tdeartwork-sounds/tdeartwork-sounds-9999.ebuild
new file mode 100644
index 000000000..6d1e0cfdd
--- /dev/null
+++ b/gentoo/trinity-base/tdeartwork-sounds/tdeartwork-sounds-9999.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdeartwork"
+
+inherit trinity-meta
+
+DESCRIPTION="Extra sound themes for Trinity"
+KEYWORDS=
+IUSE=""
diff --git a/gentoo/trinity-base/tdeartwork-styles/metadata.xml b/gentoo/trinity-base/tdeartwork-styles/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/tdeartwork-styles/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/tdeartwork-styles/tdeartwork-styles-9999.ebuild b/gentoo/trinity-base/tdeartwork-styles/tdeartwork-styles-9999.ebuild
new file mode 100644
index 000000000..5e7c6de95
--- /dev/null
+++ b/gentoo/trinity-base/tdeartwork-styles/tdeartwork-styles-9999.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdeartwork"
+
+inherit trinity-meta
+
+DESCRIPTION="Extra styles for Trinity"
+KEYWORDS=
+IUSE=""
diff --git a/gentoo/trinity-base/tdeartwork-tdescreensaver/metadata.xml b/gentoo/trinity-base/tdeartwork-tdescreensaver/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/tdeartwork-tdescreensaver/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/tdeartwork-tdescreensaver/tdeartwork-tdescreensaver-9999.ebuild b/gentoo/trinity-base/tdeartwork-tdescreensaver/tdeartwork-tdescreensaver-9999.ebuild
new file mode 100644
index 000000000..9afe27ef0
--- /dev/null
+++ b/gentoo/trinity-base/tdeartwork-tdescreensaver/tdeartwork-tdescreensaver-9999.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdeartwork"
+
+inherit trinity-meta
+
+DESCRIPTION="Extra screensavers for Trinity"
+KEYWORDS=""
+IUSE="opengl xscreensaver arts"
+
+DEPEND="
+ >=trinity-base/tdescreensaver-${PV}:${SLOT}
+ >=trinity-base/krootbacking-${PV}:${SLOT}
+ media-libs/libart_lgpl
+ opengl? ( virtual/opengl )
+ xscreensaver? ( x11-misc/xscreensaver )
+ arts? ( trinity-base/arts )"
+RDEPEND="$DEPEND"
+
+TSM_EXTRACT_ALSO="FindXscreensaver.cmake"
+
+src_configure() {
+ mycmakeargs=(
+ -DWITH_LIBART=ON
+ $(cmake-utils_use_with opengl OPENGL)
+ $(cmake-utils_use_with xscreensaver XSCREENSAVER)
+ $(cmake-utils_use_with arts ARTS)
+ )
+
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-base/tdeartwork-twin-styles/metadata.xml b/gentoo/trinity-base/tdeartwork-twin-styles/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/tdeartwork-twin-styles/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/tdeartwork-twin-styles/tdeartwork-twin-styles-9999.ebuild b/gentoo/trinity-base/tdeartwork-twin-styles/tdeartwork-twin-styles-9999.ebuild
new file mode 100644
index 000000000..cca8c1a50
--- /dev/null
+++ b/gentoo/trinity-base/tdeartwork-twin-styles/tdeartwork-twin-styles-9999.ebuild
@@ -0,0 +1,13 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdeartwork"
+
+inherit trinity-meta
+DESCRIPTION="Window styles for Trinity"
+KEYWORDS=
+IUSE=""
+
+DEPEND=">=trinity-base/twin-${PV}:${SLOT}"
+RDEPEND="$DEPEND"
diff --git a/gentoo/trinity-base/tdeartwork-wallpapers/metadata.xml b/gentoo/trinity-base/tdeartwork-wallpapers/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/tdeartwork-wallpapers/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/tdeartwork-wallpapers/tdeartwork-wallpapers-9999.ebuild b/gentoo/trinity-base/tdeartwork-wallpapers/tdeartwork-wallpapers-9999.ebuild
new file mode 100644
index 000000000..6de05f9c5
--- /dev/null
+++ b/gentoo/trinity-base/tdeartwork-wallpapers/tdeartwork-wallpapers-9999.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdeartwork"
+
+inherit trinity-meta
+
+DESCRIPTION="Wallpapers from Trinity"
+KEYWORDS=
+IUSE=""
diff --git a/gentoo/trinity-base/tdebase-data/files/shared b/gentoo/trinity-base/tdebase-data/files/shared
new file mode 120000
index 000000000..ffc286806
--- /dev/null
+++ b/gentoo/trinity-base/tdebase-data/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files \ No newline at end of file
diff --git a/gentoo/trinity-base/tdebase-data/metadata.xml b/gentoo/trinity-base/tdebase-data/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/tdebase-data/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/tdebase-data/tdebase-data-9999.ebuild b/gentoo/trinity-base/tdebase-data/tdebase-data-9999.ebuild
new file mode 100644
index 000000000..856d4d1bc
--- /dev/null
+++ b/gentoo/trinity-base/tdebase-data/tdebase-data-9999.ebuild
@@ -0,0 +1,13 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdebase"
+
+inherit trinity-meta
+
+TRINITY_SUBMODULE="l10n pics applnk"
+
+DESCRIPTION="Icons, localization data and .desktop files from kdebase."
+KEYWORDS=
+IUSE=""
diff --git a/gentoo/trinity-base/tdebase-meta/metadata.xml b/gentoo/trinity-base/tdebase-meta/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/tdebase-meta/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/tdebase-meta/tdebase-meta-9999.ebuild b/gentoo/trinity-base/tdebase-meta/tdebase-meta-9999.ebuild
new file mode 100644
index 000000000..478ace289
--- /dev/null
+++ b/gentoo/trinity-base/tdebase-meta/tdebase-meta-9999.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+
+inherit trinity-functions
+
+set-trinityver
+
+DESCRIPTION="tdebase metapackage - merge this to pull in all tdebase-derived packages"
+HOMEPAGE="http://www.trinitydesktop.org/"
+LICENSE="GPL-2 LGPL-2"
+
+SLOT="$TRINITY_VER"
+KEYWORDS=
+IUSE=""
+
+RDEPEND=">=trinity-base/tdeinit-${PV}:${SLOT}
+ >=trinity-base/drkonqi-${PV}:${SLOT}
+ >=trinity-base/kappfinder-${PV}:${SLOT}
+ >=trinity-base/kate-${PV}:${SLOT}
+ >=trinity-base/kcheckpass-${PV}:${SLOT}
+ >=trinity-base/kcminit-${PV}:${SLOT}
+ >=trinity-base/kcontrol-${PV}:${SLOT}
+ >=trinity-base/kdcop-${PV}:${SLOT}
+ >=trinity-base/tdedebugdialog-${PV}:${SLOT}
+ >=trinity-base/tdepasswd-${PV}:${SLOT}
+ >=trinity-base/tdeprint-${PV}:${SLOT}
+ >=trinity-base/tdeeject-${PV}:${SLOT}
+ >=trinity-base/kdesktop-${PV}:${SLOT}
+ >=trinity-base/tdesu-${PV}:${SLOT}
+ >=trinity-base/kdialog-${PV}:${SLOT}
+ >=trinity-base/tdm-${PV}:${SLOT}
+ >=trinity-base/kfind-${PV}:${SLOT}
+ >=trinity-base/khelpcenter-${PV}:${SLOT}
+ >=trinity-base/khotkeys-${PV}:${SLOT}
+ >=trinity-base/kicker-${PV}:${SLOT}
+ >=trinity-base/tdebase-tdeioslaves-${PV}:${SLOT}
+ >=trinity-base/klipper-${PV}:${SLOT}
+ >=trinity-base/kmenuedit-${PV}:${SLOT}
+ >=trinity-base/konqueror-${PV}:${SLOT}
+ >=trinity-base/konsole-${PV}:${SLOT}
+ >=trinity-base/kpager-${PV}:${SLOT}
+ >=trinity-base/kpersonalizer-${PV}:${SLOT}
+ >=trinity-base/kreadconfig-${PV}:${SLOT}
+ >=trinity-base/tdescreensaver-${PV}:${SLOT}
+ >=trinity-base/ksmserver-${PV}:${SLOT}
+ >=trinity-base/ksplashml-${PV}:${SLOT}
+ >=trinity-base/kstart-${PV}:${SLOT}
+ >=trinity-base/ksysguard-${PV}:${SLOT}
+ >=trinity-base/ksystraycmd-${PV}:${SLOT}
+ >=trinity-base/ktip-${PV}:${SLOT}
+ >=trinity-base/twin-${PV}:${SLOT}
+ >=trinity-base/kxkb-${PV}:${SLOT}
+ >=trinity-base/libkonq-${PV}:${SLOT}
+ >=trinity-base/nsplugins-${PV}:${SLOT}
+ >=trinity-base/knetattach-${PV}:${SLOT}
+ >=trinity-base/tdebase-data-${PV}:${SLOT}
+ >=trinity-base/tdebase-starttde-${PV}:${SLOT}
+ >=trinity-base/krootbacking-${PV}:${SLOT}
+ >=trinity-base/tqt3integration-${PV}:${SLOT}"
diff --git a/gentoo/trinity-base/tdebase-pam/files/tde-np.pam-6 b/gentoo/trinity-base/tdebase-pam/files/tde-np.pam-6
new file mode 100644
index 000000000..5e4f50365
--- /dev/null
+++ b/gentoo/trinity-base/tdebase-pam/files/tde-np.pam-6
@@ -0,0 +1,10 @@
+#%PAM-1.0
+
+auth required pam_nologin.so
+auth required pam_permit.so
+
+account include system-auth
+
+password include system-auth
+
+session include system-auth
diff --git a/gentoo/trinity-base/tdebase-pam/files/tde.pam-7 b/gentoo/trinity-base/tdebase-pam/files/tde.pam-7
new file mode 100644
index 000000000..5dde13033
--- /dev/null
+++ b/gentoo/trinity-base/tdebase-pam/files/tde.pam-7
@@ -0,0 +1,10 @@
+#%PAM-1.0
+
+auth required pam_nologin.so
+auth include system-auth
+
+account include system-auth
+
+password include system-auth
+
+session include system-auth
diff --git a/gentoo/trinity-base/tdebase-pam/metadata.xml b/gentoo/trinity-base/tdebase-pam/metadata.xml
new file mode 100644
index 000000000..81b310d3e
--- /dev/null
+++ b/gentoo/trinity-base/tdebase-pam/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ <description>The maintainer of the package in the overlay, please don't report bugs to the gnome team.</description>
+</maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/tdebase-pam/tdebase-pam-7.ebuild b/gentoo/trinity-base/tdebase-pam/tdebase-pam-7.ebuild
new file mode 100644
index 000000000..feba3b90a
--- /dev/null
+++ b/gentoo/trinity-base/tdebase-pam/tdebase-pam-7.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit pam
+
+DESCRIPTION="pam.d files used by several Trinity components."
+HOMEPAGE="http://www.trinitydesktop.org/"
+LICENSE="GPL-2"
+
+SLOT="0"
+KEYWORDS="alpha amd64 hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd"
+IUSE=""
+
+DEPEND="virtual/pam"
+RDEPEND="${DEPEND}"
+
+src_install() {
+ newpamd "${FILESDIR}/tde.pam-${PV}" tde
+ newpamd "${FILESDIR}/tde-np.pam-6" tde-np
+}
diff --git a/gentoo/trinity-base/tdebase-starttde/files/agent-shutdown.sh b/gentoo/trinity-base/tdebase-starttde/files/agent-shutdown.sh
new file mode 100644
index 000000000..07cf74772
--- /dev/null
+++ b/gentoo/trinity-base/tdebase-starttde/files/agent-shutdown.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+#
+# This file is executed at kde shutdown.
+# Uncomment the following lines to kill the agents
+# that were started at session startup.
+
+#if [ -n "${GPG_AGENT_INFO}" ]; then
+# kill $(echo ${GPG_AGENT_INFO} | cut -d':' -f 2) >/dev/null 2>&1
+#fi
+
+#if [ -n "${SSH_AGENT_PID}" ]; then
+# eval "$(ssh-agent -s -k)"
+#fi
diff --git a/gentoo/trinity-base/tdebase-starttde/files/agent-startup.sh b/gentoo/trinity-base/tdebase-starttde/files/agent-startup.sh
new file mode 100644
index 000000000..4b99f6e8b
--- /dev/null
+++ b/gentoo/trinity-base/tdebase-starttde/files/agent-startup.sh
@@ -0,0 +1,29 @@
+# Agents startup file
+#
+# This file is sourced at kde startup, so that
+# the environment variables set here are available
+# throughout the session.
+
+# Uncomment the following lines to start gpg-agent
+# and/or ssh-agent at kde startup.
+# If you do so, do not forget to uncomment the respective
+# lines in KDEDIR/shutdown/agent-shutdown.sh to
+# properly kill the agents when the session ends.
+
+#if [ -x /usr/bin/gpg-agent ]; then
+# eval "$(/usr/bin/gpg-agent --daemon)"
+#fi
+
+#if [ -x /usr/bin/ssh-agent ]; then
+# eval "$(/usr/bin/ssh-agent -s)"
+#fi
+
+# Uncomment the following lines to start rxvt-unicode which has the ability to
+# run multiple terminals in one single process, thus starting up faster and
+# saving resources.
+# The --opendisplay ensures that the daemon quits when the X server terminates,
+# therefore we don't need matching lines in agent-shutdown.sh.
+
+#if [ -x /usr/bin/urxvtd ]; then
+# /usr/bin/urxvtd --opendisplay --fork --quiet
+#fi
diff --git a/gentoo/trinity-base/tdebase-starttde/files/kdebase-startkde-trinity-gentoo.patch b/gentoo/trinity-base/tdebase-starttde/files/kdebase-startkde-trinity-gentoo.patch
new file mode 100644
index 000000000..0d37eab5b
--- /dev/null
+++ b/gentoo/trinity-base/tdebase-starttde/files/kdebase-startkde-trinity-gentoo.patch
@@ -0,0 +1,46 @@
+--- startkde.orig 2011-09-19 14:54:22.812972431 +0400
++++ startkde 2011-09-19 15:02:54.050401619 +0400
+@@ -9,6 +9,15 @@
+ # because we still need to do some cleanup.
+ trap '[startkde] echo GOT SIGHUP' HUP
+
++# Gentoo: setup environment, filter other slotted KDE installs from PATH
++_KDEDIR=@REPLACE_PREFIX@
++#export KDEDIRS=${_KDEDIR}:/usr:/usr/local
++export PATH=${_KDEDIR}/bin:$(echo ${PATH} | sed 's/$/:/g;s#/usr/kde/[^/]*/s\?bin/\?:##g;s/:$//g')
++export ROOTPATH=${_KDEDIR}/sbin:${_KDEDIR}/bin:$(echo ${PATH} | sed 's/$/:/g;s#/usr/kde/[^/]*/s\?bin/\?:##g;s/:$//g')
++export LDPATH=@REPLACE_LIBS@:${LDPATH}
++export XDG_DATA_DIRS=${_KDEDIR}/share:$(echo ${XDG_DATA_DIRS} | sed 's/$/:/g;s#/usr/kde/[^/]*/share/\?:##g;s/:$//g')
++# Gentoo part ends
++
+ # Check if a KDE session is already running.
+ if kcheckrunning >/dev/null 2>&1; then
+ echo "[startkde] KDE seems to be already running on this display."
+@@ -340,6 +349,13 @@
+ done
+ done
+
++# Source scripts in /etc/X11/xinit/xinitrc.d/ for system-level defined stuff
++if test -d "/etc/X11/xinit/xinitrc.d/"; then
++ for file in "/etc/X11/xinit/xinitrc.d/"*; do
++ test -x "$file" && . "$file"
++ done
++fi
++
+ # Activate the kde font directories.
+ #
+ # There are 4 directories that may be used for supplying fonts for KDE.
+@@ -593,7 +609,12 @@
+ # Clean up
+ kdeinit_shutdown
+ dcopserver_shutdown --wait
+-artsshell -q terminate
++
++# Terminate artsshell if it exists
++if [ -e ${_KDEDIR}/bin/artsshell ] ; then
++ artsshell -q terminate ;
++fi
++
+ # KDE4 support
+ if [ -f /usr/bin/kdeinit4_shutdown ]; then
+ kde4 kdeinit4_shutdown 2>/dev/null
diff --git a/gentoo/trinity-base/tdebase-starttde/files/shared b/gentoo/trinity-base/tdebase-starttde/files/shared
new file mode 120000
index 000000000..ffc286806
--- /dev/null
+++ b/gentoo/trinity-base/tdebase-starttde/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files \ No newline at end of file
diff --git a/gentoo/trinity-base/tdebase-starttde/files/tdebase-starttde-14-gentoo.patch b/gentoo/trinity-base/tdebase-starttde/files/tdebase-starttde-14-gentoo.patch
new file mode 100644
index 000000000..8d91f88ca
--- /dev/null
+++ b/gentoo/trinity-base/tdebase-starttde/files/tdebase-starttde-14-gentoo.patch
@@ -0,0 +1,32 @@
+--- starttde 2019-01-27 13:01:05.443907841 +0300
++++ starttde.gentoo 2019-01-27 13:01:48.203621371 +0300
+@@ -178,7 +178,7 @@
+
+ # Modify the following environment variables only as necessary.
+
+- if ! is_in_path PATH "$TDEDIR/games" ; then
++# if ! is_in_path PATH "$TDEDIR/games" ; then
+ # Respect the traditional path order. Don't blindly place $TDEDIR/games
+ # first in the path. Only place $TDEDIR/games before /usr/games. If packagers
+ # are adding $TDEDIR/games elsewhere, then they need to ensure the traditional
+@@ -190,9 +190,9 @@
+ else
+ export PATH=$TDEDIR/games:$PATH
+ fi
+- fi
++# fi
+
+- if ! is_in_path PATH "$TDEDIR/bin" ]; then
++# if ! is_in_path PATH "$TDEDIR/bin" ]; then
+ # Respect the traditional path order. Don't blindly place $TDEDIR/bin
+ # first in the path. Only place $TDEDIR/bin before /usr/bin. This order is
+ # consistent with tdelibs/tdesu/stub.cpp. If packagers are adding $TDEDIR/bin
+@@ -204,7 +204,7 @@
+ else
+ export PATH=$TDEDIR/bin:$PATH
+ fi
+- fi
++# fi
+
+ if [ -x /usr/bin/manpath ]; then
+ if [ "`manpath 2>/dev/null | grep \"$TDEDIR/share/man\"`" = "" ]; then
diff --git a/gentoo/trinity-base/tdebase-starttde/metadata.xml b/gentoo/trinity-base/tdebase-starttde/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/tdebase-starttde/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/tdebase-starttde/tdebase-starttde-9999.ebuild b/gentoo/trinity-base/tdebase-starttde/tdebase-starttde-9999.ebuild
new file mode 100644
index 000000000..f3b8d3f1c
--- /dev/null
+++ b/gentoo/trinity-base/tdebase-starttde/tdebase-starttde-9999.ebuild
@@ -0,0 +1,95 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="starttde script, which starts a complete Trinity session, and associated scripts"
+KEYWORDS=
+IUSE=""
+
+RDEPEND="x11-apps/xmessage
+ x11-apps/xsetroot
+ x11-apps/xset
+ x11-apps/xrandr
+ x11-apps/mkfontdir
+ x11-apps/xprop
+ >=trinity-base/kdesktop-${PV}:${SLOT}
+ >=trinity-base/kcminit-${PV}:${SLOT}
+ >=trinity-base/ksmserver-${PV}:${SLOT}
+ >=trinity-base/twin-${PV}:${SLOT}
+ >=trinity-base/kpersonalizer-${PV}:${SLOT}
+ >=trinity-base/kreadconfig-${PV}:${SLOT}
+ >=trinity-base/ksplashml-${PV}:${SLOT}
+ >=trinity-base/tdeinit-${PV}:${SLOT}"
+
+TSM_EXTRACT="starttde README.pam INSTALL AUTHORS COPYING COPYING-DOCS tdm"
+
+PATCHES=( "$FILESDIR/${PN}-14-gentoo.patch")
+
+src_prepare() {
+# epatch "${FILESDIR}/tdebase-starttde-trinity-gentoo.patch"
+
+ trinity-base_src_prepare
+}
+
+src_configure() {
+ echo -n "";
+}
+
+src_compile() {
+ # Patch the starttde script to setup the environment for KDE 4.0
+ # Add our TDEDIR
+ sed -i -e "s#@REPLACE_PREFIX@#${TDEDIR}#" \
+ "${S}/starttde" || die "Sed for PREFIX failed."
+
+ # List all the multilib libdirs
+ local _libdir _libdirs
+ for _libdir in $(get_all_libdirs); do
+ _libdirs="${_libdirs}:${PREFIX}/${_libdir}"
+ done
+ _libdirs=${_libdirs#:}
+
+ # Complete LDPATH
+ sed -i -e "s#@REPLACE_LIBS@#${_libdirs}#" \
+ "${S}/starttde" || die "Sed for LDPATH failed."
+}
+
+src_install() {
+ # starttde script
+ exeinto "${TDEDIR}/bin"
+ doexe starttde
+ doexe r14-xdg-update
+ doexe migratekde3
+
+ # startup and shutdown scripts
+ exeinto "${TDEDIR}/env"
+ doexe "${FILESDIR}/agent-startup.sh"
+
+ exeinto "${TDEDIR}/shutdown"
+ doexe "${FILESDIR}/agent-shutdown.sh"
+
+ # x11 session script
+ cat <<EOF > "${T}/tde-${SLOT}"
+#!/bin/sh
+exec ${TDEDIR}/bin/starttde
+EOF
+ exeinto /etc/X11/Sessions
+ doexe "${T}/tde-${SLOT}" # FIXME: change script branding to trinity
+
+ # (not really) freedesktop compliant session script
+ sed -e "s:@TDE_BINDIR@:${TDEDIR}/bin:g;s:Name=Trinity:Name=Trinity ${SLOT}:" \
+ "${S}/tdm/kfrontend/sessions/tde.desktop.in" > "${T}/tde-${SLOT}.desktop"
+ insinto /usr/share/xsessions
+ doins "${T}/tde-${SLOT}.desktop"
+}
+
+pkg_postinst () {
+ echo
+ elog "To enable gpg-agent and/or ssh-agent in Trinity sessions,"
+ elog "edit ${TDEDIR}/env/agent-startup.sh and"
+ elog "${TDEDIR}/shutdown/agent-shutdown.sh"
+ echo
+}
diff --git a/gentoo/trinity-base/tdebase-tdeioslaves/files/shared b/gentoo/trinity-base/tdebase-tdeioslaves/files/shared
new file mode 120000
index 000000000..ffc286806
--- /dev/null
+++ b/gentoo/trinity-base/tdebase-tdeioslaves/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files \ No newline at end of file
diff --git a/gentoo/trinity-base/tdebase-tdeioslaves/metadata.xml b/gentoo/trinity-base/tdebase-tdeioslaves/metadata.xml
new file mode 100644
index 000000000..f0df6a0d7
--- /dev/null
+++ b/gentoo/trinity-base/tdebase-tdeioslaves/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+ <use>
+ <flag name="tdehw">Use tdehwlib backend for media mount</flag>
+ </use>
+ <longdescription>
+ kioslaves is the Trinity VFS framework which plugins present a filesystem-like view of arbitrary data.
+ This package provides most generic KIOslaves provided by kdebase.
+ </longdescription>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/tdebase-tdeioslaves/tdebase-tdeioslaves-9999.ebuild b/gentoo/trinity-base/tdebase-tdeioslaves/tdebase-tdeioslaves-9999.ebuild
new file mode 100644
index 000000000..4c205c94f
--- /dev/null
+++ b/gentoo/trinity-base/tdebase-tdeioslaves/tdebase-tdeioslaves-9999.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdebase"
+
+inherit trinity-meta
+
+TSM_EXTRACT="tdeioslave"
+
+DESCRIPTION="Generic Trinity KIOslaves"
+KEYWORDS=
+IUSE="samba ldap sasl openexr -hal +tdehw"
+REQUIRED_USE="tdehw? ( !hal )"
+
+DEPEND="
+ x11-libs/libXcursor
+ openexr? ( >=media-libs/openexr-1.2.2-r2 )
+ samba? ( net-fs/samba )
+ ldap? ( net-nds/openldap )
+ sasl? ( dev-libs/cyrus-sasl )
+ hal? ( dev-libs/dbus-tqt
+ =sys-apps/hal-0.5* )"
+
+RDEPEND="${DEPEND}"
+# CHECKME: optional dependencies
+#DEPEND="
+# >=dev-libs/cyrus-sasl-2
+# hal? ( dev-libs/dbus-qt3-old =sys-apps/hal-0.5* )"
+# x11-apps/xhost
+RDEPEND="${DEPEND}
+ virtual/ssh
+ trinity-base/tdeeject:${SLOT}"
+
+src_configure() {
+ mycmakeargs=(
+ -DWITH_XCURSOR=ON
+ $(cmake-utils_use_with samba SAMBA)
+ $(cmake-utils_use_with ldap LDAP)
+ $(cmake-utils_use_with sasl SASL)
+ $(cmake-utils_use_with openexr OPENEXR)
+ $(cmake-utils_use_with hal HAL)
+ $(cmake-utils_use_with tdehw TDEHWLIB)
+ )
+
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-base/tdedebugdialog/metadata.xml b/gentoo/trinity-base/tdedebugdialog/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/tdedebugdialog/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/tdedebugdialog/tdedebugdialog-9999.ebuild b/gentoo/trinity-base/tdedebugdialog/tdedebugdialog-9999.ebuild
new file mode 100644
index 000000000..a7c865150
--- /dev/null
+++ b/gentoo/trinity-base/tdedebugdialog/tdedebugdialog-9999.ebuild
@@ -0,0 +1,12 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="A Trinity dialog box for setting preferences for debug output."
+KEYWORDS=
+IUSE=""
+RDEPEND+=" !trinity-base/kdebugdialog:${SLOT}"
diff --git a/gentoo/trinity-base/tdednssd/metadata.xml b/gentoo/trinity-base/tdednssd/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/tdednssd/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/tdednssd/tdednssd-9999.ebuild b/gentoo/trinity-base/tdednssd/tdednssd-9999.ebuild
new file mode 100644
index 000000000..1ee37a508
--- /dev/null
+++ b/gentoo/trinity-base/tdednssd/tdednssd-9999.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdenetwork"
+
+inherit trinity-meta
+
+DESCRIPTION="A DNSSD (DNS Service Discovery - part of Rendezvous) ioslave and kded module"
+KEYWORDS=
+IUSE=""
diff --git a/gentoo/trinity-base/tdeeject/metadata.xml b/gentoo/trinity-base/tdeeject/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/tdeeject/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/tdeeject/tdeeject-9999.ebuild b/gentoo/trinity-base/tdeeject/tdeeject-9999.ebuild
new file mode 100644
index 000000000..21c01ccbe
--- /dev/null
+++ b/gentoo/trinity-base/tdeeject/tdeeject-9999.ebuild
@@ -0,0 +1,15 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity eject frontend"
+KEYWORDS=
+IUSE=""
+
+DEPEND="trinity-base/kdialog:${SLOT}"
+RDEPEND="${DEPEND}
+ virtual/eject"
diff --git a/gentoo/trinity-base/tdegames-doc/metadata.xml b/gentoo/trinity-base/tdegames-doc/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/tdegames-doc/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/tdegames-doc/tdegames-doc-9999.ebuild b/gentoo/trinity-base/tdegames-doc/tdegames-doc-9999.ebuild
new file mode 100644
index 000000000..36295dd47
--- /dev/null
+++ b/gentoo/trinity-base/tdegames-doc/tdegames-doc-9999.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdegames"
+
+inherit trinity-meta
+
+DESCRIPTION="Documentaion for tdegames-derived packages"
+KEYWORDS=""
+IUSE+=""
+RDEPEND="
+ >=trinity-base/khelpcenter-${PV}:${SLOT}"
+
+pkg_setup() {
+ # we should reduce MAKEOPTS -j parametr to no more than 4
+ local makeopts_j
+ makeopts_j="$(echo "$MAKEOPTS" | sed -n 's/\(^\|.*\s\)\(-j\s*[0-9]\+\)\(\s.*\|$\)/\2/p')"
+ if [ -n "$makeopts_j" -a "$makeopts_j" > 4 ]; then
+ export MAKEOPTS="${MAKEOPTS//"${makeopts_j}"/-j4}"
+
+ ewarn "This ebuild needs huge amoumt of memmory to compile in highly parallel"
+ ewarn "mode so it can chew it all. MAKEOPTS are reduced to \"$MAKEOPTS\"."
+ fi
+
+ trinity-meta_pkg_setup
+}
diff --git a/gentoo/trinity-base/tdegames-meta/metadata.xml b/gentoo/trinity-base/tdegames-meta/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/tdegames-meta/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/tdegames-meta/tdegames-meta-9999.ebuild b/gentoo/trinity-base/tdegames-meta/tdegames-meta-9999.ebuild
new file mode 100644
index 000000000..64768c450
--- /dev/null
+++ b/gentoo/trinity-base/tdegames-meta/tdegames-meta-9999.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+
+inherit trinity-functions
+
+set-trinityver
+
+DESCRIPTION="kdegraphics metapackage - merge this to pull in all kdegraphics-derived packages"
+HOMEPAGE="http://www.trinitydesktop.org/"
+LICENSE="GPL-2 LGPL-2"
+
+SLOT="${TRINITY_VER}"
+IUSE=""
+KEYWORDS=
+
+RDEPEND="
+ >=trinity-apps/atlantik-${PV}:${SLOT}
+ >=trinity-base/tdegames-doc-${PV}:${SLOT}
+ >=trinity-apps/kasteroids-${PV}:${SLOT}
+ >=trinity-apps/katomic-${PV}:${SLOT}
+ >=trinity-apps/kbackgammon-${PV}:${SLOT}
+ >=trinity-apps/kbattleship-${PV}:${SLOT}
+ >=trinity-apps/kblackbox-${PV}:${SLOT}
+ >=trinity-apps/kbounce-${PV}:${SLOT}
+ >=trinity-apps/kenolaba-${PV}:${SLOT}
+ >=trinity-apps/kfouleggs-${PV}:${SLOT}
+ >=trinity-apps/kgoldrunner-${PV}:${SLOT}
+ >=trinity-apps/kjumpingcube-${PV}:${SLOT}
+ >=trinity-apps/klickety-${PV}:${SLOT}
+ >=trinity-apps/klines-${PV}:${SLOT}
+ >=trinity-apps/kmahjongg-${PV}:${SLOT}
+ >=trinity-apps/kmines-${PV}:${SLOT}
+ >=trinity-apps/knetwalk-${PV}:${SLOT}
+ >=trinity-apps/kolf-${PV}:${SLOT}
+ >=trinity-apps/konquest-${PV}:${SLOT}
+ >=trinity-apps/kpat-${PV}:${SLOT}
+ >=trinity-apps/kpoker-${PV}:${SLOT}
+ >=trinity-apps/kreversi-${PV}:${SLOT}
+ >=trinity-apps/ksame-${PV}:${SLOT}
+ >=trinity-apps/kshisen-${PV}:${SLOT}
+ >=trinity-apps/ksirtet-${PV}:${SLOT}
+ >=trinity-apps/ksmiletris-${PV}:${SLOT}
+ >=trinity-apps/ksnake-${PV}:${SLOT}
+ >=trinity-apps/ksokoban-${PV}:${SLOT}
+ >=trinity-apps/kspaceduel-${PV}:${SLOT}
+ >=trinity-apps/ktron-${PV}:${SLOT}
+ >=trinity-apps/ktuberling-${PV}:${SLOT}
+ >=trinity-base/libtdegames-${PV}:${SLOT}
+ >=trinity-apps/lskat-${PV}:${SLOT}
+ >=trinity-apps/twin4-${PV}:${SLOT}"
diff --git a/gentoo/trinity-base/tdegraphics-doc/metadata.xml b/gentoo/trinity-base/tdegraphics-doc/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/tdegraphics-doc/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/tdegraphics-doc/tdegraphics-doc-9999.ebuild b/gentoo/trinity-base/tdegraphics-doc/tdegraphics-doc-9999.ebuild
new file mode 100644
index 000000000..847974efa
--- /dev/null
+++ b/gentoo/trinity-base/tdegraphics-doc/tdegraphics-doc-9999.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdegraphics"
+
+inherit trinity-meta
+
+DESCRIPTION="Documentaion for kdegraphics-derived packages"
+KEYWORDS=
+IUSE=""
+RDEPEND="
+ >=trinity-base/khelpcenter-${PV}:${SLOT}"
+
+pkg_setup() {
+ # we should reduce MAKEOPTS -j parametr to no more than 4
+ local makeopts_j
+ makeopts_j="$(echo "$MAKEOPTS" | sed -n 's/\(^\|.*\s\)\(-j\s*[0-9]\+\)\(\s.*\|$\)/\2/p')"
+ if [ -n "$makeopts_j" -a "$makeopts_j" > 4 ]; then
+ export MAKEOPTS="${MAKEOPTS//"${makeopts_j}"/-j4}"
+
+ ewarn "This ebuild needs huge amoumt of memmory to compile in highly parallel"
+ ewarn "mode so it can chew it all. MAKEOPTS are reduced to \"$MAKEOPTS\"."
+ fi
+
+ trinity-meta_pkg_setup
+}
diff --git a/gentoo/trinity-base/tdegraphics-meta/metadata.xml b/gentoo/trinity-base/tdegraphics-meta/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/tdegraphics-meta/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/tdegraphics-meta/tdegraphics-meta-9999.ebuild b/gentoo/trinity-base/tdegraphics-meta/tdegraphics-meta-9999.ebuild
new file mode 100644
index 000000000..565190d3d
--- /dev/null
+++ b/gentoo/trinity-base/tdegraphics-meta/tdegraphics-meta-9999.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+
+inherit trinity-functions
+
+set-trinityver
+
+DESCRIPTION="kdegraphics metapackage - merge this to pull in all kdegraphics-derived packages"
+HOMEPAGE="http://www.trinitydesktop.org/"
+LICENSE="GPL-2 LGPL-2"
+
+SLOT="${TRINITY_VER}"
+IUSE=""
+[[ ${PV} == *9999* ]] || \
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+ >=trinity-base/kamera-${PV}:${SLOT}
+ >=trinity-base/kcoloredit-${PV}:${SLOT}
+ >=trinity-base/kdvi-${PV}:${SLOT}
+ >=trinity-base/kfax-${PV}:${SLOT}
+ >=trinity-base/tdegraphics-tdefile-plugins-${PV}:${SLOT}
+ >=trinity-base/tdegraphics-doc-${PV}:${SLOT}
+ >=trinity-base/kgamma-${PV}:${SLOT}
+ >=trinity-base/kghostview-${PV}:${SLOT}
+ >=trinity-base/tdeiconedit-${PV}:${SLOT}
+ >=trinity-base/kmrml-${PV}:${SLOT}
+ >=trinity-base/kolourpaint-${PV}:${SLOT}
+ >=trinity-base/kooka-${PV}:${SLOT}
+ >=trinity-base/kpdf-${PV}:${SLOT}
+ >=trinity-base/kpovmodeler-${PV}:${SLOT}
+ >=trinity-base/kruler-${PV}:${SLOT}
+ >=trinity-base/ksnapshot-${PV}:${SLOT}
+ >=trinity-base/ksvg-${PV}:${SLOT}
+ >=trinity-base/kuickshow-${PV}:${SLOT}
+ >=trinity-base/kview-${PV}:${SLOT}
+ >=trinity-base/kviewshell-${PV}:${SLOT}
+ >=trinity-base/libkscan-${PV}:${SLOT}"
diff --git a/gentoo/trinity-base/tdegraphics-tdefile-plugins/metadata.xml b/gentoo/trinity-base/tdegraphics-tdefile-plugins/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/tdegraphics-tdefile-plugins/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/tdegraphics-tdefile-plugins/tdegraphics-tdefile-plugins-9999.ebuild b/gentoo/trinity-base/tdegraphics-tdefile-plugins/tdegraphics-tdefile-plugins-9999.ebuild
new file mode 100644
index 000000000..3655a5629
--- /dev/null
+++ b/gentoo/trinity-base/tdegraphics-tdefile-plugins/tdegraphics-tdefile-plugins-9999.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdegraphics"
+
+inherit trinity-meta
+
+DESCRIPTION="kfile plugins from kdegraphics"
+KEYWORDS=
+IUSE="tiff openexr pdf"
+
+DEPEND="
+ tiff? ( media-libs/tiff:= )
+ openexr? ( >=media-libs/openexr-1.2.2-r2 )
+ pdf? ( app-text/poppler )"
+RDEPEND="$DEPEND"
+
+TSM_EXTRACT_ALSO="kghostview/dscparse/"
+
+src_configure() {
+ mycmakeargs=(
+ $(cmake-utils_use_with tiff TIFF)
+ $(cmake-utils_use_with openexr OPENEXR)
+ $(cmake-utils_use_with pdf PDF)
+ )
+
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-base/tdeiconedit/metadata.xml b/gentoo/trinity-base/tdeiconedit/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/tdeiconedit/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/tdeiconedit/tdeiconedit-9999.ebuild b/gentoo/trinity-base/tdeiconedit/tdeiconedit-9999.ebuild
new file mode 100644
index 000000000..cac6795e9
--- /dev/null
+++ b/gentoo/trinity-base/tdeiconedit/tdeiconedit-9999.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdegraphics"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity Icon Editor"
+KEYWORDS=
+IUSE=""
diff --git a/gentoo/trinity-base/tdeinit/files/shared b/gentoo/trinity-base/tdeinit/files/shared
new file mode 120000
index 000000000..ffc286806
--- /dev/null
+++ b/gentoo/trinity-base/tdeinit/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files \ No newline at end of file
diff --git a/gentoo/trinity-base/tdeinit/metadata.xml b/gentoo/trinity-base/tdeinit/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/tdeinit/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/tdeinit/tdeinit-9999.ebuild b/gentoo/trinity-base/tdeinit/tdeinit-9999.ebuild
new file mode 100644
index 000000000..2f7d0c5fd
--- /dev/null
+++ b/gentoo/trinity-base/tdeinit/tdeinit-9999.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity init binary particulary replacing funcs of the starttde script"
+KEYWORDS=
+IUSE=""
diff --git a/gentoo/trinity-base/tdelibs/metadata.xml b/gentoo/trinity-base/tdelibs/metadata.xml
new file mode 100644
index 000000000..2f5667853
--- /dev/null
+++ b/gentoo/trinity-base/tdelibs/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+ <use>
+ <flag name="sudo"> Use <pkg>app-admin/sudo</pkg> as a default program to
+ obtain root privileges.</flag>
+ <flag name="utempter">Records user logins. Useful on multi-user systems</flag>
+ <flag name="consolekit">Enable <pkg>sys-auth/consolekit</pkg> as tdehw backend</flag>
+ <flag name="old_udisks">Enable <pkg>sys-fs/udisks</pkg>:0 as tdehw backend</flag>
+ <flag name="udisks">Enable <pkg>sys-fs/udisks</pkg>:2 as tdehw backend</flag>
+ <flag name="upower">Enable <pkg>sys-power/upower</pkg> as tdehw backend</flag>
+ </use>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/tdelibs/tdelibs-9999.ebuild b/gentoo/trinity-base/tdelibs/tdelibs-9999.ebuild
new file mode 100644
index 000000000..1fc1863de
--- /dev/null
+++ b/gentoo/trinity-base/tdelibs/tdelibs-9999.ebuild
@@ -0,0 +1,143 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="$PN"
+
+inherit trinity-base multilib
+
+set-trinityver
+
+need-arts optional
+
+DESCRIPTION="Trinity libraries needed by all TDE programs."
+HOMEPAGE="http://www.trinitydesktop.org/"
+LICENSE="GPL-2 LGPL-2"
+SLOT="${TRINITY_VER}"
+KEYWORDS=
+IUSE+=" alsa avahi cups consolekit fam jpeg2k lua lzma networkmanager openexr
+ spell sudo tiff utempter upower udisks old_udisks xcomposite +xrandr"
+
+MY_DEPEND=">=dev-qt/tqtinterface-${TRINITY_VER}
+ >=dev-libs/libxslt-1.1.16
+ >=dev-libs/libxml2-2.6.6
+ >=dev-libs/libpcre-6.6
+ net-dns/libidn
+ app-text/ghostscript-gpl
+ >=dev-libs/openssl-0.9.7d:=
+ media-libs/fontconfig
+ media-libs/freetype:2
+ media-libs/libart_lgpl
+ sys-apps/dbus
+ dev-libs/dbus-1-tqt
+ x11-libs/libXcursor
+ x11-libs/libXrender
+ alsa? ( media-libs/alsa-lib )
+ avahi? ( net-dns/avahi )
+ cups? ( >=net-print/cups-1.1.19 )
+ fam? ( virtual/fam )
+ jpeg2k? ( media-libs/jasper )
+ lua? ( dev-lang/lua:* )
+ openexr? ( >=media-libs/openexr-1.2.2-r2 )
+ spell? ( >=app-dicts/aspell-en-6.0.0 >=app-text/aspell-0.60.5 )
+ sudo? ( app-admin/sudo )
+ tiff? ( media-libs/tiff:= )
+ utempter? ( sys-libs/libutempter )
+ networkmanager? ( net-misc/networkmanager )
+ lzma? ( app-arch/xz-utils )
+ xrandr? ( >=x11-libs/libXrandr-1.2 )
+ xcomposite? ( x11-libs/libXcomposite )"
+# NOTE: upstream lacks avahi support, so the use flag is currenly masked
+# TODO: add elfres support via libr (not in portage now)
+DEPEND+=" ${MY_DEPEND}"
+RDEPEND+=" ${MY_DEPEND}
+ consolekit? ( sys-auth/consolekit )
+ upower? ( sys-power/upower )
+ udisks? ( sys-fs/udisks:2 )
+ old_udisks? ( sys-fs/udisks:0 )"
+
+src_configure() {
+ mycmakeargs=(
+ -DMALLOC_FULL=ON
+ -DWITH_LIBIDN=ON
+ -DWITH_SSL=ON
+ -DWITH_LIBART=ON
+ -DWITH_PCRE=ON
+ -DWITH_XCURSOR=ON
+ -DWITH_HSPELL=OFF
+ -DKDE4_DEFAULT_HOME=.kde4
+ $(cmake-utils_use_with alsa ALSA)
+ $(cmake-utils_use_with avahi AVAHI)
+ $(cmake-utils_use_with cups CUPS)
+ $(cmake-utils_use_with kernel_linux INOTIFY)
+ $(cmake-utils_use_with jpeg2k JASPER)
+ $(cmake-utils_use_with lua LUA)
+ $(cmake-utils_use_with lzma LZMA)
+ $(cmake-utils_use_with openexr OPENEXR)
+ $(cmake-utils_use_with spell ASPELL)
+ $(cmake-utils_use_with fam GAMIN)
+ $(cmake-utils_use_with tiff TIFF)
+ $(cmake-utils_use_with utempter UTEMPTER)
+ $(cmake-utils_use_with upower UPOWER)
+ $(cmake-utils_use_with old_udisks UDISKS)
+ $(cmake-utils_use_with udisks UDISKS2)
+ $(cmake-utils_use_with consolekit CONSOLEKIT)
+ $(cmake-utils_use_with networkmanager WITH_NETWORK_MANAGER_BACKEND)
+ $(cmake-utils_use_with xcomposite XCOMPOSITE)
+ $(cmake-utils_use_with xrandr XRANDR)
+ $(cmake-utils_use_with sudo SUDO_KDESU_BACKEND)
+ )
+
+ trinity-base_src_configure
+}
+
+src_install() {
+ trinity-base_src_install
+
+ dodir /etc/env.d
+ # KDE implies that the install path is listed first in TDEDIRS and the user
+ # directory (implicitly added) to be the last entry. Doing otherwise breaks
+ # certain functionality. Do not break this (once again *sigh*), but read the code.
+ # KDE saves the installed path implicitly and so this is not needed, /usr
+ # is set in ${TDEDIR}/share/config/kdeglobals and so TDEDIRS is not needed.
+
+ # List all the multilib libdirs
+ local libdirs pkgconfigdirs
+ for libdir in $(get_all_libdirs); do
+ libdirs="${TDEDIR}/${libdir}:${libdirs}"
+ done
+
+ cat <<EOF >"${D}/etc/env.d/45trinitypaths-${SLOT}" # number goes down with version upgrade
+PATH=${TDEDIR}/bin
+ROOTPATH=${TDEDIR}/sbin:${TDEDIR}/bin
+LDPATH=${libdirs#:}
+MANPATH=${TDEDIR}/share/man
+CONFIG_PROTECT="${TDEDIR}/share/config ${TDEDIR}/env ${TDEDIR}/shutdown /usr/share/config"
+#TDE_IS_PRELINKED=1
+# Excessive flushing to disk as in releases before KDE 3.5.10. Usually you don't want that.
+#TDE_EXTRA_FSYNC=1
+XDG_DATA_DIRS="${TDEDIR}/share"
+PKG_CONFIG_PATH="${TDEDIR}/$(get_libdir)/pkgconfig"
+EOF
+
+ # Make sure the target for the revdep-rebuild stuff exists. Fixes bug 184441.
+ dodir /etc/revdep-rebuild
+
+cat <<EOF >"${D}/etc/revdep-rebuild/50-trinity-${SLOT}"
+SEARCH_DIRS="${TDEDIR}/bin ${TDEDIR}/lib*"
+EOF
+
+ trinity-base_create_tmp_docfiles
+ trinity-base_install_docfiles
+}
+
+pkg_postinst () {
+ if use sudo; then
+ einfo "Remember sudo use flag sets only the defauld value"
+ einfo "It can be overriden on a user-level by adding:"
+ einfo " [super-user-command]"
+ einfo " super-user-command=su"
+ einfo "To the kdeglobal config file which is should be usually"
+ einfo "located in the ~/.trinity/share/config/ directory."
+ fi
+}
diff --git a/gentoo/trinity-base/tdelirc/metadata.xml b/gentoo/trinity-base/tdelirc/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/tdelirc/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/tdelirc/tdelirc-9999.ebuild b/gentoo/trinity-base/tdelirc/tdelirc-9999.ebuild
new file mode 100644
index 000000000..d3cca361f
--- /dev/null
+++ b/gentoo/trinity-base/tdelirc/tdelirc-9999.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdeutils"
+
+inherit trinity-meta
+
+DESCRIPTION="TDElirc - Trinity Frontend to lirc"
+KEYWORDS=""
+IUSE=""
diff --git a/gentoo/trinity-base/tdenetwork-doc/files/shared b/gentoo/trinity-base/tdenetwork-doc/files/shared
new file mode 120000
index 000000000..af62be31d
--- /dev/null
+++ b/gentoo/trinity-base/tdenetwork-doc/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files/ \ No newline at end of file
diff --git a/gentoo/trinity-base/tdenetwork-doc/metadata.xml b/gentoo/trinity-base/tdenetwork-doc/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/tdenetwork-doc/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/tdenetwork-doc/tdenetwork-doc-9999.ebuild b/gentoo/trinity-base/tdenetwork-doc/tdenetwork-doc-9999.ebuild
new file mode 100644
index 000000000..bb0e4a14e
--- /dev/null
+++ b/gentoo/trinity-base/tdenetwork-doc/tdenetwork-doc-9999.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdenetwork"
+
+inherit trinity-meta
+
+DESCRIPTION="Documentaion for kdegraphics-derived packages"
+KEYWORDS=
+IUSE=""
+RDEPEND="
+ >=trinity-base/khelpcenter-${PV}:${SLOT}"
+
+pkg_setup() {
+ # we should reduce MAKEOPTS -j parametr to no more than 4
+ local makeopts_j
+ makeopts_j="$(echo "$MAKEOPTS" | sed -n 's/\(^\|.*\s\)\(-j\s*[0-9]\+\)\(\s.*\|$\)/\2/p')"
+ if [ -n "$makeopts_j" -a "$makeopts_j" > 4 ]; then
+ export MAKEOPTS="${MAKEOPTS//"${makeopts_j}"/-j4}"
+
+ ewarn "This ebuild needs huge amoumt of memmory to compile in highly parallel"
+ ewarn "mode so it can chew it all. MAKEOPTS are reduced to \"$MAKEOPTS\"."
+ fi
+
+ trinity-meta_pkg_setup
+}
diff --git a/gentoo/trinity-base/tdenetwork-filesharing/metadata.xml b/gentoo/trinity-base/tdenetwork-filesharing/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/tdenetwork-filesharing/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/tdenetwork-filesharing/tdenetwork-filesharing-9999.ebuild b/gentoo/trinity-base/tdenetwork-filesharing/tdenetwork-filesharing-9999.ebuild
new file mode 100644
index 000000000..7a6651b74
--- /dev/null
+++ b/gentoo/trinity-base/tdenetwork-filesharing/tdenetwork-filesharing-9999.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdenetwork"
+
+inherit trinity-meta
+
+DESCRIPTION="kcontrol filesharing config module for NFS, SMB etc"
+KEYWORDS=
+IUSE=""
diff --git a/gentoo/trinity-base/tdenetwork-meta/metadata.xml b/gentoo/trinity-base/tdenetwork-meta/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/tdenetwork-meta/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/tdenetwork-meta/tdenetwork-meta-9999.ebuild b/gentoo/trinity-base/tdenetwork-meta/tdenetwork-meta-9999.ebuild
new file mode 100644
index 000000000..754097846
--- /dev/null
+++ b/gentoo/trinity-base/tdenetwork-meta/tdenetwork-meta-9999.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+
+inherit trinity-functions
+
+set-trinityver
+
+DESCRIPTION="tdenetwork metapackage - merge this to pull in all tdenetwork-derived packages"
+HOMEPAGE="http://www.trinitydesktop.org/"
+LICENSE="GPL-2 LGPL-2"
+
+SLOT="$TRINITY_VER"
+KEYWORDS=
+IUSE=""
+
+RDEPEND="
+ >=trinity-base/dcoprss-${PV}:${SLOT}
+ >=trinity-base/kdict-${PV}:${SLOT}
+ >=trinity-base/tdednssd-${PV}:${SLOT}
+ >=trinity-base/kget-${PV}:${SLOT}
+ >=trinity-base/knewsticker-${PV}:${SLOT}
+ >=trinity-base/kopete-${PV}:${SLOT}
+ >=trinity-base/kpf-${PV}:${SLOT}
+ >=trinity-base/kppp-${PV}:${SLOT}
+ >=trinity-base/krdc-${PV}:${SLOT}
+ >=trinity-base/krfb-${PV}:${SLOT}
+ >=trinity-base/ksirc-${PV}:${SLOT}
+ >=trinity-base/ktalkd-${PV}:${SLOT}
+ >=trinity-base/kwifimanager-${PV}:${SLOT}
+ >=trinity-base/librss-${PV}:${SLOT}
+ >=trinity-base/lisa-${PV}:${SLOT}
+ >=trinity-base/tdenetwork-doc-${PV}:${SLOT}
+ >=trinity-base/tdenetwork-filesharing-${PV}:${SLOT}
+ >=trinity-base/tdenetwork-tdefile-plugins-${PV}:${SLOT}"
diff --git a/gentoo/trinity-base/tdenetwork-tdefile-plugins/metadata.xml b/gentoo/trinity-base/tdenetwork-tdefile-plugins/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/tdenetwork-tdefile-plugins/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/tdenetwork-tdefile-plugins/tdenetwork-tdefile-plugins-9999.ebuild b/gentoo/trinity-base/tdenetwork-tdefile-plugins/tdenetwork-tdefile-plugins-9999.ebuild
new file mode 100644
index 000000000..d1ed1e2f9
--- /dev/null
+++ b/gentoo/trinity-base/tdenetwork-tdefile-plugins/tdenetwork-tdefile-plugins-9999.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdenetwork"
+
+inherit trinity-meta
+
+DESCRIPTION="kfile plugins from the kdenetwork provides a torrent file support."
+KEYWORDS=
+IUSE=""
diff --git a/gentoo/trinity-base/tdepasswd/files/shared b/gentoo/trinity-base/tdepasswd/files/shared
new file mode 120000
index 000000000..ffc286806
--- /dev/null
+++ b/gentoo/trinity-base/tdepasswd/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files \ No newline at end of file
diff --git a/gentoo/trinity-base/tdepasswd/metadata.xml b/gentoo/trinity-base/tdepasswd/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/tdepasswd/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/tdepasswd/tdepasswd-9999.ebuild b/gentoo/trinity-base/tdepasswd/tdepasswd-9999.ebuild
new file mode 100644
index 000000000..4155f6a83
--- /dev/null
+++ b/gentoo/trinity-base/tdepasswd/tdepasswd-9999.ebuild
@@ -0,0 +1,14 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity GUI for passwd"
+KEYWORDS=
+IUSE=""
+
+DEPEND=">=trinity-base/libkonq-${PV}:${SLOT}"
+RDEPEND="${DEPEND}"
diff --git a/gentoo/trinity-base/tdeprint/files/shared b/gentoo/trinity-base/tdeprint/files/shared
new file mode 120000
index 000000000..ffc286806
--- /dev/null
+++ b/gentoo/trinity-base/tdeprint/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files \ No newline at end of file
diff --git a/gentoo/trinity-base/tdeprint/metadata.xml b/gentoo/trinity-base/tdeprint/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/tdeprint/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/tdeprint/tdeprint-9999.ebuild b/gentoo/trinity-base/tdeprint/tdeprint-9999.ebuild
new file mode 100644
index 000000000..e127dcb77
--- /dev/null
+++ b/gentoo/trinity-base/tdeprint/tdeprint-9999.ebuild
@@ -0,0 +1,16 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity printer queue/device manager"
+KEYWORDS=
+IUSE="cups"
+
+DEPEND="cups? ( net-print/cups )"
+RDEPEND="${DEPEND}
+ app-text/enscript
+ app-text/psutils"
diff --git a/gentoo/trinity-base/tdescreensaver/metadata.xml b/gentoo/trinity-base/tdescreensaver/metadata.xml
new file mode 100644
index 000000000..ffa960a71
--- /dev/null
+++ b/gentoo/trinity-base/tdescreensaver/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+ <use>
+ <flag name="krootbacking"> Add support the desktop grabbing by kde-base/krootbacking.</flag>
+ </use>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/tdescreensaver/tdescreensaver-9999.ebuild b/gentoo/trinity-base/tdescreensaver/tdescreensaver-9999.ebuild
new file mode 100644
index 000000000..f16146bed
--- /dev/null
+++ b/gentoo/trinity-base/tdescreensaver/tdescreensaver-9999.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity screensaver framework"
+KEYWORDS=
+IUSE="opengl +krootbacking"
+# CHECKME: if this use needed
+DEPEND="x11-libs/libXt
+ opengl? ( virtual/opengl )
+ krootbacking? ( >=trinity-base/krootbacking-${PV}:${TRINITY_VER} )
+ !!trinity-base/kscreensaver:${TRINITY_VER}"
+RDEPEND="${DEPEND}"
+
+src_configure () {
+ if use opengl; then
+ ewarn "OpenGL is not supported by trinity build system yet."
+ ewarn "This use flag is here just for future/past capability"
+ fi
+
+ mycmakeargs=(
+ $(cmake-utils_use_with opengl OPENGL )
+ )
+
+ trinity-meta_src_configure
+}
diff --git a/gentoo/trinity-base/tdesu/files/shared b/gentoo/trinity-base/tdesu/files/shared
new file mode 120000
index 000000000..ffc286806
--- /dev/null
+++ b/gentoo/trinity-base/tdesu/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files \ No newline at end of file
diff --git a/gentoo/trinity-base/tdesu/metadata.xml b/gentoo/trinity-base/tdesu/metadata.xml
new file mode 100644
index 000000000..6863f5db6
--- /dev/null
+++ b/gentoo/trinity-base/tdesu/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+ <use>
+ <flag name="sudo"> Use <pkg>app-admin/sudo</pkg> as a default program to
+ obtain root privileges.</flag>
+ </use>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/tdesu/tdesu-9999.ebuild b/gentoo/trinity-base/tdesu/tdesu-9999.ebuild
new file mode 100644
index 000000000..9238d041e
--- /dev/null
+++ b/gentoo/trinity-base/tdesu/tdesu-9999.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity gui for su(1) or sudo"
+KEYWORDS=
+IUSE="sudo"
+
+DEPEND+=" sudo? ( app-admin/sudo )"
+RDEPEND+=" ${DEPEND}"
+
+src_configure () {
+ mycmakeargs=(
+ $(cmake-utils_use_with sudo SUDO_KDESU_BACKEND)
+ )
+
+ trinity-meta_src_configure
+}
+
+pkg_postinst () {
+ if use sudo; then
+ einfo "Remember sudo use flag sets only the defauld value"
+ einfo "It can be overriden on a user-level by adding:"
+ einfo " [super-user-command]"
+ einfo " super-user-command=su"
+ einfo "To the kdeglobal config file which is should be usually"
+ einfo "located in the ~/.trinity/share/config/ directory."
+ fi
+}
diff --git a/gentoo/trinity-base/tdetoys-doc/files/shared b/gentoo/trinity-base/tdetoys-doc/files/shared
new file mode 120000
index 000000000..af62be31d
--- /dev/null
+++ b/gentoo/trinity-base/tdetoys-doc/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files/ \ No newline at end of file
diff --git a/gentoo/trinity-base/tdetoys-doc/metadata.xml b/gentoo/trinity-base/tdetoys-doc/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/tdetoys-doc/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/tdetoys-doc/tdetoys-doc-9999.ebuild b/gentoo/trinity-base/tdetoys-doc/tdetoys-doc-9999.ebuild
new file mode 100644
index 000000000..e7497b8fd
--- /dev/null
+++ b/gentoo/trinity-base/tdetoys-doc/tdetoys-doc-9999.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdetoys"
+
+inherit trinity-meta
+
+DESCRIPTION="Documentaion for tdetoys-derived packages"
+KEYWORDS=
+IUSE=""
+RDEPEND="
+ >=trinity-base/khelpcenter-${PV}:${SLOT}"
+
+pkg_setup() {
+ # we should reduce MAKEOPTS -j parametr to no more than 4
+ local makeopts_j
+ makeopts_j="$(echo "$MAKEOPTS" | sed -n 's/\(^\|.*\s\)\(-j\s*[0-9]\+\)\(\s.*\|$\)/\2/p')"
+ if [ -n "$makeopts_j" -a "$makeopts_j" > 4 ]; then
+ export MAKEOPTS="${MAKEOPTS//"${makeopts_j}"/-j4}"
+
+ ewarn "This ebuild needs huge amoumt of memmory to compile in highly parallel"
+ ewarn "mode so it can chew it all. MAKEOPTS are reduced to \"$MAKEOPTS\"."
+ fi
+
+ trinity-meta_pkg_setup
+}
diff --git a/gentoo/trinity-base/tdetoys-meta/metadata.xml b/gentoo/trinity-base/tdetoys-meta/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/tdetoys-meta/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/tdetoys-meta/tdetoys-meta-9999.ebuild b/gentoo/trinity-base/tdetoys-meta/tdetoys-meta-9999.ebuild
new file mode 100644
index 000000000..3dc2abc9e
--- /dev/null
+++ b/gentoo/trinity-base/tdetoys-meta/tdetoys-meta-9999.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+
+inherit trinity-functions
+
+set-trinityver
+
+DESCRIPTION="kdetoys metapackage - merge this to pull in all kdetoys-derived packages"
+HOMEPAGE="http://www.trinitydesktop.org/"
+LICENSE="GPL-2 LGPL-2"
+
+SLOT="$TRINITY_VER"
+IUSE=""
+KEYWORDS=
+
+RDEPEND="
+ >=trinity-base/amor-${PV}:${SLOT}
+ >=trinity-base/eyesapplet-${PV}:${SLOT}
+ >=trinity-base/fifteenapplet-${PV}:${SLOT}
+ >=trinity-base/tdetoys-doc-${PV}:${SLOT}
+ >=trinity-base/kmoon-${PV}:${SLOT}
+ >=trinity-base/kodo-${PV}:${SLOT}
+ >=trinity-base/kteatime-${PV}:${SLOT}
+ >=trinity-base/ktux-${PV}:${SLOT}
+ >=trinity-base/kweather-${PV}:${SLOT}
+ >=trinity-base/kworldclock-${PV}:${SLOT}"
diff --git a/gentoo/trinity-base/tdeutils-doc/metadata.xml b/gentoo/trinity-base/tdeutils-doc/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/tdeutils-doc/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/tdeutils-doc/tdeutils-doc-9999.ebuild b/gentoo/trinity-base/tdeutils-doc/tdeutils-doc-9999.ebuild
new file mode 100644
index 000000000..f4b8ef5ef
--- /dev/null
+++ b/gentoo/trinity-base/tdeutils-doc/tdeutils-doc-9999.ebuild
@@ -0,0 +1,13 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdeutils"
+
+inherit trinity-meta
+
+DESCRIPTION="Documentaion for kdeutils-derived packages"
+KEYWORDS=""
+IUSE=""
+RDEPEND="
+ >=trinity-base/khelpcenter-${PV}:${SLOT}"
diff --git a/gentoo/trinity-base/tdeutils-meta/metadata.xml b/gentoo/trinity-base/tdeutils-meta/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/tdeutils-meta/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/tdeutils-meta/tdeutils-meta-9999.ebuild b/gentoo/trinity-base/tdeutils-meta/tdeutils-meta-9999.ebuild
new file mode 100644
index 000000000..835bc97c1
--- /dev/null
+++ b/gentoo/trinity-base/tdeutils-meta/tdeutils-meta-9999.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+
+inherit trinity-functions
+
+set-trinityver
+
+DESCRIPTION="tdeutils metapackage - merge this to pull in all tdeutils-derived packages"
+HOMEPAGE="http://www.trinitydesktop.org/"
+LICENSE="GPL-2 LGPL-2"
+
+SLOT="$TRINITY_VER"
+IUSE=""
+KEYWORDS=""
+
+RDEPEND="
+ >=trinity-base/ark-${PV}:${SLOT}
+ >=trinity-base/tdeutils-doc-${PV}:${SLOT}
+ >=trinity-base/kcalc-${PV}:${SLOT}
+ >=trinity-base/kcharselect-${PV}:${SLOT}
+ >=trinity-base/tdelirc-${PV}:${SLOT}
+ >=trinity-base/kdf-${PV}:${SLOT}
+ >=trinity-base/kedit-${PV}:${SLOT}
+ >=trinity-base/kfloppy-${PV}:${SLOT}
+ >=trinity-base/kgpg-${PV}:${SLOT}
+ >=trinity-base/khexedit-${PV}:${SLOT}
+ >=trinity-base/kjots-${PV}:${SLOT}
+ >=trinity-base/klaptopdaemon-${PV}:${SLOT}
+ >=trinity-base/kmilo-${PV}:${SLOT}
+ >=trinity-base/kregexpeditor-${PV}:${SLOT}
+ >=trinity-base/ksim-${PV}:${SLOT}
+ >=trinity-base/ktimer-${PV}:${SLOT}
+ >=trinity-base/tdewallet-${PV}:${SLOT}
+ >=trinity-base/superkaramba-${PV}:${SLOT}"
diff --git a/gentoo/trinity-base/tdewallet/metadata.xml b/gentoo/trinity-base/tdewallet/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/tdewallet/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/tdewallet/tdewallet-9999.ebuild b/gentoo/trinity-base/tdewallet/tdewallet-9999.ebuild
new file mode 100644
index 000000000..fe372f0c0
--- /dev/null
+++ b/gentoo/trinity-base/tdewallet/tdewallet-9999.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdeutils"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity Wallet Management Tool"
+KEYWORDS=""
+IUSE=""
diff --git a/gentoo/trinity-base/tdm/files/shared b/gentoo/trinity-base/tdm/files/shared
new file mode 120000
index 000000000..ffc286806
--- /dev/null
+++ b/gentoo/trinity-base/tdm/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files \ No newline at end of file
diff --git a/gentoo/trinity-base/tdm/files/tdm-9999-xsession.script b/gentoo/trinity-base/tdm/files/tdm-9999-xsession.script
new file mode 100755
index 000000000..a131c29c7
--- /dev/null
+++ b/gentoo/trinity-base/tdm/files/tdm-9999-xsession.script
@@ -0,0 +1,66 @@
+#! /bin/sh
+# Xsession - run as user
+
+session=$1
+
+# Note that the respective logout scripts are not sourced.
+case $SHELL in
+ */bash)
+ [ -z "$BASH" ] && exec $SHELL $0 "$@"
+ set +o posix
+ [ -f /etc/profile ] && . /etc/profile
+ if [ -f $HOME/.bash_profile ]; then
+ . $HOME/.bash_profile
+ elif [ -f $HOME/.bash_login ]; then
+ . $HOME/.bash_login
+ elif [ -f $HOME/.profile ]; then
+ . $HOME/.profile
+ fi
+ ;;
+ */zsh)
+ [ -z "$ZSH_NAME" ] && exec $SHELL $0 "$@"
+ emulate -R zsh
+ [ -d /etc/zsh ] && zdir=/etc/zsh || zdir=/etc
+ zhome=${ZDOTDIR:-$HOME}
+ # zshenv is always sourced automatically.
+ [ -f $zdir/zprofile ] && . $zdir/zprofile
+ [ -f $zhome/.zprofile ] && . $zhome/.zprofile
+ [ -f $zdir/zlogin ] && . $zdir/zlogin
+ [ -f $zhome/.zlogin ] && . $zhome/.zlogin
+ setopt shwordsplit noextendedglob
+ ;;
+ */csh|*/tcsh)
+ # [t]cshrc is always sourced automatically.
+ # Note that sourcing csh.login after .cshrc is non-standard.
+ xsess_tmp=`mktemp /tmp/xsess-env-XXXXXX`
+ $SHELL -c "if (-f /etc/csh.login) source /etc/csh.login; if (-f ~/.login) source ~/.login; /bin/sh -c export -p >! $xsess_tmp"
+ . $xsess_tmp
+ rm -f $xsess_tmp
+ ;;
+ *) # Plain sh, ksh, and anything we don't know.
+ [ -f /etc/profile ] && . /etc/profile
+ [ -f $HOME/.profile ] && . $HOME/.profile
+ ;;
+esac
+
+[ -f /etc/xprofile ] && . /etc/xprofile
+[ -f $HOME/.xprofile ] && . $HOME/.xprofile
+
+case $session in
+ "")
+ exec xmessage -center -buttons OK:0 -default OK "Sorry, $DESKTOP_SESSION is no valid session."
+ ;;
+ failsafe)
+ exec xterm -geometry 80x24-0-0
+ ;;
+ custom)
+ exec /bin/sh $HOME/.xsession
+ ;;
+ default)
+ exec @TRINITY_INSTALL_PATH@/bin/starttde
+ ;;
+ *)
+ eval exec "$session"
+ ;;
+esac
+exec xmessage -center -buttons OK:0 -default OK "Sorry, cannot execute $session. Check $DESKTOP_SESSION.desktop."
diff --git a/gentoo/trinity-base/tdm/metadata.xml b/gentoo/trinity-base/tdm/metadata.xml
new file mode 100644
index 000000000..2a40b2145
--- /dev/null
+++ b/gentoo/trinity-base/tdm/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+ <use>
+ <flag name="xdmcp">Support for <pkg>x11-libs/libXdmcp</pkg></flag>
+ <flag name="sak">Adds SAK (Secure Attention Key) feature</flag>
+ </use>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/tdm/tdm-9999.ebuild b/gentoo/trinity-base/tdm/tdm-9999.ebuild
new file mode 100644
index 000000000..5d4d6160b
--- /dev/null
+++ b/gentoo/trinity-base/tdm/tdm-9999.ebuild
@@ -0,0 +1,104 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="Trinity login manager, similar to xdm and gdm"
+KEYWORDS=
+IUSE="pam xdmcp xcomposite sak +xrandr"
+
+DEPEND="pam? ( trinity-base/tdebase-pam )
+ xdmcp? ( x11-libs/libXdmcp )
+ xcomposite? ( x11-libs/libXcomposite )
+ xrandr? ( x11-libs/libXrandr )
+ >=trinity-base/tdelibs-${PV}:${SLOT}[xrandr?]
+ sys-apps/dbus
+ x11-libs/libXtst
+ >=trinity-base/kcontrol-${PV}:${SLOT}
+ dev-libs/dbus-tqt"
+
+RDEPEND="${DEPEND}
+ >=trinity-base/tdepasswd-${PV}:${SLOT}
+ x11-apps/xinit
+ x11-apps/xmessage"
+
+pkg_setup() {
+ trinity-meta_pkg_setup;
+ use sak && TRINITY_SUBMODULE+=" tsak"
+}
+
+src_configure() {
+ mycmakeargs=(
+ -DWITH_XTEST=ON
+ -DWITH_LIBART=ON
+ -DWITH_SHADOW=ON
+ $(cmake-utils_use_with xcomposite XCOMPOSITE )
+ $(cmake-utils_use_with xdmcp XDMCP )
+ $(cmake-utils_use_with xrandr XRANDR )
+ $(cmake-utils_use_with pam PAM )
+ )
+
+ trinity-meta_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ # Customize the kdmrc configuration
+ sed -i -e "s:#SessionsDirs=:SessionsDirs=/usr/share/xsessions\n#SessionsDirs=:" \
+ "${D}/${TDEDIR}/share/config/tdm/tdmrc" || die "sed tdmrc failed"
+
+ # install XSession upstream script seems to be debian-cpecific
+ cp "${FILESDIR}/${P}-xsession.script" "${D}/${TDEDIR}/share/config/tdm/Xsession"
+ sed -i -e "s!@TRINITY_INSTALL_PATH@!${TDEDIR}!" "${D}/${TDEDIR}/share/config/tdm/Xsession" \
+ || die "sed tdmrc failed"
+}
+
+pkg_postinst() {
+ # set the default kdm face icon if it's not already set by the system admin
+ # because this is user-overrideable in that way, it's not in src_install
+ if [ ! -e "${ROOT}${TDEDIR}/share/apps/tdm/faces/.default.face.icon" ]; then
+ mkdir -p "${ROOT}${TDEDIR}/share/apps/tdm/faces"
+ cp "${ROOT}${TDEDIR}/share/apps/tdm/pics/users/default1.png" \
+ "${ROOT}${TDEDIR}/share/apps/tdm/faces/.default.face.icon"
+ fi
+ if [ ! -e "${ROOT}${TDEDIR}/share/apps/tdm/faces/root.face.icon" ]; then
+ mkdir -p "${ROOT}${TDEDIR}/share/apps/tdm/faces"
+ cp "${ROOT}${TDEDIR}/share/apps/tdm/pics/users/root1.png" \
+ "${ROOT}${TDEDIR}/share/apps/tdm/faces/root.face.icon"
+ fi
+
+ if use sak; then
+ sak_ok=yes
+ if ! linux_config_exists; then
+ ewarn "Can't check the linux kernel configuration."
+ ewarn "You might have some incompatible options enabled."
+ sak_ok=no
+ else
+ if ! linux_chkconfig_present INPUT_UINPUT; then
+ eerror "You build tdm with sak feature enabled. "
+ eerror "It requires the INPUT_UINPUT support enabled."
+ eerror "Please enable it:"
+ eerror " CONFIG_INPUT_UINPUT=y"
+ eerror "in /usr/src/linux/.config or"
+ eerror " Device Drivers --->"
+ eerror " Input device support --->"
+ eerror " [*] Miscellaneous devices --->"
+ eerror " <*> User level driver support"
+ sak_ok=no
+ fi
+ fi
+ if [[ "$sak_ok" != yes ]]; then
+ sed -i -e 's:#\?\s*UseSAK=\(true\|false\)\?:UseSak=false:' \
+ "${D}${TDEDIR}/share/config/tdm/tdmrc" || die "sed tdmrc failed"
+ ewarn "SAK feature is disabled. You can enable it yourself by setting UseSAK=true "
+ ewarn "in ${TDEDIR}/share/config/tdm/tdmrc "
+ else
+ ewarn "SAK feature is enabled. You can disable it yourself by setting UseSAK=false"
+ ewarn "in ${TDEDIR}/share/config/tdm/tdmrc "
+ fi
+ fi
+}
diff --git a/gentoo/trinity-base/tqt3integration/Manifest b/gentoo/trinity-base/tqt3integration/Manifest
new file mode 100644
index 000000000..381340c4b
--- /dev/null
+++ b/gentoo/trinity-base/tqt3integration/Manifest
@@ -0,0 +1,2 @@
+DIST kdebase-3.5.13.1.tar.gz 29403228 SHA256 ddd4bd4b508ad027b9d1af2701c6ba64bfc9f8f1d32099e6dd5e7866714f759e SHA512 e1aac19c941a5f2b43a57928fdb43e5ebd646f49c60911d9d317550df96642870792c4e77ecd06e123244e2425ccd4bcb00f0a21011ba7e651d7fcf4553e79cf WHIRLPOOL 931debbf6a65c280221025dcbc02cbb3387b66eb72eddd28a510ee8f97075cd2cc96535dde25d0a32280c399e4a868e9c027772f5d28e7e79b7c1a9080c58034
+DIST kdebase-trinity-3.5.13.2.tar.xz 25890636 SHA256 b9d552226daff64437dfb9699669b95dd7ebc2ca7c43755ba71c10cc6c9ed789 SHA512 df545d44c7d4550d1d77ff6504572b622853c2b8d80062b1aee1a5bdca19f0e708cde35cff54cf2d5098f06a41bde0c89522a3958dea9bb18205dea87c11b797 WHIRLPOOL 79144273bc7985c59a593a3394b12a2053532d2c4c890ce96adad21f6de0413baf3c6270d6d06173ec4546b20d401aa0cc81603d01b8ee41dbdefc825b39b2b1
diff --git a/gentoo/trinity-base/tqt3integration/files/shared b/gentoo/trinity-base/tqt3integration/files/shared
new file mode 120000
index 000000000..ffc286806
--- /dev/null
+++ b/gentoo/trinity-base/tqt3integration/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files \ No newline at end of file
diff --git a/gentoo/trinity-base/tqt3integration/metadata.xml b/gentoo/trinity-base/tqt3integration/metadata.xml
new file mode 100644
index 000000000..6e9f5e4a1
--- /dev/null
+++ b/gentoo/trinity-base/tqt3integration/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/tqt3integration/tqt3integration-3.5.13.1.ebuild b/gentoo/trinity-base/tqt3integration/tqt3integration-3.5.13.1.ebuild
new file mode 100644
index 000000000..aba240d8a
--- /dev/null
+++ b/gentoo/trinity-base/tqt3integration/tqt3integration-3.5.13.1.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="Makes Qt3-only apps use several KDE dialogs."
+KEYWORDS="x86 amd64"
+IUSE=""
diff --git a/gentoo/trinity-base/tqt3integration/tqt3integration-3.5.13.2.ebuild b/gentoo/trinity-base/tqt3integration/tqt3integration-3.5.13.2.ebuild
new file mode 100644
index 000000000..b656e4d70
--- /dev/null
+++ b/gentoo/trinity-base/tqt3integration/tqt3integration-3.5.13.2.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="kdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="Makes Qt3-only apps use several KDE dialogs."
+KEYWORDS="~amd64 ~x86"
+IUSE=""
diff --git a/gentoo/trinity-base/tqt3integration/tqt3integration-9999.ebuild b/gentoo/trinity-base/tqt3integration/tqt3integration-9999.ebuild
new file mode 100644
index 000000000..db65aecb5
--- /dev/null
+++ b/gentoo/trinity-base/tqt3integration/tqt3integration-9999.ebuild
@@ -0,0 +1,11 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdebase"
+
+inherit trinity-meta
+
+DESCRIPTION="Makes Qt3-only apps use several KDE dialogs."
+KEYWORDS=
+IUSE=""
diff --git a/gentoo/trinity-base/twin/files/shared b/gentoo/trinity-base/twin/files/shared
new file mode 120000
index 000000000..ffc286806
--- /dev/null
+++ b/gentoo/trinity-base/twin/files/shared
@@ -0,0 +1 @@
+../../../eclass/trinity-shared-files \ No newline at end of file
diff --git a/gentoo/trinity-base/twin/metadata.xml b/gentoo/trinity-base/twin/metadata.xml
new file mode 100644
index 000000000..c6cc89cb0
--- /dev/null
+++ b/gentoo/trinity-base/twin/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+ <email>fatzer2@gmail.com</email>
+ <name>Alexander Golubev</name>
+</maintainer>
+<upstream>
+ <bugs-to>https://bugs.trinitydesktop.org/buglist.cgi?quicksearch=ALL</bugs-to>
+</upstream>
+<use>
+ <flag name="libconfig">Use <pkg>dev-libs/libconfig</pkg> to handle tde-compton's dependencies</flag>
+</use>
+</pkgmetadata>
diff --git a/gentoo/trinity-base/twin/twin-9999.ebuild b/gentoo/trinity-base/twin/twin-9999.ebuild
new file mode 100644
index 000000000..927a0e5ea
--- /dev/null
+++ b/gentoo/trinity-base/twin/twin-9999.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+EAPI="5"
+TRINITY_MODULE_NAME="tdebase"
+
+inherit trinity-meta eutils
+
+DESCRIPTION="Trinity window manager"
+KEYWORDS=
+IUSE="xcomposite xrandr xinerama +libconfig +pcre opengl"
+
+DEPEND="x11-libs/libXext
+ x11-libs/libXfixes
+ x11-libs/libXrender
+ xcomposite? ( x11-libs/libXcomposite )
+ xinerama? ( x11-proto/xineramaproto )
+ xrandr? ( x11-libs/libXrandr )
+ libconfig? ( dev-libs/libconfig )
+ opengl? ( virtual/opengl )
+ pcre? ( dev-libs/libpcre[jit] )"
+RDEPEND="${DEPEND}"
+
+src_configure() {
+ mycmakeargs=(
+ $(cmake-utils_use_with xcomposite XCOMPOSITE)
+ $(cmake-utils_use_with xcomposite XFIXES)
+ $(cmake-utils_use_with xcomposite XRENDER)
+ $(cmake-utils_use_with xrandr XRANDR)
+ $(cmake-utils_use_with libconfig LIBCONFIG)
+ $(cmake-utils_use_with pcre PCRE)
+ $(cmake-utils_use_with xinerama XINERAMA)
+ )
+
+ trinity-meta_src_configure
+}
+
+pkg_postinst() {
+ if ! use xcomposite; then
+ for flag in xrandr xinerama libconfig pcre opengl; do
+ use $flag && \
+ ewarn "USE=\"$flag\" is passed, but it doesn't change anything due to" && \
+ ewarn "$flag support in ${P} take effect only if composite is enabled."
+ done
+
+ fi
+}