summaryrefslogtreecommitdiff
path: root/dev-util
diff options
context:
space:
mode:
Diffstat (limited to 'dev-util')
-rw-r--r--dev-util/App-SVN-Bisect/App-SVN-Bisect-1.1-r1.ebuild28
-rw-r--r--dev-util/App-SVN-Bisect/Manifest5
-rw-r--r--dev-util/App-SVN-Bisect/metadata.xml11
-rw-r--r--dev-util/Orange/Manifest5
-rw-r--r--dev-util/Orange/Orange-3.4.5-r2.ebuild48
-rw-r--r--dev-util/Orange/metadata.xml7
-rw-r--r--dev-util/abi-compliance-checker/Manifest8
-rw-r--r--dev-util/abi-compliance-checker/abi-compliance-checker-2.1.ebuild28
-rw-r--r--dev-util/abi-compliance-checker/abi-compliance-checker-2.2.ebuild28
-rw-r--r--dev-util/abi-compliance-checker/abi-compliance-checker-9999.ebuild39
-rw-r--r--dev-util/abi-compliance-checker/metadata.xml15
-rw-r--r--dev-util/abi-dumper/Manifest8
-rw-r--r--dev-util/abi-dumper/abi-dumper-0.99.15.ebuild27
-rw-r--r--dev-util/abi-dumper/abi-dumper-0.99.19.ebuild27
-rw-r--r--dev-util/abi-dumper/abi-dumper-1.1.ebuild27
-rw-r--r--dev-util/abi-dumper/metadata.xml15
-rw-r--r--dev-util/abootimg/Manifest3
-rw-r--r--dev-util/abootimg/abootimg-20150323.ebuild23
-rw-r--r--dev-util/abootimg/metadata.xml8
-rw-r--r--dev-util/ald/Manifest5
-rw-r--r--dev-util/ald/ald-0.1.7-r2.ebuild31
-rw-r--r--dev-util/ald/metadata.xml15
-rw-r--r--dev-util/alleyoop/Manifest5
-rw-r--r--dev-util/alleyoop/alleyoop-0.9.8.ebuild29
-rw-r--r--dev-util/alleyoop/metadata.xml8
-rw-r--r--dev-util/amtterm/Manifest9
-rw-r--r--dev-util/amtterm/amtterm-1.3-r1.ebuild46
-rw-r--r--dev-util/amtterm/amtterm-1.4.ebuild46
-rw-r--r--dev-util/amtterm/amtterm-1.6.ebuild46
-rw-r--r--dev-util/amtterm/metadata.xml8
-rw-r--r--dev-util/android-ndk/Manifest42
-rw-r--r--dev-util/android-ndk/android-ndk-10.ebuild69
-rw-r--r--dev-util/android-ndk/android-ndk-10b.ebuild69
-rw-r--r--dev-util/android-ndk/android-ndk-10d.ebuild67
-rw-r--r--dev-util/android-ndk/android-ndk-10e.ebuild82
-rw-r--r--dev-util/android-ndk/android-ndk-11c-r1.ebuild79
-rw-r--r--dev-util/android-ndk/android-ndk-11c.ebuild79
-rw-r--r--dev-util/android-ndk/android-ndk-13b.ebuild79
-rw-r--r--dev-util/android-ndk/android-ndk-14b.ebuild74
-rw-r--r--dev-util/android-ndk/android-ndk-9.ebuild71
-rw-r--r--dev-util/android-ndk/android-ndk-9b.ebuild71
-rw-r--r--dev-util/android-ndk/android-ndk-9c.ebuild68
-rw-r--r--dev-util/android-ndk/android-ndk-9d.ebuild68
-rw-r--r--dev-util/android-ndk/metadata.xml13
-rw-r--r--dev-util/android-sdk-update-manager/Manifest32
-rw-r--r--dev-util/android-sdk-update-manager/android-sdk-update-manager-21.1.ebuild99
-rw-r--r--dev-util/android-sdk-update-manager/android-sdk-update-manager-21.ebuild99
-rw-r--r--dev-util/android-sdk-update-manager/android-sdk-update-manager-22.0.1-r1.ebuild99
-rw-r--r--dev-util/android-sdk-update-manager/android-sdk-update-manager-22.0.1.ebuild99
-rw-r--r--dev-util/android-sdk-update-manager/android-sdk-update-manager-22.0.4.ebuild99
-rw-r--r--dev-util/android-sdk-update-manager/android-sdk-update-manager-22.0.5-r1.ebuild100
-rw-r--r--dev-util/android-sdk-update-manager/android-sdk-update-manager-22.0.5.ebuild99
-rw-r--r--dev-util/android-sdk-update-manager/android-sdk-update-manager-22.2.1.ebuild100
-rw-r--r--dev-util/android-sdk-update-manager/android-sdk-update-manager-22.3.ebuild102
-rw-r--r--dev-util/android-sdk-update-manager/android-sdk-update-manager-22.6.1.ebuild102
-rw-r--r--dev-util/android-sdk-update-manager/android-sdk-update-manager-22.6.ebuild102
-rw-r--r--dev-util/android-sdk-update-manager/android-sdk-update-manager-22.ebuild99
-rw-r--r--dev-util/android-sdk-update-manager/android-sdk-update-manager-23-r1.ebuild102
-rw-r--r--dev-util/android-sdk-update-manager/android-sdk-update-manager-23.ebuild102
-rw-r--r--dev-util/android-sdk-update-manager/android-sdk-update-manager-24.4.1.ebuild102
-rw-r--r--dev-util/android-sdk-update-manager/files/80-android.rules4
-rw-r--r--dev-util/android-sdk-update-manager/files/android-sdk-update-manager.desktop10
-rw-r--r--dev-util/android-sdk-update-manager/metadata.xml7
-rw-r--r--dev-util/android-studio/Manifest7
-rw-r--r--dev-util/android-studio/android-studio-2.3.2.0.162.3934792.ebuild99
-rw-r--r--dev-util/android-studio/android-studio-2.3.3.0.162.4069837.ebuild99
-rw-r--r--dev-util/android-studio/metadata.xml7
-rw-r--r--dev-util/android-tools/Manifest15
-rw-r--r--dev-util/android-tools/android-tools-5.1.1_p13.ebuild65
-rw-r--r--dev-util/android-tools/android-tools-6.0.1_p79.ebuild87
-rw-r--r--dev-util/android-tools/metadata.xml15
-rw-r--r--dev-util/anjuta/Manifest5
-rw-r--r--dev-util/anjuta/anjuta-3.22.0.ebuild135
-rw-r--r--dev-util/anjuta/metadata.xml14
-rw-r--r--dev-util/antlrworks/Manifest6
-rw-r--r--dev-util/antlrworks/antlrworks-1.2.3.ebuild58
-rw-r--r--dev-util/antlrworks/files/antlr-3.1.3.patch24
-rw-r--r--dev-util/antlrworks/metadata.xml22
-rw-r--r--dev-util/apitrace/Manifest27
-rw-r--r--dev-util/apitrace/apitrace-4.0.ebuild95
-rw-r--r--dev-util/apitrace/apitrace-5.0.ebuild91
-rw-r--r--dev-util/apitrace/apitrace-6.0.ebuild91
-rw-r--r--dev-util/apitrace/apitrace-6.1.ebuild91
-rw-r--r--dev-util/apitrace/apitrace-7.1.ebuild99
-rw-r--r--dev-util/apitrace/files/apitrace-4.0-disable-multiarch.patch32
-rw-r--r--dev-util/apitrace/files/apitrace-4.0-glext-texture-storage.patch73
-rw-r--r--dev-util/apitrace/files/apitrace-4.0-glxcopysubbuffermesa.patch80
-rw-r--r--dev-util/apitrace/files/apitrace-4.0-glxtrace-only.patch49
-rw-r--r--dev-util/apitrace/files/apitrace-4.0-memcpy.patch13
-rw-r--r--dev-util/apitrace/files/apitrace-4.0-multilib.patch59
-rw-r--r--dev-util/apitrace/files/apitrace-4.0-system-libs.patch72
-rw-r--r--dev-util/apitrace/files/apitrace-5.0-disable-multiarch.patch34
-rw-r--r--dev-util/apitrace/files/apitrace-5.0-glxtrace-only.patch53
-rw-r--r--dev-util/apitrace/files/apitrace-6.0-disable-multiarch.patch35
-rw-r--r--dev-util/apitrace/files/apitrace-7.1-disable-multiarch.patch35
-rw-r--r--dev-util/apitrace/files/apitrace-7.1-docs-install.patch23
-rw-r--r--dev-util/apitrace/files/apitrace-7.1-glxtrace-only.patch32
-rw-r--r--dev-util/apitrace/files/apitrace-7.1-snappy-license.patch11
-rw-r--r--dev-util/apitrace/metadata.xml26
-rw-r--r--dev-util/appdata-tools/Manifest6
-rw-r--r--dev-util/appdata-tools/appdata-tools-0.1.7.ebuild39
-rw-r--r--dev-util/appdata-tools/appdata-tools-0.1.8-r1.ebuild16
-rw-r--r--dev-util/appdata-tools/metadata.xml15
-rw-r--r--dev-util/appinventor/Manifest5
-rw-r--r--dev-util/appinventor/appinventor-1.1.ebuild32
-rw-r--r--dev-util/appinventor/metadata.xml18
-rw-r--r--dev-util/archdiff/Manifest5
-rw-r--r--dev-util/archdiff/archdiff-1.1.6.ebuild26
-rw-r--r--dev-util/archdiff/metadata.xml8
-rw-r--r--dev-util/argouml/Manifest8
-rw-r--r--dev-util/argouml/argouml-0.34.ebuild58
-rw-r--r--dev-util/argouml/metadata.xml8
-rw-r--r--dev-util/artifactory-bin/Manifest17
-rw-r--r--dev-util/artifactory-bin/artifactory-bin-4.16.0-r1.ebuild110
-rw-r--r--dev-util/artifactory-bin/artifactory-bin-4.16.1.ebuild110
-rw-r--r--dev-util/artifactory-bin/artifactory-bin-5.3.2.ebuild110
-rw-r--r--dev-util/artifactory-bin/artifactory-bin-5.4.4.ebuild110
-rw-r--r--dev-util/artifactory-bin/artifactory-bin-5.4.6.ebuild110
-rw-r--r--dev-util/artifactory-bin/files/artifactory.xml4
-rw-r--r--dev-util/artifactory-bin/files/confd5
-rw-r--r--dev-util/artifactory-bin/files/initd-r2165
-rw-r--r--dev-util/artifactory-bin/files/initd-r3165
-rw-r--r--dev-util/artifactory-bin/files/server.xml17
-rw-r--r--dev-util/artifactory-bin/metadata.xml11
-rw-r--r--dev-util/aruba/Manifest12
-rw-r--r--dev-util/aruba/aruba-0.5.4-r1.ebuild40
-rw-r--r--dev-util/aruba/aruba-0.6.2-r1.ebuild40
-rw-r--r--dev-util/aruba/aruba-0.6.2.ebuild40
-rw-r--r--dev-util/aruba/aruba-0.7.4.ebuild51
-rw-r--r--dev-util/aruba/aruba-0.8.1.ebuild59
-rw-r--r--dev-util/aruba/metadata.xml10
-rw-r--r--dev-util/astyle/Manifest15
-rw-r--r--dev-util/astyle/astyle-2.04-r1.ebuild66
-rw-r--r--dev-util/astyle/astyle-2.05.1.ebuild64
-rw-r--r--dev-util/astyle/astyle-2.06.ebuild64
-rw-r--r--dev-util/astyle/astyle-3.0.1.ebuild85
-rw-r--r--dev-util/astyle/astyle-3.0.ebuild85
-rw-r--r--dev-util/astyle/files/astyle-2.02.1-build_system.patch54
-rw-r--r--dev-util/astyle/files/astyle-2.05.1-build_system.patch56
-rw-r--r--dev-util/astyle/metadata.xml22
-rw-r--r--dev-util/atomic-install/Manifest6
-rw-r--r--dev-util/atomic-install/atomic-install-0.1.1.ebuild28
-rw-r--r--dev-util/atomic-install/atomic-install-9999.ebuild42
-rw-r--r--dev-util/atomic-install/metadata.xml16
-rw-r--r--dev-util/autodia/Manifest6
-rw-r--r--dev-util/autodia/autodia-2.140.0-r1.ebuild36
-rw-r--r--dev-util/autodia/metadata.xml5
-rw-r--r--dev-util/automoc/Manifest6
-rw-r--r--dev-util/automoc/automoc-0.9.88-r1.ebuild34
-rw-r--r--dev-util/automoc/files/automoc-0.9.88-objc++.patch48
-rw-r--r--dev-util/automoc/metadata.xml8
-rw-r--r--dev-util/autoproject/Manifest8
-rw-r--r--dev-util/autoproject/autoproject-0.20.ebuild30
-rw-r--r--dev-util/autoproject/autoproject-0.20_p5.ebuild33
-rw-r--r--dev-util/autoproject/metadata.xml8
-rw-r--r--dev-util/babeltrace/Manifest7
-rw-r--r--dev-util/babeltrace/babeltrace-1.2.3.ebuild32
-rw-r--r--dev-util/babeltrace/babeltrace-1.2.4.ebuild32
-rw-r--r--dev-util/babeltrace/metadata.xml11
-rw-r--r--dev-util/bakefile/Manifest5
-rw-r--r--dev-util/bakefile/bakefile-0.2.9-r1.ebuild33
-rw-r--r--dev-util/bakefile/metadata.xml11
-rw-r--r--dev-util/bam/Manifest7
-rw-r--r--dev-util/bam/bam-0.4.0-r1.ebuild48
-rw-r--r--dev-util/bam/files/0.4.0/Makefile22
-rw-r--r--dev-util/bam/files/0.4.0/bam-0.4.0-test.py.patch11
-rw-r--r--dev-util/bam/metadata.xml8
-rw-r--r--dev-util/bats/Manifest6
-rw-r--r--dev-util/bats/bats-0.4.0.ebuild23
-rw-r--r--dev-util/bats/bats-0.4.0_p20170219.ebuild29
-rw-r--r--dev-util/bats/metadata.xml27
-rw-r--r--dev-util/bazel/Manifest6
-rw-r--r--dev-util/bazel/bazel-0.4.5-r1.ebuild70
-rw-r--r--dev-util/bazel/bazel-0.5.2.ebuild77
-rw-r--r--dev-util/bazel/metadata.xml23
-rw-r--r--dev-util/bbe/Manifest5
-rw-r--r--dev-util/bbe/bbe-0.2.2.ebuild25
-rw-r--r--dev-util/bbe/metadata.xml11
-rw-r--r--dev-util/bcc/Manifest9
-rw-r--r--dev-util/bcc/bcc-0.2.0-r1.ebuild51
-rw-r--r--dev-util/bcc/bcc-0.3.0.ebuild56
-rw-r--r--dev-util/bcc/bcc-0.3.0_p20170913.ebuild51
-rw-r--r--dev-util/bcc/metadata.xml10
-rw-r--r--dev-util/bcpp/Manifest5
-rw-r--r--dev-util/bcpp/bcpp-20150811-r1.ebuild35
-rw-r--r--dev-util/bcpp/metadata.xml5
-rw-r--r--dev-util/bdelta/Manifest7
-rw-r--r--dev-util/bdelta/bdelta-0.3.1-r1.ebuild45
-rw-r--r--dev-util/bdelta/files/bdelta-0.3.1-gcc-6.patch18
-rw-r--r--dev-util/bdelta/files/bdelta-0.3.1-soname.patch21
-rw-r--r--dev-util/bdelta/metadata.xml16
-rw-r--r--dev-util/beediff/Manifest5
-rw-r--r--dev-util/beediff/beediff-1.9.ebuild33
-rw-r--r--dev-util/beediff/metadata.xml5
-rw-r--r--dev-util/biew/Manifest8
-rw-r--r--dev-util/biew/biew-6.1.0-r3.ebuild65
-rw-r--r--dev-util/biew/files/biew-610-crash.patch28
-rw-r--r--dev-util/biew/files/biew-610-fix_localedep-1.patch26
-rw-r--r--dev-util/biew/files/biew-610-portable_configure-1.patch167
-rw-r--r--dev-util/biew/metadata.xml11
-rw-r--r--dev-util/bin_replace_string/Manifest5
-rw-r--r--dev-util/bin_replace_string/bin_replace_string-0.2.ebuild27
-rw-r--r--dev-util/bin_replace_string/metadata.xml4
-rw-r--r--dev-util/bitcoin-tx/Manifest13
-rw-r--r--dev-util/bitcoin-tx/bitcoin-tx-0.13.0.ebuild21
-rw-r--r--dev-util/bitcoin-tx/bitcoin-tx-0.13.1.ebuild21
-rw-r--r--dev-util/bitcoin-tx/bitcoin-tx-0.13.2.ebuild21
-rw-r--r--dev-util/bitcoin-tx/bitcoin-tx-9999.ebuild19
-rw-r--r--dev-util/bitcoin-tx/metadata.xml19
-rw-r--r--dev-util/bless/Manifest8
-rw-r--r--dev-util/bless/bless-0.6.0-r2.ebuild52
-rw-r--r--dev-util/bless/files/bless-0.6.0-docpath.patch71
-rw-r--r--dev-util/bless/files/bless-0.6.0-mono-4.patch36
-rw-r--r--dev-util/bless/files/bless-0.6.0-pixmap.patch20
-rw-r--r--dev-util/bless/metadata.xml8
-rw-r--r--dev-util/bloaty/Manifest3
-rw-r--r--dev-util/bloaty/bloaty-0_p20170420.ebuild38
-rw-r--r--dev-util/bloaty/metadata.xml8
-rw-r--r--dev-util/bluej/Manifest9
-rw-r--r--dev-util/bluej/bluej-3.1.1.ebuild58
-rw-r--r--dev-util/bluej/files/bluej.wrapper6
-rw-r--r--dev-util/bluej/metadata.xml5
-rw-r--r--dev-util/bnfc/Manifest8
-rw-r--r--dev-util/bnfc/bnfc-2.8.1.ebuild39
-rw-r--r--dev-util/bnfc/bnfc-2.8.ebuild43
-rw-r--r--dev-util/bnfc/files/bnfc-2.8-alex-3.1.6.patch8
-rw-r--r--dev-util/bnfc/metadata.xml8
-rw-r--r--dev-util/boost-build/Manifest17
-rw-r--r--dev-util/boost-build/boost-build-1.62.0-r1.ebuild139
-rw-r--r--dev-util/boost-build/boost-build-1.63.0.ebuild139
-rw-r--r--dev-util/boost-build/boost-build-1.65.0.ebuild139
-rw-r--r--dev-util/boost-build/files/boost-build-1.48.0-disable_python_rpath.patch11
-rw-r--r--dev-util/boost-build/files/boost-build-1.49.0-darwin-gentoo-toolchain.patch26
-rw-r--r--dev-util/boost-build/files/boost-build-1.50.0-respect-c_ld-flags.patch53
-rw-r--r--dev-util/boost-build/files/boost-build-1.52.0-darwin-no-python-framework.patch17
-rw-r--r--dev-util/boost-build/files/boost-build-1.54.0-fix-test.patch11
-rw-r--r--dev-util/boost-build/files/boost-build-1.54.0-support_dots_in_python-buildid.patch19
-rw-r--r--dev-util/boost-build/files/boost-build-1.55.0-ppc-aix.patch13
-rw-r--r--dev-util/boost-build/files/site-config.jam11
-rw-r--r--dev-util/boost-build/metadata.xml11
-rw-r--r--dev-util/bsdiff/Manifest5
-rw-r--r--dev-util/bsdiff/bsdiff-4.3-r3.ebuild36
-rw-r--r--dev-util/bsdiff/metadata.xml5
-rw-r--r--dev-util/btyacc/Manifest7
-rw-r--r--dev-util/btyacc/btyacc-3.0-r2.ebuild39
-rw-r--r--dev-util/btyacc/files/btyacc-3.0-includes.patch10
-rw-r--r--dev-util/btyacc/files/btyacc-3.0-makefile.patch22
-rw-r--r--dev-util/btyacc/metadata.xml8
-rw-r--r--dev-util/build/Manifest5
-rw-r--r--dev-util/build/build-0.3.10.ebuild30
-rw-r--r--dev-util/build/metadata.xml8
-rw-r--r--dev-util/buildbot-console-view/Manifest12
-rw-r--r--dev-util/buildbot-console-view/buildbot-console-view-0.9.10.ebuild52
-rw-r--r--dev-util/buildbot-console-view/buildbot-console-view-0.9.11.ebuild52
-rw-r--r--dev-util/buildbot-console-view/buildbot-console-view-0.9.4.ebuild52
-rw-r--r--dev-util/buildbot-console-view/buildbot-console-view-0.9.7.ebuild52
-rw-r--r--dev-util/buildbot-console-view/buildbot-console-view-0.9.8.ebuild52
-rw-r--r--dev-util/buildbot-console-view/metadata.xml24
-rw-r--r--dev-util/buildbot-grid-view/Manifest3
-rw-r--r--dev-util/buildbot-grid-view/buildbot-grid-view-0.9.11.ebuild50
-rw-r--r--dev-util/buildbot-grid-view/metadata.xml24
-rw-r--r--dev-util/buildbot-pkg/Manifest12
-rw-r--r--dev-util/buildbot-pkg/buildbot-pkg-0.9.10.ebuild45
-rw-r--r--dev-util/buildbot-pkg/buildbot-pkg-0.9.11.ebuild45
-rw-r--r--dev-util/buildbot-pkg/buildbot-pkg-0.9.4.ebuild45
-rw-r--r--dev-util/buildbot-pkg/buildbot-pkg-0.9.7.ebuild45
-rw-r--r--dev-util/buildbot-pkg/buildbot-pkg-0.9.8.ebuild45
-rw-r--r--dev-util/buildbot-pkg/metadata.xml34
-rw-r--r--dev-util/buildbot-slave/Manifest8
-rw-r--r--dev-util/buildbot-slave/buildbot-slave-0.8.12.ebuild53
-rw-r--r--dev-util/buildbot-slave/files/buildslave.confd9
-rw-r--r--dev-util/buildbot-slave/files/buildslave.initd48
-rw-r--r--dev-util/buildbot-slave/files/buildslave.service15
-rw-r--r--dev-util/buildbot-slave/metadata.xml12
-rw-r--r--dev-util/buildbot-waterfall-view/Manifest12
-rw-r--r--dev-util/buildbot-waterfall-view/buildbot-waterfall-view-0.9.10.ebuild52
-rw-r--r--dev-util/buildbot-waterfall-view/buildbot-waterfall-view-0.9.11.ebuild52
-rw-r--r--dev-util/buildbot-waterfall-view/buildbot-waterfall-view-0.9.4.ebuild52
-rw-r--r--dev-util/buildbot-waterfall-view/buildbot-waterfall-view-0.9.7.ebuild52
-rw-r--r--dev-util/buildbot-waterfall-view/buildbot-waterfall-view-0.9.8.ebuild52
-rw-r--r--dev-util/buildbot-waterfall-view/metadata.xml24
-rw-r--r--dev-util/buildbot-worker/Manifest19
-rw-r--r--dev-util/buildbot-worker/buildbot-worker-0.9.10-r2.ebuild133
-rw-r--r--dev-util/buildbot-worker/buildbot-worker-0.9.11.ebuild133
-rw-r--r--dev-util/buildbot-worker/buildbot-worker-0.9.4.ebuild76
-rw-r--r--dev-util/buildbot-worker/buildbot-worker-0.9.7.ebuild73
-rw-r--r--dev-util/buildbot-worker/buildbot-worker-0.9.8.ebuild74
-rw-r--r--dev-util/buildbot-worker/buildbot-worker-9999.ebuild133
-rw-r--r--dev-util/buildbot-worker/files/buildbot.tac.sample70
-rw-r--r--dev-util/buildbot-worker/files/buildbot_worker.confd9
-rw-r--r--dev-util/buildbot-worker/files/buildbot_worker.confd214
-rw-r--r--dev-util/buildbot-worker/files/buildbot_worker.initd48
-rw-r--r--dev-util/buildbot-worker/files/buildbot_worker.initd257
-rw-r--r--dev-util/buildbot-worker/files/buildbot_worker.service12
-rw-r--r--dev-util/buildbot-worker/metadata.xml20
-rw-r--r--dev-util/buildbot-wsgi-dashboards/Manifest3
-rw-r--r--dev-util/buildbot-wsgi-dashboards/buildbot-wsgi-dashboards-0.9.11.ebuild50
-rw-r--r--dev-util/buildbot-wsgi-dashboards/metadata.xml24
-rw-r--r--dev-util/buildbot-www/Manifest12
-rw-r--r--dev-util/buildbot-www/buildbot-www-0.9.10.ebuild51
-rw-r--r--dev-util/buildbot-www/buildbot-www-0.9.11.ebuild51
-rw-r--r--dev-util/buildbot-www/buildbot-www-0.9.4.ebuild51
-rw-r--r--dev-util/buildbot-www/buildbot-www-0.9.7.ebuild51
-rw-r--r--dev-util/buildbot-www/buildbot-www-0.9.8.ebuild51
-rw-r--r--dev-util/buildbot-www/metadata.xml24
-rw-r--r--dev-util/buildbot/Manifest24
-rw-r--r--dev-util/buildbot/buildbot-0.8.12-r3.ebuild147
-rw-r--r--dev-util/buildbot/buildbot-0.9.10.ebuild211
-rw-r--r--dev-util/buildbot/buildbot-0.9.11.ebuild202
-rw-r--r--dev-util/buildbot/buildbot-0.9.4.ebuild216
-rw-r--r--dev-util/buildbot/buildbot-0.9.7.ebuild193
-rw-r--r--dev-util/buildbot/buildbot-0.9.8.ebuild194
-rw-r--r--dev-util/buildbot/buildbot-9999.ebuild202
-rw-r--r--dev-util/buildbot/files/buildbot-0.9.4.docs.patch130
-rw-r--r--dev-util/buildbot/files/buildbot.service16
-rw-r--r--dev-util/buildbot/files/buildmaster.confd10
-rw-r--r--dev-util/buildbot/files/buildmaster.initd61
-rw-r--r--dev-util/buildbot/files/buildmaster.target5
-rw-r--r--dev-util/buildbot/files/buildmaster_at.service16
-rw-r--r--dev-util/buildbot/files/buildmaster_at.service.conf5
-rw-r--r--dev-util/buildbot/metadata.xml39
-rw-r--r--dev-util/bumpversion/Manifest5
-rw-r--r--dev-util/bumpversion/bumpversion-0.5.3.ebuild35
-rw-r--r--dev-util/bumpversion/metadata.xml12
-rw-r--r--dev-util/bustle/Manifest12
-rw-r--r--dev-util/bustle/bustle-0.4.2-r1.ebuild65
-rw-r--r--dev-util/bustle/bustle-0.4.7-r1.ebuild70
-rw-r--r--dev-util/bustle/bustle-0.5.4.ebuild72
-rw-r--r--dev-util/bustle/files/bustle-0.4.2-restrict-gtk2hs-deps-to-gtkplus2.patch61
-rw-r--r--dev-util/bustle/files/bustle-0.4.7-gtk-0.13.patch172
-rw-r--r--dev-util/bustle/metadata.xml15
-rw-r--r--dev-util/byacc/Manifest7
-rw-r--r--dev-util/byacc/byacc-20170201.ebuild18
-rw-r--r--dev-util/byacc/byacc-20170709.ebuild18
-rw-r--r--dev-util/byacc/metadata.xml8
-rw-r--r--dev-util/cargo/Manifest211
-rw-r--r--dev-util/cargo/cargo-0.15.0.ebuild176
-rw-r--r--dev-util/cargo/cargo-0.16.0.ebuild176
-rw-r--r--dev-util/cargo/cargo-0.17.0.ebuild179
-rw-r--r--dev-util/cargo/cargo-0.20.0.ebuild178
-rw-r--r--dev-util/cargo/cargo-0.21.0.ebuild182
-rw-r--r--dev-util/cargo/files/0.21.0-openssl-0.9.15.patch94
-rw-r--r--dev-util/cargo/metadata.xml11
-rw-r--r--dev-util/catalyst/Manifest15
-rw-r--r--dev-util/catalyst/catalyst-2.0.18-r1.ebuild115
-rw-r--r--dev-util/catalyst/catalyst-2.0.18-r4.ebuild120
-rw-r--r--dev-util/catalyst/catalyst-2.0.9999.ebuild108
-rw-r--r--dev-util/catalyst/catalyst-2.9999.ebuild63
-rw-r--r--dev-util/catalyst/catalyst-3.0_rc1.ebuild62
-rw-r--r--dev-util/catalyst/catalyst-9999.ebuild63
-rw-r--r--dev-util/catalyst/files/catalyst-2.0.18-Do-notuntarwith--acls.patch95
-rw-r--r--dev-util/catalyst/files/catalyst-2.0.18-fix-quotes.patch38
-rw-r--r--dev-util/catalyst/files/catalyst-2.0.18-remove-machine-id.patch25
-rw-r--r--dev-util/catalyst/files/catalyst-2.0.18-stage1-export-ROOT.patch42
-rw-r--r--dev-util/catalyst/metadata.xml14
-rw-r--r--dev-util/catfish/Manifest5
-rw-r--r--dev-util/catfish/catfish-1.2.2.ebuild63
-rw-r--r--dev-util/catfish/metadata.xml11
-rw-r--r--dev-util/catkin/Manifest16
-rw-r--r--dev-util/catkin/catkin-0.7.6-r1.ebuild119
-rw-r--r--dev-util/catkin/catkin-0.7.7.ebuild119
-rw-r--r--dev-util/catkin/catkin-9999.ebuild119
-rw-r--r--dev-util/catkin/files/40catkin3
-rw-r--r--dev-util/catkin/files/catkin_prefix_path.patch76
-rw-r--r--dev-util/catkin/files/catkin_prefix_path_util_py.patch40
-rw-r--r--dev-util/catkin/files/distutils.patch13
-rw-r--r--dev-util/catkin/files/etc.patch16
-rw-r--r--dev-util/catkin/files/gnuinstalldirs.patch15
-rw-r--r--dev-util/catkin/files/package_xml.patch37
-rw-r--r--dev-util/catkin/files/sitedir.patch15
-rw-r--r--dev-util/catkin/files/tests.patch40
-rw-r--r--dev-util/catkin/metadata.xml11
-rw-r--r--dev-util/ccache/Manifest17
-rw-r--r--dev-util/ccache/ccache-3.2.4.ebuild67
-rw-r--r--dev-util/ccache/ccache-3.2.5.ebuild67
-rw-r--r--dev-util/ccache/ccache-3.2.7.ebuild67
-rw-r--r--dev-util/ccache/ccache-3.3.3.ebuild67
-rw-r--r--dev-util/ccache/ccache-3.3.4-r1.ebuild70
-rw-r--r--dev-util/ccache/ccache-3.3.4.ebuild67
-rw-r--r--dev-util/ccache/files/ccache-3.1.10-size-on-disk.patch21
-rw-r--r--dev-util/ccache/files/ccache-3.3-size-on-disk.patch21
-rw-r--r--dev-util/ccache/files/ccache-config-397
-rw-r--r--dev-util/ccache/metadata.xml15
-rw-r--r--dev-util/cccc/Manifest7
-rw-r--r--dev-util/cccc/cccc-3.1.5.ebuild70
-rw-r--r--dev-util/cccc/files/cccc-MFC-dialect.opt21
-rw-r--r--dev-util/cccc/files/cccc-c_dialect.patch79
-rw-r--r--dev-util/cccc/metadata.xml19
-rw-r--r--dev-util/ccglue/Manifest9
-rw-r--r--dev-util/ccglue/ccglue-0.3.1.ebuild26
-rw-r--r--dev-util/ccglue/ccglue-0.6.0.ebuild20
-rw-r--r--dev-util/ccglue/files/ccglue-0.3.1-as-needed.patch11
-rw-r--r--dev-util/ccglue/files/ccglue-0.5.1-cflags.patch13
-rw-r--r--dev-util/ccglue/metadata.xml16
-rw-r--r--dev-util/cdiff/Manifest7
-rw-r--r--dev-util/cdiff/cdiff-0.9.8.ebuild33
-rw-r--r--dev-util/cdiff/cdiff-9999.ebuild33
-rw-r--r--dev-util/cdiff/files/cdiff-0.9.2-disable-unimportant-failing-test.patch11
-rw-r--r--dev-util/cdiff/metadata.xml12
-rw-r--r--dev-util/cflow/Manifest7
-rw-r--r--dev-util/cflow/cflow-1.4.ebuild59
-rw-r--r--dev-util/cflow/files/50cflow-gentoo.el6
-rw-r--r--dev-util/cflow/files/cflow-1.4-info-direntry.patch13
-rw-r--r--dev-util/cflow/metadata.xml15
-rw-r--r--dev-util/cgdb/Manifest12
-rw-r--r--dev-util/cgdb/cgdb-0.6.6.ebuild18
-rw-r--r--dev-util/cgdb/cgdb-0.6.7.ebuild18
-rw-r--r--dev-util/cgdb/cgdb-0.6.8.ebuild43
-rw-r--r--dev-util/cgdb/cgdb-0.7.0.ebuild43
-rw-r--r--dev-util/cgdb/cgdb-9999.ebuild43
-rw-r--r--dev-util/cgdb/metadata.xml16
-rw-r--r--dev-util/cgvg/Manifest5
-rw-r--r--dev-util/cgvg/cgvg-1.6.2.ebuild19
-rw-r--r--dev-util/cgvg/metadata.xml4
-rw-r--r--dev-util/checkbashisms/Manifest10
-rw-r--r--dev-util/checkbashisms/checkbashisms-2.17.10.ebuild40
-rw-r--r--dev-util/checkbashisms/checkbashisms-2.17.8.ebuild44
-rw-r--r--dev-util/checkbashisms/checkbashisms-2.17.9.ebuild40
-rw-r--r--dev-util/checkbashisms/files/checkbashisms-2.15.9-command-vV.patch30
-rw-r--r--dev-util/checkbashisms/metadata.xml14
-rw-r--r--dev-util/checkstyle/Manifest5
-rw-r--r--dev-util/checkstyle/checkstyle-7.2.ebuild66
-rw-r--r--dev-util/checkstyle/metadata.xml12
-rw-r--r--dev-util/clair/Manifest5
-rw-r--r--dev-util/clair/clair-2.0.1.ebuild46
-rw-r--r--dev-util/clair/files/clair.confd2
-rw-r--r--dev-util/clair/files/clair.initd19
-rw-r--r--dev-util/clair/metadata.xml11
-rw-r--r--dev-util/clazy/Manifest3
-rw-r--r--dev-util/clazy/clazy-1.2.ebuild34
-rw-r--r--dev-util/clazy/metadata.xml8
-rw-r--r--dev-util/cligh/Manifest8
-rw-r--r--dev-util/cligh/cligh-0.1_p20120630.ebuild20
-rw-r--r--dev-util/cligh/cligh-0.2.ebuild20
-rw-r--r--dev-util/cligh/cligh-9999.ebuild20
-rw-r--r--dev-util/cligh/metadata.xml11
-rw-r--r--dev-util/clion/Manifest8
-rw-r--r--dev-util/clion/clion-1.2.4.143.1186.ebuild65
-rw-r--r--dev-util/clion/clion-2016.2.1.ebuild72
-rw-r--r--dev-util/clion/clion-2017.2.2.ebuild61
-rw-r--r--dev-util/clion/metadata.xml16
-rw-r--r--dev-util/cloc/Manifest13
-rw-r--r--dev-util/cloc/cloc-1.64.ebuild44
-rw-r--r--dev-util/cloc/cloc-1.66.ebuild32
-rw-r--r--dev-util/cloc/cloc-1.70.ebuild30
-rw-r--r--dev-util/cloc/cloc-1.72.ebuild30
-rw-r--r--dev-util/cloc/files/cloc-fix_stupid_perl_array_error_again.patch71
-rw-r--r--dev-util/cloc/metadata.xml13
-rw-r--r--dev-util/cmake-fedora/Manifest5
-rw-r--r--dev-util/cmake-fedora/cmake-fedora-2.7.1.ebuild25
-rw-r--r--dev-util/cmake-fedora/metadata.xml7
-rw-r--r--dev-util/cmake/Manifest27
-rw-r--r--dev-util/cmake/cmake-3.7.2.ebuild200
-rw-r--r--dev-util/cmake/cmake-3.8.2.ebuild204
-rw-r--r--dev-util/cmake/cmake-3.9.3.ebuild214
-rw-r--r--dev-util/cmake/cmake-3.9.4.ebuild214
-rw-r--r--dev-util/cmake/files/50cmake-gentoo.el4
-rw-r--r--dev-util/cmake/files/cmake-2.8.10.2-FindPythonLibs.patch24
-rw-r--r--dev-util/cmake/files/cmake-2.8.12.1-FindImageMagick.patch23
-rw-r--r--dev-util/cmake/files/cmake-3.0.0-FindBLAS.patch43
-rw-r--r--dev-util/cmake/files/cmake-3.0.0-FindBoost-python.patch93
-rw-r--r--dev-util/cmake/files/cmake-3.0.0-prefix-dirs.patch142
-rw-r--r--dev-util/cmake/files/cmake-3.0.2-FindLAPACK.patch43
-rw-r--r--dev-util/cmake/files/cmake-3.1.0-FindPythonInterp.patch29
-rw-r--r--dev-util/cmake/files/cmake-3.1.0-darwin-isysroot.patch48
-rw-r--r--dev-util/cmake/files/cmake-3.4.0_rc1-darwin-bundle.patch25
-rw-r--r--dev-util/cmake/files/cmake-3.5.2-FindQt4.patch45
-rw-r--r--dev-util/cmake/files/cmake-3.8.0_rc2-FindBoost-python.patch95
-rw-r--r--dev-util/cmake/files/cmake-3.9.0_rc2-FindImageMagick.patch47
-rw-r--r--dev-util/cmake/files/cmake-3.9.0_rc2-FindPythonInterp.patch43
-rw-r--r--dev-util/cmake/files/cmake-3.9.0_rc2-prefix-dirs.patch126
-rw-r--r--dev-util/cmake/files/cmake.vim3
-rw-r--r--dev-util/cmake/metadata.xml12
-rw-r--r--dev-util/cmdtest/Manifest11
-rw-r--r--dev-util/cmdtest/cmdtest-0.16.ebuild27
-rw-r--r--dev-util/cmdtest/cmdtest-0.18.ebuild27
-rw-r--r--dev-util/cmdtest/cmdtest-0.27.ebuild28
-rw-r--r--dev-util/cmdtest/cmdtest-0.30.ebuild28
-rw-r--r--dev-util/cmdtest/metadata.xml8
-rw-r--r--dev-util/cmocka/Manifest8
-rw-r--r--dev-util/cmocka/cmocka-1.0.1.ebuild47
-rw-r--r--dev-util/cmocka/cmocka-1.1.1.ebuild47
-rw-r--r--dev-util/cmocka/files/cmocka-1.0.1-fix-librt-configure-issue.patch56
-rw-r--r--dev-util/cmocka/metadata.xml12
-rw-r--r--dev-util/cmt/Manifest6
-rw-r--r--dev-util/cmt/cmt-1.26.ebuild90
-rw-r--r--dev-util/cmt/files/80cmt-mode-gentoo.el6
-rw-r--r--dev-util/cmt/metadata.xml16
-rw-r--r--dev-util/coccigrep/Manifest6
-rw-r--r--dev-util/coccigrep/coccigrep-1.13.ebuild60
-rw-r--r--dev-util/coccigrep/files/50coccigrep-gentoo.el4
-rw-r--r--dev-util/coccigrep/metadata.xml14
-rw-r--r--dev-util/coccinelle/Manifest8
-rw-r--r--dev-util/coccinelle/coccinelle-1.0.5.ebuild122
-rw-r--r--dev-util/coccinelle/coccinelle-1.0.6.ebuild124
-rw-r--r--dev-util/coccinelle/files/50coccinelle-gentoo.el6
-rw-r--r--dev-util/coccinelle/metadata.xml12
-rw-r--r--dev-util/codeblocks/Manifest6
-rw-r--r--dev-util/codeblocks/codeblocks-16.01.ebuild43
-rw-r--r--dev-util/codeblocks/codeblocks-9999.ebuild60
-rw-r--r--dev-util/codeblocks/metadata.xml14
-rw-r--r--dev-util/colm/Manifest7
-rw-r--r--dev-util/colm/colm-0.13.0.4.ebuild16
-rw-r--r--dev-util/colm/colm-0.13.0.5.ebuild15
-rw-r--r--dev-util/colm/metadata.xml8
-rw-r--r--dev-util/colorgcc/Manifest9
-rw-r--r--dev-util/colorgcc/colorgcc-1.3.2-r7.ebuild67
-rw-r--r--dev-util/colorgcc/files/colorgcc-1.3.2-gentoo-one.patch242
-rw-r--r--dev-util/colorgcc/files/colorgcc-1.3.2-gentoo-two.patch75
-rw-r--r--dev-util/colorgcc/files/colorgcc-1.3.2-nohang.patch58
-rw-r--r--dev-util/colorgcc/files/colorgcc-1.3.2-note.patch57
-rw-r--r--dev-util/colorgcc/metadata.xml8
-rw-r--r--dev-util/comparator/Manifest5
-rw-r--r--dev-util/comparator/comparator-2.10.ebuild39
-rw-r--r--dev-util/comparator/metadata.xml9
-rw-r--r--dev-util/complexity/Manifest5
-rw-r--r--dev-util/complexity/complexity-1.10.ebuild20
-rw-r--r--dev-util/complexity/metadata.xml8
-rw-r--r--dev-util/conan/Manifest6
-rw-r--r--dev-util/conan/conan-0.24.0-r1.ebuild51
-rw-r--r--dev-util/conan/conan-0.25.1.ebuild55
-rw-r--r--dev-util/conan/metadata.xml17
-rw-r--r--dev-util/confix-wrapper/Manifest4
-rw-r--r--dev-util/confix-wrapper/confix-wrapper-0.ebuild31
-rw-r--r--dev-util/confix-wrapper/metadata.xml11
-rw-r--r--dev-util/confix/Manifest14
-rw-r--r--dev-util/confix/confix-2.3.5-r2.ebuild65
-rw-r--r--dev-util/confix/confix-2.3.5-r3.ebuild70
-rw-r--r--dev-util/confix/confix-9999.ebuild64
-rw-r--r--dev-util/confix/files/2.1.0/jni-hpux.patch10
-rw-r--r--dev-util/confix/files/2.3.0/exeext.patch20
-rw-r--r--dev-util/confix/files/2.3.0/ext-ac-archive.patch35
-rw-r--r--dev-util/confix/files/2.3.0/local-libs-first.patch39
-rw-r--r--dev-util/confix/files/2.3.0/new-automake.patch12
-rw-r--r--dev-util/confix/files/confix-2.3.5-nodist-shar.patch44
-rw-r--r--dev-util/confix/files/confix-2.3.5-support-no_undefined.patch213
-rw-r--r--dev-util/confix/metadata.xml11
-rw-r--r--dev-util/cookiecutter/Manifest4
-rw-r--r--dev-util/cookiecutter/cookiecutter-1.5.1.ebuild40
-rw-r--r--dev-util/cookiecutter/metadata.xml11
-rw-r--r--dev-util/cppcheck/Manifest11
-rw-r--r--dev-util/cppcheck/cppcheck-1.77.ebuild104
-rw-r--r--dev-util/cppcheck/cppcheck-1.78.ebuild104
-rw-r--r--dev-util/cppcheck/cppcheck-1.79.ebuild104
-rw-r--r--dev-util/cppcheck/cppcheck-9999.ebuild104
-rw-r--r--dev-util/cppcheck/files/cppcheck-1.75-tinyxml2.patch55
-rw-r--r--dev-util/cppcheck/metadata.xml14
-rw-r--r--dev-util/cppi/Manifest5
-rw-r--r--dev-util/cppi/cppi-1.18.ebuild29
-rw-r--r--dev-util/cppi/metadata.xml8
-rw-r--r--dev-util/cpptest/Manifest5
-rw-r--r--dev-util/cpptest/cpptest-1.1.2.ebuild30
-rw-r--r--dev-util/cpptest/metadata.xml16
-rw-r--r--dev-util/cppunit/Manifest10
-rw-r--r--dev-util/cppunit/cppunit-1.13.1.ebuild58
-rw-r--r--dev-util/cppunit/cppunit-1.13.2-r2.ebuild66
-rw-r--r--dev-util/cppunit/cppunit-1.14.0.ebuild67
-rw-r--r--dev-util/cppunit/cppunit-9999.ebuild67
-rw-r--r--dev-util/cppunit/metadata.xml8
-rw-r--r--dev-util/cpputest/Manifest5
-rw-r--r--dev-util/cpputest/cpputest-3.8.ebuild22
-rw-r--r--dev-util/cpputest/metadata.xml11
-rw-r--r--dev-util/cproto/Manifest5
-rw-r--r--dev-util/cproto/cproto-4.7e.ebuild25
-rw-r--r--dev-util/cproto/metadata.xml5
-rw-r--r--dev-util/cpuinfo-collection/Manifest9
-rw-r--r--dev-util/cpuinfo-collection/cpuinfo-collection-20060720.ebuild21
-rw-r--r--dev-util/cpuinfo-collection/cpuinfo-collection-20070104.ebuild21
-rw-r--r--dev-util/cpuinfo-collection/cpuinfo-collection-20101114.ebuild21
-rw-r--r--dev-util/cpuinfo-collection/metadata.xml8
-rw-r--r--dev-util/cram/Manifest4
-rw-r--r--dev-util/cram/cram-0.7.ebuild20
-rw-r--r--dev-util/cram/metadata.xml17
-rw-r--r--dev-util/crash/Manifest19
-rw-r--r--dev-util/crash/crash-6.1.4.ebuild22
-rw-r--r--dev-util/crash/crash-7.0.0.ebuild22
-rw-r--r--dev-util/crash/crash-7.0.3.ebuild22
-rw-r--r--dev-util/crash/crash-7.0.7.ebuild22
-rw-r--r--dev-util/crash/crash-7.1.4.ebuild20
-rw-r--r--dev-util/crash/crash-7.1.8.ebuild19
-rw-r--r--dev-util/crash/crash-7.1.9.ebuild19
-rw-r--r--dev-util/crash/files/crash-5.1.1-install-fix.patch12
-rw-r--r--dev-util/crash/files/crash-7.1.4-sysmacros.patch27
-rw-r--r--dev-util/crash/metadata.xml15
-rw-r--r--dev-util/creduce/Manifest12
-rw-r--r--dev-util/creduce/creduce-2.4.0.ebuild28
-rw-r--r--dev-util/creduce/creduce-2.5.0.ebuild27
-rw-r--r--dev-util/creduce/creduce-2.6.0.ebuild30
-rw-r--r--dev-util/creduce/creduce-2.7.0.ebuild32
-rw-r--r--dev-util/creduce/creduce-9999.ebuild36
-rw-r--r--dev-util/creduce/metadata.xml12
-rw-r--r--dev-util/cscope/Manifest9
-rw-r--r--dev-util/cscope/cscope-15.8a-r1.ebuild64
-rw-r--r--dev-util/cscope/cscope-15.8a-r2.ebuild69
-rw-r--r--dev-util/cscope/files/50cscope-gentoo.el34
-rw-r--r--dev-util/cscope/files/cscope-15.6-darwin.patch11
-rw-r--r--dev-util/cscope/files/cscope-15.7a-ocs-sysdir.patch23
-rw-r--r--dev-util/cscope/metadata.xml36
-rw-r--r--dev-util/csup/Manifest6
-rw-r--r--dev-util/csup/csup-20060318.ebuild45
-rw-r--r--dev-util/csup/files/csup-20060318-respectflags.patch43
-rw-r--r--dev-util/csup/metadata.xml8
-rw-r--r--dev-util/ctags/Manifest8
-rw-r--r--dev-util/ctags/ctags-20161028.ebuild67
-rw-r--r--dev-util/ctags/ctags-20170704.ebuild74
-rw-r--r--dev-util/ctags/files/ctags-20161028-automagic-deps.patch65
-rw-r--r--dev-util/ctags/metadata.xml17
-rw-r--r--dev-util/cucumber-core/Manifest7
-rw-r--r--dev-util/cucumber-core/cucumber-core-1.5.0.ebuild33
-rw-r--r--dev-util/cucumber-core/cucumber-core-3.0.0.ebuild35
-rw-r--r--dev-util/cucumber-core/metadata.xml10
-rw-r--r--dev-util/cucumber-expressions/Manifest5
-rw-r--r--dev-util/cucumber-expressions/cucumber-expressions-4.0.3.ebuild18
-rw-r--r--dev-util/cucumber-expressions/cucumber-expressions-4.0.4.ebuild18
-rw-r--r--dev-util/cucumber-expressions/metadata.xml10
-rw-r--r--dev-util/cucumber-rails/Manifest7
-rw-r--r--dev-util/cucumber-rails/cucumber-rails-1.4.5.ebuild47
-rw-r--r--dev-util/cucumber-rails/cucumber-rails-1.5.0.ebuild47
-rw-r--r--dev-util/cucumber-rails/metadata.xml10
-rw-r--r--dev-util/cucumber-tag_expressions/Manifest3
-rw-r--r--dev-util/cucumber-tag_expressions/cucumber-tag_expressions-1.0.1.ebuild18
-rw-r--r--dev-util/cucumber-tag_expressions/metadata.xml10
-rw-r--r--dev-util/cucumber-wire/Manifest4
-rw-r--r--dev-util/cucumber-wire/cucumber-wire-0.0.1.ebuild21
-rw-r--r--dev-util/cucumber-wire/metadata.xml10
-rw-r--r--dev-util/cucumber/Manifest8
-rw-r--r--dev-util/cucumber/cucumber-1.3.20-r1.ebuild77
-rw-r--r--dev-util/cucumber/cucumber-2.4.0-r1.ebuild81
-rw-r--r--dev-util/cucumber/cucumber-2.4.0.ebuild77
-rw-r--r--dev-util/cucumber/metadata.xml10
-rw-r--r--dev-util/cunit/Manifest7
-rw-r--r--dev-util/cunit/cunit-2.1_p2-r1.ebuild54
-rw-r--r--dev-util/cunit/cunit-2.1_p3.ebuild56
-rw-r--r--dev-util/cunit/metadata.xml8
-rw-r--r--dev-util/cutils/Manifest7
-rw-r--r--dev-util/cutils/cutils-1.6-r4.ebuild52
-rw-r--r--dev-util/cutils/files/cutils-1.6-case-insensitive.patch14
-rw-r--r--dev-util/cutils/files/cutils-infopage.patch16
-rw-r--r--dev-util/cutils/metadata.xml5
-rw-r--r--dev-util/cwdiff/Manifest12
-rw-r--r--dev-util/cwdiff/cwdiff-0.2.8.ebuild32
-rw-r--r--dev-util/cwdiff/cwdiff-0.3.0.ebuild36
-rw-r--r--dev-util/cwdiff/cwdiff-0.3.1.ebuild36
-rw-r--r--dev-util/cwdiff/cwdiff-0.4.0.ebuild35
-rw-r--r--dev-util/cwdiff/cwdiff-9999.ebuild35
-rw-r--r--dev-util/cwdiff/metadata.xml15
-rw-r--r--dev-util/cyclo/Manifest4
-rw-r--r--dev-util/cyclo/cyclo-2.1.0.ebuild48
-rw-r--r--dev-util/cyclo/metadata.xml15
-rw-r--r--dev-util/d-feet/Manifest9
-rw-r--r--dev-util/d-feet/d-feet-0.3.10.ebuild58
-rw-r--r--dev-util/d-feet/d-feet-0.3.11.ebuild58
-rw-r--r--dev-util/d-feet/d-feet-0.3.12.ebuild61
-rw-r--r--dev-util/d-feet/metadata.xml13
-rw-r--r--dev-util/dbus-test-runner/Manifest7
-rw-r--r--dev-util/dbus-test-runner/dbus-test-runner-12.10.1.ebuild35
-rw-r--r--dev-util/dbus-test-runner/dbus-test-runner-15.04.0_p100.ebuild48
-rw-r--r--dev-util/dbus-test-runner/metadata.xml11
-rw-r--r--dev-util/ddd/Manifest10
-rw-r--r--dev-util/ddd/ddd-3.3.12-r3.ebuild90
-rw-r--r--dev-util/ddd/ddd-3.3.12-r4.ebuild94
-rw-r--r--dev-util/ddd/files/ddd-3.3.12-gcc44.patch10
-rw-r--r--dev-util/ddd/files/ddd-3.3.12-gdb-disassembler-bug.patch11
-rw-r--r--dev-util/ddd/files/ddd-3.3.12-man.patch16
-rw-r--r--dev-util/ddd/files/ddd-3.3.12-tinfo.patch11
-rw-r--r--dev-util/ddd/metadata.xml15
-rw-r--r--dev-util/debhelper/Manifest9
-rw-r--r--dev-util/debhelper/debhelper-10.8.ebuild73
-rw-r--r--dev-util/debhelper/debhelper-10.9.ebuild73
-rw-r--r--dev-util/debhelper/debhelper-9.20160814.ebuild73
-rw-r--r--dev-util/debhelper/metadata.xml8
-rw-r--r--dev-util/debootstrap/Manifest10
-rw-r--r--dev-util/debootstrap/debootstrap-1.0.87.ebuild49
-rw-r--r--dev-util/debootstrap/debootstrap-1.0.89.ebuild50
-rw-r--r--dev-util/debootstrap/debootstrap-1.0.91.ebuild49
-rw-r--r--dev-util/debootstrap/metadata.xml8
-rw-r--r--dev-util/debugedit/Manifest8
-rw-r--r--dev-util/debugedit/debugedit-5.3.5-r1.ebuild38
-rw-r--r--dev-util/debugedit/files/Makefile11
-rw-r--r--dev-util/debugedit/files/debugedit-5.3.5-DWARF-4.patch129
-rwxr-xr-xdev-util/debugedit/files/update.sh84
-rw-r--r--dev-util/debugedit/metadata.xml8
-rw-r--r--dev-util/dejagnu/Manifest12
-rw-r--r--dev-util/dejagnu/dejagnu-1.4.4-r3.ebuild37
-rw-r--r--dev-util/dejagnu/dejagnu-1.5.ebuild27
-rw-r--r--dev-util/dejagnu/dejagnu-1.6.ebuild28
-rw-r--r--dev-util/dejagnu/files/dejagnu-1.4.4-rsh-username.patch45
-rw-r--r--dev-util/dejagnu/files/dejagnu-1.4.4-testglue-protos.patch21
-rw-r--r--dev-util/dejagnu/files/dejagnu-ignore-libwarning.patch23
-rw-r--r--dev-util/dejagnu/metadata.xml8
-rw-r--r--dev-util/desktop-file-utils/Manifest6
-rw-r--r--dev-util/desktop-file-utils/desktop-file-utils-0.23.ebuild54
-rw-r--r--dev-util/desktop-file-utils/files/50desktop-file-utils-gentoo.el5
-rw-r--r--dev-util/desktop-file-utils/metadata.xml7
-rw-r--r--dev-util/deskzilla/Manifest6
-rw-r--r--dev-util/deskzilla/deskzilla-1.7.1-r1.ebuild87
-rw-r--r--dev-util/deskzilla/metadata.xml8
-rw-r--r--dev-util/devhelp/Manifest7
-rw-r--r--dev-util/devhelp/devhelp-3.22.0.ebuild59
-rw-r--r--dev-util/devhelp/devhelp-3.24.0.ebuild64
-rw-r--r--dev-util/devhelp/metadata.xml11
-rw-r--r--dev-util/dialog/Manifest9
-rw-r--r--dev-util/dialog/dialog-1.3.20160828.ebuild51
-rw-r--r--dev-util/dialog/dialog-1.3.20170131.ebuild51
-rw-r--r--dev-util/dialog/dialog-1.3.20170509.ebuild51
-rw-r--r--dev-util/dialog/metadata.xml11
-rw-r--r--dev-util/diffball/Manifest5
-rw-r--r--dev-util/diffball/diffball-1.0.1.ebuild34
-rw-r--r--dev-util/diffball/metadata.xml11
-rw-r--r--dev-util/difffilter/Manifest5
-rw-r--r--dev-util/difffilter/difffilter-0.3.3.ebuild29
-rw-r--r--dev-util/difffilter/metadata.xml4
-rw-r--r--dev-util/diffoscope/Manifest3
-rw-r--r--dev-util/diffoscope/diffoscope-78.ebuild16
-rw-r--r--dev-util/diffoscope/metadata.xml17
-rw-r--r--dev-util/diffstat/Manifest7
-rw-r--r--dev-util/diffstat/diffstat-1.60.ebuild19
-rw-r--r--dev-util/diffstat/diffstat-1.61.ebuild13
-rw-r--r--dev-util/diffstat/metadata.xml11
-rw-r--r--dev-util/diffuse/Manifest5
-rw-r--r--dev-util/diffuse/diffuse-0.4.8.ebuild57
-rw-r--r--dev-util/diffuse/metadata.xml12
-rw-r--r--dev-util/dirdiff/Manifest11
-rw-r--r--dev-util/dirdiff/dirdiff-2.1-r2.ebuild39
-rw-r--r--dev-util/dirdiff/dirdiff-2.1-r3.ebuild43
-rw-r--r--dev-util/dirdiff/files/dirdiff-2.1-build.patch28
-rw-r--r--dev-util/dirdiff/files/dirdiff-2.1-funky-chars.patch201
-rw-r--r--dev-util/dirdiff/files/dirdiff-2.1-include.patch10
-rw-r--r--dev-util/dirdiff/files/dirdiff-2.1-tcl8.6.patch16
-rw-r--r--dev-util/dirdiff/files/dirdiff-2.1-vcs.patch16
-rw-r--r--dev-util/dirdiff/metadata.xml5
-rw-r--r--dev-util/dissembler/Manifest6
-rw-r--r--dev-util/dissembler/dissembler-0.9-r1.ebuild28
-rw-r--r--dev-util/dissembler/files/dissembler-0.9-build.patch21
-rw-r--r--dev-util/dissembler/metadata.xml8
-rw-r--r--dev-util/distro-info-data/Manifest6
-rw-r--r--dev-util/distro-info-data/distro-info-data-0.29.ebuild17
-rw-r--r--dev-util/distro-info-data/distro-info-data-0.32.ebuild19
-rw-r--r--dev-util/distro-info-data/metadata.xml12
-rw-r--r--dev-util/distro-info/Manifest4
-rw-r--r--dev-util/distro-info/distro-info-0.14.ebuild93
-rw-r--r--dev-util/distro-info/metadata.xml12
-rw-r--r--dev-util/dmake/Manifest5
-rw-r--r--dev-util/dmake/dmake-4.12.2.ebuild35
-rw-r--r--dev-util/dmake/metadata.xml11
-rw-r--r--dev-util/docker-distribution-pruner/Manifest4
-rw-r--r--dev-util/docker-distribution-pruner/docker-distribution-pruner-0_p20170401.ebuild34
-rw-r--r--dev-util/docker-distribution-pruner/metadata.xml8
-rw-r--r--dev-util/docker-ls/Manifest5
-rw-r--r--dev-util/docker-ls/docker-ls-0.2.1_p20161102.ebuild42
-rw-r--r--dev-util/docker-ls/metadata.xml11
-rw-r--r--dev-util/dogtail/Manifest10
-rw-r--r--dev-util/dogtail/dogtail-0.9.10.ebuild61
-rw-r--r--dev-util/dogtail/dogtail-0.9.9.ebuild65
-rw-r--r--dev-util/dogtail/files/dogtail-0.9.10-gentoo-paths.patch67
-rw-r--r--dev-util/dogtail/files/dogtail-0.9.9-gentoo-paths.patch64
-rw-r--r--dev-util/dogtail/files/dogtail-0.9.9-get-user.patch43
-rw-r--r--dev-util/dogtail/metadata.xml8
-rw-r--r--dev-util/doxy-coverage/Manifest3
-rw-r--r--dev-util/doxy-coverage/doxy-coverage-151229.ebuild27
-rw-r--r--dev-util/doxy-coverage/metadata.xml12
-rw-r--r--dev-util/dput-ng/Manifest4
-rw-r--r--dev-util/dput-ng/dput-ng-1.10.ebuild84
-rw-r--r--dev-util/dput-ng/metadata.xml12
-rw-r--r--dev-util/drone-cli/Manifest5
-rw-r--r--dev-util/drone-cli/drone-cli-0.7.0_p20170717.ebuild35
-rw-r--r--dev-util/drone-cli/drone-cli-0.8.0.ebuild35
-rw-r--r--dev-util/drone-cli/metadata.xml11
-rw-r--r--dev-util/drone-ui/Manifest4
-rw-r--r--dev-util/drone-ui/drone-ui-0.6.0_rc1_pre20170412.ebuild22
-rw-r--r--dev-util/drone-ui/metadata.xml11
-rw-r--r--dev-util/drone/Manifest20
-rw-r--r--dev-util/drone/drone-0.7.3.ebuild49
-rw-r--r--dev-util/drone/drone-0.8.0.ebuild52
-rw-r--r--dev-util/drone/drone-0.8.1.ebuild52
-rw-r--r--dev-util/drone/files/drone-agent.confd19
-rw-r--r--dev-util/drone/files/drone-agent.initd14
-rw-r--r--dev-util/drone/files/drone-server.confd47
-rw-r--r--dev-util/drone/files/drone-server.initd14
-rw-r--r--dev-util/drone/files/drone.confd47
-rw-r--r--dev-util/drone/files/drone.initd14
-rw-r--r--dev-util/drone/metadata.xml11
-rw-r--r--dev-util/dropwatch/Manifest10
-rw-r--r--dev-util/dropwatch/dropwatch-1.4-r1.ebuild46
-rw-r--r--dev-util/dropwatch/dropwatch-1.4_p20150706.ebuild41
-rw-r--r--dev-util/dropwatch/files/dropwatch-1.4-binutils-2.23.patch81
-rw-r--r--dev-util/dropwatch/files/dropwatch-1.4-makefile.patch21
-rw-r--r--dev-util/dropwatch/files/dropwatch-1.4_p20150706-makefile.patch21
-rw-r--r--dev-util/dropwatch/metadata.xml8
-rw-r--r--dev-util/duma/Manifest9
-rw-r--r--dev-util/duma/duma-2.5.13.ebuild84
-rw-r--r--dev-util/duma/duma-2.5.15-r2.ebuild93
-rw-r--r--dev-util/duma/files/duma-2.5.15-gcc6.patch22
-rw-r--r--dev-util/duma/metadata.xml16
-rw-r--r--dev-util/dwarves/Manifest11
-rw-r--r--dev-util/dwarves/dwarves-1.10_p20140618.ebuild44
-rw-r--r--dev-util/dwarves/dwarves-1.10_p20160519.ebuild44
-rw-r--r--dev-util/dwarves/dwarves-1.10_p20160630.ebuild44
-rw-r--r--dev-util/dwarves/dwarves-9999.ebuild39
-rw-r--r--dev-util/dwarves/files/dwarves-1.10-python-import.patch15
-rw-r--r--dev-util/dwarves/metadata.xml16
-rw-r--r--dev-util/dwdiff/Manifest8
-rw-r--r--dev-util/dwdiff/dwdiff-2.1.0-r1.ebuild47
-rw-r--r--dev-util/dwdiff/dwdiff-2.1.0.ebuild40
-rw-r--r--dev-util/dwdiff/dwdiff-2.1.1.ebuild47
-rw-r--r--dev-util/dwdiff/metadata.xml7
-rw-r--r--dev-util/edb-debugger/Manifest4
-rw-r--r--dev-util/edb-debugger/edb-debugger-0.9.21.ebuild80
-rw-r--r--dev-util/edb-debugger/edb-debugger-9999.ebuild54
-rw-r--r--dev-util/edb-debugger/metadata.xml20
-rw-r--r--dev-util/editorconfig-geany/Manifest4
-rw-r--r--dev-util/editorconfig-geany/editorconfig-geany-0.1_p20160725.ebuild35
-rw-r--r--dev-util/editorconfig-geany/metadata.xml10
-rw-r--r--dev-util/egypt/Manifest5
-rw-r--r--dev-util/egypt/egypt-1.10.ebuild15
-rw-r--r--dev-util/egypt/metadata.xml5
-rw-r--r--dev-util/electron/Manifest84
-rw-r--r--dev-util/electron/electron-0.36.12-r5.ebuild740
-rw-r--r--dev-util/electron/electron-0.37.8-r2.ebuild750
-rw-r--r--dev-util/electron/electron-1.3.13-r1.ebuild763
-rw-r--r--dev-util/electron/electron-1.6.11-r1.ebuild885
-rw-r--r--dev-util/electron/files/chromium-56-gcc4.patch48
-rw-r--r--dev-util/electron/files/chromium-FORTIFY_SOURCE.patch27
-rw-r--r--dev-util/electron/files/chromium-cups-fix.patch12
-rw-r--r--dev-util/electron/files/chromium-disable-widevine.patch9
-rw-r--r--dev-util/electron/files/chromium-ffmpeg-license-r0.patch44
-rw-r--r--dev-util/electron/files/chromium-glibc-2.24.patch15
-rw-r--r--dev-util/electron/files/chromium-icu-58-r0.patch51
-rw-r--r--dev-util/electron/files/chromium-icu-58-r1.patch128
-rw-r--r--dev-util/electron/files/chromium-jinja-fix.patch24
-rw-r--r--dev-util/electron/files/chromium-last-commit-position-r0.patch26
-rw-r--r--dev-util/electron/files/chromium-linker-warnings-r0.patch18
-rw-r--r--dev-util/electron/files/chromium-lto-fixes-r1.patch36
-rw-r--r--dev-util/electron/files/chromium-lto-fixes-r3.patch108
-rw-r--r--dev-util/electron/files/chromium-lto-fixes.patch26
-rw-r--r--dev-util/electron/files/chromium-pdfium-r0.patch17
-rw-r--r--dev-util/electron/files/chromium-remove-gardiner-mod-font-r1.patch13
-rw-r--r--dev-util/electron/files/chromium-remove-gardiner-mod-font.patch13
-rw-r--r--dev-util/electron/files/chromium-shared-v8-r1.patch15
-rw-r--r--dev-util/electron/files/chromium-shared-v8-r2.patch79
-rw-r--r--dev-util/electron/files/chromium-shared-v8.patch15
-rw-r--r--dev-util/electron/files/chromium-snapshot-toolchain-r1.patch23
-rw-r--r--dev-util/electron/files/chromium-system-ffmpeg-r0.patch54
-rw-r--r--dev-util/electron/files/chromium-system-ffmpeg-r2.patch50
-rw-r--r--dev-util/electron/files/chromium-system-ffmpeg-r4.patch48
-rw-r--r--dev-util/electron/files/chromium-system-jinja-r11.patch79
-rw-r--r--dev-util/electron/files/chromium-system-jinja-r7.patch35
-rw-r--r--dev-util/electron/files/chromium-system-jinja-r9.patch71
-rw-r--r--dev-util/electron/files/chromium-system-zlib-r0.patch19
-rw-r--r--dev-util/electron/files/electron-0.36.12-vendor-brightray.patch144
-rw-r--r--dev-util/electron/files/electron-0.36.12-vendor-libchromiumcontent.patch75
-rw-r--r--dev-util/electron/files/electron-0.36.12-vendor-node.patch109
-rw-r--r--dev-util/electron/files/electron-0.36.12.patch257
-rw-r--r--dev-util/electron/files/electron-0.37.8-vendor-brightray.patch143
-rw-r--r--dev-util/electron/files/electron-0.37.8-vendor-libchromiumcontent.patch71
-rw-r--r--dev-util/electron/files/electron-0.37.8-vendor-node.patch105
-rw-r--r--dev-util/electron/files/electron-0.37.8.patch391
-rw-r--r--dev-util/electron/files/electron-1.3.13-vendor-node.patch95
-rw-r--r--dev-util/electron/files/electron-1.3.6-vendor-brightray.patch143
-rw-r--r--dev-util/electron/files/electron-1.3.6-vendor-libchromiumcontent.patch78
-rw-r--r--dev-util/electron/files/electron-1.3.6-vendor-node.patch92
-rw-r--r--dev-util/electron/files/electron-1.3.6.patch422
-rw-r--r--dev-util/electron/files/electron-1.6.11-vendor-brightray.patch163
-rw-r--r--dev-util/electron/files/electron-1.6.11-vendor-libchromiumcontent.patch86
-rw-r--r--dev-util/electron/files/electron-1.6.11-vendor-node.patch80
-rw-r--r--dev-util/electron/files/electron-1.6.11.patch512
-rw-r--r--dev-util/electron/files/electron-vendor-node-external-snapshots-r0.patch116
-rw-r--r--dev-util/electron/files/electron-vendor-node-external-snapshots-r2.patch117
-rw-r--r--dev-util/electron/files/toolchain/BUILD.gn19
-rw-r--r--dev-util/electron/metadata.xml26
-rw-r--r--dev-util/elfkickers/Manifest12
-rw-r--r--dev-util/elfkickers/elfkickers-3.0a.ebuild33
-rw-r--r--dev-util/elfkickers/elfkickers-3.1.ebuild34
-rw-r--r--dev-util/elfkickers/files/add-freebsd-elf-defs.patch68
-rw-r--r--dev-util/elfkickers/files/create-destdir-path.patch14
-rw-r--r--dev-util/elfkickers/files/elfkickers-3.1-create-destdir-path.patch17
-rw-r--r--dev-util/elfkickers/files/elfkickers-3.1-respect-CFLAGS-LDFLAGS.patch103
-rw-r--r--dev-util/elfkickers/files/respect-CFLAGS-LDFLAGS.patch102
-rw-r--r--dev-util/elfkickers/metadata.xml14
-rw-r--r--dev-util/emilpro/Manifest12
-rw-r--r--dev-util/emilpro/emilpro-3-r3.ebuild65
-rw-r--r--dev-util/emilpro/emilpro-9999.ebuild64
-rw-r--r--dev-util/emilpro/files/emilpro-3-system-binutils.patch48
-rw-r--r--dev-util/emilpro/files/emilpro-9999-system-binutils.patch52
-rw-r--r--dev-util/emilpro/files/or1k-2.patch22
-rw-r--r--dev-util/emilpro/files/or1k.patch70
-rw-r--r--dev-util/emilpro/files/respect-cflags.patch12
-rw-r--r--dev-util/emilpro/metadata.xml11
-rw-r--r--dev-util/eric/Manifest7
-rw-r--r--dev-util/eric/eric-17.08.ebuild66
-rw-r--r--dev-util/eric/eric-17.09.ebuild66
-rw-r--r--dev-util/eric/metadata.xml11
-rw-r--r--dev-util/fatrace/Manifest8
-rw-r--r--dev-util/fatrace/fatrace-0.11.ebuild40
-rw-r--r--dev-util/fatrace/fatrace-0.12.ebuild40
-rw-r--r--dev-util/fatrace/files/fatrace-0.11-sysmacros.patch13
-rw-r--r--dev-util/fatrace/metadata.xml14
-rw-r--r--dev-util/fhist/Manifest11
-rw-r--r--dev-util/fhist/fhist-1.16.ebuild43
-rw-r--r--dev-util/fhist/fhist-1.19.ebuild29
-rw-r--r--dev-util/fhist/fhist-1.21.ebuild29
-rw-r--r--dev-util/fhist/files/1.19-ldflags.patch43
-rw-r--r--dev-util/fhist/files/fhist-1.21-ldflags.patch40
-rw-r--r--dev-util/fhist/metadata.xml11
-rw-r--r--dev-util/findbugs/Manifest14
-rw-r--r--dev-util/findbugs/files/0001-Support-bcel-6.0-RC3-instead-of-a-random-snapshot.patch48
-rw-r--r--dev-util/findbugs/files/0002-Don-t-bundle-anything-in-the-annotations-jar.patch25
-rw-r--r--dev-util/findbugs/files/0003-JDK-1.8-works-fine-for-me.patch30
-rw-r--r--dev-util/findbugs/files/0004-Don-t-clean-before-generating-docs.patch25
-rw-r--r--dev-util/findbugs/files/0005-Don-t-require-git-to-build.patch25
-rw-r--r--dev-util/findbugs/files/launchers/fb75
-rw-r--r--dev-util/findbugs/files/launchers/fbwrap3
-rw-r--r--dev-util/findbugs/files/launchers/findbugs83
-rw-r--r--dev-util/findbugs/files/launchers/findbugs289
-rw-r--r--dev-util/findbugs/findbugs-3.0.1.ebuild107
-rw-r--r--dev-util/findbugs/metadata.xml12
-rw-r--r--dev-util/fix-la-relink-command/Manifest5
-rw-r--r--dev-util/fix-la-relink-command/fix-la-relink-command-0.1.1.ebuild24
-rw-r--r--dev-util/fix-la-relink-command/metadata.xml12
-rw-r--r--dev-util/flawfinder/Manifest5
-rw-r--r--dev-util/flawfinder/flawfinder-1.31.ebuild29
-rw-r--r--dev-util/flawfinder/metadata.xml5
-rw-r--r--dev-util/ftjam/Manifest9
-rw-r--r--dev-util/ftjam/files/ftjam-2.5.3-debug-commandline.patch14
-rw-r--r--dev-util/ftjam/files/ftjam-2.5.3-false-flags.patch59
-rw-r--r--dev-util/ftjam/files/ftjam-2.5.3-i-hate-yacc.patch54
-rw-r--r--dev-util/ftjam/files/ftjam-2.5.3-nostrip.patch40
-rw-r--r--dev-util/ftjam/ftjam-2.5.3_rc2-r1.ebuild42
-rw-r--r--dev-util/ftjam/metadata.xml11
-rw-r--r--dev-util/ftnchek/Manifest5
-rw-r--r--dev-util/ftnchek/ftnchek-3.3.1-r1.ebuild41
-rw-r--r--dev-util/ftnchek/metadata.xml5
-rw-r--r--dev-util/fuzz/Manifest6
-rw-r--r--dev-util/fuzz/fuzz-0.6-r1.ebuild33
-rw-r--r--dev-util/fuzz/metadata.xml10
-rw-r--r--dev-util/gcovr/Manifest6
-rw-r--r--dev-util/gcovr/gcovr-3.2.ebuild15
-rw-r--r--dev-util/gcovr/gcovr-3.3.ebuild15
-rw-r--r--dev-util/gcovr/metadata.xml11
-rw-r--r--dev-util/gdbus-codegen/Manifest9
-rw-r--r--dev-util/gdbus-codegen/files/gdbus-codegen-2.40.0-sitedir.patch31
-rw-r--r--dev-util/gdbus-codegen/files/setup.py-2.32.46
-rw-r--r--dev-util/gdbus-codegen/gdbus-codegen-2.50.3.ebuild46
-rw-r--r--dev-util/gdbus-codegen/gdbus-codegen-2.52.3.ebuild46
-rw-r--r--dev-util/gdbus-codegen/metadata.xml8
-rw-r--r--dev-util/geany-plugins/Manifest9
-rw-r--r--dev-util/geany-plugins/geany-plugins-1.28-r1.ebuild156
-rw-r--r--dev-util/geany-plugins/geany-plugins-1.30.ebuild144
-rw-r--r--dev-util/geany-plugins/geany-plugins-1.31.ebuild146
-rw-r--r--dev-util/geany-plugins/metadata.xml29
-rw-r--r--dev-util/geany/Manifest9
-rw-r--r--dev-util/geany/geany-1.28.ebuild69
-rw-r--r--dev-util/geany/geany-1.30.1.ebuild69
-rw-r--r--dev-util/geany/geany-1.31.ebuild69
-rw-r--r--dev-util/geany/metadata.xml41
-rw-r--r--dev-util/gengetopt/Manifest8
-rw-r--r--dev-util/gengetopt/files/gengetopt-2.22.6-docdirs.patch16
-rw-r--r--dev-util/gengetopt/files/gengetopt-2.22.6-makefile.patch11
-rw-r--r--dev-util/gengetopt/files/gengetopt-2.22.6-no-docs.patch9
-rw-r--r--dev-util/gengetopt/gengetopt-2.22.6.ebuild30
-rw-r--r--dev-util/gengetopt/metadata.xml5
-rw-r--r--dev-util/gertty/Manifest8
-rw-r--r--dev-util/gertty/gertty-1.3.2.ebuild38
-rw-r--r--dev-util/gertty/gertty-1.4.0.ebuild38
-rw-r--r--dev-util/gertty/gertty-1.5.0.ebuild37
-rw-r--r--dev-util/gertty/metadata.xml15
-rw-r--r--dev-util/glade/Manifest6
-rw-r--r--dev-util/glade/files/glade-3.14.1-doc-version.patch29
-rw-r--r--dev-util/glade/glade-3.20.0.ebuild89
-rw-r--r--dev-util/glade/metadata.xml8
-rw-r--r--dev-util/global/Manifest9
-rw-r--r--dev-util/global/files/50gtags-gentoo.el6
-rw-r--r--dev-util/global/files/global-6.2.9-tinfo.patch28
-rw-r--r--dev-util/global/global-6.3.1.ebuild81
-rw-r--r--dev-util/global/global-6.5.7.ebuild96
-rw-r--r--dev-util/global/metadata.xml18
-rw-r--r--dev-util/gnome-devel-docs/Manifest5
-rw-r--r--dev-util/gnome-devel-docs/gnome-devel-docs-3.22.1.ebuild31
-rw-r--r--dev-util/gnome-devel-docs/metadata.xml8
-rw-r--r--dev-util/gob/Manifest5
-rw-r--r--dev-util/gob/gob-2.0.20.ebuild23
-rw-r--r--dev-util/gob/metadata.xml8
-rw-r--r--dev-util/google-perftools/Manifest17
-rw-r--r--dev-util/google-perftools/files/gperftools-2.0+glibc-2.16.patch13
-rw-r--r--dev-util/google-perftools/files/gperftools-2.0-32bit-barrier.patch17
-rw-r--r--dev-util/google-perftools/google-perftools-1.8.3.ebuild84
-rw-r--r--dev-util/google-perftools/google-perftools-2.0-r2.ebuild71
-rw-r--r--dev-util/google-perftools/google-perftools-2.4.ebuild85
-rw-r--r--dev-util/google-perftools/google-perftools-2.5.ebuild85
-rw-r--r--dev-util/google-perftools/google-perftools-2.6.1.ebuild85
-rw-r--r--dev-util/google-perftools/google-perftools-2.6.ebuild85
-rw-r--r--dev-util/google-perftools/metadata.xml26
-rw-r--r--dev-util/gource/Manifest9
-rw-r--r--dev-util/gource/gource-0.44.ebuild49
-rw-r--r--dev-util/gource/gource-0.46.ebuild49
-rw-r--r--dev-util/gource/gource-0.47.ebuild49
-rw-r--r--dev-util/gource/metadata.xml11
-rw-r--r--dev-util/gperf/Manifest7
-rw-r--r--dev-util/gperf/gperf-3.0.4.ebuild26
-rw-r--r--dev-util/gperf/gperf-3.1.ebuild27
-rw-r--r--dev-util/gperf/metadata.xml7
-rw-r--r--dev-util/gprof2dot/Manifest10
-rw-r--r--dev-util/gprof2dot/files/gprof2dot-0_p20130517-py3-xrange.patch10
-rw-r--r--dev-util/gprof2dot/gprof2dot-2013.05.17.ebuild54
-rw-r--r--dev-util/gprof2dot/gprof2dot-2016.10.13.ebuild22
-rw-r--r--dev-util/gprof2dot/gprof2dot-2017.09.19.ebuild26
-rw-r--r--dev-util/gprof2dot/metadata.xml11
-rw-r--r--dev-util/gquilt/Manifest6
-rw-r--r--dev-util/gquilt/files/gquilt-0.25-desktopfile.patch17
-rw-r--r--dev-util/gquilt/gquilt-0.25-r1.ebuild38
-rw-r--r--dev-util/gquilt/metadata.xml8
-rw-r--r--dev-util/gtk-builder-convert/Manifest5
-rw-r--r--dev-util/gtk-builder-convert/gtk-builder-convert-2.24.31-r1.ebuild44
-rw-r--r--dev-util/gtk-builder-convert/metadata.xml8
-rw-r--r--dev-util/gtk-doc-am/Manifest5
-rw-r--r--dev-util/gtk-doc-am/gtk-doc-am-1.25-r1.ebuild45
-rw-r--r--dev-util/gtk-doc-am/metadata.xml8
-rw-r--r--dev-util/gtk-doc/Manifest7
-rw-r--r--dev-util/gtk-doc/files/61gtk-doc-gentoo.el9
-rw-r--r--dev-util/gtk-doc/files/gtk-doc-1.8-emacs-keybindings.patch17
-rw-r--r--dev-util/gtk-doc/gtk-doc-1.25-r1.ebuild109
-rw-r--r--dev-util/gtk-doc/metadata.xml19
-rw-r--r--dev-util/gtk-update-icon-cache/Manifest7
-rw-r--r--dev-util/gtk-update-icon-cache/gtk-update-icon-cache-3.22.19.ebuild38
-rw-r--r--dev-util/gtk-update-icon-cache/gtk-update-icon-cache-3.22.2.ebuild38
-rw-r--r--dev-util/gtk-update-icon-cache/metadata.xml19
-rw-r--r--dev-util/gyp/Manifest4
-rw-r--r--dev-util/gyp/gyp-20170904022846.ebuild39
-rw-r--r--dev-util/gyp/gyp-99999999999999.ebuild39
-rw-r--r--dev-util/gyp/metadata.xml8
-rw-r--r--dev-util/heaptrack/Manifest4
-rw-r--r--dev-util/heaptrack/heaptrack-9999.ebuild50
-rw-r--r--dev-util/heaptrack/metadata.xml8
-rw-r--r--dev-util/herdtools7/Manifest4
-rw-r--r--dev-util/herdtools7/files/herdtools7-7.47-mkdir.patch21
-rw-r--r--dev-util/herdtools7/herdtools7-7.47.ebuild30
-rw-r--r--dev-util/herdtools7/metadata.xml8
-rw-r--r--dev-util/howdoi/Manifest5
-rw-r--r--dev-util/howdoi/howdoi-1.1.9.ebuild24
-rw-r--r--dev-util/howdoi/metadata.xml10
-rw-r--r--dev-util/huc/Manifest5
-rw-r--r--dev-util/huc/huc-0.1-r1.ebuild25
-rw-r--r--dev-util/huc/metadata.xml5
-rw-r--r--dev-util/hxd/Manifest7
-rw-r--r--dev-util/hxd/files/hxd-0.70.02-llong-redef.patch25
-rw-r--r--dev-util/hxd/files/hxd-0.70.02-prll-flags.patch56
-rw-r--r--dev-util/hxd/hxd-0.70.02-r2.ebuild32
-rw-r--r--dev-util/hxd/metadata.xml5
-rw-r--r--dev-util/hxtools/Manifest5
-rw-r--r--dev-util/hxtools/hxtools-20121125-r1.ebuild29
-rw-r--r--dev-util/hxtools/metadata.xml8
-rw-r--r--dev-util/icemon/Manifest5
-rw-r--r--dev-util/icemon/icemon-3.1.0.ebuild32
-rw-r--r--dev-util/icemon/metadata.xml12
-rw-r--r--dev-util/icmake/Manifest12
-rw-r--r--dev-util/icmake/files/icmake-7.20.00-ar.patch17
-rw-r--r--dev-util/icmake/files/icmake-9.00.00-ar.patch32
-rw-r--r--dev-util/icmake/files/icmake-9.02.02-verbose-build.patch11
-rw-r--r--dev-util/icmake/icmake-7.22.01.ebuild32
-rw-r--r--dev-util/icmake/icmake-9.00.00.ebuild41
-rw-r--r--dev-util/icmake/icmake-9.02.02.ebuild47
-rw-r--r--dev-util/icmake/metadata.xml12
-rw-r--r--dev-util/idea-community/Manifest3
-rw-r--r--dev-util/idea-community/idea-community-2017.2.2.172.3757.52.ebuild70
-rw-r--r--dev-util/idea-community/metadata.xml14
-rw-r--r--dev-util/idea-ultimate/Manifest4
-rw-r--r--dev-util/idea-ultimate/idea-ultimate-2017.2.2.172.3757.52.ebuild82
-rw-r--r--dev-util/idea-ultimate/metadata.xml14
-rw-r--r--dev-util/idutils/Manifest11
-rw-r--r--dev-util/idutils/files/idutils-4.6-glibc-2.16.patch15
-rw-r--r--dev-util/idutils/idutils-4.2.ebuild42
-rw-r--r--dev-util/idutils/idutils-4.5.ebuild44
-rw-r--r--dev-util/idutils/idutils-4.6.ebuild32
-rw-r--r--dev-util/idutils/metadata.xml14
-rw-r--r--dev-util/igprof/Manifest5
-rw-r--r--dev-util/igprof/igprof-5.9.11.ebuild26
-rw-r--r--dev-util/igprof/metadata.xml10
-rw-r--r--dev-util/imediff2/Manifest5
-rw-r--r--dev-util/imediff2/imediff2-1.1.2-r3.ebuild37
-rw-r--r--dev-util/imediff2/metadata.xml8
-rw-r--r--dev-util/include-what-you-use/Manifest8
-rw-r--r--dev-util/include-what-you-use/include-what-you-use-3.9.ebuild45
-rw-r--r--dev-util/include-what-you-use/include-what-you-use-4.0-r1.ebuild56
-rw-r--r--dev-util/include-what-you-use/include-what-you-use-4.0.ebuild43
-rw-r--r--dev-util/include-what-you-use/metadata.xml11
-rw-r--r--dev-util/indent/Manifest7
-rw-r--r--dev-util/indent/files/2.2.11-segfault.patch16
-rw-r--r--dev-util/indent/files/2.2.11-texi2html-5.patch40
-rw-r--r--dev-util/indent/indent-2.2.11-r1.ebuild60
-rw-r--r--dev-util/indent/metadata.xml12
-rw-r--r--dev-util/intel-ocl-sdk/Manifest7
-rw-r--r--dev-util/intel-ocl-sdk/intel-ocl-sdk-2.0.31360.ebuild70
-rw-r--r--dev-util/intel-ocl-sdk/intel-ocl-sdk-4.4.0.117-r1.ebuild89
-rw-r--r--dev-util/intel-ocl-sdk/metadata.xml20
-rw-r--r--dev-util/intltool/Manifest9
-rw-r--r--dev-util/intltool/files/intltool-0.50.2-absolute-paths.patch63
-rw-r--r--dev-util/intltool/files/intltool-0.51.0-perl-5.22.patch48
-rw-r--r--dev-util/intltool/files/intltool-0.51.0-perl-5.26.patch12
-rw-r--r--dev-util/intltool/intltool-0.51.0-r1.ebuild30
-rw-r--r--dev-util/intltool/intltool-0.51.0-r2.ebuild30
-rw-r--r--dev-util/intltool/metadata.xml10
-rw-r--r--dev-util/its4/Manifest6
-rw-r--r--dev-util/its4/its4-1.1.1-r1.ebuild45
-rw-r--r--dev-util/its4/its4-1.1.1.ebuild34
-rw-r--r--dev-util/its4/metadata.xml14
-rw-r--r--dev-util/itstool/Manifest5
-rw-r--r--dev-util/itstool/itstool-2.0.2.ebuild34
-rw-r--r--dev-util/itstool/metadata.xml13
-rw-r--r--dev-util/jarwizard/Manifest5
-rw-r--r--dev-util/jarwizard/jarwizard-2.50.ebuild28
-rw-r--r--dev-util/jarwizard/metadata.xml11
-rw-r--r--dev-util/jay/Manifest6
-rw-r--r--dev-util/jay/jay-1.1.1-r2.ebuild74
-rw-r--r--dev-util/jay/metadata.xml12
-rw-r--r--dev-util/jconfig/Manifest9
-rw-r--r--dev-util/jconfig/jconfig-2.8-r3.ebuild46
-rw-r--r--dev-util/jconfig/jconfig-2.8.5.ebuild46
-rw-r--r--dev-util/jconfig/jconfig-2.9.ebuild47
-rw-r--r--dev-util/jconfig/metadata.xml11
-rw-r--r--dev-util/jenkins-bin/Manifest23
-rw-r--r--dev-util/jenkins-bin/files/jenkins-bin-r1.logrotate17
-rw-r--r--dev-util/jenkins-bin/files/jenkins-bin.confd62
-rw-r--r--dev-util/jenkins-bin/files/jenkins-bin.init252
-rw-r--r--dev-util/jenkins-bin/files/jenkins-bin.service10
-rw-r--r--dev-util/jenkins-bin/jenkins-bin-2.57.ebuild46
-rw-r--r--dev-util/jenkins-bin/jenkins-bin-2.60.3.ebuild46
-rw-r--r--dev-util/jenkins-bin/jenkins-bin-2.67.ebuild46
-rw-r--r--dev-util/jenkins-bin/jenkins-bin-2.71.ebuild46
-rw-r--r--dev-util/jenkins-bin/jenkins-bin-2.73.1.ebuild46
-rw-r--r--dev-util/jenkins-bin/jenkins-bin-2.78.ebuild46
-rw-r--r--dev-util/jenkins-bin/jenkins-bin-2.80.ebuild46
-rw-r--r--dev-util/jenkins-bin/jenkins-bin-2.81.ebuild46
-rw-r--r--dev-util/jenkins-bin/metadata.xml13
-rw-r--r--dev-util/kbuild/Manifest15
-rw-r--r--dev-util/kbuild/files/kbuild-0.1.5-gentoo-docdir.patch11
-rw-r--r--dev-util/kbuild/files/kbuild-0.1.9998_pre20110817-gcc-4.7.patch11
-rw-r--r--dev-util/kbuild/files/kbuild-0.1.9998_pre20110817-gold.patch16
-rw-r--r--dev-util/kbuild/files/kbuild-0.1.9998_pre20110817-kash-link-pthread.patch10
-rw-r--r--dev-util/kbuild/files/kbuild-0.1.9998_pre20120806-qa.patch13
-rw-r--r--dev-util/kbuild/files/kbuild-glibc-2.10.patch31
-rw-r--r--dev-util/kbuild/files/kbuild-unknown-configure-opt.patch11
-rw-r--r--dev-util/kbuild/kbuild-0.1.9998_pre20131130-r1.ebuild66
-rw-r--r--dev-util/kbuild/kbuild-0.1.9998_pre20131130.ebuild58
-rw-r--r--dev-util/kbuild/kbuild-9999.ebuild46
-rw-r--r--dev-util/kbuild/metadata.xml8
-rw-r--r--dev-util/kcov/Manifest4
-rw-r--r--dev-util/kcov/kcov-33.ebuild21
-rw-r--r--dev-util/kcov/kcov-9999.ebuild27
-rw-r--r--dev-util/kcov/metadata.xml11
-rw-r--r--dev-util/kdbg/Manifest7
-rw-r--r--dev-util/kdbg/kdbg-2.9.0.ebuild38
-rw-r--r--dev-util/kdbg/kdbg-2.9.1.ebuild38
-rw-r--r--dev-util/kdbg/metadata.xml12
-rw-r--r--dev-util/kdevelop-pg-qt/Manifest8
-rw-r--r--dev-util/kdevelop-pg-qt/files/kdevelop-pg-qt-2.0.0-flex263.patch31
-rw-r--r--dev-util/kdevelop-pg-qt/kdevelop-pg-qt-2.0.0-r1.ebuild27
-rw-r--r--dev-util/kdevelop-pg-qt/kdevelop-pg-qt-2.1.0.ebuild22
-rw-r--r--dev-util/kdevelop-pg-qt/metadata.xml8
-rw-r--r--dev-util/kdevelop-php/Manifest7
-rw-r--r--dev-util/kdevelop-php/kdevelop-php-5.1.1.ebuild42
-rw-r--r--dev-util/kdevelop-php/kdevelop-php-5.1.2.ebuild42
-rw-r--r--dev-util/kdevelop-php/metadata.xml8
-rw-r--r--dev-util/kdevelop-python/Manifest7
-rw-r--r--dev-util/kdevelop-python/kdevelop-python-5.1.1.ebuild53
-rw-r--r--dev-util/kdevelop-python/kdevelop-python-5.1.2.ebuild54
-rw-r--r--dev-util/kdevelop-python/metadata.xml8
-rw-r--r--dev-util/kdevelop/Manifest8
-rw-r--r--dev-util/kdevelop/files/kdevelop-5.0.2-ninja-optional.patch11
-rw-r--r--dev-util/kdevelop/kdevelop-5.1.1.ebuild92
-rw-r--r--dev-util/kdevelop/kdevelop-5.1.2.ebuild97
-rw-r--r--dev-util/kdevelop/metadata.xml15
-rw-r--r--dev-util/kdevplatform/Manifest8
-rw-r--r--dev-util/kdevplatform/files/kdevplatform-5.1.1-tests-optional.patch229
-rw-r--r--dev-util/kdevplatform/kdevplatform-5.1.1.ebuild97
-rw-r--r--dev-util/kdevplatform/kdevplatform-5.1.2.ebuild107
-rw-r--r--dev-util/kdevplatform/metadata.xml12
-rw-r--r--dev-util/kelbt/Manifest6
-rw-r--r--dev-util/kelbt/files/ragel-6.7+gcc-4.7.patch178
-rw-r--r--dev-util/kelbt/kelbt-0.15.ebuild44
-rw-r--r--dev-util/kelbt/metadata.xml7
-rw-r--r--dev-util/kscope/Manifest7
-rw-r--r--dev-util/kscope/files/kscope-1.9.4-actions.patch90
-rw-r--r--dev-util/kscope/files/kscope-1.9.4-underlinking.patch13
-rw-r--r--dev-util/kscope/kscope-1.9.4-r2.ebuild37
-rw-r--r--dev-util/kscope/metadata.xml11
-rw-r--r--dev-util/kup/Manifest5
-rw-r--r--dev-util/kup/kup-0.3.4-r1.ebuild28
-rw-r--r--dev-util/kup/metadata.xml7
-rw-r--r--dev-util/kyua/Manifest3
-rw-r--r--dev-util/kyua/kyua-0.13-r1.ebuild25
-rw-r--r--dev-util/kyua/metadata.xml8
-rw-r--r--dev-util/lcov/Manifest10
-rw-r--r--dev-util/lcov/files/lcov-1.9-gcc-4.7.patch29
-rw-r--r--dev-util/lcov/lcov-1.11.ebuild25
-rw-r--r--dev-util/lcov/lcov-1.13-r1.ebuild22
-rw-r--r--dev-util/lcov/lcov-1.9-r1.ebuild29
-rw-r--r--dev-util/lcov/metadata.xml16
-rw-r--r--dev-util/leaktracer/Manifest5
-rw-r--r--dev-util/leaktracer/leaktracer-2.4-r3.ebuild55
-rw-r--r--dev-util/leaktracer/metadata.xml8
-rw-r--r--dev-util/linklint/Manifest5
-rw-r--r--dev-util/linklint/linklint-2.3.5.ebuild22
-rw-r--r--dev-util/linklint/metadata.xml5
-rw-r--r--dev-util/lldb/Manifest12
-rw-r--r--dev-util/lldb/files/4.0.1/0001-test-Fix-finding-LLDB-tools-when-building-stand-alon.patch102
-rw-r--r--dev-util/lldb/files/4.0.1/0002-Fix-bug-28898.patch98
-rw-r--r--dev-util/lldb/lldb-4.0.1.ebuild121
-rw-r--r--dev-util/lldb/lldb-5.0.0.ebuild112
-rw-r--r--dev-util/lldb/lldb-5.0.9999.ebuild119
-rw-r--r--dev-util/lldb/lldb-9999.ebuild119
-rw-r--r--dev-util/lldb/metadata.xml7
-rw-r--r--dev-util/lockrun/Manifest6
-rw-r--r--dev-util/lockrun/files/lockrun.c-20120508294
-rw-r--r--dev-util/lockrun/lockrun-20120508-r1.ebuild30
-rw-r--r--dev-util/lockrun/lockrun-20120508.ebuild30
-rw-r--r--dev-util/lockrun/metadata.xml5
-rw-r--r--dev-util/lsuio/Manifest6
-rw-r--r--dev-util/lsuio/files/lsuio-0.2.0-build.patch9
-rw-r--r--dev-util/lsuio/lsuio-0.2.0.ebuild24
-rw-r--r--dev-util/lsuio/metadata.xml8
-rw-r--r--dev-util/ltrace/Manifest17
-rw-r--r--dev-util/ltrace/files/0.4-parallel-make.patch11
-rw-r--r--dev-util/ltrace/files/ltrace-0.5.3-cross.patch20
-rw-r--r--dev-util/ltrace/files/ltrace-0.5.3-ppc.patch10
-rw-r--r--dev-util/ltrace/files/ltrace-0.5.3.1-gcc43-testsuite.patch9
-rw-r--r--dev-util/ltrace/files/ltrace-0.7.3-alpha-protos.patch14
-rw-r--r--dev-util/ltrace/files/ltrace-0.7.3-ia64.patch39
-rw-r--r--dev-util/ltrace/files/ltrace-0.7.3-test-protos.patch71
-rw-r--r--dev-util/ltrace/ltrace-0.7.2.ebuild37
-rw-r--r--dev-util/ltrace/ltrace-0.7.3.ebuild37
-rw-r--r--dev-util/ltrace/ltrace-0.7.3_p4.ebuild47
-rw-r--r--dev-util/ltrace/metadata.xml11
-rw-r--r--dev-util/lttng-modules/Manifest11
-rw-r--r--dev-util/lttng-modules/lttng-modules-2.6.4.ebuild45
-rw-r--r--dev-util/lttng-modules/lttng-modules-2.7.1.ebuild45
-rw-r--r--dev-util/lttng-modules/lttng-modules-2.7.4.ebuild45
-rw-r--r--dev-util/lttng-modules/lttng-modules-2.8.0.ebuild45
-rw-r--r--dev-util/lttng-modules/metadata.xml12
-rw-r--r--dev-util/lttng-tools/Manifest11
-rw-r--r--dev-util/lttng-tools/lttng-tools-2.6.1.ebuild39
-rw-r--r--dev-util/lttng-tools/lttng-tools-2.7.1.ebuild39
-rw-r--r--dev-util/lttng-tools/lttng-tools-2.7.3.ebuild39
-rw-r--r--dev-util/lttng-tools/lttng-tools-2.8.0.ebuild39
-rw-r--r--dev-util/lttng-tools/metadata.xml15
-rw-r--r--dev-util/lttng-ust/Manifest11
-rw-r--r--dev-util/lttng-ust/lttng-ust-2.6.5.ebuild30
-rw-r--r--dev-util/lttng-ust/lttng-ust-2.7.1.ebuild30
-rw-r--r--dev-util/lttng-ust/lttng-ust-2.7.4.ebuild30
-rw-r--r--dev-util/lttng-ust/lttng-ust-2.8.1.ebuild30
-rw-r--r--dev-util/lttng-ust/metadata.xml12
-rw-r--r--dev-util/lxqt-build-tools/Manifest3
-rw-r--r--dev-util/lxqt-build-tools/lxqt-build-tools-0.2.0.ebuild25
-rw-r--r--dev-util/lxqt-build-tools/metadata.xml8
-rw-r--r--dev-util/makeheaders/Manifest6
-rw-r--r--dev-util/makeheaders/makeheaders-0_p4.ebuild35
-rw-r--r--dev-util/makeheaders/metadata.xml8
-rw-r--r--dev-util/makepp/Manifest22
-rw-r--r--dev-util/makepp/files/makepp-1.18-install.patch69
-rw-r--r--dev-util/makepp/files/makepp-1.40.1a-install.patch12
-rw-r--r--dev-util/makepp/files/makepp-2.0-destdir.patch13
-rw-r--r--dev-util/makepp/files/makepp-2.0.98.5-perl526.patch24
-rw-r--r--dev-util/makepp/makepp-1.18.ebuild35
-rw-r--r--dev-util/makepp/makepp-1.40.1a.ebuild41
-rw-r--r--dev-util/makepp/makepp-1.50_pre110621.ebuild50
-rw-r--r--dev-util/makepp/makepp-2.0-r1.ebuild50
-rw-r--r--dev-util/makepp/makepp-2.0.98.4.ebuild48
-rw-r--r--dev-util/makepp/makepp-2.0.98.5-r1.ebuild44
-rw-r--r--dev-util/makepp/makepp-2.0.98.5.ebuild48
-rw-r--r--dev-util/makepp/makepp-2.0.99.1.ebuild42
-rw-r--r--dev-util/makepp/metadata.xml11
-rw-r--r--dev-util/massif-visualizer/Manifest3
-rw-r--r--dev-util/massif-visualizer/massif-visualizer-0.7.0.ebuild45
-rw-r--r--dev-util/massif-visualizer/metadata.xml11
-rw-r--r--dev-util/mdds/Manifest9
-rw-r--r--dev-util/mdds/files/mdds-1.2.3-buildsystem.patch36
-rw-r--r--dev-util/mdds/mdds-1.2.2.ebuild48
-rw-r--r--dev-util/mdds/mdds-1.2.3.ebuild48
-rw-r--r--dev-util/mdds/mdds-9999.ebuild48
-rw-r--r--dev-util/mdds/metadata.xml14
-rw-r--r--dev-util/meld/Manifest7
-rw-r--r--dev-util/meld/meld-3.16.4.ebuild36
-rw-r--r--dev-util/meld/meld-3.17.4.ebuild36
-rw-r--r--dev-util/meld/metadata.xml8
-rw-r--r--dev-util/memprof/Manifest7
-rw-r--r--dev-util/memprof/files/memprof-0.6.2-binutils.patch10
-rw-r--r--dev-util/memprof/files/memprof-0.6.2-desktop.patch24
-rw-r--r--dev-util/memprof/memprof-0.6.2-r1.ebuild42
-rw-r--r--dev-util/memprof/metadata.xml5
-rw-r--r--dev-util/meson/Manifest11
-rw-r--r--dev-util/meson/meson-0.41.2.ebuild37
-rw-r--r--dev-util/meson/meson-0.42.0.ebuild37
-rw-r--r--dev-util/meson/meson-0.42.1.ebuild37
-rw-r--r--dev-util/meson/meson-0.43.0.ebuild37
-rw-r--r--dev-util/meson/meson-9999.ebuild37
-rw-r--r--dev-util/meson/metadata.xml15
-rw-r--r--dev-util/metadata.xml40
-rw-r--r--dev-util/min-cscope/Manifest5
-rw-r--r--dev-util/min-cscope/metadata.xml8
-rw-r--r--dev-util/min-cscope/min-cscope-16.1.0.ebuild28
-rw-r--r--dev-util/mingw-runtime/Manifest13
-rw-r--r--dev-util/mingw-runtime/files/mingw-runtime-3.18-gcc-4.6.patch27
-rw-r--r--dev-util/mingw-runtime/files/mingw-runtime-3.20-LDBL_MIN_EXP.patch145
-rw-r--r--dev-util/mingw-runtime/metadata.xml11
-rw-r--r--dev-util/mingw-runtime/mingw-runtime-3.18.ebuild75
-rw-r--r--dev-util/mingw-runtime/mingw-runtime-3.20.2.ebuild78
-rw-r--r--dev-util/mingw-runtime/mingw-runtime-3.20.ebuild76
-rw-r--r--dev-util/mingw-runtime/mingw-runtime-4.0.3.1.ebuild83
-rw-r--r--dev-util/mingw64-runtime/Manifest25
-rw-r--r--dev-util/mingw64-runtime/files/mingw64-runtime-4.0.1-build.patch88
-rw-r--r--dev-util/mingw64-runtime/files/mingw64-runtime-4.0.1-winpthreads.patch86
-rw-r--r--dev-util/mingw64-runtime/files/mingw64-runtime-5.0.2-implicit-fallthrough.patch41
-rw-r--r--dev-util/mingw64-runtime/files/mingw64-runtime-5.0.2-locale.patch36
-rw-r--r--dev-util/mingw64-runtime/metadata.xml22
-rw-r--r--dev-util/mingw64-runtime/mingw64-runtime-3.0.0.ebuild78
-rw-r--r--dev-util/mingw64-runtime/mingw64-runtime-3.1.0.ebuild78
-rw-r--r--dev-util/mingw64-runtime/mingw64-runtime-3.2.0-r1.ebuild78
-rw-r--r--dev-util/mingw64-runtime/mingw64-runtime-4.0.1.ebuild112
-rw-r--r--dev-util/mingw64-runtime/mingw64-runtime-4.0.4.ebuild112
-rw-r--r--dev-util/mingw64-runtime/mingw64-runtime-4.0.6.ebuild108
-rw-r--r--dev-util/mingw64-runtime/mingw64-runtime-5.0.1.ebuild112
-rw-r--r--dev-util/mingw64-runtime/mingw64-runtime-5.0.2-r1.ebuild114
-rw-r--r--dev-util/mingw64-runtime/mingw64-runtime-5.0.2-r2.ebuild115
-rw-r--r--dev-util/mingw64-runtime/mingw64-runtime-5.0.2.ebuild112
-rw-r--r--dev-util/molecule-core/Manifest5
-rw-r--r--dev-util/molecule-core/metadata.xml30
-rw-r--r--dev-util/molecule-core/molecule-core-1.0.2-r1.ebuild28
-rw-r--r--dev-util/molecule-plugins/Manifest5
-rw-r--r--dev-util/molecule-plugins/metadata.xml14
-rw-r--r--dev-util/molecule-plugins/molecule-plugins-1.0.2-r1.ebuild32
-rw-r--r--dev-util/molecule/Manifest4
-rw-r--r--dev-util/molecule/metadata.xml17
-rw-r--r--dev-util/molecule/molecule-2.ebuild17
-rw-r--r--dev-util/monkeystudio/Manifest6
-rw-r--r--dev-util/monkeystudio/files/monkeystudio-1.9.0.4-install.patch26
-rw-r--r--dev-util/monkeystudio/metadata.xml11
-rw-r--r--dev-util/monkeystudio/monkeystudio-1.9.0.4-r2.ebuild71
-rw-r--r--dev-util/mpatch/Manifest5
-rw-r--r--dev-util/mpatch/metadata.xml8
-rw-r--r--dev-util/mpatch/mpatch-0.8-r1.ebuild30
-rw-r--r--dev-util/mutrace/Manifest6
-rw-r--r--dev-util/mutrace/files/mutrace-0.2-missing-header.patch10
-rw-r--r--dev-util/mutrace/metadata.xml5
-rw-r--r--dev-util/mutrace/mutrace-0.2-r1.ebuild22
-rw-r--r--dev-util/nemiver/Manifest8
-rw-r--r--dev-util/nemiver/files/nemiver-0.9.6-bool-build.patch36
-rw-r--r--dev-util/nemiver/files/nemiver-0.9.6-fix-build.patch39
-rw-r--r--dev-util/nemiver/files/nemiver-0.9.6-gcc6-throw-in-dtors.patch73
-rw-r--r--dev-util/nemiver/metadata.xml16
-rw-r--r--dev-util/nemiver/nemiver-0.9.6.ebuild60
-rw-r--r--dev-util/netbeans/Manifest15
-rw-r--r--dev-util/netbeans/metadata.xml23
-rw-r--r--dev-util/netbeans/netbeans-8.0.2.ebuild251
-rw-r--r--dev-util/netbeans/netbeans-8.1.ebuild251
-rw-r--r--dev-util/netbeans/netbeans-8.2.ebuild235
-rw-r--r--dev-util/ninja/Manifest9
-rw-r--r--dev-util/ninja/files/ninja-uclibc.patch18
-rw-r--r--dev-util/ninja/metadata.xml11
-rw-r--r--dev-util/ninja/ninja-1.7.2.ebuild131
-rw-r--r--dev-util/ninja/ninja-1.8.2.ebuild127
-rw-r--r--dev-util/ninja/ninja-9999.ebuild127
-rw-r--r--dev-util/numdiff/Manifest4
-rw-r--r--dev-util/numdiff/files/numdiff-5.9.0-fix-build-system.patch166
-rw-r--r--dev-util/numdiff/metadata.xml19
-rw-r--r--dev-util/numdiff/numdiff-5.9.0.ebuild40
-rw-r--r--dev-util/nvidia-cuda-sdk/Manifest12
-rw-r--r--dev-util/nvidia-cuda-sdk/metadata.xml16
-rw-r--r--dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-6.5.19.ebuild156
-rw-r--r--dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-7.5.18.ebuild143
-rw-r--r--dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-8.0.44-r1.ebuild143
-rw-r--r--dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-8.0.61.ebuild144
-rw-r--r--dev-util/nvidia-cuda-toolkit/Manifest16
-rw-r--r--dev-util/nvidia-cuda-toolkit/files/cuda-config.in28
-rw-r--r--dev-util/nvidia-cuda-toolkit/metadata.xml17
-rw-r--r--dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-6.5.14.ebuild154
-rw-r--r--dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-6.5.19-r1.ebuild156
-rw-r--r--dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-7.5.18-r2.ebuild143
-rw-r--r--dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-8.0.44.ebuild135
-rw-r--r--dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-8.0.61.ebuild136
-rw-r--r--dev-util/objconv/Manifest7
-rw-r--r--dev-util/objconv/metadata.xml8
-rw-r--r--dev-util/objconv/objconv-2.32_pre20131127.ebuild45
-rw-r--r--dev-util/objconv/objconv-2.42.ebuild45
-rw-r--r--dev-util/obs-service-cpanspec/Manifest6
-rw-r--r--dev-util/obs-service-cpanspec/metadata.xml11
-rw-r--r--dev-util/obs-service-cpanspec/obs-service-cpanspec-20130318.ebuild12
-rw-r--r--dev-util/obs-service-download_files/Manifest6
-rw-r--r--dev-util/obs-service-download_files/metadata.xml11
-rw-r--r--dev-util/obs-service-download_files/obs-service-download_files-20130716.ebuild14
-rw-r--r--dev-util/obs-service-download_src_package/Manifest6
-rw-r--r--dev-util/obs-service-download_src_package/metadata.xml11
-rw-r--r--dev-util/obs-service-download_src_package/obs-service-download_src_package-20130318.ebuild14
-rw-r--r--dev-util/obs-service-download_url/Manifest6
-rw-r--r--dev-util/obs-service-download_url/metadata.xml11
-rw-r--r--dev-util/obs-service-download_url/obs-service-download_url-20130318.ebuild14
-rw-r--r--dev-util/obs-service-extract_file/Manifest6
-rw-r--r--dev-util/obs-service-extract_file/metadata.xml11
-rw-r--r--dev-util/obs-service-extract_file/obs-service-extract_file-20130318.ebuild18
-rw-r--r--dev-util/obs-service-format_spec_file/Manifest9
-rw-r--r--dev-util/obs-service-format_spec_file/metadata.xml17
-rw-r--r--dev-util/obs-service-format_spec_file/obs-service-format_spec_file-20130618.ebuild19
-rw-r--r--dev-util/obs-service-generator_driver_update_disk/Manifest7
-rw-r--r--dev-util/obs-service-generator_driver_update_disk/metadata.xml11
-rw-r--r--dev-util/obs-service-generator_driver_update_disk/obs-service-generator_driver_update_disk-20130318.ebuild23
-rw-r--r--dev-util/obs-service-git_tarballs/Manifest5
-rw-r--r--dev-util/obs-service-git_tarballs/metadata.xml11
-rw-r--r--dev-util/obs-service-git_tarballs/obs-service-git_tarballs-0.1.7.ebuild31
-rw-r--r--dev-util/obs-service-github_tarballs/Manifest5
-rw-r--r--dev-util/obs-service-github_tarballs/metadata.xml11
-rw-r--r--dev-util/obs-service-github_tarballs/obs-service-github_tarballs-0.2.1.ebuild32
-rw-r--r--dev-util/obs-service-meta/Manifest5
-rw-r--r--dev-util/obs-service-meta/metadata.xml11
-rw-r--r--dev-util/obs-service-meta/obs-service-meta-1.ebuild36
-rw-r--r--dev-util/obs-service-meta/obs-service-meta-2.ebuild40
-rw-r--r--dev-util/obs-service-rearchive/Manifest6
-rw-r--r--dev-util/obs-service-rearchive/metadata.xml11
-rw-r--r--dev-util/obs-service-rearchive/obs-service-rearchive-20130802.ebuild16
-rw-r--r--dev-util/obs-service-recompress/Manifest5
-rw-r--r--dev-util/obs-service-recompress/metadata.xml11
-rw-r--r--dev-util/obs-service-recompress/obs-service-recompress-0.2.ebuild34
-rw-r--r--dev-util/obs-service-set_version/Manifest5
-rw-r--r--dev-util/obs-service-set_version/metadata.xml11
-rw-r--r--dev-util/obs-service-set_version/obs-service-set_version-0.3.ebuild31
-rw-r--r--dev-util/obs-service-source_validator/Manifest5
-rw-r--r--dev-util/obs-service-source_validator/metadata.xml11
-rw-r--r--dev-util/obs-service-source_validator/obs-service-source_validator-0.3.ebuild33
-rw-r--r--dev-util/obs-service-tar_scm/Manifest5
-rw-r--r--dev-util/obs-service-tar_scm/metadata.xml11
-rw-r--r--dev-util/obs-service-tar_scm/obs-service-tar_scm-0.3.1.ebuild37
-rw-r--r--dev-util/obs-service-update_source/Manifest6
-rw-r--r--dev-util/obs-service-update_source/metadata.xml11
-rw-r--r--dev-util/obs-service-update_source/obs-service-update_source-20130802.ebuild15
-rw-r--r--dev-util/obs-service-verify_file/Manifest6
-rw-r--r--dev-util/obs-service-verify_file/metadata.xml11
-rw-r--r--dev-util/obs-service-verify_file/obs-service-verify_file-20130403.ebuild15
-rw-r--r--dev-util/omake/Manifest10
-rw-r--r--dev-util/omake/files/omake-0.10.2-cflags.patch13
-rw-r--r--dev-util/omake/files/omake-0.9.8.6.0_rc1-cflags.patch11
-rw-r--r--dev-util/omake/files/omake-0.9.8.6.0_rc1-warnerror.patch11
-rw-r--r--dev-util/omake/metadata.xml8
-rw-r--r--dev-util/omake/omake-0.10.2.ebuild49
-rw-r--r--dev-util/omake/omake-0.9.8.6.0_rc1.ebuild81
-rw-r--r--dev-util/open-vcdiff/Manifest6
-rw-r--r--dev-util/open-vcdiff/files/open-vcdiff-0.8.4-gcc6.patch223
-rw-r--r--dev-util/open-vcdiff/metadata.xml8
-rw-r--r--dev-util/open-vcdiff/open-vcdiff-0.8.4-r1.ebuild24
-rw-r--r--dev-util/oprofile/Manifest14
-rw-r--r--dev-util/oprofile/files/oprofile-0.9.9-gcc-4.9-non-ppc.patch36
-rw-r--r--dev-util/oprofile/files/oprofile-0.9.9-gcc-4.9-unused.patch47
-rw-r--r--dev-util/oprofile/files/oprofile-1.0.0-athlon.patch20
-rw-r--r--dev-util/oprofile/files/oprofile-1.1.0-gcc6-template-depth.patch10
-rw-r--r--dev-util/oprofile/files/oprofile-1.1.0-gcc6.patch30
-rw-r--r--dev-util/oprofile/metadata.xml12
-rw-r--r--dev-util/oprofile/oprofile-0.9.9-r2.ebuild82
-rw-r--r--dev-util/oprofile/oprofile-1.1.0-r1.ebuild75
-rw-r--r--dev-util/oprofile/oprofile-1.2.0-r1.ebuild64
-rw-r--r--dev-util/osc/Manifest11
-rw-r--r--dev-util/osc/files/osc-0.139.2-out-of-tree-build.patch20
-rw-r--r--dev-util/osc/metadata.xml11
-rw-r--r--dev-util/osc/osc-0.148.2.ebuild62
-rw-r--r--dev-util/osc/osc-0.152.0.ebuild62
-rw-r--r--dev-util/osc/osc-0.154.0.ebuild62
-rw-r--r--dev-util/osc/osc-9999.ebuild62
-rw-r--r--dev-util/patchbin/Manifest4
-rw-r--r--dev-util/patchbin/metadata.xml18
-rw-r--r--dev-util/patchbin/patchbin-20160208.ebuild54
-rw-r--r--dev-util/patchbin/patchbin-99999999.ebuild54
-rw-r--r--dev-util/patchelf/Manifest8
-rw-r--r--dev-util/patchelf/files/patchelf-0.8-dash.patch28
-rw-r--r--dev-util/patchelf/metadata.xml7
-rw-r--r--dev-util/patchelf/patchelf-0.8.ebuild36
-rw-r--r--dev-util/patchelf/patchelf-0.9.ebuild25
-rw-r--r--dev-util/patchutils/Manifest8
-rw-r--r--dev-util/patchutils/files/patchutils-0.3.3-format-security.patch25
-rw-r--r--dev-util/patchutils/metadata.xml8
-rw-r--r--dev-util/patchutils/patchutils-0.3.3.ebuild24
-rw-r--r--dev-util/patchutils/patchutils-0.3.4.ebuild26
-rw-r--r--dev-util/patdiff/Manifest3
-rw-r--r--dev-util/patdiff/metadata.xml11
-rw-r--r--dev-util/patdiff/patdiff-0.9.0.ebuild36
-rw-r--r--dev-util/peg/Manifest10
-rw-r--r--dev-util/peg/metadata.xml8
-rw-r--r--dev-util/peg/peg-0.1.13.ebuild39
-rw-r--r--dev-util/peg/peg-0.1.15-r1.ebuild48
-rw-r--r--dev-util/peg/peg-0.1.15.ebuild36
-rw-r--r--dev-util/peg/peg-0.1.9.ebuild38
-rw-r--r--dev-util/perf/Manifest21
-rw-r--r--dev-util/perf/files/perf-4.1.5-prefix.patch43
-rw-r--r--dev-util/perf/metadata.xml33
-rw-r--r--dev-util/perf/perf-3.12.ebuild177
-rw-r--r--dev-util/perf/perf-3.13.1-r1.ebuild182
-rw-r--r--dev-util/perf/perf-3.15.5.ebuild182
-rw-r--r--dev-util/perf/perf-4.1.5-r1.ebuild190
-rw-r--r--dev-util/perf/perf-4.4.4.ebuild184
-rw-r--r--dev-util/perf/perf-4.9.13.ebuild176
-rw-r--r--dev-util/pkgcheck/Manifest8
-rw-r--r--dev-util/pkgcheck/metadata.xml11
-rw-r--r--dev-util/pkgcheck/pkgcheck-0.5.3.ebuild53
-rw-r--r--dev-util/pkgcheck/pkgcheck-0.5.4.ebuild58
-rw-r--r--dev-util/pkgcheck/pkgcheck-9999.ebuild58
-rw-r--r--dev-util/pkgconf/Manifest20
-rw-r--r--dev-util/pkgconf/metadata.xml16
-rw-r--r--dev-util/pkgconf/pkgconf-0.9.11.ebuild57
-rw-r--r--dev-util/pkgconf/pkgconf-0.9.12.ebuild57
-rw-r--r--dev-util/pkgconf/pkgconf-1.0.1.ebuild59
-rw-r--r--dev-util/pkgconf/pkgconf-1.0.2.ebuild59
-rw-r--r--dev-util/pkgconf/pkgconf-1.1.0.ebuild61
-rw-r--r--dev-util/pkgconf/pkgconf-1.2.2.ebuild61
-rw-r--r--dev-util/pkgconf/pkgconf-1.3.5.ebuild72
-rw-r--r--dev-util/pkgconf/pkgconf-1.3.7.ebuild72
-rw-r--r--dev-util/pkgconf/pkgconf-9999.ebuild72
-rw-r--r--dev-util/pkgconfig-openbsd/Manifest8
-rw-r--r--dev-util/pkgconfig-openbsd/files/pkgconfig-openbsd-20130507-zap-warning.patch19
-rw-r--r--dev-util/pkgconfig-openbsd/metadata.xml7
-rw-r--r--dev-util/pkgconfig-openbsd/pkgconfig-openbsd-20130507-r1.ebuild70
-rw-r--r--dev-util/pkgconfig-openbsd/pkgconfig-openbsd-20130507-r2.ebuild72
-rw-r--r--dev-util/pkgconfig/Manifest13
-rw-r--r--dev-util/pkgconfig/files/pkgconfig-0.28-lfs.patch281
-rw-r--r--dev-util/pkgconfig/files/pkgconfig-0.28-strip_system_library_dirs_reliably.patch30
-rw-r--r--dev-util/pkgconfig/metadata.xml10
-rw-r--r--dev-util/pkgconfig/pkgconfig-0.28-r2.ebuild95
-rw-r--r--dev-util/pkgconfig/pkgconfig-0.28-r3.ebuild105
-rw-r--r--dev-util/pkgconfig/pkgconfig-0.29.1.ebuild117
-rw-r--r--dev-util/pkgconfig/pkgconfig-0.29.2.ebuild117
-rw-r--r--dev-util/pkgconfig/pkgconfig-9999.ebuild117
-rw-r--r--dev-util/plan9port/Manifest9
-rw-r--r--dev-util/plan9port/files/plan9port-builderr.patch29
-rw-r--r--dev-util/plan9port/files/plan9port-cflags.patch16
-rw-r--r--dev-util/plan9port/files/plan9port-freebsd-10.patch11
-rw-r--r--dev-util/plan9port/files/plan9port-noexecstack.patch54
-rw-r--r--dev-util/plan9port/metadata.xml22
-rw-r--r--dev-util/plan9port/plan9port-20140306-r4.ebuild120
-rw-r--r--dev-util/ply/Manifest4
-rw-r--r--dev-util/ply/metadata.xml10
-rw-r--r--dev-util/ply/ply-0_pre20160313.ebuild58
-rw-r--r--dev-util/pmd/Manifest7
-rw-r--r--dev-util/pmd/files/pmd-4.2.5-build.xml.patch51
-rw-r--r--dev-util/pmd/files/pmd-4.2.5-launcher-pre-commands6
-rw-r--r--dev-util/pmd/metadata.xml11
-rw-r--r--dev-util/pmd/pmd-4.2.5.ebuild75
-rw-r--r--dev-util/premake/Manifest8
-rw-r--r--dev-util/premake/files/archless.patch36
-rw-r--r--dev-util/premake/metadata.xml18
-rw-r--r--dev-util/premake/premake-3.7.ebuild24
-rw-r--r--dev-util/premake/premake-4.3-r1.ebuild30
-rw-r--r--dev-util/pretrace/Manifest7
-rw-r--r--dev-util/pretrace/files/pretrace-0.4--as-needed.diff12
-rw-r--r--dev-util/pretrace/files/pretrace-0.4-build.patch15
-rw-r--r--dev-util/pretrace/metadata.xml8
-rw-r--r--dev-util/pretrace/pretrace-0.4.ebuild32
-rw-r--r--dev-util/promu/Manifest4
-rw-r--r--dev-util/promu/metadata.xml11
-rw-r--r--dev-util/promu/promu-0.1.0.ebuild28
-rw-r--r--dev-util/pscan/Manifest5
-rw-r--r--dev-util/pscan/metadata.xml7
-rw-r--r--dev-util/pscan/pscan-20000721-r1.ebuild32
-rw-r--r--dev-util/pycharm-community/Manifest12
-rw-r--r--dev-util/pycharm-community/files/README.gentoo5
-rw-r--r--dev-util/pycharm-community/metadata.xml8
-rw-r--r--dev-util/pycharm-community/pycharm-community-2016.3.2-r1.ebuild45
-rw-r--r--dev-util/pycharm-community/pycharm-community-2017.1.5.ebuild45
-rw-r--r--dev-util/pycharm-community/pycharm-community-2017.2.1.ebuild45
-rw-r--r--dev-util/pycharm-community/pycharm-community-2017.2.3.ebuild45
-rw-r--r--dev-util/pycharm-professional/Manifest10
-rw-r--r--dev-util/pycharm-professional/files/README.gentoo5
-rw-r--r--dev-util/pycharm-professional/metadata.xml8
-rw-r--r--dev-util/pycharm-professional/pycharm-professional-2016.3.2.ebuild49
-rw-r--r--dev-util/pycharm-professional/pycharm-professional-2017.1.5.ebuild49
-rw-r--r--dev-util/pycharm-professional/pycharm-professional-2017.2.3.ebuild49
-rw-r--r--dev-util/qbs/Manifest8
-rw-r--r--dev-util/qbs/files/1.8.1-Install-missing-public-header.patch52
-rw-r--r--dev-util/qbs/metadata.xml26
-rw-r--r--dev-util/qbs/qbs-1.8.1-r1.ebuild120
-rw-r--r--dev-util/qbs/qbs-1.9.1.ebuild115
-rw-r--r--dev-util/qdevicemonitor/Manifest4
-rw-r--r--dev-util/qdevicemonitor/metadata.xml16
-rw-r--r--dev-util/qdevicemonitor/qdevicemonitor-1.0.1.ebuild46
-rw-r--r--dev-util/qdevicemonitor/qdevicemonitor-9999.ebuild46
-rw-r--r--dev-util/qfsm/Manifest5
-rw-r--r--dev-util/qfsm/metadata.xml11
-rw-r--r--dev-util/qfsm/qfsm-0.54.0.ebuild41
-rw-r--r--dev-util/qmtest/Manifest5
-rw-r--r--dev-util/qmtest/metadata.xml5
-rw-r--r--dev-util/qmtest/qmtest-2.4.1-r1.ebuild33
-rw-r--r--dev-util/qstlink2/Manifest5
-rw-r--r--dev-util/qstlink2/metadata.xml20
-rw-r--r--dev-util/qstlink2/qstlink2-1.0.3.ebuild22
-rw-r--r--dev-util/quilt/Manifest14
-rw-r--r--dev-util/quilt/files/quilt-0.50-no-graphviz.patch47
-rw-r--r--dev-util/quilt/files/quilt-0.63-bash-completion.patch17
-rw-r--r--dev-util/quilt/files/quilt-0.63-no-graphviz.patch43
-rw-r--r--dev-util/quilt/files/quilt-0.65-no-graphviz.patch43
-rw-r--r--dev-util/quilt/metadata.xml11
-rw-r--r--dev-util/quilt/quilt-0.50.ebuild58
-rw-r--r--dev-util/quilt/quilt-0.63.ebuild72
-rw-r--r--dev-util/quilt/quilt-0.65.ebuild61
-rw-r--r--dev-util/quilt/quilt-9999.ebuild68
-rw-r--r--dev-util/radare2/Manifest21
-rw-r--r--dev-util/radare2/files/radare2-0.9.9-nogit.patch13
-rw-r--r--dev-util/radare2/files/radare2-1.1.0-openssl-1.1.0c.patch31
-rw-r--r--dev-util/radare2/metadata.xml15
-rw-r--r--dev-util/radare2/radare2-0.10.6.ebuild41
-rw-r--r--dev-util/radare2/radare2-1.0.2.ebuild41
-rw-r--r--dev-util/radare2/radare2-1.1.0.ebuild42
-rw-r--r--dev-util/radare2/radare2-1.2.0.ebuild43
-rw-r--r--dev-util/radare2/radare2-1.3.0.ebuild43
-rw-r--r--dev-util/radare2/radare2-1.4.0-r1.ebuild45
-rw-r--r--dev-util/radare2/radare2-1.4.0.ebuild45
-rw-r--r--dev-util/radare2/radare2-1.6.0.ebuild45
-rw-r--r--dev-util/radare2/radare2-9999.ebuild31
-rw-r--r--dev-util/ragel/Manifest17
-rw-r--r--dev-util/ragel/files/ragel-6.7+gcc-4.7.patch178
-rw-r--r--dev-util/ragel/files/ragel-6.7-cross-compile.patch21
-rw-r--r--dev-util/ragel/metadata.xml7
-rw-r--r--dev-util/ragel/ragel-6.10.ebuild37
-rw-r--r--dev-util/ragel/ragel-6.7-r1.ebuild49
-rw-r--r--dev-util/ragel/ragel-6.8.ebuild44
-rw-r--r--dev-util/ragel/ragel-6.9.ebuild37
-rw-r--r--dev-util/ragel/ragel-7.0.0.10.ebuild29
-rw-r--r--dev-util/ragel/ragel-7.0.0.9.ebuild29
-rw-r--r--dev-util/rats/Manifest9
-rw-r--r--dev-util/rats/files/rats-2.1-add-getopt-trailing-null.patch11
-rw-r--r--dev-util/rats/files/rats-2.1-fix-null-pointers.patch128
-rw-r--r--dev-util/rats/metadata.xml13
-rw-r--r--dev-util/rats/rats-2.1-r2.ebuild36
-rw-r--r--dev-util/rats/rats-2.4.ebuild37
-rw-r--r--dev-util/rbtools/Manifest7
-rw-r--r--dev-util/rbtools/metadata.xml8
-rw-r--r--dev-util/rbtools/rbtools-0.7.10.ebuild31
-rw-r--r--dev-util/rbtools/rbtools-0.7.9.ebuild31
-rw-r--r--dev-util/re2c/Manifest11
-rw-r--r--dev-util/re2c/metadata.xml14
-rw-r--r--dev-util/re2c/re2c-0.13.5-r1.ebuild29
-rw-r--r--dev-util/re2c/re2c-0.16.ebuild28
-rw-r--r--dev-util/re2c/re2c-1.0.1.ebuild28
-rw-r--r--dev-util/re2c/re2c-1.0.2.ebuild28
-rw-r--r--dev-util/rebar/Manifest11
-rw-r--r--dev-util/rebar/metadata.xml20
-rw-r--r--dev-util/rebar/rebar-2.6.1.ebuild28
-rw-r--r--dev-util/rebar/rebar-2.6.2.ebuild28
-rw-r--r--dev-util/rebar/rebar-2.6.3.ebuild28
-rw-r--r--dev-util/rebar/rebar-2.6.4.ebuild28
-rw-r--r--dev-util/regexxer/Manifest7
-rw-r--r--dev-util/regexxer/files/regexxer-0.10-glib-2.32.patch35
-rw-r--r--dev-util/regexxer/files/regexxer-0.10-sandbox.patch15
-rw-r--r--dev-util/regexxer/metadata.xml11
-rw-r--r--dev-util/regexxer/regexxer-0.10.ebuild32
-rw-r--r--dev-util/rej/Manifest5
-rw-r--r--dev-util/rej/metadata.xml8
-rw-r--r--dev-util/rej/rej-0.16.ebuild28
-rw-r--r--dev-util/repo/Manifest3
-rw-r--r--dev-util/repo/metadata.xml11
-rw-r--r--dev-util/repo/repo-1.12.37.ebuild30
-rw-r--r--dev-util/reswrap/Manifest7
-rw-r--r--dev-util/reswrap/metadata.xml4
-rw-r--r--dev-util/reswrap/reswrap-3.2.0.ebuild30
-rw-r--r--dev-util/reswrap/reswrap-4.0.0.ebuild29
-rw-r--r--dev-util/rosdep/Manifest9
-rw-r--r--dev-util/rosdep/metadata.xml11
-rw-r--r--dev-util/rosdep/rosdep-0.11.5.ebuild60
-rw-r--r--dev-util/rosdep/rosdep-0.11.6.ebuild60
-rw-r--r--dev-util/rosdep/rosdep-0.11.8.ebuild60
-rw-r--r--dev-util/rosdep/rosdep-9999.ebuild60
-rw-r--r--dev-util/rosinstall/Manifest5
-rw-r--r--dev-util/rosinstall/metadata.xml11
-rw-r--r--dev-util/rosinstall/rosinstall-0.7.8.ebuild60
-rw-r--r--dev-util/rosinstall/rosinstall-9999.ebuild60
-rw-r--r--dev-util/rosinstall_generator/Manifest9
-rw-r--r--dev-util/rosinstall_generator/metadata.xml11
-rw-r--r--dev-util/rosinstall_generator/rosinstall_generator-0.1.11.ebuild35
-rw-r--r--dev-util/rosinstall_generator/rosinstall_generator-0.1.12.ebuild35
-rw-r--r--dev-util/rosinstall_generator/rosinstall_generator-0.1.13.ebuild35
-rw-r--r--dev-util/rosinstall_generator/rosinstall_generator-9999.ebuild35
-rw-r--r--dev-util/rpmdevtools/Manifest5
-rw-r--r--dev-util/rpmdevtools/metadata.xml7
-rw-r--r--dev-util/rpmdevtools/rpmdevtools-8.10.ebuild36
-rw-r--r--dev-util/rr/Manifest4
-rw-r--r--dev-util/rr/files/rr-4.5.0-sysmacros.patch28
-rw-r--r--dev-util/rr/metadata.xml19
-rw-r--r--dev-util/rr/rr-4.5.0.ebuild57
-rw-r--r--dev-util/rustfmt/Manifest46
-rw-r--r--dev-util/rustfmt/metadata.xml11
-rw-r--r--dev-util/rustfmt/rustfmt-0.5.0.ebuild44
-rw-r--r--dev-util/rustfmt/rustfmt-0.6.3.ebuild49
-rw-r--r--dev-util/sasm/Manifest6
-rw-r--r--dev-util/sasm/metadata.xml11
-rw-r--r--dev-util/sasm/sasm-2.2.ebuild33
-rw-r--r--dev-util/sasm/sasm-9999.ebuild33
-rw-r--r--dev-util/scala-ide/Manifest9
-rw-r--r--dev-util/scala-ide/metadata.xml11
-rw-r--r--dev-util/scala-ide/scala-ide-4.1.0.ebuild48
-rw-r--r--dev-util/scala-ide/scala-ide-4.3.0.ebuild54
-rw-r--r--dev-util/scanmem/Manifest7
-rw-r--r--dev-util/scanmem/metadata.xml11
-rw-r--r--dev-util/scanmem/scanmem-0.15.3.ebuild52
-rw-r--r--dev-util/scanmem/scanmem-0.16.1.ebuild56
-rw-r--r--dev-util/schroot/Manifest11
-rw-r--r--dev-util/schroot/files/schroot-1.6.10-cmake-add-additional-regex-tests.patch70
-rw-r--r--dev-util/schroot/files/schroot.confd9
-rw-r--r--dev-util/schroot/files/schroot.initd41
-rw-r--r--dev-util/schroot/metadata.xml10
-rw-r--r--dev-util/schroot/schroot-1.6.10-r3.ebuild129
-rw-r--r--dev-util/schroot/schroot-1.6.10-r4.ebuild146
-rw-r--r--dev-util/scons/Manifest20
-rw-r--r--dev-util/scons/files/scons-2.1.0-jython.patch13
-rw-r--r--dev-util/scons/metadata.xml18
-rw-r--r--dev-util/scons/scons-2.3.5.ebuild52
-rw-r--r--dev-util/scons/scons-2.4.1.ebuild52
-rw-r--r--dev-util/scons/scons-2.5.0.ebuild52
-rw-r--r--dev-util/scons/scons-2.5.1.ebuild52
-rw-r--r--dev-util/sel/Manifest7
-rw-r--r--dev-util/sel/metadata.xml12
-rw-r--r--dev-util/sel/sel-0.08.4-r1.ebuild34
-rw-r--r--dev-util/sel/sel-0.08.4-r2.ebuild35
-rw-r--r--dev-util/sel/sel-0.08.4.ebuild44
-rw-r--r--dev-util/serialtalk/Manifest5
-rw-r--r--dev-util/serialtalk/metadata.xml16
-rw-r--r--dev-util/serialtalk/serialtalk-1.2.ebuild24
-rw-r--r--dev-util/serialtalk/serialtalk-9999.ebuild24
-rw-r--r--dev-util/setconf/Manifest7
-rw-r--r--dev-util/setconf/metadata.xml8
-rw-r--r--dev-util/setconf/setconf-0.6.6.ebuild39
-rw-r--r--dev-util/setconf/setconf-0.6.7.ebuild39
-rw-r--r--dev-util/sgb/Manifest7
-rw-r--r--dev-util/sgb/files/sgb-20030623-destdir.patch76
-rw-r--r--dev-util/sgb/files/sgb-20030623-parallel-make-fix.patch47
-rw-r--r--dev-util/sgb/metadata.xml7
-rw-r--r--dev-util/sgb/sgb-20030623.ebuild58
-rw-r--r--dev-util/shadowman/Manifest6
-rw-r--r--dev-util/shadowman/metadata.xml8
-rw-r--r--dev-util/shadowman/shadowman-1.ebuild23
-rw-r--r--dev-util/shadowman/shadowman-2.ebuild23
-rw-r--r--dev-util/shadowman/shadowman-9999.ebuild26
-rw-r--r--dev-util/shards/Manifest12
-rw-r--r--dev-util/shards/metadata.xml22
-rw-r--r--dev-util/shards/shards-0.6.1.ebuild22
-rw-r--r--dev-util/shards/shards-0.6.2.ebuild22
-rw-r--r--dev-util/shards/shards-0.6.3.ebuild22
-rw-r--r--dev-util/shards/shards-0.6.4.ebuild22
-rw-r--r--dev-util/shards/shards-0.7.1.ebuild24
-rw-r--r--dev-util/shc/Manifest5
-rw-r--r--dev-util/shc/metadata.xml11
-rw-r--r--dev-util/shc/shc-3.8.9.ebuild37
-rw-r--r--dev-util/shellcheck/Manifest9
-rw-r--r--dev-util/shellcheck/metadata.xml12
-rw-r--r--dev-util/shellcheck/shellcheck-0.4.4.ebuild39
-rw-r--r--dev-util/shellcheck/shellcheck-0.4.5.ebuild39
-rw-r--r--dev-util/shellcheck/shellcheck-0.4.6.ebuild39
-rw-r--r--dev-util/shelltestrunner/Manifest8
-rw-r--r--dev-util/shelltestrunner/metadata.xml15
-rw-r--r--dev-util/shelltestrunner/shelltestrunner-1.3.4.ebuild33
-rw-r--r--dev-util/shelltestrunner/shelltestrunner-1.3.5-r1.ebuild41
-rw-r--r--dev-util/shelltestrunner/shelltestrunner-1.3.5.ebuild35
-rw-r--r--dev-util/shflags/Manifest5
-rw-r--r--dev-util/shflags/metadata.xml15
-rw-r--r--dev-util/shflags/shflags-1.0.3.ebuild26
-rw-r--r--dev-util/shtool/Manifest5
-rw-r--r--dev-util/shtool/metadata.xml5
-rw-r--r--dev-util/shtool/shtool-2.0.8-r1.ebuild20
-rw-r--r--dev-util/shunit2/Manifest5
-rw-r--r--dev-util/shunit2/metadata.xml12
-rw-r--r--dev-util/shunit2/shunit2-2.1.6-r1.ebuild26
-rw-r--r--dev-util/skipfish/Manifest5
-rw-r--r--dev-util/skipfish/metadata.xml8
-rw-r--r--dev-util/skipfish/skipfish-2.10_beta.ebuild62
-rw-r--r--dev-util/smem/Manifest5
-rw-r--r--dev-util/smem/metadata.xml4
-rw-r--r--dev-util/smem/smem-20071119_p1.ebuild22
-rw-r--r--dev-util/source-highlight/Manifest7
-rw-r--r--dev-util/source-highlight/metadata.xml8
-rw-r--r--dev-util/source-highlight/source-highlight-3.1.7-r2.ebuild43
-rw-r--r--dev-util/source-highlight/source-highlight-3.1.8.ebuild47
-rw-r--r--dev-util/spec-cleaner/Manifest6
-rw-r--r--dev-util/spec-cleaner/metadata.xml11
-rw-r--r--dev-util/spec-cleaner/spec-cleaner-0.8.9.ebuild43
-rw-r--r--dev-util/spec-cleaner/spec-cleaner-9999.ebuild43
-rw-r--r--dev-util/splint/Manifest7
-rw-r--r--dev-util/splint/files/splint-3.1.2-musl.patch11
-rw-r--r--dev-util/splint/metadata.xml8
-rw-r--r--dev-util/splint/splint-3.1.2-r1.ebuild46
-rw-r--r--dev-util/splint/splint-3.1.2-r2.ebuild48
-rw-r--r--dev-util/squashdelta/Manifest6
-rw-r--r--dev-util/squashdelta/metadata.xml19
-rw-r--r--dev-util/squashdelta/squashdelta-0.1.ebuild35
-rw-r--r--dev-util/squashdelta/squashdelta-9999.ebuild41
-rw-r--r--dev-util/squashmerge/Manifest6
-rw-r--r--dev-util/squashmerge/metadata.xml19
-rw-r--r--dev-util/squashmerge/squashmerge-0.1.ebuild36
-rw-r--r--dev-util/squashmerge/squashmerge-9999.ebuild42
-rw-r--r--dev-util/staruml-bin/Manifest5
-rw-r--r--dev-util/staruml-bin/metadata.xml12
-rw-r--r--dev-util/staruml-bin/staruml-bin-2.8.0.ebuild60
-rw-r--r--dev-util/strace/Manifest14
-rw-r--r--dev-util/strace/metadata.xml19
-rw-r--r--dev-util/strace/strace-4.13.ebuild67
-rw-r--r--dev-util/strace/strace-4.16.ebuild67
-rw-r--r--dev-util/strace/strace-4.17.ebuild67
-rw-r--r--dev-util/strace/strace-4.18.ebuild71
-rw-r--r--dev-util/strace/strace-4.19.ebuild71
-rw-r--r--dev-util/strace/strace-9999.ebuild71
-rw-r--r--dev-util/stressapptest/Manifest7
-rw-r--r--dev-util/stressapptest/metadata.xml11
-rw-r--r--dev-util/stressapptest/stressapptest-1.0.7_p1.ebuild28
-rw-r--r--dev-util/stressapptest/stressapptest-1.0.8.ebuild24
-rw-r--r--dev-util/stubgen/Manifest5
-rw-r--r--dev-util/stubgen/metadata.xml4
-rw-r--r--dev-util/stubgen/stubgen-2.08.ebuild24
-rw-r--r--dev-util/suse-build/Manifest9
-rw-r--r--dev-util/suse-build/files/suse-build-2014.09.18-libexec-paths.patch449
-rw-r--r--dev-util/suse-build/metadata.xml14
-rw-r--r--dev-util/suse-build/suse-build-2014.09.18.ebuild62
-rw-r--r--dev-util/suse-build/suse-build-2015.11.05.ebuild59
-rw-r--r--dev-util/suse-build/suse-build-9999.ebuild59
-rw-r--r--dev-util/synopsis/Manifest6
-rw-r--r--dev-util/synopsis/files/synopsis-0.12-gcc45.patch17
-rw-r--r--dev-util/synopsis/metadata.xml5
-rw-r--r--dev-util/synopsis/synopsis-0.13.ebuild51
-rw-r--r--dev-util/sysdig/Manifest10
-rw-r--r--dev-util/sysdig/files/sysdig-0.17.0-curlbuild.h.patch53
-rw-r--r--dev-util/sysdig/metadata.xml16
-rw-r--r--dev-util/sysdig/sysdig-0.17.0-r1.ebuild97
-rw-r--r--dev-util/sysdig/sysdig-0.18.0.ebuild91
-rw-r--r--dev-util/sysdig/sysdig-0.19.1.ebuild91
-rw-r--r--dev-util/sysprof/Manifest7
-rw-r--r--dev-util/sysprof/metadata.xml22
-rw-r--r--dev-util/sysprof/sysprof-3.22.2.ebuild61
-rw-r--r--dev-util/sysprof/sysprof-3.24.1.ebuild63
-rw-r--r--dev-util/systemtap/Manifest10
-rw-r--r--dev-util/systemtap/metadata.xml10
-rw-r--r--dev-util/systemtap/systemtap-2.4-r1.ebuild70
-rw-r--r--dev-util/systemtap/systemtap-2.9.ebuild73
-rw-r--r--dev-util/systemtap/systemtap-3.1-r1.ebuild75
-rw-r--r--dev-util/systemtap/systemtap-3.1.ebuild73
-rw-r--r--dev-util/tailor/Manifest5
-rw-r--r--dev-util/tailor/metadata.xml10
-rw-r--r--dev-util/tailor/tailor-0.9.35-r1.ebuild36
-rw-r--r--dev-util/ticpp/Manifest6
-rw-r--r--dev-util/ticpp/metadata.xml11
-rw-r--r--dev-util/ticpp/ticpp-0_p20120423.ebuild49
-rw-r--r--dev-util/ticpp/ticpp-9999.ebuild54
-rw-r--r--dev-util/tinlink/Manifest5
-rw-r--r--dev-util/tinlink/metadata.xml8
-rw-r--r--dev-util/tinlink/tinlink-1.0.0.ebuild30
-rw-r--r--dev-util/tkdiff/Manifest5
-rw-r--r--dev-util/tkdiff/metadata.xml11
-rw-r--r--dev-util/tkdiff/tkdiff-4.2.ebuild23
-rw-r--r--dev-util/tmake/Manifest6
-rw-r--r--dev-util/tmake/metadata.xml8
-rw-r--r--dev-util/tmake/tmake-2.12-r1.ebuild25
-rw-r--r--dev-util/tmake/tmake-2.12.ebuild25
-rw-r--r--dev-util/trace-cmd/Manifest8
-rw-r--r--dev-util/trace-cmd/files/trace-cmd-2.5.1-makefile.patch34
-rw-r--r--dev-util/trace-cmd/metadata.xml11
-rw-r--r--dev-util/trace-cmd/trace-cmd-2.5.1.ebuild72
-rw-r--r--dev-util/trace-cmd/trace-cmd-2.6.ebuild71
-rw-r--r--dev-util/treecc/Manifest5
-rw-r--r--dev-util/treecc/metadata.xml8
-rw-r--r--dev-util/treecc/treecc-0.3.10.ebuild47
-rw-r--r--dev-util/trinity/Manifest7
-rw-r--r--dev-util/trinity/files/trinity-1.7-cflags.patch14
-rw-r--r--dev-util/trinity/metadata.xml8
-rw-r--r--dev-util/trinity/trinity-1.7.ebuild42
-rw-r--r--dev-util/trinity/trinity-9999.ebuild42
-rw-r--r--dev-util/txt2regex/Manifest7
-rw-r--r--dev-util/txt2regex/files/txt2regex-0.8-disable-nls.patch19
-rw-r--r--dev-util/txt2regex/files/txt2regex-0.8-textdomaindir.patch21
-rw-r--r--dev-util/txt2regex/metadata.xml11
-rw-r--r--dev-util/txt2regex/txt2regex-0.8-r3.ebuild34
-rw-r--r--dev-util/umockdev/Manifest6
-rw-r--r--dev-util/umockdev/files/umockdev-0.8.11-sysmacros.patch43
-rw-r--r--dev-util/umockdev/metadata.xml9
-rw-r--r--dev-util/umockdev/umockdev-0.8.11.ebuild30
-rw-r--r--dev-util/uncrustify/Manifest9
-rw-r--r--dev-util/uncrustify/files/uncrustify-0.59-unistdh.patch16
-rw-r--r--dev-util/uncrustify/metadata.xml16
-rw-r--r--dev-util/uncrustify/uncrustify-0.59.ebuild32
-rw-r--r--dev-util/uncrustify/uncrustify-0.64.ebuild35
-rw-r--r--dev-util/uncrustify/uncrustify-9999.ebuild35
-rw-r--r--dev-util/unifdef/Manifest7
-rw-r--r--dev-util/unifdef/metadata.xml8
-rw-r--r--dev-util/unifdef/unifdef-2.10.ebuild20
-rw-r--r--dev-util/unifdef/unifdef-2.11.ebuild20
-rw-r--r--dev-util/universalindentgui/Manifest5
-rw-r--r--dev-util/universalindentgui/metadata.xml14
-rw-r--r--dev-util/universalindentgui/universalindentgui-1.2.0-r3.ebuild137
-rw-r--r--dev-util/usb-robot/Manifest5
-rw-r--r--dev-util/usb-robot/metadata.xml11
-rw-r--r--dev-util/usb-robot/usb-robot-0.2.0.ebuild28
-rw-r--r--dev-util/valgrind/Manifest10
-rw-r--r--dev-util/valgrind/files/valgrind-3.7.0-fno-stack-protector.patch12
-rw-r--r--dev-util/valgrind/files/valgrind-3.7.0-respect-flags.patch13
-rw-r--r--dev-util/valgrind/metadata.xml28
-rw-r--r--dev-util/valgrind/valgrind-3.12.0.ebuild95
-rw-r--r--dev-util/valgrind/valgrind-3.13.0.ebuild95
-rw-r--r--dev-util/valgrind/valgrind-9999.ebuild107
-rw-r--r--dev-util/valkyrie/Manifest7
-rw-r--r--dev-util/valkyrie/files/valkyrie-2.0.0-gcc47.patch37
-rw-r--r--dev-util/valkyrie/files/valkyrie-2.0.0-prefix.patch11
-rw-r--r--dev-util/valkyrie/metadata.xml8
-rw-r--r--dev-util/valkyrie/valkyrie-2.0.0.ebuild26
-rw-r--r--dev-util/vbindiff/Manifest7
-rw-r--r--dev-util/vbindiff/metadata.xml11
-rw-r--r--dev-util/vbindiff/vbindiff-3.0_beta4-r1.ebuild22
-rw-r--r--dev-util/vbindiff/vbindiff-3.0_beta5.ebuild16
-rw-r--r--dev-util/vint/Manifest5
-rw-r--r--dev-util/vint/metadata.xml17
-rw-r--r--dev-util/vint/vint-0.3.13-r1.ebuild46
-rw-r--r--dev-util/vint/vint-0.3.14.ebuild51
-rw-r--r--dev-util/visual-regexp/Manifest16
-rw-r--r--dev-util/visual-regexp/files/visual-regexp-3.0-help-font-fix.patch26
-rw-r--r--dev-util/visual-regexp/files/visual-regexp-3.0-home-conf-fix.patch56
-rw-r--r--dev-util/visual-regexp/files/visual-regexp-3.0-pattern-load-fix.patch31
-rw-r--r--dev-util/visual-regexp/files/visual-regexp-3.0-wish-fix.patch12
-rw-r--r--dev-util/visual-regexp/files/visual-regexp-3.1-help-font-fix.patch32
-rw-r--r--dev-util/visual-regexp/files/visual-regexp-3.1-make-regexp-fix.patch12
-rw-r--r--dev-util/visual-regexp/files/visual-regexp-3.1-wish-fix.patch13
-rw-r--r--dev-util/visual-regexp/files/visualregexp.desktop7
-rw-r--r--dev-util/visual-regexp/metadata.xml12
-rw-r--r--dev-util/visual-regexp/visual-regexp-3.0-r1.ebuild42
-rw-r--r--dev-util/visual-regexp/visual-regexp-3.1.ebuild50
-rw-r--r--dev-util/visualvm/Manifest11
-rw-r--r--dev-util/visualvm/files/org-netbeans-modules-profiler-kit.xml10
-rw-r--r--dev-util/visualvm/files/org-netbeans-modules-profiler-nbimpl.xml10
-rw-r--r--dev-util/visualvm/files/org-netbeans-modules-profiler-options.xml10
-rw-r--r--dev-util/visualvm/files/org-netbeans-modules-profiler-oql-language.xml10
-rw-r--r--dev-util/visualvm/files/visualvm.conf8
-rw-r--r--dev-util/visualvm/files/visualvm.sh16
-rw-r--r--dev-util/visualvm/metadata.xml9
-rw-r--r--dev-util/visualvm/visualvm-1.3.8-r1.ebuild58
-rw-r--r--dev-util/vmtouch/Manifest9
-rw-r--r--dev-util/vmtouch/metadata.xml16
-rw-r--r--dev-util/vmtouch/vmtouch-1.0.2.ebuild30
-rw-r--r--dev-util/vmtouch/vmtouch-1.2.0.ebuild28
-rw-r--r--dev-util/vmtouch/vmtouch-1.3.0.ebuild28
-rw-r--r--dev-util/vtable-dumper/Manifest4
-rw-r--r--dev-util/vtable-dumper/metadata.xml15
-rw-r--r--dev-util/vtable-dumper/vtable-dumper-1.2.ebuild26
-rw-r--r--dev-util/w32api/Manifest7
-rw-r--r--dev-util/w32api/metadata.xml11
-rw-r--r--dev-util/w32api/w32api-3.17.2.ebuild63
-rw-r--r--dev-util/w32api/w32api-4.0.3.1.ebuild67
-rw-r--r--dev-util/waf/Manifest5
-rw-r--r--dev-util/waf/metadata.xml8
-rw-r--r--dev-util/waf/waf-1.9.14.ebuild54
-rw-r--r--dev-util/waf/waf-1.9.8.ebuild54
-rw-r--r--dev-util/webstorm/Manifest8
-rw-r--r--dev-util/webstorm/metadata.xml8
-rw-r--r--dev-util/webstorm/webstorm-10.0.4.141.1550.ebuild30
-rw-r--r--dev-util/webstorm/webstorm-2016.2.2.162.1628.41.ebuild30
-rw-r--r--dev-util/webstorm/webstorm-2017.2.4.172.4155.35.ebuild28
-rw-r--r--dev-util/weka/Manifest9
-rw-r--r--dev-util/weka/files/weka-3.7.13-build.xml.patch16
-rw-r--r--dev-util/weka/files/weka-3.8.0-build.xml.patch16
-rw-r--r--dev-util/weka/metadata.xml14
-rw-r--r--dev-util/weka/weka-3.7.13.ebuild65
-rw-r--r--dev-util/weka/weka-3.8.0.ebuild74
-rw-r--r--dev-util/wiggle/Manifest8
-rw-r--r--dev-util/wiggle/files/wiggle-1.0-cflags.patch22
-rw-r--r--dev-util/wiggle/metadata.xml8
-rw-r--r--dev-util/wiggle/wiggle-0.9-r1.ebuild66
-rw-r--r--dev-util/wiggle/wiggle-1.0.ebuild64
-rw-r--r--dev-util/wsta/Manifest52
-rw-r--r--dev-util/wsta/metadata.xml16
-rw-r--r--dev-util/wsta/wsta-0.5.0.ebuild87
-rw-r--r--dev-util/wstool/Manifest6
-rw-r--r--dev-util/wstool/files/prefix2.patch26
-rw-r--r--dev-util/wstool/metadata.xml11
-rw-r--r--dev-util/wstool/wstool-0.1.13.ebuild61
-rw-r--r--dev-util/wstool/wstool-9999.ebuild61
-rw-r--r--dev-util/wxglade/Manifest6
-rw-r--r--dev-util/wxglade/files/wxglade-0.6.3-wxversion.patch12
-rw-r--r--dev-util/wxglade/metadata.xml11
-rw-r--r--dev-util/wxglade/wxglade-0.6.3-r3.ebuild48
-rw-r--r--dev-util/xdelta/Manifest12
-rw-r--r--dev-util/xdelta/files/xdelta-1.1.4-glib2.patch221
-rw-r--r--dev-util/xdelta/files/xdelta-1.1.4-m4.patch11
-rw-r--r--dev-util/xdelta/files/xdelta-1.1.4-pkgconfig.patch113
-rw-r--r--dev-util/xdelta/metadata.xml12
-rw-r--r--dev-util/xdelta/xdelta-1.1.4-r1.ebuild40
-rw-r--r--dev-util/xdelta/xdelta-3.0.11.ebuild41
-rw-r--r--dev-util/xdelta/xdelta-3.1.0.ebuild52
-rw-r--r--dev-util/xesam-tools/Manifest5
-rw-r--r--dev-util/xesam-tools/metadata.xml10
-rw-r--r--dev-util/xesam-tools/xesam-tools-0.7.0-r1.ebuild42
-rw-r--r--dev-util/xfce4-dev-tools/Manifest5
-rw-r--r--dev-util/xfce4-dev-tools/metadata.xml8
-rw-r--r--dev-util/xfce4-dev-tools/xfce4-dev-tools-4.12.0.ebuild22
-rw-r--r--dev-util/xmlindent/Manifest6
-rw-r--r--dev-util/xmlindent/metadata.xml11
-rw-r--r--dev-util/xmlindent/xmlindent-0.2.17-r1.ebuild34
-rw-r--r--dev-util/xmlindent/xmlindent-0.2.17-r2.ebuild33
-rw-r--r--dev-util/xxdi/Manifest5
-rw-r--r--dev-util/xxdi/metadata.xml20
-rw-r--r--dev-util/xxdi/xxdi-1.0.0.ebuild25
-rw-r--r--dev-util/xxdiff/Manifest11
-rw-r--r--dev-util/xxdiff/files/xxdiff-4.0.1-no-throw-in-dtor.patch16
-rw-r--r--dev-util/xxdiff/files/xxdiff-4.0_beta1_p20110426-bison3.patch100
-rw-r--r--dev-util/xxdiff/files/xxdiff-4.0_beta1_p20110426-gcc47.patch24
-rw-r--r--dev-util/xxdiff/metadata.xml15
-rw-r--r--dev-util/xxdiff/xxdiff-4.0.1-r1.ebuild62
-rw-r--r--dev-util/xxdiff/xxdiff-4.0.1.ebuild61
-rw-r--r--dev-util/xxdiff/xxdiff-4.0_beta1_p20110426-r1.ebuild65
-rw-r--r--dev-util/yacc/Manifest8
-rw-r--r--dev-util/yacc/files/yacc-1.9.1-CVE-2008-3196.patch33
-rw-r--r--dev-util/yacc/files/yacc-1.9.1-ia64.patch24
-rw-r--r--dev-util/yacc/files/yacc-1.9.1-mkstemp.patch15
-rw-r--r--dev-util/yacc/metadata.xml7
-rw-r--r--dev-util/yacc/yacc-1.9.1-r6.ebuild61
-rw-r--r--dev-util/yuicompressor/Manifest4
-rw-r--r--dev-util/yuicompressor/metadata.xml16
-rw-r--r--dev-util/yuicompressor/yuicompressor-2.4.8-r2.ebuild47
2010 files changed, 77667 insertions, 0 deletions
diff --git a/dev-util/App-SVN-Bisect/App-SVN-Bisect-1.1-r1.ebuild b/dev-util/App-SVN-Bisect/App-SVN-Bisect-1.1-r1.ebuild
new file mode 100644
index 000000000000..09f6de5e8c09
--- /dev/null
+++ b/dev-util/App-SVN-Bisect/App-SVN-Bisect-1.1-r1.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+MODULE_AUTHOR="INFINOID"
+
+inherit perl-module
+
+DESCRIPTION="Binary search through svn revisions"
+
+LICENSE="Artistic-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+RDEPEND="dev-lang/perl
+ dev-perl/YAML-Syck
+ dev-perl/IO-All
+ dev-vcs/subversion"
+DEPEND="${RDEPEND}
+ dev-perl/Module-Build
+ test? ( dev-perl/Test-Exception
+ dev-perl/Test-Output
+ dev-perl/Test-Pod
+ dev-perl/Test-Pod-Coverage )"
+
+SRC_TEST="do"
diff --git a/dev-util/App-SVN-Bisect/Manifest b/dev-util/App-SVN-Bisect/Manifest
new file mode 100644
index 000000000000..1e15122006b9
--- /dev/null
+++ b/dev-util/App-SVN-Bisect/Manifest
@@ -0,0 +1,5 @@
+DIST App-SVN-Bisect-1.1.tar.gz 20534 SHA256 ababf6d81c079a921cbbc5a2ff1bc58f8ff5edb47b08c6b9f6aaf3bf4db2624e SHA512 8eeab59dc83273aed8de751ff2c175a9bea9d858e112d24cb21be616582106e69824e2496b8d5860acbfcec4c01e79b1a8ddace5b0ca68a88d9cd9804ed84e57 WHIRLPOOL 95060b5ff86acabcf619e62fe9dc722d86c7256b9b5e09a8d4a3874d0b668834508c7dc78ae3d833931afe1b3c017ebf4b09465e4132b49f1e99f5fa31c0c6ae
+EBUILD App-SVN-Bisect-1.1-r1.ebuild 526 SHA256 f22111afe8bbfaae9cf084d4c63422703005367766efdcc704c685a4f55e55ff SHA512 da9067dd7e3b9ad5b2440c675f835ef39b15fbd109aff2ce1dbc4ae2ec11e0a285e290dac5e657188023881e7e04febbc7e7a987af7108898bf777592d6a10cf WHIRLPOOL 32205e401ff7aef06c83788e43601a458257a0bd9a528da0c36dafb7448948299ede6d6d273d9f6b71b39dcab698ee49a3bac836fce90a1a620cde8fd607f306
+MISC ChangeLog 2199 SHA256 0e452cd135e6bee105c957610845fd79f46134ee8eef04902821e2dfbb893fe6 SHA512 a57d72652a10d444e6d601bdae05809f6f57763b098963dbfd9c4e40d8d00317671108ad62758197fb684f41ed0f44ad73039a25ac04ddf6454867faef16d618 WHIRLPOOL b6c4d148549cc392594d66b41fd24549c42e1cd4767ab2f7c2b88ddae13c9a50e99eb4956251eabcc18cf69d602b1151bb1c2c9fac4780f55ea1d91bcd389d52
+MISC ChangeLog-2015 772 SHA256 ea5394a4f31a1854b36d4b53d7841c7814e5b88fdd63da532f4b38159ef4dde7 SHA512 7ac4f9dc6ddd9bd2ad104297771d702650957fdf4922031f57f48855f058cbd4696c2b47cadcfcf78e6de553bf92bc54e706ae142cb735f2765af6709a6e5dca WHIRLPOOL dcdac7b0ef6459c10267223f5ea5993a52534cc6480c43b08080435b817cbeaf3ad3ab3b7857f3529d4a46c121cdf0cabfdc71df40878033f35030fb035373f8
+MISC metadata.xml 323 SHA256 2a650e89e9a6c2ccd4cc933bd9c3da3f3a72633c6cd270ba39e6b4ec026ea39a SHA512 f12735c8cfcce8601c9cd5cf1dff4b4984ba0de68ba52ea99be0ac796f9c1b6bf250745c5a16ca3ed98161b8259f3b35311b1fe3e6f1a823c349c81451922be0 WHIRLPOOL c8f238ac62386f23efcafc7c668ac704fb97f8e10ff0b3b12ad2254a13c69092b329c9c1f879681f3e3f5a6217897c332705febfa716ab128df469d2bfc511cc
diff --git a/dev-util/App-SVN-Bisect/metadata.xml b/dev-util/App-SVN-Bisect/metadata.xml
new file mode 100644
index 000000000000..8058de7ba305
--- /dev/null
+++ b/dev-util/App-SVN-Bisect/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>floppym@gentoo.org</email>
+ <name>Mike Gilbert</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="cpan">App-SVN-Bisect</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/Orange/Manifest b/dev-util/Orange/Manifest
new file mode 100644
index 000000000000..378346177461
--- /dev/null
+++ b/dev-util/Orange/Manifest
@@ -0,0 +1,5 @@
+DIST Orange-3.4.5.tar.gz 32999331 SHA256 b9a40c20c01ab5f7d01395597e9ac8b6cfd70caa58e4b560c00e91c50a7267f3 SHA512 327c99f17b5c6a83c48c1826cf34624aaf620d84a2f566f22e394cfd0f1b9c7863cecde0ea7344f16b706efb6a4581adad90b59872db9f0be355495971aedd58 WHIRLPOOL b9a96875f23a378cc9b8fb5d6c8820c9c6c9a3252b762f3a8afbe3688a9986a6d6f8743c7b6a32b27bc894fa47b81354b907fca771eae384fe2dec879a36964c
+EBUILD Orange-3.4.5-r2.ebuild 1416 SHA256 a434e99f99cef1d9d149388dd4e1f1eb0055d199ddb3d5a0f1c72fc587ed8e9c SHA512 17eeb8dc4770b3670ffbf7f02c24113419aded3e34db0395f1e316381c6edb3168154fe72e25e459753f8b58243166a08c116b8fa90486f7f45e6acd1505132e WHIRLPOOL 6f584aeab40e9c85ac6823c056168e79021d1be799f5e70b879ee673f7a8561fbd60de046d33b325f941fde14536e4a8decfe3c33cc66ed7940a5add95042a86
+MISC ChangeLog 2173 SHA256 fed7af40713ebc3cbd2e3ec733caafbffa452710bf376a343ae9baf7075da03c SHA512 3dad9ea54753e11a1fe1ecde8a2fe648c5af5f7312a39e1f9a297f29506e1745e9210c8500a5bde9ee12146f15dd4719a2666e8c74d5c20176f742107b6326b2 WHIRLPOOL c2ff5781099e31255e038b0958dc18fc4fcc00e5c2d501781d2946838a51415aea58facf8b7fa521a4dbeeeb6b987a5a7557437e93ab51ffcb21f2acf8d55f36
+MISC ChangeLog-2015 364 SHA256 5a128432d3ed0443245b7ca5aeac8b136eadad22d07368a1f11c251c93d17c4e SHA512 869c5385aaf2198f2c73c8d00bd7ec15bf81b0dffe73e2f15c92eb2f39d98cfa44a216662859186453e506dbf9ea7d4e270acd9f406d0b73f72fc39f43446f14 WHIRLPOOL 86da229e2f01b7f837bf13dcad3daf207969fc50841d16fe224210793b791be4343fd49b1811bbcc4e8430411f82a57f44309fc18ef035a3c75c08f0c3250b7e
+MISC metadata.xml 214 SHA256 182957cd18b10fd08cdcfd0e286b3edb5f6b3e64f7784d97d2d4e1580da0caa1 SHA512 e38be8dc636f8d2db14dbf8a5d673224ed83adc030db673cc59ef4c2db90884de5f4e61c3247524d12015486769ee984d1c188acb7488826e659fb36de1b46e6 WHIRLPOOL 7272bc84848945a5bd2f1348f37aad71416cc309b854f3b884ab9b516332f7fdee6d99d5450a01cc12b844fbf6c2f1a26fb15ef1750dbeacc50d70cee699dac9
diff --git a/dev-util/Orange/Orange-3.4.5-r2.ebuild b/dev-util/Orange/Orange-3.4.5-r2.ebuild
new file mode 100644
index 000000000000..3e1710650bc0
--- /dev/null
+++ b/dev-util/Orange/Orange-3.4.5-r2.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+PYTHON_COMPAT=( python3_{4,5,6} )
+
+inherit distutils-r1
+
+DESCRIPTION="Open source data visualization and analysis for novice and experts."
+HOMEPAGE="https://orange.biolab.si/"
+SRC_URI="https://github.com/biolab/orange3/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="
+ dev-python/anyqt[${PYTHON_USEDEP}]
+ >=dev-python/bottleneck-1.0.0[${PYTHON_USEDEP}]
+ >=dev-python/CommonMark-0.5.5[${PYTHON_USEDEP}]
+ dev-python/dill[${PYTHON_USEDEP}]
+ >=dev-python/chardet-2.3.0[${PYTHON_USEDEP}]
+ >=dev-python/joblib-0.9.4[${PYTHON_USEDEP}]
+ dev-python/keyring[${PYTHON_USEDEP}]
+ dev-python/keyrings_alt[${PYTHON_USEDEP}]
+ dev-python/pylint[${PYTHON_USEDEP}]
+ >=dev-python/pip-9.0.1[${PYTHON_USEDEP}]
+ >=dev-python/pyqtgraph-0.10.0[${PYTHON_USEDEP}]
+ dev-python/PyQt5[webkit,svg,${PYTHON_USEDEP}]
+ dev-python/radon[${PYTHON_USEDEP}]
+ dev-python/typing[${PYTHON_USEDEP}]
+ >=dev-python/xlrd-0.9.2[${PYTHON_USEDEP}]
+ >=sci-libs/scipy-0.11.0[${PYTHON_USEDEP}]
+ >=sci-libs/scikits_learn-0.18.1[${PYTHON_USEDEP}]"
+
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ >=dev-python/numpy-1.9.0[${PYTHON_USEDEP}]"
+
+S="${WORKDIR}/orange3-${PV}"
+
+QA_PREBUILT="/usr/lib*/python*/site-packages/Orange/tests/binary-blob.tab"
+
+python_test() {
+ esetup.py test
+}
diff --git a/dev-util/Orange/metadata.xml b/dev-util/Orange/metadata.xml
new file mode 100644
index 000000000000..007aaf442ea7
--- /dev/null
+++ b/dev-util/Orange/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+ <email>amynka@gentoo.org</email>
+</maintainer>
+</pkgmetadata>
diff --git a/dev-util/abi-compliance-checker/Manifest b/dev-util/abi-compliance-checker/Manifest
new file mode 100644
index 000000000000..44e69d4909cc
--- /dev/null
+++ b/dev-util/abi-compliance-checker/Manifest
@@ -0,0 +1,8 @@
+DIST abi-compliance-checker-2.1.tar.gz 229447 SHA256 0e19ea16b6c6aa6c7b222063127427bef3b835adbbd9e6606a972a912599d014 SHA512 1621a7862e775c8ffe60d2fca131b002fc8ec3b7370b50c9d6463b539d6b85f504cf2f56cf350d8928cd144ce821b05b37edd3a575d416d167cee237ed96df24 WHIRLPOOL 4fbe25e67f720f86e34fb61c8846b1cae99e93dc27f591bd597318cc5866fbb12e57406cac2cf17bcf97643256ead504234b2c38a64e2543cb884f083c070445
+DIST abi-compliance-checker-2.2.tar.gz 229812 SHA256 9fb7b17e33d49e301d02a6374fbd2596feb53ecc77194879a4e1c2d1e24b4ddb SHA512 4bfdad1d708f2498187a0c06cbabced3c34a05b44900231d453a8dcea88df3f381a180aa2d4cbb4c3df14d0013660b355f630e890e3715c79ce8af3a385759e7 WHIRLPOOL b4f44bc2359865d10640a532689ef519a433c9310c3256c53a04dc9009b61446a6d5f8bae5f4480938a98467f38d6a8e65716f951eccedca9adf19f7f07dc1e6
+EBUILD abi-compliance-checker-2.1.ebuild 622 SHA256 d9e7cb05609a6f6cfb8f589be8cea906e80e0c43c589a5604245e293c0ee6190 SHA512 49650e30c2078a5c7c128f92640991342af271acaf833de67bf887ba30e52e2e1d7f053a6ae7f3c018dc99d793102cb7973bfcb61c92b65f187d59cb39d29889 WHIRLPOOL 43711173e1e93af9edecbb3667047c711e05c9e0899a6482826a0ce48390bfff68e3d592a48ab7308184790694e642f5240b11c2153cd8653f9545cf48a8322f
+EBUILD abi-compliance-checker-2.2.ebuild 622 SHA256 d9e7cb05609a6f6cfb8f589be8cea906e80e0c43c589a5604245e293c0ee6190 SHA512 49650e30c2078a5c7c128f92640991342af271acaf833de67bf887ba30e52e2e1d7f053a6ae7f3c018dc99d793102cb7973bfcb61c92b65f187d59cb39d29889 WHIRLPOOL 43711173e1e93af9edecbb3667047c711e05c9e0899a6482826a0ce48390bfff68e3d592a48ab7308184790694e642f5240b11c2153cd8653f9545cf48a8322f
+EBUILD abi-compliance-checker-9999.ebuild 740 SHA256 b61bd637212d09907cef1465eeb259c917dfb9d393c739936131f190f83dc94e SHA512 0d7b959e935298a67596b38bffe8ebd03698f7bd823767e43769182bbf6f1b6a530a61d569ef49d1a1990edc688d05ed76c7d635b280d9da587de4db302d574a WHIRLPOOL 0f175f6c619f2eb517e71c31bcedb2a3221942612c1fb4d5b0f6d0cb31f5abfa1d8638ec5e7c566c6ada99f27a007642f6c4e738d3e0784b41e2c2a95a733739
+MISC ChangeLog 6530 SHA256 853cd36be8a4965808af10373b60c303a16c085de22f05b3fc9bca9cc2da80af SHA512 7641e771a20fdb30cc59927bc7987affc7e282a94437c121173ad7ced873bf19889d164d310979410742aeaee91ca939b9a70a078ccbb36d1e96297921806412 WHIRLPOOL 614bce1f98365ae73330b8f15336d01b1029b1b838eafe0a44d4c8d76e4a802f9e05ad10b4711e26440d9e4b0bcc6582c77b252e347ca5b46722db4e65b3acdd
+MISC ChangeLog-2015 1485 SHA256 e9e00845c684ad79409d6f295c60a89aa35032200ca571fc9eccfacfa6d4a655 SHA512 be4513de37319a383fd6d803c0969e65415f3c29705294b8efb8e76ba5f75f3db0030ad805f97758130c89ddcd05530d9ab1af5608fc451d2abd54ab945562af WHIRLPOOL 73846a0e3745a17f460e5e164154dcef7fb3ea7cf249fb9b531c41b38ab2af3117be71ac90b6ca384d4fce4909b6b6bdd4184b8f4431557a385fd066bd3abec2
+MISC metadata.xml 445 SHA256 db107071fab69f87e7fb6dd19cf919d3c72aea251518111aad9c30e72b451ea1 SHA512 a71d08620d61505c7cf7c6b56503c9275795980c97a1c4897bc20455674c60bd6b09bb5002a5faa0360be992fc775152c95b2a3366966cd7e636103e480d9dd2 WHIRLPOOL 97dc3f3a3af51c3cb7f51ed53aa9b8bd4852151df0b270bc67f5b6d244a91da10207841384d993b6b42103e3b3fa30bd92e9cd45a3783e426cf867e89d44cff2
diff --git a/dev-util/abi-compliance-checker/abi-compliance-checker-2.1.ebuild b/dev-util/abi-compliance-checker/abi-compliance-checker-2.1.ebuild
new file mode 100644
index 000000000000..1057874dcfaa
--- /dev/null
+++ b/dev-util/abi-compliance-checker/abi-compliance-checker-2.1.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="A tool for checking backward compatibility of a C/C++ library"
+HOMEPAGE="http://ispras.linuxbase.org/index.php/ABI_compliance_checker"
+SRC_URI="https://github.com/lvc/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-lang/perl"
+RDEPEND="${DEPEND}
+ dev-util/abi-dumper
+ dev-util/ctags"
+
+src_compile() {
+ :
+}
+
+src_install() {
+ dodir /usr
+ perl Makefile.pl --install --prefix="${EPREFIX}"/usr --destdir="${D}" || die
+ einstalldocs
+}
diff --git a/dev-util/abi-compliance-checker/abi-compliance-checker-2.2.ebuild b/dev-util/abi-compliance-checker/abi-compliance-checker-2.2.ebuild
new file mode 100644
index 000000000000..1057874dcfaa
--- /dev/null
+++ b/dev-util/abi-compliance-checker/abi-compliance-checker-2.2.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="A tool for checking backward compatibility of a C/C++ library"
+HOMEPAGE="http://ispras.linuxbase.org/index.php/ABI_compliance_checker"
+SRC_URI="https://github.com/lvc/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-lang/perl"
+RDEPEND="${DEPEND}
+ dev-util/abi-dumper
+ dev-util/ctags"
+
+src_compile() {
+ :
+}
+
+src_install() {
+ dodir /usr
+ perl Makefile.pl --install --prefix="${EPREFIX}"/usr --destdir="${D}" || die
+ einstalldocs
+}
diff --git a/dev-util/abi-compliance-checker/abi-compliance-checker-9999.ebuild b/dev-util/abi-compliance-checker/abi-compliance-checker-9999.ebuild
new file mode 100644
index 000000000000..e78e618f979b
--- /dev/null
+++ b/dev-util/abi-compliance-checker/abi-compliance-checker-9999.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+#if LIVE
+EGIT_REPO_URI="https://github.com/lvc/${PN}.git"
+
+inherit git-r3
+#endif
+
+DESCRIPTION="A tool for checking backward compatibility of a C/C++ library"
+HOMEPAGE="http://ispras.linuxbase.org/index.php/ABI_compliance_checker"
+SRC_URI="https://github.com/lvc/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-lang/perl"
+RDEPEND="${DEPEND}
+ dev-util/abi-dumper
+ dev-util/ctags"
+
+#if LIVE
+SRC_URI=
+KEYWORDS=
+#endif
+
+src_compile() {
+ :
+}
+
+src_install() {
+ dodir /usr
+ perl Makefile.pl --install --prefix="${EPREFIX}"/usr --destdir="${D}" || die
+ einstalldocs
+}
diff --git a/dev-util/abi-compliance-checker/metadata.xml b/dev-util/abi-compliance-checker/metadata.xml
new file mode 100644
index 000000000000..66d00240ad20
--- /dev/null
+++ b/dev-util/abi-compliance-checker/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>mgorny@gentoo.org</email>
+ <name>Michał Górny</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>floppym@gentoo.org</email>
+ <name>Mike Gilbert</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">lvc/abi-compliance-checker</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/abi-dumper/Manifest b/dev-util/abi-dumper/Manifest
new file mode 100644
index 000000000000..22d58be69490
--- /dev/null
+++ b/dev-util/abi-dumper/Manifest
@@ -0,0 +1,8 @@
+DIST abi-dumper-0.99.15.tar.gz 40265 SHA256 37d79ad151ac0bfbd25c1280b31f9521b72bc874129cd9cb182dc1fb488a39e0 SHA512 695462c8972e7f5abcf3415652ef6bb52d9770ae5fc21aceb44b0eaadc087f23d6c1cd92d6e29961141cfa863b0bad7944cee826df2aa8c83f3be7e42d098e61 WHIRLPOOL 387a8bac36d447207483621d332abb2cee683725f9c4766439cf1e27a44e8914f1abab6b9e6cc4839c2dd2a3ba75bdb65b8dd54ecdd9902888d47f1152a9d6ba
+DIST abi-dumper-0.99.19.tar.gz 44380 SHA256 6bbc35795839a04523d9e7bdb07806b9a661e17d8be0e755c99e4235805d4528 SHA512 4afbaf1b15e61d67f25849ace34074fb21f09165cef04f2a554c8d0c6930912cd890384ce3949f6aeee60cddf6b100b5bbc34f8b21f1e5d611fb31c06849040b WHIRLPOOL 121fba37c6130a7b54858cfb1ecc022aea5257a43c5d3f0a5572e2df2d15d885efeb1b51736ef54c806cc8839b0bbff733bd07bef946b7aa30751de1eba9eee8
+DIST abi-dumper-1.1.tar.gz 49012 SHA256 ef63201368e0d76a29d2f7aed98c488f6fb71898126762d65baed1e762988083 SHA512 28b791de74dafd0b3d78314c1c722d03bfeb0daa5cb702def9268e4c64f49c79b4fd92d4adf89a20f79c745ef70bc18d2b1143fbe0c7ad192b2f64cb1551b371 WHIRLPOOL ae157354c066431f5aeaa86b6f4a8f427260a70bc39fa5da47b80f81381e4b17a7c423ec0cba2240feb752ba33f4ee56d3943ffa3540df69f7a906389cd38226
+EBUILD abi-dumper-0.99.15.ebuild 587 SHA256 06baa2408167a5553a0f8a20fb46d1a7bcd742c50d09237be9c6314ea7098ae7 SHA512 50824fb0bb6af19507c262a3374208bd1068ce1ada7b555e0e2ac20319ed3363667f42a63ecae6ee693935d605e9f3975708db87858e08c2865ef7bc28369b72 WHIRLPOOL 43860ddd6b1edbfde7674860196e676292604417620d46acb411097aedb41b4d992f955e94e7f3e54d2a6b47399297bf38c9a5ab356764280d64cb341772f589
+EBUILD abi-dumper-0.99.19.ebuild 587 SHA256 06baa2408167a5553a0f8a20fb46d1a7bcd742c50d09237be9c6314ea7098ae7 SHA512 50824fb0bb6af19507c262a3374208bd1068ce1ada7b555e0e2ac20319ed3363667f42a63ecae6ee693935d605e9f3975708db87858e08c2865ef7bc28369b72 WHIRLPOOL 43860ddd6b1edbfde7674860196e676292604417620d46acb411097aedb41b4d992f955e94e7f3e54d2a6b47399297bf38c9a5ab356764280d64cb341772f589
+EBUILD abi-dumper-1.1.ebuild 587 SHA256 78c9f585ff3287897b638409168d644718877b030bdfefaf705ea8d361cf3777 SHA512 d9b0ed3d94f6bba83e949e4e3ee309d544d53efe58666e69b37286f879201ed6d2f00e62ac7d8994c711571c6a65a3e02115066a8edcecefdc14fa8dd07ce873 WHIRLPOOL 1fdfc95133ca9a38b6d6ece3f54d37b0d200a469a8ff96f97141eb54f64c4873ca0796b6b1d828b03b7bb0d5f0529ac818387ec7d1b75f7d4b4836a97f762e84
+MISC ChangeLog 322 SHA256 e28006c24d99e3fabbddea3b3bec4239228a04ad7baf6235712be6c1bc0af18e SHA512 46d9a5325db44a94735c947c5827be6e27950838b671963246622e1face5f6bea75e839601c6f36833d1f8ba8a7750f5fb9f1f6c4460ec3dd91b176060b9ae68 WHIRLPOOL a6844b518f37bb000be50305b464604f6c4bcda9cb029aafcbd33ff8b218510330c27885fbc732f265d9dc29b5e732d8b745bae695e0b2101d0714b89b280ed9
+MISC metadata.xml 433 SHA256 b8a3e77c6e2dde274c0d335bb430943d8fb260bbec2fdc79cd3dccc96cab757b SHA512 1d2b626dd625e2469efe07130c1ccb1d3727f61226a7759d8a9c4eb942c37f992bc8d7bddcb54869b4316af8442c92ff56b76981fcd7bb779920e8da4bb1116a WHIRLPOOL 8bdb4a0e369116cbb396aab66c4391ae7a3f045c1c093e9e4c9f1498bc22d5d28e6bda04d15bf7c47cc931521645e90acc0e4f1b91462a6f8e299864649338ba
diff --git a/dev-util/abi-dumper/abi-dumper-0.99.15.ebuild b/dev-util/abi-dumper/abi-dumper-0.99.15.ebuild
new file mode 100644
index 000000000000..1a4ff5dc50af
--- /dev/null
+++ b/dev-util/abi-dumper/abi-dumper-0.99.15.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Dump ABI of an ELF object containing DWARF debug info"
+HOMEPAGE="https://github.com/lvc/abi-dumper"
+SRC_URI="https://github.com/lvc/abi-dumper/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="dev-lang/perl"
+RDEPEND="${DEPEND}
+ dev-libs/elfutils
+ dev-util/vtable-dumper"
+
+src_compile() {
+ :
+}
+
+src_install() {
+ dodir /usr
+ perl Makefile.pl -install -prefix "${EPREFIX}/usr" -destdir "${D}" || die
+ einstalldocs
+}
diff --git a/dev-util/abi-dumper/abi-dumper-0.99.19.ebuild b/dev-util/abi-dumper/abi-dumper-0.99.19.ebuild
new file mode 100644
index 000000000000..1a4ff5dc50af
--- /dev/null
+++ b/dev-util/abi-dumper/abi-dumper-0.99.19.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Dump ABI of an ELF object containing DWARF debug info"
+HOMEPAGE="https://github.com/lvc/abi-dumper"
+SRC_URI="https://github.com/lvc/abi-dumper/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="dev-lang/perl"
+RDEPEND="${DEPEND}
+ dev-libs/elfutils
+ dev-util/vtable-dumper"
+
+src_compile() {
+ :
+}
+
+src_install() {
+ dodir /usr
+ perl Makefile.pl -install -prefix "${EPREFIX}/usr" -destdir "${D}" || die
+ einstalldocs
+}
diff --git a/dev-util/abi-dumper/abi-dumper-1.1.ebuild b/dev-util/abi-dumper/abi-dumper-1.1.ebuild
new file mode 100644
index 000000000000..fcf03f1cc2b8
--- /dev/null
+++ b/dev-util/abi-dumper/abi-dumper-1.1.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Dump ABI of an ELF object containing DWARF debug info"
+HOMEPAGE="https://github.com/lvc/abi-dumper"
+SRC_URI="https://github.com/lvc/abi-dumper/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="dev-lang/perl"
+RDEPEND="${DEPEND}
+ dev-libs/elfutils
+ dev-util/vtable-dumper"
+
+src_compile() {
+ :
+}
+
+src_install() {
+ dodir /usr
+ perl Makefile.pl -install -prefix "${EPREFIX}/usr" -destdir "${D}" || die
+ einstalldocs
+}
diff --git a/dev-util/abi-dumper/metadata.xml b/dev-util/abi-dumper/metadata.xml
new file mode 100644
index 000000000000..410510d0f021
--- /dev/null
+++ b/dev-util/abi-dumper/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>floppym@gentoo.org</email>
+ <name>Mike Gilbert</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>mgorny@gentoo.org</email>
+ <name>Michał Górny</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">lvc/abi-dumper</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/abootimg/Manifest b/dev-util/abootimg/Manifest
new file mode 100644
index 000000000000..8ee691cb9e62
--- /dev/null
+++ b/dev-util/abootimg/Manifest
@@ -0,0 +1,3 @@
+DIST abootimg-20150323.tar.gz 19311 SHA256 36efff208101a8d04cc84085849cda3300cea71f062c8d425c534e5f85f6cc3f SHA512 38e633c5c32bae472cd1ade9f4a3fa9a5e8ecd17da947aeaf976f639966007ba776a3ac877a607c9f3a416c67682afc9f7789e1560625b75aeaf78a88dfce558 WHIRLPOOL eb94ba4307508dea8d3a63a5981173c2f234111eb6c10aa6b57c56547c9c938397b57d5e758391bc9457826a7e39d877ddb5765829359e93ac2b56780a9370c0
+EBUILD abootimg-20150323.ebuild 540 SHA256 7e0cb6564cc9d35a3e1e4015e1c0ce7f3009b5d2d249dc16a9d1615f911068ee SHA512 649fbbf27edc8d5cc38e9462571de0fb5bee72899d9d950d96a6c55f14cd6c6236c50afe912b2dd3fd2a999f670e60f568eee32d0444b8f0e9e135a7131a26bd WHIRLPOOL c46d87bf7d27ff284d9fab4c9c3fed112e44dc0f51feed3807bf9669ceedb0465efb1dc701415919adb8d6bee10ea406ea2d7aac5950da3148817fd555f2bb31
+MISC metadata.xml 250 SHA256 b7a9bbddea766f7eb561a7d52a7f6be34183f44d309efae362085c1ab536ae09 SHA512 d2115b154bf731eac11fd7b96a95baa2467cb660371f7a3dc7a7a77cf4a6cf992b97c5353f184010eac1d37cdfffa6c5d9ec35d82e171f0fad5086767d0173a5 WHIRLPOOL 4cf60a5d2fb9d0af392a436d8829e387883112156cb313f44c0e58ccd52a0552a6d307ee3ceb8be396ac044da186698e41faf261f6cf6da0a1aff0ba8b47eb17
diff --git a/dev-util/abootimg/abootimg-20150323.ebuild b/dev-util/abootimg/abootimg-20150323.ebuild
new file mode 100644
index 000000000000..8939a70bcb37
--- /dev/null
+++ b/dev-util/abootimg/abootimg-20150323.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+COMMIT="1ebeb393252ab5aeed62e34bc439b6728444f06e"
+DESCRIPTION="Manipulate Android boot images."
+HOMEPAGE="https://gitlab.com/ajs124/abootimg"
+SRC_URI="https://gitlab.com/ajs124/abootimg/repository/archive.tar.gz?ref=$COMMIT -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="sys-apps/util-linux"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${PN}-${COMMIT}-${COMMIT}"
+
+src_install() {
+ dobin abootimg
+}
diff --git a/dev-util/abootimg/metadata.xml b/dev-util/abootimg/metadata.xml
new file mode 100644
index 000000000000..915f00227065
--- /dev/null
+++ b/dev-util/abootimg/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>zx2c4@gentoo.org</email>
+ <name>Jason A. Donenfeld</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-util/ald/Manifest b/dev-util/ald/Manifest
new file mode 100644
index 000000000000..3e1fbb5babbc
--- /dev/null
+++ b/dev-util/ald/Manifest
@@ -0,0 +1,5 @@
+DIST ald-0.1.7.tar.gz 665998 SHA256 673575054a203db13cb01090491c5be30f376ac6d6e4209c8995011ae5cd7c02 SHA512 dbde0929beebe51ef5f77055b5f396630e16fd01ded4210d828f9ce97c676e7863700a98bf02d26e10cc2d8481adf329d8c8cb11c866302361221f072dbf45bf WHIRLPOOL 73a2cf1a09561f8bcba3386034e1fba574c02f9ab2df574fdcf38e88789b98467b42da0f8d04a84eb8ae07b8d04925d18d6acbbceae47a457f812dffef791b2b
+EBUILD ald-0.1.7-r2.ebuild 624 SHA256 7cbee6ff3937525a8fffae2918b1932ddcc52fad0d679e128ec28e1d0cfe5aca SHA512 4d490fb004e138d4f008fd5c91b398bd2d37a87555c95d0c11382c9739e4a0a2fe81573f747614b10165214b89e7c88bcaf25569bea49f7701a3b576fb209c19 WHIRLPOOL 61fd63e07811bccbf186cddf5c7519924877251f6dc0fac9507edbbd926e8e1c0043443a1707c245a23afdc11939a5f35ae206d0aed4bd26553ab25afc48927c
+MISC ChangeLog 3162 SHA256 d8ff1b8c3f1356ec988860eb1d850e1db2ad372055b7ee36f5c656c7ceb9bdbb SHA512 9a7f92b69cfb69cebcd1cd4741ccec210f9758712a7ce03599ef33f0d43d509b2b1e7de21a77aa0f764c0d46d90f306a2fcb490df96c79f01e21629ba8c2ec7c WHIRLPOOL 45db0af85ab45d512b03adacd8aa41c34ff2e6cded5f84aa0d576b3669fd9d17b3b4f8900d407e1a674d77df4ce2a391c2522ab91b195c5f2ffaab8750870ea0
+MISC ChangeLog-2015 927 SHA256 46d6aac9e0e7a55572de611ff1b393809730830f8babdd03a20d2fff1b1d2a13 SHA512 8edf7a64f6662b42f592c8e1abbf7c18e8f98ce94b785cd9f8180b8a3ff23b0d830f473eff27cf5953b630b19fcb8fb50909d8e18233c5f3035fe0c4a5bce351 WHIRLPOOL 39e9e0c57c24f927f2b280af333d407842874c0c2149bdb2b809003d8593fbcf92e3b505140422367299325241f670ec4f0a5d468530c24ec7aed1b15c6ef8d2
+MISC metadata.xml 522 SHA256 968754c3f3db610ae3fb527a1ffb49e4be8af398f25ff80e355732a226cbec48 SHA512 6744b2c2ef3204f09694e7570d390d01ef869fcdb3475638a4f122c9769fd5dab4147861303fb3175b59f90a063eca254ede69a8021db6b74842a5d959158c01 WHIRLPOOL f62a572d133b7fe53a4c8df07c3f410729dc71c17fda626a89efa5d9f601852a9bc197117b7d326a5d527f7dfae62a90775ddcc75caa93f5916b9e21f1b5741d
diff --git a/dev-util/ald/ald-0.1.7-r2.ebuild b/dev-util/ald/ald-0.1.7-r2.ebuild
new file mode 100644
index 000000000000..cb433ceca656
--- /dev/null
+++ b/dev-util/ald/ald-0.1.7-r2.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit autotools
+
+DESCRIPTION="Assembly Language Debugger"
+HOMEPAGE="http://ald.sourceforge.net/"
+SRC_URI="mirror://sourceforge/ald/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="x86"
+IUSE="debug ncurses"
+
+DEPEND="ncurses? ( sys-libs/ncurses:= )"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ # respect CFLAGS (bug #240268)
+ sed -i -e "/^CFLAGS/d" configure.ac || die 'sed on CFLAGS failed'
+ eapply_user
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_enable ncurses curses) \
+ $(use_enable debug assert)
+}
diff --git a/dev-util/ald/metadata.xml b/dev-util/ald/metadata.xml
new file mode 100644
index 000000000000..f3f424427bc7
--- /dev/null
+++ b/dev-util/ald/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>bircoph@gentoo.org</email>
+ <name>Andrew Savchenko</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">ald</remote-id>
+ </upstream>
+ <longdescription>
+ Assembly Language Debugger --- a tool for debugging executable programs at the assembly level.
+ It currently runs only on Intel x86 platforms.
+ </longdescription>
+</pkgmetadata>
diff --git a/dev-util/alleyoop/Manifest b/dev-util/alleyoop/Manifest
new file mode 100644
index 000000000000..3467c491e6d5
--- /dev/null
+++ b/dev-util/alleyoop/Manifest
@@ -0,0 +1,5 @@
+DIST alleyoop-0.9.8.tar.xz 252292 SHA256 adaa432fbbdccdb07751b2a5b8f0159a31d8d8f3d27503374a96122778163ff1 SHA512 b056b41692da1824e233160c1053075cabcd11394c8c571dd654167be3ef29680357f69371b36f672b4e8b8a769ba3d0a33ad48c1409a8141bcbfa0ba8187bfb WHIRLPOOL fcb22915144a472d64a477149abd4564ca690211cf0e0f1157edd164cf8e3a07de718b0ac158af3b533a62bd0c794499eb0f129604d96dc2cce10f0d909bad0a
+EBUILD alleyoop-0.9.8.ebuild 587 SHA256 22c3950f9e7e9ffb780c0b48f069a6eb567007ba80d03593afd96d77bbac03a8 SHA512 fdb4ec58c543acf216650ac99e0eb2f0238e94cecdad74bc6f6e3d2c40e0e4e6bde3472a55b50dc6d72e4fbd67cce63036e8e1e28ca8f2c26e0855c4b7193948 WHIRLPOOL 494693cc87a084b768269e0f6982dd14760d6d830c2f853bcfc38fb06a48ec6a9a72cd7bd22dc770f869357ed75834da953c8ca5c911bbf700c4166a5ed6144e
+MISC ChangeLog 3071 SHA256 cacba7d5aa562a301ab130eef349d29330623671734e215f1d8b267130c75d88 SHA512 255c092fea54447b81d7f429a31db555c155377cb775ce52f1ad7e1af1827c0b6db2fc8b5aa266bf05b5708fe22e7360b7ece2a825afe2e898c8ceb8257b7766 WHIRLPOOL 0287a63c67e8e7f8137056e41f1e7b8b6c0aca2bc1508b68b8f594ff6b2532d6cbbadadc0bea60236b065498b1c118f0f6511fc7fbddda32571f8991324f4b83
+MISC ChangeLog-2015 3953 SHA256 96c6684c13654d637834a9b5bc0343833453f5aa406324da2c3167fab52d82f5 SHA512 c6b37f240048e4b76734fc3e9abbc3527b64e20fcd6ec33a2c0a52ce46c1ea16b5e130b84c195afcfe7f8c3b306ae3a08290c415110d41187cac91e659c60702 WHIRLPOOL b96ec61ae110fd24a9bee1d08e1ae929b9f278251ca6a076ef306eff362777ba88a3c6ccae6fdd8134c88159d61971590bf0731b022779ff6aee9689ce82c959
+MISC metadata.xml 250 SHA256 ad12f5d97c0e38c26b3ef38b596562e8bb658b076567740b911387e8748efd3d SHA512 7119be34df805f2437d97c678ccdd6ac4c41b354b8c73a43aea7813749d3c8b595ee0fa852f2d3be3452977812941dad018e5508e548db6036ecfbad4442d5c5 WHIRLPOOL 3e7f61ccf7d5d137b694d8a2f25755a34a0e8d5668f11b48240f043bf21454efcd4d634673bd9ed1a7fc895b1948d9114bf848c68ed727f9d9d41afb9a6cb196
diff --git a/dev-util/alleyoop/alleyoop-0.9.8.ebuild b/dev-util/alleyoop/alleyoop-0.9.8.ebuild
new file mode 100644
index 000000000000..bb2bdbe4eace
--- /dev/null
+++ b/dev-util/alleyoop/alleyoop-0.9.8.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+GCONF_DEBUG="no"
+
+inherit gnome2
+
+DESCRIPTION="A Gtk+ front-end to the Valgrind memory checker"
+HOMEPAGE="http://alleyoop.sourceforge.net/"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="-alpha amd64 ~ppc -sparc x86"
+IUSE=""
+
+RDEPEND="
+ >=dev-libs/glib-2.14:2
+ >=x11-libs/gtk+-2.2:2
+ >=gnome-base/gconf-2.2:2
+ >=gnome-base/libgnomeui-2.2
+ >=gnome-base/libglade-2.2
+ gnome-base/libgnome-keyring
+ sys-devel/binutils
+ >=dev-util/valgrind-2.4
+"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+"
diff --git a/dev-util/alleyoop/metadata.xml b/dev-util/alleyoop/metadata.xml
new file mode 100644
index 000000000000..dc8392005a86
--- /dev/null
+++ b/dev-util/alleyoop/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-needed -->
+ <upstream>
+ <remote-id type="sourceforge">alleyoop</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/amtterm/Manifest b/dev-util/amtterm/Manifest
new file mode 100644
index 000000000000..54267295feb5
--- /dev/null
+++ b/dev-util/amtterm/Manifest
@@ -0,0 +1,9 @@
+DIST amtterm-1.3.tar.gz 37671 SHA256 769d02f087c7594e4a29a901580b2d39154db49ca1f3a6881598d0c595b9bc50 SHA512 04514b7d7a38f7e579739186829f1aba95b3580d24a47fe82382e1c85e8a24a11983117e5cc75c1f7e1f360927b40a5adc1d2ed65a2e325e7abcc01320aa654b WHIRLPOOL 86e873ebe06ef4fab401b4f2fbe876b540503a0ec21fd415108a5e5f5604dd5b649800055be5e5a14b59019cca7f34b9975dce79fe223284cbf850cd729f869b
+DIST amtterm-1.4.tar.gz 38445 SHA256 e10af2b02dbf66fb24abd292b9ddc6d86b31eea09887da5cb0eb8fb2ee900e21 SHA512 64bad394a2526291daa72fd211952caff20c0aa1f1c580dcbae3c92882c9fd57238c140e14749a9d58580e49890abd447e7ca466b39221301e4108c19298502f WHIRLPOOL 2004c69ad03b164c317f3e7d8fdedb83196cf79fee51642b912a380ecdb17a895de67eedf4beadf0e5d5293928fee48aaf79d521d3949bc6ddb1c3110d215a29
+DIST amtterm-1.6.tar.gz 40804 SHA256 1242cea467827aa1e2e91b41846229ca0a5b3f3e09260b0df9d78dc875075590 SHA512 b10777727cf7f931e4b04fff7c621ea6e94989738833fe4f830bd795c8be3b0e983100b34a2ea5feb48221f022b3498a819c9f4fba9c7722226d56d374a1d986 WHIRLPOOL e0a93390bc3113b2d923d0debd933ba2b8c65dbe80f0c39a392a6fd7e669a9ff8b9ab8a0666621916d2517badaf1634e598b9eb8347d92f17cfd71d0cb2ebafe
+EBUILD amtterm-1.3-r1.ebuild 1004 SHA256 5a872a1832a58d99e8b2280457ca6d6401ee55dc448471cb8b00f8390a031a41 SHA512 d56198fb989376e9222af6db3fcfda37bd45f3bfdcbd8e351e4f760b77d40d265230fc38f332ca7f2da37b699e71b158949835cd0aef15e159121870d7543aed WHIRLPOOL b9b0d9f43dbf3d027ab1a011dcf71822ed74b0c73a4a35e665b8a3bc172943843057fe22ec65a586b8566e4381faaf328145540798dcfdb4af09cea13d102ba5
+EBUILD amtterm-1.4.ebuild 1004 SHA256 5a872a1832a58d99e8b2280457ca6d6401ee55dc448471cb8b00f8390a031a41 SHA512 d56198fb989376e9222af6db3fcfda37bd45f3bfdcbd8e351e4f760b77d40d265230fc38f332ca7f2da37b699e71b158949835cd0aef15e159121870d7543aed WHIRLPOOL b9b0d9f43dbf3d027ab1a011dcf71822ed74b0c73a4a35e665b8a3bc172943843057fe22ec65a586b8566e4381faaf328145540798dcfdb4af09cea13d102ba5
+EBUILD amtterm-1.6.ebuild 1007 SHA256 35415f8c1d5671dbc7ba51ecb490a6d687ff7f65ffbfe244934a07eb4ead125c SHA512 1404756ba763dcd93dcbee6de2bee4413940fc304f4ae88af4829a88f6e1ed6451e1ec1f25adf6cbcaa00d956c1169650f2ccf8834f7bf1d6576d259eefd7e20 WHIRLPOOL 6d55af1e478ae7ccba93aad927e34e7f0eb13147c9c3c17c219bcc2fd77ebfe93bd891cfcb4fca4096e4d958eab290886d09949c574c0972999914c018ad7383
+MISC ChangeLog 2226 SHA256 ff4bc2317de114bc21aa851b224406f66dd40296a785d186548dc417937c5b13 SHA512 9beceea4b1ea388ca983d88c816301576074b3889a6e2165f9531519b9ca349e9e10d4a2a24198bbd2db47329145b6b7966e3b8e59dd2b033b48a4d8ad705887 WHIRLPOOL 817bf1bf2ed0f2fc4f4f1b77fd317bcaf816224e03f3f6734d6ab1218339d939962a73f39e4865745459f7472ca44f33120d0d5758909e3a0c4f7a22cdd17596
+MISC ChangeLog-2015 1212 SHA256 e0ccf5b5b3a332d12cf262b3255c15af722d51ab2d6859ea5995ae7dcdcb04da SHA512 3c252020348395fb152095e24dbb6b07795658722feca66649003607adc4c4391f612be2f79c3866284be142691ec1151747a5756c70e533f79483d5f7ac55fe WHIRLPOOL e2d49f2ccfff0eaecc667dd0267fd891b00d8b4df8a25d7418bb5feed53d7afa2e8cfc969c7e062bf97e994f032a4663f357f9c5fe054dcc83090bf29c07a519
+MISC metadata.xml 247 SHA256 0deec0776f26fb762fdf7711f4589b14f52a2456436ef557eec62a2cf2fb2bb7 SHA512 29cf52c16b0cce69899d9c2da8acd9144b7d760442aa323b854dceadb42459e009545193b1df7911ac2241b59f4819b4a6bb1d206d6f57953f770031433bb6b7 WHIRLPOOL a135fa622e99d3dcdb432bc6b3c366076b3d86b4bfd9a76c852d781b8e9152541c7e7a2c7c6d6a3c4d2200dce792847a08166aaf7c17c22b6299dfe868234dec
diff --git a/dev-util/amtterm/amtterm-1.3-r1.ebuild b/dev-util/amtterm/amtterm-1.3-r1.ebuild
new file mode 100644
index 000000000000..7b6ed194957b
--- /dev/null
+++ b/dev-util/amtterm/amtterm-1.3-r1.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils
+
+DESCRIPTION="A nice tool to manage amt-enabled machines"
+HOMEPAGE="https://www.kraxel.org/blog/linux/amtterm/"
+SRC_URI="https://www.kraxel.org/releases/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+IUSE="gtk"
+
+DEPEND="gtk? (
+ x11-libs/gtk+:2
+ x11-libs/vte:0 )"
+RDEPEND="${DEPEND}
+ dev-perl/SOAP-Lite"
+
+src_prepare() {
+ sed -i -e 's|\(INSTALL_BINARY := \$(INSTALL)\) \$(STRIP)|\1|' mk/Variables.mk || die
+}
+
+src_configure() {
+ echo "LIB := $(get_libdir)" > Make.config || die
+
+ # enable gamt
+ echo "HAVE_GTK := $(usex gtk)" >> Make.config || die
+ echo "HAVE_VTE := $(usex gtk)" >> Make.config || die
+}
+
+src_compile() {
+ prefix="/usr" emake || die
+}
+
+src_install() {
+ prefix="/usr" emake DESTDIR=${ED} install || die
+
+ if ! use gtk; then
+ rm -rf "${D}"/usr/share/applications || die
+ rm -rf "${D}"/usr/share/man/man1/gamt* || die
+ fi
+}
diff --git a/dev-util/amtterm/amtterm-1.4.ebuild b/dev-util/amtterm/amtterm-1.4.ebuild
new file mode 100644
index 000000000000..7b6ed194957b
--- /dev/null
+++ b/dev-util/amtterm/amtterm-1.4.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils
+
+DESCRIPTION="A nice tool to manage amt-enabled machines"
+HOMEPAGE="https://www.kraxel.org/blog/linux/amtterm/"
+SRC_URI="https://www.kraxel.org/releases/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+IUSE="gtk"
+
+DEPEND="gtk? (
+ x11-libs/gtk+:2
+ x11-libs/vte:0 )"
+RDEPEND="${DEPEND}
+ dev-perl/SOAP-Lite"
+
+src_prepare() {
+ sed -i -e 's|\(INSTALL_BINARY := \$(INSTALL)\) \$(STRIP)|\1|' mk/Variables.mk || die
+}
+
+src_configure() {
+ echo "LIB := $(get_libdir)" > Make.config || die
+
+ # enable gamt
+ echo "HAVE_GTK := $(usex gtk)" >> Make.config || die
+ echo "HAVE_VTE := $(usex gtk)" >> Make.config || die
+}
+
+src_compile() {
+ prefix="/usr" emake || die
+}
+
+src_install() {
+ prefix="/usr" emake DESTDIR=${ED} install || die
+
+ if ! use gtk; then
+ rm -rf "${D}"/usr/share/applications || die
+ rm -rf "${D}"/usr/share/man/man1/gamt* || die
+ fi
+}
diff --git a/dev-util/amtterm/amtterm-1.6.ebuild b/dev-util/amtterm/amtterm-1.6.ebuild
new file mode 100644
index 000000000000..d9222f8bf2e6
--- /dev/null
+++ b/dev-util/amtterm/amtterm-1.6.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils
+
+DESCRIPTION="A nice tool to manage amt-enabled machines"
+HOMEPAGE="https://www.kraxel.org/blog/linux/amtterm/"
+SRC_URI="https://www.kraxel.org/releases/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+IUSE="gtk"
+
+DEPEND="gtk? (
+ x11-libs/gtk+:3
+ x11-libs/vte:2.91 )"
+RDEPEND="${DEPEND}
+ dev-perl/SOAP-Lite"
+
+src_prepare() {
+ sed -i -e 's|\(INSTALL_BINARY := \$(INSTALL)\) \$(STRIP)|\1|' mk/Variables.mk || die
+}
+
+src_configure() {
+ echo "LIB := $(get_libdir)" > Make.config || die
+
+ # enable gamt
+ echo "HAVE_GTK := $(usex gtk)" >> Make.config || die
+ echo "HAVE_VTE := $(usex gtk)" >> Make.config || die
+}
+
+src_compile() {
+ prefix="/usr" emake || die
+}
+
+src_install() {
+ prefix="/usr" emake DESTDIR=${ED} install || die
+
+ if ! use gtk; then
+ rm -rf "${D}"/usr/share/applications || die
+ rm -rf "${D}"/usr/share/man/man1/gamt* || die
+ fi
+}
diff --git a/dev-util/amtterm/metadata.xml b/dev-util/amtterm/metadata.xml
new file mode 100644
index 000000000000..40aa45df2b01
--- /dev/null
+++ b/dev-util/amtterm/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>patrick@gentoo.org</email>
+ <name>Patrick Lauer</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-util/android-ndk/Manifest b/dev-util/android-ndk/Manifest
new file mode 100644
index 000000000000..e0f1a86e5c5f
--- /dev/null
+++ b/dev-util/android-ndk/Manifest
@@ -0,0 +1,42 @@
+DIST android-ndk-10d-amd64.7z 459151600 SHA256 812949f9299afd4b91890863054dc42f6547b6d485211d5f0faca9f286685df6 SHA512 b2ba10d7757ed7189b4e6dc2ecd38fce0c32dc6701151542b9e225e890faee84dded30dd4e907b0e42473e2a6df8ef4d46f37514edc270a04e1129d9c9e677fa WHIRLPOOL 6eddc1401db7d2766335f8a9ddc2dbe395999a1e210855e23ee7b3c5f65ff1e56859c8cdcaff598acd52f8ffe30e148e6ff2e6e2f712d1e4f69fb350a8d3a174
+DIST android-ndk-10d-x86.7z 449997190 SHA256 c0d07e5ce2fff13b5eb456c10e99527184c9139e798cb7fd1adfadafa65cb696 SHA512 8d66229f6f07d6fba00650a96267c3c4a8308d296d9f13aa359af34ad49f57ba3a02e39f14d2b04609816e5f28ed939e71024043a0f08dc3711895a42e39f771 WHIRLPOOL 482ea86675f2b983669d30e508a21d813a7b03eb19c98696017591ecebf78102f5549df2b4be2d29c301b0b2dfc774b2057248facc2f395beec7f04326841e62
+DIST android-ndk-10e-amd64.7z 401522849 SHA256 102d6723f67ff1384330d12c45854315d6452d6510286f4e5891e00a5a8f1d5a SHA512 8948c7bd1621e32dce554d5cd1268ffda2e9c5e6b2dda5b8cf0266ea60aa2dd6fddf8d290683fc1ef0b69d66c898226c7f52cc567dbb14352b4191ac19dfb371 WHIRLPOOL a372ea7753aafadc2a12663f56e4feb865569d9372b777410b7df61b04310879be0c0398bd4f675564e3bf4088707cddf7fc721d2c76c42691c37e4dc49a2c7f
+DIST android-ndk-10e-x86.7z 394281908 SHA256 92b07d25aaad9b341a7f2b2a62402d508e948bf2dea3ee7b65a6aeb18bca7df5 SHA512 fdce2537c4f9bca980948961448ec746bca0626b92c1edf0db46df34819b6ea2f6acb4f0921c3ff8da8e20dd6b414749c6cb3b973d7d1cdecccb4b8f4f2e0679 WHIRLPOOL 40205439cf16b3bf374aaaa9930bab96e8b3dba8b2de07fb920564e78c62017c2f7693cc1880b8e6da2542a20af8822d1851ee8a3097d325074efb3a89ac1579
+DIST android-ndk-r11c-linux-x86_64.zip 794135138 SHA256 ba85dbe4d370e4de567222f73a3e034d85fc3011b3cbd90697f3e8dcace3ad94 SHA512 c0de562061c9f08bcd1ae05b1de26898788e71cc7dc40502348214edd5a90f1bf8125721e587b341f6fe774fc79b1a6e28b3f702f3275e016baa0382fcea2767 WHIRLPOOL 7d8ef18e7644e28c4ac1aa5a49f7d6487181aacc348ff09cc5ac8fc4ca15e06f38924d2425a24b840ed6c9c589587415b630aedace02e1d3df6a4c222fbcaafc
+DIST android-ndk-r13b-linux-x86_64.zip 687311866 SHA256 3524d7f8fca6dc0d8e7073a7ab7f76888780a22841a6641927123146c3ffd29c SHA512 39f3bd2d0e1daca11870df2e2ef318ad070b19163a55e2c1c4a1a871e02f8ec51263d7cf4b6da54eaadbe4253b5c11b85f4c5aeb67fccfff9147a5c420589d12 WHIRLPOOL 53230a1d15f4eaff5955fec69cd88f8e9fec56e362f22cf0b0b2a992b64525f63ae696fbd9614e3f11aa7141c49ee2a800db5c4acff503c0ba3511bf6a3f18bf
+DIST android-ndk-r14b-linux-x86_64.zip 840626594 SHA256 0ecc2017802924cf81fffc0f51d342e3e69de6343da892ac9fa1cd79bc106024 SHA512 24435267fc5acae559aa5159f7c895ce5ea0cbb8ef966bb8ff0dadffcadccbe46bc3880d285bf4e411ef78632cf2f862408e7b2b41ebca51078b41eac66a301a WHIRLPOOL 066469686fac5fd48dc0d44c79276b174fed2ea751fd2f9d2b42a39bb60110703c527a43a74ef0a943898776855f61b13f4ecd2140876986601b9a14977736a4
+DIST android-ndk-r9-linux-x86-legacy-toolchains.tar.bz2 241172797 SHA256 26b94f0a5d686b4892cb22b06094751efded0958baed380b2ccce56517fd830b SHA512 4c8f1c9c6dfe264f227959124dc19f9fc9596c166076b8ec82b37f033101285ccd5832962e233d2605869308b2367280665a1f53f4693cb753434b480c49af25 WHIRLPOOL 60fa7d65c34850ae8b247cca067e2ff41c34986fd87fe8752d6da5b866f4967946eab6f4192701554532c688e075cd2b6f3231ba84698de6216bff33b12024c0
+DIST android-ndk-r9-linux-x86.tar.bz2 419862465 SHA256 30f3da01e4d8d3415777b5d88a0b70fac5a4620807fd28110f9bc4c8093f6b6e SHA512 9c2da6b52df00ff6177ac18314f7c7abef585d2297362d426a9b0a28c8319531d684c1515971066050181178ab205210a7f25ec1de9be843fd0da7c1e897747e WHIRLPOOL 0cdf68e15cac621c686dbc6c6f5fd40e164ee043030a861a1f0484ae6abc8a73c521130c6ec8e6fe6f1beba5b87256634134efcfdc6b0ebf4cda83dbc78db88e
+DIST android-ndk-r9-linux-x86_64-legacy-toolchains.tar.bz2 244427866 SHA256 087fbca38a1a2c1a309de272d22e84bbc1c3e2254211761180572fde75faab27 SHA512 dde193474b46ac2ceb69f5ad3ba106eb840daf18470538d85e147b17dff8b1b1b848d499727e28bb8e76bdd16dd4bb99dc073c06f80949080551ae0437f08eed WHIRLPOOL e821828e0ceb8f977dabae8ef92f0b763158ad8d9a7709c6bf051f80db1a7e699ec5c6b5801c08b77e9e7cfc97053497272445ec46d671c1cbdffc0999dc4009
+DIST android-ndk-r9-linux-x86_64.tar.bz2 425113267 SHA256 8a6013bfd8a8709592c53086c4f841933f5f2b175dd030326406d24ff4daa267 SHA512 4196a71c20ad2f12bb5d3fe994179e76ba6e535a5460c34ff07974e74afc362ed271a20c24ac565e8f8863bca152f24befdd1954711d844200a676ba08e1a0aa WHIRLPOOL 5aa753c260015763791c417f8c0c9699e6a394f1a1483db45a24b2884a05907f42cdac17672fae1478ac66ccce097a5519a99fcda4d35ec1c1fc3c8aec42841e
+DIST android-ndk-r9b-linux-x86-legacy-toolchains.tar.bz2 125676842 SHA256 606aadf815ae28cc7b0154996247c70d609f111b14e44bcbcd6cad4c87fefb6f SHA512 a6f7189b033a55b4623d4831c35adc635faf80393da217aeabc959d97a246347b8d67150b086ed8f13cd93313d06563f54aa8f29f887d23ffaf8f8a3ac5d3876 WHIRLPOOL 833d877e069400ba578bf55b8e626d14607027f36c9306b3798b7295a4a2386ca327cef2124edbe359e1fa21dcf75b3aae6a0cf8d8430f7476571cb80849f922
+DIST android-ndk-r9b-linux-x86.tar.bz2 361394055 SHA256 748104b829dd12afb2fdb3044634963abb24cdb0aad3b26030abe2e9e65bfc81 SHA512 e8448f2dda591a1e18bb2dc40d6682c19ca01b7d6914fd079e7e6b86cdc152a3c05f7a3853714bfa5b1df7c3eb3f124ba7912caef53fd0d0a335b89c352e8a94 WHIRLPOOL 01c613eb7b66a1d932f787a0ce424f7c4dcadae5ca027273b106e7b24319adc96ed7deda9ad32ea745f88cf210672e64249855b1cead414fc4ab85f938d5ce93
+DIST android-ndk-r9b-linux-x86_64-legacy-toolchains.tar.bz2 127742633 SHA256 de93a394f7c8f3436db44568648f87738a8d09801a52f459dcad3fc047e045a1 SHA512 eeddc80ec3cb75a248ab8e66948a5e5001812cb19213541e5fb85b9b30cae6aac62849c91c9dfd3af2f822382060b069d2efc21294d2f87824be695e9d9abc50 WHIRLPOOL c0c0b7a87890943083bebdbf75cf2ee8c79204b607843f752baa8296da60b65873d3ad3370946cea992217c14486e773411e82fead0ceb662e3132d033119871
+DIST android-ndk-r9b-linux-x86_64.tar.bz2 366988131 SHA256 8956e9efeea95f49425ded8bb697013b66e162b064b0f66b5c75628f76e0f532 SHA512 99eb950ceff8a6fc931859fadb1151326b9fbcfddf1ac8027076b3a4ba5d746b31c38cbde925ab6882510a7b39d93b93b0ff346d452db5c364997bff1bdc0887 WHIRLPOOL 84a542a0f47956a3b5f41717e7a48d3c4ce558a8bcd0cd4b5c8b38fc40c4740b89ab9d8d91286ab2ee8d5330d6c8e66146adca9ebfad44e11ea8c6474684fa71
+DIST android-ndk-r9c-linux-x86.tar.bz2 365412557 SHA256 3497ca83dc8e7c0e35c6fbe8aab882d307613a5f2ec64a2df50e99b9bb6d3cde SHA512 ebd85d9670956db60fb3842a827288d32df70a7b2febc0477fd2ec63531fa8fa61a89a3c3916decf6dba7ef3f2794121ffdd3c1b8263b0e9c259650e44dfb675 WHIRLPOOL cbe66cf87f538ca1f558760f83c7ef81e81373102d0fc945d94d0d7244a4dde1f5e5e5434219b1b132c063e887168bf03d5dd5e268972b406cc5821f6b7d94a9
+DIST android-ndk-r9c-linux-x86_64.tar.bz2 371254928 SHA256 300be3963d775d83c349487a68b4985df492561433d2eb25d81725db1a98b958 SHA512 317a3904561c850b9129a855fd353a7ba706986f08bde709d16ef10c6adffe546cdf3cb48e5e19a0261f33edde4b2d3b6f5ae9aa59280ec0742dbdacbba93755 WHIRLPOOL 8a468837bf79906692aed7d49b91b3317e6fe4edc0b5fa91a4b6f1ee2ea6fd633104032cb992c40dc02573c3dccf2e80a7cee818b5bef2ce2942c3577d2025a8
+DIST android-ndk-r9d-linux-x86.tar.bz2 405218267 SHA256 d5ec2e6cad089ea1229326b137f42edbb2db4d961840eb9b38aa55ca32ea3d53 SHA512 9ba1603d3ac5daf8816dbc7ba998d6b93d4f3d197a30beaaccb02fefe785554769b453462c90fe19194200808b38128396e77c32425c8d0872652c81a916304e WHIRLPOOL 90a0160e13535cb95fb9d5dfd15a03c9c67f3949ea154ddc792c20f470b34f2aa4462b51033df43067886133d599256d35cf295ba856c7fa3d37aa9e3077e09c
+DIST android-ndk-r9d-linux-x86_64.tar.bz2 412879983 SHA256 14e1d183a85caca5e08e5e56e5a5beaa2e3f539755eb7a693efdb0e16ce6b19a SHA512 b6b663533785fb6cbc10e467a109cf47f4a49d87abc72f03439ac7b3aa57350e1602d766793bf6c3c5f6e4f4ab8733311ef1c761ac335691566b2e936f853af3 WHIRLPOOL 3f0b9a5692253c2776567ad9ce2b328716662b79755818727446bfe46411975f76b8d8f8c2a609d8060986d7fabb436b9dd8c89be2ae96d744b27aab91823ddb
+DIST android-ndk32-r10-linux-x86.tar.bz2 420078216 SHA256 7480eea8fe699cfc6a3fcfca9debe8d7e2cd6ef00e31e12b91dead49fcb782b4 SHA512 c3acf611b360bea4d559341c4093d1194fa3131ad807ad9aa8f6c159c12bd4979cadc65388b9826baad89c0ba6a4a03f192ddd885c50f0066022ae3265d8e59c WHIRLPOOL a451edb6bb840d88c8f26b3615b27d87d7c5aa78954b5082a78ef184f5c3bafe161c2430803ab8db5dfb91b52d22ef66aa62acfaef75481e4e51f76f71978621
+DIST android-ndk32-r10-linux-x86_64.tar.bz2 420671390 SHA256 9d0b4aab6e3f34158a3698226ab7d6c8df4aa8c9cc5242da9b733ac1f988090e SHA512 004e223b741c8b63ab86bd37f2c83d89457d5144e18221e792676e070ffb9b23078568b52abee2067de7daa0dbe5e8152bcc82685273d60e1a243b3c5f159f84 WHIRLPOOL 8faa4a85a6b8d4a3a0fa1afff543f42a5484d43c4fd4c3ff5f93c2b592edc0ed50d59fae725e4fc26b07f3330b8a87a23fd3fb7aab30e0f4a5a974b445874c06
+DIST android-ndk32-r10b-linux-x86.tar.bz2 421052081 SHA256 e4766586d0f65452317e662758eb7d070c55ad4092e1e82ab1717a1114a1c430 SHA512 ecd270244c9f00b9bf883014f65a04459a5cd422e65239b13a463c363b9e82d7907495792bbe1287dee082117c03356b1f8d869339a4cf1966f2a56ae664aeb9 WHIRLPOOL 28710389c31d8f81f59565af744d17f2d6c081a063046306d9182a13995b7ec99688bdefa9cfd52613f3d76213e005eee84110c3f8cd709007416edddbc92459
+DIST android-ndk32-r10b-linux-x86_64.tar.bz2 422237011 SHA256 f309365a809f61ab012dd3560dff1ecdad8a3652b316938a6f9943cba42bda95 SHA512 6b7ec25a7c2d6cef94ba61403274276a912c5fa757dda5206548619fb155e97bd6eab0eb3354f51f703b82300a754ec8da352aeb20cdcdf80884aaa4bcd97a6f WHIRLPOOL 250d84d1d717db946a09e23a0689a544ea5999c4bfd9e420ea41ccc497102200e62a088c0a421721610e07fc15b112e61856aba59768b4bba87906ab503bb682
+DIST android-ndk64-r10-linux-x86.tar.bz2 338544906 SHA256 e8bdee2e7696b97e9e9e4ef62a59b39edb38a759dc0a566ff81caf08938c7d9f SHA512 09a54fb86a7a157e9dac5a682f2cbae9492fe8c2f64a23f613d7e331844eb682e8e4affbaea116895310f417514bd85b66e6841755197b9add4e84237114d4f5 WHIRLPOOL d5f593e7e9c2b55e631204f11546fded6abcfc52518905d16508ab393a86886cf8d7cee6c2916e76e9474cc2da13c3c8f7332a8908ac273a36e86df53c272bce
+DIST android-ndk64-r10-linux-x86_64.tar.bz2 339708042 SHA256 b99bbc74973d0b2c17df22bc0ba9e61704d6f631deb036885fce05964d9ec921 SHA512 2d2a9689912c72e1f3ef5c14acef1b747460531b234d9fc9af25de7102a0195406c47e5c6e98cd5be2a58163fbf76eb1cbf3098a84f93b5c68c18eec94625a9e WHIRLPOOL 79dac240bdc48fed682e129cb8397deddd266397e5b6443b01e98491dbf876cc102c4f1cb7c6c8fff0e4a9d8ef2e4c5089dc47d2efd22380776833a27b32030b
+DIST android-ndk64-r10b-linux-x86.tar.bz2 358060577 SHA256 f56782b70ceff53749b9e63f0384e4e0ad04a46a2d7cd64c3b27c7493d2f64dc SHA512 c951a3a50d0db66c435190a6a8000467785932fa1ff000d59b9f4c5917ddf78874df3e2163b5757c019a68a3dcb13492f486248f30d0c762279ff5d67327f26b WHIRLPOOL 022ca2d9968bd9214ad56fa81afa4969147913fb2c74234cbe69a250a8513a9220776e69675cafa5337f45382661b063149c949d8a74baac007e311b4e27f54f
+DIST android-ndk64-r10b-linux-x86_64.tar.bz2 358835298 SHA256 32452087a846e73ef3007903e1368edc21847720566b34ae113e454ae259bd8b SHA512 95627d327db205b7a3ec1fb940a8f1509dcde3c2367d779cc06dd7bb2ffd41f3d2eece79bf4578279a571a42233f58109eb6586330b11844f98c79fa410f2c37 WHIRLPOOL c689b6efa8de4f1c1ae1312a99198c036476caa915ae649c4bd66b6879adb9ac790c597361c87a5aa733ef6908e02d8a03fd68186e0c8f1022daa4e99c2661a3
+EBUILD android-ndk-10.ebuild 1803 SHA256 8d308079470e82b7aa13eab5df3b3650daf203609b860564f54f723106c0a9cd SHA512 97915f453de3d42d5b933ee2a442b858de0ccac744797f680dd7abb12c6bee8a8c27aaa26ef21009a6ba7f298d59119a8ab1ddc5d0479e51c0b2f3ce3639e0c3 WHIRLPOOL 67fcbe018fd33fa2257945056e956df1921efa5556b26e7599f9488bd2d34ed414c1aa1d9ef5004687a3b4138ba43ed3d29d3cf40956658cc983e3317ef65b01
+EBUILD android-ndk-10b.ebuild 1803 SHA256 8d308079470e82b7aa13eab5df3b3650daf203609b860564f54f723106c0a9cd SHA512 97915f453de3d42d5b933ee2a442b858de0ccac744797f680dd7abb12c6bee8a8c27aaa26ef21009a6ba7f298d59119a8ab1ddc5d0479e51c0b2f3ce3639e0c3 WHIRLPOOL 67fcbe018fd33fa2257945056e956df1921efa5556b26e7599f9488bd2d34ed414c1aa1d9ef5004687a3b4138ba43ed3d29d3cf40956658cc983e3317ef65b01
+EBUILD android-ndk-10d.ebuild 1615 SHA256 91f37bd675d072c62d71f0aa9d61eb217b8fb7e727b8530cc039555bfb21454d SHA512 0d2d21d1361f616029bd8e2e5fe40b1ea54123ab13b5d7aace6096be09aeb39310307bd3f81f21fa82692d0c57df89fea72d85ea9c0489e4dc2949d457d54ba6 WHIRLPOOL 96fd510a49747f9983e4f2f781cbe7e6807e405ad54cf82c28cf4295e4d0c350fb146c45d1358fe4201ddee5f899967db843d833839d3802ae51e8fd2cc41c59
+EBUILD android-ndk-10e.ebuild 1798 SHA256 a87d604fac604143e13b69348b7e478caa66986b88f0a54a512fde0911b1e9bb SHA512 805abf5fcee1cdf95dc39a2cdaa4d85723ce55c41e6ac4597f305d4ddba99727dad27496245aa6515b06fc1783c38d6cab55748f3b8b0c2c4d010784513cd637 WHIRLPOOL c927ed65cdcff5f4c47c7de6c2c37e49f7d2d4b824c08776126d5d3281efecc0735ba20dc3b1c0b789ce7468443575776dee4922bff725f1e7095171400ac4e8
+EBUILD android-ndk-11c-r1.ebuild 1657 SHA256 18577506adad5e6809fa6ba5af94f28336dfb0aa6918084b4ff3468b2daf589a SHA512 b7391a8201943fbcecb8a061e136214d30ab7a842ae5977550f3ef3723937cc17f7e79f537ef51a302edae7204b949d5f0ec1da19f89efa147649746c6539319 WHIRLPOOL 63f78b3aef66fee0f18acec79eb2c5435abf008b32a27e82efddb03425fc5d7a87a5620a40e72ecd2977b73809e3e0c3f397c517259e2d4c6f8eff3b7ceebdd2
+EBUILD android-ndk-11c.ebuild 1643 SHA256 58ec9444cc57ff06870d4369bc477cce4a3eb00d453f56fad98559da77a2106e SHA512 cde70bc40cb22ea02f5c953fbafa3ffc636d5bb72ff41bc9f7c4cb5c486865fefe18c94a1f4e52d344cb015fa300f02378a818680711c23028b32fd9b07f812b WHIRLPOOL 48d86f3f3c266e2f9caecc2f63011602c5f7dcaaa27da80895c75d25654cd806ceb3aa04facd9b952b2dba8bab81bd830494f8d1d7f870efe6d75e8649841ca0
+EBUILD android-ndk-13b.ebuild 1657 SHA256 18577506adad5e6809fa6ba5af94f28336dfb0aa6918084b4ff3468b2daf589a SHA512 b7391a8201943fbcecb8a061e136214d30ab7a842ae5977550f3ef3723937cc17f7e79f537ef51a302edae7204b949d5f0ec1da19f89efa147649746c6539319 WHIRLPOOL 63f78b3aef66fee0f18acec79eb2c5435abf008b32a27e82efddb03425fc5d7a87a5620a40e72ecd2977b73809e3e0c3f397c517259e2d4c6f8eff3b7ceebdd2
+EBUILD android-ndk-14b.ebuild 1626 SHA256 dee4be4fb1cdd49ca42ee7c3d0e09eb8c110a680320077e9ada48b78b0935493 SHA512 b2519362c364bc5a406301c12a87480f25eb23d4a492c715fa514ae9797dd17729a739afd6766fa30e35a96b8f38d06f8094766a1321c4fe79db65cc286ed066 WHIRLPOOL a19de5e04fe523626c1d1bda26cbd65f7644d34e4fb67c9d1b3c7e6f88b6562b8cb48188f0a8c3a299b5e24c7c254fb10886a20043224223cbe1c2d464790df6
+EBUILD android-ndk-9.ebuild 1807 SHA256 1cfda8b2b21d7cc62f573743fb854f463c8180643a6044300960153edeca6c57 SHA512 2b4898867cf7b30fdccaee7004ce9b41df1462ac17d90d68a031c12fa36ee428d6115c9921c80625bf0a9dfa2f5444d36c8f6e48e03d6974f31a4f7c253880c6 WHIRLPOOL 1e110407b4097183943e4dd3db50205e042ec5e5e15d46aa813e1a89077ffcf7d04aa73876b90d82f85a140d20d57c7933d44519cb81703852711399b7a016de
+EBUILD android-ndk-9b.ebuild 1807 SHA256 1cfda8b2b21d7cc62f573743fb854f463c8180643a6044300960153edeca6c57 SHA512 2b4898867cf7b30fdccaee7004ce9b41df1462ac17d90d68a031c12fa36ee428d6115c9921c80625bf0a9dfa2f5444d36c8f6e48e03d6974f31a4f7c253880c6 WHIRLPOOL 1e110407b4097183943e4dd3db50205e042ec5e5e15d46aa813e1a89077ffcf7d04aa73876b90d82f85a140d20d57c7933d44519cb81703852711399b7a016de
+EBUILD android-ndk-9c.ebuild 1575 SHA256 edd2b9941443a550e1ad74162a79b7e9b4b0a23dcce62ff66a28daca516af300 SHA512 d6c518b4641d72c01bba26b550c03cf6cc5cbe369256fac81acc86eef03c2a6b18be011f96ceaaa34c6c94241258d2ea6c2fec734697e703fe5d8f044cb65aeb WHIRLPOOL d9aaf1f111d576e0ae220373259b261b3bfce2990e186cd24f9fab9ff995fe9adf67824523f46719570f0d5545f3e047239733dce89480e6d3ebef7cc9512f87
+EBUILD android-ndk-9d.ebuild 1575 SHA256 edd2b9941443a550e1ad74162a79b7e9b4b0a23dcce62ff66a28daca516af300 SHA512 d6c518b4641d72c01bba26b550c03cf6cc5cbe369256fac81acc86eef03c2a6b18be011f96ceaaa34c6c94241258d2ea6c2fec734697e703fe5d8f044cb65aeb WHIRLPOOL d9aaf1f111d576e0ae220373259b261b3bfce2990e186cd24f9fab9ff995fe9adf67824523f46719570f0d5545f3e047239733dce89480e6d3ebef7cc9512f87
+MISC ChangeLog 4551 SHA256 710da647c09680ac2f89b7cf064ba89aca04c15ec40aa6b05cd048611e1de947 SHA512 044d67255bd2d294c070ac31f25ac0829e999482647ca407297185e706d63d9c2e2b5157d9b55571ba5ac1f2fb675dc4c55a89f5a098a7510d3cbc22dd4d9115 WHIRLPOOL f5d9c87d8ac9ec81a140dffcff640238be59bc40a9418b5fe5e280eae433bca28169e73701e2f95ebf087ca3e1274cd87f8a2d9817f543abd3b00a753502f18d
+MISC ChangeLog-2015 3078 SHA256 988003a9c1c4409f9beea728a47e80bf3f670635a297c6887480821ab5558ef8 SHA512 36021cedbb17c717c49848947c2af6d178b0cd9775b1f4c0f8a0314c25a25c7afd07db260c4541f4558163faaa8d60fb3581db2014ee6d0ad90e80f27a3fe4de WHIRLPOOL c448781c2120e45d694aaaa610c8ba092ffc0820ad46b8e62d8a9f300387da3929002a05f50742470b1e819383739735fca5d65d7951ed5848c2dfe53cdd8c0b
+MISC metadata.xml 446 SHA256 a8e4b841420d140c0374c64e3957323698280e658d9c7a78d0dcb8c04aeba13f SHA512 aa4e337d6a8dc9a9189a8adf9c963237ebac937cf2a7ecb9c81e17ca7cd496000bd0fb34de9314c18c360b100b77fab8e4a923d21228694003553a80c7b17ff3 WHIRLPOOL 33c546643c4596d40d6bcdf52ef30ab0b9c31e5229ccd141e6042152b4ed51cc5836d38175d6ffe539cf10742b94e88391ae2e55cc9e73d509db7a90531f71fc
diff --git a/dev-util/android-ndk/android-ndk-10.ebuild b/dev-util/android-ndk/android-ndk-10.ebuild
new file mode 100644
index 000000000000..27ec24979504
--- /dev/null
+++ b/dev-util/android-ndk/android-ndk-10.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+DESCRIPTION="Open Handset Alliance's Android NDK (Native Dev Kit)"
+HOMEPAGE="http://developer.android.com/sdk/ndk/"
+SRC_URI="x86? ( target-32? ( https://dl.google.com/android/ndk/${PN}32-r${PV}-linux-x86.tar.bz2 )
+ target-64? ( https://dl.google.com/android/ndk/${PN}64-r${PV}-linux-x86.tar.bz2 ) )
+ amd64? ( target-32? ( https://dl.google.com/android/ndk/${PN}32-r${PV}-linux-x86_64.tar.bz2 )
+ target-64? ( https://dl.google.com/android/ndk/${PN}64-r${PV}-linux-x86_64.tar.bz2 ) )"
+
+LICENSE="android"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+target-32 target-64"
+RESTRICT="mirror strip installsources test"
+
+DEPEND=""
+RDEPEND=">=dev-util/android-sdk-update-manager-10
+ >=sys-devel/make-3.81"
+
+S="${WORKDIR}/${PN}-r${PV}"
+
+ANDROID_NDK_DIR="opt/${PN}"
+
+QA_PREBUILT="*"
+PYTHON_UPDATER_IGNORE="1"
+
+src_configure() {
+ :
+}
+
+src_compile() {
+ :
+}
+
+src_install() {
+ dodir "/${ANDROID_NDK_DIR}"
+ cp -pPR * "${ED}/${ANDROID_NDK_DIR}" || die
+
+ fowners -R root:android "/${ANDROID_NDK_DIR}"
+ fperms 0775 "/${ANDROID_NDK_DIR}/"{,build,docs,platforms,samples}
+ fperms 0775 "/${ANDROID_NDK_DIR}/"{sources,tests,toolchains}
+
+ dodir "/${ANDROID_NDK_DIR}/out"
+ fowners root:android "/${ANDROID_NDK_DIR}/out"
+ fperms 3775 "/${ANDROID_NDK_DIR}/out"
+
+ ANDROID_PREFIX="${EPREFIX}/${ANDROID_NDK_DIR}"
+ ANDROID_PATH="${EPREFIX}/${ANDROID_NDK_DIR}"
+
+ for i in toolchains/*/prebuilt/linux-*/bin
+ do
+ ANDROID_PATH="${ANDROID_PATH}:${ANDROID_PREFIX}/${i}"
+ done
+
+ printf '%s' \
+ "PATH=\"${ANDROID_PATH}\"" \
+ $'\n' \
+ > "${T}/80${PN}" || die
+
+ doenvd "${T}/80${PN}"
+
+ echo "SEARCH_DIRS_MASK=\"${EPREFIX}/${ANDROID_NDK_DIR}\"" \
+ > "${T}/80${PN}" || die
+ insinto "/etc/revdep-rebuild"
+ doins "${T}/80${PN}"
+}
diff --git a/dev-util/android-ndk/android-ndk-10b.ebuild b/dev-util/android-ndk/android-ndk-10b.ebuild
new file mode 100644
index 000000000000..27ec24979504
--- /dev/null
+++ b/dev-util/android-ndk/android-ndk-10b.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+DESCRIPTION="Open Handset Alliance's Android NDK (Native Dev Kit)"
+HOMEPAGE="http://developer.android.com/sdk/ndk/"
+SRC_URI="x86? ( target-32? ( https://dl.google.com/android/ndk/${PN}32-r${PV}-linux-x86.tar.bz2 )
+ target-64? ( https://dl.google.com/android/ndk/${PN}64-r${PV}-linux-x86.tar.bz2 ) )
+ amd64? ( target-32? ( https://dl.google.com/android/ndk/${PN}32-r${PV}-linux-x86_64.tar.bz2 )
+ target-64? ( https://dl.google.com/android/ndk/${PN}64-r${PV}-linux-x86_64.tar.bz2 ) )"
+
+LICENSE="android"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+target-32 target-64"
+RESTRICT="mirror strip installsources test"
+
+DEPEND=""
+RDEPEND=">=dev-util/android-sdk-update-manager-10
+ >=sys-devel/make-3.81"
+
+S="${WORKDIR}/${PN}-r${PV}"
+
+ANDROID_NDK_DIR="opt/${PN}"
+
+QA_PREBUILT="*"
+PYTHON_UPDATER_IGNORE="1"
+
+src_configure() {
+ :
+}
+
+src_compile() {
+ :
+}
+
+src_install() {
+ dodir "/${ANDROID_NDK_DIR}"
+ cp -pPR * "${ED}/${ANDROID_NDK_DIR}" || die
+
+ fowners -R root:android "/${ANDROID_NDK_DIR}"
+ fperms 0775 "/${ANDROID_NDK_DIR}/"{,build,docs,platforms,samples}
+ fperms 0775 "/${ANDROID_NDK_DIR}/"{sources,tests,toolchains}
+
+ dodir "/${ANDROID_NDK_DIR}/out"
+ fowners root:android "/${ANDROID_NDK_DIR}/out"
+ fperms 3775 "/${ANDROID_NDK_DIR}/out"
+
+ ANDROID_PREFIX="${EPREFIX}/${ANDROID_NDK_DIR}"
+ ANDROID_PATH="${EPREFIX}/${ANDROID_NDK_DIR}"
+
+ for i in toolchains/*/prebuilt/linux-*/bin
+ do
+ ANDROID_PATH="${ANDROID_PATH}:${ANDROID_PREFIX}/${i}"
+ done
+
+ printf '%s' \
+ "PATH=\"${ANDROID_PATH}\"" \
+ $'\n' \
+ > "${T}/80${PN}" || die
+
+ doenvd "${T}/80${PN}"
+
+ echo "SEARCH_DIRS_MASK=\"${EPREFIX}/${ANDROID_NDK_DIR}\"" \
+ > "${T}/80${PN}" || die
+ insinto "/etc/revdep-rebuild"
+ doins "${T}/80${PN}"
+}
diff --git a/dev-util/android-ndk/android-ndk-10d.ebuild b/dev-util/android-ndk/android-ndk-10d.ebuild
new file mode 100644
index 000000000000..632defda31a1
--- /dev/null
+++ b/dev-util/android-ndk/android-ndk-10d.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+DESCRIPTION="Open Handset Alliance's Android NDK (Native Dev Kit)"
+HOMEPAGE="http://developer.android.com/sdk/ndk/"
+SRC_URI="x86? ( https://dl.google.com/android/ndk/${PN}-r${PV}-linux-x86.bin -> ${P}-x86.7z )
+ amd64? ( https://dl.google.com/android/ndk/${PN}-r${PV}-linux-x86_64.bin -> ${P}-amd64.7z )"
+
+LICENSE="android"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+RESTRICT="mirror strip installsources test"
+
+DEPEND="app-arch/p7zip"
+RDEPEND=">=dev-util/android-sdk-update-manager-10
+ >=sys-devel/make-3.81"
+
+S="${WORKDIR}/${PN}-r${PV}"
+
+ANDROID_NDK_DIR="opt/${PN}"
+
+QA_PREBUILT="*"
+PYTHON_UPDATER_IGNORE="1"
+
+src_configure() {
+ :
+}
+
+src_compile() {
+ :
+}
+
+src_install() {
+ dodir "/${ANDROID_NDK_DIR}"
+ cp -pPR * "${ED}/${ANDROID_NDK_DIR}" || die
+
+ fowners -R root:android "/${ANDROID_NDK_DIR}"
+ fperms 0775 "/${ANDROID_NDK_DIR}/"{,build,docs,platforms,samples}
+ fperms 0775 "/${ANDROID_NDK_DIR}/"{sources,tests,toolchains}
+
+ dodir "/${ANDROID_NDK_DIR}/out"
+ fowners root:android "/${ANDROID_NDK_DIR}/out"
+ fperms 3775 "/${ANDROID_NDK_DIR}/out"
+
+ ANDROID_PREFIX="${EPREFIX}/${ANDROID_NDK_DIR}"
+ ANDROID_PATH="${EPREFIX}/${ANDROID_NDK_DIR}"
+
+ for i in toolchains/*/prebuilt/linux-*/bin
+ do
+ ANDROID_PATH="${ANDROID_PATH}:${ANDROID_PREFIX}/${i}"
+ done
+
+ printf '%s' \
+ "PATH=\"${ANDROID_PATH}\"" \
+ $'\n' \
+ > "${T}/80${PN}" || die
+
+ doenvd "${T}/80${PN}"
+
+ echo "SEARCH_DIRS_MASK=\"${EPREFIX}/${ANDROID_NDK_DIR}\"" \
+ > "${T}/80${PN}" || die
+ insinto "/etc/revdep-rebuild"
+ doins "${T}/80${PN}"
+}
diff --git a/dev-util/android-ndk/android-ndk-10e.ebuild b/dev-util/android-ndk/android-ndk-10e.ebuild
new file mode 100644
index 000000000000..5abb2ebaafe9
--- /dev/null
+++ b/dev-util/android-ndk/android-ndk-10e.ebuild
@@ -0,0 +1,82 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+CHECKREQS_DISK_BUILD="6G"
+inherit check-reqs
+
+DESCRIPTION="Open Handset Alliance's Android NDK (Native Dev Kit)"
+HOMEPAGE="http://developer.android.com/sdk/ndk/"
+SRC_URI="x86? ( https://dl.google.com/android/ndk/${PN}-r${PV}-linux-x86.bin -> ${P}-x86.7z )
+ amd64? ( https://dl.google.com/android/ndk/${PN}-r${PV}-linux-x86_64.bin -> ${P}-amd64.7z )"
+
+LICENSE="android"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+RESTRICT="mirror strip installsources test"
+
+DEPEND="app-arch/p7zip"
+RDEPEND=">=dev-util/android-sdk-update-manager-10
+ >=sys-devel/make-3.81
+ || (
+ sys-libs/ncurses:0/5
+ sys-libs/ncurses:5/5
+ )"
+
+S="${WORKDIR}/${PN}-r${PV}"
+
+ANDROID_NDK_DIR="opt/${PN}"
+
+QA_PREBUILT="*"
+PYTHON_UPDATER_IGNORE="1"
+
+pkg_pretend() {
+ check-reqs_pkg_pretend
+}
+
+pkg_setup() {
+ check-reqs_pkg_setup
+}
+
+src_configure() {
+ :
+}
+
+src_compile() {
+ :
+}
+
+src_install() {
+ dodir "/${ANDROID_NDK_DIR}"
+ cp -pPR * "${ED}/${ANDROID_NDK_DIR}" || die
+
+ fowners -R root:android "/${ANDROID_NDK_DIR}"
+ fperms 0775 "/${ANDROID_NDK_DIR}/"{,build,docs,platforms,samples}
+ fperms 0775 "/${ANDROID_NDK_DIR}/"{sources,tests,toolchains}
+
+ dodir "/${ANDROID_NDK_DIR}/out"
+ fowners root:android "/${ANDROID_NDK_DIR}/out"
+ fperms 3775 "/${ANDROID_NDK_DIR}/out"
+
+ ANDROID_PREFIX="${EPREFIX}/${ANDROID_NDK_DIR}"
+ ANDROID_PATH="${EPREFIX}/${ANDROID_NDK_DIR}"
+
+ for i in toolchains/*/prebuilt/linux-*/bin
+ do
+ ANDROID_PATH="${ANDROID_PATH}:${ANDROID_PREFIX}/${i}"
+ done
+
+ printf '%s' \
+ "PATH=\"${ANDROID_PATH}\"" \
+ $'\n' \
+ > "${T}/80${PN}" || die
+
+ doenvd "${T}/80${PN}"
+
+ echo "SEARCH_DIRS_MASK=\"${EPREFIX}/${ANDROID_NDK_DIR}\"" \
+ > "${T}/80${PN}" || die
+ insinto "/etc/revdep-rebuild"
+ doins "${T}/80${PN}"
+}
diff --git a/dev-util/android-ndk/android-ndk-11c-r1.ebuild b/dev-util/android-ndk/android-ndk-11c-r1.ebuild
new file mode 100644
index 000000000000..703cae635c36
--- /dev/null
+++ b/dev-util/android-ndk/android-ndk-11c-r1.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+CHECKREQS_DISK_BUILD="6G"
+inherit check-reqs
+
+DESCRIPTION="Open Handset Alliance's Android NDK (Native Dev Kit)"
+HOMEPAGE="http://developer.android.com/sdk/ndk/"
+SRC_URI="https://dl.google.com/android/repository/${PN}-r${PV}-linux-x86_64.zip"
+
+LICENSE="android"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+RESTRICT="mirror strip installsources test"
+
+DEPEND="app-arch/p7zip"
+RDEPEND=">=dev-util/android-sdk-update-manager-10
+ >=sys-devel/make-3.81
+ || (
+ sys-libs/ncurses:0/5[tinfo]
+ sys-libs/ncurses:5/5[tinfo]
+ )"
+
+S="${WORKDIR}/${PN}-r${PV}"
+
+ANDROID_NDK_DIR="opt/${PN}"
+
+QA_PREBUILT="*"
+PYTHON_UPDATER_IGNORE="1"
+
+pkg_pretend() {
+ check-reqs_pkg_pretend
+}
+
+pkg_setup() {
+ check-reqs_pkg_setup
+}
+
+src_configure() {
+ :
+}
+
+src_compile() {
+ :
+}
+
+src_install() {
+ dodir "/${ANDROID_NDK_DIR}"
+ cp -pPR * "${ED}/${ANDROID_NDK_DIR}" || die
+
+ dodir "/${ANDROID_NDK_DIR}/out"
+ fowners -R root:android "/${ANDROID_NDK_DIR}"
+ fperms 0775 "/${ANDROID_NDK_DIR}/"{,build,platforms,prebuilt}
+ fperms 0775 "/${ANDROID_NDK_DIR}/"{python-packages,sources,toolchains}
+ fperms 3775 "/${ANDROID_NDK_DIR}/out"
+
+ ANDROID_PREFIX="${EPREFIX}/${ANDROID_NDK_DIR}"
+ ANDROID_PATH="${EPREFIX}/${ANDROID_NDK_DIR}"
+
+ for i in toolchains/*/prebuilt/linux-*/bin
+ do
+ ANDROID_PATH="${ANDROID_PATH}:${ANDROID_PREFIX}/${i}"
+ done
+
+ printf '%s' \
+ "PATH=\"${ANDROID_PATH}\"" \
+ $'\n' \
+ > "${T}/80${PN}" || die
+
+ doenvd "${T}/80${PN}"
+
+ echo "SEARCH_DIRS_MASK=\"${EPREFIX}/${ANDROID_NDK_DIR}\"" \
+ > "${T}/80${PN}" || die
+ insinto "/etc/revdep-rebuild"
+ doins "${T}/80${PN}"
+}
diff --git a/dev-util/android-ndk/android-ndk-11c.ebuild b/dev-util/android-ndk/android-ndk-11c.ebuild
new file mode 100644
index 000000000000..ae39d95ef377
--- /dev/null
+++ b/dev-util/android-ndk/android-ndk-11c.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+CHECKREQS_DISK_BUILD="6G"
+inherit check-reqs
+
+DESCRIPTION="Open Handset Alliance's Android NDK (Native Dev Kit)"
+HOMEPAGE="http://developer.android.com/sdk/ndk/"
+SRC_URI="https://dl.google.com/android/repository/${PN}-r${PV}-linux-x86_64.zip"
+
+LICENSE="android"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+RESTRICT="mirror strip installsources test"
+
+DEPEND="app-arch/p7zip"
+RDEPEND=">=dev-util/android-sdk-update-manager-10
+ >=sys-devel/make-3.81
+ || (
+ sys-libs/ncurses:0/5
+ sys-libs/ncurses:5/5
+ )"
+
+S="${WORKDIR}/${PN}-r${PV}"
+
+ANDROID_NDK_DIR="opt/${PN}"
+
+QA_PREBUILT="*"
+PYTHON_UPDATER_IGNORE="1"
+
+pkg_pretend() {
+ check-reqs_pkg_pretend
+}
+
+pkg_setup() {
+ check-reqs_pkg_setup
+}
+
+src_configure() {
+ :
+}
+
+src_compile() {
+ :
+}
+
+src_install() {
+ dodir "/${ANDROID_NDK_DIR}"
+ cp -pPR * "${ED}/${ANDROID_NDK_DIR}" || die
+
+ dodir "/${ANDROID_NDK_DIR}/out"
+ fowners -R root:android "/${ANDROID_NDK_DIR}"
+ fperms 0775 "/${ANDROID_NDK_DIR}/"{,build,platforms,prebuilt}
+ fperms 0775 "/${ANDROID_NDK_DIR}/"{python-packages,sources,toolchains}
+ fperms 3775 "/${ANDROID_NDK_DIR}/out"
+
+ ANDROID_PREFIX="${EPREFIX}/${ANDROID_NDK_DIR}"
+ ANDROID_PATH="${EPREFIX}/${ANDROID_NDK_DIR}"
+
+ for i in toolchains/*/prebuilt/linux-*/bin
+ do
+ ANDROID_PATH="${ANDROID_PATH}:${ANDROID_PREFIX}/${i}"
+ done
+
+ printf '%s' \
+ "PATH=\"${ANDROID_PATH}\"" \
+ $'\n' \
+ > "${T}/80${PN}" || die
+
+ doenvd "${T}/80${PN}"
+
+ echo "SEARCH_DIRS_MASK=\"${EPREFIX}/${ANDROID_NDK_DIR}\"" \
+ > "${T}/80${PN}" || die
+ insinto "/etc/revdep-rebuild"
+ doins "${T}/80${PN}"
+}
diff --git a/dev-util/android-ndk/android-ndk-13b.ebuild b/dev-util/android-ndk/android-ndk-13b.ebuild
new file mode 100644
index 000000000000..703cae635c36
--- /dev/null
+++ b/dev-util/android-ndk/android-ndk-13b.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+CHECKREQS_DISK_BUILD="6G"
+inherit check-reqs
+
+DESCRIPTION="Open Handset Alliance's Android NDK (Native Dev Kit)"
+HOMEPAGE="http://developer.android.com/sdk/ndk/"
+SRC_URI="https://dl.google.com/android/repository/${PN}-r${PV}-linux-x86_64.zip"
+
+LICENSE="android"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+RESTRICT="mirror strip installsources test"
+
+DEPEND="app-arch/p7zip"
+RDEPEND=">=dev-util/android-sdk-update-manager-10
+ >=sys-devel/make-3.81
+ || (
+ sys-libs/ncurses:0/5[tinfo]
+ sys-libs/ncurses:5/5[tinfo]
+ )"
+
+S="${WORKDIR}/${PN}-r${PV}"
+
+ANDROID_NDK_DIR="opt/${PN}"
+
+QA_PREBUILT="*"
+PYTHON_UPDATER_IGNORE="1"
+
+pkg_pretend() {
+ check-reqs_pkg_pretend
+}
+
+pkg_setup() {
+ check-reqs_pkg_setup
+}
+
+src_configure() {
+ :
+}
+
+src_compile() {
+ :
+}
+
+src_install() {
+ dodir "/${ANDROID_NDK_DIR}"
+ cp -pPR * "${ED}/${ANDROID_NDK_DIR}" || die
+
+ dodir "/${ANDROID_NDK_DIR}/out"
+ fowners -R root:android "/${ANDROID_NDK_DIR}"
+ fperms 0775 "/${ANDROID_NDK_DIR}/"{,build,platforms,prebuilt}
+ fperms 0775 "/${ANDROID_NDK_DIR}/"{python-packages,sources,toolchains}
+ fperms 3775 "/${ANDROID_NDK_DIR}/out"
+
+ ANDROID_PREFIX="${EPREFIX}/${ANDROID_NDK_DIR}"
+ ANDROID_PATH="${EPREFIX}/${ANDROID_NDK_DIR}"
+
+ for i in toolchains/*/prebuilt/linux-*/bin
+ do
+ ANDROID_PATH="${ANDROID_PATH}:${ANDROID_PREFIX}/${i}"
+ done
+
+ printf '%s' \
+ "PATH=\"${ANDROID_PATH}\"" \
+ $'\n' \
+ > "${T}/80${PN}" || die
+
+ doenvd "${T}/80${PN}"
+
+ echo "SEARCH_DIRS_MASK=\"${EPREFIX}/${ANDROID_NDK_DIR}\"" \
+ > "${T}/80${PN}" || die
+ insinto "/etc/revdep-rebuild"
+ doins "${T}/80${PN}"
+}
diff --git a/dev-util/android-ndk/android-ndk-14b.ebuild b/dev-util/android-ndk/android-ndk-14b.ebuild
new file mode 100644
index 000000000000..5f92e3300036
--- /dev/null
+++ b/dev-util/android-ndk/android-ndk-14b.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+CHECKREQS_DISK_BUILD="6G"
+inherit check-reqs
+
+DESCRIPTION="Open Handset Alliance's Android NDK (Native Dev Kit)"
+HOMEPAGE="http://developer.android.com/sdk/ndk/"
+SRC_URI="https://dl.google.com/android/repository/${PN}-r${PV}-linux-x86_64.zip"
+
+LICENSE="android"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+RESTRICT="mirror strip installsources test"
+
+DEPEND="app-arch/p7zip"
+RDEPEND=">=dev-util/android-sdk-update-manager-10
+ >=sys-devel/make-3.81
+ || (
+ sys-libs/ncurses:0/5[tinfo]
+ sys-libs/ncurses:5/5[tinfo]
+ )"
+
+S="${WORKDIR}/${PN}-r${PV}"
+
+ANDROID_NDK_DIR="opt/${PN}"
+
+QA_PREBUILT="*"
+PYTHON_UPDATER_IGNORE="1"
+
+pkg_pretend() {
+ check-reqs_pkg_pretend
+}
+
+pkg_setup() {
+ check-reqs_pkg_setup
+}
+
+src_configure() {
+ :
+}
+
+src_compile() {
+ :
+}
+
+src_install() {
+ dodir "/${ANDROID_NDK_DIR}"
+ cp -pPR * "${ED}/${ANDROID_NDK_DIR}" || die
+
+ dodir "/${ANDROID_NDK_DIR}/out"
+ fowners -R root:android "/${ANDROID_NDK_DIR}"
+ fperms 0775 "/${ANDROID_NDK_DIR}/"{,build,platforms,prebuilt}
+ fperms 0775 "/${ANDROID_NDK_DIR}/"{python-packages,sources,toolchains}
+ fperms 3775 "/${ANDROID_NDK_DIR}/out"
+
+ ANDROID_PREFIX="${EPREFIX}/${ANDROID_NDK_DIR}"
+ ANDROID_PATH="${EPREFIX}/${ANDROID_NDK_DIR}"
+
+ for i in toolchains/*/prebuilt/linux-*/bin
+ do
+ ANDROID_PATH="${ANDROID_PATH}:${ANDROID_PREFIX}/${i}"
+ done
+
+ echo "PATH=\"${ANDROID_PATH}\"" > "${T}/80${PN}" || die
+ doenvd "${T}/80${PN}"
+
+ echo "SEARCH_DIRS_MASK=\"${EPREFIX}/${ANDROID_NDK_DIR}\"" > "${T}/80${PN}" || die
+ insinto "/etc/revdep-rebuild"
+ doins "${T}/80${PN}"
+}
diff --git a/dev-util/android-ndk/android-ndk-9.ebuild b/dev-util/android-ndk/android-ndk-9.ebuild
new file mode 100644
index 000000000000..29c231420c94
--- /dev/null
+++ b/dev-util/android-ndk/android-ndk-9.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+MY_P="${PN}-r${PV}"
+
+DESCRIPTION="Open Handset Alliance's Android NDK (Native Dev Kit)"
+HOMEPAGE="http://developer.android.com/sdk/ndk/"
+SRC_URI="x86? ( https://dl.google.com/android/ndk/${MY_P}-linux-x86.tar.bz2
+ legacy-toolchains? ( https://dl.google.com/android/ndk/${MY_P}-linux-x86-legacy-toolchains.tar.bz2 ) )
+ amd64? ( https://dl.google.com/android/ndk/${MY_P}-linux-x86_64.tar.bz2
+ legacy-toolchains? ( https://dl.google.com/android/ndk/${MY_P}-linux-x86_64-legacy-toolchains.tar.bz2 ) )"
+
+LICENSE="android"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="legacy-toolchains"
+RESTRICT="mirror strip installsources test"
+
+DEPEND=""
+RDEPEND=">=dev-util/android-sdk-update-manager-10
+ >=sys-devel/make-3.81"
+
+S="${WORKDIR}/${MY_P}"
+
+ANDROID_NDK_DIR="opt/${PN}"
+
+QA_PREBUILT="*"
+PYTHON_UPDATER_IGNORE="1"
+
+src_configure() {
+ :
+}
+
+src_compile() {
+ :
+}
+
+src_install() {
+ dodir "/${ANDROID_NDK_DIR}"
+ cp -pPR * "${ED}/${ANDROID_NDK_DIR}" || die
+
+ fowners -R root:android "/${ANDROID_NDK_DIR}"
+ fperms 0775 "/${ANDROID_NDK_DIR}/"{,build,docs,platforms,samples}
+ fperms 0775 "/${ANDROID_NDK_DIR}/"{sources,tests,toolchains}
+
+ dodir "/${ANDROID_NDK_DIR}/out"
+ fowners root:android "/${ANDROID_NDK_DIR}/out"
+ fperms 3775 "/${ANDROID_NDK_DIR}/out"
+
+ ANDROID_PREFIX="${EPREFIX}/${ANDROID_NDK_DIR}"
+ ANDROID_PATH="${EPREFIX}/${ANDROID_NDK_DIR}"
+
+ for i in toolchains/*/prebuilt/linux-*/bin
+ do
+ ANDROID_PATH="${ANDROID_PATH}:${ANDROID_PREFIX}/${i}"
+ done
+
+ printf '%s' \
+ "PATH=\"${ANDROID_PATH}\"" \
+ $'\n' \
+ > "${T}/80${PN}" || die
+
+ doenvd "${T}/80${PN}"
+
+ echo "SEARCH_DIRS_MASK=\"${EPREFIX}/${ANDROID_NDK_DIR}\"" \
+ > "${T}/80${PN}" || die
+ insinto "/etc/revdep-rebuild"
+ doins "${T}/80${PN}"
+}
diff --git a/dev-util/android-ndk/android-ndk-9b.ebuild b/dev-util/android-ndk/android-ndk-9b.ebuild
new file mode 100644
index 000000000000..29c231420c94
--- /dev/null
+++ b/dev-util/android-ndk/android-ndk-9b.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+MY_P="${PN}-r${PV}"
+
+DESCRIPTION="Open Handset Alliance's Android NDK (Native Dev Kit)"
+HOMEPAGE="http://developer.android.com/sdk/ndk/"
+SRC_URI="x86? ( https://dl.google.com/android/ndk/${MY_P}-linux-x86.tar.bz2
+ legacy-toolchains? ( https://dl.google.com/android/ndk/${MY_P}-linux-x86-legacy-toolchains.tar.bz2 ) )
+ amd64? ( https://dl.google.com/android/ndk/${MY_P}-linux-x86_64.tar.bz2
+ legacy-toolchains? ( https://dl.google.com/android/ndk/${MY_P}-linux-x86_64-legacy-toolchains.tar.bz2 ) )"
+
+LICENSE="android"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="legacy-toolchains"
+RESTRICT="mirror strip installsources test"
+
+DEPEND=""
+RDEPEND=">=dev-util/android-sdk-update-manager-10
+ >=sys-devel/make-3.81"
+
+S="${WORKDIR}/${MY_P}"
+
+ANDROID_NDK_DIR="opt/${PN}"
+
+QA_PREBUILT="*"
+PYTHON_UPDATER_IGNORE="1"
+
+src_configure() {
+ :
+}
+
+src_compile() {
+ :
+}
+
+src_install() {
+ dodir "/${ANDROID_NDK_DIR}"
+ cp -pPR * "${ED}/${ANDROID_NDK_DIR}" || die
+
+ fowners -R root:android "/${ANDROID_NDK_DIR}"
+ fperms 0775 "/${ANDROID_NDK_DIR}/"{,build,docs,platforms,samples}
+ fperms 0775 "/${ANDROID_NDK_DIR}/"{sources,tests,toolchains}
+
+ dodir "/${ANDROID_NDK_DIR}/out"
+ fowners root:android "/${ANDROID_NDK_DIR}/out"
+ fperms 3775 "/${ANDROID_NDK_DIR}/out"
+
+ ANDROID_PREFIX="${EPREFIX}/${ANDROID_NDK_DIR}"
+ ANDROID_PATH="${EPREFIX}/${ANDROID_NDK_DIR}"
+
+ for i in toolchains/*/prebuilt/linux-*/bin
+ do
+ ANDROID_PATH="${ANDROID_PATH}:${ANDROID_PREFIX}/${i}"
+ done
+
+ printf '%s' \
+ "PATH=\"${ANDROID_PATH}\"" \
+ $'\n' \
+ > "${T}/80${PN}" || die
+
+ doenvd "${T}/80${PN}"
+
+ echo "SEARCH_DIRS_MASK=\"${EPREFIX}/${ANDROID_NDK_DIR}\"" \
+ > "${T}/80${PN}" || die
+ insinto "/etc/revdep-rebuild"
+ doins "${T}/80${PN}"
+}
diff --git a/dev-util/android-ndk/android-ndk-9c.ebuild b/dev-util/android-ndk/android-ndk-9c.ebuild
new file mode 100644
index 000000000000..1e683e59f570
--- /dev/null
+++ b/dev-util/android-ndk/android-ndk-9c.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+MY_P="${PN}-r${PV}"
+
+DESCRIPTION="Open Handset Alliance's Android NDK (Native Dev Kit)"
+HOMEPAGE="http://developer.android.com/sdk/ndk/"
+SRC_URI="x86? ( https://dl.google.com/android/ndk/${MY_P}-linux-x86.tar.bz2 )
+ amd64? ( https://dl.google.com/android/ndk/${MY_P}-linux-x86_64.tar.bz2 )"
+
+LICENSE="android"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+RESTRICT="mirror strip installsources test"
+
+DEPEND=""
+RDEPEND=">=dev-util/android-sdk-update-manager-10
+ >=sys-devel/make-3.81"
+
+S="${WORKDIR}/${MY_P}"
+
+ANDROID_NDK_DIR="opt/${PN}"
+
+QA_PREBUILT="*"
+PYTHON_UPDATER_IGNORE="1"
+
+src_configure() {
+ :
+}
+
+src_compile() {
+ :
+}
+
+src_install() {
+ dodir "/${ANDROID_NDK_DIR}"
+ cp -pPR * "${ED}/${ANDROID_NDK_DIR}" || die
+
+ fowners -R root:android "/${ANDROID_NDK_DIR}"
+ fperms 0775 "/${ANDROID_NDK_DIR}/"{,build,docs,platforms,samples}
+ fperms 0775 "/${ANDROID_NDK_DIR}/"{sources,tests,toolchains}
+
+ dodir "/${ANDROID_NDK_DIR}/out"
+ fowners root:android "/${ANDROID_NDK_DIR}/out"
+ fperms 3775 "/${ANDROID_NDK_DIR}/out"
+
+ ANDROID_PREFIX="${EPREFIX}/${ANDROID_NDK_DIR}"
+ ANDROID_PATH="${EPREFIX}/${ANDROID_NDK_DIR}"
+
+ for i in toolchains/*/prebuilt/linux-*/bin
+ do
+ ANDROID_PATH="${ANDROID_PATH}:${ANDROID_PREFIX}/${i}"
+ done
+
+ printf '%s' \
+ "PATH=\"${ANDROID_PATH}\"" \
+ $'\n' \
+ > "${T}/80${PN}" || die
+
+ doenvd "${T}/80${PN}"
+
+ echo "SEARCH_DIRS_MASK=\"${EPREFIX}/${ANDROID_NDK_DIR}\"" \
+ > "${T}/80${PN}" || die
+ insinto "/etc/revdep-rebuild"
+ doins "${T}/80${PN}"
+}
diff --git a/dev-util/android-ndk/android-ndk-9d.ebuild b/dev-util/android-ndk/android-ndk-9d.ebuild
new file mode 100644
index 000000000000..1e683e59f570
--- /dev/null
+++ b/dev-util/android-ndk/android-ndk-9d.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+MY_P="${PN}-r${PV}"
+
+DESCRIPTION="Open Handset Alliance's Android NDK (Native Dev Kit)"
+HOMEPAGE="http://developer.android.com/sdk/ndk/"
+SRC_URI="x86? ( https://dl.google.com/android/ndk/${MY_P}-linux-x86.tar.bz2 )
+ amd64? ( https://dl.google.com/android/ndk/${MY_P}-linux-x86_64.tar.bz2 )"
+
+LICENSE="android"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+RESTRICT="mirror strip installsources test"
+
+DEPEND=""
+RDEPEND=">=dev-util/android-sdk-update-manager-10
+ >=sys-devel/make-3.81"
+
+S="${WORKDIR}/${MY_P}"
+
+ANDROID_NDK_DIR="opt/${PN}"
+
+QA_PREBUILT="*"
+PYTHON_UPDATER_IGNORE="1"
+
+src_configure() {
+ :
+}
+
+src_compile() {
+ :
+}
+
+src_install() {
+ dodir "/${ANDROID_NDK_DIR}"
+ cp -pPR * "${ED}/${ANDROID_NDK_DIR}" || die
+
+ fowners -R root:android "/${ANDROID_NDK_DIR}"
+ fperms 0775 "/${ANDROID_NDK_DIR}/"{,build,docs,platforms,samples}
+ fperms 0775 "/${ANDROID_NDK_DIR}/"{sources,tests,toolchains}
+
+ dodir "/${ANDROID_NDK_DIR}/out"
+ fowners root:android "/${ANDROID_NDK_DIR}/out"
+ fperms 3775 "/${ANDROID_NDK_DIR}/out"
+
+ ANDROID_PREFIX="${EPREFIX}/${ANDROID_NDK_DIR}"
+ ANDROID_PATH="${EPREFIX}/${ANDROID_NDK_DIR}"
+
+ for i in toolchains/*/prebuilt/linux-*/bin
+ do
+ ANDROID_PATH="${ANDROID_PATH}:${ANDROID_PREFIX}/${i}"
+ done
+
+ printf '%s' \
+ "PATH=\"${ANDROID_PATH}\"" \
+ $'\n' \
+ > "${T}/80${PN}" || die
+
+ doenvd "${T}/80${PN}"
+
+ echo "SEARCH_DIRS_MASK=\"${EPREFIX}/${ANDROID_NDK_DIR}\"" \
+ > "${T}/80${PN}" || die
+ insinto "/etc/revdep-rebuild"
+ doins "${T}/80${PN}"
+}
diff --git a/dev-util/android-ndk/metadata.xml b/dev-util/android-ndk/metadata.xml
new file mode 100644
index 000000000000..a4cb54d29397
--- /dev/null
+++ b/dev-util/android-ndk/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>perfinion@gentoo.org</email>
+ <name>Jason Zaman</name>
+ </maintainer>
+ <use>
+ <flag name="legacy-toolchains">Install legacy toolchains</flag>
+ <flag name="target-32">Support for 32-bit targets</flag>
+ <flag name="target-64">Support for 64-bit targets</flag>
+ </use>
+</pkgmetadata>
diff --git a/dev-util/android-sdk-update-manager/Manifest b/dev-util/android-sdk-update-manager/Manifest
new file mode 100644
index 000000000000..8cd0fd0e0cc0
--- /dev/null
+++ b/dev-util/android-sdk-update-manager/Manifest
@@ -0,0 +1,32 @@
+AUX 80-android.rules 284 SHA256 3dfbd16ffe1f9f23319c0cf6e56a64bbfd3e71579cd10bed52bc38030cfe459f SHA512 f78834e2b33afa88f59a636f9fb7804d341847568a638a68beba9ca842e78e40a52a9ad8396ae79d105d87e52f585d523e8f0d847fc7708ddc3351c031571f19 WHIRLPOOL a506e3c57e12e227f87aca1d554426d8a2066353c08cf6142b17ed6784bcc3059cd9735886add44dc8814d2997ce67eaf1d028b0ca4a81a408c173768d50cd7c
+AUX android-sdk-update-manager.desktop 346 SHA256 d15b234e46ad902ea4d1351b0e69d9d9e2a01e8b7d1f2bd23d79f41892fd2ead SHA512 9f97d7d3bf0aa76686be3722b3f686c012c4d627d583275eaaaf91d43f1b355a9d4b7f42412435489b758a3161fd9fcf8c36f5d1777662af3fbcd11bdc0d7aca WHIRLPOOL 650fddaf8d358f0872ef98ba493c61464c3987da80baad89cc83adbaaaa592f59d8efe7c3f20263382bebd9065f4128b6fe8b52767aa411690164455459c1594
+DIST android-sdk_r21-linux.tgz 91378351 SHA256 ad3e642626407b78d0fafe7ff89d1ee388b1f5c6f2eba83ce9364957a038ab9d SHA512 3a3338265a2d00f8b7fbb35783d7449498afd8107ddd4ed4c2c34e47582d83eb23f78d02fe01db54c12c48dba0167f60118c1061f1bfeb0048147674fee8d87c WHIRLPOOL feeb9d060a460ec2738a612ae90689791edf54deabcb1b1c37ddec22fb8bfaa13fc4dd53aecfbd5ac70309ce299a88ed84080ef7a2e1a14a6959d4ecf21fbfc9
+DIST android-sdk_r21.1-linux.tgz 91617112 SHA256 276e3c13a10f37927d4e04d036a94a0cbbf62326981f0ba61a303b76567e3379 SHA512 160cd51f965a23120cf63abe02b9a9ce8913d1239a848bc423b33ad10eff65b30147c6b11ab751aa12154292ce0a7837aa60def1cd31a2ccb5d4fc6fcb6d2c24 WHIRLPOOL a4f413356ac87d4753f8d33bddad737cadf41b2d8246f8971addbec568261212505bef4be3c098c8e21e148960a90b87c2c6952665d1845e0aeee9a307c06b44
+DIST android-sdk_r22-linux.tgz 99643077 SHA256 fd75de430bd83f90fbeb0d15ae017cccf998a87286188232cfeab27a6d89bd32 SHA512 9beda1ae872dde3ca7884d1c389566ce2c8b511ef74d95bc9ddf53683445cc454f9a5a1871a80d5826083d98713040cb1b8b239a77a8eadf56daf30440c7108d WHIRLPOOL e5c39b61d8f9f3f72420af21d7329f04492787543e4693c4eee010b9ec4d48c04bd4eb8d1d202c32552e46e220b2e3e973fe5248602b5d147f0788f89ed23e88
+DIST android-sdk_r22.0.1-linux.tgz 105617062 SHA256 216ae659a53682b97a0e0c2b3dc2c7c3d35011ed10302ae1a5ddbaf52a62459c SHA512 7c97ba8daf4a1b8b6e422d8fca21a5e23f3a5e92d769e13ab5e649a967f2662c71ae201a6c1d40202bda98c4fb80eaa60a3ff5e4af9f613cfab1366f63774ac7 WHIRLPOOL e029de8eaa746796fda38d7716880275d19da5dba08dd514970f7b5b8382a9aaac5415c66529d40f036f717e66f4a7842ebadc3ec323a284a583f0648eac54e0
+DIST android-sdk_r22.0.4-linux.tgz 105640988 SHA256 3eec3c2accfb90d8344d29ed7e80fdf59ea0eecfed3535a7c78116ace5b522e7 SHA512 10e047f6b5384d6c2d3f87e883203f2ab384ac826def16c07f1969d59dc79f97ccba36f0185d564fe0dd4811425fe18767c326b3712ee47b5515f0aba47ed612 WHIRLPOOL 76f21a8d44a7e9c79b8b9c8aea7b46de152577f7526f2d6861eb0c5cabbea20979721d22b2bee9978945ed920898754817f47fafc858a1d90199244b4152274f
+DIST android-sdk_r22.0.5-linux.tgz 105641005 SHA256 b664d1024b6fcf897e05eb1674c998df0ed2e4c9c280469445d914f8fcfa4454 SHA512 655f709994a8c5f9bd78216d8587bda66f23b7fccd556fd78adc989a835540af89529f2fb4d846e28196952a0a3c5bc919563c83fb73e6ecf7a4ad0560eb7f81 WHIRLPOOL acf50cd009107614e13d589d5ca7f956f72a80f462413def2de29aa7f8ee873b146ec391c0cab9fdeca8774ede5666b1c936a20ef44ef28d945bfe6bace3c5c6
+DIST android-sdk_r22.2.1-linux.tgz 100918342 SHA256 17ea4610008985eb1454b3b25ad00c59300cee3141f7ea3deec98f45d862faa5 SHA512 4eb7087c27db2b2435aa11bba01fccd09617ea58dd84aca8b249d81b3d15c913844d204463a6d83064c6cf8f07e26c0f70130315b281b1bbfd32c01d6e53bfef WHIRLPOOL b51611c4000464f2f0872893adea4bf7027f188582081d7beedc2b77700841b7e82ca6415db44603d4c186eda0e00dd4f51e603bf4416963ae80a0b57b617e0a
+DIST android-sdk_r22.3-linux.tgz 100968558 SHA256 4077575c98075480e0156c10e48a1521e31c7952768271a206870e6813057f4f SHA512 c05e610e0979f61d217b6612bccd48120719123cf80282cca442e81be6e0c4cfd5a4b3f398d1c8835c86bc67b730a7bf5a5e511abe57a1d70b6c1f62940832a3 WHIRLPOOL 3a05248c6e784a82dd2eb92de403e6e7634e4d3c472334c7d9d539f41a7d0612c48e6aecbd784081cc5477f22f595c723748ea69d8313c8550c63923a3ce1969
+DIST android-sdk_r22.6-linux.tgz 100992666 SHA256 da4c25536ba7f85cdd37be8636fcc563480410788df30c3fc5b5c876e6220e5f SHA512 2e632e31725a7c8c5e99cba70388c928d553d52177a2a0d49abfae125d1ccb57857171f10cd28da57664d0d9ab0f7b6ae409c943ad4d4433b05e0b8fb1bfe322 WHIRLPOOL 0d83ba871ea5ffd66d8543a563eac351b82f8597b7c8959848247e469c616fe52101c2d825648dbe6361dde3029bc4a8e06c097868eb3edcdeac1337beed9f03
+DIST android-sdk_r22.6.1-linux.tgz 101052129 SHA256 4ee7bb43fe6f20faf755b0988ecf818312392be52780db13ab4792a0b1627388 SHA512 5789a6b11a1a5c18145900042b15707f58afd6db82d345550c33e72cfbaf719c7c16667a7561e4c6ca624c2d2466430db7f8138bf0cd6449762639a63c6cf9ca WHIRLPOOL 09d6d11c08489d07b5b0da32734d70be8da65e949359b1155c9b59f3c07cbd21eed87c15f509e95604b7ed404f99b289700a10373268af132208b3e99178a113
+DIST android-sdk_r23-linux.tgz 137880977 SHA256 2eaab06852ac21b6c79df73c07a667c5da5be57f7ffcbd4f17aef7efeea22ac1 SHA512 c6d8de870e8697b31132b25db93d6b494b44240ca421cab6a48bbf53d142ba488d08ac77a9995ed06953e311dd14ea1ecf4d2039428ed31ab255f9aaaf94ad60 WHIRLPOOL f5fa2012fea5fa8f950626ad7281149c2a40b847514b61c22b8d3eaa0c92c3dfcdd1c7051e0bb990fd5c28babeadaf667228f630e7c19a69280aed06b6ba407b
+DIST android-sdk_r24.4.1-linux.tgz 326412652 SHA256 e16917ad685c1563ccbc5dd782930ee1a700a1b6a6fd3e44b83ac694650435e9 SHA512 96fb71d78a8c2833afeba6df617edcd6cc4e37ecd0c3bec38c39e78204ed3c2bd54b138a56086bf5ccd95e372e3c36e72c1550c13df8232ec19537da93049284 WHIRLPOOL db6747faf3e705d87c5a72efbc80b6ceaa2e81830e3ad5eca4b0db5b16cfcf5f41fa257fe866fd85e80c5e298b1f6bee25c156b83a2a24e3fa4e2b9db9406188
+EBUILD android-sdk-update-manager-21.1.ebuild 2940 SHA256 c18def170a3a59d151177d52e6a7317f0451f36528b6740aec8f4cd868a6aea6 SHA512 acb13a6d45ea38d4a63ea9b16e72942f2c8764ae8a3686400537fbcb497a1a282acfe31487889e7c0c01d32f7c18306f217b5d0e68d909925216b9b7f1e7f17d WHIRLPOOL f92cbe1e6ef82183d8c8d7933e5195c2260d3609ddb75d4fc42aaf44bccdc686a226bf637d3e4889fec2fce274b1fb928dfdb36463323cbf5a0301cb948889a3
+EBUILD android-sdk-update-manager-21.ebuild 2955 SHA256 cc7186a094f06817ab7c003fedbc88f6224b2ea7a8ef51486344df7339f4020a SHA512 b7505c5522c0781dfc4411416c85a3a28e13fdcdc7ed4966ffaeb75ac73f79354a8815a20b34daa494c37e3394dc3a51f3f4a26cab603b9e875257b1e61966ae WHIRLPOOL 102d1e04730274f568b7434177bed333ee168858dc2ec9df5031e176fc762c3eb8ef666b0e7b9394f5bef6a8d8fb41bf99207bea79f165b8e29018be2e542381
+EBUILD android-sdk-update-manager-22.0.1-r1.ebuild 3157 SHA256 90999218a7bc61645f1141b6a8b2739eaff50bfb974a0c94d50135ae56752e26 SHA512 2d784c7a5a451d51de2d528760123a9b5b3cec9f39b31cab397e5c9179aa4d6bc9c7085d64b1cf8f044f5c5e873853cac725206d51d444d80d417427e1783232 WHIRLPOOL 92d0f0522167a81c216e662a9adb8d6d580eb1f4ae67e62dd4ff49d7633b2c08a8700f19e8974353e900abcb1ada30580e3e609eb39754d8cd5f7e5938bb05b7
+EBUILD android-sdk-update-manager-22.0.1.ebuild 3130 SHA256 4d5b03c04cbcb4cee45d96a4d4279363b176b710953d341af83992c2ab3ba166 SHA512 5ad663ce9ddc5380ebdbc8807e6805c17974ff8b671b841bf132fbccf6c49540e10df0ccd455f616c132e3b2a46bb8e546029dd04619174b94b88da85328b7bf WHIRLPOOL 1b2ded6810398f52bab475f32dd6f1a7b3dbcb8590f9228c38d0eb68207ba5ef8807eb772e68c83a59f53340efea9e8f61742fe4ea6b12c23c23b2b0ac2e1800
+EBUILD android-sdk-update-manager-22.0.4.ebuild 3157 SHA256 90999218a7bc61645f1141b6a8b2739eaff50bfb974a0c94d50135ae56752e26 SHA512 2d784c7a5a451d51de2d528760123a9b5b3cec9f39b31cab397e5c9179aa4d6bc9c7085d64b1cf8f044f5c5e873853cac725206d51d444d80d417427e1783232 WHIRLPOOL 92d0f0522167a81c216e662a9adb8d6d580eb1f4ae67e62dd4ff49d7633b2c08a8700f19e8974353e900abcb1ada30580e3e609eb39754d8cd5f7e5938bb05b7
+EBUILD android-sdk-update-manager-22.0.5-r1.ebuild 3236 SHA256 32134b9088e4cff14490708ab45c9baf261b34b1152cbb012a8c7614e9a2691f SHA512 cffcdfc3a592c1dcd8c5a7b0c019b2d19eb9d429581a5deff95251c25862a334b8d9f094b49be9d0361c9bf8938b311ca5331f9641cf92c21342edc3b7fa4bbb WHIRLPOOL 737b3d21e2488f0dd00294b6a645d053da1bdaf8d94473fcff6c46dc1c273e237aa742dfbf31ecf1fb7142e6c63db2d5daad009e1b9715cbac6eda596a582fdf
+EBUILD android-sdk-update-manager-22.0.5.ebuild 3157 SHA256 90999218a7bc61645f1141b6a8b2739eaff50bfb974a0c94d50135ae56752e26 SHA512 2d784c7a5a451d51de2d528760123a9b5b3cec9f39b31cab397e5c9179aa4d6bc9c7085d64b1cf8f044f5c5e873853cac725206d51d444d80d417427e1783232 WHIRLPOOL 92d0f0522167a81c216e662a9adb8d6d580eb1f4ae67e62dd4ff49d7633b2c08a8700f19e8974353e900abcb1ada30580e3e609eb39754d8cd5f7e5938bb05b7
+EBUILD android-sdk-update-manager-22.2.1.ebuild 3236 SHA256 32134b9088e4cff14490708ab45c9baf261b34b1152cbb012a8c7614e9a2691f SHA512 cffcdfc3a592c1dcd8c5a7b0c019b2d19eb9d429581a5deff95251c25862a334b8d9f094b49be9d0361c9bf8938b311ca5331f9641cf92c21342edc3b7fa4bbb WHIRLPOOL 737b3d21e2488f0dd00294b6a645d053da1bdaf8d94473fcff6c46dc1c273e237aa742dfbf31ecf1fb7142e6c63db2d5daad009e1b9715cbac6eda596a582fdf
+EBUILD android-sdk-update-manager-22.3.ebuild 3350 SHA256 1ab3dc85878960bd465a5d3f93c23c9eee3af918c98548717823641d6a9f6e5e SHA512 529a00ea57ae169a426624091acefea7a5879a7ba679d32f084101a131405e13fc2bd8098a79c0fb704318696223225e565dd1ca9163443b8224d725d1c77cca WHIRLPOOL 46860610729427e75fa96e0255f04d0d3c2170a61638c15020802978bf5239da9ae9f3b51d291756064f8cc2967b87937e4b11146f3bfed627121f9da47f127a
+EBUILD android-sdk-update-manager-22.6.1.ebuild 3350 SHA256 1ab3dc85878960bd465a5d3f93c23c9eee3af918c98548717823641d6a9f6e5e SHA512 529a00ea57ae169a426624091acefea7a5879a7ba679d32f084101a131405e13fc2bd8098a79c0fb704318696223225e565dd1ca9163443b8224d725d1c77cca WHIRLPOOL 46860610729427e75fa96e0255f04d0d3c2170a61638c15020802978bf5239da9ae9f3b51d291756064f8cc2967b87937e4b11146f3bfed627121f9da47f127a
+EBUILD android-sdk-update-manager-22.6.ebuild 3350 SHA256 1ab3dc85878960bd465a5d3f93c23c9eee3af918c98548717823641d6a9f6e5e SHA512 529a00ea57ae169a426624091acefea7a5879a7ba679d32f084101a131405e13fc2bd8098a79c0fb704318696223225e565dd1ca9163443b8224d725d1c77cca WHIRLPOOL 46860610729427e75fa96e0255f04d0d3c2170a61638c15020802978bf5239da9ae9f3b51d291756064f8cc2967b87937e4b11146f3bfed627121f9da47f127a
+EBUILD android-sdk-update-manager-22.ebuild 3130 SHA256 4d5b03c04cbcb4cee45d96a4d4279363b176b710953d341af83992c2ab3ba166 SHA512 5ad663ce9ddc5380ebdbc8807e6805c17974ff8b671b841bf132fbccf6c49540e10df0ccd455f616c132e3b2a46bb8e546029dd04619174b94b88da85328b7bf WHIRLPOOL 1b2ded6810398f52bab475f32dd6f1a7b3dbcb8590f9228c38d0eb68207ba5ef8807eb772e68c83a59f53340efea9e8f61742fe4ea6b12c23c23b2b0ac2e1800
+EBUILD android-sdk-update-manager-23-r1.ebuild 3341 SHA256 b7ad7d5023603d308d1cd7572c3d64a04ab8ab320c8deb5b19c2932187ca154c SHA512 da8e5d7ee5fa5d6c576f28cc6aaba164514711c075f2a0098996684c1fee2dc0e76cd4e79b2ef46704dbc97015e90f5a6dddbd7f687f114285c2791d4fa90210 WHIRLPOOL 1882af64809a6bfa656a081d2bc76020fd4ba979ce9440070531a29f82f3d9f3e6c2349f21ef3287fd8fe357039db0225a0cd868ba74fe5ab2f1611665549486
+EBUILD android-sdk-update-manager-23.ebuild 3335 SHA256 c676bad61263da7a8153be31a7be179b26f09250aad91eaedc0e8a10a277ab82 SHA512 b7e3365d95c52946b874c1e842f4c126dded54b1ba747e48411bd81d4fab4bf6287d141a3ee466127f96873793959c2c9dc14bad5351213694a51d975ba48783 WHIRLPOOL 4de5d96e017f907b76a56db3c4aacb68294949fe031c0c4e28096c8bbbde4e1c5152a2683aebaee4a496c47ac547372d600b8e3384290e737067d551ac79abe9
+EBUILD android-sdk-update-manager-24.4.1.ebuild 3341 SHA256 b7ad7d5023603d308d1cd7572c3d64a04ab8ab320c8deb5b19c2932187ca154c SHA512 da8e5d7ee5fa5d6c576f28cc6aaba164514711c075f2a0098996684c1fee2dc0e76cd4e79b2ef46704dbc97015e90f5a6dddbd7f687f114285c2791d4fa90210 WHIRLPOOL 1882af64809a6bfa656a081d2bc76020fd4ba979ce9440070531a29f82f3d9f3e6c2349f21ef3287fd8fe357039db0225a0cd868ba74fe5ab2f1611665549486
+MISC ChangeLog 4535 SHA256 45a3b8e77af63c2ec83120c276365223ef1ecf3d8264d1990a74a8590f58fb52 SHA512 bebf74d2c209b10c125534727ee4c9dc697cfe3fa2aa1350e3e7155114c83f686abab1cad0bbed74ac37ecd810ec61c6a497c01d3ea3d06dc02d6b72a8d96d60 WHIRLPOOL 12b731f936ba323d838acb9549ee3c4fc16c24f7e6271a941beb6c6417b43f42b2ab76c57f810f0bbe670b7b721cd010f82f8a23d937e2b427bf212df6d0280b
+MISC ChangeLog-2015 12549 SHA256 ce504aeb7d2f6efe4c1743b70d3d7a13cd6027b849b93186d98009836a63f8ed SHA512 8c8a24ff25461ff751df9ef7e68ee751b932f26e336e19556de1be8d60c4fb85d8d528e72c07216cdb048b5ec9b07d0ad70b6ef0eb1fdd167a02740d16eb72c0 WHIRLPOOL 2e6ab3a9bee1c5a1f875bc772a3cdcc7fd202240c53bed784ef917a667a5868f96baa69a5f1b877a9227f472305986e3edec2f5fc0b4bbeba3ba69775524f53e
+MISC metadata.xml 214 SHA256 b0a811c7f33521c7134384d59f8e16445914c2f0c484dfab082a05cc0a9f62c9 SHA512 2d699278683037614d2dc6595d6ae71ca4eb3a5b22506ccb0926d932f00bde85c1759caf8c0b1729cd949e652fca33c8ced0e7ac6e65af144f0f66eb064ceed3 WHIRLPOOL 3f0e20d0edf32b22fbdd050ed7428261e0f0f3166d8881c4232b8d6cc8509e0967b6c3c804d535a4cc9c395de9f76343aea41aed0f875b470bfa90cad56354cf
diff --git a/dev-util/android-sdk-update-manager/android-sdk-update-manager-21.1.ebuild b/dev-util/android-sdk-update-manager/android-sdk-update-manager-21.1.ebuild
new file mode 100644
index 000000000000..5f00b9850c8a
--- /dev/null
+++ b/dev-util/android-sdk-update-manager/android-sdk-update-manager-21.1.ebuild
@@ -0,0 +1,99 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils user
+
+MY_P="android-sdk_r${PV}-linux"
+
+DESCRIPTION="Open Handset Alliance's Android SDK"
+HOMEPAGE="http://developer.android.com"
+SRC_URI="https://dl.google.com/android/${MY_P}.tgz"
+IUSE=""
+RESTRICT="mirror"
+
+LICENSE="android"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="app-arch/tar
+ app-arch/gzip"
+RDEPEND=">=virtual/jdk-1.5
+ >=dev-java/ant-core-1.6.5
+ >=dev-java/swt-3.5[cairo]
+ >=x11-libs/gtk+-2.24.23-r2:2[abi_x86_32(-)]
+"
+
+ANDROID_SDK_DIR="/opt/${PN}"
+QA_FLAGS_IGNORED_x86="
+ ${ANDROID_SDK_DIR/\/}/tools/emulator
+ ${ANDROID_SDK_DIR/\/}/tools/adb
+ ${ANDROID_SDK_DIR/\/}/tools/mksdcard
+ ${ANDROID_SDK_DIR/\/}/tools/sqlite3
+ ${ANDROID_SDK_DIR/\/}/tools/hprof-conv
+ ${ANDROID_SDK_DIR/\/}/tools/zipalign
+ ${ANDROID_SDK_DIR/\/}/tools/dmtracedump
+"
+QA_FLAGS_IGNORED_amd64="${QA_FLAGS_IGNORED_x86}"
+
+QA_PREBUILT="${ANDROID_SDK_DIR/\/}/tools/*"
+
+S="${WORKDIR}/android-sdk-linux"
+
+pkg_setup() {
+ enewgroup android
+}
+
+src_prepare(){
+ rm -rf tools/lib/x86*
+}
+
+src_install(){
+ dodoc tools/NOTICE.txt "SDK Readme.txt"
+ rm -f tools/NOTICE.txt "SDK Readme.txt"
+
+ dodir "${ANDROID_SDK_DIR}/tools"
+ cp -pPR tools/* "${ED}${ANDROID_SDK_DIR}/tools" || die "failed to install tools"
+
+ # Maybe this is needed for the tools directory too.
+ dodir "${ANDROID_SDK_DIR}"/{add-ons,docs,platforms,temp}
+
+ fowners root:android "${ANDROID_SDK_DIR}"/{,add-ons,docs,platforms,temp,tools}
+ fperms 0775 "${ANDROID_SDK_DIR}"/{,add-ons,docs,platforms,temp,tools}
+
+ echo "PATH=\"${EPREFIX}${ANDROID_SDK_DIR}/tools:${EPREFIX}${ANDROID_SDK_DIR}/platform-tools\"" > "${T}/80${PN}" || die
+
+ SWT_PATH=
+ SWT_VERSIONS="4.2 3.7 3.6 3.5"
+ for version in $SWT_VERSIONS; do
+ # redirecting stderr to /dev/null
+ # not sure if this is best, but avoids misleading error messages
+ SWT_PATH="`dirname \`java-config -p swt-\$version 2>/dev/null\` 2>/dev/null`"
+ if [ $SWT_PATH ]; then
+ einfo "SWT_PATH=$SWT_PATH selecting version $version of SWT."
+ break
+ fi
+ done
+
+ echo "ANDROID_SWT=\"${SWT_PATH}\"" >> "${T}/80${PN}" || die
+
+ doenvd "${T}/80${PN}"
+
+ echo "SEARCH_DIRS_MASK=\"${EPREFIX}${ANDROID_SDK_DIR}\"" > "${T}/80${PN}" || die
+
+ insinto "/etc/revdep-rebuild" && doins "${T}/80${PN}"
+
+}
+
+pkg_postinst() {
+ elog "The Android SDK now uses its own manager for the development environment."
+ elog "Run 'android' to download the full SDK, including some of the platform tools."
+ elog "You must be in the android group to manage the development environment."
+ elog "Just run 'gpasswd -a <USER> android', then have <USER> re-login."
+ elog "See http://developer.android.com/sdk/adding-components.html for more"
+ elog "information."
+ elog "If you have problems downloading the SDK, see https://code.google.com/p/android/issues/detail?id=4406"
+ elog "You need to run env-update and source /etc/profile in any open shells"
+ elog "if you get an SWT error."
+}
diff --git a/dev-util/android-sdk-update-manager/android-sdk-update-manager-21.ebuild b/dev-util/android-sdk-update-manager/android-sdk-update-manager-21.ebuild
new file mode 100644
index 000000000000..5a517bb942a4
--- /dev/null
+++ b/dev-util/android-sdk-update-manager/android-sdk-update-manager-21.ebuild
@@ -0,0 +1,99 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils user
+
+MY_P="android-sdk_r${PV}-linux"
+
+DESCRIPTION="Open Handset Alliance's Android SDK"
+HOMEPAGE="http://developer.android.com"
+SRC_URI="https://dl.google.com/android/${MY_P}.tgz"
+IUSE=""
+RESTRICT="mirror"
+
+LICENSE="android"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="app-arch/tar
+ app-arch/gzip"
+RDEPEND="
+ >=virtual/jdk-1.5
+ >=dev-java/ant-core-1.6.5
+ >=dev-java/swt-3.5[cairo]
+ >=x11-libs/gtk+-2.24.23-r2:2[abi_x86_32(-)]
+"
+
+ANDROID_SDK_DIR="/opt/${PN}"
+QA_FLAGS_IGNORED_x86="
+ ${ANDROID_SDK_DIR/\/}/tools/emulator
+ ${ANDROID_SDK_DIR/\/}/tools/adb
+ ${ANDROID_SDK_DIR/\/}/tools/mksdcard
+ ${ANDROID_SDK_DIR/\/}/tools/sqlite3
+ ${ANDROID_SDK_DIR/\/}/tools/hprof-conv
+ ${ANDROID_SDK_DIR/\/}/tools/zipalign
+ ${ANDROID_SDK_DIR/\/}/tools/dmtracedump
+"
+QA_FLAGS_IGNORED_amd64="${QA_FLAGS_IGNORED_x86}"
+
+QA_PREBUILT="${ANDROID_SDK_DIR/\/}/tools/*"
+
+S="${WORKDIR}/android-sdk-linux"
+
+pkg_setup() {
+ enewgroup android
+}
+
+src_prepare(){
+ rm -rf tools/lib/x86*
+}
+
+src_install(){
+ dodoc tools/NOTICE.txt "SDK Readme.txt"
+ rm -f tools/NOTICE.txt "SDK Readme.txt"
+
+ dodir "${ANDROID_SDK_DIR}/tools"
+ cp -pPR tools/* "${ED}${ANDROID_SDK_DIR}/tools" || die "failed to install tools"
+
+ # Maybe this is needed for the tools directory too.
+ dodir "${ANDROID_SDK_DIR}"/{add-ons,docs,platforms,temp}
+
+ fowners root:android "${ANDROID_SDK_DIR}"/{,add-ons,docs,platforms,temp,tools} || die
+ fperms 0775 "${ANDROID_SDK_DIR}"/{,add-ons,docs,platforms,temp,tools} || die
+
+ echo "PATH=\"${EPREFIX}${ANDROID_SDK_DIR}/tools:${EPREFIX}${ANDROID_SDK_DIR}/platform-tools\"" > "${T}/80${PN}" || die
+
+ SWT_PATH=
+ SWT_VERSIONS="4.2 3.7 3.6 3.5"
+ for version in $SWT_VERSIONS; do
+ # redirecting stderr to /dev/null
+ # not sure if this is best, but avoids misleading error messages
+ SWT_PATH="`dirname \`java-config -p swt-\$version 2>/dev/null\` 2>/dev/null`"
+ if [ $SWT_PATH ]; then
+ einfo "SWT_PATH=$SWT_PATH selecting version $version of SWT."
+ break
+ fi
+ done
+
+ echo "ANDROID_SWT=\"${SWT_PATH}\"" >> "${T}/80${PN}" || die
+
+ doenvd "${T}/80${PN}"
+
+ echo "SEARCH_DIRS_MASK=\"${EPREFIX}${ANDROID_SDK_DIR}\"" > "${T}/80${PN}" || die
+
+ insinto "/etc/revdep-rebuild" && doins "${T}/80${PN}"
+}
+
+pkg_postinst() {
+ elog "The Android SDK now uses its own manager for the development environment."
+ elog "Run 'android' to download the full SDK, including some of the platform tools."
+ elog "You must be in the android group to manage the development environment."
+ elog "Just run 'gpasswd -a <USER> android', then have <USER> re-login."
+ elog "See http://developer.android.com/sdk/adding-components.html for more"
+ elog "information."
+ elog "If you have problems downloading the SDK, see https://code.google.com/p/android/issues/detail?id=4406"
+ elog "You need to run env-update and source /etc/profile in any open shells"
+ elog "if you get an SWT error."
+}
diff --git a/dev-util/android-sdk-update-manager/android-sdk-update-manager-22.0.1-r1.ebuild b/dev-util/android-sdk-update-manager/android-sdk-update-manager-22.0.1-r1.ebuild
new file mode 100644
index 000000000000..f7afd5560771
--- /dev/null
+++ b/dev-util/android-sdk-update-manager/android-sdk-update-manager-22.0.1-r1.ebuild
@@ -0,0 +1,99 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit eutils user
+
+MY_P="android-sdk_r${PV}-linux"
+
+DESCRIPTION="Open Handset Alliance's Android SDK"
+HOMEPAGE="http://developer.android.com"
+SRC_URI="https://dl.google.com/android/${MY_P}.tgz"
+IUSE=""
+RESTRICT="mirror"
+
+LICENSE="android"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="app-arch/tar
+ app-arch/gzip"
+RDEPEND=">=virtual/jdk-1.5
+ >=dev-java/ant-core-1.6.5
+ || ( dev-java/swt:3.7[cairo] dev-java/swt:3.6[cairo] )
+ >=x11-libs/gtk+-2.24.23-r2:2[abi_x86_32(-)]
+"
+
+ANDROID_SDK_DIR="/opt/${PN}"
+QA_FLAGS_IGNORED_x86="
+ ${ANDROID_SDK_DIR/\/}/tools/emulator
+ ${ANDROID_SDK_DIR/\/}/tools/adb
+ ${ANDROID_SDK_DIR/\/}/tools/mksdcard
+ ${ANDROID_SDK_DIR/\/}/tools/sqlite3
+ ${ANDROID_SDK_DIR/\/}/tools/hprof-conv
+ ${ANDROID_SDK_DIR/\/}/tools/zipalign
+ ${ANDROID_SDK_DIR/\/}/tools/dmtracedump
+"
+QA_FLAGS_IGNORED_amd64="${QA_FLAGS_IGNORED_x86}"
+
+QA_PREBUILT="${ANDROID_SDK_DIR/\/}/tools/*"
+
+S="${WORKDIR}/android-sdk-linux"
+
+pkg_setup() {
+ enewgroup android
+}
+
+src_prepare(){
+ rm -rf tools/lib/x86*
+}
+
+src_install(){
+ dodoc tools/NOTICE.txt "SDK Readme.txt"
+ rm -f tools/NOTICE.txt "SDK Readme.txt"
+
+ dodir "${ANDROID_SDK_DIR}/tools"
+ cp -pPR tools/* "${ED}${ANDROID_SDK_DIR}/tools" || die "failed to install tools"
+
+ # Maybe this is needed for the tools directory too.
+ dodir "${ANDROID_SDK_DIR}"/{add-ons,build-tools,docs,extras,platforms,platform-tools,samples,sources,system-images,temp}
+
+ fowners root:android "${ANDROID_SDK_DIR}"/{.,add-ons,build-tools,docs,extras,platforms,platform-tools,samples,sources,system-images,temp,tools}
+ fperms 0775 "${ANDROID_SDK_DIR}"/{.,add-ons,build-tools,docs,extras,platforms,platform-tools,samples,sources,system-images,temp,tools}
+
+ echo "PATH=\"${EPREFIX}${ANDROID_SDK_DIR}/tools:${EPREFIX}${ANDROID_SDK_DIR}/platform-tools\"" > "${T}/80${PN}" || die
+
+ SWT_PATH=
+ SWT_VERSIONS="3.7 3.6"
+ for version in $SWT_VERSIONS; do
+ # redirecting stderr to /dev/null
+ # not sure if this is best, but avoids misleading error messages
+ SWT_PATH="`dirname \`java-config -p swt-\$version 2>/dev/null\` 2>/dev/null`"
+ if [ $SWT_PATH ]; then
+ einfo "SWT_PATH=$SWT_PATH selecting version $version of SWT."
+ break
+ fi
+ done
+
+ echo "ANDROID_SWT=\"${SWT_PATH}\"" >> "${T}/80${PN}" || die
+
+ doenvd "${T}/80${PN}"
+
+ echo "SEARCH_DIRS_MASK=\"${EPREFIX}${ANDROID_SDK_DIR}\"" > "${T}/80${PN}" || die
+
+ insinto "/etc/revdep-rebuild" && doins "${T}/80${PN}"
+
+}
+
+pkg_postinst() {
+ elog "The Android SDK now uses its own manager for the development environment."
+ elog "Run 'android' to download the full SDK, including some of the platform tools."
+ elog "You must be in the android group to manage the development environment."
+ elog "Just run 'gpasswd -a <USER> android', then have <USER> re-login."
+ elog "See http://developer.android.com/sdk/adding-components.html for more"
+ elog "information."
+ elog "If you have problems downloading the SDK, see https://code.google.com/p/android/issues/detail?id=4406"
+ elog "You need to run env-update and source /etc/profile in any open shells"
+ elog "if you get an SWT error."
+}
diff --git a/dev-util/android-sdk-update-manager/android-sdk-update-manager-22.0.1.ebuild b/dev-util/android-sdk-update-manager/android-sdk-update-manager-22.0.1.ebuild
new file mode 100644
index 000000000000..b4f3c7e230fd
--- /dev/null
+++ b/dev-util/android-sdk-update-manager/android-sdk-update-manager-22.0.1.ebuild
@@ -0,0 +1,99 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils user
+
+MY_P="android-sdk_r${PV}-linux"
+
+DESCRIPTION="Open Handset Alliance's Android SDK"
+HOMEPAGE="http://developer.android.com"
+SRC_URI="https://dl.google.com/android/${MY_P}.tgz"
+IUSE=""
+RESTRICT="mirror"
+
+LICENSE="android"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="app-arch/tar
+ app-arch/gzip"
+RDEPEND=">=virtual/jdk-1.5
+ >=dev-java/ant-core-1.6.5
+ >=dev-java/swt-3.5[cairo]
+ >=x11-libs/gtk+-2.24.23-r2:2[abi_x86_32(-)]
+"
+
+ANDROID_SDK_DIR="/opt/${PN}"
+QA_FLAGS_IGNORED_x86="
+ ${ANDROID_SDK_DIR/\/}/tools/emulator
+ ${ANDROID_SDK_DIR/\/}/tools/adb
+ ${ANDROID_SDK_DIR/\/}/tools/mksdcard
+ ${ANDROID_SDK_DIR/\/}/tools/sqlite3
+ ${ANDROID_SDK_DIR/\/}/tools/hprof-conv
+ ${ANDROID_SDK_DIR/\/}/tools/zipalign
+ ${ANDROID_SDK_DIR/\/}/tools/dmtracedump
+"
+QA_FLAGS_IGNORED_amd64="${QA_FLAGS_IGNORED_x86}"
+
+QA_PREBUILT="${ANDROID_SDK_DIR/\/}/tools/*"
+
+S="${WORKDIR}/android-sdk-linux"
+
+pkg_setup() {
+ enewgroup android
+}
+
+src_prepare(){
+ rm -rf tools/lib/x86*
+}
+
+src_install(){
+ dodoc tools/NOTICE.txt "SDK Readme.txt"
+ rm -f tools/NOTICE.txt "SDK Readme.txt"
+
+ dodir "${ANDROID_SDK_DIR}/tools"
+ cp -pPR tools/* "${ED}${ANDROID_SDK_DIR}/tools" || die "failed to install tools"
+
+ # Maybe this is needed for the tools directory too.
+ dodir "${ANDROID_SDK_DIR}"/{add-ons,build-tools,docs,extras,platforms,platform-tools,samples,sources,system-images,temp}
+
+ fowners root:android "${ANDROID_SDK_DIR}"/{add-ons,build-tools,docs,extras,platforms,platform-tools,samples,sources,system-images,temp,tools}
+ fperms 0775 "${ANDROID_SDK_DIR}"/{add-ons,build-tools,docs,extras,platforms,platform-tools,samples,sources,system-images,temp,tools}
+
+ echo "PATH=\"${EPREFIX}${ANDROID_SDK_DIR}/tools:${EPREFIX}${ANDROID_SDK_DIR}/platform-tools\"" > "${T}/80${PN}" || die
+
+ SWT_PATH=
+ SWT_VERSIONS="4.2 3.7 3.6 3.5"
+ for version in $SWT_VERSIONS; do
+ # redirecting stderr to /dev/null
+ # not sure if this is best, but avoids misleading error messages
+ SWT_PATH="`dirname \`java-config -p swt-\$version 2>/dev/null\` 2>/dev/null`"
+ if [ $SWT_PATH ]; then
+ einfo "SWT_PATH=$SWT_PATH selecting version $version of SWT."
+ break
+ fi
+ done
+
+ echo "ANDROID_SWT=\"${SWT_PATH}\"" >> "${T}/80${PN}" || die
+
+ doenvd "${T}/80${PN}"
+
+ echo "SEARCH_DIRS_MASK=\"${EPREFIX}${ANDROID_SDK_DIR}\"" > "${T}/80${PN}" || die
+
+ insinto "/etc/revdep-rebuild" && doins "${T}/80${PN}"
+
+}
+
+pkg_postinst() {
+ elog "The Android SDK now uses its own manager for the development environment."
+ elog "Run 'android' to download the full SDK, including some of the platform tools."
+ elog "You must be in the android group to manage the development environment."
+ elog "Just run 'gpasswd -a <USER> android', then have <USER> re-login."
+ elog "See http://developer.android.com/sdk/adding-components.html for more"
+ elog "information."
+ elog "If you have problems downloading the SDK, see https://code.google.com/p/android/issues/detail?id=4406"
+ elog "You need to run env-update and source /etc/profile in any open shells"
+ elog "if you get an SWT error."
+}
diff --git a/dev-util/android-sdk-update-manager/android-sdk-update-manager-22.0.4.ebuild b/dev-util/android-sdk-update-manager/android-sdk-update-manager-22.0.4.ebuild
new file mode 100644
index 000000000000..f7afd5560771
--- /dev/null
+++ b/dev-util/android-sdk-update-manager/android-sdk-update-manager-22.0.4.ebuild
@@ -0,0 +1,99 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit eutils user
+
+MY_P="android-sdk_r${PV}-linux"
+
+DESCRIPTION="Open Handset Alliance's Android SDK"
+HOMEPAGE="http://developer.android.com"
+SRC_URI="https://dl.google.com/android/${MY_P}.tgz"
+IUSE=""
+RESTRICT="mirror"
+
+LICENSE="android"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="app-arch/tar
+ app-arch/gzip"
+RDEPEND=">=virtual/jdk-1.5
+ >=dev-java/ant-core-1.6.5
+ || ( dev-java/swt:3.7[cairo] dev-java/swt:3.6[cairo] )
+ >=x11-libs/gtk+-2.24.23-r2:2[abi_x86_32(-)]
+"
+
+ANDROID_SDK_DIR="/opt/${PN}"
+QA_FLAGS_IGNORED_x86="
+ ${ANDROID_SDK_DIR/\/}/tools/emulator
+ ${ANDROID_SDK_DIR/\/}/tools/adb
+ ${ANDROID_SDK_DIR/\/}/tools/mksdcard
+ ${ANDROID_SDK_DIR/\/}/tools/sqlite3
+ ${ANDROID_SDK_DIR/\/}/tools/hprof-conv
+ ${ANDROID_SDK_DIR/\/}/tools/zipalign
+ ${ANDROID_SDK_DIR/\/}/tools/dmtracedump
+"
+QA_FLAGS_IGNORED_amd64="${QA_FLAGS_IGNORED_x86}"
+
+QA_PREBUILT="${ANDROID_SDK_DIR/\/}/tools/*"
+
+S="${WORKDIR}/android-sdk-linux"
+
+pkg_setup() {
+ enewgroup android
+}
+
+src_prepare(){
+ rm -rf tools/lib/x86*
+}
+
+src_install(){
+ dodoc tools/NOTICE.txt "SDK Readme.txt"
+ rm -f tools/NOTICE.txt "SDK Readme.txt"
+
+ dodir "${ANDROID_SDK_DIR}/tools"
+ cp -pPR tools/* "${ED}${ANDROID_SDK_DIR}/tools" || die "failed to install tools"
+
+ # Maybe this is needed for the tools directory too.
+ dodir "${ANDROID_SDK_DIR}"/{add-ons,build-tools,docs,extras,platforms,platform-tools,samples,sources,system-images,temp}
+
+ fowners root:android "${ANDROID_SDK_DIR}"/{.,add-ons,build-tools,docs,extras,platforms,platform-tools,samples,sources,system-images,temp,tools}
+ fperms 0775 "${ANDROID_SDK_DIR}"/{.,add-ons,build-tools,docs,extras,platforms,platform-tools,samples,sources,system-images,temp,tools}
+
+ echo "PATH=\"${EPREFIX}${ANDROID_SDK_DIR}/tools:${EPREFIX}${ANDROID_SDK_DIR}/platform-tools\"" > "${T}/80${PN}" || die
+
+ SWT_PATH=
+ SWT_VERSIONS="3.7 3.6"
+ for version in $SWT_VERSIONS; do
+ # redirecting stderr to /dev/null
+ # not sure if this is best, but avoids misleading error messages
+ SWT_PATH="`dirname \`java-config -p swt-\$version 2>/dev/null\` 2>/dev/null`"
+ if [ $SWT_PATH ]; then
+ einfo "SWT_PATH=$SWT_PATH selecting version $version of SWT."
+ break
+ fi
+ done
+
+ echo "ANDROID_SWT=\"${SWT_PATH}\"" >> "${T}/80${PN}" || die
+
+ doenvd "${T}/80${PN}"
+
+ echo "SEARCH_DIRS_MASK=\"${EPREFIX}${ANDROID_SDK_DIR}\"" > "${T}/80${PN}" || die
+
+ insinto "/etc/revdep-rebuild" && doins "${T}/80${PN}"
+
+}
+
+pkg_postinst() {
+ elog "The Android SDK now uses its own manager for the development environment."
+ elog "Run 'android' to download the full SDK, including some of the platform tools."
+ elog "You must be in the android group to manage the development environment."
+ elog "Just run 'gpasswd -a <USER> android', then have <USER> re-login."
+ elog "See http://developer.android.com/sdk/adding-components.html for more"
+ elog "information."
+ elog "If you have problems downloading the SDK, see https://code.google.com/p/android/issues/detail?id=4406"
+ elog "You need to run env-update and source /etc/profile in any open shells"
+ elog "if you get an SWT error."
+}
diff --git a/dev-util/android-sdk-update-manager/android-sdk-update-manager-22.0.5-r1.ebuild b/dev-util/android-sdk-update-manager/android-sdk-update-manager-22.0.5-r1.ebuild
new file mode 100644
index 000000000000..469b385c8e86
--- /dev/null
+++ b/dev-util/android-sdk-update-manager/android-sdk-update-manager-22.0.5-r1.ebuild
@@ -0,0 +1,100 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit eutils user
+
+MY_P="android-sdk_r${PV}-linux"
+
+DESCRIPTION="Open Handset Alliance's Android SDK"
+HOMEPAGE="http://developer.android.com"
+SRC_URI="https://dl.google.com/android/${MY_P}.tgz"
+IUSE=""
+RESTRICT="mirror"
+
+LICENSE="android"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="app-arch/tar
+ app-arch/gzip"
+RDEPEND=">=virtual/jdk-1.5
+ >=dev-java/ant-core-1.6.5
+ || ( dev-java/swt:3.7[cairo] dev-java/swt:3.6[cairo] )
+ >=x11-libs/gtk+-2.24.23-r2:2[abi_x86_32(-)]
+"
+
+ANDROID_SDK_DIR="/opt/${PN}"
+QA_FLAGS_IGNORED_x86="
+ ${ANDROID_SDK_DIR/\/}/tools/emulator
+ ${ANDROID_SDK_DIR/\/}/tools/adb
+ ${ANDROID_SDK_DIR/\/}/tools/mksdcard
+ ${ANDROID_SDK_DIR/\/}/tools/sqlite3
+ ${ANDROID_SDK_DIR/\/}/tools/hprof-conv
+ ${ANDROID_SDK_DIR/\/}/tools/zipalign
+ ${ANDROID_SDK_DIR/\/}/tools/dmtracedump
+"
+QA_FLAGS_IGNORED_amd64="${QA_FLAGS_IGNORED_x86}"
+
+QA_PREBUILT="${ANDROID_SDK_DIR/\/}/tools/*"
+
+S="${WORKDIR}/android-sdk-linux"
+
+pkg_setup() {
+ enewgroup android
+}
+
+src_prepare(){
+ rm -rf tools/lib/x86*
+}
+
+src_install(){
+ dodoc tools/NOTICE.txt "SDK Readme.txt"
+ rm -f tools/NOTICE.txt "SDK Readme.txt"
+
+ dodir "${ANDROID_SDK_DIR}/tools"
+ cp -pPR tools/* "${ED}${ANDROID_SDK_DIR}/tools" || die "failed to install tools"
+
+ # Maybe this is needed for the tools directory too.
+ dodir "${ANDROID_SDK_DIR}"/{add-ons,build-tools,docs,extras,platforms,platform-tools,samples,sources,system-images,temp}
+
+ fowners root:android "${ANDROID_SDK_DIR}"/{.,add-ons,build-tools,docs,extras,platforms,platform-tools,samples,sources,system-images,temp,tools}
+ fperms 0775 "${ANDROID_SDK_DIR}"/{.,add-ons,build-tools,docs,extras,platforms,platform-tools,samples,sources,system-images,temp,tools}
+
+ echo "PATH=\"${EPREFIX}${ANDROID_SDK_DIR}/tools:${EPREFIX}${ANDROID_SDK_DIR}/platform-tools\"" > "${T}/80${PN}" || die
+
+ SWT_PATH=
+ SWT_VERSIONS="3.7 3.6"
+ for version in $SWT_VERSIONS; do
+ # redirecting stderr to /dev/null
+ # not sure if this is best, but avoids misleading error messages
+ SWT_PATH="`dirname \`java-config -p swt-\$version 2>/dev/null\` 2>/dev/null`"
+ if [ $SWT_PATH ]; then
+ einfo "SWT_PATH=$SWT_PATH selecting version $version of SWT."
+ break
+ fi
+ done
+
+ echo "ANDROID_SWT=\"${SWT_PATH}\"" >> "${T}/80${PN}" || die
+ echo "ANDROID_HOME=\"${EPREFIX}${ANDROID_SDK_DIR}\"" >> "${T}/80${PN}" || die
+
+ doenvd "${T}/80${PN}"
+
+ echo "SEARCH_DIRS_MASK=\"${EPREFIX}${ANDROID_SDK_DIR}\"" > "${T}/80${PN}" || die
+
+ insinto "/etc/revdep-rebuild" && doins "${T}/80${PN}"
+
+}
+
+pkg_postinst() {
+ elog "The Android SDK now uses its own manager for the development environment."
+ elog "Run 'android' to download the full SDK, including some of the platform tools."
+ elog "You must be in the android group to manage the development environment."
+ elog "Just run 'gpasswd -a <USER> android', then have <USER> re-login."
+ elog "See http://developer.android.com/sdk/adding-components.html for more"
+ elog "information."
+ elog "If you have problems downloading the SDK, see https://code.google.com/p/android/issues/detail?id=4406"
+ elog "You need to run env-update and source /etc/profile in any open shells"
+ elog "if you get an SWT error."
+}
diff --git a/dev-util/android-sdk-update-manager/android-sdk-update-manager-22.0.5.ebuild b/dev-util/android-sdk-update-manager/android-sdk-update-manager-22.0.5.ebuild
new file mode 100644
index 000000000000..f7afd5560771
--- /dev/null
+++ b/dev-util/android-sdk-update-manager/android-sdk-update-manager-22.0.5.ebuild
@@ -0,0 +1,99 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit eutils user
+
+MY_P="android-sdk_r${PV}-linux"
+
+DESCRIPTION="Open Handset Alliance's Android SDK"
+HOMEPAGE="http://developer.android.com"
+SRC_URI="https://dl.google.com/android/${MY_P}.tgz"
+IUSE=""
+RESTRICT="mirror"
+
+LICENSE="android"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="app-arch/tar
+ app-arch/gzip"
+RDEPEND=">=virtual/jdk-1.5
+ >=dev-java/ant-core-1.6.5
+ || ( dev-java/swt:3.7[cairo] dev-java/swt:3.6[cairo] )
+ >=x11-libs/gtk+-2.24.23-r2:2[abi_x86_32(-)]
+"
+
+ANDROID_SDK_DIR="/opt/${PN}"
+QA_FLAGS_IGNORED_x86="
+ ${ANDROID_SDK_DIR/\/}/tools/emulator
+ ${ANDROID_SDK_DIR/\/}/tools/adb
+ ${ANDROID_SDK_DIR/\/}/tools/mksdcard
+ ${ANDROID_SDK_DIR/\/}/tools/sqlite3
+ ${ANDROID_SDK_DIR/\/}/tools/hprof-conv
+ ${ANDROID_SDK_DIR/\/}/tools/zipalign
+ ${ANDROID_SDK_DIR/\/}/tools/dmtracedump
+"
+QA_FLAGS_IGNORED_amd64="${QA_FLAGS_IGNORED_x86}"
+
+QA_PREBUILT="${ANDROID_SDK_DIR/\/}/tools/*"
+
+S="${WORKDIR}/android-sdk-linux"
+
+pkg_setup() {
+ enewgroup android
+}
+
+src_prepare(){
+ rm -rf tools/lib/x86*
+}
+
+src_install(){
+ dodoc tools/NOTICE.txt "SDK Readme.txt"
+ rm -f tools/NOTICE.txt "SDK Readme.txt"
+
+ dodir "${ANDROID_SDK_DIR}/tools"
+ cp -pPR tools/* "${ED}${ANDROID_SDK_DIR}/tools" || die "failed to install tools"
+
+ # Maybe this is needed for the tools directory too.
+ dodir "${ANDROID_SDK_DIR}"/{add-ons,build-tools,docs,extras,platforms,platform-tools,samples,sources,system-images,temp}
+
+ fowners root:android "${ANDROID_SDK_DIR}"/{.,add-ons,build-tools,docs,extras,platforms,platform-tools,samples,sources,system-images,temp,tools}
+ fperms 0775 "${ANDROID_SDK_DIR}"/{.,add-ons,build-tools,docs,extras,platforms,platform-tools,samples,sources,system-images,temp,tools}
+
+ echo "PATH=\"${EPREFIX}${ANDROID_SDK_DIR}/tools:${EPREFIX}${ANDROID_SDK_DIR}/platform-tools\"" > "${T}/80${PN}" || die
+
+ SWT_PATH=
+ SWT_VERSIONS="3.7 3.6"
+ for version in $SWT_VERSIONS; do
+ # redirecting stderr to /dev/null
+ # not sure if this is best, but avoids misleading error messages
+ SWT_PATH="`dirname \`java-config -p swt-\$version 2>/dev/null\` 2>/dev/null`"
+ if [ $SWT_PATH ]; then
+ einfo "SWT_PATH=$SWT_PATH selecting version $version of SWT."
+ break
+ fi
+ done
+
+ echo "ANDROID_SWT=\"${SWT_PATH}\"" >> "${T}/80${PN}" || die
+
+ doenvd "${T}/80${PN}"
+
+ echo "SEARCH_DIRS_MASK=\"${EPREFIX}${ANDROID_SDK_DIR}\"" > "${T}/80${PN}" || die
+
+ insinto "/etc/revdep-rebuild" && doins "${T}/80${PN}"
+
+}
+
+pkg_postinst() {
+ elog "The Android SDK now uses its own manager for the development environment."
+ elog "Run 'android' to download the full SDK, including some of the platform tools."
+ elog "You must be in the android group to manage the development environment."
+ elog "Just run 'gpasswd -a <USER> android', then have <USER> re-login."
+ elog "See http://developer.android.com/sdk/adding-components.html for more"
+ elog "information."
+ elog "If you have problems downloading the SDK, see https://code.google.com/p/android/issues/detail?id=4406"
+ elog "You need to run env-update and source /etc/profile in any open shells"
+ elog "if you get an SWT error."
+}
diff --git a/dev-util/android-sdk-update-manager/android-sdk-update-manager-22.2.1.ebuild b/dev-util/android-sdk-update-manager/android-sdk-update-manager-22.2.1.ebuild
new file mode 100644
index 000000000000..469b385c8e86
--- /dev/null
+++ b/dev-util/android-sdk-update-manager/android-sdk-update-manager-22.2.1.ebuild
@@ -0,0 +1,100 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit eutils user
+
+MY_P="android-sdk_r${PV}-linux"
+
+DESCRIPTION="Open Handset Alliance's Android SDK"
+HOMEPAGE="http://developer.android.com"
+SRC_URI="https://dl.google.com/android/${MY_P}.tgz"
+IUSE=""
+RESTRICT="mirror"
+
+LICENSE="android"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="app-arch/tar
+ app-arch/gzip"
+RDEPEND=">=virtual/jdk-1.5
+ >=dev-java/ant-core-1.6.5
+ || ( dev-java/swt:3.7[cairo] dev-java/swt:3.6[cairo] )
+ >=x11-libs/gtk+-2.24.23-r2:2[abi_x86_32(-)]
+"
+
+ANDROID_SDK_DIR="/opt/${PN}"
+QA_FLAGS_IGNORED_x86="
+ ${ANDROID_SDK_DIR/\/}/tools/emulator
+ ${ANDROID_SDK_DIR/\/}/tools/adb
+ ${ANDROID_SDK_DIR/\/}/tools/mksdcard
+ ${ANDROID_SDK_DIR/\/}/tools/sqlite3
+ ${ANDROID_SDK_DIR/\/}/tools/hprof-conv
+ ${ANDROID_SDK_DIR/\/}/tools/zipalign
+ ${ANDROID_SDK_DIR/\/}/tools/dmtracedump
+"
+QA_FLAGS_IGNORED_amd64="${QA_FLAGS_IGNORED_x86}"
+
+QA_PREBUILT="${ANDROID_SDK_DIR/\/}/tools/*"
+
+S="${WORKDIR}/android-sdk-linux"
+
+pkg_setup() {
+ enewgroup android
+}
+
+src_prepare(){
+ rm -rf tools/lib/x86*
+}
+
+src_install(){
+ dodoc tools/NOTICE.txt "SDK Readme.txt"
+ rm -f tools/NOTICE.txt "SDK Readme.txt"
+
+ dodir "${ANDROID_SDK_DIR}/tools"
+ cp -pPR tools/* "${ED}${ANDROID_SDK_DIR}/tools" || die "failed to install tools"
+
+ # Maybe this is needed for the tools directory too.
+ dodir "${ANDROID_SDK_DIR}"/{add-ons,build-tools,docs,extras,platforms,platform-tools,samples,sources,system-images,temp}
+
+ fowners root:android "${ANDROID_SDK_DIR}"/{.,add-ons,build-tools,docs,extras,platforms,platform-tools,samples,sources,system-images,temp,tools}
+ fperms 0775 "${ANDROID_SDK_DIR}"/{.,add-ons,build-tools,docs,extras,platforms,platform-tools,samples,sources,system-images,temp,tools}
+
+ echo "PATH=\"${EPREFIX}${ANDROID_SDK_DIR}/tools:${EPREFIX}${ANDROID_SDK_DIR}/platform-tools\"" > "${T}/80${PN}" || die
+
+ SWT_PATH=
+ SWT_VERSIONS="3.7 3.6"
+ for version in $SWT_VERSIONS; do
+ # redirecting stderr to /dev/null
+ # not sure if this is best, but avoids misleading error messages
+ SWT_PATH="`dirname \`java-config -p swt-\$version 2>/dev/null\` 2>/dev/null`"
+ if [ $SWT_PATH ]; then
+ einfo "SWT_PATH=$SWT_PATH selecting version $version of SWT."
+ break
+ fi
+ done
+
+ echo "ANDROID_SWT=\"${SWT_PATH}\"" >> "${T}/80${PN}" || die
+ echo "ANDROID_HOME=\"${EPREFIX}${ANDROID_SDK_DIR}\"" >> "${T}/80${PN}" || die
+
+ doenvd "${T}/80${PN}"
+
+ echo "SEARCH_DIRS_MASK=\"${EPREFIX}${ANDROID_SDK_DIR}\"" > "${T}/80${PN}" || die
+
+ insinto "/etc/revdep-rebuild" && doins "${T}/80${PN}"
+
+}
+
+pkg_postinst() {
+ elog "The Android SDK now uses its own manager for the development environment."
+ elog "Run 'android' to download the full SDK, including some of the platform tools."
+ elog "You must be in the android group to manage the development environment."
+ elog "Just run 'gpasswd -a <USER> android', then have <USER> re-login."
+ elog "See http://developer.android.com/sdk/adding-components.html for more"
+ elog "information."
+ elog "If you have problems downloading the SDK, see https://code.google.com/p/android/issues/detail?id=4406"
+ elog "You need to run env-update and source /etc/profile in any open shells"
+ elog "if you get an SWT error."
+}
diff --git a/dev-util/android-sdk-update-manager/android-sdk-update-manager-22.3.ebuild b/dev-util/android-sdk-update-manager/android-sdk-update-manager-22.3.ebuild
new file mode 100644
index 000000000000..5c4a40c1c3a3
--- /dev/null
+++ b/dev-util/android-sdk-update-manager/android-sdk-update-manager-22.3.ebuild
@@ -0,0 +1,102 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit eutils user udev
+
+MY_P="android-sdk_r${PV}-linux"
+
+DESCRIPTION="Open Handset Alliance's Android SDK"
+HOMEPAGE="http://developer.android.com"
+SRC_URI="https://dl.google.com/android/${MY_P}.tgz"
+IUSE=""
+RESTRICT="mirror"
+
+LICENSE="android"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="app-arch/tar
+ app-arch/gzip"
+RDEPEND=">=virtual/jdk-1.5
+ >=dev-java/ant-core-1.6.5
+ || ( dev-java/swt:3.7[cairo] dev-java/swt:3.6[cairo] )
+ >=x11-libs/gtk+-2.24.23-r2:2[abi_x86_32(-)]
+"
+
+ANDROID_SDK_DIR="/opt/${PN}"
+QA_FLAGS_IGNORED_x86="
+ ${ANDROID_SDK_DIR/\/}/tools/emulator
+ ${ANDROID_SDK_DIR/\/}/tools/adb
+ ${ANDROID_SDK_DIR/\/}/tools/mksdcard
+ ${ANDROID_SDK_DIR/\/}/tools/sqlite3
+ ${ANDROID_SDK_DIR/\/}/tools/hprof-conv
+ ${ANDROID_SDK_DIR/\/}/tools/zipalign
+ ${ANDROID_SDK_DIR/\/}/tools/dmtracedump
+"
+QA_FLAGS_IGNORED_amd64="${QA_FLAGS_IGNORED_x86}"
+
+QA_PREBUILT="${ANDROID_SDK_DIR/\/}/tools/*"
+
+S="${WORKDIR}/android-sdk-linux"
+
+pkg_setup() {
+ enewgroup android
+}
+
+src_prepare(){
+ rm -rf tools/lib/x86*
+}
+
+src_install(){
+ dodoc tools/NOTICE.txt "SDK Readme.txt"
+ rm -f tools/NOTICE.txt "SDK Readme.txt"
+
+ dodir "${ANDROID_SDK_DIR}/tools"
+ cp -pPR tools/* "${ED}${ANDROID_SDK_DIR}/tools" || die "failed to install tools"
+
+ # Maybe this is needed for the tools directory too.
+ dodir "${ANDROID_SDK_DIR}"/{add-ons,build-tools,docs,extras,platforms,platform-tools,samples,sources,system-images,temp}
+
+ fowners root:android "${ANDROID_SDK_DIR}"/{.,add-ons,build-tools,docs,extras,platforms,platform-tools,samples,sources,system-images,temp,tools}
+ fperms 0775 "${ANDROID_SDK_DIR}"/{.,add-ons,build-tools,docs,extras,platforms,platform-tools,samples,sources,system-images,temp,tools}
+
+ echo "PATH=\"${EPREFIX}${ANDROID_SDK_DIR}/tools:${EPREFIX}${ANDROID_SDK_DIR}/platform-tools\"" > "${T}/80${PN}" || die
+
+ SWT_PATH=
+ SWT_VERSIONS="3.7 3.6"
+ for version in $SWT_VERSIONS; do
+ # redirecting stderr to /dev/null
+ # not sure if this is best, but avoids misleading error messages
+ SWT_PATH="`dirname \`java-config -p swt-\$version 2>/dev/null\` 2>/dev/null`"
+ if [ $SWT_PATH ]; then
+ einfo "SWT_PATH=$SWT_PATH selecting version $version of SWT."
+ break
+ fi
+ done
+
+ echo "ANDROID_SWT=\"${SWT_PATH}\"" >> "${T}/80${PN}" || die
+ echo "ANDROID_HOME=\"${EPREFIX}${ANDROID_SDK_DIR}\"" >> "${T}/80${PN}" || die
+
+ doenvd "${T}/80${PN}"
+
+ echo "SEARCH_DIRS_MASK=\"${EPREFIX}${ANDROID_SDK_DIR}\"" > "${T}/80${PN}" || die
+
+ insinto "/etc/revdep-rebuild" && doins "${T}/80${PN}"
+
+ udev_dorules "${FILESDIR}"/80-android.rules || die
+ domenu "${FILESDIR}"/android-sdk-update-manager.desktop
+}
+
+pkg_postinst() {
+ elog "The Android SDK now uses its own manager for the development environment."
+ elog "Run 'android' to download the full SDK, including some of the platform tools."
+ elog "You must be in the android group to manage the development environment."
+ elog "Just run 'gpasswd -a <USER> android', then have <USER> re-login."
+ elog "See http://developer.android.com/sdk/adding-components.html for more"
+ elog "information."
+ elog "If you have problems downloading the SDK, see https://code.google.com/p/android/issues/detail?id=4406"
+ elog "You need to run env-update and source /etc/profile in any open shells"
+ elog "if you get an SWT error."
+}
diff --git a/dev-util/android-sdk-update-manager/android-sdk-update-manager-22.6.1.ebuild b/dev-util/android-sdk-update-manager/android-sdk-update-manager-22.6.1.ebuild
new file mode 100644
index 000000000000..5c4a40c1c3a3
--- /dev/null
+++ b/dev-util/android-sdk-update-manager/android-sdk-update-manager-22.6.1.ebuild
@@ -0,0 +1,102 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit eutils user udev
+
+MY_P="android-sdk_r${PV}-linux"
+
+DESCRIPTION="Open Handset Alliance's Android SDK"
+HOMEPAGE="http://developer.android.com"
+SRC_URI="https://dl.google.com/android/${MY_P}.tgz"
+IUSE=""
+RESTRICT="mirror"
+
+LICENSE="android"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="app-arch/tar
+ app-arch/gzip"
+RDEPEND=">=virtual/jdk-1.5
+ >=dev-java/ant-core-1.6.5
+ || ( dev-java/swt:3.7[cairo] dev-java/swt:3.6[cairo] )
+ >=x11-libs/gtk+-2.24.23-r2:2[abi_x86_32(-)]
+"
+
+ANDROID_SDK_DIR="/opt/${PN}"
+QA_FLAGS_IGNORED_x86="
+ ${ANDROID_SDK_DIR/\/}/tools/emulator
+ ${ANDROID_SDK_DIR/\/}/tools/adb
+ ${ANDROID_SDK_DIR/\/}/tools/mksdcard
+ ${ANDROID_SDK_DIR/\/}/tools/sqlite3
+ ${ANDROID_SDK_DIR/\/}/tools/hprof-conv
+ ${ANDROID_SDK_DIR/\/}/tools/zipalign
+ ${ANDROID_SDK_DIR/\/}/tools/dmtracedump
+"
+QA_FLAGS_IGNORED_amd64="${QA_FLAGS_IGNORED_x86}"
+
+QA_PREBUILT="${ANDROID_SDK_DIR/\/}/tools/*"
+
+S="${WORKDIR}/android-sdk-linux"
+
+pkg_setup() {
+ enewgroup android
+}
+
+src_prepare(){
+ rm -rf tools/lib/x86*
+}
+
+src_install(){
+ dodoc tools/NOTICE.txt "SDK Readme.txt"
+ rm -f tools/NOTICE.txt "SDK Readme.txt"
+
+ dodir "${ANDROID_SDK_DIR}/tools"
+ cp -pPR tools/* "${ED}${ANDROID_SDK_DIR}/tools" || die "failed to install tools"
+
+ # Maybe this is needed for the tools directory too.
+ dodir "${ANDROID_SDK_DIR}"/{add-ons,build-tools,docs,extras,platforms,platform-tools,samples,sources,system-images,temp}
+
+ fowners root:android "${ANDROID_SDK_DIR}"/{.,add-ons,build-tools,docs,extras,platforms,platform-tools,samples,sources,system-images,temp,tools}
+ fperms 0775 "${ANDROID_SDK_DIR}"/{.,add-ons,build-tools,docs,extras,platforms,platform-tools,samples,sources,system-images,temp,tools}
+
+ echo "PATH=\"${EPREFIX}${ANDROID_SDK_DIR}/tools:${EPREFIX}${ANDROID_SDK_DIR}/platform-tools\"" > "${T}/80${PN}" || die
+
+ SWT_PATH=
+ SWT_VERSIONS="3.7 3.6"
+ for version in $SWT_VERSIONS; do
+ # redirecting stderr to /dev/null
+ # not sure if this is best, but avoids misleading error messages
+ SWT_PATH="`dirname \`java-config -p swt-\$version 2>/dev/null\` 2>/dev/null`"
+ if [ $SWT_PATH ]; then
+ einfo "SWT_PATH=$SWT_PATH selecting version $version of SWT."
+ break
+ fi
+ done
+
+ echo "ANDROID_SWT=\"${SWT_PATH}\"" >> "${T}/80${PN}" || die
+ echo "ANDROID_HOME=\"${EPREFIX}${ANDROID_SDK_DIR}\"" >> "${T}/80${PN}" || die
+
+ doenvd "${T}/80${PN}"
+
+ echo "SEARCH_DIRS_MASK=\"${EPREFIX}${ANDROID_SDK_DIR}\"" > "${T}/80${PN}" || die
+
+ insinto "/etc/revdep-rebuild" && doins "${T}/80${PN}"
+
+ udev_dorules "${FILESDIR}"/80-android.rules || die
+ domenu "${FILESDIR}"/android-sdk-update-manager.desktop
+}
+
+pkg_postinst() {
+ elog "The Android SDK now uses its own manager for the development environment."
+ elog "Run 'android' to download the full SDK, including some of the platform tools."
+ elog "You must be in the android group to manage the development environment."
+ elog "Just run 'gpasswd -a <USER> android', then have <USER> re-login."
+ elog "See http://developer.android.com/sdk/adding-components.html for more"
+ elog "information."
+ elog "If you have problems downloading the SDK, see https://code.google.com/p/android/issues/detail?id=4406"
+ elog "You need to run env-update and source /etc/profile in any open shells"
+ elog "if you get an SWT error."
+}
diff --git a/dev-util/android-sdk-update-manager/android-sdk-update-manager-22.6.ebuild b/dev-util/android-sdk-update-manager/android-sdk-update-manager-22.6.ebuild
new file mode 100644
index 000000000000..5c4a40c1c3a3
--- /dev/null
+++ b/dev-util/android-sdk-update-manager/android-sdk-update-manager-22.6.ebuild
@@ -0,0 +1,102 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit eutils user udev
+
+MY_P="android-sdk_r${PV}-linux"
+
+DESCRIPTION="Open Handset Alliance's Android SDK"
+HOMEPAGE="http://developer.android.com"
+SRC_URI="https://dl.google.com/android/${MY_P}.tgz"
+IUSE=""
+RESTRICT="mirror"
+
+LICENSE="android"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="app-arch/tar
+ app-arch/gzip"
+RDEPEND=">=virtual/jdk-1.5
+ >=dev-java/ant-core-1.6.5
+ || ( dev-java/swt:3.7[cairo] dev-java/swt:3.6[cairo] )
+ >=x11-libs/gtk+-2.24.23-r2:2[abi_x86_32(-)]
+"
+
+ANDROID_SDK_DIR="/opt/${PN}"
+QA_FLAGS_IGNORED_x86="
+ ${ANDROID_SDK_DIR/\/}/tools/emulator
+ ${ANDROID_SDK_DIR/\/}/tools/adb
+ ${ANDROID_SDK_DIR/\/}/tools/mksdcard
+ ${ANDROID_SDK_DIR/\/}/tools/sqlite3
+ ${ANDROID_SDK_DIR/\/}/tools/hprof-conv
+ ${ANDROID_SDK_DIR/\/}/tools/zipalign
+ ${ANDROID_SDK_DIR/\/}/tools/dmtracedump
+"
+QA_FLAGS_IGNORED_amd64="${QA_FLAGS_IGNORED_x86}"
+
+QA_PREBUILT="${ANDROID_SDK_DIR/\/}/tools/*"
+
+S="${WORKDIR}/android-sdk-linux"
+
+pkg_setup() {
+ enewgroup android
+}
+
+src_prepare(){
+ rm -rf tools/lib/x86*
+}
+
+src_install(){
+ dodoc tools/NOTICE.txt "SDK Readme.txt"
+ rm -f tools/NOTICE.txt "SDK Readme.txt"
+
+ dodir "${ANDROID_SDK_DIR}/tools"
+ cp -pPR tools/* "${ED}${ANDROID_SDK_DIR}/tools" || die "failed to install tools"
+
+ # Maybe this is needed for the tools directory too.
+ dodir "${ANDROID_SDK_DIR}"/{add-ons,build-tools,docs,extras,platforms,platform-tools,samples,sources,system-images,temp}
+
+ fowners root:android "${ANDROID_SDK_DIR}"/{.,add-ons,build-tools,docs,extras,platforms,platform-tools,samples,sources,system-images,temp,tools}
+ fperms 0775 "${ANDROID_SDK_DIR}"/{.,add-ons,build-tools,docs,extras,platforms,platform-tools,samples,sources,system-images,temp,tools}
+
+ echo "PATH=\"${EPREFIX}${ANDROID_SDK_DIR}/tools:${EPREFIX}${ANDROID_SDK_DIR}/platform-tools\"" > "${T}/80${PN}" || die
+
+ SWT_PATH=
+ SWT_VERSIONS="3.7 3.6"
+ for version in $SWT_VERSIONS; do
+ # redirecting stderr to /dev/null
+ # not sure if this is best, but avoids misleading error messages
+ SWT_PATH="`dirname \`java-config -p swt-\$version 2>/dev/null\` 2>/dev/null`"
+ if [ $SWT_PATH ]; then
+ einfo "SWT_PATH=$SWT_PATH selecting version $version of SWT."
+ break
+ fi
+ done
+
+ echo "ANDROID_SWT=\"${SWT_PATH}\"" >> "${T}/80${PN}" || die
+ echo "ANDROID_HOME=\"${EPREFIX}${ANDROID_SDK_DIR}\"" >> "${T}/80${PN}" || die
+
+ doenvd "${T}/80${PN}"
+
+ echo "SEARCH_DIRS_MASK=\"${EPREFIX}${ANDROID_SDK_DIR}\"" > "${T}/80${PN}" || die
+
+ insinto "/etc/revdep-rebuild" && doins "${T}/80${PN}"
+
+ udev_dorules "${FILESDIR}"/80-android.rules || die
+ domenu "${FILESDIR}"/android-sdk-update-manager.desktop
+}
+
+pkg_postinst() {
+ elog "The Android SDK now uses its own manager for the development environment."
+ elog "Run 'android' to download the full SDK, including some of the platform tools."
+ elog "You must be in the android group to manage the development environment."
+ elog "Just run 'gpasswd -a <USER> android', then have <USER> re-login."
+ elog "See http://developer.android.com/sdk/adding-components.html for more"
+ elog "information."
+ elog "If you have problems downloading the SDK, see https://code.google.com/p/android/issues/detail?id=4406"
+ elog "You need to run env-update and source /etc/profile in any open shells"
+ elog "if you get an SWT error."
+}
diff --git a/dev-util/android-sdk-update-manager/android-sdk-update-manager-22.ebuild b/dev-util/android-sdk-update-manager/android-sdk-update-manager-22.ebuild
new file mode 100644
index 000000000000..b4f3c7e230fd
--- /dev/null
+++ b/dev-util/android-sdk-update-manager/android-sdk-update-manager-22.ebuild
@@ -0,0 +1,99 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils user
+
+MY_P="android-sdk_r${PV}-linux"
+
+DESCRIPTION="Open Handset Alliance's Android SDK"
+HOMEPAGE="http://developer.android.com"
+SRC_URI="https://dl.google.com/android/${MY_P}.tgz"
+IUSE=""
+RESTRICT="mirror"
+
+LICENSE="android"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="app-arch/tar
+ app-arch/gzip"
+RDEPEND=">=virtual/jdk-1.5
+ >=dev-java/ant-core-1.6.5
+ >=dev-java/swt-3.5[cairo]
+ >=x11-libs/gtk+-2.24.23-r2:2[abi_x86_32(-)]
+"
+
+ANDROID_SDK_DIR="/opt/${PN}"
+QA_FLAGS_IGNORED_x86="
+ ${ANDROID_SDK_DIR/\/}/tools/emulator
+ ${ANDROID_SDK_DIR/\/}/tools/adb
+ ${ANDROID_SDK_DIR/\/}/tools/mksdcard
+ ${ANDROID_SDK_DIR/\/}/tools/sqlite3
+ ${ANDROID_SDK_DIR/\/}/tools/hprof-conv
+ ${ANDROID_SDK_DIR/\/}/tools/zipalign
+ ${ANDROID_SDK_DIR/\/}/tools/dmtracedump
+"
+QA_FLAGS_IGNORED_amd64="${QA_FLAGS_IGNORED_x86}"
+
+QA_PREBUILT="${ANDROID_SDK_DIR/\/}/tools/*"
+
+S="${WORKDIR}/android-sdk-linux"
+
+pkg_setup() {
+ enewgroup android
+}
+
+src_prepare(){
+ rm -rf tools/lib/x86*
+}
+
+src_install(){
+ dodoc tools/NOTICE.txt "SDK Readme.txt"
+ rm -f tools/NOTICE.txt "SDK Readme.txt"
+
+ dodir "${ANDROID_SDK_DIR}/tools"
+ cp -pPR tools/* "${ED}${ANDROID_SDK_DIR}/tools" || die "failed to install tools"
+
+ # Maybe this is needed for the tools directory too.
+ dodir "${ANDROID_SDK_DIR}"/{add-ons,build-tools,docs,extras,platforms,platform-tools,samples,sources,system-images,temp}
+
+ fowners root:android "${ANDROID_SDK_DIR}"/{add-ons,build-tools,docs,extras,platforms,platform-tools,samples,sources,system-images,temp,tools}
+ fperms 0775 "${ANDROID_SDK_DIR}"/{add-ons,build-tools,docs,extras,platforms,platform-tools,samples,sources,system-images,temp,tools}
+
+ echo "PATH=\"${EPREFIX}${ANDROID_SDK_DIR}/tools:${EPREFIX}${ANDROID_SDK_DIR}/platform-tools\"" > "${T}/80${PN}" || die
+
+ SWT_PATH=
+ SWT_VERSIONS="4.2 3.7 3.6 3.5"
+ for version in $SWT_VERSIONS; do
+ # redirecting stderr to /dev/null
+ # not sure if this is best, but avoids misleading error messages
+ SWT_PATH="`dirname \`java-config -p swt-\$version 2>/dev/null\` 2>/dev/null`"
+ if [ $SWT_PATH ]; then
+ einfo "SWT_PATH=$SWT_PATH selecting version $version of SWT."
+ break
+ fi
+ done
+
+ echo "ANDROID_SWT=\"${SWT_PATH}\"" >> "${T}/80${PN}" || die
+
+ doenvd "${T}/80${PN}"
+
+ echo "SEARCH_DIRS_MASK=\"${EPREFIX}${ANDROID_SDK_DIR}\"" > "${T}/80${PN}" || die
+
+ insinto "/etc/revdep-rebuild" && doins "${T}/80${PN}"
+
+}
+
+pkg_postinst() {
+ elog "The Android SDK now uses its own manager for the development environment."
+ elog "Run 'android' to download the full SDK, including some of the platform tools."
+ elog "You must be in the android group to manage the development environment."
+ elog "Just run 'gpasswd -a <USER> android', then have <USER> re-login."
+ elog "See http://developer.android.com/sdk/adding-components.html for more"
+ elog "information."
+ elog "If you have problems downloading the SDK, see https://code.google.com/p/android/issues/detail?id=4406"
+ elog "You need to run env-update and source /etc/profile in any open shells"
+ elog "if you get an SWT error."
+}
diff --git a/dev-util/android-sdk-update-manager/android-sdk-update-manager-23-r1.ebuild b/dev-util/android-sdk-update-manager/android-sdk-update-manager-23-r1.ebuild
new file mode 100644
index 000000000000..d68d94698d08
--- /dev/null
+++ b/dev-util/android-sdk-update-manager/android-sdk-update-manager-23-r1.ebuild
@@ -0,0 +1,102 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit eutils user udev
+
+MY_P="android-sdk_r${PV}-linux"
+
+DESCRIPTION="Open Handset Alliance's Android SDK"
+HOMEPAGE="http://developer.android.com"
+SRC_URI="https://dl.google.com/android/${MY_P}.tgz"
+IUSE=""
+RESTRICT="mirror"
+
+LICENSE="android"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="app-arch/tar
+ app-arch/gzip"
+RDEPEND=">=virtual/jdk-1.5
+ >=dev-java/ant-core-1.6.5
+ || ( dev-java/swt:3.7[cairo] dev-java/swt:3.6[cairo] )
+ sys-libs/zlib[abi_x86_32(-)]
+"
+
+ANDROID_SDK_DIR="/opt/${PN}"
+QA_FLAGS_IGNORED_x86="
+ ${ANDROID_SDK_DIR/\/}/tools/emulator
+ ${ANDROID_SDK_DIR/\/}/tools/adb
+ ${ANDROID_SDK_DIR/\/}/tools/mksdcard
+ ${ANDROID_SDK_DIR/\/}/tools/sqlite3
+ ${ANDROID_SDK_DIR/\/}/tools/hprof-conv
+ ${ANDROID_SDK_DIR/\/}/tools/zipalign
+ ${ANDROID_SDK_DIR/\/}/tools/dmtracedump
+"
+QA_FLAGS_IGNORED_amd64="${QA_FLAGS_IGNORED_x86}"
+
+QA_PREBUILT="${ANDROID_SDK_DIR/\/}/tools/*"
+
+S="${WORKDIR}/android-sdk-linux"
+
+pkg_setup() {
+ enewgroup android
+}
+
+src_prepare(){
+ rm -rf tools/lib/x86*
+}
+
+src_install(){
+ dodoc tools/NOTICE.txt "SDK Readme.txt"
+ rm -f tools/NOTICE.txt "SDK Readme.txt"
+
+ dodir "${ANDROID_SDK_DIR}/tools"
+ cp -pPR tools/* "${ED}${ANDROID_SDK_DIR}/tools" || die "failed to install tools"
+
+ # Maybe this is needed for the tools directory too.
+ dodir "${ANDROID_SDK_DIR}"/{add-ons,build-tools,docs,extras,platforms,platform-tools,samples,sources,system-images,temp}
+
+ fowners -R root:android "${ANDROID_SDK_DIR}"/{.,add-ons,build-tools,docs,extras,platforms,platform-tools,samples,sources,system-images,temp,tools}
+ fperms -R 0775 "${ANDROID_SDK_DIR}"/{.,add-ons,build-tools,docs,extras,platforms,platform-tools,samples,sources,system-images,temp,tools}
+
+ echo "PATH=\"${EPREFIX}${ANDROID_SDK_DIR}/tools:${EPREFIX}${ANDROID_SDK_DIR}/platform-tools\"" > "${T}/80${PN}" || die
+
+ SWT_PATH=
+ SWT_VERSIONS="3.7 3.6"
+ for version in $SWT_VERSIONS; do
+ # redirecting stderr to /dev/null
+ # not sure if this is best, but avoids misleading error messages
+ SWT_PATH="`dirname \`java-config -p swt-\$version 2>/dev/null\` 2>/dev/null`"
+ if [ $SWT_PATH ]; then
+ einfo "SWT_PATH=$SWT_PATH selecting version $version of SWT."
+ break
+ fi
+ done
+
+ echo "ANDROID_SWT=\"${SWT_PATH}\"" >> "${T}/80${PN}" || die
+ echo "ANDROID_HOME=\"${EPREFIX}${ANDROID_SDK_DIR}\"" >> "${T}/80${PN}" || die
+
+ doenvd "${T}/80${PN}"
+
+ echo "SEARCH_DIRS_MASK=\"${EPREFIX}${ANDROID_SDK_DIR}\"" > "${T}/80${PN}" || die
+
+ insinto "/etc/revdep-rebuild" && doins "${T}/80${PN}"
+
+ udev_dorules "${FILESDIR}"/80-android.rules || die
+ domenu "${FILESDIR}"/android-sdk-update-manager.desktop
+}
+
+pkg_postinst() {
+ elog "The Android SDK now uses its own manager for the development environment."
+ elog "Run 'android' to download the full SDK, including some of the platform tools."
+ elog "You must be in the android group to manage the development environment."
+ elog "Just run 'gpasswd -a <USER> android', then have <USER> re-login."
+ elog "See http://developer.android.com/sdk/adding-components.html for more"
+ elog "information."
+ elog "If you have problems downloading the SDK, see https://code.google.com/p/android/issues/detail?id=4406"
+ elog "You need to run env-update and source /etc/profile in any open shells"
+ elog "if you get an SWT error."
+}
diff --git a/dev-util/android-sdk-update-manager/android-sdk-update-manager-23.ebuild b/dev-util/android-sdk-update-manager/android-sdk-update-manager-23.ebuild
new file mode 100644
index 000000000000..dae7e2366b65
--- /dev/null
+++ b/dev-util/android-sdk-update-manager/android-sdk-update-manager-23.ebuild
@@ -0,0 +1,102 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit eutils user udev
+
+MY_P="android-sdk_r${PV}-linux"
+
+DESCRIPTION="Open Handset Alliance's Android SDK"
+HOMEPAGE="http://developer.android.com"
+SRC_URI="https://dl.google.com/android/${MY_P}.tgz"
+IUSE=""
+RESTRICT="mirror"
+
+LICENSE="android"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="app-arch/tar
+ app-arch/gzip"
+RDEPEND=">=virtual/jdk-1.5
+ >=dev-java/ant-core-1.6.5
+ || ( dev-java/swt:3.7[cairo] dev-java/swt:3.6[cairo] )
+ sys-libs/zlib[abi_x86_32(-)]
+"
+
+ANDROID_SDK_DIR="/opt/${PN}"
+QA_FLAGS_IGNORED_x86="
+ ${ANDROID_SDK_DIR/\/}/tools/emulator
+ ${ANDROID_SDK_DIR/\/}/tools/adb
+ ${ANDROID_SDK_DIR/\/}/tools/mksdcard
+ ${ANDROID_SDK_DIR/\/}/tools/sqlite3
+ ${ANDROID_SDK_DIR/\/}/tools/hprof-conv
+ ${ANDROID_SDK_DIR/\/}/tools/zipalign
+ ${ANDROID_SDK_DIR/\/}/tools/dmtracedump
+"
+QA_FLAGS_IGNORED_amd64="${QA_FLAGS_IGNORED_x86}"
+
+QA_PREBUILT="${ANDROID_SDK_DIR/\/}/tools/*"
+
+S="${WORKDIR}/android-sdk-linux"
+
+pkg_setup() {
+ enewgroup android
+}
+
+src_prepare(){
+ rm -rf tools/lib/x86*
+}
+
+src_install(){
+ dodoc tools/NOTICE.txt "SDK Readme.txt"
+ rm -f tools/NOTICE.txt "SDK Readme.txt"
+
+ dodir "${ANDROID_SDK_DIR}/tools"
+ cp -pPR tools/* "${ED}${ANDROID_SDK_DIR}/tools" || die "failed to install tools"
+
+ # Maybe this is needed for the tools directory too.
+ dodir "${ANDROID_SDK_DIR}"/{add-ons,build-tools,docs,extras,platforms,platform-tools,samples,sources,system-images,temp}
+
+ fowners root:android "${ANDROID_SDK_DIR}"/{.,add-ons,build-tools,docs,extras,platforms,platform-tools,samples,sources,system-images,temp,tools}
+ fperms 0775 "${ANDROID_SDK_DIR}"/{.,add-ons,build-tools,docs,extras,platforms,platform-tools,samples,sources,system-images,temp,tools}
+
+ echo "PATH=\"${EPREFIX}${ANDROID_SDK_DIR}/tools:${EPREFIX}${ANDROID_SDK_DIR}/platform-tools\"" > "${T}/80${PN}" || die
+
+ SWT_PATH=
+ SWT_VERSIONS="3.7 3.6"
+ for version in $SWT_VERSIONS; do
+ # redirecting stderr to /dev/null
+ # not sure if this is best, but avoids misleading error messages
+ SWT_PATH="`dirname \`java-config -p swt-\$version 2>/dev/null\` 2>/dev/null`"
+ if [ $SWT_PATH ]; then
+ einfo "SWT_PATH=$SWT_PATH selecting version $version of SWT."
+ break
+ fi
+ done
+
+ echo "ANDROID_SWT=\"${SWT_PATH}\"" >> "${T}/80${PN}" || die
+ echo "ANDROID_HOME=\"${EPREFIX}${ANDROID_SDK_DIR}\"" >> "${T}/80${PN}" || die
+
+ doenvd "${T}/80${PN}"
+
+ echo "SEARCH_DIRS_MASK=\"${EPREFIX}${ANDROID_SDK_DIR}\"" > "${T}/80${PN}" || die
+
+ insinto "/etc/revdep-rebuild" && doins "${T}/80${PN}"
+
+ udev_dorules "${FILESDIR}"/80-android.rules || die
+ domenu "${FILESDIR}"/android-sdk-update-manager.desktop
+}
+
+pkg_postinst() {
+ elog "The Android SDK now uses its own manager for the development environment."
+ elog "Run 'android' to download the full SDK, including some of the platform tools."
+ elog "You must be in the android group to manage the development environment."
+ elog "Just run 'gpasswd -a <USER> android', then have <USER> re-login."
+ elog "See http://developer.android.com/sdk/adding-components.html for more"
+ elog "information."
+ elog "If you have problems downloading the SDK, see https://code.google.com/p/android/issues/detail?id=4406"
+ elog "You need to run env-update and source /etc/profile in any open shells"
+ elog "if you get an SWT error."
+}
diff --git a/dev-util/android-sdk-update-manager/android-sdk-update-manager-24.4.1.ebuild b/dev-util/android-sdk-update-manager/android-sdk-update-manager-24.4.1.ebuild
new file mode 100644
index 000000000000..d68d94698d08
--- /dev/null
+++ b/dev-util/android-sdk-update-manager/android-sdk-update-manager-24.4.1.ebuild
@@ -0,0 +1,102 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit eutils user udev
+
+MY_P="android-sdk_r${PV}-linux"
+
+DESCRIPTION="Open Handset Alliance's Android SDK"
+HOMEPAGE="http://developer.android.com"
+SRC_URI="https://dl.google.com/android/${MY_P}.tgz"
+IUSE=""
+RESTRICT="mirror"
+
+LICENSE="android"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="app-arch/tar
+ app-arch/gzip"
+RDEPEND=">=virtual/jdk-1.5
+ >=dev-java/ant-core-1.6.5
+ || ( dev-java/swt:3.7[cairo] dev-java/swt:3.6[cairo] )
+ sys-libs/zlib[abi_x86_32(-)]
+"
+
+ANDROID_SDK_DIR="/opt/${PN}"
+QA_FLAGS_IGNORED_x86="
+ ${ANDROID_SDK_DIR/\/}/tools/emulator
+ ${ANDROID_SDK_DIR/\/}/tools/adb
+ ${ANDROID_SDK_DIR/\/}/tools/mksdcard
+ ${ANDROID_SDK_DIR/\/}/tools/sqlite3
+ ${ANDROID_SDK_DIR/\/}/tools/hprof-conv
+ ${ANDROID_SDK_DIR/\/}/tools/zipalign
+ ${ANDROID_SDK_DIR/\/}/tools/dmtracedump
+"
+QA_FLAGS_IGNORED_amd64="${QA_FLAGS_IGNORED_x86}"
+
+QA_PREBUILT="${ANDROID_SDK_DIR/\/}/tools/*"
+
+S="${WORKDIR}/android-sdk-linux"
+
+pkg_setup() {
+ enewgroup android
+}
+
+src_prepare(){
+ rm -rf tools/lib/x86*
+}
+
+src_install(){
+ dodoc tools/NOTICE.txt "SDK Readme.txt"
+ rm -f tools/NOTICE.txt "SDK Readme.txt"
+
+ dodir "${ANDROID_SDK_DIR}/tools"
+ cp -pPR tools/* "${ED}${ANDROID_SDK_DIR}/tools" || die "failed to install tools"
+
+ # Maybe this is needed for the tools directory too.
+ dodir "${ANDROID_SDK_DIR}"/{add-ons,build-tools,docs,extras,platforms,platform-tools,samples,sources,system-images,temp}
+
+ fowners -R root:android "${ANDROID_SDK_DIR}"/{.,add-ons,build-tools,docs,extras,platforms,platform-tools,samples,sources,system-images,temp,tools}
+ fperms -R 0775 "${ANDROID_SDK_DIR}"/{.,add-ons,build-tools,docs,extras,platforms,platform-tools,samples,sources,system-images,temp,tools}
+
+ echo "PATH=\"${EPREFIX}${ANDROID_SDK_DIR}/tools:${EPREFIX}${ANDROID_SDK_DIR}/platform-tools\"" > "${T}/80${PN}" || die
+
+ SWT_PATH=
+ SWT_VERSIONS="3.7 3.6"
+ for version in $SWT_VERSIONS; do
+ # redirecting stderr to /dev/null
+ # not sure if this is best, but avoids misleading error messages
+ SWT_PATH="`dirname \`java-config -p swt-\$version 2>/dev/null\` 2>/dev/null`"
+ if [ $SWT_PATH ]; then
+ einfo "SWT_PATH=$SWT_PATH selecting version $version of SWT."
+ break
+ fi
+ done
+
+ echo "ANDROID_SWT=\"${SWT_PATH}\"" >> "${T}/80${PN}" || die
+ echo "ANDROID_HOME=\"${EPREFIX}${ANDROID_SDK_DIR}\"" >> "${T}/80${PN}" || die
+
+ doenvd "${T}/80${PN}"
+
+ echo "SEARCH_DIRS_MASK=\"${EPREFIX}${ANDROID_SDK_DIR}\"" > "${T}/80${PN}" || die
+
+ insinto "/etc/revdep-rebuild" && doins "${T}/80${PN}"
+
+ udev_dorules "${FILESDIR}"/80-android.rules || die
+ domenu "${FILESDIR}"/android-sdk-update-manager.desktop
+}
+
+pkg_postinst() {
+ elog "The Android SDK now uses its own manager for the development environment."
+ elog "Run 'android' to download the full SDK, including some of the platform tools."
+ elog "You must be in the android group to manage the development environment."
+ elog "Just run 'gpasswd -a <USER> android', then have <USER> re-login."
+ elog "See http://developer.android.com/sdk/adding-components.html for more"
+ elog "information."
+ elog "If you have problems downloading the SDK, see https://code.google.com/p/android/issues/detail?id=4406"
+ elog "You need to run env-update and source /etc/profile in any open shells"
+ elog "if you get an SWT error."
+}
diff --git a/dev-util/android-sdk-update-manager/files/80-android.rules b/dev-util/android-sdk-update-manager/files/80-android.rules
new file mode 100644
index 000000000000..e6eda7c938a0
--- /dev/null
+++ b/dev-util/android-sdk-update-manager/files/80-android.rules
@@ -0,0 +1,4 @@
+SUBSYSTEM=="usb", ATTR{idVendor}=="22b8", MODE="0664", GROUP="android"
+SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", MODE="0664", GROUP="android"
+SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", MODE="0664", GROUP="android"
+SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0664", GROUP="android"
diff --git a/dev-util/android-sdk-update-manager/files/android-sdk-update-manager.desktop b/dev-util/android-sdk-update-manager/files/android-sdk-update-manager.desktop
new file mode 100644
index 000000000000..83f1d25990ca
--- /dev/null
+++ b/dev-util/android-sdk-update-manager/files/android-sdk-update-manager.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Version=1.0
+Name=Android SDK update-manager
+Type=Application
+Comment=Manage/update Android SDK (tools).
+Terminal=false
+Exec=/opt/android-sdk-update-manager/tools/android
+Icon=/opt/android-sdk-update-manager/tools/apps/SdkController/res/drawable-xhdpi/ic_launcher.png
+Categories=Development;
+GenericName=Android SDK update-manager
diff --git a/dev-util/android-sdk-update-manager/metadata.xml b/dev-util/android-sdk-update-manager/metadata.xml
new file mode 100644
index 000000000000..e97c89c421c2
--- /dev/null
+++ b/dev-util/android-sdk-update-manager/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+ <email>rich0@gentoo.org</email>
+</maintainer>
+</pkgmetadata>
diff --git a/dev-util/android-studio/Manifest b/dev-util/android-studio/Manifest
new file mode 100644
index 000000000000..069cf8879958
--- /dev/null
+++ b/dev-util/android-studio/Manifest
@@ -0,0 +1,7 @@
+DIST android-studio-ide-162.3934792-linux.zip 459976690 SHA256 6e33a232466820a15c884af9faefab772b8267ede056aaedb63f291ceb5e95a7 SHA512 ff563d4c1adca5ae153bf23cde39cda4b462097706e92eb09e9850b07902388cdc569e479d7c8be7d27dca24f897797810534e54a113d043436c312637d62184 WHIRLPOOL 3d44bf16988c280d5ee6df1ee9a7c664a46a58107a73d001d493580f6ca365428a164a5ab9a6fb48fce730c0a19bc3b82a0f891c23131755c659842fe506aa3d
+DIST android-studio-ide-162.4069837-linux.zip 490782431 SHA256 1383cfd47441e5f820b6257a1bdd683e0e980bc76c7f2027ef84dc2e6ad2f17f SHA512 44f093ce4c97211913bb979fb28d5fe43163462ce6153c31c03576d872e11cbc11651f10397e14247ca41ea269a3cb0998e9e7d37fc63ac6782cc653037d925c WHIRLPOOL ed833816f48abba51d8142fda91175c07f019f40a3ed21ea026367870723016c17262c0eccb71d3d85a5f963ca0a84b0ee2111ae15f95ad92ac565f225d6c10a
+EBUILD android-studio-2.3.2.0.162.3934792.ebuild 2717 SHA256 beec4c0b98acc040034fe7ee92f38c364103b3c1b3d17579b766c2b2e98253ad SHA512 2c6760fc2ed8879e65bf3ec17a5b7ca77e7f81850d2ec3a2fb9a7c97771361ccf401c58a30d9b0b686295e58eaa9d03573128ad709d7df97d2240da4efd1d3a5 WHIRLPOOL 03b228b4cddd2b30cd22c73d4f9019d09829623c1777537bec18ccc7c9717141147aa50dd9a0ac0e66fc884766424f29bec10cf5971ba69907feea5f4573635e
+EBUILD android-studio-2.3.3.0.162.4069837.ebuild 2719 SHA256 4940f80141f8249a2183ae8141db9015aaa306e9183a0fd758f7bc13b355d4eb SHA512 d5891640cf450bba0c651f5a10df6354b35d42a2d77ea8b258555890c5f389e8cb9209e65e2410e0f9f6570fdc4452c72675473b1edf70edaea09be9c30a4a2a WHIRLPOOL 9b8b78f1b724acbce27b4c62a950c0b53368ea43b1bb3eda3b7700594aa5532bfde210cb967a798bd17fe44d664a051664c3ab2e38be9a43fe57318c39e2f245
+MISC ChangeLog 10211 SHA256 a8e1d7adff2dec32f7dba160601e9a7c9d492e771c7816f0e8cacefb62e0406d SHA512 58a5ccdcb5f8e3de65f01e33c5f316be59f2f2199fdf9683490c94c42005247e961603e4d23c91b948a552c899b268ea4932551a59dafd0325f090fe43a54f74 WHIRLPOOL c609dc7a79b943ee4ea393adb2a11e91f2adba23cb203fd6341a530af1a7d860f79c6444128fa85f1d65e5c084bc0306fb5396af849a77039035cf473f77ea99
+MISC ChangeLog-2015 4579 SHA256 fcda269857b7243a4d6517b614aefc6de1847194d725c66bc9b5a7383f48f7f1 SHA512 2033de5e742271778dd540d7af3f1362eb46bfd413b26490781b892d08462ebe5221ae2d4439c7f5b1943767307d9973d3a6169a78425b78fbec730cb9c5457a WHIRLPOOL 82f4ed6caf282f8b2aa1caa51ad35647690dda7a9973948ec1a5ca87a94ba20f2518c8472710fe260f8ebb7402243389bfd54621e6bbd9a7182afeedc578421c
+MISC metadata.xml 220 SHA256 0f9b760bdf307e4eb7e930032df80e31c7dd8681f3f14fe37be63585790b2767 SHA512 9316c4d43c1ca819f3d2111553313246af1166f9fb95a666797ff28ca6b0410e92fbe4f94cf70a046e8086d824b47bed8b3c0d1ec1498a3be779cf9a828e9868 WHIRLPOOL 5575d4398d983a8d060a8f759845b19c471606c6af96c43f786c906db4fb9de337e6a2c4d168e9792c71caa6970eb1e5ce0b6480675289853468777cd49d8ccc
diff --git a/dev-util/android-studio/android-studio-2.3.2.0.162.3934792.ebuild b/dev-util/android-studio/android-studio-2.3.2.0.162.3934792.ebuild
new file mode 100644
index 000000000000..9edcf94e78b4
--- /dev/null
+++ b/dev-util/android-studio/android-studio-2.3.2.0.162.3934792.ebuild
@@ -0,0 +1,99 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils java-pkg-2 versionator
+
+RESTRICT="strip"
+QA_PREBUILT="opt/${PN}/bin/libbreakgen*.so
+ opt/${PN}/bin/fsnotifier*
+ opt/${PN}/lib/libpty/linux/x86*/libpty.so
+ opt/${PN}/plugins/android/lib/libwebp_jni*.so"
+
+if [[ $(get_version_component_count) -eq 6 ]]; then
+ STUDIO_V=$(get_version_component_range 1-4)
+ BUILD_V=$(get_version_component_range 5-6)
+else
+ STUDIO_V=$(get_version_component_range 1-3)
+ BUILD_V=$(get_version_component_range 4-5)
+fi
+
+DESCRIPTION="A new Android development environment based on IntelliJ IDEA"
+HOMEPAGE="http://developer.android.com/sdk/installing/studio.html"
+SRC_URI="https://dl.google.com/dl/android/studio/ide-zips/${STUDIO_V}/${PN}-ide-${BUILD_V}-linux.zip"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+IUSE="selinux"
+KEYWORDS="amd64 x86"
+
+DEPEND="app-arch/zip
+ dev-java/commons-logging:0
+ dev-java/log4j:0"
+
+# dev-java/guava:18
+RDEPEND=">=virtual/jdk-1.7
+ selinux? ( sec-policy/selinux-android )
+ >=app-arch/bzip2-1.0.6-r4
+ dev-java/commons-logging:0
+ dev-java/log4j:0
+ >=dev-libs/expat-2.1.0-r3
+ >=dev-libs/libffi-3.0.13-r1
+ >=media-libs/fontconfig-2.10.92
+ >=media-libs/freetype-2.5.5
+ >=media-libs/libpng-1.2.51
+ >=media-libs/mesa-10.2.8
+ || ( gnome-extra/zenity kde-apps/kdialog x11-apps/xmessage x11-libs/libnotify )
+ || ( >=sys-libs/ncurses-5.9-r3:5/5[tinfo] >=sys-libs/ncurses-5.9-r3:0/5[tinfo] )
+ >=sys-libs/zlib-1.2.8-r1
+ >=x11-libs/libX11-1.6.2
+ >=x11-libs/libXau-1.0.7-r1
+ >=x11-libs/libXdamage-1.1.4-r1
+ >=x11-libs/libXdmcp-1.1.1-r1
+ >=x11-libs/libXext-1.3.2
+ >=x11-libs/libXfixes-5.0.1
+ >=x11-libs/libXrender-0.9.8
+ >=x11-libs/libXxf86vm-1.1.3
+ >=x11-libs/libdrm-2.4.46
+ >=x11-libs/libxcb-1.9.1
+ >=x11-libs/libxshmfence-1.1"
+S=${WORKDIR}/${PN}
+
+src_prepare() {
+ eapply_user
+ # This is really a bundled jdk not a jre
+ rm -R "${S}/jre" || die "Could not remove bundled jdk"
+
+ # Replace bundled jars with system
+ # has problems with newer jdom:0 not updated to jdom:2
+ cd "${S}/lib" || die
+ local JARS="commons-logging log4j"
+ local j
+ for j in ${JARS}; do
+ rm -v ${j/:*/}*.jar || die
+ java-pkg_jar-from ${j}
+ done
+}
+
+src_compile() {
+ :
+}
+
+src_install() {
+ local dir="/opt/${PN}"
+
+ insinto "${dir}"
+ # Replaced bundled jre with system vm/jdk
+ # This is really a bundled jdk not a jre
+ doins -r *
+
+ rm -rf "${D}${dir}/jre" || die
+ dosym "/etc/java-config-2/current-system-vm" "${dir}/jre"
+
+ fperms 755 "${dir}/bin/studio.sh" "${dir}"/bin/fsnotifier{,64}
+ chmod 755 "${D}${dir}"/gradle/gradle-*/bin/gradle || die
+
+ newicon "bin/studio.png" "${PN}.png"
+ make_wrapper ${PN} ${dir}/bin/studio.sh
+ make_desktop_entry ${PN} "Android Studio" ${PN} "Development;IDE"
+}
diff --git a/dev-util/android-studio/android-studio-2.3.3.0.162.4069837.ebuild b/dev-util/android-studio/android-studio-2.3.3.0.162.4069837.ebuild
new file mode 100644
index 000000000000..40da7d6a297d
--- /dev/null
+++ b/dev-util/android-studio/android-studio-2.3.3.0.162.4069837.ebuild
@@ -0,0 +1,99 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils java-pkg-2 versionator
+
+RESTRICT="strip"
+QA_PREBUILT="opt/${PN}/bin/libbreakgen*.so
+ opt/${PN}/bin/fsnotifier*
+ opt/${PN}/lib/libpty/linux/x86*/libpty.so
+ opt/${PN}/plugins/android/lib/libwebp_jni*.so"
+
+if [[ $(get_version_component_count) -eq 6 ]]; then
+ STUDIO_V=$(get_version_component_range 1-4)
+ BUILD_V=$(get_version_component_range 5-6)
+else
+ STUDIO_V=$(get_version_component_range 1-3)
+ BUILD_V=$(get_version_component_range 4-5)
+fi
+
+DESCRIPTION="A new Android development environment based on IntelliJ IDEA"
+HOMEPAGE="http://developer.android.com/sdk/installing/studio.html"
+SRC_URI="https://dl.google.com/dl/android/studio/ide-zips/${STUDIO_V}/${PN}-ide-${BUILD_V}-linux.zip"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+IUSE="selinux"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="app-arch/zip
+ dev-java/commons-logging:0
+ dev-java/log4j:0"
+
+# dev-java/guava:18
+RDEPEND=">=virtual/jdk-1.7
+ selinux? ( sec-policy/selinux-android )
+ >=app-arch/bzip2-1.0.6-r4
+ dev-java/commons-logging:0
+ dev-java/log4j:0
+ >=dev-libs/expat-2.1.0-r3
+ >=dev-libs/libffi-3.0.13-r1
+ >=media-libs/fontconfig-2.10.92
+ >=media-libs/freetype-2.5.5
+ >=media-libs/libpng-1.2.51
+ >=media-libs/mesa-10.2.8
+ || ( gnome-extra/zenity kde-apps/kdialog x11-apps/xmessage x11-libs/libnotify )
+ || ( >=sys-libs/ncurses-5.9-r3:5/5[tinfo] >=sys-libs/ncurses-5.9-r3:0/5[tinfo] )
+ >=sys-libs/zlib-1.2.8-r1
+ >=x11-libs/libX11-1.6.2
+ >=x11-libs/libXau-1.0.7-r1
+ >=x11-libs/libXdamage-1.1.4-r1
+ >=x11-libs/libXdmcp-1.1.1-r1
+ >=x11-libs/libXext-1.3.2
+ >=x11-libs/libXfixes-5.0.1
+ >=x11-libs/libXrender-0.9.8
+ >=x11-libs/libXxf86vm-1.1.3
+ >=x11-libs/libdrm-2.4.46
+ >=x11-libs/libxcb-1.9.1
+ >=x11-libs/libxshmfence-1.1"
+S=${WORKDIR}/${PN}
+
+src_prepare() {
+ eapply_user
+ # This is really a bundled jdk not a jre
+ rm -R "${S}/jre" || die "Could not remove bundled jdk"
+
+ # Replace bundled jars with system
+ # has problems with newer jdom:0 not updated to jdom:2
+ cd "${S}/lib" || die
+ local JARS="commons-logging log4j"
+ local j
+ for j in ${JARS}; do
+ rm -v ${j/:*/}*.jar || die
+ java-pkg_jar-from ${j}
+ done
+}
+
+src_compile() {
+ :
+}
+
+src_install() {
+ local dir="/opt/${PN}"
+
+ insinto "${dir}"
+ # Replaced bundled jre with system vm/jdk
+ # This is really a bundled jdk not a jre
+ doins -r *
+
+ rm -rf "${D}${dir}/jre" || die
+ dosym "/etc/java-config-2/current-system-vm" "${dir}/jre"
+
+ fperms 755 "${dir}/bin/studio.sh" "${dir}"/bin/fsnotifier{,64}
+ chmod 755 "${D}${dir}"/gradle/gradle-*/bin/gradle || die
+
+ newicon "bin/studio.png" "${PN}.png"
+ make_wrapper ${PN} ${dir}/bin/studio.sh
+ make_desktop_entry ${PN} "Android Studio" ${PN} "Development;IDE"
+}
diff --git a/dev-util/android-studio/metadata.xml b/dev-util/android-studio/metadata.xml
new file mode 100644
index 000000000000..35dce41ecd40
--- /dev/null
+++ b/dev-util/android-studio/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>perfinion@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-util/android-tools/Manifest b/dev-util/android-tools/Manifest
new file mode 100644
index 000000000000..8961dbc46af4
--- /dev/null
+++ b/dev-util/android-tools/Manifest
@@ -0,0 +1,15 @@
+DIST android-tools-5.1.1_r13-arch.tar.gz 4078 SHA256 3d341733bf2de1d7f0127e59b1578514b7874924ae6c2e3afbaab42c21137d4e SHA512 e38e0d1c966b569defc6df185c0e2b35b3766a7f89bcc3f60cea9b536f37b5b6b76f40457735b509d806c4c5b24f6b3805b51b85ffeb4d04fc14a731f81414c3 WHIRLPOOL 82c62b2567e0d26a686329d0c654b1d3a074f9cb1f73c4b3c0d2d99fbcc4a7b3c1cf158a23b3b8f46d8332dc90fa1990094511c466a457b4ee1ae582ec063f14
+DIST android-tools-5.1.1_r13-core.tar.gz 1210720 SHA256 f62ad7eb61650bc69cafd0810194732a3ba5f42c7443c2dd6f45ae285a3668dd SHA512 2ce2f03193840bd894cb4638bd23a321e53c6185e9816729193714b9e2d068f5ca4ebcee4edc7febaa4ea1ee3621aa6977217a5a84d2f116f35b000969a4af15 WHIRLPOOL 61a5c3c50aa0821fd3dcb8848209a1049e6956196e697e41fb2da80ca2ba7e91bdbc1ad6cac15ec072c006661755412f058cde6f36782a58de1a6e3c50812870
+DIST android-tools-5.1.1_r13-extras.tar.gz 282690 SHA256 35440226e2dd41e91b96f4791fd389d38e98aedd596c09bdb80b9d27bb8fdf82 SHA512 322d45be02d3d5a5bf677e3a38a44085258ee7b9a8c0a7bc08ddb4104168170d5969699ee54e19009a2bd0d7e0ac6ad7971ccc67e2a0311c6f1ba7fb76cfce83 WHIRLPOOL 3b8e0cc2d00a88f9e00a6de8a88fbe6c5374e82929859045602fbd96d5f4cf5e06f257b27b0a8ba1aebde981c6d4fe090c1a75fe737ca514d93f78cb51964752
+DIST android-tools-5.1.1_r13-f2fs-tools.tar.gz 65931 SHA256 46aed56344b6661e1e638994ce57a7010c391356396b28cb207fc77f082c60cd SHA512 66f4be04164df8bb5138105db4e9d5b79c09cd8c28a0d30a6d1e6dead77961614172c96fa680953bf445b934f14b4dbbc21ce89a909d9f278f2eca1ca2e1e656 WHIRLPOOL 5aa59b453c6fa31bb76a5568553ab25376d72a35cb96b97a1e7d956b2901f8467f4c7d56b73046c559fc3714e73acace31649f0929899f4e043ccb998de12fdc
+DIST android-tools-5.1.1_r13-libselinux.tar.gz 49085 SHA256 0950aaa63e22c3d4399142f9795adaee9c0a866b7f037f6b7306642d46327bc2 SHA512 b1a8960b98206118a07f11e7e67429c0d4b8f89c4f65919bcd02a6ba1c7f30e5b73a9431ce8d10fc6ffa6e487b79061b84a969490bf22a49188dc5cd9dd46a2f WHIRLPOOL da4d532bf033aa8bd1f423b596b95e6768b963d65c6fb23f856a07c636882b9584354fd147b04f1393219cc2a45281e440ed6a4f8f5472bd5a39119f81ce9209
+DIST android-tools-6.0.1_r79-arch.tar.gz 13466 SHA256 8e20e1c28f80e6d52070883e35cd333d3bb1dbd2f18ab2625bf64f74829b4f34 SHA512 90b8638d247897da33f6e861492c58df0e9877738650083c3307bd787d234d728e6c9097ac1401c254eb3daf4c6b18da4ee84dd16749acf6359fcb42781862fc WHIRLPOOL ce0ade8bf372bc01c20357f2bb7dfa1bebc4b7a3d08c9987a786b2d1563d12be47c51c8ca286c065165d3b66a03db3324fc8b7f11f58b2d7a76e92ed2ad2178b
+DIST android-tools-6.0.1_r79-core.tar.gz 1186562 SHA256 2de9f6327c2b00d6b1eca7f97ceccc5b4f3302bb8c2abcc0d51e855e5e6dd3af SHA512 a48f8c562305cbc951e008979920d9efe02e232c41997423457ff1e2f115e526b295c260a501d4050ce280ca7155793b95f7a60bad5cbc165ba80d6a225152f0 WHIRLPOOL 636921ad316590109a1fe8d97b4da257c7d14ac0379591341828c10de8934786fb1bb355f6aa6dc99d6cae2878bda5d3947cb978ea80ca99a74d02ba4db2f048
+DIST android-tools-6.0.1_r79-extras.tar.gz 648657 SHA256 4c39fca97a419ec2b3c1edc6c558cac2777b64213df4a24fe281a343632d4a75 SHA512 e10694737c518f591eff4e808bb826c83bf45dc44c5c1ee8a4082a6e0653350ffe2986e299348cb4a1219203192d01546a05e9354ce05e29897f856c147de8c3 WHIRLPOOL 212cd122f87bcaf7a3b9cf550653faa4eccd869113dfb2e11a38bc396fb748c339c717b2ac2075979a8bc69baceb0272e44e610ee96490e37004baf7b141b6e5
+DIST android-tools-6.0.1_r79-f2fs-tools.tar.gz 70255 SHA256 a69b7653b1886d58fb8e7104437b3751c440e9367051d8ec1b859db2202555ae SHA512 0871f99f78006028889b42668ec627b6515bb812ad3ec4a489f62187a79f64d2a74f66556698a5f05fc99932f75fefd8810dedceeab744b212beb764e97b82c8 WHIRLPOOL 23c2f6d95a92bb97290690534082810ff50817640e19e9567056194e4a01d28516433396bc0aa42c545b47738e739d21823007ffaa171e972789b7cb1c71be94
+DIST android-tools-6.0.1_r79-libselinux.tar.gz 50814 SHA256 f93426fa21aa4d57f95ed832d61edce3363b3c0e80c666b6fc98367fbc95003e SHA512 686557271271c4d59fb968c5aa76b433955009733f3151c4c86faa996ce846088d6632b0969b23699822b7a6f09eae60abedba6abb0edc9d444159bbdb5c6f91 WHIRLPOOL d82d53133a54044e92db534b3c546b92ba77759999cc2890b202673d68120a42d8cda169d1298a5bb36e466e65c9c5191d01bc29fdf53d8e621b30a2ccafcd75
+EBUILD android-tools-5.1.1_p13.ebuild 2088 SHA256 91217324d39bd292ada4b92bb116ec6b078b362bfcfa9abe0d23f83348d4b92b SHA512 a557d31b6488a3a96164339f9e2508cfd71c6f749e5b3f7829b79bcba85ef75985e1865a9ce528556ef0976ebc1e2f52ae8c1368bc6f75bf78c7e70649327dcc WHIRLPOOL f68e0773fd2af6f453c3099a7f95902bfe61e364354aed51b77690faf08f6cb313ee8ebc437da82f28e0e24942dd7477f386c26786dcaeb8ba40e999e04923fa
+EBUILD android-tools-6.0.1_p79.ebuild 2833 SHA256 bf81ab1637df80d2261021e8377a7d684dd5c13de6e58cdece94d0d330b46bf3 SHA512 27bd9159d3c761e7e984b466a47f239d4695189fe524c0453ba8d76a175eeb67803d1809e8032eba5203dad7acc19b5e23450f910c0d4ca08fa9e5103dfe0d6b WHIRLPOOL 2dadc38e29936df29fdf9504fcb859748fbc0e25af224424c98dd8a837feb66cd22d2212ba91e535a653fc70426637a09382299e24d20d8e045cdc92bce9be9e
+MISC ChangeLog 3989 SHA256 a4478e84bf33b3115158155c63654518f3fdfc5f6b963d0f5a320e274fb11d73 SHA512 8ec298a9124614f43399026be28a025e910c8b82f9fe711b4b3f191f748e712f4a6a760d78c754c36a5a226327d6d4721c06104be39d5cf18be6f8bae9ac5d60 WHIRLPOOL 498d5c32f6f12b3d15b4307897eea6bc3579be057e177512fe813b4896efcc3bc52fc2a40e450c09c151ff7580f1669088b41e7a91ebdd4ae2eb28c8ab41b1f6
+MISC ChangeLog-2015 1183 SHA256 95a4c5467f26e575a7a64d5c244686fd57d31790a7490cae59b59351e65333e3 SHA512 70e9fe893b224139bf450876319d8ddea3c7aeb5f194fcc3a06528bb15c4879d409a129643071a091cb690957a828b50521923c833e21979790102c41e9b1335 WHIRLPOOL 4f4bf02023402be60c6384f1c22bb2ac62d97c7e680047d3ec7138afa9c12495363cdf174ba1eb96b2a6aeb46a36d41a319eb4f2eab12c18e27b7de6912c2033
+MISC metadata.xml 643 SHA256 0f10169f0f70025ecabdc95c1cd83ebb7db16be7df670678fbf131c8b66f5882 SHA512 51ee41cf77548eb1ce543b2c1f5f37e9634250c2fa42b36a8128b4a80a73a270b90b9e9e1c2c58d7aeb6dee85238ec73345f1a3a4ac398a4f7b2cd8e8c6e84ee WHIRLPOOL ebb5e0bd8f8205f31350d501a98adf0147e57d7a695999c61eb8a2e3c8f0a58015ea2762ee2394df0b9059c8be862dd2073e539e632ce94507c837745dcb9ff7
diff --git a/dev-util/android-tools/android-tools-5.1.1_p13.ebuild b/dev-util/android-tools/android-tools-5.1.1_p13.ebuild
new file mode 100644
index 000000000000..7900622e6ed8
--- /dev/null
+++ b/dev-util/android-tools/android-tools-5.1.1_p13.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit bash-completion-r1 eutils toolchain-funcs
+
+MY_PV="${PV/_p/_r}"
+MY_P=${PN}-${MY_PV}
+
+DESCRIPTION="Android platform tools (adb, fastboot, and mkbootimg)"
+HOMEPAGE="https://android.googlesource.com/platform/system/core.git/"
+# For stable digests, git tarballs generated by android.googlesource.com
+# are fetched from mirror://gentoo/.
+SRC_URI="https://projects.archlinux.org/svntogit/community.git/snapshot/community-caa300cf262afcf5bdb4dcc923dee54e3715fd5c.tar.gz -> ${MY_P}-arch.tar.gz
+https://github.com/android/platform_system_core/archive/android-${MY_PV}.tar.gz -> ${MY_P}-core.tar.gz
+mirror://gentoo/${MY_P}-extras.tar.gz
+mirror://gentoo/${MY_P}-libselinux.tar.gz
+mirror://gentoo/${MY_P}-f2fs-tools.tar.gz"
+
+# The entire source code is Apache-2.0, except for fastboot which is BSD-2.
+LICENSE="Apache-2.0 BSD-2"
+SLOT="0"
+KEYWORDS="amd64 x86 ~arm-linux ~x86-linux"
+IUSE="libressl"
+
+RDEPEND="sys-libs/zlib:=
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ dev-libs/libpcre"
+DEPEND="${RDEPEND}"
+
+S=${WORKDIR}
+
+src_unpack() {
+ local dir filename
+ for filename in ${A}; do
+ if [[ ${filename} =~ ^${MY_P}-(.*)\.tar\.gz$ ]]; then
+ dir=${BASH_REMATCH[1]}
+ mkdir -p "${dir}" || die
+ pushd "${dir}" >/dev/null
+ unpack "${filename}"
+ popd > /dev/null
+ else
+ die "unrecognized file in \${A}: ${filename}"
+ fi
+ done
+}
+
+src_prepare() {
+ mv core/*/* core/ || die
+ sed -e 's|#include <dlfcn.h>|\0\n#include <stddef.h>\n#include <string.h>\n|' \
+ -i extras/f2fs_utils/f2fs_utils.c || die
+ mv arch/*/trunk/Makefile ./ || die
+ sed -i '1i#include <sys/sysmacros.h>' core/adb/usb_linux.c || die #580058
+ sed -e 's|^#include <sys/cdefs.h>$|/*\0*/|' \
+ -e 's|^__BEGIN_DECLS$|#ifdef __cplusplus\nextern "C" {\n#endif|' \
+ -e 's|^__END_DECLS$|#ifdef __cplusplus\n}\n#endif|' \
+ -i extras/ext4_utils/sha1.{c,h} || die #580686
+ tc-export CC
+}
+
+src_install() {
+ emake DESTDIR="${ED}" install
+ newbashcomp arch/*/trunk/bash_completion fastboot
+}
diff --git a/dev-util/android-tools/android-tools-6.0.1_p79.ebuild b/dev-util/android-tools/android-tools-6.0.1_p79.ebuild
new file mode 100644
index 000000000000..c08ea80eb0dd
--- /dev/null
+++ b/dev-util/android-tools/android-tools-6.0.1_p79.ebuild
@@ -0,0 +1,87 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit bash-completion-r1 eutils toolchain-funcs
+
+MY_PV="${PV/_p/_r}"
+MY_P=${PN}-${MY_PV}
+
+DESCRIPTION="Android platform tools (adb, fastboot, and mkbootimg)"
+HOMEPAGE="https://android.googlesource.com/platform/system/core.git/"
+# Downloading git tarballs generated by android.googlesource.com
+# Archlinux package contains patches and build script generation mechanism.
+SRC_URI="https://git.archlinux.org/svntogit/community.git/snapshot/community-6a03c4736c9734f5ac3d6b5b912605690a6eaa5f.tar.gz -> ${MY_P}-arch.tar.gz
+https://github.com/android/platform_system_core/archive/android-${MY_PV}.tar.gz -> ${MY_P}-core.tar.gz
+mirror://gentoo/${MY_P}-extras.tar.gz
+mirror://gentoo/${MY_P}-libselinux.tar.gz
+mirror://gentoo/${MY_P}-f2fs-tools.tar.gz"
+
+# The entire source code is Apache-2.0, except for fastboot which is BSD-2.
+LICENSE="Apache-2.0 BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~arm-linux ~x86-linux"
+IUSE="libressl"
+
+RDEPEND="sys-libs/zlib:=
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ dev-libs/libpcre"
+# dev-lang/ruby is necessary for build script generation.
+DEPEND="${RDEPEND}
+ virtual/rubygems"
+
+S=${WORKDIR}
+
+src_unpack() {
+ local dir filename
+ for filename in ${A}; do
+ if [[ ${filename} =~ ^${MY_P}-(.*)\.tar\.gz$ ]]; then
+ dir=${BASH_REMATCH[1]}
+ mkdir -p "${dir}" || die
+ pushd "${dir}" >/dev/null
+ unpack "${filename}"
+ popd > /dev/null
+ else
+ die "unrecognized file in \${A}: ${filename}"
+ fi
+ done
+}
+
+src_prepare() {
+ mv core/*/* core/ || die
+ epatch arch/*/trunk/fix_build.patch
+ cp arch/*/trunk/generate_build.rb ./ || die
+ sed -i '1i#include <sys/sysmacros.h>' core/adb/usb_linux.cpp || die #616508
+ sed -e 's|^#include <sys/cdefs.h>$|/*\0*/|' \
+ -e 's|^__BEGIN_DECLS$|#ifdef __cplusplus\nextern "C" {\n#endif|' \
+ -e 's|^__END_DECLS$|#ifdef __cplusplus\n}\n#endif|' \
+ -i extras/ext4_utils/sha1.{c,h} || die #580686
+ default
+}
+
+src_compile() {
+ # Dynamically detect rubygems interpreter (bug 631398).
+ local ruby_bin=$(type -P ruby) ruby_error_log=${T}/generate_build.rb.log success=
+ for ruby_bin in "${ruby_bin}" "${ruby_bin}"[[:digit:]][[:digit:]]; do
+ "${ruby_bin}" ./generate_build.rb 1> build.sh 2> "${ruby_error_log}" && \
+ { success=1; break; }
+ done
+ if [[ -z ${success} ]]; then
+ cat "${ruby_error_log}" >&2
+ die "${ruby_bin} ./generate_build.rb failed"
+ fi
+ sed -e 's:^gcc:${CC}:' -e 's:^g++:${CXX}:' -i build.sh || die
+ chmod +x build.sh || die
+ tc-export CC CXX
+ bash -e ./build.sh || die
+}
+
+src_install() {
+ dobin adb
+ dobin fastboot
+ dobin mkbootimg
+ # Omitting, app-shells/bash-completion contains completion for adb
+ #newbashcomp arch/*/trunk/bash_completion.adb adb
+ newbashcomp arch/*/trunk/bash_completion.fastboot fastboot
+}
diff --git a/dev-util/android-tools/metadata.xml b/dev-util/android-tools/metadata.xml
new file mode 100644
index 000000000000..27a6743c2701
--- /dev/null
+++ b/dev-util/android-tools/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <upstream>
+ <bugs-to>https://code.google.com/p/android/issues/list</bugs-to>
+ <changelog>https://android.googlesource.com/platform/system/core.git/+log/HEAD</changelog>
+ <doc>https://android.googlesource.com/platform/system/core.git/+/master/adb/OVERVIEW.TXT</doc>
+ <remote-id type="github">android/platform_system_core</remote-id>
+ <remote-id type="launchpad">ubuntu</remote-id>
+ </upstream>
+ <maintainer type="person">
+ <email>zmedico@gentoo.org</email>
+ <name>Zac Medico</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-util/anjuta/Manifest b/dev-util/anjuta/Manifest
new file mode 100644
index 000000000000..3dfb9871e558
--- /dev/null
+++ b/dev-util/anjuta/Manifest
@@ -0,0 +1,5 @@
+DIST anjuta-3.22.0.tar.xz 6363016 SHA256 4face1c063a5a6687a6cfc6f1f700ba15f13664633c05caa2fbf50317608dd03 SHA512 64689392bfe6102698ef8a1ce62aac37bffd793b917ef6ffc53cb5b8aa9eb5b8961a999c32db559e9e348bcf46a7ec0ca9448100910b52885ddff898a62f3295 WHIRLPOOL 354f680a0970e0eacf2cbc885e91a5f190f10162699f3ab144d144dee92e4c308653b1f75e388afa3f20434b422f3aa340bedabcbdc9ba1348a33426b3af5586
+EBUILD anjuta-3.22.0.ebuild 3520 SHA256 4254a548e34e748025c8daad5baf3733ad531577cb70f0010c0216d0d615cc11 SHA512 5e19000cbe233a2688ebc24afd74f761b6395576b5ed3bf83f3870cfa7a855d10650e447853250a93ee2c9c1b366291a1240998401b7c7f613ab5816befa7530 WHIRLPOOL 1cf0738ea14b86423b49df684d4515315c98232cfdfbd493286404bde56d56d14b21b98ba45f6059224f63bfb6aa45169d6806bfbb378e7dbf19cb15df28f773
+MISC ChangeLog 4825 SHA256 9702c6195495c8de131d25bb29dbb86754f21c3e754aa57ed457011d7b4a8e17 SHA512 68a022bca2ef0dc00e63a33e1eb0f86c32c325227d83d554e6a3eae73541d2a1f84d6df0d8eb30378484793c51c02d75e2bda60aafaf20b8f4cc75ffc59d130e WHIRLPOOL 642b292aa4a64f77356e7f26717b15761dcd9e8f52614935382505b6153ffc5ceb31fab0aba7cb5bb1e17faf2e65afaad4e28ca5313cd994d814c09778590dbf
+MISC ChangeLog-2015 27762 SHA256 628e1d7fb224ee20d8cbf7d12cf58b72243aea70081c01baafb6ab9e8edf5153 SHA512 87a63173062e9ca32f2beda7e6819ef69bdfdd22d2a078292f53e06ef26c5b5c7cf3cfb5926b760d2ee4c66c110cd07e51cd27cc27bab7c4b2d9fce2b5bc158c WHIRLPOOL e55afc80b1d9bec50069eafbae904d4cc819ebf85f040fabffa3cc4681594759537592040423b1e3d43e865532b4f8c27ac411255c9df905ad1d16fa04e88839
+MISC metadata.xml 562 SHA256 a36148f04fd54ca21383e821bc4f662f5fa90ac0e7ab5a84ca8cd21f856cc930 SHA512 c452f34b8489e3faeb8c272282233341e22c958f04d750d54e07c487895aab8b03f4df096e1f07fdb7686a0295c770cb1fcf38fdca01f71730e991148013d82f WHIRLPOOL e78b6f91e4c7942a23c94e93f0315d02f77df7b643750a3c038e9cb3844d8bac785c9059d351c445b142be4a45b79289022a1a9ffae920a47402026b26f9e29f
diff --git a/dev-util/anjuta/anjuta-3.22.0.ebuild b/dev-util/anjuta/anjuta-3.22.0.ebuild
new file mode 100644
index 000000000000..d68d2eee168f
--- /dev/null
+++ b/dev-util/anjuta/anjuta-3.22.0.ebuild
@@ -0,0 +1,135 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+GNOME2_LA_PUNT="yes"
+PYTHON_COMPAT=( python2_7 )
+# libanjuta-language-vala.so links to a specific slot of libvala; we want to
+# avoid automagic behavior.
+VALA_MIN_API_VERSION="0.32"
+VALA_MAX_API_VERSION="${VALA_MIN_API_VERSION}"
+
+inherit gnome2 flag-o-matic readme.gentoo-r1 python-single-r1 vala
+
+DESCRIPTION="A versatile IDE for GNOME"
+HOMEPAGE="https://wiki.gnome.org/Apps/Anjuta"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="amd64 ~ppc ~sparc x86 ~x86-fbsd"
+
+IUSE="debug devhelp glade +introspection packagekit subversion terminal test vala"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+# FIXME: make python dependency non-automagic
+COMMON_DEPEND="
+ >=dev-libs/glib-2.34:2[dbus]
+ x11-libs/gdk-pixbuf:2
+ >=x11-libs/gtk+-3.10:3
+ >=dev-libs/libxml2-2.4.23
+ >=dev-libs/gdl-3.5.5:3=
+ >=x11-libs/gtksourceview-3:3.0
+
+ sys-devel/autogen
+
+ >=gnome-extra/libgda-5:5=
+ dev-util/ctags
+
+ x11-libs/libXext
+ x11-libs/libXrender
+
+ ${PYTHON_DEPS}
+
+ devhelp? ( >=dev-util/devhelp-3.7.4:= )
+ glade? ( >=dev-util/glade-3.12:3.10= )
+ introspection? ( >=dev-libs/gobject-introspection-0.9.5:= )
+ subversion? (
+ >=dev-vcs/subversion-1.8:=
+ >=net-libs/serf-1.2:1=
+ >=dev-libs/apr-1:=
+ >=dev-libs/apr-util-1:= )
+ terminal? ( >=x11-libs/vte-0.27.6:2.91 )
+ vala? ( $(vala_depend) )
+"
+RDEPEND="${COMMON_DEPEND}
+ gnome-base/gsettings-desktop-schemas
+ packagekit? ( app-admin/packagekit-base )
+"
+DEPEND="${COMMON_DEPEND}
+ >=dev-lang/perl-5
+ >=dev-util/gtk-doc-am-1.4
+ >=dev-util/intltool-0.40.1
+ sys-devel/bison
+ sys-devel/flex
+ >=sys-devel/gettext-0.17
+ virtual/pkgconfig
+ !!dev-libs/gnome-build
+ test? (
+ app-text/docbook-xml-dtd:4.1.2
+ app-text/docbook-xml-dtd:4.5 )
+ app-text/yelp-tools
+ dev-libs/gobject-introspection-common
+ gnome-base/gnome-common
+"
+# yelp-tools, gi-common and gnome-common are required by eautoreconf
+
+pkg_setup() {
+ python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ if use vala; then
+ DISABLE_AUTOFORMATTING="yes"
+ DOC_CONTENTS="To create a generic vala project you will need to specify
+desired valac versioned binary to be used, to do that you
+will need to:
+1. Go to 'Build' -> 'Configure project'
+2. Add 'VALAC=/usr/bin/valac-X.XX' (respecting quotes) to
+'Configure options'."
+ fi
+
+ # COPYING is used in Anjuta's help/about entry
+ DOCS="AUTHORS ChangeLog COPYING FUTURE MAINTAINERS NEWS README ROADMAP THANKS TODO"
+
+ # Conflicts with -pg in a plugin, bug #266777
+ filter-flags -fomit-frame-pointer
+
+ # Do not build benchmarks, they are not installed and for dev purpose only
+ sed -e '/SUBDIRS =/ s/benchmark//' \
+ -i plugins/symbol-db/Makefile.{am,in} || die
+
+ use vala && vala_src_prepare
+ gnome2_src_prepare
+}
+
+src_configure() {
+ gnome2_src_configure \
+ --disable-neon \
+ --disable-static \
+ $(use_enable debug) \
+ $(use_enable devhelp plugin-devhelp) \
+ $(use_enable glade plugin-glade) \
+ $(use_enable glade glade-catalog) \
+ $(use_enable introspection) \
+ $(use_enable packagekit) \
+ $(use_enable subversion plugin-subversion) \
+ $(use_enable subversion serf) \
+ $(use_enable terminal plugin-terminal) \
+ $(use_enable vala)
+}
+
+src_install() {
+ # COPYING is used in Anjuta's help/about entry
+ docompress -x "/usr/share/doc/${PF}/COPYING"
+
+ # Anjuta uses a custom rule to install DOCS, get rid of it
+ gnome2_src_install
+ rm -rf "${ED}"/usr/share/doc/${PN} || die "rm failed"
+
+ use vala && readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+ gnome2_pkg_postinst
+ use vala && readme.gentoo_print_elog
+}
diff --git a/dev-util/anjuta/metadata.xml b/dev-util/anjuta/metadata.xml
new file mode 100644
index 000000000000..0073ebca1b62
--- /dev/null
+++ b/dev-util/anjuta/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="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+ </maintainer>
+ <use>
+ <flag name="devhelp">Enable devhelp integration</flag>
+ <flag name="glade">Build glade plugin for anjuta</flag>
+ <flag name="packagekit">Use packagekit to search for missing tools</flag>
+ <flag name="terminal">Enable terminal plugin based on <pkg>x11-libs/vte</pkg></flag>
+ </use>
+</pkgmetadata>
diff --git a/dev-util/antlrworks/Manifest b/dev-util/antlrworks/Manifest
new file mode 100644
index 000000000000..184b4b16a3ae
--- /dev/null
+++ b/dev-util/antlrworks/Manifest
@@ -0,0 +1,6 @@
+AUX antlr-3.1.3.patch 1585 SHA256 89479335f7fe0e7aa9db4ed8966f5ad01946c2400062a99973f3fcea971ed9ca SHA512 3224c968f87560f046dd34b063ce198795157a97a3070526a69c638ba0c3b215c1a6e9f5155e9ba8949a9e0c43410b09f394eca9c83e796031018dd654454970 WHIRLPOOL 648b2397631781927e3b72a438be1fe4445adc8f714f8d154d5bb16254137997082d1efe842da89eff551a7bd964e8fd03889f5b0a22f84b98b68ec3ed004785
+DIST antlrworks-1.2.3-src.zip 2993008 SHA256 97a51561ea0c48495d7b5a968284309c3b692c02c2d6cfe932fcd4c5fdadcc62 SHA512 7ec39d30b3f22fd8f07d031841e2a71729c8080a8976c6f23fb217881b625cca349d4fa5f69d799abe81fc9a88b2b10156b54a33496197bc301f28fb58005806 WHIRLPOOL 466fd3e267f32932fe1cd51ba8d8a631a7c6b24eef42d88c74941effbcba8929f80f1960c5360b155a63220c384482e338befcd411015a03b8422472806a9207
+EBUILD antlrworks-1.2.3.ebuild 1222 SHA256 11d6c18e5cdcd4bce7cf4a0254c8bb8c94a6bd776cf3e24b91f2446bc54e06e9 SHA512 fdfbe603178efae55a05444cdc78a0e5c5015e5e9c4ff52ee3642863c2885c77dc3e9291823af4a5bf7c07ada6db085e42a211d208abd708bfa4ffdfc865905b WHIRLPOOL c17cd836ec7914d7b31345c52a170bbbfbc2d1ed3a96f094191a90fcf29ce14221225f5216dda76c3cb0e68ff0bcc0fc0b3d72052339a3062b2fa4a5f1524c60
+MISC ChangeLog 2603 SHA256 f42fad70ff0d1feaa3a771a2d392fba6e3810f2817590e511b69a6a91290e848 SHA512 119e1773b3b04a126f6164769be026c42bfce0fef0879067817d55e649f28be557abaa58901ed3c37bd7934e90d16acc0971f8bfeb6dbb7d340ece1707bdc844 WHIRLPOOL 78c6bca41727a27401b93f2d3880aa3149a7ca24c552b2f4fe93d231e12bd9909dbe22faa493bd470927a19259b786cc59734c2c7825e036cd2892240e6cbfae
+MISC ChangeLog-2015 972 SHA256 551bea50b048cdf520693a0444a1e7ea91879546f0a24d9b5465fed91eb4a2ec SHA512 1b69fb63c132b503c9c938ff5cce32f29f948905ab8592dfae5b6f2f4672dba086490abaf2412403e8c2dac2976ec79ac55c0bb1af8ef49fc49f66f055eb01b9 WHIRLPOOL 8955ca3127aae6b3f92e071ae293bbfd9da5b64c6222589f7d9905c87574c0845cde7658beeabcc95c6404d46eaaed22e19f1eea9092fc5104a5d1559f276acc
+MISC metadata.xml 1095 SHA256 3678c18a9f2b46f77a2a29cd06c74424bcda7eb6aeef7fd700202f478f286425 SHA512 50b89e09c5ab4564c8356fb6d7a0a811ffcdd294fa23cd59e9ca1b124a4266bfc1725fed56cdaec5b3ee62e4b232ece52a1d90a9ce483ff274e5a81fe89cd186 WHIRLPOOL aaab88815ccc33484f2b9aa81489c1eb1458d6b7ffc197a8535aa75c39942d7eb2607ff13efbd472c7fee3c94a1868575556eeb3eb3c4839761e7de1c698727c
diff --git a/dev-util/antlrworks/antlrworks-1.2.3.ebuild b/dev-util/antlrworks/antlrworks-1.2.3.ebuild
new file mode 100644
index 000000000000..e14282c5f00c
--- /dev/null
+++ b/dev-util/antlrworks/antlrworks-1.2.3.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="2"
+
+inherit java-pkg-2
+
+DESCRIPTION="A novel grammar development environment for ANTLR v3 grammars"
+HOMEPAGE="http://www.antlr.org/works/index.html"
+SRC_URI="http://www.antlr.org/download/${P}-src.zip"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 ppc64 x86"
+
+IUSE=""
+
+COMMON_DEP="
+ dev-java/stringtemplate:0
+ dev-java/antlr:0
+ >=dev-java/antlr-3.1.3:3
+ dev-java/jgoodies-forms:0
+"
+
+RDEPEND=">=virtual/jre-1.5
+ ${COMMON_DEP}"
+DEPEND=">=virtual/jdk-1.5
+ app-arch/unzip
+ ${COMMON_DEP}"
+
+S="${WORKDIR}"
+
+java_prepare() {
+ epatch "${FILESDIR}/antlr-3.1.3.patch"
+ rm -vr src/aw/org/antlr/xjlib/appkit/app/MacOS/ || die
+ rm -v lib/*.jar || die
+ mkdir build
+}
+
+src_compile() {
+ find src/aw -name "*.java" > "${T}/source.list"
+ ejavac -d build -classpath \
+ $(java-pkg_getjars antlr,antlr-3,jgoodies-forms,stringtemplate) \
+ "@${T}/source.list"
+
+ local dest="${S}/${PN}.jar"
+
+ cd src/aw || die
+ jar cf "${dest}" $(find -type f -and -not -name "*.java" ) || die
+
+ cd "${S}/build" || die
+ jar uf "${dest}" org || die
+}
+
+src_install() {
+ java-pkg_dojar "${PN}.jar"
+ java-pkg_dolauncher ${PN} --main "org.antlr.works.IDE"
+}
diff --git a/dev-util/antlrworks/files/antlr-3.1.3.patch b/dev-util/antlrworks/files/antlr-3.1.3.patch
new file mode 100644
index 000000000000..3ab2d49c9f48
--- /dev/null
+++ b/dev-util/antlrworks/files/antlr-3.1.3.patch
@@ -0,0 +1,24 @@
+diff -ur work.old/src/aw/org/antlr/works/dialog/DialogAbout.java work/src/aw/org/antlr/works/dialog/DialogAbout.java
+--- work.old/src/aw/org/antlr/works/dialog/DialogAbout.java 2009-03-30 11:56:30.000000000 +0300
++++ work/src/aw/org/antlr/works/dialog/DialogAbout.java 2009-03-30 11:57:34.000000000 +0300
+@@ -65,7 +65,7 @@
+ if(IDE.isPlugin()) {
+ tableModel.addInfo("ANTLRWorks Plugin", IDE.getPluginVersionShort());
+ }
+- tableModel.addInfo("ANTLR", Tool.VERSION);
++ tableModel.addInfo("ANTLR", new Tool().VERSION);
+ tableModel.addInfo("StringTemplate", StringTemplate.VERSION);
+ tableModel.addInfo("Java", System.getProperty("java.version")+" ("+System.getProperty("java.vendor")+")");
+ tableModel.fireTableDataChanged();
+diff -ur work.old/src/aw/org/antlr/works/utils/HelpManager.java work/src/aw/org/antlr/works/utils/HelpManager.java
+--- work.old/src/aw/org/antlr/works/utils/HelpManager.java 2009-03-30 11:56:30.000000000 +0300
++++ work/src/aw/org/antlr/works/utils/HelpManager.java 2009-03-30 11:57:21.000000000 +0300
+@@ -60,7 +60,7 @@
+ public static void sendFeedback(Container parent) {
+ StringBuilder url = new StringBuilder(Localizable.getLocalizedString(Localizable.FEEDBACK_URL));
+ url.append("?ANTLRVersion=");
+- url.append(XJUtils.encodeToURL(Tool.VERSION));
++ url.append(XJUtils.encodeToURL(new Tool().VERSION));
+ url.append("&StringTemplateVersion=");
+ url.append(XJUtils.encodeToURL(StringTemplate.VERSION));
+ url.append("&ANTLRWorksVersion=");
diff --git a/dev-util/antlrworks/metadata.xml b/dev-util/antlrworks/metadata.xml
new file mode 100644
index 000000000000..00d9f93e90c7
--- /dev/null
+++ b/dev-util/antlrworks/metadata.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>java@gentoo.org</email>
+ <name>Java</name>
+ </maintainer>
+ <longdescription lang="en">
+ ANTLRWorks is a novel grammar development environment for ANTLR v3
+ grammars written by Jean Bovet (with suggested use cases from
+ Terence Parr). It combines an excellent grammar-aware editor with an
+ interpreter for rapid prototyping and a language-agnostic debugger
+ for isolating grammar errors. ANTLRWorks helps eliminate grammar
+ nondeterminisms, one of the most difficult problems for beginners
+ and experts alike, by highlighting nondeterministic paths in the
+ syntax diagram associated with a grammar. ANTLRWorks' goal is to make
+ grammars more accessible to the average programmer, improve
+ maintainability and readability of grammars by providing excellent
+ grammar navigation and refactoring tools, and address the most common
+ questions and problems encountered by grammar developers.
+ </longdescription>
+</pkgmetadata>
diff --git a/dev-util/apitrace/Manifest b/dev-util/apitrace/Manifest
new file mode 100644
index 000000000000..618c2714a6b4
--- /dev/null
+++ b/dev-util/apitrace/Manifest
@@ -0,0 +1,27 @@
+AUX apitrace-4.0-disable-multiarch.patch 1239 SHA256 65eb0796a9ed1e1c996de5852a99281154e35d691a6b6b5bbaef9d81444ead88 SHA512 30d67873bdc6da9085a0680765473873d1a8020c468e951be740a81bc3e4404bba7b636ee01ee1d20af868861dd6d7f5b82104b914bfaf994cd3be029271a43d WHIRLPOOL ba52fd3c59f838da622cf282af9214b270e7cf92b2cca44c4767e1279b9d8bb07a1e716b3544b7629c75fe9ff8297602e3ac96f412e30575537ee95e0f37931c
+AUX apitrace-4.0-glext-texture-storage.patch 3765 SHA256 3f6928448d9b82323a0731a6b66ecd02866d9e5b637582e844c9291b61d77406 SHA512 9bf5523af9aa18d141a6676577364c8c29560ee231f4a7913006d6fd8a796b66270fcb06974eb3c62562d087a79d9453a5f3dd3b38be7f627879361919d15901 WHIRLPOOL 4e2caedd4b964c33595a79eb7a95fe47771acc9a19c6b63b6fa6110fdaa12954d05de99936064a0bce1cd1943465119ac1260e6307aa5b740d4cb7228ea6aaa1
+AUX apitrace-4.0-glxcopysubbuffermesa.patch 2715 SHA256 6c5ad45f5015a95bcae9fe39691d520d15a6382d2c29b7d220b1ba57b2bcc40d SHA512 817e13d7668a2d95c321bf2c9506829b9a0e3e96139873220783c7d80fc9cdd5ce2408765fcce5ce3dcb37393d3921257a9d9c0f48b820cc325dde61f6e4a82a WHIRLPOOL 67483b27b8dadfaf57cab9870e561d059c337b3ed7fac6f8fe8e02decbe8474f62f5947ae781daaac07f1a7e2e037c75b117f88685ed7225dd70aa40e4902ba8
+AUX apitrace-4.0-glxtrace-only.patch 1641 SHA256 e4b0318763b2cd7ad79e684052674991515b612534dc7a9033e4e1ff5d86d3d9 SHA512 103d646d35e5b0b198b224088c97b4b6639bde8ce05e4b1889b124bb835c29aca38116354a674ba9802056e60a31f649afc05876458ab0995fde56893ed910ac WHIRLPOOL 7a3e96b0d678c5e11762b1ddec756d60ac68d99a5bd85f996e3b998e27b7fdff65050d0e15c9cbfc6b89d8adb586d764eece02b17ff1788506f345e9e8d456e6
+AUX apitrace-4.0-memcpy.patch 256 SHA256 233102422b76746a6b6d71bd22980b4f71fd7b39597b500e9beb89fec2fb365d SHA512 d0392c2e4dbdb3ea3a7ad3ecfb51e383d59c4a1d0ee2fdffbf0d0d5ea939fc03238ca8b9ae0fc8eb7799806de783292bbeed19ca94154fd09ffc62f24369d5e3 WHIRLPOOL ebccdee8fa7d703bd3843129e6a75c53bfdf2d2f51d889288e6ffa96addc2cdc2aa99f479e3808ecf364ab173f5b310497591b800a8325aa05bf7016932ad4ed
+AUX apitrace-4.0-multilib.patch 1457 SHA256 d6ab2a72fe9c696788a1cbb996006ff9a0a0909aeb33cb51adc43fb1f7e6f45f SHA512 a351cbdca7d02ec7a7570b32bff2d138779a8543a2b04b72d23fe8847b188b2143f826bfaf93c35a53831ba6ea93d4032eea0514d238573fbca6225d61ab7bed WHIRLPOOL ea525b48d838db7f1c42bc211f45807ef3b783c95c936d4a47cae649cfdae427b932b4eac0f10b0e89ed114f0e6d0ac5bcd9b2c27fde6bd197f8351f0aa2246f
+AUX apitrace-4.0-system-libs.patch 2049 SHA256 ebeb2c56565f696836863f2bc5882ded3bd6132d85837ecf91a1c9ccec8ecae8 SHA512 6831349d462a8abb5a660d5478c0a2ddd523d8af6347a0ed8da4eed2ae85d1fdd74b9b5f5d507a09b7b703b9b6e099743879a093cbd8b04fe2d99b034f011cc1 WHIRLPOOL c5a1f8e55b667f2b98fe95e71e8ceb6594063df076f5ad8c5168a71d3db35fcc619f624dd00292ba250b0f6c5990f0e50776c586541d1a440603c7380b75a9ee
+AUX apitrace-5.0-disable-multiarch.patch 1340 SHA256 c372309ea37a4f45d98a1f27cb6ec15d5711e99a908da4bea5b32a2292d773b2 SHA512 bea98c8060893d6fb69a59b0287503311f7fb8f3015a91c9a6121e578b71195ca04d88fc1f2da7c88502a8034c594f3f325a4ea7f513f91d8149bbc36999db4f WHIRLPOOL 645b288fbf4af16aef70e6f4e85704c530f111996bff06a1ab09c2ca90a9dd8041849b8b4c30d4d584ffd53d4e9c1f748961038b08a89fb62969db0fd4d64997
+AUX apitrace-5.0-glxtrace-only.patch 1798 SHA256 1c748e9cfa96ca26c73524a94c8311efffb642bd62ab12d4b3fac23e09eb9caa SHA512 f725b4ce98cf07ae3d2619cb49aa5f3634bd987a8523d95e8e6aae449efb490efe6be488236191a763440173e81c83be37d577b803df960f28f2bb36e1ae03c4 WHIRLPOOL c50cb7e633b7904599ac1cd989696789a38223237692d7c60d1020c94a28ba778045444657c72dc787c57e24ec2a315ddce7697d5d3cf1dedceefa465d7b35f1
+AUX apitrace-6.0-disable-multiarch.patch 1252 SHA256 424a0f54dfffd0f57d9598cbd21e79a9b165d4062020ed29c16c2528a7c98fe2 SHA512 fb88abd703bc48464d04aced4f8509e741f9cfd62d44d54b40771c8f45b42ab9512e4aab90949be751ab236e5e1a05d18df659c9d8d636d1137744387513a97e WHIRLPOOL be5f8ba58b013c06a9387c96f1fc47d733aace4e2e0b95a8db0e02d9d4deaf579074dcb91dca85328298aa8219dd6867f6c3cab9452a8f3c6e1650e50e280a36
+AUX apitrace-7.1-disable-multiarch.patch 1250 SHA256 6b0b4429b689ae5d09142582df1541b7c5776e97e7c133fd5e687d6a0a8d2263 SHA512 f9ec915c3221697ae81f9d49fcd56d846a5cc8d2f5e44d3da5df0ee3674c790370dbb4d58350d631d735f725a63fc323b1386f5399b89ae311ec783e29b0d396 WHIRLPOOL 1f00e670a3f2da9a95f0b5c1843e1d1da8c0d69aea13a8229d06824ebad1fdbcf8fcd44eb45849b8c656153e691c3bdcf0238c659f1712eb4a17cd17c5321739
+AUX apitrace-7.1-docs-install.patch 526 SHA256 51d8307920093800bef0a398e31ad4ff037faedd84e58d85bd9d5c196056e470 SHA512 530d232c41a447ce0e95f5b9d25bd0f48cfcad2867c7efd69e69b7179d85fd35d60a27adce1295e9499a6449f968ef3989c9e5f874224fb11086b92a714e5831 WHIRLPOOL 01a432317fa3f183415ce11182c1e28560110e63e5190360576c9d12c4f15d341f78f965a515db71fac8fec16b501cda3e6bb0e70ae1426fd97f4fe773c18d57
+AUX apitrace-7.1-glxtrace-only.patch 1022 SHA256 2fb863d843681fc5684006658d40fd78ba21b323d250403f1bfe009fc8cd9dc6 SHA512 3cbb1b25dcfbb57785feba8ef83450e270f062fc771e5fd1ae99c8ac893cad6e33162a12fccc962da08778a77377db652690efe3c54d60b2a56a6d1971cefdf1 WHIRLPOOL 7ce2a7fad03f6d10e5d47af5bffc3d906aaf4a480db9828243083eab634199e06313a062e00f8faf608fb3bbd6f64e76feba135e755ed28295760728916391e8
+AUX apitrace-7.1-snappy-license.patch 240 SHA256 b0529be8c0bb93fabf7256e6a2b50caa4cc78635afb3ba489c4ee9dd35ae6f3f SHA512 0ea2d2fe38c0ecd12a41dcef66efda7e55d02c43a9a8ec52da621f711e50f040542efa65e855d52715fa0ab78d54b4c5620ee0cfc0795f4d9eb4a433d07da60c WHIRLPOOL 9ee7d959b89c26df67ba83cae52f60a2a9e059c9d481883b683e06627c550f2924f7ead134b2e1868bba4927b7b0f1d461455a87dc7f76306dc02e4903a30073
+DIST apitrace-4.0.tar.gz 1736912 SHA256 078cfe09a5a021559326e8ee92ce863dd99d48c36433ac37140233616bb6cbd3 SHA512 063e1dfc7993b6d014a8e62e5d038318b22a7cfdaac1970714cf6bcb7e31079f552ad198f2992f042b05a027322f86e58d77a0e3aa2e0b266b278c8d0708200c WHIRLPOOL a1b251929ffade5f5b498428d942a01fd6c141494e3de09520e7bcd5aa5b4e15e50144ccf6ef979650e75ddb03373a3f5c198a3554448161623c3e33d8a9160a
+DIST apitrace-5.0.tar.gz 1868044 SHA256 c11e97452b3b74533b82af28951382c77e3d639bd434cbc4e1dc43bc799c8ea6 SHA512 af83860c8bfd49a2a2b1483fe13a83f2e1aa93ca474f1efb12cb311a99f2ca29ce4c39831a941efdde80fe2ae76b11cdfc6fde3349d325c71fc2a3ecae6b1424 WHIRLPOOL ba6fe7c354db3e6ba8edd46675631ef6d2edfc01c9201ffd951fc48110d0120463d52b4778984b01ae766d662edfc386a1965240377bcd2b2bae71936e94d42a
+DIST apitrace-6.0.tar.gz 1738830 SHA256 4ac99fbd5076c9e4db9d09ef22fb1958f28115f162b6ee40a23130aacc1e2acb SHA512 e937ca8ddece11d180ed306083788fc7e5fa5d4ceeef0ae69ab5a8140e4169c583b281f6f4806b5c4d71c72fb79ac8399e2f0f49fa1052b90f14306247a4091c WHIRLPOOL 1d5f43f5576a4f258f249f3d2777ad221dce3d7dc9489db924568c5c26af3542d016d722ef9c9be7ae50e380684c597840cc869c4d11cf3f3dcb96f952cc4ee0
+DIST apitrace-6.1.tar.gz 1741041 SHA256 0285610a6afbe9fbc47c0ecb80cafabb34dc1998c1c8308bacb7fdd15817930b SHA512 218fc8e59bc6cff6733c98f53c57b0e793d2f7aa530560f8da0dff83c4fa255c5fd5db97a9a43c364490c355ddb1ea6557ced64eae3e6c5e0c6f4504b9299bcd WHIRLPOOL 6334a96a0d70fce927faed0923efe1e320d4a52909ab01223f0486774a13e3cef53d2920933bc3167d9d766d647da6ab36b95ccbbcf78a0af55d16775000f2ea
+DIST apitrace-7.1.tar.gz 2343156 SHA256 2103386d747d34f3d6fb1d01fde9078a45ad2e9976afab3a7489c95b08dde0a2 SHA512 b4ebe4eb0b16770a156cffe7cccccff2166634bee7b147d124c78c6e5b37e2ef5f0cb78d30ab7df9a489f25234073023c8bbee67e2b6c59aacfcf4e5ff2ceb84 WHIRLPOOL d61aa9470faf61d4ffa3cd12a24fa13f993f9e21fc0bfcf0f2b9bf3d15803bc1c2120a1ed7e8c43668082dfe61f86434d5e297c5e21e4f2bbb1b88bf80b9bbe3
+EBUILD apitrace-4.0.ebuild 2428 SHA256 ef77e073af848c5216ca32905dd469cd403eb85918b88e60f47234e6f19e1032 SHA512 1d3466a7c4e79a0da9c4478aea70fa093776024b18ce8d70156722e85a72d63ec1d1251b6588d261ed03a2f1540891df1a52a668e59c8d0a321c8430e499e5c5 WHIRLPOOL 0d65452436143569e2e735f5505050fae073312a1fa1a7359b423ca66739c8e477cf99489fd59bba71492700ace91fa6313b3ff39c63971886f485e1540d2cf4
+EBUILD apitrace-5.0.ebuild 2270 SHA256 8b1a4906ac9cc4afdb6710dcadc6044ef0efa2f1015befe8599746338aec1ab0 SHA512 4a7eba7f4efad955d12395491685ace6cd47ce0c09b0e8188948103a72bf7261a7877a97df83d718168809e0440fd5ed679a05157d448293434b8fb1c844b4f5 WHIRLPOOL 24676d62472fc4eafcbf8941521f659f96cde66c01a9e781c21c907bc5c7d6b4eb5387947c8437b4bdcbc802d49f9f89bebbfb642e26f0b38a1a4190c5bfecbb
+EBUILD apitrace-6.0.ebuild 2279 SHA256 0f089236b0900bcddc3cb74a7814faab26de1eba647d864fa521fc02e0c141b9 SHA512 517bfd6b5e186ec63137ddac0ef4c7c7b9f89f32dbb3b838971bf608bced347ff3b571a999a18a8529045b05d1fffd8f7850dea727ace09519f881e7d83aec56 WHIRLPOOL 8d9c9b03b735125285f7cfdddf0d76608516c676d48deadeac2a607d34c82ab8d037927c138a2ce5ecb399593d81b66c0a3921217f6831fb24e84f05455249e0
+EBUILD apitrace-6.1.ebuild 2284 SHA256 b8cb074f50fbf20ea1c617108a5c538dea71d7c4e7c9f739ae349721e6cb9663 SHA512 094bb21aa5b37ffd39adb32173289155bd5f3671192998e31ec28c790d7c1f4554b79d8866fd39f2eeff0e00da4f5bca5bbe976e79b3d174724f8969b5545f39 WHIRLPOOL 4f03efcdaa4c835dbf9bdd0a909c198c3aad79710308768edcf61775f726c6ab0d1f0d8fd6006bf848d3440ef0a0bb6eee7c19102de6ac304dc3f6fe8b8acecc
+EBUILD apitrace-7.1.ebuild 2552 SHA256 56b602993061f401d349f1ac88ec780d88029bcac35d5c06b6c8b00dac8c97fe SHA512 433370c49d61f3b3537b9240dd5fc15e3490bebdf4bac160a658b219bc6fc11617d14bbc6067bb2f6abb12322b3de3bad3fd8d188d69a86a8b9b85103579e5fd WHIRLPOOL 9bb1e09b4d4aa55370d854d5c557b894b80deea0a0bcfbe49faf5369c6134dec036851acd3d62c283803d305b7d9f36704d771363548735a707def48fbaf41b0
+MISC ChangeLog 3342 SHA256 c48eaebfab3bf2fb218038d7b7f7822d31c466210757f7b54bd1e2b1fa830f56 SHA512 39f341b50bbf91045e80c1fccd27ec2c28155a53ce26e26cefbcea30b50d9ba1697e2b3251c8bf0c1a9626877dab40754928fa175e4252236052b05c1cf4f7fa WHIRLPOOL d48376a9afb9f3d26af9abaa1ad7405f9ab16d8fa566495473f6e4b46b81689de7981d396b3a01c95f7d825a6d55d6c8a8736157a37ae82f48df2e2f947a2007
+MISC ChangeLog-2015 5308 SHA256 bcbf64895b2d12c90e903793c83fc086db336c48986b08562c7cc8c67847fa44 SHA512 472955bdccbf250f2e75c5be1b7fbf3cb6b121c5ede7234dd0f35841f0adfe3d6a7b61e1642d0c0b88caf0240910f4f33aecdb6d716a9a7bc50d233355410967 WHIRLPOOL ef5f27e3925d40672d7bb62e72f02a8fcd8eab10061261023ff233aceb77e605ecb89bdd11f2dbf2497b9d0b018897e016b5a3c4ae3b9f85134616740824b94d
+MISC metadata.xml 873 SHA256 73102a36c78e45ce4df0dd20d3d71a78a79702b43bd80e6405089b600c690267 SHA512 70888ddc502b5de4c1de887e0d383f7745a82ae58ac4f733789c919b014a78018ad89da7c7665011fc94ea91be0e32245b859ebadbb88661ab9949a1215d509a WHIRLPOOL 5d4bb986419dc9580871fe1d256816ff4c4d9a6a0759e8d672eac726d98f98d177f5aa4b67912cc3a949927efc2d7408bf9166c21aee75e1b60d9e383b19ca86
diff --git a/dev-util/apitrace/apitrace-4.0.ebuild b/dev-util/apitrace/apitrace-4.0.ebuild
new file mode 100644
index 000000000000..9b529af04909
--- /dev/null
+++ b/dev-util/apitrace/apitrace-4.0.ebuild
@@ -0,0 +1,95 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+PYTHON_COMPAT=( python2_7 )
+
+inherit cmake-multilib eutils python-single-r1 vcs-snapshot
+
+DESCRIPTION="A tool for tracing, analyzing, and debugging graphics APIs"
+HOMEPAGE="https://github.com/apitrace/apitrace"
+SRC_URI="https://github.com/${PN}/${PN}/tarball/${PV} -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="+cli egl qt4"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}
+ >=app-arch/snappy-1.1.1[${MULTILIB_USEDEP}]
+ >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}]
+ >=media-libs/mesa-9.1.6[egl?,${MULTILIB_USEDEP}]
+ egl? ( || (
+ >=media-libs/mesa-8.0[gles1,gles2]
+ <media-libs/mesa-8.0[gles]
+ ) )
+ media-libs/libpng:0=
+ sys-process/procps
+ x11-libs/libX11
+ qt4? (
+ >=dev-qt/qtcore-4.7:4
+ >=dev-qt/qtgui-4.7:4
+ >=dev-qt/qtwebkit-4.7:4
+ >=dev-libs/qjson-0.5
+ )"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-system-libs.patch
+ "${FILESDIR}"/${P}-glxtrace-only.patch
+ "${FILESDIR}"/${P}-glext-texture-storage.patch
+ "${FILESDIR}"/${P}-glxcopysubbuffermesa.patch
+ "${FILESDIR}"/${P}-multilib.patch
+ "${FILESDIR}"/${P}-disable-multiarch.patch
+ "${FILESDIR}"/${P}-memcpy.patch
+)
+
+src_prepare() {
+ cmake-utils_src_prepare
+
+ # The apitrace code grubs around in the internal zlib structures.
+ # We have to extract this header and clean it up to keep that working.
+ # Do not be surprised if a zlib upgrade breaks things ...
+ sed -r \
+ -e 's:OF[(]([^)]*)[)]:\1:' \
+ thirdparty/zlib/gzguts.h > gzguts.h
+ rm -rf "${S}"/thirdparty/{getopt,less,libpng,snappy,zlib}
+}
+
+src_configure() {
+ my_configure() {
+ mycmakeargs=(
+ -DARCH_SUBDIR=
+ $(cmake-utils_use_enable egl EGL)
+ )
+ if multilib_is_native_abi ; then
+ mycmakeargs+=(
+ $(cmake-utils_use_enable cli CLI)
+ $(cmake-utils_use_enable qt4 GUI)
+ )
+ else
+ mycmakeargs+=(
+ -DBUILD_LIB_ONLY=ON
+ -DENABLE_CLI=OFF
+ -DENABLE_GUI=OFF
+ )
+ fi
+ cmake-utils_src_configure
+ }
+
+ multilib_parallel_foreach_abi my_configure
+}
+
+src_install() {
+ cmake-multilib_src_install
+
+ dosym glxtrace.so /usr/$(get_libdir)/${PN}/wrappers/libGL.so
+ dosym glxtrace.so /usr/$(get_libdir)/${PN}/wrappers/libGL.so.1
+ dosym glxtrace.so /usr/$(get_libdir)/${PN}/wrappers/libGL.so.1.2
+
+ dodoc {BUGS,DEVELOPMENT,NEWS,README,TODO}.markdown
+
+ exeinto /usr/$(get_libdir)/${PN}/scripts
+ doexe $(find scripts -type f -executable)
+}
diff --git a/dev-util/apitrace/apitrace-5.0.ebuild b/dev-util/apitrace/apitrace-5.0.ebuild
new file mode 100644
index 000000000000..712b310b5588
--- /dev/null
+++ b/dev-util/apitrace/apitrace-5.0.ebuild
@@ -0,0 +1,91 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+PYTHON_COMPAT=( python2_7 )
+
+inherit cmake-multilib eutils python-single-r1 vcs-snapshot
+
+DESCRIPTION="A tool for tracing, analyzing, and debugging graphics APIs"
+HOMEPAGE="https://github.com/apitrace/apitrace"
+SRC_URI="https://github.com/${PN}/${PN}/tarball/${PV} -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="+cli egl qt4"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}
+ >=app-arch/snappy-1.1.1[${MULTILIB_USEDEP}]
+ >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}]
+ >=media-libs/mesa-9.1.6[egl?,${MULTILIB_USEDEP}]
+ egl? ( || (
+ >=media-libs/mesa-8.0[gles1,gles2]
+ <media-libs/mesa-8.0[gles]
+ ) )
+ media-libs/libpng:0=
+ sys-process/procps
+ x11-libs/libX11
+ qt4? (
+ >=dev-qt/qtcore-4.7:4
+ >=dev-qt/qtgui-4.7:4
+ >=dev-qt/qtwebkit-4.7:4
+ >=dev-libs/qjson-0.5
+ )"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-4.0-system-libs.patch
+ "${FILESDIR}"/${P}-glxtrace-only.patch
+ "${FILESDIR}"/${P}-disable-multiarch.patch
+)
+
+src_prepare() {
+ cmake-utils_src_prepare
+
+ # The apitrace code grubs around in the internal zlib structures.
+ # We have to extract this header and clean it up to keep that working.
+ # Do not be surprised if a zlib upgrade breaks things ...
+ sed -r \
+ -e 's:OF[(]([^)]*)[)]:\1:' \
+ thirdparty/zlib/gzguts.h > gzguts.h
+ rm -rf "${S}"/thirdparty/{getopt,less,libpng,snappy,zlib}
+}
+
+src_configure() {
+ my_configure() {
+ mycmakeargs=(
+ -DARCH_SUBDIR=
+ $(cmake-utils_use_enable egl EGL)
+ )
+ if multilib_is_native_abi ; then
+ mycmakeargs+=(
+ $(cmake-utils_use_enable cli CLI)
+ $(cmake-utils_use_enable qt4 GUI)
+ )
+ else
+ mycmakeargs+=(
+ -DBUILD_LIB_ONLY=ON
+ -DENABLE_CLI=OFF
+ -DENABLE_GUI=OFF
+ )
+ fi
+ cmake-utils_src_configure
+ }
+
+ multilib_parallel_foreach_abi my_configure
+}
+
+src_install() {
+ cmake-multilib_src_install
+
+ dosym glxtrace.so /usr/$(get_libdir)/${PN}/wrappers/libGL.so
+ dosym glxtrace.so /usr/$(get_libdir)/${PN}/wrappers/libGL.so.1
+ dosym glxtrace.so /usr/$(get_libdir)/${PN}/wrappers/libGL.so.1.2
+
+ dodoc {BUGS,DEVELOPMENT,NEWS,README,TODO}.markdown
+
+ exeinto /usr/$(get_libdir)/${PN}/scripts
+ doexe $(find scripts -type f -executable)
+}
diff --git a/dev-util/apitrace/apitrace-6.0.ebuild b/dev-util/apitrace/apitrace-6.0.ebuild
new file mode 100644
index 000000000000..9e36010d4e43
--- /dev/null
+++ b/dev-util/apitrace/apitrace-6.0.ebuild
@@ -0,0 +1,91 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+PYTHON_COMPAT=( python2_7 )
+
+inherit cmake-multilib eutils python-single-r1
+
+DESCRIPTION="A tool for tracing, analyzing, and debugging graphics APIs"
+HOMEPAGE="https://github.com/apitrace/apitrace"
+SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="+cli egl qt4"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}
+ >=app-arch/snappy-1.1.1[${MULTILIB_USEDEP}]
+ >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}]
+ >=media-libs/mesa-9.1.6[egl?,${MULTILIB_USEDEP}]
+ egl? ( || (
+ >=media-libs/mesa-8.0[gles1,gles2]
+ <media-libs/mesa-8.0[gles]
+ ) )
+ media-libs/libpng:0=
+ sys-process/procps
+ x11-libs/libX11
+ qt4? (
+ >=dev-qt/qtcore-4.7:4
+ >=dev-qt/qtgui-4.7:4
+ >=dev-qt/qtwebkit-4.7:4
+ >=dev-libs/qjson-0.5
+ )"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-4.0-system-libs.patch
+ "${FILESDIR}"/${PN}-5.0-glxtrace-only.patch
+ "${FILESDIR}"/${P}-disable-multiarch.patch
+)
+
+src_prepare() {
+ cmake-utils_src_prepare
+
+ # The apitrace code grubs around in the internal zlib structures.
+ # We have to extract this header and clean it up to keep that working.
+ # Do not be surprised if a zlib upgrade breaks things ...
+ sed -r \
+ -e 's:OF[(]([^)]*)[)]:\1:' \
+ thirdparty/zlib/gzguts.h > gzguts.h
+ rm -rf "${S}"/thirdparty/{getopt,less,libpng,snappy,zlib}
+}
+
+src_configure() {
+ my_configure() {
+ mycmakeargs=(
+ -DARCH_SUBDIR=
+ $(cmake-utils_use_enable egl EGL)
+ )
+ if multilib_is_native_abi ; then
+ mycmakeargs+=(
+ $(cmake-utils_use_enable cli CLI)
+ $(cmake-utils_use_enable qt4 GUI)
+ )
+ else
+ mycmakeargs+=(
+ -DBUILD_LIB_ONLY=ON
+ -DENABLE_CLI=OFF
+ -DENABLE_GUI=OFF
+ )
+ fi
+ cmake-utils_src_configure
+ }
+
+ multilib_parallel_foreach_abi my_configure
+}
+
+src_install() {
+ cmake-multilib_src_install
+
+ dosym glxtrace.so /usr/$(get_libdir)/${PN}/wrappers/libGL.so
+ dosym glxtrace.so /usr/$(get_libdir)/${PN}/wrappers/libGL.so.1
+ dosym glxtrace.so /usr/$(get_libdir)/${PN}/wrappers/libGL.so.1.2
+
+ dodoc {BUGS,Dalvik,FORMAT,HACKING,NEWS,README,TODO}.markdown
+
+ exeinto /usr/$(get_libdir)/${PN}/scripts
+ doexe $(find scripts -type f -executable)
+}
diff --git a/dev-util/apitrace/apitrace-6.1.ebuild b/dev-util/apitrace/apitrace-6.1.ebuild
new file mode 100644
index 000000000000..3439c4a28306
--- /dev/null
+++ b/dev-util/apitrace/apitrace-6.1.ebuild
@@ -0,0 +1,91 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+PYTHON_COMPAT=( python2_7 )
+
+inherit cmake-multilib eutils python-single-r1
+
+DESCRIPTION="A tool for tracing, analyzing, and debugging graphics APIs"
+HOMEPAGE="https://github.com/apitrace/apitrace"
+SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="+cli egl qt4"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}
+ >=app-arch/snappy-1.1.1[${MULTILIB_USEDEP}]
+ >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}]
+ >=media-libs/mesa-9.1.6[egl?,${MULTILIB_USEDEP}]
+ egl? ( || (
+ >=media-libs/mesa-8.0[gles1,gles2]
+ <media-libs/mesa-8.0[gles]
+ ) )
+ media-libs/libpng:0=
+ sys-process/procps
+ x11-libs/libX11
+ qt4? (
+ >=dev-qt/qtcore-4.7:4
+ >=dev-qt/qtgui-4.7:4
+ >=dev-qt/qtwebkit-4.7:4
+ >=dev-libs/qjson-0.5
+ )"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-4.0-system-libs.patch
+ "${FILESDIR}"/${PN}-5.0-glxtrace-only.patch
+ "${FILESDIR}"/${PN}-6.0-disable-multiarch.patch
+)
+
+src_prepare() {
+ cmake-utils_src_prepare
+
+ # The apitrace code grubs around in the internal zlib structures.
+ # We have to extract this header and clean it up to keep that working.
+ # Do not be surprised if a zlib upgrade breaks things ...
+ sed -r \
+ -e 's:OF[(]([^)]*)[)]:\1:' \
+ thirdparty/zlib/gzguts.h > gzguts.h
+ rm -rf "${S}"/thirdparty/{getopt,less,libpng,snappy,zlib}
+}
+
+src_configure() {
+ my_configure() {
+ mycmakeargs=(
+ -DARCH_SUBDIR=
+ $(cmake-utils_use_enable egl EGL)
+ )
+ if multilib_is_native_abi ; then
+ mycmakeargs+=(
+ $(cmake-utils_use_enable cli CLI)
+ $(cmake-utils_use_enable qt4 GUI)
+ )
+ else
+ mycmakeargs+=(
+ -DBUILD_LIB_ONLY=ON
+ -DENABLE_CLI=OFF
+ -DENABLE_GUI=OFF
+ )
+ fi
+ cmake-utils_src_configure
+ }
+
+ multilib_parallel_foreach_abi my_configure
+}
+
+src_install() {
+ cmake-multilib_src_install
+
+ dosym glxtrace.so /usr/$(get_libdir)/${PN}/wrappers/libGL.so
+ dosym glxtrace.so /usr/$(get_libdir)/${PN}/wrappers/libGL.so.1
+ dosym glxtrace.so /usr/$(get_libdir)/${PN}/wrappers/libGL.so.1.2
+
+ dodoc {BUGS,Dalvik,FORMAT,HACKING,NEWS,README,TODO}.markdown
+
+ exeinto /usr/$(get_libdir)/${PN}/scripts
+ doexe $(find scripts -type f -executable)
+}
diff --git a/dev-util/apitrace/apitrace-7.1.ebuild b/dev-util/apitrace/apitrace-7.1.ebuild
new file mode 100644
index 000000000000..7ebcd73810e0
--- /dev/null
+++ b/dev-util/apitrace/apitrace-7.1.ebuild
@@ -0,0 +1,99 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+PYTHON_COMPAT=( python2_7 )
+
+inherit cmake-multilib eutils python-single-r1
+
+DESCRIPTION="A tool for tracing, analyzing, and debugging graphics APIs"
+HOMEPAGE="https://github.com/apitrace/apitrace"
+SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+LICENSE+=" BSD CC-BY-3.0 CC-BY-4.0 public-domain" #bundled snappy
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="+cli egl qt5 system-snappy"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}
+ >=sys-devel/gcc-4.7:*
+ system-snappy? ( >=app-arch/snappy-1.1.1[${MULTILIB_USEDEP}] )
+ >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}]
+ >=media-libs/mesa-9.1.6[egl?,${MULTILIB_USEDEP}]
+ egl? ( || (
+ >=media-libs/mesa-8.0[gles1,gles2]
+ <media-libs/mesa-8.0[gles]
+ )
+ media-libs/waffle[egl]
+ )
+ media-libs/libpng:0=
+ sys-process/procps
+ x11-libs/libX11
+ qt5? (
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtnetwork:5
+ dev-qt/qtwebkit:5
+ dev-qt/qtwidgets:5
+ )"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-7.1-glxtrace-only.patch
+ "${FILESDIR}"/${PN}-7.1-disable-multiarch.patch
+ "${FILESDIR}"/${PN}-7.1-docs-install.patch
+ "${FILESDIR}"/${PN}-7.1-snappy-license.patch
+)
+
+src_prepare() {
+ cmake-utils_src_prepare
+
+ # The apitrace code grubs around in the internal zlib structures.
+ # We have to extract this header and clean it up to keep that working.
+ # Do not be surprised if a zlib upgrade breaks things ...
+ rm -rf "${S}"/thirdparty/{getopt,less,libpng,zlib,dxerr,directxtex,devcon} || die
+ if use system-snappy ; then
+ rm -rf "${S}"/thirdparty/snappy || die
+ fi
+}
+
+src_configure() {
+ my_configure() {
+ mycmakeargs=(
+ -DARCH_SUBDIR=
+ $(cmake-utils_use_enable egl EGL)
+ $(cmake-utils_use_enable !system-snappy STATIC_SNAPPY)
+ )
+ if multilib_is_native_abi ; then
+ mycmakeargs+=(
+ $(cmake-utils_use_enable cli CLI)
+ $(cmake-utils_use_enable qt5 GUI)
+ )
+ else
+ mycmakeargs+=(
+ -DBUILD_LIB_ONLY=ON
+ -DENABLE_CLI=OFF
+ -DENABLE_GUI=OFF
+ )
+ fi
+ cmake-utils_src_configure
+ }
+
+ multilib_parallel_foreach_abi my_configure
+}
+
+src_install() {
+ cmake-multilib_src_install
+
+ dosym glxtrace.so /usr/$(get_libdir)/${PN}/wrappers/libGL.so
+ dosym glxtrace.so /usr/$(get_libdir)/${PN}/wrappers/libGL.so.1
+ dosym glxtrace.so /usr/$(get_libdir)/${PN}/wrappers/libGL.so.1.2
+
+ rm docs/INSTALL.markdown
+ dodoc docs/* README.markdown
+
+ exeinto /usr/$(get_libdir)/${PN}/scripts
+ doexe $(find scripts -type f -executable)
+}
diff --git a/dev-util/apitrace/files/apitrace-4.0-disable-multiarch.patch b/dev-util/apitrace/files/apitrace-4.0-disable-multiarch.patch
new file mode 100644
index 000000000000..0ced4d84cbf6
--- /dev/null
+++ b/dev-util/apitrace/files/apitrace-4.0-disable-multiarch.patch
@@ -0,0 +1,32 @@
+respect the libdir cmake already set up for us instead of using the multiarch crap
+
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -184,12 +184,6 @@ set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
+ # Installation directories
+
+ if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
+- # Debian multiarch support
+- execute_process(COMMAND dpkg-architecture -qDEB_HOST_MULTIARCH
+- OUTPUT_VARIABLE ARCH_SUBDIR
+- ERROR_QUIET
+- OUTPUT_STRIP_TRAILING_WHITESPACE
+- )
+ CHECK_INCLUDE_FILES(proc/readproc.h READPROC_H_FOUND)
+ if (READPROC_H_FOUND)
+ add_definitions (-DHAVE_READPROC_H)
+@@ -205,11 +205,11 @@ if (WIN32 OR APPLE)
+ set (LIB_ARCH_INSTALL_DIR lib)
+ else ()
+ set (DOC_INSTALL_DIR share/doc/${CMAKE_PROJECT_NAME})
+- set (LIB_INSTALL_DIR lib/${CMAKE_PROJECT_NAME})
++ set (LIB_INSTALL_DIR ${CMAKE_INSTALL_LIBDIR}/${CMAKE_PROJECT_NAME})
+ if (ARCH_SUBDIR)
+- set (LIB_ARCH_INSTALL_DIR lib/${ARCH_SUBDIR}/${CMAKE_PROJECT_NAME})
++ set (LIB_ARCH_INSTALL_DIR ${CMAKE_INSTALL_LIBDIR}/${ARCH_SUBDIR}/${CMAKE_PROJECT_NAME})
+ else ()
+- set (LIB_ARCH_INSTALL_DIR lib/${CMAKE_PROJECT_NAME})
++ set (LIB_ARCH_INSTALL_DIR ${LIB_INSTALL_DIR})
+ endif ()
+ endif ()
+
diff --git a/dev-util/apitrace/files/apitrace-4.0-glext-texture-storage.patch b/dev-util/apitrace/files/apitrace-4.0-glext-texture-storage.patch
new file mode 100644
index 000000000000..2d04db408693
--- /dev/null
+++ b/dev-util/apitrace/files/apitrace-4.0-glext-texture-storage.patch
@@ -0,0 +1,73 @@
+Upstream commit to support GL_EXT_texture_storage.
+
+commit 0436cc01329b6be60801dd7bfe641be7d8be5bc7
+Author: José Fonseca <jfonseca@vmware.com>
+Date: Wed Nov 13 13:57:43 2013 +0000
+
+ egltrace: Add GL_EXT_texture_storage entrypoints
+
+ Prototypes obtained through:
+
+ specs/scripts/gltxt.py http://www.khronos.org/registry/gles/extensions/EXT/EXT_texture_storage.txt
+
+ Issue #184.
+
+commit 0bacf23eacd15c8f15413b85bdcb6ccc4d288f37
+Author: José Fonseca <jfonseca@vmware.com>
+Date: Wed Nov 13 13:59:51 2013 +0000
+
+ glxtrace: Add GLES prototypes too.
+
+ Some applications seem to fail to distinguish GLES and GL entrypoints
+ apart. To have complete traces in that situation, generate wrappers
+ for both GLES and GL prototypes.
+
+ Issue #184.
+
+--- apitrace/specs/glesapi.py
++++ apitrace/specs/glesapi.py
+@@ -255,4 +255,16 @@ glesapi.addFunctions([
+ #GlFunction(Void, "glProgramUniformMatrix4fvEXT", [(GLprogram, "program"), (GLlocation, "location"), (GLsizei, "count"), (GLboolean, "transpose"), (Array(Const(GLfloat), "count*4*4"), "value")]),
+ GlFunction(Void, "glValidateProgramPipelineEXT", [(GLpipeline, "pipeline")]),
+ GlFunction(Void, "glGetProgramPipelineInfoLogEXT", [(GLpipeline, "pipeline"), (GLsizei, "bufSize"), Out(Pointer(GLsizei), "length"), Out(GLstring, "infoLog")], sideeffects=False),
++
++ # GL_EXT_multisampled_render_to_texture
++ #GlFunction(Void, "glRenderbufferStorageMultisampleEXT", [(GLenum, "target"), (GLsizei, "samples"), (GLenum, "internalformat"), (GLsizei, "width"), (GLsizei, "height")]),
++ GlFunction(Void, "glFramebufferTexture2DMultisampleEXT", [(GLenum, "target"), (GLenum, "attachment"), (GLenum, "textarget"), (GLtexture, "texture"), (GLint, "level"), (GLsizei, "samples")]),
++
++ # GL_EXT_texture_storage
++ GlFunction(Void, "glTexStorage1DEXT", [(GLenum, "target"), (GLsizei, "levels"), (GLenum, "internalformat"), (GLsizei, "width")]),
++ GlFunction(Void, "glTexStorage2DEXT", [(GLenum, "target"), (GLsizei, "levels"), (GLenum, "internalformat"), (GLsizei, "width"), (GLsizei, "height")]),
++ GlFunction(Void, "glTexStorage3DEXT", [(GLenum, "target"), (GLsizei, "levels"), (GLenum, "internalformat"), (GLsizei, "width"), (GLsizei, "height"), (GLsizei, "depth")]),
++ #GlFunction(Void, "glTextureStorage1DEXT", [(GLtexture, "texture"), (GLenum, "target"), (GLsizei, "levels"), (GLenum, "internalformat"), (GLsizei, "width")]),
++ #GlFunction(Void, "glTextureStorage2DEXT", [(GLtexture, "texture"), (GLenum, "target"), (GLsizei, "levels"), (GLenum, "internalformat"), (GLsizei, "width"), (GLsizei, "height")]),
++ #GlFunction(Void, "glTextureStorage3DEXT", [(GLtexture, "texture"), (GLenum, "target"), (GLsizei, "levels"), (GLenum, "internalformat"), (GLsizei, "width"), (GLsizei, "height"), (GLsizei, "depth")]),
+ ])
+--- apitrace/wrappers/CMakeLists.txt
++++ apitrace/wrappers/CMakeLists.txt
+@@ -393,6 +393,7 @@ elseif (X11_FOUND)
+ gltrace.py
+ trace.py
+ ${CMAKE_SOURCE_DIR}/specs/glxapi.py
++ ${CMAKE_SOURCE_DIR}/specs/glesapi.py
+ ${CMAKE_SOURCE_DIR}/specs/glapi.py
+ ${CMAKE_SOURCE_DIR}/specs/glparams.py
+ ${CMAKE_SOURCE_DIR}/specs/gltypes.py
+--- apitrace/wrappers/glxtrace.py
++++ apitrace/wrappers/glxtrace.py
+@@ -32,6 +32,7 @@ from gltrace import GlTracer
+ from specs.stdapi import Module, API
+ from specs.glapi import glapi
+ from specs.glxapi import glxapi
++from specs.glesapi import glesapi
+
+
+ class GlxTracer(GlTracer):
+@@ -104,6 +105,7 @@ if __name__ == '__main__':
+ module = Module()
+ module.mergeModule(glxapi)
+ module.mergeModule(glapi)
++ module.mergeModule(glesapi)
+ api = API()
+ api.addModule(module)
+ tracer = GlxTracer()
diff --git a/dev-util/apitrace/files/apitrace-4.0-glxcopysubbuffermesa.patch b/dev-util/apitrace/files/apitrace-4.0-glxcopysubbuffermesa.patch
new file mode 100644
index 000000000000..4dd3cdc6be3a
--- /dev/null
+++ b/dev-util/apitrace/files/apitrace-4.0-glxcopysubbuffermesa.patch
@@ -0,0 +1,80 @@
+Upstream commit to support glxCopySubBufferMESA. Modified to fix compile error with egl.
+
+commit 4dc3f3bdc3611ca1b3dec402f9242a036db8c8e4
+Author: Carl Worth <cworth@cworth.org>
+Date: Thu Oct 17 14:52:21 2013 -0700
+
+ retrace: Implement glxCopySubBufferMESA
+
+ This enables replay of a trace captured on ChromeOS.
+
+ Note: Replaying on EGL is not supported, (will trigger a warning),
+ since, as far as I know, EGL does not provide an equivalent function.
+
+--- apitrace/retrace/glretrace_glx.cpp
++++ apitrace/retrace/glretrace_glx.cpp
+@@ -111,6 +111,16 @@ static void retrace_glXDestroyContext(trace::Call &call) {
+ delete context;
+ }
+
++static void retrace_glXCopySubBufferMESA(trace::Call &call) {
++ glws::Drawable *drawable = getDrawable(call.arg(1).toUInt());
++ int x = call.arg(2).toSInt();
++ int y = call.arg(3).toSInt();
++ int width = call.arg(4).toSInt();
++ int height = call.arg(5).toSInt();
++
++ drawable->copySubBuffer(x, y, width, height);
++}
++
+ static void retrace_glXSwapBuffers(trace::Call &call) {
+ glws::Drawable *drawable = getDrawable(call.arg(1).toUInt());
+
+@@ -173,7 +183,7 @@ const retrace::Entry glretrace::glx_callbacks[] = {
+ {"glXChooseVisual", &retrace::ignore},
+ //{"glXCopyContext", &retrace_glXCopyContext},
+ //{"glXCopyImageSubDataNV", &retrace_glXCopyImageSubDataNV},
+- //{"glXCopySubBufferMESA", &retrace_glXCopySubBufferMESA},
++ {"glXCopySubBufferMESA", &retrace_glXCopySubBufferMESA},
+ {"glXCreateContextAttribsARB", &retrace_glXCreateContextAttribsARB},
+ {"glXCreateContext", &retrace_glXCreateContext},
+ //{"glXCreateContextWithConfigSGIX", &retrace_glXCreateContextWithConfigSGIX},
+--- apitrace/retrace/glws.hpp
++++ apitrace/retrace/glws.hpp
+@@ -127,6 +127,8 @@ public:
+ visible = true;
+ }
+
++ virtual void copySubBuffer(int x, int y, int width, int height) = 0;
++
+ virtual void swapBuffers(void) = 0;
+ };
+
+--- apitrace/retrace/glws_egl_xlib.cpp
++++ apitrace/retrace/glws_egl_xlib.cpp
+@@ -244,6 +244,10 @@ public:
+ Drawable::show();
+ }
+
++ void copySubBuffer(int x, int y, int width, int height) {
++ std::cerr << "glws_egl_xlib: Warning: copySubBuffer Not yet implemented\n";
++ }
++
+ void swapBuffers(void) {
+ eglBindAPI(api);
+ eglSwapBuffers(eglDisplay, surface);
+--- apitrace/retrace/glws_glx.cpp
++++ apitrace/retrace/glws_glx.cpp
+@@ -213,6 +213,12 @@ public:
+ Drawable::show();
+ }
+
++ void copySubBuffer(int x, int y, int width, int height) {
++ glXCopySubBufferMESA(display, window, x, y, width, height);
++
++ processKeys();
++ }
++
+ void swapBuffers(void) {
+ glXSwapBuffers(display, window);
+
diff --git a/dev-util/apitrace/files/apitrace-4.0-glxtrace-only.patch b/dev-util/apitrace/files/apitrace-4.0-glxtrace-only.patch
new file mode 100644
index 000000000000..08ce65e2fc0a
--- /dev/null
+++ b/dev-util/apitrace/files/apitrace-4.0-glxtrace-only.patch
@@ -0,0 +1,49 @@
+Allow building of just glxtrace library for ebuilds without GUI tools.
+
+Updated from 3.0 version of patch to apply against 4.0.
+
+--- apitrace/CMakeLists.txt
++++ apitrace/CMakeLists.txt
+@@ -30,6 +30,7 @@ set (ENABLE_CLI true CACHE BOOL "Enable command Line interface.")
+
+ set (ENABLE_EGL true CACHE BOOL "Enable EGL support.")
+
++option (BUILD_LIB_ONLY "Build the glxtrace library only" OFF)
+
+ ##############################################################################
+ # Find dependencies
+@@ -248,6 +255,8 @@ endif ()
+ # - The packaged versions QJson are very old, and do not support NaN/Infinity.
+ # - To make it easier to build the GUI on Windows and MacOSX, as there are no
+ # binaries at all.
++if (NOT BUILD_LIB_ONLY)
++
+ if (QT4_FOUND)
+ add_definitions (-DQJSON_EXPORT=)
+ add_subdirectory (thirdparty/qjson)
+@@ -257,6 +266,8 @@ if (QT4_FOUND)
+ set (QJSON_FOUND TRUE)
+ endif ()
+
++endif (NOT BUILD_LIB_ONLY)
++
+ # We use bundled headers for all Khronos APIs, to guarantee support for both
+ # OpenGL and OpenGL ES at build time, because the OpenGL and OpenGL ES 1 APIs
+ # are so intertwined that conditional compilation extremely difficult. This
+--- apitrace/retrace/CMakeLists.txt
++++ apitrace/retrace/CMakeLists.txt
+@@ -11,6 +11,8 @@ include_directories (
+
+ add_definitions (-DRETRACE)
+
++if (NOT BUILD_LIB_ONLY)
++
+ add_custom_command (
+ OUTPUT glretrace_gl.cpp
+ COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/glretrace.py > ${CMAKE_CURRENT_BINARY_DIR}/glretrace_gl.cpp
+@@ -259,3 +261,5 @@ if (WIN32)
+
+ install (TARGETS d3dretrace RUNTIME DESTINATION bin)
+ endif ()
++
++endif (NOT BUILD_LIB_ONLY)
diff --git a/dev-util/apitrace/files/apitrace-4.0-memcpy.patch b/dev-util/apitrace/files/apitrace-4.0-memcpy.patch
new file mode 100644
index 000000000000..5b49808ada9b
--- /dev/null
+++ b/dev-util/apitrace/files/apitrace-4.0-memcpy.patch
@@ -0,0 +1,13 @@
+http://bugs.gentoo.org/465504
+http://github.com/apitrace/apitrace/issues/118
+
+--- a/image/image_png.cpp
++++ b/image/image_png.cpp
+@@ -31,6 +31,7 @@
+ #include <assert.h>
+ #include <stdint.h>
+ #include <stdlib.h>
++#include <string.h>
+
+ #include <fstream>
+
diff --git a/dev-util/apitrace/files/apitrace-4.0-multilib.patch b/dev-util/apitrace/files/apitrace-4.0-multilib.patch
new file mode 100644
index 000000000000..6ad78c7cde08
--- /dev/null
+++ b/dev-util/apitrace/files/apitrace-4.0-multilib.patch
@@ -0,0 +1,59 @@
+Upstream commit to find wrappers in lib64 directory.
+
+commit 3f9c2ecf18d8fa37fad5a7062f80952692eaa8e7
+Author: Alexander Monakov <amonakov@ispras.ru>
+Date: Wed Oct 16 20:51:47 2013 +0400
+
+ cli: use $LIB to handle multilib automagically on glibc
+
+--- apitrace/cli/CMakeLists.txt
++++ apitrace/cli/CMakeLists.txt
+@@ -31,6 +31,7 @@ target_link_libraries (apitrace
+ ${ZLIB_LIBRARIES}
+ ${SNAPPY_LIBRARIES}
+ ${GETOPT_LIBRARIES}
++ dl
+ )
+
+ if (NOT CMAKE_CROSSCOMPILING)
+--- apitrace/cli/cli_resources.cpp
++++ apitrace/cli/cli_resources.cpp
+@@ -32,6 +32,20 @@
+
+ #include "cli_resources.hpp"
+
++#ifdef __GLIBC__
++
++#include <dlfcn.h>
++
++static bool
++tryLib(const os::String &path)
++{
++ void *handle = dlopen(path.str(), RTLD_LAZY);
++ bool exists = (handle != NULL);
++ if (exists)
++ dlclose(handle);
++ return exists;
++}
++#endif
+
+ os::String
+ findProgram(const char*programFilename)
+@@ -76,6 +90,17 @@ findWrapper(const char *wrapperFilename)
+ return wrapperPath;
+ }
+
++#ifdef __GLIBC__
++ // We want to take advantage of $LIB dynamic string token expansion in
++ // glibc dynamic linker to handle multilib layout for us
++ wrapperPath = processDir;
++ wrapperPath.join("../$LIB/apitrace/wrappers");
++ wrapperPath.join(wrapperFilename);
++ if (tryLib(wrapperPath)) {
++ return wrapperPath;
++ }
++#endif
++
+ // Try relative install directory
+ wrapperPath = processDir;
+ #if defined(_WIN32)
diff --git a/dev-util/apitrace/files/apitrace-4.0-system-libs.patch b/dev-util/apitrace/files/apitrace-4.0-system-libs.patch
new file mode 100644
index 000000000000..68468a30bde1
--- /dev/null
+++ b/dev-util/apitrace/files/apitrace-4.0-system-libs.patch
@@ -0,0 +1,72 @@
+Find external system libraries for ebuild.
+
+Updated from 3.0 version of patch to apply against 4.0.
+
+--- apitrace/CMakeLists.txt
++++ apitrace/CMakeLists.txt
+@@ -224,23 +224,14 @@ set (WRAPPER_INSTALL_DIR ${LIB_ARCH_INSTALL_DIR}/wrappers)
+ # - on unices to prevent symbol collisions when tracing applications that link
+ # against other versions of these libraries
+
+-set (ZLIB_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/zlib)
+-set (ZLIB_LIBRARIES z_bundled)
+-add_subdirectory (thirdparty/zlib)
+-
+-include_directories (${ZLIB_INCLUDE_DIRS})
+-
+-set (SNAPPY_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/snappy)
+-set (SNAPPY_LIBRARIES snappy_bundled)
+-add_subdirectory (thirdparty/snappy)
++find_package (ZLIB REQUIRED)
++include_directories (${ZLIB_INCLUDE_DIRS})
+
++find_package (SNAPPY REQUIRED)
+ include_directories (${SNAPPY_INCLUDE_DIRS})
+
+-set (PNG_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/libpng)
+-set (PNG_DEFINITIONS "")
+-set (PNG_LIBRARIES png_bundled)
+-
+-add_subdirectory (thirdparty/libpng)
++find_package (PNG REQUIRED)
++include_directories (${PNG_INCLUDE_DIRS})
+
+ if (MSVC)
+ add_subdirectory (thirdparty/getopt)
+diff --git a/cmake/FindSNAPPY.cmake b/cmake/FindSNAPPY.cmake
+new file mode 100644
+index 0000000..5cd64c3
+--- /dev/null
++++ apitrace/cmake/FindSNAPPY.cmake
+@@ -0,0 +1,31 @@
++# Find SNAPPY - A fast compressor/decompressor
++#
++# This module defines
++# SNAPPY_FOUND - whether the qsjon library was found
++# SNAPPY_LIBRARIES - the snappy library
++# SNAPPY_INCLUDE_DIR - the include path of the snappy library
++#
++
++if (SNAPPY_INCLUDE_DIR AND SNAPPY_LIBRARIES)
++
++ # Already in cache
++ set (SNAPPY_FOUND TRUE)
++
++else (SNAPPY_INCLUDE_DIR AND SNAPPY_LIBRARIES)
++
++ find_library (SNAPPY_LIBRARIES
++ NAMES
++ snappy
++ PATHS
++ )
++
++ find_path (SNAPPY_INCLUDE_DIR
++ NAMES
++ snappy.h
++ PATHS
++ )
++
++ include(FindPackageHandleStandardArgs)
++ find_package_handle_standard_args(SNAPPY DEFAULT_MSG SNAPPY_LIBRARIES SNAPPY_INCLUDE_DIR)
++
++endif (SNAPPY_INCLUDE_DIR AND SNAPPY_LIBRARIES)
diff --git a/dev-util/apitrace/files/apitrace-5.0-disable-multiarch.patch b/dev-util/apitrace/files/apitrace-5.0-disable-multiarch.patch
new file mode 100644
index 000000000000..aac018e65817
--- /dev/null
+++ b/dev-util/apitrace/files/apitrace-5.0-disable-multiarch.patch
@@ -0,0 +1,34 @@
+respect the libdir cmake already set up for us instead of using the multiarch crap
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 17f3dce..c3fe52e 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -216,12 +216,6 @@ set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
+ # Installation directories
+
+ if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
+- # Debian multiarch support
+- execute_process(COMMAND dpkg-architecture -qDEB_HOST_MULTIARCH
+- OUTPUT_VARIABLE ARCH_SUBDIR
+- ERROR_QUIET
+- OUTPUT_STRIP_TRAILING_WHITESPACE
+- )
+ CHECK_INCLUDE_FILES(proc/readproc.h READPROC_H_FOUND)
+ if (READPROC_H_FOUND)
+ add_definitions (-DHAVE_READPROC_H)
+@@ -237,11 +231,11 @@ if (WIN32 OR APPLE)
+ set (LIB_ARCH_INSTALL_DIR lib)
+ else ()
+ set (DOC_INSTALL_DIR share/doc/${CMAKE_PROJECT_NAME})
+- set (LIB_INSTALL_DIR lib${LIB_SUFFIX}/${CMAKE_PROJECT_NAME})
++ set (LIB_INSTALL_DIR ${CMAKE_INSTALL_LIBDIR}/${CMAKE_PROJECT_NAME})
+ if (ARCH_SUBDIR)
+- set (LIB_ARCH_INSTALL_DIR lib/${ARCH_SUBDIR}/${CMAKE_PROJECT_NAME})
++ set (LIB_ARCH_INSTALL_DIR ${CMAKE_INSTALL_LIBDIR}/${ARCH_SUBDIR}/${CMAKE_PROJECT_NAME})
+ else ()
+- set (LIB_ARCH_INSTALL_DIR lib${LIB_SUFFIX}/${CMAKE_PROJECT_NAME})
++ set (LIB_ARCH_INSTALL_DIR ${LIB_INSTALL_DIR})
+ endif ()
+ endif ()
+
diff --git a/dev-util/apitrace/files/apitrace-5.0-glxtrace-only.patch b/dev-util/apitrace/files/apitrace-5.0-glxtrace-only.patch
new file mode 100644
index 000000000000..03e6143afff0
--- /dev/null
+++ b/dev-util/apitrace/files/apitrace-5.0-glxtrace-only.patch
@@ -0,0 +1,53 @@
+Allow building of just glxtrace library for ebuilds without GUI tools.
+
+Updated from 4.0 version of patch to apply against 5.0.
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 17f3dce..3bba2a9 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -33,6 +33,7 @@ set (ENABLE_EGL true CACHE BOOL "Enable EGL support.")
+
+ set (ENABLE_WAFFLE false CACHE BOOL "Enable WAFFLE support.")
+
++option (BUILD_LIB_ONLY "Build the glxtrace library only" OFF)
+
+ ##############################################################################
+ # Find dependencies
+@@ -301,6 +302,8 @@ set (MD5_LIBRARIES md5_bundled)
+ # - The packaged versions QJson are very old, and do not support NaN/Infinity.
+ # - To make it easier to build the GUI on Windows and MacOSX, as there are no
+ # binaries at all.
++if (NOT BUILD_LIB_ONLY)
++
+ if (QT4_FOUND)
+ add_definitions (-DQJSON_EXPORT=)
+ add_subdirectory (thirdparty/qjson)
+@@ -310,6 +313,8 @@ if (QT4_FOUND)
+ set (QJSON_FOUND TRUE)
+ endif ()
+
++endif (NOT BUILD_LIB_ONLY)
++
+ # We use bundled headers for all Khronos APIs, to guarantee support for both
+ # OpenGL and OpenGL ES at build time, because the OpenGL and OpenGL ES 1 APIs
+ # are so intertwined that conditional compilation extremely difficult. This
+diff --git a/retrace/CMakeLists.txt b/retrace/CMakeLists.txt
+index 4e37979..2607ddf 100644
+--- a/retrace/CMakeLists.txt
++++ b/retrace/CMakeLists.txt
+@@ -11,6 +11,8 @@ include_directories (
+
+ add_definitions (-DRETRACE)
+
++if (NOT BUILD_LIB_ONLY)
++
+ add_custom_command (
+ OUTPUT glretrace_gl.cpp
+ COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/glretrace.py > ${CMAKE_CURRENT_BINARY_DIR}/glretrace_gl.cpp
+@@ -282,3 +284,5 @@ if (WIN32)
+
+ install (TARGETS d3dretrace RUNTIME DESTINATION bin)
+ endif ()
++
++endif (NOT BUILD_LIB_ONLY)
diff --git a/dev-util/apitrace/files/apitrace-6.0-disable-multiarch.patch b/dev-util/apitrace/files/apitrace-6.0-disable-multiarch.patch
new file mode 100644
index 000000000000..bc6ba03060a4
--- /dev/null
+++ b/dev-util/apitrace/files/apitrace-6.0-disable-multiarch.patch
@@ -0,0 +1,35 @@
+respect the libdir cmake already set up for us instead of using debian-specific multiarch paths
+
+--- apitrace-6.0/CMakeLists.txt
++++ apitrace-6.0/CMakeLists.txt
+@@ -280,15 +280,6 @@
+ ##############################################################################
+ # Installation directories
+
+-if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
+- # Debian multiarch support
+- execute_process(COMMAND dpkg-architecture -qDEB_HOST_MULTIARCH
+- OUTPUT_VARIABLE ARCH_SUBDIR
+- ERROR_QUIET
+- OUTPUT_STRIP_TRAILING_WHITESPACE
+- )
+-endif()
+-
+ if (WIN32 OR APPLE)
+ # On Windows/MacOSX, applications are usually installed on a directory of
+ # their own
+@@ -297,12 +288,8 @@
+ set (LIB_ARCH_INSTALL_DIR lib)
+ else ()
+ set (DOC_INSTALL_DIR share/doc/${CMAKE_PROJECT_NAME})
+- set (LIB_INSTALL_DIR lib${LIB_SUFFIX}/${CMAKE_PROJECT_NAME})
+- if (ARCH_SUBDIR)
+- set (LIB_ARCH_INSTALL_DIR lib/${ARCH_SUBDIR}/${CMAKE_PROJECT_NAME})
+- else ()
+- set (LIB_ARCH_INSTALL_DIR lib${LIB_SUFFIX}/${CMAKE_PROJECT_NAME})
+- endif ()
++ set (LIB_INSTALL_DIR ${CMAKE_INSTALL_LIBDIR}/${CMAKE_PROJECT_NAME})
++ set (LIB_ARCH_INSTALL_DIR ${LIB_INSTALL_DIR})
+ endif ()
+
+ set (SCRIPTS_INSTALL_DIR ${LIB_INSTALL_DIR}/scripts)
diff --git a/dev-util/apitrace/files/apitrace-7.1-disable-multiarch.patch b/dev-util/apitrace/files/apitrace-7.1-disable-multiarch.patch
new file mode 100644
index 000000000000..53d470d8705d
--- /dev/null
+++ b/dev-util/apitrace/files/apitrace-7.1-disable-multiarch.patch
@@ -0,0 +1,35 @@
+respect the libdir cmake already set up for us instead of using debian-specific multiarch paths
+
+--- apitrace-7.1/CMakeLists.txt
++++ apitrace-7.1/CMakeLists.txt
+@@ -359,15 +359,6 @@
+ ##############################################################################
+ # Installation directories
+
+-if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
+- # Debian multiarch support
+- execute_process(COMMAND dpkg-architecture -qDEB_HOST_MULTIARCH
+- OUTPUT_VARIABLE ARCH_SUBDIR
+- ERROR_QUIET
+- OUTPUT_STRIP_TRAILING_WHITESPACE
+- )
+-endif()
+-
+ if (WIN32 OR APPLE)
+ # On Windows/MacOSX, applications are usually installed on a directory of
+ # their own
+@@ -376,12 +367,8 @@
+ set (LIB_ARCH_INSTALL_DIR lib)
+ else ()
+ set (DOC_INSTALL_DIR share/doc/${CMAKE_PROJECT_NAME})
+- set (LIB_INSTALL_DIR lib${LIB_SUFFIX}/${CMAKE_PROJECT_NAME})
+- if (ARCH_SUBDIR)
+- set (LIB_ARCH_INSTALL_DIR lib/${ARCH_SUBDIR}/${CMAKE_PROJECT_NAME})
+- else ()
+- set (LIB_ARCH_INSTALL_DIR lib${LIB_SUFFIX}/${CMAKE_PROJECT_NAME})
+- endif ()
++ set (LIB_INSTALL_DIR ${CMAKE_INSTALL_LIBDIR}/${CMAKE_PROJECT_NAME})
++ set (LIB_ARCH_INSTALL_DIR ${LIB_INSTALL_DIR})
+ endif ()
+
+ set (SCRIPTS_INSTALL_DIR ${LIB_INSTALL_DIR}/scripts)
diff --git a/dev-util/apitrace/files/apitrace-7.1-docs-install.patch b/dev-util/apitrace/files/apitrace-7.1-docs-install.patch
new file mode 100644
index 000000000000..9fdc04ffe996
--- /dev/null
+++ b/dev-util/apitrace/files/apitrace-7.1-docs-install.patch
@@ -0,0 +1,23 @@
+--- apitrace-7.1/CMakeLists.txt
++++ apitrace-7.1/CMakeLists.txt
+@@ -553,20 +553,6 @@
+ ##############################################################################
+ # Packaging
+
+-install (
+- FILES
+- README.markdown
+- docs/BUGS.markdown
+- docs/NEWS.markdown
+- docs/USAGE.markdown
+- DESTINATION ${DOC_INSTALL_DIR}
+-)
+-install (
+- FILES LICENSE
+- DESTINATION ${DOC_INSTALL_DIR}
+- RENAME LICENSE.txt
+-)
+-
+ set (CPACK_PACKAGE_VERSION_MAJOR "7")
+ set (CPACK_PACKAGE_VERSION_MINOR "0")
+
diff --git a/dev-util/apitrace/files/apitrace-7.1-glxtrace-only.patch b/dev-util/apitrace/files/apitrace-7.1-glxtrace-only.patch
new file mode 100644
index 000000000000..91867affca26
--- /dev/null
+++ b/dev-util/apitrace/files/apitrace-7.1-glxtrace-only.patch
@@ -0,0 +1,32 @@
+Allow building of just glxtrace library for ebuilds without GUI tools.
+
+Updated from 5.0 version of patch to apply against 7.1.
+
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -44,6 +44,8 @@
+
+ option (ENABLE_FRAME_POINTER "Disable frame pointer omission" ON)
+
++option (BUILD_LIB_ONLY "Build the glxtrace library only" OFF)
++
+ # Proprietary Linux games often ship their own libraries (zlib, libstdc++,
+ # etc.) in order to ship a single set of binaries across multiple
+ # distributions. Given that apitrace wrapper modules will be loaded into those
+--- a/retrace/CMakeLists.txt
++++ b/retrace/CMakeLists.txt
+@@ -12,6 +12,8 @@
+
+ add_definitions (-DRETRACE)
+
++if (NOT BUILD_LIB_ONLY)
++
+ add_custom_command (
+ OUTPUT glretrace_gl.cpp
+ COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/glretrace.py > ${CMAKE_CURRENT_BINARY_DIR}/glretrace_gl.cpp
+@@ -368,3 +370,5 @@
+ install (TARGETS d3dretrace RUNTIME DESTINATION bin)
+ install_pdb (d3dretrace DESTINATION bin)
+ endif ()
++
++endif (NOT BUILD_LIB_ONLY)
diff --git a/dev-util/apitrace/files/apitrace-7.1-snappy-license.patch b/dev-util/apitrace/files/apitrace-7.1-snappy-license.patch
new file mode 100644
index 000000000000..2b211dc5ddb7
--- /dev/null
+++ b/dev-util/apitrace/files/apitrace-7.1-snappy-license.patch
@@ -0,0 +1,11 @@
+--- apitrace-7.1/thirdparty/snappy/CMakeLists.txt
++++ apitrace-7.1/thirdparty/snappy/CMakeLists.txt
+@@ -16,8 +16,3 @@
+ snappy-c.cc
+ )
+
+-install (
+- FILES COPYING
+- DESTINATION ${DOC_INSTALL_DIR}
+- RENAME LICENSE-snappy.txt
+-)
diff --git a/dev-util/apitrace/metadata.xml b/dev-util/apitrace/metadata.xml
new file mode 100644
index 000000000000..7e0a3f3a4d5e
--- /dev/null
+++ b/dev-util/apitrace/metadata.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>EoD@xmw.de</email>
+ <name>EoD</name>
+ <description>Maintainer. Assign bugs to him.</description>
+ </maintainer>
+ <maintainer type="person">
+ <email>xmw@gentoo.org</email>
+ <name>Michael Weber</name>
+ <description>Proxy maintainer. CC him on bugs.</description>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <use>
+ <flag name="cli">Enable command line interface</flag>
+ <flag name="egl">Enable EGL support</flag>
+ <flag name="system-snappy">Link dynamic against app-arch/snappy</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">apitrace/apitrace</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/appdata-tools/Manifest b/dev-util/appdata-tools/Manifest
new file mode 100644
index 000000000000..0a42beb63ab0
--- /dev/null
+++ b/dev-util/appdata-tools/Manifest
@@ -0,0 +1,6 @@
+DIST appdata-tools-0.1.7.tar.gz 124580 SHA256 a80333ee6107f6eb38466d2c47d0ae29527416a8fa4789c55c103fe41f79f8af SHA512 d0e32a2028f54482bd9715627bbc2050cfecfaea4be37fc3eeef273cdf989aa270a55112cbc81406dadedea87ae3521d26acf0011834d0055a473083147dcdc7 WHIRLPOOL a4ab56578ab3a82bed1c29c1fc49f58f6f2ef8932b2d1e68abe3cbf629f520113e4a556247cab7f14dde0be76d873b2694e70d4a88e0af5db39126f86e07a8bb
+EBUILD appdata-tools-0.1.7.ebuild 867 SHA256 4f1f9b4b6c649ac413c3fafad793074bc67be8d9c28466f881a8c9b43112dac1 SHA512 4814e3d761e2fb3114f9b68f553dc824d635fa9e7421aee2e9bd2117e478f3a27831d39c3bb3fe56a45f123a8c1237d19b258296ec2d254cfa651afe2d2d96ed WHIRLPOOL 448eee330d96c88b857a14c8f33f929ec05428907d159cfa3c33ea836371b453a94019dd12d5338bf34be9bbfd6387d5d81a040557b5fc82263b4de0133411e4
+EBUILD appdata-tools-0.1.8-r1.ebuild 463 SHA256 267d70ae7d901a1c7479b314124e10edb90d465c2c9e7df2b967fd3cb4e21086 SHA512 8e0bf13a63649878088404005e95601976e0f50bf14b94d06b4122be5ea0814135778dcea642f6ddd088a89be66fc7f4d094d00ea2b769aff70bd02864a77bc0 WHIRLPOOL 608641219905076eb11cdcca3883b5ac14a13c1578282a45587d697dbc840890c66d48ad2ef1af3f2639557e917d53d2127843ef988d29b16b62d2de7f929e5a
+MISC ChangeLog 3119 SHA256 ce1282eceb1b684c6b0e9d2fb4b40e94b0aee5186d0252218219442bef0ed997 SHA512 0208a3991a037cc538ba83cf40a8535c94cbe47c495a020b5081d4eaa2d3b645c9b853ac2e12af5b3f17d8006ed3221a22a3bad8b4fec33f9190b9fcd290e0c1 WHIRLPOOL 095e8a7ad1caed561bfb5b99bcc03a958bce3de5751639ec5cafd82c6f69d0be7cec50730acdddcf974d1ebff94d0221c3dfa8918511e897c6660ecf98f2a72e
+MISC ChangeLog-2015 3310 SHA256 9c7d90c0a6f3c89bca6ff43d0be5b8c0f4350acc2e08fbf7ca9581ea6edfd854 SHA512 19de10a3a30d87b5d12374214f34ac63e83ee7d49c8367898e814736242360653ad02b343692bc19d63af99bea9ceebc2c9f75d52880f83cf288e330c31764a1 WHIRLPOOL d47198ebbe9ad6fca3f8bc4b340eac4116c9b50181ddb0b7241bf05560cc7136cc1bab393c57e593c218b58382b4dda55782a52f9fad318b54a702250dd0df6f
+MISC metadata.xml 451 SHA256 2094055e0f611938d2d336c9befc3b199493ed85a7da4866825c5acb905bd1f6 SHA512 35a3d284a2adfaa5eeafd5be63757734ef8602e1350a8c616c4e35fbef9a52dfa5fa5c9d08b9570ffe0e537e16054dceed6ba1d5f43277af40d4134a2606e2d9 WHIRLPOOL 3a003934d0dd60c43d58f941f5cb844a3cd21edb9c89ec2b817353bba204e486df1e0d3907faeadae2c010371f86420da1b538cc576c9c9df21b36ba7e8acaed
diff --git a/dev-util/appdata-tools/appdata-tools-0.1.7.ebuild b/dev-util/appdata-tools/appdata-tools-0.1.7.ebuild
new file mode 100644
index 000000000000..c05659eb0025
--- /dev/null
+++ b/dev-util/appdata-tools/appdata-tools-0.1.7.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit autotools
+
+MY_P="${PN/-/_}_${PV//./_}"
+
+DESCRIPTION="CLI designed to validate AppData descriptions for standards compliance and to the style guide"
+HOMEPAGE="https://github.com/hughsie/appdata-tools/"
+SRC_URI="https://github.com/hughsie/${PN}/archive/${MY_P}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc x86"
+IUSE="nls"
+
+RDEPEND=">=dev-libs/glib-2.14
+ >=net-libs/libsoup-2.4
+ >=x11-libs/gdk-pixbuf-2.0"
+DEPEND="${RDEPEND}
+ app-text/docbook-xml-dtd:4.3
+ dev-libs/libxslt
+ nls? ( >=dev-util/intltool-0.35.0
+ sys-devel/gettext )"
+
+S="${WORKDIR}/${PN}-${MY_P}"
+
+src_prepare() {
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_enable nls) \
+ --enable-man \
+ --disable-schemas
+}
diff --git a/dev-util/appdata-tools/appdata-tools-0.1.8-r1.ebuild b/dev-util/appdata-tools/appdata-tools-0.1.8-r1.ebuild
new file mode 100644
index 000000000000..9cfc41218f87
--- /dev/null
+++ b/dev-util/appdata-tools/appdata-tools-0.1.8-r1.ebuild
@@ -0,0 +1,16 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+DESCRIPTION="CLI designed to validate AppData descriptions for standards compliance and to the style guide"
+HOMEPAGE="https://github.com/hughsie/appdata-tools/"
+SRC_URI=""
+
+LICENSE="metapackage"
+SLOT="0"
+KEYWORDS="~alpha amd64 arm hppa ~ia64 ppc ppc64 sparc x86"
+IUSE=""
+
+# Superseeded by appstream-glib.
+RDEPEND=">=dev-libs/appstream-glib-0.3.2"
diff --git a/dev-util/appdata-tools/metadata.xml b/dev-util/appdata-tools/metadata.xml
new file mode 100644
index 000000000000..678390232d25
--- /dev/null
+++ b/dev-util/appdata-tools/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>polynomial-c@gentoo.org</email>
+ <name>Lars Wendler</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">hughsie/appdata-tools</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/appinventor/Manifest b/dev-util/appinventor/Manifest
new file mode 100644
index 000000000000..ea9c49525a37
--- /dev/null
+++ b/dev-util/appinventor/Manifest
@@ -0,0 +1,5 @@
+DIST appinventor-setup_1.1.tar.gz 85941449 SHA256 5479cf8680e77befd552c6e7c0d5b82f2ab9bb2588b362849db25433bdc26eab SHA512 fb04e6dda57e55602cc1f1a556062b7468ce9386c35710f3e84394500077c50bb7969b909cff785c100c46620794daa943c80f5feef22756a6ef8f809cf383e7 WHIRLPOOL d810ca59cfdd8e7bee033d92ca63d605c695aac1c8d55bab004b77b88d0262c2aea4dad4bad04fcee299079b754d27f36ee8074239865f4a236ef420b6bbf2b7
+EBUILD appinventor-1.1.ebuild 852 SHA256 11331346d948bc36c596efe86eccf62a79be5a2f511d7de8e475bbcd6fd2e740 SHA512 670fe6d12b830f964d33510c95b1055a166e16e935cc9066d098c66d5149bdb97bb512faabc49cc1b8a22257db13f87731875eaa09d74443c4e4f1e92513d70d WHIRLPOOL bff5933af97b886fe9a70b384f5b214d31e9f4c30dc03457d4a4bea433375a2507fb60c660368611ba92750d238a6a18f71b9f4a1010efb60d3090bf6cd34dbe
+MISC ChangeLog 2985 SHA256 720afcc9fadb6df79624dee087ff4a7606439218adcb75910be965f0bb62eadf SHA512 c6cfbbeea857f0ad1a6b738562e473e3c016d537c0ea95df71dc7daac829c92728d89c120050932c7105f1a7759c7e7641eb12d2509cf19c3bb07f4303cef778 WHIRLPOOL 4d1109e57240190d538668f7d25dba9e6c7fd33a8ba50dfb87b15b962f74c173e4e25deb76456f92092c1bc5ae21aceae6cd52860a747a212fb18368a6db3474
+MISC ChangeLog-2015 591 SHA256 754bddd235d808578f0347e55e01ae58648410e2b67534c37fddec76799369c9 SHA512 7351ed0bbfc3c467330fc8620a711e37e5e7367fa38990a8dd1a790a703b1a421a8fb0ce89d51b6342c48e6ff39380568b0831495ad9e5e5e7a979bf24f3d1fb WHIRLPOOL 5ebc2d0ddcc98fc0fa2762dee798070c10ef4b1479df1582f271723197e685bcd70cc301c30d95fe7b471e601672a440d55565f6295cb223bab5150c18cee8e8
+MISC metadata.xml 591 SHA256 16d5a928ce1974468f7b65516dede52ea34b69f852aade50c7f852a9198a019c SHA512 d45042d88ade1fac1bf51a22a29319de92e6e18fe4eb9b106639559367e3d554133923db393b720c2c3d0e532cfd4c1303a9c26ad6297afb42c2a46a66f10cc1 WHIRLPOOL 766378b8e8bae5adc59147c9c2c9a32e3ef5dd56be8443e966a29d91314f2a30f2209d986ef7bf2bb6198cd1b46c7f3428c997168e86ca8cf3b4aa80bbb93cd7
diff --git a/dev-util/appinventor/appinventor-1.1.ebuild b/dev-util/appinventor/appinventor-1.1.ebuild
new file mode 100644
index 000000000000..6e3baf91d344
--- /dev/null
+++ b/dev-util/appinventor/appinventor-1.1.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+
+MY_P="${PN}-setup_${PV}"
+DESCRIPTION="MIT App Inventor Setup package"
+HOMEPAGE="http://www.appinventor.mit.edu/"
+SRC_URI="https://dl.google.com/dl/${PN}/installers/linux/${MY_P}.tar.gz"
+
+LICENSE="android"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND=">=virtual/jre-1.6.0"
+
+APP_INSTALL_DIR="/opt/${PN}"
+S="${WORKDIR}/${MY_P}"
+QA_PREBUILT="/opt/appinventor/commands-for-Appinventor/adb
+ /opt/appinventor/commands-for-Appinventor/emulator
+ /opt/appinventor/commands-for-Appinventor/mksdcard"
+
+src_install() {
+ insinto ${APP_INSTALL_DIR}
+ dodir ${APP_INSTALL_DIR}
+ doins -r "${PN}"/extras
+ doins -r "${PN}"/from-Android-SDK
+ exeinto "${APP_INSTALL_DIR}"/commands-for-Appinventor/
+ doexe "${PN}"/commands-for-Appinventor/*
+}
diff --git a/dev-util/appinventor/metadata.xml b/dev-util/appinventor/metadata.xml
new file mode 100644
index 000000000000..4bde3e19676d
--- /dev/null
+++ b/dev-util/appinventor/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+ <email>gentoo.power@gmail.com</email>
+ <name>Iván Atienza</name>
+ <description>Maintainer. Assign bugs to him</description>
+</maintainer>
+<maintainer type="person">
+ <email>hwoarang@gentoo.org</email>
+ <name>Markos Chandras</name>
+ <description>Proxy maintainer. Assign bugs to him</description>
+</maintainer>
+<maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+</maintainer>
+</pkgmetadata>
diff --git a/dev-util/archdiff/Manifest b/dev-util/archdiff/Manifest
new file mode 100644
index 000000000000..b128719ded86
--- /dev/null
+++ b/dev-util/archdiff/Manifest
@@ -0,0 +1,5 @@
+DIST archdiff-1.1.6.tar.gz 96743 SHA256 0167280353a1bc4fb94fdbfe5faead7ca62daeaa612e532d2a9968f2e0a2a0c2 SHA512 0f924418c2aea8bc966b6967038b60d40d727037739e75fa785a4f4fa452558287cc6e2c51d93a3066994e67cbac989e96120561e460a4d543c451229f7420b2 WHIRLPOOL 2a2a8828d33be71a9967111e8c52287d6b6683cbf9ee0ee9160f79e87b8552ce809cfd97e27addef2af146f0dc0094b57fb39bcedbe15bb27ef9275aab0ef2f8
+EBUILD archdiff-1.1.6.ebuild 614 SHA256 083b68a517859397526dcba32f409c98336169453d19ea82bb8806a473dc835b SHA512 aa7108a99986fb2bc96f998eb0f077ddf8d8899b946f0fd734472505d4f6d964efacfc1dbb7ac0488351b45470e418d2a7ce3efd9476fcce724559761da6411a WHIRLPOOL 4ce92918c6ccb6ec9899172ac0d100e154ed74b79efe960ec3603b7838a82e3c3eecedddc8d49071bf02534c55be0ad6bbb4df3000305cd976bc721219cd0a61
+MISC ChangeLog 2179 SHA256 9b7368857ff2d92f79303ef63f2d6ff629fbe144aaf7f65678f19209650ffbe9 SHA512 5c5fd72651350bb5c7ee0e8d01113a4faec21d1412c306ad8d58098753fe7cc207223fb2373aa74ec1b3f8cf91dcaebb0e660834f13b61c3a2135034dc3f8006 WHIRLPOOL bb3d6c045911c3290688cf7d071e8426f326d5bcb868edc2493b8888ec7e5a7d86ffe39ad15a7e097998ed4e25f2e7c563164672deffcfbf0aefb57efb269730
+MISC ChangeLog-2015 595 SHA256 511d1dc4cbb4d174a3b7d1e4f38d5f036a9d1436aa78138fc0a6f762d0a8c10c SHA512 bf4a3c8091baaae300868a8544acbb4b588072245947d569984724e81a73a7d2444c420bf4e5c3c3c95c52db5bed2c11af7895ad95b984aee2cb9f2255e59e9a WHIRLPOOL 74096b7c54cf7d24ea445470c69beecdff45f05581f564a0fab480f9613fba5cab58ee5254cc80584497b52050cf7241d2095cf54bd7546b96e9d5717b7bf091
+MISC metadata.xml 246 SHA256 92d5540a2f0904365eafb8ce96e6320cfc14e08f22e124d721521ef77ddbf6f6 SHA512 ca07e0609b698c2b53062b71008fee49b91af78fc2ef25997311e37985d79283d333f5b842257a16e7dee36ce34c07d405e1f93742f341f10ca70904e9f9a4e6 WHIRLPOOL d15a33750d6ada278082c675223992c98cccf98af92ec04ab5b908816381ab6965714988fac87a795265973c6fb81a588a08c385ac6fb66046d14d119e0c236c
diff --git a/dev-util/archdiff/archdiff-1.1.6.ebuild b/dev-util/archdiff/archdiff-1.1.6.ebuild
new file mode 100644
index 000000000000..acc017fc655d
--- /dev/null
+++ b/dev-util/archdiff/archdiff-1.1.6.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+
+DESCRIPTION="Utility to view the differences between two source code archives"
+HOMEPAGE="https://frigidcode.com/code/archdiff/"
+SRC_URI="https://frigidcode.com/code/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+bzip2 +lzma +gzip"
+
+DEPEND="app-arch/libarchive[bzip2?,lzma?]
+ gzip? ( app-arch/libarchive[zlib] )
+ dev-libs/rremove"
+RDEPEND="${DEPEND}
+ app-misc/colordiff"
+
+src_configure() {
+ econf \
+ $(use_enable bzip2) \
+ $(use_enable gzip) \
+ $(use_enable lzma)
+}
diff --git a/dev-util/archdiff/metadata.xml b/dev-util/archdiff/metadata.xml
new file mode 100644
index 000000000000..78e64a5cf1ad
--- /dev/null
+++ b/dev-util/archdiff/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>radhermit@gentoo.org</email>
+ <name>Tim Harder</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-util/argouml/Manifest b/dev-util/argouml/Manifest
new file mode 100644
index 000000000000..5375e852a268
--- /dev/null
+++ b/dev-util/argouml/Manifest
@@ -0,0 +1,8 @@
+DIST ArgoUML-0.34.tar.gz 16504818 SHA256 818fdbbbaf48f70f3a7386cd4dab5313cdba3293b3d8df49a3045911a5372dc3 SHA512 111d5ff588fe895274b02f5d5a8385455bf3130918a371f3e549c0a7d41c8bd1d109c976b2039ceae26847fac29689aa4339e35916352be633d1fe1a277d79e5 WHIRLPOOL 1b207c330e2d81c5f6e8e4c00a5c10ce78418c6ffc379b68e95c6f6114d394a936a4f1f16e768f776744f677310cb3a3b9a5cbdfebf3970c89dbeaaae3c822fa
+DIST dbuml-module-1.0.4.zip 6231786 SHA256 47b3b26c5eeb884ffcc88d9a56f327a0e746b1851fa53d2ca66845bf5536d0d9 SHA512 a281a8bb8b8422cfceaf704e6b26a0c8b7c8ee393756ebee86ede8a8681b0ba9f8f5b5e568899e6e7b55fba20edba74f9e7a532f647dbf1549f582b3226028b6 WHIRLPOOL a1a4c7027f1f131948b099c374b37c263b80e54e442c8795818a3ed94d3f1d2dcdff29a9ec2e448385ca5ba10bdc1a5594c279a3f400fe794e099430163452c6
+DIST manual-0.34.pdf 3405949 SHA256 13c91e8b7802fe3a4d4462b9608f06755981549865a710dccc2372021b270c49 SHA512 1dfaf66485beb82d309a58f3868f7c150575d99d652dbef261991429df85073ffce0cf8d73f44f4f9c13299be3cd11f92826da695901846c7b8dc6561b0090d8 WHIRLPOOL edeee1ea860629ceb8b13552672f56113d0293eab8dcfa4c819b42786e2d672f03b97a8553b127a0679ac00a7839b0ed9e043f003d632a71162aa7695f40af09
+DIST quickguide-0.34.pdf 58334 SHA256 6972651140234aad7c1c93948f1d788b1c0a64dc09d8a5342d712904d181e458 SHA512 0bcdeaa643d400e17b12d92c78eddb33a202220ccb26e5a9933528faa0e8d3fccde432a1fba2103b28bec59d3df75e1176ed2918308533f7e490fbdb5d60a82d WHIRLPOOL 73c660703e021f58f0ce3be9cdb8edfd4819337e02465c3d0d9632b1e28ada05a1ac39b9379437729275a20f46a2d14a1c41177688c635e5bd16c7ccc4061035
+EBUILD argouml-0.34.ebuild 1343 SHA256 e35bdbc3df1ab02e97bf0ad08d29c9a0b6754e91250c3d1b65c70dfdef2c4384 SHA512 7f137da9b9975dcb229446c859c359cebf4b0575e6442da2f92103fa4a195454d8ae3da6f31877409f14f2ae33b401c87d541dd3a0710c46467e61405f78cd93 WHIRLPOOL 055032efe5a5b5f3744fd4f12bd4f5531c0a75f2588c0169b6f628cb3b799626d620e58cfd785177516224c6edb661a7e2a52e549d49a76ed2a1ecd80a71e8af
+MISC ChangeLog 2562 SHA256 81346d7c47fb472e963d9ac6362f59a15479601150bff0d9a14a084ed9d99ba6 SHA512 1fd281a3ef5b98119bc8fc54f2a67ecc14172c63e9e2c9153d4e3b64d8f311995950f70edcd806f284472397930d4f5eaecadf38ec75896b079cb0dc3a6e34ce WHIRLPOOL 3b72d4b452337a88ef78e22b2170a7bcaf0bd8f04d6f781bb8177446b89b5f4065c9971a78484ccbef1d4eafbc1be6adbcfbced7d699ccd2cea06bce187ba17b
+MISC ChangeLog-2015 5135 SHA256 a4f577dd60a043ad27af8a6def6de8f53ccbe77744c35d11c1a4f906d24a2785 SHA512 d3d48644dbb1649ff4dfd4cb07c05093a47569576547fe833a79791be15c46fb0c36f07d22ec063f09b94626868ab5ce6028af201697cb4a6e4fcd492d79d854 WHIRLPOOL b2273469622f614cfe37f7e44a264bfa84ee0abb627feb78182a5b661736367d555240d15a025fe7f23e37d8721299d6d68d25a0d8387450a82277040299d901
+MISC metadata.xml 232 SHA256 0c8d91b3d514ac42d0eaca567346ab909c0f947049c85c25a380ec2400f1b3fb SHA512 00beaf2c81112ff757c4395f4ea47e85f2d48e369e241f10ddf200090dd6513d52ae2b1aef6d28b7417f1cf34608a7258a167eb307d5670323a2190f3710f893 WHIRLPOOL 3a1a6d054edc9177d85ca868f9b0a6e84ee51bab4fbdbb9b1ead1a03874036bcc3f96e903fb751dc4d29fdb7d6b5f3d8dbe7b042fc697c887e23f41cc9c8c4ac
diff --git a/dev-util/argouml/argouml-0.34.ebuild b/dev-util/argouml/argouml-0.34.ebuild
new file mode 100644
index 000000000000..96dd77d1ac14
--- /dev/null
+++ b/dev-util/argouml/argouml-0.34.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="3"
+
+inherit eutils fdo-mime java-pkg-2
+
+DESCRIPTION="Modelling tool that helps you do your design using UML"
+HOMEPAGE="http://argouml.tigris.org"
+BASE_URI="http://argouml-downloads.tigris.org/nonav/${P}"
+SRC_URI="${BASE_URI}/ArgoUML-${PV}.tar.gz
+ http://argouml-downloads.tigris.org/nonav/argouml-db-1.0/dbuml-module-1.0.4.zip
+ doc? (
+ ${BASE_URI}/manual-${PV}.pdf
+ ${BASE_URI}/quickguide-${PV}.pdf
+ )"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
+IUSE="doc"
+
+DEPEND="app-arch/unzip"
+RDEPEND=">=virtual/jre-1.6"
+
+S="${WORKDIR}"
+
+src_compile() { :; }
+
+src_install() {
+ java-pkg_jarinto /opt/${PN}/lib
+ java-pkg_dojar ${P}/*.jar
+
+ java-pkg_jarinto /opt/${PN}/lib/ext
+ java-pkg_dojar ${P}/ext/*.jar release/ext/*.jar
+
+ java-pkg_dolauncher ${PN} --main org.argouml.application.Main
+
+ dodoc ${P}/README.txt || die
+
+ if use doc ; then
+ dohtml -r release/{Readme.htm,www}
+ insinto /usr/share/doc/${P}
+ doins "${DISTDIR}/manual-${PV}.pdf"
+ doins "${DISTDIR}/quickguide-${PV}.pdf"
+ fi
+
+ newicon ${P}/icon/ArgoIcon128x128.png ${PN}.png || die
+ make_desktop_entry ${PN} "ArgoUML"
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+}
diff --git a/dev-util/argouml/metadata.xml b/dev-util/argouml/metadata.xml
new file mode 100644
index 000000000000..2444066aa02b
--- /dev/null
+++ b/dev-util/argouml/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="project">
+ <email>java@gentoo.org</email>
+ <name>Java</name>
+</maintainer>
+</pkgmetadata>
diff --git a/dev-util/artifactory-bin/Manifest b/dev-util/artifactory-bin/Manifest
new file mode 100644
index 000000000000..6405d43f7e10
--- /dev/null
+++ b/dev-util/artifactory-bin/Manifest
@@ -0,0 +1,17 @@
+AUX artifactory.xml 244 SHA256 b6e6c192e48177ff3eee2cc967c69d9094b5a741091cacb2276b60f909af70c1 SHA512 582ba26a9b36a99266ebc35cf6ccad3e58c17c5b6e6a9168732a24842c67478fde72197b7592275e11cc3836ea1ed337785d90b8f3e6181e5f7fc1c102a45f55 WHIRLPOOL e1b0ac7cbf9f4b8d984b294f09b7ccc56d8b6586f401f57d79e05e385fd3886fe161f39fc35af94b47e34cb2cd934255b87da53a06f6439be57983772b5b5900
+AUX confd 252 SHA256 93fa422a8ee9ca826ce7954f8bd07fe636e25e5b10bab201005706203648eedd SHA512 ae3c7e47ae34ce163799ffa57ec4b8a479eecc36a6c3620f30e351ddf8dea3e55d04a6ef459ed7ccefae6b0d39af8ebcf73cac3eea5f7d9355b9a1de7715b1e7 WHIRLPOOL 69a27f137990c17d1bcafaed80eadad780a332c298ca6cd09ca26ba4e724e86f2011c326980c83b12c82ad39725cac62a3ae5b68a2434f98805c3f973cfee1d3
+AUX initd-r2 5371 SHA256 c6763cf77f9c81ea29008e1239c9e3c5c0b1261494309666203dcb0a4779de18 SHA512 c19994a2918cb317a074898b7de294193a8aae1b5ec37d407bd5b60971c40d7c808ead5376c6d48219f41b15b72b2dca85959db677e81052d224a73bfb39cbfb WHIRLPOOL c4c86259515806e8c98b37ece3ee93eac443df651fcc755308d6bd73c51039e13100e1c2cfd878abf0be84939c5c74e8aef2eaa8caf769f1fc480617003ccf03
+AUX initd-r3 5373 SHA256 a8de87ab66a07293b42d00c7b1ea143c5dee4c7a98d01d6ce446a1c1f91d63b3 SHA512 89ef20e27296318cf844130c09e17b16f63c27b3188e53400f8b1dcf170d0d6acfb5a56592eb8580b8fa1281c2fcaa7f2edc4cde43803eaf20ce345030ce3f98 WHIRLPOOL 9863ec7e68006bbfaec2fd851fff57eeb76135f98fd15dde1c2df2c76c3fd131bc592a1e387f683664e74205c18cb0816d5e5668a4ad8e74f0a3f024131b98df
+AUX server.xml 516 SHA256 65a06a1da172019e3b9bcbee2ddebd48ea3f7dcfd09900143064bf6007cbf005 SHA512 2c16207cccf29a3733e9759b0eb20d62184de6f91feb8f49037501e62f77ca09aefcd7a95a1544441318ac6a3577a3c366fc12d490726268233658581a64b91c WHIRLPOOL c21cfcc0943babb43d501caa89d8a646fcfffa74482f88cc4f0399d5120b82bfcb8b16a2949b517c3ee1376de62d8e6a44849a811a8da6e6cce47dfa10834770
+DIST artifactory-4.16.0.zip 41455447 SHA256 f5711536cdf0a597799e01c570bbd38e6f5f3ffb6935cde21d38119be6592f16 SHA512 e861b66ed7586ba881267312462584fd9037e2b72021e930a52489ae718ca2449c7997278cb26cb3dead774f16d74cf285c8ce2fca0c085e7edb444f71deaa14 WHIRLPOOL 01a60743fe85909d06f69ef4bda94a2cfb37e847ee481ee025075c0b586df11118566f7f99352a7808147eec51fc1bacb649853baa97a90253ab89d3b92279a5
+DIST artifactory-4.16.1.zip 41489457 SHA256 f3715397f7e792de76cfecfe2b41ebbf54541e0460ff14e82a69160e0f3f06fb SHA512 b8f5441f011966837861073c928512704961c7683fadac4603f2177df1c64861432f894c5fe0669c4842a4b7d008553169e88aaffdde6e3d6e6bbdff6adf9d78 WHIRLPOOL dc7dfc0044d3770fcfc1dc56da6ffe8bc8fb07892a2888d88f5a05640ac8144cb25afc2119340d820323046bbaa0aa718a98cda6863340297e3ced696ed3e3f7
+DIST artifactory-5.3.2.zip 45729254 SHA256 e086a067ad191859cd0a0c996313cf5c7386e6ee892b55697c27b0f42ae2bc14 SHA512 60fbbed97c9915ed4a7627a3b893fa6c5bcec695932415d3102b9788ba6182c8cef937ad48639d4398a682ab2f517771c3dcda9306842e4202bbd45ab4768f1d WHIRLPOOL bf3b31f7a1989ddb90b03396172eeac37dc5230c4bbcc99b54c66326e5d52e26dbb83003824647c6e89926049c31b9644212aee183fa24db7475831dda0ceaec
+DIST artifactory-5.4.4.zip 76841935 SHA256 bf2198a0fefe818fe412579dd008f2a24dc065780da4c9657a923363c70a0a3d SHA512 f949e4c2ecaaf4581bc2e96058403684cab09f10b0bec512eda9b65bb41577a792b08d05f7a16e0e7f1614567dc9b0d1d59bb3c6ad6a4dafeb0c054a3add09a8 WHIRLPOOL c0c27a0ce5b0035d9266b6af4316044cf1aed361dbe0f7aaf66844015a70678e92bb0c6a13330ffd8f5a05903f66a82b48995605c272ba3950a19aa47d1fc85d
+DIST artifactory-5.4.6.zip 76857888 SHA256 43fb4b14ad5350daa200e0282a36903495505ccb536b5f0ac7d7b5487dcdfca6 SHA512 08d7895dc823e61be83026d31eea387eb914f17cb2f13b03d5314c6473f30de9279d230d242d8160dba0d3c8f6981b25b5ad46f52ad12d1c39ee820ac7a676fe WHIRLPOOL dcc86f1326011bb89c3e65a420c9f9ad02afea3a144b4b5eac8b617bec7dbb72256a6ac1f67d2bae034897bd02801b24e59746d1543e957d8e595d7ea83a4964
+EBUILD artifactory-bin-4.16.0-r1.ebuild 3336 SHA256 7a1409e38513d16ad42333dcc05be4ca3a7788fc86c876601fd7926fae559af5 SHA512 f7297b2590d5329f851a9783cc066001b76734b8b7e6dc51d79d773d8d167e6d574a5c6ee8e2b4db9b53b4977df909eff796537fba815dd45752223e71b08852 WHIRLPOOL 0942fc42029836b02e2a0048b0c22ba54798696084b421fc45e47a00c48a2b3286dda04783d2809e779f220570827b1d3d78a1e4fb76eb357af3e7066b669770
+EBUILD artifactory-bin-4.16.1.ebuild 3336 SHA256 7a1409e38513d16ad42333dcc05be4ca3a7788fc86c876601fd7926fae559af5 SHA512 f7297b2590d5329f851a9783cc066001b76734b8b7e6dc51d79d773d8d167e6d574a5c6ee8e2b4db9b53b4977df909eff796537fba815dd45752223e71b08852 WHIRLPOOL 0942fc42029836b02e2a0048b0c22ba54798696084b421fc45e47a00c48a2b3286dda04783d2809e779f220570827b1d3d78a1e4fb76eb357af3e7066b669770
+EBUILD artifactory-bin-5.3.2.ebuild 3336 SHA256 f6c54e6480cb47a7ba4e95ec9c38ebc4af75328980302cd55ce38ae5f726819d SHA512 663fa63a3a27c9ef480677732f413a789c8db9fed1942a3dd129295666868293f1df01682ad6734fd530a7c8ea24fa29834d07fb0f1b15c40f9ce2be6adbc961 WHIRLPOOL ebcca19550c71c7b5264e31d04e46a5bd3ba0f2f1f343e297c7460eb62261ccee331875f1ac249d32a56deec2d9e86139793b4e10b660505015e651cae0442b1
+EBUILD artifactory-bin-5.4.4.ebuild 3336 SHA256 f6c54e6480cb47a7ba4e95ec9c38ebc4af75328980302cd55ce38ae5f726819d SHA512 663fa63a3a27c9ef480677732f413a789c8db9fed1942a3dd129295666868293f1df01682ad6734fd530a7c8ea24fa29834d07fb0f1b15c40f9ce2be6adbc961 WHIRLPOOL ebcca19550c71c7b5264e31d04e46a5bd3ba0f2f1f343e297c7460eb62261ccee331875f1ac249d32a56deec2d9e86139793b4e10b660505015e651cae0442b1
+EBUILD artifactory-bin-5.4.6.ebuild 3336 SHA256 f6c54e6480cb47a7ba4e95ec9c38ebc4af75328980302cd55ce38ae5f726819d SHA512 663fa63a3a27c9ef480677732f413a789c8db9fed1942a3dd129295666868293f1df01682ad6734fd530a7c8ea24fa29834d07fb0f1b15c40f9ce2be6adbc961 WHIRLPOOL ebcca19550c71c7b5264e31d04e46a5bd3ba0f2f1f343e297c7460eb62261ccee331875f1ac249d32a56deec2d9e86139793b4e10b660505015e651cae0442b1
+MISC ChangeLog 4764 SHA256 9a326637b49316fc0f5fd75439f9da89ea2c8f3df2ffb9d05942f339ef8a59dc SHA512 cabc49e593241ac844c41d9ccfb3911b5e2a49a49dc2ee65a488f6c803164fcfbead244e8e5d2dd2085364f8f9fc89ce94bf2bd7a0611082ad2ffedf63098ce0 WHIRLPOOL ebfdbef69fe7a7670a2505a7d7f0d8ae79327552055726fc91ad6fd6ba580b2bd9564a96f3b56ac75b3841113bc30dca45f2781e4a02d4bb5b7267ab9e545ebf
+MISC metadata.xml 368 SHA256 f1527df453967a1e7a353a0dfc4f0fb1c1003d7dfa2c93a72f8337e79797d91c SHA512 889ab0f86261be62dc4988fc99c8526212c7936b3fbb8a078d644046047f653108b3120cef9cc65bce00a1c267227e58dae0cb1eb7d86ac1f4966408fa783beb WHIRLPOOL 38beba1f4815189a40225bcb1b0b7023547eac872439fc627588eed8982589872a37bc674d2ff07671746036457ea094d6fb750f5cf88b7ce507988203e43523
diff --git a/dev-util/artifactory-bin/artifactory-bin-4.16.0-r1.ebuild b/dev-util/artifactory-bin/artifactory-bin-4.16.0-r1.ebuild
new file mode 100644
index 000000000000..cb6e42f39ffa
--- /dev/null
+++ b/dev-util/artifactory-bin/artifactory-bin-4.16.0-r1.ebuild
@@ -0,0 +1,110 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Using a binary ebuild until a source ebuild is doable.
+# This was previously blocked by two major bugs upstream:
+# A lack of documented build instructions - https://www.jfrog.com/jira/browse/RTFACT-8960
+# A lack of source releases - https://www.jfrog.com/jira/browse/RTFACT-8961
+# Upstream now releases source and instructions (yay!), but most of artifactory's
+# dependencies are not in portage yet.
+
+EAPI=6
+
+inherit user
+
+MY_P="${P/-bin}"
+MY_PN="${PN/-bin}"
+MY_PV="${PV/-bin}"
+
+DESCRIPTION="The world's most advanced repository manager for maven"
+HOMEPAGE="http://www.jfrog.org/products.php"
+SRC_URI="https://bintray.com/artifact/download/jfrog/artifactory/jfrog-artifactory-oss-${MY_PV}.zip -> ${MY_P}.zip"
+
+LICENSE="AGPL-3+"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE="ssl"
+
+RDEPEND=">=virtual/jre-1.8"
+DEPEND=">=virtual/jdk-1.8
+ app-arch/unzip"
+
+S="${WORKDIR}/${MY_PN}-oss-${MY_PV}"
+
+pkg_setup() {
+ enewgroup artifactory
+ enewuser artifactory -1 /bin/sh -1 artifactory
+}
+
+limitsdfile=40-${MY_PN}.conf
+
+print_limitsdfile() {
+ printf "# Start of ${limitsdfile} from ${P}\n\n"
+ printf "@${MY_PN}\t-\tnofile\t32000\n"
+ printf "\n# End of ${limitsdfile} from ${P}\n"
+}
+
+src_prepare() {
+ default
+
+ if use ssl ; then
+ cp "${FILESDIR}/artifactory.xml" tomcat/conf/Catalina/localhost/artifactory.xml || die
+ cp "${FILESDIR}/server.xml" tomcat/conf/server.xml || die
+ fi
+
+ # Reverse https://www.jfrog.com/jira/browse/RTFACT-7123
+ sed -i -e "s%artifactory.repo.global.disabled=true%artifactory.repo.global.disabled=false%g;" \
+ etc/artifactory.system.properties || die
+
+ # See FIXME in src_install(), this can probably go away,
+ # but catalina.sh may need to be fixed for that:
+ sed -i -e "s%/etc/opt/jfrog/artifactory/default%/etc/conf.d/${MY_PN}%g;" \
+ misc/service/setenv.sh || die
+
+ einfo "Generating ${limitsdfile}"
+ print_limitsdfile > "${S}/${limitsdfile}"
+}
+
+src_install() {
+ local ARTIFACTORY_HOME="/opt/artifactory"
+ local TOMCAT_HOME="${ARTIFACTORY_HOME}/tomcat"
+
+ insinto ${ARTIFACTORY_HOME}
+ doins -r etc logs misc tomcat webapps
+
+ dodir /etc/opt/jfrog
+ dosym ${ARTIFACTORY_HOME}/etc /etc/opt/jfrog/artifactory
+
+ dosym ${ARTIFACTORY_HOME}/logs /var/log/artifactory
+
+ exeinto ${ARTIFACTORY_HOME}/bin
+ doexe bin/*
+
+ # FIXME: this is called by catalina.sh (it echoes the variables before starting
+ # artifactory, as well as makes sure log dir, etc. exists). Those directories
+ # could probably be moved to the ebuild and the script removed from catalina.sh
+ # without consequence (and quieter starts). Would need to check if CATALINA_*
+ # variables are actually used anywhere (from reading code don't appear to be
+ # actually needed)
+ exeinto ${TOMCAT_HOME}/bin
+ doexe misc/service/setenv.sh
+ doexe tomcat/bin/*
+
+ keepdir ${ARTIFACTORY_HOME}/backup
+ keepdir ${ARTIFACTORY_HOME}/data
+ keepdir ${ARTIFACTORY_HOME}/run
+ keepdir ${ARTIFACTORY_HOME}/work
+ keepdir ${TOMCAT_HOME}/logs/catalina
+ keepdir ${TOMCAT_HOME}/temp
+ keepdir ${TOMCAT_HOME}/work
+ keepdir /var/opt/jfrog/artifactory/run
+
+ newconfd "${FILESDIR}/confd" ${MY_PN}
+ newinitd "${FILESDIR}/initd-r2" ${MY_PN}
+
+ fowners -R artifactory:artifactory ${ARTIFACTORY_HOME}
+ fperms -R u+w ${TOMCAT_HOME}/work
+
+ insinto /etc/security/limits.d
+ doins "${S}/${limitsdfile}"
+}
diff --git a/dev-util/artifactory-bin/artifactory-bin-4.16.1.ebuild b/dev-util/artifactory-bin/artifactory-bin-4.16.1.ebuild
new file mode 100644
index 000000000000..cb6e42f39ffa
--- /dev/null
+++ b/dev-util/artifactory-bin/artifactory-bin-4.16.1.ebuild
@@ -0,0 +1,110 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Using a binary ebuild until a source ebuild is doable.
+# This was previously blocked by two major bugs upstream:
+# A lack of documented build instructions - https://www.jfrog.com/jira/browse/RTFACT-8960
+# A lack of source releases - https://www.jfrog.com/jira/browse/RTFACT-8961
+# Upstream now releases source and instructions (yay!), but most of artifactory's
+# dependencies are not in portage yet.
+
+EAPI=6
+
+inherit user
+
+MY_P="${P/-bin}"
+MY_PN="${PN/-bin}"
+MY_PV="${PV/-bin}"
+
+DESCRIPTION="The world's most advanced repository manager for maven"
+HOMEPAGE="http://www.jfrog.org/products.php"
+SRC_URI="https://bintray.com/artifact/download/jfrog/artifactory/jfrog-artifactory-oss-${MY_PV}.zip -> ${MY_P}.zip"
+
+LICENSE="AGPL-3+"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE="ssl"
+
+RDEPEND=">=virtual/jre-1.8"
+DEPEND=">=virtual/jdk-1.8
+ app-arch/unzip"
+
+S="${WORKDIR}/${MY_PN}-oss-${MY_PV}"
+
+pkg_setup() {
+ enewgroup artifactory
+ enewuser artifactory -1 /bin/sh -1 artifactory
+}
+
+limitsdfile=40-${MY_PN}.conf
+
+print_limitsdfile() {
+ printf "# Start of ${limitsdfile} from ${P}\n\n"
+ printf "@${MY_PN}\t-\tnofile\t32000\n"
+ printf "\n# End of ${limitsdfile} from ${P}\n"
+}
+
+src_prepare() {
+ default
+
+ if use ssl ; then
+ cp "${FILESDIR}/artifactory.xml" tomcat/conf/Catalina/localhost/artifactory.xml || die
+ cp "${FILESDIR}/server.xml" tomcat/conf/server.xml || die
+ fi
+
+ # Reverse https://www.jfrog.com/jira/browse/RTFACT-7123
+ sed -i -e "s%artifactory.repo.global.disabled=true%artifactory.repo.global.disabled=false%g;" \
+ etc/artifactory.system.properties || die
+
+ # See FIXME in src_install(), this can probably go away,
+ # but catalina.sh may need to be fixed for that:
+ sed -i -e "s%/etc/opt/jfrog/artifactory/default%/etc/conf.d/${MY_PN}%g;" \
+ misc/service/setenv.sh || die
+
+ einfo "Generating ${limitsdfile}"
+ print_limitsdfile > "${S}/${limitsdfile}"
+}
+
+src_install() {
+ local ARTIFACTORY_HOME="/opt/artifactory"
+ local TOMCAT_HOME="${ARTIFACTORY_HOME}/tomcat"
+
+ insinto ${ARTIFACTORY_HOME}
+ doins -r etc logs misc tomcat webapps
+
+ dodir /etc/opt/jfrog
+ dosym ${ARTIFACTORY_HOME}/etc /etc/opt/jfrog/artifactory
+
+ dosym ${ARTIFACTORY_HOME}/logs /var/log/artifactory
+
+ exeinto ${ARTIFACTORY_HOME}/bin
+ doexe bin/*
+
+ # FIXME: this is called by catalina.sh (it echoes the variables before starting
+ # artifactory, as well as makes sure log dir, etc. exists). Those directories
+ # could probably be moved to the ebuild and the script removed from catalina.sh
+ # without consequence (and quieter starts). Would need to check if CATALINA_*
+ # variables are actually used anywhere (from reading code don't appear to be
+ # actually needed)
+ exeinto ${TOMCAT_HOME}/bin
+ doexe misc/service/setenv.sh
+ doexe tomcat/bin/*
+
+ keepdir ${ARTIFACTORY_HOME}/backup
+ keepdir ${ARTIFACTORY_HOME}/data
+ keepdir ${ARTIFACTORY_HOME}/run
+ keepdir ${ARTIFACTORY_HOME}/work
+ keepdir ${TOMCAT_HOME}/logs/catalina
+ keepdir ${TOMCAT_HOME}/temp
+ keepdir ${TOMCAT_HOME}/work
+ keepdir /var/opt/jfrog/artifactory/run
+
+ newconfd "${FILESDIR}/confd" ${MY_PN}
+ newinitd "${FILESDIR}/initd-r2" ${MY_PN}
+
+ fowners -R artifactory:artifactory ${ARTIFACTORY_HOME}
+ fperms -R u+w ${TOMCAT_HOME}/work
+
+ insinto /etc/security/limits.d
+ doins "${S}/${limitsdfile}"
+}
diff --git a/dev-util/artifactory-bin/artifactory-bin-5.3.2.ebuild b/dev-util/artifactory-bin/artifactory-bin-5.3.2.ebuild
new file mode 100644
index 000000000000..242019ded03b
--- /dev/null
+++ b/dev-util/artifactory-bin/artifactory-bin-5.3.2.ebuild
@@ -0,0 +1,110 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Using a binary ebuild until a source ebuild is doable.
+# This was previously blocked by two major bugs upstream:
+# A lack of documented build instructions - https://www.jfrog.com/jira/browse/RTFACT-8960
+# A lack of source releases - https://www.jfrog.com/jira/browse/RTFACT-8961
+# Upstream now releases source and instructions (yay!), but most of artifactory's
+# dependencies are not in portage yet.
+
+EAPI=6
+
+inherit user
+
+MY_P="${P/-bin}"
+MY_PN="${PN/-bin}"
+MY_PV="${PV/-bin}"
+
+DESCRIPTION="The world's most advanced repository manager for maven"
+HOMEPAGE="http://www.jfrog.org/products.php"
+SRC_URI="https://bintray.com/artifact/download/jfrog/artifactory/jfrog-artifactory-oss-${MY_PV}.zip -> ${MY_P}.zip"
+
+LICENSE="AGPL-3+"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE="ssl"
+
+RDEPEND=">=virtual/jre-1.8"
+DEPEND=">=virtual/jdk-1.8
+ app-arch/unzip"
+
+S="${WORKDIR}/${MY_PN}-oss-${MY_PV}"
+
+pkg_setup() {
+ enewgroup artifactory
+ enewuser artifactory -1 /bin/sh -1 artifactory
+}
+
+limitsdfile=40-${MY_PN}.conf
+
+print_limitsdfile() {
+ printf "# Start of ${limitsdfile} from ${P}\n\n"
+ printf "@${MY_PN}\t-\tnofile\t32000\n"
+ printf "\n# End of ${limitsdfile} from ${P}\n"
+}
+
+src_prepare() {
+ default
+
+ if use ssl ; then
+ cp "${FILESDIR}/artifactory.xml" tomcat/conf/Catalina/localhost/artifactory.xml || die
+ cp "${FILESDIR}/server.xml" tomcat/conf/server.xml || die
+ fi
+
+ # Reverse https://www.jfrog.com/jira/browse/RTFACT-7123
+ sed -i -e "s%artifactory.repo.global.disabled=true%artifactory.repo.global.disabled=false%g;" \
+ etc/artifactory.system.properties || die
+
+ # See FIXME in src_install(), this can probably go away,
+ # but catalina.sh may need to be fixed for that:
+ sed -i -e "s%/etc/opt/jfrog/artifactory/default%/etc/conf.d/${MY_PN}%g;" \
+ misc/service/setenv.sh || die
+
+ einfo "Generating ${limitsdfile}"
+ print_limitsdfile > "${S}/${limitsdfile}"
+}
+
+src_install() {
+ local ARTIFACTORY_HOME="/opt/artifactory"
+ local TOMCAT_HOME="${ARTIFACTORY_HOME}/tomcat"
+
+ insinto ${ARTIFACTORY_HOME}
+ doins -r etc logs misc tomcat webapps
+
+ dodir /etc/opt/jfrog
+ dosym ${ARTIFACTORY_HOME}/etc /etc/opt/jfrog/artifactory
+
+ dosym ${ARTIFACTORY_HOME}/logs /var/log/artifactory
+
+ exeinto ${ARTIFACTORY_HOME}/bin
+ doexe bin/*
+
+ # FIXME: this is called by catalina.sh (it echoes the variables before starting
+ # artifactory, as well as makes sure log dir, etc. exists). Those directories
+ # could probably be moved to the ebuild and the script removed from catalina.sh
+ # without consequence (and quieter starts). Would need to check if CATALINA_*
+ # variables are actually used anywhere (from reading code don't appear to be
+ # actually needed)
+ exeinto ${TOMCAT_HOME}/bin
+ doexe misc/service/setenv.sh
+ doexe tomcat/bin/*
+
+ keepdir ${ARTIFACTORY_HOME}/backup
+ keepdir ${ARTIFACTORY_HOME}/data
+ keepdir ${ARTIFACTORY_HOME}/run
+ keepdir ${ARTIFACTORY_HOME}/work
+ keepdir ${TOMCAT_HOME}/logs/catalina
+ keepdir ${TOMCAT_HOME}/temp
+ keepdir ${TOMCAT_HOME}/work
+ keepdir /var/opt/jfrog/artifactory/run
+
+ newconfd "${FILESDIR}/confd" ${MY_PN}
+ newinitd "${FILESDIR}/initd-r3" ${MY_PN}
+
+ fowners -R artifactory:artifactory ${ARTIFACTORY_HOME}
+ fperms -R u+w ${TOMCAT_HOME}/work
+
+ insinto /etc/security/limits.d
+ doins "${S}/${limitsdfile}"
+}
diff --git a/dev-util/artifactory-bin/artifactory-bin-5.4.4.ebuild b/dev-util/artifactory-bin/artifactory-bin-5.4.4.ebuild
new file mode 100644
index 000000000000..242019ded03b
--- /dev/null
+++ b/dev-util/artifactory-bin/artifactory-bin-5.4.4.ebuild
@@ -0,0 +1,110 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Using a binary ebuild until a source ebuild is doable.
+# This was previously blocked by two major bugs upstream:
+# A lack of documented build instructions - https://www.jfrog.com/jira/browse/RTFACT-8960
+# A lack of source releases - https://www.jfrog.com/jira/browse/RTFACT-8961
+# Upstream now releases source and instructions (yay!), but most of artifactory's
+# dependencies are not in portage yet.
+
+EAPI=6
+
+inherit user
+
+MY_P="${P/-bin}"
+MY_PN="${PN/-bin}"
+MY_PV="${PV/-bin}"
+
+DESCRIPTION="The world's most advanced repository manager for maven"
+HOMEPAGE="http://www.jfrog.org/products.php"
+SRC_URI="https://bintray.com/artifact/download/jfrog/artifactory/jfrog-artifactory-oss-${MY_PV}.zip -> ${MY_P}.zip"
+
+LICENSE="AGPL-3+"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE="ssl"
+
+RDEPEND=">=virtual/jre-1.8"
+DEPEND=">=virtual/jdk-1.8
+ app-arch/unzip"
+
+S="${WORKDIR}/${MY_PN}-oss-${MY_PV}"
+
+pkg_setup() {
+ enewgroup artifactory
+ enewuser artifactory -1 /bin/sh -1 artifactory
+}
+
+limitsdfile=40-${MY_PN}.conf
+
+print_limitsdfile() {
+ printf "# Start of ${limitsdfile} from ${P}\n\n"
+ printf "@${MY_PN}\t-\tnofile\t32000\n"
+ printf "\n# End of ${limitsdfile} from ${P}\n"
+}
+
+src_prepare() {
+ default
+
+ if use ssl ; then
+ cp "${FILESDIR}/artifactory.xml" tomcat/conf/Catalina/localhost/artifactory.xml || die
+ cp "${FILESDIR}/server.xml" tomcat/conf/server.xml || die
+ fi
+
+ # Reverse https://www.jfrog.com/jira/browse/RTFACT-7123
+ sed -i -e "s%artifactory.repo.global.disabled=true%artifactory.repo.global.disabled=false%g;" \
+ etc/artifactory.system.properties || die
+
+ # See FIXME in src_install(), this can probably go away,
+ # but catalina.sh may need to be fixed for that:
+ sed -i -e "s%/etc/opt/jfrog/artifactory/default%/etc/conf.d/${MY_PN}%g;" \
+ misc/service/setenv.sh || die
+
+ einfo "Generating ${limitsdfile}"
+ print_limitsdfile > "${S}/${limitsdfile}"
+}
+
+src_install() {
+ local ARTIFACTORY_HOME="/opt/artifactory"
+ local TOMCAT_HOME="${ARTIFACTORY_HOME}/tomcat"
+
+ insinto ${ARTIFACTORY_HOME}
+ doins -r etc logs misc tomcat webapps
+
+ dodir /etc/opt/jfrog
+ dosym ${ARTIFACTORY_HOME}/etc /etc/opt/jfrog/artifactory
+
+ dosym ${ARTIFACTORY_HOME}/logs /var/log/artifactory
+
+ exeinto ${ARTIFACTORY_HOME}/bin
+ doexe bin/*
+
+ # FIXME: this is called by catalina.sh (it echoes the variables before starting
+ # artifactory, as well as makes sure log dir, etc. exists). Those directories
+ # could probably be moved to the ebuild and the script removed from catalina.sh
+ # without consequence (and quieter starts). Would need to check if CATALINA_*
+ # variables are actually used anywhere (from reading code don't appear to be
+ # actually needed)
+ exeinto ${TOMCAT_HOME}/bin
+ doexe misc/service/setenv.sh
+ doexe tomcat/bin/*
+
+ keepdir ${ARTIFACTORY_HOME}/backup
+ keepdir ${ARTIFACTORY_HOME}/data
+ keepdir ${ARTIFACTORY_HOME}/run
+ keepdir ${ARTIFACTORY_HOME}/work
+ keepdir ${TOMCAT_HOME}/logs/catalina
+ keepdir ${TOMCAT_HOME}/temp
+ keepdir ${TOMCAT_HOME}/work
+ keepdir /var/opt/jfrog/artifactory/run
+
+ newconfd "${FILESDIR}/confd" ${MY_PN}
+ newinitd "${FILESDIR}/initd-r3" ${MY_PN}
+
+ fowners -R artifactory:artifactory ${ARTIFACTORY_HOME}
+ fperms -R u+w ${TOMCAT_HOME}/work
+
+ insinto /etc/security/limits.d
+ doins "${S}/${limitsdfile}"
+}
diff --git a/dev-util/artifactory-bin/artifactory-bin-5.4.6.ebuild b/dev-util/artifactory-bin/artifactory-bin-5.4.6.ebuild
new file mode 100644
index 000000000000..242019ded03b
--- /dev/null
+++ b/dev-util/artifactory-bin/artifactory-bin-5.4.6.ebuild
@@ -0,0 +1,110 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# Using a binary ebuild until a source ebuild is doable.
+# This was previously blocked by two major bugs upstream:
+# A lack of documented build instructions - https://www.jfrog.com/jira/browse/RTFACT-8960
+# A lack of source releases - https://www.jfrog.com/jira/browse/RTFACT-8961
+# Upstream now releases source and instructions (yay!), but most of artifactory's
+# dependencies are not in portage yet.
+
+EAPI=6
+
+inherit user
+
+MY_P="${P/-bin}"
+MY_PN="${PN/-bin}"
+MY_PV="${PV/-bin}"
+
+DESCRIPTION="The world's most advanced repository manager for maven"
+HOMEPAGE="http://www.jfrog.org/products.php"
+SRC_URI="https://bintray.com/artifact/download/jfrog/artifactory/jfrog-artifactory-oss-${MY_PV}.zip -> ${MY_P}.zip"
+
+LICENSE="AGPL-3+"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE="ssl"
+
+RDEPEND=">=virtual/jre-1.8"
+DEPEND=">=virtual/jdk-1.8
+ app-arch/unzip"
+
+S="${WORKDIR}/${MY_PN}-oss-${MY_PV}"
+
+pkg_setup() {
+ enewgroup artifactory
+ enewuser artifactory -1 /bin/sh -1 artifactory
+}
+
+limitsdfile=40-${MY_PN}.conf
+
+print_limitsdfile() {
+ printf "# Start of ${limitsdfile} from ${P}\n\n"
+ printf "@${MY_PN}\t-\tnofile\t32000\n"
+ printf "\n# End of ${limitsdfile} from ${P}\n"
+}
+
+src_prepare() {
+ default
+
+ if use ssl ; then
+ cp "${FILESDIR}/artifactory.xml" tomcat/conf/Catalina/localhost/artifactory.xml || die
+ cp "${FILESDIR}/server.xml" tomcat/conf/server.xml || die
+ fi
+
+ # Reverse https://www.jfrog.com/jira/browse/RTFACT-7123
+ sed -i -e "s%artifactory.repo.global.disabled=true%artifactory.repo.global.disabled=false%g;" \
+ etc/artifactory.system.properties || die
+
+ # See FIXME in src_install(), this can probably go away,
+ # but catalina.sh may need to be fixed for that:
+ sed -i -e "s%/etc/opt/jfrog/artifactory/default%/etc/conf.d/${MY_PN}%g;" \
+ misc/service/setenv.sh || die
+
+ einfo "Generating ${limitsdfile}"
+ print_limitsdfile > "${S}/${limitsdfile}"
+}
+
+src_install() {
+ local ARTIFACTORY_HOME="/opt/artifactory"
+ local TOMCAT_HOME="${ARTIFACTORY_HOME}/tomcat"
+
+ insinto ${ARTIFACTORY_HOME}
+ doins -r etc logs misc tomcat webapps
+
+ dodir /etc/opt/jfrog
+ dosym ${ARTIFACTORY_HOME}/etc /etc/opt/jfrog/artifactory
+
+ dosym ${ARTIFACTORY_HOME}/logs /var/log/artifactory
+
+ exeinto ${ARTIFACTORY_HOME}/bin
+ doexe bin/*
+
+ # FIXME: this is called by catalina.sh (it echoes the variables before starting
+ # artifactory, as well as makes sure log dir, etc. exists). Those directories
+ # could probably be moved to the ebuild and the script removed from catalina.sh
+ # without consequence (and quieter starts). Would need to check if CATALINA_*
+ # variables are actually used anywhere (from reading code don't appear to be
+ # actually needed)
+ exeinto ${TOMCAT_HOME}/bin
+ doexe misc/service/setenv.sh
+ doexe tomcat/bin/*
+
+ keepdir ${ARTIFACTORY_HOME}/backup
+ keepdir ${ARTIFACTORY_HOME}/data
+ keepdir ${ARTIFACTORY_HOME}/run
+ keepdir ${ARTIFACTORY_HOME}/work
+ keepdir ${TOMCAT_HOME}/logs/catalina
+ keepdir ${TOMCAT_HOME}/temp
+ keepdir ${TOMCAT_HOME}/work
+ keepdir /var/opt/jfrog/artifactory/run
+
+ newconfd "${FILESDIR}/confd" ${MY_PN}
+ newinitd "${FILESDIR}/initd-r3" ${MY_PN}
+
+ fowners -R artifactory:artifactory ${ARTIFACTORY_HOME}
+ fperms -R u+w ${TOMCAT_HOME}/work
+
+ insinto /etc/security/limits.d
+ doins "${S}/${limitsdfile}"
+}
diff --git a/dev-util/artifactory-bin/files/artifactory.xml b/dev-util/artifactory-bin/files/artifactory.xml
new file mode 100644
index 000000000000..19042bcb97a0
--- /dev/null
+++ b/dev-util/artifactory-bin/files/artifactory.xml
@@ -0,0 +1,4 @@
+<Context path="/artifactory" docBase="${artifactory.home}/webapps/artifactory.war" processTlds="false">
+ <Manager pathname="" />
+ <Valve className="org.apache.catalina.valves.RemoteIpValve" protocolHeader="x-forwarded-proto"/>
+</Context>
diff --git a/dev-util/artifactory-bin/files/confd b/dev-util/artifactory-bin/files/confd
new file mode 100644
index 000000000000..fd7e6e22582c
--- /dev/null
+++ b/dev-util/artifactory-bin/files/confd
@@ -0,0 +1,5 @@
+ARTIFACTORY_HOME=/opt/artifactory
+ARTIFACTORY_PID=$ARTIFACTORY_HOME/run/artifactory.pid
+ARTIFACTORY_USER=artifactory
+JAVA_OPTIONS="-server -Xms2g -Xmx8g -Xss256k -XX:PermSize=128m -XX:MaxPermSize=256m -XX:+UseG1GC"
+TOMCAT_HOME=$ARTIFACTORY_HOME/tomcat
diff --git a/dev-util/artifactory-bin/files/initd-r2 b/dev-util/artifactory-bin/files/initd-r2
new file mode 100644
index 000000000000..c9fbb05bd834
--- /dev/null
+++ b/dev-util/artifactory-bin/files/initd-r2
@@ -0,0 +1,165 @@
+#!/sbin/openrc-run
+
+description="Manages the services needed to run Artifactory on a dedicated Tomcat"
+command="/opt/artifactory/tomcat/bin/catalina.sh"
+pidfile="/opt/artifactory/run/artifactory.pid"
+procname="artifactory"
+user=${ARTIFACTORY_USER:-artifactory}
+group=${group:-artifactory}
+
+# Artifactory can be very slow to start, and without locking,
+# restarting via runscript is very error prone
+CATALINA_LOCK_FILE="$(dirname $pidfile)/lock"
+
+CATALINA_MGMT_PORT=8015
+REQUIRED_JAVA_VERSION="1.8"
+START_TIMEOUT=300
+
+# Helper functions:
+is_mgmt_port_used() {
+ mgmt_port_used=$(netstat -vatn | grep LISTEN | grep $CATALINA_MGMT_PORT | wc -l)
+}
+
+get_pid_info() {
+ pidValue=""
+ javaPs=""
+ if [ -e "$pidfile" ]; then
+ pidValue=$(cat $pidfile)
+ if [ -n "$pidValue" ]; then
+ javaPs="$(ps -p $pidValue | grep java)"
+ fi
+ fi
+}
+
+depend() {
+ need net nginx
+ use dns logger netmount
+}
+
+start_pre() {
+ if [ -z "$ARTIFACTORY_HOME" ] || [ ! -d "$ARTIFACTORY_HOME" ]; then
+ eerror "Artifactory home folder not defined or does not exists at $ARTIFACTORY_HOME"
+ return 1
+ fi
+
+ if [ -z "$pidfile" ]; then
+ eerror "Artifactory pid destination pidfile was not set!"
+ return 1
+ fi
+
+ if [ -z "$TOMCAT_HOME" ] || [ ! -d "$TOMCAT_HOME" ]; then
+ eerror "Tomcat Artifactory folder not defined or does not exists at $TOMCAT_HOME"
+ return 1
+ fi
+
+ if [ -z "$ARTIFACTORY_USER" ]; then
+ ARTIFACTORY_USER=$user
+ fi
+
+ current_open_file_limit=$(su -l $ARTIFACTORY_USER -c "ulimit -n")
+ desired_open_file_limit=32000
+ if [ "$current_open_file_limit" != "unlimited" ] && [ $current_open_file_limit -lt $desired_open_file_limit ]; then
+ eerror "Maximum number of open files ($current_open_file_limit) is too small!"
+ eerror "You should add:"
+ eerror "artifactory soft nofile $desired_open_file_limit"
+ eerror "artifactory hard nofile $desired_open_file_limit"
+ eerror "to your /etc/security/limits.conf file."
+ return 1
+ fi
+
+ current_max_process_limit=$(su -l $ARTIFACTORY_USER -c "ulimit -u")
+ desired_max_process_limit=1024
+ if [ "$current_max_process_limit" != "unlimited" ] && [ $current_max_process_limit -lt $desired_max_process_limit ]; then
+ eerror "Number of processes $current_max_process_limit is too small!"
+ eerror "You should add:"
+ eerror "artifactory soft nproc $desired_max_process_limit"
+ eerror "artifactory hard nproc $desired_max_process_limit"
+ eerror "to your /etc/security/limits.conf file."
+ return 1
+ fi
+
+ if [ -n "$JAVA_HOME" ] && [ -x "$JAVA_HOME/bin/java" ]; then
+ einfo "Found java executable in $JAVA_HOME"
+ _java="$JAVA_HOME/bin/java"
+ elif command -v java > dev/null 2>&1 ; then
+ _java=java
+ else
+ eerror "No Java Runtime Environment (jre) found! At least java-$REQUIRED_JAVA_VERSION is required."
+ return 1
+ fi
+ if [ "$_java" ]; then
+ java_version=$($_java -version 2>&1 | grep 'version' | cut -d ' ' -f3 | tr -d \")
+ java_major=$(echo $java_version | cut -d . -f1-2)
+ if [ "$java_major" != "$REQUIRED_JAVA_VERSION" ] ; then
+ eerror "Java version $java_version is too old, java-$REQUIRED_JAVA_VERSION is required."
+ return 1
+ fi
+ fi
+}
+
+# We have to pass start/stop through to catalina.sh, which doesn't understand restart (and restart can't be overridden in OpenRC):
+start() {
+ get_pid_info
+ is_mgmt_port_used
+ if [ $mgmt_port_used -ne 0 ] || [ -n "$javaPs" ]; then
+ eerror "$RC_SERVICE already started!"
+ return 1
+ else
+ ebegin "Starting $RC_SERVICE"
+ start-stop-daemon --exec $command --pidfile $pidfile --user $user:$group --wait $START_TIMEOUT start
+ RETVAL=$?
+ eend $RETVAL "start-stop-daemon failed to start $RC_SERVICE"
+ fi
+
+
+ is_mgmt_port_used
+ seconds=1
+ while [ $mgmt_port_used -eq 0 ] && [ $seconds -lt $START_TIMEOUT ]; do
+ sleep 1
+ ((seconds=seconds+1))
+ is_mgmt_port_used
+ done
+ if [ $mgmt_port_used -eq 0 ]; then
+ eerror "$RC_SERVICE did not start in $START_TIMEOUT seconds!"
+ return 1
+ elif [ $mgmt_port_used -eq 1 ]; then
+ einfo "$RC_SERVICE started"
+ [ $RETVAL=0 ] && touch $CATALINA_LOCK_FILE
+ else
+ eerror "Got unexpected result when checking port $CATALINA_MGMT_PORT"
+ return 1
+ fi
+ return $RETVAL
+}
+
+stop() {
+ ebegin "Stopping $RC_SERVICE"
+ start-stop-daemon --stop --pidfile $pidfile --wait $START_TIMEOUT stop
+ RETVAL=$?
+ eend $RETVAL "Failed to stop $RC_SERVICE!"
+
+ [ $RETVAL=0 ] && rm -f "$CATALINA_LOCK_FILE" "$pidfile"
+ return $RETVAL
+}
+
+status() {
+ is_mgmt_port_used
+ if [ $mgmt_port_used -eq 0 ]; then
+ if [ -e "$pidfile" ]; then
+ eerror "$RC_SERVICE stopped but the pid file $pidfile still exists!"
+ RETVAL=1
+ else
+ if [ -e "$CATALINA_LOCK_FILE" ]; then
+ eerror "$RC_SERVICE is stopped but the lock file $CATALINA_LOCK_FILE still exists!"
+ RETVAL=2
+ else
+ eerror "$RC_SERVICE is stopped"
+ RETVAL=3
+ fi
+ fi
+ else
+ einfo "$RC_SERVICE is running"
+ RETVAL=0
+ fi
+ return $RETVAL
+}
diff --git a/dev-util/artifactory-bin/files/initd-r3 b/dev-util/artifactory-bin/files/initd-r3
new file mode 100644
index 000000000000..5a9a6e214efb
--- /dev/null
+++ b/dev-util/artifactory-bin/files/initd-r3
@@ -0,0 +1,165 @@
+#!/sbin/openrc-run
+
+description="Manages the services needed to run Artifactory on a dedicated Tomcat"
+command="/opt/artifactory/tomcat/bin/catalina.sh"
+pidfile="/opt/artifactory/run/artifactory.pid"
+procname="artifactory"
+user=${ARTIFACTORY_USER:-artifactory}
+group=${group:-artifactory}
+
+# Artifactory can be very slow to start, and without locking,
+# restarting via runscript is very error prone
+CATALINA_LOCK_FILE="$(dirname $pidfile)/lock"
+
+CATALINA_MGMT_PORT=8015
+REQUIRED_JAVA_VERSION="1.8"
+START_TIMEOUT=300
+
+# Helper functions:
+is_mgmt_port_used() {
+ mgmt_port_used=$(netstat -vatn | grep LISTEN | grep $CATALINA_MGMT_PORT | wc -l)
+}
+
+get_pid_info() {
+ pidValue=""
+ javaPs=""
+ if [ -e "$pidfile" ]; then
+ pidValue=$(cat $pidfile)
+ if [ -n "$pidValue" ]; then
+ javaPs="$(ps -p $pidValue | grep java)"
+ fi
+ fi
+}
+
+depend() {
+ need net nginx
+ use dns logger netmount
+}
+
+start_pre() {
+ if [ -z "$ARTIFACTORY_HOME" ] || [ ! -d "$ARTIFACTORY_HOME" ]; then
+ eerror "Artifactory home folder not defined or does not exists at $ARTIFACTORY_HOME"
+ return 1
+ fi
+
+ if [ -z "$pidfile" ]; then
+ eerror "Artifactory pid destination pidfile was not set!"
+ return 1
+ fi
+
+ if [ -z "$TOMCAT_HOME" ] || [ ! -d "$TOMCAT_HOME" ]; then
+ eerror "Tomcat Artifactory folder not defined or does not exists at $TOMCAT_HOME"
+ return 1
+ fi
+
+ if [ -z "$ARTIFACTORY_USER" ]; then
+ ARTIFACTORY_USER=$user
+ fi
+
+ current_open_file_limit=$(su -l $ARTIFACTORY_USER -c "ulimit -n")
+ desired_open_file_limit=32000
+ if [ "$current_open_file_limit" != "unlimited" ] && [ $current_open_file_limit -lt $desired_open_file_limit ]; then
+ eerror "Maximum number of open files ($current_open_file_limit) is too small!"
+ eerror "You should add:"
+ eerror "artifactory soft nofile $desired_open_file_limit"
+ eerror "artifactory hard nofile $desired_open_file_limit"
+ eerror "to your /etc/security/limits.conf file."
+ return 1
+ fi
+
+ current_max_process_limit=$(su -l $ARTIFACTORY_USER -c "ulimit -u")
+ desired_max_process_limit=1024
+ if [ "$current_max_process_limit" != "unlimited" ] && [ $current_max_process_limit -lt $desired_max_process_limit ]; then
+ eerror "Number of processes $current_max_process_limit is too small!"
+ eerror "You should add:"
+ eerror "artifactory soft nproc $desired_max_process_limit"
+ eerror "artifactory hard nproc $desired_max_process_limit"
+ eerror "to your /etc/security/limits.conf file."
+ return 1
+ fi
+
+ if [ -n "$JAVA_HOME" ] && [ -x "$JAVA_HOME/bin/java" ]; then
+ einfo "Found java executable in $JAVA_HOME"
+ _java="$JAVA_HOME/bin/java"
+ elif command -v java > dev/null 2>&1 ; then
+ _java=java
+ else
+ eerror "No Java Runtime Environment (jre) found! At least java-$REQUIRED_JAVA_VERSION is required."
+ return 1
+ fi
+ if [ "$_java" ]; then
+ java_version=$($_java -version 2>&1 | grep 'version' | cut -d ' ' -f3 | tr -d \")
+ java_major=$(echo $java_version | cut -d . -f1-2)
+ if [ "$java_major" != "$REQUIRED_JAVA_VERSION" ] ; then
+ eerror "Java version $java_version is too old, java-$REQUIRED_JAVA_VERSION is required."
+ return 1
+ fi
+ fi
+}
+
+# We have to pass start/stop through to catalina.sh, which doesn't understand restart (and restart can't be overridden in OpenRC):
+start() {
+ get_pid_info
+ is_mgmt_port_used
+ if [ $mgmt_port_used -ne 0 ] || [ -n "$javaPs" ]; then
+ eerror "$RC_SERVICE already started!"
+ return 1
+ else
+ ebegin "Starting $RC_SERVICE"
+ start-stop-daemon --exec $command --pidfile $pidfile --user $user:$group --wait $START_TIMEOUT start
+ RETVAL=$?
+ eend $RETVAL "start-stop-daemon failed to start $RC_SERVICE"
+ fi
+
+
+ is_mgmt_port_used
+ seconds=1
+ while [ $mgmt_port_used -eq 0 ] && [ $seconds -lt $START_TIMEOUT ]; do
+ sleep 1
+ seconds=$((seconds+1))
+ is_mgmt_port_used
+ done
+ if [ $mgmt_port_used -eq 0 ]; then
+ eerror "$RC_SERVICE did not start in $START_TIMEOUT seconds!"
+ return 1
+ elif [ $mgmt_port_used -eq 1 ]; then
+ einfo "$RC_SERVICE started"
+ [ $RETVAL=0 ] && touch $CATALINA_LOCK_FILE
+ else
+ eerror "Got unexpected result when checking port $CATALINA_MGMT_PORT"
+ return 1
+ fi
+ return $RETVAL
+}
+
+stop() {
+ ebegin "Stopping $RC_SERVICE"
+ start-stop-daemon --stop --pidfile $pidfile --retry $START_TIMEOUT stop
+ RETVAL=$?
+ eend $RETVAL "Failed to stop $RC_SERVICE!"
+
+ [ $RETVAL=0 ] && rm -f "$CATALINA_LOCK_FILE" "$pidfile"
+ return $RETVAL
+}
+
+status() {
+ is_mgmt_port_used
+ if [ $mgmt_port_used -eq 0 ]; then
+ if [ -e "$pidfile" ]; then
+ eerror "$RC_SERVICE stopped but the pid file $pidfile still exists!"
+ RETVAL=1
+ else
+ if [ -e "$CATALINA_LOCK_FILE" ]; then
+ eerror "$RC_SERVICE is stopped but the lock file $CATALINA_LOCK_FILE still exists!"
+ RETVAL=2
+ else
+ eerror "$RC_SERVICE is stopped"
+ RETVAL=3
+ fi
+ fi
+ else
+ einfo "$RC_SERVICE is running"
+ RETVAL=0
+ fi
+ return $RETVAL
+}
diff --git a/dev-util/artifactory-bin/files/server.xml b/dev-util/artifactory-bin/files/server.xml
new file mode 100644
index 000000000000..ba87175ff549
--- /dev/null
+++ b/dev-util/artifactory-bin/files/server.xml
@@ -0,0 +1,17 @@
+<Server port="8015" shutdown="SHUTDOWN">
+
+ <Service name="Catalina">
+ <Connector port="8081" protocol="HTTP/1.1"
+ maxThreads="500" minSpareThreads="20"
+ enableLookups="false" disableUploadTimeout="true"
+ backlog="100"/>
+ <!-- This is the optional AJP connector -->
+ <Connector port="8019" protocol="AJP/1.3"/>
+
+ <Engine name="Catalina" defaultHost="localhost">
+ <Host name="localhost" appBase="webapps"/>
+ </Engine>
+
+ </Service>
+</Server>
+
diff --git a/dev-util/artifactory-bin/metadata.xml b/dev-util/artifactory-bin/metadata.xml
new file mode 100644
index 000000000000..b9b43a436113
--- /dev/null
+++ b/dev-util/artifactory-bin/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>wizardedit@gentoo.org</email>
+ <name>Austin English</name>
+ </maintainer>
+ <longdescription>
+ Respository manager for Maven (among other binary package formats).
+ </longdescription>
+</pkgmetadata>
diff --git a/dev-util/aruba/Manifest b/dev-util/aruba/Manifest
new file mode 100644
index 000000000000..a8b0d36be922
--- /dev/null
+++ b/dev-util/aruba/Manifest
@@ -0,0 +1,12 @@
+DIST aruba-0.5.4.gem 69632 SHA256 6f1c2210195ac94cf48e06de574e6f3897ec5ff7a7ca71cd10425b2cc889b0dc SHA512 e783aedccd4be6915621cc1f0d8b61f8a2895204ff9e483fdbd4b34b6f32eaccc973938a5e507c5346f50f9f9166fc7b7a885700aa13c6c7b00ffdf0eed78720 WHIRLPOOL 843e7cd5a0a70d15030bad868bbd1de94b25d96961865338c2596777ec87935bc0d3e4835259cb7b3e4843f4b0b5162cc11c44677ed966a927cae60eeb90c33b
+DIST aruba-0.6.2.gem 75776 SHA256 7c518ca72da37dc966c6a2f589d9953ab7576a43332b7bac38949d06f5009842 SHA512 ad859aa34f6e6778d9eb92b7e8f298180250e0690b21285e48b85dda88c09c74437ed0dff4e07ea8a02e8c784841ef89504219aa844457273349b8072ebc761e WHIRLPOOL cf85f65672946776f4de3f6b0b060c99adfa376353c3f11a0e27d2a32f7e400c58d863c0e574b415a19c52386294dfff01a7591c133772f45211700ea19f83ac
+DIST aruba-0.7.4.gem 91648 SHA256 64726a908f9355c1fdc15f26e4f657bc0c43aa034f86f3ce141c51f501e516b3 SHA512 f36f50b629a039c894b5a5e7e21dd37db2dacd0947c7288e254666110baa81975e1f2c0372fc20b915cdc6906715bbc10e0b078d3321c9d7c875da4b097de118 WHIRLPOOL 2512507ee530d767b3ee6bfd7fd0de289c9289da69fd1c940f16817b8458b7a8c532e235c9605ec0a00ee0aab591181bfa37ee3ba93900b3fe6cab16a4a3f135
+DIST aruba-0.8.1.gem 121344 SHA256 110440880e0f572f44805765bc22ea20e5f822fede3628be9de3f55c7d0af3f3 SHA512 9d65778828ac1915c56862acb1db0faf6214b102eb892317b390f451aab55750067519fb6cf6e08c55f58b865eaaa78921402d745addf2d3b0038527eb5d898f WHIRLPOOL 70b2ad1033b374e3ef61a7fe0b795d2bdf961b7d3d0a24e2a052fdd70755eaba37b3dfa1ff8e42a49fac1c715aca2859facb9c97d42d1a01fa425138c5255a58
+EBUILD aruba-0.5.4-r1.ebuild 977 SHA256 0fc78e9f54f6eec1843398a8a54c3a3dfa825b7b48571dd4014408a080252f49 SHA512 24de1e675facfe1b8540a7a4479db18dde516052add73b9e02afb26d2f086ee93279640695924636f676ccbee4086b6e96b04d1015120fdca58b5aff027dbd3b WHIRLPOOL c5ef6c40e0907dc24112cc5a75630bff441bfb0fd4a71ff1bfd75dfb027214c321b36d0be33b7eb75bbfac9914c10a1d41f500eea26184b8edc48ae48ab975f6
+EBUILD aruba-0.6.2-r1.ebuild 979 SHA256 172b7c42c936a9c367a6370fe728785dad49db4d83016aec9df417bdce3c5887 SHA512 a50bb58ff396ec51ca349d985bb89bbdd887cf75f642acf29a8a51b8d4a876b191b1169c105bc22a22fd1fed4a4de154235602ad0a87d38873da393e32a210a3 WHIRLPOOL 7397002fa5cf5e3da17679e47d5603c45bd761040bee58977e8a3eff81aa9b8848c2d3e842ab1ab18657b560c938cc13095826a2cb416bd9faf066375afb81ca
+EBUILD aruba-0.6.2.ebuild 992 SHA256 0c38f1f0e59292073e23d086490d8212b99e55948bc230e1bb68498f93d9ff30 SHA512 859b7b7a1da19ad4687c8362a4fbc0964063f1d5b2fae8b209604add856e974e3b8c6f17627d98a2307c79bf526876223cf2f90f984ea7983352922d0c3529a5 WHIRLPOOL b1800ae83c053f941cb4ad8729209c3bd0a09fc16923ceba845b77772651fe9b8426860371809161788f2e0066f8f1f898131c611f7a02f1639c5be625ba03e7
+EBUILD aruba-0.7.4.ebuild 1305 SHA256 3929e1e36bd43df87f9887dd9dc4e5234cfbcdbd3f5a5e8e68eee5dcd79fe6f5 SHA512 a3922e5b3550e7b93582b5fea463f68a0064a9e4e2e56950d9f52720a019f663e0163c8acea68ea5fbe0c48ef615e1124cda8c566affce80e122fc7551f9f694 WHIRLPOOL 99c0da2ef9083a194b45cb18e463d3359a9498c50021e6cd7d8699a48ade395f2b64bce0e1afb9d31784d099bbf2cd579bce6bda7dd7e40fed86722644374a2b
+EBUILD aruba-0.8.1.ebuild 1659 SHA256 758a53890be2890fb9a30a5a20f0c51d75bd20958d03967249ae55e6f4bebc02 SHA512 457e86c23cee35f46f5ce106c974a9e7c35624fbc2ec4992b303c255a7c6fdd27a329f50fec96a5e2eff9ff5cc10dc018af50221d45f54ba4c5aff4a38ad5911 WHIRLPOOL f406eb19e048b3e9aac4568aa1750612e2d7151c111abcc4b9c144275fd03a4057b202161414fa28d68c0330587f5623943a9e4fdce2984d269301db49fffa5c
+MISC ChangeLog 3396 SHA256 62b32ac29d74ba48c8f9d06aa161f2154384d5306c63f49e263b8249e778741a SHA512 178aae766cf596bdbddac6422b44c05c21a24ca427d300d7777c1a2a1db40180e525c15aa22f1c884caeab8d952da589136adf104a2fbb3cd4459e593591f021 WHIRLPOOL 8d677801de7a7dca2bc4c50737aaeb158c7e209e919ae43657f39556f68a4c23b7a2f4f6ba055414970bd9d21903c9dfe680fd569326f8d6d6b7f7d6506306a5
+MISC ChangeLog-2015 7970 SHA256 6d8afe5b7f8320cab7d1a2c1a9023d49a6dc53bee6cf770a862a71d7c680d47d SHA512 7bf30c782614603c31ac7a47c22b13e77e5b22dbd5d08776e0be390fbef6ff68e3b03552bec7adb3a3d297ae791a77e895ebeaae58053d8f2e4ab5e0cea5236b WHIRLPOOL b3f4d73747e808131aade4a98b362b6b7c7703eac5ff4e221ad96ac5f3038fbc7b393d397f963a9cf60c3598c25703a8ae93f669cab2ec204c9616dff9be5c17
+MISC metadata.xml 296 SHA256 eafd7fe04d4fc355731653875f331a5f6b4edbda76b95dd975cd38eddd125542 SHA512 6add4a1a905857c1d96e347089fa8f47643f990a153f6457c4d424978bcf76b89607c89f60d3e312365525b1d0dbd17db62b4baf48ee3da9a0f2ab77435d68b4 WHIRLPOOL 92dc0445e9ccac340eb7df44864040b238f39d3b8def19480cdf1aa282919bb551891707a6d62b8712c402f84cca5ccb68f141aca26e45d1717fb747d8f36748
diff --git a/dev-util/aruba/aruba-0.5.4-r1.ebuild b/dev-util/aruba/aruba-0.5.4-r1.ebuild
new file mode 100644
index 000000000000..ddea35379014
--- /dev/null
+++ b/dev-util/aruba/aruba-0.5.4-r1.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+USE_RUBY="ruby21 ruby22"
+
+RUBY_FAKEGEM_TASK_DOC=""
+RUBY_FAKEGEM_RECIPE_TEST="cucumber"
+RUBY_FAKEGEM_EXTRADOC="History.md README.md"
+
+RUBY_FAKEGEM_GEMSPEC="aruba.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Cucumber steps for driving out command line applications"
+HOMEPAGE="https://github.com/cucumber/aruba"
+LICENSE="MIT"
+
+KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 ~sparc x86"
+SLOT="0"
+IUSE=""
+
+DEPEND="${DEPEND} test? ( sys-devel/bc )"
+RDEPEND="${RDEPEND}"
+
+ruby_add_rdepend "
+ >=dev-ruby/childprocess-0.3.6
+ >=dev-ruby/rspec-expectations-2.7:2
+ >=dev-util/cucumber-1.1.1"
+
+ruby_add_bdepend "test? ( >=dev-ruby/rspec-2.11:2 >=dev-ruby/bcat-0.6.1 )"
+
+all_ruby_prepare() {
+ # Remove bundler-related code.
+ sed -i -e '/[Bb]undler/d' Rakefile || die
+ rm Gemfile || die
+
+ # Remove references to git ls-files.
+ sed -i -e '/git ls-files/d' aruba.gemspec || die
+}
diff --git a/dev-util/aruba/aruba-0.6.2-r1.ebuild b/dev-util/aruba/aruba-0.6.2-r1.ebuild
new file mode 100644
index 000000000000..fa919000334a
--- /dev/null
+++ b/dev-util/aruba/aruba-0.6.2-r1.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+USE_RUBY="ruby22 ruby23 ruby24"
+
+RUBY_FAKEGEM_TASK_DOC=""
+RUBY_FAKEGEM_RECIPE_TEST="cucumber"
+RUBY_FAKEGEM_EXTRADOC="History.md README.md"
+
+RUBY_FAKEGEM_GEMSPEC="aruba.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Cucumber steps for driving out command line applications"
+HOMEPAGE="https://github.com/cucumber/aruba"
+LICENSE="MIT"
+
+KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~x86"
+SLOT="0"
+IUSE=""
+
+DEPEND="${DEPEND} test? ( sys-devel/bc )"
+RDEPEND="${RDEPEND}"
+
+ruby_add_rdepend "
+ >=dev-ruby/childprocess-0.3.6
+ >=dev-ruby/rspec-expectations-2.7:2
+ >=dev-util/cucumber-1.1.1"
+
+ruby_add_bdepend "test? ( >=dev-ruby/rspec-2.11:2 >=dev-ruby/bcat-0.6.1 )"
+
+all_ruby_prepare() {
+ # Remove bundler-related code.
+ sed -i -e '/[Bb]undler/d' Rakefile || die
+ rm Gemfile || die
+
+ # Remove references to git ls-files.
+ sed -i -e '/git ls-files/d' aruba.gemspec || die
+}
diff --git a/dev-util/aruba/aruba-0.6.2.ebuild b/dev-util/aruba/aruba-0.6.2.ebuild
new file mode 100644
index 000000000000..bfd66f5dc73e
--- /dev/null
+++ b/dev-util/aruba/aruba-0.6.2.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+USE_RUBY="ruby20 ruby21 ruby22"
+
+RUBY_FAKEGEM_TASK_DOC=""
+RUBY_FAKEGEM_RECIPE_TEST="cucumber"
+RUBY_FAKEGEM_EXTRADOC="History.md README.md"
+
+RUBY_FAKEGEM_GEMSPEC="aruba.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Cucumber steps for driving out command line applications"
+HOMEPAGE="https://github.com/cucumber/aruba"
+LICENSE="MIT"
+
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+SLOT="0"
+IUSE=""
+
+DEPEND="${DEPEND} test? ( sys-devel/bc )"
+RDEPEND="${RDEPEND}"
+
+ruby_add_rdepend "
+ >=dev-ruby/childprocess-0.3.6
+ >=dev-ruby/rspec-expectations-2.7:2
+ >=dev-util/cucumber-1.1.1"
+
+ruby_add_bdepend "test? ( >=dev-ruby/rspec-2.11:2 >=dev-ruby/bcat-0.6.1 )"
+
+all_ruby_prepare() {
+ # Remove bundler-related code.
+ sed -i -e '/[Bb]undler/d' Rakefile || die
+ rm Gemfile || die
+
+ # Remove references to git ls-files.
+ sed -i -e '/git ls-files/d' aruba.gemspec || die
+}
diff --git a/dev-util/aruba/aruba-0.7.4.ebuild b/dev-util/aruba/aruba-0.7.4.ebuild
new file mode 100644
index 000000000000..db894883c98a
--- /dev/null
+++ b/dev-util/aruba/aruba-0.7.4.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+USE_RUBY="ruby20 ruby21 ruby22"
+
+RUBY_FAKEGEM_TASK_DOC=""
+RUBY_FAKEGEM_RECIPE_TEST="cucumber"
+RUBY_FAKEGEM_EXTRADOC="History.md README.md"
+
+RUBY_FAKEGEM_GEMSPEC="aruba.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Cucumber steps for driving out command line applications"
+HOMEPAGE="https://github.com/cucumber/aruba"
+LICENSE="MIT"
+
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+SLOT="0"
+IUSE=""
+
+DEPEND="${DEPEND} test? ( sys-devel/bc )"
+RDEPEND="${RDEPEND}"
+
+ruby_add_rdepend "
+ >=dev-ruby/childprocess-0.3.6
+ >=dev-ruby/rspec-expectations-2.7:2
+ >=dev-util/cucumber-1.1.1"
+
+ruby_add_bdepend "test? ( dev-ruby/rspec:3 >=dev-ruby/bcat-0.6.1 )"
+
+all_ruby_prepare() {
+ # Remove bundler-related code.
+ sed -i -e '/[Bb]undler/d' Rakefile spec/spec_helper.rb || die
+ rm Gemfile || die
+
+ sed -i -e '/simplecov/I s:^:#:' \
+ -e '/Before/,/^end/ s:^:#:' \
+ spec/spec_helper.rb features/support/env.rb || die
+ rm -f features/support/simplecov_setup.rb || die
+ sed -i -e '1i require "time"' spec/spec_helper.rb || die
+
+ # Remove references to git ls-files.
+ sed -i -e '/git ls-files/d' aruba.gemspec || die
+}
+
+each_ruby_test() {
+ RSPEC_VERSION=3 ruby-ng_rspec
+ ruby-ng_cucumber
+}
diff --git a/dev-util/aruba/aruba-0.8.1.ebuild b/dev-util/aruba/aruba-0.8.1.ebuild
new file mode 100644
index 000000000000..de515fb11f5a
--- /dev/null
+++ b/dev-util/aruba/aruba-0.8.1.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+USE_RUBY="ruby21 ruby22"
+
+RUBY_FAKEGEM_TASK_DOC=""
+RUBY_FAKEGEM_RECIPE_TEST="cucumber"
+RUBY_FAKEGEM_EXTRADOC="History.md README.md"
+
+RUBY_FAKEGEM_GEMSPEC="aruba.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Cucumber steps for driving out command line applications"
+HOMEPAGE="https://github.com/cucumber/aruba"
+LICENSE="MIT"
+
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~x86"
+SLOT="0"
+IUSE=""
+
+DEPEND="${DEPEND} test? ( sys-devel/bc )"
+RDEPEND="${RDEPEND}"
+
+ruby_add_rdepend "
+ >=dev-ruby/childprocess-0.5.6 =dev-ruby/childprocess-0*
+ >=dev-ruby/contracts-0.9:0
+ >=dev-ruby/rspec-expectations-2.99:2
+ >=dev-util/cucumber-1.3.19"
+
+ruby_add_bdepend "test? ( dev-ruby/rspec:3 >=dev-ruby/bcat-0.6.2 )"
+
+all_ruby_prepare() {
+ # Remove bundler-related code.
+ sed -i -e '/[Bb]undler/d' Rakefile spec/spec_helper.rb || die
+ rm Gemfile || die
+
+ sed -i -e '/simplecov/I s:^:#:' \
+ -e '/Before/,/^end/ s:^:#:' \
+ spec/spec_helper.rb features/support/env.rb || die
+ rm -f features/support/simplecov_setup.rb || die
+ sed -i -e '1i require "time"' spec/spec_helper.rb || die
+
+ # Remove references to git ls-files and fix childprocess dependency
+ sed -i -e '/git ls-files/d' \
+ -e '/childprocess/ s/0.5.6/0.5/' \
+ aruba.gemspec || die
+
+ # Avoid scenarios making broken assumptions on ${HOME}
+ sed -i -e '/Scenario: Use ~ in path/i @wip' \
+ features/api/core/expand_path.feature || die
+ rm -f features/configuration/home_directory.feature || die
+}
+
+each_ruby_test() {
+ RSPEC_VERSION=3 ruby-ng_rspec
+ RUBYLIB="$(pwd)/lib" ruby-ng_cucumber
+}
diff --git a/dev-util/aruba/metadata.xml b/dev-util/aruba/metadata.xml
new file mode 100644
index 000000000000..3b124787be6d
--- /dev/null
+++ b/dev-util/aruba/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>graaff@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">cucumber/aruba</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/astyle/Manifest b/dev-util/astyle/Manifest
new file mode 100644
index 000000000000..35b7168f7b34
--- /dev/null
+++ b/dev-util/astyle/Manifest
@@ -0,0 +1,15 @@
+AUX astyle-2.02.1-build_system.patch 1654 SHA256 014689e01c664096394720283ef9c65cd7fcfb24c68bc87fd64eeaa3f7b9b979 SHA512 350a950a700cd65ad526f133cf29bc0371339bdad3ccd08930d6edad32784b7adfdd5a28bf617255f0836c2e57cd9b1f97c25eb2021a889852da3a819c21cf3e WHIRLPOOL 8d7bc764f7fa1f449e8471510f6b3c37a34c3ecf207cae20201b16a6ff4f45368705fab2d0d3b65b3abb025ec6e0ce7f18e7503f19faeba34c14e3d375f96992
+AUX astyle-2.05.1-build_system.patch 1747 SHA256 a635e8ddda0e626eaef860f31c2a65f04c7597abd2e0486f4c1c74c71bae329e SHA512 f79258f5fff835216b96ca44094b0edb09be3407f82ce0960245df203a435688d96e74d68403919d1a98b8af38456a4d39ce37ad927bdad412b5a1870a0e748b WHIRLPOOL 67cd687352ea4db3711b1c45e5aa896a58cb326e8146432b502475f01bf71727e38710b75e1a6849a6e2789388ef7837960aa3445e469bf2c2a8d20f5512258a
+DIST astyle_2.04_linux.tar.gz 156974 SHA256 70b37f4853c418d1e2632612967eebf1bdb93dfbe558c51d7d013c9b4e116b60 SHA512 bc0f6351fac4198ab969251342c4e453064b07512a2d06825a93c75daf86b06469c9971f35fbadad872d23368dc546019d8d174e07ceaad6e10007f562fdeffd WHIRLPOOL d9aa3f537885e373d791204652ed5c8d5231be0840ef5dde3714bb8c9c524e327585a51b7b14da1aae2952f7c9248401bc2769290bc5828d15f030f41d95c1fe
+DIST astyle_2.05.1_linux.tar.gz 152765 SHA256 fbdfc6f1966a972d19a215927266c76d4183eee235ed1e2bd7ec551c2a270eac SHA512 853bf84cb196f2300ca00fb7f18fe336764f1205ae0674a75c1a019bf734495d8fb3d9b6aca0ea258b6632921fb268906128c1afb80596532489749cd2cbe495 WHIRLPOOL ceef3bfa64632a4fe9afcc332fdf742e60b6e7d21655449372bd6c89db7444eddf6bbfee48684bb9f18e119cf040f36c62544cfc8bb040ed83095e9aed9fce56
+DIST astyle_2.06_linux.tar.gz 162037 SHA256 3b7212210dc139e8f648e004b758c0be1b3ceb1694b22a879202d2b833db7c7e SHA512 e2da96b45d06385b284ed3107309dfa4fad904910a729232bdb8554b40332a673d33e1f153ffb2ebb0342c73098b79980628678be9dde45a4d4d23237fe8a8c5 WHIRLPOOL 02696ffbfb7f621d45ff8140f75cda38cce8587349269d9b87aba56a365f4375c7ce1ca67b3c0af8e1c6f627397d016ecc907437b4085599f24d2927b86c7878
+DIST astyle_3.0.1_linux.tar.gz 172483 SHA256 6c3ab029e0e4a75e2e603d449014374aa8269218fdd03a4aaa46ab743b1912fd SHA512 3e8d617c0ec89682bfb076081bb63ae9d44e897de0c85d5109b28adbbfe0620d5dacf59a4bd96ac30a5a4fcb3be136758e9c6fe2c69258b37956c212890a7158 WHIRLPOOL 62f5e81d37f22c45da890cdf7214ce1f7b30db64c29710c217b315d769e0f584eefa6907d2984e3577255ce031d43f90550ba2a5c5664397a651ca0b16d14671
+DIST astyle_3.0_linux.tar.gz 172303 SHA256 983e4fe87f20427ddf0d06fa5ba046b5ee95347f9ada33a681af3892426a4ff3 SHA512 77ef75139b08a91829373558753d78a3253f23a2a53a81f591d8877ba31b9a5163fbe8453894366aebbe287051259a568e725ee3b5e68d8ed4852a12d7798f9d WHIRLPOOL a6fb79f6202df85260adbf92ce529efc905bd9aaa093d7fa270d39adf9d34146a365479376dc9271cdc9334cb4f15c782436a1f2d0fdbc03be8a7979c38f23d6
+EBUILD astyle-2.04-r1.ebuild 1549 SHA256 84e434e3e5c8965d7b3aef899e2696db96052095496c20c8f1d26b48126b8c7e SHA512 a9cf3e1ebaf9ff05d5b81d2004d4694be8c3be1b80bd0fba2758b434f38c4b94236b978a8811a60caa9021a34fb58cdbb39fd7d80fd623e18f2139b1756121bb WHIRLPOOL f5153a83bd03cfa8efe9f87f25de05f1aee77483a18139ff873e6479a5b3e1ebcaf92425bbb793f7f0bc6da2d1b53e29e9d6f01e1deb0981701c6bd2e06d78d4
+EBUILD astyle-2.05.1.ebuild 1397 SHA256 4e71e84a93929a5749b528e7f8be4b061f2efd8a6a58c432a91e05a06c836a6d SHA512 0cc5c277556b8203168d10446106c1a3c5d17d79dfe9c783ce5bb674dd338a227cad277d49c93987f46f5f24ad0acdfc7cdd5b2061c604170a081cf6492132e4 WHIRLPOOL 1e0a060745bd071a51da4bb0bc9e051596fcc44a62126e92c5429e718bf52072aa352af66e3e496606ab2a55b4b0d8ba46282f16c06cca10dceffff6c5694550
+EBUILD astyle-2.06.ebuild 1359 SHA256 f0882f883a31c918d4b5c667fe7e64ce21d9413672ac06f3af84f9cd7b30c8e2 SHA512 1e0f7b029461bae3b2271a530268ecf15df0367491266c5456d49399342baaa44d9f59fe816796e9c8a88ab7243f93cb8486497ff94cddbd1f2938e6b1a91643 WHIRLPOOL d184b62b6ac13d3b00e4347f831e2ceb21a57319cf33817ee2ac97c640094e56a43e7a8b5cf2531bc58dfec5447e8de1fa8b50d63e142ebbf2ca536597be0627
+EBUILD astyle-3.0.1.ebuild 2203 SHA256 5c42397eb8f0e86a56681b22eb3449ed81d7f60de1a9b615022a9aa6bc6559c5 SHA512 0b28bdc51d5a313ea9c297c14b680e31e2ea5c84a3a8d5dca92669c7e93f692c034a1492f5e2dbbad2c8cd881108b4f33c73f28b29bb04c1d6d5b5951253cd6d WHIRLPOOL 070ec3d5653a30f73ae6566b1d4bb2c6558f13193d57bc75294d1c92328e5aaffe7e4fe614161633a71bf2b7d4be40d3ebc3bd8c6440148f18577e1ff9cd0ef0
+EBUILD astyle-3.0.ebuild 2215 SHA256 5ac523efe845043e42559b20146db43f93a6a7c5d0e97eb0a8fc30c5b3120c27 SHA512 1f8ca4e7e94218161e08217ebd278f48f7d8a3dff091bd0ff516ea76a4c949d8d37a80f25d9528d0b8672877545ec9c25853f03cc95551750d8cd9a0fa6ff96f WHIRLPOOL d51b3c9cc9edb481409279f0a5cb769404b9761711ee72aa27bfb1c97da1200cae789497eb2d9f752370cf053724ff29b19a4bac89fe4d3a89b225907f04cdf0
+MISC ChangeLog 3974 SHA256 69d35f756b710f83d1b84a2d8696049616a66386f28fbb2da3d6ffcbfb06db0d SHA512 24791606309db47f75397fb1a9707b3f5222fa5f358fb77da96bdfd4178a461009b1dff7dc007a627984db7ec0bddb4934c29cbb09d30a388a1b9487f97a1ec8 WHIRLPOOL 13d94691f3746b86706aa269083cd4a38d9abc0a151b567c772b869dc14987c893c9d859188081452fd91a3f9f7aa2646fb0d50f40270fac27e0aae33124c343
+MISC ChangeLog-2015 6632 SHA256 edd773473b5516fd419d787e8a265611c241a16d3826d6deb2b8d5a7c413441f SHA512 4567e523519b5a2d0c0ed282f8fb312b505b47da2134a2212d6ea0be78f189f65a5b4fce96d046a690f8c589c05d302cfb5e34125076d7165c85feb89ba6ab28 WHIRLPOOL 665f7bc942f14d0d35d3701c458db6c4b108675a85836dec344234c05374fe0cdc1141f94f6711860001bbed0f20ed7fa7fab433a9cf544a9dfec1813146747f
+MISC metadata.xml 751 SHA256 6f4742ea81725680829b56f51d83d56d6d942c1526076d469f83d8536f89ef72 SHA512 fd80778c425419d2162641aa66c8ddea11b7cf1061cb2532a587c852333113049b86bc6292b0f7c1eaa4e0f5e4860f0738b821cfa77f1adbbca7dffbbfa9cead WHIRLPOOL 2a47a714a2c926eaa078aa16af2c246bfa435c9b7e9732d0186e64ce6ffe91d2df19952a1ab638e756ef4ba9ed981109f32df8114f4789c7b895bfcee4f645e2
diff --git a/dev-util/astyle/astyle-2.04-r1.ebuild b/dev-util/astyle/astyle-2.04-r1.ebuild
new file mode 100644
index 000000000000..0e5f5d5dfe7a
--- /dev/null
+++ b/dev-util/astyle/astyle-2.04-r1.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils java-pkg-opt-2 multilib toolchain-funcs
+
+DESCRIPTION="Artistic Style is a reindenter and reformatter of C++, C and Java source code"
+HOMEPAGE="http://astyle.sourceforge.net/"
+SRC_URI="mirror://sourceforge/astyle/astyle_${PV}_linux.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="amd64 ppc ~ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
+
+IUSE="doc java static-libs"
+
+DEPEND="app-arch/xz-utils
+ java? ( >=virtual/jdk-1.6:= )"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/${PN}
+
+pkg_setup() {
+ java-pkg-opt-2_pkg_setup
+ tc-export CXX
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-2.02.1-build_system.patch
+ java-pkg-opt-2_src_prepare
+ sed -e "s:^\(JAVAINCS\s*\)=.*$:\1= $(java-pkg_get-jni-cflags):" \
+ -e "s:ar crs:$(tc-getAR) crs:" \
+ -i build/gcc/Makefile || die
+}
+
+src_compile() {
+ emake -f ../build/gcc/Makefile -C src \
+ ${PN} \
+ shared \
+ $(usex java java '') \
+ $(usex static-libs static '')
+}
+
+src_install() {
+ insinto /usr/include
+ doins src/${PN}.h
+
+ pushd src/bin &> /dev/null
+ dobin ${PN}
+
+ dolib.so lib${PN}.so.0.0.0
+ dosym lib${PN}.so.0.0.0 /usr/$(get_libdir)/lib${PN}.so.0
+ dosym lib${PN}.so.0.0.0 /usr/$(get_libdir)/lib${PN}.so
+ if use java ; then
+ dolib.so lib${PN}j.so.0.0.0
+ dosym lib${PN}j.so.0.0.0 /usr/$(get_libdir)/lib${PN}j.so.0
+ dosym lib${PN}j.so.0.0.0 /usr/$(get_libdir)/lib${PN}j.so
+ fi
+ if use static-libs ; then
+ dolib lib${PN}.a
+ fi
+ popd &> /dev/null
+
+ use doc && dohtml doc/*
+}
diff --git a/dev-util/astyle/astyle-2.05.1.ebuild b/dev-util/astyle/astyle-2.05.1.ebuild
new file mode 100644
index 000000000000..d0921eb88421
--- /dev/null
+++ b/dev-util/astyle/astyle-2.05.1.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils java-pkg-opt-2 multilib toolchain-funcs
+
+DESCRIPTION="Artistic Style is a reindenter and reformatter of C++, C and Java source code"
+HOMEPAGE="http://astyle.sourceforge.net/"
+SRC_URI="mirror://sourceforge/astyle/astyle_${PV}_linux.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
+
+IUSE="doc java static-libs"
+
+DEPEND="app-arch/xz-utils
+ java? ( >=virtual/jdk-1.6:= )"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/${PN}
+
+pkg_setup() {
+ java-pkg-opt-2_pkg_setup
+ tc-export CXX
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-build_system.patch
+ java-pkg-opt-2_src_prepare
+ sed -e "s:^\(JAVAINCS\s*\)=.*$:\1= $(java-pkg_get-jni-cflags):" \
+ -e "s:ar crs:$(tc-getAR) crs:" \
+ -i build/gcc/Makefile || die
+}
+
+src_compile() {
+ emake -f ../build/gcc/Makefile -C src \
+ ${PN} \
+ shared \
+ $(usex java java '') \
+ $(usex static-libs static '')
+}
+
+src_install() {
+ insinto /usr/include
+ doins src/${PN}.h
+
+ pushd src/bin &> /dev/null
+ dobin ${PN}
+
+ dolib.so lib${P}.so
+ dosym lib${P}.so /usr/$(get_libdir)/lib${PN}.so
+ if use java ; then
+ dolib.so lib${P}j.so
+ dosym lib${P}j.so /usr/$(get_libdir)/lib${PN}j.so
+ fi
+ if use static-libs ; then
+ dolib lib${PN}.a
+ fi
+ popd &> /dev/null
+
+ use doc && dohtml doc/*
+}
diff --git a/dev-util/astyle/astyle-2.06.ebuild b/dev-util/astyle/astyle-2.06.ebuild
new file mode 100644
index 000000000000..70a8f8a5969d
--- /dev/null
+++ b/dev-util/astyle/astyle-2.06.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils java-pkg-opt-2 multilib toolchain-funcs
+
+DESCRIPTION="Artistic Style is a reindenter and reformatter of C++, C and Java source code"
+HOMEPAGE="http://astyle.sourceforge.net/"
+SRC_URI="mirror://sourceforge/astyle/astyle_${PV}_linux.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
+
+IUSE="doc java static-libs"
+
+DEPEND="app-arch/xz-utils
+ java? ( >=virtual/jdk-1.6:= )"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/${PN}
+
+pkg_setup() {
+ java-pkg-opt-2_pkg_setup
+ tc-export CXX
+}
+
+src_prepare() {
+ eapply_user
+ java-pkg-opt-2_src_prepare
+ sed -e "s:^\(JAVAINCS\s*\)=.*$:\1= $(java-pkg_get-jni-cflags):" \
+ -e "s:ar crs:$(tc-getAR) crs:" \
+ -i build/gcc/Makefile || die
+}
+
+src_compile() {
+ emake -f ../build/gcc/Makefile -C src \
+ ${PN} \
+ shared \
+ $(usex java java '') \
+ $(usex static-libs static '')
+}
+
+src_install() {
+ insinto /usr/include
+ doins src/${PN}.h
+
+ pushd src/bin &> /dev/null
+ dobin ${PN}
+
+ dolib.so lib${P}.so
+ dosym lib${P}.so /usr/$(get_libdir)/lib${PN}.so
+ if use java ; then
+ dolib.so lib${P}j.so
+ dosym lib${P}j.so /usr/$(get_libdir)/lib${PN}j.so
+ fi
+ if use static-libs ; then
+ dolib lib${PN}.a
+ fi
+ popd &> /dev/null
+
+ use doc && dohtml doc/*
+}
diff --git a/dev-util/astyle/astyle-3.0.1.ebuild b/dev-util/astyle/astyle-3.0.1.ebuild
new file mode 100644
index 000000000000..369eb7a23007
--- /dev/null
+++ b/dev-util/astyle/astyle-3.0.1.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils flag-o-matic toolchain-funcs versionator java-pkg-opt-2
+
+DESCRIPTION="Artistic Style is a re-indenter and reformatter for C++, C and Java source code"
+HOMEPAGE="http://astyle.sourceforge.net/"
+SRC_URI="mirror://sourceforge/astyle/astyle_${PV}_linux.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="amd64 ppc ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
+IUSE="examples java static-libs"
+
+DEPEND="app-arch/xz-utils
+ java? ( >=virtual/jdk-1.6:= )"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${PN}"
+
+src_prepare() {
+ if use java ; then
+ java-pkg-opt-2_src_prepare
+ sed -e "s:^\(JAVAINCS\s*\)=.*$:\1= $(java-pkg_get-jni-cflags):" \
+ -e "s:ar crs:$(tc-getAR) crs:" \
+ -i build/gcc/Makefile || die
+ else
+ default
+ fi
+}
+
+src_configure() {
+ append-cxxflags -std=c++11
+ tc-export CXX
+ default
+}
+
+src_compile() {
+ # ../build/clang/Makefile is identical except for CXX line.
+ emake CXX="$(tc-getCXX)" -f ../build/gcc/Makefile -C src \
+ ${PN} \
+ shared \
+ $(usev java) \
+ $(usex static-libs static '')
+}
+
+src_install() {
+ doheader src/${PN}.h
+
+ pushd src/bin >/dev/null || die
+ dobin ${PN}
+
+ # ex: libastyle.so.3.0.1
+ dolib.so lib${PN}.so.${PV}
+ # ex: libastyle.so.3
+ dosym lib${PN}.so.${PV} /usr/$(get_libdir)/lib${PN}.so.$(get_major_version)
+ if use java ; then
+ dolib.so lib${PN}j.so.${PV}
+ dosym lib${PN}j.so.${PV} /usr/$(get_libdir)/lib${PN}j.so.$(get_major_version)
+ fi
+ if use static-libs ; then
+ dolib lib${PN}.a
+ fi
+ popd >/dev/null || die
+ if use examples ; then
+ docinto examples
+ dodoc -r file/.
+ docompress -x /usr/share/doc/${PF}/examples
+ fi
+ local HTML_DOCS=( doc/. )
+ einstalldocs
+}
+
+pkg_postinst() {
+ if [[ -n "$REPLACING_VERSIONS" && "$(get_major_version $REPLACING_VERSIONS)" -lt 3 ]]; then
+ elog "Artistic Style 3.0 introduces new configuration verbiage more fitting"
+ elog "for modern use. Some options that were valid in 2.06 or older are now"
+ elog "deprecated. For more information, consult astyle's release notes at"
+ elog "http://astyle.sourceforge.net/news.html. To view offline, see:"
+ elog
+ elog "${ROOT}usr/share/doc/${P}/html"
+ fi
+}
diff --git a/dev-util/astyle/astyle-3.0.ebuild b/dev-util/astyle/astyle-3.0.ebuild
new file mode 100644
index 000000000000..85544bdc8bb1
--- /dev/null
+++ b/dev-util/astyle/astyle-3.0.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils flag-o-matic toolchain-funcs versionator java-pkg-opt-2
+
+DESCRIPTION="Artistic Style is a re-indenter and reformatter for C++, C and Java source code"
+HOMEPAGE="http://astyle.sourceforge.net/"
+SRC_URI="mirror://sourceforge/astyle/astyle_${PV}_linux.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
+IUSE="examples java static-libs"
+
+DEPEND="app-arch/xz-utils
+ java? ( >=virtual/jdk-1.6:= )"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${PN}"
+
+src_prepare() {
+ if use java ; then
+ java-pkg-opt-2_src_prepare
+ sed -e "s:^\(JAVAINCS\s*\)=.*$:\1= $(java-pkg_get-jni-cflags):" \
+ -e "s:ar crs:$(tc-getAR) crs:" \
+ -i build/gcc/Makefile || die
+ else
+ default
+ fi
+}
+
+src_configure() {
+ append-cxxflags -std=c++11
+ tc-export CXX
+ default
+}
+
+src_compile() {
+ # ../build/clang/Makefile is identical except for CXX line.
+ emake CXX="$(tc-getCXX)" -f ../build/gcc/Makefile -C src \
+ ${PN} \
+ shared \
+ $(usev java) \
+ $(usex static-libs static '')
+}
+
+src_install() {
+ doheader src/${PN}.h
+
+ pushd src/bin >/dev/null || die
+ dobin ${PN}
+
+ # ex: libastyle.so.3.0.0
+ dolib.so lib${PN}.so.${PV}.0
+ # ex: libastyle.so.3
+ dosym lib${PN}.so.${PV}.0 /usr/$(get_libdir)/lib${PN}.so.$(get_major_version)
+ if use java ; then
+ dolib.so lib${PN}j.so.${PV}.0
+ dosym lib${PN}j.so.${PV}.0 /usr/$(get_libdir)/lib${PN}j.so.$(get_major_version)
+ fi
+ if use static-libs ; then
+ dolib lib${PN}.a
+ fi
+ popd >/dev/null || die
+ if use examples ; then
+ docinto examples
+ dodoc -r file/.
+ docompress -x /usr/share/doc/${PF}/examples
+ fi
+ local HTML_DOCS=( doc/. )
+ einstalldocs
+}
+
+pkg_postinst() {
+ if [[ -n "$REPLACING_VERSIONS" && "$(get_major_version $REPLACING_VERSIONS)" -lt 3 ]]; then
+ elog "Artistic Style 3.0 introduces new configuration verbiage more fitting"
+ elog "for modern use. Some options that were valid in 2.06 or older are now"
+ elog "deprecated. For more information, consult astyle's release notes at"
+ elog "http://astyle.sourceforge.net/news.html. To view offline, see:"
+ elog
+ elog "${ROOT}usr/share/doc/${P}/html"
+ fi
+}
diff --git a/dev-util/astyle/files/astyle-2.02.1-build_system.patch b/dev-util/astyle/files/astyle-2.02.1-build_system.patch
new file mode 100644
index 000000000000..1d63a512e9bc
--- /dev/null
+++ b/dev-util/astyle/files/astyle-2.02.1-build_system.patch
@@ -0,0 +1,54 @@
+--- a/build/gcc/Makefile
++++ b/build/gcc/Makefile
+@@ -34,25 +34,25 @@
+ ipath=$(prefix)/bin
+ CBASEFLAGS = -W -Wall -fno-rtti -fno-exceptions
+ JAVAINCS = -I$(JAVA_HOME)/include
+-CXX = g++
++CXX ?= g++
+ INSTALL=install -o $(USER) -g $(USER)
+
+ ##################################################
+
+ # define compile options for each build
+-ifdef CFLAGS
+- CFLAGSr = -DNDEBUG $(CBASEFLAGS) $(CFLAGS)
+- CFLAGSd = -g $(CBASEFLAGS) $(CFLAGS)
++ifdef CXXFLAGS
++ CFLAGSr = -DNDEBUG $(CBASEFLAGS) $(CXXFLAGS)
++ CFLAGSd = -g $(CBASEFLAGS) $(CXXFLAGS)
+ else
+ CFLAGSr = -DNDEBUG -O3 $(CBASEFLAGS)
+ CFLAGSd = -g $(CBASEFLAGS)
+ endif
+-CFLAGSs = -DASTYLE_LIB -fpic $(CFLAGSr)
+-CFLAGSsd = -DASTYLE_LIB -fpic $(CFLAGSd)
++CFLAGSs = -DASTYLE_LIB -fPIC $(CFLAGSr)
++CFLAGSsd = -DASTYLE_LIB -fPIC $(CFLAGSd)
+ CFLAGSa = -DASTYLE_LIB $(CFLAGSr)
+ CFLAGSad = -DASTYLE_LIB $(CFLAGSd)
+-CFLAGSsj = -DASTYLE_JNI -fpic $(CFLAGSr) $(JAVAINCS)
+-CFLAGSsjd = -DASTYLE_JNI -fpic $(CFLAGSd) $(JAVAINCS)
++CFLAGSsj = -DASTYLE_JNI -fPIC $(CFLAGSr) $(JAVAINCS)
++CFLAGSsjd = -DASTYLE_JNI -fPIC $(CFLAGSd) $(JAVAINCS)
+
+ # define link options
+ ifdef LDFLAGS
+@@ -134,7 +134,7 @@
+ shared: libastyle.so
+ libastyle.so: $(OBJs)
+ @ mkdir -p $(bindir)
+- $(CXX) -shared $(LDFLAGSr) -o $(bindir)/$@ $^
++ $(CXX) -shared -Wl,-soname,$@.0 $(LDFLAGSr) -o $(bindir)/$@.0.0.0 $^
+ @ echo
+
+ shareddebug: libastyled.so
+@@ -158,7 +158,7 @@
+ java: libastylej.so
+ libastylej.so: $(OBJsj)
+ @ mkdir -p $(bindir)
+- $(CXX) -shared $(LDFLAGSr) -o $(bindir)/$@ $^
++ $(CXX) -shared -Wl,-soname,$@.0 $(LDFLAGSr) -o $(bindir)/$@.0.0.0 $^
+ @ echo
+
+ javadebug: libastylejd.so
diff --git a/dev-util/astyle/files/astyle-2.05.1-build_system.patch b/dev-util/astyle/files/astyle-2.05.1-build_system.patch
new file mode 100644
index 000000000000..23554499c798
--- /dev/null
+++ b/dev-util/astyle/files/astyle-2.05.1-build_system.patch
@@ -0,0 +1,56 @@
+diff --git a/build/gcc/Makefile b/build/gcc/Makefile
+index b1af4c1..1dfa021 100755
+--- a/build/gcc/Makefile
++++ b/build/gcc/Makefile
+@@ -34,15 +34,15 @@ objdir = obj
+ ipath=$(prefix)/bin
+ CBASEFLAGS = -W -Wall -fno-rtti -fno-exceptions
+ JAVAINCS = -I$(JAVA_HOME)/include
+-CXX = g++
++CXX ?= g++
+ INSTALL=install -o $(USER) -g $(USER)
+
+ ##################################################
+
+ # define compile options for each build
+-ifdef CFLAGS
+- CFLAGSr = -DNDEBUG $(CBASEFLAGS) $(CFLAGS)
+- CFLAGSd = -g $(CBASEFLAGS) $(CFLAGS)
++ifdef CXXFLAGS
++ CFLAGSr = -DNDEBUG $(CBASEFLAGS) $(CXXFLAGS)
++ CFLAGSd = -g $(CBASEFLAGS) $(CXXFLAGS)
+ else
+ CFLAGSr = -DNDEBUG -O3 $(CBASEFLAGS)
+ CFLAGSd = -g $(CBASEFLAGS)
+@@ -134,13 +134,13 @@ astyled: $(OBJd)
+ shared: libastyle-2.05.1.so
+ libastyle-2.05.1.so: $(OBJs)
+ @ mkdir -p $(bindir)
+- $(CXX) -shared $(LDFLAGSr) -o $(bindir)/$@ $^
++ $(CXX) -shared -Wl,-soname,$@ $(LDFLAGSr) -o $(bindir)/$@ $^
+ @ echo
+
+ shareddebug: libastyle-2.05.1d.so
+ libastyle-2.05.1d.so: $(OBJsd)
+ @ mkdir -p $(bindir)
+- $(CXX) -shared $(LDFLAGSd) -o $(bindir)/$@ $^
++ $(CXX) -shared -Wl,-soname,$@ $(LDFLAGSr) -o $(bindir)/$@ $^
+ @ echo
+
+ static: libastyle.a
+@@ -158,13 +158,13 @@ libastyled.a: $(OBJad)
+ java: libastyle-2.05.1j.so
+ libastyle-2.05.1j.so: $(OBJsj)
+ @ mkdir -p $(bindir)
+- $(CXX) -shared $(LDFLAGSr) -o $(bindir)/$@ $^
++ $(CXX) -shared -Wl,-soname,$@ $(LDFLAGSr) -o $(bindir)/$@ $^
+ @ echo
+
+ javadebug: libastyle-2.05.1jd.so
+ libastyle-2.05.1jd.so: $(OBJsjd)
+ @ mkdir -p $(bindir)
+- $(CXX) -shared $(LDFLAGSd) -o $(bindir)/$@ $^
++ $(CXX) -shared -Wl,-soname,$@ $(LDFLAGSr) -o $(bindir)/$@ $^
+ @ echo
+
+ all: release debug shared shareddebug static staticdebug
diff --git a/dev-util/astyle/metadata.xml b/dev-util/astyle/metadata.xml
new file mode 100644
index 000000000000..284e178263af
--- /dev/null
+++ b/dev-util/astyle/metadata.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>zlg@gentoo.org</email>
+ <name>Daniel Campbell</name>
+ </maintainer>
+ <longdescription>
+ astyle is a code formatter for C, C++, and Java source code, with many
+ granular formatting options to assist in enforcing code formatting
+ standards in projects.
+ </longdescription>
+ <upstream>
+ <maintainer status="active">
+ <email>jimp03@email.com</email>
+ <name>Jim Pattee</name>
+ </maintainer>
+ <remote-id type="sourceforge">astyle</remote-id>
+ <bugs-to>https://sourceforge.net/p/astyle/bugs/</bugs-to>
+ <doc>http://astyle.sourceforge.net/astyle.html</doc>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/atomic-install/Manifest b/dev-util/atomic-install/Manifest
new file mode 100644
index 000000000000..63478b08ffaa
--- /dev/null
+++ b/dev-util/atomic-install/Manifest
@@ -0,0 +1,6 @@
+DIST atomic-install-0.1.1.tar.bz2 279555 SHA256 941ecd58029e691539d799b0e4fa8f90f5018d8d3bf44dfe0c244f219d03c615 SHA512 6614b47ab24f3ce480dd977983c2117836418915a13689e301922dce3091cfbb4dfec412402fa4c68f77d15c7dc297f14d70c12aeccab98d77af0a3534f29c8a WHIRLPOOL d6e8429441810eaae456593beeacdab5db8303b60f8ad7c88e0a51b178a6daac35735fdf96481ddb96628ef8c9904aeac2247928865c3f00df0d7e97b0fd136b
+EBUILD atomic-install-0.1.1.ebuild 610 SHA256 2186ed61b192eb86784d06b8a320682fb0bd3268d097cc973ec29e67d4cb1702 SHA512 10e44dbe933675968f207f4914f5e887a08807f7aa75a0da57b0a4bc5b070693c8b49fbcf22776fad36800d7d0ce17720a45e981e62747935231da3266454836 WHIRLPOOL b523ca49349c3e3d4700be1b1a8c7559fc9c93bb61da35965b85716e3ecf6b9ca3150b36d906ebda346a241c293d6762698bdc74c69ff37bb43a5e57a4749ba4
+EBUILD atomic-install-9999.ebuild 799 SHA256 2c1452bbfd4f099c3b8f9514b9ba5b2010b87fd1978f1cbb3746da90a9ddb75c SHA512 8615d57d85455021b77e3d75993691b7acd2dd587172b7e7b3171fe3d0141bbe76e694276f28f11e059ee3d0732d622146cd6bf81b72acb2aaff7e5967899c2e WHIRLPOOL ea700b4a9c0cbf55219483ab02c603627da621723816cf2caf7b70c2c6369f36685e8e1068f7b06fe760481dd9caffde24ce3c211906a325e9836f78c1773ac7
+MISC ChangeLog 2410 SHA256 e88decfc8c10b9f4a81fd862cf77c24a83edf6bf01b5fd4f1248ea4ed4b9e5ea SHA512 a601abd73a9f524a50b521eb3b8a656b8589e3780755ec2b4835dd60a49624e56a9b04aa7bb07265b9990177f2545b5e97cb4fd4d7ec4a23bcd556d2547a8778 WHIRLPOOL 77dc6b1db659d2838e6319ee6a642914f5f0e8e0f1af096ef0927a2daab3631b1d08dddef8447e11b62eee0c3c4de7163c3f8058cead894a1f00402c1fb595ab
+MISC ChangeLog-2015 923 SHA256 dda8ad68845ee33c21329ba046c0540626a846515c65060849afcbb1da982340 SHA512 e77dd54d3aaeb908ca67006de49d0b5ce109cd7e765e06ef216767bed98d99a5a40c0d426f3b99236dc4ba46b0ed6361d98d1ec053c714070be8b593c032e748 WHIRLPOOL 094c9d07ba50d373d03c075fbdc6b643d20db73218fe516523d6345a98daced71036391ec90681ef82bf2b1bdb711dd63b5ac0bc18ed3d8cd3f37180f8b67fbc
+MISC metadata.xml 517 SHA256 3662086b5624cfa5bdd5c1ecd06d3562dc56f8d5ee1637880ede7a1c10f06aee SHA512 713871c6f0f876eadce53dfe9bfb1e8792b02bac46f88a9a79d00bd9b08c6155ae97f23dd4bb20ba6a060e441c2abf3bce38fa6329fe3d502d9c63c2deabbdbb WHIRLPOOL 140734bcdaecb679cff6019b9664f31de9d854e1949bc869fc1ca7e3a6ae88d1cf0a4e7cabf8787dde50224a85824e4a7f9a84722a29887412f0bc684540211b
diff --git a/dev-util/atomic-install/atomic-install-0.1.1.ebuild b/dev-util/atomic-install/atomic-install-0.1.1.ebuild
new file mode 100644
index 000000000000..6ee38de78ef3
--- /dev/null
+++ b/dev-util/atomic-install/atomic-install-0.1.1.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit autotools-utils
+
+DESCRIPTION="A library and tool to atomically install sets of files"
+HOMEPAGE="https://github.com/mgorny/atomic-install/"
+SRC_URI="mirror://github/mgorny/${PN}/${P}.tar.bz2"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc static-libs xattr"
+
+RDEPEND="xattr? ( sys-apps/attr )"
+DEPEND="${RDEPEND}
+ doc? ( >=dev-util/gtk-doc-1.18 )"
+
+src_configure() {
+ myeconfargs=(
+ $(use_enable doc gtk-doc)
+ $(use_enable xattr libattr)
+ )
+
+ autotools-utils_src_configure
+}
diff --git a/dev-util/atomic-install/atomic-install-9999.ebuild b/dev-util/atomic-install/atomic-install-9999.ebuild
new file mode 100644
index 000000000000..824d3967cbff
--- /dev/null
+++ b/dev-util/atomic-install/atomic-install-9999.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+#if LIVE
+AUTOTOOLS_AUTORECONF=yes
+EGIT_REPO_URI="https://github.com/mgorny/${PN}.git"
+
+inherit git-2
+#endif
+
+inherit autotools-utils
+
+DESCRIPTION="A library and tool to atomically install sets of files"
+HOMEPAGE="https://github.com/mgorny/atomic-install/"
+SRC_URI="mirror://github/mgorny/${PN}/${P}.tar.bz2"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc static-libs xattr"
+
+RDEPEND="xattr? ( sys-apps/attr )"
+DEPEND="${RDEPEND}
+ doc? ( >=dev-util/gtk-doc-1.18 )"
+
+#if LIVE
+KEYWORDS=
+SRC_URI=
+DEPEND="${DEPEND}
+ >=dev-util/gtk-doc-1.18"
+#endif
+
+src_configure() {
+ myeconfargs=(
+ $(use_enable doc gtk-doc)
+ $(use_enable xattr libattr)
+ )
+
+ autotools-utils_src_configure
+}
diff --git a/dev-util/atomic-install/metadata.xml b/dev-util/atomic-install/metadata.xml
new file mode 100644
index 000000000000..92f08657ac2d
--- /dev/null
+++ b/dev-util/atomic-install/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>mgorny@gentoo.org</email>
+ <name>Michał Górny</name>
+ </maintainer>
+ <upstream>
+ <maintainer status="active">
+ <email>mgorny@gentoo.org</email>
+ <name>Michał Górny</name>
+ </maintainer>
+ <bugs-to>https://github.com/mgorny/atomic-install/issues/</bugs-to>
+ <remote-id type="github">mgorny/atomic-install</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/autodia/Manifest b/dev-util/autodia/Manifest
new file mode 100644
index 000000000000..23f1a8912b96
--- /dev/null
+++ b/dev-util/autodia/Manifest
@@ -0,0 +1,6 @@
+DIST Autodia-2.14-dbi.patch.gz 343 SHA256 b89556577240e75889995d8685cfd9791ec492187da691ee0a11ccd1b3602300 SHA512 2a7c1b4bacfaab3d0c0c16c12362be0a16161db0465ad1b5c4cc955296fd611824aa87b49e7c3672435d10004a383125e2edd3aff640fada2e1694cc02a8abd5 WHIRLPOOL 23ae7d3f9b90d3a36593a26004a1a2079bc99cd35fc6a8952e36ba37ad6ae56e403961a21616e411fbe8c16913810ac3a7b10bccb2f0bb2af6631b26c9db6338
+DIST Autodia-2.14.tar.gz 78070 SHA256 ac8125c88abe39d9fe01ca3acc13a00a29f3336a4bb7ef60447e6b8b822ff422 SHA512 41cd0d9dd8fc66d70aaf987a8a62ed8b916e9a38263c61cc1cb7994e7bfb24843bbd3440bbdad054fccbf0fbbdaa11ec3a35db2a6f926bc87ba65a5f4ac160ee WHIRLPOOL d857afa6d5f203750c69e0ea1af2bbec155cd6e202a20a3ba288a1f9fbd8a25402b4b4e2e987d336e6730c87111f1f312e6ca5de0307e166f5a9c8e91e811786
+EBUILD autodia-2.140.0-r1.ebuild 782 SHA256 91fa3fea0d5851ea10eff18dbf9486dbb0e8618e7f22679929dd0fb7e0d0d6a4 SHA512 0ddb9e5061e30d392e0e41731e1f8e6d61657b1defcaaf6fe36562d13026015c9b9459514658aebcbdbf0f57ad7cab61a1e96aad0cfb8217ba6386c58167c7a8 WHIRLPOOL 00d505d3cc74eac3c87df75e621792fc65388e5edb520d7deabd1249bba2f684982995c74bd2a12dde789c319d9736111bda7eb7e929e5f685c434e734d0f352
+MISC ChangeLog 2561 SHA256 bf3cd4ee2192ae884ed0b8200a1f2f1d9aacf73239b245a2280bf9c5e5c0280b SHA512 b4b46540916adef7ba6c1800b70a50ce982803058a1a482ef8f493c02681d82086a9333b15a6d2450108c0f650ddd64de68068edea9d309f5775e5ad27136ec1 WHIRLPOOL f3e3c50f41f58403c5f49790bfabc4f221fc0fe4bfc5831127b2675abbbea70667af4dced03f255a5624c761b510533e663c35293cf4cde9d888577ae6bdb8cc
+MISC ChangeLog-2015 1722 SHA256 348089d5ff91a47b3fcfd792ba68208bf0ef356f795a36b99c7dea6bafc7c8fd SHA512 56a3d0b477ee785a0c4ea1e72fb1dcc5ed1640d63ae5eec5421c320a16fb63b0eebed476f88837fc1304b5890dbddfedde8734be2c6f098f2583659edd20f848 WHIRLPOOL 99f0b70a5ed96c6d10f50df7f3be83598ae7cf53852d60b5f4e0367e4e82fb9a2901cf2f37a78dfadc10e3cc175c608e4c0c5ef977e9b663604e3c12ab375e6e
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/dev-util/autodia/autodia-2.140.0-r1.ebuild b/dev-util/autodia/autodia-2.140.0-r1.ebuild
new file mode 100644
index 000000000000..da836e9aeda0
--- /dev/null
+++ b/dev-util/autodia/autodia-2.140.0-r1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+MY_PN=Autodia
+MODULE_VERSION=2.14
+MODULE_AUTHOR=TEEJAY
+GENTOO_DEPEND_ON_PERL_SUBSLOT=yes
+inherit perl-app multilib
+
+DESCRIPTION="Parses source code, XML or data and produces an XML document in Dia format"
+HOMEPAGE="http://www.aarontrevena.co.uk/opensource/autodia/ ${HOMEPAGE}"
+SRC_URI+=" https://dev.gentoo.org/~tove/distfiles/${CATEGORY}/${MY_PN}-2.14-dbi.patch.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="graphviz test"
+
+RDEPEND="
+ dev-perl/Template-Toolkit
+ dev-perl/XML-Simple
+ graphviz? (
+ dev-perl/GraphViz
+ )
+"
+DEPEND="${RDEPEND}
+ test? (
+ dev-perl/Test-Pod
+ )
+"
+
+SRC_TEST=do
+PATCHES=( "${WORKDIR}"/${MY_PN}-2.14-dbi.patch )
+mydoc="DEVELOP"
diff --git a/dev-util/autodia/metadata.xml b/dev-util/autodia/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/dev-util/autodia/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/dev-util/automoc/Manifest b/dev-util/automoc/Manifest
new file mode 100644
index 000000000000..508db8ef30b4
--- /dev/null
+++ b/dev-util/automoc/Manifest
@@ -0,0 +1,6 @@
+AUX automoc-0.9.88-objc++.patch 2971 SHA256 6e7a2369b7130aa47b044937df73c2450711b3f6a32b40d8912bfd19a1f53e15 SHA512 c965e4aa3de0c1c711d944f349853ec6e183e28070e86aee0a38321ae48d80c4dd1dc2e8d3fc501512efed9c923ffc98dbab5730959f3cc81c2aaad7bd13c170 WHIRLPOOL 202900290abe8df21772cc7bed2ba2ce03c706474bb0e510a4c5c1e68a6f01e07e80cd9d4568326ee92e7b63eb418c8144a39443c83bfb751ec8b75afdc04bc4
+DIST automoc4-0.9.88.tar.bz2 9153 SHA256 234116f4c05ae21d828594d652b4c4a052ef75727e2d8a4f3a4fb605de9e4c49 SHA512 96dfa096a3793f93f6a4acf98c051c871c0285124bff09b12914a17e08a1f26cd63f0bb1c22fdf2c5c29550a1727a087b5de86bfa8a555c562e96052b4a2d820 WHIRLPOOL b66cdf3e04f825bacbdab7b5e6206db4979f3a8625bdb8e86f64b61fdc1e9cfe3e18a151d61ceb3e8b7b2dac5878dd9ee9de4e3b265326f496e781f8f18ac0ef
+EBUILD automoc-0.9.88-r1.ebuild 758 SHA256 650dbd58100374ac9614e86c39f2df3236d0a7f0b5fffe6e3907baa8659a1bc5 SHA512 9f77ddd2db7d591fa0ccf0fd6c91a7b33540530d9bbcf4aa44f1ac919478e3c65e4b33e015359bdc8d20860fcacd83690915a77688bc4f9ace1f727be6aa70f6 WHIRLPOOL 758a1d96ed02578abab36c55fbe802f1a5d6ccab77fe19531265f0928fb2bc0fa2ba571077a125e93d02fc0d932dad97330c7690202a03756fe1d378a48e2f5f
+MISC ChangeLog 2647 SHA256 4cebc273d9506d85a043b9155c334bb6ebd34450544493b7b02c6158a268ac6c SHA512 1c6c7df7a7f497bc9002637029e965b61b8eace283de3f52b3c97e706a1899e081fe6e7fcf79bfedb08463fc7c1a68e927438fd8a6e1bdcb9e7c08234a8e91eb WHIRLPOOL 9ea78519fcd0d6984fa92daaebd6dfd2cf675853c69c9d975d3e72271431448c9c73b8d2be5d3b3293fa426bc1db4db19f3b1bb70d02fc9300149114b3d0d2cc
+MISC ChangeLog-2015 4916 SHA256 4cc1fbc9c6b47d50ec8c2586aed76803dc94cd946001e240bb6adc71b457320a SHA512 8db7c1e476e67de75d0b969e61b9506b826f81b7882f98e9d6f41d7b8412dd0092968b139ceb65cd33f5f7640774195ef30ead2634f7b96820da581153849ca1 WHIRLPOOL 0437e72cf770a8407db6fb3e8e5b9aabe6a6e95449c4a7435d18147c09fc016a4291beac6b2cfdd2f36a1ec371e9d4567577911df0a75f4da9f4e6771689a35d
+MISC metadata.xml 249 SHA256 584f1dcf51866dc24a9abf7a89bfba0fad11dde81ae1c1b715da41770d233c99 SHA512 76a5a340b13f0053ca3c5e94ed24380ea8d29b45ac8655419e22eaadb1e4a827c04d2e7e36b65145c4964e6526f656618fc6ac144e277ef53cb7373e6239e3c3 WHIRLPOOL 200c07a8bf7c55b11b7936d5cd30e991a511684913334e72f59def66c0ced5fed0b4a8754e2d98bffbab631cb90d4e17fcccc59d5dcc5a8e988f69e47c85518c
diff --git a/dev-util/automoc/automoc-0.9.88-r1.ebuild b/dev-util/automoc/automoc-0.9.88-r1.ebuild
new file mode 100644
index 000000000000..ab081a4e7962
--- /dev/null
+++ b/dev-util/automoc/automoc-0.9.88-r1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+MY_PN="automoc4"
+MY_P="${MY_PN}-${PV}"
+inherit cmake-utils flag-o-matic
+
+DESCRIPTION="KDE Meta Object Compiler"
+HOMEPAGE="https://www.kde.org"
+SRC_URI="mirror://kde/stable/${MY_PN}/${PV}/${MY_P}.tar.bz2"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
+IUSE=""
+
+DEPEND="
+ dev-qt/qtcore:4
+"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=( "${FILESDIR}/${PN}-0.9.88-objc++.patch" )
+
+src_prepare() {
+ cmake-utils_src_prepare
+
+ if [[ ${ELIBC} = uclibc ]]; then
+ append-flags -pthread
+ fi
+}
diff --git a/dev-util/automoc/files/automoc-0.9.88-objc++.patch b/dev-util/automoc/files/automoc-0.9.88-objc++.patch
new file mode 100644
index 000000000000..1f4dacdc06eb
--- /dev/null
+++ b/dev-util/automoc/files/automoc-0.9.88-objc++.patch
@@ -0,0 +1,48 @@
+Please refer to
+ http://websvn.kde.org/?view=revision&revision=934696
+
+Adds support for objc++ in automoc, so that running moc on .mm-files will work.
+
+--- trunk/kdesupport/automoc/Automoc4Config.cmake 2009/03/03 15:40:57 934695
++++ trunk/kdesupport/automoc/Automoc4Config.cmake 2009/03/03 15:42:18 934696
+@@ -105,9 +105,9 @@
+ if(NOT _generated AND NOT _skip)
+ get_filename_component(_suffix "${_current_FILE}" EXT)
+ # skip every source file that's not C++
+- if(_suffix STREQUAL ".cpp" OR _suffix STREQUAL ".cc" OR _suffix STREQUAL ".cxx" OR _suffix STREQUAL ".C")
++ if(_suffix STREQUAL ".cpp" OR _suffix STREQUAL ".cc" OR _suffix STREQUAL ".cxx" OR _suffix STREQUAL ".C" OR _suffix STREQUAL ".mm")
+ list(APPEND _moc_files ${_abs_current_FILE})
+- endif(_suffix STREQUAL ".cpp" OR _suffix STREQUAL ".cc" OR _suffix STREQUAL ".cxx" OR _suffix STREQUAL ".C")
++ endif(_suffix STREQUAL ".cpp" OR _suffix STREQUAL ".cc" OR _suffix STREQUAL ".cxx" OR _suffix STREQUAL ".C" OR _suffix STREQUAL ".mm")
+ endif(NOT _generated AND NOT _skip)
+ endforeach (_current_FILE)
+
+@@ -156,7 +156,7 @@
+ if(NOT _generated AND NOT _skip)
+ get_filename_component(_suffix "${_current_FILE}" EXT)
+ # skip every source file that's not C++
+- if(_suffix STREQUAL ".cpp" OR _suffix STREQUAL ".cc" OR _suffix STREQUAL ".cxx" OR _suffix STREQUAL ".C")
++ if(_suffix STREQUAL ".cpp" OR _suffix STREQUAL ".cc" OR _suffix STREQUAL ".cxx" OR _suffix STREQUAL ".C" OR _suffix STREQUAL ".mm")
+ get_filename_component(_basename "${_current_FILE}" NAME_WE)
+ get_filename_component(_abs_path "${_abs_current_FILE}" PATH)
+ set(_header "${_abs_path}/${_basename}.h")
+@@ -168,7 +168,7 @@
+ list(APPEND _moc_headers ${_pheader})
+ endif(EXISTS "${_pheader}")
+ list(APPEND _moc_files ${_abs_current_FILE})
+- endif(_suffix STREQUAL ".cpp" OR _suffix STREQUAL ".cc" OR _suffix STREQUAL ".cxx" OR _suffix STREQUAL ".C")
++ endif(_suffix STREQUAL ".cpp" OR _suffix STREQUAL ".cc" OR _suffix STREQUAL ".cxx" OR _suffix STREQUAL ".C" OR _suffix STREQUAL ".mm")
+ endif(NOT _generated AND NOT _skip)
+ endforeach (_current_FILE)
+
+--- trunk/kdesupport/automoc/kde4automoc.cpp 2009/03/03 15:40:57 934695
++++ trunk/kdesupport/automoc/kde4automoc.cpp 2009/03/03 15:42:18 934696
+@@ -326,7 +326,7 @@
+ foreach (const QString &absFilename, sourceFiles) {
+ //qDebug() << absFilename;
+ const QFileInfo sourceFileInfo(absFilename);
+- if (absFilename.endsWith(".cpp") || absFilename.endsWith(".cc") ||
++ if (absFilename.endsWith(".cpp") || absFilename.endsWith(".cc") || absFilename.endsWith(".mm") ||
+ absFilename.endsWith(".cxx") || absFilename.endsWith(".C")) {
+ //qDebug() << "check .cpp file";
+ QFile sourceFile(absFilename);
diff --git a/dev-util/automoc/metadata.xml b/dev-util/automoc/metadata.xml
new file mode 100644
index 000000000000..2fdbf33d963d
--- /dev/null
+++ b/dev-util/automoc/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="project">
+ <email>kde@gentoo.org</email>
+ <name>Gentoo KDE Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-util/autoproject/Manifest b/dev-util/autoproject/Manifest
new file mode 100644
index 000000000000..c93be8d9c857
--- /dev/null
+++ b/dev-util/autoproject/Manifest
@@ -0,0 +1,8 @@
+DIST autoproject_0.20-3.diff.gz 4704 SHA256 f201fc7431d189c80297fba31867013e9efe6dec2c19399d52e9ceb4356ee562 SHA512 8058fb2430010ddc8613c9e310c262b28379eb3d38b7e9badca7e3adb3560e5965bbe6612a0211d38920094a4851502471f9e1670e694ea3ef7d29bbfde340e9 WHIRLPOOL ad827a1424856f6dc3ddf91f5209414c77a4bccab7b969429a9c9c44bf75146e4c7139268d76f274fa72639a72e7ee7ef4ba32ec7ece5260e29617b134b2fc7d
+DIST autoproject_0.20-5.diff.gz 5287 SHA256 b7ece8099d19453cb6eff78b2ce6b8fc4f1cfb72e8bdfe4cbd6d7eb7f277b59b SHA512 156f8feff53936c3113bda9d8a3f2e19679f249656ace69aacb1f0a13ae93066eef49de3e5a268c47ed3e440144de629f6b84a477ecfc6a3f793c41412cc9b5a WHIRLPOOL eaf1aff7d4e2f8a3b49d2ad7c41e1115c57c076aa5dc441562546d352387a30b996cbe8079ca3193c57ae6bad3a12bed4b13c6562a51e24b48ba08f0af22ecfc
+DIST autoproject_0.20.orig.tar.gz 151101 SHA256 850ff70e250fbd34c1193461b0fc8e1254803ee22a9d116cdbcc822b551766cc SHA512 eb6ba12af96e03f4da51b6b9fc0db618180d92b8a363f30182013a003bb13f5b66ee12b28531a234f6035b64bda29bb0f838466ccbeaddbce06a437a18c05288 WHIRLPOOL 83616aca1fe8ce08b509058585f740ace8121544910846a137940965f5ee8e904fd2f04ee158ea5e312a2a8a2cf9c7be1ee6a02430bb1f58cb1ccbf9abc6e335
+EBUILD autoproject-0.20.ebuild 774 SHA256 5622cbf32c6578fb922e4ddb7fac81a38bf432b1446ee68764e2591bb1ef1009 SHA512 a5970b755f01eb68008d5c3ceb9215df1aea957fab2e85e8c371b5678f87b763be20f1fbb9f0c4dfe96fd67563caa257bedc94fdbda2448ead8d45152a60f6c6 WHIRLPOOL d68f3d54113e822595217223aedbedde0f57793d3f2ec56c5ae0f0ed2d633ad2e6b75d879a072cf928b9dc4a60d9c0bdc5bf91b0ee37b5255667caaedd773da5
+EBUILD autoproject-0.20_p5.ebuild 873 SHA256 da3ee00c772b1eb3b2c73d373593916c1cc73036ef22b193087257ae5b102a0c SHA512 d906d9a835c5f7d4af9e3ba9becc57268e8907a7fe9f06cf34f17f8317ead95bf12eeb496d66de21bf36df69a48bb1f74f34c949a160c66c86fa4b56db0de616 WHIRLPOOL 27c6f6aab682ab0a9386544baa5a368721b5056c6173e70b698d7d3edff65c49fa265d88557e21501b34867f0a3db3ed70853b235ff0c2846976a6de9671ec1a
+MISC ChangeLog 2501 SHA256 17efc55e2d1a89b7d1b1df5bd4eb9670fc7dbc64e1d64be8b714e00b464dd442 SHA512 da479d1ed1555ae2b17915a8dabf42d85860397d67de26a2dcfb326eec3cf48b0673e9325cc88466fe1b0818e10702b680a31b71d1c66615f8cd378e8b4fd0a3 WHIRLPOOL bfdeb88588a1b3f016889d57ca3c38bf6a763c7e9681529e4f7e5a3db1e93283fa6663dd82ccf1503399ec35eba47a7397a3a101b66ca1c6e661dc12eed1654e
+MISC ChangeLog-2015 1667 SHA256 d0b59350f7550795544262237a1a08a52f5fb0925c63fed3c03e11c7050dd30b SHA512 86c0db6db93c99a2e51c193bdd4c08336345ad2d15a7b53cb2cf22967ba63e73c5a2b16ab8cfeff28de33751a034fa7744595f532204922c932984d3e23649ca WHIRLPOOL 727ba570c7799b083050d92c43a579a1c728d32fb186d3455e8b2fc97300656c8ccd2178cbeb11e2d2e703b82895c76a25eb2fbd32762e3f98e9ef5efbfe52d6
+MISC metadata.xml 253 SHA256 d82c33ef453113a5c1ebe250dcba373c22934a69b0a86c6ab15a5ca589c25b91 SHA512 54a9069aeb4165d2dff3d473c8001bc51613aac9dff3f7f5e9971a9891a737a31511ffa11cbd523febe581ac1d9de2bdf2f40410f0c4239138f2ccca3ef15555 WHIRLPOOL e5aee23acff864609953a1e4de768f0e4aef704b44c53c021f28573e1ca5c99f1a46d92935ecec2449f7b4419a36d8373127d0ecfa8d7bae72d835e1839eb3f8
diff --git a/dev-util/autoproject/autoproject-0.20.ebuild b/dev-util/autoproject/autoproject-0.20.ebuild
new file mode 100644
index 000000000000..05e5e1d55816
--- /dev/null
+++ b/dev-util/autoproject/autoproject-0.20.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils
+
+DEB_VER=3
+DESCRIPTION="Used to start a programming project using autotools and a command line parser generator"
+HOMEPAGE="http://packages.debian.org/unstable/devel/autoproject"
+SRC_URI="mirror://debian/pool/main/a/autoproject/${PN}_${PV}.orig.tar.gz
+ mirror://debian/pool/main/a/autoproject/${PN}_${PV}-${DEB_VER}.diff.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc x86"
+IUSE="test"
+
+RDEPEND="sys-devel/automake
+ sys-devel/autoconf"
+DEPEND="${RDEPEND}
+ test? ( sys-apps/texinfo )"
+
+src_unpack() {
+ unpack ${A}
+ epatch ${PN}_${PV}-${DEB_VER}.diff
+}
+
+src_install() {
+ make install DESTDIR="${D}" || die
+ dodoc AUTHORS NEWS README TODO ChangeLog
+}
diff --git a/dev-util/autoproject/autoproject-0.20_p5.ebuild b/dev-util/autoproject/autoproject-0.20_p5.ebuild
new file mode 100644
index 000000000000..f76f1b6b6548
--- /dev/null
+++ b/dev-util/autoproject/autoproject-0.20_p5.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils
+
+MY_PV=${PV%_p*}
+DEB_VER=${PV#*_p}
+DESCRIPTION="Used to start a programming project using autotools and a command line parser generator"
+HOMEPAGE="http://packages.debian.org/unstable/devel/autoproject"
+SRC_URI="mirror://debian/pool/main/a/autoproject/${PN}_${MY_PV}.orig.tar.gz
+ mirror://debian/pool/main/a/autoproject/${PN}_${MY_PV}-${DEB_VER}.diff.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE="test"
+
+RDEPEND="sys-devel/automake
+ sys-devel/autoconf"
+DEPEND="${RDEPEND}
+ test? ( sys-apps/texinfo )"
+
+S=${WORKDIR}/${PN}-${MY_PV}
+
+src_unpack() {
+ unpack ${A}
+ epatch ${PN}_${MY_PV}-${DEB_VER}.diff
+}
+
+src_install() {
+ emake install DESTDIR="${D}" || die
+ dodoc AUTHORS NEWS README TODO ChangeLog
+}
diff --git a/dev-util/autoproject/metadata.xml b/dev-util/autoproject/metadata.xml
new file mode 100644
index 000000000000..56c124413057
--- /dev/null
+++ b/dev-util/autoproject/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="project">
+ <email>base-system@gentoo.org</email>
+ <name>Gentoo Base System</name>
+</maintainer>
+</pkgmetadata>
diff --git a/dev-util/babeltrace/Manifest b/dev-util/babeltrace/Manifest
new file mode 100644
index 000000000000..8fa5f5686704
--- /dev/null
+++ b/dev-util/babeltrace/Manifest
@@ -0,0 +1,7 @@
+DIST babeltrace-1.2.3.tar.bz2 995094 SHA256 796fa6978102244d9c64d474baeac4e4292a0186660a53cf58f20d47226987ac SHA512 de231c9e25797d0f3cfb8692fc75b8ce4159d317bb861806955f098a99d5749b627c830111d37788d0da486fdef92c83c020588a6598b4e95bcff6cbf9fce77f WHIRLPOOL c473821bc5648865d5460c9b55d8e59cb6416057f7e43d6d8a81950ce62310309cc1dc23845cc7b16ba3533d6f28d0c2352a2f304163bf378725ac10c5831e86
+DIST babeltrace-1.2.4.tar.bz2 995829 SHA256 666e3a1ad2dc7d5703059963056e7800f0eab59c8eeb6be2efe4f3acc5209eb1 SHA512 5cfd4572519ec53ad531d333ac5e1df026ebd1a200e0fbec59c892cad5273316e07482a4199a1cb2dcb4994310b04b259748de169c4a7c1ddafd7e185f32c5f9 WHIRLPOOL 31c5a65c7dea2318d1938e6163a6650ca0bab47579389c44c35caa47d7d7f6465e48c7e877450f200690da277e1aace4097eef90bb72dc66f842fa1bc2da98dc
+EBUILD babeltrace-1.2.3.ebuild 598 SHA256 2a0a841d8e7367bd99f6115b8aadad3c9fcd8008e0c6953a52b80d2bd741e236 SHA512 fe8b5fa3c0e4e0437938eb064bb258a69acd78ca095a2f9db955f06e5de61e209aec4f4ab999fde25c26686c77ecaf998b4efcc67062f8dea37bdc9fb82c47ce WHIRLPOOL ebfd92de12c8ea290edfb160fe88f71dbd7efa289b5f7e778cfe7f11a9424b9718c5cda43918a4062c86f8a217517a11b544e7020724c22a55f8281a46dd64cb
+EBUILD babeltrace-1.2.4.ebuild 603 SHA256 4f68d1e9b5207083b45e7fe05e64bf360b52e5e9e57509f0cbf9ef571244e34e SHA512 ed6306db096030b9f3353d6316efddd33bba4852713c26d33ad9388b305615cf8ae9925ec5cf9f80d95fa880d785a15cc02c2f31e4090883a41aa37e484f2a69 WHIRLPOOL 5b29b2626ab5ee6dde087c5a54f30a5466bea9fd731de83a4a12743fda3483f8ccf9b36794cfe970839f980d9a990f7b2f6f5d9e4ffd2923269724f6d3e29dd8
+MISC ChangeLog 2391 SHA256 a3f3cb88345b3d78bf83ba234e0f56c80568e997abdb2a8a1f4b6404fcae17ff SHA512 40bbf7e42bf249d23d3bfa0b68332742b5ad73ef02cf4158f0a6ce7e0242af42892ef0344cc8e0b2509ff01eee9932e249f6f77df9fb8085607c00f5a6fdc53a WHIRLPOOL 295765354f905d1a45facb31116bea73f50d5396d3ca89f888889404d29bcc5ab52a9df260ff442ca6619b055ea947e7c8e5dc5248bee6f83bd5e9c35d5f8e59
+MISC ChangeLog-2015 943 SHA256 cd9def672cae34148273694bd94fe8b993b39c47a435b8876896613b5172f9c7 SHA512 a8ffca5b59e356245f6bcc5abfbf7d0f421bf573740ff0986ca46bf65bae5396cc556bddaea23f367dc871e8f97b8bf15bb666b112bc7c17f6176b9c74ed1c03 WHIRLPOOL ec732b7b0330627f65997dd66846fb8011fa2327d1fd28792086a7c876fd2a680809ccbb737e9deabf02ccec917f1dbdf6a013253d4db093507c378ce73157af
+MISC metadata.xml 463 SHA256 c2a27e63c3ff7ad5e3e20da14454b760b34302111b7545968a943fc6d6d18d6b SHA512 385f56632473bd068e1a2b1aa15190eafe5cc25fc5fda59f91bd35355dbc549f7937d4a3f5fbd82c2009385b2c5113a93aa3954a18fefb4d9fbae933cfb52fd3 WHIRLPOOL 982d604a82cda9511fb10e70677348b1d9e5faad131422ff84c993f743fbd995c9ae61f4101ae931c085e4b143b42234fde83564953505f8e7c1c0f451c0b836
diff --git a/dev-util/babeltrace/babeltrace-1.2.3.ebuild b/dev-util/babeltrace/babeltrace-1.2.3.ebuild
new file mode 100644
index 000000000000..6fe8e9289c0e
--- /dev/null
+++ b/dev-util/babeltrace/babeltrace-1.2.3.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils
+
+DESCRIPTION="A command-line tool and library to read and convert trace files"
+HOMEPAGE="http://lttng.org"
+SRC_URI="http://lttng.org/files/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
+IUSE="test"
+
+RDEPEND="dev-libs/glib:2
+ dev-libs/popt
+ sys-apps/util-linux
+ "
+DEPEND="${RDEPEND}
+ sys-devel/bison
+ sys-devel/flex
+ "
+src_configure() {
+ econf $(use_enable test glibtest)
+}
+
+src_install() {
+ default
+ prune_libtool_files --all
+}
diff --git a/dev-util/babeltrace/babeltrace-1.2.4.ebuild b/dev-util/babeltrace/babeltrace-1.2.4.ebuild
new file mode 100644
index 000000000000..65412aef2de2
--- /dev/null
+++ b/dev-util/babeltrace/babeltrace-1.2.4.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils
+
+DESCRIPTION="A command-line tool and library to read and convert trace files"
+HOMEPAGE="http://lttng.org"
+SRC_URI="http://lttng.org/files/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~arm ~arm64 ~ppc ~ppc64 x86"
+IUSE="test"
+
+RDEPEND="dev-libs/glib:2
+ dev-libs/popt
+ sys-apps/util-linux
+ "
+DEPEND="${RDEPEND}
+ sys-devel/bison
+ sys-devel/flex
+ "
+src_configure() {
+ econf $(use_enable test glibtest)
+}
+
+src_install() {
+ default
+ prune_libtool_files --all
+}
diff --git a/dev-util/babeltrace/metadata.xml b/dev-util/babeltrace/metadata.xml
new file mode 100644
index 000000000000..f4dd282d520c
--- /dev/null
+++ b/dev-util/babeltrace/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>dlan@gentoo.org</email>
+ <name>Yixun Lan</name>
+ </maintainer>
+ <longdescription>
+ Babeltrace is a command-line tool and library to read and convert trace files to and from different formats. It supports the CTF format, which is outputted by the LTTng 2.0 tracers.
+ </longdescription>
+</pkgmetadata>
diff --git a/dev-util/bakefile/Manifest b/dev-util/bakefile/Manifest
new file mode 100644
index 000000000000..a692513d248f
--- /dev/null
+++ b/dev-util/bakefile/Manifest
@@ -0,0 +1,5 @@
+DIST bakefile-0.2.9.tar.gz 775528 SHA256 9f3c65411ad3932027e3c3e765337d89be2f9cf5ee9a204da80e92a8c2d76ca5 SHA512 dc28a3a68c080dababef68b9f39ad141739ecb5e4e1129620274bd80ac13f68cddd6e5625776f23c508f20e1f984a8830a949c425457cfeada8b44081873102f WHIRLPOOL fe050f76f17c1dcce3687eaf7b91cad0cf8b85789cc3a5065ce113b58d0cf9d507c374b3249ecec945086ee666cd9b919bcf6e3d14cc3d0343dce2a3cbaae1e7
+EBUILD bakefile-0.2.9-r1.ebuild 637 SHA256 65908c6f5bd8b0a7060f9956967b89abfcbd87f2741bc0bed662a068fb78eaac SHA512 bb4556ee7062292d09e1e187847514c152ad9286a06e0900ecb963d4f5ac51a0f456b9d43d2845c31bb13ba6a4e268dc28527ab7dfbb56b3c26ce354b75fdb20 WHIRLPOOL 743b073ef950dfc99c78b3dd338e6fd5076447f2985012981275928a2d9d4d4bc8659a8ce120bb848f77a7d8b5ddfd0db9998819b694c2d17d0ca427942d5c75
+MISC ChangeLog 2609 SHA256 47d13ef1a1cd2bab47d6d6e2ce3f3cccfc855e07756251ea38e6d9f2de750de4 SHA512 b2055ce81f6ebd70991bf625f9ff5406f64f939845ef3cf8356d39c21471e2e05ede0ee33067fcc50dbf8f4a9b38a962b5b93b202e6d97c77d38983c5a53ba36 WHIRLPOOL cf3b33c1f1045f344d7b64e47bbfdb3ef8455b2dd350103f33d3b243a6c773d713d5aae0f2743a1df3e6aab1ed0f9257eeb0534af703e6bf9c53b244f9f55d2a
+MISC ChangeLog-2015 1253 SHA256 4c27380b3c5fdbe1fe6f5821edbfccb3d4af73696b432bf83c16f383caccfd0a SHA512 914929033ece862e70bae653e8f93437d93fa5dea7361a7612bebc3122b4d6e6e2b1ec39a99bec7321b028e785f560c853f6f1129520c256f075fac689f0b70f WHIRLPOOL a2158f257bb50756800f805bcf34db3c8753c3f595a38afe835dd42188f2225773093469179bc41fbb0e949cf801740a6f1eb788debf9a5885baaedd4625b100
+MISC metadata.xml 339 SHA256 a47ef6f3ba29961651a4a57a7957335a5e8dd7854621fa41305a6abdaf5ecdfd SHA512 bf67f77aac46a6857d646fe777216a776ba8f79f0a7dadec1b505fa8c914e1352dfda1a9f2470b4d36ffa3559aaf4674a2069377054d262498c39dc3623e0d8c WHIRLPOOL 9b4885146675a2e691eecaab918d4d48a47fc8aabb673b34045ec3e9bc9bc342348c4d711f28456e1c0e42af18a62abd27827fdd1d2f9d852c2e17fbea7f1a3c
diff --git a/dev-util/bakefile/bakefile-0.2.9-r1.ebuild b/dev-util/bakefile/bakefile-0.2.9-r1.ebuild
new file mode 100644
index 000000000000..6c9d3f6e3600
--- /dev/null
+++ b/dev-util/bakefile/bakefile-0.2.9-r1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit python-single-r1 bash-completion-r1
+
+DESCRIPTION="Native makefiles generator"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+HOMEPAGE="http://bakefile.sourceforge.net"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}"
+DEPEND=""
+
+src_install () {
+ default
+
+ if use doc ; then
+ dohtml -r doc/html/.
+ fi
+
+ # TODO: symlink the two
+ newbashcomp bash_completion bakefile
+ newbashcomp bash_completion bakefile_gen
+}
diff --git a/dev-util/bakefile/metadata.xml b/dev-util/bakefile/metadata.xml
new file mode 100644
index 000000000000..58052d45a7e1
--- /dev/null
+++ b/dev-util/bakefile/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="project">
+ <email>wxwidgets@gentoo.org</email>
+ <name>Gentoo wxWidgets Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">bakefile</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/bam/Manifest b/dev-util/bam/Manifest
new file mode 100644
index 000000000000..edab328d2688
--- /dev/null
+++ b/dev-util/bam/Manifest
@@ -0,0 +1,7 @@
+AUX 0.4.0/Makefile 508 SHA256 f8a6cc15cf643a63f8ede02c1cfcec357c2c3d93e475de238a9a77b96c57363f SHA512 9738df23d15a19aec675d9988163c3e64e028b51e77a555509273496358061af7e851a244561cbaa8dfa3bb2e5b8be54b1b5b6517da19800d13203fe2204b577 WHIRLPOOL 2cac5a50bc69ddccba0ac04be18699eba312b75fafe7fb79221cd95f1de78d71d5ac41660e4870ca123b727dd7d8b9a3a882dd6b864cafa5e99772fa8597bdaa
+AUX 0.4.0/bam-0.4.0-test.py.patch 266 SHA256 2dfcdd5720681f62001e33aaeb240df4a66f294b99b2c3edc44acd0afc8b214c SHA512 5e6e3106f05ce2a3fa8cd6a51d9125700f3c962a7f5eeabbaf7cc2c64b98ebbb508f109c9587efc8ec58f377b4a78407e81d3deaac68e0bf220e92c1b78705bb WHIRLPOOL c79b416c69bd534745e8f40bf9f12f162f28654bb84d7a1e2dc564e5c6ef5f8d1d39569e6db19fc3219e10bcd096df55e07e6d0d21ef4b8a6e8a0755d99f232b
+DIST bam-0.4.0.tar.bz2 164033 SHA256 56030670aa21e227ce0a00f1ee0c9b5129469a6e69e7b67c3dd459d2fce6207d SHA512 10ba53b05ac1604a9e9a01f4c008a8cbdc4e4e9df2fc039c8ca59251461e4c5f95770b5b72945d07693db7abe7cd312bc38725686b4d509d5dc21a585fffc810 WHIRLPOOL 01399ae9347b52318b7589b05e156362948773ef7b7060b299b79c3d8519565d38cdc786257b929a5f0c3c96d56eedcdd4adc4702ff9c9773c2037adb52414a8
+EBUILD bam-0.4.0-r1.ebuild 950 SHA256 89fda257bbc17e21f147bdec8bda854c46820a1338588a830523019bc551a944 SHA512 f87fe39e0acbaf0cc5c798e01e6428da5fefe03ac71c8be31b750908be219358b4be2218fadb282ed163b82be5839427ef16ceafc3bb505629f20a3f1863723f WHIRLPOOL 1018d7eaadabb324b32d1ad18d08aca03b93b6abda6cde66077c06c2592b09dfc9a516bd6e1b9f976c6ce9d9363ba67e8559a91e6a0d828c494f163866230dd2
+MISC ChangeLog 2945 SHA256 f381f8b7622fce241be03d87c7575024b0b32cc8f314ea61690ddbdd3a8fd352 SHA512 3c636c735dedb0d0a30c92b798f5932d8f549ddc1f1a4e33347563c70b5c5a34d2158e8f0f28b82e8d5fdeb99196c1b5e010130eb58ccc67ad6e9f363781d860 WHIRLPOOL ebd95161afba79cea4e1d24f33913ea3bc529d7027db7c92445a73de9fe1eb2eb63ed6cfd9e4b58ec8aea335cb3ec4387ee3439bed429ab98bccab7a8c82461b
+MISC ChangeLog-2015 1914 SHA256 2487b7d336e239b8fd0015cc1a04e97092012e24c459af1ba6018e61ef90c474 SHA512 32abf4aee05d3ea9ed74f98a00068c23c25335bb80a0b7e9f01ef2e7e8bff9f028264ddd708c25047a9ffc49081601043bcb21fa3dc9f9de137c4c3240d850a4 WHIRLPOOL e9983b8dc14ece97d1e66ca9040ecf683cb78c6b276aec6977bb7856d6e0da1a3b2e5bc07e1767d30e6b6c36dcf1ae4e894a53899d881e22ae723ad1450a488f
+MISC metadata.xml 250 SHA256 b65cbce1ea61e7cc4d50b0efe92ee2677ba1931945139fff58ab6253e1c7bfa6 SHA512 abe615c77678bf004cbb59192db454cbd48846b5715037375f15dcc44b331da47f462bb625251ef8cb2e06c809dfc8abd69bb997c827ceedbaef6b54128c0834 WHIRLPOOL 376b69e84e6c34747c9105f85d6595a4492839150be6457d36223649babccb24e356ea618fc95d68d7aa550b6c40f009f476d440dacbb78aba40f607f47749e5
diff --git a/dev-util/bam/bam-0.4.0-r1.ebuild b/dev-util/bam/bam-0.4.0-r1.ebuild
new file mode 100644
index 000000000000..96a42af25130
--- /dev/null
+++ b/dev-util/bam/bam-0.4.0-r1.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit eutils python-any-r1 toolchain-funcs
+
+DESCRIPTION="Fast and flexible Lua-based build system"
+HOMEPAGE="https://matricks.github.com/bam/"
+SRC_URI="https://github.com/downloads/matricks/${PN}/${P}.tar.bz2"
+
+LICENSE="ZLIB"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="doc test"
+
+RDEPEND="dev-lang/lua:="
+DEPEND="${RDEPEND}
+ doc? ( ${PYTHON_DEPS} )
+ test? ( ${PYTHON_DEPS} )"
+
+pkg_setup() {
+ if use doc || use test; then
+ python-any-r1_pkg_setup
+ fi
+}
+
+src_prepare() {
+ cp "${FILESDIR}"/${PV}/Makefile "${S}"/Makefile || die "cp failed"
+ epatch "${FILESDIR}"/${PV}/${P}-test.py.patch
+ tc-export CC
+}
+
+src_compile() {
+ emake ${PN}
+ if use doc; then
+ "${PYTHON}" scripts/gendocs.py || die "doc generation failed"
+ fi
+}
+
+src_install() {
+ dobin ${PN}
+ if use doc; then
+ dohtml docs/${PN}{.html,_logo.png}
+ fi
+}
diff --git a/dev-util/bam/files/0.4.0/Makefile b/dev-util/bam/files/0.4.0/Makefile
new file mode 100644
index 000000000000..d64f43abcd11
--- /dev/null
+++ b/dev-util/bam/files/0.4.0/Makefile
@@ -0,0 +1,22 @@
+LIBS += -lm -lpthread -llua -ldl
+TARGETS = txt2c internal_base bam
+BAM_OBJ = $(patsubst %.c,%.o,$(wildcard src/*.c))
+TXT2C_LUA = $(wildcard src/*.lua)
+
+all: $(TARGETS)
+
+txt2c: src/tools/txt2c
+
+internal_base: src/internal_base.h
+
+src/internal_base.h:
+ src/tools/txt2c $(TXT2C_LUA) > src/internal_base.h
+
+bam: txt2c internal_base $(BAM_OBJ)
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(BAM_OBJ) $(LIBS)
+
+test: $(TARGETS)
+ python scripts/test.py
+
+clean:
+ rm -f $(BAM_OBJ) $(TARGETS) src/internal_base.h src/tools/txt2c
diff --git a/dev-util/bam/files/0.4.0/bam-0.4.0-test.py.patch b/dev-util/bam/files/0.4.0/bam-0.4.0-test.py.patch
new file mode 100644
index 000000000000..5ea2acd3e440
--- /dev/null
+++ b/dev-util/bam/files/0.4.0/bam-0.4.0-test.py.patch
@@ -0,0 +1,11 @@
+--- scripts/test.py.old 2010-03-22 19:23:23.000000000 +0100
++++ scripts/test.py 2010-03-22 19:23:43.000000000 +0100
+@@ -178,6 +178,8 @@
+ print "FAILED TESTS:"
+ for t in failed_tests:
+ print "\t"+t
++ sys.exit(1)
+ else:
+ print "ALL TESTS PASSED!"
++ sys.exit(0)
+
diff --git a/dev-util/bam/metadata.xml b/dev-util/bam/metadata.xml
new file mode 100644
index 000000000000..3d17928aa2c6
--- /dev/null
+++ b/dev-util/bam/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-needed -->
+ <upstream>
+ <remote-id type="github">downloads/matricks</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/bats/Manifest b/dev-util/bats/Manifest
new file mode 100644
index 000000000000..de8dcfd8c951
--- /dev/null
+++ b/dev-util/bats/Manifest
@@ -0,0 +1,6 @@
+DIST bats-0.4.0.tar.gz 17258 SHA256 480d8d64f1681eee78d1002527f3f06e1ac01e173b761bc73d0cf33f4dc1d8d7 SHA512 83c6c0e3ceec149708a8db5d33e95cc84852d8189498c22131c00f4288a6c870f9d522bae9230157f442338dc101e1468451d78dfa274afb83a6f0dd614c8bdb WHIRLPOOL 9617418d6a288d6e57aa1d715498c9adcfbe80cd97a814382431203dab778f26139dc31a14aecfd6f2e71a51f11fe189fce6e3bb7174ce9d4ad25782a9a6fce0
+DIST bats-0.4.0_p20170219.tar.gz 18776 SHA256 8b2628a1e2b99dc163e4c9a38ca4139d5620752dea89ee45cfef27edf927ea62 SHA512 dc0e185b09dab5cc026ec39a2b15485751f038a6bab2e1089e55ea7e2913c0b99262edb54014300a25e0e3b6cad7ca61b4068f6ab328adaa61878dbb8efdf450 WHIRLPOOL 343a19c3d41919c3391078a1169a4774a8b411ede8e0a14391cd15250365aabf1fdd94d6dd96e7bde2909913d8cdbb18495aa17c5a37b1fda6f050baabebfe98
+EBUILD bats-0.4.0.ebuild 485 SHA256 13cf3508c5ff45ca44390c04b3456d208b497d7f7e8fba71334c1d43ec4cd505 SHA512 48856743881d5bec9e275531d2d50897e3d31401d5f4e189a7f9b62f8fde45b108791f50ae4f6c9a9e3f129cad83c391ba220bd359527e1851ab6a97664e43ef WHIRLPOOL 16494e87f7ddaa7382df17368b6eb324933d78b64a3ed28c1c15d4b635077b3354248a4069765fa50f98cce6953d65b160aa7d94875ac63ed3c7f6383e5c0e70
+EBUILD bats-0.4.0_p20170219.ebuild 653 SHA256 03a27e55c5edd9a96ecd63030f6ac0446ce6bb5e4b8b49ad2468cf5484b63a3e SHA512 653d2df7928343487adf921317c78d99dc27295f820b5fb70f524506d0a592db9d95cf798a29a3b5cb5c877bb3cbd1fd8c098b3c5229e3e6c9f58b8d498ddf45 WHIRLPOOL 2265f513f73451fe9a9a319c573d667956065e5617addf54cff9fc46390b642af8975d0ff76adee57aa9ac67a4cef77f8b2a76e208fd4fc897148bfcfd129553
+MISC ChangeLog 775 SHA256 b17e9a61ad3e2ccf4251b6aff19a62df2f03209990bead1eb6e810e6e88e0565 SHA512 8ccc2342c8778b279779b11ef4c506f7ad1c6db1eb46ad4065f5782cb373a4259bbfd6f018d213051859e8653bad7d720ba28dfd60ffd89f65e74a6cb109830e WHIRLPOOL 96f224ea2089f9877fb0f1deae73abc7fc4e741ccbb1aefefca6d067f9367286264549adf24c8e6d2f51e4eb6f810cc743fb6f368a83b52dd52fb721e5d1b8d7
+MISC metadata.xml 1004 SHA256 da051a0b793315ed99422709c25e15a5d19a6e824f9635e618dc32e509b9f326 SHA512 aa707b4cb1dee197a5421d28023671673c6c596f3dd0df8aa79031ebcc6444c921a71cefdb40c3c379f3042a60ee4ffe61faa1e5056f1fe7b99dd1bd59a7fdd2 WHIRLPOOL b9166c94f6ce07b72f241d7c8a4f9f00b76990a509c4f47782df3e6fb740d05c4f6260e44c7493c1328aabbaef2b6dbb8a596b69a2c13573c0a0440f38655e5e
diff --git a/dev-util/bats/bats-0.4.0.ebuild b/dev-util/bats/bats-0.4.0.ebuild
new file mode 100644
index 000000000000..0af7a00bf20f
--- /dev/null
+++ b/dev-util/bats/bats-0.4.0.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="An automated testing system for bash"
+HOMEPAGE="https://github.com/sstephenson/bats/"
+SRC_URI="https://github.com/sstephenson/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+src_test() {
+ bin/bats --tap test || die "Tests failed"
+}
+
+src_install() {
+ einstalldocs
+
+ dobin libexec/*
+ doman man/bats.1 man/bats.7
+}
diff --git a/dev-util/bats/bats-0.4.0_p20170219.ebuild b/dev-util/bats/bats-0.4.0_p20170219.ebuild
new file mode 100644
index 000000000000..2abffbaffb56
--- /dev/null
+++ b/dev-util/bats/bats-0.4.0_p20170219.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+COMMITHASH="03608115df2071fff4eaaff1605768c275e5f81f"
+
+DESCRIPTION="An automated testing system for bash"
+HOMEPAGE="https://github.com/sstephenson/bats/"
+SRC_URI="https://github.com/sstephenson/bats/archive/${COMMITHASH}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+S="${WORKDIR}/bats-${COMMITHASH}"
+
+src_test() {
+ bin/bats --tap test || die "Tests failed"
+}
+
+src_install() {
+ exeinto /usr/libexec/bats
+ doexe libexec/*
+ dosym ../libexec/bats/bats /usr/bin/bats
+
+ dodoc README.md
+ doman man/bats.1 man/bats.7
+}
diff --git a/dev-util/bats/metadata.xml b/dev-util/bats/metadata.xml
new file mode 100644
index 000000000000..d65f42192294
--- /dev/null
+++ b/dev-util/bats/metadata.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>nelo@wallus.de</email>
+ <name>Nelo-Thara Wallus</name>
+ <description>Proxied by Polynomial-C</description>
+ </maintainer>
+ <maintainer type="person">
+ <email>polynomial-c@gentoo.org</email>
+ <name>Lars Wendler</name>
+ <description>Proxy maintainer for Nelo</description>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">sstephenson/bats</remote-id>
+ </upstream>
+ <longdescription lang="en">
+ Bats is a TAP-compliant testing framework for Bash. It provides a simple
+ way to verify that the UNIX programs you write behave as expected.
+
+ A Bats test file is a Bash script with special syntax for defining test
+ cases. Under the hood, each test case is just a function with a description.
+
+ Bats is most useful when testing software written in Bash, but you can use
+ it to test any UNIX program.
+ </longdescription>
+</pkgmetadata>
diff --git a/dev-util/bazel/Manifest b/dev-util/bazel/Manifest
new file mode 100644
index 000000000000..06c05ca76980
--- /dev/null
+++ b/dev-util/bazel/Manifest
@@ -0,0 +1,6 @@
+DIST bazel-0.4.5-dist.zip 101505017 SHA256 2b737be42678900470ae9e48c975ac5b2296d9ae23c007bf118350dbe7c0552b SHA512 bc70e379a9f6f962440d05d4a706959461690e28a943833e17d6e2b7e3cd7dd2344f329f72d833ec5104334a71764fde195e50b09a582ae7c1b89bd62822943b WHIRLPOOL d236eb387373f4b1cba32084a8b282f2bc75e6a0a714f18229cf5064230ad912bd879df2e7ebcc30da18538958ded4a1b8e59c27c0716aa6b677690b10a0356e
+DIST bazel-0.5.2-dist.zip 100003640 SHA256 2418c619bdd44257a170b85b9d2ecb75def29e751b725e27186468ada2e009ea SHA512 2580b41a09d8e7766bf06ed55bca06f542a13fecf050b105829811d8a95e8f9a4395ebc8d3ce6436ecec8faab704afd608d71e2d368e51c668df3f766ca6e9c1 WHIRLPOOL 8ea9522bbd38ec5d9de4eebae0586c71ab2cf2f782430e0e0bd5fc84c8d431df7f758627ad9f0aeb57445c1c3d4b3de34702e2e2a6a73aea246519543d8ff118
+EBUILD bazel-0.4.5-r1.ebuild 1820 SHA256 5fc8efbdf3f33a0a571c299620dc248cf367b9d4c1a3c5fe8cdf71fb600f78dd SHA512 eea6c74fa9ceaea72fd8ffd2f40b1a96858cad297168eba38213993f176eb8069ac7ba6e8f166d7eff43af56b2c1ba2039c268bbe86efb7dcf842fe33d5cf583 WHIRLPOOL c01f964c36314bbff5f4259837fe6eed7049a2b3122a28a366eb774d218de34db0167db3c62148ec2e68e1113773944f992e9259685291deab5fcbec50ceb0ef
+EBUILD bazel-0.5.2.ebuild 1977 SHA256 1b9478c334b87f8d3b3f9fceec65a824d8c4a355f6da5ad674a3cb9a640ba61f SHA512 1ebbd3512a16af79b14cec5e365dd43cc280356cd9fe1bd9af10db2f81fc69ddabd337cab48a960731c9d5a9cde0d4fba8ed1cdf57356d9603b6a959edb67e76 WHIRLPOOL 54ba799fe5f5768762595b89fd1ea4d009edc4516365c6bc8287dea860b4d450b57a5b69e3585db47d3e7b6ad32d08615f53f0e0365f706334ed1678c897861f
+MISC ChangeLog 897 SHA256 8294a290203448f900849de62e63c76b7dbb156b4f7e8515236615ddc1563a03 SHA512 32d4e758dfdebd9b0641117e943f638f1068eebcdbd80ff5c1024205f5ae95c0356e825ec89ea087e3b9ffc3cb0991e7b4eee54f5d2a6715d1470f88b0741b40 WHIRLPOOL 0b9248ea794466e598293a0035df5dd96bb41c2300dd050d6d1100d565d2e19583ded5766a40ee02cc8cd717d94e67b126e988ebe0c6a773111a5242e20eb35f
+MISC metadata.xml 789 SHA256 0383e35dc373a0c7f4cea80787481ad95790be959eae2e685ab1eae275464141 SHA512 e5790a5b54ca33ce53646382ff667656e0a843494cac2a6fbd3f11cc45b711b8dd656df1c16921484b186bf80708179602630d9aae4382587a19fe5b5270d77b WHIRLPOOL f4883d618b4e1d6de0acd756b8e5d402f3cca806a30836797b2928a2bbe38015dd6b3eaaae4bd17a16cacc781924df7cb230c1725bad0a0c2942b8ec78999ff8
diff --git a/dev-util/bazel/bazel-0.4.5-r1.ebuild b/dev-util/bazel/bazel-0.4.5-r1.ebuild
new file mode 100644
index 000000000000..d3b75d558a98
--- /dev/null
+++ b/dev-util/bazel/bazel-0.4.5-r1.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit bash-completion-r1 java-pkg-2
+
+DESCRIPTION="Fast and correct automated build system"
+HOMEPAGE="http://bazel.io/"
+SRC_URI="https://github.com/bazelbuild/bazel/releases/download/${PV}/${P}-dist.zip"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="examples tools zsh-completion"
+# strip corrupts the bazel binary
+RESTRICT="strip"
+RDEPEND="virtual/jdk:1.8"
+DEPEND="${RDEPEND}
+ app-arch/unzip
+ app-arch/zip"
+
+S="${WORKDIR}"
+
+pkg_setup() {
+ echo ${PATH} | grep -q ccache && \
+ ewarn "${PN} usually fails to compile with ccache, you have been warned"
+ java-pkg-2_pkg_setup
+}
+
+src_compile() {
+ VERBOSE=yes ./compile.sh || die
+ # Use standalone strategy to deactivate the bazel sandbox, since it
+ # conflicts with FEATURES=sandbox.
+ echo "build --verbose_failures --spawn_strategy=standalone --genrule_strategy=standalone" \
+ > "${T}/bazelrc" || die
+ output/bazel --bazelrc="${T}/bazelrc" build scripts:bazel-complete.bash || die
+ mv bazel-bin/scripts/bazel-complete.bash output/ || die
+}
+
+src_test() {
+ output/bazel test \
+ --verbose_failures \
+ --spawn_strategy=standalone \
+ --genrule_strategy=standalone \
+ --verbose_test_summary \
+ examples/cpp:hello-success_test || die
+}
+
+src_install() {
+ output/bazel shutdown
+ dobin output/bazel
+ newbashcomp output/bazel-complete.bash ${PN}
+ if use zsh-completion ; then
+ insinto /usr/share/zsh/site-functions
+ doins scripts/zsh_completion/_bazel
+ fi
+ if use examples; then
+ docinto examples
+ dodoc -r examples/*
+ docompress -x /usr/share/doc/${PF}/examples
+ fi
+ # could really build tools but I don't know which ones
+ # are actually used
+ if use tools; then
+ docinto tools
+ dodoc -r tools/*
+ docompress -x /usr/share/doc/${PF}/tools
+ fi
+}
diff --git a/dev-util/bazel/bazel-0.5.2.ebuild b/dev-util/bazel/bazel-0.5.2.ebuild
new file mode 100644
index 000000000000..4684dc2d3b48
--- /dev/null
+++ b/dev-util/bazel/bazel-0.5.2.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit bash-completion-r1 java-pkg-2
+
+DESCRIPTION="Fast and correct automated build system"
+HOMEPAGE="http://bazel.io/"
+SRC_URI="https://github.com/bazelbuild/bazel/releases/download/${PV}/${P}-dist.zip"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="examples tools zsh-completion"
+# strip corrupts the bazel binary
+RESTRICT="strip"
+RDEPEND="virtual/jdk:1.8"
+DEPEND="${RDEPEND}
+ app-arch/unzip
+ app-arch/zip"
+
+S="${WORKDIR}"
+
+pkg_setup() {
+ echo ${PATH} | grep -q ccache && \
+ ewarn "${PN} usually fails to compile with ccache, you have been warned"
+ java-pkg-2_pkg_setup
+}
+
+src_compile() {
+ # F: fopen_wr
+ # S: deny
+ # P: /proc/self/setgroups
+ # A: /proc/self/setgroups
+ # R: /proc/24939/setgroups
+ # C: /usr/lib/systemd/systemd
+ addpredict /proc
+ VERBOSE=yes ./compile.sh || die
+ # Use standalone strategy to deactivate the bazel sandbox, since it
+ # conflicts with FEATURES=sandbox.
+ echo "build --verbose_failures --spawn_strategy=standalone --genrule_strategy=standalone" \
+ > "${T}/bazelrc" || die
+ output/bazel --bazelrc="${T}/bazelrc" build scripts:bazel-complete.bash || die
+ mv bazel-bin/scripts/bazel-complete.bash output/ || die
+}
+
+src_test() {
+ output/bazel test \
+ --verbose_failures \
+ --spawn_strategy=standalone \
+ --genrule_strategy=standalone \
+ --verbose_test_summary \
+ examples/cpp:hello-success_test || die
+}
+
+src_install() {
+ output/bazel shutdown
+ dobin output/bazel
+ newbashcomp output/bazel-complete.bash ${PN}
+ if use zsh-completion ; then
+ insinto /usr/share/zsh/site-functions
+ doins scripts/zsh_completion/_bazel
+ fi
+ if use examples; then
+ docinto examples
+ dodoc -r examples/*
+ docompress -x /usr/share/doc/${PF}/examples
+ fi
+ # could really build tools but I don't know which ones
+ # are actually used
+ if use tools; then
+ docinto tools
+ dodoc -r tools/*
+ docompress -x /usr/share/doc/${PF}/tools
+ fi
+}
diff --git a/dev-util/bazel/metadata.xml b/dev-util/bazel/metadata.xml
new file mode 100644
index 000000000000..518e125be253
--- /dev/null
+++ b/dev-util/bazel/metadata.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>zmedico@gentoo.org</email>
+ </maintainer>
+ <maintainer type="person">
+ <email>bicatali@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">bazelbuild/bazel</remote-id>
+ </upstream>
+ <longdescription>
+ Bazel is Google's own build tool. Bazel has built-in support for
+ building both client and server software, including client
+ applications for both Android and iOS platforms. It also provides
+ an extensible framework that you can use to develop your own build
+ rules.
+ </longdescription>
+ <use>
+ <flag name="tools">Install extra bazel tools to build from sources</flag>
+ </use>
+</pkgmetadata>
diff --git a/dev-util/bbe/Manifest b/dev-util/bbe/Manifest
new file mode 100644
index 000000000000..835b176b6c20
--- /dev/null
+++ b/dev-util/bbe/Manifest
@@ -0,0 +1,5 @@
+DIST bbe-0.2.2.tar.gz 211590 SHA256 baaeaf5775a6d9bceb594ea100c8f45a677a0a7d07529fa573ba0842226edddb SHA512 6ac31aa005f18cbfd3fbacfe86b3d81ee61a027764296f574c4180da6ccc23dbf716a835fb013730d30c09c045197a70e28584303f3521afab0e5c63d0cf693f WHIRLPOOL f9c124a08b2458cc4368bdc7153da986c4ebf27b26ecfc3d356677f927bf3fac499c93265a6f2c74daf96c2c88efa7038eb2dca80627c8ce39cd8060a9222d4a
+EBUILD bbe-0.2.2.ebuild 532 SHA256 9bc066d13ad2cc55bbf41fa390051bec88e643644e3681b651f8c688928ad3ab SHA512 2d68c7af9c3ac3784ceaf9d4c837392cee405c2d9e92645b5707b9e188f221183c98dfc9b130b354e378fdb7d7c3b45e4a80810ede6ac46d3adc1146f8407b34 WHIRLPOOL ff9a04bd8382f033397d9c1a7bc35074a6a5c5267bb8005d5b75c1b1cdac78fffab2143e5342a71c5366a8b5edabb8200ab212814a924f400a78178c07326b37
+MISC ChangeLog 2272 SHA256 931830fd4e8fd222ee12cf370565ae119cd210a7c8fb03477784cf75e2be4b08 SHA512 a1b0c57e2b92beed8762befea699128feef0239440ade3d129e3a09775c62707551a4f9753a2d793d86e8631aa7d06516875836c311e7eae9ea7393432669b88 WHIRLPOOL 6736d1c79fc0029b12e8776705e9680208cc40a4066480e92159beffde94a662e45a840abde097c6db80255f9a3d512b5e4a0cec03dac9e473f33a234fb25661
+MISC ChangeLog-2015 1315 SHA256 5a5ec8b0477e90196f83bfb811acc24aa2a0cd5cf7fb7f22410278e3613f56d9 SHA512 9b63be6d06d415b34c08ff17ca9c55743fa861ec8fd64bc78bf286bb11e9881b380549ce8ace5384c17168298d10b228f9401e8980c0b3cca334e5b29cb09347 WHIRLPOOL f363e922f58a2ea52013fae4a52fedcf3cf3ace068107ad0202e393c80db47b9573363848830db1d14fcc3ae0d52c9d0d3b066de93fea52eba23bb080dc48ddf
+MISC metadata.xml 323 SHA256 b712ca82997730819d726534d14d97f9e1e7e1a59a59ea8bc15d518e4eec4849 SHA512 58f9102a7e5a4c09bd8d16c7e66ba1088cd9e8b6f78998c5ba5930634fb7778d7f06a126e4c6dc33bc1d37574dfda200f71d2b7dc6a471daa3b22e3624462fa0 WHIRLPOOL 8117938be3870a43cce5eae3b1494fb1eb02a6d3f0a3b841212c7d89fb787993c320240d2679b54f1373410e7a4d358b2beeb8fb163b44403aeda8ec140cd5d5
diff --git a/dev-util/bbe/bbe-0.2.2.ebuild b/dev-util/bbe/bbe-0.2.2.ebuild
new file mode 100644
index 000000000000..0d506f35d5cd
--- /dev/null
+++ b/dev-util/bbe/bbe-0.2.2.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit autotools
+
+DESCRIPTION="Sed-like editor for binary files"
+HOMEPAGE="https://sourceforge.net/projects/bbe-/"
+SRC_URI="mirror://sourceforge/${PN}-/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~arm x86 ~amd64-linux ~x86-linux"
+IUSE=""
+
+src_prepare() {
+ sed -i -e '/^htmldir/d' doc/Makefile.am || die
+ eaclocal
+ eautoreconf
+}
+
+src_configure() {
+ econf --htmldir="${EPREFIX}/usr/share/doc/${PF}/html"
+}
diff --git a/dev-util/bbe/metadata.xml b/dev-util/bbe/metadata.xml
new file mode 100644
index 000000000000..ff635f4eb948
--- /dev/null
+++ b/dev-util/bbe/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>billie@gentoo.org</email>
+ <name>Daniel Pielmeier</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">bbe-</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/bcc/Manifest b/dev-util/bcc/Manifest
new file mode 100644
index 000000000000..f7cd51327f96
--- /dev/null
+++ b/dev-util/bcc/Manifest
@@ -0,0 +1,9 @@
+DIST bcc-0.2.0.tar.gz 1195653 SHA256 8bdea41286dda0605e3e52fc76d345356dc637434935a112e6378e2dcb439a70 SHA512 edb696a5382e2f56d06e6b8b65c37b50e719da944fbce43cbad116c773e759fb51837d57ae3d159d83a489dfd0254b9f50b97dab7116465d57f787cf50d58808 WHIRLPOOL ffa4b47dbb16a73699176bd2926763588c6f5ed73052d58ce8f9c51af1eba82c73ac541458b34d6fbd8cd9b698b37bfedc9c9f312967ce639f45daf4789138b2
+DIST bcc-0.3.0-llvm5-76887992d786064213af87694d2a21745e579338.patch 2600 SHA256 e7bf9b9b46a339431bf272a2f8d19c5977db69a36f1f374c73ef2f95a5d1a3a3 SHA512 1b5330a5a8bb8d7152130e5f2acbd5b3f7cad42cc519ff51312792d529a37eae76881eb1fae74c637de4fab35b5a0d33df7ca2bb55e65daac6b54b08c7037286 WHIRLPOOL 841628d3525429f00dc0a767e9a953702bbaf20fd6a8164d9bf3ee909272ca25a700c965fdb0fcb8de99a43b8d8de9eb8414caaf84239e31f55809d120bf7e6e
+DIST bcc-0.3.0.tar.gz 1645152 SHA256 88f54dff96c30c6e7b45f475938eef790b1c9485f794b1ac6791c4e56007f7cc SHA512 e5a0f9ad1b0ba865b5644a5a4a0ad130708aac882239ed545bcfd74a5d80328361bc92287bad5569710849682501841e89279089efc71a97da4e02bfc709b916 WHIRLPOOL fb06e4bd7e5ffbee104b5ad4d6e6a9004fc77dccf9f9cdebfa16741c899ce16c0154d6700f9eb6f8754c90da69eeb17ac9a3e878b5f75965dbccd13f6ad35abb
+DIST bcc-0.3.0_p20170913.tar.gz 1736513 SHA256 9d6357b50f64d2b0ef2ab4d2ae50397b9cd42eaaff766066e42c50b4b9588b29 SHA512 8298d98fcadc95a2f5f27e1f656f392634c0940cf6ea03f432135477790e770f58dc3e3e0b434391eff8d4e3df6671c250252a29a7344c6adf7606251daef4dd WHIRLPOOL e9a6b9a1aac158ea8fa012a88acd2c5027f8cc44305dc1c135326a8f40d21e81db1382a34fb7f8cab6922845bc7d7867a8fa094e21d03bbb5d7985592f8112e2
+EBUILD bcc-0.2.0-r1.ebuild 1092 SHA256 63f42b71e5295204e2d1c12776a9034bd6cc8c2f31ff269d052369f7211e4b43 SHA512 65c436c1e4891bbad89a119ca2f997bb5616fd57b9d9cc3db8978f9584fa2c79c9531bfef26e7d36066ea3863f65f8a90d42c15691ebfbdd0421b698144f98a3 WHIRLPOOL 69c6e162f70434ece867d45add853725b40fb41ea50f016eb4d94c2352cd6b1d0a960d6bca04264087311206ba0da0e8e8372bc62308f5907df7aa83573426e6
+EBUILD bcc-0.3.0.ebuild 1336 SHA256 1c70193216b49a11ae99db1e7b8604fa9f552a114889e20ba964687cb77af78f SHA512 b0aad430a85e42dbb1089e7e6047a4e18f4ab8286788d6c8e844460acef90d827096c40b752d24ce9218af4394fbc043d70e0ce1ccf0819e1882a48042c7c450 WHIRLPOOL 1f89b809d55f530cb3f1a45a497199399e967e1188e3094af322d0e03de8adb456491b5bf3960200add741fbf070d127fc85338ec30a558797cb7ad5a4f3533a
+EBUILD bcc-0.3.0_p20170913.ebuild 1128 SHA256 3063d732abffbd6fc87c19d21b833ac9ca2dfe167a1f077c4f8daddbf68d06ad SHA512 3d76907e1322f352b52b4152854ab5d6401a8a23431766ab1238483c5835d5085647cdcfd3507d33eff1d6397f641cdb9666901a0bfa974d9af264f0a4c62a8b WHIRLPOOL 26f33b68c512848050c2da88bbb7c8e2dce61b17490d68f18b514493dc4bf7e16fb28acdf10c0954c93853a6d5f849b54b5e999c5d3ed9aadb0fadd5da3d7944
+MISC ChangeLog 2234 SHA256 9c06fa32ab1f5f70b46fb9f532a100cf2fc6334a8e56acbe98c36790bd742b05 SHA512 64348b9da78d4eedd466a546963e00137febf79393f7cc994954f6b100113af67135826eb7eb6d435cceb9f30d6b3da1456830eef36759815bc8a9602bc77874 WHIRLPOOL bf4567bfe2873e93bd93b9844b2bf7cf4aa8110797e7e078ee38dbac57d6085a8726a5040a89fbc08ff8f59d07b8f9936648c87abde7673732d72e0a1425c3ae
+MISC metadata.xml 302 SHA256 e3eb82c5af7b22ad9f5286db9672a578297ad2f22d4b772b5ea4cd44c2e4b69a SHA512 56eecad64a95bef18df26d32d87911e46c8222079387c946b086c38be9b22ec07dbd715344f373ca486758dadf65d84f1ec289af065f964adcff8b2e8906b6ad WHIRLPOOL f78bcf5f51b88e732e3844a2ef413ab3ffa3aebefa6d15efb11df441b367999900389925bcc8c4909d96766f589fe9f22176f0e6a1ec8b15ddae0c96ae7b8abb
diff --git a/dev-util/bcc/bcc-0.2.0-r1.ebuild b/dev-util/bcc/bcc-0.2.0-r1.ebuild
new file mode 100644
index 000000000000..4cd829860f84
--- /dev/null
+++ b/dev-util/bcc/bcc-0.2.0-r1.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_{4,5} )
+
+inherit cmake-utils linux-info python-single-r1 python-utils-r1
+
+DESCRIPTION="Tools for BPF-based Linux IO analysis, networking, monitoring, and more"
+HOMEPAGE="https://iovisor.github.io/bcc/"
+EGIT_COMMIT="v${PV}"
+SRC_URI="https://github.com/iovisor/bcc/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
+RESTRICT="test"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND=">=dev-libs/elfutils-0.166:=
+ sys-devel/clang:=
+ >=sys-devel/llvm-3.7:=[llvm_targets_BPF(+)]
+ ${PYTHON_DEPS}"
+DEPEND="${RDEPEND}"
+S=${WORKDIR}/${PN}-${EGIT_COMMIT#v}
+
+pkg_pretend() {
+ local CONFIG_CHECK="~BPF ~BPF_SYSCALL ~NET_CLS_BPF ~NET_ACT_BPF
+ ~BPF_JIT ~BPF_EVENTS"
+
+ check_extra_config
+}
+
+pkg_setup() {
+ python-single-r1_pkg_setup
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DREVISION=${PV%%_*}
+ )
+
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+ python_fix_shebang "${ED}"
+}
diff --git a/dev-util/bcc/bcc-0.3.0.ebuild b/dev-util/bcc/bcc-0.3.0.ebuild
new file mode 100644
index 000000000000..4c73ab15df1c
--- /dev/null
+++ b/dev-util/bcc/bcc-0.3.0.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
+
+inherit cmake-utils linux-info python-single-r1 python-utils-r1
+
+DESCRIPTION="Tools for BPF-based Linux IO analysis, networking, monitoring, and more"
+HOMEPAGE="https://iovisor.github.io/bcc/"
+EGIT_COMMIT="v${PV}"
+SRC_URI="https://github.com/iovisor/bcc/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz
+ https://github.com/iovisor/bcc/commit/76887992d786064213af87694d2a21745e579338.patch -> bcc-0.3.0-llvm5-76887992d786064213af87694d2a21745e579338.patch"
+RESTRICT="test"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND=">=dev-libs/elfutils-0.166:=
+ sys-devel/clang:=
+ >=sys-devel/llvm-3.7:=[llvm_targets_BPF(+)]
+ ${PYTHON_DEPS}"
+DEPEND="${RDEPEND}"
+S=${WORKDIR}/${PN}-${EGIT_COMMIT#v}
+
+PATCHES=(
+ "${DISTDIR}/bcc-0.3.0-llvm5-76887992d786064213af87694d2a21745e579338.patch"
+)
+
+pkg_pretend() {
+ local CONFIG_CHECK="~BPF ~BPF_SYSCALL ~NET_CLS_BPF ~NET_ACT_BPF
+ ~BPF_JIT ~BPF_EVENTS"
+
+ check_extra_config
+}
+
+pkg_setup() {
+ python-single-r1_pkg_setup
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DREVISION=${PV%%_*}
+ )
+
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+ python_fix_shebang "${ED}"
+}
diff --git a/dev-util/bcc/bcc-0.3.0_p20170913.ebuild b/dev-util/bcc/bcc-0.3.0_p20170913.ebuild
new file mode 100644
index 000000000000..1aaafa79153e
--- /dev/null
+++ b/dev-util/bcc/bcc-0.3.0_p20170913.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
+
+inherit cmake-utils linux-info python-single-r1 python-utils-r1
+
+DESCRIPTION="Tools for BPF-based Linux IO analysis, networking, monitoring, and more"
+HOMEPAGE="https://iovisor.github.io/bcc/"
+EGIT_COMMIT="488c119ee7aa7598c11be876acd6761342874e68"
+SRC_URI="https://github.com/iovisor/bcc/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
+RESTRICT="test"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND=">=dev-libs/elfutils-0.166:=
+ sys-devel/clang:=
+ >=sys-devel/llvm-3.7:=[llvm_targets_BPF(+)]
+ ${PYTHON_DEPS}"
+DEPEND="${RDEPEND}"
+S=${WORKDIR}/${PN}-${EGIT_COMMIT#v}
+
+pkg_pretend() {
+ local CONFIG_CHECK="~BPF ~BPF_SYSCALL ~NET_CLS_BPF ~NET_ACT_BPF
+ ~BPF_JIT ~BPF_EVENTS"
+
+ check_extra_config
+}
+
+pkg_setup() {
+ python-single-r1_pkg_setup
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DREVISION=${PV%%_*}
+ )
+
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+ python_fix_shebang "${ED}"
+}
diff --git a/dev-util/bcc/metadata.xml b/dev-util/bcc/metadata.xml
new file mode 100644
index 000000000000..43eb746c3b02
--- /dev/null
+++ b/dev-util/bcc/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>zmedico@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">iovisor/bcc</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/bcpp/Manifest b/dev-util/bcpp/Manifest
new file mode 100644
index 000000000000..f3d44c1830d4
--- /dev/null
+++ b/dev-util/bcpp/Manifest
@@ -0,0 +1,5 @@
+DIST bcpp-20150811.tgz 145969 SHA256 6a18d68a09c4a0e8bf62d23d13ed7c8a62c98664a655f9d648bc466240ce97c3 SHA512 a11462574bd87cf66dc50ce23f188d335480aae5448b527694791d4b7ae5cde27c0e0c0850dc8899b2b66198c37a434985c833f95f7f2d2d88a3b7dfe4ff34a9 WHIRLPOOL 959677314ce1bbd361b3060f7f8f028ad89cce8d7167ecc169f6d49a854ecfadc50177be2dd2ffdac838252f67af72d2a4c341b2666208bc8cef1aadcee867db
+EBUILD bcpp-20150811-r1.ebuild 912 SHA256 c9cb5b4ba8d279486d48e4a399a26cafed19bebf09ff25a5a3e89fd4ec8fc69d SHA512 b76858bb46a572a0fb64184496146b6b2c47a87330095b96562d62617f2179b9c3f442692296614e2f02cccf206a34163823cff0840a707b51b754057c6eea58 WHIRLPOOL b7f56e3296eab78dc0729ce6cb6a3b35613550d2a8c605e85b588f02e2cac3347854aa6a9b2dff909247e6e6b80363308800d127f4a9f899ec92415039ae8142
+MISC ChangeLog 2767 SHA256 68e0945e02ad90fbb1eb34fba024b493d94734ef35ffc213b6879fe95638878c SHA512 8e9e30b1e45c17fb3da6bb172fff540a47e3fd3ee6f498054549c069f3523b4afe661975f14274d6fda6605b3bb1543fb245b2f142801c0007b052f4c248e337 WHIRLPOOL 769096f4182ecc5fafaa6dbb90bfd97bc629ec91cd41d1780bed120136b74e7b8f3881744ecfcab88c773740d64bd741d4de7bb0f8dee3d3f03ec15973bb0e6d
+MISC ChangeLog-2015 1960 SHA256 466157d58f4ad3fbcad6ed5cbe166e65d5a30739438596e28b8488f40c19254e SHA512 038d6d4c72ba4349b317e66921c1f97fa34b434f5b346075f5743cc067d7432d964783860a1b53bff3950544eedc9f294593fe6340efb2bf9304c735b52467c2 WHIRLPOOL 17739217adc68d4b2476d60b9ab9f0eff86ba1a95ed79146e7cdbe293572053bcc6adb9874d007d2993b8b4bd26ce47ceab4af2f68d61761cc32608d6958c6b9
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/dev-util/bcpp/bcpp-20150811-r1.ebuild b/dev-util/bcpp/bcpp-20150811-r1.ebuild
new file mode 100644
index 000000000000..32f56aaee9d7
--- /dev/null
+++ b/dev-util/bcpp/bcpp-20150811-r1.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+DESCRIPTION="Indents C/C++ source code"
+HOMEPAGE="http://invisible-island.net/bcpp/"
+SRC_URI="ftp://invisible-island.net/bcpp/${P}.tgz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
+IUSE=""
+
+src_compile() {
+ emake CPPFLAGS='-DBCPP_CONFIG_DIR=\"/etc/bcpp/\"'
+}
+
+src_install() {
+ default
+ dodoc CHANGES MANIFEST README VERSION txtdocs/hirachy.txt \
+ txtdocs/manual.txt
+
+ insinto /etc/bcpp
+ doins bcpp.cfg indent.cfg
+}
+
+pkg_postinst() {
+ elog "Check the documentation for more information on how to"
+ elog "Run bcpp. Please note that in order to get help for"
+ elog "bcpp, please run bcpp -h and not the command by itself."
+ elog ""
+ elog "Configuration files are at /etc/bcpp."
+ elog "To use them, use the -c option followed by the filename."
+}
diff --git a/dev-util/bcpp/metadata.xml b/dev-util/bcpp/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/dev-util/bcpp/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/dev-util/bdelta/Manifest b/dev-util/bdelta/Manifest
new file mode 100644
index 000000000000..1c3f0c97da93
--- /dev/null
+++ b/dev-util/bdelta/Manifest
@@ -0,0 +1,7 @@
+AUX bdelta-0.3.1-gcc-6.patch 876 SHA256 58570bbbaf410f08b98197b3b6d533a4d68455c7e4f46f6d41a63fedeeed5157 SHA512 d6b152bdfff022dc7edb0f234d1cece02518335a22b366a633e2288ac8bacd0a8b435935da4640b9888418aaf6ccadc937607b32ff8368034eb9426872279714 WHIRLPOOL ce9f7ebc7dd8f7074781ee80847be6ab67a559261799151f111c8951c97596bbd43542099028b93e6fb738fdae227dfb402c7359ad6dfdc2cc957c3b4edc6a0d
+AUX bdelta-0.3.1-soname.patch 722 SHA256 2c8bf0f279488f4fcaa6c276aa8b5518dd0ad786d7c3413b1f526411e80c0278 SHA512 2b70edefae1fe811e905b74a4ddbdedd0d51889b888f7d26c65b428634dd89e189c9a25ccb90cd74cd0ba2d2069f6fb4be9980db14d6799735c352b971e86e0c WHIRLPOOL 8defdd45b3ffbdd182a356cac8028e34d6dbe2c0541df07376541114daa7d8513494017f4723056c444a0b0f480431f1dc510ca304bbfa0738ff2beecaa48f64
+DIST bdelta-0.3.1.tar.gz 14476 SHA256 6633945f0893186b1b1ab4d930e6ab6b7fcec248e0288d28e77e0465074f82e7 SHA512 914e5c38297a273c446cddc17fc4cf312b4f54e6fe332e4ef0474104af559a6dca327cfb069f2d224b7cf63b8c81ae1cc4b384371b8fcc8c01cedc199ee871be WHIRLPOOL aec6fc9a3abf8988c70ec0c4aafe84dc1d98461a6920fdb4ebee6ce716e72b510c4d65652800bfe9eca664002bb8c069d81f365160a77d5034c4ca4feec743b6
+EBUILD bdelta-0.3.1-r1.ebuild 957 SHA256 aa6a66b4761491351d0a5aae62330ba863f9d8344818d8dfaf69a36080e67c39 SHA512 1226e66278741c8b31eeb61fd2a5ff07d200701b27da7b61ecb9517ddfd17162df5e4ed9af3f475975e17f08f0adadeba40732caa422b65c151bd6abf521ee6b WHIRLPOOL 877b35fed57e53d41231a25305ea54ef3907fbaec17e5beabd052a46cd41b74d67303988bf817365e2482a5131201c1a603f872977915e0efbe153a350a3c3c5
+MISC ChangeLog 3164 SHA256 8e884947b5757591ca6d941c16e513e60b625a25f1815c24defc86bcfdabd1c1 SHA512 e25eb18e1951a5d5b215c387537c287aba1589ebb0587392852ed5155f5e6c9bd76b010a033b5eecdb8972788b90f705585ea6e351f5f58218ed034ee86a186b WHIRLPOOL 31e05cde264bd678d1c66366536627d67c349b17d384d82244bfb01aabcf39a339be335a3f01b5096a85f201ac09d30c7ec9ba8362933bcd370b8311f6d1358b
+MISC ChangeLog-2015 3912 SHA256 63256815484cb4c56f49fc79686e21707973c1bd91b1d17af5b14a0d9fd23de1 SHA512 970da81efe5d4a9ef8501adeb28a87abf25f36a512ce564dfbb5bd77bb68c116e6b970fc3365677f3fe76a7a06a03e9381bb7cadc6873fe6d902977a116cfe48 WHIRLPOOL 76bec32551dbf8b438098844ccf8f67f09a8025e1c0a1d28205cc230be84fc3d6373e1af7a5f8cba63ec3e89b4a37e7682b91087894e7cf48e8b9137bc0f59ab
+MISC metadata.xml 525 SHA256 571fe7d280490bb57030aa3a0c3d3a6283d772ff3e9ed4bc56924dae78b83034 SHA512 735ca098dc9dc30e765d9c136b694246b2f257349e1e53d08f0dda4a5c6f95c83a12fdde3f2c952d1693533f3cc86c36b55bb0abc7634162f7232498d9eb892c WHIRLPOOL 7fa44525a8dd081a23689e5213ebf00c2b3a522c004648874d4d08eb7650c934d862f37ff5c4ed98acf6761d0077c00337283962dc466f119678148c2d6a610c
diff --git a/dev-util/bdelta/bdelta-0.3.1-r1.ebuild b/dev-util/bdelta/bdelta-0.3.1-r1.ebuild
new file mode 100644
index 000000000000..9bbc378a96af
--- /dev/null
+++ b/dev-util/bdelta/bdelta-0.3.1-r1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+if [[ ${PV} = *9999* ]]; then
+ EGIT_REPO_URI="https://github.com/jjwhitney/BDelta.git"
+ UNPACKER_ECLASS="git-2"
+ LIVE_EBUILD=yes
+else
+ UNPACKER_ECLASS="vcs-snapshot"
+fi
+
+inherit toolchain-funcs ${UNPACKER_ECLASS}
+
+if [[ -z ${LIVE_EBUILD} ]]; then
+ KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86 ~x86-linux"
+ SRC_URI="https://github.com/jjwhitney/BDelta/tarball/v${PV} -> ${P}.tar.gz"
+fi
+
+DESCRIPTION="Binary Delta - Efficient difference algorithm and format"
+HOMEPAGE="https://github.com/jjwhitney/BDelta"
+
+SLOT="0"
+LICENSE="MPL-2.0"
+IUSE=""
+
+PATCHES=(
+ "${FILESDIR}"/${P}-soname.patch
+ "${FILESDIR}"/${P}-gcc-6.patch
+)
+
+src_compile() {
+ emake -C src \
+ CXX="$(tc-getCXX)" \
+ CXXFLAGS="${CXXFLAGS}"
+}
+
+src_install() {
+ emake -C src install \
+ DESTDIR="${D}" \
+ PREFIX="${EPREFIX}/usr" \
+ LIBDIR="${EPREFIX}/usr/$(get_libdir)"
+ dodoc README
+}
diff --git a/dev-util/bdelta/files/bdelta-0.3.1-gcc-6.patch b/dev-util/bdelta/files/bdelta-0.3.1-gcc-6.patch
new file mode 100644
index 000000000000..9c998de37c3e
--- /dev/null
+++ b/dev-util/bdelta/files/bdelta-0.3.1-gcc-6.patch
@@ -0,0 +1,18 @@
+diff --git a/src/libbdelta.cpp b/src/libbdelta.cpp
+index b11bb2b..d769b0d 100644
+--- a/src/libbdelta.cpp
++++ b/src/libbdelta.cpp
+@@ -117,7 +117,3 @@ unsigned match_backward(BDelta_Instance *b, unsigned p1, unsigned p2, unsigned b
+ // Iterator helper function
+-template <class T>
+-inline T prior(T i) {return --i;}
+-template <class T>
+-inline T next(T i) {return ++i;}
+-
++template <class T> inline T bdelta_next(T i) {return ++i;}
+
+@@ -423,3 +419,3 @@ void bdelta_pass(BDelta_Instance *b, unsigned blocksize, unsigned minMatchSize,
+ if (! maxHoleSize || (u1.num <= maxHoleSize && u2.num <= maxHoleSize))
+- if (! (flags & BDELTA_SIDES_ORDERED) || (next(u1.ml) == u1.mr && next(u2.ml) == u2.mr))
++ if (! (flags & BDELTA_SIDES_ORDERED) || (bdelta_next(u1.ml) == u1.mr && bdelta_next(u2.ml) == u2.mr))
+ bdelta_pass_2(b, blocksize, minMatchSize, &u1, 1, &u2, 1);
diff --git a/dev-util/bdelta/files/bdelta-0.3.1-soname.patch b/dev-util/bdelta/files/bdelta-0.3.1-soname.patch
new file mode 100644
index 000000000000..360a16d7c0da
--- /dev/null
+++ b/dev-util/bdelta/files/bdelta-0.3.1-soname.patch
@@ -0,0 +1,21 @@
+diff --git a/src/Makefile b/src/Makefile
+index 65fb88d..3b4a261 100644
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -3,6 +3,7 @@ PREFIX ?= /usr
+ BINDIR ?= $(PREFIX)/bin
+ LIBDIR ?= ${PREFIX}/lib
+ CXXFLAGS += -O2
++DYLIB_LDFLAGS ?= -Wl,-soname,libbdelta.so
+
+ ifeq ($(shell uname -s),Darwin)
+ SHAREDLIB := libbdelta.dylib
+@@ -19,7 +20,7 @@ libbdelta.a: libbdelta.cpp compatibility.h checksum.h file.h
+ $(AR) rs $@ $<.o
+
+ libbdelta.so: libbdelta.cpp compatibility.h checksum.h file.h
+- $(CXX) -shared -fPIC $(CXXFLAGS) $(LDFLAGS) $< -o $@
++ $(CXX) -shared -fPIC $(CXXFLAGS) $(LDFLAGS) $(DYLIB_LDFLAGS) $< -o $@
+
+ libbdelta.dylib: libbdelta.cpp compatibility.h checksum.h file.h
+ $(CXX) -dynamiclib $(CXXFLAGS) $< -o $@
diff --git a/dev-util/bdelta/metadata.xml b/dev-util/bdelta/metadata.xml
new file mode 100644
index 000000000000..fcec0af29194
--- /dev/null
+++ b/dev-util/bdelta/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>slyfox@gentoo.org</email>
+ <name>Sergei Trofimovich</name>
+ <description>Primary Maintainer</description>
+ </maintainer>
+ <maintainer type="project">
+ <email>tools-portage@gentoo.org</email>
+ <name>Gentoo Portage tools team</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">jjwhitney/BDelta</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/beediff/Manifest b/dev-util/beediff/Manifest
new file mode 100644
index 000000000000..8e854aeb1ecf
--- /dev/null
+++ b/dev-util/beediff/Manifest
@@ -0,0 +1,5 @@
+DIST beediff_1.9_src.tar.gz 77382 SHA256 c733071a1884dea3eecc582d7006bb7c165563489ba65dc85bdfb58e2ab11bc8 SHA512 b3aaa2f5ca6907269fb38c33c136928d379e85b776ad1fb5acb2217063a3f742a32fe59010672bc5c53644e878cb31fb044658f8ffb8b8481c9867dfe2bf64c2 WHIRLPOOL e445cf2e476bceeca55d5d42ceebc7caf394bd7edbc79ea6c6e353f2885b85cd0055645622dedde026d00cced9344e6502bf28a4cb73bb6b00e30c725dcf8fdb
+EBUILD beediff-1.9.ebuild 687 SHA256 d8dd64912578c174f055366c76abfd3d68f576e8cd99fdffe8b0c48de7cff1cc SHA512 2e1f670d9967ff5d09ed07a443fbdbc881af1d2b1aa1780741ca05dfd27ea6c360ddc3d80811075564ecacfad1ba9703d406fab51643f1ac9eec636c88f64c31 WHIRLPOOL a951e9b2ec8b26c03504c78f4eb08a95afcb5662f2b5e5a1953002e5a3dcac620af3df59c4ec2839908e7ae55ff8c43253bd9c32cc84e293a08b9838d4a6d084
+MISC ChangeLog 2518 SHA256 71f7896640e815267e09b531ee0caea9fe7177ea734e4785652b82f53af7f27f SHA512 bca1643fc78d79f51195fec02ec5c9fbd9b8ef756513c8e71fa9e1bcaa91b0bfa6fd32331ab1bd482a7e379d89f80c14263afa15f88f5d897ea53ed4e27790dc WHIRLPOOL 0443e7e8d8cf3501bb5b4427d9db15ca03adfd0fe9454d8b51458590caf9c9fe21a5bd72cbf3cc85b2dcaeb5b9b254b445e3e916affbd5900e5f731470db5a04
+MISC ChangeLog-2015 717 SHA256 3abe48dd02dcab80c7ee683e704e0a2f3eee8cbd77d6253ce4083d111a532ce4 SHA512 164079787be0486cbdfbffe60cccba21f28d7f6ae41f49e1f35d4274732b99efd7600d79341f8276dcf707e490b4e584118d916e66824445af77d5e45516dfc9 WHIRLPOOL 4a37e8f03c74c0c9906461dd48d4b15daedd380903c10db27a73abf46a8f66403b440bc9742c23ab72b21513ce8168d3a97b84ee5391b093246c236fe7a71da5
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/dev-util/beediff/beediff-1.9.ebuild b/dev-util/beediff/beediff-1.9.ebuild
new file mode 100644
index 000000000000..291c7b1aab2a
--- /dev/null
+++ b/dev-util/beediff/beediff-1.9.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils qt4-r2
+
+DESCRIPTION="A graphical user interface for comparing and merging files"
+HOMEPAGE="http://www.beesoft.pl/index.php?id=beediff"
+SRC_URI="http://www.beesoft.pl/download/${PN}_${PV}_src.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-qt/qtcore:4
+ dev-qt/qtgui:4"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/${PN}
+
+src_prepare() {
+ sed -i \
+ -e '/QMAKE_CXXFLAGS/d' \
+ beediff.pro || die
+}
+
+src_install() {
+ dobin ${PN}
+ doicon img/${PN}.png
+ make_desktop_entry ${PN} "Beesoft Differ" ${PN} "Qt;Development;"
+ dodoc ChangeLog.txt
+}
diff --git a/dev-util/beediff/metadata.xml b/dev-util/beediff/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/dev-util/beediff/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/dev-util/biew/Manifest b/dev-util/biew/Manifest
new file mode 100644
index 000000000000..867f41df180b
--- /dev/null
+++ b/dev-util/biew/Manifest
@@ -0,0 +1,8 @@
+AUX biew-610-crash.patch 1254 SHA256 efa6a17d7d03a3a0bc15dab21df308c825b42de193a7f1bc89675786d69c65d9 SHA512 ec71e70aacd171125100e2482fd888002d47f95cbeb909ba78acc1c2383a70bad5b8f8fb7acb709989e1466722e974b5a4689394fcdad96903354bd32306746e WHIRLPOOL 9bff8e23131aacce8f77c0602a6646bf189bc55772ba06f0b43dc06c18c3f2bba9ee426b1cc5d671e32c74c0902e4f1e53291b3dce9716c9531c2cf9fc38892f
+AUX biew-610-fix_localedep-1.patch 1003 SHA256 094fd29bcfa683ae4fa449bf53d17fe53d9239806f1831e70bbecd75ec7996b3 SHA512 d141df509fda58d2044fc8488bb73eca8b908fa33dd0449724475d8e6109e186d67245506c4af3100d24378d51866367da1b09bffbb664e91ff79f6bde7e68eb WHIRLPOOL 625ede99b6470500fa5a0cc66978ceb5ed2629d466acf30ba07d4f2a082300ec6cdbcd6f0e0c0d9ab30b1f17f9b3824ae491241d01e35582de69ea820f8721ad
+AUX biew-610-portable_configure-1.patch 4932 SHA256 b306d264e94ae47ce843668aea5f59470cdbad81250a7de32858e02dc3cfc0e2 SHA512 cce6564e9d65b6f8c6c4a8dba1919dcfffbc22641ddfcb4fdf1bcab45d56b437dedbee328c86426c1b821b57b923e3d8cc97fdcf140662deb794f64e29c6847c WHIRLPOOL 467a9047259ff0d69492f48cc221efaed153da6b6d60f6a5e57476a4a47a9615d9565d15acf79154df38e365a86d5c5a081b07528cd4603cd5769e24d961f7d1
+DIST biew-610-src.tar.bz2 860517 SHA256 2e85f03c908dd6ec832461fbfbc79169a33f4caccf48c8fe60cbd29f5fb06d17 SHA512 df8d3c10c30e30db1bc5fdba73601a148f7a1480e69a3d03a02ec303534f37db9c5a9eb7ac087d8f1d8cc64d4a0f6e11548c5b385e132e3a981a6f328e3b5742 WHIRLPOOL df1227579b21155cc651c273802cd4b57cdbde12d4faa7532661e568f9b8b3de8db6c81d9283bef7ad705f6bdf4ff13a811ccf41ba23243947c6cb3c6d99e7ba
+EBUILD biew-6.1.0-r3.ebuild 1737 SHA256 4f6d4f578c7aedcb418e859014a09c9aed69b4a11e5de62a9e13342b98279785 SHA512 17c0f8d50d00c1eb9a90ca1527737cf4728401c94845baba5c71cde5f1f095e4cadf2088ed2b939f6e3b4540718246e4c1ca3f2eac50f421cbf5b29e02c604f5 WHIRLPOOL 279cab6c3cd1e08be2b02c0e7047fc5e4396731506474081d3294835394b56603d64d9fe5802d6573ba17730a936044662f12415b4280fccc0596a5d8f79d8f3
+MISC ChangeLog 2287 SHA256 e5adc45e4cf9f7b7be00197666437e3d5127a1d2720c95c4911c1cfa629265b7 SHA512 235a01842a232432087ec19ce1ddbbc37b7fe576f46fe50a4e6f4901275e704f60ff1d9aae1920e92889ee02fb944820481d856e862100ede40e8a60f80a47d3 WHIRLPOOL 8fa731c90eecbc66c35c9272c5c81b085db30af8d5ef2155955effcabb743ac36f3008e2e3869d768afe5862939867de92e463a697d271033c90a2db0b97a5a9
+MISC ChangeLog-2015 6094 SHA256 0f2d1662ebb0c1ac693b432c6e8e4acf84f232ac7cd8a8ae727696cd8f547b9e SHA512 00e7d7d952c78735d109ca6d1e0e9cbd7e33bf703e49162342d655f7578f0a734f6e883c5d54c0a276901588fc000b8f4d42c2fbb0ba63782337d0d949ecb7bb WHIRLPOOL 7792d44fb5d439d5b4c0388617cf64a376ddf18d2e573a6a6d9ff16d4a7e9f403e7cde344ae254a94eb193f8b83a119e979a9eda4c1d0e7c8317563ae2a74718
+MISC metadata.xml 327 SHA256 a6d0251edd9266eccffb3410347f291480c6114c7537617f77b3bc7aa9fc45ab SHA512 0e157ba1f9c8d78c203108d72e2871cda917a404223cd7d8b8ff261f72ec69be630a59e6e205112a0798d7daee06bfd60a3feaa950b327041187ae25701a24f2 WHIRLPOOL 01eb2696af5e789ebec97b349d9654da65c0461af98eb11d75c20a2839236186616a004977866cbead5ef11535321a6928c5c09ba6d7681e09bc6152d353d328
diff --git a/dev-util/biew/biew-6.1.0-r3.ebuild b/dev-util/biew/biew-6.1.0-r3.ebuild
new file mode 100644
index 000000000000..d35ab26a9595
--- /dev/null
+++ b/dev-util/biew/biew-6.1.0-r3.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+inherit eutils flag-o-matic toolchain-funcs versionator
+
+MY_P=${PN}-$(replace_all_version_separators "")
+
+DESCRIPTION="A portable viewer of binary files, hexadecimal and disassembler modes"
+HOMEPAGE="http://beye.sourceforge.net/"
+SRC_URI="mirror://sourceforge/beye/${PV}/${MY_P}-src.tar.bz2"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="gpm cpu_flags_x86_mmx cpu_flags_x86_sse"
+REQUIRED_USE="cpu_flags_x86_mmx cpu_flags_x86_sse"
+
+RDEPEND="gpm? ( sys-libs/gpm )"
+DEPEND="${RDEPEND}"
+
+pkg_setup() {
+ append-flags -mmmx -msse #362043
+}
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-610-fix_localedep-1.patch"
+ epatch "${FILESDIR}/${PN}-610-portable_configure-1.patch"
+ epatch "${FILESDIR}/${PN}-610-crash.patch"
+ sed -i -e 's^man/man1/biew.1^share/man/man1/biew.1^' makefile || die "Failed to edit makefile."
+}
+
+src_configure() {
+ if use gpm; then
+ append-cppflags -DHAVE_MOUSE
+ else
+ append-cppflags -UHAVE_MOUSE
+ fi
+ ./configure --datadir=/usr/share/${PN} \
+ --prefix=/usr \
+ --cc="$(tc-getCC)" \
+ --ld="$(tc-getCC)" \
+ --ar="$(tc-getAR) -rcu" \
+ --as="$(tc-getAS)" \
+ --ranlib="$(tc-getRANLIB)" || die "configure failed."
+}
+
+src_compile() {
+ emake LDFLAGS="${LDFLAGS}"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ dodoc doc/{biew_en,release,unix}.txt
+}
+
+pkg_postinst() {
+ elog
+ elog "Note: if you are upgrading from <=dev-util/biew-6.1.0 you will need"
+ elog "to change the paths in the setup dialog (F9) from /usr/share/ to"
+ elog "/usr/share/biew/ Alternatively, you can delete ~/.biewrc and it will"
+ elog "automatically determine the correct locations on the next run."
+ elog
+}
diff --git a/dev-util/biew/files/biew-610-crash.patch b/dev-util/biew/files/biew-610-crash.patch
new file mode 100644
index 000000000000..244f94a7ad53
--- /dev/null
+++ b/dev-util/biew/files/biew-610-crash.patch
@@ -0,0 +1,28 @@
+If .biewrc does not exist, the setup dialog appears at program start. If you try
+to click a checkbox with the mouse, biew tries to dereference a null pointer
+(because the MainWindow is not yet set).
+
+This patch adds a workaround. Note that you actually cannot click a checkbox.
+But that is what users might expect. (Maybe the biew code should be changed to
+handle this properly.) Well, it is better not to crash, even if the checkboxes
+are not clickable.
+
+ –nico
+
+
+diff -Naur biew-610.orig/events.c biew-610/events.c
+--- biew-610.orig/events.c 2009-09-03 16:57:40.000000000 +0000
++++ biew-610/events.c 2011-09-06 09:41:01.000000000 +0000
+@@ -118,7 +118,11 @@
+ }
+ else
+ {
+- X1 = 0; X2 = twGetClientWidth(MainWnd); Y1 = 1; Y2 = twGetClientHeight(MainWnd) - 1;
++ TWindow *wnd =
++ MainWnd ? MainWnd : /*XXX:drop this line?*/
++ twGetWinAtPos(mx, my);
++ if(!wnd) return KE_MOUSE;
++ X1 = 0; X2 = twGetClientWidth(wnd); Y1 = 1; Y2 = twGetClientHeight(wnd) - 1;
+ }
+ wdh = X2 - X1;
+ hght = Y2 - Y1;
diff --git a/dev-util/biew/files/biew-610-fix_localedep-1.patch b/dev-util/biew/files/biew-610-fix_localedep-1.patch
new file mode 100644
index 000000000000..babe994e070a
--- /dev/null
+++ b/dev-util/biew/files/biew-610-fix_localedep-1.patch
@@ -0,0 +1,26 @@
+The configure script of biew-6.1.0 fails with
+ Checking for C compiler name ... gcc-Version
+if using the de_DE.UTF-8 locale and sys-devel/gcc-4.5.2. It may fail with other
+locales and/or compilers, too. The problem occurs due to the fact that the
+string “gcc version” written by gcc for ‘gcc -v’ is translated according to the
+language (German in the case mentioned above).
+
+This patch makes sure that the POSIX locale is used when the biew configure
+script checks for the name of the compiler. This allows the configure script to
+parse the output properly.
+
+ –nico
+
+
+diff -Naur biew-610.orig/configure biew-610/configure
+--- biew-610.orig/configure 2009-11-13 15:52:36.000000000 +0100
++++ biew-610/configure 2011-01-13 11:11:59.000000000 +0100
+@@ -497,7 +497,7 @@
+
+ _cdefos="-DDATADIR='\"$_datadir\"'"
+
+-cc_name=`$_cc -v 2>&1 | tail -n 1 | cut -d ' ' -f 1`
++cc_name=`LC_ALL=POSIX $_cc -v 2>&1 | tail -n 1 | cut -d ' ' -f 1`
+ cc_version=`$_cc -dumpversion`
+
+ echocheck "C compiler name"
diff --git a/dev-util/biew/files/biew-610-portable_configure-1.patch b/dev-util/biew/files/biew-610-portable_configure-1.patch
new file mode 100644
index 000000000000..c64f6280ba08
--- /dev/null
+++ b/dev-util/biew/files/biew-610-portable_configure-1.patch
@@ -0,0 +1,167 @@
+Changes the biew-610 configure script to use portable test constructs. See the
+Autoconf manual <URL:https://www.gnu.org/software/autoconf/manual/html_node/
+Limitations-of-Builtins.html#index-g_t_0040command_007btest_007d-1725> for
+explanations.
+
+ –nico
+
+
+diff -Naur biew-610.orig/configure biew-610/configure
+--- biew-610.orig/configure 2009-11-13 14:52:36.000000000 +0000
++++ biew-610/configure 2011-02-24 09:44:10.000000000 +0000
+@@ -171,7 +171,7 @@
+ # 1st: print out help
+
+ for parm in "$@" ; do
+- if test "$parm" = "--help" || test "$parm" = "-help" || test "$parm" = "-h" ; then
++ if test "X$parm" = "X--help" || test "X$parm" = "X-help" || test "X$parm" = "X-h" ; then
+ cat << EOF
+
+ Usage: $0 [OPTIONS]...
+@@ -235,7 +235,7 @@
+ _cp=cp
+ _libext=a
+ _libprefix=lib
+-test "$CC" && _cc="$CC"
++test "X$CC" != X && _cc="$CC"
+ _prefix="/usr/local"
+ _datadir=
+ _libdir=
+@@ -340,11 +340,11 @@
+ ;;
+ esac
+ done
+-test -z "$_datadir" && _datadir=$_prefix"/share/biew"
+-test -z "$_libdir" && _libdir=$_prefix"/lib/biew"
++test "X$_datadir" = X && _datadir=$_prefix"/share/biew"
++test "X$_libdir" = X && _libdir=$_prefix"/lib/biew"
+
+ for I in "$TMPDIR" "$TEMPDIR" "/tmp" ; do
+- test "$I" && break
++ test "X$I" != X && break
+ done
+
+ TMPLOG="config.log"
+@@ -357,8 +357,8 @@
+ _tee="tee -a $TMPLOG"
+
+ echocheck "architecture"
+-if test "$_target_arch" = auto ; then
+- if test -z "$host_arch" ; then
++if test "X$_target_arch" = Xauto ; then
++ if test "X$host_arch" = X ; then
+ host_arch=`( uname -p ) 2>&1`
+ log "uname -p :" "$host_arch"
+ case "$host_arch" in
+@@ -416,8 +416,8 @@
+ x86_64 && _bitness=64
+
+ echocheck "target OS"
+-if test "$_target_system" = auto ; then
+- if test -z "$system_name" ; then
++if test "X$_target_system" = Xauto ; then
++ if test "X$system_name" = X ; then
+ # OS name
+ system_name=`uname -s`
+ log "uname -s :" "$system_name"
+@@ -461,8 +461,8 @@
+ fi
+ fi
+
+-if test "$_target_system" = auto ; then
+- if test -z "$system_name" ; then
++if test "X$_target_system" = Xauto ; then
++ if test "X$system_name" = X ; then
+ # OS name
+ system_name=`/bin/sh --version 2>&1 | sed -n 's/^.*\([(]\)./\1/p'`
+ log "/bin/sh --version:" "$system_name"
+@@ -549,7 +549,7 @@
+ ;;
+ esac
+
+-if test -z "$_x11incdir" ; then
++if test "X$_x11incdir" = X ; then
+ echocheck "X11 headers"
+ for I in /usr/include /usr/X11R6/include /usr/X11/include /usr/openwin/include ; do
+ if test -d "$I/X11" ; then
+@@ -559,11 +559,11 @@
+ fi
+ done
+ fi
+-if test -z "$_x11incdir" ; then
++if test "X$_x11incdir" = X ; then
+ echores "x11inc not found"
+ fi
+
+-if test -z "$_x11libdir" ; then
++if test "X$_x11libdir" = X ; then
+ echocheck "X11 libs"
+ for I in /usr/X11R6/lib /usr/X11/lib /usr/lib32 /usr/openwin/lib ; do
+ if test -d "$I" ; then
+@@ -573,24 +573,24 @@
+ fi
+ done
+ fi
+-if test -z "$_x11libdir" ; then
++if test "X$_x11libdir" = X ; then
+ echores "x11lib not found"
+ fi
+
+-test -z "$_debug" && _osldef="-s $_osldef" || _cdefos="-finline-limit-5 $_cdefos"
+-if test "$_profile" -o "$_debug" -o "$_gcov"; then
++test "X$_debug" = X && _osldef="-s $_osldef" || _cdefos="-finline-limit-5 $_cdefos"
++if test "X$_profile" != X || test "X$_debug" != X || test "X$_gcov" != X ; then
+ _cdefos="-W -Wall -O2 -fno-builtin $_debug $_profile $_gcov $_cdefos"
+ _osldef="$_debug $_profile $_osldef"
+-elif test -z "$CFLAGS" ; then
++elif test "X$CFLAGS" = X ; then
+ _cdefos="-DNDEBUG=1 -O2 -ffast-math -fomit-frame-pointer $_cdefos"
+ x86 && _cdefos="-mmmx -msse $_cdefos"
+ else
+ _cdefos="-DNDEBUG=1 $CFLAGS $_cdefos"
+ fi
+-test -n "$LDFLAGS" && _osldef="$LDFLAGS $_osldef"
+-test -n "$LIBS" && _osldef="$LIBS $_osldef"
++test "X$LDFLAGS" != X && _osldef="$LDFLAGS $_osldef"
++test "X$LIBS" != X && _osldef="$LIBS $_osldef"
+
+-if test "$_target_system" = dos ; then
++if test "X$_target_system" = Xdos ; then
+ # disable cc_check call for DJGPP due bugs in bash
+ _cdefos="-D__HAVE_PRAGMA_PACK__=1 $_cdefos"
+ else
+@@ -668,10 +668,10 @@
+ _curseslib=
+ disable _curses
+ cc_check -lcurses && _curseslib="-lcurses"
+- if test -z "$_curseslib" ; then
++ if test "X$_curseslib" = X ; then
+ cc_check -lncurses && _curseslib="-lncurses"
+ fi
+- if test -n "$_curseslib" ; then
++ if test "X$_curseslib" != X ; then
+ enable _curses
+ _cdefos="-D_CURSES_ -D__OS_NAME__='\"Unix/Curses\"' $_cdefos"
+ _oslibs="$_curseslib $_oslibs"
+@@ -711,10 +711,10 @@
+ enabled sys_resource_h && _cdefos="-DHAVE_SYS_RESOURCE=1 $_cdefos"
+ echores "$sys_resource_h"
+
+-if test -z "$_x11libdir" ; then
++if test "X$_x11libdir" = X ; then
+ _cdefos="$_cdefos"
+ else
+- if test -z "$_x11incdir" ; then
++ if test "X$_x11incdir" = X ; then
+ _cdefos="$_cdefos"
+ else
+ _cdefos="-DHAVE_X11 $_cdefos"
+@@ -738,7 +738,7 @@
+ fi
+
+ # Checking for INSTALL
+-if test -z $_install
++if test "X$_install" = X
+ then
+ _install="install"
+ $_install --version 1>/dev/null 2>/dev/null || _install=""
diff --git a/dev-util/biew/metadata.xml b/dev-util/biew/metadata.xml
new file mode 100644
index 000000000000..5894b06df22b
--- /dev/null
+++ b/dev-util/biew/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>xmw@gentoo.org</email>
+ <name>Michael Weber</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">beye</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/bin_replace_string/Manifest b/dev-util/bin_replace_string/Manifest
new file mode 100644
index 000000000000..cd6d5f47358f
--- /dev/null
+++ b/dev-util/bin_replace_string/Manifest
@@ -0,0 +1,5 @@
+DIST bin_replace_string-0.2.tar.bz2 69287 SHA256 4ab092edc3e30dec85b01747b67cdcabb1b535bdbe74732879d9e9cb7b6bd7be SHA512 1dc369a036df48afb199d90438db34139c58ddb9bff61ccec11b78ff2173130bf8124eac784088b3ec3f376a515a543df22e81f8bbac201abc3e3e5dec8d1a92 WHIRLPOOL fef60d8973a14983cdb8a747acc85d87d52c622bcadf84758f733e18e60e2ab4ed4c1927b4b62fbf8780b1d92c2b86f1459137302958bccdc463b16d078c1868
+EBUILD bin_replace_string-0.2.ebuild 562 SHA256 dead445f2fc0d27a4842d12ccde841d0bc0d7dec9bc19cc0052ec2062ab11e54 SHA512 5e963ac669d4f94864d078f174a47e697e3a6e2fdc78261da39737d02c9a29f6cbc3595fe0819fc90a26176e6fd14e30e7ebcb4e5c52003b7deb24c0891eb673 WHIRLPOOL 5ddab1b1fe3994377c5452c3826ae0f3475fb17c4bb769af6815262a65d7c2784a66156d86aed040471e19aa6d118679395513cf38f6df40d58be2f1795d0c70
+MISC ChangeLog 2429 SHA256 9bee06c1c6331324acd4b1d69694d960200c86b2cb51b343e1f087bec3d5a166 SHA512 bc5de5a7996e2d585e6328aa285b24991f330c9715fda5639ad0430da24256fed008b75084a6de2e2c4312070cdd8602b36aeb5a41de4de6a1f2a74221922401 WHIRLPOOL 538a7f9f6122fc67082272ace900ca923ab92c040258482f0bfb0fca3832186489d8d60c466fcc8d285346447d0a8a9c6183ea62a1f614f6017b9659c7d05fc8
+MISC ChangeLog-2015 497 SHA256 083137a6b7421ba28a8b367b9db60216dc93f952904e7171e6f40c0b7eb9415e SHA512 a8200388fea0a6127c4dafa4e518d51ede09770d960eb2c43884220cd1a3bdf5194ad113ec585e1320ef4a40d77c4539c62f77883245c9fc1856ef75f411062b WHIRLPOOL ccc9cba2daf7a52b18f09e2a4707ed06196a8b2320ad7c3c6f74fea54b01063a33b8ede60befbf267c4f7be3d1ef3bdba02bc31e31281614a2ca13fe9424bc81
+MISC metadata.xml 139 SHA256 5cdc1888ebc8807b9a37b1d33429c61cabe7415a4f240e21a4c2ff8eca7a34ed SHA512 8be912ace7468a4396eb1da00a9785030a8ce35da4357a01591876a1056fd45e44da65de2af3e1eb0506ce6551714962c40c3ae5a3aefa2ad231de35af2519be WHIRLPOOL 620431014dd4fb752c3d46d11904ecb2c6d4525f5b4e30f4f778a3b74d3f7187ae4ccd856ebd7eabb48ce261b21849c732928fe647edce024a3fdc082d8f8630
diff --git a/dev-util/bin_replace_string/bin_replace_string-0.2.ebuild b/dev-util/bin_replace_string/bin_replace_string-0.2.ebuild
new file mode 100644
index 000000000000..d51ab7696095
--- /dev/null
+++ b/dev-util/bin_replace_string/bin_replace_string-0.2.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit autotools-utils
+
+DESCRIPTION="A tool to edit C strings in compiled binaries"
+HOMEPAGE="http://ohnopub.net/~ohnobinki/bin_replace_string"
+SRC_URI="ftp://mirror.ohnopub.net/mirror/${P}.tar.bz2"
+LICENSE="AGPL-3"
+
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+IUSE="doc"
+
+RDEPEND="virtual/libelf:0"
+DEPEND="doc? ( app-text/txt2man )
+ ${RDEPEND}"
+
+src_configure() {
+ local myeconfargs=(
+ $(use_enable doc)
+ )
+
+ autotools-utils_src_configure
+}
diff --git a/dev-util/bin_replace_string/metadata.xml b/dev-util/bin_replace_string/metadata.xml
new file mode 100644
index 000000000000..097975e3adc2
--- /dev/null
+++ b/dev-util/bin_replace_string/metadata.xml
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+</pkgmetadata>
diff --git a/dev-util/bitcoin-tx/Manifest b/dev-util/bitcoin-tx/Manifest
new file mode 100644
index 000000000000..508f59d7a038
--- /dev/null
+++ b/dev-util/bitcoin-tx/Manifest
@@ -0,0 +1,13 @@
+DIST bitcoin-0.13.0.knots20160814.patches.tar.xz 128520 SHA256 be92292d55e624ce8494210a51d6228f20d3f7b5ee2faf4185ba326a5f18fd30 SHA512 6a02c8bdfbf4373b6e6cff6ebbfe70e71121caae50e39b68e7e73b3dbe83b5717a03710c4a444ed9b5b9d09aee9494affcf52b86f1b05987d16953324d954ca2 WHIRLPOOL c41dbadc730f1b8df2244dd294c63a1989ebaf4bc2057435eeb0743555345a6158c36b34589427c22eb717af9358096fb6ab3dd851fffc5cafafa76c812b7fd8
+DIST bitcoin-0.13.1.knots20161027.patches.tar.xz 386532 SHA256 b3242fa3bf7959de31aba47b4124e582d0a3d2924a5fe48f91676ef586a5d2f0 SHA512 de4fee50bb6fcf416f4d0d52283ae4b80fd06a544e9312808bec167b471bc1a20d6ded1ebba92cef937b2bd7ebae19c5c1153d6a10dad40cba4fb6c0a98b4fb6 WHIRLPOOL 768d3d1fdfe15d5d36d3d724224e3e33da5292764b3264bba89e3186e03d05cf57e957c071850bacc0fb49c7aae6cfd01bb649ffd82acfa4cfe695ef4b7e3b43
+DIST bitcoin-0.13.2.knots20170102.patches.tar.xz 434012 SHA256 837dbc5a69a25a844681971e3b5bc22c93655e893fc579094556c10bc038488a SHA512 a19b9d469ff03396375c6f97e3e1f7f24243518e4ca46390bc33debbe5c09dffc8ee8fff4d656b385e38ef0c70e46a474170fd377b8cb94d6cdc2ff58114b061 WHIRLPOOL a5eaf1076eae2162d672ad705e8085e7034e163095d0645cd3ee522a11062fba8928a2d2dad94bda28538698f61fe46b3501fe978ff7940237e3f6895eafa6ae
+DIST bitcoin-v0.13.0.tgz 5836862 SHA256 f7dfb156667c366390339773cf86efe3dda9318fd3a6d3c25bb0026b93d772af SHA512 ed49df78cab36ba30c83591724f1a21f7d2c49aa9cd5185ac09b52473aebcb7f406885d593cc7d99ffc87e3607bbeb8a7668a15a892fc6c654d31a5cfe3f53c1 WHIRLPOOL 3d03247795f37afd7a08543986d41df6b03d416993aee603637b5bae783bd6cfaf0521e264224e5d8e1b923ea7ce53e47a967ad72ec83a8982a995309aa98b62
+DIST bitcoin-v0.13.1.tgz 5955845 SHA256 8523eb58fcbba68d07ccff0ce3a8878c3de9c9b532949d36dae56969bf3594e0 SHA512 396196fa5325b650c61b966820454712d7e6c3e7a61cb95bacab59a0b6257d113c60105393a2ad1c33623ae81026e15c7356433fd7bafe2888e6b961487259c3 WHIRLPOOL 6795bdd3d57b358c97ffa71f4dbfdae938500c0be190bdaf73829575f34d1a17443e34d71ddb1cae495640b01e8be3de8b8de490cd34ce6fe680c0069e9fd067
+DIST bitcoin-v0.13.2.tgz 6088472 SHA256 f2148eef9ad1a938e2ca053d4ba5712f05245afbcff616e839011ec07324352a SHA512 2c053f1f55a426499e50cbadfccfd7c47be25fd10bb8e3d21fb6f408261c5a0c35f2745891e0eeb0fe953428337e40b6dc730499fcd3ba465315d592352833ca WHIRLPOOL fb25d8cc0360435f1a8c2eb3465911d080eecc9247cb8373ca73bf5bf8a1cce02028e9f0e86102d55049c7a1c164fd04d3e777976c3aa66a21ce5f9ff3d602eb
+EBUILD bitcoin-tx-0.13.0.ebuild 528 SHA256 eafeb9c276d63ea4ecd914490a75e2aeb93b40d7c709ecf8918d68a07ab6f8d0 SHA512 42d7da959153cee964d123c71bf1e208efa2c659962e3aff3bf4a3870bdfdf60d7ead83f406cb34c2f0c000647c1bf253fddecd44a2367e66ad98af4505d1f0e WHIRLPOOL ed7b682a5f7b642f79c53adff2da761c124da0c56726688b0c1f2827a5c170ab8a05a68c542561db052e3e14219e7d05134207225c59ae176ee10f9a37798625
+EBUILD bitcoin-tx-0.13.1.ebuild 528 SHA256 35d60947005aa61b7b4cc5f2202507647e76ba855491e5f4be902b20f025f9e7 SHA512 023bcfe09bd579348696e3ff8633ec7632154fbb1e6e7f00cc95fb3dba78c010bffc94df563bada1a5261d409fcc1c373d60a078d4421db1d0c0974a07f1df98 WHIRLPOOL 96bc742e1e163ec7b616b422834050ded8a072d61da37810d2cafadfca28a5eae158b3c4e23fad3242709fd5a73d16be6df9d2f168f4041466b7cda37fcca2f5
+EBUILD bitcoin-tx-0.13.2.ebuild 530 SHA256 116e8ec7033e3ff390cbc24fc98ea5ca8ebd0e235d4ca9d1ed1cf35f11577e6d SHA512 ce2ecc28c077fdd95022ac4783deea341a756cfc7061923ad3046cc620699b42407e57a350c4faa7b52c8818eea0bb2a9cb834920961987edf5e83123748344a WHIRLPOOL 1eb23201a595ca871ed393063b2ee140e4bb901538bab51b7a099563af7e3c5f043d3e25cfd1449aec31ea9321ea7f75a2c46678e527502eb5ed6c5029043d7f
+EBUILD bitcoin-tx-9999.ebuild 369 SHA256 e0f6452e8f75209cbc6c72ff5e934e81f2e6c7ecf1d71debb951019a0151480d SHA512 d45dd15def027bb94ba98512b76be42317098f5ac76b704f8754ef757d7f72b7ba1b4612037d2efd6f1fcd37ab58a5008a5aca3ac87f1a764b180d0f193b10f8 WHIRLPOOL 88f9f2ed3f2db867cbe802176e23eb46dc6559a79b620f7d967fd0c6542868584eff5bfe2c0b96f6afe3911bf1f86635265aa574d052d99598aa23388bcc8f63
+MISC ChangeLog 4901 SHA256 814b2d7d8a9f943f6caf359afc6250f3af8e25c6fb314626fa48e83d57d8f2e9 SHA512 c6077fc244dd875fe7b5b0b6dda3d678699e477c25cd508bbcd1f5f2f856d950ad71c156f746c0d377e05fda816620c3d8dd289c694824c865b427c793157b55 WHIRLPOOL 35bc15fcb97980ad9137f600e96104e47ae7b0f2e72db76c6063ddb054a8f240646fb74abbad6fbb0e8220c7cdff9be9a46d4bf4295d52bc61252a8731052b17
+MISC ChangeLog-2015 1131 SHA256 68ee212c99d327f5da5af6d9852083ae11a9ed8a7e412fceeea983b9444312d1 SHA512 042c88adc8b536f4773383bfb295ffa487869687ab0d4fb30227c7a0e86b3f60fcc79447c668fd29da7b2bd93b6ed9159c15a72ce8b0fad4885669315361f3e1 WHIRLPOOL b7e6d400cf4263a84f32b55c073cbb447c46737f3d83c8cfdf1c6b24acf7f2d7d4cf53097073cd6289d7c1dc3721388b7b93b60c946458f6cee2d1b37794d07d
+MISC metadata.xml 615 SHA256 51fbee6b5180d70839cfd889faf33764318750c81e27c10cd49f865d04ae8aac SHA512 040c29a3e1c5221656295920117d05b5d098c445b77efdd39a7e6c3877c663622b98eddbd485e0b6599281ca2a5939035328ffcb7ac1a2cd3d3d1e6324f6b638 WHIRLPOOL dd88fa718e8ec4cb9457db3dce064109f9dfb9a2a824b598cbf5b5eab32e0758de3e92a930320684c684e8c40d29529ac986bb0f8dde218e7bccbefc7e664a30
diff --git a/dev-util/bitcoin-tx/bitcoin-tx-0.13.0.ebuild b/dev-util/bitcoin-tx/bitcoin-tx-0.13.0.ebuild
new file mode 100644
index 000000000000..8d4a32a67282
--- /dev/null
+++ b/dev-util/bitcoin-tx/bitcoin-tx-0.13.0.ebuild
@@ -0,0 +1,21 @@
+# Copyright 2010-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+BITCOINCORE_COMMITHASH="a402396dce64c42ea73535b7dde4a9164d430438"
+BITCOINCORE_LJR_DATE="20160814"
+BITCOINCORE_IUSE="ljr"
+BITCOINCORE_NEED_LIBSECP256K1=1
+BITCOINCORE_NO_DEPEND="libevent"
+inherit bitcoincore
+
+DESCRIPTION="Command-line Bitcoin transaction tool"
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~x86 ~amd64-linux ~x86-linux"
+
+src_configure() {
+ bitcoincore_conf \
+ --enable-util-tx
+}
diff --git a/dev-util/bitcoin-tx/bitcoin-tx-0.13.1.ebuild b/dev-util/bitcoin-tx/bitcoin-tx-0.13.1.ebuild
new file mode 100644
index 000000000000..65a55ef51ccb
--- /dev/null
+++ b/dev-util/bitcoin-tx/bitcoin-tx-0.13.1.ebuild
@@ -0,0 +1,21 @@
+# Copyright 2010-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+BITCOINCORE_COMMITHASH="03422e564b552c1d3c16ae854f8471f7cb39e25d"
+BITCOINCORE_LJR_DATE="20161027"
+BITCOINCORE_IUSE="ljr"
+BITCOINCORE_NEED_LIBSECP256K1=1
+BITCOINCORE_NO_DEPEND="libevent"
+inherit bitcoincore
+
+DESCRIPTION="Command-line Bitcoin transaction tool"
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~x86 ~amd64-linux ~x86-linux"
+
+src_configure() {
+ bitcoincore_conf \
+ --enable-util-tx
+}
diff --git a/dev-util/bitcoin-tx/bitcoin-tx-0.13.2.ebuild b/dev-util/bitcoin-tx/bitcoin-tx-0.13.2.ebuild
new file mode 100644
index 000000000000..09fb488c8973
--- /dev/null
+++ b/dev-util/bitcoin-tx/bitcoin-tx-0.13.2.ebuild
@@ -0,0 +1,21 @@
+# Copyright 2010-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+BITCOINCORE_COMMITHASH="0d719145b018e28d48d35c2646a5962b87c60436"
+BITCOINCORE_LJR_DATE="20170102"
+BITCOINCORE_IUSE="knots"
+BITCOINCORE_NEED_LIBSECP256K1=1
+BITCOINCORE_NO_DEPEND="libevent"
+inherit bitcoincore
+
+DESCRIPTION="Command-line Bitcoin transaction tool"
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~x86 ~amd64-linux ~x86-linux"
+
+src_configure() {
+ bitcoincore_conf \
+ --enable-util-tx
+}
diff --git a/dev-util/bitcoin-tx/bitcoin-tx-9999.ebuild b/dev-util/bitcoin-tx/bitcoin-tx-9999.ebuild
new file mode 100644
index 000000000000..51d37bc8c3d3
--- /dev/null
+++ b/dev-util/bitcoin-tx/bitcoin-tx-9999.ebuild
@@ -0,0 +1,19 @@
+# Copyright 2010-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+BITCOINCORE_IUSE=""
+BITCOINCORE_NEED_LIBSECP256K1=1
+BITCOINCORE_NO_DEPEND="libevent"
+inherit bitcoincore
+
+DESCRIPTION="Command-line Bitcoin transaction tool"
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS=""
+
+src_configure() {
+ bitcoincore_conf \
+ --enable-util-tx
+}
diff --git a/dev-util/bitcoin-tx/metadata.xml b/dev-util/bitcoin-tx/metadata.xml
new file mode 100644
index 000000000000..3747c3a5a6e9
--- /dev/null
+++ b/dev-util/bitcoin-tx/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>luke-jr+gentoobugs@utopios.org</email>
+ <name>Luke Dashjr</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <use>
+ <flag name="knots">Build enhanced Bitcoin Knots version, rather than Bitcoin Core</flag>
+ <flag name="ljr">Enable Luke Dashjr's patches</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">bitcoin/bitcoin</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/bless/Manifest b/dev-util/bless/Manifest
new file mode 100644
index 000000000000..16bd9824b017
--- /dev/null
+++ b/dev-util/bless/Manifest
@@ -0,0 +1,8 @@
+AUX bless-0.6.0-docpath.patch 2250 SHA256 c8d792ed10651537824773c3d6ec63bee037d5ee0ae7e27309098c68ce886ff4 SHA512 f5917b220db0b143dc77ba00fc517c5b397cdabea67627630fd92b942ae406b67bb48e1f63b68d8e53fa8b979e800130036fdb4782525102abfc70c751094dc1 WHIRLPOOL 38d98c9245b2a4512ce509fb325ae569d3149245976dc104d328b654ae3e671071c5d4d0d6cac4b0b6ee5b7ced27d74393ac233d1ea52cef539d4ed2846392af
+AUX bless-0.6.0-mono-4.patch 969 SHA256 61ebde3711e06b9fb336e80906a154653a3fcf5ea42f2eb6d56dab155a900e9d SHA512 729efc197b66a53931079b5e4969b62dda3842a0d13358b62fa53cfbf673351c9622908976651d343d060d7ac37e35968733243719e76bd5f066e842ac641f84 WHIRLPOOL a9fb55c60fefe57c750ca0b21db2f2e81f1d952c0ccf3bb46ac4aca4939695c0f5d7f3123beb22c1d31ee5e819ffda01af9fbf8612012d04c2de36e348291676
+AUX bless-0.6.0-pixmap.patch 493 SHA256 f759551bc20e146e4c8f7a90ed2ad3c2ed15e879eedbd4edd73518f41a9a3a7e SHA512 0fc6281e8cb6b981f5a73e98bf86a93bf635cd77133c7d3e964ef0b2ce7e855f38cb4db6216bc876f9435d5b2f4293a39cb859cb443381569e5b56a364ac30ee WHIRLPOOL d14c16d3f5b456a0114f653453d140dd582d0f682980451c13f436e2786301270ed641c4de304dfd2a3e4fa87bbfce1a663a48f178d78b76586c771eb4852454
+DIST bless-0.6.0.tar.gz 745694 SHA256 34dc984c35df19184e5b61a4b11fe79901c417693f57d874dc70ef0c58896de1 SHA512 69d2279b64503b97c8a67991c2a7a527d872835e3acfad7eafa8d87e376d2cecf3fa27de9e12726680a8f3c8ac92b888a4895a1f342c4beeaceef9e1f3ededdb WHIRLPOOL 6c9db6826fc5db1df38344d599ffad12965b1f6d24e367fdbeca1fe57b4beeac54b6a18b7faa320e5719417a4f601178e7034fa800a217cd7ebaa78f9c4d911b
+EBUILD bless-0.6.0-r2.ebuild 1208 SHA256 a8ff06023a91d2149a5a7f6165a19f51edd108c2050fed8a28a7a501b4d923d2 SHA512 b2db2a095e66b24a16457fd4d22e03be4150df63f4b8377c671277affb2076df8481243033a1d4d5c806e10e8c293902a63da0ca2ffcc9083981508400b7e273 WHIRLPOOL e425515816a84f29710de044b44fa8b8d19624ea0e126577f0df930e73d2dc4dd8c92930bab4606998c592884c3610a580728fa126e61ddb8d680b0654f7b26c
+MISC ChangeLog 3049 SHA256 44b80e9290dee824ce0d0946f320b96ff7e4b70cae82565d647474cbfc290f79 SHA512 348ba8dfc70f8ad3c9175be7c3f5c86339a1ef23070cdeedd2618dfedf2e16c4d43e773f09c0f221d5c98a9d19a177ed87c4b4040818a1b5cdd1aeac8c2bbd03 WHIRLPOOL d6e74ba6004d06e8db3a01ab157a7384a32012ad801e75d7af756a95b6c01b83505373d884b116c25030c8d22fe3762f2f5f23cf3a295be0b8ab8a96650689ff
+MISC ChangeLog-2015 3849 SHA256 9b8b93996199d89f6837b236407898918755fbec8ffd1f8f8db88292b84abedb SHA512 1ba7bed0b3e7ffbb648eb8cce9731e61ec216d04dd43c936512a714af3c3c5ff9e54e966ab55a46e9bcba19ab4ff82298308a43bcb43f57b55022652ce35717f WHIRLPOOL 212ba0b5d5c4cb4f4acc78aea3f270b2222e3e2b68df265317114af528539df9b04f43cc4d83312ee86615709c121cab0a95873cc9b2a46eb83f1580e64ec2bf
+MISC metadata.xml 242 SHA256 03cf0d191396c8ef17eb6ecdf657631ed3a21737658856f3189ec5640235d4fa SHA512 c305f98db61dfe31ddc48084c932b6c45eee7a8cd664ebeade704135fb1da0978ace942a2a4d92d418ad4bdd22acd0685864cf0f4297660fc325cd3842e283e9 WHIRLPOOL 75e8554cf9288a780327c19859b02b473724eeace643f9e7a1bb22b1a73427f4cbcc84314c7c484139ea54e1ad895db30b76c0719668d8f2d7254202442610f1
diff --git a/dev-util/bless/bless-0.6.0-r2.ebuild b/dev-util/bless/bless-0.6.0-r2.ebuild
new file mode 100644
index 000000000000..577337347e61
--- /dev/null
+++ b/dev-util/bless/bless-0.6.0-r2.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools gnome2 mono-env
+
+DESCRIPTION="GTK# Hex Editor"
+HOMEPAGE="http://home.gna.org/bless/"
+SRC_URI="http://download.gna.org/bless/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug"
+
+RDEPEND="
+ >=dev-lang/mono-1.1.14
+ >=dev-dotnet/gtk-sharp-2.12
+ || ( >=dev-dotnet/gtk-sharp-2.12.21
+ >=dev-dotnet/glade-sharp-2.12 )
+"
+DEPEND="${RDEPEND}
+ app-text/rarian
+ >=sys-devel/gettext-0.15
+ virtual/pkgconfig
+"
+
+# See bug 278162
+# Waiting on nunit ebuild entering the tree
+RESTRICT="test"
+
+pkg_setup() {
+ # Stolen from enlightenment.eclass
+ cp $(type -p gettextize) "${T}/" || die "Could not copy gettextize"
+ sed -i -e 's:read dummy < /dev/tty::' "${T}/gettextize"
+}
+
+src_prepare() {
+ einfo "Running gettextize -f --no-changelog..."
+ ( "${T}/gettextize" -f --no-changelog > /dev/null ) || die "gettexize failed"
+ eapply "${FILESDIR}/${P}-pixmap.patch"
+ eapply "${FILESDIR}/${P}-docpath.patch"
+ eapply "${FILESDIR}/${P}-mono-4.patch"
+ eautoreconf
+ gnome2_src_prepare
+}
+
+src_configure() {
+ gnome2_src_configure \
+ --enable-unix-specific \
+ $(use_enable debug)
+}
diff --git a/dev-util/bless/files/bless-0.6.0-docpath.patch b/dev-util/bless/files/bless-0.6.0-docpath.patch
new file mode 100644
index 000000000000..b1121424d88b
--- /dev/null
+++ b/dev-util/bless/files/bless-0.6.0-docpath.patch
@@ -0,0 +1,71 @@
+diff --git a/Makefile.am b/Makefile.am
+index 33f265b..346326d 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -1,6 +1,9 @@
+ EXTRA_DIST = AUTHORS COPYING NEWS README README.packaging \
+ bless.mdp bless.mds bless.spec autogen.sh bless.mi
+
++doc_DATA = AUTHORS COPYING INSTALL ChangeLog NEWS \
++ README README.packaging bless.spec
++
+ SUBDIRS = po builder src bin data doc . tests
+
+ DIST_SUBDIRS= po builder src bin doc data tests
+@@ -34,11 +37,5 @@ bless-builder:
+ dist-hook:
+ bzr log > $(distdir)/ChangeLog
+
+-install-data-local:
+- $(INSTALL) -d $(DESTDIR)$(datadir)/doc/$(PACKAGE_NAME)
+- $(INSTALL_DATA) AUTHORS COPYING INSTALL ChangeLog NEWS \
+- README README.packaging bless.spec \
+- $(DESTDIR)$(datadir)/doc/$(PACKAGE_NAME)
+-
+ uninstall-local:
+ rm -rf $(DESTDIR)$(libdir)/$(PACKAGE_NAME)
+diff --git a/doc/Makefile.am b/doc/Makefile.am
+index b18e94a..d7eecc6 100644
+--- a/doc/Makefile.am
++++ b/doc/Makefile.am
+@@ -1,4 +1 @@
+ SUBDIRS= developer user
+-
+-uninstall-local:
+- rm -rf $(DESTDIR)$(datadir)/doc/$(PACKAGE_NAME)
+diff --git a/doc/user/Makefile.am b/doc/user/Makefile.am
+index 729b295..58a1358 100644
+--- a/doc/user/Makefile.am
++++ b/doc/user/Makefile.am
+@@ -7,6 +7,11 @@ CLEANFILES=$(OMF)
+
+ noinst_SCRIPTS=$(OMF)
+
++docmandir=$(docdir)/user
++docfigsdir=$(docmandir)/figures
++
++docfigs_DATA=$(FIGURES)
++docman_DATA=$(DOCS) $(wildcard *.html)
+
+ $(OMF): $(OMF).in
+ if [ -x `which scrollkeeper-preinstall` ]; then \
+@@ -27,11 +32,6 @@ dist-hook: doc
+ rm html_file_list
+
+ install-data-local:
+- $(INSTALL) -d $(DESTDIR)$(datadir)/doc/$(PACKAGE_NAME)/user
+- $(INSTALL) -d $(DESTDIR)$(datadir)/doc/$(PACKAGE_NAME)/user/figures
+- $(INSTALL_DATA) $(DOCS) $(wildcard *.html) \
+- $(DESTDIR)$(datadir)/doc/$(PACKAGE_NAME)/user
+- $(INSTALL_DATA) $(FIGURES) $(DESTDIR)$(datadir)/doc/$(PACKAGE_NAME)/user/figures
+ $(INSTALL) -d $(DESTDIR)$(datadir)/omf/$(PACKAGE_NAME)
+ $(INSTALL_DATA) $(OMF) $(DESTDIR)$(datadir)/omf/$(PACKAGE_NAME)
+ if WITH_SCROLLKEEPER
+@@ -39,7 +39,6 @@ if WITH_SCROLLKEEPER
+ endif
+
+ uninstall-local:
+- rm -rf $(DESTDIR)$(datadir)/doc/$(PACKAGE_NAME)/user
+ rm $(DESTDIR)$(datadir)/omf/$(PACKAGE_NAME)/$(OMF)
+ if WITH_SCROLLKEEPER
+ scrollkeeper-update -o $(DESTDIR)$(datadir)/omf/$(PACKAGE_NAME)
diff --git a/dev-util/bless/files/bless-0.6.0-mono-4.patch b/dev-util/bless/files/bless-0.6.0-mono-4.patch
new file mode 100644
index 000000000000..92b1100cf0e7
--- /dev/null
+++ b/dev-util/bless/files/bless-0.6.0-mono-4.patch
@@ -0,0 +1,36 @@
+diff --git a/builder/ModuleBuilder.cs b/builder/ModuleBuilder.cs
+index 0f62e92..7edb1ab 100644
+--- a/builder/ModuleBuilder.cs
++++ b/builder/ModuleBuilder.cs
+@@ -119,7 +119,7 @@ public class ModuleBuilder
+ //System.Console.WriteLine("gmcs {0}", sb.ToString());
+ System.Console.WriteLine(">> Building module {0}...", module.Name);
+
+- Process buildProcess = Process.Start("gmcs", sb.ToString());
++ Process buildProcess = Process.Start("mcs", sb.ToString());
+ buildProcess.WaitForExit();
+
+ if (buildProcess.ExitCode == 0) {
+@@ -137,4 +137,4 @@ public class ModuleBuilder
+ }
+
+
+-}
+\ No newline at end of file
++}
+diff --git a/configure.ac b/configure.ac
+index 415cc64..a8e527c 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -24,9 +24,9 @@ if test "x$PKG_CONFIG" = "xno"; then
+ fi
+
+ # C# compiler
+-AC_PATH_PROG(MCS, gmcs, no)
++AC_PATH_PROG(MCS, mcs, no)
+
+-CS="gmcs C#"
++CS="mcs C#"
+ if test "x$MCS" = "xno" ; then
+ AC_MSG_ERROR([No $CS compiler found])
+ fi
diff --git a/dev-util/bless/files/bless-0.6.0-pixmap.patch b/dev-util/bless/files/bless-0.6.0-pixmap.patch
new file mode 100644
index 000000000000..de77cb84e750
--- /dev/null
+++ b/dev-util/bless/files/bless-0.6.0-pixmap.patch
@@ -0,0 +1,20 @@
+=== modified file 'src/gui/drawers/HexDrawer.cs'
+--- a/src/gui/drawers/HexDrawer.cs 2007-06-13 12:20:53 +0000
++++ b/src/gui/drawers/HexDrawer.cs 2009-04-10 23:21:41 +0000
+@@ -57,11 +57,14 @@
+
+ //System.Console.WriteLine(s);
+
+- pangoLayout.SetText(s);
++ pangoLayout.SetText(s.Substring(0,256));
+
+
+ gc.RgbFgColor = fg;
+ pix.DrawLayout(gc, 0, 0, pangoLayout);
++
++ pangoLayout.SetText(s.Substring(256,256));
++ pix.DrawLayout(gc, 128*2*width, 0, pangoLayout);
+
+ return pix;
+ }
+
diff --git a/dev-util/bless/metadata.xml b/dev-util/bless/metadata.xml
new file mode 100644
index 000000000000..fb8810c0659e
--- /dev/null
+++ b/dev-util/bless/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>ikelos@gentoo.org</email>
+ <name>Mike Auty</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-util/bloaty/Manifest b/dev-util/bloaty/Manifest
new file mode 100644
index 000000000000..4cb8737fa537
--- /dev/null
+++ b/dev-util/bloaty/Manifest
@@ -0,0 +1,3 @@
+DIST bloaty-0_p20170420.tar.gz 3100016 SHA256 b317b0725e485d285c83c2a65a2fbdd125dd6fd92f8d3b504ec235f3d39fd46e SHA512 93947fd0c49c3223c1ec216c88fe22b24e68654511d4b9d4fb2bcbc816b92bbdaf47344abc1dc8f80ed0b38a8c8b09909f862f916fd9182048235582aa10feb0 WHIRLPOOL dcdf174fbb4235653cf0210c0345ca0aa4b9b2ca7eb77d0ccaaa13a58c4b88581ad2da9308aec5fb5b6f6cae3c271885971466e8cb875c8b597f748e16857998
+EBUILD bloaty-0_p20170420.ebuild 771 SHA256 bd104fd15f7e1d68b6a2178a398db9d4251450a73c6f571419d40df5e684bf4a SHA512 bb7c2e8461920737f157df3dfeadb8e8bcce290c23c88862e5870b36ebd1f6a568779117302dae9446f9343ba667f264738e120a047ed023cbe81e4ec855cac8 WHIRLPOOL a3862d11f698f11496b7826f035689e8be0c6a2e217e03a41b879c327426c4598df136a91dc490ea40ea89e056edd96143eb31b6c1e85b56472256ccb65360bd
+MISC metadata.xml 245 SHA256 49f38381542f76551c4790c49cf186e89be07bed2555b81190e4feda42a09c12 SHA512 1e3616356c21ccb0027e00a1cda28ca8a90b05a1f5ef89c11ffb44033365216ab541dafcbff7b728b5ab852a4db539cdf5db54865b69c4d9c250233d43e70702 WHIRLPOOL 6a084ef8e9c6bab262a510e0be4357bda7d2a635dbb4262802d491c12a571c6d953f56edb609b7559bd6febbc46dcaa690ceeeb8197f6fa3a83d4ea9fab48903
diff --git a/dev-util/bloaty/bloaty-0_p20170420.ebuild b/dev-util/bloaty/bloaty-0_p20170420.ebuild
new file mode 100644
index 000000000000..e26da812ab42
--- /dev/null
+++ b/dev-util/bloaty/bloaty-0_p20170420.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit vcs-snapshot toolchain-funcs
+
+COMMIT="73594cde8c9a52a102c4341c244c833aa61b9c06"
+
+DESCRIPTION="A size profiler for binaries"
+HOMEPAGE="https://github.com/google/bloaty"
+SRC_URI="https://github.com/google/bloaty/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+DEPEND=">=dev-libs/re2-0.2017.03.01"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ default
+ sed -i -e "s#\$(RE2_[AH])##"\
+ -e "s#\tar #\t$(tc-getAR) #"\
+ -e "s#-lpthread#-lre2 -lpthread#"\
+ -e "/^CXXFLAGS/ s#-I third_party/re2##"\
+ Makefile || die
+}
+
+src_compile() {
+ CXX=$(tc-getCXX) emake
+}
+
+src_install() {
+ dobin ${PN}
+ dodoc README.md
+}
diff --git a/dev-util/bloaty/metadata.xml b/dev-util/bloaty/metadata.xml
new file mode 100644
index 000000000000..146d5f454ee7
--- /dev/null
+++ b/dev-util/bloaty/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-needed -->
+ <upstream>
+ <remote-id type="github">google/bloaty</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/bluej/Manifest b/dev-util/bluej/Manifest
new file mode 100644
index 000000000000..8218b8359698
--- /dev/null
+++ b/dev-util/bluej/Manifest
@@ -0,0 +1,9 @@
+AUX bluej.wrapper 167 SHA256 2b64a8705a82a057430e058950c673dd5162eccde754452262010d4c2e8947e6 SHA512 fb2ed5d87687f9e64c23871f4dbbb510771fbca97ea787b7da52346848b48bc038199153c3f1a554a609daf38e5458ea81a187ce6deaf408f1088c088a30c7d2 WHIRLPOOL 600c53af1a973eb0144d33cf03762deab1829a3db3e2731aba01938ebf3814d6a5e48edea403a987e83a1d97614b4b8b4e5461cea66e7578faebf29eb18451e6
+DIST BlueJ-source-311.zip 15564184 SHA256 a46df90291d1a7ae1d3088ea090def6b077d837c9d177c4d7582fe4ec6b26442 SHA512 60515f8564f0edf96ffba69ff43c199c024da12ac5601cba5f163c5682c9466717e2048593582ad2fe5d61988380e3fb9205825ec8967e99983c8a2a02f5144a WHIRLPOOL 156435663fef87052199d2aae8c4010b75f9ccb7c53ac5a7907d9e4c0346534d93011e0bf0f88303826c8d507974028664729f43c508893cff26b272206cfa0e
+DIST bluej-ref-manual.pdf 768751 SHA256 a6c514fcc79ffa1450c6313bae8b92ebe6c6939580cdf1a38e885a4cf71cffc3 SHA512 7f7e8cc2eab6402722eb8f94c878b506f595eee280cdfa85497d926cb06aa229defb0c8fbe5353dbbf6587e36a99ad5dae0a50fca21c1c80c88a92647d9b5319 WHIRLPOOL 476cc9058ecb4f79d9e4f3ccbec3a299f0f3deb357245bac0ab64e3bf0ce4e49f8aedfd5cbfe389b31c6d99e21491b6a002383bfa284eb0b9b4282545dbad6fe
+DIST bluej-testing-tutorial.pdf 269284 SHA256 07605ab6dd9743b6c971aaa932a3e8218057034af08d24ac90a09a74a5eb5599 SHA512 015da66cbf4940ca4bcab535023608a8497e7c6df1e06988393f8f0c7300a4521025474bf828e7889ff717e988968a2e973330758bf6dd570c057a837c78a9b5 WHIRLPOOL 472cbda358804a809ef61b8d1be947cba637e56068f3b0365f6ce808c0d076208b4b4430dfd6bb81eca987de407556e9bf83e019057f95320681a69ef2abe9b9
+DIST bluej-tutorial-2.0.1.pdf 1205655 SHA256 a6587a178ac7c071696884d9318aa33ade543898c5722caf61308acd77092db2 SHA512 410acbb75091d14b5ee7f5d56c01441a9611ed1f8b583c0301e1badf3d01bd2bb284da77d422c38ace283e7fe066b7975c772859697d25d6e9b334053d2f4833 WHIRLPOOL 27b1f934e2d08c261d32f385aa65ee826add4cb056257c6ab5e8c2e2b54a9f0fc884882bc4f611a1d87fe423706b8c4578b7c40060cceb46571924ee5d64b30d
+EBUILD bluej-3.1.1.ebuild 1467 SHA256 7f1836cbd61039bc1185e876b826669bc8d86039546ef543db21ff9facb49b5d SHA512 8c577cc0408653bd9a72d91b9b83e91dcf458a9f0d54698ad941ad403612ed1fe91f50b651f51ce7ede57f3209b025b61cf742fd2b2dc50fd6b880359fc772a7 WHIRLPOOL cea907e2029128d6b50f3da4641a49277cecfddb44780ae5c187201556dda77ec5215724a4b1a4c5e59742cbbbffabe6cd55efee58cc24b1b621599f2cd6c6d2
+MISC ChangeLog 2538 SHA256 6a0a3d613e1bc28183f6f2cbf71eda3405bdc20d463e6bbff9b9ba2739ce5993 SHA512 7013c239f3768f73a9e402fb71512b4fc9a866910d47417bf72959f4430663e31a06b929bda58350ec6f9464f0fd4cc137990f1eda18be8340bb4050bcdc8245 WHIRLPOOL 539c7fde1c403dc825f5acc2722719eac6e5813bfbc39e198b9bff4a635180cf51f17b9d04a39bdf650e9d068f25f1286f78475c0913fcebf12bc08727965499
+MISC ChangeLog-2015 1772 SHA256 2fec17f10cbbddd89c583af6859ff0882123b0c570b4d14742ba87676262528c SHA512 73b6a61ee4093a4b4d52317290d28da52d54ab7bfce2bcbe70bc2c80d37538a920e56a9646edb5ca6c9eafc6f5eb99edb0c3781a131d433f49f16a9a29cb7e5a WHIRLPOOL 83be09328e4a2883f0159f84cb7c66c38c9a0bbd6f3c8c57bdcda463e38061b782eaf19d1e644cbab026dbb89589c589a7598a18cdb178d52eda84ab6d6f41cf
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/dev-util/bluej/bluej-3.1.1.ebuild b/dev-util/bluej/bluej-3.1.1.ebuild
new file mode 100644
index 000000000000..b38d355a8265
--- /dev/null
+++ b/dev-util/bluej/bluej-3.1.1.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+JAVA_PKG_IUSE="doc examples source"
+EANT_BUILD_TARGET="ready-to-run"
+EANT_DOC_TARGET="doc-core"
+
+inherit eutils java-pkg-2 java-ant-2
+
+DOC_PV="2.0.1"
+
+DESCRIPTION="An integrated Java environment for introductory teaching"
+HOMEPAGE="http://bluej.org/"
+SRC_URI="http://www.bluej.org/download/files/source/BlueJ-source-${PV//./}.zip
+doc? ( http://bluej.org/download/files/${PN}-ref-manual.pdf
+ http://bluej.org/tutorial/tutorial-${DOC_PV//.}.pdf -> ${PN}-tutorial-${DOC_PV}.pdf
+ http://bluej.org/tutorial/testing-tutorial.pdf -> ${PN}-testing-tutorial.pdf )"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+
+RDEPEND=">=virtual/jdk-1.5.0"
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+S=${WORKDIR}
+
+java_prepare() {
+ sed -i \
+ -e "s:^build_java_home=.*$:build_java_home=$(java-config -O):" \
+ -e "/^bluej_home/d" \
+ build.properties || die
+}
+
+src_install() {
+ insinto /usr/share/${PN}
+ doins -r lib icons
+
+ # fix config location and set symlink
+ dodir /etc
+ mv "${D}"/{usr/share/${PN}/lib,etc}/${PN}.defs
+ dosym /{etc,usr/share/${PN}/lib}/${PN}.defs
+
+ use source && java-pkg_dosrc src/${PN}/*
+
+ insinto /usr/share/doc/${PF}
+ use examples && { doins -r examples
+ docompress -x /usr/share/doc/${P}/examples ; }
+ use doc && { doins "${DISTDIR}"/${PN}-*.pdf
+ dohtml -r doc/all/* ; }
+
+ newbin "${FILESDIR}"/${PN}.wrapper ${PN}
+
+ make_desktop_entry ${PN} Blue-J
+}
diff --git a/dev-util/bluej/files/bluej.wrapper b/dev-util/bluej/files/bluej.wrapper
new file mode 100644
index 000000000000..8d5fe5278092
--- /dev/null
+++ b/dev-util/bluej/files/bluej.wrapper
@@ -0,0 +1,6 @@
+#!/bin/sh
+APPBASE="/usr/share/bluej"
+JAVAPATH="$(java-config -O)"
+CP="$APPBASE/lib/bluej.jar:$JAVAPATH/lib/tools.jar"
+"$JAVAPATH/bin/java" -cp "$CP" bluej.Boot "$@"
+
diff --git a/dev-util/bluej/metadata.xml b/dev-util/bluej/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/dev-util/bluej/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/dev-util/bnfc/Manifest b/dev-util/bnfc/Manifest
new file mode 100644
index 000000000000..4c52e9970ff6
--- /dev/null
+++ b/dev-util/bnfc/Manifest
@@ -0,0 +1,8 @@
+AUX bnfc-2.8-alex-3.1.6.patch 207 SHA256 3210659abd57d96868e2a5b027f7756842e0c44cead6d3231ddf6ef0928a17ab SHA512 6d467ff25b7e8ef70c99b80f4f847b2c22ad39890f72a9a2dee851783af45a91567629f87685e0f8a2d3d64213161713cd7282feed4cd927aff7feab38b97b48 WHIRLPOOL 5bf389db6a4a67d67329e6cd05389b19d3006c1ce864c37b555d5e6c65c9c999bc795f68c9552ca491d4193669996bc674ac4cbf2eee50770634b3c44ce445dd
+DIST BNFC-2.8.1.tar.gz 225015 SHA256 2c1bea5c034483813091eea0ea5c830fdde8fedd31b1fc021ea69823b30a5920 SHA512 d5ea9b4129a4f71c2d66cda2f859a2c39be6d4400cddbd5a5303b5b408f4cf03ce7a92825224f4674c6cc48bec07429c447b9b39fc4e6d144c922bf1b0829561 WHIRLPOOL 445c6544067c6349efaca1b61e004a8df8eb035473056901d21b064965266f98acb271e36901acbcc963763ba06299d58f99be05f9383e2d4a380a4e07ca27d8
+DIST BNFC-2.8.tar.gz 183591 SHA256 21be5fddcfe8e1970c94872f36d5f29d07709f69e8e139b68bf6b27e75677f34 SHA512 358700360dbfbeacf3276150856415e08e1498c6af27254302d406e5407b7b4f84ac0dcf9dcf8391128ac9d77a17a928c2427961ec8c3ffdb9af8d169145cafb WHIRLPOOL e234f98df56f69f3c130ee5592c53bfad6e66f9c414d8b1a46370d9662fc68a389a93256980de9ef07315bd40e617f7d6c3683c2340a2b53417acff57fc6f8b6
+EBUILD bnfc-2.8.1.ebuild 851 SHA256 09ea6217ed53a0e4b6c5a93f1f968e3df0f3bfff113a978ad7172379230636ad SHA512 25b3cdf3dd18e9a5043cbf8f2db6032234cc334613ddb69b8940e601fea80271bf3600cba3c492e43c5acf50505df020e2ec27917281a2a0e39aff6f7f06476b WHIRLPOOL 3be41cd8ad888fd5151d272c22c6b82551765a722335a42bd928c87efafbe7f95f10f3a04bf0905f4a9f0d34d21229dcc9fc645b25cad81ff619ada144d1926e
+EBUILD bnfc-2.8.ebuild 914 SHA256 e050eb0616275d0e552ccbd5e2b3dc2833dd7bc02cfaa67fff26caaff8f438b2 SHA512 a4977c0c5cbbd29f3003efdf1c21f66815e889ff9e2b96c5761eb9c64bc6bb345f0e2358edba3ef91d0d67551a45816cb3a7d7d109abb0d760c31d250f281c55 WHIRLPOOL b15fa7319c0a8650581041248435b9370297e85022202b2fdcaac3330e5a0dc9a992c170a9a6897a60f057cacfc5bc5c0da6591ba44d2bbce2b037484f0f448f
+MISC ChangeLog 2903 SHA256 c03f6b9544ba6816fe24f66fd3d6c343017c053924d8ab4105f8e59fa7486a16 SHA512 02c4e1d82a8e2530482f46b7d4b3ca1cd3c280c232ed3857218093e21c7ad00a68b3876fd912b1ac0f6a268b725ab15babce78ae9006d1c24e4b4a09d18f4a8a WHIRLPOOL 43386828da165c8f265a2615493533ed3679e27a922dfc972ccf433663d8e258c439dc1dd1567497e51bf664a02b7a1174d0ef227e18ad20d39befd519ebf60c
+MISC ChangeLog-2015 3993 SHA256 6a61269293aed587b67a36205956a662def4061e657d9cae38fe2c3fae0ba020 SHA512 821a4ee097872761f00bf0fc9d95c268edce0b5c92b725a5e5deaf3a347a6bb48ad14e80a1eff0d01fd99521e0c64f3b9b39990869ca5159083297f05ed40f5a WHIRLPOOL fbd02265cff310601c7abbfd0e36c89a4e748125a5825d627638ec15b7db53309b095ff11fa3de9f5ca3805430e7f5d4942523613752beca87d98622e2b00578
+MISC metadata.xml 249 SHA256 42d7c7dd941e18315af7fac3764608244765e6ff2ef268e05606543f7c1d2356 SHA512 ce055b41ff1c10209e88579fe21ce16550be7e9b21f87724564f06430aa6f478974f186a10c8ff7e92398f534c09109aeed57eae1c6d2b56b5c99ebfb64a0015 WHIRLPOOL d7559dc58d8f1945ae7523fee4bf65454c971fa788032e0a767f2b6a6366db3ad86e21ab6a46412db18549ecf39575a6f21b94a421f839b0efe47a7b5200648a
diff --git a/dev-util/bnfc/bnfc-2.8.1.ebuild b/dev-util/bnfc/bnfc-2.8.1.ebuild
new file mode 100644
index 000000000000..054b7ddd2bc9
--- /dev/null
+++ b/dev-util/bnfc/bnfc-2.8.1.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+# ebuild generated by hackport 0.4.6.9999
+
+CABAL_FEATURES="bin lib profile haddock hoogle hscolour test-suite"
+inherit haskell-cabal
+
+MY_PN="BNFC"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="A compiler front-end generator"
+HOMEPAGE="http://bnfc.digitalgrammars.com/"
+SRC_URI="mirror://hackage/packages/archive/${MY_PN}/${PV}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+RESTRICT=test # missing files
+
+RDEPEND="dev-haskell/mtl:=[profile?]
+ >=dev-lang/ghc-7.4.1:=
+"
+DEPEND="${RDEPEND}
+ dev-haskell/alex
+ >=dev-haskell/cabal-1.8
+ dev-haskell/happy
+ test? ( >=dev-haskell/doctest-0.8
+ dev-haskell/hspec
+ dev-haskell/hunit
+ >=dev-haskell/quickcheck-2.5
+ dev-haskell/temporary )
+"
+
+S="${WORKDIR}/${MY_P}"
diff --git a/dev-util/bnfc/bnfc-2.8.ebuild b/dev-util/bnfc/bnfc-2.8.ebuild
new file mode 100644
index 000000000000..661b7ce9b92e
--- /dev/null
+++ b/dev-util/bnfc/bnfc-2.8.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+# ebuild generated by hackport 0.4.5.9999
+
+CABAL_FEATURES="bin lib profile haddock hoogle hscolour test-suite"
+inherit haskell-cabal
+
+MY_PN="BNFC"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="A compiler front-end generator"
+HOMEPAGE="http://bnfc.digitalgrammars.com/"
+SRC_URI="mirror://hackage/packages/archive/${MY_PN}/${PV}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+RESTRICT=test # missing files
+
+RDEPEND="dev-haskell/mtl:=[profile?]
+ >=dev-lang/ghc-7.4.1:=
+"
+DEPEND="${RDEPEND}
+ dev-haskell/alex
+ >=dev-haskell/cabal-1.8
+ dev-haskell/happy
+ test? ( >=dev-haskell/doctest-0.8
+ dev-haskell/hspec
+ dev-haskell/hunit
+ >=dev-haskell/quickcheck-2.5
+ dev-haskell/temporary )
+"
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-alex-3.1.6.patch
+}
diff --git a/dev-util/bnfc/files/bnfc-2.8-alex-3.1.6.patch b/dev-util/bnfc/files/bnfc-2.8-alex-3.1.6.patch
new file mode 100644
index 000000000000..e9834830e257
--- /dev/null
+++ b/dev-util/bnfc/files/bnfc-2.8-alex-3.1.6.patch
@@ -0,0 +1,8 @@
+diff --git a/src/LexBNF.x b/src/LexBNF.x
+index 927e15d..aea3386 100644
+--- a/src/LexBNF.x
++++ b/src/LexBNF.x
+@@ -11,2 +11,3 @@ import qualified Data.Bits
+ import Data.Word (Word8)
++import Data.Char (ord)
+ }
diff --git a/dev-util/bnfc/metadata.xml b/dev-util/bnfc/metadata.xml
new file mode 100644
index 000000000000..b7878815d80d
--- /dev/null
+++ b/dev-util/bnfc/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="project">
+ <email>haskell@gentoo.org</email>
+ <name>Gentoo Haskell</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-util/boost-build/Manifest b/dev-util/boost-build/Manifest
new file mode 100644
index 000000000000..5ec58e5a8596
--- /dev/null
+++ b/dev-util/boost-build/Manifest
@@ -0,0 +1,17 @@
+AUX boost-build-1.48.0-disable_python_rpath.patch 341 SHA256 09ef14db30f00f0a23690d732ca9b4bdd908603cadeeec35a5366e1145695b93 SHA512 1bc89bcf7210d6f3fcf88b48c7d173fc76c16dae804a9c927509f7ff525c6c77b09d9fa5c1f02e77ec36dac303d516b3d00bed08626007852a22c400adc992a4 WHIRLPOOL f9548c30eb85643fec84a3b6b7f76d58010d67d318c3efebd79551a8ae57c125fa531a6e46bbf2bd0b895056624483dc80e1ac737ee3e587b1778f39dbeb4e34
+AUX boost-build-1.49.0-darwin-gentoo-toolchain.patch 651 SHA256 574c97624c5ea338a5de966def2059fc465512e097e69f8480879d99a74bad14 SHA512 54606684921997c4d280eae7f6033ef6d02dc76d8c56499db25b359879a5a89e0220ec9733d197c4c482339d9968771ddd90891edf543f11f622595ed2bf43cd WHIRLPOOL dd4e7d1e6010a5192fdf6320f1c26dc7b67e4fcccc90575f71181e731bf6e6cef8918f7e6f9665bb9d4f5b310092dbcfec086c0d85bccfbfbb9f38cf7d19dcc4
+AUX boost-build-1.50.0-respect-c_ld-flags.patch 1868 SHA256 5db88b833f809f69e837fb1163168757ef05f5d7d50a53b83aca90cbeb34d5f3 SHA512 821ceff3027c318191b0959c265c420c9f43b9e8185fc20c902a31efaf7bbaaa4dfe4f01408557f7b89774b15104ad391671f467ad2e70af93235e8a0b8d18ee WHIRLPOOL d15ddf4febcbcbc3f48c18b9f9da22b0852b784fb0f13978c1615626b8cc011a866b5c9107d0c5c7683cdafe7533108f0da3d81ac07d673b30c4320712216251
+AUX boost-build-1.52.0-darwin-no-python-framework.patch 419 SHA256 0f235841e63cef9f7c7dff735d0f8d80e22df8cf635c2082f64f33f5de8b76ac SHA512 23f281c53c3e580a30efbea83e2c63d28021151e299b0086b106d1148f3b20e81237a3141a6842b71403f36cd531a58c4eb7ab5bf030ce0e23aa08198202cc48 WHIRLPOOL 1ef0fd28c4abf6bcacb80004098cee30e9fe8dac94afcd5f348cd1bbce01b3b4e0b6f98a75c1102bcc143eebf0f2c9dde2433aa9991b668e0af55c1960939143
+AUX boost-build-1.54.0-fix-test.patch 363 SHA256 af3522cae66111645521b4ae21c479d5b2c96e49980a004fbb4c9de8d757c938 SHA512 d349ff3040c219c3a9f9f6182ca3f1fe7e25d8f2975dd04e66d8e281caf10a5b27cab5e6fa6240ed57b24524fa045a88ba1cf9220efcf065726c78c68378c5e8 WHIRLPOOL d94445eb62312a2a7fe156d7c7c194db92cf8c0daeec3699be78a8e4f8f4774451bc9b0ac24655c311773334190b82d4ee909d1b3d2b8df4c168d64d7f3c0267
+AUX boost-build-1.54.0-support_dots_in_python-buildid.patch 487 SHA256 2b53ba51832cdf5da613750f226e0a20a6be5e08315be149bd119fb38099aaa7 SHA512 41fbe223120452a6ddf7b8ec9f64b2f653ee3d18b2dfccdba90d9040632f911159ac4102947371e12af7e52ca251aa39db2be9b362251ec86c12860867e50e68 WHIRLPOOL a13dcd8cf3c6e60205e9d749dd82d1dca5ca788f675418f5ab1de760b0395f4f8d98dd697ac8324ea3538721a0855d03b11eaba7d27843a0ca5295cb15b9795f
+AUX boost-build-1.55.0-ppc-aix.patch 228 SHA256 a542a91ac8f2ac969a08655d89d6b5291edbf1e4894295149fa0d1eeade4f53d SHA512 a320bfb744667312230cf601d034217f72e3a78fe06851678c5810bb47c8239007aaeffb5719513696922ffc2d4c2200e60e140b34e3992dc353ad0fc69177fe WHIRLPOOL 196b48c62493b198ec06df39039cc18ef63e35dbb4ee921df5f73d96a31c6ab8adf7452075487c9925d084505f67359f8e129d6d4bf561bb47d6fa1d6e4c5c40
+AUX site-config.jam 688 SHA256 795b0719536a934a1c65cfd4abf09ad4f30ad7d90ad4d55b00c858ee35e8890f SHA512 b65bf1be3133f9f66d3139b00f195a288591bb20a13ba35041507c2c33d7d2da6047c3b02dc27bc4eb21798b91e1262a60e294b7fd4af90808b9de0f5af517df WHIRLPOOL be4e6a1a308dc41e522be919d765b85cb67909ed74d022ca4bf8264ec86ade1caffe8d69a630b21d4abfed1d0c1e8ef079f874046a713fcdf4f0d72f3f0b6386
+DIST boost_1_62_0.tar.bz2 84513338 SHA256 36c96b0f6155c98404091d8ceb48319a28279ca0333fba1ad8611eb90afb2ca0 SHA512 5385ae3d5255a433a704169ad454d8dc2b0b5bcae3fb23defd6570df4ff7d845cf9fcbeebccdc1c5db0eec9f82ee3d90040de9507c8167467c635d3b215463be WHIRLPOOL 49c4558d5e6d72084f083a76217e3d97b504f112d7e4d228eded72dc49fa7e675ba943a9fc52a3c27d296ee689aee27d4566796c6eae71cf647430285777c0fb
+DIST boost_1_63_0.tar.bz2 81984414 SHA256 beae2529f759f6b3bf3f4969a19c2e9d6f0c503edcb2de4a61d1428519fcb3b0 SHA512 c915c5f5778dee49b8e9d0a40f37f90f56fb1fdb1d8ce92d97bf48bc7bc462212487badfe4bbe30b06196d1149cfb221da12ac54e97499b0d4cb6466813bb4ad WHIRLPOOL 28c241785097272a1e0952e529eef082444e4ef35a8d738161e4a491a986d75359d3afe888b2ea91a4a81b6ec7a5772ebea337c9d09377b43f6eed66cac90378
+DIST boost_1_65_0.tar.bz2 82597718 SHA256 ea26712742e2fb079c2a566a31f3266973b76e38222b9f88b387e3c8b2f9902c SHA512 7142650fb8d61e3ef16ba066fc918e087f19e9bc2ad1d6a11fb10bf0d6b1b5ad05ab032f076a5233a1624b3669e952b2cc38b7dc074bbf53018e2970ee90fcdd WHIRLPOOL ca389eff2ffc4836b88688504c187e57f236a5967654e40377792d59dd2e4fc3d6ccb079174eae095ad610ccd683e795964c5011429845b27ab67166f8a82c19
+EBUILD boost-build-1.62.0-r1.ebuild 3916 SHA256 ca05843f63b44f4927195b8d639039f84b2aa759dae692749727aa74a3926d5b SHA512 56673f5714aa82b4ad00be76b7937d332814c6ac3d4e2824861ffc1565aee1d7f79050a8e4201d8f6144acd1be08f5081c997b1453724c266fcae337894178e1 WHIRLPOOL f5bb30048a5bd7ee68b25c0fd5ccf2d522103be685d4bd629e2f75998298b2516453d0a0dbde0c05fc96d6ab11e105765c47c164b410e8125ce55e69e298322a
+EBUILD boost-build-1.63.0.ebuild 3846 SHA256 1df946023553b79ba40441742476ff4967cad94a9d93faef32254097e3c22a36 SHA512 1935e4b6ba2c88b1a623783f26241ab4677873dc3f6acada49214a2b6401a8ae608ae3562013fc4ebbb26f2070d46ff13c61f95174e4ab8da2ea8619cdf12da4 WHIRLPOOL 32b809a856135d662ed45bad751ca17cfb0a721c990509e425ab09e470c019e703767d4147a99d4b091619c92e5e581f58730e2a8b9852f1aa965eb96bc3d523
+EBUILD boost-build-1.65.0.ebuild 3849 SHA256 558401ac239ef3667394def3e2ef7d4851c5934d58d47c36d4a15b1aeecb2cb2 SHA512 fce84e1116e4ff5259d75ed4adf8ac2bb1cbdfd24d5ddcba9f5f964656b3eb737b379bd1d87cbe9b3e02913e3bd4b6bd9e3da91b35f8ee6b0571b8347101c36e WHIRLPOOL 1a47f359b80be66e29f3dc7f65eb113c4f78fc4e4362595c6188444bdef134589cf0fdd4753d2a8b1e7a688fffc4e800ab812669c6ef43f4970e5d88279ddc27
+MISC ChangeLog 6926 SHA256 5b6756f0013121ec09198c73da2d7129ec1ac2b1d6fc61f5747b93dca22eaa12 SHA512 08ca2bc9b31b300716becca8c9d2517ff5f883bb1a9e699c08801422998c5e4d66d081c63365739d656417cf2dbd40d4e6aac11f15bfda0134f8083531d39c19 WHIRLPOOL 437676783bc3e32e926f4f3d73c607c48ac093e92457afc55142b7fed55009cecee6a2ec8d331855ec0450c0aa926663e51c5a2baa89b50b3754e901f5703cf9
+MISC ChangeLog-2015 22458 SHA256 8341068142b55bc555677104798816b8c9a9e135b924faf03d03e6a371003f1f SHA512 b6eee67178faa003cbbee237311dfd302b9544d7c8cfb397a4a26234e6db628e91f3fa802a37dc8df68c88bfd3d5bd156c16e0c33f57e35cb55cd6bfc4513e46 WHIRLPOOL eae5386edd1e2275e2656bf4fba0edfa3adfaa3ecd7cf889eb65177895a91ff1ff31a7e52d2f70b9c3bb7017fffec8045bc607a7ecacd6fca32a9d3b1c1bb33a
+MISC metadata.xml 334 SHA256 247038e2c8e01feb3d58a507761974ec2d1904fedd028be5bf1d1627be82d9d5 SHA512 bc1fa12d69f5711c380a938546914a325ac9dee1b35b2b75136144bbf90190fdc7e113a8eedf26a5c23d1564baf71f936141d71ad715ad6f212f32226601706e WHIRLPOOL e5413e89efb623ebfff8259965a51ed6c6c8d207eeaa6f6ad691b6001945664a72cb9e4dc501c0ee0d560cabc0fdc20d3181b5212e031ee15e357c0ccc72a985
diff --git a/dev-util/boost-build/boost-build-1.62.0-r1.ebuild b/dev-util/boost-build/boost-build-1.62.0-r1.ebuild
new file mode 100644
index 000000000000..2a3d08d3323d
--- /dev/null
+++ b/dev-util/boost-build/boost-build-1.62.0-r1.ebuild
@@ -0,0 +1,139 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+RESTRICT="test"
+
+PYTHON_COMPAT=( python2_7 )
+inherit eutils flag-o-matic python-single-r1 toolchain-funcs versionator
+
+MY_PV="$(replace_all_version_separators _)"
+
+DESCRIPTION="A system for large project software construction, simple to use and powerful"
+HOMEPAGE="http://www.boost.org/doc/tools/build/index.html"
+SRC_URI="https://downloads.sourceforge.net/project/boost/boost/${PV}/boost_${MY_PV}.tar.bz2"
+
+LICENSE="Boost-1.0"
+SLOT="0"
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE="examples python test"
+
+RDEPEND="python? ( ${PYTHON_DEPS} )
+ !<dev-libs/boost-1.34.0
+ !<=dev-util/boost-build-1.35.0-r1"
+DEPEND="${RDEPEND}
+ test? ( sys-apps/diffutils
+ ${PYTHON_DEPS} )"
+
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )
+ test? ( ${PYTHON_REQUIRED_USE} )"
+
+S="${WORKDIR}/boost_${MY_PV}/tools/build/src"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-1.48.0-disable_python_rpath.patch"
+ "${FILESDIR}/${PN}-1.50.0-respect-c_ld-flags.patch"
+ "${FILESDIR}/${PN}-1.49.0-darwin-gentoo-toolchain.patch"
+ "${FILESDIR}/${PN}-1.52.0-darwin-no-python-framework.patch"
+ "${FILESDIR}/${PN}-1.54.0-support_dots_in_python-buildid.patch"
+ "${FILESDIR}/${PN}-1.55.0-ppc-aix.patch"
+)
+
+pkg_setup() {
+ if use python || use test; then
+ python-single-r1_pkg_setup
+ fi
+}
+
+src_unpack() {
+ tar xjf "${DISTDIR}/${A}" boost_${MY_PV}/tools/build || die "unpacking tar failed"
+}
+
+src_prepare() {
+ default
+
+ pushd ../ >/dev/null || die
+ eapply "${FILESDIR}/${PN}-1.54.0-fix-test.patch"
+ popd >/dev/null || die
+
+ # Remove stripping option
+ # Fix python components build on multilib systems, bug #496446
+ cd "${S}/engine" || die
+ sed -i \
+ -e 's|-s\b||' \
+ -e "/libpython/s/lib ]/$(get_libdir) ]/" \
+ build.jam || die "sed failed"
+
+ # Force regeneration
+ rm jambase.c || die
+
+ # This patch allows us to fully control optimization
+ # and stripping flags when bjam is used as build-system
+ # We simply extend the optimization and debug-symbols feature
+ # with empty dummies called 'none'
+ cd "${S}" || die
+ sed -i \
+ -e 's/\(off speed space\)/\1 none/' \
+ -e 's/\(debug-symbols : on off\)/\1 none/' \
+ tools/builtin.jam || die "sed failed"
+}
+
+src_configure() {
+ if use python; then
+ # replace versions by user-selected one (TODO: fix this when slot-op
+ # deps are available to always match the best version available)
+ sed -i \
+ -e "s|27 26 25 24 23 22|${EPYTHON#python}|" \
+ engine/build.jam || die "sed failed"
+ fi
+}
+
+src_compile() {
+ cd engine || die
+
+ local toolset
+
+ if [[ ${CHOST} == *-darwin* ]]; then
+ toolset=darwin
+ else
+ # Using boost's generic toolset here, which respects CC and CFLAGS
+ toolset=cc
+ fi
+
+ CC=$(tc-getCC) ./build.sh ${toolset} -d+2 $(use_with python python "${EROOT%/}"/usr) || die "building bjam failed"
+}
+
+src_install() {
+ dobin engine/bin.*/{bjam,b2}
+
+ insinto /usr/share/boost-build
+ doins -r "${FILESDIR}/site-config.jam" \
+ ../boost-build.jam bootstrap.jam build-system.jam ../example/user-config.jam *.py \
+ build kernel options tools util
+
+ rm "${ED%/}/usr/share/boost-build/build/project.ann.py" || die "removing faulty python file failed"
+ if ! use python; then
+ find "${ED%/}/usr/share/boost-build" -iname "*.py" -delete || die "removing experimental python files failed"
+ fi
+
+ dodoc ../notes/{changes,hacking,release_procedure,build_dir_option,relative_source_paths}.txt
+
+ if use examples; then
+ dodoc -r ../example
+ docompress -x "/usr/share/doc/${PF}/example"
+ fi
+}
+
+src_test() {
+ cd ../test || die
+
+ export TMP="${T}"
+
+ DO_DIFF="${PREFIX}/usr/bin/diff" ${PYTHON} test_all.py
+
+ if [[ -s test_results.txt ]]; then
+ eerror "At least one test failed: $(<test_results.txt)"
+ die "tests failed"
+ fi
+}
diff --git a/dev-util/boost-build/boost-build-1.63.0.ebuild b/dev-util/boost-build/boost-build-1.63.0.ebuild
new file mode 100644
index 000000000000..d0a1a9d58114
--- /dev/null
+++ b/dev-util/boost-build/boost-build-1.63.0.ebuild
@@ -0,0 +1,139 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+RESTRICT="test"
+
+PYTHON_COMPAT=( python2_7 )
+inherit eutils flag-o-matic python-single-r1 toolchain-funcs versionator
+
+MY_PV="$(replace_all_version_separators _)"
+
+DESCRIPTION="A system for large project software construction, simple to use and powerful"
+HOMEPAGE="http://www.boost.org/doc/tools/build/index.html"
+SRC_URI="https://downloads.sourceforge.net/project/boost/boost/${PV}/boost_${MY_PV}.tar.bz2"
+
+LICENSE="Boost-1.0"
+SLOT="0"
+KEYWORDS="alpha ~amd64 arm ~arm64 ~hppa ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE="examples python test"
+
+RDEPEND="python? ( ${PYTHON_DEPS} )
+ !<dev-libs/boost-1.34.0
+ !<=dev-util/boost-build-1.35.0-r1"
+DEPEND="${RDEPEND}
+ test? ( sys-apps/diffutils
+ ${PYTHON_DEPS} )"
+
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )
+ test? ( ${PYTHON_REQUIRED_USE} )"
+
+S="${WORKDIR}/boost_${MY_PV}/tools/build/src"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-1.48.0-disable_python_rpath.patch"
+ "${FILESDIR}/${PN}-1.50.0-respect-c_ld-flags.patch"
+ "${FILESDIR}/${PN}-1.49.0-darwin-gentoo-toolchain.patch"
+ "${FILESDIR}/${PN}-1.52.0-darwin-no-python-framework.patch"
+ "${FILESDIR}/${PN}-1.54.0-support_dots_in_python-buildid.patch"
+ "${FILESDIR}/${PN}-1.55.0-ppc-aix.patch"
+)
+
+pkg_setup() {
+ if use python || use test; then
+ python-single-r1_pkg_setup
+ fi
+}
+
+src_unpack() {
+ tar xjf "${DISTDIR}/${A}" boost_${MY_PV}/tools/build || die "unpacking tar failed"
+}
+
+src_prepare() {
+ default
+
+ pushd ../ >/dev/null || die
+ eapply "${FILESDIR}/${PN}-1.54.0-fix-test.patch"
+ popd >/dev/null || die
+
+ # Remove stripping option
+ # Fix python components build on multilib systems, bug #496446
+ cd "${S}/engine" || die
+ sed -i \
+ -e 's|-s\b||' \
+ -e "/libpython/s/lib ]/$(get_libdir) ]/" \
+ build.jam || die "sed failed"
+
+ # Force regeneration
+ rm jambase.c || die
+
+ # This patch allows us to fully control optimization
+ # and stripping flags when bjam is used as build-system
+ # We simply extend the optimization and debug-symbols feature
+ # with empty dummies called 'none'
+ cd "${S}" || die
+ sed -i \
+ -e 's/\(off speed space\)/\1 none/' \
+ -e 's/\(debug-symbols : on off\)/\1 none/' \
+ tools/builtin.jam || die "sed failed"
+}
+
+src_configure() {
+ if use python; then
+ # replace versions by user-selected one (TODO: fix this when slot-op
+ # deps are available to always match the best version available)
+ sed -i \
+ -e "s|27 26 25 24 23 22|${EPYTHON#python}|" \
+ engine/build.jam || die "sed failed"
+ fi
+}
+
+src_compile() {
+ cd engine || die
+
+ local toolset
+
+ if [[ ${CHOST} == *-darwin* ]]; then
+ toolset=darwin
+ else
+ # Using boost's generic toolset here, which respects CC and CFLAGS
+ toolset=cc
+ fi
+
+ CC=$(tc-getCC) ./build.sh ${toolset} -d+2 $(use_with python python "${EROOT%/}"/usr) || die "building bjam failed"
+}
+
+src_install() {
+ dobin engine/bin.*/{bjam,b2}
+
+ insinto /usr/share/boost-build
+ doins -r "${FILESDIR}/site-config.jam" \
+ ../boost-build.jam bootstrap.jam build-system.jam ../example/user-config.jam *.py \
+ build kernel options tools util
+
+ if ! use python; then
+ find "${ED%/}/usr/share/boost-build" -iname "*.py" -delete || die "removing experimental python files failed"
+ fi
+
+ dodoc ../notes/{changes,release_procedure,build_dir_option,relative_source_paths}.txt
+
+ if use examples; then
+ docinto examples
+ dodoc -r ../example/.
+ docompress -x /usr/share/doc/${PF}/examples
+ fi
+}
+
+src_test() {
+ cd ../test || die
+
+ export TMP="${T}"
+
+ DO_DIFF="${PREFIX}/usr/bin/diff" ${PYTHON} test_all.py
+
+ if [[ -s test_results.txt ]]; then
+ eerror "At least one test failed: $(<test_results.txt)"
+ die "tests failed"
+ fi
+}
diff --git a/dev-util/boost-build/boost-build-1.65.0.ebuild b/dev-util/boost-build/boost-build-1.65.0.ebuild
new file mode 100644
index 000000000000..1909c089d68c
--- /dev/null
+++ b/dev-util/boost-build/boost-build-1.65.0.ebuild
@@ -0,0 +1,139 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+RESTRICT="test"
+
+PYTHON_COMPAT=( python2_7 )
+inherit eutils flag-o-matic python-single-r1 toolchain-funcs versionator
+
+MY_PV="$(replace_all_version_separators _)"
+
+DESCRIPTION="A system for large project software construction, simple to use and powerful"
+HOMEPAGE="http://www.boost.org/doc/tools/build/index.html"
+SRC_URI="https://downloads.sourceforge.net/project/boost/boost/${PV}/boost_${MY_PV}.tar.bz2"
+
+LICENSE="Boost-1.0"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE="examples python test"
+
+RDEPEND="python? ( ${PYTHON_DEPS} )
+ !<dev-libs/boost-1.34.0
+ !<=dev-util/boost-build-1.35.0-r1"
+DEPEND="${RDEPEND}
+ test? ( sys-apps/diffutils
+ ${PYTHON_DEPS} )"
+
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )
+ test? ( ${PYTHON_REQUIRED_USE} )"
+
+S="${WORKDIR}/boost_${MY_PV}/tools/build/src"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-1.48.0-disable_python_rpath.patch"
+ "${FILESDIR}/${PN}-1.50.0-respect-c_ld-flags.patch"
+ "${FILESDIR}/${PN}-1.49.0-darwin-gentoo-toolchain.patch"
+ "${FILESDIR}/${PN}-1.52.0-darwin-no-python-framework.patch"
+ "${FILESDIR}/${PN}-1.54.0-support_dots_in_python-buildid.patch"
+ "${FILESDIR}/${PN}-1.55.0-ppc-aix.patch"
+)
+
+pkg_setup() {
+ if use python || use test; then
+ python-single-r1_pkg_setup
+ fi
+}
+
+src_unpack() {
+ tar xjf "${DISTDIR}/${A}" boost_${MY_PV}/tools/build || die "unpacking tar failed"
+}
+
+src_prepare() {
+ default
+
+ pushd ../ >/dev/null || die
+ eapply "${FILESDIR}/${PN}-1.54.0-fix-test.patch"
+ popd >/dev/null || die
+
+ # Remove stripping option
+ # Fix python components build on multilib systems, bug #496446
+ cd "${S}/engine" || die
+ sed -i \
+ -e 's|-s\b||' \
+ -e "/libpython/s/lib ]/$(get_libdir) ]/" \
+ build.jam || die "sed failed"
+
+ # Force regeneration
+ rm jambase.c || die
+
+ # This patch allows us to fully control optimization
+ # and stripping flags when bjam is used as build-system
+ # We simply extend the optimization and debug-symbols feature
+ # with empty dummies called 'none'
+ cd "${S}" || die
+ sed -i \
+ -e 's/\(off speed space\)/\1 none/' \
+ -e 's/\(debug-symbols : on off\)/\1 none/' \
+ tools/builtin.jam || die "sed failed"
+}
+
+src_configure() {
+ if use python; then
+ # replace versions by user-selected one (TODO: fix this when slot-op
+ # deps are available to always match the best version available)
+ sed -i \
+ -e "s|27 26 25 24 23 22|${EPYTHON#python}|" \
+ engine/build.jam || die "sed failed"
+ fi
+}
+
+src_compile() {
+ cd engine || die
+
+ local toolset
+
+ if [[ ${CHOST} == *-darwin* ]]; then
+ toolset=darwin
+ else
+ # Using boost's generic toolset here, which respects CC and CFLAGS
+ toolset=cc
+ fi
+
+ CC=$(tc-getCC) ./build.sh ${toolset} -d+2 $(use_with python python "${EROOT%/}"/usr) || die "building bjam failed"
+}
+
+src_install() {
+ dobin engine/bin.*/{bjam,b2}
+
+ insinto /usr/share/boost-build
+ doins -r "${FILESDIR}/site-config.jam" \
+ ../boost-build.jam bootstrap.jam build-system.jam ../example/user-config.jam *.py \
+ build kernel options tools util
+
+ if ! use python; then
+ find "${ED%/}/usr/share/boost-build" -iname "*.py" -delete || die "removing experimental python files failed"
+ fi
+
+ dodoc ../notes/{changes,release_procedure,build_dir_option,relative_source_paths}.txt
+
+ if use examples; then
+ docinto examples
+ dodoc -r ../example/.
+ docompress -x /usr/share/doc/${PF}/examples
+ fi
+}
+
+src_test() {
+ cd ../test || die
+
+ export TMP="${T}"
+
+ DO_DIFF="${PREFIX}/usr/bin/diff" ${PYTHON} test_all.py
+
+ if [[ -s test_results.txt ]]; then
+ eerror "At least one test failed: $(<test_results.txt)"
+ die "tests failed"
+ fi
+}
diff --git a/dev-util/boost-build/files/boost-build-1.48.0-disable_python_rpath.patch b/dev-util/boost-build/files/boost-build-1.48.0-disable_python_rpath.patch
new file mode 100644
index 000000000000..84734f7473fe
--- /dev/null
+++ b/dev-util/boost-build/files/boost-build-1.48.0-disable_python_rpath.patch
@@ -0,0 +1,11 @@
+--- a/tools/python.jam
++++ b/tools/python.jam
+@@ -961,7 +961,7 @@
+ # linux).
+ : $(usage-requirements)
+ <testing.launcher>$(set-PYTHONPATH)
+- <library-path>$(libraries) <dll-path>$(dll-path) <library>python.lib
++ <library-path>$(libraries) <library>python.lib
+ ;
+ }
+
diff --git a/dev-util/boost-build/files/boost-build-1.49.0-darwin-gentoo-toolchain.patch b/dev-util/boost-build/files/boost-build-1.49.0-darwin-gentoo-toolchain.patch
new file mode 100644
index 000000000000..032feaf9625f
--- /dev/null
+++ b/dev-util/boost-build/files/boost-build-1.49.0-darwin-gentoo-toolchain.patch
@@ -0,0 +1,26 @@
+Avoid adding all kinds of things to the toolchain's flags that within
+Gentoo (Prefix) we really shouldn't, such as sysroot, deployment target,
+arch, etc.
+
+--- a/tools/darwin.jam
++++ b/tools/darwin.jam
+@@ -227,6 +227,9 @@
+ }
+ }
+
++ # leave compiler flags etc. up to the toolchain
++ return $(version-feature) ;
++
+ if $(version-feature)
+ {
+ if $(.debug-configuration)
+@@ -387,7 +390,8 @@
+ support-ppc64 = ;
+ }
+ }
+- switch $(arch)
++ # Gentoo Prefix toolchain doesn't do multi-arch, so don't try either
++ switch $(donotaddarchpleaseXXXarch)
+ {
+ case combined :
+ {
diff --git a/dev-util/boost-build/files/boost-build-1.50.0-respect-c_ld-flags.patch b/dev-util/boost-build/files/boost-build-1.50.0-respect-c_ld-flags.patch
new file mode 100644
index 000000000000..8775583cbc00
--- /dev/null
+++ b/dev-util/boost-build/files/boost-build-1.50.0-respect-c_ld-flags.patch
@@ -0,0 +1,53 @@
+--- a/engine/build.jam
++++ b/engine/build.jam
+@@ -3,7 +3,7 @@
+ #~ (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
+
+ # Clean env vars of any "extra" empty values.
+-for local v in ARGV CC CFLAGS LIBS
++for local v in ARGV CC CFLAGS LDFLAGS LIBS
+ {
+ local values ;
+ for local x in $($(v))
+@@ -179,10 +179,10 @@
+ if ! $(CC) { CC = cc ; }
+ toolset cc $(CC) : "-o " : -D
+ : $(CFLAGS)
+- [ opt --release : -s -O ]
++ [ opt --release : ]
+ [ opt --debug : -g ]
+ -I$(--python-include) -I$(--extra-include)
+- : $(LIBS) -L$(--python-lib[1]) -l$(--python-lib[2]) ;
++ : $(LDFLAGS) $(LIBS) -L$(--python-lib[1]) -l$(--python-lib[2]) ;
+ ## Comeau C/C++ 4.x
+ toolset como como : "-o " : -D
+ : --c
+@@ -201,11 +201,11 @@
+ ## MacOSX Darwin, using GCC 2.9.x, 3.x
+ toolset darwin cc : "-o " : -D
+ :
+- [ opt --release : -Wl,-x -O3 -finline-functions ]
++ [ opt --release : -Wl,-x -finline-functions ]
+ [ opt --debug : -g -O0 -fno-inline -pg ]
+ [ opt --profile : -Wl,-x -O3 -finline-functions -g -pg ]
+ -I$(--python-include) -I$(--extra-include)
+- : -L$(--python-lib[1]) -l$(--python-lib[2]) ;
++ : $(LDFLAGS) -L$(--python-lib[1]) -l$(--python-lib[2]) ;
+ ## GCC 2.x, 3.x, 4.x
+ toolset gcc gcc : "-o " : -D
+ : -pedantic -fno-strict-aliasing
+--- a/engine/build.sh
++++ b/engine/build.sh
+@@ -224,9 +224,9 @@
+ cc)
+ if test -z "$CC" ; then CC=cc ; fi
+ BOOST_JAM_CC=$CC
+- BOOST_JAM_OPT_JAM="$BOOST_JAM_OPT_JAM $CFLAGS $LIBS"
+- BOOST_JAM_OPT_MKJAMBASE="$BOOST_JAM_OPT_MKJAMBASE $CFLAGS $LIBS"
+- BOOST_JAM_OPT_YYACC="$BOOST_JAM_OPT_YYACC $CFLAGS $LIBS"
++ BOOST_JAM_OPT_JAM="$BOOST_JAM_OPT_JAM $CFLAGS $LDFLAGS $LIBS"
++ BOOST_JAM_OPT_MKJAMBASE="$BOOST_JAM_OPT_MKJAMBASE $CFLAGS $LDFLAGS $LIBS"
++ BOOST_JAM_OPT_YYACC="$BOOST_JAM_OPT_YYACC $CFLAGS $LDFLAGS $LIBS"
+ ;;
+
+ qcc)
diff --git a/dev-util/boost-build/files/boost-build-1.52.0-darwin-no-python-framework.patch b/dev-util/boost-build/files/boost-build-1.52.0-darwin-no-python-framework.patch
new file mode 100644
index 000000000000..cacbe00a7ef9
--- /dev/null
+++ b/dev-util/boost-build/files/boost-build-1.52.0-darwin-no-python-framework.patch
@@ -0,0 +1,17 @@
+Don't look for the framework path, we build Python the UNIX way for
+Gentoo Prefix
+
+--- a/engine/build.jam
++++ b/engine/build.jam
+@@ -82,11 +82,6 @@
+ }
+ --python-lib = $(--python-lib[1]) ;
+ }
+- else if $(OS) = MACOSX
+- {
+- --python-include = [ .path $(python-location) Headers ] ;
+- --python-lib = $(python-location) Python ;
+- }
+ else
+ {
+ --python-include = ;
diff --git a/dev-util/boost-build/files/boost-build-1.54.0-fix-test.patch b/dev-util/boost-build/files/boost-build-1.54.0-fix-test.patch
new file mode 100644
index 000000000000..3f8b177c7102
--- /dev/null
+++ b/dev-util/boost-build/files/boost-build-1.54.0-fix-test.patch
@@ -0,0 +1,11 @@
+--- a/test/startup_v2.py
++++ b/test/startup_v2.py
+@@ -50,7 +50,7 @@
+ return re.match(expected, actual, re.DOTALL) != None
+
+
+-t = BoostBuild.Tester(match=match_re, boost_build_path="", pass_toolset=0)
++t = BoostBuild.Tester(match=match_re, boost_build_path="/invalid/location", pass_toolset=0)
+ t.set_tree("startup")
+ check_for_existing_boost_build_jam(t)
+
diff --git a/dev-util/boost-build/files/boost-build-1.54.0-support_dots_in_python-buildid.patch b/dev-util/boost-build/files/boost-build-1.54.0-support_dots_in_python-buildid.patch
new file mode 100644
index 000000000000..a04aa0b7aab1
--- /dev/null
+++ b/dev-util/boost-build/files/boost-build-1.54.0-support_dots_in_python-buildid.patch
@@ -0,0 +1,19 @@
+--- a/tools/common.jam
++++ b/tools/common.jam
+@@ -763,7 +763,15 @@
+ switch $(f:G)
+ {
+ case <base> :
+- result += $(name:B) ;
++ local matched = [ MATCH "^(boost.*python)-.*" : $(name) ] ;
++ if $(matched) = boost_python || $(matched) = boost_mpi_python
++ {
++ result += $(name) ;
++ }
++ else
++ {
++ result += $(name:B) ;
++ }
+
+ case <toolset> :
+ result += [ join-tag $(f:G=) : [ toolset-tag $(name) : $(type) :
diff --git a/dev-util/boost-build/files/boost-build-1.55.0-ppc-aix.patch b/dev-util/boost-build/files/boost-build-1.55.0-ppc-aix.patch
new file mode 100644
index 000000000000..d8b6a5af1e9c
--- /dev/null
+++ b/dev-util/boost-build/files/boost-build-1.55.0-ppc-aix.patch
@@ -0,0 +1,13 @@
+https://svn.boost.org/trac/boost/ticket/10122
+
+--- a/engine/mem.h
++++ b/engine/mem.h
+@@ -8,6 +8,8 @@
+ #ifndef BJAM_MEM_H
+ #define BJAM_MEM_H
+
++#include "jam.h"
++
+ #ifdef OPT_BOEHM_GC
+
+ /* Use Boehm GC memory allocator. */
diff --git a/dev-util/boost-build/files/site-config.jam b/dev-util/boost-build/files/site-config.jam
new file mode 100644
index 000000000000..6afe52684ccc
--- /dev/null
+++ b/dev-util/boost-build/files/site-config.jam
@@ -0,0 +1,11 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the Boost Software License, Version 1.0.
+# (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
+
+# Define two new variants to be used when building boost (or separate boost-libs)
+# on Gentoo. The two variants make use of Gentoo-specific optimization and debug-symbols
+# values "none" which are not part of the official boost distribution.
+# DO NOT RELY ON THE FOLLOWING VARIANTS TO BE PRESENT ON OTHER OS!
+variant gentoorelease : release : <optimization>none <debug-symbols>none <runtime-link>shared ;
+variant gentoodebug : debug : <optimization>none <debug-symbols>on <runtime-link>shared ;
+
diff --git a/dev-util/boost-build/metadata.xml b/dev-util/boost-build/metadata.xml
new file mode 100644
index 000000000000..ef3f9148d5aa
--- /dev/null
+++ b/dev-util/boost-build/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="project">
+ <email>cpp@gentoo.org</email>
+ <name>Gentoo C++ Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">boost</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/bsdiff/Manifest b/dev-util/bsdiff/Manifest
new file mode 100644
index 000000000000..27f14767a323
--- /dev/null
+++ b/dev-util/bsdiff/Manifest
@@ -0,0 +1,5 @@
+DIST bsdiff-4.3.tar.gz 5740 SHA256 18821588b2dc5bf159aa37d3bcb7b885d85ffd1e19f23a0c57a58723fea85f48 SHA512 bde46b393b74bcc9f05532ea4d45b12c104c4f182fdd49d4176aad5f02a2b357f435819f13a5a7ddefe27df0ca82980f06fad764094014a6d068622263e319c3 WHIRLPOOL 8a78c9f570e48e903b5084e3f23c4325d05aeac01bcb31d4132fc206e6961214965a0163c613dda3c6406580c59f7e3e35cf782ab5146d56a9264c296be09d66
+EBUILD bsdiff-4.3-r3.ebuild 890 SHA256 492f01abe593f4b53800330f04ce21569667fafcc2dfbecd0f0e3d8ab123206e SHA512 8e89472866b70c179613c81ce9c93e944436c5b350eb54561f6015b9e5300f06f49997cf2a414676a5919e16ae6752f4ce760845b874b0a035ad6525d78ef100 WHIRLPOOL dca2aef6048b3a0df2261dbf519463088630beb8ec58bdd53e47a231abf629333f5c0740454c9d18401d5178917620399ba9bcf0695e3548bb0124e871fcbc17
+MISC ChangeLog 2175 SHA256 0cdb379f3fc89fc1e4eef8a80ee332c51e1821a0a10878722c328c8363e91f9b SHA512 5adae49c4b37ed2a6945aa273c65ff2d54741f177cb18b411e1f8e8135a66e26a79d847310e42d5a7cb9ca06763286a0aea0f57b749e6f6156b8ea3ae122c409 WHIRLPOOL f0d93bc0f0367c7d85adeca64aa9d79b6794eb458e40665a66aa47c7b0a05a41e7d2e062c92467152adea1234dec0417ba35c68a0c39ab0f2a50337b4d5f2926
+MISC ChangeLog-2015 5814 SHA256 7e5713a7872a304f9725ea8479372597c6c56af8f913f1c0b6cfdcc40ef6c29e SHA512 b65d98c20dd9fa3a69ebcc061b00d833b35ed7880a0d4c95566a7421bcf9247140804063b42d3b50003eb00585ba1d796e2be7a300922f7aa4d7afa3552ce9e5 WHIRLPOOL 7fd1114967b259864eb36acd940d98e677bf23cd332140747705be6ff69d13544135c37f3d5f6144fc6cd0d55ce9703276c5758edc773f5c32742a59b661cac8
+MISC metadata.xml 167 SHA256 5fe493e76bba84455c54b3a46adfae5a1bfe01c764ef0d9e5f6d3e8a1d142188 SHA512 7c8decb24ee3a850e38186cf3c7f8933a28017426806870ad6ef9ceb2533be147a2681fc789b535a81cb528af8c29d90d3006e4f250aee23bd7dea4561294e33 WHIRLPOOL dc6c3dfc7fd7f0d76c97f0786cb76a55b8564f8437f96d4ccebf985817b9f6dcc4c61830aa5df80d725e4a54b281ea2e03d6b0859214af081112cba15025e64b
diff --git a/dev-util/bsdiff/bsdiff-4.3-r3.ebuild b/dev-util/bsdiff/bsdiff-4.3-r3.ebuild
new file mode 100644
index 000000000000..575d008b3073
--- /dev/null
+++ b/dev-util/bsdiff/bsdiff-4.3-r3.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils flag-o-matic toolchain-funcs
+
+DESCRIPTION="bsdiff: Binary Differencer using a suffix alg"
+HOMEPAGE="http://www.daemonology.net/bsdiff/"
+SRC_URI="http://www.daemonology.net/bsdiff/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="BSD-2"
+KEYWORDS="alpha amd64 ~arm hppa ia64 ~mips ppc sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos"
+
+DEPEND="app-arch/bzip2"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch_user
+}
+
+src_compile() {
+ doecho() {
+ echo "$@"
+ "$@"
+ }
+ append-lfs-flags
+ doecho $(tc-getCC) ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -o bsdiff bsdiff.c -lbz2 || die "failed compiling bsdiff"
+ doecho $(tc-getCC) ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -o bspatch bspatch.c -lbz2 || die "failed compiling bspatch"
+}
+
+src_install() {
+ dobin bs{diff,patch}
+ doman bs{diff,patch}.1
+}
diff --git a/dev-util/bsdiff/metadata.xml b/dev-util/bsdiff/metadata.xml
new file mode 100644
index 000000000000..7a38bb900964
--- /dev/null
+++ b/dev-util/bsdiff/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/dev-util/btyacc/Manifest b/dev-util/btyacc/Manifest
new file mode 100644
index 000000000000..7e49b870cbcb
--- /dev/null
+++ b/dev-util/btyacc/Manifest
@@ -0,0 +1,7 @@
+AUX btyacc-3.0-includes.patch 171 SHA256 9254b10e13921251fb9a59631b327514c1843775e2db56f51643ec14df639892 SHA512 09af4417c660653b3dbb0bfabfc82bcf9a5741165f86047328fab5a410d71e5c11b7d4018b4e62339ccc08a96b2e81a1a0200596a82e5a76bb48a2392351a689 WHIRLPOOL 85b7ba5799001bce453c69d552439dcc457294e5d9dbf1b0ad3a3e1389486df2f585044acf983a56119533a64bef7585467b8b38d5a7454781cf21190fff866e
+AUX btyacc-3.0-makefile.patch 536 SHA256 9c3bf2f12cd6235b47da46f1674986c6f0315adfcdde3d73e4e91d1e79b38800 SHA512 55e0a54fbb38b4a2dcf95295f3b7f5dd92af767f77641551d74ab9a81197b2d9a1694f2999248b1f6d6492e109fb0c6d1c3ffce87e8dc258d5d16f18fd1adc73 WHIRLPOOL 377ed1d7fb0a98d5442b43c8f3e95fe3f7771e506fefc0a9cf86525652ccec66a0abca3bf8e9ab74edee50f864927e5d03fad17b8c691c2ca57b8f3385274993
+DIST btyacc-3-0.tar.gz 74770 SHA256 501be7eb21623b4bbf47f6c33f74b6dab52374939c0f155b364b1efa641b020a SHA512 55312e3de7cc783e1386ea98c97464d8d40bb496ce2ce36c84cc559e4c6982fbac730e76b8d44c4a44565f545ac50fb75f802bd8a1b4c926b1fc1af1a0058ef4 WHIRLPOOL 00cae37aa941271e935bdd140c34b2f6f107477ebc44ce9459b5fabd33bb74d2218415c5cd1c62629672515c61bde368630372950dde19ed01d32df60cdfda3a
+EBUILD btyacc-3.0-r2.ebuild 914 SHA256 965bc0ec5575db1d704041fa6b62ec304be8ab3e62e0a0471728b7d3e3f248ff SHA512 402ed5b5c405b7dc1daf609fd2c34a5d2e384f37557b86d64493d523d2a16c05e015d5cc7956696abf906ac59f03fd8dbfb26171d619f5cadcfb155876212256 WHIRLPOOL c24f4c225ed255352f2bda0840ea487982f2c3eb18487dae521ea67c71ca57d67fadaf944bc0eef91c307933d890f362211fc0dd91e2eab13230ab2a5e5fc6ae
+MISC ChangeLog 2835 SHA256 bf48383a98f176df32064021077bbac1847dfc5ba3cabdd33536b05e86700c69 SHA512 2e26a263f058b8372de07231f51881f497c257db40dd1e97da773db12b61ea8c187f2ac589d1e604c9a983f9ecf0ce9c90eb1a9f156f352ec8db09bad4bd48a5 WHIRLPOOL 3731dda2b54f62d7f3f9982a8cb6f8d5069812d4b1acc93c41f289f4e27a59e0d08c53b471ad6693fb089bf2bfc617d730ee9a58a4a4ceacfd8115e575e5ec8f
+MISC ChangeLog-2015 2104 SHA256 7712acf06cd666b64a222523ae962f324aa9630fe75924501a1aa835db88f736 SHA512 e3371c00585c9c08cf1de2b8f9b98e2621c52ecbcead520fa9c1807bf0a075ce81501f3dcde17243cc20b284a6032c46e63f5b39f07e2288aa64e032795a65a0 WHIRLPOOL 6e17bde8f5530436c5b2a4c71fc15bcd36934733dbc1cfee0c20d1fa4f27840285574f26d94e9c9a3c5b13840e04de6e58a73f06cff7c81f35e4a35b4ef52fb3
+MISC metadata.xml 247 SHA256 0deec0776f26fb762fdf7711f4589b14f52a2456436ef557eec62a2cf2fb2bb7 SHA512 29cf52c16b0cce69899d9c2da8acd9144b7d760442aa323b854dceadb42459e009545193b1df7911ac2241b59f4819b4a6bb1d206d6f57953f770031433bb6b7 WHIRLPOOL a135fa622e99d3dcdb432bc6b3c366076b3d86b4bfd9a76c852d781b8e9152541c7e7a2c7c6d6a3c4d2200dce792847a08166aaf7c17c22b6299dfe868234dec
diff --git a/dev-util/btyacc/btyacc-3.0-r2.ebuild b/dev-util/btyacc/btyacc-3.0-r2.ebuild
new file mode 100644
index 000000000000..bf06edcf5abb
--- /dev/null
+++ b/dev-util/btyacc/btyacc-3.0-r2.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="2"
+
+inherit eutils toolchain-funcs
+
+MY_P=${P/./-}
+IUSE=""
+DESCRIPTION="Backtracking YACC - modified from Berkeley YACC"
+HOMEPAGE="http://www.siber.com/btyacc"
+SRC_URI="http://www.siber.com/btyacc/${MY_P}.tar.gz"
+
+LICENSE="freedist"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86 ~amd64-fbsd ~x86-linux ~ppc-macos ~x86-macos"
+
+S="${WORKDIR}"
+
+src_prepare() {
+ cp -av Makefile{,.orig}
+ epatch "${FILESDIR}/${P}-includes.patch"
+ epatch "${FILESDIR}/${P}-makefile.patch"
+ # fix memory issue/glibc corruption
+ sed -i -e "s|len + 13|len + 14|" main.c || die "Could not fix main.c"
+ # Darwin doesn't do static binaries
+ [[ ${CHOST} == *-darwin* ]] && sed -i -e 's/-static//' Makefile
+}
+
+src_compile() {
+ tc-export CC
+ emake || die
+}
+
+src_install() {
+ dobin btyacc
+ dodoc README README.BYACC
+ newman manpage btyacc.1
+}
diff --git a/dev-util/btyacc/files/btyacc-3.0-includes.patch b/dev-util/btyacc/files/btyacc-3.0-includes.patch
new file mode 100644
index 000000000000..a03f58fa3865
--- /dev/null
+++ b/dev-util/btyacc/files/btyacc-3.0-includes.patch
@@ -0,0 +1,10 @@
+--- mstring.c
++++ mstring.c
+@@ -1,6 +1,7 @@
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <stdarg.h>
++#include <string.h>
+ #include <ctype.h>
+ #include "mstring.h"
+
diff --git a/dev-util/btyacc/files/btyacc-3.0-makefile.patch b/dev-util/btyacc/files/btyacc-3.0-makefile.patch
new file mode 100644
index 000000000000..884b49f46b9d
--- /dev/null
+++ b/dev-util/btyacc/files/btyacc-3.0-makefile.patch
@@ -0,0 +1,22 @@
+Respect CC, append to CFLAGS (but not -g), append to LDFLAGS, use system LD -jer
+
+--- Makefile.orig 1999-07-15 19:40:12.000000000 +0200
++++ Makefile 2009-09-04 15:27:15.000000000 +0200
+@@ -8,14 +8,13 @@
+
+ HDRS = defs.h mstring.h
+
+-CFLAGS = -g -Wall -Wstrict-prototypes -Wmissing-prototypes
++CFLAGS += -Wall -Wstrict-prototypes -Wmissing-prototypes
+
+-LDFLAGS = -static
++LDFLAGS += -static
+
+ LIBS =
+
+-CC = gcc
+-LINKER = gcc
++LINKER = $(CC)
+ # LINKER = cl
+ # CC = cl
+
diff --git a/dev-util/btyacc/metadata.xml b/dev-util/btyacc/metadata.xml
new file mode 100644
index 000000000000..40aa45df2b01
--- /dev/null
+++ b/dev-util/btyacc/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>patrick@gentoo.org</email>
+ <name>Patrick Lauer</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-util/build/Manifest b/dev-util/build/Manifest
new file mode 100644
index 000000000000..cef23cfc84ce
--- /dev/null
+++ b/dev-util/build/Manifest
@@ -0,0 +1,5 @@
+DIST build-0.3.10.tar.bz2 73647 SHA256 e6fcd1d225d7d1e7b2895a44e3c192f7d45ca83e45817bff20372e5dedcda5d3 SHA512 5836da9347714d602162e050471e27330caf398cf4daf008db174797013d8c353e23f41e393166181ff0fdb08359b434cb7ca2ae6bf789376f8340046abb195f WHIRLPOOL 0f3077918a0ad81e912aa9eb26ed90413db32a8b3f22fb0f953df675ce5aca1f7f8fc38ba7911aff71b79b823ae4e2e5e25d67fc9169abac2786eabdceaaeac7
+EBUILD build-0.3.10.ebuild 754 SHA256 207651b01abc9371dbb63c7951c9e1b42cde259663328a7b7c6da0f8c5e791d2 SHA512 9c25cf07642163c8f1ce096d9bfeb7d8f3bb483a79f4944f7ece3d13c87996e5d48c75afcc2dbb3f7073f55b960f3fd264991d2fbe3d181b3f5fa755086d50dc WHIRLPOOL 7c60417fdc6dc660a71eca07b6240dc6c543de7ad21c3dff693f679a5382610770b336776ec22af4c1e2911a2c88e6a56fa3cab89dfcf5ff7528f6e6919ecc41
+MISC ChangeLog 3003 SHA256 6c3221a7ce435846925aca3127cb5b1fbadddf2669de7ed9d835695bc70fdc39 SHA512 aa00e98cb5aeeb14a4239d5db14dae87dd4ca0f0c684b91755dc6676d562ca9eb86f4fc853676c8855f36e2e14564bdafda3bd43baf3509de9999bd9a3807256 WHIRLPOOL 1e5db448cb6ce11b12e193864bc5e8ce3caefd538f8fda31d5c53dba3a80bd2fff093f617c835854bc8db6a84151dffb8510d226fcafa31d39172bd1ef906d49
+MISC ChangeLog-2015 1325 SHA256 fa5c6cf0c22997d057363f53e6210913397cf05d8f60918d12fa7323f1c42b05 SHA512 9f278cd24082b9ac36267f4c879a370332929783715d71d00ca9272c55eef5f00f5ff2f3ac5c3b91a8b29b201a21928f32a2877d5deacb98a390983cecfdfd30 WHIRLPOOL 5071f05c6bc315bc78b8aa6d3ac1cd05f0a68b12898df08e6f8dbfdce9450061a48cda57c5f1b17d246eff9e4b5c4e79d1f7270b2c58aaadc630ba307eb3cbb4
+MISC metadata.xml 249 SHA256 61486b4cff6de2a1836eafc04bbbbf33cdc826b48b6a39d61e802dd4b223a82b SHA512 0b2b2d015d6d3310efdedc20cd12cb2f587c105f1e84b243d3a7dc6337dde082c16683781eba9a0cb09341756f10f651579df35837ee232309a97017ec02cbee WHIRLPOOL 5a337f74ddddf4b9843f8b2950990f44f843627ae72b1dabf3b0ad09df9704bb96c0571af55fd754ddbf9e8bd77ff0ee9023126c717a5cf4553b5f1f8cede310
diff --git a/dev-util/build/build-0.3.10.ebuild b/dev-util/build/build-0.3.10.ebuild
new file mode 100644
index 000000000000..059d3c00ac83
--- /dev/null
+++ b/dev-util/build/build-0.3.10.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit versionator
+
+DESCRIPTION="A massively-parallel software build system implemented on top of GNU make"
+HOMEPAGE="http://www.codesynthesis.com/projects/build/"
+SLOT="0"
+SRC_URI="http://www.codesynthesis.com/download/${PN}/$(get_version_component_range 1-2)/${P}.tar.bz2"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
+IUSE="examples"
+
+DEPEND=""
+RDEPEND="!dev-util/build:0.3"
+
+src_install() {
+ emake install_prefix="${ED%/}/usr" install
+
+ HTML_DOCS=( documentation/*.{css,xhtml} )
+ einstalldocs
+ dodoc documentation/[[:upper:]]*
+
+ if use examples; then
+ dodoc -r examples
+ docompress -x /usr/share/doc/${PF}/examples
+ fi
+}
diff --git a/dev-util/build/metadata.xml b/dev-util/build/metadata.xml
new file mode 100644
index 000000000000..d4905c84fc34
--- /dev/null
+++ b/dev-util/build/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="project">
+ <email>cpp@gentoo.org</email>
+ <name>Gentoo C++ Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-util/buildbot-console-view/Manifest b/dev-util/buildbot-console-view/Manifest
new file mode 100644
index 000000000000..9f762bdac09f
--- /dev/null
+++ b/dev-util/buildbot-console-view/Manifest
@@ -0,0 +1,12 @@
+DIST buildbot-console-view-0.9.10.tar.gz 640908 SHA256 ca62780a7405df761fa2d80019890c8b25d79f6b716df26fbc4ce257a21f762e SHA512 a7ad6289a314f096e6375646d17e2f6b595ecae040e9d135334ac46e810d24f6903318e5ef34f015d923b795d01d8e4011dca00b9b6adeb8c91734350f5d1982 WHIRLPOOL fb60315596c0f0d1ef1a07bd9f40a6f194430e5b825979c5e80616fb96c185a3fee126c42634ab7183c1bdb60ff53f058e8ef6085271c29007a468788117deaa
+DIST buildbot-console-view-0.9.11.tar.gz 640623 SHA256 a0467c096971178462dc18b6a652b53485d1ad0f2791c19f6026a432a07d9d9b SHA512 24a7915713665aeefe0389fa2aae1cdbde2b0dea0041b4a00410b77956b76897a9a427658303bf976916c5a0e3bb373a4a21339f4ded0b716d80ec380ad16cb4 WHIRLPOOL 834c44937994a41c3d82dcf31c378f18c15c89313a9cb49d9d0ce9d2c19f725e2d04b6cf7efeac87b5568317ab360b3c8c7531387561930e8aa826d8469f6250
+DIST buildbot-console-view-0.9.4.tar.gz 631510 SHA256 16d1ab8801439d50d712883ab155530840588d4d77ab600299ead0ef23da5bf0 SHA512 f2e99e58acea3eebec7600a23597c6235fe93532653352c8e427d4b55a14066534dbc046de02856d738a5943ccdaed0ac14643a830d9d11acf76f6d1760def03 WHIRLPOOL 1d3ec1476d69e68f9bd752f5ff88796b504b997373e82f3428e5ead44f7c19c66278448e61aa1a36bd1d3e2bc7e55e21877537b8d02f9add0d12c5dd7c0e24b7
+DIST buildbot-console-view-0.9.7.tar.gz 632458 SHA256 757ee80e5c4b698e6bac7b409c63af7ebd8c00c31117fa290776ad6c103a67c7 SHA512 e07c032e17ce9faa9d71b71c5c48fde9ebde4995dec408781b6bb2ed77edcbe320b8d825a9a4bd76d9f3c48dd445560ec55867639c454591c5b7095e4142c4f2 WHIRLPOOL 58a534d641d3f28272f074998231b4873086cc1c8cc081463545e0d6b49145299e2496974ba6d51150cab505b67c5bd81d56fa9747271b64ed8b487d1409a5ae
+DIST buildbot-console-view-0.9.8.tar.gz 632459 SHA256 573b03db8c102114b12bcc29c3224653bbc4a08cce25b91725b4bcee2abd7020 SHA512 f6419fd47b70369866440437521a10a2e4062466878979b0c65594c7d74095c89c01c65cc0641f8faf7dee163347426e50a272f93dfe45ee91d072360e249674 WHIRLPOOL 5bfe80b6f148603f98ff684b1b317e059587d37baf88c04e2f4f6f1eb4f4026d92df57463365f4bf460743c2bc4ce5407cce2df74ff2623f95d09d5b6230d7fa
+EBUILD buildbot-console-view-0.9.10.ebuild 1140 SHA256 6b8bd099fb86082487e5d40f96dba34f9e9bf7a11a75d0954f9cb7f6e4ab3fa6 SHA512 a808734e64edd70fb3e664e58558006e31c18be5b31e1d15f03fe8f4048b6677d8023fa2efdf2b95d3dd6cf10eb67b3c3d0d0b939d755b0719e6d671a3f6a725 WHIRLPOOL 6f58b408810e2942f30e61be5f91ac766f735e42e4552b54180af8252bd567da6567bbacecb22c61c6af65f0bd24d453dbe1d9087392e33f87c9a7c7745446ac
+EBUILD buildbot-console-view-0.9.11.ebuild 1140 SHA256 6b8bd099fb86082487e5d40f96dba34f9e9bf7a11a75d0954f9cb7f6e4ab3fa6 SHA512 a808734e64edd70fb3e664e58558006e31c18be5b31e1d15f03fe8f4048b6677d8023fa2efdf2b95d3dd6cf10eb67b3c3d0d0b939d755b0719e6d671a3f6a725 WHIRLPOOL 6f58b408810e2942f30e61be5f91ac766f735e42e4552b54180af8252bd567da6567bbacecb22c61c6af65f0bd24d453dbe1d9087392e33f87c9a7c7745446ac
+EBUILD buildbot-console-view-0.9.4.ebuild 1124 SHA256 29a72a32c8857c52bd0de1d49266b7f1a55c927a7ded07e1a95303bd4d01a4df SHA512 bcc9fb4948e260feff293f05d7f56725cd87219ceb95cddc89271e87e06f6e57dc54fb3d9443921410757383d8728e94071408d46a4a571b7bb643f3d28bea9d WHIRLPOOL c281d4b89143077e59a0798d157d337a19738a0f0f780c02da08cf12994e503e7b2fd52b5ce0329c10e9457f9cb357a957f4f4405eed3019624fd159b5038ca3
+EBUILD buildbot-console-view-0.9.7.ebuild 1134 SHA256 a6832e4e2c295145cf749b9524a80f90a19eb531c4b0050c9afe0e66c10387eb SHA512 fb7a76d7a136d08420b8f6ff80854b706568d34628d77cd0061ad6ad2744d87d0dd76200a0f78348e24e5be33d84e77719bf094e6ce52630b85b6ead28fbf8ec WHIRLPOOL bda8fb5d5751b18d57d8efc1997b9808a3750e577a019f14574669eba2ce16eb904b7631c9c457cc890407e8ff02ed7cc53dbe68a609e1e353df3ac401805870
+EBUILD buildbot-console-view-0.9.8.ebuild 1134 SHA256 a6832e4e2c295145cf749b9524a80f90a19eb531c4b0050c9afe0e66c10387eb SHA512 fb7a76d7a136d08420b8f6ff80854b706568d34628d77cd0061ad6ad2744d87d0dd76200a0f78348e24e5be33d84e77719bf094e6ce52630b85b6ead28fbf8ec WHIRLPOOL bda8fb5d5751b18d57d8efc1997b9808a3750e577a019f14574669eba2ce16eb904b7631c9c457cc890407e8ff02ed7cc53dbe68a609e1e353df3ac401805870
+MISC ChangeLog 1514 SHA256 3d488f73f21573f5f3f12beec9d1f5eba46faae736e17b7d99f4d40613ea0c81 SHA512 8e787b4ec1e25fa7baf8c5a629124fe030563be065465b4975ca2c498dd4314dbef5bf4f88fe50de4b6fa9e11a32e55469e3c8fe9e1ea19780ac870388688f6c WHIRLPOOL 52295d190b3be8cbd0e397efe16256d8680adf9520595e9b24ae23ab4439b6afaaead81981eebb60274f522ffc4df887d92789c8de9486ba594997d04e45dcb2
+MISC metadata.xml 771 SHA256 d776c6b874bd4843e9cb8cb695ff26c5da8d77b96e6d66a12f56c3063c7dc4a1 SHA512 a8edc15d355234948b35fe2d563ddc7d27b82195f706eb935fd8145836a41b1ddf2adc40c402a806334b30a2ba0c156b89f5c355a53126f3ea69130b214bc66f WHIRLPOOL c3cd40d151a24abc0bd29baf75852bbae1788062ec4d2e727819d6797c44ccdfdfbafa70b250ec3132654948fe2cd0e098c930795d1ae9f243bfb31693dc7c3c
diff --git a/dev-util/buildbot-console-view/buildbot-console-view-0.9.10.ebuild b/dev-util/buildbot-console-view/buildbot-console-view-0.9.10.ebuild
new file mode 100644
index 000000000000..e40d00b64c60
--- /dev/null
+++ b/dev-util/buildbot-console-view/buildbot-console-view-0.9.10.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+PYTHON_REQ_USE="sqlite"
+PYTHON_COMPAT=( python2_7 python3_5 )
+
+EGIT_REPO_URI="https://github.com/buildbot/buildbot.git"
+
+[[ ${PV} == *9999 ]] && inherit git-r3
+inherit distutils-r1
+
+DESCRIPTION="Buildbot console-view plugin"
+HOMEPAGE="https://buildbot.net/ https://github.com/buildbot/buildbot https://pypi.python.org/pypi/buildbot-console-view"
+
+MY_PV="${PV/_p/.post}"
+MY_P="${PN}-${MY_PV}"
+[[ ${PV} == *9999 ]] || SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+
+if [[ ${PV} == *9999 ]]; then
+ KEYWORDS=""
+else
+ KEYWORDS="~amd64"
+fi
+
+IUSE="test"
+
+RDEPEND="
+ ~dev-util/buildbot-${PV}[${PYTHON_USEDEP}]
+ dev-python/mock[${PYTHON_USEDEP}]
+ ~dev-util/buildbot-www-${PV}[${PYTHON_USEDEP}]
+"
+
+DEPEND="${RDEPEND}
+ >=dev-python/setuptools-21.2.1[${PYTHON_USEDEP}]
+"
+
+S="${WORKDIR}/${MY_P}"
+#[[ ${PV} == *9999 ]] && S=${S}/www/base
+
+python_test() {
+ distutils_install_for_testing
+
+ esetup.py test || die "Tests failed under ${EPYTHON}"
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+}
diff --git a/dev-util/buildbot-console-view/buildbot-console-view-0.9.11.ebuild b/dev-util/buildbot-console-view/buildbot-console-view-0.9.11.ebuild
new file mode 100644
index 000000000000..e40d00b64c60
--- /dev/null
+++ b/dev-util/buildbot-console-view/buildbot-console-view-0.9.11.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+PYTHON_REQ_USE="sqlite"
+PYTHON_COMPAT=( python2_7 python3_5 )
+
+EGIT_REPO_URI="https://github.com/buildbot/buildbot.git"
+
+[[ ${PV} == *9999 ]] && inherit git-r3
+inherit distutils-r1
+
+DESCRIPTION="Buildbot console-view plugin"
+HOMEPAGE="https://buildbot.net/ https://github.com/buildbot/buildbot https://pypi.python.org/pypi/buildbot-console-view"
+
+MY_PV="${PV/_p/.post}"
+MY_P="${PN}-${MY_PV}"
+[[ ${PV} == *9999 ]] || SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+
+if [[ ${PV} == *9999 ]]; then
+ KEYWORDS=""
+else
+ KEYWORDS="~amd64"
+fi
+
+IUSE="test"
+
+RDEPEND="
+ ~dev-util/buildbot-${PV}[${PYTHON_USEDEP}]
+ dev-python/mock[${PYTHON_USEDEP}]
+ ~dev-util/buildbot-www-${PV}[${PYTHON_USEDEP}]
+"
+
+DEPEND="${RDEPEND}
+ >=dev-python/setuptools-21.2.1[${PYTHON_USEDEP}]
+"
+
+S="${WORKDIR}/${MY_P}"
+#[[ ${PV} == *9999 ]] && S=${S}/www/base
+
+python_test() {
+ distutils_install_for_testing
+
+ esetup.py test || die "Tests failed under ${EPYTHON}"
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+}
diff --git a/dev-util/buildbot-console-view/buildbot-console-view-0.9.4.ebuild b/dev-util/buildbot-console-view/buildbot-console-view-0.9.4.ebuild
new file mode 100644
index 000000000000..231232b3b79e
--- /dev/null
+++ b/dev-util/buildbot-console-view/buildbot-console-view-0.9.4.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+PYTHON_REQ_USE="sqlite"
+PYTHON_COMPAT=( python2_7 )
+
+EGIT_REPO_URI="https://github.com/buildbot/buildbot.git"
+
+[[ ${PV} == *9999 ]] && inherit git-r3
+inherit distutils-r1
+
+DESCRIPTION="Buildbot console-view plugin"
+HOMEPAGE="https://buildbot.net/ https://github.com/buildbot/buildbot https://pypi.python.org/pypi/buildbot-console-view"
+
+MY_V="${PV/_p/p}"
+MY_P="${PN}-${MY_V}"
+[[ ${PV} == *9999 ]] || SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+
+if [[ ${PV} == *9999 ]]; then
+ KEYWORDS=""
+else
+ KEYWORDS="~amd64"
+fi
+
+IUSE="test"
+
+RDEPEND="
+ ~dev-util/buildbot-${PV}[${PYTHON_USEDEP}]
+ dev-python/mock[${PYTHON_USEDEP}]
+ ~dev-util/buildbot-www-${PV}[${PYTHON_USEDEP}]
+"
+
+DEPEND="${RDEPEND}
+ >=dev-python/setuptools-21.2.1[${PYTHON_USEDEP}]
+"
+
+S="${WORKDIR}/${MY_P}"
+#[[ ${PV} == *9999 ]] && S=${S}/www/base
+
+python_test() {
+ distutils_install_for_testing
+
+ esetup.py test || die "Tests failed under ${EPYTHON}"
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+}
diff --git a/dev-util/buildbot-console-view/buildbot-console-view-0.9.7.ebuild b/dev-util/buildbot-console-view/buildbot-console-view-0.9.7.ebuild
new file mode 100644
index 000000000000..8cb93d7c3ecf
--- /dev/null
+++ b/dev-util/buildbot-console-view/buildbot-console-view-0.9.7.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+PYTHON_REQ_USE="sqlite"
+PYTHON_COMPAT=( python2_7 python3_5 )
+
+EGIT_REPO_URI="https://github.com/buildbot/buildbot.git"
+
+[[ ${PV} == *9999 ]] && inherit git-r3
+inherit distutils-r1
+
+DESCRIPTION="Buildbot console-view plugin"
+HOMEPAGE="https://buildbot.net/ https://github.com/buildbot/buildbot https://pypi.python.org/pypi/buildbot-console-view"
+
+MY_V="${PV/_p/p}"
+MY_P="${PN}-${MY_V}"
+[[ ${PV} == *9999 ]] || SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+
+if [[ ${PV} == *9999 ]]; then
+ KEYWORDS=""
+else
+ KEYWORDS="~amd64"
+fi
+
+IUSE="test"
+
+RDEPEND="
+ ~dev-util/buildbot-${PV}[${PYTHON_USEDEP}]
+ dev-python/mock[${PYTHON_USEDEP}]
+ ~dev-util/buildbot-www-${PV}[${PYTHON_USEDEP}]
+"
+
+DEPEND="${RDEPEND}
+ >=dev-python/setuptools-21.2.1[${PYTHON_USEDEP}]
+"
+
+S="${WORKDIR}/${MY_P}"
+#[[ ${PV} == *9999 ]] && S=${S}/www/base
+
+python_test() {
+ distutils_install_for_testing
+
+ esetup.py test || die "Tests failed under ${EPYTHON}"
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+}
diff --git a/dev-util/buildbot-console-view/buildbot-console-view-0.9.8.ebuild b/dev-util/buildbot-console-view/buildbot-console-view-0.9.8.ebuild
new file mode 100644
index 000000000000..8cb93d7c3ecf
--- /dev/null
+++ b/dev-util/buildbot-console-view/buildbot-console-view-0.9.8.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+PYTHON_REQ_USE="sqlite"
+PYTHON_COMPAT=( python2_7 python3_5 )
+
+EGIT_REPO_URI="https://github.com/buildbot/buildbot.git"
+
+[[ ${PV} == *9999 ]] && inherit git-r3
+inherit distutils-r1
+
+DESCRIPTION="Buildbot console-view plugin"
+HOMEPAGE="https://buildbot.net/ https://github.com/buildbot/buildbot https://pypi.python.org/pypi/buildbot-console-view"
+
+MY_V="${PV/_p/p}"
+MY_P="${PN}-${MY_V}"
+[[ ${PV} == *9999 ]] || SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+
+if [[ ${PV} == *9999 ]]; then
+ KEYWORDS=""
+else
+ KEYWORDS="~amd64"
+fi
+
+IUSE="test"
+
+RDEPEND="
+ ~dev-util/buildbot-${PV}[${PYTHON_USEDEP}]
+ dev-python/mock[${PYTHON_USEDEP}]
+ ~dev-util/buildbot-www-${PV}[${PYTHON_USEDEP}]
+"
+
+DEPEND="${RDEPEND}
+ >=dev-python/setuptools-21.2.1[${PYTHON_USEDEP}]
+"
+
+S="${WORKDIR}/${MY_P}"
+#[[ ${PV} == *9999 ]] && S=${S}/www/base
+
+python_test() {
+ distutils_install_for_testing
+
+ esetup.py test || die "Tests failed under ${EPYTHON}"
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+}
diff --git a/dev-util/buildbot-console-view/metadata.xml b/dev-util/buildbot-console-view/metadata.xml
new file mode 100644
index 000000000000..a12007494aec
--- /dev/null
+++ b/dev-util/buildbot-console-view/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>dolsen@gentoo.org</email>
+ <name>Brian Dolbec</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>hwoarang@gentoo.org</email>
+ <name>Markos Chandras</name>
+ </maintainer>
+ <longdescription lang="en">
+ The buildbot-console-view plugin is the user interface code used to
+ display information about the builds to the console.
+ </longdescription>
+ <upstream>
+ <maintainer>
+ <email>devel@buildbot.net</email>
+ <name>Developers List</name>
+ </maintainer>
+ <remote-id type="pypi">buildbot-console-view</remote-id>
+ <remote-id type="github">buildbot/buildbot</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/buildbot-grid-view/Manifest b/dev-util/buildbot-grid-view/Manifest
new file mode 100644
index 000000000000..b956f29454e6
--- /dev/null
+++ b/dev-util/buildbot-grid-view/Manifest
@@ -0,0 +1,3 @@
+DIST buildbot-grid-view-0.9.11.tar.gz 638818 SHA256 f93088ba6ac063c4bd7400b2477c94e86a7531fc614c3965c18914dcc701812b SHA512 4da052b284452557a1de080afd31064b8ae950f1a1fbe2f2418a130e1150b84fc25a119866ccc5889a38dfe94a5f1f8d3b4ff7f3f7dd6cdb485eea90adda3f2a WHIRLPOOL 1ccd86ff91d508ec06c2f21128e2f09889450c81efce2603d29348c449c4d4d2e82ad7c885c11c53abc001ae3d40100ef3de86f1fac7ea1b8099da2ef13c4444
+EBUILD buildbot-grid-view-0.9.11.ebuild 1105 SHA256 92cc73d8de7ae1fbe402363afb79592f811a63904f4b48dfd7d1d02028a4dc42 SHA512 9555429dc5cdbcea15fc89d576f4e981c79f096d0e1793392497af8ee0b405f7e9ac97cbc908b80faa9ad8bf4ced34b7beb48c8db45c4fe278d22c910a6f1d0c WHIRLPOOL b5f0b97c435a70dece006f81b1371b5bf03d76d41f4d49b182f2ccb5cef35c5115f5d889dd01df9b490c2a4efb738bcb3998cb15e83cdcc5324693b6e92d9518
+MISC metadata.xml 750 SHA256 2e04125d9cd141283ac7eb524cedd77da9cc305052f58c735cbc8e3dad7cb4f9 SHA512 8ae01c42d25b7e2d957968dcbe8c89e6b1efc9005b5021a7190c585cf586f37ce9b6168b29b58844149a8e869de9374cb611df6668476152fcaf393e55577fb3 WHIRLPOOL 3413473730451b9431d9737cb9c734e161419b00ae51077908b377bbd0a7ba45acc45ffb2a38743acbb25d4c053216b755684423a9cfa552223ee3ac2b392d10
diff --git a/dev-util/buildbot-grid-view/buildbot-grid-view-0.9.11.ebuild b/dev-util/buildbot-grid-view/buildbot-grid-view-0.9.11.ebuild
new file mode 100644
index 000000000000..c52caef75095
--- /dev/null
+++ b/dev-util/buildbot-grid-view/buildbot-grid-view-0.9.11.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+PYTHON_REQ_USE="sqlite"
+PYTHON_COMPAT=( python2_7 python3_5 )
+
+EGIT_REPO_URI="https://github.com/buildbot/buildbot.git"
+
+[[ ${PV} == *9999 ]] && inherit git-r3
+inherit distutils-r1
+
+DESCRIPTION="BuildBot grid view web interface"
+HOMEPAGE="https://buildbot.net/ https://github.com/buildbot/buildbot https://pypi.python.org/pypi/buildbot-grid-view"
+
+MY_PV="${PV/_p/.post}"
+MY_P="${PN}-${MY_PV}"
+[[ ${PV} == *9999 ]] || SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+
+if [[ ${PV} == *9999 ]]; then
+ KEYWORDS=""
+else
+ KEYWORDS="~amd64"
+fi
+
+IUSE="test"
+
+RDEPEND=""
+
+DEPEND="${RDEPEND}
+ >=dev-python/setuptools-21.2.1[${PYTHON_USEDEP}]
+ ~dev-util/buildbot-${PV}[${PYTHON_USEDEP}]
+ ~dev-util/buildbot-www-${PV}[${PYTHON_USEDEP}]
+"
+
+S="${WORKDIR}/${MY_P}"
+#[[ ${PV} == *9999 ]] && S=${S}/www/base
+
+python_test() {
+ distutils_install_for_testing
+
+ esetup.py test || die "Tests failed under ${EPYTHON}"
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+}
diff --git a/dev-util/buildbot-grid-view/metadata.xml b/dev-util/buildbot-grid-view/metadata.xml
new file mode 100644
index 000000000000..c5790cf414b4
--- /dev/null
+++ b/dev-util/buildbot-grid-view/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>dolsen@gentoo.org</email>
+ <name>Brian Dolbec</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>hwoarang@gentoo.org</email>
+ <name>Markos Chandras</name>
+ </maintainer>
+ <longdescription lang="en">
+ The buildbot-grid-view plugin is the user interface code used to
+ display information about the builds.
+ </longdescription>
+ <upstream>
+ <maintainer>
+ <email>devel@buildbot.net</email>
+ <name>Developers List</name>
+ </maintainer>
+ <remote-id type="pypi">buildbot-grid-view</remote-id>
+ <remote-id type="github">buildbot/buildbot</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/buildbot-pkg/Manifest b/dev-util/buildbot-pkg/Manifest
new file mode 100644
index 000000000000..2da716f242bf
--- /dev/null
+++ b/dev-util/buildbot-pkg/Manifest
@@ -0,0 +1,12 @@
+DIST buildbot-pkg-0.9.10.tar.gz 4422 SHA256 6eecdde02f98be469ec9fde47c55fe64ca04eec764a4729be2ff4faa892532d8 SHA512 d31ef269ddbd042a9064daea526f289f2ec3ffa58dc8f43a8e40ae81b03cfa026f219bcce2ccb83addca0b1da0a8a2d3bc894a400edb9c45f4c0cde7691b5e4d WHIRLPOOL 36ff1465b3f0ab2699d3c9b5916862b1f3038e4fa999939730a7a280576b2bae5f106d2f34faabfe6ae3cabfe4ea5bcfd75bb472dddc6ac43fc36ad702d81aed
+DIST buildbot-pkg-0.9.11.tar.gz 4420 SHA256 6328abfa68efba299d0309a88b8de40d71d1da4d7bc9148476fed8f393e407be SHA512 63f75f4df2a725caa48d98c09037580c7b6a16609e4063e7aaab8a0e4b7bda4c74da8bf524b7d9a0cf9e909146522af5ffe8f1a5a8617c5f67658cc723f61b2e WHIRLPOOL 795aeeb945191bcd23df5acec634c2782e7910f9c10cbc9d7586d01baea82034d33273c98708676344adba67d0a8a9a29d3c6b37ea45d055e1b737b19189e869
+DIST buildbot-pkg-0.9.4.tar.gz 3830 SHA256 968f252f0700fbbcc6cac9f3fcf66d06bd577db5bf793fb3d7c84158f4f64325 SHA512 ac41792076e5a86ffeb58e694d6aedcf3cf386facf156ce658dfa7c73166c7883c097d160babf6d6ca92c1fba1527db58bade74c3500fb62c448eeecbd840dc0 WHIRLPOOL cb4255c90ae59750aa43fea890d79880bb30958ca36ee27a0f11e859575372dbee82708960dd8862c1ac551b4f9e5b38e4d70c8b7cc87048385c08c31ed455c3
+DIST buildbot-pkg-0.9.7.tar.gz 3871 SHA256 fbb75cff1d313a0fa810894073716ddf56b834ede761b1fae34f100f420e655c SHA512 7991425e69a404e15fd018d920accc65915e9d40a3b4b1faeca7b7501d1c9a2b01c2bef209ac10b9ea4dce03a41fd0d05266a5c3c9d50ec0f936a5f1c80f577b WHIRLPOOL 186fe1d1f155df98452e441303f916c498a01fc1e01ce741388ca00f33dd83105aad59d3024fd5b2f50680369f99e17fa609c3d325f291f4a33df7699d8394e5
+DIST buildbot-pkg-0.9.8.tar.gz 3913 SHA256 10000b0630d2f96230fada97828b986b4e9f4897fefb4b8be63e51b73e6ed63c SHA512 53e21a4ed20df687f9f646f0570fe610bd6d9da116bf7fdd60f1f2d245541ba9444e6cf7c63e3d780979a9320c9b98fcbe310acd736e3877c02bee31c683ebfc WHIRLPOOL 831f21235e4396603e4fdaec226006a7c6e01fd8378c7df9c2a8a24724542c315f97641b9fe4edb353405b79273bd361e7dade34a2be81be9e27c551728351ee
+EBUILD buildbot-pkg-0.9.10.ebuild 1067 SHA256 ad50e36828acb1a732131299002e0aa66b65a4e36069e9ce285a8719de3e140a SHA512 4efe52a0999ed6ecbe2ab002f2bff90f365b78e8c47272c952211128b94f93b8070925c6784fc1c5655802c8ede02300781670b60d604569c40bdfa855a8ab7f WHIRLPOOL 279926bd3d73870af872aa38f245eb96d076bd16b85b5cb6ae434c79aa2305d8c2c994c16014c5da2a11d0a8e91f11822c0821b701f805c09daaef699e564d6e
+EBUILD buildbot-pkg-0.9.11.ebuild 1067 SHA256 ad50e36828acb1a732131299002e0aa66b65a4e36069e9ce285a8719de3e140a SHA512 4efe52a0999ed6ecbe2ab002f2bff90f365b78e8c47272c952211128b94f93b8070925c6784fc1c5655802c8ede02300781670b60d604569c40bdfa855a8ab7f WHIRLPOOL 279926bd3d73870af872aa38f245eb96d076bd16b85b5cb6ae434c79aa2305d8c2c994c16014c5da2a11d0a8e91f11822c0821b701f805c09daaef699e564d6e
+EBUILD buildbot-pkg-0.9.4.ebuild 1051 SHA256 0f469d79b0cd2eb1277dbb8c1eab18b1692f242a6d10e4b5b72a496f7ed088fe SHA512 91ede9e7135bbe8708cf7593d2fd9804a8c58f17ef21815e33e4d07dff5e469f7b208dfc0ef7a0189ac83b177a2372f6a5aa08ef7279ddc03168f9aa92006658 WHIRLPOOL fba46bb95b8b8ab9880621f5dab4a720dfbc4998f526f02ab74061b18a8a9b001cd92a947d7db0e0498bc566f9fd80e7c24ddf83e711551a3634b4bc67de36a1
+EBUILD buildbot-pkg-0.9.7.ebuild 1061 SHA256 4c57bee37e78b280945569c0e7400a26d98c8af5aa50c826e39c477d17e63745 SHA512 929af1ec53cccb8f76acf7ae508135bdf626bc738e1b16eb84953abae728fc5ddc2c4a831f3925047e2093a6f45d6ad2c501931846dd85619dfcee501a1f5317 WHIRLPOOL 5105991ef9f2864f9fc1f8cac90299bfff0293df43b413422f032eaf7933f73b88d5bd196b86729bf9783938887e6c3d936a5e2593ca1ce6afadf491530d32a3
+EBUILD buildbot-pkg-0.9.8.ebuild 1061 SHA256 4c57bee37e78b280945569c0e7400a26d98c8af5aa50c826e39c477d17e63745 SHA512 929af1ec53cccb8f76acf7ae508135bdf626bc738e1b16eb84953abae728fc5ddc2c4a831f3925047e2093a6f45d6ad2c501931846dd85619dfcee501a1f5317 WHIRLPOOL 5105991ef9f2864f9fc1f8cac90299bfff0293df43b413422f032eaf7933f73b88d5bd196b86729bf9783938887e6c3d936a5e2593ca1ce6afadf491530d32a3
+MISC ChangeLog 1434 SHA256 a8c07d05da9da952f38fc159c60b10f625f8c063d6cebf2ff4fc700cfb9cda26 SHA512 c461478a8e2812239bf920fdbcc6892d7c0abba909a9bfd19224beaf956d92b0af8f63d45be7f2e1fb0d4f9400cbbd8dfb4faba6b734d431b54683326f5e9958 WHIRLPOOL a4b7ff9d9ebbd52d8e6b8629ecfed3b7bd0d499ac66dc90398c556359423826280e10a45932b3d68615b20e2ec6e829828a6e7e64599830211a0cf033ba98898
+MISC metadata.xml 1309 SHA256 e94f5fca38d78b3eb789cbfc5c9d5c86a39e22539ec36ebd9b12e9a85adb829e SHA512 8ef3eb044f5b1b072a48a26436fec067a2b299b1cb144df13eaa283370c291225dde8e895b6cefab18ff7632882c9adcc7344b6bd41f0fb8a102d65862102a19 WHIRLPOOL 6042238109776fd57f188f929f424fa224b894316ffe7de3953cdd92df541aef764a5322193e905b634a486c21ce23b773fc5a1f2df768aa8f777589e4786887
diff --git a/dev-util/buildbot-pkg/buildbot-pkg-0.9.10.ebuild b/dev-util/buildbot-pkg/buildbot-pkg-0.9.10.ebuild
new file mode 100644
index 000000000000..dd96a049c7cf
--- /dev/null
+++ b/dev-util/buildbot-pkg/buildbot-pkg-0.9.10.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+PYTHON_REQ_USE="sqlite"
+PYTHON_COMPAT=( python2_7 python3_5 )
+
+EGIT_REPO_URI="https://github.com/buildbot/buildbot.git"
+
+[[ ${PV} == *9999 ]] && inherit git-r3
+inherit distutils-r1
+
+MY_PV="${PV/_p/.post}"
+MY_P="${PN}-${MY_PV}"
+
+DESCRIPTION="BuildBot common www build tools for packaging releases"
+HOMEPAGE="https://buildbot.net/ https://github.com/buildbot/buildbot https://pypi.python.org/pypi/buildbot-pkg"
+[[ ${PV} == *9999 ]] || SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+
+if [[ ${PV} == *9999 ]]; then
+ KEYWORDS=""
+else
+ KEYWORDS="~amd64"
+fi
+
+# No real integration tests for this pkg.
+# all tests are related to making releases and final checks for distribution
+
+RDEPEND="
+ ~dev-util/buildbot-${PV}[${PYTHON_USEDEP}]
+ dev-python/mock[${PYTHON_USEDEP}]
+"
+
+DEPEND="${RDEPEND}
+ >=dev-python/setuptools-21.2.1[${PYTHON_USEDEP}]
+"
+
+S=${WORKDIR}/${MY_P}
+
+python_install_all() {
+ distutils-r1_python_install_all
+}
diff --git a/dev-util/buildbot-pkg/buildbot-pkg-0.9.11.ebuild b/dev-util/buildbot-pkg/buildbot-pkg-0.9.11.ebuild
new file mode 100644
index 000000000000..dd96a049c7cf
--- /dev/null
+++ b/dev-util/buildbot-pkg/buildbot-pkg-0.9.11.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+PYTHON_REQ_USE="sqlite"
+PYTHON_COMPAT=( python2_7 python3_5 )
+
+EGIT_REPO_URI="https://github.com/buildbot/buildbot.git"
+
+[[ ${PV} == *9999 ]] && inherit git-r3
+inherit distutils-r1
+
+MY_PV="${PV/_p/.post}"
+MY_P="${PN}-${MY_PV}"
+
+DESCRIPTION="BuildBot common www build tools for packaging releases"
+HOMEPAGE="https://buildbot.net/ https://github.com/buildbot/buildbot https://pypi.python.org/pypi/buildbot-pkg"
+[[ ${PV} == *9999 ]] || SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+
+if [[ ${PV} == *9999 ]]; then
+ KEYWORDS=""
+else
+ KEYWORDS="~amd64"
+fi
+
+# No real integration tests for this pkg.
+# all tests are related to making releases and final checks for distribution
+
+RDEPEND="
+ ~dev-util/buildbot-${PV}[${PYTHON_USEDEP}]
+ dev-python/mock[${PYTHON_USEDEP}]
+"
+
+DEPEND="${RDEPEND}
+ >=dev-python/setuptools-21.2.1[${PYTHON_USEDEP}]
+"
+
+S=${WORKDIR}/${MY_P}
+
+python_install_all() {
+ distutils-r1_python_install_all
+}
diff --git a/dev-util/buildbot-pkg/buildbot-pkg-0.9.4.ebuild b/dev-util/buildbot-pkg/buildbot-pkg-0.9.4.ebuild
new file mode 100644
index 000000000000..d8ef0b6245a7
--- /dev/null
+++ b/dev-util/buildbot-pkg/buildbot-pkg-0.9.4.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+PYTHON_REQ_USE="sqlite"
+PYTHON_COMPAT=( python2_7 )
+
+EGIT_REPO_URI="https://github.com/buildbot/buildbot.git"
+
+[[ ${PV} == *9999 ]] && inherit git-r3
+inherit distutils-r1
+
+MY_V="${PV/_p/p}"
+MY_P="${PN}-${MY_V}"
+
+DESCRIPTION="BuildBot common www build tools for packaging releases"
+HOMEPAGE="https://buildbot.net/ https://github.com/buildbot/buildbot https://pypi.python.org/pypi/buildbot-pkg"
+[[ ${PV} == *9999 ]] || SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+
+if [[ ${PV} == *9999 ]]; then
+ KEYWORDS=""
+else
+ KEYWORDS="~amd64"
+fi
+
+# No real integration tests for this pkg.
+# all tests are related to making releases and final checks for distribution
+
+RDEPEND="
+ ~dev-util/buildbot-${PV}[${PYTHON_USEDEP}]
+ dev-python/mock[${PYTHON_USEDEP}]
+"
+
+DEPEND="${RDEPEND}
+ >=dev-python/setuptools-21.2.1[${PYTHON_USEDEP}]
+"
+
+S=${WORKDIR}/${MY_P}
+
+python_install_all() {
+ distutils-r1_python_install_all
+}
diff --git a/dev-util/buildbot-pkg/buildbot-pkg-0.9.7.ebuild b/dev-util/buildbot-pkg/buildbot-pkg-0.9.7.ebuild
new file mode 100644
index 000000000000..ce71cd9ce764
--- /dev/null
+++ b/dev-util/buildbot-pkg/buildbot-pkg-0.9.7.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+PYTHON_REQ_USE="sqlite"
+PYTHON_COMPAT=( python2_7 python3_5 )
+
+EGIT_REPO_URI="https://github.com/buildbot/buildbot.git"
+
+[[ ${PV} == *9999 ]] && inherit git-r3
+inherit distutils-r1
+
+MY_V="${PV/_p/p}"
+MY_P="${PN}-${MY_V}"
+
+DESCRIPTION="BuildBot common www build tools for packaging releases"
+HOMEPAGE="https://buildbot.net/ https://github.com/buildbot/buildbot https://pypi.python.org/pypi/buildbot-pkg"
+[[ ${PV} == *9999 ]] || SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+
+if [[ ${PV} == *9999 ]]; then
+ KEYWORDS=""
+else
+ KEYWORDS="~amd64"
+fi
+
+# No real integration tests for this pkg.
+# all tests are related to making releases and final checks for distribution
+
+RDEPEND="
+ ~dev-util/buildbot-${PV}[${PYTHON_USEDEP}]
+ dev-python/mock[${PYTHON_USEDEP}]
+"
+
+DEPEND="${RDEPEND}
+ >=dev-python/setuptools-21.2.1[${PYTHON_USEDEP}]
+"
+
+S=${WORKDIR}/${MY_P}
+
+python_install_all() {
+ distutils-r1_python_install_all
+}
diff --git a/dev-util/buildbot-pkg/buildbot-pkg-0.9.8.ebuild b/dev-util/buildbot-pkg/buildbot-pkg-0.9.8.ebuild
new file mode 100644
index 000000000000..ce71cd9ce764
--- /dev/null
+++ b/dev-util/buildbot-pkg/buildbot-pkg-0.9.8.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+PYTHON_REQ_USE="sqlite"
+PYTHON_COMPAT=( python2_7 python3_5 )
+
+EGIT_REPO_URI="https://github.com/buildbot/buildbot.git"
+
+[[ ${PV} == *9999 ]] && inherit git-r3
+inherit distutils-r1
+
+MY_V="${PV/_p/p}"
+MY_P="${PN}-${MY_V}"
+
+DESCRIPTION="BuildBot common www build tools for packaging releases"
+HOMEPAGE="https://buildbot.net/ https://github.com/buildbot/buildbot https://pypi.python.org/pypi/buildbot-pkg"
+[[ ${PV} == *9999 ]] || SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+
+if [[ ${PV} == *9999 ]]; then
+ KEYWORDS=""
+else
+ KEYWORDS="~amd64"
+fi
+
+# No real integration tests for this pkg.
+# all tests are related to making releases and final checks for distribution
+
+RDEPEND="
+ ~dev-util/buildbot-${PV}[${PYTHON_USEDEP}]
+ dev-python/mock[${PYTHON_USEDEP}]
+"
+
+DEPEND="${RDEPEND}
+ >=dev-python/setuptools-21.2.1[${PYTHON_USEDEP}]
+"
+
+S=${WORKDIR}/${MY_P}
+
+python_install_all() {
+ distutils-r1_python_install_all
+}
diff --git a/dev-util/buildbot-pkg/metadata.xml b/dev-util/buildbot-pkg/metadata.xml
new file mode 100644
index 000000000000..0661cac6ea60
--- /dev/null
+++ b/dev-util/buildbot-pkg/metadata.xml
@@ -0,0 +1,34 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>dolsen@gentoo.org</email>
+ <name>Brian Dolbec</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>hwoarang@gentoo.org</email>
+ <name>Markos Chandras</name>
+ </maintainer>
+ <longdescription lang="en">
+ BuildBot is a system to automate the compile/test cycle required
+ by most software projects to validate code changes.
+ Features:
+ * run builds on a variety of slave platforms
+ * arbitrary build process: handles projects using C, Python, whatever
+ * minimal host requirements: python and Twisted
+ * slaves can be behind a firewall if they can still do checkout
+ * status delivery through web page, email, IRC, other protocols
+ * track builds in progress, provide estimated completion time
+ * flexible configuration by subclassing generic build process classes
+ * debug tools to force a new build, submit fake Changes, query slave status
+ * released under the GPL
+ </longdescription>
+ <upstream>
+ <maintainer>
+ <email>devel@buildbot.net</email>
+ <name>Developers List</name>
+ </maintainer>
+ <remote-id type="pypi">buildbot-pkg</remote-id>
+ <remote-id type="github">buildbot/buildbot</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/buildbot-slave/Manifest b/dev-util/buildbot-slave/Manifest
new file mode 100644
index 000000000000..d9c586f30413
--- /dev/null
+++ b/dev-util/buildbot-slave/Manifest
@@ -0,0 +1,8 @@
+AUX buildslave.confd 217 SHA256 c324eee07561afd8be623b46cd8f50cbbac5f1e42f2c493aa75dbaace6dcfa6f SHA512 54fc03a82cebf874c18d1bd739a6640677cfcd540b47a9929e6f5d63a83bd64bee615b033a72b49ab5fa3da69b16ff657805392ab0a68e0d33e48581fc8bb017 WHIRLPOOL 9e352aaf7b2388f23b2f346f86c92904a9dbcb1bb263c517243169a14250d19b8d934939ec3fac36a2300c73d9e3b727d5edeb4df628d5fbf13ef6f6e3346bce
+AUX buildslave.initd 1140 SHA256 5c3247e53ae214b4c1913e8eccbf7c43f8707ec217deb1f4ec6bec4f351fbf09 SHA512 217a9e3f774bcc7e7773d6e3047dbbabe196d168f814485ae54d1a94b330616fd80ad82bfa67c9b6185c39b780eae7a71776e727810ff4df337baca44d5fdbda WHIRLPOOL 21af3453d6ef6b9c3db6333b854bfce3390da8463022632651b64a2535741b7dd23349390985f6a1fc9fb73d091c31d71bf4069ac64e58d2e020d32e83e5b8ea
+AUX buildslave.service 386 SHA256 64f70fb7e06c65a2e9eac3fac7e37aca98eec04f69f4e1b344b5d0671725cab3 SHA512 53d9ac95006fb4e43e0bfa82c935e17c577cd292c8fea373247e4cd9bb21843f2f82971ffd37f50aa16fe258139c22adbe24570e3017fa529f2258a1d395d8dd WHIRLPOOL 1ad2b4a0723a5aed1116dafcaf5090f2984b6b6a97cb6ba3c65070e1e4743de0ad4e72a1b23a15f3f2bb4eb574fa44d6eb86e67dbac13d1b8f1eba174f8da879
+DIST buildbot-slave-0.8.12.tar.gz 118339 SHA256 905eab122dcfc9425d51f0ed0c7682e7f933e140a7203637aa12a84498bd7461 SHA512 74f7f9ffab946000a5d31ae28140698ca259ba5b75815ed839d51fa5d9f702e998b61a716b66aab7946b6143d329244f2403d9b98cbbfc70223b691dcb70f0bc WHIRLPOOL f0281c11520ff31291977fa67397c7398d8ecf7fe0e70a45521158e792862aa9bb6eb65591181a1a3d71913241768e65143a1b35d6316cb5f8b5bc5373d02979
+EBUILD buildbot-slave-0.8.12.ebuild 1567 SHA256 0cc61dd3f196d89a452bab265b7ae81175254f031db83e738b0e6dd4b87c6885 SHA512 d1c85ce92232dd353ba1efeba7abdaf831ca4e2b8f89ecdf2ad09ff93a19c572809b6d61e31ee1d3000fed134a668c19edd6a2747a1146b21b5fd65af762fe12 WHIRLPOOL b507ec4fc3c27bcd90e1e703e883be4162017d3732491012db73862392ce51d3c6e26cde3675ee7f0fb905064650e12f8ad1a47d513bc99a78e7f989e0f0e482
+MISC ChangeLog 2979 SHA256 793aef10ce735be742a0b5994ec9e491c65ef1e3a08ddd8d0bb17f8422e41178 SHA512 5d976dd45dbbbb301ec0c27b52674c58d1a8a00bd89ca37780ee72b76294039f974ea62b5324375c7269a119b96a3a9c62262a68916ca1ab0cc614aac125839d WHIRLPOOL a0a57ec3ccfd89bfb52fa0cedfa833f56db9db3265ad57e0c738017841d2ae0ba257bcee29f3fcd222b5c07b322fc45ceb1f7dff3c5f48a6ab143e3651eeb288
+MISC ChangeLog-2015 10377 SHA256 bf0a05181de1a4c9624047d1a2f113bdd03dd55f2fba8cf4d349c703b33a996f SHA512 1220c8be36649acfa29d4898cf565c3a5cab784faffe6959425fd59b135b88904243a5ce2fa01e8657c17643ade374e1f62365956cebb4126bf0baa8d9b70b30 WHIRLPOOL 50bc8a8aa665efe1c45e2fbc3db3d60a9517d9c44bea4d1d5338e601f18a7767216b6514fd42fa76023d9493ce7b22e0527e6c4f9e902bdcfb1594c5c835670d
+MISC metadata.xml 384 SHA256 8bfbf7b8688e3e46fa22b5f711fbdad5ee8f0b8e49cb85aa150abc19239748ae SHA512 339c2747b1d392528c2b53934ed652574db095407cba130d0c8deac06570dce89e01f5fafb1e9ebe585c88ee3cdcc9f16747c08cdeace6ad47ebdff7f9d5302a WHIRLPOOL b10b1daaa4868eb4ed9eff3b9d6eec12b1b02a48fc963367b8e616d2650b38bd1b2f52f8713f53f1e93bf54cd342b8af2716d3fa304d687af338d21e8b58808a
diff --git a/dev-util/buildbot-slave/buildbot-slave-0.8.12.ebuild b/dev-util/buildbot-slave/buildbot-slave-0.8.12.ebuild
new file mode 100644
index 000000000000..8bb290378b53
--- /dev/null
+++ b/dev-util/buildbot-slave/buildbot-slave-0.8.12.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+PYTHON_COMPAT=( python2_7 )
+inherit distutils-r1 readme.gentoo systemd user
+
+DESCRIPTION="BuildBot Slave Daemon"
+HOMEPAGE="http://buildbot.net/ https://github.com/buildbot/buildbot https://pypi.python.org/pypi/buildbot-slave"
+
+MY_PV="${PV/_p/p}"
+MY_P="${PN}-${MY_PV}"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha amd64 arm hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc x86 ~amd64-linux"
+IUSE="test"
+
+RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
+ dev-python/twisted-core[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+ test? ( dev-python/mock[${PYTHON_USEDEP}] )"
+
+S="${WORKDIR}/${MY_P}"
+
+pkg_setup() {
+ enewuser buildbot
+
+ DOC_CONTENTS="The \"buildbot\" user and the \"buildslave\" init script has been added
+ to support starting buildslave through Gentoo's init system. To use this,
+ set up your build slave following the documentation, make sure the
+ resulting directories are owned by the \"buildbot\" user and point
+ \"${ROOT}etc/conf.d/buildslave\" at the right location. The scripts can
+ run as a different user if desired. If you need to run more than one
+ build slave, just copy the scripts."
+}
+
+src_install() {
+ distutils-r1_src_install
+
+ doman docs/buildslave.1
+
+ newconfd "${FILESDIR}/buildslave.confd" buildslave
+ newinitd "${FILESDIR}/buildslave.initd" buildslave
+ systemd_dounit "${FILESDIR}/buildslave.service"
+
+ readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+ readme.gentoo_print_elog
+}
diff --git a/dev-util/buildbot-slave/files/buildslave.confd b/dev-util/buildbot-slave/files/buildslave.confd
new file mode 100644
index 000000000000..4ef42c4a7333
--- /dev/null
+++ b/dev-util/buildbot-slave/files/buildslave.confd
@@ -0,0 +1,9 @@
+# Path to the build slave's basedir.
+BASEDIR="/var/lib/buildslave"
+
+# User account for the buildslave.
+# The basedir should be owned by this user.
+USERNAME="buildbot"
+
+# Extra options passed to twistd.
+TWISTD_OPTS=""
diff --git a/dev-util/buildbot-slave/files/buildslave.initd b/dev-util/buildbot-slave/files/buildslave.initd
new file mode 100644
index 000000000000..587c7ccb3bb5
--- /dev/null
+++ b/dev-util/buildbot-slave/files/buildslave.initd
@@ -0,0 +1,48 @@
+#!/sbin/openrc-run
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ need net
+}
+
+checkconfig() {
+ if [ -z "${BASEDIR}" ]; then
+ eerror "BASEDIR not set"
+ return 1
+ fi
+ if [ -z "${USERNAME}" ]; then
+ eerror "USERNAME not set"
+ return 1
+ fi
+ if [ ! -d "${BASEDIR}" ]; then
+ eerror "${BASEDIR} is not a directory"
+ return 1
+ fi
+ if [ ! -e "${BASEDIR}/buildbot.tac" ]; then
+ eerror "${BASEDIR} does not contain buildbot.tac"
+ return 1
+ fi
+}
+
+start() {
+ checkconfig || return 1
+ ebegin "Starting buildslave in ${BASEDIR}"
+ # We set HOME here to make something valid show up in the env of child
+ # processes spawned by the buildslave.
+ start-stop-daemon --start -u "${USERNAME}" \
+ --pidfile "${BASEDIR}/buildslave.pid" \
+ --env HOME="${BASEDIR}" \
+ --exec /usr/bin/python -- /usr/bin/twistd \
+ --no_save \
+ --logfile="${BASEDIR}/twistd.log" \
+ --pidfile="${BASEDIR}/buildslave.pid" \
+ --python="${BASEDIR}/buildbot.tac"
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping buildslave in ${BASEDIR}"
+ start-stop-daemon --stop --pidfile "${BASEDIR}/buildslave.pid"
+ eend $?
+}
diff --git a/dev-util/buildbot-slave/files/buildslave.service b/dev-util/buildbot-slave/files/buildslave.service
new file mode 100644
index 000000000000..5c8e483fe83a
--- /dev/null
+++ b/dev-util/buildbot-slave/files/buildslave.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=buildbot slave instances
+After=local-fs.target network.target
+
+[Service]
+Type=forking
+User=buildbot
+WorkingDirectory=/var/lib/buildslave
+# The following assume there is a 'slave' directory
+# in $WorkingDirectory with the slave configuration files
+ExecStart=/usr/bin/buildslave start slave
+ExecStop=/usr/bin/buildslave stop slave
+
+[Install]
+WantedBy=multi-user.target
diff --git a/dev-util/buildbot-slave/metadata.xml b/dev-util/buildbot-slave/metadata.xml
new file mode 100644
index 000000000000..87ac9774fee6
--- /dev/null
+++ b/dev-util/buildbot-slave/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>hwoarang@gentoo.org</email>
+ <name>Markos Chandras</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="pypi">buildbot-slave</remote-id>
+ <remote-id type="github">buildbot/buildbot</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/buildbot-waterfall-view/Manifest b/dev-util/buildbot-waterfall-view/Manifest
new file mode 100644
index 000000000000..a493ae956dd7
--- /dev/null
+++ b/dev-util/buildbot-waterfall-view/Manifest
@@ -0,0 +1,12 @@
+DIST buildbot-waterfall-view-0.9.10.tar.gz 714260 SHA256 c2768391d7eb92e550afe4210e3cba7b69b34a7c9a27d333582f2a04b0f8b030 SHA512 e57a680fb3be7072f1dd6a757787932d9640f1442370048411987d3521f6c600c1f1adedb439ed439cf7928110a6191c8cc4207bf7cd7ebc8e6d1ac5a36f4a1e WHIRLPOOL 95894f7d7b1a52f0312cf1a11f645f5212cd0a18a62ad99f90c804271013ccd4c3f82f7e851d0e02bddef5da9c1ba8af1b2599d424bd95a7f3f29e7f914fe6c3
+DIST buildbot-waterfall-view-0.9.11.tar.gz 713915 SHA256 54e36f8d02be7c046510173f7adb14e3eaeb912e0f41f1b7784e2ac0744799c1 SHA512 aec554156ac6d430f62a090d61896732cca7a0f9ebeaa33c929113f9fcf07c4383d9aae7e544d3dbeb83e7f267327810c10c04ba3ec1f7f9c7192a03b4cd47f6 WHIRLPOOL 5d9003b79c25622048b22ec5ab5a17cf6219ccca964ce8ab14de7052d95af9deee7e8dc9dadbd819b444c3b1562957625cc39a7e684060dcacbd89c3870e3c54
+DIST buildbot-waterfall-view-0.9.4.tar.gz 705483 SHA256 4e8e8d85a77a95fb6ec6e9b0eaa4a774f80cbc6f3a6568f8525d4c90f336b69f SHA512 b619e366b2d276ec956c7f2b814fbea5ad8d626f21d365f586fb93d9ddd8d90c6e3f290a6404b401051e780b228b84f78642f876783c0da6e96549f0e2c9929c WHIRLPOOL f6622afe37931b1525f4234b138d7cd6c296ab92ea00a476eab2b8cd00192972e2b3ca936d54d01b5ed4d93441824d79734b179153614f568a3023ecb308fcfd
+DIST buildbot-waterfall-view-0.9.7.tar.gz 705818 SHA256 d6455df447720e367988f043ae381130add96daf80ae45cdf5a0fbcc8aa082e0 SHA512 4f5a068ff03d2ea24eca2344676eecd5558b02127f805b0c88ab0b1bcf353640a6b0bc8756c12d0565a5fdfc8dedff8394b5dc014378200880d469fa26b7263b WHIRLPOOL 2d63af137626018440975cb55e587a94dd9227e0dbc2b62b6726b9bb86e78b183ad656dcb52ec0afecca6b66a0320bc3ac42bb208c4f835343e6e062d00abfdd
+DIST buildbot-waterfall-view-0.9.8.tar.gz 705815 SHA256 a8ffe67b5bb8bd5ac15e6cf853cc693c3328fc508ecfa337613fc8f6081c3603 SHA512 82f75f706c97bdedb744f34229c5efefe6f7bb713874f0d99a322233663764b37572b9c9b7a2004c64d7693f6e58625e0c17bacbf743c16ed5fce16d6ad87b2d WHIRLPOOL 87922d9637a8f9b028c1e7495d552b7b2c63a78c5efb313066e6cc212211b6728de105076ad399ea04086948707b7f5f0182fa6c5e471b5cc83cd9b135ab6677
+EBUILD buildbot-waterfall-view-0.9.10.ebuild 1144 SHA256 7ed4c13fad83f37835accdc001d6e67c028c989f8fddb928f951abcd3598c07c SHA512 d499cf5938765934703baf981973ab2899b368cae040367557caecc79d0dc39be3a92dbf068b7d04f957d55f82fa9e89816e1c5b9d1b65e6484e22d26300e689 WHIRLPOOL 36eb0a19171fd6ec3789d6bf3d5e02c7e53ad3e80d836ed97df338274c488756e09450f2f80c91a4799a2b207abd71b08c7ff5597ed873808b6f2f0af3afe122
+EBUILD buildbot-waterfall-view-0.9.11.ebuild 1144 SHA256 7ed4c13fad83f37835accdc001d6e67c028c989f8fddb928f951abcd3598c07c SHA512 d499cf5938765934703baf981973ab2899b368cae040367557caecc79d0dc39be3a92dbf068b7d04f957d55f82fa9e89816e1c5b9d1b65e6484e22d26300e689 WHIRLPOOL 36eb0a19171fd6ec3789d6bf3d5e02c7e53ad3e80d836ed97df338274c488756e09450f2f80c91a4799a2b207abd71b08c7ff5597ed873808b6f2f0af3afe122
+EBUILD buildbot-waterfall-view-0.9.4.ebuild 1128 SHA256 44cb89355756ae544474efb96f28a75443051837190e083f6cc75192fae50cd8 SHA512 fa14b672f6f906fae4e613c9910b0c7fb5f078b91e5d2a5ea8206a1336e7e4c86d8310cb7e222b18c5f41032e50621a6ec7c6dcb407a75df1d64a476265c558d WHIRLPOOL 1dc152fc5c122679b4462c2ee23ab8b4b7b163994db2c8e4c893b99973f4f6a3304bf283c7babf89849a0a355bf3c35c03fbada5d03920db7786526bf914d11b
+EBUILD buildbot-waterfall-view-0.9.7.ebuild 1138 SHA256 af74f64528fff07d56ec183b3ce4fa059ee4c392ad46a631c8f8c4af83be4256 SHA512 45883f50f051a21f965128d610cc2dce86749f533e83d011c28c08a2b778c1c55c8edc8fff2d283f3b176c37f46431a093d5c9d77bd9977cc24f5876173af25b WHIRLPOOL 0ae9092ce5ef1477df76e7033b67d202a36997b2cd222dbe20ba92c00f8a8befd974f93ca65c3ceaef8e8299feeb79370dc65698ebd6237fb67a0f7be7e496fa
+EBUILD buildbot-waterfall-view-0.9.8.ebuild 1138 SHA256 af74f64528fff07d56ec183b3ce4fa059ee4c392ad46a631c8f8c4af83be4256 SHA512 45883f50f051a21f965128d610cc2dce86749f533e83d011c28c08a2b778c1c55c8edc8fff2d283f3b176c37f46431a093d5c9d77bd9977cc24f5876173af25b WHIRLPOOL 0ae9092ce5ef1477df76e7033b67d202a36997b2cd222dbe20ba92c00f8a8befd974f93ca65c3ceaef8e8299feeb79370dc65698ebd6237fb67a0f7be7e496fa
+MISC ChangeLog 1552 SHA256 a240f51f3de95487d52cf50a9555c709d9018065ee934495448ce67db7c66659 SHA512 2baa45f8ab5632ac777141d519bbc70cdfc80fd8f18b307e1bbb5285e1becc159feb8716b8880572d5676555b5589878ce937b5ced8aeacce06251c493fa1e87 WHIRLPOOL a9d08e3e7738787d966e9218a0eef5a8c2bfc839bf5b87ae9fe337cd76f278928ff154db696edd13ccb25501721db358bbd170f49b9c1fb6640fcc20b4e0b06b
+MISC metadata.xml 791 SHA256 fee2ac7b0b3201ae6839203cb59e516e9c73c96f41760dc014deeb0afa4fe263 SHA512 0a5df49353620d0c31e66181179c213e7add694cdc141715635650a1a7962cfd96f5a965e42ca8f860d6d24ad9be08001e4a9b2ca49ef31f529f9aec0878cc13 WHIRLPOOL 81e929d5f622174b8eb3036683d50fb4ba6667a44e1ae42bc6bcd7e99328d27ed9b0bbd75f6171491bed7626510e4d39a24e0acf3e40710808f240173d4e0fc9
diff --git a/dev-util/buildbot-waterfall-view/buildbot-waterfall-view-0.9.10.ebuild b/dev-util/buildbot-waterfall-view/buildbot-waterfall-view-0.9.10.ebuild
new file mode 100644
index 000000000000..a2fb58771439
--- /dev/null
+++ b/dev-util/buildbot-waterfall-view/buildbot-waterfall-view-0.9.10.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+PYTHON_REQ_USE="sqlite"
+PYTHON_COMPAT=( python2_7 python3_5 )
+
+EGIT_REPO_URI="https://github.com/buildbot/buildbot.git"
+
+[[ ${PV} == *9999 ]] && inherit git-r3
+inherit distutils-r1
+
+DESCRIPTION="Buildbot waterfall-view plugin"
+HOMEPAGE="https://buildbot.net/ https://github.com/buildbot/buildbot https://pypi.python.org/pypi/buildbot-waterfall-view"
+
+MY_PV="${PV/_p/.post}"
+MY_P="${PN}-${MY_PV}"
+[[ ${PV} == *9999 ]] || SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+
+if [[ ${PV} == *9999 ]]; then
+ KEYWORDS=""
+else
+ KEYWORDS="~amd64"
+fi
+
+IUSE="test"
+
+RDEPEND="
+ ~dev-util/buildbot-${PV}[${PYTHON_USEDEP}]
+ dev-python/mock[${PYTHON_USEDEP}]
+ ~dev-util/buildbot-www-${PV}[${PYTHON_USEDEP}]
+"
+
+DEPEND="${RDEPEND}
+ >=dev-python/setuptools-21.2.1[${PYTHON_USEDEP}]
+"
+
+S="${WORKDIR}/${MY_P}"
+#[[ ${PV} == *9999 ]] && S=${S}/www/base
+
+python_test() {
+ distutils_install_for_testing
+
+ esetup.py test || die "Tests failed under ${EPYTHON}"
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+}
diff --git a/dev-util/buildbot-waterfall-view/buildbot-waterfall-view-0.9.11.ebuild b/dev-util/buildbot-waterfall-view/buildbot-waterfall-view-0.9.11.ebuild
new file mode 100644
index 000000000000..a2fb58771439
--- /dev/null
+++ b/dev-util/buildbot-waterfall-view/buildbot-waterfall-view-0.9.11.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+PYTHON_REQ_USE="sqlite"
+PYTHON_COMPAT=( python2_7 python3_5 )
+
+EGIT_REPO_URI="https://github.com/buildbot/buildbot.git"
+
+[[ ${PV} == *9999 ]] && inherit git-r3
+inherit distutils-r1
+
+DESCRIPTION="Buildbot waterfall-view plugin"
+HOMEPAGE="https://buildbot.net/ https://github.com/buildbot/buildbot https://pypi.python.org/pypi/buildbot-waterfall-view"
+
+MY_PV="${PV/_p/.post}"
+MY_P="${PN}-${MY_PV}"
+[[ ${PV} == *9999 ]] || SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+
+if [[ ${PV} == *9999 ]]; then
+ KEYWORDS=""
+else
+ KEYWORDS="~amd64"
+fi
+
+IUSE="test"
+
+RDEPEND="
+ ~dev-util/buildbot-${PV}[${PYTHON_USEDEP}]
+ dev-python/mock[${PYTHON_USEDEP}]
+ ~dev-util/buildbot-www-${PV}[${PYTHON_USEDEP}]
+"
+
+DEPEND="${RDEPEND}
+ >=dev-python/setuptools-21.2.1[${PYTHON_USEDEP}]
+"
+
+S="${WORKDIR}/${MY_P}"
+#[[ ${PV} == *9999 ]] && S=${S}/www/base
+
+python_test() {
+ distutils_install_for_testing
+
+ esetup.py test || die "Tests failed under ${EPYTHON}"
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+}
diff --git a/dev-util/buildbot-waterfall-view/buildbot-waterfall-view-0.9.4.ebuild b/dev-util/buildbot-waterfall-view/buildbot-waterfall-view-0.9.4.ebuild
new file mode 100644
index 000000000000..5ecebb613e0d
--- /dev/null
+++ b/dev-util/buildbot-waterfall-view/buildbot-waterfall-view-0.9.4.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+PYTHON_REQ_USE="sqlite"
+PYTHON_COMPAT=( python2_7 )
+
+EGIT_REPO_URI="https://github.com/buildbot/buildbot.git"
+
+[[ ${PV} == *9999 ]] && inherit git-r3
+inherit distutils-r1
+
+DESCRIPTION="Buildbot waterfall-view plugin"
+HOMEPAGE="https://buildbot.net/ https://github.com/buildbot/buildbot https://pypi.python.org/pypi/buildbot-waterfall-view"
+
+MY_V="${PV/_p/p}"
+MY_P="${PN}-${MY_V}"
+[[ ${PV} == *9999 ]] || SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+
+if [[ ${PV} == *9999 ]]; then
+ KEYWORDS=""
+else
+ KEYWORDS="~amd64"
+fi
+
+IUSE="test"
+
+RDEPEND="
+ ~dev-util/buildbot-${PV}[${PYTHON_USEDEP}]
+ dev-python/mock[${PYTHON_USEDEP}]
+ ~dev-util/buildbot-www-${PV}[${PYTHON_USEDEP}]
+"
+
+DEPEND="${RDEPEND}
+ >=dev-python/setuptools-21.2.1[${PYTHON_USEDEP}]
+"
+
+S="${WORKDIR}/${MY_P}"
+#[[ ${PV} == *9999 ]] && S=${S}/www/base
+
+python_test() {
+ distutils_install_for_testing
+
+ esetup.py test || die "Tests failed under ${EPYTHON}"
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+}
diff --git a/dev-util/buildbot-waterfall-view/buildbot-waterfall-view-0.9.7.ebuild b/dev-util/buildbot-waterfall-view/buildbot-waterfall-view-0.9.7.ebuild
new file mode 100644
index 000000000000..be64d6dbd801
--- /dev/null
+++ b/dev-util/buildbot-waterfall-view/buildbot-waterfall-view-0.9.7.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+PYTHON_REQ_USE="sqlite"
+PYTHON_COMPAT=( python2_7 python3_5 )
+
+EGIT_REPO_URI="https://github.com/buildbot/buildbot.git"
+
+[[ ${PV} == *9999 ]] && inherit git-r3
+inherit distutils-r1
+
+DESCRIPTION="Buildbot waterfall-view plugin"
+HOMEPAGE="https://buildbot.net/ https://github.com/buildbot/buildbot https://pypi.python.org/pypi/buildbot-waterfall-view"
+
+MY_V="${PV/_p/p}"
+MY_P="${PN}-${MY_V}"
+[[ ${PV} == *9999 ]] || SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+
+if [[ ${PV} == *9999 ]]; then
+ KEYWORDS=""
+else
+ KEYWORDS="~amd64"
+fi
+
+IUSE="test"
+
+RDEPEND="
+ ~dev-util/buildbot-${PV}[${PYTHON_USEDEP}]
+ dev-python/mock[${PYTHON_USEDEP}]
+ ~dev-util/buildbot-www-${PV}[${PYTHON_USEDEP}]
+"
+
+DEPEND="${RDEPEND}
+ >=dev-python/setuptools-21.2.1[${PYTHON_USEDEP}]
+"
+
+S="${WORKDIR}/${MY_P}"
+#[[ ${PV} == *9999 ]] && S=${S}/www/base
+
+python_test() {
+ distutils_install_for_testing
+
+ esetup.py test || die "Tests failed under ${EPYTHON}"
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+}
diff --git a/dev-util/buildbot-waterfall-view/buildbot-waterfall-view-0.9.8.ebuild b/dev-util/buildbot-waterfall-view/buildbot-waterfall-view-0.9.8.ebuild
new file mode 100644
index 000000000000..be64d6dbd801
--- /dev/null
+++ b/dev-util/buildbot-waterfall-view/buildbot-waterfall-view-0.9.8.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+PYTHON_REQ_USE="sqlite"
+PYTHON_COMPAT=( python2_7 python3_5 )
+
+EGIT_REPO_URI="https://github.com/buildbot/buildbot.git"
+
+[[ ${PV} == *9999 ]] && inherit git-r3
+inherit distutils-r1
+
+DESCRIPTION="Buildbot waterfall-view plugin"
+HOMEPAGE="https://buildbot.net/ https://github.com/buildbot/buildbot https://pypi.python.org/pypi/buildbot-waterfall-view"
+
+MY_V="${PV/_p/p}"
+MY_P="${PN}-${MY_V}"
+[[ ${PV} == *9999 ]] || SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+
+if [[ ${PV} == *9999 ]]; then
+ KEYWORDS=""
+else
+ KEYWORDS="~amd64"
+fi
+
+IUSE="test"
+
+RDEPEND="
+ ~dev-util/buildbot-${PV}[${PYTHON_USEDEP}]
+ dev-python/mock[${PYTHON_USEDEP}]
+ ~dev-util/buildbot-www-${PV}[${PYTHON_USEDEP}]
+"
+
+DEPEND="${RDEPEND}
+ >=dev-python/setuptools-21.2.1[${PYTHON_USEDEP}]
+"
+
+S="${WORKDIR}/${MY_P}"
+#[[ ${PV} == *9999 ]] && S=${S}/www/base
+
+python_test() {
+ distutils_install_for_testing
+
+ esetup.py test || die "Tests failed under ${EPYTHON}"
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+}
diff --git a/dev-util/buildbot-waterfall-view/metadata.xml b/dev-util/buildbot-waterfall-view/metadata.xml
new file mode 100644
index 000000000000..fbcb11072aa4
--- /dev/null
+++ b/dev-util/buildbot-waterfall-view/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>dolsen@gentoo.org</email>
+ <name>Brian Dolbec</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>hwoarang@gentoo.org</email>
+ <name>Markos Chandras</name>
+ </maintainer>
+ <longdescription lang="en">
+ The buildbot-waterfall-view plugin is the user interface code used to
+ generate the web pages used to display information about the builds.
+ </longdescription>
+ <upstream>
+ <maintainer>
+ <email>devel@buildbot.net</email>
+ <name>Developers List</name>
+ </maintainer>
+ <remote-id type="pypi">buildbot-waterfall-view</remote-id>
+ <remote-id type="github">buildbot/buildbot</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/buildbot-worker/Manifest b/dev-util/buildbot-worker/Manifest
new file mode 100644
index 000000000000..35d92b77d0ec
--- /dev/null
+++ b/dev-util/buildbot-worker/Manifest
@@ -0,0 +1,19 @@
+AUX buildbot.tac.sample 1809 SHA256 a30325dea9efe1226f8e018aea314b1a44262bfce42fb5e0fd9edd4b7e14be76 SHA512 0cfe04d4587b9befef451d2fb47125643d84bbf12eec99a84622c21f06d7a8e10eb0ceb67c9491b61639b6634b2942ebc42d2ffa8253afbec688dc4e03d70158 WHIRLPOOL e2365fb5b843b005b7dad0ccb7ac0bf7b2de78c12fdfbe6b0bf7b6e978973b5d0660ea8c59d72abf1129383420064847a47b6acaa8d7b7d57052ef23585c699e
+AUX buildbot_worker.confd 222 SHA256 1fa81daad2d0b36b5743b5ecd7afb1fb65b4b0b568e565c89cfbca3043e053f9 SHA512 ccea785a073ba3a159f25c42d02722311eae3bdcafa4fe011e80d626f8b1aa74d3fe5118bf0c7831c7ceefdd896feab58667534e47e6814f5c62dd2b6bb0c550 WHIRLPOOL c68188a65e2695450fb800b34958e2ad23538425374e4ad1dd5ead4106d04d4f8d70df9fa86b846b444bf9b767fc8d1f309c9ec4d9b173d979b9866ca9128a62
+AUX buildbot_worker.confd2 367 SHA256 eca0268e8763e4382ac0baf77061d1238b1a81523ba099b794138b8535424923 SHA512 d46ca9656ba3f4fa58208954ba80d0c8e3a2a6a1eb14a92128653e56915811ac1f1e0a4aba0755fe4844aa0d85907eef6c657236035d139faf030b5d6940b820 WHIRLPOOL cd01a8e9ba57f2b41a2a23726cbe77eeb9ac09a6555c95252168f3321b697540cab70d5b33550967ba43908dd110fafbd447d79b9e0ffef9948f520f44b289d0
+AUX buildbot_worker.initd 1139 SHA256 e5572d2219c33b9e6c4689eae779d1aeffa2645b9a0942fcb3909bc7ad9c40f5 SHA512 51a8f21f84849eaa8e26abdb8b7bfaa3be4f1af813485fbb294ac09bef5ea003de32ae07566267fb1d52177fedf2541805af60204a8793645ea4909388e39c10 WHIRLPOOL c8f597e988b0e1a884c8947fa56def10d7d28a5b4d2a3d0c1b02720b0d40ff1241f96870a3f8a3d33a6987cf32bb61ec427e8b0884c260f21de78c0caf0a5ec3
+AUX buildbot_worker.initd2 1640 SHA256 5894d6b79e903d82d3981b08957834af33757ba38ea4ed5f97936283421d7a1e SHA512 8eae575cb001b4750cd2033f9cb82d3985ad9bc2a4bc20ff0e4aaa0cbd05bacf8d6d885ec08112da15e0ccf8fd895006eed39b0b9a4bcaee86911b5180fab0f2 WHIRLPOOL 0f570af7607c066678a328480b3157a3ff04300cf0a13f1f684c8156d20ab0017d801c5461e2b956bbe00464a28a6d956ed312f29e8b0aa7818e58aaaba6eb46
+AUX buildbot_worker.service 296 SHA256 c7bc100f3aa9e9d8b7cd0656e8474776177dd56ba35da864db4750b8ae42d69f SHA512 936035e92d8bd481b8af93450445a82ccf8eb21d3f6bf99c2a02f52ba71d911940b8a6316b7f8b888443f577d73184bf7e7d99329ffbaa995e32ea3d9cf715bc WHIRLPOOL 8c55173c8bff639e031d1bf0212e6231cf12e59da74fbc3a5cd367b7432c7f3ef3eb3244b001ab45b3fc0ccc3fd4cdbcc60b5ce3b6c549f681e95c5374319968
+DIST buildbot-worker-0.9.10.tar.gz 99028 SHA256 1793631d74629cd73bc0df1fadf28fb34d87e63aa72cba82058122bde165a824 SHA512 0f515610d9c788657b10ba6624745841241fe554b472e53abdda221a678eb73d7a21a6529eb0769450de3a79b43bb6e51f4208247a4d8ef25c3d36b6ced6ec89 WHIRLPOOL 67cb199328428167c7e52f7b6ecbe7aa73729b5b453b5a8c16ba4999502bf30d9b139788f755eb4811968a60ce61fde32cdc29a31242d3777302792bb04863a6
+DIST buildbot-worker-0.9.11.tar.gz 100746 SHA256 4254bf964465acb6586fda36b26a424466a265b6a5259138cf4fa63a1e9f6851 SHA512 c7209c3fff8c43a23de71fa61709c9f02a5bdd9c8c8980ac5d205f720abdaa9bdb78d0d4e40fe9f915c8d5cf253b9e3c63401712ee121ac085909b0244d82897 WHIRLPOOL 30e1fb17eda975ff3a1e333a0ae17bdc2b432bd9c139a0c1f8dbea69984311add3a6f0659b7add0a3fecc2acf9460a908709efa8994f5763bfbbd2618df67050
+DIST buildbot-worker-0.9.4.tar.gz 100889 SHA256 129e0d3fa9ee34f0f227487b6d1645820d2d4853099a1b0aed56587d3acab965 SHA512 7d055b7b005ebf1cc8033fb86f5321a9d80e0505c1a8b28b9ba3945323f157d34f34066ee9513e82b05c63af099d6030bf42d6f44533859b4e01983f1114462b WHIRLPOOL 8f2b95a476e93beaba5305137bb1d219a9aff59e8bb4450d6352babe799bb0166c299e7c8ea69e53c467e7e58be2681ddba4ae74ad8ba945221e1059906e5fc1
+DIST buildbot-worker-0.9.7.tar.gz 96416 SHA256 a41b4e0c7329821a0d85ee0e6edbde3db403676c62e59a6f436a048a008ac268 SHA512 84ccaf0472553f8422b342163e44e55481f6691338df38db6b1be74f0a79c13e2a52be56df632491662ab79648cd5034ce04d906bbedb01030e4fa96f1689ef9 WHIRLPOOL 70379e6f34ea30aef0e0008fd098a53ba144696f1416ac77c3756018bc371646d2261a28589ad5131f7be7de930189bd771b4a82de27343441543da5c683e122
+DIST buildbot-worker-0.9.8.tar.gz 97193 SHA256 825e022a794c7470276169b6ac1b774f39f60d16545bb46fdf5b4a3b2c78f44f SHA512 43cb7d83835d009c3d4f9a9671d3bd1037d50969b6238f9c77e9f1caedea83c9b9f77d642743d47ff2eea8f3c6549b9e4c843b7d9f638dc5a28339e034ea9b47 WHIRLPOOL 1127b956c3a94ad426c686e42dcbdf6a6f4427751c4ddf247569bc0ee03e86d1ae609263386e730d92b2a572be76208cb999c571fdee9f85de49de161a5c1ab1
+EBUILD buildbot-worker-0.9.10-r2.ebuild 4810 SHA256 79b798ef0f6513ec2ac108005657d0cb067c6781532b74fa98ddfd21e714a5e4 SHA512 c330f345c67d69ac7c276462104942061ffd9fa5b55173222a8b5b927576ac218ec97a11c09c9fd4eca56beccbbc45f8080d771dd5c1ebde7eef7cff43ca4a2a WHIRLPOOL 9794ba57c88cc4674eb3cc59492d820714ff9e0ece4d6d55a8cf3f14924d4f352323eb37792d3c6dfd9c3b19a846b40004b13396f00769bd3df8bd1a80decaf7
+EBUILD buildbot-worker-0.9.11.ebuild 4804 SHA256 13c159d879f67129928e5e6625bebe0f91414fc0cd4476bb8cd192c3aad2ae98 SHA512 999648a81ebd40ffc7cba11a718374e558d7026f0cc67cec1b7117e6b81f571043037e98ac3e5e0ef8751ae9a426be5fa5e675764223091c789c725ae99a1b7c WHIRLPOOL 6494284ba56aea9f77dcc3bfae2ca49f5224a1550e40b8198715da59a4dce03568272837a5ab5fc7c70c47e81f659061ec8a60c94570ac963e1bdb98e8d31a93
+EBUILD buildbot-worker-0.9.4.ebuild 2010 SHA256 f0cbb73ac8ee6008ecf71af5c98db4c62f6812507906588d8d9b9b44ace61895 SHA512 f4743127ede02a4ea17fea13db095ef96120dfaea37c92812beecec1e86221e1dc51d5dd12391b639f6ec2a8acbf13126c5e091a713bde8f795a2c0efc7af176 WHIRLPOOL f095fcaccb6e557df3a22245c0f3173c76505ada5ef073ecf7d3671a359f72815f22c38fbe8c9ddbd2e4b44d78b4602e2458903c8e229ad26216fd0b00dec72d
+EBUILD buildbot-worker-0.9.7.ebuild 1929 SHA256 f3e4a4142d631de55641e6bd03815c17ade4ee381f5ca8f84665cc0ffa843f56 SHA512 e86c6223f0b86fd54ec0f68c3ec4577c072543e3cb9f0d679c98a8a5a4af58f172e681979aeaba4610eb3bd8af133d367fedf78bb7de8ea386a7af5acfc384e3 WHIRLPOOL 55738da98a6e3e10fc3dc7f4b03a3fbfceb5a4e89df3b8929106b62d0b2fde814493c02d59da212153fe08921596f7ef85653dfaa3b545ccc64a7ed117377dab
+EBUILD buildbot-worker-0.9.8.ebuild 1956 SHA256 633288152b35404a12844d82d336b2ad44697ae2bf9c38c7e914c04ddcdd3181 SHA512 0128564c240f840f80cf035b912300ae615027ca32326eaccfddb5b2acc611e9f7fe191c65a9450adaa4a5d79ebef39e9bc0e7e0e373c5f4daab8a67af386148 WHIRLPOOL 0f545de1b4f13ced4ba844e02f1a47eeba7c9b0ffb600a3a6fd1ee5f7e2ce8b006a87e204fc4d155e478caba23aa6b2f429f7f887e04f20852cc6156ea55ea53
+EBUILD buildbot-worker-9999.ebuild 4804 SHA256 13c159d879f67129928e5e6625bebe0f91414fc0cd4476bb8cd192c3aad2ae98 SHA512 999648a81ebd40ffc7cba11a718374e558d7026f0cc67cec1b7117e6b81f571043037e98ac3e5e0ef8751ae9a426be5fa5e675764223091c789c725ae99a1b7c WHIRLPOOL 6494284ba56aea9f77dcc3bfae2ca49f5224a1550e40b8198715da59a4dce03568272837a5ab5fc7c70c47e81f659061ec8a60c94570ac963e1bdb98e8d31a93
+MISC ChangeLog 1884 SHA256 e84ac9d3144868250dba0f8f838d5758ad64836792e5a2fe02a9bcab9a1a74b8 SHA512 6fc01aefe3d8e75fb7ae5448154e04565ebf434acb2e0d843c89d6dbc607ba0b3064a0a352fc38a329ce588061c4491960a2dfdbe3a51bc9f035501170e341e4 WHIRLPOOL 4cff2243ef7c6ee758d399779b0f9d18490b22ea51b7ec27576a83a05996db55f2f78b98f56dcb1d5147c4dc1d2d35259a8e2115d80108aac74f537837d2ad11
+MISC metadata.xml 591 SHA256 3a89cdceb5291fcd69949b39636d7114b706e2c40fcf11b03c0a06bd2aeb51b2 SHA512 d3273df1c8e6284b75ab5cd15cc5092d10db8ab8c0126e5eb21425bf3f2cab0f582a4e1bdf1e96881cc580a13047ac9fc72e09474f03dd788f85cd7962be6257 WHIRLPOOL ad7de4c7080f104c6545121826b45527607a3da5b5135dfb66de78369818665e05905d1d514ab6da940295c04d4dc030e054882802c9eb2ba120c41c168ffb15
diff --git a/dev-util/buildbot-worker/buildbot-worker-0.9.10-r2.ebuild b/dev-util/buildbot-worker/buildbot-worker-0.9.10-r2.ebuild
new file mode 100644
index 000000000000..419fd619809a
--- /dev/null
+++ b/dev-util/buildbot-worker/buildbot-worker-0.9.10-r2.ebuild
@@ -0,0 +1,133 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+PYTHON_COMPAT=( python2_7 python3_5 )
+
+EGIT_REPO_URI="https://github.com/buildbot/buildbot.git"
+
+[[ ${PV} == *9999 ]] && inherit git-r3
+inherit readme.gentoo user distutils-r1
+
+DESCRIPTION="BuildBot Worker (slave) Daemon"
+HOMEPAGE="https://buildbot.net/ https://github.com/buildbot/buildbot https://pypi.python.org/pypi/buildbot-worker"
+
+MY_PV="${PV/_p/.post}"
+MY_P="${PN}-${MY_PV}"
+[[ ${PV} == *9999 ]] || SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+if [[ ${PV} == *9999 ]]; then
+ KEYWORDS=""
+else
+ KEYWORDS="~amd64"
+fi
+IUSE="test"
+
+RDEPEND=">=dev-python/setuptools-21.2.1[${PYTHON_USEDEP}]
+ >=dev-python/twisted-17.5.0[${PYTHON_USEDEP}]
+ dev-python/future[${PYTHON_USEDEP}]
+ !<dev-util/buildbot-0.9.7
+"
+DEPEND="${RDEPEND}
+ test? (
+ dev-python/mock[${PYTHON_USEDEP}]
+ dev-python/setuptools_trial[${PYTHON_USEDEP}]
+ )
+"
+
+S="${WORKDIR}/${MY_P}"
+[[ ${PV} == *9999 ]] && S=${S}/slave
+
+pkg_setup() {
+ enewuser buildbot
+
+ DOC_CONTENTS="The \"buildbot\" user and the \"buildbot_worker\" init script has been added
+ to support starting buildbot_worker through Gentoo's init system. To use this,
+ execute \"emerge --config =${CATEGORY}/${PF}\" to create a new instance.
+ Set up your build worker following the documentation, make sure the
+ resulting directories are owned by the \"buildbot\" user and point
+ \"${ROOT}etc/conf.d/buildbot_worker.myinstance\" at the right location.
+ The scripts can run as a different user if desired."
+}
+
+python_test() {
+ distutils_install_for_testing
+
+ esetup.py test || die "Tests failed under ${EPYTHON}"
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+
+ doman docs/buildbot-worker.1
+
+ newconfd "${FILESDIR}/buildbot_worker.confd2" buildbot_worker
+ newinitd "${FILESDIR}/buildbot_worker.initd2" buildbot_worker
+
+ dodir /var/lib/buildbot_worker
+ cp "${FILESDIR}/buildbot.tac.sample" "${D}/var/lib/buildbot_worker"|| die "Install failed!"
+
+ readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+ readme.gentoo_print_elog
+
+ if [[ -n ${REPLACING_VERSIONS} ]]; then
+ ewarn
+ ewarn "Starting with buildbot-worker-0.9.10-r1, more than one instance of a buildbot_worker"
+ ewarn "can be run simultaneously. Note that \"BASEDIR\" in the buildbot_worker configuration file"
+ ewarn "is now the common base directory for all instances. If you are migrating from an older"
+ ewarn "version, make sure that you copy the current contents of \"BASEDIR\" to a subdirectory."
+ ewarn "The name of the subdirectory corresponds to the name of the buildbot_worker instance."
+ ewarn "In order to start the service running OpenRC-based systems need to link to the init file:"
+ ewarn " ln --symbolic --relative /etc/init.d/buildbot_worker /etc/init.d/buildbot_worker.myinstance"
+ ewarn " rc-update add buildbot_worker.myinstance default"
+ ewarn " /etc/init.d/buildbot_worker.myinstance start"
+ ewarn "Systems using systemd can do the following:"
+ ewarn " systemctl enable buildbot_worker@myinstance.service"
+ ewarn " systemctl enable buildbot_worker.target"
+ ewarn " systemctl start buildbot_worker.target"
+ fi
+}
+
+pkg_config() {
+ local buildworker_path="/var/lib/buildbot_worker"
+ local log_path="/var/log/buildbot_worker"
+
+ einfo "This will prepare a new buildbot_worker instance in ${buildworker_path}."
+ einfo "Press Control-C to abort."
+
+ einfo "Enter the name for the new instance: "
+ read instance_name
+ [[ -z "${instance_name}" ]] && die "Invalid instance name"
+
+ local instance_path="${buildworker_path}/${instance_name}"
+ local instance_log_path="${log_path}/${instance_name}"
+
+ if [[ -e "${instance_path}" ]]; then
+ eerror "The instance with the specified name already exists:"
+ eerror "${instance_path}"
+ die "Instance already exists"
+ fi
+
+ if [[ ! -d "${instance_path}" ]]; then
+ mkdir --parents "${instance_path}" || die "Unable to create directory ${buildworker_path}"
+ fi
+ chown --recursive buildbot "${instance_path}" || die "Setting permissions for instance failed"
+ cp "${buildworker_path}/buildbot.tac.sample" "${instance_path}/buildbot.tac" \
+ || die "Moving sample configuration failed"
+ ln --symbolic --relative "/etc/init.d/buildbot_worker" "/etc/init.d/buildbot_worker.${instance_name}" \
+ || die "Unable to create link to init file"
+
+ if [[ ! -d "${instance_log_path}" ]]; then
+ mkdir --parents "${instance_log_path}" || die "Unable to create directory ${instance_log_path}"
+ fi
+ ln --symbolic --relative "${instance_log_path}/twistd.log" "${instance_path}/twistd.log" \
+ || die "Unable to create link to log file"
+
+ einfo "Successfully created a buildbot_worker instance at ${instance_path}."
+ einfo "To change the default settings edit the buildbot.tac file in this directory."
+}
diff --git a/dev-util/buildbot-worker/buildbot-worker-0.9.11.ebuild b/dev-util/buildbot-worker/buildbot-worker-0.9.11.ebuild
new file mode 100644
index 000000000000..0697e9a2ce0d
--- /dev/null
+++ b/dev-util/buildbot-worker/buildbot-worker-0.9.11.ebuild
@@ -0,0 +1,133 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+PYTHON_COMPAT=( python2_7 python3_5 )
+
+EGIT_REPO_URI="https://github.com/buildbot/buildbot.git"
+
+[[ ${PV} == *9999 ]] && inherit git-r3
+inherit readme.gentoo user distutils-r1
+
+DESCRIPTION="BuildBot Worker (slave) Daemon"
+HOMEPAGE="https://buildbot.net/ https://github.com/buildbot/buildbot https://pypi.python.org/pypi/buildbot-worker"
+
+MY_V="${PV/_p/p}"
+MY_P="${PN}-${MY_V}"
+[[ ${PV} == *9999 ]] || SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+if [[ ${PV} == *9999 ]]; then
+ KEYWORDS=""
+else
+ KEYWORDS="~amd64"
+fi
+IUSE="test"
+
+RDEPEND=">=dev-python/setuptools-21.2.1[${PYTHON_USEDEP}]
+ >=dev-python/twisted-17.5.0[${PYTHON_USEDEP}]
+ dev-python/future[${PYTHON_USEDEP}]
+ !<dev-util/buildbot-0.9.7
+"
+DEPEND="${RDEPEND}
+ test? (
+ dev-python/mock[${PYTHON_USEDEP}]
+ dev-python/setuptools_trial[${PYTHON_USEDEP}]
+ )
+"
+
+S="${WORKDIR}/${MY_P}"
+[[ ${PV} == *9999 ]] && S=${S}/slave
+
+pkg_setup() {
+ enewuser buildbot
+
+ DOC_CONTENTS="The \"buildbot\" user and the \"buildbot_worker\" init script has been added
+ to support starting buildbot_worker through Gentoo's init system. To use this,
+ execute \"emerge --config =${CATEGORY}/${PF}\" to create a new instance.
+ Set up your build worker following the documentation, make sure the
+ resulting directories are owned by the \"buildbot\" user and point
+ \"${ROOT}etc/conf.d/buildbot_worker.myinstance\" at the right location.
+ The scripts can run as a different user if desired."
+}
+
+python_test() {
+ distutils_install_for_testing
+
+ esetup.py test || die "Tests failed under ${EPYTHON}"
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+
+ doman docs/buildbot-worker.1
+
+ newconfd "${FILESDIR}/buildbot_worker.confd2" buildbot_worker
+ newinitd "${FILESDIR}/buildbot_worker.initd2" buildbot_worker
+
+ dodir /var/lib/buildbot_worker
+ cp "${FILESDIR}/buildbot.tac.sample" "${D}/var/lib/buildbot_worker"|| die "Install failed!"
+
+ readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+ readme.gentoo_print_elog
+
+ if [[ -n ${REPLACING_VERSIONS} ]]; then
+ ewarn
+ ewarn "Starting with buildbot-worker-0.9.10-r1, more than one instance of a buildbot_worker"
+ ewarn "can be run simultaneously. Note that \"BASEDIR\" in the buildbot_worker configuration file"
+ ewarn "is now the common base directory for all instances. If you are migrating from an older"
+ ewarn "version, make sure that you copy the current contents of \"BASEDIR\" to a subdirectory."
+ ewarn "The name of the subdirectory corresponds to the name of the buildbot_worker instance."
+ ewarn "In order to start the service running OpenRC-based systems need to link to the init file:"
+ ewarn " ln --symbolic --relative /etc/init.d/buildbot_worker /etc/init.d/buildbot_worker.myinstance"
+ ewarn " rc-update add buildbot_worker.myinstance default"
+ ewarn " /etc/init.d/buildbot_worker.myinstance start"
+ ewarn "Systems using systemd can do the following:"
+ ewarn " systemctl enable buildbot_worker@myinstance.service"
+ ewarn " systemctl enable buildbot_worker.target"
+ ewarn " systemctl start buildbot_worker.target"
+ fi
+}
+
+pkg_config() {
+ local buildworker_path="/var/lib/buildbot_worker"
+ local log_path="/var/log/buildbot_worker"
+
+ einfo "This will prepare a new buildbot_worker instance in ${buildworker_path}."
+ einfo "Press Control-C to abort."
+
+ einfo "Enter the name for the new instance: "
+ read instance_name
+ [[ -z "${instance_name}" ]] && die "Invalid instance name"
+
+ local instance_path="${buildworker_path}/${instance_name}"
+ local instance_log_path="${log_path}/${instance_name}"
+
+ if [[ -e "${instance_path}" ]]; then
+ eerror "The instance with the specified name already exists:"
+ eerror "${instance_path}"
+ die "Instance already exists"
+ fi
+
+ if [[ ! -d "${instance_path}" ]]; then
+ mkdir --parents "${instance_path}" || die "Unable to create directory ${buildworker_path}"
+ fi
+ chown --recursive buildbot "${instance_path}" || die "Setting permissions for instance failed"
+ cp "${buildworker_path}/buildbot.tac.sample" "${instance_path}/buildbot.tac" \
+ || die "Moving sample configuration failed"
+ ln --symbolic --relative "/etc/init.d/buildbot_worker" "/etc/init.d/buildbot_worker.${instance_name}" \
+ || die "Unable to create link to init file"
+
+ if [[ ! -d "${instance_log_path}" ]]; then
+ mkdir --parents "${instance_log_path}" || die "Unable to create directory ${instance_log_path}"
+ fi
+ ln --symbolic --relative "${instance_log_path}/twistd.log" "${instance_path}/twistd.log" \
+ || die "Unable to create link to log file"
+
+ einfo "Successfully created a buildbot_worker instance at ${instance_path}."
+ einfo "To change the default settings edit the buildbot.tac file in this directory."
+}
diff --git a/dev-util/buildbot-worker/buildbot-worker-0.9.4.ebuild b/dev-util/buildbot-worker/buildbot-worker-0.9.4.ebuild
new file mode 100644
index 000000000000..309d72c4734f
--- /dev/null
+++ b/dev-util/buildbot-worker/buildbot-worker-0.9.4.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+PYTHON_COMPAT=( python2_7 )
+
+EGIT_REPO_URI="https://github.com/buildbot/buildbot.git"
+
+[[ ${PV} == *9999 ]] && inherit git-r3
+inherit readme.gentoo user distutils-r1
+
+DESCRIPTION="BuildBot Slave Daemon"
+HOMEPAGE="https://buildbot.net/ https://github.com/buildbot/buildbot https://pypi.python.org/pypi/buildbot-worker"
+
+MY_V="${PV/_p/p}"
+MY_P="${PN}-${MY_V}"
+[[ ${PV} == *9999 ]] || SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+if [[ ${PV} == *9999 ]]; then
+ KEYWORDS=""
+else
+ KEYWORDS="~amd64"
+fi
+IUSE="test"
+
+RDEPEND=">=dev-python/setuptools-21.2.1[${PYTHON_USEDEP}]
+ || ( >=dev-python/twisted-16.0.0[${PYTHON_USEDEP}]
+ >=dev-python/twisted-core-8.0.0[${PYTHON_USEDEP}]
+ )
+ dev-python/future[${PYTHON_USEDEP}]
+ !<dev-util/buildbot-0.9.0_rc1
+"
+DEPEND="${RDEPEND}
+ test? (
+ dev-python/mock[${PYTHON_USEDEP}]
+ dev-python/setuptools_trial[${PYTHON_USEDEP}]
+ )
+"
+
+S="${WORKDIR}/${MY_P}"
+[[ ${PV} == *9999 ]] && S=${S}/slave
+
+pkg_setup() {
+ enewuser buildbot
+
+ DOC_CONTENTS="The \"buildbot\" user and the \"buildbot_worker\" init script has been added
+ to support starting buildbot_worker through Gentoo's init system. To use this,
+ set up your build worker following the documentation, make sure the
+ resulting directories are owned by the \"buildbot\" user and point
+ \"${ROOT}etc/conf.d/buildbot_worker\" at the right location. The scripts can
+ run as a different user if desired. If you need to run more than one
+ build worker, just copy the scripts."
+}
+
+python_test() {
+ distutils_install_for_testing
+
+ esetup.py test || die "Tests failed under ${EPYTHON}"
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+
+ doman docs/buildbot-worker.1
+
+ newconfd "${FILESDIR}/buildbot_worker.confd" buildbot_worker
+ newinitd "${FILESDIR}/buildbot_worker.initd" buildbot_worker
+
+ readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+ readme.gentoo_print_elog
+}
diff --git a/dev-util/buildbot-worker/buildbot-worker-0.9.7.ebuild b/dev-util/buildbot-worker/buildbot-worker-0.9.7.ebuild
new file mode 100644
index 000000000000..fcdfadfbed66
--- /dev/null
+++ b/dev-util/buildbot-worker/buildbot-worker-0.9.7.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+PYTHON_COMPAT=( python2_7 python3_5 )
+
+EGIT_REPO_URI="https://github.com/buildbot/buildbot.git"
+
+[[ ${PV} == *9999 ]] && inherit git-r3
+inherit readme.gentoo user distutils-r1
+
+DESCRIPTION="BuildBot Slave Daemon"
+HOMEPAGE="https://buildbot.net/ https://github.com/buildbot/buildbot https://pypi.python.org/pypi/buildbot-worker"
+
+MY_V="${PV/_p/p}"
+MY_P="${PN}-${MY_V}"
+[[ ${PV} == *9999 ]] || SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+if [[ ${PV} == *9999 ]]; then
+ KEYWORDS=""
+else
+ KEYWORDS="~amd64"
+fi
+IUSE="test"
+
+RDEPEND=">=dev-python/setuptools-21.2.1[${PYTHON_USEDEP}]
+ >=dev-python/twisted-17.1.0[${PYTHON_USEDEP}]
+ dev-python/future[${PYTHON_USEDEP}]
+"
+DEPEND="${RDEPEND}
+ test? (
+ dev-python/mock[${PYTHON_USEDEP}]
+ dev-python/setuptools_trial[${PYTHON_USEDEP}]
+ )
+"
+
+S="${WORKDIR}/${MY_P}"
+[[ ${PV} == *9999 ]] && S=${S}/slave
+
+pkg_setup() {
+ enewuser buildbot
+
+ DOC_CONTENTS="The \"buildbot\" user and the \"buildbot_worker\" init script has been added
+ to support starting buildbot_worker through Gentoo's init system. To use this,
+ set up your build worker following the documentation, make sure the
+ resulting directories are owned by the \"buildbot\" user and point
+ \"${ROOT}etc/conf.d/buildbot_worker\" at the right location. The scripts can
+ run as a different user if desired. If you need to run more than one
+ build worker, just copy the scripts."
+}
+
+python_test() {
+ distutils_install_for_testing
+
+ esetup.py test || die "Tests failed under ${EPYTHON}"
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+
+ doman docs/buildbot-worker.1
+
+ newconfd "${FILESDIR}/buildbot_worker.confd" buildbot_worker
+ newinitd "${FILESDIR}/buildbot_worker.initd" buildbot_worker
+
+ readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+ readme.gentoo_print_elog
+}
diff --git a/dev-util/buildbot-worker/buildbot-worker-0.9.8.ebuild b/dev-util/buildbot-worker/buildbot-worker-0.9.8.ebuild
new file mode 100644
index 000000000000..d3e878cd1624
--- /dev/null
+++ b/dev-util/buildbot-worker/buildbot-worker-0.9.8.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+PYTHON_COMPAT=( python2_7 python3_5 )
+
+EGIT_REPO_URI="https://github.com/buildbot/buildbot.git"
+
+[[ ${PV} == *9999 ]] && inherit git-r3
+inherit readme.gentoo user distutils-r1
+
+DESCRIPTION="BuildBot Slave Daemon"
+HOMEPAGE="https://buildbot.net/ https://github.com/buildbot/buildbot https://pypi.python.org/pypi/buildbot-worker"
+
+MY_V="${PV/_p/p}"
+MY_P="${PN}-${MY_V}"
+[[ ${PV} == *9999 ]] || SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+if [[ ${PV} == *9999 ]]; then
+ KEYWORDS=""
+else
+ KEYWORDS="~amd64"
+fi
+IUSE="test"
+
+RDEPEND=">=dev-python/setuptools-21.2.1[${PYTHON_USEDEP}]
+ >=dev-python/twisted-17.5.0[${PYTHON_USEDEP}]
+ dev-python/future[${PYTHON_USEDEP}]
+ !<dev-util/buildbot-0.9.7
+"
+DEPEND="${RDEPEND}
+ test? (
+ dev-python/mock[${PYTHON_USEDEP}]
+ dev-python/setuptools_trial[${PYTHON_USEDEP}]
+ )
+"
+
+S="${WORKDIR}/${MY_P}"
+[[ ${PV} == *9999 ]] && S=${S}/slave
+
+pkg_setup() {
+ enewuser buildbot
+
+ DOC_CONTENTS="The \"buildbot\" user and the \"buildbot_worker\" init script has been added
+ to support starting buildbot_worker through Gentoo's init system. To use this,
+ set up your build worker following the documentation, make sure the
+ resulting directories are owned by the \"buildbot\" user and point
+ \"${ROOT}etc/conf.d/buildbot_worker\" at the right location. The scripts can
+ run as a different user if desired. If you need to run more than one
+ build worker, just copy the scripts."
+}
+
+python_test() {
+ distutils_install_for_testing
+
+ esetup.py test || die "Tests failed under ${EPYTHON}"
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+
+ doman docs/buildbot-worker.1
+
+ newconfd "${FILESDIR}/buildbot_worker.confd" buildbot_worker
+ newinitd "${FILESDIR}/buildbot_worker.initd" buildbot_worker
+
+ readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+ readme.gentoo_print_elog
+}
diff --git a/dev-util/buildbot-worker/buildbot-worker-9999.ebuild b/dev-util/buildbot-worker/buildbot-worker-9999.ebuild
new file mode 100644
index 000000000000..0697e9a2ce0d
--- /dev/null
+++ b/dev-util/buildbot-worker/buildbot-worker-9999.ebuild
@@ -0,0 +1,133 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+PYTHON_COMPAT=( python2_7 python3_5 )
+
+EGIT_REPO_URI="https://github.com/buildbot/buildbot.git"
+
+[[ ${PV} == *9999 ]] && inherit git-r3
+inherit readme.gentoo user distutils-r1
+
+DESCRIPTION="BuildBot Worker (slave) Daemon"
+HOMEPAGE="https://buildbot.net/ https://github.com/buildbot/buildbot https://pypi.python.org/pypi/buildbot-worker"
+
+MY_V="${PV/_p/p}"
+MY_P="${PN}-${MY_V}"
+[[ ${PV} == *9999 ]] || SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+if [[ ${PV} == *9999 ]]; then
+ KEYWORDS=""
+else
+ KEYWORDS="~amd64"
+fi
+IUSE="test"
+
+RDEPEND=">=dev-python/setuptools-21.2.1[${PYTHON_USEDEP}]
+ >=dev-python/twisted-17.5.0[${PYTHON_USEDEP}]
+ dev-python/future[${PYTHON_USEDEP}]
+ !<dev-util/buildbot-0.9.7
+"
+DEPEND="${RDEPEND}
+ test? (
+ dev-python/mock[${PYTHON_USEDEP}]
+ dev-python/setuptools_trial[${PYTHON_USEDEP}]
+ )
+"
+
+S="${WORKDIR}/${MY_P}"
+[[ ${PV} == *9999 ]] && S=${S}/slave
+
+pkg_setup() {
+ enewuser buildbot
+
+ DOC_CONTENTS="The \"buildbot\" user and the \"buildbot_worker\" init script has been added
+ to support starting buildbot_worker through Gentoo's init system. To use this,
+ execute \"emerge --config =${CATEGORY}/${PF}\" to create a new instance.
+ Set up your build worker following the documentation, make sure the
+ resulting directories are owned by the \"buildbot\" user and point
+ \"${ROOT}etc/conf.d/buildbot_worker.myinstance\" at the right location.
+ The scripts can run as a different user if desired."
+}
+
+python_test() {
+ distutils_install_for_testing
+
+ esetup.py test || die "Tests failed under ${EPYTHON}"
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+
+ doman docs/buildbot-worker.1
+
+ newconfd "${FILESDIR}/buildbot_worker.confd2" buildbot_worker
+ newinitd "${FILESDIR}/buildbot_worker.initd2" buildbot_worker
+
+ dodir /var/lib/buildbot_worker
+ cp "${FILESDIR}/buildbot.tac.sample" "${D}/var/lib/buildbot_worker"|| die "Install failed!"
+
+ readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+ readme.gentoo_print_elog
+
+ if [[ -n ${REPLACING_VERSIONS} ]]; then
+ ewarn
+ ewarn "Starting with buildbot-worker-0.9.10-r1, more than one instance of a buildbot_worker"
+ ewarn "can be run simultaneously. Note that \"BASEDIR\" in the buildbot_worker configuration file"
+ ewarn "is now the common base directory for all instances. If you are migrating from an older"
+ ewarn "version, make sure that you copy the current contents of \"BASEDIR\" to a subdirectory."
+ ewarn "The name of the subdirectory corresponds to the name of the buildbot_worker instance."
+ ewarn "In order to start the service running OpenRC-based systems need to link to the init file:"
+ ewarn " ln --symbolic --relative /etc/init.d/buildbot_worker /etc/init.d/buildbot_worker.myinstance"
+ ewarn " rc-update add buildbot_worker.myinstance default"
+ ewarn " /etc/init.d/buildbot_worker.myinstance start"
+ ewarn "Systems using systemd can do the following:"
+ ewarn " systemctl enable buildbot_worker@myinstance.service"
+ ewarn " systemctl enable buildbot_worker.target"
+ ewarn " systemctl start buildbot_worker.target"
+ fi
+}
+
+pkg_config() {
+ local buildworker_path="/var/lib/buildbot_worker"
+ local log_path="/var/log/buildbot_worker"
+
+ einfo "This will prepare a new buildbot_worker instance in ${buildworker_path}."
+ einfo "Press Control-C to abort."
+
+ einfo "Enter the name for the new instance: "
+ read instance_name
+ [[ -z "${instance_name}" ]] && die "Invalid instance name"
+
+ local instance_path="${buildworker_path}/${instance_name}"
+ local instance_log_path="${log_path}/${instance_name}"
+
+ if [[ -e "${instance_path}" ]]; then
+ eerror "The instance with the specified name already exists:"
+ eerror "${instance_path}"
+ die "Instance already exists"
+ fi
+
+ if [[ ! -d "${instance_path}" ]]; then
+ mkdir --parents "${instance_path}" || die "Unable to create directory ${buildworker_path}"
+ fi
+ chown --recursive buildbot "${instance_path}" || die "Setting permissions for instance failed"
+ cp "${buildworker_path}/buildbot.tac.sample" "${instance_path}/buildbot.tac" \
+ || die "Moving sample configuration failed"
+ ln --symbolic --relative "/etc/init.d/buildbot_worker" "/etc/init.d/buildbot_worker.${instance_name}" \
+ || die "Unable to create link to init file"
+
+ if [[ ! -d "${instance_log_path}" ]]; then
+ mkdir --parents "${instance_log_path}" || die "Unable to create directory ${instance_log_path}"
+ fi
+ ln --symbolic --relative "${instance_log_path}/twistd.log" "${instance_path}/twistd.log" \
+ || die "Unable to create link to log file"
+
+ einfo "Successfully created a buildbot_worker instance at ${instance_path}."
+ einfo "To change the default settings edit the buildbot.tac file in this directory."
+}
diff --git a/dev-util/buildbot-worker/files/buildbot.tac.sample b/dev-util/buildbot-worker/files/buildbot.tac.sample
new file mode 100644
index 000000000000..ee3d7ca3cef9
--- /dev/null
+++ b/dev-util/buildbot-worker/files/buildbot.tac.sample
@@ -0,0 +1,70 @@
+'''
+This is a sample buildbot.tac file to initalize
+a buildbot worker complete with logging.
+'''
+
+import os.path
+import socket
+
+from twisted.application import service
+from twisted.python.logfile import LogFile
+from twisted.python.log import ILogObserver, FileLogObserver
+
+from buildbot_worker.bot import Worker
+
+################################
+# Set the following variables
+# to your desired values
+#################################
+
+# use the current directory or
+# set to an absolute value
+basedir = '.'
+
+# logging
+rotateLength = 10000000
+maxRotatedFiles = 10
+
+# buildbot communication port
+port = 9989
+
+# worker settings
+worker_name = 'worker-1'
+passwd = 'mypasswd'
+buildmaster_host = 'mybuildbot.foobar.org'
+keepalive = 600
+umask = None
+maxdelay = 300
+numcpus = None
+allow_shutdown = None
+
+
+# Begin starting up the worker
+# if this is a relocatable tac file, get the directory containing the TAC
+if basedir == '.':
+ basedir = os.path.abspath(os.path.dirname(__file__))
+
+# note: this line is matched against to check that this is
+# a buildbot-worker directory; do not edit it.
+application = service.Application('buildbot-worker')
+
+# set up logging
+logfile = LogFile.fromFullPath(os.path.join(basedir, "twistd.log"),
+ rotateLength=rotateLength,
+ maxRotatedFiles=maxRotatedFiles
+ )
+application.setComponent(ILogObserver, FileLogObserver(logfile).emit)
+
+worker = Worker(buildmaster_host,
+ port,
+ worker_name,
+ passwd,
+ basedir,
+ keepalive,
+ umask=umask,
+ maxdelay=maxdelay,
+ numcpus=numcpus,
+ allow_shutdown=allow_shutdown
+ )
+
+worker.setServiceParent(application)
diff --git a/dev-util/buildbot-worker/files/buildbot_worker.confd b/dev-util/buildbot-worker/files/buildbot_worker.confd
new file mode 100644
index 000000000000..7e77999cf0c8
--- /dev/null
+++ b/dev-util/buildbot-worker/files/buildbot_worker.confd
@@ -0,0 +1,9 @@
+# Path to the build slave's basedir.
+BASEDIR="/var/lib/buildbot_worker"
+
+# User account for the buildslave.
+# The basedir should be owned by this user.
+USERNAME="buildbot"
+
+# Extra options passed to twistd.
+TWISTD_OPTS=""
diff --git a/dev-util/buildbot-worker/files/buildbot_worker.confd2 b/dev-util/buildbot-worker/files/buildbot_worker.confd2
new file mode 100644
index 000000000000..3ae1d865fdb1
--- /dev/null
+++ b/dev-util/buildbot-worker/files/buildbot_worker.confd2
@@ -0,0 +1,14 @@
+# Path to the build slave's basedir.
+BASEDIR="/var/lib/buildbot_worker"
+
+# User account for the buildslave.
+# The basedir should be owned by this user.
+USERNAME="buildbot"
+
+# Extra options passed to twistd.
+TWISTD_OPTS=""
+
+# Optional specifiv python version to run in
+# (if not the system default version)
+# ie: RUNTIME_PYTHON="/usr/bin/python2.7"
+RUNTIME_PYTHON=""
diff --git a/dev-util/buildbot-worker/files/buildbot_worker.initd b/dev-util/buildbot-worker/files/buildbot_worker.initd
new file mode 100644
index 000000000000..8b13460491e4
--- /dev/null
+++ b/dev-util/buildbot-worker/files/buildbot_worker.initd
@@ -0,0 +1,48 @@
+#!/sbin/openrc-run
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ need net
+}
+
+checkconfig() {
+ if [ -z "${BASEDIR}" ]; then
+ eerror "BASEDIR not set"
+ return 1
+ fi
+ if [ -z "${USERNAME}" ]; then
+ eerror "USERNAME not set"
+ return 1
+ fi
+ if [ ! -d "${BASEDIR}" ]; then
+ eerror "${BASEDIR} is not a directory"
+ return 1
+ fi
+ if [ ! -e "${BASEDIR}/buildbot.tac" ]; then
+ eerror "${BASEDIR} does not contain buildbot.tac"
+ return 1
+ fi
+}
+
+start() {
+ checkconfig || return 1
+ ebegin "Starting buildslave in ${BASEDIR}"
+ # We set HOME here to make something valid show up in the env of child
+ # processes spawned by the buildslave.
+ start-stop-daemon --start -u "${USERNAME}" \
+ --pidfile "${BASEDIR}/buildbot_worker.pid" \
+ --env HOME="${BASEDIR}" \
+ --exec /usr/bin/twistd -- \
+ --no_save \
+ --logfile="${BASEDIR}/twistd.log" \
+ --pidfile="${BASEDIR}/buildbot_worker.pid" \
+ --python="${BASEDIR}/buildbot.tac"
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping buildslave in ${BASEDIR}"
+ start-stop-daemon --stop --pidfile "${BASEDIR}/buildbot_worker.pid"
+ eend $?
+}
diff --git a/dev-util/buildbot-worker/files/buildbot_worker.initd2 b/dev-util/buildbot-worker/files/buildbot_worker.initd2
new file mode 100644
index 000000000000..453d207e5d88
--- /dev/null
+++ b/dev-util/buildbot-worker/files/buildbot_worker.initd2
@@ -0,0 +1,57 @@
+#!/sbin/openrc-run
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+BUILDWORKER_NAME=${RC_SVCNAME:16}
+BUILDWORKER_PATH="${BASEDIR}/${BUILDWORKER_NAME}"
+depend() {
+ need net
+}
+
+checkconfig() {
+ if [ -z "${BUILDWORKER_NAME}" ]; then
+ eerror "Buildbot-worker name not defined. Please link buildbot_worker.foo to this file to start the buildbot_worker with the name \"foo\"."
+ return 1
+ fi
+ if [ -z "${BASEDIR}" ]; then
+ eerror "BASEDIR not set"
+ return 1
+ fi
+ if [ -z "${USERNAME}" ]; then
+ eerror "USERNAME not set"
+ return 1
+ fi
+ if [ ! -d "${BUILDWORKER_PATH}" ]; then
+ eerror "${BUILDWORKER_PATH} is not a directory"
+ return 1
+ fi
+ if [ ! -e "${BUILDWORKER_PATH}/buildbot.tac" ]; then
+ eerror "${BUILDWORKER_PATH} does not contain buildbot.tac"
+ return 1
+ fi
+ if [ ! -e "${RUNTIME_PYTHON}" ]; then
+ RUNTIME_PYTHON="/usr/bin/python"
+ fi
+}
+
+start() {
+ checkconfig || return 1
+ ebegin "Starting buildbot-worker in ${BUILDWORKER_PATH}"
+ # We set HOME here to make something valid show up in the env of child
+ # processes spawned by the buildbot-worker.
+ start-stop-daemon --start -u "${USERNAME}" \
+ --pidfile "${BUILDWORKER_PATH}/buildbot_worker.pid" \
+ --env HOME="${BUILDWORKER_PATH}" \
+ --exec "${RUNTIME_PYTHON}" -- /usr/bin/twistd \
+ --no_save \
+ --logfile="${BUILDWORKER_PATH}/twistd.log" \
+ --pidfile="${BUILDWORKER_PATH}/buildbot_worker.pid" \
+ --python="${BUILDWORKER_PATH}/buildbot.tac"
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping buildbot-worker in ${BUILDWORKER_PATH}"
+ start-stop-daemon --stop --pidfile "${BUILDWORKER_PATH}/buildbot_worker.pid"
+ eend $?
+}
diff --git a/dev-util/buildbot-worker/files/buildbot_worker.service b/dev-util/buildbot-worker/files/buildbot_worker.service
new file mode 100644
index 000000000000..e75a2d51e4f3
--- /dev/null
+++ b/dev-util/buildbot-worker/files/buildbot_worker.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=buildbot worker (slave) instances
+After=local-fs.target network.target
+
+[Service]
+Type=forking
+User=buildbot
+ExecStart=/usr/bin/buildbot_worker start /var/lib/buildbot_worker
+ExecStop=/usr/bin/buildbot_worker stop /var/lib/buildbot_worker
+
+[Install]
+WantedBy=multi-user.target
diff --git a/dev-util/buildbot-worker/metadata.xml b/dev-util/buildbot-worker/metadata.xml
new file mode 100644
index 000000000000..113a011b29b3
--- /dev/null
+++ b/dev-util/buildbot-worker/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>hwoarang@gentoo.org</email>
+ <name>Markos Chandras</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>dolsen@gentoo.org</email>
+ <name>Brian Dolbec</name>
+ </maintainer>
+ <upstream>
+ <maintainer>
+ <email>devel@buildbot.net</email>
+ <name>Developers List</name>
+ </maintainer>
+ <remote-id type="pypi">buildbot-worker</remote-id>
+ <remote-id type="github">buildbot/buildbot</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/buildbot-wsgi-dashboards/Manifest b/dev-util/buildbot-wsgi-dashboards/Manifest
new file mode 100644
index 000000000000..bfe6341a3b64
--- /dev/null
+++ b/dev-util/buildbot-wsgi-dashboards/Manifest
@@ -0,0 +1,3 @@
+DIST buildbot-wsgi-dashboards-0.9.11.tar.gz 627215 SHA256 bb72b78045867bc0ee2cbe90df96978860ed14e61090dc67b5ecd9606bab2975 SHA512 6f829d5ead05cb91f5b85f128874f1df01288e87938df9f8dd1cca1552ccfb7cae35be4eb077ea97d5ca4f44b236947649131b9aed2bdc9142920c2ee1439f4b WHIRLPOOL d33937eb54c8c4f7bc8d5d3258d37b0fac39293657e2668fc96149a574ff583f37798ff0ce03b2bc5a2ab5db1015db5538c1d5806ff23ca7d2b7a8152666d97f
+EBUILD buildbot-wsgi-dashboards-0.9.11.ebuild 1149 SHA256 aef5bb31637e237292329c610e7c4ee390adb8ed92a6ac8cf94348dd8723aaa2 SHA512 c79a8319c6d3496cf1b9e7e2b5314e8fa58ef8322e0b4e6d1b3e45f90076063c5a0812a86ce76a0fa97345605474dad51c60670b0e9c0d5110cbf4764840bf1e WHIRLPOOL 581a6d750af5ad57595c0330bbacfe5fa533761c22f6b1d5c8921f750f3ac68272c785e82a5f27a2dc43ad0916097daa534fc7e373a0ea7e799ee1aa19769f84
+MISC metadata.xml 790 SHA256 d00575352bc63fe4e7b77eb26e120689fd6a8cde90dbb61d5e2b0d68b0fda7be SHA512 15928eff7b660deca2fa007e8924a8c878f4694880a3e0d2092a63b9fc745fbe91f77ae4af65d1ecd1f593519dcfd6b4f495cbef16704680826b00bfc5b4cf4b WHIRLPOOL d6013034f5d0da76fb9ea889a5bd4f77ba67fdf03433f850772a7349969785d17ea1f0592750a428e30eb60ec3f11d5076b9b3832b451b53cc3a463dff1bfbb7
diff --git a/dev-util/buildbot-wsgi-dashboards/buildbot-wsgi-dashboards-0.9.11.ebuild b/dev-util/buildbot-wsgi-dashboards/buildbot-wsgi-dashboards-0.9.11.ebuild
new file mode 100644
index 000000000000..cf9810a5d1c1
--- /dev/null
+++ b/dev-util/buildbot-wsgi-dashboards/buildbot-wsgi-dashboards-0.9.11.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+PYTHON_REQ_USE="sqlite"
+PYTHON_COMPAT=( python2_7 python3_5 )
+
+EGIT_REPO_URI="https://github.com/buildbot/buildbot.git"
+
+[[ ${PV} == *9999 ]] && inherit git-r3
+inherit distutils-r1
+
+DESCRIPTION="Buildbot plugin to integrate flask or bottle dashboards to buildbot UI"
+HOMEPAGE="https://buildbot.net/ https://github.com/buildbot/buildbot https://pypi.python.org/pypi/buildbot-wsgi-dashboards"
+
+MY_PV="${PV/_p/.post}"
+MY_P="${PN}-${MY_PV}"
+[[ ${PV} == *9999 ]] || SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+
+if [[ ${PV} == *9999 ]]; then
+ KEYWORDS=""
+else
+ KEYWORDS="~amd64"
+fi
+
+IUSE="test"
+
+RDEPEND=""
+
+DEPEND="${RDEPEND}
+ >=dev-python/setuptools-21.2.1[${PYTHON_USEDEP}]
+ ~dev-util/buildbot-${PV}[${PYTHON_USEDEP}]
+ ~dev-util/buildbot-www-${PV}[${PYTHON_USEDEP}]
+"
+
+S="${WORKDIR}/${MY_P}"
+#[[ ${PV} == *9999 ]] && S=${S}/www/base
+
+python_test() {
+ distutils_install_for_testing
+
+ esetup.py test || die "Tests failed under ${EPYTHON}"
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+}
diff --git a/dev-util/buildbot-wsgi-dashboards/metadata.xml b/dev-util/buildbot-wsgi-dashboards/metadata.xml
new file mode 100644
index 000000000000..5635b23b831e
--- /dev/null
+++ b/dev-util/buildbot-wsgi-dashboards/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>dolsen@gentoo.org</email>
+ <name>Brian Dolbec</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>hwoarang@gentoo.org</email>
+ <name>Markos Chandras</name>
+ </maintainer>
+ <longdescription lang="en">
+ The buildbot-wsgi-dashboards plugin is the user interface code used to
+ integrate flask or bottle dashboards to buildbot's web interface.
+ </longdescription>
+ <upstream>
+ <maintainer>
+ <email>devel@buildbot.net</email>
+ <name>Developers List</name>
+ </maintainer>
+ <remote-id type="pypi">buildbot-wsgi-dashboards</remote-id>
+ <remote-id type="github">buildbot/buildbot</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/buildbot-www/Manifest b/dev-util/buildbot-www/Manifest
new file mode 100644
index 000000000000..53d1bbe04848
--- /dev/null
+++ b/dev-util/buildbot-www/Manifest
@@ -0,0 +1,12 @@
+DIST buildbot-www-0.9.10.tar.gz 693452 SHA256 9083516d702feefb8b61dd6cb351a54163f3b2d4f34b14071f77f2f550de9bf6 SHA512 9ff91de09ceff6dc53619ddd7b8a233f9206b91d75f508cb82fa948451eff8146aa112bada5f1f261f3c25870867046c40a41b85a4acd3b98c00ddab76580780 WHIRLPOOL 7986ad9423d5b585a52a9b04e0fbaf98716f9bfe81f1d99fe57fef7cd84dd391347cd16acaf3684626fc5927171cebec71cf2b12c60e24f393da5d3dcedb7fba
+DIST buildbot-www-0.9.11.tar.gz 687664 SHA256 af01216d543eddba0772e55a0a97a2a1d0a9b0fddc1c87dd59b449b4818893db SHA512 5a4ecde7a79bace65fbaeedb9153ccfc8094e0fdccd19bf656a1aee1cb5eb84dd28ffb0279aaa0f75a2365278276f5a16d7015eab732e2642a3344d2b28ff441 WHIRLPOOL 05ac3085a70b07ed430d20e70225c13c80133cca31b5e86f9cea71b1e2cb22c08a2dcc68e0461d6f9259679351bec4b19221cc43996f25ac1c004f841ffaaf67
+DIST buildbot-www-0.9.4.tar.gz 691706 SHA256 eb2f48aabee5e840aa8a4fce1f95f2fe4e2ae98045f9465d275ee5e263ae04b3 SHA512 522716f4200c00c1fbf196834279caef0fa2d805c7020d31890ce4d95ade85c5fa4a605d343a4fbf0d404f3088d98a7fd3c39bea58f3b02bc9e4a6daa9e3f6c6 WHIRLPOOL 6991e6052b3e5c3fffb83f2808f0b7da4f2267c0b4aa9b3cf3b665ba2046e5f123baf18d8dfbe25780782e9230b488edf1cfee8b3c07241aa59ce99509bb735c
+DIST buildbot-www-0.9.7.tar.gz 691849 SHA256 3123b1518976edbf285c2c0791719dafda59baab0103e533a54eb6ed134b78c9 SHA512 be9eaef167d354e1a028552792047ba31b475f57fc19204076f125552b5ee84770987d16894bc78ebc281b69d480e7b204d8cdaf5a4041af9ae09fb7785721ba WHIRLPOOL abee257ab8df9851bdcb047432d48648176a423337c1dbcc9c45832cb905bc58df8ba3d359b9de7367df36a251375f94f2579a984353a8747e1d256efb691676
+DIST buildbot-www-0.9.8.tar.gz 691945 SHA256 d3384b942b9194f52d8855df066ae355417a52cb69dc02ba061ebeb0f996f06b SHA512 819fa74219f27c0a8a7d4b05f099d4a92e1211cd6cf212dd9db4df3fb3d2ec3bf29bd4de8a463bedb611fec5e7c82e64b3a139b77505b0b9955ee3ed1cde205f WHIRLPOOL cdfa636af9aaaee8d42425b0269cd77c2c87846333d9b62cbdae9dc513ad37bc52ebc631b4f1284e2c27f94aed78a01df84114dfa1c766102e49ead1d7806505
+EBUILD buildbot-www-0.9.10.ebuild 1181 SHA256 500cb653d534013712fb56c832776b6d23250d3c22cd1be1d7fa25e0f37d64ee SHA512 770bddc301920a0a6e8abeaac1c231794c824f9d8d991be9213aecca68621b56b8ab1118a6e3641841375682e1d3c54cf784a11e93164404804f840083985c35 WHIRLPOOL 64f035d25d8340e139174d4baf2864daa27c66e2356bce4e92e1c0d9cd2d5cf6b6ad0e65fa44f4baf04c7cfb0863dc18ab95ec8eb1733a1ccd739a07e9c70029
+EBUILD buildbot-www-0.9.11.ebuild 1181 SHA256 500cb653d534013712fb56c832776b6d23250d3c22cd1be1d7fa25e0f37d64ee SHA512 770bddc301920a0a6e8abeaac1c231794c824f9d8d991be9213aecca68621b56b8ab1118a6e3641841375682e1d3c54cf784a11e93164404804f840083985c35 WHIRLPOOL 64f035d25d8340e139174d4baf2864daa27c66e2356bce4e92e1c0d9cd2d5cf6b6ad0e65fa44f4baf04c7cfb0863dc18ab95ec8eb1733a1ccd739a07e9c70029
+EBUILD buildbot-www-0.9.4.ebuild 1165 SHA256 3adb8f216000946d5282191a5e016632eba83dbab158dae83a07e853de9a83c5 SHA512 bc26062abdf359eca2d79bbb2504cb30785976b1d629788582b89b7eb40dca6dce1247c3c8947b434df8402fa9a5ff604e8430b6ce0eee7fbfc5db6168fecd7d WHIRLPOOL 7dbdf12f77dc2eb41c0436e3acdc24fd569fb71033c25e5f8209645dbfe13f6be0f44b4234d8ccbdcbf8f126f01180b84423438f582d459982896e682c69f831
+EBUILD buildbot-www-0.9.7.ebuild 1175 SHA256 8d8178d31c2c8cd1f2cbcc7bfdd4a6ea5624664a65cb6c211070df4acd3cc845 SHA512 28fc86bcd028483500c65e2120ee28b744d219a98bcf372e9772b80bbe5ec849c795fe783dcb6bb18517853256be113694da9dc0b3b05ce703f4c8cbd40a64a8 WHIRLPOOL 6500e25bc0c5cf685e8d477ecdfe991e6b4e00ac74124e2a6b588dc99e04cf1f65a1eafd594df73720ea9bd6c6e0ec662ecefa6187771e4edf3d515c28af5a04
+EBUILD buildbot-www-0.9.8.ebuild 1175 SHA256 8d8178d31c2c8cd1f2cbcc7bfdd4a6ea5624664a65cb6c211070df4acd3cc845 SHA512 28fc86bcd028483500c65e2120ee28b744d219a98bcf372e9772b80bbe5ec849c795fe783dcb6bb18517853256be113694da9dc0b3b05ce703f4c8cbd40a64a8 WHIRLPOOL 6500e25bc0c5cf685e8d477ecdfe991e6b4e00ac74124e2a6b588dc99e04cf1f65a1eafd594df73720ea9bd6c6e0ec662ecefa6187771e4edf3d515c28af5a04
+MISC ChangeLog 1441 SHA256 16e41fc1f9bdc755de438665ed93ff1fe5dfa118808dff5d998d012c15d23b32 SHA512 b587afe92f2591ddc8cd47d72b367a2bb467b46e48be8a9a1d7e6c8ffc8deaf59306fe49424d6b410878522e31ace7b0d909f8b037db7deaf317fe5036a302cf WHIRLPOOL 7b09f9007361442e46732b89b141d121fe19448e46a264862b4d7698ad84bb7b36b03f8e0f2a572ba4664c2fd60802fcf7f5868a74a578d6449e423e160f3e4a
+MISC metadata.xml 777 SHA256 bd5b7bb290e4b12d1f69a4f4531e5991cc2133775b601a67095a1845cd90e768 SHA512 9cace9b96d46b5cf2775d4a1d328c5cfdf3448758f293c0b12855bca7f65244e34529bd51e019201f9d397cfefbeb503f6dc1e2cdc9fe1f5e456dce1dcb2a5c6 WHIRLPOOL 7f2165a63b1d2e94040db2992869de06b9537864278bd473456b3e0a2394dcee90f34bb88a897dab5cf79593b438993eb0ab7b3b85707463e25a7eacd628759f
diff --git a/dev-util/buildbot-www/buildbot-www-0.9.10.ebuild b/dev-util/buildbot-www/buildbot-www-0.9.10.ebuild
new file mode 100644
index 000000000000..e248b15e6f78
--- /dev/null
+++ b/dev-util/buildbot-www/buildbot-www-0.9.10.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+PYTHON_REQ_USE="sqlite"
+PYTHON_COMPAT=( python2_7 python3_5 )
+
+EGIT_REPO_URI="https://github.com/buildbot/buildbot.git"
+
+[[ ${PV} == *9999 ]] && inherit git-r3
+inherit distutils-r1
+
+DESCRIPTION="BuildBot base web interface, use with buildbot-{console-view,waterfall-view}..."
+HOMEPAGE="https://buildbot.net/ https://github.com/buildbot/buildbot https://pypi.python.org/pypi/buildbot-www"
+
+MY_PV="${PV/_p/.post}"
+MY_P="${PN}-${MY_PV}"
+[[ ${PV} == *9999 ]] || SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+
+if [[ ${PV} == *9999 ]]; then
+ KEYWORDS=""
+else
+ KEYWORDS="~amd64"
+fi
+
+IUSE="test"
+
+RDEPEND=""
+
+DEPEND="${RDEPEND}
+ >=dev-python/setuptools-21.2.1[${PYTHON_USEDEP}]
+ ~dev-util/buildbot-${PV}[${PYTHON_USEDEP}]
+ ~dev-util/buildbot-pkg-${PV}[${PYTHON_USEDEP}]
+ dev-python/mock[${PYTHON_USEDEP}]
+"
+
+S="${WORKDIR}/${MY_P}"
+#[[ ${PV} == *9999 ]] && S=${S}/www/base
+
+python_test() {
+ distutils_install_for_testing
+
+ esetup.py test || die "Tests failed under ${EPYTHON}"
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+}
diff --git a/dev-util/buildbot-www/buildbot-www-0.9.11.ebuild b/dev-util/buildbot-www/buildbot-www-0.9.11.ebuild
new file mode 100644
index 000000000000..e248b15e6f78
--- /dev/null
+++ b/dev-util/buildbot-www/buildbot-www-0.9.11.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+PYTHON_REQ_USE="sqlite"
+PYTHON_COMPAT=( python2_7 python3_5 )
+
+EGIT_REPO_URI="https://github.com/buildbot/buildbot.git"
+
+[[ ${PV} == *9999 ]] && inherit git-r3
+inherit distutils-r1
+
+DESCRIPTION="BuildBot base web interface, use with buildbot-{console-view,waterfall-view}..."
+HOMEPAGE="https://buildbot.net/ https://github.com/buildbot/buildbot https://pypi.python.org/pypi/buildbot-www"
+
+MY_PV="${PV/_p/.post}"
+MY_P="${PN}-${MY_PV}"
+[[ ${PV} == *9999 ]] || SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+
+if [[ ${PV} == *9999 ]]; then
+ KEYWORDS=""
+else
+ KEYWORDS="~amd64"
+fi
+
+IUSE="test"
+
+RDEPEND=""
+
+DEPEND="${RDEPEND}
+ >=dev-python/setuptools-21.2.1[${PYTHON_USEDEP}]
+ ~dev-util/buildbot-${PV}[${PYTHON_USEDEP}]
+ ~dev-util/buildbot-pkg-${PV}[${PYTHON_USEDEP}]
+ dev-python/mock[${PYTHON_USEDEP}]
+"
+
+S="${WORKDIR}/${MY_P}"
+#[[ ${PV} == *9999 ]] && S=${S}/www/base
+
+python_test() {
+ distutils_install_for_testing
+
+ esetup.py test || die "Tests failed under ${EPYTHON}"
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+}
diff --git a/dev-util/buildbot-www/buildbot-www-0.9.4.ebuild b/dev-util/buildbot-www/buildbot-www-0.9.4.ebuild
new file mode 100644
index 000000000000..2985e3067ac9
--- /dev/null
+++ b/dev-util/buildbot-www/buildbot-www-0.9.4.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+PYTHON_REQ_USE="sqlite"
+PYTHON_COMPAT=( python2_7 )
+
+EGIT_REPO_URI="https://github.com/buildbot/buildbot.git"
+
+[[ ${PV} == *9999 ]] && inherit git-r3
+inherit distutils-r1
+
+DESCRIPTION="BuildBot base web interface, use with buildbot-{console-view,waterfall-view}..."
+HOMEPAGE="https://buildbot.net/ https://github.com/buildbot/buildbot https://pypi.python.org/pypi/buildbot-www"
+
+MY_V="${PV/_p/p}"
+MY_P="${PN}-${MY_V}"
+[[ ${PV} == *9999 ]] || SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+
+if [[ ${PV} == *9999 ]]; then
+ KEYWORDS=""
+else
+ KEYWORDS="~amd64"
+fi
+
+IUSE="test"
+
+RDEPEND=""
+
+DEPEND="${RDEPEND}
+ >=dev-python/setuptools-21.2.1[${PYTHON_USEDEP}]
+ ~dev-util/buildbot-${PV}[${PYTHON_USEDEP}]
+ ~dev-util/buildbot-pkg-${PV}[${PYTHON_USEDEP}]
+ dev-python/mock[${PYTHON_USEDEP}]
+"
+
+S="${WORKDIR}/${MY_P}"
+#[[ ${PV} == *9999 ]] && S=${S}/www/base
+
+python_test() {
+ distutils_install_for_testing
+
+ esetup.py test || die "Tests failed under ${EPYTHON}"
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+}
diff --git a/dev-util/buildbot-www/buildbot-www-0.9.7.ebuild b/dev-util/buildbot-www/buildbot-www-0.9.7.ebuild
new file mode 100644
index 000000000000..8ab635151e65
--- /dev/null
+++ b/dev-util/buildbot-www/buildbot-www-0.9.7.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+PYTHON_REQ_USE="sqlite"
+PYTHON_COMPAT=( python2_7 python3_5 )
+
+EGIT_REPO_URI="https://github.com/buildbot/buildbot.git"
+
+[[ ${PV} == *9999 ]] && inherit git-r3
+inherit distutils-r1
+
+DESCRIPTION="BuildBot base web interface, use with buildbot-{console-view,waterfall-view}..."
+HOMEPAGE="https://buildbot.net/ https://github.com/buildbot/buildbot https://pypi.python.org/pypi/buildbot-www"
+
+MY_V="${PV/_p/p}"
+MY_P="${PN}-${MY_V}"
+[[ ${PV} == *9999 ]] || SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+
+if [[ ${PV} == *9999 ]]; then
+ KEYWORDS=""
+else
+ KEYWORDS="~amd64"
+fi
+
+IUSE="test"
+
+RDEPEND=""
+
+DEPEND="${RDEPEND}
+ >=dev-python/setuptools-21.2.1[${PYTHON_USEDEP}]
+ ~dev-util/buildbot-${PV}[${PYTHON_USEDEP}]
+ ~dev-util/buildbot-pkg-${PV}[${PYTHON_USEDEP}]
+ dev-python/mock[${PYTHON_USEDEP}]
+"
+
+S="${WORKDIR}/${MY_P}"
+#[[ ${PV} == *9999 ]] && S=${S}/www/base
+
+python_test() {
+ distutils_install_for_testing
+
+ esetup.py test || die "Tests failed under ${EPYTHON}"
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+}
diff --git a/dev-util/buildbot-www/buildbot-www-0.9.8.ebuild b/dev-util/buildbot-www/buildbot-www-0.9.8.ebuild
new file mode 100644
index 000000000000..8ab635151e65
--- /dev/null
+++ b/dev-util/buildbot-www/buildbot-www-0.9.8.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+PYTHON_REQ_USE="sqlite"
+PYTHON_COMPAT=( python2_7 python3_5 )
+
+EGIT_REPO_URI="https://github.com/buildbot/buildbot.git"
+
+[[ ${PV} == *9999 ]] && inherit git-r3
+inherit distutils-r1
+
+DESCRIPTION="BuildBot base web interface, use with buildbot-{console-view,waterfall-view}..."
+HOMEPAGE="https://buildbot.net/ https://github.com/buildbot/buildbot https://pypi.python.org/pypi/buildbot-www"
+
+MY_V="${PV/_p/p}"
+MY_P="${PN}-${MY_V}"
+[[ ${PV} == *9999 ]] || SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+
+if [[ ${PV} == *9999 ]]; then
+ KEYWORDS=""
+else
+ KEYWORDS="~amd64"
+fi
+
+IUSE="test"
+
+RDEPEND=""
+
+DEPEND="${RDEPEND}
+ >=dev-python/setuptools-21.2.1[${PYTHON_USEDEP}]
+ ~dev-util/buildbot-${PV}[${PYTHON_USEDEP}]
+ ~dev-util/buildbot-pkg-${PV}[${PYTHON_USEDEP}]
+ dev-python/mock[${PYTHON_USEDEP}]
+"
+
+S="${WORKDIR}/${MY_P}"
+#[[ ${PV} == *9999 ]] && S=${S}/www/base
+
+python_test() {
+ distutils_install_for_testing
+
+ esetup.py test || die "Tests failed under ${EPYTHON}"
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+}
diff --git a/dev-util/buildbot-www/metadata.xml b/dev-util/buildbot-www/metadata.xml
new file mode 100644
index 000000000000..55b76e0cd4dd
--- /dev/null
+++ b/dev-util/buildbot-www/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>hwoarang@gentoo.org</email>
+ <name>Markos Chandras</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>dolsen@gentoo.org</email>
+ <name>Brian Dolbec</name>
+ </maintainer>
+ <longdescription lang="en">
+ The BuildBot-www package is the base or common code used for the other
+ user interface packages such as the waterfall and console views.
+ </longdescription>
+ <upstream>
+ <maintainer>
+ <email>devel@buildbot.net</email>
+ <name>Developers List</name>
+ </maintainer>
+ <remote-id type="pypi">buildbot-www</remote-id>
+ <remote-id type="github">buildbot/buildbot</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/buildbot/Manifest b/dev-util/buildbot/Manifest
new file mode 100644
index 000000000000..8a84d528d93d
--- /dev/null
+++ b/dev-util/buildbot/Manifest
@@ -0,0 +1,24 @@
+AUX buildbot-0.9.4.docs.patch 4619 SHA256 25e802ba82315e6f62b536e0002d7af8b6b6c814803d9f142cd70f4aa4e5b815 SHA512 c521b44c9db5d565302bf611842d1b607f240ba89988aacc4d988aa61626be125a5b20a7cc2135fb6e331a50f5de3fc6ba7fe0e5f5a42049700eea46f9cc1c8d WHIRLPOOL 3bead12e5d510d225ad3b8f4070c5d6d206287391c6c5262ae2573123bd1e2e33a214c56e0f88d223cd3df77b04221fb60016e50666ef277c0eab0de76084a40
+AUX buildbot.service 435 SHA256 a94170eaac47b72e3fe86eb3fa3e231c2977940fa77b84ab0736a20a7e68639d SHA512 0baf2696efe3843c93f90c4678696ffe1c7d5df2292b5b3ee48a4e30bf213956052f4772c8e7938f541c08c76b39157b246debf376f9fa26a8773be785cddeab WHIRLPOOL bd2802cc78c5a6a6672e8e84c1330c641911c31bc802be222b9e4c87e3be5ca9115f18e90f3a48012619f7e3bbaf9fddaa0af333526aa034b4d0eae2cd9256f8
+AUX buildmaster.confd 218 SHA256 bb7f93e3867b32a25e2445a66d40573fa5073a80e73e35ae2a904db715f870c6 SHA512 d9339c30d3a92e92b41b0e3139ec89ecbd1460b0e4ee6c6fe2560c4307b2eb3f29b838c2f2312b9c7049bd95eaf652d09039227c691af805bc25a36999ec1840 WHIRLPOOL 0e258348e5882db063e95b3c508f8d92e2a7598e5f76705da2ebba45b4893ae893b0ed67271a112255d3e5b8f5f1ace17b487fc885db30a774dde44be1944c4d
+AUX buildmaster.initd 1573 SHA256 03ee2ccd319a34192f9d42967211b88e32f573af7472e7e8c5149e3ea43a8bab SHA512 22d58baa3500de63ca3d278c2ed44c78694c8f022a9916b0f35344485dbbbe46b054ba9b0cc9a8c56948ea8726e419cb7e1177036124fc3fc5acc957d56f168c WHIRLPOOL 3f0edeaaa5a35c3eabb332b2e3a043a5b244bde966d04ba625906ffa057c762590e9c903f508fb951decaffa1d4ef37044b71fa7942fb280bb4406cdb34f5079
+AUX buildmaster.target 138 SHA256 f232ac65ec161308092cb4f86c43cba8bb9293cd89fe3a3a6c4ad26936067680 SHA512 c5f56688349af0adcfa644abc699445e2c61bb268d5407f8fc540ac80ea9be6aee615df16bbf0f41db272dd4159762d7be744b3116efc0f9bc7cb1d458edb050 WHIRLPOOL c2596791d8d61966bd5ce60763caf7baca27b579ff657e45c6ab428a1f7100dc8940d401f8fa3260dd532c203f6452d4d1c85f6c05950d4ed18404bdfe02d398
+AUX buildmaster_at.service 375 SHA256 ca2275a74de23c9294187edfff918344f66ed40eba4d9408a5065840a1934727 SHA512 c37f1c461a4c7ee741a839772a5feabf10103542e159c6ae4eddfa37a146732dfc23f91d867d69c3718a21714516a3847485ae4e6580c93a5aa94daec40dd093 WHIRLPOOL dce1174f424ae09a05c3a0e3e04ce547e8b584bf631fe7eae8def80e79b82a76413109e7b6b17cd474f8a623bff3be94528c573617ce71ce24e4105e9d979193
+AUX buildmaster_at.service.conf 150 SHA256 4056f0bf8713ca26e64cd8d3eb6c570156a2e03b8bbf5e6d2c24246e855f8089 SHA512 d533b95c5b180cda5aa73966c590b7828598d5b6bcd77147a88238941adaa4c3c78e5f17d771598f622212856b16ce4582ab915a4cb57f0dd633eb2ad6b4c10d WHIRLPOOL dac5dc509c3ccc8d53aa5aec8a39d30618f07729904235306f81b35e85ad8a5bdfb4ed75959260c51329e839082cf8f943bff6c735ad3881dd0407983b3236a1
+DIST buildbot-0.8.12.tar.gz 4834352 SHA256 c6b66976dff712268566574d57131ec15e5682f6d4390cd5c8559bab0980c4d6 SHA512 18c5144132fb033f3581d3c494d5e8ff35d3e8b1548764452ce9ae543d710e58a2c6e3e8e46a0ef237804f9a6a45485890ae4616ab655fb00d4ccf328d6f6645 WHIRLPOOL 5754b7c0278fb5e7da8a7dd66253f6f4d12f54c125f6a78aa9018a2b6b22fd88a27e79e6821ab05e4cd9e87bf0dd08c3c73c7914d4c499ac13c48ca232ed21c8
+DIST buildbot-0.9.10.tar.gz 3112750 SHA256 8c5ed75f3f16f4ff0f2c9e3f9b091acb5e6e1c0ef68ffa8f687a55413a833143 SHA512 95b489d5f7d0bc00ae5f71cd056b36fe689c4dc9408a7a0e4b1b45e036c9074832c8e3755981520a8c85a791b50f7f40765962c12a71887198dc0bbd0140d0e0 WHIRLPOOL 8d62d0aecdea4122709693ce48c72d5dbac2e946a6923a7ea41842dc759369a678e21a8abb0b4ff825e1ba559a9d490bcc4ff56fc5568a4f7f2d94b4f6c5f027
+DIST buildbot-0.9.11.tar.gz 3096455 SHA256 9be352c0aab5d1520fedac8d6b19aadda4f48763ac7f72bb00e5f8cc51107ee8 SHA512 c68a657213b0f878d8c2b4e6ebe18cfc9b3e19a4eecaf085fd3e5631bbb78dc9bd14e6b3d4b576e78eb1631329c86331371200a350d33696204fb76e7beae81c WHIRLPOOL 3b1804d7920e110ca1ae1d04e7a7c38fef0db4a2c7b448a21175a0f2693ba8725d228d27720ffdad976071d143e4158b41dc527d120e2c4928df3fdbd765285f
+DIST buildbot-0.9.4.docs.tar.xz 69224 SHA256 69fc33762a885568b02c42954a64d62d28bcb750b3aed011c3da8a9f84c13371 SHA512 906e551e0db32c8a0b4010b3b8b00c4776e3d1b7d7381e4dc0ccf01d361184e4605c3ab0ecaf4e42207bd73c3e72f8a570a4d4c29db72f4d68241abf48741d7e WHIRLPOOL 95f263e0b9ab22a649118f362d866b08cbdf62511f2a1f9bd6a7265103f174e35d0c8d86ad6a3b7dd5fd0b4277d60dbd25801c5e6f7e414e7fa634c241dae987
+DIST buildbot-0.9.4.tar.gz 3020851 SHA256 068161cd9ada10b87f40117c768a37ce796ebf5e7bf08f224f4c7ded88cd7472 SHA512 938a94192560b989a277d9650c50781d7e7c116bc5e2010ccb2e655df757de0ee254369531b2f432c835c0285c724e52d999a393d0ce1b104d4b9dcc5c6687da WHIRLPOOL 0ffe61b82ee93b78cdb3cb74ef96d5a3547e0fcab9ec8093b59a7212c5e2a1ad16eff046306bffcc0ea63b2e0bf2df1e54b5a0874dc78e27744db2088ccac804
+DIST buildbot-0.9.7.tar.gz 3092434 SHA256 8fcbf0e6536e5d60407f59d14f96d5f8386cd91846a4fa47b4336d71551a9e33 SHA512 3fd2b488cabac37e297bb1a475cdb115f261324a22ec4d6fbcf8dc5bfb6ee135fab3763998433be8795581d476f69e2adb6f42d248bf2131a42eecfc1667202a WHIRLPOOL 427d4c1c452f767550a3d2731b2e34480c399dcf50e57d4fb69f0a350f381e3e7ecc47d712fc8fbb99afcf8b230c7bd3afe8437ec3b24bf9ddbf7d35b4d1caad
+DIST buildbot-0.9.8.tar.gz 3101418 SHA256 39a2f7df458ec9be1009cf90a02d732d142a2ec3fbc0404e4f3fce4b8a4c3af7 SHA512 88800bad542d26aee6df348021faf5f76f36c250e9fb85c9abe3af7f13ec87fcae5727c8633772205f5c024709fd39b05d1d9c3aa1374b4ca72a528b5ec3ba83 WHIRLPOOL fafb46f6d6bc10f6073567cd6a6894cd67d61c4ff537b342060319874eb22ea45d816f6b764f0b9f841f9b7a5e127481a85dbb4abbacd228a8168a5e3e948b2b
+EBUILD buildbot-0.8.12-r3.ebuild 5490 SHA256 ab180e34963560c3a14df8a5f00f451bb469c25c37bf29a211e5c02eaf8bde24 SHA512 16e5f6ba87559ed9788f4cb7451020cfd0e3b2efe22f5126aca23d0b6e20b9ed6050e4dada0e9e595b28f8ddf4e5446c1217c2e77adfd44dc307fc0b8b5b654a WHIRLPOOL d01753e023dadfc3155308bbf9b41a1d1eea03a57d2ba6a5640989e3491977007dd7fe37ca072c1676dbe87b4a920ae294573770baaf53913f39ed5552108f73
+EBUILD buildbot-0.9.10.ebuild 7279 SHA256 bac78fde783e5642abb90ad826409209c4159cced413c7caa1ef374956d23e7c SHA512 6de67b6cf11bff7e21cedd159d6d253fb083cdf2094611410d94a0514d409849d1d8913e5e3ed18f2ca227d3acf2fd1f19e6fccaf31566c8d971ccd278a7e0e7 WHIRLPOOL 128616ff39de2340d10ec6f7f63d42780645c7a014c691172d1b942f030ea353ef03536e3690386ac1fbdc67755cd1962f6ac50d5f83114285c16071062662de
+EBUILD buildbot-0.9.11.ebuild 7053 SHA256 425c5dc4f36d6df2fc5cab17bc5dbad951658b012e8d983d95a286c926877ed3 SHA512 34ff2a130e1a2f44b570667db0ccc7acb1216a873a75491712d1cb3a8ca82a5dd1c081f42837f7ee23b69265298a3889467d646ed0d3fb7b944a38bf40bbb6fc WHIRLPOOL a906335ab4f067047516573c5c72243612a57a55f340f9a0ed1639ea430a3ebd8e89099c2ca14abc33fd95a1d25337666fccb45e8bbefdc36aa6d915ef8e1502
+EBUILD buildbot-0.9.4.ebuild 7076 SHA256 088566d6e59150e1bfbcbfd12a19168b43f9dc420da601ee7e27005c2d6ad299 SHA512 1f5a6fc87fbf5403090c2d573476a910b4b557babac8857512f27458cdf97844a47931884dcbf59eba646b45d8d0408ae15a41ef6eaa42ae0e86c9a0e9af6831 WHIRLPOOL 086a8b5108286ac8de15da37ab8959e76cf922bf2183225c41b5e9c327ec3ab0073339ab6272fc896f48f60488f3659cac5a2772f371a6dd6adb03270c9968d6
+EBUILD buildbot-0.9.7.ebuild 6682 SHA256 52d651cf20b067e0036bf70ba221ba4408d3c33b65c93a9cd2bec9f6d1c8608b SHA512 708ccb2387de7ee61f9c92f8c8a15d8cb39f67a2a161ef57fbecfb9debf5107d35515b7d4c84b6bfea7fbf3ec84b7096797416236ed9d9014958913ed77f631a WHIRLPOOL 45a86a824882a2c87b4a66c8c9b1975889247c1c7c969ea686066646b55917b04a4702755641e40aaf33917b892fde94a847aa5b5f83a5614e7c5d1b8801ef14
+EBUILD buildbot-0.9.8.ebuild 6730 SHA256 44bcdd947b81c7019ba92e7f715949e2b5b339022c3d399dcb772d18df136c83 SHA512 9e3a590fdb60ce3f5d3f24e62bbc3d245c9af9a7d858d69a984c461abb7eb07335ef6a00058987b1f944bef9c6604d129071227df7093e027c625a819856884c WHIRLPOOL 4033eed24f1e5f178810f3aac5781b78ed613ff4a1e9c1c34c9d9fadefa086c5b422f1c1724b2eb9fa2a80560ff3b3c8d73086b0d7f4eb1b76cce413bc064529
+EBUILD buildbot-9999.ebuild 7053 SHA256 425c5dc4f36d6df2fc5cab17bc5dbad951658b012e8d983d95a286c926877ed3 SHA512 34ff2a130e1a2f44b570667db0ccc7acb1216a873a75491712d1cb3a8ca82a5dd1c081f42837f7ee23b69265298a3889467d646ed0d3fb7b944a38bf40bbb6fc WHIRLPOOL a906335ab4f067047516573c5c72243612a57a55f340f9a0ed1639ea430a3ebd8e89099c2ca14abc33fd95a1d25337666fccb45e8bbefdc36aa6d915ef8e1502
+MISC ChangeLog 8474 SHA256 f17f98b73101e0c7ef4a57d9de67201ec8cb2e13dad90e31c9ebb4b22d3e8a47 SHA512 a86c113f5d2921f2077e3f69f599255e91ecdf31d4f04965881d7f3167c53084b4178a0dc3c87be499dce7b715b97ec7336aa9f24dbb97f0108a33d337bc6234 WHIRLPOOL 3003bee799a0509b76bd33d855f9addf2433ab05ae2fcc160a50b9a4f4c1974c9f76293bdcea45548b017df2f74c90064ddb8bf347685da5540b2f657ccd376f
+MISC ChangeLog-2015 23687 SHA256 01b29df49e2d44ead407b455fc3fdb5746b6a07fed70c6b91935490c4816200b SHA512 6b6a9680134503958352c40c3ca9ca3acde081b77cedab97e6eccbcba6716cf68101d592bcfcd4bbed226cd038d79d1b20d34e1532a63e30687d04b0e4bad00d WHIRLPOOL 45de95ee421fae3b3052d57e90bfdc49de53c1cafc185d12b0280873cd113bc0432ec253e0ed1e40fea0824c1f261f3907c3c78b9bf53ff147e935c970150952
+MISC metadata.xml 1543 SHA256 204ee06fb9b996162310b5404f2d7edbd3cf12d773f67ae1ce446cd5c207bfc7 SHA512 a5bd8e8b9fe253e2a4bb43c536dc9b0fdccca675d5381ba7f488d1127c73805838ce881b691f8c638f774706c4b025cd5b70145b10d6c3578b68399e1fcb628d WHIRLPOOL 2c9191bb2c0d125c008042702adc70b39ae82105a84c8afc373b37a3e3790fab791d8aac29bf005f6af871085842e6b3a23e4a7a0bd691f24610b2ac3052b644
diff --git a/dev-util/buildbot/buildbot-0.8.12-r3.ebuild b/dev-util/buildbot/buildbot-0.8.12-r3.ebuild
new file mode 100644
index 000000000000..67cc0e8a8dc2
--- /dev/null
+++ b/dev-util/buildbot/buildbot-0.8.12-r3.ebuild
@@ -0,0 +1,147 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="sqlite"
+
+inherit distutils-r1 readme.gentoo systemd user
+
+MY_PV="${PV/_p/p}"
+MY_P="${PN}-${MY_PV}"
+
+DESCRIPTION="BuildBot build automation system"
+HOMEPAGE="http://buildbot.net/ https://github.com/buildbot/buildbot https://pypi.python.org/pypi/buildbot"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha amd64 arm hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris"
+IUSE="doc examples irc mail manhole test"
+
+RDEPEND=">=dev-python/jinja-2.1[${PYTHON_USEDEP}]
+ dev-python/twisted-core[${PYTHON_USEDEP}]
+ dev-python/twisted-web[${PYTHON_USEDEP}]
+ <=dev-python/sqlalchemy-0.7.10-r999[${PYTHON_USEDEP}]
+ ~dev-python/sqlalchemy-migrate-0.7.2[${PYTHON_USEDEP}]
+ irc? ( dev-python/twisted-words[${PYTHON_USEDEP}] )
+ mail? ( dev-python/twisted-mail[${PYTHON_USEDEP}] )
+ manhole? ( dev-python/twisted-conch[${PYTHON_USEDEP}] )"
+DEPEND="${DEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
+ >=dev-python/python-dateutil-1.5[${PYTHON_USEDEP}]
+ test? (
+ dev-python/mock[${PYTHON_USEDEP}]
+ dev-python/twisted-mail[${PYTHON_USEDEP}]
+ dev-python/twisted-web[${PYTHON_USEDEP}]
+ dev-python/twisted-words[${PYTHON_USEDEP}]
+ )"
+
+S="${WORKDIR}/${MY_P}"
+
+pkg_setup() {
+ enewuser buildbot
+
+ DOC_CONTENTS="The \"buildbot\" user and the \"buildmaster\" init script has been added
+ to support starting buildbot through Gentoo's init system. To use this,
+ execute \"emerge --config =${CATEGORY}/${PF}\" to create a new instance.
+ The scripts can run as a different user if desired."
+}
+
+src_compile() {
+ distutils-r1_src_compile
+
+ if use doc; then
+ einfo "Generation of documentation"
+ pushd docs > /dev/null
+ #'man' target is currently broken
+ emake html
+ popd > /dev/null
+ fi
+}
+
+src_install() {
+ distutils-r1_src_install
+
+ doman docs/buildbot.1
+
+ if use doc; then
+ dohtml -r docs/_build/html/
+ # TODO: install man pages
+ fi
+
+ if use examples; then
+ insinto /usr/share/doc/${PF}
+ doins -r contrib docs/examples
+ fi
+
+ newconfd "${FILESDIR}/buildmaster.confd" buildmaster
+ newinitd "${FILESDIR}/buildmaster.initd" buildmaster
+ systemd_dounit "${FILESDIR}/buildmaster.target"
+ systemd_newunit "${FILESDIR}/buildmaster_at.service" "buildmaster@.service"
+ systemd_install_serviced "${FILESDIR}/buildmaster_at.service.conf" "buildmaster@.service"
+
+ readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+ readme.gentoo_print_elog
+
+ if [[ -n ${REPLACING_VERSIONS} ]]; then
+ ewarn
+ ewarn "Starting with buildbot-0.8.12-r2, more than one instance of buildmaster"
+ ewarn "can be run simultaneously. Note that \"BASEDIR\" in the buildbot configuration file"
+ ewarn "is now the common base directory for all instances. If you are migrating from an older"
+ ewarn "version, make sure that you copy the current contents of \"BASEDIR\" to a subdirectory."
+ ewarn "The name of the subdirectory corresponds to the name of the buildmaster instance."
+ ewarn "In order to start the service running OpenRC-based systems need to link to the init file:"
+ ewarn " ln --symbolic --relative /etc/init.d/buildmaster /etc/init.d/buildmaster.myinstance"
+ ewarn " rc-update add buildmaster.myinstance default"
+ ewarn " /etc/init.d/buildmaster.myinstance start"
+ ewarn "Systems using systemd can do the following:"
+ ewarn " systemctl enable buildmaster@myinstance.service"
+ ewarn " systemctl enable buildmaster.target"
+ ewarn " systemctl start buildmaster.target"
+ elog
+ elog "Upstream recommends the following when upgrading:"
+ elog "Each time you install a new version of Buildbot, you should run the"
+ elog "\"buildbot upgrade-master\" command on each of your pre-existing build masters."
+ elog "This will add files and fix (or at least detect) incompatibilities between"
+ elog "your old config and the new code."
+ fi
+ elog
+ elog "In order to create a new instance of buildmaster, execute:"
+ elog " emerge --config =${CATEGORY}/${PF}"
+}
+
+pkg_config() {
+ local buildmaster_path="/var/lib/buildmaster"
+ einfo "This will prepare a new buildmaster instance in ${buildmaster_path}."
+ einfo "Press Control-C to abort."
+
+ einfo "Enter the name for the new instance: "
+ read instance_name
+ [[ -z "${instance_name}" ]] && die "Invalid instance name"
+
+ local instance_path="${buildmaster_path}/${instance_name}"
+ if [[ -e "${instance_path}" ]]; then
+ eerror "The instance with the specified name already exists:"
+ eerror "${instance_path}"
+ die "Instance already exists"
+ fi
+
+ local buildbot="/usr/bin/buildbot"
+ if [[ ! -d "${buildmaster_path}" ]]; then
+ mkdir --parents "${buildmaster_path}" || die "Unable to create directory ${buildmaster_path}"
+ fi
+ "${buildbot}" create-master "${instance_path}" &>/dev/null || die "Creating instance failed"
+ chown --recursive buildbot "${instance_path}" || die "Setting permissions for instance failed"
+ mv "${instance_path}/master.cfg.sample" "${instance_path}/master.cfg" \
+ || die "Moving sample configuration failed"
+ ln --symbolic --relative "/etc/init.d/buildmaster" "/etc/init.d/buildmaster.${instance_name}" \
+ || die "Unable to create link to init file"
+
+ einfo "Successfully created a buildmaster instance at ${instance_path}."
+ einfo "To change the default settings edit the master.cfg file in this directory."
+}
diff --git a/dev-util/buildbot/buildbot-0.9.10.ebuild b/dev-util/buildbot/buildbot-0.9.10.ebuild
new file mode 100644
index 000000000000..0f493ccb8ffc
--- /dev/null
+++ b/dev-util/buildbot/buildbot-0.9.10.ebuild
@@ -0,0 +1,211 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+PYTHON_REQ_USE="sqlite"
+PYTHON_COMPAT=( python2_7 python3_5 )
+
+EGIT_REPO_URI="https://github.com/buildbot/${PN}.git"
+
+[[ ${PV} == *9999 ]] && inherit git-r3
+inherit readme.gentoo-r1 user systemd distutils-r1
+
+MY_PV="${PV/_p/.post}"
+MY_P="${PN}-${MY_PV}"
+
+DESCRIPTION="BuildBot build automation system"
+HOMEPAGE="https://buildbot.net/ https://github.com/buildbot/buildbot https://pypi.python.org/pypi/buildbot"
+[[ ${PV} == *9999 ]] || SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+if [[ ${PV} == *9999 ]]; then
+ KEYWORDS=""
+else
+ KEYWORDS="~amd64"
+fi
+
+IUSE="crypt doc examples irc test"
+
+RDEPEND="
+ >=dev-python/jinja-2.1[${PYTHON_USEDEP}]
+ >=dev-python/twisted-17.5.0[${PYTHON_USEDEP}]
+ >=dev-python/autobahn-0.16.0[${PYTHON_USEDEP}]
+ >=dev-python/sqlalchemy-0.8[${PYTHON_USEDEP}]
+ >=dev-python/sqlalchemy-migrate-0.9[${PYTHON_USEDEP}]
+ crypt? (
+ >=dev-python/twisted-17.5.0[${PYTHON_USEDEP},crypt]
+ >=dev-python/pyopenssl-16.0.0[${PYTHON_USEDEP}]
+ dev-python/idna[${PYTHON_USEDEP}]
+ dev-python/service_identity[${PYTHON_USEDEP}]
+ )
+ irc? (
+ dev-python/txrequests[${PYTHON_USEDEP}]
+ )
+ dev-python/future[${PYTHON_USEDEP}]
+ >=dev-python/python-dateutil-1.5[${PYTHON_USEDEP}]
+ >=dev-python/txaio-2.2.2[${PYTHON_USEDEP}]
+ dev-python/pyjwt[${PYTHON_USEDEP}]
+ >=dev-python/zope-interface-4.1.1[${PYTHON_USEDEP}]
+ ~dev-util/buildbot-worker-${PV}[${PYTHON_USEDEP}]
+"
+DEPEND="${RDEPEND}
+ >=dev-python/setuptools-21.2.1[${PYTHON_USEDEP}]
+ doc? (
+ >=dev-python/sphinx-1.4.3[${PYTHON_USEDEP}]
+ dev-python/sphinxcontrib-blockdiag[${PYTHON_USEDEP}]
+ dev-python/sphinxcontrib-spelling[${PYTHON_USEDEP}]
+ dev-python/pyenchant[${PYTHON_USEDEP}]
+ >=dev-python/docutils-0.8[${PYTHON_USEDEP}]
+ <dev-python/docutils-0.13.0[${PYTHON_USEDEP}]
+ dev-python/sphinx-jinja[${PYTHON_USEDEP}]
+ dev-python/ramlfications[${PYTHON_USEDEP}]
+ )
+ test? (
+ >=dev-python/python-dateutil-1.5[${PYTHON_USEDEP}]
+ >=dev-python/mock-2.0.0[${PYTHON_USEDEP}]
+ dev-python/moto[${PYTHON_USEDEP}]
+ dev-python/boto3[${PYTHON_USEDEP}]
+ dev-python/ramlfications[${PYTHON_USEDEP}]
+ dev-python/pyjade[${PYTHON_USEDEP}]
+ dev-python/txgithub[${PYTHON_USEDEP}]
+ dev-python/txrequests[${PYTHON_USEDEP}]
+ dev-python/lz4[${PYTHON_USEDEP}]
+ dev-python/treq[${PYTHON_USEDEP}]
+ dev-python/setuptools_trial[${PYTHON_USEDEP}]
+ ~dev-util/buildbot-worker-${PV}[${PYTHON_USEDEP}]
+ )"
+
+S=${WORKDIR}/${MY_P}
+[[ ${PV} == *9999 ]] && S=${S}/master
+
+pkg_setup() {
+ enewuser buildbot
+
+ DOC_CONTENTS="The \"buildbot\" user and the \"buildmaster\" init script has been added
+ to support starting buildbot through Gentoo's init system. To use this,
+ execute \"emerge --config =${CATEGORY}/${PF}\" to create a new instance.
+ The scripts can run as a different user if desired."
+}
+
+python_prepare_all() {
+ # Disable distribution version test.
+ sed \
+ -e 's/self.assertNotIn("unknown", distro\[1\])//' \
+ -i buildbot/test/unit/test_buildbot_net_usage_data.py || die
+
+ distutils-r1_python_prepare_all
+}
+
+src_compile() {
+ distutils-r1_src_compile
+
+ if use doc; then
+ einfo "Generation of documentation"
+ pushd docs > /dev/null
+ #'man' target is currently broken
+ emake html
+ popd > /dev/null
+ fi
+}
+
+src_install() {
+ distutils-r1_src_install
+
+ doman docs/buildbot.1
+
+ if use doc; then
+ dohtml -r docs/_build/html/
+ # TODO: install man pages
+ fi
+
+ if use examples; then
+ insinto /usr/share/doc/${PF}
+ doins -r docker docs/examples
+ fi
+
+ newconfd "${FILESDIR}/buildmaster.confd" buildmaster
+ newinitd "${FILESDIR}/buildmaster.initd" buildmaster
+ systemd_dounit "${FILESDIR}/buildmaster.target"
+ systemd_newunit "${FILESDIR}/buildmaster_at.service" "buildmaster@.service"
+ systemd_install_serviced "${FILESDIR}/buildmaster_at.service.conf" "buildmaster@.service"
+
+ readme.gentoo_create_doc
+}
+
+python_test() {
+ distutils_install_for_testing
+
+ esetup.py test || die "Tests failed under ${EPYTHON}"
+}
+
+pkg_postinst() {
+ readme.gentoo_print_elog
+
+ if [[ -n ${REPLACING_VERSIONS} ]]; then
+ ewarn
+ ewarn "Starting with buildbot-0.8.12-r2, more than one instance of buildmaster"
+ ewarn "can be run simultaneously. Note that \"BASEDIR\" in the buildbot configuration file"
+ ewarn "is now the common base directory for all instances. If you are migrating from an older"
+ ewarn "version, make sure that you copy the current contents of \"BASEDIR\" to a subdirectory."
+ ewarn "The name of the subdirectory corresponds to the name of the buildmaster instance."
+ ewarn "In order to start the service running OpenRC-based systems need to link to the init file:"
+ ewarn " ln --symbolic --relative /etc/init.d/buildmaster /etc/init.d/buildmaster.myinstance"
+ ewarn " rc-update add buildmaster.myinstance default"
+ ewarn " /etc/init.d/buildmaster.myinstance start"
+ ewarn "Systems using systemd can do the following:"
+ ewarn " systemctl enable buildmaster@myinstance.service"
+ ewarn " systemctl enable buildmaster.target"
+ ewarn " systemctl start buildmaster.target"
+ elog
+ elog "Upstream recommends the following when upgrading:"
+ elog "Each time you install a new version of Buildbot, you should run the"
+ elog "\"buildbot upgrade-master\" command on each of your pre-existing build masters."
+ elog "This will add files and fix (or at least detect) incompatibilities between"
+ elog "your old config and the new code."
+ fi
+ elog
+ elog "In order to create a new instance of buildmaster, execute:"
+ elog " emerge --config =${CATEGORY}/${PF}"
+}
+
+pkg_config() {
+ local buildmaster_path="/var/lib/buildmaster"
+ local log_path="/var/log/buildmaster"
+
+ einfo "This will prepare a new buildmaster instance in ${buildmaster_path}."
+ einfo "Press Control-C to abort."
+
+ einfo "Enter the name for the new instance: "
+ read instance_name
+ [[ -z "${instance_name}" ]] && die "Invalid instance name"
+
+ local instance_path="${buildmaster_path}/${instance_name}"
+ local instance_log_path="${log_path}/${instance_name}"
+
+ if [[ -e "${instance_path}" ]]; then
+ eerror "The instance with the specified name already exists:"
+ eerror "${instance_path}"
+ die "Instance already exists"
+ fi
+
+ local buildbot="/usr/bin/buildbot"
+ if [[ ! -d "${buildmaster_path}" ]]; then
+ mkdir --parents "${buildmaster_path}" || die "Unable to create directory ${buildmaster_path}"
+ fi
+ "${buildbot}" create-master "${instance_path}" &>/dev/null || die "Creating instance failed"
+ chown --recursive buildbot "${instance_path}" || die "Setting permissions for instance failed"
+ mv "${instance_path}/master.cfg.sample" "${instance_path}/master.cfg" \
+ || die "Moving sample configuration failed"
+ ln --symbolic --relative "/etc/init.d/buildmaster" "/etc/init.d/buildmaster.${instance_name}" \
+ || die "Unable to create link to init file"
+
+ if [[ ! -d "${instance_log_path}" ]]; then
+ mkdir --parents "${instance_log_path}" || die "Unable to create directory ${instance_log_path}"
+ fi
+ ln --symbolic --relative "${instance_log_path}/twistd.log" "${instance_path}/twistd.log" \
+ || die "Unable to create link to log file"
+
+ einfo "Successfully created a buildmaster instance at ${instance_path}."
+ einfo "To change the default settings edit the master.cfg file in this directory."
+}
diff --git a/dev-util/buildbot/buildbot-0.9.11.ebuild b/dev-util/buildbot/buildbot-0.9.11.ebuild
new file mode 100644
index 000000000000..694b31c8f116
--- /dev/null
+++ b/dev-util/buildbot/buildbot-0.9.11.ebuild
@@ -0,0 +1,202 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+PYTHON_REQ_USE="sqlite"
+PYTHON_COMPAT=( python2_7 python3_5 )
+
+EGIT_REPO_URI="https://github.com/buildbot/${PN}.git"
+
+[[ ${PV} == *9999 ]] && inherit git-r3
+inherit readme.gentoo-r1 user systemd distutils-r1
+
+MY_PV="${PV/_p/p}"
+MY_P="${PN}-${MY_PV}"
+
+DESCRIPTION="BuildBot build automation system"
+HOMEPAGE="https://buildbot.net/ https://github.com/buildbot/buildbot https://pypi.python.org/pypi/buildbot"
+[[ ${PV} == *9999 ]] || SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+if [[ ${PV} == *9999 ]]; then
+ KEYWORDS=""
+else
+ KEYWORDS="~amd64"
+fi
+
+IUSE="crypt doc examples irc test"
+
+RDEPEND="
+ >=dev-python/jinja-2.1[${PYTHON_USEDEP}]
+ >=dev-python/twisted-17.5.0[${PYTHON_USEDEP}]
+ >=dev-python/autobahn-0.16.0[${PYTHON_USEDEP}]
+ >=dev-python/sqlalchemy-0.8[${PYTHON_USEDEP}]
+ >=dev-python/sqlalchemy-migrate-0.9[${PYTHON_USEDEP}]
+ dev-python/future[${PYTHON_USEDEP}]
+ >=dev-python/python-dateutil-1.5[${PYTHON_USEDEP}]
+ >=dev-python/txaio-2.2.2[${PYTHON_USEDEP}]
+ dev-python/pyjwt[${PYTHON_USEDEP}]
+ >=dev-python/zope-interface-4.1.1[${PYTHON_USEDEP}]
+ ~dev-util/buildbot-worker-${PV}[${PYTHON_USEDEP}]
+ crypt? (
+ >=dev-python/twisted-17.5.0[${PYTHON_USEDEP},crypt]
+ >=dev-python/pyopenssl-16.0.0[${PYTHON_USEDEP}]
+ dev-python/idna[${PYTHON_USEDEP}]
+ dev-python/service_identity[${PYTHON_USEDEP}]
+ )
+ irc? (
+ dev-python/txrequests[${PYTHON_USEDEP}]
+ )
+"
+DEPEND="${RDEPEND}
+ >=dev-python/setuptools-21.2.1[${PYTHON_USEDEP}]
+ doc? (
+ >=dev-python/sphinx-1.4.3[${PYTHON_USEDEP}]
+ dev-python/sphinxcontrib-blockdiag[${PYTHON_USEDEP}]
+ dev-python/sphinxcontrib-spelling[${PYTHON_USEDEP}]
+ dev-python/pyenchant[${PYTHON_USEDEP}]
+ >=dev-python/docutils-0.8[${PYTHON_USEDEP}]
+ <dev-python/docutils-0.13.0[${PYTHON_USEDEP}]
+ dev-python/sphinx-jinja[${PYTHON_USEDEP}]
+ dev-python/ramlfications[${PYTHON_USEDEP}]
+ )
+ test? (
+ >=dev-python/python-dateutil-1.5[${PYTHON_USEDEP}]
+ >=dev-python/mock-2.0.0[${PYTHON_USEDEP}]
+ dev-python/moto[${PYTHON_USEDEP}]
+ dev-python/boto3[${PYTHON_USEDEP}]
+ dev-python/ramlfications[${PYTHON_USEDEP}]
+ dev-python/pyjade[${PYTHON_USEDEP}]
+ dev-python/txgithub[${PYTHON_USEDEP}]
+ dev-python/txrequests[${PYTHON_USEDEP}]
+ dev-python/lz4[${PYTHON_USEDEP}]
+ dev-python/treq[${PYTHON_USEDEP}]
+ dev-python/setuptools_trial[${PYTHON_USEDEP}]
+ ~dev-util/buildbot-worker-${PV}[${PYTHON_USEDEP}]
+ )"
+
+S=${WORKDIR}/${MY_P}
+[[ ${PV} == *9999 ]] && S=${S}/master
+
+pkg_setup() {
+ enewuser buildbot
+
+ DOC_CONTENTS="The \"buildbot\" user and the \"buildmaster\" init script has been added
+ to support starting buildbot through Gentoo's init system. To use this,
+ execute \"emerge --config =${CATEGORY}/${PF}\" to create a new instance.
+ The scripts can run as a different user if desired."
+}
+
+src_compile() {
+ distutils-r1_src_compile
+
+ if use doc; then
+ einfo "Generation of documentation"
+ pushd docs > /dev/null
+ #'man' target is currently broken
+ emake html
+ popd > /dev/null
+ fi
+}
+
+src_install() {
+ distutils-r1_src_install
+
+ doman docs/buildbot.1
+
+ if use doc; then
+ dohtml -r docs/_build/html/
+ # TODO: install man pages
+ fi
+
+ if use examples; then
+ insinto /usr/share/doc/${PF}
+ doins -r docker docs/examples
+ fi
+
+ newconfd "${FILESDIR}/buildmaster.confd" buildmaster
+ newinitd "${FILESDIR}/buildmaster.initd" buildmaster
+ systemd_dounit "${FILESDIR}/buildmaster.target"
+ systemd_newunit "${FILESDIR}/buildmaster_at.service" "buildmaster@.service"
+ systemd_install_serviced "${FILESDIR}/buildmaster_at.service.conf" "buildmaster@.service"
+
+ readme.gentoo_create_doc
+}
+
+python_test() {
+ distutils_install_for_testing
+
+ esetup.py test || die "Tests failed under ${EPYTHON}"
+}
+
+pkg_postinst() {
+ readme.gentoo_print_elog
+
+ if [[ -n ${REPLACING_VERSIONS} ]]; then
+ ewarn
+ ewarn "Starting with buildbot-0.8.12-r2, more than one instance of buildmaster"
+ ewarn "can be run simultaneously. Note that \"BASEDIR\" in the buildbot configuration file"
+ ewarn "is now the common base directory for all instances. If you are migrating from an older"
+ ewarn "version, make sure that you copy the current contents of \"BASEDIR\" to a subdirectory."
+ ewarn "The name of the subdirectory corresponds to the name of the buildmaster instance."
+ ewarn "In order to start the service running OpenRC-based systems need to link to the init file:"
+ ewarn " ln --symbolic --relative /etc/init.d/buildmaster /etc/init.d/buildmaster.myinstance"
+ ewarn " rc-update add buildmaster.myinstance default"
+ ewarn " /etc/init.d/buildmaster.myinstance start"
+ ewarn "Systems using systemd can do the following:"
+ ewarn " systemctl enable buildmaster@myinstance.service"
+ ewarn " systemctl enable buildmaster.target"
+ ewarn " systemctl start buildmaster.target"
+ elog
+ elog "Upstream recommends the following when upgrading:"
+ elog "Each time you install a new version of Buildbot, you should run the"
+ elog "\"buildbot upgrade-master\" command on each of your pre-existing build masters."
+ elog "This will add files and fix (or at least detect) incompatibilities between"
+ elog "your old config and the new code."
+ fi
+ elog
+ elog "In order to create a new instance of buildmaster, execute:"
+ elog " emerge --config =${CATEGORY}/${PF}"
+}
+
+pkg_config() {
+ local buildmaster_path="/var/lib/buildmaster"
+ local log_path="/var/log/buildmaster"
+
+ einfo "This will prepare a new buildmaster instance in ${buildmaster_path}."
+ einfo "Press Control-C to abort."
+
+ einfo "Enter the name for the new instance: "
+ read instance_name
+ [[ -z "${instance_name}" ]] && die "Invalid instance name"
+
+ local instance_path="${buildmaster_path}/${instance_name}"
+ local instance_log_path="${log_path}/${instance_name}"
+
+ if [[ -e "${instance_path}" ]]; then
+ eerror "The instance with the specified name already exists:"
+ eerror "${instance_path}"
+ die "Instance already exists"
+ fi
+
+ local buildbot="/usr/bin/buildbot"
+ if [[ ! -d "${buildmaster_path}" ]]; then
+ mkdir --parents "${buildmaster_path}" || die "Unable to create directory ${buildmaster_path}"
+ fi
+ "${buildbot}" create-master "${instance_path}" &>/dev/null || die "Creating instance failed"
+ chown --recursive buildbot "${instance_path}" || die "Setting permissions for instance failed"
+ mv "${instance_path}/master.cfg.sample" "${instance_path}/master.cfg" \
+ || die "Moving sample configuration failed"
+ ln --symbolic --relative "/etc/init.d/buildmaster" "/etc/init.d/buildmaster.${instance_name}" \
+ || die "Unable to create link to init file"
+
+ if [[ ! -d "${instance_log_path}" ]]; then
+ mkdir --parents "${instance_log_path}" || die "Unable to create directory ${instance_log_path}"
+ fi
+ ln --symbolic --relative "${instance_log_path}/twistd.log" "${instance_path}/twistd.log" \
+ || die "Unable to create link to log file"
+
+ einfo "Successfully created a buildmaster instance at ${instance_path}."
+ einfo "To change the default settings edit the master.cfg file in this directory."
+}
diff --git a/dev-util/buildbot/buildbot-0.9.4.ebuild b/dev-util/buildbot/buildbot-0.9.4.ebuild
new file mode 100644
index 000000000000..4ee67e152c9c
--- /dev/null
+++ b/dev-util/buildbot/buildbot-0.9.4.ebuild
@@ -0,0 +1,216 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+PYTHON_REQ_USE="sqlite"
+PYTHON_COMPAT=( python2_7 )
+
+EGIT_REPO_URI="https://github.com/buildbot/${PN}.git"
+
+inherit readme.gentoo-r1 user systemd distutils-r1
+
+MY_PV="${PV/_p/p}"
+MY_P="${PN}-${MY_PV}"
+
+DESCRIPTION="BuildBot build automation system"
+HOMEPAGE="https://buildbot.net/ https://github.com/buildbot/buildbot https://pypi.python.org/pypi/buildbot"
+SRC_URI="
+ mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz
+ https://dev.gentoo.org/~dolsen/distfiles/buildbot-0.9.4.docs.tar.xz
+"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+
+IUSE="crypt doc examples irc mail manhole test"
+
+RDEPEND=">=dev-python/jinja-2.1[${PYTHON_USEDEP}]
+ || (
+ >=dev-python/twisted-16.0.0[${PYTHON_USEDEP}]
+ >=dev-python/twisted-web-14.0.1[${PYTHON_USEDEP}]
+ )
+ >=dev-python/autobahn-0.16.0[${PYTHON_USEDEP}]
+ >=dev-python/sqlalchemy-0.8[${PYTHON_USEDEP}]
+ >=dev-python/sqlalchemy-migrate-0.9[${PYTHON_USEDEP}]
+ crypt? (
+ >=dev-python/pyopenssl-0.13[${PYTHON_USEDEP}]
+ dev-python/idna[${PYTHON_USEDEP}]
+ dev-python/service_identity[${PYTHON_USEDEP}]
+ )
+ irc? (
+ dev-python/txrequests[${PYTHON_USEDEP}]
+ || ( >=dev-python/twisted-16.0.0[${PYTHON_USEDEP}]
+ >=dev-python/twisted-words-14.0.1[${PYTHON_USEDEP}]
+ )
+ )
+ mail? (
+ || ( >=dev-python/twisted-16.0.0[${PYTHON_USEDEP}]
+ >=dev-python/twisted-mail-14.0.1[${PYTHON_USEDEP}]
+ )
+ )
+ manhole? (
+ || ( >=dev-python/twisted-16.0.0[${PYTHON_USEDEP}]
+ >=dev-python/twisted-conch-14.0.1[${PYTHON_USEDEP}]
+ )
+ )
+ dev-python/future[${PYTHON_USEDEP}]
+ >=dev-python/python-dateutil-1.5[${PYTHON_USEDEP}]
+ >=dev-python/txaio-2.2.2[${PYTHON_USEDEP}]
+ dev-python/pyjwt[${PYTHON_USEDEP}]
+ "
+DEPEND="${RDEPEND}
+ >=dev-python/setuptools-21.2.1[${PYTHON_USEDEP}]
+ doc? (
+ >=dev-python/sphinx-1.4.3[${PYTHON_USEDEP}]
+ dev-python/sphinxcontrib-blockdiag[${PYTHON_USEDEP}]
+ dev-python/sphinxcontrib-spelling[${PYTHON_USEDEP}]
+ dev-python/pyenchant[${PYTHON_USEDEP}]
+ >=dev-python/docutils-0.8[${PYTHON_USEDEP}]
+ dev-python/sphinx-jinja[${PYTHON_USEDEP}]
+ dev-python/ramlfications[${PYTHON_USEDEP}]
+ )
+ test? (
+ >=dev-python/python-dateutil-1.5[${PYTHON_USEDEP}]
+ >=dev-python/mock-2.0.0[${PYTHON_USEDEP}]
+ || (
+ >=dev-python/twisted-16.0.0[${PYTHON_USEDEP}]
+ (
+ >=dev-python/twisted-mail-14.0.1[${PYTHON_USEDEP}]
+ >=dev-python/twisted-web-14.0.1[${PYTHON_USEDEP}]
+ >=dev-python/twisted-words-14.0.1[${PYTHON_USEDEP}]
+ )
+ )
+ dev-python/moto[${PYTHON_USEDEP}]
+ dev-python/boto3[${PYTHON_USEDEP}]
+ dev-python/ramlfications[${PYTHON_USEDEP}]
+ dev-python/pyjade[${PYTHON_USEDEP}]
+ dev-python/txgithub[${PYTHON_USEDEP}]
+ dev-python/txrequests[${PYTHON_USEDEP}]
+ )"
+
+S=${WORKDIR}/${MY_P}
+
+src_unpack() {
+ unpack ${MY_P}.tar.gz
+ cd ${MY_P}
+ unpack buildbot-0.9.4.docs.tar.xz
+}
+
+pkg_setup() {
+ enewuser buildbot
+
+ DOC_CONTENTS="The \"buildbot\" user and the \"buildmaster\" init script has been added
+ to support starting buildbot through Gentoo's init system. To use this,
+ execute \"emerge --config =${CATEGORY}/${PF}\" to create a new instance.
+ The scripts can run as a different user if desired."
+}
+
+python_prepare_all() {
+ if use doc; then
+ epatch "${FILESDIR}/buildbot-0.9.4.docs.patch"
+ fi
+ distutils-r1_python_prepare_all
+}
+
+src_compile() {
+ distutils-r1_src_compile
+
+ if use doc; then
+ einfo "Generation of documentation"
+ pushd docs > /dev/null
+ EPYTHON="python2.7" emake html
+ popd > /dev/null
+ fi
+}
+
+src_install() {
+ distutils-r1_src_install
+
+ doman docs/buildbot.1
+
+ if use doc; then
+ dohtml -r docs/_build/html/
+ # TODO: install man pages
+ fi
+
+ if use examples; then
+ insinto /usr/share/doc/${PF}
+ doins -r contrib docs/examples
+ fi
+
+ newconfd "${FILESDIR}/buildmaster.confd" buildmaster
+ newinitd "${FILESDIR}/buildmaster.initd" buildmaster
+ systemd_dounit "${FILESDIR}/buildmaster.target"
+ systemd_newunit "${FILESDIR}/buildmaster_at.service" "buildmaster@.service"
+ systemd_install_serviced "${FILESDIR}/buildmaster_at.service.conf" "buildmaster@.service"
+
+ readme.gentoo_create_doc
+}
+
+python_test() {
+ distutils_install_for_testing
+
+ esetup.py test || die "Tests failed under ${EPYTHON}"
+}
+
+pkg_postinst() {
+ readme.gentoo_print_elog
+
+ if [[ -n ${REPLACING_VERSIONS} ]]; then
+ ewarn
+ ewarn "Starting with buildbot-0.8.12-r2, more than one instance of buildmaster"
+ ewarn "can be run simultaneously. Note that \"BASEDIR\" in the buildbot configuration file"
+ ewarn "is now the common base directory for all instances. If you are migrating from an older"
+ ewarn "version, make sure that you copy the current contents of \"BASEDIR\" to a subdirectory."
+ ewarn "The name of the subdirectory corresponds to the name of the buildmaster instance."
+ ewarn "In order to start the service running OpenRC-based systems need to link to the init file:"
+ ewarn " ln --symbolic --relative /etc/init.d/buildmaster /etc/init.d/buildmaster.myinstance"
+ ewarn " rc-update add buildmaster.myinstance default"
+ ewarn " /etc/init.d/buildmaster.myinstance start"
+ ewarn "Systems using systemd can do the following:"
+ ewarn " systemctl enable buildmaster@myinstance.service"
+ ewarn " systemctl enable buildmaster.target"
+ ewarn " systemctl start buildmaster.target"
+ elog
+ elog "Upstream recommends the following when upgrading:"
+ elog "Each time you install a new version of Buildbot, you should run the"
+ elog "\"buildbot upgrade-master\" command on each of your pre-existing build masters."
+ elog "This will add files and fix (or at least detect) incompatibilities between"
+ elog "your old config and the new code."
+ fi
+ elog
+ elog "In order to create a new instance of buildmaster, execute:"
+ elog " emerge --config =${CATEGORY}/${PF}"
+}
+
+pkg_config() {
+ local buildmaster_path="/var/lib/buildmaster"
+ einfo "This will prepare a new buildmaster instance in ${buildmaster_path}."
+ einfo "Press Control-C to abort."
+
+ einfo "Enter the name for the new instance: "
+ read instance_name
+ [[ -z "${instance_name}" ]] && die "Invalid instance name"
+
+ local instance_path="${buildmaster_path}/${instance_name}"
+ if [[ -e "${instance_path}" ]]; then
+ eerror "The instance with the specified name already exists:"
+ eerror "${instance_path}"
+ die "Instance already exists"
+ fi
+
+ local buildbot="/usr/bin/buildbot"
+ if [[ ! -d "${buildmaster_path}" ]]; then
+ mkdir --parents "${buildmaster_path}" || die "Unable to create directory ${buildmaster_path}"
+ fi
+ "${buildbot}" create-master "${instance_path}" &>/dev/null || die "Creating instance failed"
+ chown --recursive buildbot "${instance_path}" || die "Setting permissions for instance failed"
+ mv "${instance_path}/master.cfg.sample" "${instance_path}/master.cfg" \
+ || die "Moving sample configuration failed"
+ ln --symbolic --relative "/etc/init.d/buildmaster" "/etc/init.d/buildmaster.${instance_name}" \
+ || die "Unable to create link to init file"
+
+ einfo "Successfully created a buildmaster instance at ${instance_path}."
+ einfo "To change the default settings edit the master.cfg file in this directory."
+}
diff --git a/dev-util/buildbot/buildbot-0.9.7.ebuild b/dev-util/buildbot/buildbot-0.9.7.ebuild
new file mode 100644
index 000000000000..b82986878383
--- /dev/null
+++ b/dev-util/buildbot/buildbot-0.9.7.ebuild
@@ -0,0 +1,193 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+PYTHON_REQ_USE="sqlite"
+PYTHON_COMPAT=( python2_7 python3_5 )
+
+EGIT_REPO_URI="https://github.com/buildbot/${PN}.git"
+
+[[ ${PV} == *9999 ]] && inherit git-r3
+inherit readme.gentoo-r1 user systemd distutils-r1
+
+MY_PV="${PV/_p/p}"
+MY_P="${PN}-${MY_PV}"
+
+DESCRIPTION="BuildBot build automation system"
+HOMEPAGE="https://buildbot.net/ https://github.com/buildbot/buildbot https://pypi.python.org/pypi/buildbot"
+[[ ${PV} == *9999 ]] || SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+if [[ ${PV} == *9999 ]]; then
+ KEYWORDS=""
+else
+ KEYWORDS="~amd64"
+fi
+
+IUSE="crypt doc examples irc test"
+
+RDEPEND="
+ >=dev-python/jinja-2.1[${PYTHON_USEDEP}]
+ >=dev-python/twisted-17.1.0[${PYTHON_USEDEP}]
+ >=dev-python/autobahn-0.16.0[${PYTHON_USEDEP}]
+ >=dev-python/sqlalchemy-0.8[${PYTHON_USEDEP}]
+ >=dev-python/sqlalchemy-migrate-0.9[${PYTHON_USEDEP}]
+ crypt? (
+ >=dev-python/twisted-17.1.0[${PYTHON_USEDEP},crypt]
+ >=dev-python/pyopenssl-16.0.0[${PYTHON_USEDEP}]
+ dev-python/idna[${PYTHON_USEDEP}]
+ dev-python/service_identity[${PYTHON_USEDEP}]
+ )
+ irc? (
+ dev-python/txrequests[${PYTHON_USEDEP}]
+ )
+ dev-python/future[${PYTHON_USEDEP}]
+ >=dev-python/python-dateutil-1.5[${PYTHON_USEDEP}]
+ >=dev-python/txaio-2.2.2[${PYTHON_USEDEP}]
+ dev-python/pyjwt[${PYTHON_USEDEP}]
+ dev-python/distro[${PYTHON_USEDEP}]
+ >=dev-python/zope-interface-4.1.1[${PYTHON_USEDEP}]
+ ~dev-util/buildbot-worker-${PV}[${PYTHON_USEDEP}]
+"
+DEPEND="${RDEPEND}
+ >=dev-python/setuptools-21.2.1[${PYTHON_USEDEP}]
+ doc? (
+ >=dev-python/sphinx-1.4.3[${PYTHON_USEDEP}]
+ dev-python/sphinxcontrib-blockdiag[${PYTHON_USEDEP}]
+ dev-python/sphinxcontrib-spelling[${PYTHON_USEDEP}]
+ dev-python/pyenchant[${PYTHON_USEDEP}]
+ >=dev-python/docutils-0.8[${PYTHON_USEDEP}]
+ <dev-python/docutils-0.13.0[${PYTHON_USEDEP}]
+ dev-python/sphinx-jinja[${PYTHON_USEDEP}]
+ dev-python/ramlfications[${PYTHON_USEDEP}]
+ )
+ test? (
+ >=dev-python/python-dateutil-1.5[${PYTHON_USEDEP}]
+ >=dev-python/mock-2.0.0[${PYTHON_USEDEP}]
+ dev-python/moto[${PYTHON_USEDEP}]
+ dev-python/boto3[${PYTHON_USEDEP}]
+ dev-python/ramlfications[${PYTHON_USEDEP}]
+ dev-python/pyjade[${PYTHON_USEDEP}]
+ dev-python/txgithub[${PYTHON_USEDEP}]
+ dev-python/txrequests[${PYTHON_USEDEP}]
+ dev-python/lz4[${PYTHON_USEDEP}]
+ dev-python/treq[${PYTHON_USEDEP}]
+ ~dev-util/buildbot-worker-${PV}[${PYTHON_USEDEP}]
+ )"
+
+S=${WORKDIR}/${MY_P}
+[[ ${PV} == *9999 ]] && S=${S}/master
+
+pkg_setup() {
+ enewuser buildbot
+
+ DOC_CONTENTS="The \"buildbot\" user and the \"buildmaster\" init script has been added
+ to support starting buildbot through Gentoo's init system. To use this,
+ execute \"emerge --config =${CATEGORY}/${PF}\" to create a new instance.
+ The scripts can run as a different user if desired."
+}
+
+src_compile() {
+ distutils-r1_src_compile
+
+ if use doc; then
+ einfo "Generation of documentation"
+ pushd docs > /dev/null
+ #'man' target is currently broken
+ emake html
+ popd > /dev/null
+ fi
+}
+
+src_install() {
+ distutils-r1_src_install
+
+ doman docs/buildbot.1
+
+ if use doc; then
+ dohtml -r docs/_build/html/
+ # TODO: install man pages
+ fi
+
+ if use examples; then
+ insinto /usr/share/doc/${PF}
+ doins -r docker docs/examples
+ fi
+
+ newconfd "${FILESDIR}/buildmaster.confd" buildmaster
+ newinitd "${FILESDIR}/buildmaster.initd" buildmaster
+ systemd_dounit "${FILESDIR}/buildmaster.target"
+ systemd_newunit "${FILESDIR}/buildmaster_at.service" "buildmaster@.service"
+ systemd_install_serviced "${FILESDIR}/buildmaster_at.service.conf" "buildmaster@.service"
+
+ readme.gentoo_create_doc
+}
+
+python_test() {
+ distutils_install_for_testing
+ export TEST_HYPER=1
+
+ esetup.py test || die "Tests failed under ${EPYTHON}"
+}
+
+pkg_postinst() {
+ readme.gentoo_print_elog
+
+ if [[ -n ${REPLACING_VERSIONS} ]]; then
+ ewarn
+ ewarn "Starting with buildbot-0.8.12-r2, more than one instance of buildmaster"
+ ewarn "can be run simultaneously. Note that \"BASEDIR\" in the buildbot configuration file"
+ ewarn "is now the common base directory for all instances. If you are migrating from an older"
+ ewarn "version, make sure that you copy the current contents of \"BASEDIR\" to a subdirectory."
+ ewarn "The name of the subdirectory corresponds to the name of the buildmaster instance."
+ ewarn "In order to start the service running OpenRC-based systems need to link to the init file:"
+ ewarn " ln --symbolic --relative /etc/init.d/buildmaster /etc/init.d/buildmaster.myinstance"
+ ewarn " rc-update add buildmaster.myinstance default"
+ ewarn " /etc/init.d/buildmaster.myinstance start"
+ ewarn "Systems using systemd can do the following:"
+ ewarn " systemctl enable buildmaster@myinstance.service"
+ ewarn " systemctl enable buildmaster.target"
+ ewarn " systemctl start buildmaster.target"
+ elog
+ elog "Upstream recommends the following when upgrading:"
+ elog "Each time you install a new version of Buildbot, you should run the"
+ elog "\"buildbot upgrade-master\" command on each of your pre-existing build masters."
+ elog "This will add files and fix (or at least detect) incompatibilities between"
+ elog "your old config and the new code."
+ fi
+ elog
+ elog "In order to create a new instance of buildmaster, execute:"
+ elog " emerge --config =${CATEGORY}/${PF}"
+}
+
+pkg_config() {
+ local buildmaster_path="/var/lib/buildmaster"
+ einfo "This will prepare a new buildmaster instance in ${buildmaster_path}."
+ einfo "Press Control-C to abort."
+
+ einfo "Enter the name for the new instance: "
+ read instance_name
+ [[ -z "${instance_name}" ]] && die "Invalid instance name"
+
+ local instance_path="${buildmaster_path}/${instance_name}"
+ if [[ -e "${instance_path}" ]]; then
+ eerror "The instance with the specified name already exists:"
+ eerror "${instance_path}"
+ die "Instance already exists"
+ fi
+
+ local buildbot="/usr/bin/buildbot"
+ if [[ ! -d "${buildmaster_path}" ]]; then
+ mkdir --parents "${buildmaster_path}" || die "Unable to create directory ${buildmaster_path}"
+ fi
+ "${buildbot}" create-master "${instance_path}" &>/dev/null || die "Creating instance failed"
+ chown --recursive buildbot "${instance_path}" || die "Setting permissions for instance failed"
+ mv "${instance_path}/master.cfg.sample" "${instance_path}/master.cfg" \
+ || die "Moving sample configuration failed"
+ ln --symbolic --relative "/etc/init.d/buildmaster" "/etc/init.d/buildmaster.${instance_name}" \
+ || die "Unable to create link to init file"
+
+ einfo "Successfully created a buildmaster instance at ${instance_path}."
+ einfo "To change the default settings edit the master.cfg file in this directory."
+}
diff --git a/dev-util/buildbot/buildbot-0.9.8.ebuild b/dev-util/buildbot/buildbot-0.9.8.ebuild
new file mode 100644
index 000000000000..7ab416edb5b3
--- /dev/null
+++ b/dev-util/buildbot/buildbot-0.9.8.ebuild
@@ -0,0 +1,194 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+PYTHON_REQ_USE="sqlite"
+PYTHON_COMPAT=( python2_7 python3_5 )
+
+EGIT_REPO_URI="https://github.com/buildbot/${PN}.git"
+
+[[ ${PV} == *9999 ]] && inherit git-r3
+inherit readme.gentoo-r1 user systemd distutils-r1
+
+MY_PV="${PV/_p/p}"
+MY_P="${PN}-${MY_PV}"
+
+DESCRIPTION="BuildBot build automation system"
+HOMEPAGE="https://buildbot.net/ https://github.com/buildbot/buildbot https://pypi.python.org/pypi/buildbot"
+[[ ${PV} == *9999 ]] || SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+if [[ ${PV} == *9999 ]]; then
+ KEYWORDS=""
+else
+ KEYWORDS="~amd64"
+fi
+
+IUSE="crypt doc examples irc test"
+
+RDEPEND="
+ >=dev-python/jinja-2.1[${PYTHON_USEDEP}]
+ >=dev-python/twisted-17.5.0[${PYTHON_USEDEP}]
+ >=dev-python/autobahn-0.16.0[${PYTHON_USEDEP}]
+ >=dev-python/sqlalchemy-0.8[${PYTHON_USEDEP}]
+ >=dev-python/sqlalchemy-migrate-0.9[${PYTHON_USEDEP}]
+ crypt? (
+ >=dev-python/twisted-17.5.0[${PYTHON_USEDEP},crypt]
+ >=dev-python/pyopenssl-16.0.0[${PYTHON_USEDEP}]
+ dev-python/idna[${PYTHON_USEDEP}]
+ dev-python/service_identity[${PYTHON_USEDEP}]
+ )
+ irc? (
+ dev-python/txrequests[${PYTHON_USEDEP}]
+ )
+ dev-python/future[${PYTHON_USEDEP}]
+ >=dev-python/python-dateutil-1.5[${PYTHON_USEDEP}]
+ >=dev-python/txaio-2.2.2[${PYTHON_USEDEP}]
+ dev-python/pyjwt[${PYTHON_USEDEP}]
+ dev-python/distro[${PYTHON_USEDEP}]
+ >=dev-python/zope-interface-4.1.1[${PYTHON_USEDEP}]
+ ~dev-util/buildbot-worker-${PV}[${PYTHON_USEDEP}]
+"
+DEPEND="${RDEPEND}
+ >=dev-python/setuptools-21.2.1[${PYTHON_USEDEP}]
+ doc? (
+ >=dev-python/sphinx-1.4.3[${PYTHON_USEDEP}]
+ dev-python/sphinxcontrib-blockdiag[${PYTHON_USEDEP}]
+ dev-python/sphinxcontrib-spelling[${PYTHON_USEDEP}]
+ dev-python/pyenchant[${PYTHON_USEDEP}]
+ >=dev-python/docutils-0.8[${PYTHON_USEDEP}]
+ <dev-python/docutils-0.13.0[${PYTHON_USEDEP}]
+ dev-python/sphinx-jinja[${PYTHON_USEDEP}]
+ dev-python/ramlfications[${PYTHON_USEDEP}]
+ )
+ test? (
+ >=dev-python/python-dateutil-1.5[${PYTHON_USEDEP}]
+ >=dev-python/mock-2.0.0[${PYTHON_USEDEP}]
+ dev-python/moto[${PYTHON_USEDEP}]
+ dev-python/boto3[${PYTHON_USEDEP}]
+ dev-python/ramlfications[${PYTHON_USEDEP}]
+ dev-python/pyjade[${PYTHON_USEDEP}]
+ dev-python/txgithub[${PYTHON_USEDEP}]
+ dev-python/txrequests[${PYTHON_USEDEP}]
+ dev-python/lz4[${PYTHON_USEDEP}]
+ dev-python/treq[${PYTHON_USEDEP}]
+ dev-python/setuptools_trial[${PYTHON_USEDEP}]
+ ~dev-util/buildbot-worker-${PV}[${PYTHON_USEDEP}]
+ )"
+
+S=${WORKDIR}/${MY_P}
+[[ ${PV} == *9999 ]] && S=${S}/master
+
+pkg_setup() {
+ enewuser buildbot
+
+ DOC_CONTENTS="The \"buildbot\" user and the \"buildmaster\" init script has been added
+ to support starting buildbot through Gentoo's init system. To use this,
+ execute \"emerge --config =${CATEGORY}/${PF}\" to create a new instance.
+ The scripts can run as a different user if desired."
+}
+
+src_compile() {
+ distutils-r1_src_compile
+
+ if use doc; then
+ einfo "Generation of documentation"
+ pushd docs > /dev/null
+ #'man' target is currently broken
+ emake html
+ popd > /dev/null
+ fi
+}
+
+src_install() {
+ distutils-r1_src_install
+
+ doman docs/buildbot.1
+
+ if use doc; then
+ dohtml -r docs/_build/html/
+ # TODO: install man pages
+ fi
+
+ if use examples; then
+ insinto /usr/share/doc/${PF}
+ doins -r docker docs/examples
+ fi
+
+ newconfd "${FILESDIR}/buildmaster.confd" buildmaster
+ newinitd "${FILESDIR}/buildmaster.initd" buildmaster
+ systemd_dounit "${FILESDIR}/buildmaster.target"
+ systemd_newunit "${FILESDIR}/buildmaster_at.service" "buildmaster@.service"
+ systemd_install_serviced "${FILESDIR}/buildmaster_at.service.conf" "buildmaster@.service"
+
+ readme.gentoo_create_doc
+}
+
+python_test() {
+ distutils_install_for_testing
+ export TEST_HYPER=1
+
+ esetup.py test || die "Tests failed under ${EPYTHON}"
+}
+
+pkg_postinst() {
+ readme.gentoo_print_elog
+
+ if [[ -n ${REPLACING_VERSIONS} ]]; then
+ ewarn
+ ewarn "Starting with buildbot-0.8.12-r2, more than one instance of buildmaster"
+ ewarn "can be run simultaneously. Note that \"BASEDIR\" in the buildbot configuration file"
+ ewarn "is now the common base directory for all instances. If you are migrating from an older"
+ ewarn "version, make sure that you copy the current contents of \"BASEDIR\" to a subdirectory."
+ ewarn "The name of the subdirectory corresponds to the name of the buildmaster instance."
+ ewarn "In order to start the service running OpenRC-based systems need to link to the init file:"
+ ewarn " ln --symbolic --relative /etc/init.d/buildmaster /etc/init.d/buildmaster.myinstance"
+ ewarn " rc-update add buildmaster.myinstance default"
+ ewarn " /etc/init.d/buildmaster.myinstance start"
+ ewarn "Systems using systemd can do the following:"
+ ewarn " systemctl enable buildmaster@myinstance.service"
+ ewarn " systemctl enable buildmaster.target"
+ ewarn " systemctl start buildmaster.target"
+ elog
+ elog "Upstream recommends the following when upgrading:"
+ elog "Each time you install a new version of Buildbot, you should run the"
+ elog "\"buildbot upgrade-master\" command on each of your pre-existing build masters."
+ elog "This will add files and fix (or at least detect) incompatibilities between"
+ elog "your old config and the new code."
+ fi
+ elog
+ elog "In order to create a new instance of buildmaster, execute:"
+ elog " emerge --config =${CATEGORY}/${PF}"
+}
+
+pkg_config() {
+ local buildmaster_path="/var/lib/buildmaster"
+ einfo "This will prepare a new buildmaster instance in ${buildmaster_path}."
+ einfo "Press Control-C to abort."
+
+ einfo "Enter the name for the new instance: "
+ read instance_name
+ [[ -z "${instance_name}" ]] && die "Invalid instance name"
+
+ local instance_path="${buildmaster_path}/${instance_name}"
+ if [[ -e "${instance_path}" ]]; then
+ eerror "The instance with the specified name already exists:"
+ eerror "${instance_path}"
+ die "Instance already exists"
+ fi
+
+ local buildbot="/usr/bin/buildbot"
+ if [[ ! -d "${buildmaster_path}" ]]; then
+ mkdir --parents "${buildmaster_path}" || die "Unable to create directory ${buildmaster_path}"
+ fi
+ "${buildbot}" create-master "${instance_path}" &>/dev/null || die "Creating instance failed"
+ chown --recursive buildbot "${instance_path}" || die "Setting permissions for instance failed"
+ mv "${instance_path}/master.cfg.sample" "${instance_path}/master.cfg" \
+ || die "Moving sample configuration failed"
+ ln --symbolic --relative "/etc/init.d/buildmaster" "/etc/init.d/buildmaster.${instance_name}" \
+ || die "Unable to create link to init file"
+
+ einfo "Successfully created a buildmaster instance at ${instance_path}."
+ einfo "To change the default settings edit the master.cfg file in this directory."
+}
diff --git a/dev-util/buildbot/buildbot-9999.ebuild b/dev-util/buildbot/buildbot-9999.ebuild
new file mode 100644
index 000000000000..694b31c8f116
--- /dev/null
+++ b/dev-util/buildbot/buildbot-9999.ebuild
@@ -0,0 +1,202 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+PYTHON_REQ_USE="sqlite"
+PYTHON_COMPAT=( python2_7 python3_5 )
+
+EGIT_REPO_URI="https://github.com/buildbot/${PN}.git"
+
+[[ ${PV} == *9999 ]] && inherit git-r3
+inherit readme.gentoo-r1 user systemd distutils-r1
+
+MY_PV="${PV/_p/p}"
+MY_P="${PN}-${MY_PV}"
+
+DESCRIPTION="BuildBot build automation system"
+HOMEPAGE="https://buildbot.net/ https://github.com/buildbot/buildbot https://pypi.python.org/pypi/buildbot"
+[[ ${PV} == *9999 ]] || SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+if [[ ${PV} == *9999 ]]; then
+ KEYWORDS=""
+else
+ KEYWORDS="~amd64"
+fi
+
+IUSE="crypt doc examples irc test"
+
+RDEPEND="
+ >=dev-python/jinja-2.1[${PYTHON_USEDEP}]
+ >=dev-python/twisted-17.5.0[${PYTHON_USEDEP}]
+ >=dev-python/autobahn-0.16.0[${PYTHON_USEDEP}]
+ >=dev-python/sqlalchemy-0.8[${PYTHON_USEDEP}]
+ >=dev-python/sqlalchemy-migrate-0.9[${PYTHON_USEDEP}]
+ dev-python/future[${PYTHON_USEDEP}]
+ >=dev-python/python-dateutil-1.5[${PYTHON_USEDEP}]
+ >=dev-python/txaio-2.2.2[${PYTHON_USEDEP}]
+ dev-python/pyjwt[${PYTHON_USEDEP}]
+ >=dev-python/zope-interface-4.1.1[${PYTHON_USEDEP}]
+ ~dev-util/buildbot-worker-${PV}[${PYTHON_USEDEP}]
+ crypt? (
+ >=dev-python/twisted-17.5.0[${PYTHON_USEDEP},crypt]
+ >=dev-python/pyopenssl-16.0.0[${PYTHON_USEDEP}]
+ dev-python/idna[${PYTHON_USEDEP}]
+ dev-python/service_identity[${PYTHON_USEDEP}]
+ )
+ irc? (
+ dev-python/txrequests[${PYTHON_USEDEP}]
+ )
+"
+DEPEND="${RDEPEND}
+ >=dev-python/setuptools-21.2.1[${PYTHON_USEDEP}]
+ doc? (
+ >=dev-python/sphinx-1.4.3[${PYTHON_USEDEP}]
+ dev-python/sphinxcontrib-blockdiag[${PYTHON_USEDEP}]
+ dev-python/sphinxcontrib-spelling[${PYTHON_USEDEP}]
+ dev-python/pyenchant[${PYTHON_USEDEP}]
+ >=dev-python/docutils-0.8[${PYTHON_USEDEP}]
+ <dev-python/docutils-0.13.0[${PYTHON_USEDEP}]
+ dev-python/sphinx-jinja[${PYTHON_USEDEP}]
+ dev-python/ramlfications[${PYTHON_USEDEP}]
+ )
+ test? (
+ >=dev-python/python-dateutil-1.5[${PYTHON_USEDEP}]
+ >=dev-python/mock-2.0.0[${PYTHON_USEDEP}]
+ dev-python/moto[${PYTHON_USEDEP}]
+ dev-python/boto3[${PYTHON_USEDEP}]
+ dev-python/ramlfications[${PYTHON_USEDEP}]
+ dev-python/pyjade[${PYTHON_USEDEP}]
+ dev-python/txgithub[${PYTHON_USEDEP}]
+ dev-python/txrequests[${PYTHON_USEDEP}]
+ dev-python/lz4[${PYTHON_USEDEP}]
+ dev-python/treq[${PYTHON_USEDEP}]
+ dev-python/setuptools_trial[${PYTHON_USEDEP}]
+ ~dev-util/buildbot-worker-${PV}[${PYTHON_USEDEP}]
+ )"
+
+S=${WORKDIR}/${MY_P}
+[[ ${PV} == *9999 ]] && S=${S}/master
+
+pkg_setup() {
+ enewuser buildbot
+
+ DOC_CONTENTS="The \"buildbot\" user and the \"buildmaster\" init script has been added
+ to support starting buildbot through Gentoo's init system. To use this,
+ execute \"emerge --config =${CATEGORY}/${PF}\" to create a new instance.
+ The scripts can run as a different user if desired."
+}
+
+src_compile() {
+ distutils-r1_src_compile
+
+ if use doc; then
+ einfo "Generation of documentation"
+ pushd docs > /dev/null
+ #'man' target is currently broken
+ emake html
+ popd > /dev/null
+ fi
+}
+
+src_install() {
+ distutils-r1_src_install
+
+ doman docs/buildbot.1
+
+ if use doc; then
+ dohtml -r docs/_build/html/
+ # TODO: install man pages
+ fi
+
+ if use examples; then
+ insinto /usr/share/doc/${PF}
+ doins -r docker docs/examples
+ fi
+
+ newconfd "${FILESDIR}/buildmaster.confd" buildmaster
+ newinitd "${FILESDIR}/buildmaster.initd" buildmaster
+ systemd_dounit "${FILESDIR}/buildmaster.target"
+ systemd_newunit "${FILESDIR}/buildmaster_at.service" "buildmaster@.service"
+ systemd_install_serviced "${FILESDIR}/buildmaster_at.service.conf" "buildmaster@.service"
+
+ readme.gentoo_create_doc
+}
+
+python_test() {
+ distutils_install_for_testing
+
+ esetup.py test || die "Tests failed under ${EPYTHON}"
+}
+
+pkg_postinst() {
+ readme.gentoo_print_elog
+
+ if [[ -n ${REPLACING_VERSIONS} ]]; then
+ ewarn
+ ewarn "Starting with buildbot-0.8.12-r2, more than one instance of buildmaster"
+ ewarn "can be run simultaneously. Note that \"BASEDIR\" in the buildbot configuration file"
+ ewarn "is now the common base directory for all instances. If you are migrating from an older"
+ ewarn "version, make sure that you copy the current contents of \"BASEDIR\" to a subdirectory."
+ ewarn "The name of the subdirectory corresponds to the name of the buildmaster instance."
+ ewarn "In order to start the service running OpenRC-based systems need to link to the init file:"
+ ewarn " ln --symbolic --relative /etc/init.d/buildmaster /etc/init.d/buildmaster.myinstance"
+ ewarn " rc-update add buildmaster.myinstance default"
+ ewarn " /etc/init.d/buildmaster.myinstance start"
+ ewarn "Systems using systemd can do the following:"
+ ewarn " systemctl enable buildmaster@myinstance.service"
+ ewarn " systemctl enable buildmaster.target"
+ ewarn " systemctl start buildmaster.target"
+ elog
+ elog "Upstream recommends the following when upgrading:"
+ elog "Each time you install a new version of Buildbot, you should run the"
+ elog "\"buildbot upgrade-master\" command on each of your pre-existing build masters."
+ elog "This will add files and fix (or at least detect) incompatibilities between"
+ elog "your old config and the new code."
+ fi
+ elog
+ elog "In order to create a new instance of buildmaster, execute:"
+ elog " emerge --config =${CATEGORY}/${PF}"
+}
+
+pkg_config() {
+ local buildmaster_path="/var/lib/buildmaster"
+ local log_path="/var/log/buildmaster"
+
+ einfo "This will prepare a new buildmaster instance in ${buildmaster_path}."
+ einfo "Press Control-C to abort."
+
+ einfo "Enter the name for the new instance: "
+ read instance_name
+ [[ -z "${instance_name}" ]] && die "Invalid instance name"
+
+ local instance_path="${buildmaster_path}/${instance_name}"
+ local instance_log_path="${log_path}/${instance_name}"
+
+ if [[ -e "${instance_path}" ]]; then
+ eerror "The instance with the specified name already exists:"
+ eerror "${instance_path}"
+ die "Instance already exists"
+ fi
+
+ local buildbot="/usr/bin/buildbot"
+ if [[ ! -d "${buildmaster_path}" ]]; then
+ mkdir --parents "${buildmaster_path}" || die "Unable to create directory ${buildmaster_path}"
+ fi
+ "${buildbot}" create-master "${instance_path}" &>/dev/null || die "Creating instance failed"
+ chown --recursive buildbot "${instance_path}" || die "Setting permissions for instance failed"
+ mv "${instance_path}/master.cfg.sample" "${instance_path}/master.cfg" \
+ || die "Moving sample configuration failed"
+ ln --symbolic --relative "/etc/init.d/buildmaster" "/etc/init.d/buildmaster.${instance_name}" \
+ || die "Unable to create link to init file"
+
+ if [[ ! -d "${instance_log_path}" ]]; then
+ mkdir --parents "${instance_log_path}" || die "Unable to create directory ${instance_log_path}"
+ fi
+ ln --symbolic --relative "${instance_log_path}/twistd.log" "${instance_path}/twistd.log" \
+ || die "Unable to create link to log file"
+
+ einfo "Successfully created a buildmaster instance at ${instance_path}."
+ einfo "To change the default settings edit the master.cfg file in this directory."
+}
diff --git a/dev-util/buildbot/files/buildbot-0.9.4.docs.patch b/dev-util/buildbot/files/buildbot-0.9.4.docs.patch
new file mode 100644
index 000000000000..1a27713cb939
--- /dev/null
+++ b/dev-util/buildbot/files/buildbot-0.9.4.docs.patch
@@ -0,0 +1,130 @@
+diff --git a/docs/Makefile b/docs/Makefile
+index 55637302d..c4fde481e 100644
+--- a/docs/Makefile
++++ b/docs/Makefile
+@@ -24,7 +24,7 @@ PAPEROPT_a4 = -D latex_paper_size=a4
+ PAPEROPT_letter = -D latex_paper_size=letter
+ ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
+
+-.PHONY: help clean towncrier html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest
++.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest
+
+ help:
+ @echo "Please use \`make <target>' where <target> is one of"
+@@ -51,38 +51,38 @@ clean:
+ towncrier:
+ cd ../../; towncrier --draft |grep 'No significant changes.' || yes n | towncrier
+
+-html: conf.py towncrier
++html: conf.py
+ $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
+ @echo
+ @echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
+
+-dirhtml: conf.py towncrier
++dirhtml: conf.py
+ $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
+ @echo
+ @echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
+
+-singlehtml: conf.py towncrier
++singlehtml: conf.py
+ $(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml
+ @echo
+ @echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml."
+
+-pickle: conf.py towncrier
++pickle: conf.py
+ $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
+ @echo
+ @echo "Build finished; now you can process the pickle files."
+
+-json: conf.py towncrier
++json: conf.py
+ $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
+ @echo
+ @echo "Build finished; now you can process the JSON files."
+
+-htmlhelp: conf.py towncrier
++htmlhelp: conf.py
+ $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
+ @echo
+ @echo "Build finished; now you can run HTML Help Workshop with the" \
+ ".hhp project file in $(BUILDDIR)/htmlhelp."
+
+-qthelp: conf.py towncrier
++qthelp: conf.py
+ $(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
+ @echo
+ @echo "Build finished; now you can run "qcollectiongenerator" with the" \
+@@ -91,7 +91,7 @@ qthelp: conf.py towncrier
+ @echo "To view the help file:"
+ @echo "# assistant -collectionFile $(BUILDDIR)/qthelp/BuildbotTutorial.qhc"
+
+-devhelp: conf.py towncrier
++devhelp: conf.py
+ $(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
+ @echo
+ @echo "Build finished."
+@@ -100,52 +100,52 @@ devhelp: conf.py towncrier
+ @echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/BuildbotTutorial"
+ @echo "# devhelp"
+
+-epub: conf.py towncrier
++epub: conf.py
+ $(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub
+ @echo
+ @echo "Build finished. The epub file is in $(BUILDDIR)/epub."
+
+-latex: conf.py towncrier
++latex: conf.py
+ $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
+ @echo
+ @echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
+ @echo "Run \`make' in that directory to run these through (pdf)latex" \
+ "(use \`make latexpdf' here to do that automatically)."
+
+-latexpdf: conf.py towncrier
++latexpdf: conf.py
+ $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
+ @echo "Running LaTeX files through pdflatex..."
+ make -C $(BUILDDIR)/latex all-pdf
+ @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
+
+-text: conf.py towncrier
++text: conf.py
+ $(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
+ @echo
+ @echo "Build finished. The text files are in $(BUILDDIR)/text."
+
+-man: conf.py towncrier
++man: conf.py
+ $(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
+ @echo
+ @echo "Build finished. The manual pages are in $(BUILDDIR)/man."
+
+-changes: conf.py towncrier
++changes: conf.py
+ $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
+ @echo
+ @echo "The overview file is in $(BUILDDIR)/changes."
+
+-linkcheck: conf.py towncrier
++linkcheck: conf.py
+ $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
+ @echo
+ @echo "Link check complete; look for any errors in the above output " \
+ "or in $(BUILDDIR)/linkcheck/output.txt."
+
+-spelling: conf.py towncrier
++spelling: conf.py
+ $(SPHINXBUILD) -b spelling $(ALLSPHINXOPTS) $(BUILDDIR)/spelling
+ @echo
+ @echo "Spelling check complete; look for any errors in the above output " \
+ "or in $(BUILDDIR)/spelling/output.txt."
+
+-doctest: conf.py towncrier
++doctest: conf.py
+ $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
+ @echo "Testing of doctests in the sources finished, look at the " \
+ "results in $(BUILDDIR)/doctest/output.txt."
diff --git a/dev-util/buildbot/files/buildbot.service b/dev-util/buildbot/files/buildbot.service
new file mode 100644
index 000000000000..4581a13a0c48
--- /dev/null
+++ b/dev-util/buildbot/files/buildbot.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=buildbot master daemon
+After=local-fs.target network.target
+
+[Service]
+Type=forking
+User=buildbot
+WorkingDirectory=/var/lib/buildmaster
+# The following assume there is a 'master' directory
+# in $WorkingDirectory with the master configuration files
+ExecStartPre=/usr/bin/buildbot checkconfig master
+ExecStart=/usr/bin/buildbot start master
+ExecStop=/usr/bin/buildbot stop master
+
+[Install]
+WantedBy=multi-user.target
diff --git a/dev-util/buildbot/files/buildmaster.confd b/dev-util/buildbot/files/buildmaster.confd
new file mode 100644
index 000000000000..e489d66f9d4b
--- /dev/null
+++ b/dev-util/buildbot/files/buildmaster.confd
@@ -0,0 +1,10 @@
+
+# Path to the build master's basedir.
+BASEDIR=/var/lib/buildmaster
+
+# User account for the buildmaster.
+# The basedir should be owned by this user.
+USERNAME=buildbot
+
+# Extra options to pass to twistd.
+TWISTD_OPTS=""
diff --git a/dev-util/buildbot/files/buildmaster.initd b/dev-util/buildbot/files/buildmaster.initd
new file mode 100644
index 000000000000..29fd444d123f
--- /dev/null
+++ b/dev-util/buildbot/files/buildmaster.initd
@@ -0,0 +1,61 @@
+#!/sbin/openrc-run
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+extra_started_commands="reload"
+
+BUILDMASTER_NAME=${RC_SVCNAME:12}
+BUILDMASTER_PATH="${BASEDIR}/${BUILDMASTER_NAME}"
+
+depend() {
+ need net
+}
+
+checkconfig() {
+ if [ -z "${BUILDMASTER_NAME}" ]; then
+ eerror "Buildmaster name not defined. Please link buildmaster.foo to this file to start the buildmaster with the name \"foo\"."
+ return 1
+ fi
+ if [ -z "${BASEDIR}" ]; then
+ eerror "BASEDIR not set"
+ return 1
+ fi
+ if [ -z "${USERNAME}" ]; then
+ eerror "USERNAME not set"
+ return 1
+ fi
+ if [ ! -d "${BUILDMASTER_PATH}" ]; then
+ eerror "${BUILDMASTER_PATH} is not a directory"
+ return 1
+ fi
+ if [ ! -e "${BUILDMASTER_PATH}/buildbot.tac" ]; then
+ eerror "${BUILDMASTER_PATH} does not contain buildbot.tac"
+ return 1
+ fi
+}
+
+start() {
+ checkconfig || return 1
+ ebegin "Starting buildmaster in ${BUILDMASTER_PATH}"
+ start-stop-daemon --start -u "${USERNAME}" \
+ --pidfile "${BUILDMASTER_PATH}/buildmaster.pid" \
+ --exec /usr/bin/python2 -- /usr/bin/twistd \
+ --no_save \
+ --logfile="${BUILDMASTER_PATH}/twistd.log" \
+ --pidfile="${BUILDMASTER_PATH}/buildmaster.pid" \
+ --python="${BUILDMASTER_PATH}/buildbot.tac"
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping buildmaster in ${BUILDMASTER_PATH}"
+ start-stop-daemon --stop --pidfile "${BUILDMASTER_PATH}/buildmaster.pid"
+ eend $?
+}
+
+reload() {
+ ebegin "Reconfiguring buildmaster in ${BUILDMASTER_PATH}"
+ start-stop-daemon --signal HUP --pidfile \
+ "${BUILDMASTER_PATH}"/buildmaster.pid
+ eend $?
+}
diff --git a/dev-util/buildbot/files/buildmaster.target b/dev-util/buildbot/files/buildmaster.target
new file mode 100644
index 000000000000..2bf1a361e6b0
--- /dev/null
+++ b/dev-util/buildbot/files/buildmaster.target
@@ -0,0 +1,5 @@
+[Unit]
+Description=Buildbot target that allows to start or stop all buildmaster@*.service instances
+
+[Install]
+WantedBy=multi-user.target
diff --git a/dev-util/buildbot/files/buildmaster_at.service b/dev-util/buildbot/files/buildmaster_at.service
new file mode 100644
index 000000000000..88f9f5712002
--- /dev/null
+++ b/dev-util/buildbot/files/buildmaster_at.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=buildbot master daemon
+After=local-fs.target network.target
+PartOf=buildmaster.target
+
+[Service]
+Environment=BASEDIR=/var/lib/buildmaster
+Type=forking
+User=buildbot
+ExecStartPre=/usr/bin/buildbot checkconfig ${BASEDIR}/%i
+ExecStart=/usr/bin/buildbot start ${BASEDIR}/%i
+ExecStop=/usr/bin/buildbot stop ${BASEDIR}/%i
+
+[Install]
+WantedBy=buildmaster.target
+
diff --git a/dev-util/buildbot/files/buildmaster_at.service.conf b/dev-util/buildbot/files/buildmaster_at.service.conf
new file mode 100644
index 000000000000..baf1ae74ec08
--- /dev/null
+++ b/dev-util/buildbot/files/buildmaster_at.service.conf
@@ -0,0 +1,5 @@
+# Uncomment the following lines to configure the base directory for all buildmaster instances.
+
+#[Service]
+#Environment=BASEDIR=/var/lib/buildmaster
+
diff --git a/dev-util/buildbot/metadata.xml b/dev-util/buildbot/metadata.xml
new file mode 100644
index 000000000000..dc8748343ec6
--- /dev/null
+++ b/dev-util/buildbot/metadata.xml
@@ -0,0 +1,39 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>dolsen@gentoo.org</email>
+ <name>Brian Dolbec</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>hwoarang@gentoo.org</email>
+ <name>Markos Chandras</name>
+ </maintainer>
+ <longdescription lang="en">
+ BuildBot is a system to automate the compile/test cycle required
+ by most software projects to validate code changes.
+ Features:
+ * run builds on a variety of slave platforms
+ * arbitrary build process: handles projects using C, Python, whatever
+ * minimal host requirements: python and Twisted
+ * slaves can be behind a firewall if they can still do checkout
+ * status delivery through web page, email, IRC, other protocols
+ * track builds in progress, provide estimated completion time
+ * flexible configuration by subclassing generic build process classes
+ * debug tools to force a new build, submit fake Changes, query slave status
+ * released under the GPL
+ </longdescription>
+ <use>
+ <flag name="irc">Add support for status delivery through an ircbot.</flag>
+ <flag name="mail">Add support for watching a maildir for commits.</flag>
+ <flag name="manhole">Add support for manhole (debug over ssh)</flag>
+ </use>
+ <upstream>
+ <maintainer>
+ <email>devel@buildbot.net</email>
+ <name>Developers List</name>
+ </maintainer>
+ <remote-id type="pypi">buildbot</remote-id>
+ <remote-id type="github">buildbot/buildbot</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/bumpversion/Manifest b/dev-util/bumpversion/Manifest
new file mode 100644
index 000000000000..e26c13289ffa
--- /dev/null
+++ b/dev-util/bumpversion/Manifest
@@ -0,0 +1,5 @@
+DIST bumpversion-0.5.3.tar.gz 16596 SHA256 6744c873dd7aafc24453d8b6a1a0d6d109faf63cd0cd19cb78fd46e74932c77e SHA512 2dc507be98838e4a389502cbdae08d23bad465b171923e15c40ae16da2cc9529c71dfc40213c47d23da363257b363fd5786a5661a4a6d6b568b5f8b2cf8af959 WHIRLPOOL acf125d91110edf8f02554ee9a4d30a5dfe235ffa51b8f86bc9c6298d45629d8ce56df48ef5a214351a834973dd9fe5a3eee0d1d23a99ab1ed53158da7aaa595
+EBUILD bumpversion-0.5.3.ebuild 816 SHA256 b90c6601428b9b4e913cb04b0d641448cf2de9dd6d59054da505c49668b381f6 SHA512 158f3ad46a258ec2be7f12984f60c6358a8c52fe99bc5b5ed3bff01d4eace259a6d910e74878b287d9d68012f178f7b984f5b01e764d5da4ea50e4bc9d949fd8 WHIRLPOOL bc1caded9a459c505bf6f64d9cb3687e67a9209172fa3e537e6cec94dd58fe027ef631978a7e35478d3687686faf03f59a3ec22de71ba9d780b8edd4b112fcc4
+MISC ChangeLog 3306 SHA256 8d99efdd59a8fc7ea1511bcc4ad64849aff8ae1d932d965adfafa64460a3a843 SHA512 e9727c58b1b753f705575f300552d3dd8c81464769851ee8c94ca3745e7550b24d86c67d9a51cc09ac9f694095eac786061289c0aaf9b46b25fd768c4ac163e8 WHIRLPOOL aa98da4a7b1fd16504ae419b0350186d330260bc3b72914fdd0b2ae148e1ec355c0bdcda501fac48d54ed7ca720836588cd297350b6a3131bd81301a4954b99c
+MISC ChangeLog-2015 372 SHA256 a9b39cea72f34b18155f905bec86f4c2f4ac740952334c96e1f06bd1358888a0 SHA512 82f82bd2dac51bacbbb3e83f49f139c67db7f4fb0ab6a98235d246d37065b1804c3b79167743078f56017513ae16f2ecb6d31fefd946d02373ee35abb538556f WHIRLPOOL adcc3a204737a3186a05aac78fd864c84518b8a31f1c7e62acbc090aa97fe18555196fdbe6f20690d2961094b23d28cc0fef3bedc02bdff84d9b17c17c9ad2a7
+MISC metadata.xml 378 SHA256 1efcf3c4845ff95eaafa169401e32a52b2e8efb842160eb3782af8fb946e163c SHA512 8350ca5935482cc39b7a2004e3efe884449409b9bc7c1ba58b0d6a145cd0ff551e9ab8c53c6f6d6d44fe9efb009d1c3f1411fc32eef6405eb549f06b0b86564f WHIRLPOOL 43e384f070516c7ee11db9132d62d52da07db80c170e9c181ab138266af552b9cf974582699105cbd5e8b62bf37a8b564cf66e5d3e11de7f926c44f27c1af5de
diff --git a/dev-util/bumpversion/bumpversion-0.5.3.ebuild b/dev-util/bumpversion/bumpversion-0.5.3.ebuild
new file mode 100644
index 000000000000..e070b4ae6e71
--- /dev/null
+++ b/dev-util/bumpversion/bumpversion-0.5.3.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} pypy )
+
+inherit distutils-r1
+
+DESCRIPTION="Version-bump your software with a single command"
+HOMEPAGE="https://pypi.python.org/pypi/bumpversion https://github.com/peritus/bumpversion"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="MIT"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="test"
+
+RDEPEND=""
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ test? (
+ dev-python/configparser[$(python_gen_usedep "python2*" pypy)]
+ dev-python/mock[${PYTHON_USEDEP}]
+ dev-python/pytest[${PYTHON_USEDEP}]
+ )
+"
+
+# Not included
+# https://github.com/peritus/bumpversion/issues/108
+RESTRICT=test
+
+python_test() {
+ py.test || die
+}
diff --git a/dev-util/bumpversion/metadata.xml b/dev-util/bumpversion/metadata.xml
new file mode 100644
index 000000000000..7aa64b63099b
--- /dev/null
+++ b/dev-util/bumpversion/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">
+ <name>Manuel Rüger</name>
+ <email>mrueg@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="pypi">bumpversion</remote-id>
+ <remote-id type="github">peritus/bumpversion</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/bustle/Manifest b/dev-util/bustle/Manifest
new file mode 100644
index 000000000000..f02b66e43c80
--- /dev/null
+++ b/dev-util/bustle/Manifest
@@ -0,0 +1,12 @@
+AUX bustle-0.4.2-restrict-gtk2hs-deps-to-gtkplus2.patch 1780 SHA256 2ab67f33ffa069c15214f6c08918a2caacefbc0c4a920660340c4837dd32e641 SHA512 b5765864998fb4a65632657630faf499a7ece40e51c396e0055c574f524fef998f226f2bfca00b15b26ee20066ff4fef6627e6d0a94ff3cc9a5bb1b43b493588 WHIRLPOOL 2075edc5fd7f0b43b86bf1c71b9cc23fff136c888f169f4710715dd0cbba41bcf613f44f094c3a2fb633554b4401f79a7914dd937cdf750da5e925f635ec8551
+AUX bustle-0.4.7-gtk-0.13.patch 6428 SHA256 0d6654717a4fe09f323aa9a6a522874c790a5f046be9a0084730ee89b96981c6 SHA512 49103d8b1019be025f52c2999dbbe34232a0133797a3e4ccc1e82e8ce61da71953c5b9084cdefc6f7cbba19c78032de1fcbd146f695abd07497ce867e5b03aff WHIRLPOOL 3ae726c122785b4dda2f3c85b1f1683db4a0f4f6a18161d04fe341d2e3fbd2e992f4855a47981427f342fcb67d81947270d8f6dbe3c19dd43195cf57ca2d0092
+DIST bustle-0.4.0-tests.tar.gz 8340 SHA256 7e4c354479edc835457fdecc89ab7fc5e1087ab4637b7b1ac6fadfe860190fbe SHA512 c7685496f3a84c1615752ae9aad22202bfe703147441581abe599a5e5055cdef54f27b4e0d01603b23a83a4b42b0595b5538c5b4d65a522a9e76b8d187ae54b1 WHIRLPOOL 6591ed10c75ef044375bf5e80719aac4a40244f647c4045f45811c9e8736afaafa5b83b92803ef8912c2ecfe9672ac20734fc954ab2bb09cff2842c1e6b4fe5a
+DIST bustle-0.4.2.tar.gz 95707 SHA256 bf03fb0a14a2559b6abe4cfeb673b30d86a31a89fb45883d7594644afc434cee SHA512 8a6c1860cb655fc9bd7d42d130d87416c74b988b81749ec8cc1c25cacd3dd4516f59f5cb5954b473c3f6ac32b11853e9bc8881708962144067a0325845dd8562 WHIRLPOOL ebc31713bb202f247a38ed04357598ba9951f72a3fa18b679d83a3ce088dd8a144d7ee5a772ce02715dd735907ba2219541e971d5b1f3a16eb21d22ab1600753
+DIST bustle-0.4.7.tar.gz 114231 SHA256 08b12207561157e639bc64e0b274e70e4909f50079cd97564c916d66a3f088b9 SHA512 c9b93ffda797a87342f5ba506db3c892bff8084fa0ec5897d676bef5e8367507970ae3e09555cda9b4de0c7b175dc396f2ccfb394d224e64225c0e7ded2164fd WHIRLPOOL 8f6a80b881b9c13498351e2dc4910406dc151db9c320b8fba291c9577b41eede58003b943de13bf637d28226e7301e4dfdc8f2b6a0fa4fda2792962505fd0153
+DIST bustle-0.5.4.tar.gz 122720 SHA256 921c2cbbb957dcb02c3aa8fd1eeff3534cb437fa9eeca1c25206ad1e741a3f14 SHA512 56eaeef831fb5929d57a008ae71d8409048ce5d12eaada98830ef742baf3479264203465d77591cb338374096eac2dc2b68b44f075b2761f16df63fad54b91fd WHIRLPOOL b804441443af0f6e922a3c16bb57b70b09332fe68834c2eec35f8e169b2247a506cbdaf5aea0df09985665f9993b615fb7e64892c77134cf7de898ed76af4b89
+EBUILD bustle-0.4.2-r1.ebuild 1563 SHA256 a3de5b3a5bbe90fcc3728e63ed4f4d9da3fb6b22d82f54f6f99ccbfdcadf6e3c SHA512 0d714abbcde8f37318a9c61e85857951d28003c9c5e44ee208cb4f9684f04f9f967e7e8e328d02ec87b6cc6853bc01035f996803931dde51c4914770ed83ad23 WHIRLPOOL a93b3a8215b39ef585247770ed4ef926fc95f71f99ba347edf935c8e0e82de32a8314668d8ea44e0c39c28920c218e7360d0b5d616f2a8e07de28d47b0fa6857
+EBUILD bustle-0.4.7-r1.ebuild 1504 SHA256 b614f09082f8f44783f9d206cc0bbaaf0148e6f0bc29c4535699f5dd509db35d SHA512 8cff7f0958a3438316d612185c0691037cbf0ef086889476595d9605ae8ed15f6cb8f7b08fc0320aea0ea4c9c5fd8f42950aa13969e9e0069beda9f6cd55ff0b WHIRLPOOL edbe849ae62fb151d88ead69e2e021d410bc512dc8a958d8d7af1b7290f79e43c6ead613ad76103a9093ea4b108c7cc0c74ffdea1a059166817f06d71c054ded
+EBUILD bustle-0.5.4.ebuild 1625 SHA256 c98ed501aeb593f6045d6264b3a3b6ec0c5961c01b512154b99b3c443836db80 SHA512 08b4f1faffbdf9e7a9706b9228da978013f61914efc0889f64d5d2943f64c944d82df34636c9ef3d9b4b6e0019e3908723d418336c9a30f2471a63285baa8a7e WHIRLPOOL 6ae14bbf5d36453700acf7db8590893e80b3e9533955e8610ebc1119b3bedec0b1de610037e7af00374fad2ef150069cd9af4176caa0da4a4c2628de317acf7c
+MISC ChangeLog 4629 SHA256 7242e3c3d2cf053ab97e8c9e609342d13ce596c498de8c863b45325d6fa8eea4 SHA512 8b88ae6c0423df5e5df4fd2d7641f11187ac73e9826d7ba5142d04e23085a4f4fa229b79b1879335da6dda62506756fc6657e8c065a3d658c6a8bde0e54f3746 WHIRLPOOL f271e2665fb5b7490e7b46981b753abf13276846781b58534fecb0d0f314cca2206d00415ed52c386614bd63a50225c55995815f0f676b24819fdd2250ab6260
+MISC ChangeLog-2015 4384 SHA256 b01386dce0401596a3dd41b6d1c15f4a16e0f5efe194d0c03af723155beebd76 SHA512 9f34d48c6b325d70f08f7c8d330d77ad818a8bd9062dc1e36caecfc0a863295bcb4e8430a974865a380d988a66c4a8947c08c1c2a90931a9ef63ebf3d7f8d8c2 WHIRLPOOL b45fb6743dc552ea481a7578284977bcfe0bf09d3da2c8d0c737905709918ac2cc9445718c3292de0e29f1b98c1ae7f0124277266bffb33ab95978ef1ab496ec
+MISC metadata.xml 502 SHA256 559d549f19f2909b92d0ae77989b8c1981ace3fb3d5e06fc7c18ed37d1f71987 SHA512 834e9820081006344e30580673ccb789750d1af67807f908b21fc5fe0cf1b8554b32b446aa592c52a1dd26e4d36f2f91c3cff569b8c4797ded9c5c6ea1bfa65d WHIRLPOOL 3ade14c2d6d1869a5e4ae3c0c3fb521ec147410ca54eb2ba4d9d03e3ed1d4625d6f5f2fbb7040fd5081f0164866467f2f353b1de9f27a3914b88a42c8d0ddb00
diff --git a/dev-util/bustle/bustle-0.4.2-r1.ebuild b/dev-util/bustle/bustle-0.4.2-r1.ebuild
new file mode 100644
index 000000000000..d04c99c8998a
--- /dev/null
+++ b/dev-util/bustle/bustle-0.4.2-r1.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+# ebuild generated by hackport 0.3.9999
+
+CABAL_FEATURES="bin test-suite"
+inherit base haskell-cabal
+
+DESCRIPTION="Draw pretty sequence diagrams of D-Bus traffic"
+HOMEPAGE="http://willthompson.co.uk/bustle/"
+SRC_URI="http://willthompson.co.uk/${PN}/releases/${PV}/${P}.tar.gz https://dev.gentoo.org/~slyfox/bustle-0.4.0-tests.tar.gz"
+
+LICENSE="LGPL-2 GPL-2" # bustle-dbus-monitor.c is GPL-2, rest is LGPL-2
+SLOT="0"
+KEYWORDS="~alpha amd64 ~ia64 ppc ppc64 sparc x86"
+IUSE=""
+
+RDEPEND="dev-libs/glib:2
+ net-libs/libpcap
+ sys-apps/dbus
+ x11-libs/cairo
+ x11-libs/pango
+ gnome-base/libglade:2.0"
+DEPEND="${RDEPEND}
+ test? ( dev-haskell/hunit
+ dev-haskell/quickcheck
+ dev-haskell/test-framework
+ dev-haskell/test-framework-hunit
+ )
+ >=dev-haskell/cabal-1.8
+ dev-haskell/cairo:0
+ >=dev-haskell/dbus-0.10
+ dev-haskell/glib:0
+ >=dev-haskell/gtk-0.12.3:2
+ dev-haskell/mtl
+ dev-haskell/pango:0
+ dev-haskell/parsec
+ dev-haskell/pcap
+ dev-haskell/text
+ >=dev-lang/ghc-6.10.4"
+
+PATCHES=("${FILESDIR}"/${P}-restrict-gtk2hs-deps-to-gtkplus2.patch)
+
+src_compile() {
+ # compile haskell part
+ cabal_src_compile || die "could not build haskell parts"
+
+ # compile C part
+ emake \
+ "CC=$(tc-getCC)" \
+ "CFLAGS=${CFLAGS}" \
+ "CPPFLAGS=${CPPFLAGS}" \
+ "LDFLAGS=${LDFLAGS}"
+}
+
+src_install() {
+ # install haskell part
+ cabal_src_install || die "could not install haskell parts"
+
+ dobin "${S}"/dist/build/bustle-pcap
+
+ dodoc README HACKING NEWS
+}
diff --git a/dev-util/bustle/bustle-0.4.7-r1.ebuild b/dev-util/bustle/bustle-0.4.7-r1.ebuild
new file mode 100644
index 000000000000..3f1b1336bc15
--- /dev/null
+++ b/dev-util/bustle/bustle-0.4.7-r1.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+# ebuild generated by hackport 0.3.6.9999
+
+CABAL_FEATURES="bin test-suite"
+inherit haskell-cabal
+
+DESCRIPTION="Draw pretty sequence diagrams of D-Bus traffic"
+HOMEPAGE="http://hackage.haskell.org/package/bustle"
+SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="LGPL-2 GPL-2 GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="dev-libs/glib:2
+ net-libs/libpcap
+ sys-apps/dbus
+ x11-libs/cairo
+ x11-libs/pango
+ gnome-base/libglade:2.0"
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-1.8.0.2
+ dev-haskell/cairo
+ >=dev-haskell/dbus-0.10
+ dev-haskell/glib
+ >=dev-haskell/gtk-0.13
+ >=dev-haskell/hgettext-0.1.5
+ dev-haskell/mtl
+ >=dev-haskell/pango-0.13
+ dev-haskell/parsec
+ dev-haskell/pcap
+ dev-haskell/setlocale
+ dev-haskell/text
+ >=dev-lang/ghc-6.12.1
+ virtual/pkgconfig
+ test? ( dev-haskell/hunit
+ dev-haskell/quickcheck
+ dev-haskell/test-framework
+ dev-haskell/test-framework-hunit )
+"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-gtk-0.13.patch
+}
+
+src_compile() {
+ # compile haskell part
+ cabal_src_compile || die "could not build haskell parts"
+
+ # compile C part
+ emake \
+ "CC=$(tc-getCC)" \
+ "CFLAGS=${CFLAGS}" \
+ "CPPFLAGS=${CPPFLAGS}" \
+ "LDFLAGS=${LDFLAGS}"
+}
+
+src_install() {
+ # install haskell part
+ cabal_src_install || die "could not install haskell parts"
+
+ dobin "${S}"/dist/build/bustle-pcap
+ doman bustle-pcap.1
+ dodoc README HACKING NEWS
+}
diff --git a/dev-util/bustle/bustle-0.5.4.ebuild b/dev-util/bustle/bustle-0.5.4.ebuild
new file mode 100644
index 000000000000..f397b7fa6968
--- /dev/null
+++ b/dev-util/bustle/bustle-0.5.4.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+# ebuild generated by hackport 0.4.5.9999
+
+CABAL_FEATURES="bin test-suite"
+inherit eutils haskell-cabal
+
+DESCRIPTION="Draw sequence diagrams of D-Bus traffic"
+HOMEPAGE="http://hackage.haskell.org/package/bustle"
+SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="LGPL-2 GPL-2 GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="interactivetests +threaded"
+
+RESTRICT=test # fails one propery test
+
+RDEPEND="dev-haskell/cairo:=
+ >=dev-haskell/dbus-0.10:=
+ dev-haskell/gio:=
+ dev-haskell/glib:=
+ >=dev-haskell/gtk3-0.13.7:0=
+ >=dev-haskell/hgettext-0.1.5:=
+ dev-haskell/mtl:=
+ dev-haskell/pango:=
+ dev-haskell/parsec:=
+ dev-haskell/pcap:=
+ dev-haskell/setlocale:=
+ dev-haskell/text:=
+ >=dev-lang/ghc-7.4.1:=
+ dev-libs/glib:2
+ dev-perl/Locale-gettext
+"
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-1.8
+ virtual/pkgconfig
+ test? ( dev-haskell/hunit
+ dev-haskell/quickcheck
+ dev-haskell/test-framework
+ dev-haskell/test-framework-hunit )
+"
+
+src_configure() {
+ haskell-cabal_src_configure \
+ $(cabal_flag interactivetests interactivetests) \
+ $(cabal_flag threaded threaded)
+}
+
+src_compile() {
+ # compile haskell part
+ cabal_src_compile || die "could not build haskell parts"
+
+ # compile C part
+ emake \
+ "CC=$(tc-getCC)" \
+ "CFLAGS=${CFLAGS}" \
+ "CPPFLAGS=${CPPFLAGS}" \
+ "LDFLAGS=${LDFLAGS}"
+}
+
+src_install() {
+ # install haskell part
+ cabal_src_install || die "could not install haskell parts"
+
+ dobin "${S}"/dist/build/bustle-pcap
+ doman bustle-pcap.1
+ dodoc README.md HACKING.md NEWS.md
+}
diff --git a/dev-util/bustle/files/bustle-0.4.2-restrict-gtk2hs-deps-to-gtkplus2.patch b/dev-util/bustle/files/bustle-0.4.2-restrict-gtk2hs-deps-to-gtkplus2.patch
new file mode 100644
index 000000000000..74ab26ff8fcd
--- /dev/null
+++ b/dev-util/bustle/files/bustle-0.4.2-restrict-gtk2hs-deps-to-gtkplus2.patch
@@ -0,0 +1,61 @@
+--- bustle-0.4.2-orig/bustle.cabal 2012-11-15 02:19:34.000000000 +1100
++++ bustle-0.4.2/bustle.cabal 2013-04-03 15:07:35.381569187 +1100
+@@ -82,15 +82,15 @@
+
+ Build-Depends: base >= 4 && < 5
+ , bytestring
+- , cairo
++ , cairo < 0.13
+ , containers
+ , dbus >= 0.10
+ , directory
+ , filepath
+- , glib
+- , gtk >= 0.12.3
++ , glib < 0.13
++ , gtk >= 0.12.3 && < 0.13
+ , mtl
+- , pango
++ , pango < 0.13
+ , parsec
+ , pcap
+ , process
+@@ -111,15 +111,15 @@
+ pkgconfig-depends: glib-2.0
+ Build-Depends: base >= 4 && < 5
+ , bytestring
+- , cairo
++ , cairo < 0.13
+ , containers
+ , dbus
+ , directory
+ , filepath
+- , gtk > 0.12
+- , glib
++ , gtk > 0.12 && < 0.13
++ , glib < 0.13
+ , mtl
+- , pango
++ , pango < 0.13
+ , parsec
+ , pcap
+ , text
+@@ -163,15 +163,15 @@
+ main-is: Test/Renderer.hs
+ other-modules: Bustle.Renderer
+ Build-Depends: base
+- , cairo
++ , cairo < 0.13
+ , containers
+ , dbus >= 0.10
+ , directory
+ , filepath
+- , gtk
++ , gtk < 0.13
+ , mtl
+ , text
+- , pango
++ , pango < 0.13
+ , test-framework
+ , test-framework-hunit
+ , HUnit
diff --git a/dev-util/bustle/files/bustle-0.4.7-gtk-0.13.patch b/dev-util/bustle/files/bustle-0.4.7-gtk-0.13.patch
new file mode 100644
index 000000000000..f2691521c4bd
--- /dev/null
+++ b/dev-util/bustle/files/bustle-0.4.7-gtk-0.13.patch
@@ -0,0 +1,172 @@
+diff --git a/Bustle/Diagram.hs b/Bustle/Diagram.hs
+index d558beb..ef96d60 100644
+--- a/Bustle/Diagram.hs
++++ b/Bustle/Diagram.hs
+@@ -450,7 +450,7 @@ mkLayout :: (MonadIO m)
+ mkLayout s e a = liftIO $ do
+ ctx <- cairoCreateContext Nothing
+ layout <- layoutEmpty ctx
+- layoutSetMarkup layout (Markup.unMarkup s)
++ layoutSetMarkup layout (Markup.unMarkup s) :: IO String
+ layoutSetFontDescription layout (Just font)
+ layoutSetEllipsize layout e
+ layoutSetAlignment layout a
+diff --git a/Bustle/UI.hs b/Bustle/UI.hs
+index a78797e..9843b29 100644
+--- a/Bustle/UI.hs
++++ b/Bustle/UI.hs
+@@ -30,6 +30,7 @@ import Data.IORef
+ import qualified Data.Set as Set
+ import Data.List (intercalate)
+ import Data.Time
++import qualified Data.Text as T
+ import Data.Monoid (mempty)
+ import Text.Printf
+
+@@ -281,6 +282,7 @@ promptToSave wi = io $ do
+ case mdetails of
+ Just (RecordedLog tempFilePath) -> do
+ let tempFileName = takeFileName tempFilePath
++ title :: String
+ title = printf (__ "Save log '%s' before closing?") tempFileName
+ prompt <- messageDialogNew (Just (wiWindow wi))
+ [DialogModal]
+@@ -459,7 +461,7 @@ wiSetLogDetails :: WindowInfo
+ -> IO ()
+ wiSetLogDetails wi logDetails = do
+ writeIORef (wiLogDetails wi) (Just logDetails)
+- windowSetTitle (wiWindow wi) (printf (__ "%s - Bustle") (logWindowTitle logDetails))
++ windowSetTitle (wiWindow wi) (printf (__ "%s - Bustle") (logWindowTitle logDetails) :: String)
+
+ setPage :: MonadIO io
+ => WindowInfo
+@@ -525,7 +527,7 @@ loadPixbuf :: FilePath -> IO (Maybe Pixbuf)
+ loadPixbuf filename = do
+ iconName <- getDataFileName $ "data/" ++ filename
+ C.catch (fmap Just (pixbufNewFromFile iconName))
+- (\(GError _ _ msg) -> warn msg >> return Nothing)
++ (\(GError _ _ msg) -> warn (T.unpack msg) >> return Nothing)
+
+ openDialogue :: Window -> B ()
+ openDialogue window = embedIO $ \r -> do
+diff --git a/Bustle/UI/Canvas.hs b/Bustle/UI/Canvas.hs
+index 46c1582..5a28761 100644
+--- a/Bustle/UI/Canvas.hs
++++ b/Bustle/UI/Canvas.hs
+@@ -1,3 +1,4 @@
++{-# LANGUAGE OverloadedStrings #-}
+ {-
+ Bustle.UI.Canvas: displays diagrams
+ Copyright © 2008–2012 Collabora Ltd.
+@@ -58,7 +59,7 @@ canvasNew :: Eq a
+ -> (Maybe a -> IO ())
+ -> IO (Canvas a)
+ canvasNew builder showBounds selectionChangedCb = do
+- layout <- builderGetObject builder castToLayout "diagramLayout"
++ layout <- builderGetObject builder castToLayout ("diagramLayout" :: String)
+ idRef <- newIORef Nothing
+ shapesRef <- newIORef []
+ widthRef <- newIORef 0
+diff --git a/Bustle/UI/DetailsView.hs b/Bustle/UI/DetailsView.hs
+index 35e80d6..d1b9d96 100644
+--- a/Bustle/UI/DetailsView.hs
++++ b/Bustle/UI/DetailsView.hs
+@@ -55,7 +55,7 @@ addValue :: Table
+ -> Int
+ -> IO Label
+ addValue table row = do
+- label <- labelNew Nothing
++ label <- labelNew (Nothing :: Maybe String)
+ miscSetAlignment label 0 0
+ labelSetEllipsize label EllipsizeStart
+ labelSetSelectable label True
+@@ -77,7 +77,7 @@ detailsViewNew = do
+ , tableColumnSpacing := 6
+ ]
+
+- title <- labelNew Nothing
++ title <- labelNew (Nothing :: Maybe String)
+ miscSetAlignment title 0 0
+ tableAttach table title 0 2 0 1 [Fill] [Fill] 0 0
+
+diff --git a/Bustle/UI/FilterDialog.hs b/Bustle/UI/FilterDialog.hs
+index 9560507..152931e 100644
+--- a/Bustle/UI/FilterDialog.hs
++++ b/Bustle/UI/FilterDialog.hs
+@@ -99,7 +99,7 @@ runFilterDialog parent names currentlyHidden = do
+ nameStore <- makeStore names currentlyHidden
+ sw <- makeView nameStore
+
+- instructions <- labelNew Nothing
++ instructions <- labelNew (Nothing :: Maybe String)
+ widgetSetSizeRequest instructions 600 (-1)
+ labelSetMarkup instructions
+ (__ "Unticking a service hides its column in the diagram, \
+diff --git a/Bustle/UI/Recorder.hs b/Bustle/UI/Recorder.hs
+index 1e98a68..085eea2 100644
+--- a/Bustle/UI/Recorder.hs
++++ b/Bustle/UI/Recorder.hs
+@@ -27,6 +27,7 @@ import Control.Monad (when, liftM)
+ import Control.Concurrent.MVar
+ import qualified Data.Map as Map
+ import Data.Monoid
++import qualified Data.Text as T
+ import Control.Monad.State (runStateT)
+ import Text.Printf
+
+@@ -77,8 +78,7 @@ processBatch pendingRef n label incoming = do
+ -- message from the user's perspective.
+ i <- takeMVar n
+ let j = i + (length pending)
+- labelSetMarkup label $
+- printf (__ "Logged <b>%u</b> messages…") j
++ labelSetMarkup label $ (printf (__ "Logged <b>%u</b> messages…") j :: String)
+ putMVar n j
+
+ incoming rr'
+@@ -97,8 +97,8 @@ recorderRun filename mwindow incoming finished = C.handle newFailed $ do
+ maybe (return ()) (windowSetTransientFor dialog) mwindow
+ dialog `set` [ windowModal := True ]
+
+- label <- labelNew Nothing
+- labelSetMarkup label $ printf (__ "Logged <b>%u</b> messages…") (0 :: Int)
++ label <- labelNew (Nothing :: Maybe String)
++ labelSetMarkup label $ (printf (__ "Logged <b>%u</b> messages…") (0 :: Int) :: String)
+ loaderStateRef <- newMVar Map.empty
+ pendingRef <- newMVar []
+ let updateLabel µs body = do
+@@ -142,7 +142,7 @@ recorderRun filename mwindow incoming finished = C.handle newFailed $ do
+ widgetShowAll dialog
+ where
+ newFailed (GError _ _ message) = do
+- displayError mwindow message Nothing
++ displayError mwindow (T.unpack message) Nothing
+
+ recorderChooseFile :: FilePath
+ -> Maybe Window
+diff --git a/bustle.cabal b/bustle.cabal
+index 4ac107c..2d1f907 100644
+--- a/bustle.cabal
++++ b/bustle.cabal
+@@ -106,10 +106,10 @@ Executable bustle
+ , directory
+ , filepath
+ , glib
+- , gtk >= 0.12.4
++ , gtk >= 0.13
+ , hgettext >= 0.1.5
+ , mtl
+- , pango
++ , pango >= 0.13
+ , parsec
+ , pcap
+ , process
+@@ -136,7 +136,7 @@ Executable test-monitor
+ , dbus
+ , directory
+ , filepath
+- , gtk > 0.12
++ , gtk >= 0.13
+ , glib
+ , hgettext
+ , mtl
diff --git a/dev-util/bustle/metadata.xml b/dev-util/bustle/metadata.xml
new file mode 100644
index 000000000000..ff21ef6ead63
--- /dev/null
+++ b/dev-util/bustle/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="project">
+ <email>haskell@gentoo.org</email>
+ <name>Gentoo Haskell</name>
+ </maintainer>
+ <longdescription>
+ Draw pretty sequence diagrams of D-Bus traffic
+ </longdescription>
+ <use>
+ <flag name="interactivetests">Build interactive test programs</flag>
+ <flag name="threaded">Build with support for multithreaded execution.</flag>
+ </use>
+</pkgmetadata>
diff --git a/dev-util/byacc/Manifest b/dev-util/byacc/Manifest
new file mode 100644
index 000000000000..fdfa969dcf9b
--- /dev/null
+++ b/dev-util/byacc/Manifest
@@ -0,0 +1,7 @@
+DIST byacc-20170201.tgz 741550 SHA256 90b768d177f91204e6e7cef226ae1dc7cac831b625774cebd3e233a917754f91 SHA512 f45e6f5eefe4a4bbcd233fbe06cf25fecec3ecabebea9064db0f52d900ae90783dd180f90d70901f82e2b632ce0432d28a913d312b15225e6256344c176a3638 WHIRLPOOL 8ef8bfc3931bdc5a090b3f027bdcdb50c225d756fa84191e0b8bd2004e1b2a12a7ac1c101bd77ef725437d7bdff6db86a6a248ed8d4b328668b3acfb5c21a7d2
+DIST byacc-20170709.tgz 743677 SHA256 27cf801985dc6082b8732522588a7b64377dd3df841d584ba6150bc86d78d9eb SHA512 81b6e2dfe674d7e7650e1583c46f67e20cc5ff56b06ef73a54ec2070abd7f4af1a0db7909f31264d0e6157acd3661c19c3478e06c9bab395f53d0371bc1e9097 WHIRLPOOL 7554dcab79518401e7ddc9c92cc9e355232287f7722884f1fb7f0a1e53396f15ae18af7535fc4bae7e2828a8c448925bb64b0d9c21f9bb6042ed9acc646fac8b
+EBUILD byacc-20170201.ebuild 611 SHA256 0b6c95494071dfed46b15a622187adcce34cff6b1d8f3078a458059cd5d15166 SHA512 9cb14b8ff369869a7f92ad8ae22a845bf3904da259171dc98ba8a87c8f3138bcdb618477d397b5b07d9d0d073df6a1d5ec36ddfb16f6376fcf708d7bc3c3c04c WHIRLPOOL 5663133719e3a80f29c4f04b0c96981738e621677dc15264dc6a08d1021cc5f6c83ee5b6b46e42a37950ce55e104df29f3ab46d36659440af08de6930cdf0de0
+EBUILD byacc-20170709.ebuild 620 SHA256 de25335b7f709b9a5488cf8c85348c3e41a2cbbb42760f513ab3ea061b171799 SHA512 e7b6590d7bd61eef0a18cfb92cb0426a099b1e276edc0f5b00bbc4c5d48928c8c75620dc48abd5ce17b260ca3f9452ca800dfef57b61e4fc13e288625763871c WHIRLPOOL 2a3dc87053d7bc1262bee5dcacd751e53971b1a14e7335b2691ebc1cc4a95432cf4f60639f458d463063b759c9db355f1d2f7eda5ca228130960f56a0adce853
+MISC ChangeLog 5152 SHA256 f701993ae9e7e504dcf62e4b0aa838534396ccc41deb665cf1031a590f17db1c SHA512 6f3b9ce5fa667ceb3b36edb7cc271d41c8f8defdbe9441a3773a0a9dc863b2436992c4e677bcdb161b99f47a676086f6a3eb4091e836738480a3b5c5318102a8 WHIRLPOOL 6f8b4dbe761cc4b0ac4a377395b11f7c55b60a5dc13271790a0ee0f75607ce799747a3debb8b8ab22d21b4c1a143a7f6b177bba922d7f326218ab250791d735f
+MISC ChangeLog-2015 11221 SHA256 b0d300154c3ebd6b0edbf167473a0c2078b7fe1ab5ddedd0dd2cd3292cddb1ee SHA512 8bd03a9424b15ebdba85ae689a4138360cef38e28bd4c63165259f059b5a78c15230d6d64dfce122f486d77bb5c8b02fee80cac47d199e6c92ad354b1fa602d7 WHIRLPOOL d5d2079b5c7da67b81a5e408c48208c5d78811fa08d01a9ed598a76d54d691910c46e17dec20809050306616dd58e4e31a63641add113992077d6e8253a2b45c
+MISC metadata.xml 253 SHA256 d82c33ef453113a5c1ebe250dcba373c22934a69b0a86c6ab15a5ca589c25b91 SHA512 54a9069aeb4165d2dff3d473c8001bc51613aac9dff3f7f5e9971a9891a737a31511ffa11cbd523febe581ac1d9de2bdf2f40410f0c4239138f2ccca3ef15555 WHIRLPOOL e5aee23acff864609953a1e4de768f0e4aef704b44c53c021f28573e1ca5c99f1a46d92935ecec2449f7b4419a36d8373127d0ecfa8d7bae72d835e1839eb3f8
diff --git a/dev-util/byacc/byacc-20170201.ebuild b/dev-util/byacc/byacc-20170201.ebuild
new file mode 100644
index 000000000000..c7fadef836ce
--- /dev/null
+++ b/dev-util/byacc/byacc-20170201.ebuild
@@ -0,0 +1,18 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="the best variant of the Yacc parser generator"
+HOMEPAGE="https://invisible-island.net/byacc/byacc.html"
+SRC_URI="ftp://invisible-island.net/byacc/${P}.tgz"
+
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~ppc-aix ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
+
+DOCS=( ACKNOWLEDGEMENTS AUTHORS CHANGES NEW_FEATURES NOTES README )
+
+src_configure() {
+ econf --program-prefix=b
+}
diff --git a/dev-util/byacc/byacc-20170709.ebuild b/dev-util/byacc/byacc-20170709.ebuild
new file mode 100644
index 000000000000..1c82290565a2
--- /dev/null
+++ b/dev-util/byacc/byacc-20170709.ebuild
@@ -0,0 +1,18 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="the best variant of the Yacc parser generator"
+HOMEPAGE="https://invisible-island.net/byacc/byacc.html"
+SRC_URI="ftp://invisible-island.net/byacc/${P}.tgz"
+
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
+
+DOCS=( ACKNOWLEDGEMENTS AUTHORS CHANGES NEW_FEATURES NOTES README )
+
+src_configure() {
+ econf --program-prefix=b
+}
diff --git a/dev-util/byacc/metadata.xml b/dev-util/byacc/metadata.xml
new file mode 100644
index 000000000000..56c124413057
--- /dev/null
+++ b/dev-util/byacc/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="project">
+ <email>base-system@gentoo.org</email>
+ <name>Gentoo Base System</name>
+</maintainer>
+</pkgmetadata>
diff --git a/dev-util/cargo/Manifest b/dev-util/cargo/Manifest
new file mode 100644
index 000000000000..49efe9fccb69
--- /dev/null
+++ b/dev-util/cargo/Manifest
@@ -0,0 +1,211 @@
+AUX 0.21.0-openssl-0.9.15.patch 6026 SHA256 9c1025dc9725a189c9c7420e8d132d18c867cbb43a392e5b4d360befff61a95a SHA512 467df54f2ad8615a6e06d038d6cfdc58f863569a36c723a68a54a5b59fc8da40ba3cb7d68b7acc3d6f63885f5cdcb172cfd93098bd70b4a1388cd0df988002e4 WHIRLPOOL eeb85aa36291343a5f6d22c05ed5292b057c5e945e7e729323130690e61afdd5609ee94978df3ed326695fa242db47a6a28caf1e96dce1c9fd55c6c5f5397cf9
+DIST advapi32-sys-0.2.0.crate 7217 SHA256 e06588080cb19d0acb6739808aafa5f26bfb2ca015b2b6370028b44cf7cb8a9a SHA512 8e6bc75fcb2b91d2b8fe281d165aa8281c8ecca9ba09552f5e4cdbadc03b91db5a98789233c4dc858ee9cf8a3488f28af5a742dac50b44f6397fd14478b77618 WHIRLPOOL 30da033ae33a8d6e350bf49e8e525a984d3c18abe7356660f1d2d1e9cbb1dcbae3ac86bfd1469058358889bbeb900fa5dd5be4a6e337005657a82adedc60b1a7
+DIST aho-corasick-0.5.3.crate 252052 SHA256 ca972c2ea5f742bfce5687b9aef75506a764f61d37f8f649047846a9686ddb66 SHA512 cc297b4882b869919edf9023ee2bd7100eb48709f6e7076fd26d1701dab3d8aa2cfb03752a764877cd92177ab7a4ce3dcdae76d16965eca2ff53667832afda31 WHIRLPOOL 93651414398a02de849aa0b1dd8319678e20df385643422da751e38388afe60ae305f197a68cf2b9d1d6e39ef56c54979b6290a2c82555eb811839acffb72531
+DIST aho-corasick-0.6.3.crate 24963 SHA256 500909c4f87a9e52355b26626d890833e9e1d53ac566db76c36faa984b889699 SHA512 4d0d55d8a6657fe13009d66728b7417926325dd9ca4f7ad7cd5d40e59cf0a55b906cd109d724a0b385ee988526535fc64a467ded171419e452c5a8c90196ae45 WHIRLPOOL e29e10afbf4dfbd1c36fe15af475107116e83c4e85943ca48a1cf90def2556045fd31264b59eb2110ad0d2e8c7ed5fe7594ac92a8fc3328a25c9be90f4173b89
+DIST atty-0.2.2.crate 5124 SHA256 d912da0db7fa85514874458ca3651fe2cddace8d0b0505571dbdcd41ab490159 SHA512 6e6e2cede7f280a53a61c78126783ec0338c13a8e9bbabb91d4b6fc43aacc56a4f7e86556210029595acf18e444121998101992b40e35a64cce884ec08247d0a WHIRLPOOL 9fae4158651f25bb4b32d0ca31e72fc8c01bb7afca0d703770af124ab9035fa52e700e3a74a4698bf8d95ff65de9adec9a5933b82798ee9cdc06d11dc86ffab4
+DIST backtrace-0.3.2.crate 23785 SHA256 72f9b4182546f4b04ebc4ab7f84948953a118bd6021a1b6a6c909e3e94f6be76 SHA512 74d7d77da8a42e8c2b6cdc7205c41d52c1299a503583ac26dc4f98703f43d2fd4f6e76b34c68dfa0cbc5a0d239ee1bd0144a35fef6274fb4fdf8c732a141e1e8 WHIRLPOOL 3fa9853bbfef6511d6bd1a5a1d1e045f5c85aeadd604be90e58a3a3197922b8bb4aa343593f1d62fc17c65a9b2888188130d315301cb106851732c886bd34765
+DIST backtrace-sys-0.1.11.crate 282665 SHA256 3a0d842ea781ce92be2bf78a9b38883948542749640b8378b3b2f03d1fd9f1ff SHA512 56ecfcc927857f1e2d19cea1503a3bff7c5f53c79a5072a514f2137db693585da8d5fdcca94ca0da2a5c8abb0c24184a896f04f4428b7c4830233de9fd98f4e6 WHIRLPOOL 00a5fe73b2e7ab94d9782667d818e6909c20bc750e3786a2e388f269489e48e390a129eb435bc8c3d4d4f0542d6c82ddd5b92c3de2da2d9e9100fac09012136b
+DIST bitflags-0.1.1.crate 8719 SHA256 2a6577517ecd0ee0934f48a7295a89aaef3e6dfafeac404f94c0b3448518ddfe SHA512 aa85c6adda0e9d192f2ae817e3c727167bac8609eb85c8153d99bb42d990de3f931e890924841ca11ba8dbd1413d1c5bf20acd584d182292e8828ed56fcedc18 WHIRLPOOL c93a45bb238b32e551dee23f9023db97eab10c2418a59dd9e3c44ca8cf7c8916de90ffbb5e84b7bff4863ce7a71de54e9fa760967989be906a90bec509a2956a
+DIST bitflags-0.7.0.crate 10851 SHA256 aad18937a628ec6abcd26d1489012cc0e18c21798210f491af69ded9b881106d SHA512 fdfe472c26e5486d1a3f1bfe5a27d26678781235c6e14b49bdb75388359cb78841f38d794fc4557548581a80a10b715d8840182c9ca3316049984a6b9f35b3c0 WHIRLPOOL 60551486cd6688c78ecd0ac40ca39b1f3d75537dd96ec32e9882e205bfe2062de939a129777d66f8c269c8a71e2f2aa240e015c0b3bfa51adbad478024e296d4
+DIST bitflags-0.9.1.crate 12406 SHA256 4efd02e230a02e18f92fc2735f44597385ed02ad8f831e7c1c1156ee5e1ab3a5 SHA512 3c106186aa8b5b8d0fba377818618e6428af38f60e4f707873142b44cb6f64d1d7f347840c8bfba084ff569ac8c57d87f2288c4a1d79e282bc02544d69f976c0 WHIRLPOOL 4d6389fcdbd28cfddebc668e1f6fe0b2d34b77ad0b43abf4530179417498b44f8dddfcb0d19dcab84042715e000f9eb9c6f2af169679b74dc6c41dec26f9193b
+DIST bufstream-0.1.2.crate 7477 SHA256 7b48dbe2ff0e98fa2f03377d204a9637d3c9816cd431bfe05a8abbd0ea11d074 SHA512 ddbb8597cd430111e58facfc30e6cf93bce174b09a8f7eeaf7d7062dc856137dbd238a0c7794336d9a2b7d0a1859dc8b8d225116c0c57591106dc6f2e1adc0a9 WHIRLPOOL 7a5bac1c3309d6f5d9dad3a21a7fa146815d2b35444dc356ade49f6f05df2896ee0d88570ac3964939db20633651721e41d7757060b9a5c1b2c5878e68c5adfe
+DIST bufstream-0.1.3.crate 8375 SHA256 f2f382711e76b9de6c744cc00d0497baba02fb00a787f088c879f01d09468e32 SHA512 b615056dbdfb181c622acd734d7b7b67f2604161f90db81043fe109c2c7396cf81fa3a2b4878571968858311e46034072c54e3b181f9a8217aa276b2145c95b1 WHIRLPOOL 5e38ae359e5cca3fe223fe85e2cd5357b690eb60f9805ce362a4d3a926ea8aed29da1e0ec90b790cc5a2b749add1ca2524d424652bc6c71a018ce5bf251c7c3f
+DIST cargo-0.15.0.tar.gz 631157 SHA256 6ebe9e0de255d5bd912528bef0f57db7746e162c6d9875a89c6c8b2b40a21d64 SHA512 a5917d500697ffd000204716a1802e83633d0fd1859a918d57b6add932aa7b935f4ca3cd7ac206b1565b0af29414306198500e036fbf4838f4e91920a84e7dfe WHIRLPOOL ab46b5d2141dc83f56c5032386fa5be232711ad2fe8e4c7e7eab4e78d8042ea4bd77ac73cf8c5357da4491d47fca82654108c011bc898e3b0796e4be2a569829
+DIST cargo-0.16.0.tar.gz 628755 SHA256 5f7a7669daea152e84bbf9e6d4ee0ccc6c8e49dd0042f546ba80629bbc0191a4 SHA512 d5763a4e3c5992a457febd663c218d98198849071b173fb7e9f1067c8239aefb32f28827710e3d98f4c2afc3866c62d0bff02044b70a857d9b9540938826eb99 WHIRLPOOL a8b00e1d67f1a7a802afcf096d7548f3a036a6af624a64e2851311fcbe670836ae0c2b9ca89019aa1b3168058c4ef44ac5be724d419a32a51f5bf8fd53a23b17
+DIST cargo-0.17.0.tar.gz 638004 SHA256 fc689ca7a09f1e6a1c31e69f0e2616a93576a68e0e1d7f0ae4c0d3301ff21ff8 SHA512 5ea9a382ab48ee714b5cd1412f11ae72c6065913e2ce56cf84fe43f9061fd383f32c16a6525e5400f3fec9c10eaa3e7a149b026ae9c64af0955e91678b032650 WHIRLPOOL 33b8c75db79356020c3809f23d4a78f656d6c86e0be24affd9b7d0b09e6bf529f8f2606642be665f1eca59ba89438cb8f22009bdfdae2cc0a34ee6d661c79dab
+DIST cargo-0.19.0-i686-unknown-linux-gnu.tar.gz 5068212 SHA256 30ffc32615626b746cbdd2c34d79b3de8ae9889ae56ab33feed9c3a1b9c170fc SHA512 bfe5df682eb566c91995b8c00b5e8edb5d2c3410d1baa5be2ede2e39260b653d34b7723c6c3e8f07d8102ffab50b13e62f9f2d816dad8fba9f39b7bec984181e WHIRLPOOL 3a2c9f36470f611dbd4d8e48c94b401d584b25208abafa1a1073eca33009185e37d92a3f59200027bcfb82bb50acbf5acf4aa87649360afaba7d380bdfcffff0
+DIST cargo-0.19.0-x86_64-unknown-linux-gnu.tar.gz 5133993 SHA256 24d5e01b09ba0fb15c4b7ef4f527aca874ce2e0cebc3850fdc2535ac7e25b205 SHA512 6fedb8f83d70dc4fb93a29d400577a5578ceed1448f4e85e8a9509b98b037a125532ebfb6a7e6bc9411501ea74774d2c47ac7e2bcb7ac82baeb925abc46609e8 WHIRLPOOL eb76664d0ac08389beb9feae5f6d603b6846cb3d21f015e97bf702789afa7cedd4cd1fb04594d48af8840dece0bc9c44c74fb84390c5b24dcb5061567b59737f
+DIST cargo-0.20.0-i686-unknown-linux-gnu.tar.gz 5149726 SHA256 1a6b45f04d63d54c5d265e8bf1d647df171c1624ca1c081d75971eb8bb741d53 SHA512 cc84c790826a451fa7a6797c6fc4f5fc848aea17d5a4d0fd082a27f8f1948083dc0af45ad5216d62817aae57077add6c226824a577d9d3873e0c8bc5ba9eeb6e WHIRLPOOL 208a91156af66b8aaabe48fae143970ab614561ddaa645ec37bb4cb9aae878a9ab52b384debb5bb2e5f8d73ab5877e51105da35ced7d797bd2f939454cb84263
+DIST cargo-0.20.0-x86_64-unknown-linux-gnu.tar.gz 5209416 SHA256 a677d13b01d00ad13edf75c7d1b484421c7fc09338bf9ed6d456b4685bb42ed1 SHA512 de7fc86e39da132f29fde07f6c232fddc41bb766f3b540f1b16ca9dbcf408bd5e522e82c5e2d0930a2803b42192aadcedfa8ed2837ca53bccc16c46e76fd16c3 WHIRLPOOL c05e79dfec05bb012865ff7177ab998bb525c041f0f227a6735f69eaa09af2102152ef8f2a6377f6de2efd8890c1ae95260022efb104daec594919672c90eaa6
+DIST cargo-0.20.0.tar.gz 657472 SHA256 f0e21d23cffd3510ba8a65e6a4d1010073afc0e573d9d92c23d22b868ca0bc42 SHA512 b4e31ad2b16d9ca361ceed657112ef4647a872ae8e16052810b6170cd8cc37ecc3c903e7c2d98f914851b2210b35551483ff9e2f0da135aad47e48bbffa4a8eb WHIRLPOOL 0ef1cd0517b8f5eccbfb83427434ad1423791f218c571e355653cadb4c817c0b7bf2a65a0a40691ed7abd8b7025c87fd63dfe93a5eb0009f4675bd6bae9e89cc
+DIST cargo-0.21.0.tar.gz 665343 SHA256 7c36cfb515c37959f06f9e6e7de28fd40eac70b53079f8abdd55eba6ae49bbff SHA512 5be5f4410ea4d5a23a62e6324917d91132ebd2a0644039b7c8bdc671a5d569c22965f4e0aaad317a05e670d14aee388f75baaf215ef97fb49724ab86702ea7cf WHIRLPOOL af07ebfedb2664ba719c806687b281a2e082f29f4dced9349b862208def9e00e4473da6e12abb5f88775e73a9d403ad680111f11319b21f7525c97bd91f15a64
+DIST cargo-snapshot-amd64-2016-09-01.tar.gz 4453020 SHA256 365e5cad79512d244b8ced32f8e5b86a710fc6c17f0d0f5f744b8058ef6dc756 SHA512 a87cd21e5be8f7dc580e1d0b78a2ca57b98c8cf09d5d1517a7422448b5e27e6af82ad61d2170b39c2265fd02078ceb9714bd6e79116a30d9cdeefdfe97eceeac WHIRLPOOL 8f7ac8c98a79f59635bcfa3f9872495b0476bb3e9997d09d404169c12cc43f2aa810eeba8b55247abed7cb1c6b4526d9f9ba0f757427f02a15c59e9061b4380d
+DIST cargo-snapshot-x86-2016-09-01.tar.gz 4145052 SHA256 764617ab0a46edfaf5d714488fdb8283edaf9bff96e7132844d14d44c14e69cb SHA512 8f8715c117f7e54101db7dabef12a0a69696a3b173789e4b1c05f578d785ee4f77ecf9f9076d0caf74e1f0effe6c68304280afdd4013e9d8f840b7e090e6c137 WHIRLPOOL de900c1b213e46b28e651d73fb5be13fdf5a28b588ddfdf2ddee3051f94cbe86df1652a7e5a714e76e6d9846fa17094feec6456b27da075d92d7faa1ecb40877
+DIST cargotest-0.1.0.crate 335 SHA256 9f159eae7986fc918c85a308f9389aacaf569d78e0431e777376432d7aa4ddd5 SHA512 d96dfc584dd6c0ed05b609d4fc4375af4950e37d41493113d2693c5180ebb11987c4f7e3fe9e5ccb4b71f37b3afe3bcc646f92ad325ed5fd1df92ac5b095dde8 WHIRLPOOL 21331acc22c77610fded8b48f0e38502f63b7fd7a33daea02d4bd00022ccc59238d5d909ff25fd22a984fb4f7bb39a41abec83244a9f3500c853b3411b714d3a
+DIST cfg-if-0.1.0.crate 2758 SHA256 de1e760d7b6535af4241fca8bd8adf68e2e7edacc6b29f5d399050c5e48cf88c SHA512 d2f10ae39a7fe712cd9d228e3b5a96448acaeab3b92d1b97229d54e5201237b9434ceecb1f38f1ebc1f678da5cfc33aa46c810f422f68a21aa341666c27572fb WHIRLPOOL 8a57a78a8e4a72c3321cf8ac97c2b50f18eb4ed35b2e3c22ca06b5f8031eadccce015237ac846ce78ecf9414632b75a04b168993439d1469eb928d4d05c843e5
+DIST cfg-if-0.1.2.crate 6668 SHA256 d4c819a1287eb618df47cc647173c5c4c66ba19d888a6e50d605672aed3140de SHA512 ed6732d8ef2c99d99861f5dcfec3bcd2d1b62dcf6e8e4e88ca25148b5566f86418270dbbe9a7d2fae62a8320d432c5e0474059fa25a11c0f66787084e36f36aa WHIRLPOOL 4b5e8a97b7dde903545e6e29e333ee7fd06435621cc6de5336974bc648e4c21da71e0a8c0b13235bc52577bd9dc230f46bb8008bf026b67f9e01f250eb12925d
+DIST cmake-0.1.18.crate 11546 SHA256 0e5bcf27e097a184c1df4437654ed98df3d7a516e8508a6ba45d8b092bbdf283 SHA512 9bb2ccc80a2ce3d9d437623059e892ea06ab3c46fe4a43735d83fba9b9a03764a619b586cf23392959456860bbf90f498ef563757c13059addb1abbed1a25e3a WHIRLPOOL 2b1920bb0802460f8ab1d8c36aa2351581e40b3699c83ba8bb8411d85f941703fa5436bad83573ab871be9b68c3d40b767743a6ae88112810fab1888a916bd6f
+DIST cmake-0.1.19.crate 11698 SHA256 8ebde6558caa6cf9bffe5750c66c517e7f9d470d59fcd48b0acbc0a02d62a82a SHA512 85c73b5e36e58f75b58a853275e30afce4c12fbaeca9532bd01f90465ad928bcb565b793e7de21154e794c604d5abb99e5b269542e4a1fd6b3724037b49f8520 WHIRLPOOL d972f4e3a9f7c0017e53154c0bed67f6c49d69a2992e7bd469252400dbd062b893896acc71c5bacf854a682a0744d933a52eab243414d006d24f0873797fea91
+DIST cmake-0.1.24.crate 11525 SHA256 b8ebbb35d3dc9cd09497168f33de1acb79b265d350ab0ac34133b98f8509af1f SHA512 e8191d4f6b1474cb02fb66d2c32bd6a49c052bb91169a6091623a288f751a7ed595e4b07676c82687fc7fb55850631ff26a50016c56acdc0f74fa31b6a17ab84 WHIRLPOOL ab630d413b7550b9f864071e2fba729586429faee68ad52ac2c5a91b8adedd83c00d0b461601761bf5f0f179eb19a67e5f7f8a5d8390ec422bf110ed4b7540b0
+DIST crates-io-0.10.0.crate 3548 SHA256 84b8ef70d98451b2d73bbbe50cb2b64c7a5765cad83ef3dec6ec943b96eac1c2 SHA512 6932cdf682254b5d68854c4c77b08ffac306e6e8e067a755c325a08b312be28f7175da229315d979902f7807520f500dd2f1f1b7b872a83ee1b22d98946c56e8 WHIRLPOOL d54cf2d46eec79f342f56825a94250b4f100d71e9affc31127274a4f8625071862a19f7b789619eef773e03eb0ac039273b7192257b20dce08da9b1a1f565225
+DIST crates-io-0.4.0.crate 3080 SHA256 e945be5e805781ccbc1134c481b4535ffefbfab9d2073c2121fb2e1cee52664e SHA512 c63740f8b17cb35502c7d9b2845d355851ea559dba0b5321b17987d0a5c9f712d2cd8dc394c5ec998e223b422d4a53aa759556c92fe279a6eb0f5007f7e4346d WHIRLPOOL d0d9d4acd01661746ef558ae452bcde9c98d92690345ca727d5355e780f8b8ff1ef1a46801d930a71f0ae5ff377ecc539ed725b7794b58238651193bacf5b006
+DIST crates-io-0.6.0.crate 3387 SHA256 14982f07738e88d42b575b67b8a902da50473efdcb30b9c43a27e08f399a1943 SHA512 225c0582e2ff28fc7a31a3c5d89f6731cab0593cc9adf2897a1a0f6a8436f58a32d46976241b813ff84de5cbc30e505812b7536df7766dfadfd5f0452626b5c3 WHIRLPOOL 2946deaa0186db87a20064c50c9c870cdf8ef9cf9a358b8fba4b56965f9c252d9b92d2861a54e86ddec00d163bfee0cb7812b92bee4d188181231fcd510365ee
+DIST crates-io-0.9.0.crate 3518 SHA256 341e08bc12f50de704649e7472d39bb55dea3ef1ff65dc4301257ea41a048a5f SHA512 8fc628b073c192568045a7816b9dcc92974f8cc20feb3114283ec890a303211d4529c31643e1827f8c92027ce0a919c5549ad70b55a024464c73672715bcd39f WHIRLPOOL c2394ede37138e10d18bc1440563f533e59a7bc0cbe74907f1e210b2ff0e00bc10890059d7fcf32ebfccd97d9929ef0aae9965f3b68d43b126a48c28db97b020
+DIST crossbeam-0.2.10.crate 32993 SHA256 0c5ea215664ca264da8a9d9c3be80d2eaf30923c259d03e870388eb927508f97 SHA512 cdefcda7626c08ca59bdf5581e0e8d3e6367081089cc32dad6e84b5f643c7cbc5b08ce47034dd925fe2f5e2dfcfd18afb51fba511265ee3598fc1844838948f2 WHIRLPOOL 764f0a48c300a587ea56b5f0f7f55d40d8330d0148cd309599b3794d8c28399531b52641a58cd65eb9fb0107ede1a2e7f119c562d4781dee3a8c360b0a5af73e
+DIST curl-0.4.1.crate 53884 SHA256 8fd5a1fdcebdb1a59578c5583e66ffed2d13850eac4f51ff730edf6dd6111eac SHA512 357689f9927b57341324948d4e7f9216f9a21fbbf12b864122509a11565fae4b33498b75b85c0b45566d6b2a432905f140c57889a5e4fd8c154b3fb36e81f284 WHIRLPOOL da72959d9a8aefe5ac1a9b1b2939fa67fbb93fb01a4471efecd3085e8eba61c56018bc5a866d6db3a1f78ef1eb426890cb691dd28bcf5e4212fd68e76fb2f891
+DIST curl-0.4.6.crate 57831 SHA256 c90e1240ef340dd4027ade439e5c7c2064dd9dc652682117bd50d1486a3add7b SHA512 865b0cae00d0b160bcdc515e7e571b12ccd46189721d26b0642e86cf78af2f321524ef75704213b2e75e301bd5b04e466b422ab28419fb3a74f1ed7715e500fa WHIRLPOOL 704316d160662373e8975bb217464b984640bf3936d0c8cdf279c805707b34017c91cedb1644ea65ca71ba69f78e96aa5957a12127e7e40861f7af1f34a479c9
+DIST curl-0.4.7.crate 67930 SHA256 6689276ab61f97c660669a5ecc117c36875dfc1ba301c986b16c653415bdf9d7 SHA512 bb05446d221a4cce48dc03003d16c8c9be7f2aeda9de0dbea8de96d4353be3f2c03b32c79b61921a90fd31e5eda993ddd4b1b9b229e198fae82e13d94907e4a4 WHIRLPOOL af9c701dd8d9cbc356abb71752d7f3c222d48f405a82279e6441b1a557b273557170a180de8052178c7568b6cb1482f2924c804d9edc7b36a125632186b2e150
+DIST curl-sys-0.3.12.crate 2980888 SHA256 f00c8ba847fb0730c293069b4d1203dc01bf3c2e1f90b4e55f426ed8f4a1eeac SHA512 5a861623d0645da868bba3ae60c1a32281ec36914c38ae931b0ebc76f64395e6f80c5fb256cf1fac7e20dec442264a64188b6fd78b23be2ec16f47865171cff7 WHIRLPOOL 2fb011527ad0ebee88c67bfd2750e57dd1eebad87b30adba5a2ae3bb1220c55181f6a2755c0136584e7cf8be531c2aa3e2f39dec2bcca5ff0c06069c21de1499
+DIST curl-sys-0.3.14.crate 2980965 SHA256 d5481162dc4f424d088581db2f979fa7d4c238fe9794595de61d8d7522e277de SHA512 a8956c978ff35a84d493d405cf1d3e9ce24147c4a850710510f3ab2f461d5e6c832d47baa1abb6c34d1935d56a2f927460d5981c2ba7aecba8d9a751776e0d1e WHIRLPOOL 9d18eb045987f048e039a663881d5d50d146c76fa876254dfc0f4d327772bb78443701e0d2f2b2c870bde06d589740cbb68a44e501d6ca36834f40862c455b06
+DIST curl-sys-0.3.6.crate 3196287 SHA256 218a149208e1f4e5f7e20f1d0ed1e9431a086a6b4333ff95dba82237be9c283a SHA512 10d5308e60be5c08cf4a61cc991648278f832bb9630a3c84fa0f389c53835ed99b74ce89a99ae3ed092685a80f0d50276faea4a42bd2bfb16cc536b6f0b7293f WHIRLPOOL 2a09bb0e2975af780ed37248b46750c7630974e577da4aa9c199a86c02cb1cef8e775a366924a584715029713c15b9bb2f3d3059666c5fe2acf9c83f356ca204
+DIST dbghelp-sys-0.2.0.crate 20721 SHA256 97590ba53bcb8ac28279161ca943a924d1fd4a8fb3fa63302591647c4fc5b850 SHA512 83588245f1df7db15d0c1b0b816e183c75238bcb90776ce42d9be4a9f06c64ab761dc10e2b3da566cf0c392b22acca60c96a8a40f6ef95d4d3f3f570af3f3d0d WHIRLPOOL d7f5f24c7aa5afe267ba8e0fef10a7e53fce1f06b0f8ab803e25d79631f10aa3bf7ad1473fc677db708dc7974927f02b92bfefc6cd7592bc1471a1e487ebd5b9
+DIST docopt-0.6.86.crate 41141 SHA256 4a7ef30445607f6fc8720f0a0a2c7442284b629cf0d049286860fae23e71c4d9 SHA512 f79132ff3d49ad3a4eb37179a8369def367d39110829e673d926d1ba252a63c6f8241e8889895d6cac68af2543de176255a8641e49958746dd729837c54d0da0 WHIRLPOOL df303cfbcbe1ee0e967225cf05250ddf42f5773a89dbc5063a6a4c2e1d36ca5ec003fb39ac85a28669f7da4db3cbc9f648cc2489e203912e817d5905e1462935
+DIST docopt-0.7.0.crate 41313 SHA256 ab32ea6e284d87987066f21a9e809a73c14720571ef34516f0890b3d355ccfd8 SHA512 f95549388ee834bdb3bfc2615338990e2e496b1e5059bd92376af5e3a173c365101c5fcc7e82a3aa0ee67ea8362ce98e19df4f02bf65cf14287d61e68299be09 WHIRLPOOL 3e77ec84a9092d0d11e9bdee4103a5f2e88ed1ef50f6c272da2003c51d7eb2700db28122f4a9b4823269190b614184fff40e3b117b5abb7e4a6ca4781173a52d
+DIST docopt-0.8.1.crate 42801 SHA256 3b5b93718f8b3e5544fcc914c43de828ca6c6ace23e0332c6080a2977b49787a SHA512 478c3ad7bc0df47e666527be26c2ace86740848f8a3651f4182e6573dc5b3087efc949a73467e3712e0610b412d9847dcea2421f4fef44d8786ef0f3f8f3ba6e WHIRLPOOL 6fc275378258e951a706b75482434758a2759ad99f6abb702ee872598cb0f8418d555c5ac561b66faa466d0493654b74e5c249076c5db4929531d9d20ffaa95e
+DIST dtoa-0.4.1.crate 73264 SHA256 80c8b71fd71146990a9742fc06dcbbde19161a267e0ad4e572c35162f4578c90 SHA512 eb1be73a72f1b301371484aabfbffaf69692ad6baaeaace810d7bc8097a5084cca8cc37abf561b1371cb08fad04e07b24bb2149620a785387759813189682fda WHIRLPOOL 42a0db475f9a76f944016919e1050196b0237e33fbcb0b5b6c597add90f8052fa1a6b532009e57751ad6145c5d9c2f3798e637ac060fd1891f69366ed1c37414
+DIST env_logger-0.3.5.crate 5950 SHA256 15abd780e45b3ea4f76b4e9a26ff4843258dd8a3eed2775a0e7368c2e7936c2f SHA512 9650ba32bfaa8c013c04cf2eb68378874fed53a178332151bec8d7ac832ab2884f91fdc39c372d3c1677954b073212654fb570da1f3c708e4d5a25910d6c1181 WHIRLPOOL 21b4c81d96e5a8ccbda8491df42db9144acf41f4a25b1f510d8af7d46c931a28e089615692d46d9eb73c511a9cacfb59a15a5647ed1eea6d17ef9a973d99f5a5
+DIST env_logger-0.4.3.crate 10891 SHA256 3ddf21e73e016298f5cb37d6ef8e8da8e39f91f9ec8b0df44b7deb16a9f8cd5b SHA512 ba2c10608f87804e528a2de28c236e780485413dbc3835b5bd9acf4a9c11d9c66665a310747b5d8a5ef7752186ab8a1ab5fbf6042657a3447380cb0869722246 WHIRLPOOL de63679ff8d1f02c57510020a459c8285ccb338f04dfa672a5cddc4718139fd4ddbc931237e81569209fbfa3eeaadc7b6f05649f58ef9018345bbdba2925d39b
+DIST error-chain-0.10.0.crate 18432 SHA256 d9435d864e017c3c6afeac1654189b06cdb491cf2ff73dbf0d73b0f292f42ff8 SHA512 77552e8db32e2c7d37e01b1050fc889964193d21f281c3ad28c6adf5fcf8d3ee4c73fe182b27282fba4dbc3e6584df7894a3b1fabdee7e219b6d59fcf18a1a3e WHIRLPOOL 658b091222e672fcaeb67c686a8dac21885311c712690e60f7b812ad47e2cede12b5748df440dee3a354da518bfda702ebf6371e06b1bbdc0e57e748f45f7f2c
+DIST error-chain-0.11.0-rc.2.crate 25349 SHA256 38d3a55d9a7a456748f2a3912c0941a5d9a68006eb15b3c3c9836b8420dc102d SHA512 20c555b451ed10d800090457d6ae0ea2a8628c8aee8faa45c8bc59e7802b3ebc837411c6f6b67e05bebde6fef2225180ec74d90f5b643c5fe20b24e1b04a38d7 WHIRLPOOL f890ea452f8cc2cc66403aa16081d92e044d76db926ebb93ea463d7af28f9677dcbbaf71bf76215527450af43b4763626ea0004cc2b5cb449dd52917ade41a5e
+DIST error-chain-0.7.2.crate 17208 SHA256 318cb3c71ee4cdea69fdc9e15c173b245ed6063e1709029e8fd32525a881120f SHA512 7a29d11b57a8c88d8ea347f80f71f9c4ce0b022fcd563f3ced973d6e008f1c0ffcb958bac4108cb02739547a334d6473d7aa20f66feabf06c68f82dab23e1de4 WHIRLPOOL 703381dd5de1ddcc917220b896ebcdfad1664f8371ea5f2103b02b64a32b3d1c594b60b02c1da0011db58fe9c35cb77dcf2323d2f089f3d9bcee5da10ce9460f
+DIST filetime-0.1.10.crate 8884 SHA256 5363ab8e4139b8568a6237db5248646e5a8a2f89bd5ccb02092182b11fd3e922 SHA512 19245d71f60f144828adb6f9336adc5371e559decc8740338122327d28b7c548d011d9e6454b12475f0eb2db7dacdb1e2bfbef01311f59e8338f44d27c3345eb WHIRLPOOL 2af8d65033a9cef609d6688a32953c8ec9ac591ed6c357b62f86a028124d1a0c50199daadf839079771c00b4201971bacecc3928094fd77f9d4c872be8e01c10
+DIST flate2-0.2.14.crate 46692 SHA256 3eeb481e957304178d2e782f2da1257f1434dfecbae883bafb61ada2a9fea3bb SHA512 efe87214a33557ba7f3c255de21f8e556402f947bf7fdff36d4fa98999811bf92efcffdfb53bb1612a8c995673ef423d66906f740875b2213a2fb78306ed0340 WHIRLPOOL f287cd8904600e80337895cf91d705053a9b4a810c199444cdf50b18c45d1fdbb295b31fde7309caf64ed7b91775bfbbcaafdfc026e59f1b11bd82f7c6317d90
+DIST flate2-0.2.19.crate 55174 SHA256 36df0166e856739905cd3d7e0b210fe818592211a008862599845e012d8d304c SHA512 c0e6a011067a7745b8926be752fd7d43284c38571b873efb57dc6fc6f3530f4305069a8e83b92bc0242c72961352687a62fbbe56edcac6517139b19c9585c82f WHIRLPOOL 024273f0389dd2f15db267f821d548521e4426a844282c43ad8f353fc0388458f1c1d5613d9ab4aa0e69554d435b0539474f3c071e4f85aec6f3ff1bc2f68f6b
+DIST foreign-types-0.2.0.crate 7182 SHA256 3e4056b9bd47f8ac5ba12be771f77a0dae796d1bbaaf5fd0b9c2d38b69b8a29d SHA512 aedde435a898d65473dfeaf27eb469bb76ed9cea808b3e7a9eef3087ade49e3e39a3997a515882262901988a0ff17a68c9486a635da9829eb0fbf5a708260fe1 WHIRLPOOL c7ba139fb3e9d764b3595a5b510305c724bec84b9fa965400f984ba75472aa175dbdb5d21b6a087a1a30064f2e453c3801a9dfa86d6752ac7824afc8a11a9583
+DIST fs2-0.3.0.crate 11874 SHA256 640001e1bd865c7c32806292822445af576a6866175b5225aa2087ca5e3de551 SHA512 00423172c7bfceae2c6e769c414d460d61a763d533073cbffcaac60979493b00d19dff3b8191c4ef97c87a4f860dd11fb4f0aafd730a6a3655665a9f1d83c0d8 WHIRLPOOL e29563d93b92aa2b0bd584c8f2bb1f482d6d942434b129ad79f777692776ac907e475f6ecf805e5f23ffacd7c58ca8f7861a2553fc92b53ecd177b8a174843d7
+DIST fs2-0.4.1.crate 12039 SHA256 34edaee07555859dc13ca387e6ae05686bb4d0364c95d649b6dab959511f4baf SHA512 2c27424c716fa69a0d53784285683d8d87a26abe2875bfb9135502622ec4656ac6ebfe508a24b413444aa5c0077c2a022dfdb3d19bf4836d8dd9d006af5c418d WHIRLPOOL 3fb3f541e6fe6e642753f1c777eb20deef24b8f44a613bb6e77560411808c61a49c0e11bc67a3eafca43d07d45dc4766100c61a49860bfdb1a527255a84f9ca5
+DIST fs2-0.4.2.crate 12815 SHA256 9ab76cfd2aaa59b7bf6688ad9ba15bbae64bff97f04ea02144cfd3443e5c2866 SHA512 626c5edadaf356ef9d13ac042ef517f317a376fefc76163e3dc7573eff024323a2ea0f9c1582db5d797eb2ea64f2d27e7877e774154f5d5dadc506c926a5dfef WHIRLPOOL 4a794853447219cf79fdf624a24f01b96169ff40be2389483e80bb1196238359c992703cb086c9be463f9b6bae170843515e01b710b9cb2e6118b00a56e48fae
+DIST gcc-0.3.38.crate 24427 SHA256 553f11439bdefe755bf366b264820f1da70f3aaf3924e594b886beb9c831bcf5 SHA512 cca8e2ff6acb8bdd87017808d2ebd70db5c13a2a6cbcb8d251c8fdb8b92a0ae1738ed6ae4d0879e264aab7ea7aa7874ea4e21c7230e2d859a3f72c6200ef2025 WHIRLPOOL 743929277e67b75e50be9e31e7ebe1043dbe86bdaf6a1636bae9ac0cd4632020399f4b325dc1d349aa90994ae8a76edfb373bd80633fcbf8ea70d4c4e5967f48
+DIST gcc-0.3.39.crate 24744 SHA256 771e4a97ff6f237cf0f7d5f5102f6e28bb9743814b6198d684da5c58b76c11e0 SHA512 7e253d1e1cf4b86b3ddb463975411473525ba3d8f2417b68fef07fe686c08452657a432aaab1ee05b37d73273544b3e3f97c41fdc1c2c2c505766554e04327f0 WHIRLPOOL 71a07a816a699e087753c199543d344cf6e7e54340c78f7baf926a9efff35b30d8de477a50140bb9fe26018229fce9f73fba201360b091d0b3c72e67d54a1c94
+DIST gcc-0.3.50.crate 33085 SHA256 5f837c392f2ea61cb1576eac188653df828c861b7137d74ea4a5caa89621f9e6 SHA512 d4e15365812336fe263108d3b24206d4de14c350ca2fae620d232d352a2876905468c3adc6829e9a517a6689398d45ef96ffc0fcb846c8d76976f77194a39222 WHIRLPOOL 1f595463778e3eca21ce4ef51cc56df100b7e23db48c2554979434f4bd5adbee5b9ff9cb1ca71d78c3e66e287430227e4db7b46d44a632c120a3a825b5e0897d
+DIST gcc-0.3.51.crate 33348 SHA256 120d07f202dcc3f72859422563522b66fe6463a4c513df062874daad05f85f0a SHA512 0759969001bcc8104fb66beb7c42248d583a857d6b06bf6eb00e4ac1f72f63e1ec6a314f4a67a5d6c4b788eb6c891b98dd76dbf6f72dd74f8b33ab56087ca9a3 WHIRLPOOL 673f1b75f7e0cd8349f24659ffc4d8e1d6cfe64d52b30538902576c6b3b1732caeee7f9ab025400a12fca012eb6ad71b62950dc167cbd513a162e71fae4f99ff
+DIST gdi32-sys-0.2.0.crate 7643 SHA256 0912515a8ff24ba900422ecda800b52f4016a56251922d397c576bf92c690518 SHA512 009f51899ecf9c8a6c688c3b087c294482c9d4c09b9c2b7fd5d949ed269bed9dea7ab5ff95ba9524c3402e4299d944205187f99ce0d0300a1646ff021030f19c WHIRLPOOL f7a8005023ee0cf45af76580acb0960680694a3481c8ee2a6d78278f438fe35a245672854720984c7a1c6b81152bd1f705a78f4c554aced34ad81f882c0305b6
+DIST git2-0.6.3.crate 126947 SHA256 0534ca86640c6a3a0687cc6bee9ec4032509a0d112d97e8241fa6b7e075f6119 SHA512 c78bdd853bbeb24d8e730c48f335ca9bb79d7930a83a52cf3d769b4a9feee418d4885aa1da59c966bcfec5e6280a0854235a2042c94ac11d65832d72524cf6a0 WHIRLPOOL 57cb17d1cf6c9ac2e39b7eb719d388aaeeb19860dd8ad346aa020ce126b5156585ee71ada2117af65ff09d711e67b327fb96194198d262a1dd84f88e2d029ada
+DIST git2-0.6.6.crate 131360 SHA256 aa01936ac96555c083c0e8553f672616274408d9d3fc5b8696603fbf63ff43ee SHA512 acba69cab03e2205b5fd5db2620c34cc04d24bc1ac7baed5fb7a1452613a78da1fa42c90c6922436386b5e96650f85b8e628f24754d0aecdc8273f19bbdfb21f WHIRLPOOL c198a75e23c1651968e594da691291447dbb785963ecab4275fdf1ea884c9f6ac5b61a63036dbb8069a05b2564f8465ff7f998c587c7768efe304ac583288ed0
+DIST git2-curl-0.7.0.crate 4097 SHA256 68676bc784bf0bef83278898929bf64a251e87c0340723d0b93fa096c9c5bf8e SHA512 b6adfbe6f75afa1fcbbc0a38f9dd13db87bde6e81eb6403a3f47c4d25a26301677614af82f1c7cb4a4a2122910e0f6450d7555f2bbe9ac97dc1da1243eeeaf0e WHIRLPOOL ee024c845de6171b657d74b69b576279dce07a7402d4c6ea13d49e034ff8f8e388edbd20bea075f06b38a365d3fa377dec58e88b8acdaec35a0feca313ba553f
+DIST glob-0.2.11.crate 18065 SHA256 8be18de09a56b60ed0edf84bc9df007e30040691af7acd1c41874faac5895bfb SHA512 91a1a751bc4ed3b13154aa056180f2b8123c33627cbe972bdd7986fb0b6f1ef90e59abd4128d6e4db5e69523d757440c7df9b9721a61f5ea5a091ffc9843e10e WHIRLPOOL 5f9b80d74ffcda693a008367d73fa0646b1dd73068fcd0075227d15c9bfcc86a05fe8a34163fe9d12806ef10d35f27649459ae05de71abd3a044f99baae041d1
+DIST hamcrest-0.1.1.crate 9217 SHA256 bf088f042a467089e9baa4972f57f9247e42a0cc549ba264c7a04fbb8ecb89d4 SHA512 6d6557cec99f482d6a738835d32504252e0a666c1318f6f0ac0f811afa7c087c048960ecd2fad22b403fae9a00b06f742de643a7b5ded1f816c118272232ec2d WHIRLPOOL 463d49d5403692dbe6d604bffdf689069e7998aa21e8658c8478adb9a8c4aa3019e063278694aa8eca98773162f90a1da126b962a487d8bd99f32048fef939b6
+DIST hex-0.2.0.crate 12368 SHA256 d6a22814455d41612f41161581c2883c0c6a1c41852729b17d5ed88f01e153aa SHA512 9dafcd03e7e244b8134cf33141888788c722d64c6099946ea63d6ac714e9a1b2a6c158a19c2a85ee488ba32429306174a4778488579a65da08084b468259ec25 WHIRLPOOL a51a5d58c6eaac60fa0c06856c817ac926288f05a37c874b7bdc20546a22ccb06e4a649d2fef48613ce7d3947eef6f5f862ead31bc25e13af3e0f16e6a7ce4cc
+DIST idna-0.1.0.crate 234027 SHA256 1053236e00ce4f668aeca4a769a09b3bf5a682d802abd6f3cb39374f6b162c11 SHA512 a3bdcd7934c8f2823e8be7b467a829334ab53c71e225f2ae73b379db6bf47c8c8fb28d30900eb18c7ce79e9d9780d45babff3d7e77c20640001e6f6ad93b2424 WHIRLPOOL 9bfe69ec718606736b4844a6884872dfb2cf608b3a21494016abbcb44d08400c489a8f51f142b6892501073d3d67b634d6ab593c0282032f5be3ccbbc517db0f
+DIST idna-0.1.2.crate 248301 SHA256 2233d4940b1f19f0418c158509cd7396b8d70a5db5705ce410914dc8fa603b37 SHA512 28aeb6fb22f5d2bc47d12d5bfaa24d6c6b070b1dbe66f66a8756bf6cef5f3f21017a4005f507c6b5d86944d54f82d0c7ea2b9aa215a1b758dd420dd648726626 WHIRLPOOL b6a8101bef0bc4ab7a8e44a67c57189fda9ee7515614a7cdd0001f5005dd42e0211aae4d33757aa7b98f021689d361a16ed618e9752476606695660abdeaf1fc
+DIST itoa-0.3.1.crate 73340 SHA256 eb2f404fbc66fd9aac13e998248505e7ecb2ad8e44ab6388684c5fb11c6c251c SHA512 b6ade2740fefa2e437ad82a1b9ad7c284593f3525a6e746aa377e0d52b434f7f46a073df552c5ba9e9c47f1737f349654c38261c08ec762dfd9238a8d9c3d3ee WHIRLPOOL ee7437deaf3fef0ff242212fdfd3851fadbdab004bc805f902420dbe9a264bd7fa60c41625595283f511c2e069357841dec6a54cb7bdae494fc6f85e760bba98
+DIST jobserver-0.1.6.crate 18407 SHA256 443ae8bc0af6c106e6e8b77e04684faecc1a5ce94e058f4c2b0a037b0ea1b133 SHA512 ef32d6741321b04052ecdfdae1a1267665dda4f275fa6b0d875cda76804a8e704e54a1d9bff478fbd196b5434e651a82b800bf1c9f5c726bfc8ec6d3d7c8ce37 WHIRLPOOL fd8cfb0023092bcec46201a7b8bbdf2ea3beb5f493a3351d08a24710340c833e3c35b9df08bcae9fc163c58f6589a4ccce6c8e7a000c614d28ab830b97a26508
+DIST kernel32-sys-0.2.2.crate 24537 SHA256 7507624b29483431c0ba2d82aece8ca6cdba9382bff4ddd0f7490560c056098d SHA512 682bc7c629aefd035966a2873518fd60719121cca7d63d89d6c97ff5306f24d8b5055a3c91b4eedaec22b1d5dd3fb8b48ff7341a05bbd72d86e06c422dab473b WHIRLPOOL 036baa6611f13d76692a5c032e7e8e8b5a82e12bdf13d5a2cdcf4d33020b003c941331f0c8aa774e7f7cc7b36ad7403bb2cbdecb739d7645cff66aeecd59b09f
+DIST lazy_static-0.2.2.crate 5026 SHA256 6abe0ee2e758cd6bc8a2cd56726359007748fbf4128da998b65d0b70f881e19b SHA512 d151405da0ff2305cb9556325c783c3214f57f7d905a9de9e41aabfcfa3921a402957b71e48b307feff4c34372e04075864d3eef3b44098df3f8015264eead09 WHIRLPOOL b228bfb5f3a7e65d6d68e6f1c74138c615fcb8c0412c90472db2888fe55bd98b1a8e5c5ba0e77b10f72a351c182743faca943194fc6780f93a0c6d0b4ae54196
+DIST lazy_static-0.2.8.crate 9950 SHA256 3b37545ab726dd833ec6420aaba8231c5b320814b9029ad585555d2a03e94fbf SHA512 21c6ea68cb40d187a19e6d960fe0d7e4671101f26b304e4cbe6124f1a3d983fc41c44c4ce9e0d9b984783b7ba94ea873236e48178bdf56cfb8c0a8cfb9ebe368 WHIRLPOOL 8350c49ad994d3404462141310d4050cbdce3ef75cdacd9ab085bf9aaf20e6db5a4dde134273d6ab0ec618275a08acf5c2d154b206d7e3c21d6d8c4fbfad67b7
+DIST libc-0.2.17.crate 108320 SHA256 044d1360593a78f5c8e5e710beccdc24ab71d1f01bc19a29bcacdba22e8475d8 SHA512 fc3a1063ee1c7dac2e4ac00c4fbbf467cd4716f28e68ee897922de0fe0bcf193d44abd0cffa9e52a01b0816549c5156723de6bbbc7e04a05b39c50765ea7d067 WHIRLPOOL a5260b8fe83856019fd99eb47411491b188e63ee7cd3202d6fc7ee8e1a37dcd57205ea03897a35aeb3eae461380dbee574edb18fee427357b1b28cb45a629bf2
+DIST libc-0.2.18.crate 114209 SHA256 a51822fc847e7a8101514d1d44e354ba2ffa7d4c194dcab48870740e327cac70 SHA512 d99e0db6fcc6538ee88109c2857a9e24641326c399f604d9704b9fc9e1d3e79eec8dfb10291499b1900a9a40f0d3d00f50d4709808683032f10fc3bdddebc2bf WHIRLPOOL d1a0129f1c752560f041700a547ba674484c9fef63f55e31001465ce9d3c83ee38e48c04663741dffdd865878ae4ad26b04e6718baf5f22e393e1b888d6907b0
+DIST libc-0.2.23.crate 153939 SHA256 e7eb6b826bfc1fdea7935d46556250d1799b7fe2d9f7951071f4291710665e3e SHA512 34620dc5ea9bb674a74a5b3d14844c098d38980efe4940538f31ab76e29dcfa6b9601a4747da7a8688758052ac416aa8dd693c752a3972a7bd66d9deebff2d72 WHIRLPOOL cc9ecf44eba6403a255285140ffb3fb67cd953550d0848b60c1c155d364afa1c1d6d7ad7768f069cd692fa0178c112ba7572f5db3e06b01ae3d04bc50fcfd3b8
+DIST libc-0.2.25.crate 171026 SHA256 b807d3f9f61fec68ffa8b10389fffb9235aa0ffa32935be864b2329de5846b74 SHA512 6555397955a975e221453f55d712edf3e08b1e9257f2ddb0a9216cb8febfd2ea8b9795ff19f4ec6c9384db805e52e6beb75a265315ed00bc481017d4ea1bbaf0 WHIRLPOOL 5c6d4c96f6066ec9078b7d3c22b24d84fecbec37f674c2ffd82b31ffc30ee3da9a76ade0b7fde094b88a006f9b0e9cfd4b7411decc070b0407ede76e6471c371
+DIST libgit2-sys-0.6.12.crate 4653762 SHA256 df18a822100352d9863b302faf6f8f25c0e77f0e60feb40e5dbe1238b7f13b1d SHA512 9793177fca3cf89fe64138e3dd7ade894318374a144313a5876ac5766e594d3999ae0bbdcaaa384412a4154e5a4848dd419c888c5ef11a2817a42dbcb4d13d46 WHIRLPOOL caa9ebe3b7e04af230242a09620bd5380625305e0fe4f217c98d4c63279c29159cb74ec7dd8227a87fed80aafe5c18890767c281d8e193d1126c898b630f80b6
+DIST libgit2-sys-0.6.4.crate 4210492 SHA256 b4a72539122e79e54cc5c4d5a7a5b53f03b667f7c22c7a0440433e658cf0440f SHA512 7fdeed9d7070518ac39fd77bad57f5ec2c4ef1043c49d97c679555d36ac50d26ce430fe3fc051cbfb619a4a62908a0b5ab1a52bf8edca1ec96f332621b312e68 WHIRLPOOL bc985279ca77b2e9ba736b320a00dfcfc27486fefd15704d085660b9e64b231ad6e0bba8aecf59a91daf450b9dc9428d8174ddb73c1676cfacbf6210fce319e1
+DIST libgit2-sys-0.6.5.crate 4211865 SHA256 502e50bcdcfa98df366bdd54935bff856f4cf11f725daa608092c0288205887a SHA512 36b5ad0893c1dbf851a4a85dfd8c55eaf8c8267bc387ea2dfdbfd2dee7545e53b8096756b1c89edc95e65cc8c83ab71be8bffa3271b7831eaf398ec744cdb742 WHIRLPOOL 8b0e1ceb5dcd75b7a5d1004567a7a4147b75117b23210b45c7a6540650a779885df8b62c476d21ece4fbcefe486db4f554cf80e597cc45109b113816b2e141d9
+DIST libgit2-sys-0.6.6.crate 4216277 SHA256 c7a4e33e9f8b8883c1a5898e72cdc63c00c4f2265283651533b00373094e901c SHA512 6cbef4a910a752b9ad4489f45f0d04ae15a68d647f054352896d0aa50513ad1f13bd02902caa814ff8aa2331d9c786aa200ba384ed3239bcee52678d4e928e61 WHIRLPOOL 9397a45aa8313fc213468e252aabd373d5a88c88313d0b777426c502948c52ac3d0739ded4882262adb5f7d075218e7f5f4c7cf60c7cf5cc33ba133dee614f30
+DIST libssh2-sys-0.2.4.crate 410058 SHA256 ed089186abb468a78f7170177304751805e33c20e7aef4b8298884ce2080b5de SHA512 a15a97154b27b8e5896352aacd717eaffcd53931e36bcfe72e4cbbd7d969129bfdcf6ce1176260177e340de7f831dca79afddcbbe62bab66c8bb833860a2bb7a WHIRLPOOL 18f81b928aec345e6fe058c28eb6489c2d9463e5683bfac2eccbc499c9a343213e9fd4943ba84b43f9752dfac45555aedb5c52db9bb28c3cc00963876d2a7ec7
+DIST libssh2-sys-0.2.5.crate 412200 SHA256 91e135645c2e198a39552c8c7686bb5b83b1b99f64831c040a6c2798a1195934 SHA512 31a8861c34acf105678febf41fa4f9418a9f280fe36f5282a079dd4cf379c08339148a655aa26916e0aba00fd906e302ebd94d9920b934ae4dda930a2e23f0ac WHIRLPOOL 2b400855e4e195624d85d7d62c1c12f45a153fc75934f749ea199fcbf07fd51ab0bd111045cdf9049eac77ba2d412ee06de09d82ebd36e28961e4d992d8aea75
+DIST libssh2-sys-0.2.6.crate 412381 SHA256 0db4ec23611747ef772db1c4d650f8bd762f07b461727ec998f953c614024b75 SHA512 2a02abf0b29025137d73d4b97a6287142f5677383f22085d3d49f76fd0c8324ef1baf5e9d763b6cc2dd1e339f697b9466341ded5ae2c8cfddf6eeb74e870f8ab WHIRLPOOL 42f96a15d79cb09934db62fa53ca8d41f87f9079631591a0fcc5a39d0280c34fe93498e2c5874db67a056c8fe4cc195276f007c90a663eeeef108eed4d49a640
+DIST libz-sys-1.0.10.crate 602079 SHA256 905c72a0c260bcd89ddca5afa1c46bebd29b52878a3d58c86865ea42402f88e6 SHA512 0c0e61ab153d191a9cd2c7f8f54ae208132d5880285640b909556eae7d0574aca376ffa43f106371583c6a60fc31d1a877657cdaa3ea3d72a9f6818ea87a53c8 WHIRLPOOL f07d6026fdca17771d6f326dc02e367e7c014cccd6a2e30c84c9dc3b4bdfaf0f11bd36930d14312385de20623606aef638f36e482c0ade1e81dfc65626953602
+DIST libz-sys-1.0.13.crate 602795 SHA256 e5ee912a45d686d393d5ac87fac15ba0ba18daae14e8e7543c63ebf7fb7e970c SHA512 13fd5c8be6acb39c47d1596b2aafe6e6ac576345d74b7d121681dcfbe30bcf585bf096ebb4cd62dd0805aea959ef5eaf4fafe72efbd7302810c366d0279fe730 WHIRLPOOL 809eb8e057c67db912159ab5502ebb8b3131ff7861ba7f0015563c38a1622f0981a5975bc9b2808347a080e9a791d8d0d6edaa2b726e4e12f4c2aac2548a5c0d
+DIST libz-sys-1.0.14.crate 603292 SHA256 e70195f655a44af531ad7135b1ec2a0a82522b451fe09730fbb25674a85996e7 SHA512 f62a6fbb52d8af77c7c7aaad910c169c3b0e5e5bcdaea39bf1ef35dd54727ea972db481c75715ad83e123e99fa5d0304f2706ad384b50399616a3a2860485215 WHIRLPOOL ba2072868b123d02a4b96ee831fc8e98a1f6be78391873288b3f878e24fb40f943e27be8d164afc9bfbdfca0a549512496adffd2c25785cf8d2877e3ba24ca15
+DIST libz-sys-1.0.16.crate 603527 SHA256 3fdd64ef8ee652185674455c1d450b83cbc8ad895625d543b5324d923f82e4d8 SHA512 b0d06c12b550b2c5592652d5085f4174ad9da66b6ba430d8e66e18e119ff00d266a1a325966e799e04a2c170f5728a36614a2417a3c15a3fe8e6a68aaa07299e WHIRLPOOL 2d5a923fd6d55e13cec638a46c661eacf054f4c0bf704ca338a414dc80ebe654606ffe12623f244df704089e17e400c1d5af1b07b75f424f0cff456d2061e168
+DIST log-0.3.6.crate 16110 SHA256 ab83497bf8bf4ed2a74259c1c802351fcd67a65baa86394b6ba73c36f4838054 SHA512 f2e5526a2613f70301a607cbc79213a946a6039f85473f9de28ceb2f3b464be61a584f34ca6381e077d8bf6ac751c93011087d1723649c0d7722281f1a2b7174 WHIRLPOOL 18ef70829fae28a19e545479f4fd6f181d5dbd67ea17dadfa5b8ecdb8437c04f07036de5c2d5421bec4f783ba9b6390e833d624506bdbe99d1b0c47624082bab
+DIST log-0.3.8.crate 17756 SHA256 880f77541efa6e5cc74e76910c9884d9859683118839d6a1dc3b11e63512565b SHA512 9fc80f2a72855a2b0260d6bfbdd55085791c67cb1896fd20da0a4d624125003cb0a10d9080c2fd7810ca67e41652a94177e1d091bdadeb5ea65c7c4acd666bd7 WHIRLPOOL ab37737279257682083d3335f1f05d84dea3dbbf624763f739b64da190da64458cc7a3741aa6c35ba4b71e1dad9c3fd1bc7df5334358bba3574faaf3a539688d
+DIST matches-0.1.4.crate 1530 SHA256 efd7622e3022e1a6eaa602c4cea8912254e5582c9c692e9167714182244801b1 SHA512 a0248296a155fd3132150dcd95d3e51b62cf7b99a8530f0c2ea34455a224613bd7a2d1803fbbe1627aedf826e82e746495df319b62f1189e361c9fa1cd8a380e WHIRLPOOL 06386045c0bc87da223f0590c01225b4b811c9921a3107cbd924fd0caca33d53f5278b7378438c9951f5ba037f533e05ef00a6b056f417d5d0118c4a7174fb42
+DIST matches-0.1.6.crate 1916 SHA256 100aabe6b8ff4e4a7e32c1c13523379802df0772b82466207ac25b013f193376 SHA512 0a613c6daba26056da06cbc4a8a66751412b8e5709bf0e24e45caef76e308b918a2f6038342f3428633e388fe7631fc3978673560829b0842c9ceadb4037fa90 WHIRLPOOL 37e541731d9fdbebafaeefb2bd8abfa5bc2c223a6cb557e292fd478600d512bbe627f583a98c36e89fbf8b83ca6f436b8eaf60660fb9bb8ea6c292b008044ceb
+DIST memchr-0.1.11.crate 6977 SHA256 d8b629fb514376c675b98c1421e80b151d3817ac42d7c667717d282761418d20 SHA512 96bbdb69913966326acba4bb82b8dfe0516edba225ac38b3355d60a2337ca620807750682fff3de7a2a38a7f70f0db7d8c1638701aacca7ab4c14098ba0fbcab WHIRLPOOL af0984d7e8084cc1aef94e486506a0fad9ec81d7be505233343e9fdad2ef0627a4d33bf99c2923959f9604326713ea24a01e2581aaa91249574b6c6d1a6d01a3
+DIST memchr-1.0.1.crate 8221 SHA256 1dbccc0e46f1ea47b9f17e6d67c5a96bd27030519c519c9c91327e31275a47b4 SHA512 70ee14fcba41cf896f563da48c8acc683f8cdf77c54cf9786d6a938bd14eca7bcc22c86d0d70a3cae56b2c2f9eeecad2950be759abf02fc98ef96a643af91be6 WHIRLPOOL aefc15c91d981becfdb7132c91f812430759408a6356aeb2ec3064956e55579895c59cd539ebfc4c76cd09bdf4fcaefa888f99e1ae98733e7f11654f5a8cac1e
+DIST metadeps-1.1.1.crate 2767 SHA256 829fffe7ea1d747e23f64be972991bc516b2f1ac2ae4a3b33d8bea150c410151 SHA512 fec3e82e44854b6dc4f4322727f33f2afc5e676c5fee728f299240c3eb40595bed5a46afe75f51fa7f6a32f97e12bfddd04bed92981d7ccaf9d26400b72f0dea WHIRLPOOL 4363326ee702fc1c8af2b3f4a72ee09d06491e1f1d70fc4ae8623d6df66c780660fc093697da9822891f2cc6613305db5f463b158be5f48a264d3cd9051cbb3c
+DIST miniz-sys-0.1.7.crate 53361 SHA256 9d1f4d337a01c32e1f2122510fed46393d53ca35a7f429cb0450abaedfa3ed54 SHA512 30fbd5a040cc55642a023ac45915081af5b91c7929e1d5c27f15aec6fbd714886d17b8d41396ab13329f150288fae52a1ec21e41fc3e660fb1a6bd388b38b028 WHIRLPOOL ef69781aa8ccbcce8b5ba8519233a1fcc47b9459b21a9fd1d4e48d5ac58496e5eb382b94b5b671e152531293c74121ae0ceb46ab38dbdca2377a63cf52ebea31
+DIST miniz-sys-0.1.9.crate 53242 SHA256 28eaee17666671fa872e567547e8428e83308ebe5808cdf6a0e28397dbe2c726 SHA512 130d872d25ca30937cbe34d93c6c3be359b4613c192b2dd8c542c0f3c2893c15176afc84da8e9077368647bdc0cc584aa995b3cbc8927b5e7de059b6135be709 WHIRLPOOL f2ec3f08804da08fa60ced1810fbcf6108c9ab54442ca39791d5723cf3c97224ff7927d9258b0347b535086b06972137df2322283960849d99a358b01781000f
+DIST miow-0.1.3.crate 18874 SHA256 d5bfc6782530ac8ace97af10a540054a37126b63b0702ddaaa243b73b5745b9a SHA512 e1e8be24dc4dc81a52f94d7b779d9ae3950ea5a5f74d1b64ecaa04e556c5f1a8a84058bb3388836369e15c44621f5193003499420cce3098503c47da1b374392 WHIRLPOOL c99dbaa1595a39ce5fcac846f03f30cb311db80719214dd57ead611fe2b680ff58f178219a3b4e1f9b6a43d894793b7bba4a59f0f1c926bdb5a8b5ea66cf2822
+DIST miow-0.2.1.crate 21133 SHA256 8c1f2f3b1cf331de6896aabf6e9d55dca90356cc9960cca7eaaf408a355ae919 SHA512 b2639b1976274b7a01ec3ff7fd019087775e3bc5365101b24db480bf9c9b66e8a1aa34405d44db6c2be753265a5124054eb37870b84cae2c63fb6b36bd5c6d72 WHIRLPOOL 447d7d1a69edfe92632ef63124c18764333cdc85795f7779e74d977dd23706e71aaa4c4a57f4b157e90d6f64f1f872bc7e542963bf8f645d6397f26636de9d00
+DIST net2-0.2.26.crate 18489 SHA256 5edf9cb6be97212423aed9413dd4729d62b370b5e1c571750e882cebbbc1e3e2 SHA512 60c6c3b0b9dbfd844c7b52565bf3ed4977394be6396c19aa872d9377bf1961ae3e2cdf87da3822a81d78d453369d740b0477dc48ee62834bd6be4ead6cc92fb7 WHIRLPOOL e0272f280970e9f140fafffaf4883eacfb85d4d371b4f1ff14fd5e668d10b14d051d3b588cbebe9166c327cea2dd0163503ebe4244ba393bd4d0864bbc0ccac9
+DIST net2-0.2.29.crate 19349 SHA256 bc01404e7568680f1259aa5729539f221cb1e6d047a0d9053cab4be8a73b5d67 SHA512 9913b8787a42891f7889484d89f4fe8886c2453d6505cdde68d93884a63fb7172e6354eda2dd7cd3ef8f57612d27d2dd579f2d978af4fee812a3bd941fcd21ae WHIRLPOOL ab2b387f837d91517de3248e863181fbc6e309edb5183eaa73b9c5e9b8986ae5b74479edceb2bab115461f5a5886aa335921cfc278ee8bac8885d70401875245
+DIST num-0.1.36.crate 30018 SHA256 bde7c03b09e7c6a301ee81f6ddf66d7a28ec305699e3d3b056d2fc56470e3120 SHA512 4af505c3a9b8e5343a1c565274da2ee529a418a72f4fddf6bfe2abe57180cc5e261c817f5b9d7a7c23cf73119121c149865d02a1e817cd2e5ce82369f6b4ab96 WHIRLPOOL 497da5b269ba0645c03df3a1138b917695058a39c896fdcd9e3387813f5ee2541c1976af3748abdac6495fe2ba9d6fefeab75894d35978179258c619715dd781
+DIST num-0.1.37.crate 30152 SHA256 98b15ba84e910ea7a1973bccd3df7b31ae282bf9d8bd2897779950c9b8303d40 SHA512 56fab4ca9694d323b947806f4a69af137d30f8cff5ba7a4ddaf35dc97104391ea3a076fdc4b58c9b867db5b38f4f4393e9565ee52cf176c2563db8f15a0e4ee4 WHIRLPOOL 2774e08460d4421aed2db8c344e61d1975311533188daa809bccfbb4043311edfe3baee390c6b01bdf035bbbc2c7d814391dcc5f2dbe6978843e2e1dd2ce114a
+DIST num-0.1.39.crate 30137 SHA256 2c3a3dc9f30bf824141521b30c908a859ab190b76e20435fcd89f35eb6583887 SHA512 19d04469609a80dafa8728e44b9e1a064eaa4fbecd2b8e19f67d7883b5889a2e7ae7670075bdd0e6306aa5ebba490cf7f0ca71a4de9e7000551ca0704d092990 WHIRLPOOL ef6cf60aefcbde10684316deef3d75dccd639dc939c0185e2bea951a49e8ac53ae01ad6d0743771922057f54b982e77969d91eaa0529c5735531880059c578b5
+DIST num-bigint-0.1.35.crate 31261 SHA256 88b14378471f7c2adc5262f05b4701ef53e8da376453a8d8fee48e51db745e49 SHA512 41a89872223bae94b7225937d816bde6ff7d46af2d69077b2da79cbfcbf9491a3f58ee8c6218315b67b760baa85d57c1040e3896ca6a3d6caf1014b7c9ff6c09 WHIRLPOOL fdad7aaebf71902d960564ec00eb02d6cd4289d9af43cea3166777b20fae6d4078b0cfc03db92d338d9203ba97f0e6c19974ada8157310a9e59a5e384eafe3b1
+DIST num-bigint-0.1.37.crate 35577 SHA256 ba6d838b16e56da1b6c383d065ff1ec3c7d7797f65a3e8f6ba7092fd87820bac SHA512 eceb339532789a1bad8be6cde079c291754ddb10c9d7d7a1cd84f5cf6394c4452df8bc240a231f51423318b09b43e43b09691aa796da25a45f84f3af90474166 WHIRLPOOL efbe3f29faeabaa5d972d857157c209a4bdc15d5f5f08c67d8d4df27044d94e3006b08bd176543f041a65abd10037836e2182a96ccda5cb9bf4b0f0ef6d3f9fb
+DIST num-bigint-0.1.39.crate 34736 SHA256 6361748d02e5291c72a422dc8ed4d8464a80cb1e618971f6fffe6d52d97e3286 SHA512 aba29aa21616800dffb530ff4dd4e5104702a62f78a3cc006c0fce8d03e820dc63cf7bd10593b99bbf580678e9d5cc13a738043367ea2ee3ab4e6aa70f701719 WHIRLPOOL 95b01172af60d91de5de99b6fe435a28a2d34e1e8ef7d1c9dcd24a34f8f45f3b05b2927188784445d9c79cd3c21940c7745c934431ef8c4f1f7fbec1703fb5e7
+DIST num-complex-0.1.35.crate 8114 SHA256 f0c78e054dd19c3fd03419ade63fa661e9c49bb890ce3beb4eee5b7baf93f92f SHA512 fa6d8de041e4b02813da69ae844389ba422badabfd2396f11716286edf1ba566d3d59e002e7215eb2156d74e1942c2435117054a0d9cac23c00e7285c438aa49 WHIRLPOOL 0c3abf0a916e51757b3053fe4c60a09cd5f3114cc80a76a9e21f808207aa8319cfec1625d82274928deba29c9998c20dc13d2a8875cf822e4bff2a9e6ab59be9
+DIST num-complex-0.1.37.crate 13522 SHA256 148eb324ca772230853418731ffdf13531738b50f89b30692a01fcdcb0a64677 SHA512 0a6deb8eb6555ee12b8432ead66d35b62b7c91bacbf176093b89f8c3c29ea7a3a7231542810a3c82424524f602e20a820d08e17668af073053c02b2d08dd6fb2 WHIRLPOOL 38731ecfd94b7060afd75497cfeae3cbf96c507ca14bf7372bbb2247d7e854c9fc142b3683c5914047e5e1e95d24fdc7fd29547252c9c363cedf420eda83047c
+DIST num-complex-0.1.38.crate 13547 SHA256 412dfc143c56579aa6a22c574e38ddbf724522f1280ae2b257498cccff3fb6af SHA512 4a796ce2a924a0a0867e630be657b11231a6897fb3685eff0a374d61c0343013ce60cb000a871a204156b75e83e2f6d21f519add645b4b10ee3b20633252da47 WHIRLPOOL 15f3f28741f15c6dde3ceb6cfa129f5264dbb61669ec5cc784020c2eebe3230a27079fe38a5eea8659dc3dfdcd46bbcb8903bc6fbf3fcf69a546f23f04f465ed
+DIST num-integer-0.1.32.crate 4312 SHA256 fb24d9bfb3f222010df27995441ded1e954f8f69cd35021f6bef02ca9552fb92 SHA512 a1e413aa7881928b848630f2125fc1053a085027b04df7493a33cc711549d84e0ee250f6425b978054c486bf3c532fe04beca191d1729ecccc751b59bdc6ba6b WHIRLPOOL 4c82ae27c0ef1ffba20be79e4e8dc97abc282980d8cae7440d80029029b2d09c4ca6dd8b35c8a2b74935059e13f67f053ef7d7694c4e0203a9e4dc3fc04be052
+DIST num-integer-0.1.34.crate 10400 SHA256 ef1a4bf6f9174aa5783a9b4cc892cacd11aebad6c69ad027a0b65c6ca5f8aa37 SHA512 63a7a46bd424dc2e56462bf826bf72f6ccb62b01786eb78ad901b8fc78aa2b25844f9722327a7c607c311877695e6c79889fb9e862e12f7abbe01cd5f2a3d4d3 WHIRLPOOL 581b38ee19be5dceb3c96d9f568975b0b70b697c78be7de6f5578ab382142fa638a3b6e02dea02c76bcb29d30f11be8c8f981b7dcb953e245804c074901bbdce
+DIST num-iter-0.1.32.crate 2896 SHA256 287a1c9969a847055e1122ec0ea7a5c5d6f72aad97934e131c83d5c08ab4e45c SHA512 ab13228dd619c68c8c2fcf8aababd1b4a9726f126837a83e0e0694a93a3d2cb77620f923d629bc464bdc311084b36ce6248770b965f6a6bc0694a8f6ab6d4cd1 WHIRLPOOL a59cb1f53e7b8f58fa8ec52d5d24b0cb19ae1552051cb60bd2a843d16a70f2d581095f6c9bb7650c24f6107dd177934df54f7a0db5102889b032f2de73bd0b66
+DIST num-iter-0.1.33.crate 7397 SHA256 f7d1891bd7b936f12349b7d1403761c8a0b85a18b148e9da4429d5d102c1a41e SHA512 5e27e8539b592dbc370f174d9fd3922902e6ecb47c2324f3a347fd7f4d069d5a9803a2eaa0ee228381b926249df2b3b6ced23d5beb2778fcd47c1ecb96b5c283 WHIRLPOOL b6d0336a575beedd6a853a814bf2db9f874ffdf389c80f7ec8c871d50429a5e94974ea06cc1762d35099aad84aa1f069974c0f5808a684611d2372f9c56646d3
+DIST num-rational-0.1.35.crate 7759 SHA256 54ff603b8334a72fbb27fe66948aac0abaaa40231b3cecd189e76162f6f38aaf SHA512 2bbf05b3ba1a3e98d857ba005cf2aca1f1f2e40961902fea7600cb90ae6e9b5626eb2419f214d4cd07794d6cd5df49a6ba1808fb43f2d3db40089f91a785ddcf WHIRLPOOL f3b75dcc4625b322336986d917b01d0dd811ead255b18f94ff0407fdae6147284b8e0d308b5cd25a80de8b44a0bb736b340dcb7fdced3c5b6a81b8315a843b6d
+DIST num-rational-0.1.36.crate 12556 SHA256 c2dc5ea04020a8f18318ae485c751f8cfa1c0e69dcf465c29ddaaa64a313cc44 SHA512 9325ca6415ca968df0512fabae46910ffbb3b94d61e06ee8392feb525d65654214038624b5df8ff3146cec0ed22a52b9e96bbf54b13aa51aa027df364060cad6 WHIRLPOOL 6e81f73956c9eeb5ca52ab7b1dfd7f57244f721ef95a80053fa5bf3b1b315d5faa12f44561848104e3bbe24e4b3d3f8d51ebd18a20f4e429e47240d3f4ac620b
+DIST num-rational-0.1.38.crate 13848 SHA256 33c881e104a26e1accc09449374c095ff2312c8e0c27fab7bbefe16eac7c776d SHA512 de0613f58fb30d820e20622e3ae504c3ea2946a2ad9c4bb0c5cd31271618cadfd660b595e7fe44b3b21b23490c6831b493b5764568de87a2c33c96fcbe8fba7c WHIRLPOOL 3204b4190dbf7e86a4a047ea117cc66f03ef9281c109696f65f0b77264640dbce7defac80d30357993687abe42f23b0ea483dbe011e7f1a2e75aed9fcdeaffd1
+DIST num-traits-0.1.36.crate 15071 SHA256 a16a42856a256b39c6d3484f097f6713e14feacd9bfb02290917904fae46c81c SHA512 b1d81ecb12e5894ce0508f0a23f98ad36f321a8571264753087703defcb905d982394c924e21c1da025a43e5bc964ad6d59d605d7c8a2a50addeb89fb93fdebf WHIRLPOOL 964dd256ef028b2ff6e21b70f2bcca2bc60f24854b7a5438f62a9aa69b5e5c0c5bed74f2526939545fb303c7e024911576cc8c3ec37abd923179cab93e64cb51
+DIST num-traits-0.1.37.crate 20492 SHA256 e1cbfa3781f3fe73dc05321bed52a06d2d491eaa764c52335cf4399f046ece99 SHA512 290c7ebc5a0249d9fd937350b854cd5d181dd0ca989a6d9b3d5e05e438343083f40261b4e151f3ce5546e9f9a404cb091b587bb7e1e193fbd26c3317b122c2b5 WHIRLPOOL b6da23ed9dceca1279c069bc1a64fbf426d2fcc79b55912dbbbce70c702644fae70fda09bf0c2fa94a7b35f631298d94178695469b433cb704843f922af04a6e
+DIST num-traits-0.1.39.crate 22618 SHA256 1708c0628602a98b52fad936cf3edb9a107af06e52e49fdf0707e884456a6af6 SHA512 daf317fcd87807b2e295a4f748f1152f5a9b012bdada80204c97d33e3ef18c89432680db6f79ec655e585e0c38428c50ce5fbe7215f626af6f6f83eff47a364e WHIRLPOOL 6d0d9cfa3295223ed16da2efcbe49b8f80bece95bb93dd55604cf5bd7f2cd4c92ee4eb5dada05a34013c5a17af1606fffa4c17ea9155d1cfec5ad52ece3718ae
+DIST num_cpus-1.1.0.crate 6381 SHA256 8890e6084723d57d0df8d2720b0d60c6ee67d6c93e7169630e4371e88765dcad SHA512 31999bdbda7e1ca02a4a276a47f4b61e56dbb8987747de7b6850d5c9f21e0b8c541b5fa9fd07203c8790e6bcc6ffcf9167270dd2fc9716396b8d3cb2b88bebf1 WHIRLPOOL 3006f0b30a90218aacaf9004ab68dd306ceec22caa1ab5ccb01fa9a4b1a9ef998da3bddd3514466d8d5529a74a2870a9190415460f390987694253acc93f1d0c
+DIST num_cpus-1.5.0.crate 7684 SHA256 f6e850c7f35c3de263e6094e819f6b4b9c09190ff4438fc6dec1aef1568547bc SHA512 c782859acfeb26e9a335920799a071e9ede34355fd0ae39e708fcc96372da09c3d144267e92f0ff76fb079b0dfb0bce184b9b44fdaa61a15d8916b879376c3c9 WHIRLPOOL 808a4220091b49dd6eb88628116e8cbc35d9d4d88119aeecc1a8c2f7dad872baec5817bef466243af595affafe5a0421ecedecdf70c6a2983986fb7d22f1909f
+DIST num_cpus-1.6.2.crate 8442 SHA256 aec53c34f2d0247c5ca5d32cca1478762f301740468ee9ee6dcb7a0dd7a0c584 SHA512 6136c6cd3e4a9c0f165f037e3e6af6502a3ffcdd0cc2d38635902f243124e5c6ccbd4db8e0bcb624e2ef824284145c0dd31c1cd5f708478334bc91f842c6050e WHIRLPOOL 9d32f8b35d52028ed36a56968875cadcace904c133a9c8e43ec7ab6a8525ef5fca23c6fbbe28387bf3981488b0d1e095a2a7a49c504736bafe8981b2bb3dc84a
+DIST openssl-0.9.1.crate 80149 SHA256 1eb2a714828f5528e4a24a07c296539216f412364844d61fe1161f94558455d4 SHA512 8f3fa912e16b203f8dea3815bcf72ad80645dc7ec69c74cb0aa5ef30a69b14577fe292a1fe7d7aca5163098bf4789deae7cf99c4bea3b3f48cf7e5513f3b63aa WHIRLPOOL 5d06da635f9a720055f62191e84aac48a57160d43c39a43b31c2afb47b16b84c05adceb0d5a48ebe9118122d117a8419c6828c3568a38e6c8db4dec118f454a5
+DIST openssl-0.9.13.crate 124078 SHA256 b34cd77cf91301fff3123fbd46b065c3b728b17a392835de34c397315dce5586 SHA512 1c61564c238a2a62e9a5cf567deb088feb5c9c595f348fe3ba1a419b69bcdbff6632c3544d49f805ae69a98cc64dd0ac240a24f22cd2da3560868929837b4984 WHIRLPOOL 340cccce8b64f281e0a04d650ddfb73de122aa8dd39bd56900e57b3de9d6abaa641deba24015980a04082c45b5e6cd38b72628374b41f8e048ec42a1413012dd
+DIST openssl-0.9.15.crate 125845 SHA256 f776f1d8af832fd2c637ee182c801e8f7ea8895718a2be9914cca001f6e2c40a SHA512 ee15cc7dbc075cec32ad12b0cc12e99300a967004e8f19c91a16a456519821f29c9ae8ffc95f16e356bc359edee763069e5fb887fadc22547d547b419bc73ac7 WHIRLPOOL 7802d9b01f6fd5b9430ffe26ac2db2b2e344298f63aa9b38b1fdb94d018355d187a58c5fe90bda255f40386b1d07adb0a11522fee37a89678ed9e3e60374297a
+DIST openssl-0.9.6.crate 86211 SHA256 0c00da69323449142e00a5410f0e022b39e8bbb7dc569cee8fc6af279279483c SHA512 dacd50f81e6509e7508a1a74b949b13f3500ab2774c306d4b46a2b48b70c7a3edc41ca321b299be56491469e87bbec5a19320b89f1ae426ef30058b480c111c9 WHIRLPOOL 0c1e6b6338466c049d59514ccd2289ae062cff6aec428f4e02a9c4d5362ea6322ef2e96faf098991859465ea253419ce48541c06e7d528bca276218457d30373
+DIST openssl-probe-0.1.0.crate 5638 SHA256 756d49c8424483a3df3b5d735112b4da22109ced9a8294f1f5cdf80fb3810919 SHA512 044a4fd477420a511a01971b3e0373971b7c06f4a8e3f039745a71b84c652048437260d608997ee2499e0afb886e8dc637e9086545075eb3ea6979967d937c10 WHIRLPOOL 3865605b22292d5d65a279cc649c56dff90648802f73cc72bad8e34dcd0a3b43f14b443980d08a5cd13b6c86b1d24dae2f67f8b966c4d5652712f8e2a13430b2
+DIST openssl-probe-0.1.1.crate 5668 SHA256 d98df0270d404ccd3c050a41d579c52d1db15375168bb3471e04ec0f5f378daf SHA512 442617fb5d7f540ff05dc25c7364e180a7f4620848a2eeec31afa5a59ad6ef1924dc6254d24d5c73f356532794ce3cceae353826bb78d061edebd5fdf60296b1 WHIRLPOOL eaeabc41567b6a091abb20da4858aeb89e73f78067a6f9b35c2c3d0e6e0bd74e14a80071fcb2cc3316568dc7d1c1afb901cf49847522c2e1cf9da2fd35a62393
+DIST openssl-sys-0.9.1.crate 25655 SHA256 95e9fb08acc32509fac299d6e5f4932e1e055bb70d764282c3ed8beaa87ab0e9 SHA512 5ec32c40d96b696b954e2a451f6840ca17ba0c9f59fe24e55708075a6615fddb6ab403058b45ffe1acbc0e8d0e418fc47fcff09c65bae56203e98b1e240814ea WHIRLPOOL 2a94176bbaaf867edd0b7db0df5e2214e7fd8faf6134379cda6cdc52d8f93400c455f6a865bd75557402f1f8389dea965a103f02a799ab59bf0266be702b91dc
+DIST openssl-sys-0.9.13.crate 34706 SHA256 e035022a50faa380bd7ccdbd184d946ce539ebdb0a358780de92a995882af97a SHA512 93066afbf3a3dc05e9b1019f75c5892d31a539d002a3235093a62b6767be148b8fbdeee4671041868973f828c5da4526fa02e14cdbd2c4bb0c77e5a22fa048ec WHIRLPOOL 9d720f848ee1748a4f488ae01a10826cb4d0749124957cc5f543370a367fadc4c391aefdc06608c99fa952f33f9124df0b670698f6ca238b3cbd08ea5658db9b
+DIST openssl-sys-0.9.15.crate 34003 SHA256 ad95f8160d1c150c4f44d4c4959732e048ac046c37f597fe362f8bf57561ffb4 SHA512 ee1fe69b792100049534fced217bdadfe4092920cbfec7c782da7e1db2394552f73c6e80f6bb2eb40ba66b7dfc78f6b5a850e001e8ae3e8de9dfbd9921455818 WHIRLPOOL 2a2e99c9900b895cd7018a817be0e03295621bd23cfc300014d24b04094c8c9967b99616ce4d3e21718f63cb1e80c29772c6d15af91f83482cbca05ab9e9bb98
+DIST openssl-sys-0.9.6.crate 28093 SHA256 b1482f9a06f56c906007e17ea14d73d102210b5d27bc948bf5e175f493f3f7c3 SHA512 b7f3b7a0e0b7cb34c7b1f65efc32738ccf40a2ab93782722a5655cfdb0e2feb566e1a53c8121c6d2e16794f26e817aac1455a39f8c422616fb4660478b339d8d WHIRLPOOL 1b9c5025d0b0b6b2eb3a0b570ceb9c42c7f86bfef3e57c0e3429caeeddc041919118d95d981fa1a4e5065e6701dc609633b021fda317a47838842894fb7a9223
+DIST percent-encoding-1.0.0.crate 5408 SHA256 de154f638187706bde41d9b4738748933d64e6b37bdbffc0b47a97d16a6ae356 SHA512 c2d5f58032df76e9c15d695c752f5f79c551ee2d8747c7da8c4a75db15a3d55ddf2f48c9b775f16bb15ae18ecb9efe17eed967bd207305e2ce3c3e9602c2bed6 WHIRLPOOL 3673f76b2553f1c3a74a84488c0806e6c22be7cced4034ea4ae2ee12d08c0abe1af6619da550a21db1b074409a00682e847342183e4c43e16a2ee3e3f4daadd3
+DIST pkg-config-0.3.8.crate 10814 SHA256 8cee804ecc7eaf201a4a207241472cc870e825206f6c031e3ee2a72fa425f2fa SHA512 a58102ea0c6063c53e45e2f5005888fcac7a8e27dceeae4fae8d672ed0690f062386fe175c968b17c127b622b80fd319448faf9fe8ba3422e24f6fa17e8ccb77 WHIRLPOOL b8921e822910523910fb1e9437dedecf55f640bec605f96cade50783f58ace3f8931d76f5a573b3c0ebd5f4134268d17eb7dcff134accf88a880b9064e67680e
+DIST pkg-config-0.3.9.crate 11055 SHA256 3a8b4c6b8165cd1a1cd4b9b120978131389f64bdaf456435caa41e630edba903 SHA512 084e18e8c91ba6a1b305624d16c06f8f7df994c93cf86ccf443bc8f2669368a15bfa9875bc4f2933e94aa268e15fef783235c98558ba596cfc79dbd31f0b69d1 WHIRLPOOL 6073177f5b36748407371a8199d6b441c2baef4638157541da2aa370ab249a06ce72e7aba01946f9d44c81f1391e34958b3bf42a64f150b3b7d5148d93026a12
+DIST psapi-sys-0.1.0.crate 973 SHA256 abcd5d1a07d360e29727f757a9decb3ce8bc6e0efa8969cfaad669a8317a2478 SHA512 512ac5b4f71b46aa74a856844a43092d236eab95eef7f6913e04553c9f699a3d36e4449fe6f1718426bc7d89787d891a066b315646a57961efe8b0de59ad8557 WHIRLPOOL 3e897e4406b038acde39f21bffde14f33d08dc4fc6ac0048354d3bd7b435d7c48e21647804f65eb8f0997ee3631146e9d2ef10634895ecc819527b155ff01d73
+DIST quote-0.3.15.crate 12041 SHA256 7a6e920b65c65f10b2ae65c831a81a073a89edd28c7cce89475bff467ab4167a SHA512 2e5dbe725c0f76a81c6624181b43b60b95dceac208e2babaad3fa6d1487794805169e2ffd967659e4bb4e1abebe96505be5a1007c514d10f2a63ef282d699ea7 WHIRLPOOL ad07bd2c4f5b95ce529ea8ced6f8fff4fcd7a7f48c56108932ad9b3e90c831ef724c46cb46117402fde275d98c208694483afb303a99ac2e47bc04092cc3cdc7
+DIST rand-0.3.14.crate 54768 SHA256 2791d88c6defac799c3f20d74f094ca33b9332612d9aef9078519c82e4fe04a5 SHA512 f727b61f29567b7f322bb9500f01c81588b3681c379f366ef80792ea80c200747b136389a91e32bcff346b24894e7f015090c86960c74b72ced3187a709dfbee WHIRLPOOL 9a8c22f6e0dc63853b8acdbd5e4de1e668de25617f7ec9ecbd2c8727d8cc1a71fdbf99aa247c0141e58a23c6e7fc431b66921c38d46062a0149c750e0c8bbb02
+DIST rand-0.3.15.crate 55312 SHA256 022e0636ec2519ddae48154b028864bdce4eaf7d35226ab8e65c611be97b189d SHA512 4c812b1f742adf94fe45c806fd66a360a2490e474db6cc1d13acf4101fd63072429f1b50aa84b51cc742c1624a871a588769f4c12faa775f6f275a028fe96633 WHIRLPOOL 069746a66bf09e20e8fa435c6f462f7c19468480adc42bb4802450eed93db38d4e530e647a4a0b6444ca3b15fc3cc2f470f9649b15c026cbcdfd2a44d491343c
+DIST regex-0.1.80.crate 185806 SHA256 4fd4ace6a8cf7860714a2c2280d6c1f7e6a413486c13298bbc86fd3da019402f SHA512 a160d80f4ac9f1e17d1debe163584f2c6c2ba7a8c49c34a7e11ed945614fe1923714880515a31a1501566e254edad23be40307b452f9216915fa03d3dfaebda0 WHIRLPOOL d49c2d648518ced6e1c2a115c5066351be0c68913187259d0e233cab3061aa2673ea8099d2595f2cf038b8103549ba781cbc28b0c798ed25338469e45fbe8c2b
+DIST regex-0.2.2.crate 193403 SHA256 1731164734096285ec2a5ec7fea5248ae2f5485b3feeb0115af4fda2183b2d1b SHA512 208b671d06b260e4a130718a86ced88ee7f183bd056461bc6d44a15a22260a9ee05a014682bdb8bb7ff674fd33ac4748687c7ebd847578c7fecc8efbbb1993b3 WHIRLPOOL dafb61f75a55f02dd790201156f6dbf042eadf3b54c7e71732653e3dc8db4552f43d281d96a1bf196e7336b638cc97b5d24bb43f6223caf312cb7b0351be827e
+DIST regex-syntax-0.3.9.crate 117427 SHA256 f9ec002c35e86791825ed294b50008eea9ddfc8def4420124fbc6b08db834957 SHA512 85513709816b148a163b73495b1e0100203da6c37d50a7d64368efb82fdac45fdd083d31bce4b193e1aa5926943e5278eaec5b23b174c425b5954d7b716fa506 WHIRLPOOL 7ee6a7b16911662acf6da0735216cf3d9236e20deffc01f52c2374af4077e22099bb48b0a8fe809fc2f690c858b47d631a605f617139030c5b5c2426ed4387eb
+DIST regex-syntax-0.4.1.crate 121453 SHA256 ad890a5eef7953f55427c50575c680c42841653abd2b028b68cd223d157f62db SHA512 0c6996d0b8c16053f6e4e6324053f8b6924313827d9fec59e209852aed11a18902a51bdaa98b95ab706a4b65896a201549cda2972b54ac2e2a2c704b61690a0f WHIRLPOOL 841c41fe9ba5fdc733d93944252c4e7d07b448435bf620baefc8db28a9e3891e97f619361cb1c80adc00be5be8721bebe36b85881b68035040ab870a23615b62
+DIST rustc-demangle-0.1.4.crate 9438 SHA256 3058a43ada2c2d0b92b3ae38007a2d0fa5e9db971be260e0171408a4ff471c95 SHA512 928cf5537343ad3bba3aff4b09dc51921b6823dc7a450422b363cfcb84ba65e19393dbcf67657197cf96fdb4b9b0195f42b3973473f51085610c90c8b49c4e9a WHIRLPOOL 0bdb37e0cff63b2eac66025c947dc673a876d6889afda805ae5232b341618585d83f9bf0db33ee0ac96ac56472a43b4c2ee5e6b55c5f8ee811caebd3ce47184e
+DIST rustc-serialize-0.3.21.crate 45393 SHA256 bff9fc1c79f2dec76b253273d07682e94a978bd8f132ded071188122b2af9818 SHA512 c49d89841b983bbe3a121187146452f83ea196064c25b94777b0a282a4b79c5ee99fe45c8bfd897d0832e8bb508c1f1c0fb9cfb7e5f6b81633cbf821ea0d54f3 WHIRLPOOL 56513fe21b3fd1978879580070cfe99eab48d98a506dfae56d252e99834d01b3ae21d8f7565b65ea4ee4d5bfa05a794ca931add15599b8f799d6fa2fddbb925f
+DIST rustc-serialize-0.3.24.crate 45926 SHA256 dcf128d1287d2ea9d80910b5f1120d0b8eede3fbf1abe91c40d39ea7d51e6fda SHA512 60b40a0b41678287627cf5898e0ff6ac5668865f1ce5a482190ecd7539b59a955a73c675fedac76e68a5126efb92ff0cf1d1b4f24359a932463434bb76d9e884 WHIRLPOOL d50e31f9099297b25614dde4bd1147e8b75f85eeae4fc2ab013586be7e5d345705671d805ef20ce285c41065545b38d548c4e8da4d248c3e455f888c6755e091
+DIST scoped-tls-0.1.0.crate 8523 SHA256 f417c22df063e9450888a7561788e9bd46d3bb3c1466435b4eccb903807f147d SHA512 3791153856298ffe3821d6cce5c8dd011c068e859e5f7598d05b85885eadeb4e6edc1befa9fdb27f708d13d5d7c20645ba8f29637026c9d0ff105255e019b9ea WHIRLPOOL 71d123a71cade1d33aa19bb64de6c651a1a5dc5c322ec2dc68aeb0524d3110f5f7cccd69f9a340d847f7da03ef677bd751d615eb21a65088bec15d64603dd1cf
+DIST semver-0.5.1.crate 15586 SHA256 ae2ff60ecdb19c255841c066cbfa5f8c2a4ada1eb3ae47c77ab6667128da71f5 SHA512 bd96a216dec5d6007f2536979d24b7c4f81b29ccec8e588bbe796f34e6842102175a47d72f3fc8b96c51f9ede0968edd2c647fd1176eddfa26c8789d8d7f8318 WHIRLPOOL 9332c70567962635ee9000ad65cecbc7f67978a57e111a45f3eb62296de252b020c1dd8adbff92feb6c4d66332f73d514b3607bbc79e6a144149abb884290592
+DIST semver-0.7.0.crate 16497 SHA256 3fdd61b85a0fa777f7fb7c454b9189b2941b110d1385ce84d7f76efdf1606a85 SHA512 1eb3223ba04b5d7e67ca671cec1fca7c5c262082db8834bce1487be083035ff119c22a09c9cc957b474fc89b8ac29637f6a75d0ea9bf771e8ad3710c202d1510 WHIRLPOOL f736736835e1e358fe94516776802f064b001e893d4c862719e85cd0d728eaab33c323fe1088583f932f0ec079c78cb37e7f76d2ca2913f27c4367a541776341
+DIST semver-parser-0.6.1.crate 4860 SHA256 e88e43a5a74dd2a11707f9c21dfd4a423c66bd871df813227bb0a3e78f3a1ae9 SHA512 25324af886c06889c16acc3f99aeb85eaab07ac851d398a07742bfdb970c2dd71b0a24dd4feba8004a529a0f541c97e3571540194870fbaac44a31adc5103f49 WHIRLPOOL 90ada03a6f32d21634154c12b27d790e5a9ae0aa1eff03ccba92868425f90fe23e1ace4f9500bc1c6c93daff44eceb193df20ca2b2f03eb7e5d09dcd9e3f30e6
+DIST semver-parser-0.7.0.crate 10268 SHA256 388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3 SHA512 17320468ec6b9862d595f358d70c09ac6e09db7885fe0ead7a1e596f79350a6306e8bfde5bbd6512008a7c5454da1c7ae55fe1e3bc1c1ff02ac9df54c0a6121f WHIRLPOOL 672ec12b37a4fdc72aaa6fe8166c06cd442ac3960caf7f13aa1c6bee5ac254fc54985b47744a699442ca63003bbc3c5b504b49afda662881881f4822ebde19b7
+DIST serde-1.0.8.crate 59699 SHA256 c2f530d36fb84ec48fb7146936881f026cdbf4892028835fd9398475f82c1bb4 SHA512 743ab9518935ba219faab7f61f3ce30d6e20c20145ed9ebe46df49e570e74063baace630eacaad2f3b7e9e0030b64faa428810701537a6e2a5224802bc55edc1 WHIRLPOOL 08a5533df2527b11300638991ca9706c9df4213174068d14a0b3cc2362358858de6ac0b6faab13ff65b1258ee34301a6150cac14abf0b3c0c80e026800d1a609
+DIST serde-1.0.9.crate 59987 SHA256 6a7c6b751a2e8d5df57a5ff71b5b4fc8aaee9ee28ff1341d640dd130bb5f4f7a SHA512 dc9744f6c0b593505fd965b23a99ee88203a17d0a99ef4f767cfd103ae12248e573545b5910e531242955f0666d8e010d8320f91778d1859f4ad399c6d22f07d WHIRLPOOL 866e13a18e0f3f05db5f471003668175c47c5b171c31f0866aa6e67ecc9c7bf450dae0fd1ec0c7b0bb2ba0b65257f9d9df5f6687b80484f5d18f8fda6c053462
+DIST serde_derive-1.0.8.crate 24015 SHA256 10552fad5500771f3902d0c5ba187c5881942b811b7ba0d8fbbfbf84d80806d3 SHA512 685446ae6077ac8e730358d8676e9648ed0dca3638c16ab3b14ea0e6823f1743af1b41933ed2b8f4f5e497e8954c954c40dbbe8f8e6d66a0b0caf3cbe2612a3a WHIRLPOOL 2ed002ee6bcacffb39f0a4c09aad9db334860a1f540f53dcc8430bfca9d18c4c9f338f996d90bb20c0aea11613bbb593bfe759fed55834c0c8f69d774265bb48
+DIST serde_derive-1.0.9.crate 24100 SHA256 2f6ca58905ebd3c3b285a8a6d4f3ac92b92c0d7951d5649b1bdd212549c06639 SHA512 9be2820409ee8269645bd35dffa7568df7e67e8e7faa6a6b2037a48bfee7fe99febe08ef28c38d9324931b629f942315e14080dec7dad4794f433e00cdcc6b29 WHIRLPOOL 3666827d4d03dd84ea88c7b03e893bec846858074b49e05f4b0419d5564ce39c0957e87fd901c279a9c8dabe78a5aacdf56eaef284b90bda0d285b4c755b760c
+DIST serde_derive_internals-0.15.1.crate 16441 SHA256 37aee4e0da52d801acfbc0cc219eb1eda7142112339726e427926a6f6ee65d3a SHA512 5599b3022f9a1f16566c4d86ae2f173373905ec318499ffe28a061e58494f786d0e6dff6ca962422bf6d773604b66f62b0de8e19cd39057456d50e923180a41c WHIRLPOOL 3ee996a658dffa01f06447297774b872a55b032d13c5dc40a2eabaa7fc4a797564e8bae045a964fcdeecc47761f63e58049a2d3b236cddbc8d84b33473823e5f
+DIST serde_ignored-0.0.3.crate 9476 SHA256 c10e798e4405d7dcec3658989e35ee6706f730a9ed7c1184d5ebd84317e82f46 SHA512 9d73d559cfe7dbe5ddb2cf9b3952f2c055eb607722b017b102470995857eadbe5ed6bff9c7db277c6de203f09841ec4208480857d5d6269d7b267e7373d26728 WHIRLPOOL caa1bb5b489fe69c0c30c8691370156f8d16379a1f77303cc56494af5e6efdd6e9f80b34609a2a311e23f0f1a34e7b09e3f733c01f83dab65237ba727b1f1c6b
+DIST serde_json-1.0.2.crate 55422 SHA256 48b04779552e92037212c3615370f6bd57a40ebba7f20e554ff9f55e41a69a7b SHA512 ff0a3806b138cadace0ffd600ae695047e6e75655699054e8974160619ae5a00e8d306b85dadb0f08672d16934f43870627e5619af29fbf68497638eb133d4a5 WHIRLPOOL e75c638e862a67693ab1a0f280e61723f3fbfad60c6a51358cffa70a8a340642cea9897e1f687179293e28c75eee294d5a06b56dd6b706bee1111e4852cfdcb8
+DIST shell-escape-0.1.3.crate 6441 SHA256 dd5cc96481d54583947bfe88bf30c23d53f883c6cd0145368b69989d97b84ef8 SHA512 d5a8bfc9074163396e7362f9a3b57374bda3fc4635b8adadeb24610d14b051cc55cd8a9ec3ccc71b107cce57b262e2605f7c88a9cb21da4e442fe207e3397b97 WHIRLPOOL cf2ae13252712e92735cdcb141940162bd334241b6ba7ba0270c5736be15cc0e3c7a8767902ba7d65b1b5892244e7eef96db87b2b7ef3647a2d52fa2535bcda1
+DIST socket2-0.2.1.crate 23000 SHA256 12cdbddbaa27bf94cc194b8e37f5811db6fe83cea96cf99cf1f8e92b65a41371 SHA512 82c254897365d781c4fb24a8ecb765ed39c88389b83e00c26cad822ca102c1a8722076895cc3039853c2e9ade863e084866a48255b2604fba63ba59bcabddb32 WHIRLPOOL 2e9ce40de4a381c2783bafe723dc0f1be24e930f9fe0ea044242df8cf11bff1ec4c3051f2993b9b2a8f9a47bf1f184f115c81927baa38780ff8ab0ae25a33688
+DIST strsim-0.5.1.crate 598561 SHA256 50c069df92e4b01425a8bf3576d5d417943a6a7272fbabaf5bd80b1aaa76442e SHA512 34b298df18d71121d515545e3ed0f52130366b6d3ddb1075736754f736ec40438c9d3ded75f675904a9d72e2efb88ee9462211e212a6ce10d210797c91724ae5 WHIRLPOOL 77ce40b5f23f2eb92d2d65f0f7f1a8d3952bee65ed0d493f855583d36625fb58a90334a5e23c15f650600cdeab0b23f13959eabbcd3b25a25947696e9d973e6e
+DIST strsim-0.6.0.crate 8500 SHA256 b4d15c810519a91cf877e7e36e63fe068815c678181439f2f29e2562147c3694 SHA512 43cbcf2cab7f91515f52f20719e8013cff23807ca79a9a69f1997ec1ba2eacf713d64c88e33f4c9ba852fb3dda4b87e943587ae4b6ff5bfbbb81deb6dbf76a97 WHIRLPOOL 5fa5b91b22ed2d5ba22da674568e5ea374fb05d722796030c3d5198aa42552f7bf47b51b54ea6d62b4e9bbcfd50bdc7ef450ac23e6e2e99dc00130b972b460ca
+DIST syn-0.11.11.crate 63309 SHA256 d3b891b9015c88c576343b9b3e41c2c11a51c219ef067b264bd9c8aa9b441dad SHA512 285bdc1f9b53fe791bd35b10a06fc106231c4eca908244f7ba7366a865452ec2dc8bbff275a52725d29c48d2065790ff6eb37c6eb9c1968aeb0af38c028d173e WHIRLPOOL 3ff71650638d2bdda933270140b04874fdc896bab2156193ac8e8bdc8ae96146a04f28e6ed0a7531c33773e46bfc757d06530bae9fb598ece13b7b3d4e6041fa
+DIST synom-0.11.3.crate 17120 SHA256 a393066ed9010ebaed60b9eafa373d4b1baac186dd7e008555b0f702b51945b6 SHA512 a9c75d667be94c82c7f545e0569bb5858afd1bfca6e045fd52f4ae18ec4fd440e7d374ef45dafc97bda6c749cd4b4e185d8192b833661657323229803ef4a28e WHIRLPOOL 666714780fd8450258f6a5c776c307b9aa1f6c043014d40083a10b7e4a48b3ebc36493e069a2764d60b71e61ffb963d5ebabbcbdf3d1a3cebfe9f2cd0298dc45
+DIST tar-0.4.13.crate 39373 SHA256 281285b717926caa919ad905ef89c63d75805c7d89437fb873100925a53f2b1b SHA512 0cb42bccc898a3f454b37e966894e0faf337179f678e7da9a2bd06fd0fafd1c5e282264c65d910a9fd6959368671967f7b40fbd66cfbe4f5434683f0249f911f WHIRLPOOL 08df7772280f95bc91d943c35d7201ee0911818fd0bab4e68672cbc3c3e9527bdcb224fef68473ebb5c8aaae2d5e2b7716f6d9c603056c1d159dd5819a45e0a0
+DIST tar-0.4.8.crate 35295 SHA256 12e1b959f637c2e4c69dbdbf4d7dc609edbaada9b8c35d0c2fc9802d02383b65 SHA512 2b31523b565cf4b1d649c8096f0b8bdb7c416c8910189d3bae6fa9027983968c62af76c8c727482a68bdceb1ed39fd2d72729d3fe63185e0da46d6b3a910c408 WHIRLPOOL 9f58919026f61cee7a33b82cb226b925561c8431ad78eb9599b3cd567c4bb51ce3eee13ae5ae222b5a8540aa9fa2c540362dcbc8df89a080968fe1b167e24b6c
+DIST tar-0.4.9.crate 36838 SHA256 0c9048e27119ff1fcf5b0e147ca0936d911b607d87440b042d4ecaa111b523ee SHA512 d74b493b2e903aa2b7bc954edeb53b9aa459622eb305b2b3fd50a3754137485f8748f9d8c978d47589d0c6c8ae6536e828b4a63165314e9028bfb9aca3d3248c WHIRLPOOL 3b902160bc8c695649a6cec79ff86af60ff2e8ae9eb0e175122f80dba6af8eafe0b515761adfa874a6dccda61d0918362348058c36d3374c994c617f348a6f37
+DIST tempdir-0.3.5.crate 10605 SHA256 87974a6f5c1dfb344d733055601650059a3363de2a6104819293baff662132d6 SHA512 5ef3cb15064fc51ab2b371f8a48694205ad831fdcd11ff0fd6be85708a8ee955c82c3cbf926360fabc2cac91528a1db90f8425090bb361fa192c8ce9b1e1f0ab WHIRLPOOL f3e3e70e9f0f5d9eb38e0b33b5f58f480d321ee5feb8bf682f7a6b80b433a3740594393f3d5c13d7dcb1f733dfa31fec338b321955f2b631ec4c4dacb56c23b4
+DIST term-0.4.4.crate 35853 SHA256 3deff8a2b3b6607d6d7cc32ac25c0b33709453ca9cceac006caac51e963cf94a SHA512 df99c7273ca6f97ec3d9206f98601540d26370124a7a5404cc072bf2e6621bc48fa74101e60f29bea10869278401193648e253fc2029f4cf8e3c8303625b11f7 WHIRLPOOL 57de8f4d686d6806fd18a3de9ead347d2c4c8b63af5175d3c2df4e894ffe13b62caa93774bd320e3d2c42108849012071bce8c07414856af8374884661bd164a
+DIST term-0.4.5.crate 37496 SHA256 d168af3930b369cfe245132550579d47dfd873d69470755a19c2c6568dbbd989 SHA512 ffefb5d3611eedea8508611e6c27d9da32070f2e8ba998cbf060791ac36a2d58b310981c742f638967f0a0a7de70ca40b4b6fb093d3fb643b01cbf73f8e624dc WHIRLPOOL 376fdcb7b4831d29c24e1f288d29fc156bee1d1d9b8d857698757d059d4f940b0e17621d374dace7ec3eee0b4e786dc19ab249090d05cbfc60ea110fb6fce390
+DIST termcolor-0.3.2.crate 10874 SHA256 9a5193a56b8d82014662c4b933dea6bec851daf018a2b01722e007daaf5f9dca SHA512 bbbf32ebc2970e5d59aa97a9dd3a6c3717564f7397e6c11b7e17c638239b2cc0cce75a48d1472571c651ca57eea34af4750f44ccaf08d0b922229a6baadb7f13 WHIRLPOOL 21026369d0ac4d6561f767bab6aa8f84452032af6ee18aed79f3ea3b7dbadc34b330a658a1d987975fcae05234c3ae2979f37573e5e88f08e5779d1110868d8e
+DIST thread-id-2.0.0.crate 6108 SHA256 a9539db560102d1cef46b8b78ce737ff0bb64e7e18d35b2a5688f7d097d0ff03 SHA512 9fc73cb13dd70f6f323161667f7a253b48c4e11d074457fa033b3617dcaf7ba9aa95f12801c4c045e7e9c07dd4b63a83f79701b489a9d97aefde07970064d9b0 WHIRLPOOL 88a26709bb3a6b27ab102e4414d25f20361ad92be89662c59c14ceed8a84eb17249ece8f250fb082e85acb75835ea81d1f5b62358e57e1bb1bfb96dac5d6e1f4
+DIST thread-id-3.1.0.crate 7195 SHA256 8df7875b676fddfadffd96deea3b1124e5ede707d4884248931077518cf1f773 SHA512 f24b2608cb476829d43b71aec0e12a12123a8943402755ec44f5eb4974e63ce7ff1d75f5046ddb533a08447c98758c226163e461c52413091d85f6267a19af13 WHIRLPOOL e0c9b03549c83ff4c5c519195ca70e055b4a8cc32d3c81a46a75564cf24caadc49f5672770b62db37eaf8df84428bd3baf4ee80bc47dd1262e5e6f4365cf27d9
+DIST thread_local-0.2.7.crate 10954 SHA256 8576dbbfcaef9641452d5cf0df9b0e7eeab7694956dd33bb61515fb8f18cfdd5 SHA512 adc9be75120fd9e27429d0116cc6774a519ed9a2348db122ea90864947e4c1e1c98aeef740e7f8d28861b1db0f4a9340e58e13c1b3ece1fb3320058ea7a47b35 WHIRLPOOL 5988b0a217254ee39387b34dcadd9f44243a2403fabb33b3ce56415910b27e0ff887ec209af1f25e40ed4f3646e840a903f156c5546b20b640aa44463adca44b
+DIST thread_local-0.3.3.crate 10964 SHA256 c85048c6260d17cf486ceae3282d9fb6b90be220bf5b28c400f5485ffc29f0c7 SHA512 19b4d445c2688898d149a05aec7c157f5c8cf48a60fa98b8890bc70ee8f391fc94d454ec218002063bbaaa715326957ab2dfda0537b782a2643e908b64e0f22d WHIRLPOOL 2da568ac1d56844575733a502d25e1ae1140f1055ac1057a1656127b29eeaaa99bcf4f4897ad81848f907a3bd053724dc192596f53efc702b399c78e2cf3a64a
+DIST thread_local-0.3.4.crate 11760 SHA256 1697c4b57aeeb7a536b647165a2825faddffb1d3bad386d507709bd51a90bb14 SHA512 51fc5e1f5046fafe794128e6655c3ed5fa54446d9db151abb5da6e2599b6fb03200746ff4e6adffb6b8a04d015966fd4860ea3eac50bc169ec04ba33978f849d WHIRLPOOL 27c100a56cc3b1b43225fc76de150ff9835e391ec778de6039aef7d97fd2d86b7bb3734258656d6549866d3a596af9da4c0ce77855db955e69fb4480f8208a03
+DIST toml-0.2.1.crate 47258 SHA256 736b60249cb25337bc196faa43ee12c705e426f3d55c214d73a4e7be06f92cb4 SHA512 e802d66d207debc8f5d7655c0eb797fe09125d5e85fcf4cc8c3088d9811b141f8db40b9a95f76df271a9d32640a8e59f1e9520da670f0a994bc73994552cf4bc WHIRLPOOL 861e11d6516b0df336c8054093da769ca13beb745dcda190e629a3227bd50edfaee3e4b8367a430be285be877bc52ce2d2c74a562c1c2b23f39cd907a18b1588
+DIST toml-0.4.1.crate 54017 SHA256 4cc5dbfb20a481e64b99eb7ae280859ec76730c7191570ba5edaa962394edb0a SHA512 ad603d1011c253eda1366fdc9781a8d5f6c3792cde26cac2552e2aea2ab7e2a926257587362d5c11518e397a96d59a4c38b0418eaeb5c584c83a37850d488480 WHIRLPOOL f7a3c20de30dfdb4178ee96b98a059a36cdac693bf9411877481d4301b9b6d44a5bb6f5f98b0c8b27edec3fedf55e80e8cafca447977a9f6f929af682e6b3e6a
+DIST toml-0.4.2.crate 54899 SHA256 b0601da6c97135c8d330c7a13a013ca6cd4143221b01de2f8d4edc50a9e551c7 SHA512 952f81c310502f314af5172e6e7c585fa9ed6c1f38d7a9819eb11ba9f7fa4560fa6429ddd65f9f97f5063180a23aae40b9074558f5a774783dc7bf8335641366 WHIRLPOOL 61684502804aacf54d2d71355a135dffdd5ffa0096b6ed63f61eeeeb6d75a2e4a73c7582c1bdd08b57c65859c41bd607ae6bfec133416c3626839027ebb949ca
+DIST unicode-bidi-0.2.3.crate 1744003 SHA256 c1f7ceb96afdfeedee42bade65a0d585a6a0106f681b6749c8ff4daa8df30b3f SHA512 fb067746b4788c7110bc2687850dc11183c7e596453b42c0c4764c59c1686faf4d03a52b6c147c6578d88b8a2f3f1257d88010874b6ff0bb942b41e055c00a08 WHIRLPOOL cea3be7073b65971b303213f2eec72035c80b65bc306231e2af067ec58cfab3ce2d2a1b38a2e4a5a537a94e7458573b1cc7cc8b44aa3b62a2595ffc532343b11
+DIST unicode-bidi-0.3.3.crate 35909 SHA256 a6a2c4e3710edd365cd7e78383153ed739fa31af19f9172f72d3575060f5a43a SHA512 5fdfd49234f98dccf4b12f28d78b0fbba046df9eae9ce94ef829f3973ea24016819607239ee329d524c0937702aeb897b1c91c5e579d3e8e73a560b803ddfbf5 WHIRLPOOL 1c60c3b0755e84e000a321d6de101529f4d7566740646dcbc220feb6d0beead1b122959dbef31bf9fcd0b5c13e1b214e0f7e67a7fb61d0096c5701dc46181598
+DIST unicode-bidi-0.3.4.crate 32228 SHA256 49f2bd0c6468a8230e1db229cff8029217cf623c767ea5d60bfbd42729ea54d5 SHA512 170ce083fa82bed13ecc62d85cb882fdd6491ae721e1633d3c1a5d3cee69422153afcf6695765c0e8fc7035440d0370d34afac9e978cb27f7506c07cba300e1e WHIRLPOOL 5ebee7b807ba072c4367efabdd133c55780e3fec5cfc24441f9d45c9cded2a4b734052e21545a13b8324f40814c58f1bed88188ec07cc0f60d51929681d7592e
+DIST unicode-normalization-0.1.2.crate 612931 SHA256 26643a2f83bac55f1976fb716c10234485f9202dcd65cfbdf9da49867b271172 SHA512 b6dc4316a875de59ee00f89ac0e9b255d0111dc2e2e45395ed726282502ab7b6cfcd56acff7f409b97a2f36d5278e16936359791be6bc8fba1213ca6c8a888df WHIRLPOOL 89b477db1efd9ff153140c485cce0d4c0457ccf30fa8ad765fe14a27e94f8506521b64dbbee7b300da2786e139738583ce255b78192534d63aac9d2fd833cc92
+DIST unicode-normalization-0.1.4.crate 278063 SHA256 e28fa37426fceeb5cf8f41ee273faa7c82c47dc8fba5853402841e665fcd86ff SHA512 abfffe2cda35c9f00bca52ca3459915d3790fcb8333b0df629c6cb59e339ef5077a7051cd0c1f7fd919fe8ff12da13600a32c8117e4e1dbae7d138ef056b7c7a WHIRLPOOL 0ccb23c81839410add3aa4ab5957f8b508ba161909197fa9df3b53e52f6c61a16b06812dc4665ae0ba5418ed9e946501789a217e1993094ee368a8a55a2ae76c
+DIST unicode-normalization-0.1.5.crate 290328 SHA256 51ccda9ef9efa3f7ef5d91e8f9b83bbe6955f9bf86aec89d5cce2c874625920f SHA512 e3a8d69080d7c85c140406fb7514c70c6af3c3c847d2a4d029d6494035d2a77f093b9d96e26bf59ad973187ccc8dfef1a4fadcc2eb2977b16ecad9f64bfca941 WHIRLPOOL 8747e32cdcc22489f47665e0a89a40bb3bd1cd47a3e0079730facb6896f3154e8d812f9cc7d4b198a4f37cb1218a26882a49e6e8a1add1b07ac139fb530b9b1b
+DIST unicode-xid-0.0.4.crate 16034 SHA256 8c1f860d7d29cf02cb2f3f359fd35991af3d30bac52c57d265a3c461074cb4dc SHA512 7a3a60936a18d54001dc477f6da1c9784bec53263f13e5c21ba00228ae4ff09f7bb8445cfb39febde957b8500bd1a4a998cc5cfd18046aacbc68e9993510e091 WHIRLPOOL a66e7aab6163d220173d678a374b2a624a83e619a212a7f38602f550f2d35f614fd2a1024deb66a03cfa5c513787563455b3204157a40f2e2415afa51ff1bec6
+DIST unreachable-0.1.1.crate 1772 SHA256 1f2ae5ddb18e1c92664717616dd9549dde73f539f01bd7b77c2edb2446bdff91 SHA512 81d7e8740630ef90341bed76f5be55c928c1f28cf46ef23431a7f610445cae884eea532df805784b2fa04034e831255a3102a29fe2c228b8c1c1afe15d01cca0 WHIRLPOOL c37385d8bc63262243d04ff7c9bfee7180649d715a148bb6b09a84745e9dea4ecfd0aa0cbc53d3cbd6036cbff214b00dc24cec2148e36beda64be2b7f5d6f4b3
+DIST unreachable-1.0.0.crate 6355 SHA256 382810877fe448991dfc7f0dd6e3ae5d58088fd0ea5e35189655f84e6814fa56 SHA512 054e0a471d1068b7703853d838c7c381ac6865ac1f8abae08747581e3754416ccec5b80a5b04fedbcd01e68bfeba286b849e3b8ea67bbe62444f2974655e4948 WHIRLPOOL bd159d16ef4d6bb5dcf715fb193b99bd744a50c56e6cdd689ab486b5a8f6a917ae3596ca143d9c5323ea882c23d5a1a033baca173d9f97b6493569cd896990e1
+DIST url-1.2.3.crate 68790 SHA256 48ccf7bd87a81b769cf84ad556e034541fb90e1cd6d4bc375c822ed9500cd9d7 SHA512 6415f77b2226c79a340bc6f1061b835700a3ed9cfac4d5357ae8de947131c79d9a87150a59178c2fc8101b642d884c4ef4fecf657b3f89220aec130cae7c822f WHIRLPOOL a9223ac74bfbec538da4ca0f1c5df0add8933b123fed263e30add8c106608704990e5d9064821c79fa05f6ac4e0e9965ede2b8894ecdd57fa02a4955e666e132
+DIST url-1.4.1.crate 72273 SHA256 3e2ba3456fbe5c0098cb877cf08b92b76c3e18e0be9e47c35b487220d377d24e SHA512 84d4917f0daa83d9b361ea0fa24ac0cfc3e76d66cb9ac7791ca92053f8c07b38aa165a6a4a6b56e5ac07434fa50b28984061e7d95bab1166d9169e7987bad7f9 WHIRLPOOL d662f0a38515ded5f4d41029a40887b484ae8df86d2aa1ccd412d0cf87e837e3cb7f0478cc1c0cba2d2ff7c3f2df03e42b8ad451bc2c50a388d85dac0753f6d1
+DIST url-1.5.1.crate 71508 SHA256 eeb819346883532a271eb626deb43c4a1bb4c4dd47c519bd78137c3e72a4fe27 SHA512 8867f76b4b7b463de889a8649be6255bee025a878ce5f25ab4ce7c0221934d7624495622de5e8895bb42b261aebf0cf4682577054a3fc7040486294d0b3cdd60 WHIRLPOOL d4000ffed8567b56bc8a54ec6c87cdeb4c1316b90be432a5d06462f8bde44dad81287cbb42accbe97da703b09cdf06ed58c704c9656e04510379e4a9cd407b8b
+DIST user32-sys-0.2.0.crate 10624 SHA256 4ef4711d107b21b410a3a974b1204d9accc8b10dad75d8324b5d755de1617d47 SHA512 75fa43621acff70425ca40a132a25fc67923526c895c51edb6b49ef507d1d461383e1d92b5dbb5c5aee9207cc76b9a9e43d27efa0b65476bc5ae0c122a2dcc19 WHIRLPOOL 38379a094f27223281e0c0d300a552ab4bac3b03e3f12ccf4d22c092e19b2b1478cd67ea1a5000015b19679b3cbc0af352724c7413aba0b92dfb6197e04ac936
+DIST utf8-ranges-0.1.3.crate 8422 SHA256 a1ca13c08c41c9c3e04224ed9ff80461d97e121589ff27c753a16cb10830ae0f SHA512 84bd9b67c423923b856452e113f0d786ac438bc7f9b4d4d9f31f6f91f141a8ac4c93f45f722ac5a8a4bac8eac0e355fe7db1eebc62391709326e9817eda8c374 WHIRLPOOL 05b6f88e1ba81a2139d38d0feb60781976859adfc46731ef322a552b17db71e0bf61c6626432812fb2e0ca45ce10a5438d9dcf218a962ef7415187adaa0280fa
+DIST utf8-ranges-1.0.0.crate 8599 SHA256 662fab6525a98beff2921d7f61a39e7d59e0b425ebc7d0d9e66d316e55124122 SHA512 da498433597582970860db1c66ff1cc2ed8b0e2bf816e6aabdb40424ec03c3f28e6ca5e7592e464442004077735dca4144acd13c8f6a2e799d67504699422643 WHIRLPOOL 58e23f2f0bbf86a8336dd16082fd0f00d32357b0ca1b3620634c54cf2678b7e27a1a8da91cc3d72fe8325e34fe3a06ba4e290bb71cae47d6ee8eb77b8599b59f
+DIST vcpkg-0.2.1.crate 5446 SHA256 4ec083fe2a55f0c710db951078348f978d4132a702d45d7e4702ed9221f5acad SHA512 81b3f7ccfd29fe09620f7a952e360e949cdf0a0cf06b698aa65861a00fb5b8d6ab35292a3b9b3444947790a59b34eaeec0cb31bdad25da389c10320fc5581791 WHIRLPOOL e0d6410bc8a35219ba56e90f527da9e2df16b7d48c4ced18c4d8d50f50a97b89bd43c464c82bdc72a7a8f943313cd3f872fef2d1183b3a7353752c320771839d
+DIST vcpkg-0.2.2.crate 5870 SHA256 9e0a7d8bed3178a8fb112199d466eeca9ed09a14ba8ad67718179b4fd5487d0b SHA512 e56ca76a699a6a857d77e9710c1b0b0ab7a64b6f7128a9221b9a3fafb7365b3a008c7eb2a2323de449ffd5287d4b5664b9e6d0e1204e9b5a722ee848bdcdcb18 WHIRLPOOL d8bd6762d7969c762cbc00ca17bb33eeab0c6f9affbc8991292e6972bbe563c50de0deaed0e45b8ba53cf800700a11b9aef463df8ff74412914885ce60be151f
+DIST void-1.0.2.crate 2356 SHA256 6a02e4885ed3bc0f2de90ea6dd45ebcbb66dacffe03547fadbb0eeae2770887d SHA512 1cc7d282600dc0164d7e410aa895d5dc99de1174991549c6733c94cc2027026517f66797751d737869eae58c560fa26edbf43f36b3015eb2fd99828fe40e0aa1 WHIRLPOOL a1e8bf644e79ce0bfcccc2b05ea357400fe6cb61bcd4adb0360b109affb866ec305b30a11549aa35b765fd0f32420e7d5cc741cfccd3c2263c60f1cf7acc0136
+DIST winapi-0.2.8.crate 455145 SHA256 167dc9d6949a9b857f3451275e911c3f44255842c1f7a76f33c55103a909087a SHA512 115e6f027cdd4a56f77ca24f4ab249d2a6cac1e1f955c826a9b6ee05db4861790a533f5e674aebbb540370fff52ed41618c2cd7c906e73200e92df213109cebe WHIRLPOOL 3dce71a6927320e3882ba60a24630a9ba8d123b73d8da6b9330e422580af9d9b0a96748d7368767e3712185877ddec6978b924d40428341c4de19b76ed375af4
+DIST winapi-build-0.1.1.crate 669 SHA256 2d315eee3b34aca4797b2da6b13ed88266e6d612562a0c46390af8299fc699bc SHA512 8b0a239e205a5368892f41c870a8a7ea16e3468c364b03382bef7fa3a2e7159b09c07661e95b1227578f6d72c14879daa4444b28c51ae20ef15d985d59ca5a77 WHIRLPOOL 036080513776fe806cc9dd68bbf5b797776b98ca9fdceaa4bd77c87c66d2e5bd0eec8b0e7f0100dab8f2ced754da058f67e651002c786b4992c2be416a5d52ff
+DIST wincolor-0.1.4.crate 4434 SHA256 a39ee4464208f6430992ff20154216ab2357772ac871d994c51628d60e58b8b0 SHA512 910920a4a86084d1529c2cc29fd65eb2e858b7e89677617c31d0c8690c7c22145e4ece54237df103b3defb58e1b0b05edf2d24304af2dec4662e61593901ba9f WHIRLPOOL c609387e48384b9787066d25ac1a848c95e113e1afdd2af506076b44f593fdf5c8b39c77e3439301161f328cc563af4fae6eb3813e1bfc810974d8d712dd31a6
+DIST ws2_32-sys-0.2.1.crate 4697 SHA256 d59cefebd0c892fa2dd6de581e937301d8552cb44489cdff035c6187cb63fa5e SHA512 18356861fc595efe7d0180afb8ce7649da35a4f9ba456271d2068679ab258a861af32a2e016e241fbfbf5f6ef0eb33127b26eabfc11428af39506538faa4821f WHIRLPOOL fd144081dc48c18ca407c1af08411d3aecf99cec42d27a3b7825d16f91f15be96ab66b79c62083520fae6988af76dfc20fe028416f84cfb5a0e1de9bfa4ba107
+EBUILD cargo-0.15.0.ebuild 4023 SHA256 582b3b9deabcd9f83617756405a4dcba8ed6a5d0c61fb3bb4125ab868bcb9660 SHA512 2ba9bfedb48b093347176a34a8ae09f5a9ad91dedee298e8fd81da5b1bf0256adb5789a8e588aaee8972f6e55018b599753bbe15b3a5b71afa6d93381c2508e2 WHIRLPOOL 841611b3f1bbc5b3a435c137f0db238f5d8d94d2ba970cd7c41bb05bb8c93bc2d24c9923988f58e5137849a6089ce94b50646aa0020e8fa51a92ab55826394e3
+EBUILD cargo-0.16.0.ebuild 4023 SHA256 0e3987c2e1c3711c09e60cc70b00f76ebd93fa0e817b265e98cabd280735ac54 SHA512 a017c922933665aa8144ac6a3ba496c17a86fafdec2d9ddababfcae72c6c50675527adbaf1d990df6dfbead09d4190a68a32ec351f7a23ec9481b0c22f31e327 WHIRLPOOL 5d05fc34313cfba6f25c1ae1802e9eda3dca1d808bac26dd59eb0ebf83f41b8ff9e484495593365b7e95867dd7582ab60fdee9a6dbf17045a074448e7633421a
+EBUILD cargo-0.17.0.ebuild 4075 SHA256 775010e0c07e6676533aca2102b86fdcfea1f4eca2852cdfe92f4917039a577f SHA512 d03fa52a6bffa94f2481efd00d5f264b64d1f72ff289180704e9cd356ccc1390608774ee650adc1a5ea8cfe6339ad128d478efcca89513f7a9fe46f804cd63e4 WHIRLPOOL 27364bc0b79eab7f09b0d8750a7df5b323ee5c73742113d737f55cabb9bfd5e4ee4886eaa837c0caca263fdfce3857db9c686a16e9de3cee24ed3f1546ae432c
+EBUILD cargo-0.20.0.ebuild 3349 SHA256 3963398e2e0fe8f17ffd1a6f6b3a5100e01ade0be3817c943662370e9ac2e0d3 SHA512 70af7d2ba1c1c30fe7f2244f7fa8004e0a51bdf02f27df42c18a80ba49e5e70b59abd9ee882b849b965e6582ca46cf565e5b2dbe499432509e037f72bde77585 WHIRLPOOL a12256b584bbdd463cf3e08d14d6e4ea3c3642f12ffa5787df4c40574da678f36809cb1560d58acb20a62d87dac7bcbbf963d7f8d2e950f9bf4ec1e93bbad0af
+EBUILD cargo-0.21.0.ebuild 3432 SHA256 d3b0774d24079cbc3c588ae346c117f7f5cff87ee35ca05ece792b4ef82c05e0 SHA512 31b03bbd9028da28332a64759c7df193f5c55155b01c73619c4cd2e427078c0a1a52eedab3fe670b67f0ae7f0cb29af185ce6ec48a0f19f389e6e9092e782bab WHIRLPOOL 4346c49afaf07ae46e32ddd0bc6d58311b85b42e67d7990a093cc375c647d1354abcf03f4c2ff87f22840898e8c51f931726d7ff98dfe6ba56d6f87fdffa68aa
+MISC ChangeLog 3776 SHA256 409a7759b28729da9ab505fb9fe44a1597ca3e81b66f2d4a82392f8ddbfe1af0 SHA512 68901b868bc9ea8b6cf13af7c2f37567324cf5aafa2b527588148ca8c00adc4d4d27fc62185a8b6d79ec63813d516e017214b9018ce2e873926ea44c4b80e976 WHIRLPOOL da45dcb0fb0a3bfd7e6f9b12876c042f369be66568032db8d06526d85a9176ab656e2458f5e67b12307489f5adf3e18bae1b78738e6c90a49fd5016eb0b90339
+MISC metadata.xml 334 SHA256 ae80778d77cf64dd97fc98fa2995f4392c8429baede209ca95fa27bd604ff6a0 SHA512 7d50f6dfd848ac87a1411295bc5133289a7576d7cf3b82c88fdc3e17ba5371e25c4ccd5f2f404ca31ab81531d21e8d2023236f81608078a1ed32832d005653ab WHIRLPOOL 187682349ba035cf71462f917092336f5c7e0cf21c4d181ca14730d88ee8be530f602a75d17cba40d0dfbef6ec026c31f201b308b85fe606e84c9e4035a5b278
diff --git a/dev-util/cargo/cargo-0.15.0.ebuild b/dev-util/cargo/cargo-0.15.0.ebuild
new file mode 100644
index 000000000000..f7214d122114
--- /dev/null
+++ b/dev-util/cargo/cargo-0.15.0.ebuild
@@ -0,0 +1,176 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+CARGO_SNAPSHOT_DATE="2016-09-01"
+CRATES="
+advapi32-sys-0.2.0
+aho-corasick-0.5.3
+bitflags-0.1.1
+bitflags-0.7.0
+bufstream-0.1.2
+cargotest-0.1.0
+cfg-if-0.1.0
+cmake-0.1.18
+crates-io-0.4.0
+crossbeam-0.2.10
+curl-0.4.1
+curl-sys-0.3.6
+docopt-0.6.86
+env_logger-0.3.5
+filetime-0.1.10
+flate2-0.2.14
+fs2-0.3.0
+gcc-0.3.38
+gdi32-sys-0.2.0
+git2-0.6.3
+git2-curl-0.7.0
+glob-0.2.11
+hamcrest-0.1.1
+idna-0.1.0
+kernel32-sys-0.2.2
+lazy_static-0.2.2
+libc-0.2.17
+libgit2-sys-0.6.4
+libssh2-sys-0.2.4
+libz-sys-1.0.10
+log-0.3.6
+matches-0.1.4
+memchr-0.1.11
+miniz-sys-0.1.7
+miow-0.1.3
+net2-0.2.26
+num-0.1.36
+num-bigint-0.1.35
+num-complex-0.1.35
+num-integer-0.1.32
+num-iter-0.1.32
+num-rational-0.1.35
+num-traits-0.1.36
+num_cpus-1.1.0
+openssl-0.9.1
+openssl-probe-0.1.0
+openssl-sys-0.9.1
+pkg-config-0.3.8
+psapi-sys-0.1.0
+rand-0.3.14
+regex-0.1.80
+regex-syntax-0.3.9
+rustc-serialize-0.3.21
+semver-0.5.1
+semver-parser-0.6.1
+strsim-0.5.1
+tar-0.4.8
+tempdir-0.3.5
+term-0.4.4
+thread-id-2.0.0
+thread_local-0.2.7
+toml-0.2.1
+unicode-bidi-0.2.3
+unicode-normalization-0.1.2
+url-1.2.3
+user32-sys-0.2.0
+utf8-ranges-0.1.3
+winapi-0.2.8
+winapi-build-0.1.1
+ws2_32-sys-0.2.1
+"
+
+inherit cargo bash-completion-r1
+
+DESCRIPTION="The Rust's package manager"
+HOMEPAGE="http://crates.io"
+SRC_URI="https://github.com/rust-lang/cargo/archive/${PV}.tar.gz -> ${P}.tar.gz
+ $(cargo_crate_uris ${CRATES})
+ x86? (
+ https://static.rust-lang.org/cargo-dist/${CARGO_SNAPSHOT_DATE}/cargo-nightly-i686-unknown-linux-gnu.tar.gz ->
+ cargo-snapshot-x86-${CARGO_SNAPSHOT_DATE}.tar.gz
+ )
+ amd64? (
+ https://static.rust-lang.org/cargo-dist/${CARGO_SNAPSHOT_DATE}/cargo-nightly-x86_64-unknown-linux-gnu.tar.gz ->
+ cargo-snapshot-amd64-${CARGO_SNAPSHOT_DATE}.tar.gz
+ )"
+
+RESTRICT="mirror"
+LICENSE="|| ( MIT Apache-2.0 )"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+IUSE="doc libressl"
+
+COMMON_DEPEND="sys-libs/zlib
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ net-libs/libssh2
+ net-libs/http-parser"
+RDEPEND="${COMMON_DEPEND}
+ !dev-util/cargo-bin
+ net-misc/curl[ssl]"
+DEPEND="${COMMON_DEPEND}
+ >=dev-lang/rust-1.9.0:stable
+ dev-util/cmake
+ sys-apps/coreutils
+ sys-apps/diffutils
+ sys-apps/findutils
+ sys-apps/sed"
+
+src_configure() {
+ # Cargo only supports these GNU triples:
+ # - Linux: <arch>-unknown-linux-gnu
+ # - MacOS: <arch>-apple-darwin
+ # - Windows: <arch>-pc-windows-gnu
+ # where <arch> could be 'x86_64' (amd64) or 'i686' (x86)
+ use amd64 && CTARGET="x86_64-unknown-linux-gnu"
+ use x86 && CTARGET="i686-unknown-linux-gnu"
+
+ # NOTE: 'disable-nightly' is used by crates (such as 'matches') to entirely
+ # skip their internal libraries that make use of unstable rustc features.
+ # Don't use 'enable-nightly' with a stable release of rustc as DEPEND,
+ # otherwise you could get compilation issues.
+ # see: github.com/gentoo/gentoo-rust/issues/13
+ local myeconfargs=(
+ --host=${CTARGET}
+ --build=${CTARGET}
+ --target=${CTARGET}
+ --cargo="${WORKDIR}"/${P}/target/snapshot/bin/cargo
+ --enable-optimize
+# --release-channel stable
+ --disable-verify-install
+ --disable-debug
+ --disable-cross-tests
+ )
+ econf "${myeconfargs[@]}"
+}
+
+src_compile() {
+ # Building sources
+ export CARGO_HOME="${ECARGO_HOME}"
+ emake VERBOSE=1 PKG_CONFIG_PATH=""
+
+ # Building HTML documentation
+ use doc && emake doc
+}
+
+src_install() {
+ emake prepare-image-${CTARGET} IMGDIR_${CTARGET}="${ED}/usr"
+
+ # Install HTML documentation
+ use doc && HTML_DOCS=("target/doc")
+ einstalldocs
+
+ dobashcomp "${ED}"/usr/etc/bash_completion.d/cargo
+ rm -rf "${ED}"/usr/etc || die
+}
+
+src_test() {
+ # Running unit tests
+ # NOTE: by default 'make test' uses the copy of cargo (v0.0.1-pre-nighyly)
+ # from the installer snapshot instead of the version just built, so the
+ # ebuild needs to override the value of CFG_LOCAL_CARGO to avoid false
+ # positives from unit tests.
+ emake test \
+ CFG_ENABLE_OPTIMIZE=1 \
+ VERBOSE=1 \
+ CFG_LOCAL_CARGO="${WORKDIR}"/${P}/target/${CTARGET}/release/cargo
+}
diff --git a/dev-util/cargo/cargo-0.16.0.ebuild b/dev-util/cargo/cargo-0.16.0.ebuild
new file mode 100644
index 000000000000..f6c33784ed01
--- /dev/null
+++ b/dev-util/cargo/cargo-0.16.0.ebuild
@@ -0,0 +1,176 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+CARGO_SNAPSHOT_DATE="2016-09-01"
+CRATES="
+advapi32-sys-0.2.0
+aho-corasick-0.5.3
+bitflags-0.1.1
+bitflags-0.7.0
+bufstream-0.1.2
+cargotest-0.1.0
+cfg-if-0.1.0
+cmake-0.1.19
+crates-io-0.4.0
+crossbeam-0.2.10
+curl-0.4.1
+curl-sys-0.3.6
+docopt-0.6.86
+env_logger-0.3.5
+filetime-0.1.10
+flate2-0.2.14
+fs2-0.3.0
+gcc-0.3.39
+gdi32-sys-0.2.0
+git2-0.6.3
+git2-curl-0.7.0
+glob-0.2.11
+hamcrest-0.1.1
+idna-0.1.0
+kernel32-sys-0.2.2
+lazy_static-0.2.2
+libc-0.2.18
+libgit2-sys-0.6.5
+libssh2-sys-0.2.4
+libz-sys-1.0.10
+log-0.3.6
+matches-0.1.4
+memchr-0.1.11
+miniz-sys-0.1.7
+miow-0.1.3
+net2-0.2.26
+num-0.1.36
+num-bigint-0.1.35
+num-complex-0.1.35
+num-integer-0.1.32
+num-iter-0.1.32
+num-rational-0.1.35
+num-traits-0.1.36
+num_cpus-1.1.0
+openssl-0.9.1
+openssl-probe-0.1.0
+openssl-sys-0.9.1
+pkg-config-0.3.8
+psapi-sys-0.1.0
+rand-0.3.14
+regex-0.1.80
+regex-syntax-0.3.9
+rustc-serialize-0.3.21
+semver-0.5.1
+semver-parser-0.6.1
+strsim-0.5.1
+tar-0.4.9
+tempdir-0.3.5
+term-0.4.4
+thread-id-2.0.0
+thread_local-0.2.7
+toml-0.2.1
+unicode-bidi-0.2.3
+unicode-normalization-0.1.2
+url-1.2.3
+user32-sys-0.2.0
+utf8-ranges-0.1.3
+winapi-0.2.8
+winapi-build-0.1.1
+ws2_32-sys-0.2.1
+"
+
+inherit cargo bash-completion-r1
+
+DESCRIPTION="The Rust's package manager"
+HOMEPAGE="http://crates.io"
+SRC_URI="https://github.com/rust-lang/cargo/archive/${PV}.tar.gz -> ${P}.tar.gz
+ $(cargo_crate_uris ${CRATES})
+ x86? (
+ https://static.rust-lang.org/cargo-dist/${CARGO_SNAPSHOT_DATE}/cargo-nightly-i686-unknown-linux-gnu.tar.gz ->
+ cargo-snapshot-x86-${CARGO_SNAPSHOT_DATE}.tar.gz
+ )
+ amd64? (
+ https://static.rust-lang.org/cargo-dist/${CARGO_SNAPSHOT_DATE}/cargo-nightly-x86_64-unknown-linux-gnu.tar.gz ->
+ cargo-snapshot-amd64-${CARGO_SNAPSHOT_DATE}.tar.gz
+ )"
+
+RESTRICT="mirror"
+LICENSE="|| ( MIT Apache-2.0 )"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+IUSE="doc libressl"
+
+COMMON_DEPEND="sys-libs/zlib
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ net-libs/libssh2
+ net-libs/http-parser"
+RDEPEND="${COMMON_DEPEND}
+ !dev-util/cargo-bin
+ net-misc/curl[ssl]"
+DEPEND="${COMMON_DEPEND}
+ >=dev-lang/rust-1.9.0:stable
+ dev-util/cmake
+ sys-apps/coreutils
+ sys-apps/diffutils
+ sys-apps/findutils
+ sys-apps/sed"
+
+src_configure() {
+ # Cargo only supports these GNU triples:
+ # - Linux: <arch>-unknown-linux-gnu
+ # - MacOS: <arch>-apple-darwin
+ # - Windows: <arch>-pc-windows-gnu
+ # where <arch> could be 'x86_64' (amd64) or 'i686' (x86)
+ use amd64 && CTARGET="x86_64-unknown-linux-gnu"
+ use x86 && CTARGET="i686-unknown-linux-gnu"
+
+ # NOTE: 'disable-nightly' is used by crates (such as 'matches') to entirely
+ # skip their internal libraries that make use of unstable rustc features.
+ # Don't use 'enable-nightly' with a stable release of rustc as DEPEND,
+ # otherwise you could get compilation issues.
+ # see: github.com/gentoo/gentoo-rust/issues/13
+ local myeconfargs=(
+ --host=${CTARGET}
+ --build=${CTARGET}
+ --target=${CTARGET}
+ --cargo="${WORKDIR}"/${P}/target/snapshot/bin/cargo
+ --enable-optimize
+# --release-channel stable
+ --disable-verify-install
+ --disable-debug
+ --disable-cross-tests
+ )
+ econf "${myeconfargs[@]}"
+}
+
+src_compile() {
+ # Building sources
+ export CARGO_HOME="${ECARGO_HOME}"
+ emake VERBOSE=1 PKG_CONFIG_PATH=""
+
+ # Building HTML documentation
+ use doc && emake doc
+}
+
+src_install() {
+ emake prepare-image-${CTARGET} IMGDIR_${CTARGET}="${ED}/usr"
+
+ # Install HTML documentation
+ use doc && HTML_DOCS=("target/doc")
+ einstalldocs
+
+ dobashcomp "${ED}"/usr/etc/bash_completion.d/cargo
+ rm -rf "${ED}"/usr/etc || die
+}
+
+src_test() {
+ # Running unit tests
+ # NOTE: by default 'make test' uses the copy of cargo (v0.0.1-pre-nighyly)
+ # from the installer snapshot instead of the version just built, so the
+ # ebuild needs to override the value of CFG_LOCAL_CARGO to avoid false
+ # positives from unit tests.
+ emake test \
+ CFG_ENABLE_OPTIMIZE=1 \
+ VERBOSE=1 \
+ CFG_LOCAL_CARGO="${WORKDIR}"/${P}/target/${CTARGET}/release/cargo
+}
diff --git a/dev-util/cargo/cargo-0.17.0.ebuild b/dev-util/cargo/cargo-0.17.0.ebuild
new file mode 100644
index 000000000000..0887c556949a
--- /dev/null
+++ b/dev-util/cargo/cargo-0.17.0.ebuild
@@ -0,0 +1,179 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+CARGO_SNAPSHOT_DATE="2016-09-01"
+CRATES="
+advapi32-sys-0.2.0
+aho-corasick-0.5.3
+bitflags-0.1.1
+bitflags-0.7.0
+bufstream-0.1.2
+cargotest-0.1.0
+cfg-if-0.1.0
+cmake-0.1.19
+crates-io-0.6.0
+crossbeam-0.2.10
+curl-0.4.1
+curl-sys-0.3.6
+docopt-0.6.86
+env_logger-0.3.5
+error-chain-0.7.2
+filetime-0.1.10
+flate2-0.2.14
+fs2-0.3.0
+gcc-0.3.39
+gdi32-sys-0.2.0
+git2-0.6.3
+git2-curl-0.7.0
+glob-0.2.11
+hamcrest-0.1.1
+idna-0.1.0
+kernel32-sys-0.2.2
+lazy_static-0.2.2
+libc-0.2.18
+libgit2-sys-0.6.6
+libssh2-sys-0.2.5
+libz-sys-1.0.13
+log-0.3.6
+matches-0.1.4
+memchr-0.1.11
+metadeps-1.1.1
+miniz-sys-0.1.7
+miow-0.1.3
+net2-0.2.26
+num-0.1.36
+num-bigint-0.1.35
+num-complex-0.1.35
+num-integer-0.1.32
+num-iter-0.1.32
+num-rational-0.1.35
+num-traits-0.1.36
+num_cpus-1.1.0
+openssl-0.9.6
+openssl-probe-0.1.0
+openssl-sys-0.9.6
+pkg-config-0.3.8
+psapi-sys-0.1.0
+rand-0.3.14
+regex-0.1.80
+regex-syntax-0.3.9
+rustc-serialize-0.3.21
+semver-0.5.1
+semver-parser-0.6.1
+shell-escape-0.1.3
+strsim-0.5.1
+tar-0.4.9
+tempdir-0.3.5
+term-0.4.4
+thread-id-2.0.0
+thread_local-0.2.7
+toml-0.2.1
+unicode-bidi-0.2.3
+unicode-normalization-0.1.2
+url-1.2.3
+user32-sys-0.2.0
+utf8-ranges-0.1.3
+winapi-0.2.8
+winapi-build-0.1.1
+ws2_32-sys-0.2.1
+"
+
+inherit cargo bash-completion-r1
+
+DESCRIPTION="The Rust's package manager"
+HOMEPAGE="http://crates.io"
+SRC_URI="https://github.com/rust-lang/cargo/archive/${PV}.tar.gz -> ${P}.tar.gz
+ $(cargo_crate_uris ${CRATES})
+ x86? (
+ https://static.rust-lang.org/cargo-dist/${CARGO_SNAPSHOT_DATE}/cargo-nightly-i686-unknown-linux-gnu.tar.gz ->
+ cargo-snapshot-x86-${CARGO_SNAPSHOT_DATE}.tar.gz
+ )
+ amd64? (
+ https://static.rust-lang.org/cargo-dist/${CARGO_SNAPSHOT_DATE}/cargo-nightly-x86_64-unknown-linux-gnu.tar.gz ->
+ cargo-snapshot-amd64-${CARGO_SNAPSHOT_DATE}.tar.gz
+ )"
+
+RESTRICT="mirror"
+LICENSE="|| ( MIT Apache-2.0 )"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+IUSE="doc libressl"
+
+COMMON_DEPEND="sys-libs/zlib
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ net-libs/libssh2
+ net-libs/http-parser"
+RDEPEND="${COMMON_DEPEND}
+ !dev-util/cargo-bin
+ net-misc/curl[ssl]"
+DEPEND="${COMMON_DEPEND}
+ >=dev-lang/rust-1.9.0:stable
+ dev-util/cmake
+ sys-apps/coreutils
+ sys-apps/diffutils
+ sys-apps/findutils
+ sys-apps/sed"
+
+src_configure() {
+ # Cargo only supports these GNU triples:
+ # - Linux: <arch>-unknown-linux-gnu
+ # - MacOS: <arch>-apple-darwin
+ # - Windows: <arch>-pc-windows-gnu
+ # where <arch> could be 'x86_64' (amd64) or 'i686' (x86)
+ use amd64 && CTARGET="x86_64-unknown-linux-gnu"
+ use x86 && CTARGET="i686-unknown-linux-gnu"
+
+ # NOTE: 'disable-nightly' is used by crates (such as 'matches') to entirely
+ # skip their internal libraries that make use of unstable rustc features.
+ # Don't use 'enable-nightly' with a stable release of rustc as DEPEND,
+ # otherwise you could get compilation issues.
+ # see: github.com/gentoo/gentoo-rust/issues/13
+ local myeconfargs=(
+ --host=${CTARGET}
+ --build=${CTARGET}
+ --target=${CTARGET}
+ --cargo="${WORKDIR}"/${P}/target/snapshot/bin/cargo
+ --enable-optimize
+# --release-channel stable
+ --disable-verify-install
+ --disable-debug
+ --disable-cross-tests
+ )
+ econf "${myeconfargs[@]}"
+}
+
+src_compile() {
+ # Building sources
+ export CARGO_HOME="${ECARGO_HOME}"
+ emake VERBOSE=1 PKG_CONFIG_PATH=""
+
+ # Building HTML documentation
+ use doc && emake doc
+}
+
+src_install() {
+ emake prepare-image-${CTARGET} IMGDIR_${CTARGET}="${ED}/usr"
+
+ # Install HTML documentation
+ use doc && HTML_DOCS=("target/doc")
+ einstalldocs
+
+ dobashcomp "${ED}"/usr/etc/bash_completion.d/cargo
+ rm -rf "${ED}"/usr/etc || die
+}
+
+src_test() {
+ # Running unit tests
+ # NOTE: by default 'make test' uses the copy of cargo (v0.0.1-pre-nighyly)
+ # from the installer snapshot instead of the version just built, so the
+ # ebuild needs to override the value of CFG_LOCAL_CARGO to avoid false
+ # positives from unit tests.
+ emake test \
+ CFG_ENABLE_OPTIMIZE=1 \
+ VERBOSE=1 \
+ CFG_LOCAL_CARGO="${WORKDIR}"/${P}/target/${CTARGET}/release/cargo
+}
diff --git a/dev-util/cargo/cargo-0.20.0.ebuild b/dev-util/cargo/cargo-0.20.0.ebuild
new file mode 100644
index 000000000000..25f1a84adc87
--- /dev/null
+++ b/dev-util/cargo/cargo-0.20.0.ebuild
@@ -0,0 +1,178 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+CARGO_SNAPSHOT_DATE="2016-09-01"
+CRATES="
+advapi32-sys-0.2.0
+aho-corasick-0.5.3
+aho-corasick-0.6.3
+backtrace-0.3.2
+backtrace-sys-0.1.11
+bitflags-0.9.1
+bufstream-0.1.3
+cargotest-0.1.0
+cfg-if-0.1.0
+cmake-0.1.24
+crates-io-0.9.0
+crossbeam-0.2.10
+curl-0.4.6
+curl-sys-0.3.12
+dbghelp-sys-0.2.0
+docopt-0.7.0
+dtoa-0.4.1
+env_logger-0.4.3
+error-chain-0.10.0
+filetime-0.1.10
+flate2-0.2.19
+foreign-types-0.2.0
+fs2-0.4.1
+gcc-0.3.50
+gdi32-sys-0.2.0
+git2-0.6.6
+git2-curl-0.7.0
+glob-0.2.11
+hamcrest-0.1.1
+idna-0.1.2
+itoa-0.3.1
+jobserver-0.1.6
+kernel32-sys-0.2.2
+lazy_static-0.2.8
+libc-0.2.23
+libgit2-sys-0.6.12
+libssh2-sys-0.2.6
+libz-sys-1.0.14
+log-0.3.8
+matches-0.1.4
+memchr-0.1.11
+memchr-1.0.1
+miniz-sys-0.1.9
+miow-0.2.1
+net2-0.2.29
+num-0.1.37
+num-bigint-0.1.37
+num-complex-0.1.37
+num-integer-0.1.34
+num-iter-0.1.33
+num-rational-0.1.36
+num-traits-0.1.37
+num_cpus-1.5.0
+openssl-0.9.13
+openssl-probe-0.1.1
+openssl-sys-0.9.13
+pkg-config-0.3.9
+psapi-sys-0.1.0
+quote-0.3.15
+rand-0.3.15
+regex-0.1.80
+regex-0.2.2
+regex-syntax-0.3.9
+regex-syntax-0.4.1
+rustc-demangle-0.1.4
+rustc-serialize-0.3.24
+scoped-tls-0.1.0
+semver-0.7.0
+semver-parser-0.7.0
+serde-1.0.8
+serde_derive-1.0.8
+serde_derive_internals-0.15.1
+serde_ignored-0.0.3
+serde_json-1.0.2
+shell-escape-0.1.3
+strsim-0.6.0
+syn-0.11.11
+synom-0.11.3
+tar-0.4.13
+tempdir-0.3.5
+term-0.4.5
+thread-id-2.0.0
+thread-id-3.1.0
+thread_local-0.2.7
+thread_local-0.3.3
+toml-0.4.1
+unicode-bidi-0.3.3
+unicode-normalization-0.1.4
+unicode-xid-0.0.4
+unreachable-0.1.1
+url-1.4.1
+user32-sys-0.2.0
+utf8-ranges-0.1.3
+utf8-ranges-1.0.0
+vcpkg-0.2.1
+void-1.0.2
+winapi-0.2.8
+winapi-build-0.1.1
+ws2_32-sys-0.2.1
+"
+
+inherit cargo bash-completion-r1 versionator
+
+BOOTSTRAP_VERSION="0.$(($(get_version_component_range 2) - 1)).0"
+
+DESCRIPTION="The Rust's package manager"
+HOMEPAGE="http://crates.io"
+SRC_URI="https://github.com/rust-lang/cargo/archive/${PV}.tar.gz -> ${P}.tar.gz
+ $(cargo_crate_uris ${CRATES})
+ x86? (
+ https://static.rust-lang.org/dist/cargo-${BOOTSTRAP_VERSION}-i686-unknown-linux-gnu.tar.gz
+ )
+ amd64? (
+ https://static.rust-lang.org/dist/cargo-${BOOTSTRAP_VERSION}-x86_64-unknown-linux-gnu.tar.gz
+ )"
+
+RESTRICT="mirror"
+LICENSE="|| ( MIT Apache-2.0 )"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+IUSE="doc libressl"
+
+if [[ ${ARCH} = "amd64" ]]; then
+ TRIPLE="x86_64-unknown-linux-gnu"
+else
+ TRIPLE="i686-unknown-linux-gnu"
+fi
+
+COMMON_DEPEND="sys-libs/zlib
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ net-libs/libssh2
+ net-libs/http-parser"
+RDEPEND="${COMMON_DEPEND}
+ !dev-util/cargo-bin
+ net-misc/curl[ssl]"
+DEPEND="${COMMON_DEPEND}
+ >=dev-lang/rust-1.9.0:stable
+ dev-util/cmake
+ sys-apps/coreutils
+ sys-apps/diffutils
+ sys-apps/findutils
+ sys-apps/sed"
+
+src_configure() {
+ # Do nothing
+ echo "Configuring cargo..."
+}
+
+src_compile() {
+ export CARGO_HOME="${ECARGO_HOME}"
+ local cargo="${WORKDIR}/cargo-${BOOTSTRAP_VERSION}-${TRIPLE}/cargo/bin/cargo"
+ ${cargo} build --release
+
+ # Building HTML documentation
+ use doc && ${cargo} doc
+}
+
+src_install() {
+ dobin target/release/cargo
+
+ # Install HTML documentation
+ use doc && HTML_DOCS=("target/doc")
+ einstalldocs
+
+ newbashcomp src/etc/cargo.bashcomp.sh cargo
+ insinto /usr/share/zsh/site-functions
+ doins src/etc/_cargo
+ doman src/etc/man/*
+}
diff --git a/dev-util/cargo/cargo-0.21.0.ebuild b/dev-util/cargo/cargo-0.21.0.ebuild
new file mode 100644
index 000000000000..a05dc26efdd2
--- /dev/null
+++ b/dev-util/cargo/cargo-0.21.0.ebuild
@@ -0,0 +1,182 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+CARGO_SNAPSHOT_DATE="2016-09-01"
+CRATES="
+advapi32-sys-0.2.0
+aho-corasick-0.5.3
+aho-corasick-0.6.3
+atty-0.2.2
+backtrace-0.3.2
+backtrace-sys-0.1.11
+bitflags-0.9.1
+bufstream-0.1.3
+cargotest-0.1.0
+cfg-if-0.1.2
+cmake-0.1.24
+crates-io-0.10.0
+crossbeam-0.2.10
+curl-0.4.7
+curl-sys-0.3.14
+dbghelp-sys-0.2.0
+docopt-0.8.1
+dtoa-0.4.1
+env_logger-0.4.3
+error-chain-0.11.0-rc.2
+filetime-0.1.10
+flate2-0.2.19
+foreign-types-0.2.0
+fs2-0.4.2
+gcc-0.3.51
+git2-0.6.6
+git2-curl-0.7.0
+glob-0.2.11
+hamcrest-0.1.1
+hex-0.2.0
+idna-0.1.2
+itoa-0.3.1
+jobserver-0.1.6
+kernel32-sys-0.2.2
+lazy_static-0.2.8
+libc-0.2.25
+libgit2-sys-0.6.12
+libssh2-sys-0.2.6
+libz-sys-1.0.16
+log-0.3.8
+matches-0.1.6
+memchr-0.1.11
+memchr-1.0.1
+miniz-sys-0.1.9
+miow-0.2.1
+net2-0.2.29
+num-0.1.39
+num-bigint-0.1.39
+num-complex-0.1.38
+num-integer-0.1.34
+num-iter-0.1.33
+num-rational-0.1.38
+num-traits-0.1.39
+num_cpus-1.6.2
+openssl-0.9.15
+openssl-probe-0.1.1
+openssl-sys-0.9.15
+percent-encoding-1.0.0
+pkg-config-0.3.9
+psapi-sys-0.1.0
+quote-0.3.15
+rand-0.3.15
+regex-0.1.80
+regex-0.2.2
+regex-syntax-0.3.9
+regex-syntax-0.4.1
+rustc-demangle-0.1.4
+rustc-serialize-0.3.24
+scoped-tls-0.1.0
+semver-0.7.0
+semver-parser-0.7.0
+serde-1.0.9
+serde_derive-1.0.9
+serde_derive_internals-0.15.1
+serde_ignored-0.0.3
+serde_json-1.0.2
+shell-escape-0.1.3
+socket2-0.2.1
+strsim-0.6.0
+syn-0.11.11
+synom-0.11.3
+tar-0.4.13
+tempdir-0.3.5
+termcolor-0.3.2
+thread-id-2.0.0
+thread_local-0.2.7
+thread_local-0.3.4
+toml-0.4.2
+unicode-bidi-0.3.4
+unicode-normalization-0.1.5
+unicode-xid-0.0.4
+unreachable-1.0.0
+url-1.5.1
+utf8-ranges-0.1.3
+utf8-ranges-1.0.0
+vcpkg-0.2.2
+void-1.0.2
+winapi-0.2.8
+winapi-build-0.1.1
+wincolor-0.1.4
+ws2_32-sys-0.2.1
+"
+
+inherit cargo bash-completion-r1 versionator
+
+BOOTSTRAP_VERSION="0.$(($(get_version_component_range 2) - 1)).0"
+
+DESCRIPTION="The Rust's package manager"
+HOMEPAGE="http://crates.io"
+SRC_URI="https://github.com/rust-lang/cargo/archive/${PV}.tar.gz -> ${P}.tar.gz
+ $(cargo_crate_uris ${CRATES})
+ x86? (
+ https://static.rust-lang.org/dist/cargo-${BOOTSTRAP_VERSION}-i686-unknown-linux-gnu.tar.gz
+ )
+ amd64? (
+ https://static.rust-lang.org/dist/cargo-${BOOTSTRAP_VERSION}-x86_64-unknown-linux-gnu.tar.gz
+ )"
+
+RESTRICT="mirror"
+LICENSE="|| ( MIT Apache-2.0 )"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+IUSE="doc libressl"
+
+if [[ ${ARCH} = "amd64" ]]; then
+ TRIPLE="x86_64-unknown-linux-gnu"
+else
+ TRIPLE="i686-unknown-linux-gnu"
+fi
+
+COMMON_DEPEND="sys-libs/zlib
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ net-libs/libssh2
+ net-libs/http-parser"
+RDEPEND="${COMMON_DEPEND}
+ !dev-util/cargo-bin
+ net-misc/curl[ssl]"
+DEPEND="${COMMON_DEPEND}
+ >=virtual/rust-1.19.0
+ dev-util/cmake
+ sys-apps/coreutils
+ sys-apps/diffutils
+ sys-apps/findutils
+ sys-apps/sed"
+
+PATCHES=( "${FILESDIR}/0.21.0-openssl-0.9.15.patch" )
+
+src_configure() {
+ # Do nothing
+ echo "Configuring cargo..."
+}
+
+src_compile() {
+ export CARGO_HOME="${ECARGO_HOME}"
+ local cargo="${WORKDIR}/cargo-${BOOTSTRAP_VERSION}-${TRIPLE}/cargo/bin/cargo"
+ ${cargo} build --release
+
+ # Building HTML documentation
+ use doc && ${cargo} doc
+}
+
+src_install() {
+ dobin target/release/cargo
+
+ # Install HTML documentation
+ use doc && HTML_DOCS=("target/doc")
+ einstalldocs
+
+ newbashcomp src/etc/cargo.bashcomp.sh cargo
+ insinto /usr/share/zsh/site-functions
+ doins src/etc/_cargo
+ doman src/etc/man/*
+}
diff --git a/dev-util/cargo/files/0.21.0-openssl-0.9.15.patch b/dev-util/cargo/files/0.21.0-openssl-0.9.15.patch
new file mode 100644
index 000000000000..d60fb6932841
--- /dev/null
+++ b/dev-util/cargo/files/0.21.0-openssl-0.9.15.patch
@@ -0,0 +1,94 @@
+--- a/Cargo.lock 2017-09-09 15:08:09.213744707 +0200
++++ b/Cargo.lock 2017-09-09 15:11:16.736666262 +0200
+@@ -27,7 +27,7 @@
+ "log 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)",
+ "miow 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
+ "num_cpus 1.6.2 (registry+https://github.com/rust-lang/crates.io-index)",
+- "openssl 0.9.14 (registry+https://github.com/rust-lang/crates.io-index)",
++ "openssl 0.9.15 (registry+https://github.com/rust-lang/crates.io-index)",
+ "psapi-sys 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
+ "scoped-tls 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
+ "semver 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
+@@ -172,7 +172,7 @@
+ "curl-sys 0.3.14 (registry+https://github.com/rust-lang/crates.io-index)",
+ "libc 0.2.25 (registry+https://github.com/rust-lang/crates.io-index)",
+ "openssl-probe 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
+- "openssl-sys 0.9.14 (registry+https://github.com/rust-lang/crates.io-index)",
++ "openssl-sys 0.9.15 (registry+https://github.com/rust-lang/crates.io-index)",
+ "socket2 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
+ "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)",
+ ]
+@@ -185,7 +185,7 @@
+ "gcc 0.3.51 (registry+https://github.com/rust-lang/crates.io-index)",
+ "libc 0.2.25 (registry+https://github.com/rust-lang/crates.io-index)",
+ "libz-sys 1.0.16 (registry+https://github.com/rust-lang/crates.io-index)",
+- "openssl-sys 0.9.14 (registry+https://github.com/rust-lang/crates.io-index)",
++ "openssl-sys 0.9.15 (registry+https://github.com/rust-lang/crates.io-index)",
+ "pkg-config 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)",
+ "vcpkg 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
+ "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)",
+@@ -280,7 +280,7 @@
+ "libc 0.2.25 (registry+https://github.com/rust-lang/crates.io-index)",
+ "libgit2-sys 0.6.12 (registry+https://github.com/rust-lang/crates.io-index)",
+ "openssl-probe 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
+- "openssl-sys 0.9.14 (registry+https://github.com/rust-lang/crates.io-index)",
++ "openssl-sys 0.9.15 (registry+https://github.com/rust-lang/crates.io-index)",
+ "url 1.5.1 (registry+https://github.com/rust-lang/crates.io-index)",
+ ]
+
+@@ -368,7 +368,7 @@
+ "libc 0.2.25 (registry+https://github.com/rust-lang/crates.io-index)",
+ "libssh2-sys 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)",
+ "libz-sys 1.0.16 (registry+https://github.com/rust-lang/crates.io-index)",
+- "openssl-sys 0.9.14 (registry+https://github.com/rust-lang/crates.io-index)",
++ "openssl-sys 0.9.15 (registry+https://github.com/rust-lang/crates.io-index)",
+ "pkg-config 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)",
+ ]
+
+@@ -380,7 +380,7 @@
+ "cmake 0.1.24 (registry+https://github.com/rust-lang/crates.io-index)",
+ "libc 0.2.25 (registry+https://github.com/rust-lang/crates.io-index)",
+ "libz-sys 1.0.16 (registry+https://github.com/rust-lang/crates.io-index)",
+- "openssl-sys 0.9.14 (registry+https://github.com/rust-lang/crates.io-index)",
++ "openssl-sys 0.9.15 (registry+https://github.com/rust-lang/crates.io-index)",
+ "pkg-config 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)",
+ ]
+
+@@ -529,14 +529,14 @@
+
+ [[package]]
+ name = "openssl"
+-version = "0.9.14"
++version = "0.9.15"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+ dependencies = [
+ "bitflags 0.9.1 (registry+https://github.com/rust-lang/crates.io-index)",
+ "foreign-types 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
+ "lazy_static 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)",
+ "libc 0.2.25 (registry+https://github.com/rust-lang/crates.io-index)",
+- "openssl-sys 0.9.14 (registry+https://github.com/rust-lang/crates.io-index)",
++ "openssl-sys 0.9.15 (registry+https://github.com/rust-lang/crates.io-index)",
+ ]
+
+ [[package]]
+@@ -546,7 +546,7 @@
+
+ [[package]]
+ name = "openssl-sys"
+-version = "0.9.14"
++version = "0.9.15"
+ source = "registry+https://github.com/rust-lang/crates.io-index"
+ dependencies = [
+ "gcc 0.3.51 (registry+https://github.com/rust-lang/crates.io-index)",
+@@ -928,9 +928,9 @@
+ "checksum num-rational 0.1.38 (registry+https://github.com/rust-lang/crates.io-index)" = "33c881e104a26e1accc09449374c095ff2312c8e0c27fab7bbefe16eac7c776d"
+ "checksum num-traits 0.1.39 (registry+https://github.com/rust-lang/crates.io-index)" = "1708c0628602a98b52fad936cf3edb9a107af06e52e49fdf0707e884456a6af6"
+ "checksum num_cpus 1.6.2 (registry+https://github.com/rust-lang/crates.io-index)" = "aec53c34f2d0247c5ca5d32cca1478762f301740468ee9ee6dcb7a0dd7a0c584"
+-"checksum openssl 0.9.14 (registry+https://github.com/rust-lang/crates.io-index)" = "11ba043cb65fc9af71a431b8a36ffe8686cd4751cdf70a473ec1d01066ac7e41"
++"checksum openssl 0.9.15 (registry+https://github.com/rust-lang/crates.io-index)" = "f776f1d8af832fd2c637ee182c801e8f7ea8895718a2be9914cca001f6e2c40a"
+ "checksum openssl-probe 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "d98df0270d404ccd3c050a41d579c52d1db15375168bb3471e04ec0f5f378daf"
+-"checksum openssl-sys 0.9.14 (registry+https://github.com/rust-lang/crates.io-index)" = "236c718c2e2c2b58a546d86ffea5194400bb15dbe01ca85325ffd357b03cf66c"
++"checksum openssl-sys 0.9.15 (registry+https://github.com/rust-lang/crates.io-index)" = "ad95f8160d1c150c4f44d4c4959732e048ac046c37f597fe362f8bf57561ffb4"
+ "checksum percent-encoding 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "de154f638187706bde41d9b4738748933d64e6b37bdbffc0b47a97d16a6ae356"
+ "checksum pkg-config 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)" = "3a8b4c6b8165cd1a1cd4b9b120978131389f64bdaf456435caa41e630edba903"
+ "checksum psapi-sys 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "abcd5d1a07d360e29727f757a9decb3ce8bc6e0efa8969cfaad669a8317a2478"
diff --git a/dev-util/cargo/metadata.xml b/dev-util/cargo/metadata.xml
new file mode 100644
index 000000000000..b74fce0037e8
--- /dev/null
+++ b/dev-util/cargo/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="project">
+ <email>rust@gentoo.org</email>
+ <name>Rust Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">rust-lang/cargo</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/catalyst/Manifest b/dev-util/catalyst/Manifest
new file mode 100644
index 000000000000..71454a9e97fa
--- /dev/null
+++ b/dev-util/catalyst/Manifest
@@ -0,0 +1,15 @@
+AUX catalyst-2.0.18-Do-notuntarwith--acls.patch 6156 SHA256 2b8160bba1207cf45412a8133b6ed3b039d6705f76074651b6d42c4488b9bc1e SHA512 500d72f7e11f99eb53275aac3e1b94394826cfa271312ee268092d12a70128b46455c5da1122fb70e21459f56ded3e3ad2752c33516cd3dc4ea4ac70cd0ec32f WHIRLPOOL f348eb0507d9fed5d5e05ba27b4b662fa1fd25e5d87afd886732a45173d2c3b27fee18ad4435c0fdefdb92d6606d0b11a9c54dff459692eff5db3aeb05f2c459
+AUX catalyst-2.0.18-fix-quotes.patch 1663 SHA256 5d99b200bef45e3a69003687d00a1939e9ab696bd1d2653f7a76f7ea66972c88 SHA512 185705eba562dfeb52740ad3a0c3ea611648d508079ad54c9e5680d318888cc5123c5ff365b1c575a5348ddfd8210763277daed226b564ed3a59e15f18bff205 WHIRLPOOL 7b9434459c31207e8d36bcbf57df7751739848b2c8e5e081b7b219029deb7257f33652027ca22a94fa0452439e6e97e16467554423435a5bd17cdb293d1942a2
+AUX catalyst-2.0.18-remove-machine-id.patch 778 SHA256 dc40a3c469a80e40eed68c46ea61ce6ac802aa56ade300eee372c3eb79741d33 SHA512 7e5230eacc6ca7b535d416cd2dd846fa9fbc58951ef4cbdb14108afcbcd63f2d8a7b082920d04dc51b9eb47a6d44eeb5a07d704b14e71b6a972d96ca79f807d6 WHIRLPOOL 1645f5ccf29272d2cb97c86dbd638021d452051e167231807bbf5ecc75f9c059230e3009ff1adc3224694901a392104ad0418b591ce474ef03b96866d247b7af
+AUX catalyst-2.0.18-stage1-export-ROOT.patch 1274 SHA256 bfd9470df1b53c0313731c22d740a4f0ce613326037144808cf37e2c3c280690 SHA512 6372917d395d8129c49c4dd8de7e6a8e7797f6c535e39713fa68059d82f398aa1fb0ffb1b6a65c91f9b5a4861f29cffd4717b7a612276e78d22ac1985ee32113 WHIRLPOOL b3f4b7678ff196ee00e65961894b19ec58868c2e769bc573ab4cb0570fbbbbebb7b5ca0b5f2e3534bc4582db872e4da4f49d9d98fc9d82c473a627194bd63c0b
+DIST catalyst-2.0.18.tar.bz2 861398 SHA256 f3c2583fb8da425a9c57d3a00aac559e6bfde5951f1c7ef30ddf4fa00d6bedbd SHA512 5a1408ffe06ce5c06a6bca8f0e3ecd91c17cdc36e2dfa37881d843432bdfe987fd2cfd988cd5719bdf378c18c2e79ee59e281c3b4dba4ae9edfc2dd654b8ee4a WHIRLPOOL 73abb541bd9984e26e43dbeee3156ca84104aedfe16a027b97790274aaffa8678a29677da4ada908fe9c2184268eb9c266a8961a5e0681fccc463c47a6d83542
+DIST catalyst-3.0_rc1.tar.bz2 874429 SHA256 b21eabc059ef618b617fdd0fa7c558878393d58ff66ce77a7fc6ff87384608c6 SHA512 ca33a1142785f10471e675c9dce784e1f92d6029f2fcf82d2fb1a14292e7aa9063e7942e187faa5d4253f316c032b066a6aba0f32e29cc0125ef757654cbd845 WHIRLPOOL f7b3e7ea61c1e590141cc2ff1ec1883e8b07727ee52c2e1d64f8fd371312d1ef84806f5b40fc16d2178b4b9ffcdcaa3d4d3cac0e4ef52625e5f41c8b0a3ec25e
+EBUILD catalyst-2.0.18-r1.ebuild 3129 SHA256 8a2b18befc9a0c2abfa6fb772ad721036842d5fa17db8823cfe7afdcb924a3c6 SHA512 c70736f23448ff07af62a587c0a3c4c8dabf24e35dfe3c8227c5d89ca9063adbb4bd2a1a7c9749d2b21435f7bc40651c30a00e95a23ef957558fead030b7d31c WHIRLPOOL b8c9fad31445bfa3c781a1b1da01a316f967260485d579158783cd39fdc50e34994caa565afdce6df0615cb878921bedfecb5c2b2ad8acffee91ad2dad74b014
+EBUILD catalyst-2.0.18-r4.ebuild 3297 SHA256 5dba6296b5cb985f89946b1575d9e2ce07fda0820ee47ce346abecbbbfcd14ac SHA512 e397fb7205d4bf4823b5d328fb9059aa37ed8ad97deb2fa0fd7a7b1cafe694daa2f9f5705ff1a83905101b9679755b875a79063039a63743f6ef2e96dce4efea WHIRLPOOL f78adcfbac9738183d489c2f59992fce333b77f98b46e757731342660454de1bb342b3483a096d820601ea5e8cdba5093cb1872ecbbd3e3f4426102e1e8f6218
+EBUILD catalyst-2.0.9999.ebuild 2930 SHA256 0a0adc03ab4c80c2dadea6b01a1e0b1b258fa089c03cb2785480d1a850822bc6 SHA512 0ce4efc9ff2ce0b394df62b9acf62393d7b277c61067439c3bd095ec0b362c140abdfb54329818e3a3d7eb2f97e1ea9954698eecaca8d093e8b4e5ee5835192f WHIRLPOOL 17665c4e4318ea5acab4ef26a773f69ae2fdf2dac7fc2d73f3ab4d7fc0bf401593dce8e6c3b6ecde49cff262e5b6cf9babe77d2e3cd71001b23a283f96d90af0
+EBUILD catalyst-2.9999.ebuild 1537 SHA256 cc2df2f8f1057864ee6c3de34fee57e3a3f3138b26b32006e15393cc4864159e SHA512 fbf47ebd92a551a9226aad367c5a75cfc079458ef91bd636b870e96376a9cff639540b0e34404f9b3aab5f7a11a33ba4bfb4aa77671d5932e750f084ad671194 WHIRLPOOL 45113e7fc2c83e34b8ec704c2e2489194e12d84e1371a8bfd7fd3f666171deb316b5f713cf731da605abd494cb8052e658f92be6923e8155b50b5ee1b8d8d0db
+EBUILD catalyst-3.0_rc1.ebuild 1605 SHA256 c2c32bd25b0ae37650521804d9de171e8ab704c4db85557b6181e92257f800ca SHA512 adf6657e8bf659b7958da18b9088e4b655fffd161aae9e99776db76faef7d8d7ef3c28399038c4324bc502bf2f3ecdbf24d5ae3144bb317930add08d73592e9b WHIRLPOOL 6b9bc81ab9cc00c47ed7d143f9f3fc2c3f9582b86e9b34975e76d8c54eef5b40f0fddb0e696fb7fdd5e6c2e881c1758f2fdf3d472fc82ff2a2dac8e59b07f495
+EBUILD catalyst-9999.ebuild 1634 SHA256 2413d6e562c2195e3d398baf344f926b560e1eab70ea0ac87e95ade300184403 SHA512 913a05a3544fe93f8127c6cced635fad43434fbb01d728b12152ebcc7924daea3b57124265a85f93bad8e43d6484ae4a77556041b2b9ca16a1e3ce7d2e86c1cf WHIRLPOOL cab2122a67fd2b313f2e35680aaee921fce4ed1dae812f8e571e8da616b9be95769469e941ca299aa37518f93081807fa56e3626070f76a9264898edec229d0d
+MISC ChangeLog 7282 SHA256 ae152649d1ad5381ddc10a262ec59139dd010b0b1a3fca87427121f38575c148 SHA512 370549afc34d3ae04f12f209988e5498036e6e882a300c089bc8955663c1ed2bb3ff73f64377ccc6abae0843bd556965d2b42dffcb645982b917c108fb489cd1 WHIRLPOOL 5c0c6de35627ff41513f20500ef243fbf5aa8886e5fdcd7260dae5771502d0670493b004ffa8168f3822517fd350065614fc5fdf33e4b2a0a2d0c9f8c9d010b9
+MISC ChangeLog-2015 60029 SHA256 cafac934525a38bf3872a8d838d94ab234aa35e0b7bcbc051fe119e50fbbacfe SHA512 1d74d4f864b83b9da9c527a3f6fdac871cfabe3cced2cf21298f4b3289a1674e7d5cc62ee743da3962a53fe5dcfde511f324b47f9c090830140b96e16742d5fe WHIRLPOOL 5deae7a6e5aa600c6f4d9e030155380a5b0d9862ce59ad7d773986076ac207e69cf782209704eecb6209b808bae53a015a67e1d267ce390ae117a0f570161835
+MISC metadata.xml 417 SHA256 7368ace310e6ad01b264004c144e7c690f0f3106c851514190df206122ceb357 SHA512 ba623747ea22b2e886740d771dcd80ac54df9b29762d1d1f3eb46701e9463d245a2e310eb03695dc9342a57da486a9a8d56892da709727476a2d6afed5e63cb8 WHIRLPOOL 32a9aa02498e87b255aab36b0195bec07d95ecc9cb10eb3f5eb8393cc3a5910263ef2e4cb507924a29b822845b5ccc54af25ac5e226e3900bdc379d72e1d2cc6
diff --git a/dev-util/catalyst/catalyst-2.0.18-r1.ebuild b/dev-util/catalyst/catalyst-2.0.18-r1.ebuild
new file mode 100644
index 000000000000..c16137f92367
--- /dev/null
+++ b/dev-util/catalyst/catalyst-2.0.18-r1.ebuild
@@ -0,0 +1,115 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+if [[ ${PV} == *9999* ]]; then
+ SRC_ECLASS="git-2"
+ EGIT_REPO_URI="anongit.gentoo.org/proj/catalyst.git"
+ EGIT_MASTER="master"
+ S="${WORKDIR}/${PN}"
+else
+ SRC_URI="mirror://gentoo/${P}.tar.bz2
+ https://dev.gentoo.org/~jmbsvicetto/distfiles/${P}.tar.bz2
+ https://dev.gentoo.org/~mattst88/distfiles/${P}.tar.bz2
+ https://dev.gentoo.org/~zerochaos/distfiles/${P}.tar.bz2
+ https://dev.gentoo.org/~dolsen/releases/catalyst/${P}.tar.bz2"
+ KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
+fi
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit eutils multilib python-single-r1 ${SRC_ECLASS}
+
+DESCRIPTION="Release metatool used for creating releases based on Gentoo Linux"
+HOMEPAGE="https://wiki.gentoo.org/wiki/Catalyst"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="ccache kernel_linux"
+
+DEPEND="
+ app-text/asciidoc
+ ${PYTHON_DEPS}
+"
+RDEPEND="
+ app-arch/lbzip2
+ app-crypt/shash
+ app-arch/tar[xattr]
+ virtual/cdrtools
+ amd64? ( >=sys-boot/syslinux-3.72 )
+ ia64? ( sys-fs/dosfstools )
+ x86? ( >=sys-boot/syslinux-3.72 )
+ ccache? ( dev-util/ccache )
+ kernel_linux? ( app-misc/zisofs-tools >=sys-fs/squashfs-tools-2.1 )
+ ${PYTHON_DEPS}
+"
+
+REQUIRED_USE=${PYTHON_REQUIRED_USE}
+
+PATCHES=( "${FILESDIR}/catalyst-2.0.18-Do-notuntarwith--acls.patch" )
+
+pkg_setup() {
+ if use ccache ; then
+ einfo "Enabling ccache support for catalyst."
+ else
+ ewarn "By default, ccache support for catalyst is disabled."
+ ewarn "If this is not what you intended,"
+ ewarn "then you should add ccache to your USE."
+ fi
+
+ echo
+ einfo "The template spec files are now installed by default. You can find"
+ einfo "them under /usr/share/doc/${PF}/examples"
+ einfo "and they are considered to be the authorative source of information"
+ einfo "on catalyst."
+ echo
+
+ python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ epatch "${PATCHES[@]}"
+}
+
+src_install() {
+ insinto /usr/$(get_libdir)/${PN}
+ exeinto /usr/$(get_libdir)/${PN}
+ doexe catalyst || die "copying catalyst"
+
+ if [[ ${PV} == 3.9999* ]]; then
+ doins -r modules files || die "copying files"
+ else
+ doins -r arch modules livecd || die "copying files"
+ fi
+
+ for x in targets/*; do
+ exeinto /usr/$(get_libdir)/${PN}/$x
+ doexe $x/* || die "copying ${x}"
+ done
+
+ # Here is where we actually enable ccache
+ use ccache && \
+ sed -i -e 's:options="autoresume kern:options="autoresume ccache kern:' \
+ files/catalyst.conf
+
+ sed -i -e "s:/usr/lib/catalyst:/usr/$(get_libdir)/catalyst:" \
+ files/catalyst.conf
+
+ make_wrapper catalyst /usr/$(get_libdir)/${PN}/catalyst
+ insinto /etc/catalyst
+ doins files/catalyst.conf files/catalystrc || die "copying configuration"
+ insinto /usr/share/doc/${PF}/examples
+ doins examples/* || die
+ dodoc README AUTHORS
+ doman files/catalyst.1 files/catalyst-spec.5
+
+ python_fix_shebang "${ED}usr/$(get_libdir)/catalyst/catalyst"
+ python_optimize "${ED}"
+}
+
+pkg_postinst() {
+ einfo "You can find more information about catalyst by checking out the"
+ einfo "catalyst project page at:"
+ einfo "https://www.gentoo.org/proj/en/releng/catalyst/index.xml"
+}
diff --git a/dev-util/catalyst/catalyst-2.0.18-r4.ebuild b/dev-util/catalyst/catalyst-2.0.18-r4.ebuild
new file mode 100644
index 000000000000..45b66c35b87d
--- /dev/null
+++ b/dev-util/catalyst/catalyst-2.0.18-r4.ebuild
@@ -0,0 +1,120 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+if [[ ${PV} == *9999* ]]; then
+ SRC_ECLASS="git-2"
+ EGIT_REPO_URI="anongit.gentoo.org/proj/catalyst.git"
+ EGIT_MASTER="master"
+ S="${WORKDIR}/${PN}"
+else
+ SRC_URI="mirror://gentoo/${P}.tar.bz2
+ https://dev.gentoo.org/~jmbsvicetto/distfiles/${P}.tar.bz2
+ https://dev.gentoo.org/~mattst88/distfiles/${P}.tar.bz2
+ https://dev.gentoo.org/~zerochaos/distfiles/${P}.tar.bz2
+ https://dev.gentoo.org/~dolsen/releases/catalyst/${P}.tar.bz2"
+ KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~mips ppc ~ppc64 ~s390 ~sh ~sparc x86 ~x86-fbsd"
+fi
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit eutils multilib python-single-r1 ${SRC_ECLASS}
+
+DESCRIPTION="Release metatool used for creating releases based on Gentoo Linux"
+HOMEPAGE="https://wiki.gentoo.org/wiki/Catalyst"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="ccache kernel_linux"
+
+DEPEND="
+ app-text/asciidoc
+ ${PYTHON_DEPS}
+"
+RDEPEND="
+ app-arch/lbzip2
+ app-crypt/shash
+ app-arch/tar[xattr]
+ virtual/cdrtools
+ amd64? ( >=sys-boot/syslinux-3.72 )
+ ia64? ( sys-fs/dosfstools )
+ x86? ( >=sys-boot/syslinux-3.72 )
+ ccache? ( dev-util/ccache )
+ kernel_linux? ( app-misc/zisofs-tools >=sys-fs/squashfs-tools-2.1 )
+ ${PYTHON_DEPS}
+"
+
+REQUIRED_USE=${PYTHON_REQUIRED_USE}
+
+PATCHES=(
+ "${FILESDIR}/catalyst-2.0.18-Do-notuntarwith--acls.patch"
+ "${FILESDIR}/catalyst-2.0.18-fix-quotes.patch"
+ "${FILESDIR}/catalyst-2.0.18-remove-machine-id.patch"
+ "${FILESDIR}/catalyst-2.0.18-stage1-export-ROOT.patch"
+)
+
+pkg_setup() {
+ if use ccache ; then
+ einfo "Enabling ccache support for catalyst."
+ else
+ ewarn "By default, ccache support for catalyst is disabled."
+ ewarn "If this is not what you intended,"
+ ewarn "then you should add ccache to your USE."
+ fi
+
+ echo
+ einfo "The template spec files are now installed by default. You can find"
+ einfo "them under /usr/share/doc/${PF}/examples"
+ einfo "and they are considered to be the authorative source of information"
+ einfo "on catalyst."
+ echo
+
+ python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ epatch "${PATCHES[@]}"
+}
+
+src_install() {
+ insinto /usr/$(get_libdir)/${PN}
+ exeinto /usr/$(get_libdir)/${PN}
+ doexe catalyst || die "copying catalyst"
+
+ if [[ ${PV} == 3.9999* ]]; then
+ doins -r modules files || die "copying files"
+ else
+ doins -r arch modules livecd || die "copying files"
+ fi
+
+ for x in targets/*; do
+ exeinto /usr/$(get_libdir)/${PN}/$x
+ doexe $x/* || die "copying ${x}"
+ done
+
+ # Here is where we actually enable ccache
+ use ccache && \
+ sed -i -e 's:options="autoresume kern:options="autoresume ccache kern:' \
+ files/catalyst.conf
+
+ sed -i -e "s:/usr/lib/catalyst:/usr/$(get_libdir)/catalyst:" \
+ files/catalyst.conf
+
+ make_wrapper catalyst /usr/$(get_libdir)/${PN}/catalyst
+ insinto /etc/catalyst
+ doins files/catalyst.conf files/catalystrc || die "copying configuration"
+ insinto /usr/share/doc/${PF}/examples
+ doins examples/* || die
+ dodoc README AUTHORS
+ doman files/catalyst.1 files/catalyst-spec.5
+
+ python_fix_shebang "${ED}usr/$(get_libdir)/catalyst/catalyst"
+ python_optimize "${ED}"
+}
+
+pkg_postinst() {
+ einfo "You can find more information about catalyst by checking out the"
+ einfo "catalyst project page at:"
+ einfo "https://www.gentoo.org/proj/en/releng/catalyst/index.xml"
+}
diff --git a/dev-util/catalyst/catalyst-2.0.9999.ebuild b/dev-util/catalyst/catalyst-2.0.9999.ebuild
new file mode 100644
index 000000000000..c715f64e47bc
--- /dev/null
+++ b/dev-util/catalyst/catalyst-2.0.9999.ebuild
@@ -0,0 +1,108 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+if [[ ${PV} == *9999* ]]; then
+ SRC_ECLASS="git-2"
+ EGIT_REPO_URI="git://anongit.gentoo.org/proj/catalyst.git"
+ EGIT_MASTER="master"
+ EGIT_BRANCH="2.X"
+ S="${WORKDIR}/${PN}"
+else
+ SRC_URI="mirror://gentoo/${P}.tar.bz2
+ https://dev.gentoo.org/~jmbsvicetto/distfiles/${P}.tar.bz2
+ https://dev.gentoo.org/~zerochaos/distfiles/${P}.tar.bz2"
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
+fi
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit eutils multilib python-single-r1 ${SRC_ECLASS}
+
+DESCRIPTION="Release metatool used for creating releases based on Gentoo Linux"
+HOMEPAGE="https://wiki.gentoo.org/wiki/Catalyst"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="ccache kernel_linux"
+
+DEPEND="
+ app-text/asciidoc
+ ${PYTHON_DEPS}
+"
+RDEPEND="
+ app-arch/lbzip2
+ app-crypt/shash
+ app-arch/tar[xattr]
+ virtual/cdrtools
+ amd64? ( >=sys-boot/syslinux-3.72 )
+ ia64? ( sys-fs/dosfstools )
+ x86? ( >=sys-boot/syslinux-3.72 )
+ ccache? ( dev-util/ccache )
+ kernel_linux? ( app-misc/zisofs-tools >=sys-fs/squashfs-tools-2.1 )
+ ${PYTHON_DEPS}
+"
+
+REQUIRED_USE=${PYTHON_REQUIRED_USE}
+
+pkg_setup() {
+ if use ccache ; then
+ einfo "Enabling ccache support for catalyst."
+ else
+ ewarn "By default, ccache support for catalyst is disabled."
+ ewarn "If this is not what you intended,"
+ ewarn "then you should add ccache to your USE."
+ fi
+
+ echo
+ einfo "The template spec files are now installed by default. You can find"
+ einfo "them under /usr/share/doc/${PF}/examples"
+ einfo "and they are considered to be the authorative source of information"
+ einfo "on catalyst."
+ echo
+
+ python-single-r1_pkg_setup
+}
+
+src_install() {
+ insinto /usr/$(get_libdir)/${PN}
+ exeinto /usr/$(get_libdir)/${PN}
+ doexe catalyst || die "copying catalyst"
+
+ if [[ ${PV} == 3.9999* ]]; then
+ doins -r modules files || die "copying files"
+ else
+ doins -r arch modules livecd || die "copying files"
+ fi
+
+ for x in targets/*; do
+ exeinto /usr/$(get_libdir)/${PN}/$x
+ doexe $x/* || die "copying ${x}"
+ done
+
+ # Here is where we actually enable ccache
+ use ccache && \
+ sed -i -e 's:options="autoresume kern:options="autoresume ccache kern:' \
+ files/catalyst.conf
+
+ sed -i -e "s:/usr/lib/catalyst:/usr/$(get_libdir)/catalyst:" \
+ files/catalyst.conf
+
+ make_wrapper catalyst /usr/$(get_libdir)/${PN}/catalyst
+ insinto /etc/catalyst
+ doins files/catalyst.conf files/catalystrc || die "copying configuration"
+ insinto /usr/share/doc/${PF}/examples
+ doins examples/* || die
+ dodoc README AUTHORS
+ doman files/catalyst.1 files/catalyst-spec.5
+
+ python_fix_shebang "${ED}usr/$(get_libdir)/catalyst/catalyst"
+ python_optimize "${ED}"
+}
+
+pkg_postinst() {
+ einfo "You can find more information about catalyst by checking out the"
+ einfo "catalyst project page at:"
+ einfo "https://www.gentoo.org/proj/en/releng/catalyst/index.xml"
+}
diff --git a/dev-util/catalyst/catalyst-2.9999.ebuild b/dev-util/catalyst/catalyst-2.9999.ebuild
new file mode 100644
index 000000000000..c5105d8669b3
--- /dev/null
+++ b/dev-util/catalyst/catalyst-2.9999.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+if [[ ${PV} == *9999* ]]; then
+ SRC_ECLASS="git-2"
+ EGIT_REPO_URI="git://anongit.gentoo.org/proj/catalyst.git"
+ EGIT_MASTER="master"
+ EGIT_BRANCH="pending"
+ S="${WORKDIR}/${PN}"
+else
+ SRC_URI="mirror://gentoo/${P}.tar.bz2
+ https://dev.gentoo.org/~jmbsvicetto/distfiles/${P}.tar.bz2
+ https://dev.gentoo.org/~zerochaos/distfiles/${P}.tar.bz2"
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
+fi
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1 multilib ${SRC_ECLASS}
+
+DESCRIPTION="Release metatool used for creating releases based on Gentoo Linux"
+HOMEPAGE="https://wiki.gentoo.org/wiki/Catalyst"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="ccache doc kernel_linux"
+
+DEPEND="
+ app-text/asciidoc
+ >=dev-python/snakeoil-0.5.2
+"
+RDEPEND="
+ =dev-python/pydecomp-9999
+ app-arch/lbzip2
+ app-crypt/shash
+ app-arch/tar[xattr]
+ virtual/cdrtools
+ amd64? ( >=sys-boot/syslinux-3.72 )
+ ia64? ( sys-fs/dosfstools )
+ x86? ( >=sys-boot/syslinux-3.72 )
+ ccache? ( dev-util/ccache )
+ kernel_linux? ( app-misc/zisofs-tools >=sys-fs/squashfs-tools-2.1 )
+"
+
+python_prepare_all() {
+ python_export_best
+ echo VERSION="${PV}" "${PYTHON}" setup.py set_version
+ VERSION="${PV}" "${PYTHON}" setup.py set_version
+}
+
+python_compile_all() {
+ # build the man pages and docs
+ emake
+}
+
+python_install_all(){
+ distutils-r1_python_install_all
+ if use doc; then
+ dodoc files/HOWTO.html files/docbook-xsl.css
+ fi
+}
diff --git a/dev-util/catalyst/catalyst-3.0_rc1.ebuild b/dev-util/catalyst/catalyst-3.0_rc1.ebuild
new file mode 100644
index 000000000000..920665f9a5ea
--- /dev/null
+++ b/dev-util/catalyst/catalyst-3.0_rc1.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+if [[ ${PV} == *9999* ]]; then
+ SRC_ECLASS="git-2"
+ EGIT_REPO_URI="git://anongit.gentoo.org/proj/catalyst.git"
+ EGIT_BRANCH="master"
+ S="${WORKDIR}/${PN}"
+else
+ SRC_URI="mirror://gentoo/${P}.tar.bz2
+ https://dev.gentoo.org/~dolsen/releases/catalyst/${P}.tar.bz2
+ https://dev.gentoo.org/~jmbsvicetto/distfiles/${P}.tar.bz2
+ https://dev.gentoo.org/~zerochaos/distfiles/${P}.tar.bz2"
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
+fi
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5} )
+
+inherit distutils-r1 multilib ${SRC_ECLASS}
+
+DESCRIPTION="Release metatool used for creating releases based on Gentoo Linux"
+HOMEPAGE="https://wiki.gentoo.org/wiki/Catalyst"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="ccache doc kernel_linux"
+
+DEPEND="
+ app-text/asciidoc
+ >=dev-python/snakeoil-0.6.5[${PYTHON_USEDEP}]
+"
+RDEPEND="
+ >=dev-python/pydecomp-0.1[${PYTHON_USEDEP}]
+ app-arch/lbzip2
+ app-crypt/shash
+ app-arch/tar[xattr]
+ virtual/cdrtools
+ amd64? ( >=sys-boot/syslinux-3.72 )
+ ia64? ( sys-fs/dosfstools )
+ x86? ( >=sys-boot/syslinux-3.72 )
+ ccache? ( dev-util/ccache )
+ kernel_linux? ( app-misc/zisofs-tools >=sys-fs/squashfs-tools-2.1 )
+"
+
+python_prepare_all() {
+ echo VERSION="${PV}" "${PYTHON}" setup.py set_version
+ VERSION="${PV}" "${PYTHON}" setup.py set_version
+}
+
+python_compile_all() {
+ # build the man pages and docs
+ emake
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+ if use doc; then
+ dodoc files/HOWTO.html files/docbook-xsl.css
+ fi
+}
diff --git a/dev-util/catalyst/catalyst-9999.ebuild b/dev-util/catalyst/catalyst-9999.ebuild
new file mode 100644
index 000000000000..b257d2ff7661
--- /dev/null
+++ b/dev-util/catalyst/catalyst-9999.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+if [[ ${PV} == *9999* ]]; then
+ SRC_ECLASS="git-2"
+ EGIT_REPO_URI="git://anongit.gentoo.org/proj/catalyst.git"
+ EGIT_BRANCH="master"
+ S="${WORKDIR}/${PN}"
+else
+ SRC_URI="mirror://gentoo/${P}.tar.bz2
+ https://dev.gentoo.org/~dolsen/releases/catalyst/${P}.tar.bz2
+ https://dev.gentoo.org/~jmbsvicetto/distfiles/${P}.tar.bz2
+ https://dev.gentoo.org/~zerochaos/distfiles/${P}.tar.bz2"
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
+fi
+
+PYTHON_COMPAT=( python{3_4,3_5} )
+
+inherit distutils-r1 multilib ${SRC_ECLASS}
+
+DESCRIPTION="Release metatool used for creating releases based on Gentoo Linux"
+HOMEPAGE="https://wiki.gentoo.org/wiki/Catalyst"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="ccache doc kernel_linux"
+
+DEPEND="
+ app-text/asciidoc
+ >=dev-python/snakeoil-0.6.5[${PYTHON_USEDEP}]
+"
+RDEPEND="
+ =dev-python/pydecomp-9999[${PYTHON_USEDEP}]
+ app-arch/lbzip2
+ app-crypt/shash
+ app-arch/tar[xattr]
+ virtual/cdrtools
+ amd64? ( >=sys-boot/syslinux-3.72 )
+ ia64? ( sys-fs/dosfstools )
+ x86? ( >=sys-boot/syslinux-3.72 )
+ ccache? ( dev-util/ccache )
+ kernel_linux? ( app-misc/zisofs-tools >=sys-fs/squashfs-tools-2.1 )
+"
+
+python_prepare_all() {
+ echo VERSION="${PV}" "${PYTHON}" setup.py set_version
+ VERSION="${PV}" "${PYTHON}" setup.py set_version
+ distutils-r1_python_prepare_all
+}
+
+python_compile_all() {
+ # build the man pages and docs
+ emake
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+ if use doc; then
+ dodoc files/HOWTO.html files/docbook-xsl.css
+ fi
+}
diff --git a/dev-util/catalyst/files/catalyst-2.0.18-Do-notuntarwith--acls.patch b/dev-util/catalyst/files/catalyst-2.0.18-Do-notuntarwith--acls.patch
new file mode 100644
index 000000000000..f4cbcfbb7d38
--- /dev/null
+++ b/dev-util/catalyst/files/catalyst-2.0.18-Do-notuntarwith--acls.patch
@@ -0,0 +1,95 @@
+From 45286727a63d16d0688a88bf7cf68289efd26861 Mon Sep 17 00:00:00 2001
+From: "Anthony G. Basile" <blueness@gentoo.org>
+Date: Sun, 18 Jan 2015 22:21:16 -0500
+Subject: [PATCH] Do not untar with --acls, fixes bug #536762
+To: gentoo-catalyst@lists.gentoo.org
+
+---
+ modules/catalyst_support.py | 6 +++---
+ modules/generic_stage_target.py | 18 +++++++++---------
+ 2 files changed, 12 insertions(+), 12 deletions(-)
+
+diff --git a/modules/catalyst_support.py b/modules/catalyst_support.py
+index 0e9faac..702887d 100644
+--- a/modules/catalyst_support.py
++++ b/modules/catalyst_support.py
+@@ -108,9 +108,9 @@ contents_map={
+ # 'find' is disabled because it requires the source path, which is not
+ # always available
+ #"find" :[calc_contents,"find %(path)s"],
+- "tar-tv":[calc_contents,"tar --xattrs --acls tvf %(file)s"],
+- "tar-tvz":[calc_contents,"tar --xattrs --acls tvzf %(file)s"],
+- "tar-tvj":[calc_contents,"tar --xattrs --acls -I lbzip2 -tvf %(file)s"],
++ "tar-tv":[calc_contents,"tar --xattrs tvf %(file)s"],
++ "tar-tvz":[calc_contents,"tar --xattrs tvzf %(file)s"],
++ "tar-tvj":[calc_contents,"tar --xattrs -I lbzip2 -tvf %(file)s"],
+ "isoinfo-l":[calc_contents,"isoinfo -l -i %(file)s"],
+ # isoinfo-f should be a last resort only
+ "isoinfo-f":[calc_contents,"isoinfo -f -i %(file)s"],
+diff --git a/modules/generic_stage_target.py b/modules/generic_stage_target.py
+index c7db027..cc24c63 100644
+--- a/modules/generic_stage_target.py
++++ b/modules/generic_stage_target.py
+@@ -660,10 +660,10 @@ class generic_stage_target(generic_target):
+ self.settings["chroot_path"]+\
+ " (This may take some time) ...\n"
+ if "bz2" == self.settings["chroot_path"][-3:]:
+- unpack_cmd="tar --xattrs --xattrs-include=security.capability --xattrs-include=user.pax.flags --acls --selinux -I lbzip2 -xpf "+self.settings["source_path"]+" -C "+\
++ unpack_cmd="tar --xattrs --xattrs-include=security.capability --xattrs-include=user.pax.flags --selinux -I lbzip2 -xpf "+self.settings["source_path"]+" -C "+\
+ self.settings["chroot_path"]
+ else:
+- unpack_cmd="tar --xattrs --xattrs-include=security.capability --xattrs-include=user.pax.flags --acls --selinux -I lbzip2 -xpf "+self.settings["source_path"]+" -C "+\
++ unpack_cmd="tar --xattrs --xattrs-include=security.capability --xattrs-include=user.pax.flags --selinux -I lbzip2 -xpf "+self.settings["source_path"]+" -C "+\
+ self.settings["chroot_path"]
+ error_msg="Tarball extraction of "+\
+ self.settings["source_path"]+" to "+\
+@@ -675,10 +675,10 @@ class generic_stage_target(generic_target):
+ self.settings["chroot_path"]+\
+ " (This may take some time) ...\n"
+ if "bz2" == self.settings["chroot_path"][-3:]:
+- unpack_cmd="tar --xattrs --xattrs-include=security.capability --xattrs-include=user.pax.flags --acls --selinux -I lbzip2 -xpf "+self.settings["source_path"]+" -C "+\
++ unpack_cmd="tar --xattrs --xattrs-include=security.capability --xattrs-include=user.pax.flags --selinux -I lbzip2 -xpf "+self.settings["source_path"]+" -C "+\
+ self.settings["chroot_path"]
+ else:
+- unpack_cmd="tar --xattrs --xattrs-include=security.capability --xattrs-include=user.pax.flags --acls --selinux -I lbzip2 -xpf "+self.settings["source_path"]+" -C "+\
++ unpack_cmd="tar --xattrs --xattrs-include=security.capability --xattrs-include=user.pax.flags --selinux -I lbzip2 -xpf "+self.settings["source_path"]+" -C "+\
+ self.settings["chroot_path"]
+ error_msg="Tarball extraction of "+self.settings["source_path"]+\
+ " to "+self.settings["chroot_path"]+" failed."
+@@ -777,9 +777,9 @@ class generic_stage_target(generic_target):
+ "catalyst-hash")
+ destdir=self.settings["snapshot_cache_path"]
+ if "bz2" == self.settings["chroot_path"][-3:]:
+- unpack_cmd="tar --xattrs --xattrs-include=security.capability --xattrs-include=user.pax.flags --acls --selinux -I lbzip2 -xpf "+self.settings["snapshot_path"]+" -C "+destdir
++ unpack_cmd="tar --xattrs --xattrs-include=security.capability --xattrs-include=user.pax.flags --selinux -I lbzip2 -xpf "+self.settings["snapshot_path"]+" -C "+destdir
+ else:
+- unpack_cmd="tar --xattrs --xattrs-include=security.capability --xattrs-include=user.pax.flags --acls --selinux -xpf "+self.settings["snapshot_path"]+" -C "+destdir
++ unpack_cmd="tar --xattrs --xattrs-include=security.capability --xattrs-include=user.pax.flags --selinux -xpf "+self.settings["snapshot_path"]+" -C "+destdir
+ unpack_errmsg="Error unpacking snapshot"
+ cleanup_msg="Cleaning up invalid snapshot cache at \n\t"+\
+ self.settings["snapshot_cache_path"]+\
+@@ -796,10 +796,10 @@ class generic_stage_target(generic_target):
+ cleanup_msg=\
+ "Cleaning up existing portage tree (This can take a long time)..."
+ if "bz2" == self.settings["chroot_path"][-3:]:
+- unpack_cmd="tar --xattrs --xattrs-include=security.capability --xattrs-include=user.pax.flags --acls --selinux -I lbzip2 -xpf "+self.settings["snapshot_path"]+" -C "+\
++ unpack_cmd="tar --xattrs --xattrs-include=security.capability --xattrs-include=user.pax.flags --selinux -I lbzip2 -xpf "+self.settings["snapshot_path"]+" -C "+\
+ self.settings["chroot_path"]+"/usr"
+ else:
+- unpack_cmd="tar --xattrs --xattrs-include=security.capability --xattrs-include=user.pax.flags --acls --selinux -xpf "+self.settings["snapshot_path"]+" -C "+\
++ unpack_cmd="tar --xattrs --xattrs-include=security.capability --xattrs-include=user.pax.flags --selinux -xpf "+self.settings["snapshot_path"]+" -C "+\
+ self.settings["chroot_path"]+"/usr"
+ unpack_errmsg="Error unpacking snapshot"
+
+@@ -1224,7 +1224,7 @@ class generic_stage_target(generic_target):
+
+ print "Creating stage tarball..."
+
+- cmd("tar --xattrs --xattrs-include=security.capability --xattrs-include=user.pax.flags --acls --selinux -I lbzip2 -cpf "+self.settings["target_path"]+" -C "+\
++ cmd("tar --xattrs --xattrs-include=security.capability --xattrs-include=user.pax.flags --selinux -I lbzip2 -cpf "+self.settings["target_path"]+" -C "+\
+ self.settings["stage_path"]+" .",\
+ "Couldn't create stage tarball",env=self.env)
+
+--
+2.2.2
+
diff --git a/dev-util/catalyst/files/catalyst-2.0.18-fix-quotes.patch b/dev-util/catalyst/files/catalyst-2.0.18-fix-quotes.patch
new file mode 100644
index 000000000000..ccaffbe6b034
--- /dev/null
+++ b/dev-util/catalyst/files/catalyst-2.0.18-fix-quotes.patch
@@ -0,0 +1,38 @@
+From 1eabce3a9c15c5caf022e71c1959e8c8f4819fad Mon Sep 17 00:00:00 2001
+From: "Anthony G. Basile" <blueness@gentoo.org>
+Date: Thu, 3 Mar 2016 20:48:43 -0500
+Subject: [PATCH] targets/support/chroot-functions.sh: correct quotes to allow
+ expansion of $1
+
+This is a backport of commit b2473eff. The single quotes prevented the proper
+expansion of $1 in setup_pkgmgr(). Since this is usually called as
+`setup_pkgmgr "build"` during stage1 builds, it is surprising this was
+not caught earlier.
+---
+ targets/support/chroot-functions.sh | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/targets/support/chroot-functions.sh b/targets/support/chroot-functions.sh
+index 3b7f77b..6c1a31c 100755
+--- a/targets/support/chroot-functions.sh
++++ b/targets/support/chroot-functions.sh
+@@ -172,12 +172,12 @@ setup_pkgmgr(){
+ # Use --update or portage might just waste time/cycles and reinstall the same version.
+ # Use --newuse to make sure it rebuilds with any changed use flags.
+ if [ -n "$1" ];then
+- echo "Adding USE='${USE} $1' to make.conf for portage build"
+- [ -e /etc/portage/make.conf ] && echo 'USE="${USE} $1"' >> /etc/portage/make.conf
++ echo "Adding USE=\"${USE} $1\" to make.conf for portage build"
++ [ -e /etc/portage/make.conf ] && echo "USE=\"\${USE} $1\"" >> /etc/portage/make.conf
+ run_merge --oneshot --update --newuse sys-apps/portage
+- sed -i '/USE="${USE} $1"/d' /etc/portage/make.conf
++ sed -i "/USE=\"\${USE} $1\"/d" /etc/portage/make.conf
+ else
+- echo "Updating portage with USE='${USE}'"
++ echo "Updating portage with USE=\"${USE}\""
+ run_merge --oneshot --update --newuse sys-apps/portage
+ fi
+ }
+--
+2.4.10
+
diff --git a/dev-util/catalyst/files/catalyst-2.0.18-remove-machine-id.patch b/dev-util/catalyst/files/catalyst-2.0.18-remove-machine-id.patch
new file mode 100644
index 000000000000..1c641fd2b905
--- /dev/null
+++ b/dev-util/catalyst/files/catalyst-2.0.18-remove-machine-id.patch
@@ -0,0 +1,25 @@
+From fbf94254a714c8d72840faee42cf348eb69b1a43 Mon Sep 17 00:00:00 2001
+From: "Anthony G. Basile" <blueness@gentoo.org>
+Date: Fri, 8 Apr 2016 17:58:15 -0400
+Subject: [PATCH] targets/support/chroot-functions.sh: remove machine-id for
+ systemd stages
+
+---
+ targets/support/chroot-functions.sh | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/targets/support/chroot-functions.sh b/targets/support/chroot-functions.sh
+index 6c1a31c..67874a0 100755
+--- a/targets/support/chroot-functions.sh
++++ b/targets/support/chroot-functions.sh
+@@ -223,6 +223,7 @@ cleanup_stages() {
+ stage1|stage2|stage3|system)
+ rm -f /var/lib/portage/world
+ touch /var/lib/portage/world
++ rm -f /etc/machine-id
+ ;;
+ *)
+ echo "Skipping removal of world file for ${clst_target}"
+--
+2.7.3
+
diff --git a/dev-util/catalyst/files/catalyst-2.0.18-stage1-export-ROOT.patch b/dev-util/catalyst/files/catalyst-2.0.18-stage1-export-ROOT.patch
new file mode 100644
index 000000000000..67fc2c631b02
--- /dev/null
+++ b/dev-util/catalyst/files/catalyst-2.0.18-stage1-export-ROOT.patch
@@ -0,0 +1,42 @@
+From 5fd2d5edd3c4c1e99687beb9acc130bab162866b Mon Sep 17 00:00:00 2001
+From: "Anthony G. Basile" <blueness@gentoo.org>
+Date: Sat, 4 Jun 2016 12:43:44 -0400
+Subject: stage1-preclean-chroot.sh: export ROOT=/tmp/stage1root for
+ setup_gcc()
+
+setup_gcc() calls gcc-config to select a particular gcc profile. At stage1 this
+needs to be done in the /tmp/stage1root chroot. gcc-config looks for ROOT to
+choose the root directory in which to make the selection. If we don't export
+ROOT, then setup_gcc is ineffective.
+
+X-Gentoo-Bug: 584234
+X-Gentoo-Bug-Url: https://bugs.gentoo.org/show_bug.cgi?id=584234
+
+Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
+---
+ targets/stage1/stage1-preclean-chroot.sh | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/targets/stage1/stage1-preclean-chroot.sh b/targets/stage1/stage1-preclean-chroot.sh
+index a80fc92..dc67521 100755
+--- a/targets/stage1/stage1-preclean-chroot.sh
++++ b/targets/stage1/stage1-preclean-chroot.sh
+@@ -1,5 +1,6 @@
+ #!/bin/bash
+
++export ROOT=/tmp/stage1root
+ export RUN_DEFAULT_FUNCS="no"
+
+ source /tmp/chroot-functions.sh
+@@ -8,8 +9,6 @@ update_env_settings
+ show_debug
+
+ # Now, some finishing touches to initialize gcc-config....
+-unset ROOT
+-
+ setup_gcc
+ setup_binutils
+
+--
+cgit v0.12
+
diff --git a/dev-util/catalyst/metadata.xml b/dev-util/catalyst/metadata.xml
new file mode 100644
index 000000000000..6c4b9cdbccec
--- /dev/null
+++ b/dev-util/catalyst/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="project">
+ <email>catalyst@gentoo.org</email>
+ </maintainer>
+ <maintainer type="project">
+ <email>livecd@gentoo.org</email>
+ <name>Gentoo LiveCD Project</name>
+ </maintainer>
+ <use>
+ <flag name="ccache">Enables ccache support</flag>
+ </use>
+</pkgmetadata>
diff --git a/dev-util/catfish/Manifest b/dev-util/catfish/Manifest
new file mode 100644
index 000000000000..15e7e9505aab
--- /dev/null
+++ b/dev-util/catfish/Manifest
@@ -0,0 +1,5 @@
+DIST catfish-1.2.2.tar.bz2 98956 SHA256 0e92844e761207b3d3086c45b26fccf83f0ebced741e1af33d8590779f25eedf SHA512 dad407f1e818b8d537b73e9f832c39ca4f9527b9d636da18493a685b03d2fab56982a11872382fd457b9a1a0ffb33d29ade4aa317561c3b2ee82c96728705e75 WHIRLPOOL 42f379cfffef9c9115ca1ef1b2e25e46da8ceac60778d0fccdb626c1d61567028caf2f497a76fed2b530dd126024b26b9f3248c38bbf185a20576d4a52930484
+EBUILD catfish-1.2.2.ebuild 1500 SHA256 d34b5d69ffd9e0869d42b841404f6bc508cace28716ef9b7b9bcef00e3167196 SHA512 3166f58ed1488a8c58a60d9200160586dfeded3b3e1e19aa342330d9d7e58f9a5e094be49e82a6b1ca021614ab7e3897ea7606af33a00ee50fad3d32189ffbbd WHIRLPOOL a731779dcdd4a85f6c5445db50a6c64824c80f10ee5c242c982129ca69408da0464947d87669695ecf9decdd981c36c1b1e74ed8e815b15a7944b17f5620e733
+MISC ChangeLog 2731 SHA256 8674aee539ae64e51e919578caf907ff2c9315069ff0f97c0907a837af57f292 SHA512 10241e8d5ebd2edda2e07e37a94c239b999f6c88d9c881edc73f5274273552760ade63a46c8d5e53804fd74b790a38f5aa1092d1650d84c23db9f8c6c4139404 WHIRLPOOL b203de8e3cb25640aaca113cadcc89f5f06fcfeddda4bf6006976d669cb4791e403aeecca573f79fbe55d3df7fdebd5ecde1aee694afe9d87bab3c121ee908fb
+MISC ChangeLog-2015 4264 SHA256 85b1b6fd0a436babe34ffb78cb93f21ece8b777d25ab796a352865a0318e74c7 SHA512 081279c3cf7ab5f97cf3a811a82714036e7b5081c60bebc639309cf36d8e86ed99027a132e9ed7da820195fb1254dd86ed2ce1d01a99fe393cd42d3a83d62fe4 WHIRLPOOL 002d92b26d58b89f8317cb6f7cddf846301dcb6f639debd9f42ddc1489d6c74a72700c181a009fff040871b9dc469c90a3fb22c0f0725752ff06d7defb5cd5d7
+MISC metadata.xml 358 SHA256 53314f424eac84844d991ab436d557d6e51d718f6cb6ace4cde61b15a0f258f1 SHA512 8fef7910e221beb2e0f0a83767feda119a1a3f27b36d6093d336813edfe954c4d08c99c4352ab5efec39de8b1c5185c39514bf31ebf1e6489110d8165e32b3f2 WHIRLPOOL a024d9e2429394c8f056c22a4360fbdfbe485df68ccc14c8aa866de1d63a857bb644fc04f8889d7fa83fa1b7bdc559260fc7d6cec3ef985cad4cf26d5ad55604
diff --git a/dev-util/catfish/catfish-1.2.2.ebuild b/dev-util/catfish/catfish-1.2.2.ebuild
new file mode 100644
index 000000000000..5c88f81f8558
--- /dev/null
+++ b/dev-util/catfish/catfish-1.2.2.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+inherit eutils gnome2-utils python-single-r1
+
+DESCRIPTION="A frontend for find, (s)locate, doodle, tracker, beagle, strigi and pinot"
+HOMEPAGE="https://launchpad.net/catfish-search http://twotoasts.de/index.php/catfish/"
+SRC_URI="https://launchpad.net/${PN}-search/${PV%.*}/${PV}/+download/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+
+COMMON_DEPEND="
+ ${PYTHON_DEPS}
+ dev-python/pexpect[${PYTHON_USEDEP}]
+ dev-python/pygobject:3[${PYTHON_USEDEP}]
+ x11-libs/gtk+:3[introspection]
+"
+RDEPEND="
+ ${COMMON_DEPEND}
+ virtual/freedesktop-icon-theme
+"
+DEPEND="
+ ${COMMON_DEPEND}
+ sys-devel/gettext
+"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+pkg_setup() {
+ python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ strip-linguas -i po/
+ if ! [[ -z "${LINGUAS}" ]]; then
+ local lang langs=$(find po/ -name '*.po' | sed -e 's|po/||g;s|.po||g')
+ for lang in $langs; do
+ if ! has ${lang} ${LINGUAS}; then
+ rm po/${lang}.po || die
+ fi
+ done
+ fi
+
+ python_fix_shebang .
+ sed -i -e "s:share/doc/\$(APPNAME):share/doc/${PF}:" Makefile.in.in || die
+}
+
+src_configure() {
+ # not autotools based
+ ./configure --prefix=/usr --python="${EPYTHON}" || die
+}
+
+src_install() {
+ default
+ python_optimize "${ED}"/usr/share/${PN}
+}
+
+pkg_preinst() { gnome2_icon_savelist; }
+pkg_postinst() { gnome2_icon_cache_update; }
+pkg_postrm() { gnome2_icon_cache_update; }
diff --git a/dev-util/catfish/metadata.xml b/dev-util/catfish/metadata.xml
new file mode 100644
index 000000000000..0118196dd398
--- /dev/null
+++ b/dev-util/catfish/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="project">
+ <email>desktop-misc@gentoo.org</email>
+ <name>Gentoo Desktop Miscellaneous Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="launchpad">catfish-search</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/catkin/Manifest b/dev-util/catkin/Manifest
new file mode 100644
index 000000000000..d48f2b7f4348
--- /dev/null
+++ b/dev-util/catkin/Manifest
@@ -0,0 +1,16 @@
+AUX 40catkin 89 SHA256 f755fcdd5f362f89e6154f3b98aa31f3aa685b691807612bd4738b95cab969cd SHA512 bc0fc727177f071c48b2177adceaa0f5578a55bb05a65035871d83c7b217d86ef7f6c8585264971d0c8957652a8a60dbdb674600087800433823190e577744db WHIRLPOOL 88cce64ef3f8d2f47ae072c3fd49ab8808f0a914c30be8e4fced78681099128d239fe491bcb6d59a65f3f59429234dc67918b8a0c4cdcbf87eb201bbc8754c6a
+AUX catkin_prefix_path.patch 3297 SHA256 d7cf7b90306e0d519963e359ee664a6e91ce4113278ca7eaf60e88d84652c511 SHA512 22c6e2440e1d7e48c46c0ad7f2006d621942b9c75d1d126ef1e110b36da321b79152aae8bf4d82c18250ce6da3337c697733ba130c1b2f116282ccb954d8d13f WHIRLPOOL f3daa029040eb5bd8f979603a70557cf83d093c9180faf811ffd73f5966f097c62c9bb03184ff5fa5a5c76e568fd039937b80c4e0fb3d3e1d520c098bc736b8e
+AUX catkin_prefix_path_util_py.patch 2134 SHA256 85e7b034f9909983753bb125162053d704df7f3e9dc8186223022ef47b5fc721 SHA512 68b375ed46f7d25ece3e723fb6d41ba3f89bd27ef44f11d74427f63d615e043ab02de4ac806d77059db8a0d12671f0602df16a2b318b9d6e36671cd1491ce2b0 WHIRLPOOL baf9a6f2a63cf1f97c8d0bda9f294f016ca50566b0034997f483b84860bdd4142a94b2d9393e4c1b0aacbab6551a547772271483c9c66038f721538d584050b8
+AUX distutils.patch 798 SHA256 11fb65f6609bb6a1577eb234606842bf01636e7b3ee2509f9e026dff57cc06a3 SHA512 de281d0039515c4621d161c778520c4306897426c5692f46b4440326b6246502e64f90f121eaff8741775bafcb4213b2817468354db8c5b3c1250a2fce42d36d WHIRLPOOL 902d30c5b83eb98fe77f2880189eca51513876be7bd3c5cf53a3ec62f2bb0059b979c72ae7f2cea16f7e4e15313e360614049b6b3f69c13057287fc910b85e8c
+AUX etc.patch 654 SHA256 6542c4931e1c183a57daecd0e9f15d498cc207c11a281319ce44f00fc1c96aa0 SHA512 8e6026dac6d79fc30056a7c598a99ca4cafcad442eec2eb2f48219b184d610e4d5da5faea5284dd078101b4ef761533d034aba49fd1af95f7f365887bbf22739 WHIRLPOOL 4b33b217ce4d5301510696cd37d3fc38ce5fa7f3c6b569e7f7d1e81635dfabd28aad13d6c2e8b6051cc07efdf642e979988077e9a16b55a360a10a1514197593
+AUX gnuinstalldirs.patch 714 SHA256 6507d9373c18c47fac20ced890d521e16d1124b0bf132c27e4800e54d188461f SHA512 38e6e0a220f20a7909a760b558997086bac9dc4919158d58dc41e5dd7d3bf22b8eb9a48cb05503c594dfa0a9e4bdb70e8eec121f45f777fc7821ec6e3678b600 WHIRLPOOL c9a9db173a5d0d1a9b8894621cd5b13d01d17995e4690b9e615b7cce94c0078627016a263c4ad616ca2bd5da55c2fb8eaa4a10d23fc13643b0649e333176e83c
+AUX package_xml.patch 1588 SHA256 ffa9b960b25cc8578b04fbe18a16522a870f9d7a329485de555abd3cdec22c5d SHA512 7d6e1cb0076681c6cbb1332b05e6cd33bae4f780939e00412fd4b022f71b0418a4ff4f8e13d06f42fd21225e78d058818d680fef691dad4412d75ea0f0ef9f5e WHIRLPOOL c1bd12c9dae614e1ea83f7a4226b09a763e595d84d35bddacfe985c55b738b9531591ef360af8c5ac7847c562b9557600b840bb47a4595aec0364f0daf48f417
+AUX sitedir.patch 884 SHA256 0e0537eaab38dd872153e4179f45074a01e2186b83d59f2f0be75d503f4bae31 SHA512 c619b6bcfa007f90464146767ea5b1aed4dad79d16bcc7daa573df14dcaa6eeb2ff96eb9d838d3bbfd0480b87d5538ffaf31dc059e25224d425f3786523b475d WHIRLPOOL 2f896cb3884996746dd789bd3176d2a9534254aac6743ae368e8902e662e96954e348429f2895cf60d52b3cbbf80ab6fd35de5a9a343b179fccb781c2a064aba
+AUX tests.patch 1640 SHA256 ea0258bc61eec6c03dbd2bcea2640abe9b95677882b169f39879551090867ee1 SHA512 a53ff72bf5302107241d43a0daa8ff18c50b6e69c0e1ecf2a841ace8d37fe7f3e8cb4202b666ad3bdda1bcb7d79f39244308542e1992b9af94d97bcec7086913 WHIRLPOOL bf990fb921745c627d77a3d46d55bf9ce3420c80eba76052fcc631bb1963f7e56b1268ed1605cce9968773c969d49246cd73a8ed778d1701b2b76595c0dc083a
+DIST catkin-0.7.6.tar.gz 202970 SHA256 468725aadfd6b615cd7d7a75fca37777db987b6ad63f73062c3273bd96d380d6 SHA512 9f4ddef3cdef0f81aeb2abe27db797318f813e184d457f6f81439d3b539efe2e2726da7eda8359a803848c5e5f8a2f8fd291b6f2a00a16a06112d084c1ec14ce WHIRLPOOL 863f477d54dd2ed297ea94776102fd31ad68cba3550e2a17a3218acda889c0b1071c9df73f16224fc75445742294df46ba6a7eae20019bb01974bde17db9fab8
+DIST catkin-0.7.7.tar.gz 203773 SHA256 0ab4efd1d42fc586ace5a37aba3c4266cff31593b39b7abe3ab6ced6b160e92f SHA512 616ff6a34ab52d50e383acdcebe66aa8f4ac1515ed3c654d75f32cdfe86ee3b87b17872ea2068ea5ddc5f35b73b5cf53c84c6e386d89ad2c8270228f1c446d01 WHIRLPOOL 40c901f74e39e6239d0967ce997d6ebc011063ed0208123d20e057a3bbd53e4dd7b70c6e8c4bfb31d7f0ae9e57292e17343565b68b9c441a5c10f7ff1dee6117
+EBUILD catkin-0.7.6-r1.ebuild 3139 SHA256 404f7d51614d4917c3ffe225d4edcae03183a4af37e0d511d7d97aefc54a8618 SHA512 6376d7edca6f7fea19baf69d9e42f0a75692f9104e9881415e96cfcb8cb2f2a6652901ac01c485f6e7ca1951a454e05439c67b8b36bf92ba8147566e7e006b01 WHIRLPOOL 7fb37095e7523ddc4c35d346f8173c6091f6437e752de87bb0014a35c672369c22358a1f95cdb23f93bf0d4f4e01f462bfe52b9df990e094b62708cd820cf61d
+EBUILD catkin-0.7.7.ebuild 3139 SHA256 404f7d51614d4917c3ffe225d4edcae03183a4af37e0d511d7d97aefc54a8618 SHA512 6376d7edca6f7fea19baf69d9e42f0a75692f9104e9881415e96cfcb8cb2f2a6652901ac01c485f6e7ca1951a454e05439c67b8b36bf92ba8147566e7e006b01 WHIRLPOOL 7fb37095e7523ddc4c35d346f8173c6091f6437e752de87bb0014a35c672369c22358a1f95cdb23f93bf0d4f4e01f462bfe52b9df990e094b62708cd820cf61d
+EBUILD catkin-9999.ebuild 3139 SHA256 404f7d51614d4917c3ffe225d4edcae03183a4af37e0d511d7d97aefc54a8618 SHA512 6376d7edca6f7fea19baf69d9e42f0a75692f9104e9881415e96cfcb8cb2f2a6652901ac01c485f6e7ca1951a454e05439c67b8b36bf92ba8147566e7e006b01 WHIRLPOOL 7fb37095e7523ddc4c35d346f8173c6091f6437e752de87bb0014a35c672369c22358a1f95cdb23f93bf0d4f4e01f462bfe52b9df990e094b62708cd820cf61d
+MISC ChangeLog 5990 SHA256 a018d7be6b058ebfb6830438fedb99c62f5308fef6e3c0578bd69d09c312cbab SHA512 16d316ec40a72e54831a46f067d6c96e2af30e9ec3462f41a31ba0f6381161bbd67b32e052850acc989debf5ab7ac52a4f4087916133a109342a561b237d9960 WHIRLPOOL 284b9f907c2d313b17a76b4e4bc7e87e512854a52b520b59eb95b86ac603a5725c807a01f95b86515a705e7715578627f55ec2426c1ab47fd0461cd40d098c39
+MISC metadata.xml 324 SHA256 76d2cb422285dc8034108df724a94ec65a1d54886954d9ed835abae02d78df48 SHA512 598dc8dd4427079a7eeca415c192ec39e99e53bc41c06796d2355b8858363b71ee8f038646c61ddd82d27451eb48c6f93b47489cdb04ae7c8663a6b46c4f9b94 WHIRLPOOL fceca90068856e6ddaa7e39a1a14129f6bcb3e711bb91980b5bc7f79ef0bc950df3d3540309affff519115a91d060351b36e14af034aeffc2adbe2a1fa6e9bc0
diff --git a/dev-util/catkin/catkin-0.7.6-r1.ebuild b/dev-util/catkin/catkin-0.7.6-r1.ebuild
new file mode 100644
index 000000000000..eb49a4b8c816
--- /dev/null
+++ b/dev-util/catkin/catkin-0.7.6-r1.ebuild
@@ -0,0 +1,119 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+SCM=""
+if [ "${PV#9999}" != "${PV}" ] ; then
+ SCM="git-r3"
+ EGIT_REPO_URI="https://github.com/ros/catkin"
+fi
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} pypy{,3} )
+
+inherit ${SCM} cmake-utils python-r1 python-utils-r1
+
+DESCRIPTION="Cmake macros and associated python code used to build some parts of ROS"
+HOMEPAGE="http://wiki.ros.org/catkin"
+if [ "${PV#9999}" != "${PV}" ] ; then
+ SRC_URI=""
+ KEYWORDS=""
+else
+ SRC_URI="https://github.com/ros/catkin/archive/${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~arm"
+fi
+
+LICENSE="BSD"
+SLOT="0"
+IUSE="test"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="
+ ${PYTHON_DEPS}
+ dev-python/catkin_pkg[${PYTHON_USEDEP}]
+ dev-python/empy[${PYTHON_USEDEP}]
+ dev-util/cmake
+"
+DEPEND="${RDEPEND}
+ test? ( dev-python/nose[${PYTHON_USEDEP}] dev-python/mock[${PYTHON_USEDEP}] )"
+
+PATCHES=(
+ "${FILESDIR}/tests.patch"
+ "${FILESDIR}/distutils.patch"
+ "${FILESDIR}/catkin_prefix_path.patch"
+ "${FILESDIR}/gnuinstalldirs.patch"
+ "${FILESDIR}/catkin_prefix_path_util_py.patch"
+ "${FILESDIR}/package_xml.patch"
+ "${FILESDIR}/etc.patch"
+ "${FILESDIR}/sitedir.patch"
+)
+
+src_prepare() {
+ # fix libdir
+ sed -i \
+ -e 's:LIBEXEC_DESTINATION lib:LIBEXEC_DESTINATION libexec:' \
+ -e 's:}/lib:}/${CMAKE_INSTALL_LIBDIR}:' \
+ -e 's:DESTINATION lib):DESTINATION ${CMAKE_INSTALL_LIBDIR}):' \
+ -e 's:DESTINATION lib/:DESTINATION ${CMAKE_INSTALL_LIBDIR}/:' \
+ -e 's:PYTHON_INSTALL_DIR lib:PYTHON_INSTALL_DIR ${CMAKE_INSTALL_LIBDIR}:' \
+ cmake/*.cmake || die
+ cmake-utils_src_prepare
+}
+
+catkin_src_configure_internal() {
+ local sitedir="$(python_get_sitedir)"
+ mycmakeargs+=(
+ -DPYTHON_EXECUTABLE="${PYTHON}"
+ -DPYTHON_INSTALL_DIR="${sitedir#${EPREFIX}/usr/}"
+ )
+ python_export PYTHON_SCRIPTDIR
+ cmake-utils_src_configure
+}
+
+src_configure() {
+ export PYTHONPATH="${S}/python"
+ local mycmakeargs=(
+ "$(cmake-utils_use test CATKIN_ENABLE_TESTING)"
+ "-DCATKIN_BUILD_BINARY_PACKAGE=ON"
+ )
+ python_foreach_impl catkin_src_configure_internal
+}
+
+src_compile() {
+ python_foreach_impl cmake-utils_src_compile
+}
+
+src_test() {
+ unset PYTHON_SCRIPTDIR
+ python_foreach_impl cmake-utils_src_test
+}
+
+catkin_src_install_internal() {
+ python_export PYTHON_SCRIPTDIR
+ cmake-utils_src_install
+ if [ ! -f "${T}/.catkin_python_symlinks_generated" ]; then
+ dodir /usr/bin
+ for i in "${D}/${PYTHON_SCRIPTDIR}"/* ; do
+ dosym ../lib/python-exec/python-exec2 "/usr/bin/${i##*/}" || die
+ done
+ touch "${T}/.catkin_python_symlinks_generated"
+ fi
+}
+
+src_install() {
+ python_foreach_impl catkin_src_install_internal
+
+ doenvd "${FILESDIR}/40catkin"
+
+ # needed to be considered as a workspace
+ touch "${ED}/usr/.catkin"
+}
+
+pkg_postinst() {
+ ewarn "Starting from version 0.7.1-r2, dev-util/catkin changed the"
+ ewarn "installation path for package.xml files on Gentoo."
+ ewarn "In order for ROS to work properly, you will need to reinstall ROS"
+ ewarn "packages that have it installed in the old location:"
+ ewarn " emerge -1O /usr/share/*/package.xml"
+ ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=595004 for more details."
+}
diff --git a/dev-util/catkin/catkin-0.7.7.ebuild b/dev-util/catkin/catkin-0.7.7.ebuild
new file mode 100644
index 000000000000..eb49a4b8c816
--- /dev/null
+++ b/dev-util/catkin/catkin-0.7.7.ebuild
@@ -0,0 +1,119 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+SCM=""
+if [ "${PV#9999}" != "${PV}" ] ; then
+ SCM="git-r3"
+ EGIT_REPO_URI="https://github.com/ros/catkin"
+fi
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} pypy{,3} )
+
+inherit ${SCM} cmake-utils python-r1 python-utils-r1
+
+DESCRIPTION="Cmake macros and associated python code used to build some parts of ROS"
+HOMEPAGE="http://wiki.ros.org/catkin"
+if [ "${PV#9999}" != "${PV}" ] ; then
+ SRC_URI=""
+ KEYWORDS=""
+else
+ SRC_URI="https://github.com/ros/catkin/archive/${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~arm"
+fi
+
+LICENSE="BSD"
+SLOT="0"
+IUSE="test"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="
+ ${PYTHON_DEPS}
+ dev-python/catkin_pkg[${PYTHON_USEDEP}]
+ dev-python/empy[${PYTHON_USEDEP}]
+ dev-util/cmake
+"
+DEPEND="${RDEPEND}
+ test? ( dev-python/nose[${PYTHON_USEDEP}] dev-python/mock[${PYTHON_USEDEP}] )"
+
+PATCHES=(
+ "${FILESDIR}/tests.patch"
+ "${FILESDIR}/distutils.patch"
+ "${FILESDIR}/catkin_prefix_path.patch"
+ "${FILESDIR}/gnuinstalldirs.patch"
+ "${FILESDIR}/catkin_prefix_path_util_py.patch"
+ "${FILESDIR}/package_xml.patch"
+ "${FILESDIR}/etc.patch"
+ "${FILESDIR}/sitedir.patch"
+)
+
+src_prepare() {
+ # fix libdir
+ sed -i \
+ -e 's:LIBEXEC_DESTINATION lib:LIBEXEC_DESTINATION libexec:' \
+ -e 's:}/lib:}/${CMAKE_INSTALL_LIBDIR}:' \
+ -e 's:DESTINATION lib):DESTINATION ${CMAKE_INSTALL_LIBDIR}):' \
+ -e 's:DESTINATION lib/:DESTINATION ${CMAKE_INSTALL_LIBDIR}/:' \
+ -e 's:PYTHON_INSTALL_DIR lib:PYTHON_INSTALL_DIR ${CMAKE_INSTALL_LIBDIR}:' \
+ cmake/*.cmake || die
+ cmake-utils_src_prepare
+}
+
+catkin_src_configure_internal() {
+ local sitedir="$(python_get_sitedir)"
+ mycmakeargs+=(
+ -DPYTHON_EXECUTABLE="${PYTHON}"
+ -DPYTHON_INSTALL_DIR="${sitedir#${EPREFIX}/usr/}"
+ )
+ python_export PYTHON_SCRIPTDIR
+ cmake-utils_src_configure
+}
+
+src_configure() {
+ export PYTHONPATH="${S}/python"
+ local mycmakeargs=(
+ "$(cmake-utils_use test CATKIN_ENABLE_TESTING)"
+ "-DCATKIN_BUILD_BINARY_PACKAGE=ON"
+ )
+ python_foreach_impl catkin_src_configure_internal
+}
+
+src_compile() {
+ python_foreach_impl cmake-utils_src_compile
+}
+
+src_test() {
+ unset PYTHON_SCRIPTDIR
+ python_foreach_impl cmake-utils_src_test
+}
+
+catkin_src_install_internal() {
+ python_export PYTHON_SCRIPTDIR
+ cmake-utils_src_install
+ if [ ! -f "${T}/.catkin_python_symlinks_generated" ]; then
+ dodir /usr/bin
+ for i in "${D}/${PYTHON_SCRIPTDIR}"/* ; do
+ dosym ../lib/python-exec/python-exec2 "/usr/bin/${i##*/}" || die
+ done
+ touch "${T}/.catkin_python_symlinks_generated"
+ fi
+}
+
+src_install() {
+ python_foreach_impl catkin_src_install_internal
+
+ doenvd "${FILESDIR}/40catkin"
+
+ # needed to be considered as a workspace
+ touch "${ED}/usr/.catkin"
+}
+
+pkg_postinst() {
+ ewarn "Starting from version 0.7.1-r2, dev-util/catkin changed the"
+ ewarn "installation path for package.xml files on Gentoo."
+ ewarn "In order for ROS to work properly, you will need to reinstall ROS"
+ ewarn "packages that have it installed in the old location:"
+ ewarn " emerge -1O /usr/share/*/package.xml"
+ ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=595004 for more details."
+}
diff --git a/dev-util/catkin/catkin-9999.ebuild b/dev-util/catkin/catkin-9999.ebuild
new file mode 100644
index 000000000000..eb49a4b8c816
--- /dev/null
+++ b/dev-util/catkin/catkin-9999.ebuild
@@ -0,0 +1,119 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+SCM=""
+if [ "${PV#9999}" != "${PV}" ] ; then
+ SCM="git-r3"
+ EGIT_REPO_URI="https://github.com/ros/catkin"
+fi
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} pypy{,3} )
+
+inherit ${SCM} cmake-utils python-r1 python-utils-r1
+
+DESCRIPTION="Cmake macros and associated python code used to build some parts of ROS"
+HOMEPAGE="http://wiki.ros.org/catkin"
+if [ "${PV#9999}" != "${PV}" ] ; then
+ SRC_URI=""
+ KEYWORDS=""
+else
+ SRC_URI="https://github.com/ros/catkin/archive/${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~arm"
+fi
+
+LICENSE="BSD"
+SLOT="0"
+IUSE="test"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="
+ ${PYTHON_DEPS}
+ dev-python/catkin_pkg[${PYTHON_USEDEP}]
+ dev-python/empy[${PYTHON_USEDEP}]
+ dev-util/cmake
+"
+DEPEND="${RDEPEND}
+ test? ( dev-python/nose[${PYTHON_USEDEP}] dev-python/mock[${PYTHON_USEDEP}] )"
+
+PATCHES=(
+ "${FILESDIR}/tests.patch"
+ "${FILESDIR}/distutils.patch"
+ "${FILESDIR}/catkin_prefix_path.patch"
+ "${FILESDIR}/gnuinstalldirs.patch"
+ "${FILESDIR}/catkin_prefix_path_util_py.patch"
+ "${FILESDIR}/package_xml.patch"
+ "${FILESDIR}/etc.patch"
+ "${FILESDIR}/sitedir.patch"
+)
+
+src_prepare() {
+ # fix libdir
+ sed -i \
+ -e 's:LIBEXEC_DESTINATION lib:LIBEXEC_DESTINATION libexec:' \
+ -e 's:}/lib:}/${CMAKE_INSTALL_LIBDIR}:' \
+ -e 's:DESTINATION lib):DESTINATION ${CMAKE_INSTALL_LIBDIR}):' \
+ -e 's:DESTINATION lib/:DESTINATION ${CMAKE_INSTALL_LIBDIR}/:' \
+ -e 's:PYTHON_INSTALL_DIR lib:PYTHON_INSTALL_DIR ${CMAKE_INSTALL_LIBDIR}:' \
+ cmake/*.cmake || die
+ cmake-utils_src_prepare
+}
+
+catkin_src_configure_internal() {
+ local sitedir="$(python_get_sitedir)"
+ mycmakeargs+=(
+ -DPYTHON_EXECUTABLE="${PYTHON}"
+ -DPYTHON_INSTALL_DIR="${sitedir#${EPREFIX}/usr/}"
+ )
+ python_export PYTHON_SCRIPTDIR
+ cmake-utils_src_configure
+}
+
+src_configure() {
+ export PYTHONPATH="${S}/python"
+ local mycmakeargs=(
+ "$(cmake-utils_use test CATKIN_ENABLE_TESTING)"
+ "-DCATKIN_BUILD_BINARY_PACKAGE=ON"
+ )
+ python_foreach_impl catkin_src_configure_internal
+}
+
+src_compile() {
+ python_foreach_impl cmake-utils_src_compile
+}
+
+src_test() {
+ unset PYTHON_SCRIPTDIR
+ python_foreach_impl cmake-utils_src_test
+}
+
+catkin_src_install_internal() {
+ python_export PYTHON_SCRIPTDIR
+ cmake-utils_src_install
+ if [ ! -f "${T}/.catkin_python_symlinks_generated" ]; then
+ dodir /usr/bin
+ for i in "${D}/${PYTHON_SCRIPTDIR}"/* ; do
+ dosym ../lib/python-exec/python-exec2 "/usr/bin/${i##*/}" || die
+ done
+ touch "${T}/.catkin_python_symlinks_generated"
+ fi
+}
+
+src_install() {
+ python_foreach_impl catkin_src_install_internal
+
+ doenvd "${FILESDIR}/40catkin"
+
+ # needed to be considered as a workspace
+ touch "${ED}/usr/.catkin"
+}
+
+pkg_postinst() {
+ ewarn "Starting from version 0.7.1-r2, dev-util/catkin changed the"
+ ewarn "installation path for package.xml files on Gentoo."
+ ewarn "In order for ROS to work properly, you will need to reinstall ROS"
+ ewarn "packages that have it installed in the old location:"
+ ewarn " emerge -1O /usr/share/*/package.xml"
+ ewarn "See https://bugs.gentoo.org/show_bug.cgi?id=595004 for more details."
+}
diff --git a/dev-util/catkin/files/40catkin b/dev-util/catkin/files/40catkin
new file mode 100644
index 000000000000..469fa37997cc
--- /dev/null
+++ b/dev-util/catkin/files/40catkin
@@ -0,0 +1,3 @@
+CATKIN_PREFIX_PATH=/usr
+ROS_ROOT=/usr/share/ros
+ROS_PACKAGE_PATH=/usr/share/ros_packages
diff --git a/dev-util/catkin/files/catkin_prefix_path.patch b/dev-util/catkin/files/catkin_prefix_path.patch
new file mode 100644
index 000000000000..5c03a45f155b
--- /dev/null
+++ b/dev-util/catkin/files/catkin_prefix_path.patch
@@ -0,0 +1,76 @@
+Allow CATKIN_PREFIX_PATH to override/complement CMAKE_PREFIX_PATH.
+This serves two goals: when SYSROOT!=/, CMAKE_PREFIX_PATH is the same as when
+SYSROOT=/ but we need to find packages in SYSROOT/CMAKE_PREFIX_PATH.
+
+Moreover, this allows to set CATKIN_PREFIX_PATH in global environment so that
+ROS packages are properly configured without needed to source a shellrc file in
+every shell session. This can't be done with CMAKE_PREFIX_PATH which is way too
+generic.
+
+Index: catkin-0.6.16/cmake/all.cmake
+===================================================================
+--- catkin-0.6.16.orig/cmake/all.cmake
++++ catkin-0.6.16/cmake/all.cmake
+@@ -52,7 +52,11 @@ set(CMAKE_PREFIX_PATH_AS_IS ${CMAKE_PREF
+
+ # list of unique catkin workspaces based on CMAKE_PREFIX_PATH
+ set(CATKIN_WORKSPACES "")
+-foreach(path ${CMAKE_PREFIX_PATH})
++if(NOT DEFINED CATKIN_PREFIX_PATH)
++ set(CATKIN_PREFIX_PATH ${CMAKE_PREFIX_PATH})
++endif()
++
++foreach(path ${CATKIN_PREFIX_PATH})
+ if(EXISTS "${path}/.catkin")
+ list(FIND CATKIN_WORKSPACES ${path} _index)
+ if(_index EQUAL -1)
+Index: catkin-0.6.16/python/catkin/workspace.py
+===================================================================
+--- catkin-0.6.16.orig/python/catkin/workspace.py
++++ catkin-0.6.16/python/catkin/workspace.py
+@@ -44,7 +44,7 @@ def get_workspaces():
+ """
+ # get all cmake prefix paths
+ env_name = 'CMAKE_PREFIX_PATH'
+- paths = [path for path in os.environ.get(env_name, '').split(os.pathsep) if path]
++ paths = [path for path in os.environ.get(env_name, '').split(os.pathsep) + os.environ.get('CATKIN_PREFIX_PATH', '').split(os.pathsep) if path]
+ # remove non-workspace paths
+ workspaces = [path for path in paths if os.path.isfile(os.path.join(path, CATKIN_MARKER_FILE))]
+ return workspaces
+Index: catkin-0.6.16/cmake/catkinConfig.cmake.in
+===================================================================
+--- catkin-0.6.16.orig/cmake/catkinConfig.cmake.in
++++ catkin-0.6.16/cmake/catkinConfig.cmake.in
+@@ -64,6 +64,11 @@ if(catkin_FIND_COMPONENTS)
+
+ # get search paths from CMAKE_PREFIX_PATH (which includes devel space)
+ set(paths "")
++ foreach(path ${CATKIN_PREFIX_PATH})
++ if(IS_DIRECTORY ${path}/share/${component}/cmake)
++ list(APPEND paths ${path}/share/${component}/cmake)
++ endif()
++ endforeach()
+ foreach(path ${CMAKE_PREFIX_PATH})
+ if(IS_DIRECTORY ${path}/share/${component}/cmake)
+ list(APPEND paths ${path}/share/${component}/cmake)
+Index: catkin-0.6.16/cmake/toplevel.cmake
+===================================================================
+--- catkin-0.6.16.orig/cmake/toplevel.cmake
++++ catkin-0.6.16/cmake/toplevel.cmake
+@@ -35,10 +35,15 @@ else()
+ string(REPLACE ":" ";" CMAKE_PREFIX_PATH $ENV{CMAKE_PREFIX_PATH})
+ endif()
+ endif()
++ if(NOT DEFINED CATKIN_PREFIX_PATH)
++ if(NOT "$ENV{CATKIN_PREFIX_PATH}" STREQUAL "")
++ string(REPLACE ":" ";" CATKIN_PREFIX_PATH $ENV{CATKIN_PREFIX_PATH})
++ endif()
++ endif()
+
+ # list of catkin workspaces
+ set(catkin_search_path "")
+- foreach(path ${CMAKE_PREFIX_PATH})
++ foreach(path ${CMAKE_PREFIX_PATH} ${CATKIN_PREFIX_PATH})
+ if(EXISTS "${path}/.catkin")
+ list(FIND catkin_search_path ${path} _index)
+ if(_index EQUAL -1)
diff --git a/dev-util/catkin/files/catkin_prefix_path_util_py.patch b/dev-util/catkin/files/catkin_prefix_path_util_py.patch
new file mode 100644
index 000000000000..e667ea9cf59e
--- /dev/null
+++ b/dev-util/catkin/files/catkin_prefix_path_util_py.patch
@@ -0,0 +1,40 @@
+Author: Eric Timmons
+https://bugs.gentoo.org/show_bug.cgi?id=586104
+
+Index: catkin-0.6.16/cmake/templates/_setup_util.py.in
+===================================================================
+--- catkin-0.6.16.orig/cmake/templates/_setup_util.py.in
++++ catkin-0.6.16/cmake/templates/_setup_util.py.in
+@@ -262,7 +262,7 @@
+ sys.exit(1)
+
+ # environment at generation time
+- CMAKE_PREFIX_PATH = '@CMAKE_PREFIX_PATH_AS_IS@'.split(';')
++ CMAKE_PREFIX_PATH = '@CATKIN_PREFIX_PATH@;@CMAKE_PREFIX_PATH_AS_IS@'.split(';')
+ # prepend current workspace if not already part of CPP
+ base_path = os.path.dirname(__file__)
+ if base_path not in CMAKE_PREFIX_PATH:
+Index: catkin-0.7.1/python/catkin/builder.py
+===================================================================
+--- catkin-0.7.1.orig/python/catkin/builder.py
++++ catkin-0.7.1/python/catkin/builder.py
+@@ -1026,6 +1026,7 @@ def build_workspace_isolated(
+ 'CATKIN_LIB_ENVIRONMENT_PATHS': "'lib'",
+ 'CATKIN_PKGCONFIG_ENVIRONMENT_PATHS': "os.path.join('lib', 'pkgconfig')",
+ 'CMAKE_PREFIX_PATH_AS_IS': ';'.join(os.environ['CMAKE_PREFIX_PATH'].split(os.pathsep)),
++ 'CATKIN_PREFIX_PATH': ';'.join(os.environ['CATKIN_PREFIX_PATH'].split(os.pathsep)),
+ 'PYTHON_EXECUTABLE': sys.executable,
+ 'PYTHON_INSTALL_DIR': get_python_install_dir(),
+ }
+Index: catkin-0.7.1/test/unit_tests/test_setup_util.py
+===================================================================
+--- catkin-0.7.1.orig/test/unit_tests/test_setup_util.py
++++ catkin-0.7.1/test/unit_tests/test_setup_util.py
+@@ -14,6 +14,7 @@ data = configure_file(os.path.join(os.pa
+ 'PYTHON_EXECUTABLE': sys.executable,
+ 'PYTHON_INSTALL_DIR': 'pythonX.Y/packages',
+ 'CMAKE_PREFIX_PATH_AS_IS': '',
++ 'CATKIN_PREFIX_PATH':'',
+ })
+ with tempfile.NamedTemporaryFile('w+') as setup_util_file:
+ setup_util_file.write(data)
diff --git a/dev-util/catkin/files/distutils.patch b/dev-util/catkin/files/distutils.patch
new file mode 100644
index 000000000000..292551181b6d
--- /dev/null
+++ b/dev-util/catkin/files/distutils.patch
@@ -0,0 +1,13 @@
+Allow to install scripts in PYTHON_SCRIPTDIR.
+Needed for Gentoo multi-python support.
+
+Index: catkin-0.6.11/cmake/templates/python_distutils_install.sh.in
+===================================================================
+--- catkin-0.6.11.orig/cmake/templates/python_distutils_install.sh.in
++++ catkin-0.6.11/cmake/templates/python_distutils_install.sh.in
+@@ -25,4 +25,4 @@ cd "@INSTALL_CMD_WORKING_DIRECTORY@"
+ build --build-base "@CMAKE_CURRENT_BINARY_DIR@" \
+ install \
+ $DESTDIR_ARG \
+- @SETUPTOOLS_ARG_EXTRA@ --prefix="@CMAKE_INSTALL_PREFIX@" --install-scripts="@CMAKE_INSTALL_PREFIX@/@CATKIN_GLOBAL_BIN_DESTINATION@"
++ @SETUPTOOLS_ARG_EXTRA@ --prefix="@CMAKE_INSTALL_PREFIX@" --install-scripts="${PYTHON_SCRIPTDIR:-@CMAKE_INSTALL_PREFIX@/@CATKIN_GLOBAL_BIN_DESTINATION@}"
diff --git a/dev-util/catkin/files/etc.patch b/dev-util/catkin/files/etc.patch
new file mode 100644
index 000000000000..d95391f54193
--- /dev/null
+++ b/dev-util/catkin/files/etc.patch
@@ -0,0 +1,16 @@
+So that files like python_logging.conf ends up in $EPREFIX/etc.
+https://bugs.gentoo.org/show_bug.cgi?id=598537
+
+Index: catkin-0.7.4/cmake/all.cmake
+===================================================================
+--- catkin-0.7.4.orig/cmake/all.cmake
++++ catkin-0.7.4/cmake/all.cmake
+@@ -163,7 +163,7 @@ unset(_CATKIN_CURRENT_PACKAGE)
+
+ # set global install destinations
+ set(CATKIN_GLOBAL_BIN_DESTINATION bin)
+-set(CATKIN_GLOBAL_ETC_DESTINATION etc)
++set(CATKIN_GLOBAL_ETC_DESTINATION ../etc)
+ set(CATKIN_GLOBAL_INCLUDE_DESTINATION include)
+ set(CATKIN_GLOBAL_LIB_DESTINATION ${CMAKE_INSTALL_LIBDIR})
+ set(CATKIN_GLOBAL_LIBEXEC_DESTINATION libexec)
diff --git a/dev-util/catkin/files/gnuinstalldirs.patch b/dev-util/catkin/files/gnuinstalldirs.patch
new file mode 100644
index 000000000000..795eafc31965
--- /dev/null
+++ b/dev-util/catkin/files/gnuinstalldirs.patch
@@ -0,0 +1,15 @@
+Index: catkin-0.6.16/cmake/all.cmake
+===================================================================
+--- catkin-0.6.16.orig/cmake/all.cmake
++++ catkin-0.6.16/cmake/all.cmake
+@@ -108,6 +108,10 @@ endif()
+ # include CMake functions
+ include(CMakeParseArguments)
+
++# include GNUInstallDirs for LIBDIR
++# https://bugs.gentoo.org/show_bug.cgi?id=566670
++include(GNUInstallDirs)
++
+ # functions/macros: list_append_unique, safe_execute_process
+ # python-integration: catkin_python_setup.cmake, interrogate_setup_dot_py.py, templates/__init__.py.in, templates/script.py.in, templates/python_distutils_install.bat.in, templates/python_distutils_install.sh.in, templates/safe_execute_install.cmake.in
+ foreach(filename
diff --git a/dev-util/catkin/files/package_xml.patch b/dev-util/catkin/files/package_xml.patch
new file mode 100644
index 000000000000..52506ee680e7
--- /dev/null
+++ b/dev-util/catkin/files/package_xml.patch
@@ -0,0 +1,37 @@
+Index: catkin-0.7.6/cmake/catkin_package.cmake
+===================================================================
+--- catkin-0.7.6.orig/cmake/catkin_package.cmake
++++ catkin-0.7.6/cmake/catkin_package.cmake
+@@ -527,4 +527,7 @@ function(_catkin_package)
+ install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/package.xml
+ DESTINATION share/${PROJECT_NAME}
+ )
++ install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/package.xml
++ DESTINATION share/ros_packages/${PROJECT_NAME}
++ )
+ endfunction()
+Index: catkin-0.7.6/cmake/all.cmake
+===================================================================
+--- catkin-0.7.6.orig/cmake/all.cmake
++++ catkin-0.7.6/cmake/all.cmake
+@@ -156,7 +156,7 @@ foreach(filename
+ endforeach()
+
+ # output catkin version for debugging
+-_catkin_package_xml(${CMAKE_BINARY_DIR}/catkin/catkin_generated/version DIRECTORY ${catkin_EXTRAS_DIR}/..)
++#_catkin_package_xml(${CMAKE_BINARY_DIR}/catkin/catkin_generated/version DIRECTORY ${catkin_EXTRAS_DIR}/../../ros_packages/catkin)
+ message(STATUS "catkin ${catkin_VERSION}")
+ # ensure that no current package name is set
+ unset(_CATKIN_CURRENT_PACKAGE)
+Index: catkin-0.7.6/cmake/catkin_metapackage.cmake
+===================================================================
+--- catkin-0.7.6.orig/cmake/catkin_metapackage.cmake
++++ catkin-0.7.6/cmake/catkin_metapackage.cmake
+@@ -42,4 +42,7 @@ function(catkin_metapackage)
+ install(FILES ${ARG_DIRECTORY}/package.xml
+ DESTINATION share/${PROJECT_NAME}
+ )
++ install(FILES ${ARG_DIRECTORY}/package.xml
++ DESTINATION share/ros_packages/${PROJECT_NAME}
++ )
+ endfunction()
diff --git a/dev-util/catkin/files/sitedir.patch b/dev-util/catkin/files/sitedir.patch
new file mode 100644
index 000000000000..61fcad29d04a
--- /dev/null
+++ b/dev-util/catkin/files/sitedir.patch
@@ -0,0 +1,15 @@
+Pass --install-lib to setup.py install.
+pypy installs in /usr/site-packages otherwise...
+
+Index: catkin-0.7.6/cmake/templates/python_distutils_install.sh.in
+===================================================================
+--- catkin-0.7.6.orig/cmake/templates/python_distutils_install.sh.in
++++ catkin-0.7.6/cmake/templates/python_distutils_install.sh.in
+@@ -30,4 +30,6 @@ echo_and_run /usr/bin/env \
+ build --build-base "@CMAKE_CURRENT_BINARY_DIR@" \
+ install \
+ $DESTDIR_ARG \
+- @SETUPTOOLS_ARG_EXTRA@ --prefix="@CMAKE_INSTALL_PREFIX@" --install-scripts="${PYTHON_SCRIPTDIR:-@CMAKE_INSTALL_PREFIX@/@CATKIN_GLOBAL_BIN_DESTINATION@}"
++ @SETUPTOOLS_ARG_EXTRA@ --prefix="@CMAKE_INSTALL_PREFIX@" \
++ --install-scripts="${PYTHON_SCRIPTDIR:-@CMAKE_INSTALL_PREFIX@/@CATKIN_GLOBAL_BIN_DESTINATION@}" \
++ --install-lib="@CMAKE_INSTALL_PREFIX@/@PYTHON_INSTALL_DIR@"
diff --git a/dev-util/catkin/files/tests.patch b/dev-util/catkin/files/tests.patch
new file mode 100644
index 000000000000..d78136a8ec13
--- /dev/null
+++ b/dev-util/catkin/files/tests.patch
@@ -0,0 +1,40 @@
+Fix tests.
+Allow them to run even with CATKIN_BUILD_BINARY_PACKAGE set.
+
+Index: catkin-0.6.9/cmake/test/tests.cmake
+===================================================================
+--- catkin-0.6.9.orig/cmake/test/tests.cmake
++++ catkin-0.6.9/cmake/test/tests.cmake
+@@ -40,9 +40,6 @@ if(DEFINED CATKIN_ENABLE_TESTING AND NOT
+ return()
+ endif()
+
+-# do not enable ctest's on the farm, since they are automatically executed by the current rules files
+-# and since the tests have not been build rostests would hang forever
+-if(NOT CATKIN_BUILD_BINARY_PACKAGE)
+ # do not enable ctest's for dry packages, since they have a custom test target which must not be overwritten
+ if(NOT ROSBUILD_init_called)
+ message(STATUS "Call enable_testing()")
+@@ -50,9 +47,6 @@ if(NOT CATKIN_BUILD_BINARY_PACKAGE)
+ else()
+ message(STATUS "Skip enable_testing() for dry packages")
+ endif()
+-else()
+- message(STATUS "Skip enable_testing() when building binary package")
+-endif()
+
+ # allow overriding CATKIN_TEST_RESULTS_DIR when explicitly passed to CMake as a command line argument
+ if(DEFINED CATKIN_TEST_RESULTS_DIR)
+Index: catkin-9999/test/utils.py
+===================================================================
+--- catkin-9999.orig/test/utils.py
++++ catkin-9999/test/utils.py
+@@ -189,6 +189,8 @@ class AbstractCatkinWorkspaceTest(unitte
+ prefix_path = self.installdir
+ args += ["-DCMAKE_PREFIX_PATH=%s" % (prefix_path)]
+
++ args += ["-DCMAKE_INSTALL_LIBDIR=lib"]
++
+ if not os.path.isdir(this_builddir):
+ os.makedirs(this_builddir)
+ cmd = ["cmake", this_srcdir] + args
diff --git a/dev-util/catkin/metadata.xml b/dev-util/catkin/metadata.xml
new file mode 100644
index 000000000000..f8e179b359ba
--- /dev/null
+++ b/dev-util/catkin/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="project">
+ <email>ros@gentoo.org</email>
+ <name>Gentoo ROS Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">ros/catkin</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/ccache/Manifest b/dev-util/ccache/Manifest
new file mode 100644
index 000000000000..1a016206762e
--- /dev/null
+++ b/dev-util/ccache/Manifest
@@ -0,0 +1,17 @@
+AUX ccache-3.1.10-size-on-disk.patch 518 SHA256 63e778782c31420caa395079554a1204cb2d899d745afbc330aee708dbbd7605 SHA512 bf7a160b091798e7de57748f4f9e0d6f027872c713108e3791cfc82bf64d3ed843607267ff0cca9e0848abf8bbcbbb6c19921560032576849a42f29ecc496212 WHIRLPOOL ebbe8a3409efa280554800a75bb5a16a5a798a1504cc5613374a7ab156b7d80ba8ff9914fd1bc61454d09545dc3f2fd8f2ba5857344b0e3546201d9a4ecdb3a4
+AUX ccache-3.3-size-on-disk.patch 514 SHA256 da5a88dbc82d353729510cc3c6e832b12634af63aa0c30928ab7a7e05044484b SHA512 7e7f01ca602722a1add1615223bb109cecfdf69ab7612a0424732f992331b0addd7b94f684fedb91486f69cbe57fcb1961d1069116a27458f1f5b20a169f2569 WHIRLPOOL c51a75514941c6ca771eab5af99ff452ff19a4fcfb41cfdc546e3efa17f681f1a5aaec40faaf94da7fe03f1bab1be18f82dbb712abb1c197c44463848868f2a5
+AUX ccache-config-3 2147 SHA256 9b87028bf3aae546251be72b438e9ef615a9986771cb5e7e64b2ba1dc2ff927c SHA512 05d512b001b6a2fdc947d10d810c89683144080a060c24a37422e9b587594e1ee42fa1d7607461571f196819dae92146d861e8ae116e9226e1ff97ea035b3003 WHIRLPOOL 321d4f4d28c447836b3c9bd75f1d6b564b06903a7df7139df3b27695c20f07cc3045655b3eb826418edac5b4c9fd0c7558f7b8764ea025438b352d6528e0af93
+DIST ccache-3.2.4.tar.xz 302548 SHA256 1c3da93f654e78a4ac71a54b0f63b19bc0fef9aa5522f4ebb9c201d4361cea5d SHA512 d048b70804c81dece97f3ba511b3c109ec0d14e7dca69bc68faeeb61a4a7b5639c03e3e5ad7dad4e42b4bd198d7a7fffa4e3b7ef99590dfd4df0805db6c25db7 WHIRLPOOL 3dc1de9d1cab8769b3776e48746a1967536e7a9d01e4eb23e1ddbaaf2858c16eba170a185312bfdb0a58951c77cd6c79ff30c7cf6ab366ade64c2b6997df7703
+DIST ccache-3.2.5.tar.xz 304592 SHA256 117011534b199dbe290b08acae1591c81525536a1e140da22e0fbc04c20bab85 SHA512 12612b899044db50c60bea8ed6cfeb54960ab67514d0aabaea5ee71d3d4d83bb00637e02008365d1d061adf5aa546499948a5eb8a0419222f681058c7fd5fd24 WHIRLPOOL 2cad966b419c16d7956fb2644c1113a8817437f313d54dd17fb16ae4a15f67a322b59d1b225307c980d2e17442478b71ef2bb118d2af4025e530e68fb46767cb
+DIST ccache-3.2.7.tar.xz 305596 SHA256 f1db1ef3cdcf85cf40c7be926c28b4a3beb12ea4d7f1760edf45e753c5147d95 SHA512 4292bd880f7ec39591a4abc232822121e79e706659e36c6aac3f3846fa119ebe18eed3bfefb535e229da8556fe787f1700ff3c63df56d459c6f44260db24b9fa WHIRLPOOL 9abbb67873fb894d1a82e96773b723ec06830dc2a344e4d1fdfc713bc5a9a219b918633ea2b2e9c9a48a0eddc4eca3ca0eb2eb6c8b484e6e469990010dfee904
+DIST ccache-3.3.3.tar.xz 312160 SHA256 3b02a745da1cfa9eb438af7147e0fd3545e2f6163de9e5b07da86f58859f04ec SHA512 59652955708c11dc4e2a0d76bc3810de0ce4009b93196d7e6a28ecf3829616d278e7dfedbd715136cd20c81f57d3912682bec8dbcd5ebed5aaf6508520b93587 WHIRLPOOL 5da75d4088fe2596eb7dc10354b322e6122114689126c676317747e20c2d82d7d830ff1476a8799844a0e377cbab085c0ccab21480b0231ed68c11a7d1c55991
+DIST ccache-3.3.4.tar.xz 314468 SHA256 24f15bf389e38c41548c9c259532187774ec0cb9686c3497bbb75504c8dc404f SHA512 891bcf11b27fa20a250bc86d182663e46af450a3a807b6cab502f202cd57123ce93bcb1fe5e48866feecda76912a5f742efa5869df9117d81624ba185dd4e02c WHIRLPOOL ac9c5d1ce87a53dd6144fb842bdbe61f7bbf3542005e742fac7a6d2275d2173c67c9d32e57330e033af0fce6aa0e9339116146c7b543996139efceb66028e157
+EBUILD ccache-3.2.4.ebuild 2062 SHA256 cb3d350bc4435be2daf4eab85a4a9f0a1576e3e028a793000578b9aef2fc3ddc SHA512 20a6dfa29a564532a738e5f5d3781af556c893f6fca1807229af08974b9f59212073db864bb9d3a0f4a59ee248799b544808c91977f56509864c10b166179107 WHIRLPOOL ed6c9995dec443e1ca6546058ae4fa368d2c0655d5534cc16140d10bfa2daa76492b2c43c5fb8a800a165310fb192c01aae11718e83965e928c8f1eb4f325b0e
+EBUILD ccache-3.2.5.ebuild 2081 SHA256 d3bcbfe4d182974a99739d0ed2d84559d7ce0ac74354a0818cee9ac3a8e67302 SHA512 968ef1968c01e4056409c1a78ad049ec1bc2f8f7d72e62ec5952fa5d33bb412a3d4e8bd711aa9fc7fd419c1c9ac4fcbcea0fc38a5eb4fb0779596a165c2e4a4c WHIRLPOOL 3c3db2898cbd7d8a35dd3c9cef563b3a25a3f5560011f4b583e4b2085aa73d974ff044356580a78d94a0ab2a12fcf6f1d91d18c1dd1ecd1184b22ad59d741252
+EBUILD ccache-3.2.7.ebuild 2081 SHA256 d3bcbfe4d182974a99739d0ed2d84559d7ce0ac74354a0818cee9ac3a8e67302 SHA512 968ef1968c01e4056409c1a78ad049ec1bc2f8f7d72e62ec5952fa5d33bb412a3d4e8bd711aa9fc7fd419c1c9ac4fcbcea0fc38a5eb4fb0779596a165c2e4a4c WHIRLPOOL 3c3db2898cbd7d8a35dd3c9cef563b3a25a3f5560011f4b583e4b2085aa73d974ff044356580a78d94a0ab2a12fcf6f1d91d18c1dd1ecd1184b22ad59d741252
+EBUILD ccache-3.3.3.ebuild 2078 SHA256 414e28adefcf8eec67dec4e41aa91f0fdb46e89a3cc9e68ad9c4091f64bea394 SHA512 b1ca8999409606dc0cc868b6bba1ba8a0351cc6596a2b5760da916fc6715b9fa184f5a785bd2b1497211b54883a8e0a56be6e35d4e3c8329d5615b5bcea7e895 WHIRLPOOL bee0286f393a3996ece8afb11a4d78d95d75be0a92f3cd45069ef63fc5b64707a45a608582ca5e81c45fe981684a7c87bf114e26dd43ccb33121a0935e517eb1
+EBUILD ccache-3.3.4-r1.ebuild 1844 SHA256 a60922ed2edc8806ce2722d79e8a85b401f1541867b45cc156c2451d35894a17 SHA512 09cfa9374eb27a22ec886566c37d1204c16f88e05e283d3cdf9aba8b79857982fda6a505c8b5b8d55bbf9f829717273670a68d86e3a6336191cf78ccb0b25889 WHIRLPOOL cd947556d1a690c0242bbdf15069bba4d3eb5cd18d8064200d4efeecf96706805a1610834732e799abab86dfdd92e8c38bb6b72f9738b96e70d521b3480b3a26
+EBUILD ccache-3.3.4.ebuild 2078 SHA256 414e28adefcf8eec67dec4e41aa91f0fdb46e89a3cc9e68ad9c4091f64bea394 SHA512 b1ca8999409606dc0cc868b6bba1ba8a0351cc6596a2b5760da916fc6715b9fa184f5a785bd2b1497211b54883a8e0a56be6e35d4e3c8329d5615b5bcea7e895 WHIRLPOOL bee0286f393a3996ece8afb11a4d78d95d75be0a92f3cd45069ef63fc5b64707a45a608582ca5e81c45fe981684a7c87bf114e26dd43ccb33121a0935e517eb1
+MISC ChangeLog 5226 SHA256 83b5264607643d87e0606d6cd7c423812b0008157298eba1083deee111dd2a53 SHA512 12b70582f98da4a23db1214049c7470bd52889dcffe040b16f771bf500502a5ecbab780b99d51572a2c407c385c77612fa5f3629ce548f733539c450fc7c3b89 WHIRLPOOL 24730eea1a632e8832a419109e05e8ac4598b7f0443cdec7288a97c5a24568422bdd7f132df8e5a28315c29eaa4acc7b9fd4ca31cd67483e1537d9f87cc4e247
+MISC ChangeLog-2015 19471 SHA256 1ef22a84660ca8147902eec4e11cd99a79a47e25e7099c6a938eaaab05ff34ea SHA512 073c94a370a3d585b6323e1bd1ad78a368a5f300c8978794539c588768d3b1112ffb4e1c37a7a6cb6d86d227b46241be4f3d96089b52793ec9b0ff7127e29dc0 WHIRLPOOL 145e3d871eb96771fdb2768478822ce3e4b4e09ed1a741a51f7639cbd7d48d4c254114b59d8b34887b234fbbcb93bae3dcf6ffa7cbb1a6f5ff69efa52bf9ac0f
+MISC metadata.xml 535 SHA256 bf767447aba3cf42baab8864adb624dd8f126925a74f148e70519b632bedc1db SHA512 1ea0a9f1079489e0f2cf70f923c0c2594ecabf73aa589fe2ca8474e67f41986757c7074145a5b68bc953cac75580497153356c51283e6a90eae91ac94f2fa910 WHIRLPOOL 4816c46eea6018261b1fe024d53bf577d0641e8ddb7cdcb8f827a9eb57bd209d08b2a2c9a10e07bb2eace0b51490169e5ec0d0c35c76f4060454a611bee3e5c4
diff --git a/dev-util/ccache/ccache-3.2.4.ebuild b/dev-util/ccache/ccache-3.2.4.ebuild
new file mode 100644
index 000000000000..3108ac512f5d
--- /dev/null
+++ b/dev-util/ccache/ccache-3.2.4.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils readme.gentoo
+
+DESCRIPTION="fast compiler cache"
+HOMEPAGE="http://ccache.samba.org/"
+SRC_URI="http://samba.org/ftp/ccache/${P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~x64-solaris ~x86-solaris"
+IUSE=""
+
+DEPEND="app-arch/xz-utils
+ sys-libs/zlib"
+RDEPEND="${DEPEND}
+ sys-apps/gentoo-functions"
+
+src_prepare() {
+ # make sure we always use system zlib
+ rm -rf zlib || die
+ epatch "${FILESDIR}"/${PN}-3.1.10-size-on-disk.patch #456178
+ sed \
+ -e "/^EPREFIX=/s:'':'${EPREFIX}':" \
+ "${FILESDIR}"/ccache-config-3 > ccache-config || die
+}
+
+src_install() {
+ DOCS=( AUTHORS.txt MANUAL.txt NEWS.txt README.txt )
+ default
+
+ dobin ccache-config
+
+ DOC_CONTENTS="
+To use ccache with **non-Portage** C compiling, add
+${EPREFIX}/usr/lib/ccache/bin to the beginning of your path, before ${EPREFIX}usr/bin.
+Portage 2.0.46-r11+ will automatically take advantage of ccache with
+no additional steps. If this is your first install of ccache, type
+something like this to set a maximum cache size of 2GB:\\n
+# ccache -M 2G\\n
+If you are upgrading from an older version than 3.x you should clear all of your caches like so:\\n
+# CCACHE_DIR='${CCACHE_DIR:-${PORTAGE_TMPDIR}/ccache}' ccache -C\\n
+ccache now supports sys-devel/clang and dev-lang/icc, too!"
+
+ readme.gentoo_create_doc
+}
+
+pkg_prerm() {
+ if [[ -z ${REPLACED_BY_VERSION} ]] ; then
+ "${EROOT}"/usr/bin/ccache-config --remove-links
+ "${EROOT}"/usr/bin/ccache-config --remove-links ${CHOST}
+ fi
+}
+
+pkg_postinst() {
+ "${EROOT}"/usr/bin/ccache-config --install-links
+ "${EROOT}"/usr/bin/ccache-config --install-links ${CHOST}
+
+ # nuke broken symlinks from previous versions that shouldn't exist
+ rm -f "${EROOT}"/usr/lib/ccache/bin/${CHOST}-cc || die
+ rm -rf "${EROOT}"/usr/lib/ccache.backup || die
+
+ readme.gentoo_print_elog
+}
diff --git a/dev-util/ccache/ccache-3.2.5.ebuild b/dev-util/ccache/ccache-3.2.5.ebuild
new file mode 100644
index 000000000000..8eae63e90702
--- /dev/null
+++ b/dev-util/ccache/ccache-3.2.5.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit eutils readme.gentoo-r1
+
+DESCRIPTION="fast compiler cache"
+HOMEPAGE="http://ccache.samba.org/"
+SRC_URI="http://samba.org/ftp/ccache/${P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~x64-solaris ~x86-solaris"
+IUSE=""
+
+DEPEND="app-arch/xz-utils
+ sys-libs/zlib"
+RDEPEND="${DEPEND}
+ sys-apps/gentoo-functions"
+
+src_prepare() {
+ # make sure we always use system zlib
+ rm -rf zlib || die
+ epatch "${FILESDIR}"/${PN}-3.1.10-size-on-disk.patch #456178
+ sed \
+ -e "/^EPREFIX=/s:'':'${EPREFIX}':" \
+ "${FILESDIR}"/ccache-config-3 > ccache-config || die
+}
+
+src_install() {
+ DOCS=( AUTHORS.txt MANUAL.txt NEWS.txt README.txt )
+ default
+
+ dobin ccache-config
+
+ DOC_CONTENTS="
+To use ccache with **non-Portage** C compiling, add
+${EPREFIX}/usr/lib/ccache/bin to the beginning of your path, before ${EPREFIX}/usr/bin.
+Portage 2.0.46-r11+ will automatically take advantage of ccache with
+no additional steps. If this is your first install of ccache, type
+something like this to set a maximum cache size of 2GB:\\n
+# ccache -M 2G\\n
+If you are upgrading from an older version than 3.x you should clear all of your caches like so:\\n
+# CCACHE_DIR='${CCACHE_DIR:-${PORTAGE_TMPDIR}/ccache}' ccache -C\\n
+ccache now supports sys-devel/clang and dev-lang/icc, too!"
+
+ readme.gentoo_create_doc
+}
+
+pkg_prerm() {
+ if [[ -z ${REPLACED_BY_VERSION} ]] ; then
+ "${EROOT}"/usr/bin/ccache-config --remove-links
+ "${EROOT}"/usr/bin/ccache-config --remove-links ${CHOST}
+ fi
+}
+
+pkg_postinst() {
+ "${EROOT}"/usr/bin/ccache-config --install-links
+ "${EROOT}"/usr/bin/ccache-config --install-links ${CHOST}
+
+ # nuke broken symlinks from previous versions that shouldn't exist
+ rm -f "${EROOT}"/usr/lib/ccache/bin/${CHOST}-cc || die
+ rm -rf "${EROOT}"/usr/lib/ccache.backup || die
+
+ readme.gentoo_print_elog
+}
diff --git a/dev-util/ccache/ccache-3.2.7.ebuild b/dev-util/ccache/ccache-3.2.7.ebuild
new file mode 100644
index 000000000000..8eae63e90702
--- /dev/null
+++ b/dev-util/ccache/ccache-3.2.7.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit eutils readme.gentoo-r1
+
+DESCRIPTION="fast compiler cache"
+HOMEPAGE="http://ccache.samba.org/"
+SRC_URI="http://samba.org/ftp/ccache/${P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~x64-solaris ~x86-solaris"
+IUSE=""
+
+DEPEND="app-arch/xz-utils
+ sys-libs/zlib"
+RDEPEND="${DEPEND}
+ sys-apps/gentoo-functions"
+
+src_prepare() {
+ # make sure we always use system zlib
+ rm -rf zlib || die
+ epatch "${FILESDIR}"/${PN}-3.1.10-size-on-disk.patch #456178
+ sed \
+ -e "/^EPREFIX=/s:'':'${EPREFIX}':" \
+ "${FILESDIR}"/ccache-config-3 > ccache-config || die
+}
+
+src_install() {
+ DOCS=( AUTHORS.txt MANUAL.txt NEWS.txt README.txt )
+ default
+
+ dobin ccache-config
+
+ DOC_CONTENTS="
+To use ccache with **non-Portage** C compiling, add
+${EPREFIX}/usr/lib/ccache/bin to the beginning of your path, before ${EPREFIX}/usr/bin.
+Portage 2.0.46-r11+ will automatically take advantage of ccache with
+no additional steps. If this is your first install of ccache, type
+something like this to set a maximum cache size of 2GB:\\n
+# ccache -M 2G\\n
+If you are upgrading from an older version than 3.x you should clear all of your caches like so:\\n
+# CCACHE_DIR='${CCACHE_DIR:-${PORTAGE_TMPDIR}/ccache}' ccache -C\\n
+ccache now supports sys-devel/clang and dev-lang/icc, too!"
+
+ readme.gentoo_create_doc
+}
+
+pkg_prerm() {
+ if [[ -z ${REPLACED_BY_VERSION} ]] ; then
+ "${EROOT}"/usr/bin/ccache-config --remove-links
+ "${EROOT}"/usr/bin/ccache-config --remove-links ${CHOST}
+ fi
+}
+
+pkg_postinst() {
+ "${EROOT}"/usr/bin/ccache-config --install-links
+ "${EROOT}"/usr/bin/ccache-config --install-links ${CHOST}
+
+ # nuke broken symlinks from previous versions that shouldn't exist
+ rm -f "${EROOT}"/usr/lib/ccache/bin/${CHOST}-cc || die
+ rm -rf "${EROOT}"/usr/lib/ccache.backup || die
+
+ readme.gentoo_print_elog
+}
diff --git a/dev-util/ccache/ccache-3.3.3.ebuild b/dev-util/ccache/ccache-3.3.3.ebuild
new file mode 100644
index 000000000000..afb341d06124
--- /dev/null
+++ b/dev-util/ccache/ccache-3.3.3.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit eutils readme.gentoo-r1
+
+DESCRIPTION="fast compiler cache"
+HOMEPAGE="http://ccache.samba.org/"
+SRC_URI="https://samba.org/ftp/ccache/${P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~x64-solaris ~x86-solaris"
+IUSE=""
+
+DEPEND="app-arch/xz-utils
+ sys-libs/zlib"
+RDEPEND="${DEPEND}
+ sys-apps/gentoo-functions"
+
+src_prepare() {
+ # make sure we always use system zlib
+ rm -rf zlib || die
+ epatch "${FILESDIR}"/${PN}-3.3-size-on-disk.patch #456178
+ sed \
+ -e "/^EPREFIX=/s:'':'${EPREFIX}':" \
+ "${FILESDIR}"/ccache-config-3 > ccache-config || die
+}
+
+src_install() {
+ DOCS=( AUTHORS.txt MANUAL.txt NEWS.txt README.md )
+ default
+
+ dobin ccache-config
+
+ DOC_CONTENTS="
+To use ccache with **non-Portage** C compiling, add
+${EPREFIX}/usr/lib/ccache/bin to the beginning of your path, before ${EPREFIX}/usr/bin.
+Portage 2.0.46-r11+ will automatically take advantage of ccache with
+no additional steps. If this is your first install of ccache, type
+something like this to set a maximum cache size of 2GB:\\n
+# ccache -M 2G\\n
+If you are upgrading from an older version than 3.x you should clear all of your caches like so:\\n
+# CCACHE_DIR='${CCACHE_DIR:-${PORTAGE_TMPDIR}/ccache}' ccache -C\\n
+ccache now supports sys-devel/clang and dev-lang/icc, too!"
+
+ readme.gentoo_create_doc
+}
+
+pkg_prerm() {
+ if [[ -z ${REPLACED_BY_VERSION} ]] ; then
+ "${EROOT}"/usr/bin/ccache-config --remove-links
+ "${EROOT}"/usr/bin/ccache-config --remove-links ${CHOST}
+ fi
+}
+
+pkg_postinst() {
+ "${EROOT}"/usr/bin/ccache-config --install-links
+ "${EROOT}"/usr/bin/ccache-config --install-links ${CHOST}
+
+ # nuke broken symlinks from previous versions that shouldn't exist
+ rm -f "${EROOT}"/usr/lib/ccache/bin/${CHOST}-cc || die
+ rm -rf "${EROOT}"/usr/lib/ccache.backup || die
+
+ readme.gentoo_print_elog
+}
diff --git a/dev-util/ccache/ccache-3.3.4-r1.ebuild b/dev-util/ccache/ccache-3.3.4-r1.ebuild
new file mode 100644
index 000000000000..56fe73b6cea6
--- /dev/null
+++ b/dev-util/ccache/ccache-3.3.4-r1.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit readme.gentoo-r1
+
+DESCRIPTION="fast compiler cache"
+HOMEPAGE="http://ccache.samba.org/"
+SRC_URI="https://samba.org/ftp/ccache/${P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="app-arch/xz-utils
+ sys-libs/zlib"
+RDEPEND="${DEPEND}
+ dev-util/shadowman
+ sys-apps/gentoo-functions"
+
+src_prepare() {
+ # make sure we always use system zlib
+ rm -rf zlib || die
+ eapply "${FILESDIR}"/${PN}-3.3-size-on-disk.patch #456178
+ eapply_user
+ sed \
+ -e "/^EPREFIX=/s:'':'${EPREFIX}':" \
+ "${FILESDIR}"/ccache-config-3 > ccache-config || die
+}
+
+src_install() {
+ DOCS=( AUTHORS.txt MANUAL.txt NEWS.txt README.md )
+ default
+
+ dobin ccache-config
+ insinto /usr/share/shadowman/tools
+ newins - ccache <<<'/usr/lib/ccache/bin'
+
+ DOC_CONTENTS="
+To use ccache with **non-Portage** C compiling, add
+${EPREFIX}/usr/lib/ccache/bin to the beginning of your path, before ${EPREFIX}/usr/bin.
+Portage 2.0.46-r11+ will automatically take advantage of ccache with
+no additional steps. If this is your first install of ccache, type
+something like this to set a maximum cache size of 2GB:\\n
+# ccache -M 2G\\n
+If you are upgrading from an older version than 3.x you should clear all of your caches like so:\\n
+# CCACHE_DIR='${CCACHE_DIR:-${PORTAGE_TMPDIR}/ccache}' ccache -C\\n
+ccache now supports sys-devel/clang and dev-lang/icc, too!"
+
+ readme.gentoo_create_doc
+}
+
+pkg_prerm() {
+ if [[ -z ${REPLACED_BY_VERSION} && ${ROOT} == / ]] ; then
+ eselect compiler-shadow remove ccache
+ fi
+}
+
+pkg_postinst() {
+ if [[ ${ROOT} == / ]]; then
+ eselect compiler-shadow update ccache
+ fi
+
+ # nuke broken symlinks from previous versions that shouldn't exist
+ rm -rf "${EROOT}"/usr/lib/ccache.backup || die
+
+ readme.gentoo_print_elog
+}
diff --git a/dev-util/ccache/ccache-3.3.4.ebuild b/dev-util/ccache/ccache-3.3.4.ebuild
new file mode 100644
index 000000000000..afb341d06124
--- /dev/null
+++ b/dev-util/ccache/ccache-3.3.4.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit eutils readme.gentoo-r1
+
+DESCRIPTION="fast compiler cache"
+HOMEPAGE="http://ccache.samba.org/"
+SRC_URI="https://samba.org/ftp/ccache/${P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~x64-solaris ~x86-solaris"
+IUSE=""
+
+DEPEND="app-arch/xz-utils
+ sys-libs/zlib"
+RDEPEND="${DEPEND}
+ sys-apps/gentoo-functions"
+
+src_prepare() {
+ # make sure we always use system zlib
+ rm -rf zlib || die
+ epatch "${FILESDIR}"/${PN}-3.3-size-on-disk.patch #456178
+ sed \
+ -e "/^EPREFIX=/s:'':'${EPREFIX}':" \
+ "${FILESDIR}"/ccache-config-3 > ccache-config || die
+}
+
+src_install() {
+ DOCS=( AUTHORS.txt MANUAL.txt NEWS.txt README.md )
+ default
+
+ dobin ccache-config
+
+ DOC_CONTENTS="
+To use ccache with **non-Portage** C compiling, add
+${EPREFIX}/usr/lib/ccache/bin to the beginning of your path, before ${EPREFIX}/usr/bin.
+Portage 2.0.46-r11+ will automatically take advantage of ccache with
+no additional steps. If this is your first install of ccache, type
+something like this to set a maximum cache size of 2GB:\\n
+# ccache -M 2G\\n
+If you are upgrading from an older version than 3.x you should clear all of your caches like so:\\n
+# CCACHE_DIR='${CCACHE_DIR:-${PORTAGE_TMPDIR}/ccache}' ccache -C\\n
+ccache now supports sys-devel/clang and dev-lang/icc, too!"
+
+ readme.gentoo_create_doc
+}
+
+pkg_prerm() {
+ if [[ -z ${REPLACED_BY_VERSION} ]] ; then
+ "${EROOT}"/usr/bin/ccache-config --remove-links
+ "${EROOT}"/usr/bin/ccache-config --remove-links ${CHOST}
+ fi
+}
+
+pkg_postinst() {
+ "${EROOT}"/usr/bin/ccache-config --install-links
+ "${EROOT}"/usr/bin/ccache-config --install-links ${CHOST}
+
+ # nuke broken symlinks from previous versions that shouldn't exist
+ rm -f "${EROOT}"/usr/lib/ccache/bin/${CHOST}-cc || die
+ rm -rf "${EROOT}"/usr/lib/ccache.backup || die
+
+ readme.gentoo_print_elog
+}
diff --git a/dev-util/ccache/files/ccache-3.1.10-size-on-disk.patch b/dev-util/ccache/files/ccache-3.1.10-size-on-disk.patch
new file mode 100644
index 000000000000..5e502912bfa2
--- /dev/null
+++ b/dev-util/ccache/files/ccache-3.1.10-size-on-disk.patch
@@ -0,0 +1,21 @@
+https://bugs.gentoo.org/56178
+
+stick to the size of files on disk rather than their byte size.
+this func is only used for stats management, so this should be safe.
+
+--- a/util.c
++++ b/util.c
+@@ -845,12 +845,7 @@ file_size(struct stat *st)
+ #ifdef _WIN32
+ return (st->st_size + 1023) & ~1023;
+ #else
+- size_t size = st->st_blocks * 512;
+- if ((size_t)st->st_size > size) {
+- /* probably a broken stat() call ... */
+- size = (st->st_size + 1023) & ~1023;
+- }
+- return size;
++ return st->st_blocks * 512;
+ #endif
+ }
+
diff --git a/dev-util/ccache/files/ccache-3.3-size-on-disk.patch b/dev-util/ccache/files/ccache-3.3-size-on-disk.patch
new file mode 100644
index 000000000000..e4e2ff8c6477
--- /dev/null
+++ b/dev-util/ccache/files/ccache-3.3-size-on-disk.patch
@@ -0,0 +1,21 @@
+https://bugs.gentoo.org/56178
+
+stick to the size of files on disk rather than their byte size.
+this func is only used for stats management, so this should be safe.
+
+--- a/util.c
++++ b/util.c
+@@ -845,12 +845,7 @@ file_size(struct stat *st)
+ #ifdef _WIN32
+ return (st->st_size + 1023) & ~1023;
+ #else
+- size_t size = st->st_blocks * 512;
+- if ((size_t)st->st_size > size) {
+- // Probably a broken stat() call...
+- size = (st->st_size + 1023) & ~1023;
+- }
+- return size;
++ return st->st_blocks * 512;
+ #endif
+ }
+
diff --git a/dev-util/ccache/files/ccache-config-3 b/dev-util/ccache/files/ccache-config-3
new file mode 100644
index 000000000000..7f604f0016ef
--- /dev/null
+++ b/dev-util/ccache/files/ccache-config-3
@@ -0,0 +1,97 @@
+#!/bin/sh
+#
+# ccache-config - helper script for ccache and its ebuild
+#
+# Copyright 2003-2014 Superlucidity Services, LLC
+# Copyright 2013-2014 Gentoo Foundation
+# This program licensed under the GNU GPL version 2.
+#
+# This script developed by Zachary T Welch at Superlucidity Services, LLC
+# it was cloned from the distcc-config script
+#
+# Additional features to come; this provides a starting point
+
+EPREFIX=''
+
+. "${EPREFIX}"/lib/gentoo/functions.sh 2>/dev/null || {
+ ebegin() { echo " * $* ..."; }
+ eend() {
+ local r=${1:-$?}
+ [ ${r} -eq 0 ] && echo " [ OK ]" || echo " [ !! ]"
+ return $r
+ }
+}
+
+LIBDIR="lib"
+
+# this should be getopt'd someday (override with CC_QUIET=1)
+CC_VERBOSE=1
+unset _CC_QUIET
+c_quiet() {
+ [ -n "${CC_QUIET:-${_CC_QUIET}}" ] || [ -z "${CC_VERBOSE}" ]
+}
+
+c_ebegin() { c_quiet || ebegin "$@" ; }
+c_eend() { c_quiet || eend "$@" ; }
+
+###
+# the following functions manage the ccache symlinks
+# they allow the user or other scripts (namely gcc-config) to
+# automatically update ccache's links when upgrading toolchains
+#
+cc_path() {
+ echo ${ROOT%/}${EPREFIX}/usr/${LIBDIR}/ccache/bin/$1
+}
+cc_remove_link() {
+ local t=$(cc_path "$1")
+ if [ -L ${t} ]; then
+ c_ebegin "Removing ${t}"
+ rm -f "${t}"
+ c_eend
+
+ # Trim the empty dir if possible. #517242
+ t=${t%/*}
+ if rmdir "${t}" 2>/dev/null; then
+ rmdir "${t%/*}" 2>/dev/null
+ fi
+ :
+ fi
+}
+cc_install_link() {
+ # Search the PATH for the specified compiler
+ # then create shadow link in /usr/lib/ccache/bin to ccache
+
+ if command -v "$1" >/dev/null ; then
+ # first be sure any old link is removed
+ _CC_QUIET=1
+ cc_remove_link "$1"
+ unset _CC_QUIET
+
+ # then create the new link
+ local t=$(cc_path "$1")
+ c_ebegin "Creating ccache shadow link ${t}"
+ mkdir -p -m 0755 "${t%/*}" && ln -s "${EPREFIX}"/usr/bin/ccache "${t}"
+ c_eend
+ fi
+}
+cc_links() {
+ local a
+ for a in gcc cc c++ g++ icc icpc clang clang++ ; do
+ "cc_${1}_link" "${2}${2:+-}${a}"
+ done
+}
+
+###
+# main routine
+
+case $1 in
+ --install-links )
+ cc_links install "$2"
+ ;;
+ --remove-links )
+ cc_links remove "$2"
+ ;;
+ * )
+ echo "usage: $0 {--install-links|--remove-links} [ CHOST ]"
+ ;;
+esac
diff --git a/dev-util/ccache/metadata.xml b/dev-util/ccache/metadata.xml
new file mode 100644
index 000000000000..0d4a976163ca
--- /dev/null
+++ b/dev-util/ccache/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>robbat2@gentoo.org</email>
+ </maintainer>
+ <maintainer type="project">
+ <email>toolchain@gentoo.org</email>
+ <name>Gentoo Toolchain Project</name>
+ </maintainer>
+ <longdescription lang="en">
+ ccache acts as a caching pre-processor to C/C++ compilers, improving
+ compilation time when recompiling previously compiled source.
+ </longdescription>
+</pkgmetadata>
diff --git a/dev-util/cccc/Manifest b/dev-util/cccc/Manifest
new file mode 100644
index 000000000000..fe2b811974dd
--- /dev/null
+++ b/dev-util/cccc/Manifest
@@ -0,0 +1,7 @@
+AUX cccc-MFC-dialect.opt 560 SHA256 16ceb2d534bd0b8ae19a5708be3645a5ad211c2936508ba23638fe860904b52f SHA512 e37ded34821690e0b07e4e3da502bccdb5760a38a9f1fbacb6cec4de143cc9c0160684d9a41ce0c3ff8e2a7716889824594d6f8d374a631dbb0de91ccec53903 WHIRLPOOL a5440d259e84d23b2d607310fbf696f99ff06a2160a35c8fbd654cf7f3829b4ef26c2e050966269f700ba7fd037f69b82ef720bd7266c18fb8c379dd5361c5f5
+AUX cccc-c_dialect.patch 2048 SHA256 e06f50a514297656583ae864b18cd7932c057c7969fe523663b0249e5989cf59 SHA512 5fadc49a0da8ca51b74dd92e673b413b506c8b06dfeabb7da0e2ddf24e7766d58ebbcc00d018677f4b0ff77d10df8b974ff1afd4100c33152e8cad0538b61789 WHIRLPOOL fb911203f0b9b3be3ee1d8445f785454217ff2d6a24f195c0f74199d9d2578382ae9e2dc414c9132969003ef002a5f5fc71e6a70744495a26f6197217ef74711
+DIST cccc-3.1.5.tar.gz 662760 SHA256 6fe91eae83ad0ff4c1fe4277aabb6e7554a4dec1bb266b5657c064ef48a23142 SHA512 61544669a75ff7bd99c6ff5bb1e6ec163f2a09f4538493fe60e8f9f95eab7ba19ad6d39b6717ae010a223b8efe48c497a4feb8ead218e350ee2ab91b9c52c969 WHIRLPOOL 085d897eec29bc6de7fee35261bcde2228bb76e85799a6528d7ff9364712489368ad5f899f8c170169fb9b01931e4b846fd5c63b98b640c733640d10685c100f
+EBUILD cccc-3.1.5.ebuild 1535 SHA256 1ed72bb9121c977eb40a67cdbb580376839f33642a7e560be19b257149f6e077 SHA512 d273f384ed06bcd9221e7bcdd468808f7026c108042414703f64b7d176f64e587d1210ae43f2baabec450d552bcd70060a7fc3732f8eefd88ad931f24824a37a WHIRLPOOL 74b2926944456ef3195f19973d242970680ff6da6b6fb0be586ee818f1bcb0c1a4f038abef002d4a9da841c723213db7ef6919188062645537fe916e67b99cce
+MISC ChangeLog 3575 SHA256 e0380fbb77a8ddb8dc4466063b93f9d21429ebc6bd047b132a9e5c257f5b7a5d SHA512 cf3be52e361e736845159e7e0bf0145fbb945ce5bd243cfcd1c828c83492271d0fcd0b125a6e8b4ac3463977925e8d885041e2a5bb3650935576be91fc019617 WHIRLPOOL 7f07e125e3e33748bc38f148c70fd769131918caf05ffca5309837346a307a91e0309da2d1aa0e9eb96c820b74812585b50db998e91110d6ac27ed5291c30a0c
+MISC ChangeLog-2015 2552 SHA256 5184d39dc42341cf3523965c236ff2b8b9a7435c95163a1c5b156fc07712e0ea SHA512 baaf50c02849f0d507d647b9297ed0c1e19ad99cd034aa8f71565ce85c951a271e88c01e2549e1b08e8c84d0335b24d428897716a0ef43e66a5d1d046bf825ea WHIRLPOOL ceac6ff9b359a51c38748fa15eba7f26ae8df93d1e046ee183656b1e386008e5bf0b5aa46c85abf6d7950c682fdfdf95a67d324eb1bc9e79e4edc8a6e6abaae0
+MISC metadata.xml 694 SHA256 a6e4f3c08611221a26016e5a72b6d6c643cbc08fbe85ffd21829653c7fad92de SHA512 442e37fb776949e1f59ca7074ba1219e77e7e1be0003c5cace090342823227fca6a9a10ef607d133245985c717811005293bf2044fdb0bacfe2e114eea3ec2ad WHIRLPOOL 6cf84571a4b6b69d9e60ecbb971a108f52b09086c8004987644c78fae2d07d0e14955c326223ee8a2ab0e09f6503669487d9c07e949260224503108fb8c9ca01
diff --git a/dev-util/cccc/cccc-3.1.5.ebuild b/dev-util/cccc/cccc-3.1.5.ebuild
new file mode 100644
index 000000000000..07042e9343cb
--- /dev/null
+++ b/dev-util/cccc/cccc-3.1.5.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils toolchain-funcs flag-o-matic
+
+DESCRIPTION="Source metrics (line counts, complexity, etc) for Java and C++"
+HOMEPAGE="http://sarnold.github.io/cccc/"
+if [[ ${PV} = 9999* ]]; then
+ EGIT_REPO_URI="https://github.com/sarnold/cccc.git"
+ EGIT_BRANCH="master"
+ inherit git-r3
+else
+ SRC_URI="https://github.com/sarnold/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE="apidoc debug doc mfc"
+
+RDEPEND=""
+DEPEND="${RDEPEND}
+ apidoc? ( app-doc/doxygen[dot] )
+ "
+
+MAKEOPTS="-j1"
+
+src_prepare() {
+ use mfc && epatch "${FILESDIR}"/${PN}-c_dialect.patch
+}
+
+src_compile() {
+ if use debug ; then
+ export STRIP_MASK="*/bin/*"
+ DEBUG="true" emake CCC=$(tc-getCXX) CC=$(tc-getCC) cccc
+ else
+ emake CCC=$(tc-getCXX) CC=$(tc-getCC) cccc
+ fi
+
+ use apidoc && emake CCC=$(tc-getCXX) metrics docs
+}
+
+src_test() {
+ emake CCC=$(tc-getCXX) test
+}
+
+src_install() {
+ dobin cccc/cccc
+
+ dodoc README.md
+
+ if use mfc ; then
+ dodoc "${FILESDIR}"/cccc-MFC-dialect.opt
+ docompress -x "/usr/share/doc/${PF}/cccc-MFC-dialect.opt"
+ fi
+
+ if use doc ; then
+ dodoc CHANGELOG.md HISTORY.md
+ dohtml cccc/*.html || die "html docs failed"
+ if use apidoc ; then
+ docinto api
+ dohtml -A svg -r doxygen/html || die "dox failed"
+ docompress -x "/usr/share/doc/${PF}/api"
+ docinto metrics
+ dohtml ccccout/* || die "metrics failed"
+ fi
+ fi
+}
diff --git a/dev-util/cccc/files/cccc-MFC-dialect.opt b/dev-util/cccc/files/cccc-MFC-dialect.opt
new file mode 100644
index 000000000000..4c4acb32e1fb
--- /dev/null
+++ b/dev-util/cccc/files/cccc-MFC-dialect.opt
@@ -0,0 +1,21 @@
+;;Pro*C embedded SQL
+;; looks like
+;; EXEC SQL UPDATE ARM43_OD_PRODUIT_SERV
+;; SET ARM43ID_TPS_FIN = NULL WHERE
+ARM43ID_TPS_FIN = 0;
+
+CCCC_FileExt@.pc@c++.ansi@
+
+CCCC_Dialect@c++.pc@EXEC@skip_stmt@
+
+;;MFC
+CCCC_Dialect@c++.mfc@ON_WM_PAINT@skip_line@
+CCCC_Dialect@c++.mfc@DECLARE_MESSAGE_MAP@skip_line@
+CCCC_Dialect@c++.mfc@DECLARE_DISPATCH_MAP@skip_line@
+
+CCCC_Dialect@c++.stl@__STL_BEGIN_NAMESPACE@ignore@
+CCCC_Dialect@c++.stl@__STL_END_NAMESPACE@ignore@
+
+CCCC_Dialect@c++.mfc@BEGIN_EVENT_MAP@start_skipping@
+CCCC_Dialect@c++.mfc@END_EVENT_MAP@stop_skipping@
+
diff --git a/dev-util/cccc/files/cccc-c_dialect.patch b/dev-util/cccc/files/cccc-c_dialect.patch
new file mode 100644
index 000000000000..c8951aef13c4
--- /dev/null
+++ b/dev-util/cccc/files/cccc-c_dialect.patch
@@ -0,0 +1,79 @@
+diff --git a/cccc/cccc.g b/cccc/cccc.g
+index bdb6805..fd7b504 100644
+--- a/cccc/cccc.g
++++ b/cccc/cccc.g
+@@ -84,6 +84,30 @@ inline void endOfLine(CLexer &lexer)
+ #token MAC_NL "\r" << endOfLine(*this); >>
+ #token UNIX_NL "\n" << endOfLine(*this); >>
+
++/* augment dialect policies -- M.H added */
++#lexclass SKIP_STMT
++#token SKCOLON ";" << skip();mode(START); >>
++#token SKANYTHING "~[; \t\n]" << skip();more();>>
++#token SKNL "\n" << skip();endOfLine(*this);>>
++#token SKBLANK "[ \t]+" << skip(); >>
++#lexclass START
++
++#lexclass SKIP_BLOCK
++#token SK_ANY "[a-zA-Z0-9_]*"
++<<
++std::string treatment =
++ CCCC_Options::dialectKeywordPolicy(parse_language,lextext());
++
++if ( treatment != "stop_skipping" )
++{
++ skip();
++}
++else
++{
++ mode(COMMENT_LINE);skip();
++}
++>>
++#lexclass START
+
+ /* preprocessor constructs - comments, #defines etc */
+
+@@ -343,17 +367,29 @@ inline void endOfLine(CLexer &lexer)
+ if( treatment == "ignore" )
+ {
+ skip();
++ //std::cout << toktext << std::endl <<" :ignore" << std::endl;
+ }
+ // Ultimately, the next two cases will need to be handled
+ // using a #lexclass or something similar, for the moment
+ // we just try to skip the tokens themselves.
+ else if ( treatment == "start_skipping" )
+ {
+- skip();
++ mode(SKIP_BLOCK);skip();
+ }
+ else if ( treatment == "stop_skipping" )
+ {
+- skip();
++ skip(); mode(COMMENT_LINE);
++ //gobble end of line M.H.
++ }
++ else if ( treatment == "skip_line" )//M.H added
++ {
++ mode(COMMENT_LINE);skip();
++ //std::cout << "skip_line" << std::endl;
++ }
++ else if ( treatment == "skip_stmt" )//M.H added
++ {
++ mode(SKIP_STMT);skip();
++ //std::cout << "skip_stmt" << std::endl;
+ }
+ >>
+
+@@ -426,8 +462,10 @@ void init(const string& filename, const string& language)
+ pu=ParseUtility::currentInstance();
+ ps=ParseStore::currentInstance();
+
+- ANTLRParser::init();
+ parse_language=language;
++ ANTLRParser::init();
++ //parse_language=language;
++ //move above, M.H.1st otherwise time init not to language
+ }
+
+ >>
diff --git a/dev-util/cccc/metadata.xml b/dev-util/cccc/metadata.xml
new file mode 100644
index 000000000000..ecde1cfd0a08
--- /dev/null
+++ b/dev-util/cccc/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>nerdboy@gentoo.org</email>
+ </maintainer>
+ <longdescription lang="en">
+ cccc provides source code metrics (line counts, complexity,
+ object-oriented, and structural metrics) for Java and C++
+ </longdescription>
+ <upstream>
+ <remote-id type="github">sarnold/cccc</remote-id>
+ <bugs-to>https://github.com/sarnold/cccc/issues</bugs-to>
+ </upstream>
+ <use>
+ <flag name="apidoc">Build software docs with doxygen/graphviz and metrics with cccc</flag>
+ <flag name="mfc">Add patch for MFC dialect options</flag>
+ </use>
+</pkgmetadata>
diff --git a/dev-util/ccglue/Manifest b/dev-util/ccglue/Manifest
new file mode 100644
index 000000000000..55a22b5b5a19
--- /dev/null
+++ b/dev-util/ccglue/Manifest
@@ -0,0 +1,9 @@
+AUX ccglue-0.3.1-as-needed.patch 345 SHA256 6be62084887e0560d0ec46cdbd5d68d9d72f4efda95535db40d68a9c57f7f548 SHA512 227de72e1931182c2ea1ddfe02a5d44ca04b59505ba7027ee6abbd2be1f5e3a6b2dfbe13042337b97c0f27b1dfd4f1c5fb8f51fd0c70801bcb803120981afa0d WHIRLPOOL 73acd2244b02bcc3b29102eaf3acb22a25e81a82ca5f8c3572a2ca41c10341e30234a799ff31dd52b7fcfb53ff69327082cf6dc639d0c3999dca6892f11faa6f
+AUX ccglue-0.5.1-cflags.patch 338 SHA256 96199e6b98b5e972ee33b8629fe70e815a3f4981af4cd2d4472ec4c3015b9288 SHA512 6e25a6969011f868c4b703170e04f0e166eb0d370f626fddbbecf1b2e43839392d33600ed7738b2c4d48c7529325f878b731ef49c1879d1efaa29260ab41baae WHIRLPOOL a32c86154555bfcc78136479501ecce9a440af5308df5edf9f638a863f7a721e9fc1eb3482f0ceb5b38f89a269abdb00352e80407afdf40212ae0cc91d67249c
+DIST ccglue-release-0.3.1.tar.gz 101529 SHA256 9954bb2af56e8bc313820081f4d45c564b34804978c5a7682846ae98a941b332 SHA512 bbe4c9ff84869696dac80f801fa54df4f60bbe7615d3cd587713f7cd8c58f056db95a003c47879e0ca4fbd3956f97a4b3d31c6d04f49aecca9db2c5ccfaae4b7 WHIRLPOOL 6275b62ea62fcc9911daf3be7a5cd66a6ce9f9dd75df46389a6d728f29069b7c39d0a587435747bb44e98eb24c427975223793b90e43246b9c05fbe37460bd77
+DIST ccglue-release-0.6.0.tar.bz2 220918 SHA256 04b0d83deebf84bee3d18c376891f6f913ed8a053d3f309d8574cb8b1b5abefb SHA512 695983741049d460cac3ae906fddd75380a498062373461efb49b976b958b181301c6a028cc76643bee7fe3b59664aa432d1fb0d43446019a116224ff15107aa WHIRLPOOL 8809b9c95a50c610dfcdb2fb789d4657e61ba266a88e44667aea7cfb0cfc6e205627b233dd5f8571a7c2e7fb6da21f766c62b30020e77d8bb743593b4734cc0a
+EBUILD ccglue-0.3.1.ebuild 568 SHA256 2a150924d20b8ea808d3c3273160deadb43f7789aa1ecf8acf90b5290a5d2686 SHA512 a4bfd4be74e57264d29c7517feead01f6f420e8da8b654aa3d242e134eeb6a819ae7bbcf92ebd702120d3018da1fcab913466ad71593a28b0a60151d383901e4 WHIRLPOOL d7fcf6da7b9e439b41606930106086b1dba3bba27c4e41ee6092eb8e124d542c2126cc683b21d443e45033ff8b6623eba5c92a8255e5b49d4f3f5e77345191ac
+EBUILD ccglue-0.6.0.ebuild 479 SHA256 109f8a40aee3fdfb7fddd492358a370768b6d2305f5b803e526d704e8125d325 SHA512 e7fb8887056d94c4f2c3d1c846b9f7ccad4b12f376b37a3b9274bd4221b4f6368044f4208a89a8d6ee0990354705e7624853407405efa0cc8cd1c34b9df2bab3 WHIRLPOOL 3ff07c146a8b7ce4d593ebdd01fb625599b9b6798d5b6f7efc76c718b75f9af59a3ec34ccf189b0c58932448813879e8ab6e674bf0ad9c7d9dea12cdfc4a5966
+MISC ChangeLog 2547 SHA256 30a9a07f85a3ba90e0c6bb6d50be9ab54f82cd6287a4a4cb942b03c4e577900b SHA512 ef40ffca63322ceda91487ef28587758d2c53970b1e0bc222f2938574d06e4be9e2b1a60dc28a296718c81f1e7219e1bbeaaad6d1b005dd8f29e5c698b64dc55 WHIRLPOOL 91673864d734df085dc737697acbe5ce119bd4bc428800da08d99ff1df3b9cf2e18ad4040801727e0ac1ffb9c5eba20a5c2ba09208d7b3fa9822c3fc4c9d20b7
+MISC ChangeLog-2015 1320 SHA256 897495fd90524619ce0637117436409cb8d94f4748094b09b74d4485354595ab SHA512 1e0d27a67c05cfbd391db1df40b770c1f66f28e7b77e01db8e399925c584a141d1c3d89e96ff8b8e220cf6e91f3e4d457d9ab40155a0880cd2e11c087c62c4ed WHIRLPOOL 4d398882f66fb5dc1b4c72f64af0385cee777403acb261c12ec220719b06f2dfa7e57fdfe8e122111b66e51654032321d7d27ba87deb86c24e5bbe8d1de5adac
+MISC metadata.xml 564 SHA256 8e716c93dbaf41c09a4aa1c96715d2cbd60d5730fdbea96ae2bbf5895de76b4a SHA512 d3535dafd6e0a469792cb01b02e3218ec251e0b9fc8fad63c326e55c700c751232912b6dd043179828a20d04db97a724fa0d1b6d45e7650a4ecc9c337500a125 WHIRLPOOL 52b4156a09e4ca3788011fa51e3838c851a0ec6e93490bd58037c297bdfa1cad823c53343622d64ba7bfde7cfd96aba45ca1a2ce432b1a5d63a958516fd79504
diff --git a/dev-util/ccglue/ccglue-0.3.1.ebuild b/dev-util/ccglue/ccglue-0.3.1.ebuild
new file mode 100644
index 000000000000..2b3f07348a83
--- /dev/null
+++ b/dev-util/ccglue/ccglue-0.3.1.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit autotools eutils
+
+DESCRIPTION="Produce cross-reference files from cscope and ctags for use with app-vim/cctree"
+HOMEPAGE="http://ccglue.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${PN}-release-${PV}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="dev-libs/glib:2"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+S=${WORKDIR}/release-${PV}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-as-needed.patch
+ eautoreconf
+}
diff --git a/dev-util/ccglue/ccglue-0.6.0.ebuild b/dev-util/ccglue/ccglue-0.6.0.ebuild
new file mode 100644
index 000000000000..60c9355974f9
--- /dev/null
+++ b/dev-util/ccglue/ccglue-0.6.0.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit autotools eutils
+
+DESCRIPTION="Produce cross-reference files from cscope and ctags for use with app-vim/cctree"
+HOMEPAGE="http://ccglue.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${PN}-release-${PV}.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-0.5.1-cflags.patch
+ eautoreconf
+}
diff --git a/dev-util/ccglue/files/ccglue-0.3.1-as-needed.patch b/dev-util/ccglue/files/ccglue-0.3.1-as-needed.patch
new file mode 100644
index 000000000000..5f2e5e34c5b5
--- /dev/null
+++ b/dev-util/ccglue/files/ccglue-0.3.1-as-needed.patch
@@ -0,0 +1,11 @@
+--- release-0.3.1/src/Makefile.am.orig
++++ release-0.3.1/src/Makefile.am
+@@ -1,6 +1,4 @@
+ bin_PROGRAMS = ccglue
+ ccglue_SOURCES = cscoperdr.c seqfile.c sym_mgr.c digraph.c options.c main.c c_glue.c
+-INCLUDES = `pkg-config --cflags glib-2.0`
+-AM_LDFLAGS = `pkg-config --libs glib-2.0`
+-
+-
++AM_CFLAGS = $(GLIB_CFLAGS)
++ccglue_LDADD = $(GLIB_LIBS)
diff --git a/dev-util/ccglue/files/ccglue-0.5.1-cflags.patch b/dev-util/ccglue/files/ccglue-0.5.1-cflags.patch
new file mode 100644
index 000000000000..5d0b294f4ca4
--- /dev/null
+++ b/dev-util/ccglue/files/ccglue-0.5.1-cflags.patch
@@ -0,0 +1,13 @@
+--- ccglue_v0.5.1/configure.in
++++ ccglue_v0.5.1/configure.in
+@@ -19,10 +19,7 @@
+ [want_debug="$enableval"], [want_debug=no])
+
+ if test "x$want_debug" = "xyes"; then
+- CXXFLAGS="$CXXFLAGS -O0 -ggdb"
+ AC_DEFINE([DEBUG], 1, [Define for debugging])
+-else
+- CXXFLAGS="$CXXFLAGS -O2"
+ fi
+
+ AC_CXX_HAVE_SSTREAM
diff --git a/dev-util/ccglue/metadata.xml b/dev-util/ccglue/metadata.xml
new file mode 100644
index 000000000000..c9fda525828d
--- /dev/null
+++ b/dev-util/ccglue/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="project">
+ <email>vim@gentoo.org</email>
+ <name>Gentoo Vim Project</name>
+ </maintainer>
+ <longdescription lang="en">
+ ccglue (ctags-cscope glue) is intended to be the interfacing app between cscope
+ and ctags. It can generate cross-reference tag files that can be interfaced
+ with the Vim CCTree plugin.
+ </longdescription>
+ <upstream>
+ <remote-id type="sourceforge">ccglue</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/cdiff/Manifest b/dev-util/cdiff/Manifest
new file mode 100644
index 000000000000..c752a7621104
--- /dev/null
+++ b/dev-util/cdiff/Manifest
@@ -0,0 +1,7 @@
+AUX cdiff-0.9.2-disable-unimportant-failing-test.patch 383 SHA256 70e82adad4c75d669e9b4ef2363d8b2d47d1603189345a50857619cf4dd2fcff SHA512 598cf3d4ccbffb6ac71c3e60c4402001d18172d1f7fb309290c94b0f5d2541c4fc1c6557cb1d5780e993e3fefb84314acb2515ab6e585affb7172327794fb4f9 WHIRLPOOL b96203035ecab6371adb662ff5467d212e311153a28d3fdd4af1fe391dfd91785a136ce7f55b0dc3b2fae05fd72c4ec7b765ec3ae9da8fbe1111aa5f948e4506
+DIST cdiff-0.9.8.tar.gz 34861 SHA256 61229ba5b294faa8b4c257a220cfda34ac4a7ecf35aa88e8121c36234fea3760 SHA512 303126c51b4c5cfafd800da7f4ffd56655f28f8b525c7d83c7417e1e0013b2186b178697aca41af18f5397ac860cc0159d359e2b23eaa8111e8f77184dc9d4f3 WHIRLPOOL a49f492746fba7af7869408bdfcb4ae2accfb78f9b999d49763f35fbfddb58ac96ae9a734e22441a0b9d060d89de56704f09762c1af10c059851e280a348156b
+EBUILD cdiff-0.9.8.ebuild 783 SHA256 9f9fca4b2d7b09b6f984bf5abeef7997ae35c5e78f8d00a162d2e6f86365f9af SHA512 08857ef6c8f2d2483fdff53eadbc0e491c20b22a3626c8247ab4c4df4c60e12cda0969cfa091c13e628afab0ae6908581ee35846223d265b439d068a2af8e16f WHIRLPOOL 4bba2ad03aa4b2aad143da24a40379cb32ea627887fe24d5ab4fa27d22159209fde7435041c1a6036a7547cff30bd23e02284214348ed8940f0d4055822575a0
+EBUILD cdiff-9999.ebuild 787 SHA256 1134352c45148d4dd38245a45ddac99196f6e868813a5f0787f118ea7d1d6e71 SHA512 80e6bd4d06bd8dba869f9d1111ade351ff5ef9649ca59690f171e8d0a7983b11b234e408ed8ead069d94bdf13f13cf1c108eb7f92c2d675e5fbc107808b3e936 WHIRLPOOL fa711d9b0d396ae17e0a14dbe6bd55f7bf78d642de7af1eb71282a5f109baf2868ecc6b156124c850b679963f2e18de2f8cabe4f6e4509fe5620a2782d26482b
+MISC ChangeLog 4026 SHA256 74cb35d1f84421383d57094b0c56e1228e8ce1cfc02ca94ec5058912ab221913 SHA512 742e5d9923cf2aac4549500e802f38d548b9e6e127023fdb5fc088a5ef388008ebc6f7b6bd5bfaa5d02003ad957fcd30df48f293bf4a22f2ad1eac0a01e20e24 WHIRLPOOL c6c4d969dbd6f00a8792a1a7eb107547ab8d3c7885b123239c5a9d5464fbd359df81ffb39214603f610b2ec3d2be1b9775ab16c44c6d70ab82e6981ea0faba46
+MISC ChangeLog-2015 5192 SHA256 530bc093bedc57e718642964fa3ef0edd502b1880edac135c6ffa936bc60f392 SHA512 ae2e18ca68a380617a298b8a63a456cbec00ab40644565072842c872575c4d9249787991ed40d938cbe0062f9d3495dbefcd40408903a4f2977549953f971adf WHIRLPOOL fa550207d04bd4031ae32cebffe72ad259ff6b3fc6c8da07431ce665a6872dd63199e8512a2c5051a87515e511fabe678ed112b5cca60a105fba8a942f65e5ca
+MISC metadata.xml 383 SHA256 328518abaf3012c730c4260e7e90eeca43c52d8d6ed988524ff1403ad3e6ce16 SHA512 c797a47d8258e3aff9bf93328566438192a37c166733e84fd6846ecccb77ea0398c82dd9abbbe90623d4a1fa33405c75ed1defeb832cb2e55b754d3a594bba5f WHIRLPOOL ea96e77b173f44f1c77e16dc2e43c13dfc28d319ab34f3e3463b3af911441f4b397e91701ee8f60768b3cb1b861bdada7df55948c791a5e8c218cc9af41a4acf
diff --git a/dev-util/cdiff/cdiff-0.9.8.ebuild b/dev-util/cdiff/cdiff-0.9.8.ebuild
new file mode 100644
index 000000000000..0b2159815163
--- /dev/null
+++ b/dev-util/cdiff/cdiff-0.9.8.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy )
+
+inherit distutils-r1
+
+DESCRIPTION="Colored, side-by-side diff terminal viewer"
+HOMEPAGE="https://github.com/ymattw/${PN}"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
+IUSE=""
+
+DEPEND="
+ !<app-misc/colordiff-1.0.13-r1
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ sys-apps/less"
+RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}"/${PN}-0.9.2-disable-unimportant-failing-test.patch )
+
+DOCS=( CHANGES.rst README.rst )
+
+python_test() {
+ ${PYTHON} tests/test_cdiff.py || die "Unit tests failed."
+
+ ./tests/regression.sh || die "Regression tests failed."
+}
diff --git a/dev-util/cdiff/cdiff-9999.ebuild b/dev-util/cdiff/cdiff-9999.ebuild
new file mode 100644
index 000000000000..0052610eb3f9
--- /dev/null
+++ b/dev-util/cdiff/cdiff-9999.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+
+inherit distutils-r1 git-r3
+
+DESCRIPTION="Term based view of colored, incremental diff in a Git/Mercurial/Svn workspace"
+HOMEPAGE="https://github.com/ymattw/${PN}"
+EGIT_REPO_URI="https://github.com/ymattw/cdiff.git"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS=""
+IUSE=""
+
+DEPEND="
+ !<app-misc/colordiff-1.0.13-r1
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ sys-apps/less"
+RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}"/${PN}-0.9.2-disable-unimportant-failing-test.patch )
+
+DOCS=( CHANGES.rst README.rst )
+
+python_test() {
+ ${PYTHON} tests/test_cdiff.py || die "Unit tests failed."
+
+ ./tests/regression.sh || die "Regression tests failed."
+}
diff --git a/dev-util/cdiff/files/cdiff-0.9.2-disable-unimportant-failing-test.patch b/dev-util/cdiff/files/cdiff-0.9.2-disable-unimportant-failing-test.patch
new file mode 100644
index 000000000000..50b00cc5a46e
--- /dev/null
+++ b/dev-util/cdiff/files/cdiff-0.9.2-disable-unimportant-failing-test.patch
@@ -0,0 +1,11 @@
+--- a/tests/test_cdiff.py 2013-03-24 15:08:00.000000000 +0100
++++ b/tests/test_cdiff.py 2013-06-23 01:17:20.560520188 +0200
+@@ -737,7 +737,7 @@
+ os.chdir(self._non_ws)
+ ret = cdiff.main()
+ os.chdir(self._cwd)
+- self.assertNotEqual(ret, 0)
++# self.assertNotEqual(ret, 0)
+
+ def test_read_log(self):
+ sys.argv = [sys.argv[0], '--log']
diff --git a/dev-util/cdiff/metadata.xml b/dev-util/cdiff/metadata.xml
new file mode 100644
index 000000000000..8298304ad283
--- /dev/null
+++ b/dev-util/cdiff/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-needed -->
+ <longdescription>
+ Colored, side-by-side diff terminal viewer.
+ </longdescription>
+ <upstream>
+ <remote-id type="pypi">cdiff</remote-id>
+ <remote-id type="github">ymattw/cdiff</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/cflow/Manifest b/dev-util/cflow/Manifest
new file mode 100644
index 000000000000..f0858af68a7e
--- /dev/null
+++ b/dev-util/cflow/Manifest
@@ -0,0 +1,7 @@
+AUX 50cflow-gentoo.el 177 SHA256 53c0cb29bcd25b0212f8377beb74cc493695c31242af987d90ac98adb723a2b1 SHA512 1edbe2c330206fdb9ad3844a2278dc71d13a0ce7c46c73030192de3f05634fe08012c04e7c94883b1f6fde21483aba29e16f7a1466719c975e9c60d59507c5e3 WHIRLPOOL 85088df90a26e04b117f45a42a03de04fe2cf53cfa08851b2feb02c60fe2e3ce272f79d47c6cfeac257e93b762b26ecadf311f979b2baf8565550047fa5e14af
+AUX cflow-1.4-info-direntry.patch 356 SHA256 ece43488993d5ae773163d31a523f123607b20c1531717650ccfccc7a7d4f116 SHA512 6bcfd0ec801b3c487d817d2fd1a0f030a1e3fccffb03f5343eb335c807fd763a8c00d8f98654ce3f8574e756a9c1d5769da71b9fb70acee0ecdace6395a3a624 WHIRLPOOL 7d84bd278e69ed8d8cce8c16f4afe999354cfa431e61b79664352ca2a6dd1403f237fd398821e0bb3d26763947c8fef776984d9ae870f45a1c1ae81814fddbc2
+DIST cflow-1.4.tar.bz2 634862 SHA256 037e39d6048ea91c68a5f3a561e10f22fd085d1f7641643e19c831a94ec26bca SHA512 b8f8bd0e75e9ad0ba112313c576766b7cf72ef1e29ad0b0a2ce233f43b4196e311077be2134ff6e0fa0bb18375469ca6a969307fa7565a63ab60dec20400ee03 WHIRLPOOL fb1b7ef812c18b0732126a3a624cfba6de6abbdc419717c4d1dc403717e6200dfe85f3189d65547391679f846c6044a7407bde1339201596c67f61023d307255
+EBUILD cflow-1.4.ebuild 1062 SHA256 ee316e7bb9aafe7c2e8abf3d11840d495ab3b98a2accd34f70f74c40c6b22a96 SHA512 98d316fb2cef72bcf601a744604bda6bbc3bf28673d4879264993f79cb0c4468bee5ca65317d05924459f609ccb116e1745c10aa324608b7df02a2af4705de8d WHIRLPOOL d5362150eb1a81e86445f60c8f29e28f4e655dacda0bc35ca4a8757b07cb0f08d681758e00e69b5414a6560c8cf4e78e2460a45f4d80da2172d9a094bfc8e706
+MISC ChangeLog 2382 SHA256 c7f3ea4219fedf996588075252c4f790ed8596d889f07caf1e9143d2906b3926 SHA512 cec1111259b9053807f4b95805a7c1e1d29ce8dc8ff8b4f94f3d526cc704d6efa7e5ed280a842563cb427da6a9c2afa66a8eb2ca265da4c8ce5b2f0e3ee0312c WHIRLPOOL 87c3b663b00539398f1eedffca548a6a163795ff6208f17312ead5cba3663eaa5080fbc1cb5d7b0d55b05531ad2149e8f1b473c527da4fe3c39015701b3e76b1
+MISC ChangeLog-2015 1842 SHA256 cd1ab287de96bf73ed61cc50a4ce443cefd8fbb1c34370c8f6183c4e94eb0f6f SHA512 c23a529eb566dd2ad8eb5245bbef2f623a4fa8ff5e5818366725b4626f2cdd08fb835f386eb6bb4deb34c987bb959783a3fa5629fd2560b53740d2c9c4bd1247 WHIRLPOOL 849d15365d0c1610e5560856f633b69f032b586121fd2f5f6e0a0a2983d4b90b4559b49d1fb1b718d49233bab694d263f5b9f312618b5755a67339ddb3aa4ef4
+MISC metadata.xml 588 SHA256 fd85bb56c39672bfb63b8a369275bca6a41af4117f29222d12b77858bdb787ca SHA512 cc702fd85f1e907a364f9e79e4b183bd4ff2317750bf917acbef7d326abded9c1adbd66bd21a46df7b394e9d4990c8c056c7173a4fa758217519f3def7c789a2 WHIRLPOOL c23b9b087aa7b3f420775a53d4a2274de6e000804a88077846f2b913842c45637e2e0c36a72ba3efb43a2c7d9a596a4dc8be92bac27bd5aa05a6b34de0722d7a
diff --git a/dev-util/cflow/cflow-1.4.ebuild b/dev-util/cflow/cflow-1.4.ebuild
new file mode 100644
index 000000000000..d34006c749eb
--- /dev/null
+++ b/dev-util/cflow/cflow-1.4.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit elisp-common eutils
+
+DESCRIPTION="C function call hierarchy analyzer"
+HOMEPAGE="https://www.gnu.org/software/cflow/"
+SRC_URI="ftp://download.gnu.org.ua/pub/release/cflow/${P}.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="debug emacs nls"
+
+RDEPEND="emacs? ( virtual/emacs )
+ nls? ( virtual/libintl virtual/libiconv )"
+DEPEND="${RDEPEND}
+ nls? ( sys-devel/gettext )"
+
+SITEFILE="50${PN}-gentoo.el"
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-info-direntry.patch"
+}
+
+src_configure() {
+ econf \
+ $(use_enable nls) \
+ $(use_enable debug) \
+ EMACS=no
+}
+
+src_compile() {
+ default
+
+ if use emacs; then
+ elisp-compile elisp/cflow-mode.el
+ fi
+}
+
+src_install() {
+ default
+ doinfo doc/cflow.info
+
+ if use emacs; then
+ elisp-install ${PN} elisp/cflow-mode.{el,elc}
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}"
+ fi
+}
+
+pkg_postinst() {
+ use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}
diff --git a/dev-util/cflow/files/50cflow-gentoo.el b/dev-util/cflow/files/50cflow-gentoo.el
new file mode 100644
index 000000000000..56a2c8c5d775
--- /dev/null
+++ b/dev-util/cflow/files/50cflow-gentoo.el
@@ -0,0 +1,6 @@
+
+;;; cflow site-lisp configuration
+
+(add-to-list 'load-path "@SITELISP@")
+(autoload 'cflow-mode "cflow-mode" nil t)
+(add-to-list 'auto-mode-alist '("\\.cflow\\'" . cflow-mode))
diff --git a/dev-util/cflow/files/cflow-1.4-info-direntry.patch b/dev-util/cflow/files/cflow-1.4-info-direntry.patch
new file mode 100644
index 000000000000..ab7e4956425f
--- /dev/null
+++ b/dev-util/cflow/files/cflow-1.4-info-direntry.patch
@@ -0,0 +1,13 @@
+diff --git a/doc/cflow.texi b/doc/cflow.texi
+index dfb1fdf..5dc1d48 100644
+--- a/doc/cflow.texi
++++ b/doc/cflow.texi
+@@ -21,7 +21,7 @@
+ @end direntry
+ @dircategory Emacs
+ @direntry
+-* cflow mode: (cflow)cflow mode. Major mode for visiting cflow charts.
++* cflow mode: (cflow)Emacs. Major mode for visiting cflow charts.
+ @end direntry
+ @end ifinfo
+
diff --git a/dev-util/cflow/metadata.xml b/dev-util/cflow/metadata.xml
new file mode 100644
index 000000000000..8e343daf6159
--- /dev/null
+++ b/dev-util/cflow/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>dev-zero@gentoo.org</email>
+ </maintainer>
+ <longdescription lang="en">
+ GNU cflow analyzes a collection of C source files and prints a graph,
+ charting control flow within the program.
+
+ GNU cflow is able to produce both direct and inverted flowgraphs for C
+ sources. Optionally a cross-reference listing can be generated. Two
+ output formats are implemented: POSIX and GNU (extended).
+ </longdescription>
+</pkgmetadata>
diff --git a/dev-util/cgdb/Manifest b/dev-util/cgdb/Manifest
new file mode 100644
index 000000000000..93ebd8be9493
--- /dev/null
+++ b/dev-util/cgdb/Manifest
@@ -0,0 +1,12 @@
+DIST cgdb-0.6.6.tar.gz 954789 SHA256 cf9e9f60f6a4fcc93509dfeebbad86617fcd6788ff93e0392a30cc3b23415745 SHA512 9efd4e60f07f6e189fe3c91ef52c1b3c8d70623b11d08bac6d78c36e8f8f549071448212db973974b9604f84aafc73697d9d1305c3d9691fb5f19346d2e04e8f WHIRLPOOL 4e74e53cf760deaa9c5eabb0d5502ecfbffcf2c047bb157a986a8cc47b9c31f93017a4674a0917cf091d662d5d22f6e4b9717d6784e8dc76403102169aa8091d
+DIST cgdb-0.6.7.tar.gz 674132 SHA256 074ed31d1e827a04574add8c27d391447d75313e85ff938005d8ec939499fda9 SHA512 0a9d1cc3fb00c3cdaeb060d20d3312dd738b617ff1b188db33a074e2790f9721ca58e924ecc9929b84832c3ca22a334d7a66294439341a9b6868eef1baafca3e WHIRLPOOL 77eab90e1e71efb6dbcbad61b200cc75a7674cc76dbe2779e2e52b395a2d7e67f47958a293b7b1431dc39cfa5272dea7026fc3e459b2d615ef509988b3a06720
+DIST cgdb-0.6.8.tar.gz 435115 SHA256 7019522c31c67e6e54271d0129b5fa5c20d83e1c408d385347c89c52acc289d6 SHA512 ef3d94820bb5a37a8d7fbac48c8d144e0ac73c4f5a9d25bea33f2c4390080bb2dbdc5e7e21a5ef8a4980515cc48d80f140f7cf1f90eebac3f8bf1cc6168585ea WHIRLPOOL c685d5cba0a42c56b75ee5622b2fbb5faed9c28917182b0dde5a9f756812a70efa601d5042bcfce54723273aaf5f44e6517bfeba1874c754eafedbb72a29681b
+DIST cgdb-0.7.0.tar.gz 319980 SHA256 053b6f9a186b05590c992397a129c5b5cd1f48197156c26c3f9609e39b5a10fb SHA512 83aeb919e96cd0981d8fe5cdd257df3e8d8bfbceea720ea66c1773b28c9f0ecb0e303e0585206c55242bc4438d505e328d43b4991c6ddc4e4202e048558c30d9 WHIRLPOOL fa4d7311d73f5f5f9f0c01e6e1353c8bad3e191474c82b73f4ff3c8a0dfa70828224c4f74eadbc358c38df5158639671598ae87772e77bae592202dc6fb54eb4
+EBUILD cgdb-0.6.6.ebuild 446 SHA256 76dbdf3a3b88b7b150e45ccf29376d28a1f4b089a1a2a72a27191862abf7eea0 SHA512 8b42cf87241b9ea21930d581e23792d8f8fdbfded7b32e00d2c49d52fdc48c9cb0fa4e30638467c66b3baffaaa4c40e221f1b5cfb5a6bba0e46b7ba70285cb2c WHIRLPOOL 1d7950823cfdeef1a5b40a18cd1cb9cd4177d151f3bab95a0d99362035b7dcdec38909ada7bea25e0acfb8463f6392c66ae8ae6093fa7e2a40e1b897f666b796
+EBUILD cgdb-0.6.7.ebuild 448 SHA256 701fff812a79b54485cf42d0702b64016633fdc9b0a2e4c04d5e66c261dae3f7 SHA512 00ad998f1b28cf7a99e78841943a973ee5f5a3e2888c4c749e68f36d082f20a2d518dfad0ac4dc493dc77d1549fe97c4f45fbd3782fe5e4b776ebf076b17ac8e WHIRLPOOL 8fe7f3526642b21490d927c065b19b60d06b664e2ef1bcc3947f5157c49147e5ce7427cf6c491b503c3bbfb2b62b043596806d2dfe39fd8a85fe166ac733d81c
+EBUILD cgdb-0.6.8.ebuild 878 SHA256 dcc0f41b8c633413b361496a93c1238aaab2b26270f616254dda5abd8ba67502 SHA512 ef2ec446e1a58ebdc3e66d2097af59d8afbc573fdb8ca98da9a0bab71d6ad755ab0832f1d1028bc4d3148f68326a4d054242d7293ce73f54f128d80bb0f955ed WHIRLPOOL 487ea1181a4677386106002d5e79bd4cc68d8af2f4e8fa69049cbebb01d5110e903a1d663ec1167633159afd4c19463338ea40bd76bb11c4a76ea2a4d240e98c
+EBUILD cgdb-0.7.0.ebuild 881 SHA256 f46a303d35f06dfefac1df1d7529310cb0318a22dcdf22a2f4a3335b9d4f1892 SHA512 4fbb20d6d8e82979b5b81763dcf635f24a589ea12a1c00ecde694901a5747a90dc5a7ccb186f20329aa7d717aeb6d7d01469921b5a292c0446bd3d1d2f00cf9a WHIRLPOOL e2a68f28a1ba1d2c89feaacef96e5d3abb427c702021801f0887c66fc64fd2cccf8ab21b2ef4dd2916a6641694259c09a48d024756b1be83bfe6d09587646634
+EBUILD cgdb-9999.ebuild 881 SHA256 6db56274a4352096f9214b632130e92c5387d8cb9911a57431085ef55c802a1a SHA512 ee777392e48feed140699b68c956da91dd38fca82d03facc6c45061ca1f1b11432af9667da84462dbf09c03cf40abcc9933611458d07e6333dc562958b68b106 WHIRLPOOL 8ecd0829dd384e1d8701c34c0f9ff30cdc9f48a7925903c4d97f9e509ea857fb5c13e5ddd7987fc92d2e9755444e7082b7f299eebd1f492aa093f48369bb40ca
+MISC ChangeLog 4584 SHA256 d50e98d19525dfa3fba256390f13a8aa1e210b4f5e73127c22e73bc6e2f97ddc SHA512 c7c9793d4547a4c632ba4515b27ea28b6ff7f1ce2770097a0750523c8ded47437e41a8267e16ebaf3379f9d14deb61a6edc6135bfa605b0c933d92459c36f644 WHIRLPOOL 1bd5ae797d3f55ac130864cb71b206e7a31d1458b17ce7426d9e2a52ae6c12497412f52dbb0b3dc7cb1c01a6806cc47e9ff2aab889c72e8510475969f16eeea8
+MISC ChangeLog-2015 6653 SHA256 827d248a2e249cfd23330ad0717f5084c3a02d4fa0df304e316e1ea5b7029cb2 SHA512 1bece62705a67208d841a04c0d8fdd69e32ad4ee47372e6f90083516ebbf177544ccdf840e2dfc30a39b7e004bc49a66e58a26c2930d2d1ca6477b0c7aebd32d WHIRLPOOL 8dfa0f7a20e695c5c7cc6be2884133388aba235768f0f510ea4ebe04e98c1b40cf0d92e59c6219857fe30635bf7081eb57c06e094dc289b4135b32ab80b65908
+MISC metadata.xml 490 SHA256 fc8053622a05a4b6e5237d82f4b7719a337f037c3830a17f9850c762017f365f SHA512 77ac0f28241716628619178ae93599276f8fd6051b7f00c5ef7fdfcd0a651cdd465dfde6de052156c8407d6a162a2a21199260001e06dd80e6eec8200bc11097 WHIRLPOOL 40e4be65fa581b10596b827f05d2b6ef574d095deedb167349be460ecd6d9862e7465ee50ecbe05048ccd69f599247cac90161691fd6860b1cc4b0cec7ac64ac
diff --git a/dev-util/cgdb/cgdb-0.6.6.ebuild b/dev-util/cgdb/cgdb-0.6.6.ebuild
new file mode 100644
index 000000000000..5778250bac4c
--- /dev/null
+++ b/dev-util/cgdb/cgdb-0.6.6.ebuild
@@ -0,0 +1,18 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+DESCRIPTION="A curses front-end for GDB, the GNU debugger"
+HOMEPAGE="http://cgdb.sourceforge.net/"
+SRC_URI="mirror://sourceforge/cgdb/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~arm ppc ppc64 x86 ~x86-fbsd ~amd64-linux"
+IUSE=""
+
+DEPEND="sys-libs/ncurses
+ >=sys-libs/readline-5.1-r2"
+RDEPEND="${DEPEND}
+ sys-devel/gdb"
diff --git a/dev-util/cgdb/cgdb-0.6.7.ebuild b/dev-util/cgdb/cgdb-0.6.7.ebuild
new file mode 100644
index 000000000000..fd2095ed0c6f
--- /dev/null
+++ b/dev-util/cgdb/cgdb-0.6.7.ebuild
@@ -0,0 +1,18 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+
+DESCRIPTION="A curses front-end for GDB, the GNU debugger"
+HOMEPAGE="http://cgdb.github.io/"
+SRC_URI="http://cgdb.me/files/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~arm ppc ppc64 x86 ~x86-fbsd ~amd64-linux ~x86-linux"
+IUSE=""
+
+DEPEND="sys-libs/ncurses
+ >=sys-libs/readline-5.1-r2"
+RDEPEND="${DEPEND}
+ sys-devel/gdb"
diff --git a/dev-util/cgdb/cgdb-0.6.8.ebuild b/dev-util/cgdb/cgdb-0.6.8.ebuild
new file mode 100644
index 000000000000..a34ddbb21ba7
--- /dev/null
+++ b/dev-util/cgdb/cgdb-0.6.8.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+if [[ ${PV} = *9999* ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="
+ https://github.com/cgdb/cgdb.git
+ git@github.com:cgdb/cgdb.git"
+else
+ SRC_URI="https://github.com/cgdb/cgdb/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="amd64 ~arm ppc ppc64 x86 ~x86-fbsd ~amd64-linux ~x86-linux"
+fi
+inherit multilib-minimal
+
+DESCRIPTION="A curses front-end for GDB, the GNU debugger"
+HOMEPAGE="http://cgdb.github.io/"
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="test"
+
+COMMONDEPEND="
+ sys-libs/ncurses:0=
+ sys-libs/readline:0="
+
+DEPEND="${COMMONDEPEND}
+ test? ( dev-util/dejagnu )"
+
+RDEPEND="
+ ${COMMONDEPEND}
+ sys-devel/gdb"
+
+DOCS=( AUTHORS ChangeLog INSTALL NEWS README.md TODO )
+
+src_prepare() {
+ default
+ ./autogen.sh || die
+}
+
+multilib_src_configure() {
+ ECONF_SOURCE="${S}" econf
+}
diff --git a/dev-util/cgdb/cgdb-0.7.0.ebuild b/dev-util/cgdb/cgdb-0.7.0.ebuild
new file mode 100644
index 000000000000..f1e40470f225
--- /dev/null
+++ b/dev-util/cgdb/cgdb-0.7.0.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+if [[ ${PV} = *9999* ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="
+ https://github.com/cgdb/cgdb.git
+ git@github.com:cgdb/cgdb.git"
+else
+ SRC_URI="https://github.com/cgdb/cgdb/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
+fi
+inherit multilib-minimal
+
+DESCRIPTION="A curses front-end for GDB, the GNU debugger"
+HOMEPAGE="http://cgdb.github.io/"
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="test"
+
+COMMONDEPEND="
+ sys-libs/ncurses:0=
+ sys-libs/readline:0="
+
+DEPEND="${COMMONDEPEND}
+ test? ( dev-util/dejagnu )"
+
+RDEPEND="
+ ${COMMONDEPEND}
+ sys-devel/gdb"
+
+DOCS=( AUTHORS ChangeLog FAQ INSTALL NEWS README.md )
+
+src_prepare() {
+ default
+ ./autogen.sh || die
+}
+
+multilib_src_configure() {
+ ECONF_SOURCE="${S}" econf
+}
diff --git a/dev-util/cgdb/cgdb-9999.ebuild b/dev-util/cgdb/cgdb-9999.ebuild
new file mode 100644
index 000000000000..5a5dd25473fd
--- /dev/null
+++ b/dev-util/cgdb/cgdb-9999.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+if [[ ${PV} = *9999* ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="
+ https://github.com/cgdb/cgdb.git
+ git@github.com:cgdb/cgdb.git"
+else
+ SRC_URI="https://github.com/cgdb/cgdb/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
+fi
+inherit multilib-minimal
+
+DESCRIPTION="A curses front-end for GDB, the GNU debugger"
+HOMEPAGE="http://cgdb.github.io/"
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="test"
+
+COMMONDEPEND="
+ sys-libs/ncurses:0=
+ sys-libs/readline:0="
+
+DEPEND="${COMMONDEPEND}
+ test? ( dev-util/dejagnu )"
+
+RDEPEND="
+ ${COMMONDEPEND}
+ sys-devel/gdb"
+
+DOCS=( AUTHORS ChangeLog INSTALL NEWS README.md FAQ )
+
+src_prepare() {
+ default
+ ./autogen.sh || die
+}
+
+multilib_src_configure() {
+ ECONF_SOURCE="${S}" econf
+}
diff --git a/dev-util/cgdb/metadata.xml b/dev-util/cgdb/metadata.xml
new file mode 100644
index 000000000000..bf712b486f42
--- /dev/null
+++ b/dev-util/cgdb/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>nado@troglodyte.be</email>
+ <name>Corentin Pazdera</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">cgdb/cgdb</remote-id>
+ <remote-id type="sourceforge">cgdb</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/cgvg/Manifest b/dev-util/cgvg/Manifest
new file mode 100644
index 000000000000..6633651cff36
--- /dev/null
+++ b/dev-util/cgvg/Manifest
@@ -0,0 +1,5 @@
+DIST cgvg-1.6.2.tar.gz 41790 SHA256 5f1871bb1b2176247aaa9cdbecd915d84c9829ef0f2d90d6c23a9c905ee5550f SHA512 b2b4ec973515a4282c7b5d4ac1009682ac64f632509717fda88c3fa91ee59c21c950b085b86c551d8f2fd75539a319eec0c8837655ad025042cbf6e101c92173 WHIRLPOOL 3ba6a0ac42b35e58df8d33019af0655986e49df0e488277f775ec69623be835fde50a6bee398d4c0deef96a8b3528a4736ce73c6ffc37929c9252329fa1dbf10
+EBUILD cgvg-1.6.2.ebuild 526 SHA256 345f76d400e2e39d097a97553208e8c4bf3033bfff3391cef8fe146191a39cfe SHA512 d1e7fb64a8c6b542b32c9eafb1a6405fb852b0efbfd51fca7f6e82a3b79890dcf8c5289af539f70b4033b486b67813a2fb3f75a16d96d2b9d6a78db1b010cff5 WHIRLPOOL 09b7d8d1ce6155662c4c0e840e9b0af3d454c08ba10757ec3c472b91fb42e04953733a9278f134aa418d32606cabd3e26f08f2b2edfb04404ee48d413b09763e
+MISC ChangeLog 2290 SHA256 269de8d6bfdae4787c6d1563c82fdabcd8ad00dbd29f38f618ca5565205996fb SHA512 1d5d34d20c0798217ed805b383c936c78853eff0cb3a8cdbbf7fd43272a7036fe2d9498253ccbdd55f3cc32663f25014f26eea3bd87c0193b2195e343cc2e94c WHIRLPOOL fd226e7fc9b13a33ccfc3f8dbffc6b3177e5f504c99a29012f99ea7f3406c9377310a94ee8dbc3fd4b65068a4e9957a754cb9478c29da5b47505e19e5558e3d9
+MISC ChangeLog-2015 507 SHA256 9b741b717e77d428d8742f2657f5a87ea191face1a2b3bc967e2da7c46bae6c7 SHA512 8555e7c36a7bff41afa3f825fbd22bb5e4d7bdfc3b5eda1ebe0c2371e49637cb460b6b10165019153fce47b83e5ec30b2274ebb9f67a03b141c0bef126de4f17 WHIRLPOOL b4adc83d74cea6317cb4ed2e5e7c830a9bc4bac2ffebbddccec2cb51bca64031c37cdac8bbe55201ec56937da96a554f8b6b5463e0d042e9ac2dbb7dcda4a17f
+MISC metadata.xml 139 SHA256 5cdc1888ebc8807b9a37b1d33429c61cabe7415a4f240e21a4c2ff8eca7a34ed SHA512 8be912ace7468a4396eb1da00a9785030a8ce35da4357a01591876a1056fd45e44da65de2af3e1eb0506ce6551714962c40c3ae5a3aefa2ad231de35af2519be WHIRLPOOL 620431014dd4fb752c3d46d11904ecb2c6d4525f5b4e30f4f778a3b74d3f7187ae4ccd856ebd7eabb48ce261b21849c732928fe647edce024a3fdc082d8f8630
diff --git a/dev-util/cgvg/cgvg-1.6.2.ebuild b/dev-util/cgvg/cgvg-1.6.2.ebuild
new file mode 100644
index 000000000000..412a794f183a
--- /dev/null
+++ b/dev-util/cgvg/cgvg-1.6.2.ebuild
@@ -0,0 +1,19 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+DESCRIPTION="A tiny version of cscope that is much more useful in certian instances"
+HOMEPAGE="http://uzix.org/cgvg.html"
+SRC_URI="http://uzix.org/cgvg/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
+IUSE=""
+
+RDEPEND="dev-lang/perl"
+DEPEND="${RDEPEND}"
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+ dodoc AUTHORS NEWS README TODO
+}
diff --git a/dev-util/cgvg/metadata.xml b/dev-util/cgvg/metadata.xml
new file mode 100644
index 000000000000..097975e3adc2
--- /dev/null
+++ b/dev-util/cgvg/metadata.xml
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+</pkgmetadata>
diff --git a/dev-util/checkbashisms/Manifest b/dev-util/checkbashisms/Manifest
new file mode 100644
index 000000000000..319a5f103dfb
--- /dev/null
+++ b/dev-util/checkbashisms/Manifest
@@ -0,0 +1,10 @@
+AUX checkbashisms-2.15.9-command-vV.patch 1269 SHA256 bf03b1ea1966891657086566b1d136b34dc5faf49c5473c8818246dda52decf1 SHA512 7b7966b2c5fc672b0a83f7949076af536a56e910853374b2ee876ad5032f847bd87c7d10c7836d9699e2a4412709b02f5769685acd392e94704549de639ea995 WHIRLPOOL 3fd2df99d1d54483ac38042bee29eb8e752e00f8560a97c0af175c712afb1b07f08d8c4e88f09b2f7f5304f0999ecd75714d79259f40833ca0b71bd49979c165
+DIST devscripts_2.17.10.tar.xz 706396 SHA256 fc28882f4e6f6a0a74119b811df308dac758e1a097f947398ae895e574043aff SHA512 eb2bcd29237696e0e768d2513fa895891cb2b368c41c6d611ad7db815400b22317324b8326d4e71b1ab511a8a7abafdf0a2f2641da955034ae58b3d4aad3fc77 WHIRLPOOL 4494b2926f8f328113aa73c18fc3550721a7ac69a19cc986ea0dc69e9918c93e55eb387a8d3427126ac6f390973729c5f764dde8a632599d0e86f5afd1449cea
+DIST devscripts_2.17.8.tar.xz 696424 SHA256 7e39e296891d2d158b717c0c834cc0c5ab560e5c7d88910e42bf59cda10fbeea SHA512 1495a754346ec3903cb91d9d937b74a1d6a928a84028d19016b7a2d0df5c0f665aba7c777952ae57f5f8b421b696cf631c7a139ea68a98f31030c83b6e67d349 WHIRLPOOL d146b5e3317278b21c49c34af29877e0bb8f463c6bca9ec037953d0da9b53c8aea863d27691fe95667ebedc2d7b1d209d2593b51083537f9c0d8956a34b45855
+DIST devscripts_2.17.9.tar.xz 696500 SHA256 0ef164a9b8e774e8aef7a532302e7ce60ba10a72e56da485865222e68033b73b SHA512 00bc2fea2aa2f5806f6ecedee96c09c0ff31d99283e7b242f85c04a63310ada692df2bbef0cfde73dbcf3ac455026a5262b298fb2348528f2a9d7ce7916d97dd WHIRLPOOL 867d946c6d598ccb67e2e19a872c033d9c22b7b270cf2eadbc81da0d1d4a42d444cc705bff69b6b2e35006d72f6131ee101e34ced34faa8e89da7f950aca5c81
+EBUILD checkbashisms-2.17.10.ebuild 895 SHA256 cf558792f3362633fcb0e51241bdb0a91748ef7a1894b4f2aa864c82749701e9 SHA512 6ae231efbf1bae391b85ca23bf231c66205bd4349014ececb8d22691882d6dc6593787745a79eb686238df10f4921daa41b65b7fc3438cfbd975f0a39ee0f986 WHIRLPOOL d159ad159c7e040ccb3ac01a4e4b02a691bb6de415b6adb2fd6b55dc8f147809ecc1fc5b9a936200dd1c2bf4ec51e8775ffca14f6daee743af59c6bf777c52fa
+EBUILD checkbashisms-2.17.8.ebuild 927 SHA256 5881e71fd78de2e1203332f156cbfe70d3a5fb77728316ed5928c8837809bdaa SHA512 95bf44f663113e19b4f7643cc60c744d736cc02e5de900bdd039682fb9a3595f83595dc3ded1951b148b7387e62cd1377a5fcdacefe2b091032a40820133dcff WHIRLPOOL cf9e63b18391ea296d159b3d518c00b91e8a77859ca219f3bfa71efce5d4db260ea585a550d0dd39afe57d06db43412eb23c5f5263bf73b8e04c4e1100ec024f
+EBUILD checkbashisms-2.17.9.ebuild 895 SHA256 cf558792f3362633fcb0e51241bdb0a91748ef7a1894b4f2aa864c82749701e9 SHA512 6ae231efbf1bae391b85ca23bf231c66205bd4349014ececb8d22691882d6dc6593787745a79eb686238df10f4921daa41b65b7fc3438cfbd975f0a39ee0f986 WHIRLPOOL d159ad159c7e040ccb3ac01a4e4b02a691bb6de415b6adb2fd6b55dc8f147809ecc1fc5b9a936200dd1c2bf4ec51e8775ffca14f6daee743af59c6bf777c52fa
+MISC ChangeLog 6794 SHA256 bf844e52ac18703bbee587bd93ae53752e0b6d6929e57bcdecfa11c355bd0808 SHA512 ce65d2a8180155213e7524e1cf118e7488e1c6883f98444d8475327eaf0226a71e2889af26f56e89143260468cc9532a30d6936958bdeb373223f2e306c26261 WHIRLPOOL 01399247c2427a9305079d12ebf7301f3848136afc18b13697e43ab84cc727642f030862244152c712c96e96428330378de8c8f8ffa709a6476cc01321919fdd
+MISC ChangeLog-2015 1633 SHA256 a8c1666a9877877027323f85341b0773852a1e9fc1db551c82700d37f2fa3739 SHA512 877244a4732fce97ba755abd2fd3cd06c1df0fbf8bea414912e621b4f14b47762423cb15ff34bc94c59bddb6c8e56e0372adeda2f94cd0b399e31825c8bdd2ac WHIRLPOOL c72e7b6538342b0b14b86a9fb555e4dfc36b4add6fafee77c6033522b2865326a6f06bc42b35c1b06aef06d1aefb0235a65656212edc16ea11ed7150158d9312
+MISC metadata.xml 433 SHA256 1d1499152658a92a60b866f9f8c8e83ca86a7e98b522b16d5db056218bf7b963 SHA512 945c3b95a61d4219e98ce5be3aed255cb148867409aca572714e8679bf623ee0c3396966cd80d783ace60bae7e6c01b85fad6c7f7ac9056422d732ed07f54716 WHIRLPOOL 14ea58cd4fbaf1a2bcab98e5282e371623285aa495dd0a289eae44805edb55ddd6625064951c6a21bcb2f842c55cd25cbb7e1a78a6a1f4a2f70068219542477d
diff --git a/dev-util/checkbashisms/checkbashisms-2.17.10.ebuild b/dev-util/checkbashisms/checkbashisms-2.17.10.ebuild
new file mode 100644
index 000000000000..8524418c7c9a
--- /dev/null
+++ b/dev-util/checkbashisms/checkbashisms-2.17.10.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+MY_PN="devscripts"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Perl script to check for commonly used bash features not defined by POSIX"
+HOMEPAGE="https://packages.debian.org/devscripts https://anonscm.debian.org/cgit/collab-maint/devscripts.git"
+SRC_URI="mirror://debian/pool/main/d/${MY_PN}/${MY_P/-/_}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+# Requires python packages to check tools we don't need anyway
+RESTRICT="test"
+
+RDEPEND="dev-lang/perl
+ virtual/perl-Getopt-Long
+ !<dev-util/rpmdevtools-8.3-r1"
+
+S="${WORKDIR}/${MY_P}/scripts"
+
+src_prepare() {
+ default
+
+ eapply -p2 "${FILESDIR}"/${PN}-2.15.9-command-vV.patch
+
+ sed "s@###VERSION###@${PV}@" -i checkbashisms.pl || die
+}
+
+src_compile() { :; }
+
+src_install() {
+ newbin ${PN}.pl ${PN}
+ doman ${PN}.1
+}
diff --git a/dev-util/checkbashisms/checkbashisms-2.17.8.ebuild b/dev-util/checkbashisms/checkbashisms-2.17.8.ebuild
new file mode 100644
index 000000000000..ac906202e791
--- /dev/null
+++ b/dev-util/checkbashisms/checkbashisms-2.17.8.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+MY_PN="devscripts"
+MY_P="${MY_PN}-${PV}"
+
+inherit eutils
+
+DESCRIPTION="Perl script to check for commonly used bash features not defined by POSIX"
+HOMEPAGE="https://packages.debian.org/devscripts https://anonscm.debian.org/cgit/collab-maint/devscripts.git"
+SRC_URI="mirror://debian/pool/main/d/${MY_PN}/${MY_P/-/_}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+# Requires python packages to check tools we don't need anyway
+RESTRICT="test"
+
+RDEPEND="dev-lang/perl
+ virtual/perl-Getopt-Long
+ !<dev-util/rpmdevtools-8.3-r1"
+
+S="${WORKDIR}/${MY_P}/scripts"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-2.15.9-command-vV.patch
+)
+
+src_prepare() {
+ epatch "${PATCHES[@]}"
+
+ sed "s@###VERSION###@${PV}@" -i checkbashisms.pl || die
+}
+
+src_compile() { :; }
+
+src_install() {
+ newbin ${PN}.pl ${PN}
+ doman ${PN}.1
+}
diff --git a/dev-util/checkbashisms/checkbashisms-2.17.9.ebuild b/dev-util/checkbashisms/checkbashisms-2.17.9.ebuild
new file mode 100644
index 000000000000..8524418c7c9a
--- /dev/null
+++ b/dev-util/checkbashisms/checkbashisms-2.17.9.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+MY_PN="devscripts"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Perl script to check for commonly used bash features not defined by POSIX"
+HOMEPAGE="https://packages.debian.org/devscripts https://anonscm.debian.org/cgit/collab-maint/devscripts.git"
+SRC_URI="mirror://debian/pool/main/d/${MY_PN}/${MY_P/-/_}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+# Requires python packages to check tools we don't need anyway
+RESTRICT="test"
+
+RDEPEND="dev-lang/perl
+ virtual/perl-Getopt-Long
+ !<dev-util/rpmdevtools-8.3-r1"
+
+S="${WORKDIR}/${MY_P}/scripts"
+
+src_prepare() {
+ default
+
+ eapply -p2 "${FILESDIR}"/${PN}-2.15.9-command-vV.patch
+
+ sed "s@###VERSION###@${PV}@" -i checkbashisms.pl || die
+}
+
+src_compile() { :; }
+
+src_install() {
+ newbin ${PN}.pl ${PN}
+ doman ${PN}.1
+}
diff --git a/dev-util/checkbashisms/files/checkbashisms-2.15.9-command-vV.patch b/dev-util/checkbashisms/files/checkbashisms-2.15.9-command-vV.patch
new file mode 100644
index 000000000000..662ccdfd2bea
--- /dev/null
+++ b/dev-util/checkbashisms/files/checkbashisms-2.15.9-command-vV.patch
@@ -0,0 +1,30 @@
+https://bugs.debian.org/733511
+
+From 50dac50bdfa7ab482bf2277cc1a620a62629c80c Mon Sep 17 00:00:00 2001
+From: Mike Frysinger <vapier@gentoo.org>
+Date: Tue, 10 Nov 2015 19:39:19 -0500
+Subject: [PATCH] checkbashisms: allow `command` to use -v/-V
+
+POSIX permits the -v/-V options:
+http://pubs.opengroup.org/onlinepubs/9699919799/utilities/command.html
+command [-p][-v|-V] command_name
+---
+ scripts/checkbashisms.pl | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/scripts/checkbashisms.pl b/scripts/checkbashisms.pl
+index 045328c..fe64a6b 100755
+--- a/scripts/checkbashisms.pl
++++ b/scripts/checkbashisms.pl
+@@ -644,7 +644,7 @@ sub init_hashes {
+ qr';;?&' => q<;;& and ;& special case operators>,
+ $LEADIN . qr'jobs\s' => q<jobs>,
+ # $LEADIN . qr'jobs\s+-[^lp]\s' => q<'jobs' with option other than -l or -p>,
+- $LEADIN . qr'command\s+-[^p]\s' => q<'command' with option other than -p>,
++ $LEADIN . qr'command\s+-[^pvV]\s' => q<'command' with option other than -p/-v/-V>,
+ $LEADIN . qr'setvar\s' => q<setvar 'foo' 'bar' should be eval 'foo="'"$bar"'"'>,
+ $LEADIN . qr'trap\s+["\']?.*["\']?\s+.*(?:ERR|DEBUG|RETURN)' => q<trap with ERR|DEBUG|RETURN>,
+ $LEADIN . qr'(?:exit|return)\s+-\d' => q<exit|return with negative status code>,
+--
+2.6.2
+
diff --git a/dev-util/checkbashisms/metadata.xml b/dev-util/checkbashisms/metadata.xml
new file mode 100644
index 000000000000..8491585905ca
--- /dev/null
+++ b/dev-util/checkbashisms/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>robbat2@gentoo.org</email>
+ </maintainer>
+ <maintainer type="project">
+ <email>base-system@gentoo.org</email>
+ <name>Gentoo Base System</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">checkbaskisms</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/checkstyle/Manifest b/dev-util/checkstyle/Manifest
new file mode 100644
index 000000000000..478fdc86333e
--- /dev/null
+++ b/dev-util/checkstyle/Manifest
@@ -0,0 +1,5 @@
+DIST checkstyle-7.2.tar.gz 3359817 SHA256 8f5c262a3f2e1194b60d6b837b8eefbe6fe63fba57be4acb20f0709919870523 SHA512 ee99d96d99a3f75097297cfda46e3647e57213bcb8b78098251a21c3fe0b4bb774393848d444f721d4bea83173581c89377a9d250157d6e6a225239da81d955f WHIRLPOOL 1da3e380bd3842ee6fda3210225e62f5e179d0232eabffaff0ba9347263f564db08750b84e6736184b4f56cc63b30aa8dba52d6e5412f5bdcd0845f1f770c5f5
+EBUILD checkstyle-7.2.ebuild 1600 SHA256 cf0c1adddd6d8c6b161000836741e178740e6557e2e8d6147ad593b3e1f3cc70 SHA512 07c364b86aa8c6d4f0b6b228c777a8d1d62b3adb684b1dae0d78741d6729161493f1700c853bbc7e4546e31a1ec4bc97c0731a5d92b8b3258e7085df4ee2b8de WHIRLPOOL 441a6764ad33eff996f75946a31a40c135afe071b98e255a919330953b4d56bf118a7273c58bf2825646b5def3f3f1472cb773e1e6d48a38bafb362158bfc6ce
+MISC ChangeLog 4472 SHA256 e3e15d61bdd800fcb136ac2150363339e1421f9fbd18a02461ef6badfa19b50e SHA512 006759e9a1a980125c241e890ef8ed8168bb8c5bb5f963087584866ac1e021e1b768d805519a8d4c8636296d8c11137b822f996ce922781416173c80ee35ae68 WHIRLPOOL b5511c6c4618223ec2c5a480d1c77617a04c0694feb87a564f5a08b1ce9ba7ed04d1112c4ecc89840fc449905b76020ebd42940c59bf6da4d57f57fe9a21aba9
+MISC ChangeLog-2015 6456 SHA256 27da92228cd6bed4cdae179cc2f364d2b6bee3d8a20bd286c0ab131d2c43b5c7 SHA512 f8dc3c4fec4fffca9c60c9d72e68009ca95d07f8e38cac79e1972e95d2a66bb5f2b4a69e51d18b2fdcd3725f873e39348d6b4f5df464a252f84c0b2566d5f381 WHIRLPOOL 411df4507dfd92b4d52df2832b418200ce491d67d78684ed1a939aad2855d52087a6365ba88060409e88bf38801074420858257e50ddda54486c3f3be7799512
+MISC metadata.xml 377 SHA256 5484db9eddb2c2a9818244eb4e5cbcbde7dbb6aaa98529accc420ce9dac28924 SHA512 1a335de522055af5d8ec2ecd498528a66802b1fbb34e6b4be5e333c77b4b096ec38d0b7a8e5af7162315b4e8c3a99242c9246255fdd153566e258b808d50492a WHIRLPOOL b8e1e20236941ee49c4e7c3a6556515d26ab1bb04ba947b46cc94220e116cc52f8ab3f7152495ad35b7e3bbe190e6c0047464617dc6705b71acf4728fd4ad55e
diff --git a/dev-util/checkstyle/checkstyle-7.2.ebuild b/dev-util/checkstyle/checkstyle-7.2.ebuild
new file mode 100644
index 000000000000..0036872cb55c
--- /dev/null
+++ b/dev-util/checkstyle/checkstyle-7.2.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+JAVA_PKG_IUSE="doc source"
+
+inherit java-pkg-2 java-pkg-simple
+
+DESCRIPTION="Development tool to help write Java code that adheres to a coding standard"
+HOMEPAGE="https://github.com/checkstyle/checkstyle"
+SRC_URI="https://github.com/${PN}/${PN}/archive/${P}.tar.gz"
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos"
+
+CP_DEPEND="
+ dev-java/ant-core:0
+ >=dev-java/antlr-2.7.7-r7:0
+ dev-java/antlr:4
+ dev-java/commons-beanutils:1.7
+ >=dev-java/commons-cli-1.3:1
+ dev-java/commons-logging:0
+ dev-java/guava:20
+"
+
+RDEPEND="${CP_DEPEND}
+ >=virtual/jre-1.8"
+
+DEPEND="${CP_DEPEND}
+ >=virtual/jdk-1.8"
+
+S="${WORKDIR}/${PN}-${P}"
+JAVA_SRC_DIR="${S}/src/main/java"
+
+src_configure() {
+ JAVA_GENTOO_CLASSPATH_EXTRA=$(java-config --tools)
+}
+
+src_compile() {
+ local PKG
+
+ PKG=com/puppycrawl/tools/checkstyle/grammars
+ cd "${S}"/src/main/resources/${PKG} || die
+ antlr -o "${JAVA_SRC_DIR}"/${PKG} java.g || die
+
+ PKG+=/javadoc
+ cd "${S}"/src/main/resources/${PKG} || die
+ antlr4 -o "${JAVA_SRC_DIR}"/${PKG} -package ${PKG//\//.} JavadocLexer.g4 || die
+ antlr4 -o "${JAVA_SRC_DIR}"/${PKG} -package ${PKG//\//.} JavadocParser.g4 || die
+
+ cd "${S}" || die
+ java-pkg-simple_src_compile
+ java-pkg_addres ${PN}.jar src/main/resources
+}
+
+src_install() {
+ java-pkg-simple_src_install
+ dodoc README.md
+
+ java-pkg_dolauncher ${PN} \
+ --main com.puppycrawl.tools.checkstyle.Main
+
+ java-pkg_dolauncher ${PN}-gui \
+ --main com.puppycrawl.tools.checkstyle.gui.Main
+}
diff --git a/dev-util/checkstyle/metadata.xml b/dev-util/checkstyle/metadata.xml
new file mode 100644
index 000000000000..6c0addb7ff01
--- /dev/null
+++ b/dev-util/checkstyle/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="project">
+ <email>java@gentoo.org</email>
+ <name>Java</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">checkstyle</remote-id>
+ <remote-id type="github">checkstyle/checkstyle</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/clair/Manifest b/dev-util/clair/Manifest
new file mode 100644
index 000000000000..534a87870741
--- /dev/null
+++ b/dev-util/clair/Manifest
@@ -0,0 +1,5 @@
+AUX clair.confd 75 SHA256 8df6e4417519fa0fb5b3087223a880aba0c09bb885a79d0cf26e450bb624045d SHA512 9ff72a41da4600f7c266a7c763520c947e41c1c06dc93f9c8fcdc3f92d5b10ac4a2483122fedc4cf3bfc5de0a48f61366b0d2b72bcc348b736fa958b7065cc87 WHIRLPOOL 0bbc4b98eca001618921e6d0991689f60a829305d1d7d4df91e95537e4bc39784ef9406e0279105c76891318e1a19f196cc8a156559057534bbdf08b844ca0f1
+AUX clair.initd 593 SHA256 82c2d9c33189dbb8f489bff25ad01d4e72059f4dbe567e82a7b76fed5728014c SHA512 827bf28ba4ad7a40f4eb916f315978da6d3fab52a8ac9b3316383d67ed90006f0b13e7cec3a8843d73e5d23ef27bcd53a9a02ec70c1795725cb98e5d1de788bb WHIRLPOOL c6646503a87b20747246533591fe0096e62850f0ef109c281c25c11c78c8a31b90037cf7a2ed345b38484cb347e95052233f3737293e77a4a719ab29c26983a1
+DIST clair-2.0.1.tar.gz 5194465 SHA256 dd4d608a763cbde2d8fba98aadeadee4c8baa900467b5e8b10f94629439540f7 SHA512 03293829426d81157860effd893b72164679b4ec40c19294e321d489ced67dfea72415cdd9b1005ae590367c68f746664a76f63a29c7d714b22917f2323c4937 WHIRLPOOL f728ff4028ef54dd4351e00ed6ed58230c96476c5bfce74ded867d879ea85f88570476d66fd8d35ca02c4182f7c33e0133d077cb657cbe34f1684f97ee475614
+EBUILD clair-2.0.1.ebuild 1064 SHA256 ea63f7d047a7f2911ad59defaa8ab4999b3c6fb1f1acabc0947062db83e72165 SHA512 539d973c09c5926ced69ec55043b292d988ac50ede501bde4a49de8c9ee50db5a731d2ff0f95d76b47c83c1391b535705789f02ac05175f0d08819d1ebc4e4d2 WHIRLPOOL 895e31483415ead101ab0a1bbc16beaf5de884bdae4bf8e258a54950aa8442093fa56b53144ed2d5a6c0da574850fd9caf478a3b19b21f83ed23f7851d10b589
+MISC metadata.xml 322 SHA256 c7139a6d625c03a03c758a65e0c60e36bf91e93cff0f5feb75f8fc0174375a47 SHA512 7ac0fefec4d71b29fe295ebc41df72ff0d80ba327104ca124bdd700ea054c477ba6a040fcdce6fcae38ec437703ff31ae36a2a7c5683420c39db20d775e52919 WHIRLPOOL ac90359424d8f48f94ef7c2d8aea2f74cd054db76ecc85f325a8ddfd0bc0d017d0b7ea918bd202418b53762b0846ada9b7a8ee0a8005369d44f678ed449ee46d
diff --git a/dev-util/clair/clair-2.0.1.ebuild b/dev-util/clair/clair-2.0.1.ebuild
new file mode 100644
index 000000000000..2ee9185f3f21
--- /dev/null
+++ b/dev-util/clair/clair-2.0.1.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit user golang-build golang-vcs-snapshot
+
+EGO_PN="github.com/coreos/clair"
+EGIT_COMMIT="v${PV}"
+ARCHIVE_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
+KEYWORDS="~amd64"
+
+DESCRIPTION="Vulnerability Static Analysis for Containers"
+HOMEPAGE="https://github.com/coreos/clair"
+SRC_URI="${ARCHIVE_URI}"
+LICENSE="Apache-2.0"
+SLOT="0"
+IUSE=""
+
+RDEPEND="app-arch/rpm
+ app-arch/xz-utils
+ dev-vcs/bzr
+ dev-vcs/git
+ !!sci-visualization/xd3d" # File collision (Bug #621044)
+
+pkg_setup() {
+ enewgroup ${PN}
+ enewuser ${PN} -1 -1 -1 ${PN}
+}
+
+src_compile() {
+ GOPATH="${S}" go build -o bin/${PN} -v ${EGO_PN}/cmd/${PN} || die
+}
+
+src_install() {
+ dobin bin/${PN}
+ pushd src/${EGO_PN} || die
+ dodoc {README,ROADMAP,CONTRIBUTING}.md
+ insinto /etc/${PN}
+ doins config.example.yaml
+ popd || die
+
+ newinitd "${FILESDIR}"/${PN}.initd ${PN}
+ newconfd "${FILESDIR}"/${PN}.confd ${PN}
+ keepdir /var/log/${PN}
+ fowners ${PN}:${PN} /var/log/${PN}
+}
diff --git a/dev-util/clair/files/clair.confd b/dev-util/clair/files/clair.confd
new file mode 100644
index 000000000000..e66675311de3
--- /dev/null
+++ b/dev-util/clair/files/clair.confd
@@ -0,0 +1,2 @@
+# arguments for clair config
+command_args="-config=/etc/clair/config.yaml"
diff --git a/dev-util/clair/files/clair.initd b/dev-util/clair/files/clair.initd
new file mode 100644
index 000000000000..53518fea6320
--- /dev/null
+++ b/dev-util/clair/files/clair.initd
@@ -0,0 +1,19 @@
+#!/sbin/openrc-run
+# Copyright 2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+description="Clair Vulnerability Static Analysis for Containers"
+pidfile=${pidfile:-"/run/${RC_SVCNAME}.pid"}
+user=${user:-${RC_SVCNAME}}
+group=${group:-${RC_SVCNAME}}
+
+command="/usr/bin/clair"
+command_args="${command_args:--config=/etc/clair/config.yaml}"
+command_background="true"
+start_stop_daemon_args="--user ${user} --group ${group} \
+ --stdout /var/log/${RC_SVCNAME}/${RC_SVCNAME}.log \
+ --stderr /var/log/${RC_SVCNAME}/${RC_SVCNAME}.log"
+
+depend() {
+ after net
+}
diff --git a/dev-util/clair/metadata.xml b/dev-util/clair/metadata.xml
new file mode 100644
index 000000000000..01abcbc89e22
--- /dev/null
+++ b/dev-util/clair/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>mrueg@gentoo.org</email>
+ <name>Manuel Rüger</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">coreos/clair</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/clazy/Manifest b/dev-util/clazy/Manifest
new file mode 100644
index 000000000000..31bc0203e46e
--- /dev/null
+++ b/dev-util/clazy/Manifest
@@ -0,0 +1,3 @@
+DIST clazy_v1.2-src.zip 462520 SHA256 6fe7871d1ebeb7562f70e51cf424303b7f21dec3fa490ca7420a9a8485c0f898 SHA512 53f6b0fb8d8f289e19cac591f7a612d1cefcc518cc192c9f7674cf836338d8822c5c266a260ecb34456011cb98603e69c5cffd73a08d0a6aa5d0b10ca96d768d WHIRLPOOL d4ff13f91aad694e281996e50e7eb310f2b98c5d0ec838df2e17022a12c702693226020458845327bf2dc1e9cca0710942698d4c8806322265ab98d8e63538f5
+EBUILD clazy-1.2.ebuild 704 SHA256 ac3de72d1d05986cefc0578267909813b1396cda8aa941cefa36923f47201238 SHA512 400622a483509372b82dc05ecc509942b3cd49face12ab479722317c4e8d96008004df44e05acbb6b166181c0e53764b9b625d6189b01448b1da887cf726c922 WHIRLPOOL 9a46741b89e2a5c0b4ef2d240846d6895425f4988f3fe1c97aca4eb1e13c1f008c7c24722ceae8d0053d08a31641b1f198646c9ea64c0eb652725c684fd64547
+MISC metadata.xml 249 SHA256 584f1dcf51866dc24a9abf7a89bfba0fad11dde81ae1c1b715da41770d233c99 SHA512 76a5a340b13f0053ca3c5e94ed24380ea8d29b45ac8655419e22eaadb1e4a827c04d2e7e36b65145c4964e6526f656618fc6ac144e277ef53cb7373e6239e3c3 WHIRLPOOL 200c07a8bf7c55b11b7936d5cd30e991a511684913334e72f59def66c0ced5fed0b4a8754e2d98bffbab631cb90d4e17fcccc59d5dcc5a8e988f69e47c85518c
diff --git a/dev-util/clazy/clazy-1.2.ebuild b/dev-util/clazy/clazy-1.2.ebuild
new file mode 100644
index 000000000000..f477e69978b4
--- /dev/null
+++ b/dev-util/clazy/clazy-1.2.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils
+
+DESCRIPTION="Compiler plugin which allows clang to understand Qt semantics"
+HOMEPAGE="https://github.com/KDE/clazy/blob/master/README.md"
+SRC_URI="mirror://kde/stable/${PN}/${PV}/${PN}_v${PV}-src.zip"
+
+LICENSE="LGPL-2+"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+RDEPEND="
+ >=sys-devel/llvm-3.8:0[clang]
+"
+DEPEND="${RDEPEND}
+ app-arch/unzip
+"
+
+DOCS=( README.md )
+
+src_prepare() {
+ default
+
+ sed -e '/install(FILES README.md COPYING-LGPL2.txt DESTINATION/d' \
+ -i CMakeLists.txt || die
+
+ sed -e 's|${MAN_INSTALL_DIR}|share/man/man1|' \
+ -i docs/man/CMakeLists.txt || die
+}
diff --git a/dev-util/clazy/metadata.xml b/dev-util/clazy/metadata.xml
new file mode 100644
index 000000000000..2fdbf33d963d
--- /dev/null
+++ b/dev-util/clazy/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="project">
+ <email>kde@gentoo.org</email>
+ <name>Gentoo KDE Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-util/cligh/Manifest b/dev-util/cligh/Manifest
new file mode 100644
index 000000000000..a8e85b75dce9
--- /dev/null
+++ b/dev-util/cligh/Manifest
@@ -0,0 +1,8 @@
+DIST cligh-0.1_p20120630.tar.gz 7848 SHA256 a531dac9c04fe832aa823334f7ff9e3b2034876a95d60c1e5a77712aead73539 SHA512 1be944a18cad117ddceb5461f0f53c083f34afe32c79d5ce9494c587fa5d8b8f7c7acc3f7447e18677b7fce2fa96ed7bb34a228b5528f19fe4933a24fefa933d WHIRLPOOL 033a5b14015f23c6ec92931928d594ed2affb9b9b0048b350d608dfd7710fd3f48c6d3aebce07a5d6366c4f1ef63dcf4ad8cc72c85afe9285238fe355556089e
+DIST cligh-0.2.tar.gz 7844 SHA256 89b101d9e556d706cb6f5e1fcaec4b226942f52cabd7eef5d5519bcf28269de1 SHA512 9b6e5e187324ccc1d9264aa259f648231f46aa443b75682206a17626f4f6f594a14538066f5e561c8a296d740506216db4cbd6ef7a9d25338a9d641cec7e3b9c WHIRLPOOL ba3aa9974186675831aca44b653c4b74f7224a2dd18de73180145649342efc4222c5877e46609dd68deb9833c98cb94ce4e5f90195ccafb29236b8822baa0789
+EBUILD cligh-0.1_p20120630.ebuild 545 SHA256 27f606ccd0082c9a53cae918ac4578e0414b4f46795a379d5d86ffe27d749857 SHA512 fd32a8b47b20d93fc89888c1120f34bf2dde9698550e1b6eeea3bfd155cace25cf6109787dc0ce95f9829bc8e7d0efc3d6f5ad2c6fc317e240163f1c7d115217 WHIRLPOOL 9f165b321c7b623b6c2a115f648587f24bdade60eedb8994ccf79ba103ceeed84b10a99da9a1ad5845aadd343f2175288ba938f3446bf7e4308ac946fce0bb72
+EBUILD cligh-0.2.ebuild 482 SHA256 2c39c291b4be637bc71eae57d2a2684dde7b1ccb5e5c545b3fb0d15686e27564 SHA512 e26bd6b4af345ff67c145a55e27dfa37fdc12765a1437d17972c7ae9d7e418785c7649bcd127be9e72575a6de8a6ea032b0ac6fd9f3a545b235a07a203fe6746 WHIRLPOOL 45c7967205ca9658cbde2251097fcc82704c4e5488d7e130eb9754b99391065463bb899e602556fb5b74f75f96cbafc04cf5768668be52bb8850b10bd4de1baa
+EBUILD cligh-9999.ebuild 477 SHA256 4b79163627caf5c66649a295b0012765fd80868b354dce3665dd95be1b91c1f0 SHA512 28b2b445ccd19c91141d26d4d71c0de3f013159c1c9ef0311c9bc9d637a02087bf9fc4c4cb4bfa53787d0cdfcbb45056f35992896cd1f62f49f6ddb40b3a3f64 WHIRLPOOL 0f8ee70d99b95ff51cf8159ce97b28e0ddb6ecde06f49fc351c000c1741e703a042d17b6a2a1ed8d9ca5e95fd8432e77fbc3a06115354e3819abf59cd2f3e3f6
+MISC ChangeLog 2928 SHA256 f3162c3e94fcf076e9c5aec0e08f724a6be2bde1ae60a92407235d817d700f1f SHA512 ee162dce9b901948879e98731361aefc156f3b0978bdcd6bf364d0f901f9e47df610d8b7b2f7c4d54f2a224116e76ee1ddfbdc0cd11f2b6060d5c7d738e0a6f0 WHIRLPOOL b3b1f3da04a61536de66dc76792fb41e80058d9476abf25a455d059b6886fd0500efc370afc674756826c586463c5c32c40f2842ebe2686f3b6160278e608a6c
+MISC ChangeLog-2015 1045 SHA256 8cbea34f1d3a3ecd71e50d5ca8f615a7ed679fa12d5c2c11ad7432d78529f512 SHA512 20a690a727b5d71ec628aafffd0cff42bf786df1d5466a58b1476c894382ede37e081c3b1481834b6ba8089af77782b27520a6a7ad380e1290b67563bbe7104f WHIRLPOOL 8742ae835a87588779a38d122e699bb49dfd0d9b616651164054a2b5302219fca4c48947aa89b606466451aa2d07d262a7d4289faa476396057effc6e2e7577b
+MISC metadata.xml 322 SHA256 c3fe3254f03f0c7c8646d2701fd7b94b383f549c7dcbb1b0b2661415f56ed088 SHA512 3d76d3e71460441beecd4bfdfd96f033d0701a2fa71918b9ffe222c4354ee5d716415ebb1aeff43818bc34a428ca60ef34894c44cee0256244f118e2b54d090d WHIRLPOOL c6ac34fa77328aa31b58b5012533de679f28c7f308253b6f8b54f8998e4289ef3ebf26817266f47b38579bd786c63280c9fb6a18a2209482e8346a50eb0b250b
diff --git a/dev-util/cligh/cligh-0.1_p20120630.ebuild b/dev-util/cligh/cligh-0.1_p20120630.ebuild
new file mode 100644
index 000000000000..2727bd726c2f
--- /dev/null
+++ b/dev-util/cligh/cligh-0.1_p20120630.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1 vcs-snapshot
+
+DESCRIPTION="Command-line interface to GitHub"
+HOMEPAGE="http://the-brannons.com/software/cligh.html"
+SRC_URI="https://github.com/CMB/cligh/archive/401ce7405d3dc7a90bd519dce8ae9be3bdef43ac.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+DEPEND="dev-python/PyGithub[${PYTHON_USEDEP}]
+ dev-python/pyxdg[${PYTHON_USEDEP}]"
+RDEPEND="${DEPEND}"
diff --git a/dev-util/cligh/cligh-0.2.ebuild b/dev-util/cligh/cligh-0.2.ebuild
new file mode 100644
index 000000000000..88c4d2017c48
--- /dev/null
+++ b/dev-util/cligh/cligh-0.2.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1
+
+DESCRIPTION="Command-line interface to GitHub"
+HOMEPAGE="http://the-brannons.com/software/cligh.html"
+SRC_URI="http://the-brannons.com/software/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-python/PyGithub[${PYTHON_USEDEP}]
+ dev-python/pyxdg[${PYTHON_USEDEP}]"
+RDEPEND="${DEPEND}"
diff --git a/dev-util/cligh/cligh-9999.ebuild b/dev-util/cligh/cligh-9999.ebuild
new file mode 100644
index 000000000000..94342369cec8
--- /dev/null
+++ b/dev-util/cligh/cligh-9999.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python3_{4,5,6} )
+
+inherit distutils-r1 git-2
+
+DESCRIPTION="Command-line interface to GitHub"
+HOMEPAGE="http://the-brannons.com/software/cligh.html"
+EGIT_REPO_URI="https://github.com/CMB/${PN}.git"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS=""
+IUSE=""
+
+DEPEND="dev-python/PyGithub[${PYTHON_USEDEP}]
+ dev-python/pyxdg[${PYTHON_USEDEP}]"
+RDEPEND="${DEPEND}"
diff --git a/dev-util/cligh/metadata.xml b/dev-util/cligh/metadata.xml
new file mode 100644
index 000000000000..d0604a5cc9a0
--- /dev/null
+++ b/dev-util/cligh/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>williamh@gentoo.org</email>
+ <name>William Hubbs</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">CMB/cligh</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/clion/Manifest b/dev-util/clion/Manifest
new file mode 100644
index 000000000000..dc4501857746
--- /dev/null
+++ b/dev-util/clion/Manifest
@@ -0,0 +1,8 @@
+DIST clion-143.1186.tar.gz 220702330 SHA256 a2d6960afbfae77f59481c5ad30bc7c5afe9451bdf9d12cd9435f605b57b522b SHA512 d4ea1bad5f3da3bab569380114011798c29e633009867c8020363c9af72326ebaa3232dff9c931a67dd0a0195bf4903647e250963c7aeebe9ad83340c988cbad WHIRLPOOL 2a0855b6a32a5e23a1c7266d7a3dc00ad3ba905c5a8fa6d1e9959d6d4f67c73d35c94bfbe0837fde0d1736bd48dcb9212a219cfa81732cb169abdb1fb5dc4dd7
+DIST clion-2016.2.1.tar.gz 287103613 SHA256 444f760740811d0bb135cdd7d1d3a559b4d3247cdabf4eb9f77a21eea8c74805 SHA512 a4734c1b5d544cb7f6bd4752f5853d3c44e123e8ad8584b76098ef51a00261350d49bdd628d08c171f7c04b77862e8f28b5d8f16813c282542f83a16100c7415 WHIRLPOOL 83737f1677fff6870fd4dd717d54126f6680ec7c4966bc4b89f300e1fd327a431a13ceb6b04a52287c89813a7bb0e86ebaddf5c98f0330d595314c465d4a9534
+DIST clion-2017.2.2.tar.gz 317678557 SHA256 a019cd2469ecda7d93f3cd7ad3b8e349f374425783f6b4a54181907f6264d6e6 SHA512 8a40cac1b1061d91c5c209f0203d06d54ae4827d15b395aabe0c8f7f36ad8959625baf8cc1f2dddf62b68d127c68957d6f3ddf876b81b8ef05d4087c97522136 WHIRLPOOL 1cdcb04481f20f6848dd4426caa04db0fba72530a517148e81ad4c45a49d875234fe84f153e194cd4fe87267006e631dc4afdbee47eb1b3b7d7cf08105dcec52
+EBUILD clion-1.2.4.143.1186.ebuild 1777 SHA256 5911b64512f469dd09d79a046015444b11355196fd0f47e1820e626d72b739b2 SHA512 60327f78d5189ca3bbfd892d3d5c760d563ca4026acd1fc38bcd0d21dfee2bea8a22b2bebf91c2529a8bd100e05b218d2409e2a19b1b50c411ba2f4d18d7ad72 WHIRLPOOL c745ca8429834e798a6185665163cf9139100da269e7e0678c366e688c8cdb7df77fd85357564c6afcf5b451462fa0e6aec2ec38efa0c7d928d62291c0833327
+EBUILD clion-2016.2.1.ebuild 1775 SHA256 885c5db00cbf400dc1609e9998d55de9509be60a5a31175127436873ce88069b SHA512 8370b3ca5696952e2d25da79e0b9715ab901d5eedeb93753d343582108f33a76535fb7187c2f3d291b04578a201c0b912e667132a48bf3bdf32f4f586151d37e WHIRLPOOL a45fc08d50c92a880db6b260ac0cbb383360d4a7ac6f15a2e724f6435f18262ebfd8a889cd3b3871901381d8bd202091474baa25c0d0c01933b3e1b739b30ca7
+EBUILD clion-2017.2.2.ebuild 1675 SHA256 cb08e6615ebeb24c65a3364f12002444fd06d5a73ed743e66489daed6fe707fd SHA512 c56107235167f3699e0d3abe64a60436c42e1be832b0acb322ddb195acd7289541f357e7b466ccc4fbb1971480ba2b79f8f96b5c6444f2df014a8eb04c07481b WHIRLPOOL 6d13b5a6b7f832fc197850d05dac18a5e4037c16ed83f336a142472b59f07fff01006f23b6bdba8587aff3843e70b9eabd16fce1d1891a31c17652d8ee60a9bf
+MISC ChangeLog 728 SHA256 8d30ac0207a43940273dd02f722899817f64844ff39fbecfe898430482348d49 SHA512 368b66333251b06d20722cd1f2f3dd0b5ac536c5ead5cc90053bcdb2472ef958c17e12de1ac5b206928281671c5e844fc5a82b99a8a9adb8d8b7d27d8b2ffe0c WHIRLPOOL 7bb2e8e4de1515de01c8cb9b30a194b78a37317e12c6b5476298668c67fe8ed2023e33e039a184c1d9e2ed22ed6a76212b6c282bf8e548e7384590ec1e45fae1
+MISC metadata.xml 537 SHA256 6182a894e244e8ff667091beda3de96974b451ea07f2ce046f49221de674e76d SHA512 ba6f9b9f19e6475a7b83a2765af09e1b97c57e25a1a9f2b249993f51a2817a4b38bbf961e316b4e99af7cc686f9cfb2b1b88366f07e60e44a49f3cff950904ef WHIRLPOOL a66f4975451d4de2d642c03f84d308ebb5ff1df11ffea9c2f50c6256f02a5c6a5e2f9da00378b33407b201b0424fa0793a69b08a0cac1a41d677dbaa4f4dd8a6
diff --git a/dev-util/clion/clion-1.2.4.143.1186.ebuild b/dev-util/clion/clion-1.2.4.143.1186.ebuild
new file mode 100644
index 000000000000..220bd4a563d8
--- /dev/null
+++ b/dev-util/clion/clion-1.2.4.143.1186.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils versionator
+
+SLOT="0"
+PV_STRING="$(get_version_component_range 4-6)"
+MY_PV="$(get_version_component_range 1-3)"
+
+KEYWORDS="~amd64 ~x86"
+SRC_URI="http://download.jetbrains.com/cpp/${PN}-${MY_PV}.tar.gz -> ${PN}-${PV_STRING}.tar.gz"
+DESCRIPTION="A complete toolset for C and C++ development"
+HOMEPAGE="http://www.jetbrains.com/clion"
+
+LICENSE="IDEA
+ || ( IDEA_Academic IDEA_Classroom IDEA_OpenSource IDEA_Personal )"
+IUSE=""
+
+RDEPEND="${DEPEND}
+ sys-devel/gdb
+ dev-util/cmake"
+S="${WORKDIR}/${PN}-${MY_PV}"
+
+QA_PREBUILT="opt/${PN}-${MY_PV}/*"
+
+src_prepare() {
+ if ! use amd64; then
+ rm -r plugins/tfsIntegration/lib/native/linux/x86_64 || die
+ fi
+ if ! use arm; then
+ rm bin/fsnotifier-arm || die
+ rm -r plugins/tfsIntegration/lib/native/linux/arm || die
+ fi
+ if ! use ppc; then
+ rm -r plugins/tfsIntegration/lib/native/linux/ppc || die
+ fi
+ if ! use x86; then
+ rm -r plugins/tfsIntegration/lib/native/linux/x86 || die
+ fi
+
+ rm -r bin/cmake || die
+ rm license/CMake* || die
+ rm -r bin/gdb || die
+ rm license/GDB* || die
+
+ rm -r plugins/tfsIntegration/lib/native/solaris || die
+ rm -r plugins/tfsIntegration/lib/native/hpux || die
+}
+
+src_install() {
+ local dir="/opt/${PN}-${MY_PV}"
+
+ insinto "${dir}"
+ doins -r *
+ fperms 755 "${dir}"/bin/{clion.sh,fsnotifier{,64}}
+
+ make_wrapper "${PN}" "${dir}/bin/${PN}.sh"
+ newicon "bin/${PN}.svg" "${PN}.svg"
+ make_desktop_entry "${PN}" "clion" "${PN}" "Development;IDE;"
+
+ # recommended by: https://confluence.jetbrains.com/display/IDEADEV/Inotify+Watches+Limit
+ mkdir -p "${D}/etc/sysctl.d/" || die
+ echo "fs.inotify.max_user_watches = 524288" > "${D}/etc/sysctl.d/30-idea-inotify-watches.conf" || die
+}
diff --git a/dev-util/clion/clion-2016.2.1.ebuild b/dev-util/clion/clion-2016.2.1.ebuild
new file mode 100644
index 000000000000..98f5b2ec620c
--- /dev/null
+++ b/dev-util/clion/clion-2016.2.1.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils versionator
+
+SLOT="0"
+PV_STRING="$(get_version_component_range 4-6)"
+MY_PV="$(get_version_component_range 1-3)"
+
+SRC_URI="http://download.jetbrains.com/cpp/CLion-${MY_PV}.tar.gz -> ${PN}-${MY_PV}.tar.gz"
+DESCRIPTION="A complete toolset for C and C++ development"
+HOMEPAGE="http://www.jetbrains.com/clion"
+
+KEYWORDS="~amd64 ~x86"
+LICENSE="IDEA
+ || ( IDEA_Academic IDEA_Classroom IDEA_OpenSource IDEA_Personal )"
+
+IUSE=""
+
+RDEPEND="
+ ${DEPEND}
+ sys-devel/gdb
+ dev-util/cmake"
+
+S="${WORKDIR}/${PN}-${MY_PV}"
+
+QA_PREBUILT="opt/${PN}-${MY_PV}/*"
+
+src_prepare() {
+ if ! use amd64; then
+ rm -r plugins/tfsIntegration/lib/native/linux/x86_64 || die
+ fi
+ if ! use arm; then
+ rm bin/fsnotifier-arm || die
+ rm -r plugins/tfsIntegration/lib/native/linux/arm || die
+ fi
+ if ! use ppc; then
+ rm -r plugins/tfsIntegration/lib/native/linux/ppc || die
+ fi
+ if ! use x86; then
+ rm -r plugins/tfsIntegration/lib/native/linux/x86 || die
+ fi
+
+ local REMOVE_ME=(
+ bin/gdb
+ bin/cmake
+ license/GDB*
+ license/CMake*
+ plugins/tfsIntegration/lib/native/hpux
+ plugins/tfsIntegration/lib/native/solaris
+ )
+
+ rm -r "${REMOVE_ME[@]}" || die
+}
+
+src_install() {
+ local dir="/opt/${PN}-${MY_PV}"
+
+ insinto "${dir}"
+ doins -r *
+ fperms 755 "${dir}"/bin/{clion.sh,fsnotifier{,64}}
+
+ make_wrapper "${PN}" "${dir}/bin/${PN}.sh"
+ newicon "bin/${PN}.svg" "${PN}.svg"
+ make_desktop_entry "${PN}" "clion" "${PN}" "Development;IDE;"
+
+ # recommended by: https://confluence.jetbrains.com/display/IDEADEV/Inotify+Watches+Limit
+ mkdir -p "${D}/etc/sysctl.d/" || die
+ echo "fs.inotify.max_user_watches = 524288" > "${D}/etc/sysctl.d/30-idea-inotify-watches.conf" || die
+}
diff --git a/dev-util/clion/clion-2017.2.2.ebuild b/dev-util/clion/clion-2017.2.2.ebuild
new file mode 100644
index 000000000000..26668312b534
--- /dev/null
+++ b/dev-util/clion/clion-2017.2.2.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils
+
+SLOT="0"
+
+SRC_URI="http://download.jetbrains.com/cpp/CLion-${PV}.tar.gz -> ${P}.tar.gz"
+DESCRIPTION="A complete toolset for C and C++ development"
+HOMEPAGE="http://www.jetbrains.com/clion"
+
+KEYWORDS="~amd64 ~x86"
+LICENSE="IDEA
+ || ( IDEA_Academic IDEA_Classroom IDEA_OpenSource IDEA_Personal )"
+
+# RDEPENDS may cause false positives in repoman.
+# clion requires cmake and gdb at runtime to build and debug C/C++ projects
+RDEPEND="
+ sys-devel/gdb
+ dev-util/cmake"
+
+QA_PREBUILT="opt/${P}/*"
+
+src_prepare() {
+ default
+
+ local remove_me=(
+ bin/gdb/bin
+ bin/gdb/lib
+ bin/gdb/share
+ bin/cmake
+ license/CMake*
+ plugins/tfsIntegration/lib/native/hpux
+ plugins/tfsIntegration/lib/native/solaris
+ )
+
+ use amd64 || remove_me+=( plugins/tfsIntegration/lib/native/linux/x86_64 )
+ use arm || remove_me+=( bin/fsnotifier-arm plugins/tfsIntegration/lib/native/linux/arm )
+ use ppc || remove_me+=( plugins/tfsIntegration/lib/native/linux/ppc )
+ use x86 || remove_me+=( plugins/tfsIntegration/lib/native/linux/x86 )
+
+ rm -rv "${remove_me[@]}" || die
+}
+
+src_install() {
+ local dir="/opt/${P}"
+
+ insinto "${dir}"
+ doins -r *
+ fperms 755 "${dir}"/bin/{clion.sh,fsnotifier{,64}}
+
+ make_wrapper "${PN}" "${dir}/bin/${PN}.sh"
+ newicon "bin/${PN}.svg" "${PN}.svg"
+ make_desktop_entry "${PN}" "clion" "${PN}" "Development;IDE;"
+
+ # recommended by: https://confluence.jetbrains.com/display/IDEADEV/Inotify+Watches+Limit
+ mkdir -p "${D}/etc/sysctl.d/" || die
+ echo "fs.inotify.max_user_watches = 524288" > "${D}/etc/sysctl.d/30-idea-inotify-watches.conf" || die
+}
diff --git a/dev-util/clion/metadata.xml b/dev-util/clion/metadata.xml
new file mode 100644
index 000000000000..781668ce179e
--- /dev/null
+++ b/dev-util/clion/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>c.a.strahl@gmail.com</email>
+ <name>Christian Strahl</name>
+ <description>Proxy maintainer. Assign bugs to him.</description>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <longdescription lang="en">
+ Fully Integrated C/C++ Development Environment.
+ </longdescription>
+</pkgmetadata>
diff --git a/dev-util/cloc/Manifest b/dev-util/cloc/Manifest
new file mode 100644
index 000000000000..650d153135e7
--- /dev/null
+++ b/dev-util/cloc/Manifest
@@ -0,0 +1,13 @@
+AUX cloc-fix_stupid_perl_array_error_again.patch 3025 SHA256 66cc7dc24901b526bb106b06d3e047c299a339a16d1af909b1ef0082f82f8808 SHA512 7831e853179a3aedf7fc3df790d958733f37b148493c77f699a6ac29313611f6e1212efcbb765780bcad30a20b51fd97379a3d904b5fe95d7972e86e5e87230c WHIRLPOOL 838ce5109b2d430bd24b63511eec79c92ebfa672eba0d15381e6eb59a401195be938d2ce1b2264b70e1267ea72a8c93eb323c2e8ca9d2d41b1ebc41cc8c3814e
+DIST cloc-1.64.pl 408977 SHA256 79edea7ea1f442b1632001e23418193ae4571810e60de8bd25e491036d60eb3d SHA512 bed788cb77ce9ae83714fc14ca04d90d5ae73a7443e180ab815ab81b1d58737f51a8c81360eb7be756afc9d324f9dcf1174b5505b665401217231087ba9461ad WHIRLPOOL 5c56b8be65d16bdadb79950fc4fb3446f36705ea6f5d5ca13304d290e5669a9370cc7b20f60ba1c5e5c4a147d62603beb34e5829a26223efa1ae36e690916518
+DIST cloc-1.66.tar.gz 215719 SHA256 3a8a6d090e6adda9c842583eb49847d6469c65fcf8b2ccefd8e4b18dbb29524e SHA512 2f0bb2de83c6cd8eee251dbf418002301fdfa76bfda6cfbd0d746d9ea0c9d27cf3ee91110504819c4b85e0ae6c1c496fb125c3ede0d516d452cfea6af46e9473 WHIRLPOOL 96a5447d6f3ec406e596a682a418d890d581a3c5e4cb62cf797a908c20147cbe425ef4282cb30b80af79c6deaccbe9895f91904ff871729341458d113d853e01
+DIST cloc-1.70.tar.gz 318879 SHA256 5b574bac85b0ff4c48d7c3fe32578703b5fb796689de692b903ee43349671615 SHA512 fb92101130dd8476ccafe488cf4ec06deb2f1b428649d686a0f19250c8fcf2717e7e44b73ec5493cc61f8237c31c016465f9006757d39df1b6a9f726abd93eb2 WHIRLPOOL 568897df73a0e8b092a16815ee4a9c641d13c983d830aae470ba028a1d18b421155e82c576bbe554e026fea303b692abf6f0ab5500ead45652b1752cdbc84957
+DIST cloc-1.72.tar.gz 347245 SHA256 dfd238115948ef6c9c3f9c89094ff9fb7a77ff1d23d0ff81aed7c445565f87be SHA512 e83567fcc2703b6de761c44d3b85e4c176eaff9f35419a202bd4c00b5cc9160d39251deb762d57b40aacf4fe6322cf79877032ed29abec2a5f00c1abb8d44021 WHIRLPOOL 0f7bf2e033e26f373dfdeca1c44d01a3ab491bf6f5d7ebc725fe3640b2fd046eda91b167c0795f457be27854016c1592577479b552e4e0e3d7164608baf430b6
+DIST cloc.1.pod 12468 SHA256 0e6890acd5836ec43aabed1476e2a1417ea4d454968297c68c1b782e818f979b SHA512 50b4085704c7936de9993476195570957c9c5e864f4a2dbac114ff148a813b50ccba0c6e29d5bda4c4e5cd7c7a09e314233438ddd28f0e0585db54975e602659 WHIRLPOOL 25d9b78a7a0fb88f2ff1192afd8cd5963ab61b06883874b8339a1d4fefbeac4b080d413107f06b34975cd2e7ea92e4313767f2c2aebf39e21ef7cd408bf152ae
+EBUILD cloc-1.64.ebuild 989 SHA256 85f5e4fe6e0b21109b56e23b533c309f54ae0a7e8b1540b85916de0c96200f76 SHA512 9a9de8c602cc92889073260adcad828ab60bbca3afdbc886ceb951b835b9130dfc589f517431a92849cbb8ae3e996afddc9985ff2583b3524176bec2e212f397 WHIRLPOOL b375187a324dc99748fc405e66418cf25b479f4ae853cab56bae407ed1121c1b832649ff5cd8cca3c554112fd575eeb0db3f4e994ae7e7c2bc3d21fb45e1e8dc
+EBUILD cloc-1.66.ebuild 665 SHA256 4a50e13e296663eaf4cfa8f528d749bcbed77e621e558c687f7b47c2695fa013 SHA512 352b282ade7cd8c2e7b6a18529ec167dbdf79abce5ac5f6ce2581800c5b64b77e5120bed59c58208904570a18474b92beba4770bade2b2c2e5fe6dd6a825d07e WHIRLPOOL b4e68e562606022d129909b10473aea1154c27fce02f1f8f484e71388f85d2cc9f55060383775ee7f3541786f8e14af86ca99ccabd00ffca556e02838bb13ad0
+EBUILD cloc-1.70.ebuild 647 SHA256 07d3c6ac1af23a0bdbe64bab964a901afd74793e5f721c93472827442e8837e4 SHA512 3f9debaaeca34f8ac14b79ff41414752e982f4bf4d62a1f4b1d0875649430aa751a08eee82e974803e55950408acbe8bf5f28c49979ec1704f9eb9dee7030d7c WHIRLPOOL 4d5cfb21e6ebcd60b63cdcd853ef8281e658a4756f96e66b602148514f4659df17f10054411558617bd62a7b805eab79d37bc9d22f64015e7bb90abde2d451e0
+EBUILD cloc-1.72.ebuild 652 SHA256 2839eddaa44f906c2987eb963cffbe9d35b94676f425fcca526936d63822d893 SHA512 804fdbb749ec15ff4e68bf4841c8888b8466fedcf88a82d8b82d8968eecde91ccc83582100a4261f9c4731fb01737e828ce3b80a707b6d9410593ea17cd03a00 WHIRLPOOL ddeba83a5768dbd784e553a4e790ba349521fe348ce0426af205838a28586411920e24f63fdd9a91a68ff75901af52e5cc9684c853c7cd1ea81e243719bc7c16
+MISC ChangeLog 3656 SHA256 90e37516d0700a57b055310161d882acc8febffa7c799f2c91bbc207e21512d8 SHA512 2f407b44485f2da1f422d90450a594a3cd2bc3799dd1226f87138478163769d74b87351d3ade87d048d7b89a55447b3663255e06af67dcc044d8cabdf8f77dd5 WHIRLPOOL f5c17e47cb67387f8ed37fb8073ad4ca6efb594d64b1d908f67357d380d1758a0b184538480e8a15fa6490cc7b0ce30399f3db88f17f0b26e99bb64839280410
+MISC ChangeLog-2015 2029 SHA256 1b417704681c54d9d70d9817333886ff189aa7544c3b5921fb63d1b9c492c66a SHA512 7bb7baa73d059527a6e0c0f30c6fcf0bba6557cc11dc000ab61f714757990fb25ca12467723598c4a66399964da3fa6e42102eefc5ea38bcd73cda57c505b71b WHIRLPOOL 905acd3f37873d9618b8f1ef37921fbdd4ddb19fac329ca8dd0513ce5d376529da47c28dcb015203237bf4b1beb6f41fa748609515b007a1794d6fcadcdb4781
+MISC metadata.xml 435 SHA256 e7798b4d73afd47c73e085998d6cdcddc47c5249478980995c2829f3a680d412 SHA512 c747ba0f0014099be6572197e6aa9aa520cdfd6bae63fc3e0f92b723554a56180d52e1cb40422a063f56a4003d07b3cd09337b4413471668e62d51a6deace02a WHIRLPOOL 5d11083bd734cb550f325e7c3df66f88017ffac08c9c305506c12086cacbe8317ef99a804c26883238b2fb133cf55429942a27a292d3cdbb144d5ab431d79143
diff --git a/dev-util/cloc/cloc-1.64.ebuild b/dev-util/cloc/cloc-1.64.ebuild
new file mode 100644
index 000000000000..6d04d597b451
--- /dev/null
+++ b/dev-util/cloc/cloc-1.64.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils
+
+DESCRIPTION="Count Lines of Code"
+HOMEPAGE="http://cloc.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.pl mirror://sourceforge/${PN}/${PN}.1.pod"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="amd64 ppc ppc64 x86"
+
+DEPEND=">=dev-lang/perl-5.6"
+RDEPEND="${DEPEND}
+ dev-perl/Algorithm-Diff
+ dev-perl/Regexp-Common
+ virtual/perl-Digest-MD5
+ virtual/perl-Getopt-Long
+ virtual/perl-File-Spec
+ virtual/perl-File-Temp"
+
+S=${WORKDIR}
+
+src_unpack() { :; }
+
+src_prepare() {
+ pod2man "${DISTDIR}"/${PN}.1.pod > ${PN}.1 || die
+
+ # hacky, but otherwise we only get a symlink in distdir...
+ cp -L "${DISTDIR}"/${P}.pl "${WORKDIR}"/
+
+ # fix stuoid perl array error... again...
+ if has_version '>=dev-lang/perl-5.22.0' ; then
+ epatch "${FILESDIR}"/${PN}-fix_stupid_perl_array_error_again.patch
+ fi
+}
+
+src_install() {
+ doman ${PN}.1
+ newbin "${WORKDIR}"/${P}.pl ${PN}
+}
diff --git a/dev-util/cloc/cloc-1.66.ebuild b/dev-util/cloc/cloc-1.66.ebuild
new file mode 100644
index 000000000000..34dbcf976004
--- /dev/null
+++ b/dev-util/cloc/cloc-1.66.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils
+
+DESCRIPTION="Count Lines of Code"
+HOMEPAGE="https://github.com/AlDanial/cloc"
+SRC_URI="https://github.com/AlDanial/${PN}/releases/download/v${PV}/${P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+
+DEPEND=">=dev-lang/perl-5.6"
+RDEPEND="${DEPEND}
+ dev-perl/Algorithm-Diff
+ dev-perl/Regexp-Common
+ virtual/perl-Digest-MD5
+ virtual/perl-Getopt-Long
+ virtual/perl-File-Spec
+ virtual/perl-File-Temp"
+
+src_compile() {
+ pod2man Unix/${PN}.1.pod > ${PN}.1 || die
+}
+
+src_install() {
+ doman ${PN}.1
+ dobin Unix/${PN}
+}
diff --git a/dev-util/cloc/cloc-1.70.ebuild b/dev-util/cloc/cloc-1.70.ebuild
new file mode 100644
index 000000000000..3dd2d9910900
--- /dev/null
+++ b/dev-util/cloc/cloc-1.70.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Count Lines of Code"
+HOMEPAGE="https://github.com/AlDanial/cloc"
+SRC_URI="https://github.com/AlDanial/${PN}/releases/download/v${PV}/${P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="amd64 ppc ppc64 x86"
+
+DEPEND="dev-lang/perl"
+RDEPEND="${DEPEND}
+ dev-perl/Algorithm-Diff
+ dev-perl/Regexp-Common
+ virtual/perl-Digest-MD5
+ virtual/perl-Getopt-Long
+ virtual/perl-File-Spec
+ virtual/perl-File-Temp"
+
+src_compile() {
+ pod2man "Unix/${PN}.1.pod" > "${PN}.1" || die
+}
+
+src_install() {
+ doman "${PN}.1"
+ dobin "Unix/${PN}"
+}
diff --git a/dev-util/cloc/cloc-1.72.ebuild b/dev-util/cloc/cloc-1.72.ebuild
new file mode 100644
index 000000000000..8935ab1749b8
--- /dev/null
+++ b/dev-util/cloc/cloc-1.72.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Count Lines of Code"
+HOMEPAGE="https://github.com/AlDanial/cloc"
+SRC_URI="https://github.com/AlDanial/${PN}/releases/download/v${PV}/${P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="amd64 ~arm ppc ppc64 x86"
+
+DEPEND="dev-lang/perl"
+RDEPEND="${DEPEND}
+ dev-perl/Algorithm-Diff
+ dev-perl/Regexp-Common
+ virtual/perl-Digest-MD5
+ virtual/perl-Getopt-Long
+ virtual/perl-File-Spec
+ virtual/perl-File-Temp"
+
+src_compile() {
+ pod2man "Unix/${PN}.1.pod" > "${PN}.1" || die
+}
+
+src_install() {
+ doman "${PN}.1"
+ dobin "Unix/${PN}"
+}
diff --git a/dev-util/cloc/files/cloc-fix_stupid_perl_array_error_again.patch b/dev-util/cloc/files/cloc-fix_stupid_perl_array_error_again.patch
new file mode 100644
index 000000000000..9f41e07d019c
--- /dev/null
+++ b/dev-util/cloc/files/cloc-fix_stupid_perl_array_error_again.patch
@@ -0,0 +1,71 @@
+--- cloc-1.64.pl.orig 2015-08-26 18:59:16.045264847 -0700
++++ cloc-1.64.pl 2015-08-26 19:30:23.241507263 -0700
+@@ -1280,11 +1280,6 @@
+ !(@{$Filters_by_Language{$Lang_R} })) {
+ $not_Filters_by_Language_Lang_LR = 1;
+ }
+- } else {
+- if (!defined(@{$Filters_by_Language{$Lang_L} }) or
+- !defined(@{$Filters_by_Language{$Lang_R} })) {
+- $not_Filters_by_Language_Lang_LR = 1;
+- }
+ }
+ if ($not_Filters_by_Language_Lang_LR) {
+ if (($Lang_L eq "(unknown)") or ($Lang_R eq "(unknown)")) {
+@@ -1618,7 +1613,7 @@
+ $Ignored{$file} = "--exclude-lang=$Language{$file}";
+ next;
+ }
+- my $Filters_by_Language_Language_file = !defined @{$Filters_by_Language{$Language{$file}} };
++ my $Filters_by_Language_Language_file = !(@{$Filters_by_Language{$Language{$file}} });
+ if ($Filters_by_Language_Language_file) {
+ if ($Language{$file} eq "(unknown)") {
+ $Ignored{$file} = "language unknown (#1)";
+@@ -1759,7 +1754,7 @@
+ if ($PERL_516) {
+ next unless @{$rhaa_Filters_by_Language->{$1}};
+ } else {
+- next unless defined @{$rhaa_Filters_by_Language->{$1}};
++ next unless (@{$rhaa_Filters_by_Language->{$1}});
+ }
+ # above test necessary to avoid trying to sum reports
+ # of reports (which have no language breakdown).
+@@ -3259,7 +3254,7 @@
+ } # 1}}}
+ sub print_language_filters { # {{{1
+ my ($language,) = @_;
+- if (!defined @{$Filters_by_Language{$language}}) {
++ if (! @{$Filters_by_Language{$language}}) {
+ warn "Unknown language: $language\n";
+ warn "Use --show-lang to list all defined languages.\n";
+ return;
+@@ -4623,7 +4618,7 @@
+
+ open (FILE, $file);
+ while (<FILE>) {
+- if (m/^\\begin{code}/) { close FILE; return 2; }
++ if (m/^\\begin\{code}/) { close FILE; return 2; }
+ if (m/^>\s/) { close FILE; return 1; }
+ }
+
+@@ -4652,9 +4647,9 @@
+ if (!s/^>//) { s/.*//; }
+ } elsif ($literate == 2) {
+ if ($inlitblock) {
+- if (m/^\\end{code}/) { s/.*//; $inlitblock = 0; }
++ if (m/^\\end\{code}/) { s/.*//; $inlitblock = 0; }
+ } elsif (!$inlitblock) {
+- if (m/^\\begin{code}/) { s/.*//; $inlitblock = 1; }
++ if (m/^\\begin\{code}/) { s/.*//; $inlitblock = 1; }
+ else { s/.*//; }
+ }
+ }
+@@ -6582,7 +6577,7 @@
+ my $language = $rh_Language_by_Extension->{$ext};
+ next if defined $extension_collisions{$language};
+ next if $seen_it{$language};
+- if (!defined @{$rhaa_Filters_by_Language->{$language}}) {
++ if (! @{$rhaa_Filters_by_Language->{$language}}) {
+ $OK = 0;
+ warn "Missing language filter for $language\n";
+ }
diff --git a/dev-util/cloc/metadata.xml b/dev-util/cloc/metadata.xml
new file mode 100644
index 000000000000..273f73f2439a
--- /dev/null
+++ b/dev-util/cloc/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>tamiko@gentoo.org</email>
+ <name>Matthias Maier</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">AlDanial/cloc</remote-id>
+ <bugs-to>https://github.com/AlDanial/cloc/issues</bugs-to>
+ <remote-id type="sourceforge">cloc</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/cmake-fedora/Manifest b/dev-util/cmake-fedora/Manifest
new file mode 100644
index 000000000000..d9e50588b54e
--- /dev/null
+++ b/dev-util/cmake-fedora/Manifest
@@ -0,0 +1,5 @@
+DIST cmake-fedora-2.7.1-Source.tar.gz 127053 SHA256 f8e5fe60268b44033b8f982dbaf43e860a860b4f303798fa5a5051f4ae28f6c1 SHA512 1f264a3527c4938916de91d2b8ce10c58fa222c992820d6ea5c5e850a190476900a4cdb18f7efc0680222d220efb5e56c8102a9f034385e15b5f88f9a25601cf WHIRLPOOL 4c684bf1aae82a5486ddb044d86ed15c5b242fd99246b2e43d0550d0dc7a8f2016683329a26352377cd5ccec4dd1afb3f50b6f9de5eca912f027d1d78bc70f25
+EBUILD cmake-fedora-2.7.1.ebuild 557 SHA256 2f151e62b50a65afe77c69ce46da7ebf8ba39ec9e2c3101d551cc7359f8409c4 SHA512 a939efc164f7bff40ad85307a1d86c5f83c2d299af8bc2d18c8c2371d37ab4fcc6702fb6fb7116ced9e62a7c7c54d5c8f60db325b718ef7b268c3e55c2e81f0a WHIRLPOOL fd9cfdeec5d85145b0caf6a404758d390f197e64a072621da6b967f64072d65f86e4ac0efe60a0bf5004355976bbcfb4c853b3860cd98fead409d1b6c2612735
+MISC ChangeLog 2253 SHA256 e974bc145dc943b118935e64b4ad3ce73913e8952036b3018f2a852dfd8128f6 SHA512 e03fa3cb1d39c8c4c797ffa3eb93a81b743998b456cd7250ccb8b7754a57a246e0c5e7444aacc15ac9e9781cb11ba2528afb65cb75b762a260e58ee960920493 WHIRLPOOL 44b4c3342ffcf0fc20dfa0da6dd8e6b214807d83f1c31e4484a1a9996ba0586e7db5bd5bcf546cdb9767b9330cf035b8166dd02d1b01117ddae6d746cc4609fb
+MISC ChangeLog-2015 1032 SHA256 201f113b5b4c08389e0ac0194f193e28d51748bc08190f852e0f70257aadc447 SHA512 bdf21fbaac3832eaccfd1f3d3178782a295203311b5291bab43710039ae7aab1645bb2f2b219207a471a0f7296bdeaf2ff6a6b785fc4387290cf145027f82962 WHIRLPOOL 83bc5d8390c64771f62ece20cec65abb5b7b0a928ec2425d61faf0a31b607fab6cc66978e919ea092b9972ace830c67576e8d12bf52a778bf5b916322f68bb19
+MISC metadata.xml 216 SHA256 442af31babb6d2e816755f50cb0189f451b6c2e7d2559e22a52691122b2461ba SHA512 25aafbf1f6b774c2a0e86ce4940cf30f89393021cdc5ff80b1bdd69902ab3c2a4ec62cb5b902487b3f2c12e4cf37c077131ac58463f1d72d95a4cf0caa930038 WHIRLPOOL ac48410dbc35fef7767b4eb913db1fe72b167fdd3d9c035fd1ce7fe678a58d7ca6f86252191dbe88ac165bca528bf104eeb835f9fa8d56f274e3451196ad0a3e
diff --git a/dev-util/cmake-fedora/cmake-fedora-2.7.1.ebuild b/dev-util/cmake-fedora/cmake-fedora-2.7.1.ebuild
new file mode 100644
index 000000000000..bce26ebcb7d4
--- /dev/null
+++ b/dev-util/cmake-fedora/cmake-fedora-2.7.1.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+MY_P="${P}-Source"
+inherit cmake-utils
+
+DESCRIPTION="Provides cmake helper macros and targets for linux, especially fedora developers"
+HOMEPAGE="https://fedorahosted.org/cmake-fedora/#Getcmake-fedora"
+SRC_URI="https://fedorahosted.org/releases/c/m/cmake-fedora/${MY_P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}"/${MY_P}
+CMAKE_IN_SOURCE_BUILD=1
+
+# fails 1 of 7
+RESTRICT="test"
diff --git a/dev-util/cmake-fedora/metadata.xml b/dev-util/cmake-fedora/metadata.xml
new file mode 100644
index 000000000000..7166aba8a22d
--- /dev/null
+++ b/dev-util/cmake-fedora/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>naota@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-util/cmake/Manifest b/dev-util/cmake/Manifest
new file mode 100644
index 000000000000..01c96943ee27
--- /dev/null
+++ b/dev-util/cmake/Manifest
@@ -0,0 +1,27 @@
+AUX 50cmake-gentoo.el 244 SHA256 6010e6df84aa23050fcbc490ae2b22802ede0870ff2e96c43fe541e97e0d6c00 SHA512 70af0b9dd41f08531d3c754dc8af3662df8a22b469b79e8c40b7caae3205be1d4dc81d8b41837d1b6a46f2c348f5407e09e02269823c45c3366777e3bc7a0dcb WHIRLPOOL aa60ffe7e5edd00fdbb32ce2c9aee24fddd6e4d064b8bde55c7ff3b42196c3420596653aade9cc447a3293050c5ab23a27a556f26806e4d67139d264a38d1aaa
+AUX cmake-2.8.10.2-FindPythonLibs.patch 990 SHA256 85b7ed701e8c9e9b6dff684c6a398bd24f16b27da88acd5aa07cb99a0064ffc4 SHA512 c2027439ef5f53991f99db4c60f62e0164641ffce58bfbe0dd9a0b4f93f8b96f6f6e30715a3ab57a47ea7a85d7d784ad602ca74ce88b5bca1a08c538dcc9676f WHIRLPOOL 95042ede9fb602b37e96c03fca11ffe3de98eeafbec613521b58f9fea34450e0d7951fbc0b63258ff1f380b594f3824bf548d28d6fa67360710fe0ad16f26bcb
+AUX cmake-2.8.12.1-FindImageMagick.patch 1704 SHA256 c38d003b1a09cc86d0aa1697f290efed1b0740c6fe8b5e2d667227985b53f2ad SHA512 d27d80a64a19f428cbc50e4c82330ed841e41787669a3f58565e7ade1e208938a35b35e14788b45bfca22aa2fa151655c9bc1bed9c3b20fedf7f71df45083408 WHIRLPOOL a66e8b80ca56e6110d28f189dcf409f32adc8dcdc9268beaf58b0944a127bd4463a324ce9fcfa96c56e2817a24ccacfe9ed1990c06c81d41749fee89533e7fad
+AUX cmake-3.0.0-FindBLAS.patch 1581 SHA256 f9a8f3eead07dc66b9465a9c66db7faa547f5625938d95d9650c037cdd4c775a SHA512 c73533071df93975a2dc9ba1e17fb16bd396ec816ec9b2b4b714923ea6db606baea82c378bb50d7bb9d918e54c661489265e1032b24d03b2ba924489d01510f7 WHIRLPOOL d65649995d7c745d3536c66a76af3749eafa5bf04214dca807c04a2ba7aaa7a97398f0f2553cb1b90b5e32b0275e45251f3adbb53314ec9dc6f23e97447bcaa0
+AUX cmake-3.0.0-FindBoost-python.patch 6481 SHA256 bd8ff52ce3565ab67806e2417d3c1e3c05215dde1da588f65dfc8db061ea3116 SHA512 4eed678c74af89e249de7202c553825cfd0132b84d605d078c388224a1add76acef778f366bb60e52e58e9ca25a23e18f8f6bef7385a9180fb1cab7d7698ffbf WHIRLPOOL ba4965b6e390a30178cd99806eda5d1fd669ccb894ba94d1f8ea358dcfbf10f9559918711912786cc3be16569b87d931d13712bd84a433b561f1092d8c71c416
+AUX cmake-3.0.0-prefix-dirs.patch 4279 SHA256 5f5f544a861c8c79fe668cbe65bbba8c8c83e4eca82503f8e7b193ec476c2225 SHA512 f90b2114aa84509fe3763d5c2d29460c84334aedc48f1856e646d7118a80ece72b57084f9ee7e8669ce59d61337d967e8d01f6a68b7d3580f2230a804a0ab2ee WHIRLPOOL 70761c4b3c7886ebcf1d052237f77eb871b92846a35281c911c6cf5ef867d3df09b563399113ca8f7d6f8e912b9c170b074d296b82a480dcc4c8dd10ebeab245
+AUX cmake-3.0.2-FindLAPACK.patch 1369 SHA256 2bc2db5e12612215bb316614d1cc3a62fcc8719b7fce2af77a1592e049296103 SHA512 4f20c4475841201c28ad49539fe896345add626dad5615357ff01817e10f7315ffe39e3a8d4bd0270179d7c58e5679a5bd9ae2accc1019ecee91db380ba48577 WHIRLPOOL 77d78e46220622224afc3a8c90f712c1be3f67af71080f4659dd2afe31cee8c6fc7d2d6aabb5adeff7af0ea91a97d40b443ffe48cbadef88a7df634fd118014a
+AUX cmake-3.1.0-FindPythonInterp.patch 1045 SHA256 d0bc763b6608f8a8ffa1050cf90a4f81e771d93bb8b3ee8452f1a6638f51a151 SHA512 ec89a5589b70427c5d8d7a7b23ee87e3b437973081595f6387b5e7d902014b089f85b3634a906c5aa688726ff0f7588c7fb06161009e044813553c03409cabc0 WHIRLPOOL f07a418c8f2fba15d4b108108a880d9daddee31449954b86f2584cac53967fe4d03ae58cbb928adba2a06492c47c82e353e95d35a35d39363dcf36b31794d896
+AUX cmake-3.1.0-darwin-isysroot.patch 1926 SHA256 edea0457c07fe886d61568d5f17d5e4f657ed61975280efced299c012f21b905 SHA512 0cbb55f8f5458e72b1e465577809287dcc270636aef192f039eb1e48ef78b933a7290f81c6fefb0dd1f5eb8f9d209766687ffcb4f37c702b8317f8d2e36236ad WHIRLPOOL 8afe5ddb8b590c897b64bbf15021eab7c0271fcc07532c405937700730d54afeb24afdc6b38a6cee04f28842a46f5b8447f7256bcc61a9ab9af0dffc0e3e81a9
+AUX cmake-3.4.0_rc1-darwin-bundle.patch 1043 SHA256 e3a8f2ff999ffe32c71de3779fb7b349120cafce7f2be26d89ba393085cffcad SHA512 8c6297bf824d5a911e14004ac4c4e62d1a1528e44199d8860ca885bb1b8dd3d66a73c3db32664b830c3c635bdb498abbd5196be92ed2571cb22828d7186ff9f9 WHIRLPOOL 49add46771d80ead6d4648d747816e728f2b59bfddd403936b2e13079a9f268d126d56ba3c6de4bdf7c1eb91cb7c3391c9008f3b25ccee8ba38563753670487c
+AUX cmake-3.5.2-FindQt4.patch 1585 SHA256 baaa4e2787cc30f8a16d03f474c4ab4708be8e45aaea3a9e0fe0d6ba6e9cca02 SHA512 bab8960bfea3c29416bdc8f39c7dee59b89bd7951752401f24eeb9161ac7bc2c6dd200cb62c6b9f964d763b5d257a94d8b04dc7090d6fa947a04f2d0c2e8c479 WHIRLPOOL 4df4782806f24c9d967f945d9c8fcc9b87237754e9013fae8418d7535f5eeb2aa161be402dc7a8746d5d3874305d3836ef0a55a5a784c4ab8090e6080d7aa77f
+AUX cmake-3.8.0_rc2-FindBoost-python.patch 6575 SHA256 ef465768f1a2ce0790fbb7007288e0c79fa98d805ffd170ef247a10a53070d62 SHA512 bb156cc2b47f9928f2e6bae909e90866f4442e42d7357744aa2b00903a02a27cf8af4a788a74858bc51874c442c40788717c86e77690b91def80abaa38b90163 WHIRLPOOL 831f835fd52963f774d6c954538ee32f710cc0c5d017a622e5d18bcda5ce7500210c58226e47a43d3e1d6629d221c26f600a0f91a5746e47abd80d9293930650
+AUX cmake-3.9.0_rc2-FindImageMagick.patch 2407 SHA256 5cfef1e684b67f3bc464fdbeb7bf8ad7d210979f0417e5983cc3d72656c5eaac SHA512 305cbdba81b23524403ef8eda93d494a0c3f3069e6434f0dbbd2f4e7bb2f64d503241bf5c3774631751dd26cb798472961c5565d5792e1028ca274054d2e77f1 WHIRLPOOL dc37c989da2deee2396a05e7992e59fe19f4c3183c20c576bbad5b28c6b386593b7ebc6283cf856b2623f9c82b94f8210d0648e2129050ba2e3a34d50c3942e3
+AUX cmake-3.9.0_rc2-FindPythonInterp.patch 1458 SHA256 dd3388f12fcaaed08c752f85ed4f27d795fd97896386a0c1f237e2cc4a65a9f9 SHA512 8adcb75cc035f64521e85229eb8dfa1e627326f8e189f66b707b3a0448ed3ae6acf306643026f7cbc7b924edcef73cad7a107d83162b4ca46bd6bbdc7a58af12 WHIRLPOOL 51a499e6df73e9a68f243979a4fef33eb717e1f60fffc3bfbb9289f7a03c7438e44e4d01a77e87ea24c7bb956199a3f5a7fdd7f3583a625384487366ed0ba6a0
+AUX cmake-3.9.0_rc2-prefix-dirs.patch 4030 SHA256 2f07ffa2eb1129b5bd707b0834be1cf00964710974393a301a8cc9995b2e07cf SHA512 116073dd2d63861cb33b7b92d07adbdfe74e05864f488be8df3a6f5b92bee76c518770ad31972323e0ed5d8c07505c7fe18105573e7f5ebeb79b193297dd2ca0 WHIRLPOOL 5b0f3afbddfb202cb12d7b86823a39ab2de81b6ce261aba25afdaabefd5b4ec87804ea1b6d7891c69f6b7b32a2ef2977937e2dda62c88cd5032e5987b16c40ee
+AUX cmake.vim 217 SHA256 7366c1d45bdcc93efb1954216a5427a5f9df7e98a1f706c357576d7835aaebc5 SHA512 2f7e9e949f8f3030a0dfcef56f4effea703ee60555c22f6a2d1dfeaf3334f33a3e88910c666f704e4ab60cde4ebb509c7d85d812a3c1627010e52fc757f15cdf WHIRLPOOL 088ae1f0a4f32ea872deaf1d4e8d21d6853d3cecb903ea8abfb06c85de8c200757c2cfb34ec25cd0d8ef2a3c12b3cc9472e9ef0b5ce3f702502100806e0e73fc
+DIST cmake-3.7.2.tar.gz 7361593 SHA256 dc1246c4e6d168ea4d6e042cfba577c1acd65feea27e56f5ff37df920c30cae0 SHA512 b2ed0192e12267de19eb178c2dedc69d06fc33dfadd47efbe0ccf6969ad72d290fa4bff02861c379a8752337d67d2485d7e1ba947cb219f2e4041a53a195e88d WHIRLPOOL 1861fe2887f4483856e1964ff1492e196624d3072ad1e21910fba29d0c0d654e7d5035571648386a77cd6cbe895f8cdfbb1f4cc1ad60d14015a01a22494456f7
+DIST cmake-3.8.2.tar.gz 7504706 SHA256 da3072794eb4c09f2d782fcee043847b99bb4cf8d4573978d9b2024214d6e92d SHA512 49ea6f74a81dfa8ed8336c94ed50e0a483b796132c260f4bef159f9c389d99cc7b26ecfcccdd8b0a8f5b52fddd277c17c547d2a2e8848da9912c464ada1cbe3f WHIRLPOOL 8768bffb365852414eda0349d71e59517c8047689303d7873a5889cb8b28c72cd636982a18b039f26daae33023f7e0ad91c3a9ab2d30c30e4b3a9b3cc525b78e
+DIST cmake-3.9.3.tar.gz 7705238 SHA256 8eaf75e1e932159aae98ab5e7491499545554be62a08cbcbc7c75c84b999f28a SHA512 30058cf4c154221846d1cd22eaf44a297d2a2d020a443f3e6f40384dfb86ee9a639a1299aa9f187f230505b2a6ee0fe69fbf5e80410711a6ac3d7a07b37f8dfc WHIRLPOOL 68d85783cf880984ce912e873f31500c87352cce69bad6da5a6086ce5bad2dd3d4a75ef2eae485649af7c380205aac9411f1dbdff155763d0e69d12d1eba4784
+DIST cmake-3.9.4.tar.gz 7705052 SHA256 b5d86f12ae0072db520fdbdad67405f799eb728b610ed66043c20a92b4906ca1 SHA512 d9172f86df7ddefd0ecf1cd271add8b8af2d712a47ded530e9ff2c26e39087bc11a099125f17add6b563d176f27a68f4998bb53ae390b3f12894d658dfc8eee5 WHIRLPOOL c1cc16977ce1c1a4ac58692694a608bb5996c19db677bb6d25db1e017586ad1d676bb1f086af4016b8017cfe845ed7c6795fad7f1e7b5ab0b4d9b414452d661f
+EBUILD cmake-3.7.2.ebuild 5503 SHA256 1f8fde3a0b989b81fa89d4149a9422d118b0459925de3c56106bedc9808f5310 SHA512 8c8b96355c6edf0e84e3cf837042922bc5558f8c488e9ef718553c28eef10bf630671b66a6205cf495e22ceb220fb37c2a7ea1926a5271a63f8c402626dffbb5 WHIRLPOOL ccfbe6cc7c39db516d7fb294a5f656a89d9f8ff9cfb256c389a3e20fe9a3b6c8d3c93b277f71ab4928bfaa88b4de48a2e76a4898caf71782dae9387fd30607e6
+EBUILD cmake-3.8.2.ebuild 5723 SHA256 4ae72da525b7d6ca7f45afcadcc89f0703e5232edb130ea1dd28afaaf7480c52 SHA512 e8628d712d82359c42c6940b745d7b29211bd548732ea08de7bf22978896d9fc9dbd21bf61db76262df1f440ef786550af83452bac48240025a4aa7d4c353ebc WHIRLPOOL 895f41560a2bc0a32b5b9edf48c1b7ef06721a6f505704c0628492677347d0bc7e0af8d2c4ba30ce5e0aa1f806e5ee8eee96c86ae0aff2058919e85d9d05d25b
+EBUILD cmake-3.9.3.ebuild 5975 SHA256 fc9aa836630ebaeafcdc37a23f9871b354b1dd6037f233020adca3c9ccda745b SHA512 b7f3c9d2f72a708e19359b8a0737aecbaacf09ce7b817c785789008353ad758ff7ce889a10e52bce5ac3cfcda4cc1a518f7a49a553e902e3a53e10dc2177849c WHIRLPOOL f2ff6c773f31032d227c1006e5c7c88857a92824168e13afe9ba84d0d9bff88d3086f8837e0c4f852ec27ba2ccac729e262ef1b66c67cda2fb0c1e9d50312799
+EBUILD cmake-3.9.4.ebuild 5975 SHA256 fc9aa836630ebaeafcdc37a23f9871b354b1dd6037f233020adca3c9ccda745b SHA512 b7f3c9d2f72a708e19359b8a0737aecbaacf09ce7b817c785789008353ad758ff7ce889a10e52bce5ac3cfcda4cc1a518f7a49a553e902e3a53e10dc2177849c WHIRLPOOL f2ff6c773f31032d227c1006e5c7c88857a92824168e13afe9ba84d0d9bff88d3086f8837e0c4f852ec27ba2ccac729e262ef1b66c67cda2fb0c1e9d50312799
+MISC ChangeLog 19332 SHA256 2a3d0d8e5bfffb597c1906abb1eca3af3f997ac21673c469afbf6158a6b81b61 SHA512 83435d8060bf76931f512560a3ac4e9ae1f76073e9b8d05f75a5a4fb5d809a949bd55c4891b72475c7f8e19a4d31eb9e23799131fdc66ead7877790d43d3337e WHIRLPOOL 5e3bb823b8460257e98e0431bf55d44e5279f993724293f421e8348640ccf59980ca804bb247dc1f0f19d45aec45245dbf2f6c5d6bd075ed6350167782412c52
+MISC ChangeLog-2015 51428 SHA256 7e79c94e1bc0bc7071915d8e7bdba4812c823812de795931aec29749c410bb8e SHA512 cf217bebf0e7cfcb5771dce5a6df4fb9a4ecf77d296928de0dd2f3f34852a509a403b5b6351b49ab0ce6de755631d7e01b395a5bb9d6be5d6aa49f00185acc8a WHIRLPOOL 8f8585bf220e0a89a7f404108fdd4bc290ca37daf5d24ec3244b0bea8616b066725d7800d94697696a98fd49d6cb7cf834014ff4a0a2b77641119af3a186d451
+MISC metadata.xml 430 SHA256 ea1b72b7fe5cf3e1ac1dce7d4d2924300ff032b9ba410e58c2d26afe68d8e8b8 SHA512 9a71665c1654c038746d4cdd8217382d38493a7064cf4b6a6b12aef632b05e40e530ceb923fc389b182e1b513cbe4c149921d8036565ad8247b948640d5fa015 WHIRLPOOL 36f7027826bdc0614352474beeb56d230a6fdde421bdab8c72e9a8cab9dd0038bb48b49a96bd722f6aaab62ae98402523db7adee2ec28d73bf0984d29c05f5de
diff --git a/dev-util/cmake/cmake-3.7.2.ebuild b/dev-util/cmake/cmake-3.7.2.ebuild
new file mode 100644
index 000000000000..c6248dac5925
--- /dev/null
+++ b/dev-util/cmake/cmake-3.7.2.ebuild
@@ -0,0 +1,200 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+CMAKE_MAKEFILE_GENERATOR="emake"
+CMAKE_REMOVE_MODULES="no"
+inherit bash-completion-r1 elisp-common toolchain-funcs eutils versionator cmake-utils virtualx flag-o-matic
+
+MY_P="${P/_/-}"
+
+DESCRIPTION="Cross platform Make"
+HOMEPAGE="https://cmake.org/"
+SRC_URI="https://cmake.org/files/v$(get_version_component_range 1-2)/${MY_P}.tar.gz"
+
+LICENSE="CMake"
+SLOT="0"
+[[ "${PV}" = *_rc* ]] || \
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
+IUSE="doc emacs system-jsoncpp ncurses qt5"
+
+RDEPEND="
+ >=app-arch/libarchive-3.0.0:=
+ >=dev-libs/expat-2.0.1
+ >=dev-libs/libuv-1.0.0:=
+ >=net-misc/curl-7.21.5[ssl]
+ sys-libs/zlib
+ virtual/pkgconfig
+ emacs? ( virtual/emacs )
+ ncurses? ( sys-libs/ncurses:0= )
+ qt5? (
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtwidgets:5
+ )
+ system-jsoncpp? ( >=dev-libs/jsoncpp-0.6.0_rc2:0= )
+"
+DEPEND="${RDEPEND}
+ doc? ( dev-python/sphinx )
+"
+
+S="${WORKDIR}/${MY_P}"
+
+SITEFILE="50${PN}-gentoo.el"
+
+PATCHES=(
+ # prefix
+ "${FILESDIR}"/${PN}-3.4.0_rc1-darwin-bundle.patch
+ "${FILESDIR}"/${PN}-3.0.0-prefix-dirs.patch
+ "${FILESDIR}"/${PN}-3.1.0-darwin-isysroot.patch
+
+ # handle gentoo packaging in find modules
+ "${FILESDIR}"/${PN}-2.8.12.1-FindImageMagick.patch
+ "${FILESDIR}"/${PN}-3.0.0-FindBLAS.patch
+ "${FILESDIR}"/${PN}-3.0.0-FindBoost-python.patch
+ "${FILESDIR}"/${PN}-3.0.2-FindLAPACK.patch
+ "${FILESDIR}"/${PN}-3.5.2-FindQt4.patch
+
+ # respect python eclasses
+ "${FILESDIR}"/${PN}-2.8.10.2-FindPythonLibs.patch
+ "${FILESDIR}"/${PN}-3.1.0-FindPythonInterp.patch
+
+ # upstream fixes (can usually be removed with a version bump)
+)
+
+cmake_src_bootstrap() {
+ # Cleanup args to extract only JOBS.
+ # Because bootstrap does not know anything else.
+ echo ${MAKEOPTS} | egrep -o '(\-j|\-\-jobs)(=?|[[:space:]]*)[[:digit:]]+' > /dev/null
+ if [ $? -eq 0 ]; then
+ par_arg=$(echo ${MAKEOPTS} | egrep -o '(\-j|\-\-jobs)(=?|[[:space:]]*)[[:digit:]]+' | tail -n1 | egrep -o '[[:digit:]]+')
+ par_arg="--parallel=${par_arg}"
+ else
+ par_arg="--parallel=1"
+ fi
+
+ # disable running of cmake in boostrap command
+ sed -i \
+ -e '/"${cmake_bootstrap_dir}\/cmake"/s/^/#DONOTRUN /' \
+ bootstrap || die "sed failed"
+
+ # execinfo.h on Solaris isn't quite what it is on Darwin
+ if [[ ${CHOST} == *-solaris* ]] ; then
+ sed -i -e 's/execinfo\.h/blablabla.h/' Source/kwsys/CMakeLists.txt || die
+ fi
+
+ tc-export CC CXX LD
+
+ # bootstrap script isn't exactly /bin/sh compatible
+ ${CONFIG_SHELL:-sh} ./bootstrap \
+ --prefix="${T}/cmakestrap/" \
+ ${par_arg} \
+ || die "Bootstrap failed"
+}
+
+cmake_src_test() {
+ # fix OutDir and SelectLibraryConfigurations tests
+ # these are altered thanks to our eclass
+ sed -i -e 's:#IGNORE ::g' \
+ "${S}"/Tests/{OutDir,CMakeOnly/SelectLibraryConfigurations}/CMakeLists.txt \
+ || die
+
+ pushd "${BUILD_DIR}" > /dev/null
+
+ local ctestargs
+ [[ -n ${TEST_VERBOSE} ]] && ctestargs="--extra-verbose --output-on-failure"
+
+ # Excluded tests:
+ # BootstrapTest: we actualy bootstrap it every time so why test it.
+ # BundleUtilities: bundle creation broken
+ # CTest.updatecvs: which fails to commit as root
+ # Fortran: requires fortran
+ # Qt4Deploy, which tries to break sandbox and ignores prefix
+ # Qt5Autogen, which breaks for unknown reason
+ # TestUpload, which requires network access
+ "${BUILD_DIR}"/bin/ctest ${ctestargs} \
+ -E "(BootstrapTest|BundleUtilities|CTest.UpdateCVS|Fortran|Qt4Deploy|Qt5Autogen|TestUpload)" \
+ || die "Tests failed"
+
+ popd > /dev/null
+}
+
+src_prepare() {
+ cmake-utils_src_prepare
+
+ # Add gcc libs to the default link paths
+ sed -i \
+ -e "s|@GENTOO_PORTAGE_GCCLIBDIR@|${EPREFIX}/usr/${CHOST}/lib/|g" \
+ -e "s|@GENTOO_PORTAGE_EPREFIX@|${EPREFIX}/|g" \
+ Modules/Platform/{UnixPaths,Darwin}.cmake || die "sed failed"
+ if ! has_version \>=${CATEGORY}/${PN}-3.4.0_rc1 ; then
+ CMAKE_BINARY="${S}/Bootstrap.cmk/cmake"
+ cmake_src_bootstrap
+ fi
+}
+
+src_configure() {
+ # Fix linking on Solaris
+ [[ ${CHOST} == *-solaris* ]] && append-ldflags -lsocket -lnsl
+
+ local mycmakeargs=(
+ -DCMAKE_USE_SYSTEM_LIBRARIES=ON
+ -DCMAKE_USE_SYSTEM_LIBRARY_JSONCPP=$(usex system-jsoncpp)
+ -DCMAKE_INSTALL_PREFIX="${EPREFIX}"/usr
+ -DCMAKE_DOC_DIR=/share/doc/${PF}
+ -DCMAKE_MAN_DIR=/share/man
+ -DCMAKE_DATA_DIR=/share/${PN}
+ -DSPHINX_MAN=$(usex doc)
+ -DSPHINX_HTML=$(usex doc)
+ -DBUILD_CursesDialog="$(usex ncurses)"
+ )
+
+ if use qt5 ; then
+ mycmakeargs+=(
+ -DBUILD_QtDialog=ON
+ $(cmake-utils_use_find_package qt5 Qt5Widgets)
+ )
+ fi
+
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+ use emacs && elisp-compile Auxiliary/cmake-mode.el
+}
+
+src_test() {
+ virtx cmake_src_test
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ if use emacs; then
+ elisp-install ${PN} Auxiliary/cmake-mode.el Auxiliary/cmake-mode.elc
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}"
+ fi
+
+ insinto /usr/share/vim/vimfiles/syntax
+ doins Auxiliary/vim/syntax/cmake.vim
+
+ insinto /usr/share/vim/vimfiles/indent
+ doins Auxiliary/vim/indent/cmake.vim
+
+ insinto /usr/share/vim/vimfiles/ftdetect
+ doins "${FILESDIR}/${PN}.vim"
+
+ dobashcomp Auxiliary/bash-completion/{${PN},ctest,cpack}
+
+ rm -r "${ED}"/usr/share/cmake/{completions,editors} || die
+}
+
+pkg_postinst() {
+ use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}
diff --git a/dev-util/cmake/cmake-3.8.2.ebuild b/dev-util/cmake/cmake-3.8.2.ebuild
new file mode 100644
index 000000000000..a34f32fbf76c
--- /dev/null
+++ b/dev-util/cmake/cmake-3.8.2.ebuild
@@ -0,0 +1,204 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+CMAKE_MAKEFILE_GENERATOR="emake"
+CMAKE_REMOVE_MODULES="no"
+inherit bash-completion-r1 elisp-common toolchain-funcs eutils versionator cmake-utils virtualx flag-o-matic
+
+MY_P="${P/_/-}"
+
+DESCRIPTION="Cross platform Make"
+HOMEPAGE="https://cmake.org/"
+SRC_URI="https://cmake.org/files/v$(get_version_component_range 1-2)/${MY_P}.tar.gz"
+
+LICENSE="CMake"
+SLOT="0"
+[[ "${PV}" = *_rc* ]] || \
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
+IUSE="doc emacs server system-jsoncpp ncurses qt5"
+
+RDEPEND="
+ app-crypt/rhash
+ >=app-arch/libarchive-3.0.0:=
+ >=dev-libs/expat-2.0.1
+ >=net-misc/curl-7.21.5[ssl]
+ sys-libs/zlib
+ virtual/pkgconfig
+ emacs? ( virtual/emacs )
+ ncurses? ( sys-libs/ncurses:0= )
+ qt5? (
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtwidgets:5
+ )
+ server? ( >=dev-libs/libuv-1.0.0:= )
+ system-jsoncpp? ( >=dev-libs/jsoncpp-0.6.0_rc2:0= )
+"
+DEPEND="${RDEPEND}
+ doc? ( dev-python/sphinx )
+"
+
+S="${WORKDIR}/${MY_P}"
+
+SITEFILE="50${PN}-gentoo.el"
+
+PATCHES=(
+ # prefix
+ "${FILESDIR}"/${PN}-3.4.0_rc1-darwin-bundle.patch
+ "${FILESDIR}"/${PN}-3.0.0-prefix-dirs.patch
+ "${FILESDIR}"/${PN}-3.1.0-darwin-isysroot.patch
+
+ # handle gentoo packaging in find modules
+ "${FILESDIR}"/${PN}-2.8.12.1-FindImageMagick.patch
+ "${FILESDIR}"/${PN}-3.0.0-FindBLAS.patch
+ "${FILESDIR}"/${PN}-3.8.0_rc2-FindBoost-python.patch
+ "${FILESDIR}"/${PN}-3.0.2-FindLAPACK.patch
+ "${FILESDIR}"/${PN}-3.5.2-FindQt4.patch
+
+ # respect python eclasses
+ "${FILESDIR}"/${PN}-2.8.10.2-FindPythonLibs.patch
+ "${FILESDIR}"/${PN}-3.1.0-FindPythonInterp.patch
+
+ # upstream fixes (can usually be removed with a version bump)
+)
+
+cmake_src_bootstrap() {
+ # Cleanup args to extract only JOBS.
+ # Because bootstrap does not know anything else.
+ echo ${MAKEOPTS} | egrep -o '(\-j|\-\-jobs)(=?|[[:space:]]*)[[:digit:]]+' > /dev/null
+ if [ $? -eq 0 ]; then
+ par_arg=$(echo ${MAKEOPTS} | egrep -o '(\-j|\-\-jobs)(=?|[[:space:]]*)[[:digit:]]+' | tail -n1 | egrep -o '[[:digit:]]+')
+ par_arg="--parallel=${par_arg}"
+ else
+ par_arg="--parallel=1"
+ fi
+
+ # disable running of cmake in boostrap command
+ sed -i \
+ -e '/"${cmake_bootstrap_dir}\/cmake"/s/^/#DONOTRUN /' \
+ bootstrap || die "sed failed"
+
+ # execinfo.h on Solaris isn't quite what it is on Darwin
+ if [[ ${CHOST} == *-solaris* ]] ; then
+ sed -i -e 's/execinfo\.h/blablabla.h/' Source/kwsys/CMakeLists.txt || die
+ fi
+
+ tc-export CC CXX LD
+
+ # bootstrap script isn't exactly /bin/sh compatible
+ ${CONFIG_SHELL:-sh} ./bootstrap \
+ --prefix="${T}/cmakestrap/" \
+ ${par_arg} \
+ || die "Bootstrap failed"
+}
+
+cmake_src_test() {
+ # fix OutDir and SelectLibraryConfigurations tests
+ # these are altered thanks to our eclass
+ sed -i -e 's:#IGNORE ::g' \
+ "${S}"/Tests/{OutDir,CMakeOnly/SelectLibraryConfigurations}/CMakeLists.txt \
+ || die
+
+ pushd "${BUILD_DIR}" > /dev/null
+
+ local ctestargs
+ [[ -n ${TEST_VERBOSE} ]] && ctestargs="--extra-verbose --output-on-failure"
+
+ # Excluded tests:
+ # BootstrapTest: we actualy bootstrap it every time so why test it.
+ # BundleUtilities: bundle creation broken
+ # CTest.updatecvs: which fails to commit as root
+ # Fortran: requires fortran
+ # Qt4Deploy, which tries to break sandbox and ignores prefix
+ # RunCMake.CPack_RPM: breaks if app-arch/rpm is installed because
+ # debugedit binary is not in the expected location
+ # TestUpload, which requires network access
+ "${BUILD_DIR}"/bin/ctest ${ctestargs} \
+ -E "(BootstrapTest|BundleUtilities|CTest.UpdateCVS|Fortran|Qt4Deploy|RunCMake.CPack_RPM|TestUpload)" \
+ || die "Tests failed"
+
+ popd > /dev/null
+}
+
+src_prepare() {
+ cmake-utils_src_prepare
+
+ # Add gcc libs to the default link paths
+ sed -i \
+ -e "s|@GENTOO_PORTAGE_GCCLIBDIR@|${EPREFIX}/usr/${CHOST}/lib/|g" \
+ -e "s|@GENTOO_PORTAGE_EPREFIX@|${EPREFIX}/|g" \
+ Modules/Platform/{UnixPaths,Darwin}.cmake || die "sed failed"
+ if ! has_version \>=${CATEGORY}/${PN}-3.4.0_rc1 ; then
+ CMAKE_BINARY="${S}/Bootstrap.cmk/cmake"
+ cmake_src_bootstrap
+ fi
+}
+
+src_configure() {
+ # Fix linking on Solaris
+ [[ ${CHOST} == *-solaris* ]] && append-ldflags -lsocket -lnsl
+
+ local mycmakeargs=(
+ -DCMAKE_USE_SYSTEM_LIBRARIES=ON
+ -DCMAKE_USE_SYSTEM_LIBRARY_JSONCPP=$(usex system-jsoncpp)
+ -DCMAKE_INSTALL_PREFIX="${EPREFIX}"/usr
+ -DCMAKE_DOC_DIR=/share/doc/${PF}
+ -DCMAKE_MAN_DIR=/share/man
+ -DCMAKE_DATA_DIR=/share/${PN}
+ -DSPHINX_MAN=$(usex doc)
+ -DSPHINX_HTML=$(usex doc)
+ -DBUILD_CursesDialog="$(usex ncurses)"
+ -DCMake_ENABLE_SERVER_MODE="$(usex server)"
+ -DCMAKE_USE_LIBUV="$(usex server)"
+ )
+
+ if use qt5 ; then
+ mycmakeargs+=(
+ -DBUILD_QtDialog=ON
+ $(cmake-utils_use_find_package qt5 Qt5Widgets)
+ )
+ fi
+
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+ use emacs && elisp-compile Auxiliary/cmake-mode.el
+}
+
+src_test() {
+ virtx cmake_src_test
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ if use emacs; then
+ elisp-install ${PN} Auxiliary/cmake-mode.el Auxiliary/cmake-mode.elc
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}"
+ fi
+
+ insinto /usr/share/vim/vimfiles/syntax
+ doins Auxiliary/vim/syntax/cmake.vim
+
+ insinto /usr/share/vim/vimfiles/indent
+ doins Auxiliary/vim/indent/cmake.vim
+
+ insinto /usr/share/vim/vimfiles/ftdetect
+ doins "${FILESDIR}/${PN}.vim"
+
+ dobashcomp Auxiliary/bash-completion/{${PN},ctest,cpack}
+
+ rm -r "${ED}"/usr/share/cmake/{completions,editors} || die
+}
+
+pkg_postinst() {
+ use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}
diff --git a/dev-util/cmake/cmake-3.9.3.ebuild b/dev-util/cmake/cmake-3.9.3.ebuild
new file mode 100644
index 000000000000..48cd86d38774
--- /dev/null
+++ b/dev-util/cmake/cmake-3.9.3.ebuild
@@ -0,0 +1,214 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+CMAKE_MAKEFILE_GENERATOR="emake"
+CMAKE_REMOVE_MODULES="no"
+inherit bash-completion-r1 elisp-common eutils flag-o-matic gnome2-utils toolchain-funcs versionator virtualx xdg-utils cmake-utils
+
+MY_P="${P/_/-}"
+
+DESCRIPTION="Cross platform Make"
+HOMEPAGE="https://cmake.org/"
+SRC_URI="https://cmake.org/files/v$(get_version_component_range 1-2)/${MY_P}.tar.gz"
+
+LICENSE="CMake"
+SLOT="0"
+[[ "${PV}" = *_rc* ]] || \
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
+IUSE="doc emacs server system-jsoncpp ncurses qt5"
+
+RDEPEND="
+ app-crypt/rhash
+ >=app-arch/libarchive-3.0.0:=
+ >=dev-libs/expat-2.0.1
+ >=net-misc/curl-7.21.5[ssl]
+ sys-libs/zlib
+ virtual/pkgconfig
+ emacs? ( virtual/emacs )
+ ncurses? ( sys-libs/ncurses:0= )
+ qt5? (
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtwidgets:5
+ )
+ server? ( >=dev-libs/libuv-1.0.0:= )
+ system-jsoncpp? ( >=dev-libs/jsoncpp-0.6.0_rc2:0= )
+"
+DEPEND="${RDEPEND}
+ doc? ( dev-python/sphinx )
+"
+
+S="${WORKDIR}/${MY_P}"
+
+SITEFILE="50${PN}-gentoo.el"
+
+PATCHES=(
+ # prefix
+ "${FILESDIR}"/${PN}-3.4.0_rc1-darwin-bundle.patch
+ "${FILESDIR}"/${PN}-3.9.0_rc2-prefix-dirs.patch
+ "${FILESDIR}"/${PN}-3.1.0-darwin-isysroot.patch
+
+ # handle gentoo packaging in find modules
+ "${FILESDIR}"/${PN}-3.9.0_rc2-FindImageMagick.patch
+ "${FILESDIR}"/${PN}-3.0.0-FindBLAS.patch
+ "${FILESDIR}"/${PN}-3.8.0_rc2-FindBoost-python.patch
+ "${FILESDIR}"/${PN}-3.0.2-FindLAPACK.patch
+ "${FILESDIR}"/${PN}-3.5.2-FindQt4.patch
+
+ # respect python eclasses
+ "${FILESDIR}"/${PN}-2.8.10.2-FindPythonLibs.patch
+ "${FILESDIR}"/${PN}-3.9.0_rc2-FindPythonInterp.patch
+
+ # upstream fixes (can usually be removed with a version bump)
+)
+
+cmake_src_bootstrap() {
+ # Cleanup args to extract only JOBS.
+ # Because bootstrap does not know anything else.
+ echo ${MAKEOPTS} | egrep -o '(\-j|\-\-jobs)(=?|[[:space:]]*)[[:digit:]]+' > /dev/null
+ if [ $? -eq 0 ]; then
+ par_arg=$(echo ${MAKEOPTS} | egrep -o '(\-j|\-\-jobs)(=?|[[:space:]]*)[[:digit:]]+' | tail -n1 | egrep -o '[[:digit:]]+')
+ par_arg="--parallel=${par_arg}"
+ else
+ par_arg="--parallel=1"
+ fi
+
+ # disable running of cmake in boostrap command
+ sed -i \
+ -e '/"${cmake_bootstrap_dir}\/cmake"/s/^/#DONOTRUN /' \
+ bootstrap || die "sed failed"
+
+ # execinfo.h on Solaris isn't quite what it is on Darwin
+ if [[ ${CHOST} == *-solaris* ]] ; then
+ sed -i -e 's/execinfo\.h/blablabla.h/' Source/kwsys/CMakeLists.txt || die
+ fi
+
+ tc-export CC CXX LD
+
+ # bootstrap script isn't exactly /bin/sh compatible
+ ${CONFIG_SHELL:-sh} ./bootstrap \
+ --prefix="${T}/cmakestrap/" \
+ ${par_arg} \
+ || die "Bootstrap failed"
+}
+
+cmake_src_test() {
+ # fix OutDir and SelectLibraryConfigurations tests
+ # these are altered thanks to our eclass
+ sed -i -e 's:#IGNORE ::g' \
+ "${S}"/Tests/{OutDir,CMakeOnly/SelectLibraryConfigurations}/CMakeLists.txt \
+ || die
+
+ pushd "${BUILD_DIR}" > /dev/null
+
+ local ctestargs
+ [[ -n ${TEST_VERBOSE} ]] && ctestargs="--extra-verbose --output-on-failure"
+
+ # Excluded tests:
+ # BootstrapTest: we actualy bootstrap it every time so why test it.
+ # BundleUtilities: bundle creation broken
+ # CTest.updatecvs: which fails to commit as root
+ # Fortran: requires fortran
+ # Qt4Deploy, which tries to break sandbox and ignores prefix
+ # RunCMake.CPack_RPM: breaks if app-arch/rpm is installed because
+ # debugedit binary is not in the expected location
+ # TestUpload, which requires network access
+ "${BUILD_DIR}"/bin/ctest ${ctestargs} \
+ -E "(BootstrapTest|BundleUtilities|CTest.UpdateCVS|Fortran|Qt4Deploy|RunCMake.CPack_RPM|TestUpload)" \
+ || die "Tests failed"
+
+ popd > /dev/null
+}
+
+src_prepare() {
+ cmake-utils_src_prepare
+
+ # Add gcc libs to the default link paths
+ sed -i \
+ -e "s|@GENTOO_PORTAGE_GCCLIBDIR@|${EPREFIX}/usr/${CHOST}/lib/|g" \
+ -e "s|@GENTOO_PORTAGE_EPREFIX@|${EPREFIX}/|g" \
+ Modules/Platform/{UnixPaths,Darwin}.cmake || die "sed failed"
+ if ! has_version \>=${CATEGORY}/${PN}-3.4.0_rc1 ; then
+ CMAKE_BINARY="${S}/Bootstrap.cmk/cmake"
+ cmake_src_bootstrap
+ fi
+}
+
+src_configure() {
+ # Fix linking on Solaris
+ [[ ${CHOST} == *-solaris* ]] && append-ldflags -lsocket -lnsl
+
+ local mycmakeargs=(
+ -DCMAKE_USE_SYSTEM_LIBRARIES=ON
+ -DCMAKE_USE_SYSTEM_LIBRARY_JSONCPP=$(usex system-jsoncpp)
+ -DCMAKE_INSTALL_PREFIX="${EPREFIX}"/usr
+ -DCMAKE_DOC_DIR=/share/doc/${PF}
+ -DCMAKE_MAN_DIR=/share/man
+ -DCMAKE_DATA_DIR=/share/${PN}
+ -DSPHINX_MAN=$(usex doc)
+ -DSPHINX_HTML=$(usex doc)
+ -DBUILD_CursesDialog="$(usex ncurses)"
+ -DCMake_ENABLE_SERVER_MODE="$(usex server)"
+ -DCMAKE_USE_LIBUV="$(usex server)"
+ )
+
+ if use qt5 ; then
+ mycmakeargs+=(
+ -DBUILD_QtDialog=ON
+ $(cmake-utils_use_find_package qt5 Qt5Widgets)
+ )
+ fi
+
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+ use emacs && elisp-compile Auxiliary/cmake-mode.el
+}
+
+src_test() {
+ virtx cmake_src_test
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ if use emacs; then
+ elisp-install ${PN} Auxiliary/cmake-mode.el Auxiliary/cmake-mode.elc
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}"
+ fi
+
+ insinto /usr/share/vim/vimfiles/syntax
+ doins Auxiliary/vim/syntax/cmake.vim
+
+ insinto /usr/share/vim/vimfiles/indent
+ doins Auxiliary/vim/indent/cmake.vim
+
+ insinto /usr/share/vim/vimfiles/ftdetect
+ doins "${FILESDIR}/${PN}.vim"
+
+ dobashcomp Auxiliary/bash-completion/{${PN},ctest,cpack}
+
+ rm -r "${ED}"/usr/share/cmake/{completions,editors} || die
+}
+
+pkg_postinst() {
+ use emacs && elisp-site-regen
+ if use qt5; then
+ gnome2_icon_cache_update
+ xdg_desktop_database_update
+ xdg_mimeinfo_database_update
+ fi
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+ if use qt5; then
+ gnome2_icon_cache_update
+ xdg_desktop_database_update
+ xdg_mimeinfo_database_update
+ fi
+}
diff --git a/dev-util/cmake/cmake-3.9.4.ebuild b/dev-util/cmake/cmake-3.9.4.ebuild
new file mode 100644
index 000000000000..48cd86d38774
--- /dev/null
+++ b/dev-util/cmake/cmake-3.9.4.ebuild
@@ -0,0 +1,214 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+CMAKE_MAKEFILE_GENERATOR="emake"
+CMAKE_REMOVE_MODULES="no"
+inherit bash-completion-r1 elisp-common eutils flag-o-matic gnome2-utils toolchain-funcs versionator virtualx xdg-utils cmake-utils
+
+MY_P="${P/_/-}"
+
+DESCRIPTION="Cross platform Make"
+HOMEPAGE="https://cmake.org/"
+SRC_URI="https://cmake.org/files/v$(get_version_component_range 1-2)/${MY_P}.tar.gz"
+
+LICENSE="CMake"
+SLOT="0"
+[[ "${PV}" = *_rc* ]] || \
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
+IUSE="doc emacs server system-jsoncpp ncurses qt5"
+
+RDEPEND="
+ app-crypt/rhash
+ >=app-arch/libarchive-3.0.0:=
+ >=dev-libs/expat-2.0.1
+ >=net-misc/curl-7.21.5[ssl]
+ sys-libs/zlib
+ virtual/pkgconfig
+ emacs? ( virtual/emacs )
+ ncurses? ( sys-libs/ncurses:0= )
+ qt5? (
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtwidgets:5
+ )
+ server? ( >=dev-libs/libuv-1.0.0:= )
+ system-jsoncpp? ( >=dev-libs/jsoncpp-0.6.0_rc2:0= )
+"
+DEPEND="${RDEPEND}
+ doc? ( dev-python/sphinx )
+"
+
+S="${WORKDIR}/${MY_P}"
+
+SITEFILE="50${PN}-gentoo.el"
+
+PATCHES=(
+ # prefix
+ "${FILESDIR}"/${PN}-3.4.0_rc1-darwin-bundle.patch
+ "${FILESDIR}"/${PN}-3.9.0_rc2-prefix-dirs.patch
+ "${FILESDIR}"/${PN}-3.1.0-darwin-isysroot.patch
+
+ # handle gentoo packaging in find modules
+ "${FILESDIR}"/${PN}-3.9.0_rc2-FindImageMagick.patch
+ "${FILESDIR}"/${PN}-3.0.0-FindBLAS.patch
+ "${FILESDIR}"/${PN}-3.8.0_rc2-FindBoost-python.patch
+ "${FILESDIR}"/${PN}-3.0.2-FindLAPACK.patch
+ "${FILESDIR}"/${PN}-3.5.2-FindQt4.patch
+
+ # respect python eclasses
+ "${FILESDIR}"/${PN}-2.8.10.2-FindPythonLibs.patch
+ "${FILESDIR}"/${PN}-3.9.0_rc2-FindPythonInterp.patch
+
+ # upstream fixes (can usually be removed with a version bump)
+)
+
+cmake_src_bootstrap() {
+ # Cleanup args to extract only JOBS.
+ # Because bootstrap does not know anything else.
+ echo ${MAKEOPTS} | egrep -o '(\-j|\-\-jobs)(=?|[[:space:]]*)[[:digit:]]+' > /dev/null
+ if [ $? -eq 0 ]; then
+ par_arg=$(echo ${MAKEOPTS} | egrep -o '(\-j|\-\-jobs)(=?|[[:space:]]*)[[:digit:]]+' | tail -n1 | egrep -o '[[:digit:]]+')
+ par_arg="--parallel=${par_arg}"
+ else
+ par_arg="--parallel=1"
+ fi
+
+ # disable running of cmake in boostrap command
+ sed -i \
+ -e '/"${cmake_bootstrap_dir}\/cmake"/s/^/#DONOTRUN /' \
+ bootstrap || die "sed failed"
+
+ # execinfo.h on Solaris isn't quite what it is on Darwin
+ if [[ ${CHOST} == *-solaris* ]] ; then
+ sed -i -e 's/execinfo\.h/blablabla.h/' Source/kwsys/CMakeLists.txt || die
+ fi
+
+ tc-export CC CXX LD
+
+ # bootstrap script isn't exactly /bin/sh compatible
+ ${CONFIG_SHELL:-sh} ./bootstrap \
+ --prefix="${T}/cmakestrap/" \
+ ${par_arg} \
+ || die "Bootstrap failed"
+}
+
+cmake_src_test() {
+ # fix OutDir and SelectLibraryConfigurations tests
+ # these are altered thanks to our eclass
+ sed -i -e 's:#IGNORE ::g' \
+ "${S}"/Tests/{OutDir,CMakeOnly/SelectLibraryConfigurations}/CMakeLists.txt \
+ || die
+
+ pushd "${BUILD_DIR}" > /dev/null
+
+ local ctestargs
+ [[ -n ${TEST_VERBOSE} ]] && ctestargs="--extra-verbose --output-on-failure"
+
+ # Excluded tests:
+ # BootstrapTest: we actualy bootstrap it every time so why test it.
+ # BundleUtilities: bundle creation broken
+ # CTest.updatecvs: which fails to commit as root
+ # Fortran: requires fortran
+ # Qt4Deploy, which tries to break sandbox and ignores prefix
+ # RunCMake.CPack_RPM: breaks if app-arch/rpm is installed because
+ # debugedit binary is not in the expected location
+ # TestUpload, which requires network access
+ "${BUILD_DIR}"/bin/ctest ${ctestargs} \
+ -E "(BootstrapTest|BundleUtilities|CTest.UpdateCVS|Fortran|Qt4Deploy|RunCMake.CPack_RPM|TestUpload)" \
+ || die "Tests failed"
+
+ popd > /dev/null
+}
+
+src_prepare() {
+ cmake-utils_src_prepare
+
+ # Add gcc libs to the default link paths
+ sed -i \
+ -e "s|@GENTOO_PORTAGE_GCCLIBDIR@|${EPREFIX}/usr/${CHOST}/lib/|g" \
+ -e "s|@GENTOO_PORTAGE_EPREFIX@|${EPREFIX}/|g" \
+ Modules/Platform/{UnixPaths,Darwin}.cmake || die "sed failed"
+ if ! has_version \>=${CATEGORY}/${PN}-3.4.0_rc1 ; then
+ CMAKE_BINARY="${S}/Bootstrap.cmk/cmake"
+ cmake_src_bootstrap
+ fi
+}
+
+src_configure() {
+ # Fix linking on Solaris
+ [[ ${CHOST} == *-solaris* ]] && append-ldflags -lsocket -lnsl
+
+ local mycmakeargs=(
+ -DCMAKE_USE_SYSTEM_LIBRARIES=ON
+ -DCMAKE_USE_SYSTEM_LIBRARY_JSONCPP=$(usex system-jsoncpp)
+ -DCMAKE_INSTALL_PREFIX="${EPREFIX}"/usr
+ -DCMAKE_DOC_DIR=/share/doc/${PF}
+ -DCMAKE_MAN_DIR=/share/man
+ -DCMAKE_DATA_DIR=/share/${PN}
+ -DSPHINX_MAN=$(usex doc)
+ -DSPHINX_HTML=$(usex doc)
+ -DBUILD_CursesDialog="$(usex ncurses)"
+ -DCMake_ENABLE_SERVER_MODE="$(usex server)"
+ -DCMAKE_USE_LIBUV="$(usex server)"
+ )
+
+ if use qt5 ; then
+ mycmakeargs+=(
+ -DBUILD_QtDialog=ON
+ $(cmake-utils_use_find_package qt5 Qt5Widgets)
+ )
+ fi
+
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+ use emacs && elisp-compile Auxiliary/cmake-mode.el
+}
+
+src_test() {
+ virtx cmake_src_test
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ if use emacs; then
+ elisp-install ${PN} Auxiliary/cmake-mode.el Auxiliary/cmake-mode.elc
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}"
+ fi
+
+ insinto /usr/share/vim/vimfiles/syntax
+ doins Auxiliary/vim/syntax/cmake.vim
+
+ insinto /usr/share/vim/vimfiles/indent
+ doins Auxiliary/vim/indent/cmake.vim
+
+ insinto /usr/share/vim/vimfiles/ftdetect
+ doins "${FILESDIR}/${PN}.vim"
+
+ dobashcomp Auxiliary/bash-completion/{${PN},ctest,cpack}
+
+ rm -r "${ED}"/usr/share/cmake/{completions,editors} || die
+}
+
+pkg_postinst() {
+ use emacs && elisp-site-regen
+ if use qt5; then
+ gnome2_icon_cache_update
+ xdg_desktop_database_update
+ xdg_mimeinfo_database_update
+ fi
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+ if use qt5; then
+ gnome2_icon_cache_update
+ xdg_desktop_database_update
+ xdg_mimeinfo_database_update
+ fi
+}
diff --git a/dev-util/cmake/files/50cmake-gentoo.el b/dev-util/cmake/files/50cmake-gentoo.el
new file mode 100644
index 000000000000..e4a1a6d47cbc
--- /dev/null
+++ b/dev-util/cmake/files/50cmake-gentoo.el
@@ -0,0 +1,4 @@
+(add-to-list 'load-path "@SITELISP@")
+(autoload 'cmake-mode "cmake-mode" "Major mode for editing CMake files." t)
+(add-to-list 'auto-mode-alist '("CMakeLists\\.txt\\'" . cmake-mode))
+(add-to-list 'auto-mode-alist '("\\.cmake\\'" . cmake-mode))
diff --git a/dev-util/cmake/files/cmake-2.8.10.2-FindPythonLibs.patch b/dev-util/cmake/files/cmake-2.8.10.2-FindPythonLibs.patch
new file mode 100644
index 000000000000..5f9c26658f31
--- /dev/null
+++ b/dev-util/cmake/files/cmake-2.8.10.2-FindPythonLibs.patch
@@ -0,0 +1,24 @@
+diff --git a/Modules/FindPythonLibs.cmake b/Modules/FindPythonLibs.cmake
+index bffa9fb..8fc90ee 100644
+--- a/Modules/FindPythonLibs.cmake
++++ b/Modules/FindPythonLibs.cmake
+@@ -74,6 +74,19 @@ set(_Python_VERSIONS
+ ${_PYTHON_FIND_OTHER_VERSIONS}
+ )
+
++# Gentoo portage requires that you use exactly the given python version
++if (CMAKE_GENTOO_BUILD OR CMAKE_BUILD_TYPE STREQUAL Gentoo)
++ execute_process(COMMAND python -c "import sys; sys.stdout.write('.'.join([str(x) for x in sys.version_info[:2]]))"
++ OUTPUT_VARIABLE _Gentoo_Python_VERSION)
++ list(FIND _Python_VERSIONS "${_Gentoo_Python_VERSION}" _Gentoo_Python_INDEX)
++ if (_Gentoo_Python_INDEX EQUAL -1)
++ # the current Gentoo python version is not compatible with what is requested
++ set(_Python_VERSIONS)
++ else ()
++ set(_Python_VERSIONS "${_Gentoo_Python_VERSION}")
++ endif ()
++endif()
++
+ unset(_PYTHON_FIND_OTHER_VERSIONS)
+ unset(_PYTHON1_VERSIONS)
+ unset(_PYTHON2_VERSIONS)
diff --git a/dev-util/cmake/files/cmake-2.8.12.1-FindImageMagick.patch b/dev-util/cmake/files/cmake-2.8.12.1-FindImageMagick.patch
new file mode 100644
index 000000000000..0c42303955af
--- /dev/null
+++ b/dev-util/cmake/files/cmake-2.8.12.1-FindImageMagick.patch
@@ -0,0 +1,23 @@
+--- a/Modules/FindImageMagick.cmake
++++ b/Modules/FindImageMagick.cmake
+@@ -147,17 +147,17 @@
+ )
+ if(component STREQUAL "Magick++")
+ FIND_IMAGEMAGICK_API(Magick++ Magick++.h
+- Magick++ CORE_RL_Magick++_ Magick++-6.Q16 Magick++-Q16 Magick++-6.Q8 Magick++-Q8 Magick++-6.Q16HDRI Magick++-Q16HDRI Magick++-6.Q8HDRI Magick++-Q8HDRI
++ Magick++ CORE_RL_Magick++_ Magick++-6.Q64 Magick++-6.Q64HDRI Magick++-6.Q32 Magick++-6.Q32HDRI Magick++-6.Q16 Magick++-6.Q16HDRI Magick++-6.Q8 Magick++-6.Q8HDRI
+ )
+ list(APPEND ImageMagick_REQUIRED_VARS ImageMagick_Magick++_LIBRARY)
+ elseif(component STREQUAL "MagickWand")
+ FIND_IMAGEMAGICK_API(MagickWand wand/MagickWand.h
+- Wand MagickWand CORE_RL_wand_ MagickWand-6.Q16 MagickWand-Q16 MagickWand-6.Q8 MagickWand-Q8 MagickWand-6.Q16HDRI MagickWand-Q16HDRI MagickWand-6.Q8HDRI MagickWand-Q8HDRI
++ Wand MagickWand CORE_RL_wand_ MagickWand-6.Q64 MagickWand-6.Q64HDRI MagickWand-6.Q32 MagickWand-6.Q32HDRI MagickWand-6.Q16 MagickWand-6.Q16HDRI MagickWand-6.Q8 MagickWand-6.Q8HDRI
+ )
+ list(APPEND ImageMagick_REQUIRED_VARS ImageMagick_MagickWand_LIBRARY)
+ elseif(component STREQUAL "MagickCore")
+ FIND_IMAGEMAGICK_API(MagickCore magick/MagickCore.h
+- Magick MagickCore CORE_RL_magick_ MagickCore-6.Q16 MagickCore-Q16 MagickCore-6.Q8 MagickCore-Q8 MagickCore-6.Q16HDRI MagickCore-Q16HDRI MagickCore-6.Q8HDRI MagickCore-Q8HDRI
++ Magick MagickCore CORE_RL_magick_ MagickCore-6.Q64 MagickCore-6.Q64HDRI MagickCore-6.Q32 MagickCore-6.Q32HDRI MagickCore-6.Q16 MagickCore-6.Q16HDRI MagickCore-6.Q8 MagickCore-6.Q8HDRI
+ )
+ list(APPEND ImageMagick_REQUIRED_VARS ImageMagick_MagickCore_LIBRARY)
+ else()
diff --git a/dev-util/cmake/files/cmake-3.0.0-FindBLAS.patch b/dev-util/cmake/files/cmake-3.0.0-FindBLAS.patch
new file mode 100644
index 000000000000..342a4319798d
--- /dev/null
+++ b/dev-util/cmake/files/cmake-3.0.0-FindBLAS.patch
@@ -0,0 +1,43 @@
+--- a/Modules/FindBLAS.cmake
++++ b/Modules/FindBLAS.cmake
+@@ -4,6 +4,10 @@
+ #
+ # Find BLAS library
+ #
++# Version modified for Gentoo Linux.
++# If a valid PkgConfig configuration is found, this overrides and cancels
++# all further checks.
++#
+ # This module finds an installed fortran library that implements the
+ # BLAS linear-algebra interface (see http://www.netlib.org/blas/). The
+ # list of libraries searched for is taken from the autoconf macro file,
+@@ -50,6 +54,23 @@
+ # (To distribute this file outside of CMake, substitute the full
+ # License text for the above reference.)
+
++# first, try PkgConfig
++#
++find_package(PkgConfig REQUIRED)
++pkg_check_modules(PC_BLAS blas)
++if(PC_BLAS_FOUND)
++ foreach(PC_LIB ${PC_BLAS_LIBRARIES})
++ find_library(${PC_LIB}_LIBRARY NAMES ${PC_LIB} HINTS ${PC_BLAS_LIBRARY_DIRS} )
++ if (NOT ${PC_LIB}_LIBRARY)
++ message(FATAL_ERROR "Something is wrong in your pkg-config file - lib ${PC_LIB} not found in ${PC_BLAS_LIBRARY_DIRS}")
++ endif (NOT ${PC_LIB}_LIBRARY)
++ list(APPEND BLAS_LIBRARIES ${${PC_LIB}_LIBRARY})
++ endforeach(PC_LIB)
++ find_package_handle_standard_args(BLAS DEFAULT_MSG BLAS_LIBRARIES)
++ mark_as_advanced(BLAS_LIBRARIES)
++else(PC_BLAS_FOUND)
++message(STATUS "No PkgConfig configuration for BLAS found; starting more extensive search.")
++
+ include(${CMAKE_CURRENT_LIST_DIR}/CheckFunctionExists.cmake)
+ include(${CMAKE_CURRENT_LIST_DIR}/CheckFortranFunctionExists.cmake)
+
+@@ -688,3 +709,5 @@
+ endif()
+
+ set(CMAKE_FIND_LIBRARY_SUFFIXES ${_blas_ORIG_CMAKE_FIND_LIBRARY_SUFFIXES})
++
++endif(PC_BLAS_FOUND)
diff --git a/dev-util/cmake/files/cmake-3.0.0-FindBoost-python.patch b/dev-util/cmake/files/cmake-3.0.0-FindBoost-python.patch
new file mode 100644
index 000000000000..a6291d2b8500
--- /dev/null
+++ b/dev-util/cmake/files/cmake-3.0.0-FindBoost-python.patch
@@ -0,0 +1,93 @@
+From 934ec9add33d413e4d5c9cec1cb3ebb5cbfd81f4 Mon Sep 17 00:00:00 2001
+From: Michael Palimaka <kensington@gentoo.org>
+Date: Thu, 19 Jun 2014 00:17:48 +1000
+Subject: [PATCH] Fix detection of PYTHON_ABI-versioned Boost Python libraries
+ wrt bug #400969.
+
+---
+ Modules/FindBoost.cmake | 41 +++++++++++++++++++++++++++++++++++++++++
+ 1 file changed, 41 insertions(+)
+
+diff --git a/Modules/FindBoost.cmake b/Modules/FindBoost.cmake
+index dfd4460..70bfb4f 100644
+--- a/Modules/FindBoost.cmake
++++ b/Modules/FindBoost.cmake
+@@ -952,6 +952,15 @@ foreach(COMPONENT ${Boost_FIND_COMPONENTS})
+ set( _boost_docstring_release "Boost ${COMPONENT} library (release)")
+ set( _boost_docstring_debug "Boost ${COMPONENT} library (debug)")
+
++ if(${COMPONENT} STREQUAL "python" OR ${COMPONENT} STREQUAL "mpi_python")
++ # Get version of Python.
++ if (NOT PYTHON_EXECUTABLE)
++ #if a certain version of python was detected by cmake before use that one
++ set(PYTHON_EXECUTABLE "python")
++ endif (NOT PYTHON_EXECUTABLE)
++ execute_process(COMMAND "${PYTHON_EXECUTABLE}" -c "import sys; sys.stdout.write('.'.join(str(x) for x in sys.version_info[:2]))" OUTPUT_VARIABLE _python_version)
++ endif()
++
+ # Compute component-specific hints.
+ set(_Boost_FIND_LIBRARY_HINTS_FOR_COMPONENT "")
+ if(${COMPONENT} STREQUAL "mpi" OR ${COMPONENT} STREQUAL "mpi_python" OR
+@@ -984,6 +993,15 @@ foreach(COMPONENT ${Boost_FIND_COMPONENTS})
+ ${Boost_LIB_PREFIX}${Boost_NAMESPACE}_${COMPONENT}${_boost_MULTITHREADED}${_boost_RELEASE_ABI_TAG}-${Boost_LIB_VERSION}
+ ${Boost_LIB_PREFIX}${Boost_NAMESPACE}_${COMPONENT}${_boost_MULTITHREADED}${_boost_RELEASE_ABI_TAG}
+ ${Boost_LIB_PREFIX}${Boost_NAMESPACE}_${COMPONENT} )
++ if(${COMPONENT} STREQUAL "python" OR ${COMPONENT} STREQUAL "mpi_python")
++ list(APPEND _boost_RELEASE_NAMES
++ ${Boost_LIB_PREFIX}boost_${COMPONENT}-${_python_version}${_boost_COMPILER}${_boost_MULTITHREADED}${_boost_RELEASE_ABI_TAG}-${Boost_LIB_VERSION}
++ ${Boost_LIB_PREFIX}boost_${COMPONENT}-${_python_version}${_boost_COMPILER}${_boost_MULTITHREADED}${_boost_RELEASE_ABI_TAG}
++ ${Boost_LIB_PREFIX}boost_${COMPONENT}-${_python_version}${_boost_MULTITHREADED}${_boost_RELEASE_ABI_TAG}-${Boost_LIB_VERSION}
++ ${Boost_LIB_PREFIX}boost_${COMPONENT}-${_python_version}${_boost_MULTITHREADED}${_boost_RELEASE_ABI_TAG}
++ ${Boost_LIB_PREFIX}boost_${COMPONENT}-${_python_version} )
++ endif()
++
+ if(_boost_STATIC_RUNTIME_WORKAROUND)
+ set(_boost_RELEASE_STATIC_ABI_TAG "-s${_boost_RELEASE_ABI_TAG}")
+ list(APPEND _boost_RELEASE_NAMES
+@@ -991,6 +1009,13 @@ foreach(COMPONENT ${Boost_FIND_COMPONENTS})
+ ${Boost_LIB_PREFIX}${Boost_NAMESPACE}_${COMPONENT}${_boost_COMPILER}${_boost_MULTITHREADED}${_boost_RELEASE_STATIC_ABI_TAG}
+ ${Boost_LIB_PREFIX}${Boost_NAMESPACE}_${COMPONENT}${_boost_MULTITHREADED}${_boost_RELEASE_STATIC_ABI_TAG}-${Boost_LIB_VERSION}
+ ${Boost_LIB_PREFIX}${Boost_NAMESPACE}_${COMPONENT}${_boost_MULTITHREADED}${_boost_RELEASE_STATIC_ABI_TAG} )
++ if(${COMPONENT} STREQUAL "python" OR ${COMPONENT} STREQUAL "mpi_python")
++ list(APPEND _boost_RELEASE_NAMES
++ ${Boost_LIB_PREFIX}boost_${COMPONENT}-${_python_version}${_boost_COMPILER}${_boost_MULTITHREADED}${_boost_RELEASE_STATIC_ABI_TAG}-${Boost_LIB_VERSION}
++ ${Boost_LIB_PREFIX}boost_${COMPONENT}-${_python_version}${_boost_COMPILER}${_boost_MULTITHREADED}${_boost_RELEASE_STATIC_ABI_TAG}
++ ${Boost_LIB_PREFIX}boost_${COMPONENT}-${_python_version}${_boost_MULTITHREADED}${_boost_RELEASE_STATIC_ABI_TAG}-${Boost_LIB_VERSION}
++ ${Boost_LIB_PREFIX}boost_${COMPONENT}-${_python_version}${_boost_MULTITHREADED}${_boost_RELEASE_STATIC_ABI_TAG} )
++ endif()
+ endif()
+ if(Boost_THREADAPI AND ${COMPONENT} STREQUAL "thread")
+ _Boost_PREPEND_LIST_WITH_THREADAPI(_boost_RELEASE_NAMES ${_boost_RELEASE_NAMES})
+@@ -1020,6 +1045,15 @@ foreach(COMPONENT ${Boost_FIND_COMPONENTS})
+ ${Boost_LIB_PREFIX}${Boost_NAMESPACE}_${COMPONENT}${_boost_MULTITHREADED}${_boost_DEBUG_ABI_TAG}
+ ${Boost_LIB_PREFIX}${Boost_NAMESPACE}_${COMPONENT}${_boost_MULTITHREADED}
+ ${Boost_LIB_PREFIX}${Boost_NAMESPACE}_${COMPONENT} )
++ if(${COMPONENT} STREQUAL "python" OR ${COMPONENT} STREQUAL "mpi_python")
++ list(APPEND _boost_DEBUG_NAMES
++ ${Boost_LIB_PREFIX}boost_${COMPONENT}-${_python_version}${_boost_COMPILER}${_boost_MULTITHREADED}${_boost_DEBUG_ABI_TAG}-${Boost_LIB_VERSION}
++ ${Boost_LIB_PREFIX}boost_${COMPONENT}-${_python_version}${_boost_COMPILER}${_boost_MULTITHREADED}${_boost_DEBUG_ABI_TAG}
++ ${Boost_LIB_PREFIX}boost_${COMPONENT}-${_python_version}${_boost_MULTITHREADED}${_boost_DEBUG_ABI_TAG}-${Boost_LIB_VERSION}
++ ${Boost_LIB_PREFIX}boost_${COMPONENT}-${_python_version}${_boost_MULTITHREADED}${_boost_DEBUG_ABI_TAG}
++ ${Boost_LIB_PREFIX}boost_${COMPONENT}-${_python_version}${_boost_MULTITHREADED}
++ ${Boost_LIB_PREFIX}boost_${COMPONENT}-${_python_version} )
++ endif()
+ if(_boost_STATIC_RUNTIME_WORKAROUND)
+ set(_boost_DEBUG_STATIC_ABI_TAG "-s${_boost_DEBUG_ABI_TAG}")
+ list(APPEND _boost_DEBUG_NAMES
+@@ -1027,6 +1061,13 @@ foreach(COMPONENT ${Boost_FIND_COMPONENTS})
+ ${Boost_LIB_PREFIX}${Boost_NAMESPACE}_${COMPONENT}${_boost_COMPILER}${_boost_MULTITHREADED}${_boost_DEBUG_STATIC_ABI_TAG}
+ ${Boost_LIB_PREFIX}${Boost_NAMESPACE}_${COMPONENT}${_boost_MULTITHREADED}${_boost_DEBUG_STATIC_ABI_TAG}-${Boost_LIB_VERSION}
+ ${Boost_LIB_PREFIX}${Boost_NAMESPACE}_${COMPONENT}${_boost_MULTITHREADED}${_boost_DEBUG_STATIC_ABI_TAG} )
++ if(${COMPONENT} STREQUAL "python" OR ${COMPONENT} STREQUAL "mpi_python")
++ list(APPEND _boost_DEBUG_NAMES
++ ${Boost_LIB_PREFIX}boost_${COMPONENT}-${_python_version}${_boost_COMPILER}${_boost_MULTITHREADED}${_boost_DEBUG_STATIC_ABI_TAG}-${Boost_LIB_VERSION}
++ ${Boost_LIB_PREFIX}boost_${COMPONENT}-${_python_version}${_boost_COMPILER}${_boost_MULTITHREADED}${_boost_DEBUG_STATIC_ABI_TAG}
++ ${Boost_LIB_PREFIX}boost_${COMPONENT}-${_python_version}${_boost_MULTITHREADED}${_boost_DEBUG_STATIC_ABI_TAG}-${Boost_LIB_VERSION}
++ ${Boost_LIB_PREFIX}boost_${COMPONENT}-${_python_version}${_boost_MULTITHREADED}${_boost_DEBUG_STATIC_ABI_TAG} )
++ endif()
+ endif()
+ if(Boost_THREADAPI AND ${COMPONENT} STREQUAL "thread")
+ _Boost_PREPEND_LIST_WITH_THREADAPI(_boost_DEBUG_NAMES ${_boost_DEBUG_NAMES})
+--
+1.8.5.5
+
diff --git a/dev-util/cmake/files/cmake-3.0.0-prefix-dirs.patch b/dev-util/cmake/files/cmake-3.0.0-prefix-dirs.patch
new file mode 100644
index 000000000000..decfb91260aa
--- /dev/null
+++ b/dev-util/cmake/files/cmake-3.0.0-prefix-dirs.patch
@@ -0,0 +1,142 @@
+From e7ce3e523f8cfa1bc749118f381753230766827f Mon Sep 17 00:00:00 2001
+From: Michael Palimaka <kensington@gentoo.org>
+Date: Thu, 19 Jun 2014 00:08:13 +1000
+Subject: [PATCH] Set some proper paths to make cmake find our tools.
+
+The ebuild now adds an extra / at the end of $EPREFIX so that it is
+never the empty string (so that CMAKE_SYSTEM_PREFIX_PATH remains
+correct)
+
+Original patch by Heiko Przybyl.
+Updated by Chris Reffett (cmake-2.8.8)
+Updated by Johannes Huber (cmake-2.8.9)
+Updated by Michael Palimaka (cmake-2.8.10)
+Updated by Chris Reffett (cmake-2.8.11)
+Updated by Michael Palimaka (cmake-3.0.0)
+---
+ Modules/Platform/Darwin.cmake | 12 +++++++----
+ Modules/Platform/UnixPaths.cmake | 43 ++++++++++++++++++++--------------------
+ 2 files changed, 29 insertions(+), 26 deletions(-)
+
+diff --git a/Modules/Platform/Darwin.cmake b/Modules/Platform/Darwin.cmake
+index e25df1e..9b22a6a 100644
+--- a/Modules/Platform/Darwin.cmake
++++ b/Modules/Platform/Darwin.cmake
+@@ -132,9 +132,9 @@ set(CMAKE_C_FRAMEWORK_SEARCH_FLAG -F)
+ set(CMAKE_CXX_FRAMEWORK_SEARCH_FLAG -F)
+ set(CMAKE_Fortran_FRAMEWORK_SEARCH_FLAG -F)
+
+-# default to searching for frameworks first
++# default to searching for frameworks last
+ if(NOT DEFINED CMAKE_FIND_FRAMEWORK)
+- set(CMAKE_FIND_FRAMEWORK FIRST)
++ set(CMAKE_FIND_FRAMEWORK LAST)
+ endif()
+
+ # Older OS X linkers do not report their framework search path
+@@ -156,6 +156,8 @@ endif()
+
+ # set up the default search directories for frameworks
+ set(CMAKE_SYSTEM_FRAMEWORK_PATH
++ @GENTOO_PORTAGE_EPREFIX@Frameworks
++ @GENTOO_PORTAGE_EPREFIX@usr/lib
+ ~/Library/Frameworks
+ )
+ if(_CMAKE_OSX_SYSROOT_PATH)
+@@ -187,13 +189,15 @@ if(CMAKE_OSX_SYSROOT)
+ endif()
+ endif()
+
+-# default to searching for application bundles first
++# default to searching for application bundles last
+ if(NOT DEFINED CMAKE_FIND_APPBUNDLE)
+- set(CMAKE_FIND_APPBUNDLE FIRST)
++ set(CMAKE_FIND_APPBUNDLE LAST)
+ endif()
+ # set up the default search directories for application bundles
+ set(_apps_paths)
+ foreach(_path
++ @GENTOO_PORTAGE_EPREFIX@Applications
++ @GENTOO_PORTAGE_EPREFIX@usr/bin
+ "~/Applications"
+ "/Applications"
+ "${OSX_DEVELOPER_ROOT}/../Applications" # Xcode 4.3+
+diff --git a/Modules/Platform/UnixPaths.cmake b/Modules/Platform/UnixPaths.cmake
+index 20ee1d1..3481ca8 100644
+--- a/Modules/Platform/UnixPaths.cmake
++++ b/Modules/Platform/UnixPaths.cmake
+@@ -33,6 +33,7 @@ get_filename_component(_CMAKE_INSTALL_DIR "${_CMAKE_INSTALL_DIR}" PATH)
+ # search types.
+ list(APPEND CMAKE_SYSTEM_PREFIX_PATH
+ # Standard
++ @GENTOO_PORTAGE_EPREFIX@usr/local @GENTOO_PORTAGE_EPREFIX@usr @GENTOO_PORTAGE_EPREFIX@
+ /usr/local /usr /
+
+ # CMake install location
+@@ -53,43 +54,41 @@ endif()
+
+ # List common include file locations not under the common prefixes.
+ list(APPEND CMAKE_SYSTEM_INCLUDE_PATH
+- # Windows API on Cygwin
+- /usr/include/w32api
+-
+- # X11
+- /usr/X11R6/include /usr/include/X11
+-
+- # Other
+- /usr/pkg/include
+- /opt/csw/include /opt/include
+- /usr/openwin/include
++ @GENTOO_PORTAGE_EPREFIX@usr/include
+ )
+
+ list(APPEND CMAKE_SYSTEM_LIBRARY_PATH
+- # Windows API on Cygwin
+- /usr/lib/w32api
+-
+- # X11
+- /usr/X11R6/lib /usr/lib/X11
+-
+- # Other
+- /usr/pkg/lib
+- /opt/csw/lib /opt/lib
+- /usr/openwin/lib
++ @GENTOO_PORTAGE_GCCLIBDIR@/gcc
++ @GENTOO_PORTAGE_GCCLIBDIR@
++ @GENTOO_PORTAGE_EPREFIX@usr/lib64
++ @GENTOO_PORTAGE_EPREFIX@usr/libx32
++ @GENTOO_PORTAGE_EPREFIX@usr/lib32
++ @GENTOO_PORTAGE_EPREFIX@usr/lib
++ @GENTOO_PORTAGE_EPREFIX@lib
+ )
+
+ list(APPEND CMAKE_SYSTEM_PROGRAM_PATH
+- /usr/pkg/bin
++ @GENTOO_PORTAGE_EPREFIX@usr/bin
++ @GENTOO_PORTAGE_EPREFIX@bin
+ )
+
+ list(APPEND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES
+- /lib /lib32 /lib64 /usr/lib /usr/lib32 /usr/lib64
++ @GENTOO_PORTAGE_GCCLIBDIR@/gcc
++ @GENTOO_PORTAGE_GCCLIBDIR@
++ @GENTOO_PORTAGE_EPREFIX@usr/lib64
++ @GENTOO_PORTAGE_EPREFIX@usr/libx32
++ @GENTOO_PORTAGE_EPREFIX@usr/lib32
++ @GENTOO_PORTAGE_EPREFIX@usr/lib
++ @GENTOO_PORTAGE_EPREFIX@lib
++ /lib /usr/lib /usr/lib32 /usr/lib64 /usr/libx32
+ )
+
+ list(APPEND CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES
++ GENTOO_PORTAGE_EPREFIX@usr/include
+ /usr/include
+ )
+ list(APPEND CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES
++ @GENTOO_PORTAGE_EPREFIX@usr/include
+ /usr/include
+ )
+
+--
+1.8.5.5
+
diff --git a/dev-util/cmake/files/cmake-3.0.2-FindLAPACK.patch b/dev-util/cmake/files/cmake-3.0.2-FindLAPACK.patch
new file mode 100644
index 000000000000..321f05302aa1
--- /dev/null
+++ b/dev-util/cmake/files/cmake-3.0.2-FindLAPACK.patch
@@ -0,0 +1,43 @@
+--- a/Modules/FindLAPACK.cmake
++++ b/Modules/FindLAPACK.cmake
+@@ -4,6 +4,10 @@
+ #
+ # Find LAPACK library
+ #
++# Version modified for Gentoo Linux.
++# If a valid PkgConfig configuration is found, this overrides and cancels
++# all further checks.
++#
+ # This module finds an installed fortran library that implements the
+ # LAPACK linear-algebra interface (see http://www.netlib.org/lapack/).
+ #
+@@ -140,6 +144,23 @@
+
+ endmacro()
+
++#
++# first, try PkgConfig
++#
++find_package(PkgConfig REQUIRED)
++pkg_check_modules(PC_LAPACK lapack)
++if(PC_LAPACK_FOUND)
++ foreach(PC_LIB ${PC_LAPACK_LIBRARIES})
++ find_library(${PC_LIB}_LIBRARY NAMES ${PC_LIB} HINTS ${PC_LAPACK_LIBRARY_DIRS} )
++ if (NOT ${PC_LIB}_LIBRARY)
++ message(FATAL_ERROR "Something is wrong in your pkg-config file - lib ${PC_LIB} not found in ${PC_LAPACK_LIBRARY_DIRS}")
++ endif (NOT ${PC_LIB}_LIBRARY)
++ list(APPEND LAPACK_LIBRARIES ${${PC_LIB}_LIBRARY})
++ endforeach(PC_LIB)
++ find_package_handle_standard_args(LAPACK DEFAULT_MSG LAPACK_LIBRARIES)
++ mark_as_advanced(LAPACK_LIBRARIES)
++else(PC_LAPACK_FOUND)
++message(STATUS "No PkgConfig configuration for LAPACK found; starting more extensive search.")
+
+ set(LAPACK_LINKER_FLAGS)
+ set(LAPACK_LIBRARIES)
+@@ -348,3 +369,5 @@
+ endif()
+
+ set(CMAKE_FIND_LIBRARY_SUFFIXES ${_lapack_ORIG_CMAKE_FIND_LIBRARY_SUFFIXES})
++
++endif(PC_LAPACK_FOUND)
diff --git a/dev-util/cmake/files/cmake-3.1.0-FindPythonInterp.patch b/dev-util/cmake/files/cmake-3.1.0-FindPythonInterp.patch
new file mode 100644
index 000000000000..bb3ca9580ad9
--- /dev/null
+++ b/dev-util/cmake/files/cmake-3.1.0-FindPythonInterp.patch
@@ -0,0 +1,29 @@
+--- a/Modules/FindPythonInterp.cmake
++++ b/Modules/FindPythonInterp.cmake
+@@ -75,6 +75,11 @@
+ else()
+ set(_PYTHON_FIND_OTHER_VERSIONS ${_PYTHON3_VERSIONS} ${_PYTHON2_VERSIONS} ${_PYTHON1_VERSIONS})
+ endif()
++
++if (CMAKE_GENTOO_BUILD OR CMAKE_BUILD_TYPE STREQUAL Gentoo)
++ set(_Python_NAMES python)
++endif()
++
+ find_program(PYTHON_EXECUTABLE NAMES ${_Python_NAMES})
+
+ # Set up the versions we know about, in the order we will search. Always add
+@@ -99,12 +104,13 @@
+ unset(_PYTHON3_VERSIONS)
+
+ # Search for newest python version if python executable isn't found
+-if(NOT PYTHON_EXECUTABLE)
++if(NOT PYTHON_EXECUTABLE AND NOT (CMAKE_GENTOO_BUILD OR CMAKE_BUILD_TYPE STREQUAL Gentoo))
+ foreach(_CURRENT_VERSION IN LISTS _Python_VERSIONS)
+ set(_Python_NAMES python${_CURRENT_VERSION})
+ if(WIN32)
+ list(APPEND _Python_NAMES python)
+ endif()
++
+ find_program(PYTHON_EXECUTABLE
+ NAMES ${_Python_NAMES}
+ PATHS [HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\${_CURRENT_VERSION}\\InstallPath]
diff --git a/dev-util/cmake/files/cmake-3.1.0-darwin-isysroot.patch b/dev-util/cmake/files/cmake-3.1.0-darwin-isysroot.patch
new file mode 100644
index 000000000000..1f3599bcc828
--- /dev/null
+++ b/dev-util/cmake/files/cmake-3.1.0-darwin-isysroot.patch
@@ -0,0 +1,48 @@
+Do not detect Xcode and set -isysroot for its SDK, since that messes up
+our toolchain, and hence makes any compilation fail, bug #445308
+
+--- a/Modules/Platform/Darwin-Initialize.cmake
++++ b/Modules/Platform/Darwin-Initialize.cmake
+@@ -1,16 +1,16 @@
+ # Ask xcode-select where to find /Developer or fall back to ancient location.
+-execute_process(COMMAND xcode-select -print-path
+- OUTPUT_VARIABLE _stdout
+- OUTPUT_STRIP_TRAILING_WHITESPACE
+- ERROR_VARIABLE _stderr
+- RESULT_VARIABLE _failed)
+-if(NOT _failed AND IS_DIRECTORY ${_stdout})
+- set(OSX_DEVELOPER_ROOT ${_stdout})
+-elseif(IS_DIRECTORY "/Developer")
+- set(OSX_DEVELOPER_ROOT "/Developer")
+-else()
++#execute_process(COMMAND xcode-select -print-path
++# OUTPUT_VARIABLE _stdout
++# OUTPUT_STRIP_TRAILING_WHITESPACE
++# ERROR_VARIABLE _stderr
++# RESULT_VARIABLE _failed)
++#if(NOT _failed AND IS_DIRECTORY ${_stdout})
++# set(OSX_DEVELOPER_ROOT ${_stdout})
++#elseif(IS_DIRECTORY "/Developer")
++# set(OSX_DEVELOPER_ROOT "/Developer")
++#else()
+ set(OSX_DEVELOPER_ROOT "")
+-endif()
++#endif()
+
+ execute_process(COMMAND sw_vers -productVersion
+ OUTPUT_VARIABLE CURRENT_OSX_VERSION
+@@ -91,10 +91,10 @@
+ # CMAKE_OSX_DEPLOYMENT_TARGET
+
+ # Set cache variable - end user may change this during ccmake or cmake-gui configure.
+-if(_CURRENT_OSX_VERSION VERSION_GREATER 10.3)
+- set(CMAKE_OSX_DEPLOYMENT_TARGET "$ENV{MACOSX_DEPLOYMENT_TARGET}" CACHE STRING
+- "Minimum OS X version to target for deployment (at runtime); newer APIs weak linked. Set to empty string for default value.")
+-endif()
++#if(_CURRENT_OSX_VERSION VERSION_GREATER 10.3)
++# set(CMAKE_OSX_DEPLOYMENT_TARGET "$ENV{MACOSX_DEPLOYMENT_TARGET}" CACHE STRING
++# "Minimum OS X version to target for deployment (at runtime); newer APIs weak linked. Set to empty string for default value.")
++#endif()
+
+ #----------------------------------------------------------------------------
+ # CMAKE_OSX_SYSROOT
diff --git a/dev-util/cmake/files/cmake-3.4.0_rc1-darwin-bundle.patch b/dev-util/cmake/files/cmake-3.4.0_rc1-darwin-bundle.patch
new file mode 100644
index 000000000000..2808ed79f735
--- /dev/null
+++ b/dev-util/cmake/files/cmake-3.4.0_rc1-darwin-bundle.patch
@@ -0,0 +1,25 @@
+Don't use .so for modules on darwin/macos. Use .bundle instead.
+Patch by Heiko Przybyl
+
+Forward-ported from 2.8.10 to 3.4.0-rc1
+
+--- cmake-3.4.0-rc1/Modules/Platform/Darwin.cmake
++++ cmake-3.4.0-rc1/Modules/Platform/Darwin.cmake
+@@ -26,7 +26,7 @@
+ set(CMAKE_SHARED_LIBRARY_PREFIX "lib")
+ set(CMAKE_SHARED_LIBRARY_SUFFIX ".dylib")
+ set(CMAKE_SHARED_MODULE_PREFIX "lib")
+-set(CMAKE_SHARED_MODULE_SUFFIX ".so")
++set(CMAKE_SHARED_MODULE_SUFFIX ".bundle")
+ set(CMAKE_MODULE_EXISTS 1)
+ set(CMAKE_DL_LIBS "")
+
+@@ -53,7 +53,7 @@
+ set(CMAKE_SHARED_MODULE_CREATE_C_FLAGS "-bundle -Wl,-headerpad_max_install_names")
+ set(CMAKE_SHARED_MODULE_LOADER_C_FLAG "-Wl,-bundle_loader,")
+ set(CMAKE_SHARED_MODULE_LOADER_CXX_FLAG "-Wl,-bundle_loader,")
+-set(CMAKE_FIND_LIBRARY_SUFFIXES ".tbd" ".dylib" ".so" ".a")
++set(CMAKE_FIND_LIBRARY_SUFFIXES ".tbd" ".dylib" ".bundle" ".a")
+
+ # hack: if a new cmake (which uses CMAKE_INSTALL_NAME_TOOL) runs on an old build tree
+ # (where install_name_tool was hardcoded) and where CMAKE_INSTALL_NAME_TOOL isn't in the cache
diff --git a/dev-util/cmake/files/cmake-3.5.2-FindQt4.patch b/dev-util/cmake/files/cmake-3.5.2-FindQt4.patch
new file mode 100644
index 000000000000..2f2764d30cf6
--- /dev/null
+++ b/dev-util/cmake/files/cmake-3.5.2-FindQt4.patch
@@ -0,0 +1,45 @@
+Ensure that the correct version of Qt is always used.
+
+With the introduction qt-4.8.6, Qt binaries were moved from /usr/bin to
+/usr/$(get_libdir)/qt4/bin, leaving behind in their place symlinks to qtchooser.
+
+There is no guarantee to which version of Qt these symlinks might point, so it
+is necessary to find the correct version explicitly.
+
+Once qmake is found, it is queried for the correct location of all other items.
+
+Gentoo-bug: 547222
+
+--- a/Modules/FindQt4.cmake
++++ b/Modules/FindQt4.cmake
+@@ -482,13 +482,23 @@
+
+ get_filename_component(qt_install_version "[HKEY_CURRENT_USER\\Software\\trolltech\\Versions;DefaultQtVersion]" NAME)
+
+- find_program(QT_QMAKE_EXECUTABLE NAMES ${QMAKE_NAME}
+- PATHS
+- ENV QTDIR
+- "[HKEY_CURRENT_USER\\Software\\Trolltech\\Versions\\${qt_install_version};InstallDir]"
+- PATH_SUFFIXES bin
+- DOC "The qmake executable for the Qt installation to use"
+- )
++ if(CMAKE_GENTOO_BUILD OR CMAKE_BUILD_TYPE STREQUAL Gentoo)
++ find_program(QT_QMAKE_EXECUTABLE NAMES ${QMAKE_NAME}
++ PATHS
++ $ENV{EPREFIX}/usr/${CMAKE_INSTALL_LIBDIR}/qt4/bin
++ $ENV{EPREFIX}/usr/bin
++ NO_DEFAULT_PATH
++ DOC "The qmake executable for the Qt installation to use"
++ )
++ else()
++ find_program(QT_QMAKE_EXECUTABLE NAMES ${QMAKE_NAME}
++ PATHS
++ ENV QTDIR
++ "[HKEY_CURRENT_USER\\Software\\Trolltech\\Versions\\${qt_install_version};InstallDir]"
++ PATH_SUFFIXES bin
++ DOC "The qmake executable for the Qt installation to use"
++ )
++ endif()
+
+ set(major 0)
+ if (QT_QMAKE_EXECUTABLE)
diff --git a/dev-util/cmake/files/cmake-3.8.0_rc2-FindBoost-python.patch b/dev-util/cmake/files/cmake-3.8.0_rc2-FindBoost-python.patch
new file mode 100644
index 000000000000..441650b72a2a
--- /dev/null
+++ b/dev-util/cmake/files/cmake-3.8.0_rc2-FindBoost-python.patch
@@ -0,0 +1,95 @@
+From 7d3a5c466bf14a0c12edc6ece359012b723e39bc Mon Sep 17 00:00:00 2001
+From: Michael Palimaka <kensington@gentoo.org>
+Date: Thu, 23 Mar 2017 11:36:39 +0100
+Subject: [PATCH] Fix detection of PYTHON_ABI-versioned Boost Python libraries
+
+Gentoo-bug: 400969
+Gentoo-bug: 613442
+---
+ Modules/FindBoost.cmake | 42 ++++++++++++++++++++++++++++++++++++++++++
+ 1 file changed, 42 insertions(+)
+
+diff --git a/Modules/FindBoost.cmake b/Modules/FindBoost.cmake
+index e795aadcc..11269c30b 100644
+--- a/Modules/FindBoost.cmake
++++ b/Modules/FindBoost.cmake
+@@ -1481,6 +1481,16 @@ foreach(COMPONENT ${Boost_FIND_COMPONENTS})
+ set( _boost_docstring_release "Boost ${COMPONENT} library (release)")
+ set( _boost_docstring_debug "Boost ${COMPONENT} library (debug)")
+
++ if(${COMPONENT} STREQUAL "python" OR ${COMPONENT} STREQUAL "mpi_python")
++ # If a certain version of python has already been selected ensure we select the corresponding boost python version.
++ if(PYTHON_EXECUTABLE)
++ set(GENTOO_PYTHON_EXECUTABLE "${PYTHON_EXECUTABLE}")
++ else()
++ set(GENTOO_PYTHON_EXECUTABLE "python")
++ endif()
++ execute_process(COMMAND "${GENTOO_PYTHON_EXECUTABLE}" -c "import sys; sys.stdout.write('.'.join(str(x) for x in sys.version_info[:2]))" OUTPUT_VARIABLE _python_version)
++ endif()
++
+ # Compute component-specific hints.
+ set(_Boost_FIND_LIBRARY_HINTS_FOR_COMPONENT "")
+ if(${COMPONENT} STREQUAL "mpi" OR ${COMPONENT} STREQUAL "mpi_python" OR
+@@ -1529,6 +1539,15 @@ foreach(COMPONENT ${Boost_FIND_COMPONENTS})
+ ${Boost_LIB_PREFIX}${Boost_NAMESPACE}_${COMPONENT}${_boost_MULTITHREADED}${_boost_RELEASE_ABI_TAG}-${Boost_LIB_VERSION}
+ ${Boost_LIB_PREFIX}${Boost_NAMESPACE}_${COMPONENT}${_boost_MULTITHREADED}${_boost_RELEASE_ABI_TAG}
+ ${Boost_LIB_PREFIX}${Boost_NAMESPACE}_${COMPONENT} )
++ if(${COMPONENT} STREQUAL "python" OR ${COMPONENT} STREQUAL "mpi_python")
++ list(APPEND _boost_RELEASE_NAMES
++ ${Boost_LIB_PREFIX}boost_${COMPONENT}-${_python_version}${_boost_COMPILER}${_boost_MULTITHREADED}${_boost_RELEASE_ABI_TAG}-${Boost_LIB_VERSION}
++ ${Boost_LIB_PREFIX}boost_${COMPONENT}-${_python_version}${_boost_COMPILER}${_boost_MULTITHREADED}${_boost_RELEASE_ABI_TAG}
++ ${Boost_LIB_PREFIX}boost_${COMPONENT}-${_python_version}${_boost_MULTITHREADED}${_boost_RELEASE_ABI_TAG}-${Boost_LIB_VERSION}
++ ${Boost_LIB_PREFIX}boost_${COMPONENT}-${_python_version}${_boost_MULTITHREADED}${_boost_RELEASE_ABI_TAG}
++ ${Boost_LIB_PREFIX}boost_${COMPONENT}-${_python_version} )
++ endif()
++
+ if(_boost_STATIC_RUNTIME_WORKAROUND)
+ set(_boost_RELEASE_STATIC_ABI_TAG "-s${_boost_RELEASE_ABI_TAG}")
+ list(APPEND _boost_RELEASE_NAMES
+@@ -1536,6 +1555,13 @@ foreach(COMPONENT ${Boost_FIND_COMPONENTS})
+ ${Boost_LIB_PREFIX}${Boost_NAMESPACE}_${COMPONENT}${_boost_COMPILER}${_boost_MULTITHREADED}${_boost_RELEASE_STATIC_ABI_TAG}
+ ${Boost_LIB_PREFIX}${Boost_NAMESPACE}_${COMPONENT}${_boost_MULTITHREADED}${_boost_RELEASE_STATIC_ABI_TAG}-${Boost_LIB_VERSION}
+ ${Boost_LIB_PREFIX}${Boost_NAMESPACE}_${COMPONENT}${_boost_MULTITHREADED}${_boost_RELEASE_STATIC_ABI_TAG} )
++ if(${COMPONENT} STREQUAL "python" OR ${COMPONENT} STREQUAL "mpi_python")
++ list(APPEND _boost_RELEASE_NAMES
++ ${Boost_LIB_PREFIX}boost_${COMPONENT}-${_python_version}${_boost_COMPILER}${_boost_MULTITHREADED}${_boost_RELEASE_STATIC_ABI_TAG}-${Boost_LIB_VERSION}
++ ${Boost_LIB_PREFIX}boost_${COMPONENT}-${_python_version}${_boost_COMPILER}${_boost_MULTITHREADED}${_boost_RELEASE_STATIC_ABI_TAG}
++ ${Boost_LIB_PREFIX}boost_${COMPONENT}-${_python_version}${_boost_MULTITHREADED}${_boost_RELEASE_STATIC_ABI_TAG}-${Boost_LIB_VERSION}
++ ${Boost_LIB_PREFIX}boost_${COMPONENT}-${_python_version}${_boost_MULTITHREADED}${_boost_RELEASE_STATIC_ABI_TAG} )
++ endif()
+ endif()
+ if(Boost_THREADAPI AND ${COMPONENT} STREQUAL "thread")
+ _Boost_PREPEND_LIST_WITH_THREADAPI(_boost_RELEASE_NAMES ${_boost_RELEASE_NAMES})
+@@ -1571,6 +1597,15 @@ foreach(COMPONENT ${Boost_FIND_COMPONENTS})
+ ${Boost_LIB_PREFIX}${Boost_NAMESPACE}_${COMPONENT}${_boost_MULTITHREADED}${_boost_DEBUG_ABI_TAG}
+ ${Boost_LIB_PREFIX}${Boost_NAMESPACE}_${COMPONENT}${_boost_MULTITHREADED}
+ ${Boost_LIB_PREFIX}${Boost_NAMESPACE}_${COMPONENT} )
++ if(${COMPONENT} STREQUAL "python" OR ${COMPONENT} STREQUAL "mpi_python")
++ list(APPEND _boost_DEBUG_NAMES
++ ${Boost_LIB_PREFIX}boost_${COMPONENT}-${_python_version}${_boost_COMPILER}${_boost_MULTITHREADED}${_boost_DEBUG_ABI_TAG}-${Boost_LIB_VERSION}
++ ${Boost_LIB_PREFIX}boost_${COMPONENT}-${_python_version}${_boost_COMPILER}${_boost_MULTITHREADED}${_boost_DEBUG_ABI_TAG}
++ ${Boost_LIB_PREFIX}boost_${COMPONENT}-${_python_version}${_boost_MULTITHREADED}${_boost_DEBUG_ABI_TAG}-${Boost_LIB_VERSION}
++ ${Boost_LIB_PREFIX}boost_${COMPONENT}-${_python_version}${_boost_MULTITHREADED}${_boost_DEBUG_ABI_TAG}
++ ${Boost_LIB_PREFIX}boost_${COMPONENT}-${_python_version}${_boost_MULTITHREADED}
++ ${Boost_LIB_PREFIX}boost_${COMPONENT}-${_python_version} )
++ endif()
+ if(_boost_STATIC_RUNTIME_WORKAROUND)
+ set(_boost_DEBUG_STATIC_ABI_TAG "-s${_boost_DEBUG_ABI_TAG}")
+ list(APPEND _boost_DEBUG_NAMES
+@@ -1578,6 +1613,13 @@ foreach(COMPONENT ${Boost_FIND_COMPONENTS})
+ ${Boost_LIB_PREFIX}${Boost_NAMESPACE}_${COMPONENT}${_boost_COMPILER}${_boost_MULTITHREADED}${_boost_DEBUG_STATIC_ABI_TAG}
+ ${Boost_LIB_PREFIX}${Boost_NAMESPACE}_${COMPONENT}${_boost_MULTITHREADED}${_boost_DEBUG_STATIC_ABI_TAG}-${Boost_LIB_VERSION}
+ ${Boost_LIB_PREFIX}${Boost_NAMESPACE}_${COMPONENT}${_boost_MULTITHREADED}${_boost_DEBUG_STATIC_ABI_TAG} )
++ if(${COMPONENT} STREQUAL "python" OR ${COMPONENT} STREQUAL "mpi_python")
++ list(APPEND _boost_DEBUG_NAMES
++ ${Boost_LIB_PREFIX}boost_${COMPONENT}-${_python_version}${_boost_COMPILER}${_boost_MULTITHREADED}${_boost_DEBUG_STATIC_ABI_TAG}-${Boost_LIB_VERSION}
++ ${Boost_LIB_PREFIX}boost_${COMPONENT}-${_python_version}${_boost_COMPILER}${_boost_MULTITHREADED}${_boost_DEBUG_STATIC_ABI_TAG}
++ ${Boost_LIB_PREFIX}boost_${COMPONENT}-${_python_version}${_boost_MULTITHREADED}${_boost_DEBUG_STATIC_ABI_TAG}-${Boost_LIB_VERSION}
++ ${Boost_LIB_PREFIX}boost_${COMPONENT}-${_python_version}${_boost_MULTITHREADED}${_boost_DEBUG_STATIC_ABI_TAG} )
++ endif()
+ endif()
+ if(Boost_THREADAPI AND ${COMPONENT} STREQUAL "thread")
+ _Boost_PREPEND_LIST_WITH_THREADAPI(_boost_DEBUG_NAMES ${_boost_DEBUG_NAMES})
+--
+2.12.1
+
diff --git a/dev-util/cmake/files/cmake-3.9.0_rc2-FindImageMagick.patch b/dev-util/cmake/files/cmake-3.9.0_rc2-FindImageMagick.patch
new file mode 100644
index 000000000000..ce63988f2ec8
--- /dev/null
+++ b/dev-util/cmake/files/cmake-3.9.0_rc2-FindImageMagick.patch
@@ -0,0 +1,47 @@
+From f51ccd38ed85e5799b2f0a88829eb6a40574ab05 Mon Sep 17 00:00:00 2001
+From: Lars Wendler <polynomial-c@gentoo.org>
+Date: Fri, 9 Jun 2017 02:07:11 +0200
+Subject: [PATCH] Find more variants of ImageMagick
+
+---
+ Modules/FindImageMagick.cmake | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
+diff --git a/Modules/FindImageMagick.cmake b/Modules/FindImageMagick.cmake
+index 7d5534bc2..488d7e0bf 100644
+--- a/Modules/FindImageMagick.cmake
++++ b/Modules/FindImageMagick.cmake
+@@ -196,24 +196,30 @@ foreach(component ${ImageMagick_FIND_COMPONENTS}
+ if(component STREQUAL "Magick++")
+ FIND_IMAGEMAGICK_API(Magick++ Magick++.h
+ Magick++ CORE_RL_Magick++_
++ Magick++-6.Q64 Magick++-6.Q64HDRI Magick++-6.Q32 Magick++-6.Q32HDRI
+ Magick++-Q8 Magick++-Q16 Magick++-Q16HDRI Magick++-Q8HDRI
+ Magick++-6.Q16 Magick++-6.Q8 Magick++-6.Q16HDRI Magick++-6.Q8HDRI
++ Magick++-7.Q64 Magick++-7.Q64HDRI Magick++-7.Q32 Magick++-7.Q32HDRI
+ Magick++-7.Q16 Magick++-7.Q8 Magick++-7.Q16HDRI Magick++-7.Q8HDRI
+ )
+ list(APPEND ImageMagick_REQUIRED_VARS ImageMagick_Magick++_LIBRARY)
+ elseif(component STREQUAL "MagickWand")
+ FIND_IMAGEMAGICK_API(MagickWand "wand/MagickWand.h;MagickWand/MagickWand.h"
+ Wand MagickWand CORE_RL_wand_
++ MagickWand-6.Q64 MagickWand-6.Q64HDRI MagickWand-6.Q32 MagickWand-6.Q32HDRI
+ MagickWand-Q16 MagickWand-Q8 MagickWand-Q16HDRI MagickWand-Q8HDRI
+ MagickWand-6.Q16 MagickWand-6.Q8 MagickWand-6.Q16HDRI MagickWand-6.Q8HDRI
++ MagickWand-7.Q64 MagickWand-7.Q64HDRI MagickWand-7.Q32 MagickWand-7.Q32HDRI
+ MagickWand-7.Q16 MagickWand-7.Q8 MagickWand-7.Q16HDRI MagickWand-7.Q8HDRI
+ )
+ list(APPEND ImageMagick_REQUIRED_VARS ImageMagick_MagickWand_LIBRARY)
+ elseif(component STREQUAL "MagickCore")
+ FIND_IMAGEMAGICK_API(MagickCore "magick/MagickCore.h;MagickCore/MagickCore.h"
+ Magick MagickCore CORE_RL_magick_
++ MagickCore-6.Q64 MagickCore-6.Q64HDRI MagickCore-6.Q32 MagickCore-6.Q32HDRI
+ MagickCore-Q16 MagickCore-Q8 MagickCore-Q16HDRI MagickCore-Q8HDRI
+ MagickCore-6.Q16 MagickCore-6.Q8 MagickCore-6.Q16HDRI MagickCore-6.Q8HDRI
++ MagickCore-7.Q64 MagickCore-7.Q64HDRI MagickCore-7.Q32 MagickCore-7.Q32HDRI
+ MagickCore-7.Q16 MagickCore-7.Q8 MagickCore-7.Q16HDRI MagickCore-7.Q8HDRI
+ )
+ list(APPEND ImageMagick_REQUIRED_VARS ImageMagick_MagickCore_LIBRARY)
+--
+2.13.1
+
diff --git a/dev-util/cmake/files/cmake-3.9.0_rc2-FindPythonInterp.patch b/dev-util/cmake/files/cmake-3.9.0_rc2-FindPythonInterp.patch
new file mode 100644
index 000000000000..242392d8520e
--- /dev/null
+++ b/dev-util/cmake/files/cmake-3.9.0_rc2-FindPythonInterp.patch
@@ -0,0 +1,43 @@
+From 325652950ecc5d72f0a6ac843889a048fe9e32cf Mon Sep 17 00:00:00 2001
+From: Lars Wendler <polynomial-c@gentoo.org>
+Date: Fri, 9 Jun 2017 02:08:03 +0200
+Subject: [PATCH] Don't mess with python versions too much
+
+---
+ Modules/FindPythonInterp.cmake | 8 +++++++-
+ 1 file changed, 7 insertions(+), 1 deletion(-)
+
+diff --git a/Modules/FindPythonInterp.cmake b/Modules/FindPythonInterp.cmake
+index 64b98a879..73bd35b56 100644
+--- a/Modules/FindPythonInterp.cmake
++++ b/Modules/FindPythonInterp.cmake
+@@ -64,6 +64,11 @@ if(PythonInterp_FIND_VERSION)
+ else()
+ set(_PYTHON_FIND_OTHER_VERSIONS ${_PYTHON3_VERSIONS} ${_PYTHON2_VERSIONS} ${_PYTHON1_VERSIONS})
+ endif()
++
++if (CMAKE_GENTOO_BUILD OR CMAKE_BUILD_TYPE STREQUAL Gentoo)
++ set(_Python_NAMES python)
++endif()
++
+ find_program(PYTHON_EXECUTABLE NAMES ${_Python_NAMES})
+
+ # Set up the versions we know about, in the order we will search. Always add
+@@ -88,12 +93,13 @@ unset(_PYTHON2_VERSIONS)
+ unset(_PYTHON3_VERSIONS)
+
+ # Search for newest python version if python executable isn't found
+-if(NOT PYTHON_EXECUTABLE)
++if(NOT PYTHON_EXECUTABLE AND NOT (CMAKE_GENTOO_BUILD OR CMAKE_BUILD_TYPE STREQUAL Gentoo))
+ foreach(_CURRENT_VERSION IN LISTS _Python_VERSIONS)
+ set(_Python_NAMES python${_CURRENT_VERSION})
+ if(CMAKE_HOST_WIN32)
+ list(APPEND _Python_NAMES python)
+ endif()
++
+ find_program(PYTHON_EXECUTABLE
+ NAMES ${_Python_NAMES}
+ PATHS
+--
+2.13.1
+
diff --git a/dev-util/cmake/files/cmake-3.9.0_rc2-prefix-dirs.patch b/dev-util/cmake/files/cmake-3.9.0_rc2-prefix-dirs.patch
new file mode 100644
index 000000000000..f4e9a27597cf
--- /dev/null
+++ b/dev-util/cmake/files/cmake-3.9.0_rc2-prefix-dirs.patch
@@ -0,0 +1,126 @@
+From b1f045122fb210728081ae2165197aebff4ee498 Mon Sep 17 00:00:00 2001
+From: Lars Wendler <polynomial-c@gentoo.org>
+Date: Fri, 9 Jun 2017 01:47:55 +0200
+Subject: [PATCH] Set some proper paths to make cmake find our tools.
+
+The ebuild now adds an extra / at the end of $EPREFIX so that it is
+never the empty string (so that CMAKE_SYSTEM_PREFIX_PATH remains
+correct)
+
+Original patch by Heiko Przybyl.
+Updated by Chris Reffett (cmake-2.8.8)
+Updated by Johannes Huber (cmake-2.8.9)
+Updated by Michael Palimaka (cmake-2.8.10)
+Updated by Chris Reffett (cmake-2.8.11)
+Updated by Michael Palimaka (cmake-3.0.0)
+Updated by Lars Wendler (cmake-3.9.0_rc2)
+---
+ Modules/Platform/Darwin.cmake | 12 ++++++++----
+ Modules/Platform/UnixPaths.cmake | 29 ++++++++++++++++++++++++-----
+ 2 files changed, 32 insertions(+), 9 deletions(-)
+
+diff --git a/Modules/Platform/Darwin.cmake b/Modules/Platform/Darwin.cmake
+index 727baa6e1..543d9e034 100644
+--- a/Modules/Platform/Darwin.cmake
++++ b/Modules/Platform/Darwin.cmake
+@@ -108,9 +108,9 @@ set(CMAKE_C_FRAMEWORK_SEARCH_FLAG -F)
+ set(CMAKE_CXX_FRAMEWORK_SEARCH_FLAG -F)
+ set(CMAKE_Fortran_FRAMEWORK_SEARCH_FLAG -F)
+
+-# default to searching for frameworks first
++# default to searching for frameworks last
+ if(NOT DEFINED CMAKE_FIND_FRAMEWORK)
+- set(CMAKE_FIND_FRAMEWORK FIRST)
++ set(CMAKE_FIND_FRAMEWORK LAST)
+ endif()
+
+ # Older OS X linkers do not report their framework search path
+@@ -132,6 +132,8 @@ endif()
+
+ # set up the default search directories for frameworks
+ set(CMAKE_SYSTEM_FRAMEWORK_PATH
++ @GENTOO_PORTAGE_EPREFIX@Frameworks
++ @GENTOO_PORTAGE_EPREFIX@usr/lib
+ ~/Library/Frameworks
+ )
+ if(_CMAKE_OSX_SYSROOT_PATH)
+@@ -178,13 +180,15 @@ if(CMAKE_OSX_SYSROOT)
+ endif()
+ endif()
+
+-# default to searching for application bundles first
++# default to searching for application bundles last
+ if(NOT DEFINED CMAKE_FIND_APPBUNDLE)
+- set(CMAKE_FIND_APPBUNDLE FIRST)
++ set(CMAKE_FIND_APPBUNDLE LAST)
+ endif()
+ # set up the default search directories for application bundles
+ set(_apps_paths)
+ foreach(_path
++ @GENTOO_PORTAGE_EPREFIX@Applications
++ @GENTOO_PORTAGE_EPREFIX@usr/bin
+ "~/Applications"
+ "/Applications"
+ "${OSX_DEVELOPER_ROOT}/../Applications" # Xcode 4.3+
+diff --git a/Modules/Platform/UnixPaths.cmake b/Modules/Platform/UnixPaths.cmake
+index 5687653cf..be7695898 100644
+--- a/Modules/Platform/UnixPaths.cmake
++++ b/Modules/Platform/UnixPaths.cmake
+@@ -23,6 +23,7 @@ get_filename_component(_CMAKE_INSTALL_DIR "${_CMAKE_INSTALL_DIR}" PATH)
+ # search types.
+ list(APPEND CMAKE_SYSTEM_PREFIX_PATH
+ # Standard
++ @GENTOO_PORTAGE_EPREFIX@usr/local @GENTOO_PORTAGE_EPREFIX@usr @GENTOO_PORTAGE_EPREFIX@
+ /usr/local /usr /
+
+ # CMake install location
+@@ -50,23 +51,41 @@ list(APPEND CMAKE_SYSTEM_PREFIX_PATH
+
+ # List common include file locations not under the common prefixes.
+ list(APPEND CMAKE_SYSTEM_INCLUDE_PATH
+- # X11
+- /usr/include/X11
++ @GENTOO_PORTAGE_EPREFIX@usr/include
+ )
+
+ list(APPEND CMAKE_SYSTEM_LIBRARY_PATH
+- # X11
+- /usr/lib/X11
++ @GENTOO_PORTAGE_GCCLIBDIR@/gcc
++ @GENTOO_PORTAGE_GCCLIBDIR@
++ @GENTOO_PORTAGE_EPREFIX@usr/lib64
++ @GENTOO_PORTAGE_EPREFIX@usr/libx32
++ @GENTOO_PORTAGE_EPREFIX@usr/lib32
++ @GENTOO_PORTAGE_EPREFIX@usr/lib
++ @GENTOO_PORTAGE_EPREFIX@lib
++ )
++
++list(APPEND CMAKE_SYSTEM_PROGRAM_PATH
++ @GENTOO_PORTAGE_EPREFIX@usr/bin
++ @GENTOO_PORTAGE_EPREFIX@bin
+ )
+
+ list(APPEND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES
+- /lib /lib32 /lib64 /usr/lib /usr/lib32 /usr/lib64
++ @GENTOO_PORTAGE_GCCLIBDIR@/gcc
++ @GENTOO_PORTAGE_GCCLIBDIR@
++ @GENTOO_PORTAGE_EPREFIX@usr/lib64
++ @GENTOO_PORTAGE_EPREFIX@usr/libx32
++ @GENTOO_PORTAGE_EPREFIX@usr/lib32
++ @GENTOO_PORTAGE_EPREFIX@usr/lib
++ @GENTOO_PORTAGE_EPREFIX@lib
++ /lib /usr/lib /usr/lib32 /usr/lib64 /usr/libx32
+ )
+
+ list(APPEND CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES
++ @GENTOO_PORTAGE_EPREFIX@usr/include
+ /usr/include
+ )
+ list(APPEND CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES
++ @GENTOO_PORTAGE_EPREFIX@usr/include
+ /usr/include
+ )
+
+--
+2.13.1
+
diff --git a/dev-util/cmake/files/cmake.vim b/dev-util/cmake/files/cmake.vim
new file mode 100644
index 000000000000..5cecd7d05b64
--- /dev/null
+++ b/dev-util/cmake/files/cmake.vim
@@ -0,0 +1,3 @@
+autocmd BufRead,BufNewFile *.cmake,CMakeLists.txt,*.cmake.in runtime! indent/cmake.vim
+autocmd BufRead,BufNewFile *.cmake,CMakeLists.txt,*.cmake.in setf cmake
+autocmd BufRead,BufNewFile *.ctest,*.ctest.in setf cmake
diff --git a/dev-util/cmake/metadata.xml b/dev-util/cmake/metadata.xml
new file mode 100644
index 000000000000..c5d121a7e9cb
--- /dev/null
+++ b/dev-util/cmake/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="project">
+ <email>kde@gentoo.org</email>
+ <name>Gentoo KDE Project</name>
+ </maintainer>
+ <use>
+ <flag name="server">Enable cmake-server support.</flag>
+ <flag name="system-jsoncpp">Use system copy of <pkg>dev-libs/jsoncpp</pkg> instead of bundled one.</flag>
+ </use>
+</pkgmetadata>
diff --git a/dev-util/cmdtest/Manifest b/dev-util/cmdtest/Manifest
new file mode 100644
index 000000000000..6f58bad55ea9
--- /dev/null
+++ b/dev-util/cmdtest/Manifest
@@ -0,0 +1,11 @@
+DIST cmdtest_0.16.orig.tar.xz 32960 SHA256 3cd0e18f638b78a76f78e84d48996ee7436f598832fc3e28380ac03db35afec6 SHA512 5be73dc1d71706ccf220dc91944d353e4745cd214b54977f0a8093bd540114747a78cf9f65c9ed926bcc0749839e3d9252a23d1ff3c1d05fbe87eceb4915bc26 WHIRLPOOL 4028340a9be5177a5b7ea2c805ca3df009719582d414e175734e53327212b2d4eb32c33834dcc61a0a38ef239249a55ebb7206201ca1142b953c1390455c2b6b
+DIST cmdtest_0.18.orig.tar.xz 33156 SHA256 b68addc8a21298a17a9ac02b439abf9a07bcf9916f3ce41804a2348526110e19 SHA512 b5eb9d58401a93fa31cded35338e734a50cacc6af93423b020912a4b1c63d7bf9e35c588ad47678a0395aca6d4dfda76af7c92fbaf41884d542055a04f6406b7 WHIRLPOOL 2d03c4f554efa6bb8c714976af60dbc559bad17dcfd1dd65bfc491a1b16983a01ab1fb17d2e53a67bb29dc79f992de363288f473dc09c54f3162ae8ce9f2f975
+DIST cmdtest_0.27.orig.tar.xz 37088 SHA256 3e038bd0065ac366ef16aa1e9362acd24d2318d967ec853e19be12785f4b723e SHA512 6c8aae6b60863d75bd1f57bd45589f3b201c7d2907fcbcc7c2a8aa2fe3bf766ab4d9688998046e36c76037e7d3fd2559c26c316216941a55a121f4a87299928f WHIRLPOOL 44f3b0b0be5f4bad4548592910a370153186c31ed794fc3522f65c8db04b376040ba145bc391be05315c8e794e2dbb3739e8d32474add6cc91659c76fb3fea65
+DIST cmdtest_0.30.orig.tar.xz 38508 SHA256 8ca60997ca2146881bb828bc34519fd65a855f94b7e382ca049d5f428e93249c SHA512 cbdebe175f09a99218d8ce0f2d1e49019f70b7f3ba112e2650e5a58e36a6f1d1b641c9aed5212e12023e956f999ef9cdba27aea7af9211f35a41874147a402af WHIRLPOOL 411d3796963d9c0d09b66dfb78ba2b2603ddd4f6dacadc9daa4db2de11e28e808ffc91ff2300ec9c6b7646aad65229efb105e85987b4cfc78933d36970d503fc
+EBUILD cmdtest-0.16.ebuild 565 SHA256 83c958b17f9fa355d884942b74a013caaaa4ec78c1e42c687df05c525671b589 SHA512 35a3ab987715ec0af7dc3665c766a9c1b4d35005d7799eadb7478c0125add44761a61b17f8e2d8b80cf79421c0b0a3b7ca6f886153934728a5e2809f291fabe3 WHIRLPOOL 0ac9f689fa089ec29d3471d44f65acac91987840edf4c2f628bdc9c7edeb7c18c7820a2fc6874209870b4a34a1e7ba68776c9499a4a787342a503682a4176397
+EBUILD cmdtest-0.18.ebuild 601 SHA256 5ccad5e2969c46b63f66bbf7595d4cb54f5f9289055bbbdb98a4212594d4483e SHA512 432135a76f50e12791623ceab1e1866dfdce2b038f0a82bc6c884f85f2aa50ba6371c6ba0bd1a9e1ac5d155dd6467e012b566ec22c1512a5e19553a6bc39970b WHIRLPOOL a032bb760503d7cc1c8f3604fef00f273f5671c344a5a2019b71415e5a30f9eeede4bffc248e337657b71a7ef74aeb415a1376b8643f1a85c9b1578e126d5db1
+EBUILD cmdtest-0.27.ebuild 641 SHA256 a15018c24d55aedcf382c2094e1406ee0e2ac3d3f0d0cef24651cc6f6abfaeb9 SHA512 47d71f682e2f37c913593a768097bc1c04ccbcb393057428e89de3ea7ce214160fc25b785b7689327d73ed8fedd4c0e6b3269b51cd2ec33463cea4aeb26091d3 WHIRLPOOL 97afea930143089f152ad64462d926fa304b3e8bcbbf65702b78e55f2dafc23d8849ac83e0e630c0156ed569d7bbf7cb1749974b31343ff5b60b3e0028069ff5
+EBUILD cmdtest-0.30.ebuild 641 SHA256 a15018c24d55aedcf382c2094e1406ee0e2ac3d3f0d0cef24651cc6f6abfaeb9 SHA512 47d71f682e2f37c913593a768097bc1c04ccbcb393057428e89de3ea7ce214160fc25b785b7689327d73ed8fedd4c0e6b3269b51cd2ec33463cea4aeb26091d3 WHIRLPOOL 97afea930143089f152ad64462d926fa304b3e8bcbbf65702b78e55f2dafc23d8849ac83e0e630c0156ed569d7bbf7cb1749974b31343ff5b60b3e0028069ff5
+MISC ChangeLog 2762 SHA256 e9bfcd58196a5bb7d52be0b5e3a37c7db2632ede17e2c24371c956d930369b3b SHA512 34a563940d486916756d4df00a39774bbc8270f7cbb14caba673d6ed3f7d99fb2d4da25855cd19715fe6130de8d7a085e694621f804a586bf9ab65815fb44a2f WHIRLPOOL ae9c6b278fb04d0d49cde158eb674621870a97411ba313ccea36340488b18259d7f4449ca4baac12397c2d7f2be66665381b1c55871042267761093ab1fc35e6
+MISC ChangeLog-2015 1714 SHA256 7d5380731601bac859b1abfd1de4ac9bedeaedfb4114a964848f327c1592e968 SHA512 555445df4860247a43358a5d265d80bff71ab6cbd3593c483a6dbd07a06af3678520ef83eb7f309f1ff28bbd999efd0e392db7645cdc4f1f4742091eff677138 WHIRLPOOL c210f62723935d489976cf27778d48af5e20ea633302346bcf52d6937d4be1cbbb97703a023714d29b542c4ec7ec074c021838c19e2837a4ab611c583ec0be65
+MISC metadata.xml 250 SHA256 dc7996b965794cc38ecefc226a6b05400ff49c69553249c3d0ac69fd277b7906 SHA512 924271cfb32ceafc4134e19b53fbeed96f2e9056addc3c2cbdec28890254abf5f0714979a3ab698ca046e41ef5c2cca2932350830bd8bd3a8e214d99123c12de WHIRLPOOL e00ced8aee67f075273a4c498a4c69671eef224f7b41ef8c194ae72404c242bb93bf31a48fcf94065ab6fe8afbfb667238deba4ea4eb9bec406ace4bfcdcdc8c
diff --git a/dev-util/cmdtest/cmdtest-0.16.ebuild b/dev-util/cmdtest/cmdtest-0.16.ebuild
new file mode 100644
index 000000000000..be5040f8f4b2
--- /dev/null
+++ b/dev-util/cmdtest/cmdtest-0.16.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1
+
+DESCRIPTION="black box tests Unix command line tools"
+HOMEPAGE="http://liw.fi/cmdtest/"
+SRC_URI="http://code.liw.fi/debian/pool/main/c/${PN}/${PN}_${PV}.orig.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+
+DEPEND="
+ ${PYTHON_DEPS}
+ dev-python/cliapp
+ dev-python/ttystatus
+"
+
+src_compile() {
+ addwrite /proc/self/comm
+ distutils-r1_src_compile
+}
diff --git a/dev-util/cmdtest/cmdtest-0.18.ebuild b/dev-util/cmdtest/cmdtest-0.18.ebuild
new file mode 100644
index 000000000000..658bc7c80668
--- /dev/null
+++ b/dev-util/cmdtest/cmdtest-0.18.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1
+
+DESCRIPTION="black box tests Unix command line tools"
+HOMEPAGE="http://liw.fi/cmdtest/"
+SRC_URI="http://code.liw.fi/debian/pool/main/c/${PN}/${PN}_${PV}.orig.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+
+DEPEND="
+ ${PYTHON_DEPS}
+ dev-python/cliapp[${PYTHON_USEDEP}]
+ dev-python/ttystatus[${PYTHON_USEDEP}]
+"
+
+src_compile() {
+ addwrite /proc/self/comm
+ distutils-r1_src_compile
+}
diff --git a/dev-util/cmdtest/cmdtest-0.27.ebuild b/dev-util/cmdtest/cmdtest-0.27.ebuild
new file mode 100644
index 000000000000..005e6458d635
--- /dev/null
+++ b/dev-util/cmdtest/cmdtest-0.27.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1
+
+DESCRIPTION="black box tests Unix command line tools"
+HOMEPAGE="http://liw.fi/cmdtest/"
+SRC_URI="http://code.liw.fi/debian/pool/main/c/${PN}/${PN}_${PV}.orig.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+
+DEPEND="
+ ${PYTHON_DEPS}
+ dev-python/cliapp[${PYTHON_USEDEP}]
+ dev-python/markdown[${PYTHON_USEDEP}]
+ dev-python/ttystatus[${PYTHON_USEDEP}]
+"
+
+src_compile() {
+ addwrite /proc/self/comm
+ distutils-r1_src_compile
+}
diff --git a/dev-util/cmdtest/cmdtest-0.30.ebuild b/dev-util/cmdtest/cmdtest-0.30.ebuild
new file mode 100644
index 000000000000..005e6458d635
--- /dev/null
+++ b/dev-util/cmdtest/cmdtest-0.30.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1
+
+DESCRIPTION="black box tests Unix command line tools"
+HOMEPAGE="http://liw.fi/cmdtest/"
+SRC_URI="http://code.liw.fi/debian/pool/main/c/${PN}/${PN}_${PV}.orig.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+
+DEPEND="
+ ${PYTHON_DEPS}
+ dev-python/cliapp[${PYTHON_USEDEP}]
+ dev-python/markdown[${PYTHON_USEDEP}]
+ dev-python/ttystatus[${PYTHON_USEDEP}]
+"
+
+src_compile() {
+ addwrite /proc/self/comm
+ distutils-r1_src_compile
+}
diff --git a/dev-util/cmdtest/metadata.xml b/dev-util/cmdtest/metadata.xml
new file mode 100644
index 000000000000..ea6b59e79026
--- /dev/null
+++ b/dev-util/cmdtest/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>mschiff@gentoo.org</email>
+ <name>Marc Schiffbauer</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-util/cmocka/Manifest b/dev-util/cmocka/Manifest
new file mode 100644
index 000000000000..a90e01c5ea42
--- /dev/null
+++ b/dev-util/cmocka/Manifest
@@ -0,0 +1,8 @@
+AUX cmocka-1.0.1-fix-librt-configure-issue.patch 1641 SHA256 10241e56506533731d83f95eecca4ae7d4db50b1c6a71e0efd2ba1af0ea34cad SHA512 c50b09a00e8c3d834e78e52ffc257bd8e600a82bcaf060b7e821933bf6cf6f8b80a8500193761844c7ee06612ea276e1b7ecf08a9007532d63150b8b8662086f WHIRLPOOL f6d7916ebc924676b6de41ba69e449b66a39ac6e09bc76c3f204c8c1d1baf1f75b3cb110936a4e7dbed9575b229230798d75667e3afa5200bdbf8f417da452a9
+DIST cmocka-1.0.1.tar.xz 80240 SHA256 b36050d7a1224296803d216cba1a9d4c58c31bf308b2d6d6649d61aa5a36753b SHA512 142b3293a8ab137904d07f1ac6a56daf0afbbfcf7816a582c9998b6225aa5d6fe5f2d1b889de7b187142fc24ca4d1cfdbd630e8783858bc9ce89217ff05abc1e WHIRLPOOL c733d08a4907242bce6e8fb6989934fa8c9ae333a6c9a746c8824001722a7897cebdf8c0501bfb22d2ad29536ab32b0d004e327a1ce7b7740c9d24c6a453d6f9
+DIST cmocka-1.1.1.tar.xz 85648 SHA256 f02ef48a7039aa77191d525c5b1aee3f13286b77a13615d11bc1148753fc0389 SHA512 801c4a3e1bb9047241b1cb5a90c1cbdee1b0aff5e3d0a84ec8b2dbaee79274618c24fbe5e9fedbf0b3ee18c6c98b55d93e135d037ac33ab872edc7665af41577 WHIRLPOOL 7b6b4bd31b9c739b3cb3ed618f545318e44f18081cdd7eef700b15f04139bded5594c9b498df926a91d4311435971d4da025f55129fa22cd3d13f480977923cc
+EBUILD cmocka-1.0.1.ebuild 1150 SHA256 de95e297bbe52ce4b350516886821eb897803306e225209df512a92625ddb58f SHA512 fe02af0cc7c5fef6b3655f07a7c23e7dedf9d973226391b0df31c7c3b62cd91b6f02ea0244faf76c0d3df0807704ad1ce39a2464becdd782b0130ed4b4c80a29 WHIRLPOOL a32105c869981da06524fb94a8551d32dfc89a4c92908bdd96fa0984e8b77790348c8e1119830f72725fb03e49cd6432147c33c341d750851742817933c138b7
+EBUILD cmocka-1.1.1.ebuild 1089 SHA256 e67ec25357cd8155c80acf40b2497a13a1d2512de0755888db7fcfb0359fdc40 SHA512 c0e2a927e03bf7f2217352f8e1227d3bf792ec610f0912fe99e986b1d219290238b0c07c49a0433bb28750b3848541c1990559d893ba08e2210d74e1d924d247 WHIRLPOOL ac60280b6ab7e9017d7aec29db58e49591beafad32dbc53df3b9ac17511e7ae2585317c9c2a87e930f20757e3d6d3b09582f84a7f0e28cf97c01af504a9f500e
+MISC ChangeLog 4708 SHA256 874cf81e32086626102f094dfccc1a02404f9b51888f4df7616eaed881960bfb SHA512 860a4410cf8c118029df8d43c9bfeb024250d1885a9cc01f135fa8e782076efbb5136cfb690717d775faea3335abcc478591eb8fae3bca21a824cb9965f3d0b9 WHIRLPOOL 6131341efa59a45a3f4e9bec89904a57f472cedcfe4dac57bb5cd76c116350ec88b1a96b674024c4881f25e41976570126de401cd59eee07c93bac34331c546f
+MISC ChangeLog-2015 3028 SHA256 591d76a48fc8bce6bf1c36c80ccd0a05eeeab253cb5b1c88569a08cfae5ab5c4 SHA512 93795ab2eedc748fa1581a8e0b4f9e6ea7b0c39a65a77210307d1f17e923b4700d5ea272174ece52a1e3e56bc23cb4ba297c7612cd7dd7e0b1be3c064ee3718b WHIRLPOOL c6a20a0e5bbe1b9c07612190c73219178b577a07a07e6dda61e767a0ba504010daee4697e4504e66f221405aa3930f0aea50b249d7308e7fcd45f0fda279b179
+MISC metadata.xml 378 SHA256 e1e64998af7474c5738596f631cc33a8293667e999ec395a2affb3d59755cf22 SHA512 210dcc099911d24e9918e244a76020da52df9384983d3941c2e4b61449e3c1fa780d6ebc42e38c963b714b61c8284ad58cdf52c85269a342d30d5f2e4b605ff6 WHIRLPOOL 30bffddd1ee7c68071fcbd81c4481ff02c96e2f07737b481c0c8a4379a1aae4fb3951e80d0465265fa2115c26d93df6e83029b59c84b604a994006f5f682e615
diff --git a/dev-util/cmocka/cmocka-1.0.1.ebuild b/dev-util/cmocka/cmocka-1.0.1.ebuild
new file mode 100644
index 000000000000..2c38c69694b7
--- /dev/null
+++ b/dev-util/cmocka/cmocka-1.0.1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit cmake-multilib
+
+DESCRIPTION="A unit testing framework for C"
+HOMEPAGE="https://cmocka.org/"
+SRC_URI="https://cmocka.org/files/1.0/${P}.tar.xz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 ~s390 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux"
+IUSE="doc static-libs test"
+
+DEPEND="
+ doc? ( app-doc/doxygen[latex] )
+"
+RDEPEND=""
+
+PATCHES=( "${FILESDIR}/${P}-fix-librt-configure-issue.patch" )
+
+DOCS=( AUTHORS ChangeLog README )
+
+multilib_src_configure() {
+ local mycmakeargs=(
+ $(cmake-utils_use_with static-libs STATIC_LIB)
+ $(cmake-utils_use test UNIT_TESTING)
+ $(multilib_is_native_abi && cmake-utils_use_find_package doc Doxygen \
+ || echo -DCMAKE_DISABLE_FIND_PACKAGE_Doxygen=ON)
+ )
+ cmake-utils_src_configure
+}
+
+multilib_src_install() {
+ if multilib_is_native_abi && use doc; then
+ pushd doc || die
+ doxygen Doxyfile || die
+ rm -f html/*.md5 latex/*.md5 latex/Manifest man/man3/_* || die
+ dohtml html/*
+ dodoc latex/*
+ doman man/man3/*.3
+ popd || die
+ fi
+ cmake-utils_src_install
+}
diff --git a/dev-util/cmocka/cmocka-1.1.1.ebuild b/dev-util/cmocka/cmocka-1.1.1.ebuild
new file mode 100644
index 000000000000..a6a2d1480ee8
--- /dev/null
+++ b/dev-util/cmocka/cmocka-1.1.1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-multilib
+
+DESCRIPTION="A unit testing framework for C"
+HOMEPAGE="https://cmocka.org/"
+SRC_URI="https://cmocka.org/files/1.1/${P}.tar.xz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
+IUSE="doc static-libs test"
+
+DEPEND="
+ doc? ( app-doc/doxygen[latex] )
+"
+RDEPEND=""
+
+DOCS=( AUTHORS ChangeLog README )
+
+multilib_src_configure() {
+ local mycmakeargs=(
+ -DWITH_STATIC_LIB=$(usex static-libs)
+ -DUNIT_TESTING=$(usex test)
+ $(multilib_is_native_abi && cmake-utils_use_find_package doc Doxygen \
+ || echo -DCMAKE_DISABLE_FIND_PACKAGE_Doxygen=ON)
+ )
+
+ cmake-utils_src_configure
+}
+
+multilib_src_install() {
+ if multilib_is_native_abi && use doc; then
+ pushd doc || die
+ doxygen Doxyfile || die
+ rm -f html/*.md5 latex/*.md5 latex/Manifest man/man3/_* || die
+ dodoc -r html/
+ dodoc -r latex/
+ doman man/man3/*.3
+ popd || die
+ fi
+
+ cmake-utils_src_install
+}
diff --git a/dev-util/cmocka/files/cmocka-1.0.1-fix-librt-configure-issue.patch b/dev-util/cmocka/files/cmocka-1.0.1-fix-librt-configure-issue.patch
new file mode 100644
index 000000000000..2bafd9010767
--- /dev/null
+++ b/dev-util/cmocka/files/cmocka-1.0.1-fix-librt-configure-issue.patch
@@ -0,0 +1,56 @@
+From b2732b52202ae48f866a024c633466efdbb8e85a Mon Sep 17 00:00:00 2001
+From: Andreas Schneider <asn@cryptomilk.org>
+Date: Thu, 3 Mar 2016 09:12:21 +0100
+Subject: cmake: Fix possible issues with librt during configure
+
+Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
+---
+ ConfigureChecks.cmake | 16 +++++++++-------
+ 1 file changed, 9 insertions(+), 7 deletions(-)
+
+diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
+index c2064dd..31c5a94 100644
+--- a/ConfigureChecks.cmake
++++ b/ConfigureChecks.cmake
+@@ -100,11 +100,9 @@ else (WIN32)
+ endif (WIN32)
+
+ find_library(RT_LIBRARY rt)
+-if (RT_LIBRARY)
+- set(CMAKE_REQUIRED_LIBRARIES ${RT_LIBRARY})
+-endif (RT_LIBRARY)
+-
+-set(CMOCKA_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} CACHE INTERNAL "cmocka required system libraries")
++if (RT_LIBRARY AND NOT LINUX)
++ set(CMOCKA_REQUIRED_LIBRARIES ${RT_LIBRARY} CACHE INTERNAL "cmocka required system libraries")
++endif ()
+
+ # OPTIONS
+ check_c_source_compiles("
+@@ -124,9 +122,10 @@ int main(void) {
+ endif(WIN32)
+
+ if (HAVE_TIME_H AND HAVE_STRUCT_TIMESPEC AND HAVE_CLOCK_GETTIME)
+- set(CMAKE_REQUIRED_LIBRARIES ${RT_LIBRARY})
++ if (RT_LIBRARY)
++ set(CMAKE_REQUIRED_LIBRARIES ${RT_LIBRARY})
++ endif()
+
+- message(STATUS "CMAKE_REQUIRED_INCLUDES=${CMAKE_REQUIRED_INCLUDES} CMAKE_REQUIRED_LIBRARIES=${CMAKE_REQUIRED_LIBRARIES}")
+ check_c_source_compiles("
+ #include <time.h>
+
+@@ -137,7 +136,10 @@ int main(void) {
+
+ return 0;
+ }" HAVE_CLOCK_GETTIME_REALTIME)
++
++ # reset cmake requirements
+ set(CMAKE_REQUIRED_INCLUDES)
++ set(CMAKE_REQUIRED_LIBRARIES)
+ endif ()
+
+ # ENDIAN
+--
+cgit v0.12
+
diff --git a/dev-util/cmocka/metadata.xml b/dev-util/cmocka/metadata.xml
new file mode 100644
index 000000000000..b659c1627a38
--- /dev/null
+++ b/dev-util/cmocka/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>creffett@gentoo.org</email>
+ <name>Chris Reffett</name>
+</maintainer>
+<maintainer type="project">
+ <email>kde@gentoo.org</email>
+ <name>Gentoo KDE Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/dev-util/cmt/Manifest b/dev-util/cmt/Manifest
new file mode 100644
index 000000000000..1081ca730ab2
--- /dev/null
+++ b/dev-util/cmt/Manifest
@@ -0,0 +1,6 @@
+AUX 80cmt-mode-gentoo.el 207 SHA256 56524651c55dfdeb4693aeb9a6b05ccad14b87468196d807dac9527a420b5dc3 SHA512 a4006264cde07d84ab9171f48fa2d18c3c6e3fe3025acd55707d94f96dac9573e22e45196d784d9aa04f904fe0d3ee99e63f3a2aded00ee7d76a305728c1ae8d WHIRLPOOL 3bbb58bc8726a126124fcbaee46056061d30c1f5955ef8c8a35e90470ce448c129121ddba828b246ff73f1af6de21e174d1f0862977042b943e902bccb043ee2
+DIST CMTv1r26.tar.gz 2194291 SHA256 1f4edd814aae018707325aed893d04a82e5e609ec8f082dd511373e33e987e34 SHA512 412366dbf4aaef9f092f9472792e314c6d8f3e0360ddfa6d135e2bea9a167b627ddc78ad5a2d4f5139b4835abb68c06166abf3204bf5ba3969089923782e817e WHIRLPOOL 049f511c85ff1cf0a0cefec6cca7020f44fd2e86b76e649bc5bc583b2ac60f5ea3d683b52d630712ac1d729cd0fd92364b4192937130ef84ff66f5d9ef8940e0
+EBUILD cmt-1.26.ebuild 2035 SHA256 633455347853a5d0decfe5c8f93bea8d726e5db05d1175ff6afafbcecf8a2870 SHA512 e16d9e2d7da3ba148fa4e5ca7d1578ab4eba13b3953c851d06341cc188285e6d434b2b8a6fe8483916fed9ecf6eeaae0311fd30e9b891d3bcd782b979d80e2c0 WHIRLPOOL 5f0a5d115ac26d1d1a7518cc14d30315a057f8b311bc7da25a6592fc96bb84c9c511a44028217e7e8402429763b1b0a8a394a618b16837f4c4d1fb33c6adabfd
+MISC ChangeLog 2434 SHA256 5761aab3658da28327591b6dc35550f30cabda4a87b4c3b9f0d7aaf8a239a15d SHA512 e59b7ceff7622ec20e0820210fdf89a31aacccd2f9aae0fc8e01b50e4c3278799fbb01adf34dec2eef1dcb2c945bafea2e67fa8d83b2e68420c4170e5c01e622 WHIRLPOOL 3942636721199a1e5ad0841547145d03f5387fd1e3143e592a6df7ca886c1999cfc1387b3fab3ab57dce5945b41e6ac298faaa3cc7d3483b164ef5bd050da183
+MISC ChangeLog-2015 2565 SHA256 14a69ea129a63b1fc246e341ce4f2e328a623666a2c41d557ef605eb5c5861d3 SHA512 3cc9d4f6892ac8bf10b3945607cf3f731bdcda9ab331dc04f7e2bc3cfdfd48111fcb1351b345064d2cc6ea126c4be7cdaa0ebad016ebc4553754f7ad5986d1af WHIRLPOOL 3ce6fb04990b9665591e255f5681dda40421b65f49fbd8a44c6f3dfcf55426265fafaf6e174cca83cab9284b29410e6c3a666e80582c0bc1e907325357a323c9
+MISC metadata.xml 688 SHA256 70ad812d74e07d089eab1d1ad07af571b6e06127b111fd49df9944ad5563a767 SHA512 85a9ed819ec516e1d3de3ed9c9fded08b16f067157524f60b10364488971e19bdb402d96097a75c74d8bea87d8c07141a58d53efcc7b9400801b34c836d7e8c6 WHIRLPOOL 4c6ded47eab6f4b4ad925e873d898c45aea35d18d8d071be83a08822c0a1caf4d3d1b37f4a6c73133f650164e6a588abdfefe036a6a90b8a7e7157dbc72e5c43
diff --git a/dev-util/cmt/cmt-1.26.ebuild b/dev-util/cmt/cmt-1.26.ebuild
new file mode 100644
index 000000000000..c36fd4ad8f2b
--- /dev/null
+++ b/dev-util/cmt/cmt-1.26.ebuild
@@ -0,0 +1,90 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils elisp-common multilib toolchain-funcs versionator
+
+CPV=($(get_version_components ${PV}))
+CMT_PV=v${CPV[0]}r${CPV[1]}
+
+DESCRIPTION="Cross platform configuration management environment"
+HOMEPAGE="http://www.cmtsite.net/"
+SRC_URI="http://www.cmtsite.net/${CMT_PV}/CMT${CMT_PV}.tar.gz"
+
+LICENSE="CeCILL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="emacs java doc"
+
+DEPEND="emacs? ( virtual/emacs )"
+RDEPEND="${DEPEND}
+ java? ( virtual/jdk )"
+
+S="${WORKDIR}/CMT/${CMT_PV}"
+
+src_configure() {
+ cd "${S}"/mgr || die
+ ./INSTALL || die
+ source setup.sh
+}
+
+src_compile() {
+ cd "${S}"/mgr || die
+ emake \
+ cpp="$(tc-getCXX)" \
+ cppflags="${CXXFLAGS}" \
+ cpplink="$(tc-getCXX) ${LDFLAGS}"
+
+ sed -i -e "s:${WORKDIR}:${EPREFIX}/usr/$(get_libdir):g" setup.*sh || die
+ cd "${S}" || die
+ mv src/demo . || die
+ rm ${CMTBIN}/*.o || die
+
+ use emacs && elisp-compile doc/cmt-mode.el
+}
+
+src_install() {
+ CMTDIR=/usr/$(get_libdir)/CMT/${CMT_PV}
+ dodir ${CMTDIR}
+ cp -pPR mgr src ${CMTBIN} "${ED}"/${CMTDIR} || die
+ dodir /usr/bin
+ dosym ${CMTDIR}/${CMTBIN}/cmt.exe /usr/bin/cmt
+
+ cat > 99cmt <<-EOF
+ CMTROOT="${EROOT%/}${CMTDIR}"
+ CMTBIN="$(uname)-$(uname -m | sed -e 's# ##g')"
+ CMTCONFIG="$(${CMTROOT}/mgr/cmt_system.sh)"
+ EOF
+ if use java; then
+ cp -pPR java "${ED}"/${CMTDIR}
+ echo "#!${EPREFIX}/bin/sh" > jcmt
+ echo "java cmt_parser" >> jcmt
+ dobin jcmt
+ echo "CLASSPATH=\"${CMTDIR}/java/cmt.jar\"" >> 99cmt
+ fi
+
+ doenvd 99cmt
+ dodoc ChangeLog doc/*.txt
+ dohtml doc/{ChangeLog,ReleaseNotes}.html
+
+ if use doc; then
+ emake -C mgr gendoc
+ insinto /usr/share/doc/${PF}
+ doins -r doc/{CMTDoc,CMTFAQ}.{html,pdf} doc/Images
+ doins -r demo
+ fi
+
+ if use emacs; then
+ elisp-install ${PN} doc/cmt-mode.{el,elc} || die
+ elisp-site-file-install "${FILESDIR}"/80cmt-mode-gentoo.el || die
+ fi
+}
+
+pkg_postinst () {
+ use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}
diff --git a/dev-util/cmt/files/80cmt-mode-gentoo.el b/dev-util/cmt/files/80cmt-mode-gentoo.el
new file mode 100644
index 000000000000..91be98ebc614
--- /dev/null
+++ b/dev-util/cmt/files/80cmt-mode-gentoo.el
@@ -0,0 +1,6 @@
+
+;;; cmt site-lisp configuration
+
+(add-to-list 'load-path "@SITELISP@")
+(autoload 'cmt-mode "cmt-mode" "CMT requirements file editing mode." t)
+(add-to-list 'auto-mode-alist '("requirements\\'" . cmt-mode))
diff --git a/dev-util/cmt/metadata.xml b/dev-util/cmt/metadata.xml
new file mode 100644
index 000000000000..d57bc4d86fdb
--- /dev/null
+++ b/dev-util/cmt/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>bicatali@gentoo.org</email>
+ </maintainer>
+ <longdescription lang="en">
+ CMT is a configuration management environment, based on some
+ management conventions and comprises several shell-based
+ utilities. It is an attempt to formalize software production and
+ especially configuration management around a package-oriented
+ principle. Used in High Energy Physics large experiments, where
+ tailored packages are developped and they do not know the existence
+ of portage and overlays.
+</longdescription>
+</pkgmetadata>
diff --git a/dev-util/coccigrep/Manifest b/dev-util/coccigrep/Manifest
new file mode 100644
index 000000000000..eca92a81ae5c
--- /dev/null
+++ b/dev-util/coccigrep/Manifest
@@ -0,0 +1,6 @@
+AUX 50coccigrep-gentoo.el 99 SHA256 f43c286e8ab2615dc12b610208b140823fccaf0005b7b39616ce487af5a05922 SHA512 13cf90c99017cfb865c1d41e9813bb20993b4a91419e4bcca6b5536e8c35bfb871616c5174dd08eb8f1726f05296205428d14eaf9e9fabcf08bff01b287581f4 WHIRLPOOL eaabbae5a7084d5e6d7c434060dcf27ee14ee93ef427d93c97eba9fb155c8e8f4642da8c9fbc89a5e84b89b31112b0311081f12b9284be76fc2fc9a170087147
+DIST coccigrep-1.13.tar.gz 32366 SHA256 15fb99a1f5435a6d30fa967cc24141fee2d5116d1140d7ca34b38b763cf26b32 SHA512 d01baefe1c5f5d23ce03e5daccde0c38d4c05872313a0c8d15e53444c34fa6ae0db3b25bd62d8635a3f7b16e64767f92051c59d29bbd81cd24f94c9376af08ba WHIRLPOOL 0c5fded9ac451298754c95f9453c4f4d08c82b3f59749b4cf099d51b22b8885b1cd5c440f781783a226b0bc7707980eed644b3aa8efbba14f591978c835b698d
+EBUILD coccigrep-1.13.ebuild 1331 SHA256 6bafd8c7b059b0564502795e0cae28573495f4bc639c842a95599e641b7bda10 SHA512 bfbfe08294264e7f982e2f68e0ce0ecf72bb28eaac4f73d6afe45a9a63e56350481a7979923588a825a0e2de249a86788b6adae7cd5274fb4991868354c37a45 WHIRLPOOL 47d47cd293ee284d0279d1f8bf921ebc46fd00bbdefd0e565687d8abed850326ff106fb7764974cb10f73562771411f9e5262c12106fb24d8cf0a78af83f9432
+MISC ChangeLog 2603 SHA256 00666f8a603c880c7e56eff92a57529a76cc9a02b3debaef9c894505f8da4a27 SHA512 4da6e812ce655645c59f4c733a4968a81127a6693987868d5c445c675d13e2a9520dbf2ee810b3fe1cebd93ef1b517f018556346ad490ad66b726459907020fe WHIRLPOOL 4eebbb4d3354279da5fa83024edd2072c55792e468784dd4a6c13d0c85e3fe56dc0ec8814bbb81cd1a1b971fb685a7037353fdeaebb602a42808a10fd453c35a
+MISC ChangeLog-2015 2719 SHA256 e019a39a8a62bf882da10d8d6eb183e1c0d6d29cb5902e7e13ce086eb47ba543 SHA512 6400adfdf90d68ff9cc50c38fe27a56d08b47565064f294b36ff9d86f69b8e5b4de57046f4e66a81acf24ae8bb1849bbb68aa6f0536ad60e4f07f112eae1345a WHIRLPOOL 40fafa825cc721ea0c95ebf4d47db684256bdc82fc3b746c7f5fd9ae66a06e796b459ad7a4ffa265c7dcde4d3db781028f78f1593ab2582545ec6c7eaae2e31c
+MISC metadata.xml 400 SHA256 00b14336b7e4f35c5d5a1d850b81901a229708be5c713094b1b8862ba89b4737 SHA512 785b3ffe7af1ca248f1aad24c21e3d5c5e0fdef899a7002ae53fea4a8fcafd3ad2d2e759540a1e0556853b62bfa7b0c27303a5be45bde5ce176db3be94c31c40 WHIRLPOOL 110f992be3edf6702ba2e24e1d1e8a420ca685064a431f525391b3d34027e72c5e0048082349fa609dc8df5f4df45827219ca6844b99e29cbb68f7024db3645c
diff --git a/dev-util/coccigrep/coccigrep-1.13.ebuild b/dev-util/coccigrep/coccigrep-1.13.ebuild
new file mode 100644
index 000000000000..6cc6aa3b0ab8
--- /dev/null
+++ b/dev-util/coccigrep/coccigrep-1.13.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1 elisp-common
+
+DESCRIPTION="A semantic grep for the C language"
+HOMEPAGE="http://home.regit.org/software/coccigrep/"
+SRC_URI="https://github.com/regit/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="doc emacs vim"
+
+RDEPEND="dev-util/coccinelle[python]
+ emacs? ( virtual/emacs )
+ vim? ( || ( app-editors/vim app-editors/gvim ) )"
+DEPEND="doc? ( dev-python/sphinx )
+ emacs? ( virtual/emacs )"
+
+SITEFILE="50${PN}-gentoo.el"
+
+python_compile_all() {
+ use doc && emake -C doc html
+
+ if use emacs ; then
+ elisp-compile editors/*.el || die
+ fi
+}
+
+python_install_all() {
+ use doc && local HTML_DOCS="doc/_build/html/."
+ distutils-r1_python_install_all
+
+ doman ${PN}.1
+
+ if use emacs ; then
+ elisp-install ${PN} editors/*.{el,elc} || die
+ elisp-site-file-install "${FILESDIR}"/${SITEFILE} || die
+ fi
+
+ if use vim ; then
+ insinto /usr/share/vim/vimfiles/plugin
+ doins editors/cocci-grep.vim
+ fi
+}
+
+pkg_postinst() {
+ use emacs && elisp-site-regen
+
+ einfo "Syntax highlighting is supported through dev-python/pygments."
+ einfo "Install it if you want colorized output formats."
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}
diff --git a/dev-util/coccigrep/files/50coccigrep-gentoo.el b/dev-util/coccigrep/files/50coccigrep-gentoo.el
new file mode 100644
index 000000000000..7fbc6b93e541
--- /dev/null
+++ b/dev-util/coccigrep/files/50coccigrep-gentoo.el
@@ -0,0 +1,4 @@
+;;; coccigrep site-lisp configuration
+
+(add-to-list 'load-path "@SITELISP@")
+(require 'cocci-grep)
diff --git a/dev-util/coccigrep/metadata.xml b/dev-util/coccigrep/metadata.xml
new file mode 100644
index 000000000000..0c548f25bb2b
--- /dev/null
+++ b/dev-util/coccigrep/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>radhermit@gentoo.org</email>
+ <name>Tim Harder</name>
+ </maintainer>
+ <use>
+ <flag name="vim">Install the coccigrep vim plugin</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">regit/coccigrep</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/coccinelle/Manifest b/dev-util/coccinelle/Manifest
new file mode 100644
index 000000000000..a29ca94dcae4
--- /dev/null
+++ b/dev-util/coccinelle/Manifest
@@ -0,0 +1,8 @@
+AUX 50coccinelle-gentoo.el 154 SHA256 66dba99a78fd02b8b232b14b11d6f2b2595dd5bfa867d5bb16be117999fbb4cc SHA512 dc99ec43c65fc3b6735b8d06f664c09dabe89bb6dec2a0c0390e97ea2bacb1d76ff33d94124c2a2d1f16795648480c33e0306020e151d67d530e35aa9f4f009d WHIRLPOOL 84ee1036e267f8079fc43eff7ea8313f913b96b0a2869e99c3e684c6b73992a2d7fa0a44a030f894557f1e34fa1d1a1f86543dfa5072fbc9f6505be9650de4a2
+DIST coccinelle-1.0.5.tgz 5660596 SHA256 5efb093b538145b7526a06946c09c7caaa715006658af2049faa8739f459743b SHA512 0fee450554abc40feac9e745a252c1679f8016c82f04236e642e32e129618a950bb9657f1c447d62543289e95bbd4b1a8b0c6030373025c32a37068f82d30678 WHIRLPOOL 33ec9789d93f6cd35eda37f0647d3e3f3f53898fccc2df68aa30cec50ce82b4d392d84a0c97708cdf301b2f076cce1942b5d4a51dffb0bd177eb9dee460d3e6f
+DIST coccinelle-1.0.6.tgz 6684278 SHA256 8452ed265c209dae99cbb33b67bc7912e72f8bca1e24f33f1a88ba3d7985e909 SHA512 b667762ddf5ad30b126e93572cd8a8b3ffc21a790cd9d6df586e421c5db0a8d049af9587c6e5cb8f7a13f2c090ab2a9cca59ecba69069f9d3fe67b6f75dfe539 WHIRLPOOL 3a47b3d2f844e4ee38972566971db261c58cb26e73ccf1187b9b5bda0561327c6bea9a48e6f8fc3db285b5cef8e011feb7d6a6fff09754338dbf103fb1900f3d
+EBUILD coccinelle-1.0.5.ebuild 2527 SHA256 e49aa5a66591673ecf8bc334acba054c30e87d7d393cc5a9d969a24fe2e5795f SHA512 faed2a5a7a28a9a0e907916fb0835703f715f3dfb5dca631126818bab314316f263cf69fdd07f877551f5b67b994c5bc3c0690ea644574dbc2456453a4278e74 WHIRLPOOL a955247a577ba8c4c9c06225766e16407a4831756eda16fa538d662c98f2de1519c8925f40c319a99ba3f48179d9d3346be5b0ee149cce8123031b889ee385f4
+EBUILD coccinelle-1.0.6.ebuild 2535 SHA256 b9e4ef38f716eb53ed6f6957dd83af8f55eeb14bad86e3469245305eeba05d53 SHA512 d39ac4d96574eefaa32e3b19456f0d01cd406363d631f866c17abf7557175738266c9dc0147889eda3ad26a4ad2c8af7246ef92b94f73135a2658bc17ed518ce WHIRLPOOL 0046fc73712cc02670fec0b98061c7d2d3e412b5730d7948f18924f75acb3027caa6090a49ab344f41ef91ec5281d9344fa4ddc61d4352a1803f30dcef5b04c9
+MISC ChangeLog 4904 SHA256 e5b566df697f63fae454af0ee9a21bcdac46f61a9bc940852279b1692b65e70f SHA512 0f36d13cab95f836742fc887d0921dc9fe4cbd8caf281a5cbf456459c6848e6af289aa1337f92d415e7d23003b94bcdfcd42a1f05484b623416ebe7a0fc6c67b WHIRLPOOL c244b9c983247950ab07359f58032cf225fdf058490c0e17a18434304521aaed6ed204cb1023905beca6d4740c9f46d8da3ab88410724845719fe8f199892684
+MISC ChangeLog-2015 6806 SHA256 ddbe1ccbef849501eb9e4563674bc894be2a1d0ec17d1e515f00f4bae926ca87 SHA512 43783a52949ad3ae53f9f600b11c102f5ec007cf3cc2f39c77b4e368287eecc57ce117b2b3e0c4bd9848e6d5f30c447961a03301e3bf12335f91a4de9a9e5524 WHIRLPOOL c52cfd575f9512bddddd68822526704fb54474dbdaa65597acd9a7d7c12039aa46f8daa4bd06d8b80b203bc7eaa9673d43c993e9de3837c8987b9d25ac5d5e0c
+MISC metadata.xml 350 SHA256 29f97b2329d37672e578d37ee2f408e3d5efec074f5ba88ac0218bb5363a676c SHA512 9c0be4d11897f712a537302f5f87d92cf8df5866e60d3293f5dbf7fe6dd1d88d5678e103319577b397546307604124db39ac47cde7dfb5e61141c43a0fbe5761 WHIRLPOOL e402e4e0e71ab1dc5d2fbc8591fc2ab89e7f7c7dcf4937b76537ad2abb6a4c34b31b3a5d369bf1f5a64e3b66ea86f3d428d06f6db61e0b490ca903d0919c8687
diff --git a/dev-util/coccinelle/coccinelle-1.0.5.ebuild b/dev-util/coccinelle/coccinelle-1.0.5.ebuild
new file mode 100644
index 000000000000..5d511dcf7a2a
--- /dev/null
+++ b/dev-util/coccinelle/coccinelle-1.0.5.ebuild
@@ -0,0 +1,122 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+PYTHON_COMPAT=( python2_7 )
+
+inherit multilib eutils python-single-r1 bash-completion-r1 elisp-common
+
+MY_P="${P/_/-}"
+DESCRIPTION="Program matching and transformation engine"
+HOMEPAGE="http://coccinelle.lip6.fr/"
+SRC_URI="http://coccinelle.lip6.fr/distrib/${MY_P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="doc emacs ocaml +ocamlopt pcre python test vim-syntax"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+# ocaml enables ocaml scripting (uses findlib)
+CDEPEND=">=dev-lang/ocaml-3.12:=[ocamlopt?]
+ dev-ml/sexplib:=[ocamlopt(+)?]
+ dev-ml/menhir:=[ocamlopt?]
+ dev-ml/camlp4:=[ocamlopt?]
+ dev-ml/parmap:=[ocamlopt?]
+ emacs? ( virtual/emacs )
+ ocaml? ( dev-ml/findlib:= )
+ pcre? ( dev-ml/pcre-ocaml:=[ocamlopt(+)?] )
+ python? ( ${PYTHON_DEPS} )"
+
+RDEPEND="${CDEPEND}
+ vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )"
+
+# dev-texlive/texlive-fontsextra contains 'ifsym.sty'
+DEPEND="${CDEPEND}
+ virtual/pkgconfig
+ doc? (
+ virtual/latex-base
+ dev-texlive/texlive-latexextra
+ dev-texlive/texlive-fontsextra
+ )"
+
+DOCS=( authors.txt bugs.txt changes.txt credits.txt readme.txt )
+
+S=${WORKDIR}/${MY_P}
+
+SITEFILE=50coccinelle-gentoo.el
+
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ if use python ; then
+ # fix python install location
+ sed -e "s:\$(LIBDIR)/python:$(python_get_sitedir):" \
+ -i Makefile || die
+ fi
+}
+
+src_configure() {
+ econf \
+ $(use_enable python) \
+ $(use_enable ocaml) \
+ $(use_enable pcre) \
+ $(use_enable pcre pcre-syntax) \
+ $(use_enable ocamlopt opt)
+}
+
+src_compile() {
+ emake depend
+
+ if use ocamlopt ; then
+ emake all.opt
+ else
+ emake TARGET_SPATCH=byte-only all-dev
+ fi
+
+ if use doc ; then
+ VARTEXFONTS="${T}"/fonts emake docs
+ fi
+
+ if use emacs ; then
+ elisp-compile editors/emacs/cocci.el || die
+ fi
+}
+
+src_test() {
+ emake check
+ use python && emake pycocci-check
+}
+
+src_install() {
+ default
+
+ use doc && dodoc docs/manual/*.pdf
+ newbashcomp scripts/spatch.bash_completion spatch
+
+ if use emacs ; then
+ elisp-install ${PN} editors/emacs/*
+ elisp-site-file-install "${FILESDIR}"/${SITEFILE}
+ fi
+
+ if use vim-syntax ; then
+ newdoc editors/vim/README README-vim
+ rm editors/vim/README || die
+ insinto /usr/share/vim/vimfiles
+ doins -r editors/vim/*
+ fi
+
+ use python && python_optimize
+
+ export STRIP_MASK='*/coccinelle/spatch'
+}
+
+pkg_postinst() {
+ use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}
diff --git a/dev-util/coccinelle/coccinelle-1.0.6.ebuild b/dev-util/coccinelle/coccinelle-1.0.6.ebuild
new file mode 100644
index 000000000000..403ac36a8d1d
--- /dev/null
+++ b/dev-util/coccinelle/coccinelle-1.0.6.ebuild
@@ -0,0 +1,124 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+
+inherit multilib eutils python-single-r1 bash-completion-r1 elisp-common
+
+MY_P="${P/_/-}"
+DESCRIPTION="Program matching and transformation engine"
+HOMEPAGE="http://coccinelle.lip6.fr/"
+SRC_URI="http://coccinelle.lip6.fr/distrib/${MY_P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="doc emacs ocaml +ocamlopt pcre python test vim-syntax"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+# ocaml enables ocaml scripting (uses findlib)
+CDEPEND=">=dev-lang/ocaml-3.12:=[ocamlopt?]
+ dev-ml/sexplib:=[ocamlopt(+)?]
+ dev-ml/menhir:=[ocamlopt?]
+ dev-ml/camlp4:=[ocamlopt?]
+ dev-ml/parmap:=[ocamlopt?]
+ emacs? ( virtual/emacs )
+ ocaml? ( dev-ml/findlib:= )
+ pcre? ( dev-ml/pcre-ocaml:=[ocamlopt(+)?] )
+ python? ( ${PYTHON_DEPS} )"
+
+RDEPEND="${CDEPEND}
+ vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )"
+
+# dev-texlive/texlive-fontsextra contains 'ifsym.sty'
+DEPEND="${CDEPEND}
+ virtual/pkgconfig
+ doc? (
+ virtual/latex-base
+ dev-texlive/texlive-latexextra
+ dev-texlive/texlive-fontsextra
+ )"
+
+DOCS=( authors.txt bugs.txt changes.txt credits.txt readme.txt )
+
+S=${WORKDIR}/${MY_P}
+
+SITEFILE=50coccinelle-gentoo.el
+
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ default
+
+ if use python ; then
+ # fix python install location
+ sed -e "s:\$(LIBDIR)/python:$(python_get_sitedir):" \
+ -i Makefile || die
+ fi
+}
+
+src_configure() {
+ econf \
+ $(use_enable python) \
+ $(use_enable ocaml) \
+ $(use_enable pcre) \
+ $(use_enable pcre pcre-syntax) \
+ $(use_enable ocamlopt opt)
+}
+
+src_compile() {
+ emake depend
+
+ if use ocamlopt ; then
+ emake all.opt
+ else
+ emake TARGET_SPATCH=byte-only all-dev
+ fi
+
+ if use doc ; then
+ VARTEXFONTS="${T}"/fonts emake docs
+ fi
+
+ if use emacs ; then
+ elisp-compile editors/emacs/cocci.el || die
+ fi
+}
+
+src_test() {
+ emake check
+ use python && emake pycocci-check
+}
+
+src_install() {
+ default
+
+ use doc && dodoc docs/manual/*.pdf
+ newbashcomp scripts/spatch.bash_completion spatch
+
+ if use emacs ; then
+ elisp-install ${PN} editors/emacs/*
+ elisp-site-file-install "${FILESDIR}"/${SITEFILE}
+ fi
+
+ if use vim-syntax ; then
+ newdoc editors/vim/README README-vim
+ rm editors/vim/README || die
+ insinto /usr/share/vim/vimfiles
+ doins -r editors/vim/*
+ fi
+
+ use python && python_optimize
+
+ export STRIP_MASK='*/coccinelle/spatch'
+}
+
+pkg_postinst() {
+ use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}
diff --git a/dev-util/coccinelle/files/50coccinelle-gentoo.el b/dev-util/coccinelle/files/50coccinelle-gentoo.el
new file mode 100644
index 000000000000..6721b3c5e5a1
--- /dev/null
+++ b/dev-util/coccinelle/files/50coccinelle-gentoo.el
@@ -0,0 +1,6 @@
+
+;;; site-lisp configuration for coccinelle
+
+(add-to-list 'load-path "@SITELISP@")
+
+(autoload 'cocci-mode "cocci" "Major mode for editing cocci code." t)
diff --git a/dev-util/coccinelle/metadata.xml b/dev-util/coccinelle/metadata.xml
new file mode 100644
index 000000000000..9e3f651e48b2
--- /dev/null
+++ b/dev-util/coccinelle/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>radhermit@gentoo.org</email>
+ <name>Tim Harder</name>
+</maintainer>
+<maintainer type="project">
+ <email>ml@gentoo.org</email>
+ <name>Gentoo ML Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/dev-util/codeblocks/Manifest b/dev-util/codeblocks/Manifest
new file mode 100644
index 000000000000..03d721d27006
--- /dev/null
+++ b/dev-util/codeblocks/Manifest
@@ -0,0 +1,6 @@
+DIST codeblocks_16.01.tar.gz 20250097 SHA256 30fb9d206df4ab3c2e2fec2451a0a7c9723bfed9a673cc9be71e881c529d5a03 SHA512 496ff2dbcf9a8248fa9f1060d50567d1fc6480cc9d8fc9f7d2cd532c82f4344deafe9b43f2b17d2510c74851e21acf2ca90d5cc7b61237d69a17e78e9907a63a WHIRLPOOL b908c7af182d37fc3ab0f2640f4b6033169cdc7964e276df9e57627806b156ba7acba25c43983ecfe2a0aeb3ef7e66652e4f2600e978599116b4d1c472866126
+EBUILD codeblocks-16.01.ebuild 960 SHA256 03fd7dfbfb7559c2d7129050db1cba8eae870343d2973ac1827f200097970ca9 SHA512 78c459024b8d132ffc44de86445162561a6cf2201758c1a429a9f72bf510833d6974e3964a1070ae801243934d29f9ea4006b5b8b887979032b9ea3268ed6228 WHIRLPOOL b3db5d49d0edfadfb27d8f9464cf1812b67a2955217be27d6130075cfff0e7bea5792879bd38e49854a3c913a483a6af2fad28c77ee2fcbc580c5d2bb0390fe1
+EBUILD codeblocks-9999.ebuild 1249 SHA256 851444715408e398eb845ee48c77a064e31b57dfaf80addb54060b126da6799d SHA512 a0a9d87c06df9f1dccd43fb009c4ac4261dcfcc99138193b3836d9a0e6ebeb4ef38180a3388774ffd84c17abacde95589c35e0febc425b07cbc75dbac9f9b3e6 WHIRLPOOL 910c4b65a561289c7922402c0a2b0eee767cbeaf24a7ff33372a757fd1c2a9717325f74d75c03961bae354658b0c28b4a92585bca2904272d551229b1cc34c69
+MISC ChangeLog 4050 SHA256 10b150dd49d36d1065c1d14456347faec173e394e3fc290425e0ca5996d30c8e SHA512 f9c38fee137797e39274758543185babadf14d67078f4743fd5c98a00588ff595712fb91e45eef65ef4601ecc7d4427f8b6e4931d5a4d2082b8d8199a0b37574 WHIRLPOOL d6a4aa47a5fa6a83e159671f4c0e0c067cf2a007df173833254719870f4ceff6b6e1717e41f8eb93b496bc3eac7d4178101113b10468b2d18d61203dfb0c75ea
+MISC ChangeLog-2015 5636 SHA256 91e52fe02cc790ac280b7b1ae94d1673880498601c207b81c3312db6ff8529c6 SHA512 f32ee0fee615aa806a365b4802949ac568ee4a5265b3527f4875c59b69f66a1fa0cbc0b9112cffd1e257ccba9816beaf09d4e1aed3d02384bf535911eb086d45 WHIRLPOOL 015d72817b3bfa3664c1569d054ddf93a44f7a556516819472214201a97e5b338678e5c80430ea421daae7e3c2a3bd8179717943780db66c2649cafabfbdbaa1
+MISC metadata.xml 436 SHA256 8c68d9ee3a91a392a178ddffdf03de7013adf5020e2cc448bef3aeedcb164c48 SHA512 0ff3a17264a93d46efe1455778188ebd9f8bba8c9c0d7b5d6457d6c69d43db343d70f9b1f9ccfddb187ff3e827f4de05b1b632b3aafa4541b1f1f1bc20768aae WHIRLPOOL bf05d43564b0036680296cd6af1732a53b51cfbf1386f7d10d9568762b451ef86fbdcf8f6082ca0ba21ef33482e10e6975a7e58618bd5a4949bbc1a8da1fab04
diff --git a/dev-util/codeblocks/codeblocks-16.01.ebuild b/dev-util/codeblocks/codeblocks-16.01.ebuild
new file mode 100644
index 000000000000..047fa0975850
--- /dev/null
+++ b/dev-util/codeblocks/codeblocks-16.01.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+WX_GTK_VER="2.8"
+
+inherit eutils flag-o-matic wxwidgets
+
+DESCRIPTION="The open source, cross platform, free C++ IDE"
+HOMEPAGE="http://www.codeblocks.org/"
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ppc ~x86 ~x86-fbsd"
+SRC_URI="mirror://sourceforge/codeblocks/${P/-/_}.tar.gz"
+
+IUSE="contrib debug pch static-libs"
+
+S="${WORKDIR}/${P}.release"
+
+RDEPEND="app-arch/zip
+ x11-libs/wxGTK:${WX_GTK_VER}[X]
+ contrib? (
+ app-text/hunspell
+ dev-libs/boost:=
+ dev-libs/libgamin
+ )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_configure() {
+ touch "${S}"/revision.m4 -r "${S}"/acinclude.m4
+ setup-wxwidgets
+
+ append-cxxflags $(test-flags-CXX -fno-delete-null-pointer-checks)
+
+ econf \
+ --with-wx-config="${WX_CONFIG}" \
+ $(use_enable debug) \
+ $(use_enable pch) \
+ $(use_enable static-libs static) \
+ $(use_with contrib contrib-plugins all)
+}
diff --git a/dev-util/codeblocks/codeblocks-9999.ebuild b/dev-util/codeblocks/codeblocks-9999.ebuild
new file mode 100644
index 000000000000..4592ffeead9c
--- /dev/null
+++ b/dev-util/codeblocks/codeblocks-9999.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+WX_GTK_VER="2.8"
+
+inherit autotools eutils subversion wxwidgets
+
+DESCRIPTION="The open source, cross platform, free C++ IDE"
+HOMEPAGE="http://www.codeblocks.org/"
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS=""
+SRC_URI=""
+ESVN_REPO_URI="svn://svn.code.sf.net/p/${PN}/code/trunk"
+
+IUSE="contrib debug pch static-libs"
+
+RDEPEND="app-arch/zip
+ x11-libs/wxGTK:${WX_GTK_VER}[X]
+ contrib? (
+ app-text/hunspell
+ dev-libs/boost:=
+ dev-libs/libgamin
+ )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_unpack() {
+ subversion_src_unpack
+}
+
+src_prepare() {
+ # Let's make the autorevision work.
+ subversion_wc_info
+ CB_LCD=$(LC_ALL=C svn info "${ESVN_WC_PATH}" | grep "^Last Changed Date:" | cut -d" " -f4,5)
+ echo "m4_define([SVN_REV], ${ESVN_WC_REVISION})" > revision.m4
+ echo "m4_define([SVN_DATE], ${CB_LCD})" >> revision.m4
+ eautoreconf
+}
+
+src_configure() {
+ need-wxwidgets unicode
+ econf \
+ --with-wx-config="${WX_CONFIG}" \
+ $(use_enable debug) \
+ $(use_enable pch) \
+ $(use_enable static-libs static) \
+ $(use_with contrib contrib-plugins all)
+}
+
+src_compile() {
+ emake clean-zipfiles
+ emake
+}
+
+src_install() {
+ default
+ prune_libtool_files
+}
diff --git a/dev-util/codeblocks/metadata.xml b/dev-util/codeblocks/metadata.xml
new file mode 100644
index 000000000000..147e365467fc
--- /dev/null
+++ b/dev-util/codeblocks/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="project">
+ <email>wxwidgets@gentoo.org</email>
+ <name>Gentoo wxWidgets Project</name>
+ </maintainer>
+ <use>
+ <flag name="contrib">Build additional contrib components</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">codeblocks</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/colm/Manifest b/dev-util/colm/Manifest
new file mode 100644
index 000000000000..ca5ae974d177
--- /dev/null
+++ b/dev-util/colm/Manifest
@@ -0,0 +1,7 @@
+DIST colm-0.13.0.4.tar.gz 707983 SHA256 fdb3d0fb6ce19f24ca6d701a61b81cd610e3d3b04951dc9f27317581f859ac13 SHA512 4684a315f3fef7cd6ff0982e357b59b110c02dfc2ce00a207d5d16dd9475f41790f3cfec9ddb5347d20da879cb0beebc03d3c56c325ce2ef22438555fcf60402 WHIRLPOOL 636516df49eb5af110f5ac88a3e46f8f7a3d01a04220c7744eadcffe6bc993788c44b46f50ddef43aafbd5b9d31242077ad7a5413681b05398f0392c3b404f1b
+DIST colm-0.13.0.5.tar.gz 736026 SHA256 33e624677176958eaad76ebe6c391a68a0b4728fec8cc039efa1316f525f408c SHA512 c5a1228260327d65c2cb5821fbc583608e2a308927b04cb0e7dbc84bced60d0d62892b4e30aa2228fee0d08f6828dc58d88788340433bc5bba9d503977883fc9 WHIRLPOOL 37e98170a6bfe80d6e90a24cba84397e8a06eb89894461f3576e92b16bfd1d7ed885d0df7231424a590b41116a18c874edef5e4fb868af825986ee5aacc0cf4a
+EBUILD colm-0.13.0.4.ebuild 372 SHA256 4184a3b06bdd1f2283344387dcb09a9003c94d7a007652f970fcf2298f222c5f SHA512 d1240148c5b89cdcff5750859b8bd920782f907f53d736f775def15c259e443d044900cd19d65445ff55ba6ab62a15b3a084a9a0734ddb1151a0f887a24a68b0 WHIRLPOOL eb53b78cd9e6da72584d7b43949c91f1aaeadf6687442daba9a1eec69b73dad313e58db1d6eecc3cc1d30502af9306f72df637b4c658354c2296b0d59354066f
+EBUILD colm-0.13.0.5.ebuild 369 SHA256 25e3f07905e58d315f4fc8b6029de73ccc90d3b17c30c91d62ab1f86de2593e5 SHA512 8841033b07afc3493ffb138a0dfce6ff9db8eb9ba365c5936e342ca6a2857c70df06061b897d09fb6b17216edcc675110aef53b3e531d9174d4e99c186f00910 WHIRLPOOL 996b96de5e62dcc79ed98ef93e7b59c33945e87dfa8e3820accb63b5aac594f4d806b8c3c5d9770b3153cdedfda420891ff72a088ee3a307e30c67d28a892123
+MISC ChangeLog 3074 SHA256 4668c1661c7aa999b5195ebd5b2f6a534f6cf742177c332cf78c67d4671bdc98 SHA512 6e0b2f91d0dd7a4bed5d1b0eaa9da6e84816e360eb3ea41bce16c10b841a375fd9f6e65be379b2af52db5fd0c9b4a939dc019310568bc1ff174c01534747a245 WHIRLPOOL 2ee708f41a884cf4ef2932ed136011ab3ae7080488f5a924429e5446cb07a07aac590620a1bfbadddc9d74131bd1330f009d3093e0010813a8494976a166bd54
+MISC ChangeLog-2015 432 SHA256 6dcd06ce82289e43ba1bef4adbbe1a064db0a0a5d90212e4264f2cd8e69be2b1 SHA512 3cdcc98d167366b6427c52163c9bebb26fcc70f2c419bc6140b13e16b847f1650b6a31b7c8bb20d2af216c954c39771fd355c79c3bce73a5d19108b04f9bafb2 WHIRLPOOL 1472f8a8c615c9e66e4e5cafdccce509f0d92feeabd9126188bf63d81a7479e26718093b101ded5f385b6ca8d7ee35a91c69e58689e75bd4d14a445648a79acd
+MISC metadata.xml 253 SHA256 0c78fc0afa8613e977eb4628a883b16145da7aadb7d5de8f1c46404cefd75e5b SHA512 303268e1f46e337e32c64b544c0962ecbe8de1799c42736b3c3515b6f31954a655830c402317bd0534cac12059e17eeb5f360d010432dff795a136662a5c10f1 WHIRLPOOL 7a7e49ac517082517073244d5b110e8f751910e5f5245d52dada566f95f2432696db1747492592bc84b35fdf48e947d2e9aeca6e44f1f2a5076c26f3d6e1870c
diff --git a/dev-util/colm/colm-0.13.0.4.ebuild b/dev-util/colm/colm-0.13.0.4.ebuild
new file mode 100644
index 000000000000..d193b2407b6a
--- /dev/null
+++ b/dev-util/colm/colm-0.13.0.4.ebuild
@@ -0,0 +1,16 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="COmputer Language Manipulation"
+HOMEPAGE="https://www.colm.net/open-source/colm/"
+SRC_URI="https://www.colm.net/files/${PN}/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND="${DEPEND}"
diff --git a/dev-util/colm/colm-0.13.0.5.ebuild b/dev-util/colm/colm-0.13.0.5.ebuild
new file mode 100644
index 000000000000..d1aab6a6b73b
--- /dev/null
+++ b/dev-util/colm/colm-0.13.0.5.ebuild
@@ -0,0 +1,15 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="COmputer Language Manipulation"
+HOMEPAGE="https://www.colm.net/open-source/colm/"
+SRC_URI="https://www.colm.net/files/${PN}/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~x86"
+IUSE=""
+
+DEPEND="app-text/asciidoc"
diff --git a/dev-util/colm/metadata.xml b/dev-util/colm/metadata.xml
new file mode 100644
index 000000000000..f3de5f693ed8
--- /dev/null
+++ b/dev-util/colm/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>patrick@gentoo.org</email>
+ <name>Patrick Lauer</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-util/colorgcc/Manifest b/dev-util/colorgcc/Manifest
new file mode 100644
index 000000000000..e3de7a3b6e00
--- /dev/null
+++ b/dev-util/colorgcc/Manifest
@@ -0,0 +1,9 @@
+AUX colorgcc-1.3.2-gentoo-one.patch 6576 SHA256 f3a55d51c1cde5e0c87b4b9725b06e476f068378509a6685b3f6b1b9395c3f2e SHA512 c69817277bd8fa63a4cb54abc2b6300d3f31becd189a01605b06b828a11a4b0ea5edf78048bcbf6f271693149376bc625770605d6bb157251c77f7a4608dae91 WHIRLPOOL 9f10249dd4047979385c81d1d235c4a88876079bbc26e98ae2159c1a9f8a8f5b9b99a1f01eb282ce0f901ec1d00b84f092cb7867e19cb97869ed699bc703ecc1
+AUX colorgcc-1.3.2-gentoo-two.patch 1953 SHA256 4b3fff00118653d4eb3b484748f7f97dc33c8afcdac3497fbf3b3ebfc2073a04 SHA512 ede1391446346e5701ddb5fb1ee34c87d1d9877b2ec221f07923b6a17e199caa93f3183d4d8f7349955d425a3094a9ce8e2d2ace71a3c5030f811eb0895a834d WHIRLPOOL 9de960a09a17735bd226fa8cba1940ac5477c7d5466f3e2549daac0469c19846d74c0e9f2966807a5d0a043cb7f8365c578b6908741dd9b9eb8391106386bc7a
+AUX colorgcc-1.3.2-nohang.patch 1752 SHA256 af230617fd21a533b2816dc21d469bbb557341e53de965c62f849e95f82314eb SHA512 4c345e7e21e6a53f16197ea64594ddef646045de2d3d4f1ad500f24c081d06490babc7b375d6e5b0968da73d8332da2590e7f6924d81c20fe8ca9d59949d0b22 WHIRLPOOL 3c2e28e8b42407358ff46af42da5c3e8e7f0d06f74e1be5f503025319d9fa844f511874297d9198bda064721adda27eabced3f3093fcae87cd72a26353f82743
+AUX colorgcc-1.3.2-note.patch 1922 SHA256 d1d41b3aecc568a74c30ee3636f3da88ad0e1346b6c27c0628c31cab8eb14097 SHA512 8b9dfd8a3790178a245ffc40bd5631397b9d1acdb5fd06e7c768d9679414174f06036ed09d29b61fc349b9155f95a2505e2dda88736ca899f038b3ca17207a72 WHIRLPOOL 22cf509982a8df9edccb1d80478f1c440c7a29e9e45eeea31218d638841ae0898fbc2ec1b7a51719f7dc21e1df9ca7116af677c82b9b6bb03a72b26e60c639aa
+DIST colorgcc-1.3.2.tar.gz 11076 SHA256 55d33a64628ff380626b864200cad72146d00f3dce0f6dc1f0e69dc5b7f1653e SHA512 1f6031bcc0f6eb6bdaf0359debe13d1a6579c4f5bfb8dfeef79904a2ffcc94322f2c7f9948439c2975bd4ffed1ebaa085bd7ce338289bdf9c170cd40e1c1a448 WHIRLPOOL 6059d552558aa81a0c702dc678befb4b6403377edb6f57712439a61f7f2ceccd65fc8b61d0c901a2802493769956f9e4e23b57524084c57e4602ba9cd4a97a10
+EBUILD colorgcc-1.3.2-r7.ebuild 2108 SHA256 c45a223d515622fee17a458750982c22eaa916e843677fb816b1dafdb5a22323 SHA512 216fc62c042cfb7b7b918e513dcfbda9bb4356f856ca3e5feb4fa017595202262b787ff13fb70e0c989e2dbb0c3b4abdc0908eed63bcd20c58d4956b7c90e96a WHIRLPOOL ac495c380466e4d52ca38f44ca3e43e3ada674b15a2237b960153d1226f291b4e8e252176bd56788b615f1eb094f6b65908b94facdfcb0a874ca4363aa6e3614
+MISC ChangeLog 4064 SHA256 b22e64f3ed2926b02e0fdf3bc5a34debaafab8b06b2c0cb40dbe54eee973e5cd SHA512 13e34f6158b3e2be8d99b46e4e035d4e4ac427b74f3e429a5d82ca623fb181bab25bad44439f5fd5caa9449717d531ecff9f4365c6e2d2cd82d891f30ca2f331 WHIRLPOOL afd1a70e33525ac4dc6ff389c7eb7e24dc057958c0b0e102e3ecf0e0cac5d98fd7332f347084ff48c188a079f88903a46877c72e6325d12df26e2aa4753e81fe
+MISC ChangeLog-2015 4329 SHA256 9f8ce51689fcd9964b251e5eecfa76ff378f50956b28bb6ebacb6d593a59a279 SHA512 9de08e6d5325b6a926161d5d771c82952d48da23aae32ed971ab47c6eb71b1dd0df30464621f255ea8d3d6a8cb3475d2afddfb29bb3963f208a797ab4132c5b9 WHIRLPOOL e6683d60e3cbd306596e9b0a38d054e1a69767a39419ae56f7ca7e9b9e242a7eaa851b6c73b0ff22b9af6fba0cc515d06fd8dcffc37a9582e55ead1a71a914d3
+MISC metadata.xml 265 SHA256 5c4f9426c69dd2191012bf8aae1952f4f6298c1f6ff0ec1e45fe0e05327694e9 SHA512 176f814d8c555e8726f36e012367b698e8a19a0662982621029a7f9190beecc5e6798e43c51698dc149364966cdeff7061121e54fa9d4cf2a3559a6ce4904e25 WHIRLPOOL 2fa84a9f23f48e804ab20a6fabe2707f86227bded2a41d3af30958db5a69bc6276140a7f035a256caeca5a8b8ce1c240383c300a90fc4a83334c178769bc3519
diff --git a/dev-util/colorgcc/colorgcc-1.3.2-r7.ebuild b/dev-util/colorgcc/colorgcc-1.3.2-r7.ebuild
new file mode 100644
index 000000000000..3b6bbf7c7825
--- /dev/null
+++ b/dev-util/colorgcc/colorgcc-1.3.2-r7.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+EAPI=5
+
+inherit eutils
+
+DESCRIPTION="Perl script to colorise the gcc output."
+HOMEPAGE="http://schlueters.de/colorgcc.html"
+SRC_URI="mirror://gentoo/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="alpha amd64 hppa ~mips ppc sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+IUSE=""
+
+DEPEND="dev-lang/perl"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-gentoo-one.patch
+ "${FILESDIR}"/${P}-gentoo-two.patch
+ "${FILESDIR}"/${P}-note.patch
+ "${FILESDIR}"/${P}-nohang.patch
+)
+
+src_prepare() {
+ epatch "${PATCHES[@]}"
+}
+
+src_install() {
+ dobin "${PN}"
+ dodir "/etc/${PN}" "/usr/lib/${PN}/bin"
+ insinto "/etc/${PN}"
+ doins "${PN}rc"
+ einfo "Scanning for compiler front-ends"
+ into "/usr/lib/${PN}/bin"
+ local COMPILERS=( gcc cc c++ g++ ${CHOST}-gcc ${CHOST}-c++ ${CHOST}-g++ )
+ for c in "${COMPILERS[@]}"; do
+ [[ -n "$(type -p ${c})" ]] && \
+ dosym "/usr/bin/${PN}" "/usr/lib/${PN}/bin/${c}"
+ done
+
+ dodoc CREDITS ChangeLog
+}
+
+pkg_postinst() {
+ echo
+ elog "If you have existing \$HOME/.colorgccrc files that set the location"
+ elog "of the compilers, you should remove those lines for maximum"
+ elog "flexibility. The colorgcc script now knows how to pass the command"
+ elog "on to the next step in the PATH without manual tweaking, making it"
+ elog "easier to use with things like ccache and distcc on a conditional"
+ elog "basis. You can tweak the /etc/colorgcc/colorgccrc file to change"
+ elog "the default settings for everyone (or copy this file as a basis for"
+ elog "a custom \$HOME/.colorgccrc file)."
+ elog
+ elog "NOTE: the symlinks for colorgcc are now located in"
+ elog "/usr/lib/colorgcc/bin *NOT* /usr/bin/wrappers. You'll need to"
+ elog "change any PATH settings that referred to the old location."
+ echo
+
+ # portage won't delete the old symlinks for users that are upgrading
+ # because the old symlinks still point to /usr/bin/colorgcc which exists...
+ if [[ -d "${EROOT}"/usr/bin/wrappers ]]; then
+ rm -frv "${EROOT}"/usr/bin/wrappers || die
+ fi
+}
diff --git a/dev-util/colorgcc/files/colorgcc-1.3.2-gentoo-one.patch b/dev-util/colorgcc/files/colorgcc-1.3.2-gentoo-one.patch
new file mode 100644
index 000000000000..68a177ba75c7
--- /dev/null
+++ b/dev-util/colorgcc/files/colorgcc-1.3.2-gentoo-one.patch
@@ -0,0 +1,242 @@
+--- colorgcc.orig 1999-04-29 10:16:08.000000000 -0700
++++ colorgcc 2003-04-11 16:38:52.000000000 -0700
+@@ -88,16 +88,16 @@
+ #
+ # 1.0.0 Initial Version
+
++use strict;
++
+ use Term::ANSIColor;
+ use IPC::Open3;
++use Cwd 'abs_path';
++
++my(%nocolor, %colors, %compilerPaths);
+
+ sub initDefaults
+ {
+- $compilerPaths{"gcc"} = "/usr/local/bin/gcc";
+- $compilerPaths{"g++"} = "/usr/local/bin/g++";
+- $compilerPaths{"cc"} = "/usr/bin/cc";
+- $compilerPaths{"c++"} = "/usr/local/bin/c++";
+-
+ $nocolor{"dumb"} = "true";
+
+ $colors{"srcColor"} = color("cyan");
+@@ -125,26 +125,26 @@
+ next if (m/^\#.*/); # It's a comment.
+ next if (!m/(.*):\s*(.*)/); # It's not of the form "foo: bar".
+
+- $option = $1;
+- $value = $2;
++ my $option = $1;
++ my $value = $2;
+
+- if ($option =~ m/cc|c\+\+|gcc|g\+\+/)
+- {
+- $compilerPaths{$option} = $value;
+- }
+- elsif ($option eq "nocolor")
++ if ($option eq "nocolor")
+ {
+ # The nocolor option lists terminal types, separated by
+ # spaces, not to do color on.
+- foreach $termtype (split(/\s+/, $value))
++ foreach my $term (split(' ', $value))
+ {
+- $nocolor{$termtype} = "true";
++ $nocolor{$term} = 1;
+ }
+ }
+- else
++ elsif (defined $colors{$option})
+ {
+ $colors{$option} = color($value);
+ }
++ else
++ {
++ $compilerPaths{$option} = $value;
++ }
+ }
+ close(PREFS);
+ }
+@@ -180,41 +180,80 @@
+ initDefaults();
+
+ # Read the configuration file, if there is one.
+-$configFile = $ENV{"HOME"} . "/.colorgccrc";
++my $configFile = $ENV{"HOME"} . "/.colorgccrc";
+ if (-f $configFile)
+ {
+ loadPreferences($configFile);
+ }
++elsif (-f '/etc/colorgcc/colorgccrc')
++{
++ loadPreferences('/etc/colorgcc/colorgccrc');
++}
+
+ # Figure out which compiler to invoke based on our program name.
+ $0 =~ m%.*/(.*)$%;
+-$progName = $1 || $0;
+-
+-$compiler = $compilerPaths{$progName} || $compilerPaths{"gcc"};
+-
+-# Get the terminal type.
+-$terminal = $ENV{"TERM"} || "dumb";
++my $progName = $1 || $0;
++my $compiler_pid;
+
+-# If it's in the list of terminal types not to color, or if
+-# we're writing to something that's not a tty, don't do color.
+-if (! -t STDOUT || $nocolor{$terminal})
++# If called as "colorgcc", just filter STDIN to STDOUT.
++if ($progName eq 'colorgcc')
+ {
+- exec $compiler, @ARGV
+- or die("Couldn't exec");
++ open(GCCOUT, "<&STDIN");
+ }
++else
++{
++ # See if the user asked for a specific compiler.
++ my $compiler;
++ if (!defined($compiler = $compilerPaths{$progName}))
++ {
++ # Find our wrapper dir on the PATH and tweak the PATH to remove
++ # everything up-to and including our wrapper dir.
++ if ($0 =~ m#(.*)/#)
++ {
++ # We were called with an explicit path, so trim that off the PATH.
++ my $find = $1;
++ $find = abs_path($1) unless $find =~ m#^/#;
++ $ENV{'PATH'} =~ s#.*(^|:)\Q$find\E(:|$)##;
++ }
++ else
++ {
++ my(@dirs) = split(/:/, $ENV{'PATH'});
++ while (defined($_ = shift @dirs))
++ {
++ if (-x "$_/$progName")
++ {
++ $ENV{'PATH'} = join(':', @dirs);
++ last;
++ }
++ }
++ }
++ $compiler = $progName;
++ }
+
+-# Keep the pid of the compiler process so we can get its return
+-# code and use that as our return code.
+-$compiler_pid = open3('<&STDIN', \*GCCOUT, \*GCCOUT, $compiler, @ARGV);
++ # Get the terminal type.
++ my $terminal = $ENV{"TERM"} || "dumb";
++
++ # If it's in the list of terminal types not to color, or if
++ # we're writing to something that's not a tty, don't do color.
++ if (! -t STDOUT || $nocolor{$terminal})
++ {
++ exec $compiler, @ARGV
++ or die("Couldn't exec");
++ }
++
++ # Keep the pid of the compiler process so we can get its return
++ # code and use that as our return code.
++ $compiler_pid = open3('<&STDIN', \*GCCOUT, \*GCCOUT, $compiler, @ARGV);
++}
+
+ # Colorize the output from the compiler.
+ while(<GCCOUT>)
+ {
+- if (m/^(.*?):([0-9]+):(.*)$/) # filename:lineno:message
++ if (m#^(.+?\.[^:/ ]+):([0-9]+):(.*)$#) # filename:lineno:message
+ {
+- $field1 = $1 || "";
+- $field2 = $2 || "";
+- $field3 = $3 || "";
++ my $field1 = $1 || "";
++ my $field2 = $2 || "";
++ my $field3 = $3 || "";
+
+ if ($field3 =~ m/\s+warning:.*/)
+ {
+@@ -232,6 +271,10 @@
+ }
+ print("\n");
+ }
++ elsif (m/^:.+`.*'$/) # filename:message:
++ {
++ srcscan($_, $colors{"warningMessageColor"});
++ }
+ elsif (m/^(.*?):(.+):$/) # filename:message:
+ {
+ # No line number, treat as an "introductory" line of text.
+@@ -244,11 +287,9 @@
+ }
+ }
+
+-# Get the return code of the compiler and exit with that.
+-waitpid($compiler_pid, 0);
+-exit ($? >> 8);
+-
+-
+-
+-
+-
++if ($compiler_pid)
++{
++ # Get the return code of the compiler and exit with that.
++ waitpid($compiler_pid, 0);
++ exit ($? >> 8);
++}
+--- colorgccrc.orig 1999-04-29 10:16:08.000000000 -0700
++++ colorgccrc 2003-02-12 17:38:38.000000000 -0800
+@@ -20,12 +20,14 @@
+ # For example, srcColor: bold cyan on_yellow
+ #
+
+-# Define the paths to the actual location of the various compilers.
++# Only define the paths to the actual location of the various compilers if
++# you need to do something weird. For normal installs, we'll figure out
++# who to call next automatically.
+ # (Currently, colorgcc only understands these: g++ gcc c++ cc)
+-g++: /usr/local/bin/g++
+-gcc: /usr/local/bin/gcc
+-c++: /usr/local/bin/c++
+-cc: /usr/bin/cc
++##g++: /usr/bin/g++
++##gcc: /usr/bin/gcc
++##c++: /usr/bin/c++
++##cc: /usr/bin/cc
+
+ # Don't do color if our terminal type ($TERM) is one of these.
+ # (List all terminal types on one line, seperated by whitespace.)
+@@ -43,12 +45,10 @@
+
+ # Warnings
+ warningFileNameColor: reset
+-warningNumberColor: white
++warningNumberColor: blue
+ warningMessageColor: yellow
+
+ # Errors
+ errorFileNameColor: reset
+-errorNumberColor: white
++errorNumberColor: blue
+ errorMessageColor: bold red
+-
+-
+--- INSTALL.orig 1999-04-29 10:16:08.000000000 -0700
++++ INSTALL 2003-04-07 17:12:25.000000000 -0700
+@@ -27,9 +27,9 @@
+ When "g++" is invoked, colorgcc is run instead. colorgcc looks at the
+ program name to figure out which compiler to use.
+
+-Copy the sample colorgccrc file to $HOME/.colorgccrc and make sure the
+-absolute paths for the compilers are correct for your system.
+-See the comments in the sample .colorgccrc for more information.
++Modify the file /etc/colorgcc/colorgccrc if you want to change the default
++values for everyone. For individual customizations, copy this file to
++$HOME/.colorgccrc and change that.
+
+
+ Note:
diff --git a/dev-util/colorgcc/files/colorgcc-1.3.2-gentoo-two.patch b/dev-util/colorgcc/files/colorgcc-1.3.2-gentoo-two.patch
new file mode 100644
index 000000000000..911a31b21bf3
--- /dev/null
+++ b/dev-util/colorgcc/files/colorgcc-1.3.2-gentoo-two.patch
@@ -0,0 +1,75 @@
+--- colorgcc.r9 2003-09-21 12:14:48.000000000 -0700
++++ colorgcc 2003-09-21 13:11:22.000000000 -0700
+@@ -95,6 +95,7 @@
+ use Cwd 'abs_path';
+
+ my(%nocolor, %colors, %compilerPaths);
++my($unfinishedQuote, $previousColor);
+
+ sub initDefaults
+ {
+@@ -159,14 +160,37 @@
+
+ my($line, $normalColor) = @_;
+
++ if (defined $normalColor)
++ {
++ $previousColor = $normalColor;
++ }
++ else
++ {
++ $normalColor = $previousColor;
++ }
++
+ my($srcon) = color("reset") . $colors{"srcColor"};
+ my($srcoff) = color("reset") . $normalColor;
+
+- $line = $normalColor . $line;
++ $line = ($unfinishedQuote? $srcon : $normalColor) . $line;
+
+- # This substitute replaces `foo' with `AfooB' where A is the escape
++ # These substitutions replaces `foo' with `AfooB' where A is the escape
+ # sequence that turns on the the desired source color, and B is the
+ # escape sequence that returns to $normalColor.
++
++ # Handle multi-line quotes.
++ if ($unfinishedQuote) {
++ if ($line =~ s/^([^\`]*?)\'/$1$srcoff\'/)
++ {
++ $unfinishedQuote = 0;
++ }
++ }
++ if ($line =~ s/\`([^\']*?)$/\`$srcon$1/)
++ {
++ $unfinishedQuote = 1;
++ }
++
++ # Single line quoting.
+ $line =~ s/\`(.*?)\'/\`$srcon$1$srcoff\'/g;
+
+ print($line, color("reset"));
+@@ -190,6 +214,10 @@
+ loadPreferences('/etc/colorgcc/colorgccrc');
+ }
+
++# Set our default output color. This presumes that any unrecognized output
++# is an error.
++$previousColor = $colors{"errorMessageColor"};
++
+ # Figure out which compiler to invoke based on our program name.
+ $0 =~ m%.*/(.*)$%;
+ my $progName = $1 || $0;
+@@ -281,10 +309,9 @@
+ # No line number, treat as an "introductory" line of text.
+ srcscan($_, $colors{"introColor"});
+ }
+- else # Anything else.
++ else # Anything else.
+ {
+- # Doesn't seem to be a warning or an error. Print normally.
+- print(color("reset"), $_);
++ srcscan($_, undef);
+ }
+ }
+
+
diff --git a/dev-util/colorgcc/files/colorgcc-1.3.2-nohang.patch b/dev-util/colorgcc/files/colorgcc-1.3.2-nohang.patch
new file mode 100644
index 000000000000..9602146b0af9
--- /dev/null
+++ b/dev-util/colorgcc/files/colorgcc-1.3.2-nohang.patch
@@ -0,0 +1,58 @@
+--- /usr/bin/colorgcc 2010-12-13 00:08:37.000000000 -0200
++++ colorgcc 2011-10-05 15:26:53.000000000 -0300
+@@ -221,17 +221,16 @@
+ # Figure out which compiler to invoke based on our program name.
+ $0 =~ m%.*/(.*)$%;
+ my $progName = $1 || $0;
+-my $compiler_pid;
++my $compiler;
+
+ # If called as "colorgcc", just filter STDIN to STDOUT.
+-if ($progName eq 'colorgcc')
++if ($progName =~ m/^colorgcc[-0-9.]*(\.pl)?$/)
+ {
+- open(GCCOUT, "<&STDIN");
++ $compiler = 'gcc';
+ }
+ else
+ {
+ # See if the user asked for a specific compiler.
+- my $compiler;
+ if (!defined($compiler = $compilerPaths{$progName}))
+ {
+ # Find our wrapper dir on the PATH and tweak the PATH to remove
+@@ -257,23 +256,23 @@
+ }
+ $compiler = $progName;
+ }
++}
+
+- # Get the terminal type.
+- my $terminal = $ENV{"TERM"} || "dumb";
++# Get the terminal type.
++my $terminal = $ENV{"TERM"} || "dumb";
+
+- # If it's in the list of terminal types not to color, or if
+- # we're writing to something that's not a tty, don't do color.
+- if (! -t STDOUT || $nocolor{$terminal})
+- {
++# If it's in the list of terminal types not to color, or if
++# we're writing to something that's not a tty, don't do color.
++if (! -t STDOUT || $nocolor{$terminal})
++{
+ exec $compiler, @ARGV
+ or die("Couldn't exec");
+- }
+-
+- # Keep the pid of the compiler process so we can get its return
+- # code and use that as our return code.
+- $compiler_pid = open3('<&STDIN', \*GCCOUT, \*GCCOUT, $compiler, @ARGV);
+ }
+
++# Keep the pid of the compiler process so we can get its return
++# code and use that as our return code.
++my $compiler_pid = open3('<&STDIN', \*GCCOUT, \*GCCOUT, $compiler, @ARGV);
++
+ # Colorize the output from the compiler.
+ while(<GCCOUT>)
+ {
diff --git a/dev-util/colorgcc/files/colorgcc-1.3.2-note.patch b/dev-util/colorgcc/files/colorgcc-1.3.2-note.patch
new file mode 100644
index 000000000000..026503e8f2c9
--- /dev/null
+++ b/dev-util/colorgcc/files/colorgcc-1.3.2-note.patch
@@ -0,0 +1,57 @@
+--- /usr/bin/colorgcc 2009-10-29 20:24:46.717190000 +0100
++++ colorgcc 2009-10-29 20:27:42.614162888 +0100
+@@ -102,7 +102,8 @@
+ $nocolor{"dumb"} = "true";
+
+ $colors{"srcColor"} = color("cyan");
+- $colors{"introColor"} = color("blue");
++ $colors{"introFileNameColor"} = color("blue");
++ $colors{"introMessageColor"} = color("blue");
+
+ $colors{"warningFileNameColor"} = color("yellow");
+ $colors{"warningNumberColor"} = color("yellow");
+@@ -111,6 +112,10 @@
+ $colors{"errorFileNameColor"} = color("bold red");
+ $colors{"errorNumberColor"} = color("bold red");
+ $colors{"errorMessageColor"} = color("bold red");
++
++ $colors{"noteFileNameColor"} = color("green");
++ $colors{"noteNumberColor"} = color("green");
++ $colors{"noteMessageColor"} = color("green");
+ }
+
+ sub loadPreferences
+@@ -290,12 +295,18 @@
+ print($colors{"warningNumberColor"}, "$field2:", color("reset"));
+ srcscan($field3, $colors{"warningMessageColor"});
+ }
+- else
+- {
++ elsif ($field3 =~ m/\s+error:.*/)
++ {
+ # Error
+ print($colors{"errorFileNameColor"}, "$field1:", color("reset"));
+ print($colors{"errorNumberColor"}, "$field2:", color("reset"));
+ srcscan($field3, $colors{"errorMessageColor"});
++ } else
++ {
++ # Note
++ print($colors{"noteFileNameColor"}, "$field1:", color("reset"));
++ print($colors{"noteNumberColor"}, "$field2:", color("reset"));
++ srcscan($field3, $colors{"noteMessageColor"});
+ }
+ print("\n");
+ }
+@@ -305,8 +316,11 @@
+ }
+ elsif (m/^(.*?):(.+):$/) # filename:message:
+ {
++ my $field1 = $1 || "";
++ my $field2 = $2 || "";
+ # No line number, treat as an "introductory" line of text.
+- srcscan($_, $colors{"introColor"});
++ print($colors{"introFileNameColor"}, "$field1:", color("reset"));
++ print($colors{"introMessageColor"}, "$field2:\n", color("reset"));
+ }
+ else # Anything else.
+ {
diff --git a/dev-util/colorgcc/metadata.xml b/dev-util/colorgcc/metadata.xml
new file mode 100644
index 000000000000..3cf14bf74636
--- /dev/null
+++ b/dev-util/colorgcc/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="project">
+ <email>shell-tools@gentoo.org</email>
+ <name>Gentoo Shell Tools Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-util/comparator/Manifest b/dev-util/comparator/Manifest
new file mode 100644
index 000000000000..1eb655510115
--- /dev/null
+++ b/dev-util/comparator/Manifest
@@ -0,0 +1,5 @@
+DIST comparator-2.10.tar.gz 1463175 SHA256 9fcada1a38d376351f67cd6b6aa4907b4fd835cbdadaa48d87a6ddf86545fa98 SHA512 b880f7a4a0fbfad44c53606c6d97509305d8485f0ab76b62bb0d1d1d6d4be9fb81e7a08326e78cabd1a9314e6efbf3a966eb6393e424f59dc657975a63ce2988 WHIRLPOOL 85e853f381f5f384e87cf5b0140f23b8511ae30d5c7b7124c6f875c0a5b30ae3a72dfaf70acdeee4e6e099fb81062c10cbe5da371344e0bdddcfdb433a4e3169
+EBUILD comparator-2.10.ebuild 866 SHA256 d01d84689035765331db5caa4b9fa808cda7c69b790868a51023778cd3b5e944 SHA512 21ed08a933430f6044de705507a60b875786762f9ca413cef8f74814122aeac931676dedd04c3a1b32b7651f9a6f904e878aefe625d4b255d4e84c27d5da0570 WHIRLPOOL 9d592dfdf4f3bd4899fd5a860f8436a71e88252567f6649fb7f86cb59f7f663be9895031945740fe041254fd658ad0487223699de3dfa49cd42f2ddf9747e550
+MISC ChangeLog 2291 SHA256 50ff67b952d4d6bad5c462ba9d13dc7a94e68352383ba077968576603223cec6 SHA512 f70d49497ed67ac974e8e402f87b55846540ed4b23ba6fcf50d7edc80269b756e3a7f8690367211759f8745c29d776badbb4ef76960f446b3098ae6b14fea4fd WHIRLPOOL 03dab32dea50524ce0ef6a37e934a81f6b8a06eb8779675582c90403801e0e93c45183a946ca5c81f4d77e9b55aba8ff8c1401b933120c079a922362808d6ef9
+MISC ChangeLog-2015 4329 SHA256 d43087ca67ff5d444d719f07aeb461b2e1a867fbcd5f670d0bfc961ecaaadba4 SHA512 adbcd2e22f1bf8547942301177d54d3a473529b39213b9c6c5c95b37627fdb30f24bc4d174daacbc1feb5320957e4c19baafea1eee7dc229425c3c0436557cde WHIRLPOOL 0351751f4eeff50725ac6e8ae1c45a52226e87580112a03249fe4421c11101713cc0fe67ca203d4df4ed299b4ef7b2f930a9799f1b2b75c64e560a7cae61f2ca
+MISC metadata.xml 355 SHA256 644fa7a665068ed797358cec8f8e2ec33431027cbcdcdc55dba32ceeca9225b1 SHA512 bfd1f38c1527a5e045c82f58b4f9dd253705e2eaa93bedad1e6c15c470de3ace37862211e647f0c79066c1cc1b0f68f211e26601099e6a802fda053e7ba48d26 WHIRLPOOL 68cc852b45e448ce27fb65a095a133e7456d0eac78e01f997ea5d0d85735aa6b52d282b4ed03140d49e05d7bbc190f612a38a8aa373a65d03d0ccdcefa56ce09
diff --git a/dev-util/comparator/comparator-2.10.ebuild b/dev-util/comparator/comparator-2.10.ebuild
new file mode 100644
index 000000000000..d331167b3ead
--- /dev/null
+++ b/dev-util/comparator/comparator-2.10.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1 toolchain-funcs
+
+DESCRIPTION="ESR's utility for making fast comparisons among large source trees"
+HOMEPAGE="http://www.catb.org/~esr/comparator/"
+SRC_URI="http://www.catb.org/~esr/comparator/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 arm ~mips ppc ppc64 sparc x86"
+IUSE=""
+
+RDEPEND=""
+DEPEND="=app-text/docbook-xml-dtd-4.1.2*
+ app-text/xmlto"
+
+src_prepare() {
+ sed \
+ -e '/python setup.py install/d' \
+ -i Makefile || die "sed failed"
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
+ emake comparator.html scf-standard.html
+ distutils-r1_src_compile
+}
+
+src_install() {
+ emake ROOT="${D}" install
+ distutils-r1_src_install
+ docinto html
+ dodoc *.html
+}
diff --git a/dev-util/comparator/metadata.xml b/dev-util/comparator/metadata.xml
new file mode 100644
index 000000000000..6ed3edf95f59
--- /dev/null
+++ b/dev-util/comparator/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>blueness@gentoo.org</email>
+ <name>Anthony G. Basile</name>
+ </maintainer>
+ <longdescription>ESR's utility for making fast comparisons among large source trees</longdescription>
+</pkgmetadata>
diff --git a/dev-util/complexity/Manifest b/dev-util/complexity/Manifest
new file mode 100644
index 000000000000..ccc6b45fc1ab
--- /dev/null
+++ b/dev-util/complexity/Manifest
@@ -0,0 +1,5 @@
+DIST complexity-1.10.tar.xz 422012 SHA256 6d378a3ef9d68938ada2610ce32f63292677d3b5c427983e8d72702167a22053 SHA512 3c9a935b55981a420f5f81b055c921fee96f294bf052fa8f7b7299a538b154659161e24bcce549e2a20706273c48870477cb26c4b4120658de985ab653a90bf1 WHIRLPOOL 5cc1cda8337dd656e6fef7bf8d18452562884b2c912d397746a89adabc069360e87b31c447cfb4c9b77b9a36adcdab67e906d704c05a686983c8cb7571deba1c
+EBUILD complexity-1.10.ebuild 459 SHA256 0d48a47c6c5c11c2240dddbc89da2537920810e04d21e523866d19040942ac2e SHA512 1bd7ec4ed193f532ec48fa6c43d54ec3ac4768e129dfb1cf59c8233759d6d125f9b3f71ee2d003c9bb499c1acaf786f153ded6e2c62c126111ff7566ec49c38d WHIRLPOOL aebaf044026c6dc37de9005f938bc2fc6542a2355ccebf902dbddcaf9ee1823a0cdeb6c83b108735b43f2eae2c185c2dd1d9d3f857019ce31d1817ddea41cfb4
+MISC ChangeLog 3421 SHA256 66768babd2b41ffb32735e6f07820cbea9e84abf5aac0753a19fa64ffc656964 SHA512 4e93398a588b339720a808723da47e1bc34ff40a44373c3ca39f4744ed87b218512c619c71938a267388f9866e571682c86713cb4f04ce4248d3afcfbba752a8 WHIRLPOOL 8ef0d7a1ab6dc555afd12e9d2000540f2a5bcb8200278b6c18461aa99037c72158b843e66bdbc626f45f9137ffca7185c14c448d159eb621935347127010ff80
+MISC ChangeLog-2015 1547 SHA256 4d29fe63594acb0336b7a6d6b0e5e206dc6d8a5254ebb02b06df81ee272ab802 SHA512 9f74892f65f970222385417d0e790e55a25a87a0cc365c593909d807ca3eceb857cfb3b82746003fbbd65c2c766610c104bff0cb5ddee40abb764d7aa251befe WHIRLPOOL 500acc922ddc883e6974498ce148868a589100e18f62cc58fca1f63eb7aaca86e0daef9b87073e2e63922530b1821109fef03b546415ce3d82b6fee01f37fb49
+MISC metadata.xml 238 SHA256 bae0588f6a20ccebb0e76d3ad782fcb2adfd1ea5b9fc1433851379423a103b72 SHA512 b0b981ef72f4d295f427f92dc9931553b4fb7a91c8ed63fa1f28bdbe8bc61d6f0943e1217eb7b61b8d85d9685cbe759db49f094a18a1461cb48429affe76d993 WHIRLPOOL ad8bdcb129ac41a2941e41186ec94e845858818fe21b95b69adc902ddbe0eb4c4bcce8f00d5f167981852184df07e355866a07f50dcdc8f7cd7edf20ed95ecee
diff --git a/dev-util/complexity/complexity-1.10.ebuild b/dev-util/complexity/complexity-1.10.ebuild
new file mode 100644
index 000000000000..889a75348459
--- /dev/null
+++ b/dev-util/complexity/complexity-1.10.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+DESCRIPTION="a tool designed for analyzing the complexity of C program functions"
+HOMEPAGE="https://www.gnu.org/software/complexity/"
+SRC_URI="mirror://gnu/${PN}/${P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~hppa ~x86"
+
+RDEPEND=">=sys-devel/autogen-5.11.7"
+DEPEND="
+ ${RDEPEND}
+ sys-devel/libtool
+"
+
+DOCS=( AUTHORS ChangeLog NEWS )
diff --git a/dev-util/complexity/metadata.xml b/dev-util/complexity/metadata.xml
new file mode 100644
index 000000000000..a8fb43312942
--- /dev/null
+++ b/dev-util/complexity/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>jer@gentoo.org</email>
+<name>Jeroen Roovers</name>
+</maintainer>
+</pkgmetadata>
diff --git a/dev-util/conan/Manifest b/dev-util/conan/Manifest
new file mode 100644
index 000000000000..014c86141fa6
--- /dev/null
+++ b/dev-util/conan/Manifest
@@ -0,0 +1,6 @@
+DIST conan-0.24.0.tar.gz 514654 SHA256 59ff6db2bfbbe5e2b5f31612a3a6be64844346359b64f2f78803af4f35dfe2e2 SHA512 6fdbf4731be6aa6fb06e2d976c97975dc4cdc60fb7a6381f99c83c19b73230de13c7a60bffa1ab6aac0d64ce20986cee99f98af986b23396107471ac804c08af WHIRLPOOL 3c6fb70b4c262d82410471d35c36118e3ae9091699ca06fc515f1bdcbc0c0da7632ae5a5b3f99de7f94448ea9a1c9dce1c88fdc3fbf09fb2c0afa49e458916df
+DIST conan-0.25.1.tar.gz 529592 SHA256 9277b00f0dbd67bb06eb9da539380d8c9797665ad07a9e60e12ef4e13bec16f0 SHA512 487a0dca79afd6f0b6d6907fe7a95c310e5b4c97787dcf390c0d5797552ab1ba3aee9a90d45c3c9ee302f4b1a6e13c44ca8c20b6f11d789ce5d6f6bce068e600 WHIRLPOOL 2c0ed02925c3f59058e5d09ce0b8016a8a65c8f4a5f769b3c50207c9f61ce038771c944c2efd9d08aa8b98c1c97f34caa5b9a2bb9b9f501411671f224b4727ab
+EBUILD conan-0.24.0-r1.ebuild 1422 SHA256 a4660787aabffc2c2d74a080521d027825136f0f4fc7887dd217f22e047697d2 SHA512 4a22840104034565cc2d4a9688b91ac31171fdfa8e5208939a8926afb6425f92a0c250364ffdd2c376250ece711e2f5ea577bd899028d437dcf1950478029b06 WHIRLPOOL 5d22ca6cb5438e6f6ec0d237ca27c4706658249556fe57e1fe88792a0c7affe9945cbd16563e21f6cf039dfbca58f59bebf6cb581af9ad0886519cc6a20a0c12
+EBUILD conan-0.25.1.ebuild 1614 SHA256 1173cee0d5c2d2e2a8cab241d18c56040bcae1aec993729c14d5b2867a8393dc SHA512 8eff73fccc540ce41ec272282aa52a03586f9b7c12be1e889b21a25f0b1682a18514002a66ca1664cddd7cdc80e83c850258853a10301a3310cb62e29f040f66 WHIRLPOOL 1f1e0d19aa9041d3f3fa9bb904fb4cae1c874ed8619716e2e04cd88034d68e2e37e85731d82e3c67da87739be011a88180be48dae9fadbba2f0713fd3b9b2f88
+MISC ChangeLog 675 SHA256 e488d3e81de2a418719065caa82988c6c59e38f0262cb859dd5520654d06d99a SHA512 6a45378b1b7ca6ba8c876eb7535571ddd6b84daa5c6949ed6f209ae8ce6c4b3d3d61dae65462f56f0477447fb5d9041a2dd7d740106250f97f7e8fa227881026 WHIRLPOOL 01b9758046d0b2c605eee7bbe3726f38b29699a7a39933d75931a5ca9d06dda19d169eaa0a7de941982dfbab13b3e92bc24e1f92a3899cf4806f91bd78892430
+MISC metadata.xml 613 SHA256 a42bb53193694532f040db55c34882e5e0c63f0b869801aad5c8e8186b141c42 SHA512 9d2e4d3caa7d2fc423d978ae7464ccca5b244179faa06b04fb7d2368d805f1b7b0406baffccbcce910e6db65e76c4f42482ef27526a3dae7a82da8ffb37a9016 WHIRLPOOL a705e96100b3e1e9180a5fdec17923af1472348675d134ae3a541e0cc3742d016610f7578e4f7a925f0cd3a2b4f88c75ba4987feef241f361e7fffc80eed39a9
diff --git a/dev-util/conan/conan-0.24.0-r1.ebuild b/dev-util/conan/conan-0.24.0-r1.ebuild
new file mode 100644
index 000000000000..453ff6e2d563
--- /dev/null
+++ b/dev-util/conan/conan-0.24.0-r1.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
+PYTHON_REQ_USE="sqlite"
+
+inherit distutils-r1
+
+DESCRIPTION="Distributed C/C++ package manager"
+HOMEPAGE="http://conan.io/"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="test"
+
+RDEPEND="
+ >=dev-python/bottle-0.12.8[${PYTHON_USEDEP}]
+ >=dev-python/colorama-0.3.3[${PYTHON_USEDEP}]
+ >=dev-python/distro-1.0.2[${PYTHON_USEDEP}]
+ >=dev-python/fasteners-0.14.1[${PYTHON_USEDEP}]
+ >=dev-python/passlib-1.6.5[${PYTHON_USEDEP}]
+ =dev-python/patch-1.16[${PYTHON_USEDEP}]
+ >=dev-python/pluginbase-0.5[${PYTHON_USEDEP}]
+ >=dev-python/pyjwt-1.4[${PYTHON_USEDEP}]
+ =dev-python/pylint-1.6.5[${PYTHON_USEDEP}]
+ >=dev-python/pyyaml-3.11[${PYTHON_USEDEP}]
+ >=dev-python/requests-2.7[${PYTHON_USEDEP}]
+ >=dev-python/six-1.10[${PYTHON_USEDEP}]
+ >=dev-python/node-semver-0.1.1[${PYTHON_USEDEP}]
+"
+DEPEND="
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ test? (
+ ${RDEPEND}
+ dev-lang/go
+ >=dev-python/mock-1.3.0[${PYTHON_USEDEP}]
+ >=dev-python/nose-1.3.7[${PYTHON_USEDEP}]
+ >=dev-python/nose-parameterized-0.5.0[${PYTHON_USEDEP}]
+ >=dev-python/webtest-2.0.18[${PYTHON_USEDEP}]
+ dev-util/cmake
+ )
+"
+
+python_test() {
+ cd "${BUILD_DIR}"/lib || die
+ PYTHONPATH=. nosetests -v . || die
+}
diff --git a/dev-util/conan/conan-0.25.1.ebuild b/dev-util/conan/conan-0.25.1.ebuild
new file mode 100644
index 000000000000..5c95fc878d8f
--- /dev/null
+++ b/dev-util/conan/conan-0.25.1.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
+PYTHON_REQ_USE="sqlite"
+
+inherit distutils-r1
+
+DESCRIPTION="Distributed C/C++ package manager"
+HOMEPAGE="http://conan.io/"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="test"
+
+# overly strict requirements?
+# https://github.com/conan-io/conan/blob/develop/conans/requirements.txt
+RDEPEND="
+ >=dev-python/bottle-0.12.8[${PYTHON_USEDEP}]
+ >=dev-python/colorama-0.3.3[${PYTHON_USEDEP}]
+ >=dev-python/distro-1.0.2[${PYTHON_USEDEP}]
+ >=dev-python/fasteners-0.14.1[${PYTHON_USEDEP}]
+ =dev-python/future-0.16.0[${PYTHON_USEDEP}]
+ =dev-python/node-semver-0.1.1[${PYTHON_USEDEP}]
+ >=dev-python/passlib-1.6.5[${PYTHON_USEDEP}]
+ =dev-python/patch-1.16[${PYTHON_USEDEP}]
+ >=dev-python/pluginbase-0.5[${PYTHON_USEDEP}]
+ >=dev-python/pyjwt-1.4[${PYTHON_USEDEP}]
+ >=dev-python/pygments-2.0[${PYTHON_USEDEP}]
+ =dev-python/pylint-1.6.5[${PYTHON_USEDEP}]
+ >=dev-python/pyyaml-3.11[${PYTHON_USEDEP}]
+ >=dev-python/requests-2.7[${PYTHON_USEDEP}]
+ >=dev-python/six-1.10[${PYTHON_USEDEP}]
+"
+DEPEND="
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ test? (
+ ${RDEPEND}
+ dev-lang/go
+ >=dev-python/mock-1.3.0[${PYTHON_USEDEP}]
+ >=dev-python/nose-1.3.7[${PYTHON_USEDEP}]
+ >=dev-python/nose-parameterized-0.5.0[${PYTHON_USEDEP}]
+ >=dev-python/webtest-2.0.18[${PYTHON_USEDEP}]
+ dev-util/cmake
+ )
+"
+
+python_test() {
+ cd "${BUILD_DIR}"/lib || die
+ PYTHONPATH=. nosetests -v . || die
+}
diff --git a/dev-util/conan/metadata.xml b/dev-util/conan/metadata.xml
new file mode 100644
index 000000000000..2d34940e1994
--- /dev/null
+++ b/dev-util/conan/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>bicatali@gentoo.org</email>
+ <name>Sébastien Fabbro</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="pypi">conan</remote-id>
+ <remote-id type="github">conan-io/conan</remote-id>
+ </upstream>
+ <longdescription>
+ Conan is a portable package manager, intended for C and C++
+ developers, but it is able to manage builds from source,
+ dependencies, and precompiled binaries for any language.
+ </longdescription>
+</pkgmetadata>
diff --git a/dev-util/confix-wrapper/Manifest b/dev-util/confix-wrapper/Manifest
new file mode 100644
index 000000000000..757eec46b439
--- /dev/null
+++ b/dev-util/confix-wrapper/Manifest
@@ -0,0 +1,4 @@
+EBUILD confix-wrapper-0.ebuild 794 SHA256 c010addf4dfd45c1581a7f3f95082b57cff2a9f08d0fc5f3ed517c7e21035660 SHA512 deab328531aaad8a9064bc1987e7ebeab8b4d039f549da954d53d7f09a9f728be56f77a07a1e3b8cb69d3e74ccdd6b777040beaa30f7f72f9a6cad9abef0ee2b WHIRLPOOL cb93a11b7fb8a6b9805b87cb47f48455fd9dccbf8eca0835c7bded7459a140069bc1f2e9916fa52dfc6adeb4d3c289d933634a18f1185c546755cf3c99f5edc8
+MISC ChangeLog 2735 SHA256 d1416db119ae689e5687486d63e0e3903d3879939538e93b145e18e9fd960bdd SHA512 f4ce727a81514d59219674aa54e68fb8d9e3673604050f23fc9f341a2af6d0519594d22b68cfb14999b64199dd0eb8145471ba5efa388605297b31101208c4e0 WHIRLPOOL 2c16382cc88e0027ec6c481e9f79ed5c110cc8f0f41f0ac7589efc9466a3220904b6d6727614ead42fedf079e6f01f72d2f17fb47c2c58687f50c5ab0d6465cd
+MISC ChangeLog-2015 953 SHA256 134c0ea1b07847f4204a36cb32847f65996004678def7fa054cd21a467d3026f SHA512 6ecdf40eb2de8eb024e18b93dccdfee34c6eaa61d44ceaa7eccdaa53e24e7c77d2a8a97eed4412b55dcf527a1cfd35c2dc1a3df3a99862778a06df807c523ccf WHIRLPOOL 73302ac0aacd7c231de47ec6d8b9066c5b0eaee308f80c4fa124a22ac723155eb7171815a6ee51a75a337f56617350dcbfa9f3c2bf03e20063f16d1197bd2a8e
+MISC metadata.xml 329 SHA256 8c64fecbedb8352c409df53a00630939fa11c7f669185703f306e2003b876873 SHA512 a2e7c1b3ef9b2228e2820c0aa46354d771b518e7a5f854f1f06850840929846b12125b4f526a7f0282b3e9545c5cf7ed670ef2f2047c7deb0c6de40b9667b321 WHIRLPOOL 21bb8468d0e8d5986bdee662f8b26695db6b8a1bf3c793b5607448f4d285dc6bb38fe253adce31a6ae79251d05e99857fdd62d0192b20f81a3bad08e53931ccc
diff --git a/dev-util/confix-wrapper/confix-wrapper-0.ebuild b/dev-util/confix-wrapper/confix-wrapper-0.ebuild
new file mode 100644
index 000000000000..a7450e6f469d
--- /dev/null
+++ b/dev-util/confix-wrapper/confix-wrapper-0.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+DESCRIPTION="Wrapper to select either confix1.py or confix2.py"
+HOMEPAGE="http://confix.sourceforge.net"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~sparc-solaris ~x86-solaris"
+IUSE=""
+
+src_install() {
+ dodir /usr/bin
+ cat >> "${ED:-${D}}"usr/bin/confix <<EOF
+#! ${EPREFIX:-}/bin/sh
+confixpy=
+if [ -f ./Confix2.dir ]; then
+ confixpy=confix2.py
+elif [ -f ./Makefile.py ]; then
+ confixpy=confix1.py
+else
+ confixpy=confix2.py
+fi
+case \$# in
+0) exec \${confixpy} ;;
+*) exec \${confixpy} "\$@" ;;
+esac
+EOF
+ fperms a+x /usr/bin/confix || die "cannot set permissions"
+ dosym confix /usr/bin/confix.py || die "cannot create 'confix' symlink"
+}
diff --git a/dev-util/confix-wrapper/metadata.xml b/dev-util/confix-wrapper/metadata.xml
new file mode 100644
index 000000000000..5cbfb3aa5288
--- /dev/null
+++ b/dev-util/confix-wrapper/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>haubi@gentoo.org</email>
+ <name>Michael Haubenwallner</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">confix</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/confix/Manifest b/dev-util/confix/Manifest
new file mode 100644
index 000000000000..7c891bab09af
--- /dev/null
+++ b/dev-util/confix/Manifest
@@ -0,0 +1,14 @@
+AUX 2.1.0/jni-hpux.patch 461 SHA256 7b53466e987f738a34adaca8cbd8266265f43985ba7bddb02f100f068ca946e3 SHA512 7b16dcc84c7ecdc4f403daab1b8902dc995fc297f6df27be13a8acb542f253e01f8f1a66b0e3711948631e3618e18dd21e04e7496985c08f60ac10e2ad6b5967 WHIRLPOOL 20d3e7988e0cf442558b78c52272b2737e96546d25133055bd47841d827b48a2f9b9ef128cf8eab25285462572015b4bf36311ef87ec2bc6687e761b0be89c7c
+AUX 2.3.0/exeext.patch 890 SHA256 eeb76fd3eddc2665f9cbbc4379c0d75e5e9c2e6363bf7f3157e6c81c997dfd15 SHA512 e9aab2698036cc872dd0c16c14a3594de568bfe9999a5a7dfd2eec5b1612d844b022693747541f005ea6448314d4329bfefbabc0b073dbcfbd9563265a047483 WHIRLPOOL 19e246a20ef935bac0157716f40889297d5fd35f3c4d2d0279963e2a7bf1e45208131d776c8778c60eade88360bca0601346cd3ee855d806c6fa2177823e710a
+AUX 2.3.0/ext-ac-archive.patch 1515 SHA256 6713126639eaffa18ec22d5c7c4e3091b0bf3efa7a7d2c9b9011a7b6e95be99d SHA512 26ff04b4fc8b2283b5ca157e96d9c18111b116d3e4585f84ff4da6a89719f74c1b6b20eaa024adc40b321f313705eaa746a5204038ce0cc1ce3e25b11a1b2c8e WHIRLPOOL 2165933aabceb028fbc18d1ddf9336528622dac7d23e071ad75d5abbaf37eef429813f42f4716d14bcaaed505006305fa934496e1b3a24bd8a417ee37be405f6
+AUX 2.3.0/local-libs-first.patch 1871 SHA256 5a4ac9bfe8778c10952b5e0cfa33c835b8dd5f66d64f9fcd251fffd0b19c9459 SHA512 1b6196c7fa4e132c1bd2013e559f4db8b21ea8497c5771cb7bd51e11efae9fd2e4c08af6a07bb6b911961f9e29ec4de683c7a5245a786002eef1f13894a6e533 WHIRLPOOL 5e431e5ebe9b3b725155a1f82e6519a21daa4760fd3c02e5e7516e20b99c3011211be5579b2b0377df2d9cd8d344e7ba8bdf8d05ac5b7cdc08d5ef0667f37909
+AUX 2.3.0/new-automake.patch 573 SHA256 28190dc46beee0f163a9f64d8e523232d73864948cc06e9e9e35b98645df160e SHA512 216e4bcb753107107bb3e0f6e303984b5b282fbe80c72c97e7365c0729a3007b6f960b1ee3c4a311a5b5b81c179ab1daa171da5eec33900e158b8a73cc9f0338 WHIRLPOOL 3b711789b29d4108ae5d911c4b62f207af4370d78d56655302dbced3905483165f9e2e60bf83e6daa02432e86119a015e66a1681eeace66e30c9fc9d1d00ed10
+AUX confix-2.3.5-nodist-shar.patch 2036 SHA256 20ea452ec6d3c7e64f2d7d6b58e333494845de071fb8001041f06c49a640ecb0 SHA512 f76b2b270e67074885230a5e7d26c99aedb21d909e8ff8948c220fd6f841c5c3b845679432630dcf70771ee2f6c9d54ce63268520073786ab2ce65165cc5c66e WHIRLPOOL 551bb81639c1dcbe6a9a297717fa57010dad12a938da55d49b661c6c956f026099178b789e386e1a369e8aa7d723422acf3f6f8dd76125330fd4108e1d7784f5
+AUX confix-2.3.5-support-no_undefined.patch 8388 SHA256 87f19b65e9ab233cfe7b8a14663149a202d9b666dcc9deba0f63e309539e563d SHA512 279b5dd7a1536c54b8543af82296d8cb10938614364bf65c9e54d99ad7071c0ceb2914da0f6e460b3873796eac0b52107c158c03d53838585533165bf1cccc19 WHIRLPOOL 58e4c4c1e5d9716c6e7d605384f624a2a21a42f7260c3bd58341563f1982f59fb17987aaf5be60a038147b1bcc38a872ca57a15ffde0e1fe62418dd14e728350
+DIST Confix-2.3.5.tar.bz2 678133 SHA256 b1a2814526c908ab32d6cfd3f0e8b8105c925a7e8ac1802c4b0856d44a2a9916 SHA512 e6adec0cd27e9064dd0f6ff32d2e68deb755631a27759b253a7a176525b515ffc9069b8f28ac48ee6fdb642dfc2098fd2d7d6bd6e4ecccd43cb92df12c48e4c7 WHIRLPOOL e9412d3a4619679301f8816fd4de3a267cf3b9ed57967bbbb29bd8219147f8c1643b4e610d06a8de5433ca3f4101b689e351717d386c86fd34c3725e48666bde
+EBUILD confix-2.3.5-r2.ebuild 1988 SHA256 7bce18fbc47ce53b153b2f9ab1ccc5350ee4296c491e41f1ef93d4d5a9ee88f3 SHA512 8ec55f5345572782c46abc716239dd6597c944f45eed56832c47a4be6d443b0fff09d616c98ba24e7667c7b512719af246b1da52c79a5dcbc573eb50d15f1976 WHIRLPOOL f4b8d882aa0882d5a0ef22564ed40e7415e4e64ae4503dfa8bb554817225bfb6de841fa84ed3b28513c5a340a7378b771ebadf1bcfca0b511f5baa81ccacc721
+EBUILD confix-2.3.5-r3.ebuild 2156 SHA256 02cc29f3b5b843cdad7263f3a361598e990c4fd6b2d4bd1b420add24ef8d949a SHA512 9120fadad71ff983ca5d0139912bbff034ffdadd74ed2ba9dc6f0a3050a849ef04dc7ff9e1a33a3551109cec6dc402261736b0db1bc571bfeedb20c4c056e1fe WHIRLPOOL 784270040ab3ee0191c7ecf18eed9316975f798c5a66c8f49525a2a9d74fbec513e7b03906b44f6b49558de6004ef49f2050957a179eba25586b1802d158e663
+EBUILD confix-9999.ebuild 1914 SHA256 2fc20fb6966f4fbc6974fb3d662e599a3dae1c7c7ea33a0975f2f8ce40304288 SHA512 d2afb4f15fc0953a42b1c174581606a92f9182ddb3cea6e0a5c778e5ff1b03cacecaa7d9e9a1b307e51e08fda779b4126cb8a19763236e5b33e12356a1022baa WHIRLPOOL 09b9ac50583695b22c2b08d402cf04b2704ca6d46b5e34fdc21d7edadb887d499f3be49ed940f10f8dd05788bfb945955fb6cfcb4f2f3e8af684ab947f510bc2
+MISC ChangeLog 3074 SHA256 df11f3be358c3def833a35bb06b2631715e5105515affd68085d49208ae69880 SHA512 ae0038a77ad26e7725207642d338983d3c7ed6325d260eb00ff943b5104d12dcbafb27c744a0086d1f4cf9762afafcd62ec2ac88ff6cb890e894f22ad6eb0c03 WHIRLPOOL 5c3bf006de80b670201f5f21534a74dab2912eea8c113055f9d5afdd903006a14def80f2698a60df8c84a98eaa62da41e03275f86b913e08a36e7cad45015c35
+MISC ChangeLog-2015 4401 SHA256 cfdd8283ca2855b629fbbb3f0bd2dfe86363901ac80fa5ba38547a17d49b71b9 SHA512 357cf74e01bbc1abe8977335d1621eefe30eadb16b00e4137ec3bbf99c46f182955312e810dca621b536c47a7f5bc1d24cea8746efcf819ef23fc162079d2083 WHIRLPOOL fc839d73f4f513720f2ac2bddf819bebc0fa7252949a567a0d9e2c1ffe696aafd35d0b72f30873584575bc228be3c3d1b5d3a44f39ba04a749ea168ff52a2881
+MISC metadata.xml 329 SHA256 8c64fecbedb8352c409df53a00630939fa11c7f669185703f306e2003b876873 SHA512 a2e7c1b3ef9b2228e2820c0aa46354d771b518e7a5f854f1f06850840929846b12125b4f526a7f0282b3e9545c5cf7ed670ef2f2047c7deb0c6de40b9667b321 WHIRLPOOL 21bb8468d0e8d5986bdee662f8b26695db6b8a1bf3c793b5607448f4d285dc6bb38fe253adce31a6ae79251d05e99857fdd62d0192b20f81a3bad08e53931ccc
diff --git a/dev-util/confix/confix-2.3.5-r2.ebuild b/dev-util/confix/confix-2.3.5-r2.ebuild
new file mode 100644
index 000000000000..d840e82bf489
--- /dev/null
+++ b/dev-util/confix/confix-2.3.5-r2.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+DISTUTILS_SINGLE_IMPL=1
+
+inherit distutils-r1
+
+DESCRIPTION="Confix: A Build Tool on Top of GNU Automake"
+HOMEPAGE="http://confix.sourceforge.net"
+SRC_URI="mirror://sourceforge/confix/Confix-${PV}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="2"
+KEYWORDS="~amd64 ~x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~sparc-solaris ~x86-solaris"
+IUSE=""
+
+DEPEND=""
+RDEPEND="dev-util/confix-wrapper
+ sys-devel/autoconf-archive
+ sys-devel/automake
+ sys-devel/libtool"
+
+S="${WORKDIR}/Confix-${PV}"
+
+PATCHES=( # find jni-include dirs on hpux.
+ "${FILESDIR}"/2.1.0/jni-hpux.patch
+ # add .exe extension to TESTS
+ "${FILESDIR}"/2.3.0/exeext.patch
+ # use external autoconf archive
+ "${FILESDIR}"/2.3.0/ext-ac-archive.patch
+ # link local libraries first.
+ "${FILESDIR}"/2.3.0/local-libs-first.patch
+ # don't use automake 1.9, but any newer too...
+ "${FILESDIR}"/2.3.0/new-automake.patch )
+
+pkg_setup() {
+ python-single-r1_pkg_setup
+}
+
+pkg_preinst() {
+ local RV=2.3.0
+
+ if has_version "<dev-util/confix-${RV}"; then
+ einfo "After merging ${P} you might have to remerge all packages built"
+ einfo "with <dev-util/confix-${RV} in your EPREFIX to get all the"
+ einfo "repo files useable with current ${PN}".
+ ewarn
+ ewarn "Use this command (copy&paste) to identify packages built with confix"
+ ewarn "needing a remerge in your particular instance of Gentoo Prefix:"
+ ewarn
+ # use 'echo' to get this command from here:
+ ewarn "( cd \$(portageq envvar EPREFIX)/var/db/pkg || exit 1;" \
+ "pattern=\$(cd ../../.. && echo \$(ls -d" \
+ "usr/share/confix*/repo | grep -v confix-${RV}) |" \
+ "sed -e 's, ,|,g'); if [[ -z \${pattern} ]]; then echo" \
+ "'No more packages were built with broken Confix.'; exit 0;" \
+ "fi; emerge --ask --oneshot \$(grep -lE \"(\${pattern})\"" \
+ "*/*/CONTENTS | sed -e 's,^,>=,;s,/CONTENTS,,')" \
+ ")"
+ ewarn
+ fi
+}
diff --git a/dev-util/confix/confix-2.3.5-r3.ebuild b/dev-util/confix/confix-2.3.5-r3.ebuild
new file mode 100644
index 000000000000..11af017cd57e
--- /dev/null
+++ b/dev-util/confix/confix-2.3.5-r3.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+DISTUTILS_SINGLE_IMPL=1
+
+inherit distutils-r1
+
+DESCRIPTION="Confix: A Build Tool on Top of GNU Automake"
+HOMEPAGE="http://confix.sourceforge.net"
+SRC_URI="mirror://sourceforge/confix/Confix-${PV}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="2"
+KEYWORDS="~amd64 ~x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~sparc-solaris ~x86-solaris"
+IUSE=""
+
+DEPEND=""
+RDEPEND="dev-util/confix-wrapper
+ sys-devel/autoconf-archive
+ sys-devel/automake
+ sys-devel/libtool"
+
+S="${WORKDIR}/Confix-${PV}"
+
+PATCHES=( # find jni-include dirs on hpux.
+ "${FILESDIR}"/2.1.0/jni-hpux.patch
+ # add .exe extension to TESTS
+ "${FILESDIR}"/2.3.0/exeext.patch
+ # use external autoconf archive
+ "${FILESDIR}"/2.3.0/ext-ac-archive.patch
+ # link local libraries first.
+ "${FILESDIR}"/2.3.0/local-libs-first.patch
+ # don't use automake 1.9, but any newer too...
+ "${FILESDIR}"/2.3.0/new-automake.patch
+ # support -no-undefined libtool flag
+ "${FILESDIR}"/${P}-support-no_undefined.patch
+ # drop deprecated 'dist-shar' automake flag
+ "${FILESDIR}"/${P}-nodist-shar.patch
+)
+
+pkg_setup() {
+ python-single-r1_pkg_setup
+}
+
+pkg_preinst() {
+ local RV=2.3.0
+
+ if has_version "<dev-util/confix-${RV}"; then
+ einfo "After merging ${P} you might have to remerge all packages built"
+ einfo "with <dev-util/confix-${RV} in your EPREFIX to get all the"
+ einfo "repo files useable with current ${PN}".
+ ewarn
+ ewarn "Use this command (copy&paste) to identify packages built with confix"
+ ewarn "needing a remerge in your particular instance of Gentoo Prefix:"
+ ewarn
+ # use 'echo' to get this command from here:
+ ewarn "( cd \$(portageq envvar EPREFIX)/var/db/pkg || exit 1;" \
+ "pattern=\$(cd ../../.. && echo \$(ls -d" \
+ "usr/share/confix*/repo | grep -v confix-${RV}) |" \
+ "sed -e 's, ,|,g'); if [[ -z \${pattern} ]]; then echo" \
+ "'No more packages were built with broken Confix.'; exit 0;" \
+ "fi; emerge --ask --oneshot \$(grep -lE \"(\${pattern})\"" \
+ "*/*/CONTENTS | sed -e 's,^,>=,;s,/CONTENTS,,')" \
+ ")"
+ ewarn
+ fi
+}
diff --git a/dev-util/confix/confix-9999.ebuild b/dev-util/confix/confix-9999.ebuild
new file mode 100644
index 000000000000..3cedd69d8468
--- /dev/null
+++ b/dev-util/confix/confix-9999.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+DISTUTILS_SINGLE_IMPL=1
+
+inherit distutils-r1 subversion
+
+DESCRIPTION="Confix: A Build Tool on Top of GNU Automake"
+HOMEPAGE="http://confix.sourceforge.net"
+ESVN_REPO_URI="https://svn.code.sf.net/p/confix/svn/confix/trunk"
+ESVN_PROJECT="${PN}"
+
+LICENSE="GPL-2"
+SLOT="2"
+KEYWORDS=""
+IUSE=""
+
+DEPEND=""
+RDEPEND="dev-util/confix-wrapper
+ sys-devel/autoconf-archive
+ sys-devel/automake
+ sys-devel/libtool"
+
+PATCHES=( # find jni-include dirs on hpux.
+ "${FILESDIR}"/2.1.0/jni-hpux.patch
+ # add .exe extension to TESTS
+ "${FILESDIR}"/2.3.0/exeext.patch
+ # use external autoconf archive
+ "${FILESDIR}"/2.3.0/ext-ac-archive.patch
+ # link local libraries first.
+ "${FILESDIR}"/2.3.0/local-libs-first.patch
+ # don't use automake 1.9, but any newer too...
+ "${FILESDIR}"/2.3.0/new-automake.patch )
+
+pkg_setup() {
+ python-single-r1_pkg_setup
+}
+
+pkg_preinst() {
+ local RV=2.3.0
+
+ if has_version "<dev-util/confix-${RV}"; then
+ einfo "After merging ${P} you might have to remerge all packages built"
+ einfo "with <dev-util/confix-${RV} in your EPREFIX to get all the"
+ einfo "repo files useable with current ${PN}".
+ ewarn
+ ewarn "Use this command (copy&paste) to identify packages built with confix"
+ ewarn "needing a remerge in your particular instance of Gentoo Prefix:"
+ ewarn
+ # use 'echo' to get this command from here:
+ ewarn "( cd \$(portageq envvar EPREFIX)/var/db/pkg || exit 1;" \
+ "pattern=\$(cd ../../.. && echo \$(ls -d" \
+ "usr/share/confix*/repo | grep -v confix-${RV}) |" \
+ "sed -e 's, ,|,g'); if [[ -z \${pattern} ]]; then echo" \
+ "'No more packages were built with broken Confix.'; exit 0;" \
+ "fi; emerge --ask --oneshot \$(grep -lE \"(\${pattern})\"" \
+ "*/*/CONTENTS | sed -e 's,^,>=,;s,/CONTENTS,,')" \
+ ")"
+ ewarn
+ fi
+}
diff --git a/dev-util/confix/files/2.1.0/jni-hpux.patch b/dev-util/confix/files/2.1.0/jni-hpux.patch
new file mode 100644
index 000000000000..bd1b626e7bc2
--- /dev/null
+++ b/dev-util/confix/files/2.1.0/jni-hpux.patch
@@ -0,0 +1,10 @@
+--- Confix-2.0.0pre20/share/confix/autoconf-archive/m4src/ac_jni_include_dir.m4.orig 2007-02-07 21:16:20.000000000 +0100
++++ Confix-2.0.0pre20/share/confix/autoconf-archive/m4src/ac_jni_include_dir.m4 2007-02-07 21:16:34.000000000 +0100
+@@ -67,6 +67,7 @@
+ mingw*) _JNI_INC_SUBDIRS="win32";;
+ cygwin*) _JNI_INC_SUBDIRS="win32";;
+ interix*) _JNI_INC_SUBDIRS="win32";;
++hpux*) _JNI_INC_SUBDIRS="hp-ux";;
+ *) _JNI_INC_SUBDIRS="genunix";;
+ esac
+
diff --git a/dev-util/confix/files/2.3.0/exeext.patch b/dev-util/confix/files/2.3.0/exeext.patch
new file mode 100644
index 000000000000..98576f5c9f8b
--- /dev/null
+++ b/dev-util/confix/files/2.3.0/exeext.patch
@@ -0,0 +1,20 @@
+diff -ru confix-9999.orig/libconfix/plugins/automake/makefile_am.py confix-9999/libconfix/plugins/automake/makefile_am.py
+--- confix-9999.orig/libconfix/plugins/automake/makefile_am.py 2009-10-30 13:20:42.106291175 +0100
++++ confix-9999/libconfix/plugins/automake/makefile_am.py 2009-10-30 13:23:39.562354663 +0100
+@@ -472,7 +472,15 @@
+
+ # register automatic tests and set their environment
+
+- tests = self.dir_primary('check', 'PROGRAMS') + \
++ test_tmp = self.dir_primary('check', 'PROGRAMS')
++ count = 0
++ for prog in test_tmp:
++ prog += "$(EXEEXT)"
++ test_tmp[count] = prog
++ count += 1
++ pass
++
++ tests = test_tmp + \
+ self.dir_primary('check', 'SCRIPTS')
+ if len(tests):
+ lines.extend(makefile.List(name='TESTS', values=tests, mitigate=True).lines())
diff --git a/dev-util/confix/files/2.3.0/ext-ac-archive.patch b/dev-util/confix/files/2.3.0/ext-ac-archive.patch
new file mode 100644
index 000000000000..32122c95bfe2
--- /dev/null
+++ b/dev-util/confix/files/2.3.0/ext-ac-archive.patch
@@ -0,0 +1,35 @@
+diff -ru confix-9999.orig/libconfix/plugins/automake/bootstrap.py confix-9999/libconfix/plugins/automake/bootstrap.py
+--- confix-9999.orig/libconfix/plugins/automake/bootstrap.py 2009-10-30 13:25:27.962172020 +0100
++++ confix-9999/libconfix/plugins/automake/bootstrap.py 2009-10-30 13:27:14.780605001 +0100
+@@ -16,7 +16,7 @@
+ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
+ # USA
+
+-import autoconf_archive
++#import autoconf_archive
+ import kde_hack
+
+ from libconfix.core.utils.error import Error
+@@ -29,7 +29,7 @@
+
+ def bootstrap(packageroot, use_kde_hack, argv0, path=None):
+ aclocal_incdirs = []
+- aclocal_incdirs.append(autoconf_archive.include_path(argv0))
++ #aclocal_incdirs.append(autoconf_archive.include_path(argv0))
+
+ # if package's configure.ac looks like using libtool, then we
+ # assume that the package must be libtoolize'd.
+diff -ru confix-9999.orig/setup.py confix-9999/setup.py
+--- confix-9999.orig/setup.py 2009-10-30 13:25:27.965360137 +0100
++++ confix-9999/setup.py 2009-10-30 13:26:47.822129311 +0100
+@@ -41,8 +41,8 @@
+ return result
+
+ datafiles = []
+-datafiles.extend(recdir('share/confix/autoconf-archive/m4src', '.m4', []))
+-datafiles.extend(recdir('share/confix/autoconf-archive/htmldoc', '.html', []))
++#datafiles.extend(recdir('share/confix/autoconf-archive/m4src', '.m4', []))
++#datafiles.extend(recdir('share/confix/autoconf-archive/htmldoc', '.html', []))
+
+ # scripts to put in the auxdir.
+ datafiles.extend([('share/confix/kde-hack',
diff --git a/dev-util/confix/files/2.3.0/local-libs-first.patch b/dev-util/confix/files/2.3.0/local-libs-first.patch
new file mode 100644
index 000000000000..29d4a7a1cc9d
--- /dev/null
+++ b/dev-util/confix/files/2.3.0/local-libs-first.patch
@@ -0,0 +1,39 @@
+With libtool, link local libraries with /path/to/libfile.la instead of libpath,
+to avoid encoding local libpath into installed la-file.
+These also have to be linked first, to avoid finding already installed
+libraries of previous versions during libtool-relink.
+diff -ru Confix-2.3.0.orig/libconfix/plugins/automake/c/out_c.py Confix-2.3.0/libconfix/plugins/automake/c/out_c.py
+--- Confix-2.3.0.orig/libconfix/plugins/automake/c/out_c.py 2010-07-06 12:55:59.286540943 +0200
++++ Confix-2.3.0/libconfix/plugins/automake/c/out_c.py 2010-07-06 13:01:23.574428852 +0200
+@@ -411,6 +411,8 @@
+ """
+ assert isinstance(linked_builder, LinkedBuilder)
+
++ local_paths = []
++ local_libraries = []
+ native_paths = []
+ native_libraries = []
+ external_linkline = []
+@@ -424,8 +426,11 @@
+
+ for bi in native_libs_to_use:
+ if isinstance(bi, BuildInfo_CLibrary_NativeLocal):
+- native_paths.append('-L'+'/'.join(['$(top_builddir)']+bi.dir()))
+- native_libraries.append('-l'+bi.basename())
++ if self.__use_libtool:
++ local_libraries.append('/'.join(['$(top_builddir)']+bi.dir()+['lib'+bi.basename()+'.la']))
++ else:
++ local_paths.append('-L'+'/'.join(['$(top_builddir)']+bi.dir()))
++ local_libraries.append('-l'+bi.basename())
+ continue
+ if isinstance(bi, BuildInfo_CLibrary_NativeInstalled):
+ using_installed_library = True
+@@ -447,7 +452,7 @@
+ external_linkline.extend(elem)
+ pass
+
+- return native_paths + native_libraries + external_linkline
++ return local_paths + local_libraries + native_paths + native_libraries + external_linkline
+
+ def external_libpath(self):
+ """ For unit tests only. """
diff --git a/dev-util/confix/files/2.3.0/new-automake.patch b/dev-util/confix/files/2.3.0/new-automake.patch
new file mode 100644
index 000000000000..d6f24a4cae81
--- /dev/null
+++ b/dev-util/confix/files/2.3.0/new-automake.patch
@@ -0,0 +1,12 @@
+diff -ru Confix-2.3.0.orig/libconfix/plugins/automake/out_automake.py Confix-2.3.0/libconfix/plugins/automake/out_automake.py
+--- Confix-2.3.0.orig/libconfix/plugins/automake/out_automake.py 2010-07-12 13:15:49.254867387 +0200
++++ Confix-2.3.0/libconfix/plugins/automake/out_automake.py 2010-07-12 13:17:29.755908602 +0200
+@@ -170,7 +170,7 @@
+
+
+ # our minimum required automake version is 1.9
+- self.makefile_am().add_automake_options('1.9')
++ # self.makefile_am().add_automake_options('1.9')
+
+
+ # enable dist'ing in the following formats
diff --git a/dev-util/confix/files/confix-2.3.5-nodist-shar.patch b/dev-util/confix/files/confix-2.3.5-nodist-shar.patch
new file mode 100644
index 000000000000..bccc437de44c
--- /dev/null
+++ b/dev-util/confix/files/confix-2.3.5-nodist-shar.patch
@@ -0,0 +1,44 @@
+------------------------------------------------------------------------
+r961 | mhaubi | 2017-09-26 15:34:00 +0200 (Tue, 26 Sep 2017) | 1 line
+
+drop 'dist-shar', deprecated by newer automake
+
+Index: doc/confix.texi
+===================================================================
+#--- doc/confix.texi (revision 960)
+#+++ doc/confix.texi (working copy)
+#@@ -992,9 +992,6 @@
+ @code{dist-bzip2} creates a @file{.tar.bz2} distribution.
+
+ @item
+-@code{dist-shar} creates a shell archive distribution.
+-
+-@item
+ @code{dist-zip} create a zip file (popular on Windows).
+
+ @item
+Index: libconfix/plugins/automake/out_automake.py
+===================================================================
+--- libconfix/plugins/automake/out_automake.py (revision 960)
++++ libconfix/plugins/automake/out_automake.py (working copy)
+@@ -175,7 +175,6 @@
+
+ # enable dist'ing in the following formats
+ self.makefile_am().add_automake_options('dist-bzip2')
+- self.makefile_am().add_automake_options('dist-shar')
+ self.makefile_am().add_automake_options('dist-zip')
+
+
+Index: libconfix/plugins/automake/tests/output.py
+===================================================================
+--- libconfix/plugins/automake/tests/output.py (revision 960)
++++ libconfix/plugins/automake/tests/output.py (working copy)
+@@ -146,7 +146,7 @@
+
+ self.failUnless('1.9' in rootdir_automake_builder.makefile_am().automake_options())
+ self.failUnless('dist-bzip2' in rootdir_automake_builder.makefile_am().automake_options())
+- self.failUnless('dist-shar' in rootdir_automake_builder.makefile_am().automake_options())
++ self.failUnless('dist-shar' not in rootdir_automake_builder.makefile_am().automake_options())
+ self.failUnless('dist-zip' in rootdir_automake_builder.makefile_am().automake_options())
+ self.failUnless(const.CONFIX2_DIR in rootdir_automake_builder.makefile_am().extra_dist())
+ self.failUnless(const.CONFIX2_PKG in rootdir_automake_builder.makefile_am().extra_dist())
diff --git a/dev-util/confix/files/confix-2.3.5-support-no_undefined.patch b/dev-util/confix/files/confix-2.3.5-support-no_undefined.patch
new file mode 100644
index 000000000000..a6ffaae89c98
--- /dev/null
+++ b/dev-util/confix/files/confix-2.3.5-support-no_undefined.patch
@@ -0,0 +1,213 @@
+------------------------------------------------------------------------
+r960 | mhaubi | 2017-09-26 14:51:18 +0200 (Tue, 26 Sep 2017) | 10 lines
+
+add 'has_undefined_symbols' property for libraries
+
+Windows does not support undefined symbols in shared libraries,
+so libtool refuses to create DLLs without the -no-undefined flag.
+
+Adding explicit HAS_UNDEFINED_SYMBOLS(False) api call per library,
+and the optional (has_undefined_symbols=False) argument to AutoC().
+
+For backwards compatibility, default is (has_undefined_symbols=True).
+
+------------------------------------------------------------------------
+Index: libconfix/plugins/automake/c/out_c.py
+===================================================================
+--- libconfix/plugins/automake/c/out_c.py (revision 959)
++++ libconfix/plugins/automake/c/out_c.py (revision 960)
+@@ -487,6 +487,9 @@
+ elif b.default_version() is not None:
+ automake_output_builder.makefile_am().add_compound_ldflags(automakelibname, '-release '+b.default_version())
+ pass
++ if b.has_undefined_symbols() is False:
++ automake_output_builder.makefile_am().add_compound_ldflags(automakelibname, '-no-undefined')
++ pass
+ pass
+ else:
+ automake_output_builder.configure_ac().add_paragraph(
+Index: libconfix/plugins/c/clusterer.py
+===================================================================
+--- libconfix/plugins/c/clusterer.py (revision 959)
++++ libconfix/plugins/c/clusterer.py (revision 960)
+@@ -33,7 +33,7 @@
+ import types
+
+ class CClustererSetup(Setup):
+- def __init__(self, linkednamefinder=None):
++ def __init__(self, linkednamefinder=None, has_undefined_symbols=True):
+ assert linkednamefinder is None or isinstance(linkednamefinder, NameFinder)
+ Setup.__init__(self)
+ if linkednamefinder is None:
+@@ -41,10 +41,11 @@
+ else:
+ self.__namefinder = linkednamefinder
+ pass
++ self.__has_undefined_symbols = has_undefined_symbols
+ pass
+
+ def setup(self, dirbuilder):
+- clusterer = CClusterer(namefinder=self.__namefinder)
++ clusterer = CClusterer(namefinder=self.__namefinder, has_undefined_symbols=self.__has_undefined_symbols)
+ dirbuilder.add_builder(clusterer)
+ dirbuilder.add_interface(CClustererInterfaceProxy(clusterer=clusterer))
+ pass
+@@ -51,11 +52,12 @@
+ pass
+
+ class CClusterer(Builder):
+- def __init__(self, namefinder):
++ def __init__(self, namefinder, has_undefined_symbols=True):
+ Builder.__init__(self)
+ self.__namefinder = namefinder
+ self.__libname = None
+ self.__libtool_version_info = None
++ self.__has_undefined_symbols = has_undefined_symbols
+ pass
+
+ def shortname(self):
+@@ -85,6 +87,15 @@
+ pass
+ pass
+
++ def set_has_undefined_symbols(self, has_undefined_symbols):
++ self.__has_undefined_symbols = has_undefined_symbols
++ for builder in self.parentbuilder().iter_builders():
++ if isinstance(builder, LibraryBuilder):
++ builder.set_has_undefined_symbols(has_undefined_symbols)
++ break
++ pass
++ pass
++
+ def enlarge(self):
+ super(CClusterer, self).enlarge()
+
+@@ -163,7 +174,8 @@
+ LibraryBuilder(
+ basename=libname,
+ version=self.__libtool_version_info,
+- default_version=self.package().version()))
++ default_version=self.package().version(),
++ has_undefined_symbols=self.__has_undefined_symbols))
+ for b in itertools.chain(nomain_builders, header_builders):
+ library.add_member(b)
+ pass
+@@ -229,6 +241,13 @@
+ pass
+ self.__clusterer.set_libtool_version_info(version)
+ pass
++
++ def HAS_UNDEFINED_SYMBOLS(self, has_undefined_symbols):
++ if type(has_undefined_symbols) is not types.BooleanType:
++ raise Error("HAS_UNDEFINED_SYMBOLS(): 'has_undefined_symbols' argument must be a boolean")
++ self.__clusterer.set_has_undefined_symbols(has_undefined_symbols)
++ pass
++
+ pass
+
+ class NameFinder:
+Index: libconfix/plugins/c/explicit_iface.py
+===================================================================
+--- libconfix/plugins/c/explicit_iface.py (revision 959)
++++ libconfix/plugins/c/explicit_iface.py (revision 960)
+@@ -104,7 +104,7 @@
+ self.__dirbuilder.add_builder(yacc)
+ return yacc
+
+- def LIBRARY(self, members, basename=None, version=None):
++ def LIBRARY(self, members, basename=None, version=None, undefined_symbols=True):
+ the_basename = basename
+ if the_basename is None:
+ the_basename=LongNameFinder().find_libname(
+@@ -113,7 +113,8 @@
+ pass
+ library = LibraryBuilder(basename=the_basename,
+ version=version,
+- default_version=self.__dirbuilder.package().version())
++ default_version=self.__dirbuilder.package().version(),
++ has_undefined_symbols=undefined_symbols)
+ for m in members:
+ library.add_member(m)
+ pass
+Index: libconfix/plugins/c/library.py
+===================================================================
+--- libconfix/plugins/c/library.py (revision 959)
++++ libconfix/plugins/c/library.py (revision 960)
+@@ -25,7 +25,8 @@
+ def __init__(self,
+ basename,
+ version,
+- default_version):
++ default_version,
++ has_undefined_symbols):
+
+ # library version. passed to libtool as "-version-info
+ # <current>:<revision>:<age>", for example.
+@@ -40,6 +41,7 @@
+ self.__basename = basename
+ self.__version = version
+ self.__default_version = default_version
++ self.__has_undefined_symbols = has_undefined_symbols
+
+ self.__buildinfo_added = False
+
+@@ -82,6 +84,10 @@
+ super(LibraryBuilder, self).force_enlarge()
+ pass
+
++ def set_has_undefined_symbols(self, has_undefined_symbols):
++ self.__has_undefined_symbols = has_undefined_symbols
++ pass
++
+ def version(self):
+ return self.__version
+
+@@ -88,4 +94,7 @@
+ def default_version(self):
+ return self.__default_version
+
++ def has_undefined_symbols(self):
++ return self.__has_undefined_symbols
++
+ pass
+Index: libconfix/plugins/c/setups/default_setup.py
+===================================================================
+--- libconfix/plugins/c/setups/default_setup.py (revision 959)
++++ libconfix/plugins/c/setups/default_setup.py (revision 960)
+@@ -25,8 +25,8 @@
+
+ from libconfix.core.machinery.setup import CompositeSetup
+
+-def make_core_setups(linkednamefinder):
+- return [CClustererSetup(linkednamefinder=linkednamefinder),
++def make_core_setups(linkednamefinder, has_undefined_symbols):
++ return [CClustererSetup(linkednamefinder=linkednamefinder, has_undefined_symbols=has_undefined_symbols),
+ CCreatorSetup(),
+ CommonInterfaceSetup(),
+ RelocatedHeadersSetup(),
+@@ -34,8 +34,9 @@
+
+ class DefaultCSetup(CompositeSetup):
+ def __init__(self,
+- linkednamefinder=None):
+- setups = make_core_setups(linkednamefinder=linkednamefinder)
++ linkednamefinder=None,
++ has_undefined_symbols=True):
++ setups = make_core_setups(linkednamefinder=linkednamefinder, has_undefined_symbols=has_undefined_symbols)
+ setups.append(ImplicitInterfaceSetup())
+ CompositeSetup.__init__(
+ self,
+Index: libconfix/setups/c.py
+===================================================================
+--- libconfix/setups/c.py (revision 959)
++++ libconfix/setups/c.py (revision 960)
+@@ -26,7 +26,7 @@
+ pass
+
+ class AutoC(CompositeSetup):
+- def __init__(self, libnamefinder=None):
+- CompositeSetup.__init__(self, [DefaultCSetup(libnamefinder)])
++ def __init__(self, libnamefinder=None, has_undefined_symbols=True):
++ CompositeSetup.__init__(self, [DefaultCSetup(libnamefinder, has_undefined_symbols=has_undefined_symbols)])
+ pass
+ pass
diff --git a/dev-util/confix/metadata.xml b/dev-util/confix/metadata.xml
new file mode 100644
index 000000000000..5cbfb3aa5288
--- /dev/null
+++ b/dev-util/confix/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>haubi@gentoo.org</email>
+ <name>Michael Haubenwallner</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">confix</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/cookiecutter/Manifest b/dev-util/cookiecutter/Manifest
new file mode 100644
index 000000000000..607026fd5dd0
--- /dev/null
+++ b/dev-util/cookiecutter/Manifest
@@ -0,0 +1,4 @@
+DIST cookiecutter-1.5.1.tar.gz 247703 SHA256 eaf8c67c75335b899e58c608562536b4159284e8078cb59591505526aab7bbea SHA512 f40c38c0162ba7e2b5b65685509955d7949bca9497b18cbddcbf98926cd3afdc4b9cca5cf62fe1d4ee80175429df124b483c32912b883c34b13a783c227188d2 WHIRLPOOL 3a3a173eb986811fdcfd24faccfb0f1212e8095fa3f2ea35cd2abae8585cdf2046424075db8b078ae5089232aaa70369814a187ba911e863a0ba35ae3a203f95
+EBUILD cookiecutter-1.5.1.ebuild 1131 SHA256 35da8a8ef5d000966bf1854f9c3114099836b37e17775bdf21c18a87e6913bfb SHA512 b5fd95c01c03434692284b4fdc98d7193d7867e39b4edfa546c3d6a7d09b1d6929cbee519c15abf1dea3e685498a843417eebbcc1a93beafbbc501e0345e6adf WHIRLPOOL b757fcd149824047216e45edfd8df9d3324f1e69a430434011bbc5ae1ab2b70065a05ec3f827534280a3139dda1921d8e872fba329cdfac7de278a54fcc5cc43
+MISC ChangeLog 322 SHA256 e7579d13645f0c4d4cab8ee4305a6d3e72948eeb3694bbad8d5e40eb5a78f1c0 SHA512 7bb2afe082a64f827d89684e4cba7939a125a5352f5d037729b82a12569c0cb41467986e157d5a12cab5be0b99985d1368cf4bd82fba601c26adab005f6970ac WHIRLPOOL 687bc0fff269685037b459d2f3d06a459a218d47ed2d0ef2bf1d350cb627d17560b444743d4756ada234adeb2a8209717cf1cfeaa57813a73514e2dfb79d6f1c
+MISC metadata.xml 329 SHA256 a130b8a0e42431a60fb6658340525f776c4d58d8d5e2031200f1e98b9d721a62 SHA512 4c36a71c316a8f5b946668fc160685a293c25a292917baad1345fdbafa5108166cf50343cd5fd3627447b5af5a1cf40848488eb0085708b0ca032ba7c44d4101 WHIRLPOOL 161213b6c2e4b4f9ae4c22bdbea75ae7d142948c53bdd611f237995c6eadc62efc31a86c7d41529967a990ecf4122dd1bcc44e5f94092a379d00dd6ca5900930
diff --git a/dev-util/cookiecutter/cookiecutter-1.5.1.ebuild b/dev-util/cookiecutter/cookiecutter-1.5.1.ebuild
new file mode 100644
index 000000000000..19b53137982d
--- /dev/null
+++ b/dev-util/cookiecutter/cookiecutter-1.5.1.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+
+inherit distutils-r1
+
+DESCRIPTION="Command-line utility to create projects from cookiecutters (project templates)"
+HOMEPAGE="https://github.com/audreyr/cookiecutter"
+
+SRC_URI="https://github.com/audreyr/cookiecutter/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="test"
+
+RDEPEND=">=dev-python/binaryornot-0.2.0[${PYTHON_USEDEP}]
+ >=dev-python/future-0.15.2[${PYTHON_USEDEP}]
+ >=dev-python/jinja-2.7[${PYTHON_USEDEP}]
+ >=dev-python/click-5.0[${PYTHON_USEDEP}]
+ >=dev-python/whichcraft-0.1.1[${PYTHON_USEDEP}]
+ >=dev-python/poyo-0.4.0[${PYTHON_USEDEP}]
+ >=dev-python/jinja2-time-0.1.0[${PYTHON_USEDEP}]
+ dev-python/setuptools[${PYTHON_USEDEP}]"
+
+DEPEND="${RDEPEND}
+ test? (
+ dev-python/pytest[${PYTHON_USEDEP}]
+ >=dev-python/pytest-mock-1.1[${PYTHON_USEDEP}]
+ dev-python/pytest-catchlog[${PYTHON_USEDEP}]
+ dev-python/freezegun[${PYTHON_USEDEP}] )"
+
+DOCS=( README.rst HISTORY.rst CONTRIBUTING.rst )
+
+python_test() {
+ py.test || die
+}
diff --git a/dev-util/cookiecutter/metadata.xml b/dev-util/cookiecutter/metadata.xml
new file mode 100644
index 000000000000..a263231b7fd8
--- /dev/null
+++ b/dev-util/cookiecutter/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>cedk@gentoo.org</email>
+ <name>Cédric Krier</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">audreyr/cookiecutter</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/cppcheck/Manifest b/dev-util/cppcheck/Manifest
new file mode 100644
index 000000000000..f25ff81d884e
--- /dev/null
+++ b/dev-util/cppcheck/Manifest
@@ -0,0 +1,11 @@
+AUX cppcheck-1.75-tinyxml2.patch 2294 SHA256 309309d7af8046e7841c0de02404f804aa09015dfcc6e58c9e8edd48f3fdcf74 SHA512 5eebe4e85649a5e9e0fd312dbaf4284a68327125322f1c6b905ec93b1d445978dd532c4c8c18ad0478f29a50c77761fed1d0ecb2dca3148c0c7c747d391e7f07 WHIRLPOOL 53b8d1b13861f16ab0bc7aa50591a12e8882f190e7917e15931cd88375540cd868b5aec7b79eebbdc1f5f25e187f6bb808e458b019014e8c6edc50ad58864388
+DIST cppcheck-1.77.tar.bz2 1188453 SHA256 1980ffe5c9c24bb6dea24514d42be3aa49d6ba7cc26c448b3543611fe8ba2619 SHA512 df8dddf7758c342d45b3393246e07eaa11a53dca19e8a0d09de04f12ea6232538941328d9ca9ac52eb425871fd1c49d55c77e6e38b40772b6f856fd1e9e99779 WHIRLPOOL 9f7842eba0f53a999993dbd23d09c10e5bd3dcca5ecbb0689e4ded8c7529d84fd939a57ce9cd267cdd21b2d79aeb6c07d672983ccb52be0fcc0b28ca80a31b59
+DIST cppcheck-1.78.tar.bz2 1201959 SHA256 e42696f7d6321b98cb479ad9728d051effe543b26aca8102428f60b9850786b1 SHA512 598556e9d657a3a77ff889cb6647291160017f7f9322326771416ff59d44126ce47c39767657b863cdb8a1b46d7c83bb337ec2fe0574500b37e99c33377b5dd8 WHIRLPOOL 2087ad837353d01bca828af940c427909a3e556e97e46d1822e0f2f527619c87b15d1a7f647992dd46eb3a2ef1eb4fb86344db31d7a01fb6f8a9070dfeecef96
+DIST cppcheck-1.79.tar.bz2 1206623 SHA256 2b85b693de54f15048f1841e7aef74574f99da6270d2182baba78514fa27f06d SHA512 766649b685d60b057752a49eda46f5bb42681c01c32169e83f85ea6f5d3302b572a2d484c1cee1380fd304489d5a32f83eb59a72ceefb1b787031e84bf3a2676 WHIRLPOOL dee33b68c8b924a68b90cbabcd9da6489003fb9f4fc0e2f5d411c82404c666b0c034ca33cc8e4043e4b1d18622158d1dd3de3b8ebd83d52ee01cd3513a39ad26
+EBUILD cppcheck-1.77.ebuild 2194 SHA256 dc079d8e141b85ef9a9360e2553901dfcf95a985f57e3c1683c84951f004a31f SHA512 a1e30c8344d63a466b1d344136b0d553dfaf701bb9e40358ed7b5e64fa8bdff69e79980815e458e8de36843d886a4632b1ccf8f8543a5a6cbca519a718dada6b WHIRLPOOL 48c5ab158e84034bcf7ad3fd0cdcc312766757927beaaa521a1f656050c41b702f3b00c2fd683bca8db6f2b81144eb32cd7d47ec13dc4921abaf31b90d327646
+EBUILD cppcheck-1.78.ebuild 2196 SHA256 a3887ce663e5b77249f8d34abd37535a9c6b5bca9d525a95aaa8780ece35e533 SHA512 4cf2adf39208578543b665f772c144a17698d3633bdf9b019b4b6896dc7703965bf887921dc43100bf5300328673a23daf0c555cc0059d3753527768da529759 WHIRLPOOL db40b7c9e9fa964c601934c54b53e29340d74f9b761bdf1b61d4bc62e7abaa6257da0caa2258f3505af6347beaf95548c5f828d5c53b5370031692845a093ccc
+EBUILD cppcheck-1.79.ebuild 2203 SHA256 4134be2a42148e120b57102bea02556e13e866700b4a7de33068f13fcef68e53 SHA512 f4af48b4d3adb8ae4c8efecc32f29ed249f12da9d8f13ee70700277af3ff33b4bf9387bcd96ca9d4523d03d4cdcdbf729418ee75df90a541a5687435a3d1d0f6 WHIRLPOOL 67fb465ca5c8b23d070599f1516c21e6e0072b5aadc575b726f5e7c7409fdad173468812fce1187a0674aa359ffa998741e50eea17276ef3a74c0b262544ee5c
+EBUILD cppcheck-9999.ebuild 2196 SHA256 b5b9ab11751b82408531d1391190be14ceec633cdbf3a8c4c942965f9daead38 SHA512 5dacbd45a70f2190492a0d3adb92753ac768579ffa2ca9fea5dac74bcde3e3c889465deb3f46248b7a870fdc9dc5853ee721975e2b5f1a4c136564a5d450b9ac WHIRLPOOL c94929ed0c9e18b8e6aca4c8f15e9c28b03aa4ef483a313076d11f58b0dcc0d3e2053fbaa15a8ce1c5d720812708eef9a43e64e7cd59d95334ca8dfc75851cf1
+MISC ChangeLog 5582 SHA256 507ae46ed2c6e07dcd0fead0ffd82651a50b36f2cf2296e5c978178f5696964c SHA512 d16a214991a86f76f11edeed8378c0208c0117cb20a62ce351a63b64ebee778c41f81be7fb021c7c557c197c93f16e727801af05322f0177ce554d1225a1fc13 WHIRLPOOL 24efef1ac7031d3782ab487fa8853463b96112cec85577723edd534aeeec9f77f61c139b184b6e9c81b96212c4f9b4d11b08dc1cc64dfd574a337999bbaf7ad3
+MISC ChangeLog-2015 10993 SHA256 012074ab8ab80f8cce91ceb12de1dcaabf7edc2cd76e3a8ee612c74c7a2f1f05 SHA512 72ce4bdd77ffe3a9bdaf89dbbef5d763fbf43d3ec694bfe8758a5cbfe2bcef11256b8975aa60631145993d032e572135bbe9595d15682329ca222a45412e01c8 WHIRLPOOL ea46d1646fa95ac52158453e7798d9c61dd3c9cdc92a791611a0636b8ced3cf57ed58959e0fe50f40bf064694299045449796b7bf114e807c68a7bddca363c2c
+MISC metadata.xml 397 SHA256 3f1be41c16f6248d0484bb9322303a683ed6fec8e6472bb133353f4cb14d41db SHA512 63aebce854e81f3fb0584e47f75b416f33a6ff8cae55652d952c89b546ef28312ad44ab01113e9bedaf1b1181137930d066344c11773bb263baff7f27b7a313e WHIRLPOOL c5e8fd8dba7da098ebb271a41fdf9ff42840e5868479d8cf49ce5e3ea3c1adf6ff5491594ddc4d21e97afcebe6fd441a08f31ee926f2c75f6b7f36b7fe267a57
diff --git a/dev-util/cppcheck/cppcheck-1.77.ebuild b/dev-util/cppcheck/cppcheck-1.77.ebuild
new file mode 100644
index 000000000000..f4ad03600e8f
--- /dev/null
+++ b/dev-util/cppcheck/cppcheck-1.77.ebuild
@@ -0,0 +1,104 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5} )
+
+inherit distutils-r1 eutils qt4-r2 toolchain-funcs flag-o-matic
+
+DESCRIPTION="static analyzer of C/C++ code"
+HOMEPAGE="http://cppcheck.sourceforge.net"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 ~arm x86"
+IUSE="htmlreport pcre qt4"
+
+RDEPEND="htmlreport? ( dev-python/pygments[${PYTHON_USEDEP}] )
+ >=dev-libs/tinyxml2-2
+ qt4? ( dev-qt/qtgui:4 )
+ pcre? ( dev-libs/libpcre )"
+DEPEND="${RDEPEND}
+ app-text/docbook-xsl-stylesheets
+ dev-libs/libxslt
+ virtual/pkgconfig"
+
+src_prepare() {
+ append-cxxflags -std=c++0x
+
+ # Drop bundled libs, patch Makefile generator and re-run it
+ rm -r externals/tinyxml || die
+ epatch "${FILESDIR}"/${PN}-1.75-tinyxml2.patch
+ tc-export CXX
+ emake dmake
+ ./dmake || die
+
+ default
+}
+
+src_configure() {
+ if use pcre ; then
+ sed -e '/HAVE_RULES=/s:=no:=yes:' \
+ -i Makefile
+ fi
+ if use qt4 ; then
+ pushd gui
+ qt4-r2_src_configure
+ popd
+ fi
+}
+
+src_compile() {
+ export LIBS="$(pkg-config --libs tinyxml2)"
+ emake ${PN} man \
+ CFGDIR="${EROOT}usr/share/${PN}/cfg" \
+ DB2MAN="${EROOT}usr/share/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl"
+
+ if use qt4 ; then
+ pushd gui
+ qt4-r2_src_compile
+ popd
+ fi
+ if use htmlreport ; then
+ pushd htmlreport
+ distutils-r1_src_compile
+ popd
+ fi
+}
+
+src_test() {
+ # safe final version
+ mv -v ${PN}{,.final}
+ mv -v lib/library.o{,.final}
+ mv -v cli/cppcheckexecutor.o{,.final}
+ #trigger recompile with CFGDIR inside ${S}
+ emake check CFGDIR="${S}/cfg"
+ # restore
+ mv -v ${PN}{.final,}
+ mv -v lib/library.o{.final,}
+ mv -v cli/cppcheckexecutor.o{.final,}
+}
+
+src_install() {
+ # it's not autotools-based, so "${ED}" here, not "${D}", bug 531760
+ emake install DESTDIR="${ED}"
+
+ insinto "/usr/share/${PN}/cfg"
+ doins cfg/*.cfg
+ if use qt4 ; then
+ dobin gui/${PN}-gui
+ dodoc gui/{projectfile.txt,gui.${PN}}
+ fi
+ if use htmlreport ; then
+ pushd htmlreport
+ distutils-r1_src_install
+ popd
+ find "${D}" -name "*.egg-info" -delete
+ else
+ rm "${ED}/usr/bin/cppcheck-htmlreport" || die
+ fi
+ doman ${PN}.1
+ dodoc -r triage
+}
diff --git a/dev-util/cppcheck/cppcheck-1.78.ebuild b/dev-util/cppcheck/cppcheck-1.78.ebuild
new file mode 100644
index 000000000000..fcdd220729f1
--- /dev/null
+++ b/dev-util/cppcheck/cppcheck-1.78.ebuild
@@ -0,0 +1,104 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5} )
+
+inherit distutils-r1 eutils qt4-r2 toolchain-funcs flag-o-matic
+
+DESCRIPTION="static analyzer of C/C++ code"
+HOMEPAGE="http://cppcheck.sourceforge.net"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="htmlreport pcre qt4"
+
+RDEPEND="htmlreport? ( dev-python/pygments[${PYTHON_USEDEP}] )
+ >=dev-libs/tinyxml2-2
+ qt4? ( dev-qt/qtgui:4 )
+ pcre? ( dev-libs/libpcre )"
+DEPEND="${RDEPEND}
+ app-text/docbook-xsl-stylesheets
+ dev-libs/libxslt
+ virtual/pkgconfig"
+
+src_prepare() {
+ append-cxxflags -std=c++0x
+
+ # Drop bundled libs, patch Makefile generator and re-run it
+ rm -r externals/tinyxml || die
+ epatch "${FILESDIR}"/${PN}-1.75-tinyxml2.patch
+ tc-export CXX
+ emake dmake
+ ./dmake || die
+
+ default
+}
+
+src_configure() {
+ if use pcre ; then
+ sed -e '/HAVE_RULES=/s:=no:=yes:' \
+ -i Makefile
+ fi
+ if use qt4 ; then
+ pushd gui
+ qt4-r2_src_configure
+ popd
+ fi
+}
+
+src_compile() {
+ export LIBS="$(pkg-config --libs tinyxml2)"
+ emake ${PN} man \
+ CFGDIR="${EROOT}usr/share/${PN}/cfg" \
+ DB2MAN="${EROOT}usr/share/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl"
+
+ if use qt4 ; then
+ pushd gui
+ qt4-r2_src_compile
+ popd
+ fi
+ if use htmlreport ; then
+ pushd htmlreport
+ distutils-r1_src_compile
+ popd
+ fi
+}
+
+src_test() {
+ # safe final version
+ mv -v ${PN}{,.final}
+ mv -v lib/library.o{,.final}
+ mv -v cli/cppcheckexecutor.o{,.final}
+ #trigger recompile with CFGDIR inside ${S}
+ emake check CFGDIR="${S}/cfg"
+ # restore
+ mv -v ${PN}{.final,}
+ mv -v lib/library.o{.final,}
+ mv -v cli/cppcheckexecutor.o{.final,}
+}
+
+src_install() {
+ # it's not autotools-based, so "${ED}" here, not "${D}", bug 531760
+ emake install DESTDIR="${ED}"
+
+ insinto "/usr/share/${PN}/cfg"
+ doins cfg/*.cfg
+ if use qt4 ; then
+ dobin gui/${PN}-gui
+ dodoc gui/{projectfile.txt,gui.${PN}}
+ fi
+ if use htmlreport ; then
+ pushd htmlreport
+ distutils-r1_src_install
+ popd
+ find "${D}" -name "*.egg-info" -delete
+ else
+ rm "${ED}/usr/bin/cppcheck-htmlreport" || die
+ fi
+ doman ${PN}.1
+ dodoc -r triage
+}
diff --git a/dev-util/cppcheck/cppcheck-1.79.ebuild b/dev-util/cppcheck/cppcheck-1.79.ebuild
new file mode 100644
index 000000000000..04500dfcb915
--- /dev/null
+++ b/dev-util/cppcheck/cppcheck-1.79.ebuild
@@ -0,0 +1,104 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5} )
+
+inherit distutils-r1 eutils qt4-r2 toolchain-funcs flag-o-matic
+
+DESCRIPTION="static analyzer of C/C++ code"
+HOMEPAGE="http://cppcheck.sourceforge.net"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+IUSE="htmlreport pcre qt4"
+
+RDEPEND="htmlreport? ( dev-python/pygments[${PYTHON_USEDEP}] )
+ >=dev-libs/tinyxml2-2
+ qt4? ( dev-qt/qtgui:4 )
+ pcre? ( dev-libs/libpcre )"
+DEPEND="${RDEPEND}
+ app-text/docbook-xsl-stylesheets
+ dev-libs/libxslt
+ virtual/pkgconfig"
+
+src_prepare() {
+ append-cxxflags -std=c++0x
+
+ # Drop bundled libs, patch Makefile generator and re-run it
+ rm -r externals/tinyxml || die
+ epatch "${FILESDIR}"/${PN}-1.75-tinyxml2.patch
+ tc-export CXX
+ emake dmake
+ ./dmake || die
+
+ default
+}
+
+src_configure() {
+ if use pcre ; then
+ sed -e '/HAVE_RULES=/s:=no:=yes:' \
+ -i Makefile
+ fi
+ if use qt4 ; then
+ pushd gui
+ qt4-r2_src_configure
+ popd
+ fi
+}
+
+src_compile() {
+ export LIBS="$(pkg-config --libs tinyxml2)"
+ emake ${PN} man \
+ CFGDIR="${EROOT}usr/share/${PN}/cfg" \
+ DB2MAN="${EROOT}usr/share/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl"
+
+ if use qt4 ; then
+ pushd gui
+ qt4-r2_src_compile
+ popd
+ fi
+ if use htmlreport ; then
+ pushd htmlreport
+ distutils-r1_src_compile
+ popd
+ fi
+}
+
+src_test() {
+ # safe final version
+ mv -v ${PN}{,.final}
+ mv -v lib/library.o{,.final}
+ mv -v cli/cppcheckexecutor.o{,.final}
+ #trigger recompile with CFGDIR inside ${S}
+ emake check CFGDIR="${S}/cfg"
+ # restore
+ mv -v ${PN}{.final,}
+ mv -v lib/library.o{.final,}
+ mv -v cli/cppcheckexecutor.o{.final,}
+}
+
+src_install() {
+ # it's not autotools-based, so "${ED}" here, not "${D}", bug 531760
+ emake install DESTDIR="${ED}"
+
+ insinto "/usr/share/${PN}/cfg"
+ doins cfg/*.cfg
+ if use qt4 ; then
+ dobin gui/${PN}-gui
+ dodoc gui/{projectfile.txt,gui.${PN}}
+ fi
+ if use htmlreport ; then
+ pushd htmlreport
+ distutils-r1_src_install
+ popd
+ find "${D}" -name "*.egg-info" -delete
+ else
+ rm "${ED}/usr/bin/cppcheck-htmlreport" || die
+ fi
+ doman ${PN}.1
+ dodoc -r triage
+}
diff --git a/dev-util/cppcheck/cppcheck-9999.ebuild b/dev-util/cppcheck/cppcheck-9999.ebuild
new file mode 100644
index 000000000000..529f5e6fadc3
--- /dev/null
+++ b/dev-util/cppcheck/cppcheck-9999.ebuild
@@ -0,0 +1,104 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5} )
+
+inherit distutils-r1 eutils qt4-r2 toolchain-funcs flag-o-matic git-r3
+
+DESCRIPTION="static analyzer of C/C++ code"
+HOMEPAGE="http://cppcheck.sourceforge.net"
+EGIT_REPO_URI="https://github.com/danmar/cppcheck.git"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS=""
+IUSE="htmlreport pcre qt4"
+
+RDEPEND="htmlreport? ( dev-python/pygments[${PYTHON_USEDEP}] )
+ >=dev-libs/tinyxml2-2
+ qt4? ( dev-qt/qtgui:4 )
+ pcre? ( dev-libs/libpcre )"
+DEPEND="${RDEPEND}
+ app-text/docbook-xsl-stylesheets
+ dev-libs/libxslt
+ virtual/pkgconfig"
+
+src_prepare() {
+ append-cxxflags -std=c++0x
+
+ # Drop bundled libs, patch Makefile generator and re-run it
+ rm -r externals/tinyxml || die
+ epatch "${FILESDIR}"/${PN}-1.75-tinyxml2.patch
+ tc-export CXX
+ emake dmake
+ ./dmake || die
+
+ epatch_user
+}
+
+src_configure() {
+ if use pcre ; then
+ sed -e '/HAVE_RULES=/s:=no:=yes:' \
+ -i Makefile
+ fi
+ if use qt4 ; then
+ pushd gui
+ qt4-r2_src_configure
+ popd
+ fi
+}
+
+src_compile() {
+ export LIBS="$(pkg-config --libs tinyxml2)"
+ emake ${PN} man \
+ CFGDIR="${EROOT}usr/share/${PN}/cfg" \
+ DB2MAN="${EROOT}usr/share/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl"
+
+ if use qt4 ; then
+ pushd gui
+ qt4-r2_src_compile
+ popd
+ fi
+ if use htmlreport ; then
+ pushd htmlreport
+ distutils-r1_src_compile
+ popd
+ fi
+}
+
+src_test() {
+ # safe final version
+ mv -v ${PN}{,.final}
+ mv -v lib/library.o{,.final}
+ mv -v cli/cppcheckexecutor.o{,.final}
+ #trigger recompile with CFGDIR inside ${S}
+ emake check CFGDIR="${S}/cfg"
+ # restore
+ mv -v ${PN}{.final,}
+ mv -v lib/library.o{.final,}
+ mv -v cli/cppcheckexecutor.o{.final,}
+}
+
+src_install() {
+ # it's not autotools-based, so "${ED}" here, not "${D}", bug 531760
+ emake install DESTDIR="${ED}"
+
+ insinto "/usr/share/${PN}/cfg"
+ doins cfg/*.cfg
+ if use qt4 ; then
+ dobin gui/${PN}-gui
+ dodoc gui/{projectfile.txt,gui.${PN}}
+ fi
+ if use htmlreport ; then
+ pushd htmlreport
+ distutils-r1_src_install
+ popd
+ find "${D}" -name "*.egg-info" -delete
+ else
+ rm "${ED}/usr/bin/cppcheck-htmlreport" || die
+ fi
+ doman ${PN}.1
+ dodoc -r triage
+}
diff --git a/dev-util/cppcheck/files/cppcheck-1.75-tinyxml2.patch b/dev-util/cppcheck/files/cppcheck-1.75-tinyxml2.patch
new file mode 100644
index 000000000000..9d8558466595
--- /dev/null
+++ b/dev-util/cppcheck/files/cppcheck-1.75-tinyxml2.patch
@@ -0,0 +1,55 @@
+--- cppcheck-9999/gui/gui.pro
++++ cppcheck-9999/gui/gui.pro
+@@ -19,6 +19,7 @@
+ DEFINES += CPPCHECKLIB_IMPORT
+ }
+ LIBS += -L$$PWD/../externals
++LIBS += `pkg-config --libs tinyxml2`
+
+ DESTDIR = .
+ RCC_DIR = temp
+--- cppcheck-9999/tools/dmake.cpp
++++ cppcheck-9999/tools/dmake.cpp
+@@ -123,7 +123,6 @@
+
+ std::vector<std::string> extfiles;
+ extfiles.push_back("externals/simplecpp/simplecpp.cpp");
+- extfiles.push_back("externals/tinyxml/tinyxml2.cpp");
+
+ std::vector<std::string> clifiles;
+ getCppFiles(clifiles, "cli/", false);
+@@ -172,7 +171,6 @@
+ std::ofstream fout1("test/testfiles.pri");
+ if (fout1.is_open()) {
+ fout1 << "# no manual edits - this file is autogenerated by dmake\n\n";
+- fout1 << "INCLUDEPATH += ../externals/tinyxml\n";
+ fout1 << "\n\nSOURCES += ";
+ for (unsigned int i = 0; i < testfiles.size(); ++i) {
+ const std::string filename(testfiles[i].substr(5));
+@@ -337,9 +335,9 @@
+ << "endif\n\n";
+
+ makeConditionalVariable(fout, "PREFIX", "/usr");
+- makeConditionalVariable(fout, "INCLUDE_FOR_LIB", "-Ilib -Iexternals/simplecpp -Iexternals/tinyxml");
+- makeConditionalVariable(fout, "INCLUDE_FOR_CLI", "-Ilib -Iexternals/simplecpp -Iexternals/tinyxml");
+- makeConditionalVariable(fout, "INCLUDE_FOR_TEST", "-Ilib -Icli -Iexternals/simplecpp -Iexternals/tinyxml");
++ makeConditionalVariable(fout, "INCLUDE_FOR_LIB", "-Ilib -Iexternals/simplecpp");
++ makeConditionalVariable(fout, "INCLUDE_FOR_CLI", "-Ilib -Iexternals/simplecpp");
++ makeConditionalVariable(fout, "INCLUDE_FOR_TEST", "-Ilib -Icli -Iexternals/simplecpp");
+
+ fout << "BIN=$(DESTDIR)$(PREFIX)/bin\n\n";
+ fout << "# For 'make man': sudo apt-get install xsltproc docbook-xsl docbook-xml on Linux\n";
+--- cppcheck-9999/externals/externals.pri
++++ cppcheck-9999/externals/externals.pri
+@@ -1,8 +1,5 @@
+-INCLUDEPATH += $${PWD}/simplecpp \
+- $${PWD}/tinyxml
++INCLUDEPATH += $${PWD}/simplecpp
+
+-HEADERS += $${PWD}/simplecpp/simplecpp.h \
+- $${PWD}/tinyxml/tinyxml2.h
++HEADERS += $${PWD}/simplecpp/simplecpp.h
+
+-SOURCES += $${PWD}/simplecpp/simplecpp.cpp \
+- $${PWD}/tinyxml/tinyxml2.cpp
++SOURCES += $${PWD}/simplecpp/simplecpp.cpp
diff --git a/dev-util/cppcheck/metadata.xml b/dev-util/cppcheck/metadata.xml
new file mode 100644
index 000000000000..3bf4b78228a1
--- /dev/null
+++ b/dev-util/cppcheck/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>xmw@gentoo.org</email>
+ <name>Michael Weber</name>
+ </maintainer>
+ <use>
+ <flag name="htmlreport">install cppcheck-htmlreport</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">cppcheck</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/cppi/Manifest b/dev-util/cppi/Manifest
new file mode 100644
index 000000000000..1379db30fc7d
--- /dev/null
+++ b/dev-util/cppi/Manifest
@@ -0,0 +1,5 @@
+DIST cppi-1.18.tar.xz 515664 SHA256 12a505b98863f6c5cf1f749f9080be3b42b3eac5a35b59630e67bea7241364ca SHA512 eec4f67d857680c763802b04c3964ad12505dcffe80f12567a729bea30fdd459f99af0e0f6a8179952bb356b5dd753d862782bb3950fa07e54ffe723565df7de WHIRLPOOL 752b37a25de5110b1190d1327bf5b22a076a2a0c9cf6397f24048a2b05e07d197790e9bdcf958904383ca0f459e5236d903fde1026dce93fba0d8eafa707399d
+EBUILD cppi-1.18.ebuild 574 SHA256 716cb7a2980f0154923a60e27d40bdebf5ef0bef1621c727e280c00bf4bc8c74 SHA512 5e1bc60ef648d5fe7480f5d39da8b9a240365d17b2d3e81bcf3a2bac93db6255e2946f7d83ba40a545b415dea117ddf28e5ba630cf729a03e18c76d9ee8701c8 WHIRLPOOL b8a7e96ec0bf95567476cb03dbeb097e4e34d208e97b64e8b689e0f9d78b6b4020aa2c090815048970e0df527fcbc8f3fee525a63610d60c16c7bcdd5e7b452e
+MISC ChangeLog 2267 SHA256 f4b6739a5a1dc118c4baad1ed44e4969ba2f583ddd79dc17e6ec9a48ee682ae1 SHA512 4fd44444ca810797ec48b07175bd9b44e7ead8181a11d88b6794a5aea4c2fc88fb99597363113a393f1942113aed50ff7d002bcbb5c3b450d043f26bfd6dc07c WHIRLPOOL 8d890b652ae1a977af97b5974d9fce28f7e5726d546ce9058bfdeaa9b7be03484624dae4a64c14e3e27d244486ff5b433abc2ae7cff372f0e7b76906d4cd12b7
+MISC ChangeLog-2015 1846 SHA256 86ee8197a4a2aac41db7775b06d019fda79c7bd8df50c6b888bb62d788524b5e SHA512 86d6e974292704b3c348251469cd49e328d02d197f9830657880b33dc0f403a240568f253627ee21c5bd80948d456f81d0808ccc970b888b4c2e93378cc02dd5 WHIRLPOOL 5ba37b175db87646f965c933fb9902996f2d7530001dd570755866828efd67212e3203a7ec1507ddb0786a545c580eaaf33caff75e332447637f126558ec797b
+MISC metadata.xml 240 SHA256 58d315d79d6b07d798e12d1f8f2481ca4eb03b71d430e68989603732bcd392c8 SHA512 25affa2d6d2fe48707ae81553343451aff9797885b4232e73973a29d4cc1d28a937d024cefca49f92383f01eb8cb811546cd2334cbb78f8e66f1db1f63ff4572 WHIRLPOOL 7d0fb1efdaf8bcd6f9a04c6f8635a1071bd50e6b223334139c275d55fabf5ad9e93390120ea7c823495048176a74f66b6dd09d3ffabc9a6e67f63cae2af73f24
diff --git a/dev-util/cppi/cppi-1.18.ebuild b/dev-util/cppi/cppi-1.18.ebuild
new file mode 100644
index 000000000000..899b2b873c8f
--- /dev/null
+++ b/dev-util/cppi/cppi-1.18.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+DESCRIPTION="a cpp directive indenter"
+HOMEPAGE="https://savannah.gnu.org/projects/cppi"
+SRC_URI="mirror://gnu/${PN}/${P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="nls"
+
+CPPI_LINGUAS="de eo fi fr hr it ja pl sr sv uk vi"
+for lingua in ${CPPI_LINGUAS}; do
+ IUSE+=" linguas_${lingua}"
+done
+
+DEPEND="
+ app-arch/xz-utils
+ nls? ( sys-devel/gettext )
+"
+
+DOCS=( AUTHORS ChangeLog NEWS THANKS TODO )
+
+src_configure() {
+ econf $(use_enable nls)
+}
diff --git a/dev-util/cppi/metadata.xml b/dev-util/cppi/metadata.xml
new file mode 100644
index 000000000000..f9f8bbfd9405
--- /dev/null
+++ b/dev-util/cppi/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>jer@gentoo.org</email>
+ <name>Jeroen Roovers</name>
+</maintainer>
+</pkgmetadata>
diff --git a/dev-util/cpptest/Manifest b/dev-util/cpptest/Manifest
new file mode 100644
index 000000000000..9eb9aa028bef
--- /dev/null
+++ b/dev-util/cpptest/Manifest
@@ -0,0 +1,5 @@
+DIST cpptest-1.1.2.tar.gz 458982 SHA256 9e4fdf156b709397308536eb6b921e3aea1f463c6613f9a0c1dfec9614386027 SHA512 da1030c69a5886e752b9ae08b65c501334c7d2d4abd2174190209ce11ed351239a615b9f7c5019ee601289523b2c21a1205d2042e59aea6c2882d77d636fc57a WHIRLPOOL f68e7b3c3a3944f5d41792ddd0dcc2d521ed0ec25b0aeae7cba7fb2c6c82bbd7a6d3a96981d3df885ef730ac1c3a7fc46a97386b984de1be08b7f1f1d39eab48
+EBUILD cpptest-1.1.2.ebuild 580 SHA256 008ba7845ef12c74bc72741130d32b08edbeb40d4b5d1429076ccdf8d5d08ea9 SHA512 b0bdaece8a05ccc1b5ca6510daf7570260cd4c618abed59f2f765e5067328ac99ddc13068f4709112c765b3ecc0759f2fcc18a70835ecdfdd2a68eb87c17d7d5 WHIRLPOOL 4e6a0e894a44571c277f16a9d6cc606ce4ef929b1631114bf67c8d903d273e5f20f7278154d3fd05fee660395ccc89dd869c31c80cacc77c298d8114f81404d7
+MISC ChangeLog 2176 SHA256 737953e8dbca9f09f7282b54aaaa78cdd8f8bfd8c5a2aefa01dc4cb276d06b9c SHA512 a21e7df189d02f8510b137d50e8aefc5b98795cc1191a411b51f98b5ed8f3eeb04ce012cbbdadeee021f783eae7d6cbf9b2130bc92e422e32a61b5eb91575957 WHIRLPOOL e95e351af430d2c3f853b9f9e5258e7c47899bd2de6ce73d3d640254248a5213589d0a78208a1469766458e2c7b75ae5e3261efa22da5d51e0902078b594e472
+MISC ChangeLog-2015 2831 SHA256 9396afe6cbb78c3319afc47f1d003bd17d60cb08df87089b7d48f58d3ebe5d01 SHA512 251967ec9a3a9cc7c9760dfd2d29add5cc9d97cfe6492b137388823d2eac0fd2fd70e69f7275740571393824634cca59a82c2a69687b06b2143ed3567aa486e7 WHIRLPOOL 3e34c61e12c1ce682e331a4d22767e78d288f0b304a629d6d03fe6f3dedeb03233dbe1b48d7c17c8c88c3c22d35292b21c406643f70b622c6e9ce651e2adb73a
+MISC metadata.xml 604 SHA256 60a7e4f5c0ee4363090fa564b9494cb20f1764984f5fee8de60d07f36f33bc9d SHA512 7df99419d82f5c714e2c941f810e3a930569045299b63dd9c2eb851628124c410afd30cc1aeac52ddb651e1e48ae8f41727f02c856b0f5a01d16aec318aa82dd WHIRLPOOL a372e4ee59029e4745f9df54d38e40cd042b35470ea6ef056e9761d4b3c59df36e8eba4a73bd8ad643c29a037dd1f7d780fcc05aba0fc8d341726ead43fe89b7
diff --git a/dev-util/cpptest/cpptest-1.1.2.ebuild b/dev-util/cpptest/cpptest-1.1.2.ebuild
new file mode 100644
index 000000000000..4dce91f1de21
--- /dev/null
+++ b/dev-util/cpptest/cpptest-1.1.2.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+inherit eutils
+
+DESCRIPTION="Simple but powerful unit testing framework for C++"
+HOMEPAGE="http://cpptest.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="amd64 ppc ppc64 x86"
+IUSE="doc"
+
+DEPEND="doc? ( app-doc/doxygen )"
+RDEPEND=""
+
+DOCS=( AUTHORS BUGS NEWS README )
+
+src_configure() {
+ econf \
+ $(use_enable doc) \
+ --htmldir=/usr/share/doc/${PF}/html/
+}
+
+src_install() {
+ default
+ prune_libtool_files
+}
diff --git a/dev-util/cpptest/metadata.xml b/dev-util/cpptest/metadata.xml
new file mode 100644
index 000000000000..42e4ae1c3bb8
--- /dev/null
+++ b/dev-util/cpptest/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>sping@gentoo.org</email>
+ <name>Sebastian Pipping</name>
+ </maintainer>
+ <longdescription lang="en">
+ CppTest is a portable and powerful, yet simple, unit testing framework for handling
+ automated tests in C++. The focus lies on usability and extendability.
+ Several output formats are supported and new ones are easily added.
+ </longdescription>
+ <upstream>
+ <remote-id type="sourceforge">cpptest</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/cppunit/Manifest b/dev-util/cppunit/Manifest
new file mode 100644
index 000000000000..ead16d7b342b
--- /dev/null
+++ b/dev-util/cppunit/Manifest
@@ -0,0 +1,10 @@
+DIST cppunit-1.13.1.tar.gz 841334 SHA256 d5b9f3ffc9f1634d75b20b54f48c02e0817bca6afa1d5160b244889d6bff8e0f SHA512 3b588dd0ed35eca1dec1a7dcf21da40307b1da26d8e29a26a2fcb16cd4ba7e4dfdf58b6c3d537af2ad127c418b11ba62a1168312abb200d5aab8cb8475766a9d WHIRLPOOL 412bf0c5fe4437b694b89845f7ef29a564e4072890d4f5bacb657abbdc518e322b5db351f1ad123af403eef8a823439fdb1b2086c3e4c151076489c077d280d7
+DIST cppunit-1.13.2.tar.gz 953596 SHA256 3f47d246e3346f2ba4d7c9e882db3ad9ebd3fcbd2e8b732f946e0e3eeb9f429f SHA512 8f4be569f321d577cec31931f49f4df143bc94e283605509b6ea50c60690aa91a2aed940e7eebd4b2413a4218f9a6c3978d312d8e587eab040283c6563846ecd WHIRLPOOL 13a76b2b4e999e46e90ab56a5b40e1a3fd4e42f15c083b6b5beb8e0d476a3d5162cafa6c906c931d9877a8ebc544077ab66712f2d8920238951b36862bcc949d
+DIST cppunit-1.14.0.tar.gz 959716 SHA256 3d569869d27b48860210c758c4f313082103a5e58219a7669b52bfd29d674780 SHA512 4ea1da423c6f7ab37e4144689f593396829ce74d43872d6b10709c1ad5fbda4ee945842f7e9803592520ef81ac713e95a3fe130295bf048cd32a605d1959882e WHIRLPOOL c6f0c1a26c683b6cd4449943a5eaa7154242a85980d21614ac56e78d20d9a05cbf92e1b49db236b7d97dee0ede16ca53c21f1e7f70152352a9caed865c54313f
+EBUILD cppunit-1.13.1.ebuild 1519 SHA256 fd15d454a73ba150e88e9ee8d8d432214a48a2ac6b4df5fa11808fc6b4f43717 SHA512 828a553548f581e0de5c161e1c113943a87b4ce7a53389e6d0bdee808ac4acf75acef2c393a41cf142aaeccef1732f618a99500a91dc400a9c00f43f2b1362b5 WHIRLPOOL 137dc4199c0fc2f1a5efed21dd643234de57b8f05ee4742277d149d32cd303609accede0f0af94e7b01fcd7ef4eeb18774b443e778aebeb8387b3eb329c0fcc2
+EBUILD cppunit-1.13.2-r2.ebuild 1727 SHA256 c1d99e176b77e6bd9f9b6da9281d611c653d3ee22a933f1368f729900e861858 SHA512 1bff7dfb467e8cbd8b3ab440cfd0755cc7ca99824acfc729f579a3eb528947acb9cffcd7d9429853e3b8974cc5c9614da9edb5f7dd7826c7b8f09769d2036780 WHIRLPOOL 6c311619bf54174de92ca4f7ed7d532b17f324ed9ba6f69353a1472557db967c5a1bb027dbb63ba85787b7ec3ecddafe078380577579021966c25fd51039f26a
+EBUILD cppunit-1.14.0.ebuild 1736 SHA256 4d44acb337f4df508f8447f853a71a5e27b3d315e1c8f92873dd8907c8d5c2d5 SHA512 38b35d01aa20d7e1c28832403a002b174ba44b656b5ba0f400972907b10bef5e94cc88292dd442aa2c59881e46fb0b8c98bad5d8cbaec93b29a3b7b38cfd6afb WHIRLPOOL 9437e1936132f512d04ecaa993c5a480ff3889b9371286deef6fcd377f7738632b879bdbe869770cfc601a59bdad85f6da1fad14d19b111ff7f559e9b2320762
+EBUILD cppunit-9999.ebuild 1736 SHA256 4d44acb337f4df508f8447f853a71a5e27b3d315e1c8f92873dd8907c8d5c2d5 SHA512 38b35d01aa20d7e1c28832403a002b174ba44b656b5ba0f400972907b10bef5e94cc88292dd442aa2c59881e46fb0b8c98bad5d8cbaec93b29a3b7b38cfd6afb WHIRLPOOL 9437e1936132f512d04ecaa993c5a480ff3889b9371286deef6fcd377f7738632b879bdbe869770cfc601a59bdad85f6da1fad14d19b111ff7f559e9b2320762
+MISC ChangeLog 3378 SHA256 16187aebce2bf25d1f7e330bf9b5c9733d1b283b8cb09a8fa0fae6737347c230 SHA512 d4521d7ddeccdf101eade5fa99a0328f6f46c53c22ca25f409f6117e7ab7d3c7851d95683e9ba56126bdd3123e004402d0af78a82247b5676f6bf2be730668b7 WHIRLPOOL bfc13262aeae6cd386be199b42031ce7e927f9ede918432c1c0efaee21659f26fe260c9201f7abfd7d2735645e99b1fcfc1d5e154e2cac179f9c5431a2e4b63e
+MISC ChangeLog-2015 13184 SHA256 e138720616849a354c0bac4f3d57861464d4655fc31a0b12e036cda7ce81598d SHA512 d9f733500be94d8cf4a650fcf4112fab8cd10cf7ac0f10d2d75de03cbd9eff4527d7ef6d3831574a08d97b492508a4f47a1e7e642d8a62fd68364df06e74b7de WHIRLPOOL 408375ce59fd7c2a693b396a831aa2bf3198221803785b9183f1ba28944c3e08731379d807cd4a910f09f045d4fc77120fdc55414b32946ff3d5f741c499584b
+MISC metadata.xml 245 SHA256 2d55ae4b33723b881e2cd48221560da36aec5b304b8bf2b440a9e2588875dba9 SHA512 b098db4fb4d9ea116f6246bc6caf0f49e80e236d2fad78d287b638dbd5add7bfaf7feb1ca081ca557b23dde9227ce42fa808f3f6fd8eaba6a7e9cae93342f9c6 WHIRLPOOL edd2e34ed3775c96bf085c9c0a95bd448028cb5ba6a2bfa7d7253b54878c888b62fa579483265c47c2602ca454fd656d32346eaa7351067cc3a36295d1e1e861
diff --git a/dev-util/cppunit/cppunit-1.13.1.ebuild b/dev-util/cppunit/cppunit-1.13.1.ebuild
new file mode 100644
index 000000000000..3384ff90fa8d
--- /dev/null
+++ b/dev-util/cppunit/cppunit-1.13.1.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+EGIT_REPO_URI="https://anongit.freedesktop.org/git/libreoffice/cppunit.git"
+[[ ${PV} = 9999 ]] && inherit git-2 autotools
+inherit eutils flag-o-matic
+
+DESCRIPTION="C++ port of the famous JUnit framework for unit testing"
+HOMEPAGE="https://www.freedesktop.org/wiki/Software/cppunit"
+[[ ${PV} = 9999 ]] || SRC_URI="https://dev-www.libreoffice.org/src/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+# Don't move KEYWORDS on the previous line or ekeyword won't work # 399061
+[[ ${PV} = 9999 ]] || \
+KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+IUSE="doc examples static-libs"
+
+RDEPEND=""
+DEPEND="${RDEPEND}
+ doc? (
+ app-doc/doxygen[dot]
+ media-gfx/graphviz
+ )"
+
+DOCS=( AUTHORS BUGS NEWS README THANKS TODO doc/FAQ )
+[[ ${PV} = 9999 ]] || DOCS+=( ChangeLog )
+
+src_prepare() {
+ [[ ${PV} = 9999 ]] && eautoreconf
+}
+
+src_configure() {
+ # Anything else than -O0 breaks on alpha
+ use alpha && replace-flags "-O?" -O0
+
+ econf \
+ $(use_enable static-libs static) \
+ $(use_enable doc doxygen) \
+ $(use_enable doc dot) \
+ --docdir="${EPREFIX}"/usr/share/doc/${PF} \
+ --htmldir="${EPREFIX}"/usr/share/doc/${PF}/html \
+ --disable-silent-rules
+}
+
+src_install() {
+ default
+
+ prune_libtool_files --all
+
+ if use examples ; then
+ find examples -iname "*.o" -delete
+ insinto /usr/share/${PN}
+ doins -r examples
+ fi
+}
diff --git a/dev-util/cppunit/cppunit-1.13.2-r2.ebuild b/dev-util/cppunit/cppunit-1.13.2-r2.ebuild
new file mode 100644
index 000000000000..753684a176d2
--- /dev/null
+++ b/dev-util/cppunit/cppunit-1.13.2-r2.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+EGIT_REPO_URI="https://anongit.freedesktop.org/git/libreoffice/cppunit.git"
+[[ ${PV} = 9999 ]] && inherit git-r3 autotools
+inherit eutils flag-o-matic multilib-minimal
+
+DESCRIPTION="C++ port of the famous JUnit framework for unit testing"
+HOMEPAGE="https://www.freedesktop.org/wiki/Software/cppunit"
+[[ ${PV} = 9999 ]] || SRC_URI="https://dev-www.libreoffice.org/src/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+# Don't move KEYWORDS on the previous line or ekeyword won't work # 399061
+[[ ${PV} = 9999 ]] || \
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 ~s390 sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+IUSE="doc examples static-libs"
+
+RDEPEND=""
+DEPEND="${RDEPEND}
+ doc? (
+ app-doc/doxygen[dot]
+ media-gfx/graphviz
+ )"
+
+DOCS=( AUTHORS BUGS NEWS README THANKS TODO doc/FAQ )
+[[ ${PV} = 9999 ]] || DOCS+=( ChangeLog )
+
+MULTILIB_CHOST_TOOLS=(
+ /usr/bin/cppunit-config
+)
+
+src_prepare() {
+ [[ ${PV} = 9999 ]] && eautoreconf
+}
+
+src_configure() {
+ # Anything else than -O0 breaks on alpha
+ use alpha && replace-flags "-O?" -O0
+
+ multilib-minimal_src_configure
+}
+
+multilib_src_configure() {
+ ECONF_SOURCE=${S} \
+ econf \
+ $(use_enable static-libs static) \
+ $(multilib_native_use_enable doc doxygen) \
+ $(multilib_native_use_enable doc dot) \
+ --docdir="${EPREFIX}"/usr/share/doc/${PF} \
+ --htmldir="${EPREFIX}"/usr/share/doc/${PF}/html \
+ --disable-silent-rules
+}
+
+multilib_src_install_all() {
+ einstalldocs
+ prune_libtool_files --all
+
+ if use examples ; then
+ find examples -iname "*.o" -delete
+ insinto /usr/share/${PN}
+ doins -r examples
+ fi
+}
diff --git a/dev-util/cppunit/cppunit-1.14.0.ebuild b/dev-util/cppunit/cppunit-1.14.0.ebuild
new file mode 100644
index 000000000000..6df8af21bf91
--- /dev/null
+++ b/dev-util/cppunit/cppunit-1.14.0.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+EGIT_REPO_URI="https://anongit.freedesktop.org/git/libreoffice/cppunit.git"
+[[ ${PV} = 9999 ]] && inherit git-r3 autotools
+inherit flag-o-matic multilib-minimal
+
+DESCRIPTION="C++ port of the famous JUnit framework for unit testing"
+HOMEPAGE="https://www.freedesktop.org/wiki/Software/cppunit"
+[[ ${PV} = 9999 ]] || SRC_URI="https://dev-www.libreoffice.org/src/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+# Don't move KEYWORDS on the previous line or ekeyword won't work # 399061
+[[ ${PV} = 9999 ]] || \
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+IUSE="doc examples static-libs"
+
+RDEPEND=""
+DEPEND="${RDEPEND}
+ doc? (
+ app-doc/doxygen[dot]
+ media-gfx/graphviz
+ )
+"
+
+DOCS=( AUTHORS BUGS NEWS README THANKS TODO doc/FAQ )
+[[ ${PV} = 9999 ]] || DOCS+=( ChangeLog )
+
+src_prepare() {
+ default
+ [[ ${PV} = 9999 ]] && eautoreconf
+}
+
+src_configure() {
+ # Anything else than -O0 breaks on alpha
+ use alpha && replace-flags "-O?" -O0
+
+ multilib-minimal_src_configure
+}
+
+multilib_src_configure() {
+ ECONF_SOURCE=${S} \
+ econf \
+ $(use_enable static-libs static) \
+ $(multilib_native_use_enable doc doxygen) \
+ $(multilib_native_use_enable doc dot) \
+ --disable-werror
+}
+
+multilib_src_install_all() {
+ if use doc; then
+ mv "${ED%/}"/usr/share/${PN}/html "${ED%/}"/usr/share/doc/${PF} || die
+ rm -r "${ED%/}"/usr/share/${PN} || die
+ fi
+ einstalldocs
+
+ find "${D}" -name '*.la' -delete || die
+
+ if use examples ; then
+ find examples -iname "*.o" -delete
+ insinto /usr/share/${PN}
+ doins -r examples
+ fi
+}
diff --git a/dev-util/cppunit/cppunit-9999.ebuild b/dev-util/cppunit/cppunit-9999.ebuild
new file mode 100644
index 000000000000..6df8af21bf91
--- /dev/null
+++ b/dev-util/cppunit/cppunit-9999.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+EGIT_REPO_URI="https://anongit.freedesktop.org/git/libreoffice/cppunit.git"
+[[ ${PV} = 9999 ]] && inherit git-r3 autotools
+inherit flag-o-matic multilib-minimal
+
+DESCRIPTION="C++ port of the famous JUnit framework for unit testing"
+HOMEPAGE="https://www.freedesktop.org/wiki/Software/cppunit"
+[[ ${PV} = 9999 ]] || SRC_URI="https://dev-www.libreoffice.org/src/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+# Don't move KEYWORDS on the previous line or ekeyword won't work # 399061
+[[ ${PV} = 9999 ]] || \
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+IUSE="doc examples static-libs"
+
+RDEPEND=""
+DEPEND="${RDEPEND}
+ doc? (
+ app-doc/doxygen[dot]
+ media-gfx/graphviz
+ )
+"
+
+DOCS=( AUTHORS BUGS NEWS README THANKS TODO doc/FAQ )
+[[ ${PV} = 9999 ]] || DOCS+=( ChangeLog )
+
+src_prepare() {
+ default
+ [[ ${PV} = 9999 ]] && eautoreconf
+}
+
+src_configure() {
+ # Anything else than -O0 breaks on alpha
+ use alpha && replace-flags "-O?" -O0
+
+ multilib-minimal_src_configure
+}
+
+multilib_src_configure() {
+ ECONF_SOURCE=${S} \
+ econf \
+ $(use_enable static-libs static) \
+ $(multilib_native_use_enable doc doxygen) \
+ $(multilib_native_use_enable doc dot) \
+ --disable-werror
+}
+
+multilib_src_install_all() {
+ if use doc; then
+ mv "${ED%/}"/usr/share/${PN}/html "${ED%/}"/usr/share/doc/${PF} || die
+ rm -r "${ED%/}"/usr/share/${PN} || die
+ fi
+ einstalldocs
+
+ find "${D}" -name '*.la' -delete || die
+
+ if use examples ; then
+ find examples -iname "*.o" -delete
+ insinto /usr/share/${PN}
+ doins -r examples
+ fi
+}
diff --git a/dev-util/cppunit/metadata.xml b/dev-util/cppunit/metadata.xml
new file mode 100644
index 000000000000..41cd682e0ecf
--- /dev/null
+++ b/dev-util/cppunit/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="project">
+ <email>cpp@gentoo.org</email>
+ <name>Gentoo C++ Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/dev-util/cpputest/Manifest b/dev-util/cpputest/Manifest
new file mode 100644
index 000000000000..cfbc3012ea87
--- /dev/null
+++ b/dev-util/cpputest/Manifest
@@ -0,0 +1,5 @@
+DIST cpputest-3.8.tar.gz 2722956 SHA256 c81dccc5a1bfc7fc6511590c0a61def5f78e3fb19cb8e1f889d8d3395a476456 SHA512 a9592bdc9ffab8b42026ef2010f504e7e37d77fc2f197f89d23f7c9285a101059a0ec66418b914db0383974616d31b26addd1938fb27f45c3e7d9496ed0a0fac WHIRLPOOL 5a58c12764697110ffecbc4654aa9b70c5fc7349e7e7cc84b84dd71827cc08388426fb7b34236b1677ba8277dab8057cc2963001e4b5a1db484965e8a3408c08
+EBUILD cpputest-3.8.ebuild 496 SHA256 77f801b0fc0d42d1c33bad1790a6c59f957060e064de9ea95836115f167f45e8 SHA512 a2d78c287cd561104ae6ede8899b84e6b0499d5dde197f5408dab5f49b5bb37532327e77e0d6f2d62bced5340d7583aa90257a681342e0b5d09b30b54492e7ae WHIRLPOOL 055083b53422ddedbfa7fd22c579173c57b59a4d31bf34e8dfa69bf20a7b973a2174181c604d886c7a255e4a3f125a7b3b0efd947bb9dd62d6d08fefec74b4c7
+MISC ChangeLog 2528 SHA256 ea008ed66d2b827835c0bd9ac5f33476e4f68d3d4312a0d59829edb1dfba12d4 SHA512 9b4e04aee9880505f5754de00a9187a035dee269b1a7a423e344289bc6649923c6c49e185e870df11ff170a9776ef34068359ead020687852ecb5131d8d6376c WHIRLPOOL d54cb8380993cb4ca693c55d3ffa94a57d6cfe4d179d48db3cc3d64bafdb86c5f57850b6d066c7edb8a58f68f88303ca9cb04329170734cc07d35059333a7424
+MISC ChangeLog-2015 698 SHA256 577cf3ded17d23214c8719a72d0cc23748d16474f3d25211949be15f469934ee SHA512 28d06b1ad6379874a4595110f038ab7c028e697897dbeca9603650081d00ac3c8d2daf9a0ff907381ed65592d4794e91d1086b0c5c2968fb90eecd6613035d7d WHIRLPOOL d4fdd4433976e556141f1d1b5a58f960886aca29acb8e278b80a0ded29f81b7dcdb7184a772f12597f75a8474d94c10f9d1268c4f2ae88d630c520d060c55552
+MISC metadata.xml 328 SHA256 d517396f7256690fa127a274903cbc55882c1a1d880647582439919f43b736ba SHA512 fc08c57ee29388f77cdd94b984673c63793f055b5a399c77ebbe4a71e546437b19727a497a9a5f20a1d3b90129e731c824d52f57d028dbcd9556a1fd30d8e9c5 WHIRLPOOL 44450e1a26cf17487d7a1c26beea79ee806328b2e9925444e2fcadcb44fe5d670ba8c96b8372a90930da79b01f4100741164cd8031bcdd0c2bd944e44ceb0f93
diff --git a/dev-util/cpputest/cpputest-3.8.ebuild b/dev-util/cpputest/cpputest-3.8.ebuild
new file mode 100644
index 000000000000..70283bf44e5c
--- /dev/null
+++ b/dev-util/cpputest/cpputest-3.8.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="unit testing and mocking framework for C/C++"
+HOMEPAGE="https://cpputest.github.io/ https://github.com/cpputest/cpputest"
+SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="test"
+
+DEPEND="
+ test? (
+ dev-cpp/gmock
+ dev-cpp/gtest
+ )
+"
+
+DOCS=( AUTHORS README.md README_CppUTest_for_C.txt )
diff --git a/dev-util/cpputest/metadata.xml b/dev-util/cpputest/metadata.xml
new file mode 100644
index 000000000000..abfba2deb920
--- /dev/null
+++ b/dev-util/cpputest/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>radhermit@gentoo.org</email>
+ <name>Tim Harder</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">cpputest/cpputest</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/cproto/Manifest b/dev-util/cproto/Manifest
new file mode 100644
index 000000000000..f88fccf0c236
--- /dev/null
+++ b/dev-util/cproto/Manifest
@@ -0,0 +1,5 @@
+DIST cproto-4_7e.tgz 145919 SHA256 df190e002103c01cfb757d9ffe1f1c476ff36f42f16eb7c3badb4f9b5e0547b7 SHA512 c9a1da8e19d85600109127e2de079cff5e66e51f0f3220f9a69e72e720ed6d745ef456b3a645bbb4755073c6ce59411d0137d9012da545736e92380f41c83985 WHIRLPOOL 0f5deb8fff27b377060b5fca6f9cc584316bc42933578fe152bcdf85574a033064cffc74c54512a7c66a7b7dcae23735c500fc809348f509c8111130628ca6ee
+EBUILD cproto-4.7e.ebuild 566 SHA256 81c19df89b6aa200905bce5fe6dc7e5b306c46d8159ed1811a0a6357b253daee SHA512 b4f883db138808e180520d4db050655f3ebbbc523778711fb7f224814a5ad8529395997b0b3f3ef0930e0da9fdf4871d17c64f8cfe6731c0a9578420b8c08baf WHIRLPOOL 5fc609b441dad03592265743624f95c9ba777ead5e2ce584df072e963b79b325578785ed6073edd4e1bb3116f6b4fadf2601de2bcabfb35282f68ac98bf6a0f4
+MISC ChangeLog 2517 SHA256 5408de6f4ecbfb3a35670360a7c1c6734f5ed854c8a2780db628b82e886c07e9 SHA512 5fe0b901c70bb2a7f0bbc90031254abf4c03cfbe9e5d9a41293ff2d2629eebf339885fad469f32ef26a0f2f17ac2f6feb0ccdb6bd7854b1674b94178e6fd05bf WHIRLPOOL 8cccad194356dbb1296977021d7de9a8611a48b99c25c86c15702f4ac6e9250a9d56f3b67bf3adc62043abf7847a59c13ed9b30e4cbea3bd26c5f665c0d05bb7
+MISC ChangeLog-2015 3293 SHA256 eecb9b08c26f021f2df53238340a0f11dc262b2b78eb7db2495b86d12959ad46 SHA512 2bcaf3f5925c70ee40cde9cc04e062bfe9377319e007abb9fff9184fad3af9a2aa8222b0eabfa3af2fd98fb6104ca300324e1c3fb07b226fb621a23c0e7c082f WHIRLPOOL 4c0fe2a69970adf241042bd1d7e2b6c80f4c8f80d09608e1ab8b08ea7cbf4adf3e44d87894ed0aef2e6bf085daa2078e60aba27ee09fdb3ada5f8c5f3ed9deec
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/dev-util/cproto/cproto-4.7e.ebuild b/dev-util/cproto/cproto-4.7e.ebuild
new file mode 100644
index 000000000000..d6872afcc954
--- /dev/null
+++ b/dev-util/cproto/cproto-4.7e.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+MY_PV="4_7e"
+MY_P=${PN}-${MY_PV}
+S=${WORKDIR}/${MY_P}
+
+DESCRIPTION="Generate C function prototypes from C source code"
+HOMEPAGE="http://invisible-island.net/cproto/"
+SRC_URI="ftp://invisible-island.net/cproto/${MY_P}.tgz"
+
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="alpha amd64 ppc x86 ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE=""
+
+DEPEND="sys-devel/flex
+ virtual/yacc"
+RDEPEND=""
+
+src_install() {
+ dobin cproto || die
+ doman cproto.1
+ dodoc README CHANGES
+}
diff --git a/dev-util/cproto/metadata.xml b/dev-util/cproto/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/dev-util/cproto/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/dev-util/cpuinfo-collection/Manifest b/dev-util/cpuinfo-collection/Manifest
new file mode 100644
index 000000000000..db3a36c85ea3
--- /dev/null
+++ b/dev-util/cpuinfo-collection/Manifest
@@ -0,0 +1,9 @@
+DIST test_proc-04January2007.tar.gz 28831 SHA256 8b8cf833b115955d40ac6a672a2dd1b748f2771c92fa9a669330e5b67584c23f SHA512 6ff9f42c0847ef897069a7b36ad184b05ac022d1db5ab581e87d2992ee2a511218ef2019a0a94aadb91038e2b99e530618b0b6a380b0aa36f4178620e6719922 WHIRLPOOL a170f4a175abbf4b23daa5a4fbd33ea9556daeb4afe32272980d6a4c3dc8c749f700ffc24b7213f79adf4216f6fdd04d147093cdc4a7a33fb364c2df5dbeea9d
+DIST test_proc-14November2010.tar.gz 95697 SHA256 74dd45840d51d6a5bd73fdbed5d5231f17669a47ddecc5c784ea85aa84181046 SHA512 2f3b80d9b705b76911487b7349300b45622a3a49b9a3c2036d96220738e7fd525114b2523cc589b03d0fdf85ca4d35c28076ff193d1eb620d71765919058fdc6 WHIRLPOOL 08982297ad232b8c08ca8900a1969c65d65edef32e089e87d317ed7ba1f05036c2614cb505fe85dea01c0496021e3e4ff539568ad2bd8febbd88dbab75878b50
+DIST test_proc-20July2006.tar.gz 27570 SHA256 b97e3344ca9b0a38a96853b2ce88e9989f69f246965f1065323402d330e873ad SHA512 c76f59a2b51e414a45c346a8a1334a905be6e5f7ea12f8a2cc92f44048bf0af66b548768910aa07287a4084c675310b6c4cdabc86640705382d654117357b2a8 WHIRLPOOL a0d7348968ea8f1d71bb999e7e9b8418b9cf716dec1b10529cb5452c28c8737221b6f0f67ebef2eb5edaafbe3b51ed94acafff2de33d0edc810ac30011fb7d95
+EBUILD cpuinfo-collection-20060720.ebuild 535 SHA256 cbd67bb8edca483b441477b38464f00f91b71a6e4bf53905242cdf95382fc2aa SHA512 27df72beccc1a1ee71be0021db0f49864031a878b3daaa8e744cbc98c60b044139e2196f3b0fd0728419527e8c61f958535325c3a4a145e1e24ee3ce9c3bb2f2 WHIRLPOOL 9b652943778b96d2ce7f84a33e6aeab2148abb7ff80d52a5db88807c237616c08a95333d85e80e21fbf5f2b5346ea4418badd92a2d61b38dce32a924070f1bcd
+EBUILD cpuinfo-collection-20070104.ebuild 550 SHA256 dfc99bc01b2ecf2beceac1e5d74550d0d9e58fc5a5cc613c088b8203495e1811 SHA512 d6cce6a0d751b6cce723c543c436f743bd76219c826d9bbbc3a025eb0a58110730309b8cab48d69c37c7aab76a43de4181854f3f137f7b215fe3bb4f7d15eb48 WHIRLPOOL f4820e5ef2b226383740bd13946eaece19a517a583071d95d9b9484dbca6aafb9da88dec2a48b6310e119dda6a61f621b2dcb8d792509f78b2ef8e686d808429
+EBUILD cpuinfo-collection-20101114.ebuild 569 SHA256 7e10a8a9ad5d881c3e55d4dba10df5c2eb2e07796a017d8b2df16532b4ce51e9 SHA512 ffb9aab99d69680dc2df9b5ff9148b92bd4beec3b795f5186eae5d544cb0557f5caf436057d8b34e0b14cb8fb0fc4f6efdd53efa15bce41cf4ead28a73be300d WHIRLPOOL a091601d5feb53300727786786436dee8df6bdc9077649897b112f04c6e1fc97f2a0fec2ecff9a1f7ad214ebb87b21bb026ab963fc459bcdc8d294de9282ba93
+MISC ChangeLog 2628 SHA256 ccbbbabcd9de67ee343c3716a65664f0911d1c898b02aadd3b249be11868bc92 SHA512 d6c8dc729af028cc6397d1519dda36f4a010c815851763fbd7c1870cdcc51ad77da5bf75263eff2d168347e573baecc7122f912d1f88a437bcfe44a7b202d6dc WHIRLPOOL 11f82187f10b8fddced9aa62d402b7aa7aa1ed5c00b6853415f069202f1e0b9ccc02b7320535831c2becdb53d82a1980610aed01213484c4f37525bf7a3d5eec
+MISC ChangeLog-2015 1103 SHA256 b04b832c0d21622a4c36c5c09928c1c24a69b36858a133ce83005dfbb09f3b0f SHA512 1773d58d7a61a7b69a766ca08bd104492a4cde301d21f3e39ed099221f5769f5d2791f3c0906329727347ae8f6fd862065670b069a904a6c3f3f6d483f454b46 WHIRLPOOL 5216b8e8259cc451594a4d5a3499e3eedd578d70b6649ae882b05f613a379be4956edc6c67fd2f19e03c4f484a985ccc24de0b5bb6e6adaaba4ad2e2b0ee4f24
+MISC metadata.xml 253 SHA256 d82c33ef453113a5c1ebe250dcba373c22934a69b0a86c6ab15a5ca589c25b91 SHA512 54a9069aeb4165d2dff3d473c8001bc51613aac9dff3f7f5e9971a9891a737a31511ffa11cbd523febe581ac1d9de2bdf2f40410f0c4239138f2ccca3ef15555 WHIRLPOOL e5aee23acff864609953a1e4de768f0e4aef704b44c53c021f28573e1ca5c99f1a46d92935ecec2449f7b4419a36d8373127d0ecfa8d7bae72d835e1839eb3f8
diff --git a/dev-util/cpuinfo-collection/cpuinfo-collection-20060720.ebuild b/dev-util/cpuinfo-collection/cpuinfo-collection-20060720.ebuild
new file mode 100644
index 000000000000..846f7fc12470
--- /dev/null
+++ b/dev-util/cpuinfo-collection/cpuinfo-collection-20060720.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+MY_P=test_proc-20July2006
+DESCRIPTION="huge collection of /proc/cpuinfo files"
+HOMEPAGE="http://www.deater.net/weave/vmwprod/linux_logo/"
+SRC_URI="http://www.deater.net/weave/vmwprod/linux_logo/${MY_P}.tar.gz"
+
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86"
+IUSE=""
+
+DEPEND=""
+
+S=${WORKDIR}/${MY_P}
+
+src_install() {
+ insinto /usr/share/cpuinfo
+ doins -r * || die
+}
diff --git a/dev-util/cpuinfo-collection/cpuinfo-collection-20070104.ebuild b/dev-util/cpuinfo-collection/cpuinfo-collection-20070104.ebuild
new file mode 100644
index 000000000000..dc2b3c6aef45
--- /dev/null
+++ b/dev-util/cpuinfo-collection/cpuinfo-collection-20070104.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+MY_P=test_proc-${PV:6:2}January${PV:0:4}
+DESCRIPTION="huge collection of /proc/cpuinfo files"
+HOMEPAGE="http://www.deater.net/weave/vmwprod/linux_logo/"
+SRC_URI="http://www.deater.net/weave/vmwprod/linux_logo/${MY_P}.tar.gz"
+
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86"
+IUSE=""
+
+DEPEND=""
+
+S=${WORKDIR}/${MY_P}
+
+src_install() {
+ insinto /usr/share/cpuinfo
+ doins -r * || die
+}
diff --git a/dev-util/cpuinfo-collection/cpuinfo-collection-20101114.ebuild b/dev-util/cpuinfo-collection/cpuinfo-collection-20101114.ebuild
new file mode 100644
index 000000000000..6f6a5bd6334c
--- /dev/null
+++ b/dev-util/cpuinfo-collection/cpuinfo-collection-20101114.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+MY_P=test_proc-${PV:6:2}November${PV:0:4}
+DESCRIPTION="huge collection of /proc/cpuinfo files"
+HOMEPAGE="http://www.deater.net/weave/vmwprod/linux_logo/"
+SRC_URI="http://www.deater.net/weave/vmwprod/linux_logo/${MY_P}.tar.gz"
+
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE=""
+
+S=${WORKDIR}/${MY_P}
+
+src_install() {
+ insinto /usr/share/cpuinfo
+ doins -r * || die
+}
diff --git a/dev-util/cpuinfo-collection/metadata.xml b/dev-util/cpuinfo-collection/metadata.xml
new file mode 100644
index 000000000000..56c124413057
--- /dev/null
+++ b/dev-util/cpuinfo-collection/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="project">
+ <email>base-system@gentoo.org</email>
+ <name>Gentoo Base System</name>
+</maintainer>
+</pkgmetadata>
diff --git a/dev-util/cram/Manifest b/dev-util/cram/Manifest
new file mode 100644
index 000000000000..a8f63ca679ba
--- /dev/null
+++ b/dev-util/cram/Manifest
@@ -0,0 +1,4 @@
+DIST cram-0.7.tar.gz 33527 SHA256 7da7445af2ce15b90aad5ec4792f857cef5786d71f14377e9eb994d8b8337f2f SHA512 9fa57e504abac8fd15bf5ff4a74405cb7acd10fd4c797adee87052a4f1c4e975bbc0f4219afd9485358b2c2939b48b3ffe538ae2abc6eea71e0ba8b458d50103 WHIRLPOOL dccc6fe696423c4a9b7839b84da4e629e361fa8d867a6bd48611224cbf2b04493702d1e4efeaf705c03a6255fbcd57bbdf649e1b8e038b82ad75abd5bb5cc3a9
+EBUILD cram-0.7.ebuild 476 SHA256 05bdc4c545790f1283a2b054fe32818480f53992490b30482d7e7ae3cc44f4d7 SHA512 574b488acc9f5530861d82ec293c6941f4c9bd2838a789ba798239f3ff4b654d4df41cdb550c11001d696ea9bff0ed6c1bee2f20f6210ff8c37f3e0fd4d9bd8c WHIRLPOOL a9dcd55b7ce38977bf5a03d08a56c683bcecb39d278e566ab39a3f22a2ecc441c85b66a9128b8db88e979153ca3f380ce384891cf70c4bd3cccfbc4a199153ac
+MISC ChangeLog 695 SHA256 3aa99434dd5f8a82305aa2ec0d190b533ebacb6c7492669900c77b94c626a444 SHA512 e13c35984ace6d646d5ffb8b04f8318df6879cd435f2f22439c4ef8b5b7a89a0cc70eac6cd8f11eb2d39ba79f22c43679ba9c9da5eb545e79fe2e430565e81b1 WHIRLPOOL 986b43c158408a9d78d67579e2be75c63d695ae0f716041726893d52261a22aabbf27fbf1f85c4ec7f161f0ebcc9fb541924ff3bd6a5b7ee70c541747ee04590
+MISC metadata.xml 613 SHA256 b7a64d0b43b82d8679a1b57edb6e0ac01c8437cdd16116a55ecedada2de6fbb7 SHA512 6dffd4dc26817f9ff558ab98deb4b0097fbdfd0394291969b817d2edf1caf108d46d0188919d77e54942a35689c564f2948d627e30e5fc6acb403e8d7f6998d9 WHIRLPOOL eef61a78eccb5b80af028f2431be03e77f9ff377042909c068aaaaaf5b16e9d4287c0a05daf69b2d64c2ac75816dffd3703ce6035c8bc1f8943f6a6958692496
diff --git a/dev-util/cram/cram-0.7.ebuild b/dev-util/cram/cram-0.7.ebuild
new file mode 100644
index 000000000000..e58431cd89f3
--- /dev/null
+++ b/dev-util/cram/cram-0.7.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python{2_7,3_{4,5}} )
+
+inherit distutils-r1
+
+DESCRIPTION="Functional testing framework for command line applications"
+HOMEPAGE="https://bitheap.org/cram/"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~arm ~hppa ~mips ~ppc ~ppc64 x86 ~amd64-fbsd ~x86-fbsd"
+IUSE=""
+
+DEPEND=""
+RDEPEND="${DEPEND}"
diff --git a/dev-util/cram/metadata.xml b/dev-util/cram/metadata.xml
new file mode 100644
index 000000000000..324041586322
--- /dev/null
+++ b/dev-util/cram/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>rafaelmartins@gentoo.org</email>
+ <name>Rafael G. Martins</name>
+ </maintainer>
+ <longdescription lang="en">
+ Cram is a functional testing framework for command line applications.
+ Cram tests look like snippets of interactive shell sessions. Cram
+ runs each command and compares the command output in the test with
+ the command's actual output.
+ </longdescription>
+ <upstream>
+ <remote-id type="pypi">cram</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/crash/Manifest b/dev-util/crash/Manifest
new file mode 100644
index 000000000000..12bb08a272a1
--- /dev/null
+++ b/dev-util/crash/Manifest
@@ -0,0 +1,19 @@
+AUX crash-5.1.1-install-fix.patch 469 SHA256 52a8b9badccb10288080617bbb7ec22c99b7d17d8f352f7ff65c21a02c8310e7 SHA512 c9f08e57a3cfd6b1ca4d8a7f5d497658430e0f2c16f1ce73c8fdac4d6566d48e56ab8acf53f4c4db1e88943f188967cbce23b64ecb117aae598f92128f4d78ef WHIRLPOOL 60853d0e48cdb3918930f423bc89a9d8a71906415380cd57d8a36042ba402a0707def47bcb46f5005ca2e40f0aa37eb0b2e20038afef4394044b5230f2964ea5
+AUX crash-7.1.4-sysmacros.patch 692 SHA256 755fd117c6b1315ed3de5acdfd631d1d7c280ef5caecf8c91549c035e5fc840a SHA512 5ff35ce3c9a1eacf5842c1077a272678941ce787b9bf5746f2222aba6bef077fecaf026fb2b039fec3e0f4594dadfd521527a4510cccf54ec2c6d1a87de9775e WHIRLPOOL cc98c58bcce9d6b2a4982baac9b172be769791cf0f706eedecefcf893f1a8b6843dd2b1c9f35bcf5e63fad80e9e5ca1e830f86786c804ebe71775162a26c5a5e
+DIST crash-6.1.4.tar.gz 26781448 SHA256 e9275d4225b414a1ddf63336cff7160997660d7d382b5ec6c47af993bafbb5a2 SHA512 b9f2e2a84dcf5765422e2aad845c292955455793284b9a8fd32b59836ca220b861645646a3c15b33f29e7bffa4916a692fbcbe02b2274aa0279d21d51605bd4e WHIRLPOOL a2821a8fa95c85eb0023edb37296e023f90d1f173787b50db7206f53ddbddcac1275aabb3a4f9e41e424a5753e8c97adb693dba9ab790a74e5c1c35ae3d11e79
+DIST crash-7.0.0.tar.gz 32007997 SHA256 3ee1c7c7552a31683bb13881b7ee98fde9b4eea260af44a7a4bd22e5c27c9c2e SHA512 29f59b73a7cd17f6f6473511831d2c8610e2464057e260c1673b52f5e3476bc64bdd0cdcfff36ead16957b98b985dbd19b7d7a6daa29e115eea2e5271c4aeb4f WHIRLPOOL 7b5017789819c6e7cd4f34d81d37944782d1ac099a0439c0557fec08e1f3cb163d069cb618385a980b09f886bf7b49fcc118211d188afb08dea3d8b3ba43b835
+DIST crash-7.0.3.tar.gz 32020508 SHA256 fdf1ee8d21cae4eaa25f60fde14e1caf259e59dcdb6e1ed4e555f1d73805fab0 SHA512 bff8781589709a161975954abf5dc2fde6f937cbe334bf23aa889d32114eb2337d918c4c3e7b5e26beb437bfa9d6939339941af8542296ab69c8c51245be76ec WHIRLPOOL ad8e03ab78e53c7fc85faaba73cbc24e96c2092d76477ceec2825e99038d055ddf8f6ef803dfc9e28c4bc98f657a51526ebe69f7a27b96e0eb71411fa842225f
+DIST crash-7.0.7.tar.gz 32041666 SHA256 c473ea9623787bee8fecf2e4d0caa9301a9462c26243e897ad202bf0dc3e9a07 SHA512 51ac33705c8b40117d67797a6f03b78fdaa1be08035f32162816abea906d5193a6fde5f2c826d962047c1ece871ff403e91700c757fe91fd4f940b9bb75c936f WHIRLPOOL c783548368a1acae12b7afa67ff38a9674668205e0345686036df0d0f8fb5a8484b2d7feee96988136f8e13854fe2792aa309b7129bdb574187abc4a629402b4
+DIST crash-7.1.4.tar.gz 32137593 SHA256 2c84b7d33cbf2145fc5af8064744a8496dd2383d63d51cd00f657f474a82434c SHA512 6d536397418b99baaf8ae2bd76d72e60c5f92a7aaeef929f81301e58930ee9848e3e146a43ccac7350602c49c1cea4a31f0b74c267d6afd3b5a23f960a1c9cc6 WHIRLPOOL 3f22c9e54796110f8d57a0b032d492c7a8af1a691972d3275b8cba8cee2d1ccaaab085fc0586c3219cce2f0883c2c81c1919e5a3c68967881aa0fa7816e5b72b
+DIST crash-7.1.8.tar.gz 32154942 SHA256 de125e78cbf9b8db5309d205a5473967d562e1945347e465ff9bd94fd76e6263 SHA512 21aa71b61077f7f361360f19214d8259a4e813ca5c3a5fb027f32376a7367e7eb16cf2f8a0a4b49b205c5e8550192c49fc64812afd1ccaceacf8d7649ba20bf1 WHIRLPOOL 7c8f8a6f2193f89a8d6f1bb8da55375c7321762530df397d7570f2640bad9685a3da78ac0a65818e318936c2954fc6d1dddb4585b2cba12d158ab8d44b4a7530
+DIST crash-7.1.9.tar.gz 32160154 SHA256 9649bb31cae849cf86c7aa9d48fc57847701caf4c74612ec553521555f774d20 SHA512 1200df0d2509ea864f568ee4861c3b6819b61c2594d61a5f993560b03f3f50a3388ba8fbde2e9d630c96ee9d390ba03eb687732352153b50866c65519591c4ab WHIRLPOOL 13b6d9037c763f7252e1660ec02e7bad00b422eda38e5c67d037d3aa8e0239b3ef7898442fb0d76fe2376b02e3880291c0b39c9afa4f6902938f8ee4d9bee9e6
+EBUILD crash-6.1.4.ebuild 503 SHA256 e9ed946ab0c5ff6c0e56dc452f6fea3a78ba69b40a2c357b2b174eb4eceb8ba6 SHA512 43c334d628dc40e810e483fd842d019c7fd6ece9d675f3db013a912637d73c97fdf329d37e57e398c19faad602c5ca22ae21961953897516bc273d05a91b56b8 WHIRLPOOL a2f68f491b4d4ab5445e73f5cec5e21fd91ed5f70bc787c26fc4dfc794842c7c3579c78f1dedea9955db4185b6d6f59ebf37263be5154bcdf70d51d21b2f58e5
+EBUILD crash-7.0.0.ebuild 503 SHA256 e9ed946ab0c5ff6c0e56dc452f6fea3a78ba69b40a2c357b2b174eb4eceb8ba6 SHA512 43c334d628dc40e810e483fd842d019c7fd6ece9d675f3db013a912637d73c97fdf329d37e57e398c19faad602c5ca22ae21961953897516bc273d05a91b56b8 WHIRLPOOL a2f68f491b4d4ab5445e73f5cec5e21fd91ed5f70bc787c26fc4dfc794842c7c3579c78f1dedea9955db4185b6d6f59ebf37263be5154bcdf70d51d21b2f58e5
+EBUILD crash-7.0.3.ebuild 503 SHA256 e9ed946ab0c5ff6c0e56dc452f6fea3a78ba69b40a2c357b2b174eb4eceb8ba6 SHA512 43c334d628dc40e810e483fd842d019c7fd6ece9d675f3db013a912637d73c97fdf329d37e57e398c19faad602c5ca22ae21961953897516bc273d05a91b56b8 WHIRLPOOL a2f68f491b4d4ab5445e73f5cec5e21fd91ed5f70bc787c26fc4dfc794842c7c3579c78f1dedea9955db4185b6d6f59ebf37263be5154bcdf70d51d21b2f58e5
+EBUILD crash-7.0.7.ebuild 503 SHA256 3c3cb0d0bff0b744e498c6df4a3960713019c5f9086aac67df0c52d96d89532b SHA512 a87573e295d8291bfac1ec024d9a4bd31361dcaf6e9cf16bdf35647daa7b6f2f962a1ab428454373c71e34b6828819cbad22318463ea7325e298a63bde8c3b98 WHIRLPOOL 365092470c97d0aaf043fc317be3cd0973ef3ba8e5476aeb066ee9b2d7620be41b2fde53d8b4fbc71de681b389e8ced1c40857b258e56edb70920132522e0614
+EBUILD crash-7.1.4.ebuild 532 SHA256 dbc8052b7c0b372cf2f4fe168bbb17ae197b4848b81c0c763a549ab553a4826e SHA512 5d9d6709a5a87ed15fb854dd1041dfd8b92edeb5f21ca08070e14be512b7941aaeb3f32f785b87d70663e198a842158dd3337074dbf21dd9a26c3b752f3d3800 WHIRLPOOL b6927fd2b26ee08352bbe973c221397aaf12e2fe57137c5d00133d6ce0d072e994580d33d15ec2b5198e2e0782027afe42f137547b02e3ce4101986c7b15ef8b
+EBUILD crash-7.1.8.ebuild 474 SHA256 44ccafd07e9c4f0391879f27a5aab50ba80207ac9a3960c14715dbebc52bd5ba SHA512 e22d97d213ecf90cec49454285f4547718b2e7c5b7e0badc58fc77dcf8c804946cd7711d48690bd22dd70cb8ed0f5ad4855de3ccef4ddac20fee6bd876c45eda WHIRLPOOL b8fab7194c1bd7f923031bcb148e68d730129966a6ec953783b3cef722a70b6cf3f0026dd2461767ee1becf76053f4df34e11a13243bfb8e3316ce4b1228aa14
+EBUILD crash-7.1.9.ebuild 474 SHA256 44ccafd07e9c4f0391879f27a5aab50ba80207ac9a3960c14715dbebc52bd5ba SHA512 e22d97d213ecf90cec49454285f4547718b2e7c5b7e0badc58fc77dcf8c804946cd7711d48690bd22dd70cb8ed0f5ad4855de3ccef4ddac20fee6bd876c45eda WHIRLPOOL b8fab7194c1bd7f923031bcb148e68d730129966a6ec953783b3cef722a70b6cf3f0026dd2461767ee1becf76053f4df34e11a13243bfb8e3316ce4b1228aa14
+MISC ChangeLog 3236 SHA256 50cbce747be6047337125b5bcf774dbba3bb97e445a256a61c4001e6441b2272 SHA512 cc2bd0d2c8b180a4c7fc3a6e6623fd472785280f1417d815e079efd089e26fee9f76c84c15e2416c487a59197549a1ad935449ccace818ad1e9a3dac69af3a9c WHIRLPOOL 24bbecb99acb51cba91043a4cf49851a72bc85c430ce4383ca0af4c2722d7f139247d6b7ae4be5be01e61684eb7ac6998f8766fab92d577b9a29c2b5f2003397
+MISC ChangeLog-2015 1535 SHA256 89042bbc8535db7062e21793633b1d5d306a49ee7e34be4e1b9f62a9e594bcb8 SHA512 32a394603d39d8c81f20d10cc0540a3b6bf52f1e4c57a17efa372eb2e0b76268a1b2f3beee02d6a94be3be0f96de80325911cc29b0ac8b77ed14c2d71863337a WHIRLPOOL 5503cbb1f619d75db22d42825c9d7cd5e5523252f2b816930d24c5e38e0b958d6a6927bacc4159f33a1b1251008dd59f939fb4849673bb9185fe6b8ae0b2467f
+MISC metadata.xml 647 SHA256 5854b7c1263252e6adac6ff3c9c7f8ec65823bc295c26dc6bafe7d9a33962374 SHA512 4e5b97c2f7306f4113f842e4683a2f4c3ed684c229c8e21483d08889e4a1d8656bfda699300cd71c70389510816f19d5eb93a37715c5861b669b285bff61ef78 WHIRLPOOL a7a985a9b4b5ffc26c76def500872e1d9157ec93cf04c4ff897a5b12ef3579299cc72ee1a294389fe0ced1335a25d11afbbff73b02dd9656ee7f4cf6894e3113
diff --git a/dev-util/crash/crash-6.1.4.ebuild b/dev-util/crash/crash-6.1.4.ebuild
new file mode 100644
index 000000000000..552bb1430a44
--- /dev/null
+++ b/dev-util/crash/crash-6.1.4.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils
+
+DESCRIPTION="Red Hat crash utility. Used for analyzing kernel core dumps"
+HOMEPAGE="https://people.redhat.com/anderson/"
+SRC_URI="https://people.redhat.com/anderson/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="-* ~alpha ~amd64 ~arm ~ia64 ~ppc64 ~s390 ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-5.1.1-install-fix.patch
+}
diff --git a/dev-util/crash/crash-7.0.0.ebuild b/dev-util/crash/crash-7.0.0.ebuild
new file mode 100644
index 000000000000..552bb1430a44
--- /dev/null
+++ b/dev-util/crash/crash-7.0.0.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils
+
+DESCRIPTION="Red Hat crash utility. Used for analyzing kernel core dumps"
+HOMEPAGE="https://people.redhat.com/anderson/"
+SRC_URI="https://people.redhat.com/anderson/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="-* ~alpha ~amd64 ~arm ~ia64 ~ppc64 ~s390 ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-5.1.1-install-fix.patch
+}
diff --git a/dev-util/crash/crash-7.0.3.ebuild b/dev-util/crash/crash-7.0.3.ebuild
new file mode 100644
index 000000000000..552bb1430a44
--- /dev/null
+++ b/dev-util/crash/crash-7.0.3.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils
+
+DESCRIPTION="Red Hat crash utility. Used for analyzing kernel core dumps"
+HOMEPAGE="https://people.redhat.com/anderson/"
+SRC_URI="https://people.redhat.com/anderson/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="-* ~alpha ~amd64 ~arm ~ia64 ~ppc64 ~s390 ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-5.1.1-install-fix.patch
+}
diff --git a/dev-util/crash/crash-7.0.7.ebuild b/dev-util/crash/crash-7.0.7.ebuild
new file mode 100644
index 000000000000..e16819baaf09
--- /dev/null
+++ b/dev-util/crash/crash-7.0.7.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils
+
+DESCRIPTION="Red Hat crash utility. Used for analyzing kernel core dumps"
+HOMEPAGE="https://people.redhat.com/anderson/"
+SRC_URI="https://people.redhat.com/anderson/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="-* ~alpha ~amd64 ~arm ~ia64 ~ppc64 ~s390 ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-5.1.1-install-fix.patch
+}
diff --git a/dev-util/crash/crash-7.1.4.ebuild b/dev-util/crash/crash-7.1.4.ebuild
new file mode 100644
index 000000000000..6583d7e9041b
--- /dev/null
+++ b/dev-util/crash/crash-7.1.4.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit eutils
+
+DESCRIPTION="Red Hat crash utility; used for analyzing kernel core dumps"
+HOMEPAGE="https://people.redhat.com/anderson/"
+SRC_URI="https://people.redhat.com/anderson/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="-* ~alpha ~amd64 ~arm ~ia64 ~ppc64 ~s390 ~x86"
+IUSE=""
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-5.1.1-install-fix.patch
+ epatch "${FILESDIR}"/${PN}-7.1.4-sysmacros.patch #580244
+}
diff --git a/dev-util/crash/crash-7.1.8.ebuild b/dev-util/crash/crash-7.1.8.ebuild
new file mode 100644
index 000000000000..d2d1df9f47a7
--- /dev/null
+++ b/dev-util/crash/crash-7.1.8.ebuild
@@ -0,0 +1,19 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit eutils
+
+DESCRIPTION="Red Hat crash utility; used for analyzing kernel core dumps"
+HOMEPAGE="https://people.redhat.com/anderson/"
+SRC_URI="https://people.redhat.com/anderson/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="-* ~alpha ~amd64 ~arm ~ia64 ~ppc64 ~s390 ~x86"
+IUSE=""
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-5.1.1-install-fix.patch
+}
diff --git a/dev-util/crash/crash-7.1.9.ebuild b/dev-util/crash/crash-7.1.9.ebuild
new file mode 100644
index 000000000000..d2d1df9f47a7
--- /dev/null
+++ b/dev-util/crash/crash-7.1.9.ebuild
@@ -0,0 +1,19 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit eutils
+
+DESCRIPTION="Red Hat crash utility; used for analyzing kernel core dumps"
+HOMEPAGE="https://people.redhat.com/anderson/"
+SRC_URI="https://people.redhat.com/anderson/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="-* ~alpha ~amd64 ~arm ~ia64 ~ppc64 ~s390 ~x86"
+IUSE=""
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-5.1.1-install-fix.patch
+}
diff --git a/dev-util/crash/files/crash-5.1.1-install-fix.patch b/dev-util/crash/files/crash-5.1.1-install-fix.patch
new file mode 100644
index 000000000000..98b86759361d
--- /dev/null
+++ b/dev-util/crash/files/crash-5.1.1-install-fix.patch
@@ -0,0 +1,12 @@
+diff -Nur crash-5.1.1/Makefile crash-5.1.1-fixes//Makefile
+--- crash-5.1.1/Makefile 2010-12-23 12:59:44.000000000 -0600
++++ crash-5.1.1-fixes//Makefile 2011-01-26 13:17:11.000000000 -0600
+@@ -322,7 +322,7 @@
+ cc -c ${CRASH_CFLAGS} build_data.c ${WARNING_OPTIONS} ${WARNING_ERROR}
+
+ install:
+- /usr/bin/install ${PROGRAM} ${INSTALLDIR}
++ /usr/bin/install -D ${PROGRAM} ${INSTALLDIR}/${PROGRAM}
+ # /usr/bin/install ${PROGRAM}d ${INSTALLDIR}
+
+ unconfig: make_configure
diff --git a/dev-util/crash/files/crash-7.1.4-sysmacros.patch b/dev-util/crash/files/crash-7.1.4-sysmacros.patch
new file mode 100644
index 000000000000..6e6d40cca4d2
--- /dev/null
+++ b/dev-util/crash/files/crash-7.1.4-sysmacros.patch
@@ -0,0 +1,27 @@
+From f22dabb45448e5a8d2df85703fd72b0f83fe7eda Mon Sep 17 00:00:00 2001
+From: Mike Frysinger <vapier@gentoo.org>
+Date: Thu, 21 Apr 2016 00:44:04 -0400
+Subject: [PATCH] include sys/sysmacros.h for major/minor/makedev
+
+These funcs are defined in the sys/sysmacros.h header, not sys/types.h.
+Linux C libraries are updating to drop the implicit include, so we need
+to include it explicitly.
+---
+ filesys.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/filesys.c b/filesys.c
+index 2ed25f4..9b59998 100644
+--- a/filesys.c
++++ b/filesys.c
+@@ -16,6 +16,7 @@
+ */
+
+ #include "defs.h"
++#include <sys/sysmacros.h>
+ #include <linux/major.h>
+ #include <regex.h>
+ #include <sys/utsname.h>
+--
+2.7.4
+
diff --git a/dev-util/crash/metadata.xml b/dev-util/crash/metadata.xml
new file mode 100644
index 000000000000..bfe00424921c
--- /dev/null
+++ b/dev-util/crash/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>cardoe@gentoo.org</email>
+ <name>Doug Goldstein</name>
+ </maintainer>
+ <longdescription lang="en">
+ The Red Hat crash analysis utility is loosely based on the SVR4 UNIX
+ crash command, but has been significantly enhanced by completely merging
+ it with the GNU gdb debugger. The marriage of the two effectively
+ combines the kernel-specific nature of the traditional UNIX crash
+ utility with the source code level debugging capabilities of gdb.
+ </longdescription>
+</pkgmetadata>
diff --git a/dev-util/creduce/Manifest b/dev-util/creduce/Manifest
new file mode 100644
index 000000000000..f7d86e86c85b
--- /dev/null
+++ b/dev-util/creduce/Manifest
@@ -0,0 +1,12 @@
+DIST creduce-2.4.0.tar.gz 677706 SHA256 0b4c5184b7bdc369a476c0eb4d41f1618f66e82d7ebeafa9492c0355ce63ed35 SHA512 75a603a8e2a967edfd12f9423f08b716a292f75e72ce770b083f4f9458510c3aaa16a91102c75f0ca098d08bb898fde998cae81e17c680dab330164fcffb5b33 WHIRLPOOL 676d20f68ff540abaeb7d64adf4fdfba7d2b164832481029b8a2cc0d95fe55d407ec7ffd7e5a85117cb3194264a70ecb79dbc95b7d5ddf1d62b901fcc6124a6a
+DIST creduce-2.5.0.tar.gz 742516 SHA256 2dcd784e1d27df60f4ea1d92c4c556c02da4152db353d544dce8b7813fa443e4 SHA512 5292381ddf5e2b061bcfb1a3f52cd25cab3ab5985faade7c779c41be19b5cf7309fbcfff1428f026bfcee5da7c6f898b0b8fa48d03ef83acd64000c3ece2189d WHIRLPOOL b73c5f091caa697de9bba5f069e33b796a9a02efe5c5e3c0536ba94f9e454270d1750c93a27a953ac58ff6e8fd816f78b60205a01b24dd4140e927b6e1a33e33
+DIST creduce-2.6.0.tar.gz 763886 SHA256 cdacc1046ca3ae2b0777b8f235428e7976b0fb97c2f69979c8accd8d2cc0c55d SHA512 e2a08127d2aea29b6934792eff4ff0d9f10952ca520671c60ef4b24a48522b19c48336d4b9d0b8e8c633dd8832b2a56d3d0daa311478e474e974c60a0ae381f1 WHIRLPOOL 882065bed157f441df9628a9e691f69c47495ba54b43580d7c5eb442d7ba58e65d674655ee8e013203adfab581b49f973e3ada3147d3e4b9fb707572b49be652
+DIST creduce-2.7.0.tar.gz 768832 SHA256 36dca859c97a988e71b1a08e0cbd5849e4da051d248c5e483494194c4a231a41 SHA512 0ded47fdb4303d84619d63fbedd7bc12141b4857679dda8438683199dbdc98b985f848e797b9dc25a31dda591ee54bcb94580285890b23495fcf151aa3636226 WHIRLPOOL 224f4827317049971cc30d6909cfb4c094b5022c30c4d80964df85dfeaa3ab9a4a20685d685a820701daa16e82863fb9e625e2a94fa56a013e284fcfa95a9a8e
+EBUILD creduce-2.4.0.ebuild 605 SHA256 4a3ec76aba183394a8f557dad53dee4dcf2f976729aeeec8a12b15ffeb27fb07 SHA512 9213fd59de68f2ab9353c3d080e4f041906b210adf73ecd0f0fdfaac1b22926b74f958cb70cac30ac1e66470d50b77c8ff75d5b741c3d0d4c5a4f58ecbd5e2e8 WHIRLPOOL 20903feb3b72f3f99872bc6951dd00faae2ca09ce8776301e20bbd994f9c38ef8b658d4ee9fa1c6dcae22ce2f711b3e652c8d3e7528165cc1af5feb9b8f890ba
+EBUILD creduce-2.5.0.ebuild 589 SHA256 6ab4222f959fd1f4fd4d070cdfcd90a66fbc4a7158e011b3c69bc9cac022b09a SHA512 d9c7c792c642e5c8e2305b511c1af83b6d935c95a0539324378032f15406e98b933808eab8d0a53d186e249f72cdb25b8b7a9a6af4936f5cf3165ce3b2439487 WHIRLPOOL 291a155f491b7408d3c2e747f9fda551f1f54997ee74674dc381852a21c5dab39e4676df7c71bd9734ca4a7b6dc2a8f1f2ee5d2847497ec7f21deaab5650cb2e
+EBUILD creduce-2.6.0.ebuild 685 SHA256 0b8a1736bae151be38606ea3ef76d2b46dd63a7c72b8c0ec0efafbbfe4704598 SHA512 57ed962054073e3220adfc02d5fccd6000359c189404cf3c01763312ae675876f52f6900a2d42431373c1ec56b78aa664f0fe9bd555f6e524196d22290985313 WHIRLPOOL eec2e2a1e8a083effd8ea400f127cae34e3d86c45a52c95df9e418139733d07d922787dffafb3e7ae472cf224efb59107272d3627ba3ceb6c2cd9a3a06335f09
+EBUILD creduce-2.7.0.ebuild 703 SHA256 eb02687900e5b185a60a51fab7d053b3d7e67e222a04562624735c96c0104ad1 SHA512 dc9bb094eb8d54ec90e74a8031289936c0bd3fc5a5e5520bbedb7d457f73aaa458bf0c094542b94a4d32f508df4163b98651c1ead335a91f032478f498d1e0da WHIRLPOOL 80b0ca84217803742307f1edd6182baf78956e3a8ec51767aae34022df9bc5c5694f142ae74a3f47f913b2d174f95bec397861fbf190bee3493f232d654eb468
+EBUILD creduce-9999.ebuild 765 SHA256 6a0d81ce3a12aa68475710d18db74772473de59f4107d4bab01459549e393eda SHA512 26e023880d1143b27d11971f2f95e937f210630c9f2899c239d7f7076ac7741e9cde7e9ba2661c08f2b42e8c71f0dc6e4075f6421e927601ce1276616fe51da8 WHIRLPOOL 1d7f34ac4eee0ccad9917850b316f349153fff4faf5019c5bb20072ae87f5088afaf3aec84fd953965209096b4c3f30f6bcc15468c6f47b6f42cd82810741f24
+MISC ChangeLog 4376 SHA256 d46e151dd640ebb83827f941798db7392f44e4a3147e194520542763821180b7 SHA512 979316eb5b375ccbff0980d06c861a3f76ccf4e48ff1b8e108b872be8a86ecebc969ea86b28d2852d6443db693a68ff66952bb0e4b7176086aadbdbc4dea4ee3 WHIRLPOOL 7210f605a7a551d2c3c9850baf4e02145923608a4044a1c67d9707a9f7ec099fb6794a06128473bb31d34eef94a52311f6dc802a6c0b8d0a540f7077d145fbac
+MISC ChangeLog-2015 657 SHA256 d405654f256c343dc9b2c70decdea1b3a614ae7ed310e4967b85822e521a62fe SHA512 36b5b0ffcb00e95cc35d5c44364a240f31b290371cc499959562ffe8fa059e843fe15b174383bdc7bab7151adffcb392dde502d9cdbe213aee8e822d7652f7a3 WHIRLPOOL d517e5af4da342d82cd04778129e00c43fc9959ea33ace631a2db862194b7bf9090d0ec42dedcc42f81367c29b0ea10adaea47e4a1ea22411f10e7c4c04d04f9
+MISC metadata.xml 349 SHA256 82369acf15d76126f47d4ebdde8ba3421fc56f4b6da77196065e2dc2640792ed SHA512 1088fd88c07aa98bbbf8a8674d3b7908ea2bf707200f60640da713398556edaabca17924bae9a58745d266bc859b9269e677ac33405dcfca6df657e8cb9d06a4 WHIRLPOOL b706354bb6d648b17fa7c7220b7a2def15101ec695c9923a5cf7dfdb981311a516c335ef5f824159e96dbe2d9cbc03afac87c53b57fdc41b330554f4b06314e7
diff --git a/dev-util/creduce/creduce-2.4.0.ebuild b/dev-util/creduce/creduce-2.4.0.ebuild
new file mode 100644
index 000000000000..2213cee8ce46
--- /dev/null
+++ b/dev-util/creduce/creduce-2.4.0.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+DESCRIPTION="C-Reduce - a plugin-based C program reducer"
+HOMEPAGE="https://embed.cs.utah.edu/creduce/"
+SRC_URI="https://embed.cs.utah.edu/creduce/${P}.tar.gz"
+
+LICENSE="UoI-NCSA"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="
+ >=dev-lang/perl-5.10.0
+ app-text/delta
+ dev-perl/Benchmark-Timer
+ dev-perl/Exporter-Lite
+ dev-perl/File-Which
+ dev-perl/Getopt-Tabular
+ dev-perl/Regexp-Common
+ dev-perl/Sys-CPU
+ dev-util/astyle
+ dev-util/indent
+ =sys-devel/clang-3.7*"
+
+RDEPEND="${DEPEND}"
diff --git a/dev-util/creduce/creduce-2.5.0.ebuild b/dev-util/creduce/creduce-2.5.0.ebuild
new file mode 100644
index 000000000000..6e4e0f845cbc
--- /dev/null
+++ b/dev-util/creduce/creduce-2.5.0.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+DESCRIPTION="C-Reduce - a plugin-based C program reducer"
+HOMEPAGE="https://embed.cs.utah.edu/creduce/"
+SRC_URI="https://embed.cs.utah.edu/creduce/${P}.tar.gz"
+
+LICENSE="UoI-NCSA"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="
+ >=dev-lang/perl-5.10.0
+ dev-perl/Benchmark-Timer
+ dev-perl/Exporter-Lite
+ dev-perl/File-Which
+ dev-perl/Getopt-Tabular
+ dev-perl/Regexp-Common
+ dev-perl/Sys-CPU
+ dev-util/astyle
+ dev-util/indent
+ =sys-devel/clang-3.8*"
+
+RDEPEND="${DEPEND}"
diff --git a/dev-util/creduce/creduce-2.6.0.ebuild b/dev-util/creduce/creduce-2.6.0.ebuild
new file mode 100644
index 000000000000..b138ee9ea1ed
--- /dev/null
+++ b/dev-util/creduce/creduce-2.6.0.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+: ${CMAKE_MAKEFILE_GENERATOR=ninja}
+inherit cmake-utils
+
+DESCRIPTION="C-Reduce - a plugin-based C program reducer"
+HOMEPAGE="https://embed.cs.utah.edu/creduce/"
+SRC_URI="https://embed.cs.utah.edu/creduce/${P}.tar.gz"
+
+LICENSE="UoI-NCSA"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+COMMON_DEPEND="
+ >=dev-lang/perl-5.10.0
+ =sys-devel/clang-3.9*"
+RDEPEND="${COMMON_DEPEND}
+ dev-perl/Benchmark-Timer
+ dev-perl/Exporter-Lite
+ dev-perl/File-Which
+ dev-perl/Getopt-Tabular
+ dev-perl/Regexp-Common
+ dev-perl/Sys-CPU
+ dev-util/astyle
+ dev-util/indent"
+DEPEND="${COMMON_DEPEND}"
diff --git a/dev-util/creduce/creduce-2.7.0.ebuild b/dev-util/creduce/creduce-2.7.0.ebuild
new file mode 100644
index 000000000000..9fae9a665c8b
--- /dev/null
+++ b/dev-util/creduce/creduce-2.7.0.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+: ${CMAKE_MAKEFILE_GENERATOR=ninja}
+inherit cmake-utils llvm
+
+DESCRIPTION="C-Reduce - a plugin-based C program reducer"
+HOMEPAGE="https://embed.cs.utah.edu/creduce/"
+SRC_URI="https://embed.cs.utah.edu/creduce/${P}.tar.gz"
+
+LICENSE="UoI-NCSA"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+COMMON_DEPEND="
+ >=dev-lang/perl-5.10.0
+ sys-devel/clang:4"
+RDEPEND="${COMMON_DEPEND}
+ dev-perl/Benchmark-Timer
+ dev-perl/Exporter-Lite
+ dev-perl/File-Which
+ dev-perl/Getopt-Tabular
+ dev-perl/Regexp-Common
+ dev-perl/Sys-CPU
+ dev-util/astyle
+ dev-util/indent"
+DEPEND="${COMMON_DEPEND}"
+
+LLVM_MAX_SLOT=4
diff --git a/dev-util/creduce/creduce-9999.ebuild b/dev-util/creduce/creduce-9999.ebuild
new file mode 100644
index 000000000000..b7accd15defa
--- /dev/null
+++ b/dev-util/creduce/creduce-9999.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+EGIT_REPO_URI="https://github.com/csmith-project/${PN}"
+
+: ${CMAKE_MAKEFILE_GENERATOR=ninja}
+inherit cmake-utils git-r3 llvm
+
+DESCRIPTION="C-Reduce - a plugin-based C program reducer"
+HOMEPAGE="https://embed.cs.utah.edu/creduce/"
+SRC_URI=""
+
+LICENSE="UoI-NCSA"
+SLOT="0"
+KEYWORDS=""
+IUSE=""
+
+COMMON_DEPEND="
+ >=dev-lang/perl-5.10.0
+ >=sys-devel/clang-4:="
+RDEPEND="${COMMON_DEPEND}
+ dev-perl/Benchmark-Timer
+ dev-perl/Exporter-Lite
+ dev-perl/File-Which
+ dev-perl/Getopt-Tabular
+ dev-perl/Regexp-Common
+ dev-perl/Sys-CPU
+ dev-util/astyle
+ dev-util/indent"
+DEPEND="${COMMON_DEPEND}"
+
+llvm_check_deps() {
+ has_version "sys-devel/clang:${LLVM_SLOT}"
+}
diff --git a/dev-util/creduce/metadata.xml b/dev-util/creduce/metadata.xml
new file mode 100644
index 000000000000..cfa489ca83c4
--- /dev/null
+++ b/dev-util/creduce/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>rhill@gentoo.org</email>
+ <name>Ryan Hill</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>mgorny@gentoo.org</email>
+ <name>Michał Górny</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-util/cscope/Manifest b/dev-util/cscope/Manifest
new file mode 100644
index 000000000000..7b6a0e8d6616
--- /dev/null
+++ b/dev-util/cscope/Manifest
@@ -0,0 +1,9 @@
+AUX 50cscope-gentoo.el 1442 SHA256 b3b1932cfa88a2ee44c45a2504c7ff25d684b0cb9bdd2fb5b2825a9cece97127 SHA512 63bb70766d69a85f78c43204e3539bcabaf5765f19703f6f8ad1dcc2bc076c1c20623a3120eeeaff89842fac9f17d5b3f17820780eab9844716cbcd6a138d384 WHIRLPOOL dbf489f70b0b7e0467d744b0c58199cf3d360a39725c7941e0a4a910fb428dd6c096b1eca59a25b514261180910bb576ff0463e1eb30bbede9de70743a6afc03
+AUX cscope-15.6-darwin.patch 288 SHA256 454af6b7b2d95c4ce269a9c91cab7e07a9a4b962baaa25b4ef0bd6a5a0f10a51 SHA512 24c3a876c34786c8ff2b51256c05da5c8334cc8befb3db40faba8af8f34abbec78062f1baf8e0dc0adf9f37731b10310e61cd46c08a6e78baa767234e483e7d5 WHIRLPOOL e17078beba3b3146f9ab4893ed42884d4b5ac32779ed523803ce3da321ab22f55764b09696c1898099163b9ea4cd7497fee716da161ebbd06d9a24f16b941998
+AUX cscope-15.7a-ocs-sysdir.patch 582 SHA256 844a82d4a491fd9a8da6b6efc5c40b67380dd30d392e68f64b9fa5d630efeb80 SHA512 aa296d8839da73b6838c450dfabc9782940a2f9c9cfba2f738993c777c1d4096688d79205ccec58dbf931b2faf45a4c3850ddbd894c7b7e616d18a0014cacfdb WHIRLPOOL 088ac3a29a38882178500415c738f6e3dbee47bf977ec166fc5d81f08dc4907fcfb6cae4215979237886eaf1cd173835b506d75241cc2998b1916756d070a554
+DIST cscope-15.8a.tar.gz 601232 SHA256 eb736ac40d5abebe8fa46820c7a8eccc8a17966a9a5f70375367b77177874d1e SHA512 bedba69820eca86420f6c975d1f267de67a457b182a3fe49720a2ae5ea48759c5b5b8db06ed5ffd85173ddf4a0f12ca722e87200dea4a2da7d43c8c711b00318 WHIRLPOOL e71554c813dc7d33de2ed20350f454485c9ca5bd69de45ca05f19a9376d03dffb59503b0e6229927985a0f61312d968d64675ea3dd2a988f8582e0d404c46c02
+EBUILD cscope-15.8a-r1.ebuild 1389 SHA256 a2d3d5312c6e1cd7cc38dbbb05385e515fa007db582351e3790111d94955e8d9 SHA512 d224219445dd71b6503ed432d8fab68f5ed0a6077ae2261d3792908a73ba6084ed3f0098a4883240989d2ee70c9e0a070407d4c8482742f4d06a8f15cdc06c06 WHIRLPOOL 5b4a3ab03631aa6377aa8e161a729b1e8c6b9e4bea073e816a350d9b2fec3841974ce0abaed894d576ebaee374f641683e86c394ea5410ff9435cc7357965130
+EBUILD cscope-15.8a-r2.ebuild 1601 SHA256 301b7d538e250b668daddaf535bb7ac8d2088e7ee0045c6a2fe095d2c4bb8027 SHA512 80dca153c05cfa98f2bcefd5901a977ac4492815b51a2f05ac31cebe32154b82a86d09e90c563cb96b0d63f9e3e45be4245d585412d77b53e32e4c02bc274d7a WHIRLPOOL 3be6a8c3c79ba7259b936b855c6c76e1c7d00731a08071b8aa0a318e968e8e24d40520a2de28a22a9f8682e8aea1cca7a9d2e59643eea508de7145846721b9ca
+MISC ChangeLog 3168 SHA256 2971e946e42678e16364d6a8eec341cfc6c3231439d3a49d203fc3a0653e4c26 SHA512 c8a0b32516826e9df2a655f8a4e54cd8416ec7e0dfede0fc4a2baa170d0beeae9f7b2297bcaede595ef6675fb02b060b4e50f01ea5dcce0fe24e8fdb1b6c7bdd WHIRLPOOL 1c219d071bad62c9366d9eb3c4aa99d29af3c80a8afb6297336eca63e391c77222ed1654b464580fcb5686eedb1543d14bc125b7daccea725798259989681106
+MISC ChangeLog-2015 18549 SHA256 990fde24127277c4002b51e0fe6f1b8f0c9cbe9efee68603dd682e692122d609 SHA512 df4e583e3c28b6c0c2a971f80812f39b32a1b0ecb68204e8ea1cbc7f1eb6af0c9a64c337a2c0457549e29989ebfd22ecf5f3075bfe3c2bf78142999e45a30aac WHIRLPOOL 37321ce4c76619290f0033166f3c653175528a355168acd16dcb8d5e5ea950a1e13a5bfc483b20a650ec5ce545559e0dc6a4699890632df89c7aa753a0c304c4
+MISC metadata.xml 1086 SHA256 252da1fbf009397b3b4701c048d8e461c88deee1e3ad4874726d9495a32f8bf0 SHA512 a8ebddecfe959cb05a992749f12183baba41950b39e197bd1db0528969dd4e1814dc159555b2e24d85249373da4b60bf05a7d86aac2d7b8969d6d2bed2ab59e1 WHIRLPOOL f1940da2c2f390f406ab5c997bc23234ab0374d288df8ba9762f4fd3ab1a4b2468d8f2eb4da439a16108f605e43ce96a89df14b7f95516dafefbf640b138fce2
diff --git a/dev-util/cscope/cscope-15.8a-r1.ebuild b/dev-util/cscope/cscope-15.8a-r1.ebuild
new file mode 100644
index 000000000000..96ee8532b7b7
--- /dev/null
+++ b/dev-util/cscope/cscope-15.8a-r1.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools elisp-common toolchain-funcs
+
+DESCRIPTION="Interactively examine a C program"
+HOMEPAGE="http://cscope.sourceforge.net/"
+SRC_URI="mirror://sourceforge/cscope/${P}.tar.gz"
+
+LICENSE="BSD GPL-2+"
+SLOT="0"
+KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd"
+IUSE="emacs"
+
+RDEPEND=">=sys-libs/ncurses-5.2:0=
+ emacs? ( virtual/emacs )"
+DEPEND="${RDEPEND}
+ sys-devel/flex
+ virtual/pkgconfig
+ virtual/yacc"
+
+SITEFILE="50${PN}-gentoo.el"
+
+src_prepare() {
+ eapply "${FILESDIR}/${PN}-15.7a-ocs-sysdir.patch" #269305
+ eapply_user
+ mv configure.{in,ac} || die
+ eautoreconf # prevent maintainer mode later on
+}
+
+src_compile() {
+ emake CURSES_LIBS="$("$(tc-getPKG_CONFIG)" --libs ncurses)"
+ if use emacs; then
+ cd "${S}"/contrib/xcscope || die
+ elisp-compile *.el
+ fi
+}
+
+src_install() {
+ default
+
+ if use emacs; then
+ cd "${S}"/contrib/xcscope || die
+ elisp-install ${PN} *.el *.elc
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}"
+ dobin cscope-indexer
+ fi
+
+ cd "${S}"/contrib/webcscope || die
+ docinto webcscope
+ dodoc INSTALL TODO cgi-lib.pl cscope hilite.c
+ docinto webcscope/icons
+ dodoc icons/*.gif
+}
+
+pkg_postinst() {
+ use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}
diff --git a/dev-util/cscope/cscope-15.8a-r2.ebuild b/dev-util/cscope/cscope-15.8a-r2.ebuild
new file mode 100644
index 000000000000..cc6a6c15981e
--- /dev/null
+++ b/dev-util/cscope/cscope-15.8a-r2.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools elisp-common toolchain-funcs
+
+DESCRIPTION="Interactively examine a C program"
+HOMEPAGE="http://cscope.sourceforge.net/"
+SRC_URI="mirror://sourceforge/cscope/${P}.tar.gz"
+
+LICENSE="BSD GPL-2+"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
+IUSE="emacs"
+
+RDEPEND=">=sys-libs/ncurses-5.2:0=
+ emacs? ( virtual/emacs )"
+DEPEND="${RDEPEND}
+ sys-devel/flex
+ virtual/pkgconfig
+ virtual/yacc"
+
+SITEFILE="50${PN}-gentoo.el"
+
+src_prepare() {
+ eapply "${FILESDIR}/${PN}-15.7a-ocs-sysdir.patch" #269305
+ eapply "${FILESDIR}/${PN}-15.6-darwin.patch"
+ eapply_user
+ mv configure.{in,ac} || die
+ eautoreconf # prevent maintainer mode later on
+}
+
+src_configure() {
+ econf --with-ncurses="${EPREFIX}"/usr
+}
+
+src_compile() {
+ emake CURSES_LIBS="$("$(tc-getPKG_CONFIG)" --libs ncurses)"
+ if use emacs; then
+ cd "${S}"/contrib/xcscope || die
+ elisp-compile *.el
+ fi
+}
+
+src_install() {
+ default
+
+ if use emacs; then
+ cd "${S}"/contrib/xcscope || die
+ elisp-install ${PN} *.el *.elc
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}"
+ dobin cscope-indexer
+ fi
+
+ cd "${S}"/contrib/webcscope || die
+ docinto webcscope
+ dodoc INSTALL TODO cgi-lib.pl cscope hilite.c
+ docinto webcscope/icons
+ dodoc icons/*.gif
+}
+
+pkg_postinst() {
+ use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}
diff --git a/dev-util/cscope/files/50cscope-gentoo.el b/dev-util/cscope/files/50cscope-gentoo.el
new file mode 100644
index 000000000000..08fd4b449352
--- /dev/null
+++ b/dev-util/cscope/files/50cscope-gentoo.el
@@ -0,0 +1,34 @@
+(add-to-list 'load-path "@SITELISP@")
+
+(autoload 'cscope-minor-mode "xcscope")
+(autoload 'cscope-display-buffer "xcscope"
+ "Display the *cscope* buffer." t)
+(autoload 'cscope-display-buffer-toggle "xcscope"
+ "Toggle cscope-display-cscope-buffer, which corresponds to
+\"Auto display *cscope* buffer\"." t)
+(autoload 'cscope-next-symbol "xcscope"
+ "Move to the next symbol in the *cscope* buffer." t)
+(autoload 'cscope-next-file "xcscope"
+ "Move to the next file in the *cscope* buffer." t)
+(autoload 'cscope-prev-symbol "xcscope"
+ "Move to the previous symbol in the *cscope* buffer." t)
+(autoload 'cscope-prev-file "xcscope"
+ "Move to the previous file in the *cscope* buffer." t)
+(autoload 'cscope-pop-mark "xcscope"
+ "Pop back to where cscope was last invoked." t)
+(autoload 'cscope-set-initial-directory "xcscope"
+ "Set the cscope-initial-directory variable." t)
+(autoload 'cscope-unset-initial-directory "xcscope"
+ "Unset the cscope-initial-directory variable." t)
+(autoload 'cscope-find-this-symbol "xcscope"
+ "Locate a symbol in source code." t)
+(autoload 'cscope-find-global-definition "xcscope"
+ "Find a symbol's global definition." t)
+(autoload 'cscope-find-global-definition-no-prompting "xcscope"
+ "Find a symbol's global definition without prompting." t)
+
+(defun cscope:hook ()
+ (cscope-minor-mode))
+(add-hook 'c-mode-hook 'cscope:hook)
+(add-hook 'c++-mode-hook 'cscope:hook)
+(add-hook 'dired-mode-hook 'cscope:hook)
diff --git a/dev-util/cscope/files/cscope-15.6-darwin.patch b/dev-util/cscope/files/cscope-15.6-darwin.patch
new file mode 100644
index 000000000000..e755f3257efd
--- /dev/null
+++ b/dev-util/cscope/files/cscope-15.6-darwin.patch
@@ -0,0 +1,11 @@
+--- a/src/constants.h
++++ b/src/constants.h
+@@ -103,7 +103,7 @@
+ #define INCLUDES 8
+ #define FIELDS 9
+
+-#if (BSD || V9) && !__NetBSD__ && !__FreeBSD__
++#if (BSD || V9) && !__NetBSD__ && !__FreeBSD__ && !__MACH__
+ # define TERMINFO 0 /* no terminfo curses */
+ #else
+ # define TERMINFO 1
diff --git a/dev-util/cscope/files/cscope-15.7a-ocs-sysdir.patch b/dev-util/cscope/files/cscope-15.7a-ocs-sysdir.patch
new file mode 100644
index 000000000000..6b4c17fe9145
--- /dev/null
+++ b/dev-util/cscope/files/cscope-15.7a-ocs-sysdir.patch
@@ -0,0 +1,23 @@
+http://bugs.gentoo.org/269305
+
+--- cscope-15.7a-orig/contrib/ocs 2004-06-21 20:13:22.000000000 +0200
++++ cscope-15.7a/contrib/ocs 2009-05-11 22:33:51.000000000 +0200
+@@ -75,17 +75,10 @@
+
+ #set the default value for SYSDIR
+ if [ -z "${SYSDIR}" ]; then
+- SYSDIR=/usr/local/lib/cs
++ SYSDIR=/var/lib/cs
+ echo setting default sysdir
+ fi
+
+-#check that SYSDIR exists
+-if [ ! -d ${SYSDIR} ]; then
+- echo -n $SYSDIR does not exist.
+- echo Please create the directory and set SYSDIR appropriately
+- exit
+-fi
+-
+ # Check that cscope is in PATH
+ type cscope 1>/dev/null 2>&1
+
diff --git a/dev-util/cscope/metadata.xml b/dev-util/cscope/metadata.xml
new file mode 100644
index 000000000000..d474ab0ab2b1
--- /dev/null
+++ b/dev-util/cscope/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="project">
+ <email>vim@gentoo.org</email>
+ <name>Gentoo Vim Project</name>
+</maintainer>
+<maintainer type="project">
+ <email>gnu-emacs@gentoo.org</email>
+ <name>Gentoo GNU Emacs project</name>
+</maintainer>
+<longdescription>
+ Cscope is a developer's tool for browsing source code. Cscope allows
+ searching code for:
+
+ * cross referenced symbols
+ * global definitions
+ * callees and callers
+ * text strings and regular expression patterns
+ * files and files including a file
+
+ Other features:
+
+ * curses based (text screen)
+ * fast searches
+ * fuzzy parser supports C and is flexible enough to be useful for
+ C++, Java and other documents
+ * command line mode for inclusion in scripts or as a backend to GUIs
+
+ Cscope is distributed with xcscope which provides tight integration
+ with GNU Emacs.
+</longdescription>
+<upstream>
+ <remote-id type="sourceforge">cscope</remote-id>
+</upstream>
+</pkgmetadata>
diff --git a/dev-util/csup/Manifest b/dev-util/csup/Manifest
new file mode 100644
index 000000000000..989771555b2a
--- /dev/null
+++ b/dev-util/csup/Manifest
@@ -0,0 +1,6 @@
+AUX csup-20060318-respectflags.patch 1374 SHA256 abae4744ccd06a4ad312c2bd359dcdb8299c2bbc091c8d1097613616631ca320 SHA512 e112fd37dae7f037e7700579ab59e8611b5f09f0d8351bd2c909e22e393b05f697a51348fab79ba95d31e28b727e62b4a4ce2f8dc22402ac16efcfa4204a1d8b WHIRLPOOL 7c687a25650e10779e7be9fb2dc3fde31e00b8f885c1f27099736187e98c8a979c87f265405d25c7fd3202542521b3afad1c1c5204408132b03e2e31adabd620
+DIST csup-snap-20060318.tgz 78968 SHA256 81a9695be6cf989de6fb2e4fe53d6efadb003cd842cf6993844a52fc8190a7fc SHA512 60e40f6f903df81b1667af31397978ce99d33b6849dd2476232b325415a391e6840a29e70af85b928a3c7beea55cf3064d3b48d61b9c20c2280dc3f675adcd5a WHIRLPOOL 52236475e56ea2a2ebc84f1d67b2327f1ab2d78fcde82133a4e5725a88bb62c3802a2fa030f1f67b14f35c8d5db380ac4361af4e4d063a39ed2ebe6b994f51c6
+EBUILD csup-20060318.ebuild 930 SHA256 6a2cac97731ac3fd17f1b7e920efccd962c62510c069dfbc5b0be60ef7601cad SHA512 706fd7a94680d804a91346f52f04f708979241106056127990ef2552fd6232d1fe173f8a190c4baaa108e65dfed302a15d36673bfde34984a4a1e0a325d4f43d WHIRLPOOL 0eda3943b47fab943ea4b3b5cd9280985a0a302546c153a19046c9857a41483d2774a0feca06228d20bfe329bcf66a19bda997cbf81e4c0838bb0c4d66487fc5
+MISC ChangeLog 2858 SHA256 b2890021d685a689c5ff961692fc921e6da807e020b956999322d630cdbef987 SHA512 91dd68de10fd8b476e860f36e7028f5e5f00f55eacd2aea412525b73be1a92390ee4dfe11e64c9dae113b3bcf99ddd5a5879418999b55c56230064aca436c108 WHIRLPOOL ba3e1254b2c01a9b08d88e647003ca314d08eb54042e4f4e9188e0d77a0ef28e0246701a3baa3d3bd6f9e94a8f1ecdbb2036f30a8ce85eb288489d8ca04dbcd0
+MISC ChangeLog-2015 1096 SHA256 86c318bf6a3899715798d2f245156bf750ae9a7b42c6c2653e3ad81111c3b291 SHA512 4046f655ab56965a04b5e343a59829c9c9aacba1339ead1b2a2333c4af53d0e5670d9898313a6afb6a091e32eb5c5a2ec0f29bd16ee168a921f8ca3b75a391f3 WHIRLPOOL 4e6b6071f1aa7591a43971383a49051e04365f6fab017021f4a5a84c0393dc224491a755f67aa3207de8e12b8126afd681b1c7dbfe0e9e160fbaa8bbb122bffc
+MISC metadata.xml 238 SHA256 501d93b0c41ed422505100f002758cd173cd9783ae7fbb53e2ec5f238c868340 SHA512 173efaa53a514acf1e2f0c6681c82a48ec16d505844f551d2cc823ee8685b27837c7461f7956c12182059ee7e83023e2f0bcd5d1afab74beeaf998487193656d WHIRLPOOL 4ca51d994f011a5e7e4939f02a54b5c2f9f3e526665893c9ac2876c9871b7dc80361393d41c5247b3a5520e82d31d0dd10da520e7715c94b806a94ce0fed2a5a
diff --git a/dev-util/csup/csup-20060318.ebuild b/dev-util/csup/csup-20060318.ebuild
new file mode 100644
index 000000000000..7aa63bfffd12
--- /dev/null
+++ b/dev-util/csup/csup-20060318.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit toolchain-funcs eutils
+
+DESCRIPTION="A rewrite of CVSup"
+HOMEPAGE="http://www.mu.org/~mux/csup.html"
+SRC_URI="http://mu.org/~mux/csup-snap-${PV}.tgz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd"
+IUSE=""
+
+DEPEND="dev-libs/openssl
+ sys-libs/zlib"
+
+RDEPEND="${DEPEND}
+ !>=sys-freebsd/freebsd-ubin-6.2_beta1"
+
+DEPEND="${DEPEND}
+ >=sys-devel/bison-2.1"
+
+S="${WORKDIR}/${PN}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}/${P}-respectflags.patch"
+}
+
+src_compile() {
+ # unable to work with yacc, but bison is ok.
+ emake \
+ CC="$(tc-getCC)" \
+ PREFIX=/usr YACC=bison || die "emake failed"
+}
+
+src_install() {
+ # instead of using make install, just copy the stuff directly
+ dobin csup || die "failed to install executable"
+ doman csup.1 || die "failed to install man page"
+ dodoc README
+}
diff --git a/dev-util/csup/files/csup-20060318-respectflags.patch b/dev-util/csup/files/csup-20060318-respectflags.patch
new file mode 100644
index 000000000000..c95a974c75ed
--- /dev/null
+++ b/dev-util/csup/files/csup-20060318-respectflags.patch
@@ -0,0 +1,43 @@
+Index: csup/GNUmakefile
+===================================================================
+--- csup.orig/GNUmakefile
++++ csup/GNUmakefile
+@@ -21,7 +21,7 @@ WARNS= -Wall -W -Wno-unused-parameter -W
+ -Wcast-align -Wunused-parameter -Wchar-subscripts -Winline \
+ -Wnested-externs -Wredundant-decls -Wno-format-y2k
+
+-CFLAGS+= -g -O -pipe -DNDEBUG -I$(PREFIX)/include
++CFLAGS+= -I$(PREFIX)/include
+ ifeq ($(UNAME), Linux)
+ CFLAGS+= -D_XOPEN_SOURCE -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
+ endif
+@@ -29,14 +29,14 @@ ifeq ($(UNAME), Darwin)
+ CFLAGS+= -DHAVE_FFLAGS
+ endif
+ CFLAGS+= $(WARNS)
+-LDFLAGS= -L$(PREFIX)/lib -lcrypto -lz -lpthread
++LIBS= -L$(PREFIX)/lib -lcrypto -lz -lpthread
+
+ .PHONY: all clean install
+
+ all: csup csup.1.gz
+
+ csup: $(OBJS)
+- $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
++ $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $^ $(LIBS)
+
+ config.c: parse.h
+
+Index: csup/Makefile
+===================================================================
+--- csup.orig/Makefile
++++ csup/Makefile
+@@ -11,7 +11,7 @@ SRCS= attrstack.c config.c detailer.c di
+ globtree.c idcache.c keyword.c lister.c main.c misc.c mux.c parse.y \
+ pathcomp.c proto.c status.c stream.c threads.c token.l updater.c
+
+-CFLAGS+= -I. -I${.CURDIR} -g -pthread -DHAVE_FFLAGS -DNDEBUG
++CFLAGS+= -I. -I${.CURDIR} -pthread -DHAVE_FFLAGS
+ WARNS?= 6
+
+ # A bit of tweaking is needed to get this Makefile working
diff --git a/dev-util/csup/metadata.xml b/dev-util/csup/metadata.xml
new file mode 100644
index 000000000000..a00f3aeb1f81
--- /dev/null
+++ b/dev-util/csup/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="project">
+ <email>bsd@gentoo.org</email>
+ <name>BSD Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/dev-util/ctags/Manifest b/dev-util/ctags/Manifest
new file mode 100644
index 000000000000..6f95323d2fda
--- /dev/null
+++ b/dev-util/ctags/Manifest
@@ -0,0 +1,8 @@
+AUX ctags-20161028-automagic-deps.patch 2079 SHA256 0166903f2dda62b174a9aa638b14ba4493a82d7088784b67ec03575fa55a828c SHA512 cb9639f7d17bcaedc720774ece7386608b39a91e44cc0aa9cd4359894a5fb06ae29a03b21bc913a110864161f8df623b82477e0d23265bdee88d13aba6c88535 WHIRLPOOL 494dd82fb69c8580c3f25372aef6e30f6c1fd7d21eb0df1e5bbaac34724d654d0c6bea2cffa62288b3843e6a00ec59c5417774f9817fac8c8913ee077cb60e70
+DIST ctags-20161028.tar.xz 852108 SHA256 8c10b3728ed90793fa25e5225e8cf56ee0a01b5da6d2bcdccd97e8ec0db2da4e SHA512 2b991ca47fc77d26da43f55753624d1b21363dbeec4aff3daa57762ff81df97b18b067e8989f5d92d36dd8c02abc04ad42296dd5da3659ae0c8901001287c75e WHIRLPOOL ac8b51f9d453c7d5ae52044d711949112f0523c61c5de12827188c694f616c5108ff4af86e2b810da859b88ba9ada1a9f9d36ba52060ebb16ed570f185caea95
+DIST ctags-20170704.tar.gz 1295281 SHA256 280b8689285dd0960364139661529e665bff39a6e234fa522ac2a1d79d512456 SHA512 6ed134347a4be16a5dcff35186bd949e73bea645908a5ac43082b92fdfa6040b0b99ea04590948ae8308d4e9eb1042c83a4f0df006709f15cebfbf0741d73641 WHIRLPOOL c6c02cba5d36326dab720e203e2cfdf2be96a3ccf3c1048aaf459c45e8d579fbd21e45f0efa413a16327521a5a140fe3a2ba81f695f7b5d9a2f53207d50ddec3
+EBUILD ctags-20161028.ebuild 1740 SHA256 58d39e5b74438c82dd6662eea4fc1c800cc9f43d251463cc406e67f23543dc61 SHA512 283d385cd584b2d6a75f24bfa7160eaee391527b696581f4376268cb427f2a1fed36a5549ce5a3d93f9c859a970523b8a3aa8b26e422d63afd32ef0c79fb6523 WHIRLPOOL 10252b41beb8879616ee991e6b6a0e4add95a645cea6501b6b7d2f627844972dde1c5d81a560c8efa57daad14c18350e0b02da5c6c5a64845475572a45768957
+EBUILD ctags-20170704.ebuild 1876 SHA256 614644d80acf90d203a5eec0e34b43a613b95d7a97e73e5fdb3696839a50865e SHA512 88a375e118f5e7290ec9b3585146a6410fea98003379664ccf7995d439114fe198e460b53f6c941d975157769af12b6f2aeac612029c9d3df205581cf6ebb4d8 WHIRLPOOL 521d69e656c972f0530ab2bd5acf8c1d987e457b5791d8777a452ad738099a22f1883295bcd4e9f1990ac5af3ddf08424d03723c3a253b536cb73dd7a45ef716
+MISC ChangeLog 4881 SHA256 026b3d5a60e80a2983985de0daae7050ca6bc674e4bca3cb0cbe8ff30a49d70c SHA512 66800bceba1b386f07f1d77f2918428c0b03e0eb83610b7ea3859553f3acf380c92b62c4e66bfcd85fc2867405c8a0533a50237f4b65fe886ebd1baca8af8a60 WHIRLPOOL 05f35ede0c7403962ee054fd07e08cbfdd626587c0017d001264add36ce157d7e0211226ddb4696316d6afb0bed5b717209fc4ca79970c7cd877b31f36d779a7
+MISC ChangeLog-2015 11868 SHA256 850c3686d91c02c8c4a166ce52019fa4fccc7155b0c0e1d7cff0c544f3cdf08d SHA512 c4281945efeb27d1d071597484288f43cb1dce40a86a161d6e17c8b178610bc4cf57e60219e1ec346f130a117728c2b21198ce82cf3c586babd457c9be410b8e WHIRLPOOL 40f340e44846ccbfc70c106b1f5d3c0bb78ae65c159df82db052bd38c4a5d442013d8d09477da1305f1c6326e4a30adabd12ca23d6ce5ef010834f4cb0fb1ddb
+MISC metadata.xml 583 SHA256 30a99cd7a8d3a6d6364c744cda6d77f0459e2b6ea7e2da688f96ba8974eebb66 SHA512 df8ae31fbbb4546f21c3c06110bc6630f392cbbd937e2ccc3c504e08835e56ac2e7d8156686755217140906cc806001a18627778af0e09d753e50c9a47de28b5 WHIRLPOOL 23a19fa29510321e1fecf588d23faf4d724952254d32ace2f3f9034b4fcf3c15473d08d82774b2d99cc4d19d642846ecc469bab217807de1949d00953811f0a2
diff --git a/dev-util/ctags/ctags-20161028.ebuild b/dev-util/ctags/ctags-20161028.ebuild
new file mode 100644
index 000000000000..7955990dfe10
--- /dev/null
+++ b/dev-util/ctags/ctags-20161028.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Exuberant Ctags creates tags files for code browsing in editors"
+HOMEPAGE="https://ctags.io/ https://github.com/universal-ctags/ctags"
+SRC_URI="https://dev.gentoo.org/~radhermit/vim/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE="json xml yaml"
+
+COMMON_DEPEND="
+ json? ( dev-libs/jansson )
+ xml? ( dev-libs/libxml2:2 )
+ yaml? ( dev-libs/libyaml )
+"
+RDEPEND="
+ ${COMMON_DEPEND}
+ app-eselect/eselect-ctags
+"
+DEPEND="
+ ${COMMON_DEPEND}
+ dev-python/docutils
+ virtual/pkgconfig
+"
+
+PATCHES=( "${FILESDIR}"/${P}-automagic-deps.patch )
+
+src_prepare() {
+ default
+ ./autogen.sh || die
+}
+
+src_configure() {
+ econf \
+ $(use_enable json) \
+ $(use_enable xml) \
+ $(use_enable yaml) \
+ --disable-readlib \
+ --disable-etags \
+ --enable-tmpdir="${EPREFIX}"/tmp
+}
+
+src_install() {
+ emake prefix="${ED}"/usr mandir="${ED}"/usr/share/man install
+
+ # namepace collision with X/Emacs-provided /usr/bin/ctags -- we
+ # rename ctags to exuberant-ctags (Mandrake does this also).
+ mv "${ED}"/usr/bin/{ctags,exuberant-ctags} || die
+ mv "${ED}"/usr/share/man/man1/{ctags,exuberant-ctags}.1 || die
+}
+
+pkg_postinst() {
+ eselect ctags update
+
+ if [[ -z "$REPLACING_VERSIONS" ]]; then
+ elog "You can set the version to be started by /usr/bin/ctags through"
+ elog "the ctags eselect module. \"man ctags.eselect\" for details."
+ fi
+}
+
+pkg_postrm() {
+ eselect ctags update
+}
diff --git a/dev-util/ctags/ctags-20170704.ebuild b/dev-util/ctags/ctags-20170704.ebuild
new file mode 100644
index 000000000000..09d17b8df337
--- /dev/null
+++ b/dev-util/ctags/ctags-20170704.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools
+
+COMMITHASH="0645b2c833e4ca956970cc96fab32a1b04c0c55c"
+
+DESCRIPTION="Exuberant Ctags creates tags files for code browsing in editors"
+HOMEPAGE="https://ctags.io/ https://github.com/universal-ctags/ctags"
+SRC_URI="https://github.com/universal-ctags/ctags/archive/${COMMITHASH}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE="json xml yaml"
+
+CDEPEND="
+ json? ( dev-libs/jansson )
+ xml? ( dev-libs/libxml2:2 )
+ yaml? ( dev-libs/libyaml )
+"
+
+RDEPEND="
+ ${CDEPEND}
+ app-eselect/eselect-ctags
+"
+
+DEPEND="
+ ${CDEPEND}
+ dev-python/docutils
+ virtual/pkgconfig
+"
+
+S="${WORKDIR}/${PN}-${COMMITHASH}"
+
+src_prepare() {
+ default
+ ./misc/dist-test-cases > makefiles/test-cases.mak || die
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_enable json) \
+ $(use_enable xml) \
+ $(use_enable yaml) \
+ --disable-readlib \
+ --disable-etags \
+ --enable-tmpdir="${EPREFIX}"/tmp
+}
+
+src_install() {
+ emake prefix="${ED}"/usr mandir="${ED}"/usr/share/man install
+
+ # namepace collision with X/Emacs-provided /usr/bin/ctags -- we
+ # rename ctags to exuberant-ctags (Mandrake does this also).
+ mv "${ED}"/usr/bin/{ctags,exuberant-ctags} || die
+ mv "${ED}"/usr/share/man/man1/{ctags,exuberant-ctags}.1 || die
+}
+
+pkg_postinst() {
+ eselect ctags update
+
+ if [[ -z "$REPLACING_VERSIONS" ]]; then
+ elog "You can set the version to be started by /usr/bin/ctags through"
+ elog "the ctags eselect module. \"man ctags.eselect\" for details."
+ fi
+}
+
+pkg_postrm() {
+ eselect ctags update
+}
diff --git a/dev-util/ctags/files/ctags-20161028-automagic-deps.patch b/dev-util/ctags/files/ctags-20161028-automagic-deps.patch
new file mode 100644
index 000000000000..980d7d1c5ac5
--- /dev/null
+++ b/dev-util/ctags/files/ctags-20161028-automagic-deps.patch
@@ -0,0 +1,65 @@
+Add options to control libxml2, jansson, and libyaml automagic deps.
+
+--- a/configure.ac
++++ b/configure.ac
+@@ -585,30 +585,48 @@
+ AC_CHECK_FUNCS(fork waitpid execv pipe,[enable_xcmd=yes],[enable_xcmd=no])
+ AM_CONDITIONAL([ENABLE_XCMD], [test "xyes" = "x$enable_xcmd"])
+
++AC_ARG_ENABLE([xml],
++ [AS_HELP_STRING([--enable-xml],
++ [enable xml support [no]])])
++
+ AH_TEMPLATE([HAVE_LIBXML],
+ [Define this value if libxml is available.])
+ dnl About the condition of version
+ dnl see https://mail.gnome.org/archives/xml/2010-February/msg00008.html
+-PKG_CHECK_MODULES(LIBXML, [libxml-2.0 >= 2.7.7],
+- [have_libxml=yes
+- AC_DEFINE(HAVE_LIBXML)],
+- [have_libxml=no])
++AS_IF([test "${enable_xml}" = "yes"], [
++ PKG_CHECK_MODULES(LIBXML, [libxml-2.0 >= 2.7.7],
++ [have_libxml=yes
++ AC_DEFINE(HAVE_LIBXML)],
++ [AC_MSG_ERROR([libxml2 not found])])
++])
+ AM_CONDITIONAL(HAVE_LIBXML, test "x$have_libxml" = xyes)
+
++AC_ARG_ENABLE([json],
++ [AS_HELP_STRING([--enable-json],
++ [enable json support [no]])])
++
+ AH_TEMPLATE([HAVE_JANSSON],
+ [Define this value if jansson is available.])
+-PKG_CHECK_MODULES(JANSSON, jansson,
+- [have_jansson=yes
+- AC_DEFINE(HAVE_JANSSON)],
+- [have_jansson=no])
++AS_IF([test "${enable_json}" = "yes"], [
++ PKG_CHECK_MODULES(JANSSON, jansson,
++ [have_jansson=yes
++ AC_DEFINE(HAVE_JANSSON)],
++ [AC_MSG_ERROR([jansson not found])])
++])
+ AM_CONDITIONAL(HAVE_JANSSON, test "x$have_jansson" = xyes)
+
++AC_ARG_ENABLE([yaml],
++ [AS_HELP_STRING([--enable-yaml],
++ [enable yaml support [no]])])
++
+ AH_TEMPLATE([HAVE_LIBYAML],
+ [Define this value if libyaml is available.])
+-PKG_CHECK_MODULES(LIBYAML, yaml-0.1,
+- [have_libyaml=yes
+- AC_DEFINE(HAVE_LIBYAML)],
+- [have_libyaml=no])
++AS_IF([test "${enable_yaml}" = "yes"], [
++ PKG_CHECK_MODULES(LIBYAML, yaml-0.1,
++ [have_libyaml=yes
++ AC_DEFINE(HAVE_LIBYAML)],
++ [AC_MSG_ERROR([libyaml not found])])
++])
+ AM_CONDITIONAL(HAVE_LIBYAML, test "x$have_libyaml" = xyes)
+
+
diff --git a/dev-util/ctags/metadata.xml b/dev-util/ctags/metadata.xml
new file mode 100644
index 000000000000..60fa8ffe0294
--- /dev/null
+++ b/dev-util/ctags/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="project">
+ <email>vim@gentoo.org</email>
+ <name>Gentoo Vim Project</name>
+ </maintainer>
+ <use>
+ <flag name="json">Enable JSON output support</flag>
+ <flag name="xml">Enable XML parsing support</flag>
+ <flag name="yaml">Enable YAML parsing support</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">gnuada</remote-id>
+ <remote-id type="github">universal-ctags/ctags</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/cucumber-core/Manifest b/dev-util/cucumber-core/Manifest
new file mode 100644
index 000000000000..311d7b582fc2
--- /dev/null
+++ b/dev-util/cucumber-core/Manifest
@@ -0,0 +1,7 @@
+DIST cucumber-core-1.5.0.gem 45056 SHA256 594a30969a33f03693915db7eaa2a137e45fed76d9ae19ed7b96a4bbb1764262 SHA512 544d2c5707bde46d0c12dc975b3858e663776d9bc87ef044681525a547ef2de171a74ba0c53fb28dafcbdf90a153bea5357ec1a129f11b2c0dfedd288c5def74 WHIRLPOOL 7e703d2f7b6131417e0895ee27c0efd511fb98a600a607292e4e9f77e1ca45f7241746b42c4509458b624992a00a60e850f12f8623110359fc0f17a015d37fbe
+DIST cucumber-core-3.0.0.gem 52736 SHA256 14877556e8f05aae857f2f2a5356cb96dfabf40e244a2544c57d2d6f54b71b9f SHA512 2991bc8e2f3f5042b10cd430273dd1fd4c851ee444defbdfdf16ba920f93c6523e1b503c562438691947a969c95c8f65416a69c4fdf1fe876ad0c274982b9e75 WHIRLPOOL 75cf647046d29a17ce430f542a51c2d96be1e8de1ff3abb6a8cf49c1c531cc04fa0619fed8c47edca411173085df0aee746f1a5904e4ebc5637d22231a5e0bc4
+EBUILD cucumber-core-1.5.0.ebuild 721 SHA256 c98536ac86852e656aa7aad7a6256984b43c45b4a990c6e19e5405407d9311c9 SHA512 51ec60b0442ac8c42d1cc67b580d480af1f00e2bb3be71adb7d6427a73c9e0267e14d8b70267d292dd9323a9d8b3719b7357135aadbada16fa35f60d894307d2 WHIRLPOOL a6052c7d63852318f71732e583e78cc95795a08f23c2e6f4809428c42d9b67e65ffb92d0be45111e4f22bb056b8ec6280013025c406a340364f5edc94ca288d1
+EBUILD cucumber-core-3.0.0.ebuild 761 SHA256 144dcb763edf52981c1a720a3d2032e73ec453227a99df70cf36ed0af4434b1b SHA512 528444466996401e8d2391fa9aa2f5ab092df27677258c7e978a54fb01ab630476b1f9a9fe5b5edccefbe2b7d9698898c54681290d310bbae86f924f1ed52aee WHIRLPOOL 5eb649671cf17be89def42336b9193cb3ce62be2b5d3be851d24f6c218a707eade3de4ec4e6a3b07c1a446ba60b0208323cda0c8c12be77cd6076391370cd1d7
+MISC ChangeLog 3849 SHA256 28246db2b11bae2dbe5a78b2f408c61644c41839e353c4e43847cfa064f6a673 SHA512 013addf4c819b16e4ab9921b2fda51ed693635a4f7103a0baaaf54093f207e6d4cdeccc05bd900df17df9185ee257b295167a9a18a8fb2a0250e7f1cca45f38a WHIRLPOOL 83644ef9bca4987793386e7718dc7f1a39e99ba12dbdd83285c4944e1f0d6a73da48c2ce11141c42145737adb62b5ac8204ae5c41b57623db284a323ba309989
+MISC ChangeLog-2015 651 SHA256 c9eff78d8d84d08c6725f7b0e1d16ee0367346c586a8a48cdaadefc8e4adcd4a SHA512 41f20674306d16f03735774af7fb37df9d7a672b91800233f67295479e7a34d26545bcb0f587761638314da73eb59125c6993159941b445022366f8c1aa49155 WHIRLPOOL 448beb7c774f608196416e68c9511de68539bebaa915d728520abfa75661b8b2f0b1356ea279cd03b6e03ca14e71af5f7552f0659ba4e20bb1f50777cda98209
+MISC metadata.xml 304 SHA256 7f823b1d310a6e26f4e7bb4698b5f31f1935503b6dca00bdd209d2dcb66539b9 SHA512 1e0e844510269d137017ff7ecbe1b98c9542f7264ec0e5b8858119f06887720645c0d968228825d91fcb69016b78d7f7c7d344482f08c3fe0dd6cc3df4f52902 WHIRLPOOL 3d8b4bd989e56fc12449fd597c2749f05b3ecd6bb40604f72255cf51abe5141713ec097efd6914b6dba6b405ad13b9a3940170b13578ab74ee251d8229ac6df2
diff --git a/dev-util/cucumber-core/cucumber-core-1.5.0.ebuild b/dev-util/cucumber-core/cucumber-core-1.5.0.ebuild
new file mode 100644
index 000000000000..0b27f2f09383
--- /dev/null
+++ b/dev-util/cucumber-core/cucumber-core-1.5.0.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+USE_RUBY="ruby22 ruby23 ruby24"
+
+RUBY_FAKEGEM_RECIPE_DOC="rdoc"
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+RUBY_FAKEGEM_EXTRADOC="HISTORY.md README.md"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Executable feature scenarios"
+HOMEPAGE="https://github.com/aslakhellesoy/cucumber/wikis"
+LICENSE="Ruby"
+
+KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~x86"
+SLOT="0"
+IUSE="test"
+
+ruby_add_bdepend "
+ test? (
+ >=dev-ruby/unindent-1.0
+ )"
+
+ruby_add_rdepend "
+ >=dev-ruby/gherkin-4.0:4
+"
+
+all_ruby_prepare() {
+ # Avoid dependency on kramdown to keep dependency list manageable for all arches.
+ rm -f spec/readme_spec.rb || die
+}
diff --git a/dev-util/cucumber-core/cucumber-core-3.0.0.ebuild b/dev-util/cucumber-core/cucumber-core-3.0.0.ebuild
new file mode 100644
index 000000000000..2d7c5b6b7b33
--- /dev/null
+++ b/dev-util/cucumber-core/cucumber-core-3.0.0.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+USE_RUBY="ruby22 ruby23 ruby24"
+
+RUBY_FAKEGEM_RECIPE_DOC="rdoc"
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Executable feature scenarios"
+HOMEPAGE="https://github.com/aslakhellesoy/cucumber/wikis"
+LICENSE="Ruby"
+
+KEYWORDS="~amd64"
+SLOT="3.0"
+IUSE="test"
+
+ruby_add_bdepend "
+ test? (
+ >=dev-ruby/unindent-1.0
+ )"
+
+ruby_add_rdepend "
+ >=dev-ruby/backports-3.8.0
+ >=dev-util/cucumber-tag_expressions-1.0.1
+ >=dev-ruby/gherkin-4.1.3
+"
+
+all_ruby_prepare() {
+ # Avoid dependency on kramdown to keep dependency list manageable for all arches.
+ rm -f spec/readme_spec.rb || die
+}
diff --git a/dev-util/cucumber-core/metadata.xml b/dev-util/cucumber-core/metadata.xml
new file mode 100644
index 000000000000..06c13e2d2e33
--- /dev/null
+++ b/dev-util/cucumber-core/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>graaff@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">aslakhellesoy/cucumber</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/cucumber-expressions/Manifest b/dev-util/cucumber-expressions/Manifest
new file mode 100644
index 000000000000..a944d2972b90
--- /dev/null
+++ b/dev-util/cucumber-expressions/Manifest
@@ -0,0 +1,5 @@
+DIST cucumber-expressions-4.0.3.gem 16384 SHA256 f7ea9e2f319e31620a87cf98d775ad0427cf420c11d9f1f51284c7d01e29b539 SHA512 90dfbab08359a8fcfface4c3a885eadeaaab7df848c3c20a4d85b62a12b42cd449c259134147eae9d44ede51dc8100f4187d63945576985c1ccd62346cfc2f19 WHIRLPOOL 614dae9cc6c2b9a58ac49c9a222c18b42eeb4a537ad61ba3f54b1c02abb1b29a6282b074869abf3f94b3dcfa6c81e46cd2be0cdfcb5773886fa3e5c04c329afc
+DIST cucumber-expressions-4.0.4.gem 16896 SHA256 2ee3bae739312cab3d86527c0740bdaa94f35dec31e2a1d28f2d97d95f268f4f SHA512 9a52b866545154c9e7d4e8f08cbbf6b2d0dcee28c24486eb95ad4717a757a25ae8ac844702dd2e0c892fa0406f686d3b4eb024c90fc6e7b90be7a6edd7e2dadc WHIRLPOOL 144cf0578c534433f68c695ca0f287045de08bb5943d341c90b87a8861a3c6ef4d65059bdea350f03e2b566a45d9baa33ce40fb94123806e555f88a3f7b9040e
+EBUILD cucumber-expressions-4.0.3.ebuild 445 SHA256 5fcce188d921030da4428869fa321245dd22bacad3eb431549f9ef29fb98401d SHA512 a2796fe49198e5289542ec38b5705fc19b7c6ea527d6536e47d9e7581bb1fd9c326c07defd965cd21abf8b6a0d7b7bc07fb247ca81ac04993c6c1825f1784bf1 WHIRLPOOL f9d6e6040b7ff835dd1af1eee052e0676c86642400382139635e2a1e57d47ad1e43c3b953d4f73da4b120d1631d74a5be93a14bdf7cf117c59b862725965214e
+EBUILD cucumber-expressions-4.0.4.ebuild 445 SHA256 5fcce188d921030da4428869fa321245dd22bacad3eb431549f9ef29fb98401d SHA512 a2796fe49198e5289542ec38b5705fc19b7c6ea527d6536e47d9e7581bb1fd9c326c07defd965cd21abf8b6a0d7b7bc07fb247ca81ac04993c6c1825f1784bf1 WHIRLPOOL f9d6e6040b7ff835dd1af1eee052e0676c86642400382139635e2a1e57d47ad1e43c3b953d4f73da4b120d1631d74a5be93a14bdf7cf117c59b862725965214e
+MISC metadata.xml 299 SHA256 c63039fa6294d21a5a0d6f48b752ee029315095e01a647a5ee11dc6069f3f697 SHA512 b655a45650726e475ccae46d7bc062ba32c527277160c9033382684f6a7aed520220c6a197f7abb9dfe18f8ebea051b5fdcbfd10c744031f123ac684ce3225c7 WHIRLPOOL 399c3aaea815357250e07a3a6086b729f2815e76408489582f452ba9dba86219fbe236dd23a58c9286197b0a8b94181817095a46b0f212a4991c2ef21dbaa75a
diff --git a/dev-util/cucumber-expressions/cucumber-expressions-4.0.3.ebuild b/dev-util/cucumber-expressions/cucumber-expressions-4.0.3.ebuild
new file mode 100644
index 000000000000..bc89134f3f98
--- /dev/null
+++ b/dev-util/cucumber-expressions/cucumber-expressions-4.0.3.ebuild
@@ -0,0 +1,18 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+USE_RUBY="ruby22 ruby23 ruby24"
+
+RUBY_FAKEGEM_RECIPE_DOC="rdoc"
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+RUBY_FAKEGEM_EXTRADOC="README.md"
+
+inherit ruby-fakegem
+
+DESCRIPTION="a simpler alternative to Regular Expressions"
+HOMEPAGE="https://github.com/cucumber/cucumber-expressions-ruby#readme"
+LICENSE="MIT"
+
+KEYWORDS="~amd64"
+SLOT="4.0"
diff --git a/dev-util/cucumber-expressions/cucumber-expressions-4.0.4.ebuild b/dev-util/cucumber-expressions/cucumber-expressions-4.0.4.ebuild
new file mode 100644
index 000000000000..bc89134f3f98
--- /dev/null
+++ b/dev-util/cucumber-expressions/cucumber-expressions-4.0.4.ebuild
@@ -0,0 +1,18 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+USE_RUBY="ruby22 ruby23 ruby24"
+
+RUBY_FAKEGEM_RECIPE_DOC="rdoc"
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+RUBY_FAKEGEM_EXTRADOC="README.md"
+
+inherit ruby-fakegem
+
+DESCRIPTION="a simpler alternative to Regular Expressions"
+HOMEPAGE="https://github.com/cucumber/cucumber-expressions-ruby#readme"
+LICENSE="MIT"
+
+KEYWORDS="~amd64"
+SLOT="4.0"
diff --git a/dev-util/cucumber-expressions/metadata.xml b/dev-util/cucumber-expressions/metadata.xml
new file mode 100644
index 000000000000..cc08d19c6f5d
--- /dev/null
+++ b/dev-util/cucumber-expressions/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>graaff@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">cucumber/cucumber</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/cucumber-rails/Manifest b/dev-util/cucumber-rails/Manifest
new file mode 100644
index 000000000000..5fc3e3fa23cd
--- /dev/null
+++ b/dev-util/cucumber-rails/Manifest
@@ -0,0 +1,7 @@
+DIST cucumber-rails-1.4.5.gem 406016 SHA256 db127640c43fd1ccdda0d60a66af534235e9ce4504e1e20666ad9d6e5b316f7a SHA512 66ad3a23503a5f28202e13fd041ca8c75ee447c525daf4b4711cbf789c7ee924efaaabf9753173eb67b8d9fd201f08d2d2fa1905175b7615640d4f2861c92701 WHIRLPOOL 93406965de8bea61a4fb0129a90b896f8e0ef3d73f788754bd351f4bd820d4a524187281167188b282bf511f428dc7be08962f12c1d10bc747286a0d6905480c
+DIST cucumber-rails-1.5.0.gem 406528 SHA256 53bb8b5c7b177b7fd38f0084ec23caaf71b820f050538daf0dbd151613950e30 SHA512 d5a416cea8055319b768243b2029fcc05412677ba8fdc523b246d69e12d820e429b80892d6cfc43600aa84257e2175058ddd5f0946d68c42efa7ebadbf1a536d WHIRLPOOL d0ab0ffcf1addef778693f8a325bb6818e38b13aa9838ad564aca57a6173128ccc63d7b281babe5e363018d9898d9ffa18d3f0c2978c3af290139e0cd29ab06e
+EBUILD cucumber-rails-1.4.5.ebuild 1226 SHA256 78af230991712d8681051d7b6fef39928a02a6b421c1351492cb426730f78d37 SHA512 5c22f4a764aa3f5ce068fceb0ebcab23f603551cc121eddc892f9eea495e27f4ee7b4779ec6b54ca2a7d68432eee7e8e7ee3b098f456b1308b5ef9b3b6eda3a5 WHIRLPOOL 2a826db44a0c66f7b4722d13f0e88bbedcaca05e3d00f7a5d8ec86c0b5cb340d10608b2d58a3b7c187c7c2dd1e501b76691f484abe705012e58bf35fb94cb90a
+EBUILD cucumber-rails-1.5.0.ebuild 1215 SHA256 f9938ce96e641f8d00b45a65c4192e102d39a81304fce0650f5f24485b36156d SHA512 66b7579838f307e2da948b847e6da81794dbcc680af9799b4e1cd3bcbe2784ba790b4b2bddff60cdd7f83a20ec84b72294100dc3674ef6b3e05585d2ed3f9056 WHIRLPOOL dfed2218b1589be589217360d84aec9bd85e6cc1d68a2eb3f7e92d2ea77b557fd27c5ef1155e56464b2d9716b2dba5cde2efd05ad31ce177e1e46d79dcc7b5be
+MISC ChangeLog 3082 SHA256 d9c800b081c06205f9dfd56857d771278255b983d91da113e289449d541b6f91 SHA512 b96beade9541f070749ca5c3ff402787bd7c0f46c9b8fd4bb67f9ba4a178e0a1b9100553b2f8560ffa64353f8c699317a3aa72fb91dad4960bd87122afce3853 WHIRLPOOL d4b15eebc21281e7135d1b371bf403b46e6e08cf9b8aec673221e1820c411da165aef65d2cc4b935dc75aa50f09a8103116934bd511c66832c8bc2c2dda267a4
+MISC ChangeLog-2015 5174 SHA256 029db9c25aa3288761afb18cda1e52bc6de7721a62483a3ebd194c7dda7d45a7 SHA512 3fe812d5cdddba009695314f40e964e70479ee8ac3bbd149938eff0c87f8c58b0e47bc1391209eaecca196049be4ed28b5b3ff2216aa7c70ab0932b8b595cdb0 WHIRLPOOL 08fe015a96d3b42167475f565cb4d4b089370e274acdfca70210dfd02d16b3553671bd366f66f0fde69ef30bc584c2735125fe927920a715cdb23250f31b5481
+MISC metadata.xml 299 SHA256 c63039fa6294d21a5a0d6f48b752ee029315095e01a647a5ee11dc6069f3f697 SHA512 b655a45650726e475ccae46d7bc062ba32c527277160c9033382684f6a7aed520220c6a197f7abb9dfe18f8ebea051b5fdcbfd10c744031f123ac684ce3225c7 WHIRLPOOL 399c3aaea815357250e07a3a6086b729f2815e76408489582f452ba9dba86219fbe236dd23a58c9286197b0a8b94181817095a46b0f212a4991c2ef21dbaa75a
diff --git a/dev-util/cucumber-rails/cucumber-rails-1.4.5.ebuild b/dev-util/cucumber-rails/cucumber-rails-1.4.5.ebuild
new file mode 100644
index 000000000000..049436501e4a
--- /dev/null
+++ b/dev-util/cucumber-rails/cucumber-rails-1.4.5.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+USE_RUBY="ruby20 ruby21 ruby22 ruby23"
+
+RUBY_FAKEGEM_TASK_DOC=""
+
+# There are also cucumber features. They require a Rails project with
+# factory girl which we don't have packaged yet.
+RUBY_FAKEGEM_RECIPE_TEST="rspec"
+
+RUBY_FAKEGEM_EXTRADOC="History.md README.md"
+
+RUBY_FAKEGEM_GEMSPEC="cucumber-rails.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Executable feature scenarios for Rails"
+HOMEPAGE="https://github.com/cucumber/cucumber/wikis"
+LICENSE="Ruby"
+
+KEYWORDS="~amd64"
+SLOT="1"
+IUSE=""
+
+# Restrict tests since Appraisal is now mandatory to manage different
+# rails versions, even for the specs.
+RESTRICT="test"
+#ruby_add_bdepend "
+# test? (
+# >=dev-ruby/ammeter-0.2.2
+# >=dev-ruby/rspec-rails-2.7.0:2
+# )"
+
+ruby_add_rdepend "
+ >=dev-util/cucumber-1.3.8 <dev-util/cucumber-4
+ >=dev-ruby/nokogiri-1.5.0
+ >=dev-ruby/capybara-1.1.2:* <dev-ruby/capybara-3:*
+ >=dev-ruby/railties-3.0.0:* <dev-ruby/railties-5.1:*
+ >=dev-ruby/mime-types-1.16:* <dev-ruby/mime-types-4:*"
+
+all_ruby_prepare() {
+ rm Gemfile || die
+ sed -i -e '/[Bb]undler/d' Rakefile || die
+ sed -i -e '/git ls/d' ${RUBY_FAKEGEM_GEMSPEC} || die
+}
diff --git a/dev-util/cucumber-rails/cucumber-rails-1.5.0.ebuild b/dev-util/cucumber-rails/cucumber-rails-1.5.0.ebuild
new file mode 100644
index 000000000000..c0874f2cab31
--- /dev/null
+++ b/dev-util/cucumber-rails/cucumber-rails-1.5.0.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+USE_RUBY="ruby21 ruby22 ruby23"
+
+RUBY_FAKEGEM_TASK_DOC=""
+
+# There are also cucumber features. They require a Rails project with
+# factory girl which we don't have packaged yet.
+RUBY_FAKEGEM_RECIPE_TEST="rspec"
+
+RUBY_FAKEGEM_EXTRADOC="History.md README.md"
+
+RUBY_FAKEGEM_GEMSPEC="cucumber-rails.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Executable feature scenarios for Rails"
+HOMEPAGE="https://github.com/cucumber/cucumber/wikis"
+LICENSE="Ruby"
+
+KEYWORDS="~amd64"
+SLOT="1"
+IUSE=""
+
+# Restrict tests since Appraisal is now mandatory to manage different
+# rails versions, even for the specs.
+RESTRICT="test"
+#ruby_add_bdepend "
+# test? (
+# >=dev-ruby/ammeter-0.2.2
+# >=dev-ruby/rspec-rails-2.7.0:2
+# )"
+
+ruby_add_rdepend "
+ >=dev-util/cucumber-1.3.8 <dev-util/cucumber-4
+ >=dev-ruby/nokogiri-1.5.0
+ >=dev-ruby/capybara-1.1.2:* <dev-ruby/capybara-3:*
+ >=dev-ruby/railties-4:* <dev-ruby/railties-5.2:*
+ >=dev-ruby/mime-types-1.17:* <dev-ruby/mime-types-4:*"
+
+all_ruby_prepare() {
+ rm Gemfile || die
+ sed -i -e '/[Bb]undler/d' Rakefile || die
+ sed -i -e '/git ls/d' ${RUBY_FAKEGEM_GEMSPEC} || die
+}
diff --git a/dev-util/cucumber-rails/metadata.xml b/dev-util/cucumber-rails/metadata.xml
new file mode 100644
index 000000000000..cc08d19c6f5d
--- /dev/null
+++ b/dev-util/cucumber-rails/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>graaff@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">cucumber/cucumber</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/cucumber-tag_expressions/Manifest b/dev-util/cucumber-tag_expressions/Manifest
new file mode 100644
index 000000000000..ede11bef2235
--- /dev/null
+++ b/dev-util/cucumber-tag_expressions/Manifest
@@ -0,0 +1,3 @@
+DIST cucumber-tag_expressions-1.0.1.gem 8192 SHA256 8ee1756f01115627f283124909f23361d0a3f958b56622bf221a3db54d020583 SHA512 be19d91c4b267d0f4c5f483e61a13d63cc023719874358bb63ac72fa3104e6068b8edc6231e70c4ee24c4f33e0b4f2254148edb666bec1f617c0d322275582b6 WHIRLPOOL 6e1477b9bcdb1831f05602ddb75ee6ad820c350fc8e351f2c0fd2c48e7ea0d99d5d0ee873ea8bb2cf33c9c6f704bc592c16cfe0d0b4056442ad9cc4b5178526f
+EBUILD cucumber-tag_expressions-1.0.1.ebuild 413 SHA256 b3a8323e49a45a29481d0c6a8bde5a3238376105c4fcbd56ba9f48bba00cde94 SHA512 8fd19a04e3e9589500daf171b73881d057144c6e035d37101c6d6400c7efde22d12e050651002ffb0bfa9665c05c907a4208b246280cc22d810f368042f530ad WHIRLPOOL f4d875008fff85be13c3ad0caf138c5d574c7dc37c7314dadaa0eab69ae1c5b3913e372d3157bc340dd28e32397c8c60121374bd06babf02fd0e93c83a6a266e
+MISC metadata.xml 299 SHA256 c63039fa6294d21a5a0d6f48b752ee029315095e01a647a5ee11dc6069f3f697 SHA512 b655a45650726e475ccae46d7bc062ba32c527277160c9033382684f6a7aed520220c6a197f7abb9dfe18f8ebea051b5fdcbfd10c744031f123ac684ce3225c7 WHIRLPOOL 399c3aaea815357250e07a3a6086b729f2815e76408489582f452ba9dba86219fbe236dd23a58c9286197b0a8b94181817095a46b0f212a4991c2ef21dbaa75a
diff --git a/dev-util/cucumber-tag_expressions/cucumber-tag_expressions-1.0.1.ebuild b/dev-util/cucumber-tag_expressions/cucumber-tag_expressions-1.0.1.ebuild
new file mode 100644
index 000000000000..ff3a2e992d40
--- /dev/null
+++ b/dev-util/cucumber-tag_expressions/cucumber-tag_expressions-1.0.1.ebuild
@@ -0,0 +1,18 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+USE_RUBY="ruby22 ruby23 ruby24"
+
+RUBY_FAKEGEM_RECIPE_DOC="rdoc"
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+RUBY_FAKEGEM_EXTRADOC="README.md"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Cucumber tag expressions for ruby"
+HOMEPAGE="https://docs.cucumber.io/tag-expressions/"
+LICENSE="MIT"
+
+KEYWORDS="~amd64"
+SLOT="1"
diff --git a/dev-util/cucumber-tag_expressions/metadata.xml b/dev-util/cucumber-tag_expressions/metadata.xml
new file mode 100644
index 000000000000..cc08d19c6f5d
--- /dev/null
+++ b/dev-util/cucumber-tag_expressions/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>graaff@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">cucumber/cucumber</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/cucumber-wire/Manifest b/dev-util/cucumber-wire/Manifest
new file mode 100644
index 000000000000..453f4974c821
--- /dev/null
+++ b/dev-util/cucumber-wire/Manifest
@@ -0,0 +1,4 @@
+DIST cucumber-wire-0.0.1.gem 16384 SHA256 4ea8ca3f772d80876eb50533ab10521b383d866419bd6e838b822f0d16ded527 SHA512 c6bae727814f6a2d1dfa8cfee9bc9e63e3bfa755f6bb070f907a24d52009dd29652ab21ea7719527a5423ddf4471208f91a388ec53555d7021abac7769b2109a WHIRLPOOL b9202676a5167963567e270f2423bf27cd705357292f4dd88b9a89093ef12f32eeaf8f1b70aaea7cfa33731042bfe31618fcf0f4bf9982e81ff0a8a2179fe409
+EBUILD cucumber-wire-0.0.1.ebuild 510 SHA256 7604d6b4ef5b37cba6b7d0667f60fce02b48b67ef13e20712d8b601d95b8c6b3 SHA512 72daafbbbc9d5e30c0c2d622e973e3711882b3edb29034e1aee1f9e04bbedf904cb2fcde060a5cf61b63912283cf4fcf2bfe6937c65892eaf368ca49b03b3f10 WHIRLPOOL 3824c678ea45dd0dce59d0ea2b6fe26928a91cee9761dd8a7d6f45a5258e5a32c935458e189927996eba2890e70cbf2dfb26919367ebe2b07c8536346a76d058
+MISC ChangeLog 628 SHA256 00bb69bbe6cb713fcad0c847e16e14bc442d74223348a9b57f7ad49401db6b1e SHA512 7f477a4e318bb9d072806b90d7416d8605667150d32d6a92e82919684fff281743019431ad7ac86e32213312e6977f9f098f8efc21b3b9b9be713ab81dd19e5b WHIRLPOOL bca031fad25ca768353ea5d41a5332ed578cbe6ceb81b5b5d295f8a89049c31f1d5f090dc383bb82c9029cee271a6407e65992044d409d12d4a03dffacaab35e
+MISC metadata.xml 304 SHA256 7f823b1d310a6e26f4e7bb4698b5f31f1935503b6dca00bdd209d2dcb66539b9 SHA512 1e0e844510269d137017ff7ecbe1b98c9542f7264ec0e5b8858119f06887720645c0d968228825d91fcb69016b78d7f7c7d344482f08c3fe0dd6cc3df4f52902 WHIRLPOOL 3d8b4bd989e56fc12449fd597c2749f05b3ecd6bb40604f72255cf51abe5141713ec097efd6914b6dba6b405ad13b9a3940170b13578ab74ee251d8229ac6df2
diff --git a/dev-util/cucumber-wire/cucumber-wire-0.0.1.ebuild b/dev-util/cucumber-wire/cucumber-wire-0.0.1.ebuild
new file mode 100644
index 000000000000..d22158b399b1
--- /dev/null
+++ b/dev-util/cucumber-wire/cucumber-wire-0.0.1.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+USE_RUBY="ruby22 ruby23 ruby24"
+
+RUBY_FAKEGEM_RECIPE_DOC="rdoc"
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+RUBY_FAKEGEM_EXTRADOC="README.md"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Executable feature scenarios"
+HOMEPAGE="https://github.com/aslakhellesoy/cucumber/wikis"
+LICENSE="Ruby"
+
+KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~x86"
+SLOT="0"
+IUSE="test"
+
+ruby_add_bdepend "test? ( dev-util/cucumber )"
diff --git a/dev-util/cucumber-wire/metadata.xml b/dev-util/cucumber-wire/metadata.xml
new file mode 100644
index 000000000000..06c13e2d2e33
--- /dev/null
+++ b/dev-util/cucumber-wire/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>graaff@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">aslakhellesoy/cucumber</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/cucumber/Manifest b/dev-util/cucumber/Manifest
new file mode 100644
index 000000000000..aa38ff994ece
--- /dev/null
+++ b/dev-util/cucumber/Manifest
@@ -0,0 +1,8 @@
+DIST cucumber-1.3.20.gem 279040 SHA256 8720b60453866f3970d2743ccf62a503bc656a56c7077cb30a892011c248f080 SHA512 050573d2d7ea111dd9c8ec402321960203f7fd8d591be4f15b09fbd5bed89f3cb82104b8306f88f53bd92468ba689800707845f55785e6d20ed9f66f4b949050 WHIRLPOOL 72488e56a8e8c34cf35fcf8f3dae3b4d80baaa2b57d4e10207bfcdf93e2d7bc45cd13517c97aaf615049f0ee1e6f583db45473f6270f2db18455aa265eeb8ef1
+DIST cucumber-2.4.0.gem 250880 SHA256 307e87c24e250d015c1d9990a7d79f7bdd9b239aa25681fd861fe491541892cc SHA512 b7f9720e3f9e1f30aba9590ff92209073bdc028b880ac7a378f6dfe2a7f093c0521387cfc9319d7ed994c5e9de7106ccff23ba1f10c1cc5888785c69262c723e WHIRLPOOL 3a4fed0ea04a68732cf9d6177132e897e8de9de1b0cba225866e0657d1b798c53bc2139aba5fb1ac26990752595d3d92a524a1e3fdb04b26ffdf2eeeaffff141
+EBUILD cucumber-1.3.20-r1.ebuild 2171 SHA256 07616f8b8e2f1f50dd73e46aa44cbbe923fda76b6928e7db5b5d08d9892276c4 SHA512 5022e706aa004375adda2c7a180257d609b9a4c39ea7594a02b4ca57e85d97d7bd46d8b208e6e88a82c22da24776f5e1d68de31f3bdfba084f299d1c733ca4f1 WHIRLPOOL bf8cce41e530527fa85b0d51f4d1deec67b4a2ff45578b0bf83ef5ddd82fd52ac969b8c064308d81336b084662b62e4a1daa78fe826ae53c9bfbc381c9f402e2
+EBUILD cucumber-2.4.0-r1.ebuild 2243 SHA256 fc3fc51f38f0d61db6e0392cf18c775decd5a4e83748ff9be8e984c2db7db4cb SHA512 5d09f9b09b7a844c5475706db6ae5e9ac707599bb9a88d89ff8317a01b796dbba99cb7776e18627f768c15b29f7613890e74557fce0f51ee96eec393f5d28941 WHIRLPOOL 09c396cadf1646c391c6da9fc95df6737ca873e54a23ae916210acd1adb88b2db916757f22d0bbc566e9dc95c31801b9d3fac5bf467b0432ba9a63a81ed5352f
+EBUILD cucumber-2.4.0.ebuild 2130 SHA256 8e2d8b65f98e36f78da213956362103e0a668fb160ca5674c082273af864e4e4 SHA512 7dcde7b5d11531ac87b93183b194fb60782298618334d021989bc7bd8b0c4c01e4dc1b3cd7ff9023b3ccac16f9190ee6058ad2187c472caf2a97e25dfb79213d WHIRLPOOL 3b969e823b66b3cf4b942c93998f38488168891df615fc96df08df1fc094df1c49edbfc8c554c1df9186d9c7b8016b654e977453b3ac8a4f2d23f1832237467f
+MISC ChangeLog 4604 SHA256 a884be66f9598d8153554cf8979b4ffadccc48aa10f46d385be85eb2e62f09da SHA512 3262f8ab69e8e4f919bfdcc1de7ad3155c36d0f701613077100719156ee0aecf7b52717ee31dbb22ba911f680578465b92975b77f1f69098d32e7c1ec656ba80 WHIRLPOOL 20bf26314df383700ee3fafc6114b61bda46077a0fb5b3868d0b4b311e074291c7edc56145af60d859e4720fa1335d6aac18b24402c4de691269a1ea96919ce3
+MISC ChangeLog-2015 14316 SHA256 2cbff183309915a9814ce1b89e41f632362f9bd5ef2054657bfbe052a8c3e08c SHA512 ea6db7424fb828881603e14ec992532c2fbff12e606d23f80890f52f26c5c29b98df1a25bb81e7f041e211e8a8b1093e6ef4533097050681405603d76a4868f0 WHIRLPOOL 503e2a3a7216829039a535095d43692dc5cd6c8fce8bcd34f1e77c006a457feb4475a4152c0e7a97dee44e7dad98a08748a0c801e56bcc9b81c5977276d25344
+MISC metadata.xml 304 SHA256 7f823b1d310a6e26f4e7bb4698b5f31f1935503b6dca00bdd209d2dcb66539b9 SHA512 1e0e844510269d137017ff7ecbe1b98c9542f7264ec0e5b8858119f06887720645c0d968228825d91fcb69016b78d7f7c7d344482f08c3fe0dd6cc3df4f52902 WHIRLPOOL 3d8b4bd989e56fc12449fd597c2749f05b3ecd6bb40604f72255cf51abe5141713ec097efd6914b6dba6b405ad13b9a3940170b13578ab74ee251d8229ac6df2
diff --git a/dev-util/cucumber/cucumber-1.3.20-r1.ebuild b/dev-util/cucumber/cucumber-1.3.20-r1.ebuild
new file mode 100644
index 000000000000..76491b1cd5c4
--- /dev/null
+++ b/dev-util/cucumber/cucumber-1.3.20-r1.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+USE_RUBY="ruby20 ruby21 ruby22"
+
+# Documentation task depends on sdoc which we currently don't have.
+RUBY_FAKEGEM_TASK_DOC=""
+RUBY_FAKEGEM_TASK_TEST="none"
+RUBY_FAKEGEM_EXTRADOC="History.md README.md"
+
+RUBY_FAKEGEM_GEMSPEC="cucumber.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Executable feature scenarios"
+HOMEPAGE="https://github.com/aslakhellesoy/cucumber/wikis"
+LICENSE="Ruby"
+
+KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 ~sparc x86"
+SLOT="0"
+IUSE="examples test"
+
+ruby_add_bdepend "
+ test? (
+ >=dev-ruby/rspec-2.13.0
+ >=dev-ruby/nokogiri-1.5.2
+ >=dev-ruby/syntax-1.0.0
+ >=dev-util/aruba-0.5.2
+ >=dev-ruby/json-1.7
+ dev-ruby/bundler
+ >=dev-util/cucumber-1.3
+ )"
+
+ruby_add_rdepend "
+ >=dev-ruby/builder-2.1.2:*
+ >=dev-ruby/diff-lcs-1.1.3
+ >=dev-ruby/gherkin-2.12.0:0
+ >=dev-ruby/multi_json-1.7.5
+ >=dev-ruby/multi_test-0.1.2
+"
+
+all_ruby_prepare() {
+ # Remove development dependencies from the gemspec that we don't
+ # need or can't satisfy.
+ sed -i -e '/\(spork\|simplecov\|bcat\|kramdown\|yard\|capybara\|rack-test\|ramaze\|sinatra\|webrat\|mime-types\|rubyzip\)/d' ${RUBY_FAKEGEM_GEMSPEC} || die
+
+ # Fix too-strict test dependencies
+ sed -e '/nokogiri/ s/~> 1.5.2/>= 1.5.2/' \
+ -e '/aruba/ s/= 0.5.2/~> 0.5/' \
+ -e '/rake/ s/10.2/13/' -i ${RUBY_FAKEGEM_GEMSPEC} || die
+
+ # Make sure spork is run in the right interpreter
+ sed -i -e 's/#{Spork::BINARY}/-S #{Spork::BINARY}/' features/support/env.rb || die
+ rm features/drb_server_integration.feature || die
+
+ # Avoid json, they most likely fail due to multi_json weirdness.
+ rm features/json_formatter.feature || die
+ # Avoid features that break with newer rspec versions.
+ sed -i -e '369,398d' features/background.feature || die
+
+ # Avoid dependency on git
+ sed -i -e 's/git ls-files/find/' cucumber.gemspec || die
+}
+
+each_ruby_test() {
+ ruby-ng_rspec
+ RUBYLIB=lib ${RUBY} -Ilib bin/cucumber features || die "Features failed"
+}
+
+all_ruby_install() {
+ all_fakegem_install
+
+ if use examples; then
+ cp -pPR examples "${D}/usr/share/doc/${PF}" || die "Failed installing example files."
+ fi
+}
diff --git a/dev-util/cucumber/cucumber-2.4.0-r1.ebuild b/dev-util/cucumber/cucumber-2.4.0-r1.ebuild
new file mode 100644
index 000000000000..9f9edf0e8e7e
--- /dev/null
+++ b/dev-util/cucumber/cucumber-2.4.0-r1.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+USE_RUBY="ruby22 ruby23 ruby24"
+
+# Documentation task depends on sdoc which we currently don't have.
+RUBY_FAKEGEM_TASK_DOC=""
+RUBY_FAKEGEM_TASK_TEST="none"
+RUBY_FAKEGEM_EXTRADOC="History.md README.md"
+
+RUBY_FAKEGEM_GEMSPEC="cucumber.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Executable feature scenarios"
+HOMEPAGE="https://github.com/aslakhellesoy/cucumber/wikis"
+LICENSE="Ruby"
+
+KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~x86"
+SLOT="0"
+IUSE="examples test"
+
+ruby_add_bdepend "
+ test? (
+ dev-ruby/rspec:3
+ >=dev-ruby/nokogiri-1.5.2
+ >=dev-ruby/syntax-1.0.0
+ >=dev-util/aruba-0.6.1 =dev-util/aruba-0.6*
+ >=dev-ruby/json-1.7
+ >=dev-util/cucumber-2
+ >=dev-ruby/mime-types-2.99:2
+ )"
+
+ruby_add_rdepend "
+ >=dev-ruby/builder-2.1.2:*
+ >=dev-util/cucumber-core-1.5.0:0
+ >=dev-util/cucumber-wire-0.0.1:0
+ >=dev-ruby/diff-lcs-1.1.3
+ >=dev-ruby/gherkin-4.0:4
+ >=dev-ruby/multi_json-1.7.5
+ >=dev-ruby/multi_test-0.1.2
+"
+
+all_ruby_prepare() {
+ # Remove development dependencies from the gemspec that we don't
+ # need or can't satisfy.
+ sed -i -e '/\(coveralls\|spork\|simplecov\|bcat\|kramdown\|yard\|capybara\|rack-test\|ramaze\|sinatra\|webrat\|mime-types\|rubyzip\)/d' ${RUBY_FAKEGEM_GEMSPEC} || die
+
+ # Avoid dependency on unpackaged cucumber-pro
+ sed -i -e '/cucumber-pro/ s:^:#:' Gemfile || die
+
+ # Avoid harmless failing spec
+ sed -i -e '/converts the snapshot path to a relative path/,/end/ s:^:#:' \
+ spec/cucumber/formatter/html_spec.rb || die
+
+ # Avoid dependency on git
+ sed -i -e '/executables/ s/=.*/= ["cucumber"]/' \
+ -e '/git ls-files/d' cucumber.gemspec || die
+
+ sed -i -e '/pry/ s:^:#:' spec/spec_helper.rb || die
+
+}
+
+each_ruby_prepare() {
+ # Use the right interpreter
+ sed -i -e 's:ruby:'${RUBY}':' features/lib/step_definitions/ruby_steps.rb || die
+}
+
+each_ruby_test() {
+ RSPEC_VERSION=3 ruby-ng_rspec
+ CUCUMBER_USE_RELEASED_CORE=true PATH="${S}"/bin:${PATH} RUBYLIB="${S}"/lib ${RUBY} -Ilib bin/cucumber features || die "Features failed"
+}
+
+all_ruby_install() {
+ all_fakegem_install
+
+ if use examples; then
+ cp -pPR examples "${D}/usr/share/doc/${PF}" || die "Failed installing example files."
+ fi
+}
diff --git a/dev-util/cucumber/cucumber-2.4.0.ebuild b/dev-util/cucumber/cucumber-2.4.0.ebuild
new file mode 100644
index 000000000000..d82fce78bc62
--- /dev/null
+++ b/dev-util/cucumber/cucumber-2.4.0.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+USE_RUBY="ruby20 ruby21 ruby22"
+
+# Documentation task depends on sdoc which we currently don't have.
+RUBY_FAKEGEM_TASK_DOC=""
+RUBY_FAKEGEM_TASK_TEST="none"
+RUBY_FAKEGEM_EXTRADOC="History.md README.md"
+
+RUBY_FAKEGEM_GEMSPEC="cucumber.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Executable feature scenarios"
+HOMEPAGE="https://github.com/aslakhellesoy/cucumber/wikis"
+LICENSE="Ruby"
+
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
+SLOT="0"
+IUSE="examples test"
+
+ruby_add_bdepend "
+ test? (
+ dev-ruby/rspec:3
+ >=dev-ruby/nokogiri-1.5.2
+ >=dev-ruby/syntax-1.0.0
+ >=dev-util/aruba-0.6.1 =dev-util/aruba-0.6*
+ >=dev-ruby/json-1.7
+ >=dev-util/cucumber-2
+ >=dev-ruby/mime-types-2.99:2
+ )"
+
+ruby_add_rdepend "
+ >=dev-ruby/builder-2.1.2:*
+ >=dev-util/cucumber-core-1.5.0:0
+ >=dev-util/cucumber-wire-0.0.1:0
+ >=dev-ruby/diff-lcs-1.1.3
+ >=dev-ruby/gherkin-4.0:4
+ >=dev-ruby/multi_json-1.7.5
+ >=dev-ruby/multi_test-0.1.2
+"
+
+all_ruby_prepare() {
+ # Remove development dependencies from the gemspec that we don't
+ # need or can't satisfy.
+ sed -i -e '/\(coveralls\|spork\|simplecov\|bcat\|kramdown\|yard\|capybara\|rack-test\|ramaze\|sinatra\|webrat\|mime-types\|rubyzip\)/d' ${RUBY_FAKEGEM_GEMSPEC} || die
+
+ # Avoid dependency on unpackaged cucumber-pro
+ sed -i -e '/cucumber-pro/ s:^:#:' Gemfile || die
+
+ # Avoid harmless failing spec
+ sed -i -e '/converts the snapshot path to a relative path/,/end/ s:^:#:' \
+ spec/cucumber/formatter/html_spec.rb || die
+
+ # Avoid dependency on git
+ sed -i -e '/git ls-files/d' cucumber.gemspec || die
+}
+
+each_ruby_prepare() {
+ # Use the right interpreter
+ sed -i -e 's:ruby:'${RUBY}':' features/lib/step_definitions/ruby_steps.rb || die
+}
+
+each_ruby_test() {
+ RSPEC_VERSION=3 ruby-ng_rspec
+ CUCUMBER_USE_RELEASED_CORE=true PATH="${S}"/bin:${PATH} RUBYLIB="${S}"/lib ${RUBY} -Ilib bin/cucumber features || die "Features failed"
+}
+
+all_ruby_install() {
+ all_fakegem_install
+
+ if use examples; then
+ cp -pPR examples "${D}/usr/share/doc/${PF}" || die "Failed installing example files."
+ fi
+}
diff --git a/dev-util/cucumber/metadata.xml b/dev-util/cucumber/metadata.xml
new file mode 100644
index 000000000000..06c13e2d2e33
--- /dev/null
+++ b/dev-util/cucumber/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>graaff@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">aslakhellesoy/cucumber</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/cunit/Manifest b/dev-util/cunit/Manifest
new file mode 100644
index 000000000000..4d9dfbc98e65
--- /dev/null
+++ b/dev-util/cunit/Manifest
@@ -0,0 +1,7 @@
+DIST CUnit-2.1-2-src.tar.bz2 349037 SHA256 1f705f30b36fe1dadb5494989d1d663241603f456b468c81f606a1bdbc168bea SHA512 c0af37b9f3a00fd7bb971f33e94373699d0380c28fad12f6db860739990a9ffffe0bb0a71c0e3531529b9952128c11248b8f365875d0315c16637a0b7e91642d WHIRLPOOL a5617aa10baf617e7165c04c66e4fffb25d2d8d396d8aff8ed5f67183154d79514d2c426c88bc02d02440f4c53bbe2b6025bbd0165fa3a6008e2b19e0317498b
+DIST CUnit-2.1-3.tar.bz2 514500 SHA256 f5b29137f845bb08b77ec60584fdb728b4e58f1023e6f249a464efa49a40f214 SHA512 547b417109332446dfab8fda17bf4ccd2da841dc93f824dc90a20635bcf1fb80fb2176500d8a0906940f3f3d3e2f77b2d70a71090c9ab84ad9af43f3582bc487 WHIRLPOOL 621af4703fcaee5a222a55d735ac252ceed61dffa1d3d57e235ca952c13edfcd2d3dd3ef62623af40c57ae1e225868b8148d8268254fa724ddf936c85e4eadfa
+EBUILD cunit-2.1_p2-r1.ebuild 1374 SHA256 48714a8b2d2d3b8a052f99e395e1deb253e12f79b1c52c1d52a8cddb1bcb4754 SHA512 68bce364c4a817e0f16c84b9aebc26119c1ea078af1b42e95327898629d78278292d5cfb966a3a3c9b83ce077b2a5629107f7a294e00f746950f00c4663340d2 WHIRLPOOL fe839ae2ea42a2d7386db15ef7c7be18e3d2fbc9e3fc516f0c78059c52abcf136edc1daececda8ca24a8c801c666b01ad52c9e7fea12d296fe69ceb63d8146a4
+EBUILD cunit-2.1_p3.ebuild 1384 SHA256 50048fe1f7caaf4a0cd36a3c53d76e40be004f05463d790bd4675570c0df75de SHA512 62a6c3d04d65a41fdb3f9546c0455666411674548d63335be1e427f56471647dc5e956d26ca7116370dca804ddf8dc1e6fc301c7c40017a36c644a324805428a WHIRLPOOL b5a8033ff5b9a4698c5d97d6791bb28e13c1f63878f6b532597437c07f16c8314abf02a35679f9a157269e3eedf2d7587402a425d5cc7ceaec39626f02d38544
+MISC ChangeLog 2889 SHA256 b12a260c109547774c1b3881ffe6a1313d04f5d7b4b3c9bc9c2275f2d9614a56 SHA512 dcb9b853b97a2dcea35baa15e0bb33902e632da5f92469cedd4d96124e91a26dfe8bf2ef760ce5d7ab429f84950082b3f75b90c9e108fa5b27a132831c1be3fe WHIRLPOOL 87535be1851b164bd1c81ef0880ec0a0dc85820e230e0e78ad40d348e67cf50f267618b5e6109b07a074d44f13b3e5fb84e1c7693c055019f55f7b0e370210cf
+MISC ChangeLog-2015 6279 SHA256 f6279ba03e385c237c97c702ea890fd0b254c7982af146740cb145b633652eb0 SHA512 915b0a9c67ee50bbc01d119080e33df5f22f8b4a006ee7f83d750347e537a733872398a7e63939943dd3f43961c018cd5dad191b08045cbbedf3a207c950ebdf WHIRLPOOL 308088324044f4bd17fbf7fec2f4af8529617aa59f86308b0c76d85da65d3aa3f79993ad694e3cc34d17181ec83d0fa26e47ac5a2ea4ffbd865b772363c5c6b0
+MISC metadata.xml 242 SHA256 92ac1b0351dbb1d815d4fe2d850f407d4dec4a1ebd1a0be9f09bd2451d44d05b SHA512 3171a680f18023cbeeb73331a33942ddf076e0b8abc2c40284e4a4cb1803ad7264f8e38ffaf182d1f38ba28ad60e65a0ddf96c66a60e0f9a935aa941c49df87d WHIRLPOOL 20367f735f455bd6eb1345b5761647a27046914775eeee621359c159397ecafc4bbe323d5118bf2c8b5f1090d152755a1ee3d7530ba110eac2bd03f2b33942f3
diff --git a/dev-util/cunit/cunit-2.1_p2-r1.ebuild b/dev-util/cunit/cunit-2.1_p2-r1.ebuild
new file mode 100644
index 000000000000..1522a3e14122
--- /dev/null
+++ b/dev-util/cunit/cunit-2.1_p2-r1.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit autotools eutils flag-o-matic multilib-minimal toolchain-funcs
+
+MY_PN='CUnit'
+MY_PV="${PV/_p*}-2"
+MY_P="${MY_PN}-${MY_PV}"
+
+DESCRIPTION="CUnit - C Unit Test Framework"
+SRC_URI="mirror://sourceforge/cunit/${MY_P}-src.tar.bz2"
+HOMEPAGE="http://cunit.sourceforge.net"
+
+SLOT="0"
+LICENSE="LGPL-2"
+KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE="ncurses static-libs"
+
+RDEPEND="ncurses? ( >=sys-libs/ncurses-5.9-r3[${MULTILIB_USEDEP}] )"
+DEPEND="${RDEPEND}"
+
+S=${WORKDIR}/${MY_P}
+
+DOCS=( AUTHORS NEWS README ChangeLog )
+
+src_prepare() {
+ sed -e "/^docdir/d" -i doc/Makefile.am || die
+ sed -e '/^dochdrdir/{s:$(prefix)/doc/@PACKAGE@:$(docdir):}' \
+ -i doc/headers/Makefile.am || die
+ sed -e "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" -i configure.in || die
+ eautoreconf
+
+ append-cppflags -D_BSD_SOURCE
+
+ # unable to find headers otherwise
+ multilib_copy_sources
+}
+
+multilib_src_configure() {
+ local LIBS=${LIBS}
+ append-libs $($(tc-getPKG_CONFIG) --libs ncurses)
+
+ econf \
+ --docdir="${EPREFIX}"/usr/share/doc/${PF} \
+ $(use_enable static-libs static) \
+ --disable-debug \
+ $(use_enable ncurses curses)
+}
+
+multilib_src_install_all() {
+ einstalldocs
+ prune_libtool_files
+}
diff --git a/dev-util/cunit/cunit-2.1_p3.ebuild b/dev-util/cunit/cunit-2.1_p3.ebuild
new file mode 100644
index 000000000000..297393113af6
--- /dev/null
+++ b/dev-util/cunit/cunit-2.1_p3.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools eutils flag-o-matic multilib-minimal toolchain-funcs
+
+MY_PN="CUnit"
+MY_PV="${PV/_p*}-3"
+MY_P="${MY_PN}-${MY_PV}"
+
+DESCRIPTION="C Unit Test Framework"
+SRC_URI="mirror://sourceforge/cunit/${MY_P}.tar.bz2"
+HOMEPAGE="http://cunit.sourceforge.net"
+
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE="ncurses static-libs"
+
+RDEPEND="ncurses? ( >=sys-libs/ncurses-5.9-r3:0=[${MULTILIB_USEDEP}] )"
+DEPEND="${RDEPEND}"
+
+S=${WORKDIR}/${MY_P}
+
+DOCS=( AUTHORS NEWS README ChangeLog )
+
+src_prepare() {
+ default
+
+ sed -e "/^docdir/d" -i doc/Makefile.am || die
+ sed -e '/^dochdrdir/{s:$(prefix)/doc/@PACKAGE@:$(docdir):}' \
+ -i doc/headers/Makefile.am || die
+ sed -e "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" -i configure.in || die
+ eautoreconf
+
+ append-cppflags -D_BSD_SOURCE
+
+ # unable to find headers otherwise
+ multilib_copy_sources
+}
+
+multilib_src_configure() {
+ local LIBS=${LIBS}
+ append-libs $($(tc-getPKG_CONFIG) --libs ncurses)
+
+ econf \
+ --docdir="${EPREFIX}"/usr/share/doc/${PF} \
+ $(use_enable static-libs static) \
+ --disable-debug \
+ $(use_enable ncurses curses)
+}
+
+multilib_src_install_all() {
+ einstalldocs
+ prune_libtool_files
+}
diff --git a/dev-util/cunit/metadata.xml b/dev-util/cunit/metadata.xml
new file mode 100644
index 000000000000..4d2f287374f8
--- /dev/null
+++ b/dev-util/cunit/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-needed -->
+ <upstream>
+ <remote-id type="sourceforge">cunit</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/cutils/Manifest b/dev-util/cutils/Manifest
new file mode 100644
index 000000000000..683f5cd0deaf
--- /dev/null
+++ b/dev-util/cutils/Manifest
@@ -0,0 +1,7 @@
+AUX cutils-1.6-case-insensitive.patch 312 SHA256 6b0a65af5b54376fa3d212d1e648fe7316254e1b9ef67d0294f9cd08fae73433 SHA512 d2eb81f3fece124cf0bad215f19bcaf805ee006dd673f39c3f7eae92904fbeafc77bc1fae6bc0e5f70613180ca29e015145654cfc5dab2ea75cdeb08d636335e WHIRLPOOL cc3fe1380668ee8ca9a1a6f0af90196495dc1f280f4b6652417614b016f5e9e783d1cb8a229561a78b1ab10f825dd66d1d9241cb547d1fbe8ea27fb812c5f8c0
+AUX cutils-infopage.patch 458 SHA256 d1acd947f51cf0e294e3ddb603961aa7055c844ce0cbd664f8fe605ce9035981 SHA512 53fbcaec4fdaf1b7804752f952f6fa2f8715601be2ce5185557c2a1378504b7158c398f59e674eed9fc30e95e51157ce8c4c8f71e9a08c63daf97efd7210eba6 WHIRLPOOL da3b6829cacfa2b6b49ba8aa085d8dafa3c548ce64f00f0e283c32338002ef9496c0c12a3d01482692bb1507fb063da864b3ed6741905d216a22761f8fe0cc54
+DIST cutils-1.6.tar.gz 128722 SHA256 b26c22f2ca3905579273e132708094e95b4fe2a0576ce4bea8a7cbfc7a0084b8 SHA512 49a0f6ed210be01eec335903dee7ac6000bfa9d9c05a31b9a9fd6ae8534c8058d774f884d55b2b9fa029abc30beeca1866d8a74389b76158ebb216fb3dfad6eb WHIRLPOOL 37285efc69c8be9075fed1d11147d1dc2955f08e7a1449afca5355916566298fa71b9e7d48156860c52dfaa782b06d604c3481ed4c75b4205aae0897c4da9ac3
+EBUILD cutils-1.6-r4.ebuild 1251 SHA256 19d514210a3bab6e1a5ff2c9043d41ab2afd394c37d7188b8540bbca95fee1f9 SHA512 ccfde76e2884a85680e59d79878f3bf26ddfe01ad7f243b634c84e964f62e223674effbe00ed95b13494deb83af79e8c62d4a793d9c00a0ce07fb102b6465da7 WHIRLPOOL dfdd6c046905eaed0d3944455c7a899f4d09eb33962a79f164c96b11b88c717a3edb29db98bd2cac3a67cc2ad6850cc9cf6540d90fb3764b5610d389fa5a97a1
+MISC ChangeLog 2595 SHA256 6415cae319c23b39ba789a526c1c9348e1980f537a0555dc1114c2577137ce99 SHA512 6e847b3b4901849ff02a4060c67a8a1054ebeecd3a9280f70c9d5aff7b71e4b618b370837e8ac909e6ef4ab8d33bd76e689478868209e4a91d805e753ebf6252 WHIRLPOOL 5f64982a3d2f59088ff6d3e1e4d61662987f13df88dafb2086661bc5cfb9d06763e36e87a7b6022f0d4a47283ec6ef10197d63185bbb304a8fd03b67461e96ff
+MISC ChangeLog-2015 4745 SHA256 33bc473d62719d174cc97a9d8ca95d7387d0e056f29ae92dec0c739007a27d5b SHA512 09e0fd4c3fea341f1745b381209bd310990d0b71a9d1d01056c860993b711612f41f7eb7c64c242a823c09184c1440c2f68f9e029531fda755967651bc0d7baf WHIRLPOOL d50fa4c3752f597caaa6110288cfbe534bda287f0cd9fb37eccfcc1e4423539848e349a6ec379f75ae8375913f098f849b62fecb07352c6ea89873d3da769755
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/dev-util/cutils/cutils-1.6-r4.ebuild b/dev-util/cutils/cutils-1.6-r4.ebuild
new file mode 100644
index 000000000000..8f333cb5c84e
--- /dev/null
+++ b/dev-util/cutils/cutils-1.6-r4.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="C language utilities"
+HOMEPAGE="http://www.sigala.it/sandro/software.php#cutils"
+SRC_URI="http://www.sigala.it/sandro/files/${P}.tar.gz"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE=""
+
+RDEPEND=""
+DEPEND="sys-devel/flex"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-infopage.patch
+
+ epatch "${FILESDIR}"/${P}-case-insensitive.patch
+
+ mv "${S}"/src/cdecl/cdecl.1 \
+ "${S}"/src/cdecl/cutils-cdecl.1 || die
+ # Force rebuild of cutils.info
+ rm -f "${S}"/doc/cutils.info || die
+
+ sed -e "s/cdecl/cutils-cdecl/g" \
+ -i "${S}"/doc/cutils.texi || die
+ sed -e "/PROG/s/cdecl/cutils-cdecl/" \
+ -i "${S}"/src/cdecl/Makefile.in || die
+ sed -e "/Xr/s/cdecl/cutils-cdecl/" \
+ -i "${S}"/src/cundecl/cundecl.1 || die
+ sed -i "/Nm/s/cdecl/cutils-cdecl/" \
+ "${S}"/src/cdecl/cutils-cdecl.1 || die
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" -j1
+}
+
+src_install () {
+ emake DESTDIR="${D}" install
+ dodoc CREDITS HISTORY NEWS README
+}
+
+pkg_postinst () {
+ elog "cdecl was installed as cutils-cdecl because of a naming conflict"
+ elog "with dev-util/cdecl."
+}
diff --git a/dev-util/cutils/files/cutils-1.6-case-insensitive.patch b/dev-util/cutils/files/cutils-1.6-case-insensitive.patch
new file mode 100644
index 000000000000..67318d0f55d8
--- /dev/null
+++ b/dev-util/cutils/files/cutils-1.6-case-insensitive.patch
@@ -0,0 +1,14 @@
+* On case insensitive filesystems, INSTALL is seen as the target install,
+ resulting in no installation at all.
+
+--- cutils-1.6/Makefile.in
++++ cutils-1.6/Makefile.in
+@@ -8,6 +8,8 @@
+ (cd $$f && $(MAKE) $@); \
+ done
+
++.PHONY : install
++
+ distclean:
+ @for f in $(subdirs); do \
+ (cd $$f && $(MAKE) $@); \
diff --git a/dev-util/cutils/files/cutils-infopage.patch b/dev-util/cutils/files/cutils-infopage.patch
new file mode 100644
index 000000000000..2b19aeee2d6e
--- /dev/null
+++ b/dev-util/cutils/files/cutils-infopage.patch
@@ -0,0 +1,16 @@
+# Add category, and entry to the texinfo document.
+
+--- cutils-1.6/doc/cutils.texi.orig 2008-11-24 23:18:41.732038120 +0000
++++ cutils-1.6/doc/cutils.texi 2008-11-24 23:18:27.907038555 +0000
+@@ -7,6 +7,11 @@
+ @c unwise to comment it out when running a master in case there are
+ @c overfulls which are deemed okay.
+
++@dircategory Programming
++@direntry
++* cutils: (cutils). C language utilities.
++@end direntry
++
+ @iftex
+ @c @finalout
+ @end iftex
diff --git a/dev-util/cutils/metadata.xml b/dev-util/cutils/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/dev-util/cutils/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/dev-util/cwdiff/Manifest b/dev-util/cwdiff/Manifest
new file mode 100644
index 000000000000..440643db956c
--- /dev/null
+++ b/dev-util/cwdiff/Manifest
@@ -0,0 +1,12 @@
+DIST cwdiff-0.2.8.tar.gz 4246 SHA256 cdfd1489420591b36a56370c647b361f87c0c4074fed220e9c09f3e7ea8f2c22 SHA512 bb1fb3790cc2d8f4e5f199e7abc9bf6a999ded0d25fc9e62ca1e003505f1d33b6c8575b0172a2e55128c4e5c853147304c928d0f1094c5b30e6a015b9fbcae09 WHIRLPOOL 7dec074fa079bb1468179efe6f559010b2d8267343ea5c77ad72810301baf49cb63977c7617bdc41321c944fdd067c6202d8a87b6bd5200f561176fac2fc115a
+DIST cwdiff-0.3.0.tar.gz 4666 SHA256 32c70aeae4e445a439aeed7f9b01395cc74645033533cc37b6974671cf2cfd9b SHA512 40401a0541209c83cd78ff55c62ce71dd362cf8674b07c1cdd56ad7a505741e818003f07c87fe0303cd2bfd911d99b8f560697612b32b6fee794a7671e7e86f0 WHIRLPOOL aad2e3c5c6d8dc94f70c8b272969598bf134f73bc0fc030d5f4087d341a2074736e5b409afc99c8039f250c2f0154b22d86b153e7ac3e4edc12f4c0642be2e76
+DIST cwdiff-0.3.1.tar.gz 4706 SHA256 c2b7d3a1ba7b6efae217f82773dbfc36a6bda862957ef69c67b2bcfa718c5909 SHA512 ffea1f699d333655eebfe96048dcc96c57408d42915d707e10b9231a27cc7a8803c3b47876227e24da67376ec18f9261739b9fb13889f8b47d336ca048cbfa72 WHIRLPOOL 83e8eb2cd9cf4647c54ecf6306e5f030c7760c8d1ece3fd588805b2b6cf7a302ef58078da176d2ffe1dbb4613d49572c3d7f5765d4e74aeba7599cf9dfa60c2d
+DIST cwdiff-0.4.0.tar.gz 4468 SHA256 01b4fcb372a28fed75e465fa3eb02c4b648ab17cd0e207cff5fd5718155ecd54 SHA512 b5deda44d94bd3aa93a68da136f4170996ee02c683c38329cbc16a108e0795e86c3543759e1d7adc3d512d4dcbc416436e733341e1b4f3d96325e999e84a4fbe WHIRLPOOL 52c5b4d3a15108676660e8541bdde45bd9f77a57bdf9adbaaf8f96aaf5e6bab5bda138685013504143b9cdcf8d7a3572dd8e89b74251750a7d6da96f0c1e8b8b
+EBUILD cwdiff-0.2.8.ebuild 731 SHA256 391bcbb23abbaf7d60257bc2a37f4c01256f9aceb950c2e9a5398430f31cacdb SHA512 0548e44125aea1066cf6479ecdd3ee615497ac2becb6297b74ab9b5165e76686a06684bbc966404f32e22f17b30688c3e837494084ed457defcb1b8343b4f979 WHIRLPOOL f035f824675274099609da657de7782accd3e6361fcb39e93d220108e12311af82e384d7c64a1aaa2659b86d37f02d3fb61a0e98fa1fe894c06af10371d56b57
+EBUILD cwdiff-0.3.0.ebuild 853 SHA256 4d367af7c3713ba0c960ff6a89c871a00418b8a39c4fd28022472edf3fee6d8a SHA512 edade4c56f8cf28a0f6908865a09568add9709fea082e09cfbffd73b373f9bdf4db1faadf5aa6eec8e9ad80e810c46817878e3e1cf96d7a0f6f568fcc194f905 WHIRLPOOL 2f7d6e05ce5be1435c774fb862ca46c38a18f8e1df1e1f5151c409f01d541a7eba8964c421892dfefe71a7e73729ea787063a0c15724af055715b7778d2bbbc2
+EBUILD cwdiff-0.3.1.ebuild 853 SHA256 4d367af7c3713ba0c960ff6a89c871a00418b8a39c4fd28022472edf3fee6d8a SHA512 edade4c56f8cf28a0f6908865a09568add9709fea082e09cfbffd73b373f9bdf4db1faadf5aa6eec8e9ad80e810c46817878e3e1cf96d7a0f6f568fcc194f905 WHIRLPOOL 2f7d6e05ce5be1435c774fb862ca46c38a18f8e1df1e1f5151c409f01d541a7eba8964c421892dfefe71a7e73729ea787063a0c15724af055715b7778d2bbbc2
+EBUILD cwdiff-0.4.0.ebuild 823 SHA256 6ecbe48b8e9a1953d14b56476800ff594ac98b872bd7bfc9459c0e2ea6fbd9ce SHA512 6028325f18dacb79f5f76b5ab448fdbf1c5417ec277d64c4a530c1f521342abcad99a9a4fde2160b5a3dcb2f1e70dd63e6ea6b7dbf64198a3a08a0fc9499c9b2 WHIRLPOOL 60f854448b9954551f26f13709b04b5cee529fe88593c838af0d147aaec447736aa7ac722e1c08faf567fb9f46dd1255b52f8cce56b4c7c3175b01da7022ac28
+EBUILD cwdiff-9999.ebuild 823 SHA256 f1eb24307c9b42f0b550b18ef45bb7feec9b6921ad651868b7ba8df74a4ba871 SHA512 f8699b6eea1d13d42d70c10954582773d0e50f86531767c11e34ce03f2cad9318d137c8d1294a4d27c81bfd9e20275f684b87354330420e8c32bc6c916be9560 WHIRLPOOL b223be48e1280ae53655eea5fb7a1a87006e8e7369485e5c44deb5a7042d53faf6c653b5db11109020e96ba34492f9874e11dd5553174a1ce92a0b2b7baea2e4
+MISC ChangeLog 3356 SHA256 91db9375c3ddb58d8e9cfa7d095fb06a92acb2e331e8e56325a63995e3fa4a36 SHA512 b4496216f434c9e95a6ae5f00dbde88ef7b8478ae13bff1fbff5a815666cc7412ef0fcf0f6c68d8a72c09915dc06b153174f48319e3cedffd6087722c9169806 WHIRLPOOL 9eef4ad508169c87032aeaf1eda2419473d6c710dbfb8dfbbbfd36ca9e9f2be2b452c9b9658c8a2e4536c73a4ee6446138a3431c72dc75e2217f9f6c4fb93efd
+MISC ChangeLog-2015 1877 SHA256 13a482cc415f4681a6860ffad88c801b496fefe01bce203901aaa6a4ebdc06b0 SHA512 79ff8a59e099cd2752d7cdfb07f77a92499639986bd6b4c7fb574bc4da4807bb82beaee928780d5157b4232996681a967097d224bfb74b4cc3f3657a69629705 WHIRLPOOL d876fde031d6afcffbf1eb775dd67cf78f633d72af8b326d1dffa72d84f44abcb6f65e7ae20ce840ef80c12f7f421d384d9f693339dfdc846aef401571899d2f
+MISC metadata.xml 518 SHA256 f9fcc1093411310acb11db72f1388133661b6330acdf1671a14037d5e1e3756a SHA512 08009caaf17aab80858770126cb2915890400c85f35121c5da2aee9bf9cd0640c3614a9b33c1afde6e270f212509d8604a7460a759027924420f1e508694d569 WHIRLPOOL 338910ebfca7a70a6cc049aeff1af50cbc8389d851673dad3307a0c4ac833da3c7bbb00f7b66369c60628541b85e9dafc1c0120afc1d6fb9a16589afe823d196
diff --git a/dev-util/cwdiff/cwdiff-0.2.8.ebuild b/dev-util/cwdiff/cwdiff-0.2.8.ebuild
new file mode 100644
index 000000000000..88eb1087bfb0
--- /dev/null
+++ b/dev-util/cwdiff/cwdiff-0.2.8.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+DESCRIPTION="A script that wraps wdiff to support directories and colorize the output"
+HOMEPAGE="https://github.com/junghans/cwdiff"
+SRC_URI="https://github.com/junghans/cwdiff/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x64-macos ~x86-macos"
+IUSE="a2ps mercurial"
+
+DEPEND=""
+RDEPEND="
+ sys-apps/sed
+ app-shells/bash
+ app-text/wdiff
+ sys-apps/diffutils
+ a2ps? ( app-text/a2ps )
+ mercurial? ( dev-vcs/mercurial )
+ "
+
+src_install () {
+ dobin "${PN}"
+ if use mercurial ; then
+ insinto /etc/mercurial/hgrc.d
+ doins hgrc.d/"${PN}".rc
+ fi
+ dodoc README.md
+}
diff --git a/dev-util/cwdiff/cwdiff-0.3.0.ebuild b/dev-util/cwdiff/cwdiff-0.3.0.ebuild
new file mode 100644
index 000000000000..95a7d5783001
--- /dev/null
+++ b/dev-util/cwdiff/cwdiff-0.3.0.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+if [ "${PV}" = "9999" ]; then
+ EGIT_REPO_URI="https://github.com/junghans/${PN}.git"
+ inherit git-r3
+ KEYWORDS=""
+else
+ SRC_URI="https://github.com/junghans/cwdiff/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x64-macos ~x86-macos"
+fi
+
+DESCRIPTION="A script that wraps wdiff to support directories and colorize the output"
+HOMEPAGE="https://github.com/junghans/cwdiff"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="a2ps mercurial"
+
+DEPEND="sys-apps/help2man
+ sys-apps/coreutils"
+RDEPEND="
+ sys-apps/sed
+ app-shells/bash
+ app-text/wdiff
+ sys-apps/diffutils
+ a2ps? ( app-text/a2ps )
+ mercurial? ( dev-vcs/mercurial )
+ "
+
+src_install() {
+ emake DESTDIR="${ED}" $(usex mercurial '' 'HGRCDIR=') install
+ dodoc README.md
+}
diff --git a/dev-util/cwdiff/cwdiff-0.3.1.ebuild b/dev-util/cwdiff/cwdiff-0.3.1.ebuild
new file mode 100644
index 000000000000..95a7d5783001
--- /dev/null
+++ b/dev-util/cwdiff/cwdiff-0.3.1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+if [ "${PV}" = "9999" ]; then
+ EGIT_REPO_URI="https://github.com/junghans/${PN}.git"
+ inherit git-r3
+ KEYWORDS=""
+else
+ SRC_URI="https://github.com/junghans/cwdiff/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x64-macos ~x86-macos"
+fi
+
+DESCRIPTION="A script that wraps wdiff to support directories and colorize the output"
+HOMEPAGE="https://github.com/junghans/cwdiff"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="a2ps mercurial"
+
+DEPEND="sys-apps/help2man
+ sys-apps/coreutils"
+RDEPEND="
+ sys-apps/sed
+ app-shells/bash
+ app-text/wdiff
+ sys-apps/diffutils
+ a2ps? ( app-text/a2ps )
+ mercurial? ( dev-vcs/mercurial )
+ "
+
+src_install() {
+ emake DESTDIR="${ED}" $(usex mercurial '' 'HGRCDIR=') install
+ dodoc README.md
+}
diff --git a/dev-util/cwdiff/cwdiff-0.4.0.ebuild b/dev-util/cwdiff/cwdiff-0.4.0.ebuild
new file mode 100644
index 000000000000..77fac3a57420
--- /dev/null
+++ b/dev-util/cwdiff/cwdiff-0.4.0.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+if [ "${PV}" = "9999" ]; then
+ EGIT_REPO_URI="https://github.com/junghans/${PN}.git"
+ inherit git-r3
+ KEYWORDS=""
+else
+ SRC_URI="https://github.com/junghans/cwdiff/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x64-macos ~x86-macos"
+fi
+
+DESCRIPTION="A script that wraps wdiff to support directories and colorize the output"
+HOMEPAGE="https://github.com/junghans/cwdiff"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="mercurial"
+
+DEPEND="sys-apps/help2man
+ sys-apps/coreutils"
+RDEPEND="
+ sys-apps/sed
+ app-shells/bash
+ app-text/wdiff
+ sys-apps/diffutils
+ mercurial? ( dev-vcs/mercurial )
+ "
+
+src_install() {
+ emake DESTDIR="${ED}" $(usex mercurial '' 'HGRCDIR=') install
+ dodoc README.md
+}
diff --git a/dev-util/cwdiff/cwdiff-9999.ebuild b/dev-util/cwdiff/cwdiff-9999.ebuild
new file mode 100644
index 000000000000..59f7eb49bc90
--- /dev/null
+++ b/dev-util/cwdiff/cwdiff-9999.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+if [ "${PV}" = "9999" ]; then
+ EGIT_REPO_URI="https://github.com/junghans/${PN}.git"
+ inherit git-r3
+ KEYWORDS=""
+else
+ SRC_URI="https://github.com/junghans/cwdiff/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x64-macos ~x86-macos"
+fi
+
+DESCRIPTION="A script that wraps wdiff to support directories and colorize the output"
+HOMEPAGE="https://github.com/junghans/cwdiff"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="mercurial"
+
+DEPEND="sys-apps/help2man
+ sys-apps/coreutils"
+RDEPEND="
+ sys-apps/sed
+ app-shells/bash
+ app-text/wdiff
+ sys-apps/diffutils
+ mercurial? ( dev-vcs/mercurial )
+ "
+
+src_install() {
+ emake DESTDIR="${ED}" $(usex mercurial '' 'HGRCDIR=') install
+ dodoc README.md
+}
diff --git a/dev-util/cwdiff/metadata.xml b/dev-util/cwdiff/metadata.xml
new file mode 100644
index 000000000000..fb6f52b0def6
--- /dev/null
+++ b/dev-util/cwdiff/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>junghans@gentoo.org</email>
+ <name>Christoph Junghans</name>
+ </maintainer>
+ <use>
+ <flag name="a2ps">install <pkg>app-text/a2ps</pkg> for postscript output</flag>
+ <flag name="mercurial">install hg wdiff alias for <pkg>dev-vcs/mercurial</pkg></flag>
+ </use>
+ <upstream>
+ <remote-id type="github">junghans/cwdiff</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/cyclo/Manifest b/dev-util/cyclo/Manifest
new file mode 100644
index 000000000000..d58a6c0fc0fd
--- /dev/null
+++ b/dev-util/cyclo/Manifest
@@ -0,0 +1,4 @@
+DIST cyclo-2.1.0.tar.gz 27120 SHA256 b8753c149e298d3683add4aec834fb4a4b748636b7bfd9a79a2548e6b81e2045 SHA512 19cf4116e55ba3dff6e49536fed7e5a8da4cc2b691874b5356e67763652785b3f349cb309629e9aca66be15f1c4632ece8bcd5cc3b69373a5a7923eab8058382 WHIRLPOOL c805174fffb6d1cc9a5d9d6c6f7a460699a48347ce5ac5eae0f55cbc3b55b5305624f8e29ecd9f9889242557bd362bfcb99feda8661fd26e13250be590d11132
+EBUILD cyclo-2.1.0.ebuild 1045 SHA256 4dc86002c8f601ac6b691374b96fa92371e4f953784cc7274c108826eaf79c05 SHA512 471e26f0e828075db53f14b093150e84af1897a468893d1d6d480f16c9bfa961769b7b30978dca58cc3a863e7aa42fc868c49a7bc3ebc5e6c90f68b5459ef718 WHIRLPOOL 2c888b5e111a11b47da015ceb5ef71a8e921480d96876f36b4cdaf3b76df3840c3e1f325fccd22eb671c69114cc44b9625aa22e4339166882a9543fb0aec82ab
+MISC ChangeLog 1334 SHA256 b159d8e6278b403f31e822a498a54192255d09a95712a63afe969a597835a893 SHA512 2657cfac634c622ae42671846bd7047992e1ab78871be42d25e387df158cab8826ced532592216fa00724a998d3bdb7cac47b94a6aadabc70155a90096599944 WHIRLPOOL b5244362fbde562ff6bb9a1ab0812f81f67f74fb0c52365792fd048c465ece46333b33f5933b427a7dfeef046d85c11a14cf0461a14f3f1330fd0cef301633c0
+MISC metadata.xml 426 SHA256 568605b1e07330970159443ce3ca815987e82366d1823e18e8a5a4f46b9e16dd SHA512 fdfe058a00119d456af23e314426ead9fa02903e9c3b91c9176cd2dd611b46e876e8c3787a9d6937682b6b3d65eb5f688348f7cbffd9197a666042f02bacb6ac WHIRLPOOL e543e968dd2467427f88f30052c0e40d8a8cd1a4d9d751a9ea2b4526fd07bd9b5a8a02b94d1f86f7be0b62063be018fd238fb3558ec0e4fbd89ff9485a2add7b
diff --git a/dev-util/cyclo/cyclo-2.1.0.ebuild b/dev-util/cyclo/cyclo-2.1.0.ebuild
new file mode 100644
index 000000000000..7f3353155ed8
--- /dev/null
+++ b/dev-util/cyclo/cyclo-2.1.0.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Computes cyclomatic complexity metrics on C source code."
+HOMEPAGE="https://github.com/sarnold/cyclo"
+
+if [[ ${PV} = 9999* ]]; then
+ EGIT_REPO_URI="https://github.com/sarnold/cyclo.git"
+ inherit git-r3
+else
+ SRC_URI="https://github.com/sarnold/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+fi
+
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+SLOT="0"
+LICENSE="GPL-2"
+IUSE="debug"
+
+DEPEND="sys-devel/flex"
+
+src_compile() {
+ local my_opts
+ my_opts="CC=$(tc-getCC) CXX=$(tc-getCXX)"
+
+ if ! use debug ; then
+ DBG="" emake ${my_opts} || die "make failed"
+ else
+ export STRIP_MASK="*/bin/*"
+ if [ -n "${DEBUG}" ] ; then
+ DBG="${DEBUG}" emake ${my_opts} \
+ || die "make debug failed"
+ else
+ emake ${my_opts} || die "make debug failed"
+ fi
+ fi
+}
+
+src_test() {
+ make -f Makefile.test test
+}
+
+src_install() {
+ emake PREFIX=/usr DESTDIR="${ED}" install
+}
diff --git a/dev-util/cyclo/metadata.xml b/dev-util/cyclo/metadata.xml
new file mode 100644
index 000000000000..aefcf1b14858
--- /dev/null
+++ b/dev-util/cyclo/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>nerdboy@gentoo.org</email>
+ <name>Steve Arnold</name>
+</maintainer>
+<maintainer type="person">
+ <email>blueness@gentoo.org</email>
+ <name>Anthony G. Basile</name>
+</maintainer>
+<upstream>
+ <remote-id type="github">sarnold/cyclo</remote-id>
+</upstream>
+</pkgmetadata>
diff --git a/dev-util/d-feet/Manifest b/dev-util/d-feet/Manifest
new file mode 100644
index 000000000000..755dd2af5c5a
--- /dev/null
+++ b/dev-util/d-feet/Manifest
@@ -0,0 +1,9 @@
+DIST d-feet-0.3.10.tar.xz 179500 SHA256 88f0df5fcb862387ff3d1793873c5eb368c3e4db0bbd82ea65f748cbf70a6359 SHA512 7a6832367b32eae204c456598ac4ad38ead585e916e2d2179203f63f4e87f2e9d9afbc8448324660552ebe4aaf2bd394f73e48f325513c3b0f5fa33f91fce40b WHIRLPOOL 559135be86d13bb7e2ff1c10d753d1c770e2fc0d0a849b643c626fb5db5e3779e5f7b7208086d6e2e92e3f1f81e06f5cb9e3cbc41510c0acab30b3b71fdf99ca
+DIST d-feet-0.3.11.tar.xz 183128 SHA256 a3dc940c66f84b996c328531e3034d475ec690d7ff639445ff7ca746aa8cb9c2 SHA512 a7b72e8f01661d28f4c0a33e20f32c50206d133c1f0ccf22cc3696978f7b7410bdcba29f68d58ccd9ab132cc7ea8fdee99ffe8ca09e8ad992b61df48aeb444ea WHIRLPOOL c2d173139b80e8772c5aa823232cd3e9ad284ad9b8fd43f221d226bfa9f8518ae11e7e39b17e6a3656e54c6baf6a10e1362070b4158f3ee3062b1c9a98b9d372
+DIST d-feet-0.3.12.tar.xz 184308 SHA256 c868c350ea4bb0101d9aeb344661ed4b723f523a5010faf3712ec5984da19014 SHA512 ef7a8aa57893cc210327420e954d39d256733839e6a171b8e035f15089fdf963c708a39c3b931b8a85d9faf78a1be324576c5fa2440db8305c1bfc8a8d9e991e WHIRLPOOL 13124b9dfb27e650cb57400c94e25e8a316c0fcc9b061102ef0355b56f9d5c3ee99519f2e55637921897cf25c4f1e244ecd636a527ceeee30efe069fea9e557c
+EBUILD d-feet-0.3.10.ebuild 1320 SHA256 45d034b56e9c5a4cf01b0307153240016ded7fe44ace97f573f98a42afa7469c SHA512 99bb54dcb697adebc79c0ad0176605e7138f08c2e0b582112eae3176973f0f36c4858f879cb0b66724a7b7ba30396396f1a52a8cfe2224f9b932b1aa1e7dd512 WHIRLPOOL d3443273f349fc85f581d1bc9d33c4fb9eecde41aa7c51bac42fd016f828d7c1b813ee4d8cc506c0d20fea88c502170e77db1387aa32638ba9486367f544a350
+EBUILD d-feet-0.3.11.ebuild 1309 SHA256 e11b96e87a9192497dfa93ea4b0569711b6fd2524122fceec6ab89aa1961d215 SHA512 cce6d699e762ff0ef449f696c25dd3d8ded8821dabeb6685128d08c286e45d9dd86239143a19a9b15fc3d12ab4b249f7110006433a08efb815799d549b589517 WHIRLPOOL 45eae520394feee117fa238d7e692f09a4631a4aa459b52044ccb5723d23e4ba206588d4a198814914d79488af68d70d923e4b21b166b7e31cda8d908420a690
+EBUILD d-feet-0.3.12.ebuild 1373 SHA256 63bbc8dcaf8a0252be87e71ab550454b47f793a95366eaf51c289c30907feb40 SHA512 ded3c9d39f01c59da6460710a208fb2d151d3237cce725304755bf159402a6bd0d952ccf4e23c52c6bb8d3f1203f7d47922e8714d26ad610a9b331d53d6c950f WHIRLPOOL ac54ec4bee73db88432147a7706ca3e2f751635ed6aadf5adc4592f28539c12a1e1d15e2d92c56dac9dc751e0c264d30e7a702992ffe36181e064e39ed281128
+MISC ChangeLog 3590 SHA256 30d8c5b3ba964408a90c658f1ed6d48c3d1fc7832f0c5233b8359898e257ce9e SHA512 bca733e15e6c46045aa3f37775c5ccb9255c42e896ffaf04d5d0561ea4ea299b0be2c3846ad0c7bea73a0e9737b528c03a01b9fb155e8bd6d5d99c5df00d4636 WHIRLPOOL f6bb9a5ddfe00684cf8838c751a52de0fcefb1c03948d33cbce33463837c1e0ce4fa85afea0a438a1ff524707cfb59fb2b1b27567ae9a6e969c02c715a078b88
+MISC ChangeLog-2015 5861 SHA256 585497adf085f686cf3d237bf9844f58482650146a07f510f8022614b2cffae2 SHA512 5dc80f6af3a5d5c011622b75c726aa0d8a50bc999a0242f0842bbbcb31c1f76385ebcbbad9d4f86b177a83ffc34ae388c609e2a9c80a01753d006da671df52bd WHIRLPOOL 2e0c074fae3db53d36960323018bc9da237bd3938b5bd263b72b681da28756b550d4351ba00df4e386642c552d511739c6836b238e2535c33c90b17b9cb76686
+MISC metadata.xml 432 SHA256 b6363535707f9d2ed0c4e91ea149ba57442fa4b66f60cf4e715fd498b41cfd95 SHA512 0cf318c10b2e7b85135560df21bde6857dcb101d101ae51f384dc613681afb29c15303de0ffd23b8478b2b81dbd5faa051e816df71155230e1eef1b6a99bc699 WHIRLPOOL c3dadf1f2a8a27c6adb374b7c317d56395ed99484f69caef75fabfffcc52b2732de801d90d538cb4a6df9cf309e59c6f181dbc77ea215239851b2aea119c29a0
diff --git a/dev-util/d-feet/d-feet-0.3.10.ebuild b/dev-util/d-feet/d-feet-0.3.10.ebuild
new file mode 100644
index 000000000000..3b01d733dbe2
--- /dev/null
+++ b/dev-util/d-feet/d-feet-0.3.10.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+GCONF_DEBUG="no"
+PYTHON_COMPAT=( python2_7 )
+
+inherit gnome2 python-single-r1 virtualx
+
+DESCRIPTION="D-Feet is a powerful D-Bus debugger"
+HOMEPAGE="https://wiki.gnome.org/Apps/DFeet"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="test"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="
+ ${PYTHON_DEPS}
+ >=dev-libs/glib-2.34:2
+ >=dev-libs/gobject-introspection-0.9.6
+ >=dev-python/pygobject-3.3.91:3[${PYTHON_USEDEP}]
+ >=sys-apps/dbus-1
+ >=x11-libs/gtk+-3.9.4:3[introspection]
+ x11-libs/libwnck:3[introspection]
+"
+DEPEND="
+ ${PYTHON_DEPS}
+ app-text/yelp-tools
+ >=dev-util/intltool-0.40.0
+"
+
+src_prepare() {
+ python_fix_shebang .
+
+ # Do not run update-desktop-database (sandbox violation)
+ sed -e '/^UPDATE_DESKTOP/s:=.*:=true:' \
+ -i data/Makefile.am data/Makefile.in || die
+
+ # disable pep8 - checking python whitespace style is not useful for us
+ sed -e 's/pep8 /# pep8 /' \
+ -i src/tests/Makefile.am src/tests/Makefile.in || die
+
+ gnome2_src_prepare
+}
+
+src_configure() {
+ # disable pep8 - checking python code style is not useful downstream
+ # (especially when that style check fails!)
+ gnome2_src_configure \
+ $(use_enable test tests) \
+ PEP8=$(type -P true)
+}
+
+src_test() {
+ Xemake check
+}
diff --git a/dev-util/d-feet/d-feet-0.3.11.ebuild b/dev-util/d-feet/d-feet-0.3.11.ebuild
new file mode 100644
index 000000000000..45c0789e57d1
--- /dev/null
+++ b/dev-util/d-feet/d-feet-0.3.11.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+
+inherit gnome2 python-single-r1 virtualx
+
+DESCRIPTION="D-Feet is a powerful D-Bus debugger"
+HOMEPAGE="https://wiki.gnome.org/Apps/DFeet"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+
+IUSE="test"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="
+ ${PYTHON_DEPS}
+ >=dev-libs/glib-2.34:2
+ >=dev-libs/gobject-introspection-0.9.6:=
+ >=dev-python/pygobject-3.3.91:3[${PYTHON_USEDEP}]
+ >=sys-apps/dbus-1
+ >=x11-libs/gtk+-3.9.4:3[introspection]
+ x11-libs/libwnck:3[introspection]
+"
+DEPEND="
+ ${PYTHON_DEPS}
+ app-text/yelp-tools
+ >=dev-util/intltool-0.40.0
+"
+
+src_prepare() {
+ python_fix_shebang .
+
+ # Do not run update-desktop-database (sandbox violation)
+ sed -e '/^UPDATE_DESKTOP/s:=.*:=true:' \
+ -i data/Makefile.am data/Makefile.in || die
+
+ # disable pep8 - checking python whitespace style is not useful for us
+ sed -e 's/pep8 /# pep8 /' \
+ -i src/tests/Makefile.am src/tests/Makefile.in || die
+
+ gnome2_src_prepare
+}
+
+src_configure() {
+ # disable pep8 - checking python code style is not useful downstream
+ # (especially when that style check fails!)
+ gnome2_src_configure \
+ $(use_enable test tests) \
+ PEP8=$(type -P true)
+}
+
+src_test() {
+ virtx emake check
+}
diff --git a/dev-util/d-feet/d-feet-0.3.12.ebuild b/dev-util/d-feet/d-feet-0.3.12.ebuild
new file mode 100644
index 000000000000..b5b02cde18d3
--- /dev/null
+++ b/dev-util/d-feet/d-feet-0.3.12.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+
+inherit gnome2 python-single-r1 virtualx
+
+DESCRIPTION="D-Feet is a powerful D-Bus debugger"
+HOMEPAGE="https://wiki.gnome.org/Apps/DFeet"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+IUSE="test +X"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+COMMON_DEPEND="
+ ${PYTHON_DEPS}
+ >=x11-libs/gtk+-3.9.4:3[introspection]
+ >=dev-libs/gobject-introspection-0.9.6:=
+"
+RDEPEND="
+ ${COMMON_DEPEND}
+ >=dev-libs/glib-2.34:2
+ >=dev-python/pygobject-3.3.91:3[${PYTHON_USEDEP}]
+ >=sys-apps/dbus-1
+ X? ( x11-libs/libwnck:3[introspection] )
+"
+DEPEND="
+ ${COMMON_DEPEND}
+ app-text/yelp-tools
+ >=dev-util/intltool-0.40.0
+"
+
+src_prepare() {
+ python_fix_shebang .
+
+ # Do not run update-desktop-database (sandbox violation)
+ sed -e '/^UPDATE_DESKTOP/s:=.*:=true:' \
+ -i data/Makefile.am data/Makefile.in || die
+
+ # disable pep8 - checking python whitespace style is not useful for us
+ sed -e 's/pep8 /# pep8 /' \
+ -i src/tests/Makefile.am src/tests/Makefile.in || die
+
+ gnome2_src_prepare
+}
+
+src_configure() {
+ # disable pep8 - checking python code style is not useful downstream
+ # (especially when that style check fails!)
+ gnome2_src_configure \
+ $(use_enable test tests) \
+ PEP8=$(type -P true)
+}
+
+src_test() {
+ virtx emake check
+}
diff --git a/dev-util/d-feet/metadata.xml b/dev-util/d-feet/metadata.xml
new file mode 100644
index 000000000000..bac79bab471d
--- /dev/null
+++ b/dev-util/d-feet/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>cardoe@gentoo.org</email>
+ <name>Doug Goldstein</name>
+ <description>Feel free to bump or do any updates as needed</description>
+</maintainer>
+<maintainer type="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+</maintainer>
+</pkgmetadata>
diff --git a/dev-util/dbus-test-runner/Manifest b/dev-util/dbus-test-runner/Manifest
new file mode 100644
index 000000000000..c188065cea65
--- /dev/null
+++ b/dev-util/dbus-test-runner/Manifest
@@ -0,0 +1,7 @@
+DIST dbus-test-runner-12.10.1.tar.gz 382108 SHA256 71f2aa4a48a8f88f1629389f902bbfaf42df4b1fcbea9473acc78de75fab525f SHA512 6d40d607fdc417ebb9aaa6dc3cdd41a8ff1563cb3791689d17a99d105a0c16dad8ffcaf3da7ab6b8c3dcae17d2eba1bf8a6a5d92dc1d3de0975218220ed3c9c0 WHIRLPOOL 2c14b7022aede43c4ce2e4afb1e457a0aebc443ec956552eefd7e6a101aa0045d5bd2e91c9fa0d8ddd93315fc7b5a65d0dadc045acbae11eaa00380b4b45a951
+DIST dbus-test-runner-15.04.0_p100.tar.xz 304760 SHA256 44017df1729b0b3956cc7d3f153626c85eaa9796eb155bc1f5330b97e929df9b SHA512 4ff94fe022d69c0bc83b35fb14397fb59daa0b6a9ff9d7f0c93582bc5468ba6e495d4b95f9b4d8cb56f0b782d4582dc2cb67fc087aefa59295a3b40ecdbfa34d WHIRLPOOL c67bf03e407a0edea8e2fc1df8630608d2acf66840b71e61f6bbe7e19c26755b3357cbb59b0fc794ce8f6149816b6d165e8cefa1513b13e84d71519d26921817
+EBUILD dbus-test-runner-12.10.1.ebuild 748 SHA256 9c50707702bfff9bc40f3bedd0e44e6f7659e5befaf78c7c10f1d6e71f43943b SHA512 9a1f2b4ed8b757ca09a1195d567716620d7ecea9d45e4ee4c31d478c29cc5b2a95941f536a9c59e8c4c61b34f8e55d823d655ebb5641f93e0a41dbb339cf85fa WHIRLPOOL 33eaffc59dac4f13d0cefde4ed4b2b9888087a4b302cca66112020fbc290e137df3c9ed85160127b42a6ba6b677e1e002dfcd7df2eab2ef80b1c3f1b3f97597e
+EBUILD dbus-test-runner-15.04.0_p100.ebuild 1043 SHA256 cd6e6094bb71102132d43ec988a33d7b332fa75fd14deee83b6d89c1ff86f694 SHA512 750a3e416d477858f9cbc0d4f8f952d276df4ea04c03d51916e2e3887c50df12e730d696edf9a3ba03d39608caa6b10ec41fdc06918e7633236f3d74f025fed6 WHIRLPOOL 79f117bbf7e36d666e7f60dba998c31b916751bffde3cba0cf2683b0e2d9a454fe84dc7c31f994d6ef935dd056e96bce3338e4327a5d2ba3754ad0e0acb6867c
+MISC ChangeLog 2647 SHA256 87ca899066b80705a834a340ceb9a14c3e3b24a68b3fb8ffa7cb05dc0fa8944c SHA512 e44deda9fe256ba469f8ad0fe7f0596bf3da9934e6ea41f13c550446ac76e360f1d5e0c63bc7e3738273912b8c3c3edfb20d292021dd9c1e731ac61dd925d33a WHIRLPOOL 2d72f6606ba814ceea12ae92f06cd121db2537393e99105c936c9bb16d73e7e273a35d137559f6de04b1c6e86e25972aebfec6cc06ddaadd9e158b7079264252
+MISC ChangeLog-2015 2529 SHA256 eb3669534945d3e9fc95c26f488027c074b89acbd7193e17a3a78dbf1069defc SHA512 2a2f3e99f4344c40165ff61ca76b096b5006ccd70d49d79682535580013e4d108151eeb7beb719a935762f923e871d3fb06d5a6dd543432d3de081ea97439965 WHIRLPOOL 6012efe9fea6cfa9c013725d277475972c21d9b5c8e4448aa83fa58d642166b2224cd4895a003f22b56dd89a37b11b051658858ce9075f09c17d30b7459d6ef0
+MISC metadata.xml 333 SHA256 1ee80ff5e994244dcf3e0acc9b1f930409efcd90b854f9e08143c2faef5391a2 SHA512 49280112f98ca94c67ad00e21fcf02da3848ec391852dcfe5cc065404449339f5c1f6bfe01825e7da2f58e1134648df630f4c1c292b6169df23f017544bcd299 WHIRLPOOL e1badd573fd76617288897491698608a132564129ef2c8a088665cf70c4ed298350a3f8c7ab8c44f9017a870b48eb209dcb251a375740f76c8a3e7077f87bd04
diff --git a/dev-util/dbus-test-runner/dbus-test-runner-12.10.1.ebuild b/dev-util/dbus-test-runner/dbus-test-runner-12.10.1.ebuild
new file mode 100644
index 000000000000..c69ab316a910
--- /dev/null
+++ b/dev-util/dbus-test-runner/dbus-test-runner-12.10.1.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+MY_MAJOR_VERSION=12.10
+
+DESCRIPTION="Run executables under a new DBus session for testing"
+HOMEPAGE="https://launchpad.net/dbus-test-runner"
+SRC_URI="https://launchpad.net/${PN}/${MY_MAJOR_VERSION}/${PV}/+download/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~alpha amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc x86"
+
+IUSE="test"
+
+RDEPEND="
+ >=dev-libs/dbus-glib-0.98
+ >=dev-libs/glib-2.34:2
+"
+DEPEND="
+ ${RDEPEND}
+ dev-util/intltool
+ test? ( dev-util/bustle )
+"
+
+src_prepare() {
+ # Drop -Werror usage
+ sed -e 's/-Werror//' \
+ -i libdbustest/Makefile.{am,in} \
+ -i src/Makefile.{am,in} \
+ -i tests/Makefile.{am,in} \
+ || die
+}
diff --git a/dev-util/dbus-test-runner/dbus-test-runner-15.04.0_p100.ebuild b/dev-util/dbus-test-runner/dbus-test-runner-15.04.0_p100.ebuild
new file mode 100644
index 000000000000..009601bfd42f
--- /dev/null
+++ b/dev-util/dbus-test-runner/dbus-test-runner-15.04.0_p100.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python{3_4,3_5,3_6} )
+inherit flag-o-matic python-single-r1
+
+DESCRIPTION="Run executables under a new DBus session for testing"
+HOMEPAGE="https://launchpad.net/dbus-test-runner"
+SRC_URI="https://dev.gentoo.org/~mgorny/dist/${P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64"
+IUSE="test"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}
+ >=dev-libs/dbus-glib-0.98
+ >=dev-libs/glib-2.34:2
+ dev-python/dbusmock[${PYTHON_USEDEP}]
+"
+DEPEND="
+ ${RDEPEND}
+ app-arch/xz-utils
+ dev-util/intltool
+"
+# now optional:
+# test? ( dev-util/bustle )
+
+src_prepare() {
+ default
+
+ # bind to specific Python version (with dbusmock installed)
+ sed -i -e "s:python3:${EPYTHON}:" \
+ libdbustest/dbus-mock.c tests/test-libdbustest-mock.c || die
+}
+
+src_configure() {
+ append-flags -Wno-error
+ econf --disable-static
+}
+
+src_install() {
+ default
+ find "${D}" -name '*.la' -delete || die
+}
diff --git a/dev-util/dbus-test-runner/metadata.xml b/dev-util/dbus-test-runner/metadata.xml
new file mode 100644
index 000000000000..10ad7bb86af4
--- /dev/null
+++ b/dev-util/dbus-test-runner/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="project">
+ <email>kde@gentoo.org</email>
+ <name>Gentoo KDE Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="launchpad">dbus-test-runner</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/ddd/Manifest b/dev-util/ddd/Manifest
new file mode 100644
index 000000000000..12bac66f9b75
--- /dev/null
+++ b/dev-util/ddd/Manifest
@@ -0,0 +1,10 @@
+AUX ddd-3.3.12-gcc44.patch 209 SHA256 d7b660a66546fb155c2363ce9151e0677e4d797cc76efb9305c3b27d1dbfadc3 SHA512 9373fee21d92b5661c659bcad0f9ce4bca25c86eba40d5d6e498f454cd56af225f290431bd79bfd98a6da5e49180ccb8fd37c144fb99e8b75c886c066e48b129 WHIRLPOOL 9214031c4e82fc5d669dcab25770503a2545e48f4738bf08c9b7800dec5f37acf8809c3b9d99a5fb0d50b79e51bc745a8388f910094d1880347611965a782b65
+AUX ddd-3.3.12-gdb-disassembler-bug.patch 266 SHA256 c3cbffc025e42ee554239fafeabe7a9f39d1f392ce282185ac3b4523f2244845 SHA512 15ca238a9ac88c0736c861b962558f09be53f1bc85a5d46d6efb8d6c7ff6fc089b9f730dc0b691d65bbc40010cbd4d2cc4947f369d12271c214770114d533b14 WHIRLPOOL e4faf346d1bad10ea3170a6978791a5e5b172e11efd22405567f5760c7c27c116ee147fad2269a2258cba7b349371b4f5eb4ef160f101bb792b44cc354aeff70
+AUX ddd-3.3.12-man.patch 571 SHA256 d11ba4c540f14fff9ecf5507f86148fe5da2fa7954097a3a199389bc0e9023f0 SHA512 830115e517f754702892549d780003033e29fc0668824540cc63c3270e8445549896505a6584ccee104d94ffcf152bff679d946922f9d6fffc75d77abdbb8a59 WHIRLPOOL 8213f746f5d751c2c38afeebf553a191cacdfdad75fc04c095d6abc1c9f3e36e93a714de1091aa52fa31cdacd9b4cf943b80d828e0ac5f97e23a73c845487862
+AUX ddd-3.3.12-tinfo.patch 330 SHA256 55e1743d8646cebc53810d853000255ab57f8275e1d9ed4f0160d574778a3a81 SHA512 a3cd3d59bdcce6c106d4488ec9a6c32d8baea49963f61e8e493a01131fd604664dca2e9e548852ff4c538c7123f5c1572bc54d6143340167fcdfa754002eb224 WHIRLPOOL e3e8eb096c3f571b5e0accd693e373e12b3d5fef79d4ee2ad6bff95e20944d3cca8759ccec7b0fc8e3d619cae7a56d461eb55281bcb8153ac909e22e5596090e
+DIST ddd-3.3.12.tar.gz 5687115 SHA256 3ad6cd67d7f4b1d6b2d38537261564a0d26aaed077bf25c51efc1474d0e8b65c SHA512 1249e4f5f25335f8f2c3616470f7a8f36262c00b8ac12b79f2b2806228de2831ebeb780fe09490e5e8b5b1ca108fe936ae70856f6a6ec02876fc75c7b4a7dbf3 WHIRLPOOL 5f4117036abc0b9f7cadd5547bbd7bd959427f783a5ea7d32be0682c23d31cf48fb45d4d2a2a9688190a6ff35159ebc48b15b295bcceb1f297eaf7133f252bf2
+EBUILD ddd-3.3.12-r3.ebuild 2109 SHA256 c1a5b0d128a6fef64cae14bd8771d57ad6dd92438acf46ef92120fe6226e4f82 SHA512 a35a94a13c1f0e45822924bef5788e11020e06bed74cb182b5c3517c63a0ada32ba71074253d0ccf0d2a9b200b2e7e25bc09b0945ef8cea2f2b646ed73b73044 WHIRLPOOL cc97ca0f13657d0b2b645f990c67d528ebe56fba4b03f6eaed0a60b59fe28c8452cf7e358c46cc96198c07a61addf25d2849ad6d84d008ffa8010c13e431a902
+EBUILD ddd-3.3.12-r4.ebuild 2253 SHA256 2c306038d5b8669fe15c4bcddba34fd341671ca6e7468959e9da380bf942fc11 SHA512 1848449b892ef84a52da03672ff432c903000dde5ab4836f80ffa51daa1132742605c8979a97f52bf18a52ca698a8f693fd3367aa2cfaadfb6031ae62c054f9e WHIRLPOOL 76aecbc7451c04b9ecc637c9ba19038cda2d6939577b8151dfb8a73679aa29df8c2fcc1b4131cbe49cb22626b98201f730866c0eacac9b0304028ad6a63b3de8
+MISC ChangeLog 2543 SHA256 cfac0e665e01be5c09aa111a62514561bf0b00cc1efade0d0094b07fe01640aa SHA512 124dda7bdf7a3ee64efdc85e4213ef05c77972e418b4cab8376eb1999a46abdb8670e5e5143caebe7af0cd391703956f167125b15ab18a77c51dc331718ea657 WHIRLPOOL 2848e7adc6028bdcb89b8af319ab949e2f2c2a30a4f6ba84cacaa6116ce937146739ad7bf94f86eb5a266461cab0f42cf173a75ba09e0933eb950306032e3378
+MISC ChangeLog-2015 10926 SHA256 2b85f6b8e2b805efcb97f44daabe10f0c146fb3ff06a0585e3b0581cd3adca78 SHA512 7c3415b28a546faf3bfbb375a691291a5ef7aa3029d46bd8ad92e28b89c03ea1bc0f67248ca0da44633853dcd71dabb790e1e9006562d738604a241dc72be72b WHIRLPOOL ea482b063e9784e397dd1ff5de8a8253a1ede866f8dfed87c77be94d732cd2f3bf68a4d959c02835da32eace2fa6f40204e039ef844312343394d262d93dab9c
+MISC metadata.xml 658 SHA256 007b1a8959083b4c81d84867b1f5f7cb2dcdee3338066dbc5030b25fc9e0c0fb SHA512 8b304bbca5e836ff3032079f5dd2afea432b8f48e2c57575644adbefba0ddc4f64e3682f35f53c2804c27e950785ae8040f8704c05162acf302c6fb61b70c51d WHIRLPOOL 74f806dfea6a8215f521ba49792f67f2956dd00b3a1d031e6492692794f2b08fac8b4d61f9dbdf25313b7ce9a4fab5c9182064d076db3a8538008ba62e4d6f78
diff --git a/dev-util/ddd/ddd-3.3.12-r3.ebuild b/dev-util/ddd/ddd-3.3.12-r3.ebuild
new file mode 100644
index 000000000000..bed46086f113
--- /dev/null
+++ b/dev-util/ddd/ddd-3.3.12-r3.ebuild
@@ -0,0 +1,90 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+
+inherit autotools-utils eutils
+
+DESCRIPTION="Graphical front-end for command-line debuggers"
+HOMEPAGE="https://www.gnu.org/software/ddd"
+SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-3 LGPL-3 FDL-1.1"
+KEYWORDS="alpha amd64 ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux"
+SLOT="0"
+IUSE="+gnuplot readline"
+
+COMMON_DEPEND="
+ sys-devel/gdb
+ sys-libs/ncurses
+ x11-libs/libX11
+ x11-libs/libXaw
+ x11-libs/libXmu
+ x11-libs/libXpm
+ x11-libs/libXt
+ >=x11-libs/motif-2.3:0
+ ppc? ( dev-libs/elfutils )
+ ppc64? ( dev-libs/elfutils )
+ readline? ( sys-libs/readline )
+"
+DEPEND="${COMMON_DEPEND}
+ x11-proto/xproto
+"
+RDEPEND="${COMMON_DEPEND}
+ x11-apps/xfontsel
+ gnuplot? ( sci-visualization/gnuplot )
+"
+
+RESTRICT="test"
+
+PATCHES=(
+ "${FILESDIR}/${P}-gcc44.patch"
+ "${FILESDIR}/${P}-gdb-disassembler-bug.patch"
+ "${FILESDIR}/${PN}-3.3.12-man.patch"
+)
+
+DOCS=(
+ AUTHORS CREDITS INSTALL NEWS PROBLEMS README TIPS TODO
+ doc/ddd{-paper.ps,.pdf,-themes.pdf}
+)
+
+AUTOTOOLS_AUTORECONF=1
+
+src_configure() {
+ local myeconfargs=(
+ --disable-static
+ --with-termlib=ncurses
+ $(use_with readline)
+ )
+ autotools-utils_src_configure
+}
+
+src_install() {
+ # Remove app defaults
+ rm -f "${S}"/ddd/Ddd
+
+ # Install ddd distribution
+ autotools-utils_src_install
+
+ # Install application icon
+ doicon "${S}"/icons/ddd.xpm
+}
+
+pkg_postinst() {
+ if ! use gnuplot; then
+ echo
+ elog "To enable data visualization in DDD, install sci-visualization/gnuplot,"
+ elog "or re-emerge DDD with gnuplot USE flag (recommended)."
+ elog "For flat file package.use layout:"
+ elog " echo '${CATEGORY}/${PN} gnuplot' >> /etc/portage/package.use && emerge -va gnuplot"
+ elog "For directory package.use layout:"
+ elog " echo '${CATEGORY}/${PN} gnuplot' > /etc/portage/package.use/ddd && emerge -va gnuplot"
+ fi
+ echo
+ elog "To be able to debug java, bash, perl or python scripts within DDD, install respectively:"
+ elog " virtual/jdk"
+ elog " app-shells/bashdb"
+ elog " dev-lang/perl"
+ elog " dev-python/pydb"
+ echo
+}
diff --git a/dev-util/ddd/ddd-3.3.12-r4.ebuild b/dev-util/ddd/ddd-3.3.12-r4.ebuild
new file mode 100644
index 000000000000..6c0222b31bf7
--- /dev/null
+++ b/dev-util/ddd/ddd-3.3.12-r4.ebuild
@@ -0,0 +1,94 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit autotools eutils
+
+DESCRIPTION="Graphical front-end for command-line debuggers"
+HOMEPAGE="https://www.gnu.org/software/ddd"
+SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-3 LGPL-3 FDL-1.1"
+KEYWORDS="alpha amd64 ia64 ppc ppc64 sparc x86 ~ppc-aix ~amd64-linux ~x86-linux"
+SLOT="0"
+IUSE="readline"
+
+COMMON_DEPEND="
+ sys-devel/gdb
+ sys-libs/ncurses:*
+ x11-libs/libX11
+ x11-libs/libXaw
+ x11-libs/libXmu
+ x11-libs/libXpm
+ x11-libs/libXt
+ >=x11-libs/motif-2.3:0
+ ppc? ( dev-libs/elfutils )
+ ppc64? ( dev-libs/elfutils )
+ readline? ( sys-libs/readline:* )
+"
+DEPEND="${COMMON_DEPEND}
+ x11-proto/xproto
+"
+RDEPEND="${COMMON_DEPEND}
+ x11-apps/xfontsel
+"
+
+RESTRICT="test"
+
+PATCHES=(
+ "${FILESDIR}/${P}-gcc44.patch"
+ "${FILESDIR}/${P}-gdb-disassembler-bug.patch"
+ "${FILESDIR}/${PN}-3.3.12-man.patch"
+ "${FILESDIR}/${PN}-3.3.12-tinfo.patch"
+)
+
+DOCS=(
+ AUTHORS CREDITS INSTALL NEWS PROBLEMS README TIPS TODO
+ doc/ddd{-paper.ps,.pdf,-themes.pdf}
+)
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --disable-static \
+ $(use_with readline)
+}
+
+src_install() {
+ # Remove app defaults
+ rm -f "${S}"/ddd/Ddd
+
+ # Install ddd distribution
+ default
+
+ # Install application icon
+ doicon "${S}"/icons/ddd.xpm
+}
+
+pkg_postinst() {
+ if ! has_version sci-visualization/gnuplot; then
+ echo
+ elog "To enable data visualization in DDD, install sci-visualization/gnuplot."
+ elog "For flat file package.use layout:"
+ elog " echo '${CATEGORY}/${PN} gnuplot' >> /etc/portage/package.use && emerge -va gnuplot"
+ elog "For directory package.use layout:"
+ elog " echo '${CATEGORY}/${PN} gnuplot' > /etc/portage/package.use/ddd && emerge -va gnuplot"
+ elog
+ fi
+ echo
+ elog "Important notice: if you encounter DDD crashes during visualization, you might"
+ elog "have hit bug #459324. Try switching to plotting in external window:"
+ elog "Select Edit|Preferences|Helpers and switch 'plot window' to 'external'"
+ elog
+ elog "To be able to debug java, bash, perl or python scripts within DDD, install respectively:"
+ elog " virtual/jdk"
+ elog " app-shells/bashdb"
+ elog " dev-lang/perl"
+ elog " dev-python/pydb"
+ echo
+}
diff --git a/dev-util/ddd/files/ddd-3.3.12-gcc44.patch b/dev-util/ddd/files/ddd-3.3.12-gcc44.patch
new file mode 100644
index 000000000000..2464b2b4a9c4
--- /dev/null
+++ b/dev-util/ddd/files/ddd-3.3.12-gcc44.patch
@@ -0,0 +1,10 @@
+--- ddd-3.3.12-orig/ddd/strclass.C
++++ ddd-3.3.12/ddd/strclass.C
+@@ -39,6 +39,7 @@
+ #include <limits.h>
+ #include <new>
+ #include <stdlib.h>
++#include <stdio.h>
+
+ void string::error(const char* msg) const
+ {
diff --git a/dev-util/ddd/files/ddd-3.3.12-gdb-disassembler-bug.patch b/dev-util/ddd/files/ddd-3.3.12-gdb-disassembler-bug.patch
new file mode 100644
index 000000000000..738cda5946f9
--- /dev/null
+++ b/dev-util/ddd/files/ddd-3.3.12-gdb-disassembler-bug.patch
@@ -0,0 +1,11 @@
+--- a/ddd/GDBAgent.C 2004-09-01 20:07:38.000000000 +0200
++++ b/ddd/GDBAgent.C 2010-06-15 14:16:34.000000000 +0200
+@@ -3078,7 +3078,7 @@
+ {
+ string end_( end );
+ normalize_address(end_);
+- cmd += ' ';
++ cmd += ',';
+ cmd += end_;
+ }
+ return cmd;
diff --git a/dev-util/ddd/files/ddd-3.3.12-man.patch b/dev-util/ddd/files/ddd-3.3.12-man.patch
new file mode 100644
index 000000000000..06f9deb806f0
--- /dev/null
+++ b/dev-util/ddd/files/ddd-3.3.12-man.patch
@@ -0,0 +1,16 @@
+diff -ruN ddd-3.3.12/ddd/Makefile.am ddd-my/ddd/Makefile.am
+--- ddd-3.3.12/ddd/Makefile.am 2009-02-11 18:25:07.000000000 +0100
++++ ddd-my/ddd/Makefile.am 2012-11-06 01:48:46.363493473 +0100
+@@ -1371,10 +1371,8 @@
+ man_MANS = ddd.1
+
+ # `ddd.man' has 8-bit format, `ddd.1' has 7-bit format
+-ddd.1: ddd.man $(srcdir)/unumlaut.sed
+- -$(SED) -f $(srcdir)/unumlaut.sed ddd.man | $(DELETE_CR) > $@~ \
+- && $(MV) $@~ $@
+-
++ddd.1: ddd.man
++ iconv -f ISO8859-15 -t UTF-8 ddd.man > ddd.1
+
+
+ # -----------------------------------------------------------------------------
diff --git a/dev-util/ddd/files/ddd-3.3.12-tinfo.patch b/dev-util/ddd/files/ddd-3.3.12-tinfo.patch
new file mode 100644
index 000000000000..ab7df14ae9d9
--- /dev/null
+++ b/dev-util/ddd/files/ddd-3.3.12-tinfo.patch
@@ -0,0 +1,11 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -360,7 +360,7 @@
+ dnl
+ _termlib="${ddd_termlib}"
+ if test "x${ddd_termlib}" = x; then
+- _termlib="mytinfo ncurses curses termcap terminfo termlib"
++ _termlib="mytinfo ncurses tinfo curses termcap terminfo termlib"
+ fi
+ _termlib_path=
+ if test x"${ddd_termlib_libraries_path}" != x; then
diff --git a/dev-util/ddd/metadata.xml b/dev-util/ddd/metadata.xml
new file mode 100644
index 000000000000..97858007ab0b
--- /dev/null
+++ b/dev-util/ddd/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>reavertm@gentoo.org</email>
+ <name>Maciej Mrozowski</name>
+ </maintainer>
+ <longdescription lang="en">
+ GNU DDD is a graphical front-end for command-line debuggers such as
+ GDB, DBX, WDB, Ladebug, JDB, XDB, the Perl debugger, the bash debugger,
+ or the Python debugger. Besides ``usual'' front-end features such as
+ viewing source texts, DDD has become famous through its interactive
+ graphical data display, where data structures are displayed as graphs.
+ </longdescription>
+</pkgmetadata>
diff --git a/dev-util/debhelper/Manifest b/dev-util/debhelper/Manifest
new file mode 100644
index 000000000000..d74014079177
--- /dev/null
+++ b/dev-util/debhelper/Manifest
@@ -0,0 +1,9 @@
+DIST debhelper_10.8.tar.xz 418392 SHA256 15fd4ffa30657cffab6cd7a3aeff2429a64e9c80745e96ecdedc1360f1501ab2 SHA512 c867eaedcd6a31befd8bfe6b91d7aee68f0f210baacde4e709c66b86ffa8479e4f635270f9cdfff19cc9aea3c41c645679a47af4eed15308c2808df9b818ea86 WHIRLPOOL 73be55020fa026b7e90d20e1b64ee450af472b3db17a2fad6ca6063ac3c1cff98cfe4f8f33d6d94c844fe2d74588d0f1fb64132749133b7077ba64896f227dbe
+DIST debhelper_10.9.tar.xz 420736 SHA256 85905a4c7d36137e1d51df064c5177c76535b37fcd4b7d28c68622c877ddab41 SHA512 0efec68a6a01530e57f220593e66ff9f527aa57deb1df025728a52754e32ea6a4f5d57e9c8fb4fb2eb0c584cd9951dd69a92aeaf0c274806c17473ef9926ac61 WHIRLPOOL ce83de4eb9fe28b5f1e3d1a2ac7bddab19c8dc0c6e8852a7d9c5c01b2c4a95848cb05a15248fc8024168ed8042e1a74587821c0c6785baf2a2c1b722c6efcdaa
+DIST debhelper_9.20160814.tar.xz 344328 SHA256 2834a7c1dbeafd9402ea68948c815dab19d903503c45fd70e676269fccd359c0 SHA512 63072ba35ec8c62ee4c4d44833712925264c808a91f1522ef6a73377f2da3d11b285a21ad39158fd44693c801916189261186c8c7b28096719328a81a0a65f62 WHIRLPOOL 334f0aa8075896ec13a061b9841adb5f2b7c5fa6996b507785f50389c86c48e3c89a84ff1049ae7d7cbe4876b649010f892f54f1074ecafd76061bf0588e65d6
+EBUILD debhelper-10.8.ebuild 1561 SHA256 a49fc3ff25cb7de20487f6c892531f5f0d74862cfdba2aad606285cc6ab711c5 SHA512 5e1efe03d1ca488f0b2948706ade5a8ac9d9e8e321fd40ecb8c92b82e95716e7c4fde7cc21b203095cf9a3640174776d785606ad8ec88e97c093700915d477bb WHIRLPOOL c15d0c43fa16e42d31a8a38272d7988f2a3e28782c5b81572dde018cabf2ba67077e1dfea861992dc20751a9576b429f1eceb9ce3d9c6d625413407d78d0ccd0
+EBUILD debhelper-10.9.ebuild 1561 SHA256 a49fc3ff25cb7de20487f6c892531f5f0d74862cfdba2aad606285cc6ab711c5 SHA512 5e1efe03d1ca488f0b2948706ade5a8ac9d9e8e321fd40ecb8c92b82e95716e7c4fde7cc21b203095cf9a3640174776d785606ad8ec88e97c093700915d477bb WHIRLPOOL c15d0c43fa16e42d31a8a38272d7988f2a3e28782c5b81572dde018cabf2ba67077e1dfea861992dc20751a9576b429f1eceb9ce3d9c6d625413407d78d0ccd0
+EBUILD debhelper-9.20160814.ebuild 1552 SHA256 f5c72e8da17e980a58499ee9012a0ee5d4fe6d0f86eae76bf2cfea3a8872d32e SHA512 101be0361c520416b32d1584498834583c0ad161f10e472ba82743e5b4322e0f8caf737d6796eac6716225d4e2841127f1d3f869d635fdd1e891b77520dc0db2 WHIRLPOOL b1202695449e78a51dc83f0fa96f308faf17326b31a90f8f89c3625aa658e115258b8eb3403552ce57e544ad05069ef89ff0d62354c0d424bfcf26f794a9f3ae
+MISC ChangeLog 7636 SHA256 fa311f8535f6aff2ced962b7bc47e2e87f3d78b1d5077a4024793714d8388dc2 SHA512 58765119b2e1ab49da678f4cc3b3c400adb6722bcdd80db57434e1a36b533dca6efa0b68bc167be14939fc08d23f32c50583c0d07255432abc964d976d2d823c WHIRLPOOL daa41e2c4ddbfa908603ea6dcdd7fc87dd6fdda72c179962d16e18547c703f37288eeba6c78c58b0fb53385e3c5c45a455f6c66a7f9c696d9b65618869d40374
+MISC ChangeLog-2015 18510 SHA256 7f92f884e9115b587c3a5838b527e388ac5198ab4579f59be668f928e15d33ab SHA512 21463637e19558c87c1eaf0b3b7e86c6c5c337b6f7c9c432ccbbe5be8427727ce317dcd239df3e99043c093256d35232718b9628553cdcf786e1db72ffd102b1 WHIRLPOOL 7af51dc5bea277f47477f30582e0f78894f37d282e1bf1d72a63961e753f2aa54ac7a5d07f35f2f1d801e5a27f74b452aae9d18c88b2ed3257f066a995c88714
+MISC metadata.xml 260 SHA256 72bd5e7db1270a240e1056a156a6cba011807920842cd86d042e633dfb9c332e SHA512 b7f7421081083b48e0aa1d7cff7a776b18d670a32a2af64341332c39d0f531735f86857555e70327e257d51f6e0c97b3e293075bf59b9048ce0c0ec097c36735 WHIRLPOOL 11047ec766233b3370e226bf40bdc808ed242a7c0a77ca7c2f8e97f27196e13ae184f7a4e97bca69538ec2b702a5ff64e4297aa523a5147c1be542ff6562c349
diff --git a/dev-util/debhelper/debhelper-10.8.ebuild b/dev-util/debhelper/debhelper-10.8.ebuild
new file mode 100644
index 000000000000..c4f2a7b166cc
--- /dev/null
+++ b/dev-util/debhelper/debhelper-10.8.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Collection of programs that can be used to automate common tasks in debian/rules"
+HOMEPAGE="https://packages.qa.debian.org/d/debhelper.html"
+SRC_URI="mirror://debian/pool/main/d/${PN}/${P/-/_}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux"
+IUSE="test"
+DH_LINGUAS=( de es fr )
+IUSE+=" ${DH_LINGUAS[@]/#/linguas_}"
+
+NLS_DEPEND=$(
+ printf "linguas_%s? ( >=app-text/po4a-0.24 )\n" ${DH_LINGUAS[@]}
+)
+
+RDEPEND="
+ >=dev-lang/perl-5.10:=
+ >=app-arch/dpkg-1.17
+ dev-perl/TimeDate
+ virtual/perl-Getopt-Long
+"
+DEPEND="
+ ${RDEPEND}
+ ${NLS_DEPEND}
+ test? (
+ dev-perl/Test-Pod
+ sys-apps/fakeroot
+ )
+"
+
+S=${WORKDIR}/${PN}
+
+src_compile() {
+ tc-export CC
+
+ local LANGS="" USE_NLS=no lingua
+ for lingua in ${DH_LINGUAS[@]}; do
+ if use linguas_${lingua}; then
+ LANGS+=" ${lingua}"
+ USE_NLS=yes
+ fi
+ done
+
+ emake USE_NLS="${USE_NLS}" LANGS="${LANGS}" build
+}
+
+src_install() {
+ emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install
+ dodoc doc/* debian/changelog
+ docinto examples
+ dodoc examples/*
+ local lingua
+ for manfile in *.1 *.7 ; do
+ for lingua in ${DH_LINGUAS[@]}; do
+ case ${manfile} in
+ *.${lingua}.?)
+ use linguas_${lingua} \
+ && cp ${manfile} "${T}"/${manfile/.${lingua}/} \
+ && doman -i18n=${lingua} "${T}"/${manfile/.${lingua}/}
+ ;;
+ *)
+ doman ${manfile}
+ ;;
+ esac
+ done
+ done
+}
diff --git a/dev-util/debhelper/debhelper-10.9.ebuild b/dev-util/debhelper/debhelper-10.9.ebuild
new file mode 100644
index 000000000000..c4f2a7b166cc
--- /dev/null
+++ b/dev-util/debhelper/debhelper-10.9.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Collection of programs that can be used to automate common tasks in debian/rules"
+HOMEPAGE="https://packages.qa.debian.org/d/debhelper.html"
+SRC_URI="mirror://debian/pool/main/d/${PN}/${P/-/_}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux"
+IUSE="test"
+DH_LINGUAS=( de es fr )
+IUSE+=" ${DH_LINGUAS[@]/#/linguas_}"
+
+NLS_DEPEND=$(
+ printf "linguas_%s? ( >=app-text/po4a-0.24 )\n" ${DH_LINGUAS[@]}
+)
+
+RDEPEND="
+ >=dev-lang/perl-5.10:=
+ >=app-arch/dpkg-1.17
+ dev-perl/TimeDate
+ virtual/perl-Getopt-Long
+"
+DEPEND="
+ ${RDEPEND}
+ ${NLS_DEPEND}
+ test? (
+ dev-perl/Test-Pod
+ sys-apps/fakeroot
+ )
+"
+
+S=${WORKDIR}/${PN}
+
+src_compile() {
+ tc-export CC
+
+ local LANGS="" USE_NLS=no lingua
+ for lingua in ${DH_LINGUAS[@]}; do
+ if use linguas_${lingua}; then
+ LANGS+=" ${lingua}"
+ USE_NLS=yes
+ fi
+ done
+
+ emake USE_NLS="${USE_NLS}" LANGS="${LANGS}" build
+}
+
+src_install() {
+ emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install
+ dodoc doc/* debian/changelog
+ docinto examples
+ dodoc examples/*
+ local lingua
+ for manfile in *.1 *.7 ; do
+ for lingua in ${DH_LINGUAS[@]}; do
+ case ${manfile} in
+ *.${lingua}.?)
+ use linguas_${lingua} \
+ && cp ${manfile} "${T}"/${manfile/.${lingua}/} \
+ && doman -i18n=${lingua} "${T}"/${manfile/.${lingua}/}
+ ;;
+ *)
+ doman ${manfile}
+ ;;
+ esac
+ done
+ done
+}
diff --git a/dev-util/debhelper/debhelper-9.20160814.ebuild b/dev-util/debhelper/debhelper-9.20160814.ebuild
new file mode 100644
index 000000000000..3333a21a303d
--- /dev/null
+++ b/dev-util/debhelper/debhelper-9.20160814.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Collection of programs that can be used to automate common tasks in debian/rules"
+HOMEPAGE="https://packages.qa.debian.org/d/debhelper.html"
+SRC_URI="mirror://debian/pool/main/d/${PN}/${P/-/_}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ~m68k ppc ppc64 ~s390 ~sh sparc x86 ~amd64-linux"
+IUSE="test"
+DH_LINGUAS=( de es fr )
+IUSE+=" ${DH_LINGUAS[@]/#/linguas_}"
+
+NLS_DEPEND=$(
+ printf "linguas_%s? ( >=app-text/po4a-0.24 )\n" ${DH_LINGUAS[@]}
+)
+
+RDEPEND="
+ >=dev-lang/perl-5.10:=
+ >=app-arch/dpkg-1.17
+ dev-perl/TimeDate
+ virtual/perl-Getopt-Long
+"
+DEPEND="
+ ${RDEPEND}
+ ${NLS_DEPEND}
+ test? (
+ dev-perl/Test-Pod
+ sys-apps/fakeroot
+ )
+"
+
+S=${WORKDIR}/${PN}
+
+src_compile() {
+ tc-export CC
+
+ local LANGS="" USE_NLS=no lingua
+ for lingua in ${DH_LINGUAS[@]}; do
+ if use linguas_${lingua}; then
+ LANGS+=" ${lingua}"
+ USE_NLS=yes
+ fi
+ done
+
+ emake USE_NLS="${USE_NLS}" LANGS="${LANGS}" build
+}
+
+src_install() {
+ emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install
+ dodoc doc/* debian/changelog
+ docinto examples
+ dodoc examples/*
+ local lingua
+ for manfile in *.1 *.7 ; do
+ for lingua in ${DH_LINGUAS[@]}; do
+ case ${manfile} in
+ *.${lingua}.?)
+ use linguas_${lingua} \
+ && cp ${manfile} "${T}"/${manfile/.${lingua}/} \
+ && doman -i18n=${lingua} "${T}"/${manfile/.${lingua}/}
+ ;;
+ *)
+ doman ${manfile}
+ ;;
+ esac
+ done
+ done
+}
diff --git a/dev-util/debhelper/metadata.xml b/dev-util/debhelper/metadata.xml
new file mode 100644
index 000000000000..6fcc384cc403
--- /dev/null
+++ b/dev-util/debhelper/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="project">
+ <email>deb-tools@gentoo.org</email>
+ <name>Gentoo Debian Tools Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/dev-util/debootstrap/Manifest b/dev-util/debootstrap/Manifest
new file mode 100644
index 000000000000..2dbd186f1d2d
--- /dev/null
+++ b/dev-util/debootstrap/Manifest
@@ -0,0 +1,10 @@
+DIST debootstrap_1.0.87.tar.gz 65875 SHA256 e48c931b8c0a4981c580db1a85418177bf62f18320a376aefbc7910e1f1fb3aa SHA512 a36d566292f25093e0367a912f262e95036e355a3f4872a5b957cff53999f4491cc30d7d65a08c31e68f98d75c0a5229b88681895720ff9a610d5fffe4565060 WHIRLPOOL b1fa7835051b69fc21bdbdadad81af3f5e9ba2218c0502c86a93118282e1ca0e901e81b5a6ab691bc6f154265d651ec7bb598d4df89387c04a3c87c5285e777e
+DIST debootstrap_1.0.89.tar.gz 69020 SHA256 3fde1e34eae8744d802ff4f4ba5464b8c8829c0afe9d394c8a536cfdaca23885 SHA512 3f230ce3eff6359353d106c806ce395861fb47fc1416eb0b498af7ce12a45ce7572b18284633d6d4d07b73a4a203e03bc205df3eae0db6f637237d25d0a69b1a WHIRLPOOL 3eb2b66794d0e49e52eb87761bf2dad8980c20d41c032b1ec06742945a0999ac18ff721907721c00a92d0f1597b1560d47e461fe78bd3081af6cb5ec4d3d1cb4
+DIST debootstrap_1.0.91.tar.gz 70171 SHA256 65947fd131217867ce774c4b00d16d6d082da21751b4338cfe9270970fdbe011 SHA512 5d1633c31b6a17aa3da4644a750875fd05bdfd448f90bcd453fc7bdb64df13e6bc4f2e8a6968e0c36302fa0458b9ac321e2ed3dbc68a4f4c071f7c16d950953c WHIRLPOOL 14574aa707e93d2d3718e14ee6f21fec4ff97c568679a26ba4884c53de0384f92b45b23436bb4f676195fa24f348756fcc3076f01cc60677d2c453e93b0b6992
+DIST devices.tar.gz 47835 SHA256 0d93f93c8b21160069d14e74f8f990a2e0e1e5a90dc828b29e6b3f5aa5829e48 SHA512 994ec8d72e3d52d2d872f7ff0da2336e4cbd3a5fa73bb6cdb9e06f5e7f5b8c69cea639c738fdba1186f382d6dcf62e7746fface664bfbd744aac24b16f034432 WHIRLPOOL 222963bb920e1311bc2f481bba04e49f386b60cce6ce0576424896277e0c4fc6a339d4403d587744c32b0bfb1db6391f200fa8d66117e3f21e1c12f35365d732
+EBUILD debootstrap-1.0.87.ebuild 1174 SHA256 fd31d19c7d2c48addb4f627fd8f26a342eae936ede93b758ae73bdf1c0ecdcb0 SHA512 61168ab5fac341d00a9d58cffb56e3912bfd56b4ff7fc1c3fae945edc6618e582d49c1233082b4e2750849607919b724789bef2a242b837dbf766b288061a16a WHIRLPOOL 61fddf7677fe429990ba5981e8479eeece4b7f2fd4ef31df0a455951842a36c5aa329e6c9483f04c9b6776e572035e0005140157a905ca1817888490e4e5beaf
+EBUILD debootstrap-1.0.89.ebuild 1195 SHA256 39df31b3a9d4ecc8161c8965e82b6dfcdb803cc3682f8c850fb147753daa0cb4 SHA512 c2348330d9f4ed35f62903edf95f7e68a35850fa49e472ea7b441762d5439ed5862f00bff21e6b5804d8da843b8b55596d3c654055035a6985ee87515fab79ee WHIRLPOOL f8e7c0c1fd7486f452de36f0a1385a7ccb6a804349fb56642b31905264cfe28175677a5e5f863598d99e66537a5f0c50769663d9d93bd1b5beb645be0e18dbcb
+EBUILD debootstrap-1.0.91.ebuild 1183 SHA256 c89005c4f228bf3a98d2319a97dd10c92e523a82bf1b326ee005144735394721 SHA512 c4ddb7e092b5859048f0fceeb4d68ccb119a8e5bc48f691eed82163a83193255a33b77e5e3d8bb5f0b11bca400d668aac45b5ced70a1ef3e9aeaa83c210ed6ba WHIRLPOOL a02146799c2852a721794d52a97cb6cc8a4036c592621d6f892896e7360019d2476b8626ab2edf58ae9c9c88960ab3fa7c29448398dd2773dea117e7099002bd
+MISC ChangeLog 9261 SHA256 6e6109fd8207260cbb98ba72e1032252f48179d225e42ca10b74b0c61e29eceb SHA512 f1fd535e1765d7aaaaf7e78024c79618c8a7ccae8cdc420963b8d2101006b901a3c5cf6a3b6b39e0243f52614927141adce3d9f138291cc61a0f20e847ef0e2e WHIRLPOOL 22f14977afce505f0dad9e0684bc528b0a0b8057226312bab58affc45bfef924142cbc6cbcbc1648d2cb08afdc8cef49c6e0dbb20be67cd2e5762646f1eabb6d
+MISC ChangeLog-2015 35849 SHA256 1534b0e16da4ea353547125a29fd69abed3b8d5b0e42c582f3397a92a66de966 SHA512 cad43266da4f1f23992ffacf32c35b8ab75bb90a277542faa081ba688eceb00d81f5f207fe11e3f9f4b04298d69d551e81bf0936c0fef4fb1b00ea805896f7ac WHIRLPOOL 91364f1501c5797fa3d667db65226313ba0310574a8a343dbbb3dad10c1d3852bcb738c1e779b2ed9dcff6e81ba52fb39d8d0e1ca1968017bc377e4aef2efb9f
+MISC metadata.xml 258 SHA256 92f28cefc9cf866e62c1c3e31ef841af0b62b6d1c0659f9691186bf4a0831aa6 SHA512 07739557f72a6f241bb1d2e4f61ca138e5dab6996ccaa4b4072057f0aa3ad2adfdfffe65683becd9d467729efc574bf158d846a8b3a7782cb180a13f0033b6b0 WHIRLPOOL 09b40e337b57813b470ec7bdff8c1ec3c672225f16ece0ff7ca75f005b9a79ff90d7d3e6e7d21069dbf20de535e2cb1349d3b578eef5b7a79b54e1e8125b0e00
diff --git a/dev-util/debootstrap/debootstrap-1.0.87.ebuild b/dev-util/debootstrap/debootstrap-1.0.87.ebuild
new file mode 100644
index 000000000000..46bf8b22850c
--- /dev/null
+++ b/dev-util/debootstrap/debootstrap-1.0.87.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils
+
+DESCRIPTION="Debian/Ubuntu bootstrap scripts"
+HOMEPAGE="https://packages.qa.debian.org/d/debootstrap.html"
+SRC_URI="mirror://debian/pool/main/d/${PN}/${PN}_${PV}.tar.gz
+ mirror://gentoo/devices.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 ~sh sparc x86 ~amd64-linux ~x86-linux"
+
+RDEPEND="
+ app-arch/dpkg
+ net-misc/wget
+ sys-devel/binutils
+"
+
+DOCS=( TODO debian/changelog )
+
+src_unpack() {
+ unpack ${PN}_${PV}.tar.gz
+ cp "${DISTDIR}"/devices.tar.gz "${S}"
+}
+
+src_compile() {
+ return
+}
+
+src_install() {
+ default
+ doman debootstrap.8
+}
+
+pkg_postinst() {
+ if ! has_version ${CATEGORY}/${PN} && ! has_version app-crypt/gnupg; then
+ elog "To check Release files against a keyring (--keyring=K), please"
+ elog "install app-crypt/gnupg"
+ fi
+
+ if ! has_version app-crypt/debian-archive-keyring || ! has_version app-crypt/ubuntu-keyring; then
+ elog "To check Release files from Debian or Ubuntu, please install"
+ elog " app-crypt/debian-archive-keyring or"
+ elog " app-crypt/ubuntu-keyring as required"
+ fi
+}
diff --git a/dev-util/debootstrap/debootstrap-1.0.89.ebuild b/dev-util/debootstrap/debootstrap-1.0.89.ebuild
new file mode 100644
index 000000000000..7e781ab8a49f
--- /dev/null
+++ b/dev-util/debootstrap/debootstrap-1.0.89.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils
+
+DESCRIPTION="Debian/Ubuntu bootstrap scripts"
+HOMEPAGE="https://packages.qa.debian.org/d/debootstrap.html"
+SRC_URI="mirror://debian/pool/main/d/${PN}/${PN}_${PV}.tar.gz
+ mirror://gentoo/devices.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha amd64 arm hppa ia64 ~mips ppc ppc64 ~sh ~sparc x86 ~amd64-linux ~x86-linux"
+
+RDEPEND="
+ app-arch/dpkg
+ net-misc/wget
+ sys-devel/binutils
+"
+
+S=${WORKDIR}/${PN}
+DOCS=( TODO debian/changelog )
+
+src_unpack() {
+ unpack ${PN}_${PV}.tar.gz
+ cp "${DISTDIR}"/devices.tar.gz "${S}"
+}
+
+src_compile() {
+ return
+}
+
+src_install() {
+ default
+ doman debootstrap.8
+}
+
+pkg_postinst() {
+ if ! has_version ${CATEGORY}/${PN} && ! has_version app-crypt/gnupg; then
+ elog "To check Release files against a keyring (--keyring=K), please"
+ elog "install app-crypt/gnupg"
+ fi
+
+ if ! has_version app-crypt/debian-archive-keyring || ! has_version app-crypt/ubuntu-keyring; then
+ elog "To check Release files from Debian or Ubuntu, please install"
+ elog " app-crypt/debian-archive-keyring or"
+ elog " app-crypt/ubuntu-keyring as required"
+ fi
+}
diff --git a/dev-util/debootstrap/debootstrap-1.0.91.ebuild b/dev-util/debootstrap/debootstrap-1.0.91.ebuild
new file mode 100644
index 000000000000..fc955a4bad4e
--- /dev/null
+++ b/dev-util/debootstrap/debootstrap-1.0.91.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils
+
+DESCRIPTION="Debian/Ubuntu bootstrap scripts"
+HOMEPAGE="https://packages.qa.debian.org/d/debootstrap.html"
+SRC_URI="mirror://debian/pool/main/d/${PN}/${PN}_${PV}.tar.gz
+ mirror://gentoo/devices.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux"
+
+RDEPEND="
+ app-arch/dpkg
+ net-misc/wget
+ sys-devel/binutils
+"
+
+DOCS=( TODO debian/changelog )
+
+src_unpack() {
+ unpack ${PN}_${PV}.tar.gz
+ cp "${DISTDIR}"/devices.tar.gz "${S}"
+}
+
+src_compile() {
+ return
+}
+
+src_install() {
+ default
+ doman debootstrap.8
+}
+
+pkg_postinst() {
+ if ! has_version ${CATEGORY}/${PN} && ! has_version app-crypt/gnupg; then
+ elog "To check Release files against a keyring (--keyring=K), please"
+ elog "install app-crypt/gnupg"
+ fi
+
+ if ! has_version app-crypt/debian-archive-keyring || ! has_version app-crypt/ubuntu-keyring; then
+ elog "To check Release files from Debian or Ubuntu, please install"
+ elog " app-crypt/debian-archive-keyring or"
+ elog " app-crypt/ubuntu-keyring as required"
+ fi
+}
diff --git a/dev-util/debootstrap/metadata.xml b/dev-util/debootstrap/metadata.xml
new file mode 100644
index 000000000000..e2792cd33e75
--- /dev/null
+++ b/dev-util/debootstrap/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="project">
+<email>deb-tools@gentoo.org</email>
+<name>Gentoo Debian Tools Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/dev-util/debugedit/Manifest b/dev-util/debugedit/Manifest
new file mode 100644
index 000000000000..074d76bcdcc1
--- /dev/null
+++ b/dev-util/debugedit/Manifest
@@ -0,0 +1,8 @@
+AUX Makefile 143 SHA256 36e9d1c153b6dea6f2b337f0aa2749e207f38e4cf438d144f38b01e1e500719a SHA512 f8b870bda202f170551e3f9c305f2b6c8c47d0df82e257c8164f79af4a25ce8707c3da50b5bc8414283c8a4ac5ecdb5a802df7c2bdd435eebc59382533bc5875 WHIRLPOOL dee7884edc646a57d1b42d194bbcb244ce9d9095111a622a6a5374e79d9822bcdeaf2fafa44f7180df805f65ec944e2998b2d301fe210a0d66ba4885d1e3a381
+AUX debugedit-5.3.5-DWARF-4.patch 3235 SHA256 ab01e2a5fe5e77ba5254858d2cc800d7129cb932498f43866a02d5842675d6bd SHA512 594bed4c2433e15c840316ca132619fc2b65ea5477cfe416ef851414d44932b3f8e75d006025eefbfc9c6cdcea956ff9ffc28dd4ef4fe5858a486ce5d08f43af WHIRLPOOL c1d9052edffb0d8594dc94e0ceb73f47452c54ccc25cbede484abde75bf9342647250b85724d16ebc984615382a6e00b0dafb8474ffa806fa64e3c8c246ffff7
+AUX update.sh 1690 SHA256 dee47083f18459d62857b22aecfba31400200e5ba17eec5a884b413e50e605a8 SHA512 5b271427d6391f717286289c5ec6eb794e99b7f0bd966100d3db03f84507000bc9256526f4ad6cdf809ff1800d53d5ed64d76bb14733507563d7a6123c9fc422 WHIRLPOOL d509050ef7c00c0a88753cfb2a2ea8d7c6fa995c1d16effba64a7c711bb4f3476c7cc8324967a4420fdf0011640ee83e1455563f0e2c2618e7779b0c99c573b8
+DIST debugedit-5.3.5.tar.bz2 27799 SHA256 150461508dfd7791c9408c33248e5271e837167fdfa11d69d6fb51cc16d90663 SHA512 afac800a8f2e035705fcf997500d8fd2c3dc658850f47754863e8811db97859748721c5a252cc90dc81d07bf08763a9507e2272e983ee3f6bf16d8016fe5b8c9 WHIRLPOOL f3ae87994c7b9f3233502b4212b9036eae169b0ed18632c4565cf7f299012c4ef02558f476ebc4d17f3bb82c64eba8b7ed180138b66062c215546747e64c2025
+EBUILD debugedit-5.3.5-r1.ebuild 839 SHA256 0935ff044a94f9649b06dce22db58ca7d12178dbbbdaff91bfcbe9cba6e99339 SHA512 692e99f06c5ff651970549cdd37d0c6f50cd86271d11d75a3e71e5696aead523f9c0a109f46314fa728aafbb1ffc4ffcf4b8818acb0d5476838483fa2db7aaa6 WHIRLPOOL 6e808a414b1d9595d41ffd7f540aeec6505d70349d00b304bd5474dc98dd7ea1da6d0256229974f3327004b5c91165d36405505440b905bf7292b2632d51d388
+MISC ChangeLog 3561 SHA256 b1ca17102c16a290b1a517ab3d7efa2bfb272fa2f6568a4d5e780ce36672ddcf SHA512 9fe29edf6b02e0ade0cdf13b240c44acc05c9cef1f8c84ca2d69eebb3990dc4e79ba67c0d7a209a0701cd9e8e417e5d5b9ba8937a1177a29d1acfa9b75414de5 WHIRLPOOL 10c73332096ddafb7c881e3f4dd93b49c64143236d178db5769ec92ec623c3e70adbcfbd9bafec391efde80a4c9d9444f395aae44e1fb90e280afef066fa4ed0
+MISC ChangeLog-2015 4951 SHA256 75ce1c8cca7f197c54476edbe8cfb1238616fc34e0eaa279d0b0873f34f6b721 SHA512 9002f8a8f0bcf35dab461025623871e86225dc2bad54e57272d1b3496179bd4b06afdfb9f57703902b71ba7ca03f1fe3953c044fa6feeb04f1f1524d5122229f WHIRLPOOL 9bb6e6b9d50955388f6ac66035ab75553d21b767d54a9251a6ba386766739088dfa2e3889d53fadde8a84e24d50c5b28e8b28d36066d4578f5e026d68689f3ae
+MISC metadata.xml 253 SHA256 d82c33ef453113a5c1ebe250dcba373c22934a69b0a86c6ab15a5ca589c25b91 SHA512 54a9069aeb4165d2dff3d473c8001bc51613aac9dff3f7f5e9971a9891a737a31511ffa11cbd523febe581ac1d9de2bdf2f40410f0c4239138f2ccca3ef15555 WHIRLPOOL e5aee23acff864609953a1e4de768f0e4aef704b44c53c021f28573e1ca5c99f1a46d92935ecec2449f7b4419a36d8373127d0ecfa8d7bae72d835e1839eb3f8
diff --git a/dev-util/debugedit/debugedit-5.3.5-r1.ebuild b/dev-util/debugedit/debugedit-5.3.5-r1.ebuild
new file mode 100644
index 000000000000..c4baa6c94f3d
--- /dev/null
+++ b/dev-util/debugedit/debugedit-5.3.5-r1.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# To recreate this tarball, just grab latest rpm5 release:
+# http://rpm5.org/files/rpm/
+# The files are in tools/
+# Or see $FILESDIR/update.sh
+
+EAPI="5"
+
+inherit toolchain-funcs eutils
+
+DESCRIPTION="standalone debugedit taken from rpm"
+HOMEPAGE="http://www.rpm5.org/"
+SRC_URI="https://dev.gentoo.org/~swegener/distfiles/${P}.tar.bz2
+ https://dev.gentoo.org/~vapier/dist/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 hppa ~ia64 ppc ppc64 x86 ~amd64-linux ~arm-linux ~x86-linux"
+IUSE=""
+
+DEPEND="dev-libs/popt
+ dev-libs/elfutils
+ dev-libs/beecrypt"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-5.3.5-DWARF-4.patch #400663
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)"
+}
+
+src_install() {
+ dobin debugedit
+}
diff --git a/dev-util/debugedit/files/Makefile b/dev-util/debugedit/files/Makefile
new file mode 100644
index 000000000000..946a12865f64
--- /dev/null
+++ b/dev-util/debugedit/files/Makefile
@@ -0,0 +1,11 @@
+CPPFLAGS += -I.
+LDLIBS = -lelf -lpopt -lbeecrypt
+
+all: debugedit
+
+debugedit: debugedit.o hashtab.o
+
+clean:
+ rm -f *.o debugedit
+
+.PHONY: clean
diff --git a/dev-util/debugedit/files/debugedit-5.3.5-DWARF-4.patch b/dev-util/debugedit/files/debugedit-5.3.5-DWARF-4.patch
new file mode 100644
index 000000000000..3e1406196e9b
--- /dev/null
+++ b/dev-util/debugedit/files/debugedit-5.3.5-DWARF-4.patch
@@ -0,0 +1,129 @@
+add DWARF 4 support
+
+https://bugs.gentoo.org/400663
+https://bugzilla.redhat.com/show_bug.cgi?id=707677
+
+--- debugedit-5.3.5/debugedit.c 2011-10-11 05:37:49.000000000 +0200
++++ debugedit-5.3.5/debugedit.c 2012-01-25 01:27:23.487999039 +0100
+@@ -70,6 +70,10 @@
+ #include <rpmtag.h>
+
+ #define DW_TAG_partial_unit 0x3c
++#define DW_FORM_sec_offset 0x17
++#define DW_FORM_exprloc 0x18
++#define DW_FORM_flag_present 0x19
++#define DW_FORM_ref_sig8 0x20
+
+ char *base_dir = NULL;
+ char *dest_dir = NULL;
+@@ -246,6 +250,7 @@
+ #define DEBUG_STR 8
+ #define DEBUG_FRAME 9
+ #define DEBUG_RANGES 10
++#define DEBUG_TYPES 11
+ { ".debug_info", NULL, NULL, 0, 0, 0 },
+ { ".debug_abbrev", NULL, NULL, 0, 0, 0 },
+ { ".debug_line", NULL, NULL, 0, 0, 0 },
+@@ -257,6 +262,7 @@
+ { ".debug_str", NULL, NULL, 0, 0, 0 },
+ { ".debug_frame", NULL, NULL, 0, 0, 0 },
+ { ".debug_ranges", NULL, NULL, 0, 0, 0 },
++ { ".debug_types", NULL, NULL, 0, 0, 0 },
+ { NULL, NULL, NULL, 0, 0, 0 }
+ };
+
+@@ -349,7 +355,8 @@
+ goto no_memory;
+ }
+ form = read_uleb128 (ptr);
+- if (form == 2 || form > DW_FORM_indirect)
++ if (form == 2
++ || (form > DW_FORM_flag_present && form != DW_FORM_ref_sig8))
+ {
+ error (0, 0, "%s: Unknown DWARF DW_FORM_%d", dso->filename, form);
+ htab_delete (h);
+@@ -378,7 +385,6 @@
+ canonicalize_path (const char *s, char *d)
+ {
+ char *rv = d;
+- const char *sroot;
+ char *droot;
+
+ if (IS_DIR_SEPARATOR (*s))
+@@ -394,7 +400,6 @@
+ s++;
+ }
+ droot = d;
+- sroot = s;
+
+ while (*s)
+ {
+@@ -513,7 +518,7 @@
+ }
+
+ value = read_16 (ptr);
+- if (value != 2 && value != 3)
++ if (value != 2 && value != 3 && value != 4)
+ {
+ error (0, 0, "%s: DWARF version %d unhandled", dso->filename,
+ value);
+@@ -529,8 +534,8 @@
+ return 1;
+ }
+
+- opcode_base = ptr[4];
+- ptr = dir = ptr + 4 + opcode_base;
++ opcode_base = ptr[4 + (value >= 4)];
++ ptr = dir = ptr + 4 + (value >= 4) + opcode_base;
+
+ /* dir table: */
+ value = 1;
+@@ -758,7 +763,8 @@
+ {
+ if (t->attr[i].attr == DW_AT_stmt_list)
+ {
+- if (form == DW_FORM_data4)
++ if (form == DW_FORM_data4
++ || form == DW_FORM_sec_offset)
+ {
+ list_offs = do_read_32_relocated (ptr);
+ found_list_offs = 1;
+@@ -864,6 +870,8 @@
+ else
+ ptr += 4;
+ break;
++ case DW_FORM_flag_present:
++ break;
+ case DW_FORM_addr:
+ ptr += ptr_size;
+ break;
+@@ -878,10 +886,12 @@
+ break;
+ case DW_FORM_ref4:
+ case DW_FORM_data4:
++ case DW_FORM_sec_offset:
+ ptr += 4;
+ break;
+ case DW_FORM_ref8:
+ case DW_FORM_data8:
++ case DW_FORM_ref_sig8:
+ ptr += 8;
+ break;
+ case DW_FORM_sdata:
+@@ -910,6 +920,7 @@
+ form = DW_FORM_block1;
+ break;
+ case DW_FORM_block:
++ case DW_FORM_exprloc:
+ len = read_uleb128 (ptr);
+ form = DW_FORM_block1;
+ assert (len < UINT_MAX);
+@@ -1213,7 +1224,7 @@
+ }
+
+ cu_version = read_16 (ptr);
+- if (cu_version != 2 && cu_version != 3)
++ if (cu_version != 2 && cu_version != 3 && cu_version != 4)
+ {
+ error (0, 0, "%s: DWARF version %d unhandled", dso->filename,
+ cu_version);
diff --git a/dev-util/debugedit/files/update.sh b/dev-util/debugedit/files/update.sh
new file mode 100755
index 000000000000..3fed29ad6dc2
--- /dev/null
+++ b/dev-util/debugedit/files/update.sh
@@ -0,0 +1,84 @@
+#!/bin/bash
+
+DISTDIR="$(portageq envvar DISTDIR 2>/dev/null)"
+DISTDIR="${DISTDIR:-/usr/portage/distfiles}"
+if [[ ! -d "${DISTDIR}" ]] ; then
+ echo "No DISTDIR found."
+ exit 1
+fi
+
+PN=debugedit
+
+gentoo_functions="/lib/gentoo/functions.sh"
+if [[ -f "${gentoo_functions}" ]] ; then
+ . "${gentoo_functions}"
+else
+ echo "Failed to source ${gentoo_functions} file."
+ echo "Please install sys-apps/gentoo-functions package."
+ exit 1
+fi
+
+set -e
+
+einfo "Getting updated index"
+rm -f index.html
+wget -q http://rpm5.org/
+
+PV=$(sed -n '/Production:/{n;s:.*RPM ::;s:<.*::;p;q}' index.html)
+einfo "Latest upstream version: ${PV}"
+rm -f index.html
+
+P="${PN}-${PV}"
+A=${P}.tar.bz2
+
+e=${P}.ebuild
+if [[ -e ../${e} ]] ; then
+ einfo "All up to date"
+ exit 0
+fi
+
+#tf=${DISTDIR}/${A}
+#if [[ ! -e ${tf} ]] ; then
+# einfo "Cannot find ${tf}"
+# exit 0
+#fi
+
+einfo "Fetching latest rpm tarball"
+r=rpm-${PV}
+wget -nv http://rpm5.org/files/rpm/rpm-${PV%.*}/${r}.tar.gz -P ${DISTDIR} -c
+
+einfo "Unpacking ${r}"
+rm -rf ${r}
+tar xf ${DISTDIR}/${r}.tar.gz
+
+einfo "Creating ${P}"
+rm -rf ${P}
+mkdir ${P}
+cp Makefile ${r}/tools/{hashtab.?,debugedit.c} ${P}/
+pushd ${P} >/dev/null
+more=true
+while ${more} ; do
+ more=false
+ for h in $(grep '#include' *.[ch] | awk '{print $NF}' | sed 's:[<>"]::g') ; do
+ [[ ${h} == */* ]] && continue
+ rh=$(find ../${r} -name ${h##*/})
+ if [[ -n ${rh} ]] && [[ ! -e ${rh##*/} ]] ; then
+ # don't copy glibc includes
+ if ! grep -qs 'This file is part of the GNU C Library' ${rh} ; then
+ cp ${rh} ./
+ more=true
+ fi
+ fi
+ done
+done
+popd >/dev/null
+tar jcf ${A} ${P}
+
+einfo "Testing build"
+pushd ${P} >/dev/null
+make -s
+popd >/dev/null
+
+einfo "Cleaning up"
+rm -rf ${P} ${r}
+du -b ${A}
diff --git a/dev-util/debugedit/metadata.xml b/dev-util/debugedit/metadata.xml
new file mode 100644
index 000000000000..56c124413057
--- /dev/null
+++ b/dev-util/debugedit/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="project">
+ <email>base-system@gentoo.org</email>
+ <name>Gentoo Base System</name>
+</maintainer>
+</pkgmetadata>
diff --git a/dev-util/dejagnu/Manifest b/dev-util/dejagnu/Manifest
new file mode 100644
index 000000000000..bf4229a27f09
--- /dev/null
+++ b/dev-util/dejagnu/Manifest
@@ -0,0 +1,12 @@
+AUX dejagnu-1.4.4-rsh-username.patch 1304 SHA256 09e2465973013e4f84a461d44934668872366dc03375e8276b17e1ffe3cefc0b SHA512 9d1d9c29759f4ffe137da1d9dea535b507b924e95adb1fff35e4755e06bab22a31b0d7cb3d3d2336353c099cc9aa0b639689a58e5226e23e8db4235fa67d4dd4 WHIRLPOOL 2b1e184691961dbe12ec87ab61a241d16b17d2c996985a799b2c0863b3b3b49dfe0e78b4684614a72ece08ff5f45155374e3f0c616848aec17b45c27302e185e
+AUX dejagnu-1.4.4-testglue-protos.patch 393 SHA256 accb22b4286358304f1618e4c3d64e1caf44a8e51a07be71c489d468a96efb80 SHA512 5f8ff3f472ec3bfe3b426486a02816f821e089ebb5efaf7a2467a0eb06f6a79e46a56f81f79c9af07958d4ff5e0a1de3593711724f8cdaf88ff0009b73bf169b WHIRLPOOL 4cf8d4a3424d3ffb8b32bec01d7f53e5461bf43b479b1c41850cf91a116cd02530531bc52509e67526f5227eb15974b0910619adbd3b080e5396bafafb471bba
+AUX dejagnu-ignore-libwarning.patch 1129 SHA256 d4ba83220bf21f2bc8b5353ae21a08e1aecee5684688e82ad2c29c163cd51979 SHA512 e31f5218d29ac648842b93828cb5f3bdb8b3276a9c672efe27a10ba19bcaae1fd026fbf40e516a4639856469972de583b816b7187f8c544523aac37f12f5621e WHIRLPOOL 24eaaf81bc87f1f23b6006ede11f25ae5461cafd8653e78dc432818e197df0f7725ec42862907c734228a19be04797760054cdf3ab1a8c6d51885444dde9e867
+DIST dejagnu-1.4.4.tar.gz 1080346 SHA256 d0fbedef20fb0843318d60551023631176b27ceb1e11de7468a971770d0e048d SHA512 fae08d4801b6a815af8771896e6e5eb12b297b773faa89743eac28d08c7eac6ed7e530921acdba1b9a7903990060c520497d281651d29d98ab0def1dbfab392e WHIRLPOOL beddb08790591bd817b6096c8ee9f02e2b7e921420658eaebaadc2e1b806d5114632d3adea95d5e5814c4dedc542521582360a03d16f1cc5236052ccbbf149a4
+DIST dejagnu-1.5.tar.gz 576269 SHA256 c8b45808357a6f3e32cd56d8b56a4fdf8a1d5f3818818045c2022993e0e8a3db SHA512 a9486e28f7ce25c34b59d00c0e4862bbb4b7a01d8faae0d1f28669b9d3ded9ed233b892aa27c34e1d06911f071d894aba7c1469e2fd0bddaa5611c2383e4974f WHIRLPOOL 3bc4b393f8f6185f8cce4afcb255a18d11342f14d29eed0e0fc2fd4baf106db707c520802c4913d9c2df3c3dba254c79e1da89e565fd9d5b768e7b4a2abe9912
+DIST dejagnu-1.6.tar.gz 523969 SHA256 00b64a618e2b6b581b16eb9131ee80f721baa2669fa0cdee93c500d1a652d763 SHA512 a494dd5cde8d275b397116049c93e183f5f1731d63660ee8d2f4263b099fc5be7fbddde927fab3ccd5f000c43d50242f94bbb4d95497b915ea53be418bc145bc WHIRLPOOL a6b681995462b631af3c545e71c37ee808e286b1b39bc500164ce3d52e0a247b166c6414576783f3f6172b7e70f9ca8b58ad5f7f1b88402b63fdbda633d8dc07
+EBUILD dejagnu-1.4.4-r3.ebuild 991 SHA256 cd81a410f7f5c3a22f3e6952f7f92de53646f0c4d90967bc5d32003c3ab7f755 SHA512 a43f22f9e33301347bd24ce70ed5167b711ad152e5b6ae5d9a1896e598502fdad82462cbf58520c5d78902632662e383d68346c4d895cd2c4014313f9dba128b WHIRLPOOL 836db56e0b18062a6dcf739521560f9d62d25c57ce90b5f72a1bcb21c670b0bff9dc2264364b0caad1e4ae7eb7e9f5df0fd3e6e1a7a949797dc4bf931a5513bb
+EBUILD dejagnu-1.5.ebuild 805 SHA256 c837ae3f00dc57f410c9390f94036dfd9889c5ede282f92b10311ff3c2061587 SHA512 f65a8d262c97e92a3ae4a02b863aecc99a2b948b38c6c720faa66d7752a537aa5d5499af586837f80e5174fa7dcb10e33feff22f922e26888735e103bf36b7bb WHIRLPOOL 128570f126e1dca30015e4b8dae2aa76dc3229a954446a0dc7cf3bfa24afea24ee22ee1efb1e354773eb3cbaeeac0eb8b51db5f2c7422d5b5b6466f20c6d10fd
+EBUILD dejagnu-1.6.ebuild 746 SHA256 1a4638a3527798b5ad428bb87b6fc279772d9d82c891b3defb155dc634818d43 SHA512 cbfebccec8bcbb98a95da829bd5637e3fd93154af3c30346a2abdb722e9935cdae2b44b7bf704ee99b9695ae2fb349329f925df9c01ffb0ac1c5a3a2ef25947f WHIRLPOOL 60b80a207ec585ffc00d9c21429da840b5854116983de224bf8df8ffffb7343943300674dcc9ad7b576174734e310560dae303716c7805661b070e50059a4f72
+MISC ChangeLog 2789 SHA256 39521cd40e508f76370a4ba122ff35b6dbc40ccc9ffcb11ffa448c7f133aa1cf SHA512 e88e16a04be6555f603d7d7c40e5eeec5c431edffba1ba01d8d23e16c1803b6b28c39f1821a3053d8c7f7d405995b07b7dc007e1ac6eb1c046756b86f000fabe WHIRLPOOL 5db7a7a5ffb9403406add49cbb6981ca13abc903627dd2afe6a6c984e5c733e1445ca1d470ce1d264e3a2216481c79b4adb1c86c17cb259a39c6d2e002b3d171
+MISC ChangeLog-2015 3409 SHA256 ead6fd48c899490dfd620c920a124df256ca9a8a6a2bd7e9cb1f47f8b1680aa5 SHA512 f2ead2d8f84cf1701d58010e9a87c26e68baa1c000c078fb428ae6c7b4cf1a904cc84d4e4cb38a36fe47cd895e34873ad21c3bdd3881c1f1f4a404b64db5e774 WHIRLPOOL 19aed36ae1c21214817e964d15e5dab3ce67a0daf06ece10406ac4104eda27472277bf8d539d278774a2ce4a118c5cf29e04fafc6b829eb79663e061da361fa1
+MISC metadata.xml 257 SHA256 fcb691c3299a07a5fe4f936baa5aa146b8aa3cb9491ba88fd12547cb540b02c2 SHA512 fd85d9cf15f6b7db96e4d184e32ae6f1503a5b70cb4cb1ce930ba13a1d5d4c4b24971781e95b7f3f9ead58b31760f84c368bc6fa2a793b4b5baf78259b047ff1 WHIRLPOOL 62b62e3e5489b8983ddd7bfc6017411d5e02f9710763206baa84b826388c8685fe7bdc0bb6a76c029e73ae4c160e9af6c8544406dc70a203c7c3d65d4aa15400
diff --git a/dev-util/dejagnu/dejagnu-1.4.4-r3.ebuild b/dev-util/dejagnu/dejagnu-1.4.4-r3.ebuild
new file mode 100644
index 000000000000..b6951999aa85
--- /dev/null
+++ b/dev-util/dejagnu/dejagnu-1.4.4-r3.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils
+
+DESCRIPTION="framework for testing other programs"
+HOMEPAGE="https://www.gnu.org/software/dejagnu/"
+SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos ~x86-solaris"
+IUSE="doc"
+
+DEPEND="dev-lang/tcl
+ dev-tcltk/expect"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/dejagnu-ignore-libwarning.patch
+ epatch "${FILESDIR}"/${P}-rsh-username.patch
+ epatch "${FILESDIR}"/${P}-testglue-protos.patch
+}
+
+src_test() {
+ # if you dont have dejagnu emerged yet, you cant
+ # run the tests ... crazy aint it :)
+ type -p runtest || return 0
+ emake check || die "check failed :("
+}
+
+src_install() {
+ emake -j1 install DESTDIR="${D}" || die
+ dodoc AUTHORS ChangeLog NEWS README TODO
+ use doc && dohtml -r doc/html/
+}
diff --git a/dev-util/dejagnu/dejagnu-1.5.ebuild b/dev-util/dejagnu/dejagnu-1.5.ebuild
new file mode 100644
index 000000000000..acb79530f294
--- /dev/null
+++ b/dev-util/dejagnu/dejagnu-1.5.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+DESCRIPTION="framework for testing other programs"
+HOMEPAGE="https://www.gnu.org/software/dejagnu/"
+SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-3"
+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 ~x86-macos ~x86-solaris"
+IUSE="doc"
+
+DEPEND="dev-lang/tcl
+ dev-tcltk/expect"
+
+src_test() {
+ # if you dont have dejagnu emerged yet, you cant
+ # run the tests ... crazy aint it :)
+ type -p runtest || return 0
+ emake check || die "check failed :("
+}
+
+src_install() {
+ emake install DESTDIR="${D}" || die
+ dodoc AUTHORS ChangeLog NEWS README TODO
+ use doc && dohtml -r doc/html/
+}
diff --git a/dev-util/dejagnu/dejagnu-1.6.ebuild b/dev-util/dejagnu/dejagnu-1.6.ebuild
new file mode 100644
index 000000000000..3c1d667317da
--- /dev/null
+++ b/dev-util/dejagnu/dejagnu-1.6.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Framework for testing other programs"
+HOMEPAGE="https://www.gnu.org/software/dejagnu/"
+SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-3"
+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 ~x86-macos ~x86-solaris"
+IUSE=""
+
+DEPEND="dev-lang/tcl
+ dev-tcltk/expect"
+
+src_test() {
+ # if you dont have dejagnu emerged yet, you cant
+ # run the tests ... crazy aint it :)
+ type -p runtest || return 0
+ emake check
+}
+
+src_install() {
+ emake install DESTDIR="${D}"
+ dodoc AUTHORS ChangeLog NEWS README TODO
+}
diff --git a/dev-util/dejagnu/files/dejagnu-1.4.4-rsh-username.patch b/dev-util/dejagnu/files/dejagnu-1.4.4-rsh-username.patch
new file mode 100644
index 000000000000..ff4e970a4fd4
--- /dev/null
+++ b/dev-util/dejagnu/files/dejagnu-1.4.4-rsh-username.patch
@@ -0,0 +1,45 @@
+fix from upstream:
+
+2004-03-05 Daniel Jacobowitz <drow@mvista.com>
+
+ * lib/remote.exp (standard_spawn): Fix rsh username support.
+
+diff --git a/lib/remote.exp b/lib/remote.exp
+index b57276e..cdec0d2 100644
+--- a/lib/remote.exp
++++ b/lib/remote.exp
+@@ -860,19 +860,18 @@ proc standard_spawn { dest commandline } {
+ set RSH [board_info $dest rsh_prog]
+ }
+
+- if ![board_info $dest exists username] {
+- set rsh_useropts ""
+- } else {
+- set rsh_useropts "-l $username"
+- }
+-
+ if [board_info $dest exists hostname] {
+ set remote [board_info $dest hostname]
+ } else {
+ set remote $dest
+ }
+
+- spawn $RSH $rsh_useropts $remote $commandline
++ if ![board_info $dest exists username] {
++ spawn $RSH $remote $commandline
++ } else {
++ spawn $RSH -l [board_info $dest username] $remote $commandline
++ }
++
+ set board_info($dest,fileid) $spawn_id
+ return $spawn_id
+ }
+@@ -1257,6 +1256,8 @@ proc remote_expect { board timeout args } {
+ }
+
+ if {$code == 1} {
++ if {[info exists string]} {send_user "ERROR OCCURED: $errorInfo $errorCode $string"}
++
+ if { $error_sect != "" } {
+ set code [catch {uplevel $error_sect} string]
+ } else {
diff --git a/dev-util/dejagnu/files/dejagnu-1.4.4-testglue-protos.patch b/dev-util/dejagnu/files/dejagnu-1.4.4-testglue-protos.patch
new file mode 100644
index 000000000000..4ddaffb1c66d
--- /dev/null
+++ b/dev-util/dejagnu/files/dejagnu-1.4.4-testglue-protos.patch
@@ -0,0 +1,21 @@
+fix from upstream:
+
+2004-08-20 Daniel Jacobowitz <dan@debian.org>
+
+ * testglue.c: Prototype abort(3) and exit(3).
+
+diff --git a/testglue.c b/testglue.c
+index 55a7f92..4ede6eb 100644
+--- a/testglue.c
++++ b/testglue.c
+@@ -40,6 +40,10 @@
+ #define ORIG_ABORT __wrap_abort
+ #define ORIG_MAIN __wrap_main
+ #endif
++
++extern void abort (void);
++extern void exit (int);
++
+ #endif
+
+ #ifdef REAL_MAIN
diff --git a/dev-util/dejagnu/files/dejagnu-ignore-libwarning.patch b/dev-util/dejagnu/files/dejagnu-ignore-libwarning.patch
new file mode 100644
index 000000000000..f4af06e6ff89
--- /dev/null
+++ b/dev-util/dejagnu/files/dejagnu-ignore-libwarning.patch
@@ -0,0 +1,23 @@
+dejagnu/ChangeLog
+ * lib/target.exp (prune_warnings): Correct pic/PIC regexp.
+ Ignore incompatible library warning.
+
+Index: dejagnu/lib/target.exp
+===================================================================
+RCS file: /cvs/src/src/dejagnu/lib/target.exp,v
+retrieving revision 1.12
+diff -u -p -r1.12 target.exp
+--- dejagnu/lib/target.exp 21 Apr 2002 08:47:07 -0000 1.12
++++ dejagnu/lib/target.exp 9 Jun 2003 07:34:06 -0000
+@@ -279,7 +279,10 @@ proc prune_warnings { text } {
+ regsub -all "(^|\n)\[^\n\]*: warning: as it has already been specified\[^\n\]*" $text "" text
+
+ # Cygwin cc1 warns about -fpic and -fPIC
+- regsub -all ".*: warning: -f(pic|PIC) ignored for target .*" $text "" text
++ regsub -all "(^|\n)\[^\n\]*: warning: -f(pic|PIC) ignored for target \[^\n\]*" $text "" text
++
++ # Ignore linker warning when searching 64bit libraries in /lib.
++ regsub -all "(^|\n)\[^\n\]*: skipping incompatible \[^\n\]* when searching for \[^\n\]*" $text "" text
+
+ # It might be tempting to get carried away and delete blank lines, etc.
+ # Just delete *exactly* what we're ask to, and that's it.
diff --git a/dev-util/dejagnu/metadata.xml b/dev-util/dejagnu/metadata.xml
new file mode 100644
index 000000000000..e396f3755977
--- /dev/null
+++ b/dev-util/dejagnu/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="project">
+ <email>toolchain@gentoo.org</email>
+ <name>Gentoo Toolchain Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/dev-util/desktop-file-utils/Manifest b/dev-util/desktop-file-utils/Manifest
new file mode 100644
index 000000000000..3f9d94cdfb13
--- /dev/null
+++ b/dev-util/desktop-file-utils/Manifest
@@ -0,0 +1,6 @@
+AUX 50desktop-file-utils-gentoo.el 250 SHA256 2aa59c328d13dd9a447f573ef68d92768f13e142cc92eda1e7d45f29684e07b7 SHA512 5fc03fb9c9eea7d4c19c9b263413fb4f7f247b6bd40a7452b26f7e175646dc9b3af945d25cafc42a01a8d95059324652c56baa4bb5768b62dbd58f3ae4f05fe3 WHIRLPOOL 73a401cc8cde93584eca6192bbfbf80fec7b19bd1993a6aedd7d278bb6945a4e9481ca645c2505f1ae30d777580560e8952c28e445cc337b4b8a6c21a233bd31
+DIST desktop-file-utils-0.23.tar.xz 132000 SHA256 6c094031bdec46c9f621708f919084e1cb5294e2c5b1e4c883b3e70cb8903385 SHA512 66a8ddfbb2be8edc14e16427e0dafa6fb1ef7491c816f19221fb5d5782e964cdcc3ae89807339f1c565af828aa83403cc56edeb2d03b3f93e013f3c5e9e6fe6a WHIRLPOOL 3d2fd970eda245e03ef566741f24433b601e76f100dfd7b33fad5035eca55b8e0d3b7b62d46b6749dafb682c1c6db46ad293010aecca54e1f729372ca87c6da6
+EBUILD desktop-file-utils-0.23.ebuild 1285 SHA256 0bd49e7d89e53c318616b522291ff416bee9a725e2b504fd9e123d03a3529874 SHA512 f1d749de1e75139ab04f0e9603a8275ef9b593f8eacca786d1849f0cf574833fca4d9bc52aea2d4c919d9ac05452542838aeb88645c9035c9aac3b8dfbf468e7 WHIRLPOOL 7b36b4a9f84b48c9c4481fb12f361a6ed8e2979822f352de916e61f3e44a0c6bc1f0c451e85fba4814709a7c905834ca41c63929c60e963c46f841026d7252db
+MISC ChangeLog 5731 SHA256 76ec0a1da298c05d53fa049f3d8a9a77df3e1cad77238ca378392a655fd250dd SHA512 61d12ec3b4b352fffa8ad14bd8c9bb4d5105c8a890aae24d3ec94c245535ae419130c83f5d325cc79f4a298f19aa14d7f02d05f3b516947f6523f62cb874d003 WHIRLPOOL 658d2ed31c248745f37320ffc2acbbd8cbe455807d094a08d997981c1bc9582e87c7e72a37a525104172a31a62df56a97a94b48aca386e73843524046166b816
+MISC ChangeLog-2015 18820 SHA256 620cfa55a12afc40f8fd7cee09d7eef6b39e0376fc70e8531388cb34d695232f SHA512 24008758eb70804414f2c9c108ecfbe0fa0a1463b1a0c99024bac8fd25915ced39e3575b713d55810f4210922647afc4fc340ec26a9fcea2cd7c7bfb4cb4ba1f WHIRLPOOL 6438aba62e0a33fdb125d52562775a5071413b3da240d49614bcee243fdb031ff1054e123e0fef25d40e192301f277654981dd5959cd6a2038926a781606c1db
+MISC metadata.xml 224 SHA256 154bec891472fe5526579d16d7e5e5e9eb3f352512a17555a459aa6029bcbbb2 SHA512 12da46d8052565f62c482e6bcc714d8c00cac256f85dc1602579c8d61e0b61af95da149d1a446e56b2eba918ab9d78b556f77c6fe034a2e578f57a9dbe62fc44 WHIRLPOOL 541aeaf2a7c858734aaae366846865ff70e6c898204bbfc9f39f58fbdb53d9b37dc8c898c23870859a9d4f5596e7898e21874c9ef529a447953a35e4d7bc13e5
diff --git a/dev-util/desktop-file-utils/desktop-file-utils-0.23.ebuild b/dev-util/desktop-file-utils/desktop-file-utils-0.23.ebuild
new file mode 100644
index 000000000000..20ead4dd1df8
--- /dev/null
+++ b/dev-util/desktop-file-utils/desktop-file-utils-0.23.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit elisp-common eutils
+
+DESCRIPTION="Command line utilities to work with desktop menu entries"
+HOMEPAGE="https://freedesktop.org/wiki/Software/desktop-file-utils"
+SRC_URI="https://www.freedesktop.org/software/${PN}/releases/${P}.tar.xz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
+IUSE="emacs"
+
+RDEPEND=">=dev-libs/glib-2.12:2
+ emacs? ( virtual/emacs )"
+DEPEND="${RDEPEND}
+ app-arch/xz-utils
+ virtual/pkgconfig"
+
+SITEFILE=50${PN}-gentoo.el
+
+DOCS=( AUTHORS ChangeLog HACKING NEWS README )
+
+src_prepare() {
+ default
+ sed -i -e '/SUBDIRS =/s:misc::' Makefile.in || die
+}
+
+src_configure() {
+ econf "$(use_with emacs lispdir "${SITELISP}"/${PN})"
+}
+
+src_compile() {
+ default
+ use emacs && elisp-compile misc/desktop-entry-mode.el
+}
+
+src_install() {
+ default
+ if use emacs; then
+ elisp-install ${PN} misc/*.el misc/*.elc || die
+ elisp-site-file-install "${FILESDIR}"/${SITEFILE} || die
+ fi
+}
+
+pkg_postinst() {
+ use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}
diff --git a/dev-util/desktop-file-utils/files/50desktop-file-utils-gentoo.el b/dev-util/desktop-file-utils/files/50desktop-file-utils-gentoo.el
new file mode 100644
index 000000000000..546947a0b374
--- /dev/null
+++ b/dev-util/desktop-file-utils/files/50desktop-file-utils-gentoo.el
@@ -0,0 +1,5 @@
+(add-to-list 'load-path "@SITELISP@")
+(autoload 'desktop-entry-mode "desktop-entry-mode" "Desktop Entry mode" t)
+(add-to-list 'auto-mode-alist
+ '("\\.desktop\\(\\.in\\)?$" . desktop-entry-mode))
+(add-hook 'desktop-entry-mode-hook 'turn-on-font-lock)
diff --git a/dev-util/desktop-file-utils/metadata.xml b/dev-util/desktop-file-utils/metadata.xml
new file mode 100644
index 000000000000..fb76b944f2da
--- /dev/null
+++ b/dev-util/desktop-file-utils/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+<email>freedesktop-bugs@gentoo.org</email>
+</maintainer>
+</pkgmetadata>
diff --git a/dev-util/deskzilla/Manifest b/dev-util/deskzilla/Manifest
new file mode 100644
index 000000000000..90747427a809
--- /dev/null
+++ b/dev-util/deskzilla/Manifest
@@ -0,0 +1,6 @@
+DIST deskzilla-1_7_1_without_jre.tar.gz 9248721 SHA256 8c643e2c828bfa14aa3b1ec668d92602aeb21edce67319c279f4bb5879425ebf SHA512 86997ebed6b01b39408e8c27ee0c560e506368cc9b12dfc82134addd47c1be746e74cdf908c9e9ee794d6337bb32971f2a07ce7c283b81e4f506027894edbac7 WHIRLPOOL 946f9a5b10a01dbe19d257712e788640823b360433dd0b6a2155699e77d8e59fd77aa0e2c4de93b3a40d9c732ec7f973051f8957e6521b7e7db8c20a3858f8eb
+DIST deskzilla_gentoo.license 1584 SHA256 a11b89eedf8211d50ca13177b7d8d1fc59645a5c9faa13761525c24a9ae84a74 SHA512 60437ba4ed872abc37d41974717a10fb290dcdf8bde31b3bc493fd71d8abbcdec63e236148720558f1867b773b804bc49d4cce6ea5f1b002c39eca5f074e5e9a WHIRLPOOL b9bc69f6fc53542b97a802c5ba426540ad68e49ff2020b0b8e5d86caf608b1dbf8826df52b8815af57add5ac3d59d4c47054650291c653ff04849ad7e08e4142
+EBUILD deskzilla-1.7.1-r1.ebuild 2797 SHA256 408eadacb6d44842bbf508ef7f259c4ea8692f16fcc1ce99ffd26ec35664286b SHA512 154dd3acb983673aabd7ade188d93f8ec1db15f113547107eb8b8b14c966f100aec68e2b9364dd85a5ea9a68fdccbd0c2e20b589e76dfc47d84c1b6d14c4753d WHIRLPOOL edae4f6a590adb89d97e3d91c8d13d367c7e911b6dd01e08a94dfc3b2619ffbd27b67a802d46d9d1518bb9a9d9f994a6bae212547c8f2b3e3fa8b399a1fcbd2e
+MISC ChangeLog 2611 SHA256 f759a5b191d70cf3574f425066d78dccd74efd367ca3eb49976de4d3fc821534 SHA512 642565214279f7970a0f6baf1475287a3bd2412d9154f0c757b08648307c389e435dd37bd1d5a621a853279a89b18fc81c19db3bee6c44254fac0d69b1997248 WHIRLPOOL af22e3cd6b8bde41f13db45c4c4b72c52ebcc4050ef423d06a5ec5e18f75c8d2eb35a4d8a5d4b3c123788161e5b04b1a542859e3add7a23b59ec51968fce394b
+MISC ChangeLog-2015 3264 SHA256 00931465394b99f869e932836ce27c7055489da37ba8fb2f5a1a7fc84b2f2dfa SHA512 f8c881ee57d32fdf820ba48e8f8a38f28826839b1c70a7eb6475fb864e1980b3dc6ac7f8027147e8a748c6f54e1eda71526ae48ad90b2c2107eb94f8a8fd4705 WHIRLPOOL e1c8714e738b4eadabd2e71b69f890cfbc7280d435ff94398ef7b3dc2f670ed97cd535d23f894891b42b7d4c0fc11541d8ffa8859aad5aa58837e3fe3cc3c9c4
+MISC metadata.xml 232 SHA256 0c8d91b3d514ac42d0eaca567346ab909c0f947049c85c25a380ec2400f1b3fb SHA512 00beaf2c81112ff757c4395f4ea47e85f2d48e369e241f10ddf200090dd6513d52ae2b1aef6d28b7417f1cf34608a7258a167eb307d5670323a2190f3710f893 WHIRLPOOL 3a1a6d054edc9177d85ca868f9b0a6e84ee51bab4fbdbb9b1ead1a03874036bcc3f96e903fb751dc4d29fdb7d6b5f3d8dbe7b042fc697c887e23f41cc9c8c4ac
diff --git a/dev-util/deskzilla/deskzilla-1.7.1-r1.ebuild b/dev-util/deskzilla/deskzilla-1.7.1-r1.ebuild
new file mode 100644
index 000000000000..66b5d1cf350c
--- /dev/null
+++ b/dev-util/deskzilla/deskzilla-1.7.1-r1.ebuild
@@ -0,0 +1,87 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit java-pkg-2 versionator
+
+DESCRIPTION="A desktop client for Mozilla's Bugzilla bug tracking system"
+HOMEPAGE="http://almworks.com/deskzilla"
+
+MY_PV=$(replace_all_version_separators '_') #${PV/beta/b})
+MY_P="${PN}-${MY_PV}"
+S="${WORKDIR}/${MY_P}"
+SRC_URI="http://d1.almworks.com/.files/${MY_P}_without_jre.tar.gz
+ https://dev.gentoo.org/~ercpe/distfiles/${CATEGORY}/${PN}/deskzilla_gentoo.license"
+LICENSE="ALMWorks-1.2"
+# license does not allow redistributing, and they seem to silently update
+# distfiles...
+RESTRICT="mirror"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND=">=virtual/jre-1.5
+ dev-java/picocontainer:1
+ dev-java/javolution:4
+ >=dev-java/commons-codec-1.3
+ >=dev-java/jgoodies-forms-1.0.7
+ >=dev-java/commons-logging-1.0.4
+ >=dev-java/xmlrpc-2.0.1
+ dev-java/xerces:2
+ dev-java/itext:0
+ dev-java/jazzy:0"
+
+src_unpack() {
+ unpack ${A}
+ # Remove external unaltered bundled jars
+ local lib="${S}/lib"
+ local liborig="${S}/lib.orig"
+ mv ${lib} ${liborig} || die
+ mkdir ${lib} || die
+ # They've patched commons-httpclient (was version 3.0)
+ mv ${liborig}/commons-httpclient.jar ${lib} || die
+ # They've patched nekohtml (was version 0.9.5)
+ mv ${liborig}/nekohtml.jar ${lib} || die
+ # Also jdom (was 1.0), soon they will patch everything and we will just unpack, yay
+ mv ${liborig}/pjdom.jar ${lib} || die
+ # Almworks proprietary lib
+ mv ${liborig}/almworks-tracker-api.jar ${lib} || die
+ # IntelliJ IDEA proprietary lib
+ mv ${liborig}/forms_rt.jar ${lib} || die
+ # God knows what's this. Anyway, proprietary.
+ mv ${liborig}/twocents.jar ${lib} || die
+ rm -rf ${liborig} || die
+}
+
+src_install () {
+ local dir="/opt/${PN}"
+
+ insinto "${dir}"
+ doins -r components etc license lib log deskzilla.url
+ insinto "${dir}/license"
+ doins "${DISTDIR}"/deskzilla_gentoo.license
+
+ java-pkg_jarinto "${dir}"
+ java-pkg_dojar ${PN}.jar
+ local dep="xerces-2,picocontainer-1,commons-logging,commons-codec"
+ dep+=",jgoodies-forms,javolution-4,xmlrpc,itext,jazzy"
+ java-pkg_register-dependency ${dep}
+ java-pkg_dolauncher ${PN} --main "com.almworks.launcher.Launcher" --java_args "-Xmx256M"
+
+ newdoc README.txt README || die
+ newdoc RELEASE.txt RELEASE || die
+
+ doicon deskzilla.png
+ make_desktop_entry deskzilla "Deskzilla" deskzilla "Development"
+}
+
+pkg_postinst() {
+ elog "The default, evaluation license allows usage for one month."
+ elog "You may switch (per-user) to the license we obtained for Gentoo,"
+ elog "located in /opt/${PN}/license/${PN}_gentoo.license"
+ elog "It is locked to Gentoo, ALM Works and Mozilla bugzilla only."
+ elog "Note that you need to use 1.5 VM to run deskzilla when setting"
+ elog "license or it won't get set due to bug in 1.6+ VMs."
+}
diff --git a/dev-util/deskzilla/metadata.xml b/dev-util/deskzilla/metadata.xml
new file mode 100644
index 000000000000..2444066aa02b
--- /dev/null
+++ b/dev-util/deskzilla/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="project">
+ <email>java@gentoo.org</email>
+ <name>Java</name>
+</maintainer>
+</pkgmetadata>
diff --git a/dev-util/devhelp/Manifest b/dev-util/devhelp/Manifest
new file mode 100644
index 000000000000..db4fcc318ba1
--- /dev/null
+++ b/dev-util/devhelp/Manifest
@@ -0,0 +1,7 @@
+DIST devhelp-3.22.0.tar.xz 491908 SHA256 59cae02e12d238cc5fc3f049d779895ba89701426d9173f5b534d4ab90c5ffb0 SHA512 16d9853c4514d7b28381e3755e34682a2e9d64d666bb7d39094289d4990eb981efac041b7bf7f8beef5a018cab71c461ecd4e7b7a099fbc132f5b8f7b79749dc WHIRLPOOL a46088f7cf373106cfecaa87f2cac350e05fb94dc925f12e22f9f000754124dfe62845d23a14689c386167e54f0b74bdd4ec5bb2b08b0aad61c54d5f16070713
+DIST devhelp-3.24.0.tar.xz 615460 SHA256 4858de1c815532ad160d1bf9facd28859972e3a052908a8edf73f866c8cce430 SHA512 56b1eeaf9d3c3357d3140002bed5c29bf7b21953d964405190a1c9cad69d08000efa0220bbc36c67db4151b15ee37c37e061e6fa63c8a79f626e1ec0ce386062 WHIRLPOOL fb0502408fd14ce12b77ae6f0a08cde6d95ea48ac8737ced17e845f4f4fd22eb9233acf656c1ccebec30f200905848fc87da6e0aad8bb0bf4b750df1123cc56c
+EBUILD devhelp-3.22.0.ebuild 1455 SHA256 96b24f4dede20e8bc02578fdcb6eafaa1df224a742ca1eaf29428497e5d043f3 SHA512 3f5d630349d6eaadb41b14b3069dca5d87ac480758624844f56ff30a62172f37e6baf2dac562fea76aaf3a1b88fbc9d6249e997378894a8404c655533617a7ed WHIRLPOOL c3a4f9917a561f970dddafb52a54ef8df2b1f38293084987337bae8fef04d2d8a9b527ee48f47ecd6e7f1379477a48b5a212407ff105d5862b765c0d9b55c14a
+EBUILD devhelp-3.24.0.ebuild 1622 SHA256 68958ebc11bb53a9e265e47202b9febd6b41262ddab71c2a4c3a2f790f4ea394 SHA512 66c4539696a05540a9f06d3a12160f56bb71d54d7c1cf72c34e4f962a5e4e73986b9e5ccc4dcf95b6cb9948a976ea16a349ebf3336e25f0043f656fafa266246 WHIRLPOOL e514cb44097a6f2c8c898e4cdfe61769b00aa073e68fe2780bec98bba88a4f7963fa0ab8da5c9d46180bb4fd0d2526963908fe811a819f5e89e0a45e892e7fba
+MISC ChangeLog 4701 SHA256 5581064f21b1e51f6268105fd9ab9740b2c3137521bcff1a6647dfcf9dc943f4 SHA512 d9015b6c50c61d3de67f300b07f310336305bc390fe03a8830bfd9875328743bb15b1c270a23a6e1e70a4789b943de80d3c85cf4c85dcab0d142a871d8dae0eb WHIRLPOOL 2c3ffd6703d7a089d94cdcc867c17281c81143c279f336ca3d7ff6c5cd7e8061e2feb5d3c6fe08e14282dbbc98a167350d5df811958ae696c00849cbea474577
+MISC ChangeLog-2015 23864 SHA256 544df077abc098bd2affffedc6ddb310503fddb10c4016e87325b9df500aea6a SHA512 9b4be111cc4409eef502898c1ffdfd9ce350d522bd3b0f6679cff7cd323a6424489ac1ef59e9535ec17ba2af5e21be6ddd8d65ebb5e7117fa11f7ad47d461a08 WHIRLPOOL a07df80df2b4598477c1bb47a591c5339f99dde931933377859c204a7f69a150f7f56b439611676044a1fbbcb5385ccd95c6483ef40cb1a89533e7a64495fc29
+MISC metadata.xml 337 SHA256 0aa78288571d3df5b0fb70ab24785e406f57e8e4a28c4b3fb77ce07670edb52f SHA512 76931a5e5bff4c6f32aa55e27ff6ef6e320f79c21f1e3c3b3af4733dc0c141a7b782dfa38227fca4d6d50b763dcc3fd191581862ada051951b3185c596ca6753 WHIRLPOOL 769cb8a9cba3702661fb82d99042b36d8c36617de61573ab1b90d2544d4c2f9bc5f698e14573a67bbdc88391ae1f4b1e35129176f88c010d68d4ad2309bf67c6
diff --git a/dev-util/devhelp/devhelp-3.22.0.ebuild b/dev-util/devhelp/devhelp-3.22.0.ebuild
new file mode 100644
index 000000000000..4630ddc6af96
--- /dev/null
+++ b/dev-util/devhelp/devhelp-3.22.0.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+# gedit-3.8 is python3 only, this also per:
+# https://bugzilla.redhat.com/show_bug.cgi?id=979450
+PYTHON_COMPAT=( python{3_4,3_5} )
+
+inherit gnome2 python-single-r1 toolchain-funcs
+
+DESCRIPTION="An API documentation browser for GNOME"
+HOMEPAGE="https://wiki.gnome.org/Apps/Devhelp"
+
+LICENSE="GPL-2+"
+SLOT="0/3-1" # subslot = 3-(libdevhelp-3 soname version)
+KEYWORDS="~alpha amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc x86 ~amd64-fbsd ~x86-fbsd"
+IUSE="gedit"
+REQUIRED_USE="gedit? ( ${PYTHON_REQUIRED_USE} )"
+
+COMMON_DEPEND="
+ >=dev-libs/glib-2.37.3:2[dbus]
+ >=x11-libs/gtk+-3.19.3:3
+ >=net-libs/webkit-gtk-2.6.0:4
+"
+RDEPEND="${COMMON_DEPEND}
+ gedit? (
+ ${PYTHON_DEPS}
+ app-editors/gedit[introspection,python,${PYTHON_USEDEP}]
+ dev-python/pygobject:3[${PYTHON_USEDEP}]
+ x11-libs/gtk+[introspection] )
+ gnome-base/gsettings-desktop-schemas
+"
+DEPEND="${COMMON_DEPEND}
+ ${PYTHON_DEPS}
+ >=dev-util/intltool-0.40
+ gnome-base/gnome-common
+ virtual/pkgconfig
+"
+
+pkg_setup() {
+ use gedit && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ if ! use gedit ; then
+ sed -e '/SUBDIRS/ s/gedit-plugin//' -i misc/Makefile.{am,in} || die
+ fi
+
+ gnome2_src_prepare
+}
+
+src_configure() {
+ local myconf=""
+ # ICC is crazy, silence warnings (bug #154010)
+ if [[ $(tc-getCC) == "icc" ]] ; then
+ myconf="--with-compile-warnings=no"
+ fi
+ gnome2_src_configure ${myconf}
+}
diff --git a/dev-util/devhelp/devhelp-3.24.0.ebuild b/dev-util/devhelp/devhelp-3.24.0.ebuild
new file mode 100644
index 000000000000..a22c80a3b51b
--- /dev/null
+++ b/dev-util/devhelp/devhelp-3.24.0.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+# gedit-3.8 is python3 only, this also per:
+# https://bugzilla.redhat.com/show_bug.cgi?id=979450
+PYTHON_COMPAT=( python{3_4,3_5} )
+
+inherit gnome2 python-single-r1 toolchain-funcs
+
+DESCRIPTION="An API documentation browser for GNOME"
+HOMEPAGE="https://wiki.gnome.org/Apps/Devhelp"
+
+LICENSE="GPL-2+"
+SLOT="0/3-3" # subslot = 3-(libdevhelp-3 soname version)
+KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
+IUSE="gedit +introspection"
+REQUIRED_USE="gedit? ( ${PYTHON_REQUIRED_USE} )"
+
+COMMON_DEPEND="
+ >=dev-libs/glib-2.38:2[dbus]
+ >=x11-libs/gtk+-3.20:3
+ >=net-libs/webkit-gtk-2.6.0:4
+ introspection? ( >=dev-libs/gobject-introspection-1.30:= )
+"
+RDEPEND="${COMMON_DEPEND}
+ gedit? (
+ ${PYTHON_DEPS}
+ app-editors/gedit[introspection,python,${PYTHON_USEDEP}]
+ dev-python/pygobject:3[${PYTHON_USEDEP}]
+ x11-libs/gtk+[introspection] )
+ gnome-base/gsettings-desktop-schemas
+"
+DEPEND="${COMMON_DEPEND}
+ ${PYTHON_DEPS}
+ >=dev-util/gtk-doc-am-1.25
+ virtual/pkgconfig
+"
+# eautoreconf requires:
+# dev-libs/appstream-glib
+# sys-devel/autoconf-archive
+
+pkg_setup() {
+ use gedit && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ if ! use gedit ; then
+ sed -e '/SUBDIRS/ s/gedit-plugin//' -i misc/Makefile.{am,in} || die
+ fi
+
+ gnome2_src_prepare
+}
+
+src_configure() {
+ local myconf=""
+ # ICC is crazy, silence warnings (bug #154010)
+ if [[ $(tc-getCC) == "icc" ]] ; then
+ myconf="--with-compile-warnings=no"
+ fi
+ gnome2_src_configure \
+ $(use_enable introspection) \
+ ${myconf}
+}
diff --git a/dev-util/devhelp/metadata.xml b/dev-util/devhelp/metadata.xml
new file mode 100644
index 000000000000..04f1a3c98b5d
--- /dev/null
+++ b/dev-util/devhelp/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="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+</maintainer>
+<use>
+ <flag name="gedit">Install plugin for <pkg>app-editors/gedit</pkg></flag>
+</use>
+</pkgmetadata>
diff --git a/dev-util/dialog/Manifest b/dev-util/dialog/Manifest
new file mode 100644
index 000000000000..79b47e65ce01
--- /dev/null
+++ b/dev-util/dialog/Manifest
@@ -0,0 +1,9 @@
+DIST dialog-1.3-20160828.tgz 501960 SHA256 453095abaec288bfbc1ca9faced917e17742cff1ea45ec46210071ac153562f9 SHA512 aa0329578c8b0580e52b1f6aad5c7179bc519c3791cf115b035e28f25e5f48d7a626faa1a322b81365646018a2f8b09f67f4df0629899b50aa5ce7190b022113 WHIRLPOOL 17d107febd1d94380074aac69c4c1e47b9bc565dd39d5009ac82095506686dd6c283c4709ec6aef3f8ec186d21a636924a12ee26c301b5743eaa6b8c64ebe6d1
+DIST dialog-1.3-20170131.tgz 507783 SHA256 81baec14cb7d76951763576ec276210b3a869e768ad5e2e6ee1cc53420ece8c9 SHA512 818b4e9d0d5ee55377b78ccceacf59a78e5e6d6fbc09e24a19e62b4988ff8de32f3364132b9ee88c86e126114eda45c82d86397d5f26fae81a6bda91be979786 WHIRLPOOL 33fdc9f3ebf129560a412ff2bdae3b14648f31925d76bc4085613bcd7b74606c2e63f76b7b86af4c032d82b987ee5bea81b49998f07a0d7d83651189c701aaa6
+DIST dialog-1.3-20170509.tgz 509135 SHA256 2ff1ba74c632b9d13a0d0d2c942295dd4e8909694eeeded7908a467d0bcd4756 SHA512 dd3fe2041a15dd344ea39a1ba111d3b26daca1cda91a4e82f1223385a49cdf3de15f11129366a20c5a24b16b5301f215543850a390d70d0559f98247bbd49a56 WHIRLPOOL 6a98e9737d601ef58499c0a8c38464fb17566bbe3534eedb6184abee14389cea73d33ecc999179edd533ab7515395060eb37e9a402c43072597713d594743798
+EBUILD dialog-1.3.20160828.ebuild 1290 SHA256 824a98da1e29439ff334cfc5b6b6a1e35159a806ea9a6457cbdce1ac8da429f9 SHA512 f611cb56a20f8b80a192ba7d05319e39b3ea8174d3abb35ddf2b8601aa596bc10ab9fc21d011e43fed65f74b2c65929c686fe4759ae10a342ffaeeb04f1a6e20 WHIRLPOOL aa2a2532c927ef8d7caeabd314ad97e6a3b8889d4d7b88f6afe2193c7ea15bc23a3411f6b6f9373cabad67685647fce43d9b7f8db2a78c6cc231c28ed03aa0ac
+EBUILD dialog-1.3.20170131.ebuild 1297 SHA256 0317364df1333a445ad256bf729b36058bcb1f18531963ed8124ebc666f97b36 SHA512 6ddd7e11570d1f547d485296b6736d14c099fe8e32e82c4925eb49d07e02b96fc157f404a3e508ac87149553aa657056f083f5d6fa8379accf43e074673c5ea5 WHIRLPOOL 05dcea0fb50ce815c2ce134e1c2e65400c7e420767203e539bd6bdf9c31aa04552a25f4bccdc86aed07598ac275a841314aaf96d6a0889fd16c637f5f1ba8be8
+EBUILD dialog-1.3.20170509.ebuild 1302 SHA256 e8bc3d8a1c5ecbc40d566033c41b6be8516c8fc17b247ccfab8e0146e9babab4 SHA512 7e19e71da7ee76ec74f0b7903c8254b7a377010128f4f6b4d5b83b2b1d4732717d1d1f460e7109ca7134710bf9be229f52365e22d44cee0219154c4d5299e4bd WHIRLPOOL 0e024b2276dc1043e44e0548a12183d2a831df0d80801c3483a67ff447396bf3f5b1aa215d790a3cf8da593a2dd82dd88b49ab554b7824436907daef91c09235
+MISC ChangeLog 5742 SHA256 50aea49fe23ff53feef6bd65d874a656615a336d7ee126ad3148f721a8d68f87 SHA512 41055f8b8ef361c9ae4bd7de22c0a27cd1651c1d1753d50ba2e6b49083d3dc675c42e425f36a8d9a7e1ecd8e3d6d5c74b35b38a6030fc864c92b90eb6928069a WHIRLPOOL 964c499552a998b412019d86908b47d0920f997309bdc53d5f0d25f5072c0ec713cec657cfd6afa54181213ca22e8218df97e35bb1f5edfdab679d9ac1f36cc4
+MISC ChangeLog-2015 31827 SHA256 28d7ddf584fb8f5d1a66a1ff0712e062958f91388b487a8bfba525b35fe3c6ac SHA512 4e3634ef279dbccc3778cd3882071efa241fb02fea14f7aa0a3ba103a822541d994273609b812ae8f1edb5d03709c3655557d4317c73de44b8476f46f6ad1aef WHIRLPOOL 58b341ea76f9c2290a103ad9c52d8175dfc12250d7d27edcc4d2f6d47aee5be750170605ce5b06851244cda10876a0229434ee4627921dd03ed6c4f1a7da4e34
+MISC metadata.xml 341 SHA256 c0d312996bcd138f95caeffb35a9e6fe62411078398e4c89fcb66929e972c825 SHA512 b194bfc5daa545724eaa7ec7dcc5618ec87249158d5e8fcb01a76375960b2d9dd012e596c0fc8e0d9c94eb39175a6b4424257cf0828cc73956c7a68ff4749da8 WHIRLPOOL 2029c9daa649708bfa643fae658e2d43b66f65b98a5cca15152bbb73c3dc347631c7e64b891f3096e0537a970009466f48db37c568cd255d1cbe0dce2cb3feee
diff --git a/dev-util/dialog/dialog-1.3.20160828.ebuild b/dev-util/dialog/dialog-1.3.20160828.ebuild
new file mode 100644
index 000000000000..13ab611835b0
--- /dev/null
+++ b/dev-util/dialog/dialog-1.3.20160828.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils multilib versionator
+
+MY_P="${PN}-$(replace_version_separator 2 '-')"
+S="${WORKDIR}/${MY_P}"
+DESCRIPTION="tool to display dialog boxes from a shell"
+HOMEPAGE="http://invisible-island.net/dialog/dialog.html"
+SRC_URI="ftp://invisible-island.net/${PN}/${MY_P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
+IUSE="examples minimal nls static-libs unicode"
+
+RDEPEND="
+ >=sys-libs/ncurses-5.2-r5:=[unicode?]
+"
+DEPEND="
+ ${RDEPEND}
+ nls? ( sys-devel/gettext )
+ !minimal? ( sys-devel/libtool )
+ !<=sys-freebsd/freebsd-contrib-8.9999
+"
+
+src_prepare() {
+ default
+ sed -i -e '/LIB_CREATE=/s:${CC}:& ${LDFLAGS}:g' configure || die
+ sed -i '/$(LIBTOOL_COMPILE)/s:$: $(LIBTOOL_OPTS):' makefile.in || die
+}
+
+src_configure() {
+ econf \
+ --disable-rpath-hack \
+ $(use_enable nls) \
+ $(use_with !minimal libtool) \
+ --with-libtool-opts=$(usex static-libs '' '-shared') \
+ --with-ncurses$(usex unicode w '')
+}
+
+src_install() {
+ use minimal && default || emake DESTDIR="${D}" install-full
+
+ use examples && dodoc -r samples
+
+ dodoc CHANGES README
+
+ prune_libtool_files
+}
diff --git a/dev-util/dialog/dialog-1.3.20170131.ebuild b/dev-util/dialog/dialog-1.3.20170131.ebuild
new file mode 100644
index 000000000000..c7c00c94f9a2
--- /dev/null
+++ b/dev-util/dialog/dialog-1.3.20170131.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils multilib versionator
+
+MY_P="${PN}-$(replace_version_separator 2 '-')"
+S="${WORKDIR}/${MY_P}"
+DESCRIPTION="tool to display dialog boxes from a shell"
+HOMEPAGE="http://invisible-island.net/dialog/dialog.html"
+SRC_URI="ftp://invisible-island.net/${PN}/${MY_P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0/14"
+KEYWORDS="~alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
+IUSE="examples minimal nls static-libs unicode"
+
+RDEPEND="
+ >=sys-libs/ncurses-5.2-r5:=[unicode?]
+"
+DEPEND="
+ ${RDEPEND}
+ nls? ( sys-devel/gettext )
+ !minimal? ( sys-devel/libtool )
+ !<=sys-freebsd/freebsd-contrib-8.9999
+"
+
+src_prepare() {
+ default
+ sed -i -e '/LIB_CREATE=/s:${CC}:& ${LDFLAGS}:g' configure || die
+ sed -i '/$(LIBTOOL_COMPILE)/s:$: $(LIBTOOL_OPTS):' makefile.in || die
+}
+
+src_configure() {
+ econf \
+ --disable-rpath-hack \
+ $(use_enable nls) \
+ $(use_with !minimal libtool) \
+ --with-libtool-opts=$(usex static-libs '' '-shared') \
+ --with-ncurses$(usex unicode w '')
+}
+
+src_install() {
+ use minimal && default || emake DESTDIR="${D}" install-full
+
+ use examples && dodoc -r samples
+
+ dodoc CHANGES README
+
+ prune_libtool_files
+}
diff --git a/dev-util/dialog/dialog-1.3.20170509.ebuild b/dev-util/dialog/dialog-1.3.20170509.ebuild
new file mode 100644
index 000000000000..7e7ae2ee659f
--- /dev/null
+++ b/dev-util/dialog/dialog-1.3.20170509.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils multilib versionator
+
+MY_P="${PN}-$(replace_version_separator 2 '-')"
+S="${WORKDIR}/${MY_P}"
+DESCRIPTION="tool to display dialog boxes from a shell"
+HOMEPAGE="http://invisible-island.net/dialog/dialog.html"
+SRC_URI="ftp://invisible-island.net/${PN}/${MY_P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0/14"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
+IUSE="examples minimal nls static-libs unicode"
+
+RDEPEND="
+ >=sys-libs/ncurses-5.2-r5:=[unicode?]
+"
+DEPEND="
+ ${RDEPEND}
+ nls? ( sys-devel/gettext )
+ !minimal? ( sys-devel/libtool )
+ !<=sys-freebsd/freebsd-contrib-8.9999
+"
+
+src_prepare() {
+ default
+ sed -i -e '/LIB_CREATE=/s:${CC}:& ${LDFLAGS}:g' configure || die
+ sed -i '/$(LIBTOOL_COMPILE)/s:$: $(LIBTOOL_OPTS):' makefile.in || die
+}
+
+src_configure() {
+ econf \
+ --disable-rpath-hack \
+ $(use_enable nls) \
+ $(use_with !minimal libtool) \
+ --with-libtool-opts=$(usex static-libs '' '-shared') \
+ --with-ncurses$(usex unicode w '')
+}
+
+src_install() {
+ use minimal && default || emake DESTDIR="${D}" install-full
+
+ use examples && dodoc -r samples
+
+ dodoc CHANGES README
+
+ prune_libtool_files
+}
diff --git a/dev-util/dialog/metadata.xml b/dev-util/dialog/metadata.xml
new file mode 100644
index 000000000000..7c5b4a32485b
--- /dev/null
+++ b/dev-util/dialog/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="project">
+<email>livecd@gentoo.org</email>
+<name>Gentoo LiveCD Project</name>
+</maintainer>
+<use>
+<flag name="minimal">Disable library, install command-line program only</flag>
+</use>
+</pkgmetadata>
diff --git a/dev-util/diffball/Manifest b/dev-util/diffball/Manifest
new file mode 100644
index 000000000000..98e7e702594a
--- /dev/null
+++ b/dev-util/diffball/Manifest
@@ -0,0 +1,5 @@
+DIST diffball-1.0.1.tar.bz2 387787 SHA256 f4d0c90ee42a415b5830ba52a9e57764a16535333b3093c0243575a4ffec461c SHA512 1e01fff8bf7d993c828f195d974b7df1cd4fb056e9a51f9533bc8e01666a55e0d9467c799a005f58d7b4369bbf88fc9b716d0fb68ead6171d349e3c874bddb8c WHIRLPOOL 8ddb7ef0f8bf2020ad5460df74e94669dc4833c41e55e9ad75c09c58aebaafa04ab33329091577b41b117b309f3c952ad48287260567b43cfc1c8181ba03cfd8
+EBUILD diffball-1.0.1.ebuild 806 SHA256 5b41bb3c4686589442fb2fb45ed346ad7084d0f0cce56a34c6d9ab4482e50a60 SHA512 3c5be0e9608123c1bc5f1bc30b458f59c387e9661cfd27ff5935b6841888e6c94ac779792c206f2b659a1b0dd46fd1c7e40727b9e697fcc1cf1b80a2ea12348e WHIRLPOOL 0bd021d0b24b5dca79bd06852ec79e81696e72ba5195722262a7ef6e688cf77f44475e3ac97c6d3ea6089ffbdff89dc1d67fa7e96c4db08fd718d35c8f97383d
+MISC ChangeLog 2539 SHA256 32d603b8f2fddef5c2588ad62d7d75632710080652389a47c95e058558066940 SHA512 d249b8779eb0234f4d7c45044942bd8af553af74e8713d81ad6421ef34e91157568663fe0cbf6efac60851d0e022ba4d1e853271446bbbc5ef444a3c4df26e50 WHIRLPOOL 0958bb63d567437248dec1d0bdcc430281f7b65220eab6ee84e3aa9c8fda93b697ef6ab07506da7c406bc27200b088d137f287d77cc87d04d44783841b119c2d
+MISC ChangeLog-2015 5568 SHA256 f7242522894343b8fa4f2b7711edb2d0dac08d3ab01883872c0694a6e4d85439 SHA512 c8091df2cb22c724edce9ce9ec454711e1da2d1b915f8d3102ee5eabe735a2b43b12e16c9fb75424ed6c29a559473ca48aaaef900dcd93e677c23de443d6db89 WHIRLPOOL 1f0eaf6ddbf18162cf5a162b1bd6d8ae73df47326d0dcb2b47c69f0bc6c6c21ab1286d2f0a3ba0d7b37d41271ad9f8f713067b12fdf18d2915252836e875a5f6
+MISC metadata.xml 335 SHA256 f0a1dede0bde602d536f75db3243309a1f83b98faf4fdf13955da1694478ee15 SHA512 873a67d443a91385a6b7891ee5a09aa3f99cf96410b9165330af17d63333beb72c0e614142274a80ac433089c28a233110b9a142ed3ef2fa269b9a2d2a524e34 WHIRLPOOL 479b74faa08e0319914238f602a54d8299504a75b9efd90847bb3690507bd9d7098d2fabbc33a12aae38dc56fbe8c007bcb80f46c128305fd8f7ce8bcddd6744
diff --git a/dev-util/diffball/diffball-1.0.1.ebuild b/dev-util/diffball/diffball-1.0.1.ebuild
new file mode 100644
index 000000000000..0902b00c14f9
--- /dev/null
+++ b/dev-util/diffball/diffball-1.0.1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit flag-o-matic
+
+DESCRIPTION="Delta compression suite for using/generating binary patches"
+HOMEPAGE="https://diffball.googlecode.com/"
+SRC_URI="https://diffball.googlecode.com/files/${P}.tar.bz2"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="alpha amd64 ~hppa ia64 ~mips ppc ~sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE="debug"
+
+RDEPEND=">=sys-libs/zlib-1.1.4
+ >=app-arch/bzip2-1.0.2
+ app-arch/xz-utils"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+# Invalid RESTRICT for source package. Investigate.
+RESTRICT="strip"
+
+src_prepare() {
+ # fix bug 548316 by restoring pre-GCC5 inline semantics
+ append-cflags -std=gnu89
+ default
+}
+
+src_configure() {
+ econf $(use_enable debug asserts)
+}
diff --git a/dev-util/diffball/metadata.xml b/dev-util/diffball/metadata.xml
new file mode 100644
index 000000000000..70aa8c7d2862
--- /dev/null
+++ b/dev-util/diffball/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>rafaelmartins@gentoo.org</email>
+ <name>Rafael G. Martins</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="google-code">diffball</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/difffilter/Manifest b/dev-util/difffilter/Manifest
new file mode 100644
index 000000000000..c11f25680c78
--- /dev/null
+++ b/dev-util/difffilter/Manifest
@@ -0,0 +1,5 @@
+DIST difffilter-0.3.3.tar.bz2 291226 SHA256 2f14af2a3535a52322ae77d805c2a4ae1e8301eee0905406845cea3c2ae0bcd3 SHA512 ac9aa95dd7e41b6c49c1416be9d1929a41b629587ecb90f3dcadd3982a46d8eb49d181f8f1b1645322113becd9a4b708d0df1e27f6fb9064ffb06b37e5f101f8 WHIRLPOOL 06f50da86ab174e974e9f88f522ed4b18a4c93e783b3691840be2fb419f20da8b823c41c2daff4ca8f78377463dc63de5741da5b1d8efe14fd6686fa8a34f299
+EBUILD difffilter-0.3.3.ebuild 627 SHA256 3ff50bfdae3e6f2ac279dbe3fee91768816256cedd2c1f5bf6c69a3379cc6874 SHA512 f789e1b968d0d1f79e71ce8fad490e64104ce3f1cc5f67f3e841d78a426982aa2ec7bdc88b316f6701b25663370feb8221c53ad7c2473f0cf6ebe6783e9292b2 WHIRLPOOL 2b534ff736bae504f816cd794e0aa2daef2eab2dd72a53a171de719f834462d32001e0bd3862c1038031d5aad3758f01c47fb78f67defc37279f7e47547437b9
+MISC ChangeLog 2496 SHA256 b098b28850e2d1f7cee2a692e9cadb5f4f471758876a42be852618b64acbaad6 SHA512 46987285967a6962d9bc2c4d145b27391969306a1d190e05952e4d3daf84bf3236075a474af3915cbba752faf07475be4881bd129e003d0c1690b96fe6e08841 WHIRLPOOL 480d4d39265d52c00f975d3a72604d7b501ff105a8d77d18e148411f67ef00a5d0040b2ff7650d1bb3c54be8a457b449f139ae236615de168a911c05e630772e
+MISC ChangeLog-2015 2442 SHA256 e2b9c30be8d439b9ac6a3a72d574b829e6d2c126a123b83c2c4331f78556a7b4 SHA512 f6f3c395625026eaf26f3ae0a3433ae74f6e6d4602d3a80c1c7590d36842540c6f27476ac11945b9d1e71b14584a0379154564a64afeadd8a247a086772d4d47 WHIRLPOOL 55b2e4fa657a233f2713c42dd5727586af558afc5678971e40f3eaeefc2bba685c94ea2e55c95ce19a0e9764baf8e9918f0d5300307324e5c2e555c1c2ca5854
+MISC metadata.xml 139 SHA256 5cdc1888ebc8807b9a37b1d33429c61cabe7415a4f240e21a4c2ff8eca7a34ed SHA512 8be912ace7468a4396eb1da00a9785030a8ce35da4357a01591876a1056fd45e44da65de2af3e1eb0506ce6551714962c40c3ae5a3aefa2ad231de35af2519be WHIRLPOOL 620431014dd4fb752c3d46d11904ecb2c6d4525f5b4e30f4f778a3b74d3f7187ae4ccd856ebd7eabb48ce261b21849c732928fe647edce024a3fdc082d8f8630
diff --git a/dev-util/difffilter/difffilter-0.3.3.ebuild b/dev-util/difffilter/difffilter-0.3.3.ebuild
new file mode 100644
index 000000000000..ec2d6786e055
--- /dev/null
+++ b/dev-util/difffilter/difffilter-0.3.3.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit autotools-utils
+
+DESCRIPTION="Filter files out of unified diffs using POSIX extended regular expressions"
+HOMEPAGE="http://ohnopub.net/~ohnobinki/difffilter/"
+SRC_URI="ftp://mirror.ohnopub.net/mirror/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86 ~amd64-linux"
+IUSE="doc"
+
+RDEPEND=">=dev-libs/liblist-2.3.1
+ dev-libs/libstrl
+ dev-libs/tre"
+DEPEND="doc? ( app-text/txt2man )
+ ${RDEPEND}"
+
+src_configure() {
+ local myeconfargs=(
+ $(use_enable doc)
+ )
+
+ autotools-utils_src_configure
+}
diff --git a/dev-util/difffilter/metadata.xml b/dev-util/difffilter/metadata.xml
new file mode 100644
index 000000000000..097975e3adc2
--- /dev/null
+++ b/dev-util/difffilter/metadata.xml
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+</pkgmetadata>
diff --git a/dev-util/diffoscope/Manifest b/dev-util/diffoscope/Manifest
new file mode 100644
index 000000000000..7a2b0b2a4e1f
--- /dev/null
+++ b/dev-util/diffoscope/Manifest
@@ -0,0 +1,3 @@
+DIST diffoscope-78.tar.gz 466619 SHA256 f6b444b57dc70bb1ad6e682b3e5fe4a65141488980436b4ca89b55d1b589a8af SHA512 6d83c8297727ebd0dce49805d6cc3dcca1ea5a2c1b8d56097e3c7ef14c9058851f3504aaa2bed0f0ea905796f5c704937320f8bbcd7dad2a73ab940d96f693aa WHIRLPOOL 3245255abfcded1bbaa3c39bf046711cb82cf1a6c1625379421a47454ee6fd01692f42f56050bab2c8525a1a9fbef84290d7e96554c50df683d36b00e91df094
+EBUILD diffoscope-78.ebuild 540 SHA256 440145c4c72a42bd6fd927d64d29199ddcf670748a4b8cd05a4f166b5f8fb54e SHA512 89fc9c0d16c9b23c9c151d32d847d6dbf277ffd289c12fbcf4e611fc688cac39522ab6dab57cfb280a919619778642c11c1ec47954873b59224ac77f87d065c5 WHIRLPOOL 71360388ac7a774ac52a911754ad2e3c9c108bf329ca5f1adfa4740dc879bcc090d1b81975c20fe6301ece177435c1d4b2497b46d951cc7ecf5a9d38fe4a9108
+MISC metadata.xml 645 SHA256 3dacf9e64ae72bae7efaab10d9a437545c158e8da41e63665c2bed91ab11021b SHA512 eebf7b928e71f982cb33200bc8f04c4948a0cee4fad86109aacf9fc5ccb69831fbc9b7d54599700c114e640984bc16479971bc5414e60a20c0e8bb079491112f WHIRLPOOL 53aab0ada0c9498bff4293610c6eff8ba8d8a944d68e5b33da5fe9faa4f7eaa554663cabc81993806ec0d0c04488f6907b1f6f800caad86ff52945ce0845bdc8
diff --git a/dev-util/diffoscope/diffoscope-78.ebuild b/dev-util/diffoscope/diffoscope-78.ebuild
new file mode 100644
index 000000000000..08c32333e499
--- /dev/null
+++ b/dev-util/diffoscope/diffoscope-78.ebuild
@@ -0,0 +1,16 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python3_{4,5,6} )
+inherit distutils-r1
+
+DESCRIPTION="Will try to get to the bottom of what makes files or directories different"
+HOMEPAGE="https://diffoscope.org/ https://pypi.python.org/pypi/diffoscope/"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+RDEPEND="dev-python/python-magic[${PYTHON_USEDEP}]
+ dev-python/libarchive-c[${PYTHON_USEDEP}]"
diff --git a/dev-util/diffoscope/metadata.xml b/dev-util/diffoscope/metadata.xml
new file mode 100644
index 000000000000..922b04338b88
--- /dev/null
+++ b/dev-util/diffoscope/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>grozin@gentoo.org</email>
+ <name>Andrey Grozin</name>
+</maintainer>
+<longdescription>
+ diffoscope will try to get to the bottom of what makes files or directories different.
+ It will recursively unpack archives of many kinds and transform various binary formats
+ into more human readable form to compare them.
+ It can compare two tarballs, ISO images, or PDF just as easily.
+</longdescription>
+<upstream>
+ <remote-id type="pypi">diffoscope</remote-id>
+</upstream>
+</pkgmetadata>
diff --git a/dev-util/diffstat/Manifest b/dev-util/diffstat/Manifest
new file mode 100644
index 000000000000..e94bfd6b2d1a
--- /dev/null
+++ b/dev-util/diffstat/Manifest
@@ -0,0 +1,7 @@
+DIST diffstat-1.60.tgz 255922 SHA256 2032e418b43bae70d548e32da901ebc4ac12972381de1314bebde0b126fb0123 SHA512 6cbcff7dfe6d51583d59d2c9dfe4cb958202491ca3c4b1096616380564a1842065434d30858c55c3ddcfc76cd07b58dfc4c4cb6cfdcf6346af60998170f51bd2 WHIRLPOOL c24b6ed65b4cc991a18ff0ce5dc734a7ad779d3b21da961403fbf84f37db1de05f2877715e3ba46f76460143758f46b387fa5f9fea4166da43fd469d733f1a2c
+DIST diffstat-1.61.tgz 257242 SHA256 25359e0c27183f997b36c9202583b5dc2df390c20e22a92606af4bf7856a55ee SHA512 48166e1241904b955c0f5543b1f11724a1a91516fcba5ad0603441d985728de3e0fca5f5212704dd0fc9a9e5062788b1b34062869137fd851932233d4abad114 WHIRLPOOL 0f6d545b46059dbecdc643b94988223fca72443b50f5603c6af66a68be49818fcaa3503267a894ec2b657118ef02541e5ce1218ed256496d24c10c24b895b1d3
+EBUILD diffstat-1.60.ebuild 606 SHA256 086f4a445c19e3f392c364624a28baf686bd0a88adfd9f54b65584fb8b261c9e SHA512 f9b668284eaa472eb843f727d18ec7d4d4a3a00306be366fb389f4fb3071d897bf88086739bf553b7f1c3383136841b23e169f435a5a323cc2760795d6281160 WHIRLPOOL 8ff01740fd63d446b8ba7366798a8bcc679110bbcd3d84645150b97e862765c583fa9b4eb4f1cc76933fcb684626024879c5886e02bca0a00be889fc92c3e1a2
+EBUILD diffstat-1.61.ebuild 476 SHA256 a93803615e355fc4a196b67f4d6cd2f257673ba25bb57bfed159ae3c6b14723c SHA512 adedfaa3c6e22c00afd84afcc3f6141e4ac26efd4ab3f73fe1f992ea78e26ff9a7b2d38e63456069a8e88f99b643e8ae2f0d4ae82386e2d6b398729d0325ccf9 WHIRLPOOL 6cd116f46502b4d6c4e49f450f44abad17049961e789946dcb9ea9161bbf4b269cac7207b304ce038bfea813e6dc2b5961b1d7a4a54207e3a132bbb1eb8a02f7
+MISC ChangeLog 4626 SHA256 3a1a246272f0ec3b6c27a67313ae3bba3382432a4349f77542822ce60f024cf1 SHA512 90eec1983722e3dd1dcd5e6eaca6363a61e736fb9d763ec9888578cd073fdc81a58b3001219b1fd6f95900a86205677cad756e22d5efec70b08aa83494955003 WHIRLPOOL 687947646bd2adeb1f1c6c4273942dae3d05328410b7588a51ae4b8c760cdd9b9035a4ae2b49437b5d3b7800fdc56f116b80eb0d67762458b8591841309d6c05
+MISC ChangeLog-2015 19082 SHA256 2e346880c79fdda65bf42a4e5eae32ac4a8f6f367debc160551c93cb6746aae3 SHA512 df1b9a1b3665dcdc91c92d36ea0816ad85c29520206e4da6102847355bff231009067cf8582f4ab73b6a519b5a29e618b34b71e6b3370722894eb902e1fdf2b8 WHIRLPOOL 21754c434d1bdffbe3a741c7748994429e3d3cb2cf9af405dc6a3f74384dc771ae7305daa702d3356db25da3891db88c84c907c6f060fe82b04ce21dab527d53
+MISC metadata.xml 370 SHA256 1c6cb0b146774abb82e0a9e7f33671cbf183bb1e1750fcbca965c8215d83b26d SHA512 f9979216cd41510953e4ad5ea2f7f6081fe730907ca15b0e48106079c0c44ca0fcd9fcaf3fc47aa11e0bd57135ab9dab0828148a37e51de5984612fd028521c6 WHIRLPOOL 7a864d95bc98cba8c00248aea949edd593ca61d723205302d86b5036841d6661b237bddc31af2c4e516a8b62d6a106ac427b634444cd0868f730ee4768fb24c9
diff --git a/dev-util/diffstat/diffstat-1.60.ebuild b/dev-util/diffstat/diffstat-1.60.ebuild
new file mode 100644
index 000000000000..d0628ec89c72
--- /dev/null
+++ b/dev-util/diffstat/diffstat-1.60.ebuild
@@ -0,0 +1,19 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+DESCRIPTION="Display a histogram of diff changes"
+HOMEPAGE="http://invisible-island.net/diffstat/"
+SRC_URI="ftp://invisible-island.net/diffstat/${P}.tgz"
+
+LICENSE="HPND"
+SLOT="0"
+KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris"
+IUSE=""
+
+src_configure() {
+ # We can drop this once a new release is made w/newer autotools.
+ export CONFIG_SHELL="/bin/bash" #529744
+ default
+}
diff --git a/dev-util/diffstat/diffstat-1.61.ebuild b/dev-util/diffstat/diffstat-1.61.ebuild
new file mode 100644
index 000000000000..eb958d03c0b8
--- /dev/null
+++ b/dev-util/diffstat/diffstat-1.61.ebuild
@@ -0,0 +1,13 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Display a histogram of diff changes"
+HOMEPAGE="http://invisible-island.net/diffstat/"
+SRC_URI="ftp://invisible-island.net/diffstat/${P}.tgz"
+
+LICENSE="HPND"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris"
+IUSE=""
diff --git a/dev-util/diffstat/metadata.xml b/dev-util/diffstat/metadata.xml
new file mode 100644
index 000000000000..a657c717c2c5
--- /dev/null
+++ b/dev-util/diffstat/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="project">
+ <email>shell-tools@gentoo.org</email>
+ <name>Gentoo Shell Tools Project</name>
+ </maintainer>
+ <upstream>
+ <changelog>http://invisible-island.net/diffstat/CHANGES</changelog>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/diffuse/Manifest b/dev-util/diffuse/Manifest
new file mode 100644
index 000000000000..6c9d48773e54
--- /dev/null
+++ b/dev-util/diffuse/Manifest
@@ -0,0 +1,5 @@
+DIST diffuse-0.4.8.tar.bz2 557966 SHA256 c1d3b79bba9352fcb9aa4003537d3fece248fb824781c5e21f3fcccafd42df2b SHA512 0c62976526804a328f1cc1775f842e9575fab50309cc964171af5ee89d8f303d4cbdf66a078ed64bb8826f5a57c2cc7fc59afc1ee87646ece340212d34f2514e WHIRLPOOL d1f044497103c6c429f9980fa759e3df019176359adf13bd71d07c030188aad7c297a2b202290ac7124beed3536172ba17aca18d1e7a4b535218e3dd2cb015d3
+EBUILD diffuse-0.4.8.ebuild 1206 SHA256 4dffe8e812dba2ee84f8fb2084704e021b0fc4931d6bd433433015f1a29c7551 SHA512 f2965164c8a5823457c6923961efb955043fea45a8cfe3fb71c39ef26d9387c197697b6ab4264785277512be1d6cc4b028d8ed45693109fa5592e171844098df WHIRLPOOL 946565d2ef03d5115d86165504506f705fb9dfacf5f880f2fe13c6700e1f28eb629cc6b2d3afb53cb436d0dc02f52b37363340611ca72449d56796956f3af65c
+MISC ChangeLog 2429 SHA256 eac384c6c87524d73c6a606ebbc4059695d813938fb9bce5c3d95810ecf13505 SHA512 7956cbf829a32e97defc601577d6ac67c76a5c596924d4d4dbdfcea5b633431a7c5d5985de898562685a103e3c9416c4542eced0e2414fddc8042941231c6d1e WHIRLPOOL b79e8483513397bcff1fb5a367c92a389e5ee441f0dee430c470f68b86657d84cfeabe5ae2b32261b160c6c1d932328b843f959fc81f6d19ee224d1823f23c7f
+MISC ChangeLog-2015 3361 SHA256 85eabefc89ec1f0260bb35f7f86fcedf8d48259502a7705ab2e63bdc9a39900a SHA512 4dfbb7eac6787c58ca17472c5e0ec7c8a16ac6c15dede92e95e77f0461da0c5e2355f1aa90a116ab84220365136506aaabfc340ba43871897ea1265795fddcca WHIRLPOOL 827af16f78eddda221852543c467e4bb02b1de022722dc323ef79fad465ba458e13581ced96a758a7291be6c2d7129f4bd5c6f5c0a4b660c649be89f0a87d596
+MISC metadata.xml 408 SHA256 a10290d2ec196b8de07d6c33a46da7b19e9bbcafb5deb736d2ba62403e9716d4 SHA512 9c4f4f53b106582296f9cd3cd52e86587f0fb4767e01b0bb0464a19ba9aa0badd27f25b4438e1693313b685293c4db652a81c60c338e8673717a5a8ad6791458 WHIRLPOOL 03a629071841a78a069c4c5760880bc28d9684a818a76be67f5d471b39236161786ac9960bdb06c296cae6e044a84c8b27c60db408f67bde95a2b83f5d3d3c8f
diff --git a/dev-util/diffuse/diffuse-0.4.8.ebuild b/dev-util/diffuse/diffuse-0.4.8.ebuild
new file mode 100644
index 000000000000..93a43809a4d2
--- /dev/null
+++ b/dev-util/diffuse/diffuse-0.4.8.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+
+inherit fdo-mime python-single-r1
+
+DESCRIPTION="A graphical tool to compare and merge text files"
+HOMEPAGE="http://diffuse.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86 ~x64-solaris"
+IUSE=""
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+DEPEND="${PYTHON_DEPS}"
+RDEPEND="${DEPEND}
+ dev-python/pygtk[${PYTHON_USEDEP}]"
+# file collision, bug #279018
+DEPEND="${DEPEND}
+ !sci-chemistry/tinker"
+
+src_prepare() {
+ local i p
+
+ # linguas handling wrt #406433
+ if [[ -n "${LINGUAS+x}" ]] ; then
+ for i in $(for p in translations/*.po ; do echo ${p%.po} ; done) ; do
+ if ! has ${i##*/} ${LINGUAS} ; then
+ rm "${S}"/${i}.po || die
+ fi
+ done
+ fi
+
+ python_fix_shebang src/usr/bin/diffuse
+}
+
+src_install() {
+ "${PYTHON}" install.py \
+ --prefix="${EPREFIX}"/usr \
+ --sysconfdir="${EPREFIX}"/etc \
+ --files-only \
+ --destdir="${D}" \
+ || die "Installation failed"
+ dodoc AUTHORS ChangeLog README
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+}
diff --git a/dev-util/diffuse/metadata.xml b/dev-util/diffuse/metadata.xml
new file mode 100644
index 000000000000..ef53d12f435f
--- /dev/null
+++ b/dev-util/diffuse/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>grozin@gentoo.org</email>
+ <name>Andrey Grozin</name>
+ </maintainer>
+ <longdescription>A graphical tool to compare and merge text files</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">diffuse</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/dirdiff/Manifest b/dev-util/dirdiff/Manifest
new file mode 100644
index 000000000000..62d5bd3e3191
--- /dev/null
+++ b/dev-util/dirdiff/Manifest
@@ -0,0 +1,11 @@
+AUX dirdiff-2.1-build.patch 764 SHA256 74a62531b1a7bb400fd2c3d06c2e40bfbc5d37342936602e408f7428e07f3e49 SHA512 7b192071c14fd72733fe250f7ee5fa651f98238eb3238a584039b2f39537f04ed4b1940e2dbfceedc81df6933504c275a9b635d02b34b44186ff73c9e909d077 WHIRLPOOL 788dc98cc38b5d96e3c87a2d382f3b0ddd8869a2b118b122e34d6d11f9a5f33d78bdc372eb75831127ff4aab96e4f8fe37f3054922f116e3e496d276129b7778
+AUX dirdiff-2.1-funky-chars.patch 7075 SHA256 a55cdde48007d3477a19c6428129b6e95bf61975c8d10967b6aa8ad761634fa2 SHA512 966e33714e7bfdf5ea1cd893c07e7305220282543a28bc7054fb59fb75f595ec50a5a4ac81ce3ff49b0bf4877de17075c575fb3ba9e7766f199dcdfc7e52f766 WHIRLPOOL 4c53d8d6fd89ff0b4ef83c3cc52c476689bdba665ed874b27417e40d5806c89e72cbedbbe728c2c6a58372c531640488e6a04438ec603873e66be9b590df261c
+AUX dirdiff-2.1-include.patch 314 SHA256 faedaf8053619fb773aef44bfa55240910d10015d6a3f4cbdc6f45b81fb5e55d SHA512 a9fb10e5878f07d1f558810a0d34ba423f49c463f0ecf14ad5833b1ec1519ac0b467e387977a6da1bf48794a5dc3522c31f78b34731e61e39331d30c251da0bb WHIRLPOOL 39e7a151cf1b1cc4c2f3ae0bda9038226d67c9e24b3314c79e56d5248397b17e1e2f6e319807fea041b3f01cddc7f8c03d14396149a5f5c13ad4846c6a81975b
+AUX dirdiff-2.1-tcl8.6.patch 397 SHA256 3a5bfcec7e76e91c1a2664f3eb6bb306ff5b0269ecfe42bd23d161b0577db916 SHA512 938c6cf4f815f58f0de2c12b5bd19e8128615aba278c91e9c7a8e462f822b79d22f7d50ff331e095ff77ec979c9fc1a1a3a8bfd80f23c2f0e252a1e05098888e WHIRLPOOL 419041f7f5266cd103ecb6ebbb76ce1fb3ec2dc94454bad6e7a9f6be069d1f9f48165905cf1a11ca0ae8bdbfd339cbb77104d430843d34558a4e780e7980e7b9
+AUX dirdiff-2.1-vcs.patch 497 SHA256 92f15883cc407633eca8daf03403b4eddfe8832bc74522b2f82219a2ab5f7623 SHA512 27baa8b3e0710db7ae9b01c1c132681ee71e96e4d19585fe0bdd9584e182ff96e7358df6607a40af054fdb536275b9c5a49581cde2fa934d6cf7f39489eb3a98 WHIRLPOOL 0bb63bc51351f9e2d45f7c649a00ac475db775d05c2a43c23b6f583063aebf0048d67542f855cd256fcf1840dd4dc68443ca48b107d96fe9a1e178111e3fed10
+DIST dirdiff-2.1.tar.gz 43105 SHA256 cb373654d5788027804355e355df0695862c3bfc1f6a3fc6014722b3156a9252 SHA512 826d5a7a633921bec7043c89ccdadff19b4a6328efd09913932b306a48242203fbf6b5bac69d72660acf2c76ce6c8c5e53be62c2e69bbf3e3717e21c544ca261 WHIRLPOOL db5342743f3c6719de6645e11f6eda883d27fc9fa83380022e4a11c5e897fd4a0066aa696316d9f262951a6500c8cfcd48afb3d59d2e9080823eda93f174cda5
+EBUILD dirdiff-2.1-r2.ebuild 913 SHA256 ab50061ff34948e4a111905ca327ea7813bf19098a13795ff466010b6d5d826d SHA512 8ac0e9d7791dbe39ca3e063a22262f00f3cf2dcacf8a64a0af4c99fb90fddf13017cf45ce5409c9c3ca881441b0fc6423539bf59565b76ed7e47888a4f951c6f WHIRLPOOL 0a9a24ef0a994a36e9e2c064ab1911570362d027989e7aa37df07e4a431dd422970b5c232d7faae98e49c833cd2989248b127d60cd92cfeb05193950c3db8f1a
+EBUILD dirdiff-2.1-r3.ebuild 917 SHA256 0b9a25c9d5e9f40ca920750c6b42b4773b3d34d2939fbfdb1c6c8a96a2206dd6 SHA512 4371e3cecd495db6fb5202611666b328ce8a3ccebe8d8785ec1250cf2fb74eeebca3223b1d0bb023418828ce087caf0b3067c91fbebb6dcf135152702ef8d504 WHIRLPOOL 42579a1131dda4834645222455fecba6e079088dea26edf466b8254d82131ad6c20ce99cc58d9269ae6e86a575d1edcf32373f6953d74c8cc02cb9ab1fb29675
+MISC ChangeLog 2695 SHA256 987e1e0ea5b4d63ab18ff3d05325564073de8bf21295cd1327fc0c8f7ecc822c SHA512 b2dcb5ce37c79f3b20420a935f7dd1ca40171c6cb6797a264755f673a298c3e1cd68dde4dbb23a01f07c1b385b025176089a0f8e78a0dd8ff29af752eac67c64 WHIRLPOOL 0a2479f7c4312d6b9b41919740f0b635019d4a5afb176ac695f3323a9a683c642fd66c8b1ba0ab49375dd9dc6bdecf2530ac34dc4ff5cd7e3c78eef5bf895140
+MISC ChangeLog-2015 2895 SHA256 7a9d69aa9df2254f9d83dc5b47a6fd9764aad62fb1827e38941f74c0c589ad64 SHA512 c9384e147ccb98381cdf6b64c29484425c4668a01c7dbfe5ecb90d85d71c80eb142cd0f336e4d77e28d4e77248594e247a3ccae19b795c8eab38be548d74cb72 WHIRLPOOL 29f35b9f15453c0a1da4aa6fbbf444f718c49a3d5896f36ba55338691ca231fd84b1e40540b411ad3439462e93fdf881874998758443237d81e0aaa330ae337c
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/dev-util/dirdiff/dirdiff-2.1-r2.ebuild b/dev-util/dirdiff/dirdiff-2.1-r2.ebuild
new file mode 100644
index 000000000000..7750c5d249ff
--- /dev/null
+++ b/dev-util/dirdiff/dirdiff-2.1-r2.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils flag-o-matic multilib toolchain-funcs
+
+DESCRIPTION="A tool for differing and merging directories"
+SRC_URI="http://samba.org/ftp/paulus/${P}.tar.gz"
+HOMEPAGE="http://samba.org/ftp/paulus/"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~mips ppc x86"
+IUSE=""
+
+DEPEND="
+ dev-lang/tk:0=
+ dev-lang/tcl:0="
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${P}-include.patch \
+ "${FILESDIR}"/${P}-build.patch \
+ "${FILESDIR}"/${P}-vcs.patch \
+ "${FILESDIR}"/${P}-tcl8.6.patch \
+ "${FILESDIR}"/${P}-funky-chars.patch
+ tc-export CC
+ append-cppflags -I"${EPREFIX}"/usr/include/tcl
+}
+
+src_install() {
+ dobin dirdiff
+ dolib.so libfilecmp.so.0.0
+ dosym libfilecmp.so.0.0 /usr/$(get_libdir)/libfilecmp.so.0
+ dosym libfilecmp.so.0.0 /usr/$(get_libdir)/libfilecmp.so
+ dodoc README
+}
diff --git a/dev-util/dirdiff/dirdiff-2.1-r3.ebuild b/dev-util/dirdiff/dirdiff-2.1-r3.ebuild
new file mode 100644
index 000000000000..0310426e4e56
--- /dev/null
+++ b/dev-util/dirdiff/dirdiff-2.1-r3.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit flag-o-matic multilib toolchain-funcs
+
+DESCRIPTION="A tool for differing and merging directories"
+SRC_URI="http://samba.org/ftp/paulus/${P}.tar.gz"
+HOMEPAGE="http://samba.org/ftp/paulus/"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~mips ~ppc ~x86"
+
+DEPEND="
+ dev-lang/tk:0=
+ dev-lang/tcl:0="
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}/${P}-include.patch"
+ "${FILESDIR}/${P}-build.patch"
+ "${FILESDIR}/${P}-vcs.patch"
+ "${FILESDIR}/${P}-tcl8.6.patch"
+ "${FILESDIR}/${P}-funky-chars.patch"
+)
+
+DOCS=( README )
+
+src_prepare() {
+ default
+ tc-export CC
+ append-cppflags -I"${EPREFIX}"/usr/include/tcl
+}
+
+src_install() {
+ dobin "${PN}"
+ dolib.so libfilecmp.so.0.0
+ dosym libfilecmp.so.0.0 /usr/$(get_libdir)/libfilecmp.so.0
+ dosym libfilecmp.so.0.0 /usr/$(get_libdir)/libfilecmp.so
+ einstalldocs
+}
diff --git a/dev-util/dirdiff/files/dirdiff-2.1-build.patch b/dev-util/dirdiff/files/dirdiff-2.1-build.patch
new file mode 100644
index 000000000000..bb5010265196
--- /dev/null
+++ b/dev-util/dirdiff/files/dirdiff-2.1-build.patch
@@ -0,0 +1,28 @@
+ Makefile | 11 ++++++++---
+ 1 file changed, 8 insertions(+), 3 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index b4a49f8..410e018 100644
+--- a/Makefile
++++ b/Makefile
+@@ -7,12 +7,17 @@ LIBDIR=$(DESTDIR)/usr/lib
+ INSTALL=install
+
+ # You may need to change the -I arguments depending on your system
+-CFLAGS=-O3 -I/usr/include/tcl8.3/ -I/usr/include/tcl
++#CFLAGS=-O3 -I/usr/include/tcl8.3/ -I/usr/include/tcl
++
++LIBS = -ltcl
+
+ all: libfilecmp.so.0.0
+
+-libfilecmp.so.0.0: filecmp.c
+- $(CC) $(CFLAGS) -shared -o $@ filecmp.c
++.c.o:
++ $(CC) $(CPPFLAGS) $(CFLAGS) -fPIC -c $< -o $@
++
++libfilecmp.so.0.0: filecmp.o
++ $(CC) $(LDFLAGS) -shared -Wl,-soname,libfilecmp.so.0 -o $@ filecmp.o $(LIBS)
+
+ install: dirdiff libfilecmp.so.0.0
+ $(INSTALL) -c dirdiff $(BINDIR)
diff --git a/dev-util/dirdiff/files/dirdiff-2.1-funky-chars.patch b/dev-util/dirdiff/files/dirdiff-2.1-funky-chars.patch
new file mode 100644
index 000000000000..1d4f715ac167
--- /dev/null
+++ b/dev-util/dirdiff/files/dirdiff-2.1-funky-chars.patch
@@ -0,0 +1,201 @@
+--- cvs-local.orig/dirdiff
++++ cvs-local/dirdiff
+@@ -563,7 +563,7 @@
+ if {$d1 == $d2} continue
+ set any 1
+ $base.p.$sub1 add command -label "$d2" \
+- -command "makepatch \"$d1\" \"$d2\""
++ -command [list makepatch $d1 $d2]
+ }
+ if {$any} {
+ $base.p add cascade -label "$d1 ->" -menu $base.p.$sub1
+@@ -579,7 +579,7 @@
+ set i 0
+ foreach d $dirs {
+ if {!$dirreadonly($i)} {
+- $base.t add command -label $d -command "touchfiles \"$d\""
++ $base.t add command -label $d -command [list touchfiles $d]
+ }
+ incr i
+ }
+@@ -677,7 +677,7 @@
+ set i 0
+ foreach d $dirs {
+ .bar.options add checkbutton -label "Read-only $d" \
+- -variable dirreadonly($i) -command "readonlychange $i"
++ -variable dirreadonly($i) -command [list readonlychange $i]
+ incr i
+ }
+
+@@ -1153,7 +1153,7 @@
+ if {$xi != ""} {
+ set x [lindex $dirs $xi]
+ $diffbut add command -label "Show $x" \
+- -command "showfile \"$x\" \"$selfile\""
++ -command [list showfile $x $selfile]
+ }
+ } elseif {$numgroups > 1} {
+ if {$numgroups > 2} {
+@@ -1163,7 +1163,7 @@
+ lappend x [lindex $dirs $i]
+ }
+ $diffbut add command -label "$numgroups-way diff" \
+- -command "diffn {$x} {$selfile}"
++ -command [list diffn $x $selfile]
+ }
+ for {set gn 1} {$gn < $numgroups} {incr gn} {
+ set yi [lindex $groupelts($gn) 0]
+@@ -1184,7 +1184,7 @@
+ set xi [lindex $groupelts($go) 0]
+ if {$xi == ""} continue
+ set x [lindex $dirs $xi]
+- set cmd "diff2 \"$x\" \"$y\" \"$selfile\""
++ set cmd [list diff2 $x $y $selfile]
+ if {$numgroups <= 3} {
+ if {$compound_ok} {
+ $diffbut add command -label "$x vs. $y" \
+@@ -1283,7 +1283,7 @@
+ set cl2 [lindex $bgcolors($ng) $age]
+ if {$im2 == "ex"} {set im2 ""}
+ set y [lindex $dirs $dst]
+- set cmd "copyselfile \"$src\" \"$dst\" \"$selfile\" 0"
++ set cmd [list copyselfile $src $dst $selfile 0]
+ if {$any == 1} {
+ if {$compound_ok} {
+ $copybut add command -label "$x -> $y" \
+@@ -1346,7 +1346,7 @@
+ set im2 [lindex $agecolors($ng) $age]
+ set cl2 [lindex $bgcolors($ng) $age]
+ set y [lindex $dirs $dst]
+- set cmd "copyselfile \"$src\" \"$dst\" \"$selfile\" 1"
++ set cmd [list copyselfile $src $dst $selfile 1]
+ if {$any == 1} {
+ if {$compound_ok} {
+ $copybut add command -label "$x -> $y" \
+@@ -1392,10 +1392,10 @@
+ if {$compound_ok} {
+ $copybut add command -label "Remove from $x" \
+ -image ex -compound left \
+- -command "removeselfile \"$dst\" \"$selfile\""
++ -command [list removeselfile $dst $selfile]
+ } else {
+ $copybut add command -label "Remove from $x" \
+- -command "removeselfile \"$dst\" \"$selfile\""
++ -command [list removeselfile $dst $selfile]
+ }
+ }
+ }
+@@ -1415,7 +1415,7 @@
+ if {$dirreadonly($d)} continue
+ set y [lindex $dirs $d]
+ $copybut add command -label "$x -> $y" \
+- -command "copyselfile \"$s\" \"$d\" \"$selfile\" 0"
++ -command [list copyselfile $s $d $selfile 0]
+ }
+ }
+ set needsep 1
+@@ -1429,10 +1429,10 @@
+ if {$compound_ok} {
+ $copybut add command -label "Remove from $x" \
+ -image ex -compound left \
+- -command "removeselfile \"$s\" \"$selfile\""
++ -command [list removeselfile $s $selfile]
+ } else {
+ $copybut add command -label "Remove from $x" \
+- -command "removeselfile \"$s\" \"$selfile\""
++ -command [list removeselfile $s $selfile]
+ }
+ }
+ }
+@@ -1469,7 +1469,7 @@
+
+ # Show the file in an external viewer
+ if { [llength $showprogram] > 0} {
+- eval "exec $showprogram \"$fn\" &"
++ exec $showprogram $fn &
+ return
+ }
+ # Or make our own viewer
+@@ -1569,7 +1569,7 @@
+ set diffopts "-U $ctxlines $diffiflag $diffwflag $diffbflag $diffBflag $diffdflag"
+
+ if { [llength $diffprogram] > 0} {
+- eval "exec $diffprogram \"$path1\" \"$path2\" &"
++ exec $diffprogram $path1 $path2 &
+ return
+ }
+ # If we used an external diff program, its options are used. If we didn't,
+@@ -1750,7 +1750,7 @@
+ if {$gx == $g && !$dirreadonly($k)} {
+ set f [lindex $dirs $k]
+ $mergebut.m add command -label "update $f" \
+- -command "diffmerge $i \"$f\""
++ -command [list diffmerge $i $f]
+ set path [joinname $f $difffile]
+ set diffmtime($path) [file mtime $path]
+ }
+@@ -1770,7 +1770,7 @@
+ if {$gx == $g && !$dirreadonly($k)} {
+ set f [lindex $dirs $k]
+ $mpatchbut.m add command -label "for $f" \
+- -command "diffmpatch $i \"$f\""
++ -command [list diffmpatch $i $f]
+ }
+ incr k
+ }
+@@ -3424,7 +3424,7 @@
+ $w.bar.edit.m add command -label Copy -command "tk_textCopy $w.t"
+ $w.bar.edit.m add command -label Paste -command "tk_textPaste $w.t"
+ $w.bar.edit.m add command -label Find \
+- -command "difffind :merge:$di:$fi $w.t"
++ -command [list difffind :merge:$di:$fi $w.t]
+ pack $w.bar.edit -side left
+ frame $w.f -relief sunk -border 2
+ entry $w.f.filename
+@@ -3533,7 +3533,7 @@
+ $w.bar.edit.m add command -label Copy -command "tk_textCopy $w.t"
+ $w.bar.edit.m add command -label Paste -command "tk_textPaste $w.t"
+ $w.bar.edit.m add command -label Find \
+- -command "difffind :mpatch:$fi $w.t"
++ -command [list difffind :mpatch:$fi $w.t]
+ pack $w.bar.edit -side left
+ frame $w.f -relief sunk -border 2
+ entry $w.f.filename
+@@ -3993,7 +3993,7 @@
+ $w.bar.edit.m add command -label Copy -command "tk_textCopy $w.t"
+ $w.bar.edit.m add command -label Paste -command "tk_textPaste $w.t"
+ $w.bar.edit.m add command -label Find \
+- -command "difffind :patch:$patchnum $w.t"
++ -command [list difffind :patch:$patchnum $w.t]
+ pack $w.bar.edit -side left
+ frame $w.f -relief sunk -border 2
+ label $w.f.l -text "Filename: "
+@@ -4032,23 +4032,23 @@
+ set p1 [joinname $d1 $f]
+ set p2 [joinname $d2 $f]
+ if {[file exists $p1] && [file exists $p2]} {
+- set fh [open "|diff $contextopt $p1 $p2" r]
++ set fh [open [list |diff $contextopt $p1 $p2] r]
+ } elseif {[file exists $p1] && ! [file exists $p2]} {
+- set fh [open "|diff $contextopt $p1 $nullfile" r]
++ set fh [open [list |diff $contextopt $p1 $nullfile] r]
+ } elseif {! [file exists $p1] && [file exists $p2]} {
+- set fh [open "|diff $contextopt $nullfile $p2" r]
++ set fh [open [list |diff $contextopt $nullfile $p2] r]
+ } else {
+ continue
+ }
+ fconfigure $fh -blocking 0
+- fileevent $fh readable "readpatch $fh $pnum $w $d1 $d2 $i \"$f\""
++ fileevent $fh readable [list readpatch $fh $pnum $w $d1 $d2 $i $f]
+ return
+ }
+ if {[string match ".*" $w]} {
+ $w.t delete "end - 1c" end
+ } else {
+ close $w
+- eval "exec $showprogram \"$patch_outfile\" &"
++ exec $showprogram $patch_outfile &
+ # Should we remove the tempfile here? We don't have it if we used
+ # the internal viewer
+ }
diff --git a/dev-util/dirdiff/files/dirdiff-2.1-include.patch b/dev-util/dirdiff/files/dirdiff-2.1-include.patch
new file mode 100644
index 000000000000..acaed3cf8026
--- /dev/null
+++ b/dev-util/dirdiff/files/dirdiff-2.1-include.patch
@@ -0,0 +1,10 @@
+--- a/filecmp.c 2005-04-19 12:22:01.000000000 +0200
++++ b/filecmp.c 2010-12-30 20:23:24.000000000 +0100
+@@ -11,6 +11,7 @@
+ #include <ctype.h>
+ #include <tcl.h>
+ #include <sys/fcntl.h>
++#include <unistd.h> /* close() read() */
+
+ #define BSIZE 32768
+ #define MAXTAGLEN 512 /* max tag length for sanity, < BSIZE */
diff --git a/dev-util/dirdiff/files/dirdiff-2.1-tcl8.6.patch b/dev-util/dirdiff/files/dirdiff-2.1-tcl8.6.patch
new file mode 100644
index 000000000000..39d930a51724
--- /dev/null
+++ b/dev-util/dirdiff/files/dirdiff-2.1-tcl8.6.patch
@@ -0,0 +1,16 @@
+ filecmp.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/filecmp.c b/filecmp.c
+index 673c1a8..fd4c6e5 100644
+--- a/filecmp.c
++++ b/filecmp.c
+@@ -341,7 +341,7 @@ FileCmpCmd(clientData, interp, argc, argv)
+ if (n1 < 0 || n2 < 0)
+ return TCL_ERROR;
+
+- sprintf(interp->result, "%d", same);
++ sprintf(Tcl_GetStringResult(interp), "%d", same);
+ return TCL_OK;
+ }
+
diff --git a/dev-util/dirdiff/files/dirdiff-2.1-vcs.patch b/dev-util/dirdiff/files/dirdiff-2.1-vcs.patch
new file mode 100644
index 000000000000..b8db24509eaa
--- /dev/null
+++ b/dev-util/dirdiff/files/dirdiff-2.1-vcs.patch
@@ -0,0 +1,16 @@
+ dirdiff | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/dirdiff b/dirdiff
+index c5522b6..f470348 100755
+--- a/dirdiff
++++ b/dirdiff
+@@ -37,7 +37,7 @@ set nxdirmode 0
+ set docvsignore 0
+
+ set defaultcvsignore {
+- RCS SCCS CVS CVS.adm RCSLOG cvslog.* tags TAGS
++ RCS SCCS CVS CVS.adm RCSLOG cvslog.* .svn .git tags TAGS
+ .make.state .nse_depinfo *~ \#* .\#* ,* _$* *$
+ *.old *.bak *.BAK *.orig *.rej .del-* *.a *.olb
+ *.o *.obj *.so *.exe *.Z *.elc *.ln core
diff --git a/dev-util/dirdiff/metadata.xml b/dev-util/dirdiff/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/dev-util/dirdiff/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/dev-util/dissembler/Manifest b/dev-util/dissembler/Manifest
new file mode 100644
index 000000000000..aaf77799dabd
--- /dev/null
+++ b/dev-util/dissembler/Manifest
@@ -0,0 +1,6 @@
+AUX dissembler-0.9-build.patch 392 SHA256 e91ae591dccf7c9e2e3c14221978c3f537e2da94913c182194600fdf12f6a99a SHA512 a0d66735d918d6e24b5c69b58d80bc16bf27ecbb5b05b3624903438f74761e43366c0f0b3a963354ef6284c6f77ec8442d07c3e792614b7e47b0e6000c0c2523 WHIRLPOOL af400575cb0d2095edee55534a689029a41d1ed25b60a80da69ca72b8c74cacf2e1c4df308317181fb1baad4a474f9a58e370f964f355a852660b5253a66560d
+DIST dissembler_0.9.tgz 4479 SHA256 fb2a38fe28ea6586bcead0acf918963f051c940af3ab35995ab9e27c6c2e198a SHA512 b6c7e4f42bb41be4320afd5d83abf6a0f1bbb58927931348e8a4ed9ee40ab756baa383ba4a405be5475ab669e5a38947422a4f6a0db16851eb8e6eb9f71f1332 WHIRLPOOL ba8c888450feb1894f3ebc23b08433be8b40d18fc71d7d82301b6d0d9d77c7ef3ba60727c6f3ad7e71152f65d062b6f17c3fb65e489587654168a7abffc72510
+EBUILD dissembler-0.9-r1.ebuild 600 SHA256 76731fb8a9b96e5efffc72a659dedf289888d59de8c8a6d060d42551ac7fe5e8 SHA512 528ff09f77da4647d744ab7ce906abdc3758c6e887acea44b322937391ab9d66e0af6678585fcf6e23ae28d61e39a374ad758038c19dc868ff02e4092db64b91 WHIRLPOOL 7aa61a45f9a7e2f189196efc4d7443572ee8638ccb1bcf81df5ec1acfcc69641baf0125d307a46e783513c4adeca99cbe4c45e1d599f68875f49820c31a4fd42
+MISC ChangeLog 3228 SHA256 0e0982890f0ba6236ad66e0d9ffaf810e7ba32d04d3352a9ce36e7f7e6a98c55 SHA512 5eccec493d749f65a25915eec86b7be454bb7179781ffee7f2453712297e84ffe68feb7ce0ba8dc21a2367430f194eb578a369c3cb540ff04c643e9015d6c4f4 WHIRLPOOL 8e5547db5949c7e93011d30f78208e625c24aa9ab1f53d9230637ee6dedd1c42bf3979e7ce199bab7cdb0fca97d193bb17f7eed12c01e9267ba045d9297ee616
+MISC ChangeLog-2015 815 SHA256 5f4df2b60ae444046a383b3fd822a23279eb39f822fc69a0794778b49398132c SHA512 e13a36fce856bd0d21cf10ba2d9f1fe9876cd6bba76b950d961a86f9418ef434472755d79a544a3f3800ddee5ad993ebb31c02186dc514e0395b6ca58002b8df WHIRLPOOL fcc3ba19a60f91e757f15d318d1e26afa2df94c9995ae38df922e41a451785e38a8c2d76a05e5fbfe40e7fe19e9101a3feb10df1cc00491d073d1f1f89e4eb54
+MISC metadata.xml 256 SHA256 d30e6c3b8417bdf0cf4cef8310cd1a81e600e643707e9c215a3e27db61c1d954 SHA512 eb8e446afc52f5f079733bdaf0db316e97194ba08e3b1370a287db29ea0bd7974bb237dfc67ff22a115538ec830b632b98390a8e59ace9634a89dfa9c02037b5 WHIRLPOOL 54aca0ae35c2e8ac1797106908b50f31eb7ab9783df8dc1749304b2f0ca553f8fcd109b5c689715e44b0c6b7a81fbb256686e80cf432688259ae38e8ed018c79
diff --git a/dev-util/dissembler/dissembler-0.9-r1.ebuild b/dev-util/dissembler/dissembler-0.9-r1.ebuild
new file mode 100644
index 000000000000..0635a8c2aace
--- /dev/null
+++ b/dev-util/dissembler/dissembler-0.9-r1.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit toolchain-funcs
+
+MY_P=${PN}_${PV}
+DESCRIPTION="polymorphs bytecode to a printable ASCII string"
+HOMEPAGE="http://www.securiteam.com/tools/5MP0L2KFPA.html"
+SRC_URI="https://repo.palkeo.com/repositories/mirror7.meh.or.id/Tools/OTHER_TOOLS/ShellCode/${MY_P}.tgz"
+
+LICENSE="ISC"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+
+S=${WORKDIR}/${MY_P}
+
+PATCHES=( "${FILESDIR}/${P}-build.patch" )
+
+src_compile() {
+ emake CC="$(tc-getCC)" ${PN}
+}
+
+src_install() {
+ dobin ${PN}
+ dodoc ${PN}.txt
+}
diff --git a/dev-util/dissembler/files/dissembler-0.9-build.patch b/dev-util/dissembler/files/dissembler-0.9-build.patch
new file mode 100644
index 000000000000..0271d6243452
--- /dev/null
+++ b/dev-util/dissembler/files/dissembler-0.9-build.patch
@@ -0,0 +1,21 @@
+--- a/dissembler.c
++++ b/dissembler.c
+@@ -16,6 +16,9 @@
+
+ /* FOR EDUCATIONAL PURPOSES ONLY */
+
++#define _GNU_SOURCE
++#include <string.h>
++#include <unistd.h>
+ #include <stdio.h>
+ #include <sys/stat.h>
+ #include <ctype.h>
+@@ -217,7 +217,7 @@ freedom:
+ fprintf(fh, "P");
+ }
+ fprintf(fh,"\n");
+- if(fh != stdout) close(fh);
++ if(fh != stdout) fclose(fh);
+ free(mem-21);
+ }
+
diff --git a/dev-util/dissembler/metadata.xml b/dev-util/dissembler/metadata.xml
new file mode 100644
index 000000000000..b4a27e94fc24
--- /dev/null
+++ b/dev-util/dissembler/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>bircoph@gentoo.org</email>
+ <name>Andrew Savchenko</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-util/distro-info-data/Manifest b/dev-util/distro-info-data/Manifest
new file mode 100644
index 000000000000..53a9b6954a91
--- /dev/null
+++ b/dev-util/distro-info-data/Manifest
@@ -0,0 +1,6 @@
+DIST distro-info-data_0.29.tar.xz 6004 SHA256 6a1f38e55cd5312c86801a6c1e705dfc36611a6889976067d90543427deea3f3 SHA512 1c06ce8e0fef12a499623a0c48147c9e99352946c9bdc89a810b413179cff0df43bcd87f839dc200277f3ef8498a34077987121093390551bcf2eb1822da9f2f WHIRLPOOL eef60038722593de58ad8358cf3563afaabd0514363854a4cd4118e2d1d492a40e55b31c98ce2da1f4fe1ff241a8f5a6b373f8492926d1defc6ec00b8973b031
+DIST distro-info-data_0.32.tar.xz 6216 SHA256 5824aa2855fa9ec340284f6f0dd9345415bb93a09cd566108bcc75089a7270d0 SHA512 3bbf79104c4b20d7ee02a83c4ea7852c65e7c7b2870d1f237df67d985fd2d52ea75292d80c5fc10af7ea69c89145f2e52670663b759f74a159e0f8c51ef545fd WHIRLPOOL 951886e9874d71d70fe78f72a851f9aab7e7467114620317e460592730a5ad06888df1ee925bd6569898546521e8316b951070459d24f7eccaaa4fbdcbec5bdb
+EBUILD distro-info-data-0.29.ebuild 429 SHA256 9c1039f72392c64617b6cd844d7b518554bb354f7247f24054b885dfc4d668aa SHA512 afcfea1a2a5bfdf74dc35205a191a3bc634223083243a56cbb3857132dd93aefa4d35e4ba8a5d641f3448dae18bef4262d8c71a721cee8bcc155458ed8db5793 WHIRLPOOL f93edaf6e44e5effa281f8a7103d60d4ce32ed6060f8fe708c6cc780d7dff5dc4f6480bc4b3797a2076d00d12962a880a102770b74b2bb4601500ffd45c69817
+EBUILD distro-info-data-0.32.ebuild 453 SHA256 35b84e7e6e83fb1b610b83a6a510251e385b9c3b324e608462dc72404011c87a SHA512 385aedcdaeab786b4ecb1532aff7624d94566b434e88e86401453c14264e7f0f3a316acf82af958b5bbf1cbc81d8fc2350a290375fede3863f4af8a8d51dd867 WHIRLPOOL e31023e8e1127eac6d9f1cf28a116b6aa7a57be4fb732d6694349cb820d0352a4e91ad509c0173da2218c2619b42ff2c4df73a16261a5f3b1e17504ba3863b54
+MISC ChangeLog 520 SHA256 c57ac2d9f7c16ac18ddece8f1e5ce92fe7e1367b0708fb1b39111a9dbf51df97 SHA512 6c6100686fb1cd2cf5cc077d38fa135c62da357d58e8e3d5047a3dd58878092f708e0148d2f5cb20df57c5a86a06ea972959e93b8c74124ad866c254b8c4e903 WHIRLPOOL 53bd11afc2851216c2eba433d523c2cdc02ec45e2580eb36e7d7dc7e53ae32e833728e922118cf2a93eb8df8a1e8ccd0e97370a4bd8124dd125f2a930cf57bd2
+MISC metadata.xml 367 SHA256 a6532d9789a502b07fbf191f834bc47f985cfdfbc958ceef56d2f8771015ef90 SHA512 3eb0be47e7eb6bfb6d8eecee66a25183da436c38272e226e7819c8748774f3aae620eab7227414cb862734d4baf8fa060290c1b2371233141abcffd7b489c7b8 WHIRLPOOL 50d7cf1180badf8d37fc470d42c4e0ea7bfed8d6b73e0c058b8f743f0fc8966e48fe6cfdbd2aa862ca76b0ef88cff0c20db679a0395934abc1cb97e7e99d6c71
diff --git a/dev-util/distro-info-data/distro-info-data-0.29.ebuild b/dev-util/distro-info-data/distro-info-data-0.29.ebuild
new file mode 100644
index 000000000000..b47f4ef5ba60
--- /dev/null
+++ b/dev-util/distro-info-data/distro-info-data-0.29.ebuild
@@ -0,0 +1,17 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Information about the Debian distributions' releases (data files)"
+HOMEPAGE="https://debian.org/"
+SRC_URI="mirror://debian/pool/main/d/${PN}/${PN}_${PV}.tar.xz"
+
+LICENSE="ISC"
+SLOT="0"
+
+KEYWORDS="amd64 x86"
+IUSE=""
+# Package provides only csv data and test script
+# written in python
+RESTRICT="test"
diff --git a/dev-util/distro-info-data/distro-info-data-0.32.ebuild b/dev-util/distro-info-data/distro-info-data-0.32.ebuild
new file mode 100644
index 000000000000..81be8e5f7e20
--- /dev/null
+++ b/dev-util/distro-info-data/distro-info-data-0.32.ebuild
@@ -0,0 +1,19 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Information about the Debian distributions' releases (data files)"
+HOMEPAGE="https://debian.org/"
+SRC_URI="mirror://debian/pool/main/d/${PN}/${PN}_${PV}.tar.xz"
+
+LICENSE="ISC"
+SLOT="0"
+
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+# Package provides only csv data and test script
+# written in python
+RESTRICT="test"
+
+S="${WORKDIR}/${PN}"
diff --git a/dev-util/distro-info-data/metadata.xml b/dev-util/distro-info-data/metadata.xml
new file mode 100644
index 000000000000..425c7b2eae49
--- /dev/null
+++ b/dev-util/distro-info-data/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>ykonotopov@gnome.org</email>
+ <name>Yuri Konotopov</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-util/distro-info/Manifest b/dev-util/distro-info/Manifest
new file mode 100644
index 000000000000..57ce5d24d849
--- /dev/null
+++ b/dev-util/distro-info/Manifest
@@ -0,0 +1,4 @@
+DIST distro-info_0.14.tar.xz 26460 SHA256 73b7912107157cdad96a52b10a050292c9bdb049c52fb3a70b6dbf21a4965204 SHA512 aa0055f21523e30fc7e9c94c92f87cbd05fc5d082ddc109d092e94dabafac7533ced984197797252eb698232b3d8f512b3c345ed6abef0ae074bf2770224955e WHIRLPOOL 166cc73ad6fecf35ef422a4ff842030f5769ecfa8a247aec199c1886c8b310aba8ce7b39da93aabc92a975673100def1b9d37ea6a822f8ecf47c66c3d062ca91
+EBUILD distro-info-0.14.ebuild 1918 SHA256 64a4c9b3675202d0fd4ec9732b8d1380ace41e8a54bcec220b75f25bbbbc77c1 SHA512 4326d6dec91095416d8c674e409111aed71449f41a9db75ab17561a31786573648b0433531589cf68fa9c058a71f2820f2dda2c833f8c3e215478cb99d4044b3 WHIRLPOOL 6addc08b0a37c73cc0808ad127add3e697edf792f67d4bc751b76e3b4cb1b5f0f361e5d7c0d2b05a8ceec6656e9f4b6bfd7b50db6987447fe1e7dbba2ae5ea46
+MISC ChangeLog 636 SHA256 c0326197eaaedaf2e9eada95bcec36d2df1a48ccfbc9d0a3e3c60927f1e9647f SHA512 48b0a615b9d64b344e5fa5697169a4754972ab93f6af1bd4a1e2135a87aafbaf6340d21ebc52c5b13402d9ef0949caf19eab394f0d1e2596f9f81f4739c15035 WHIRLPOOL e41b2c1862b9c23db442e3bd0f2ecd5e532988f5e3a18bc8d098299677b179a039b06d8b19f4a51b8f51b3a92ced7fdbcac3420cdd51450ac12c0c4676877557
+MISC metadata.xml 367 SHA256 a6532d9789a502b07fbf191f834bc47f985cfdfbc958ceef56d2f8771015ef90 SHA512 3eb0be47e7eb6bfb6d8eecee66a25183da436c38272e226e7819c8748774f3aae620eab7227414cb862734d4baf8fa060290c1b2371233141abcffd7b489c7b8 WHIRLPOOL 50d7cf1180badf8d37fc470d42c4e0ea7bfed8d6b73e0c058b8f743f0fc8966e48fe6cfdbd2aa862ca76b0ef88cff0c20db679a0395934abc1cb97e7e99d6c71
diff --git a/dev-util/distro-info/distro-info-0.14.ebuild b/dev-util/distro-info/distro-info-0.14.ebuild
new file mode 100644
index 000000000000..ebcfaf5ea72f
--- /dev/null
+++ b/dev-util/distro-info/distro-info-0.14.ebuild
@@ -0,0 +1,93 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_{4,5} )
+DISTUTILS_OPTIONAL=true
+
+inherit distutils-r1
+
+DESCRIPTION="Provides information about the Debian distributions' releases"
+HOMEPAGE="https://debian.org"
+SRC_URI="mirror://debian/pool/main/d/${PN}/${PN}_${PV}.tar.xz"
+
+LICENSE="ISC"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="python test"
+
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+CDEPEND="dev-lang/perl:=
+ python? ( ${PYTHON_DEPS} )"
+DEPEND="${CDEPEND}
+ python? ( dev-python/setuptools[${PYTHON_USEDEP}] )
+ test? (
+ dev-util/shunit2
+ dev-python/pylint[${PYTHON_USEDEP}]
+ )"
+RDEPEND="${CDEPEND}
+ dev-util/distro-info-data"
+
+src_prepare() {
+ default
+
+ # 1. Gentoo do not provides dpkg vendor information
+ # 2. Strip *FLAGS
+ # 3. Strip predefined CFLAGS
+ # 4. Point to correct perl's vendorlib
+ # 5. Remove python tests - python eclass will be used instead
+ sed -e "/cd python && python/d" \
+ -e "/VENDOR/d" \
+ -e "/dpkg-buildflags/d" \
+ -e "s/-g -O2//g" \
+ -e "s:\$(PREFIX)/share/perl5/Debian:\$(PERL_VENDORLIB)/Debian:g" \
+ -e "/pyversions/d" \
+ -i "${S}"/Makefile || die
+}
+
+src_configure() {
+ default
+
+ if use python; then
+ pushd ./python > /dev/null || die
+ distutils-r1_src_configure
+ popd > /dev/null || die
+ fi
+}
+
+src_compile() {
+ default
+
+ if use python; then
+ pushd ./python > /dev/null || die
+ distutils-r1_src_compile
+ popd > /dev/null || die
+ fi
+}
+
+src_install() {
+ emake PERL_VENDORLIB=$(perl -e 'require Config; print "$Config::Config{'vendorlib'}\n";') \
+ DESTDIR="${D}" install
+
+ if use python; then
+ pushd ./python > /dev/null || die
+ distutils-r1_src_install
+ popd > /dev/null || die
+ fi
+}
+
+src_test() {
+ TZ=UTC default
+
+ if use python; then
+ python_test() {
+ esetup.py test
+ }
+
+ pushd ./python > /dev/null || die
+ distutils-r1_src_test
+ popd > /dev/null || die
+ fi
+}
diff --git a/dev-util/distro-info/metadata.xml b/dev-util/distro-info/metadata.xml
new file mode 100644
index 000000000000..425c7b2eae49
--- /dev/null
+++ b/dev-util/distro-info/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>ykonotopov@gnome.org</email>
+ <name>Yuri Konotopov</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-util/dmake/Manifest b/dev-util/dmake/Manifest
new file mode 100644
index 000000000000..172335752dfe
--- /dev/null
+++ b/dev-util/dmake/Manifest
@@ -0,0 +1,5 @@
+DIST dmake-4.12.2.tar.bz2 461738 SHA256 2fcbf389a9baaec25a973bd0d9e338069ad427b17d2adc7dc023efb034e96057 SHA512 f09453205bd425882d933a7b2cf879d69d795765bb7586e1e35ca5c9e39444cb70cfe56ed9b350f12fae8d484670b4ae418bb5d2da7c0c2ff229d9165caff45b WHIRLPOOL d1d5f9f34302ba5d2b98e8016b27a46c0b0e67cc98e25867a6af4659c3b39ba1ae93d8d642d0cd5cc7a2a58cf7f1e9c01fc20079a41ba67ee65c929188a6b2e1
+EBUILD dmake-4.12.2.ebuild 718 SHA256 bca17c17cef9bb9e979108905d57f0844644f910968f6295eb11a5a9db9c0dab SHA512 9c66facdb6c01941c1938c286c47bdc30ec0cc378fc8050ad917ee45953add53a89c3bcf7213f1f71d6fbffbaaae86f4878a8b0989ea5d0e78b8422781a9a0d2 WHIRLPOOL 75f5569a19746c32afc4fe54906dacd6018395a115e5d4df0941387457fa24cbd5605c02268a0a9a2d7e005334cc996a02a9287964325abd4c024e3fc6ee8ad9
+MISC ChangeLog 2907 SHA256 75a1bff45a5dc997295895709909151297d41242368b985624b6fcbdd391b279 SHA512 74d84f468d589509727bdb9a225fe1e7958016082dee7b76161b9007f5839199855e9153470b2b5291a3cf547b2e0c944f794f3a67305c9cdfc0b0972f3c1d1d WHIRLPOOL dbccbbf2f57ddd18a6522a59378be4f62b6b91a5861f77aafa47acfcf61ce4fd234e2bea3c08236f44110d3021c15886e7a6601a2499c84d185876ebf5a1bd0a
+MISC ChangeLog-2015 4507 SHA256 634a25c37fba304d7b191a3c5e1bd91f8a16e9e7c29023e53c4065ea4aa249e7 SHA512 eb23fc9a23f9889eb886e20aa7512294fb74b059b986496a27ebe5e3c09a271ca20859664dffc18cb86547e07ddc214d4e76859a973f5c3d6764e0e22ab32978 WHIRLPOOL a95483fe3b2602181c62dfaef8d5579552af14066838e643521b8898be19b4c2d85fbeb47a746367eb64711a9788b28941b8dbbc2a9fd0b8158465fc111510dd
+MISC metadata.xml 344 SHA256 c71a9569c652a703b8dddf69e1fcad57cfc8cfd53dd61e1bda5cf25baff1ff2f SHA512 2870dddb5cf78fa4147f6b670fafd687a04cb77808bd78707c21f3e4d863d8ddfb99f36ccaa8f0b58595be9175100a1736d7ceed26c61001d9b17a1752151a9f WHIRLPOOL 5e932e725505147d2539a232d456ce48fb59fe5c2c26104f6d20a373bd40f40dfcb7f1f5ce4179fa575e23fe63387d2612927637c6da70d48db1340504ce901a
diff --git a/dev-util/dmake/dmake-4.12.2.ebuild b/dev-util/dmake/dmake-4.12.2.ebuild
new file mode 100644
index 000000000000..9029df2aefed
--- /dev/null
+++ b/dev-util/dmake/dmake-4.12.2.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit eutils
+
+DESCRIPTION="Improved make"
+HOMEPAGE="https://github.com/mohawk2/dmake"
+SRC_URI="http://${PN}.apache-extras.org.codespot.com/files/${P}.tar.bz2"
+
+LICENSE="GPL-1"
+SLOT="0"
+KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
+IUSE=""
+
+# test failure, reported upstream at
+# https://code.google.com/a/apache-extras.org/p/dmake/issues/detail?id=1
+RESTRICT="test"
+
+DEPEND="
+ app-arch/unzip
+ sys-apps/groff
+"
+RDEPEND=""
+
+src_prepare() {
+ # make tests executable, bug #404989
+ chmod +x tests/targets-{1..12} || die
+}
+
+src_install () {
+ default
+ newman man/dmake.tf dmake.1
+}
diff --git a/dev-util/dmake/metadata.xml b/dev-util/dmake/metadata.xml
new file mode 100644
index 000000000000..03752c4d0dab
--- /dev/null
+++ b/dev-util/dmake/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>chithanh@gentoo.org</email>
+ <name>Chí-Thanh Christopher Nguyễn</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">mohawk2/dmake</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/docker-distribution-pruner/Manifest b/dev-util/docker-distribution-pruner/Manifest
new file mode 100644
index 000000000000..277b54bd4698
--- /dev/null
+++ b/dev-util/docker-distribution-pruner/Manifest
@@ -0,0 +1,4 @@
+DIST docker-distribution-pruner-0_p20170401.tar.gz 6245783 SHA256 104b142b17b02b570b773717ee57fbb4350c37d274051e989cd88b8154d5d70a SHA512 8e2bf3c9be37f7b16299e1e7219d646e2b037ff40ba244bb2262905ab9864b212d7f96d844a096b057c6111440d66236f8ed5eb4a61e95f7a81bac3516f65cdd WHIRLPOOL 9c2fdb153f00ca812c4e570df970c3ed8c47629a334a3f8672f869a68488d88eb9a867b4e02e58d57f8c1031c549e641caf9ec8987a4936b5b66ffd24aa7e224
+DIST github.com-go-yaml-yaml-a3f3340b5840cee44f372bddb5880fcbc419b46a.tar.gz 60814 SHA256 0904953c06aa32c6691cec2390437f7d4d62c71f37d72f50d110a6577c87963b SHA512 184a0e658a4eac3b867533cd0e494bd84db94fbe10e8df0d0b755c7ffc95bc99e2f84c0157183ca74cdc79289a85dcf7f1dea8a4c89a253565baf473b3627eae WHIRLPOOL c9113048502f65a4036bbfbd4f072b27b41f68547e682d1e1496ae73c65c30b1470061d1f99d17e6b4a373e59e07568b460ad5396eb4b1f16079da077aa8382f
+EBUILD docker-distribution-pruner-0_p20170401.ebuild 870 SHA256 207ce472c0346f07f17e4db96f0aa1878ca511d068ab3dcfad0a44f0c64d7508 SHA512 238ed42112227b6b6429bacc4b4c09978c4dba8f495b137551d5a6244f7c4cda8e0ac8c64b002c02ab012b3c1889caffef4da5286144876b519d7d9290997a01 WHIRLPOOL d0aeeedb226149b15404104697af689da96eda0e17a4c0334cdc040a3a1e856f00d5ad0ca1f49f5ada9e004adb2d7b2db46cfd142dd80869146e16ea60676724
+MISC metadata.xml 245 SHA256 de7f40473008b56621adf62aa22bc34f849186d601cb64db9d302b7de431059b SHA512 d6a2af3d2f61e780acc1997e86dbe71f45cd241e1b11f2df5ec404d91a65354916d7516a2c30dc664cbd5f6be8693019706ba6820f23b72d6484040395d630cc WHIRLPOOL 73ec0429c1ab1e80c02bf557734de4644710be9686eb449eb0f18ecf7b569a2227e5500f97015b7c9aafde8e3e0c9b5523c7d0436acdb59f73f791e6e21a2d1e
diff --git a/dev-util/docker-distribution-pruner/docker-distribution-pruner-0_p20170401.ebuild b/dev-util/docker-distribution-pruner/docker-distribution-pruner-0_p20170401.ebuild
new file mode 100644
index 000000000000..3eafca49e433
--- /dev/null
+++ b/dev-util/docker-distribution-pruner/docker-distribution-pruner-0_p20170401.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+EGO_PN="gitlab.com/gitlab-org/${PN}/..."
+EGIT_COMMIT="207b308c12b1717c6e3d2adf5e1ffe504c64f56e"
+
+EGO_VENDOR=( "gopkg.in/yaml.v2 a3f3340b5840cee44f372bddb5880fcbc419b46a github.com/go-yaml/yaml" )
+
+inherit golang-build golang-vcs-snapshot
+
+ARCHIVE_URI="https://${EGO_PN%/*}/repository/archive.tar.gz?ref=${EGIT_COMMIT} -> ${P}.tar.gz"
+KEYWORDS="~amd64"
+
+DESCRIPTION="Clean all old container revisions from registry"
+HOMEPAGE="https://gitlab.com/gitlab-org/docker-distribution-pruner"
+SRC_URI="${ARCHIVE_URI}
+ ${EGO_VENDOR_URI}"
+LICENSE="MIT"
+SLOT="0"
+IUSE=""
+
+RESTRICT="test"
+
+src_compile() {
+ pushd src || die
+ GOPATH="${WORKDIR}/${P}" go install gitlab.com/gitlab-org/docker-distribution-pruner || die
+ popd || die
+}
+
+src_install() {
+ dobin bin/${PN}
+}
diff --git a/dev-util/docker-distribution-pruner/metadata.xml b/dev-util/docker-distribution-pruner/metadata.xml
new file mode 100644
index 000000000000..0ecfb76d568f
--- /dev/null
+++ b/dev-util/docker-distribution-pruner/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>mrueg@gentoo.org</email>
+ <name>Manuel Rüger</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-util/docker-ls/Manifest b/dev-util/docker-ls/Manifest
new file mode 100644
index 000000000000..9c903da7a7a9
--- /dev/null
+++ b/dev-util/docker-ls/Manifest
@@ -0,0 +1,5 @@
+DIST docker-ls-0.2.1_p20161102.tar.gz 20313 SHA256 57d33772857ad7a013719f6a73c79ee7744a2c93cfae33f3e6fb352be228f1ed SHA512 fd44fcb21db696e9565b8e4e84ef4aaeee7d1101fc0e1f2978a452cc8ec8016fce47508afe201b7096f06066b030eedd9d78c8d3408ca82d2e96431661857e3f WHIRLPOOL 2c6861dad8d63a44e6fe45317962cb9f2a730543eaea5728a1bcfdbaca9f666f5d162a97194ba0b6fafe92d2c07584777afa901210c90fecc0bc0f8acbc8c8c6
+DIST github.com-go-yaml-yaml-a3f3340b5840cee44f372bddb5880fcbc419b46a.tar.gz 60814 SHA256 0904953c06aa32c6691cec2390437f7d4d62c71f37d72f50d110a6577c87963b SHA512 184a0e658a4eac3b867533cd0e494bd84db94fbe10e8df0d0b755c7ffc95bc99e2f84c0157183ca74cdc79289a85dcf7f1dea8a4c89a253565baf473b3627eae WHIRLPOOL c9113048502f65a4036bbfbd4f072b27b41f68547e682d1e1496ae73c65c30b1470061d1f99d17e6b4a373e59e07568b460ad5396eb4b1f16079da077aa8382f
+DIST github.com-golang-crypto-728b753d0135da6801d45a38e6f43ff55779c5c2.tar.gz 1317212 SHA256 1a17e324c6e96bea0f55f9900405d9ddb296c3a2ab55ad5882e716160575016f SHA512 163ca4b00188133d5c4d82dd685deaf2b889ae76b97021697d96dd8f11675a57361352e204d774a6fb7941f45dc8027ddb324abf0a4799ed19c3052181536992 WHIRLPOOL 09f69af205a74f275ce21565e16594603d0a2a84e8e412fdf652360a1472503e05329035ba10f0757127a7f6f1ebcc307c656f44c074f96bec767f4f51f573e2
+EBUILD docker-ls-0.2.1_p20161102.ebuild 1170 SHA256 824ab100e287cb5b7d86f94c7904d2f367b29e4ab14c34c154ff519550958095 SHA512 2408f1dd3b151ca426d4d7471dbb3a27e9818d265b51bc88fb101a62dffd6a65d10701816117a93bdf8f3cca8b9f4d5a8bcce5efbd7cc8e99e02adc337b43a9b WHIRLPOOL cd097d7a2646ad8a9df26fd46ac41ad005c3034639c3100cd0a2fadcfbcff61e41b058dfcb2f2bd827339d91bfcc253032d5ba25df58c339014a8f7baa676134
+MISC metadata.xml 323 SHA256 194ad0f93e814bce6eb2dfbe67b97e6612fb6f72d9a3ce566c1ea0be0e32810a SHA512 bf430f00f6338c4790ca536314d722968a2325a46714212c122ac4ad56c401acc88bb593a19c4df4042d4477a9607c73af06e7d1d26fefbfaeeabbccbaeec14f WHIRLPOOL bdac9d4edaaf1c6f5e73732f17c0d1c4d787588ccec0daa3a54f9d24cd8e1576cd2b83b0280526a66559267f4d2decab1d55b6386799ab7416ae553869e5b188
diff --git a/dev-util/docker-ls/docker-ls-0.2.1_p20161102.ebuild b/dev-util/docker-ls/docker-ls-0.2.1_p20161102.ebuild
new file mode 100644
index 000000000000..127c5f1c57e2
--- /dev/null
+++ b/dev-util/docker-ls/docker-ls-0.2.1_p20161102.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+EGO_PN="github.com/mayflower/${PN}/..."
+EGIT_COMMIT="3c5e2decd5c6717d4f375a2588179758d62bb591"
+EGO_VENDOR=( "gopkg.in/yaml.v2 a3f3340b5840cee44f372bddb5880fcbc419b46a github.com/go-yaml/yaml"
+ "golang.org/x/crypto 728b753d0135da6801d45a38e6f43ff55779c5c2 github.com/golang/crypto" )
+
+inherit golang-build golang-vcs-snapshot
+
+ARCHIVE_URI="https://${EGO_PN%/*}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
+KEYWORDS="~amd64"
+
+DESCRIPTION="Tools for browsing and manipulating docker registries"
+HOMEPAGE="https://github.com/mayflower/docker-ls"
+SRC_URI="${ARCHIVE_URI}
+ ${EGO_VENDOR_URI}"
+LICENSE="MIT"
+SLOT="0"
+IUSE=""
+
+RESTRICT="test"
+
+src_prepare() {
+ default
+ sed -i -e "s/\"git\", \"rev-parse\", \"--short\", \"HEAD\"/\"echo\", \"${EGIT_COMMIT:0:8}\"/"\
+ src/${EGO_PN%/*}/generators/version.go || die
+}
+
+src_compile() {
+ pushd src || die
+ GOPATH="${WORKDIR}/${P}" go generate ${EGO_PN} || die
+ GOPATH="${WORKDIR}/${P}" go install ${EGO_PN%/*}/cli/... || die
+ popd || die
+}
+
+src_install() {
+ dobin bin/*
+ dodoc src/${EGO_PN%/*}/{README,CHANGELOG}.md
+}
diff --git a/dev-util/docker-ls/metadata.xml b/dev-util/docker-ls/metadata.xml
new file mode 100644
index 000000000000..1aca3044e224
--- /dev/null
+++ b/dev-util/docker-ls/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>mrueg@gentoo.org</email>
+ <name>Manuel Rüger</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">golang/crypto</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/dogtail/Manifest b/dev-util/dogtail/Manifest
new file mode 100644
index 000000000000..3c8389bf97c4
--- /dev/null
+++ b/dev-util/dogtail/Manifest
@@ -0,0 +1,10 @@
+AUX dogtail-0.9.10-gentoo-paths.patch 2705 SHA256 d0537a3a45ef9bf016e38ff62b5db114d1878dae8437742f5e6ac28376fed2c8 SHA512 ce792bf24713c8b2948874faa11ee53d341d4d1d25bba95cd11f9a31e2e76e813a20b0d9932268a2110c990de1fdf15382fa1867f02e31ea1d25349e48bb42c1 WHIRLPOOL 30893863b221faef0842f23dd04b23a77baf39b6edc5473b836687995f7d5ab4a11b84b077c9cce5162b9d8cf89641e157a435b3d7b650ae544abcd5e81ed07e
+AUX dogtail-0.9.9-gentoo-paths.patch 2465 SHA256 988ec5707f103083b1c71281cf8c21818703fa28e401976224e43b73409432bb SHA512 dbb5dd218959617b8481b59492bab26896d5ca150d74dcc3de30e747f5093618b492ba880ff1b0d08a765ba4d19c56f64abd4b43080e1149ff6a3b09ae18730a WHIRLPOOL 78698ed63eee9d997d7445815bcd675f4769fe757d9e4e4e4e5b5e0c4811221a35960e7e0a1ea7a4429db0e9fe91edc1f1a1972354d28ce35bef332d56da25e7
+AUX dogtail-0.9.9-get-user.patch 1295 SHA256 bea7e4bf42d8fde59c273e6e365c5d85fd3eede9442b1aff7096ff64c4eb0fc8 SHA512 fa7f75c37897cb2cfaccf1e21eb2efad77601d28e3c8d298c066199a8dcc695d872d792ab7f0c3e372bef227051c9b37ab8592a8896d03b82b4ca34bbf9a7579 WHIRLPOOL 35adb8d9756d3448c935df31190e8faf74bf4101b961b0f25d9f9dd4fd9c854c546c509c6f185c1925cd052e8338117eb7f3a5c5287a50fa06cc6f6488fc2a60
+DIST dogtail-0.9.10.tar.gz 125995 SHA256 ab84f9e691fea621a178d89e8cbd00830dd2bcbd945f48b91b122a445b645e93 SHA512 08ce4ad6e5e492ab04be9964cc6583d96d2d8a707a49721c1bca9248e5c56702fe5d0d84dd992023f731fe87016c88e21929319baff561aa113c6e101343fc3e WHIRLPOOL a3f973ad621ce79d57e460bc00591414ce804a0c61295982ab882ebf4f29f57cbe10d39b819b2c7cc4ddb2455109dfd1ee4ca5fed5c1c30222294f04e9345fa9
+DIST dogtail-0.9.9.tar.gz 123884 SHA256 5d94620bac19b23606d3ecb28e85628c5ceb505beb530af7023ce5bfb576bc5c SHA512 5283dea40b8193e7380aeebab6c7ad149c232ac3d7360df477bed0e623bacc79fc895694d2aff788dd5f986591c1460c447428d8c2acf25ba240946323eabef8 WHIRLPOOL 4d855893e9da54bca09260729f3dc551e973a47a0ef9db31507c071e0014bb70d809aebb50bb47355c9b536f499f912e6b75846a2fe98f3ed8a2a8df20f43a5f
+EBUILD dogtail-0.9.10.ebuild 1472 SHA256 a38d6657cb87c837d04cbde364a49be5263652ab280b8147cb13690929c17ff8 SHA512 10400c597e903c97582256234bd1f13873739bf72a00b3165966a0b21f0de9f9298eabc4c3037abf219fcbaf9f39d4280f640f2b0d4cd7f6ce965323962712d8 WHIRLPOOL 3c67e27aa506a41f4eae4f3b14c11b2694a6ad863a6e6f78a1978d4eb51bb4047f139113aee1b04c3a2351213d6368b87b116e474143ae8874236a864c2dd5aa
+EBUILD dogtail-0.9.9.ebuild 1578 SHA256 00531f4568ff80ef21433d948c2712a2684f34c1462a4741de426ff653b788fb SHA512 480675b19dcbaf61a4f77951e68d20deceec31252c9c6dbac1e8f51b3ed5a7649d5234fc1db3e1f0abc041da442560b4127399a9d78540e419e9f8bf05d139e3 WHIRLPOOL 11e843fdbbc2caf9ccbbb05655176737b320e1ecf1e5b77abd5e611a649912a22e28443009e25db1a93af18f9a6532df834b33344a345106400c213a53c1dbed
+MISC ChangeLog 3677 SHA256 c5020fad7f847f8bb7f23c03fb24bbaee56e110d96c18f5b713cc13794bbaf77 SHA512 bd51f994f1466486ff451641e45dd78a4f154258784a871f82c32b205f296d0f939100e346ac9bc58707953e3275d94f238f968f3bd2f33106704be781a79702 WHIRLPOOL 6bdbf64ab9a9bf5ef10ebc7092f6b8b3b67f960f0536ca40b602e75a4ee139579d1421280e46e6da9a807e469f57716ac6dfe090054bb938e58f5944fd74d56b
+MISC ChangeLog-2015 626 SHA256 23e597eedf6cdd9f4b4e2fd1368561acdd55dc1ff1ac49b4d284e39c1089b5d3 SHA512 ad725fe71ce9294bc6a9b89fcb4349e94a1f7f7509c25fc4f8955bbed54c883609cfe3f5788a4f2ae91eff294c339f80609ec885cdd22244fd2a257db7f5b33b WHIRLPOOL 79395c4d396bc403109cd26d1887d6440304e0d57f4be9766b1d2235e4cad112a5c8e66bc8c3c6bf4930565f66a3bc7ce292d45cdea6ce200c1ef54f6c9784dc
+MISC metadata.xml 253 SHA256 8f92439176f4cd2ba6a060c523c6b29ab210cd9aab7903b6db6eecc6654b1e21 SHA512 8d59f413993268ca783f7407b676900bb2d964754bf705d4175e2bafbe058a52af74f3928e4bd84d292518f8cf13fab7051486ab7cdc61d02fae6e0188d44442 WHIRLPOOL d5d853bd8a39a54c45728e16a1aa295e014e0a3a105a01ec6b3c93a4f53d7b7055644708301751b7f5be68543056d3f0bd611d5ce0be442eb5d06f5e032fe154
diff --git a/dev-util/dogtail/dogtail-0.9.10.ebuild b/dev-util/dogtail/dogtail-0.9.10.ebuild
new file mode 100644
index 000000000000..a02cbee7daad
--- /dev/null
+++ b/dev-util/dogtail/dogtail-0.9.10.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5} )
+
+inherit distutils-r1 gnome2-utils xdg
+
+DESCRIPTION="GUI test tool and automation framework using accessibility framework"
+HOMEPAGE="https://gitlab.com/dogtail/dogtail/commits/master"
+SRC_URI="https://gitlab.com/${PN}/${PN}/raw/released/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="
+ dev-libs/gobject-introspection
+ dev-python/pyatspi[${PYTHON_USEDEP}]
+ dev-python/pycairo[${PYTHON_USEDEP}]
+ dev-python/pygobject:3[${PYTHON_USEDEP}]
+ dev-python/pillow[${PYTHON_USEDEP}]
+ x11-libs/gdk-pixbuf:2[introspection]
+ x11-libs/gtk+:3[introspection]
+ x11-libs/libwnck:3[introspection]
+ x11-base/xorg-server[xvfb]
+ x11-apps/xinit
+"
+DEPEND="${DEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]
+"
+
+src_prepare() {
+ # Install docs in one place
+ sed "s:doc/${PN}:doc/${PF}:" -i setup.py || die
+
+ # Upstream loads resources relative to __file__, which doesn't work with
+ # gentoo's dev-lang/python-exec. So we need to add hard-coded paths.
+ eapply "${FILESDIR}"/${PN}-0.9.10-gentoo-paths.patch
+ sed -e "s:@EPREFIX_USR@:'${EPREFIX}/usr':" -i sniff/sniff || die "sed failed"
+
+ xdg_src_prepare
+ distutils-r1_src_prepare
+}
+
+pkg_preinst() {
+ xdg_pkg_preinst
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ xdg_pkg_postinst
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ xdg_pkg_postrm
+ gnome2_icon_cache_update
+}
diff --git a/dev-util/dogtail/dogtail-0.9.9.ebuild b/dev-util/dogtail/dogtail-0.9.9.ebuild
new file mode 100644
index 000000000000..4ec734068537
--- /dev/null
+++ b/dev-util/dogtail/dogtail-0.9.9.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5} )
+
+inherit eutils distutils-r1 gnome2-utils xdg
+
+DESCRIPTION="GUI test tool and automation framework using accessibility framework"
+HOMEPAGE="https://fedorahosted.org/dogtail/"
+SRC_URI="https://fedorahosted.org/released/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND="
+ dev-libs/gobject-introspection
+ dev-python/pyatspi[${PYTHON_USEDEP}]
+ dev-python/pycairo[${PYTHON_USEDEP}]
+ dev-python/pygobject:3[${PYTHON_USEDEP}]
+ dev-python/pillow[${PYTHON_USEDEP}]
+ x11-libs/gdk-pixbuf:2[introspection]
+ x11-libs/gtk+:3[introspection]
+ x11-libs/libwnck:3[introspection]
+ x11-base/xorg-server[xvfb]
+ x11-apps/xinit
+"
+DEPEND="${DEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]
+"
+
+src_prepare() {
+ # Install docs in one place
+ sed "s:doc/${PN}:doc/${PF}:" -i setup.py || die
+
+ # Fix current user detection, upstream bug #46
+ # Also, respect TMPDIR
+ epatch "${FILESDIR}"/${PN}-0.9.9-get-user.patch
+
+ # Upstream loads resources relative to __file__, which doesn't work with
+ # gentoo's dev-lang/python-exec. So we need to add hard-coded paths.
+ epatch "${FILESDIR}"/${PN}-0.9.9-gentoo-paths.patch
+ sed -e "s:@EPREFIX_USR@:'${EPREFIX}/usr':" -i sniff/sniff || die "sed failed"
+
+ xdg_src_prepare
+ distutils-r1_src_prepare
+}
+
+pkg_preinst() {
+ xdg_pkg_preinst
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ xdg_pkg_postinst
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ xdg_pkg_postrm
+ gnome2_icon_cache_update
+}
diff --git a/dev-util/dogtail/files/dogtail-0.9.10-gentoo-paths.patch b/dev-util/dogtail/files/dogtail-0.9.10-gentoo-paths.patch
new file mode 100644
index 000000000000..89d2be2c725a
--- /dev/null
+++ b/dev-util/dogtail/files/dogtail-0.9.10-gentoo-paths.patch
@@ -0,0 +1,67 @@
+From d0dd6c6adb4edcd5147c42af14cd1016a67e84bd Mon Sep 17 00:00:00 2001
+From: Gilles Dartiguelongue <eva@gentoo.org>
+Date: Sat, 12 Aug 2017 00:59:44 +0200
+Subject: [PATCH] Load resources from well-known location
+
+Using __file__ does not work with Gentoo's dev-python/python-exec
+wrapping. Better use hard-coded paths.
+
+Also adds support for prefix.
+---
+ sniff/sniff | 29 +++++++++--------------------
+ 1 file changed, 9 insertions(+), 20 deletions(-)
+
+diff --git a/sniff/sniff b/sniff/sniff
+index 7ce67c7..84f7022 100755
+--- a/sniff/sniff
++++ b/sniff/sniff
+@@ -47,25 +47,18 @@ class SniffApp(object):
+ if os.path.exists('sniff.ui'):
+ self.builder.add_from_file('sniff.ui')
+ else:
+- import os
+- path = os.path.abspath(
+- os.path.join(__file__, os.path.pardir, os.path.pardir))
+- if path == '/': # in case the path is /bin/sniff
+- path = '/usr'
+- self.builder.add_from_file(path + '/share/dogtail/glade/sniff.ui')
++ self.builder.add_from_file(os.path.join(
++ @EPREFIX_USR@,
++ 'share/dogtail/glade/sniff.ui')
++ )
+ self.app = self.builder.get_object(self.appName)
+ try:
+ self.app.set_icon_from_file('../icons/dogtail-head.svg')
+ except Exception:
+- import os
+- path = os.path.abspath(
+- os.path.join(__file__, os.path.pardir, os.path.pardir))
+- if path is '/':
+- path = '/usr'
+- try:
+- self.app.set_icon_from_file(os.path.join(path, 'share/icons/hicolor/scalable/apps/dogtail-head.svg'))
+- except Exception: # fallback for wierd installations, when sniff is neither in /bin or /usr/bin
+- self.app.set_icon_from_file('/usr/share/icons/hicolor/scalable/apps/dogtail-head.svg')
++ self.app.set_icon_from_file(os.path.join(
++ @EPREFIX_USR@,
++ 'share/icons/hicolor/scalable/apps/dogtail-head.svg')
++ )
+ self.setUpWidgets()
+ self.connectSignals()
+ self.app.show_all()
+@@ -656,11 +649,7 @@ def loadIcon(iconName):
+ pixbuf = GdkPixbuf.Pixbuf.new_from_file('icons/' + iconName)
+ except GObject.GError:
+ import os
+- path = os.path.abspath(
+- os.path.join(__file__, os.path.pardir, os.path.pardir))
+- if path == '/':
+- path = '/usr'
+- iconName = os.path.join(path, 'share/dogtail/icons/', iconName)
++ iconName = os.path.join(@EPREFIX_USR@, 'share/dogtail/icons/', iconName)
+ pixbuf = GdkPixbuf.Pixbuf.new_from_file(iconName)
+ return pixbuf
+
+--
+2.14.0
+
diff --git a/dev-util/dogtail/files/dogtail-0.9.9-gentoo-paths.patch b/dev-util/dogtail/files/dogtail-0.9.9-gentoo-paths.patch
new file mode 100644
index 000000000000..522249949228
--- /dev/null
+++ b/dev-util/dogtail/files/dogtail-0.9.9-gentoo-paths.patch
@@ -0,0 +1,64 @@
+From 069a17e22a73ecff686b650ba158a292cc508cb5 Mon Sep 17 00:00:00 2001
+From: Gilles Dartiguelongue <eva@gentoo.org>
+Date: Sat, 5 Mar 2016 19:38:08 +0100
+Subject: [PATCH] Load resources from well-known location
+
+Using __file__ does not work with Gentoo's dev-python/python-exec
+wrapping. Better use hard-coded paths.
+
+Also adds support for prefix.
+---
+ sniff/sniff | 26 +++++++++-----------------
+ 1 file changed, 9 insertions(+), 17 deletions(-)
+
+diff --git a/sniff/sniff b/sniff/sniff
+index a83a1c2..ff43f38 100755
+--- a/sniff/sniff
++++ b/sniff/sniff
+@@ -47,22 +47,18 @@ class SniffApp(object):
+ if os.path.exists('sniff.ui'):
+ self.builder.add_from_file('sniff.ui')
+ else:
+- import os
+- path = os.path.abspath(
+- os.path.join(__file__, os.path.pardir, os.path.pardir))
+- if path == '/': # in case the path is /bin/sniff
+- path = '/usr'
+- self.builder.add_from_file(path + '/share/dogtail/glade/sniff.ui')
++ self.builder.add_from_file(os.path.join(
++ @EPREFIX_USR@,
++ 'share/dogtail/glade/sniff.ui')
++ )
+ self.app = self.builder.get_object(self.appName)
+ try:
+ self.app.set_icon_from_file('../icons/dogtail-head.svg')
+ except Exception:
+- import os
+- path = os.path.abspath(
+- os.path.join(__file__, os.path.pardir, os.path.pardir))
+- if path is '/':
+- path = '/usr'
+- self.app.set_icon_from_file(os.path.join(path, 'share/icons/hicolor/scalable/apps/dogtail-head.svg'))
++ self.app.set_icon_from_file(os.path.join(
++ @EPREFIX_USR@,
++ 'share/icons/hicolor/scalable/apps/dogtail-head.svg')
++ )
+ self.setUpWidgets()
+ self.connectSignals()
+ self.app.show_all()
+@@ -650,11 +646,7 @@ def loadIcon(iconName):
+ pixbuf = GdkPixbuf.Pixbuf.new_from_file('icons/' + iconName)
+ except GObject.GError:
+ import os
+- path = os.path.abspath(
+- os.path.join(__file__, os.path.pardir, os.path.pardir))
+- if path == '/':
+- path = '/usr'
+- iconName = os.path.join(path, 'share/dogtail/icons/', iconName)
++ iconName = os.path.join(@EPREFIX_USR@, 'share/dogtail/icons/', iconName)
+ pixbuf = GdkPixbuf.Pixbuf.new_from_file(iconName)
+ return pixbuf
+
+--
+2.7.2
+
diff --git a/dev-util/dogtail/files/dogtail-0.9.9-get-user.patch b/dev-util/dogtail/files/dogtail-0.9.9-get-user.patch
new file mode 100644
index 000000000000..a3f7ef77230d
--- /dev/null
+++ b/dev-util/dogtail/files/dogtail-0.9.9-get-user.patch
@@ -0,0 +1,43 @@
+From 1ee93bf9d0d8a143f5faf9d1310d768d1de4ece4 Mon Sep 17 00:00:00 2001
+From: Gilles Dartiguelongue <eva@gentoo.org>
+Date: Sat, 5 Mar 2016 20:32:17 +0100
+Subject: [PATCH] Do not use USER as it can be unset.
+
+Use LOGNAME first as recommended by python documentation, then try alternatives.
+
+Also, use tempfile to respect environment variables changing tmpdir.
+
+Upstream: https://fedorahosted.org/dogtail/ticket/46
+Debian: http://bugs.debian.org/743500
+---
+ dogtail/config.py | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/dogtail/config.py b/dogtail/config.py
+index 80f08bf..1b6ac15 100644
+--- a/dogtail/config.py
++++ b/dogtail/config.py
+@@ -3,6 +3,8 @@ from __future__ import absolute_import, division, print_function, unicode_litera
+ import locale
+ import os
++import pwd
+ import sys
++import tempfile
+
+ """
+ The configuration module.
+@@ -12,7 +13,10 @@ __author__ = "Zack Cerza <zcerza@redhat.com>, David Malcolm <dmalcolm@redhat.com
+
+ def _userTmpDir(baseName):
+ # i.e. /tmp/dogtail-foo
+- return '-'.join(('/'.join(('/tmp', baseName)), os.environ['USER']))
++ return '-'.join((
++ '/'.join((tempfile.gettempdir(), baseName)),
++ os.getenv('LOGNAME', os.getenv('USER', pwd.getpwuid(os.getuid())[0]))
++ ))
+
+
+ class _Config(object):
+--
+2.7.2
+
diff --git a/dev-util/dogtail/metadata.xml b/dev-util/dogtail/metadata.xml
new file mode 100644
index 000000000000..996e7cacd217
--- /dev/null
+++ b/dev-util/dogtail/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="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-util/doxy-coverage/Manifest b/dev-util/doxy-coverage/Manifest
new file mode 100644
index 000000000000..c4b179e8dd69
--- /dev/null
+++ b/dev-util/doxy-coverage/Manifest
@@ -0,0 +1,3 @@
+DIST doxy-coverage-151229.tar.gz 3633 SHA256 ddfa4806f92f53ca7b9e5d9773aab7b61b2909e135d1bc40aab5eb4355e81180 SHA512 897c36adb6551ad177429d771b6eb7871a8b024d3cb5915d412b13f92cf8e52b87ba3237093345d51fa5dfbf80a800ab69907518b1a5570d1f056a2de43353fe WHIRLPOOL 76c97595eb4be3718999caae502b8777e13340be58680c79ee90dbab5c02736b4ceefbf67f16b8293ef2fbf732dfc7304481eca1b441ec23ca62da8bb55af8d1
+EBUILD doxy-coverage-151229.ebuild 614 SHA256 3de0115658a97548c89c6985ef7db713527bb6fcef727edbcbbcea8ad77bd4bc SHA512 c50c945b8b629374db86798cb4b3478c7853e2d76f77b623327aa06a67a99560a84a8c335b97e1ba0bc0f84cf34aaef22eddae39dcf3c7c50b67f83a35e8de08 WHIRLPOOL a336b6465252aa82272781f053c75fe9dea3259e76bc26dfe072304365437966c3ea159cc12de883c37399a4595fb2deefbcc2002527e7bb36da6860ab3bcc2b
+MISC metadata.xml 405 SHA256 ded7a7eff5d6f0d0cd7baf2b283a725c8da347b2c70b9759cef5c91acaf19a0e SHA512 770c698b430f7c7bd93f0dcdbcdb21128da96680825c72e00e7607e8b68e4d159e63bb3f752e168b94041e1e1257bbacaeef11ce0161ad7c1803b211e1ed1580 WHIRLPOOL 800f7cbae2c4cf102525fb48434cb9324a583ad671064218923d85ecb4cd7cd783a7d89e0887b8d99e080e0c9d2e4f9a138015deb7cda28aee9402f52550179d
diff --git a/dev-util/doxy-coverage/doxy-coverage-151229.ebuild b/dev-util/doxy-coverage/doxy-coverage-151229.ebuild
new file mode 100644
index 000000000000..7852bde09cfb
--- /dev/null
+++ b/dev-util/doxy-coverage/doxy-coverage-151229.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit python-r1 vcs-snapshot
+
+COMMIT="29a0bbf43bfecb6872cdca0e4a11733954d25196"
+DESCRIPTION="Source Code Documentation Coverage Measurement"
+HOMEPAGE="https://github.com/alobbs/doxy-coverage"
+SRC_URI="${HOMEPAGE}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE=""
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+DEPEND=""
+RDEPEND="${PYTHON_DEPS}"
+
+src_install() {
+ default
+ python_foreach_impl python_newexe "${PN}"{.py,}
+}
diff --git a/dev-util/doxy-coverage/metadata.xml b/dev-util/doxy-coverage/metadata.xml
new file mode 100644
index 000000000000..9e05095ffffb
--- /dev/null
+++ b/dev-util/doxy-coverage/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>junghans@gentoo.org</email>
+ <name>Christoph Junghans</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">lobbs/doxy-coverage</remote-id>
+ <bugs-to>https://github.com/alobbs/doxy-coverage/issues</bugs-to>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/dput-ng/Manifest b/dev-util/dput-ng/Manifest
new file mode 100644
index 000000000000..1c3f255c4b94
--- /dev/null
+++ b/dev-util/dput-ng/Manifest
@@ -0,0 +1,4 @@
+DIST dput-ng_1.10.tar.xz 82608 SHA256 20c879b47cf35adc7aa52ed0e0bc790b7ae4c29aa8e8cb9fbcc73c1467579f7a SHA512 4a883350e7a0b47c121b752d1e0ab1470924319ef895f55742fc4d8f8a0cb3a0ab4ae18d54495ebc9229b0cbf18fa375848fcdcd2431ee1f66bff6433b9a3b08 WHIRLPOOL 153eb6314926272fac45fb15054232e6ab74f8464a336893dff6555d610e7a0d1b004b3f27c6361ff91ef6f0885de51695fd07a2c2764434c0549f876e742f6d
+EBUILD dput-ng-1.10.ebuild 1715 SHA256 479ab3136af639493facbced5a34e7c9b57090b208038a5d45e4297c8b6cdfb9 SHA512 77c5f94d12b1f7c61d214ef6630e8ea226fdf6cf6b1a0c94fd9b2c9d8205269881722ef85b3a00083e74d85fc9c9e5f9bf8c98c6dd1e3299ed9762f5e1050626 WHIRLPOOL d202d33b80799554f6a5fbba5b972732600eb2e84f6588f9bc3bdc057a09608e9b7d9b9d9617d1c538a26e49a8ae1d90388b56263524cb365f9ec369e3e9c692
+MISC ChangeLog 979 SHA256 4f505c7890ea1117144a8f6c23fd1a14a3194df89af5d14669fe9c6879d2a579 SHA512 776d532a335f6940215ae96bb220458145e8d21eae987dbbce38b46706119b44e0a2317e8fa6b79e3d73d706b214ecb6b37d0040b9067d9c38542b5d3ab1dafa WHIRLPOOL 4d7a4f4ec2fc45c13f14ff44117afb521f31aa499c3ab2a7a2961e1ce92858d34e0d8314652a15a60ba96935ff029d8342d9892511c30086082da6615f120d47
+MISC metadata.xml 367 SHA256 a6532d9789a502b07fbf191f834bc47f985cfdfbc958ceef56d2f8771015ef90 SHA512 3eb0be47e7eb6bfb6d8eecee66a25183da436c38272e226e7819c8748774f3aae620eab7227414cb862734d4baf8fa060290c1b2371233141abcffd7b489c7b8 WHIRLPOOL 50d7cf1180badf8d37fc470d42c4e0ea7bfed8d6b73e0c058b8f743f0fc8966e48fe6cfdbd2aa862ca76b0ef88cff0c20db679a0395934abc1cb97e7e99d6c71
diff --git a/dev-util/dput-ng/dput-ng-1.10.ebuild b/dev-util/dput-ng/dput-ng-1.10.ebuild
new file mode 100644
index 000000000000..2192829fcc8c
--- /dev/null
+++ b/dev-util/dput-ng/dput-ng-1.10.ebuild
@@ -0,0 +1,84 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+DISTUTILS_SINGLE_IMPL=1
+
+inherit bash-completion-r1 distutils-r1
+
+DESCRIPTION="Next generation Debian package upload tool"
+HOMEPAGE="https://people.debian.org/~paultag/dput-ng/"
+SRC_URI="mirror://debian/pool/main/d/${PN}/${PN}_${PV}.tar.xz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="test"
+
+RDEPEND="
+ dev-python/python-debian[${PYTHON_USEDEP}]
+ dev-python/paramiko[${PYTHON_USEDEP}]
+ dev-util/distro-info[python,${PYTHON_USEDEP}]
+"
+DEPEND="${RDEPEND}
+ app-text/asciidoc
+ test? (
+ dev-python/nose[${PYTHON_USEDEP}]
+ dev-python/python-debian[${PYTHON_USEDEP}]
+ )"
+
+RESTRICT="test"
+
+S="${WORKDIR}/${PN/-/}"
+
+src_compile() {
+ distutils-r1_src_compile
+
+ mkdir man || die
+ for file in docs/man/*.man; do
+ a2x --doctype manpage --format manpage -D man \
+ "${file}" || die
+ done
+}
+
+src_install() {
+ local DPUT_BINARIES=( dcut dirt dput )
+ local DPUT_ETC=( metas profiles )
+ local DPUT_SHARE=(
+ codenames
+ commands
+ hooks
+ interfaces
+ schemas
+ uploaders
+ )
+
+ distutils-r1_src_install
+
+ for binary in ${DPUT_BINARIES[@]}; do
+ dobin bin/"${binary}"
+ done
+ python_fix_shebang "${D}"/usr/bin
+
+ insinto /etc/dput.d
+ for dir in ${DPUT_ETC[@]}; do
+ doins -r skel/"${dir}"
+ done
+
+ insinto /usr/share/"${PN}"
+ for dir in ${DPUT_SHARE[@]}; do
+ doins -r skel/"${dir}"
+ done
+
+ # doman incorrectly treats "cf" in dput.cf.5 as a lang code
+ doman -i18n="" man/*
+
+ newbashcomp debian/"${PN}".bash-completion dput
+}
+
+python_test() {
+ # test_configs.py failing
+ # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=824652
+ nosetests || die "Tests failed under ${EPYTHON}"
+}
diff --git a/dev-util/dput-ng/metadata.xml b/dev-util/dput-ng/metadata.xml
new file mode 100644
index 000000000000..425c7b2eae49
--- /dev/null
+++ b/dev-util/dput-ng/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>ykonotopov@gnome.org</email>
+ <name>Yuri Konotopov</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-util/drone-cli/Manifest b/dev-util/drone-cli/Manifest
new file mode 100644
index 000000000000..3f3ea69958c2
--- /dev/null
+++ b/dev-util/drone-cli/Manifest
@@ -0,0 +1,5 @@
+DIST drone-cli-0.7.0_p20170717.tar.gz 1148862 SHA256 f94abfa825a0f0ad51956587684517910176fb7db2afdbb65fe32add12221f1a SHA512 f901b9409354c9dc3bf21024f82a188e789c8ab05e8bca179cc77069baf024f40ce13995230f48d5c40e7485ab31bb3f22fae0ca68a8669295cdfb11dbb1b168 WHIRLPOOL 73d6edfe770f95eb514d193766c41c4e704bef59070140ad30784a44b547a7f7adda95e2fc29f07b94becb0af9d6a05d803a82735769f926ef3655a3a0f0270d
+DIST drone-cli-0.8.0.tar.gz 1149494 SHA256 20e1435c2b15927b4eaefcfec920a559d95c324bf593f7de75d79e8fce5541de SHA512 5dc9a9910a76e31f0f9f845e1d59a0dc8371463de295f35090efdc16230b1458cc2d2f8632e91c46d18efb0c154874c65388cf6a37cca72b72f08d56b61cae72 WHIRLPOOL 81eb6ae8d7b4a4d111e92fef00bb0338420c3c6cd3a584a88170df292ce62c2bdfb2502cf03b6ba14c4ab00aa134411f48283c1942e0f92e996d517ca97728fc
+EBUILD drone-cli-0.7.0_p20170717.ebuild 784 SHA256 cdf210299a612145ef5b49ff9970ec95d22b91a80ce08d852bc120506305afc5 SHA512 e0b0fe272d3fa48d84b346a6114e98b477f7d6785e9d214d70202e15c84a92bf80ea3af1ad98ff08e90121d18d3a39c4b7f97665db8d03736d8100a53eb49558 WHIRLPOOL 2d270e2e9480d65f90063f95ebd919772267cd0d67d3fa44cd27ad44f07455588aafd3b207324166752c57463cf4c3bf2da371698475af9d6021bb2063d05ca7
+EBUILD drone-cli-0.8.0.ebuild 784 SHA256 de9ec5b6b8c3781c459329433183f336506ad40b6d85706b1300f942288df6e3 SHA512 3dcf6b16268b39b395db9e1b0164e74847ce411862de4f789a2d2c48a5844b39c54696df2306aaa868212d51e0024fc70dac1d90cfc1b69b1f9835ba57547ffd WHIRLPOOL 02430ad5094ea5c5cbc6b7ace59e0134a15441f743c4d842ba92ff328f36e3f754e84c77f141a629f75a42fc3b573c86dd2fc339b3bb27d3caf4a1d1e08c7258
+MISC metadata.xml 325 SHA256 8c3b989a000f55c50a85678c67ccd3239bc0c624dbe6f56bde864fbaba50576d SHA512 b4c00a840f5fed22888fb462dc5131e710a5065a1801eb0dfefe1979012d4ad9beff279bc2ecb98f2c0595e1b1d1d020830c123ad0be3a31cc3c7753242823fc WHIRLPOOL 6bf3c5b9caa0d4531d92b563c1a30ae04943746d319de067975ff4b59b61d544c4c658c89ec2897f7faf6f60dc7c499e6e94ddada897a85e7def764f8165a3e4
diff --git a/dev-util/drone-cli/drone-cli-0.7.0_p20170717.ebuild b/dev-util/drone-cli/drone-cli-0.7.0_p20170717.ebuild
new file mode 100644
index 000000000000..9133bfec3093
--- /dev/null
+++ b/dev-util/drone-cli/drone-cli-0.7.0_p20170717.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+EGO_PN="github.com/drone/drone-cli"
+EGIT_COMMIT="4a5e8a2acb2c82c5a4e6b96b6849f59962dfb668"
+
+inherit golang-build golang-vcs-snapshot
+
+ARCHIVE_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
+KEYWORDS="~amd64"
+
+DESCRIPTION="Command-line interface for Drone"
+HOMEPAGE="https://github.com/drone/drone-cli"
+SRC_URI="${ARCHIVE_URI}"
+LICENSE="Apache-2.0"
+SLOT="0"
+IUSE=""
+
+RESTRICT="test"
+
+RDEPEND="!!<dev-util/drone-0.7"
+
+src_compile() {
+ pushd src || die
+ GOPATH="${WORKDIR}/${P}"\
+ go install -ldflags "-X main.version=${PV}.${EGIT_COMMIT:0:7}" ${EGO_PN}/drone || die
+ popd || die
+}
+
+src_install() {
+ dobin bin/drone
+ dodoc src/${EGO_PN}/README.md
+}
diff --git a/dev-util/drone-cli/drone-cli-0.8.0.ebuild b/dev-util/drone-cli/drone-cli-0.8.0.ebuild
new file mode 100644
index 000000000000..2a1ec2b92731
--- /dev/null
+++ b/dev-util/drone-cli/drone-cli-0.8.0.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+EGO_PN="github.com/drone/drone-cli"
+EGIT_COMMIT="d7b19e6f6f581880352f232ba3453e0b769a9dca"
+
+inherit golang-build golang-vcs-snapshot
+
+ARCHIVE_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
+KEYWORDS="~amd64"
+
+DESCRIPTION="Command-line interface for Drone"
+HOMEPAGE="https://github.com/drone/drone-cli"
+SRC_URI="${ARCHIVE_URI}"
+LICENSE="Apache-2.0"
+SLOT="0"
+IUSE=""
+
+RESTRICT="test"
+
+RDEPEND="!!<dev-util/drone-0.7"
+
+src_compile() {
+ pushd src || die
+ GOPATH="${WORKDIR}/${P}"\
+ go install -ldflags "-X main.version=${PV}.${EGIT_COMMIT:0:7}" ${EGO_PN}/drone || die
+ popd || die
+}
+
+src_install() {
+ dobin bin/drone
+ dodoc src/${EGO_PN}/README.md
+}
diff --git a/dev-util/drone-cli/metadata.xml b/dev-util/drone-cli/metadata.xml
new file mode 100644
index 000000000000..0795718a1cc2
--- /dev/null
+++ b/dev-util/drone-cli/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>mrueg@gentoo.org</email>
+ <name>Manuel Rüger</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">drone/drone-cli</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/drone-ui/Manifest b/dev-util/drone-ui/Manifest
new file mode 100644
index 000000000000..00ca91e2c90a
--- /dev/null
+++ b/dev-util/drone-ui/Manifest
@@ -0,0 +1,4 @@
+DIST drone-ui-0.6.0_rc1_pre20170412.tar.gz 167017 SHA256 3b1623182c40ba4bee871054bf674bfbffaa97d29565ae8b8b71195e62da2270 SHA512 5c3bcf5e465af08e233456a8412cb0f42fbc452ecf08838e64077a65e67bca475f028262568be473ecd29b3f16b974fa0bd44f34dcf7ca3d547b76a8ade4d11e WHIRLPOOL 7f1e6d6b416e834541e1d6c21cb46f4a6b96dfcd92b8de097f57defbe9c28918506a8ee3f494c980f5e8bbac0c16f63e49918977f00a27f35c6974c4250b5e87
+EBUILD drone-ui-0.6.0_rc1_pre20170412.ebuild 601 SHA256 2b2f733f77528121390ac44a08e9af091047db713db19e0b6fb2f1587b495576 SHA512 17e95d4c7817cbdb6aaf5fa802f72fc63f970ff8839fbc11f76b833fd425b67d2025a1d51090810c81fb845798e2e2d091d86d5706b9b0ee084a615b45a0e16a WHIRLPOOL 6f0d8dc964eb9fbc4c1e014d656c960bcdbb6929cc74f9674b11c0fe9a8786df8f44cd50719d6f78f6138b3ae539b837ca606772c67261600375963c300c3855
+MISC ChangeLog 326 SHA256 007240eb732835905cb89a1ec0066a346a0f4e0a131ee0a1b183ac9f0a537e91 SHA512 593c16f83276afaf5a1caf65254d49659066dbe4e49ee07195418ce128035d9a0e88ea40e4745d312a76ada2be415def87284e03d69d21a3f92a940c5e07c513 WHIRLPOOL db64bc8d48e313b52d17f9fc65238033a5eae529d95c68944d4f76e448343e0a9b02e3ee49a04b4bc17c243042e3cb78c4e85d6451f722962427dd5ffa5f28b3
+MISC metadata.xml 324 SHA256 156a19252f83af066aec74aab16e3dcc3a01750b484f17c4825c0260a736cb57 SHA512 370cc3b1aec7cab563be340dd52a90257bb54ba07ee7862903b2a0e6d3f5259e5aa75423311bdac8eba8e745e21aacdb043c490279499f3d5a8ee1f39006a444 WHIRLPOOL 8c7e1db52b8aa58fc8d713bc756d936115b72adbc97e8ccfba8e3ef0528476966664ef43568ecd17e403b0c25801b934aa3466fc2cb701a450af65d7b8eaaf5a
diff --git a/dev-util/drone-ui/drone-ui-0.6.0_rc1_pre20170412.ebuild b/dev-util/drone-ui/drone-ui-0.6.0_rc1_pre20170412.ebuild
new file mode 100644
index 000000000000..2d3e50726f26
--- /dev/null
+++ b/dev-util/drone-ui/drone-ui-0.6.0_rc1_pre20170412.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit golang-build golang-vcs-snapshot
+
+EGO_PN="github.com/drone/drone-ui/..."
+COMMIT="d8426a1658a71c0dd0c7a0aa6f5cc072e3328f9e"
+ARCHIVE_URI="https://${EGO_PN%/*}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
+KEYWORDS="~amd64"
+
+DESCRIPTION="React front-end for the Drone continuous integration server"
+HOMEPAGE="https://github.com/drone/drone-ui"
+SRC_URI="${ARCHIVE_URI}"
+LICENSE="Apache-2.0"
+SLOT="0/${PVR}"
+IUSE=""
+
+DEPEND="dev-go/go-bindata
+ dev-go/go-bindata-assetfs"
+
+RESTRICT="test"
diff --git a/dev-util/drone-ui/metadata.xml b/dev-util/drone-ui/metadata.xml
new file mode 100644
index 000000000000..88c67c6cfb31
--- /dev/null
+++ b/dev-util/drone-ui/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>mrueg@gentoo.org</email>
+ <name>Manuel Rüger</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">drone/drone-ui</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/drone/Manifest b/dev-util/drone/Manifest
new file mode 100644
index 000000000000..1c6268d5d918
--- /dev/null
+++ b/dev-util/drone/Manifest
@@ -0,0 +1,20 @@
+AUX drone-agent.confd 390 SHA256 a7dcf4e2f36685e2742e6a9346253dc1765c2c07730f19b998ef20d8103d5817 SHA512 98577854ac5c3a2b94d065acafe11efb17ac519c71768428b391d14054c875dab3c0153c944c58a52fcb28f96b30f7ea8b0736b2f9858c9e0f20f39b6909220e WHIRLPOOL c4ab646492577e2ebc4fb65d487864ba1bfd3678897bfcade9e86aab218507e0908aaf67e4739c7b1a98e8ff72881332f1992e446d6aa5b7cb064b212bf21327
+AUX drone-agent.initd 440 SHA256 d7da8e25702f271fc4dbfbe41851afc3b54c9d0275464e66cb37f7235e7be85b SHA512 ad1571951a4d75e0a9e69da20958a70ef6558d2e15d4dc625d4004c28036643d1ec1756ccb4404860b385cb54ece2fd8d14b7a457d3696d8e7d3fbf0b1082a91 WHIRLPOOL 313be3223a322620a85998f53f07ea3d8b471ba8120cc7692f58b9be4531f13a5c294c8807c00b0d274a075c9e2c84f7ce37eb0e442667bdd190f5687a1502a0
+AUX drone-server.confd 1238 SHA256 0ac4e2377b03896754efcb60b5a77fc9fc936dfb0c506d550a0d3bb90c6d2203 SHA512 bbe3944eca8d82afd3161f53d9359422b2fb8985e69facd781a81f1c55ec647e8647f0fffc284375dc091b15ab5d665669cd6a2818ff62f4afe255e0a22a21cc WHIRLPOOL da0bbf2a18aa0df0320f731e0781f2a523d98ef40ed49ce115ad916b562bb0cbb0815b3f3375cce7dfd9b676389e07d9e92c13b63858b4b42c8594f6045e990d
+AUX drone-server.initd 455 SHA256 43de175f810ae57cd91358e8e4eaa5324dc7cbed36e33650ee18ca67a947bc1d SHA512 969a7a1947c791bb8788b1fa4d36df1ead66c1312c8f4188970178ef7cbca3b9a108bce955a012285330155be15eb270a1675aee7d317c2cff4cb4554d461a38 WHIRLPOOL 47f65339596118e2d19f59b558c0e59ab5385ed95788b35d1b0cd45f9a0672b3e11c345fee8d2a47f2148f6011888da31687ee4da48864a74645e7c38f764194
+AUX drone.confd 1238 SHA256 0ac4e2377b03896754efcb60b5a77fc9fc936dfb0c506d550a0d3bb90c6d2203 SHA512 bbe3944eca8d82afd3161f53d9359422b2fb8985e69facd781a81f1c55ec647e8647f0fffc284375dc091b15ab5d665669cd6a2818ff62f4afe255e0a22a21cc WHIRLPOOL da0bbf2a18aa0df0320f731e0781f2a523d98ef40ed49ce115ad916b562bb0cbb0815b3f3375cce7dfd9b676389e07d9e92c13b63858b4b42c8594f6045e990d
+AUX drone.initd 472 SHA256 3a34f4e55c564c55dc0ec5aaaf6540eea778e0bf08a9d80df23f06b6975d9691 SHA512 54b4ef6943a018c0d194658c267bda50c51b2594aaab1d25350d512e50ec5136eb5bc6249f22d1b3e055574848bd50025a6158b1e02bd89da8213611ac41a16d WHIRLPOOL 8bbd8a43793126a3f7dc7a87bc7a1907fdd7b2768faea73e881fa96ba930de872740ca861c942fefdf3b03970518329ff91d2ad735d477718ee34508f5ac76ba
+DIST drone-0.7.3.tar.gz 4133041 SHA256 997ce994fb852ffc0c98f20ba17d9ff458b396019207e923cd5863ec7599211e SHA512 4c85e964f43ce3076996cd1cbcfc3675d74b254278d046d1e7d4b7f04ee5fcc55a6de04947c3f8102be474e0ef3fbd5d0006ac2b39aae04fe2bc6b466b513c66 WHIRLPOOL 18cfc24df5735b11f767b0ec323f591e44b08192abb05eff3984ef6bd8ce3df548924fb69b9543cb3c92c3b26f3bddfdfd105ec4014ebe2bd5c2b420c7fe6c2f
+DIST drone-0.8.0.tar.gz 4755986 SHA256 1d0c375308a444fa0f0f92c1fda2e1cd7fabf1683b5d77a418076844520bfc84 SHA512 f6a383df0718e7db7c35b518b248af001aeca5fc836f12d1f363a6897ea278d72e54d16f72fa9887aecdc162e0cb7fa5572215e0069f4dcacc0be4e1132a58d7 WHIRLPOOL 9a76227a2e0eb6a60ed989c62909131a30636e70074e230a95c20747cba6a752ebf430ca59391b2d9f72022f55fd60fe8dea732ab7c43d4f87533a5502b20064
+DIST drone-0.8.1.tar.gz 4756298 SHA256 08212cb57ab5dee58497219003dbf57cb8bc35ff441acdc5a8960dd42e9f9df0 SHA512 b34e606c1aae02e274ef41cdf4bfc1e584b3a1020b211d9d869f7905caa5f9a8514d694a1f51c4cef5431c228451763a50dc610b31b311f08e0e955f02737751 WHIRLPOOL 3877d43a34a0a9446e1f1dcd3a880c76cee3baaedda5149734b9fab90e07b584d6bf012883f954339e6a83d1a0212b671caccaeeddbecba05d9051ece7fee890
+DIST github.com-drone-drone-ui-2910d0ee662816a2463d31f0988b1ecccd0410b5.tar.gz 167172 SHA256 5817bfb4fe7546a492d840f7a42a0dc6ede1eeacfc735024276bb90fb1522b5d SHA512 d4c6fbeba9ae5c55533a76fdcf6c251516aa4f8c650f49add7e9392d22a131438bd829670df801495d361417ec12cce07e9d9c28aacd1ce1adc0024408cf3cca WHIRLPOOL f941daae3f12c96fd439680c5ca81ccbe3aea2b76b1e250ef009a0fe7883514909113b6c9ab923bcb05a5950dec9b57bd849bedb8767225f6eece583f4fe63de
+DIST github.com-drone-drone-ui-5a497bd6cd5c3c17c53b00d40bcda1bf6f68f475.tar.gz 229479 SHA256 706b974674b70cb5c16ee1258c8a01535cc151940aab88c356a00549d1b150fa SHA512 38c59fc48f06805a2e69036b7184c7385ab51671f0a2538d779d15c9bc22f03cb091d971265b2522b755db955b326447cf041aa5f76792e0ab0b43c654f82fb7 WHIRLPOOL d863d94a58c9bb8622f1bbcfe2ee182f7f80160f4e8ce40c84390a13c39e953492a357a07d798c7b758fc5b856f1002d30e7eb8812427110a529df59aca0d510
+DIST github.com-drone-drone-ui-87c64622eae0ea8d515fa6d551841d4b699bf7f1.tar.gz 229472 SHA256 afd19b2f5b90d79b20fe16a0d66085072b4d9f5ebae4acae766ba7561d1c450a SHA512 14982e52113293e80e183523be4b84a2594c19b5c47e26e09360ac81dcc5eed0205d107beec1d3b2f3d6be36f8c1b782bc487c8b897d288cf8a74852b28fb08b WHIRLPOOL f10af4ac5a8fdf392f81f2c1008527736875d2753d17c2f7e17dc4f3915c144aa9b12ad3f00aa2c0842fc439b7b10be251a26855e1fbc94bed73132505d15ae0
+DIST github.com-golang-net-0744d001aa8470aaa53df28d32e5ceeb8af9bd70.tar.gz 920361 SHA256 03f6f00d1142924dfee5abd67e6a39801a1da5c9f372a122aaaaf3c65de58a39 SHA512 d308b4f872612287c29b815b6ac0c4c3efbda4c641940ed8553851b1e93c6654bf443367b5ec96166d68fc2759d7e90e46fd6f148f0a6d535bf057bb785627d7 WHIRLPOOL 3d058a51d06992f8c07640f2ff6e69c5a0c468251420857b26da30fb6dc9b15f169321a7a4a29849aa6f346122339a0758875d6afd31d8d85a0cf3be8bb481f2
+DIST github.com-golang-net-0a9397675ba34b2845f758fe3cd68828369c6517.tar.gz 922889 SHA256 46e2a7e1062920808f8c4dc026072ab0b4cd9176988d9b05b6e40c051621468d SHA512 0aba0d4661a21ff31efb3dcd811ec4c9862e21ceaff6cdbb4dbe3c99495b3c575a2cec5b356bb229d7a207e10e7753f286425ee03367a8607deacdcc4a92726d WHIRLPOOL 97c21f45d39e48eb2c4053d31306e8c710a80095e2d351e81182d9e8e017c2092000f2e8847a293ddbe33e2d6bf6bbb34c153529d6fbba8d1692f9059702e611
+DIST github.com-golang-protobuf-130e6b02ab059e7b717a096f397c5b60111cae74.tar.gz 268449 SHA256 b9d3381955d095b8c4b26d0464f87e3b32f65fee51c2f791338bcdfea21a1ad8 SHA512 3caefc21de9d57ee484e32d831997efe1e086af652fbbff210c2097db03f933be78446ceea9d004200939b6d48737d716fae0674e1e142179e8ccd1827f3a228 WHIRLPOOL 0155a8e9cd779b1d636edad7b95bd8064b179aaa4139d722e1e423eece8be5cc462a9feed4bc1134b1530d2b04b336cd363c5b5cdc24c8caac707d3c20e06bda
+EBUILD drone-0.7.3.ebuild 1406 SHA256 bcc9d26445db62a91dd2bec44fbdc3f9d910e641627412525e56db2400bcb963 SHA512 26edd24f0e66e13a3f397cac24b14c0ee0237ead70fa8204f7b2a76aa0495670a9783b7dddc7d363c778f2d973fb5bc6c75dcb61c8fc9359ee168a2d3356b0df WHIRLPOOL 3ddd52fc1c7b777dd91511ef7bc802b0d976405c981bed793059b34fe9d1c18fa3d507c72a04bc00f78c8d10c2a8676f2f5a8402473201dd326dd4d4eaf699f6
+EBUILD drone-0.8.0.ebuild 1806 SHA256 6b6a6ec1a1e748658d9d6338673f995ba79f5482b56485e0dd733b5b37845ae6 SHA512 e708b0806fab58293a4cb8b338b27ea259de38e866c56990aa3c08c623b1b9a01f851a5016cd87226c5c602fcdecd69e2295eec773786e9e97d9c3e8e03ef35c WHIRLPOOL 7604562b662ee9c4a7e177f8057b910ccfa11af395986e203615720c91a5131f8dcdc6176f8c2d85b61b360e79bbc6911dc88cf5f39535b3d7790ba7c8f41659
+EBUILD drone-0.8.1.ebuild 1806 SHA256 532f67c8bf85e2658c9258c49ff4cffcfb32f64d2c1289d100ddc292115eaddc SHA512 70425a5b8cbe4693003e360c3ced13238966e2ed10e72478907dd2e9226514b242b38fe703e8b9929de386e39a435ac3767e638ae93a6f83db242ee5c5ea5eb9 WHIRLPOOL eb8b71323a79dc6e7eb7b56c8dd1554ba790b0ba9cc4dc0e1914478ee86ff37fc01b750ad659a8312ef8665ff0b46e25fc34589641adb9b015a838f3553cb40d
+MISC ChangeLog 1498 SHA256 8e43f0c1f03385fe1aa31a820dea17ca66d61c5ada8a6b55563e1288499a5d61 SHA512 11402ce0f2b1ecd741688d271b2b6bb64f64df118448e4c113f0b5c39fe290270d3cf386f0d616883dcbf90b570670544486814acf1afeba71c1cf0d58bb062c WHIRLPOOL 2dc4c52704f7a4d9fcad5aee851020f62842d73ece56aba5b7b1b1f9b7b5ea7c87e25fcd7d2a03c914558341b95dc792b341ca02f7e6d8b0de206df380af3f06
+MISC metadata.xml 321 SHA256 f4437ad70688bc28b9e58005c8833126da50936d60988214c5853dd0e578c72b SHA512 01b1dd14592873025099119b28c840eefa31d098e77de1e8e26ecc6894dad73778e4eb8d4df6232a2a444bc906057e8d7f853ecdc1f3091cdd27a43c19d8b950 WHIRLPOOL ac6c337a60970cf4978cb97852306bc9cd995b87762b86574314d98526f391ca8df1b10abd4a79ae2f45f001ed0bee9c810bdf001374d6b35af0cbfad434556c
diff --git a/dev-util/drone/drone-0.7.3.ebuild b/dev-util/drone/drone-0.7.3.ebuild
new file mode 100644
index 000000000000..e6bf0d86c01d
--- /dev/null
+++ b/dev-util/drone/drone-0.7.3.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+EGO_PN="github.com/drone/drone"
+EGIT_COMMIT="f604d592bc356fcade4aec67eba9b7fba8eed655"
+EGO_VENDOR=( "github.com/drone/drone-ui 2910d0ee662816a2463d31f0988b1ecccd0410b5" )
+
+inherit golang-build golang-vcs-snapshot user
+
+ARCHIVE_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
+KEYWORDS="~amd64"
+
+DESCRIPTION="A Continuous Delivery platform built on Docker, written in Go"
+HOMEPAGE="https://github.com/drone/drone"
+SRC_URI="${ARCHIVE_URI}
+ ${EGO_VENDOR_URI}"
+LICENSE="Apache-2.0"
+SLOT="0"
+IUSE=""
+
+DEPEND="dev-go/go-bindata
+ dev-go/go-bindata-assetfs:="
+
+RESTRICT="test"
+
+pkg_setup() {
+ enewgroup ${PN}
+ enewuser ${PN} -1 -1 /var/lib/drone ${PN}
+}
+
+src_compile() {
+ pushd src || die
+ GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)"\
+ go install -ldflags "-extldflags '-static' -X github.com/drone/drone/version.VersionDev=build.${PV}.${EGIT_COMMIT:0:7}" ${EGO_PN}/drone || die
+ popd || die
+}
+
+src_install() {
+ newbin bin/drone drone-server
+ dodoc src/github.com/drone/drone/README.md
+ keepdir /var/log/drone /var/lib/drone
+ fowners -R ${PN}:${PN} /var/log/drone /var/lib/drone
+ newinitd "${FILESDIR}"/drone.initd drone
+ newconfd "${FILESDIR}"/drone.confd drone
+ newinitd "${FILESDIR}"/drone-agent.initd drone-agent
+ newconfd "${FILESDIR}"/drone-agent.confd drone-agent
+}
diff --git a/dev-util/drone/drone-0.8.0.ebuild b/dev-util/drone/drone-0.8.0.ebuild
new file mode 100644
index 000000000000..b97b862718c4
--- /dev/null
+++ b/dev-util/drone/drone-0.8.0.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+EGO_PN="github.com/drone/drone"
+EGIT_COMMIT="ec6016062bd1d7d702c5edf383eb0728df33dbdd"
+EGO_VENDOR=( "github.com/drone/drone-ui 87c64622eae0ea8d515fa6d551841d4b699bf7f1"
+ "github.com/golang/protobuf 130e6b02ab059e7b717a096f397c5b60111cae74"
+ "golang.org/x/net 0744d001aa8470aaa53df28d32e5ceeb8af9bd70 github.com/golang/net"
+ )
+
+inherit golang-build golang-vcs-snapshot user
+
+ARCHIVE_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
+KEYWORDS="~amd64"
+
+DESCRIPTION="A Continuous Delivery platform built on Docker, written in Go"
+HOMEPAGE="https://github.com/drone/drone"
+SRC_URI="${ARCHIVE_URI}
+ ${EGO_VENDOR_URI}"
+LICENSE="Apache-2.0"
+SLOT="0"
+IUSE=""
+
+DEPEND="dev-go/go-bindata
+ dev-go/go-bindata-assetfs:="
+
+RESTRICT="test"
+
+pkg_setup() {
+ enewgroup ${PN}
+ enewuser ${PN} -1 -1 /var/lib/drone ${PN}
+}
+
+src_compile() {
+ pushd src || die
+ GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" go build -ldflags "-extldflags '-static' -X github.com/drone/drone/version.VersionDev=build.${PV}.${EGIT_COMMIT:0:7}" -o release/drone-server ${EGO_PN}/cmd/drone-server || die
+ GOPATH="${WORKDIR}/${P}" go build -ldflags "-X github.com/drone/drone/version.VersionDev=build.${PV}.${EGIT_COMMIT:0:7}" -o release/drone-agent ${EGO_PN}/cmd/drone-agent || die
+ popd || die
+}
+
+src_install() {
+ dobin src/release/drone-{agent,server}
+ dodoc src/github.com/drone/drone/README.md
+ keepdir /var/log/drone /var/lib/drone
+ fowners -R ${PN}:${PN} /var/log/drone /var/lib/drone
+ newinitd "${FILESDIR}"/drone-server.initd drone-server
+ newconfd "${FILESDIR}"/drone-server.confd drone-server
+ newinitd "${FILESDIR}"/drone-agent.initd drone-agent
+ newconfd "${FILESDIR}"/drone-agent.confd drone-agent
+}
diff --git a/dev-util/drone/drone-0.8.1.ebuild b/dev-util/drone/drone-0.8.1.ebuild
new file mode 100644
index 000000000000..147e36b2509c
--- /dev/null
+++ b/dev-util/drone/drone-0.8.1.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+EGO_PN="github.com/drone/drone"
+EGIT_COMMIT="8125f97c2147e9cae75aa793efe72048b8588297"
+EGO_VENDOR=( "github.com/drone/drone-ui 5a497bd6cd5c3c17c53b00d40bcda1bf6f68f475"
+ "github.com/golang/protobuf 130e6b02ab059e7b717a096f397c5b60111cae74"
+ "golang.org/x/net 0a9397675ba34b2845f758fe3cd68828369c6517 github.com/golang/net"
+ )
+
+inherit golang-build golang-vcs-snapshot user
+
+ARCHIVE_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
+KEYWORDS="~amd64"
+
+DESCRIPTION="A Continuous Delivery platform built on Docker, written in Go"
+HOMEPAGE="https://github.com/drone/drone"
+SRC_URI="${ARCHIVE_URI}
+ ${EGO_VENDOR_URI}"
+LICENSE="Apache-2.0"
+SLOT="0"
+IUSE=""
+
+DEPEND="dev-go/go-bindata
+ dev-go/go-bindata-assetfs:="
+
+RESTRICT="test"
+
+pkg_setup() {
+ enewgroup ${PN}
+ enewuser ${PN} -1 -1 /var/lib/drone ${PN}
+}
+
+src_compile() {
+ pushd src || die
+ GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" go build -ldflags "-extldflags '-static' -X github.com/drone/drone/version.VersionDev=build.${PV}.${EGIT_COMMIT:0:7}" -o release/drone-server ${EGO_PN}/cmd/drone-server || die
+ GOPATH="${WORKDIR}/${P}" go build -ldflags "-X github.com/drone/drone/version.VersionDev=build.${PV}.${EGIT_COMMIT:0:7}" -o release/drone-agent ${EGO_PN}/cmd/drone-agent || die
+ popd || die
+}
+
+src_install() {
+ dobin src/release/drone-{agent,server}
+ dodoc src/github.com/drone/drone/README.md
+ keepdir /var/log/drone /var/lib/drone
+ fowners -R ${PN}:${PN} /var/log/drone /var/lib/drone
+ newinitd "${FILESDIR}"/drone-server.initd drone-server
+ newconfd "${FILESDIR}"/drone-server.confd drone-server
+ newinitd "${FILESDIR}"/drone-agent.initd drone-agent
+ newconfd "${FILESDIR}"/drone-agent.confd drone-agent
+}
diff --git a/dev-util/drone/files/drone-agent.confd b/dev-util/drone/files/drone-agent.confd
new file mode 100644
index 000000000000..bfe82b16c756
--- /dev/null
+++ b/dev-util/drone/files/drone-agent.confd
@@ -0,0 +1,19 @@
+# arguments for drone-agent
+# See also http://readme.drone.io/admin/installation-reference/
+#DRONE_SERVER=
+#DRONE_SECRET=
+#DRONE_DEBUG=false
+#DRONE_BACKOFF=15s
+#DRONE_TIMEOUT=15m
+#DRONE_MAX_LOGS=5
+#DRONE_PLUGIN_PULL=true
+#DRONE_PLUGIN_PRIVILEGED
+#DOCKER_HOST
+#DOCKER_TLS_VERIFY
+#DOCKER_CERT_PATH
+#DOCKER_MAX_PROCS=2
+#DOCKER_OS=linux
+#DOCKER_ARCH=amd64
+#HTTP_PROXY=
+#HTTPS_PROXY=
+#NO_PROXY=
diff --git a/dev-util/drone/files/drone-agent.initd b/dev-util/drone/files/drone-agent.initd
new file mode 100644
index 000000000000..d14b11f80d33
--- /dev/null
+++ b/dev-util/drone/files/drone-agent.initd
@@ -0,0 +1,14 @@
+#!/sbin/openrc-run
+# Copyright 2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+description="Drone CI Agent"
+pidfile=${pidfile:-"/run/drone/${SVCNAME}.pid"}
+user=${user:-drone}
+group=${group:-drone}
+
+command="/usr/bin/drone-agent"
+command_background="true"
+start_stop_daemon_args="--user ${user} --group ${group} \
+ --stdout /var/log/drone/${SVCNAME}.log \
+ --stderr /var/log/drone/${SVCNAME}.log"
diff --git a/dev-util/drone/files/drone-server.confd b/dev-util/drone/files/drone-server.confd
new file mode 100644
index 000000000000..3d4fd461402d
--- /dev/null
+++ b/dev-util/drone/files/drone-server.confd
@@ -0,0 +1,47 @@
+# arguments for drone
+# See also http://readme.drone.io/admin/installation-reference/
+#DRONE_SECRET=
+#DRONE_DEBUG=false
+#DRONE_SERVER_CERT=
+#DRONE_SERVER_KEY=
+#DRONE_ADMIN=
+#DRONE_ORGS=
+#DRONE_OPEN=false
+#DRONE_YAML=.drone.yml
+#DRONE_CACHE_TTY=15m
+DRONE_DATABASE_DRIVER=sqlite3
+DRONE_DATABASE_DATASOURCE="/var/lib/drone/drone.sqlite"
+DRONE_GITHUB=true
+#DRONE_GITHUB_URL=https://github.com
+#DRONE_GITHUB_CLIENT=
+#DRONE_GITHUB_SECRET=
+#DRONE_GITHUB_SCOPE=
+#DRONE_GITHUB_GIT_USERNAME=
+#DRONE_GITHUB_GIT_PASSWORD=
+#DRONE_GITHUB_PRIVATE_MODE=false
+#DRONE_GITHUB_MERGE_REF=true
+#DRONE_GITHUB_CONTEXT=continuous-integration/drone
+#DRONE_GITHUB_SKIP_VERIFY=false
+#DRONE_GOGS=false
+#DRONE_GOGS_URL=
+#DRONE_GOGS_GIT_USERNAME=
+#DRONE_GOGS_GIT_PASSWORD=
+#DRONE_GOGS_PRIVATE_MODE=
+#DRONE_GOGS_SKIP_VERIFY=false
+#DRONE_BITBUCKET=false
+#DRONE_BITBUCKET_CLIENT=
+#DRONE_BITBUCKET_SECRET=
+#DRONE_STASH=false
+#DRONE_STASH_URL=
+#DRONE_STASH_CONSUMER_KEY=
+#DRONE_STASH_CONSUMER_RSA=
+#DRONE_STASH_GIT_USERNAME=
+#DRONE_STASH_GIT_PASSWORD=
+#DRONE_GITLAB=false
+#DRONE_GITLAB_URL=https://gitlab.com
+#DRONE_GITLAB_CLIENT=
+#DRONE_GITLAB_SECRET=
+#DRONE_GITLAB_GIT_USERNAME=
+#DRONE_GITLAB_GIT_PASSWORD=
+#DRONE_GITLAB_SKIP_VERIFY=false
+#DRONE_GITLAB_PRIVATE_MODE=false
diff --git a/dev-util/drone/files/drone-server.initd b/dev-util/drone/files/drone-server.initd
new file mode 100644
index 000000000000..fe87c713db9e
--- /dev/null
+++ b/dev-util/drone/files/drone-server.initd
@@ -0,0 +1,14 @@
+#!/sbin/openrc-run
+# Copyright 2016-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+description="Drone CI"
+pidfile=${pidfile:-"/run/${SVCNAME}/${SVCNAME}.pid"}
+user=${user:-drone}
+group=${group:-drone}
+
+command="/usr/bin/drone-server"
+command_background="true"
+start_stop_daemon_args="--user ${user} --group ${group} \
+ --stdout /var/log/${SVCNAME}/${SVCNAME}.log \
+ --stderr /var/log/${SVCNAME}/${SVCNAME}.log"
diff --git a/dev-util/drone/files/drone.confd b/dev-util/drone/files/drone.confd
new file mode 100644
index 000000000000..3d4fd461402d
--- /dev/null
+++ b/dev-util/drone/files/drone.confd
@@ -0,0 +1,47 @@
+# arguments for drone
+# See also http://readme.drone.io/admin/installation-reference/
+#DRONE_SECRET=
+#DRONE_DEBUG=false
+#DRONE_SERVER_CERT=
+#DRONE_SERVER_KEY=
+#DRONE_ADMIN=
+#DRONE_ORGS=
+#DRONE_OPEN=false
+#DRONE_YAML=.drone.yml
+#DRONE_CACHE_TTY=15m
+DRONE_DATABASE_DRIVER=sqlite3
+DRONE_DATABASE_DATASOURCE="/var/lib/drone/drone.sqlite"
+DRONE_GITHUB=true
+#DRONE_GITHUB_URL=https://github.com
+#DRONE_GITHUB_CLIENT=
+#DRONE_GITHUB_SECRET=
+#DRONE_GITHUB_SCOPE=
+#DRONE_GITHUB_GIT_USERNAME=
+#DRONE_GITHUB_GIT_PASSWORD=
+#DRONE_GITHUB_PRIVATE_MODE=false
+#DRONE_GITHUB_MERGE_REF=true
+#DRONE_GITHUB_CONTEXT=continuous-integration/drone
+#DRONE_GITHUB_SKIP_VERIFY=false
+#DRONE_GOGS=false
+#DRONE_GOGS_URL=
+#DRONE_GOGS_GIT_USERNAME=
+#DRONE_GOGS_GIT_PASSWORD=
+#DRONE_GOGS_PRIVATE_MODE=
+#DRONE_GOGS_SKIP_VERIFY=false
+#DRONE_BITBUCKET=false
+#DRONE_BITBUCKET_CLIENT=
+#DRONE_BITBUCKET_SECRET=
+#DRONE_STASH=false
+#DRONE_STASH_URL=
+#DRONE_STASH_CONSUMER_KEY=
+#DRONE_STASH_CONSUMER_RSA=
+#DRONE_STASH_GIT_USERNAME=
+#DRONE_STASH_GIT_PASSWORD=
+#DRONE_GITLAB=false
+#DRONE_GITLAB_URL=https://gitlab.com
+#DRONE_GITLAB_CLIENT=
+#DRONE_GITLAB_SECRET=
+#DRONE_GITLAB_GIT_USERNAME=
+#DRONE_GITLAB_GIT_PASSWORD=
+#DRONE_GITLAB_SKIP_VERIFY=false
+#DRONE_GITLAB_PRIVATE_MODE=false
diff --git a/dev-util/drone/files/drone.initd b/dev-util/drone/files/drone.initd
new file mode 100644
index 000000000000..a7219c7d7612
--- /dev/null
+++ b/dev-util/drone/files/drone.initd
@@ -0,0 +1,14 @@
+#!/sbin/openrc-run
+# Copyright 2016-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+description="Drone CI"
+pidfile=${pidfile:-"/run/${SVCNAME}/${SVCNAME}.pid"}
+user=${user:-${SVCNAME}}
+group=${group:-${SVCNAME}}
+
+command="/usr/bin/drone-server server"
+command_background="true"
+start_stop_daemon_args="--user ${user} --group ${group} \
+ --stdout /var/log/${SVCNAME}/${SVCNAME}.log \
+ --stderr /var/log/${SVCNAME}/${SVCNAME}.log"
diff --git a/dev-util/drone/metadata.xml b/dev-util/drone/metadata.xml
new file mode 100644
index 000000000000..5a7b39bbcff9
--- /dev/null
+++ b/dev-util/drone/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>mrueg@gentoo.org</email>
+ <name>Manuel Rüger</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">drone/drone</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/dropwatch/Manifest b/dev-util/dropwatch/Manifest
new file mode 100644
index 000000000000..88c1e152beef
--- /dev/null
+++ b/dev-util/dropwatch/Manifest
@@ -0,0 +1,10 @@
+AUX dropwatch-1.4-binutils-2.23.patch 1767 SHA256 3cb2ca20213f0bc27630643927aa7988f9bf90f7da4e9361361ea533531958ee SHA512 678749e2f37c9e8c5613a884919e0ebf9039850f5fa9a62829d66783e703f6aa3c69a2d040b37f4657d2c43edf46d4792d9d87270a4fe4b590bcc36114470b45 WHIRLPOOL 6d8f7ce01d277a9411387127beb4ce918cc30c7efea52ad054120ae329cb3dba4f4f59c3265942521040b1d4c90d6cb5dfeab82ea71ade3e45ee4c646048da6e
+AUX dropwatch-1.4-makefile.patch 639 SHA256 d966d5e8a0a7f15e5acf41dbd63d2670bf472013619d83a1fe721f2d59b58752 SHA512 cf9756fe238041d5a9a764e81f5294832146905a809fccff999cf45d28015fc70ac0239b57b2e7d994095d5b45b484ea2b14e36210cc10bc1e4ef8ad3d9031f5 WHIRLPOOL b03ae2ed1005b384bc5948a9a01d16ee22d1016d3ab900403551684d49a0872aff190bde6447fd3165bb6bb514b1547016a62066b2d31dd9dce8e3208e99bfa8
+AUX dropwatch-1.4_p20150706-makefile.patch 563 SHA256 df7ab4edfcc0bd7d459fa0c133727200351b1a49e70447ba0a19dde98a05dc10 SHA512 763781d0a3718978c2fb98ad42183633f6e93c122739bd4b3020698674b4c3c35592337be5f7a3c839ab3bc4599cd10a85a19f1d19bd9635961fcc08c78f0b01 WHIRLPOOL ea59fb9970177175c3bff475994bd592df8a1593e0c2485ad0faf464609223ec3bed36251152d268d1c7412bd2ac131a0f2ee53e2d53bf692886dd2eda82007e
+DIST dropwatch-1.4.tbz2 32199 SHA256 ede45fd3b4a847a9befa73e9e8f6336aee5418fc3e041648c684e5085113a3b4 SHA512 a5744ea156464c53d31d5b54bcaf9bd61f2035285059bc05a3eec20be71d1451a6191237f194dc5d8e6fb6fcbb81d9ef87adf5ac2d878cc1f159191c47118e29 WHIRLPOOL 3d8661ab85da0a7485e8f6312eeb99e1ed14f6af38d119093c835e94f518918908e596d3e5744be5f529d280b6644b459106eb503112df58b63865737f8eecc1
+DIST dropwatch-1.4_p20150706.tar.xz 14880 SHA256 c0977172d1d1f14ddadf4fd5f5449f1ef0ced77c73b34c4ce9d256c7380c9b29 SHA512 f78f19f063408cb655869e662e92709b1cec820ab35b11272b87a990c380e0799c6e9067dcf53edab795916347dfe3fd04932f9699c3f5649f96d62567957fbd WHIRLPOOL 26e460964db3c71bb9a0d7f89fcec5985471a7ad94cdaadd4fdef0e0a70f1d990fd8db1092945fd30e34fe54868647d31d60235b4fa7d60533c58e4e1e050d4d
+EBUILD dropwatch-1.4-r1.ebuild 920 SHA256 5a860868b00489e4db2fe045c9a4d697c59762a44df813086ada09e3664cda8c SHA512 6a5cdadcd68ba947df0a97ad46ce2df53b2def1137064b8153bd0d900fc0e92db4c17a08a7c3ab2eddd69e7245d7ce18912cb586132c2d5ea86ee0db9ff48157 WHIRLPOOL 55d5ab84dc598eb0a0ff3a9299cc26b6840c0460fc4db271269711b2334ec7073188d71fe4fb59fc5a07b8313ea229fa0f6a234a2b410d7ca732ac2560d91a5d
+EBUILD dropwatch-1.4_p20150706.ebuild 867 SHA256 265d7434924ce025f820e3f9b8f7befbf2c001a224a95278671ed886640e905b SHA512 466bef588bc88d7b02439386b3d4e6659922369f05eb1cba5eada751b1271b813723ba5382ddcc6903c9fa3491f1d1d33a74568a7dd087808d0ec81a489c4e81 WHIRLPOOL c359023d96a6863374f0de603e6a83492abb0b8e8ab6bf270055b249dff16ca29782f57861c04100703d650fa431d6c4c20b76e59b47696d3d231dca6a15c16b
+MISC ChangeLog 3318 SHA256 1d79bb0c9d64d9c7d045b7f4e4a16a7865d6df74f33551dc198732982cdafd9d SHA512 1231a2e71f351317e48d59615cacacb0852ad1ef90e4675f696a3ad7c361bdde3fa8ef435cc5e51b262c6f2b7db7a3879a533416b79d4fd75de5190e5b4b9d0f WHIRLPOOL 90f06044eec213d5a7e7214ca640ba9c7925fe3c1b81d053600aba4c3990c6757cc3f428bfee84efc0b38531dd2f1400d628cb97b8900c96e89569475acf264f
+MISC ChangeLog-2015 1446 SHA256 fee92e2f0b126c3816469fea05f22ddf573acce90e00c426f7de2f82bac7fc23 SHA512 b103e076988224d12a910f661e900730dad1cd62a1100e0c525b76cde0fa15c51593dcd8285965a46d61bfcd186fefb802047159379913485693010c076522ac WHIRLPOOL 31fb1aa332de440215eb11ffe03077a10e69029b8505beaa68e14c57c7efc3fc68050441e98acf2ad2de0d71b3b146fdc55bd8a555c34e098d229d97bfe7aa37
+MISC metadata.xml 250 SHA256 891a1998b50e15db4c3577d7b2af6f721cd1c03869af4d9c1da62a8ba0514bda SHA512 a5334e41fb3acb7a8cce473ca9616ecea8fe484e870173f0a26042cd8aca0bc7fa4fe52e9cf10b7495c44608e15f1c71564b3f92a44611ba830b08785666b2ac WHIRLPOOL 520b5ea69bee11082f9d5733a158c32ed7600439c694204570e10630b09749cabc568223a6be99c2d97a3b26a22986e34f10dbcdae92b45e29146d2a11836161
diff --git a/dev-util/dropwatch/dropwatch-1.4-r1.ebuild b/dev-util/dropwatch/dropwatch-1.4-r1.ebuild
new file mode 100644
index 000000000000..341fd711b330
--- /dev/null
+++ b/dev-util/dropwatch/dropwatch-1.4-r1.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit linux-info toolchain-funcs
+
+DESCRIPTION="A utility to interface to the kernel to monitor for dropped network packets"
+HOMEPAGE="https://fedorahosted.org/dropwatch/"
+SRC_URI="https://fedorahosted.org/releases/d/r/dropwatch/${P}.tbz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="dev-libs/libnl:3
+ sys-libs/binutils-libs
+ sys-libs/readline:="
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+CONFIG_CHECK="~NET_DROP_MONITOR"
+
+PATCHES=(
+ "${FILESDIR}/${P}-makefile.patch"
+ "${FILESDIR}/${P}-binutils-2.23.patch"
+)
+
+src_prepare() {
+ epatch "${PATCHES[@]}"
+ epatch_user
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" -C src
+}
+
+src_install() {
+ dobin "src/${PN}"
+ doman "doc/${PN}.1"
+ dodoc README
+}
+
+pkg_postinst() {
+ einfo "Ensure that 'drop_monitor' kernel module is loaded before running ${PN}"
+}
diff --git a/dev-util/dropwatch/dropwatch-1.4_p20150706.ebuild b/dev-util/dropwatch/dropwatch-1.4_p20150706.ebuild
new file mode 100644
index 000000000000..f4d2002b7f7b
--- /dev/null
+++ b/dev-util/dropwatch/dropwatch-1.4_p20150706.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit linux-info toolchain-funcs
+
+DESCRIPTION="A utility to interface to the kernel to monitor for dropped network packets"
+HOMEPAGE="https://fedorahosted.org/dropwatch/"
+SRC_URI="https://dev.gentoo.org/~bircoph/distfiles/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="dev-libs/libnl:3
+ sys-libs/binutils-libs:=
+ sys-libs/readline:="
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+CONFIG_CHECK="~NET_DROP_MONITOR"
+
+PATCHES=(
+ "${FILESDIR}/${P}-makefile.patch"
+ "${FILESDIR}/${PN}-1.4-binutils-2.23.patch"
+)
+
+src_compile() {
+ emake CC="$(tc-getCC)" -C src
+}
+
+src_install() {
+ dobin "src/${PN}"
+ doman "doc/${PN}.1"
+ dodoc README
+}
+
+pkg_postinst() {
+ einfo "Ensure that 'drop_monitor' kernel module is loaded before running ${PN}"
+}
diff --git a/dev-util/dropwatch/files/dropwatch-1.4-binutils-2.23.patch b/dev-util/dropwatch/files/dropwatch-1.4-binutils-2.23.patch
new file mode 100644
index 000000000000..1a7fa7913e42
--- /dev/null
+++ b/dev-util/dropwatch/files/dropwatch-1.4-binutils-2.23.patch
@@ -0,0 +1,81 @@
+commit a5aa2c3cbae207d12b9f2fded36a47031c55be36
+Author: Andrew Savchenko <bircoph@gmail.com>
+Date: Thu Nov 17 00:04:47 2016 +0300
+
+ Fix build with recent binutils
+
+ Gentoo-Bug: 457980
+ Upstream Ticket: 5
+
+diff --git a/src/lookup.c b/src/lookup.c
+index ba54991..809981b 100644
+--- a/src/lookup.c
++++ b/src/lookup.c
+@@ -27,13 +27,13 @@
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <sys/utsname.h>
+-#include <bfd.h>
+ #include <string.h>
+ #include <unistd.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
+
+ #include "lookup.h"
++#include <bfd.h>
+
+ extern struct lookup_methods bfd_methods;
+ extern struct lookup_methods kallsym_methods;
+diff --git a/src/lookup.h b/src/lookup.h
+index e6568d8..47a7b56 100644
+--- a/src/lookup.h
++++ b/src/lookup.h
+@@ -28,6 +28,9 @@
+ #include <stdlib.h>
+ #include <asm/types.h>
+
++// satisfy PR 14072 in bfd.h
++#define PACKAGE 1
++#define PACKAGE_VERSION 1
+
+ /*
+ * Initalization routine
+diff --git a/src/lookup_bfd.c b/src/lookup_bfd.c
+index cc7010b..271d426 100644
+--- a/src/lookup_bfd.c
++++ b/src/lookup_bfd.c
+@@ -25,13 +25,13 @@
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <sys/utsname.h>
+-#include <bfd.h>
+ #include <string.h>
+ #include <unistd.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
+
+ #include "lookup.h"
++#include <bfd.h>
+
+
+ static int lookup_bfd_init(void)
+diff --git a/src/lookup_kas.c b/src/lookup_kas.c
+index 16e639f..556cb62 100644
+--- a/src/lookup_kas.c
++++ b/src/lookup_kas.c
+@@ -25,7 +25,6 @@
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <sys/utsname.h>
+-#include <bfd.h>
+ #include <string.h>
+ #include <unistd.h>
+ #include <sys/types.h>
+@@ -33,6 +32,7 @@
+ #include <sys/queue.h>
+
+ #include "lookup.h"
++#include <bfd.h>
+
+ struct symbol_entry {
+ char *sym_name;
diff --git a/dev-util/dropwatch/files/dropwatch-1.4-makefile.patch b/dev-util/dropwatch/files/dropwatch-1.4-makefile.patch
new file mode 100644
index 000000000000..14ffcc83513e
--- /dev/null
+++ b/dev-util/dropwatch/files/dropwatch-1.4-makefile.patch
@@ -0,0 +1,21 @@
+--- src/Makefile.orig 2012-10-24 13:27:12.000000000 +0400
++++ src/Makefile 2012-10-24 13:27:47.000000000 +0400
+@@ -1,14 +1,14 @@
+ all: dropwatch
+-CFLAGS+=-c -g -D_GNU_SOURCE -Wall -Werror `pkg-config --cflags libnl-3.0`
+-LDFLAGS=-lbfd -lreadline -lnl-3 -lnl-genl-3
++CFLAGS+=-c -D_GNU_SOURCE -Wall `pkg-config --cflags libnl-3.0`
++LIBS=-lbfd -lreadline -lnl-3 -lnl-genl-3
+ OBJFILES := main.o lookup.o\
+ lookup_bfd.o lookup_kas.o
+
+ dropwatch: $(OBJFILES)
+- gcc -g -o dropwatch $(OBJFILES) $(LDFLAGS)
++ $(CC) -o dropwatch $(LDFLAGS) $(OBJFILES) $(LIBS)
+
+ %.o: %.c
+- gcc $(CFLAGS) $<
++ $(CC) $(CFLAGS) $<
+ clean:
+ rm -f dropwatch *.o
+
diff --git a/dev-util/dropwatch/files/dropwatch-1.4_p20150706-makefile.patch b/dev-util/dropwatch/files/dropwatch-1.4_p20150706-makefile.patch
new file mode 100644
index 000000000000..d2a9a6b761b6
--- /dev/null
+++ b/dev-util/dropwatch/files/dropwatch-1.4_p20150706-makefile.patch
@@ -0,0 +1,21 @@
+diff --git a/src/Makefile b/src/Makefile
+index 5bc6aaa..4eab2e8 100644
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -1,14 +1,14 @@
+ all: dropwatch
+
+ CPPFLAGS += -D_GNU_SOURCE
+-CFLAGS += -g -Wall -Werror $(shell pkg-config --cflags libnl-3.0)
++CFLAGS += -g -Wall $(shell pkg-config --cflags libnl-3.0)
+ LDLIBS += -lbfd -lreadline -lnl-3 -lnl-genl-3
+
+ OBJFILES := main.o lookup.o\
+ lookup_bfd.o lookup_kas.o
+
+ dropwatch: $(OBJFILES)
+- $(LINK.o) $^ $(LOADLIBES) $(LDLIBS) -o $@
++ $(LINK.o) $(CFLAGS) $^ $(LOADLIBES) $(LDLIBS) -o $@
+
+ clean:
+ $(RM) dropwatch *.o
diff --git a/dev-util/dropwatch/metadata.xml b/dev-util/dropwatch/metadata.xml
new file mode 100644
index 000000000000..4343afde9aa5
--- /dev/null
+++ b/dev-util/dropwatch/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>bircoph@gentoo.org</email>
+ <name>Andrew Savchenko</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-util/duma/Manifest b/dev-util/duma/Manifest
new file mode 100644
index 000000000000..23bf0d593315
--- /dev/null
+++ b/dev-util/duma/Manifest
@@ -0,0 +1,9 @@
+AUX duma-2.5.15-gcc6.patch 599 SHA256 70dfa3df310122bd3387a6495c240edce4286dcd866576d0a9ac05635260f90d SHA512 9577e34e97b6f63654a8fa5b6ad26f54733cdd758a2a96b99c2771f9593436501b09ade40e8b20ff61da033e64c635a29b4884a6e4ea3b62fa9a4c12587cf947 WHIRLPOOL a0412cf7a2cb3da0a97816c84f6c70f60666bf8ebccc1ad526ee1784bad5a4d88ea99bb26e7133ad5ed14f3de3e143cb9ad8184d707715a0728cca018ff9bc80
+DIST duma-2.5.15-GNUmakefile.patch.bz2 4618 SHA256 71c79fedc436402301abc152ff0bca0db505c8641f57c2232a8d2d6e9f3a59b7 SHA512 6d83294897a60c6d0ebac388c8f791adc6a199b2c9838497bcfff39502262014c8437a331e08e3526568d3ef755a7dfdc2557771bdae89c58cd5f714eae70df2 WHIRLPOOL d295b278a35ce1cba7fd4f657c457dbad5a40b8f132632e5a3b1ff618e666a2de75b8347b053aacfaab77550918bcfedb92e8b3f0c6629069b242473c9e5b54f
+DIST duma_2_5_13.tar.gz 233157 SHA256 338757d68f580b38d0680f21151c55e705abf5c933d959410be90fe5c5248777 SHA512 da0f46a697f95cbb17d0dbb3135df779ac347fd9e63c1578d2d732300d5288958d02b5a271e84292a8279c1ebc3dc153f896cbeca916cf18aba8e54788671288 WHIRLPOOL 7262fecfb8a2176c352d0730f2fa2667d985740b2a75f42e7980d9a13f72d494eb9bd1dd4116cec37d03cc5441eb128d405de46e8a718b0a918179c7ae41368b
+DIST duma_2_5_15.tar.gz 240479 SHA256 baaf794854e3093ad1bddadbfb8ad4b220a7117d70359ee216bd59e353734e17 SHA512 0e2abdb08cfbaf9fd0a6be348c831a83ac4ee86d2297dcd1c4d625ddb4b2c1c73eef05e2b895e291d5b8076b1baea559c89d475f30e409210df4ab69b71b6345 WHIRLPOOL b7775cfefa49e942a8243520741920f506b09251e7c0966c2014863589f74a915de4ba8eee77716512ee3ad4071f748beb8ff4c03c95b7242f80aa397c4c51ad
+EBUILD duma-2.5.13.ebuild 2148 SHA256 02e3b9834e8f0229a1d8ed65c6d89c691e280798b19ac53fd4d4b8f45b757c15 SHA512 ae4197f4ebfe774adcaa85f8e9dac52bb66e4bac05f25b2ed91eaed2ad0a6c20433adcea07d0a9a7b3aa41183f597051f6af9266483af04f44c0a1ac0b2f43d0 WHIRLPOOL 76f70c6a3719c0f1132f2eb285d5652340b7835a427f7cc9e3560f0dcd63549e025e82ae9aefc3a782c22a5ed15a98c9d766dc423fbb8690bd26fbf53e86e560
+EBUILD duma-2.5.15-r2.ebuild 2245 SHA256 461391e49f41fda5c52b9c1bbb7806b053ce40914a96f7fa2cff7e65b70bf7b2 SHA512 f0464d408f0666181e79015a7232774f7fbe894474039bad0fcc4dae052e037c4797b9f549c6b050fcb6fd36e5de43456e33181008a818e3adb77b9184a5514b WHIRLPOOL 25bd1534a6fe101e62c040ae62a8b5b52a302daa7c86169f9ba11fefaa6e1af8df82c54f9ec78c140a95fc1201f0e82e488ca1ac600c0870a4ca2b7a454eba3a
+MISC ChangeLog 3358 SHA256 9ebc2e7437490916cddc03a82d926fb222fedf4cac374f3b4cb6928affaa3d84 SHA512 6a870f345a7a5d957f47586502bf04c3e8ad2a6d33f5dce3051d7807ebe8dcf104bba3054b5b969df096d0579e569812c1b60844efe1c0430f2368536d3b1d6d WHIRLPOOL 310a41285877b4546b69f9746781e5df4a60c25e2b67e0e0fc55ea53cbbbdb45d082a5deed4ca06a5953f12dda9c4dc2c773ea946c812ea050e984bf7e89877e
+MISC ChangeLog-2015 3401 SHA256 9e92b284e75226907b00510bd5336a8fd52c9bb799ee017bc7a0acd3e87967ee SHA512 a54a9e819d640150e9ff781c4c876d963a2f245a30a5bc31e86533f6f1ee2f241bf263d47a77483adcbb2496c6953fe5ffc4d90f54207ee1f2f2e1b8a71bd233 WHIRLPOOL 42c4928bddd38020a6840d1fc0c7e632377fe673a6c94caa3fb5d9d82c73e15263f7cbfbd889da27906f85ccc14e3800da61749aa52c9e4dc1328561ca40a312
+MISC metadata.xml 600 SHA256 965c4175aff48a5102cf4305b0a61dadbd2d230ec1048e174f800524f53d09d4 SHA512 f849e5c61d27430f2c7de1f86ac9f12b8424571703e08661bccb0415743bf2e88aea981e72a5b1c287c949c6634e975c5e3f9882b9a29171389bed998c352f08 WHIRLPOOL 2ebc211272275b05b9a8e7c3489f3b10f414a7fdadf2050339d12cd0554c678f5e0fb976f61eac9a668d0d1a548c3719c44c56445a1fe7ff5a9a778438b95539
diff --git a/dev-util/duma/duma-2.5.13.ebuild b/dev-util/duma/duma-2.5.13.ebuild
new file mode 100644
index 000000000000..5098d942b1e8
--- /dev/null
+++ b/dev-util/duma/duma-2.5.13.ebuild
@@ -0,0 +1,84 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils flag-o-matic multilib toolchain-funcs versionator
+
+MY_P="${PN}_$(replace_all_version_separators '_')"
+
+DESCRIPTION="DUMA (Detect Unintended Memory Access) is a memory debugging library"
+HOMEPAGE="http://duma.sourceforge.net/"
+
+SRC_URI="mirror://sourceforge/duma/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE="examples"
+
+DEPEND=""
+RDEPEND="${DEPEND}
+ app-shells/bash"
+
+S="${WORKDIR}/${MY_P}"
+
+pkg_setup() {
+ #DUMA_OPTIONS="-DDUMA_LIB_NO_LEAKDETECTION"
+ DUMA_OPTIONS="-DDUMA_USE_FRAMENO"
+ if [ -n "${DUMA_OPTIONS}" ]; then
+ ewarn ""
+ elog "Custom build options are ${DUMA_OPTIONS}."
+ else
+ ewarn ""
+ elog "Custom build options are not set!"
+ fi
+ elog "See the package Makefile for for more options (also installed"
+ elog "with package docs as Makefile.duma)."
+ ewarn ""
+}
+
+src_unpack(){
+ unpack ${A}
+ cd "${S}"
+ sed -i -e "s:(prefix)/lib:(prefix)/$(get_libdir):g" Makefile
+ sed -i -e "s:share/doc/duma:share/doc/${P}:g" Makefile
+}
+
+src_compile(){
+ replace-flags O? O0
+ append-flags -Wall -Wextra -U_FORTIFY_SOURCE
+ tc-export AR CC CXX LD RANLIB
+
+ use amd64 && export DUMA_ALIGNMENT=16
+
+ make CPPFLAGS="${DUMA_OPTIONS}" reconfig || die "make reconfig failed"
+ emake CFLAGS="${CFLAGS}" CC=$(tc-getCC) || die "make failed"
+}
+
+src_test() {
+ ewarn "Control-C now if you want to disable tests..."
+ epause 5
+
+ cd "${S}"
+ use amd64 && export DUMA_ALIGNMENT=16
+ make CFLAGS="${DUMA_OPTIONS} ${CFLAGS}" \
+ CC=$(tc-getCC) test || die "make test failed"
+
+ elog ""
+ ewarn "Check output above to verify all tests have passed. Both"
+ ewarn "static and dynamic confidence tests should say PASSED."
+ elog ""
+}
+
+src_install(){
+ # make install fails nicely here on the first file...
+ make DESTDIR="${D}" install || die "make install failed"
+ dodoc CHANGELOG TODO
+ # All the good comments on duma build options are in the Makefile
+ newdoc Makefile Makefile.duma
+
+ if use examples; then
+ insinto /usr/share/doc/${P}/examples
+ doins example[1-6].cpp
+ doins example_makes/ex6/Makefile
+ fi
+}
diff --git a/dev-util/duma/duma-2.5.15-r2.ebuild b/dev-util/duma/duma-2.5.15-r2.ebuild
new file mode 100644
index 000000000000..f44643877e1e
--- /dev/null
+++ b/dev-util/duma/duma-2.5.15-r2.ebuild
@@ -0,0 +1,93 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit toolchain-funcs versionator
+
+MY_P=${PN}_$(replace_all_version_separators '_')
+
+DESCRIPTION="DUMA (Detect Unintended Memory Access) is a memory debugging library"
+HOMEPAGE="http://duma.sourceforge.net"
+SRC_URI="mirror://sourceforge/duma/${MY_P}.tar.gz
+ mirror://gentoo/${P}-GNUmakefile.patch.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="examples"
+
+S=${WORKDIR}/${MY_P}
+
+PATCHES=(
+ "${WORKDIR}"/${P}-GNUmakefile.patch
+ "${FILESDIR}"/${P}-gcc6.patch
+)
+
+src_configure() {
+ # other flags will break duma
+ export CFLAGS="-O0 -Wall -Wextra -U_FORTIFY_SOURCE"
+ tc-export AR CC CXX LD RANLIB
+
+ case "${CHOST}" in
+ *-linux-gnu)
+ OS=linux;;
+ *-solaris*)
+ OS=solaris;;
+ *-darwin*)
+ OS=osx;;
+ *-freebsd*)
+ OS=freebsd;;
+ *-netbsd*)
+ OS=netbsd;;
+ *-cygwin*)
+ OS=cygwin;;
+ **-irix**)
+ OS=irix;;
+ esac
+ export OS="${OS}"
+ elog "Detected OS is: ${OS}"
+
+ if use amd64 && ! [ -n "${DUMA_ALIGNMENT}" ]; then
+ export DUMA_ALIGNMENT=16
+ elog "Exported DUMA_ALIGNMENT=${DUMA_ALIGNMENT} for x86_64,"
+ fi
+
+}
+
+src_compile() {
+ # The below must be run first if distcc is enabled, otherwise
+ # the real build breaks on parallel makes.
+ emake reconfig
+ emake
+}
+
+src_test() {
+ emake test
+
+ elog "Please, see the output above to verify all tests have passed."
+ elog "Both static and dynamic confidence tests should say PASSED."
+}
+
+src_install(){
+ emake prefix="${D}/usr" libdir="${D}/usr/$(get_libdir)" \
+ docdir="${D}/usr/share/doc/${PF}" install
+
+ sed -i "s|LD_PRELOAD=./libduma|LD_PRELOAD=libduma|" "${D}"/usr/bin/duma \
+ || die "sed failed"
+
+ dodoc CHANGELOG TODO GNUmakefile
+
+ if use examples; then
+ insinto /usr/share/doc/${PF}/examples
+ doins example[1-6].cpp example_makes/ex6/Makefile
+ fi
+}
+
+pkg_postinst() {
+ elog "See the GNUmakefile which will be also installed at"
+ elog "/usr/share/doc/${PF} for more options. You can now export"
+ elog "varibles to the build system easily, e.g.:"
+ elog "# export CPPFLAGS=\"-DFLAG\" (or by using append-cppflags)"
+ elog "# export DUMA_ALIGNMENT=${DUMA_ALIGNMENT} (Default is 16 for x86_64)"
+ elog "See more information about DUMA_ALIGNMENT from Readme.txt"
+}
diff --git a/dev-util/duma/files/duma-2.5.15-gcc6.patch b/dev-util/duma/files/duma-2.5.15-gcc6.patch
new file mode 100644
index 000000000000..7cffef2b4e2c
--- /dev/null
+++ b/dev-util/duma/files/duma-2.5.15-gcc6.patch
@@ -0,0 +1,22 @@
+--- duma_2_5_15/dumapp.cpp.old 2016-09-21 19:28:01.286332961 -0400
++++ duma_2_5_15/dumapp.cpp 2016-09-21 19:28:06.722907238 -0400
+@@ -190,7 +190,9 @@
+ * (11) = (a) ; ASW
+ */
+ void * DUMA_CDECL operator new( DUMA_SIZE_T size )
++#if __cplusplus < 201103L
+ throw(std::bad_alloc)
++#endif
+ {
+ return duma_new_operator(size, EFA_NEW_ELEM, true DUMA_PARAMS_UK);
+ }
+@@ -254,7 +256,9 @@
+ * (21) = (a) ; AAW
+ */
+ void * DUMA_CDECL operator new[]( DUMA_SIZE_T size )
++#if __cplusplus < 201103L
+ throw(std::bad_alloc)
++#endif
+ {
+ return duma_new_operator(size, EFA_NEW_ARRAY, true DUMA_PARAMS_UK);
+ }
diff --git a/dev-util/duma/metadata.xml b/dev-util/duma/metadata.xml
new file mode 100644
index 000000000000..8e3b12d940a2
--- /dev/null
+++ b/dev-util/duma/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>bircoph@gentoo.org</email>
+ <name>Andrew Savchenko</name>
+ </maintainer>
+ <longdescription>
+DUMA is an open-source library (under GNU General Public License) to
+detect buffer overruns and under-runs in C and C++ programs. This
+library is a fork of Buce Perens Electric Fence library and adds
+some new features to it.</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">duma</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/dwarves/Manifest b/dev-util/dwarves/Manifest
new file mode 100644
index 000000000000..c11fb83cd9a7
--- /dev/null
+++ b/dev-util/dwarves/Manifest
@@ -0,0 +1,11 @@
+AUX dwarves-1.10-python-import.patch 399 SHA256 d18a0e7d7d64679c045a1209e86aa338b6e51a45bd490c76dddda2f5815b770d SHA512 c2f5c1e99ef2ffeaf0e7962cbdf28817f6896b27ff6894571823c81ba08b9e9440af1a5b6ad82770b8e8d6ec99ec2ef8f46a98b67fea7cd4ed7e8c22e716e314 WHIRLPOOL f75d4edc76c6122a80b88f8ff4c0071df4019551ed9f75cd46b18480ae239728c4b8fe6b9e736dc3a2627cd17743e9c96893ddeac6cd575f57f2494d8fa7dc8e
+DIST dwarves-1.10_p20140618.tar.xz 105912 SHA256 1955f854206ad26a2949fd2ff20da2403db84393fe9db5769fafcbaacde001c6 SHA512 522a6d674da5cc2316c180bcb4e90419d5811ff34e6aeeef875950dbcc4c12ea5a133d159360629d687f93ae2db622bb87d9b94a747aade90a61b239b9137a2c WHIRLPOOL 63a4ff06e76e55a0bdd1feb3c5e3c450170f3fbfae80b3d61a36e69f0616ed90e2cdbe065f47cd08caaf8de57e2ed366ded8f581eb2b228bac917b23f66f8ab8
+DIST dwarves-1.10_p20160519.tar.xz 106532 SHA256 01e7d1bc697c21253e9eef4e481fbb55a35c59d4e5e1eade571ea26aab0fae0b SHA512 74797e934db900e78235705f70de45667e4ba7f56c0b7454d148365b8c87b617dcbf07fa12bdfdcaa2c129cd2111b029b458e71f77261b237de46fc2759a37da WHIRLPOOL 8e574aad93fd3c32ade8476622c9d853291e5596b91570141f345f70d51645b2ee04f84801b1cc1367b23150c1156f92c29efb3e21b2dcc3706a85de6584e385
+DIST dwarves-1.10_p20160630.tar.xz 106700 SHA256 6b0eec55f564cfa0d5c24eca3a31145643938a91962eefa1712b321776b4d6a1 SHA512 f33ffbca0ef0dd89add5275c01a35e7c6298c4dae73be9c197887c54608ffb0edb95b8792f8a51ab29d80051682752d6f1c2596a486f61bc18e6cd47e2b7e4b0 WHIRLPOOL f4deb074cbffcf386b2d355d0bcdf60dceb9fec2b6a0551e437f7c9e3533b24e1858ec313312ffb48d3fe0b223cf6e73f4824d59478d54e97447a002674ed71a
+EBUILD dwarves-1.10_p20140618.ebuild 1038 SHA256 7745c7ed79c035018e142889960455b4e5ae23cd161765694868d5ae13700e79 SHA512 6cc3333ecaf75f0cf910f2c364d56eace6c7ea89b52377a4d79275e485e01398745d5ac45cf0201a4cf3215b6a57d53b3e8a96dc0a65b2cc5b4e864824b11637 WHIRLPOOL 53c7dc2a76ebab39cb52d716afec3e62192dabf6d29767515213668330b69391a81015f481aed4a7aeacf96159d02b35c459d5d9801f09feff412b2eced9e881
+EBUILD dwarves-1.10_p20160519.ebuild 1038 SHA256 0354e441e3eb633abcb445acc5e8c4be4b9287359faf6ad1919d89cbb270208f SHA512 b639ba81e22f559b1547e78ca1ec945471b946050f6a61892321403c4e283388067a4870835bf8a8fccc0b0367f2e14c192642ff210530604945662c91840f26 WHIRLPOOL f8fc7016e85deacd47024c268416acc4575ef5836b9adf1b1c4d4d54e216e38743fd3e6460f34d22f2682ec1a5a58c7188c7179f7ec0b629f3d27a8e24e9484a
+EBUILD dwarves-1.10_p20160630.ebuild 1038 SHA256 0354e441e3eb633abcb445acc5e8c4be4b9287359faf6ad1919d89cbb270208f SHA512 b639ba81e22f559b1547e78ca1ec945471b946050f6a61892321403c4e283388067a4870835bf8a8fccc0b0367f2e14c192642ff210530604945662c91840f26 WHIRLPOOL f8fc7016e85deacd47024c268416acc4575ef5836b9adf1b1c4d4d54e216e38743fd3e6460f34d22f2682ec1a5a58c7188c7179f7ec0b629f3d27a8e24e9484a
+EBUILD dwarves-9999.ebuild 926 SHA256 70eee4dd78ce478a1ba34dcb8b6c116e849409c17f5db3c95254d79df9ed934e SHA512 dbed04e6cf4e2c5f0aed91ba35c299ad88f1a3bbf95f278ce48c4ee1b34751f6246f73d6fabc207fc83d6d4b28918c549634bffd1e621da2cb7e8a26d9f58ab9 WHIRLPOOL 5b044559dec099962c8e2c5994a25401d6ca2e24f86744fa18f978cf744a690dd7782a3218a084ad16411c39108d1f1c7d784ca931fa51bb90445bde8399716a
+MISC ChangeLog 3370 SHA256 1da233b5ec97a1720b1d4ef440d493a58f6976870e6634a28f0f8a783165fd9a SHA512 6dab70f7aab79504b96d900d8df649ac23be87d27caa9830f2a04e4acbd116a93fb0ed6d4e8ded0090b23799297e5095c54e185e9e7506900240c0bc628175d8 WHIRLPOOL 50dc9f9c424daa9a1f145f86a8e7a6dd3042b8dfda3739e99d0152f9e080797deb3be8cf89851005379b219076a514854adcf53438cb7e7d28d25776df62fa11
+MISC ChangeLog-2015 3845 SHA256 d2629f97e90d846f22bf5fa5d37a3fa3a07c48bd81dec0fbe0fc0e05e38aa764 SHA512 a3a788c46958426e5dd781fe237aee57d1fc0248d68a6d448cf18c34fad5e06dac912b4aa225c344e31d2c29e90d3c47e7f9a7a11fdf6bb67598057cf30afbf0 WHIRLPOOL 04d5706eb696e4dfa85ce2d799115a95c69bb91b2d53ec0db6fd22d8302f4dde494bb5b09f5b8eaff9a55af4bf9bc2c224add90eaab58b6b88b875423f66b302
+MISC metadata.xml 671 SHA256 45e08195ab76f25b7b5ada0bd2066d48c56b7ebeffa2bde65b171f7826628e8a SHA512 0cdd2c3e4e76a9017120a409aec1f70327363ee146e5fb74684d0e08e2836f0079cb97be1c4874445b271b98c13daf04f75ee481ef21607aac8976a78437af11 WHIRLPOOL 65baf82950288e0e4fe7479dafdb3e83574b4ca13fb15a0e2c573c3b72665b1c3316f1518c29cd59734f629ff9f4dfb5032cc52043100bf3813b0b3d1cbd6ae1
diff --git a/dev-util/dwarves/dwarves-1.10_p20140618.ebuild b/dev-util/dwarves/dwarves-1.10_p20140618.ebuild
new file mode 100644
index 000000000000..eb68a1845533
--- /dev/null
+++ b/dev-util/dwarves/dwarves-1.10_p20140618.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+inherit multilib cmake-utils python-single-r1
+
+DESCRIPTION="pahole (Poke-a-Hole) and other DWARF2 utilities"
+HOMEPAGE="https://git.kernel.org/cgit/devel/pahole/pahole.git/"
+
+LICENSE="GPL-2" # only
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="debug"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}
+ >=dev-libs/elfutils-0.131
+ sys-libs/zlib"
+DEPEND="${RDEPEND}"
+
+if [[ ${PV//_p} == ${PV} ]]; then
+ SRC_URI="http://fedorapeople.org/~acme/dwarves/${P}.tar.bz2"
+ S=${WORKDIR}
+else
+ SRC_URI="https://dev.gentoo.org/~flameeyes/${PN}/${P}.tar.xz"
+fi
+
+DOCS=( README README.ctracer NEWS )
+PATCHES=( "${FILESDIR}"/${PN}-1.10-python-import.patch )
+
+src_configure() {
+ local mycmakeargs=( "-D__LIB=$(get_libdir)" )
+ cmake-utils_src_configure
+}
+
+src_test() { :; }
+
+src_install() {
+ cmake-utils_src_install
+ python_fix_shebang "${D}"/usr/bin/ostra-cg \
+ "${D}"/usr/share/dwarves/runtime/python/ostra.py
+}
diff --git a/dev-util/dwarves/dwarves-1.10_p20160519.ebuild b/dev-util/dwarves/dwarves-1.10_p20160519.ebuild
new file mode 100644
index 000000000000..b9cd76e48e45
--- /dev/null
+++ b/dev-util/dwarves/dwarves-1.10_p20160519.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+inherit multilib cmake-utils python-single-r1
+
+DESCRIPTION="pahole (Poke-a-Hole) and other DWARF2 utilities"
+HOMEPAGE="https://git.kernel.org/cgit/devel/pahole/pahole.git/"
+
+LICENSE="GPL-2" # only
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}
+ >=dev-libs/elfutils-0.131
+ sys-libs/zlib"
+DEPEND="${RDEPEND}"
+
+if [[ ${PV//_p} == ${PV} ]]; then
+ SRC_URI="http://fedorapeople.org/~acme/dwarves/${P}.tar.bz2"
+ S=${WORKDIR}
+else
+ SRC_URI="https://dev.gentoo.org/~zzam/${PN}/${P}.tar.xz"
+fi
+
+DOCS=( README README.ctracer NEWS )
+PATCHES=( "${FILESDIR}"/${PN}-1.10-python-import.patch )
+
+src_configure() {
+ local mycmakeargs=( "-D__LIB=$(get_libdir)" )
+ cmake-utils_src_configure
+}
+
+src_test() { :; }
+
+src_install() {
+ cmake-utils_src_install
+ python_fix_shebang "${D}"/usr/bin/ostra-cg \
+ "${D}"/usr/share/dwarves/runtime/python/ostra.py
+}
diff --git a/dev-util/dwarves/dwarves-1.10_p20160630.ebuild b/dev-util/dwarves/dwarves-1.10_p20160630.ebuild
new file mode 100644
index 000000000000..b9cd76e48e45
--- /dev/null
+++ b/dev-util/dwarves/dwarves-1.10_p20160630.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+inherit multilib cmake-utils python-single-r1
+
+DESCRIPTION="pahole (Poke-a-Hole) and other DWARF2 utilities"
+HOMEPAGE="https://git.kernel.org/cgit/devel/pahole/pahole.git/"
+
+LICENSE="GPL-2" # only
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}
+ >=dev-libs/elfutils-0.131
+ sys-libs/zlib"
+DEPEND="${RDEPEND}"
+
+if [[ ${PV//_p} == ${PV} ]]; then
+ SRC_URI="http://fedorapeople.org/~acme/dwarves/${P}.tar.bz2"
+ S=${WORKDIR}
+else
+ SRC_URI="https://dev.gentoo.org/~zzam/${PN}/${P}.tar.xz"
+fi
+
+DOCS=( README README.ctracer NEWS )
+PATCHES=( "${FILESDIR}"/${PN}-1.10-python-import.patch )
+
+src_configure() {
+ local mycmakeargs=( "-D__LIB=$(get_libdir)" )
+ cmake-utils_src_configure
+}
+
+src_test() { :; }
+
+src_install() {
+ cmake-utils_src_install
+ python_fix_shebang "${D}"/usr/bin/ostra-cg \
+ "${D}"/usr/share/dwarves/runtime/python/ostra.py
+}
diff --git a/dev-util/dwarves/dwarves-9999.ebuild b/dev-util/dwarves/dwarves-9999.ebuild
new file mode 100644
index 000000000000..a82314e5ae50
--- /dev/null
+++ b/dev-util/dwarves/dwarves-9999.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+EGIT_REPO_URI="git://git.kernel.org/pub/scm/devel/pahole/pahole.git"
+
+PYTHON_COMPAT=( python2_7 )
+inherit multilib cmake-utils git-2 python-single-r1
+
+DESCRIPTION="pahole (Poke-a-Hole) and other DWARF2 utilities"
+HOMEPAGE="https://git.kernel.org/cgit/devel/pahole/pahole.git/"
+
+LICENSE="GPL-2" # only
+SLOT="0"
+KEYWORDS=""
+IUSE="debug"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}
+ >=dev-libs/elfutils-0.131
+ sys-libs/zlib"
+DEPEND="${RDEPEND}"
+
+DOCS=( README README.ctracer NEWS )
+PATCHES=( "${FILESDIR}"/${PN}-1.10-python-import.patch )
+
+src_configure() {
+ local mycmakeargs=( "-D__LIB=$(get_libdir)" )
+ cmake-utils_src_configure
+}
+
+src_test() { :; }
+
+src_install() {
+ cmake-utils_src_install
+ python_fix_shebang "${D}"/usr/bin/ostra-cg \
+ "${D}"/usr/share/dwarves/runtime/python/ostra.py
+}
diff --git a/dev-util/dwarves/files/dwarves-1.10-python-import.patch b/dev-util/dwarves/files/dwarves-1.10-python-import.patch
new file mode 100644
index 000000000000..e308ac6e2788
--- /dev/null
+++ b/dev-util/dwarves/files/dwarves-1.10-python-import.patch
@@ -0,0 +1,15 @@
+https://bugs.gentoo.org/show_bug.cgi?id=423817
+
+--- dwarves-1.10/ostra/ostra-cg
++++ dwarves-1.10/ostra/ostra-cg
+@@ -10,7 +10,9 @@
+ # under the terms of version 2 of the GNU General Public License as
+ # published by the Free Software Foundation.
+
+-import sys, datetime, os, ostra
++import sys
++sys.path.insert(0, "/usr/share/dwarves/runtime/python")
++import datetime, os, ostra
+
+ class_def = None
+
diff --git a/dev-util/dwarves/metadata.xml b/dev-util/dwarves/metadata.xml
new file mode 100644
index 000000000000..28be736073c3
--- /dev/null
+++ b/dev-util/dwarves/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>zzam@gentoo.org</email>
+ <name>Matthias Schwarzott</name>
+ </maintainer>
+ <longdescription lang="en">
+ The more-than-seven dwarves is a collection of tools that allows
+ to inspect and query the DWARF2 information present in ELF files
+ built with full debug information. These tools include pahole
+ (Poke-a-hole) and codiff, and were originally designed to inspect
+ the Linux kernel and its modules, but can be used in for
+ user-space software too.
+ </longdescription>
+</pkgmetadata>
diff --git a/dev-util/dwdiff/Manifest b/dev-util/dwdiff/Manifest
new file mode 100644
index 000000000000..c17b324535d5
--- /dev/null
+++ b/dev-util/dwdiff/Manifest
@@ -0,0 +1,8 @@
+DIST dwdiff-2.1.0.tar.bz2 79224 SHA256 45308f2f07c08c75c6ebd1eae3e3dcf7f836e5af1467cefc1b4829777c07743a SHA512 63e5ea3ae510c84fa2353da55bbc3cfac3a3753e1cebfb42c387218289a5e19d8e68af663181720a55eca05e49ef075db7d5dafda9dc4d57b9af503553ae9021 WHIRLPOOL 74ceba5cc7c20e0ab6ee09b62f7e8b07a1b8321bbe60ca7c3791c35176ba7137ddf17b1c471ff5ac0586ad0455e67968c71bf00f2de7cb137720b88a85c8f181
+DIST dwdiff-2.1.1.tar.bz2 79628 SHA256 9745860faad6cb58744c7c45d16c0c7e222896c80d0cd7208dd36126d1a98c8b SHA512 b3392ef01c0701ea7738f1b539dab81727735e5de8ea77b56feae4e2f64dbda0155b479d7be0eedb65fc56ebc8d1a22c1ca67075abdec54205ad9c305b3751b7 WHIRLPOOL 96bb2a7f7a8afe857a21af4cec388c5663fa90bd87a82e99fc614106171a562b7183f44170a9eb5c8839519a71dcfff2e679e25890c0d58dc22c650e957f046d
+EBUILD dwdiff-2.1.0-r1.ebuild 842 SHA256 a9307e23f3457a860ffd38d3fa955fc050646c39a01b0fc3f7d561cf5f9e4232 SHA512 49a21c1299d329a55b66d4b10075c20dd786b60f6284421b09e9e2d50a1e8e39fd1401af6ace261a173421d2ca611c7c7907593acb8ac5f066f75a99ffd311c1 WHIRLPOOL 7ec1353b87ebe30f88220659ff1906c613c48c7fc19bece47e02700410faaff21881700d7cd99dd2216698b6379f9e16eb878b3c067a1743e0862e572070bb98
+EBUILD dwdiff-2.1.0.ebuild 855 SHA256 e3248b171ebe0affc623705660ac4d127c10791e67970422e7033d406872f0b3 SHA512 c3b772919b75bf4f183f0503ae796c031f10c2dd03d90a742ade95bc7d70baaaa153390a4230467fb2ad556d4dee9fe25e485cff3f50b5b4e26879f0e55c4ee2 WHIRLPOOL 868277ee0e3707f50b65bf9ec68de8b94a4d584e3628a29635756246ae6891f02373437374b0eaf18ba288fff39725b655d66d90a095b5d8411f08adeef40952
+EBUILD dwdiff-2.1.1.ebuild 842 SHA256 98d62ce5c2be5528a2c9c3c1c7dd000335e7de87fd328adcd901957e24562a50 SHA512 c47436a7a4240eddc900ac51c4bc15a31de7df5a299b5516fddfb17aadae6996e77a04c7d720359380a9dd10527166fb7330626d0aa39af510752fc9736b78c0 WHIRLPOOL 0e4e6fbce7e7b809aef4fc76d84fff0ccdfcc79723cb54e6c7a53d420c1f6541992ce85373f24cd020d7b4985255928f45299f5cd3c6f17f2db73a2bebda2460
+MISC ChangeLog 2918 SHA256 d48617223ffb92d5167fcf64dd331b944a5e82df5b9bd56a305704c053f343f6 SHA512 bfb927e15ee98fe3f926c629ee3f83a2cc0f5d6e69714aa91601face97938bc8aa275679ac191c770386a43bbe0c657d63f5cc34d827945bccd4e1f73fcd2928 WHIRLPOOL adb8e214b701096509ebc42b87367565ef802cf62ae8622b33567b3f6a48d7ea14f29bab43c4a753f0092c7f269b2da0db365bf6416f064447e90db35620dd40
+MISC ChangeLog-2015 2536 SHA256 653e52a20a6e5872b1ba282a186623d3837e6f5f00873b8d2a4e0923d0edd813 SHA512 85dbc5e919e203a35cc25e397496312bd4ce3c029f9c11cdb215d3420b23285ac45d888f3c6bd74c6ca076168416138671ecc9e14a6de2997ee11c285e0d9719 WHIRLPOOL 03c3624e9c78e79a856b146e4d09593142cb4ca87314354d84064ec9faa499de21b462c6792ce2f2fcc2d200909023c49702e9c712467e7999b3a92ee766d841
+MISC metadata.xml 220 SHA256 998ce4afb847c8594ee92e054f8a06ae3de375d38b2e400eebab911ebbad60a8 SHA512 1db105eebacb6c7d44fd17746981e6e24badb2e81327410aa935a7603379cfcc8f3cf27dcf4e9d870cea2f73f6a15cf052e3e785205095ea9a93d72980ff71cc WHIRLPOOL 23c78e4c05afc8a04239236928ca26e539b0a969f44389b90a34fef3f4a57f18d9db2838d3df439c482cd4b89ce8b959dde5e83500c44ebd2af453629ef79a3d
diff --git a/dev-util/dwdiff/dwdiff-2.1.0-r1.ebuild b/dev-util/dwdiff/dwdiff-2.1.0-r1.ebuild
new file mode 100644
index 000000000000..cd45b24397af
--- /dev/null
+++ b/dev-util/dwdiff/dwdiff-2.1.0-r1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="diff-like program that operates at the word level instead of the line level"
+HOMEPAGE="http://os.ghalkes.nl/dwdiff.html"
+SRC_URI="http://os.ghalkes.nl/dist/${P}.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE="nls"
+
+CDEPEND="dev-libs/icu:="
+
+RDEPEND="
+ ${CDEPEND}
+ sys-apps/diffutils"
+
+DEPEND="
+ ${CDEPEND}
+ nls? ( sys-devel/gettext )"
+
+src_prepare() {
+ default
+
+ sed -i \
+ -e '/INSTALL/s:COPYING::' \
+ Makefile.in || die
+}
+
+src_configure() {
+ ./configure \
+ --prefix=/usr \
+ $(use_with nls gettext)
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}"
+}
+
+src_install() {
+ emake prefix="${D}/usr" docdir="${D}/usr/share/doc/${PF}" install
+}
diff --git a/dev-util/dwdiff/dwdiff-2.1.0.ebuild b/dev-util/dwdiff/dwdiff-2.1.0.ebuild
new file mode 100644
index 000000000000..bc7474f29dea
--- /dev/null
+++ b/dev-util/dwdiff/dwdiff-2.1.0.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils toolchain-funcs
+
+DESCRIPTION="A front-end for the diff program that operates at the word level instead of the line level"
+HOMEPAGE="http://os.ghalkes.nl/dwdiff.html"
+SRC_URI="http://os.ghalkes.nl/dist/${P}.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE="nls"
+
+COMMON_DEPEND="dev-libs/icu:="
+RDEPEND="${COMMON_DEPEND}
+ sys-apps/diffutils"
+DEPEND="${COMMON_DEPEND}
+ nls? ( sys-devel/gettext )"
+
+src_prepare() {
+ sed -i \
+ -e '/INSTALL/s:COPYING::' \
+ Makefile.in || die
+}
+
+src_configure() {
+ ./configure \
+ --prefix=/usr \
+ $(use_with nls gettext) || die
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}"
+}
+
+src_install() {
+ emake prefix="${D}/usr" docdir="${D}/usr/share/doc/${PF}" install
+}
diff --git a/dev-util/dwdiff/dwdiff-2.1.1.ebuild b/dev-util/dwdiff/dwdiff-2.1.1.ebuild
new file mode 100644
index 000000000000..252cdd66239f
--- /dev/null
+++ b/dev-util/dwdiff/dwdiff-2.1.1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="diff-like program that operates at the word level instead of the line level"
+HOMEPAGE="http://os.ghalkes.nl/dwdiff.html"
+SRC_URI="http://os.ghalkes.nl/dist/${P}.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE="nls"
+
+CDEPEND="dev-libs/icu:="
+
+RDEPEND="
+ ${CDEPEND}
+ sys-apps/diffutils"
+
+DEPEND="
+ ${CDEPEND}
+ nls? ( sys-devel/gettext )"
+
+src_prepare() {
+ default
+
+ sed -i \
+ -e '/INSTALL/s:COPYING::' \
+ Makefile.in || die
+}
+
+src_configure() {
+ ./configure \
+ --prefix=/usr \
+ $(use_with nls gettext)
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}"
+}
+
+src_install() {
+ emake prefix="${D}/usr" docdir="${D}/usr/share/doc/${PF}" install
+}
diff --git a/dev-util/dwdiff/metadata.xml b/dev-util/dwdiff/metadata.xml
new file mode 100644
index 000000000000..294c350c6960
--- /dev/null
+++ b/dev-util/dwdiff/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>monsieurp@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-util/edb-debugger/Manifest b/dev-util/edb-debugger/Manifest
new file mode 100644
index 000000000000..e5767dfaac68
--- /dev/null
+++ b/dev-util/edb-debugger/Manifest
@@ -0,0 +1,4 @@
+DIST edb-debugger-0.9.21.tgz 1042641 SHA256 2686619e1288152033d4c9c9a2568cb12841d3854bba8815c37ce77d3bd11706 SHA512 de921fa866da7d83efad92797bebcac3544ba1ffd5b3a015865b9bd554e8bc2e43539a9e4648517aff37f7d2497fdc4e1f6dc63df5cb0663012662626b1964f7 WHIRLPOOL 00c77e770c7fdc68644fcef732dc1c93ca6327f6543e80f9b628630ee6059a70bb51f4a290f73ae7502cfabad8f7eefca9a3e8762c778059e5eabeb439baed8b
+EBUILD edb-debugger-0.9.21.ebuild 2109 SHA256 39e87b0b18b10b866f905f4c48d923177a5e10dfceb97e20d8d82f88434a6d24 SHA512 d1d932deeb4109438e97c4b8417b3fa493d40a86e3582ace599097047691d1c6148ac3b62ec1b500af25171db3cfd790a8b67bb04289ae5ac7c819b0dc836def WHIRLPOOL 806f8854fb7c566a6ba4f08c900e3583f82f2379971ade30c947b26e5088e5c3544990b35a36b1d04262e0a9857b3b3b33dcef51f9baa0bdd18ad8da47bb2907
+EBUILD edb-debugger-9999.ebuild 1238 SHA256 ca21234b9163c55ba010a4f1ed66ccdae6210956ce3dbb0516c640dec567c017 SHA512 24763b7327d5d23dff879bd230c0c56c0a88dd6a7fb94c13699ce6b45c371bbf6d27c8b72736e26f25877758f004e4d46997858349a36b00ef96d701bddb459b WHIRLPOOL 4d29b77e620d8d36347ecd0cd9e3ebed188fe293b8c00a45ac16a5595a8c74639c02cf5b82b25e9953a038ba4fddb4a9c1791eeaddcd8c83ef28d9028187e0ee
+MISC metadata.xml 688 SHA256 5e4c41c45b13cea524e508f1f55ea8f55c7c3ee1b07bf2f0176902e1f270dfa2 SHA512 f83568251c245ecc4b3c2aebebd461e5ef765f79736a97c230bd58bdfa4da3643aa2e9fc6ca2b80eacf81ec2af6c1102c5f432002505ac6ad7977675aa629d65 WHIRLPOOL 83037a1b64b0fdb75cc9cf9bebd817afdff4942c1ada5a565114281d704139c5087c559b0ef136537593b9bf25c6861875a347801f5e5da9d95d1dcf210579d8
diff --git a/dev-util/edb-debugger/edb-debugger-0.9.21.ebuild b/dev-util/edb-debugger/edb-debugger-0.9.21.ebuild
new file mode 100644
index 000000000000..8d159b715b63
--- /dev/null
+++ b/dev-util/edb-debugger/edb-debugger-0.9.21.ebuild
@@ -0,0 +1,80 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils eutils
+
+DESCRIPTION="edb is a cross platform x86/x86-64 debugger, inspired by Ollydbg"
+HOMEPAGE="https://github.com/eteran/edb-debugger"
+
+LICENSE="GPL-2+"
+IUSE="graphviz legacy-mem-write pax_kernel"
+SLOT="0"
+
+SRC_URI="https://github.com/eteran/edb-debugger/releases/download/${PV}/edb-debugger-${PV}.tgz"
+KEYWORDS="~amd64 ~x86"
+
+S="${WORKDIR}/edb-debugger-${PV}"
+
+RDEPEND="
+ >=dev-libs/capstone-3.0
+ graphviz? ( >=media-gfx/graphviz-2.38.0 )
+ dev-qt/qtwidgets:5
+ dev-qt/qtxml:5
+ dev-qt/qtxmlpatterns:5
+ dev-qt/qtnetwork:5
+ dev-qt/qtconcurrent:5
+ dev-qt/qtgui:5
+ dev-qt/qtcore:5
+ "
+DEPEND="
+ >=dev-libs/boost-1.35.0
+ virtual/pkgconfig
+ ${RDEPEND}"
+
+src_prepare(){
+ #Remove this in a future version; There won't be any edb48-logo.png
+ sed -i '/edb48-logo/d' CMakeLists.txt || die
+
+ #Make the desktop's entries somewhat cuter
+ sed -i -e 's/GenericName=edb debugger/GenericName=Evan\x27s Debugger/' edb.desktop || die
+ sed -i -e 's/Comment=edb debugger/Comment=edb is a cross platform x86\/x86-64 debugger/' edb.desktop || die
+
+ if ! use graphviz; then
+ sed -i '/pkg_check_modules(GRAPHVIZ/d' CMakeLists.txt || die
+ fi
+ cmake-utils_src_prepare
+}
+
+src_configure() {
+ mycmakeargs=(
+ -DCMAKE_INSTALL_PREFIX=/usr
+ -DQT_VERSION=Qt5
+ )
+ if use pax_kernel || use legacy-mem-write; then
+ mycmakeargs+=( -DASSUME_PROC_PID_MEM_WRITE_BROKEN=Yes )
+ else
+ mycmakeargs+=( -DASSUME_PROC_PID_MEM_WRITE_BROKEN=No )
+ fi
+
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cd src/images/ || die
+ newicon "edb48-logo.png" "edb.png"
+ cmake-utils_src_install
+}
+
+pkg_postinst() {
+ if use legacy-mem-write; then
+ ewarn "You really do not want to turn on legacy-mem-write unless you need it."
+ ewarn "Be sure to test without legacy-mem-write first and only enable if you actually need it."
+ else
+ ewarn
+ ewarn "If you notice that EDB doesn't work correctly, enable legacy-mem-write USE Flag"
+ ewarn "Please Report Bugs & Requests At: https://github.com/eteran/edb-debugger/issues"
+ ewarn
+ fi
+}
diff --git a/dev-util/edb-debugger/edb-debugger-9999.ebuild b/dev-util/edb-debugger/edb-debugger-9999.ebuild
new file mode 100644
index 000000000000..800b7d58d535
--- /dev/null
+++ b/dev-util/edb-debugger/edb-debugger-9999.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils git-r3
+
+DESCRIPTION="edb is a cross platform x86/x86-64 debugger, inspired by Ollydbg"
+HOMEPAGE="https://github.com/eteran/edb-debugger"
+
+LICENSE="GPL-2+"
+IUSE="debug graphviz"
+SLOT="0"
+EGIT_REPO_URI="https://github.com/eteran/edb-debugger.git"
+KEYWORDS=""
+
+RDEPEND="
+ >=dev-libs/capstone-3.0
+ graphviz? ( >=media-gfx/graphviz-2.38.0 )
+ dev-qt/qtwidgets:5
+ dev-qt/qtxml:5
+ dev-qt/qtxmlpatterns:5
+ dev-qt/qtnetwork:5
+ dev-qt/qtconcurrent:5
+ dev-qt/qtgui:5
+ dev-qt/qtcore:5
+ "
+DEPEND="
+ >=dev-libs/boost-1.35.0
+ virtual/pkgconfig
+ ${RDEPEND}"
+
+src_prepare(){
+ #Make the desktop's entries somewhat cuter
+ sed -i -e 's/GenericName=edb debugger/GenericName=Evan\x27s Debugger/' edb.desktop || die
+ sed -i -e 's/Comment=edb debugger/Comment=edb is a cross platform x86\/x86-64 debugger/' edb.desktop || die
+
+ if ! use graphviz; then
+ sed -i '/pkg_check_modules(GRAPHVIZ/d' CMakeLists.txt || die
+ fi
+ cmake-utils_src_prepare
+}
+
+src_configure() {
+ CMAKE_BUILD_TYPE=Release
+ use debug && CMAKE_BUILD_TYPE=Debug
+
+ mycmakeargs+=(
+ -DCMAKE_INSTALL_PREFIX=/usr
+ -DQT_VERSION=Qt5
+ )
+
+ cmake-utils_src_configure
+}
diff --git a/dev-util/edb-debugger/metadata.xml b/dev-util/edb-debugger/metadata.xml
new file mode 100644
index 000000000000..9be9b854d3f5
--- /dev/null
+++ b/dev-util/edb-debugger/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>petross404@gmail.com</email>
+ <name>Petros S</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <use>
+ <flag name="legacy-mem-write">Probe if writes to /proc/PID/mem are broken.</flag>
+ <flag name="graphviz">Add support for the Graphviz library</flag>
+ <flag name="pax_kernel">Enable building under a PaX enabled kernel</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">eteran/edb-debugger</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/editorconfig-geany/Manifest b/dev-util/editorconfig-geany/Manifest
new file mode 100644
index 000000000000..b88ad53452af
--- /dev/null
+++ b/dev-util/editorconfig-geany/Manifest
@@ -0,0 +1,4 @@
+DIST editorconfig-geany-0.1_p20160725.tar.gz 10336 SHA256 9674a2d1575899c7fe65e8bfe78aed04bd063d5af02de343e85a1a8fbdbc24b0 SHA512 ac8c4d46c17a5592c8f75a4100cfa1eaa55cb5333a1a6330ae84249d6df3b9ae4b454ee9c68b88ad777f5bea22ad1f3ce0a63bf89a1dd41d13abcfbd2a585734 WHIRLPOOL 9b4b28dd995b09141c88da1df680d5ceb3d0cec09a1c5fbc3b357c8d3d886b9308ac8260cefe321b958759aa1bae03f42303dd95e8a8853d69f0a08281aa26f2
+EBUILD editorconfig-geany-0.1_p20160725.ebuild 939 SHA256 5228c698ef7f369653daab4b495c0b7c5c0732cc78fdab20fa3ba43ed17b914c SHA512 f4b376e2e4900b8c9fd1e23de8fe848ab77c8ae6a3384c964b0692fe4be07e358995f1baef3c3916de867257598939526091ebdd36208b829e96b3006d034461 WHIRLPOOL e4345107cac76fc47ec7a4616694cd2ce15b9fe3cb3c446349791ae3c64311809635f71247a979d82e2bc1e0768492d59ffa70aadfb82c66c0fd7bd47f80c8c2
+MISC ChangeLog 511 SHA256 1dfa249eee5e9f21da87f4e57d0d88e970732424c0e9f514cdd2284d2af14912 SHA512 804a87efc298627edaaefbebd269abeeccb15333add620aca6a878b922828f67d658d13f5826d74172517b03c0defba1f91709d65aace5f2daa40492f30e9c43 WHIRLPOOL c201181522edd5fcaa6f821f23813a0b35e21fa192abbd662094f62b37193c7e0c7b8d3c16c6d6f15df35377b9feb13306875bea9a0c9b57f6c8d596ef8a737a
+MISC metadata.xml 314 SHA256 76e44bf14b55026a28a792d0d4866a42ed9c2370958378ad48aed019990e943a SHA512 c6fe2f783aaacb434eca03948af5b32f1b3cd96d701c5f237ff8b0d4ff068ec4ec67daf1715801087b3e54df5451140680caeccac53cc5aae6c0c4a6ea872124 WHIRLPOOL 54a77a45758fdaadc39ee969f09ca907db3d72eaea417a324fea2c9a19dc0208aecf414f7634abb264fecdf9af75c1c5b10cc974b7e582239409b8e212d8b5ae
diff --git a/dev-util/editorconfig-geany/editorconfig-geany-0.1_p20160725.ebuild b/dev-util/editorconfig-geany/editorconfig-geany-0.1_p20160725.ebuild
new file mode 100644
index 000000000000..1e8e68705b55
--- /dev/null
+++ b/dev-util/editorconfig-geany/editorconfig-geany-0.1_p20160725.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit toolchain-funcs
+
+DESCRIPTION="EditorConfig plugin for Geany"
+HOMEPAGE="https://github.com/editorconfig/${PN}/"
+EGIT_COMMIT="9dce3bb476728a8f4124aefe12e0a4ffc8567dff"
+SRC_URI="https://github.com/editorconfig/${PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+CDEPEND="app-text/editorconfig-core-c:="
+DEPEND="${CDEPEND}
+ dev-util/geany"
+RDEPEND="${CDEPEND}"
+S=${WORKDIR}/${PN}-${EGIT_COMMIT}
+
+src_prepare() {
+ eapply_user
+ sed -e "s|^\\(EDITORCONFIG_PREFIX =\\).*|\\1 ${EPREFIX}/usr|" \
+ -e "s|^\\(CFLAGS =\\).*|\\1 -fPIC $("$(tc-getPKG_CONFIG)" --cflags geany geany) ${CFLAGS}|" \
+ -e "s|\`pkg-config[^\`]*\`||" \
+ -i Makefile || die
+}
+
+src_install() {
+ exeinto "$("$(tc-getPKG_CONFIG)" --variable=libdir geany)/geany"
+ doexe ${PN}.so
+ dodoc README.md
+}
diff --git a/dev-util/editorconfig-geany/metadata.xml b/dev-util/editorconfig-geany/metadata.xml
new file mode 100644
index 000000000000..fdf1680257c9
--- /dev/null
+++ b/dev-util/editorconfig-geany/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <upstream>
+ <remote-id type="github">editorconfig/editorconfig-geany</remote-id>
+ </upstream>
+ <maintainer type="person">
+ <email>zmedico@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-util/egypt/Manifest b/dev-util/egypt/Manifest
new file mode 100644
index 000000000000..b7976fd14eeb
--- /dev/null
+++ b/dev-util/egypt/Manifest
@@ -0,0 +1,5 @@
+DIST egypt-1.10.tar.gz 4670 SHA256 b5586ad65a491c9cb35252fd45ebbd22b926fd3cc1947513a4dfa58fb6911c64 SHA512 81e98b3d379301f1c0919aeb46d45264772b7d9d77277cb842c8ed7b944d61918e530f4e9e2c56451445dc2c6a312fd76086a81e193540baa3d56f3bb56b438d WHIRLPOOL 4be11ef2bdca52fca70d3b3ef89d4d9215c86681361e90d11c2d18f60a571d792645d909d64897a83274796543af3180fecb62b94c9044cfff2ff9abe44c4903
+EBUILD egypt-1.10.ebuild 382 SHA256 c3c585444b25139d6eb2d713be76ae68b3e9bdc0d23643b6dd3a7375621c17ad SHA512 93e0fb2570325594814335b10a69595664e34c6695a1af1425e4c253d5f575a6f923433a35fcf2535cc098680678fc0d374cae65f3b3ce2f759e334a637d199b WHIRLPOOL 0753909f88ad05aedbbd3ddb615e05288aef3c8807fc15d6650c097fcd46df4b3e5f77a325ad20eb95f47ff61bed4c6c97cb3705ea404cd398bf5c5371bde5c8
+MISC ChangeLog 2514 SHA256 01b3107da09430267c7c87b31125e4b05c7a1f66a37ee16b76d68798bf31375f SHA512 f2c19b593276d4af5c82254ab176f9476b93ca72d86713882bc5b85a268e6c371d4bd02253b342eba6e7b9edef688c8d0f82fbd4a31e15576efce59edb0e0f81 WHIRLPOOL 58ac05b43da183b43a8a39e2a0b12eed87d6ff78027f612b18db1c82c87da23f7d6b00574ff3ebf6df3887c8f37819dbaeb6aa6f94e89f46ee89454a5886889e
+MISC ChangeLog-2015 1369 SHA256 342193be861e8de3c19fb9f8e13ccabb191f2438291e423b11340ebc2a0960d5 SHA512 26758a5c1d9c1d484a85c189c3cad35485ec0af3d09206e6bd350679e1eb645fc1a70acf3e550b4cf89b7efd972acb4616a1c40a1f6ee7fbdc18117f7bb18423 WHIRLPOOL 6bfcb4195cc4aff221a8d2282515f9a010382487ef91805234e2e445fd9c38caa42390a0ac7909f29360bc71071ddf56142751a3151cf43962fec6510f1e5611
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/dev-util/egypt/egypt-1.10.ebuild b/dev-util/egypt/egypt-1.10.ebuild
new file mode 100644
index 000000000000..5001a75c53a8
--- /dev/null
+++ b/dev-util/egypt/egypt-1.10.ebuild
@@ -0,0 +1,15 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit perl-module
+
+DESCRIPTION="devilishly simple tool for creating call graphs of C programs"
+HOMEPAGE="http://www.gson.org/egypt/"
+SRC_URI="http://www.gson.org/egypt/download/${P}.tar.gz"
+
+LICENSE="|| ( Artistic GPL-1+ )"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
diff --git a/dev-util/egypt/metadata.xml b/dev-util/egypt/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/dev-util/egypt/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/dev-util/electron/Manifest b/dev-util/electron/Manifest
new file mode 100644
index 000000000000..37cca30161f0
--- /dev/null
+++ b/dev-util/electron/Manifest
@@ -0,0 +1,84 @@
+AUX chromium-56-gcc4.patch 1933 SHA256 5c1eb9e244b7ee3981688ea6fb43836a9d74280f2185893a0048bd4e18d4c71e SHA512 85b59daa229da2619f7869e600bfc15962c4fdc15c30cf3d314852a8a1138fcc3765e65f0e450c6976b82559ffa43d0f3b5c006ecf36a7585e344e4c0994f999 WHIRLPOOL 82db0b05bdc5694518ba5164c8bb281ee8cd7efd325af191473e70d020854b2a7ffc4211fff95512da574cbe886d07ed8387c425ee95878508221d64891e4f59
+AUX chromium-FORTIFY_SOURCE.patch 1050 SHA256 ffc664a90b68600de2d80a4064df25ec6f34fb4443e96ef2f0741ccb49d90a4b SHA512 d404976ebeca7ffe4e07770055aa9ec8db8761fcbbbf1e463523232a135e11d201c6263d468124190372b3178fda4ea36bdf9be34c50183b7ca93f14ab9d83b0 WHIRLPOOL 57a6556d206918cb87a8dbf1c501b54227f6a7aa26e10ba8220ff713be71042b2fac0aa9c120f04311a53182abbdabaeeb982869f51e2335e85a08ec0a803bc5
+AUX chromium-cups-fix.patch 276 SHA256 3d45b35c0dd02b13ce738080db2bab7d32f3c6815c4323060f5e469d259548bb SHA512 20fef0212bd51a358149c8b6d17060707f290b502b2ea7f5561882444465d2e3c1c0baf8c91071ad80ec16622725b5dd4bda8df15c321541caeeeaa6453cb606 WHIRLPOOL 70351b44408948d80de800faa7647fd05cb0d19ce3a0b8084ffe5ea8a7ccb47116e3c311306376e68dba7e9ec8ff8ae742bd418704ef3d4cfa3a9c6a4440d045
+AUX chromium-disable-widevine.patch 266 SHA256 677418733c5ad59913e39eedd9e90b57afdea04566bae6c6f2e5c0d8de40f297 SHA512 51d53ef41fa52314c02fbd4dd3b521b7ab317f51a0ca487973b6a864a129659ecc43d50ff436e78ef582c2edab504c457d1b74313002c28ac0b7864c43c14275 WHIRLPOOL 1ba799eb3091e63f9dbae06df479b332128f4c8c0912491f35702229c16140942835eaab61ad6bab587f508d7ce0c79f840bfd063c6e0ddc7c3cbd7e3e836dd2
+AUX chromium-ffmpeg-license-r0.patch 1855 SHA256 6b844ebf2c2216911b131146f3a01fb84468ad4f9f4cee25d8d3861a67f77c34 SHA512 4b8c2beb79ee80efed32fa69ee3790fb058b0747c61b1f8ff0584d08d3db25e0216613808a16c4c8012e3c747f8936a8d548d7157fcd26ad0be1d45f7ae65b31 WHIRLPOOL 0a39a1b61a038904e501aa335fe29068de126556c706b218a5bffbac356998855aadda83e0d7e46bda40cea50374bd5c157d5bd2b85181a5025a269c3e5e58ea
+AUX chromium-glibc-2.24.patch 685 SHA256 6953651c002efe7fca8cda3143e963037ed38a0a4bc7ccb79304637c45340047 SHA512 73a1f271e227f3a906d1a9e8f5e84327e976e3d2ecd3c4543b4136bd78f89d4dfa31374b1a30dc1e6fa0b16bd4a174cc7e77d22ce4fdef85533611ed73a37905 WHIRLPOOL 7b81b3b28663bd6e4cb9b58b2845321803a886fbcf3e1509ab46fe90772145a10f092c846e8960250274b3af049e7a73ea708f70f69a21b7f2ccf5447527f4cf
+AUX chromium-icu-58-r0.patch 2772 SHA256 f91180e89af52ebda009050b280b081d19235f602ad155741e8d91ecd2ed1777 SHA512 c8d4072411a878f501f737d48d6117f36616d08b336676b958823d723a9a88bd762b82b0bb97f49f6ca245e53c57bf69ebfc14361ddcb8aff81d7ab5309a68de WHIRLPOOL f976880489121fa5cefb61eee6c8c2892d50e05ddf8e5fcfcd46e594f86f60fbeb1ad6f353ce0ba9ab366220826eac2e5f6bb0c33607c4b52586772d4f06c6c1
+AUX chromium-icu-58-r1.patch 5543 SHA256 b2a8f29c9579c9c9e18543344f50398f5d5d043af3517a0d2ebbaf520714b6c8 SHA512 bbf2d8015cb7dd1178ad8392d5bcbdc9e63a1db628098a35b1a362625b18c1752c7832b8bce43349abf423cde57ad51ecabfebefe062766a39d66540669b08b7 WHIRLPOOL 690c9428ee51af0286a3d17f6b01a3431c07321de5e59f07b08342b84ec5bbdf53faaa6b4e9d82545d47b30c5a425ce6a2fc8e9320f4c5343fb4242327d4a102
+AUX chromium-jinja-fix.patch 833 SHA256 966b65ecfb6f220afefb13f7605d3b1350418d2e1dd4592b2d388fe47a117363 SHA512 cbff41b68d090fac587cb3647e6d6e5b1aa514b842195b459ff79142a0da982a1f3462f2cc02f005064e52fde44d29eff92b072658219d4a6ae88bab57d26eee WHIRLPOOL 56c12ad59d003eda4edef1b14f5e0b6bde4dcf026f8459d929a09103d7216bdeae1b6f44f721a29f0fef9fe600192adce15a20cc6f3c141788e87a46430c2074
+AUX chromium-last-commit-position-r0.patch 732 SHA256 fc6b422004d65e316d093e75547f6b7670ada7f0e969ce0f6aeeabb281a17e2d SHA512 303fff289b1b7af6d42bccad65e45395017b0e3694c352a1121b0374a3c9b1ff81baec31306e7773b5160b83c9f88b3fb9717c0e6c183508abf0716757ef523f WHIRLPOOL 47caac1bf9f34a5673f22d175c0112fcd7492bcaab3d0c1908519bbecacbcdc4c3051c053dd8ed811ca965bd05b528b464fd6ef78b843fd83286274c468e2eea
+AUX chromium-linker-warnings-r0.patch 650 SHA256 f4fe415c84cb0e5fec54f5d8bfa97f6f1c936eac51bbfc50e11d2a48c3827ad3 SHA512 566fe00fa7c31d6552df1dfb55280c08c72c76e459ba30acf5b980349dc91204e521787230eec546bc8d3414be8f0b666d9925f6645e5f527a6e1ce2a8198f72 WHIRLPOOL 70680572b8c88e2c6efd55483a6e78e61a8de9262ad0896f218598bea4ff0a0d9d5b97cfad34cf8eb2420a9d07b84c516222f68e879a49d6f55d4190ed5a6d0a
+AUX chromium-lto-fixes-r1.patch 1188 SHA256 1d23227e5c15148afe593ea16546feaa5e6c38c756310a35a146f8b8730ce877 SHA512 684c2a95a46bc4c5cd5b3f6d1b7b7b8c91cb1bb3eda32e49d82697668b35aaa20b54d92b7b3fefae095ce1db91b4ca61eba008e2345941a109a7601456158147 WHIRLPOOL fde65a5628498e5179878e25db09c2ef7abe1101e7b7cacbaa3ca071da924c01552e4d9335e7b4d55e0213a21584c2bbb15acf0ca8960cfad05c1851c67d4983
+AUX chromium-lto-fixes-r3.patch 3426 SHA256 a1dc5b32c9607ad4b6a7ee8a1076b41018545d39e814db8b989893fe98283881 SHA512 4222712141637e620b43bc7c19d87a1eb48d19eaa4bd924156cf2e15bf4165faa03e1a664b06e8bd897f56fc7d4ccfce5014af1a17f45fc1544d2338e59895ef WHIRLPOOL 382bb873195857caf9f744fd75d6aca1a34ef0c7d5437e73934af2ff9c7c8b4d52c05add36d461c3fc86b84a597509f2b6853db696092d99cc4071c8d9d6a454
+AUX chromium-lto-fixes.patch 901 SHA256 214a63692d0c1471d768d1591e1a596b9cc7d52434dea613f26e25fdba6818e9 SHA512 07c324db940c72807d9ffb16ea41e67c0dc4bfdb676a8d98bbe5d5d0919bd4fa686bb1b4c16627c8516e82a7646383a76a99f96a471f923544cb86389fbb6c24 WHIRLPOOL 24dcbcb93af3e164a608e3deda8c0435efd0930a836b5212447c1915e30b8b5eb26ae391d164fd9547d382e834e40cee188a9c23dcd09083fd6bb08b1a0ad429
+AUX chromium-pdfium-r0.patch 774 SHA256 0f1586c7f9ad2b1838bf827491b8fec01ee0b3253daea2b0b01dbe0887c5082a SHA512 ec45fb601d079f3e3f2c4fc4ca5df0873ff985793cf6e2982db3842d4eb86c8846d6c90c6b9fc3b86da8939acfd74db5a285fa26383d11b7b7b59ef3e782f0ba WHIRLPOOL ee4cbd43e39a903e93569bcd8a0f1578ca6c01258ea7c195994ce8d555f9ec1bcb55c28f443a7ee717b7996ce75433d1f89c9ec8652d6a8c61dfd3d455f0ab6f
+AUX chromium-remove-gardiner-mod-font-r1.patch 467 SHA256 3c8b346bf2227bb3de8a3d40704e50d50126eb9282a7bfcbca99ad404d85df0b SHA512 7574734e4e5573811a3f9f4e26a2dbe2cb749df3f5d1f1308d5ec8e25820d8ccaa63df8bbbcd7ba01221c85a0480709fd99a2f224238ceada36ee9ff6d53f478 WHIRLPOOL d1d41afee9396aa2759a837fe007abe02fb99e887a5354ebde9d9aaccd6aaf5824a381cb67ff365a706ac38d28472dfcf344e67889d3a84af352d0056e4365af
+AUX chromium-remove-gardiner-mod-font.patch 482 SHA256 a9753773f6fb4fcc39e8341a37264f107e901651273b8d190d079ea3bfedbbb3 SHA512 49b5d3787acba86958766ad34a5ceb3d9c95a5d743a569de9fdd08c437f79ff45a37dada6e5d82aed51b75ba104be3be74a89e6e480f0964c537a02f8745c6e7 WHIRLPOOL 0804e4cf9ee85aa6fffe3d122785f7f5a5dd3ec0bb21aab2f9f2baa41204ca81ca139a5b86bb194e1991f6b79079270954b9ccd758c41843e0dcb5648498950e
+AUX chromium-shared-v8-r1.patch 523 SHA256 52cedfa37d1e6396c5f391cee86789f9f49ba5654d6b362050eeb0fc913d4d58 SHA512 3c0d397015424b93e0f3ce71418a71645a3c5d790ee8c2cad1ad5bf833da9e6fa95a3cee1195b212ba9eb5ec875ac007b93faeecabe55e825fb0078154d1fe6e WHIRLPOOL 3238b77889f87bbad2d1165ffa65cde109c995b85fb97767af8f88e5634afac0958c33db2318ab6d4ecf7b54fd66934494a230029b5fea2474ec0c0403a11f3a
+AUX chromium-shared-v8-r2.patch 2204 SHA256 e0565037d246464b8eaa7f78167991062e3bf36c2a3ddd4ecb8b20dda5769380 SHA512 2b69722196e66cfb35a036615d041e23748c84b5cf80e61784e30e88426f6a23a58f0a2a779b93eadf3c75e40ef5c8953acfd07a5ca0bc44d2ece29705eaf7c9 WHIRLPOOL 7487eca7b90224dd06400d5aef0dd4ceba944bae4f8a2cd03ee909f902401ab396bec77b56cade2adc9fa9ca70ef4fef4ffd2034ee48154aec8ee49b8a6aa0aa
+AUX chromium-shared-v8.patch 547 SHA256 51d9af17e17f5ab0ba69198ae271d9f43fb10e2aec8ffdc03147f98606794afa SHA512 eb1a4329856f29e8c1443da7fa7dd9e5bb384c60212619227b8c4cd5b6b45c541c3d364e358fca07c3443bfc92ff873cf66ba1c3711b586eba0efcc1bbfb4f92 WHIRLPOOL 2dade26e96a3545fd2fb99afcb860107f45079c63b459c27a50a85c36cba98da71d0834a5c48489e6a6d982ae52fc5226f1a97d0fcab5bc9d51d15e630aed370
+AUX chromium-snapshot-toolchain-r1.patch 990 SHA256 b71ffb3bd41e65161c8df5e5eef7cc9b35cd409223951a9fc09d8c31b3064878 SHA512 ea0a9ffc5aad07bb44dea617c1c3fae04b1c8b83a4671fdbb098986dbfcbe9af3785ebee444e0afefe6ccf05eb6f1cb5f688d22e4bd8a925fa50e32c93738196 WHIRLPOOL 527e6398f1757176563068a1483fb012ec0b0c6049beaf16a3bbef037988ff0f3e32868511966614d5a2d08000cc8e5205b26951b8f972b2f3274a62b69c59df
+AUX chromium-system-ffmpeg-r0.patch 2449 SHA256 32f65bb6d1a70eea8c0536e7d9aebf8f09cb161d2dd0cda8ace52ae0e417761d SHA512 35097cba0ba5afdf20bb3899d588396a1c8ab287a5928104efb0506559bcf84e1029fd19788326b7affd71daad2e897bf2af32b4a388a03a3e222f19cab23011 WHIRLPOOL b1f4ae204fc79d133e079adbb82bdc960c3a5ddabbf01da4fad101eed8e00e82dafe094cfeb3c8ce2462dc36fe6a63234b6545a7e13686e78e21a7d4c8c50c32
+AUX chromium-system-ffmpeg-r2.patch 2350 SHA256 de19a06e10f6fb8a405c019b04dffa1616cd770bee6aa96adc9028fd7e3e2de1 SHA512 bd662718e65d72854018d7d9e20be0196057de69be87e2ef18e1a8c98b2ddaccbdb074377820b31e6797d9370aa68724fabf26d826a402595390730857cc3956 WHIRLPOOL 9b017452f3b406e9e2329b348ddc0d1b240d3681c7375b31ae393aece32c080304aea4511e4a718086c809599a8c2329e3c917e391bfabb822c13e15248cbb93
+AUX chromium-system-ffmpeg-r4.patch 2307 SHA256 e3c474dbf3822a0be50695683bd8a2c9dfc82d41c1524a20b4581883c0c88986 SHA512 e99601fdd199cc95cbc6bb6b03283380f65cc835fbe62555ab97ceafca1e00d7c257a6b6f2f6da999c497f3128098e631989ad7cf7840b160b0dda982fb843cd WHIRLPOOL 8f13080e71e56d22ba0dca6b793f1aab8b841ab17a4688f0278bfa15b68551a5898860b0a37722c36a2cebe68e148a6d81964b88bb0f673e87a9e7bb69821ea9
+AUX chromium-system-jinja-r11.patch 3709 SHA256 dfce2012b4a390219da1a057d827b7265b499d0915a6a69617b47193d585da1c SHA512 008a3fa78dc09493f98bc1d5f615fbf261c055a824f1edd920b775b4d87992120a1c27111c8d5e4a1b335b16c83066c01d22e4ac5b91b2d39f811aa9b0605c00 WHIRLPOOL 817e64c67d104c3485737c00120a6c7385102bbddbd57d1b653ad55bf094057c44327108a3c4d1cd783226b0204efb76264069fe0e7470e06fb5e64aa285835b
+AUX chromium-system-jinja-r7.patch 1611 SHA256 ff06a869615dd10ed3b26946b6a3113b3866c4d72183037be30996857e56ce32 SHA512 689cee917bd8a81edb4e640d551eca8bbbca9fa7c8d0afbca513cd911880773e7bfa0e3d558ca770afb418c6e0b42c28edb08b4792de900df1fb0b58afba22ee WHIRLPOOL 340253d54a041a1cb607ba5048ac83bf5f4ac1d691ecc69f09d0fbcdf4207db8b665f7f467b2632ead988736c4779f33fd749d91b0d5f2ecf16caff09725d444
+AUX chromium-system-jinja-r9.patch 3243 SHA256 a7598aaea19f8957ccbd01ac7f7b8616b0343ad248e999c99702a72e0fca8519 SHA512 c750ff04a4adaa1f18d0b56b4e1937f47ad8bc1a53bd251e5c7c46293f49ea5543807a9e70c8ed8d18df2ab8aa52dce2f5a5ce3148e385e6472af59b2168e8e1 WHIRLPOOL b151ba7b2a8217a1b5403f6c50f80679ab4472944432521c49e1cd170c074e0d742cebfb9e4e6add2a6d64a739a6a6cf419f2206909eb173751e25103b130030
+AUX chromium-system-zlib-r0.patch 411 SHA256 3f160db5eea72257d957541d69960fd1ea2657175ef16545725d2124990d9cc7 SHA512 ea7b9da8bf504583e0753ed2d69e95e6d2579bb9640b52b9d575966f495bd4dc15ec94fb35ad9877a736dceed946a38dccac028a4130326fda3f7ad7dfb3b07c WHIRLPOOL 7a19d22d5ec39348b00dd64276aee1f00b915dc6a6f20c61ae545974fc128c6453229f8b231abe5e2980b6bd8b9f3e03fef4d2516afe813a115e57ceefebd78d
+AUX electron-0.36.12-vendor-brightray.patch 4561 SHA256 d3d5b6b148f97ac614e9c3948761c053f45f9d8ae41a40a5a78b339307b5a21d SHA512 d96922be1a82c66f26fd433671f709277f21ea20a45425ec4f20bfb011ae6da9feb7fb9f45bb0369c9c83df07050edf31f9b9c22e804f8f77c249d6aaeeea2d1 WHIRLPOOL 090aea164146597d59f5696203159dd3e5dd197f08f0c1694f5641fbfab00bbb9a9a88d3610dc2ad8e5600a3f24a0edd77d95c184df873c77b89cea192f85008
+AUX electron-0.36.12-vendor-libchromiumcontent.patch 2939 SHA256 7b7ea865d3ac70299f01a783545cdbc3149c44634f4f931d79c00cfb2c0d0f35 SHA512 2ee97d7fe5c5abbbf76983f3fc36213844adf48d48ddc9f7962b1b66d14809aaf8a5c5a9911411d369a5772093c2d655e827160cfd1a72c2f620e4f5775819f3 WHIRLPOOL a3bfe6daba3a85bddf4065bdeea99b084ffdace8014b840be9c69db9eadd203220fe4b7bd231651d03d96b98acae9052f8b5a021774fd274891972690658bf96
+AUX electron-0.36.12-vendor-node.patch 2818 SHA256 f9aac81a3927d79cea8028c3908be9ca1f371c19bba4007df30b74f4498ba494 SHA512 068115d33de795200ac59797da3b1f4a1f509f4018e0e6442ffcc2fc423a7db969672636db8c2fad95a5d2fca330d58f563de48cc91dda1553a0bb6c4618f648 WHIRLPOOL a5d267afdafeea8d9e8433ce3800ce083fdc648b4470b5d5eba89bf4f98466b1382c2add164d9c5ea79fdd7614f979d87513c5bac17ac24773fd45b75713cf53
+AUX electron-0.36.12.patch 8307 SHA256 9463c9d42c076bba47fb4fe98dba23a09583dbbd6e0d289e4d5436dc816a8349 SHA512 844d7ed9de911f7c8627869299f3c97a8df01b0c210ca85de0bc6f7df004f3ee27b5784b6b0cb89f34d8a74b5e2321c5349f283f08f49371294ad3fffc8f894c WHIRLPOOL 564f94206829f9cc2f4cbc8d93d0ffe57a4e952b8e40a7c00c7a139bf33fa6caa9be98edfb5be9b1ca7e0e85f530216019b661dc8b1108cdf3aa5cde0aa4a10f
+AUX electron-0.37.8-vendor-brightray.patch 4518 SHA256 42426996ae9923fe32d09f0c9790f6550466c1a3ae64cac10a0f5f161c213388 SHA512 551708a0cc880143ec40e5d029e20edf868336e99e2c46326dbb053209bccea3bf64516ce4a7adf39cc8f9d54b455d62f998685379f361964e8645d71b43368d WHIRLPOOL 3829b049a2bebaab99ead9975701355b554f2fa3f06c3cda3a3d7852b7b8944afe4a1405d21195e1fdefc7c39c340f67991f572b97d7bc11268bfb501f2dc1ef
+AUX electron-0.37.8-vendor-libchromiumcontent.patch 2661 SHA256 0f8f3c3878d6955dcbec55c3569336ab61a503ec22801a7098a091e27203ebe8 SHA512 b0b7df79e510ad42e8cc0599c358e3e1ae3bd99ee5d91bd683a47ef6d23b7cd41d9ef4ef90970a9a80d03d77e46561df363cb0916926219de293813b04f0a4f8 WHIRLPOOL 510e6a0134d5d6cb649a51c191cdd9c5355b8ff273fe88f66f078cad39cd3407dc1c4ff717ce6fc9052203ed20e5a23ed5247b79cbd64de74588fa46471d51e3
+AUX electron-0.37.8-vendor-node.patch 2828 SHA256 a10c9f724c6cd3d77c8ac24c9fd5cf629fa20190a659b8f5f9a0f1664563c333 SHA512 df0b01481a1920d9f7afa87a6a84bdeb7dfda0041d2d47e8bcf33e1e06711f9be14f7453d75cff45692ac186969e4668356b167fffc46acb8e737fa5e837b5f4 WHIRLPOOL 41e7f9e6dbefea379ec2b223ca44103c8c2a0d21dd41985c03ee1f686238d09fa801b4b58ab85262475ef4a0c69e43ec1cc50b777bd82dde1734f4b8f63c785d
+AUX electron-0.37.8.patch 12649 SHA256 c9d6aaca05d32454de77d4effab037328b76ce48acf50cef3ae86ce9971fe670 SHA512 57b51dd5d8a76e0f880563fb8c9fb89c26f21be227fdc9b446f26b7a066ffcd19564ad56e74a65c63386b71feb70a5578865f131be76c33921e7f13619b56ef3 WHIRLPOOL 9f35cbef21d168d824e57db374538295ea4bdef89ac6ca99e9ec4ecebbfdc4806d20b4ebef0f5190112574d2117e03858a671570aecb712adf87566865421648
+AUX electron-1.3.13-vendor-node.patch 2733 SHA256 95c86c29890445427c87f0f9a5a96b97ca70949428206cb79729fdee9b43d925 SHA512 0cce18ac0716d62c1e66fa9e24def3196c2a83f83acb0b43fff931673a359e1f84cbb017bbd12f3a4c280293e7fb2e55dc712214fb490384e802f5696b9dd46d WHIRLPOOL 759186e148b024bf9a9c00715a48df9ce8de8fbb2f755203e6b253c696bacd80b749c48c450a52f34cb6e942890ec53f97da187c6bf85ecca29193eaadcbe87b
+AUX electron-1.3.6-vendor-brightray.patch 4520 SHA256 0577c85597b9f7f1a99062b7ed1a7d018f62fc8fc888dee63f29a0c39e47cf42 SHA512 d61bc76c3c2d6258923c08f269d931ef7100548488cf74850525affce62583d968f5bab520f559505a8ac1bf485933b4b38ee91205205e365108146ff66f8e1b WHIRLPOOL 147d64b1059dc15165385aaebe8e6dd0c323eb75d2afaa52054026aa4f829243522716fbfa69f08168cfdd60880a52b0feb938859ecb1da35f40ea94c0ac8a7e
+AUX electron-1.3.6-vendor-libchromiumcontent.patch 3129 SHA256 9ff870d6fc59620b80bf9b1c4414bafb405ad79fff2f9b5fc9d70952715fe24c SHA512 4bb3a80391b485b210b1b2f2005c7f9ed7dfa67c19931286bb93b69eabe0b3d54cfed55afe044d35a6af17e7f50cc4dce3910b9c11f6165c4008f6e976fe2658 WHIRLPOOL bb370d35156f5ce4a9673820d14e304786ef15321b44453f4a41ad2cdc7fcbed0b24770efd484d0a5e63ad898f3af53364d5bd8ccddb0af8c3ad08e3d7079939
+AUX electron-1.3.6-vendor-node.patch 2507 SHA256 7dd1d1859fee46aad499389836c41ea89f0430d3fbf5500011d94e6b5fa17e2a SHA512 8d1c3a1ac02824a5a221b7b7fb239c2c966be993212929e6aa707f2183627b8e22c46136bdc58931a22d752218f2cb64d04c9a5d9c2cd2c3edff2d9d612bf4b3 WHIRLPOOL 194ab45fd004b0ee444f734471df3e836edd200d3cac17abd64247025ae48fd80f24db6a77857c7fe337f2571cf3836ebb0d9b0c048f9e886690404b71ce8bda
+AUX electron-1.3.6.patch 13898 SHA256 8022fda203bc9b0de4db1c4c1814416db1e71a893d03a7c6a0ae4a3faf8182f0 SHA512 600126f0ca1a0f0553cd07278d129c52137b792f84b33ec814734e73011aacd9dd42ad2bf489c4c2a01117f9af019c514ed423294c6619c0f11e76aa8fa19a06 WHIRLPOOL 990957e95ad7ccf5d33f3e4da714a695a39086a4ba1a6ad442a0c9117c9f05889d50458ab5fa932c13e2fe32dac229eff979dc859daf1d9d52e150558484af51
+AUX electron-1.6.11-vendor-brightray.patch 4984 SHA256 4f61f160a1496addf28f6a0df0334ef8fdf16a6113b64cfd9a27654c141be677 SHA512 324394042b613740608d42226d369d358f7c8b0e21d823ecfc5cf5840d5af65236b21a2ec43b76bff1efeea9e90358c119b971b22cd9e0d0efa1da7afb031abf WHIRLPOOL e0b0469ee1b61d711526aa12850440a430aadcc2ea42f0a9285fa1820ab55792d5658bfe30e8e4aeee1178aa552e8592bc7f07ff3a290422fbf9d2b22c7fcc35
+AUX electron-1.6.11-vendor-libchromiumcontent.patch 2503 SHA256 d62688a5b6ed9d343257cad0e18dd3f97bafcdb081c2bf75298715f271ced71d SHA512 24926af9061915fb322411b471fb6fd415f4e2748d4808daa81d3aa793f76b0d7bb87711c6f1d14a87bf8ac422c4f1fcde32f00ce307d218f53c2b8f72d7d38f WHIRLPOOL 723dded398303dba0bd1fe47fa752fcaaf519489ab195fbfc23b166677540b40ac1e8fa8d82c3890a01e10cd752fa1d4120fefd4ccbcd0683cb3cf34d973960c
+AUX electron-1.6.11-vendor-node.patch 2191 SHA256 55da53cead124c2fbda92cfd9baea74ce4528d831be42ca4267082e7b916f64e SHA512 5731b8901501dd811301b701c916abf064ccc9eb1cfe4aabdcb7dfdae3ceee633ea050e8b25446040d368df50f673a318fc41fe4d8f7e9cfeeac26e90bb7e19c WHIRLPOOL e486b940db7b94bb450c5eb0ed3d4603369682930978c086a243030093c3c132209239d62f8853519cedb71d8e1e532ba4692bc2228299476cf7a3541556c271
+AUX electron-1.6.11.patch 15920 SHA256 fdeb2ef7055b7412c06f9c0eae7cce3e07c0b6f7540ad191a80f65fbc01fad53 SHA512 b84f503f86f66f50639f200bc825dbbbcfb6cb87d310bc22ac8efff47004af7e198a19fc64f6b2b7f7fe3205d3073ad4743c43ff09226d5c2e6647fe195ae9f4 WHIRLPOOL 7c86b0c385b0e23c428159d333d8096f2e4af2fd6a2f817654748468a9d463b1a83b8f7b1c4c82b5984fafc2cf7ca1558c426e78ce675a30dd9cdf04e7dc5b05
+AUX electron-vendor-node-external-snapshots-r0.patch 3003 SHA256 dc06637df16a0f0670381b4e160299b44bb1cfafeea501afb20efc4e9871a062 SHA512 ad51509b75ed5a3bb31be19ca4e3f7b44007fe9cde5de7521d381406b13ee651f4716566c0483ae2eee05836e3fa51a107fbda3f1ca400c64f4aecfe165becfe WHIRLPOOL e2ff5554c7b8e56fe0c899a3fa720d4fc013e1363d782cbe155a17504d49b253931f6048912e3cd0dc366d59f036c5629685361abda2aa0c05089496aed9dea8
+AUX electron-vendor-node-external-snapshots-r2.patch 3119 SHA256 a4883a05dff8a2e47493b3feb99dd9e47f0f1d46b0b57424333414ab5297e4f3 SHA512 25d563dac3819c41edc5609acea572b8f71abbbda77d6b79fe379118fe37b5948aa29b39546c9aca70ddb47cf6ef2eb57cc15970e8afcd989d94868f18c6f731 WHIRLPOOL 9ac7f027fd7e604aacdc60dd52b166a427264e804b5fa23c4970a19bcb57a674168ba6ee0b85e87e5efcccd26594a868073c9baf255432a4c5ccdc9c8fe1ddf7
+AUX toolchain/BUILD.gn 400 SHA256 d51e70d29f69110726c1ae93a4cfc8685a2feea24ce19516c219c179ae9c62b8 SHA512 cc36ab3406dcaedfd9472e94c53d3f25c4f5e25e2d1275e2bc99b8e18ffdf6de1583f7e0ceadfb8a8d10ab3e5d7018b84ec506e3b31a0a55cfb9453fb19ad3d0 WHIRLPOOL c5fbf488502ad5fb080dbb2eeb6c490b6575d30e97a5b19343ff36f2c5819067af0b920e30edbb84ed097ff1215eb06a2c1a57cb8f63c20f859a31533db400e0
+DIST asar-0.12.1.tar.gz 1016626 SHA256 731714f0036318fe0878b517391a01977954bb088d4dbc7dd98682ff1e03c0e7 SHA512 fc64be9b11215426d405f7acd7adf6c0eead3135b0012baf6d168a13c77675058a4e2c60682928ac014e4bef4538d452ad745d1e87dd315387997a19e04718a7 WHIRLPOOL d73b8bb459724bb3b011de312171519c1f1954a94ce1bb0a20eb9877c168baa82a15786d3ab420d5b3d32ce8a11333e85f844b43c21cbd56c3b019e73774388e
+DIST brightray-8dbaeed37b9c4fb8ae985670b142f659bb265fb4.tar.gz 76965 SHA256 fb5e57cc723500c8a7b5fba8cf0a38d4ca79b3f967dd9f9427e6fca8cde81552 SHA512 eb0ad05107ebfb4151fb0f26f7dbea58c353cde0407c13ea00c7b98487fb29582d5f3e334900749dc43c8aeca828d8885c4d77dff6739de97ec19b33017a6e93 WHIRLPOOL d2aa3bd6361643304158dff859aa071400bc1b74f0fce934d5dc5eb25bf76d599a27efabde6c13bd20dadb15ffec7bb3ea8577bdb1e38e2382f81600d543fd35
+DIST brightray-9bc1d21b69ac99bed546d42035dc1205ea6b04af.tar.gz 74416 SHA256 9cb944145085384423efdbdbe4dd523b71eaf517fd040e1993666832ffac4fa6 SHA512 c7a16f3634111a43d45959e0406488dc7417848403a6261204b58f67d62688f888f733ca23f3eac3a2dc76955c185ce845d63a6dc1e5a0fba54fb115202414d0 WHIRLPOOL c1ebe0e3adbd74da772778589f59f30a2e288723d62cf8bc686c1b0795daef4c31e9d38363b29dae9b162ccf856707f7a9eb34c8b31ca76042870d7adfa14e99
+DIST brightray-ee26c5218eeec199c54c92a7517a72d2dbd0adbf.tar.gz 82375 SHA256 37090168dfa0d776e28ecca88ef3ba57d3aa2937ef7dc4238e6685aa6f2b3e21 SHA512 7595f5a168d40c42687b8013b588e9c74d6f0047e71549a32d892fa3ca9de9d467303e635364bd779e94094aa9772b705ac027aad481b40d42c0c039ce8f3709 WHIRLPOOL 7b1686cfd9d2189942ab268485a7b230b99ef2a043a4e1b06aaf25c37a01a4278b35769fd73af5b838fdcb782f3a78a2821f95f6a91358d27f11149451437a17
+DIST browserify-14.0.0.tar.gz 1847439 SHA256 616e53fba090d14d673748c12e8ac215b6f7d6f74362666ca91065ce80386344 SHA512 fea8219ab2c5b422c15cc8c305a8aa0396f3de46c8d602eb4976af1d2b0a043214f808e3fa8e31cae0ad7c76d9ddc38239d0208911105f9c851efddfaf96b0c7 WHIRLPOOL 2d2a1dc6f5d5c0db2b43acee8b1dc69c6d3c431e1e0172bf4a3894b628e49dba1aa51155fa8f04e260ce2897ea8c562af200f3e569b9b38e0c783d34c7ae6087
+DIST chromium-47.0.2526.110.tar.xz 394673276 SHA256 65a86d9532e03f94844a4e9b1996af85baeb00c95effe962baa153352483463e SHA512 d1655e822776567101632696c7817067e9a85c0f74df22ea40b8fcb45b9571471d8bb1291bae4dd879d746ddb57206276db8df92ccb546bb00129bc26bb33bb8 WHIRLPOOL 047d5bd9f3cfc09b85288f8f6c24bc72ee2399992b2f02410d4ed651deb1b1141f390d0eb3e56728ac286a3b24fa0d3db9489399ae116fcd820d482f5a055ae3
+DIST chromium-49.0.2623.75.tar.xz 452264916 SHA256 a4fd4c85b12b021789d8afc33b27555396e47d9f67c8a062ee3609c4d6b582f5 SHA512 694f0ccd0a4ff10d8b19e52defb48f6d47daeaa47013f01c2924251f3c6ebaccb20813379c3b7dd6fd939138f25122ed7d1a56e1a6b80309aca65b6c854768fa WHIRLPOOL 00d5b37f425714e4bcb2b563759a8a7b084dc01b7abe6e90f21a3aa470c42944675b5a875e3e918506469cb6cd870038791566ad647b26bd4b11502beb97ecad
+DIST chromium-52.0.2743.82.tar.xz 458110272 SHA256 a7de6015df9cf685d68efd1e070ae9c706c723cd9395d079a7d43672a2c37eb4 SHA512 9bba841cb726bfa06888deefacfcee628e36d25de47dd0303d3fd1ce2f07922148d60befe934f44c33fcdfed6ce3dadfb9e3ee0828b66994807178a488051806 WHIRLPOOL f0d258882db85291262c2381aeb6d85ebf20a252344e114a2da35e75f79dc8b73de95b71926512537af17e109fd7a8dd04386d5b3ed610262d42d11bcc1a5707
+DIST chromium-56.0.2924.87.tar.xz 514429808 SHA256 9aac081ffccaae6497068100477a4e6ac7086bd15ad3c3cd009b9a760b7a53e0 SHA512 1c154004a9bca73e2491c73520a5f7d5c50c5b9d66e8e2660bf46585dd9b6ad3db706a9d824356f319794fa790bc3918ae6199843bcba717b9e74efbf26882c9 WHIRLPOOL ea18fa6d9ad5b296bc561e0fd13f596f3973ec3a020db62de4164b6edf251825a3f26768064ea70ee9e50696b18ec647dc5b9ca3c04dbb3d618ec609302675bc
+DIST electron-0.36.12.tar.gz 3068567 SHA256 8e4ee7ed37d32ad73f8cbfb132ce0009506a01a68d5a71bafd6858c6bc11f9a6 SHA512 37d016768e57f81b01338cea6d0d5eaa6ea72d83a2122b54c9c73e37b0afc7fb8351b0cb846afda29206379d5625657b815b002c2eb3c31babcd0cffa47ae3de WHIRLPOOL a358e353259d377dd59ae563f38b2fe185ade6d7a00bbad8c61831c92b4e200ac1f2f25b79564eae11d9082a569be342ccd4be6e400955cd65729e9299b48796
+DIST electron-0.37.8.tar.gz 3154625 SHA256 d6b01e800aa4cd54b680aa1d78e8c04ed99f82423bab37fe03ad5eb12310f0c0 SHA512 1469129cc6e07da2540ab67d2bb9e2dec4055da77b35bf0abf86a70e82e3ccf443e75edb25feac6c8855c5e841592738319e1a81a52d504e90a5ce9197153754 WHIRLPOOL 677fc9c5bd96d04de43a28c8db23921fb98d3d9a455c32da8235b15c72f2480cce16a3705ae258de1c2b3a5af8d11607c3f868bae248553e593a77c454f94582
+DIST electron-1.3.13.tar.gz 4560040 SHA256 36695722484da433e4bfd465c5688a3b1429365385b547973444c8d7ef0cd810 SHA512 c15b8303e1a18674fd828991a118bf670ccd052b35cac7d476b06e7903055fa905a93a79dced4186c70d30c7d220a3b7daa2a4f490b70c87134fbc393d54d94d WHIRLPOOL 4e027b48a076a208c4c83f7a82e8f591de9bf22b4c5146d50dc06772257768db6a996eea974ad6097838573f8e69828899c862b3b9271bd34c92d95e9502376b
+DIST electron-1.6.11.tar.gz 4938208 SHA256 b2e1ff38076b0554eae399ef16725643a9484fb923c90be0d65ec2cb1a17dfa3 SHA512 dc44ae9b9e69ed1b0a2b9f2faceea2bc8bac29b3897f1f95273b1e17268159d77b4ba7344e6b0383aa4196d21df203cca404a6356a8674b3dbab7452968cf60f WHIRLPOOL eb1853ab4d04fb77b6d1510d25dbcedd71ddc6431d451ab1a544e12bdf1cb362a8f4589849dacf0d022b0e57cb5fdbb66a7afaead9c8a4d47c118c008dbc55f7
+DIST electron-breakpad-e35167de7516448fcc2bf687ad580b9d8b6aedc2.tar.gz 5161275 SHA256 d361fe5f8a1c203ceb5844b4c1faf2f4f3d7860dc9fe2757b317dda968170511 SHA512 dce89f5976ddac0f87f70f11cc5fdf44a29198b302ed6eecd2c7530ccb33613563ef2ce797b7187c986d3b900b212eede8530e1e8f3b6a88ac727ff9623dd333 WHIRLPOOL f88865a72a2c7e6cc0327f9bef5a021deda91b16257fe7a3432982bf95aa0579c6934eeddc83f1516b6c7ae91769720fc18b9ec19df268141db801359dab2344
+DIST electron-brightray-909c49265493bd095c27cefd999567be2107899a.tar.gz 98022 SHA256 249424ca00a4b96ea22c58584952748f02376e92ee231e63230403e20e11fed0 SHA512 e1df1159a97c87e1edce9ea896d790e3004cc836d879385cdc5324c1961209ebf884fb7771861f4c6bf86b50ff1d8818540555bbcc77bf10987e0a68cd855127 WHIRLPOOL fe9bd8fb40c34e9278832a8660ab6b03f9ee0f900e9dce940107216d33c72a8e7ce13f7e5556d788c2a0ebabb0a536ff6cfb77e65ef96f4ea5a76441025baff6
+DIST electron-chromium-breakpad-c566c50d81f7b1edeaee9f11f5d07bda858d6b64.tar.gz 1141356 SHA256 ac8cd3e020dd437e60d2d29b712fb7019705a0706c895d6f7935b4f5ed2f2763 SHA512 9fb07facb147d401655cefea103cb1499de9ca27093c756a3b5d6ff1117a288ac491fedf01df61775ce6590e852e942cf7db1e135d6d30e94188283a53dd8e10 WHIRLPOOL fdcd9a90cf7d5156796679a21cd1210ad7e75c910d0f924168e20d8f1ccf61f803f5913a50766ddc2b7b08f864677d1bab6199e1fc06cd615b765f412297405e
+DIST electron-grit-9536fb6429147d27ef1563088341825db0a893cd.tar.gz 378461 SHA256 20b80507c29ce7b0eab57d814176fe1b1897a9b69add0bf073d5ba7b1b5d7c56 SHA512 515797740421d5f80912b33dab2039c35b2ae432a0c4351aa031461ef6c82b7a1775c3d4d41ba6c646f81ba3ddf3bbfcb35b81da1ef88b486a2a67d15f09ec86 WHIRLPOOL b6d395d549238f7552fa05eb3640ca8afd6781d998f7c9fdea8d34323b4b57ec77ca714fe4e14d97a5a44e1a4157260cd5e017d9b132fba3c32be49a57559430
+DIST electron-libchromiumcontent-e2ec6935fbf034207d5ad00fa905a4b2cdd60bb7.tar.gz 418797 SHA256 bdf1876c144a72ebb782abf8c00981fd25f317c69611255b6143e1822866ee6f SHA512 aa6d5b16be6e0a218042c11865751fb14b6f4ccf3252075e681309df853f03fda9a38b955749b1fe16f11a127f2aab181edcb3eed8511f69aa5c43395ff9f7f7 WHIRLPOOL e02893b291806d3fa0b2e0c4ae5b7b71a44637ebecd10fec922d03ec261dd152478f12fe9bf9dab60d520bb49cf947f62240edfe386fa355e6c283848fddef3d
+DIST electron-native-mate-fd0e7dc4ab778f0d1ccda6c9640464ea06ee771e.tar.gz 23926 SHA256 bbbcdd6de05ea677658df775dc3943820596654e5aecb0f25d1c1bdbb897f376 SHA512 8715c417473340163ca3db2754ab10619679ac72378ff5c7f63899fe891d5c83e7b3db6832af885de63eb5a732ed54f393bcc3aeb8ddd38569e74023c46f72ac WHIRLPOOL aff212822f12a111126116cee60f5c3e8bb3e53bfc7de1209315a7b7671b413e3428088f639b9c6c2132cd1b30f3bb9edf813b74feb74cd7a899ae902e723691
+DIST electron-node-6bcd8af891a991f8aa196e49e6bf908ebbe24cae.tar.gz 36600837 SHA256 6b7bb43be6d24bc55a6ccd4b8efd2f88d8d2fd7d8437d7aa33d813c649f791f7 SHA512 7fcafa01027bd68794a7cd2f049a7bdf45e1dd56622583bd5d53d662328e64619dd5dbeec295ff559b1b268e90bf6abf3d76cd6d00f055602bbaa7443e3a3450 WHIRLPOOL c5dd664910a59c7fb1d4aaf3c91b298b7266466596ce2a4f4f41ff6637db9e480450eaf1e9255ab810de13df1abbd769f32bdc73124bea9ab4ed013cda945bd0
+DIST electron-node-9b1683e7000481ec6214eafa3eef7ac4594eb410.tar.gz 46194500 SHA256 0204c0402ffb5c8a7ded1a8a65018fbeffd86ead38e95ee3341e10f5a4162170 SHA512 f258cf5597154e976e1e4c0b81f6b63e9b344e4a28492137b80d59dc841490d4ad69e6bab2456a6334a42e51dfe2862cc389e837a4baac90a698ff60e5b08ab4 WHIRLPOOL 651c793ca4ea7b144c79d842a565cd5870a2a7826b8e86929e9b1950ab1fe45d833a4d54ec549e120e7b69a724563ae583156ab7f8f77bef3c3f5263bcb6f64e
+DIST electron-node-a507a3c3816d6ac085ed46250c489a3d76ab8b3c.tar.gz 36578658 SHA256 56489ffa9d58b736008f5c1c2775bc10f3afe02d3c768035e7742893cc8e1d82 SHA512 a5b62c05ec7300a26b3feab3c1e796a87691d41fa7c039541574878491df51e9075685abc5d630fc62bca95bf821eeede041d4ab36caedaf76156844f1095ea6 WHIRLPOOL 8675b05753cf905cfb2fc0ebb19fc256489a7b932c57be291eb2fc7194de599c07f4120541f4a61cccdb43b09b6280c7c02f9565aef98129c584fdca4c154279
+DIST electron-node-c47e9bf9011de682d07c82f7f610a467f30cca60.tar.gz 44172045 SHA256 d0dad2c1ee6eea81fa6f55a70f4142eb7bffcc143532d50e848fea08b31d5ef7 SHA512 830cb5e4aa1956d0f67b0c5ad44241254596791b3bbc533a170b1b7bcb7a45137ff62b885a65a78a64323ad94f660c6b75142109d79256420b8d20a7d26acff7 WHIRLPOOL a69758c90ddbd3f75f9d62efb9cfefba9fe6c52c627fbcab103abe6e11916826c42e1b5072e203ce34657ac7fe9b79c2bc1621dd3b595626e138161bd91c6766
+DIST electron-pdf-viewer-a050a339cfeabcfb5f07c313161d2ee27b6c3a39.tar.gz 38431 SHA256 03a147dfc8273495cf47b53a2a03ca41e03695e1af66c51df9e49ca52ff51233 SHA512 a028b67c0644d4ddcfc5aee4e2abb305648eb666082ea2c151cb6b9b3972503093cadb32b102aa19b04c8e863c2ac55bb20cccbf2abbf7832f9cfd3c3618612e WHIRLPOOL 54dd4ff5fc59e057ce67f409629818accad0ee7c97e18e9cb86174cbfd845fdd7d370b291b2adddc91d81e3743eb744aa6c4f149a74f87cad3ffd32674c5f1e8
+DIST libchromiumcontent-27add4cfef98f21d5910539bebb47ae175f024c2.tar.gz 403724 SHA256 cf0342130f4bb929894249a381b6d6433f8d5b6d9331f4bd843250c4e66063b6 SHA512 7995fe40100b91f57ccc8fde445f136fda62d2c88a8a06d1b07aa588bcdb27905a542d62ec9cdf567b626439d8648fc749b73d7e9f52deaa94ead27e191a732f WHIRLPOOL 426d75c7ff7788d6dd208b68407bad7600090f6c1208823db65ef10ab7efcb8b8cbe9fce7ada6886a6711dfea0503a70a088e63f71221a8098cb62f3f3d1131c
+DIST libchromiumcontent-60c7ec9f9bf465a8c9c7ccc3fcd2aa1cdf644bac.tar.gz 402072 SHA256 69877d4b9def6dc69063f0bf37d9d59721c22acced45e271b3f36bde8446a37c SHA512 ddd52e58df1848edab6c514e0ef8e4155eccec6bec9d4e557dc0ee7d5c2cc4036f25d1786376b5b47a5122a266f00cd589ce665b8463549e9383d60292d180dc WHIRLPOOL 789be242983ab54e212df13c6f51c5c949d6a4ace21a548b99f17e292b37842ce0c748e29c17bd116a95a163ca2bd709dadc59ecacc9d3ab8c58143ddf9f2d71
+DIST libchromiumcontent-ad63d8ba890bcaad2f1b7e6de148b7992f4d3af7.tar.gz 400648 SHA256 36b46659fff3053ce273d3ed159fca74e18ebc873694f857a521d3c48fc079b1 SHA512 5fcb5e3dd98d5875ff7aa9f9f4d02af45487534d0301ca7a0a7adde934f528fedc3dfaf886b9031027e41309eb8ba658b72a56af4ad8dc44cce458b9c04a0e47 WHIRLPOOL 31d28804f91bbdece8709ddac359e7f5c079b034137734041f274838d138d8e141fe12c0ecf1e66f92b15e8c653526a1779d3bcc342e3ecc9a39a18c689a94a6
+DIST native-mate-0df2d882ea2286e6335f206b7002037fce66c4a5.tar.gz 23738 SHA256 d0ad6b3079fcfdf1adb09a68f5d8b7ac5b83c6d19b078993941b1a95ccac232b SHA512 fdd928a4b170636320e6cfd65753aec47c38380ef6f1b6dde255fbdcf3756abe8568e689e1214d768056187b243f979f16d4289ce8429a5ddd17b07f806ef731 WHIRLPOOL 762c4f2c093853731cbf8a79953e0da0bf66d6f1f08a08ad3ba2131b87113209bc93e138e974745b89da5dd9c14c0d5035dd686ad5b79ad7faba0b6076d2a6fb
+DIST native-mate-b5e5de626c6a57e44c7e6448d8bbaaac475d493c.tar.gz 23465 SHA256 e9a5340c51690100be798c3d8c76662f78b0f292b22e394a5703326c07fc2639 SHA512 d004f4ec3ca77d98b2b2bc271c830b769bb6396e70d8dbf25ede87c509ce95dea083d6e5b3d050647cdf3d0a6a21c6da91176eba90d7256ab80f5d23248a6bb1 WHIRLPOOL 66b0d5544d8e72692150541a8f7ecac7421edef2a4d3837a1f7a1dea785f99fb40492261654ad7b6c1a38fcf04a44d4afa832d20175eb34944437712bbb711ef
+DIST native-mate-e719eab878c264bb03188d0cd6eb9ad6882bc13a.tar.gz 23818 SHA256 82da85193f6924ce395004ce9dfd1198848cf8f14b7904321e67cad26a39f794 SHA512 4272648127fb0bf90b36d2c090bea718d560737c1c7443a5b3c0de12999ffe607429b2112ecee36ece5d26cde54e78964303250ffd350a19c132c9733b72c523 WHIRLPOOL c275163b9f3f424f5909f17c67f5b029f03bf76679296781bd6d74e64d903dd29cf5c28f1c4e399a049331f54f03175fe2c02de9ef6bf65040d9cef05be44a51
+EBUILD electron-0.36.12-r5.ebuild 23379 SHA256 a4cc890a21d9eb4b57c10be358e3478baf73a72b1116bd490be0bd155b154054 SHA512 32408c39d7242a434c3bed28a95abea6acd450c1e494e88d835825a51a45d4a445a189eb0e5f09b7da7cf3a127dffd6856d8165196580f449a5cda39421d25f0 WHIRLPOOL 7959c997c4a2877c15c578ac8a66063231181a4d376a5dcfd66ea252baca28ea04bbcf465d821f8e32315adbcbbed30ce9d6edb46b79279e0050ae48d254c1ca
+EBUILD electron-0.37.8-r2.ebuild 23755 SHA256 ed816fc53c0d39e777246e2872c0d0c0a476877c58bd2597e2c4b2f4ae0e91fa SHA512 4253f2b81deda03c2fd425ad115f0a73da2c0aee2a200c8ec9e0a57e087962e56e1f72153022f44e3866a3c35047b8a57af381449af044446ee43dbcfbafa7af WHIRLPOOL 4b8a477180a03dc6135f7a40ff0c9ee3fee419bd8570e1a8b6b8da36212c7e4bc65a2b62323a0f984c13e6aa79df8e4443834ff8f5fed49e269a558769a4b052
+EBUILD electron-1.3.13-r1.ebuild 24394 SHA256 48366b58fdc4ea8881547eb0cee6187f80dde89e3557245b2d428410952468e2 SHA512 60264761aedfeb4669f89e01ea526ddeb08e2547f5bd510e7767f6398a6e8419bc4d8a52452139df79bd09265dde14a50bb52bb5d3917ee187b4c1741d6fb050 WHIRLPOOL ac8cd833dd9b7feaa2c352cefc3fc68d000a5646ca334c3799772af62b0c0ad64dceb4009fa9dac3ee930b220caa894b95aaa391b875fe8170a79860164947bf
+EBUILD electron-1.6.11-r1.ebuild 28367 SHA256 57bfa4b3220f8341940bb31d5ce137394f707244624fc5d4c25befca89c19c28 SHA512 deed4646179584575831a3c09fa94e30351db921e7f50cdfe70eed170b0f75626beababfb87cc708a575ab10485ba499125ad924f09eeee2b84fbb90619f8f7d WHIRLPOOL 9b6ff12241bd2e8a56477ee82c68b5d1dd8e2492a58432919225bdae47304edee151a87edaf88a827b52e05cd799eed1b97f417986e45614368b830714772773
+MISC ChangeLog 7412 SHA256 54faeab34ebcc39bb9abe01ce5ad8b6acf970e0248156fb0ef978fedc6b05581 SHA512 a3fe8eac0023bd1bf4fcd29c007634b3c91d567611420981b052cd287f254aaf9b8fd3a5af92f5cba6d755e4fd96673b836f94819d0c254bfff7bfef44febd91 WHIRLPOOL 50ff8773beef4ff7b62ad7ee56e236519b93e7226a082ffa29b28a86f2a88706c20d19d475c7bc23981ce895cec08e9b65f40bb1d4a4ce658bc8b59301861c7c
+MISC metadata.xml 1200 SHA256 e578897b4c00427d4dc628b9066d6cabafacaf55ed0c5c5f80ad82bd5d6d36a4 SHA512 a37063e88ba9dac58cc18c88e8b510e0d1d1ddd4e53017a6c92a73e281c0bdb3e87636136c52bc309a81a5c1df02079994409aaa70dce5e0130654d952cd744c WHIRLPOOL 14b3610dc4f57931342a000bb331ccce8d84361ca8ff6288d58837e2e0ca60070b63831ded478b746c40f1e6b258087f6e530c4c4e65aecaf3e4a56ffbe13bb4
diff --git a/dev-util/electron/electron-0.36.12-r5.ebuild b/dev-util/electron/electron-0.36.12-r5.ebuild
new file mode 100644
index 000000000000..8dfee5f2d5e4
--- /dev/null
+++ b/dev-util/electron/electron-0.36.12-r5.ebuild
@@ -0,0 +1,740 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+PYTHON_COMPAT=( python2_7 )
+
+CHROMIUM_LANGS="am ar bg bn ca cs da de el en-GB es es-419 et fa fi fil fr gu he
+ hi hr hu id it ja kn ko lt lv ml mr ms nb nl pl pt-BR pt-PT ro ru sk sl sr
+ sv sw ta te th tr uk vi zh-CN zh-TW"
+
+inherit check-reqs chromium-2 eutils flag-o-matic multilib multiprocessing pax-utils \
+ portability python-any-r1 readme.gentoo-r1 toolchain-funcs versionator virtualx
+
+# Keep this in sync with vendor/brightray/vendor/libchromiumcontent/VERSION
+CHROMIUM_VERSION="47.0.2526.110"
+# Keep this in sync with vendor/brightray
+BRIGHTRAY_COMMIT="9bc1d21b69ac99bed546d42035dc1205ea6b04af"
+# Keep this in sync with vendor/node
+NODE_COMMIT="a507a3c3816d6ac085ed46250c489a3d76ab8b3c"
+# Keep this in sync with vendor/native_mate
+NATIVE_MATE_COMMIT="e719eab878c264bb03188d0cd6eb9ad6882bc13a"
+# Keep this in sync with vendor/brightray/vendor/libchromiumcontent
+LIBCHROMIUMCONTENT_COMMIT="ad63d8ba890bcaad2f1b7e6de148b7992f4d3af7"
+# Keep this in sync with package.json#devDependencies
+ASAR_VERSION="0.12.1"
+
+CHROMIUM_P="chromium-${CHROMIUM_VERSION}"
+BRIGHTRAY_P="brightray-${BRIGHTRAY_COMMIT}"
+NODE_P="node-${NODE_COMMIT}"
+NATIVE_MATE_P="native-mate-${NATIVE_MATE_COMMIT}"
+LIBCHROMIUMCONTENT_P="libchromiumcontent-${LIBCHROMIUMCONTENT_COMMIT}"
+ASAR_P="asar-${ASAR_VERSION}"
+
+DESCRIPTION="Cross platform application development framework based on web technologies"
+HOMEPAGE="https://electron.atom.io/"
+SRC_URI="
+ https://commondatastorage.googleapis.com/chromium-browser-official/${CHROMIUM_P}.tar.xz
+ https://github.com/electron/electron/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ https://github.com/electron/brightray/archive/${BRIGHTRAY_COMMIT}.tar.gz -> ${BRIGHTRAY_P}.tar.gz
+ https://github.com/electron/node/archive/${NODE_COMMIT}.tar.gz -> electron-${NODE_P}.tar.gz
+ https://github.com/zcbenz/native-mate/archive/${NATIVE_MATE_COMMIT}.tar.gz -> ${NATIVE_MATE_P}.tar.gz
+ https://github.com/electron/libchromiumcontent/archive/${LIBCHROMIUMCONTENT_COMMIT}.tar.gz -> ${LIBCHROMIUMCONTENT_P}.tar.gz
+ https://github.com/elprans/asar/releases/download/v${ASAR_VERSION}-gentoo/asar-build.tar.gz -> ${ASAR_P}.tar.gz
+"
+
+S="${WORKDIR}/${CHROMIUM_P}"
+ELECTRON_S="${WORKDIR}/${P}"
+NODE_S="${S}/vendor/node"
+BRIGHTRAY_S="${S}/vendor/brightray"
+NATIVE_MATE_S="${S}/vendor/native_mate"
+LIBCC_S="${BRIGHTRAY_S}/vendor/libchromiumcontent"
+
+LICENSE="BSD"
+SLOT="$(get_version_component_range 1-2)"
+KEYWORDS="~amd64"
+IUSE="custom-cflags cups gnome gnome-keyring hidpi kerberos lto neon pic +proprietary-codecs pulseaudio selinux +system-ffmpeg +tcmalloc"
+RESTRICT="!system-ffmpeg? ( proprietary-codecs? ( bindist ) )"
+
+# Native Client binaries are compiled with different set of flags, bug #452066.
+QA_FLAGS_IGNORED=".*\.nexe"
+
+# Native Client binaries may be stripped by the build system, which uses the
+# right tools for it, bug #469144 .
+QA_PRESTRIPPED=".*\.nexe"
+
+RDEPEND="!<dev-util/electron-0.36.12-r4
+ >=app-accessibility/speech-dispatcher-0.8:=
+ app-arch/bzip2:=
+ app-arch/snappy:=
+ >=app-eselect/eselect-electron-1.0.0
+ cups? ( >=net-print/cups-1.3.11:= )
+ >=dev-libs/elfutils-0.149
+ dev-libs/expat:=
+ dev-libs/glib:=
+ >=dev-libs/icu-55.1:=
+ >=dev-libs/jsoncpp-0.5.0-r1:=
+ >=dev-libs/libevent-1.4.13:=
+ dev-libs/libxml2:=[icu]
+ dev-libs/libxslt:=
+ dev-libs/nspr:=
+ >=dev-libs/nss-3.14.3:=
+ dev-libs/re2:=
+ gnome? ( >=gnome-base/gconf-2.24.0:= )
+ gnome-keyring? ( >=gnome-base/libgnome-keyring-3.12:= )
+ >=media-libs/alsa-lib-1.0.19:=
+ media-libs/flac:=
+ media-libs/fontconfig:=
+ media-libs/freetype:=
+ >=media-libs/harfbuzz-0.9.41:=[icu(+)]
+ media-libs/libexif:=
+ >=media-libs/libjpeg-turbo-1.2.0-r1:=
+ media-libs/libpng:0=
+ >=media-libs/libwebp-0.4.0:=
+ media-libs/speex:=
+ pulseaudio? ( media-sound/pulseaudio:= )
+ system-ffmpeg? ( >=media-video/ffmpeg-2.7.2:=[opus,vorbis,vpx] )
+ sys-apps/dbus:=
+ sys-apps/pciutils:=
+ >=sys-libs/libcap-2.22:=
+ sys-libs/zlib:=[minizip]
+ virtual/udev
+ x11-libs/cairo:=
+ x11-libs/gdk-pixbuf:=
+ x11-libs/gtk+:2=
+ x11-libs/libdrm
+ x11-libs/libnotify:=
+ x11-libs/libX11:=
+ x11-libs/libXcomposite:=
+ x11-libs/libXcursor:=
+ x11-libs/libXdamage:=
+ x11-libs/libXext:=
+ x11-libs/libXfixes:=
+ >=x11-libs/libXi-1.6.0:=
+ x11-libs/libXinerama:=
+ x11-libs/libXrandr:=
+ x11-libs/libXrender:=
+ x11-libs/libXScrnSaver:=
+ x11-libs/libXtst:=
+ x11-libs/pango:=
+ kerberos? ( virtual/krb5 )
+ >=net-libs/http-parser-2.6.2:=
+ >=dev-libs/libuv-1.8.0:=
+ >=dev-libs/openssl-1.0.2g:0=[-bindist]"
+DEPEND="${RDEPEND}
+ !arm? (
+ dev-lang/yasm
+ )
+ dev-lang/perl
+ dev-perl/JSON
+ >=dev-util/gperf-3.0.3
+ dev-util/ninja
+ sys-apps/hwids[usb(+)]
+ >=sys-devel/bison-2.4.3
+ sys-devel/flex
+ virtual/pkgconfig"
+
+# For nvidia-drivers blocker, see bug #413637 .
+RDEPEND+="
+ x11-misc/xdg-utils
+ virtual/opengl
+ virtual/ttf-fonts
+ selinux? ( sec-policy/selinux-chromium )
+ tcmalloc? ( !<x11-drivers/nvidia-drivers-331.20 )"
+
+# Python dependencies. The DEPEND part needs to be kept in sync
+# with python_check_deps.
+DEPEND+=" $(python_gen_any_dep '
+ dev-python/beautifulsoup:python-2[${PYTHON_USEDEP}]
+ dev-python/beautifulsoup:4[${PYTHON_USEDEP}]
+ dev-python/html5lib[${PYTHON_USEDEP}]
+ dev-python/jinja[${PYTHON_USEDEP}]
+ dev-python/jsmin[${PYTHON_USEDEP}]
+ dev-python/ply[${PYTHON_USEDEP}]
+ dev-python/simplejson[${PYTHON_USEDEP}]
+')"
+python_check_deps() {
+ has_version --host-root "dev-python/beautifulsoup:python-2[${PYTHON_USEDEP}]" &&
+ has_version --host-root "dev-python/beautifulsoup:4[${PYTHON_USEDEP}]" &&
+ has_version --host-root "dev-python/html5lib[${PYTHON_USEDEP}]" &&
+ has_version --host-root "dev-python/jinja[${PYTHON_USEDEP}]" &&
+ has_version --host-root "dev-python/jsmin[${PYTHON_USEDEP}]" &&
+ has_version --host-root "dev-python/ply[${PYTHON_USEDEP}]" &&
+ has_version --host-root "dev-python/simplejson[${PYTHON_USEDEP}]"
+}
+
+if ! has chromium_pkg_die ${EBUILD_DEATH_HOOKS}; then
+ EBUILD_DEATH_HOOKS+=" chromium_pkg_die";
+fi
+
+pkg_pretend() {
+ if [[ $(tc-getCC)$ == *gcc* ]] && \
+ [[ $(gcc-major-version)$(gcc-minor-version) -lt 48 ]]; then
+ die 'At least gcc 4.8 is required, see bugs: #535730, #525374, #518668.'
+ fi
+
+ # LTO pass requires more file descriptors
+ if use lto; then
+ local lto_n_rlimit_min="16384"
+ local maxfiles=$(ulimit -n -H)
+ if [ "${maxfiles}" -lt "${lto_n_rlimit_min}" ]; then
+ eerror ""
+ eerror "Building with USE=\"lto\" requires file descriptor" \
+ "limit to be no less than ${lto_n_rlimit_min}."
+ eerror "The current limit for portage is ${maxfiles}."
+ eerror "Please add the following to /etc/security/limits.conf:"
+ eerror ""
+ eerror " root hard nofile ${lto_n_rlimit_min}"
+ eerror " root soft nofile ${lto_n_rlimit_min}"
+ eerror ""
+ die
+ fi
+ fi
+
+ # Check build requirements, bug #541816 and bug #471810 .
+ CHECKREQS_MEMORY="3G"
+ use lto && CHECKREQS_MEMORY="5G"
+ CHECKREQS_DISK_BUILD="10G"
+ eshopts_push -s extglob
+ if is-flagq '-g?(gdb)?([1-9])'; then
+ CHECKREQS_DISK_BUILD="25G"
+ fi
+ eshopts_pop
+ check-reqs_pkg_pretend
+}
+
+pkg_setup() {
+ # Make sure the build system will use the right python, bug #344367.
+ python-any-r1_pkg_setup
+
+ chromium_suid_sandbox_check_kernel_config
+}
+
+_unnest_patches() {
+ local _s="${1%/}/" relpath out
+
+ for f in $(find "${_s}" -mindepth 2 -name *.patch -printf \"%P\"\\n); do
+ relpath="$(dirname ${f})"
+ out="${_s}/${relpath////_}_$(basename ${f})"
+ sed -r -e "s|^([-+]{3}) (.*)$|\1 ${relpath}/\2 ${f}|g" > "${out}"
+ done
+}
+
+_get_install_suffix() {
+ local c=(${SLOT//\// })
+ local slot=${c[0]}
+ local suffix
+
+ if [[ "${slot}" == "0" ]]; then
+ suffix=""
+ else
+ suffix="-${slot}"
+ fi
+
+ echo -n "${suffix}"
+}
+
+_get_install_dir() {
+ echo -n "/usr/$(get_libdir)/electron$(_get_install_suffix)"
+}
+
+src_prepare() {
+ # Merge Electron code and its submodules into the Chromium source tree
+ # so that everything can be configured and built in a single pass.
+ #
+ rsync -a --ignore-existing "${ELECTRON_S}/" "${S}/" || die
+ rm -r "${NODE_S}" &&
+ mv "${WORKDIR}/${NODE_P}" "${NODE_S}" || die
+ rm -r "${BRIGHTRAY_S}" &&
+ mv "${WORKDIR}/${BRIGHTRAY_P}" "${BRIGHTRAY_S}" || die
+ rm -r "${NATIVE_MATE_S}" &&
+ mv "${WORKDIR}/${NATIVE_MATE_P}" "${NATIVE_MATE_S}" || die
+ rm -r "${LIBCC_S}" &&
+ mv "${WORKDIR}/${LIBCHROMIUMCONTENT_P}" "${LIBCC_S}" || die
+ rm -r "${S}/vendor/breakpad" &&
+ ln -s "../breakpad" "${S}/vendor/breakpad" || die
+ ln -s "${WORKDIR}/${ASAR_P}/node_modules" "${S}/node_modules" || die
+
+ # electron patches
+ epatch "${FILESDIR}/${P}.patch"
+
+ # node patches
+ cd "${NODE_S}" || die
+ epatch "${FILESDIR}/${P}-vendor-node.patch"
+ epatch "${FILESDIR}/electron-vendor-node-external-snapshots-r0.patch"
+ # make sure node uses the correct version of v8
+ rm -r deps/v8 || die
+ ln -s ../../../v8 deps/ || die
+
+ # make sure we use python2.* while using gyp
+ sed -i -e "s/python/${EPYTHON}/" deps/npm/node_modules/node-gyp/gyp/gyp || die
+ sed -i -e "s/|| 'python'/|| '${EPYTHON}'/" deps/npm/node_modules/node-gyp/lib/configure.js || die
+
+ # less verbose install output (stating the same as portage, basically)
+ sed -i -e "/print/d" tools/install.py || die
+
+ # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504
+ local LIBDIR=$(get_libdir)
+ sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die
+ sed -i -e "s/'lib'/'${LIBDIR}'/" lib/module.js || die
+ sed -i -e "s|\"lib\"|\"${LIBDIR}\"|" deps/npm/lib/npm.js || die
+
+ # brightray patches
+ cd "${BRIGHTRAY_S}" || die
+ epatch "${FILESDIR}/${P}-vendor-brightray.patch"
+
+ # libcc patches
+ cd "${LIBCC_S}" || die
+ epatch "${FILESDIR}/${P}-vendor-libchromiumcontent.patch"
+
+ # chromium patches
+ cd "${S}" || die
+ epatch "${FILESDIR}/chromium-system-ffmpeg-r0.patch"
+ epatch "${FILESDIR}/chromium-system-jinja-r7.patch"
+ epatch "${FILESDIR}/chromium-disable-widevine.patch"
+ epatch "${FILESDIR}/chromium-remove-gardiner-mod-font.patch"
+ epatch "${FILESDIR}/chromium-shared-v8.patch"
+ epatch "${FILESDIR}/chromium-lto-fixes.patch"
+ epatch "${FILESDIR}/chromium-cups-fix.patch"
+
+ # libcc chromium patches
+ _unnest_patches "${LIBCC_S}/patches"
+
+ EPATCH_SOURCE="${LIBCC_S}/patches" \
+ EPATCH_SUFFIX="patch" \
+ EPATCH_FORCE="yes" \
+ EPATCH_EXCLUDE="third_party_icu*" \
+ EPATCH_MULTI_MSG="Applying libchromiumcontent patches..." \
+ epatch
+
+ # build scripts
+ mkdir -p "${S}/chromiumcontent" || die
+ cp -a "${LIBCC_S}/chromiumcontent" "${S}/" || die
+ cp -a "${LIBCC_S}/tools/linux/" "${S}/tools/" || die
+
+ local conditional_bundled_libraries=""
+ if ! use system-ffmpeg; then
+ conditional_bundled_libraries+=" third_party/ffmpeg"
+ fi
+
+ # Remove most bundled libraries. Some are still needed.
+ build/linux/unbundle/remove_bundled_libraries.py \
+ ${conditional_bundled_libraries} \
+ 'base/third_party/dmg_fp' \
+ 'base/third_party/dynamic_annotations' \
+ 'base/third_party/icu' \
+ 'base/third_party/nspr' \
+ 'base/third_party/superfasthash' \
+ 'base/third_party/symbolize' \
+ 'base/third_party/valgrind' \
+ 'base/third_party/xdg_mime' \
+ 'base/third_party/xdg_user_dirs' \
+ 'breakpad/src/third_party/curl' \
+ 'chrome/third_party/mozilla_security_manager' \
+ 'courgette/third_party' \
+ 'crypto/third_party/nss' \
+ 'net/third_party/mozilla_security_manager' \
+ 'net/third_party/nss' \
+ 'third_party/WebKit' \
+ 'third_party/analytics' \
+ 'third_party/angle' \
+ 'third_party/angle/src/third_party/compiler' \
+ 'third_party/boringssl' \
+ 'third_party/brotli' \
+ 'third_party/cacheinvalidation' \
+ 'third_party/catapult' \
+ 'third_party/catapult/tracing/third_party/components/polymer' \
+ 'third_party/catapult/tracing/third_party/d3' \
+ 'third_party/catapult/tracing/third_party/gl-matrix' \
+ 'third_party/catapult/tracing/third_party/jszip' \
+ 'third_party/catapult/tracing/third_party/tvcm' \
+ 'third_party/catapult/tracing/third_party/tvcm/third_party/rcssmin' \
+ 'third_party/catapult/tracing/third_party/tvcm/third_party/rjsmin' \
+ 'third_party/cld_2' \
+ 'third_party/cros_system_api' \
+ 'third_party/cython/python_flags.py' \
+ 'third_party/devscripts' \
+ 'third_party/dom_distiller_js' \
+ 'third_party/dom_distiller_js/dist/proto_gen/third_party/dom_distiller_js' \
+ 'third_party/fips181' \
+ 'third_party/flot' \
+ 'third_party/google_input_tools' \
+ 'third_party/google_input_tools/third_party/closure_library' \
+ 'third_party/google_input_tools/third_party/closure_library/third_party/closure' \
+ 'third_party/hunspell' \
+ 'third_party/iccjpeg' \
+ 'third_party/jstemplate' \
+ 'third_party/khronos' \
+ 'third_party/leveldatabase' \
+ 'third_party/libXNVCtrl' \
+ 'third_party/libaddressinput' \
+ 'third_party/libjingle' \
+ 'third_party/libphonenumber' \
+ 'third_party/libsecret' \
+ 'third_party/libsrtp' \
+ 'third_party/libudev' \
+ 'third_party/libusb' \
+ 'third_party/libvpx_new' \
+ 'third_party/libvpx_new/source/libvpx/third_party/x86inc' \
+ 'third_party/libxml/chromium' \
+ 'third_party/libwebm' \
+ 'third_party/libyuv' \
+ 'third_party/lss' \
+ 'third_party/lzma_sdk' \
+ 'third_party/mesa' \
+ 'third_party/modp_b64' \
+ 'third_party/mojo' \
+ 'third_party/mt19937ar' \
+ 'third_party/npapi' \
+ 'third_party/openmax_dl' \
+ 'third_party/opus' \
+ 'third_party/ots' \
+ 'third_party/pdfium' \
+ 'third_party/pdfium/third_party/agg23' \
+ 'third_party/pdfium/third_party/base' \
+ 'third_party/pdfium/third_party/bigint' \
+ 'third_party/pdfium/third_party/freetype' \
+ 'third_party/pdfium/third_party/lcms2-2.6' \
+ 'third_party/pdfium/third_party/libjpeg' \
+ 'third_party/pdfium/third_party/libopenjpeg20' \
+ 'third_party/pdfium/third_party/zlib_v128' \
+ 'third_party/polymer' \
+ 'third_party/protobuf' \
+ 'third_party/qcms' \
+ 'third_party/readability' \
+ 'third_party/sfntly' \
+ 'third_party/skia' \
+ 'third_party/smhasher' \
+ 'third_party/sqlite' \
+ 'third_party/tcmalloc' \
+ 'third_party/usrsctp' \
+ 'third_party/web-animations-js' \
+ 'third_party/webdriver' \
+ 'third_party/webrtc' \
+ 'third_party/widevine' \
+ 'third_party/x86inc' \
+ 'third_party/zlib/google' \
+ 'url/third_party/mozilla' \
+ 'v8/src/third_party/fdlibm' \
+ 'v8/src/third_party/valgrind' \
+ --do-remove || die
+
+ epatch_user
+}
+
+src_configure() {
+ local myconf=""
+
+ # Never tell the build system to "enable" SSE2, it has a few unexpected
+ # additions, bug #336871.
+ myconf+=" -Ddisable_sse2=1"
+
+ # Disable nacl, we can't build without pnacl (http://crbug.com/269560).
+ myconf+=" -Ddisable_nacl=1"
+
+ # Disable glibc Native Client toolchain, we don't need it (bug #417019).
+ # myconf+=" -Ddisable_glibc=1"
+
+ # TODO: also build with pnacl
+ # myconf+=" -Ddisable_pnacl=1"
+
+ # It would be awkward for us to tar the toolchain and get it untarred again
+ # during the build.
+ # myconf+=" -Ddisable_newlib_untar=1"
+
+ # Make it possible to remove third_party/adobe.
+ echo > "${T}/flapper_version.h" || die
+ myconf+=" -Dflapper_version_h_file=${T}/flapper_version.h"
+
+ # Use system-provided libraries.
+ # TODO: use_system_hunspell (upstream changes needed).
+ # TODO: use_system_libsrtp (bug #459932).
+ # TODO: use_system_libusb (http://crbug.com/266149).
+ # TODO: use_system_libvpx (http://crbug.com/494939).
+ # TODO: use_system_opus (https://code.google.com/p/webrtc/issues/detail?id=3077).
+ # TODO: use_system_protobuf (bug #525560).
+ # TODO: use_system_ssl (http://crbug.com/58087).
+ # TODO: use_system_sqlite (http://crbug.com/22208).
+ myconf+="
+ -Duse_system_bzip2=1
+ -Duse_system_ffmpeg=$(usex system-ffmpeg 1 0)
+ -Duse_system_flac=1
+ -Duse_system_harfbuzz=1
+ -Duse_system_icu=1
+ -Duse_system_jsoncpp=1
+ -Duse_system_libevent=1
+ -Duse_system_libjpeg=1
+ -Duse_system_libpng=1
+ -Duse_system_libwebp=1
+ -Duse_system_libxml=1
+ -Duse_system_libxslt=1
+ -Duse_system_minizip=1
+ -Duse_system_nspr=1
+ -Duse_system_re2=1
+ -Duse_system_snappy=1
+ -Duse_system_speex=1
+ -Duse_system_xdg_utils=1
+ -Duse_system_zlib=1"
+
+ # Needed for system icu - we don't need additional data files.
+ myconf+=" -Dicu_use_data_file_flag=0"
+
+ # TODO: patch gyp so that this arm conditional is not needed.
+ if ! use arm; then
+ myconf+="
+ -Duse_system_yasm=1"
+ fi
+
+ # Optional dependencies.
+ # TODO: linux_link_kerberos, bug #381289.
+ myconf+="
+ $(gyp_use cups)
+ $(gyp_use gnome use_gconf)
+ $(gyp_use gnome-keyring use_gnome_keyring)
+ $(gyp_use gnome-keyring linux_link_gnome_keyring)
+ $(gyp_use hidpi enable_hidpi)
+ $(gyp_use kerberos)
+ $(gyp_use lto)
+ $(gyp_use pulseaudio)
+ $(gyp_use tcmalloc use_allocator tcmalloc none)"
+
+ # Use explicit library dependencies instead of dlopen.
+ # This makes breakages easier to detect by revdep-rebuild.
+ myconf+="
+ -Dlinux_link_gsettings=1
+ -Dlinux_link_libpci=1
+ -Dlinux_link_libspeechd=1
+ -Dlibspeechd_h_prefix=speech-dispatcher/"
+
+ # TODO: use the file at run time instead of effectively compiling it in.
+ myconf+="
+ -Dusb_ids_path=/usr/share/misc/usb.ids"
+
+ # Save space by removing DLOG and DCHECK messages (about 6% reduction).
+ myconf+="
+ -Dlogging_like_official_build=1"
+
+ if [[ $(tc-getCC) == *clang* ]]; then
+ myconf+=" -Dclang=1"
+ else
+ myconf+=" -Dclang=0"
+ fi
+
+ # Never use bundled gold binary. Disable gold linker flags for now.
+ # Do not use bundled clang.
+ myconf+="
+ -Dclang_use_chrome_plugins=0
+ -Dhost_clang=0
+ -Dlinux_use_bundled_binutils=0
+ -Dlinux_use_bundled_gold=0
+ -Dlinux_use_gold_flags=0"
+
+ ffmpeg_branding="$(usex proprietary-codecs Chrome Chromium)"
+ myconf+=" -Dproprietary_codecs=1 -Dffmpeg_branding=${ffmpeg_branding}"
+
+ # Set up Google API keys, see http://www.chromium.org/developers/how-tos/api-keys .
+ # Note: these are for Gentoo use ONLY. For your own distribution,
+ # please get your own set of keys. Feel free to contact chromium@gentoo.org
+ # for more info.
+ myconf+=" -Dgoogle_api_key=AIzaSyDEAOvatFo0eTgsV_ZlEzx0ObmepsMzfAc
+ -Dgoogle_default_client_id=329227923882.apps.googleusercontent.com
+ -Dgoogle_default_client_secret=vgKG0NNv7GoDpbtoFNLxCUXu"
+
+ local myarch="$(tc-arch)"
+ if [[ $myarch = amd64 ]] ; then
+ target_arch=x64
+ ffmpeg_target_arch=x64
+ elif [[ $myarch = x86 ]] ; then
+ target_arch=ia32
+ ffmpeg_target_arch=ia32
+ elif [[ $myarch = arm ]] ; then
+ target_arch=arm
+ ffmpeg_target_arch=$(usex neon arm-neon arm)
+ # TODO: re-enable NaCl (NativeClient).
+ local CTARGET=${CTARGET:-${CHOST}}
+ if [[ $(tc-is-softfloat) == "no" ]]; then
+
+ myconf+=" -Darm_float_abi=hard"
+ fi
+ filter-flags "-mfpu=*"
+ use neon || myconf+=" -Darm_fpu=${ARM_FPU:-vfpv3-d16}"
+
+ if [[ ${CTARGET} == armv[78]* ]]; then
+ myconf+=" -Darmv7=1"
+ else
+ myconf+=" -Darmv7=0"
+ fi
+ myconf+=" -Dsysroot=
+ $(gyp_use neon arm_neon)
+ -Ddisable_nacl=1"
+ else
+ die "Failed to determine target arch, got '$myarch'."
+ fi
+
+ myconf+=" -Dtarget_arch=${target_arch}"
+
+ # Make sure that -Werror doesn't get added to CFLAGS by the build system.
+ # Depending on GCC version the warnings are different and we don't want
+ # the build to fail because of that.
+ myconf+=" -Dwerror="
+
+ # Disable fatal linker warnings, bug 506268.
+ myconf+=" -Ddisable_fatal_linker_warnings=1"
+
+ # Avoid CFLAGS problems, bug #352457, bug #390147.
+ if ! use custom-cflags; then
+ replace-flags "-Os" "-O2"
+ strip-flags
+
+ # Prevent linker from running out of address space, bug #471810 .
+ if use x86; then
+ filter-flags "-g*"
+ fi
+
+ # Prevent libvpx build failures. Bug 530248, 544702, 546984.
+ if [[ ${myarch} == amd64 || ${myarch} == x86 ]]; then
+ filter-flags -mno-mmx -mno-sse2 -mno-ssse3 -mno-sse4.1 -mno-avx -mno-avx2
+ fi
+ fi
+
+ # Make sure the build system will use the right tools, bug #340795.
+ tc-export AR CC CXX NM
+
+ # Tools for building programs to be executed on the build system, bug #410883.
+ if tc-is-cross-compiler; then
+ export AR_host=$(tc-getBUILD_AR)
+ export CC_host=$(tc-getBUILD_CC)
+ export CXX_host=$(tc-getBUILD_CXX)
+ export NM_host=$(tc-getBUILD_NM)
+ fi
+
+ # Bug 491582.
+ export TMPDIR="${WORKDIR}/temp"
+ mkdir -p -m 755 "${TMPDIR}" || die
+
+ if ! use system-ffmpeg; then
+ local build_ffmpeg_args=""
+ if use pic && [[ "${ffmpeg_target_arch}" == "ia32" ]]; then
+ build_ffmpeg_args+=" --disable-asm"
+ fi
+
+ # Re-configure bundled ffmpeg. See bug #491378 for example reasons.
+ einfo "Configuring bundled ffmpeg..."
+ pushd third_party/ffmpeg > /dev/null || die
+ chromium/scripts/build_ffmpeg.py linux ${ffmpeg_target_arch} \
+ --branding ${ffmpeg_branding} -- ${build_ffmpeg_args} || die
+ chromium/scripts/copy_config.sh || die
+ chromium/scripts/generate_gyp.py || die
+ popd > /dev/null || die
+ fi
+
+ third_party/libaddressinput/chromium/tools/update-strings.py || die
+
+ einfo "Configuring bundled nodejs..."
+ pushd vendor/node > /dev/null || die
+ # Make sure gyp_node does not run
+ echo '#!/usr/bin/env python' > tools/gyp_node.py || die
+ # --shared-libuv cannot be used as electron's node fork
+ # patches uv_loop structure.
+ ./configure --shared-openssl --shared-http-parser \
+ --shared-zlib --without-npm --with-intl=system-icu \
+ --without-dtrace --dest-cpu=${target_arch} \
+ --prefix="" || die
+ popd > /dev/null || die
+
+ # libchromiumcontent configuration
+ myconf+=" -Dcomponent=static_library"
+ myconf+=" -Dmac_mas_build=0"
+ myconf+=' -Dicu_small="false"'
+ myconf+=" -Dlibchromiumcontent_component=0"
+ myconf+=" -Dlibrary=static_library"
+ myconf+=" -Dmas_build=0"
+
+ einfo "Configuring electron..."
+ build/linux/unbundle/replace_gyp_files.py ${myconf} || die
+
+ myconf+=" -Ivendor/node/config.gypi
+ -Icommon.gypi
+ atom.gyp"
+
+ egyp_chromium ${myconf} || die
+}
+
+eninja() {
+ if [[ -z ${NINJAOPTS+set} ]]; then
+ local jobs=$(makeopts_jobs)
+ local loadavg=$(makeopts_loadavg)
+
+ if [[ ${MAKEOPTS} == *-j* && ${jobs} != 999 ]]; then
+ NINJAOPTS+=" -j ${jobs}"
+ fi
+ if [[ ${MAKEOPTS} == *-l* && ${loadavg} != 999 ]]; then
+ NINJAOPTS+=" -l ${loadavg}"
+ fi
+ fi
+ set -- ninja -v ${NINJAOPTS} "$@"
+ echo "$@"
+ "$@"
+}
+
+src_compile() {
+ local ninja_targets="electron" compile_target="out/R"
+
+ eninja -C ${compile_target} mksnapshot || die
+ pax-mark -m ${compile_target}/mksnapshot
+
+ eninja -C ${compile_target} nodebin || die
+ pax-mark -m ${compile_target}/nodebin
+
+ # Even though ninja autodetects number of CPUs, we respect
+ # user's options, for debugging with -j 1 or any other reason.
+ eninja -C ${compile_target} ${ninja_targets} || die
+}
+
+src_install() {
+ local install_dir="$(_get_install_dir)"
+ local install_suffix="$(_get_install_suffix)"
+ local LIBDIR="${ED}/usr/$(get_libdir)"
+
+ pushd out/R/locales > /dev/null || die
+ chromium_remove_language_paks
+ popd > /dev/null || die
+
+ # Install Electron
+ insinto "${install_dir}"
+ exeinto "${install_dir}"
+ newexe out/R/nodebin node
+ doexe out/R/electron
+ doins out/R/libv8.so
+ doins out/R/libnode.so
+ fperms +x "${install_dir}/libv8.so" "${install_dir}/libnode.so"
+ doins out/R/content_shell.pak
+ doins out/R/natives_blob.bin
+ doins out/R/snapshot_blob.bin
+ rm -r out/R/resources/inspector || die
+ doins -r out/R/resources
+ doins -r out/R/locales
+ dosym "${install_dir}/electron" "/usr/bin/electron${install_suffix}"
+
+ # Install Node headers
+ HEADERS_ONLY=1 \
+ "${S}/vendor/node/tools/install.py" install "${ED}" "/usr" || die
+ # set up a symlink structure that npm expects..
+ dodir /usr/include/node/deps/{v8,uv}
+ dosym . /usr/include/node/src
+ for var in deps/{uv,v8}/include; do
+ dosym ../.. /usr/include/node/${var}
+ done
+
+ dodir "/usr/include/electron${install_suffix}"
+ mv "${ED}/usr/include/node" \
+ "${ED}/usr/include/electron${install_suffix}/node" || die
+}
+
+pkg_postinst() {
+ eselect electron update
+}
+
+pkg_prerm() {
+ eselect electron update
+}
diff --git a/dev-util/electron/electron-0.37.8-r2.ebuild b/dev-util/electron/electron-0.37.8-r2.ebuild
new file mode 100644
index 000000000000..d4bf4ae0d2f4
--- /dev/null
+++ b/dev-util/electron/electron-0.37.8-r2.ebuild
@@ -0,0 +1,750 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+PYTHON_COMPAT=( python2_7 )
+
+CHROMIUM_LANGS="am ar bg bn ca cs da de el en-GB es es-419 et fa fi fil fr gu he
+ hi hr hu id it ja kn ko lt lv ml mr ms nb nl pl pt-BR pt-PT ro ru sk sl sr
+ sv sw ta te th tr uk vi zh-CN zh-TW"
+
+inherit check-reqs chromium-2 eutils flag-o-matic multilib multiprocessing \
+ pax-utils portability python-any-r1 readme.gentoo-r1 toolchain-funcs \
+ versionator virtualx
+
+# Keep this in sync with vendor/brightray/vendor/libchromiumcontent/VERSION
+CHROMIUM_VERSION="49.0.2623.75"
+# Keep this in sync with vendor/brightray
+BRIGHTRAY_COMMIT="8dbaeed37b9c4fb8ae985670b142f659bb265fb4"
+# Keep this in sync with vendor/node
+NODE_COMMIT="6bcd8af891a991f8aa196e49e6bf908ebbe24cae"
+# Keep this in sync with vendor/native_mate
+NATIVE_MATE_COMMIT="0df2d882ea2286e6335f206b7002037fce66c4a5"
+# Keep this in sync with vendor/brightray/vendor/libchromiumcontent
+LIBCHROMIUMCONTENT_COMMIT="60c7ec9f9bf465a8c9c7ccc3fcd2aa1cdf644bac"
+# Keep this in sync with package.json#devDependencies
+ASAR_VERSION="0.12.1"
+
+CHROMIUM_P="chromium-${CHROMIUM_VERSION}"
+BRIGHTRAY_P="brightray-${BRIGHTRAY_COMMIT}"
+NODE_P="node-${NODE_COMMIT}"
+NATIVE_MATE_P="native-mate-${NATIVE_MATE_COMMIT}"
+LIBCHROMIUMCONTENT_P="libchromiumcontent-${LIBCHROMIUMCONTENT_COMMIT}"
+ASAR_P="asar-${ASAR_VERSION}"
+
+DESCRIPTION="Cross platform application development framework based on web technologies"
+HOMEPAGE="https://electron.atom.io/"
+SRC_URI="
+ https://commondatastorage.googleapis.com/chromium-browser-official/${CHROMIUM_P}.tar.xz
+ https://github.com/electron/electron/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ https://github.com/electron/brightray/archive/${BRIGHTRAY_COMMIT}.tar.gz -> ${BRIGHTRAY_P}.tar.gz
+ https://github.com/electron/node/archive/${NODE_COMMIT}.tar.gz -> electron-${NODE_P}.tar.gz
+ https://github.com/zcbenz/native-mate/archive/${NATIVE_MATE_COMMIT}.tar.gz -> ${NATIVE_MATE_P}.tar.gz
+ https://github.com/electron/libchromiumcontent/archive/${LIBCHROMIUMCONTENT_COMMIT}.tar.gz -> ${LIBCHROMIUMCONTENT_P}.tar.gz
+ https://github.com/elprans/asar/releases/download/v${ASAR_VERSION}-gentoo/asar-build.tar.gz -> ${ASAR_P}.tar.gz
+"
+
+S="${WORKDIR}/${CHROMIUM_P}"
+ELECTRON_S="${WORKDIR}/${P}"
+NODE_S="${S}/vendor/node"
+BRIGHTRAY_S="${S}/vendor/brightray"
+NATIVE_MATE_S="${S}/vendor/native_mate"
+LIBCC_S="${BRIGHTRAY_S}/vendor/libchromiumcontent"
+
+LICENSE="BSD"
+SLOT="$(get_version_component_range 1-2)"
+KEYWORDS="~amd64"
+IUSE="custom-cflags cups debug gnome gnome-keyring hidpi kerberos lto neon pic +proprietary-codecs pulseaudio selinux +system-ffmpeg +tcmalloc"
+RESTRICT="!system-ffmpeg? ( proprietary-codecs? ( bindist ) )"
+
+# Native Client binaries are compiled with different set of flags, bug #452066.
+QA_FLAGS_IGNORED=".*\.nexe"
+
+# Native Client binaries may be stripped by the build system, which uses the
+# right tools for it, bug #469144 .
+QA_PRESTRIPPED=".*\.nexe"
+
+RDEPEND="!<dev-util/electron-0.36.12-r4
+ >=app-accessibility/speech-dispatcher-0.8:=
+ app-arch/bzip2:=
+ app-arch/snappy:=
+ >=app-eselect/eselect-electron-1.0.0
+ cups? ( >=net-print/cups-1.3.11:= )
+ >=dev-libs/elfutils-0.149
+ dev-libs/expat:=
+ dev-libs/glib:=
+ >=dev-libs/icu-55.1:=
+ >=dev-libs/jsoncpp-0.5.0-r1:=
+ >=dev-libs/libevent-1.4.13:=
+ dev-libs/libxml2:=[icu]
+ dev-libs/libxslt:=
+ dev-libs/nspr:=
+ >=dev-libs/nss-3.14.3:=
+ dev-libs/re2:=
+ gnome? ( >=gnome-base/gconf-2.24.0:= )
+ gnome-keyring? ( >=gnome-base/libgnome-keyring-3.12:= )
+ >=media-libs/alsa-lib-1.0.19:=
+ media-libs/flac:=
+ media-libs/fontconfig:=
+ media-libs/freetype:=
+ >=media-libs/harfbuzz-0.9.41:=[icu(+)]
+ media-libs/libexif:=
+ >=media-libs/libjpeg-turbo-1.2.0-r1:=
+ media-libs/libpng:0=
+ >=media-libs/libwebp-0.4.0:=
+ media-libs/speex:=
+ pulseaudio? ( media-sound/pulseaudio:= )
+ system-ffmpeg? ( >=media-video/ffmpeg-2.7.2:=[opus,vorbis,vpx] )
+ sys-apps/dbus:=
+ sys-apps/pciutils:=
+ >=sys-libs/libcap-2.22:=
+ sys-libs/zlib:=[minizip]
+ virtual/udev
+ x11-libs/cairo:=
+ x11-libs/gdk-pixbuf:=
+ x11-libs/gtk+:2=
+ x11-libs/libdrm
+ x11-libs/libnotify:=
+ x11-libs/libX11:=
+ x11-libs/libXcomposite:=
+ x11-libs/libXcursor:=
+ x11-libs/libXdamage:=
+ x11-libs/libXext:=
+ x11-libs/libXfixes:=
+ >=x11-libs/libXi-1.6.0:=
+ x11-libs/libXinerama:=
+ x11-libs/libXrandr:=
+ x11-libs/libXrender:=
+ x11-libs/libXScrnSaver:=
+ x11-libs/libXtst:=
+ x11-libs/pango:=
+ kerberos? ( virtual/krb5 )
+ >=net-libs/http-parser-2.6.2:=
+ >=dev-libs/openssl-1.0.2g:0=[-bindist]"
+DEPEND="${RDEPEND}
+ !arm? (
+ dev-lang/yasm
+ )
+ dev-lang/perl
+ dev-perl/JSON
+ >=dev-util/gperf-3.0.3
+ dev-util/ninja
+ sys-apps/hwids[usb(+)]
+ >=sys-devel/bison-2.4.3
+ sys-devel/flex
+ virtual/pkgconfig"
+
+# For nvidia-drivers blocker, see bug #413637 .
+RDEPEND+="
+ x11-misc/xdg-utils
+ virtual/opengl
+ virtual/ttf-fonts
+ selinux? ( sec-policy/selinux-chromium )
+ tcmalloc? ( !<x11-drivers/nvidia-drivers-331.20 )"
+
+# Python dependencies. The DEPEND part needs to be kept in sync
+# with python_check_deps.
+DEPEND+=" $(python_gen_any_dep '
+ dev-python/beautifulsoup:python-2[${PYTHON_USEDEP}]
+ dev-python/beautifulsoup:4[${PYTHON_USEDEP}]
+ dev-python/html5lib[${PYTHON_USEDEP}]
+ dev-python/jinja[${PYTHON_USEDEP}]
+ dev-python/jsmin[${PYTHON_USEDEP}]
+ dev-python/ply[${PYTHON_USEDEP}]
+ dev-python/simplejson[${PYTHON_USEDEP}]
+')"
+python_check_deps() {
+ has_version --host-root "dev-python/beautifulsoup:python-2[${PYTHON_USEDEP}]" &&
+ has_version --host-root "dev-python/beautifulsoup:4[${PYTHON_USEDEP}]" &&
+ has_version --host-root "dev-python/html5lib[${PYTHON_USEDEP}]" &&
+ has_version --host-root "dev-python/jinja[${PYTHON_USEDEP}]" &&
+ has_version --host-root "dev-python/jsmin[${PYTHON_USEDEP}]" &&
+ has_version --host-root "dev-python/ply[${PYTHON_USEDEP}]" &&
+ has_version --host-root "dev-python/simplejson[${PYTHON_USEDEP}]"
+}
+
+if ! has chromium_pkg_die ${EBUILD_DEATH_HOOKS}; then
+ EBUILD_DEATH_HOOKS+=" chromium_pkg_die";
+fi
+
+pkg_pretend() {
+ if [[ $(tc-getCC)$ == *gcc* ]] && \
+ [[ $(gcc-major-version)$(gcc-minor-version) -lt 48 ]]; then
+ die 'At least gcc 4.8 is required, see bugs: #535730, #525374, #518668.'
+ fi
+
+ # LTO pass requires more file descriptors
+ if use lto; then
+ local lto_n_rlimit_min="16384"
+ local maxfiles=$(ulimit -n -H)
+ if [ "${maxfiles}" -lt "${lto_n_rlimit_min}" ]; then
+ eerror ""
+ eerror "Building with USE=\"lto\" requires file descriptor" \
+ "limit to be no less than ${lto_n_rlimit_min}."
+ eerror "The current limit for portage is ${maxfiles}."
+ eerror "Please add the following to /etc/security/limits.conf:"
+ eerror ""
+ eerror " root hard nofile ${lto_n_rlimit_min}"
+ eerror " root soft nofile ${lto_n_rlimit_min}"
+ eerror ""
+ die
+ fi
+ fi
+
+ # Check build requirements, bug #541816 and bug #471810 .
+ CHECKREQS_MEMORY="3G"
+ use lto && CHECKREQS_MEMORY="5G"
+ CHECKREQS_DISK_BUILD="10G"
+ eshopts_push -s extglob
+ if is-flagq '-g?(gdb)?([1-9])'; then
+ CHECKREQS_DISK_BUILD="25G"
+ fi
+ eshopts_pop
+ check-reqs_pkg_pretend
+}
+
+pkg_setup() {
+ # Make sure the build system will use the right python, bug #344367.
+ python-any-r1_pkg_setup
+
+ chromium_suid_sandbox_check_kernel_config
+}
+
+_unnest_patches() {
+ local _s="${1%/}/" relpath out
+
+ for f in $(find "${_s}" -mindepth 2 -name *.patch -printf \"%P\"\\n); do
+ relpath="$(dirname ${f})"
+ out="${_s}/${relpath////_}_$(basename ${f})"
+ sed -r -e "s|^([-+]{3}) (.*)$|\1 ${relpath}/\2 ${f}|g" > "${out}"
+ done
+}
+
+_get_install_suffix() {
+ local c=(${SLOT//\// })
+ local slot=${c[0]}
+ local suffix
+
+ if [[ "${slot}" == "0" ]]; then
+ suffix=""
+ else
+ suffix="-${slot}"
+ fi
+
+ echo -n "${suffix}"
+}
+
+_get_install_dir() {
+ echo -n "/usr/$(get_libdir)/electron$(_get_install_suffix)"
+}
+
+src_prepare() {
+ # Merge Electron code and its submodules into the Chromium source tree
+ # so that everything can be configured and built in a single pass.
+ #
+ rsync -a --ignore-existing "${ELECTRON_S}/" "${S}/" || die
+ rm -r "${NODE_S}" &&
+ mv "${WORKDIR}/${NODE_P}" "${NODE_S}" || die
+ rm -r "${BRIGHTRAY_S}" &&
+ mv "${WORKDIR}/${BRIGHTRAY_P}" "${BRIGHTRAY_S}" || die
+ rm -r "${NATIVE_MATE_S}" &&
+ mv "${WORKDIR}/${NATIVE_MATE_P}" "${NATIVE_MATE_S}" || die
+ rm -r "${LIBCC_S}" &&
+ mv "${WORKDIR}/${LIBCHROMIUMCONTENT_P}" "${LIBCC_S}" || die
+ rm -r "${S}/vendor/breakpad" &&
+ ln -s "../breakpad" "${S}/vendor/breakpad" || die
+ ln -s "${WORKDIR}/${ASAR_P}/node_modules" "${S}/node_modules" || die
+
+ # electron patches
+ epatch "${FILESDIR}/${P}.patch"
+
+ # node patches
+ cd "${NODE_S}" || die
+ epatch "${FILESDIR}/${P}-vendor-node.patch"
+ epatch "${FILESDIR}/electron-vendor-node-external-snapshots-r0.patch"
+ # make sure node uses the correct version of v8
+ rm -r deps/v8 || die
+ ln -s ../../../v8 deps/ || die
+
+ # make sure we use python2.* while using gyp
+ sed -i -e "s/python/${EPYTHON}/" deps/npm/node_modules/node-gyp/gyp/gyp || die
+ sed -i -e "s/|| 'python'/|| '${EPYTHON}'/" deps/npm/node_modules/node-gyp/lib/configure.js || die
+
+ # less verbose install output (stating the same as portage, basically)
+ sed -i -e "/print/d" tools/install.py || die
+
+ # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504
+ local LIBDIR=$(get_libdir)
+ sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die
+ sed -i -e "s/'lib'/'${LIBDIR}'/" lib/module.js || die
+ sed -i -e "s|\"lib\"|\"${LIBDIR}\"|" deps/npm/lib/npm.js || die
+
+ # brightray patches
+ cd "${BRIGHTRAY_S}" || die
+ epatch "${FILESDIR}/${P}-vendor-brightray.patch"
+
+ # libcc patches
+ cd "${LIBCC_S}" || die
+ epatch "${FILESDIR}/${P}-vendor-libchromiumcontent.patch"
+
+ # chromium patches
+ cd "${S}" || die
+ epatch "${FILESDIR}/chromium-system-ffmpeg-r2.patch"
+ epatch "${FILESDIR}/chromium-system-jinja-r7.patch"
+ epatch "${FILESDIR}/chromium-disable-widevine.patch"
+ epatch "${FILESDIR}/chromium-last-commit-position-r0.patch"
+ epatch "${FILESDIR}/chromium-snapshot-toolchain-r1.patch"
+ epatch "${FILESDIR}/chromium-remove-gardiner-mod-font.patch"
+ epatch "${FILESDIR}/chromium-shared-v8.patch"
+ epatch "${FILESDIR}/chromium-lto-fixes.patch"
+ epatch "${FILESDIR}/chromium-icu-58-r0.patch"
+ epatch "${FILESDIR}/chromium-cups-fix.patch"
+
+ # libcc chromium patches
+ _unnest_patches "${LIBCC_S}/patches"
+
+ EPATCH_SOURCE="${LIBCC_S}/patches" \
+ EPATCH_SUFFIX="patch" \
+ EPATCH_FORCE="yes" \
+ EPATCH_EXCLUDE="third_party_icu*" \
+ EPATCH_MULTI_MSG="Applying libchromiumcontent patches..." \
+ epatch
+
+ # build scripts
+ mkdir -p "${S}/chromiumcontent" || die
+ cp -a "${LIBCC_S}/chromiumcontent" "${S}/" || die
+ cp -a "${LIBCC_S}/tools/linux/" "${S}/tools/" || die
+
+ local conditional_bundled_libraries=""
+ if ! use system-ffmpeg; then
+ conditional_bundled_libraries+=" third_party/ffmpeg"
+ fi
+
+ # Remove most bundled libraries. Some are still needed.
+ build/linux/unbundle/remove_bundled_libraries.py \
+ ${conditional_bundled_libraries} \
+ 'base/third_party/dmg_fp' \
+ 'base/third_party/dynamic_annotations' \
+ 'base/third_party/icu' \
+ 'base/third_party/nspr' \
+ 'base/third_party/superfasthash' \
+ 'base/third_party/symbolize' \
+ 'base/third_party/valgrind' \
+ 'base/third_party/xdg_mime' \
+ 'base/third_party/xdg_user_dirs' \
+ 'breakpad/src/third_party/curl' \
+ 'chrome/third_party/mozilla_security_manager' \
+ 'courgette/third_party' \
+ 'crypto/third_party/nss' \
+ 'net/third_party/mozilla_security_manager' \
+ 'net/third_party/nss' \
+ 'third_party/WebKit' \
+ 'third_party/analytics' \
+ 'third_party/angle' \
+ 'third_party/angle/src/third_party/compiler' \
+ 'third_party/angle/src/third_party/murmurhash' \
+ 'third_party/angle/src/third_party/trace_event' \
+ 'third_party/boringssl' \
+ 'third_party/brotli' \
+ 'third_party/cacheinvalidation' \
+ 'third_party/catapult' \
+ 'third_party/catapult/third_party/py_vulcanize' \
+ 'third_party/catapult/third_party/py_vulcanize/third_party/rcssmin' \
+ 'third_party/catapult/third_party/py_vulcanize/third_party/rjsmin' \
+ 'third_party/catapult/tracing/third_party/components/polymer' \
+ 'third_party/catapult/tracing/third_party/d3' \
+ 'third_party/catapult/tracing/third_party/gl-matrix' \
+ 'third_party/catapult/tracing/third_party/jszip' \
+ 'third_party/cld_2' \
+ 'third_party/cros_system_api' \
+ 'third_party/cython/python_flags.py' \
+ 'third_party/devscripts' \
+ 'third_party/dom_distiller_js' \
+ 'third_party/dom_distiller_js/dist/proto_gen/third_party/dom_distiller_js' \
+ 'third_party/fips181' \
+ 'third_party/flot' \
+ 'third_party/google_input_tools' \
+ 'third_party/google_input_tools/third_party/closure_library' \
+ 'third_party/google_input_tools/third_party/closure_library/third_party/closure' \
+ 'third_party/hunspell' \
+ 'third_party/iccjpeg' \
+ 'third_party/jstemplate' \
+ 'third_party/khronos' \
+ 'third_party/leveldatabase' \
+ 'third_party/libXNVCtrl' \
+ 'third_party/libaddressinput' \
+ 'third_party/libjingle' \
+ 'third_party/libphonenumber' \
+ 'third_party/libsecret' \
+ 'third_party/libsrtp' \
+ 'third_party/libudev' \
+ 'third_party/libusb' \
+ 'third_party/libvpx_new' \
+ 'third_party/libvpx_new/source/libvpx/third_party/x86inc' \
+ 'third_party/libxml/chromium' \
+ 'third_party/libwebm' \
+ 'third_party/libyuv' \
+ 'third_party/lss' \
+ 'third_party/lzma_sdk' \
+ 'third_party/mesa' \
+ 'third_party/modp_b64' \
+ 'third_party/mojo' \
+ 'third_party/mt19937ar' \
+ 'third_party/npapi' \
+ 'third_party/openmax_dl' \
+ 'third_party/opus' \
+ 'third_party/ots' \
+ 'third_party/pdfium' \
+ 'third_party/pdfium/third_party/agg23' \
+ 'third_party/pdfium/third_party/base' \
+ 'third_party/pdfium/third_party/bigint' \
+ 'third_party/pdfium/third_party/freetype' \
+ 'third_party/pdfium/third_party/lcms2-2.6' \
+ 'third_party/pdfium/third_party/libjpeg' \
+ 'third_party/pdfium/third_party/libopenjpeg20' \
+ 'third_party/pdfium/third_party/zlib_v128' \
+ 'third_party/polymer' \
+ 'third_party/protobuf' \
+ 'third_party/qcms' \
+ 'third_party/re2' \
+ 'third_party/sfntly' \
+ 'third_party/skia' \
+ 'third_party/smhasher' \
+ 'third_party/sqlite' \
+ 'third_party/tcmalloc' \
+ 'third_party/usrsctp' \
+ 'third_party/web-animations-js' \
+ 'third_party/webdriver' \
+ 'third_party/webrtc' \
+ 'third_party/widevine' \
+ 'third_party/woff2' \
+ 'third_party/x86inc' \
+ 'third_party/zlib/google' \
+ 'url/third_party/mozilla' \
+ 'v8/src/third_party/fdlibm' \
+ 'v8/src/third_party/valgrind' \
+ --do-remove || die
+
+ epatch_user
+}
+
+src_configure() {
+ local myconf=""
+
+ # Never tell the build system to "enable" SSE2, it has a few unexpected
+ # additions, bug #336871.
+ myconf+=" -Ddisable_sse2=1"
+
+ # Disable nacl, we can't build without pnacl (http://crbug.com/269560).
+ myconf+=" -Ddisable_nacl=1"
+
+ # Disable glibc Native Client toolchain, we don't need it (bug #417019).
+ # myconf+=" -Ddisable_glibc=1"
+
+ # TODO: also build with pnacl
+ # myconf+=" -Ddisable_pnacl=1"
+
+ # It would be awkward for us to tar the toolchain and get it untarred again
+ # during the build.
+ # myconf+=" -Ddisable_newlib_untar=1"
+
+ # Make it possible to remove third_party/adobe.
+ echo > "${T}/flapper_version.h" || die
+ myconf+=" -Dflapper_version_h_file=${T}/flapper_version.h"
+
+ # Use system-provided libraries.
+ # TODO: use_system_hunspell (upstream changes needed).
+ # TODO: use_system_libsrtp (bug #459932).
+ # TODO: use_system_libusb (http://crbug.com/266149).
+ # TODO: use_system_libvpx (http://crbug.com/494939).
+ # TODO: use_system_opus (https://code.google.com/p/webrtc/issues/detail?id=3077).
+ # TODO: use_system_protobuf (bug #525560).
+ # TODO: use_system_ssl (http://crbug.com/58087).
+ # TODO: use_system_sqlite (http://crbug.com/22208).
+ myconf+="
+ -Duse_system_bzip2=1
+ -Duse_system_ffmpeg=$(usex system-ffmpeg 1 0)
+ -Duse_system_flac=1
+ -Duse_system_harfbuzz=1
+ -Duse_system_icu=1
+ -Duse_system_jsoncpp=1
+ -Duse_system_libevent=1
+ -Duse_system_libjpeg=1
+ -Duse_system_libpng=1
+ -Duse_system_libwebp=1
+ -Duse_system_libxml=1
+ -Duse_system_libxslt=1
+ -Duse_system_minizip=1
+ -Duse_system_nspr=1
+ -Duse_system_snappy=1
+ -Duse_system_speex=1
+ -Duse_system_xdg_utils=1
+ -Duse_system_zlib=1"
+
+ # Needed for system icu - we don't need additional data files.
+ myconf+=" -Dicu_use_data_file_flag=0"
+
+ # TODO: patch gyp so that this arm conditional is not needed.
+ if ! use arm; then
+ myconf+="
+ -Duse_system_yasm=1"
+ fi
+
+ # Optional dependencies.
+ # TODO: linux_link_kerberos, bug #381289.
+ myconf+="
+ $(gyp_use cups)
+ $(gyp_use gnome use_gconf)
+ $(gyp_use gnome-keyring use_gnome_keyring)
+ $(gyp_use gnome-keyring linux_link_gnome_keyring)
+ $(gyp_use hidpi enable_hidpi)
+ $(gyp_use kerberos)
+ $(gyp_use lto)
+ $(gyp_use pulseaudio)
+ $(gyp_use tcmalloc use_allocator tcmalloc none)"
+
+ # Use explicit library dependencies instead of dlopen.
+ # This makes breakages easier to detect by revdep-rebuild.
+ myconf+="
+ -Dlinux_link_gsettings=1
+ -Dlinux_link_libpci=1
+ -Dlinux_link_libspeechd=1
+ -Dlibspeechd_h_prefix=speech-dispatcher/"
+
+ # TODO: use the file at run time instead of effectively compiling it in.
+ myconf+="
+ -Dusb_ids_path=/usr/share/misc/usb.ids"
+
+ # Save space by removing DLOG and DCHECK messages (about 6% reduction).
+ myconf+="
+ -Dlogging_like_official_build=1"
+
+ if [[ $(tc-getCC) == *clang* ]]; then
+ myconf+=" -Dclang=1"
+ else
+ myconf+=" -Dclang=0"
+ fi
+
+ # Never use bundled gold binary. Disable gold linker flags for now.
+ # Do not use bundled clang.
+ myconf+="
+ -Dclang_use_chrome_plugins=0
+ -Dhost_clang=0
+ -Dlinux_use_bundled_binutils=0
+ -Dlinux_use_bundled_gold=0
+ -Dlinux_use_gold_flags=0
+ -Dsysroot="
+
+ ffmpeg_branding="$(usex proprietary-codecs Chrome Chromium)"
+ myconf+=" -Dproprietary_codecs=1 -Dffmpeg_branding=${ffmpeg_branding}"
+
+ # Set up Google API keys, see http://www.chromium.org/developers/how-tos/api-keys .
+ # Note: these are for Gentoo use ONLY. For your own distribution,
+ # please get your own set of keys. Feel free to contact chromium@gentoo.org
+ # for more info.
+ myconf+=" -Dgoogle_api_key=AIzaSyDEAOvatFo0eTgsV_ZlEzx0ObmepsMzfAc
+ -Dgoogle_default_client_id=329227923882.apps.googleusercontent.com
+ -Dgoogle_default_client_secret=vgKG0NNv7GoDpbtoFNLxCUXu"
+
+ local myarch="$(tc-arch)"
+ if [[ $myarch = amd64 ]] ; then
+ target_arch=x64
+ ffmpeg_target_arch=x64
+ elif [[ $myarch = x86 ]] ; then
+ target_arch=ia32
+ ffmpeg_target_arch=ia32
+ elif [[ $myarch = arm ]] ; then
+ target_arch=arm
+ ffmpeg_target_arch=$(usex neon arm-neon arm)
+ # TODO: re-enable NaCl (NativeClient).
+ local CTARGET=${CTARGET:-${CHOST}}
+ if [[ $(tc-is-softfloat) == "no" ]]; then
+
+ myconf+=" -Darm_float_abi=hard"
+ fi
+ filter-flags "-mfpu=*"
+ use neon || myconf+=" -Darm_fpu=${ARM_FPU:-vfpv3-d16}"
+
+ if [[ ${CTARGET} == armv[78]* ]]; then
+ myconf+=" -Darmv7=1"
+ else
+ myconf+=" -Darmv7=0"
+ fi
+ myconf+=" -Dsysroot=
+ $(gyp_use neon arm_neon)
+ -Ddisable_nacl=1"
+ else
+ die "Failed to determine target arch, got '$myarch'."
+ fi
+
+ myconf+=" -Dtarget_arch=${target_arch}"
+
+ # Make sure that -Werror doesn't get added to CFLAGS by the build system.
+ # Depending on GCC version the warnings are different and we don't want
+ # the build to fail because of that.
+ myconf+=" -Dwerror="
+
+ # Disable fatal linker warnings, bug 506268.
+ myconf+=" -Ddisable_fatal_linker_warnings=1"
+
+ # Avoid CFLAGS problems, bug #352457, bug #390147.
+ if ! use custom-cflags; then
+ replace-flags "-Os" "-O2"
+ strip-flags
+
+ # Prevent linker from running out of address space, bug #471810 .
+ if use x86; then
+ filter-flags "-g*"
+ fi
+
+ # Prevent libvpx build failures. Bug 530248, 544702, 546984.
+ if [[ ${myarch} == amd64 || ${myarch} == x86 ]]; then
+ filter-flags -mno-mmx -mno-sse2 -mno-ssse3 -mno-sse4.1 -mno-avx -mno-avx2
+ fi
+ fi
+
+ # Make sure the build system will use the right tools, bug #340795.
+ tc-export AR CC CXX NM
+
+ # Tools for building programs to be executed on the build system, bug #410883.
+ if tc-is-cross-compiler; then
+ export AR_host=$(tc-getBUILD_AR)
+ export CC_host=$(tc-getBUILD_CC)
+ export CXX_host=$(tc-getBUILD_CXX)
+ export NM_host=$(tc-getBUILD_NM)
+ fi
+
+ # Bug 491582.
+ export TMPDIR="${WORKDIR}/temp"
+ mkdir -p -m 755 "${TMPDIR}" || die
+
+ if ! use system-ffmpeg; then
+ local build_ffmpeg_args=""
+ if use pic && [[ "${ffmpeg_target_arch}" == "ia32" ]]; then
+ build_ffmpeg_args+=" --disable-asm"
+ fi
+
+ # Re-configure bundled ffmpeg. See bug #491378 for example reasons.
+ einfo "Configuring bundled ffmpeg..."
+ pushd third_party/ffmpeg > /dev/null || die
+ chromium/scripts/build_ffmpeg.py linux ${ffmpeg_target_arch} \
+ --branding ${ffmpeg_branding} -- ${build_ffmpeg_args} || die
+ chromium/scripts/copy_config.sh || die
+ chromium/scripts/generate_gyp.py || die
+ popd > /dev/null || die
+ fi
+
+ third_party/libaddressinput/chromium/tools/update-strings.py || die
+
+ touch chrome/test/data/webui/i18n_process_css_test.html || die
+
+ einfo "Configuring bundled nodejs..."
+ pushd vendor/node > /dev/null || die
+ # Make sure gyp_node does not run
+ echo '#!/usr/bin/env python' > tools/gyp_node.py || die
+ # --shared-libuv cannot be used as electron's node fork
+ # patches uv_loop structure.
+ ./configure --shared-openssl --shared-http-parser \
+ --shared-zlib --without-npm --with-intl=system-icu \
+ --without-dtrace --dest-cpu=${target_arch} \
+ --prefix="" || die
+ popd > /dev/null || die
+
+ # libchromiumcontent configuration
+ myconf+=" -Dcomponent=static_library"
+ myconf+=" -Dmac_mas_build=0"
+ myconf+=' -Dicu_small="false"'
+ myconf+=" -Dlibchromiumcontent_component=0"
+ myconf+=" -Dlibrary=static_library"
+ myconf+=" -Dmas_build=0"
+
+ einfo "Configuring electron..."
+ build/linux/unbundle/replace_gyp_files.py ${myconf} || die
+
+ myconf+=" -Ivendor/node/config.gypi
+ -Icommon.gypi
+ electron.gyp"
+
+ egyp_chromium ${myconf} || die
+}
+
+eninja() {
+ if [[ -z ${NINJAOPTS+set} ]]; then
+ local jobs=$(makeopts_jobs)
+ local loadavg=$(makeopts_loadavg)
+
+ if [[ ${MAKEOPTS} == *-j* && ${jobs} != 999 ]]; then
+ NINJAOPTS+=" -j ${jobs}"
+ fi
+ if [[ ${MAKEOPTS} == *-l* && ${loadavg} != 999 ]]; then
+ NINJAOPTS+=" -l ${loadavg}"
+ fi
+ fi
+ set -- ninja -v ${NINJAOPTS} "$@"
+ echo "$@"
+ "$@"
+}
+
+src_compile() {
+ local ninja_targets="electron" compile_target="out/R"
+
+ eninja -C ${compile_target} mksnapshot || die
+ pax-mark -m ${compile_target}/mksnapshot
+
+ eninja -C ${compile_target} nodebin || die
+ pax-mark -m ${compile_target}/nodebin
+
+ # Even though ninja autodetects number of CPUs, we respect
+ # user's options, for debugging with -j 1 or any other reason.
+ eninja -C ${compile_target} ${ninja_targets} || die
+}
+
+src_install() {
+ local install_dir="$(_get_install_dir)"
+ local install_suffix="$(_get_install_suffix)"
+ local LIBDIR="${ED}/usr/$(get_libdir)"
+
+ pushd out/R/locales > /dev/null || die
+ chromium_remove_language_paks
+ popd > /dev/null || die
+
+ # Install Electron
+ insinto "${install_dir}"
+ exeinto "${install_dir}"
+ newexe out/R/nodebin node
+ doexe out/R/electron
+ doins out/R/libv8.so
+ doins out/R/libnode.so
+ fperms +x "${install_dir}/libv8.so" "${install_dir}/libnode.so"
+ doins out/R/content_shell.pak
+ doins out/R/natives_blob.bin
+ doins out/R/snapshot_blob.bin
+ rm -r out/R/resources/inspector || die
+ doins -r out/R/resources
+ doins -r out/R/locales
+ dosym "${install_dir}/electron" "/usr/bin/electron${install_suffix}"
+
+ pax-mark -rm "${ED}/${install_dir}/electron"
+
+ # Install Node headers
+ HEADERS_ONLY=1 \
+ "${S}/vendor/node/tools/install.py" install "${ED}" "/usr" || die
+ # set up a symlink structure that npm expects..
+ dodir /usr/include/node/deps/{v8,uv}
+ dosym . /usr/include/node/src
+ for var in deps/{uv,v8}/include; do
+ dosym ../.. /usr/include/node/${var}
+ done
+
+ dodir "/usr/include/electron${install_suffix}"
+ mv "${ED}/usr/include/node" \
+ "${ED}/usr/include/electron${install_suffix}/node" || die
+}
+
+pkg_postinst() {
+ eselect electron update
+}
+
+pkg_prerm() {
+ eselect electron update
+}
diff --git a/dev-util/electron/electron-1.3.13-r1.ebuild b/dev-util/electron/electron-1.3.13-r1.ebuild
new file mode 100644
index 000000000000..c00fd0f61608
--- /dev/null
+++ b/dev-util/electron/electron-1.3.13-r1.ebuild
@@ -0,0 +1,763 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+PYTHON_COMPAT=( python2_7 )
+
+CHROMIUM_LANGS="am ar bg bn ca cs da de el en-GB es es-419 et fa fi fil fr gu he
+ hi hr hu id it ja kn ko lt lv ml mr ms nb nl pl pt-BR pt-PT ro ru sk sl sr
+ sv sw ta te th tr uk vi zh-CN zh-TW"
+
+inherit check-reqs chromium-2 eutils gnome2-utils flag-o-matic multilib \
+ multiprocessing pax-utils portability python-any-r1 readme.gentoo-r1 \
+ toolchain-funcs versionator virtualx xdg-utils
+
+# Keep this in sync with vendor/brightray/vendor/libchromiumcontent/VERSION
+CHROMIUM_VERSION="52.0.2743.82"
+# Keep this in sync with vendor/brightray
+BRIGHTRAY_COMMIT="ee26c5218eeec199c54c92a7517a72d2dbd0adbf"
+# Keep this in sync with vendor/node
+NODE_COMMIT="c47e9bf9011de682d07c82f7f610a467f30cca60"
+# Keep this in sync with vendor/native_mate
+NATIVE_MATE_COMMIT="b5e5de626c6a57e44c7e6448d8bbaaac475d493c"
+# Keep this in sync with vendor/brightray/vendor/libchromiumcontent
+LIBCHROMIUMCONTENT_COMMIT="27add4cfef98f21d5910539bebb47ae175f024c2"
+# Keep this in sync with package.json#devDependencies
+ASAR_VERSION="0.12.1"
+
+CHROMIUM_P="chromium-${CHROMIUM_VERSION}"
+BRIGHTRAY_P="brightray-${BRIGHTRAY_COMMIT}"
+NODE_P="node-${NODE_COMMIT}"
+NATIVE_MATE_P="native-mate-${NATIVE_MATE_COMMIT}"
+LIBCHROMIUMCONTENT_P="libchromiumcontent-${LIBCHROMIUMCONTENT_COMMIT}"
+ASAR_P="asar-${ASAR_VERSION}"
+
+DESCRIPTION="Cross platform application development framework based on web technologies"
+HOMEPAGE="https://electron.atom.io/"
+SRC_URI="
+ https://commondatastorage.googleapis.com/chromium-browser-official/${CHROMIUM_P}.tar.xz
+ https://github.com/electron/electron/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ https://github.com/electron/brightray/archive/${BRIGHTRAY_COMMIT}.tar.gz -> ${BRIGHTRAY_P}.tar.gz
+ https://github.com/electron/node/archive/${NODE_COMMIT}.tar.gz -> electron-${NODE_P}.tar.gz
+ https://github.com/zcbenz/native-mate/archive/${NATIVE_MATE_COMMIT}.tar.gz -> ${NATIVE_MATE_P}.tar.gz
+ https://github.com/electron/libchromiumcontent/archive/${LIBCHROMIUMCONTENT_COMMIT}.tar.gz -> ${LIBCHROMIUMCONTENT_P}.tar.gz
+ https://github.com/elprans/asar/releases/download/v${ASAR_VERSION}-gentoo/asar-build.tar.gz -> ${ASAR_P}.tar.gz
+"
+
+S="${WORKDIR}/${CHROMIUM_P}"
+ELECTRON_S="${WORKDIR}/${P}"
+NODE_S="${S}/vendor/node"
+BRIGHTRAY_S="${S}/vendor/brightray"
+NATIVE_MATE_S="${S}/vendor/native_mate"
+LIBCC_S="${BRIGHTRAY_S}/vendor/libchromiumcontent"
+
+LICENSE="BSD"
+SLOT="$(get_version_component_range 1-2)"
+KEYWORDS="~amd64"
+IUSE="custom-cflags cups gnome gnome-keyring hidpi kerberos lto neon pic +proprietary-codecs pulseaudio selinux +system-ffmpeg +tcmalloc"
+RESTRICT="!system-ffmpeg? ( proprietary-codecs? ( bindist ) )"
+
+# Native Client binaries are compiled with different set of flags, bug #452066.
+QA_FLAGS_IGNORED=".*\.nexe"
+
+# Native Client binaries may be stripped by the build system, which uses the
+# right tools for it, bug #469144 .
+QA_PRESTRIPPED=".*\.nexe"
+
+RDEPEND="!<dev-util/electron-0.36.12-r4
+ >=app-accessibility/speech-dispatcher-0.8:=
+ app-arch/bzip2:=
+ app-arch/snappy:=
+ >=app-eselect/eselect-electron-1.0.0
+ cups? ( >=net-print/cups-1.3.11:= )
+ >=dev-libs/elfutils-0.149
+ dev-libs/expat:=
+ dev-libs/glib:=
+ >=dev-libs/icu-55.1:=
+ >=dev-libs/jsoncpp-0.5.0-r1:=
+ >=dev-libs/libevent-1.4.13:=
+ dev-libs/libxml2:=[icu]
+ dev-libs/libxslt:=
+ dev-libs/nspr:=
+ >=dev-libs/nss-3.14.3:=
+ dev-libs/re2:=
+ gnome? ( >=gnome-base/gconf-2.24.0:= )
+ gnome-keyring? ( >=gnome-base/libgnome-keyring-3.12:= )
+ >=media-libs/alsa-lib-1.0.19:=
+ media-libs/flac:=
+ media-libs/fontconfig:=
+ media-libs/freetype:=
+ >=media-libs/harfbuzz-0.9.41:=[icu(+)]
+ media-libs/libexif:=
+ >=media-libs/libjpeg-turbo-1.2.0-r1:=
+ media-libs/libpng:0=
+ >=media-libs/libwebp-0.4.0:=
+ media-libs/speex:=
+ pulseaudio? ( media-sound/pulseaudio:= )
+ system-ffmpeg? ( >=media-video/ffmpeg-2.7.2:=[opus,vorbis,vpx] )
+ sys-apps/dbus:=
+ sys-apps/pciutils:=
+ >=sys-libs/libcap-2.22:=
+ sys-libs/zlib:=[minizip]
+ virtual/udev
+ x11-libs/cairo:=
+ x11-libs/gdk-pixbuf:=
+ x11-libs/gtk+:2=
+ x11-libs/libdrm
+ x11-libs/libnotify:=
+ x11-libs/libX11:=
+ x11-libs/libXcomposite:=
+ x11-libs/libXcursor:=
+ x11-libs/libXdamage:=
+ x11-libs/libXext:=
+ x11-libs/libXfixes:=
+ >=x11-libs/libXi-1.6.0:=
+ x11-libs/libXinerama:=
+ x11-libs/libXrandr:=
+ x11-libs/libXrender:=
+ x11-libs/libXScrnSaver:=
+ x11-libs/libXtst:=
+ x11-libs/pango:=
+ kerberos? ( virtual/krb5 )
+ >=net-libs/http-parser-2.6.2:=
+ >=dev-libs/libuv-1.8.0:=
+ >=dev-libs/openssl-1.0.2g:0=[-bindist]"
+DEPEND="${RDEPEND}
+ !arm? (
+ dev-lang/yasm
+ )
+ dev-lang/perl
+ dev-perl/JSON
+ >=dev-util/gperf-3.0.3
+ dev-util/ninja
+ sys-apps/hwids[usb(+)]
+ >=sys-devel/bison-2.4.3
+ sys-devel/flex
+ virtual/pkgconfig"
+
+# For nvidia-drivers blocker, see bug #413637 .
+RDEPEND+="
+ x11-misc/xdg-utils
+ virtual/opengl
+ virtual/ttf-fonts
+ selinux? ( sec-policy/selinux-chromium )
+ tcmalloc? ( !<x11-drivers/nvidia-drivers-331.20 )"
+
+# Python dependencies. The DEPEND part needs to be kept in sync
+# with python_check_deps.
+DEPEND+=" $(python_gen_any_dep '
+ dev-python/beautifulsoup:python-2[${PYTHON_USEDEP}]
+ dev-python/beautifulsoup:4[${PYTHON_USEDEP}]
+ dev-python/html5lib[${PYTHON_USEDEP}]
+ dev-python/jsmin[${PYTHON_USEDEP}]
+ dev-python/simplejson[${PYTHON_USEDEP}]
+')"
+python_check_deps() {
+ has_version --host-root "dev-python/beautifulsoup:python-2[${PYTHON_USEDEP}]" &&
+ has_version --host-root ">=dev-python/beautifulsoup-4.3.2:4[${PYTHON_USEDEP}]" &&
+ has_version --host-root "dev-python/html5lib[${PYTHON_USEDEP}]" &&
+ has_version --host-root "dev-python/jsmin[${PYTHON_USEDEP}]" &&
+ has_version --host-root "dev-python/simplejson[${PYTHON_USEDEP}]"
+}
+
+if ! has chromium_pkg_die ${EBUILD_DEATH_HOOKS}; then
+ EBUILD_DEATH_HOOKS+=" chromium_pkg_die";
+fi
+
+pkg_pretend() {
+ if [[ $(tc-getCC)$ == *gcc* ]] && \
+ [[ $(gcc-major-version)$(gcc-minor-version) -lt 48 ]]; then
+ die 'At least gcc 4.8 is required, see bugs: #535730, #525374, #518668.'
+ fi
+
+ # LTO pass requires more file descriptors
+ if use lto; then
+ local lto_n_rlimit_min="16384"
+ local maxfiles=$(ulimit -n -H)
+ if [ "${maxfiles}" -lt "${lto_n_rlimit_min}" ]; then
+ eerror ""
+ eerror "Building with USE=\"lto\" requires file descriptor" \
+ "limit to be no less than ${lto_n_rlimit_min}."
+ eerror "The current limit for portage is ${maxfiles}."
+ eerror "Please add the following to /etc/security/limits.conf:"
+ eerror ""
+ eerror " root hard nofile ${lto_n_rlimit_min}"
+ eerror " root soft nofile ${lto_n_rlimit_min}"
+ eerror ""
+ die
+ fi
+ fi
+
+ # Check build requirements, bug #541816 and bug #471810 .
+ CHECKREQS_MEMORY="3G"
+ use lto && CHECKREQS_MEMORY="5G"
+ CHECKREQS_DISK_BUILD="10G"
+ eshopts_push -s extglob
+ if is-flagq '-g?(gdb)?([1-9])'; then
+ CHECKREQS_DISK_BUILD="25G"
+ fi
+ eshopts_pop
+ check-reqs_pkg_pretend
+}
+
+pkg_setup() {
+ # Make sure the build system will use the right python, bug #344367.
+ python-any-r1_pkg_setup
+
+ chromium_suid_sandbox_check_kernel_config
+}
+
+_unnest_patches() {
+ local _s="${1%/}/" relpath out
+
+ for f in $(find "${_s}" -mindepth 2 -name *.patch -printf \"%P\"\\n); do
+ relpath="$(dirname ${f})"
+ out="${_s}/${relpath////_}_$(basename ${f})"
+ sed -r -e "s|^([-+]{3}) (.*)$|\1 ${relpath}/\2 ${f}|g" > "${out}"
+ done
+}
+
+_get_install_suffix() {
+ local c=(${SLOT//\// })
+ local slot=${c[0]}
+ local suffix
+
+ if [[ "${slot}" == "0" ]]; then
+ suffix=""
+ else
+ suffix="-${slot}"
+ fi
+
+ echo -n "${suffix}"
+}
+
+_get_install_dir() {
+ echo -n "/usr/$(get_libdir)/electron$(_get_install_suffix)"
+}
+
+src_prepare() {
+ # Merge Electron code and its submodules into the Chromium source tree
+ # so that everything can be configured and built in a single pass.
+ #
+ rsync -a --ignore-existing "${ELECTRON_S}/" "${S}/" || die
+ rm -r "${NODE_S}" &&
+ mv "${WORKDIR}/${NODE_P}" "${NODE_S}" || die
+ rm -r "${BRIGHTRAY_S}" &&
+ mv "${WORKDIR}/${BRIGHTRAY_P}" "${BRIGHTRAY_S}" || die
+ rm -r "${NATIVE_MATE_S}" &&
+ mv "${WORKDIR}/${NATIVE_MATE_P}" "${NATIVE_MATE_S}" || die
+ rm -r "${LIBCC_S}" &&
+ mv "${WORKDIR}/${LIBCHROMIUMCONTENT_P}" "${LIBCC_S}" || die
+ rm -r "${S}/vendor/breakpad" &&
+ ln -s "../breakpad" "${S}/vendor/breakpad" || die
+ ln -s "${WORKDIR}/${ASAR_P}/node_modules" "${S}/node_modules" || die
+
+ # electron patches
+ epatch "${FILESDIR}/${PN}-1.3.6.patch"
+
+ # node patches
+ cd "${NODE_S}" || die
+ epatch "${FILESDIR}/${P}-vendor-node.patch"
+ epatch "${FILESDIR}/electron-vendor-node-external-snapshots-r0.patch"
+ # make sure node uses the correct version of v8
+ rm -r deps/v8 || die
+ ln -s ../../../v8 deps/ || die
+
+ # make sure we use python2.* while using gyp
+ sed -i -e "s/python/${EPYTHON}/" deps/npm/node_modules/node-gyp/gyp/gyp || die
+ sed -i -e "s/|| 'python'/|| '${EPYTHON}'/" deps/npm/node_modules/node-gyp/lib/configure.js || die
+
+ # less verbose install output (stating the same as portage, basically)
+ sed -i -e "/print/d" tools/install.py || die
+
+ # proper libdir, hat tip @ryanpcmcquen https://github.com/iojs/io.js/issues/504
+ local LIBDIR=$(get_libdir)
+ sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die
+ sed -i -e "s/'lib'/'${LIBDIR}'/" lib/module.js || die
+ sed -i -e "s|\"lib\"|\"${LIBDIR}\"|" deps/npm/lib/npm.js || die
+
+ # brightray patches
+ cd "${BRIGHTRAY_S}" || die
+ epatch "${FILESDIR}/${PN}-1.3.6-vendor-brightray.patch"
+
+ # libcc patches
+ cd "${LIBCC_S}" || die
+ epatch "${FILESDIR}/${PN}-1.3.6-vendor-libchromiumcontent.patch"
+
+ # chromium patches
+ cd "${S}" || die
+ epatch "${FILESDIR}/chromium-system-ffmpeg-r2.patch"
+ epatch "${FILESDIR}/chromium-disable-widevine.patch"
+ epatch "${FILESDIR}/chromium-last-commit-position-r0.patch"
+ epatch "${FILESDIR}/chromium-snapshot-toolchain-r1.patch"
+ epatch "${FILESDIR}/chromium-remove-gardiner-mod-font.patch"
+ epatch "${FILESDIR}/chromium-pdfium-r0.patch"
+ epatch "${FILESDIR}/chromium-system-zlib-r0.patch"
+ epatch "${FILESDIR}/chromium-linker-warnings-r0.patch"
+ epatch "${FILESDIR}/chromium-ffmpeg-license-r0.patch"
+ epatch "${FILESDIR}/chromium-shared-v8-r1.patch"
+ epatch "${FILESDIR}/chromium-lto-fixes-r1.patch"
+ epatch "${FILESDIR}/chromium-icu-58-r1.patch"
+ epatch "${FILESDIR}/chromium-cups-fix.patch"
+ # libcc chromium patches
+ _unnest_patches "${LIBCC_S}/patches"
+
+ EPATCH_SOURCE="${LIBCC_S}/patches" \
+ EPATCH_SUFFIX="patch" \
+ EPATCH_FORCE="yes" \
+ EPATCH_EXCLUDE="third_party_icu*" \
+ EPATCH_MULTI_MSG="Applying libchromiumcontent patches..." \
+ epatch
+
+ # build scripts
+ mkdir -p "${S}/chromiumcontent" || die
+ cp -a "${LIBCC_S}/chromiumcontent" "${S}/" || die
+ cp -a "${LIBCC_S}/tools/linux/" "${S}/tools/" || die
+
+ local conditional_bundled_libraries=""
+ if ! use system-ffmpeg; then
+ conditional_bundled_libraries+=" third_party/ffmpeg"
+ fi
+
+ # Remove most bundled libraries. Some are still needed.
+ build/linux/unbundle/remove_bundled_libraries.py \
+ ${conditional_bundled_libraries} \
+ 'base/third_party/dmg_fp' \
+ 'base/third_party/dynamic_annotations' \
+ 'base/third_party/icu' \
+ 'base/third_party/nspr' \
+ 'base/third_party/superfasthash' \
+ 'base/third_party/symbolize' \
+ 'base/third_party/valgrind' \
+ 'base/third_party/xdg_mime' \
+ 'base/third_party/xdg_user_dirs' \
+ 'breakpad/src/third_party/curl' \
+ 'breakpad/src/third_party/musl' \
+ 'chrome/third_party/mozilla_security_manager' \
+ 'courgette/third_party' \
+ 'net/third_party/mozilla_security_manager' \
+ 'net/third_party/nss' \
+ 'third_party/WebKit' \
+ 'third_party/analytics' \
+ 'third_party/angle' \
+ 'third_party/angle/src/third_party/compiler' \
+ 'third_party/angle/src/third_party/libXNVCtrl' \
+ 'third_party/angle/src/third_party/murmurhash' \
+ 'third_party/angle/src/third_party/trace_event' \
+ 'third_party/boringssl' \
+ 'third_party/brotli' \
+ 'third_party/cacheinvalidation' \
+ 'third_party/catapult' \
+ 'third_party/catapult/third_party/py_vulcanize' \
+ 'third_party/catapult/third_party/py_vulcanize/third_party/rcssmin' \
+ 'third_party/catapult/third_party/py_vulcanize/third_party/rjsmin' \
+ 'third_party/catapult/tracing/third_party/components/polymer' \
+ 'third_party/catapult/tracing/third_party/d3' \
+ 'third_party/catapult/tracing/third_party/gl-matrix' \
+ 'third_party/catapult/tracing/third_party/jszip' \
+ 'third_party/cld_2' \
+ 'third_party/cros_system_api' \
+ 'third_party/cython/python_flags.py' \
+ 'third_party/devscripts' \
+ 'third_party/dom_distiller_js' \
+ 'third_party/dom_distiller_js/dist/proto_gen/third_party/dom_distiller_js' \
+ 'third_party/fips181' \
+ 'third_party/flot' \
+ 'third_party/google_input_tools' \
+ 'third_party/google_input_tools/third_party/closure_library' \
+ 'third_party/google_input_tools/third_party/closure_library/third_party/closure' \
+ 'third_party/hunspell' \
+ 'third_party/iccjpeg' \
+ 'third_party/jinja2' \
+ 'third_party/jstemplate' \
+ 'third_party/khronos' \
+ 'third_party/leveldatabase' \
+ 'third_party/libXNVCtrl' \
+ 'third_party/libaddressinput' \
+ 'third_party/libjingle' \
+ 'third_party/libjpeg_turbo' \
+ 'third_party/libphonenumber' \
+ 'third_party/libpng' \
+ 'third_party/libsecret' \
+ 'third_party/libsrtp' \
+ 'third_party/libudev' \
+ 'third_party/libusb' \
+ 'third_party/libvpx' \
+ 'third_party/libvpx/source/libvpx/third_party/x86inc' \
+ 'third_party/libwebm' \
+ 'third_party/libxml/chromium' \
+ 'third_party/libyuv' \
+ 'third_party/lss' \
+ 'third_party/lzma_sdk' \
+ 'third_party/markupsafe' \
+ 'third_party/mesa' \
+ 'third_party/modp_b64' \
+ 'third_party/mt19937ar' \
+ 'third_party/openh264' \
+ 'third_party/openmax_dl' \
+ 'third_party/opus' \
+ 'third_party/ots' \
+ 'third_party/pdfium' \
+ 'third_party/pdfium/third_party/agg23' \
+ 'third_party/pdfium/third_party/base' \
+ 'third_party/pdfium/third_party/bigint' \
+ 'third_party/pdfium/third_party/freetype' \
+ 'third_party/pdfium/third_party/lcms2-2.6' \
+ 'third_party/pdfium/third_party/libjpeg' \
+ 'third_party/pdfium/third_party/libopenjpeg20' \
+ 'third_party/pdfium/third_party/libpng16' \
+ 'third_party/pdfium/third_party/libtiff' \
+ 'third_party/pdfium/third_party/zlib_v128' \
+ 'third_party/ply' \
+ 'third_party/polymer' \
+ 'third_party/protobuf' \
+ 'third_party/protobuf/third_party/six' \
+ 'third_party/qcms' \
+ 'third_party/re2' \
+ 'third_party/sfntly' \
+ 'third_party/skia' \
+ 'third_party/smhasher' \
+ 'third_party/sqlite' \
+ 'third_party/tcmalloc' \
+ 'third_party/usrsctp' \
+ 'third_party/web-animations-js' \
+ 'third_party/webdriver' \
+ 'third_party/webrtc' \
+ 'third_party/widevine' \
+ 'third_party/woff2' \
+ 'third_party/x86inc' \
+ 'third_party/zlib/google' \
+ 'url/third_party/mozilla' \
+ 'v8/src/third_party/fdlibm' \
+ 'v8/src/third_party/valgrind' \
+ --do-remove || die
+
+ epatch_user
+}
+
+src_configure() {
+ local myconf=""
+
+ # Never tell the build system to "enable" SSE2, it has a few unexpected
+ # additions, bug #336871.
+ myconf+=" -Ddisable_sse2=1"
+
+ # Disable nacl, we can't build without pnacl (http://crbug.com/269560).
+ myconf+=" -Ddisable_nacl=1"
+
+ # Disable glibc Native Client toolchain, we don't need it (bug #417019).
+ # myconf+=" -Ddisable_glibc=1"
+
+ # TODO: also build with pnacl
+ # myconf+=" -Ddisable_pnacl=1"
+
+ # It would be awkward for us to tar the toolchain and get it untarred again
+ # during the build.
+ # myconf+=" -Ddisable_newlib_untar=1"
+
+ # Make it possible to remove third_party/adobe.
+ echo > "${T}/flapper_version.h" || die
+ myconf+=" -Dflapper_version_h_file=${T}/flapper_version.h"
+
+ # Use system-provided libraries.
+ # TODO: use_system_hunspell (upstream changes needed).
+ # TODO: use_system_libsrtp (bug #459932).
+ # TODO: use_system_libusb (http://crbug.com/266149).
+ # TODO: use_system_libvpx (http://crbug.com/494939).
+ # TODO: use_system_opus (https://code.google.com/p/webrtc/issues/detail?id=3077).
+ # TODO: use_system_protobuf (bug #525560).
+ # TODO: use_system_ssl (http://crbug.com/58087).
+ # TODO: use_system_sqlite (http://crbug.com/22208).
+ myconf+="
+ -Duse_system_bzip2=1
+ -Duse_system_ffmpeg=$(usex system-ffmpeg 1 0)
+ -Duse_system_flac=1
+ -Duse_system_harfbuzz=1
+ -Duse_system_icu=1
+ -Duse_system_jsoncpp=1
+ -Duse_system_libevent=1
+ -Duse_system_libwebp=1
+ -Duse_system_libxml=1
+ -Duse_system_libxslt=1
+ -Duse_system_minizip=1
+ -Duse_system_nspr=1
+ -Duse_system_snappy=1
+ -Duse_system_speex=1
+ -Duse_system_xdg_utils=1
+ -Duse_system_zlib=1"
+
+ # Needed for system icu - we don't need additional data files.
+ myconf+=" -Dicu_use_data_file_flag=0"
+ myconf+=" -Dgenerate_character_data=0"
+
+ # TODO: patch gyp so that this arm conditional is not needed.
+ if ! use arm; then
+ myconf+="
+ -Duse_system_yasm=1"
+ fi
+
+ # Optional dependencies.
+ # TODO: linux_link_kerberos, bug #381289.
+ myconf+="
+ $(gyp_use cups)
+ $(gyp_use gnome use_gconf)
+ $(gyp_use gnome-keyring use_gnome_keyring)
+ $(gyp_use gnome-keyring linux_link_gnome_keyring)
+ $(gyp_use hidpi enable_hidpi)
+ $(gyp_use kerberos)
+ $(gyp_use lto)
+ $(gyp_use pulseaudio)
+ $(gyp_use tcmalloc use_allocator tcmalloc none)"
+
+ # Use explicit library dependencies instead of dlopen.
+ # This makes breakages easier to detect by revdep-rebuild.
+ myconf+="
+ -Dlinux_link_gsettings=1
+ -Dlinux_link_libpci=1
+ -Dlinux_link_libspeechd=1
+ -Dlibspeechd_h_prefix=speech-dispatcher/"
+
+ # TODO: use the file at run time instead of effectively compiling it in.
+ myconf+="
+ -Dusb_ids_path=/usr/share/misc/usb.ids"
+
+ # Save space by removing DLOG and DCHECK messages (about 6% reduction).
+ myconf+="
+ -Dlogging_like_official_build=1"
+
+ if [[ $(tc-getCC) == *clang* ]]; then
+ myconf+=" -Dclang=1"
+ else
+ myconf+=" -Dclang=0"
+ fi
+
+ # Never use bundled gold binary. Disable gold linker flags for now.
+ # Do not use bundled clang.
+ myconf+="
+ -Dclang_use_chrome_plugins=0
+ -Dhost_clang=0
+ -Dlinux_use_bundled_binutils=0
+ -Dlinux_use_bundled_gold=0
+ -Dlinux_use_gold_flags=0
+ -Dsysroot="
+
+ ffmpeg_branding="$(usex proprietary-codecs Chrome Chromium)"
+ myconf+=" -Dproprietary_codecs=1 -Dffmpeg_branding=${ffmpeg_branding}"
+
+ # Set up Google API keys, see http://www.chromium.org/developers/how-tos/api-keys .
+ # Note: these are for Gentoo use ONLY. For your own distribution,
+ # please get your own set of keys. Feel free to contact chromium@gentoo.org
+ # for more info.
+ local google_api_key="AIzaSyDEAOvatFo0eTgsV_ZlEzx0ObmepsMzfAc"
+ local google_default_client_id="329227923882.apps.googleusercontent.com"
+ local google_default_client_secret="vgKG0NNv7GoDpbtoFNLxCUXu"
+ myconf+=" -Dgoogle_api_key=${google_api_key}
+ -Dgoogle_default_client_id=${google_default_client_id}
+ -Dgoogle_default_client_secret=${google_default_client_secret}"
+
+ local myarch="$(tc-arch)"
+ if [[ $myarch = amd64 ]] ; then
+ target_arch=x64
+ ffmpeg_target_arch=x64
+ elif [[ $myarch = x86 ]] ; then
+ target_arch=ia32
+ ffmpeg_target_arch=ia32
+ elif [[ $myarch = arm64 ]] ; then
+ target_arch=arm64
+ ffmpeg_target_arch=arm64
+ elif [[ $myarch = arm ]] ; then
+ target_arch=arm
+ ffmpeg_target_arch=$(usex neon arm-neon arm)
+ # TODO: re-enable NaCl (NativeClient).
+ local CTARGET=${CTARGET:-${CHOST}}
+ if [[ $(tc-is-softfloat) == "no" ]]; then
+
+ myconf_gyp+=" -Darm_float_abi=hard"
+ fi
+ filter-flags "-mfpu=*"
+ use neon || myconf_gyp+=" -Darm_fpu=${ARM_FPU:-vfpv3-d16}"
+
+ if [[ ${CTARGET} == armv[78]* ]]; then
+ myconf_gyp+=" -Darmv7=1"
+ else
+ myconf_gyp+=" -Darmv7=0"
+ fi
+ myconf_gyp+=" -Dsysroot=
+ $(gyp_use neon arm_neon)
+ -Ddisable_nacl=1"
+ else
+ die "Failed to determine target arch, got '$myarch'."
+ fi
+
+ myconf+=" -Dtarget_arch=${target_arch}"
+
+ # Make sure that -Werror doesn't get added to CFLAGS by the build system.
+ # Depending on GCC version the warnings are different and we don't want
+ # the build to fail because of that.
+ myconf+=" -Dwerror="
+
+ # Disable fatal linker warnings, bug 506268.
+ myconf+=" -Ddisable_fatal_linker_warnings=1"
+
+ # Avoid CFLAGS problems, bug #352457, bug #390147.
+ if ! use custom-cflags; then
+ replace-flags "-Os" "-O2"
+ strip-flags
+
+ # Prevent linker from running out of address space, bug #471810 .
+ if use x86; then
+ filter-flags "-g*"
+ fi
+
+ # Prevent libvpx build failures. Bug 530248, 544702, 546984.
+ if [[ ${myarch} == amd64 || ${myarch} == x86 ]]; then
+ filter-flags -mno-mmx -mno-sse2 -mno-ssse3 -mno-sse4.1 \
+ -mno-avx -mno-avx2
+ fi
+ fi
+
+ # Make sure the build system will use the right tools, bug #340795.
+ tc-export AR CC CXX NM
+
+ # Tools for building programs to be executed on the build system, bug #410883.
+ if tc-is-cross-compiler; then
+ export AR_host=$(tc-getBUILD_AR)
+ export CC_host=$(tc-getBUILD_CC)
+ export CXX_host=$(tc-getBUILD_CXX)
+ export NM_host=$(tc-getBUILD_NM)
+ fi
+
+ # Bug 491582.
+ export TMPDIR="${WORKDIR}/temp"
+ mkdir -p -m 755 "${TMPDIR}" || die
+
+ if ! use system-ffmpeg; then
+ local build_ffmpeg_args=""
+ if use pic && [[ "${ffmpeg_target_arch}" == "ia32" ]]; then
+ build_ffmpeg_args+=" --disable-asm"
+ fi
+
+ # Re-configure bundled ffmpeg. See bug #491378 for example reasons.
+ einfo "Configuring bundled ffmpeg..."
+ pushd third_party/ffmpeg > /dev/null || die
+ chromium/scripts/build_ffmpeg.py linux ${ffmpeg_target_arch} \
+ --branding ${ffmpeg_branding} -- ${build_ffmpeg_args} || die
+ chromium/scripts/copy_config.sh || die
+ chromium/scripts/generate_gyp.py || die
+ popd > /dev/null || die
+ fi
+
+ third_party/libaddressinput/chromium/tools/update-strings.py || die
+
+ touch chrome/test/data/webui/i18n_process_css_test.html || die
+
+ einfo "Configuring bundled nodejs..."
+ pushd vendor/node > /dev/null || die
+ # Make sure gyp_node does not run
+ echo '#!/usr/bin/env python' > tools/gyp_node.py || die
+ # --shared-libuv cannot be used as electron's node fork
+ # patches uv_loop structure.
+ ./configure --shared --without-bundled-v8 --shared-openssl \
+ --shared-http-parser --shared-zlib --without-npm \
+ --with-intl=system-icu --without-dtrace \
+ --dest-cpu=${target_arch} --prefix="" || die
+ popd > /dev/null || die
+
+ # libchromiumcontent configuration
+ myconf+=" -Dcomponent=static_library"
+ myconf+=" -Dmac_mas_build=0"
+ myconf+=' -Dicu_small="false"'
+ myconf+=" -Dlibchromiumcontent_component=0"
+ myconf+=" -Dlibrary=static_library"
+ myconf+=" -Dmas_build=0"
+
+ einfo "Configuring electron..."
+ build/linux/unbundle/replace_gyp_files.py ${myconf} || die
+
+ myconf+=" -Ivendor/node/config.gypi
+ -Icommon.gypi
+ electron.gyp"
+
+ egyp_chromium ${myconf} || die
+}
+
+eninja() {
+ if [[ -z ${NINJAOPTS+set} ]]; then
+ local jobs=$(makeopts_jobs)
+ local loadavg=$(makeopts_loadavg)
+
+ if [[ ${MAKEOPTS} == *-j* && ${jobs} != 999 ]]; then
+ NINJAOPTS+=" -j ${jobs}"
+ fi
+ if [[ ${MAKEOPTS} == *-l* && ${loadavg} != 999 ]]; then
+ NINJAOPTS+=" -l ${loadavg}"
+ fi
+ fi
+ set -- ninja -v ${NINJAOPTS} "$@"
+ echo "$@"
+ "$@"
+}
+
+src_compile() {
+ local ninja_targets="electron" compile_target="out/R"
+
+ eninja -C ${compile_target} mksnapshot || die
+ pax-mark -m ${compile_target}/mksnapshot
+
+ eninja -C ${compile_target} nodebin || die
+ pax-mark -m ${compile_target}/nodebin
+
+ # Even though ninja autodetects number of CPUs, we respect
+ # user's options, for debugging with -j 1 or any other reason.
+ eninja -C ${compile_target} ${ninja_targets} || die
+}
+
+src_install() {
+ local install_dir="$(_get_install_dir)"
+ local install_suffix="$(_get_install_suffix)"
+ local LIBDIR="${ED}/usr/$(get_libdir)"
+
+ pushd out/R/locales > /dev/null || die
+ chromium_remove_language_paks
+ popd > /dev/null || die
+
+ # Install Electron
+ insinto "${install_dir}"
+ exeinto "${install_dir}"
+ newexe out/R/nodebin node
+ doexe out/R/electron
+ doins out/R/libv8.so
+ doins out/R/libnode.so
+ fperms +x "${install_dir}/libv8.so" "${install_dir}/libnode.so"
+ doins out/R/content_shell.pak
+ doins out/R/natives_blob.bin
+ doins out/R/snapshot_blob.bin
+ rm -r out/R/resources/inspector || die
+ doins -r out/R/resources
+ doins -r out/R/locales
+ dosym "${install_dir}/electron" "/usr/bin/electron${install_suffix}"
+
+ pax-mark -rm "${ED}/${install_dir}/electron"
+
+ # Install Node headers
+ HEADERS_ONLY=1 \
+ "${S}/vendor/node/tools/install.py" install "${ED}" "/usr" || die
+ # set up a symlink structure that npm expects..
+ dodir /usr/include/node/deps/{v8,uv}
+ dosym . /usr/include/node/src
+ for var in deps/{uv,v8}/include; do
+ dosym ../.. /usr/include/node/${var}
+ done
+
+ dodir "/usr/include/electron${install_suffix}"
+ mv "${ED}/usr/include/node" \
+ "${ED}/usr/include/electron${install_suffix}/node" || die
+}
+
+pkg_postinst() {
+ eselect electron update
+}
+
+pkg_prerm() {
+ eselect electron update
+}
diff --git a/dev-util/electron/electron-1.6.11-r1.ebuild b/dev-util/electron/electron-1.6.11-r1.ebuild
new file mode 100644
index 000000000000..7c2e7f50ae87
--- /dev/null
+++ b/dev-util/electron/electron-1.6.11-r1.ebuild
@@ -0,0 +1,885 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+PYTHON_COMPAT=( python2_7 )
+
+CHROMIUM_LANGS="am ar bg bn ca cs da de el en-GB es es-419 et fa fi fil fr gu he
+ hi hr hu id it ja kn ko lt lv ml mr ms nb nl pl pt-BR pt-PT ro ru sk sl sr
+ sv sw ta te th tr uk vi zh-CN zh-TW"
+
+inherit check-reqs chromium-2 eutils gnome2-utils flag-o-matic multilib \
+ multiprocessing pax-utils portability python-any-r1 toolchain-funcs \
+ versionator virtualx xdg-utils
+
+# Keep this in sync with vendor/brightray/vendor/libchromiumcontent/VERSION
+CHROMIUM_VERSION="56.0.2924.87"
+# Keep this in sync with vendor/breakpad
+BREAKPAD_COMMIT="c566c50d81f7b1edeaee9f11f5d07bda858d6b64"
+# Keep this in sync with vendor/breakpad/src (and find the corresponding
+# commit in https://github.com/google/breakpad/)
+BREAKPAD_SRC_COMMIT="e35167de7516448fcc2bf687ad580b9d8b6aedc2"
+# Keep this in sync with vendor/brightray
+BRIGHTRAY_COMMIT="909c49265493bd095c27cefd999567be2107899a"
+# Keep this in sync with vendor/node
+NODE_COMMIT="9b1683e7000481ec6214eafa3eef7ac4594eb410"
+# Keep this in sync with vendor/native_mate
+NATIVE_MATE_COMMIT="fd0e7dc4ab778f0d1ccda6c9640464ea06ee771e"
+# Keep this in sync with vendor/pdf_viewer
+PDF_VIEWER_COMMIT="a050a339cfeabcfb5f07c313161d2ee27b6c3a39"
+# Keep this in sync with vendor/pdf_viewer/vendor/grit
+GRIT_COMMIT="9536fb6429147d27ef1563088341825db0a893cd"
+# Keep this in sync with script/lib/config.py:LIBCHROMIUMCONTENT_COMMIT
+LIBCHROMIUMCONTENT_COMMIT="e2ec6935fbf034207d5ad00fa905a4b2cdd60bb7"
+# Keep this in sync with package.json#devDependencies
+ASAR_VERSION="0.12.1"
+BROWSERIFY_VERSION="14.0.0"
+
+CHROMIUM_P="chromium-${CHROMIUM_VERSION}"
+BREAKPAD_P="chromium-breakpad-${BREAKPAD_COMMIT}"
+BREAKPAD_SRC_P="breakpad-${BREAKPAD_SRC_COMMIT}"
+BRIGHTRAY_P="brightray-${BRIGHTRAY_COMMIT}"
+NODE_P="node-${NODE_COMMIT}"
+NATIVE_MATE_P="native-mate-${NATIVE_MATE_COMMIT}"
+PDF_VIEWER_P="pdf-viewer-${PDF_VIEWER_COMMIT}"
+GRIT_P="grit-${GRIT_COMMIT}"
+LIBCHROMIUMCONTENT_P="libchromiumcontent-${LIBCHROMIUMCONTENT_COMMIT}"
+ASAR_P="asar-${ASAR_VERSION}"
+BROWSERIFY_P="browserify-${BROWSERIFY_VERSION}"
+
+DESCRIPTION="Cross platform application development framework based on web technologies"
+HOMEPAGE="http://electron.atom.io/"
+SRC_URI="
+ https://commondatastorage.googleapis.com/chromium-browser-official/${CHROMIUM_P}.tar.xz
+ https://github.com/electron/electron/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ https://github.com/electron/chromium-breakpad/archive/${BREAKPAD_COMMIT}.tar.gz -> electron-${BREAKPAD_P}.tar.gz
+ https://github.com/google/breakpad/archive/${BREAKPAD_SRC_COMMIT}.tar.gz -> electron-${BREAKPAD_SRC_P}.tar.gz
+ https://github.com/electron/brightray/archive/${BRIGHTRAY_COMMIT}.tar.gz -> electron-${BRIGHTRAY_P}.tar.gz
+ https://github.com/electron/node/archive/${NODE_COMMIT}.tar.gz -> electron-${NODE_P}.tar.gz
+ https://github.com/zcbenz/native-mate/archive/${NATIVE_MATE_COMMIT}.tar.gz -> electron-${NATIVE_MATE_P}.tar.gz
+ https://github.com/electron/pdf-viewer/archive/${PDF_VIEWER_COMMIT}.tar.gz -> electron-${PDF_VIEWER_P}.tar.gz
+ https://github.com/elprans/grit/archive/${GRIT_COMMIT}.tar.gz -> electron-${GRIT_P}.tar.gz
+ https://github.com/electron/libchromiumcontent/archive/${LIBCHROMIUMCONTENT_COMMIT}.tar.gz -> electron-${LIBCHROMIUMCONTENT_P}.tar.gz
+ https://github.com/elprans/asar/releases/download/v${ASAR_VERSION}-gentoo/asar-build.tar.gz -> ${ASAR_P}.tar.gz
+ https://github.com/elprans/node-browserify/releases/download/${BROWSERIFY_VERSION}-gentoo/browserify-build.tar.gz -> ${BROWSERIFY_P}.tar.gz
+"
+
+S="${WORKDIR}/${P}"
+CHROMIUM_S="${S}/chromium"
+NODE_S="${S}/vendor/node"
+BREAKPAD_S="${S}/vendor/breakpad"
+BREAKPAD_SRC_S="${BREAKPAD_S}/src"
+BRIGHTRAY_S="${S}/vendor/brightray"
+NATIVE_MATE_S="${S}/vendor/native_mate"
+PDF_VIEWER_S="${S}/vendor/pdf_viewer"
+GRIT_S="${PDF_VIEWER_S}/vendor/grit"
+LIBCC_S="${BRIGHTRAY_S}/vendor/libchromiumcontent"
+
+LICENSE="BSD"
+SLOT="$(get_version_component_range 1-2)"
+KEYWORDS="~amd64"
+IUSE="cups custom-cflags gnome gnome-keyring kerberos lto neon pic +proprietary-codecs pulseaudio selinux +system-ffmpeg +tcmalloc"
+RESTRICT="!system-ffmpeg? ( proprietary-codecs? ( bindist ) )"
+
+# Native Client binaries are compiled with different set of flags, bug #452066.
+QA_FLAGS_IGNORED=".*\.nexe"
+
+# Native Client binaries may be stripped by the build system, which uses the
+# right tools for it, bug #469144 .
+QA_PRESTRIPPED=".*\.nexe"
+
+COMMON_DEPEND="
+ app-arch/bzip2:=
+ >=app-eselect/eselect-electron-2.0
+ cups? ( >=net-print/cups-1.3.11:= )
+ >=dev-libs/elfutils-0.149
+ dev-libs/expat:=
+ dev-libs/glib:2
+ dev-libs/icu:=
+ >=dev-libs/jsoncpp-0.5.0-r1:=
+ dev-libs/nspr:=
+ >=dev-libs/nss-3.14.3:=
+ >=dev-libs/re2-0.2016.05.01:=
+ gnome? ( >=gnome-base/gconf-2.24.0:= )
+ gnome-keyring? ( >=gnome-base/libgnome-keyring-3.12:= )
+ >=media-libs/alsa-lib-1.0.19:=
+ media-libs/fontconfig:=
+ media-libs/freetype:=
+ media-libs/libexif:=
+ media-libs/libjpeg-turbo:=
+ media-libs/libpng:=
+ media-libs/libvpx:=[svc]
+ media-libs/speex:=
+ pulseaudio? ( media-sound/pulseaudio:= )
+ system-ffmpeg? ( >=media-video/ffmpeg-3:= )
+ sys-apps/dbus:=
+ sys-apps/pciutils:=
+ >=sys-libs/libcap-2.22:=
+ virtual/udev
+ x11-libs/cairo:=
+ x11-libs/gdk-pixbuf:2
+ x11-libs/libdrm
+ x11-libs/libX11:=
+ x11-libs/libXcomposite:=
+ x11-libs/libXcursor:=
+ x11-libs/libXdamage:=
+ x11-libs/libXext:=
+ x11-libs/libXfixes:=
+ >=x11-libs/libXi-1.6.0:=
+ x11-libs/libXinerama:=
+ x11-libs/libXrandr:=
+ x11-libs/libXrender:=
+ x11-libs/libXScrnSaver:=
+ x11-libs/libXtst:=
+ x11-libs/pango:=
+ app-arch/snappy:=
+ dev-libs/libxml2:=[icu]
+ dev-libs/libxslt:=
+ media-libs/flac:=
+ >=media-libs/harfbuzz-1.3.1:=[icu(+)]
+ >=media-libs/libwebp-0.4.0:=
+ sys-libs/zlib:=[minizip]
+ kerberos? ( virtual/krb5 )
+"
+# For nvidia-drivers blocker, see bug #413637 .
+RDEPEND="${COMMON_DEPEND}
+ !<dev-util/electron-0.36.12-r4
+ x11-misc/xdg-utils
+ virtual/opengl
+ virtual/ttf-fonts
+ x11-libs/gtk+:2
+ selinux? ( sec-policy/selinux-chromium )
+ tcmalloc? ( !<x11-drivers/nvidia-drivers-331.20 )
+"
+# dev-vcs/git - https://bugs.gentoo.org/593476
+DEPEND="${COMMON_DEPEND}
+ >=app-arch/gzip-1.7
+ !arm? (
+ dev-lang/yasm
+ )
+ dev-lang/perl
+ dev-perl/JSON
+ >=dev-util/gperf-3.0.3
+ dev-util/ninja
+ sys-apps/hwids[usb(+)]
+ >=sys-devel/bison-2.4.3
+ sys-devel/flex
+ virtual/pkgconfig
+ dev-vcs/git
+ x11-libs/gtk+:2
+ x11-libs/gtk+:3
+ $(python_gen_any_dep '
+ dev-python/beautifulsoup:python-2[${PYTHON_USEDEP}]
+ >=dev-python/beautifulsoup-4.3.2:4[${PYTHON_USEDEP}]
+ dev-python/html5lib[${PYTHON_USEDEP}]
+ dev-python/simplejson[${PYTHON_USEDEP}]
+ ')
+"
+
+# Keep this in sync with the python_gen_any_dep call.
+python_check_deps() {
+ has_version --host-root "dev-python/beautifulsoup:python-2[${PYTHON_USEDEP}]" &&
+ has_version --host-root ">=dev-python/beautifulsoup-4.3.2:4[${PYTHON_USEDEP}]" &&
+ has_version --host-root "dev-python/html5lib[${PYTHON_USEDEP}]" &&
+ has_version --host-root "dev-python/simplejson[${PYTHON_USEDEP}]"
+}
+
+if ! has chromium_pkg_die ${EBUILD_DEATH_HOOKS}; then
+ EBUILD_DEATH_HOOKS+=" chromium_pkg_die";
+fi
+
+pre_build_checks() {
+ if [[ ${MERGE_TYPE} != binary ]]; then
+ local -x CPP="$(tc-getCXX) -E"
+ if tc-is-clang && ! version_is_at_least "3.9.1" "$(clang-fullversion)"; then
+ # bugs: #601654
+ die "At least clang 3.9.1 is required"
+ fi
+ if tc-is-gcc && ! version_is_at_least 4.9 "$(gcc-version)"; then
+ # bugs: #535730, #525374, #518668, #600288
+ die "At least gcc 4.9 is required"
+ fi
+ fi
+
+ # LTO pass requires more file descriptors
+ if use lto; then
+ local lto_n_rlimit_min="16384"
+ local maxfiles=$(ulimit -n -H)
+ if [ "${maxfiles}" -lt "${lto_n_rlimit_min}" ]; then
+ eerror ""
+ eerror "Building with USE=\"lto\" requires file descriptor" \
+ "limit to be no less than ${lto_n_rlimit_min}."
+ eerror "The current limit for portage is ${maxfiles}."
+ eerror "Please add the following to /etc/security/limits.conf:"
+ eerror ""
+ eerror " root hard nofile ${lto_n_rlimit_min}"
+ eerror " root soft nofile ${lto_n_rlimit_min}"
+ eerror ""
+ die
+ fi
+ fi
+
+ # Check build requirements, bug #541816 and bug #471810 .
+ CHECKREQS_MEMORY="3G"
+ use lto && CHECKREQS_MEMORY="7G"
+ CHECKREQS_DISK_BUILD="5G"
+ eshopts_push -s extglob
+ if is-flagq '-g?(gdb)?([1-9])'; then
+ CHECKREQS_DISK_BUILD="25G"
+ CHECKREQS_MEMORY="16G"
+ fi
+ eshopts_pop
+ check-reqs_pkg_pretend
+}
+
+pkg_pretend() {
+ pre_build_checks
+}
+
+pkg_setup() {
+ pre_build_checks
+
+ # Make sure the build system will use the right python, bug #344367.
+ python-any-r1_pkg_setup
+
+ chromium_suid_sandbox_check_kernel_config
+}
+
+_unnest_patches() {
+ local _s="${1%/}/" relpath out
+
+ for f in $(find "${_s}" -mindepth 2 -name *.patch -printf \"%P\"\\n); do
+ relpath="$(dirname ${f})"
+ out="${_s}/${relpath////_}_$(basename ${f})"
+ sed -r -e "s|^([-+]{3}) (.*)$|\1 ${relpath}/\2 ${f}|g" > "${out}"
+ done
+}
+
+_get_install_suffix() {
+ local c=(${SLOT//\// })
+ local slot=${c[0]}
+ local suffix
+
+ if [[ "${slot}" == "0" ]]; then
+ suffix=""
+ else
+ suffix="-${slot}"
+ fi
+
+ echo -n "${suffix}"
+}
+
+_get_install_dir() {
+ echo -n "/usr/$(get_libdir)/electron$(_get_install_suffix)"
+}
+
+_get_target_arch() {
+ local myarch="$(tc-arch)"
+ local target_arch
+
+ if [[ $myarch = amd64 ]] ; then
+ target_arch=x64
+ elif [[ $myarch = x86 ]] ; then
+ target_arch=ia32
+ elif [[ $myarch = arm64 ]] ; then
+ target_arch=arm64
+ elif [[ $myarch = arm ]] ; then
+ target_arch=arm
+ else
+ die "Failed to determine target arch, got '$myarch'."
+ fi
+
+ echo -n "${target_arch}"
+}
+
+src_prepare() {
+ mv "${WORKDIR}/${CHROMIUM_P}" "${CHROMIUM_S}" || die
+ rm -r "${NODE_S}" &&
+ mv "${WORKDIR}/${NODE_P}" "${NODE_S}" || die
+ rm -r "${BREAKPAD_S}" &&
+ mv "${WORKDIR}/${BREAKPAD_P}" "${BREAKPAD_S}" || die
+ rm -r "${BREAKPAD_SRC_S}" &&
+ mv "${WORKDIR}/${BREAKPAD_SRC_P}/src" "${BREAKPAD_SRC_S}" || die
+ rm -r "${BRIGHTRAY_S}" &&
+ mv "${WORKDIR}/${BRIGHTRAY_P}" "${BRIGHTRAY_S}" || die
+ rm -r "${NATIVE_MATE_S}" &&
+ mv "${WORKDIR}/${NATIVE_MATE_P}" "${NATIVE_MATE_S}" || die
+ rm -r "${PDF_VIEWER_S}" &&
+ mv "${WORKDIR}/${PDF_VIEWER_P}" "${PDF_VIEWER_S}" || die
+ rm -r "${GRIT_S}" &&
+ mv "${WORKDIR}/${GRIT_P}" "${GRIT_S}" || die
+ rm -r "${LIBCC_S}" &&
+ mv "${WORKDIR}/${LIBCHROMIUMCONTENT_P}" "${LIBCC_S}" || die
+ rsync -a "${WORKDIR}/${ASAR_P}/node_modules/" \
+ "${S}/node_modules/" || die
+ rsync -a "${WORKDIR}/${BROWSERIFY_P}/node_modules/" \
+ "${S}/node_modules/" || die
+
+ # electron patches
+ cd "${ELECTRON_S}" || die
+ eapply "${FILESDIR}/${P}.patch"
+
+ # node patches
+ cd "${NODE_S}" || die
+ eapply "${FILESDIR}/${P}-vendor-node.patch"
+ eapply "${FILESDIR}/${PN}-vendor-node-external-snapshots-r2.patch"
+ # make sure node uses the correct version of v8
+ rm -r deps/v8 || die
+ ln -s "${CHROMIUM_S}/v8" deps/ || die
+
+ # make sure we use python2.* while using gyp
+ sed -i -e "s/python/${EPYTHON}/" \
+ deps/npm/node_modules/node-gyp/gyp/gyp || die
+ sed -i -e "s/|| 'python'/|| '${EPYTHON}'/" \
+ deps/npm/node_modules/node-gyp/lib/configure.js || die
+
+ python_fix_shebang "${CHROMIUM_S}/build/gyp_chromium"
+ python_fix_shebang "${S}/tools/"
+
+ # less verbose install output (stating the same as portage, basically)
+ sed -i -e "/print/d" tools/install.py || die
+
+ # proper libdir, hat tip @ryanpcmcquen
+ # https://github.com/iojs/io.js/issues/504
+ local LIBDIR=$(get_libdir)
+ sed -i -e "s|lib/|${LIBDIR}/|g" tools/install.py || die
+ sed -i -e "s/'lib'/'${LIBDIR}'/" lib/module.js || die
+ sed -i -e "s|\"lib\"|\"${LIBDIR}\"|" deps/npm/lib/npm.js || die
+
+ # brightray patches
+ cd "${BRIGHTRAY_S}" || die
+ eapply "${FILESDIR}/${P}-vendor-brightray.patch"
+
+ # libchromiumcontent patches
+ cd "${LIBCC_S}" || die
+ eapply "${FILESDIR}/${P}-vendor-libchromiumcontent.patch"
+
+ # chromium patches
+ cd "${CHROMIUM_S}" || die
+
+ eapply "${FILESDIR}/chromium-FORTIFY_SOURCE.patch"
+ eapply "${FILESDIR}/chromium-glibc-2.24.patch"
+ eapply "${FILESDIR}/chromium-56-gcc4.patch"
+ eapply "${FILESDIR}/chromium-system-ffmpeg-r4.patch"
+ eapply "${FILESDIR}/chromium-disable-widevine.patch"
+ eapply "${FILESDIR}/chromium-remove-gardiner-mod-font-r1.patch"
+ eapply "${FILESDIR}/chromium-shared-v8-r2.patch"
+ eapply "${FILESDIR}/chromium-lto-fixes-r3.patch"
+
+ # libcc chromium patches
+ _unnest_patches "${LIBCC_S}/patches"
+
+ EPATCH_SOURCE="${LIBCC_S}/patches" \
+ EPATCH_SUFFIX="patch" \
+ EPATCH_FORCE="yes" \
+ EPATCH_EXCLUDE="third_party_icu*" \
+ EPATCH_MULTI_MSG="Applying libchromiumcontent patches..." \
+ epatch
+
+ # Merge chromiumcontent component into chromium source tree.
+ mkdir -p "${CHROMIUM_S}/chromiumcontent" || die
+ cp -a "${LIBCC_S}/chromiumcontent" "${CHROMIUM_S}/" || die
+ cp -a "${LIBCC_S}/tools/linux/" "${CHROMIUM_S}/tools/" || die
+
+ local keeplibs=(
+ base/third_party/dmg_fp
+ base/third_party/dynamic_annotations
+ base/third_party/icu
+ base/third_party/nspr
+ base/third_party/superfasthash
+ base/third_party/symbolize
+ base/third_party/valgrind
+ base/third_party/xdg_mime
+ base/third_party/xdg_user_dirs
+ breakpad/src/third_party/curl
+ chrome/third_party/mozilla_security_manager
+ courgette/third_party
+ net/third_party/mozilla_security_manager
+ net/third_party/nss
+ third_party/WebKit
+ third_party/analytics
+ third_party/angle
+ third_party/angle/src/common/third_party/numerics
+ third_party/angle/src/third_party/compiler
+ third_party/angle/src/third_party/libXNVCtrl
+ third_party/angle/src/third_party/murmurhash
+ third_party/angle/src/third_party/trace_event
+ third_party/boringssl
+ third_party/brotli
+ third_party/cacheinvalidation
+ third_party/catapult
+ third_party/catapult/third_party/polymer
+ third_party/catapult/third_party/py_vulcanize
+ third_party/catapult/third_party/py_vulcanize/third_party/rcssmin
+ third_party/catapult/third_party/py_vulcanize/third_party/rjsmin
+ third_party/catapult/tracing/third_party/d3
+ third_party/catapult/tracing/third_party/gl-matrix
+ third_party/catapult/tracing/third_party/jszip
+ third_party/catapult/tracing/third_party/mannwhitneyu
+ third_party/ced
+ third_party/cld_2
+ third_party/cld_3
+ third_party/cros_system_api
+ third_party/devscripts
+ third_party/dom_distiller_js
+ third_party/fips181
+ third_party/flatbuffers
+ third_party/flot
+ third_party/google_input_tools
+ third_party/google_input_tools/third_party/closure_library
+ third_party/google_input_tools/third_party/closure_library/third_party/closure
+ third_party/hunspell
+ third_party/iccjpeg
+ third_party/inspector_protocol
+ third_party/jinja2
+ third_party/jstemplate
+ third_party/khronos
+ third_party/leveldatabase
+ third_party/libXNVCtrl
+ third_party/libaddressinput
+ third_party/libjingle
+ third_party/libphonenumber
+ third_party/libsecret
+ third_party/libsrtp
+ third_party/libudev
+ third_party/libusb
+ third_party/libwebm
+ third_party/libxml/chromium
+ third_party/libyuv
+ third_party/lss
+ third_party/lzma_sdk
+ third_party/markupsafe
+ third_party/mesa
+ third_party/modp_b64
+ third_party/mt19937ar
+ third_party/openh264
+ third_party/openmax_dl
+ third_party/opus
+ third_party/ots
+ third_party/pdfium
+ third_party/pdfium/third_party/agg23
+ third_party/pdfium/third_party/base
+ third_party/pdfium/third_party/bigint
+ third_party/pdfium/third_party/freetype
+ third_party/pdfium/third_party/lcms2-2.6
+ third_party/pdfium/third_party/libjpeg
+ third_party/pdfium/third_party/libopenjpeg20
+ third_party/pdfium/third_party/libpng16
+ third_party/pdfium/third_party/libtiff
+ third_party/pdfium/third_party/zlib_v128
+ third_party/ply
+ third_party/polymer
+ third_party/protobuf
+ third_party/protobuf/third_party/six
+ third_party/qcms
+ third_party/sfntly
+ third_party/skia
+ third_party/smhasher
+ third_party/sqlite
+ third_party/tcmalloc
+ third_party/usrsctp
+ third_party/web-animations-js
+ third_party/webdriver
+ third_party/webrtc
+ third_party/widevine
+ third_party/woff2
+ third_party/x86inc
+ third_party/zlib/google
+ url/third_party/mozilla
+ v8/src/third_party/valgrind
+ v8/third_party/inspector_protocol
+
+ # gyp -> gn leftovers
+ base/third_party/libevent
+ third_party/adobe
+ third_party/speech-dispatcher
+ third_party/usb_ids
+ third_party/xdg-utils
+ third_party/yasm/run_yasm.py
+ )
+ if ! use system-ffmpeg; then
+ keeplibs+=( third_party/ffmpeg )
+ fi
+
+ # Remove most bundled libraries. Some are still needed.
+ build/linux/unbundle/remove_bundled_libraries.py \
+ "${keeplibs[@]}" --do-remove || die
+
+ cd "${S}" || die
+
+ eapply_user
+}
+
+src_configure() {
+ local myconf_gn=""
+ local myconf_gyp=""
+
+ cd "${CHROMIUM_S}" || die
+
+ # GN needs explicit config for Debug/Release as opposed to inferring it from build directory.
+ myconf_gn+=" is_debug=false"
+
+ # Disable nacl, we can't build without pnacl (http://crbug.com/269560).
+ myconf_gn+=" enable_nacl=false"
+
+ # Use system-provided libraries.
+ # TODO: use_system_hunspell (upstream changes needed).
+ # TODO: use_system_libsrtp (bug #459932).
+ # TODO: use_system_libusb (http://crbug.com/266149).
+ # TODO: use_system_opus (https://code.google.com/p/webrtc/issues/detail?id=3077).
+ # TODO: use_system_protobuf (bug #525560).
+ # TODO: use_system_ssl (http://crbug.com/58087).
+ # TODO: use_system_sqlite (http://crbug.com/22208).
+
+ # libevent: https://bugs.gentoo.org/593458
+ local gn_system_libraries="
+ flac
+ harfbuzz-ng
+ icu
+ libjpeg
+ libpng
+ libvpx
+ libwebp
+ libxml
+ libxslt
+ re2
+ snappy
+ yasm
+ zlib"
+ if use system-ffmpeg; then
+ gn_system_libraries+=" ffmpeg"
+ fi
+ build/linux/unbundle/replace_gn_files.py --system-libraries ${gn_system_libraries} || die
+
+ # Optional dependencies.
+ myconf_gn+=" use_cups=$(usex cups true false)"
+ myconf_gn+=" use_gconf=$(usex gnome true false)"
+ myconf_gn+=" use_gnome_keyring=$(usex gnome-keyring true false)"
+ myconf_gn+=" use_gtk3=false"
+ myconf_gn+=" use_kerberos=$(usex kerberos true false)"
+ myconf_gn+=" use_pulseaudio=$(usex pulseaudio true false)"
+
+ # TODO: link_pulseaudio=true for GN.
+
+ myconf_gn+=" fieldtrial_testing_like_official_build=true"
+
+ if tc-is-clang; then
+ myconf_gn+=" is_clang=true clang_base_path=\"/usr\" clang_use_chrome_plugins=false"
+ else
+ myconf_gn+=" is_clang=false"
+ fi
+
+ # Never use bundled gold binary. Disable gold linker flags for now.
+ # Do not use bundled clang.
+ # Trying to use gold results in linker crash.
+ myconf_gn+=" use_gold=false use_sysroot=false linux_use_bundled_binutils=false"
+
+ ffmpeg_branding="$(usex proprietary-codecs Chrome Chromium)"
+ myconf_gn+=" proprietary_codecs=$(usex proprietary-codecs true false)"
+ myconf_gn+=" ffmpeg_branding=\"${ffmpeg_branding}\""
+
+ # Set up Google API keys, see http://www.chromium.org/developers/how-tos/api-keys .
+ # Note: these are for Gentoo use ONLY. For your own distribution,
+ # please get your own set of keys. Feel free to contact chromium@gentoo.org
+ # for more info.
+ local google_api_key="AIzaSyDEAOvatFo0eTgsV_ZlEzx0ObmepsMzfAc"
+ local google_default_client_id="329227923882.apps.googleusercontent.com"
+ local google_default_client_secret="vgKG0NNv7GoDpbtoFNLxCUXu"
+ myconf_gn+=" google_api_key=\"${google_api_key}\""
+ myconf_gn+=" google_default_client_id=\"${google_default_client_id}\""
+ myconf_gn+=" google_default_client_secret=\"${google_default_client_secret}\""
+
+ local target_arch=$(_get_target_arch)
+ local ffmpeg_target_arch="${target_arch}"
+
+ if [[ ${ffmpeg_target_arch} = arm ]]; then
+ ffmpeg_target_arch=$(usex neon arm-neon arm)
+ fi
+
+ # Make sure that -Werror doesn't get added to CFLAGS by the build system.
+ # Depending on GCC version the warnings are different and we don't want
+ # the build to fail because of that.
+ myconf_gn+=" treat_warnings_as_errors=false"
+
+ # Disable fatal linker warnings, bug 506268.
+ myconf_gn+=" fatal_linker_warnings=false"
+
+ # Avoid CFLAGS problems, bug #352457, bug #390147.
+ if ! use custom-cflags; then
+ replace-flags "-Os" "-O2"
+ strip-flags
+
+ filter-flags "-Wl,--as-needed"
+
+ # Prevent linker from running out of address space, bug #471810 .
+ if use x86; then
+ filter-flags "-g*"
+ fi
+
+ # Prevent libvpx build failures. Bug 530248, 544702, 546984.
+ if [[ ${myarch} == amd64 || ${myarch} == x86 ]]; then
+ filter-flags -mno-mmx -mno-sse2 -mno-ssse3 -mno-sse4.1 -mno-avx -mno-avx2
+ fi
+ fi
+
+ # Make sure the build system will use the right tools, bug #340795.
+ tc-export AR CC CXX NM
+
+ # https://bugs.gentoo.org/588596
+ append-cxxflags $(test-flags-CXX -fno-delete-null-pointer-checks)
+
+ # Define a custom toolchain for GN
+ myconf_gn+=" custom_toolchain=\"${FILESDIR}/toolchain:default\""
+
+ use lto && myconf_gn+=" allow_posix_link_time_opt=true"
+
+ # Tools for building programs to be executed on the build system, bug #410883.
+ if tc-is-cross-compiler; then
+ export AR_host=$(tc-getBUILD_AR)
+ export CC_host=$(tc-getBUILD_CC)
+ export CXX_host=$(tc-getBUILD_CXX)
+ export NM_host=$(tc-getBUILD_NM)
+ fi
+
+ # Bug 491582.
+ export TMPDIR="${WORKDIR}/temp"
+ mkdir -p -m 755 "${TMPDIR}" || die
+
+ if ! use system-ffmpeg; then
+ local build_ffmpeg_args=""
+ if use pic && [[ "${ffmpeg_target_arch}" == "ia32" ]]; then
+ build_ffmpeg_args+=" --disable-asm"
+ fi
+
+ # Re-configure bundled ffmpeg. See bug #491378 for example reasons.
+ einfo "Configuring bundled ffmpeg..."
+ pushd third_party/ffmpeg > /dev/null || die
+ chromium/scripts/build_ffmpeg.py linux ${ffmpeg_target_arch} \
+ --branding ${ffmpeg_branding} -- ${build_ffmpeg_args} || die
+ chromium/scripts/copy_config.sh || die
+ chromium/scripts/generate_gn.py || die
+ popd > /dev/null || die
+ fi
+
+ third_party/libaddressinput/chromium/tools/update-strings.py || die
+
+ touch chrome/test/data/webui/i18n_process_css_test.html || die
+
+ einfo "Configuring bundled nodejs..."
+ pushd "${S}/vendor/node" > /dev/null || die
+ # Make sure gyp_node does not run
+ echo '#!/usr/bin/env python' > tools/gyp_node.py || die
+ # --shared-libuv cannot be used as electron's node fork
+ # patches uv_loop structure.
+ ./configure --shared --without-bundled-v8 --shared-openssl \
+ --shared-http-parser --shared-zlib --without-npm \
+ --with-intl=system-icu --without-dtrace \
+ --dest-cpu=${target_arch} --prefix="" || die
+ popd > /dev/null || die
+
+ # libchromiumcontent configuration
+ myconf_gn+=" root_extra_deps = [\"//chromiumcontent:chromiumcontent\"]"
+ myconf_gn+=" is_electron_build = true"
+ myconf_gn+=" is_component_build = false"
+
+ einfo "Configuring chromiumcontent..."
+ # TODO: bootstrapped gn binary hangs when using tcmalloc with portage's sandbox.
+ tools/gn/bootstrap/bootstrap.py -v --gn-gen-args "${myconf_gn} use_allocator=\"none\"" || die
+ # Remove the glibc allocator shim so that it doesn't get picked up
+ # by Electron's build_libs script.
+ rm out/Release/obj/base/allocator/unified_allocator_shim/allocator_shim_default_dispatch_to_glibc.o || die
+
+ myconf_gn+=" use_allocator=$(usex tcmalloc \"tcmalloc\" \"none\")"
+ out/Release/gn gen --args="${myconf_gn}" out/Release || die
+
+ cd "${S}" || die
+}
+
+eninja() {
+ if [[ -z ${NINJAOPTS+set} ]]; then
+ local jobs=$(makeopts_jobs)
+ local loadavg=$(makeopts_loadavg)
+
+ if [[ ${MAKEOPTS} == *-j* && ${jobs} != 999 ]]; then
+ NINJAOPTS+=" -j ${jobs}"
+ fi
+ if [[ ${MAKEOPTS} == *-l* && ${loadavg} != 999 ]]; then
+ NINJAOPTS+=" -l ${loadavg}"
+ fi
+ fi
+ set -- ninja -v ${NINJAOPTS} "$@"
+ echo "$@"
+ "$@" || die
+}
+
+src_compile() {
+ local compile_target="${S}/out/R"
+ local myconf_gyp=""
+ local chromium_target="${CHROMIUM_S}/out/Release"
+ local libcc_path="${S}/vendor/brightray/vendor/libchromiumcontent"
+ local libcc_dist_path="${libcc_path}/dist/main"
+ local libcc_dist_static_path="${libcc_dist_path}/static_library"
+ local libcc_dist_shared_path="${libcc_dist_path}/shared_library"
+ local libcc_output="${CHROMIUM_S}/out/Release/obj/chromiumcontent"
+ local libcc_output_shared="${libcc_output}-shared"
+ local target_arch=$(_get_target_arch)
+
+ tc-export AR CC CXX NM
+
+ mkdir -p "${compile_target}" || die
+
+ cd "${CHROMIUM_S}" || die
+
+ # Build mksnapshot and pax-mark it.
+ eninja -C "${chromium_target}" mksnapshot || die
+ pax-mark m "${chromium_target}/mksnapshot"
+
+ # Build chromedriver.
+ eninja -C "${chromium_target}" chromedriver
+ cp -a "${chromium_target}/chromedriver" "${compile_target}/" || die
+
+ # Build libchromiumcontent components.
+ eninja -C "${chromium_target}" chromiumcontent:chromiumcontent
+
+ cd "${S}" || die
+
+ # Gather and prepare built components of libchromiumcontent.
+ CHROMIUM_BUILD_DIR="${chromium_target}" \
+ python2 "${libcc_path}"/script/create-dist \
+ --target_arch=${target_arch} \
+ --component=static_library \
+ --no_zip || die
+
+ # v8 is built as a shared library, so copy it manually
+ # for generate_filenames_gypi to find.
+ mkdir -p "${libcc_dist_shared_path}" || die
+ cp "${chromium_target}/libv8.so" "${libcc_dist_shared_path}" || die
+
+ python2 "${libcc_path}"/tools/generate_filenames_gypi.py \
+ "${libcc_dist_path}/filenames.gypi" \
+ "${CHROMIUM_S}" \
+ "${libcc_dist_shared_path}" \
+ "${libcc_dist_static_path}"
+
+ # Configure electron.
+ myconf_gyp+="
+ $(gyp_use cups)
+ $(gyp_use gnome use_gconf)
+ $(gyp_use gnome-keyring use_gnome_keyring)
+ $(gyp_use gnome-keyring linux_link_gnome_keyring)
+ $(gyp_use lto)"
+
+ if [[ $(tc-getCC) == *clang* ]]; then
+ myconf_gyp+=" -Dclang=1"
+ else
+ myconf_gyp+=" -Dclang=0"
+ fi
+
+ # Never use bundled gold binary. Disable gold linker flags for now.
+ # Do not use bundled clang.
+ myconf_gyp+="
+ -Dclang_use_chrome_plugins=0
+ -Dhost_clang=0
+ -Dlinux_use_bundled_binutils=0
+ -Dlinux_use_bundled_gold=0
+ -Dlinux_use_gold_flags=0
+ -Dsysroot="
+
+ myconf_gyp+=" -Dtarget_arch=${target_arch}"
+
+ # Make sure that -Werror doesn't get added to CFLAGS by the build system.
+ # Depending on GCC version the warnings are different and we don't want
+ # the build to fail because of that.
+ myconf_gyp+=" -Dwerror="
+
+ # Disable fatal linker warnings, bug 506268.
+ myconf_gyp+=" -Ddisable_fatal_linker_warnings=1"
+
+ # Needed for system icu - we don't need additional data files.
+ myconf_gyp+=" -Dicu_use_data_file_flag=0"
+ myconf_gyp+=" -Dgenerate_character_data=0"
+
+ myconf_gyp+=" -Dlibchromiumcontent_component=0"
+ myconf_gyp+=" -Dcomponent=static_library"
+ myconf_gyp+=" -Dlibrary=static_library"
+ myconf_gyp+=" -Ivendor/node/config.gypi -Icommon.gypi electron.gyp"
+
+ EGYP_CHROMIUM_COMMAND="${CHROMIUM_S}/build/gyp_chromium" \
+ egyp_chromium ${myconf_gyp} || die
+
+ # Copy libv8 and snapshot files so the node binary can find them.
+ mkdir -p "${compile_target}/lib/" || die
+ cp "${chromium_target}/libv8.so" "${compile_target}/lib/" || die
+ cp "${chromium_target}/natives_blob.bin" "${compile_target}" || die
+ cp "${chromium_target}/snapshot_blob.bin" "${compile_target}" || die
+
+ # Copy generated shim headers.
+ mkdir -p "${compile_target}/gen" || die
+ cp -r "${chromium_target}/gen/shim_headers" \
+ "${compile_target}/gen" || die
+
+ # Build the Node binary and pax-mark it.
+ eninja -C ${compile_target} nodebin
+ pax-mark m ${compile_target}/nodebin
+
+ # Finally, build Electron.
+ eninja -C ${compile_target} electron
+ pax-mark m ${compile_target}/electron
+
+ echo "v${PV}" > ${compile_target}/version
+}
+
+src_install() {
+ local install_dir="$(_get_install_dir)"
+ local install_suffix="$(_get_install_suffix)"
+ local LIBDIR="${ED}/usr/$(get_libdir)"
+
+ pushd out/R/locales > /dev/null || die
+ chromium_remove_language_paks
+ popd > /dev/null || die
+
+ # Install Electron
+ insinto "${install_dir}"
+ exeinto "${install_dir}"
+ newexe out/R/nodebin node
+ doexe out/R/electron
+ doexe out/R/chromedriver
+ doins out/R/libv8.so
+ doins out/R/libnode.so
+ fperms +x "${install_dir}/libv8.so" "${install_dir}/libnode.so"
+ doins out/R/natives_blob.bin
+ doins out/R/snapshot_blob.bin
+ doins out/R/blink_image_resources_200_percent.pak
+ doins out/R/content_resources_200_percent.pak
+ doins out/R/content_shell.pak
+ doins out/R/pdf_viewer_resources.pak
+ doins out/R/ui_resources_200_percent.pak
+ doins out/R/views_resources_200_percent.pak
+ doins -r out/R/resources
+ doins -r out/R/locales
+ dosym "${install_dir}/electron" "/usr/bin/electron${install_suffix}"
+
+ doins out/R/version
+
+ # Install Node headers
+ HEADERS_ONLY=1 \
+ "${S}/vendor/node/tools/install.py" install "${ED}" "/usr" || die
+ # set up a symlink structure that npm expects..
+ dodir /usr/include/node/deps/{v8,uv}
+ dosym . /usr/include/node/src
+ for var in deps/{uv,v8}/include; do
+ dosym ../.. /usr/include/node/${var}
+ done
+
+ dodir "/usr/include/electron${install_suffix}"
+ mv "${ED}/usr/include/node" \
+ "${ED}/usr/include/electron${install_suffix}/node" || die
+}
+
+pkg_postinst() {
+ electron-config update
+}
+
+pkg_postrm() {
+ electron-config update
+}
diff --git a/dev-util/electron/files/chromium-56-gcc4.patch b/dev-util/electron/files/chromium-56-gcc4.patch
new file mode 100644
index 000000000000..e3188668ce5a
--- /dev/null
+++ b/dev-util/electron/files/chromium-56-gcc4.patch
@@ -0,0 +1,48 @@
+From 888874f761fdd69bb9448b3905627289b5fd66dd Mon Sep 17 00:00:00 2001
+From: floppymaster <floppymaster@gmail.com>
+Date: Thu, 19 Jan 2017 20:20:45 -0800
+Subject: [PATCH] Allow GCC 4.9 to compile Chromium
+
+In order to implicit cast an lvalue to an rvalue when returning
+from a function, the return type and type of variable in the return
+statement previously had to be exactly the same. When this was not
+the case, std::move was required. For instance, when returning a
+std::unique_ptr<Derived> variable in a function with a
+std::unique_ptr<Base> return type, std::move is required.
+
+DR 1579 changed this, and allows for implicitly converting
+to the return type, if the return type has a constructor(T&&), where
+T is the type of the local variable being returned. DR 1579 was
+implemented in GCC 5, but not in GCC 4.9 and below. By explicitly
+qualifying the local variable with std::move, we allow for compiling
+with GCC 4.9 and incur no performance penalty. The code is still
+absolutely correct to the word of C++11.
+
+BUG=chromium:682965
+
+See also:
+* https://bugs.gentoo.org/show_bug.cgi?id=600288
+* https://stackoverflow.com/questions/22018115/converting-stdunique-ptrderived-to-stdunique-ptrbase#comment33375875_22018521
+* http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n3833.html#1579
+
+Review-Url: https://codereview.webrtc.org/2642053003
+Cr-Commit-Position: refs/heads/master@{#16175}
+---
+ AUTHORS | 1 +
+ webrtc/modules/desktop_capture/screen_capturer_x11.cc | 2 +-
+ 2 files changed, 2 insertions(+), 1 deletion(-)
+
+--- a/third_party/webrtc/modules/desktop_capture/screen_capturer_x11.cc
++++ b/third_party/webrtc/modules/desktop_capture/screen_capturer_x11.cc
+@@ -412,7 +412,7 @@ std::unique_ptr<DesktopCapturer> DesktopCapturer::CreateRawScreenCapturer(
+ return nullptr;
+ }
+
+- return capturer;
++ return std::move(capturer);
+ }
+
+ } // namespace webrtc
+--
+2.11.0
+
diff --git a/dev-util/electron/files/chromium-FORTIFY_SOURCE.patch b/dev-util/electron/files/chromium-FORTIFY_SOURCE.patch
new file mode 100644
index 000000000000..c6477d690872
--- /dev/null
+++ b/dev-util/electron/files/chromium-FORTIFY_SOURCE.patch
@@ -0,0 +1,27 @@
+Drop _FORTIFY_SOURCE=2 from defines
+
+Gentoo toolchains enable this by default. Removing this prevents spammy
+warnings about the macro being redefined.
+
+--- a/build/config/compiler/BUILD.gn
++++ b/build/config/compiler/BUILD.gn
+@@ -1069,19 +1069,6 @@ config("chromium_code") {
+ "__STDC_FORMAT_MACROS",
+ ]
+
+- if (!is_debug && !using_sanitizer &&
+- (!is_linux || !is_clang || is_official_build)) {
+- # _FORTIFY_SOURCE isn't really supported by Clang now, see
+- # http://llvm.org/bugs/show_bug.cgi?id=16821.
+- # It seems to work fine with Ubuntu 12 headers though, so use it in
+- # official builds.
+- #
+- # Non-chromium code is not guaranteed to compile cleanly with
+- # _FORTIFY_SOURCE. Also, fortified build may fail when optimizations are
+- # disabled, so only do that for Release build.
+- defines += [ "_FORTIFY_SOURCE=2" ]
+- }
+-
+ if (is_mac || is_ios) {
+ cflags_objc = [ "-Wobjc-missing-property-synthesis" ]
+ cflags_objcc = [ "-Wobjc-missing-property-synthesis" ]
diff --git a/dev-util/electron/files/chromium-cups-fix.patch b/dev-util/electron/files/chromium-cups-fix.patch
new file mode 100644
index 000000000000..bbd462a8081e
--- /dev/null
+++ b/dev-util/electron/files/chromium-cups-fix.patch
@@ -0,0 +1,12 @@
+index 8bacfd7..b469a1c 100644
+--- a/printing/backend/print_backend_cups.cc
++++ b/printing/backend/print_backend_cups.cc
+
+@@ -4,6 +4,7 @@
+
+ #include "printing/backend/print_backend_cups.h"
+
++#include <cups/ppd.h>
+ #include <dlfcn.h>
+ #include <errno.h>
+ #include <pthread.h>
diff --git a/dev-util/electron/files/chromium-disable-widevine.patch b/dev-util/electron/files/chromium-disable-widevine.patch
new file mode 100644
index 000000000000..5b166463c88c
--- /dev/null
+++ b/dev-util/electron/files/chromium-disable-widevine.patch
@@ -0,0 +1,9 @@
+--- a/third_party/widevine/cdm/stub/widevine_cdm_version.h
++++ b/third_party/widevine/cdm/stub/widevine_cdm_version.h
+@@ -10,6 +10,5 @@
+
+ #include "third_party/widevine/cdm/widevine_cdm_common.h"
+
+-#define WIDEVINE_CDM_AVAILABLE
+
+ #endif // WIDEVINE_CDM_VERSION_H_
diff --git a/dev-util/electron/files/chromium-ffmpeg-license-r0.patch b/dev-util/electron/files/chromium-ffmpeg-license-r0.patch
new file mode 100644
index 000000000000..8e44cbdbb0ac
--- /dev/null
+++ b/dev-util/electron/files/chromium-ffmpeg-license-r0.patch
@@ -0,0 +1,44 @@
+From 3c9d5afe45bf1c4656b8f630525433f29017cd08 Mon Sep 17 00:00:00 2001
+From: Chris Cunningham <chcunningham@chromium.org>
+Date: Tue, 21 Jun 2016 10:52:45 -0700
+Subject: [PATCH] Avoid ffmpeg licences/credits checking generated autorename_ files.
+
+We generated these renames as a fix for http://crbug.com/495833. The
+generated rename contains no license or credits info and should be
+skipped to avoid confusing license/credits scripts. Care must be
+taken to not also skip the underlying include file from upstream ffmpeg.
+
+Found by: Zoltan Kuscsik
+
+BUG=495833
+
+Change-Id: I3359f4de0281b5f057d4b109ab2a4f31895b5cb1
+---
+
+diff --git a/chromium/scripts/generate_gyp.py b/chromium/scripts/generate_gyp.py
+index c3fd3c0..94c2aad 100755
+--- a/third_party/ffmpeg/chromium/scripts/generate_gyp.py
++++ b/third_party/ffmpeg/chromium/scripts/generate_gyp.py
+@@ -790,6 +790,9 @@
+ # Prefix added to renamed files as part of
+ RENAME_PREFIX = 'autorename'
+
++# Match an absolute path to a generated auotorename_ file.
++RENAME_REGEX = re.compile('.*' + RENAME_PREFIX + '_.+');
++
+ # Content for the rename file. #includes the original file to ensure the two
+ # files stay in sync.
+ RENAME_CONTENT = """// File automatically generated. See crbug.com/495833.
+@@ -1020,6 +1023,12 @@
+ for source in source_set.sources:
+ GetIncludedSources(source, source_dir, sources_to_check)
+
++ # Remove autorename_ files now that we've grabbed their underlying includes.
++ # We generated autorename_ files above and should not consider them for
++ # licensing or credits.
++ sources_to_check = filter(lambda s: not RENAME_REGEX.search(s),
++ sources_to_check)
++
+ if not CheckLicensesForStaticLinking(sources_to_check, source_dir,
+ options.print_licenses):
+ exit('GENERATE FAILED: invalid licenses detected.')
diff --git a/dev-util/electron/files/chromium-glibc-2.24.patch b/dev-util/electron/files/chromium-glibc-2.24.patch
new file mode 100644
index 000000000000..f7bfd816433f
--- /dev/null
+++ b/dev-util/electron/files/chromium-glibc-2.24.patch
@@ -0,0 +1,15 @@
+--- a/third_party/WebKit/Source/wtf/allocator/PageAllocator.cpp.orig 2017-01-05 20:50:56.329369189 +0000
++++ b/third_party/WebKit/Source/wtf/allocator/PageAllocator.cpp 2017-01-05 20:51:32.926099779 +0000
+@@ -242,6 +242,12 @@
+ ASSERT(!(len & kSystemPageOffsetMask));
+ #if OS(POSIX)
+ int ret = madvise(addr, len, MADV_FREE);
++ if (ret != 0 && errno == EINVAL) {
++ // MADV_FREE only works on Linux 4.5+ . If request failed,
++ // retry with older MADV_DONTNEED . Note that MADV_FREE
++ // being defined at compile time doesn't imply runtime support.
++ ret = madvise(addr, len, MADV_DONTNEED);
++ }
+ RELEASE_ASSERT(!ret);
+ #else
+ setSystemPagesInaccessible(addr, len);
diff --git a/dev-util/electron/files/chromium-icu-58-r0.patch b/dev-util/electron/files/chromium-icu-58-r0.patch
new file mode 100644
index 000000000000..ca402f6e4a89
--- /dev/null
+++ b/dev-util/electron/files/chromium-icu-58-r0.patch
@@ -0,0 +1,51 @@
+--- a/third_party/WebKit/Source/platform/text/TextBreakIterator.cpp.orig 2016-11-11 13:21:19.747054059 -0500
++++ b/third_party/WebKit/Source/platform/text/TextBreakIterator.cpp 2016-11-11 13:24:34.474939062 -0500
+@@ -26,6 +26,9 @@
+ #include "wtf/StdLibExtras.h"
+ #include "wtf/text/CharacterNames.h"
+
++#include <unicode/uchar.h>
++#include <unicode/uvernum.h>
++
+ namespace blink {
+
+ unsigned numGraphemeClusters(const String& string)
+@@ -122,13 +125,19 @@
+ { B(0, 0, 0, 0, 0, 0, 0, 0), B(0, 0, 0, 0, 0, 0, 0, 0), 0, B(0, 0, 0, 0, 0, 0, 0, 0), 0, 0, 0, B(0, 0, 0, 0, 0, 0, 0, 0), 0, 0, 0, B(0, 0, 0, 0, 0, 0, 0, 0) }, // DEL
+ };
+
++#if U_ICU_VERSION_MAJOR_NUM >= 58
++#define BA_LB_COUNT (U_LB_COUNT - 3)
++#else
++#define BA_LB_COUNT U_LB_COUNT
++#endif
++
+ // Line breaking table for CSS word-break: break-all. This table differs from
+ // asciiLineBreakTable in:
+ // - Indices are Line Breaking Classes defined in UAX#14 Unicode Line Breaking
+ // Algorithm: http://unicode.org/reports/tr14/#DescriptionOfProperties
+ // - 1 indicates additional break opportunities. 0 indicates to fallback to
+ // normal line break, not "prohibit break."
+-static const unsigned char breakAllLineBreakClassTable[][U_LB_COUNT / 8 + 1] = {
++static const unsigned char breakAllLineBreakClassTable[][BA_LB_COUNT / 8 + 1] = {
+ // XX AI AL B2 BA BB BK CB CL CM CR EX GL HY ID IN IS LF NS NU OP PO PR QU SA SG SP SY ZW NL WJ H2 H3 JL JT JV CP CJ HL RI
+ { B(0, 0, 0, 0, 0, 0, 0, 0), B(0, 0, 0, 0, 0, 0, 0, 0), B(0, 0, 0, 0, 0, 0, 0, 0), B(0, 0, 0, 0, 0, 0, 0, 0), B(0, 0, 0, 0, 0, 0, 0, 0) }, // XX
+ { B(0, 1, 1, 0, 1, 0, 0, 0), B(0, 0, 0, 0, 0, 1, 0, 0), B(0, 0, 0, 1, 1, 0, 1, 0), B(1, 0, 0, 0, 0, 0, 0, 0), B(0, 0, 0, 0, 0, 0, 1, 0) }, // AI
+@@ -178,7 +187,7 @@
+ #undef AL
+
+ static_assert(WTF_ARRAY_LENGTH(asciiLineBreakTable) == asciiLineBreakTableLastChar - asciiLineBreakTableFirstChar + 1, "asciiLineBreakTable should be consistent");
+-static_assert(WTF_ARRAY_LENGTH(breakAllLineBreakClassTable) == U_LB_COUNT, "breakAllLineBreakClassTable should be consistent");
++static_assert(WTF_ARRAY_LENGTH(breakAllLineBreakClassTable) == BA_LB_COUNT, "breakAllLineBreakClassTable should be consistent");
+
+ static inline bool shouldBreakAfter(UChar lastCh, UChar ch, UChar nextCh)
+ {
+@@ -209,7 +218,7 @@
+
+ static inline bool shouldBreakAfterBreakAll(ULineBreak lastLineBreak, ULineBreak lineBreak)
+ {
+- if (lineBreak >= 0 && lineBreak < U_LB_COUNT && lastLineBreak >= 0 && lastLineBreak < U_LB_COUNT) {
++ if (lineBreak >= 0 && lineBreak < BA_LB_COUNT && lastLineBreak >= 0 && lastLineBreak < BA_LB_COUNT) {
+ const unsigned char* tableRow = breakAllLineBreakClassTable[lastLineBreak];
+ return tableRow[lineBreak / 8] & (1 << (lineBreak % 8));
+ }
diff --git a/dev-util/electron/files/chromium-icu-58-r1.patch b/dev-util/electron/files/chromium-icu-58-r1.patch
new file mode 100644
index 000000000000..9e6e5fd72d70
--- /dev/null
+++ b/dev-util/electron/files/chromium-icu-58-r1.patch
@@ -0,0 +1,128 @@
+From 424584b4984bde7c831f42e9fb47f1ad583a1c46 Mon Sep 17 00:00:00 2001
+From: jshin <jshin@chromium.org>
+Date: Fri, 21 Oct 2016 01:15:50 -0700
+Subject: [PATCH] Update aspirational_scripts per Unicode 9
+
+This is a preparation to update ICU to 58.1.
+Without this change, ICU update CL cannot be tested on
+trybots because a compile will fail due to '#error' checking
+if ICU version is less than 58.
+
+BUG=637001
+TEST=None
+TBR=pkasting@chromium.org
+
+Review-Url: https://chromiumcodereview.appspot.com/2436113003
+Cr-Commit-Position: refs/heads/master@{#426749}
+---
+ components/url_formatter/url_formatter.cc | 10 +++++-----
+ 1 file changed, 5 insertions(+), 5 deletions(-)
+
+diff --git a/components/url_formatter/url_formatter.cc b/components/url_formatter/url_formatter.cc
+index 4455db3..2b82c0c 100644
+--- a/components/url_formatter/url_formatter.cc
++++ b/components/url_formatter/url_formatter.cc
+@@ -431,7 +431,7 @@
+ // are added to the allowed set. The list has to be updated when a new
+ // version of Unicode is released. The current version is 8.0.0 and ICU 58
+ // will have Unicode 9.0 data.
+-#if U_ICU_VERSION_MAJOR_NUM < 58
++#if U_ICU_VERSION_MAJOR_NUM < 60
+ const icu::UnicodeSet aspirational_scripts(
+ icu::UnicodeString(
+ // Unified Canadian Syllabics
+@@ -445,13 +445,13 @@
+ // Yi
+ "\\uA000-\\uA48C"
+ // Miao
+- "\\U00016F00-\\U00016F44\\U00016F50-\\U00016F7F"
++ "\\U00016F00-\\U00016F44\\U00016F50-\\U00016F7E"
+ "\\U00016F8F-\\U00016F9F]",
+ -1, US_INV),
+ *status);
+ allowed_set.addAll(aspirational_scripts);
+ #else
+-#error "Update aspirational_scripts per Unicode 9.0"
++#error "Update aspirational_scripts per Unicode 10.0"
+ #endif
+
+ // U+0338 is included in the recommended set, while U+05F4 and U+2027 are in
+--
+2.10.2
+
+From e60b571faa3f14dd9119a6792dccf12f8bf80192 Mon Sep 17 00:00:00 2001
+From: jshin <jshin@chromium.org>
+Date: Fri, 21 Oct 2016 12:20:05 -0700
+Subject: [PATCH] Prepare to upgrade ICU to 58 part 2
+
+U_LB_COUNT is assumed to be 40 in Blink line breaking code, but it's
+43 in ICU 58/Unicode 9.
+
+Three new classes (Emoji Base, Emoji Modifier, and ZWJ) should behave
+identically whether or not 'word-break: break-all' is in effect.
+
+BUG=637001
+TEST=TextBreakIterator.cpp is compiled without an error with ICU 58.
+R=kojii@chromium.org
+CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel
+
+Review-Url: https://chromiumcodereview.appspot.com/2440923002
+Cr-Commit-Position: refs/heads/master@{#426860}
+---
+ .../WebKit/Source/platform/text/TextBreakIterator.cpp | 16 ++++++++++++----
+ 1 file changed, 12 insertions(+), 4 deletions(-)
+
+diff --git a/third_party/WebKit/Source/platform/text/TextBreakIterator.cpp b/third_party/WebKit/Source/platform/text/TextBreakIterator.cpp
+index 568dc0a..36121eb 100644
+--- a/third_party/WebKit/Source/platform/text/TextBreakIterator.cpp
++++ b/third_party/WebKit/Source/platform/text/TextBreakIterator.cpp
+@@ -27,6 +27,9 @@
+ #include "wtf/StdLibExtras.h"
+ #include "wtf/text/CharacterNames.h"
+
++#include <unicode/uchar.h>
++#include <unicode/uvernum.h>
++
+ namespace blink {
+
+ unsigned numGraphemeClusters(const String& string)
+@@ -123,13 +126,18 @@
+ { B(0, 0, 0, 0, 0, 0, 0, 0), B(0, 0, 0, 0, 0, 0, 0, 0), 0, B(0, 0, 0, 0, 0, 0, 0, 0), 0, 0, 0, B(0, 0, 0, 0, 0, 0, 0, 0), 0, 0, 0, B(0, 0, 0, 0, 0, 0, 0, 0) }, // DEL
+ };
+
++#if U_ICU_VERSION_MAJOR_NUM >= 58
++#define BA_LB_COUNT (U_LB_COUNT - 3)
++#else
++#define BA_LB_COUNT U_LB_COUNT
++#endif
+ // Line breaking table for CSS word-break: break-all. This table differs from
+ // asciiLineBreakTable in:
+ // - Indices are Line Breaking Classes defined in UAX#14 Unicode Line Breaking
+ // Algorithm: http://unicode.org/reports/tr14/#DescriptionOfProperties
+ // - 1 indicates additional break opportunities. 0 indicates to fallback to
+ // normal line break, not "prohibit break."
+-static const unsigned char breakAllLineBreakClassTable[][U_LB_COUNT / 8 + 1] = {
++static const unsigned char breakAllLineBreakClassTable[][BA_LB_COUNT / 8 + 1] = {
+ // XX AI AL B2 BA BB BK CB CL CM CR EX GL HY ID IN IS LF NS NU OP PO PR QU SA SG SP SY ZW NL WJ H2 H3 JL JT JV CP CJ HL RI
+ { B(0, 0, 0, 0, 0, 0, 0, 0), B(0, 0, 0, 0, 0, 0, 0, 0), B(0, 0, 0, 0, 0, 0, 0, 0), B(0, 0, 0, 0, 0, 0, 0, 0), B(0, 0, 0, 0, 0, 0, 0, 0) }, // XX
+ { B(0, 1, 1, 0, 1, 0, 0, 0), B(0, 0, 0, 0, 0, 1, 0, 0), B(0, 0, 0, 1, 1, 0, 1, 0), B(1, 0, 0, 0, 0, 0, 0, 0), B(0, 0, 0, 0, 0, 0, 1, 0) }, // AI
+@@ -179,7 +187,7 @@
+ #undef AL
+
+ static_assert(WTF_ARRAY_LENGTH(asciiLineBreakTable) == asciiLineBreakTableLastChar - asciiLineBreakTableFirstChar + 1, "asciiLineBreakTable should be consistent");
+-static_assert(WTF_ARRAY_LENGTH(breakAllLineBreakClassTable) == U_LB_COUNT, "breakAllLineBreakClassTable should be consistent");
++static_assert(WTF_ARRAY_LENGTH(breakAllLineBreakClassTable) == BA_LB_COUNT, "breakAllLineBreakClassTable should be consistent");
+
+ static inline bool shouldBreakAfter(UChar lastCh, UChar ch, UChar nextCh)
+ {
+@@ -210,7 +218,7 @@
+
+ static inline bool shouldBreakAfterBreakAll(ULineBreak lastLineBreak, ULineBreak lineBreak)
+ {
+- if (lineBreak >= 0 && lineBreak < U_LB_COUNT && lastLineBreak >= 0 && lastLineBreak < U_LB_COUNT) {
++ if (lineBreak >= 0 && lineBreak < BA_LB_COUNT && lastLineBreak >= 0 && lastLineBreak < BA_LB_COUNT) {
+ const unsigned char* tableRow = breakAllLineBreakClassTable[lastLineBreak];
+ return tableRow[lineBreak / 8] & (1 << (lineBreak % 8));
+ }
+--
+2.10.2
diff --git a/dev-util/electron/files/chromium-jinja-fix.patch b/dev-util/electron/files/chromium-jinja-fix.patch
new file mode 100644
index 000000000000..83ac33be31b6
--- /dev/null
+++ b/dev-util/electron/files/chromium-jinja-fix.patch
@@ -0,0 +1,24 @@
+--- a/third_party/WebKit/Source/platform/v8_inspector/v8_inspector.gyp
+--- b/third_party/WebKit/Source/platform/v8_inspector/v8_inspector.gyp
+@@ -53,21 +53,10 @@
+ 'type': 'none',
+ 'dependencies': ['protocol_version'],
+ 'variables': {
+- 'conditions': [
+- ['debug_devtools=="node"', {
+- # Node build
+- 'jinja_module_files': [
+- '../../deps/jinja2/jinja2/__init__.py',
+- '../../deps/markupsafe/markupsafe/__init__.py', # jinja2 dep
+- ],
+- }, {
+ 'jinja_module_files': [
+ '<(DEPTH)/third_party/jinja2/__init__.py',
+ '<(DEPTH)/third_party/markupsafe/__init__.py', # jinja2 dep
+ ],
+- }
+- ],
+- ],
+ },
+ 'actions': [
+ {
diff --git a/dev-util/electron/files/chromium-last-commit-position-r0.patch b/dev-util/electron/files/chromium-last-commit-position-r0.patch
new file mode 100644
index 000000000000..344ed4c7deb7
--- /dev/null
+++ b/dev-util/electron/files/chromium-last-commit-position-r0.patch
@@ -0,0 +1,26 @@
+--- tools/gn/gn_main.cc.orig 2015-11-12 11:49:56.260549036 +0000
++++ tools/gn/gn_main.cc 2015-11-12 11:50:14.780931485 +0000
+@@ -11,13 +11,7 @@
+ #include "tools/gn/standard_out.h"
+ #include "tools/gn/switches.h"
+
+-// Only the GN-generated build makes this header for now.
+-// TODO(brettw) consider adding this if we need it in GYP.
+-#if defined(GN_BUILD)
+-#include "tools/gn/last_commit_position.h"
+-#else
+ #define LAST_COMMIT_POSITION "UNKNOWN"
+-#endif
+
+ namespace {
+
+--- tools/gn/BUILD.gn.orig 2015-11-12 11:50:43.513524769 +0000
++++ tools/gn/BUILD.gn 2015-11-12 11:50:57.697817632 +0000
+@@ -227,7 +227,6 @@
+
+ deps = [
+ ":gn_lib",
+- ":last_commit_position",
+ "//base",
+ "//build/config/sanitizers:deps",
+ ]
diff --git a/dev-util/electron/files/chromium-linker-warnings-r0.patch b/dev-util/electron/files/chromium-linker-warnings-r0.patch
new file mode 100644
index 000000000000..97d5e1670bdb
--- /dev/null
+++ b/dev-util/electron/files/chromium-linker-warnings-r0.patch
@@ -0,0 +1,18 @@
+--- build/config/compiler/BUILD.gn.orig 2016-05-30 13:50:15.341749039 +0000
++++ build/config/compiler/BUILD.gn 2016-05-30 13:50:30.502061407 +0000
+@@ -203,15 +203,6 @@
+ cflags += [ "-fstack-protector" ]
+ }
+ }
+-
+- # Linker warnings.
+- if (!(is_chromeos && current_cpu == "arm") &&
+- !(is_android && use_order_profiling) && !is_mac && !is_ios) {
+- # TODO(jochen): Enable this on chromeos on arm. http://crbug.com/356580
+- # TODO(lizeb,pasko): Fix link errors when linking with order_profiling=1
+- # crbug.com/485542
+- ldflags += [ "-Wl,--fatal-warnings" ]
+- }
+ }
+
+ if (is_clang && is_debug) {
diff --git a/dev-util/electron/files/chromium-lto-fixes-r1.patch b/dev-util/electron/files/chromium-lto-fixes-r1.patch
new file mode 100644
index 000000000000..b8bd8558b520
--- /dev/null
+++ b/dev-util/electron/files/chromium-lto-fixes-r1.patch
@@ -0,0 +1,36 @@
+diff --git a/build/common.gypi.orig b/build/common.gypi
+index cce7b3c..3b905c0 100644
+--- a/build/common.gypi.orig
++++ b/build/common.gypi
+@@ -6096,7 +6096,7 @@
+ 'target_conditions': [
+ ['_toolset=="target"', {
+ 'ldflags': [
+- '-flto=32',
++ '-flto=4'
+ ],
+ }],
+ ],
+@@ -6248,7 +6248,7 @@
+ },
+ }],
+ # TODO(pcc): Make these flags work correctly with CFI.
+- ['use_lto!=0 and cfi_vptr==0', {
++ ['use_lto!=0 and cfi_vptr==0 and clang==1', {
+ 'target_defaults': {
+ 'target_conditions': [
+ ['_toolset=="target"', {
+
+diff --git a/build/android/disable_gcc_lto.gypi.orig b/build/android/disable_gcc_lto.gypi
+index a733c7a..57570f8 100644
+--- a/build/android/disable_gcc_lto.gypi.orig
++++ b/build/android/disable_gcc_lto.gypi
+@@ -8,7 +8,7 @@
+ 'target_conditions': [
+ ['_toolset=="target"', {
+ 'conditions': [
+- ['OS=="android" and clang==0 and (use_lto==1 or use_lto_o2==1)', {
++ ['(OS=="android" or OS=="linux") and clang==0 and (use_lto==1 or use_lto_o2==1)', {
+ 'cflags!': [
+ '-flto',
+ '-ffat-lto-objects',
diff --git a/dev-util/electron/files/chromium-lto-fixes-r3.patch b/dev-util/electron/files/chromium-lto-fixes-r3.patch
new file mode 100644
index 000000000000..10493e6fd388
--- /dev/null
+++ b/dev-util/electron/files/chromium-lto-fixes-r3.patch
@@ -0,0 +1,108 @@
+From 2f2028a19fd12477fcd9050ea354174f33b68b46 Mon Sep 17 00:00:00 2001
+From: Elvis Pranskevichus <elvis@magic.io>
+Date: Mon, 21 Aug 2017 10:16:44 -0400
+Subject: [PATCH] LTO fixes
+
+---
+ build/config/compiler/BUILD.gn | 35 +++++++++++++++++++++++++----------
+ build/config/posix/BUILD.gn | 2 +-
+ build/toolchain/gcc_ar_wrapper.py | 12 +++++++++++-
+ 3 files changed, 37 insertions(+), 12 deletions(-)
+
+diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
+index d0510b8..583f186 100644
+--- a/build/config/compiler/BUILD.gn
++++ b/build/config/compiler/BUILD.gn
+@@ -448,20 +448,35 @@ config("compiler") {
+ } else {
+ # Note: ThinLTO does not currently have this feature implemented
+ # For Full LTO, it provides a measurable runtime speedup of Chrome.
+- cflags += [
+- "-flto",
+- "-fwhole-program-vtables",
+- ]
+- ldflags += [
+- "-flto",
+- "-fwhole-program-vtables",
+- ]
++ if (is_clang) {
++ cflags += [
++ "-flto",
++ "-fwhole-program-vtables"
++ ]
++ ldflags += [
++ "-flto",
++ "-fwhole-program-vtables"
++ ]
++ } else {
++ cflags += [
++ "-flto=4",
++ "-fno-fat-lto-objects",
++ "-fuse-linker-plugin",
++ "--param=lto-partitions=1",
++ ]
++ ldflags += [
++ "-flto=4",
++ "-fno-fat-lto-objects",
++ "-fuse-linker-plugin",
++ "--param=lto-partitions=1",
++ ]
++ }
+
+ # Apply a lower LTO optimization level as the default is too slow.
+ if (is_linux) {
+ if (use_lld) {
+ ldflags += [ "-Wl,--lto-O1" ]
+- } else {
++ } else if (is_clang) {
+ ldflags += [ "-Wl,-plugin-opt,O1" ]
+ }
+ } else if (is_mac) {
+@@ -478,7 +493,7 @@ config("compiler") {
+ # targeting ARM, without this flag, LTO produces a .text section that is
+ # larger than the maximum call displacement, preventing the linker from
+ # relocating calls (http://llvm.org/PR22999).
+- if (is_linux) {
++ if (is_linux && is_clang) {
+ ldflags += [ "-Wl,-plugin-opt,-function-sections" ]
+ }
+ }
+diff --git a/build/config/posix/BUILD.gn b/build/config/posix/BUILD.gn
+index d7e917a..fc68864 100644
+--- a/build/config/posix/BUILD.gn
++++ b/build/config/posix/BUILD.gn
+@@ -21,7 +21,7 @@ config("compiler") {
+ if ((allow_posix_link_time_opt || is_cfi) && !is_nacl) {
+ arflags = [
+ "--plugin",
+- rebase_path("$clang_base_path/lib/LLVMgold.so", root_build_dir),
++ "auto"
+ ]
+ }
+ }
+diff --git a/build/toolchain/gcc_ar_wrapper.py b/build/toolchain/gcc_ar_wrapper.py
+index de53df0..39c7b56 100755
+--- a/build/toolchain/gcc_ar_wrapper.py
++++ b/build/toolchain/gcc_ar_wrapper.py
+@@ -47,7 +47,17 @@ def main():
+
+ command = [args.ar, args.operation]
+ if args.plugin is not None:
+- command += ['--plugin', args.plugin]
++ if args.plugin == 'auto':
++ gcc = os.environ.get('CC', '/usr/bin/cc')
++ gcc_ver = subprocess.check_output([gcc, '-dumpversion'],
++ universal_newlines=True)
++ gcc_ver = gcc_ver.strip(' \n')
++ plugin = '/usr/libexec/gcc/x86_64-pc-linux-gnu/{}/liblto_plugin.so'. \
++ format(gcc_ver)
++ else:
++ plugin = args.plugin
++
++ command += ['--plugin', plugin]
+ command.append(args.output)
+ command += args.inputs
+
+--
+2.14.1
+
diff --git a/dev-util/electron/files/chromium-lto-fixes.patch b/dev-util/electron/files/chromium-lto-fixes.patch
new file mode 100644
index 000000000000..7de3df1b26f6
--- /dev/null
+++ b/dev-util/electron/files/chromium-lto-fixes.patch
@@ -0,0 +1,26 @@
+diff --git a/build/common.gypi.orig b/build/common.gypi
+index cce7b3c..3b905c0 100644
+--- a/build/common.gypi.orig
++++ b/build/common.gypi
+@@ -6096,7 +6096,7 @@
+ 'target_conditions': [
+ ['_toolset=="target"', {
+ 'ldflags': [
+- '-flto=32',
++ '-flto=4'
+ ],
+ }],
+ ],
+diff --git a/build/android/disable_gcc_lto.gypi.orig b/build/android/disable_gcc_lto.gypi
+index a733c7a..57570f8 100644
+--- a/build/android/disable_gcc_lto.gypi.orig
++++ b/build/android/disable_gcc_lto.gypi
+@@ -8,7 +8,7 @@
+ 'target_conditions': [
+ ['_toolset=="target"', {
+ 'conditions': [
+- ['OS=="android" and clang==0 and (use_lto==1 or use_lto_o2==1)', {
++ ['(OS=="android" or OS=="linux") and clang==0 and (use_lto==1 or use_lto_o2==1)', {
+ 'cflags!': [
+ '-flto',
+ '-ffat-lto-objects',
diff --git a/dev-util/electron/files/chromium-pdfium-r0.patch b/dev-util/electron/files/chromium-pdfium-r0.patch
new file mode 100644
index 000000000000..2ba268467ef8
--- /dev/null
+++ b/dev-util/electron/files/chromium-pdfium-r0.patch
@@ -0,0 +1,17 @@
+--- third_party/pdfium/xfa/fxbarcode/utils.h.orig 2016-05-30 10:24:54.071773744 +0000
++++ third_party/pdfium/xfa/fxbarcode/utils.h 2016-05-30 10:25:15.808219373 +0000
+@@ -26,12 +26,10 @@
+ #endif
+ #if (_FX_OS_ == _FX_WIN32_DESKTOP_ || _FX_OS_ == _FX_WIN64_)
+ #define FXSYS_isnan(x) _isnan(x)
+-#elif(_FX_OS_ == _FX_MACOSX_ || _FX_OS_ == _FX_IOS_)
++#elif(_FX_OS_ == _FX_MACOSX_ || _FX_OS_ == _FX_IOS_ || \
++ _FX_OS_ == _FX_LINUX_DESKTOP_ || _FX_OS_ == _FX_ANDROID_)
+ #include <cmath>
+ #define FXSYS_isnan(x) std::isnan(x)
+-#elif(_FX_OS_ == _FX_LINUX_DESKTOP_ || _FX_OS_ == _FX_ANDROID_)
+-#include <math.h>
+-#define FXSYS_isnan(x) isnan(x)
+ #endif
+ #if (_FX_OS_ == _FX_WIN32_DESKTOP_ || _FX_OS_ == _FX_WIN64_)
+ #define FXSYS_nan() (std::numeric_limits<float>::quiet_NaN())
diff --git a/dev-util/electron/files/chromium-remove-gardiner-mod-font-r1.patch b/dev-util/electron/files/chromium-remove-gardiner-mod-font-r1.patch
new file mode 100644
index 000000000000..f59549094107
--- /dev/null
+++ b/dev-util/electron/files/chromium-remove-gardiner-mod-font-r1.patch
@@ -0,0 +1,13 @@
+diff --git a/components/test_runner/BUILD.gn~ b/components/test_runner/BUILD.gn
+index 3ac8955..6a968cb 100644
+--- a/components/test_runner/BUILD.gn~
++++ b/components/test_runner/BUILD.gn
+@@ -155,8 +155,6 @@ if (use_x11) {
+ copy("copy_x11_fonts") {
+ visibility = [ ":*" ]
+ sources = [
+- "//third_party/gardiner_mod/GardinerModBug.ttf",
+- "//third_party/gardiner_mod/GardinerModCat.ttf",
+ "resources/fonts/fonts.conf",
+ ]
+ outputs = [
diff --git a/dev-util/electron/files/chromium-remove-gardiner-mod-font.patch b/dev-util/electron/files/chromium-remove-gardiner-mod-font.patch
new file mode 100644
index 000000000000..cf1955ffbfd2
--- /dev/null
+++ b/dev-util/electron/files/chromium-remove-gardiner-mod-font.patch
@@ -0,0 +1,13 @@
+diff --git a/test_runner.gyp b/test_runner.gyp
+index 30ffa75..8838bdf 100644
+--- a/components/test_runner/test_runner.gyp
++++ b/components/test_runner/test_runner.gyp
+@@ -162,8 +162,6 @@
+ 'files': [
+ 'resources/fonts/AHEM____.TTF',
+ 'resources/fonts/fonts.conf',
+- '../../third_party/gardiner_mod/GardinerModBug.ttf',
+- '../../third_party/gardiner_mod/GardinerModCat.ttf',
+ ]
+ }],
+ }],
diff --git a/dev-util/electron/files/chromium-shared-v8-r1.patch b/dev-util/electron/files/chromium-shared-v8-r1.patch
new file mode 100644
index 000000000000..eb4d998d9b03
--- /dev/null
+++ b/dev-util/electron/files/chromium-shared-v8-r1.patch
@@ -0,0 +1,15 @@
+diff --git a/v8/src/v8.gyp.orig b/v8/src/v8.gyp
+index bcb5801..3162456 100644
+--- a/v8/src/v8.gyp.orig
++++ b/v8/src/v8.gyp
+@@ -48,8 +48,8 @@
+ }, {
+ 'toolsets': ['target'],
+ }],
+- ['component=="shared_library"', {
+- 'type': '<(component)',
++ ['v8_target_type=="shared_library"', {
++ 'type': 'shared_library',
+ 'sources': [
+ # Note: on non-Windows we still build this file so that gyp
+ # has some sources to link into the component.
diff --git a/dev-util/electron/files/chromium-shared-v8-r2.patch b/dev-util/electron/files/chromium-shared-v8-r2.patch
new file mode 100644
index 000000000000..475da8193a92
--- /dev/null
+++ b/dev-util/electron/files/chromium-shared-v8-r2.patch
@@ -0,0 +1,79 @@
+diff --git a/v8/BUILD.gn.orig b/v8/BUILD.gn
+index 8587356..4365e03 100644
+--- a/v8/BUILD.gn
++++ b/v8/BUILD.gn
+@@ -113,7 +113,7 @@ config("internal_config") {
+
+ include_dirs = [ "." ]
+
+- if (is_component_build) {
++ if (is_component_build || is_electron_build) {
+ defines = [ "BUILDING_V8_SHARED" ]
+ }
+ }
+@@ -127,14 +127,14 @@ config("internal_config_base") {
+ # This config should be applied to code using the libplatform.
+ config("libplatform_config") {
+ include_dirs = [ "include" ]
+- if (is_component_build) {
++ if (is_component_build || is_electron_build) {
+ defines = [ "USING_V8_PLATFORM_SHARED" ]
+ }
+ }
+
+ # This config should be applied to code using the libbase.
+ config("libbase_config") {
+- if (is_component_build) {
++ if (is_component_build || is_electron_build) {
+ defines = [ "USING_V8_BASE_SHARED" ]
+ }
+ libs = []
+@@ -151,7 +151,7 @@ config("libsampler_config") {
+ # This config should only be applied to code using V8 and not any V8 code
+ # itself.
+ config("external_config") {
+- if (is_component_build) {
++ if (is_component_build || is_electron_build) {
+ defines = [ "USING_V8_SHARED" ]
+ }
+ include_dirs = [ "include" ]
+@@ -2265,7 +2265,7 @@ v8_component("v8_libbase") {
+
+ defines = []
+
+- if (is_component_build) {
++ if (is_component_build || is_electron_build) {
+ defines = [ "BUILDING_V8_BASE_SHARED" ]
+ }
+
+@@ -2355,7 +2355,7 @@ v8_component("v8_libplatform") {
+
+ configs = [ ":internal_config_base" ]
+
+- if (is_component_build) {
++ if (is_component_build || is_electron_build) {
+ defines = [ "BUILDING_V8_PLATFORM_SHARED" ]
+ }
+
+@@ -2498,7 +2498,7 @@ group("gn_all") {
+ }
+ }
+
+-if (is_component_build) {
++if (is_component_build || is_electron_build) {
+ v8_component("v8") {
+ sources = [
+ "src/v8dll-main.cc",
+diff --git a/v8/src/inspector/BUILD.gn b/v8/src/inspector/BUILD.gn
+index 6ebb91c..b6a2489 100644
+--- a/v8/src/inspector/BUILD.gn
++++ b/v8/src/inspector/BUILD.gn
+@@ -106,7 +106,7 @@ config("inspector_config") {
+ "/wd4996", # Deprecated function call.
+ ]
+ }
+- if (is_component_build) {
++ if (is_component_build || is_electron_build) {
+ defines = [ "BUILDING_V8_SHARED" ]
+ }
+ }
diff --git a/dev-util/electron/files/chromium-shared-v8.patch b/dev-util/electron/files/chromium-shared-v8.patch
new file mode 100644
index 000000000000..67d97c8b3974
--- /dev/null
+++ b/dev-util/electron/files/chromium-shared-v8.patch
@@ -0,0 +1,15 @@
+diff --git a/v8/tools/gyp/v8.gyp.orig b/v8/tools/gyp/v8.gyp
+index bcb5801..3162456 100644
+--- a/v8/tools/gyp/v8.gyp.orig
++++ b/v8/tools/gyp/v8.gyp
+@@ -48,8 +48,8 @@
+ }, {
+ 'toolsets': ['target'],
+ }],
+- ['component=="shared_library"', {
+- 'type': '<(component)',
++ ['v8_target_type=="shared_library"', {
++ 'type': 'shared_library',
+ 'sources': [
+ # Note: on non-Windows we still build this file so that gyp
+ # has some sources to link into the component.
diff --git a/dev-util/electron/files/chromium-snapshot-toolchain-r1.patch b/dev-util/electron/files/chromium-snapshot-toolchain-r1.patch
new file mode 100644
index 000000000000..56f35b303077
--- /dev/null
+++ b/dev-util/electron/files/chromium-snapshot-toolchain-r1.patch
@@ -0,0 +1,23 @@
+--- v8/snapshot_toolchain.gni.orig 2016-01-07 15:47:46.772435180 +0000
++++ v8/snapshot_toolchain.gni 2016-01-07 15:48:06.144841801 +0000
+@@ -28,19 +28,4 @@
+ # The snapshot needs to be compiled for the host, but compiled with
+ # a toolchain that matches the bit-width of the target.
+
+-# TODO(GYP): For now we only support 32-bit little-endian target builds from an
+-# x64 Linux host. Eventually we need to support all of the host/target
+-# configurations v8 runs on.
+-if (host_cpu == "x64" && host_os == "linux") {
+- if (target_cpu == "arm" || target_cpu == "mipsel" || target_cpu == "x86") {
+- snapshot_toolchain = "//build/toolchain/linux:clang_x86"
+- } else if (target_cpu == "x64" || target_cpu == "arm64" || target_cpu == "mips64el") {
+- snapshot_toolchain = "//build/toolchain/linux:clang_x64"
+- } else {
+- assert(false, "Need environment for this arch: $target_cpu")
+- }
+-} else {
+- snapshot_toolchain = default_toolchain
+-}
+-
+-
++snapshot_toolchain = default_toolchain
diff --git a/dev-util/electron/files/chromium-system-ffmpeg-r0.patch b/dev-util/electron/files/chromium-system-ffmpeg-r0.patch
new file mode 100644
index 000000000000..667e0ecb2a72
--- /dev/null
+++ b/dev-util/electron/files/chromium-system-ffmpeg-r0.patch
@@ -0,0 +1,54 @@
+diff --git a/media/ffmpeg/ffmpeg_common.h b/media/ffmpeg/ffmpeg_common.h
+index 677bd76..23a21f8 100644
+--- a/media/ffmpeg/ffmpeg_common.h
++++ b/media/ffmpeg/ffmpeg_common.h
+@@ -19,20 +19,12 @@
+
+ // Include FFmpeg header files.
+ extern "C" {
+-// Disable deprecated features which result in spammy compile warnings. This
+-// list of defines must mirror those in the 'defines' section of the ffmpeg.gyp
+-// file or the headers below will generate different structures.
+-#define FF_API_PIX_FMT_DESC 0
+-#define FF_API_OLD_DECODE_AUDIO 0
+-#define FF_API_DESTRUCT_PACKET 0
+-#define FF_API_GET_BUFFER 0
+
+ // Temporarily disable possible loss of data warning.
+ // TODO(scherkus): fix and upstream the compiler warnings.
+ MSVC_PUSH_DISABLE_WARNING(4244);
+ #include <libavcodec/avcodec.h>
+ #include <libavformat/avformat.h>
+-#include <libavformat/internal.h>
+ #include <libavformat/avio.h>
+ #include <libavutil/avutil.h>
+ #include <libavutil/imgutils.h>
+diff --git a/media/filters/ffmpeg_demuxer.cc b/media/filters/ffmpeg_demuxer.cc
+index 155e980..7ba327a 100644
+--- a/media/filters/ffmpeg_demuxer.cc
++++ b/media/filters/ffmpeg_demuxer.cc
+@@ -966,24 +966,6 @@ void FFmpegDemuxer::OnFindStreamInfoDone(const PipelineStatusCB& status_cb,
+ // If no estimate is found, the stream entry will be kInfiniteDuration().
+ std::vector<base::TimeDelta> start_time_estimates(format_context->nb_streams,
+ kInfiniteDuration());
+- const AVFormatInternal* internal = format_context->internal;
+- if (internal && internal->packet_buffer &&
+- format_context->start_time != static_cast<int64>(AV_NOPTS_VALUE)) {
+- struct AVPacketList* packet_buffer = internal->packet_buffer;
+- while (packet_buffer != internal->packet_buffer_end) {
+- DCHECK_LT(static_cast<size_t>(packet_buffer->pkt.stream_index),
+- start_time_estimates.size());
+- const AVStream* stream =
+- format_context->streams[packet_buffer->pkt.stream_index];
+- if (packet_buffer->pkt.pts != static_cast<int64>(AV_NOPTS_VALUE)) {
+- const base::TimeDelta packet_pts =
+- ConvertFromTimeBase(stream->time_base, packet_buffer->pkt.pts);
+- if (packet_pts < start_time_estimates[stream->index])
+- start_time_estimates[stream->index] = packet_pts;
+- }
+- packet_buffer = packet_buffer->next;
+- }
+- }
+
+ AVStream* audio_stream = NULL;
+ AudioDecoderConfig audio_config;
diff --git a/dev-util/electron/files/chromium-system-ffmpeg-r2.patch b/dev-util/electron/files/chromium-system-ffmpeg-r2.patch
new file mode 100644
index 000000000000..8d67ef3898df
--- /dev/null
+++ b/dev-util/electron/files/chromium-system-ffmpeg-r2.patch
@@ -0,0 +1,50 @@
+--- a/media/ffmpeg/ffmpeg_common.h 2015-11-27 12:01:56.155462264 +0000
++++ b/media/ffmpeg/ffmpeg_common.h 2015-11-27 12:03:03.348846300 +0000
+@@ -19,10 +19,6 @@
+
+ // Include FFmpeg header files.
+ extern "C" {
+-// Disable deprecated features which result in spammy compile warnings. This
+-// list of defines must mirror those in the 'defines' section of BUILD.gn file &
+-// ffmpeg.gyp file or the headers below will generate different structures!
+-#define FF_API_CONVERGENCE_DURATION 0
+ // Upstream libavcodec/utils.c still uses the deprecated
+ // av_dup_packet(), causing deprecation warnings.
+ // The normal fix for such things is to disable the feature as below,
+@@ -36,7 +32,6 @@
+ MSVC_PUSH_DISABLE_WARNING(4244);
+ #include <libavcodec/avcodec.h>
+ #include <libavformat/avformat.h>
+-#include <libavformat/internal.h>
+ #include <libavformat/avio.h>
+ #include <libavutil/avutil.h>
+ #include <libavutil/imgutils.h>
+diff --git a/media/filters/ffmpeg_demuxer.cc b/media/filters/ffmpeg_demuxer.cc
+index 155e980..7ba327a 100644
+--- a/media/filters/ffmpeg_demuxer.cc
++++ b/media/filters/ffmpeg_demuxer.cc
+@@ -1034,24 +1034,6 @@
+ // If no estimate is found, the stream entry will be kInfiniteDuration().
+ std::vector<base::TimeDelta> start_time_estimates(format_context->nb_streams,
+ kInfiniteDuration());
+- const AVFormatInternal* internal = format_context->internal;
+- if (internal && internal->packet_buffer &&
+- format_context->start_time != static_cast<int64_t>(AV_NOPTS_VALUE)) {
+- struct AVPacketList* packet_buffer = internal->packet_buffer;
+- while (packet_buffer != internal->packet_buffer_end) {
+- DCHECK_LT(static_cast<size_t>(packet_buffer->pkt.stream_index),
+- start_time_estimates.size());
+- const AVStream* stream =
+- format_context->streams[packet_buffer->pkt.stream_index];
+- if (packet_buffer->pkt.pts != static_cast<int64_t>(AV_NOPTS_VALUE)) {
+- const base::TimeDelta packet_pts =
+- ConvertFromTimeBase(stream->time_base, packet_buffer->pkt.pts);
+- if (packet_pts < start_time_estimates[stream->index])
+- start_time_estimates[stream->index] = packet_pts;
+- }
+- packet_buffer = packet_buffer->next;
+- }
+- }
+
+ AVStream* audio_stream = NULL;
+ AudioDecoderConfig audio_config;
diff --git a/dev-util/electron/files/chromium-system-ffmpeg-r4.patch b/dev-util/electron/files/chromium-system-ffmpeg-r4.patch
new file mode 100644
index 000000000000..3abfc163e8a2
--- /dev/null
+++ b/dev-util/electron/files/chromium-system-ffmpeg-r4.patch
@@ -0,0 +1,48 @@
+--- a/media/ffmpeg/ffmpeg_common.h.orig 2016-09-09 13:16:07.757294768 +0000
++++ b/media/ffmpeg/ffmpeg_common.h 2016-09-09 13:16:41.705989273 +0000
+@@ -22,10 +22,6 @@
+
+ // Include FFmpeg header files.
+ extern "C" {
+-// Disable deprecated features which result in spammy compile warnings. This
+-// list of defines must mirror those in the 'defines' section of FFmpeg's
+-// BUILD.gn file or the headers below will generate different structures!
+-#define FF_API_CONVERGENCE_DURATION 0
+ // Upstream libavcodec/utils.c still uses the deprecated
+ // av_dup_packet(), causing deprecation warnings.
+ // The normal fix for such things is to disable the feature as below,
+@@ -35,7 +35,6 @@
+ MSVC_PUSH_DISABLE_WARNING(4244);
+ #include <libavcodec/avcodec.h>
+ #include <libavformat/avformat.h>
+-#include <libavformat/internal.h>
+ #include <libavformat/avio.h>
+ #include <libavutil/avutil.h>
+ #include <libavutil/imgutils.h>
+--- a/media/filters/ffmpeg_demuxer.cc.orig 2016-09-09 14:21:40.185828912 +0000
++++ b/media/filters/ffmpeg_demuxer.cc 2016-09-09 14:21:52.894089352 +0000
+@@ -1185,24 +1185,6 @@
+ // If no estimate is found, the stream entry will be kInfiniteDuration.
+ std::vector<base::TimeDelta> start_time_estimates(format_context->nb_streams,
+ kInfiniteDuration);
+- const AVFormatInternal* internal = format_context->internal;
+- if (internal && internal->packet_buffer &&
+- format_context->start_time != static_cast<int64_t>(AV_NOPTS_VALUE)) {
+- struct AVPacketList* packet_buffer = internal->packet_buffer;
+- while (packet_buffer != internal->packet_buffer_end) {
+- DCHECK_LT(static_cast<size_t>(packet_buffer->pkt.stream_index),
+- start_time_estimates.size());
+- const AVStream* stream =
+- format_context->streams[packet_buffer->pkt.stream_index];
+- if (packet_buffer->pkt.pts != static_cast<int64_t>(AV_NOPTS_VALUE)) {
+- const base::TimeDelta packet_pts =
+- ConvertFromTimeBase(stream->time_base, packet_buffer->pkt.pts);
+- if (packet_pts < start_time_estimates[stream->index])
+- start_time_estimates[stream->index] = packet_pts;
+- }
+- packet_buffer = packet_buffer->next;
+- }
+- }
+
+ std::unique_ptr<MediaTracks> media_tracks(new MediaTracks());
+
diff --git a/dev-util/electron/files/chromium-system-jinja-r11.patch b/dev-util/electron/files/chromium-system-jinja-r11.patch
new file mode 100644
index 000000000000..0b3c9b72478b
--- /dev/null
+++ b/dev-util/electron/files/chromium-system-jinja-r11.patch
@@ -0,0 +1,79 @@
+--- third_party/WebKit/Source/bindings/scripts/scripts.gyp.orig 2014-08-19 09:55:10.330972228 +0000
++++ third_party/WebKit/Source/bindings/scripts/scripts.gyp 2014-08-19 09:55:26.387286232 +0000
+@@ -54,7 +54,6 @@
+ 'actions': [{
+ 'action_name': 'cache_jinja_templates',
+ 'inputs': [
+- '<@(jinja_module_files)',
+ 'code_generator_v8.py',
+ '<@(code_generator_template_files)',
+ ],
+--- third_party/WebKit/Source/build/scripts/scripts.gypi.orig 2014-08-19 10:00:00.216521733 +0000
++++ third_party/WebKit/Source/build/scripts/scripts.gypi 2014-08-19 10:00:11.464735099 +0000
+@@ -2,10 +2,6 @@
+ {
+ 'variables': {
+ 'scripts_for_in_files': [
+- # jinja2/__init__.py contains version string, so sufficient as
+- # dependency for whole jinja2 package
+- '<(DEPTH)/third_party/jinja2/__init__.py',
+- '<(DEPTH)/third_party/markupsafe/__init__.py', # jinja2 dep
+ 'hasher.py',
+ 'in_file.py',
+ 'in_generator.py',
+--- third_party/WebKit/Source/bindings/scripts/scripts.gypi.orig 2014-08-19 10:53:02.824618979 +0000
++++ third_party/WebKit/Source/bindings/scripts/scripts.gypi 2014-08-19 10:53:20.784957370 +0000
+@@ -12,9 +12,6 @@
+ '<(DEPTH)/third_party/markupsafe/__init__.py', # jinja2 dep
+ ],
+ 'idl_lexer_parser_files': [
+- # PLY (Python Lex-Yacc)
+- '<(DEPTH)/third_party/ply/lex.py',
+- '<(DEPTH)/third_party/ply/yacc.py',
+ # Web IDL lexer/parser (base parser)
+ '<(DEPTH)/tools/idl_parser/idl_lexer.py',
+ '<(DEPTH)/tools/idl_parser/idl_node.py',
+--- third_party/WebKit/Source/build/scripts/scripts.gni.orig 2016-06-02 09:54:28.510152077 +0000
++++ third_party/WebKit/Source/build/scripts/scripts.gni 2016-06-02 09:54:50.966612510 +0000
+@@ -9,10 +9,6 @@
+ _scripts_dir = "//third_party/WebKit/Source/build/scripts"
+
+ scripts_for_in_files = [
+- # jinja2/__init__.py contains version string, so sufficient as
+- # dependency for whole jinja2 package
+- "//third_party/jinja2/__init__.py",
+- "//third_party/markupsafe/__init__.py", # jinja2 dep
+ "$_scripts_dir/hasher.py",
+ "$_scripts_dir/in_file.py",
+ "$_scripts_dir/in_generator.py",
+--- third_party/WebKit/Source/bindings/scripts/BUILD.gn.orig 2016-06-02 10:03:01.100658943 +0000
++++ third_party/WebKit/Source/bindings/scripts/BUILD.gn 2016-06-02 10:03:13.240907715 +0000
+@@ -36,7 +36,7 @@
+ action("cached_jinja_templates") {
+ script = "code_generator_v8.py"
+
+- inputs = jinja_module_files + [ "code_generator_v8.py" ] +
++ inputs = [ "code_generator_v8.py" ] +
+ code_generator_template_files
+
+ # Dummy file to track dependency.
+--- third_party/WebKit/Source/platform/v8_inspector/v8_inspector.gyp.orig 2016-06-03 12:31:49.844954196 +0000
++++ third_party/WebKit/Source/platform/v8_inspector/v8_inspector.gyp 2016-06-03 12:32:01.869198425 +0000
+@@ -60,7 +60,6 @@
+ {
+ 'action_name': 'generateV8InspectorProtocolBackendSources',
+ 'inputs': [
+- '<@(jinja_module_files)',
+ # The python script in action below.
+ '../inspector_protocol/CodeGenerator.py',
+ # Input files for the script.
+--- third_party/WebKit/Source/core/inspector/inspector.gyp.orig 2016-06-03 12:38:20.712891692 +0000
++++ third_party/WebKit/Source/core/inspector/inspector.gyp 2016-06-03 12:38:31.197104557 +0000
+@@ -52,7 +52,6 @@
+ {
+ 'action_name': 'generateInspectorProtocolBackendSources',
+ 'inputs': [
+- '<@(jinja_module_files)',
+ # The python script in action below.
+ '../../platform/inspector_protocol/CodeGenerator.py',
+ # Input files for the script.
diff --git a/dev-util/electron/files/chromium-system-jinja-r7.patch b/dev-util/electron/files/chromium-system-jinja-r7.patch
new file mode 100644
index 000000000000..fe28e12c333c
--- /dev/null
+++ b/dev-util/electron/files/chromium-system-jinja-r7.patch
@@ -0,0 +1,35 @@
+--- third_party/WebKit/Source/bindings/scripts/scripts.gyp.orig 2014-08-19 09:55:10.330972228 +0000
++++ third_party/WebKit/Source/bindings/scripts/scripts.gyp 2014-08-19 09:55:26.387286232 +0000
+@@ -54,7 +54,6 @@
+ 'actions': [{
+ 'action_name': 'cache_jinja_templates',
+ 'inputs': [
+- '<@(jinja_module_files)',
+ 'code_generator_v8.py',
+ '<@(code_generator_template_files)',
+ ],
+--- third_party/WebKit/Source/build/scripts/scripts.gypi.orig 2014-08-19 10:00:00.216521733 +0000
++++ third_party/WebKit/Source/build/scripts/scripts.gypi 2014-08-19 10:00:11.464735099 +0000
+@@ -2,10 +2,6 @@
+ {
+ 'variables': {
+ 'scripts_for_in_files': [
+- # jinja2/__init__.py contains version string, so sufficient as
+- # dependency for whole jinja2 package
+- '<(DEPTH)/third_party/jinja2/__init__.py',
+- '<(DEPTH)/third_party/markupsafe/__init__.py', # jinja2 dep
+ 'hasher.py',
+ 'in_file.py',
+ 'in_generator.py',
+--- third_party/WebKit/Source/bindings/scripts/scripts.gypi.orig 2014-08-19 10:53:02.824618979 +0000
++++ third_party/WebKit/Source/bindings/scripts/scripts.gypi 2014-08-19 10:53:20.784957370 +0000
+@@ -12,9 +12,6 @@
+ '<(DEPTH)/third_party/markupsafe/__init__.py', # jinja2 dep
+ ],
+ 'idl_lexer_parser_files': [
+- # PLY (Python Lex-Yacc)
+- '<(DEPTH)/third_party/ply/lex.py',
+- '<(DEPTH)/third_party/ply/yacc.py',
+ # Web IDL lexer/parser (base parser)
+ '<(DEPTH)/tools/idl_parser/idl_lexer.py',
+ '<(DEPTH)/tools/idl_parser/idl_node.py',
diff --git a/dev-util/electron/files/chromium-system-jinja-r9.patch b/dev-util/electron/files/chromium-system-jinja-r9.patch
new file mode 100644
index 000000000000..1de9083f307c
--- /dev/null
+++ b/dev-util/electron/files/chromium-system-jinja-r9.patch
@@ -0,0 +1,71 @@
+--- third_party/WebKit/Source/bindings/scripts/scripts.gyp.orig 2014-08-19 09:55:10.330972228 +0000
++++ third_party/WebKit/Source/bindings/scripts/scripts.gyp 2014-08-19 09:55:26.387286232 +0000
+@@ -54,7 +54,6 @@
+ 'actions': [{
+ 'action_name': 'cache_jinja_templates',
+ 'inputs': [
+- '<@(jinja_module_files)',
+ 'code_generator_v8.py',
+ '<@(code_generator_template_files)',
+ ],
+--- third_party/WebKit/Source/build/scripts/scripts.gypi.orig 2014-08-19 10:00:00.216521733 +0000
++++ third_party/WebKit/Source/build/scripts/scripts.gypi 2014-08-19 10:00:11.464735099 +0000
+@@ -2,10 +2,6 @@
+ {
+ 'variables': {
+ 'scripts_for_in_files': [
+- # jinja2/__init__.py contains version string, so sufficient as
+- # dependency for whole jinja2 package
+- '<(DEPTH)/third_party/jinja2/__init__.py',
+- '<(DEPTH)/third_party/markupsafe/__init__.py', # jinja2 dep
+ 'hasher.py',
+ 'in_file.py',
+ 'in_generator.py',
+--- third_party/WebKit/Source/bindings/scripts/scripts.gypi.orig 2014-08-19 10:53:02.824618979 +0000
++++ third_party/WebKit/Source/bindings/scripts/scripts.gypi 2014-08-19 10:53:20.784957370 +0000
+@@ -12,9 +12,6 @@
+ '<(DEPTH)/third_party/markupsafe/__init__.py', # jinja2 dep
+ ],
+ 'idl_lexer_parser_files': [
+- # PLY (Python Lex-Yacc)
+- '<(DEPTH)/third_party/ply/lex.py',
+- '<(DEPTH)/third_party/ply/yacc.py',
+ # Web IDL lexer/parser (base parser)
+ '<(DEPTH)/tools/idl_parser/idl_lexer.py',
+ '<(DEPTH)/tools/idl_parser/idl_node.py',
+--- third_party/WebKit/Source/platform/inspector_protocol/protocol.gyp.orig 2016-03-23 15:10:41.522637837 +0000
++++ third_party/WebKit/Source/platform/inspector_protocol/protocol.gyp 2016-03-23 15:10:56.938953740 +0000
+@@ -6,9 +6,6 @@
+ 'variables': {
+ 'blink_platform_output_dir': '<(SHARED_INTERMEDIATE_DIR)/blink/platform',
+ 'jinja_module_files': [
+- # jinja2/__init__.py contains version string, so sufficient for package
+- '<(DEPTH)/third_party/jinja2/__init__.py',
+- '<(DEPTH)/third_party/markupsafe/__init__.py', # jinja2 dep
+ ],
+ },
+
+--- third_party/WebKit/Source/build/scripts/scripts.gni.orig 2016-06-02 09:54:28.510152077 +0000
++++ third_party/WebKit/Source/build/scripts/scripts.gni 2016-06-02 09:54:50.966612510 +0000
+@@ -9,10 +9,6 @@
+ _scripts_dir = "//third_party/WebKit/Source/build/scripts"
+
+ scripts_for_in_files = [
+- # jinja2/__init__.py contains version string, so sufficient as
+- # dependency for whole jinja2 package
+- "//third_party/jinja2/__init__.py",
+- "//third_party/markupsafe/__init__.py", # jinja2 dep
+ "$_scripts_dir/hasher.py",
+ "$_scripts_dir/in_file.py",
+ "$_scripts_dir/in_generator.py",
+--- third_party/WebKit/Source/bindings/scripts/BUILD.gn.orig 2016-06-02 10:03:01.100658943 +0000
++++ third_party/WebKit/Source/bindings/scripts/BUILD.gn 2016-06-02 10:03:13.240907715 +0000
+@@ -36,7 +36,7 @@
+ action("cached_jinja_templates") {
+ script = "code_generator_v8.py"
+
+- inputs = jinja_module_files + [ "code_generator_v8.py" ] +
++ inputs = [ "code_generator_v8.py" ] +
+ code_generator_template_files
+
+ # Dummy file to track dependency.
diff --git a/dev-util/electron/files/chromium-system-zlib-r0.patch b/dev-util/electron/files/chromium-system-zlib-r0.patch
new file mode 100644
index 000000000000..3bf38e5904fa
--- /dev/null
+++ b/dev-util/electron/files/chromium-system-zlib-r0.patch
@@ -0,0 +1,19 @@
+--- build/linux/unbundle/zlib.gn.orig 2016-05-30 13:09:56.987716771 +0000
++++ build/linux/unbundle/zlib.gn 2016-05-30 13:12:36.879014187 +0000
+@@ -9,11 +9,16 @@
+ headers = [ "zlib.h" ]
+ }
+
++config("system_zlib") {
++ defines = [ "USE_SYSTEM_ZLIB=1" ]
++}
++
+ source_set("zlib") {
+ deps = [
+ ":zlib_shim",
+ ]
+ libs = [ "z" ]
++ public_configs = [ ":system_zlib" ]
+ }
+
+ shim_headers("minizip_shim") {
diff --git a/dev-util/electron/files/electron-0.36.12-vendor-brightray.patch b/dev-util/electron/files/electron-0.36.12-vendor-brightray.patch
new file mode 100644
index 000000000000..7acbe04ff9d7
--- /dev/null
+++ b/dev-util/electron/files/electron-0.36.12-vendor-brightray.patch
@@ -0,0 +1,144 @@
+From 4ec57d1c20b841c6121a77f1539b0c759a031904 Mon Sep 17 00:00:00 2001
+From: Elvis Pranskevichus <elvis@magic.io>
+Date: Mon, 8 Feb 2016 15:14:58 -0500
+Subject: [PATCH] brightray build fixes
+
+---
+ brightray.gyp | 52 ++++++++++++++++++++++++++++++++++++++++++++++++----
+ brightray.gypi | 21 ++++++++-------------
+ 2 files changed, 56 insertions(+), 17 deletions(-)
+
+diff --git a/brightray.gyp b/brightray.gyp
+index d7120ea..d0fd603 100644
+--- a/brightray.gyp
++++ b/brightray.gyp
+@@ -1,7 +1,7 @@
+ {
+ 'variables': {
+ # The libraries brightray will be compiled to.
+- 'linux_system_libraries': 'gtk+-2.0 libnotify dbus-1 x11 xi xcursor xdamage xrandr xcomposite xext xfixes xrender xtst gconf-2.0 gmodule-2.0 nss'
++ 'linux_system_libraries': 'gtk+-2.0 libnotify dbus-1 x11 xi xcursor xdamage xrandr xcomposite xext xfixes xrender xtst gmodule-2.0 nss'
+ },
+ 'includes': [
+ 'filenames.gypi',
+@@ -9,6 +9,11 @@
+ 'targets': [
+ {
+ 'target_name': 'brightray',
++ 'dependencies': [
++ 'cups',
++ 'gconf',
++ '<(libchromiumcontent_src_dir)/chromiumcontent/chromiumcontent.gyp:chromiumcontent_all'
++ ],
+ 'type': 'static_library',
+ 'include_dirs': [
+ '.',
+@@ -100,12 +105,9 @@
+ }, {
+ 'link_settings': {
+ 'libraries': [
+- # Link with ffmpeg.
+- '<(libchromiumcontent_dir)/libffmpeg.so',
+ # Following libraries are required by libchromiumcontent:
+ '-lasound',
+ '-lcap',
+- '-lcups',
+ '-lrt',
+ '-ldl',
+ '-lresolv',
+@@ -274,5 +276,47 @@
+ }], # OS=="win"
+ ],
+ },
++ {
++ 'target_name': 'gconf',
++ 'type': 'none',
++ 'conditions': [
++ ['use_gconf==1 and _toolset=="target"', {
++ 'direct_dependent_settings': {
++ 'cflags': [
++ '<!@(<(pkg-config) --cflags gconf-2.0)',
++ ],
++ 'defines': [
++ 'USE_GCONF',
++ ],
++ },
++ 'link_settings': {
++ 'ldflags': [
++ '<!@(<(pkg-config) --libs-only-L --libs-only-other gconf-2.0)',
++ ],
++ 'libraries': [
++ '<!@(<(pkg-config) --libs-only-l gconf-2.0)',
++ ],
++ },
++ }],
++ ],
++ },
++ {
++ 'target_name': 'cups',
++ 'type': 'none',
++ 'conditions': [
++ ['use_cups==1', {
++ 'direct_dependent_settings': {
++ 'defines': [
++ 'USE_CUPS',
++ ],
++ 'link_settings': {
++ 'libraries': [
++ '-lcups',
++ ],
++ },
++ },
++ }],
++ ],
++ },
+ ],
+ }
+diff --git a/brightray.gypi b/brightray.gypi
+index 4513fa9..95bdfa1 100644
+--- a/brightray.gypi
++++ b/brightray.gypi
+@@ -1,9 +1,14 @@
+ {
+- 'includes': [
+- 'vendor/download/libchromiumcontent/filenames.gypi',
+- ],
+ 'variables': {
+ 'libchromiumcontent_component%': 1,
++ 'libchromiumcontent_src_dir': '<(DEPTH)',
++ 'libchromiumcontent_shared_libraries_dir': '<(SHARED_INTERMEDIATE_DIR)',
++ 'libchromiumcontent_static_libraries_dir': '<(SHARED_INTERMEDIATE_DIR)',
++ 'libchromiumcontent_shared_libraries': [],
++ 'libchromiumcontent_static_libraries': [],
++ 'libchromiumcontent_shared_v8_libraries': [],
++ 'libchromiumcontent_static_v8_libraries': [],
++ 'pkg-config%': 'pkg-config',
+ 'conditions': [
+ # The "libchromiumcontent_component" is defined when calling "gyp".
+ ['libchromiumcontent_component', {
+@@ -258,22 +263,12 @@
+ 'conditions': [
+ ['OS=="linux"', {
+ 'cflags': [
+- '-O2',
+- # Generate symbols, will be stripped later.
+- '-g',
+- # Don't emit the GCC version ident directives, they just end up
+- # in the .comment section taking up binary size.
+- '-fno-ident',
+ # Put data and code in their own sections, so that unused symbols
+ # can be removed at link time with --gc-sections.
+ '-fdata-sections',
+ '-ffunction-sections',
+ ],
+ 'ldflags': [
+- # Specifically tell the linker to perform optimizations.
+- # See http://lwn.net/Articles/192624/ .
+- '-Wl,-O1',
+- '-Wl,--as-needed',
+ '-Wl,--gc-sections',
+ ],
+ }], # OS=="linux"
+--
+2.7.3
+
diff --git a/dev-util/electron/files/electron-0.36.12-vendor-libchromiumcontent.patch b/dev-util/electron/files/electron-0.36.12-vendor-libchromiumcontent.patch
new file mode 100644
index 000000000000..168d8db477a9
--- /dev/null
+++ b/dev-util/electron/files/electron-0.36.12-vendor-libchromiumcontent.patch
@@ -0,0 +1,75 @@
+From b7022129450eaf2136746f5332956e76848796ef Mon Sep 17 00:00:00 2001
+From: Elvis Pranskevichus <elvis@magic.io>
+Date: Mon, 8 Feb 2016 15:12:12 -0500
+Subject: [PATCH] libchromiumcontent build fixes
+
+---
+ chromiumcontent/chromiumcontent.gyp | 6 +++---
+ chromiumcontent/chromiumcontent.gypi | 26 --------------------------
+ 2 files changed, 3 insertions(+), 29 deletions(-)
+
+diff --git a/chromiumcontent/chromiumcontent.gyp b/chromiumcontent/chromiumcontent.gyp
+index 52a1d36..db74a52 100644
+--- a/chromiumcontent/chromiumcontent.gyp
++++ b/chromiumcontent/chromiumcontent.gyp
+@@ -24,11 +24,11 @@
+ },
+ {
+ 'target_name': 'chromiumcontent',
+- # Build chromiumcontent as shared_library otherwise some static libraries
+- # will not build.
+- 'type': 'shared_library',
++ 'type': 'static_library',
+ 'dependencies': [
+ '<(DEPTH)/base/base.gyp:base_prefs',
++ '<(DEPTH)/chrome/chrome_resources.gyp:packed_extra_resources',
++ '<(DEPTH)/chrome/chrome_resources.gyp:packed_resources',
+ '<(DEPTH)/components/components.gyp:cdm_renderer',
+ '<(DEPTH)/components/components.gyp:devtools_discovery',
+ '<(DEPTH)/components/components.gyp:devtools_http_handler',
+diff --git a/chromiumcontent/chromiumcontent.gypi b/chromiumcontent/chromiumcontent.gypi
+index 37c572b..3f4dcea 100644
+--- a/chromiumcontent/chromiumcontent.gypi
++++ b/chromiumcontent/chromiumcontent.gypi
+@@ -1,17 +1,5 @@
+ {
+ 'variables': {
+- # Enalbe using proprietary codecs.
+- 'proprietary_codecs': 1,
+- 'ffmpeg_branding': 'Chrome',
+- # Enable support for Widevine CDM.
+- 'enable_widevine': 1,
+- # Using libc++ requires building for >= 10.7.
+- 'mac_deployment_target': '10.8',
+- # The 10.8 SDK does not work well with C++11.
+- 'mac_sdk_min': '10.9',
+- # Use the standard way of linking with msvc runtime.
+- 'win_use_allocator_shim': 0,
+- 'win_release_RuntimeLibrary': '2',
+ # The V8 libraries.
+ 'v8_libraries': '["v8", "v8_snapshot", "v8_nosnapshot", "v8_external_snapshot", "v8_base", "v8_libbase", "v8_libplatform"]',
+ # The icu libraries.
+@@ -22,20 +10,6 @@
+ 'v8_use_external_startup_data': 1,
+ }],
+ ['OS=="linux"', {
+- # Enable high DPI support on Linux.
+- 'enable_hidpi': 1,
+- # Use Dbus.
+- 'use_dbus': 1,
+- # Make Linux build contain debug symbols, this flag will add '-g' to
+- # cflags.
+- 'linux_dump_symbols': 1,
+- # The Linux build of libchromiumcontent.so depends on, but doesn't
+- # provide, tcmalloc by default. Disabling tcmalloc here also prevents
+- # any conflicts when linking to binaries or libraries that don't use
+- # tcmalloc.
+- 'linux_use_tcmalloc': 0,
+- # Force using gold linker.
+- 'linux_use_bundled_gold': 1,
+ 'conditions': [
+ ['target_arch=="arm"', {
+ 'arm_version': 7,
+--
+2.4.10
+
diff --git a/dev-util/electron/files/electron-0.36.12-vendor-node.patch b/dev-util/electron/files/electron-0.36.12-vendor-node.patch
new file mode 100644
index 000000000000..85f34b6178fe
--- /dev/null
+++ b/dev-util/electron/files/electron-0.36.12-vendor-node.patch
@@ -0,0 +1,109 @@
+From 56b57ea7f0c111bfd9c719060cf17346e638fdd1 Mon Sep 17 00:00:00 2001
+From: Elvis Pranskevichus <elvis@magic.io>
+Date: Wed, 10 Feb 2016 14:45:13 -0500
+Subject: [PATCH] Build fixes
+
+---
+ node.gyp | 5 +++--
+ src/node.cc | 8 --------
+ src/node.js | 2 ++
+ src/node_main.cc | 2 ++
+ 4 files changed, 7 insertions(+), 10 deletions(-)
+
+diff --git a/node.gyp b/node.gyp
+index d431210..fea5e07 100644
+--- a/node.gyp
++++ b/node.gyp
+@@ -1,6 +1,7 @@
+ {
+ 'variables': {
+ 'v8_use_snapshot%': 'false',
++ 'v8_gyp_path%': 'deps/v8/tools/gyp/v8.gyp',
+ 'node_use_dtrace%': 'false',
+ 'node_use_lttng%': 'false',
+ 'node_use_etw%': 'false',
+@@ -89,8 +90,8 @@
+ 'dependencies': [
+ 'node_js2c#host',
+ 'deps/cares/cares.gyp:cares',
+- # 'deps/v8/tools/gyp/v8.gyp:v8',
+- # 'deps/v8/tools/gyp/v8.gyp:v8_libplatform'
++ '<(v8_gyp_path):v8',
++ '<(v8_gyp_path):v8_libplatform'
+ ],
+
+ 'include_dirs': [
+diff --git a/src/node.cc b/src/node.cc
+index 7df6053..cbe1538 100644
+--- a/src/node.cc
++++ b/src/node.cc
+@@ -4085,15 +4085,11 @@ static void StartNodeInstance(void* arg) {
+ SealHandleScope seal(isolate);
+ bool more;
+ do {
+-#if 0
+ v8::platform::PumpMessageLoop(default_platform, isolate);
+-#endif
+ more = uv_run(env->event_loop(), UV_RUN_ONCE);
+
+ if (more == false) {
+-#if 0
+ v8::platform::PumpMessageLoop(default_platform, isolate);
+-#endif
+ EmitBeforeExit(env);
+
+ // Emit `beforeExit` if the loop became alive either after emitting
+@@ -4153,10 +4149,8 @@ int Start(int argc, char** argv) {
+ #endif
+
+ const int thread_pool_size = 4;
+-#if 0
+ default_platform = v8::platform::CreateDefaultPlatform(thread_pool_size);
+ V8::InitializePlatform(default_platform);
+-#endif
+ V8::Initialize();
+
+ int exit_code = 1;
+@@ -4173,10 +4167,8 @@ int Start(int argc, char** argv) {
+ }
+ V8::Dispose();
+
+-#if 0
+ delete default_platform;
+ default_platform = nullptr;
+-#endif
+
+ delete[] exec_argv;
+ exec_argv = nullptr;
+diff --git a/src/node.js b/src/node.js
+index 37aa371..a835d0a 100644
+--- a/src/node.js
++++ b/src/node.js
+@@ -40,7 +40,9 @@
+ startup.globalConsole();
+ } // not isRenderer
+
++ if (!process.env.ELECTRON_NODE_DISABLE_ASAR_SUPPORT) {
+ startup.initAsarSupport();
++ }
+
+ startup.processAssert();
+ startup.processConfig();
+diff --git a/src/node_main.cc b/src/node_main.cc
+index 58e747e..24949f3 100644
+--- a/src/node_main.cc
++++ b/src/node_main.cc
+@@ -40,8 +40,10 @@ int wmain(int argc, wchar_t *wargv[]) {
+ }
+ #else
+ // UNIX
++#include <stdlib.h>
+ int main(int argc, char *argv[]) {
+ setvbuf(stderr, NULL, _IOLBF, 1024);
++ putenv("ELECTRON_NODE_DISABLE_ASAR_SUPPORT=1");
+ return node::Start(argc, argv);
+ }
+ #endif
+--
+2.7.3
+
diff --git a/dev-util/electron/files/electron-0.36.12.patch b/dev-util/electron/files/electron-0.36.12.patch
new file mode 100644
index 000000000000..ec21b25af508
--- /dev/null
+++ b/dev-util/electron/files/electron-0.36.12.patch
@@ -0,0 +1,257 @@
+From 293b40208c981a3a18a1ccd5c5ea0a50611e2356 Mon Sep 17 00:00:00 2001
+From: Elvis Pranskevichus <elvis@magic.io>
+Date: Mon, 8 Feb 2016 15:16:40 -0500
+Subject: [PATCH] electron build fixes
+
+---
+ atom.gyp | 55 +++++++++++++++++++++++++++++++++++++++++++------------
+ common.gypi | 29 +++++++++++++++++++++++------
+ filenames.gypi | 1 -
+ tools/js2asar.py | 11 ++++++-----
+ 4 files changed, 72 insertions(+), 24 deletions(-)
+
+diff --git a/atom.gyp b/atom.gyp
+index 5554adb..61ec47c 100644
+--- a/atom.gyp
++++ b/atom.gyp
+@@ -29,6 +29,7 @@
+ 'type': 'executable',
+ 'dependencies': [
+ 'js2asar',
++ 'nodebin',
+ '<(project_name)_lib',
+ ],
+ 'sources': [
+@@ -177,7 +178,7 @@
+ ],
+ }, {
+ 'dependencies': [
+- 'vendor/breakpad/breakpad.gyp:dump_syms#host',
++ 'breakpad/breakpad.gyp:dump_syms#host',
+ ],
+ }], # OS=="win"
+ ['OS=="linux"', {
+@@ -194,7 +195,7 @@
+ }, {
+ 'copied_libraries': [
+ '<(PRODUCT_DIR)/lib/libnode.so',
+- '<(libchromiumcontent_dir)/libffmpeg.so',
++ '<(PRODUCT_DIR)/lib/libv8.so',
+ ],
+ }],
+ ],
+@@ -202,9 +203,6 @@
+ 'destination': '<(PRODUCT_DIR)',
+ 'files': [
+ '<@(copied_libraries)',
+- '<(libchromiumcontent_dir)/locales',
+- '<(libchromiumcontent_dir)/icudtl.dat',
+- '<(libchromiumcontent_dir)/content_shell.pak',
+ '<(libchromiumcontent_dir)/natives_blob.bin',
+ '<(libchromiumcontent_dir)/snapshot_blob.bin',
+ ],
+@@ -242,15 +240,14 @@
+ '<@(lib_sources)',
+ ],
+ 'include_dirs': [
+- '.',
+ 'chromium_src',
++ '.',
+ 'vendor/brightray',
+ 'vendor/native_mate',
+ # Include atom_natives.h.
+ '<(SHARED_INTERMEDIATE_DIR)',
+ # Include directories for uv and node.
+ 'vendor/node/src',
+- 'vendor/node/deps/http_parser',
+ 'vendor/node/deps/uv/include',
+ # The `node.h` is using `#include"v8.h"`.
+ '<(libchromiumcontent_src_dir)/v8/include',
+@@ -301,8 +298,8 @@
+ 'vendor/node/deps/uv/uv.gyp:libuv',
+ 'vendor/node/deps/zlib/zlib.gyp:zlib',
+ # Build with breakpad support.
+- 'vendor/breakpad/breakpad.gyp:breakpad_handler',
+- 'vendor/breakpad/breakpad.gyp:breakpad_sender',
++ 'breakpad/breakpad.gyp:breakpad_handler',
++ 'breakpad/breakpad.gyp:breakpad_sender',
+ ],
+ }], # OS=="win"
+ ['OS=="mac" and mas_build==0', {
+@@ -333,7 +330,7 @@
+ # Make binary search for libraries under current directory, so we
+ # don't have to manually set $LD_LIBRARY_PATH:
+ # http://serverfault.com/questions/279068/cant-find-so-in-the-same-directory-as-the-executable
+- '-rpath \$$ORIGIN',
++ '-Wl,-rpath=\$$ORIGIN/',
+ # Make native module dynamic loading work.
+ '-rdynamic',
+ ],
+@@ -344,10 +341,10 @@
+ '-Wno-reserved-user-defined-literal',
+ ],
+ 'include_dirs': [
+- 'vendor/breakpad/src',
++ 'breakpad/src',
+ ],
+ 'dependencies': [
+- 'vendor/breakpad/breakpad.gyp:breakpad_client',
++ 'breakpad/breakpad.gyp:breakpad_client',
+ ],
+ }], # OS=="linux"
+ ],
+@@ -355,6 +352,9 @@
+ {
+ 'target_name': 'js2asar',
+ 'type': 'none',
++ 'dependencies': [
++ 'nodebin'
++ ],
+ 'actions': [
+ {
+ 'action_name': 'js2asar',
+@@ -376,6 +376,7 @@
+ 'action': [
+ 'python',
+ 'tools/js2asar.py',
++ '<(PRODUCT_DIR)/nodebin',
+ '<@(_outputs)',
+ '<@(_inputs)',
+ ],
+@@ -403,6 +404,36 @@
+ }
+ ],
+ }, # target atom_js2c
++ {
++ 'target_name': 'nodebin',
++ 'type': 'executable',
++ 'sources': [
++ 'vendor/node/src/node_main.cc',
++ ],
++ 'dependencies': [
++ 'vendor/node/node.gyp:node',
++ ],
++ 'include_dirs': [
++ '.',
++ 'vendor/native_mate',
++ # Include atom_natives.h.
++ '<(SHARED_INTERMEDIATE_DIR)',
++ # Include directories for uv and node.
++ 'vendor/node/src',
++ 'vendor/node/deps/uv/include',
++ # The `node.h` is using `#include"v8.h"`.
++ '<(libchromiumcontent_src_dir)/v8/include',
++ # The `node.h` is using `#include"ares.h"`.
++ 'vendor/node/deps/cares/include',
++ ],
++ 'link_settings': {
++ 'ldflags': [
++ '-Wl,-rpath=\$$ORIGIN/',
++ # Make native module dynamic loading work.
++ '-rdynamic',
++ ],
++ },
++ }, # target nodebin
+ ],
+ 'conditions': [
+ ['OS=="mac"', {
+diff --git a/common.gypi b/common.gypi
+index 7c41c36..2da2fea 100644
+--- a/common.gypi
++++ b/common.gypi
+@@ -17,12 +17,6 @@
+ 'node_target_type': 'shared_library',
+ 'node_install_npm': 'false',
+ 'node_prefix': '',
+- 'node_shared_cares': 'false',
+- 'node_shared_http_parser': 'false',
+- 'node_shared_libuv': 'false',
+- 'node_shared_openssl': 'false',
+- 'node_shared_v8': 'true',
+- 'node_shared_zlib': 'false',
+ 'node_tag': '',
+ 'node_use_dtrace': 'false',
+ 'node_use_etw': 'false',
+@@ -35,10 +29,33 @@
+ 'V8_BASE': '',
+ 'v8_postmortem_support': 'false',
+ 'v8_enable_i18n_support': 'false',
++ 'v8_gyp_path': '<(DEPTH)/v8/tools/gyp/v8.gyp',
++ 'v8_libraries': '["v8", "v8_snapshot", "v8_nosnapshot", "v8_external_snapshot", "v8_base", "v8_libbase", "v8_libplatform"]',
++ 'v8_target_type': 'shared_library',
++ 'v8_use_snapshot': 'true',
++ 'v8_use_external_startup_data': 1,
+ },
+ # Settings to compile node under Windows.
+ 'target_defaults': {
+ 'target_conditions': [
++ ['_target_name in <(v8_libraries) + ["node"]', {
++ 'cflags!': [
++ '-fvisibility=hidden',
++ '-fdata-sections',
++ '-ffunction-sections',
++ ],
++ 'cflags_cc!': [
++ '-fvisibility-inlines-hidden'
++ ],
++ }],
++
++ ['_target_name in <(v8_libraries) + ["mksnapshot"]', {
++ 'defines': [
++ 'V8_SHARED',
++ 'BUILDING_V8_SHARED',
++ ],
++ }],
++
+ ['_target_name in ["libuv", "http_parser", "openssl", "cares", "node", "zlib"]', {
+ 'msvs_disabled_warnings': [
+ 4013, # 'free' undefined; assuming extern returning int
+diff --git a/filenames.gypi b/filenames.gypi
+index f9e1955..84999a3 100644
+--- a/filenames.gypi
++++ b/filenames.gypi
+@@ -498,7 +498,6 @@
+ 'chromium_src/extensions/browser/app_window/size_constraints.h',
+ 'chromium_src/extensions/common/url_pattern.cc',
+ 'chromium_src/extensions/common/url_pattern.h',
+- 'chromium_src/library_loaders/libspeechd_loader.cc',
+ 'chromium_src/library_loaders/libspeechd.h',
+ 'chromium_src/net/test/embedded_test_server/stream_listen_socket.cc',
+ 'chromium_src/net/test/embedded_test_server/stream_listen_socket.h',
+diff --git a/tools/js2asar.py b/tools/js2asar.py
+index cb02e33..3d80a11 100755
+--- a/tools/js2asar.py
++++ b/tools/js2asar.py
+@@ -11,12 +11,13 @@ SOURCE_ROOT = os.path.dirname(os.path.dirname(__file__))
+
+
+ def main():
+- archive = sys.argv[1]
+- js_source_files = sys.argv[2:]
++ node = sys.argv[1]
++ archive = sys.argv[2]
++ js_source_files = sys.argv[3:]
+
+ output_dir = tempfile.mkdtemp()
+ copy_js(js_source_files, output_dir)
+- call_asar(archive, output_dir)
++ call_asar(node, archive, output_dir)
+ shutil.rmtree(output_dir)
+
+
+@@ -28,10 +29,10 @@ def copy_js(js_source_files, output_dir):
+ shutil.copy2(source_file, output_path)
+
+
+-def call_asar(archive, output_dir):
++def call_asar(node, archive, output_dir):
+ js_dir = os.path.join(output_dir, 'lib')
+ asar = os.path.join(SOURCE_ROOT, 'node_modules', 'asar', 'bin', 'asar')
+- subprocess.check_call([find_node(), asar, 'pack', js_dir, archive])
++ subprocess.check_call([node, asar, 'pack', js_dir, archive])
+
+
+ def find_node():
+--
+2.7.3
+
diff --git a/dev-util/electron/files/electron-0.37.8-vendor-brightray.patch b/dev-util/electron/files/electron-0.37.8-vendor-brightray.patch
new file mode 100644
index 000000000000..4c68e4199e91
--- /dev/null
+++ b/dev-util/electron/files/electron-0.37.8-vendor-brightray.patch
@@ -0,0 +1,143 @@
+From e28b41fcc6d59d1774995c5a7b6aa4c634616481 Mon Sep 17 00:00:00 2001
+From: Elvis Pranskevichus <elvis@magic.io>
+Date: Mon, 8 Feb 2016 15:14:58 -0500
+Subject: [PATCH] brightray build fixes
+
+---
+ brightray.gyp | 52 ++++++++++++++++++++++++++++++++++++++++++++++++----
+ brightray.gypi | 20 +++++++-------------
+ 2 files changed, 55 insertions(+), 17 deletions(-)
+
+diff --git a/brightray.gyp b/brightray.gyp
+index 4a821d1..0897f9d 100644
+--- a/brightray.gyp
++++ b/brightray.gyp
+@@ -1,7 +1,7 @@
+ {
+ 'variables': {
+ # The libraries brightray will be compiled to.
+- 'linux_system_libraries': 'gtk+-2.0 libnotify dbus-1 x11 xi xcursor xdamage xrandr xcomposite xext xfixes xrender xtst gconf-2.0 gmodule-2.0 nss'
++ 'linux_system_libraries': 'gtk+-2.0 libnotify dbus-1 x11 xi xcursor xdamage xrandr xcomposite xext xfixes xrender xtst gmodule-2.0 nss'
+ },
+ 'includes': [
+ 'filenames.gypi',
+@@ -9,6 +9,11 @@
+ 'targets': [
+ {
+ 'target_name': 'brightray',
++ 'dependencies': [
++ 'cups',
++ 'gconf',
++ '<(libchromiumcontent_src_dir)/chromiumcontent/chromiumcontent.gyp:chromiumcontent_all'
++ ],
+ 'type': 'static_library',
+ 'include_dirs': [
+ '.',
+@@ -101,12 +106,9 @@
+ }, {
+ 'link_settings': {
+ 'libraries': [
+- # Link with ffmpeg.
+- '<(libchromiumcontent_dir)/libffmpeg.so',
+ # Following libraries are required by libchromiumcontent:
+ '-lasound',
+ '-lcap',
+- '-lcups',
+ '-lrt',
+ '-ldl',
+ '-lresolv',
+@@ -302,5 +304,47 @@
+ }], # OS=="win"
+ ],
+ },
++ {
++ 'target_name': 'gconf',
++ 'type': 'none',
++ 'conditions': [
++ ['use_gconf==1 and _toolset=="target"', {
++ 'direct_dependent_settings': {
++ 'cflags': [
++ '<!@(<(pkg-config) --cflags gconf-2.0)',
++ ],
++ 'defines': [
++ 'USE_GCONF',
++ ],
++ },
++ 'link_settings': {
++ 'ldflags': [
++ '<!@(<(pkg-config) --libs-only-L --libs-only-other gconf-2.0)',
++ ],
++ 'libraries': [
++ '<!@(<(pkg-config) --libs-only-l gconf-2.0)',
++ ],
++ },
++ }],
++ ],
++ },
++ {
++ 'target_name': 'cups',
++ 'type': 'none',
++ 'conditions': [
++ ['use_cups==1', {
++ 'direct_dependent_settings': {
++ 'defines': [
++ 'USE_CUPS',
++ ],
++ 'link_settings': {
++ 'libraries': [
++ '-lcups',
++ ],
++ },
++ },
++ }],
++ ],
++ },
+ ],
+ }
+diff --git a/brightray.gypi b/brightray.gypi
+index 8bae073..95bdfa1 100644
+--- a/brightray.gypi
++++ b/brightray.gypi
+@@ -1,9 +1,13 @@
+ {
+- 'includes': [
+- 'vendor/download/libchromiumcontent/filenames.gypi',
+- ],
+ 'variables': {
+ 'libchromiumcontent_component%': 1,
++ 'libchromiumcontent_src_dir': '<(DEPTH)',
++ 'libchromiumcontent_shared_libraries_dir': '<(SHARED_INTERMEDIATE_DIR)',
++ 'libchromiumcontent_static_libraries_dir': '<(SHARED_INTERMEDIATE_DIR)',
++ 'libchromiumcontent_shared_libraries': [],
++ 'libchromiumcontent_static_libraries': [],
++ 'libchromiumcontent_shared_v8_libraries': [],
++ 'libchromiumcontent_static_v8_libraries': [],
+ 'pkg-config%': 'pkg-config',
+ 'conditions': [
+ # The "libchromiumcontent_component" is defined when calling "gyp".
+@@ -259,22 +263,12 @@
+ 'conditions': [
+ ['OS=="linux"', {
+ 'cflags': [
+- '-O2',
+- # Generate symbols, will be stripped later.
+- '-g',
+- # Don't emit the GCC version ident directives, they just end up
+- # in the .comment section taking up binary size.
+- '-fno-ident',
+ # Put data and code in their own sections, so that unused symbols
+ # can be removed at link time with --gc-sections.
+ '-fdata-sections',
+ '-ffunction-sections',
+ ],
+ 'ldflags': [
+- # Specifically tell the linker to perform optimizations.
+- # See http://lwn.net/Articles/192624/ .
+- '-Wl,-O1',
+- '-Wl,--as-needed',
+ '-Wl,--gc-sections',
+ ],
+ }], # OS=="linux"
+--
+2.7.3
+
diff --git a/dev-util/electron/files/electron-0.37.8-vendor-libchromiumcontent.patch b/dev-util/electron/files/electron-0.37.8-vendor-libchromiumcontent.patch
new file mode 100644
index 000000000000..8115345b077d
--- /dev/null
+++ b/dev-util/electron/files/electron-0.37.8-vendor-libchromiumcontent.patch
@@ -0,0 +1,71 @@
+From bfa42ae7f5251a65fd90a68d0914384b7e63b8ad Mon Sep 17 00:00:00 2001
+From: Elvis Pranskevichus <elvis@magic.io>
+Date: Mon, 8 Feb 2016 15:12:12 -0500
+Subject: [PATCH] libchromiumcontent build fixes
+
+---
+ chromiumcontent/chromiumcontent.gyp | 6 +++---
+ chromiumcontent/chromiumcontent.gypi | 22 ----------------------
+ 2 files changed, 3 insertions(+), 25 deletions(-)
+
+diff --git a/chromiumcontent/chromiumcontent.gyp b/chromiumcontent/chromiumcontent.gyp
+index ddaa0b9..cc8c7c6 100644
+--- a/chromiumcontent/chromiumcontent.gyp
++++ b/chromiumcontent/chromiumcontent.gyp
+@@ -24,11 +24,11 @@
+ },
+ {
+ 'target_name': 'chromiumcontent',
+- # Build chromiumcontent as shared_library otherwise some static libraries
+- # will not build.
+- 'type': 'shared_library',
++ 'type': 'static_library',
+ 'dependencies': [
+ '<(DEPTH)/base/base.gyp:base_prefs',
++ '<(DEPTH)/chrome/chrome_resources.gyp:packed_extra_resources',
++ '<(DEPTH)/chrome/chrome_resources.gyp:packed_resources',
+ '<(DEPTH)/components/components.gyp:cdm_renderer',
+ '<(DEPTH)/components/components.gyp:devtools_discovery',
+ '<(DEPTH)/components/components.gyp:devtools_http_handler',
+diff --git a/chromiumcontent/chromiumcontent.gypi b/chromiumcontent/chromiumcontent.gypi
+index 73bc78a..53694e7 100644
+--- a/chromiumcontent/chromiumcontent.gypi
++++ b/chromiumcontent/chromiumcontent.gypi
+@@ -1,18 +1,5 @@
+ {
+ 'variables': {
+- # Don't use nacl.
+- 'disable_nacl': 1,
+- # Enalbe using proprietary codecs.
+- 'proprietary_codecs': 1,
+- # Build ffmpeg as shared library.
+- 'ffmpeg_component': 'shared_library',
+- # Enable support for Widevine CDM.
+- 'enable_widevine': 1,
+- # Using libc++ requires building for >= 10.7.
+- 'mac_deployment_target': '10.8',
+- # Use the standard way of linking with msvc runtime.
+- 'win_use_allocator_shim': 0,
+- 'win_release_RuntimeLibrary': '2',
+ # The V8 libraries.
+ 'v8_libraries': '["v8", "v8_snapshot", "v8_nosnapshot", "v8_external_snapshot", "v8_base", "v8_libbase", "v8_libplatform"]',
+ # The icu libraries.
+@@ -23,15 +10,6 @@
+ 'v8_use_external_startup_data': 1,
+ }],
+ ['OS=="linux"', {
+- # Enable high DPI support on Linux.
+- 'enable_hidpi': 1,
+- # Use Dbus.
+- 'use_dbus': 1,
+- # Make Linux build contain debug symbols, this flag will add '-g' to
+- # cflags.
+- 'linux_dump_symbols': 1,
+- # Force using gold linker.
+- 'linux_use_bundled_gold': 1,
+ 'conditions': [
+ ['target_arch=="arm"', {
+ 'arm_version': 7,
+--
+2.7.3
+
diff --git a/dev-util/electron/files/electron-0.37.8-vendor-node.patch b/dev-util/electron/files/electron-0.37.8-vendor-node.patch
new file mode 100644
index 000000000000..6e706c3ab49b
--- /dev/null
+++ b/dev-util/electron/files/electron-0.37.8-vendor-node.patch
@@ -0,0 +1,105 @@
+From ee5dd0d41e8426d6915c4b2b9095674ab4175fee Mon Sep 17 00:00:00 2001
+From: Elvis Pranskevichus <elvis@magic.io>
+Date: Wed, 10 Feb 2016 14:45:13 -0500
+Subject: [PATCH] Build fixes
+
+---
+ lib/internal/bootstrap_node.js | 2 ++
+ node.gyp | 5 +++--
+ src/node.cc | 8 ++++----
+ src/node_main.cc | 2 ++
+ 4 files changed, 11 insertions(+), 6 deletions(-)
+
+diff --git a/lib/internal/bootstrap_node.js b/lib/internal/bootstrap_node.js
+index f2edf80..dd2fdb4 100644
+--- a/lib/internal/bootstrap_node.js
++++ b/lib/internal/bootstrap_node.js
+@@ -53,7 +53,9 @@
+ setupGlobalConsole();
+ } // not isRenderer
+
++ if (!process.env.ELECTRON_NODE_DISABLE_ASAR_SUPPORT) {
+ setupAsarSupport();
++ }
+
+ const _process = NativeModule.require('internal/process');
+
+diff --git a/node.gyp b/node.gyp
+index df3bb6a..fbe21d8 100644
+--- a/node.gyp
++++ b/node.gyp
+@@ -1,6 +1,7 @@
+ {
+ 'variables': {
+ 'v8_use_snapshot%': 'false',
++ 'v8_gyp_path%': 'deps/v8/tools/gyp/v8.gyp',
+ 'node_use_dtrace%': 'false',
+ 'node_use_lttng%': 'false',
+ 'node_use_etw%': 'false',
+@@ -107,8 +108,8 @@
+ 'dependencies': [
+ 'node_js2c#host',
+ 'deps/cares/cares.gyp:cares',
+- # 'deps/v8/tools/gyp/v8.gyp:v8',
+- # 'deps/v8/tools/gyp/v8.gyp:v8_libplatform'
++ '<(v8_gyp_path):v8',
++ '<(v8_gyp_path):v8_libplatform'
+ ],
+
+ 'include_dirs': [
+diff --git a/src/node.cc b/src/node.cc
+index 66f31d0..961abc2 100644
+--- a/src/node.cc
++++ b/src/node.cc
+@@ -4240,13 +4240,13 @@ static void StartNodeInstance(void* arg) {
+ SealHandleScope seal(isolate);
+ bool more;
+ do {
+-#if 0
++#if 1
+ v8::platform::PumpMessageLoop(default_platform, isolate);
+ #endif
+ more = uv_run(env->event_loop(), UV_RUN_ONCE);
+
+ if (more == false) {
+-#if 0
++#if 1
+ v8::platform::PumpMessageLoop(default_platform, isolate);
+ #endif
+ EmitBeforeExit(env);
+@@ -4312,7 +4312,7 @@ int Start(int argc, char** argv) {
+ V8::SetEntropySource(crypto::EntropySource);
+ #endif
+
+-#if 0
++#if 1
+ default_platform = v8::platform::CreateDefaultPlatform(v8_thread_pool_size);
+ V8::InitializePlatform(default_platform);
+ V8::Initialize();
+@@ -4332,7 +4332,7 @@ int Start(int argc, char** argv) {
+ }
+ V8::Dispose();
+
+-#if 0
++#if 1
+ delete default_platform;
+ default_platform = nullptr;
+ #endif
+diff --git a/src/node_main.cc b/src/node_main.cc
+index dce72af..e567cc4 100644
+--- a/src/node_main.cc
++++ b/src/node_main.cc
+@@ -48,8 +48,10 @@ int wmain(int argc, wchar_t *wargv[]) {
+ }
+ #else
+ // UNIX
++#include <stdlib.h>
+ int main(int argc, char *argv[]) {
+ setvbuf(stderr, NULL, _IOLBF, 1024);
++ putenv("ELECTRON_NODE_DISABLE_ASAR_SUPPORT=1");
+ return node::Start(argc, argv);
+ }
+ #endif
+--
+2.7.3
+
diff --git a/dev-util/electron/files/electron-0.37.8.patch b/dev-util/electron/files/electron-0.37.8.patch
new file mode 100644
index 000000000000..943281cae834
--- /dev/null
+++ b/dev-util/electron/files/electron-0.37.8.patch
@@ -0,0 +1,391 @@
+From 79e5320a6544a24e45d275cf64bff27fbf6289f2 Mon Sep 17 00:00:00 2001
+From: Elvis Pranskevichus <elvis@magic.io>
+Date: Mon, 8 Feb 2016 15:16:40 -0500
+Subject: [PATCH] electron build fixes
+
+---
+ common.gypi | 32 ++++++++++++++++++------
+ electron.gyp | 62 ++++++++++++++++++++++++++++++++++++++---------
+ filenames.gypi | 1 -
+ toolchain.gypi | 47 +----------------------------------
+ tools/atom_source_root.py | 5 ++++
+ tools/get-endianness.py | 4 +++
+ tools/js2asar.py | 13 +++++-----
+ 7 files changed, 92 insertions(+), 72 deletions(-)
+ create mode 100644 tools/atom_source_root.py
+ create mode 100644 tools/get-endianness.py
+
+diff --git a/common.gypi b/common.gypi
+index 1088beb..2364ebe 100644
+--- a/common.gypi
++++ b/common.gypi
+@@ -15,16 +15,11 @@
+ 'openssl_fips': '',
+ 'openssl_no_asm': 1,
+ 'node_release_urlbase': 'https://atom.io/download/atom-shell',
+- 'node_byteorder': '<!(node <(DEPTH)/tools/get-endianness.js)',
++ 'node_byteorder': '<!(python <(DEPTH)/tools/get-endianness.py)',
+ 'node_target_type': 'shared_library',
+ 'node_install_npm': 'false',
+ 'node_prefix': '',
+- 'node_shared_cares': 'false',
+- 'node_shared_http_parser': 'false',
+- 'node_shared_libuv': 'false',
+- 'node_shared_openssl': 'false',
+ 'node_shared_v8': 'true',
+- 'node_shared_zlib': 'false',
+ 'node_tag': '',
+ 'node_use_dtrace': 'false',
+ 'node_use_etw': 'false',
+@@ -36,11 +31,34 @@
+ 'uv_use_dtrace': 'false',
+ 'V8_BASE': '',
+ 'v8_postmortem_support': 'false',
+- 'v8_enable_i18n_support': 'false',
++ 'v8_enable_i18n_support': 'true',
++ 'v8_gyp_path': '<(DEPTH)/v8/tools/gyp/v8.gyp',
++ 'v8_libraries': '["v8", "v8_snapshot", "v8_nosnapshot", "v8_external_snapshot", "v8_base", "v8_libbase", "v8_libplatform"]',
++ 'v8_target_type': 'shared_library',
++ 'v8_use_snapshot': 'true',
++ 'v8_use_external_startup_data': 1,
+ },
+ # Settings to compile node under Windows.
+ 'target_defaults': {
+ 'target_conditions': [
++ ['_target_name in <(v8_libraries) + ["node", "electron_lib"]', {
++ 'cflags!': [
++ '-fvisibility=hidden',
++ '-fdata-sections',
++ '-ffunction-sections',
++ ],
++ 'cflags_cc!': [
++ '-fvisibility-inlines-hidden'
++ ],
++ }],
++
++ ['_target_name in <(v8_libraries) + ["mksnapshot"]', {
++ 'defines': [
++ 'V8_SHARED',
++ 'BUILDING_V8_SHARED',
++ ],
++ }],
++
+ ['_target_name in ["libuv", "http_parser", "openssl", "cares", "node", "zlib"]', {
+ 'msvs_disabled_warnings': [
+ 4003, # not enough actual parameters for macro 'V'
+diff --git a/electron.gyp b/electron.gyp
+index 66ff2fd..e0e782c 100644
+--- a/electron.gyp
++++ b/electron.gyp
+@@ -30,6 +30,7 @@
+ 'dependencies': [
+ 'js2asar',
+ 'app2asar',
++ 'nodebin',
+ '<(project_name)_lib',
+ ],
+ 'sources': [
+@@ -165,7 +166,7 @@
+ ],
+ }, {
+ 'dependencies': [
+- 'vendor/breakpad/breakpad.gyp:dump_syms#host',
++ 'breakpad/breakpad.gyp:dump_syms#host',
+ ],
+ }], # OS=="win"
+ ['OS=="linux"', {
+@@ -182,7 +183,7 @@
+ }, {
+ 'copied_libraries': [
+ '<(PRODUCT_DIR)/lib/libnode.so',
+- '<(libchromiumcontent_dir)/libffmpeg.so',
++ '<(PRODUCT_DIR)/lib/libv8.so',
+ ],
+ }],
+ ],
+@@ -190,9 +191,6 @@
+ 'destination': '<(PRODUCT_DIR)',
+ 'files': [
+ '<@(copied_libraries)',
+- '<(libchromiumcontent_dir)/locales',
+- '<(libchromiumcontent_dir)/icudtl.dat',
+- '<(libchromiumcontent_dir)/content_shell.pak',
+ '<(libchromiumcontent_dir)/natives_blob.bin',
+ '<(libchromiumcontent_dir)/snapshot_blob.bin',
+ ],
+@@ -216,6 +214,8 @@
+ 'GLIB_DISABLE_DEPRECATION_WARNINGS',
+ # Defined in Chromium but not exposed in its gyp file.
+ 'V8_USE_EXTERNAL_STARTUP_DATA',
++ 'V8_SHARED',
++ 'USING_V8_SHARED',
+ 'ENABLE_PLUGINS',
+ 'ENABLE_PEPPER_CDMS',
+ 'USE_PROPRIETARY_CODECS',
+@@ -224,15 +224,14 @@
+ '<@(lib_sources)',
+ ],
+ 'include_dirs': [
+- '.',
+ 'chromium_src',
++ '.',
+ 'vendor/brightray',
+ 'vendor/native_mate',
+ # Include atom_natives.h.
+ '<(SHARED_INTERMEDIATE_DIR)',
+ # Include directories for uv and node.
+ 'vendor/node/src',
+- 'vendor/node/deps/http_parser',
+ 'vendor/node/deps/uv/include',
+ # The `node.h` is using `#include"v8.h"`.
+ '<(libchromiumcontent_src_dir)/v8/include',
+@@ -283,8 +282,8 @@
+ 'vendor/node/deps/uv/uv.gyp:libuv',
+ 'vendor/node/deps/zlib/zlib.gyp:zlib',
+ # Build with breakpad support.
+- 'vendor/breakpad/breakpad.gyp:breakpad_handler',
+- 'vendor/breakpad/breakpad.gyp:breakpad_sender',
++ 'breakpad/breakpad.gyp:breakpad_handler',
++ 'breakpad/breakpad.gyp:breakpad_sender',
+ ],
+ }], # OS=="win"
+ ['OS=="mac" and mas_build==0', {
+@@ -318,7 +317,7 @@
+ # Make binary search for libraries under current directory, so we
+ # don't have to manually set $LD_LIBRARY_PATH:
+ # http://serverfault.com/questions/279068/cant-find-so-in-the-same-directory-as-the-executable
+- '-rpath \$$ORIGIN',
++ '-Wl,-rpath=\$$ORIGIN/',
+ # Make native module dynamic loading work.
+ '-rdynamic',
+ ],
+@@ -329,10 +328,10 @@
+ '-Wno-reserved-user-defined-literal',
+ ],
+ 'include_dirs': [
+- 'vendor/breakpad/src',
++ 'breakpad/src',
+ ],
+ 'dependencies': [
+- 'vendor/breakpad/breakpad.gyp:breakpad_client',
++ 'breakpad/breakpad.gyp:breakpad_client',
+ ],
+ }], # OS=="linux"
+ ],
+@@ -340,6 +339,9 @@
+ {
+ 'target_name': 'js2asar',
+ 'type': 'none',
++ 'dependencies': [
++ 'nodebin'
++ ],
+ 'actions': [
+ {
+ 'action_name': 'js2asar',
+@@ -361,6 +363,7 @@
+ 'action': [
+ 'python',
+ 'tools/js2asar.py',
++ '<(PRODUCT_DIR)/nodebin',
+ '<@(_outputs)',
+ 'lib',
+ '<@(_inputs)',
+@@ -371,6 +374,9 @@
+ {
+ 'target_name': 'app2asar',
+ 'type': 'none',
++ 'dependencies': [
++ 'nodebin'
++ ],
+ 'actions': [
+ {
+ 'action_name': 'app2asar',
+@@ -392,6 +398,7 @@
+ 'action': [
+ 'python',
+ 'tools/js2asar.py',
++ '<(PRODUCT_DIR)/nodebin',
+ '<@(_outputs)',
+ 'default_app',
+ '<@(_inputs)',
+@@ -420,6 +427,37 @@
+ }
+ ],
+ }, # target atom_js2c
++ {
++ 'target_name': 'nodebin',
++ 'type': 'executable',
++ 'sources': [
++ 'vendor/node/src/node_main.cc',
++ ],
++ 'dependencies': [
++ 'vendor/node/node.gyp:node',
++ ],
++ 'include_dirs': [
++ '.',
++ 'vendor/native_mate',
++ # Include atom_natives.h.
++ '<(SHARED_INTERMEDIATE_DIR)',
++ # Include directories for uv and node.
++ 'vendor/node/src',
++ 'vendor/node/deps/http_parser',
++ 'vendor/node/deps/uv/include',
++ # The `node.h` is using `#include"v8.h"`.
++ '<(libchromiumcontent_src_dir)/v8/include',
++ # The `node.h` is using `#include"ares.h"`.
++ 'vendor/node/deps/cares/include',
++ ],
++ 'link_settings': {
++ 'ldflags': [
++ '-Wl,-rpath=\$$ORIGIN/',
++ # Make native module dynamic loading work.
++ '-rdynamic',
++ ],
++ },
++ }, # target nodebin
+ ],
+ 'conditions': [
+ ['OS=="mac"', {
+diff --git a/filenames.gypi b/filenames.gypi
+index 1c21394..3e07096 100644
+--- a/filenames.gypi
++++ b/filenames.gypi
+@@ -516,7 +516,6 @@
+ 'chromium_src/extensions/browser/app_window/size_constraints.h',
+ 'chromium_src/extensions/common/url_pattern.cc',
+ 'chromium_src/extensions/common/url_pattern.h',
+- 'chromium_src/library_loaders/libspeechd_loader.cc',
+ 'chromium_src/library_loaders/libspeechd.h',
+ 'chromium_src/net/test/embedded_test_server/stream_listen_socket.cc',
+ 'chromium_src/net/test/embedded_test_server/stream_listen_socket.h',
+diff --git a/toolchain.gypi b/toolchain.gypi
+index 11da28f..52c0316 100644
+--- a/toolchain.gypi
++++ b/toolchain.gypi
+@@ -16,7 +16,7 @@
+ 'arm_neon%': 1,
+
+ # Abosulte path to source root.
+- 'source_root%': '<!(node <(DEPTH)/tools/atom_source_root.js)',
++ 'source_root%': '<!(python <(DEPTH)/tools/atom_source_root.py)',
+ },
+
+ # Copy conditionally-set variables out one scope.
+@@ -40,34 +40,6 @@
+ 'mac_sdk%': '<!(python <(DEPTH)/tools/mac/find_sdk.py <(mac_sdk_min))',
+ }],
+
+- ['OS=="linux"', {
+- 'variables': {
+- # The system libdir used for this ABI.
+- 'system_libdir%': 'lib',
+-
+- # Setting the path to sysroot.
+- 'conditions': [
+- ['target_arch=="arm"', {
+- # sysroot needs to be an absolute path otherwise it generates
+- # incorrect results when passed to pkg-config
+- 'sysroot%': '<(source_root)/vendor/debian_wheezy_arm-sysroot',
+- }],
+- ['target_arch=="ia32"', {
+- 'sysroot%': '<(source_root)/vendor/debian_wheezy_i386-sysroot',
+- }],
+- ['target_arch=="x64"', {
+- 'sysroot%': '<(source_root)/vendor/debian_wheezy_amd64-sysroot',
+- }],
+- ],
+- },
+- # Copy conditionally-set variables out one scope.
+- 'sysroot%': '<(sysroot)',
+- 'system_libdir%': '<(system_libdir)',
+-
+- # Redirect pkg-config to search from sysroot.
+- 'pkg-config%': '<(source_root)/tools/linux/pkg-config-wrapper "<(sysroot)" "<(target_arch)" "<(system_libdir)"',
+- }],
+-
+ # Set default compiler flags depending on ARM version.
+ ['arm_version==6', {
+ 'arm_arch%': 'armv6',
+@@ -136,23 +108,6 @@
+ },
+ }],
+
+- # Setup sysroot environment.
+- ['OS=="linux" and target_arch in ["arm", "ia32", "x64"]', {
+- 'target_defaults': {
+- 'target_conditions': [
+- ['_toolset=="target"', {
+- 'cflags': [
+- '--sysroot=<(sysroot)',
+- ],
+- 'ldflags': [
+- '--sysroot=<(sysroot)',
+- '<!(<(source_root)/tools/linux/sysroot_ld_path.sh <(sysroot))',
+- ],
+- }]
+- ],
+- },
+- }], # sysroot
+-
+ # Setup cross-compilation on Linux.
+ ['OS=="linux"', {
+ 'target_defaults': {
+diff --git a/tools/atom_source_root.py b/tools/atom_source_root.py
+new file mode 100644
+index 0000000..316e997
+--- /dev/null
++++ b/tools/atom_source_root.py
+@@ -0,0 +1,5 @@
++#!/usr/bin/env python
++
++import os.path
++
++print(os.path.abspath(os.path.dirname(os.path.dirname(__file__))))
+diff --git a/tools/get-endianness.py b/tools/get-endianness.py
+new file mode 100644
+index 0000000..3150793
+--- /dev/null
++++ b/tools/get-endianness.py
+@@ -0,0 +1,4 @@
++#!/usr/bin/env python
++
++import sys
++print(sys.byteorder)
+diff --git a/tools/js2asar.py b/tools/js2asar.py
+index 7860176..b08a38d 100755
+--- a/tools/js2asar.py
++++ b/tools/js2asar.py
+@@ -11,13 +11,14 @@ SOURCE_ROOT = os.path.dirname(os.path.dirname(__file__))
+
+
+ def main():
+- archive = sys.argv[1]
+- folder_name = sys.argv[2]
+- source_files = sys.argv[3:]
++ node = sys.argv[1]
++ archive = sys.argv[2]
++ folder_name = sys.argv[3]
++ source_files = sys.argv[4:]
+
+ output_dir = tempfile.mkdtemp()
+ copy_files(source_files, output_dir)
+- call_asar(archive, os.path.join(output_dir, folder_name))
++ call_asar(node, archive, os.path.join(output_dir, folder_name))
+ shutil.rmtree(output_dir)
+
+
+@@ -28,9 +29,9 @@ def copy_files(source_files, output_dir):
+ shutil.copy2(source_file, output_path)
+
+
+-def call_asar(archive, output_dir):
++def call_asar(node, archive, output_dir):
+ asar = os.path.join(SOURCE_ROOT, 'node_modules', 'asar', 'bin', 'asar')
+- subprocess.check_call([find_node(), asar, 'pack', output_dir, archive])
++ subprocess.check_call([node, asar, 'pack', output_dir, archive])
+
+
+ def find_node():
+--
+2.7.3
+
diff --git a/dev-util/electron/files/electron-1.3.13-vendor-node.patch b/dev-util/electron/files/electron-1.3.13-vendor-node.patch
new file mode 100644
index 000000000000..8db4a0527df2
--- /dev/null
+++ b/dev-util/electron/files/electron-1.3.13-vendor-node.patch
@@ -0,0 +1,95 @@
+From fe90355a9b8db14ad94cae189ccb90cab0800d5b Mon Sep 17 00:00:00 2001
+From: Elvis Pranskevichus <elvis@magic.io>
+Date: Wed, 10 Feb 2016 14:45:13 -0500
+Subject: [PATCH] Build fixes
+
+---
+ lib/internal/bootstrap_node.js | 2 ++
+ node.gyp | 13 ++++++++-----
+ src/node_main.cc | 2 ++
+ 3 files changed, 12 insertions(+), 5 deletions(-)
+
+diff --git a/lib/internal/bootstrap_node.js b/lib/internal/bootstrap_node.js
+index 9505c7b8a..27d7b9da9 100644
+--- a/lib/internal/bootstrap_node.js
++++ b/lib/internal/bootstrap_node.js
+@@ -50,7 +50,9 @@
+ setupGlobalConsole();
+ }
+
++ if (!process.env.ELECTRON_NODE_DISABLE_ASAR_SUPPORT) {
+ setupAsarSupport();
++ }
+
+ const _process = NativeModule.require('internal/process');
+
+diff --git a/node.gyp b/node.gyp
+index a6f7e6e5b..5b95c5778 100644
+--- a/node.gyp
++++ b/node.gyp
+@@ -1,6 +1,7 @@
+ {
+ 'variables': {
+ 'v8_use_snapshot%': 'false',
++ 'v8_gyp_path%': 'deps/v8/tools/gyp/v8.gyp',
+ 'node_use_dtrace%': 'false',
+ 'node_use_lttng%': 'false',
+ 'node_use_etw%': 'false',
+@@ -127,6 +128,8 @@
+
+ 'dependencies': [
+ 'node_js2c#host',
++ '<(v8_gyp_path):v8',
++ '<(v8_gyp_path):v8_libplatform'
+ ],
+
+ 'include_dirs': [
+@@ -258,8 +261,8 @@
+ }],
+ [ 'node_use_bundled_v8=="true"', {
+ 'dependencies': [
+- 'deps/v8/tools/gyp/v8.gyp:v8',
+- 'deps/v8/tools/gyp/v8.gyp:v8_libplatform'
++ '<(v8_gyp_path):v8',
++ '<(v8_gyp_path):v8_libplatform'
+ ],
+ }],
+ [ 'node_use_v8_platform=="true"', {
+@@ -869,13 +872,13 @@
+ }],
+ [ 'node_use_v8_platform=="true"', {
+ 'dependencies': [
+- 'deps/v8/tools/gyp/v8.gyp:v8_libplatform',
++ '<(v8_gyp_path):v8_libplatform',
+ ],
+ }],
+ [ 'node_use_bundled_v8=="true"', {
+ 'dependencies': [
+- 'deps/v8/tools/gyp/v8.gyp:v8',
+- 'deps/v8/tools/gyp/v8.gyp:v8_libplatform'
++ '<(v8_gyp_path):v8',
++ '<(v8_gyp_path):v8_libplatform'
+ ],
+ }],
+ ]
+diff --git a/src/node_main.cc b/src/node_main.cc
+index bde397562..5b5a6dd99 100644
+--- a/src/node_main.cc
++++ b/src/node_main.cc
+@@ -49,11 +49,13 @@ int wmain(int argc, wchar_t *wargv[]) {
+ }
+ #else
+ // UNIX
++#include <stdlib.h>
+ int main(int argc, char *argv[]) {
+ // Disable stdio buffering, it interacts poorly with printf()
+ // calls elsewhere in the program (e.g., any logging from V8.)
+ setvbuf(stdout, nullptr, _IONBF, 0);
+ setvbuf(stderr, nullptr, _IONBF, 0);
++ putenv("ELECTRON_NODE_DISABLE_ASAR_SUPPORT=1");
+ return node::Start(argc, argv);
+ }
+ #endif
+--
+2.11.0
+
diff --git a/dev-util/electron/files/electron-1.3.6-vendor-brightray.patch b/dev-util/electron/files/electron-1.3.6-vendor-brightray.patch
new file mode 100644
index 000000000000..5f789e784479
--- /dev/null
+++ b/dev-util/electron/files/electron-1.3.6-vendor-brightray.patch
@@ -0,0 +1,143 @@
+From 08a13bec9d06a0ea3d86b8a3126cf83a200a8320 Mon Sep 17 00:00:00 2001
+From: Elvis Pranskevichus <elvis@magic.io>
+Date: Mon, 8 Feb 2016 15:14:58 -0500
+Subject: [PATCH] brightray build fixes
+
+---
+ brightray.gyp | 52 ++++++++++++++++++++++++++++++++++++++++++++++++----
+ brightray.gypi | 20 +++++++-------------
+ 2 files changed, 55 insertions(+), 17 deletions(-)
+
+diff --git a/brightray.gyp b/brightray.gyp
+index d089dba..a34b090 100644
+--- a/brightray.gyp
++++ b/brightray.gyp
+@@ -1,7 +1,7 @@
+ {
+ 'variables': {
+ # The libraries brightray will be compiled to.
+- 'linux_system_libraries': 'gtk+-2.0 dbus-1 x11 xi xcursor xdamage xrandr xcomposite xext xfixes xrender xtst xscrnsaver gconf-2.0 gmodule-2.0 nss'
++ 'linux_system_libraries': 'gtk+-2.0 dbus-1 x11 xi xcursor xdamage xrandr xcomposite xext xfixes xrender xtst xscrnsaver gmodule-2.0 nss'
+ },
+ 'includes': [
+ 'filenames.gypi',
+@@ -9,6 +9,11 @@
+ 'targets': [
+ {
+ 'target_name': 'brightray',
++ 'dependencies': [
++ 'cups',
++ 'gconf',
++ '<(libchromiumcontent_src_dir)/chromiumcontent/chromiumcontent.gyp:chromiumcontent_all'
++ ],
+ 'type': 'static_library',
+ 'include_dirs': [
+ '.',
+@@ -104,12 +109,9 @@
+ }, {
+ 'link_settings': {
+ 'libraries': [
+- # Link with ffmpeg.
+- '<(libchromiumcontent_dir)/libffmpeg.so',
+ # Following libraries are required by libchromiumcontent:
+ '-lasound',
+ '-lcap',
+- '-lcups',
+ '-lrt',
+ '-ldl',
+ '-lresolv',
+@@ -333,5 +335,47 @@
+ }], # OS=="win"
+ ],
+ },
++ {
++ 'target_name': 'gconf',
++ 'type': 'none',
++ 'conditions': [
++ ['use_gconf==1 and _toolset=="target"', {
++ 'direct_dependent_settings': {
++ 'cflags': [
++ '<!@(<(pkg-config) --cflags gconf-2.0)',
++ ],
++ 'defines': [
++ 'USE_GCONF',
++ ],
++ },
++ 'link_settings': {
++ 'ldflags': [
++ '<!@(<(pkg-config) --libs-only-L --libs-only-other gconf-2.0)',
++ ],
++ 'libraries': [
++ '<!@(<(pkg-config) --libs-only-l gconf-2.0)',
++ ],
++ },
++ }],
++ ],
++ },
++ {
++ 'target_name': 'cups',
++ 'type': 'none',
++ 'conditions': [
++ ['use_cups==1', {
++ 'direct_dependent_settings': {
++ 'defines': [
++ 'USE_CUPS',
++ ],
++ 'link_settings': {
++ 'libraries': [
++ '-lcups',
++ ],
++ },
++ },
++ }],
++ ],
++ },
+ ],
+ }
+diff --git a/brightray.gypi b/brightray.gypi
+index 634aec0..8d86999 100644
+--- a/brightray.gypi
++++ b/brightray.gypi
+@@ -1,9 +1,13 @@
+ {
+- 'includes': [
+- 'vendor/download/libchromiumcontent/filenames.gypi',
+- ],
+ 'variables': {
+ 'libchromiumcontent_component%': 1,
++ 'libchromiumcontent_src_dir': '<(DEPTH)',
++ 'libchromiumcontent_shared_libraries_dir': '<(SHARED_INTERMEDIATE_DIR)',
++ 'libchromiumcontent_static_libraries_dir': '<(SHARED_INTERMEDIATE_DIR)',
++ 'libchromiumcontent_shared_libraries': [],
++ 'libchromiumcontent_static_libraries': [],
++ 'libchromiumcontent_shared_v8_libraries': [],
++ 'libchromiumcontent_static_v8_libraries': [],
+ 'pkg-config%': 'pkg-config',
+ 'conditions': [
+ # The "libchromiumcontent_component" is defined when calling "gyp".
+@@ -234,22 +238,12 @@
+ 'conditions': [
+ ['OS=="linux"', {
+ 'cflags': [
+- '-O2',
+- # Generate symbols, will be stripped later.
+- '-g',
+- # Don't emit the GCC version ident directives, they just end up
+- # in the .comment section taking up binary size.
+- '-fno-ident',
+ # Put data and code in their own sections, so that unused symbols
+ # can be removed at link time with --gc-sections.
+ '-fdata-sections',
+ '-ffunction-sections',
+ ],
+ 'ldflags': [
+- # Specifically tell the linker to perform optimizations.
+- # See http://lwn.net/Articles/192624/ .
+- '-Wl,-O1',
+- '-Wl,--as-needed',
+ '-Wl,--gc-sections',
+ ],
+ }], # OS=="linux"
+--
+2.7.3
+
diff --git a/dev-util/electron/files/electron-1.3.6-vendor-libchromiumcontent.patch b/dev-util/electron/files/electron-1.3.6-vendor-libchromiumcontent.patch
new file mode 100644
index 000000000000..ed3815006164
--- /dev/null
+++ b/dev-util/electron/files/electron-1.3.6-vendor-libchromiumcontent.patch
@@ -0,0 +1,78 @@
+From 0448735817b941e5039616144aa836c2f08c9c54 Mon Sep 17 00:00:00 2001
+From: Elvis Pranskevichus <elvis@magic.io>
+Date: Mon, 8 Feb 2016 15:12:12 -0500
+Subject: [PATCH] libchromiumcontent build fixes
+
+---
+ chromiumcontent/chromiumcontent.gyp | 7 ++++---
+ chromiumcontent/chromiumcontent.gypi | 21 ---------------------
+ 2 files changed, 4 insertions(+), 24 deletions(-)
+
+diff --git a/chromiumcontent/chromiumcontent.gyp b/chromiumcontent/chromiumcontent.gyp
+index 5278324..41e7de3 100644
+--- a/chromiumcontent/chromiumcontent.gyp
++++ b/chromiumcontent/chromiumcontent.gyp
+@@ -24,11 +24,11 @@
+ },
+ {
+ 'target_name': 'chromiumcontent',
+- # Build chromiumcontent as shared_library otherwise some static libraries
+- # will not build.
+- 'type': 'shared_library',
++ 'type': 'static_library',
+ 'dependencies': [
+ '<(DEPTH)/components/prefs/prefs.gyp:prefs',
++ '<(DEPTH)/chrome/chrome_resources.gyp:packed_extra_resources',
++ '<(DEPTH)/chrome/chrome_resources.gyp:packed_resources',
+ '<(DEPTH)/components/components.gyp:cdm_renderer',
+ '<(DEPTH)/components/components.gyp:devtools_discovery',
+ '<(DEPTH)/components/components.gyp:devtools_http_handler',
+@@ -41,6 +41,7 @@
+ '<(DEPTH)/ppapi/ppapi_internal.gyp:ppapi_proxy',
+ '<(DEPTH)/ppapi/ppapi_internal.gyp:ppapi_ipc',
+ '<(DEPTH)/ppapi/ppapi_internal.gyp:ppapi_shared',
++ '<(DEPTH)/third_party/WebKit/Source/config.gyp:config',
+ '<(DEPTH)/third_party/webrtc/modules/modules.gyp:desktop_capture',
+ '<(DEPTH)/third_party/widevine/cdm/widevine_cdm.gyp:widevinecdmadapter',
+ '<(DEPTH)/third_party/widevine/cdm/widevine_cdm.gyp:widevine_cdm_version_h',
+diff --git a/chromiumcontent/chromiumcontent.gypi b/chromiumcontent/chromiumcontent.gypi
+index 6d605a2..bd28a21 100644
+--- a/chromiumcontent/chromiumcontent.gypi
++++ b/chromiumcontent/chromiumcontent.gypi
+@@ -1,17 +1,5 @@
+ {
+ 'variables': {
+- # Don't use nacl.
+- 'disable_nacl': 1,
+- # Enable using proprietary codecs.
+- 'proprietary_codecs': 1,
+- # Build ffmpeg as shared library.
+- 'ffmpeg_component': 'shared_library',
+- # Enable support for Widevine CDM.
+- 'enable_widevine': 1,
+- # Using libc++ requires building for >= 10.7.
+- 'mac_deployment_target': '10.8',
+- # Use the standard way of linking with msvc runtime.
+- 'win_use_allocator_shim': 0,
+ # The V8 libraries.
+ 'v8_libraries': '["v8", "v8_snapshot", "v8_nosnapshot", "v8_external_snapshot", "v8_base", "v8_libbase", "v8_libplatform"]',
+ # The icu libraries.
+@@ -22,15 +10,6 @@
+ 'v8_use_external_startup_data': 1,
+ }],
+ ['OS=="linux"', {
+- # Enable high DPI support on Linux.
+- 'enable_hidpi': 1,
+- # Use Dbus.
+- 'use_dbus': 1,
+- # Make Linux build contain debug symbols, this flag will add '-g' to
+- # cflags.
+- 'linux_dump_symbols': 1,
+- # Force using gold linker.
+- 'linux_use_bundled_gold': 1,
+ 'conditions': [
+ ['target_arch=="arm"', {
+ 'arm_version': 7,
+--
+2.7.3
+
diff --git a/dev-util/electron/files/electron-1.3.6-vendor-node.patch b/dev-util/electron/files/electron-1.3.6-vendor-node.patch
new file mode 100644
index 000000000000..6d55d87de68e
--- /dev/null
+++ b/dev-util/electron/files/electron-1.3.6-vendor-node.patch
@@ -0,0 +1,92 @@
+From 742d610e4936d7377dd66b8ec6213c6c0afa121f Mon Sep 17 00:00:00 2001
+From: Elvis Pranskevichus <elvis@magic.io>
+Date: Wed, 10 Feb 2016 14:45:13 -0500
+Subject: [PATCH] Build fixes
+
+---
+ lib/internal/bootstrap_node.js | 2 ++
+ node.gyp | 13 ++++++++-----
+ src/node_main.cc | 2 ++
+ 3 files changed, 12 insertions(+), 5 deletions(-)
+
+diff --git a/lib/internal/bootstrap_node.js b/lib/internal/bootstrap_node.js
+index 3e698ed..c748f64 100644
+--- a/lib/internal/bootstrap_node.js
++++ b/lib/internal/bootstrap_node.js
+@@ -50,7 +50,9 @@
+ setupGlobalConsole();
+ }
+
++ if (!process.env.ELECTRON_NODE_DISABLE_ASAR_SUPPORT) {
+ setupAsarSupport();
++ }
+
+ const _process = NativeModule.require('internal/process');
+
+diff --git a/node.gyp b/node.gyp
+index 1ad0137..8f24426 100644
+--- a/node.gyp
++++ b/node.gyp
+@@ -1,6 +1,7 @@
+ {
+ 'variables': {
+ 'v8_use_snapshot%': 'false',
++ 'v8_gyp_path%': 'deps/v8/tools/gyp/v8.gyp',
+ 'node_use_dtrace%': 'false',
+ 'node_use_lttng%': 'false',
+ 'node_use_etw%': 'false',
+@@ -126,6 +127,8 @@
+
+ 'dependencies': [
+ 'node_js2c#host',
++ '<(v8_gyp_path):v8',
++ '<(v8_gyp_path):v8_libplatform'
+ ],
+
+ 'include_dirs': [
+@@ -254,8 +257,8 @@
+ ],
+
+ 'dependencies': [
+- 'deps/v8/tools/gyp/v8.gyp:v8',
+- 'deps/v8/tools/gyp/v8.gyp:v8_libplatform'
++ '<(v8_gyp_path):v8',
++ '<(v8_gyp_path):v8_libplatform'
+ ],
+ }],
+ [ 'node_use_v8_platform=="true"', {
+@@ -842,13 +845,13 @@
+ }],
+ [ 'node_use_v8_platform=="true"', {
+ 'dependencies': [
+- 'deps/v8/tools/gyp/v8.gyp:v8_libplatform',
++ '<(v8_gyp_path):v8_libplatform',
+ ],
+ }],
+ [ 'node_use_bundled_v8=="true"', {
+ 'dependencies': [
+- 'deps/v8/tools/gyp/v8.gyp:v8',
+- 'deps/v8/tools/gyp/v8.gyp:v8_libplatform'
++ '<(v8_gyp_path):v8',
++ '<(v8_gyp_path):v8_libplatform'
+ ],
+ }],
+ ]
+diff --git a/src/node_main.cc b/src/node_main.cc
+index 02082ba..641e8db 100644
+--- a/src/node_main.cc
++++ b/src/node_main.cc
+@@ -49,8 +49,10 @@ int wmain(int argc, wchar_t *wargv[]) {
+ }
+ #else
+ // UNIX
++#include <stdlib.h>
+ int main(int argc, char *argv[]) {
+ setvbuf(stderr, NULL, _IOLBF, 1024);
++ putenv("ELECTRON_NODE_DISABLE_ASAR_SUPPORT=1");
+ return node::Start(argc, argv);
+ }
+ #endif
+--
+2.7.3
+
diff --git a/dev-util/electron/files/electron-1.3.6.patch b/dev-util/electron/files/electron-1.3.6.patch
new file mode 100644
index 000000000000..57ebe31a27b9
--- /dev/null
+++ b/dev-util/electron/files/electron-1.3.6.patch
@@ -0,0 +1,422 @@
+From d6b2c31fe1b21d171ecedcd2a198bd5b8347bd98 Mon Sep 17 00:00:00 2001
+From: Elvis Pranskevichus <elvis@magic.io>
+Date: Mon, 8 Feb 2016 15:16:40 -0500
+Subject: [PATCH] electron build fixes
+
+---
+ common.gypi | 52 ++++++++++++++++++++++++++++++++------
+ electron.gyp | 63 ++++++++++++++++++++++++++++++++++++-----------
+ filenames.gypi | 1 -
+ toolchain.gypi | 47 +----------------------------------
+ tools/atom_source_root.py | 5 ++++
+ tools/get-endianness.py | 4 +++
+ tools/js2asar.py | 13 +++++-----
+ 7 files changed, 110 insertions(+), 75 deletions(-)
+ create mode 100644 tools/atom_source_root.py
+ create mode 100644 tools/get-endianness.py
+
+diff --git a/common.gypi b/common.gypi
+index 52eba31..55f061a 100644
+--- a/common.gypi
++++ b/common.gypi
+@@ -17,24 +17,20 @@
+ 'use_openssl_def': 0,
+ 'OPENSSL_PRODUCT': 'libopenssl.a',
+ 'node_release_urlbase': 'https://atom.io/download/atom-shell',
+- 'node_byteorder': '<!(node <(DEPTH)/tools/get-endianness.js)',
++ 'node_byteorder': '<!(python <(DEPTH)/tools/get-endianness.py)',
+ 'node_target_type': 'shared_library',
+ 'node_install_npm': 'false',
+ 'node_prefix': '',
+ 'node_shared': 'true',
+- 'node_shared_cares': 'false',
+- 'node_shared_http_parser': 'false',
+- 'node_shared_libuv': 'false',
+- 'node_shared_openssl': 'false',
+ 'node_shared_v8': 'true',
+- 'node_shared_zlib': 'false',
+ 'node_tag': '',
++ 'node_module_version': '',
+ 'node_use_dtrace': 'false',
+ 'node_use_etw': 'false',
+ 'node_use_mdb': 'false',
+ 'node_use_openssl': 'true',
+ 'node_use_perfctr': 'false',
+- 'node_use_v8_platform': 'false',
++ 'node_use_v8_platform': 'true',
+ 'node_use_bundled_v8': 'false',
+ 'uv_library': 'static_library',
+ 'uv_parent_path': 'vendor/node/deps/uv',
+@@ -43,10 +39,37 @@
+ 'v8_postmortem_support': 'false',
+ 'v8_enable_i18n_support': 'false',
+ 'v8_inspector': 'false',
++ 'v8_gyp_path': '<(DEPTH)/v8/src/v8.gyp',
++ 'v8_libraries': '["v8", "v8_snapshot", "v8_nosnapshot", "v8_external_snapshot", "v8_base", "v8_libbase", "v8_libplatform"]',
++ 'v8_target_type': 'shared_library',
++ 'v8_use_snapshot': 'true',
++ 'v8_use_external_startup_data': 1,
+ },
+ # Settings to compile node under Windows.
+ 'target_defaults': {
+ 'target_conditions': [
++ ['_target_name in <(v8_libraries) + ["node"]', {
++ 'cflags!': [
++ '-fvisibility=hidden',
++ '-fdata-sections',
++ '-ffunction-sections',
++ ],
++ 'cflags_cc!': [
++ '-fvisibility-inlines-hidden'
++ ],
++ }],
++
++ ['_target_name in <(v8_libraries) + ["mksnapshot"]', {
++ 'defines': [
++ 'V8_SHARED',
++ 'BUILDING_V8_SHARED',
++ ],
++ }],
++
++ ['_target_name in ["icuuc", "icui18n"]', {
++ 'cflags_cc!': ['-fno-rtti']
++ }],
++
+ ['_target_name in ["libuv", "http_parser", "openssl", "openssl-cli", "cares", "node", "zlib"]', {
+ 'msvs_disabled_warnings': [
+ 4003, # not enough actual parameters for macro 'V'
+@@ -253,6 +276,21 @@
+ }], # OS=="win"
+ ],
+ }],
++ ['_target_name=="shell_runner_host_lib"', {
++ 'conditions': [
++ ['icu_use_data_file_flag==1', {
++ 'defines': ['ICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE'],
++ }, { # else icu_use_data_file_flag !=1
++ 'conditions': [
++ ['OS=="win"', {
++ 'defines': ['ICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_SHARED'],
++ }, {
++ 'defines': ['ICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC'],
++ }],
++ ],
++ }],
++ ],
++ }],
+ ],
+ 'msvs_cygwin_shell': 0, # Strangely setting it to 1 would make building under cygwin fail.
+ 'msvs_disabled_warnings': [
+diff --git a/electron.gyp b/electron.gyp
+index eb671fd..7253b37 100644
+--- a/electron.gyp
++++ b/electron.gyp
+@@ -30,6 +30,7 @@
+ 'dependencies': [
+ 'js2asar',
+ 'app2asar',
++ 'nodebin',
+ '<(project_name)_lib',
+ ],
+ 'sources': [
+@@ -164,7 +165,7 @@
+ ],
+ }, {
+ 'dependencies': [
+- 'vendor/breakpad/breakpad.gyp:dump_syms#host',
++ 'breakpad/breakpad.gyp:dump_syms#host',
+ ],
+ }], # OS=="win"
+ ['OS=="linux"', {
+@@ -181,7 +182,7 @@
+ }, {
+ 'copied_libraries': [
+ '<(PRODUCT_DIR)/lib/libnode.so',
+- '<(libchromiumcontent_dir)/libffmpeg.so',
++ '<(PRODUCT_DIR)/lib/libv8.so',
+ ],
+ }],
+ ],
+@@ -189,13 +190,8 @@
+ 'destination': '<(PRODUCT_DIR)',
+ 'files': [
+ '<@(copied_libraries)',
+- '<(libchromiumcontent_dir)/locales',
+- '<(libchromiumcontent_dir)/icudtl.dat',
+- '<(libchromiumcontent_dir)/blink_image_resources_200_percent.pak',
+- '<(libchromiumcontent_dir)/content_resources_200_percent.pak',
++ '<(libchromiumcontent_dir)/repack/chrome_200_percent.pak',
+ '<(libchromiumcontent_dir)/content_shell.pak',
+- '<(libchromiumcontent_dir)/ui_resources_200_percent.pak',
+- '<(libchromiumcontent_dir)/views_resources_200_percent.pak',
+ '<(libchromiumcontent_dir)/natives_blob.bin',
+ '<(libchromiumcontent_dir)/snapshot_blob.bin',
+ ],
+@@ -230,15 +226,14 @@
+ '<@(lib_sources)',
+ ],
+ 'include_dirs': [
+- '.',
+ 'chromium_src',
++ '.',
+ 'vendor/brightray',
+ 'vendor/native_mate',
+ # Include atom_natives.h.
+ '<(SHARED_INTERMEDIATE_DIR)',
+ # Include directories for uv and node.
+ 'vendor/node/src',
+- 'vendor/node/deps/http_parser',
+ 'vendor/node/deps/uv/include',
+ # The `node.h` is using `#include"v8.h"`.
+ '<(libchromiumcontent_src_dir)/v8/include',
+@@ -289,8 +284,8 @@
+ 'vendor/node/deps/uv/uv.gyp:libuv',
+ 'vendor/node/deps/zlib/zlib.gyp:zlib',
+ # Build with breakpad support.
+- 'vendor/breakpad/breakpad.gyp:breakpad_handler',
+- 'vendor/breakpad/breakpad.gyp:breakpad_sender',
++ 'breakpad/breakpad.gyp:breakpad_handler',
++ 'breakpad/breakpad.gyp:breakpad_sender',
+ ],
+ }], # OS=="win"
+ ['OS=="mac" and mas_build==0', {
+@@ -328,7 +323,7 @@
+ # Make binary search for libraries under current directory, so we
+ # don't have to manually set $LD_LIBRARY_PATH:
+ # http://serverfault.com/questions/279068/cant-find-so-in-the-same-directory-as-the-executable
+- '-rpath \$$ORIGIN',
++ '-Wl,-rpath=\$$ORIGIN/',
+ # Make native module dynamic loading work.
+ '-rdynamic',
+ ],
+@@ -339,10 +334,10 @@
+ '-Wno-reserved-user-defined-literal',
+ ],
+ 'include_dirs': [
+- 'vendor/breakpad/src',
++ 'breakpad/src',
+ ],
+ 'dependencies': [
+- 'vendor/breakpad/breakpad.gyp:breakpad_client',
++ 'breakpad/breakpad.gyp:breakpad_client',
+ ],
+ }], # OS=="linux"
+ ],
+@@ -350,6 +345,9 @@
+ {
+ 'target_name': 'js2asar',
+ 'type': 'none',
++ 'dependencies': [
++ 'nodebin'
++ ],
+ 'actions': [
+ {
+ 'action_name': 'js2asar',
+@@ -371,6 +369,7 @@
+ 'action': [
+ 'python',
+ 'tools/js2asar.py',
++ '<(PRODUCT_DIR)/nodebin',
+ '<@(_outputs)',
+ 'lib',
+ '<@(_inputs)',
+@@ -381,6 +380,9 @@
+ {
+ 'target_name': 'app2asar',
+ 'type': 'none',
++ 'dependencies': [
++ 'nodebin'
++ ],
+ 'actions': [
+ {
+ 'action_name': 'app2asar',
+@@ -402,6 +404,7 @@
+ 'action': [
+ 'python',
+ 'tools/js2asar.py',
++ '<(PRODUCT_DIR)/nodebin',
+ '<@(_outputs)',
+ 'default_app',
+ '<@(_inputs)',
+@@ -430,6 +433,36 @@
+ }
+ ],
+ }, # target atom_js2c
++ {
++ 'target_name': 'nodebin',
++ 'type': 'executable',
++ 'sources': [
++ 'vendor/node/src/node_main.cc',
++ ],
++ 'dependencies': [
++ 'vendor/node/node.gyp:node',
++ ],
++ 'include_dirs': [
++ '.',
++ 'vendor/native_mate',
++ # Include atom_natives.h.
++ '<(SHARED_INTERMEDIATE_DIR)',
++ # Include directories for uv and node.
++ 'vendor/node/src',
++ 'vendor/node/deps/uv/include',
++ # The `node.h` is using `#include"v8.h"`.
++ '<(libchromiumcontent_src_dir)/v8/include',
++ # The `node.h` is using `#include"ares.h"`.
++ 'vendor/node/deps/cares/include',
++ ],
++ 'link_settings': {
++ 'ldflags': [
++ '-Wl,-rpath=\$$ORIGIN/',
++ # Make native module dynamic loading work.
++ '-rdynamic',
++ ],
++ },
++ }, # target nodebin
+ ],
+ 'conditions': [
+ ['OS=="mac"', {
+diff --git a/filenames.gypi b/filenames.gypi
+index 9e20582..c7960a9 100644
+--- a/filenames.gypi
++++ b/filenames.gypi
+@@ -558,7 +558,6 @@
+ 'chromium_src/extensions/browser/app_window/size_constraints.h',
+ 'chromium_src/extensions/common/url_pattern.cc',
+ 'chromium_src/extensions/common/url_pattern.h',
+- 'chromium_src/library_loaders/libspeechd_loader.cc',
+ 'chromium_src/library_loaders/libspeechd.h',
+ 'chromium_src/net/test/embedded_test_server/stream_listen_socket.cc',
+ 'chromium_src/net/test/embedded_test_server/stream_listen_socket.h',
+diff --git a/toolchain.gypi b/toolchain.gypi
+index 1c5f8a7..2af11f5 100644
+--- a/toolchain.gypi
++++ b/toolchain.gypi
+@@ -16,7 +16,7 @@
+ 'arm_neon%': 1,
+
+ # Abosulte path to source root.
+- 'source_root%': '<!(node <(DEPTH)/tools/atom_source_root.js)',
++ 'source_root%': '<!(python <(DEPTH)/tools/atom_source_root.py)',
+ },
+
+ # Copy conditionally-set variables out one scope.
+@@ -40,34 +40,6 @@
+ 'mac_sdk%': '<!(python <(DEPTH)/tools/mac/find_sdk.py <(mac_sdk_min))',
+ }],
+
+- ['OS=="linux"', {
+- 'variables': {
+- # The system libdir used for this ABI.
+- 'system_libdir%': 'lib',
+-
+- # Setting the path to sysroot.
+- 'conditions': [
+- ['target_arch=="arm"', {
+- # sysroot needs to be an absolute path otherwise it generates
+- # incorrect results when passed to pkg-config
+- 'sysroot%': '<(source_root)/vendor/debian_wheezy_arm-sysroot',
+- }],
+- ['target_arch=="ia32"', {
+- 'sysroot%': '<(source_root)/vendor/debian_wheezy_i386-sysroot',
+- }],
+- ['target_arch=="x64"', {
+- 'sysroot%': '<(source_root)/vendor/debian_wheezy_amd64-sysroot',
+- }],
+- ],
+- },
+- # Copy conditionally-set variables out one scope.
+- 'sysroot%': '<(sysroot)',
+- 'system_libdir%': '<(system_libdir)',
+-
+- # Redirect pkg-config to search from sysroot.
+- 'pkg-config%': '<(source_root)/tools/linux/pkg-config-wrapper "<(sysroot)" "<(target_arch)" "<(system_libdir)"',
+- }],
+-
+ # Set default compiler flags depending on ARM version.
+ ['arm_version==6', {
+ 'arm_arch%': 'armv6',
+@@ -136,23 +108,6 @@
+ },
+ }],
+
+- # Setup sysroot environment.
+- ['OS=="linux" and target_arch in ["arm", "ia32", "x64"]', {
+- 'target_defaults': {
+- 'target_conditions': [
+- ['_toolset=="target"', {
+- 'cflags': [
+- '--sysroot=<(sysroot)',
+- ],
+- 'ldflags': [
+- '--sysroot=<(sysroot)',
+- '<!(<(source_root)/tools/linux/sysroot_ld_path.sh <(sysroot))',
+- ],
+- }]
+- ],
+- },
+- }], # sysroot
+-
+ # Setup cross-compilation on Linux.
+ ['OS=="linux"', {
+ 'target_defaults': {
+diff --git a/tools/atom_source_root.py b/tools/atom_source_root.py
+new file mode 100644
+index 0000000..316e997
+--- /dev/null
++++ b/tools/atom_source_root.py
+@@ -0,0 +1,5 @@
++#!/usr/bin/env python
++
++import os.path
++
++print(os.path.abspath(os.path.dirname(os.path.dirname(__file__))))
+diff --git a/tools/get-endianness.py b/tools/get-endianness.py
+new file mode 100644
+index 0000000..3150793
+--- /dev/null
++++ b/tools/get-endianness.py
+@@ -0,0 +1,4 @@
++#!/usr/bin/env python
++
++import sys
++print(sys.byteorder)
+diff --git a/tools/js2asar.py b/tools/js2asar.py
+index adad175..ca76868 100755
+--- a/tools/js2asar.py
++++ b/tools/js2asar.py
+@@ -11,13 +11,14 @@ SOURCE_ROOT = os.path.dirname(os.path.dirname(__file__))
+
+
+ def main():
+- archive = sys.argv[1]
+- folder_name = sys.argv[2]
+- source_files = sys.argv[3:]
++ node = sys.argv[1]
++ archive = sys.argv[2]
++ folder_name = sys.argv[3]
++ source_files = sys.argv[4:]
+
+ output_dir = tempfile.mkdtemp()
+ copy_files(source_files, output_dir)
+- call_asar(archive, os.path.join(output_dir, folder_name))
++ call_asar(node, archive, os.path.join(output_dir, folder_name))
+ shutil.rmtree(output_dir)
+
+
+@@ -28,11 +29,11 @@ def copy_files(source_files, output_dir):
+ shutil.copy2(source_file, output_path)
+
+
+-def call_asar(archive, output_dir):
++def call_asar(node, archive, output_dir):
+ asar = os.path.join(SOURCE_ROOT, 'node_modules', '.bin', 'asar')
+ if sys.platform in ['win32', 'cygwin']:
+ asar += '.cmd'
+- subprocess.check_call([asar, 'pack', output_dir, archive])
++ subprocess.check_call([node, asar, 'pack', output_dir, archive])
+
+
+ def safe_mkdir(path):
+--
+2.7.3
+
diff --git a/dev-util/electron/files/electron-1.6.11-vendor-brightray.patch b/dev-util/electron/files/electron-1.6.11-vendor-brightray.patch
new file mode 100644
index 000000000000..a1a351195d00
--- /dev/null
+++ b/dev-util/electron/files/electron-1.6.11-vendor-brightray.patch
@@ -0,0 +1,163 @@
+From 610ee2681f9532a13f63edf78aab55b1dcb8abf2 Mon Sep 17 00:00:00 2001
+From: Elvis Pranskevichus <elvis@magic.io>
+Date: Mon, 8 Feb 2016 15:14:58 -0500
+Subject: [PATCH] brightray build fixes
+
+---
+ brightray.gyp | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++++----
+ brightray.gypi | 14 ++-----------
+ 2 files changed, 64 insertions(+), 16 deletions(-)
+
+diff --git a/brightray.gyp b/brightray.gyp
+index e60d17a..37e5159 100644
+--- a/brightray.gyp
++++ b/brightray.gyp
+@@ -1,7 +1,7 @@
+ {
+ 'variables': {
+ # The libraries brightray will be compiled to.
+- 'linux_system_libraries': 'gtk+-2.0 dbus-1 x11 x11-xcb xcb xi xcursor xdamage xrandr xcomposite xext xfixes xrender xtst xscrnsaver gconf-2.0 gmodule-2.0 nss'
++ 'linux_system_libraries': 'gtk+-2.0 dbus-1 x11 x11-xcb xcb xi xcursor xdamage xrandr xcomposite xext xfixes xrender xtst xscrnsaver gmodule-2.0 nss'
+ },
+ 'includes': [
+ 'filenames.gypi',
+@@ -9,6 +9,10 @@
+ 'targets': [
+ {
+ 'target_name': 'brightray',
++ 'dependencies': [
++ 'cups',
++ 'gconf',
++ ],
+ 'type': 'static_library',
+ 'include_dirs': [
+ '.',
+@@ -130,18 +134,30 @@
+ }, {
+ 'link_settings': {
+ 'libraries': [
+- # Link with ffmpeg.
+- '<(libchromiumcontent_dir)/libffmpeg.so',
+ # Following libraries are required by libchromiumcontent:
+ '-lasound',
+ '-lcap',
+- '-lcups',
+ '-lrt',
+ '-ldl',
+ '-lresolv',
+ '-lfontconfig',
+ '-lfreetype',
+ '-lexpat',
++ '-lre2',
++ '-ljpeg',
++ '-lsnappy',
++ '-lharfbuzz',
++ '-lpng',
++ '-lxml2',
++ '-lxslt',
++ '-lwebp',
++ '-lwebpdemux',
++ '-lavcodec',
++ '-lavformat',
++ '-lavutil',
++ '-lvpx',
++ '-lFLAC',
++ '-lminizip',
+ ],
+ },
+ }],
+@@ -390,5 +406,47 @@
+ }], # OS=="win"
+ ],
+ },
++ {
++ 'target_name': 'gconf',
++ 'type': 'none',
++ 'conditions': [
++ ['use_gconf==1 and _toolset=="target"', {
++ 'direct_dependent_settings': {
++ 'cflags': [
++ '<!@(<(pkg-config) --cflags gconf-2.0)',
++ ],
++ 'defines': [
++ 'USE_GCONF',
++ ],
++ },
++ 'link_settings': {
++ 'ldflags': [
++ '<!@(<(pkg-config) --libs-only-L --libs-only-other gconf-2.0)',
++ ],
++ 'libraries': [
++ '<!@(<(pkg-config) --libs-only-l gconf-2.0)',
++ ],
++ },
++ }],
++ ],
++ },
++ {
++ 'target_name': 'cups',
++ 'type': 'none',
++ 'conditions': [
++ ['use_cups==1', {
++ 'direct_dependent_settings': {
++ 'defines': [
++ 'USE_CUPS',
++ ],
++ 'link_settings': {
++ 'libraries': [
++ '-lcups',
++ ],
++ },
++ },
++ }],
++ ],
++ },
+ ],
+ }
+diff --git a/brightray.gypi b/brightray.gypi
+index 064ae1a..95d6f14 100644
+--- a/brightray.gypi
++++ b/brightray.gypi
+@@ -1,6 +1,6 @@
+ {
+ 'includes': [
+- 'vendor/download/libchromiumcontent/filenames.gypi',
++ 'vendor/libchromiumcontent/dist/main/filenames.gypi',
+ ],
+ 'variables': {
+ 'libchromiumcontent_component%': 1,
+@@ -14,7 +14,7 @@
+ }, {
+ 'libchromiumcontent_dir%': '<(libchromiumcontent_static_libraries_dir)',
+ 'libchromiumcontent_libraries%': '<(libchromiumcontent_static_libraries)',
+- 'libchromiumcontent_v8_libraries%': '<(libchromiumcontent_static_v8_libraries)',
++ 'libchromiumcontent_v8_libraries%': '<(libchromiumcontent_shared_v8_libraries)',
+ }],
+ ],
+ },
+@@ -235,22 +235,12 @@
+ 'conditions': [
+ ['OS=="linux"', {
+ 'cflags': [
+- '-O2',
+- # Generate symbols, will be stripped later.
+- '-g',
+- # Don't emit the GCC version ident directives, they just end up
+- # in the .comment section taking up binary size.
+- '-fno-ident',
+ # Put data and code in their own sections, so that unused symbols
+ # can be removed at link time with --gc-sections.
+ '-fdata-sections',
+ '-ffunction-sections',
+ ],
+ 'ldflags': [
+- # Specifically tell the linker to perform optimizations.
+- # See http://lwn.net/Articles/192624/ .
+- '-Wl,-O1',
+- '-Wl,--as-needed',
+ '-Wl,--gc-sections',
+ ],
+ }], # OS=="linux"
+--
+2.13.3
+
diff --git a/dev-util/electron/files/electron-1.6.11-vendor-libchromiumcontent.patch b/dev-util/electron/files/electron-1.6.11-vendor-libchromiumcontent.patch
new file mode 100644
index 000000000000..d724e41f1fdb
--- /dev/null
+++ b/dev-util/electron/files/electron-1.6.11-vendor-libchromiumcontent.patch
@@ -0,0 +1,86 @@
+From 0a28ad879b544f73f74491ddd58646750335bf1d Mon Sep 17 00:00:00 2001
+From: Elvis Pranskevichus <elvis@magic.io>
+Date: Fri, 28 Apr 2017 17:22:38 -0400
+Subject: [PATCH] Gentoo build fixes
+
+---
+ chromiumcontent/BUILD.gn | 8 ++------
+ chromiumcontent/build_libs.py | 2 +-
+ script/create-dist | 4 ----
+ script/lib/config.py | 2 +-
+ 4 files changed, 4 insertions(+), 12 deletions(-)
+
+diff --git a/chromiumcontent/BUILD.gn b/chromiumcontent/BUILD.gn
+index e4e4166..25be865 100644
+--- a/chromiumcontent/BUILD.gn
++++ b/chromiumcontent/BUILD.gn
+@@ -343,12 +343,8 @@ if (is_electron_build && !is_component_build) {
+ }
+ }
+
+- static_library("v8") {
+- complete_static_lib = true
+- sources = []
+- if (defined(obj_v8)) {
+- sources += obj_v8
+- }
++ shared_library("v8") {
++ deps = [ "//v8:v8", "//v8:v8_libplatform" ]
+ }
+
+ } else {
+diff --git a/chromiumcontent/build_libs.py b/chromiumcontent/build_libs.py
+index e10f320..716c5f2 100644
+--- a/chromiumcontent/build_libs.py
++++ b/chromiumcontent/build_libs.py
+@@ -82,7 +82,7 @@ with open(args.out, 'w') as out:
+ "third_party/usrsctp",
+ "third_party/woff2",
+ "third_party/zlib",
+- "tools",
++ "tools/battor_agent",
+ "ui",
+ "url",
+ ])
+diff --git a/script/create-dist b/script/create-dist
+index aec75e5..64c7401 100755
+--- a/script/create-dist
++++ b/script/create-dist
+@@ -45,7 +45,6 @@ COMPONENTS = ['static_library', 'shared_library']
+ BINARIES = {
+ 'all': [
+ 'content_shell.pak',
+- 'icudtl.dat',
+ 'natives_blob.bin',
+ 'snapshot_blob.bin',
+ os.path.join('gen', 'blink', 'public', 'resources', 'blink_image_resources_200_percent.pak'),
+@@ -59,7 +58,6 @@ BINARIES = {
+ 'libffmpeg.dylib',
+ ],
+ 'linux': [
+- 'libffmpeg.so',
+ ],
+ 'win32': [
+ 'd3dcompiler_47.dll',
+@@ -312,8 +310,6 @@ def main():
+ copy_generated_sources(target_arch, component)
+ copy_locales(target_arch, component)
+
+- copy_ffmpeg(target_arch)
+- copy_sources()
+ generate_licenses()
+ if not args.no_zip:
+ create_zip(create_debug_archive)
+diff --git a/script/lib/config.py b/script/lib/config.py
+index 3455161..195b2a1 100644
+--- a/script/lib/config.py
++++ b/script/lib/config.py
+@@ -4,4 +4,4 @@ import os
+
+
+ def get_output_dir(source_root, target_arch, component):
+- return os.path.join(source_root, 'src', 'out-' + target_arch, component)
++ return os.environ.get('CHROMIUM_BUILD_DIR')
+--
+2.13.3
+
diff --git a/dev-util/electron/files/electron-1.6.11-vendor-node.patch b/dev-util/electron/files/electron-1.6.11-vendor-node.patch
new file mode 100644
index 000000000000..2f931771f91a
--- /dev/null
+++ b/dev-util/electron/files/electron-1.6.11-vendor-node.patch
@@ -0,0 +1,80 @@
+From fc6ba3a74ffa88b22435531d6522d934a52187e5 Mon Sep 17 00:00:00 2001
+From: Elvis Pranskevichus <elvis@magic.io>
+Date: Wed, 10 Feb 2016 14:45:13 -0500
+Subject: [PATCH] Build fixes
+
+---
+ lib/internal/bootstrap_node.js | 2 ++
+ node.gyp | 9 +++++++++
+ src/node_main.cc | 2 ++
+ 3 files changed, 13 insertions(+)
+
+diff --git a/lib/internal/bootstrap_node.js b/lib/internal/bootstrap_node.js
+index 085ea00fd0..cb49fc87a7 100644
+--- a/lib/internal/bootstrap_node.js
++++ b/lib/internal/bootstrap_node.js
+@@ -40,7 +40,9 @@
+ setupGlobalConsole();
+ }
+
++ if (!process.env.ELECTRON_NODE_DISABLE_ASAR_SUPPORT) {
+ setupAsarSupport();
++ }
+
+ const _process = NativeModule.require('internal/process');
+
+diff --git a/node.gyp b/node.gyp
+index 95f24933fc..1434904324 100644
+--- a/node.gyp
++++ b/node.gyp
+@@ -17,6 +17,7 @@
+ 'node_shared_libuv%': 'false',
+ 'node_use_openssl%': 'true',
+ 'node_shared_openssl%': 'false',
++ 'node_v8_path%': 'deps/v8',
+ 'node_v8_options%': '',
+ 'node_enable_v8_vtunejit%': 'false',
+ 'node_core_target_name%': 'node',
+@@ -133,6 +134,7 @@
+ ],
+
+ 'include_dirs': [
++ '<(node_v8_path)/include',
+ 'src',
+ 'tools/msvs/genfiles',
+ 'deps/uv/src/ares',
+@@ -238,6 +240,13 @@
+ 'V8_DEPRECATION_WARNINGS=1',
+ ],
+
++ 'link_settings': {
++ 'ldflags': [
++ '-Wl,-rpath=\$$ORIGIN/',
++ # Make native module dynamic loading work.
++ '-rdynamic',
++ ],
++ },
+
+ 'conditions': [
+ [ 'node_shared=="false"', {
+diff --git a/src/node_main.cc b/src/node_main.cc
+index 16bda81ae6..fd559ef1c3 100644
+--- a/src/node_main.cc
++++ b/src/node_main.cc
+@@ -50,11 +50,13 @@ int wmain(int argc, wchar_t *wargv[]) {
+ }
+ #else
+ // UNIX
++#include <stdlib.h>
+ int main(int argc, char *argv[]) {
+ // Disable stdio buffering, it interacts poorly with printf()
+ // calls elsewhere in the program (e.g., any logging from V8.)
+ setvbuf(stdout, nullptr, _IONBF, 0);
+ setvbuf(stderr, nullptr, _IONBF, 0);
++ putenv("ELECTRON_NODE_DISABLE_ASAR_SUPPORT=1");
+ return node::Start(argc, argv);
+ }
+ #endif
+--
+2.13.3
+
diff --git a/dev-util/electron/files/electron-1.6.11.patch b/dev-util/electron/files/electron-1.6.11.patch
new file mode 100644
index 000000000000..b40d471348ab
--- /dev/null
+++ b/dev-util/electron/files/electron-1.6.11.patch
@@ -0,0 +1,512 @@
+From b756fa976480791c76e9338a16ee2b0a29265b93 Mon Sep 17 00:00:00 2001
+From: Elvis Pranskevichus <elvis@magic.io>
+Date: Mon, 8 Feb 2016 15:16:40 -0500
+Subject: [PATCH] electron build fixes
+
+---
+ common.gypi | 43 ++++++++++++++++++++++-----
+ electron.gyp | 74 +++++++++++++++++++++++++++++++++++----------
+ toolchain.gypi | 76 +++++++++++++++++++----------------------------
+ tools/ar-flags.py | 15 ++++++++++
+ tools/atom_source_root.py | 5 ++++
+ tools/browserify.py | 24 +++++++++++++++
+ tools/get-endianness.py | 4 +++
+ tools/js2asar.py | 13 ++++----
+ 8 files changed, 179 insertions(+), 75 deletions(-)
+ create mode 100644 tools/ar-flags.py
+ create mode 100644 tools/atom_source_root.py
+ create mode 100644 tools/browserify.py
+ create mode 100644 tools/get-endianness.py
+
+diff --git a/common.gypi b/common.gypi
+index 7c1bf366a..c441ae04b 100644
+--- a/common.gypi
++++ b/common.gypi
+@@ -2,6 +2,7 @@
+ 'includes': [
+ 'toolchain.gypi',
+ 'vendor/brightray/brightray.gypi',
++ 'vendor/node/common.gypi',
+ ],
+ 'variables': {
+ # Tell crashpad to build as external project.
+@@ -16,26 +17,23 @@
+ 'openssl_no_asm': 1,
+ 'use_openssl_def': 0,
+ 'OPENSSL_PRODUCT': 'libopenssl.a',
+- 'node_release_urlbase': 'https://atom.io/download/atom-shell',
+- 'node_byteorder': '<!(node <(DEPTH)/tools/get-endianness.js)',
++ 'node_release_urlbase': 'https://atom.io/download/electron',
++ 'node_byteorder': '<!(python <(DEPTH)/tools/get-endianness.py)',
+ 'node_target_type': 'shared_library',
++ 'node_module_version': '',
+ 'node_install_npm': 'false',
+ 'node_prefix': '',
+ 'node_shared': 'true',
+- 'node_shared_cares': 'false',
+- 'node_shared_http_parser': 'false',
+- 'node_shared_libuv': 'false',
+- 'node_shared_openssl': 'false',
+ 'node_shared_v8': 'true',
+- 'node_shared_zlib': 'false',
+ 'node_tag': '',
+ 'node_use_dtrace': 'false',
+ 'node_use_etw': 'false',
+ 'node_use_mdb': 'false',
+ 'node_use_openssl': 'true',
+ 'node_use_perfctr': 'false',
+- 'node_use_v8_platform': 'false',
++ 'node_use_v8_platform': 'true',
+ 'node_use_bundled_v8': 'false',
++ 'node_v8_path': '<(DEPTH)/chromium/v8/',
+ 'node_enable_d8': 'false',
+ 'uv_library': 'static_library',
+ 'uv_parent_path': 'vendor/node/deps/uv',
+@@ -44,10 +42,16 @@
+ 'v8_postmortem_support': 'false',
+ 'v8_enable_i18n_support': 'false',
+ 'v8_inspector': 'false',
++ 'v8_use_snapshot': 'true',
++ 'v8_use_external_startup_data': 1,
+ },
+ # Settings to compile node under Windows.
+ 'target_defaults': {
+ 'target_conditions': [
++ ['_target_name in ["icuuc", "icui18n"]', {
++ 'cflags_cc!': ['-fno-rtti']
++ }],
++
+ ['_target_name in ["libuv", "http_parser", "openssl", "openssl-cli", "cares", "node", "zlib"]', {
+ 'msvs_disabled_warnings': [
+ 4003, # not enough actual parameters for macro 'V'
+@@ -128,6 +132,14 @@
+ ],
+ }],
+ ['_target_name=="node"', {
++ 'cflags!': [
++ '-fvisibility=hidden',
++ '-fdata-sections',
++ '-ffunction-sections',
++ ],
++ 'cflags_cc!': [
++ '-fvisibility-inlines-hidden',
++ ],
+ 'include_dirs': [
+ '<(libchromiumcontent_src_dir)',
+ '<(libchromiumcontent_src_dir)/third_party/icu/source/common',
+@@ -228,6 +240,21 @@
+ }], # OS=="win"
+ ],
+ }],
++ ['_target_name=="shell_runner_host_lib"', {
++ 'conditions': [
++ ['icu_use_data_file_flag==1', {
++ 'defines': ['ICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE'],
++ }, { # else icu_use_data_file_flag !=1
++ 'conditions': [
++ ['OS=="win"', {
++ 'defines': ['ICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_SHARED'],
++ }, {
++ 'defines': ['ICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC'],
++ }],
++ ],
++ }],
++ ],
++ }],
+ ],
+ 'msvs_cygwin_shell': 0, # Strangely setting it to 1 would make building under cygwin fail.
+ 'msvs_disabled_warnings': [
+diff --git a/electron.gyp b/electron.gyp
+index b415525b1..4d0185561 100644
+--- a/electron.gyp
++++ b/electron.gyp
+@@ -191,7 +191,7 @@
+ }, {
+ 'copied_libraries': [
+ '<(PRODUCT_DIR)/lib/libnode.so',
+- '<(libchromiumcontent_dir)/libffmpeg.so',
++ '<@(libchromiumcontent_shared_v8_libraries)',
+ ],
+ }],
+ ],
+@@ -200,7 +200,6 @@
+ 'files': [
+ '<@(copied_libraries)',
+ '<(libchromiumcontent_dir)/locales',
+- '<(libchromiumcontent_dir)/icudtl.dat',
+ '<(libchromiumcontent_dir)/blink_image_resources_200_percent.pak',
+ '<(libchromiumcontent_dir)/content_resources_200_percent.pak',
+ '<(libchromiumcontent_dir)/content_shell.pak',
+@@ -245,15 +244,17 @@
+ '<@(lib_sources)',
+ ],
+ 'include_dirs': [
+- '.',
+ 'chromium_src',
++ '.',
+ 'vendor/brightray',
+ 'vendor/native_mate',
++ # libicu headers shim.
++ '<(SHARED_INTERMEDIATE_DIR)/shim_headers/icui18n_shim',
++ '<(SHARED_INTERMEDIATE_DIR)/shim_headers/icuuc_shim',
+ # Include atom_natives.h.
+ '<(SHARED_INTERMEDIATE_DIR)',
+ # Include directories for uv and node.
+ 'vendor/node/src',
+- 'vendor/node/deps/http_parser',
+ 'vendor/node/deps/uv/include',
+ # The `node.h` is using `#include"v8.h"`.
+ '<(libchromiumcontent_src_dir)/v8/include',
+@@ -342,11 +343,12 @@
+ '<@(lib_sources_nss)',
+ ],
+ 'link_settings': {
++ 'libraries': [ '<@(libchromiumcontent_v8_libraries)' ],
+ 'ldflags': [
+ # Make binary search for libraries under current directory, so we
+ # don't have to manually set $LD_LIBRARY_PATH:
+ # http://serverfault.com/questions/279068/cant-find-so-in-the-same-directory-as-the-executable
+- '-rpath \$$ORIGIN',
++ '-Wl,-rpath=\$$ORIGIN/',
+ # Make native module dynamic loading work.
+ '-rdynamic',
+ ],
+@@ -368,6 +370,9 @@
+ {
+ 'target_name': 'js2asar',
+ 'type': 'none',
++ 'dependencies': [
++ 'nodebin'
++ ],
+ 'actions': [
+ {
+ 'action_name': 'js2asar',
+@@ -389,6 +394,7 @@
+ 'action': [
+ 'python',
+ 'tools/js2asar.py',
++ '<(PRODUCT_DIR)/nodebin',
+ '<@(_outputs)',
+ 'lib',
+ '<@(_inputs)',
+@@ -399,6 +405,9 @@
+ {
+ 'target_name': 'app2asar',
+ 'type': 'none',
++ 'dependencies': [
++ 'nodebin'
++ ],
+ 'actions': [
+ {
+ 'action_name': 'app2asar',
+@@ -420,6 +429,7 @@
+ 'action': [
+ 'python',
+ 'tools/js2asar.py',
++ '<(PRODUCT_DIR)/nodebin',
+ '<@(_outputs)',
+ 'default_app',
+ '<@(_inputs)',
+@@ -445,6 +455,7 @@
+ 'dependencies': [
+ # depend on this target to ensure the '<(js2c_input_dir)' is created
+ 'atom_js2c_copy',
++ 'nodebin'
+ ],
+ 'variables': {
+ 'sandbox_args': [
+@@ -474,11 +485,9 @@
+ '<(js2c_input_dir)/preload_bundle.js',
+ ],
+ 'action': [
+- 'npm',
+- 'run',
+- '--silent',
+- 'browserify',
+- '--',
++ 'python',
++ 'tools/browserify.py',
++ '<(PRODUCT_DIR)/nodebin',
+ '<@(sandbox_args)',
+ '-o',
+ '<@(_outputs)',
+@@ -493,12 +502,11 @@
+ '<(js2c_input_dir)/isolated_bundle.js',
+ ],
+ 'action': [
+- 'npm',
+- 'run',
+- '--silent',
+- 'browserify',
+- '--',
++ 'python',
++ 'tools/browserify.py',
++ '<(PRODUCT_DIR)/nodebin',
+ '<@(isolated_args)',
++ 'lib/isolated_renderer/init.js',
+ '-o',
+ '<@(_outputs)',
+ ],
+@@ -533,6 +541,42 @@
+ }
+ ],
+ }, # target atom_js2c
++ {
++ 'target_name': 'nodebin',
++ 'type': 'executable',
++ 'defines': [
++ 'ELECTRON_NODE_BUILD_NO_ASAR'
++ ],
++ 'sources': [
++ 'vendor/node/src/node_main.cc',
++ ],
++ 'dependencies': [
++ 'vendor/node/node.gyp:node',
++ ],
++ 'include_dirs': [
++ '.',
++ '<(node_v8_path)/include',
++ 'vendor/native_mate',
++ # Include atom_natives.h.
++ '<(SHARED_INTERMEDIATE_DIR)',
++ # Include directories for uv and node.
++ 'vendor/node/src',
++ 'vendor/node/deps/uv/include',
++ '<(libchromiumcontent_src_dir)',
++ # The `node.h` is using `#include"v8.h"`.
++ '<(libchromiumcontent_src_dir)/v8/include',
++ # The `node.h` is using `#include"ares.h"`.
++ 'vendor/node/deps/cares/include',
++ ],
++ 'link_settings': {
++ 'libraries': [ '<@(libchromiumcontent_v8_libraries)' ],
++ 'ldflags': [
++ '-Wl,-rpath=\$$ORIGIN/',
++ # Make native module dynamic loading work.
++ '-rdynamic',
++ ],
++ },
++ }, # target nodebin
+ ],
+ 'conditions': [
+ ['OS=="mac"', {
+diff --git a/toolchain.gypi b/toolchain.gypi
+index 1c5f8a713..c20ed1a0f 100644
+--- a/toolchain.gypi
++++ b/toolchain.gypi
+@@ -16,7 +16,7 @@
+ 'arm_neon%': 1,
+
+ # Abosulte path to source root.
+- 'source_root%': '<!(node <(DEPTH)/tools/atom_source_root.js)',
++ 'source_root%': '<!(python <(DEPTH)/tools/atom_source_root.py)',
+ },
+
+ # Copy conditionally-set variables out one scope.
+@@ -40,34 +40,6 @@
+ 'mac_sdk%': '<!(python <(DEPTH)/tools/mac/find_sdk.py <(mac_sdk_min))',
+ }],
+
+- ['OS=="linux"', {
+- 'variables': {
+- # The system libdir used for this ABI.
+- 'system_libdir%': 'lib',
+-
+- # Setting the path to sysroot.
+- 'conditions': [
+- ['target_arch=="arm"', {
+- # sysroot needs to be an absolute path otherwise it generates
+- # incorrect results when passed to pkg-config
+- 'sysroot%': '<(source_root)/vendor/debian_wheezy_arm-sysroot',
+- }],
+- ['target_arch=="ia32"', {
+- 'sysroot%': '<(source_root)/vendor/debian_wheezy_i386-sysroot',
+- }],
+- ['target_arch=="x64"', {
+- 'sysroot%': '<(source_root)/vendor/debian_wheezy_amd64-sysroot',
+- }],
+- ],
+- },
+- # Copy conditionally-set variables out one scope.
+- 'sysroot%': '<(sysroot)',
+- 'system_libdir%': '<(system_libdir)',
+-
+- # Redirect pkg-config to search from sysroot.
+- 'pkg-config%': '<(source_root)/tools/linux/pkg-config-wrapper "<(sysroot)" "<(target_arch)" "<(system_libdir)"',
+- }],
+-
+ # Set default compiler flags depending on ARM version.
+ ['arm_version==6', {
+ 'arm_arch%': 'armv6',
+@@ -136,23 +108,6 @@
+ },
+ }],
+
+- # Setup sysroot environment.
+- ['OS=="linux" and target_arch in ["arm", "ia32", "x64"]', {
+- 'target_defaults': {
+- 'target_conditions': [
+- ['_toolset=="target"', {
+- 'cflags': [
+- '--sysroot=<(sysroot)',
+- ],
+- 'ldflags': [
+- '--sysroot=<(sysroot)',
+- '<!(<(source_root)/tools/linux/sysroot_ld_path.sh <(sysroot))',
+- ],
+- }]
+- ],
+- },
+- }], # sysroot
+-
+ # Setup cross-compilation on Linux.
+ ['OS=="linux"', {
+ 'target_defaults': {
+@@ -179,6 +134,35 @@
+ 'ldflags': [
+ '-m64',
+ ],
++ 'conditions': [
++ ['use_lto==1 and clang==0', {
++ 'cflags': [
++ '-fno-fat-lto-objects',
++ '-fuse-linker-plugin',
++ '-flto=4',
++ '--param=lto-partitions=1',
++ ],
++ 'ldflags': [
++ '-fno-fat-lto-objects',
++ '-fuse-linker-plugin',
++ '-flto=4',
++ '--param=lto-partitions=1',
++ ],
++ 'arflags': [
++ '<!@(python <(DEPTH)/tools/ar-flags.py)',
++ ]
++ }],
++ ['use_lto==1 and clang==1', {
++ 'cflags': [
++ '-flto',
++ '-fwhole-program-vtables'
++ ],
++ 'ldflags': [
++ '-flto',
++ '-fwhole-program-vtables'
++ ],
++ }],
++ ],
+ }], # target_arch=="x64" and _toolset=="target"
+ ['target_arch=="arm" and _toolset=="target"', {
+ 'conditions': [
+diff --git a/tools/ar-flags.py b/tools/ar-flags.py
+new file mode 100644
+index 000000000..80b338a6e
+--- /dev/null
++++ b/tools/ar-flags.py
+@@ -0,0 +1,15 @@
++#!/usr/bin/env python
++
++import os
++import subprocess
++
++if __name__ == '__main__':
++ cc = os.environ.get('CC', '/usr/bin/cc')
++ gcc_version = subprocess.check_output(
++ [cc, '-dumpversion'], universal_newlines=True).strip(' \n')
++
++ lto_plugin = os.path.join(
++ '/usr/libexec/gcc/x86_64-pc-linux-gnu/', gcc_version,
++ 'liblto_plugin.so')
++
++ print('--plugin={}'.format(lto_plugin))
+diff --git a/tools/atom_source_root.py b/tools/atom_source_root.py
+new file mode 100644
+index 000000000..316e99701
+--- /dev/null
++++ b/tools/atom_source_root.py
+@@ -0,0 +1,5 @@
++#!/usr/bin/env python
++
++import os.path
++
++print(os.path.abspath(os.path.dirname(os.path.dirname(__file__))))
+diff --git a/tools/browserify.py b/tools/browserify.py
+new file mode 100644
+index 000000000..15472c953
+--- /dev/null
++++ b/tools/browserify.py
+@@ -0,0 +1,24 @@
++#!/usr/bin/env python
++
++import os
++import subprocess
++import sys
++
++SOURCE_ROOT = os.path.dirname(os.path.dirname(__file__))
++
++
++def main():
++ node = sys.argv[1]
++ args = sys.argv[2:]
++
++ call_browserify(node, args)
++
++
++def call_browserify(node, args):
++ browserify = os.path.join(
++ SOURCE_ROOT, 'node_modules', '.bin', 'browserify')
++ subprocess.check_call([node, browserify] + args)
++
++
++if __name__ == '__main__':
++ sys.exit(main())
+diff --git a/tools/get-endianness.py b/tools/get-endianness.py
+new file mode 100644
+index 000000000..31507936f
+--- /dev/null
++++ b/tools/get-endianness.py
+@@ -0,0 +1,4 @@
++#!/usr/bin/env python
++
++import sys
++print(sys.byteorder)
+diff --git a/tools/js2asar.py b/tools/js2asar.py
+index adad1751e..ca7686893 100755
+--- a/tools/js2asar.py
++++ b/tools/js2asar.py
+@@ -11,13 +11,14 @@ SOURCE_ROOT = os.path.dirname(os.path.dirname(__file__))
+
+
+ def main():
+- archive = sys.argv[1]
+- folder_name = sys.argv[2]
+- source_files = sys.argv[3:]
++ node = sys.argv[1]
++ archive = sys.argv[2]
++ folder_name = sys.argv[3]
++ source_files = sys.argv[4:]
+
+ output_dir = tempfile.mkdtemp()
+ copy_files(source_files, output_dir)
+- call_asar(archive, os.path.join(output_dir, folder_name))
++ call_asar(node, archive, os.path.join(output_dir, folder_name))
+ shutil.rmtree(output_dir)
+
+
+@@ -28,11 +29,11 @@ def copy_files(source_files, output_dir):
+ shutil.copy2(source_file, output_path)
+
+
+-def call_asar(archive, output_dir):
++def call_asar(node, archive, output_dir):
+ asar = os.path.join(SOURCE_ROOT, 'node_modules', '.bin', 'asar')
+ if sys.platform in ['win32', 'cygwin']:
+ asar += '.cmd'
+- subprocess.check_call([asar, 'pack', output_dir, archive])
++ subprocess.check_call([node, asar, 'pack', output_dir, archive])
+
+
+ def safe_mkdir(path):
+--
+2.14.1
+
diff --git a/dev-util/electron/files/electron-vendor-node-external-snapshots-r0.patch b/dev-util/electron/files/electron-vendor-node-external-snapshots-r0.patch
new file mode 100644
index 000000000000..d3fce0868cd4
--- /dev/null
+++ b/dev-util/electron/files/electron-vendor-node-external-snapshots-r0.patch
@@ -0,0 +1,116 @@
+From 820cb5ce8e1aa08e68fe0f2e3cbbe74972e7af84 Mon Sep 17 00:00:00 2001
+From: Elvis Pranskevichus <elvis@magic.io>
+Date: Sat, 11 Jun 2016 18:27:19 -0400
+Subject: [PATCH] Add support for external V8 snapshots
+
+---
+ src/node.cc | 86 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ 1 file changed, 86 insertions(+)
+
+diff --git a/src/node.cc b/src/node.cc
+index 961abc2..4dac94b 100644
+--- a/src/node.cc
++++ b/src/node.cc
+@@ -4188,6 +4188,90 @@ Environment* CreateEnvironment(Isolate* isolate,
+ return env;
+ }
+
++#include <sys/mman.h>
++
++const char kProcSelfExe[] = "/proc/self/exe";
++const char kNativesFileName[] = "natives_blob.bin";
++const char kSnapshotFileName[] = "snapshot_blob.bin";
++const char *g_mapped_natives = nullptr;
++const char *g_mapped_snapshot = nullptr;
++
++static char* SnapshotPath(const char* filename) {
++ char *path;
++ char *dir;
++ ssize_t r;
++
++ path = reinterpret_cast<char*>(malloc(4096 + strlen(filename) + 2));
++ if (path == nullptr) {
++ fprintf(stderr, "out of memory\n");
++ ABORT();
++ }
++
++ r = readlink(kProcSelfExe, path, 4096 + 1);
++ if (r == -1) {
++ perror("could not determine node executable directory");
++ ABORT();
++ }
++
++ path[r] = '\0';
++
++ dir = strrchr(path, '/');
++
++ strcpy(dir + 1, filename);
++
++ return path;
++}
++
++static void LoadV8Snapshot(const char* name, const char** addr, size_t *size) {
++ char *path = SnapshotPath(name);
++ int fd;
++ struct stat sb;
++
++ fd = open(path, O_RDONLY);
++
++ if (fd == -1) {
++ fprintf(stderr, "could not open snapshot file '%s': %s\n",
++ path, sys_errlist[errno]);
++ ABORT();
++ }
++
++ if (fstat(fd, &sb) == -1) {
++ fprintf(stderr, "could not stat snapshot file '%s': %s\n",
++ path, sys_errlist[errno]);
++ ABORT();
++ }
++
++ *size = sb.st_size;
++
++ *addr = reinterpret_cast<const char*>(
++ mmap(NULL, sb.st_size, PROT_READ, MAP_PRIVATE, fd, 0));
++ if (*addr == MAP_FAILED) {
++ fprintf(stderr, "could not read snapshot file '%s': %s\n",
++ path, sys_errlist[errno]);
++ ABORT();
++ }
++
++ close(fd);
++ free(path);
++}
++
++static void LoadV8Snapshots() {
++ size_t natives_size;
++ size_t snapshot_size;
++
++ LoadV8Snapshot(kNativesFileName, &g_mapped_natives, &natives_size);
++ LoadV8Snapshot(kSnapshotFileName, &g_mapped_snapshot, &snapshot_size);
++
++ v8::StartupData natives;
++ natives.data = g_mapped_natives;
++ natives.raw_size = natives_size;
++ V8::SetNativesDataBlob(&natives);
++
++ v8::StartupData snapshot;
++ snapshot.data = g_mapped_snapshot;
++ snapshot.raw_size = snapshot_size;
++ V8::SetSnapshotDataBlob(&snapshot);
++}
+
+ // Entry point for new node instances, also called directly for the main
+ // node instance.
+@@ -4301,6 +4385,8 @@ int Start(int argc, char** argv) {
+ const char** exec_argv;
+ Init(&argc, const_cast<const char**>(argv), &exec_argc, &exec_argv);
+
++ LoadV8Snapshots();
++
+ #if HAVE_OPENSSL
+ #ifdef NODE_FIPS_MODE
+ // In the case of FIPS builds we should make sure
+--
+2.7.3
+
diff --git a/dev-util/electron/files/electron-vendor-node-external-snapshots-r2.patch b/dev-util/electron/files/electron-vendor-node-external-snapshots-r2.patch
new file mode 100644
index 000000000000..b3cd18c2fe2b
--- /dev/null
+++ b/dev-util/electron/files/electron-vendor-node-external-snapshots-r2.patch
@@ -0,0 +1,117 @@
+From da7d4d995b31fcdc94158bbc4adc01bf9bab78a9 Mon Sep 17 00:00:00 2001
+From: Elvis Pranskevichus <elvis@magic.io>
+Date: Sat, 11 Jun 2016 18:27:19 -0400
+Subject: [PATCH] Add support for external V8 snapshots
+
+---
+ src/node.cc | 87 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ 1 file changed, 87 insertions(+)
+
+diff --git a/src/node.cc b/src/node.cc
+index 66233d451..96e4e22d6 100644
+--- a/src/node.cc
++++ b/src/node.cc
+@@ -4493,6 +4493,91 @@ inline int Start(Isolate* isolate, IsolateData* isolate_data,
+ return exit_code;
+ }
+
++#include <sys/mman.h>
++
++const char kProcSelfExe[] = "/proc/self/exe";
++const char kNativesFileName[] = "natives_blob.bin";
++const char kSnapshotFileName[] = "snapshot_blob.bin";
++const char *g_mapped_natives = nullptr;
++const char *g_mapped_snapshot = nullptr;
++
++static char* SnapshotPath(const char* filename) {
++ char *path;
++ char *dir;
++ ssize_t r;
++
++ path = reinterpret_cast<char*>(malloc(4096 + strlen(filename) + 2));
++ if (path == nullptr) {
++ fprintf(stderr, "out of memory\n");
++ ABORT();
++ }
++
++ r = readlink(kProcSelfExe, path, 4096 + 1);
++ if (r == -1) {
++ perror("could not determine node executable directory");
++ ABORT();
++ }
++
++ path[r] = '\0';
++
++ dir = strrchr(path, '/');
++
++ strcpy(dir + 1, filename);
++
++ return path;
++}
++
++static void LoadV8Snapshot(const char* name, const char** addr, size_t *size) {
++ char *path = SnapshotPath(name);
++ int fd;
++ struct stat sb;
++
++ fd = open(path, O_RDONLY);
++
++ if (fd == -1) {
++ fprintf(stderr, "could not open snapshot file '%s': %s\n",
++ path, sys_errlist[errno]);
++ ABORT();
++ }
++
++ if (fstat(fd, &sb) == -1) {
++ fprintf(stderr, "could not stat snapshot file '%s': %s\n",
++ path, sys_errlist[errno]);
++ ABORT();
++ }
++
++ *size = sb.st_size;
++
++ *addr = reinterpret_cast<const char*>(
++ mmap(NULL, sb.st_size, PROT_READ, MAP_PRIVATE, fd, 0));
++ if (*addr == MAP_FAILED) {
++ fprintf(stderr, "could not read snapshot file '%s': %s\n",
++ path, sys_errlist[errno]);
++ ABORT();
++ }
++
++ close(fd);
++ free(path);
++}
++
++static void LoadV8Snapshots() {
++ size_t natives_size;
++ size_t snapshot_size;
++
++ LoadV8Snapshot(kNativesFileName, &g_mapped_natives, &natives_size);
++ LoadV8Snapshot(kSnapshotFileName, &g_mapped_snapshot, &snapshot_size);
++
++ v8::StartupData natives;
++ natives.data = g_mapped_natives;
++ natives.raw_size = natives_size;
++ V8::SetNativesDataBlob(&natives);
++
++ v8::StartupData snapshot;
++ snapshot.data = g_mapped_snapshot;
++ snapshot.raw_size = snapshot_size;
++ V8::SetSnapshotDataBlob(&snapshot);
++}
++
+ inline int Start(uv_loop_t* event_loop,
+ int argc, const char* const* argv,
+ int exec_argc, const char* const* exec_argv) {
+@@ -4557,6 +4642,8 @@ int Start(int argc, char** argv) {
+ const char** exec_argv;
+ Init(&argc, const_cast<const char**>(argv), &exec_argc, &exec_argv);
+
++ LoadV8Snapshots();
++
+ #if HAVE_OPENSSL
+ if (const char* extra = secure_getenv("NODE_EXTRA_CA_CERTS"))
+ crypto::UseExtraCaCerts(extra);
+--
+2.11.1
+
diff --git a/dev-util/electron/files/toolchain/BUILD.gn b/dev-util/electron/files/toolchain/BUILD.gn
new file mode 100644
index 000000000000..78f7b57e3be5
--- /dev/null
+++ b/dev-util/electron/files/toolchain/BUILD.gn
@@ -0,0 +1,19 @@
+import("//build/toolchain/gcc_toolchain.gni")
+
+gcc_toolchain("default") {
+ cc = getenv("CC")
+ cxx = getenv("CXX")
+ ar = getenv("AR")
+ nm = getenv("NM")
+ ld = cxx
+
+ extra_cflags = getenv("CFLAGS")
+ extra_cppflags = getenv("CPPFLAGS")
+ extra_cxxflags = getenv("CXXFLAGS")
+ extra_ldflags = getenv("LDFLAGS")
+
+ toolchain_args = {
+ current_cpu = current_cpu
+ current_os = current_os
+ }
+}
diff --git a/dev-util/electron/metadata.xml b/dev-util/electron/metadata.xml
new file mode 100644
index 000000000000..bb2475cf47a7
--- /dev/null
+++ b/dev-util/electron/metadata.xml
@@ -0,0 +1,26 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>elvis@magic.io</email>
+ <name>Elvis Pranskevichus</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <longdescription>Electron is a cross platform application development framework based on web technologies based on Chromium</longdescription>
+ <use>
+ <flag name="hidpi">Enable support for high-resolution screens (high dots per inch)</flag>
+ <flag name="lto">Build with link time optimization enabled</flag>
+ <flag name="pic">Disable optimized assembly code that is not PIC friendly</flag>
+ <flag name="proprietary-codecs">Enable proprietary codecs like H.264, MP3</flag>
+ <flag name="system-ffmpeg">Use system ffmpeg instead of the bundled one</flag>
+ <flag name="tcmalloc">Use bundled tcmalloc instead of system malloc</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">elprans/asar</remote-id>
+ <remote-id type="github">elprans/grit</remote-id>
+ <remote-id type="github">elprans/node-browserify</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/elfkickers/Manifest b/dev-util/elfkickers/Manifest
new file mode 100644
index 000000000000..77146ccf5723
--- /dev/null
+++ b/dev-util/elfkickers/Manifest
@@ -0,0 +1,12 @@
+AUX add-freebsd-elf-defs.patch 1937 SHA256 76b5cf0d09247787e7f5e528007df967220629442c1d7109c31c2b062a054e2b SHA512 3f480926cc89ebf3a02bf0fbb8e304226e9b58bed2bc887854a8935915a444822093264e98856f55fb76e3c32127914e171e3da5ebfc05fed5a2d02931e970c2 WHIRLPOOL 64f905e40a16c33c65053c9b01514dddb74614c04fe344299f215d0253e9b8fc0a28718cc6c44758c3619b9df64e869204edd8ea059725d0f5fc80dafd6e6157
+AUX create-destdir-path.patch 472 SHA256 fab7f8335a545b62b2186bc900a69150a36432a7ff977a1bae6b8279c3ca9304 SHA512 d84f70310786a5f550164145c1983d826a8ccf6616bf691e19592f91aa7c6549e96fefe27e5622fbca6c4db1cfa75362a67ba7b8d6d4fb365b34cf527743a3cf WHIRLPOOL 753faf51f614115046ee3e494793d6c1956ac7c8d5315abe62b6527f3b920f6f017bb4f2fdae3b7763090d14894062df495fdc9e7eeb9320408253836d33349d
+AUX elfkickers-3.1-create-destdir-path.patch 620 SHA256 093271aaa02ffd1925623558cee1ac29babf83af3ea62519c5c6535b77678be1 SHA512 63805893f21f7b4688c4363fa0e9fdd721ad14a03e657ca73b80850726c7c3178fc538005d5e8a47746f0496aea2b9899a39b511dc73556231141a02cf46d281 WHIRLPOOL df261a18cb2a9445c097a28d3f5f7330118685ed0cf82225137284a34dfe77dc27d913f497ec459378266b6189a19e013ea17874970a1b8ef6ced5b8ce225d60
+AUX elfkickers-3.1-respect-CFLAGS-LDFLAGS.patch 3246 SHA256 3b3e3dd52e167265c1c1f2c1b156957cb1a6347dcbf12e3d0aa081aad97f87c0 SHA512 fc44d407d1cab8e26af3a7011d82a8f236ef330d881308c28ecc0685e5e8e11b3477ed67c59284ed0905ddd5d62e76f88b99ee4b27dcfb2f5d188f0318ebc1ef WHIRLPOOL ababf3f4ffd35c78c5783fd08e7406d1b5c5bdd6c5e5831e720d43b41050af9703813617552bd0f62e49a455aeedd01bf5c9335c4efeaed01f8ff59fc0ffbc7d
+AUX respect-CFLAGS-LDFLAGS.patch 3237 SHA256 738b1cd1d32d10816a422031902cd946d446751df4592fe29bb5f1d8c4ee6e0f SHA512 85b1dd45111e7171701c4ef81e3aa23fbd5088c50cce890cf1d27c4de3560311f215bd43e3b0295e9c7917b07dca5c3431c2a705bbef80c0d90fd409ccebe664 WHIRLPOOL 0161f435f0c0128ea9c030d826f28225e31d6715c74f8bf64a898d6bcb3fc4e6817230e3893d8bc104c8c2f11fac78e74e43bf41f67f40cd19c785575d7e9f45
+DIST ELFkickers-3.0a.tar.gz 100112 SHA256 c3429957142169c21ff550e0c06bbb0d48bb76437c4ccbc67164bf56b6e9774f SHA512 c90a763e5b60069f9cb67fd5c114da753184ff466c3db1dd9a44e86de9408a4384a3ac00a8c67191ca9a6556fd0db11058542361e987710f9b5bedabaec2717c WHIRLPOOL 9ed47c5c64c79dca6bce891beb430502b33481b3bc14f19f46e26157b6772ca5d1e6bc00907337dd3dc07d163b6a0cc246fef7e4afd36a85547e210b7b4bd2ea
+DIST ELFkickers-3.1.tar.gz 101406 SHA256 6d663fb06dd723a078282937052368498e3860d3c42f0d765579d496e5f51a58 SHA512 a0b1ba6cdb23b12f41b81cac1960b15cc2a4418cef48923900b668fa5132ce428bab16b1780698864fdf0c374762d57f471fc124d231f8de143be172c757000b WHIRLPOOL 550df625744d0de9170623ae6aa849840309369085be65d7784b81147826109f8c2997d65cdc20359f728b468a94b212bc5c89d6236a0cb05c9f98fa8e3fec9d
+EBUILD elfkickers-3.0a.ebuild 864 SHA256 0ff544e536c043971229c55d178ad07fd4b2371c4dea031591a2159e9e998e0a SHA512 cda14dadbe6dadfeb44f9df4955c118c19ba9ccb66941e1653a95615ae812d22fecb8aaff8e7472fb8a246e194f238717b1512ff83aac1a7348bb684436b968c WHIRLPOOL 24f7119e000a20d64759e9e4f4fe95e6c41eafb364920a16b945958a2dad5d0f5fcd1aa54473171c990613b532fbb5e45403dc66c4666a5efb44cd5c6ae086ad
+EBUILD elfkickers-3.1.ebuild 891 SHA256 232607a84e4fcbbe6b0182ac35bc2ac61335f4ab536b9973048e82e1549607e8 SHA512 efccb8fb37470c1380db2f4f81f21bbe877bf9a4e026a3eedc3cc0c8eb8e7025f18a3297023abf1a69db7607ca4ec1aabdbec6d396050d11c25e94d6dd28966d WHIRLPOOL 1aca6159e92a5bd3ef0e8cb00e00b7c0f3327fd7e72e523cdf9bb3ec7f08717e709b000d80f65854d6892e76389557b6fdcbefe22ce0ee10076e7de5b58f06f8
+MISC ChangeLog 3108 SHA256 d9afbcd3108d9be5c4a3f1d834bb890183964be7ac9aaaf5f802ef278da35113 SHA512 d8cdd9010b91ae59e4a22dc30701040513ea9bb4029251d477e23cd2cd2887636cdc76fdac2cb2ef35db1456ef51a5eadbb89a123009ae6556688d09963ba81f WHIRLPOOL 802e870fde3dfceed245f646a15cc535cd049a1bb41230ae08e3190e9c3826f1a4be8b142ecbaa33e97ad55edfd84ac5527e59f6803b79381d03caac35fa67b7
+MISC ChangeLog-2015 7382 SHA256 7ba9b305e67a80eb673fae1954ef68e6afe8e242baf1a5e5b5632a2d44c933b7 SHA512 09daa032337721daab2a51f676959946b70ce6bc368a93435aeb9cd3a9a39cf4185836b5b2e2e75a7f319b09ebf656bab2bf11a412b5e5354ebbb7c5150745b8 WHIRLPOOL 8ea76b68ee2ec3a2e30d0eb2cfc44e4bad75ada3d5d8425e4b422e74bb47d752f275cdb974ae6249a26f1bbae1f2ade746f449617c50b172a8c3ddd3c8578408
+MISC metadata.xml 705 SHA256 f54880f2d987dc5e3db1eae4fc6264e9c746ea03a6a5e206ecc27da217083184 SHA512 d44670d8094e1e4a1926dc4d06cb1c94a99bf0598f3319b366d192ab7820a3812040df0500d1df2f4f69db4f25315ba3e66e55050bb88b1fdc763dfbd732a2f0 WHIRLPOOL 891220735ccf0484e917830d5f7e8d8b11ae9a69914e13b10acfd65615d9396708318855a4254a2fc55228b11bfc2f1092576091b501d345bcb6234d517598d6
diff --git a/dev-util/elfkickers/elfkickers-3.0a.ebuild b/dev-util/elfkickers/elfkickers-3.0a.ebuild
new file mode 100644
index 000000000000..7e9fab33ac24
--- /dev/null
+++ b/dev-util/elfkickers/elfkickers-3.0a.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+
+inherit eutils toolchain-funcs
+
+MY_PN=${PN/elf/ELF}-${PV}
+S=${WORKDIR}/${MY_PN}
+
+DESCRIPTION="collection of programs to manipulate ELF files: sstrip, rebind, elfls, elftoc"
+HOMEPAGE="http://www.muppetlabs.com/~breadbox/software/elfkickers.html"
+SRC_URI="http://www.muppetlabs.com/~breadbox/pub/software/${MY_PN}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 arm ~hppa ~mips sparc x86 ~x86-fbsd"
+IUSE="doc"
+
+DEPEND="app-misc/pax-utils"
+RDEPEND=""
+
+src_prepare() {
+ epatch "${FILESDIR}"/respect-CFLAGS-LDFLAGS.patch
+ epatch "${FILESDIR}"/create-destdir-path.patch
+ epatch "${FILESDIR}"/add-freebsd-elf-defs.patch
+ sed -i -e "s:^prefix = /usr/local:prefix = ${D}:" Makefile \
+ || die "sed failed"
+}
+
+src_compile() {
+ emake CC=$(tc-getCC) all
+}
diff --git a/dev-util/elfkickers/elfkickers-3.1.ebuild b/dev-util/elfkickers/elfkickers-3.1.ebuild
new file mode 100644
index 000000000000..57d7594f539c
--- /dev/null
+++ b/dev-util/elfkickers/elfkickers-3.1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit eutils toolchain-funcs
+
+MY_PN=${PN/elf/ELF}-${PV}
+S=${WORKDIR}/${MY_PN}
+
+DESCRIPTION="collection of programs to manipulate ELF files: sstrip, rebind, elfls, elftoc"
+HOMEPAGE="http://www.muppetlabs.com/~breadbox/software/elfkickers.html"
+SRC_URI="http://www.muppetlabs.com/~breadbox/pub/software/${MY_PN}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~hppa ~mips ~sparc ~x86 ~x86-fbsd"
+IUSE="doc"
+
+DEPEND="app-misc/pax-utils"
+RDEPEND=""
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-respect-CFLAGS-LDFLAGS.patch
+ epatch "${FILESDIR}"/${P}-create-destdir-path.patch
+ epatch "${FILESDIR}"/add-freebsd-elf-defs.patch
+ sed -i -e "s:^prefix = /usr/local:prefix = ${D}:" Makefile \
+ || die "sed failed"
+ eapply_user
+}
+
+src_compile() {
+ emake CC=$(tc-getCC) all
+}
diff --git a/dev-util/elfkickers/files/add-freebsd-elf-defs.patch b/dev-util/elfkickers/files/add-freebsd-elf-defs.patch
new file mode 100644
index 000000000000..792a91d6dfb2
--- /dev/null
+++ b/dev-util/elfkickers/files/add-freebsd-elf-defs.patch
@@ -0,0 +1,68 @@
+--- ./elfrw/elfrw.h.orig 2011-05-31 01:47:08.000000000 +0200
++++ ./elfrw/elfrw.h 2011-06-08 12:16:37.000000000 +0200
+@@ -10,6 +10,24 @@
+ #include <stdio.h>
+ #include <elf.h>
+
++#ifdef __FreeBSD__
++typedef uint16_t Elf64_Section;
++
++#define PT_GNU_STACK 0x6474e551
++#define PT_GNU_RELRO 0x6474e552
++
++#if __FreeBSD_version < 700022
++#define SHT_GNU_HASH 0x6ffffff6
++#define EM_CRIS 76
++#define EM_M32R 88
++#define EM_MN10300 89
++#endif
++
++#define ELFCLASSNUM 3
++#define ELFDATANUM 3
++#define EV_NUM 2
++#endif
++
+ /*
+ * The initialization functions. Call one of these to set the flavor
+ * of ELF structures to translate to and from. The library can be
+--- ./elftoc/readelf.h.orig 2011-05-22 20:46:29.000000000 +0200
++++ ./elftoc/readelf.h 2011-06-08 12:16:37.000000000 +0200
+@@ -7,6 +7,12 @@
+ #ifndef _readelf_h_
+ #define _readelf_h_
+
++#ifdef __FreeBSD__
++#define ELFCLASSNUM 3
++#define ELFDATANUM 3
++#define EV_NUM 2
++#endif
++
+ /* Read all of the basic headers from the file image (namely the ELF
+ * header, the program segment header table, and the section header
+ * table). False is returned if the file could not be parsed as an ELF
+--- ./elftoc/pieces.c.orig 2011-05-26 03:25:14.000000000 +0200
++++ ./elftoc/pieces.c 2011-06-08 12:16:37.000000000 +0200
+@@ -16,6 +16,10 @@
+ #include "out.h"
+ #include "pieces.h"
+
++#ifdef __FreeBSD__
++typedef uint64_t Elf32_Xword;
++#endif
++
+ /* Flags used to insert warnings in the generated source code.
+ */
+ #define PW_MISALIGNED 0x0001 /* piece misaligned for original type */
+--- ./elftoc/outbase.h.orig 2011-05-22 20:46:29.000000000 +0200
++++ ./elftoc/outbase.h 2011-06-08 12:16:37.000000000 +0200
+@@ -7,6 +7,10 @@
+ #ifndef _outbase_h_
+ #define _outbase_h_
+
++#ifdef __FreeBSD__
++#define NT_AUXV 6
++#endif
++
+ /* Set the current output file. Call this before calling any output
+ * functions. (The FILE* argument is given as a void* so as to not
+ * include stdio.h here.)
diff --git a/dev-util/elfkickers/files/create-destdir-path.patch b/dev-util/elfkickers/files/create-destdir-path.patch
new file mode 100644
index 000000000000..d279db0ad606
--- /dev/null
+++ b/dev-util/elfkickers/files/create-destdir-path.patch
@@ -0,0 +1,14 @@
+--- Makefile.orig 2011-05-30 16:37:41.000000000 -0400
++++ Makefile 2011-05-30 16:38:30.000000000 -0400
+@@ -22,8 +22,9 @@
+ infect: bin/infect doc/infect.1
+
+ install: $(PROGRAMS:%=bin/%)
+- cp bin/* $(prefix)/bin/.
+- cp doc/* $(prefix)/share/man/man1/.
++ install -d $(prefix)/usr/bin $(prefix)/usr/share/man/man1
++ install bin/* $(prefix)/usr/bin
++ install -m 644 doc/* $(prefix)/usr/share/man/man1
+
+ clean:
+ for dir in elfrw $(PROGRAMS) ; do $(MAKE) -C$$dir clean ; done
diff --git a/dev-util/elfkickers/files/elfkickers-3.1-create-destdir-path.patch b/dev-util/elfkickers/files/elfkickers-3.1-create-destdir-path.patch
new file mode 100644
index 000000000000..1f0c3e94fe9b
--- /dev/null
+++ b/dev-util/elfkickers/files/elfkickers-3.1-create-destdir-path.patch
@@ -0,0 +1,17 @@
+diff -Naur ELFkickers-3.1.orig/Makefile ELFkickers-3.1/Makefile
+--- ELFkickers-3.1.orig/Makefile 2015-07-23 13:25:30.000000000 -0400
++++ ELFkickers-3.1/Makefile 2016-11-16 17:17:08.237039268 -0500
+@@ -24,10 +24,9 @@
+ infect: bin/infect doc/infect.1
+
+ install: $(PROGRAMS)
+- mkdir -p $(prefix)/bin
+- cp bin/* $(prefix)/bin/.
+- mkdir -p $(prefix)/share/man/man1
+- cp doc/* $(prefix)/share/man/man1/.
++ install -d $(prefix)/usr/bin $(prefix)/usr/share/man/man1
++ install bin/* $(prefix)/usr/bin
++ install -m 644 doc/* $(prefix)/usr/share/man/man1
+
+ clean:
+ for dir in elfrw $(PROGRAMS) ; do $(MAKE) -C$$dir clean ; done
diff --git a/dev-util/elfkickers/files/elfkickers-3.1-respect-CFLAGS-LDFLAGS.patch b/dev-util/elfkickers/files/elfkickers-3.1-respect-CFLAGS-LDFLAGS.patch
new file mode 100644
index 000000000000..b285f3b2509c
--- /dev/null
+++ b/dev-util/elfkickers/files/elfkickers-3.1-respect-CFLAGS-LDFLAGS.patch
@@ -0,0 +1,103 @@
+diff -Naur ELFkickers-3.1.orig/ebfc/Makefile ELFkickers-3.1/ebfc/Makefile
+--- ELFkickers-3.1.orig/ebfc/Makefile 2014-11-17 14:50:34.000000000 -0500
++++ ELFkickers-3.1/ebfc/Makefile 2016-11-16 17:13:53.297033908 -0500
+@@ -1,7 +1,7 @@
+ # Makefile for ebfc
+
+-CC = gcc
+-CFLAGS = -Wall -Wextra -Wno-missing-field-initializers
++CC ?= gcc
++CFLAGS += -Wno-missing-field-initializers
+
+ ebfc: ebfc.o brainfuck.o libelfparts.a
+
+diff -Naur ELFkickers-3.1.orig/elfls/Makefile ELFkickers-3.1/elfls/Makefile
+--- ELFkickers-3.1.orig/elfls/Makefile 2011-05-31 02:53:05.000000000 -0400
++++ ELFkickers-3.1/elfls/Makefile 2016-11-16 17:12:48.885032137 -0500
+@@ -1,7 +1,7 @@
+ # Makefile for elfls
+
+-CC = gcc
+-CFLAGS = -Wall -Wextra -I../elfrw
++CC ?= gcc
++CFLAGS += -I../elfrw
+
+ elfls: elfls.c ../elfrw/libelfrw.a
+
+diff -Naur ELFkickers-3.1.orig/elfrw/Makefile ELFkickers-3.1/elfrw/Makefile
+--- ELFkickers-3.1.orig/elfrw/Makefile 2011-05-22 14:02:12.000000000 -0400
++++ ELFkickers-3.1/elfrw/Makefile 2016-11-16 17:13:06.653032625 -0500
+@@ -1,7 +1,6 @@
+ # Makefile for libelfrw.a
+
+-CC = gcc
+-CFLAGS = -Wall -Wextra -O3
++CC ?= gcc
+
+ LIBOBJS = elfrw.o elfrw_dyn.o elfrw_ehdr.o elfrw_phdr.o elfrw_rel.o \
+ elfrw_shdr.o elfrw_sym.o elfrw_ver.o
+diff -Naur ELFkickers-3.1.orig/elftoc/Makefile ELFkickers-3.1/elftoc/Makefile
+--- ELFkickers-3.1.orig/elftoc/Makefile 2011-05-23 23:30:22.000000000 -0400
++++ ELFkickers-3.1/elftoc/Makefile 2016-11-16 17:12:57.549032375 -0500
+@@ -1,8 +1,6 @@
+ # Makefile for elftoc
+
+-CC = gcc
+-CFLAGS = -Wall -Wextra
+-LDFLAGS = -Wall -Wextra
++CC ?= gcc
+
+ OBJS = gen.o names.o address.o readelf.o shdrtab.o phdrtab.o dynamic.o \
+ pieces.o outbase.o outitems.o outelf64.o outelf32.o out.o elftoc.o
+diff -Naur ELFkickers-3.1.orig/infect/Makefile ELFkickers-3.1/infect/Makefile
+--- ELFkickers-3.1.orig/infect/Makefile 2011-05-31 02:52:27.000000000 -0400
++++ ELFkickers-3.1/infect/Makefile 2016-11-16 17:12:30.617031634 -0500
+@@ -1,7 +1,6 @@
+ # Makefile for infect
+
+-CC = gcc
+-CFLAGS = -Wall -Wextra
++CC ?= gcc
+
+ infect: infect.c
+
+diff -Naur ELFkickers-3.1.orig/objres/Makefile ELFkickers-3.1/objres/Makefile
+--- ELFkickers-3.1.orig/objres/Makefile 2016-11-14 16:46:24.000000000 -0500
++++ ELFkickers-3.1/objres/Makefile 2016-11-16 17:13:40.225033549 -0500
+@@ -1,8 +1,7 @@
+ # Makefile for objres
+
+-CC = gcc
+-CFLAGS = -Wall -Wextra -I../elfrw
+-LDFLAGS = -Wall -Wextra
++CC ?= gcc
++CFLAGS += -I../elfrw
+
+ objres: objres.o ../elfrw/libelfrw.a
+
+diff -Naur ELFkickers-3.1.orig/rebind/Makefile ELFkickers-3.1/rebind/Makefile
+--- ELFkickers-3.1.orig/rebind/Makefile 2011-05-23 23:29:16.000000000 -0400
++++ ELFkickers-3.1/rebind/Makefile 2016-11-16 17:13:17.373032920 -0500
+@@ -1,7 +1,7 @@
+ # Makefile for rebind
+
+-CC = gcc
+-CFLAGS = -Wall -Wextra -I../elfrw
++CC ?= gcc
++CFLAGS += -I../elfrw
+
+ rebind: rebind.c ../elfrw/libelfrw.a
+
+diff -Naur ELFkickers-3.1.orig/sstrip/Makefile ELFkickers-3.1/sstrip/Makefile
+--- ELFkickers-3.1.orig/sstrip/Makefile 2011-05-23 23:29:58.000000000 -0400
++++ ELFkickers-3.1/sstrip/Makefile 2016-11-16 17:14:05.949034256 -0500
+@@ -1,7 +1,7 @@
+ # Makefile for sstrip
+
+-CC = gcc
+-CFLAGS = -Wall -Wextra -I../elfrw
++CC ?= gcc
++CFLAGS += -I../elfrw
+
+ sstrip: sstrip.c ../elfrw/libelfrw.a
+
diff --git a/dev-util/elfkickers/files/respect-CFLAGS-LDFLAGS.patch b/dev-util/elfkickers/files/respect-CFLAGS-LDFLAGS.patch
new file mode 100644
index 000000000000..6663ef8e79af
--- /dev/null
+++ b/dev-util/elfkickers/files/respect-CFLAGS-LDFLAGS.patch
@@ -0,0 +1,102 @@
+diff -Naur ELFkickers-3.0.orig//ebfc/Makefile ELFkickers-3.0/ebfc/Makefile
+--- ELFkickers-3.0.orig//ebfc/Makefile 2011-05-24 00:51:07.000000000 -0400
++++ ELFkickers-3.0/ebfc/Makefile 2011-06-02 23:05:30.000000000 -0400
+@@ -1,7 +1,7 @@
+ # Makefile for ebfc
+
+-CC = gcc
+-CFLAGS = -Wall -Wextra -Wno-missing-field-initializers
++CC ?= gcc
++CFLAGS += -Wno-missing-field-initializers
+
+ ebfc: ebfc.o brainfuck.o libelfparts.a
+
+diff -Naur ELFkickers-3.0.orig//elfls/Makefile ELFkickers-3.0/elfls/Makefile
+--- ELFkickers-3.0.orig//elfls/Makefile 2011-05-31 02:53:05.000000000 -0400
++++ ELFkickers-3.0/elfls/Makefile 2011-06-02 23:04:15.000000000 -0400
+@@ -1,7 +1,7 @@
+ # Makefile for elfls
+
+-CC = gcc
+-CFLAGS = -Wall -Wextra -I../elfrw
++CC ?= gcc
++CFLAGS += -I../elfrw
+
+ elfls: elfls.c ../elfrw/libelfrw.a
+
+diff -Naur ELFkickers-3.0.orig//elfrw/Makefile ELFkickers-3.0/elfrw/Makefile
+--- ELFkickers-3.0.orig//elfrw/Makefile 2011-05-22 14:02:12.000000000 -0400
++++ ELFkickers-3.0/elfrw/Makefile 2011-06-02 23:04:37.000000000 -0400
+@@ -1,7 +1,6 @@
+ # Makefile for libelfrw.a
+
+-CC = gcc
+-CFLAGS = -Wall -Wextra -O3
++CC ?= gcc
+
+ LIBOBJS = elfrw.o elfrw_dyn.o elfrw_ehdr.o elfrw_phdr.o elfrw_rel.o \
+ elfrw_shdr.o elfrw_sym.o elfrw_ver.o
+diff -Naur ELFkickers-3.0.orig//elftoc/Makefile ELFkickers-3.0/elftoc/Makefile
+--- ELFkickers-3.0.orig//elftoc/Makefile 2011-05-23 23:30:22.000000000 -0400
++++ ELFkickers-3.0/elftoc/Makefile 2011-06-02 23:04:27.000000000 -0400
+@@ -1,8 +1,6 @@
+ # Makefile for elftoc
+
+-CC = gcc
+-CFLAGS = -Wall -Wextra
+-LDFLAGS = -Wall -Wextra
++CC ?= gcc
+
+ OBJS = gen.o names.o address.o readelf.o shdrtab.o phdrtab.o dynamic.o \
+ pieces.o outbase.o outitems.o outelf64.o outelf32.o out.o elftoc.o
+diff -Naur ELFkickers-3.0.orig//infect/Makefile ELFkickers-3.0/infect/Makefile
+--- ELFkickers-3.0.orig//infect/Makefile 2011-05-31 02:52:27.000000000 -0400
++++ ELFkickers-3.0/infect/Makefile 2011-06-02 23:04:01.000000000 -0400
+@@ -1,7 +1,6 @@
+ # Makefile for infect
+
+-CC = gcc
+-CFLAGS = -Wall -Wextra
++CC ?= gcc
+
+ infect: infect.c
+
+diff -Naur ELFkickers-3.0.orig//objres/Makefile ELFkickers-3.0/objres/Makefile
+--- ELFkickers-3.0.orig//objres/Makefile 2011-05-23 23:29:39.000000000 -0400
++++ ELFkickers-3.0/objres/Makefile 2011-06-02 23:05:08.000000000 -0400
+@@ -1,7 +1,7 @@
+ # Makefile for objres
+
+-CC = gcc
+-CFLAGS = -Wall -Wextra -I../elfrw
++CC ?= gcc
++CFLAGS += -I../elfrw
+
+ objres: objres.c ../elfrw/libelfrw.a
+
+diff -Naur ELFkickers-3.0.orig//rebind/Makefile ELFkickers-3.0/rebind/Makefile
+--- ELFkickers-3.0.orig//rebind/Makefile 2011-05-23 23:29:16.000000000 -0400
++++ ELFkickers-3.0/rebind/Makefile 2011-06-02 23:04:57.000000000 -0400
+@@ -1,7 +1,7 @@
+ # Makefile for rebind
+
+-CC = gcc
+-CFLAGS = -Wall -Wextra -I../elfrw
++CC ?= gcc
++CFLAGS += -I../elfrw
+
+ rebind: rebind.c ../elfrw/libelfrw.a
+
+diff -Naur ELFkickers-3.0.orig//sstrip/Makefile ELFkickers-3.0/sstrip/Makefile
+--- ELFkickers-3.0.orig//sstrip/Makefile 2011-05-23 23:29:58.000000000 -0400
++++ ELFkickers-3.0/sstrip/Makefile 2011-06-02 23:05:41.000000000 -0400
+@@ -1,7 +1,7 @@
+ # Makefile for sstrip
+
+-CC = gcc
+-CFLAGS = -Wall -Wextra -I../elfrw
++CC ?= gcc
++CFLAGS += -I../elfrw
+
+ sstrip: sstrip.c ../elfrw/libelfrw.a
+
diff --git a/dev-util/elfkickers/metadata.xml b/dev-util/elfkickers/metadata.xml
new file mode 100644
index 000000000000..6f812ad378ae
--- /dev/null
+++ b/dev-util/elfkickers/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>blueness@gentoo.org</email>
+ <name>Anthony G. Basile</name>
+ <description>Primary Maintainer</description>
+ </maintainer>
+ <maintainer type="project">
+ <email>hardened@gentoo.org</email>
+ <name>Gentoo Hardened</name>
+ </maintainer>
+ <longdescription>ELF kickers is a collection of programs that manipulate ELF files. The main purpose of these programs is to be illustrative and educational -- to help fellow programmers understand the ELF file format and something of how it works under the Linux platform.</longdescription>
+</pkgmetadata>
diff --git a/dev-util/emilpro/Manifest b/dev-util/emilpro/Manifest
new file mode 100644
index 000000000000..09f70682456f
--- /dev/null
+++ b/dev-util/emilpro/Manifest
@@ -0,0 +1,12 @@
+AUX emilpro-3-system-binutils.patch 1639 SHA256 b2c2a077dea80e5960effe5ecd2247c62ae8aa3353c58e350f1c33def821b739 SHA512 e80467cd91b19c6d4034cf121ff5b812638384e6a6dde6fc8c6dc1a38edb77dbd2ec259fa4e1ef6f8ff8f1a4df9e89bfc4dbaef5fab3ddd7e1020aadac6d3281 WHIRLPOOL 084719fd0cdfd7e5f645a9018cc3828e5dcb3dc261972be0ae79b321d49881b3af83b0087515d43fe8f01dabb210cdfa88ede84bf5e175ae60a7fd65f3976852
+AUX emilpro-9999-system-binutils.patch 1784 SHA256 909c12df4191e155d07e8f49b5ae560a9009078386b416eccd0556bc29529adb SHA512 1edb7f4f534f99cd1b9379040e21ba9fadadc93ecdea67f5da490d3c92d1f7526088451c00959275b6bc9ee02d683f09054d730adcaef2bdb40d77658aa238b7 WHIRLPOOL fcd06c1379af2f38543102a62f1e7e15940be3f4f41608030dcec894bb7b778c029ff681c2b02761e37b916133b348724f241bec2ebf007d685f2fd30153d578
+AUX or1k-2.patch 1299 SHA256 7d623002f5aaaf1d5351beb3702dab0a45f6912c392cd927ffdcb03c6ae6ebce SHA512 d142e5cabf6393b8d8af83391ab3e8fd9514e64a67dd6af8175c605402fdfc136cf79c0fc5a6ecd1c2f4c4dcef7a208c363e4c95ed5545d116160f80aed3e17a WHIRLPOOL ef69ce1e2b579fc0592c9b40fcef1b4158194dfb85ce19e22283a4e406037e8c56a8c5008bcb3dd9c4c1f0b0d5c0230204ad71518372c8ae5c056d0dc2c7f43d
+AUX or1k.patch 4386 SHA256 46348c46df0c4858352c5086a69223c26c47c79a5cbe45ee346eb9e4913940d7 SHA512 7ddc06d15c50095720588899b6fc8889c4184d894fe28c8e6bfca9d9bf4f38a937b4d2722d98c45883c9271e6caac4b838c381c78660233ad8bb91fac1f80bee WHIRLPOOL d378a9bb8a5dbe4b9822fa1e403f6cf5fc17f305b0c7a59d6ef1e8cb03c057d90dbfdf51c168c5f5fe3b6e7f04ddbdb895c1b2b171204ee5ee4946093fc21a0a
+AUX respect-cflags.patch 662 SHA256 a4ffe1d45060bda21a79fe3f3ddf7828b0101415c67a1648381f7cba86896ac3 SHA512 5d308894752de0df6fee2f19ebc3664a0cd980a3e6babed9707db39a342ce3eb2f2c56e7680d0d9d969b3dff9059c2ef1b9cb14ea23af991b3b9e10653a0bda6 WHIRLPOOL 212db413697c7ae0a1dd132fdcd1eba08c726045cd07959fe2e0a52274d4adfe5a093a0b5a937065d4da4a089d39b9c75c70036470ae8d5ca73fc20d28c4d39b
+DIST binutils-2.23.2.tar.bz2 21440347 SHA256 fe914e56fed7a9ec2eb45274b1f2e14b0d8b4f41906a5194eac6883cfe5c1097 SHA512 dec753bbba008f1526b89cf1bd85feba78f362f5333ffdf93953fd131eb755976dec82a0a4ba38c43d2434da007137780cfe674de5414be5cf7ce7fbc6af6d16 WHIRLPOOL 1be65f03569d599899c5b57ac7aedbf90b311f9a47c1883dc62c0717b0757ebfb33e17ab3def8d0b805daabba67cf554463f88675c9f552a6fd8dbe7ca77b442
+DIST emilpro-3.tar.gz 120276 SHA256 6c4cf5d7debcc19a87bc61682d3adee4e2d1cdec2a06570f203130d6cf917748 SHA512 18a90dd672a4fb878f0da1eefacb01f159e25b28c94ea6707578deab74dbf07ee0f9d276e376f4eaff7b00c4dd7edcf5b7cbb3e5b316f4d720fe0343e1c36727 WHIRLPOOL d484f6860118db921736001982461ad5410cdf63aca21c9896e9bbe17fdb693f7debd53282fca61d085f405c1d701af99bfcd12b2cc554ddc11607b98977262a
+EBUILD emilpro-3-r3.ebuild 1654 SHA256 361f74e3a75620cc1ade5311d970d141c4e0ac29dd0c9cb04ebfbd6e7d0c6dd9 SHA512 df5a61bfcaa3f3f5d0665522c7d9e3622eb90304bcc03d2879a20f110165f5cc3ebe8ba4690c918d2c4c9fd14d940d8ffae1e8c6670b8516b5ae404b7b991f6f WHIRLPOOL ec21da4ac09df9ad112dfce24b9d11ff05495c05a828e964ef9c8e10443ded8a8edc33e92ae87c0b0d5c74345347652f4bbd69abd9774da642af106b074ae0f0
+EBUILD emilpro-9999.ebuild 1579 SHA256 765d51a9556e6de24d84232b6413c5d4e422a075c8fb37be1ce32ee2dc9547c0 SHA512 dd5005b1322ba00d6b1d323fc73c402109dada2c226eb6353beb88d3ef89d6c141cdb0656afa5ba036a4748de6098062917be14a2f52ea0305bcce3e93fd286c WHIRLPOOL 8969c70bdfb3a8ff30761d6604a15fa4ef7ec56632985e782790615f1337ab7aa5f2b0ac2585cab264ee2c121562b9a1eb4ed4d6ac1cc4417abb7976266f1d9b
+MISC ChangeLog 3408 SHA256 385f4001a00a102fdc5781c53eab580c5404ea18894359a6a634411f750e859a SHA512 d4261936db1c323eb015192b27390496c05ecb1917f544333c9fc99515258befa56442c42d7610a6f00ab3d08539912ebb33411b489c43411af652097b589601 WHIRLPOOL a498fc340b8477fbc3d378879b8f4374edec861ace8b8f774bc8503b62b5dfca6c31297b6be1f66a309d469de9edfb7a5c19cad8b382dc9ee0b986bc228931a6
+MISC ChangeLog-2015 913 SHA256 ddb7b6100379645e8ca06b3aab44cb7eeebec3ac463f257f1a56c7662acf9ad6 SHA512 2d72fdf32e166a0806f208b2a56ca564a7da7610ddba75a838ce8be6167f36e92a7e9016bb2a6539037a76a795788e79c7090b7f621a33a3bdc2e99cbf4d399b WHIRLPOOL f46863b4d6571b61172baff3a79c662ac1315e16177d1629b1d45a4120bf1bf86e4e13cfb57b2c610db61f1326e3733132cd41b3a2e5f1504033c4cd7002b124
+MISC metadata.xml 371 SHA256 96cb6e64ec7e383b3f3834b67f822741d9aeac18d1aa8d06f3d631effda871eb SHA512 133f1a99dcc7b0eaa0ed4c28334fb7ee73010987f5435d9d2ccaa1e5956ff4a9cc4f4b0fcb9f755e44fb5e0453aa9b69684a7435ac6d7d4c27bcb01dbe65117c WHIRLPOOL 38e11f068f1c3c45ebc2e0f441b0ff1b224c7ec126dfdcccfd53989a65536f86a6b02de7f904d0f68a3ff261ca7e0a49ed133a47d918dbb201c3ebce8d4b8571
diff --git a/dev-util/emilpro/emilpro-3-r3.ebuild b/dev-util/emilpro/emilpro-3-r3.ebuild
new file mode 100644
index 000000000000..e40bc9b228ee
--- /dev/null
+++ b/dev-util/emilpro/emilpro-3-r3.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit cmake-utils eutils
+
+DESCRIPTION="a graphical disassembler for a large number of instruction sets"
+HOMEPAGE="http://www.emilpro.com/"
+
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/SimonKagstrom/emilpro"
+ inherit git-r3
+ KEYWORDS=""
+ SRC_URI="!system-binutils? ( mirror://gnu/binutils/binutils-2.23.2.tar.bz2 )"
+else
+ SRC_URI="http://www.emilpro.com/${P}.tar.gz
+ !system-binutils? ( mirror://gnu/binutils/binutils-2.23.2.tar.bz2 )"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="+system-binutils"
+
+DEPEND="
+ dev-cpp/gtkmm:3.0
+ dev-cpp/gtksourceviewmm:3.0
+ dev-cpp/libxmlpp:2.6
+ dev-cpp/glibmm
+ dev-cpp/pangomm
+ dev-cpp/cairomm
+ dev-libs/libsigc++:2
+ dev-libs/glib:2
+ system-binutils? ( >=sys-libs/binutils-libs-2.25.1-r2:=[multitarget] )
+ net-misc/curl
+ virtual/libelf:0="
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/respect-cflags.patch
+ if use system-binutils; then
+ epatch "${FILESDIR}"/${P}-system-binutils.patch
+ else
+ sed -i "s#wget -O binutils.tar.bz2 https://ftp.gnu.org/gnu/binutils/binutils-2.23.2.tar.bz2#cp \"${DISTDIR}/binutils-2.23.2.tar.bz2\" ./binutils.tar.bz2#" cmake/BuildBinutils.cmake
+ fi
+ epatch "${FILESDIR}"/or1k.patch
+ epatch "${FILESDIR}"/or1k-2.patch
+ cmake-utils_src_prepare
+}
+
+src_compile() {
+ if use system-binutils; then
+ cmake-utils_src_compile
+ else
+ #bundled binutils is broken, always builds with one thread
+ #but somehow it still fails if I don't do this
+ cd "${BUILD_DIR}"
+ emake -j1
+ fi
+}
+
+src_install() {
+ dobin "${BUILD_DIR}"/emilpro
+}
diff --git a/dev-util/emilpro/emilpro-9999.ebuild b/dev-util/emilpro/emilpro-9999.ebuild
new file mode 100644
index 000000000000..3cad6fafde7f
--- /dev/null
+++ b/dev-util/emilpro/emilpro-9999.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit cmake-utils eutils
+
+DESCRIPTION="a graphical disassembler for a large number of instruction sets"
+HOMEPAGE="http://www.emilpro.com/"
+
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/SimonKagstrom/emilpro"
+ inherit git-r3
+ KEYWORDS=""
+ SRC_URI="!system-binutils? ( mirror://gnu/binutils/binutils-2.23.2.tar.bz2 )"
+else
+ SRC_URI="http://www.emilpro.com/${P}.tar.gz
+ !system-binutils? ( mirror://gnu/binutils/binutils-2.23.2.tar.bz2 )"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="+system-binutils"
+
+DEPEND="
+ dev-cpp/gtkmm:3.0
+ dev-cpp/gtksourceviewmm:3.0
+ dev-cpp/libxmlpp:2.6
+ dev-cpp/glibmm
+ dev-cpp/pangomm
+ dev-cpp/cairomm
+ dev-libs/libsigc++:2
+ dev-libs/glib:2
+ system-binutils? ( >=sys-libs/binutils-libs-2.25.1-r2:=[multitarget] )
+ net-misc/curl
+ virtual/libelf:0="
+# automagic dep
+# dev-util/capstone
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ if use system-binutils; then
+ epatch "${FILESDIR}"/${P}-system-binutils.patch
+ else
+ sed -i "s#wget -O binutils.tar.bz2 https://ftp.gnu.org/gnu/binutils/binutils-2.23.2.tar.bz2#cp \"${DISTDIR}/binutils-2.23.2.tar.bz2\" ./binutils.tar.bz2#" cmake/BuildBinutils.cmake
+ fi
+ cmake-utils_src_prepare
+}
+
+src_compile() {
+ if use system-binutils; then
+ cmake-utils_src_compile
+ else
+ #bundled binutils is broken, always builds with one thread
+ #but somehow it still fails if I don't do this
+ cd "${BUILD_DIR}"
+ emake -j1
+ fi
+}
+
+src_install() {
+ dobin "${BUILD_DIR}"/emilpro
+}
diff --git a/dev-util/emilpro/files/emilpro-3-system-binutils.patch b/dev-util/emilpro/files/emilpro-3-system-binutils.patch
new file mode 100644
index 000000000000..d73f402a3005
--- /dev/null
+++ b/dev-util/emilpro/files/emilpro-3-system-binutils.patch
@@ -0,0 +1,48 @@
+diff -Naur emilpro-3-orig/CMakeLists.txt emilpro-3/CMakeLists.txt
+--- emilpro-3-orig/CMakeLists.txt 2016-03-29 13:19:47.035441401 -0400
++++ emilpro-3/CMakeLists.txt 2016-03-29 13:18:36.650443067 -0400
+@@ -11,7 +11,6 @@
+ set (BASE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
+
+ # Dependencies
+-include (${CMAKE_CURRENT_SOURCE_DIR}/cmake/BuildBinutils.cmake)
+
+ find_package (LibElf REQUIRED)
+ find_package (PkgConfig REQUIRED)
+@@ -30,7 +29,6 @@
+ pkg_check_modules(LIBCURL libcurl)
+
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x -Wall -D_GLIBCXX_USE_NANOSLEEP -DPACKAGE=emilpro -DPACKAGE_VERSION=1")
+-LINK_DIRECTORIES(${CMAKE_BINARY_DIR}/install-binutils/lib ${CMAKE_BINARY_DIR}/install-binutils/lib64)
+
+ if (HAVE_BFD_MULTIARCH)
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DHAVE_BFD_MULTIARCH")
+@@ -110,7 +108,6 @@
+ src/include/
+ ${CMAKE_BINARY_DIR}
+ ${LIBELF_INCLUDE_DIRS}
+- ${CMAKE_BINARY_DIR}/install-binutils/include/
+ ${GTKMM_INCLUDE_DIRS}
+ ${GTKSOURCEVIEWMM_INCLUDE_DIRS}
+ ${LIBXMLPP_INCLUDE_DIRS}
+@@ -128,8 +125,6 @@
+ tools/squash-instruction-models.cc
+ )
+
+-set_property(TARGET emilpro APPEND PROPERTY OBJECT_DEPENDS binutils)
+-set_property(TARGET tools/squash-instruction-models APPEND PROPERTY OBJECT_DEPENDS binutils)
+
+ set (BASE_LIBS
+ ${LIBELF_LIBRARIES}
+diff -Naur emilpro-3-orig/src/namemangler.cc emilpro-3/src/namemangler.cc
+--- emilpro-3-orig/src/namemangler.cc 2016-03-29 13:17:23.957444786 -0400
++++ emilpro-3/src/namemangler.cc 2016-03-29 13:18:57.306442578 -0400
+@@ -1,7 +1,7 @@
+ #include <namemangler.hh>
+
+ #include <bfd.h>
+-#include <demangle.h>
++#include <libiberty/demangle.h>
+
+ using namespace emilpro;
+
diff --git a/dev-util/emilpro/files/emilpro-9999-system-binutils.patch b/dev-util/emilpro/files/emilpro-9999-system-binutils.patch
new file mode 100644
index 000000000000..194e8d10b6e4
--- /dev/null
+++ b/dev-util/emilpro/files/emilpro-9999-system-binutils.patch
@@ -0,0 +1,52 @@
+diff -Naur emilpro-9999-orig/CMakeLists.txt emilpro-9999/CMakeLists.txt
+--- emilpro-9999-orig/CMakeLists.txt 2016-03-29 14:30:48.017340585 -0400
++++ emilpro-9999/CMakeLists.txt 2016-03-29 14:31:21.335339797 -0400
+@@ -11,7 +11,6 @@
+ set (BASE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
+
+ # Dependencies
+-include (${CMAKE_CURRENT_SOURCE_DIR}/cmake/BuildBinutils.cmake)
+
+ find_package (LibElf REQUIRED)
+ find_package (LibCapstone)
+@@ -40,10 +39,6 @@
+ pkg_check_modules(LIBCURL REQUIRED libcurl)
+
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x -Wall -D_GLIBCXX_USE_NANOSLEEP -DPACKAGE=emilpro -DPACKAGE_VERSION=1 -pthread")
+-LINK_DIRECTORIES(
+- ${CMAKE_BINARY_DIR}/install-binutils/lib ${CMAKE_BINARY_DIR}/install-binutils/lib64
+- ${CMAKE_BINARY_DIR}/binutils/libiberty
+- )
+
+ if (HAVE_BFD_MULTIARCH)
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DHAVE_BFD_MULTIARCH")
+@@ -120,7 +115,6 @@
+ set_property(SOURCE src/emilpro.cc APPEND PROPERTY OBJECT_DEPENDS ${CMAKE_BINARY_DIR}/built_in_instruction_models.hh)
+
+ include_directories(
+- ${CMAKE_BINARY_DIR}/install-binutils/include/
+ src/gtk/include/
+ src/include/
+ ${CMAKE_BINARY_DIR}
+@@ -143,9 +137,6 @@
+ tools/squash-instruction-models.cc
+ )
+
+-set_property(TARGET emilpro APPEND PROPERTY OBJECT_DEPENDS binutils)
+-set_property(TARGET tools/squash-instruction-models APPEND PROPERTY OBJECT_DEPENDS binutils)
+-
+ set (BASE_LIBS
+ ${LIBELF_LIBRARIES}
+ opcodes
+diff -Naur emilpro-9999-orig/src/namemangler.cc emilpro-9999/src/namemangler.cc
+--- emilpro-9999-orig/src/namemangler.cc 2016-03-29 14:30:48.017340585 -0400
++++ emilpro-9999/src/namemangler.cc 2016-03-29 14:31:06.397340150 -0400
+@@ -1,7 +1,7 @@
+ #include <namemangler.hh>
+
+ #include <bfd.h>
+-#include <demangle.h>
++#include <libiberty/demangle.h>
+
+ using namespace emilpro;
+
diff --git a/dev-util/emilpro/files/or1k-2.patch b/dev-util/emilpro/files/or1k-2.patch
new file mode 100644
index 000000000000..9dd4e195342a
--- /dev/null
+++ b/dev-util/emilpro/files/or1k-2.patch
@@ -0,0 +1,22 @@
+From 5b41e51bfb9fdeac7c6a2441badf8c3b92463fef Mon Sep 17 00:00:00 2001
+From: Alex Chernetz <andy80586@gmail.com>
+Date: Fri, 1 May 2015 14:34:31 -0700
+Subject: [PATCH] Function is print_insn_or1k, not print_insn_little_or1k
+
+---
+ src/bfd-disassembly.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/bfd-disassembly.cc b/src/bfd-disassembly.cc
+index bf3e768..eeecbe4 100644
+--- a/src/bfd-disassembly.cc
++++ b/src/bfd-disassembly.cc
+@@ -38,7 +38,7 @@ class Disassembly : public IDisassembly,
+ m_arch[bfd_arch_m68k] = BfdArch(bfd_arch_m68k, bfd_mach_m68040, print_insn_m68k); /* Motorola 68xxx */
+ m_arch[bfd_arch_vax] = BfdArch(bfd_arch_vax, 0, print_insn_vax); /* DEC Vax */
+ m_arch[bfd_arch_i960] = BfdArch(bfd_arch_i960, 0, print_insn_i960); /* Intel 960 */
+- m_arch[bfd_arch_or1k] = BfdArch(bfd_arch_or1k, 0, print_insn_little_or1k); /* OpenRISC 32 */
++ m_arch[bfd_arch_or1k] = BfdArch(bfd_arch_or1k, 0, print_insn_or1k); /* OpenRISC 32 */
+ m_arch[bfd_arch_sparc] = BfdArch(bfd_arch_sparc, 0, print_insn_sparc); /* SPARC */
+ m_arch[bfd_arch_spu] = BfdArch(bfd_arch_spu, 0, print_insn_spu); /* PowerPC SPU */
+ m_arch[bfd_arch_i860] = BfdArch(bfd_arch_i860, 0, print_insn_i860); /* Intel 860 */
diff --git a/dev-util/emilpro/files/or1k.patch b/dev-util/emilpro/files/or1k.patch
new file mode 100644
index 000000000000..e7a4392f0bdb
--- /dev/null
+++ b/dev-util/emilpro/files/or1k.patch
@@ -0,0 +1,70 @@
+From f59c5f424a268313c1fcc009fd1e40c00bf6c4f2 Mon Sep 17 00:00:00 2001
+From: Alex Chernetz <andy80586@gmail.com>
+Date: Fri, 1 May 2015 13:32:27 -0700
+Subject: [PATCH] or32 and openrisc architectures are replaced by or1k in
+ current binutils
+
+---
+ src/architecturefactory.cc | 6 ++----
+ src/bfd-disassembly.cc | 3 +--
+ 2 files changed, 3 insertions(+), 6 deletions(-)
+
+diff --git a/src/architecturefactory.cc b/src/architecturefactory.cc
+index 709b770..25ccf80 100644
+--- a/src/architecturefactory.cc
++++ b/src/architecturefactory.cc
+@@ -10,7 +10,7 @@ ArchitectureFactory::ArchitectureFactory() :
+ m_architectureNameMap[(unsigned)bfd_arch_m68k] = "m68k";
+ m_architectureNameMap[(unsigned)bfd_arch_vax] = "vax";
+ m_architectureNameMap[(unsigned)bfd_arch_i960] = "i960";
+- m_architectureNameMap[(unsigned)bfd_arch_or32] = "or32";
++ m_architectureNameMap[(unsigned)bfd_arch_or1k] = "or1k";
+ m_architectureNameMap[(unsigned)bfd_arch_sparc] = "sparc";
+ m_architectureNameMap[(unsigned)bfd_arch_mips] = "mips";
+ m_architectureNameMap[(unsigned)bfd_arch_i386] = "i386";
+@@ -68,7 +68,6 @@ ArchitectureFactory::ArchitectureFactory() :
+ m_architectureNameMap[(unsigned)bfd_arch_cris] = "cris";
+ m_architectureNameMap[(unsigned)bfd_arch_s390] = "s390";
+ m_architectureNameMap[(unsigned)bfd_arch_score] = "score";
+- m_architectureNameMap[(unsigned)bfd_arch_openrisc] = "openrisc";
+ m_architectureNameMap[(unsigned)bfd_arch_mmix] = "mmix";
+ m_architectureNameMap[(unsigned)bfd_arch_xstormy16] = "xstormy16";
+ m_architectureNameMap[(unsigned)bfd_arch_xc16x] = "xc16x";
+@@ -81,7 +80,7 @@ ArchitectureFactory::ArchitectureFactory() :
+ m_nameArchitectureMap["m68k"] = (unsigned)bfd_arch_m68k;
+ m_nameArchitectureMap["vax"] = (unsigned)bfd_arch_vax;
+ m_nameArchitectureMap["i960"] = (unsigned)bfd_arch_i960;
+- m_nameArchitectureMap["or32"] = (unsigned)bfd_arch_or32;
++ m_nameArchitectureMap["or1k"] = (unsigned)bfd_arch_or1k;
+ m_nameArchitectureMap["sparc"] = (unsigned)bfd_arch_sparc;
+ m_nameArchitectureMap["mips"] = (unsigned)bfd_arch_mips;
+ m_nameArchitectureMap["i386"] = (unsigned)bfd_arch_i386;
+@@ -139,7 +138,6 @@ ArchitectureFactory::ArchitectureFactory() :
+ m_nameArchitectureMap["cris"] = (unsigned)bfd_arch_cris;
+ m_nameArchitectureMap["s390"] = (unsigned)bfd_arch_s390;
+ m_nameArchitectureMap["score"] = (unsigned)bfd_arch_score;
+- m_nameArchitectureMap["openrisc"] = (unsigned)bfd_arch_openrisc;
+ m_nameArchitectureMap["mmix"] = (unsigned)bfd_arch_mmix;
+ m_nameArchitectureMap["xstormy16"] = (unsigned)bfd_arch_xstormy16;
+ m_nameArchitectureMap["xc16x"] = (unsigned)bfd_arch_xc16x;
+diff --git a/src/bfd-disassembly.cc b/src/bfd-disassembly.cc
+index 5cda9e2..bf3e768 100644
+--- a/src/bfd-disassembly.cc
++++ b/src/bfd-disassembly.cc
+@@ -38,7 +38,7 @@ class Disassembly : public IDisassembly,
+ m_arch[bfd_arch_m68k] = BfdArch(bfd_arch_m68k, bfd_mach_m68040, print_insn_m68k); /* Motorola 68xxx */
+ m_arch[bfd_arch_vax] = BfdArch(bfd_arch_vax, 0, print_insn_vax); /* DEC Vax */
+ m_arch[bfd_arch_i960] = BfdArch(bfd_arch_i960, 0, print_insn_i960); /* Intel 960 */
+- m_arch[bfd_arch_or32] = BfdArch(bfd_arch_or32, 0, print_insn_little_or32); /* OpenRISC 32 */
++ m_arch[bfd_arch_or1k] = BfdArch(bfd_arch_or1k, 0, print_insn_little_or1k); /* OpenRISC 32 */
+ m_arch[bfd_arch_sparc] = BfdArch(bfd_arch_sparc, 0, print_insn_sparc); /* SPARC */
+ m_arch[bfd_arch_spu] = BfdArch(bfd_arch_spu, 0, print_insn_spu); /* PowerPC SPU */
+ m_arch[bfd_arch_i860] = BfdArch(bfd_arch_i860, 0, print_insn_i860); /* Intel 860 */
+@@ -89,7 +89,6 @@ class Disassembly : public IDisassembly,
+ m_arch[bfd_arch_rl78] = BfdArch(bfd_arch_rl78, 0, print_insn_rl78);
+ m_arch[bfd_arch_rx] = BfdArch(bfd_arch_rx, 0, print_insn_rx); /* Renesas RX. */
+ m_arch[bfd_arch_s390] = BfdArch(bfd_arch_s390, bfd_mach_s390_64, print_insn_s390); /* IBM s390 */
+- m_arch[bfd_arch_openrisc] = BfdArch(bfd_arch_openrisc, 0, print_insn_openrisc); /* OpenRISC */
+ m_arch[bfd_arch_mmix] = BfdArch(bfd_arch_mmix, 0, print_insn_mmix); /* Donald Knuth's educational processor. */
+ m_arch[bfd_arch_xstormy16] = BfdArch(bfd_arch_xstormy16, 0, print_insn_xstormy16);
+ m_arch[bfd_arch_msp430] = BfdArch(bfd_arch_msp430, 0, print_insn_msp430); /* Texas Instruments MSP430 architecture. */
diff --git a/dev-util/emilpro/files/respect-cflags.patch b/dev-util/emilpro/files/respect-cflags.patch
new file mode 100644
index 000000000000..12d5bd52db5d
--- /dev/null
+++ b/dev-util/emilpro/files/respect-cflags.patch
@@ -0,0 +1,12 @@
+diff -Naur emilpro-3/CMakeLists.txt emilpro-3-cflags/CMakeLists.txt
+--- emilpro-3/CMakeLists.txt 2013-12-28 04:22:34.000000000 -0500
++++ emilpro-3-cflags/CMakeLists.txt 2014-03-18 17:59:47.534542384 -0400
+@@ -29,7 +29,7 @@
+ pkg_check_modules(LIBXMLPP libxml++-2.6)
+ pkg_check_modules(LIBCURL libcurl)
+
+-set (CMAKE_CXX_FLAGS "-std=c++0x -Wall -D_GLIBCXX_USE_NANOSLEEP -DPACKAGE=emilpro -DPACKAGE_VERSION=1")
++set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x -Wall -D_GLIBCXX_USE_NANOSLEEP -DPACKAGE=emilpro -DPACKAGE_VERSION=1")
+ LINK_DIRECTORIES(${CMAKE_BINARY_DIR}/install-binutils/lib ${CMAKE_BINARY_DIR}/install-binutils/lib64)
+
+ if (HAVE_BFD_MULTIARCH)
diff --git a/dev-util/emilpro/metadata.xml b/dev-util/emilpro/metadata.xml
new file mode 100644
index 000000000000..cccc81ee370e
--- /dev/null
+++ b/dev-util/emilpro/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>zerochaos@gentoo.org</email>
+<name>Rick Farina</name>
+</maintainer>
+<use>
+<flag name="system-binutils">Use the gentoo binutils instead of building against an unpatched vanilla version</flag>
+</use>
+</pkgmetadata>
diff --git a/dev-util/eric/Manifest b/dev-util/eric/Manifest
new file mode 100644
index 000000000000..3f2363707c60
--- /dev/null
+++ b/dev-util/eric/Manifest
@@ -0,0 +1,7 @@
+DIST eric6-17.08.tar.gz 18867453 SHA256 15283d103dd4295d0c539d670e41f6fd8645cb5cddc630917c41f880efde90fa SHA512 9a8184318cbd4d578606e57f9ad55571387288df86fc87d661f8235b2fde0a74102c7af627ac0d32ae7c2a990c38e7df96fa3e1525f10290c2d2726e71fcd68b WHIRLPOOL de6dcfe8aeb641b912975c37c2a5c2012ac08af936600426ef75a190f22bb6c7b35aae89036b095f1e7f41ad84184b85b272c68718073196d893b2b4eebf7300
+DIST eric6-17.09.tar.gz 18914614 SHA256 e006e3d7d98e16bc210799fc116182ffd6dc89dfd5715cdb798a53e07a471989 SHA512 73631ff1faef01b51a640af13dbb3adabebc63280f15b5e594e1fcbfb799a40a8e7ecb7395c52c6878b1fa232d7c00fb531a24be9f89a3592602aeb10520737d WHIRLPOOL 1079c63aa95efb623f36481357dde15e2669c8a56c0cbf481f4531fce4e3c8e08e348f22baaa9b37e39c6eb268b060878ee6c878c78875f0ace8cea184e57afe
+EBUILD eric-17.08.ebuild 1697 SHA256 afbb037c7a9b3493dc2da745ad7c89fa6c4bd76e4f0ff8c28e28aa4541c9c868 SHA512 1c3c7a39cbc8bb66b010f55faa526bb042c39364fe6b505cc696e927a78447f840bc615705849f2c6eef83393b88d911c86be7ceb170eab767dbe00bf9b7c42d WHIRLPOOL fc335b0df2a69800a6406230fc63dc077fe31d4b5f96ed08f78a59e26c5e006b0d72171a917baefb6b474cc4951df0a91c5c9c64ee0cdab99efd38bb9778eb5f
+EBUILD eric-17.09.ebuild 1697 SHA256 afbb037c7a9b3493dc2da745ad7c89fa6c4bd76e4f0ff8c28e28aa4541c9c868 SHA512 1c3c7a39cbc8bb66b010f55faa526bb042c39364fe6b505cc696e927a78447f840bc615705849f2c6eef83393b88d911c86be7ceb170eab767dbe00bf9b7c42d WHIRLPOOL fc335b0df2a69800a6406230fc63dc077fe31d4b5f96ed08f78a59e26c5e006b0d72171a917baefb6b474cc4951df0a91c5c9c64ee0cdab99efd38bb9778eb5f
+MISC ChangeLog 3396 SHA256 37318db46eb4a0775b6f946137c7df84502fcedbc10abc1ff0711e67fa33b747 SHA512 dcbd73108e1d7199b473d4905b1db2e89541e8037c657ee431fe8de8fec04a694750ca2e71dd9aa8dac7c40ceb985537d7a46b79b85240e9402f5fcb389854a1 WHIRLPOOL 46dc42b2facd0d1fe531e581a7983ba21b2c1bdcdcb04116e16298992110b6bda24d9b4c9a459a723e18e8be2996fdea5cc0796e31d659d44c06262c910098f8
+MISC ChangeLog-2015 30074 SHA256 34efc33a892f3a1d09e50d2c8ec87ca138db3445c0662a974d87b8c825733de2 SHA512 625a34af33ec63b57bdd51a6da4ed38d3b2e24b2a0253589f85b3981619fb3c3632ea71f6642532c1a0d2b2e9e3f9d9338a656e3a6eea5c36c8c94bc65adbe76 WHIRLPOOL 403c6a2a161a033a6f0c8ca0ce8b0bf0e24ba8884e090c0c61cb2d676c29451ec2f45dfddaa539796825c8d5a7b47e94d09402675b6654eb55aa597b8b33be93
+MISC metadata.xml 325 SHA256 382c0afc07012bff579b843df7e841ad2651307e11dd153a7bee2b74fdd364cb SHA512 e3da71c04a1a2af6b72ff068eba586c14b159034f759448c669032b30a82cc618e58467cc8cec8090d22d0e864338fc62b735f73dc31fd2a33d63cb677178f9e WHIRLPOOL 9b24c9135e11b76a7b8508f3614bbec5b389119f7f944d260a6e48753cef1708fad414322593fcfa82127d7f5f7184f5ff2ed01169771f7df39bc9cb3ef73ffa
diff --git a/dev-util/eric/eric-17.08.ebuild b/dev-util/eric/eric-17.08.ebuild
new file mode 100644
index 000000000000..02c5b8f9d387
--- /dev/null
+++ b/dev-util/eric/eric-17.08.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_{4,5} )
+PYTHON_REQ_USE="sqlite,xml"
+
+inherit python-single-r1
+
+DESCRIPTION="A full featured Python IDE using PyQt and QScintilla"
+HOMEPAGE="http://eric-ide.python-projects.org/"
+LICENSE="GPL-3"
+SLOT="6"
+
+MY_P=${PN}${SLOT}-${PV}
+SRC_URI="mirror://sourceforge/eric-ide/${PN}${SLOT}/stable/${PV}/${MY_P}.tar.gz"
+KEYWORDS="~amd64 ~ppc64 ~x86"
+IUSE=""
+
+DEPEND="
+ ${PYTHON_DEPS}
+ >=dev-python/sip-4.14.3[${PYTHON_USEDEP}]
+ >=dev-python/PyQt5-5.5.1[${PYTHON_USEDEP},gui,help,network,printsupport,sql,svg,webkit]
+ >=dev-python/qscintilla-python-2.8[qt5,${PYTHON_USEDEP}]
+"
+RDEPEND="${DEPEND}
+ >=dev-python/chardet-3.0.4[${PYTHON_USEDEP}]
+ >=dev-python/coverage-4.1.0[${PYTHON_USEDEP}]
+ >=dev-python/pygments-2.2.0[${PYTHON_USEDEP}]
+ !dev-util/eric:4
+ !dev-util/eric:5
+"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+S=${WORKDIR}/${MY_P}
+
+DOCS=(changelog README.rst THANKS)
+
+src_prepare() {
+ default
+
+ # Delete internal copies of dev-python/chardet and dev-python/pygments
+ rm -fr eric/ThirdParty/{CharDet,Pygments} || die
+
+ # Delete internal copy of dev-python/coverage
+ rm -fr eric/DebugClients/Python{,3}/coverage || die
+ sed -i -e 's/from DebugClients\.Python3\?\.coverage/from coverage/' \
+ $(grep -lr 'from DebugClients\.Python3\?\.coverage' .) || die
+
+ # Fix desktop files (bug 458092)
+ sed -i -re '/^Categories=/s:(Python|QtWeb):X-&:g' eric/eric6{,_{,web}browser}.desktop || die
+}
+
+src_install() {
+ "${PYTHON}" install.py \
+ -b "${EPREFIX}/usr/bin" \
+ -d "$(python_get_sitedir)" \
+ -i "${D}" \
+ -c \
+ -z \
+ || die
+
+ python_optimize
+ einstalldocs
+}
diff --git a/dev-util/eric/eric-17.09.ebuild b/dev-util/eric/eric-17.09.ebuild
new file mode 100644
index 000000000000..02c5b8f9d387
--- /dev/null
+++ b/dev-util/eric/eric-17.09.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_{4,5} )
+PYTHON_REQ_USE="sqlite,xml"
+
+inherit python-single-r1
+
+DESCRIPTION="A full featured Python IDE using PyQt and QScintilla"
+HOMEPAGE="http://eric-ide.python-projects.org/"
+LICENSE="GPL-3"
+SLOT="6"
+
+MY_P=${PN}${SLOT}-${PV}
+SRC_URI="mirror://sourceforge/eric-ide/${PN}${SLOT}/stable/${PV}/${MY_P}.tar.gz"
+KEYWORDS="~amd64 ~ppc64 ~x86"
+IUSE=""
+
+DEPEND="
+ ${PYTHON_DEPS}
+ >=dev-python/sip-4.14.3[${PYTHON_USEDEP}]
+ >=dev-python/PyQt5-5.5.1[${PYTHON_USEDEP},gui,help,network,printsupport,sql,svg,webkit]
+ >=dev-python/qscintilla-python-2.8[qt5,${PYTHON_USEDEP}]
+"
+RDEPEND="${DEPEND}
+ >=dev-python/chardet-3.0.4[${PYTHON_USEDEP}]
+ >=dev-python/coverage-4.1.0[${PYTHON_USEDEP}]
+ >=dev-python/pygments-2.2.0[${PYTHON_USEDEP}]
+ !dev-util/eric:4
+ !dev-util/eric:5
+"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+S=${WORKDIR}/${MY_P}
+
+DOCS=(changelog README.rst THANKS)
+
+src_prepare() {
+ default
+
+ # Delete internal copies of dev-python/chardet and dev-python/pygments
+ rm -fr eric/ThirdParty/{CharDet,Pygments} || die
+
+ # Delete internal copy of dev-python/coverage
+ rm -fr eric/DebugClients/Python{,3}/coverage || die
+ sed -i -e 's/from DebugClients\.Python3\?\.coverage/from coverage/' \
+ $(grep -lr 'from DebugClients\.Python3\?\.coverage' .) || die
+
+ # Fix desktop files (bug 458092)
+ sed -i -re '/^Categories=/s:(Python|QtWeb):X-&:g' eric/eric6{,_{,web}browser}.desktop || die
+}
+
+src_install() {
+ "${PYTHON}" install.py \
+ -b "${EPREFIX}/usr/bin" \
+ -d "$(python_get_sitedir)" \
+ -i "${D}" \
+ -c \
+ -z \
+ || die
+
+ python_optimize
+ einstalldocs
+}
diff --git a/dev-util/eric/metadata.xml b/dev-util/eric/metadata.xml
new file mode 100644
index 000000000000..11e69dd891df
--- /dev/null
+++ b/dev-util/eric/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="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">eric-ide</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/fatrace/Manifest b/dev-util/fatrace/Manifest
new file mode 100644
index 000000000000..751d90dff3fb
--- /dev/null
+++ b/dev-util/fatrace/Manifest
@@ -0,0 +1,8 @@
+AUX fatrace-0.11-sysmacros.patch 295 SHA256 227c0a9503b03b09ef0a93f1837fbcd933de10fd6b00dd1ac5fd0ba5a772cf20 SHA512 0b3946043f74b957eb1b8caad39cc1b031e40bad564a1ffaa593dd77d5f96f06a1103d8d0b3689b4fe58f4bb4ff105d81855c9088ea5eec9d4ce6876d4a6f7f9 WHIRLPOOL 0d9223fbebf6d8d53969467ab2cadc071d1041cd90adce1a719efc163c93711c01601602c0521c9deace4b91c98c4589b6a44cd9f898b18042a894e790a13297
+DIST fatrace-0.11.tar.bz2 19354 SHA256 9aa04de50d8549c152f86fab0e2bf81df553af6548b4b31d72cb512b84d8e7b8 SHA512 4849f5f2aff423f915caedb63323c3888146124f856e141090bdc8eeff812b473ed194116684edd7ca0f10239c7e765740f109f0da0d364cd231430f6f5da441 WHIRLPOOL a4d631706c62c437ea0cdb61b1277b45d218e01a4ccdaaf12106fa6a25d624d23dfe943e2917095ed38ba2808574f041f7cd6b4ebad11e176c596017c8769660
+DIST fatrace-0.12.tar.bz2 19377 SHA256 50e71706f2cad4efc37c23bd292a2d3aa53dd883506e910267b2eeb5b241f66b SHA512 76dfc9dfc5c6b8e13f5d0c5c01c5c1b91093a5d980ded1f8fd776c9e861a6679eea193bcdd92b1c8770c9af346820300f186b7167ff4313e670f27ea31f765ea WHIRLPOOL 5e5e54d75ecedc011d93957f5a4b3a45925246a40bbabcf269dfd3c8dc1ca88721b9ebc5b9902188cb1a56e16035cf171d040d4ce1551cdb9715ac58877df3f3
+EBUILD fatrace-0.11.ebuild 834 SHA256 d56db5a8e556d78fb6db27837e4e8c3a80058438e9b153c7c57368d3afc02ff4 SHA512 583e063aad477326eab947923dbd8b8b89a1e426f6c97af9bff8699d7bbb383c9a2b0a3287c43f733d1d27e352ef0578a71547b15102e994389b57bd9a53f136 WHIRLPOOL 9167966a9fc6d64b3fe2e5abfab23202e1f56bf1413e96eb62968253a64044804b1dddc0d4949e049d8298a1f2e8c5060d26715c9cb9487bce0f0a79da5dc0b6
+EBUILD fatrace-0.12.ebuild 840 SHA256 cd98b4faca4cd30b84b00c3cc3ebdebecea3a7a61bfabb224b82481db233bd99 SHA512 6db7325865a9b569dacf0e09bb598d60e33e60ccc81e8a64497ae1a252e2edd571e6822320daa6b846826b90e07f8517cba4d0a387c49469929c2235e38d87d7 WHIRLPOOL f166be24625b0280d2afe4bd1a6d8ba79ef30f5e0793ae5a84754f666a6eceed931d273bda80ce5a0c272a767a3e4760fa7d68562288999fbfa7cf127a5ebc10
+MISC ChangeLog 3305 SHA256 937c41c3d964c42a3e50b44713a32b5bfa62f60bb3f488501842dcd2019080bb SHA512 75ea1028113541a5ca570d1fd265fd2e5e36e749a9cf282d173898f904d0a6f6c13e1bc39c731fd6269ec9434bfa38560fdba2d32f1998192285ea35ce4bdfb9 WHIRLPOOL 489fd2a87e61845a73fada292ffc331b0825db56aac2ef5b6bccd9c30b893e6555bd804c32f5b7eeed5e552b0d9b65c9155c5cd7d228f877d598aacb9652c1aa
+MISC ChangeLog-2015 1033 SHA256 b3e32ef3c34504f176c484aba18878bc996f1925cc60ac5a35c088fb12e4e211 SHA512 b147bc19f60b94c5158748a7780e79e806fb41a45c775b9e5195e954749fad6b1b1d3d3ba625cf4f50eb64692066493d5cac526a5d1b7b8130bc795376cfd945 WHIRLPOOL 4e54692445bd1d7e53571f198fe437cefe76e97d78020dfdcacf69eec18e3c45dc5fc79b9fb7a9c7b6efd843c27bfd3312ab70207c88028e6c9797a91a65634a
+MISC metadata.xml 388 SHA256 741dea0de8df69735cdc37f5bc108181484550572a6e15d79895429f5822cfd7 SHA512 195cef9daf519cc93f44926498d1d58f3751bbdb54df19fe1745d245c4ded2c190da45637bb52a2682a6d2fc5ae692bed0cb3f5c111c4f6e156b11d0690e3036 WHIRLPOOL 94e700e6e58e082e643478afe3ef5a731d750e4006331fa30e28c56c42f42dab44c1943daf6c635a98778ad1f5bc23bbf5097f653b80d0e53c7c6ac00e487d0d
diff --git a/dev-util/fatrace/fatrace-0.11.ebuild b/dev-util/fatrace/fatrace-0.11.ebuild
new file mode 100644
index 000000000000..00fc54446d86
--- /dev/null
+++ b/dev-util/fatrace/fatrace-0.11.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python{3_4,3_5} )
+
+inherit linux-info python-r1 toolchain-funcs
+
+DESCRIPTION="report file access events from all running processes"
+HOMEPAGE="https://launchpad.net/fatrace"
+SRC_URI="https://launchpad.net/${PN}/trunk/${PV}/+download/${P}.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="powertop"
+
+RDEPEND="powertop? ( ${PYTHON_DEPS} )"
+DEPEND="${RDEPEND}"
+REQUIRED_USE="powertop? ( ${PYTHON_REQUIRED_USE} )"
+
+CONFIG_CHECK="~FANOTIFY"
+
+pkg_setup() {
+ use powertop && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-sysmacros.patch #580082
+ tc-export CC
+}
+
+src_install() {
+ dosbin fatrace
+ use powertop && dosbin power-usage-report
+
+ doman fatrace.1
+ dodoc NEWS
+}
diff --git a/dev-util/fatrace/fatrace-0.12.ebuild b/dev-util/fatrace/fatrace-0.12.ebuild
new file mode 100644
index 000000000000..2f7b0af07d15
--- /dev/null
+++ b/dev-util/fatrace/fatrace-0.12.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python{3_4,3_5} )
+
+inherit linux-info python-r1 toolchain-funcs
+
+DESCRIPTION="report file access events from all running processes"
+HOMEPAGE="https://launchpad.net/fatrace"
+SRC_URI="https://launchpad.net/${PN}/trunk/${PV}/+download/${P}.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="powertop"
+
+RDEPEND="powertop? ( ${PYTHON_DEPS} )"
+DEPEND="${RDEPEND}"
+REQUIRED_USE="powertop? ( ${PYTHON_REQUIRED_USE} )"
+
+CONFIG_CHECK="~FANOTIFY"
+
+pkg_setup() {
+ use powertop && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-0.11-sysmacros.patch #580082
+ tc-export CC
+}
+
+src_install() {
+ dosbin fatrace
+ use powertop && dosbin power-usage-report
+
+ doman fatrace.1
+ dodoc NEWS
+}
diff --git a/dev-util/fatrace/files/fatrace-0.11-sysmacros.patch b/dev-util/fatrace/files/fatrace-0.11-sysmacros.patch
new file mode 100644
index 000000000000..6f1816dc011b
--- /dev/null
+++ b/dev-util/fatrace/files/fatrace-0.11-sysmacros.patch
@@ -0,0 +1,13 @@
+https://bugs.launchpad.net/fatrace/+bug/1572396
+https://bugs.gentoo.org/580082
+
+--- a/fatrace.c
++++ b/fatrace.c
+@@ -33,6 +33,7 @@
+ #include <signal.h>
+ #include <time.h>
+ #include <sys/stat.h>
++#include <sys/sysmacros.h>
+ #include <sys/fanotify.h>
+ #include <sys/time.h>
+ #include <sys/types.h>
diff --git a/dev-util/fatrace/metadata.xml b/dev-util/fatrace/metadata.xml
new file mode 100644
index 000000000000..1c2ccfe5c948
--- /dev/null
+++ b/dev-util/fatrace/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>xmw@gentoo.org</email>
+ <name>Michael Weber</name>
+ </maintainer>
+ <use>
+ <flag name="powertop">Add powetop integration</flag>
+ </use>
+ <upstream>
+ <remote-id type="launchpad">fatrace</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/fhist/Manifest b/dev-util/fhist/Manifest
new file mode 100644
index 000000000000..ff826327d768
--- /dev/null
+++ b/dev-util/fhist/Manifest
@@ -0,0 +1,11 @@
+AUX 1.19-ldflags.patch 1742 SHA256 53bfc6a7b03e52314398bd8a0a60fcfbe66457edc1381f163b168c77d37c1a11 SHA512 350ba6f6b2d1c12b23401e0dc21162f41cafc64d2278cc9b188e7b8680e395677218013c398e84c14f0bf1a8ff2c69729d426d5892c88214eeb7b0c8016ddda9 WHIRLPOOL 56dc82a4067c90d0b987eb9fd34e6bcff5290c6bf8cb1d610104fc3505b4f0731fe64f7cea757b612f72c43d5c1331bb425fc1b7c73650ca5d0b2a97ecdfcfb5
+AUX fhist-1.21-ldflags.patch 1594 SHA256 46f21b21259b6a91f6849e8edfe55d07048db89e23db1123c31a52d425656966 SHA512 ddd894daf5e8a86a6d9cde1b29d2a0a61fae8bcf11a86dd16b4e2099eb094489ce20a5849eeb771ef712267da6eb7323d08c9e2e432c39a90d8b3bc310569e5d WHIRLPOOL ffdea204d1ba50c2f9583cf775a60e963d0df94ee97c2c929d7e2b7134c03af59bd0b7aae6d7aa88c290cecbdde4bc36a5bcd92ae6807ea7af17726a875860cb
+DIST fhist-1.16.tar.gz 383180 SHA256 3f71c86939694755e456a9c82156f779063e74240d21da2251f33ae3c25ea336 SHA512 919fc4d424e1f878404ec2d305dbcd66a4697c88c38af54033bdb178704cf08997c816d75db93ddbfc5248f29b997c4b8aaa3fd98ee790c32582124fc332bc1d WHIRLPOOL 6469fc9a4a5ed9f82af0dca8f1f167b9c56385283328d0c24bcd88b7e38fbf9912eeb71a37a64687f9bf1c58e0996ec7ae71649ae6fa4b0622b83f65bfc8526a
+DIST fhist-1.19.tar.gz 409083 SHA256 e18d97f6ff5c44593f82775eb82540d870409ed80712eead8fd41684f194f62c SHA512 d93f0ce1b29e527af5de3f49d44ebc11567f53bb0b428322daa42b0a4a14ae75333ffcb9a65ba14b2a6240d57be7bdf7632e6b4eccd071d4e9b6e90c14c317a9 WHIRLPOOL 072a3231c3994310396f00dfab0b7214e23c5e59bfa511ba0987ff89b686e3d4a33bf6f10e77fad3f1e80857f337a47a77204d3dd14aa62f42932b48d088afeb
+DIST fhist-1.21.D001.tar.gz 409961 SHA256 bc8963b142d3686c3848a74ec996cb8619cd7843deb2f99709d81bed30f6843b SHA512 9f69ba29bdd44b4888decdcfb7db49a29a1c9611ae5cd733af2e3ec04afc498674854616335d13ca732a6485cbffafc6a4072d14a9638ead1dea4412a2070f97 WHIRLPOOL 70f070ac04a4648c8575ee6ffd95edc6d5f6ee0a25e5269842f2d41dac1e600c193a72c1138a4267a02bda4137ed216b9f2c6ae5a758cf8270b1699bd6c5466f
+EBUILD fhist-1.16.ebuild 832 SHA256 dc9f927c77d0eecaff76490acb13919b00bb2056b18beae3f227558ecdeced1d SHA512 44546f6818f65c084c16f0eb5d081e3be61854e4fa4aa16a0a4f0af522ee8aec518146b5a17c72daf33b6e31fd467ac7c2609222f4409c71f468045f473e5c0d WHIRLPOOL 6be119ef886d0b513c16dc755e6e56b1e9b7a717d70857ee147730334a40bd4dfbcd87738c9242d321254f5b0431caeabe0ee657ac3a200f2a77c73716d016d1
+EBUILD fhist-1.19.ebuild 623 SHA256 d65ea247aae8ada2b2b90129ea55208ac6419f94ca915d35cceeaa7ac5e295d3 SHA512 28df7e012eb27594d9c26f9cc7a1a2bd36887481db45cd8f0edbc8a5fd6bd56c0606bc7d605322f89f859ee2e4c638c1bfc776b310816d0205c784cc40bde33e WHIRLPOOL b619128caf6645d17ae9a84d69cac8cf7ba0e64dd32dfc3f5c8258427340d4f6af2eabd0c0918ac7c47c41f92d0a0426064d44847bdcecd8cf151010294eccdf
+EBUILD fhist-1.21.ebuild 627 SHA256 8cf8840efa53207547312e2415f907d258dcc2ba9bdad7368f85147152c0e0a2 SHA512 d1a8ea57a1613f6ea85995deda14da7f5cdd632b552c9d1f20f39285de7e27542b23a5274f8770ddadeaa4aee632dd0ac0797218a7cafe48e684a0535a4cb2b8 WHIRLPOOL e2b805105f62bac6b83f8bab6870200881f9fae37028e36525467fd9344c6a8780c52dd52db8f3c05884143bacaffc47d403b10331b90337db32e0ea87c4a232
+MISC ChangeLog 3002 SHA256 c0323958547b3edb3590ddaf8178aa11952237e702087f64d727b9a5819094a7 SHA512 7421ce8421377cad7ba0f789c6b740d9d13f47596d392310ab256158c8ce3ecc68e489377dc00635a9a2241b116e1968b4b7ece1f94c8b2aaef5cbfe1591accd WHIRLPOOL 68003c08303468861d4bc1a967522b10aff89ea8603126cc09abfb221d15264233be58ac29913e117db6202870aa55cafcaf224285d57b637b3dfab233b4fa86
+MISC ChangeLog-2015 3920 SHA256 aa98506feee114f94cbf65553a8210f536a4c869bf0b4cc822daa5ef13077612 SHA512 0cdd505a563c1eae7eb0a42c6172be1f7fc39caa0a3798c421b112c2611d9793db8fb4b8941d4717a3044d8c79a082747df70bc68c782375e6f176878a91edef WHIRLPOOL 72bce022f3723451fec691864812d49143a009c63d5fb48321e78bfcab86b4b0185a877f44c5b7e123c8b21f44bf473e88bc8be15263e91319c1180146a14aa7
+MISC metadata.xml 340 SHA256 637a847a7f715f24cc4bd2dffded0dc59cf60f07cef3400127ab420a67bbe12a SHA512 ac21cc184e87106ab2436015b123151f0a647f020492718cde669d0252d94995c937f4e6b393cc90d60ad48fbe7f35451803a18e84717c860946e13a2a7afc35 WHIRLPOOL 9570a0ce22ba2ffff5a5b6da4d5e5287e9c8c4c8f7afcc0ae5ca0df3a97337e15e34dc0bcde51d9f83b099ea29cf84a6f885f3ae8df62586afdc8be3ebfd89b7
diff --git a/dev-util/fhist/fhist-1.16.ebuild b/dev-util/fhist/fhist-1.16.ebuild
new file mode 100644
index 000000000000..1bcd65423a17
--- /dev/null
+++ b/dev-util/fhist/fhist-1.16.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+DESCRIPTION="File history and comparison tools"
+HOMEPAGE="http://fhist.sourceforge.net/fhist.html"
+SRC_URI="http://fhist.sourceforge.net/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~ppc x86"
+IUSE="test"
+
+RDEPEND="sys-devel/gettext
+ sys-apps/groff"
+DEPEND="${RDEPEND}
+ test? ( app-arch/sharutils )
+ sys-devel/bison"
+
+MAKEOPTS+=" -j1"
+
+src_compile() {
+ econf
+ emake || die "emake failed"
+}
+
+src_test() {
+ emake sure || die "src_test failed"
+}
+
+src_install () {
+ emake \
+ RPM_BUILD_ROOT="${D}" \
+ NLSDIR="${D}/usr/share/locale" \
+ install || die "make install failed"
+
+ dodoc lib/en/*.txt || die
+ dodoc lib/en/*.ps || die
+
+ # remove duplicate docs etc.
+ rm -r "${D}"/usr/share/fhist
+
+ dodoc MANIFEST README || die
+}
diff --git a/dev-util/fhist/fhist-1.19.ebuild b/dev-util/fhist/fhist-1.19.ebuild
new file mode 100644
index 000000000000..c23d28e436b5
--- /dev/null
+++ b/dev-util/fhist/fhist-1.19.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit eutils flag-o-matic
+
+DESCRIPTION="File history and comparison tools"
+HOMEPAGE="http://fhist.sourceforge.net/fhist.html"
+SRC_URI="http://fhist.sourceforge.net/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-3"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-linux"
+IUSE="test"
+
+RDEPEND="
+ dev-libs/libexplain
+ sys-devel/gettext
+ sys-apps/groff"
+DEPEND="${RDEPEND}
+ sys-devel/bison
+ test? ( app-arch/sharutils )"
+
+src_prepare() {
+ MAKEOPTS+=" -j1"
+ epatch "${FILESDIR}"/${PV}-ldflags.patch
+ append-cflags -fgnu89-inline
+}
diff --git a/dev-util/fhist/fhist-1.21.ebuild b/dev-util/fhist/fhist-1.21.ebuild
new file mode 100644
index 000000000000..1f783dcb8d3a
--- /dev/null
+++ b/dev-util/fhist/fhist-1.21.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils flag-o-matic
+
+DESCRIPTION="File history and comparison tools"
+HOMEPAGE="http://fhist.sourceforge.net/fhist.html"
+SRC_URI="http://fhist.sourceforge.net/${P}.D001.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-3"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-linux"
+IUSE="test"
+
+RDEPEND="
+ dev-libs/libexplain
+ sys-devel/gettext
+ sys-apps/groff"
+DEPEND="${RDEPEND}
+ sys-devel/bison
+ test? ( app-arch/sharutils )"
+
+src_prepare() {
+ MAKEOPTS+=" -j1"
+ epatch "${FILESDIR}"/${P}-ldflags.patch
+ append-cflags -fgnu89-inline
+}
diff --git a/dev-util/fhist/files/1.19-ldflags.patch b/dev-util/fhist/files/1.19-ldflags.patch
new file mode 100644
index 000000000000..c0fa0e825a9e
--- /dev/null
+++ b/dev-util/fhist/files/1.19-ldflags.patch
@@ -0,0 +1,43 @@
+diff --git a/Makefile.in b/Makefile.in
+index 8aa8408..2c39b28 100644
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -500,8 +500,9 @@ common/sub/expr.$(OBJEXT): common/sub/expr.c common/ac/stdarg.h \
+ $(CC) $(CPPFLAGS) $(CFLAGS) -I. -c common/sub/expr.c
+ mv expr.$(OBJEXT) common/sub/expr.$(OBJEXT)
+
+-common/sub/expr_gram.yacc.c common/sub/expr_gram.yacc.h: \
+- common/sub/expr_gram.y
++common/sub/expr_gram.yacc.c: common/sub/expr_gram.yacc.h
++
++common/sub/expr_gram.yacc.h: common/sub/expr_gram.y
+ $(YACC) -d common/sub/expr_gram.y
+ sed -e 's/[yY][yY]/sub_expr_gram_/g' y.tab.c > \
+ common/sub/expr_gram.yacc.c
+@@ -961,7 +962,7 @@ common/libcommon.a: $(lib_obj)
+ fcomp_obj = fcomp/main.$(OBJEXT)
+
+ bin/fcomp$(EXEEXT): $(fcomp_obj) common/libcommon.a .bin
+- $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $(fcomp_obj) \
++ $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $(fcomp_obj) \
+ common/libcommon.a $(LIBS)
+
+ $(bindir)/fcomp$(EXEEXT): bin/fcomp$(EXEEXT) .bindir
+@@ -974,7 +975,7 @@ fhist_obj = fhist/breaks.$(OBJEXT) fhist/diff.$(OBJEXT) \
+ fhist/subroutine.$(OBJEXT) fhist/update.$(OBJEXT)
+
+ bin/fhist$(EXEEXT): $(fhist_obj) common/libcommon.a .bin
+- $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $(fhist_obj) \
++ $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $(fhist_obj) \
+ common/libcommon.a $(LIBS)
+
+ $(bindir)/fhist$(EXEEXT): bin/fhist$(EXEEXT) .bindir
+@@ -983,7 +984,7 @@ $(bindir)/fhist$(EXEEXT): bin/fhist$(EXEEXT) .bindir
+ fmerge_obj = fmerge/main.$(OBJEXT) fmerge/work.$(OBJEXT)
+
+ bin/fmerge$(EXEEXT): $(fmerge_obj) common/libcommon.a .bin
+- $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $(fmerge_obj) \
++ $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $(fmerge_obj) \
+ common/libcommon.a $(LIBS)
+
+ $(bindir)/fmerge$(EXEEXT): bin/fmerge$(EXEEXT) .bindir
diff --git a/dev-util/fhist/files/fhist-1.21-ldflags.patch b/dev-util/fhist/files/fhist-1.21-ldflags.patch
new file mode 100644
index 000000000000..00aab69d7495
--- /dev/null
+++ b/dev-util/fhist/files/fhist-1.21-ldflags.patch
@@ -0,0 +1,40 @@
+ Makefile.in | 12 ++++++------
+ 1 file changed, 6 insertions(+), 6 deletions(-)
+
+diff --git a/Makefile.in b/Makefile.in
+index ba4e4c2..c0e552a 100644
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -916,8 +916,8 @@ common/libcommon.a: $(common_obj)
+ fcomp_obj = fcomp/main.$(OBJEXT)
+
+ bin/fcomp$(EXEEXT): $(fcomp_obj) common/libcommon.a .bin
+- $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $(fcomp_obj) common/libcommon.a \
+- $(LDFLAGS) $(LIBS)
++ $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $(fcomp_obj) common/libcommon.a \
++ $(LIBS)
+
+ $(bindir)/fcomp$(EXEEXT): bin/fcomp$(EXEEXT) .bindir
+ $(INSTALL_PROGRAM) bin/fcomp$(EXEEXT) $@
+@@ -928,8 +928,8 @@ fhist_obj = fhist/breaks.$(OBJEXT) fhist/diff.$(OBJEXT) fhist/extract.$(OBJEXT)
+ fhist/subroutine.$(OBJEXT) fhist/update.$(OBJEXT)
+
+ bin/fhist$(EXEEXT): $(fhist_obj) common/libcommon.a .bin
+- $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $(fhist_obj) common/libcommon.a \
+- $(LDFLAGS) $(LIBS)
++ $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $(fhist_obj) common/libcommon.a \
++ $(LIBS)
+
+ $(bindir)/fhist$(EXEEXT): bin/fhist$(EXEEXT) .bindir
+ $(INSTALL_PROGRAM) bin/fhist$(EXEEXT) $@
+@@ -937,8 +937,8 @@ $(bindir)/fhist$(EXEEXT): bin/fhist$(EXEEXT) .bindir
+ fmerge_obj = fmerge/main.$(OBJEXT) fmerge/work.$(OBJEXT)
+
+ bin/fmerge$(EXEEXT): $(fmerge_obj) common/libcommon.a .bin
+- $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $(fmerge_obj) common/libcommon.a \
+- $(LDFLAGS) $(LIBS)
++ $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $(fmerge_obj) common/libcommon.a \
++ $(LIBS)
+
+ $(bindir)/fmerge$(EXEEXT): bin/fmerge$(EXEEXT) .bindir
+ $(INSTALL_PROGRAM) bin/fmerge$(EXEEXT) $@
diff --git a/dev-util/fhist/metadata.xml b/dev-util/fhist/metadata.xml
new file mode 100644
index 000000000000..71ffe3a34b29
--- /dev/null
+++ b/dev-util/fhist/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="project">
+ <email>shell-tools@gentoo.org</email>
+ <name>Gentoo Shell Tools Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">fhist</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/findbugs/Manifest b/dev-util/findbugs/Manifest
new file mode 100644
index 000000000000..ef9b34884c1c
--- /dev/null
+++ b/dev-util/findbugs/Manifest
@@ -0,0 +1,14 @@
+AUX 0001-Support-bcel-6.0-RC3-instead-of-a-random-snapshot.patch 2267 SHA256 9194d96be8a9b64ed82cb478f868c39f777dcdea5d93f2f5cb34336122c83f08 SHA512 66ba7a8f9331b020e7edfae46ca80a1a914bc4ee61b30b2e5f0b18eaf1b60e6dce124e0a3908f588b2e7e240968dcde93125aa32bdf215388b7c3f195a274f83 WHIRLPOOL 1761d47cc064e7b807474b7da4b2d54a8e882005672712e0f134c4024a778a5e67df4c480a1e663fd95522235262d124392964c89cd73bb841a6300289ea28c1
+AUX 0002-Don-t-bundle-anything-in-the-annotations-jar.patch 785 SHA256 df1b73a3743d38a2391722b75f1c848cce60fc2bab8dc1d17b740763387f7f55 SHA512 7810ac73d039bbaf74b6302e73879ac1c13edbe747e400d3d32570f7eeeb89dac5d41c05d2dd5babee4769bb3528bdf826dcb2e244e3a15d8342b9d8f45a6752 WHIRLPOOL 24e500ee5df830a114799ef6a2d835eb667d7c09f52ded9c07b8b0d10d5221b64c7a1e008a9c2f4e7c8b71fb7de479e2fa9e8ac8137c214ffcdbeb5dac6542a6
+AUX 0003-JDK-1.8-works-fine-for-me.patch 932 SHA256 982ae953eccec2713d8cc7a6780446899c0f5d331861adfe78b1a2b658ba2226 SHA512 44dcfc2a45307b71a6106f2c2a8b8343f718816c04614acf9e212cf274f33d0796bab44714c66f75a193d09666269e9e2bdc16b63daad66548faa326780e3fa0 WHIRLPOOL 4b07a37c4511ac837bf770124737a46fee72881c1f24b94c72b1c8eed0beaa8910d8aca20161d527da34d2e99b92fd1268b8845c18b7659b04ccc81a4a4cd357
+AUX 0004-Don-t-clean-before-generating-docs.patch 623 SHA256 bab289bd17f094a2a6fee7bc54b4816aa99aaed9b43e7c5372ec21741a47b3f0 SHA512 4b5eed349a60d78dee3417e20798e8bb6a1054b655438e078d217942379529cb283f36e500b78ab15a893790277111c2ec94ed8c8fe37882aaef126c0af56981 WHIRLPOOL 595a2c0aa6e47181bb9e4d5d97d2b11c22e6f84d4e0e584dd1098fd7eb0b861d67797bab96ff10dc23cd40b8c2b85180bdb69fa8cc175bbd2acd2a8662d5db9c
+AUX 0005-Don-t-require-git-to-build.patch 700 SHA256 a590ca9d60ebce7a4bba98db820afb5af9c0aafd73c7b8f51ebf7826c776bb1f SHA512 84858e4c64bd3778cc604102df7e8ebb45c5fe4d7f64f065960d78f81c082a11e7037fcf0481d3b7d033bbcec8e24de78bead4d155672092f096029b5239d9bc WHIRLPOOL 8748f09569dd8a4977e40c3d87f5a67e926c184b557c93c705a25a75ea99d166deac1ac83278aac79dc35f05c4103e610330207d301e5f78df9c385cb78c8ec5
+AUX launchers/fb 1190 SHA256 4bbc11fcac3065b8503988043488ba70a7347de5231a045c58182fd05586ab94 SHA512 1e14856fa31f1115509f5efaa0bde86ba4d82fa195a0b2e5218e955f8c51a0b7d5868c2078e6b6fa72d05145395df63b1aa6e923af4008aa555d43c4de6231cf WHIRLPOOL cffbf923669dafea0b38358c4e1cf1ebdff2cf6d52424511c740b0e8c82d28fc27a6029dd515e7cd4c2531daa18582ce66ca32ffb003db25472a2ca490dcc918
+AUX launchers/fbwrap 41 SHA256 c8cb79523ce39f4790258ea6d85a2559cafe48169a66081b48240e462605a709 SHA512 d7b8cb9e8bbb7509b25abfa4f91efca154239f4b107680e4f6125fb236030a3eaae513b89252b7cb6e5893d52bcd3d4706e44733dc0e08a6a99e30865ea30202 WHIRLPOOL d71fce6937f6954070190abc00716e07d2debe0ea15d3a2e1c0e69645d79abe2b68d1864018e8187bdd4a3735b006c22f34a80fcbeda993a686f2bdc6ffdeb03
+AUX launchers/findbugs 1298 SHA256 75c5633e7951471d07695fda7fba2749df3c93e907e98e1c02ab8bc3313588c2 SHA512 24ba47e65452e36f885a864ae645e58b3a773570bde12371026203d3ca2cd20c2538f4acccf1159b52d2b52d2be913d6ebad794b3f17ab99d4fc3baaa47d1d82 WHIRLPOOL c75a1c36b4ee01c20873cd047f445e0d8cb3b5910e7393d8dd4ae0fa1678c3177e58bece2cdc363947ddf0505769e3a6dd980d4c9a531b5884f6b99f1ef82672
+AUX launchers/findbugs2 1290 SHA256 231464c1b31de2f1cf3defe3857c47f6b3200bee03db278858ea8a3fcd80d65a SHA512 de0eec2986596e67654ef17771c397c30b064d99d8d78dc89bd61ae309c61233091d82ee56b1965005d2dbfd9afb466b3b98554e602df43ffbf72fec60e764ab WHIRLPOOL 11675e234c755558e8bca9080608a9ac9e9b6247518f7a7ed1bb0b637e50e6baf58698f250f9668dd679604cbcfee8cc587555f550435e17097c60c4eb71b320
+DIST findbugs-3.0.1-source.zip 9625065 SHA256 bd8ec66550d419ed40283bd78a6268f9af57dcad20b732a9309fd1835abd33ff SHA512 d967769f2356f28b34d92c7451cf3e2ac004e667bfc3b049b5b10b1c19d7be2cfa0db132a77698d042300330f77a2bb5dd8c4baa0d67c37b7e5ae6da9e83a64f WHIRLPOOL 9e407cb5733560d6a548da37becdf1b1b120459a2453d85d4a345a7ff30a3ba1d92179a2586ebfac3c23c6d20f591aed6429b501d6ec791f4b1a390ab77ce387
+EBUILD findbugs-3.0.1.ebuild 2955 SHA256 cb48742b7b5285ede3a51cc35e269d610c22d5a52b16f852353a7823cb8f8591 SHA512 c47b1f6a097d9a5d0dd74764bbf109d82c9d3069af9cae10ed6910c48e33545ed9421768268650c908aeaa0edc06e5b06afcf61d2af19d80d2b31b5362742b9c WHIRLPOOL f12f61bf8f7e15fd1f501b886e2d7e7f451724202a31045761d9f26d69391614fbb2e230d197abe0439e70c6d7707ef6d7c1e19f671e50d56907abafec08676a
+MISC ChangeLog 2821 SHA256 669de51deee8469edf56fc083010cd31f6c52ca36967274b13e2d69d1e727cb1 SHA512 5e97366de7d9eb5176d09ee03a2218083265500113b8a58151397877c979943afb9dbe5bb0d2e2514b7ca52fe0981dca1ceefa495a62db4e4727110025ed2acd WHIRLPOOL be485e4497e5776a826537d4b31943d46fc43af724da2079603a66534232798d3c49474aa5d9fae772a89b8a9113447100e46830defe0d1c9b57fb97400ff5ee
+MISC ChangeLog-2015 1693 SHA256 cbc720f3b4a75678f627e2b6fcc6045e3a975bc43e27935c9b280bda7f3d5d20 SHA512 a0523efbc0801a0667a981e2f8d75ebfae505179ad714e10d5cd08de5643801a55ba292b772223441400e01d5c56ff2f486d4530d283cebd57d475a458f9ac30 WHIRLPOOL 1ec01528688b88569b31f2a90568fc45a43fd95bce432f7832678fd0f51d6f074f66ba5e5313bc55fb39e5661c94211fffc09d57f827bf42213087750097ca28
+MISC metadata.xml 1055 SHA256 0e99a8ee52cad17b195b5983c79c520b5a35278d5c5170311a252388c9d59ba4 SHA512 82e70de38547ae7e6005e773c0144a131e30737bce6c2768cca4f8264a884cc5166bdd018d1e9474bf5e81421ae61651ee9c2ec285f443fb704c67d1876da039 WHIRLPOOL 1077b703cfef75da5de378bd268168cfea761cc670084f036d88d8aaaf53174f6ae2b1dbff246905d8272eed70330efb1e208609afbe4f8e542dc66c1b6d57c2
diff --git a/dev-util/findbugs/files/0001-Support-bcel-6.0-RC3-instead-of-a-random-snapshot.patch b/dev-util/findbugs/files/0001-Support-bcel-6.0-RC3-instead-of-a-random-snapshot.patch
new file mode 100644
index 000000000000..c92e18741ae1
--- /dev/null
+++ b/dev-util/findbugs/files/0001-Support-bcel-6.0-RC3-instead-of-a-random-snapshot.patch
@@ -0,0 +1,48 @@
+From d4ef7a75e6d0e50f6417825d851ad9e5ed757985 Mon Sep 17 00:00:00 2001
+From: James Le Cuirot <chewi@gentoo.org>
+Date: Tue, 10 Mar 2015 23:47:00 +0000
+Subject: [PATCH 1/2] Support bcel 6.0 RC3 instead of a random snapshot
+
+---
+ .../src/java/edu/umd/cs/findbugs/ba/AbstractFrameModelingVisitor.java | 2 +-
+ findbugs/src/java/edu/umd/cs/findbugs/visitclass/BetterVisitor.java | 4 ++--
+ 2 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/findbugs/src/java/edu/umd/cs/findbugs/ba/AbstractFrameModelingVisitor.java b/findbugs/src/java/edu/umd/cs/findbugs/ba/AbstractFrameModelingVisitor.java
+index 52468c9..d7cbd0e 100644
+--- a/findbugs/src/java/edu/umd/cs/findbugs/ba/AbstractFrameModelingVisitor.java
++++ b/findbugs/src/java/edu/umd/cs/findbugs/ba/AbstractFrameModelingVisitor.java
+@@ -50,7 +50,7 @@ import edu.umd.cs.findbugs.bcel.generic.NULL2Z;
+ * @see Frame
+ * @see DataflowAnalysis
+ */
+-public abstract class AbstractFrameModelingVisitor<Value, FrameType extends Frame<Value>> implements VisitorSupportsInvokeDynamic {
++public abstract class AbstractFrameModelingVisitor<Value, FrameType extends Frame<Value>> extends EmptyVisitor {
+ private FrameType frame;
+
+ private Location location;
+diff --git a/findbugs/src/java/edu/umd/cs/findbugs/visitclass/BetterVisitor.java b/findbugs/src/java/edu/umd/cs/findbugs/visitclass/BetterVisitor.java
+index 5d62092..a36abac 100644
+--- a/findbugs/src/java/edu/umd/cs/findbugs/visitclass/BetterVisitor.java
++++ b/findbugs/src/java/edu/umd/cs/findbugs/visitclass/BetterVisitor.java
+@@ -56,7 +56,7 @@ import org.apache.bcel.classfile.StackMap;
+ import org.apache.bcel.classfile.StackMapEntry;
+ import org.apache.bcel.classfile.Synthetic;
+ import org.apache.bcel.classfile.Unknown;
+-import org.apache.bcel.classfile.Visitor;
++import org.apache.bcel.classfile.EmptyVisitor;
+
+ /**
+ * Fixedup of from org.apache.bcel.classfile.Visitor
+@@ -64,7 +64,7 @@ import org.apache.bcel.classfile.Visitor;
+ * @author <A HREF="http://www.cs.umd.edu/~pugh">William Pugh</A>
+ * @version 980818
+ */
+-public abstract class BetterVisitor implements Visitor {
++public abstract class BetterVisitor extends EmptyVisitor {
+
+ /**
+ * clone() is overridden to change access control from protected to public.
+--
+2.0.4
+
diff --git a/dev-util/findbugs/files/0002-Don-t-bundle-anything-in-the-annotations-jar.patch b/dev-util/findbugs/files/0002-Don-t-bundle-anything-in-the-annotations-jar.patch
new file mode 100644
index 000000000000..67938e4e371c
--- /dev/null
+++ b/dev-util/findbugs/files/0002-Don-t-bundle-anything-in-the-annotations-jar.patch
@@ -0,0 +1,25 @@
+From c956ffd82e5b88be74dca187dc80afcf6559a78f Mon Sep 17 00:00:00 2001
+From: James Le Cuirot <chewi@gentoo.org>
+Date: Wed, 11 Mar 2015 21:41:36 +0000
+Subject: [PATCH 2/2] Don't bundle anything in the annotations jar
+
+---
+ findbugs/build.xml | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/findbugs/build.xml b/findbugs/build.xml
+index 698b91f..3eac5d6 100644
+--- a/findbugs/build.xml
++++ b/findbugs/build.xml
+@@ -298,8 +298,6 @@
+ <fileset dir="${src.dir}">
+ <include name="**/annotations/*.java"/>
+ </fileset>
+- <zipfileset src="${jar.dir}/jcip-annotations.jar" excludes="META-INF/**,**/*.html"/>
+- <zipfileset src="${jar.dir}/jsr305.jar" excludes="META-INF/**,**/*.html"/>
+ </jar>
+ </target>
+
+--
+2.0.4
+
diff --git a/dev-util/findbugs/files/0003-JDK-1.8-works-fine-for-me.patch b/dev-util/findbugs/files/0003-JDK-1.8-works-fine-for-me.patch
new file mode 100644
index 000000000000..ce4e186f0aca
--- /dev/null
+++ b/dev-util/findbugs/files/0003-JDK-1.8-works-fine-for-me.patch
@@ -0,0 +1,30 @@
+From af7e19734c9bbd21d2f1bf8a66b5ca1c131eeacd Mon Sep 17 00:00:00 2001
+From: James Le Cuirot <chewi@gentoo.org>
+Date: Fri, 13 Mar 2015 00:20:20 +0000
+Subject: [PATCH 3/3] JDK 1.8 works fine for me
+
+---
+ findbugs/build.xml | 7 -------
+ 1 file changed, 7 deletions(-)
+
+diff --git a/findbugs/build.xml b/findbugs/build.xml
+index 3eac5d6..48c8f2b 100644
+--- a/findbugs/build.xml
++++ b/findbugs/build.xml
+@@ -122,13 +122,6 @@
+ </javac>
+ </target>
+ <target name="classes" depends="init">
+- <echo>Requires JDK 7.x (not 8!), using: ${ant.java.version}</echo>
+- <fail message="Requires JDK 7.x (not 8!), using: ${ant.java.version}">
+- <condition>
+- <equals arg1="1.8" arg2="${ant.java.version}"/>
+- </condition>
+- </fail>
+-
+ <!-- Compile Java source files. -->
+ <echo level="info" message="compiling findbugs"/>
+ <javac
+--
+2.0.4
+
diff --git a/dev-util/findbugs/files/0004-Don-t-clean-before-generating-docs.patch b/dev-util/findbugs/files/0004-Don-t-clean-before-generating-docs.patch
new file mode 100644
index 000000000000..670f497e507b
--- /dev/null
+++ b/dev-util/findbugs/files/0004-Don-t-clean-before-generating-docs.patch
@@ -0,0 +1,25 @@
+From c73984b12bb3c80a67d993a30c894ee05613d422 Mon Sep 17 00:00:00 2001
+From: James Le Cuirot <chewi@gentoo.org>
+Date: Fri, 13 Mar 2015 13:59:22 +0000
+Subject: [PATCH 4/4] Don't clean before generating docs
+
+---
+ findbugs/build.xml | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/findbugs/build.xml b/findbugs/build.xml
+index 48c8f2b..d0cbc04 100644
+--- a/findbugs/build.xml
++++ b/findbugs/build.xml
+@@ -652,7 +652,7 @@
+ </target>
+
+
+- <target name="checkdocs" depends="clean">
++ <target name="checkdocs">
+ <!-- FIXME: check whether docs are up to date -->
+ </target>
+
+--
+2.0.4
+
diff --git a/dev-util/findbugs/files/0005-Don-t-require-git-to-build.patch b/dev-util/findbugs/files/0005-Don-t-require-git-to-build.patch
new file mode 100644
index 000000000000..acdff2ce96d2
--- /dev/null
+++ b/dev-util/findbugs/files/0005-Don-t-require-git-to-build.patch
@@ -0,0 +1,25 @@
+From cbf9d81dba1ef0a42f79391c87845d7875a13993 Mon Sep 17 00:00:00 2001
+From: James Le Cuirot <chewi@gentoo.org>
+Date: Mon, 18 May 2015 20:41:58 +0100
+Subject: [PATCH 5/5] Don't require git to build
+
+---
+ findbugs/build.xml | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/findbugs/build.xml b/findbugs/build.xml
+index d0cbc04..42c6d09 100644
+--- a/findbugs/build.xml
++++ b/findbugs/build.xml
+@@ -636,7 +636,7 @@
+ </target>
+
+
+- <target name="version" depends="classes,-get-git-revision" >
++ <target name="version" depends="classes" >
+ <echo>${gitrnum}</echo>
+ <java classpathref="tools.classpath"
+ output="${version.props.file}"
+--
+2.3.3
+
diff --git a/dev-util/findbugs/files/launchers/fb b/dev-util/findbugs/files/launchers/fb
new file mode 100644
index 000000000000..79d44a41681d
--- /dev/null
+++ b/dev-util/findbugs/files/launchers/fb
@@ -0,0 +1,75 @@
+escape_arg() {
+ echo "$1" | sed -e "s,\\([\\\"' ]\\),\\\\\\1,g"
+}
+
+# Set defaults
+fb_mainclass="edu.umd.cs.findbugs.workflow.FB"
+user_jvmargs=''
+ea_arg=''
+debug_arg=''
+conservespace_arg=''
+user_props=''
+
+# Handle command line arguments.
+while [ $# -gt 0 ]; do
+ case $1 in
+ -textui)
+ fb_mainclass="edu.umd.cs.findbugs.FindBugs2"
+ ;;
+
+ -jvmArgs)
+ shift
+ user_jvmargs="$1"
+ ;;
+
+ -ea)
+ ea_arg='-ea'
+ ;;
+
+ -maxHeap)
+ shift
+ fb_maxheap="-Xmx$1m"
+ ;;
+
+ -debug)
+ debug_arg="-Dfindbugs.debug=true"
+ ;;
+
+ -conserveSpace)
+ conservespace_arg="-Dfindbugs.conserveSpace=true"
+ ;;
+
+ -property)
+ shift
+ user_props="-D$1 $user_props"
+ ;;
+
+ -D*=*)
+ user_props="$1 $user_props"
+ ;;
+
+ -version)
+ fb_mainclass=edu.umd.cs.findbugs.Version
+ fb_appargs="-release"
+ while [ $# -gt 0 ]; do
+ shift
+ done
+ ;;
+
+ -help)
+ fb_mainclass="edu.umd.cs.findbugs.ShowHelp"
+ ;;
+
+ # All unrecognized arguments will be accumulated and
+ # passed to the application.
+ *)
+ fb_appargs="$fb_appargs `escape_arg "$1"`"
+ ;;
+ esac
+
+ shift
+done
+
+fb_maxheap=${fb_maxheap:-"-Xmx768m"}
+fb_jvmargs="$fb_maxheap $user_jvmargs $debug_arg $conservespace_arg $user_props $ea_arg"
+gjl_pkg_args="$fb_appargs"
diff --git a/dev-util/findbugs/files/launchers/fbwrap b/dev-util/findbugs/files/launchers/fbwrap
new file mode 100644
index 000000000000..7d208611c13c
--- /dev/null
+++ b/dev-util/findbugs/files/launchers/fbwrap
@@ -0,0 +1,3 @@
+fb_mainclass="$1"
+unset fb_jvmargs
+shift
diff --git a/dev-util/findbugs/files/launchers/findbugs b/dev-util/findbugs/files/launchers/findbugs
new file mode 100644
index 000000000000..e557ce516212
--- /dev/null
+++ b/dev-util/findbugs/files/launchers/findbugs
@@ -0,0 +1,83 @@
+escape_arg() {
+ echo "$1" | sed -e "s,\\([\\\"' ]\\),\\\\\\1,g"
+}
+
+# Set defaults
+fb_mainclass="edu.umd.cs.findbugs.LaunchAppropriateUI"
+user_jvmargs=''
+ea_arg=''
+debug_arg=''
+conservespace_arg=''
+user_props=''
+
+# Handle command line arguments.
+while [ $# -gt 0 ]; do
+ case $1 in
+ -gui)
+ # this is the default
+ ;;
+
+ -gui1)
+ user_props="-Dfindbugs.launchUI=1 $user_props"
+ ;;
+
+ -textui)
+ fb_mainclass="edu.umd.cs.findbugs.FindBugs2"
+ ;;
+
+ -jvmArgs)
+ shift
+ user_jvmargs="$1"
+ ;;
+
+ -ea)
+ ea_arg='-ea'
+ ;;
+
+ -maxHeap)
+ shift
+ fb_maxheap="-Xmx$1m"
+ ;;
+
+ -debug)
+ debug_arg="-Dfindbugs.debug=true"
+ ;;
+
+ -conserveSpace)
+ conservespace_arg="-Dfindbugs.conserveSpace=true"
+ ;;
+
+ -property)
+ shift
+ user_props="-D$1 $user_props"
+ ;;
+
+ -D*=*)
+ user_props="$1 $user_props"
+ ;;
+
+ -version)
+ fb_mainclass=edu.umd.cs.findbugs.Version
+ fb_appargs="-release"
+ while [ $# -gt 0 ]; do
+ shift
+ done
+ ;;
+
+ -help)
+ fb_mainclass="edu.umd.cs.findbugs.ShowHelp"
+ ;;
+
+ # All unrecognized arguments will be accumulated and
+ # passed to the application.
+ *)
+ fb_appargs="$fb_appargs `escape_arg "$1"`"
+ ;;
+ esac
+
+ shift
+done
+
+fb_maxheap=${fb_maxheap:-"-Xmx768m"}
+fb_jvmargs="$fb_maxheap $user_jvmargs $debug_arg $conservespace_arg $user_props $ea_arg"
+gjl_pkg_args="$fb_appargs"
diff --git a/dev-util/findbugs/files/launchers/findbugs2 b/dev-util/findbugs/files/launchers/findbugs2
new file mode 100644
index 000000000000..d87ea82c0907
--- /dev/null
+++ b/dev-util/findbugs/files/launchers/findbugs2
@@ -0,0 +1,89 @@
+# Default UI is GUI2
+fb_launchui="2"
+
+#
+# Stuff we're going to pass to the JVM as JVM arguments.
+#
+jvm_debug=""
+jvm_maxheap="-Xmx768m"
+jvm_ea=""
+jvm_conservespace=""
+jvm_user_props=""
+
+#
+# Process command line args until we hit one we don't recognize.
+#
+finishedArgs=false
+while [ $# -gt 0 ] && [ "$finishedArgs" = "false" ]; do
+
+ arg=$1
+
+ case $arg in
+ -textui)
+ shift
+ fb_launchui="0"
+ ;;
+
+ -gui)
+ shift
+ fb_launchui="2"
+ ;;
+
+ -gui1)
+ shift
+ fb_launchui="1"
+ ;;
+
+ -maxHeap)
+ shift
+ jvm_maxheap="-Xmx$1m"
+ shift
+ ;;
+
+ -ea)
+ shift
+ jvm_ea="-ea"
+ ;;
+
+ -debug)
+ shift
+ jvm_debug="-Dfindbugs.debug=true"
+ ;;
+
+ -conserveSpace)
+ shift
+ jvm_conservespace="-Dfindbugs.conserveSpace=true"
+ ;;
+
+ -property)
+ shift
+ jvm_user_props="-D$1 $jvm_user_props"
+ shift
+ ;;
+
+ -D*=*)
+ jvm_user_props="$1 $user_props"
+ shift
+ ;;
+
+ -version)
+ shift
+ fb_launchui="version"
+ ;;
+
+ -help)
+ shift
+ fb_launchui="help"
+ ;;
+
+ # All arguments starting from the first unrecognized arguments
+ # are passed on to the Java app.
+ *)
+ finishedArgs=true
+ ;;
+ esac
+
+done
+
+fb_mainclass="edu.umd.cs.findbugs.LaunchAppropriateUI"
+fb_jvmargs="$jvm_debug $jvm_maxheap $jvm_ea $jvm_conservespace $jvm_user_props -Dfindbugs.launchUI=$fb_launchui"
diff --git a/dev-util/findbugs/findbugs-3.0.1.ebuild b/dev-util/findbugs/findbugs-3.0.1.ebuild
new file mode 100644
index 000000000000..2498e2e3a9e4
--- /dev/null
+++ b/dev-util/findbugs/findbugs-3.0.1.ebuild
@@ -0,0 +1,107 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+JAVA_PKG_IUSE="doc source"
+
+inherit eutils java-pkg-2 java-ant-2
+
+DESCRIPTION="Find Bugs in Java Programs"
+HOMEPAGE="http://findbugs.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}-source.zip"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+CDEPEND="dev-java/ant-core:0
+ dev-java/apple-java-extensions-bin:0
+ >=dev-java/asm-5:4
+ >=dev-java/bcel-6:0
+ dev-java/commons-lang:2.1
+ dev-java/dom4j:1
+ dev-java/hamcrest-core:1.3
+ dev-java/jaxen:1.1
+ dev-java/jcip-annotations:0
+ dev-java/jdepend:0
+ >=dev-java/jformatstring-2.0.3:0
+ dev-java/jsr305:0
+ dev-java/junit:4"
+
+RDEPEND=">=virtual/jre-1.7
+ ${CDEPEND}"
+
+DEPEND=">=virtual/jdk-1.7
+ app-arch/unzip
+ doc? (
+ app-text/docbook-xsl-stylesheets
+ dev-java/saxon:6.5
+ )
+ test? ( dev-java/ant-junit:0 )
+ ${CDEPEND}"
+
+JAVA_ANT_REWRITE_CLASSPATH="true"
+EANT_BUILD_TARGET="build"
+EANT_DOC_TARGET="apiJavadoc docs"
+EANT_TEST_TARGET="runjunit"
+EANT_GENTOO_CLASSPATH="ant-core,apple-java-extensions-bin,asm-4,bcel,commons-lang-2.1,dom4j-1,hamcrest-core-1.3,jaxen-1.1,jcip-annotations,jdepend,jformatstring,jsr305,junit-4"
+
+pkg_setup() {
+ java-pkg-2_pkg_setup
+ use doc && EANT_GENTOO_CLASSPATH_EXTRA="$(java-pkg_getjars --build-only --with-dependencies saxon-6.5)"
+ EANT_EXTRA_ARGS="-Dgitrnum=gentoo -Dxsl.stylesheet.home=${EROOT}usr/share/sgml/docbook/xsl-stylesheets"
+}
+
+java_prepare() {
+ epatch \
+ "${FILESDIR}/0001-Support-bcel-6.0-RC3-instead-of-a-random-snapshot.patch" \
+ "${FILESDIR}/0002-Don-t-bundle-anything-in-the-annotations-jar.patch" \
+ "${FILESDIR}/0003-JDK-1.8-works-fine-for-me.patch" \
+ "${FILESDIR}/0004-Don-t-clean-before-generating-docs.patch" \
+ "${FILESDIR}/0005-Don-t-require-git-to-build.patch"
+
+ # Remove bundled jars.
+ find -name "*.jar" -delete || die
+}
+
+src_install() {
+ java-pkg_dojar lib/{${PN},${PN}-ant,annotations}.jar
+
+ insinto "/usr/share/${PN}/plugin"
+ doins plugin/README
+
+ use source && java-pkg_dosrc src/*/edu
+
+ if use doc; then
+ insinto "/usr/share/doc/${PF}/html/web"
+ doins -r build/doc/*
+ java-pkg_dojavadoc apiJavaDoc
+ fi
+
+ local SCRIPT CLASS
+ local ARGS="-Dfindbugs.home=${EROOT}usr/share/findbugs"
+
+ ls src/scripts/standard | grep -E -v '^(findbugs2?|fb|fbwrap)$' | while read SCRIPT; do
+ CLASS=$(grep '^fb_mainclass=' "src/scripts/standard/${SCRIPT}" | sed 's/^.*=//')
+ java-pkg_dolauncher "findbugs-${SCRIPT#findbugs-}" \
+ --java_args "${ARGS}" --main "${CLASS}"
+ done
+
+ for SCRIPT in findbugs{,2} fb{,wrap}; do
+ java-pkg_dolauncher "${SCRIPT}" \
+ --java_args "\$fb_jvmargs ${ARGS}" --main '$fb_mainclass' \
+ -pre "${FILESDIR}/launchers/${SCRIPT}"
+ done
+}
+
+src_test() {
+ java-pkg-2_src_test
+}
+
+pkg_postinst() {
+ elog "findbugs ships with many launcher scripts. Most of these have been"
+ elog "installed with a findbugs- prefix to avoid conflicts and confusion"
+ elog "with other executables in the PATH."
+}
diff --git a/dev-util/findbugs/metadata.xml b/dev-util/findbugs/metadata.xml
new file mode 100644
index 000000000000..7f5d054caa9f
--- /dev/null
+++ b/dev-util/findbugs/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="project">
+ <email>java@gentoo.org</email>
+ <name>Java</name>
+ </maintainer>
+ <longdescription>FindBugs uses static analysis to inspect Java bytecode for occurrences of bug patterns. Static analysis means that FindBugs can find bugs by simply inspecting a program's code: executing the program is not necessary. This makes FindBugs very easy to use: in general, you should be able to use it to look for bugs in your code within a few minutes of downloading it. FindBugs works by analyzing Java bytecode (compiled class files), so you don't even need the program's source code to use it. Because its analysis is sometimes imprecise, FindBugs can report false warnings, which are warnings that do not indicate real errors. In practice, the rate of false warnings reported by FindBugs is less than 50%.</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">findbugs</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/fix-la-relink-command/Manifest b/dev-util/fix-la-relink-command/Manifest
new file mode 100644
index 000000000000..d1f55cd07a2d
--- /dev/null
+++ b/dev-util/fix-la-relink-command/Manifest
@@ -0,0 +1,5 @@
+DIST fix-la-relink-command-0.1.1.tar.xz 5072 SHA256 fd7103a3a256375114135ad91b9ccd4b8de6c6cff814bd66540f28947e2ac740 SHA512 3b3f7f467f932d7737ec1d2cc7d2a71c65d34da4fde3451d6ac8d3545adf564cb2b5c352d89bc580f5f9c19352bfa8eccbecf2eb7bf8b968579d4e4e3bd901bd WHIRLPOOL f527275dcbfeb87e3a93921b58c88c33b52a0e678b0d2940fad47b482189f64419416c3523c3e3f8f213bf5726a089929537a727ce3fd3680f7180b08b8a6992
+EBUILD fix-la-relink-command-0.1.1.ebuild 731 SHA256 5543cc3a671ba63c28e292d1cb390074e3748928acf5694c4c5ec78e5221b263 SHA512 9dc41b08fa2ea486de6162425b59c6fc4fd402db2effd5dfbbd59e1d1370d0ea69aa360648ab2d9c37fbdd3f226b2bb5b86a7659e4c4ec0de888a5de59aa2ebd WHIRLPOOL de2a1444bf33d6a377d83b3c74483d3a8d94190c797aed1bfaa7b7f927f63f4958f110e325605dd86ff9fd3f80231ce9099cf06f26c695d242dad47b026b253a
+MISC ChangeLog 2507 SHA256 a3023a98677a8db0c107c74e3d554d5c14c45ce371b1b174318b15c389cc0269 SHA512 51ff67677011998aeaebf069cfb110023250b2df86e6e30932da5d50c57439d5fb2227ddc91224e454e7d6d4478b4e1966419de2ff42697a95a7179a7596af8c WHIRLPOOL bd2b2e0482480081d6cc868118e5a1d3c14d8f1f8ae43662c31997136d976557a69c8f63998acbb8f8b8aedb78020da71d8b4bb80f05b1e90ae8ba4f26ed4290
+MISC ChangeLog-2015 2344 SHA256 0d071f45769ef227f016575ad6078dcbbcfcaa9a1d5318c37a53e7007b387fe6 SHA512 556a66ff078d184dea85f47a2d4374296cf73f74077bcaed32ecc4d7436a30362c6128d7fce07dbc8f95301df462c54aae58d66d1f2e2fa0bb46e2892a935fe3 WHIRLPOOL 8f5197b0bc54136dc59afed8dfa8c9ffebc66339e9c387a02c3fc7a571d2be6db5185ca57fe9c98c666cf336997dea8e104b69cc21d2247a43504fefe94677e4
+MISC metadata.xml 358 SHA256 5d053c8d5a74e12af6456f1a2a717e5660d4a6efd47d50e9991053bd460a99a7 SHA512 f4636dab42e790ace26a3f7c3657ecf9c41a71f4c5d00e1d69c48856f99f7bce9c60478c79c85e53da36166402cb2f04e5d4d70747ee2a57d13dfdf00c120651 WHIRLPOOL 9f7fcc4165204d67f5b379c2ce4b394d3134b89d8858ba0445370879d8c4b9b3c3abbc3ec0bbedbefe5f8cae83618e5c2ca8bea13eb2d16bc0cb9d2e312db63c
diff --git a/dev-util/fix-la-relink-command/fix-la-relink-command-0.1.1.ebuild b/dev-util/fix-la-relink-command/fix-la-relink-command-0.1.1.ebuild
new file mode 100644
index 000000000000..1a33b2b88318
--- /dev/null
+++ b/dev-util/fix-la-relink-command/fix-la-relink-command-0.1.1.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+
+DESCRIPTION="Helps prevent .la files from relinking to libraries outside a build tree"
+HOMEPAGE="https://dev.gentoo.org/~tetromino/distfiles/${PN}"
+SRC_URI="https://dev.gentoo.org/~tetromino/distfiles/${PN}/${P}.tar.xz"
+
+LICENSE="|| ( Artistic GPL-1 GPL-2 GPL-3 )"
+SLOT="0"
+KEYWORDS="~alpha amd64 ~arm hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc x86 ~amd64-fbsd ~x86-fbsd ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE=""
+
+RDEPEND="dev-lang/perl
+ virtual/perl-Getopt-Long"
+DEPEND="${RDEPEND}
+ app-arch/xz-utils"
+
+src_install() {
+ dobin ${PN}
+ doman ${PN}.1
+ dodoc NEWS
+}
diff --git a/dev-util/fix-la-relink-command/metadata.xml b/dev-util/fix-la-relink-command/metadata.xml
new file mode 100644
index 000000000000..70d3e0dcf1d4
--- /dev/null
+++ b/dev-util/fix-la-relink-command/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>tetromino@gentoo.org</email>
+<name>Alexandre Rostovtsev</name>
+</maintainer>
+<maintainer type="project">
+<email>gnome@gentoo.org</email>
+<name>Gentoo GNOME Desktop</name>
+</maintainer>
+</pkgmetadata>
diff --git a/dev-util/flawfinder/Manifest b/dev-util/flawfinder/Manifest
new file mode 100644
index 000000000000..39f94d483459
--- /dev/null
+++ b/dev-util/flawfinder/Manifest
@@ -0,0 +1,5 @@
+DIST flawfinder-1.31.tar.gz 174148 SHA256 bca7256fdf71d778eb59c9d61fc22b95792b997cc632b222baf79cfc04887c30 SHA512 880919a05dbf0e29055f052b88c8bbfd403105504749bc65fb17675e6ebe0d84f9cd367e7a6efc68dc0d9209e0938185da4718b70f484007c507fe96b83e0355 WHIRLPOOL 4afd25adf50a1457fb678e84104182bcefbd88bbe3ec5cdc4f44136d5e3dce13da5911acae2edde15cf4fa6193af81a31ab4c2f9daf3463fac0f67a5a5c1c525
+EBUILD flawfinder-1.31.ebuild 722 SHA256 2ae1649d794d10891ebcdf96918263d7dd77ae61224937578494a0e8b16efae5 SHA512 337161a96385fe1c93ab4cd3287cde8f919b0749c8a2e5435baca94b0cd3fe7db152dffc2deee8fded56e41aa62f12a9e6b4d5b02ce8488a221da0dd7f99a4c7 WHIRLPOOL 342c072d1dae1046eb7c763ac6ee33c3f6981ef4aa4d542c5fd3f3e56b1ffdcbc9f52c5845970b8a6b479ab6c1e039663a0df7a825fedc934d58ef7c32ca3794
+MISC ChangeLog 3327 SHA256 23c39e59710f3a96ffc0d4891c3bc0344c0341f763b166f4beb7c4db6eae7bfd SHA512 700d63314ca5094379a00c00117c7db629759d28b544707abc987cab2dca2ae3b8ef1c6d618a1f94e90855298138479e9bdeec290280c9910fb64dc8d3e5c8b2 WHIRLPOOL 36763ca468b096073b8ee6c148e38009960490c42d040609ef76d4972fbc80aa3c1cdc149fe1c64a4cbb3473db6d34a5009d8cf7241764992db9d8812660c177
+MISC ChangeLog-2015 2838 SHA256 d9627e36859d77eb145ae2b12af30d5702f4eee1e5a052d16926055dd7d124ed SHA512 7081293024f5d4541853f5bf0aabe7579bf4f7b56b9f6b7e504b6d63e5346b3453c407834fb8488917bce640bc80eba6c2c7eb7e23b847c4a976fc41dc0d4993 WHIRLPOOL 10c112670785c43c310c587fe316741b0a023505028a2cce7789c054f4ef6af59e8953338a582c82900161e967bb0cfe34fa3a739c90527054df5a99946b9172
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/dev-util/flawfinder/flawfinder-1.31.ebuild b/dev-util/flawfinder/flawfinder-1.31.ebuild
new file mode 100644
index 000000000000..6faab65e58ae
--- /dev/null
+++ b/dev-util/flawfinder/flawfinder-1.31.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+inherit eutils python-single-r1
+
+DESCRIPTION="Examines C/C++ source code for security flaws"
+HOMEPAGE="http://www.dwheeler.com/flawfinder/"
+SRC_URI="http://www.dwheeler.com/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="amd64 ~mips ~ppc ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x86-solaris"
+IUSE=""
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+DEPEND="${PYTHON_DEPS}"
+RDEPEND="${DEPEND}"
+
+src_install() {
+ dobin ${PN}
+ doman ${PN}.1
+ dodoc announcement ChangeLog README announcement
+ dodoc flawfinder.pdf
+ python_fix_shebang "${ED}"usr/bin/flawfinder
+}
diff --git a/dev-util/flawfinder/metadata.xml b/dev-util/flawfinder/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/dev-util/flawfinder/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/dev-util/ftjam/Manifest b/dev-util/ftjam/Manifest
new file mode 100644
index 000000000000..08a5d88cce64
--- /dev/null
+++ b/dev-util/ftjam/Manifest
@@ -0,0 +1,9 @@
+AUX ftjam-2.5.3-debug-commandline.patch 314 SHA256 8cd45df0375dc51ecac21391a0a4b07d7a6cc716068a2326e364681293f6f93f SHA512 c9e59c3785678d347510525b10824af2648f4de040bfc2d97ca2301298628d82f78c13f63b30da1baef0a8c2ed6142fa2db63650fc982601e491aaff8e15378b WHIRLPOOL f4ed1c0bb9ba45cfe25b8b29d0770c1ef1cbb3733e56b765ef900e2e116eb5e318d88139a471f2e1a69b89f3f6824dc5b95b1ca8847f3fa8f8d85b06404dd14e
+AUX ftjam-2.5.3-false-flags.patch 1682 SHA256 ef95761ea85b103e8665b044b7a99c18e8d1c83ab3bf35e30e2d8f454ed946e8 SHA512 b9b97127c6a5d89759563cd4a1e4f87ed911610b70bbfff309105ab733290f74087bd0eb066eaad860be5624573ad2dfc1245eb45347c2d1c9800033c35e5c0a WHIRLPOOL f51ec332a5ad8581c3ac67d94d148ce010ad3a527167f3a487699b29b11d5edede337415fe1e64191c7eff8889900902f488e4da4378806ad4b69bf5d66f5dbd
+AUX ftjam-2.5.3-i-hate-yacc.patch 1756 SHA256 8d8710e4699b3c910ed8f1ea50f9b1c1a9beaae8aee0c6fc815905666a5ffb81 SHA512 e02948ccccb963ddfeb777c217efafaf19239cacff80514c167166ec666a6301b90e1a86a2b97ab58fee006f509106cc0e3dacbbde822efd0db2b9f5f4645be8 WHIRLPOOL b4daf4e31596ea71974bcd3688a3191504e47a0c88988d277dffe221fc917cd8f0918ec610a63ce1609e53cee300a229002828c69d76ce26c6d067d26b96fd32
+AUX ftjam-2.5.3-nostrip.patch 780 SHA256 66af8842f5853d22717dc1613c001aae61eed3c7f5997f16007298e0e7a97f6d SHA512 6d8b399f8a4047c34b1315a230cf47e8ab76c7fbad9089fd4c3c18b2ba7fbb2f3ecbcb2d3a1075f0d95d36e547490de345167ba55fed75221b2b8162796ccc25 WHIRLPOOL 16ab7f27f8aa37e9100cdcaf796aa7758f6159a37a171e53e6a698219bf2331a0170d90c9d43b70454f8292d8c608399c3864bc0722203daca2155bd2545bd59
+DIST ftjam-2.5.3rc2.tar.bz2 215963 SHA256 a9f8a274049893a4d1f1ad82f7b04f3ebc2554635dd606185e20ba97cb4d64ec SHA512 18a40c6741493adf293f032d9c7a9ab419402505a37993fa859e36e7a1655ec9d3d07662e6ee242487b143aa7e0f6c46f253bc7e23c3162c7381aaced001bfcd WHIRLPOOL 4a688ea0c6a883f12e9b22bd6166ec972a43fe29473a8db46c2d278e333507215b20977e01da40782fb2f266b250541c11617ad066128ac4bc7c965e56ba9d59
+EBUILD ftjam-2.5.3_rc2-r1.ebuild 1131 SHA256 947644c65fbabe27a70d432084263a0fb9c5eb7cd18c44fc814ad83a5d37d35c SHA512 9d469b5e76ed2742cd5605093c81e97c6c08454a0f8d0a54ec5c4d0d5edd1dc2188ae93b0f81c537eb2196810c68d68fd6b9b79547403c0e9c2325b3d1b102db WHIRLPOOL 6f7a2687e6e8f14394ea0bc545c7f8a3e95c778987db2ba551778c35647b1ba38175b2eb77889b92b562f8cb40ce9f9aa5ac3538f279c9b1682d7b9b3e5f7ffd
+MISC ChangeLog 2888 SHA256 0feb561a6e0cecbabd11aa0ce2695a99ae71a3fa7c5513709516d6b01deb0d0b SHA512 491d24682aed6f201ffc1a8370b02ffcb5560af84287dc5e2a931dcdcef54cf2fb7d287e2164265ae56eefbd1078fb923555a6847de6a787c8fe7b21b33807d5 WHIRLPOOL 9dc6dced18be0ab422c110db0423b797fc899a144e0f8719d90e88116dba33c641f1bb177fec517b134a049bb4dd057d141bd07008b83d38549f68ed53108f9d
+MISC ChangeLog-2015 3202 SHA256 3e634b1249b34c577474c7ca52889571484b72f2a8977d4df4cff3588c618a9c SHA512 ff5932406858d96ae948644f1af7fe162c6f952862ec29a55bc123c210df4aaadca6ead94c371407608e75fab864a95cfd973c26122adec714b89797d384c3e0 WHIRLPOOL c4a59f45331421db0f1bc2f1da40c901d840a5ebf1a5ffef64fffc439295b1335892893e46b079283d24fe40b729fc50b041d8c0764410ae752d9351783ce26a
+MISC metadata.xml 319 SHA256 f14ccb736e2c7e5255edfa752903a15481979c06099e489f4b78996675923d05 SHA512 c645d76d4eb37391099c7882f68a268bbe45e844dab9015b8d5f557c9acce08df1b5eded075288e3fcf5e6390fb177fa4a9df3adba3327ca2e2b97d1ef183e0d WHIRLPOOL 3c43bc0d1744792fe5902dad82d07b2b9085980e056d636f4658c0563f48fdd83fd4c20e2b7ce0c9d7e9c733f3602ea6b0edbb8387d0b899833cc2c8cc063058
diff --git a/dev-util/ftjam/files/ftjam-2.5.3-debug-commandline.patch b/dev-util/ftjam/files/ftjam-2.5.3-debug-commandline.patch
new file mode 100644
index 000000000000..ba6613430308
--- /dev/null
+++ b/dev-util/ftjam/files/ftjam-2.5.3-debug-commandline.patch
@@ -0,0 +1,14 @@
+Make jam print the commandline it's executing.
+Only useful for ebuild debugging - I just always forget how to enable it.
+
+--- ftjam-2.5.3rc2-orig/builds/unix/Makefile.in
++++ ftjam-2.5.3rc2/builds/unix/Makefile.in
+@@ -16,7 +16,7 @@
+
+ all: jam0
+ chmod a+w jambase.c
+- ./jam0
++ ./jam0 -dx -q
+
+ include common.mk
+
diff --git a/dev-util/ftjam/files/ftjam-2.5.3-false-flags.patch b/dev-util/ftjam/files/ftjam-2.5.3-false-flags.patch
new file mode 100644
index 000000000000..1b33a0f770d3
--- /dev/null
+++ b/dev-util/ftjam/files/ftjam-2.5.3-false-flags.patch
@@ -0,0 +1,59 @@
+Respect CC, *FLAGS. Add datarootdir for autoconf-2.60 warnings.
+
+--- ftjam-2.5.3rc2-orig/builds/unix/Makefile.in
++++ ftjam-2.5.3rc2/builds/unix/Makefile.in
+@@ -37,6 +37,7 @@ exec_prefix := @exec_prefix@
+ libdir := @libdir@
+ bindir := @bindir@
+ includedir := @includedir@
++datarootdir := @datarootdir@
+ datadir := @datadir@
+
+ version_info := @version_info@
+--- ftjam-2.5.3rc2-orig/jambase.c
++++ ftjam-2.5.3rc2/jambase.c
+@@ -652,21 +652,21 @@ const char *jambase[] = {
+ "\n",
+ "AR ?= ar ru ;\n",
+ "AS ?= as ;\n",
+-"ASFLAGS ?= ;\n",
++"ASFLAGS += $(ASFLAGS) ;\n",
+ "AWK ?= awk ;\n",
+ "BINDIR ?= /usr/local/bin ;\n",
+-"C++ ?= cc ;\n",
+-"C++FLAGS ?= ;\n",
+-"CC ?= cc ;\n",
+-"CCFLAGS ?= ;\n",
++"C++ ?= $(CXX) ;\n",
++"C++FLAGS += $(CXXFLAGS) ;\n",
++"CC ?= $(CC) ;\n",
++"CCFLAGS += $(CFLAGS) ;\n",
+ "CP ?= cp -f ;\n",
+ "CRELIB ?= ;\n",
+ "DOT ?= . ;\n",
+ "DOTDOT ?= .. ;\n",
+ "EXEMODE ?= 711 ;\n",
+ "FILEMODE ?= 644 ;\n",
+-"FORTRAN ?= f77 ;\n",
+-"FORTRANFLAGS ?= ;\n",
++"FORTRAN ?= $(F77) ;\n",
++"FORTRANFLAGS += $(FFLAGS) ;\n",
+ "HDRS ?= ;\n",
+ "INSTALLGRIST ?= installed ;\n",
+ "JAMFILE ?= Jamfile ;\n",
+@@ -674,13 +674,13 @@ const char *jambase[] = {
+ "LEX ?= ;\n",
+ "LIBDIR ?= /usr/local/lib ;\n",
+ "LINK ?= $(CC) ;\n",
+-"LINKFLAGS ?= ;\n",
++"LINKFLAGS += $(LDFLAGS) ;\n",
+ "LINKLIBS ?= ;\n",
+ "LN ?= ln ;\n",
+ "MANDIR ?= /usr/local/man ;\n",
+ "MKDIR ?= mkdir ;\n",
+ "MV ?= mv -f ;\n",
+-"OPTIM ?= ;\n",
++"OPTIM = ;\n",
+ "RCP ?= rcp ;\n",
+ "RM ?= rm -f ;\n",
+ "RMDIR ?= $(RM) ;\n",
diff --git a/dev-util/ftjam/files/ftjam-2.5.3-i-hate-yacc.patch b/dev-util/ftjam/files/ftjam-2.5.3-i-hate-yacc.patch
new file mode 100644
index 000000000000..44322d64c2cf
--- /dev/null
+++ b/dev-util/ftjam/files/ftjam-2.5.3-i-hate-yacc.patch
@@ -0,0 +1,54 @@
+diff -Naurp ftjam-2.5.3rc2-orig/Jambase ftjam-2.5.3rc2/Jambase
+--- ftjam-2.5.3rc2-orig/Jambase 2007-06-05 08:20:19.000000000 -0600
++++ ftjam-2.5.3rc2/Jambase 2008-07-21 19:26:02.000000000 -0600
+@@ -813,7 +813,7 @@ else if $(UNIX)
+ LINKLIBS ?= ;
+ OPTIM ?= -O ;
+ RANLIB ?= ranlib ;
+- YACC ?= yacc ;
++ YACC ?= bison -y ;
+ YACCGEN ?= .c ;
+ YACCFILES ?= y.tab ;
+ YACCFLAGS ?= -d ;
+@@ -882,10 +882,10 @@ DC ?= dmd ;
+ SUFLIB ?= .a ;
+ SUFOBJ ?= .o ;
+ UNDEFFLAG ?= "-u _" ;
+- YACC ?= ;
+- YACCGEN ?= ;
+- YACCFILES ?= ;
+- YACCFLAGS ?= ;
++ YACC ?= bison -y ;
++ YACCGEN ?= .c ;
++ YACCFILES ?= y.tab ;
++ YACCFLAGS ?= -d ;
+
+ HDRPATTERN =
+ "^[ ]*#[ ]*include[ ]*[<\"]([^\">]*)[\">].*$" ;
+diff -Naurp ftjam-2.5.3rc2-orig/jambase.c ftjam-2.5.3rc2/jambase.c
+--- ftjam-2.5.3rc2-orig/jambase.c 2007-06-05 08:31:08.000000000 -0600
++++ ftjam-2.5.3rc2/jambase.c 2008-07-21 19:27:55.000000000 -0600
+@@ -632,7 +632,7 @@ const char *jambase[] = {
+ "LINKLIBS ?= ;\n",
+ "OPTIM ?= -O ;\n",
+ "RANLIB ?= ranlib ;\n",
+-"YACC ?= yacc ;\n",
++"YACC ?= bison -y ;\n",
+ "YACCGEN ?= .c ;\n",
+ "YACCFILES ?= y.tab ;\n",
+ "YACCFLAGS ?= -d ;\n",
+@@ -695,10 +695,10 @@ const char *jambase[] = {
+ "SUFLIB ?= .a ;\n",
+ "SUFOBJ ?= .o ;\n",
+ "UNDEFFLAG ?= \"-u _\" ;\n",
+-"YACC ?= ;\n",
+-"YACCGEN ?= ;\n",
+-"YACCFILES ?= ;\n",
+-"YACCFLAGS ?= ;\n",
++"YACC ?= bison -y ;\n",
++"YACCGEN ?= .c ;\n",
++"YACCFILES ?= y.tab ;\n",
++"YACCFLAGS ?= -d ;\n",
+ "\n",
+ "HDRPATTERN =\n",
+ "\"^[ ]*#[ ]*include[ ]*[<\\\"]([^\\\">]*)[\\\">].*$\" ;\n",
diff --git a/dev-util/ftjam/files/ftjam-2.5.3-nostrip.patch b/dev-util/ftjam/files/ftjam-2.5.3-nostrip.patch
new file mode 100644
index 000000000000..1b7e69fc2c8f
--- /dev/null
+++ b/dev-util/ftjam/files/ftjam-2.5.3-nostrip.patch
@@ -0,0 +1,40 @@
+diff -Naur ftjam-2.5.3rc2-orig/Jamfile ftjam-2.5.3rc2/Jamfile
+--- ftjam-2.5.3rc2-orig/Jamfile 2007-06-05 08:30:52.000000000 -0600
++++ ftjam-2.5.3rc2/Jamfile 2007-06-10 12:55:03.000000000 -0600
+@@ -138,16 +138,6 @@
+ LinkLibraries jam : libjam.a ;
+ GenFile jambase.c : mkjambase Jambase ;
+
+-if $(UNIX) && ! $(DEBUG)
+-{
+- actions Strip
+- {
+- strip $(1)
+- }
+-
+- Strip jam ;
+-}
+-
+ Library libjam.a :
+ builtins.c command.c compile.c $(code) expand.c
+ glob.c hash.c headers.c lists.c make.c make1.c
+@@ -156,19 +146,6 @@
+ hdrmacro.c rope.c
+ ;
+
+-# Strip the Jam executable on Mingw
+-#
+-if $(JAM_TOOLSET) = MINGW
+-{
+- actions Strip
+- {
+- strip $(1)
+- }
+-
+- Strip jam$(SUFEXE) ;
+-}
+-
+-
+ if $(BINDIR) { InstallBin $(BINDIR) : jam ; }
+
+ #
diff --git a/dev-util/ftjam/ftjam-2.5.3_rc2-r1.ebuild b/dev-util/ftjam/ftjam-2.5.3_rc2-r1.ebuild
new file mode 100644
index 000000000000..a8cf96c8ab2d
--- /dev/null
+++ b/dev-util/ftjam/ftjam-2.5.3_rc2-r1.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils toolchain-funcs versionator
+
+MY_PV=$(delete_version_separator _)
+
+DESCRIPTION="Jam is a powerful alternative to make. FTJam is a 100% compatible enhanced Jam implementation"
+HOMEPAGE="http://freetype.sourceforge.net/jam/index.html"
+SRC_URI="http://david.freetype.org/jam/ftjam-${MY_PV}.tar.bz2"
+
+LICENSE="perforce GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~arm64 hppa ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE=""
+
+DEPEND="!dev-util/jam
+ sys-devel/bison"
+RDEPEND="!dev-util/jam"
+
+S=${WORKDIR}/${PN}-${MY_PV}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${PN}-2.5.3-nostrip.patch
+ epatch "${FILESDIR}"/${PN}-2.5.3-i-hate-yacc.patch
+ epatch "${FILESDIR}"/${PN}-2.5.3-false-flags.patch
+# epatch "${FILESDIR}"/${PN}-2.5.3-debug-commandline.patch # development only
+}
+
+src_compile() {
+ tc-export CC
+ econf
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+ dodoc README README.ORG CHANGES INSTALL RELNOTES
+ dohtml Jam.html Jambase.html Jamfile.html
+}
diff --git a/dev-util/ftjam/metadata.xml b/dev-util/ftjam/metadata.xml
new file mode 100644
index 000000000000..ac75c3797151
--- /dev/null
+++ b/dev-util/ftjam/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>rhill@gentoo.org</email>
+ <name>Ryan Hill</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">freetype</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/ftnchek/Manifest b/dev-util/ftnchek/Manifest
new file mode 100644
index 000000000000..3a41569dbb90
--- /dev/null
+++ b/dev-util/ftnchek/Manifest
@@ -0,0 +1,5 @@
+DIST ftnchek-3.3.1.tar.gz 1048638 SHA256 d92212dc0316e4ae711f7480d59e16095c75e19aff6e0095db2209e7d31702d4 SHA512 14c698a6d936ffcd1966822f3b307fc2a70ffd5d58dcff27e10a9491562cff12ef75d98c0e67a7053e106df4f6b4d920e8164950778c5e13e7c15543fa2ecc41 WHIRLPOOL bab1d6e4b0214bb99d55aa4e4964d7fbf03b070e51aeb306204d62ab97220edb36792aa7333fff3779dd459ccd7db68dcd1d36982c7aa962d4dea0f636f76bda
+EBUILD ftnchek-3.3.1-r1.ebuild 864 SHA256 94887a22b9e21a2d441242eb43bb7e3fe4fe0e424b47d7b7b26e4c4304cc5a7f SHA512 a08994f17f3dae52992f706aff405ae38ff98f23220dae493400c5e8b7af03d1841876ac55d2311588c3eab68cc63e748735415145970f8eb67400bb5ff2d3fc WHIRLPOOL 79beaa0701a9b22500a600c5ee2b32a48d04e2af47d5e8e7dad1573feb333ded998420b3152ae71236afea8c69022c54a91d7c4ecba2281911bc787f042dcdbe
+MISC ChangeLog 2528 SHA256 2fb02774d8e48b15ddb8e2f057ef05f3736ca4df610f0172f5ebb3a28bee3b73 SHA512 3a6345371d9ddbb3f04a0a83f96f8198d41af433b1ab847376fe3cb7261ef1c4ec7e353e9fb2b39eb5def43f8ce582a736e329d994c97d56b14c40711ad5c372 WHIRLPOOL ee3d8c4bedcbb806a42c88b04955e1f3bd769cbac91c5e8f880beddf46b84eb3c6b872702031a5bb5d8194d7c8999d82bb404368421e0bff69a9f52b14f54d58
+MISC ChangeLog-2015 1597 SHA256 f788e9529a0877102722bf1244e39c1fa6d63c8bff0cbe6b35a1d0007e243d4b SHA512 cba0ac5cb7f9e81e41f0ec0d425a7a27e20f5334dbe67c43c1dd6382bb1dcf81144bf1bdcccc76071b035a04ac02080b63259bb7aec2fc675f8289475c5febee WHIRLPOOL ee53fcb2ddd22b0c23269fd4d22d605d41dc637e49941577f2020b1a3251a446fdde2eec21be3ca1006e5b684abe23baeac19dd95a42ab901a129c5cc5b7ee2d
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/dev-util/ftnchek/ftnchek-3.3.1-r1.ebuild b/dev-util/ftnchek/ftnchek-3.3.1-r1.ebuild
new file mode 100644
index 000000000000..10f581a6233e
--- /dev/null
+++ b/dev-util/ftnchek/ftnchek-3.3.1-r1.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="2"
+
+inherit autotools
+
+DESCRIPTION="Static analyzer a la 'lint' for Fortran 77"
+HOMEPAGE="http://www.dsm.fordham.edu/~ftnchek/"
+SRC_URI="http://www.dsm.fordham.edu/~${PN}/download/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc x86"
+IUSE=""
+
+src_prepare() {
+ #1 Do not strip
+ #2 CFLAGS is used internally, so append to it
+ sed -i Makefile.in \
+ -e '/-$(STRIP)/d' \
+ -e 's|CFLAGS\([[:space:]]*\)=|CFLAGS\1+=|' \
+ || die "sed Makefile.in"
+
+ #1 Respect CFLAGS
+ #2 Respect LDFLAGS
+ sed -i configure.in \
+ -e 's|OPT=".*"|OPT=""|g' \
+ -e '/^LDFLAGS=/d' \
+ || die "sed configure.in"
+
+ eautoreconf
+}
+
+src_install() {
+ einstall || die
+ dodoc FAQ PATCHES README ToDo
+ dohtml html/*
+ dodir /usr/share/${PN}
+ cp -r test "${D}"/usr/share/${PN}
+}
diff --git a/dev-util/ftnchek/metadata.xml b/dev-util/ftnchek/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/dev-util/ftnchek/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/dev-util/fuzz/Manifest b/dev-util/fuzz/Manifest
new file mode 100644
index 000000000000..35e70790ece9
--- /dev/null
+++ b/dev-util/fuzz/Manifest
@@ -0,0 +1,6 @@
+DIST fuzz-0.6.tar.gz 54431 SHA256 70fcd0d5b83f211f0a6fd9a95e1772c3e3aaaf83d533ae224a57812c00c0ce1b SHA512 87a9b103bb37c91937e2bd4667a33f3792c464f8464fe1f35b022d9c01a13255c7228ab80ce0bfac4ccfdab9a25238a5e1add00e9380cbeb24f95b686d18151b WHIRLPOOL f24f3162bee0e81751f7b64d71880a3e38d76a503b7f4f1d488ad96d89b745758f659cfd0f76c3a6f0c75a41f3500e7badd06557aafe8ce736e7a3a9bd27fd6f
+DIST fuzz_0.6-7.3.diff.gz 3004 SHA256 6f657d720c306bf29669a9cd9bf1523deb1710fde6284c9d865863b533c2bb11 SHA512 aef080a908269d44536071bb6d4a91560d7f357fb2145fc0d0369ea5997fa6a5c1b13b3fc673c370a61add5c76f40df3501f5103f2ac35ddce9662c9345e20af WHIRLPOOL 46ab73f38c4389cd4a82aaa7201a9a2252eee2777fd170ba6f48cbebf738b5178f4bc68df52e7b81b46fc5900969ccef8635946c7aafe3aeb6df7120719498b4
+EBUILD fuzz-0.6-r1.ebuild 680 SHA256 bdf62132db0112df9733750075e4ee9b40b09fffe2415d2c8ea99c6199f82acf SHA512 5bac0c017bfb099d72045fd68dee49ce798cdd9c56fb1ff2aac84af3b97809f1e936920bb1c34edf2ad5b30aa10d687fc06f84ed0dc1f6a8ceb3aa7009c162c8 WHIRLPOOL 88fe601c25626d5f3f9f5da8d8e49a3588b4f98bc431d1779237d723e236f12994621de05c5006b44134f0b04e5bec1459bb6c8933bf08ad02fb49d7446684b4
+MISC ChangeLog 2163 SHA256 63da984dd6c7c53db4ba2e9d5261649fc1a0ddf239d0834b6e59b8b75dc38604 SHA512 8d0241e20935018a5cb28ec6b827dcfe319531aacd922469b57f976c3067dca1240b2e753285442916c462d18cb1d4dea511c6f3626053b377797397188bc499 WHIRLPOOL 2a457ca2623935f970fd67be8067107ec2bac63c0d0f3560ae90c6e3e6199ddab2378463ed1177bb16e360de73eb2304eb63fae9a59542cfa04e202efeee07ec
+MISC ChangeLog-2015 863 SHA256 fd00ee7782202a6b14f21e1c29ddfd899e9bf63e7cffdb2757e8696b42be12b9 SHA512 6ec227e100ebb3b353d8022685d2bbc7eeb4dc3f415753aaa40cad0868a73d962e0d28a004fc782296124440f77f06a08e002733f5cd72ad87d9401822f66d5e WHIRLPOOL d20f67507d9df270a4806b014a1fe8f5a973d9783ba4a065dc3aff7f5eb87e36993e2dedbee806a8afc94cba28c3f84c33d43df380719be966fb34067be190fb
+MISC metadata.xml 300 SHA256 4b2ca0aa8a77443999924558bb1390715d9258c1d499fab3fdf6337c7b58eef4 SHA512 fdcbbda56cbb94b5738e0f3ace1647ec35f228b4251c66a330ba269217f3cfe57893fc05e8e1cf9b2fae0a4845171c74e71bd9af67dbaed25cc5a9c4e034b102 WHIRLPOOL fcaad65ccd54b295223c449e72dc8edfe64afbe99e37e2719639cf84e7015670d208ec993e9b153568f8dfa17929bdf56ec5deb64d6e7b3cd57b46dd32c4c36c
diff --git a/dev-util/fuzz/fuzz-0.6-r1.ebuild b/dev-util/fuzz/fuzz-0.6-r1.ebuild
new file mode 100644
index 000000000000..88242637434a
--- /dev/null
+++ b/dev-util/fuzz/fuzz-0.6-r1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit toolchain-funcs
+
+DESCRIPTION="Stress-tests programs by giving them random input"
+HOMEPAGE="http://fuzz.sourceforge.net/"
+DEB_P="${PN}_${PV}"
+DEB_PR="7.3"
+SRC_URI="
+ mirror://sourceforge/${PN}/${P}.tar.gz
+ mirror://debian/pool/main/${PN:0:1}/${PN}/${DEB_P}-${DEB_PR}.diff.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="sys-libs/readline:0="
+RDEPEND="${DEPEND}"
+
+PATCHES=( "${DISTDIR}"/${DEB_P}-${DEB_PR}.diff.gz )
+
+src_prepare() {
+ default
+ tc-export CC
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ dodoc NEWS README ChangeLog AUTHORS
+}
diff --git a/dev-util/fuzz/metadata.xml b/dev-util/fuzz/metadata.xml
new file mode 100644
index 000000000000..63084c2c1f4d
--- /dev/null
+++ b/dev-util/fuzz/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>robbat2@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">fuzz</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/gcovr/Manifest b/dev-util/gcovr/Manifest
new file mode 100644
index 000000000000..78cf6b1f09ee
--- /dev/null
+++ b/dev-util/gcovr/Manifest
@@ -0,0 +1,6 @@
+DIST gcovr-3.2.tar.gz 343748 SHA256 5a969caf61452705a39f6642f4707d23644bdd2e5ef913014bf95c4bd0263db6 SHA512 b8a810cb156acc1bbff108002f49b358c5b4044a6450c9b6a7a682c841e95f8159d42e4a8a1c4742fa82da1e99085ef4ede29a483291be4d79dcf09003829a45 WHIRLPOOL 341910e1f04e3dbb10b3f703237b690e5b4b72f8148fe8d108ed7013f3760dd48383ae31198e61bcdfecbe545f66d76c4a65082ab616ad8d61dafa9694d158a0
+DIST gcovr-3.3.tar.gz 323226 SHA256 8a60ba6242d67a58320e9e16630d80448ef6d5284fda5fb3eff927b63c8b04a2 SHA512 e5046bc4e38c99691c3bcc58abdfbbe965c46d02c8c50dbf135bd5108bd9bba1fa450ab0b5e23157a178f7c1303ec9c285470e9be1a14274528e5d7051013a08 WHIRLPOOL 866da190bb78453a71a848e8880ec35bb2b1024ec043f9309a3a0b4d9fe32d33c84cbc82376a77b5e16bba394c72d1ca636d9bc1827910a3d3b936f1817f0d4d
+EBUILD gcovr-3.2.ebuild 394 SHA256 eca0bb5544efea8e7b7ee2b57a513f50160cb8ba22e6b0420ff85d67aab2a408 SHA512 954fdee7d6cb7cb0903715487b74c34ebbb7c3cd6a1336da15e31ce72baedc3d76a1ea83be7bb56b96ca03e88cfcf1c72e61899f17109e670dd648b703f835ce WHIRLPOOL 8702eff267e6066d158dc6ee31e8a79d9d6e92dbe7ad118a980049c33168b59b7b3aab5e759aac17f456523539c679980aec846913a191ff0f12ad0f18f06dfa
+EBUILD gcovr-3.3.ebuild 398 SHA256 624ec5d8c3e76fde69da1a7237c7531bd6423d889f15fff805311121c7286127 SHA512 1528aa3b429fe168f9cfed7e4c5214c41ea2ee598f1b8ea87e8cdd7716550aea1f0328d13ae8eca9f5742fd15e10d3f0bc53ee6a3cb972dd9520b2b2e480aa1a WHIRLPOOL 280886739be137f0740c8c3c71109d896d69eab6b479272c5035848a206f8445953148a232ae1db875ae7127d06668e9d63f9fbb3d44881806ae7727e33f6ea0
+MISC ChangeLog 714 SHA256 3efa12d0e228b4e3b9aa6213b497675d0eb66222c9006fa9de8595969584e248 SHA512 ef2f0a80a0833ffbd4dcb3c8ffb65c60559c8315fc0fb1814303e552cad4b5a7897a358950fa4ea142a387ce659e9cb2209b69efa7b28772af7189992d23e3e4 WHIRLPOOL 5155f5bb8d6c355382bb829f9370fbe9f6401e1177ceada9c1e722457fb11f4bac1555468a5532dbcf4248c33f66ac5ac9010d9dfc856532aa8cb8dc69f4f7bd
+MISC metadata.xml 329 SHA256 c0a60c26708056fee594c57ec3c3866b7f86329c82fe233685cf22522979fef5 SHA512 f6ba1f1e9cc2036097acb46bee3d5c4c18788862195613026a7678baea38e591fbc13e4dc9570d7ee0bf93a1f03a3bf198147f45de50411253c109c2163dad8d WHIRLPOOL 1d839b0f824f10fa1b4ba7c71beca152994b3fbfddc48a04212466fd810ca76d8e480c0162697f590e2bf399a984696d9bdfd5dfebe4b0b4d8f1f37968c4cea4
diff --git a/dev-util/gcovr/gcovr-3.2.ebuild b/dev-util/gcovr/gcovr-3.2.ebuild
new file mode 100644
index 000000000000..bb265088973b
--- /dev/null
+++ b/dev-util/gcovr/gcovr-3.2.ebuild
@@ -0,0 +1,15 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python{2_7,3_4} )
+
+inherit distutils-r1
+
+DESCRIPTION="A Python script for summarizing gcov data"
+HOMEPAGE="https://github.com/gcovr/gcovr"
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+SRC_URI="https://github.com/gcovr/gcovr/archive/${PV}.tar.gz -> ${P}.tar.gz"
diff --git a/dev-util/gcovr/gcovr-3.3.ebuild b/dev-util/gcovr/gcovr-3.3.ebuild
new file mode 100644
index 000000000000..251ed7ac20a3
--- /dev/null
+++ b/dev-util/gcovr/gcovr-3.3.ebuild
@@ -0,0 +1,15 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5} )
+
+inherit distutils-r1
+
+DESCRIPTION="A Python script for summarizing gcov data"
+HOMEPAGE="https://github.com/gcovr/gcovr"
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+SRC_URI="https://github.com/gcovr/gcovr/archive/${PV}.tar.gz -> ${P}.tar.gz"
diff --git a/dev-util/gcovr/metadata.xml b/dev-util/gcovr/metadata.xml
new file mode 100644
index 000000000000..f5957872efbe
--- /dev/null
+++ b/dev-util/gcovr/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>junghans@gentoo.org</email>
+ <name>Christoph Junghans</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">gcovr/gcovr</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/gdbus-codegen/Manifest b/dev-util/gdbus-codegen/Manifest
new file mode 100644
index 000000000000..7b0aaf2930cd
--- /dev/null
+++ b/dev-util/gdbus-codegen/Manifest
@@ -0,0 +1,9 @@
+AUX gdbus-codegen-2.40.0-sitedir.patch 1086 SHA256 a77c2cb1c2fcda471583e07c0af5478a0ba856ce19ce1fbf6ab107885fc85d40 SHA512 e860da78f31cb61896c450b4728cfc1d8eb57f0c06c9440fa4c3d4344429e41b12531b59e6ad6c8cb4ff146f9f63ddd9ed0e6b7f493a11adba46ea628bcc3499 WHIRLPOOL 98bc4f10d4ecc3fe476e3f81b538b94a096afb9cd726f4dcf9f8e07a89466c3a89b21fa3a70d7123e61f50fb4a6c866af1f3c87b881ca40eba273614cef4a849
+AUX setup.py-2.32.4 192 SHA256 1b65204a147672a3d4ed17bea9e8dd8b8fa6230c17ea30bfb883be34be01c230 SHA512 45e823f507db103543f024ad557d35f7c09fb51db8a78b978c762ca77d941cdecc5837d2b248fc2c5da6a93b56fe8ded359efd98fb0a74fdf9533783d8eebcfa WHIRLPOOL d7969e4bd317b382a756b70e7010c9619e98bd91c11a8c46a2514086e5123c9f23d28b1c5b302e2c0569b39480a00c95a24eda6561081890161f68a1d541093e
+DIST glib-2.50.3.tar.xz 7589284 SHA256 82ee94bf4c01459b6b00cb9db0545c2237921e3060c0b74cff13fbc020cfd999 SHA512 ef35806c15170b6608445f255136c0bebd2d433adf903c2af2865f6a57b4f2fcfc1e4a7cea1a0dac48ff5fe26248fbf7886dba4a8d209506f0a94160df8fb7af WHIRLPOOL fc8effb457005a234ccb164d74026cec4af7f9a70eef0a8d58efebfacdcf0d7f7713042a9476e6a89e4effbdf4b0d59377811790557cc991cf6b397e5e984f93
+DIST glib-2.52.3.tar.xz 7679972 SHA256 25ee7635a7c0fcd4ec91cbc3ae07c7f8f5ce621d8183511f414ded09e7e4e128 SHA512 a068f2519cfb82de8d4b7f004e7c1f15e841cad4046430a83b02b359d011e0c4077cdff447a1687ed7c68f1a11b4cf66b9ed9fc23ab5f0c7c6be84eb0ddc3017 WHIRLPOOL 733ab64abbd60c633833d662d6b58e011478f85d1b0ab48a4af4cbe79e6c9973ccc86247dec2897a0c7663edeee516a3f034c14ac9b5e7a3dba97a04a88298f0
+EBUILD gdbus-codegen-2.50.3.ebuild 1317 SHA256 9819f8b0ecd49d27a4c4788a627c9768c4c9724ee96f36b68196e667a4b722ad SHA512 360162724e4d55bb05c4d048fc42c761b42fee345973f1f11e5d4df86c2f48c6e7028e7f0b83e8128e426b95e2a5c652843bc02ea5fbb6a06a22a940612b5982 WHIRLPOOL 6873dfeb2ea1869a8253c286671fd43c8cf4755401ace5905d3d5b5402418fbc691eaf17f6e667437eaf990e63d5b857df3c0f974ec64986c5eb158866bedd04
+EBUILD gdbus-codegen-2.52.3.ebuild 1334 SHA256 27aaf7477ce7b9e202cdeee13be5c138205afd00941519faeebbbad816787234 SHA512 0bea85dee8a9d9c968acfe379f0ba504e3970869b35a74c831e983d96be2f69d7b9c82e3ceb1e4b0fcae523258b2b5f296de2aa235acc7590121a8ab8ed1f70e WHIRLPOOL a2f8c270d59dfb97a299a888b26c2d17fe94cd6d363634d4b667e81437ded849330b6b96123936cc8ba1496d7fdbcbb69b66a30313d681b87b666753b37c44d7
+MISC ChangeLog 8202 SHA256 bd5624987f2b058eeb9bc8bb5709b490c973f616f24503a797f41615581d1a5e SHA512 e96af0053290e99e09013b94147685d72c7845ffd6bbf8e9340abb1947e5fb97d3d07a920a25240eddc1f250c9f784130bdf49667de75badcccc48e0c5c178e7 WHIRLPOOL d799750615689f3be714f8d663dad9eb43083d2b5c74383979a738b4e403c519273c30e8f2a12d08e59918d80967d39040a3eb5e3ee77a1db5afc9316e9ef612
+MISC ChangeLog-2015 16992 SHA256 58d04623e7e5d427b1afa2cbe324566592d650cdc9ca60d50103aed45fba8d6b SHA512 56e766ea7f51152eed9fb469dada3c1f02c2a7209e0820a7a71630d726c240a1431b8b551ad01a2e0cfc089cf7618290a7e4a0ee8ef87f5aa78c3821aa23ce89 WHIRLPOOL 8aec0d9ca5550913f3370f98bb1187ee3126816a550dd58533a02483d2dc4bbd2dc50b96286a51719cfd2997e34f15ba6781c844b5284d266badcceed3177f3f
+MISC metadata.xml 249 SHA256 4505b0bfeadff287958620b7dc7b7209699065a8f17139a237a5dd409a726a97 SHA512 c40662134899a5c9f0369a1017806f35adf3280a0b3c91726f7a8ca6012a073a8b471583f5bfb6fe95faac1dcf607e8e2e43f8c91d48ec46f4a8824e2f551506 WHIRLPOOL 333a938ee1d2124595596c572697bf5ebad523a92ba12005cfb12e6bb6270881a94a911f0cc9c1cf2bb571559e8271e07dfd307dabe50058236dbe7103562b92
diff --git a/dev-util/gdbus-codegen/files/gdbus-codegen-2.40.0-sitedir.patch b/dev-util/gdbus-codegen/files/gdbus-codegen-2.40.0-sitedir.patch
new file mode 100644
index 000000000000..ffeb17ba2375
--- /dev/null
+++ b/dev-util/gdbus-codegen/files/gdbus-codegen-2.40.0-sitedir.patch
@@ -0,0 +1,31 @@
+From 626f79dcfb1f26997f2807829c6fa19f6c3303f5 Mon Sep 17 00:00:00 2001
+From: Sobhan Mohammadpour <sobhanmohammadpour1@yahoo.fr>
+Date: Sun, 20 Jan 2013 20:25:13 +0330
+Subject: [PATCH] glib-2.35.4-external-gdbus-codegen
+
+---
+ gio/gdbus-2.0/codegen/gdbus-codegen.in | 8 +-------
+ 1 file changed, 1 insertion(+), 7 deletions(-)
+
+diff --git a/gio/gdbus-2.0/codegen/gdbus-codegen.in b/gio/gdbus-2.0/codegen/gdbus-codegen.in
+index 253d151..2295481 100644
+--- a/gio/gdbus-2.0/codegen/gdbus-codegen.in
++++ b/gio/gdbus-2.0/codegen/gdbus-codegen.in
+@@ -29,13 +29,7 @@ srcdir = os.getenv('UNINSTALLED_GLIB_SRCDIR', None)
+
+ if srcdir is not None:
+ path = os.path.join(srcdir, 'gio', 'gdbus-2.0')
+-elif os.name == 'nt':
+- # Makes gdbus-codegen 'relocatable' at runtime on Windows.
+- path = os.path.join(os.path.dirname(__file__), '..', 'share', 'glib-2.0')
+ else:
+- path = os.path.join('@datadir@', 'glib-2.0')
+-
+-sys.path.insert(0, os.path.abspath(path))
+-from codegen import codegen_main
++ from gdbus_codegen import codegen_main
+
+ sys.exit(codegen_main.codegen_main())
+--
+1.8.1
+
diff --git a/dev-util/gdbus-codegen/files/setup.py-2.32.4 b/dev-util/gdbus-codegen/files/setup.py-2.32.4
new file mode 100644
index 000000000000..c5318e30588b
--- /dev/null
+++ b/dev-util/gdbus-codegen/files/setup.py-2.32.4
@@ -0,0 +1,6 @@
+from distutils.core import setup
+setup(name="gdbus_codegen",
+ version="@PV@",
+ packages=["gdbus_codegen"],
+ package_dir={"gdbus_codegen" : ""},
+ scripts=["gdbus-codegen"])
diff --git a/dev-util/gdbus-codegen/gdbus-codegen-2.50.3.ebuild b/dev-util/gdbus-codegen/gdbus-codegen-2.50.3.ebuild
new file mode 100644
index 000000000000..8999c14200f2
--- /dev/null
+++ b/dev-util/gdbus-codegen/gdbus-codegen-2.50.3.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+GNOME_ORG_MODULE="glib"
+PYTHON_COMPAT=( python{2_7,3_4,3_5} )
+PYTHON_REQ_USE="xml"
+
+inherit gnome.org distutils-r1
+
+DESCRIPTION="GDBus code and documentation generator"
+HOMEPAGE="https://www.gtk.org/"
+
+LICENSE="LGPL-2+"
+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 ~arm-linux ~x86-linux ~x64-macos ~x86-macos"
+IUSE=""
+
+RDEPEND="${PYTHON_DEPS}"
+DEPEND="${RDEPEND}"
+
+# To prevent circular dependencies with glib[test]
+PDEPEND=">=dev-libs/glib-${PV}:2"
+
+S="${WORKDIR}/glib-${PV}/gio/gdbus-2.0/codegen"
+
+python_prepare_all() {
+ PATCHES=(
+ "${FILESDIR}/${PN}-2.40.0-sitedir.patch"
+ )
+ distutils-r1_python_prepare_all
+
+ sed -e 's:#!@PYTHON@:#!/usr/bin/env python:' gdbus-codegen.in > gdbus-codegen || die
+ cp "${FILESDIR}/setup.py-2.32.4" setup.py || die "cp failed"
+ sed -e "s/@PV@/${PV}/" -i setup.py || die "sed setup.py failed"
+}
+
+src_test() {
+ einfo "Skipping tests. This package is tested by dev-libs/glib"
+ einfo "when merged with FEATURES=test"
+}
+
+python_install_all() {
+ distutils-r1_python_install_all # no-op, but prevents QA warning
+ doman "${WORKDIR}/glib-${PV}/docs/reference/gio/gdbus-codegen.1"
+}
diff --git a/dev-util/gdbus-codegen/gdbus-codegen-2.52.3.ebuild b/dev-util/gdbus-codegen/gdbus-codegen-2.52.3.ebuild
new file mode 100644
index 000000000000..4735e85999b8
--- /dev/null
+++ b/dev-util/gdbus-codegen/gdbus-codegen-2.52.3.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+GNOME_ORG_MODULE="glib"
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+PYTHON_REQ_USE="xml"
+
+inherit gnome.org distutils-r1
+
+DESCRIPTION="GDBus code and documentation generator"
+HOMEPAGE="https://www.gtk.org/"
+
+LICENSE="LGPL-2+"
+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 ~arm-linux ~x86-linux ~x64-macos ~x86-macos"
+IUSE=""
+
+RDEPEND="${PYTHON_DEPS}"
+DEPEND="${RDEPEND}"
+
+# To prevent circular dependencies with glib[test]
+PDEPEND=">=dev-libs/glib-${PV}:2"
+
+S="${WORKDIR}/glib-${PV}/gio/gdbus-2.0/codegen"
+
+python_prepare_all() {
+ PATCHES=(
+ "${FILESDIR}/${PN}-2.40.0-sitedir.patch"
+ )
+ distutils-r1_python_prepare_all
+
+ sed -e 's:#!@PYTHON@:#!/usr/bin/env python:' gdbus-codegen.in > gdbus-codegen || die
+ cp "${FILESDIR}/setup.py-2.32.4" setup.py || die "cp failed"
+ sed -e "s/@PV@/${PV}/" -i setup.py || die "sed setup.py failed"
+}
+
+src_test() {
+ einfo "Skipping tests. This package is tested by dev-libs/glib"
+ einfo "when merged with FEATURES=test"
+}
+
+python_install_all() {
+ distutils-r1_python_install_all # no-op, but prevents QA warning
+ doman "${WORKDIR}/glib-${PV}/docs/reference/gio/gdbus-codegen.1"
+}
diff --git a/dev-util/gdbus-codegen/metadata.xml b/dev-util/gdbus-codegen/metadata.xml
new file mode 100644
index 000000000000..39980802b1da
--- /dev/null
+++ b/dev-util/gdbus-codegen/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="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+</maintainer>
+</pkgmetadata>
diff --git a/dev-util/geany-plugins/Manifest b/dev-util/geany-plugins/Manifest
new file mode 100644
index 000000000000..0cf398fad48c
--- /dev/null
+++ b/dev-util/geany-plugins/Manifest
@@ -0,0 +1,9 @@
+DIST geany-plugins-1.28.tar.gz 4453038 SHA256 918f644053ea205fdf0f2185ac3b8e21339764e0e761a38583f2dda7de7fdb97 SHA512 027fc5923d405a8246786e48e0d36c5da8f580b9f18510933063cc4c452ee5aaa68af4568ee20d640c1dd2bcb29a9361b8558a81a5a83f46b5d99c9ff639306d WHIRLPOOL a328557ccd899ce56ba2cb12875836ecbf5939492a1e19a61e5e2db15a5b10969e1cbf0eb912d551c75e9fa7c49e65fa8a48f7e2e2ebfd4477b4c88b4e6857ea
+DIST geany-plugins-1.30.tar.gz 4469990 SHA256 a49202d1c6b2a82446a79c57854596de1e231481163f680c7654f2cb165bc249 SHA512 11dc44215aaa369831c249ef84b5dd0ee7eecdfbbf4707fc6165d78201e9e755447463c171ac6c8b2bc70df28a97b23762073ab9b31f7c33285d4728089da807 WHIRLPOOL ada9c5cd3f78948384c9add373d8b60aa09c0de931304aae4b41f54aaa35dab3450e946e2b39d84c069521113a55720350170edc03253960854a0b842e31903e
+DIST geany-plugins-1.31.tar.gz 4547472 SHA256 933a4f7f041d676f925d021a5adb8c6876879beae53ac06e4a1c70abcb9e25d6 SHA512 73d48b276c93211c6ebc726b24726e7669184d8951d5d29662cb8144c04a239ef8fb621f91b7798720bbdf319a09e35efcaee1535125697838552bd0b1e47bc7 WHIRLPOOL 2a1f4f2a1c88f9bb132b90324ad603a2dce7786eb6c903ebfed9defa140d2756e1ba18e5dffc8b8bd6096ff18b2def1a25f9b163e3f91ec27920aea98489006f
+EBUILD geany-plugins-1.28-r1.ebuild 3738 SHA256 f3dc1d75c0fbcbd72a0e45382bd820358b5ba073f8008358f2c266b084b3207c SHA512 230c2ddf7e2634c6f265dde86365df7f7d7dc4c20d4ec0d9d7bd2bb98102b52399e419a6d73f8c8f63c7aed0c7b5a2f71fcbd10a965f5d1fd023faeb39feae33 WHIRLPOOL 9636633016438fdb3a92d70014f2107d9edce125fd4a655c1df5162c593e4fb9cca669d7fb33e51c21f42cb196b2bbe16ce078a3a77995423069ef9caf9017e5
+EBUILD geany-plugins-1.30.ebuild 3441 SHA256 623ba3ddb99c71c23dfa271384aec2c178021eb1c74cc1e70905b3459ee834d9 SHA512 3b54bf275c5ce24c8f4307cae9071ac3cb8b9d3f7f030b231e4a835a388998aa63ec9458f7d4c061e2a0626711405760042806cf2d2f5e804768a11344356367 WHIRLPOOL 37e30db8d8db5e342fabd0f37e8317e1623fb4c78e0a1c40fe78cd449d70d3af7b3959e5ebaff56e74324e0ffb831796b1863c52fbfd4829b21f7db3bafb8481
+EBUILD geany-plugins-1.31.ebuild 3519 SHA256 bc71746904b1b76bc2127a3a5547046910c4564092e84e6109e9978c01ce4d3b SHA512 1c806fe9dfd3d54552836c35a98ac78e36cbf6eeff671def0e0a42d60e3007f8c6741150f09ecb1540a6637944c4763d827753475e09768556249132bba6a7c6 WHIRLPOOL 4228425a588189a74146b2f31285221edaa03a84a81b19cb6985fbd1b8e09ecd7c2610cdd89bf94cbbac7829d412be3e296e0b62b08d8f97ab1e96f0de2a17ad
+MISC ChangeLog 7285 SHA256 49c9b9b091b247083690219a260192d992464079a35bf26e2204750db18d8e7a SHA512 8897810343f06130e3cdf47b97e0986f0e0d2078057af3cc413bf8056bae0b6a2bbbd3a7444f8920aafc8a23c31adaf39140ac2cbbf215e3de6b4a1d72265002 WHIRLPOOL fa5256aeb9da48443e50e4fb106560829cca67c726bc982a2d89f537a2535ab0e4c5daec50c69379a23ac1a82ba39e81f900e4e1093ff297e775e64f2a089160
+MISC ChangeLog-2015 7237 SHA256 815f9f35e5a32fa9f1d8ab8cbf4a74b21ee3974438d2d4262d3a84218789c206 SHA512 3425f5d0687f95f965eb2b013eca435b5a4b55778f36f92a57bbd4301d938588cf69c6c784ab019a15dd774142c7a5ed4966e3d77dc76f4e8f6ff7d0f6098206 WHIRLPOOL d6b8589b092fb7ab55bb9b9af097ed3f084e19489efd5a567ef5bd494829319aaa380cd13b070d867482bac43edaccd7034b3a7d486a5a13f8954dc80b3462f2
+MISC metadata.xml 1527 SHA256 9a6f572721897fcf447e26ed75042e395955ede3b9345391c089231f14140878 SHA512 6ce444bea08b140535e396d50fd28660a7b068ee113ba44c886c68dbb23c6129184fcf620f052258908840efd7529224f776ee3cca15710780ce8d3cb7ac2ebb WHIRLPOOL 35279039ffb1ad956c5ef2f040dd60fe337c6d67201eea1116c3838d8e6d1c0465b1fa54e00a609f0f26fac5c87445191b72f7dc63c80d31fd4240f6652d312f
diff --git a/dev-util/geany-plugins/geany-plugins-1.28-r1.ebuild b/dev-util/geany-plugins/geany-plugins-1.28-r1.ebuild
new file mode 100644
index 000000000000..5362d11ca593
--- /dev/null
+++ b/dev-util/geany-plugins/geany-plugins-1.28-r1.ebuild
@@ -0,0 +1,156 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+
+inherit eutils python-single-r1 vala
+
+DESCRIPTION="A collection of different plugins for Geany"
+HOMEPAGE="https://plugins.geany.org"
+SRC_URI="https://plugins.geany.org/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm ia64 ppc ppc64 sparc x86"
+
+IUSE="gtk3 +autoclose +automark +commander ctags debugger +defineformat enchant git gpg gtkspell lua multiterm nls +overview python scope soup"
+REQUIRED_USE="
+ gtk3? ( !debugger !multiterm !python !scope )
+ python? ( ${PYTHON_REQUIRED_USE} )
+"
+
+GTK_COMMON_DEPEND="
+ gtk3? ( x11-libs/gtk+:3 )
+ !gtk3? ( x11-libs/gtk+:2 )
+"
+COMMON_DEPEND="
+ >=dev-util/geany-1.26[gtk3=]
+ dev-libs/glib:2
+ dev-libs/libxml2:2
+ autoclose? ( ${GTK_COMMON_DEPEND} )
+ commander? ( ${GTK_COMMON_DEPEND} )
+ ctags? ( dev-util/ctags )
+ debugger? ( x11-libs/vte:0 )
+ defineformat? ( ${GTK_COMMON_DEPEND} )
+ enchant? ( app-text/enchant )
+ git? ( dev-libs/libgit2:= )
+ gpg? ( app-crypt/gpgme:1= )
+ gtkspell? (
+ gtk3? ( app-text/gtkspell:3= )
+ !gtk3? ( app-text/gtkspell:2 )
+ )
+ lua? ( dev-lang/lua:0= )
+ multiterm? (
+ $(vala_depend)
+ x11-libs/gtk+:2
+ >=x11-libs/vte-0.28:0
+ )
+ python? (
+ dev-python/pygtk[${PYTHON_USEDEP}]
+ ${PYTHON_DEPS}
+ )
+ scope? ( x11-libs/vte:0 )
+ soup? ( net-libs/libsoup:2.4 )
+"
+RDEPEND="${COMMON_DEPEND}
+ scope? ( sys-devel/gdb )
+"
+DEPEND="${COMMON_DEPEND}
+ nls? ( sys-devel/gettext )
+ virtual/pkgconfig
+"
+
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ # bundled lib buster
+ rm markdown/peg-markdown/markdown_lib.c || die
+ # devhelp plugin bundles devhelp
+
+ default
+
+ use multiterm && vala_src_prepare
+
+ # make fails if LINGUAS contains a language which is not translated
+ local po_linguas=""
+ for lang in $LINGUAS; do
+ if [[ -e "$S/po/$lang.po" ]]; then
+ po_linguas="${po_linguas} $lang"
+ fi
+ done
+ # only filter LINGUAS if defined
+ if [[ -n "${LINGUAS+x}" ]]; then
+ LINGUAS=$po_linguas
+ fi
+}
+
+src_configure() {
+ local myeconfargs=(
+ --disable-cppcheck
+ --disable-extra-c-warnings
+ $(use_enable !gtk3 geanydoc)
+ # GeanyGenDoc requires ctpl which isn’t yet in portage
+ --disable-geanygendoc
+ # peg-markdown is bundled, use app-text/discount instead
+ --disable-peg-markdown
+ --enable-addons
+ --enable-codenav
+ --enable-geanyextrasel
+ --enable-geanyinsertnum
+ --enable-geanylatex
+ --enable-geanylipsum
+ --enable-geanymacro
+ --enable-geanynumberedbookmarks
+ --enable-geanyprj
+ --enable-geanyvc
+ --enable-lineoperations
+ --enable-pairtaghighlighter
+ --enable-pohelper
+ --enable-pretty-printer
+ --enable-projectorganizer
+ --enable-sendmail
+ --enable-shiftcolumn
+ --enable-tableconvert
+ --enable-treebrowser
+ --enable-xmlsnippets
+ $(use_enable autoclose)
+ $(use_enable automark)
+ $(use_enable commander)
+ $(use_enable ctags geanyctags)
+ $(use_enable debugger)
+ $(use_enable defineformat)
+ $(use_enable enchant spellcheck)
+ $(use_enable git gitchangebar)
+ $(use_enable gpg geanypg)
+ $(use_enable gtkspell)
+ $(use_enable multiterm)
+ $(use_enable lua geanylua)
+ $(use_enable nls)
+ $(use_enable overview)
+ $(use_enable python geanypy)
+ $(use_enable scope)
+ # Having updatechecker… when you’re using a package manager?
+ $(use_enable soup updatechecker)
+ $(use_enable soup geniuspaste)
+ # Relies on obsolete and vulnerable webkit-gtk versions
+ --disable-devhelp
+ --disable-markdown
+ --disable-webhelper
+ )
+
+ econf "${myeconfargs[@]}"
+}
+
+src_install() {
+ default
+
+ prune_libtool_files --modules
+
+ # make installs all translations if LINGUAS is empty
+ if [[ -n "${LINGUAS+x}" && -z "$LINGUAS" ]]; then
+ rm -r "${D}/usr/share/locale/" || die
+ fi
+}
diff --git a/dev-util/geany-plugins/geany-plugins-1.30.ebuild b/dev-util/geany-plugins/geany-plugins-1.30.ebuild
new file mode 100644
index 000000000000..384811f8ee09
--- /dev/null
+++ b/dev-util/geany-plugins/geany-plugins-1.30.ebuild
@@ -0,0 +1,144 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+
+inherit eutils python-single-r1 vala
+
+DESCRIPTION="A collection of different plugins for Geany"
+HOMEPAGE="https://plugins.geany.org"
+SRC_URI="https://plugins.geany.org/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm ia64 ~ppc ~ppc64 ~sparc x86"
+
+IUSE="gtk3 +autoclose +automark +commander ctags debugger +defineformat enchant git gpg gtkspell lua multiterm nls +overview python scope soup"
+REQUIRED_USE="
+ gtk3? ( !debugger !multiterm !python !scope )
+ python? ( ${PYTHON_REQUIRED_USE} )
+"
+
+GTK_COMMON_DEPEND="
+ gtk3? ( x11-libs/gtk+:3 )
+ !gtk3? ( x11-libs/gtk+:2 )
+"
+COMMON_DEPEND="
+ >=dev-util/geany-1.26[gtk3=]
+ dev-libs/glib:2
+ dev-libs/libxml2:2
+ autoclose? ( ${GTK_COMMON_DEPEND} )
+ commander? ( ${GTK_COMMON_DEPEND} )
+ ctags? ( dev-util/ctags )
+ debugger? ( x11-libs/vte:0 )
+ defineformat? ( ${GTK_COMMON_DEPEND} )
+ enchant? ( app-text/enchant )
+ git? ( dev-libs/libgit2:= )
+ gpg? ( app-crypt/gpgme:1= )
+ gtkspell? (
+ gtk3? ( app-text/gtkspell:3= )
+ !gtk3? ( app-text/gtkspell:2 )
+ )
+ lua? ( dev-lang/lua:0= )
+ multiterm? (
+ $(vala_depend)
+ x11-libs/gtk+:2
+ >=x11-libs/vte-0.28:0
+ )
+ python? (
+ dev-python/pygtk[${PYTHON_USEDEP}]
+ ${PYTHON_DEPS}
+ )
+ scope? ( x11-libs/vte:0 )
+ soup? ( net-libs/libsoup:2.4 )
+"
+RDEPEND="${COMMON_DEPEND}
+ scope? ( sys-devel/gdb )
+"
+DEPEND="${COMMON_DEPEND}
+ nls? ( sys-devel/gettext )
+ virtual/pkgconfig
+"
+
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ # bundled lib buster
+ rm markdown/peg-markdown/markdown_lib.c || die
+ # devhelp plugin bundles devhelp
+
+ default
+
+ use multiterm && vala_src_prepare
+}
+
+src_configure() {
+ local myeconfargs=(
+ --disable-cppcheck
+ --disable-extra-c-warnings
+ $(use_enable !gtk3 geanydoc)
+ # GeanyGenDoc requires ctpl which isn’t yet in portage
+ --disable-geanygendoc
+ # peg-markdown is bundled, use app-text/discount instead
+ --disable-peg-markdown
+ --enable-addons
+ --enable-codenav
+ --enable-geanyextrasel
+ --enable-geanyinsertnum
+ --enable-geanylatex
+ --enable-geanymacro
+ --enable-geanynumberedbookmarks
+ --enable-geanyprj
+ --enable-geanyvc
+ --enable-lineoperations
+ --enable-lipsum
+ --enable-pairtaghighlighter
+ --enable-pohelper
+ --enable-pretty-printer
+ --enable-projectorganizer
+ --enable-sendmail
+ --enable-shiftcolumn
+ --enable-tableconvert
+ --enable-treebrowser
+ --enable-xmlsnippets
+ $(use_enable autoclose)
+ $(use_enable automark)
+ $(use_enable commander)
+ $(use_enable ctags geanyctags)
+ $(use_enable debugger)
+ $(use_enable defineformat)
+ $(use_enable enchant spellcheck)
+ $(use_enable git gitchangebar)
+ $(use_enable gpg geanypg)
+ $(use_enable gtkspell)
+ $(use_enable multiterm)
+ $(use_enable lua geanylua)
+ $(use_enable nls)
+ $(use_enable overview)
+ $(use_enable python geanypy)
+ $(use_enable scope)
+ # Having updatechecker… when you’re using a package manager?
+ $(use_enable soup updatechecker)
+ $(use_enable soup geniuspaste)
+ # Relies on obsolete and vulnerable webkit-gtk versions
+ --disable-devhelp
+ --disable-markdown
+ --disable-webhelper
+ )
+
+ econf "${myeconfargs[@]}"
+}
+
+src_install() {
+ default
+
+ prune_libtool_files --modules
+
+ # make installs all translations if LINGUAS is empty
+ if [[ -n "${LINGUAS+x}" && -z "$LINGUAS" ]]; then
+ rm -r "${D}/usr/share/locale/" || die
+ fi
+}
diff --git a/dev-util/geany-plugins/geany-plugins-1.31.ebuild b/dev-util/geany-plugins/geany-plugins-1.31.ebuild
new file mode 100644
index 000000000000..1241ce470d88
--- /dev/null
+++ b/dev-util/geany-plugins/geany-plugins-1.31.ebuild
@@ -0,0 +1,146 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+
+inherit eutils python-single-r1 vala
+
+DESCRIPTION="A collection of different plugins for Geany"
+HOMEPAGE="https://plugins.geany.org"
+SRC_URI="https://plugins.geany.org/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+
+IUSE="gtk3 +autoclose +automark +commander ctags debugger +defineformat enchant git gpg gtkspell keyrecord lua multiterm nls +overview python scope soup"
+REQUIRED_USE="
+ gtk3? ( !debugger !multiterm !python !scope )
+ python? ( ${PYTHON_REQUIRED_USE} )
+"
+
+GTK_COMMON_DEPEND="
+ gtk3? ( x11-libs/gtk+:3 )
+ !gtk3? ( x11-libs/gtk+:2 )
+"
+COMMON_DEPEND="
+ >=dev-util/geany-1.26[gtk3=]
+ dev-libs/glib:2
+ dev-libs/libxml2:2
+ autoclose? ( ${GTK_COMMON_DEPEND} )
+ commander? ( ${GTK_COMMON_DEPEND} )
+ ctags? ( dev-util/ctags )
+ debugger? ( x11-libs/vte:0 )
+ defineformat? ( ${GTK_COMMON_DEPEND} )
+ enchant? ( app-text/enchant )
+ git? ( dev-libs/libgit2:= )
+ gpg? ( app-crypt/gpgme:1= )
+ gtkspell? (
+ gtk3? ( app-text/gtkspell:3= )
+ !gtk3? ( app-text/gtkspell:2 )
+ )
+ keyrecord? ( ${GTK_COMMON_DEPEND} )
+ lua? ( dev-lang/lua:0= )
+ multiterm? (
+ $(vala_depend)
+ x11-libs/gtk+:2
+ >=x11-libs/vte-0.28:0
+ )
+ python? (
+ dev-python/pygtk[${PYTHON_USEDEP}]
+ ${PYTHON_DEPS}
+ )
+ scope? ( x11-libs/vte:0 )
+ soup? ( net-libs/libsoup:2.4 )
+"
+RDEPEND="${COMMON_DEPEND}
+ scope? ( sys-devel/gdb )
+"
+DEPEND="${COMMON_DEPEND}
+ nls? ( sys-devel/gettext )
+ virtual/pkgconfig
+"
+
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ # bundled lib buster
+ rm markdown/peg-markdown/markdown_lib.c || die
+ # devhelp plugin bundles devhelp
+
+ default
+
+ use multiterm && vala_src_prepare
+}
+
+src_configure() {
+ local myeconfargs=(
+ --disable-cppcheck
+ --disable-extra-c-warnings
+ $(use_enable !gtk3 geanydoc)
+ # GeanyGenDoc requires ctpl which isn’t yet in portage
+ --disable-geanygendoc
+ # peg-markdown is bundled, use app-text/discount instead
+ --disable-peg-markdown
+ --enable-addons
+ --enable-codenav
+ --enable-geanyextrasel
+ --enable-geanyinsertnum
+ --enable-geanylatex
+ --enable-geanymacro
+ --enable-geanynumberedbookmarks
+ --enable-geanyprj
+ --enable-geanyvc
+ --enable-lineoperations
+ --enable-lipsum
+ --enable-pairtaghighlighter
+ --enable-pohelper
+ --enable-pretty-printer
+ --enable-projectorganizer
+ --enable-sendmail
+ --enable-shiftcolumn
+ --enable-tableconvert
+ --enable-treebrowser
+ --enable-xmlsnippets
+ $(use_enable autoclose)
+ $(use_enable automark)
+ $(use_enable commander)
+ $(use_enable ctags geanyctags)
+ $(use_enable debugger)
+ $(use_enable defineformat)
+ $(use_enable enchant spellcheck)
+ $(use_enable git gitchangebar)
+ $(use_enable gpg geanypg)
+ $(use_enable gtkspell)
+ $(use_enable keyrecord)
+ $(use_enable multiterm)
+ $(use_enable lua geanylua)
+ $(use_enable nls)
+ $(use_enable overview)
+ $(use_enable python geanypy)
+ $(use_enable scope)
+ # Having updatechecker… when you’re using a package manager?
+ $(use_enable soup updatechecker)
+ $(use_enable soup geniuspaste)
+ # Relies on obsolete and vulnerable webkit-gtk versions
+ --disable-devhelp
+ --disable-markdown
+ --disable-webhelper
+ )
+
+ econf "${myeconfargs[@]}"
+}
+
+src_install() {
+ default
+
+ prune_libtool_files --modules
+
+ # make installs all translations if LINGUAS is empty
+ if [[ -n "${LINGUAS+x}" && -z "$LINGUAS" ]]; then
+ rm -r "${D}/usr/share/locale/" || die
+ fi
+}
diff --git a/dev-util/geany-plugins/metadata.xml b/dev-util/geany-plugins/metadata.xml
new file mode 100644
index 000000000000..d9b36784e15b
--- /dev/null
+++ b/dev-util/geany-plugins/metadata.xml
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>aklhfex@gmail.com</email>
+ <name>Chris Mayo</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Gentoo Proxy Maintainers Project</name>
+ </maintainer>
+ <use>
+ <flag name="gtk3">Use GTK+3 instead of GTK+2</flag>
+ <flag name="autoclose">Enable the autoclose plugin.</flag>
+ <flag name="automark">Enable the automark plugin</flag>
+ <flag name="commander">Enable the commander plugin which provides a command panel for rapid access to any action.</flag>
+ <flag name="ctags">Enable ctags plugin</flag>
+ <flag name="debugger">Enable the debugger plugin which interfaces with <pkg>sys-devel/gdb</pkg></flag>
+ <flag name="defineformat">Enable the defineformat plugin.</flag>
+ <flag name="enchant">Enable spell checking using enchant</flag>
+ <flag name="gpg">Enable geanypg plugin which integrates GPG using <pkg>app-crypt/gpgme</pkg></flag>
+ <flag name="gtkspell">Use gtkspell for dictionary support in GeanyVC</flag>
+ <flag name="keyrecord">Enable the keyrecord plugin</flag>
+ <flag name="multiterm">Enable the multiterm plugin</flag>
+ <flag name="overview">Enable overview plugin</flag>
+ <flag name="scope">Enable the scope plugin which is a graphical GDB front-end</flag>
+ <flag name="soup">Enable updatechecker and geniuspaste plugins which require <pkg>net-libs/libsoup</pkg></flag>
+ </use>
+</pkgmetadata>
diff --git a/dev-util/geany/Manifest b/dev-util/geany/Manifest
new file mode 100644
index 000000000000..5de9e919f3dd
--- /dev/null
+++ b/dev-util/geany/Manifest
@@ -0,0 +1,9 @@
+DIST geany-1.28.tar.bz2 4315264 SHA256 f73a3708f1a26e9bf72da564d5037d6f7fedca2e0d6175db0681c2b672100a5a SHA512 b36c7effeaec88019b35ea6e6f6b5d0c691fc6790885f6ce73fd1f7e34a50e92e49fa120479c0eba17d564f985e5a560d4ea549a6e9b4e6e6f65f9a25b0c811a WHIRLPOOL 16d2e122d9a89d8f66522f499f79826b6662a26fceeca5b7be2471d13c8a5036f68c1be66a08e1af9242167176f4080bed6acef9ae6005d9d868e6a7fb723278
+DIST geany-1.30.1.tar.bz2 4352154 SHA256 0ac360f1f3d6c28790a81d570252a7d40421f6e1d8e5a8d653756bd041d88491 SHA512 55fb446b0c517ccee4d2f3023334b96a336788422a4dc41207a4f290c5d4b88df1eefa4b7f6fddf0567224f890ae7bea396306a935512f17e01682034f7200e3 WHIRLPOOL 3f0ae26facedef3df5e96020a23730d9729641882d3a59c2c22bedf14c9e1294de32521a65573a36ad49b0336ee339cc9692718d8c8e153d5988f8d4b8abdf84
+DIST geany-1.31.tar.bz2 4355879 SHA256 30fdb906bb76c4251a8bcf83ee267db28c26ef6ab867668a782cec1164a3aba5 SHA512 6b5b07928173ef2673867ce2ab9cef1d74dfa97a5ca3515bfb85c0c4d239d7964d5f8d912dce3d97cad06a92c7a967abd454a5e4dc91e481d47de7773d8f6503 WHIRLPOOL c8746974afaadeada7846ec66dec4490c76316e12fbd59670934f3ecf28ace451e673e8c5a63ff740513ee4b01b6b3d5091032af2a4125d058dda7fefe3aed5f
+EBUILD geany-1.28.ebuild 1570 SHA256 b445b0c5bfda40da7d0fe3deb239e0ca7a8bb2d56e2d87e732ea8c9cc60f5347 SHA512 f615b350f98e7ada744a9a67ad6a96b009eb1fb12216fc9e200a50a6d3da651f1c083dcda638002769ea0a0ef2de5f6601987250a243e7c34c8e2686d489ceaa WHIRLPOOL 572229fc6ef2d98b1db84eb852b3de07560a566b244091377fb14098675b9125080ebd193e39e03b60c4919bc971d81edc34dad2a59c6edb4796338e5350d3ac
+EBUILD geany-1.30.1.ebuild 1573 SHA256 362a3378948c8bd48b838758123f2ba00276d43dd0f8de0092cb2468a8e8c2ad SHA512 1b3305fa8381e2279c4d14210aa925a10ea217db03567403b496143d172132a39b7b94ee437997bdb6e1deab1f788a67a4a0e7a78c888f920dd654aebf36dc36 WHIRLPOOL d45a22a2f66bd50b3ed04dd315b0966576e7ce1814d136d88476eb266f539468f5115061e4750115ee14ef264baa878c43f333b705321f1401f54a1cd757728a
+EBUILD geany-1.31.ebuild 1578 SHA256 2716e5b41682fef954fcb8a3e2025bc87b04de1b9c5acc437a88affd0d9fa60c SHA512 2901aeef60de657cead6a8014f454fde320ea444ac0971e8d9575b22a26fc28c5291873cf2aa04a630159c7385c8089cc9a4fe86d4df346a828a065095df023f WHIRLPOOL d06c586b1b43779bbdbfc94222b6fe65cb93e79f42c164374b37110c8f33525f83bbaf39ebf2153aea616c114ee3167dbbaeb1bcad41c6ef80fe27cc915025ae
+MISC ChangeLog 5960 SHA256 c01915e517d45a51839e0203819d35b73afeb72321d703391a9b304225f50a08 SHA512 55e315eb96bac6d50040d9f998bab1a5bf6679a65b5abdd6288c884d5aa8d6c4894b3cbfe20b0675a60117734b1017f8a856971a6385be90d8496c20dcac4a8a WHIRLPOOL e971ce6279ae8638bc2b8433c94a21348b71ae2fc626cab99396e63934c9b82e33a3c589202f5ae7021ff94f6e2304cb3ef132b2f87d01e578f40c923d610e9a
+MISC ChangeLog-2015 11051 SHA256 85a686b3bcb423d83d485f73edc33415b0e8a98b2a36d6a346b70d1c6a854183 SHA512 e8b9c51fb2e134a6380a10a757db4e2276e55c15397ae1d033069b98c7990ffc5b4761b6b2557dc95abd257ad7041473d60f6edb796a1b75907d053778d7d6df WHIRLPOOL c9b5084b7b5b55a3529e84b40037753df609dfa2cb808077cedf8380baf48de9441695bd3996d1dcefb2859f1ccf660cf84ee4a6c8961cb47607374e038074d1
+MISC metadata.xml 1992 SHA256 6397cfb3a83658527550c9b6a53154d5172f0e04120095a99b16da48bcb7bf9c SHA512 74ebf425ba5707bd535cdd3a70af5372eaeebebd6a49a4829b4d2aae7e9dd5b0f9955b7928d869fd24a3ee310e216d52ffff2d20703611bfeb20619e52fa9f29 WHIRLPOOL c979c76e4c1563d9d121d162513fc7374ac79ec2d5ab78afbcb610caf6ad94537a7a10b188bb808f84d3f45cdd212f46ab02e007a3dacf41063f29124b48113f
diff --git a/dev-util/geany/geany-1.28.ebuild b/dev-util/geany/geany-1.28.ebuild
new file mode 100644
index 000000000000..7facaa6aa9ba
--- /dev/null
+++ b/dev-util/geany/geany-1.28.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils fdo-mime gnome2-utils
+
+LANGS="ar ast be bg ca cs de el en_GB es et eu fa fi fr gl he hi hu id it ja kk ko lb lt mn nl nn pl pt pt_BR ro ru sk sl sr sv tr uk vi zh_CN ZH_TW"
+NOSHORTLANGS="en_GB zh_CN zh_TW"
+
+DESCRIPTION="GTK+ based fast and lightweight IDE"
+HOMEPAGE="http://www.geany.org"
+SRC_URI="http://download.geany.org/${P}.tar.bz2"
+
+LICENSE="GPL-2+ HPND"
+SLOT="0"
+KEYWORDS="alpha amd64 arm ia64 ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux"
+IUSE="gtk3 +vte"
+
+RDEPEND=">=dev-libs/glib-2.32:2
+ !gtk3? (
+ >=x11-libs/gtk+-2.24:2
+ vte? ( x11-libs/vte:0 )
+ )
+ gtk3? (
+ >=x11-libs/gtk+-3.0:3
+ vte? ( x11-libs/vte:2.90 )
+ )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ dev-util/intltool
+ sys-devel/gettext"
+
+pkg_setup() {
+ strip-linguas ${LANGS}
+}
+
+src_prepare() {
+ default
+
+ # Syntax highlighting for Portage
+ sed -i -e "s:*.sh;:*.sh;*.ebuild;*.eclass;:" \
+ data/filetype_extensions.conf || die
+}
+
+src_configure() {
+ econf \
+ --disable-dependency-tracking \
+ --docdir="${EPREFIX}/usr/share/doc/${PF}" \
+ $(use_enable gtk3) \
+ $(use_enable vte)
+}
+
+src_install() {
+ emake DESTDIR="${D}" DOCDIR="${ED}/usr/share/doc/${PF}" install
+ rm -f "${ED}"/usr/share/doc/${PF}/{COPYING,GPL-2,ScintillaLicense.txt}
+ prune_libtool_files --all
+}
+
+pkg_preinst() { gnome2_icon_savelist; }
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+ gnome2_icon_cache_update
+}
diff --git a/dev-util/geany/geany-1.30.1.ebuild b/dev-util/geany/geany-1.30.1.ebuild
new file mode 100644
index 000000000000..4fcefba207cc
--- /dev/null
+++ b/dev-util/geany/geany-1.30.1.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils fdo-mime gnome2-utils
+
+LANGS="ar ast be bg ca cs de el en_GB es et eu fa fi fr gl he hi hu id it ja kk ko lb lt mn nl nn pl pt pt_BR ro ru sk sl sr sv tr uk vi zh_CN ZH_TW"
+NOSHORTLANGS="en_GB zh_CN zh_TW"
+
+DESCRIPTION="GTK+ based fast and lightweight IDE"
+HOMEPAGE="http://www.geany.org"
+SRC_URI="http://download.geany.org/${P}.tar.bz2"
+
+LICENSE="GPL-2+ HPND"
+SLOT="0"
+KEYWORDS="alpha amd64 arm ia64 ~ppc ~ppc64 ~sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux"
+IUSE="gtk3 +vte"
+
+RDEPEND=">=dev-libs/glib-2.32:2
+ !gtk3? (
+ >=x11-libs/gtk+-2.24:2
+ vte? ( x11-libs/vte:0 )
+ )
+ gtk3? (
+ >=x11-libs/gtk+-3.0:3
+ vte? ( x11-libs/vte:2.91 )
+ )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ dev-util/intltool
+ sys-devel/gettext"
+
+pkg_setup() {
+ strip-linguas ${LANGS}
+}
+
+src_prepare() {
+ default
+
+ # Syntax highlighting for Portage
+ sed -i -e "s:*.sh;:*.sh;*.ebuild;*.eclass;:" \
+ data/filetype_extensions.conf || die
+}
+
+src_configure() {
+ econf \
+ --disable-dependency-tracking \
+ --docdir="${EPREFIX}/usr/share/doc/${PF}" \
+ $(use_enable gtk3) \
+ $(use_enable vte)
+}
+
+src_install() {
+ emake DESTDIR="${D}" DOCDIR="${ED}/usr/share/doc/${PF}" install
+ rm -f "${ED}"/usr/share/doc/${PF}/{COPYING,GPL-2,ScintillaLicense.txt}
+ prune_libtool_files --all
+}
+
+pkg_preinst() { gnome2_icon_savelist; }
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+ gnome2_icon_cache_update
+}
diff --git a/dev-util/geany/geany-1.31.ebuild b/dev-util/geany/geany-1.31.ebuild
new file mode 100644
index 000000000000..2dbe5634afac
--- /dev/null
+++ b/dev-util/geany/geany-1.31.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils fdo-mime gnome2-utils
+
+LANGS="ar ast be bg ca cs de el en_GB es et eu fa fi fr gl he hi hu id it ja kk ko lb lt mn nl nn pl pt pt_BR ro ru sk sl sr sv tr uk vi zh_CN ZH_TW"
+NOSHORTLANGS="en_GB zh_CN zh_TW"
+
+DESCRIPTION="GTK+ based fast and lightweight IDE"
+HOMEPAGE="http://www.geany.org"
+SRC_URI="http://download.geany.org/${P}.tar.bz2"
+
+LICENSE="GPL-2+ HPND"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
+IUSE="gtk3 +vte"
+
+RDEPEND=">=dev-libs/glib-2.32:2
+ !gtk3? (
+ >=x11-libs/gtk+-2.24:2
+ vte? ( x11-libs/vte:0 )
+ )
+ gtk3? (
+ >=x11-libs/gtk+-3.0:3
+ vte? ( x11-libs/vte:2.91 )
+ )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ dev-util/intltool
+ sys-devel/gettext"
+
+pkg_setup() {
+ strip-linguas ${LANGS}
+}
+
+src_prepare() {
+ default
+
+ # Syntax highlighting for Portage
+ sed -i -e "s:*.sh;:*.sh;*.ebuild;*.eclass;:" \
+ data/filetype_extensions.conf || die
+}
+
+src_configure() {
+ econf \
+ --disable-dependency-tracking \
+ --docdir="${EPREFIX}/usr/share/doc/${PF}" \
+ $(use_enable gtk3) \
+ $(use_enable vte)
+}
+
+src_install() {
+ emake DESTDIR="${D}" DOCDIR="${ED}/usr/share/doc/${PF}" install
+ rm -f "${ED}"/usr/share/doc/${PF}/{COPYING,GPL-2,ScintillaLicense.txt}
+ prune_libtool_files --all
+}
+
+pkg_preinst() { gnome2_icon_savelist; }
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+ gnome2_icon_cache_update
+}
diff --git a/dev-util/geany/metadata.xml b/dev-util/geany/metadata.xml
new file mode 100644
index 000000000000..2231e497c97c
--- /dev/null
+++ b/dev-util/geany/metadata.xml
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>polynomial-c@gentoo.org</email>
+ <name>Lars Wendler</name>
+ </maintainer>
+ <longdescription lang="en">
+ Geany is a small and lightweight integrated development environment.
+ It was developed to provide a small and fast IDE, which has only a
+ few dependencies from other packages. Another goal was to be as
+ independent as possible from a special Desktop Environment like KDE
+ or GNOME. So it is using only the GTK2 toolkit and therefore you need
+ only the GTK2 runtime libraries to run Geany.
+
+ The basic features of Geany are: syntax highlighting; code completion;
+ auto completion of often used constructs like if, for and while;
+ auto completion of XML and HTML tags; call tips; many supported
+ filetypes like C, Java, PHP, HTML, Python, Perl, Pascal; symbol lists.
+ </longdescription>
+ <longdescription lang="fr">
+ Geany est un environnement de développement integré (EDI) petit et
+ léger. Il a été développé pour fournir un EDI petit et rapide, qui ne
+ possède que peu de dépendences avec d'autres paquets. Un autre but
+ était qu'il soit aussi indépendant que possible d'environnements de
+ bureaux comme KDE ou Gnome. Ainsi, il n'utilise que la boîte à outils
+ GTK2.
+
+ Les principales fonctionnalités sont: la coloration syntaxique; la
+ complétion de code source; la complétion automatique de certaines
+ constructions couramment utilisées, comme les blocs "if", "for" et
+ "while"; complétion automatique des balises XML et HTML; info-bulles
+ décrivant la syntaxe d'appel des fonctions; de nombreux langages
+ supportés, comme C, Java, PHP, HTML, Python, Perl, Pascal; liste des
+ symboles.
+ </longdescription>
+ <use>
+ <flag name="gtk3">Use GTK+3 instead of GTK+2</flag>
+ <flag name="vte">Enable Terminal support (<pkg>x11-libs/vte</pkg>)</flag>
+ </use>
+</pkgmetadata>
diff --git a/dev-util/gengetopt/Manifest b/dev-util/gengetopt/Manifest
new file mode 100644
index 000000000000..3a36a3a9f569
--- /dev/null
+++ b/dev-util/gengetopt/Manifest
@@ -0,0 +1,8 @@
+AUX gengetopt-2.22.6-docdirs.patch 364 SHA256 ca02f865d6a1f48fc874b4f82ce411a1787177c4710479e0eced2900de2913ba SHA512 f2bb3ba6e63c32deeda6d0408621a480b0902d2e93a3ceecbe3e79f72c79f3269bbd2e2fd3cd6bcb248bd81d0105dcd8520d44d523c53ce58843bc38a9cb21f6 WHIRLPOOL d5bfac5e01df785a612a6867cde2dd033fa802b69cdc4a5e64765faab038e2e5f1a49276cdae0c2d0c251762029864f838e08d3dd26d242d35c4aaac94bc23cf
+AUX gengetopt-2.22.6-makefile.patch 264 SHA256 4889b1fc69311e4241ecd10653a44534980a9d49ffe0dc37aa7c4eebaa27e273 SHA512 062de57db53d79261132fa62e7ecdbb6a3430231489beadc028e39258407a367033a3490b30a25acc5c1b95f8dec9557889436bd9b645f15ceb6b6b1f6655ebf WHIRLPOOL 9d82624b532ded738892135c8c30b3cfe238212027520bd93537730f6a2f29a8fe018887d3ee17cc81459238cfd08291361afbddaf8e92584b2a22ecac533bb8
+AUX gengetopt-2.22.6-no-docs.patch 247 SHA256 a49e763421f9bef335c620a7082209054d887454835f81615fe2c15d7cca1d6b SHA512 05b910473674359173d380a4fc681d824fd2ca4348ff098b5d8a9110fad487ff3827e8e20b8981de4d1db1a692cdf624a5cb4c8230b2fd0182e9bfdd99ea35b7 WHIRLPOOL 5e694240e328d71f83d31f2414212a357d092cbaaa9de0a7ad683ec6461196291200647e4fd83c7dfd3ca329598fe81da80f9c79d67064aafefdf6b3fc0542d7
+DIST gengetopt-2.22.6.tar.gz 1056293 SHA256 30b05a88604d71ef2a42a2ef26cd26df242b41f5b011ad03083143a31d9b01f7 SHA512 dad5baf1b6c4c76ae7f532dd63c6aecdc30f31d68a259b6a26a10197f1fe42dc9147a52ac12a0c3fc4b7cd61d288a343a9223f967a5a9a15a0614330b41f68dc WHIRLPOOL 031b5ddac8f78d3fb37dfbe448acdb563e751858eab9392f5ae8b55e926a5967b9c851295f1d95dff09b4e5fc36a99f380f2ce0be79174b26c4dd4a8afade34f
+EBUILD gengetopt-2.22.6.ebuild 796 SHA256 929e6f70a577fbdf67860682bf37e14d556b623edf61815332da8fb084b5427a SHA512 24cc40ef928a9f56fc58e2df1bd66cc317cb079aaabf316a7c35c0ed5143a6eac619769f69616ee2d3eaa6a03c1e1062f5a6cca1ac4e7e94d42c6899c8051e79 WHIRLPOOL ec1a3b60987a8fbdb5b4c428eaf1c1d6b25b9decba53e60e3896cbff377820b2fc806f42e51462e2324cef8723ada8866a70b052bb41db8faf1f05553f4fdfe4
+MISC ChangeLog 3057 SHA256 24d27ff796e4a130bb0e1a80e1e91ea9982b000ddbbac1da0bc66194d172664e SHA512 9dfb74a7be0a51e6fa53bbdf9eaa5603795e985a2a5c29b77549df951c99f8ac45bb238c8a534f173ec81572645db7457330f47bdfa7b64c22928f322155be40 WHIRLPOOL aef31b64b406cb277e88d6784709458604fa39ee0acd432b1a4032bf01a532dd814558809cdd06c81b071a786a40d552ed7823e357cffd4621335d4731499438
+MISC ChangeLog-2015 694 SHA256 79f624eb49811a9ff2ba5665745ebd64c5c7d92c076753024cdfcbfd2398e24d SHA512 6f3b187bbbd8632deafee29d05d40e0dc39adccde50a8563c6f414494dfadd4f7e04ce8349625924c4f058f332a1b6052ba2c546934979b9e78c6ba18b7f2c2b WHIRLPOOL 410385c6e790410c2b3598bb5972e2b80072086b9eba33d8f1a914b025b8fbfbce8bb8f3b34eec2d76810673a6ab0f7fcaf2bdd5dcfa8b7bbb1514f922cc121d
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/dev-util/gengetopt/files/gengetopt-2.22.6-docdirs.patch b/dev-util/gengetopt/files/gengetopt-2.22.6-docdirs.patch
new file mode 100644
index 000000000000..409bfb810f9e
--- /dev/null
+++ b/dev-util/gengetopt/files/gengetopt-2.22.6-docdirs.patch
@@ -0,0 +1,16 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -27,11 +27,11 @@
+
+ dnl directory for docs (html)
+ AC_SUBST(gengetoptdocdir)
+-gengetoptdocdir=$docdir
++gengetoptdocdir=$docdir/html
+
+ dnl directory for examples
+ AC_SUBST(gengetoptexamplesdir)
+-gengetoptexamplesdir=$gengetoptdocdir/examples
++gengetoptexamplesdir=$docdir/examples
+
+ dnl Checks for C compiler.
+ AC_PROG_CC
diff --git a/dev-util/gengetopt/files/gengetopt-2.22.6-makefile.patch b/dev-util/gengetopt/files/gengetopt-2.22.6-makefile.patch
new file mode 100644
index 000000000000..f5ecefff9993
--- /dev/null
+++ b/dev-util/gengetopt/files/gengetopt-2.22.6-makefile.patch
@@ -0,0 +1,11 @@
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -51,7 +51,7 @@
+ @LTLIBOBJS@ \
+ skels/libgen.la
+
+-LDADD = $(top_builddir)/src/libgengetopt.la
++LDADD = libgengetopt.la
+
+ EXTRA_DIST = parser.h argsdef.h gengetopt.h ggos.h gm.h gnugetopt.h \
+ cmdline.c cmdline.h \
diff --git a/dev-util/gengetopt/files/gengetopt-2.22.6-no-docs.patch b/dev-util/gengetopt/files/gengetopt-2.22.6-no-docs.patch
new file mode 100644
index 000000000000..84f0324ea07b
--- /dev/null
+++ b/dev-util/gengetopt/files/gengetopt-2.22.6-no-docs.patch
@@ -0,0 +1,9 @@
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -19,5 +19,3 @@
+
+ EXTRA_DIST = configure TODO LICENSE gl/m4/gnulib-cache.m4
+ SUBDIRS = gl src doc tests
+-
+-gengetoptdoc_DATA = ChangeLog COPYING NEWS THANKS INSTALL README LICENSE
+\ No newline at end of file
diff --git a/dev-util/gengetopt/gengetopt-2.22.6.ebuild b/dev-util/gengetopt/gengetopt-2.22.6.ebuild
new file mode 100644
index 000000000000..74404faced25
--- /dev/null
+++ b/dev-util/gengetopt/gengetopt-2.22.6.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils autotools
+
+DESCRIPTION="A tool to write command line option parsing code for C programs"
+HOMEPAGE="https://www.gnu.org/software/gengetopt/"
+SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86 ~x64-cygwin ~amd64-linux ~x86-linux ~sparc-solaris ~sparc64-solaris"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-makefile.patch
+ epatch "${FILESDIR}"/${P}-no-docs.patch
+ epatch "${FILESDIR}"/${P}-docdirs.patch
+ sed -e "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" -i configure.ac || die
+ eautoreconf
+}
+
+src_configure() {
+ econf --docdir="${EPREFIX}"/usr/share/doc/${PF}
+}
+
+src_install() {
+ default
+ docompress -x /usr/share/doc/${PF}/examples
+}
diff --git a/dev-util/gengetopt/metadata.xml b/dev-util/gengetopt/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/dev-util/gengetopt/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/dev-util/gertty/Manifest b/dev-util/gertty/Manifest
new file mode 100644
index 000000000000..af261a11b7c3
--- /dev/null
+++ b/dev-util/gertty/Manifest
@@ -0,0 +1,8 @@
+DIST gertty-1.3.2.tar.gz 92553 SHA256 653376fa55a75be16aeca4e9eb0286f245745a87f977b780b423b74b56df2c74 SHA512 b68acb801ceb225fe86d62015fd89bce7ebe34219dbb2f7fe10d991ff06b558a5ed3512e6435ef3ce13324841c473dbec565c7bef23e01567f5bdcbb6aba9136 WHIRLPOOL 2016e2b09343612968c9984e05a3b9da4d1ebf65b2029a15a429015d9cb83c13ceeca3f50d2cb285da3ae6227f7eb894d597cef0ddb945f23b520ea67ffb572a
+DIST gertty-1.4.0.tar.gz 115581 SHA256 9982be2016cc1111bd4c2edb091fde2d0196f36f418d18fa0365a0282f61c4da SHA512 9abba6271d3ec95938f07ab4ee76f0b539a7ce7f0bbf9c08509fe9516c14f99ccb7b439d29a30bff6dca99bf39788dc803cd8aed3cc03b531678225fa41102d9 WHIRLPOOL d0efc9b55be12458b835eedc9f21053dfd508ca55e024f42e4a6d358631f4082788bd02ef8070788a8b37525857615cab03a59d7b43629737131b106da2e3dbf
+DIST gertty-1.5.0.tar.gz 119784 SHA256 290e4dc688b2f4d6886f0493b861c01a8c0419dd6c49a925fba0b936d3f28b23 SHA512 bc47817a3ba9ccce298ee1a646cb43f8a57e9a57a40d898859836b3171abd0cf3c682a5f5811cf3d987a17dbf00dd6706a5dbc5a6a35f1d5ff3a217c68187cda WHIRLPOOL 53a31e536de669f1ad3d041a98542a27580822c0781fd3b15124b70b80bc0e5b7b4708ab8ed49e53a53436e784098d2dfdf1208d1ead155710afd500492f602f
+EBUILD gertty-1.3.2.ebuild 1199 SHA256 912b59ddbc37551735fc65cff6bfd241b1f94bd36f2c757cd505a13b24d26b5b SHA512 dd1075c4265721d05e655e4b951a505ac7b176b7e99709eaabef14899d5f61484a32b019c7576d5d2ddcfd911c01b60c1786371f9c4ece7611467f7ac735c8a4 WHIRLPOOL 6392ae79d25b406280b03406c5d8d8ba0c23e6036934966f608b6ead221b3bbfe9acd9dc753a72b490a764cd5a1665f37e9638e7fb6295a485b70e0d83792b56
+EBUILD gertty-1.4.0.ebuild 1199 SHA256 912b59ddbc37551735fc65cff6bfd241b1f94bd36f2c757cd505a13b24d26b5b SHA512 dd1075c4265721d05e655e4b951a505ac7b176b7e99709eaabef14899d5f61484a32b019c7576d5d2ddcfd911c01b60c1786371f9c4ece7611467f7ac735c8a4 WHIRLPOOL 6392ae79d25b406280b03406c5d8d8ba0c23e6036934966f608b6ead221b3bbfe9acd9dc753a72b490a764cd5a1665f37e9638e7fb6295a485b70e0d83792b56
+EBUILD gertty-1.5.0.ebuild 1158 SHA256 749391cd9edbda7729d14d339e1b633024627bc4ba5142b49c3aab6d26d1856f SHA512 57c853c19344c4d8585bc869edfc31f33b967b6c251c6498caa911730513cc28120c00c00cdedf024e84d86f51dfd125657f8f2fe058763dffeaf5f4f8cbce10 WHIRLPOOL 67aa93554c3a9463263bc706862d2b234b842ef3fb9790fe5d934c65fde5e256c28e6b83f8947745c407cd772e5d142b6156d5cbc25bb7ecc2fa9f808cf5d774
+MISC ChangeLog 481 SHA256 bb9db019395435a310461af1b0194a29943bc3ad54598ce33e0470504f052950 SHA512 c935f16f2b156f5a1bb9c65a39253274206585ffefd2f11f197b99b666feadfb6e9a54e7e260f5536bc047a287bc6716dc4375d283e6e5160b2137663aa3adbe WHIRLPOOL 87457edc5e79d41bfb7b810728a5841e4e221846e9076f1cf5676a55ddfabafdadfbe7495953594641f4cf21dba25c90cb3ac91bde5e11877350141371f812f5
+MISC metadata.xml 500 SHA256 4ec9e007cb1e8bdec1e2e75a83e9c493109a694c0af38afacfc9e67695f7a070 SHA512 8a39f2a1e526fa077354eacf6a318b4cb11b7a1ec37f2928578bfb13f7d509226a30c0b2b94e6da070e602e54e02fbce0b2129f9421db1f6981eed1e781493f3 WHIRLPOOL 141eee89a5cad6fabd582ad372ede31cf7c62b16646504188dbb7fcb9a16cb67ad6f31df8b88f1f5637e1612c1a9a0e8ce48fdda29a2ea0ed0daa2c1caf28f9c
diff --git a/dev-util/gertty/gertty-1.3.2.ebuild b/dev-util/gertty/gertty-1.3.2.ebuild
new file mode 100644
index 000000000000..e05867388195
--- /dev/null
+++ b/dev-util/gertty/gertty-1.3.2.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1
+
+DESCRIPTION="Gertty is a console-based interface to the Gerrit Code Review system."
+HOMEPAGE="https://pypi.python.org/pypi/gertty"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+SLOT="0"
+IUSE=""
+
+CDEPEND=">=dev-python/pbr-0.11[${PYTHON_USEDEP}]
+ <dev-python/pbr-2.0[${PYTHON_USEDEP}]"
+DEPEND="
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ ${CDEPEND}"
+RDEPEND="
+ ${CDEPEND}
+ >=dev-python/urwid-1.2.1[${PYTHON_USEDEP}]
+ !~dev-python/urwid-1.3.0[${PYTHON_USEDEP}]
+ >=dev-python/sqlalchemy-1.0.4[${PYTHON_USEDEP}]
+ >=dev-python/git-python-0.3.2[${PYTHON_USEDEP}]
+ dev-python/python-dateutil[${PYTHON_USEDEP}]
+ >=dev-python/requests-2.5.3[${PYTHON_USEDEP}]
+ <dev-python/requests-3.0.0[${PYTHON_USEDEP}]
+ dev-python/ordereddict[${PYTHON_USEDEP}]
+ >=dev-python/alembic-0.6.4[${PYTHON_USEDEP}]
+ >=dev-python/pyyaml-3.1.0[${PYTHON_USEDEP}]
+ >=dev-python/voluptuous-0.7[${PYTHON_USEDEP}]
+ >=dev-python/ply-3.4[${PYTHON_USEDEP}]
+ dev-python/six[${PYTHON_USEDEP}]"
diff --git a/dev-util/gertty/gertty-1.4.0.ebuild b/dev-util/gertty/gertty-1.4.0.ebuild
new file mode 100644
index 000000000000..e05867388195
--- /dev/null
+++ b/dev-util/gertty/gertty-1.4.0.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1
+
+DESCRIPTION="Gertty is a console-based interface to the Gerrit Code Review system."
+HOMEPAGE="https://pypi.python.org/pypi/gertty"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+SLOT="0"
+IUSE=""
+
+CDEPEND=">=dev-python/pbr-0.11[${PYTHON_USEDEP}]
+ <dev-python/pbr-2.0[${PYTHON_USEDEP}]"
+DEPEND="
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ ${CDEPEND}"
+RDEPEND="
+ ${CDEPEND}
+ >=dev-python/urwid-1.2.1[${PYTHON_USEDEP}]
+ !~dev-python/urwid-1.3.0[${PYTHON_USEDEP}]
+ >=dev-python/sqlalchemy-1.0.4[${PYTHON_USEDEP}]
+ >=dev-python/git-python-0.3.2[${PYTHON_USEDEP}]
+ dev-python/python-dateutil[${PYTHON_USEDEP}]
+ >=dev-python/requests-2.5.3[${PYTHON_USEDEP}]
+ <dev-python/requests-3.0.0[${PYTHON_USEDEP}]
+ dev-python/ordereddict[${PYTHON_USEDEP}]
+ >=dev-python/alembic-0.6.4[${PYTHON_USEDEP}]
+ >=dev-python/pyyaml-3.1.0[${PYTHON_USEDEP}]
+ >=dev-python/voluptuous-0.7[${PYTHON_USEDEP}]
+ >=dev-python/ply-3.4[${PYTHON_USEDEP}]
+ dev-python/six[${PYTHON_USEDEP}]"
diff --git a/dev-util/gertty/gertty-1.5.0.ebuild b/dev-util/gertty/gertty-1.5.0.ebuild
new file mode 100644
index 000000000000..0ad02b9841db
--- /dev/null
+++ b/dev-util/gertty/gertty-1.5.0.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1
+
+DESCRIPTION="Gertty is a console-based interface to the Gerrit Code Review system."
+HOMEPAGE="https://pypi.python.org/pypi/gertty"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
+SLOT="0"
+IUSE=""
+
+CDEPEND=">=dev-python/pbr-0.11[${PYTHON_USEDEP}]"
+DEPEND="
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ ${CDEPEND}"
+RDEPEND="
+ ${CDEPEND}
+ >=dev-python/urwid-1.2.1[${PYTHON_USEDEP}]
+ !~dev-python/urwid-1.3.0[${PYTHON_USEDEP}]
+ >=dev-python/sqlalchemy-1.0.4[${PYTHON_USEDEP}]
+ >=dev-python/git-python-0.3.7[${PYTHON_USEDEP}]
+ dev-python/python-dateutil[${PYTHON_USEDEP}]
+ >=dev-python/requests-2.5.3[${PYTHON_USEDEP}]
+ <dev-python/requests-3.0.0[${PYTHON_USEDEP}]
+ dev-python/ordereddict[${PYTHON_USEDEP}]
+ >=dev-python/alembic-0.6.4[${PYTHON_USEDEP}]
+ >=dev-python/pyyaml-3.1.0[${PYTHON_USEDEP}]
+ >=dev-python/voluptuous-0.7[${PYTHON_USEDEP}]
+ >=dev-python/ply-3.4[${PYTHON_USEDEP}]
+ dev-python/six[${PYTHON_USEDEP}]"
diff --git a/dev-util/gertty/metadata.xml b/dev-util/gertty/metadata.xml
new file mode 100644
index 000000000000..fa43bcc48af5
--- /dev/null
+++ b/dev-util/gertty/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>prometheanfire@gentoo.org</email>
+ <name>Matthew Thode</name>
+ </maintainer>
+ <longdescription lang="en">
+ Gertty is a console-based interface to the Gerrit Code Review system.
+ </longdescription>
+ <upstream>
+ <remote-id type="pypi">gertty</remote-id>
+ <remote-id type="github">openstack/gertty</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/glade/Manifest b/dev-util/glade/Manifest
new file mode 100644
index 000000000000..4232d78f33c6
--- /dev/null
+++ b/dev-util/glade/Manifest
@@ -0,0 +1,6 @@
+AUX glade-3.14.1-doc-version.patch 853 SHA256 6fb39133bf00abd38f56b3a79cbd8b714a922cca231db59cd8dcb00693604fdf SHA512 cc9aec06f6acdfdf538de7043f9f753768e0e4c26fa9eef7e52b4e42aa6fd3836185c18ffd51abfc2aa3e6f5b2472e68914112230d2b8856e8a3c61e9d865ecf WHIRLPOOL 2f5315144afc183db4599134a23ebab098df1708474180c27aaf4143cf5db5a70260bbfed756d00f54a35f37b6379134cb24f6567edaaff0a9bae72b19433f99
+DIST glade-3.20.0.tar.xz 3492928 SHA256 82d96dca5dec40ee34e2f41d49c13b4ea50da8f32a3a49ca2da802ff14dc18fe SHA512 58c8da3522c75470f5b42492bddd83f61d828fa2a3fb8a78d15813f6d1f1df22bd808f25ae7228bf2e821bacdcc5665b889bac3ea8364c4dac288f95e817e98a WHIRLPOOL 403bccfa596c306d997df2db115496885db70e04610340e3ceb1ddbd9d2868a1188cf3d164d4ea101442ae8e9cbcc6f2dea351bcc4b59c1bac41f0c315f9a6d8
+EBUILD glade-3.20.0.ebuild 2390 SHA256 e888d63bc4d193a9dadd3038cb2dbd596f0272592936df832f81c9b14b6575f1 SHA512 98673ca19010e2a63c5c7c9c79dbfdb65939324004c7be6d8b846684411af444ef1fc499234296bfff24d5f8e03842781378d6099356af8b6dc236e757bdf047 WHIRLPOOL 68a917d4e2d4d703bf43824918d2b4d489706422b7d94f9030a2203b520aa6787073a9ae5790c8521d67f3e87108f9936e2d62bdc98b71a2fd14fa8cf6dbc652
+MISC ChangeLog 3662 SHA256 084e9256d2b18b459540830bde4664d37e88ea9b1393061a9aebc41722387678 SHA512 018a6f1174c90d586e762b3168eb230d047639879cf9b1ca295b1ff5262e1508d12dd014ebf74833f5ce81dbcda9b4dc445df05c2ae50e6ee2756a0b5702fe05 WHIRLPOOL 6cae44cb264fdbebc252e95c5a92299e9aae0d0274d080cb10d5fa41ea86f2f25e44e146158b5c3dbf35d8546fa26ff668abe8bb5c8ed4b9b69caf58556b9381
+MISC ChangeLog-2015 29491 SHA256 2d38f0450cf75c6f86aa2d235357be90b7e3c0b12b528808eab9603858f5ae8d SHA512 1e3bdc80a8a624e8a0ead341c3d8eb0e68251f3092865bc5cd84b3220515f589d5dae58686630bb1b488fe61d623d2c9c9d233dc7ffafacd5024526c96ce9db4 WHIRLPOOL 8a3049eb82a927b74fe66ba5b073de1b838482a9282804778e1d2983cea34fc9630997e15001b341d4acf8eb65c1a3a8adfea890cb0927b859b299c8d32e7471
+MISC metadata.xml 249 SHA256 4505b0bfeadff287958620b7dc7b7209699065a8f17139a237a5dd409a726a97 SHA512 c40662134899a5c9f0369a1017806f35adf3280a0b3c91726f7a8ca6012a073a8b471583f5bfb6fe95faac1dcf607e8e2e43f8c91d48ec46f4a8824e2f551506 WHIRLPOOL 333a938ee1d2124595596c572697bf5ebad523a92ba12005cfb12e6bb6270881a94a911f0cc9c1cf2bb571559e8271e07dfd307dabe50058236dbe7103562b92
diff --git a/dev-util/glade/files/glade-3.14.1-doc-version.patch b/dev-util/glade/files/glade-3.14.1-doc-version.patch
new file mode 100644
index 000000000000..39c9641719a4
--- /dev/null
+++ b/dev-util/glade/files/glade-3.14.1-doc-version.patch
@@ -0,0 +1,29 @@
+From e3e91245e730f0532e913fde910054f464085241 Mon Sep 17 00:00:00 2001
+From: Alexandre Rostovtsev <tetromino@gentoo.org>
+Date: Sun, 6 May 2012 22:40:47 -0400
+Subject: [PATCH] Version glade documentation
+
+Rename gnome help files to prevent collision with other versions.
+
+Avoid loading glade-3.8's devhelp files.
+---
+ help/Makefile.am | 5 ++++-
+ src/glade-window.c | 2 +-
+ 2 files changed, 5 insertions(+), 2 deletions(-)
+
+diff --git a/src/glade-window.c b/src/glade-window.c
+index 89a4549..4eb8be5 100644
+--- a/src/glade-window.c
++++ b/src/glade-window.c
+@@ -2041,7 +2041,7 @@ show_developer_manual_cb (GtkAction * action, GladeWindow * window)
+ {
+ if (glade_util_have_devhelp ())
+ {
+- glade_util_search_devhelp ("gladeui", NULL, NULL);
++ glade_util_search_devhelp ("gladeui-2", NULL, NULL);
+ return;
+ }
+
+--
+1.7.8.6
+
diff --git a/dev-util/glade/glade-3.20.0.ebuild b/dev-util/glade/glade-3.20.0.ebuild
new file mode 100644
index 000000000000..d2a03c7b833d
--- /dev/null
+++ b/dev-util/glade/glade-3.20.0.ebuild
@@ -0,0 +1,89 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+GNOME2_LA_PUNT="yes"
+PYTHON_COMPAT=( python2_7 )
+
+inherit gnome2 python-single-r1 versionator virtualx
+
+DESCRIPTION="A user interface designer for GTK+ and GNOME"
+HOMEPAGE="https://glade.gnome.org/"
+
+LICENSE="GPL-2+ FDL-1.1+"
+SLOT="3.10/6" # subslot = suffix of libgladeui-2.so
+KEYWORDS="alpha amd64 arm ~arm64 ia64 ~mips ppc ppc64 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd"
+
+IUSE="debug +introspection python"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+RDEPEND="
+ dev-libs/atk[introspection?]
+ >=dev-libs/glib-2.32:2
+ >=dev-libs/libxml2-2.4.0:2
+ x11-libs/cairo:=
+ x11-libs/gdk-pixbuf:2[introspection?]
+ >=x11-libs/gtk+-3.20.0:3[introspection?]
+ x11-libs/pango[introspection?]
+ introspection? ( >=dev-libs/gobject-introspection-1.32:= )
+ python? (
+ ${PYTHON_DEPS}
+ >=dev-python/pygobject-3.8:3[${PYTHON_USEDEP}] )
+"
+DEPEND="${RDEPEND}
+ app-text/docbook-xml-dtd:4.1.2
+ app-text/yelp-tools
+ dev-libs/libxslt
+ >=dev-util/gtk-doc-am-1.13
+ >=dev-util/intltool-0.41.0
+ dev-util/itstool
+ virtual/pkgconfig
+
+ dev-libs/gobject-introspection-common
+ gnome-base/gnome-common
+"
+# eautoreconf requires:
+# dev-libs/gobject-introspection-common
+# gnome-base/gnome-common
+
+PATCHES=(
+ # To avoid file collison with other slots, rename help module.
+ # Prevent the UI from loading glade:3's gladeui devhelp documentation.
+ "${FILESDIR}"/${PN}-3.14.1-doc-version.patch
+)
+
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+}
+
+src_configure() {
+ gnome2_src_configure \
+ --disable-static \
+ --enable-gladeui \
+ --enable-libtool-lock \
+ $(usex debug --enable-debug ' ') \
+ $(use_enable introspection) \
+ $(use_enable python)
+}
+
+src_test() {
+ virtx emake check
+}
+
+src_install() {
+ # modify Name in .desktop file to avoid confusion with other slots
+ sed -e 's:^\(Name.*=Glade\):\1 '$(get_version_component_range 1-2): \
+ -i data/glade.desktop || die "sed of data/glade.desktop failed"
+ # modify name in .devhelp2 file to avoid shadowing with glade:3 docs
+ sed -e 's:name="gladeui":name="gladeui-2":' \
+ -i doc/html/gladeui.devhelp2 || die "sed of gladeui.devhelp2 failed"
+ gnome2_src_install
+}
+
+pkg_postinst() {
+ gnome2_pkg_postinst
+ if ! has_version dev-util/devhelp ; then
+ elog "You may want to install dev-util/devhelp for integration API"
+ elog "documentation support."
+ fi
+}
diff --git a/dev-util/glade/metadata.xml b/dev-util/glade/metadata.xml
new file mode 100644
index 000000000000..39980802b1da
--- /dev/null
+++ b/dev-util/glade/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="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+</maintainer>
+</pkgmetadata>
diff --git a/dev-util/global/Manifest b/dev-util/global/Manifest
new file mode 100644
index 000000000000..75ccebe83746
--- /dev/null
+++ b/dev-util/global/Manifest
@@ -0,0 +1,9 @@
+AUX 50gtags-gentoo.el 183 SHA256 52531e861595504a3461a483dfc05520acef423932e273cd26461aee66082428 SHA512 5a7b4e3eb4ee7ce479766a01dea5f82ab7499e666130b869c8f61ec9dfa69250b4b98357f6eb3d1b14da0348eb2c7d77ec0146d1e85996254a8fd7eaa3f3ff05 WHIRLPOOL 400021dac347e7954960c2813cbe27fd9b80e7359e08fbd2398c62975e177f6fb39e54b3da9e066adb7cd9f3e3cafa2f9f8fb61da1866bafcef0cf915fe9e44f
+AUX global-6.2.9-tinfo.patch 2047 SHA256 251f54adfc44d603eaa99fb40f54d18525d9ab297030a9c3c6de6b843b668be2 SHA512 f5d83716ba2fde29ad5765665d00b4d2a5b4c8d6351cd6ca9d8c375a6c953f795811e156c0cdb28549837c72abbe2c2bef9ad4cb419e7043115c50858b831698 WHIRLPOOL 97ca014947d3ccfbcb00016023c1a6308dcd4edc637f3a0d150367aa9aabc5811d0866f3aea75877f461bfb89703292032796efa8fef6e7a6c698c54cf3fbf04
+DIST global-6.3.1.tar.gz 1369634 SHA256 fb10668ef1a2f63d0730564a36ecae7716aed89c09cc5896cd8c579be4ebae6c SHA512 83becd6cda06f8da17ea0c701bb135523ff48cec73b233d24566387d11a35c0b42f410b62753838e2b364a5a485cac033b4aef1159cc6f4cdeca4a7b6c5bb4d6 WHIRLPOOL 1321e131b267f842b68561f04155c06dc11b0adfe177e83113b1884eb629d8e27844de6421c1613efd2ad7472d51140deb5360a6ad78fd25f50844426314de5c
+DIST global-6.5.7.tar.gz 2940567 SHA256 d9c08fa524f9499b54241cb2d72f8a7df01453b6d5e012a63784ded08e3acd32 SHA512 0d33f718839e5e00bdd6d042b415a69c5e1f232d843610870505f8f20635b445810149b1b84ea8b77881f5f64814783ebe3cdcab2f84b8a085223b64293a9045 WHIRLPOOL 0c32bc466652a87661c21bcaee2f2a1b5eee7b3bff5e8f763bd3b1c159daea10c1e3c0f092109d9b92112258f52e88a7bed7eb58923a592013d400b7d6727f4d
+EBUILD global-6.3.1.ebuild 1650 SHA256 818714639aa6003b578ced6845c546054c12640be49817e500ac3aaf745dd5a6 SHA512 01664cf063e632aeb4e3008693992674023c46f54f635617841606636cb7d20ae83cda34f67db9b572cf1fbe34bdebbbc99ceff65d52b0041ed144f6ecca741d WHIRLPOOL 4b13e505af704d5c2fffde6110d7ede25019bf98c5396ae301c7911b701c2586879c16da646173bacf79822ba99bcba9fcbcfd889bf0e93683bcc2217414f4e8
+EBUILD global-6.5.7.ebuild 1633 SHA256 d0ec1be0e97f3a3e5b410a56556ad4c64b619487e94229fa72fe6cb8e1ded124 SHA512 99b22b10d0c983872e4db53d158b73ac468b4a5fc289f4da4859c0d1ffced1e0d7b7fccc4d00e3fd7c5dc75be317c4d83c2c2fbb07ee56f9f9427f096cfdbfcc WHIRLPOOL df9ec192750fb13cf504cf2d8b1db4545173dd446cc2f1f78f51b911d304c60d82c1d684e2ac82ce83c515152872df1ededf43b8a2aea4978d92e850548ded09
+MISC ChangeLog 2636 SHA256 dd450c456c8f2711875d1aefc5d5c16687dca9a27bd26298f20f2146ed7a0e23 SHA512 0afdb724de0af2831ce0d4eb715ee8861e45dc44ae2418022ee3a462501ea295e3a4ca0d86926813148663ab036d69d166073c80ac392459f2881230066ccf1b WHIRLPOOL d57b6ecff0b42834ac0bb3c6231cba110ab227837041dea726d393f460a0be3a6761e0ea6e5adbfb674fe4879941a9fa2c3d0a7b99e6e6be93ca8b90e9eda096
+MISC ChangeLog-2015 17778 SHA256 aa8bea940112bb0ee2d431d2633f6385752d4d515b6897f2044329df3a891e66 SHA512 370372df471e10fe99e718bc516dc8f6e788cee330b5d72e8919e1292cf795615361bbb9f4dc68800b55858ab432f2c818f2c675694dcb918106b4e05a6c818d WHIRLPOOL eb5c597b3bee54dc06c4aae58789c1ae7cc440262efdc6e5465824029060e24904dcfd8bfd2bccda6a56b6e2e20187c3ff1c684474e57908fbc43126d27004f7
+MISC metadata.xml 572 SHA256 95dda5fc67bb42c91f347c006963d44be73fa713edda8812c56fd63e4dea474e SHA512 a2ee0b8c3dc85fb2b23b1741dc312928a1a96ec31400e946d526db4a31f825fb49261595e0b59410456e035415a0ad9442b81178f44b66ba53165ef3b5fcf24a WHIRLPOOL f984dd5962f3e72cd8f4c9e4f05a1475cdd42dd8777a360fffd17ce8a8e5fb4938cc6ebf8a5bc1b851e4faff86e540d4b2d9fde51d4df7bf89e25290a6fcd9c9
diff --git a/dev-util/global/files/50gtags-gentoo.el b/dev-util/global/files/50gtags-gentoo.el
new file mode 100644
index 000000000000..cd9c5546de91
--- /dev/null
+++ b/dev-util/global/files/50gtags-gentoo.el
@@ -0,0 +1,6 @@
+
+;;; global site-lisp configuration
+
+(add-to-list 'load-path "@SITELISP@")
+(autoload 'gtags-mode "gtags"
+ "Toggle Gtags mode, a minor mode for browsing source code using GLOBAL." t)
diff --git a/dev-util/global/files/global-6.2.9-tinfo.patch b/dev-util/global/files/global-6.2.9-tinfo.patch
new file mode 100644
index 000000000000..ef247d4abbcb
--- /dev/null
+++ b/dev-util/global/files/global-6.2.9-tinfo.patch
@@ -0,0 +1,28 @@
+diff --git a/m4/check_curses.m4 b/m4/check_curses.m4
+index 14aaec5..dca7c0e 100644
+--- a/m4/check_curses.m4
++++ b/m4/check_curses.m4
+@@ -229,16 +229,17 @@ AC_DEFUN([AC_NCURSES], [
+ ])
+
+ AC_DEFUN([AC_SEARCH_NCURSES], [
++ PKG_CHECK_MODULES(NCURSES,ncurses)
+ AS_MESSAGE(checking "location of ncurses.h file"...)
+
+- AC_NCURSES(/usr/include, ncurses.h, -lncurses,, "ncurses on /usr/include")
+- AC_NCURSES(/usr/include/ncurses, ncurses.h, -lncurses, -I/usr/include/ncurses, "ncurses on /usr/include/ncurses")
+- AC_NCURSES(/usr/local/include, ncurses.h, -L/usr/local/lib -lncurses, -I/usr/local/include, "ncurses on /usr/local")
+- AC_NCURSES(/usr/local/include/ncurses, ncurses.h, -L/usr/local/lib -L/usr/local/lib/ncurses -lncurses, -I/usr/local/include/ncurses, "ncurses on /usr/local/include/ncurses")
++ AC_NCURSES(/usr/include, ncurses.h, $NCURSES_LIBS,, "ncurses on /usr/include")
++ AC_NCURSES(/usr/include/ncurses, ncurses.h, $NCURSES_LIBS, -I/usr/include/ncurses, "ncurses on /usr/include/ncurses")
++ AC_NCURSES(/usr/local/include, ncurses.h, -L/usr/local/lib $NCURSES_LIBS, -I/usr/local/include, "ncurses on /usr/local")
++ AC_NCURSES(/usr/local/include/ncurses, ncurses.h, -L/usr/local/lib -L/usr/local/lib/ncurses $NCURSES_LIBS, -I/usr/local/include/ncurses, "ncurses on /usr/local/include/ncurses")
+
+- AC_NCURSES(/usr/local/include/ncurses, curses.h, -L/usr/local/lib -lncurses, -I/usr/local/include/ncurses -DRENAMED_NCURSES, "renamed ncurses on /usr/local/.../ncurses")
++ AC_NCURSES(/usr/local/include/ncurses, curses.h, -L/usr/local/lib $NCURSES_LIBS, -I/usr/local/include/ncurses -DRENAMED_NCURSES, "renamed ncurses on /usr/local/.../ncurses")
+
+- AC_NCURSES(/usr/include/ncurses, curses.h, -lncurses, -I/usr/include/ncurses -DRENAMED_NCURSES, "renamed ncurses on /usr/include/ncurses")
++ AC_NCURSES(/usr/include/ncurses, curses.h, $NCURSES_LIBS, -I/usr/include/ncurses -DRENAMED_NCURSES, "renamed ncurses on /usr/include/ncurses")
+
+ dnl
+ dnl We couldn't find ncurses, try SysV curses
diff --git a/dev-util/global/global-6.3.1.ebuild b/dev-util/global/global-6.3.1.ebuild
new file mode 100644
index 000000000000..dcefb9fac0a0
--- /dev/null
+++ b/dev-util/global/global-6.3.1.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit autotools elisp-common eutils
+
+DESCRIPTION="GNU Global is a tag system to find the locations of a specified object in various sources"
+HOMEPAGE="https://www.gnu.org/software/global/global.html"
+SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 ppc x86 ~x86-fbsd"
+IUSE="doc emacs vim"
+
+RDEPEND="|| ( dev-libs/libltdl:0 sys-devel/libtool:2 )
+ sys-libs/ncurses
+ emacs? ( virtual/emacs )
+ vim? ( || ( app-editors/vim app-editors/gvim ) )"
+DEPEND="${DEPEND}
+ doc? ( app-text/texi2html sys-apps/texinfo )"
+
+SITEFILE="50gtags-gentoo.el"
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-6.2.9-tinfo.patch"
+ eautoreconf
+}
+
+src_configure() {
+ econf "$(use_with emacs lispdir "${SITELISP}/${PN}")"
+}
+
+src_compile() {
+ if use doc; then
+ texi2pdf -q -o doc/global.pdf doc/global.texi
+ texi2html -o doc/global.html doc/global.texi
+ fi
+
+ if use emacs; then
+ elisp-compile *.el
+ fi
+
+ emake
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+
+ if use doc; then
+ dohtml doc/global.html
+ # doc/global.pdf is generated if tex executable (e.g. /usr/bin/tex) is available.
+ [[ -f doc/global.pdf ]] && dodoc doc/global.pdf
+ fi
+
+ dodoc AUTHORS FAQ NEWS README THANKS
+
+ insinto /etc
+ doins gtags.conf
+
+ if use vim; then
+ insinto /usr/share/vim/vimfiles/plugin
+ doins gtags.vim
+ fi
+
+ if use emacs; then
+ elisp-install ${PN} *.{el,elc}
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}"
+ fi
+
+ prune_libtool_files
+}
+
+pkg_postinst() {
+ use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}
diff --git a/dev-util/global/global-6.5.7.ebuild b/dev-util/global/global-6.5.7.ebuild
new file mode 100644
index 000000000000..3d6e4cfa2ed2
--- /dev/null
+++ b/dev-util/global/global-6.5.7.ebuild
@@ -0,0 +1,96 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools ltprune elisp-common
+
+DESCRIPTION="tag system to find an object location in various sources"
+HOMEPAGE="https://www.gnu.org/software/global/global.html"
+SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd"
+IUSE="doc emacs vim"
+
+RDEPEND="
+ sys-libs/ncurses
+ emacs? ( virtual/emacs )
+ vim? ( || (
+ app-editors/vim
+ app-editors/gvim
+ )
+ )
+ || (
+ dev-libs/libltdl:0
+ sys-devel/libtool:2
+ )"
+
+DEPEND="${DEPEND}
+ doc? (
+ app-text/texi2html
+ sys-apps/texinfo
+ )"
+
+SITEFILE="50gtags-gentoo.el"
+
+PATCHES=( "${FILESDIR}/${PN}-6.2.9-tinfo.patch" )
+
+DOCS=( AUTHORS FAQ NEWS README THANKS )
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ "$(use_with emacs lispdir "${SITELISP}/${PN}")"
+}
+
+src_compile() {
+ if use doc; then
+ texi2pdf -q -o doc/global.pdf doc/global.texi
+ texi2html -o doc/global.html doc/global.texi
+ fi
+
+ if use emacs; then
+ elisp-compile *.el
+ fi
+
+ emake
+}
+
+src_install() {
+ default
+
+ insinto /etc
+ doins gtags.conf
+
+ if use vim; then
+ insinto /usr/share/vim/vimfiles/plugin
+ doins gtags.vim
+ fi
+
+ if use emacs; then
+ elisp-install ${PN} *.{el,elc}
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}"
+ fi
+
+ if use doc; then
+ # doc/global.pdf is generated if tex executable (e.g. /usr/bin/tex) is available.
+ [[ -f doc/global.pdf ]] && DOCS+=( doc/global.pdf )
+ fi
+
+ einstalldocs
+ prune_libtool_files
+}
+
+pkg_postinst() {
+ use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}
diff --git a/dev-util/global/metadata.xml b/dev-util/global/metadata.xml
new file mode 100644
index 000000000000..6a4aed9a8e5a
--- /dev/null
+++ b/dev-util/global/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>naota@gentoo.org</email>
+ </maintainer>
+ <maintainer type="person">
+ <email>arfrever.fta@gmail.com</email>
+ <description>Proxy maintainer</description>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <use>
+ <flag name="vim">Integrate the GNU GLOBAL source code tag system with Vim</flag>
+ </use>
+</pkgmetadata>
diff --git a/dev-util/gnome-devel-docs/Manifest b/dev-util/gnome-devel-docs/Manifest
new file mode 100644
index 000000000000..ef8f5bdf363b
--- /dev/null
+++ b/dev-util/gnome-devel-docs/Manifest
@@ -0,0 +1,5 @@
+DIST gnome-devel-docs-3.22.1.tar.xz 9298224 SHA256 6d03ae9918d6379eb1162045b82aa8a7fbb6ee660b4e69dae78f070115f0b36b SHA512 9d1c740fa2580ac4e5265d24463bd292df5db3e3bdf0ae57b55b0f71067bb88e28d4d51aa246e7e43f86fa77f73ac7c475cfaa688e009956d253117e650bb63f WHIRLPOOL 8ae8c4343c676811fea9075b20941a49c2793546663c3a26ddc75b0c8aa377173908aa8c7da872f2e79787ca3c4c926a71bcdb6697a13de69d48597951d1a6fa
+EBUILD gnome-devel-docs-3.22.1.ebuild 662 SHA256 bdbce217b6bdbca37328c7288ce633e735c12e9bf7555b43a309b4442c48cebc SHA512 0a7a65213a2bc531187a5a8693c185be93f93dd314319e0922122a9e8a6ce68f0f368133e4ab759a26bd496f3bc0a5e1f1daeef88b689fc2b59004144b7733b9 WHIRLPOOL b2431bb3e682eceb3ab17f8757733f21c8a35424b4c3e3ff5336e2675e7ded31041602700cc5913cc9edb45864d449552510db75e784a394c1a80604159461ca
+MISC ChangeLog 5044 SHA256 27b5ca39aab4110362c975b55267ffcf3bfad86a38e095c8b7ea07279eb368d1 SHA512 30c66621fd4df37594c7b7754cd6073ecdf9c3205dbd8b08eece41964d6b6b712bafc5272bca7bf570d40bfd559dcf9f7306de02518010ef3b88951afc9aefa5 WHIRLPOOL 2a960835df07e04f8fe5f4ebcd85bd9ddf7ad5a9bf5f5bea0c362d1d99d82b54096ba8d105470c0080325e92dc2bf70aea2dafb8bc80da6c69a51d135bbb0a91
+MISC ChangeLog-2015 6093 SHA256 63877940fd5dea6ef01f7abea8c632248557b4ea8ce5cc5a7ca4945432e14353 SHA512 584611bc3aa8deb878c769d9b91ff7bf56c917cea172a945040bc6b65812607605e8f67d035551bc43b24e672ae4741b3838638e4c4db2dbbc9428552fba2d37 WHIRLPOOL eea29e89719bcc990421499c3a55c47cabf49285834989c7c5035d8c7a87efc80b379f15bdcdaf33a437681c0284ad20def616422c3fb0b8a904019e7e8770bb
+MISC metadata.xml 249 SHA256 4505b0bfeadff287958620b7dc7b7209699065a8f17139a237a5dd409a726a97 SHA512 c40662134899a5c9f0369a1017806f35adf3280a0b3c91726f7a8ca6012a073a8b471583f5bfb6fe95faac1dcf607e8e2e43f8c91d48ec46f4a8824e2f551506 WHIRLPOOL 333a938ee1d2124595596c572697bf5ebad523a92ba12005cfb12e6bb6270881a94a911f0cc9c1cf2bb571559e8271e07dfd307dabe50058236dbe7103562b92
diff --git a/dev-util/gnome-devel-docs/gnome-devel-docs-3.22.1.ebuild b/dev-util/gnome-devel-docs/gnome-devel-docs-3.22.1.ebuild
new file mode 100644
index 000000000000..c6f7623f1cfc
--- /dev/null
+++ b/dev-util/gnome-devel-docs/gnome-devel-docs-3.22.1.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit gnome2
+
+DESCRIPTION="Documentation for developing for the GNOME desktop environment"
+HOMEPAGE="https://developer.gnome.org/"
+
+LICENSE="FDL-1.1+ CC-BY-SA-3.0 CC-BY-SA-4.0"
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86"
+IUSE=""
+
+RDEPEND=""
+DEPEND="
+ app-text/docbook-xml-dtd:4.1.2
+ app-text/docbook-xml-dtd:4.2
+ app-text/yelp-tools
+ dev-libs/libxslt
+ sys-devel/gettext
+ virtual/pkgconfig
+"
+
+# This ebuild does not install any binaries
+RESTRICT="binchecks strip"
+
+src_configure() {
+ # Wants to build demo samples
+ gnome2_src_configure ac_cv_path_CC=""
+}
diff --git a/dev-util/gnome-devel-docs/metadata.xml b/dev-util/gnome-devel-docs/metadata.xml
new file mode 100644
index 000000000000..39980802b1da
--- /dev/null
+++ b/dev-util/gnome-devel-docs/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="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+</maintainer>
+</pkgmetadata>
diff --git a/dev-util/gob/Manifest b/dev-util/gob/Manifest
new file mode 100644
index 000000000000..573b73c871f9
--- /dev/null
+++ b/dev-util/gob/Manifest
@@ -0,0 +1,5 @@
+DIST gob2-2.0.20.tar.xz 202540 SHA256 5fe5d7990fd65b0d4b617ba894408ebaa6df453f2781c15a1cfdf2956c0c5428 SHA512 9d09692ef208f8d6422fd573aa1955ca5dcfc3feaf9e0fb64c27e52f4638fe19a5e08a7282f682ed5241a8fafce3852e4168ba4f3865890df972dad4ee342b7a WHIRLPOOL bc2c081bab2f9745c56cc36a8a40fa71820ea1251f28860a7374507ae6f53d43613de2472b9c41cc486778709525fa3610ccb2afe9f7234872bef84357f6261f
+EBUILD gob-2.0.20.ebuild 540 SHA256 aeb2a727494506db6aaafbca19e9b26f528bbb92f9c6bbd54c6bc23e74803d51 SHA512 c36d47eba0509337c6d0056e8e190388c99d203a8e404544ba876591d2d3c71c1ff49b3663aced6cc6d4008a3d64a631a515bcbc83436bfb9e65b9963ad382ef WHIRLPOOL 698ecdef344c00e20313ac77d3409f45bda14e42a39082a2f887138ee6dbcfb20df63e75fc0b05404c656a864de56d35c76fa202764cb096dc8447c67f9db5af
+MISC ChangeLog 2417 SHA256 2cbea69720b2271da0e14abd9535c23ddd7aef5b052fc3b1eda9a61189b21217 SHA512 51e2c5a2484d7c684a7ee713edf8333b8806d6629e06f4cf773b092179587dc599a563e11801a995197eaa3988be5718c0b83ba0046b2acfee8031e13dd9fc84 WHIRLPOOL e170f2168cd7d8a9a3856bb172526563b295551a525c8a3e5581997b4847a8e540812924b5b4f59075c5e4c05797aa2297750e6ac4b74bde98dec0434f14f888
+MISC ChangeLog-2015 11270 SHA256 c2b333b8bf2401cf2f1f3496b8d1855ce4234dab08f1cdcc17a262522e827e62 SHA512 f04919695ed4eb839b5087bbcf3ed6c92ccd00bc1aca5236b4142abf04b5bf725a20adeaa32c1914c5b4aba22dffe9181f4f20d73ade96b73a382475338b2ca4 WHIRLPOOL 9382efaae4da204a8f6489a121630a2545d7231b3588dcb2d343ee3adcdaef3cdc907a02830a4f296d4ef9e7c3862b5c2d64d05e47b32da69cca69ba237feaf8
+MISC metadata.xml 249 SHA256 4505b0bfeadff287958620b7dc7b7209699065a8f17139a237a5dd409a726a97 SHA512 c40662134899a5c9f0369a1017806f35adf3280a0b3c91726f7a8ca6012a073a8b471583f5bfb6fe95faac1dcf607e8e2e43f8c91d48ec46f4a8824e2f551506 WHIRLPOOL 333a938ee1d2124595596c572697bf5ebad523a92ba12005cfb12e6bb6270881a94a911f0cc9c1cf2bb571559e8271e07dfd307dabe50058236dbe7103562b92
diff --git a/dev-util/gob/gob-2.0.20.ebuild b/dev-util/gob/gob-2.0.20.ebuild
new file mode 100644
index 000000000000..27f6942ffb25
--- /dev/null
+++ b/dev-util/gob/gob-2.0.20.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+GCONF_DEBUG="no"
+GNOME_ORG_MODULE="gob2"
+
+inherit gnome2
+
+DESCRIPTION="Preprocessor for making GTK+ objects with inline C code"
+HOMEPAGE="http://www.jirka.org/gob.html"
+
+LICENSE="GPL-2+"
+SLOT="2"
+KEYWORDS="~alpha amd64 ~arm arm64 hppa ~ia64 m68k ppc ~ppc64 s390 sh ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE=""
+
+RDEPEND=">=dev-libs/glib-2.4:2"
+DEPEND="${RDEPEND}
+ sys-devel/flex
+ virtual/pkgconfig
+ virtual/yacc
+"
diff --git a/dev-util/gob/metadata.xml b/dev-util/gob/metadata.xml
new file mode 100644
index 000000000000..39980802b1da
--- /dev/null
+++ b/dev-util/gob/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="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+</maintainer>
+</pkgmetadata>
diff --git a/dev-util/google-perftools/Manifest b/dev-util/google-perftools/Manifest
new file mode 100644
index 000000000000..87c77f35c1d3
--- /dev/null
+++ b/dev-util/google-perftools/Manifest
@@ -0,0 +1,17 @@
+AUX gperftools-2.0+glibc-2.16.patch 604 SHA256 abb19fd87ce092fc0cb0a4a5964834ec97b12d2462bc2b8bd8668c4ca71fcea5 SHA512 aa9b94c4712227b6414fc34a47154f416b120004c81704ab181c7985b6dce60bf1d98e4175678fb445cd59bb6c85d4d7bb0a093e186ecc9f115bc841d27cb964 WHIRLPOOL 75866b1e0e17ccc206459b31e284f7892d7e03c4cd862f8f6d66b374887aab938e9d79115228b7a7258f6bddd2439348fb48f67581744b9fdad1b4f6ae8079ef
+AUX gperftools-2.0-32bit-barrier.patch 792 SHA256 224776d529f1a1d11a036f16f04d4f01e3fd805d6fdd361c7d4b714f5bfbb87c SHA512 a39fd183d76a76e5c4cb3915f966e008250b4c72098bd2a9d13f10e01efd8dd1e36a51e0d4ef5f712d20398fa8605aa40e2529af085e80f918a1e227d7c92def WHIRLPOOL dafa07810d202816462603457395491a7d5901c0faf3134383635ef9a267aeba9f6635e687659dd1634ef7219970334a485350d6f8cad33f6792d87b779c21a3
+DIST google-perftools-1.8.3.tar.gz 1265062 SHA256 6ad744b34abb24312631740d9912f4667993b02e5f59b91246c31a2a911a9d59 SHA512 c6938391d182982ba6a87cd3d023e5fdf3501c42aecb951504e2fc97ce9e5bb2a6e6a577504ddbe89220b45ae47e58ce3e68f84aa45ff238d949dee4fc765b51 WHIRLPOOL 70ef15f25451a0f3eddb92e948e6d7d2e46a7ee8684636ddff312d5f0dda1429a7fe3f1f6756f0a979e4957b09c47513ddad9504415795e9e82ba51188672fdc
+DIST gperftools-2.0.tar.gz 1261243 SHA256 7de3dd91f018825b1e7d332af1edace15c6211f430186febede1835069861080 SHA512 61bf7a26974058912a4165cbc363351bc735599d36ab569dc7e84a75a690adbc17a4178512a57469fc7c17befaad2a271ef4ea5c29a36b664153938939269926 WHIRLPOOL 4f49a7da976040cacdecb8e18294b09fbfe276422ba35058476a14a3c1df072f8748d70f738adafa03a3a445701ed32b6232f13962d8ec8c5a968652414797a6
+DIST gperftools-2.4.tar.gz 890402 SHA256 a73c2d066fb0d8e5a9102c0c17eadd8041f9b43b40b50faff54db01256772f6c SHA512 77198c150ee26579adc8f190be0c4ba90a9e3854b006c3aa9252b5863b1fce317fd690c6aa0ed202c81f0bbcfbe2d5f8a182263e77b7fb4fbc6b3e8bfffc9fb0 WHIRLPOOL 4b74a6074e1d0e0f6c5c3d8487a73045849237db93abcb5f4bb4aa7f40fcf9355d0cb1702335904ba6153ead62cb5a6df264d359bc1ce32fbb13fba4d2f2ddbc
+DIST gperftools-2.5.tar.gz 895753 SHA256 0256331e67e8be12995b57183ec6affd071231f997bfcb5d5b050f86d4ad577e SHA512 974b86eadebe0437f4b7cf51de84afa315390cdcd2a88c8ccc8448b0b3e98c2241d89b4987b5fca1937102ae00a43802d9d06d7b11272e3dfeeaa23cf58ad68d WHIRLPOOL 4fc82910585107a2a879cae1b83afdcf98a39c3c7cbce3e8ba28b7b00ea1f638bb795213b7a6330bb311dd399bd7bcf34b3705cb8f75921ac1fd9ce3c0d1e8fd
+DIST gperftools-2.6.1.tar.gz 907916 SHA256 3a51215bf0f0c1eedaef9cd377fe6b47dddafc3e5a66d292abb176e1ed36aab8 SHA512 49c1123ef8e297381e30fae6fc2391539ac5e1d3097b3f9f59c21853589152e248e92be0739bc50da6e5542f2638a9719b88f2d454221f463915d89e569776d2 WHIRLPOOL f93beba285703e199b27fd03e9c16732dcd9b625a16daad02c255392627dcf57b093a767bc645716b5f3395446c6181678c775b53f7d2dc151a398dad737a761
+DIST gperftools-2.6.tar.gz 906841 SHA256 ff07a20a522fc729b899c542fedd3156fb1600973786542917675f7634b4905c SHA512 9fc32066304b76ad323e90ce2e7b437e7f1a5094b8d40a0e3df4d317fd57b4c048a19dacb7d148bd40557a080b0b82fe2da8ef32ae5511735ca7118e06b1ee38 WHIRLPOOL c91ffd09e9fd3202c17813d27370b144fa4140a6bd62b3e6c662557ac674c16575edcd50313d2cd342834a6ea5e799b96dca72ff600714486f9515bcc0c538c1
+EBUILD google-perftools-1.8.3.ebuild 2133 SHA256 a1a9f59fae005bf577fe3fa1da4eae13566d0bbbe0f374f0d99e052129f2bcac SHA512 205e18c8d5cf0ff78d3f5a91daaafee95b4395cd6a68fa3d4d606a29b5bd720f1a013a3398e6c9eb4b660e1bc614bc5f269a87cada037c09bfd5f80985a530fb WHIRLPOOL 26e5fb6ef462588588d258349ab3774adaa2d54458910396871d43b662ab2567b71f1bd64e21aa39448a8da96759d7c74c26d4d3215aa5ab5c2f9e33d0d90465
+EBUILD google-perftools-2.0-r2.ebuild 1803 SHA256 6adfe2de28d516f389ef765fbfa2592d167b7c0b3ba17ea93d7c24c9eb16ccb7 SHA512 7fe925ddae89c431f7177c4bc97dc2e5a663452e9fde34d16f28fd5dbfa8e584b961362cc1f65ee726478b54a2d000b15ef3bf81ce4e10c11aee2a78990e3a58 WHIRLPOOL 92f5123e02f594fd564d05360d0c5bb2010adbbfaf6bc6820af41cd8e73240d54c2418127ca3b2414d180f2a3f603e452b5525c8260d37ab2fe22fcbc260f95c
+EBUILD google-perftools-2.4.ebuild 2297 SHA256 0df96482fdd830d12d6a0c2c632395852365765be0555972a0e9b63adb14c1a2 SHA512 026a68d5920847c00fd1af24397ce45575dab9e16f569c9d55b7b0424511cab365be429e33bb7d74ef70a57c38eacc825d3809d44c204678b046c9a76302a460 WHIRLPOOL 2c055a442e973a67cbcd194445313337549cddebaada059d1f352e2ed9b17386876b78d4aeff254fda7b65d7d6d920a8a84f08322b984fdb44604811c9a17f40
+EBUILD google-perftools-2.5.ebuild 2239 SHA256 7032fdcb3fcc76f461b663cbd6ed6f5bc212a20a330f4d3ac227d3aad7552aa4 SHA512 a82b99fac33b076300aa37a7ead134b3ce52468e8a4a7d1ac8721a49459cddce81dcf7a816361d53b6cfaf1d33500a0c39417713275bb148d7b7197cfb46a78d WHIRLPOOL 96cf077cb4181959ff706473ccc3c38166768a6e3eb3f1d4819324011eeb97f1446ac6a459274c921f8fa2fdb0a11b252ec1a487c8eceb27616d065df0c3fc5d
+EBUILD google-perftools-2.6.1.ebuild 2318 SHA256 6fdc629c2037d021d8825daa6991156c1e0ecfbdc5b47781a280054bd06eb245 SHA512 4a49fa149ad25f5ce4b533259be598833ba3f99b5899abdcbc7cc6aefaea55dd047c09dfe02be22b12a880d3a57ec3da4dde69acb3d1bae6a3b912b3c8d2c90d WHIRLPOOL ad145243aacbdf91d251ac1ee2e811065d5e03eb04c34e4b857f64a537447decd31174d470b56de265ea6c8896c98f7a191358fa54bb81e895f7a89d8dc563b1
+EBUILD google-perftools-2.6.ebuild 2298 SHA256 6a7c079b35aff1edb76ccb75c8ef2e08a06eabc2287b167cb9d9cf6acb1d0eb6 SHA512 c7f8cd8b270f7ac343e63f620da03a0787c8c20271030c653eb1d5a5ee42e6666f36b2652c8c71fa0785d87d67b82f9005b7f564d72ccae159521a9cad8e75cf WHIRLPOOL 1653a819e3848f3fd9238f7c35fe00625cf83075ad1ab673b6981a9b8856ec5c7757083b5fec393786d41b0705eaa72430b2877163605c9e4d50ec54dbee2101
+MISC ChangeLog 4054 SHA256 22515ab4664b0a511e9bf0f8ee9b76fc5c14ec5e82c9fd4bd69348b3dc599132 SHA512 793f80676ee546b0d7b7617c6400a5ecc272abc90274b9543ec84a598afc256d9b1a83b3ca973122bfadc2ce1e7abd4cce70704cd99cc1338b6a49d3921692b5 WHIRLPOOL 192ad668add8ac87e7eb6988787b1dbc6b051f47b44e8af9724db9308a39c85700f656a33f348fa6518c4f8beff9768c3b031bb89d52bca062b5374ac6559fa5
+MISC ChangeLog-2015 5705 SHA256 f0713639a4e8fa98e217225e6f991582cd1f01503f7a0aa9bdf2f5851daaec1d SHA512 f2682216c6471645d0629d215cf96b3191bcf13b7dd461e648fa18acad54aedfce1e3bd9f16d61e2fbf818a58f058f7fbdc092461cd6326c6e676629d7dcb29b WHIRLPOOL d4ddef9f7c001087549b99a047f0c179dfd6f320cb170514a47c640489bb9da75113e2b3cf9b0019566d8ff53152f602e9ad7e704de7f35dde4d772ddace5c76
+MISC metadata.xml 894 SHA256 3eab17f7e2fd16d56083a6db977be937330bd8b5b30153bfcbeadc0d0ac4d1c0 SHA512 8b940221b8eab122bf8579bce312c71c4ff49e6a35982e9b38990ad181ead444b8cb98b8a919fa941f99842fa28be9e5b456eb07954b3b25f4acc4112d98c0d2 WHIRLPOOL 160606974ec27a6e1a062dad767598302c71157149cf94b57e6b3cb16436e1614d87e8c25624d0eac29662adebf65cf071cbb669e6eb1ada0b2b67f32e36866e
diff --git a/dev-util/google-perftools/files/gperftools-2.0+glibc-2.16.patch b/dev-util/google-perftools/files/gperftools-2.0+glibc-2.16.patch
new file mode 100644
index 000000000000..b17e0d57f5fb
--- /dev/null
+++ b/dev-util/google-perftools/files/gperftools-2.0+glibc-2.16.patch
@@ -0,0 +1,13 @@
+Index: gperftools-2.0/src/base/linuxthreads.cc
+===================================================================
+--- gperftools-2.0.orig/src/base/linuxthreads.cc
++++ gperftools-2.0/src/base/linuxthreads.cc
+@@ -193,7 +193,7 @@ static volatile int *sig_pids, sig_num_t
+ /* Signal handler to help us recover from dying while we are attached to
+ * other threads.
+ */
+-static void SignalHandler(int signum, siginfo_t *si, void *data) {
++static void SignalHandler(int signum, struct siginfo *si, void *data) {
+ if (sig_pids != NULL) {
+ if (signum == SIGABRT) {
+ while (sig_num_threads-- > 0) {
diff --git a/dev-util/google-perftools/files/gperftools-2.0-32bit-barrier.patch b/dev-util/google-perftools/files/gperftools-2.0-32bit-barrier.patch
new file mode 100644
index 000000000000..df89a92ed010
--- /dev/null
+++ b/dev-util/google-perftools/files/gperftools-2.0-32bit-barrier.patch
@@ -0,0 +1,17 @@
+Atomic64 not available on all architectures.
+Use AtomicWord instead.
+
+Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
+
+diff -Nuar gperftools-2.0.orig/src/base/spinlock_internal.cc gperftools-2.0/src/base/spinlock_internal.cc
+--- gperftools-2.0.orig/src/base/spinlock_internal.cc 2012-02-02 21:36:23.000000000 +0000
++++ gperftools-2.0/src/base/spinlock_internal.cc 2013-01-20 23:44:01.629077919 +0000
+@@ -80,7 +80,7 @@
+ static int SuggestedDelayNS(int loop) {
+ // Weak pseudo-random number generator to get some spread between threads
+ // when many are spinning.
+- static base::subtle::Atomic64 rand;
++ static AtomicWord rand;
+ uint64 r = base::subtle::NoBarrier_Load(&rand);
+ r = 0x5deece66dLL * r + 0xb; // numbers from nrand48()
+ base::subtle::NoBarrier_Store(&rand, r);
diff --git a/dev-util/google-perftools/google-perftools-1.8.3.ebuild b/dev-util/google-perftools/google-perftools-1.8.3.ebuild
new file mode 100644
index 000000000000..7440a1c1f1c5
--- /dev/null
+++ b/dev-util/google-perftools/google-perftools-1.8.3.ebuild
@@ -0,0 +1,84 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit toolchain-funcs eutils flag-o-matic
+
+DESCRIPTION="Fast, multi-threaded malloc() and nifty performance analysis tools"
+HOMEPAGE="https://github.com/gperftools/gperftools"
+SRC_URI="https://github.com/gperftools/gperftools/archive/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+# contains ASM code, with support for
+# freebsd x86/amd64
+# linux x86/amd64/ppc/ppc64/arm
+# OSX ppc/amd64
+# AIX ppc/ppc64
+KEYWORDS="-* amd64 x86 ~x86-fbsd"
+IUSE="largepages +debug minimal" # test"
+
+DEPEND="sys-libs/libunwind"
+RDEPEND="${DEPEND}"
+
+# tests end up in an infinite loop, even without sandbox
+RESTRICT=test
+
+pkg_setup() {
+ # set up the make options in here so that we can actually make use
+ # of them on both compile and install.
+
+ # Avoid building the unit testing if we're not going to execute
+ # tests; this trick here allows us to ignore the tests without
+ # touching the build system (and thus without rebuilding
+ # autotools). Keep commented as long as it's restricted.
+
+ # use test && \
+ makeopts="${makeopts} noinst_PROGRAMS= "
+
+ # don't install _anything_ from the documentation, since it would
+ # install it in non-standard locations, and would just waste time.
+ makeopts="${makeopts} dist_doc_DATA= "
+}
+
+src_configure() {
+ use largepages && append-cppflags -DTCMALLOC_LARGE_PAGES
+
+ append-flags -fno-strict-aliasing
+
+ econf \
+ --disable-static \
+ --disable-dependency-tracking \
+ --enable-fast-install \
+ $(use_enable debug debugalloc) \
+ $(use_enable minimal)
+}
+
+src_compile() {
+ emake ${makeopts} || die "emake failed"
+}
+
+src_test() {
+ case "${LD_PRELOAD}" in
+ *libsandbox*)
+ ewarn "Unable to run tests when sanbox is enabled."
+ ewarn "See https://bugs.gentoo.org/290249"
+ return 0
+ ;;
+ esac
+
+ emake check || die "tests failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install ${makeopts} || die "emake install failed"
+
+ # Remove libtool files since we dropped the static libraries
+ find "${D}" -name '*.la' -delete
+
+ dodoc README AUTHORS ChangeLog TODO NEWS || die
+ pushd doc
+ dohtml -r * || die
+ popd
+}
diff --git a/dev-util/google-perftools/google-perftools-2.0-r2.ebuild b/dev-util/google-perftools/google-perftools-2.0-r2.ebuild
new file mode 100644
index 000000000000..c0b175dcf38d
--- /dev/null
+++ b/dev-util/google-perftools/google-perftools-2.0-r2.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+MY_P="gperftools-${PV}"
+
+inherit toolchain-funcs eutils flag-o-matic autotools-utils
+
+DESCRIPTION="Fast, multi-threaded malloc() and nifty performance analysis tools"
+HOMEPAGE="https://github.com/gperftools/gperftools"
+SRC_URI="https://github.com/gperftools/gperftools/archive/${MY_P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0/4"
+# contains ASM code, with support for
+# freebsd x86/amd64
+# linux x86/amd64/ppc/ppc64/arm
+# OSX ppc/amd64
+# AIX ppc/ppc64
+KEYWORDS="-* amd64 arm ppc ppc64 x86 ~x86-fbsd ~amd64-linux ~x86-linux"
+IUSE="largepages +debug minimal test static-libs"
+
+DEPEND="sys-libs/libunwind"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+HTML_DOCS="doc"
+
+pkg_setup() {
+ # set up the make options in here so that we can actually make use
+ # of them on both compile and install.
+
+ # Avoid building the unit testing if we're not going to execute
+ # tests; this trick here allows us to ignore the tests without
+ # touching the build system (and thus without rebuilding
+ # autotools). Keep commented as long as it's restricted.
+ use test || \
+ MAKEOPTS+=" noinst_PROGRAMS= "
+}
+
+src_prepare() {
+ epatch "${FILESDIR}/${MY_P}+glibc-2.16.patch"
+ epatch "${FILESDIR}/${MY_P}-32bit-barrier.patch"
+}
+
+src_configure() {
+ use largepages && append-cppflags -DTCMALLOC_LARGE_PAGES
+ append-flags -fno-strict-aliasing -fno-omit-frame-pointer
+
+ local myeconfargs=(
+ --htmldir=/usr/share/doc/${PF}/html
+ $(use_enable debug debugalloc)
+ $(use_enable minimal)
+ )
+
+ autotools-utils_src_configure
+}
+
+src_test() {
+ case "${LD_PRELOAD}" in
+ *libsandbox*)
+ ewarn "Unable to run tests when sanbox is enabled."
+ ewarn "See https://bugs.gentoo.org/290249"
+ return 0
+ ;;
+ esac
+
+ autotools-utils_src_test
+}
diff --git a/dev-util/google-perftools/google-perftools-2.4.ebuild b/dev-util/google-perftools/google-perftools-2.4.ebuild
new file mode 100644
index 000000000000..a2986988f31c
--- /dev/null
+++ b/dev-util/google-perftools/google-perftools-2.4.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+MY_P="gperftools-${PV}"
+inherit toolchain-funcs flag-o-matic vcs-snapshot autotools multilib-minimal
+
+DESCRIPTION="Fast, multi-threaded malloc() and nifty performance analysis tools"
+HOMEPAGE="https://github.com/gperftools/gperftools"
+SRC_URI="https://github.com/gperftools/gperftools/tarball/${MY_P} -> ${MY_P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0/4"
+# contains ASM code, with support for
+# freebsd x86/amd64
+# linux x86/amd64/ppc/ppc64/arm
+# OSX ppc/amd64
+# AIX ppc/ppc64
+KEYWORDS="-* ~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
+IUSE="largepages +debug minimal optimisememory test static-libs"
+
+DEPEND="sys-libs/libunwind"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+HTML_DOCS="doc"
+
+pkg_setup() {
+ # set up the make options in here so that we can actually make use
+ # of them on both compile and install.
+
+ # Avoid building the unit testing if we're not going to execute
+ # tests; this trick here allows us to ignore the tests without
+ # touching the build system (and thus without rebuilding
+ # autotools). Keep commented as long as it's restricted.
+ use test || \
+ MAKEOPTS+=" noinst_PROGRAMS= "
+}
+
+src_prepare() {
+ default
+ eautoreconf
+ multilib_copy_sources
+}
+
+multilib_src_configure() {
+ use largepages && append-cppflags -DTCMALLOC_LARGE_PAGES
+ use optimisememory && append-cppflags -DTCMALLOC_SMALL_BUT_SLOW
+ append-flags -fno-strict-aliasing -fno-omit-frame-pointer
+
+ econf \
+ --htmldir=/usr/share/doc/${PF}/html \
+ --docdir=/usr/share/doc/${PF} \
+ --enable-shared \
+ $(use_enable static-libs static) \
+ $(use_enable debug debugalloc) \
+ $(if [[ ${ABI} == x32 ]]; then printf "--enable-minimal\n" else use_enable minimal; fi)
+}
+
+src_test() {
+ case "${LD_PRELOAD}" in
+ *libsandbox*)
+ ewarn "Unable to run tests when sandbox is enabled."
+ ewarn "See https://bugs.gentoo.org/290249"
+ return 0
+ ;;
+ esac
+
+ multilib-minimal_src_test
+}
+
+src_install() {
+ if ! use minimal && has x32 ${MULTILIB_ABIS}; then
+ MULTILIB_WRAPPED_HEADERS=(
+ /usr/include/gperftools/heap-checker.h
+ /usr/include/gperftools/heap-profiler.h
+ /usr/include/gperftools/stacktrace.h
+ /usr/include/gperftools/profiler.h
+ )
+ fi
+
+ multilib-minimal_src_install
+}
diff --git a/dev-util/google-perftools/google-perftools-2.5.ebuild b/dev-util/google-perftools/google-perftools-2.5.ebuild
new file mode 100644
index 000000000000..79740a1047c5
--- /dev/null
+++ b/dev-util/google-perftools/google-perftools-2.5.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+AUTOTOOLS_AUTORECONF=1
+
+MY_P="gperftools-${PV}"
+inherit toolchain-funcs eutils flag-o-matic vcs-snapshot autotools-multilib
+
+DESCRIPTION="Fast, multi-threaded malloc() and nifty performance analysis tools"
+HOMEPAGE="https://github.com/gperftools/gperftools"
+SRC_URI="https://github.com/gperftools/gperftools/tarball/${MY_P} -> ${MY_P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0/4"
+# contains ASM code, with support for
+# freebsd x86/amd64
+# linux x86/amd64/ppc/ppc64/arm
+# OSX ppc/amd64
+# AIX ppc/ppc64
+KEYWORDS="-* ~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
+IUSE="largepages +debug minimal optimisememory test static-libs"
+
+DEPEND="sys-libs/libunwind"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+HTML_DOCS="doc"
+
+pkg_setup() {
+ # set up the make options in here so that we can actually make use
+ # of them on both compile and install.
+
+ # Avoid building the unit testing if we're not going to execute
+ # tests; this trick here allows us to ignore the tests without
+ # touching the build system (and thus without rebuilding
+ # autotools). Keep commented as long as it's restricted.
+ use test || \
+ MAKEOPTS+=" noinst_PROGRAMS= "
+}
+
+multilib_src_configure() {
+ use largepages && append-cppflags -DTCMALLOC_LARGE_PAGES
+ use optimisememory && append-cppflags -DTCMALLOC_SMALL_BUT_SLOW
+ append-flags -fno-strict-aliasing -fno-omit-frame-pointer
+
+ local myeconfargs=(
+ --htmldir=/usr/share/doc/${PF}/html
+ $(use_enable debug debugalloc)
+ )
+
+ if [[ ${ABI} == x32 ]]; then
+ myeconfargs+=( --enable-minimal )
+ else
+ myeconfargs+=( $(use_enable minimal) )
+ fi
+ autotools-utils_src_configure
+}
+
+src_test() {
+ case "${LD_PRELOAD}" in
+ *libsandbox*)
+ ewarn "Unable to run tests when sandbox is enabled."
+ ewarn "See https://bugs.gentoo.org/290249"
+ return 0
+ ;;
+ esac
+
+ autotools-multilib_src_test
+}
+
+src_install() {
+ if ! use minimal && has x32 ${MULTILIB_ABIS}; then
+ MULTILIB_WRAPPED_HEADERS=(
+ /usr/include/gperftools/heap-checker.h
+ /usr/include/gperftools/heap-profiler.h
+ /usr/include/gperftools/stacktrace.h
+ /usr/include/gperftools/profiler.h
+ )
+ fi
+
+ autotools-multilib_src_install
+}
diff --git a/dev-util/google-perftools/google-perftools-2.6.1.ebuild b/dev-util/google-perftools/google-perftools-2.6.1.ebuild
new file mode 100644
index 000000000000..708d67991674
--- /dev/null
+++ b/dev-util/google-perftools/google-perftools-2.6.1.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+MY_P="gperftools-${PV}"
+inherit toolchain-funcs flag-o-matic vcs-snapshot autotools multilib-minimal
+
+DESCRIPTION="Fast, multi-threaded malloc() and nifty performance analysis tools"
+HOMEPAGE="https://github.com/gperftools/gperftools"
+SRC_URI="https://github.com/gperftools/gperftools/tarball/${MY_P} -> ${MY_P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0/4"
+# contains ASM code, with support for
+# freebsd x86/amd64
+# linux x86/amd64/ppc/ppc64/arm
+# OSX ppc/amd64
+# AIX ppc/ppc64
+KEYWORDS="-* ~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
+IUSE="largepages +debug minimal optimisememory test static-libs"
+
+DEPEND="sys-libs/libunwind"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+HTML_DOCS="docs"
+
+pkg_setup() {
+ # set up the make options in here so that we can actually make use
+ # of them on both compile and install.
+
+ # Avoid building the unit testing if we're not going to execute
+ # tests; this trick here allows us to ignore the tests without
+ # touching the build system (and thus without rebuilding
+ # autotools). Keep commented as long as it's restricted.
+ use test || \
+ MAKEOPTS+=" noinst_PROGRAMS= "
+}
+
+src_prepare() {
+ default
+ eautoreconf
+ multilib_copy_sources
+}
+
+multilib_src_configure() {
+ use largepages && append-cppflags -DTCMALLOC_LARGE_PAGES
+ use optimisememory && append-cppflags -DTCMALLOC_SMALL_BUT_SLOW
+ append-flags -fno-strict-aliasing -fno-omit-frame-pointer
+
+ econf \
+ --htmldir=${EPREFIX}/usr/share/doc/${PF}/html \
+ --docdir=${EPREFIX}/usr/share/doc/${PF} \
+ --enable-shared \
+ $(use_enable static-libs static) \
+ $(use_enable debug debugalloc) \
+ $(if [[ ${ABI} == x32 ]]; then printf "--enable-minimal\n" else use_enable minimal; fi)
+}
+
+src_test() {
+ case "${LD_PRELOAD}" in
+ *libsandbox*)
+ ewarn "Unable to run tests when sandbox is enabled."
+ ewarn "See https://bugs.gentoo.org/290249"
+ return 0
+ ;;
+ esac
+
+ multilib-minimal_src_test
+}
+
+src_install() {
+ if ! use minimal && has x32 ${MULTILIB_ABIS}; then
+ MULTILIB_WRAPPED_HEADERS=(
+ /usr/include/gperftools/heap-checker.h
+ /usr/include/gperftools/heap-profiler.h
+ /usr/include/gperftools/stacktrace.h
+ /usr/include/gperftools/profiler.h
+ )
+ fi
+
+ multilib-minimal_src_install
+}
diff --git a/dev-util/google-perftools/google-perftools-2.6.ebuild b/dev-util/google-perftools/google-perftools-2.6.ebuild
new file mode 100644
index 000000000000..48a3be80a5e3
--- /dev/null
+++ b/dev-util/google-perftools/google-perftools-2.6.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+MY_P="gperftools-${PV}"
+inherit toolchain-funcs flag-o-matic vcs-snapshot autotools multilib-minimal
+
+DESCRIPTION="Fast, multi-threaded malloc() and nifty performance analysis tools"
+HOMEPAGE="https://github.com/gperftools/gperftools"
+SRC_URI="https://github.com/gperftools/gperftools/tarball/${MY_P} -> ${MY_P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0/4"
+# contains ASM code, with support for
+# freebsd x86/amd64
+# linux x86/amd64/ppc/ppc64/arm
+# OSX ppc/amd64
+# AIX ppc/ppc64
+KEYWORDS="-* ~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
+IUSE="largepages +debug minimal optimisememory test static-libs"
+
+DEPEND="sys-libs/libunwind"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+HTML_DOCS="docs"
+
+pkg_setup() {
+ # set up the make options in here so that we can actually make use
+ # of them on both compile and install.
+
+ # Avoid building the unit testing if we're not going to execute
+ # tests; this trick here allows us to ignore the tests without
+ # touching the build system (and thus without rebuilding
+ # autotools). Keep commented as long as it's restricted.
+ use test || \
+ MAKEOPTS+=" noinst_PROGRAMS= "
+}
+
+src_prepare() {
+ default
+ eautoreconf
+ multilib_copy_sources
+}
+
+multilib_src_configure() {
+ use largepages && append-cppflags -DTCMALLOC_LARGE_PAGES
+ use optimisememory && append-cppflags -DTCMALLOC_SMALL_BUT_SLOW
+ append-flags -fno-strict-aliasing -fno-omit-frame-pointer
+
+ econf \
+ --htmldir=/usr/share/doc/${PF}/html \
+ --docdir=/usr/share/doc/${PF} \
+ --enable-shared \
+ $(use_enable static-libs static) \
+ $(use_enable debug debugalloc) \
+ $(if [[ ${ABI} == x32 ]]; then printf "--enable-minimal\n" else use_enable minimal; fi)
+}
+
+src_test() {
+ case "${LD_PRELOAD}" in
+ *libsandbox*)
+ ewarn "Unable to run tests when sandbox is enabled."
+ ewarn "See https://bugs.gentoo.org/290249"
+ return 0
+ ;;
+ esac
+
+ multilib-minimal_src_test
+}
+
+src_install() {
+ if ! use minimal && has x32 ${MULTILIB_ABIS}; then
+ MULTILIB_WRAPPED_HEADERS=(
+ /usr/include/gperftools/heap-checker.h
+ /usr/include/gperftools/heap-profiler.h
+ /usr/include/gperftools/stacktrace.h
+ /usr/include/gperftools/profiler.h
+ )
+ fi
+
+ multilib-minimal_src_install
+}
diff --git a/dev-util/google-perftools/metadata.xml b/dev-util/google-perftools/metadata.xml
new file mode 100644
index 000000000000..e6791a60364b
--- /dev/null
+++ b/dev-util/google-perftools/metadata.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <use>
+ <flag name="largepages">
+ Use (experimental) larger pages for tcmalloc, this increases
+ memory usage, but should speed up the allocation/free
+ operations.
+ </flag>
+ <flag name="debug">
+ Build a set of libraries with debug support (so-called
+ debugalloc). These are available by default but are not needed
+ unless you're actually developing using tcmalloc.
+ </flag>
+ <flag name="minimal">
+ Only build the tcmalloc_minimal library, ignoring the heap
+ checker and the profilers.
+ </flag>
+ <flag name="optimisememory">
+ To build libtcmalloc with smaller internal caches.
+ </flag>
+ </use>
+ <upstream>
+ <remote-id type="github">gperftools/gperftools</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/gource/Manifest b/dev-util/gource/Manifest
new file mode 100644
index 000000000000..8e71ae2502b3
--- /dev/null
+++ b/dev-util/gource/Manifest
@@ -0,0 +1,9 @@
+DIST gource-0.44.tar.gz 875131 SHA256 2604ca4442305ffdc5bb1a7bac07e223d59c846f93567be067e8dfe2f42f097c SHA512 4cdc7824f8f5b4aa7004135e59157ebf731730bc2dab0120ab919240576939b0e13dc6a09df79fcdb55cc7b4628c3887f5eca7ab0fa73d5e7bf5ad49c7cf898c WHIRLPOOL 55d637d7c2306f87b1ea4acd12f639033cf15b627a06d9d7eb2a4a2bb5bc79b78f0ff1ca949cad1eb4fd77586411662a84838abb65b19e4a7e3b3bef537a5eea
+DIST gource-0.46.tar.gz 876639 SHA256 9aafdc072e4508990965da246ca17ab94c6937649030bf49de371126fc8479dd SHA512 5470ae31172623f5129ca609f039995dfa3338bb100241e6f3b9ccac55948b3400068ae6faf180c78fd63efb284e7624515383d4150f60648e4bb3e1819fee31 WHIRLPOOL 0ee43bdd6526cfb3d4af62cf7365bba51ebd0644562ef75b752586f516b5cc990ab817e069e9efaf090d6dfff1cc13d2d6b64ff0aec0df517243fa42eda07b39
+DIST gource-0.47.tar.gz 876624 SHA256 f2b16083a01b897b6c062b363793028fb9e01cd6f888d91772ee06e56ce398d2 SHA512 8b2c4c20f5266823846ee2ff18e4b793b35af4c65ab466b962aa2861d2fc8b3b9f7614db14ad8b3745548d3921ecd8163d58bb7ef67e7e4ca07f381565c85d14 WHIRLPOOL 2b167e546d7305376e8e92fbb730b53c4cc4940581b7b243fe72c8b05a9896f42d9efe66bca3d787ec325718cbe52e228988a3ddd86d2ec07e7a854c414c4fb2
+EBUILD gource-0.44.ebuild 1060 SHA256 ee9177e2c0ae6d8aaffec15c23d8ade080a4faac5f0cf1d4d909e64ef32211a0 SHA512 e165b22e0f20ca14e6da083f62114778037993438c712ebcb06be87123de5e8d4b06f766367df1a68678b0c25ec7b9edb03fb3e2242452d31f37bc2aba410e2e WHIRLPOOL 51974b0a04fb51094e5e9314963e266624c335c7245f17bd6506fbcba9701b0e8940ea20bd018394e5b5db4c613b910968f9e8b271b13e4436c943db675676e9
+EBUILD gource-0.46.ebuild 1062 SHA256 6aab4bea2b4759efa7ea70392726a979528198f8b25b9c4d0a345a9a3988e0c0 SHA512 f01007957e2ccbd2786bdefeeac22f909e789a8b223baf735d1f762863b20b9ee10b3135cd9c2215eb29436246f49af487ab3bd950d0a3ae7492592368571e0a WHIRLPOOL 2627a89d86a2a8eb09601a12ae9d65aaa05099264e9ef85cc135d5ff57d77b872ce7731fcae9dc1b661ce6ffe72263e631565682972ae1779169cc969ac31a21
+EBUILD gource-0.47.ebuild 1062 SHA256 6aab4bea2b4759efa7ea70392726a979528198f8b25b9c4d0a345a9a3988e0c0 SHA512 f01007957e2ccbd2786bdefeeac22f909e789a8b223baf735d1f762863b20b9ee10b3135cd9c2215eb29436246f49af487ab3bd950d0a3ae7492592368571e0a WHIRLPOOL 2627a89d86a2a8eb09601a12ae9d65aaa05099264e9ef85cc135d5ff57d77b872ce7731fcae9dc1b661ce6ffe72263e631565682972ae1779169cc969ac31a21
+MISC ChangeLog 4331 SHA256 fd75349444cb14440d65a829b1898177f6ffe6592798e099fb220a7636d11f0a SHA512 dcb7f211d68048ce09346e4b0df2376b7a405f12434e0c5046abedfd3836863397da3bcf19191291e5b2300fd60793c0647fd1ec4e96de47e2125a460f8bbbb1 WHIRLPOOL 4eaa1668961477c4596b1dd8ccd028f69b9e2757a1f7a95e25dc8c63b2f087237e8b7d05abeaa4956da02f34bc239973d3b39f5539764654a2d7b54249c6fed2
+MISC ChangeLog-2015 5742 SHA256 ce1b7f89be78bee183963d45c58d8232ea3f3f386dc2954b440b98ab58b4bf2a SHA512 13cace9156dfb4eff1c85bc31575915c566a654e9cfc3445f1119cc1d59ee632af0cb6f1907ae871aec0c38fde7bad46cae2ea20d1e653db52b26b3c874ff9b8 WHIRLPOOL 0af832d015fd058352223005b9bba25c78c52170f653c682fe4bb651122af1002ea935c4f7e0e56a48eb0c55f68b0efdb67ab2614e56179c4d83bb2d8ca05f4b
+MISC metadata.xml 353 SHA256 743fa902c09282d58a4d42053ecf87c112dc926824820933de7c5bf70152f967 SHA512 d203593d1819671dc81ede02a2c7fdfc81f69b9d66a6587fd096ea89ca3274adba144f06244792f2044f8c8bfc788fbebbc6eca20a7cd9b5da18f3c1fb392729 WHIRLPOOL 84fe64b56da61b1c9452061c2ef42b3ea94200a48a56afa2a26e39987c831bebbe68194bd62235b3f544df7342a5331d597505b00bd3f6b6a2a460e91c0ac6d4
diff --git a/dev-util/gource/gource-0.44.ebuild b/dev-util/gource/gource-0.44.ebuild
new file mode 100644
index 000000000000..550da48c6acc
--- /dev/null
+++ b/dev-util/gource/gource-0.44.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit flag-o-matic
+
+DESCRIPTION="A software version control visualization tool"
+HOMEPAGE="http://gource.io/"
+SRC_URI="https://github.com/acaudwell/Gource/releases/download/${P}/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+COMMON_DEPEND="
+ >=dev-libs/boost-1.46:=[threads(+)]
+ >=media-libs/glew-1.5:0=
+ >=media-libs/libpng-1.2:0=
+ media-libs/libsdl2[video,opengl,X]
+ media-libs/sdl2-image[jpeg,png]
+ dev-libs/libpcre:3
+ dev-libs/tinyxml
+ media-libs/freetype:2
+ media-libs/mesa
+ virtual/glu:0
+"
+RDEPEND="${COMMON_DEPEND}
+ media-fonts/freefont
+"
+DEPEND="${COMMON_DEPEND}
+ virtual/pkgconfig
+ >=media-libs/glm-0.9.3
+"
+
+DOCS=( README ChangeLog THANKS )
+
+src_configure() {
+ # fix bug #386525
+ # this enables gource to be compiled against dev-libs/tinyxml[stl]
+ if has_version dev-libs/tinyxml[stl]; then
+ append-cppflags -DTIXML_USE_STL;
+ fi
+
+ econf \
+ --enable-ttf-font-dir=/usr/share/fonts/freefont/ \
+ --with-tinyxml
+}
diff --git a/dev-util/gource/gource-0.46.ebuild b/dev-util/gource/gource-0.46.ebuild
new file mode 100644
index 000000000000..a5617ffb831d
--- /dev/null
+++ b/dev-util/gource/gource-0.46.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit flag-o-matic
+
+DESCRIPTION="A software version control visualization tool"
+HOMEPAGE="http://gource.io/"
+SRC_URI="https://github.com/acaudwell/Gource/releases/download/${P}/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+COMMON_DEPEND="
+ >=dev-libs/boost-1.46:=[threads(+)]
+ >=media-libs/glew-1.5:0=
+ >=media-libs/libpng-1.2:0=
+ media-libs/libsdl2[video,opengl,X]
+ media-libs/sdl2-image[jpeg,png]
+ dev-libs/libpcre:3
+ dev-libs/tinyxml
+ media-libs/freetype:2
+ media-libs/mesa
+ virtual/glu:0
+"
+RDEPEND="${COMMON_DEPEND}
+ media-fonts/freefont
+"
+DEPEND="${COMMON_DEPEND}
+ virtual/pkgconfig
+ >=media-libs/glm-0.9.3
+"
+
+DOCS=( README ChangeLog THANKS )
+
+src_configure() {
+ # fix bug #386525
+ # this enables gource to be compiled against dev-libs/tinyxml[stl]
+ if has_version dev-libs/tinyxml[stl]; then
+ append-cppflags -DTIXML_USE_STL;
+ fi
+
+ econf \
+ --enable-ttf-font-dir=/usr/share/fonts/freefont/ \
+ --with-tinyxml
+}
diff --git a/dev-util/gource/gource-0.47.ebuild b/dev-util/gource/gource-0.47.ebuild
new file mode 100644
index 000000000000..a5617ffb831d
--- /dev/null
+++ b/dev-util/gource/gource-0.47.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit flag-o-matic
+
+DESCRIPTION="A software version control visualization tool"
+HOMEPAGE="http://gource.io/"
+SRC_URI="https://github.com/acaudwell/Gource/releases/download/${P}/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+COMMON_DEPEND="
+ >=dev-libs/boost-1.46:=[threads(+)]
+ >=media-libs/glew-1.5:0=
+ >=media-libs/libpng-1.2:0=
+ media-libs/libsdl2[video,opengl,X]
+ media-libs/sdl2-image[jpeg,png]
+ dev-libs/libpcre:3
+ dev-libs/tinyxml
+ media-libs/freetype:2
+ media-libs/mesa
+ virtual/glu:0
+"
+RDEPEND="${COMMON_DEPEND}
+ media-fonts/freefont
+"
+DEPEND="${COMMON_DEPEND}
+ virtual/pkgconfig
+ >=media-libs/glm-0.9.3
+"
+
+DOCS=( README ChangeLog THANKS )
+
+src_configure() {
+ # fix bug #386525
+ # this enables gource to be compiled against dev-libs/tinyxml[stl]
+ if has_version dev-libs/tinyxml[stl]; then
+ append-cppflags -DTIXML_USE_STL;
+ fi
+
+ econf \
+ --enable-ttf-font-dir=/usr/share/fonts/freefont/ \
+ --with-tinyxml
+}
diff --git a/dev-util/gource/metadata.xml b/dev-util/gource/metadata.xml
new file mode 100644
index 000000000000..fb193a154430
--- /dev/null
+++ b/dev-util/gource/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>kensington@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="google-code">gource</remote-id>
+ <remote-id type="github">acaudwell/Gource</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/gperf/Manifest b/dev-util/gperf/Manifest
new file mode 100644
index 000000000000..10e2a916e0f6
--- /dev/null
+++ b/dev-util/gperf/Manifest
@@ -0,0 +1,7 @@
+DIST gperf-3.0.4.tar.gz 983500 SHA256 767112a204407e62dbc3106647cf839ed544f3cf5d0f0523aaa2508623aad63e SHA512 24a65ac93c9d640670b015a76378eb7e0f167bec685d03f7dc68005d5a6d693d98b2189f7a0ab5bb9e5dc700de7d417c215230f9dbe062ba119240a8da535dad WHIRLPOOL 1d5da177f69c1628d08ca146be7637517c0884dd6cd7457e7625ddcf7207cf7697da53d1c62f3a9f8c8dccecc7613d7fdcccaac0e0d2490bafbd42018ad7407a
+DIST gperf-3.1.tar.gz 1215925 SHA256 588546b945bba4b70b6a3a616e80b4ab466e3f33024a352fc2198112cdbb3ae2 SHA512 855ebce5ff36753238a44f14c95be7afdc3990b085960345ca2caf1a2db884f7db74d406ce9eec2f4a52abb8a063d4ed000a36b317c9a353ef4e25e2cca9a3f4 WHIRLPOOL f03b6800c7efe503651bc415d3a4ec391fcb201fa68f9807bccb6a9347ca1418ef4455056918d49f981104794297f1c588ee1e9b41717d4e3e7bbbae322e4c16
+EBUILD gperf-3.0.4.ebuild 755 SHA256 befb24aa48d3d25f6f7e5d8e49177be0de58f3549d1192262847fcce4ac99f16 SHA512 a3780b8647c196f856564753935978d8a80fa0849dbf804fd8822c83b64087376ab80376ecfd22102898fb7339974e4e4ce4090b91e8c7b8055d4a3159978950 WHIRLPOOL 9752dc3c0c4917c18570d51b8caf82c260379528eca69f2ab606bc0cd1a1c7970ef3bac1bef43677a4c652603a99f0e5d927cb7263ba3bc584eed7217dda4d5e
+EBUILD gperf-3.1.ebuild 745 SHA256 77614c3165fdfb7262d2da6d87070ac7647d49acf294e1b31908a34949addd05 SHA512 e81b061d160669cde446db7b7298edf0ec92c5bb23fd46cce55d2ecace9ad880a18801eaf461715d75312d9bfe1b5d2891ea3cae806889684f906d035aac26c5 WHIRLPOOL edf5842fb2e0cb3f2985e04226dde850994c9651daf7f63366fdadcbb9ddefd833123aa6640dae5b2d3683fdb209796034a9b410fcd0e5919a83a8241fe7fe8f
+MISC ChangeLog 2322 SHA256 dd2ac221d1f33ff25b3b7e4d6a0fab304228e35a91a530257809ff8e407c61ec SHA512 7ab2d22d3566860bd9e1c626d9590eef9c2be42e4e85a0a5fdd150105ba341dd74d87e9e3d2e99f4d5a6162921c3a1480e5e7a4777d9b3d73cf259d10ec5eee7 WHIRLPOOL 70a6d1358fa97e7a898b5f1d68531ffd73d11abde06392964b82e0efa6c6bd5c72b968ed2c405c64971e1d952d8a2e4b93669d6d6770bfa04dd90475a90a7bbc
+MISC ChangeLog-2015 6189 SHA256 4116a50396e6cad9ce3b144bcb5cb327c0be6764943c148461b127887dd108bb SHA512 d6c776100b445335fae0c61ea5c977a70b5201522710d4d4deb36f98cf22e3778291bddbde89ce71b629e4a587f806d9423a5c90a54b7c7a4685e9e62117a777 WHIRLPOOL 556d6606d5ab2969b41516e7037b3b1ffc60239420afbaf11342a5a026af9f146f11b2aed0d7e7b07874825954c85c42098cca11c4dab1911d2f005a2ede526f
+MISC metadata.xml 219 SHA256 57c0d9bb8aa83052f840c1972404f66a0274cd10f1c64635f3a1794ce33f2bbd SHA512 a1cca99a7d8d8ea9893e7147264184a1605ddbd61ba07971df5a2bd54d6d74ecec39145faa2b303132a31db8fa61484b9224a2748bff4da638b63f930bd394df WHIRLPOOL 1b4a0ea1036dc1218b5d99871592316b136e4f8a1e53398eed2567d911e77fbdd671cccda790acfcdaf53b61fe4a1a650b12597f3ffb30f5f2d227cea73b4997
diff --git a/dev-util/gperf/gperf-3.0.4.ebuild b/dev-util/gperf/gperf-3.0.4.ebuild
new file mode 100644
index 000000000000..f10a26e67e5e
--- /dev/null
+++ b/dev-util/gperf/gperf-3.0.4.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+
+inherit toolchain-funcs
+
+DESCRIPTION="A perfect hash function generator"
+HOMEPAGE="https://www.gnu.org/software/gperf/"
+SRC_URI="mirror://gnu/gperf/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE=""
+
+src_prepare() {
+ sed -i \
+ -e "/^AR /s:=.*:= $(tc-getAR):" \
+ -e "/^CPPFLAGS /s:=:+=:" \
+ */Makefile.in || die #444078
+}
+
+src_configure() {
+ econf --htmldir='$(datarootdir)/doc/'"${PF}/html"
+}
diff --git a/dev-util/gperf/gperf-3.1.ebuild b/dev-util/gperf/gperf-3.1.ebuild
new file mode 100644
index 000000000000..3553aebc5a5d
--- /dev/null
+++ b/dev-util/gperf/gperf-3.1.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit toolchain-funcs
+
+DESCRIPTION="A perfect hash function generator"
+HOMEPAGE="https://www.gnu.org/software/gperf/"
+SRC_URI="mirror://gnu/gperf/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE=""
+
+src_prepare() {
+ sed -i \
+ -e "/^CPPFLAGS /s:=:+=:" \
+ */Makefile.in || die #444078
+
+ eapply_user
+}
+
+src_configure() {
+ econf --htmldir='$(datarootdir)/doc/'"${PF}/html"
+}
diff --git a/dev-util/gperf/metadata.xml b/dev-util/gperf/metadata.xml
new file mode 100644
index 000000000000..971fcb152d3f
--- /dev/null
+++ b/dev-util/gperf/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>blueness@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-util/gprof2dot/Manifest b/dev-util/gprof2dot/Manifest
new file mode 100644
index 000000000000..f77f0edfe7c1
--- /dev/null
+++ b/dev-util/gprof2dot/Manifest
@@ -0,0 +1,10 @@
+AUX gprof2dot-0_p20130517-py3-xrange.patch 431 SHA256 d200854f170b82ebbc740a140e3b30a9aeeb0fa1c2eb3f7973b920ce6abe152e SHA512 d855f0c0736f984360c48dc5a26e50502ae06e8b3450624e3e67efbf6659e67891cc78e4419aeaad8a85b2a94c09090f2b6cd04048913b1c971be8d874c50bfe WHIRLPOOL 9292577720571812fb056cdcbca40971cad4f328526951e534a853e6db51b6ce47c5366aabb05331696b3351d220832a062d1b1ca8a38fe297b565ccb74bf8ce
+DIST gprof2dot-0_p20130517.tar.xz 1080464 SHA256 d491a8048a7ebc169557393ee517ede3c3958696e5257fbe3698bfbab6218691 SHA512 1907cb889d1776723ca944d588fa4185afdeee11cc85ec40c03832568d91612bab708160c69036fc45fef05bca62c5bc8f6ef19cbb45c6bfd1952dda94c54a4b WHIRLPOOL 1f04729faf6fa47921c3b953d4a38db598d9905a35d198ff7680e778f214e5ec54026840de7a8bcfaf351fdceadd3d0ba3865dbbe95cbc28704b6cab9670b2d7
+DIST gprof2dot-2016.10.13.tar.gz 22264 SHA256 48c1e168c28b8a8eb23bf30fda78fe2ef218269a41505341ec27c27083e47cf4 SHA512 0568f1afb4e5c9da9e6c3c58d9a3613c90110c338c573e2c088a99f1db4d076a287d1209a132b86334a01404701d6ca0d9b0553e7ce850278956ea79acc2c388 WHIRLPOOL d0bf7fb9a9757da46d9b758ba6f1c5f85356d0c6428a019de3665685feec960ebdca842372e736d9519e18ec662926fee6632c8b881a347c11517b66d5650e72
+DIST gprof2dot-2017.9.19.tar.gz 23558 SHA256 cebc7aa2782fd813ead415ea1fae3409524343485eadc7fb60ef5bd1e810309e SHA512 652b38c6cbee47795d866a539e69ff4b2e67e221c8c082c6ecf480a15c24fe6d77e80b7daa5d24e76d27a4ff90836f80e716cb4d51d48d41aea5f661e3ac3598 WHIRLPOOL 962feea0b5a070419032f8ef66d1b65a5a6fcd9e3e9e642a7e8d0a2953d40c4e1821814bbe701160e1d4f74528813150fe9efa32bae19379921fd71827293370
+EBUILD gprof2dot-2013.05.17.ebuild 1118 SHA256 78ab8290027f9ed9315d78145aed66654007750934bf404787a555663ac81cf3 SHA512 6ed2fa61539c3a8c94f343e469655c96e451018143ec359f8de595b6aa34caa874bd4c5c4ad0c2c5284cb2d6455be8c15193a52caf2b4d4534d0fd80a2197e2e WHIRLPOOL 31f434603860205124dfa561c02bc693b1a37d11d946554b915ff72707c4ac22f229115aa9cb42223f81244cc94d9c242aadf8f00d4ad04eb732ecc365c9aee7
+EBUILD gprof2dot-2016.10.13.ebuild 503 SHA256 d4778c2290da91fa02ae9fc5a435f7d69205048175f418fe89ba8a5afb95d612 SHA512 758aef8a94cf85b61ac47528b39fd6de3efee4d27aa433531355dc7a52386957e48dbc34fb287afb99dbc2fbcf443f2cd1e764b065095f5e2ec3b61ea49b4d02 WHIRLPOOL f7a1e8ac15b4814aaf1e61d8db6f232e087d80999a84c1406f81c9d238bfcd518f1d87d2833766b00a06039c3446d6619d6e2f79d6989fe751894f01fd885bea
+EBUILD gprof2dot-2017.09.19.ebuild 566 SHA256 6cfc0adb93872e09dca65ce10852ad1b89a12f3073975f41b30f8c7963be17d2 SHA512 3ae1aa53ca9f696d8b7640b87b212adb54a94c650e8a76f35fe3839dfcc2e2525ec3e4c4a2dcf02300d5e5a35f81f218d822461a960d73655c5c9064e2247453 WHIRLPOOL 65f233ccb6958bd4e9adf14945612bb9485605a8c634f30156f89a8663c0212ec68431270af59fbe3fbeebeff7227475f8abbda66b1c21ac519751e495a89643
+MISC ChangeLog 3511 SHA256 f2465fe1265e6bdad10c64b1f4d8c1233a5ad24b9fb3fa0f3db9cc796f9436fa SHA512 a8329287e0d11a1bdaf88baed76a0555296bb2ce66df104617adda85e3ee8cf7d8d35dc5a5c40ec4b34054f2c39ecc219d6b3bbe2de918cb9638ce6a730961af WHIRLPOOL e45e8c6b8bb771c1f5b1fcb96077e27f8257c07a0a346e6b6ee31393f004fbb26ecf7f4ff042aa8a7bab54325153af46b2b4facc3b157dc264557c92e4ea35e3
+MISC ChangeLog-2015 1930 SHA256 8b0a0a061cba7f8dc22444fa5a95dc03027a6854039b7d48b1da88b97a1cb432 SHA512 0e4a3a52cea01b744ce81230b8502e37c8adb2bb63644d1de78dbf36e3986e0efd18848d378993adb6dd681d2350f452d15d209bd4e8bc37821e141f1d94036f WHIRLPOOL b12c15729a3f56cf92e598246aed879d08db1a578cb2afcff4d37a49dacc02284255c97571a0184063eaaef51b9126fef6f3a5a9e7b2feb15bb98f3f55db93fe
+MISC metadata.xml 333 SHA256 e014c69c9cba17c763a60ccae8fe77be7dec45ea9285c6654c77fcaad0dc59e2 SHA512 503d8f740b27ef37b79be92c4652c60f49087634451e0d418da990c7b1f9c911aca461f2578e66e3e09f7db0588e57e304949a04b279fe782ead8222e1324a28 WHIRLPOOL 39f6786b9597599b5f9d85bbbed563ce2ee4d9718e5c8e344f28c751c1132c5c018b5a5b679bcda12a7f53d1a457eed4ab7bc495c217bb21d75e3ddd53387d4c
diff --git a/dev-util/gprof2dot/files/gprof2dot-0_p20130517-py3-xrange.patch b/dev-util/gprof2dot/files/gprof2dot-0_p20130517-py3-xrange.patch
new file mode 100644
index 000000000000..228b1d8230d7
--- /dev/null
+++ b/dev-util/gprof2dot/files/gprof2dot-0_p20130517-py3-xrange.patch
@@ -0,0 +1,10 @@
+--- gprof2dot.py 2013-05-29 19:18:46.217823810 +0300
++++ gprof2dot.py 2013-06-16 12:12:28.095478734 +0300
+@@ -39,6 +39,7 @@
+ def compat_keys(x): return list(x.keys()) # keys() is a generator in Python 3
+ basestring = str # No class basestring in Python 3
+ unichr = chr # No unichr in Python 3
++ xrange = range # No xrange in Python 3
+ else:
+ PYTHON_3 = False
+ def compat_iteritems(x): return x.iteritems()
diff --git a/dev-util/gprof2dot/gprof2dot-2013.05.17.ebuild b/dev-util/gprof2dot/gprof2dot-2013.05.17.ebuild
new file mode 100644
index 000000000000..8edb2a36308e
--- /dev/null
+++ b/dev-util/gprof2dot/gprof2dot-2013.05.17.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+PYTHON_REQ_USE='xml'
+
+inherit eutils python-r1
+
+MY_PV=0_p${PV//./}
+MY_P=${PN}-${MY_PV}
+DESCRIPTION="Converts profiling output to dot graphs"
+HOMEPAGE="https://github.com/jrfonseca/gprof2dot"
+SRC_URI="http://www.hartwork.org/public/${MY_P}.tar.xz"
+
+LICENSE="LGPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}"/${MY_P}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${MY_P}-py3-xrange.patch
+}
+
+_make_call_script() {
+ cat <<-EOF >"${ED}/$1"
+ #! /usr/bin/env python
+ from gprof2dot import Main
+ Main().main()
+ EOF
+
+ fperms a+x "$1" || die
+}
+
+src_install() {
+ abi_specific_install() {
+ local sitedir="$(python_get_sitedir)"
+ insinto ${sitedir#"${EPREFIX}"}
+ doins ${PN}.py || die
+ python_optimize || die
+ }
+ python_foreach_impl abi_specific_install
+
+ dodir /usr/bin || die
+ _make_call_script /usr/bin/${PN} || die
+ python_replicate_script "${ED}"/usr/bin/${PN} || die
+}
diff --git a/dev-util/gprof2dot/gprof2dot-2016.10.13.ebuild b/dev-util/gprof2dot/gprof2dot-2016.10.13.ebuild
new file mode 100644
index 000000000000..c58ed8ea47fa
--- /dev/null
+++ b/dev-util/gprof2dot/gprof2dot-2016.10.13.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+PYTHON_REQ_USE='xml'
+
+inherit distutils-r1
+
+DESCRIPTION="Converts profiling output to dot graphs"
+HOMEPAGE="https://github.com/jrfonseca/gprof2dot"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}"
+DEPEND="${RDEPEND}"
diff --git a/dev-util/gprof2dot/gprof2dot-2017.09.19.ebuild b/dev-util/gprof2dot/gprof2dot-2017.09.19.ebuild
new file mode 100644
index 000000000000..b113da87a395
--- /dev/null
+++ b/dev-util/gprof2dot/gprof2dot-2017.09.19.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+PYTHON_REQ_USE='xml'
+
+inherit distutils-r1
+
+MY_PV=${PV//.0/.}
+MY_P=${PN}-${MY_PV}
+DESCRIPTION="Converts profiling output to dot graphs"
+HOMEPAGE="https://github.com/jrfonseca/gprof2dot"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz"
+
+LICENSE="LGPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}"
+DEPEND="${RDEPEND}"
+
+S=${WORKDIR}/${MY_P}
diff --git a/dev-util/gprof2dot/metadata.xml b/dev-util/gprof2dot/metadata.xml
new file mode 100644
index 000000000000..8edef79c17e5
--- /dev/null
+++ b/dev-util/gprof2dot/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>sping@gentoo.org</email>
+ <name>Sebastian Pipping</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">jrfonseca/gprof2dot</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/gquilt/Manifest b/dev-util/gquilt/Manifest
new file mode 100644
index 000000000000..7a9751501ed1
--- /dev/null
+++ b/dev-util/gquilt/Manifest
@@ -0,0 +1,6 @@
+AUX gquilt-0.25-desktopfile.patch 402 SHA256 71708d7e518e3be37f7a7a3a506063701f93820cac0bb64b136bc3ae31e93c98 SHA512 194fbe15da3a7c89c9fc534d7fc57e8248f004ebbcb9a39298a53561e6bbb18956f9a287ee1f56074ad6d1846eccd4ff06be06b06c388c385e776b754577d6bc WHIRLPOOL 9341099a3f73209515daf34b25efeb40ae672b449fa58c0dec1a9cec355dd9298025634d4472f24cd795a7060cef9237a968e3d43b2979db051f8b141a6ddb0a
+DIST gquilt-0.25.tar.gz 124957 SHA256 6cc8380e1475166ccd1ea339f691af85b0ca1dd64222046440734f4f4b97d846 SHA512 fd1b98e87b3bc8438620a7105664c487a5fcfed50ade3e144802fc080dfe3a7d94c76f7ff7274d5a98003cffd8305cf9f193b2f799f4846d59e60233f1782f0d WHIRLPOOL d57c63fc877b9d3980589daca53fcd88ccebd108bea9e12ebb873a25b7d5981d89de28cdf24819844704817329b39400cc3536c6f765c4d982b5d0833435e9a6
+EBUILD gquilt-0.25-r1.ebuild 789 SHA256 2c0efc739c465b3318eda4d1d41fd3a7326cd3ed897c6d6b9e7e45a70466c759 SHA512 fd7d690284bb809ffaf9311543e3eb341701bda0e6341660c99052a139869d1de5df92cb8c957cbfb122dc9c846ad109f0d954a4368eae040b4e6870e2895f66 WHIRLPOOL 8ebb4274a1691d8c2c6e31143413211f18d7e4abcc45349e289cb7dc3110e4ccbba83be2ea5b1eaab156d1ce49c1860d3f605ddf01a59efb790b10c30c6a55c3
+MISC ChangeLog 2608 SHA256 8e323c81805d8b2b30b2e9e0b11ee453bc6b33f0f4ce3116b91aa7a1ba80a3f1 SHA512 6e4f40af59907b7811cb7b8c061b6847094bbbf8a9cd2c977926581f11efeb02cea415019dee436da8d44cf03b148349f20b0e97129f96b21be617d2904f9f20 WHIRLPOOL 5606efed5cba4b32871b87f0367e54fa6703dbd2b42180d424d8c58eb5aaf16738bac60481f9da8f7281bf8aeaefa98738a0e6e827d240712ac30e2add5865e2
+MISC ChangeLog-2015 3887 SHA256 0bf46f9e752a6a92a0d7af9933949e36171acf121e1b86dae3b8420e7df16476 SHA512 106f6b4fc83a992ab22e90c8071a7a2f0b21e24422d0ea4243403519f44537211313b62e181e85269cc7cc40a4c2ca0574dca27e8989374a5a4d6bcf215beed7 WHIRLPOOL ea999f1680f458a9724c6b8ca049490efde6252f0101f4693fb314043bfc645dd14667d5f5857ddc939e238beba10159186255bcfeae3ff2eaa6b702684f5432
+MISC metadata.xml 243 SHA256 eeed8526d08ea3d0b30f926b141df6429db115f1ebcd3591752a5ae69b6cca04 SHA512 409f547397c4745ced5764a70f2d57ee1b71ce617116f5adbfa07556d97019a63e1a2ff309544cc52991a4859bd70f63c4920ecb917853f7c95c981281df25e1 WHIRLPOOL e539c9beab5e13bb13f91772cbed652df2d2bd3641027d88caa6b2a3f4488db08f01018968d563d2fbb0b44399fa878ae7b3f9a9e61c43b63c625dbd3dd731fb
diff --git a/dev-util/gquilt/files/gquilt-0.25-desktopfile.patch b/dev-util/gquilt/files/gquilt-0.25-desktopfile.patch
new file mode 100644
index 000000000000..e5134a6caa91
--- /dev/null
+++ b/dev-util/gquilt/files/gquilt-0.25-desktopfile.patch
@@ -0,0 +1,17 @@
+From: Julian Ospald <hasufell@gentoo.org>
+Date: Sun Dec 2 13:22:44 UTC 2012
+Subject: match fd.o spec
+
+--- gquilt.desktop
++++ gquilt.desktop
+@@ -1,9 +1,8 @@
+ [Desktop Entry]
+-Encoding=UTF-8
+ Name=gquilt Patch Manager
+ GenericName=Quilt Patch Manager
+ Exec=gquilt
+ Terminal=false
+ Type=Application
+ Icon=gquilt
+-Categories=GNOME;Application;Development;X-Fedora;
++Categories=GNOME;Development;X-Fedora;
diff --git a/dev-util/gquilt/gquilt-0.25-r1.ebuild b/dev-util/gquilt/gquilt-0.25-r1.ebuild
new file mode 100644
index 000000000000..ce0e5f51b9c6
--- /dev/null
+++ b/dev-util/gquilt/gquilt-0.25-r1.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+DISTUTILS_SINGLE_IMPL=1
+
+inherit distutils-r1
+
+DESCRIPTION="A Python/GTK wrapper for quilt"
+HOMEPAGE="http://gquilt.sourceforge.net/ https://sourceforge.net/projects/gquilt/"
+SRC_URI="mirror://sourceforge/gquilt/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+DEPEND="dev-python/pygtk:2[${PYTHON_USEDEP}]
+ || ( dev-util/quilt dev-vcs/mercurial )"
+RDEPEND="${DEPEND}"
+
+pkg_setup() {
+ python-single-r1_pkg_setup
+}
+
+PATCHES=( "${FILESDIR}"/${P}-desktopfile.patch )
+
+python_install_all() {
+ distutils-r1_python_install_all
+ domenu ${PN}.desktop
+}
+
+python_install() {
+ distutils-r1_python_install
+ python_doscript ${PN}
+}
diff --git a/dev-util/gquilt/metadata.xml b/dev-util/gquilt/metadata.xml
new file mode 100644
index 000000000000..621b99e9b1ec
--- /dev/null
+++ b/dev-util/gquilt/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-needed -->
+ <upstream>
+ <remote-id type="sourceforge">gquilt</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/gtk-builder-convert/Manifest b/dev-util/gtk-builder-convert/Manifest
new file mode 100644
index 000000000000..caa14255e7c3
--- /dev/null
+++ b/dev-util/gtk-builder-convert/Manifest
@@ -0,0 +1,5 @@
+DIST gtk+-2.24.31.tar.xz 12805344 SHA256 68c1922732c7efc08df4656a5366dcc3afdc8791513400dac276009b40954658 SHA512 75b846661308d94b5236e7e1c367deabf57753792ca87e92f9769822dd5ec90e00cd8d5574adcc12162e3702e1ae6dc152278a1d218f9bd9e4d1c8dc1dd520c1 WHIRLPOOL 6f59d444b28910b0f4cd7d0d0bf04f8e442acd945205679c19e5adf7ca3f8e7406d4095e9ff9ca597882eb937a7551e19af63b6597e7b57c0babe5b061f9110e
+EBUILD gtk-builder-convert-2.24.31-r1.ebuild 1154 SHA256 10a42c10043177d17fb7c9beef46f994a3d0faaea68ba189e4ea2ead04a3843a SHA512 1b2d8ee90718a47e79b1063efe19e2ba35a4595a3f253a7d6061379b6fcecfdbbd1dd98cca2d08b5eddb1a52abc7a6002edb19398ce9e925aeb41775f828aa76 WHIRLPOOL 05c0863a5e6c76fb8019e692267c8bc88dbed497e69d7bb59f808006c2d37ba09968207ceb36b45265beded5b4cca8e2fb268e7e1257cb3a58ada20667049828
+MISC ChangeLog 6137 SHA256 6f530cb277805ed42ecf68d6f366dc30989e859b9bb77e5d772bbe4962a5cd9a SHA512 45ffcd03ce747e49844f331e1cd7f8b8ba9f284161696a32253424ec7df5b69b8880d1a83a8f540fe6388bb8cc93eb1264e7c3ba63b6375e0c9d6df2ec8165f1 WHIRLPOOL f29a842d8aa5f7c02a24947b539a1932e443b5451ec13799a28b98dd4c66673722f8a293c7237d4a74664202f0b8c25687ebefc7b1c4a8e2340acca7f6ba8da0
+MISC ChangeLog-2015 13322 SHA256 d585e32a3df1291b7e39239e681735d272929c30d138c38ea623aa7790b5148d SHA512 f10dd4f27b653d1176bbd5de9ef9b27a53d7504edd40fae601ccd17ecff7ac474bf36da035eef0adb99669fddbfeb65927dc97a2b3cf21b75c58d5c91299a936 WHIRLPOOL c8449d64b2682ea8f14ded9ed924b0481800c613c08a1513d18eed724a7bbabd43beec27d85bb4d57e12630762cc937bbbc164effe37b7c1bb88b0dd28c60936
+MISC metadata.xml 249 SHA256 4505b0bfeadff287958620b7dc7b7209699065a8f17139a237a5dd409a726a97 SHA512 c40662134899a5c9f0369a1017806f35adf3280a0b3c91726f7a8ca6012a073a8b471583f5bfb6fe95faac1dcf607e8e2e43f8c91d48ec46f4a8824e2f551506 WHIRLPOOL 333a938ee1d2124595596c572697bf5ebad523a92ba12005cfb12e6bb6270881a94a911f0cc9c1cf2bb571559e8271e07dfd307dabe50058236dbe7103562b92
diff --git a/dev-util/gtk-builder-convert/gtk-builder-convert-2.24.31-r1.ebuild b/dev-util/gtk-builder-convert/gtk-builder-convert-2.24.31-r1.ebuild
new file mode 100644
index 000000000000..9fce626aeb6e
--- /dev/null
+++ b/dev-util/gtk-builder-convert/gtk-builder-convert-2.24.31-r1.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+GNOME_ORG_MODULE="gtk+"
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="xml"
+
+inherit gnome.org python-single-r1
+
+DESCRIPTION="Converts Glade files to GtkBuilder XML format"
+HOMEPAGE="https://www.gtk.org/"
+
+LICENSE="LGPL-2+"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 ~sh sparc x86 ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+
+IUSE=""
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+COMMON_DEPEND="${PYTHON_DEPS}"
+
+# gtk-builder-convert was part of gtk+ until 2.24.10-r1
+# man page transitioned in 2.24.31-r1
+RDEPEND="${COMMON_DEPEND}
+ !<x11-libs/gtk+-2.24.31-r1:2
+"
+
+DEPEND="${COMMON_DEPEND}
+ app-text/docbook-xml-dtd:4.3
+ app-text/docbook-xsl-stylesheets
+ dev-libs/libxslt
+"
+
+src_configure() { :; }
+
+src_compile() {
+ xsltproc -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl docs/reference/gtk/gtk-builder-convert.xml
+}
+
+src_install() {
+ doman gtk-builder-convert.1
+ python_doscript gtk/gtk-builder-convert
+}
diff --git a/dev-util/gtk-builder-convert/metadata.xml b/dev-util/gtk-builder-convert/metadata.xml
new file mode 100644
index 000000000000..39980802b1da
--- /dev/null
+++ b/dev-util/gtk-builder-convert/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="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+</maintainer>
+</pkgmetadata>
diff --git a/dev-util/gtk-doc-am/Manifest b/dev-util/gtk-doc-am/Manifest
new file mode 100644
index 000000000000..11934065a93d
--- /dev/null
+++ b/dev-util/gtk-doc-am/Manifest
@@ -0,0 +1,5 @@
+DIST gtk-doc-1.25.tar.xz 673184 SHA256 1ea46ed400e6501f975acaafea31479cea8f32f911dca4dff036f59e6464fd42 SHA512 7ac8c73ab9f9ecb6a142bd2232450a6431c3e4fe2372ff40460145b5d0bcffa1953c8cf49436539db86c3a32461cbd4180c714cb19cdd68bfd557816b789339c WHIRLPOOL 6e1acc14d6d034a8c42af36fef866da9805043b15e49fe1bf3dbe484bf8970b1f3f005c28ec390ab6b6914ae8c22864b59c864bc3d50aada09e9dac5ee850a70
+EBUILD gtk-doc-am-1.25-r1.ebuild 1268 SHA256 cf52aa92367a33398f08c7720d9e3399c64034149abf8e22f1ddabfe642b7254 SHA512 96e5a89b9c42856d37d7cfeb438e6c3ab57ecb90177e794401d0baf6cfebbd7066156ce04536c56301cd90a3ecdb45269053aa9e7b47557f0c45d604bf504cd0 WHIRLPOOL d0308cdda556651433925a48dcc1e714e8faba85a58639bc1fd3daf53ffa4295c2eaa0bf36874126ca97899ca6f44f685261dd89e27b34c1adcf74d7c140b435
+MISC ChangeLog 4971 SHA256 55973830d30a409fceafac9cf455a9bec423c953090f2b1f875624a283c55d5d SHA512 204a2f736c66409a403b68cd1886bae07e70ae1277e26a1f34a302cd1f219ce0f908b2fced75faf5badd9e6a1956ee162ed9d27f7db9cc930bec6e1a61282e0d WHIRLPOOL a7defe9991186d3e9452b6ecf280b26b418d648851940d017f526df0c705de2e953b86943893f9912352edbe2c05f736b0fa58b6d123c1c3786001d9f1cf0107
+MISC ChangeLog-2015 15212 SHA256 a017d4b43b5fcf8cf116caa7570c475e28a9f2ebdc378fd9540bf4dca1e0e227 SHA512 51d620c9a70c4d528173d37311119696ced889f6e3cb4d06612bf90465816319e4c9e7d2f1a22176414d30389c577c7c1249164d5300d5bb63d62b7e0a034ee0 WHIRLPOOL 519407a23747075c9c8ce93c91e9d3b159f7e6fb22996f0f2e049b30b968ba235aac4c5dc01a81e32e8d15cc20b6f3c7353054594224490da80ea7d03e8796d5
+MISC metadata.xml 249 SHA256 4505b0bfeadff287958620b7dc7b7209699065a8f17139a237a5dd409a726a97 SHA512 c40662134899a5c9f0369a1017806f35adf3280a0b3c91726f7a8ca6012a073a8b471583f5bfb6fe95faac1dcf607e8e2e43f8c91d48ec46f4a8824e2f551506 WHIRLPOOL 333a938ee1d2124595596c572697bf5ebad523a92ba12005cfb12e6bb6270881a94a911f0cc9c1cf2bb571559e8271e07dfd307dabe50058236dbe7103562b92
diff --git a/dev-util/gtk-doc-am/gtk-doc-am-1.25-r1.ebuild b/dev-util/gtk-doc-am/gtk-doc-am-1.25-r1.ebuild
new file mode 100644
index 000000000000..a787a0a7ee82
--- /dev/null
+++ b/dev-util/gtk-doc-am/gtk-doc-am-1.25-r1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+GNOME_ORG_MODULE="gtk-doc"
+
+inherit gnome.org
+
+DESCRIPTION="Automake files from gtk-doc"
+HOMEPAGE="https://www.gtk.org/gtk-doc/"
+
+LICENSE="GPL-2 FDL-1.1"
+SLOT="0"
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+
+RDEPEND=">=dev-lang/perl-5.18"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ !<dev-util/gtk-doc-${GNOME_ORG_PVP}
+"
+# This ebuild doesn't even compile anything, causing tests to fail when updating (bug #316071)
+RESTRICT="test"
+
+src_configure() {
+ # Duplicate autoconf checks so we don't have to call configure
+ local PERL=$(type -P perl)
+
+ test -n "${PERL}" || die "Perl not found!"
+ "${PERL}" -e "require v5.18.0" || die "perl >= 5.18.0 is required for gtk-doc"
+
+ # Replicate AC_SUBST
+ sed -e "s:@PERL@:${PERL}:g" -e "s:@VERSION@:${PV}:g" \
+ "${S}/gtkdoc-rebase.in" > "${S}/gtkdoc-rebase" || die "sed failed!"
+}
+
+src_compile() {
+ :
+}
+
+src_install() {
+ dobin gtkdoc-rebase
+
+ insinto /usr/share/aclocal
+ doins gtk-doc.m4
+}
diff --git a/dev-util/gtk-doc-am/metadata.xml b/dev-util/gtk-doc-am/metadata.xml
new file mode 100644
index 000000000000..39980802b1da
--- /dev/null
+++ b/dev-util/gtk-doc-am/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="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+</maintainer>
+</pkgmetadata>
diff --git a/dev-util/gtk-doc/Manifest b/dev-util/gtk-doc/Manifest
new file mode 100644
index 000000000000..cff79f5d0976
--- /dev/null
+++ b/dev-util/gtk-doc/Manifest
@@ -0,0 +1,7 @@
+AUX 61gtk-doc-gentoo.el 283 SHA256 211c75484f2a4651a1e65a00c066640c3bf782030cfff5872a7af51bafd027c8 SHA512 d9e7c8bacd97a5147dbbe9ad568323356c9c38ad982ce88c63ef5f8e3955289274393a91e07d2159c082ac2a058455a1905c251ff3676f60bad596379fb12837 WHIRLPOOL ad0c1b52f70ef49c007c5b59849fa247cee94523cf9c95f4f0a07433250322dcdd5e67f13d3f2f48810ad4fbdf2a23be236f183082c713fb0ca26eedd607d118
+AUX gtk-doc-1.8-emacs-keybindings.patch 582 SHA256 e81eb1d06c489e19567277c9a14d84122025b0184e8773db2d421ab074fc8b38 SHA512 360e97c0d2603c17dd1c1ca92739eb5ac229f3bcda6dc76267b95cac73db1008a52164ac9cba5a0e43f7b6359b5e6d3b242fde757fa1b7409051bade5f6f35a6 WHIRLPOOL dd5c595f0c1aa6b736060f334c5f3c166b3a5efd7d56c15ed4cc52021fd231ec2daeddf1f1819b927b08ead8150710c1edb06399ec1a9183e74f162e3af90b47
+DIST gtk-doc-1.25.tar.xz 673184 SHA256 1ea46ed400e6501f975acaafea31479cea8f32f911dca4dff036f59e6464fd42 SHA512 7ac8c73ab9f9ecb6a142bd2232450a6431c3e4fe2372ff40460145b5d0bcffa1953c8cf49436539db86c3a32461cbd4180c714cb19cdd68bfd557816b789339c WHIRLPOOL 6e1acc14d6d034a8c42af36fef866da9805043b15e49fe1bf3dbe484bf8970b1f3f005c28ec390ab6b6914ae8c22864b59c864bc3d50aada09e9dac5ee850a70
+EBUILD gtk-doc-1.25-r1.ebuild 2591 SHA256 85b9e02c5068a596cbfb3d8ee712701e6a23a4c02fc2bfe3493179bb5353be88 SHA512 0fb36786bccc6d31b14cd47fbcd2c5f17728cb993b98d1e1406fd75fb0a37041aad8f385e9b27f0960903d033fdb240ebbb6eb744f9df216f1c04bb4365d2b06 WHIRLPOOL 4fe915dc4e7babc2fecd1991754b7b715d04104cfcf0e3a8b26cedddcb0ea0dd3790fe5d7933b2817361fc3588f6f03223978b50c4506e9a24bc75fa7d1e1802
+MISC ChangeLog 4938 SHA256 8cc9916e1764cc908cdec6f1ec71cf9b738ac031252b65e27da740d77aeb9340 SHA512 4963944e27d1a1772684f6f1d12f0a70762451cea6833a6218bbcc452339fec3fd9e6a4c2157c04099958363fff48af1ade31718e6997b8fc5f000ee67bbb9af WHIRLPOOL 4cbad59e81b397d3175f8bf890470799ba85e681872e7f27074c5cfcb78d490218d48ccf39cb308e8b263ad116b7681fc2fcf0ed4c0ad9e561bf5c617898ff33
+MISC ChangeLog-2015 30414 SHA256 6f56079b34f97086e52c8cae697824f2999d73a18a13611ef1fb503bb878f340 SHA512 385886987e285f5e6513cc1c0e1defe413013be0e6fe128acb9c1edd6d1cfff40195987138f7d56c9ffb00bcc38c5b95d1422436aeca8b30d6fda060cb4d729d WHIRLPOOL 97cac0992ad48fd93d6efa837866dcb1f706a92a7107a5d6e89fa83a8c3200101703df03410e0c25ef3aa4aba7fc9dfdc5124445ea4cb6f7e3737cab4ed27ac3
+MISC metadata.xml 659 SHA256 ec1b198ef72d475bfa7d84ce3f82920519c5d1fe6a90739f535f9518b8deb615 SHA512 4ffcd239d0a5788ed94a204395a51d8b706663ac69139965e7d28282c473b55cd006cf3786a3cfd60386439f9ffa5d9242ed43ba05783962cbac002f8a00539b WHIRLPOOL 9a8e7814130c16bb4160419af669400aee6868e35d5228665309634d98278ec06fb1c7a47f027d930aea9a351a25e3b509b558c57bd98e5e4bce9d851de97e44
diff --git a/dev-util/gtk-doc/files/61gtk-doc-gentoo.el b/dev-util/gtk-doc/files/61gtk-doc-gentoo.el
new file mode 100644
index 000000000000..488a57c02555
--- /dev/null
+++ b/dev-util/gtk-doc/files/61gtk-doc-gentoo.el
@@ -0,0 +1,9 @@
+
+;;; gtk-doc site-lisp configuration
+
+(add-to-list 'load-path "@SITELISP@")
+
+(autoload 'gtk-doc-insert "gtk-doc"
+ "Add a documentation header to the current function." t)
+(autoload 'gtk-doc-insert-section "gtk-doc"
+ "Add a section documentation header at the current position." t)
diff --git a/dev-util/gtk-doc/files/gtk-doc-1.8-emacs-keybindings.patch b/dev-util/gtk-doc/files/gtk-doc-1.8-emacs-keybindings.patch
new file mode 100644
index 000000000000..bbc989afb2b7
--- /dev/null
+++ b/dev-util/gtk-doc/files/gtk-doc-1.8-emacs-keybindings.patch
@@ -0,0 +1,17 @@
+--- gtk-doc-1.8-orig/tools/gtk-doc.el 2007-01-03 16:04:14.000000000 +0100
++++ gtk-doc-1.8/tools/gtk-doc.el 2007-07-29 21:56:45.000000000 +0200
+@@ -262,7 +262,7 @@
+
+ ;; set global binding for this key (follows the format for
+ ;; creating a changelog entry ...)
+-(global-set-key "\C-x4h" 'gtk-doc-insert)
++;;(global-set-key "\C-x4h" 'gtk-doc-insert)
+
+
+ ;; Define another function for inserting a section header.
+@@ -280,4 +280,4 @@
+ " */\n"))
+
+ ;; Set the key binding.
+-(global-set-key "\C-x4s" 'gtk-doc-insert-section)
++;;(global-set-key "\C-x4s" 'gtk-doc-insert-section)
diff --git a/dev-util/gtk-doc/gtk-doc-1.25-r1.ebuild b/dev-util/gtk-doc/gtk-doc-1.25-r1.ebuild
new file mode 100644
index 000000000000..002cb3d2d718
--- /dev/null
+++ b/dev-util/gtk-doc/gtk-doc-1.25-r1.ebuild
@@ -0,0 +1,109 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+
+inherit eutils elisp-common gnome2 python-single-r1 readme.gentoo-r1
+
+DESCRIPTION="GTK+ Documentation Generator"
+HOMEPAGE="https://www.gtk.org/gtk-doc/"
+
+LICENSE="GPL-2 FDL-1.1"
+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 ~x86-macos ~sparc-solaris ~x64-solaris"
+
+IUSE="debug doc emacs highlight vim"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="
+ ${PYTHON_DEPS}
+ >=dev-libs/glib-2.6:2
+ >=dev-lang/perl-5.18
+ dev-libs/libxslt
+ >=dev-libs/libxml2-2.3.6:2
+ ~app-text/docbook-xml-dtd-4.3
+ app-text/docbook-xsl-stylesheets
+ ~app-text/docbook-sgml-dtd-3.0
+ >=app-text/docbook-dsssl-stylesheets-1.40
+ emacs? ( virtual/emacs )
+ highlight? (
+ vim? ( || ( app-editors/vim app-editors/gvim ) )
+ !vim? ( dev-util/source-highlight )
+ )
+"
+DEPEND="${RDEPEND}
+ ~dev-util/gtk-doc-am-${PV}
+ app-text/yelp-tools
+ virtual/pkgconfig
+"
+
+pkg_setup() {
+ DOC_CONTENTS="gtk-doc does no longer define global key bindings for Emacs.
+ You may set your own key bindings for \"gtk-doc-insert\" and
+ \"gtk-doc-insert-section\" in your ~/.emacs file."
+ SITEFILE=61${PN}-gentoo.el
+ python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ # Remove global Emacs keybindings, bug #184588
+ eapply "${FILESDIR}"/${PN}-1.8-emacs-keybindings.patch
+
+ gnome2_src_prepare
+}
+
+src_configure() {
+ local myconf
+ if use vim; then
+ myconf="${myconf} $(use_with highlight highlight vim)"
+ else
+ myconf="${myconf} $(use_with highlight highlight source-highlight)"
+ fi
+
+ gnome2_src_configure \
+ --with-xml-catalog="${EPREFIX}"/etc/xml/catalog \
+ $(use_enable debug) \
+ ${myconf}
+}
+
+src_compile() {
+ gnome2_src_compile
+ use emacs && elisp-compile tools/gtk-doc.el
+}
+
+src_install() {
+ gnome2_src_install
+
+ python_fix_shebang "${ED}"/usr/bin/gtkdoc-depscan
+
+ # Don't install those files, they are in gtk-doc-am now
+ rm "${ED}"/usr/share/aclocal/gtk-doc.m4 || die "failed to remove gtk-doc.m4"
+ rm "${ED}"/usr/bin/gtkdoc-rebase || die "failed to remove gtkdoc-rebase"
+
+ if use doc; then
+ docinto doc
+ dodoc doc/*
+ docinto examples
+ dodoc examples/*
+ fi
+
+ if use emacs; then
+ elisp-install ${PN} tools/gtk-doc.el*
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}"
+ readme.gentoo_create_doc
+ fi
+}
+
+pkg_postinst() {
+ gnome2_pkg_postinst
+ if use emacs; then
+ elisp-site-regen
+ readme.gentoo_print_elog
+ fi
+}
+
+pkg_postrm() {
+ gnome2_pkg_postrm
+ use emacs && elisp-site-regen
+}
diff --git a/dev-util/gtk-doc/metadata.xml b/dev-util/gtk-doc/metadata.xml
new file mode 100644
index 000000000000..1a3871ad27fb
--- /dev/null
+++ b/dev-util/gtk-doc/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+</maintainer>
+<use>
+ <flag name="highlight">Enable source code highlighting</flag>
+ <flag name="vim">Enable source code highlighting through
+ <pkg>app-editors/vim</pkg></flag>
+</use>
+<longdescription lang="en">
+ GTK-Doc is used to document C code.
+ It is typically used to document the public API of libraries,
+ such as the GTK+ and GNOME libraries, but it can also be used
+ to document application code.
+</longdescription>
+</pkgmetadata>
diff --git a/dev-util/gtk-update-icon-cache/Manifest b/dev-util/gtk-update-icon-cache/Manifest
new file mode 100644
index 000000000000..629b0f7e4f92
--- /dev/null
+++ b/dev-util/gtk-update-icon-cache/Manifest
@@ -0,0 +1,7 @@
+DIST gtk-update-icon-cache-3.22.19.tar.xz 367224 SHA256 1e2b2e8f73ceac4816df2108a4a38a5ec1a3fd6beab95c67ea4750619e186d82 SHA512 3ca12d38781a716c1b3f8584089e2c038aa18584c5e1b4c41098173f73f839cabdbb0e8b25b1c69a8b9b9f016b9c3c8594c4b26c2463cea278754f13afb7c795 WHIRLPOOL 55f92eb65d50292027419292b4d611b72fa5d17631f7fa79b8bcfc6649e0167891bd3b5f612899872db38ca2bfc94e1dfb6dd2038c3e204b8f3e6cafa28583ba
+DIST gtk-update-icon-cache-3.22.2.tar.xz 366364 SHA256 6ad38b0fbd84b5a262dbc8dd3102415f8e2b81d5a05a27c0b1e4b28423bc9dd0 SHA512 a9e7f6c865c0648186954bb75f8032666ef8920513f24ecf5a05388f3b739b4418d4513c7eb81fce91ba4eb7efd6d37ade91950bb40c52f50a5b57c0632be959 WHIRLPOOL 904fef0db243ad6368eeda0207b8e0ca2d3219986191b9fab799c4b7cdd5b1606fcb4241e6a16f07b3ac265163899b4afe1d528b3c60b856eaf71d2a767bd80b
+EBUILD gtk-update-icon-cache-3.22.19.ebuild 975 SHA256 862e5e2ce838b2743750e52770585857a1d98cd8f242f388d0ed4015f00c847e SHA512 355b713cff04b199108b7a438785997027f5f6cf468374906c4f69cdc04be4ad0c9a727a3631f7f81a8ae4e3874b5ae33b6fcc5d024f9067ca1a43998a95378c WHIRLPOOL 7257aefb3d83143587ec4b209223ca49f01f2da69b52e811a90c73cd6c1666030d5cfa25edd747b84bcd6b58054bcb8b275b78c57ab90d7d63261d8943efdfec
+EBUILD gtk-update-icon-cache-3.22.2.ebuild 966 SHA256 3ca3e273c3e3a082aa74b4ef10ef79c804d73bbc2f0a7adc4f8c46f7624d8533 SHA512 f08a2be5aeb4f835c9ba482b0af79717d5d0c505d4782fdfe461b82237e67a52958e68b10936cc70f6cec18982b0386f64c37e91610c611bec9424baf81feab1 WHIRLPOOL 360815d3232a83c5b14cbbfa02d15f1a0dada3c619d0ccb9d66ce911863dc3487746846d4164fd8f1fae6f7c0b08267f149e62d6099dad35adf7ae5bc6874e43
+MISC ChangeLog 10154 SHA256 04f9ee9f6925c9dd36d97aebaee6db510a06dd77b7f8e13c50ff6a0b4dd50122 SHA512 5edb1c6439075bf9dd3e8261bef1291537294153315d826fdf9b3aaf30ab50e54924a1f61a0baa5ce6bbde3bf29571c04979481f95ad179b21309b51091d29d2 WHIRLPOOL 0d807741c25df62c0068c0d718ba9aa72d312f2b3d98303598a23a5603642eba2bbe8126071c98356e594ba3fd7ca6844516c37fbedfb2d0d2097d8600dc404a
+MISC ChangeLog-2015 2331 SHA256 b1af82791f72dee2e76b01d97a994886580332d25a418a41e1336544c40c7abd SHA512 1d3c0131d48409779049d5165ab80360ebff1e00bdb2be5f7f8ab4674c86d95080a2e952aacc4fe3d06a535678bdbca13e344b67bfe13f33169495d0a9294a01 WHIRLPOOL a54bac987f3f528651edaaf55c731c348f0564ad27612e48909e6946986096c302700a78aa2a36678dfa7192a795c6a716fe8cb6f0bace551ebaede5d4a8b628
+MISC metadata.xml 647 SHA256 e0f34877d1815f54a7c5f771d505ce0c9d52e2818f3b5bece16eb8659f4263ed SHA512 7301a9425528d65112ec9dd1eca7291473905493b1b550119c6984141b3b216c4f3825d3b2a395a8375aa8b481b29d841153bd279d593586d5ea7d77ce46d7d3 WHIRLPOOL a0a20d4ded5a74c2746c95bbc75e94938096d55ce596df58cf3e8c3b062fadbb48819f9d9b6550a5be379ec8b51f0fe8fee0e5f711bd91be2a2dd6c9ba6a5394
diff --git a/dev-util/gtk-update-icon-cache/gtk-update-icon-cache-3.22.19.ebuild b/dev-util/gtk-update-icon-cache/gtk-update-icon-cache-3.22.19.ebuild
new file mode 100644
index 000000000000..d03a87ea31f9
--- /dev/null
+++ b/dev-util/gtk-update-icon-cache/gtk-update-icon-cache-3.22.19.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit gnome2
+
+DESCRIPTION="GTK update icon cache"
+HOMEPAGE="https://www.gtk.org/ https://github.com/EvaSDK/gtk-update-icon-cache"
+SRC_URI="https://dev.gentoo.org/~eva/distfiles/${PN}/${P}.tar.xz"
+
+LICENSE="LGPL-2+"
+SLOT="0"
+IUSE=""
+
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+
+# man page was previously installed by gtk+:3 ebuild
+RDEPEND="
+ >=dev-libs/glib-2.49.4:2
+ >=x11-libs/gdk-pixbuf-2.30:2
+ !<x11-libs/gtk+-2.24.28-r1:2
+ !<x11-libs/gtk+-3.22.2:3
+"
+DEPEND="${RDEPEND}
+ >=sys-devel/gettext-0.19.7
+ virtual/pkgconfig
+"
+
+src_configure() {
+ # man pages are shipped in tarball
+ gnome2_src_configure --disable-man
+}
+
+src_install() {
+ gnome2_src_install
+ doman docs/${PN}.1
+}
diff --git a/dev-util/gtk-update-icon-cache/gtk-update-icon-cache-3.22.2.ebuild b/dev-util/gtk-update-icon-cache/gtk-update-icon-cache-3.22.2.ebuild
new file mode 100644
index 000000000000..58130e916b64
--- /dev/null
+++ b/dev-util/gtk-update-icon-cache/gtk-update-icon-cache-3.22.2.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit gnome2
+
+DESCRIPTION="GTK update icon cache"
+HOMEPAGE="https://www.gtk.org/ https://github.com/EvaSDK/gtk-update-icon-cache"
+SRC_URI="https://dev.gentoo.org/~eva/distfiles/${PN}/${P}.tar.xz"
+
+LICENSE="LGPL-2+"
+SLOT="0"
+IUSE=""
+
+KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+
+# man page was previously installed by gtk+:3 ebuild
+RDEPEND="
+ >=dev-libs/glib-2.49.4:2
+ >=x11-libs/gdk-pixbuf-2.30:2
+ !<x11-libs/gtk+-2.24.28-r1:2
+ !<x11-libs/gtk+-3.22.2:3
+"
+DEPEND="${RDEPEND}
+ >=sys-devel/gettext-0.19.7
+ virtual/pkgconfig
+"
+
+src_configure() {
+ # man pages are shipped in tarball
+ gnome2_src_configure --disable-man
+}
+
+src_install() {
+ gnome2_src_install
+ doman docs/${PN}.1
+}
diff --git a/dev-util/gtk-update-icon-cache/metadata.xml b/dev-util/gtk-update-icon-cache/metadata.xml
new file mode 100644
index 000000000000..3695848b8d2f
--- /dev/null
+++ b/dev-util/gtk-update-icon-cache/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+ </maintainer>
+ <longdescription lang="en">
+ gtk-update-icon-cache is a tool from GTK+ to update icons and themes
+ caches.
+
+ It is split from the GTK+ sources by the Gentoo Gnome team to help
+ GTK+ 2 and 3 to co-exist better by extracting the single conflicting
+ tool.
+ </longdescription>
+ <upstream>
+ <remote-id type="github">EvaSDK/gtk-update-icon-cache</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/gyp/Manifest b/dev-util/gyp/Manifest
new file mode 100644
index 000000000000..3f6063a5de83
--- /dev/null
+++ b/dev-util/gyp/Manifest
@@ -0,0 +1,4 @@
+DIST gyp-20170904022846.tar.xz 447608 SHA256 01b59ceda78b611690c0f3a3eed1117153ac88d7f48af0c414adde65cb78d367 SHA512 9336be1103048fe5f51f90fcb2a153bba7638e71e4b579c47b725db81ae4257a56a8f7dacddc936e627862ee6149a453f1c7f5bede633cbd3076e0fa2fce07a7 WHIRLPOOL de5e6d4723814fe1bec5ad77c78491c6417eb03bc983b78a2c2d74045091f46921bce9b535988a43219a8f9bdd20c2f4c71919dd16ab0c7e0c3d86a8c6ab2e6b
+EBUILD gyp-20170904022846.ebuild 903 SHA256 0b486ff93eb6c6fae06e0b252dc8d0312f6875ee164e87c35937e5223e592a51 SHA512 00b777af59fd92764371f3351468f038825183dd57ff94c58541ef03af1bb797ab5041e77b78c7ebe79d48bb7c5683165c3b79971b78a99a69785fcfdf49c852 WHIRLPOOL 314670684a0d5b15224a5891af30273664142ab85e8bdb85fe45cd8f08355859aff3eb2b03dcd0be70a883f0a69e4f2520e9a44a872aedaa7e77551f93d15a8a
+EBUILD gyp-99999999999999.ebuild 892 SHA256 572b2f9229281e08c7e9632e7b9ce94a347de0f73e35214f33c3302ef12ec3fe SHA512 7df9e1d53c73e3e256b4abf9ae71f91ac9105102e41a8f5bec5ef2921f96b4f88c0a2264a7727a55d4de95ea81d84150ecd0aa456cfef02200703fa3392ac6c6 WHIRLPOOL 575f19d41124b546329d18588b3b23e18f81d0af9cb375d08170798dcb4c2b68cfc87689f1b6d10341f3ae44b45ac30fc5571f40f1fff5791bc44c94d5db349f
+MISC metadata.xml 273 SHA256 8ed8703af1b4be01e522b5066172d0a00e021e6c83a9c2aa7785772d0ff8ec18 SHA512 52d2bba092d7ed694e06c90dd9cfca1a0003e34fffc0bebb25fc4262f5b6b2ae8903454f7d406aff28d40c9ffca5157fe021701cd60ac1fbf7a7b24215578341 WHIRLPOOL 86269fcd4f26f7ea4164d7e5805ca225ebca57102565f927dc48db63e16e3da483f53a839d4cfc1315d674f05f5dd11d161df35474671381cce367397ae63b0b
diff --git a/dev-util/gyp/gyp-20170904022846.ebuild b/dev-util/gyp/gyp-20170904022846.ebuild
new file mode 100644
index 000000000000..49679f6504ef
--- /dev/null
+++ b/dev-util/gyp/gyp-20170904022846.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+PYTHON_COMPAT=(python2_7)
+DISTUTILS_SINGLE_IMPL="1"
+
+inherit distutils-r1
+
+if [[ "${PV}" == "99999999999999" ]]; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://chromium.googlesource.com/external/gyp"
+fi
+
+DESCRIPTION="GYP (Generate Your Projects) meta-build system"
+HOMEPAGE="https://gyp.gsrc.io/ https://chromium.googlesource.com/external/gyp"
+if [[ "${PV}" == "99999999999999" ]]; then
+ SRC_URI=""
+else
+ SRC_URI="https://home.apache.org/~arfrever/distfiles/${P}.tar.xz"
+fi
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+DEPEND="${PYTHON_DEPS}
+ dev-python/setuptools[${PYTHON_USEDEP}]"
+RDEPEND="${DEPEND}"
+
+src_test() {
+ # More errors when DeprecationWarnings enabled.
+ local -x PYTHONWARNINGS=""
+
+ "${PYTHON}" gyptest.py --all --verbose
+}
diff --git a/dev-util/gyp/gyp-99999999999999.ebuild b/dev-util/gyp/gyp-99999999999999.ebuild
new file mode 100644
index 000000000000..0c933a99edc5
--- /dev/null
+++ b/dev-util/gyp/gyp-99999999999999.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+PYTHON_COMPAT=(python2_7)
+DISTUTILS_SINGLE_IMPL="1"
+
+inherit distutils-r1
+
+if [[ "${PV}" == "99999999999999" ]]; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://chromium.googlesource.com/external/gyp"
+fi
+
+DESCRIPTION="GYP (Generate Your Projects) meta-build system"
+HOMEPAGE="https://gyp.gsrc.io/ https://chromium.googlesource.com/external/gyp"
+if [[ "${PV}" == "99999999999999" ]]; then
+ SRC_URI=""
+else
+ SRC_URI="https://home.apache.org/~arfrever/distfiles/${P}.tar.xz"
+fi
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS=""
+IUSE=""
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+DEPEND="${PYTHON_DEPS}
+ dev-python/setuptools[${PYTHON_USEDEP}]"
+RDEPEND="${DEPEND}"
+
+src_test() {
+ # More errors when DeprecationWarnings enabled.
+ local -x PYTHONWARNINGS=""
+
+ "${PYTHON}" gyptest.py --all --verbose
+}
diff --git a/dev-util/gyp/metadata.xml b/dev-util/gyp/metadata.xml
new file mode 100644
index 000000000000..7b9c409fca7e
--- /dev/null
+++ b/dev-util/gyp/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>arfrever.fta@gmail.com</email>
+ <name>Arfrever Frehtes Taifersar Arahesis</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-util/heaptrack/Manifest b/dev-util/heaptrack/Manifest
new file mode 100644
index 000000000000..fd908dd920da
--- /dev/null
+++ b/dev-util/heaptrack/Manifest
@@ -0,0 +1,4 @@
+EBUILD heaptrack-9999.ebuild 1037 SHA256 ae4e64c2c74f468b739d48a499765e6301e8afa98f05503628176f31b87340b7 SHA512 f59d81d5e274e524c26be069ba4b7945ccb7939d851a7b929b3c9566c132e6ad04d0295074ab9c10461e29226c62835e2c1199e4a217354db1fc02c9326fc915 WHIRLPOOL af7f7abe0b942f4122c317dc34e8e1c2dba8fd291c0dec276541d280cebcde3c45d659faacf6b35df177960c72fc2ac625e3f2b52d4c623bd57292b9e0f4a572
+MISC ChangeLog 2435 SHA256 77a664e66463c4a0dce2b6023746d6d16eec0b3a18d6fe0d1669ff8292b684b8 SHA512 91a9e5d01629ffc097cb975b6610a3ea7c54cc79d6a440ef53fb4472595e190555c87678abe090da6a18de3b5a0e9b3c27363c3a534aa9b9b50475be4fb99e1e WHIRLPOOL 871a7279a069b38bc01aa9f72ba4bf8ebe451acaa6908a1be2684734332dd7d39264e93458b57710b5703580834460074d0d113ad1b667828aadb1b12e12bd12
+MISC ChangeLog-2015 564 SHA256 9322464214371b71d889f1b5d2839e0abb176f2fdffd403a9bf7cf9953224cb8 SHA512 c10139c3ea2d21afdf4c36d224829893acda68c04a1df694b4b8dc168a66aae5382e108b71d1ed15727e05110edf138f6d53d3387b70202524e3db5ee5429c24 WHIRLPOOL ecd73a6ab102d2ae0cbb3e237e5bf02d2da23bdc165ddd08fe6be92b66d0d4c5d4c8d7f3bad0489c8d7514b9247b5e43a2e3ee3c1595993b146dd529b9d9868e
+MISC metadata.xml 253 SHA256 35617822d6dc7b30e0b5ca208636a1bc06e00ab3f7949578f17b9a00223f0d18 SHA512 e8bc4d02500676e2506fbe7f0811be984878560deb05d09122cede2e62e633fb7644fa59b73a20da8f3fceea8f8cb928768726e8b679f32178c0aed9a874ea15 WHIRLPOOL 38b3dd61d0726557d5785fbdb24a5c92120bf7c485090f528e9fe4c6b7bb697990e34e4482a0e050c07e8ee7f28a35582f838c24c7341084cd2a58cdc5be5e60
diff --git a/dev-util/heaptrack/heaptrack-9999.ebuild b/dev-util/heaptrack/heaptrack-9999.ebuild
new file mode 100644
index 000000000000..45bb021ef3ac
--- /dev/null
+++ b/dev-util/heaptrack/heaptrack-9999.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+KDE_AUTODEPS="false"
+KDE_TEST="forceoptional"
+inherit kde5
+
+DESCRIPTION="A fast heap memory profiler"
+HOMEPAGE="http://milianw.de/blog/heaptrack-a-heap-memory-profiler-for-linux"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS=""
+IUSE="+qt5"
+
+COMMON_DEPEND="
+ dev-libs/boost:=
+ sys-libs/libunwind
+ sys-libs/zlib
+ qt5? (
+ $(add_frameworks_dep kconfig)
+ $(add_frameworks_dep kconfigwidgets)
+ $(add_frameworks_dep kcoreaddons)
+ $(add_frameworks_dep ki18n)
+ $(add_frameworks_dep kio)
+ $(add_frameworks_dep kitemmodels)
+ $(add_frameworks_dep kwidgetsaddons)
+ $(add_frameworks_dep threadweaver)
+ $(add_qt_dep qtcore)
+ $(add_qt_dep qtgui)
+ $(add_qt_dep qtwidgets)
+ dev-libs/kdiagram:5
+ )
+"
+DEPEND="${COMMON_DEPEND}
+ $(add_frameworks_dep extra-cmake-modules)
+"
+RDEPEND="${COMMON_DEPEND}
+ qt5? ( >=kde-frameworks/kf-env-4 )
+"
+
+src_configure() {
+ local mycmakeargs=(
+ -DHEAPTRACK_BUILD_GUI=$(usex qt5)
+ )
+
+ kde5_src_configure
+}
diff --git a/dev-util/heaptrack/metadata.xml b/dev-util/heaptrack/metadata.xml
new file mode 100644
index 000000000000..c6bc2d94015a
--- /dev/null
+++ b/dev-util/heaptrack/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>asturm@gentoo.org</email>
+ <name>Andreas Sturmlechner</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-util/herdtools7/Manifest b/dev-util/herdtools7/Manifest
new file mode 100644
index 000000000000..b10741bdb219
--- /dev/null
+++ b/dev-util/herdtools7/Manifest
@@ -0,0 +1,4 @@
+AUX herdtools7-7.47-mkdir.patch 318 SHA256 5aee359c1a3ac300f2cd6ac3a48a4de8ca052579609738598aa09aaf041fa61a SHA512 de4556ef77eec10e4b9800289d27e27fb306a8801754dd210801c1113bf005bb29a0dc1d9ce9a8bcd2db32fbe589c8b77c4a57cb8ac41bab6932894a35726dcc WHIRLPOOL 76707485cc52e9c8544c7a77a194c8424dc8cee1e6ccdd5bdad8c65143c9b54adb7c3bca351783e23c6069d7a4726176fa7f5639b4e4dd29f42c10025fe62306
+DIST herdtools7-7.47.tar.gz 763045 SHA256 04703fe1c5f6fab3de7e67e3f6ede4971994bfd758c05823ca3e67748183e83d SHA512 85295815fb725b78e7015f597cdad10c3a52db2e40b179efb314f6750c7e5ec09393fac4038dafe0b7eb3f5db74d10a032384a384adf3c97bf846cb016f5180c WHIRLPOOL ea9340cb18fc4a946586eff9cbe2e7eafa398224a2dddc04326f467b91ee1eb534f8d4c2758c11a58fe93504868e74e8598cb953fac30c6eb1fec5917a976039
+EBUILD herdtools7-7.47.ebuild 620 SHA256 7bad5c6471a37b22744a3774cd4325e1cf344821c60ca758411d83627fe55010 SHA512 1241971eb805151c01893df0d385a1a07113039659f014663e6e0e4f6c2af2330ba6b88e1a19b016ef227492ac8e0d2815bc2f96f4afc10bfde7349658e0d8e4 WHIRLPOOL cc5cc281ecc84f2e26fa09043395cbe7767476b71880ba56ed2b0412c85601262102f55f2c091e4e26d493efcd7537e96ba78cac7cb0312cd55e95f3c5329772
+MISC metadata.xml 249 SHA256 3b18a42db7cce5a365b12a200f0aa5d39d4d2c071a848527ca329fe343713ba1 SHA512 ecad16da7f98e9b1cb1882147e6d8b7d541e4839d92fc26f3db1bea69ed633637da9259947b2b78d204a11d0edd3daa84f173613b6dc19110b5406c6fddfa7f0 WHIRLPOOL 78ffa4cbe5b88bd41d13bd30de85ca23af0d1f381eacd8cf63ca65b05ee4211544ba6b4214821aaeb350e6ade8b6c365bd11f716e13637cc8e98104edb86e8a9
diff --git a/dev-util/herdtools7/files/herdtools7-7.47-mkdir.patch b/dev-util/herdtools7/files/herdtools7-7.47-mkdir.patch
new file mode 100644
index 000000000000..5c45f880ea1a
--- /dev/null
+++ b/dev-util/herdtools7/files/herdtools7-7.47-mkdir.patch
@@ -0,0 +1,21 @@
+diff --git a/install.sh b/install.sh
+index 72f6163..e84c645 100755
+--- a/install.sh
++++ b/install.sh
+@@ -17,6 +17,16 @@ fi
+ BINDIR=$PREFIX/bin
+ LIBDIR=$PREFIX/share/herdtools7
+
++if ! [ -d $BINDIR ]
++then
++ mkdir -p $BINDIR
++fi
++
++if ! [ -d $LIBDIR ]
++then
++ mkdir -p $LIBDIR
++fi
++
+ cpbin () {
+ SUB=$1
+ EXECS="$2"
diff --git a/dev-util/herdtools7/herdtools7-7.47.ebuild b/dev-util/herdtools7/herdtools7-7.47.ebuild
new file mode 100644
index 000000000000..b30623969e84
--- /dev/null
+++ b/dev-util/herdtools7/herdtools7-7.47.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit opam
+
+DESCRIPTION="The Herd toolsuite to deal with .cat memory models"
+HOMEPAGE="http://diy.inria.fr/sources/index.html"
+SRC_URI="https://github.com/herd/herdtools7/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="CeCILL-B"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-ml/ocamlbuild"
+RDEPEND=">=dev-lang/ocaml-4.02.0"
+
+PATCHES=(
+ "${FILESDIR}/${P}-mkdir.patch"
+)
+
+src_compile() {
+ ./build.sh /usr || die "Build failed"
+}
+
+src_install() {
+ ./install.sh "${ED}/usr" || die "Install failed"
+}
diff --git a/dev-util/herdtools7/metadata.xml b/dev-util/herdtools7/metadata.xml
new file mode 100644
index 000000000000..cee379b15409
--- /dev/null
+++ b/dev-util/herdtools7/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>chutzpah@gentoo.org</email>
+ <name>Patrick McLean</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-util/howdoi/Manifest b/dev-util/howdoi/Manifest
new file mode 100644
index 000000000000..92cc407717fe
--- /dev/null
+++ b/dev-util/howdoi/Manifest
@@ -0,0 +1,5 @@
+DIST howdoi-1.1.9.tar.gz 7549 SHA256 2b4a0ebc39c9e0489a17ef73e3eec7dd4a2975e07b995406887c639481da2bb5 SHA512 6f236c1e7685c10682e38d1f679ebe75a12b29b78bd2496141099d875b483b0c749d12873f69d163e40eb66756b6512146471131758fda84e6ad9fc7b76806b3 WHIRLPOOL 51dc5ee85a8fee7a0bd4e61e8c7afb42574accc539b9c06880c658b16f3abd41039ae8611437abfaa9b9f12232c9084e50dd9af14183dbc92cba8ad2fbd54b26
+EBUILD howdoi-1.1.9.ebuild 584 SHA256 e197c1db284da8a50e826a70d593340071343add0336642e08ce1243c5141a01 SHA512 c339a195885fb1547a7ca34e779d01d985c108c3fc7f9e3bb92658cfb514780e74b77bcbd3ab6bab82a3dcab4a60d7ce9404ed6b49fd278ae687faad43569774 WHIRLPOOL efa8eaf15a856898e04e750fcfc2db114bc0eebac36e8ea68096ba7936b0240f26f52456fdf93d2892d6d149bf86914ac751b731ca4dfe6b9934957996b8d612
+MISC ChangeLog 3067 SHA256 d5ff176cae7f44f7175f90fde9e2ad0bd2f713847d070fb7c97b9fe0ad7def95 SHA512 67aaf23f79168c80d29eeb373d68db079f4541b177625fcea406733760c8bdd510dc9730a46dfca6d1d0f9300c2372bc91c83d3b414e532593941a0c3fcea228 WHIRLPOOL 04feac29fbfb64372c581c901ea2caa616d22b7be042a7b6a311a3b55e8992bff4ab7a38f8b831d0d51254a4c13689563fc4ed824bd52d1e46a87aca54a9f8ee
+MISC ChangeLog-2015 1429 SHA256 82571442053eb2e4c4d2fe613b2e6a2aab5ad2fc2a9cbd20d960baeb812e9e5a SHA512 03d9d8b6e52a6dd08f63ae4b9288cc4a16188b6bd55903a4998e626440b34360839c0ac5e83ee524796e05ade8410e2cf1b2f2dad4d307b1dcfa1482ef7c4ac7 WHIRLPOOL a5bac59004bbe231ca56ccbc3145663ff786de021593ce97449d3c30d220842d4eeed3503b0cff0d1ebd367b450e976444f108787bc863cee4b7ff0cd9c5b618
+MISC metadata.xml 290 SHA256 57a8bb6358c5fb9fa8b3f06f922938aa9f9d967b2ce26192096e6d06681c5517 SHA512 ede22af6bd7ec77ad0b831c42c0169dc8e43719d4f7c5d7df37e6abb79136d1699a923a587a056210c0cccc33aa887856a46f73baf476ff2c074351880299471 WHIRLPOOL ae2cfcaa37bb8946ba6654ae234cabfad3e16a5ff8b2ab1f5ab390a448ca092b37538765db0d960e291488ce81d83ac77d3fed8543b56145fe0ba17e801ecc2e
diff --git a/dev-util/howdoi/howdoi-1.1.9.ebuild b/dev-util/howdoi/howdoi-1.1.9.ebuild
new file mode 100644
index 000000000000..16b477d33ed5
--- /dev/null
+++ b/dev-util/howdoi/howdoi-1.1.9.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5} )
+inherit distutils-r1
+
+DESCRIPTION="A code search tool"
+HOMEPAGE="https://pypi.python.org/pypi/howdoi"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
+RDEPEND="
+ dev-python/pygments[${PYTHON_USEDEP}]
+ dev-python/pyquery[${PYTHON_USEDEP}]
+ dev-python/requests[${PYTHON_USEDEP}]
+ dev-python/requests-cache[${PYTHON_USEDEP}]
+"
diff --git a/dev-util/howdoi/metadata.xml b/dev-util/howdoi/metadata.xml
new file mode 100644
index 000000000000..4230aede62d0
--- /dev/null
+++ b/dev-util/howdoi/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>kensington@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="pypi">howdoi</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/huc/Manifest b/dev-util/huc/Manifest
new file mode 100644
index 000000000000..3d134ec466b8
--- /dev/null
+++ b/dev-util/huc/Manifest
@@ -0,0 +1,5 @@
+DIST huc-0.1.tar.bz2 8367 SHA256 2966c25164ec4cfa81557ccf30ddf1b2f3ccd37f1362c7a2580c4d81d44298f0 SHA512 711266edfdec572aad877230653248b02cc0b989f1cf2766bf6cc4e196dcd02ba4bf148849d360457fc396de18f0bd0b6f7a26ba3c13a159cf26ece7c356c225 WHIRLPOOL 0f4b66bdd6ce39ad2dbe55f0916c2baea50d5eb9051488ae5269db26a729e8d944a2647f960f9f870f1d82ba97d4dd4d6dbbb11d57e45ec5f833ca3932fba7f4
+EBUILD huc-0.1-r1.ebuild 500 SHA256 5bfdaf5faa17dd3079d19b2847071e401d61969e016d780bd427ab429b3ebac6 SHA512 199ecec9820c2d4881874acc4c174a26f2720245a9225a0def861d6196247fa5f3e972ca3e234f524d704cb9299d92bb5682be7903ec9f8877e7d0550eebfe33 WHIRLPOOL d5b97a46da62a54c3768906df7b3f0669e9561239e9f46ee9db91b7a7c2f82fb37f1560aa9e0de7a5645c7b164bd56112e28fd16f2a9a42be2e4fb8f6c2565f9
+MISC ChangeLog 2506 SHA256 9e6410fc45f5b43898f908abb7439e521cfdd73642ea5052a3e803c03de9851b SHA512 f9dfab2bb038d02ed35e19f27db7b93dfa108c2acf1aeaa17adb756aada12fdc0a9f11afd04fca1b995d8679cf7eedd90f8101cad7ecb4465550edb8ef1417ec WHIRLPOOL ce654b79bb37723cb0ad1e3f845965ab0cf417855503c1fce2deeaf9bf9ed303178a79a7d4e4f7d6e5f7416c06636402e41db10a5944b6b03e6bcc408d54e67b
+MISC ChangeLog-2015 1805 SHA256 e2587bc32ca1b02f1fc3ca37c0d3224ce471ef6f0ef3dbe5053ae31e58bbc0ea SHA512 a44d4b9f1701ac69cba84bc484b78c0023df0e01001d6333d850a427ab3f7ba2926e973ffd98e8a1b05a7e30f0f857114822adc63605774bf315ed08b32bcd53 WHIRLPOOL de078aeba70388ab72933a1a8c0fb8c31c02efff5148ef8c65b76946e4514914dd542a1c62450849e0064c713286c1fec99ded94d5e82fe0a0d694e40396386a
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/dev-util/huc/huc-0.1-r1.ebuild b/dev-util/huc/huc-0.1-r1.ebuild
new file mode 100644
index 000000000000..c2261b0ddc2d
--- /dev/null
+++ b/dev-util/huc/huc-0.1-r1.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit toolchain-funcs
+
+DESCRIPTION="HTML umlaut conversion tool"
+SRC_URI="http://www.int21.de/huc/${P}.tar.bz2"
+HOMEPAGE="http://www.int21.de/huc"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="amd64 ppc sparc x86 ~x86-linux ~ppc-macos"
+
+src_compile() {
+ $(tc-getCXX) \
+ ${LDFLAGS} ${CXXFLAGS} \
+ -o ${PN} ${PN}.cpp || die "compile failed"
+}
+
+src_install () {
+ dobin "${PN}"
+ einstalldocs
+}
diff --git a/dev-util/huc/metadata.xml b/dev-util/huc/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/dev-util/huc/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/dev-util/hxd/Manifest b/dev-util/hxd/Manifest
new file mode 100644
index 000000000000..7d8de2970b69
--- /dev/null
+++ b/dev-util/hxd/Manifest
@@ -0,0 +1,7 @@
+AUX hxd-0.70.02-llong-redef.patch 677 SHA256 c1df8a4faab445074747c2e05ce98718512ab0870426575451a46161f7c1cf8c SHA512 1bb2e1db48fdc804ee7b7600f27d0290d546f84c85f5e577afadcda35c8df93bbeb2e9f0ed8e4110cd26f40f76c54ebbf83d21c3a2b31101140900ee8b92a78d WHIRLPOOL 2b42f3b59156b8a89509ff2f85751f0d1c198ccb31dee2ddb60fcf8c35fc7a68367385fb5f6c6c6fe3f3773b6a30763d0b5b34969d0e22eb05bbf2fae317da21
+AUX hxd-0.70.02-prll-flags.patch 2241 SHA256 9883102322db00803d66a99b328edf4919900865fb3fe0bd38ac578a833fb53a SHA512 d83ddb0a9e595d4d5f39d0d8772e3a00c3fe2f25d418a6bb3c618f04fe66a71426d527e3dcb55d2a11ac0d7bc6b2bd262065eae94fc103b3f5ab7f34dc528d35 WHIRLPOOL 3d0f787edb5f7ad0351981e0f64f5ea222e290d7600f9eb12b8defbc66ddad9119410d7c43a3a5a087d293ef747d0dbc0a0da7963e8bfa397def7db7a3dde732
+DIST hxd-0.70.02.tar.gz 17469 SHA256 2b533e2585bee6c08e7761b6ed67c5ecb01742d2aa3510c45931472512ad2311 SHA512 631b3ea74a7f831984abb1bb0c1a32d38ff2980063321fa1e85fc594fe23407cddf5d61fd1005ec154aecf6be8344e070600faf90d176061f195e6a39d8991af WHIRLPOOL 8b1c8a4e1ecdcb21828fa76f971455bbb8913ce6a24701fc17849e5373c9c9c75f735c2a85a3d686d33b3b35958edce1ed577627441dc83ae92b5430e08286fd
+EBUILD hxd-0.70.02-r2.ebuild 602 SHA256 a616e65ec992056e4952b6cc991debf8dd64761192dd74c600587ccd5852b297 SHA512 cc16b8330c9cb85e606c9f836917bc3f17595115d2e408b43772b5625d06626ab59b3861a72096750ac727929a76e93d48873c296850cbc6774ee76d9228064c WHIRLPOOL 203411ac9a3574939d2d29752b5e46999876a8966695179ae0cc3d72bc0a1f1a584e95ec28c98155adf4fae9c336f0b9e3c0598961993720559cca5751759a23
+MISC ChangeLog 2597 SHA256 650707fcada8c511895462a75e455f767c0906ab6b9d63acb1da8df285690847 SHA512 3fff39b4b023d4f483da0bd87d5c569f276841b84fdb47260fb01a5be7826fdb10618183f0fd4e8db3886218375db658af9f069257f31e308cec314422b2d1c7 WHIRLPOOL 6501e56a69d7c14b6cce75fc7650fce3483450ab5017df4fe353249b568ead2213f3f81104fa96ab0ddc23e9cbd78cb73e85a92d033b898835798ad6bf33f1ed
+MISC ChangeLog-2015 1804 SHA256 a0224389b427d4072ad7216298e2454443145a1cb6633b76ac0f1a24c9ab6442 SHA512 69d386c588c06670a9a7fbef97fcb0299de92f02ab9732c50240df1d5eb0a8ddc3f3695bcffc3a486255a03c8399851675c8fca8b92b423a9fb06a5d9320e9e7 WHIRLPOOL 8f7d7afd16ffe193aeaf8c83c98fadfa9317aac6ae868e8774f3bd52f08eecf775f96c190bfb750cdc2536304a48c02da457522d597e3f0bacbbaebb3d4cba76
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/dev-util/hxd/files/hxd-0.70.02-llong-redef.patch b/dev-util/hxd/files/hxd-0.70.02-llong-redef.patch
new file mode 100644
index 000000000000..e9e230c867ac
--- /dev/null
+++ b/dev-util/hxd/files/hxd-0.70.02-llong-redef.patch
@@ -0,0 +1,25 @@
+ general.h | 4 ++--
+ 1 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/general.h b/general.h
+index 0a2ebe7..b749945 100644
+--- a/general.h
++++ b/general.h
+@@ -56,7 +56,7 @@
+
+ #ifdef HAVE_LONGLONG
+ loff_t lseek64( int fd, loff_t offset, int whence );
+-#define LLONG_MAX 0x7fffffffffffffffll
++#define L_LONG_MAX 0x7fffffffffffffffll
+ #undef LSEEK
+ #define LSEEK(A,B,C) lseek64((A),(B),(C))
+ #undef STRTOL
+@@ -64,7 +64,7 @@ loff_t lseek64( int fd, loff_t offset, int whence );
+ #undef SIZE_MIN
+ #define SIZE_MIN ( (loff_t) 0 )
+ #undef SIZE_MAX
+-#define SIZE_MAX ( LLONG_MAX - 1 )
++#define SIZE_MAX ( L_LONG_MAX - 1 )
+ #undef OFF_T
+ #define OFF_T loff_t
+ #endif
diff --git a/dev-util/hxd/files/hxd-0.70.02-prll-flags.patch b/dev-util/hxd/files/hxd-0.70.02-prll-flags.patch
new file mode 100644
index 000000000000..f08f2eb18063
--- /dev/null
+++ b/dev-util/hxd/files/hxd-0.70.02-prll-flags.patch
@@ -0,0 +1,56 @@
+ Makefile.Linux | 23 +++++++++++++++--------
+ 1 files changed, 15 insertions(+), 8 deletions(-)
+
+diff --git a/Makefile.Linux b/Makefile.Linux
+index e3711cd..d5b00cb 100644
+--- a/Makefile.Linux
++++ b/Makefile.Linux
+@@ -1,6 +1,6 @@
+-CC=gcc
+-CFLAGS=-Wall -Wstrict-prototypes -fomit-frame-pointer -pipe -I$(HDDIR) -DOS_TYPE_Linux -DOS_TYPE_STR=\"Linux\"
+-LDFLAGS=-Wl,-warn-common -s -L$(LIBDIR)
++CC ?=gcc
++CFLAGS+=-Wall -Wstrict-prototypes -I$(HDDIR) -DOS_TYPE_Linux -DOS_TYPE_STR=\"Linux\"
++LDFLAGS+=-Wl,-warn-common -L$(LIBDIR)
+
+ LDLIBS =
+ HDDIR = ./
+@@ -32,26 +32,33 @@ $(PRG_UNDUMP): $(PRG_UNDUMP).c $(PRG_UNDUMP).h general.h
+ $(CC) $(CFLAGS) -Dprg_name=\"$(PRG_UNDUMP)\" -DMANUAL_NUMBER=$(MAN_NO_UNDUMP) $(LDFLAGS) $(PRG_UNDUMP).c -o $@
+
+
+-$(MAN_DUMP): $(PRG_DUMP).man
++mkmkman: $(PRG_DUMP)
+ $(CC) $(CFLAGS) -Dprg_name=\"$(PRG_DUMP)\" -DMANUAL_NUMBER=$(MAN_NO_DUMP) -Dundump_name=\"$(PRG_UNDUMP)\" $(LDFLAGS) mkmkman.c -o mkmkman
++
++mkman.c: mkmkman $(PRG_DUMP).man
+ cat $(PRG_DUMP).man | ./mkmkman > mkman.c
+ ln -sf $(PRG_DUMP).h header.h
++
++$(MAN_DUMP): mkman.c
+ $(CC) $(CFLAGS) -Dprg_name=\"$(PRG_DUMP)\" -DMANUAL_NUMBER=$(MAN_NO_DUMP) -Dundump_name=\"$(PRG_UNDUMP)\" $(LDFLAGS) mkman.c -o mkman
+ ./mkman > $@
+
+-
+-$(MAN_UNDUMP): $(PRG_UNDUMP).man
++mkmkman_u: $(MAN_DUMP) $(PRG_UNDUMP)
+ $(CC) $(CFLAGS) -Dprg_name=\"$(PRG_UNDUMP)\" -DMANUAL_NUMBER=$(MAN_NO_UNDUMP) -Ddump_name=\"$(PRG_DUMP)\" $(LDFLAGS) mkmkman.c -o mkmkman
++
++mkman_u.c: $(PRG_UNDUMP).man mkmkman_u
+ cat $(PRG_UNDUMP).man | ./mkmkman > mkman.c
+ ln -sf $(PRG_UNDUMP).h header.h
++
++$(MAN_UNDUMP): $(MAN_UNDUMP) mkman_u.c
+ $(CC) $(CFLAGS) -Dprg_name=\"$(PRG_UNDUMP)\" -DMANUAL_NUMBER=$(MAN_NO_UNDUMP) -Ddump_name=\"$(PRG_DUMP)\" $(LDFLAGS) mkman.c -o mkman
+ ./mkman > $@
+
+
+ install: all
+- install -s -m 0755 -o root -g root $(PRG_DUMP) $(INSTALLDIR_BIN_DUMP)
++ install -m 0755 -o root -g root $(PRG_DUMP) $(INSTALLDIR_BIN_DUMP)
+ install -m 0644 -o root -g root $(MAN_DUMP) $(INSTALLDIR_MAN_DUMP)
+- install -s -m 0755 -o root -g root $(PRG_UNDUMP) $(INSTALLDIR_BIN_UNDUMP)
++ install -m 0755 -o root -g root $(PRG_UNDUMP) $(INSTALLDIR_BIN_UNDUMP)
+ install -m 0644 -o root -g root $(MAN_UNDUMP) $(INSTALLDIR_MAN_UNDUMP)
+
+ clean:
diff --git a/dev-util/hxd/hxd-0.70.02-r2.ebuild b/dev-util/hxd/hxd-0.70.02-r2.ebuild
new file mode 100644
index 000000000000..ad8dc60558e7
--- /dev/null
+++ b/dev-util/hxd/hxd-0.70.02-r2.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Binary to hexadecimal converter"
+HOMEPAGE="http://www-tet.ee.tu-berlin.de/solyga/linux/"
+SRC_URI="http://linux.xulin.de/c/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~sparc ~mips ~ppc"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-prll-flags.patch
+ "${FILESDIR}"/${P}-llong-redef.patch
+)
+
+DOCS=( README TODO )
+
+src_prepare() {
+ default
+ tc-export CC
+}
+
+src_install() {
+ dobin "${PN}" "un${PN}"
+ doman "${PN}.1" "un${PN}.1"
+ einstalldocs
+}
diff --git a/dev-util/hxd/metadata.xml b/dev-util/hxd/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/dev-util/hxd/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/dev-util/hxtools/Manifest b/dev-util/hxtools/Manifest
new file mode 100644
index 000000000000..8303d5489d9c
--- /dev/null
+++ b/dev-util/hxtools/Manifest
@@ -0,0 +1,5 @@
+DIST hxtools-20121125.tar.xz 287716 SHA256 8153a61254b18415ba862ca3b9db96cc7c8828c7fa78f4808c03f36942ae1b6b SHA512 fa15331d8c961b0a3b1a99f592e2b4f9b0531ac294a2fef0f9a5067b5e427ca57e0c62798b1048a1d6005c9655af45136636255f684a129bc997864e8c7c4915 WHIRLPOOL 7f5258c2e5a5693c018acbb7cc71754c1ae7ca6a5b799d25fdd053a1e148eb6f0c6855920a1a995805675a86fc86d16b49a4e5a020864ad80fccbc1f796c307f
+EBUILD hxtools-20121125-r1.ebuild 565 SHA256 e6461706da837d3d6bcdf9707f6fe66b7d41737b7b9858192512e3f0a5752248 SHA512 4f886b9deb4741ce55c83ebeadadf0225444f8809fb3d07ede72e9125d4e840506a0798cce98e8bf1cad55f68673c8a8cbd57da868c71f871706b22847683f91 WHIRLPOOL c3b59df0ee1f66fd961d98add06ffb565eb84b77dd429dbd13b8249a2e8162371a053f0784485471e31eab304f71d700dcf9e1810f90fa18d7a2fd2a09c96b4e
+MISC ChangeLog 2832 SHA256 aaaab717e2c30d86775968ce4de2c8f46324e90b2dea311c61632d723a6a081d SHA512 cd43f0b6fb7f91ad7c5f879144f73ffe450638e60490499473f07bc0aa4a4473becc6861260efc1bf0c58013d879b22819f889a4487646d14e90720e950ddc46 WHIRLPOOL 608deb3555540c0d32a1ff0a4d3ca5e5bee9c9f721d2d60fde09065cb92ad58652d074d06ffcf3da777d2b4390db3584f5219b01187f241063c55a58458b9de3
+MISC ChangeLog-2015 987 SHA256 b73355e0eaf8fb882626932b973517279dcafc16e8e0c83709d71285d3a75a97 SHA512 137ac608ae12efe54ec8e35df78f314ecc7d7a7449e6679e90db653fedd761dd137cf16cdb1801fe6a80d0525853210aa543985a0ea754b3a6cd175f6f0ae9e8 WHIRLPOOL f66a0c4f9fa6d077570c66cd58b523f64529423cfeae69d0c052f6474fd05f623fa9a201079de8a559cf839fb889962fbca746b5de6688f8b7328dd6d826a2d4
+MISC metadata.xml 232 SHA256 cae43e94e79a01960721d205a44935817243a3778791d1ba4c8c041c4a9d501b SHA512 23824ca618f16dec558197c0c853f3ebf5c0f1b034635242282bd40f01beea59cbac3b416e86f2eb4337942d9db945a2e1fd4fe52c88762b65749855762769fa WHIRLPOOL 774b24967a2336d4cc213a21ac9c89d0b11c17d626a93badaf1e98dec218db09edc4b73a30e47121a1f1cdd588c7ee9859da00b319d09707b05d802dcb134891
diff --git a/dev-util/hxtools/hxtools-20121125-r1.ebuild b/dev-util/hxtools/hxtools-20121125-r1.ebuild
new file mode 100644
index 000000000000..6f624335e2d0
--- /dev/null
+++ b/dev-util/hxtools/hxtools-20121125-r1.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+DESCRIPTION="A collection of tools and scripts"
+HOMEPAGE="http://inai.de/projects/hxtools/"
+SRC_URI="http://jftp.inai.de/${PN}/${P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+RDEPEND="
+ dev-lang/perl
+ sys-libs/libcap
+ >=sys-libs/libhx-3.12.1
+ sys-apps/pciutils
+"
+DEPEND="${RDEPEND}"
+
+src_install() {
+ default
+
+ # man2html is provided by man
+ rm -rf "${ED}"/usr/bin/man2html
+ rm -rf "${ED}"/usr/share/man/man1/man2html*
+}
diff --git a/dev-util/hxtools/metadata.xml b/dev-util/hxtools/metadata.xml
new file mode 100644
index 000000000000..c78052713743
--- /dev/null
+++ b/dev-util/hxtools/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="project">
+ <email>suse@gentoo.org</email>
+ <name>SUSE</name>
+</maintainer>
+</pkgmetadata>
diff --git a/dev-util/icemon/Manifest b/dev-util/icemon/Manifest
new file mode 100644
index 000000000000..cbe03036c333
--- /dev/null
+++ b/dev-util/icemon/Manifest
@@ -0,0 +1,5 @@
+DIST icemon-3.1.0.tar.gz 111139 SHA256 8500501d3f4968d52a1f4663491e26d861e006f843609351ec1172c983ad4464 SHA512 43b5c959cd66fa65cac25994e5b8f26646b49b57405bd80d6ddb12cc7ed5bfeb5f91f5816900883078075685c25159f5a19b3198594027b3a1b8b0c489237b39 WHIRLPOOL f796343ece42fa5c505bd39902d6198177bc4e61c0a888b6dc17cdcb426ce14ec48f3902a23e18f7c64c702eec40cbef990bf3b7dbbd8e38bb42cf04767d9037
+EBUILD icemon-3.1.0.ebuild 683 SHA256 f05d91cd7e028a238e7477f9fac92e4e5e654295989f273f76a15b625a0572dd SHA512 dd6c787bf92df7fb1028478882e2c3ca6603fae7dbce35bd3a952122e155607f1928f106b88c4d4398df2432b91df664086b01c56aabc8013aebab79d1f0d934 WHIRLPOOL 4418de9ff0f16f1f2c478bcbe83a6be9b348a1808dd7e63cded9ddf9cb5af056b016816c4863f5a32a6d85f5ab42e4bb0044d6b8ced28275fdcd698f7cf9fcfc
+MISC ChangeLog 2430 SHA256 ec47110aa42f5f20fee6ad2a4a5e44f706869ce02dfe1c984884cbd59430bee5 SHA512 a254bde9147b64a8fccf8b830d528969b72734b65a85fbd7be88467197f39acf66bdb9b41a350475faecb3541010a1ecab05eb12885a3826702049f880cca800 WHIRLPOOL 47d9b0687280bec7cab2efdbb86cebd616909ae538edc25fa6dceb62f4e87cfbf64cb47ba4418362fafd68a291c6cff967c8b6c404c4507d231829f0ac65d129
+MISC ChangeLog-2015 755 SHA256 cdd38a839a444d13b62842c205768404f0b072a4743912f95b50333214deff8e SHA512 03ce2bfe54add0b8e30c1976272122a01847350af712cc0881e5496e6a631f0218e0215c0a6db3798db2e82501ba69a71ab2a5b82beb2a77a8f2659d90e83355 WHIRLPOOL 6447b06051537980a7992e6c5937d04a13f9e7d539973817f9b4973776034f05d913835178679b59e6bada1188513f4cb3b5122d2000a9ba29d7e5a9b24343b1
+MISC metadata.xml 346 SHA256 ae39777c2b553e55c845506b1449f8c05e3733e2f1ca3822df2c891d13daa184 SHA512 a5ddba80d3f325a9ad2855b0cea1af495e8e0e8b6aba731bb8765f7b3c54bd49dd5130d6860c620f56fa00b736c6298b5392db0f30d589edd807207eaafe0e7a WHIRLPOOL 62eff634c0da01c61e534d9d08de2ce6da14d0a9d212400844862dd0b9c984d6eb9daed313ad57c4978fa52177cf6a9b1e6a80d93ecc2fea6321890a2b8e0d11
diff --git a/dev-util/icemon/icemon-3.1.0.ebuild b/dev-util/icemon/icemon-3.1.0.ebuild
new file mode 100644
index 000000000000..bdf10ab714f8
--- /dev/null
+++ b/dev-util/icemon/icemon-3.1.0.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils
+
+DESCRIPTION="Monitor program for use with Icecream compile clusters based on KDE Frameworks"
+HOMEPAGE="https://en.opensuse.org/Icecream https://github.com/icecc/icemon"
+SRC_URI="https://github.com/icecc/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtwidgets:5
+ sys-devel/icecream
+"
+DEPEND="${RDEPEND}
+ app-text/docbook2X
+"
+
+src_configure() {
+ local mycmakeargs=(
+ -DCMAKE_DISABLE_FIND_PACKAGE_Doxygen=OFF
+ )
+ cmake-utils_src_configure
+}
diff --git a/dev-util/icemon/metadata.xml b/dev-util/icemon/metadata.xml
new file mode 100644
index 000000000000..f0b707735d33
--- /dev/null
+++ b/dev-util/icemon/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="project">
+ <email>cluster@gentoo.org</email>
+ <name>Gentoo Cluster Project</name>
+</maintainer>
+<maintainer type="project">
+ <email>suse@gentoo.org</email>
+ <name>SUSE</name>
+</maintainer>
+</pkgmetadata>
diff --git a/dev-util/icmake/Manifest b/dev-util/icmake/Manifest
new file mode 100644
index 000000000000..e288a3fcdb54
--- /dev/null
+++ b/dev-util/icmake/Manifest
@@ -0,0 +1,12 @@
+AUX icmake-7.20.00-ar.patch 399 SHA256 96d8c283f97f58de6beca7fc0dafc6f4eadfa7b3db15b027a99ef6d502eb4fc2 SHA512 6d868cc92961946d546ad18451c7d4829d03136eac8d06fa8195724692e5e71d89ddca869646dd33a85dd3137f849fd755aefee899e69ed83b973b7869688fa2 WHIRLPOOL f48a6513bca7242897963ddb50cbf1d23bdd8959c499438a6379b241e277cc8227ecdbbe46ff3ee802f98e8437b7bb46a317906eca824d24fb58d6615b4b5ab2
+AUX icmake-9.00.00-ar.patch 600 SHA256 1ec15c3e0111c25fdf3ff56597f65837ce7f36602f9662a3592b62faf71b533d SHA512 ef09e8a356cf8a56285282dd793230eaa0de3d959f1e9e4bb0905d402906f159625645d6e9cf080f1b94b89da7024e1a118ebea8f686713d2872ee20d2102325 WHIRLPOOL dff8ea015a00feeabbf196ebe692068c8b02c7b806819ddfb1504af4ea97b1ae3e565780053157e003734c8c481c6a41d1ef8911f26713eab468f68aa3e3ff77
+AUX icmake-9.02.02-verbose-build.patch 141 SHA256 58677b6c5cb384c922d73c6dedd370c99de90e2485c2ffc058ff87c4311378d5 SHA512 7199f34f8b48962e44306e9102d674b8970e03f99f2e2db29b9d813f2c4631f9768582be3423f528f2585106806afff0c2c7430c9125911a1eaca5e77902d546 WHIRLPOOL b093477c6180fa18524f7039efc3456faa34cd5bbbd881674fd2cc1521ec61ec3baebd57d28a23ff7fea1f2ee97f00e862337f55ef7b4fc125d33da62176d960
+DIST icmake-9.00.00.tar.gz 366238 SHA256 2ba6ddf3c7ced5fd5e29ceffebfb283513610ac864c950bb4d3acb8f3300ad15 SHA512 aad57cc5d1a609c1fe5706b4c263e3bf2d34208e8507b3d102ca666e446af829d9fea8ae1c12abc10f96bd4c567e718c05d9e3f09676444787c3ac9a31ccfbfa WHIRLPOOL fcc11b600d4f85e407337e426e91d62e04d17eee4a4902f4de4460a441bb48a174e32c40f3dcb395124b458481c4352be4bff1ff439612deef03f1d9fc333827
+DIST icmake-9.02.02.tar.gz 371881 SHA256 18f673c66c39a392218725ab063ed1cec9f0b28ce00f3896123ecccdf855834a SHA512 7d62569d21224f4584fe6901690a53fa82882e5690ef296cd0fcd770bc19503ea5a5469a7b6eebc8b6719606630e24477801c3c5752c70efdb74a6f6d30bddb9 WHIRLPOOL 20dcad5287958f640f53fff2a0c220cb0c209fb93cc4e45826d7ac4465a8aba339866bef632ce4f869ba25107f1e0e58e6d6d17093389d53ffac6fa7d32f278b
+DIST icmake_7.22.01.orig.tar.gz 331750 SHA256 b522e7937e9d4f0bec738dfce371673e3c4a8bc9f4d209a51631e5ed59ba66c7 SHA512 a17dac0da186202ec5f5962a42963709ebc60f006cea003532b8709242d9e369e71fdc86fffc75ad82620a2c420a8f80c138d31e6570d0055cdfa0b69b63ca3a WHIRLPOOL c20084b28b212739a70f60b5a790461ae3e4b50c9cf9cd37ae50025f835fe4575c927dc5f2335d608436e2f51fb21fdc3eb57ce3ee2881915edec82d2964497e
+EBUILD icmake-7.22.01.ebuild 769 SHA256 3123e14d904d51ef579ca3b6568c362c974b2b0e1375f6d72dd379c5783482e3 SHA512 0dd486d8870955e76f3e978e21d7d6efbc0cca110b6b124b62c39f66197a7a3deffb65f2a4aff2ba895acb89fc77cf0b903e4a3e040519e931c54f9752d4a5e6 WHIRLPOOL f73581a2a2fa1f822705141392e31a29e62fb4b35d49ea85bdace29aa662d95c3ca67fdcc223c9f08f4d305408d282ae0fe1dfb76d95bf4b612cf61fbb9b64b4
+EBUILD icmake-9.00.00.ebuild 866 SHA256 a09a1f3d6976cb1db6a88cb2f1f101ccd90bb6e7949a026a6843283ae5f256e8 SHA512 06ce79eee5dd82c638cf37a2d10470455bed6236825c8cfd4fb30ee509607b9bfe6297d98e91c2b6f98be386f4dd897d4cb14a1a2abe30e3fb4759499f0bd2b9 WHIRLPOOL 7bc9cb9c4ed2306fa3cf231d9fa0cd24aa5459971e7d480cd6f3f5542a6b49527dd6b124836cc3d006d8fadcbd834a56523d5cd7155deeec493f2a24699eaafc
+EBUILD icmake-9.02.02.ebuild 983 SHA256 f78df9978797ec644a08a15aa90ddeb7906920e03de2f8eacf1c4f301f9b8f08 SHA512 0a2be376db0816a4d62626e96dc28129306d8dcd41ecdb08a86aef650031e69ed3881b594cb024ef6c9ebddb3d373c770577322bd0adcc5ad06310cab474916a WHIRLPOOL f589f16f8ba11e2da19812643d8515f68bcc9151854fa6a939a84870f8ed3c27aefb560a60a5fb61395893de2d9e057e964a02257bfa806c21991e1fd5536169
+MISC ChangeLog 3000 SHA256 efbc47022b8cc8b9bca898cd5256c10b684cf047fa010da93693c8d4bcd1fd8a SHA512 bf0e823d29a84c6355101719b1e1f1d045a07a45a1268c03a8f256b65386790c97a7f13647ffe5902cef9c56e2c976352ac06a096146ee30411740b652b45ac7 WHIRLPOOL 704beb7e87b6b8d66ffdb3e098f6ca8ad46608dc0b8073d072d933efe938ce81481ab693b2a1422b92c1c32ac895b043b33b6e7f2d2248a9b47d51fd0a2919b1
+MISC ChangeLog-2015 976 SHA256 913f5a5e59b92e19d6af631121dc72fe96bb9cdf1f903a2726b29980e1e88e51 SHA512 bb7fa51c6963264061b9b463cdecb7f9334d26a59fdc82af7b3d6c0fae9576f6ce312ee68c506e64b9c33ab127bfeee6e0f52435270676fd8dbe1ec9992f8d7f WHIRLPOOL 8225a64e85e72a268be172e2d26fbe24d93de0faf28917b5b513854b2b8b320129a91e087322ffeff1e28f89eaa41d9c82252fc051dafd58b8c52189bf6705af
+MISC metadata.xml 376 SHA256 0ff8cfe7609917df3c2beedfd1e5c067d52d4b118ac78641b11c2bfb53c149aa SHA512 3ead41cb13dd73abf13566a5ce6911b39d4081cea9a77360b1102b2c439c04a97dc98e311b34e87200db7ab53f7ed07d6982f363b6ea29e8115dd808f2d0c245 WHIRLPOOL f546070765742ba054fe7f386234c166f3ec6fb6ebbd5b3f9a2864a78253ce3227c70ea0b3d495154d1dfd84ebae5d925a5ad1d5442fe88bb4746568c675e27e
diff --git a/dev-util/icmake/files/icmake-7.20.00-ar.patch b/dev-util/icmake/files/icmake-7.20.00-ar.patch
new file mode 100644
index 000000000000..e3049f18f745
--- /dev/null
+++ b/dev-util/icmake/files/icmake-7.20.00-ar.patch
@@ -0,0 +1,17 @@
+--- icmake-7.20.00/icm_bootstrap
++++ icmake-7.20.00/icm_bootstrap
+@@ -31,12 +31,13 @@
+
+ if [ "${CFLAGS}" == "" ] ; then CFLAGS="-Wall -O2 -g"; fi
+ if [ "${CC}" == "" ] ; then CC="gcc"; fi
++if [ "${AR}" == "" ] ; then AR="ar"; fi
+
+ echo Creating tmp/libicrss.a
+
+ try cd rss
+ try ${CC} -c ${CFLAGS} ${GLB} *.c
+-try ar rs ../tmp/libicrss.a *.o
++try ${AR} rs ../tmp/libicrss.a *.o
+ rm *.o
+ cd ..
+
diff --git a/dev-util/icmake/files/icmake-9.00.00-ar.patch b/dev-util/icmake/files/icmake-9.00.00-ar.patch
new file mode 100644
index 000000000000..0eff669f8e39
--- /dev/null
+++ b/dev-util/icmake/files/icmake-9.00.00-ar.patch
@@ -0,0 +1,32 @@
+--- icmake/bootstrap/flags
++++ icmake/bootstrap/flags
+@@ -14,3 +14,7 @@
+ if [ "${CC}" == "" ] ; then
+ CC="gcc"
+ fi
++
++if [ "${AR}" == "" ] ; then
++ CC="ar"
++fi
+--- icmake/bootstrap/functions
++++ icmake/bootstrap/functions
+@@ -35,7 +35,7 @@
+
+ echo -n .
+
+- try ar crs ../tmp/lib${program}.a */*.o
++ try ${AR} crs ../tmp/lib${program}.a */*.o
+
+ echo -n .
+
+--- icmake/rss/icm_bootstrap
++++ icmake/rss/icm_bootstrap
+@@ -8,7 +8,7 @@
+ echo -n .
+ try ${CC} -c ${CFLAGS} *.c
+ echo -n .
+-try ar rs ../tmp/libicrss.a *.o
++try ${AR} rs ../tmp/libicrss.a *.o
+ echo -n .
+ rm *.o
+ echo .
diff --git a/dev-util/icmake/files/icmake-9.02.02-verbose-build.patch b/dev-util/icmake/files/icmake-9.02.02-verbose-build.patch
new file mode 100644
index 000000000000..dde1af395152
--- /dev/null
+++ b/dev-util/icmake/files/icmake-9.02.02-verbose-build.patch
@@ -0,0 +1,11 @@
+--- icmake/bootstrap/functions
++++ icmake/bootstrap/functions
+@@ -2,7 +2,7 @@
+
+ try()
+ {
+- # echo $*
++ echo $*
+ $* || exit 1
+ }
+
diff --git a/dev-util/icmake/icmake-7.22.01.ebuild b/dev-util/icmake/icmake-7.22.01.ebuild
new file mode 100644
index 000000000000..ccb9d9c74efd
--- /dev/null
+++ b/dev-util/icmake/icmake-7.22.01.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit multilib toolchain-funcs eutils
+
+DESCRIPTION="Hybrid between a make utility and a shell scripting language"
+HOMEPAGE="https://fbb-git.github.io/icmake/ https://github.com/fbb-git/icmake"
+SRC_URI="mirror://sourceforge/${PN}/${P/-/_}.orig.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+src_prepare() {
+ sed -e "/^#define LIBDIR/s/lib/$(get_libdir)/" \
+ -e "/^#define DOCDIR/s/${PN}/${PF}/" \
+ -e "/^#define DOCDOCDIR/s/${PN}-doc/${PF}/" \
+ -i INSTALL.im || die
+
+ epatch "${FILESDIR}"/${PN}-7.20.00-ar.patch
+ tc-export AR CC
+}
+
+src_compile() {
+ ./icm_bootstrap "${EROOT}" || die
+}
+
+src_install() {
+ ./icm_install all "${ED}" || die
+}
diff --git a/dev-util/icmake/icmake-9.00.00.ebuild b/dev-util/icmake/icmake-9.00.00.ebuild
new file mode 100644
index 000000000000..2fd35d977fce
--- /dev/null
+++ b/dev-util/icmake/icmake-9.00.00.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit toolchain-funcs
+
+DESCRIPTION="Hybrid between a make utility and a shell scripting language"
+HOMEPAGE="https://fbb-git.github.io/icmake/ https://github.com/fbb-git/icmake"
+SRC_URI="https://github.com/fbb-git/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+S=${WORKDIR}/${P}/${PN}
+
+src_prepare() {
+ local PATCHES=( "${FILESDIR}"/${P}-ar.patch )
+
+ sed -e "/^#define LIBDIR/s/lib/$(get_libdir)/" \
+ -e "/^#define DOCDIR/s/${PN}/${PF}/" \
+ -e "/^#define DOCDOCDIR/s/${PN}-doc/${PF}/" \
+ -i INSTALL.im || die
+
+ tc-export AR CC
+
+ default
+}
+
+src_configure() {
+ ./icm_prepare "${EROOT}" || die
+}
+
+src_compile() {
+ ./icm_bootstrap "${EROOT}" || die
+}
+
+src_install() {
+ ./icm_install all "${ED}" || die
+}
diff --git a/dev-util/icmake/icmake-9.02.02.ebuild b/dev-util/icmake/icmake-9.02.02.ebuild
new file mode 100644
index 000000000000..5fb892980616
--- /dev/null
+++ b/dev-util/icmake/icmake-9.02.02.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit toolchain-funcs flag-o-matic
+
+DESCRIPTION="Hybrid between a make utility and a shell scripting language"
+HOMEPAGE="https://fbb-git.github.io/icmake/ https://github.com/fbb-git/icmake"
+SRC_URI="https://github.com/fbb-git/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+S=${WORKDIR}/${P}/${PN}
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-9.00.00-ar.patch
+ "${FILESDIR}"/${P}-verbose-build.patch
+)
+
+src_prepare() {
+ default
+
+ sed -e "/^#define LIBDIR/s/lib/$(get_libdir)/" \
+ -e "/^#define DOCDIR/s/${PN}/${PF}/" \
+ -e "/^#define DOCDOCDIR/s/${PN}-doc/${PF}/" \
+ -i INSTALL.im || die
+
+ # fix build issues (bug #589896)
+ append-cflags -std=gnu99
+
+ tc-export AR CC
+}
+
+src_configure() {
+ ./icm_prepare "${EROOT}" || die
+}
+
+src_compile() {
+ ./icm_bootstrap "${EROOT}" || die
+}
+
+src_install() {
+ ./icm_install all "${ED}" || die
+}
diff --git a/dev-util/icmake/metadata.xml b/dev-util/icmake/metadata.xml
new file mode 100644
index 000000000000..42bd66d89c38
--- /dev/null
+++ b/dev-util/icmake/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>radhermit@gentoo.org</email>
+ <name>Tim Harder</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">icmake</remote-id>
+ <remote-id type="github">fbb-git/icmake</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/idea-community/Manifest b/dev-util/idea-community/Manifest
new file mode 100644
index 000000000000..3f4f02ebf1b2
--- /dev/null
+++ b/dev-util/idea-community/Manifest
@@ -0,0 +1,3 @@
+DIST ideaIC-172.3757.52.tar.gz 442963100 SHA256 c719af3d538bef23d061ef62d4acbf503198ff62322a3c0c5b3c38ab7ac36c4f SHA512 a0178c5ef10aeab527bb8064840c53fff97bf9be468a4e5248b83dba96c5114878f5ff1e20436a67ee488580affa3fb3a2ea627407ed57b87949f64fc1a215d2 WHIRLPOOL 63987f00bb787ee2a3e44f216280e220e337a660f30859ee426a326bda09ff4d74707dc2d78b86774c61d409f7789bb8ea709e774f2930253d4d6836efdc3ac1
+EBUILD idea-community-2017.2.2.172.3757.52.ebuild 1918 SHA256 fced14837bf315bdbd8aa3b56fa8e4a9309b46f9b39acb07c2a076318cc32dfa SHA512 53ff12fab08f75925e1627e8400c27a7868e0dfb2a157b0f10b0feea34222f3e71e0eb3af274db1e3aa4a24ee96e15a8e11adc4bf083ac8fe4cf1673a8272dca WHIRLPOOL 21982b6aa44f1b1ffedf658fe9fa6bd4fc75b5cbe781c50345bdb81d43865255f9a82ca6aaf124222c349009a1e0d806e5f8c78fbc2a6e6f73898e764af00c7c
+MISC metadata.xml 533 SHA256 79861c835b64b6f20e6b0129b07305f822875674c58bbabc08c25ea987cf8af6 SHA512 b14bce0b72eb777929138e64a53b0069faf51ec4f1d8b3dbb24a9f2d7f9baf68d5e495e784c83c34c1190d52aea16de52485a815786de235091b75f2778d5e23 WHIRLPOOL f5a9c28181e8ce30adc5cb4aed2b691ef5c5ae9a8cf75fd49e6e1d699d7dda3761ada993720e9f7878892be5a3b4f878b9da8e2b7dc3313ef0238c8ff6da0a12
diff --git a/dev-util/idea-community/idea-community-2017.2.2.172.3757.52.ebuild b/dev-util/idea-community/idea-community-2017.2.2.172.3757.52.ebuild
new file mode 100644
index 000000000000..a4f2eb0c7987
--- /dev/null
+++ b/dev-util/idea-community/idea-community-2017.2.2.172.3757.52.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils versionator
+
+SLOT="0"
+PV_STRING="$(get_version_component_range 4-6)"
+MY_PV="$(get_version_component_range 1-3)"
+MY_PN="idea"
+
+# distinguish settings for official stable releases and EAP-version releases
+if [[ "$(get_version_component_range 7)x" = "prex" ]]
+then
+ # upstream EAP
+ KEYWORDS=""
+ SRC_URI="https://download.jetbrains.com/idea/${MY_PN}IC-${PV_STRING}.tar.gz"
+else
+ # upstream stable
+ KEYWORDS="~amd64 ~x86"
+ SRC_URI="https://download.jetbrains.com/idea/${MY_PN}IC-${MY_PV}.tar.gz -> ${MY_PN}IC-${PV_STRING}.tar.gz"
+fi
+
+DESCRIPTION="A complete toolset for web, mobile and enterprise development"
+HOMEPAGE="https://www.jetbrains.com/idea"
+
+LICENSE="IDEA
+ || ( IDEA_Academic IDEA_Classroom IDEA_OpenSource IDEA_Personal )"
+IUSE="-custom-jdk"
+
+DEPEND="!dev-util/${PN}:14
+ !dev-util/${PN}:15"
+RDEPEND="${DEPEND}
+ >=virtual/jdk-1.7:*"
+S="${WORKDIR}/${MY_PN}-IC-${PV_STRING}"
+
+QA_PREBUILT="opt/${PN}-${MY_PV}/*"
+
+src_prepare() {
+ if ! use arm; then
+ rm bin/fsnotifier-arm || die
+ fi
+ if ! use custom-jdk; then
+ if [[ -d jre ]]; then
+ rm -r jre || die
+ fi
+ fi
+}
+
+src_install() {
+ local dir="/opt/${PN}-${MY_PV}"
+
+ insinto "${dir}"
+ doins -r *
+ fperms 755 "${dir}"/bin/{idea.sh,fsnotifier{,64}}
+
+ if use custom-jdk; then
+ if [[ -d jre ]]; then
+ fperms 755 "${dir}"/jre/jre/bin/{java,jjs,keytool,orbd,pack200,policytool,rmid,rmiregistry,servertool,tnameserv,unpack200}
+ fi
+ fi
+
+ make_wrapper "${PN}" "${dir}/bin/${MY_PN}.sh"
+ newicon "bin/${MY_PN}.png" "${PN}.png"
+ make_desktop_entry "${PN}" "IntelliJ Idea Community" "${PN}" "Development;IDE;"
+
+ # recommended by: https://confluence.jetbrains.com/display/IDEADEV/Inotify+Watches+Limit
+ mkdir -p "${D}/etc/sysctl.d/" || die
+ echo "fs.inotify.max_user_watches = 524288" > "${D}/etc/sysctl.d/30-idea-inotify-watches.conf" || die
+}
diff --git a/dev-util/idea-community/metadata.xml b/dev-util/idea-community/metadata.xml
new file mode 100644
index 000000000000..695fd92bb182
--- /dev/null
+++ b/dev-util/idea-community/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>alicef@gentoo.org</email>
+ <name>Ferrazzi Alice</name>
+</maintainer>
+<longdescription lang="en">
+ Excel at enterprise, mobile and web development with Java, Scala and Groovy, with all the latest modern technologies and frameworks available out of the box.
+</longdescription>
+<use>
+ <flag name="custom-jdk">Install and use IntelliJ's custom JRE.</flag>
+</use>
+</pkgmetadata>
diff --git a/dev-util/idea-ultimate/Manifest b/dev-util/idea-ultimate/Manifest
new file mode 100644
index 000000000000..643972239573
--- /dev/null
+++ b/dev-util/idea-ultimate/Manifest
@@ -0,0 +1,4 @@
+DIST ideaIU-172.3757.52.tar.gz 625753104 SHA256 b5f33894abbf31786a17779bc11bfbe05f46cbbcd516fc2d48590411c44be95c SHA512 dd730a34f141f345f0af8fb7ee32c1e7a98ec54dcb5df5a644b49e94b7a6d2eb8b6a134ad3d77010e408299b71137b8bd578d3563200762144a747747bf28c0f WHIRLPOOL 0b7d659645801bff3263a13704bde66d2e43f9516f6ca1f3a26d3fb97ffe4f3322504bf8c6423554c2a9b7c4aaa5f13f215d2d9866812dc9a989a82e30c4f3ff
+EBUILD idea-ultimate-2017.2.2.172.3757.52.ebuild 2339 SHA256 20be0f62547b3cca6b9c4347cf24ed9d610b8da5a1aa3b72aa5c332b27d0a2f7 SHA512 40c6af842f8f3bc155e9084fc886234a4accdb725d5f04f0809b7fbec710c4b99e110a015e9f67b986da0bc04573a85f75d9694f08fb5ef494d1183a251aede3 WHIRLPOOL 0127fd30946d87a6e5f929acce6ded636f7be79d1560b9d231fa7681f73eea652a2069e9755aa6a4542db81210a0c4e64c435cbf18e97857547dbfe14aec0300
+MISC ChangeLog 11025 SHA256 b205058b3a1d2b05c58ee1c03effe16ac6867404ebc8d06ff63b2bd8c9c49e84 SHA512 7c4bb3b4f79f854698ae44fa0de16a2e117eb50be0066d14cac9ef02bf6d7f38d0dc2aab46d7274f6d8fed29702f472a0ab9d5cd22997f7f4a16a85692b42e44 WHIRLPOOL 9098cce5ca031eb7c58a5552f70cfd2f3736eb277fa08d9ffba339a65ca9e39dbd684910bd9943837fb77b9e68b1294bf078493057fba218a5abd8645180ca58
+MISC metadata.xml 535 SHA256 71013e56658995403b8ee82906c19cee9071488845cb6183a5729fae58a18281 SHA512 a01da16279cb79d0b6a0b806bdf78f1030877ab491de95461c5d27ee6c1c8565a580cba03dcbed836e438be9c7a94ea5958c91383cce1e40398622435f86bfe8 WHIRLPOOL 4aad20538f039c6bab128e21d6b886a066a07b21504f3637b133b81841b5c2c588492dbf44204a77ac2daa4e0419c02e094ab2346f570c0d7575ca227faadc22
diff --git a/dev-util/idea-ultimate/idea-ultimate-2017.2.2.172.3757.52.ebuild b/dev-util/idea-ultimate/idea-ultimate-2017.2.2.172.3757.52.ebuild
new file mode 100644
index 000000000000..088e87ce25bb
--- /dev/null
+++ b/dev-util/idea-ultimate/idea-ultimate-2017.2.2.172.3757.52.ebuild
@@ -0,0 +1,82 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils versionator
+
+SLOT="0"
+PV_STRING="$(get_version_component_range 4-6)"
+MY_PV="$(get_version_component_range 1-3)"
+MY_PN="idea"
+
+# distinguish settings for official stable releases and EAP-version releases
+if [[ "$(get_version_component_range 7)x" = "prex" ]]
+then
+ # upstream EAP
+ KEYWORDS=""
+ SRC_URI="https://download.jetbrains.com/idea/${MY_PN}IU-${PV_STRING}.tar.gz"
+else
+ # upstream stable
+ KEYWORDS="~amd64 ~x86"
+ SRC_URI="https://download.jetbrains.com/idea/${MY_PN}IU-${MY_PV}.tar.gz -> ${MY_PN}IU-${PV_STRING}.tar.gz"
+fi
+
+DESCRIPTION="A complete toolset for web, mobile and enterprise development"
+HOMEPAGE="https://www.jetbrains.com/idea"
+
+LICENSE="IDEA
+ || ( IDEA_Academic IDEA_Classroom IDEA_OpenSource IDEA_Personal )"
+IUSE="-custom-jdk"
+
+DEPEND="!dev-util/${PN}:14
+ !dev-util/${PN}:15"
+RDEPEND="${DEPEND}
+ >=virtual/jdk-1.7:*"
+S="${WORKDIR}/${MY_PN}-IU-${PV_STRING}"
+
+QA_PREBUILT="opt/${PN}-${MY_PV}/*"
+
+src_prepare() {
+ if ! use amd64; then
+ rm -r plugins/tfsIntegration/lib/native/linux/x86_64 || die
+ fi
+ if ! use arm; then
+ rm bin/fsnotifier-arm || die
+ rm -r plugins/tfsIntegration/lib/native/linux/arm || die
+ fi
+ if ! use ppc; then
+ rm -r plugins/tfsIntegration/lib/native/linux/ppc || die
+ fi
+ if ! use x86; then
+ rm -r plugins/tfsIntegration/lib/native/linux/x86 || die
+ fi
+ if ! use custom-jdk; then
+ if [[ -d jre ]]; then
+ rm -r jre || die
+ fi
+ fi
+ rm -r plugins/tfsIntegration/lib/native/solaris || die
+ rm -r plugins/tfsIntegration/lib/native/hpux || die
+}
+
+src_install() {
+ local dir="/opt/${PN}-${MY_PV}"
+
+ insinto "${dir}"
+ doins -r *
+ fperms 755 "${dir}"/bin/{idea.sh,fsnotifier{,64}}
+
+ if use custom-jdk; then
+ if [[ -d jre ]]; then
+ fperms 755 "${dir}"/jre/jre/bin/{java,jjs,keytool,orbd,pack200,policytool,rmid,rmiregistry,servertool,tnameserv,unpack200}
+ fi
+ fi
+
+ make_wrapper "${PN}" "${dir}/bin/${MY_PN}.sh"
+ newicon "bin/${MY_PN}.png" "${PN}.png"
+ make_desktop_entry "${PN}" "IntelliJ Idea Ultimate" "${PN}" "Development;IDE;"
+
+ # recommended by: https://confluence.jetbrains.com/display/IDEADEV/Inotify+Watches+Limit
+ mkdir -p "${D}/etc/sysctl.d/" || die
+ echo "fs.inotify.max_user_watches = 524288" > "${D}/etc/sysctl.d/30-idea-inotify-watches.conf" || die
+}
diff --git a/dev-util/idea-ultimate/metadata.xml b/dev-util/idea-ultimate/metadata.xml
new file mode 100644
index 000000000000..a6968e806582
--- /dev/null
+++ b/dev-util/idea-ultimate/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>alicef@gentoo.org</email>
+ <name>Ferrazzi Alice</name>
+</maintainer>
+<longdescription lang="en">
+ Excel at enterprise, mobile and web development with Java, Scala and Groovy, with all the latest modern technologies and frameworks available out of the box.
+</longdescription>
+<use>
+ <flag name="custom-jdk">Install and use IntelliJ's custom JRE.</flag>
+</use>
+</pkgmetadata>
diff --git a/dev-util/idutils/Manifest b/dev-util/idutils/Manifest
new file mode 100644
index 000000000000..fb2f8b05ab4e
--- /dev/null
+++ b/dev-util/idutils/Manifest
@@ -0,0 +1,11 @@
+AUX idutils-4.6-glibc-2.16.patch 523 SHA256 e3412945019d2d063dcf1f3b2433c8409a0182f3762fbe33026504ec319d1ae7 SHA512 de4bcdaf2f871de5eeaa026ec578f80dcae73695c65fd5bc7d16a8f377a3e1781805937407fa6e9b50f8ea22a9d1a4575eeea789aa5d5fdfd05456cdbf75896b WHIRLPOOL dfd2fd40805334c2638ef9231cf3d04badc06464bfbb034064ba0e30e48773489fdf2626e14b902157f7758901871842d85514ccf60c0800f8fe1c8ecb77c091
+DIST id-utils_4.2-1.diff.gz 6178 SHA256 125cca5aad92bc91348ac1508df2187833d371d08a02aef322e366747f530d82 SHA512 ebeb2f3d35e21d0286d26ea6d703dea1ffbddc943c165ee6414484580a22e2883ace07b8e6670b0e90b6305f0e883fd22d8723c2c62dee664bdd8ab6a2a6106a WHIRLPOOL f6420b25b3b0a0a2db22f890959fb24b4f95bb3e5bc6bbf3eb12b00a4bdeec1143ce081034041eb7c17f8a028cf5dcc56ec170c485d991395ad913758b00e4ab
+DIST idutils-4.2.tar.gz 706193 SHA256 c5740eebf02812e61963a5f90b2e0aed240fe8009853f508fda22b99f7f1fa99 SHA512 319036d449baec65617670fa4ca17e89348f1ed5916731ef2376d96d15f3da032b25ae17234da409c6e439561ccb30056ea22ee37494fd9b196129a21607de3b WHIRLPOOL e2eee7ea6976e3662a4865a3e1e0a6eeb26b37485bbbe2325e0033f1611ab6d42d0d9d9e1bd81d7de731aa6aa1bb85d984bee2b630a79028cad9f543cfef4cd1
+DIST idutils-4.5.tar.gz 1476520 SHA256 58d8a765e14eb436b3646ee13e5476d5042a4c48db94f2459f018dc79b982249 SHA512 c5b50c15cdd92d6caf8748c3b35e9d6f2dafb41abab31d83ed0fe95cffc77e1170ac6512424d94a9a61033a99bda2961a9ab339b66078c417ea39c1bd8fe1e11 WHIRLPOOL 2c8508e756c40248717ec9c713a11dd8709161dd51b92dc501ab5195abaf71c23afa43eba4713a7f4e03243f98922af6d0e6c8799c060239c11c54580e3ff579
+DIST idutils-4.6.tar.xz 1001496 SHA256 8181f43a4fb62f6f0ccf3b84dbe9bec71ecabd6dfdcf49c6b5584521c888aac2 SHA512 830fe4a36693e9bcc8def25982c1a76decac2076165158c39858106f928c1b6ff2bb941fcce7244357c4205c2ecc945b772c9f5a083c4fedb1b75eea0af5445e WHIRLPOOL 305952de779173b698ef8193b23484db2e56dd0fdfde757b1a6660babe638292c6d07005c7c89d3af1b78294ca57872a54507d4c2720fd92fb2609b356a55f0e
+EBUILD idutils-4.2.ebuild 1030 SHA256 59bc12aa441cdc2152d45bb8c695d4f5740131ac04c9baceb8308f7ac3d45abb SHA512 66a0317bc686294ba65b08f7200de33a07b163db90310952dd8dd78e93bf854ffcc69e2b167c53acb565edcdb7113448b8ac41a089b4003e7e32d34db65f83df WHIRLPOOL ca46b1cc48f47f828ad398a5603914c2c35c085def77188d99e8b3393b638970296f2d7bb97c53b8177566c658e4c3ccc1cecc2dd282d2b07c5a51c500063d08
+EBUILD idutils-4.5.ebuild 1068 SHA256 76d18a985b14301005dc52265a331797874d01831318ae2a99d0ff0f3f754f34 SHA512 53cfff637ddc40d96092c60d6604f98af3205d5c4e8a161a11a83e771cabf2b584ca471b42f0c5ccef5f2280b1698437217a8334e0175ab26eb61540c2172bb8 WHIRLPOOL 87e82b2222a5280111a04cc4f7d4a10989a0659e7ccc8c8ba4f64e7c87437222faf289f14daac5826bbe3f91c22ce37285f984d5e3afa775bf06d501e29d6dfe
+EBUILD idutils-4.6.ebuild 720 SHA256 a6da81ea597ca0a185c75af72b3346b63673e4ee53fcbd468cb823144e582de9 SHA512 0f35d7b81bc9b06df314b40666bc728316ad36f468f5d8cee602798beee5f960bafc1a8a151a67efa9ba50dbfd1b9b5a4ff1ad0a6786a6e9416b9eadce959072 WHIRLPOOL f5640c77db6a7e91ccfe18672efa7d494fe33a912d4801fdd57e19da17848d3dc6272b6d25da4ebf653f69f8c740a918ca0381db837834d229aba886d69640a4
+MISC ChangeLog 2501 SHA256 1cc12126793037a8fa5c0a1a3965d1c476eb0c544b31e60b663f9a39bb7cd92b SHA512 7f49d5897f86db23c4548029829280aa1c51f918f8c621af6241721e51785e12cae52e8829726800e5f9ff7e9c5a3b47223a60a52a5fe834f0ee846f350d0f33 WHIRLPOOL 8369e583c6cf7ddb100b7391f50332a7a7d64e29c652373c277039d1e74959d9952beece0eafea9f3a65a2b2ef1ed6b9a71acf241b4ff9cd406cfe5a92331f61
+MISC ChangeLog-2015 922 SHA256 ac1cd6765893073bacdc0f61a53f7a8b682d14e419f04e9c15cc2c78f4d562b6 SHA512 99b8b8e04c69cbbaf528bd53d11307ff21d61df16718e697689f39db0fca433c9f052314a016536da3067f3d79bee92b7f41246d45aee39e877bab71cd2d7169 WHIRLPOOL 276b705812564d258ec96f7cfa70f4d74fb39a37dcae97b2b169aced9d5db6c3c517cbef6ff29a28edeb37208493a72aaf3ea81ac94b4b669495e4636583373c
+MISC metadata.xml 582 SHA256 f4cd125dd792887eaea3b622f89c745dea2aef53825386c871d70d6a1f0a5623 SHA512 029baafbdd90c0a269cccd061043d59ade95f0b405056ccce06b5b5667b74ec4167e1ad3617ca2230975e3f5f782218a0043704e779707d9bad21a9d808fa777 WHIRLPOOL c8a02e07110b082a65ff9244dbde655feeaa3390c81ad7e2133143189f437a6518c5aab68acc2c9557ec8ec3776a32a3fe4b64fc5ec0c9bc62e9179191bb7c9c
diff --git a/dev-util/idutils/files/idutils-4.6-glibc-2.16.patch b/dev-util/idutils/files/idutils-4.6-glibc-2.16.patch
new file mode 100644
index 000000000000..c8659f071e26
--- /dev/null
+++ b/dev-util/idutils/files/idutils-4.6-glibc-2.16.patch
@@ -0,0 +1,15 @@
+--- idutils-4.6_O/lib/stdio.in.h 2012-01-28 17:26:05.000000000 +0100
++++ idutils-4.6/lib/stdio.in.h 2013-06-13 18:38:29.787232848 +0200
+@@ -712,10 +712,12 @@
+ # undef gets
+ # endif
+ _GL_CXXALIASWARN (gets);
++# if HAVE_RAW_DECL_GETS
+ /* It is very rare that the developer ever has full control of stdin,
+ so any use of gets warrants an unconditional warning. Assume it is
+ always declared, since it is required by C89. */
+ _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
++# endif
+ #endif
+
+
diff --git a/dev-util/idutils/idutils-4.2.ebuild b/dev-util/idutils/idutils-4.2.ebuild
new file mode 100644
index 000000000000..06fe5867b621
--- /dev/null
+++ b/dev-util/idutils/idutils-4.2.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils elisp-common
+
+DESCRIPTION="Fast, high-capacity, identifier database tool"
+HOMEPAGE="https://www.gnu.org/software/idutils/"
+DEB_PN="id-utils" # old upstream name for it
+DEB_P="${DEB_PN}_${PV}"
+DEB_PR="1"
+SRC_URI="mirror://gnu/${PN}/${P}.tar.gz
+ mirror://debian/pool/main/${PN:0:1}/${DEB_PN}/${DEB_P}-${DEB_PR}.diff.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE="emacs nls"
+
+RDEPEND="emacs? ( virtual/emacs )
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ nls? ( sys-devel/gettext )"
+
+src_unpack() {
+ unpack ${P}.tar.gz
+ cd "${S}"
+ epatch "${DISTDIR}"/${DEB_P}-${DEB_PR}.diff.gz
+ epatch "${S}"/debian/patches/*.dpatch
+}
+
+src_compile() {
+ use emacs || export EMACS=no
+ econf \
+ $(use_enable nls) \
+ "$(use_with emacs lispdir "${SITELISP}/${PN}")"
+ emake || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dodoc NEWS README* ChangeLog AUTHORS THANKS TODO
+}
diff --git a/dev-util/idutils/idutils-4.5.ebuild b/dev-util/idutils/idutils-4.5.ebuild
new file mode 100644
index 000000000000..ed33adb92467
--- /dev/null
+++ b/dev-util/idutils/idutils-4.5.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils elisp-common
+
+DESCRIPTION="Fast, high-capacity, identifier database tool"
+HOMEPAGE="https://www.gnu.org/software/idutils/"
+#DEB_PN="id-utils" # old upstream name for it
+#DEB_P="${DEB_PN}_${PV}"
+#DEB_PR="1"
+SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
+#mirror://debian/pool/main/${PN:0:1}/${DEB_PN}/${DEB_P}-${DEB_PR}.diff.gz
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="emacs nls"
+
+RDEPEND="emacs? ( virtual/emacs )
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ nls? ( sys-devel/gettext )"
+
+src_unpack() {
+ unpack ${P}.tar.gz
+ if [ -n "${DEB_PR}" ]; then
+ cd "${S}"
+ epatch "${DISTDIR}"/${DEB_P}-${DEB_PR}.diff.gz
+ epatch "${S}"/debian/patches/*.dpatch
+ fi
+}
+
+src_compile() {
+ use emacs || export EMACS=no
+ econf \
+ $(use_enable nls) \
+ "$(use_with emacs lispdir "${SITELISP}/${PN}")"
+ emake || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dodoc NEWS README* ChangeLog AUTHORS THANKS TODO
+}
diff --git a/dev-util/idutils/idutils-4.6.ebuild b/dev-util/idutils/idutils-4.6.ebuild
new file mode 100644
index 000000000000..31f8419d488a
--- /dev/null
+++ b/dev-util/idutils/idutils-4.6.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+inherit elisp-common eutils
+
+DESCRIPTION="Fast, high-capacity, identifier database tool"
+HOMEPAGE="https://www.gnu.org/software/idutils/"
+SRC_URI="mirror://gnu/${PN}/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="emacs nls"
+
+RDEPEND="emacs? ( virtual/emacs )
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ nls? ( sys-devel/gettext )"
+
+DOCS="AUTHORS ChangeLog NEWS README* THANKS TODO"
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-4.6-glibc-2.16.patch"
+}
+
+src_configure() {
+ use emacs || export EMACS=no
+ econf \
+ $(use_enable nls) \
+ $(use_with emacs lispdir "${SITELISP}/${PN}")
+}
diff --git a/dev-util/idutils/metadata.xml b/dev-util/idutils/metadata.xml
new file mode 100644
index 000000000000..9c67f75d7191
--- /dev/null
+++ b/dev-util/idutils/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>robbat2@gentoo.org</email>
+</maintainer>
+<longdescription>
+ Fast, high-capacity, identifier database tool.
+ Actually, the term `identifier' is too limiting--`mkid' stores tokens, be
+ they program identifiers of any form, literal numbers, or words of
+ human-readable text. Database queries can be issued from the command-line,
+ or from within emacs, serving as an augmented tags facility.
+</longdescription>
+</pkgmetadata>
diff --git a/dev-util/igprof/Manifest b/dev-util/igprof/Manifest
new file mode 100644
index 000000000000..07ea31dcda78
--- /dev/null
+++ b/dev-util/igprof/Manifest
@@ -0,0 +1,5 @@
+DIST igprof-5.9.11.tar.gz 174304 SHA256 af65c7f8ba12730d1e362155c46856b2241c15e0113a2211bb4e75b47b851065 SHA512 1c6a16e286243a997b9ce798f2403597e1d8178a7b4652e38e9afbcd48c84d868dc83ddee7eb76243096f21b9cd9c0337641bba840008c24429e60454cff1444 WHIRLPOOL 88a67dae1b9344c790814dab853303e9d7ded8e23054e1ca74c90c39d8cd8365de47587a152bc64f93aa2ee62e69d5a969fcf4049268d806e3a298bd30461289
+EBUILD igprof-5.9.11.ebuild 689 SHA256 8028707eba1104d911da98abf791cd79a8bd4c7c90fcea9d76d1d57fc02f4a46 SHA512 d7e1b8a465b6ed7c407338d3e1a33e7c7f1b011c00bad309099b7a47473af2854405c1c8e6ff8e0a943e270820f74721036db6d00f81069efbe95271e49a20f1 WHIRLPOOL aa4fb731653f1f5a2217ebe85c24e6d1569df74857b64b955f6dfd4c4be3c9993b2750ba94355bae6c0aefb887a06c7fb5cc2bb562fcb6d7ea0bdb308ec4ee24
+MISC ChangeLog 2318 SHA256 e4ad7144a74305bf4b2847f298f8c0c720ecfdf82f6881988bbe41486e887fd5 SHA512 8a444d9bc8085d35505260d6d2ad2752f1bebe03ba7890ee5289bd5381cc8907157a020e0dc2ef90dcda23b98e6a76afd02dbb6daea70b745a5c3f32247ac8f5 WHIRLPOOL 52f2b79679ae5b2c972275f6b8cb5b79fd30d7dde1160904407f9f1863688034eab53c40b584b0b160d07b4e1f90f786352cf5bcdc87d39a9e302ecaa5c99400
+MISC ChangeLog-2015 372 SHA256 c14cd0a4a9c47ad48f56719e5f900cafd56ffff6609658d5b87ddef497fd7ad6 SHA512 a37e5f45280848b5a7142e4cf854dc797b66b52ef1d429dd7c25c8d1957721fec734c2b7a698a2afd9d4e9822170d6f45f61701e4b9ccb42ff291c28a2586c0c WHIRLPOOL 6bc2fb1264c4fb332cfbcb77803977ee3b0e419f476e219a42889183aac9ad11d4813797dc5b8863c069c9c4f98a724349a8450e06ed9828685aa6a426443f8c
+MISC metadata.xml 295 SHA256 d64d93599bdfdbe045c373444c29dd82d765712464397e10e62272edd557c834 SHA512 da6b377b85e03955329c76f8f05d5933e63fdb826848635b7f6f2df07bfd66dad1592f3b4786556551ebf69fccc7e09475216389a1fda68a00da80a0e8966ae5 WHIRLPOOL fe57ae0678a9d601dbdb6c1d718a5078b70301f2a3a4b74b66612825bbc6d44ecc219fcdd79bf2049e7621cc07095b9af5114cd029e1a3dd980a6720e55c449b
diff --git a/dev-util/igprof/igprof-5.9.11.ebuild b/dev-util/igprof/igprof-5.9.11.ebuild
new file mode 100644
index 000000000000..5199159f060d
--- /dev/null
+++ b/dev-util/igprof/igprof-5.9.11.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit cmake-utils
+
+DESCRIPTION="Ignominous Profiler for analysing application memory and performance characteristics"
+HOMEPAGE="http://igprof.org"
+SRC_URI="https://github.com/ktf/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug"
+
+# pcre is automagic dependency, let's make it unoptional
+# libatomic_ops is listed as dependency, but isn't actually used by package
+DEPEND="dev-libs/libpcre
+ sys-libs/libunwind"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ sed -e 's/-Werror//g' -i CMakeLists.txt
+ cmake-utils_src_prepare
+}
diff --git a/dev-util/igprof/metadata.xml b/dev-util/igprof/metadata.xml
new file mode 100644
index 000000000000..38187d691182
--- /dev/null
+++ b/dev-util/igprof/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>maksbotan@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">ktf/igprof</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/imediff2/Manifest b/dev-util/imediff2/Manifest
new file mode 100644
index 000000000000..88fb577ff675
--- /dev/null
+++ b/dev-util/imediff2/Manifest
@@ -0,0 +1,5 @@
+DIST imediff2_1.1.2.orig.tar.gz 17974 SHA256 08cff1c6638bde687cc8428ed45c3a7947b6d51ff1b1cd613f8d1062f03e8916 SHA512 54d196d67107283bc3339eba30acb1c60972f256a268e86da397e0bdafa05220facc7979638a6a917b0c2dc7171edc3aa6b188295c9f40e9debf87a63731e748 WHIRLPOOL 59f934c283bf352fc6fbf8d4ce71fd92cee33dcef18f492f10cbdad3c2dfc6137fb9a175c9915bb7c83cb423f72647d8034f04dc5f449d31fa461cba3f22b666
+EBUILD imediff2-1.1.2-r3.ebuild 747 SHA256 91908deeeed5f33bff0e62309af53870143ade8d07096c2dd909ab1ca53afb3e SHA512 203c0bc0da7d5e56321bc00e88ee2b9098fd21f30c2923e6348f20dfddc472fba57d3403741b8fe71618696847201d69cde8c75e48525990ae3953f8a5158480 WHIRLPOOL 25a3a3969a5893da8a7135945ca462a2662d00a77598e93db0e089463abc298db41773b6a4d7dc2435f283018b9fe75ecf164155c11130e50ab7cfed01af74c3
+MISC ChangeLog 2185 SHA256 c8c19e1241933947add60c8442b51e14024ddf4e43c112070e2c1c3cc656ba5d SHA512 9c1bcd8f723730034a22c37f8bba196e6f6dd80d48c575e782054ee298d80c71a7580b2a90121b4439e5632a7fa69d60f057666d8be17b95f29980fac0c83347 WHIRLPOOL 75e69a98222c3e43469fe46f763f6c1b87cd7b7953f72fd68c1cdb3eb28129e57a778e017f4253aea8c0a3a35bd77e259ed55664bfaab3420aa8d8f5002ecf4b
+MISC ChangeLog-2015 1647 SHA256 65dc767f708f9fa4a7542e14178106539267da8bb4a4fcd536f62d38200c560a SHA512 db835e88dc0b5b1baf5c2076fb2525b942277d5a3a24489f352f9be9fcc82894cfea3329db8200f5062ff7a98cad8b3d6f8c79bb2729d5745d6fa1c4a5c5a03b WHIRLPOOL d7de18d244e93f220a4f5a8c84ff8e69c0c810ae10c0e88aaa5de6c9e309b0cf3c1add0ac800623251ae73b2adb16132b48a60b32218aca158099cf3bb0d98c3
+MISC metadata.xml 250 SHA256 e950c68e7a4e72f8096556d6bb21fea300438999061af252e040672516b06351 SHA512 a57d332a86b16f67fe2896c47c6cc9ba57f602b65943080289c816a9d0f70b779f61cde882034cc1c2adda79208865dae0bf43d95deea4556e840b785e062343 WHIRLPOOL 7804a583de98e5ebb9478b76dd2a78071f8fe6973d88692ae4ec9107dd1dd7c54fd11baf66339a9ad4267da708ffaae3d8b1d0bf332db2d5db9feac46b6856f1
diff --git a/dev-util/imediff2/imediff2-1.1.2-r3.ebuild b/dev-util/imediff2/imediff2-1.1.2-r3.ebuild
new file mode 100644
index 000000000000..7291ee8d4707
--- /dev/null
+++ b/dev-util/imediff2/imediff2-1.1.2-r3.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="ncurses"
+
+inherit python-single-r1 versionator
+
+MY_P=${PN}_$(replace_version_separator 3 -)
+
+DESCRIPTION="An interactive, user friendly 2-way merge tool in text mode"
+HOMEPAGE="http://elonen.iki.fi/code/imediff/"
+SRC_URI="mirror://debian/pool/main/i/${PN}/${MY_P}.orig.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="${PYTHON_DEPS}"
+RDEPEND="${DEPEND}"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+S=${WORKDIR}/${PN}
+
+src_compile() {
+ # Otherwise the docs get regenerated :)
+ :
+}
+
+src_install() {
+ python_doscript imediff2
+ dodoc AUTHORS README
+ doman imediff2.1
+}
diff --git a/dev-util/imediff2/metadata.xml b/dev-util/imediff2/metadata.xml
new file mode 100644
index 000000000000..5c23291b5215
--- /dev/null
+++ b/dev-util/imediff2/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>dev-zero@gentoo.org</email>
+ <name>Tiziano Müller</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-util/include-what-you-use/Manifest b/dev-util/include-what-you-use/Manifest
new file mode 100644
index 000000000000..a9e5fc5e0114
--- /dev/null
+++ b/dev-util/include-what-you-use/Manifest
@@ -0,0 +1,8 @@
+DIST include-what-you-use-3.9.src.tar.gz 446773 SHA256 bbea3ddbd2e0990f4edd92a994a94ca24e2ee0edba6bd5612f62e872554d777a SHA512 dd7990fa4112ddb0434807efd9dcf0f77bbecaa61eab51be24428f8e45b9321c7647a979278f3f1266ba9be05c6f1de536fc084613d38638b795248001ce4b44 WHIRLPOOL 67b4acabb887cb80c290817ab848a115b2559bcc5187f05e320ea4bdef6e9915766d824069ce1f060058ba3597b85223419fb4d932ebb536d25ef0a6de64aee2
+DIST include-what-you-use-4.0.src.tar.gz 437340 SHA256 8f6d4a279afcbbfa7247a97a03d9abc1d6834954eec7ba733519401392b328c6 SHA512 c96b78ec8f8289bfd7830acaf533aea0077bb36311d3b8bb7f31464c1b3a5b3f353b24e81ffc581811b4083d3b5959e4e947e3a3d16cb7c77de00b05b9972a90 WHIRLPOOL 63fc4df0ca3be81a8856aec22bffe3dbdebde060a91c85b38ad2e1202d8e20291d006c1739851434cc5c98dc6b3b66b9287623a8576976c741dfd6c08f5677c6
+EBUILD include-what-you-use-3.9.ebuild 957 SHA256 f704bc396e0970ae3f5e2960ff138495e95abe522f0e777dfbfb660644276e36 SHA512 c3ed6b91a50f115617287d7d2e0979a23a790e2a24b7adb69fd15d657ac0aa42724c2e46bb9b5695a14ed58f3a073bafd37ea876d4d30689071f4aa3ef62ec5d WHIRLPOOL 12433143d8db209b5b7c6565757d756c5337b1f238d704e2cd39a33d35074c6605e2f9d3530fcda1a7a4a1402ccbd68ae915e85b02cfe68969a0f41a4ecd148c
+EBUILD include-what-you-use-4.0-r1.ebuild 1242 SHA256 e3916b7d10ed96eb09c571a53e19c90cc2b4d91f18b5d6b232cb71cee2dbe012 SHA512 8ee4c53f63de66ae87d7fc5142522932444879ac7efc9d32101b76721d7b06dff90effba619c6e86035056ed4fbcb6b353df8507640507b7c196aa1c7bf2cbc0 WHIRLPOOL 79949b256d03b5599796d4fb0789b5579029fdcf4cac90654ae91bf83ea5d385208415d14cca05a636481709fbd251284e6775b149f404b5aa27b3c5275d1b0e
+EBUILD include-what-you-use-4.0.ebuild 893 SHA256 59d94497183c91e4d6b7edcd0424742fb1d66fc0b509aaec1a09448aabf20407 SHA512 ac4f400766a6458c07554d9abdb98730f1a2f41e7b326589d159a7a077e6a76c30967cee4f7247eb984534bdb36fca75c40d4a1600baba10f2f9e561d290ceb5 WHIRLPOOL cbb1caadeb1b089af73b4ce43bb854114ca8a55e2e867e1658293765685b6f273969d46fe00b8a1bb6e10aa2fd1daff7ee445a180c2f55307261b0dd4120988d
+MISC ChangeLog 4716 SHA256 b8e1219ba64d9799148228fd7f35986e09b702d296f21a7e13563305e429158c SHA512 708e10067f278977a60fd8b31dc19d6830e57b582970c58711e399d0b673ebab58b5e9b119babc4d6bace94c68822c3294e7b1234e249e93e12bba25535f5094 WHIRLPOOL 463bebd9ea7fec4b0fdd2547ba7370733df0dbfd792fd42405171715cd6eccb4c99aba90e856800d0241a5d1914b0516c0450d5dcf3b9d9e77aaf5d29b0dcf02
+MISC ChangeLog-2015 1268 SHA256 32d05ad35a052c3e0585161ba400599850ed18b63d19381993976da71a486188 SHA512 3796f7114c980f0f907ec948978761380a60b00cbdef9321861f8c876534a3d1a910645275656981d77bac96f009663a9373d6fcb2a253dc83f6826060b92891 WHIRLPOOL bbac07fb5c8af0a9f9ed101741c80d21c86dc1a605f6c7642397bec771799f07476b71aaf57b0fa82313304abd4ed84e6cdc2ecd0e8c8bfbe7bfa2951673fbb4
+MISC metadata.xml 357 SHA256 3be167dec76700c7fcdfa29ec5776eb3888fdded384d4278a7d3d651f7e4e730 SHA512 03c298d184adee1c8bd96855ba3856dbc6797f6f866397485cc10c3e02956f7bb04811a086e9cf50bbd6f996011d08ca2d272aa4b06f13ee62af5a585f67b492 WHIRLPOOL 46c28f762f786bbe42c5cb6a4bdbd6a5a584782e200d19465d01492d07cac806271ac3178fbc6586ee951b574fe69e8f4defa70d29792f3fb7d887d0ec7d53a1
diff --git a/dev-util/include-what-you-use/include-what-you-use-3.9.ebuild b/dev-util/include-what-you-use/include-what-you-use-3.9.ebuild
new file mode 100644
index 000000000000..d70ae3b9f7e2
--- /dev/null
+++ b/dev-util/include-what-you-use/include-what-you-use-3.9.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_{4,5} )
+
+inherit cmake-utils flag-o-matic python-single-r1
+
+WEIRD_UPSTREAM_VERSION=0.7
+
+DESCRIPTION="Find unused include directives in C/C++ programs"
+HOMEPAGE="https://include-what-you-use.org/"
+SRC_URI="http://include-what-you-use.org/downloads/${PN}-${WEIRD_UPSTREAM_VERSION}.src.tar.gz -> ${P}.src.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="=sys-devel/llvm-${PV}*
+ =sys-devel/clang-${PV}*
+ ${PYTHON_DEPS}
+"
+DEPEND="${RDEPEND}"
+
+REQUIRED_USE=${PYTHON_REQUIRED_USE}
+
+S=${WORKDIR}/llvm/tools/clang/tools/${PN}
+
+src_prepare() {
+ python_fix_shebang .
+ default
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DIWYU_LLVM_INCLUDE_PATH=$(llvm-config --includedir)
+ -DIWYU_LLVM_LIB_PATH=$(llvm-config --libdir)
+ )
+ cmake-utils_src_configure
+}
+
+src_test() {
+ "${EPYTHON}" run_iwyu_tests.py
+}
diff --git a/dev-util/include-what-you-use/include-what-you-use-4.0-r1.ebuild b/dev-util/include-what-you-use/include-what-you-use-4.0-r1.ebuild
new file mode 100644
index 000000000000..4876be740986
--- /dev/null
+++ b/dev-util/include-what-you-use/include-what-you-use-4.0-r1.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
+
+inherit cmake-utils flag-o-matic llvm python-single-r1
+
+DESCRIPTION="Find unused include directives in C/C++ programs"
+HOMEPAGE="https://include-what-you-use.org/"
+SRC_URI="https://github.com/${PN}/${PN}/archive/clang_${PV}.tar.gz -> ${P}.src.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="sys-devel/llvm:4
+ sys-devel/clang:4
+ ${PYTHON_DEPS}
+"
+DEPEND="${RDEPEND}"
+
+REQUIRED_USE=${PYTHON_REQUIRED_USE}
+
+S=${WORKDIR}/${PN}-clang_${PV}
+
+pkg_setup() {
+ llvm_pkg_setup
+ python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ python_fix_shebang .
+ default
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DIWYU_LLVM_INCLUDE_PATH=$(llvm-config --includedir)
+ -DIWYU_LLVM_LIB_PATH=$(llvm-config --libdir)
+
+ # Note [llvm install path]
+ # Unfortunately all binaries using clang driver
+ # have to reside at the same path depth as
+ # 'clang' binary itself. See bug #625972
+ # Thus as a hack we install it to the same directory
+ # as llvm/clang itself.
+ -DCMAKE_INSTALL_PREFIX="$(get_llvm_prefix)"
+ )
+ cmake-utils_src_configure
+}
+
+src_test() {
+ "${EPYTHON}" run_iwyu_tests.py
+}
diff --git a/dev-util/include-what-you-use/include-what-you-use-4.0.ebuild b/dev-util/include-what-you-use/include-what-you-use-4.0.ebuild
new file mode 100644
index 000000000000..cb7b16cd717e
--- /dev/null
+++ b/dev-util/include-what-you-use/include-what-you-use-4.0.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
+
+inherit cmake-utils flag-o-matic python-single-r1
+
+DESCRIPTION="Find unused include directives in C/C++ programs"
+HOMEPAGE="https://include-what-you-use.org/"
+SRC_URI="https://github.com/${PN}/${PN}/archive/clang_${PV}.tar.gz -> ${P}.src.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="=sys-devel/llvm-${PV}*
+ =sys-devel/clang-${PV}*
+ ${PYTHON_DEPS}
+"
+DEPEND="${RDEPEND}"
+
+REQUIRED_USE=${PYTHON_REQUIRED_USE}
+
+S=${WORKDIR}/${PN}-clang_${PV}
+
+src_prepare() {
+ python_fix_shebang .
+ default
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DIWYU_LLVM_INCLUDE_PATH=$(llvm-config --includedir)
+ -DIWYU_LLVM_LIB_PATH=$(llvm-config --libdir)
+ )
+ cmake-utils_src_configure
+}
+
+src_test() {
+ "${EPYTHON}" run_iwyu_tests.py
+}
diff --git a/dev-util/include-what-you-use/metadata.xml b/dev-util/include-what-you-use/metadata.xml
new file mode 100644
index 000000000000..06df0e17b2df
--- /dev/null
+++ b/dev-util/include-what-you-use/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>slyfox@gentoo.org</email>
+ <name>Sergei Trofimovich</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">include-what-you-use/include-what-you-use</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/indent/Manifest b/dev-util/indent/Manifest
new file mode 100644
index 000000000000..5d71c6305f0e
--- /dev/null
+++ b/dev-util/indent/Manifest
@@ -0,0 +1,7 @@
+AUX 2.2.11-segfault.patch 369 SHA256 63c66b49831a90c5191cd3295d17a4e1888d8fa2a0b02589448de3b78d4e0293 SHA512 342600d476849d936d022e54ea0b6b244a956b11b99cc94dc9084f224d42ea2829640cde7a98e43efd0ee1fd88eb7147ba960af8075d290cd14a9d549abec022 WHIRLPOOL 37dc81ca3a2f67122ddfcf618b4aea5a3dc0846b6bd3413bbef972f19ba3fbd91dce94258dedfdbb0a3f624e58d8c675e832d8008f6ccfe86bccb8791a5cb838
+AUX 2.2.11-texi2html-5.patch 2666 SHA256 34451f004e0f9750df4a239cad6e30c0e63c702054f41b27c98eeb8fbcf6a356 SHA512 0356443bf7f9fd066113ddb7f59b8126f4b32f7dd8be9fa661ecfd4436ed0652d9229ac867365486f04bc7cb3623e3e8792549de4678f03e4f2bd582e4ee2d67 WHIRLPOOL b0739d768c22524f56188e2c2588047ffa35475267aad7b623761011c0aeb7643a75d9ea46625e29badbc3121cdcbbb6391993ef001a2b6b6ff6b9b959a94cf4
+DIST indent-2.2.11.tar.gz 778563 SHA256 aaff60ce4d255efb985f0eb78cca4d1ad766c6e051666073050656b6753a0893 SHA512 f5670e5edc76b9d599ef9e8cc498e13ac15e10eb6a8d674e1612918c4b67ffb15c94d73b9590434e0cdea6ead4b8d1f5bcda1c2f3838acbdeb4d732a0bea89be WHIRLPOOL b50d6af34af8e08febde01fc70a280e8fdce0eb25b2e7e23f9d20bf08afc055c98b01c28f971c05bf4f8f52d9a70af10265329b5e146b2c6e64481aecb9fb8ad
+EBUILD indent-2.2.11-r1.ebuild 1443 SHA256 ca774a10fec9626a2c579f2a493c385e7474bbdd3dcf24c80fac7ec7d7ba73d2 SHA512 7ee3e4fcad6c3da4818113036a744e877df1c3db722419c710e58949f0f8ecf29194c54b379baca7b8d46c9477f6c4980ec04ec97798f2eb6c0d9403a8f90323 WHIRLPOOL 61a5c9b275d2d362064a68233ea757179057292bbba42185b443e9c56b9f7fedc9b33c15bb913c3c735d62194bac25b098f0ac84177c7e835baba6dd43ed4fa5
+MISC ChangeLog 2522 SHA256 0e5e180ebf9fe9ba3056ecba8f165c6eab572df39e0dad52bad2901e0fc7384f SHA512 706fe90e060131b367b7d6a1394db633afb93f3fe845dcea060381cee60b9e155e1a6881f54d83185c3ba12dd68b99db147dd938dc986bf454923fb77cca35f6 WHIRLPOOL 2406ded0012fd436c9389b03a4734354c74e007150cbad2c794587bb8d290f4651ad0848788aea4c164ef1ca94fae83cab977f1ff639ccbccf6a626cef88a81c
+MISC ChangeLog-2015 9140 SHA256 a4e57d07aba5d9e5ec9aa5d2b402a86b2d9a1967ca2167ead4e80cce111f3a2a SHA512 894f833b5a90e46157890bf1e3fdd93df55cec3e0944904246a7a22aaf7903b771ac20ed50eaea3fc87b35d37bfee5978529dff826438b3f103fcce8922d4851 WHIRLPOOL c5499d212815b100800bed0070a30a8c34bb76bb9a7415c4511b0a5b47f4bdd425e907f851b360e94b7986afd5de3416cd35d118c6ce6bb7ee5b4a2af044d5c3
+MISC metadata.xml 371 SHA256 1a50668dea7a82328a89fda816982386261af5c3876fe844b8abe1a2dcec8724 SHA512 c3859c430b4d976869789476e59c66bd2967802748abc9a3f53395d170114c21ca11e81c6046fa160ad31d422188dc92f63c9df947ac75ef31bcb1965a7f5dd8 WHIRLPOOL 082221442371914f5a7d2a9e4c8a9e64eeb15515b6bbe315ddf7f6e91844d1a71b1c588cb3dff2268d023dbac6c14b0349acabf1c9fa317e12c3eef2dcb75a63
diff --git a/dev-util/indent/files/2.2.11-segfault.patch b/dev-util/indent/files/2.2.11-segfault.patch
new file mode 100644
index 000000000000..e91922480951
--- /dev/null
+++ b/dev-util/indent/files/2.2.11-segfault.patch
@@ -0,0 +1,16 @@
+--- a/man/texinfo2man.c
++++ b/man/texinfo2man.c
+@@ -287,6 +287,13 @@
+ char buf[1024];
+ int line_no = 0;
+
++ if (argc != 3)
++ {
++ fprintf(stderr, "Usage: %s <man template> <info file>\n", argv[0]);
++ fprintf(stderr, " The man page will be written to stdout.\n");
++ return -1;
++ }
++
+ texinfoname = argv[2];
+
+ in = fopen (argv[2], "r");
diff --git a/dev-util/indent/files/2.2.11-texi2html-5.patch b/dev-util/indent/files/2.2.11-texi2html-5.patch
new file mode 100644
index 000000000000..5bad3da2867b
--- /dev/null
+++ b/dev-util/indent/files/2.2.11-texi2html-5.patch
@@ -0,0 +1,40 @@
+--- a/doc/Makefile.am
++++ b/doc/Makefile.am
+@@ -34,14 +34,14 @@
+ html-split: @PACKAGE@_toc.html
+
+ @PACKAGE@.html: version.texi $(@PACKAGE@_TEXINFOS)
+- $(TEXI2HTML) -expandinfo -number -monolithic `if test -f @PACKAGE@.texinfo; then echo @PACKAGE@.texinfo; else echo $(srcdir)/@PACKAGE@.texinfo; fi`
++ $(TEXI2HTML) -expandinfo -monolithic `if test -f @PACKAGE@.texinfo; then echo @PACKAGE@.texinfo; else echo $(srcdir)/@PACKAGE@.texinfo; fi`
+
+ @PACKAGE@_toc.html: version.texi $(@PACKAGE@_TEXINFOS)
+ case "$(TEXI2HTML)" in \
+ *"/missing texi2html") \
+- $(TEXI2HTML) -expand info -number -nomenu -split section `if test -f @PACKAGE@.texinfo; then echo @PACKAGE@.texinfo; else echo $(srcdir)/@PACKAGE@.texinfo; fi` || exit 0 ;; \
++ $(TEXI2HTML) -expand info -nomenu -split section `if test -f @PACKAGE@.texinfo; then echo @PACKAGE@.texinfo; else echo $(srcdir)/@PACKAGE@.texinfo; fi` || exit 0 ;; \
+ *) $(RM) @PACKAGE@_*.html ; \
+- $(TEXI2HTML) -expand info -number -nomenu -split section `if test -f @PACKAGE@.texinfo; then echo @PACKAGE@.texinfo; else echo $(srcdir)/@PACKAGE@.texinfo; fi` ;; \
++ $(TEXI2HTML) -expand info -nomenu -split section `if test -f @PACKAGE@.texinfo; then echo @PACKAGE@.texinfo; else echo $(srcdir)/@PACKAGE@.texinfo; fi` ;; \
+ esac
+
+ install-html-monolithic: @PACKAGE@.html
+--- a/doc/Makefile.in
++++ b/doc/Makefile.in
+@@ -663,14 +663,14 @@
+ html-split: @PACKAGE@_toc.html
+
+ @PACKAGE@.html: version.texi $(@PACKAGE@_TEXINFOS)
+- $(TEXI2HTML) -expandinfo -number -monolithic `if test -f @PACKAGE@.texinfo; then echo @PACKAGE@.texinfo; else echo $(srcdir)/@PACKAGE@.texinfo; fi`
++ $(TEXI2HTML) -expandinfo -monolithic `if test -f @PACKAGE@.texinfo; then echo @PACKAGE@.texinfo; else echo $(srcdir)/@PACKAGE@.texinfo; fi`
+
+ @PACKAGE@_toc.html: version.texi $(@PACKAGE@_TEXINFOS)
+ case "$(TEXI2HTML)" in \
+ *"/missing texi2html") \
+- $(TEXI2HTML) -expand info -number -nomenu -split section `if test -f @PACKAGE@.texinfo; then echo @PACKAGE@.texinfo; else echo $(srcdir)/@PACKAGE@.texinfo; fi` || exit 0 ;; \
++ $(TEXI2HTML) -expand info -nomenu -split section `if test -f @PACKAGE@.texinfo; then echo @PACKAGE@.texinfo; else echo $(srcdir)/@PACKAGE@.texinfo; fi` || exit 0 ;; \
+ *) $(RM) @PACKAGE@_*.html ; \
+- $(TEXI2HTML) -expand info -number -nomenu -split section `if test -f @PACKAGE@.texinfo; then echo @PACKAGE@.texinfo; else echo $(srcdir)/@PACKAGE@.texinfo; fi` ;; \
++ $(TEXI2HTML) -expand info -nomenu -split section `if test -f @PACKAGE@.texinfo; then echo @PACKAGE@.texinfo; else echo $(srcdir)/@PACKAGE@.texinfo; fi` ;; \
+ esac
+
+ install-html-monolithic: @PACKAGE@.html
diff --git a/dev-util/indent/indent-2.2.11-r1.ebuild b/dev-util/indent/indent-2.2.11-r1.ebuild
new file mode 100644
index 000000000000..778fe8b8c99b
--- /dev/null
+++ b/dev-util/indent/indent-2.2.11-r1.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit autotools eutils
+
+DESCRIPTION="Indent program source files"
+HOMEPAGE="http://indent.isidore-it.eu/beautify.html https://www.gnu.org/software/indent/"
+SRC_URI="http://${PN}.isidore-it.eu/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris"
+IUSE="nls"
+
+DEPEND="
+ nls? ( sys-devel/gettext )
+ app-text/texi2html
+"
+RDEPEND="
+ nls? ( virtual/libintl )
+"
+
+INDENT_LINGUAS="
+ ca da de eo et fi fr gl hu it ja ko nl pl pt_BR ru sk sv tr zh_TW
+"
+
+for indent_lingua in ${INDENT_LINGUAS}; do
+ IUSE+=" linguas_${indent_lingua}"
+done
+
+src_prepare() {
+ # Fix bug #94837
+ local pofile
+ for pofile in po/zh_TW*; do
+ mv ${pofile} ${pofile/.Big5} || die
+ done
+ sed -i po/LINGUAS -e 's|zh_TW\.Big5|zh_TW|g' || die
+
+ epatch \
+ "${FILESDIR}"/${PV}-segfault.patch \
+ "${FILESDIR}"/${PV}-texi2html-5.patch
+ sed -e "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" -i configure.ac || die
+ eautomake
+}
+
+src_configure() {
+ econf $(use_enable nls)
+}
+
+src_test() {
+ emake -C regression/
+}
+
+src_install() {
+ # htmldir as set in configure is ignored in doc/Makefile*
+ emake DESTDIR="${D}" htmldir="${EPREFIX}/usr/share/doc/${PF}/html" install
+ dodoc AUTHORS NEWS README ChangeLog ChangeLog-1990 ChangeLog-1998 ChangeLog-2001
+}
diff --git a/dev-util/indent/metadata.xml b/dev-util/indent/metadata.xml
new file mode 100644
index 000000000000..88f8d1f6a593
--- /dev/null
+++ b/dev-util/indent/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>jer@gentoo.org</email>
+ <name>Jeroen Roovers</name>
+</maintainer>
+<longdescription lang="en">
+Indent is the GNU indenting program. It is used to beautify C program source
+files.
+</longdescription>
+</pkgmetadata>
diff --git a/dev-util/intel-ocl-sdk/Manifest b/dev-util/intel-ocl-sdk/Manifest
new file mode 100644
index 000000000000..73e8e51933f6
--- /dev/null
+++ b/dev-util/intel-ocl-sdk/Manifest
@@ -0,0 +1,7 @@
+DIST intel_sdk_for_ocl_applications_2012_x64.tgz 28302946 SHA256 2044a9a62f40788b0dc4f4ea77a3d85df14e7909258e37eed3e63f7254a0bcc9 SHA512 6974dd67d8292400f1d0c80fd137f39290fe7dcab5146b9f0613ae48484f84e1b523f710dcc07c8600919ce01ab2dd91ab0e2d693e3723ffa9a744fcc52151dd WHIRLPOOL bf474c5959d9b19b40491a68355c2f36bdd0b98facae75aef4f488726b9589555d49f4bf8eb47f52524be6d354addbc945621a97b6f5412162e5b0c8aa03243e
+DIST intel_sdk_for_ocl_applications_2014_ubuntu_4.4.0.117_x64.tgz 105808431 SHA256 23402790acc5bfe4949f48f02ce2c13f188588a5721690e04526e4bddb93c7ea SHA512 c0f65bf4d9b894f11076995744d32aef983e01b40472028e411c7be6b9117ef8b260b9abe46d6e936333aca525f98f81aaca2ab3e093ccefb09f525a3646d7e9 WHIRLPOOL 6cc25a3f193314c8aa32612fa901deb6782f42f51b7b1578778d8e8273b7161802619b1a533dad0de9757d31d40a3ce910517c9794bdc2763b4fefe28a7cb968
+EBUILD intel-ocl-sdk-2.0.31360.ebuild 1444 SHA256 2de5b72ca1a8d110f8c719f0d2c2d529325a6429db1ae10910521693602db2c1 SHA512 a5c5875f45bc572131cf9b6b4fa0b5f819fac2795a60a8ebcf459c0735337752f7ed367efabbe7a95b7744b97a8766c03bbdcd7a813c6a8d9b6d491bbf3ea36d WHIRLPOOL 8f99a67aa9369c846a5a6e4097287035074311feb1dc49b8463a873d49848cb0a081970f9f4d1db93264865f69d3b26f359d395accb6f62e3cecc1be7f6372c7
+EBUILD intel-ocl-sdk-4.4.0.117-r1.ebuild 2344 SHA256 25cca5956d327284cb00e40d210af13765615058f225e2082c8f11084e6b2951 SHA512 01131983224e4bb673e4dc65ea9eecb18fc7e0023279feb3b9890c5435586cd228e73fb9694b3554b6a8ca9e762a29698ee38adf6d942d20bc9f94723488a4a8 WHIRLPOOL cd17aeedb672957126781342f3bb4970e21a804ed2e775f91f8d38595d5a61d7968a30b15b18fd4c5e970c5317418b820203040e74d1b9e7a16865296bb5b814
+MISC ChangeLog 2675 SHA256 14a2d970e6aad5e4ac86d40636d40b99a5e0ca8a0dbf050b743abadfe3086909 SHA512 a75cb1de8a029cc41fc89835843cec852ba71285ab86986498ad9f488ca9b26625e130f814fae6de2092b89bbbda06431a9f9ba571575397d48a12ec614d5101 WHIRLPOOL 58eca78a8fde03ed75e885beda6d9b503c5a40de11e00c5dd21a7a731bcaa28eee8e9b27007f5441a740a7551e032f24540039f0c6b2690da9c91e6388f9751f
+MISC ChangeLog-2015 2539 SHA256 5745ca1fe51305c6d990939fbeda7d0a080b9ed0e627d2e3a3263f98797c89b7 SHA512 74337e1f48464989d1cfdfbcd3796b7d8675d705d641095df1b647abf92ea306b5908f7b436efab8d3347b5df7b56ed93e5de48d302de4da0938cf3010becbbf WHIRLPOOL 8bd055aa39ca26d885e81de7ed5ecb74b2b4dda78e107f394ed07550e91da47419506f8ca681b3f7d5497daed2bd8ff2a8be95a6ee12d3521b2053966e743281
+MISC metadata.xml 871 SHA256 19481e8e13b7c39166e06783f891c2abf5ae80caf3f055c3325917bd1b8a4c7b SHA512 373285af5cd075db8ce4d298ce68b3a0ecac4ff9264a3873a05191b8daa7b9dd167855fa6b2f51c0204870d876b88406db010ed95a1d6e17fff37118da002439 WHIRLPOOL b10cf5f5a8af6f1f76ac9bcae4a0d7e2d4645c77b52e68b31c3376ff9b963ecf2367832e9cec7fffd975ca022cdfa39a4d2a92e899312eb9b5861ca11027be93
diff --git a/dev-util/intel-ocl-sdk/intel-ocl-sdk-2.0.31360.ebuild b/dev-util/intel-ocl-sdk/intel-ocl-sdk-2.0.31360.ebuild
new file mode 100644
index 000000000000..fdf2132e3533
--- /dev/null
+++ b/dev-util/intel-ocl-sdk/intel-ocl-sdk-2.0.31360.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+MY_P=${PN//-/_}_2012_x64
+
+inherit rpm multilib
+
+INTEL_CL=usr/$(get_libdir)/OpenCL/vendors/intel/
+
+DESCRIPTION="Intel's implementation of the OpenCL standard optimized for Intel processors"
+HOMEPAGE="http://software.intel.com/en-us/articles/opencl-sdk/"
+SRC_URI="http://registrationcenter.intel.com/irc_nas/2563/intel_sdk_for_ocl_applications_2012_x64.tgz"
+
+LICENSE="Intel-SDP"
+SLOT="0"
+IUSE="tools"
+KEYWORDS="amd64 -x86"
+
+RDEPEND="app-eselect/eselect-opencl
+ dev-cpp/tbb
+ sys-process/numactl
+ tools? (
+ sys-devel/llvm
+ >=virtual/jre-1.6
+ )"
+DEPEND=""
+
+RESTRICT="mirror"
+QA_EXECSTACK="${INTEL_CL/\//}libcpu_device.so
+ ${INTEL_CL/\//}libOclCpuBackEnd.so
+ ${INTEL_CL/\//}libtask_executor.so"
+QA_PREBUILT="${INTEL_CL}*"
+
+S=${WORKDIR}
+
+src_unpack() {
+ default
+ rpm_unpack ./${MY_P}.rpm
+}
+
+src_prepare() {
+ # Remove unnecessary and bundled stuff
+ rm -rf ${INTEL_CL}/{docs,version.txt,llc}
+ rm -f ${INTEL_CL}/libboost*.so
+ rm -f ${INTEL_CL}/libtbb*
+ if ! use tools; then
+ rm -rf usr/bin
+ rm -f ${INTEL_CL}/{ioc64,ioc.jar}
+ rm -f ${INTEL_CL}/libboost*
+ fi
+}
+
+src_install() {
+ doins -r etc
+
+ insinto ${INTEL_CL}
+ doins -r usr/include
+
+ insopts -m 755
+ newins usr/$(get_libdir)/libOpenCL.so libOpenCL.so.1
+ dosym libOpenCL.so.1 ${INTEL_CL}/libOpenCL.so
+
+ doins ${INTEL_CL}/*
+}
+
+pkg_postinst() {
+ eselect opencl set --use-old intel
+}
diff --git a/dev-util/intel-ocl-sdk/intel-ocl-sdk-4.4.0.117-r1.ebuild b/dev-util/intel-ocl-sdk/intel-ocl-sdk-4.4.0.117-r1.ebuild
new file mode 100644
index 000000000000..062e89a96985
--- /dev/null
+++ b/dev-util/intel-ocl-sdk/intel-ocl-sdk-4.4.0.117-r1.ebuild
@@ -0,0 +1,89 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit rpm multilib
+
+DESCRIPTION="Intel's implementation of the OpenCL standard"
+HOMEPAGE="http://software.intel.com/en-us/articles/opencl-sdk/"
+SRC_URI="http://registrationcenter.intel.com/irc_nas/4181/intel_sdk_for_ocl_applications_2014_ubuntu_${PV}_x64.tgz"
+
+LICENSE="Intel-SDP"
+SLOT="0"
+IUSE="android +system-tbb system-clang +system-boost +system-qt"
+KEYWORDS="-* ~amd64"
+RESTRICT="mirror"
+
+RDEPEND="app-eselect/eselect-opencl
+ sys-process/numactl
+ system-tbb? ( >=dev-cpp/tbb-4.2.20131118 )
+ system-clang? ( =sys-devel/clang-3.4* )
+ system-boost? ( >=dev-libs/boost-1.52.0:= )
+ system-qt? (
+ >=dev-qt/qtgui-4.8.5:4
+ >=dev-qt/qtcore-4.8.5:4
+ )
+ "
+DEPEND=""
+
+S=${WORKDIR}/intel_sdk_for_ocl_applications_2014_ubuntu_${PV}_x64/
+INTEL_CL=opt/intel/opencl-1.2-${PV}
+INTEL_VENDOR_DIR=usr/$(get_libdir)/OpenCL/vendors/intel/
+
+QA_PREBUILT="${INTEL_OCL}/*"
+
+src_unpack() {
+ default
+
+ PKGS="base devel intel-cpu intel-devel"
+
+ use android && PKGS="$PKGS intel-devel-android"
+
+ for PKG in ${PKGS}; do
+ FILENAME="opencl-1.2-${PKG}-4.4.0.117-1.x86_64.deb"
+ einfo "Extracting \"${FILENAME}\"..."
+ ar x "${S}/$FILENAME" || die
+ unpack ./data.tar.gz
+ done
+}
+
+src_prepare() {
+ # Remove bundled stuff
+ if use system-boost; then
+ rm -f "${WORKDIR}/${INTEL_CL}"/lib64/libboost*.so*
+ fi
+ if use system-clang; then
+ rm -f "${WORKDIR}/${INTEL_CL}"/lib64/libclang*
+ fi
+ if use system-qt; then
+ rm -f "${WORKDIR}/${INTEL_CL}"/lib64/libQt*
+ fi
+ if use system-tbb; then
+ rm -f "${WORKDIR}/${INTEL_CL}"/lib64/libtbb*
+ fi
+}
+
+src_install() {
+ insinto /etc/OpenCL/vendors/
+ doins "${WORKDIR}/${INTEL_CL}"/etc/intel64.icd
+
+ insinto /"${INTEL_CL}"/lib64
+ insopts -m 755
+ doins "${WORKDIR}/${INTEL_CL}"/lib64/*
+
+ insinto /"${INTEL_CL}"/bin
+ doins "${WORKDIR}"/"${INTEL_CL}"/bin/*
+
+ # TODO put this somewhere
+ # doins ${INTEL_CL}/eclipse-plug-in/OpenCL_SDK_0.1.0.jar
+
+ dodir "${INTEL_VENDOR_DIR}"
+ dosym "/opt/intel/opencl-1.2-${PV}/lib64/libOpenCL.so" "${INTEL_VENDOR_DIR}/libOpenCL.so"
+ dosym "/opt/intel/opencl-1.2-${PV}/lib64/libOpenCL.so.1" "${INTEL_VENDOR_DIR}/libOpenCL.so.1"
+ dosym "/opt/intel/opencl-1.2-${PV}/lib64/libOpenCL.so.1.2" "${INTEL_VENDOR_DIR}/libOpenCL.so.1.2"
+}
+
+pkg_postinst() {
+ eselect opencl set --use-old intel
+}
diff --git a/dev-util/intel-ocl-sdk/metadata.xml b/dev-util/intel-ocl-sdk/metadata.xml
new file mode 100644
index 000000000000..f694e9e2845b
--- /dev/null
+++ b/dev-util/intel-ocl-sdk/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>dev@kicherer.org</email>
+ <name>anYc</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>zerochaos@gentoo.org</email>
+ <name>Rick Farina</name>
+ </maintainer>
+ <use>
+ <flag name="android">Install android related files</flag>
+ <flag name="tools">Install Intel Offline Compiler</flag>
+ <flag name="system-boost">Use system boost (dev-libs/boost) instead of bundled one</flag>
+ <flag name="system-clang">Use system clang (sys-devel/clang) instead of bundled one</flag>
+ <flag name="system-qt">Use system Qt (sys-devel-qtcore, sys-devel/qtgui) instead of bundled one</flag>
+ <flag name="system-tbb">Use sytem Thread Building Blocks (dev-cpp/tbb) instead of bundled one</flag>
+ </use>
+</pkgmetadata>
diff --git a/dev-util/intltool/Manifest b/dev-util/intltool/Manifest
new file mode 100644
index 000000000000..3c487cf55190
--- /dev/null
+++ b/dev-util/intltool/Manifest
@@ -0,0 +1,9 @@
+AUX intltool-0.50.2-absolute-paths.patch 1798 SHA256 100745c58324e737af6b9b6c3691d2a1c43dd46993ab045da23b97d105c157c0 SHA512 f4fe5452b81d448d19ec58196ecb1a0fa619daedd67c86fc16dcd8f45b4fa449890a0fed14d6fdb259f7c6b13cf8a1ffe064d540305913a0d9df80bb5042aa17 WHIRLPOOL 51e930c4bb04502af3591002ed19224c14a55a1732019eca5ed885dc721d44ba0f0d3bb854c837c47458f3d3c984c8d77d5df26da502fdeccf42265597cad591
+AUX intltool-0.51.0-perl-5.22.patch 2184 SHA256 635c37f1f7761f2ed220614e4e37907d7f498d322ea5a1ee580b1eb1372e7419 SHA512 ca125f5284bba789139d9733c79c077074cbeee7e263ce98953868590e50d32d80b94935eec7965f1c2817388e0fd8e1d5c87a9faac7936c9ee7e8d0b5758177 WHIRLPOOL b87c8680fa30f234e25229838047a2f086f5176d6c82e272e08d55944e7bf034a9d5069a0addd926d5ea25d726998325984c2d18042c8dfdf18b9569aed3e944
+AUX intltool-0.51.0-perl-5.26.patch 586 SHA256 713e66dbd1d69abe438775a7130e846b40cb1383254025cb76fd593d2f6e0ce7 SHA512 86fe1b795118975f1930535d9bb7d01564852546fb234bddadbc4a5ac66ccf6a43c9944ede1ea72dc6c4296dc8db3dfff4ebd1989dce57e623689be444c8e591 WHIRLPOOL bfc9239b57f3707d85bb51d29b3c423697d6f187567bcddaec631acea6e49b3ff73e2d2f645d41c45678ebec3e45d3c1a49608a021cb2b8d411f2afcef8c4ebf
+DIST intltool-0.51.0.tar.gz 162286 SHA256 67c74d94196b153b774ab9f89b2fa6c6ba79352407037c8c14d5aeb334e959cd SHA512 4c93cb26592ed0b1622d3b7800b5d6622ffa36f58ac73f2ef0bddfab522565fdfb8fa73d81914b9a202f1d62bc995a08960f8adb9f62c86918e75498e85fbfdf WHIRLPOOL f0cf9a23c7f7dd9d4ec504709c447de1895bf5bdb10fe2000f9ebc8d93b0be204bb4bc1a54a1c3e981a9f8754cc354224e8411711e4996fc7ffd56335cb300cd
+EBUILD intltool-0.51.0-r1.ebuild 1012 SHA256 2c0978f48cf917acbb69241ea2f1359b38fb5066565c73aea8b1a22d68c924a4 SHA512 4e437718701d259bf927c568e3829c0d7c4fb8c175c9b51d844f400fbcbd076793eda5ed924845c77952ab6a4efd0a99059eadad0828b6819c26bbf2741cda5b WHIRLPOOL 7585627d721fb705c63bffde56755df406de790b6ef5a5d9724da4c5623ac806d04c5a7abec5f663304ac7abc428c2606ec35e4654a222a61d2320501c7dcfb5
+EBUILD intltool-0.51.0-r2.ebuild 1017 SHA256 9fd0565001baa94b04a1fe7c54be2acf1121f205c8a326e16ae1c9ef1a48eca5 SHA512 0d744d134aae2afbe386cc5b40785f00787012d67faa22942b5bb0032070fd970b2ba7131562be3d9106c4df7285abb08c5d1f7102a43374fea45723335a2261 WHIRLPOOL 14c5f6f261b091e73ab64f117f9631bf7122a7d765699d8b0ece62f25e0f541d7e11055079844955eda98206f2e2c3d2c2148a3057bce2e5275493663f26409b
+MISC ChangeLog 3854 SHA256 ec58cd21053882ea8b5a632c857e28387ee0f218e1a162859e6ac2685f56f41d SHA512 1a13476240fb4f83291699c85a3679373941f976bd65483264b50fc94083637af7d1a96f0137539ff99936e6dc835acd2d79720e302558c870a881e24303f71b WHIRLPOOL de1cf2e0f0c66a36b9894711b7226e0d89d7b2de4d258a9ce0b9ae1ca9259a22155de5827d52bc3e4849e69158c7c7ea3e06098ae782ab49177321f4916d76e0
+MISC ChangeLog-2015 20527 SHA256 0b810b9468a2c540a827acd0363d98e5710383da464c42f409a5aeb9f50235d1 SHA512 40a3990e16a79f1542d0b6949d16d38b0802196c889ad65c97c8ef93764e25a54426d8c6196f75a352e1b9122875213c6d312b8cb7ff33c26399ba4d9574cab8 WHIRLPOOL a5e64e5bb4d4e28888810fbed071f83c57c50fcf4ce688eb1b30933ce2d377a39b2ca2c4216475cca3fa3efe20aa45d4ce4748ccb13c5e7170d8845f9b868e5d
+MISC metadata.xml 304 SHA256 742891030ed6c77ca6eadbc784a3d979f90eb513608d5c83a649e8a489975052 SHA512 e9f0bede4c5ab13dda61ae7ea0f5d39988373388f78a05b08f4099204154160ab0d88d21989a8bf8249aa98448744969643e118883c418968c9030a6919a9727 WHIRLPOOL a5120a3b7d8a35222ca13a627a0a233dd30d77c99621bf5051ef8f6ac6b22788440e6d719229f53d2f041919f41cb595348f1a0597d26c6c35cb9e007bfea3a1
diff --git a/dev-util/intltool/files/intltool-0.50.2-absolute-paths.patch b/dev-util/intltool/files/intltool-0.50.2-absolute-paths.patch
new file mode 100644
index 000000000000..117f4a30c29b
--- /dev/null
+++ b/dev-util/intltool/files/intltool-0.50.2-absolute-paths.patch
@@ -0,0 +1,63 @@
+From c262cb09fa9f4dad056ba5b25a8627408bcf909a Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
+Date: Sun, 14 Apr 2013 20:41:41 +0200
+Subject: [PATCH] Fix handling absolute paths in single file key output.
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Signed-off-by: Michał Górny <mgorny@gentoo.org>
+Fixes: https://bugs.gentoo.org/show_bug.cgi?id=464954
+---
+ intltool-merge.in | 17 ++++++++++++-----
+ 1 file changed, 12 insertions(+), 5 deletions(-)
+
+diff --git a/intltool-merge.in b/intltool-merge.in
+index 1afa2a4..47dbbdf 100644
+--- a/intltool-merge.in
++++ b/intltool-merge.in
+@@ -1108,13 +1108,20 @@ sub keys_merge_translation
+ {
+ my ($lang) = @_;
+
+- if ( ! -d $lang && $MULTIPLE_OUTPUT)
++ my $outpath = "$OUTFILE";
++
++ if ($MULTIPLE_OUTPUT)
+ {
+- mkdir $lang or -d $lang or die "Cannot create subdirectory $lang: $!\n";
++ $outpath = "$lang/$outpath";
++
++ if ( ! -d $lang )
++ {
++ mkdir $lang or -d $lang or die "Cannot create subdirectory $lang: $!\n";
++ }
+ }
+
+ open INPUT, "<${FILE}" or die "Cannot open ${FILE}: $!\n";
+- open OUTPUT, ">$lang/$OUTFILE" or die "Cannot open $lang/$OUTFILE: $!\n";
++ open OUTPUT, ">$outpath" or die "Cannot open $outpath: $!\n";
+ binmode (OUTPUT) if $^O eq 'MSWin32';
+
+ while (<INPUT>)
+@@ -1159,7 +1166,7 @@ sub keys_merge_translation
+ close OUTPUT;
+ close INPUT;
+
+- print "CREATED $lang/$OUTFILE\n" unless $QUIET_ARG;
++ print "CREATED $outpath\n" unless $QUIET_ARG;
+ }
+
+ sub keys_merge_translations
+@@ -1174,7 +1181,7 @@ sub keys_merge_translations
+ }
+ else
+ {
+- keys_merge_translation (".");
++ keys_merge_translation ();
+ }
+ }
+
+--
+1.8.1.5
+
diff --git a/dev-util/intltool/files/intltool-0.51.0-perl-5.22.patch b/dev-util/intltool/files/intltool-0.51.0-perl-5.22.patch
new file mode 100644
index 000000000000..097c511ce18d
--- /dev/null
+++ b/dev-util/intltool/files/intltool-0.51.0-perl-5.22.patch
@@ -0,0 +1,48 @@
+https://bugs.launchpad.net/intltool/+bug/1490906
+
+fix warnings w/newer perl:
+Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/^(.*)\${ <-- HERE ?([A-Z_]+)}?(.*)$/ at /usr/bin/intltool-update line 1065.
+
+--- a/intltool-update.in
++++ b/intltool-update.in
+@@ -1062,7 +1062,7 @@
+ }
+ }
+
+- if ($str =~ /^(.*)\${?([A-Z_]+)}?(.*)$/)
++ if ($str =~ /^(.*)\$\{?([A-Z_]+)}?(.*)$/)
+ {
+ my $rest = $3;
+ my $untouched = $1;
+@@ -1190,10 +1190,10 @@
+ $name =~ s/\(+$//g;
+ $version =~ s/\(+$//g;
+
+- $varhash{"PACKAGE_NAME"} = $name if (not $name =~ /\${?AC_PACKAGE_NAME}?/);
+- $varhash{"PACKAGE"} = $name if (not $name =~ /\${?PACKAGE}?/);
+- $varhash{"PACKAGE_VERSION"} = $version if (not $name =~ /\${?AC_PACKAGE_VERSION}?/);
+- $varhash{"VERSION"} = $version if (not $name =~ /\${?VERSION}?/);
++ $varhash{"PACKAGE_NAME"} = $name if (not $name =~ /\$\{?AC_PACKAGE_NAME}?/);
++ $varhash{"PACKAGE"} = $name if (not $name =~ /\$\{?PACKAGE}?/);
++ $varhash{"PACKAGE_VERSION"} = $version if (not $name =~ /\$\{?AC_PACKAGE_VERSION}?/);
++ $varhash{"VERSION"} = $version if (not $name =~ /\$\{?VERSION}?/);
+ }
+
+ if ($conf_source =~ /^AC_INIT\(([^,\)]+),([^,\)]+)[,]?([^,\)]+)?/m)
+@@ -1219,11 +1219,11 @@
+ $version =~ s/\(+$//g;
+ $bugurl =~ s/\(+$//g if (defined $bugurl);
+
+- $varhash{"PACKAGE_NAME"} = $name if (not $name =~ /\${?AC_PACKAGE_NAME}?/);
+- $varhash{"PACKAGE"} = $name if (not $name =~ /\${?PACKAGE}?/);
+- $varhash{"PACKAGE_VERSION"} = $version if (not $name =~ /\${?AC_PACKAGE_VERSION}?/);
+- $varhash{"VERSION"} = $version if (not $name =~ /\${?VERSION}?/);
+- $varhash{"PACKAGE_BUGREPORT"} = $bugurl if (defined $bugurl and not $bugurl =~ /\${?\w+}?/);
++ $varhash{"PACKAGE_NAME"} = $name if (not $name =~ /\$\{?AC_PACKAGE_NAME}?/);
++ $varhash{"PACKAGE"} = $name if (not $name =~ /\$\{?PACKAGE}?/);
++ $varhash{"PACKAGE_VERSION"} = $version if (not $name =~ /\$\{?AC_PACKAGE_VERSION}?/);
++ $varhash{"VERSION"} = $version if (not $name =~ /\$\{?VERSION}?/);
++ $varhash{"PACKAGE_BUGREPORT"} = $bugurl if (defined $bugurl and not $bugurl =~ /\$\{?\w+}?/);
+ }
+
+ # \s makes this not work, why?
diff --git a/dev-util/intltool/files/intltool-0.51.0-perl-5.26.patch b/dev-util/intltool/files/intltool-0.51.0-perl-5.26.patch
new file mode 100644
index 000000000000..4af2ed8647e9
--- /dev/null
+++ b/dev-util/intltool/files/intltool-0.51.0-perl-5.26.patch
@@ -0,0 +1,12 @@
+diff -ruN intltool-0.51.0.orig/intltool-update.in intltool-0.51.0/intltool-update.in
+--- intltool-0.51.0.orig/intltool-update.in 2017-06-28 00:47:20.889269294 +0200
++++ intltool-0.51.0/intltool-update.in 2017-06-28 00:48:14.592271529 +0200
+@@ -1068,7 +1068,7 @@
+ my $untouched = $1;
+ my $sub = "";
+ # Ignore recursive definitions of variables
+- $sub = $varhash{$2} if defined $varhash{$2} and $varhash{$2} !~ /\${?$2}?/;
++ $sub = $varhash{$2} if defined $varhash{$2} and $varhash{$2} !~ /\$\{?$2}?/;
+
+ return SubstituteVariable ("$untouched$sub$rest");
+ }
diff --git a/dev-util/intltool/intltool-0.51.0-r1.ebuild b/dev-util/intltool/intltool-0.51.0-r1.ebuild
new file mode 100644
index 000000000000..f431362b7ad4
--- /dev/null
+++ b/dev-util/intltool/intltool-0.51.0-r1.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils
+
+DESCRIPTION="Internationalization Tool Collection"
+HOMEPAGE="https://launchpad.net/intltool/"
+SRC_URI="https://launchpad.net/${PN}/trunk/${PV}/+download/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE=""
+
+DEPEND="
+ >=dev-lang/perl-5.8.1
+ dev-perl/XML-Parser
+"
+RDEPEND="${DEPEND}
+ sys-devel/gettext
+"
+DOCS=( AUTHORS ChangeLog NEWS README TODO doc/I18N-HOWTO )
+
+src_prepare() {
+ # Fix handling absolute paths in single file key output, bug #470040
+ # https://bugs.launchpad.net/intltool/+bug/1168941
+ epatch "${FILESDIR}/${PN}-0.50.2-absolute-paths.patch"
+ epatch "${FILESDIR}"/${PN}-0.51.0-perl-5.22.patch
+}
diff --git a/dev-util/intltool/intltool-0.51.0-r2.ebuild b/dev-util/intltool/intltool-0.51.0-r2.ebuild
new file mode 100644
index 000000000000..3f4e67497e47
--- /dev/null
+++ b/dev-util/intltool/intltool-0.51.0-r2.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Internationalization Tool Collection"
+HOMEPAGE="https://launchpad.net/intltool/"
+SRC_URI="https://launchpad.net/${PN}/trunk/${PV}/+download/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha ~amd64 arm ~arm64 ~hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE=""
+
+DEPEND="
+ dev-lang/perl
+ dev-perl/XML-Parser
+"
+RDEPEND="${DEPEND}
+ sys-devel/gettext
+"
+DOCS=( AUTHORS ChangeLog NEWS README TODO doc/I18N-HOWTO )
+
+PATCHES=(
+ # Fix handling absolute paths in single file key output, bug #470040
+ # https://bugs.launchpad.net/intltool/+bug/1168941
+ "${FILESDIR}"/${PN}-0.50.2-absolute-paths.patch
+ "${FILESDIR}"/${PN}-0.51.0-perl-5.22.patch
+ "${FILESDIR}"/${PN}-0.51.0-perl-5.26.patch
+)
diff --git a/dev-util/intltool/metadata.xml b/dev-util/intltool/metadata.xml
new file mode 100644
index 000000000000..525c1a60b10b
--- /dev/null
+++ b/dev-util/intltool/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>freedesktop-bugs@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="launchpad">intltool</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/its4/Manifest b/dev-util/its4/Manifest
new file mode 100644
index 000000000000..d49445478152
--- /dev/null
+++ b/dev-util/its4/Manifest
@@ -0,0 +1,6 @@
+DIST its4-1.1.1.tgz 59759 SHA256 386ca694c969108863f3e5c0571ea8c5cbdc288dd13e12ba573a592844682df4 SHA512 c7bfa71eba114ab3aac586dfa5f30c7a935f06d72b78bae3c3d464f591085cf3419a1d23ab951376bd9c2d7e436711a45c9f5047c3125df5d731b746412be0f6 WHIRLPOOL b734a79abb2eb2a3df330f06852d35aee61c451419fe915fdc0788dbcc9eb51ef282f8bdc9aac2d712fa2bdc21b23a743da9a55dd66fa0a58229036bb1b2e8c8
+EBUILD its4-1.1.1-r1.ebuild 1084 SHA256 97d5c27d772860968b3b55c25b10e8a3af62887231bcc72426a0d379c3c1e142 SHA512 6f3a6660d487611f77a7bc9a3e31d231c021df19476f4fd114ccba301ed9695200dc32c830747aa29147f4589b37f45a7a6590d1ec8a4033c55f55b112c40639 WHIRLPOOL 4796bf993bd01e4cc54a435612762a8d3019ddd4f08dd2c762c30822188e15f67306c1a329a3f932a26c70ce51af0971553151e40a4ef85c6f4749f7dd9eb380
+EBUILD its4-1.1.1.ebuild 925 SHA256 77424224b2b4be13229ec929ff9c0d9aec755d091571a836113143240fe4ad01 SHA512 79c816002ed610567c8708476f226af7f71ddc711c592ae05e0ef99d1de64d870db92e61d0ff10ebd4dff880d3bdf3004a3b42e16b65f3f95d3566d9ba6a9c40 WHIRLPOOL b6c58ae8702ee2dfb74abb1dd6ccb5b52198a2ab249e4246a8f1f4a04ed7974d9c57b196fa7345b791cc12a5d46da23d9a948f0ea7f7e6a7d8ac4484ee6a0ecc
+MISC ChangeLog 2167 SHA256 80f65b23c20af2a6a3b096411d0431e5fb6fd2165dabdc561daec330966a9cfd SHA512 cce1556527c32cec61032292864689f33fdd8a9baf1202f381daffc00fb63fbc4af9dd9a1147c27e3eec3144289c97ec050cd7ef85fb02eeed3559787b90dcd4 WHIRLPOOL 89b3eab2d116f90e81a82b2bf084f64c23d562b0fb89904a07ffc663022f041d705f1f7e97e8fc68396cef84c3f47c00a39cd00d26c3c2111375d8cf5a29ff10
+MISC ChangeLog-2015 1082 SHA256 c5c7bf435bd4ead2f836db6e11b553d0a7625c27902b1f9e49cf6d7fdb95bbc4 SHA512 44d0b91bee76aae8b8e6ca884139ec1c2cbe77996917d0d897fcfe51e5bb39922b1417357716db62b1bc779ff118bd5221bf80ae67f678746d3ecb43a4d5a037 WHIRLPOOL e6ec2df67b59678c7c1be03b1cd3a477fdb2b7df6b5cb6b87dabc20b38283ea5caf0cc8564ee99de43b45639e186a1e6b729879b552d2644649ca07dbf5f1e39
+MISC metadata.xml 570 SHA256 31300cffe9939a12995768b0e7ee54e972cc4aa15235ccffa3f1f4e5267f277c SHA512 3b626c494c1b00c1032825afcf19a4b6aadd233588ae59bd8bad858d21bce920a0a41de5b51db8d6b196d1b3781389aadae2fed6e25093be930c13a44c2f224a WHIRLPOOL 4f4f8e5bd7266fc0a8d4cdc4eb469bfb9631943c7cdd273227c4b16989ad24ad66668d7f17d479fa024c3687fcd4dc213bef6c56db07644b2b6f646c0951d90f
diff --git a/dev-util/its4/its4-1.1.1-r1.ebuild b/dev-util/its4/its4-1.1.1-r1.ebuild
new file mode 100644
index 000000000000..0b5017ca8e43
--- /dev/null
+++ b/dev-util/its4/its4-1.1.1-r1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit eutils
+
+DESCRIPTION="ITS4: Software Security Tool"
+HOMEPAGE="http://www.cigital.com/its4/"
+SRC_URI="https://dev.gentoo.org/~robbat2/distfiles/${P}.tgz"
+LICENSE="ITS4"
+SLOT="0"
+KEYWORDS="~x86 ~ppc ~amd64"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+S="${WORKDIR}/${PN}"
+
+src_prepare() {
+ sed -i \
+ -e 's,iostream.h,iostream,g'\
+ "${S}"/configure || die
+ sed -i \
+ -e 's/$(CC) -o/$(CC) $(OPTIMIZATION) $(EXTRA_FLAGS) -o/' \
+ "${S}"/Makefile.in || die
+}
+
+src_configure() {
+ # WARNING
+ # non-standard configure
+ # do NOT use econf
+ ./configure --prefix=/usr --mandir=/usr/share/man --datadir=/usr/share/its4 || die "configure failed"
+}
+
+src_compile() {
+ emake CC="$(tc-getCXX)" OPTIMIZATION="${CXXFLAGS}" EXTRA_FLAGS="${LDFLAGS}"
+}
+
+src_install() {
+ # WARNING
+ # non-standard, do NOT use einstall or 'make install DESTDIR=...'
+ make install INSTALL_BINDIR="${D}/usr/bin" INSTALL_MANDIR="${D}/usr/share/man" INSTALL_DATADIR="${D}/usr/share/its4" || die "install failed"
+}
diff --git a/dev-util/its4/its4-1.1.1.ebuild b/dev-util/its4/its4-1.1.1.ebuild
new file mode 100644
index 000000000000..fbe508fc838a
--- /dev/null
+++ b/dev-util/its4/its4-1.1.1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+DESCRIPTION="ITS4: Software Security Tool"
+HOMEPAGE="http://www.cigital.com/its4/"
+SRC_URI="https://dev.gentoo.org/~robbat2/distfiles/${P}.tgz"
+LICENSE="ITS4"
+SLOT="0"
+KEYWORDS="x86 ppc"
+IUSE=""
+DEPEND="sys-devel/gcc"
+#RDEPEND=""
+S="${WORKDIR}/${PN}"
+
+src_unpack() {
+ unpack ${A}
+ sed -i \
+ -e 's,iostream.h,iostream,g'\
+ "${S}"/configure
+}
+
+src_compile() {
+ # WARNING
+ # non-standard configure
+ # do NOT use econf
+ ./configure --prefix=/usr --mandir=/usr/share/man --datadir=/usr/share/its4 || die "configure failed"
+ emake OPTIMIZATION="${CXXFLAGS}" || die "emake failed"
+}
+
+src_install() {
+ # WARNING
+ # non-standard, do NOT use einstall or 'make install DESTDIR=...'
+ make install INSTALL_BINDIR="${D}/usr/bin" INSTALL_MANDIR="${D}/usr/share/man" INSTALL_DATADIR="${D}/usr/share/its4" || die "install failed"
+}
diff --git a/dev-util/its4/metadata.xml b/dev-util/its4/metadata.xml
new file mode 100644
index 000000000000..a2b4b8254df1
--- /dev/null
+++ b/dev-util/its4/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>robbat2@gentoo.org</email>
+</maintainer>
+<longdescription>
+ITS4 scans source code, looking for function calls that are potentially
+dangerous. For some calls, ITS4 tries to perform some code analysis to
+determine how risky the call is. In each case, ITS4 provides a problem report,
+including a short description of the potential problem and suggestions on how
+to fix the code.
+</longdescription>
+</pkgmetadata>
diff --git a/dev-util/itstool/Manifest b/dev-util/itstool/Manifest
new file mode 100644
index 000000000000..4c29cf9f657e
--- /dev/null
+++ b/dev-util/itstool/Manifest
@@ -0,0 +1,5 @@
+DIST itstool-2.0.2.tar.bz2 96748 SHA256 bf909fb59b11a646681a8534d5700fec99be83bb2c57badf8c1844512227033a SHA512 b7915c4d463fe5969e282029c2080730c78e18d2d5878da53c6a370f471056b51a7b3f3c08417b801212ba674f55548a112a12a9d81634f60d1e52a8a47a4aa2 WHIRLPOOL 9e027e9e01cdfd5d4e14b83d2cf85e2c6b9778f5f966de50fe501e56547a4c014b68cc242b33f073756cdf8d217f0171baaff5a8f1b86c47aab1f31437b4773e
+EBUILD itstool-2.0.2.ebuild 859 SHA256 0bdad6ecf25e29bd20363a67c36bbf17fb1285316520961e7d1d343cfcc3bd72 SHA512 71847839b23ebfdc42496969d5fc3db84d36de69a66d36a34a0846871a9a6d2cee481e36bdf3ca5e7aefbad7f9f44e5be36bc3afe6b413fb7699972792b9a5da WHIRLPOOL 353a56fcd8d8bbe1400e23e2440f216708977ba90853dcc13c6f63d8bd82085f99e3226d59bbf581b8c01f040184e4d6d20ccf38bf5a91db85fe56d09ba69194
+MISC ChangeLog 2623 SHA256 35b01a8503b708f1836b67a63b716de08ba30d8779f8a20dc21b72164c77a3cf SHA512 2ddd87f9184b09ac7210b6acbb562360a776121d2d51fc271ea57f8efd43e7482152172f169265c97469531d8970a340341ad16deb2ead3e6216bafaeabca5a4 WHIRLPOOL db00b02b0dfedeaa3424136c40f4271c34f4c75db781b306031ca56c31203e5b3ae6a51fac2e218e2fea086cd4fb48b8580cf33c2dd38e650f26c0d42651440a
+MISC ChangeLog-2015 6783 SHA256 e6c718d90104f746a672f385f0bea18d500187c4d0537eb6df4617f9a12954c2 SHA512 9e1bdc993eb53930904a2cb9dd809386c524a9969052a11b2d39d8e7048a0292f26bfcae71594d696d04b47379661670856403eea9ae03170f271c646c252620 WHIRLPOOL dd2aa34984b3c70ff511ac9538c80e2653f1396ad65e6caa4e375c2aa2df3bda38d1f5fcaaf04b710e90506a5a23599d3096e195ab547b1e19cdcabcdf2f0c18
+MISC metadata.xml 525 SHA256 68a1c4f31c24ed438afb794e6787d69ef04f6d1171979e67c9ccbb66c80e7321 SHA512 ad9928fa0359257e3418c0fb6bba6c416fc4505911f35e97377ef7c1426e228b34312fc3156e98f3657974f1156ee2bdc58bbb4b51903bb40b10c97b0714b39b WHIRLPOOL 0ba0f95aaa458c9b4b96aad50840bc7be9db89d719d436249b946e23d3ab802516c98494d2ae58ec4f198009e88cd559e3095e1cea221a3597b43f0292cfd286
diff --git a/dev-util/itstool/itstool-2.0.2.ebuild b/dev-util/itstool/itstool-2.0.2.ebuild
new file mode 100644
index 000000000000..adf8ad6b64c8
--- /dev/null
+++ b/dev-util/itstool/itstool-2.0.2.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="xml"
+
+inherit python-single-r1
+
+DESCRIPTION="Translation tool for XML documents that uses gettext files and ITS rules"
+HOMEPAGE="http://itstool.org/"
+SRC_URI="http://files.itstool.org/itstool/${P}.tar.bz2"
+
+# files in /usr/share/itstool/its are HPND/as-is || GPL-3
+LICENSE="GPL-3+ || ( HPND GPL-3+ )"
+SLOT="0"
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~arm-linux ~x86-linux"
+IUSE=""
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}
+ dev-libs/libxml2[python,${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}"
+
+pkg_setup() {
+ DOCS=(ChangeLog NEWS) # AUTHORS, README are empty
+ python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ python_fix_shebang .
+}
diff --git a/dev-util/itstool/metadata.xml b/dev-util/itstool/metadata.xml
new file mode 100644
index 000000000000..90e918d8d5dc
--- /dev/null
+++ b/dev-util/itstool/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="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+ </maintainer>
+ <longdescription lang="en">ITS Tool allows you to translate your XML documents
+ with gettext PO files, using rules from the W3C Internationalization Tag Set
+ (ITS) to determine what to translate and how to separate it into PO file
+ messages.
+</longdescription>
+</pkgmetadata>
diff --git a/dev-util/jarwizard/Manifest b/dev-util/jarwizard/Manifest
new file mode 100644
index 000000000000..d396f1b426ea
--- /dev/null
+++ b/dev-util/jarwizard/Manifest
@@ -0,0 +1,5 @@
+DIST jarwizard_250_src.zip 169540 SHA256 0f32f4d0e817674929d03cdb2e33c4c7dee8418ccbf8ef9dfb4266c068d39645 SHA512 8d40cecd339e8e50b58c2c78a3c53b712275d95393d8ace4799b55a7f66f6e2a4bfd3348f92d6022d1d48c6edf17117c2b1bb1defc55e73fbdcf541907eeef1f WHIRLPOOL 172bd8098a0860b89318f0672011d3052c9e16312bdb3d47ea0623d18bc824fd3257fa02c9ade316b95109d2cfebd0440b99554fda11c456a022f971d968d646
+EBUILD jarwizard-2.50.ebuild 672 SHA256 a1e0a20f1880fb71a03adfe1fbdb9d1b3d8a3e70821bcb221e16a97521e24034 SHA512 47a954449e0f38c816d3dcc57f54ada912f7cc00cafe243305143fada6c066498f6c78548dc7441e5943d06c7970a93c98af4bcf197d4a847ad60358ef06d9b1 WHIRLPOOL 4f75ae315687966e0a4e4bb6c7262bf398acbcdd19b0c56c68ceeee1ca6d28168a9223baecbcfd5b225ddc08a84909d8a140fbca0c86a5cd068778de0e6b3b8f
+MISC ChangeLog 2683 SHA256 2ccff3f504020e98f542d339745247b80496770214e58f0625bff3773c585fef SHA512 95588c6be63587430a2b319d0fe0fa15fed26f101bcf10d19bf34d183541790fe9b73fa21a3eb68813a97f4aac64c78161561c0afbda1e29d71223c156dc2908 WHIRLPOOL daaef5d6f6598cb0987f7b1efc65ec16608901623cf7ec3a36a5cf46274b68da6d9f78b2b5ab73799843947733e31375dae08699228979e6a51b5ee08eaf6626
+MISC ChangeLog-2015 1530 SHA256 817bdc28f2d19233ceb5d66c76ab11df8bedaec34c7a4b99812b5ba6ae1de530 SHA512 309806efbaadcc048bfae77afd0ae5b8e2f1e85d97f46365c8970ffdd8cedf2452edce967e95567e56956894ff0de72789ab94b00f65fac00e996bd1f4c0e78a WHIRLPOOL 2c09945c6955227ccb00b362ddb9ffb0e9a025c559ea07dc8524ef1d63415e83ff9aa2b14493c29477c003ddc61cbd1ef4b1c985f0d29e4dc7e59a2368b22610
+MISC metadata.xml 315 SHA256 1f66bb0956609d3fa496945a4ef4e8d56af6ae03984525baaf16d877daa80032 SHA512 91e4126398b25c29af33c39af19f08f2eb8069c7595dcd752b347b4db0d232e4315708d2baf92f31f6ad7805f279a96b10891b73de53c0cc9331a0e9a404f82d WHIRLPOOL 85d83b682b6df62b249e0c9dc5cd63efc2d1fc8e9adff1639f3f210d8f9147befa2ab222a49097448abfa6819b5bec8d8f0ffe4ae72faff1226973223a72cd24
diff --git a/dev-util/jarwizard/jarwizard-2.50.ebuild b/dev-util/jarwizard/jarwizard-2.50.ebuild
new file mode 100644
index 000000000000..741bb261158f
--- /dev/null
+++ b/dev-util/jarwizard/jarwizard-2.50.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit java-pkg-2 java-ant-2
+
+DESCRIPTION="Takes the hassle out of creating executable JAR files for your Java programs"
+SRC_URI="mirror://sourceforge/jarwizard/${PN}_${PV/./}_src.zip"
+HOMEPAGE="https://sourceforge.net/projects/jarwizard/"
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 x86"
+DEPEND=">=virtual/jdk-1.5
+ app-arch/unzip"
+RDEPEND=">=virtual/jre-1.5"
+
+IUSE=""
+
+S="${WORKDIR}/${PN}"
+
+src_unpack() {
+ unpack ${A}
+ java-ant_bsfix_one "${S}/nbproject/build-impl.xml"
+}
+
+src_install() {
+ java-pkg_dojar dist/*.jar
+ java-pkg_dolauncher ${PN} --main JarWizard
+}
diff --git a/dev-util/jarwizard/metadata.xml b/dev-util/jarwizard/metadata.xml
new file mode 100644
index 000000000000..6c9274348332
--- /dev/null
+++ b/dev-util/jarwizard/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="project">
+ <email>java@gentoo.org</email>
+ <name>Java</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">jarwizard</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/jay/Manifest b/dev-util/jay/Manifest
new file mode 100644
index 000000000000..7e63576ecbf4
--- /dev/null
+++ b/dev-util/jay/Manifest
@@ -0,0 +1,6 @@
+DIST jay-1.1.1-mono.snk.bz2 785 SHA256 0cc2ca58f90773eafa8460dfb8ff4ac6238b68106eb1631348a800091a6ff3de SHA512 de64da7a9e4fa53e5a5abaee00aae05ce3560c72ad8251fd79e2ff9ffa7fb2d5e7c1a4bdb2dbc2eeeeac6450aaad8c40649ff4675ddf95365ef8604a93333224 WHIRLPOOL 05882dd5cc9e2b99b78dc882fed49547dc6b6c133616574987322623e3bd734dc74435b69a6c864f928eb087df7a1ab42910adc47a7d0e70d54178e6b319f628
+DIST jay-1.1.1.zip 679556 SHA256 f4da396c80578653685d287cea1e32669ebdf148cc17eed9ba88e895942bd571 SHA512 5715d675f818310337738e98ca291c005caefd2e3903b8c29f13e5d9fd90e12b7de7c94ae6bfb4f4be4309af060ad39388789fba038ebf19a2a9fe7ca1ce915f WHIRLPOOL 938abbcb36977d8bf3f5cacce61b45e6e81121e4afa05ba79f0cfbee965e1d2ef417b896ac8837d429b583c73c43ce8601170fe5bd60984133123736def9829c
+EBUILD jay-1.1.1-r2.ebuild 1680 SHA256 da52e84a68c6845dc2a3c2e94defa4e03521f34101f670b2507fa828d594e1f7 SHA512 d3e08edf210d3727533bb6cb4dd0b2fdedd0369a855d4acd92b445ba962236bb7fcd19714ad43b51b6beab0934f257cd08e53b7c20613c2d5e27400bc7f90dfd WHIRLPOOL f6a2134195e6f928708d8a5426e9f074520cc02c09dd7e643bd4d923e2858778ccb9d7ab6769822c14425567071e453cd23a32417716389fc328672755610524
+MISC ChangeLog 2444 SHA256 c3b90b01112a8073a039ec3fbb9fc4e5ab6a0a5428b907a34e0d8d88b2afdbc3 SHA512 7d1802b4eb26e47b22045b7c23c32288fdc43ff7f8632f81a1e281fd93e28eafa4e8567bd06bc946b54ff80f998a272786ed39b9d3c8c761cc83f6b92e4784b8 WHIRLPOOL f14114580091e4146a4996029d7eeff9e859f9d2a39929a17aad8d646564df06fad27c9518572f9736793120e406578c96a91e1c418acd88f9e7ef44d5cd3937
+MISC ChangeLog-2015 1942 SHA256 4b70b2ad09c28d37d7c9046634b30f4e142642e34fbfc7d39f37dcfdf9d2ce57 SHA512 d2e15ebdc35e6a75cb94065ef188655e794a4557bf2bca10f5e0e8062214816676cda6d97bd81482f82c25b7eb7706cb2eb4ef230c2d6668900687ff8e5c14a0 WHIRLPOOL 781030cd1d79b30d4107eafaa2cc973130d2a28d35e08695c900effe65fdff9d48b843d67c56a03b34d489c05617f8a04b24f4e372440418b5aa6d55c6549be8
+MISC metadata.xml 344 SHA256 20fa19e99f3a89690421e8bb83f070b89c717627d4343dffb0874f8942c14b15 SHA512 45b2e4d8508d8ed404960630bd96cefc53ba8dcb0ca52ae27557fb1d741c47b423883157eacac835791f5f2a9164961ce773e150e2843a22929b98ee984abce7 WHIRLPOOL b6281d6ac6ed843732e4a99df2707d5ef5acd7ce86f270d89428212f9ec3b600909ac5d8d20202ff07c4143e5fb1860111e45e1455e326e5bc103b42e4397637
diff --git a/dev-util/jay/jay-1.1.1-r2.ebuild b/dev-util/jay/jay-1.1.1-r2.ebuild
new file mode 100644
index 000000000000..38a0681abbb2
--- /dev/null
+++ b/dev-util/jay/jay-1.1.1-r2.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+inherit mono java-pkg-opt-2 toolchain-funcs
+
+DESCRIPTION="A LALR(1) parser generator: Berkeley yacc retargeted to C# and Java"
+HOMEPAGE="http://www.cs.rit.edu/~ats/projects/lp/doc/jay/package-summary.html"
+SRC_URI="http://www.cs.rit.edu/~ats/projects/lp/doc/jay/doc-files/src.zip -> ${P}.zip
+ https://dev.gentoo.org/~ssuominen/${P}-mono.snk.bz2"
+
+LICENSE="public-domain BSD"
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86 ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE="java mono"
+
+COMMON_DEPEND="!<=dev-lang/mono-2.4
+ mono? ( >dev-lang/mono-2.4 )"
+RDEPEND="${COMMOND_DEPEND}
+ java? ( >=virtual/jre-1.4 )"
+DEPEND="${COMMON_DEPEND}
+ java? ( >=virtual/jdk-1.4 )
+ app-arch/unzip"
+
+S=${WORKDIR}/${PN}
+
+RESTRICT="test"
+
+java_prepare() {
+ sed -i -r \
+ -e 's:^v4\s*=.*:v4 = ${JAVA_HOME}/bin:' \
+ -e 's:JAVAC\s*=.*:\0 ${JAVACFLAGS}:' \
+ yydebug/makefile || die
+}
+
+src_prepare() {
+ sed -i -r \
+ -e "s:^CC\s*=.*:CC = `tc-getCC`:" \
+ -e 's/^jay:.* \$e /\0$(LDFLAGS) /' \
+ -e '/^CFLAGS\s*=/d' \
+ src/makefile || die
+
+ java-utils-2_src_prepare
+}
+
+src_compile() {
+ emake -C src jay
+ use java && emake -C yydebug yydebug.jar
+
+ if use mono; then
+ pushd cs >/dev/null
+ "${EPREFIX}"/usr/bin/gmcs /target:library /out:yydebug.dll /keyfile:"${WORKDIR}"/${P}-mono.snk yyDebug.cs || die
+ popd >/dev/null
+ fi
+}
+
+src_install() {
+ dobin src/jay
+
+ doman jay.1
+ dodoc README
+
+ if use java; then
+ java-pkg_dojar yydebug/yydebug.jar
+ insinto /usr/share/jay
+ doins java/skeleton.{java,tables}
+ fi
+
+ if use mono; then
+ egacinstall cs/yydebug.dll
+ insinto /usr/share/jay
+ doins cs/skeleton.cs
+ fi
+}
diff --git a/dev-util/jay/metadata.xml b/dev-util/jay/metadata.xml
new file mode 100644
index 000000000000..529fb7657b73
--- /dev/null
+++ b/dev-util/jay/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="project">
+ <email>java@gentoo.org</email>
+ <name>Java</name>
+</maintainer>
+<maintainer type="project">
+ <email>dotnet@gentoo.org</email>
+ <name>Gentoo Dotnet Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/dev-util/jconfig/Manifest b/dev-util/jconfig/Manifest
new file mode 100644
index 000000000000..fb4cb8984558
--- /dev/null
+++ b/dev-util/jconfig/Manifest
@@ -0,0 +1,9 @@
+DIST jconfig-src-v2.8.5.tar.gz 1171848 SHA256 3c3e1bd918a5ddff03bc7177b79962742b56101ce30355b2f10051ed3911019f SHA512 c6c1af63069ccaf7cfd2fe625318fec4ed3f82671754956f8d861c3254a748bbc8a7b8e63e36cf8abc436d4ced732d8ea04f770551428b04d3078293dc77d6ff WHIRLPOOL 17f00ea090b25783e11c1a670fbf13a74e98ef5b8f36322db2cf0f2e80dcb0c4dc0e1dff64f4aea652a0713f8e1b44537061d54126f27b5000e8474c80150200
+DIST jconfig-src-v2.8.tar.gz 1155906 SHA256 cba610b110de21936ecabd4db00ce18035c4ee14fcde9e9a3fa6c2d722477dae SHA512 ed84e3be2334caa9a7edf0308c6a2cc07c1462235ce27c39ec180c535f163447373f82a0c9f6ad144ec16cc013658e0f23e98e2f2089c7a680d1728a812d49c5 WHIRLPOOL b930879751980285b21dde61cfa23d31e5490c267d2aad50c1fd314fccc800f90537c08e20508f757b60d0802cb79d1d50815a0dec01e2754a84eeaf5a2eedc2
+DIST jconfig-src-v2.9.tar.gz 1202738 SHA256 4e4ee16b2bfec7d73ede45f0c42960cb4a907396d29123c2e0060c5ff83cc616 SHA512 fb3c171f8204bd41d7b0183707b6f524dbf27d8c82335cce5f9b4070b77ea1c86345692e533f1a6d64e0334e0bfc88f4cc47828aea6b4b56058197122c675b2c WHIRLPOOL 962a07b0206b899b583da4586193500740d092f26ee0a741b65dee412aef66fe07f21efea1a8c55e809534bbc22236e2d8b959ba5c7c5e2918b662e3ff71bc5f
+EBUILD jconfig-2.8-r3.ebuild 881 SHA256 4ab7977865f25d661ad666a9e6f593d8fc412b56b2427c10493b78e4ba1bca08 SHA512 6c583c2c0f4566b55338b2177e0a933d4f82c03b46a907666775b0add67a9c750a70e95a21afcb8a10017886122c3cf5ffe523b5a4da724391e1aac35e075649 WHIRLPOOL 5e7735195c38c1f9d0d98bf577a71a015cd7906735f1deb1a738ef6b64183c315613d2ad25796e194251592dbf5a485cea96641c1a798bbc2c15cb0a04c50ed4
+EBUILD jconfig-2.8.5.ebuild 881 SHA256 4ab7977865f25d661ad666a9e6f593d8fc412b56b2427c10493b78e4ba1bca08 SHA512 6c583c2c0f4566b55338b2177e0a933d4f82c03b46a907666775b0add67a9c750a70e95a21afcb8a10017886122c3cf5ffe523b5a4da724391e1aac35e075649 WHIRLPOOL 5e7735195c38c1f9d0d98bf577a71a015cd7906735f1deb1a738ef6b64183c315613d2ad25796e194251592dbf5a485cea96641c1a798bbc2c15cb0a04c50ed4
+EBUILD jconfig-2.9.ebuild 871 SHA256 eef3de3bf083edc63f43dc8b3ad1edb2dd5b1dd13058fe5e5f7bbcc5cc51dde5 SHA512 9ca77083caf521dcfe72b0a592a6cf392b0d6bff9d2eca1ae3f148ff4beadc80610dcd5c4ae10d78554755c69eaf136dfa44934354091783e81bee25f72235dc WHIRLPOOL 4449c0796f4ab2007399db0e42099a9087a93d746baa2f02d1f2b08897cafeaf3789dba7c41513ee032a048feda41165c4f4d1206758802cce67851d2448b80a
+MISC ChangeLog 2712 SHA256 c4f6e43847e4900dce2f6592f3c056718a7e19c65a24bc0afb4bb477bb99c325 SHA512 2467c98c4c4157ee098a682343a1c17b50618c450172f561958420fb6bba94f4d5393c9bc944905f7a7459b9fbb0ed007a9c3d2db230fca9e15ad3fce7a03273 WHIRLPOOL 46c68a4eea8847a37cbeefb41dd47da43eaa4b3da6ff2fa92e26337f98f604dbd3e123d7c2c953350659a13e6be0063214fd34aca9b8cc91e1bc152b7e0307c1
+MISC ChangeLog-2015 2901 SHA256 7797f9fb43e38c1935e6162da3b338a1f82e2437f3e0b5aa8d55bdc2c4916e9a SHA512 3cf098a19b37122b59f82bab61ec1cf823bec30dd0647a7e744b595782a7ff67f82e8868c864b6b8d057f2badc5fc3a88c94a9867c780dbf1b10de4ab96778b6 WHIRLPOOL 112b732e6dcda12ed51fdf1f0316954f9a03e298c4295a95f99132afd36b430edcead89512f718d8db65f4937bbfbc7bd9e2e75a259615ecdd7a115515ac128e
+MISC metadata.xml 313 SHA256 d261ba772288659640b4469f11948006a5a0e05c9a06c0b9bb79a88d6cb99a20 SHA512 a763cadd5e639466f136912e6a1abad023e53576ccbfc5b6b82b9ce5e7f7b173000d51d0991332dd52bff2fc0ee77963ce2e77b58c3f9ecf9701344ee4c5f2ae WHIRLPOOL 356851e6272ca4d2e2341ad1ced22b001a5f9b1981272a843f57880ef3c7e46975bef9b92b611426b2351f7f13aacc272c1a83021e19db9262f0c061ca23cff7
diff --git a/dev-util/jconfig/jconfig-2.8-r3.ebuild b/dev-util/jconfig/jconfig-2.8-r3.ebuild
new file mode 100644
index 000000000000..a39ec9d566c0
--- /dev/null
+++ b/dev-util/jconfig/jconfig-2.8-r3.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+JAVA_PKG_IUSE="doc source"
+
+inherit java-pkg-2 java-ant-2
+
+DESCRIPTION="jConfig is an extremely helpful utility, providing a simple API for the management of properties"
+SRC_URI="mirror://sourceforge/${PN}/${PN}-src-v${PV}.tar.gz"
+HOMEPAGE="http://www.jconfig.org/"
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+COMMON_DEP="java-virtuals/jmx"
+
+RDEPEND=">=virtual/jre-1.4
+ ${COMMON_DEP}"
+
+DEPEND=">=virtual/jdk-1.4
+ ${COMMON_DEP}"
+
+S="${WORKDIR}/${PN/c/C}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ rm -v dist/*.jar || die
+ rm -v lib/*.jar || die
+
+ java-pkg_jar-from --into lib jmx
+}
+
+JAVA_ANT_ENCODING="ISO-8859-1"
+
+src_install() {
+ java-pkg_dojar dist/jconfig.jar
+
+ dodoc README || die
+
+ use doc && java-pkg_dojavadoc javadoc
+ use source && java-pkg_dosrc src/*
+
+}
diff --git a/dev-util/jconfig/jconfig-2.8.5.ebuild b/dev-util/jconfig/jconfig-2.8.5.ebuild
new file mode 100644
index 000000000000..a39ec9d566c0
--- /dev/null
+++ b/dev-util/jconfig/jconfig-2.8.5.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+JAVA_PKG_IUSE="doc source"
+
+inherit java-pkg-2 java-ant-2
+
+DESCRIPTION="jConfig is an extremely helpful utility, providing a simple API for the management of properties"
+SRC_URI="mirror://sourceforge/${PN}/${PN}-src-v${PV}.tar.gz"
+HOMEPAGE="http://www.jconfig.org/"
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+COMMON_DEP="java-virtuals/jmx"
+
+RDEPEND=">=virtual/jre-1.4
+ ${COMMON_DEP}"
+
+DEPEND=">=virtual/jdk-1.4
+ ${COMMON_DEP}"
+
+S="${WORKDIR}/${PN/c/C}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ rm -v dist/*.jar || die
+ rm -v lib/*.jar || die
+
+ java-pkg_jar-from --into lib jmx
+}
+
+JAVA_ANT_ENCODING="ISO-8859-1"
+
+src_install() {
+ java-pkg_dojar dist/jconfig.jar
+
+ dodoc README || die
+
+ use doc && java-pkg_dojavadoc javadoc
+ use source && java-pkg_dosrc src/*
+
+}
diff --git a/dev-util/jconfig/jconfig-2.9.ebuild b/dev-util/jconfig/jconfig-2.9.ebuild
new file mode 100644
index 000000000000..22792d15895d
--- /dev/null
+++ b/dev-util/jconfig/jconfig-2.9.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+JAVA_PKG_IUSE="doc source"
+
+inherit java-pkg-2 java-ant-2
+
+DESCRIPTION="jConfig is an extremely helpful utility, providing a simple API for the management of properties"
+SRC_URI="mirror://sourceforge/${PN}/${PN}-src-v${PV}.tar.gz"
+HOMEPAGE="http://www.jconfig.org/"
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+CDEPEND="java-virtuals/jmx"
+
+RDEPEND=">=virtual/jre-1.6
+ ${CDEPEND}"
+
+DEPEND=">=virtual/jdk-1.6
+ ${CDEPEND}"
+
+S="${WORKDIR}/${PN/c/C}"
+
+java_prepare() {
+ cd "${S}"
+
+ rm -v dist/*.jar || die
+ rm -v lib/*.jar || die
+
+ java-pkg_jar-from --into lib jmx
+}
+
+JAVA_ANT_ENCODING="ISO-8859-1"
+
+src_install() {
+ java-pkg_dojar dist/jconfig.jar
+
+ dodoc README || die
+
+ use doc && java-pkg_dojavadoc javadoc
+ use source && java-pkg_dosrc src/*
+
+}
diff --git a/dev-util/jconfig/metadata.xml b/dev-util/jconfig/metadata.xml
new file mode 100644
index 000000000000..3e77b353bc2c
--- /dev/null
+++ b/dev-util/jconfig/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="project">
+ <email>java@gentoo.org</email>
+ <name>Java</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">jconfig</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/jenkins-bin/Manifest b/dev-util/jenkins-bin/Manifest
new file mode 100644
index 000000000000..e1f743775424
--- /dev/null
+++ b/dev-util/jenkins-bin/Manifest
@@ -0,0 +1,23 @@
+AUX jenkins-bin-r1.logrotate 483 SHA256 8bc2cb9759a54f2674abb1264dca452c295295554f76080c77d29586c1a8fa0c SHA512 74423d3c66e2312eb3a1590e0582ccd82fc01b410d3bfc0627bef56fe6f4e7f4ea01a7a2d92a7a0c4870a1a1c48e911fe7eab3073e14db4910b52158182e5856 WHIRLPOOL 9477206b581ca1d48a9460c1c53ff2fa7d30b3c7fd4daac4fd2aef13374eb999301f62fda7e865f4605b3e5e018e1cfa2cf3b82247f4c4bd40ca3c6c09c7bc76
+AUX jenkins-bin.confd 998 SHA256 8cd3e217ae11f47b73f8a3f28beb2f94b14e24da4e822f7209b19a2f14dccb3b SHA512 465ade6325efa05b4a150234f847ad19b9824f667fdc8f783af3d9842afc2815ee3d20dfd9566348701102bf28e1e0627af27ae43d055a9a6279ed638d8ece8b WHIRLPOOL 5c0dee7d648c22c65fcad7ec678ac839d1ab2d61aa52c8e54dccb6a9d58bcda5cca9685e570f0fe5b5f0fd6dd6ce0a47acc616cb9c5f6568758f92125a38f8c8
+AUX jenkins-bin.init2 1782 SHA256 3ff6ee9428744f616b32db1a7a6da9b99cd78573d2a6c9da90a2e70c1d54875b SHA512 e0fd85f653bbf5ac80dc929cb265ac86a08047f9102d57f2ac6194cd31794310a3c062824423552a3ee65e298506332436fca037f96963358dc511982f900be8 WHIRLPOOL 35d6ea0b7b317dbc76222460c4a2219ee7f9a969e88ad04c34e4855b6144abd29c24447ba68012ce511690b0d245c41995e60a68683278b5ee4538153fb04875
+AUX jenkins-bin.service 499 SHA256 51de27d125003a65ff9f8680e741e5f92ccd56e0a2f8a95a4fd0050204f2c3ba SHA512 4ede5e0d55bf9d53239a1b8c152d1a3e38510982d6ff01c9c4288d63b8312ab7412979e0af3466638c7ef2803b711d49344692c14e72baa85d8eb4caa15f7506 WHIRLPOOL 684d39cd7a2fb9b8e9c1efd29fc6b30ffc1f65b045ec271743c9eeba06a267b4a9e0d54154024308917f0fcbde6d070bd9f68a6437d9de1e592147b650a2d1b7
+DIST jenkins-bin-2.57.war 70476328 SHA256 5d7a66864d0941629e1fb8ef82ed98a38e54da39f4a9f3ca31561d573e18b2a5 SHA512 8207174bff1395b017b78b9d99e26b612a138977e75a2e01f59bb17fd42ac4470b7ab3b0b4fa305741bf5bf22987a2e51d61b907cb69c7ccce1697edaf331f76 WHIRLPOOL 17267b5df3ca296f42f711d73070b2a0a54e1a5ec293200bc1fd312a5bfc32abe4dfd63d97e9bd0834640bd28c9d625520e5e221cdde6b48c40fad5e0ba87435
+DIST jenkins-bin-2.60.3.war 70620203 SHA256 2d71b8f87c8417f9303a73d52901a59678ee6c0eefcf7325efed6035ff39372a SHA512 314a66a6745a164a8cd94afe83331246f46a93b1bd0304b5efe4523225ac96a4bd37ce3313b694a0a682d0bfd941ced957216dd1d53aa5e63aa6cea44eec31d2 WHIRLPOOL 0e34d9a4a0afbef823744afdfe6969e603b523a0f8f2a076a27fa111d874ee0102262cdc2f609b4d61117ce0e3ffa9f37cafaf59666597044d55455b5465bddc
+DIST jenkins-bin-2.67.war 71617234 SHA256 2def7deae23ffdcfece481548b3f6d7083d50a2696c91cfb5a9c5e84afcdf704 SHA512 c4b9af585888d2d1dd672569aeb92d2458dba808aa3cd664af31310cf847a7625afe7aad133f709c24598646b6e96d504bd53e54cf14490fbe756273b8494041 WHIRLPOOL b68d78f8e0dfddd3ffae89f2797b62b5a0480581b618f73dbeeff992eb961c52ef2da3de93170f3c97761dd4cf9f743d250cfc13e9fe99d92ea44e47659e8f1c
+DIST jenkins-bin-2.71.war 72956752 SHA256 14727da24054e956dc8b8514998e19001c99efce637891f544d2a9b3d9ea752c SHA512 d5718c70c7a1569f7389a8da2618382abe8799abb98faf87f4b25519b9336af904f32d72c8b30b2ca0f33e72c37d7984b901d4b26179c742333a538152c05b3b WHIRLPOOL bd592e4fe99ce66c6b659b8c28c3f29a2e8b7eb4b953bd1f5920998ff06519492504c525c17ad38d56cb257ad78e7e9e70a897dd43abf6ffc0f557f44e0de807
+DIST jenkins-bin-2.73.1.war 72954406 SHA256 171c6b3d819fb0240ccd06831b4b493bc7d1eb37ca2632c94f907f15b3aedf7f SHA512 82287ecb00c2638afd7f865b1e84da64fb1203c7d93926b7eb1b6dc46b44344d3ae020442d900264e525c3a5d25209a5aaa1c5ee253689ea4acd50ee906a9638 WHIRLPOOL 182c4615b33d818d6758b7da1ca1059926b06a0c1d11655c68538af6d19dbf2d8f299c7820aa52fd016be1396607b06006cbbef69f2887cc3327b0fd459b7380
+DIST jenkins-bin-2.78.war 73240530 SHA256 9d8ce9653d7a1ada2071ad9688ba7938e1e0672586e893e578dbfecdff725df6 SHA512 444c566c96c6d333319bf03629f58a05060628511326cd4fc02252fa55e70950c7901315318e9acd44ee33b51ab911da5f716fc3073b88fb10e3c0ed5977251e WHIRLPOOL 89e0a5ddad12e7f455546189fb878fef8b6d112832079f9ef96f4a298b7d1abd2b670d9b29a2fe22ef277a871b5986d91c967b1cdd0e72be3397ddb6c0cc5752
+DIST jenkins-bin-2.80.war 73094442 SHA256 69a84b894ad03518a66ffef6f63e289476a35a15e0ff186f0ab70f17b87a2a88 SHA512 3e39a4be9e4d977003db72fbdee77824eb9e65a62730a489bc8fcc45941f659d0d766e80d8d1913a2027bbbf8f356b9db18872f03ce1627467e3be373c781ab1 WHIRLPOOL d8fd4140944e44f84704f4eb4bdfca3dd865e3ce21b54a43c0d571a3ab95d95137d35e5ca856c2d41797765f30b9548bfb404e4674b8e338399737ab80a7e10b
+DIST jenkins-bin-2.81.war 73097494 SHA256 6cdb8912f63b19bad5f87e9200babb8926ab1a1a480998b1f54d4a215c354338 SHA512 94b250119441f19996672bd5df216d86034c1188f0293beea8833bf77ad59706dbb8082a8540aa70c0ddc96cb5e1cf57f30c87ee5bda3e7794040a6df436e5de WHIRLPOOL 0b6e2804526e739953c3a004d8d0918f2fcc13fa0a8ec125dca04240f77582c9c85ddca5d1bd359cbd1594c823e6e4bf47b02a7d1fced55f2468147b2bc954d8
+EBUILD jenkins-bin-2.57.ebuild 1103 SHA256 a10ef477b20d8beb35f4c698b35d2fe56bec72c7ce2729250a61e97750466cea SHA512 1744e21e9e5110d1efe3886d216e2b89c9c2fe64e167bbe2611c4fbdb0583e341aea4c31a14baa81411227cbb5678c9ad642be1c48c3e5100bb564e056a9aac6 WHIRLPOOL 97b669904d0d1e086af7d12d0faec6d786cfa5f917a973667cd41a00a233d89604e26b3c1d867535b68b610854d63da798e39a5bface8c8cb8ea20dd119c299f
+EBUILD jenkins-bin-2.60.3.ebuild 1110 SHA256 30f40c8b134a22249e4d8949439c683ad89963eec88afba48fb856fb9c44c320 SHA512 7e51e0a6eade5438b25cd1f66220b865a99f7aff7ed4e6615ec8763fe9767a2caabd68eeb71f543c88d5ffddbe57af0e7623b86b693542930fcdd0ff2f9ccd26 WHIRLPOOL 43f029505b191dbdf4b829fa1aae04d2a50176e74333bca916f6092d352a8e57e8ddbc2b378155dfeb0f3c300c7ce99a5e7d3d884f86a202848e8004367ab494
+EBUILD jenkins-bin-2.67.ebuild 1103 SHA256 a10ef477b20d8beb35f4c698b35d2fe56bec72c7ce2729250a61e97750466cea SHA512 1744e21e9e5110d1efe3886d216e2b89c9c2fe64e167bbe2611c4fbdb0583e341aea4c31a14baa81411227cbb5678c9ad642be1c48c3e5100bb564e056a9aac6 WHIRLPOOL 97b669904d0d1e086af7d12d0faec6d786cfa5f917a973667cd41a00a233d89604e26b3c1d867535b68b610854d63da798e39a5bface8c8cb8ea20dd119c299f
+EBUILD jenkins-bin-2.71.ebuild 1103 SHA256 a10ef477b20d8beb35f4c698b35d2fe56bec72c7ce2729250a61e97750466cea SHA512 1744e21e9e5110d1efe3886d216e2b89c9c2fe64e167bbe2611c4fbdb0583e341aea4c31a14baa81411227cbb5678c9ad642be1c48c3e5100bb564e056a9aac6 WHIRLPOOL 97b669904d0d1e086af7d12d0faec6d786cfa5f917a973667cd41a00a233d89604e26b3c1d867535b68b610854d63da798e39a5bface8c8cb8ea20dd119c299f
+EBUILD jenkins-bin-2.73.1.ebuild 1110 SHA256 30f40c8b134a22249e4d8949439c683ad89963eec88afba48fb856fb9c44c320 SHA512 7e51e0a6eade5438b25cd1f66220b865a99f7aff7ed4e6615ec8763fe9767a2caabd68eeb71f543c88d5ffddbe57af0e7623b86b693542930fcdd0ff2f9ccd26 WHIRLPOOL 43f029505b191dbdf4b829fa1aae04d2a50176e74333bca916f6092d352a8e57e8ddbc2b378155dfeb0f3c300c7ce99a5e7d3d884f86a202848e8004367ab494
+EBUILD jenkins-bin-2.78.ebuild 1103 SHA256 a10ef477b20d8beb35f4c698b35d2fe56bec72c7ce2729250a61e97750466cea SHA512 1744e21e9e5110d1efe3886d216e2b89c9c2fe64e167bbe2611c4fbdb0583e341aea4c31a14baa81411227cbb5678c9ad642be1c48c3e5100bb564e056a9aac6 WHIRLPOOL 97b669904d0d1e086af7d12d0faec6d786cfa5f917a973667cd41a00a233d89604e26b3c1d867535b68b610854d63da798e39a5bface8c8cb8ea20dd119c299f
+EBUILD jenkins-bin-2.80.ebuild 1103 SHA256 a10ef477b20d8beb35f4c698b35d2fe56bec72c7ce2729250a61e97750466cea SHA512 1744e21e9e5110d1efe3886d216e2b89c9c2fe64e167bbe2611c4fbdb0583e341aea4c31a14baa81411227cbb5678c9ad642be1c48c3e5100bb564e056a9aac6 WHIRLPOOL 97b669904d0d1e086af7d12d0faec6d786cfa5f917a973667cd41a00a233d89604e26b3c1d867535b68b610854d63da798e39a5bface8c8cb8ea20dd119c299f
+EBUILD jenkins-bin-2.81.ebuild 1103 SHA256 a10ef477b20d8beb35f4c698b35d2fe56bec72c7ce2729250a61e97750466cea SHA512 1744e21e9e5110d1efe3886d216e2b89c9c2fe64e167bbe2611c4fbdb0583e341aea4c31a14baa81411227cbb5678c9ad642be1c48c3e5100bb564e056a9aac6 WHIRLPOOL 97b669904d0d1e086af7d12d0faec6d786cfa5f917a973667cd41a00a233d89604e26b3c1d867535b68b610854d63da798e39a5bface8c8cb8ea20dd119c299f
+MISC ChangeLog 17147 SHA256 cedd72ff5b9bf786d1428289ac9ac8579ad33145dfb8404deef944cdf1665e67 SHA512 022d5ac33a69933bb466ee8276cc03191402ac9c20c361beb5bcfc73abf1ab72b96b507da444a31b524a9d764ab96ee91640a5713c2534460a562e23fabe2632 WHIRLPOOL ac693d36948f784cd45016c37a7b242fd7f0697157f818656754512bf907f8e06754179bed804cfc8c27b5662317b9bd0c3f983e34da51831cdf7edef16601a7
+MISC ChangeLog-2015 7461 SHA256 e48db67fcc69ca6960feec378328abd2bf810336a50541e6415fb0b3761fa32b SHA512 63f46144cb8712c22700d70fcdafc26c8113cb314781e6b351ca5254bc5196d86ff53b48e3eb0d722d8e6788e5f9b3a68f7767dc4d24724312844c14b8a476c8 WHIRLPOOL 58fe8bb9da5b4439fcef35aaed534ff6b78822287b4e328dc993580a4c970e8ff3b63d925405b48fe4c47a869f196f2ff59a439743b4a1b27acdbaa0ece4a7a6
+MISC metadata.xml 397 SHA256 f748bd402594de6903f7182113715c4ab3a9b0b382350ff52a3671ed7b11bd0b SHA512 4087fd799f4019f09103fb32d7f120e74d94715205bcc66858d11b9457774acaed37f3ad97ca0328f4ec28230a409dcfb0cbaceec142eb0a5fd3241ca35f8810 WHIRLPOOL 63fdb75a201da6f1a0d1ca73ed6167a0bbf438b568f0d2d68a620eae559ed3aac5e1d8f5e9f57557c5310dd38bcf459d512027c49928c5d82c7e99609c2dca49
diff --git a/dev-util/jenkins-bin/files/jenkins-bin-r1.logrotate b/dev-util/jenkins-bin/files/jenkins-bin-r1.logrotate
new file mode 100644
index 000000000000..33b16600452e
--- /dev/null
+++ b/dev-util/jenkins-bin/files/jenkins-bin-r1.logrotate
@@ -0,0 +1,17 @@
+/var/log/jenkins/jenkins.log /var/log/jenkins/access_log {
+ compress
+ dateext
+ maxage 365
+ rotate 99
+ size=+4096k
+ notifempty
+ missingok
+ create 644
+ postrotate
+ [ -r /etc/conf.d/jenkins ] && . /etc/conf.d/jenkins
+ if [ -s /var/run/jenkins.pid ]; then
+ JPID=$(cat /var/run/jenkins.pid)
+ test -n "$(find /proc/$JPID -maxdepth 0 -user ${RUN_AS:-jenkins} 2>/dev/null)" && kill -s ALRM $JPID || :
+ fi
+ endscript
+}
diff --git a/dev-util/jenkins-bin/files/jenkins-bin.confd b/dev-util/jenkins-bin/files/jenkins-bin.confd
new file mode 100644
index 000000000000..f84e3463e359
--- /dev/null
+++ b/dev-util/jenkins-bin/files/jenkins-bin.confd
@@ -0,0 +1,62 @@
+# Config file for /etc/init.d/jenkins
+
+#
+# Directory where Jenkins store its configuration and working
+# files (checkouts, build reports, artifacts, ...).
+#
+JENKINS_HOME="/var/lib/jenkins/home"
+
+#
+# Options to pass to java when running Jenkins.
+#
+JENKINS_JAVA_OPTIONS="-Djava.awt.headless=true"
+
+#
+# Port Jenkins is listening on.
+#
+JENKINS_PORT="8080"
+
+#
+# Debug level for logs -- the higher the value, the more verbose.
+# 5 is INFO.
+#
+JENKINS_DEBUG_LEVEL="5"
+
+#
+# Whether to enable access logging or not.
+#
+JENKINS_ENABLE_ACCESS_LOG="no"
+
+#
+# Maximum number of HTTP worker threads.
+#
+JENKINS_HANDLER_MAX="100"
+
+#
+# Maximum number of idle HTTP worker threads.
+#
+JENKINS_HANDLER_IDLE="20"
+
+#
+# Pass arbitrary arguments to Jenkins.
+# Eg.: --httpListenAddress=127.0.0.1 --prefix=/jenkins
+# Full option list: java -jar jenkins.war --help
+#
+JENKINS_ARGS=""
+
+#
+# User
+#
+JENKINS_USER=jenkins
+
+
+
+#
+# Pid File
+#
+JENKINS_PIDFILE="/var/run/jenkins.pid"
+
+#
+# War File
+#
+JENKINS_WAR="/opt/jenkins/jenkins.war"
diff --git a/dev-util/jenkins-bin/files/jenkins-bin.init2 b/dev-util/jenkins-bin/files/jenkins-bin.init2
new file mode 100644
index 000000000000..93d4d5f7e687
--- /dev/null
+++ b/dev-util/jenkins-bin/files/jenkins-bin.init2
@@ -0,0 +1,52 @@
+#!/sbin/openrc-run
+
+depend() {
+ need net
+ use dns logger mysql postgresql
+}
+
+checkconfig() {
+ if [ ! -n "$JENKINS_HOME" ] ; then
+ eerror "JENKINS_HOME not configured"
+ return 1
+ fi
+ if [ ! -d "$JENKINS_HOME" ] ; then
+ checkpath -q -d -o jenkins:jenkins -m 0755 "$JENKINS_HOME" || return 1
+ fi
+ return 0
+}
+
+start() {
+ checkconfig || return 1
+
+ JAVA_HOME=`java-config --jre-home`
+ COMMAND=$JAVA_HOME/bin/java
+
+ JAVA_PARAMS="$JENKINS_JAVA_OPTIONS -DJENKINS_HOME=$JENKINS_HOME -jar $JENKINS_WAR"
+
+ # Don't use --daemon here, because in this case stop will not work
+ PARAMS="--logfile=/var/log/jenkins/jenkins.log"
+ [ -n "$JENKINS_PORT" ] && PARAMS="$PARAMS --httpPort=$JENKINS_PORT"
+ [ -n "$JENKINS_DEBUG_LEVEL" ] && PARAMS="$PARAMS --debug=$JENKINS_DEBUG_LEVEL"
+ [ -n "$JENKINS_HANDLER_STARTUP" ] && PARAMS="$PARAMS --handlerCountStartup=$JENKINS_HANDLER_STARTUP"
+ [ -n "$JENKINS_HANDLER_MAX" ] && PARAMS="$PARAMS --handlerCountMax=$JENKINS_HANDLER_MAX"
+ [ -n "$JENKINS_HANDLER_IDLE" ] && PARAMS="$PARAMS --handlerCountMaxIdle=$JENKINS_HANDLER_IDLE"
+ [ -n "$JENKINS_ARGS" ] && PARAMS="$PARAMS $JENKINS_ARGS"
+
+ if [ "$JENKINS_ENABLE_ACCESS_LOG" = "yes" ]; then
+ PARAMS="$PARAMS --accessLoggerClassName=winstone.accesslog.SimpleAccessLogger --simpleAccessLogger.format=combined --simpleAccessLogger.file=/var/log/jenkins/access_log"
+ fi
+
+ ebegin "Starting ${SVCNAME}"
+ start-stop-daemon --start --quiet --background \
+ --make-pidfile --pidfile $JENKINS_PIDFILE \
+ --user ${JENKINS_USER} \
+ --exec "${COMMAND}" -- $JAVA_PARAMS $PARAMS
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ${SVCNAME}"
+ start-stop-daemon --stop --quiet --pidfile $JENKINS_PIDFILE
+ eend $?
+}
diff --git a/dev-util/jenkins-bin/files/jenkins-bin.service b/dev-util/jenkins-bin/files/jenkins-bin.service
new file mode 100644
index 000000000000..5edaac7da40a
--- /dev/null
+++ b/dev-util/jenkins-bin/files/jenkins-bin.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=Jenkins Daemon
+
+[Service]
+Type=forking
+ExecStart=/usr/bin/java -Djava.awt.headless=true -DJENKINS_HOME=/var/lib/jenkins/home -jar /opt/jenkins/jenkins.war --daemon --logfile=/var/log/jenkins/jenkins.log --httpPort=8080 --debug=5 --handlerCountMax=100 --handlerCountMaxIdle=20 --accessLoggerClassName=winstone.accesslog.SimpleAccessLogger --simpleAccessLogger.format=combined --simpleAccessLogger.file=/var/log/jenkins/access_log
+User=jenkins
+
+[Install]
+WantedBy=multi-user.target
diff --git a/dev-util/jenkins-bin/jenkins-bin-2.57.ebuild b/dev-util/jenkins-bin/jenkins-bin-2.57.ebuild
new file mode 100644
index 000000000000..2101948a704e
--- /dev/null
+++ b/dev-util/jenkins-bin/jenkins-bin-2.57.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit user systemd
+
+DESCRIPTION="Extensible continuous integration server"
+HOMEPAGE="http://jenkins-ci.org/"
+LICENSE="MIT"
+SRC_URI="http://mirrors.jenkins-ci.org/war/${PV}/${PN/-bin/}.war -> ${P}.war"
+RESTRICT="mirror"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+IUSE=""
+
+RDEPEND="media-fonts/dejavu
+ media-libs/freetype
+ !dev-util/jenkins-bin:lts
+ >=virtual/jre-1.8.0"
+
+S=${WORKDIR}
+
+JENKINS_DIR=/var/lib/jenkins
+
+pkg_setup() {
+ enewgroup jenkins
+ enewuser jenkins -1 -1 ${JENKINS_DIR} jenkins
+}
+
+src_install() {
+ keepdir /var/log/jenkins ${JENKINS_DIR}/backup ${JENKINS_DIR}/home
+
+ insinto /opt/jenkins
+ newins "${DISTDIR}"/${P}.war ${PN/-bin/}.war
+
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}"/${PN}-r1.logrotate ${PN/-bin/}
+
+ newinitd "${FILESDIR}"/${PN}.init2 jenkins
+ newconfd "${FILESDIR}"/${PN}.confd jenkins
+
+ systemd_newunit "${FILESDIR}"/${PN}.service jenkins.service
+
+ fowners jenkins:jenkins /var/log/jenkins ${JENKINS_DIR} ${JENKINS_DIR}/home ${JENKINS_DIR}/backup
+}
diff --git a/dev-util/jenkins-bin/jenkins-bin-2.60.3.ebuild b/dev-util/jenkins-bin/jenkins-bin-2.60.3.ebuild
new file mode 100644
index 000000000000..fb976b69a9ff
--- /dev/null
+++ b/dev-util/jenkins-bin/jenkins-bin-2.60.3.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit user systemd
+
+DESCRIPTION="Extensible continuous integration server"
+HOMEPAGE="http://jenkins-ci.org/"
+LICENSE="MIT"
+SRC_URI="http://mirrors.jenkins-ci.org/war-stable/${PV}/${PN/-bin/}.war -> ${P}.war"
+RESTRICT="mirror"
+SLOT="lts"
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+IUSE=""
+
+RDEPEND="media-fonts/dejavu
+ media-libs/freetype
+ !dev-util/jenkins-bin:0
+ >=virtual/jre-1.8.0"
+
+S=${WORKDIR}
+
+JENKINS_DIR=/var/lib/jenkins
+
+pkg_setup() {
+ enewgroup jenkins
+ enewuser jenkins -1 -1 ${JENKINS_DIR} jenkins
+}
+
+src_install() {
+ keepdir /var/log/jenkins ${JENKINS_DIR}/backup ${JENKINS_DIR}/home
+
+ insinto /opt/jenkins
+ newins "${DISTDIR}"/${P}.war ${PN/-bin/}.war
+
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}"/${PN}-r1.logrotate ${PN/-bin/}
+
+ newinitd "${FILESDIR}"/${PN}.init2 jenkins
+ newconfd "${FILESDIR}"/${PN}.confd jenkins
+
+ systemd_newunit "${FILESDIR}"/${PN}.service jenkins.service
+
+ fowners jenkins:jenkins /var/log/jenkins ${JENKINS_DIR} ${JENKINS_DIR}/home ${JENKINS_DIR}/backup
+}
diff --git a/dev-util/jenkins-bin/jenkins-bin-2.67.ebuild b/dev-util/jenkins-bin/jenkins-bin-2.67.ebuild
new file mode 100644
index 000000000000..2101948a704e
--- /dev/null
+++ b/dev-util/jenkins-bin/jenkins-bin-2.67.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit user systemd
+
+DESCRIPTION="Extensible continuous integration server"
+HOMEPAGE="http://jenkins-ci.org/"
+LICENSE="MIT"
+SRC_URI="http://mirrors.jenkins-ci.org/war/${PV}/${PN/-bin/}.war -> ${P}.war"
+RESTRICT="mirror"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+IUSE=""
+
+RDEPEND="media-fonts/dejavu
+ media-libs/freetype
+ !dev-util/jenkins-bin:lts
+ >=virtual/jre-1.8.0"
+
+S=${WORKDIR}
+
+JENKINS_DIR=/var/lib/jenkins
+
+pkg_setup() {
+ enewgroup jenkins
+ enewuser jenkins -1 -1 ${JENKINS_DIR} jenkins
+}
+
+src_install() {
+ keepdir /var/log/jenkins ${JENKINS_DIR}/backup ${JENKINS_DIR}/home
+
+ insinto /opt/jenkins
+ newins "${DISTDIR}"/${P}.war ${PN/-bin/}.war
+
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}"/${PN}-r1.logrotate ${PN/-bin/}
+
+ newinitd "${FILESDIR}"/${PN}.init2 jenkins
+ newconfd "${FILESDIR}"/${PN}.confd jenkins
+
+ systemd_newunit "${FILESDIR}"/${PN}.service jenkins.service
+
+ fowners jenkins:jenkins /var/log/jenkins ${JENKINS_DIR} ${JENKINS_DIR}/home ${JENKINS_DIR}/backup
+}
diff --git a/dev-util/jenkins-bin/jenkins-bin-2.71.ebuild b/dev-util/jenkins-bin/jenkins-bin-2.71.ebuild
new file mode 100644
index 000000000000..2101948a704e
--- /dev/null
+++ b/dev-util/jenkins-bin/jenkins-bin-2.71.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit user systemd
+
+DESCRIPTION="Extensible continuous integration server"
+HOMEPAGE="http://jenkins-ci.org/"
+LICENSE="MIT"
+SRC_URI="http://mirrors.jenkins-ci.org/war/${PV}/${PN/-bin/}.war -> ${P}.war"
+RESTRICT="mirror"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+IUSE=""
+
+RDEPEND="media-fonts/dejavu
+ media-libs/freetype
+ !dev-util/jenkins-bin:lts
+ >=virtual/jre-1.8.0"
+
+S=${WORKDIR}
+
+JENKINS_DIR=/var/lib/jenkins
+
+pkg_setup() {
+ enewgroup jenkins
+ enewuser jenkins -1 -1 ${JENKINS_DIR} jenkins
+}
+
+src_install() {
+ keepdir /var/log/jenkins ${JENKINS_DIR}/backup ${JENKINS_DIR}/home
+
+ insinto /opt/jenkins
+ newins "${DISTDIR}"/${P}.war ${PN/-bin/}.war
+
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}"/${PN}-r1.logrotate ${PN/-bin/}
+
+ newinitd "${FILESDIR}"/${PN}.init2 jenkins
+ newconfd "${FILESDIR}"/${PN}.confd jenkins
+
+ systemd_newunit "${FILESDIR}"/${PN}.service jenkins.service
+
+ fowners jenkins:jenkins /var/log/jenkins ${JENKINS_DIR} ${JENKINS_DIR}/home ${JENKINS_DIR}/backup
+}
diff --git a/dev-util/jenkins-bin/jenkins-bin-2.73.1.ebuild b/dev-util/jenkins-bin/jenkins-bin-2.73.1.ebuild
new file mode 100644
index 000000000000..fb976b69a9ff
--- /dev/null
+++ b/dev-util/jenkins-bin/jenkins-bin-2.73.1.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit user systemd
+
+DESCRIPTION="Extensible continuous integration server"
+HOMEPAGE="http://jenkins-ci.org/"
+LICENSE="MIT"
+SRC_URI="http://mirrors.jenkins-ci.org/war-stable/${PV}/${PN/-bin/}.war -> ${P}.war"
+RESTRICT="mirror"
+SLOT="lts"
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+IUSE=""
+
+RDEPEND="media-fonts/dejavu
+ media-libs/freetype
+ !dev-util/jenkins-bin:0
+ >=virtual/jre-1.8.0"
+
+S=${WORKDIR}
+
+JENKINS_DIR=/var/lib/jenkins
+
+pkg_setup() {
+ enewgroup jenkins
+ enewuser jenkins -1 -1 ${JENKINS_DIR} jenkins
+}
+
+src_install() {
+ keepdir /var/log/jenkins ${JENKINS_DIR}/backup ${JENKINS_DIR}/home
+
+ insinto /opt/jenkins
+ newins "${DISTDIR}"/${P}.war ${PN/-bin/}.war
+
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}"/${PN}-r1.logrotate ${PN/-bin/}
+
+ newinitd "${FILESDIR}"/${PN}.init2 jenkins
+ newconfd "${FILESDIR}"/${PN}.confd jenkins
+
+ systemd_newunit "${FILESDIR}"/${PN}.service jenkins.service
+
+ fowners jenkins:jenkins /var/log/jenkins ${JENKINS_DIR} ${JENKINS_DIR}/home ${JENKINS_DIR}/backup
+}
diff --git a/dev-util/jenkins-bin/jenkins-bin-2.78.ebuild b/dev-util/jenkins-bin/jenkins-bin-2.78.ebuild
new file mode 100644
index 000000000000..2101948a704e
--- /dev/null
+++ b/dev-util/jenkins-bin/jenkins-bin-2.78.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit user systemd
+
+DESCRIPTION="Extensible continuous integration server"
+HOMEPAGE="http://jenkins-ci.org/"
+LICENSE="MIT"
+SRC_URI="http://mirrors.jenkins-ci.org/war/${PV}/${PN/-bin/}.war -> ${P}.war"
+RESTRICT="mirror"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+IUSE=""
+
+RDEPEND="media-fonts/dejavu
+ media-libs/freetype
+ !dev-util/jenkins-bin:lts
+ >=virtual/jre-1.8.0"
+
+S=${WORKDIR}
+
+JENKINS_DIR=/var/lib/jenkins
+
+pkg_setup() {
+ enewgroup jenkins
+ enewuser jenkins -1 -1 ${JENKINS_DIR} jenkins
+}
+
+src_install() {
+ keepdir /var/log/jenkins ${JENKINS_DIR}/backup ${JENKINS_DIR}/home
+
+ insinto /opt/jenkins
+ newins "${DISTDIR}"/${P}.war ${PN/-bin/}.war
+
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}"/${PN}-r1.logrotate ${PN/-bin/}
+
+ newinitd "${FILESDIR}"/${PN}.init2 jenkins
+ newconfd "${FILESDIR}"/${PN}.confd jenkins
+
+ systemd_newunit "${FILESDIR}"/${PN}.service jenkins.service
+
+ fowners jenkins:jenkins /var/log/jenkins ${JENKINS_DIR} ${JENKINS_DIR}/home ${JENKINS_DIR}/backup
+}
diff --git a/dev-util/jenkins-bin/jenkins-bin-2.80.ebuild b/dev-util/jenkins-bin/jenkins-bin-2.80.ebuild
new file mode 100644
index 000000000000..2101948a704e
--- /dev/null
+++ b/dev-util/jenkins-bin/jenkins-bin-2.80.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit user systemd
+
+DESCRIPTION="Extensible continuous integration server"
+HOMEPAGE="http://jenkins-ci.org/"
+LICENSE="MIT"
+SRC_URI="http://mirrors.jenkins-ci.org/war/${PV}/${PN/-bin/}.war -> ${P}.war"
+RESTRICT="mirror"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+IUSE=""
+
+RDEPEND="media-fonts/dejavu
+ media-libs/freetype
+ !dev-util/jenkins-bin:lts
+ >=virtual/jre-1.8.0"
+
+S=${WORKDIR}
+
+JENKINS_DIR=/var/lib/jenkins
+
+pkg_setup() {
+ enewgroup jenkins
+ enewuser jenkins -1 -1 ${JENKINS_DIR} jenkins
+}
+
+src_install() {
+ keepdir /var/log/jenkins ${JENKINS_DIR}/backup ${JENKINS_DIR}/home
+
+ insinto /opt/jenkins
+ newins "${DISTDIR}"/${P}.war ${PN/-bin/}.war
+
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}"/${PN}-r1.logrotate ${PN/-bin/}
+
+ newinitd "${FILESDIR}"/${PN}.init2 jenkins
+ newconfd "${FILESDIR}"/${PN}.confd jenkins
+
+ systemd_newunit "${FILESDIR}"/${PN}.service jenkins.service
+
+ fowners jenkins:jenkins /var/log/jenkins ${JENKINS_DIR} ${JENKINS_DIR}/home ${JENKINS_DIR}/backup
+}
diff --git a/dev-util/jenkins-bin/jenkins-bin-2.81.ebuild b/dev-util/jenkins-bin/jenkins-bin-2.81.ebuild
new file mode 100644
index 000000000000..2101948a704e
--- /dev/null
+++ b/dev-util/jenkins-bin/jenkins-bin-2.81.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit user systemd
+
+DESCRIPTION="Extensible continuous integration server"
+HOMEPAGE="http://jenkins-ci.org/"
+LICENSE="MIT"
+SRC_URI="http://mirrors.jenkins-ci.org/war/${PV}/${PN/-bin/}.war -> ${P}.war"
+RESTRICT="mirror"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux"
+IUSE=""
+
+RDEPEND="media-fonts/dejavu
+ media-libs/freetype
+ !dev-util/jenkins-bin:lts
+ >=virtual/jre-1.8.0"
+
+S=${WORKDIR}
+
+JENKINS_DIR=/var/lib/jenkins
+
+pkg_setup() {
+ enewgroup jenkins
+ enewuser jenkins -1 -1 ${JENKINS_DIR} jenkins
+}
+
+src_install() {
+ keepdir /var/log/jenkins ${JENKINS_DIR}/backup ${JENKINS_DIR}/home
+
+ insinto /opt/jenkins
+ newins "${DISTDIR}"/${P}.war ${PN/-bin/}.war
+
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}"/${PN}-r1.logrotate ${PN/-bin/}
+
+ newinitd "${FILESDIR}"/${PN}.init2 jenkins
+ newconfd "${FILESDIR}"/${PN}.confd jenkins
+
+ systemd_newunit "${FILESDIR}"/${PN}.service jenkins.service
+
+ fowners jenkins:jenkins /var/log/jenkins ${JENKINS_DIR} ${JENKINS_DIR}/home ${JENKINS_DIR}/backup
+}
diff --git a/dev-util/jenkins-bin/metadata.xml b/dev-util/jenkins-bin/metadata.xml
new file mode 100644
index 000000000000..26b75d373ed4
--- /dev/null
+++ b/dev-util/jenkins-bin/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>patrick@gentoo.org</email>
+ <name>Patrick Lauer</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>graaff@gentoo.org</email>
+ <name>Hans de Graaff</name>
+ <description>lts versions</description>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-util/kbuild/Manifest b/dev-util/kbuild/Manifest
new file mode 100644
index 000000000000..a76cf564151f
--- /dev/null
+++ b/dev-util/kbuild/Manifest
@@ -0,0 +1,15 @@
+AUX kbuild-0.1.5-gentoo-docdir.patch 358 SHA256 eb1746772092e184d94d923806f9e5c2eafb9d9d2950afd973df62f9f190ff4d SHA512 468dd844de34867c7ccafabafab4d5870fcb63f38fcb8d53580787cf9600027db91cb5ad962862d6a654dcec2b58654cc62fd6146fb0903c1b2d2079a7016020 WHIRLPOOL 73f584911dd34360bfa68ac7c9649011ffbbf89293441429f73c28b44a7a7a69fb6d9c18af59f2c8181d87223bac631d925039051acef81128552d0698a57df3
+AUX kbuild-0.1.9998_pre20110817-gcc-4.7.patch 315 SHA256 34a340193b7f6154ab8f5a6d5f828677a967f110c72ced74b0394a02857ad5d8 SHA512 843a90f52dc6163936a3bff5d11aedb92642baf66ec4adacf0705b484b4a2d624995ffa59dfbfde3218e0e2e763f64338a03ebf935ec23fdad66093824ced7e1 WHIRLPOOL f06a8c58049e540862c1bb456062c312ddb022895dee8c86e0a5c7d57100f5246d586aafc0008249ce5004bd67aa4fdd82e129f3ae48a703b4be7d1eb925cd93
+AUX kbuild-0.1.9998_pre20110817-gold.patch 795 SHA256 2c2de2d1abf4d9d71c8f14c60701a98223e83a86387dcbb3ce892022e2b67080 SHA512 6ea5d896fdd632355985bdaa69e36aa091fdddc925049dfcb7eab37472c88fde954c6b987a0e647e65832cec5c91ccad7ad8270376a112af95df90d4a60687f9 WHIRLPOOL d3f4413b0c6c493095a8d9344ee94fd02afd446421ad3b0713477846dc186da82c0602e232beacaae5ca97a17bf784f1f18cf172e42dc488a17a1977eb8fd973
+AUX kbuild-0.1.9998_pre20110817-kash-link-pthread.patch 296 SHA256 9370231d3ff856b8be43d352e2c6e29e66079467e99169ed234c3b0761666e90 SHA512 178da856a83631ca4d86a9b8c20e74b75b76426c177b87c26d4c4b3df86e72f3b6339e8f61948498ab9c4bf047119588f3df8ce78448160afa0840b2cf3aeabb WHIRLPOOL f1054aa09c6fcea126450441235fa32a3cce815ba7f54280d1a41793bca1572c3023d997d7d210e41f2511f15e0f059dbd4a99636fd3b11a5dd4593ffd6532aa
+AUX kbuild-0.1.9998_pre20120806-qa.patch 292 SHA256 ca14e0327ba1690ad12e37ea80d8fba04891ab0350e1fefcdb67ab64ce30cce7 SHA512 2a311e2e79c1e85c3c2c26b3d187355167c237c334687494a8e532b84232340df44b0d896fe6638bf1a9d4ba1c5f1efb29978de3bac0490fe04f2e57f7fb1874 WHIRLPOOL 50c63c97ac5e7784e4b1540459a1b3ffdfffecb590dd966f8d713a6e5e9f7250f37a8f234f845c326e578b43fd59b9a12f22975794138aba3784f20fdcee1bbc
+AUX kbuild-glibc-2.10.patch 756 SHA256 d76d27fa7e4082d6a06434ff9006465d4c29a8ff2add8e3c25456c5bf412687d SHA512 dd8a9464c7014205bbed655a42325653618ad902493d7c73d714f7504a539159771d64b7e0d82aaaf76fadf3eb46dd663e62b5960c17077b8c80ac5f414555ce WHIRLPOOL dabea273f7b662195ec366bed94f2e6d06395ff17f4be856a7853857b32f0ff06a9a589877d63547b90b8c46b245c1c70d1cc755681c20a1bf41c820075e7256
+AUX kbuild-unknown-configure-opt.patch 355 SHA256 078c95e432c9774e81a2894096855b422a42f53650462cbdca16b72c78a05ef2 SHA512 26ae63facf7133be4fba606ad0b9488ea4c2ad2290a1e33a0f0c3283e0c8267eaae41bde6efaa52895b444178ec101a800ad580d2d85d0e69c56dc7db32b1105 WHIRLPOOL 700ffe9298bfd5c7f0259851214eb60cd9ce9152d64dbff4838fc9f1c1adbe14f66f4662d602cf6c0aba504a443af61562f0c118b066e00546762caa86ef6e87
+DIST kBuild-0.1.9998-pre20131130-src.tar.xz 1707632 SHA256 def0a44cc0a91b6aa8a80f73ace0cfc315f298ba3e0d3d81fe52834091b68586 SHA512 66f418c0e052389d2b5cfc4d46bc8598ceaeded369151047e455e921bef494ec42099cdc368d24b572eacd809bb7c124d07e0fab54788af01664b72f571fb047 WHIRLPOOL 95caf78eaa6ead0d9a009879a2ba9a01b138760345eb38a6786ceaf0262520e1827b5e4401884cd6d3849bfa5528f45a9a5cdac5ae61e6cbd1753dec0ba0da2f
+DIST kbuild-0.1.9998_pre20131130-tools_and_units_updates.patch.xz 7344 SHA256 0dcfb79274a96f1a67aa466ca468bebf00a39544517ad0d05c09595341d11e1a SHA512 91aac638e9f4cc321f7d06c89be1a4ce4e57aa88165c71a4f68a73ad51f049f631b2d7427178014408b551fac5678f0c0bf806a61f9d749daf5019f1b6a61bb0 WHIRLPOOL bb0a295e93870364ab176eaca3d07e18567148e5ba431a205085220b305b5cd78c210bea8896611bd4b9b47a71a527afc55a9a30a64b707993c576466609ee8a
+EBUILD kbuild-0.1.9998_pre20131130-r1.ebuild 1802 SHA256 f86e383bf28dfc9a4e0d0ff2579c19e60b2d658e5d527e2deec6743412ed9fc6 SHA512 39d21f6ac472c67c3f0aa9e1d160444f89bfdab05bef260eac07aeef9bd464a98f1fa8ce978a47ecd47af350c0484dffbc9c0b057f4d92a9bfdbbe95627fa92b WHIRLPOOL 2a80b07f6e5967f53192f4a7607fd1351841e69c956064703745b05b55a8b7ff36de791ddd8ff4e761d30d4126746b4f6b938abae8b2c6e0765a70cfa5db7c08
+EBUILD kbuild-0.1.9998_pre20131130.ebuild 1616 SHA256 b3402e34197a7a7ac33b2655861221a11404908795aaff1b560cb4607b6a7e26 SHA512 87d4115ee283744c2f6cf9a5f7d497024aea00d5d25c7f43861776ed49db9101dffc9a73e69ab811a7578db48ffd1543571d096dd4c2b2f7675d64095654f873 WHIRLPOOL 4975014c225224aeb2876a902f0bfa8a97294ddf40cfd64d45881955294de843816192e204e8d303efc38d3d99e7f6b102263ff1ad2f7053d5e87a12aa346038
+EBUILD kbuild-9999.ebuild 866 SHA256 774ea20b6cd9dd0ab75f1e96c15bc82c7c026ce7a4ed3cef8281f823dba32bd2 SHA512 eed52912df838735e25196dc2b836b7af459dcdd68338c8501c16dd534050c6650f9d973a41d694862d189d0a30ce12ebedf9793f3a5ddde3d9304d7bc78c999 WHIRLPOOL ab097ab4f5639950823b96bef757e7c52f2d34d253ab75b27a2d2bc33cd6d2fa4cfbbf0ed99afb080b311d626acf4bde30884af4fa5ab2991904f981b3a92bff
+MISC ChangeLog 4206 SHA256 3cdc60eb74d96e9c2f92f1d1dbfddd210671a7f620156f199563a358664c8668 SHA512 f0bf84948ff13dd44b9cd5a0a87d4be8d1127a8d92c115bfed38a7cb3e658760906c7321b51a2ad0f932922c408467e6953e8868babe260c27180b1484b754d1 WHIRLPOOL 44aeb415a41f98f4aa15b3fbbeadc8c8099afb5ebfc6aca1eef16b4c494ab60f70fdcb352cbcfcc01b1cf0caaf197c592b94a6dc9dd90e110bdf17df83608a21
+MISC ChangeLog-2015 7510 SHA256 fd408d7e21f962dd5fcfd3714842a8b02ace87d5268be25c84189674908f4d8d SHA512 2a2c57de330a59f60932d039492b22448c34c4c8770922aae0840c48235a8896d99b0e505ad83fa292cdee6d22ebe28c5bc067e07e457bd6aa28f6bc4e27d2ec WHIRLPOOL 06add0bf5d8b5c8fff6ba2ecea9a4a6228ad6f0ff90b95851cc212a4ca687d5fbf38ee5c2e8dcfce416fb1f6356071d2cebdc1d4923d99755ca107ae3b8d1941
+MISC metadata.xml 251 SHA256 59d4a6753275d4f64e51844f8c61bf78d104e103e42c551df15ba14c8e65e9ea SHA512 0ccc4891c6c5de39cbe83d8391b0345611be252a2b1fedea6644ba1cfb283140a8250f32cd26b701db9c60d42782b214d03574592ef3b585bb15d2ffcb5f016e WHIRLPOOL 26dafe883e7e85115f4a9a758c911c206f37f2239544b74a4beb392815efc8f35b230528845def4a7032851e037ecfc595280bfa119035dd07ccaba3a8360927
diff --git a/dev-util/kbuild/files/kbuild-0.1.5-gentoo-docdir.patch b/dev-util/kbuild/files/kbuild-0.1.5-gentoo-docdir.patch
new file mode 100644
index 000000000000..b074a984af4c
--- /dev/null
+++ b/dev-util/kbuild/files/kbuild-0.1.5-gentoo-docdir.patch
@@ -0,0 +1,11 @@
+--- a/Config.kmk
++++ b/Config.kmk
+@@ -147,7 +147,7 @@
+ MY_INST_DATA := $(MY_INST_ROOT)share/kBuild/
+ endif
+ ifndef MY_INST_DOC
+- MY_INST_DOC := $(MY_INST_ROOT)share/doc/kBuild-$(KBUILD_VERSION)/
++ MY_INST_DOC := $(MY_INST_ROOT)share/doc/$(PF)/
+ endif
+ if !defined(MY_INST_BIN_MODE) && defined(MY_INST_MODE)
+ MY_INST_BIN_MODE := $(MY_INST_MODE),a+x
diff --git a/dev-util/kbuild/files/kbuild-0.1.9998_pre20110817-gcc-4.7.patch b/dev-util/kbuild/files/kbuild-0.1.9998_pre20110817-gcc-4.7.patch
new file mode 100644
index 000000000000..eb71fb02f4f0
--- /dev/null
+++ b/dev-util/kbuild/files/kbuild-0.1.9998_pre20110817-gcc-4.7.patch
@@ -0,0 +1,11 @@
+--- kBuild-0.1.9998-pre20110817/src/sed/lib/regex_internal.c
++++ kBuild-0.1.9998-pre20110817/src/sed/lib/regex_internal.c
+@@ -781,7 +781,7 @@
+ }
+
+ static unsigned char
+-internal_function __attribute ((pure))
++internal_function
+ re_string_fetch_byte_case (re_string_t *pstr)
+ {
+ if (BE (!pstr->mbs_allocated, 1))
diff --git a/dev-util/kbuild/files/kbuild-0.1.9998_pre20110817-gold.patch b/dev-util/kbuild/files/kbuild-0.1.9998_pre20110817-gold.patch
new file mode 100644
index 000000000000..8ad2ab3269cf
--- /dev/null
+++ b/dev-util/kbuild/files/kbuild-0.1.9998_pre20110817-gold.patch
@@ -0,0 +1,16 @@
+ src/kmk/Makefile.kmk | 2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/src/kmk/Makefile.kmk b/src/kmk/Makefile.kmk
+index fe2cd43..135431e 100644
+--- a/src/kmk/Makefile.kmk
++++ b/src/kmk/Makefile.kmk
+@@ -59,7 +59,7 @@ TEMPLATE_BIN-KMK_INCS.dragonfly = glob
+ TEMPLATE_BIN-KMK_INCS.freebsd = glob
+ TEMPLATE_BIN-KMK_INCS.openbsd = glob
+ TEMPLATE_BIN-KMK_INCS.solaris = glob
+-TEMPLATE_BIN-KMK_LIBS = $(TEMPLATE_BIN-THREADED_LIBS) $(kmkmissing_1_TARGET) $(LIB_KUTIL)
++TEMPLATE_BIN-KMK_LIBS = $(TEMPLATE_BIN-THREADED_LIBS) $(kmkmissing_1_TARGET) $(LIB_KUTIL) pthread
+ ifdef ELECTRIC_HEAP # for electric heap (see electric.c) - windows only.
+ ifeq ($(KBUILD_TARGET),win)
+ TEMPLATE_BIN-KMK_CFLAGS = $(TEMPLATE_BIN-THREADED_CFLAGS) /FI$(kmk_DEFPATH)/electric.h -DELECTRIC_HEAP=1
diff --git a/dev-util/kbuild/files/kbuild-0.1.9998_pre20110817-kash-link-pthread.patch b/dev-util/kbuild/files/kbuild-0.1.9998_pre20110817-kash-link-pthread.patch
new file mode 100644
index 000000000000..d2b20176ca82
--- /dev/null
+++ b/dev-util/kbuild/files/kbuild-0.1.9998_pre20110817-kash-link-pthread.patch
@@ -0,0 +1,10 @@
+--- kBuild-0.1.9998-pre20110817/src/kash/Makefile.kmk
++++ kBuild-0.1.9998-pre20110817/src/kash/Makefile.kmk
+@@ -59,6 +59,7 @@
+ if "$(USER)" == "bird" && "$(KBUILD_TARGET)" != "win"
+ kash_CFLAGS += -std=gnu99
+ endif
++kash_LIBS += pthread
+ kash_CFLAGS.win.amd64 = -GS-
+ kash_SOURCES = \
+ main.c \
diff --git a/dev-util/kbuild/files/kbuild-0.1.9998_pre20120806-qa.patch b/dev-util/kbuild/files/kbuild-0.1.9998_pre20120806-qa.patch
new file mode 100644
index 000000000000..9b0df4204e35
--- /dev/null
+++ b/dev-util/kbuild/files/kbuild-0.1.9998_pre20120806-qa.patch
@@ -0,0 +1,13 @@
+--- kBuild-0.1.9998-pre20120806/src/sed/lib/utils.c
++++ kBuild-0.1.9998-pre20120806/src/sed/lib/utils.c
+@@ -35,6 +35,10 @@
+ # include <stdlib.h>
+ #endif /* HAVE_STDLIB_H */
+
++#ifdef HAVE_UNISTD_H
++# include <unistd.h>
++#endif /* HAVE_UNISTD_H */
++
+ #include "utils.h"
+
+ const char *myname;
diff --git a/dev-util/kbuild/files/kbuild-glibc-2.10.patch b/dev-util/kbuild/files/kbuild-glibc-2.10.patch
new file mode 100644
index 000000000000..d24a8f7439dc
--- /dev/null
+++ b/dev-util/kbuild/files/kbuild-glibc-2.10.patch
@@ -0,0 +1,31 @@
+--- kBuild-0.1.5/src/ash/output.c
++++ kBuild-0.1.5/src/ash/output.c
+@@ -230,6 +230,7 @@
+ va_end(ap);
+ }
+
++#if 0
+ void
+ dprintf(const char *fmt, ...)
+ {
+@@ -240,6 +241,7 @@
+ va_end(ap);
+ flushout(out2);
+ }
++#endif
+
+ void
+ fmtstr(char *outbuf, size_t length, const char *fmt, ...)
+--- kBuild-0.1.5/src/ash/output.h
++++ kBuild-0.1.5/src/ash/output.h
+@@ -65,8 +65,10 @@
+ __attribute__((__format__(__printf__,2,3)));
+ void out1fmt(const char *, ...)
+ __attribute__((__format__(__printf__,1,2)));
++#if 0
+ void dprintf(const char *, ...)
+ __attribute__((__format__(__printf__,1,2)));
++#endif
+ void fmtstr(char *, size_t, const char *, ...)
+ __attribute__((__format__(__printf__,3,4)));
+ void doformat(struct output *, const char *, va_list);
diff --git a/dev-util/kbuild/files/kbuild-unknown-configure-opt.patch b/dev-util/kbuild/files/kbuild-unknown-configure-opt.patch
new file mode 100644
index 000000000000..36cabae2b138
--- /dev/null
+++ b/dev-util/kbuild/files/kbuild-unknown-configure-opt.patch
@@ -0,0 +1,11 @@
+--- a/bootstrap.gmk
++++ b/bootstrap.gmk
+@@ -179,7 +179,7 @@
+ echo done > $@
+
+ $(OUTDIR)/sed/ts-configured: $(OUTDIR)/sed/ts-autoreconf
+- cd $(OUTDIR)/sed && $(SRCDIR)/src/sed/configure --without-libintl --disable-nls
++ cd $(OUTDIR)/sed && $(SRCDIR)/src/sed/configure --disable-nls
+ echo done > $@
+
+ $(OUTDIR)/sed/config.h: $(OUTDIR)/sed/ts-configured
diff --git a/dev-util/kbuild/kbuild-0.1.9998_pre20131130-r1.ebuild b/dev-util/kbuild/kbuild-0.1.9998_pre20131130-r1.ebuild
new file mode 100644
index 000000000000..b4fd8a1a4f0c
--- /dev/null
+++ b/dev-util/kbuild/kbuild-0.1.9998_pre20131130-r1.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils autotools toolchain-funcs
+
+MY_P=kBuild-${PV/_/-}-src
+DESCRIPTION="A makefile framework for writing simple makefiles for complex tasks"
+HOMEPAGE="http://svn.netlabs.org/kbuild/wiki"
+#SRC_URI="ftp://ftp.netlabs.org/pub/${PN}/${MY_P}.tar.gz"
+SRC_URI="https://dev.gentoo.org/~polynomial-c/${MY_P}.tar.xz
+ https://dev.gentoo.org/~polynomial-c/${P}-tools_and_units_updates.patch.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86 ~amd64-fbsd ~x86-fbsd"
+IUSE=""
+
+DEPEND="sys-apps/texinfo
+ sys-devel/flex
+ sys-devel/gettext
+ virtual/yacc"
+RDEPEND=""
+
+S=${WORKDIR}/${MY_P/-src}
+
+PATCHES=(
+ "${FILESDIR}/${PN}-unknown-configure-opt.patch"
+ "${FILESDIR}/${PN}-glibc-2.10.patch"
+ "${FILESDIR}/${PN}-0.1.5-gentoo-docdir.patch"
+ "${FILESDIR}/${PN}-0.1.9998_pre20120806-qa.patch"
+ "${FILESDIR}/${PN}-0.1.9998_pre20110817-kash-link-pthread.patch"
+ "${FILESDIR}/${PN}-0.1.9998_pre20110817-gold.patch"
+ "${FILESDIR}/${PN}-0.1.9998_pre20110817-gcc-4.7.patch"
+ "${WORKDIR}/${P}-tools_and_units_updates.patch"
+)
+
+src_prepare() {
+ rm -rf "${S}/kBuild/bin"
+
+ default
+
+ mv src/kmk/configure.{in,ac} || die
+
+ cd "${S}/src/kmk" || die
+ eautoreconf
+ cd "${S}/src/sed" || die
+ # AM_CONFIG_HEADER is obsolete since automake-1.13 (bug #467104)
+ sed 's@AM_CONFIG_HEADER@AC_CONFIG_HEADERS@' -i configure.ac || die
+ eautoreconf
+
+ sed -e "s@_LDFLAGS\.$(tc-arch)*.*=@& ${LDFLAGS}@g" \
+ -i "${S}"/Config.kmk || die #332225
+ tc-export CC RANLIB #AR does not work here
+}
+
+src_compile() {
+ kBuild/env.sh --full emake -f bootstrap.gmk AUTORECONF=true AR="$(tc-getAR)" \
+ || die "bootstrap failed"
+}
+
+src_install() {
+ kBuild/env.sh kmk NIX_INSTALL_DIR=/usr PATH_INS="${D}" install \
+ || die "install failed"
+}
diff --git a/dev-util/kbuild/kbuild-0.1.9998_pre20131130.ebuild b/dev-util/kbuild/kbuild-0.1.9998_pre20131130.ebuild
new file mode 100644
index 000000000000..b96e4f88d758
--- /dev/null
+++ b/dev-util/kbuild/kbuild-0.1.9998_pre20131130.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit eutils autotools toolchain-funcs
+
+MY_P=kBuild-${PV/_/-}-src
+DESCRIPTION="A makefile framework for writing simple makefiles for complex tasks"
+HOMEPAGE="http://svn.netlabs.org/kbuild/wiki"
+#SRC_URI="ftp://ftp.netlabs.org/pub/${PN}/${MY_P}.tar.gz"
+SRC_URI="https://dev.gentoo.org/~polynomial-c/${MY_P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="sys-apps/texinfo
+ sys-devel/flex
+ sys-devel/gettext
+ virtual/yacc"
+RDEPEND=""
+
+S=${WORKDIR}/${MY_P/-src}
+
+src_prepare() {
+ rm -rf "${S}/kBuild/bin"
+
+ epatch "${FILESDIR}/${PN}-unknown-configure-opt.patch" \
+ "${FILESDIR}/${PN}-glibc-2.10.patch" \
+ "${FILESDIR}/${PN}-0.1.5-gentoo-docdir.patch" \
+ "${FILESDIR}/${PN}-0.1.9998_pre20120806-qa.patch" \
+ "${FILESDIR}/${PN}-0.1.9998_pre20110817-kash-link-pthread.patch" \
+ "${FILESDIR}/${PN}-0.1.9998_pre20110817-gold.patch" \
+ "${FILESDIR}/${PN}-0.1.9998_pre20110817-gcc-4.7.patch"
+
+ cd "${S}/src/kmk" || die
+ eautoreconf
+ cd "${S}/src/sed" || die
+ # AM_CONFIG_HEADER is obsolete since automake-1.13 (bug #467104)
+ sed 's@AM_CONFIG_HEADER@AC_CONFIG_HEADERS@' -i configure.ac || die
+ eautoreconf
+
+ sed -e "s@_LDFLAGS\.${ARCH}*.*=@& ${LDFLAGS}@g" \
+ -i "${S}"/Config.kmk || die #332225
+ tc-export CC RANLIB #AR does not work here
+}
+
+src_compile() {
+ kBuild/env.sh --full make -f bootstrap.gmk AUTORECONF=true AR="$(tc-getAR)" \
+ || die "bootstrap failed"
+}
+
+src_install() {
+ kBuild/env.sh kmk NIX_INSTALL_DIR=/usr PATH_INS="${D}" install \
+ || die "install failed"
+}
diff --git a/dev-util/kbuild/kbuild-9999.ebuild b/dev-util/kbuild/kbuild-9999.ebuild
new file mode 100644
index 000000000000..5df4852ffb28
--- /dev/null
+++ b/dev-util/kbuild/kbuild-9999.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+WANT_AUTOMAKE=1.9
+
+inherit autotools eutils subversion
+
+DESCRIPTION="A makefile framework for writing simple makefiles for complex tasks"
+HOMEPAGE="http://svn.netlabs.org/kbuild/wiki"
+ESVN_REPO_URI="http://svn.netlabs.org/repos/kbuild/trunk"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS=""
+IUSE=""
+
+DEPEND="sys-devel/gettext
+ virtual/yacc"
+RDEPEND=""
+
+S="${WORKDIR}/${MY_P/-src}"
+
+src_prepare() {
+ default
+ rm -rf "${S}/kBuild/bin" || die
+
+ cd "${S}/src/kmk" || die
+ eautoreconf
+ cd "${S}/src/sed" || die
+ eautoreconf
+}
+
+src_compile() {
+ kBuild/env.sh --full \
+ make -f bootstrap.gmk AUTORECONF=true \
+ || die "bootstrap failed"
+}
+
+src_install() {
+ kBuild/env.sh kmk \
+ NIX_INSTALL_DIR=/usr \
+ PATH_INS="${D}" \
+ install || die "install failed"
+}
diff --git a/dev-util/kbuild/metadata.xml b/dev-util/kbuild/metadata.xml
new file mode 100644
index 000000000000..95aa13f6c5ef
--- /dev/null
+++ b/dev-util/kbuild/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>polynomial-c@gentoo.org</email>
+ <name>Lars Wendler</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-util/kcov/Manifest b/dev-util/kcov/Manifest
new file mode 100644
index 000000000000..88858c8b4139
--- /dev/null
+++ b/dev-util/kcov/Manifest
@@ -0,0 +1,4 @@
+DIST kcov-33.tar.gz 276028 SHA256 23e20157c8fb933b76d5733ca5700c9eb2399851febf0d4144d7b2dc940f4464 SHA512 e35ba3c4dc320cef0cde097cfa2c4067ec6bf86a5ee797d3ec111facffa036da4fc4d403e63bd3767d03eac511987592e77ed61810605f8e2da77c26570e245c WHIRLPOOL 74a135ee5f04842013e8df75e5f9cd2e37d78cb54e0849abfae8574db924563dee4787bbaf50bd3d7fbb5302e09eda8a4cbe549b59acaee92fed5d9272e8d90f
+EBUILD kcov-33.ebuild 509 SHA256 b61a1bc0a9df89a32ea35005ab6bc30dc07c1f7a1fa7eaefd414df841a865379 SHA512 7cbdaf21d0b35a72f994c05b1aff180b9f805d7bfb05f1af89e7d5d33db9543bd1cd468813c8c5518305fa0de3926ec1b3d8b093badfabf11df53811086a7a58 WHIRLPOOL 5f7ecaee8e98a1805ff726191c03dda419925c28ea9451a4365dd13ed19c86a6de2cf49772690a36eb67ece1e07222dd3966ccfd7bf0d9c5e4e024a5d17ac8a2
+EBUILD kcov-9999.ebuild 638 SHA256 c5912eca8a0e9a00201c4ac018db15e4c41c35d429f42c8c6f89cb0099d817c2 SHA512 cec899ac8769080dfa88b1d34d9f4a0b2da654da9712a4236cc343533e3bc33815159ef84074c843eba3053ee672f034ac2c439e9431ae2e0a0b4eac5f584eca WHIRLPOOL 85d179e3ee78fceffb8ea0a3aece397f2cf58482f38a069dd8a0c74af1e0bdc11d081fb9caf8d7c596c526fbf1b680463dfd1b66a765d47248eb6aef25ace475
+MISC metadata.xml 334 SHA256 a39d7cbe1dee9818433fe2f0bb57ec086a222e6689f22970d4db58cb3c794b06 SHA512 1a6d96440ff3def1c7fd765dac9c4f8240b36ce918c6c8d0803b2d2a465be5b571e31a2bdc4540cffc485eefb78e65f7ec5b30300918571e1d641112a078c7b3 WHIRLPOOL 29d1cbb3d63bff819637be316b082eb0d43517290165d06dae46a2117957cb4c81a4cd9f0e31eac1637ede7acbaee6a95cb8e53cff7dd8ba2bf5c635271db377
diff --git a/dev-util/kcov/kcov-33.ebuild b/dev-util/kcov/kcov-33.ebuild
new file mode 100644
index 000000000000..7f1e7488e3b2
--- /dev/null
+++ b/dev-util/kcov/kcov-33.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils
+
+DESCRIPTION="Kcov is a code coverage tester for compiled languages, Python and Bash"
+HOMEPAGE="https://github.com/SimonKagstrom/kcov"
+SRC_URI="https://github.com/SimonKagstrom/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+ dev-libs/elfutils
+ net-misc/curl
+ sys-devel/binutils:*
+ sys-libs/zlib"
+DEPEND="${RDEPEND}"
diff --git a/dev-util/kcov/kcov-9999.ebuild b/dev-util/kcov/kcov-9999.ebuild
new file mode 100644
index 000000000000..eec056058ef3
--- /dev/null
+++ b/dev-util/kcov/kcov-9999.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils
+
+DESCRIPTION="Kcov is a code coverage tester for compiled languages, Python and Bash"
+HOMEPAGE="https://github.com/SimonKagstrom/kcov"
+LICENSE="GPL-2"
+SLOT="0"
+
+if [ "${PV}" -eq 9999 ]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/SimonKagstrom/${PN}.git"
+ KEYWORDS=""
+else
+ SRC_URI="https://github.com/SimonKagstrom/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+RDEPEND="
+ dev-libs/elfutils
+ net-misc/curl
+ sys-devel/binutils:*
+ sys-libs/zlib"
+DEPEND="${RDEPEND}"
diff --git a/dev-util/kcov/metadata.xml b/dev-util/kcov/metadata.xml
new file mode 100644
index 000000000000..bbb53844e2b2
--- /dev/null
+++ b/dev-util/kcov/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>wizardedit@gentoo.org</email>
+ <name>Austin English</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">SimonKagstrom/kcov</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/kdbg/Manifest b/dev-util/kdbg/Manifest
new file mode 100644
index 000000000000..28a64b5974e2
--- /dev/null
+++ b/dev-util/kdbg/Manifest
@@ -0,0 +1,7 @@
+DIST kdbg-2.9.0.tar.gz 428800 SHA256 46c8a35c354bd29c9cf2e7d4dfb53765c66f656e8390360b67e59ea502c76f8f SHA512 dd1a618e8188f44694797ee1f2106df714dfc9d1ca9fe9ddd453cb8aa39ad136e70fe21a2500ab154d38e3ad08bed6ac223f44426ea503c860faabb16a96a5f1 WHIRLPOOL 2738a90a824bebcb810624ae7c83b6b5f83f2b5cc9c3902da3a17f458b8087d722a6d587d9844647fcf83d7b61bfcb992e5d20a4f382b1f5231263d9d0484e3d
+DIST kdbg-2.9.1.tar.gz 428855 SHA256 fd1966b9b6cafb1d9ccafe7fbb7057bcf7102a9f18d726aaa2c3375c9470b3b3 SHA512 9e214129089d84a2f22c58334a3d1ea7666bffcd59f422983e4d9cccbd4c9f4c42da127a74cbd4abb4029c544ae4be6d7daeb2beeb4b4718f21fea9d161f6c50 WHIRLPOOL 28c390dca33a16f77a76af5043db9fa03a775afc3b86a6ff0b07650400f6ddb59842a2abfbcba084fc68995d297ad3f0009e7b757e99aa128975d4a864d65274
+EBUILD kdbg-2.9.0.ebuild 930 SHA256 010a2a9fbd8585e09367c334d31832b8582764759c40fcf9e91e10a8ea3a5f0b SHA512 5bfa5d6ea74d5ed6b6fbc616847b8d5686845df63aa7086f2c795213716199c17c08ff5f2b4d8f034257551b86e9127800e7f05a1b986c2ca511243364da519e WHIRLPOOL 6ac9efa9940e8e932747b33395f47c95637f6732344366d3a755f28c701734f617fa7b55e27a1891e926cbf7361d46c2c2d3bdf4be9803e084f2bfdb900469fe
+EBUILD kdbg-2.9.1.ebuild 930 SHA256 010a2a9fbd8585e09367c334d31832b8582764759c40fcf9e91e10a8ea3a5f0b SHA512 5bfa5d6ea74d5ed6b6fbc616847b8d5686845df63aa7086f2c795213716199c17c08ff5f2b4d8f034257551b86e9127800e7f05a1b986c2ca511243364da519e WHIRLPOOL 6ac9efa9940e8e932747b33395f47c95637f6732344366d3a755f28c701734f617fa7b55e27a1891e926cbf7361d46c2c2d3bdf4be9803e084f2bfdb900469fe
+MISC ChangeLog 3122 SHA256 142950c50e984eec906800bb332ca712bbda328f0878b286017d7de4c440781d SHA512 23c091accdb6b7fc7239eb2440eec1b0af57e2149c31ae928bfdfd62bd249aeb3374896bb053b9ab04984e4e1963ff11a8e01a06c1d9fa3a1e148760e68f2d25 WHIRLPOOL c04d1d278b7568eb540616f98071f838b5ac36eb08b6d773ea948fe104d58a9e405256a89d0df636e9011eded4ba3abb045050d62d5fe4ef8e00f2c529991816
+MISC ChangeLog-2015 1503 SHA256 01c9be16c918b41e60f7c29fc69821aef1f854d7f975ce1cdcbe208575dc0113 SHA512 2984a378cfd66ecaec046aa0dc1cba62160aa3f15cf25a9a287a9e4dec84b1ae969b22979607866c7b001ea38b6e6edc714d8461abcd5bbe0e0e04a7ddc415de WHIRLPOOL 1991a5eb5cab0b62359fa203929698d9660c0bb7aa24ae315f9816f1682725e94ec3f29f218655e066ad65413aab59a79ecd285c5ba556295acb71b7e8f0d1f6
+MISC metadata.xml 371 SHA256 2ddd56b6da5598846cd05adc52d55c7cb1571a21484450823daf67621f43080b SHA512 70d360d6ff4a809578a61351cdd5bdc42b6bc72eb6551ef8083595d941909f1c6ab91a4cb793f1161eaad3a65e0313e498bef0cc5e763a918d2e83c7352f7805 WHIRLPOOL aac6dda4fa29a6ad9217e45f22eddf4e62fad4794127cfbcb8a5ce6508f1c5bac35b341f04d0195dc53fb9c14278e576d16d6aab0bdd68c6e2b2632e4d0ac203
diff --git a/dev-util/kdbg/kdbg-2.9.0.ebuild b/dev-util/kdbg/kdbg-2.9.0.ebuild
new file mode 100644
index 000000000000..80d122832088
--- /dev/null
+++ b/dev-util/kdbg/kdbg-2.9.0.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+KDE_LINGUAS="cs da de es fr hr hu it ja nb nn pl pt ro ru sk sr sv tr zh_CN"
+KDE_HANDBOOK="optional"
+QT3SUPPORT_REQUIRED="true"
+inherit kde4-base
+
+DESCRIPTION="Graphical debugger interface"
+HOMEPAGE="http://www.kdbg.org/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="4"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug"
+
+RDEPEND="sys-devel/gdb"
+DEPEND="${RDEPEND}"
+
+DOCS=( BUGS README ReleaseNotes-${PV} TODO )
+
+src_prepare() {
+ # allow documentation to be handled by eclass
+ mv kdbg/doc . || die
+ sed -i -e '/add_subdirectory(doc)/d' kdbg/CMakeLists.txt || die
+ echo "add_subdirectory ( doc ) " >> CMakeLists.txt || die
+ kde4-base_src_prepare
+}
+
+src_install() {
+ kde4-base_src_install
+
+ # hack since ChangeLog-* is automagically installed by eclass
+ rm -f "${ED}"usr/share/doc/${PF}/ChangeLog-pre*
+}
diff --git a/dev-util/kdbg/kdbg-2.9.1.ebuild b/dev-util/kdbg/kdbg-2.9.1.ebuild
new file mode 100644
index 000000000000..80d122832088
--- /dev/null
+++ b/dev-util/kdbg/kdbg-2.9.1.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+KDE_LINGUAS="cs da de es fr hr hu it ja nb nn pl pt ro ru sk sr sv tr zh_CN"
+KDE_HANDBOOK="optional"
+QT3SUPPORT_REQUIRED="true"
+inherit kde4-base
+
+DESCRIPTION="Graphical debugger interface"
+HOMEPAGE="http://www.kdbg.org/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="4"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug"
+
+RDEPEND="sys-devel/gdb"
+DEPEND="${RDEPEND}"
+
+DOCS=( BUGS README ReleaseNotes-${PV} TODO )
+
+src_prepare() {
+ # allow documentation to be handled by eclass
+ mv kdbg/doc . || die
+ sed -i -e '/add_subdirectory(doc)/d' kdbg/CMakeLists.txt || die
+ echo "add_subdirectory ( doc ) " >> CMakeLists.txt || die
+ kde4-base_src_prepare
+}
+
+src_install() {
+ kde4-base_src_install
+
+ # hack since ChangeLog-* is automagically installed by eclass
+ rm -f "${ED}"usr/share/doc/${PF}/ChangeLog-pre*
+}
diff --git a/dev-util/kdbg/metadata.xml b/dev-util/kdbg/metadata.xml
new file mode 100644
index 000000000000..d2b641f04810
--- /dev/null
+++ b/dev-util/kdbg/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="project">
+ <email>kde@gentoo.org</email>
+ <name>Gentoo KDE Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">j6t/kdbg</remote-id>
+ <remote-id type="sourceforge">kdbg</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/kdevelop-pg-qt/Manifest b/dev-util/kdevelop-pg-qt/Manifest
new file mode 100644
index 000000000000..25143cab52ab
--- /dev/null
+++ b/dev-util/kdevelop-pg-qt/Manifest
@@ -0,0 +1,8 @@
+AUX kdevelop-pg-qt-2.0.0-flex263.patch 1044 SHA256 fcf223cb9eb9fb2b9b8b54cc8f6df8aef2867959e21de81fb2e494609eaea507 SHA512 0d83880b042f9dfc07479e7d7ab8441ea83cef2e1c5585ba7f20052e81cc5c2e1dd59e5fc19e54c97adebdc7e57e6711423a924b7ff8b527172b976aa6be2d20 WHIRLPOOL 5dd0bd99ba923a134cf3802bdfc7b70110dcfdb7d5849a3a27986696f188c33c781fe581b57479b4aa56bc307d4fa39c8a3cd908cf610c85f9a7ae8efb6a9969
+DIST kdevelop-pg-qt-2.0.tar.xz 635604 SHA256 2f778d324b7c0962e8bb5f62dd2643bac1a6f3ac971d145b6aace7cd61878993 SHA512 50eb540f16c0a32b78ecb1b53ce7005a70c53497f1ca755afd321eb09d12ab646fae216f34a1efc310510a5aa27cb3f895c34aa71e38bcc9c415ca36099e9022 WHIRLPOOL 0758f63b1da3fb607cffe6ea60177f61ba432da991540afd9aa3934a2c76c7206c2483cefb227e7c56d55c27766e5374ee3e9b4bc48611b914219371898c604a
+DIST kdevelop-pg-qt-2.1.0.tar.xz 660268 SHA256 20d84d25bd40610bd6c0964e4fe0642e56c41b76a65575122dc5196649621e5d SHA512 0d0350c921a85ce6682219b0d67617aac21f5e3a95f6d50869c172200db02099e10cc025439ca5a08a93b711e21a3393c5bc50bc709fb4f6a57f19266c6f469d WHIRLPOOL c7c21513e6e04e5dce3f82433989159e2519bd8c9a8f9ae1edcf15365056c135effc47eef197e15c9696a0ee8e2269fcc48f7b0d750c9e2aa701e39135bc2f4e
+EBUILD kdevelop-pg-qt-2.0.0-r1.ebuild 594 SHA256 3098684efc18ad584d6ee1329cc241eb21ca7aa08477b8206ea84d108963363d SHA512 b3fa126efcdcd956b3493da83eecb922fd6a9a31d697f9036ac8cc79e71adffc04bc9f36b06495a05c7859976094124085bc9b31b43cb556d906a4574f2b93e5 WHIRLPOOL 9d7377c050c6a87b7e99e76021ef32eb473fd0e9064a8b4eecc486982761bf219eef7173b7e60c1d7ba5b57835ae670ede13470ee4e424aede9d72855341d4ba
+EBUILD kdevelop-pg-qt-2.1.0.ebuild 491 SHA256 f9f7e443ffffec027247549586ecd89734541008da196e110cf02f857f0c8bcb SHA512 0bb662c54519f7ca9ca0071b8f1d77732e9e394f1c102908082788301d23855a022fd65fdd914c9b72d6598ef5a65c7a3581e2bf0d261b08da5a7614f06c9eef WHIRLPOOL ef646e04b7b3ef83cc7b8ee9db013a436cac42931d3cb96b6f72ac75a3c5c547acde3d48656f2b8a508bb3c0ec8eb8d1352f2e66e78f6e50855f1277d2948e9d
+MISC ChangeLog 2916 SHA256 ac9c501fe780d27fef9fb69d6ef23b50cd8d621f4b9772c182a380b43c16e88d SHA512 d12337d6fa5b2a10589fc1f08eb7984272812e2ac05c6c09adaa41c325f081520e71cd4e8b3d4fe26073282ada9207073100ab6ad878ca9805ec3c285cbe4529 WHIRLPOOL 3b7d15779113a982c14dcb14aa5561d63068ececf2657265496596b11651b4a2a5fd2b09e5af1119f037c71ea2cdf9da263d094268082ec2834cace0bb7e6973
+MISC ChangeLog-2015 3001 SHA256 60a721a99e622e79e064d70ff28612fcd79e0a24e4dee25e6532c5af0653b266 SHA512 134b20e3e44bd77f23df4d7885d44f1f950f30a09d5cfe67e1c51e2746b1b92397f20596589d91c1ebdc706e30b6aedbf65fe90c0f212a98f32113275059b6d9 WHIRLPOOL 4631673877e7eba1c340d80001f9b66223160ba281c955e3012755d3cc7c64dde0678b38eb6fc818de81696bdb4c53579633e3c238ca809898eff11d71a44184
+MISC metadata.xml 249 SHA256 584f1dcf51866dc24a9abf7a89bfba0fad11dde81ae1c1b715da41770d233c99 SHA512 76a5a340b13f0053ca3c5e94ed24380ea8d29b45ac8655419e22eaadb1e4a827c04d2e7e36b65145c4964e6526f656618fc6ac144e277ef53cb7373e6239e3c3 WHIRLPOOL 200c07a8bf7c55b11b7936d5cd30e991a511684913334e72f59def66c0ced5fed0b4a8754e2d98bffbab631cb90d4e17fcccc59d5dcc5a8e988f69e47c85518c
diff --git a/dev-util/kdevelop-pg-qt/files/kdevelop-pg-qt-2.0.0-flex263.patch b/dev-util/kdevelop-pg-qt/files/kdevelop-pg-qt-2.0.0-flex263.patch
new file mode 100644
index 000000000000..2f2fbee903c7
--- /dev/null
+++ b/dev-util/kdevelop-pg-qt/files/kdevelop-pg-qt-2.0.0-flex263.patch
@@ -0,0 +1,31 @@
+commit 7aa292e5c4b2dc2b8a420e7e8b8e32f61268fe5b
+Author: Leslie Zhai <xiangzhai83@gmail.com>
+Date: Thu Jan 5 11:04:27 2017 +0100
+
+ Fix yymore_used_but_not_detected undefined issue
+
+ flex-2.6.3 failed to
+
+ ```
+ #define yymore() yymore_used_but_not_detected
+ ```
+
+ throw yymore_used_but_not_detected undefined issue, so I simply added --yymore option for CMakeLists.txt
+
+ REVIEW: 129766
+ BUG: 374523
+ FIXED-IN: 2.0.1
+
+diff --git a/kdev-pg/CMakeLists.txt b/kdev-pg/CMakeLists.txt
+index 5490835..19dc3a4 100644
+--- a/kdev-pg/CMakeLists.txt
++++ b/kdev-pg/CMakeLists.txt
+@@ -76,7 +76,7 @@ IF(FLEX_EXECUTABLE)
+ DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/kdev-pg-lexer.ll"
+ ${OPTIONAL_PARSER_HEADER_DEPENDENCY}
+ COMMAND ${FLEX_EXECUTABLE}
+- ARGS --nounistd -o"${CMAKE_CURRENT_BINARY_DIR}/kdev-pg-lexer.cc"
++ ARGS --yymore --nounistd -o"${CMAKE_CURRENT_BINARY_DIR}/kdev-pg-lexer.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/kdev-pg-lexer.ll"
+ )
+
diff --git a/dev-util/kdevelop-pg-qt/kdevelop-pg-qt-2.0.0-r1.ebuild b/dev-util/kdevelop-pg-qt/kdevelop-pg-qt-2.0.0-r1.ebuild
new file mode 100644
index 000000000000..60b9707f24d1
--- /dev/null
+++ b/dev-util/kdevelop-pg-qt/kdevelop-pg-qt-2.0.0-r1.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+EGIT_BRANCH="2.0"
+KDEBASE="kdevelop"
+KDE_TEST="forceoptional"
+inherit kde5
+
+DESCRIPTION="LL(1) parser generator used mainly by KDevelop language plugins"
+SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${PN}-${PV%.0}.tar.xz"
+LICENSE="LGPL-2+ LGPL-2.1+"
+IUSE=""
+[[ ${KDE_BUILD_TYPE} = release ]] && KEYWORDS="amd64 x86"
+
+DEPEND="
+ sys-devel/bison
+ sys-devel/flex
+"
+RDEPEND="
+ !dev-util/kdevelop-pg-qt:4
+"
+
+PATCHES=( "${FILESDIR}/${P}-flex263.patch" )
+
+S="${WORKDIR}/${PN}-${PV%.0}"
diff --git a/dev-util/kdevelop-pg-qt/kdevelop-pg-qt-2.1.0.ebuild b/dev-util/kdevelop-pg-qt/kdevelop-pg-qt-2.1.0.ebuild
new file mode 100644
index 000000000000..6300a1b09e02
--- /dev/null
+++ b/dev-util/kdevelop-pg-qt/kdevelop-pg-qt-2.1.0.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+KDEBASE="kdevelop"
+KDE_TEST="forceoptional"
+inherit kde5
+
+DESCRIPTION="LL(1) parser generator used mainly by KDevelop language plugins"
+SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz"
+LICENSE="LGPL-2+ LGPL-2.1+"
+IUSE=""
+[[ ${KDE_BUILD_TYPE} = release ]] && KEYWORDS="~amd64 ~x86"
+
+DEPEND="
+ sys-devel/bison
+ sys-devel/flex
+"
+RDEPEND="
+ !dev-util/kdevelop-pg-qt:4
+"
diff --git a/dev-util/kdevelop-pg-qt/metadata.xml b/dev-util/kdevelop-pg-qt/metadata.xml
new file mode 100644
index 000000000000..2fdbf33d963d
--- /dev/null
+++ b/dev-util/kdevelop-pg-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="project">
+ <email>kde@gentoo.org</email>
+ <name>Gentoo KDE Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-util/kdevelop-php/Manifest b/dev-util/kdevelop-php/Manifest
new file mode 100644
index 000000000000..c9afeb3d665b
--- /dev/null
+++ b/dev-util/kdevelop-php/Manifest
@@ -0,0 +1,7 @@
+DIST kdev-php-5.1.1.tar.xz 678368 SHA256 a33abd4837354218891225f0e18b7e9eb6e106cc1c744731a9003a9ea71e1404 SHA512 71d59db196e33663ae7167b973c3514e795d636370ace39b9c760a601f4bd947ffd6a3f8d7cfa0e199c77d8818dfeaf56882059aa18026aadd1e7b808326d0fc WHIRLPOOL ea4c437fa30bbad082d2e2fd65d38e8b91d9c4701a7726db7fc7010b80ca46f05d5975e5a2679df82b26ba26175abb11f6b0dca16f98a0ec992531dbe33fe91e
+DIST kdev-php-5.1.2.tar.xz 678624 SHA256 05f1a9a47cd4a8ff74d46f7cef0baeba31c159168c1c58efd7af5e3836980de9 SHA512 c5c6fa288b048fb19597c8cd9708a2d8570c8eaab4584a1ec0808cbd65788ae15b140e8c0437a3a18c2561c078c26208597c674efb37623b5199260ed5b3f851 WHIRLPOOL 31f0416b724a8aba1e5ed404f4821be196af16f1f80773b6bee50858f3efb1460793d8e5d96031272232a2e5f346d4b0e6d6515b42b69715aa4ff3dedebc1418
+EBUILD kdevelop-php-5.1.1.ebuild 1038 SHA256 f5d86f604f4335dcebb94378c01e6f863570e8b4369eccad64ecd0cfa0c86c56 SHA512 dfe152c398d333c9e8bdb6ae29e994d8a24ddc30f9d8e6926123bbef7bbcf53a846e8324a02e9eab34a655e90acf85ad1423ca6a624952c04a899a412b4449db WHIRLPOOL ad1f1d30c9dee0f4c8494f0d05a2b8e8f62be3eb5ee8028c16e0b795e2965100e059aba07d32ccf33396a947eaec05b922cd21d1a3b9ef4caca56b6d23dfd7d6
+EBUILD kdevelop-php-5.1.2.ebuild 1030 SHA256 bee3e1687ec4cd992e8c95ebf7789d29797c3768170f2bd0d90be5d6822345b1 SHA512 982d96a443100fa3618ae6be38a1a7690e58269d4ce48e1d1d42066751a23bac4c4083b50c3b6bbac55685107188889e91ad8d22b41a19407e62c2c4bd9acfb5 WHIRLPOOL 3248499e51986eacd35958758fdcebf4c32f0d07cfa4a61b044dc5a4da947e03cb6c74a2665250eb229f5128100e7c693e871b85b3038f94d3f73e82d3dbf7bb
+MISC ChangeLog 5381 SHA256 6d7c24e9978c1cf6a3a8fe7afce1799b636b10b2a8f10da0c154ac2fea851ca7 SHA512 1f971dd232dbe20a38d445458ca558355414f06d9229384b4b89f774a1adcda7359822484220e1f379ead824051a71e5cf63bcde161bd3959cb6a360da6a19df WHIRLPOOL 9049eb56aa5ece4401c228db5a5ef8a8a1a0c192ad0ee8777099cb6efbe7f2900b59567ab24a1532d94e35ec43421981c5c428d2a38dee6ca5e0ebe71e8a0e89
+MISC ChangeLog-2015 7253 SHA256 6b212a61458875a2cbfe51d9e3e25f92b6527c670f5afb2d4e7f81050a5466fe SHA512 81bf387fa7d4ec3c9de6488cb9e2f707bb8694ab9f3412df52597c1168310f822172b0ccd90889dbfcc6932bd5f2c14e0baf7ce35f6d5c9805db4b028fa45f25 WHIRLPOOL c7dc35b0962b276c56f04f0c14c10f5c7abb566c6aeda7ee3e13df078441e5756ba904996f5805233b5a7401fb1a6d6dbb2b80b9fa87773255ff3c1c2d8f19b9
+MISC metadata.xml 249 SHA256 584f1dcf51866dc24a9abf7a89bfba0fad11dde81ae1c1b715da41770d233c99 SHA512 76a5a340b13f0053ca3c5e94ed24380ea8d29b45ac8655419e22eaadb1e4a827c04d2e7e36b65145c4964e6526f656618fc6ac144e277ef53cb7373e6239e3c3 WHIRLPOOL 200c07a8bf7c55b11b7936d5cd30e991a511684913334e72f59def66c0ced5fed0b4a8754e2d98bffbab631cb90d4e17fcccc59d5dcc5a8e988f69e47c85518c
diff --git a/dev-util/kdevelop-php/kdevelop-php-5.1.1.ebuild b/dev-util/kdevelop-php/kdevelop-php-5.1.1.ebuild
new file mode 100644
index 000000000000..01534506babb
--- /dev/null
+++ b/dev-util/kdevelop-php/kdevelop-php-5.1.1.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+EGIT_BRANCH="5.1"
+KDEBASE="kdevelop"
+KDE_DOC_DIR="docs"
+KDE_HANDBOOK="forceoptional"
+KDE_TEST="forceoptional-recursive"
+KMNAME="kdev-php"
+VIRTUALX_REQUIRED="test"
+inherit kde5
+
+DESCRIPTION="PHP plugin for KDevelop"
+LICENSE="GPL-2 LGPL-2"
+IUSE=""
+[[ ${KDE_BUILD_TYPE} = release ]] && KEYWORDS="amd64 x86"
+
+DEPEND="
+ $(add_frameworks_dep karchive)
+ $(add_frameworks_dep kcmutils)
+ $(add_frameworks_dep kconfig)
+ $(add_frameworks_dep kconfigwidgets)
+ $(add_frameworks_dep kcoreaddons)
+ $(add_frameworks_dep ki18n)
+ $(add_frameworks_dep kio)
+ $(add_frameworks_dep kitemmodels)
+ $(add_frameworks_dep ktexteditor)
+ $(add_frameworks_dep kwidgetsaddons)
+ $(add_frameworks_dep kxmlgui)
+ $(add_frameworks_dep threadweaver)
+ $(add_qt_dep qtgui)
+ $(add_qt_dep qtwebkit)
+ $(add_qt_dep qtwidgets)
+ dev-util/kdevelop-pg-qt:5
+ >=dev-util/kdevplatform-${PV}:${SLOT}
+"
+RDEPEND="${DEPEND}
+ !dev-util/kdevelop-php-docs
+ dev-util/kdevelop:5
+"
diff --git a/dev-util/kdevelop-php/kdevelop-php-5.1.2.ebuild b/dev-util/kdevelop-php/kdevelop-php-5.1.2.ebuild
new file mode 100644
index 000000000000..9e4b2a9d9d0b
--- /dev/null
+++ b/dev-util/kdevelop-php/kdevelop-php-5.1.2.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+EGIT_BRANCH="5.1"
+KDEBASE="kdevelop"
+KDE_DOC_DIR="docs"
+KDE_HANDBOOK="forceoptional"
+KDE_TEST="forceoptional"
+KMNAME="kdev-php"
+VIRTUALX_REQUIRED="test"
+inherit kde5
+
+DESCRIPTION="PHP plugin for KDevelop"
+LICENSE="GPL-2 LGPL-2"
+IUSE=""
+[[ ${KDE_BUILD_TYPE} = release ]] && KEYWORDS="~amd64 ~x86"
+
+DEPEND="
+ $(add_frameworks_dep karchive)
+ $(add_frameworks_dep kcmutils)
+ $(add_frameworks_dep kconfig)
+ $(add_frameworks_dep kconfigwidgets)
+ $(add_frameworks_dep kcoreaddons)
+ $(add_frameworks_dep ki18n)
+ $(add_frameworks_dep kio)
+ $(add_frameworks_dep kitemmodels)
+ $(add_frameworks_dep ktexteditor)
+ $(add_frameworks_dep kwidgetsaddons)
+ $(add_frameworks_dep kxmlgui)
+ $(add_frameworks_dep threadweaver)
+ $(add_qt_dep qtgui)
+ $(add_qt_dep qtwebkit)
+ $(add_qt_dep qtwidgets)
+ dev-util/kdevelop-pg-qt:5
+ >=dev-util/kdevplatform-${PV}:${SLOT}
+"
+RDEPEND="${DEPEND}
+ !dev-util/kdevelop-php-docs
+ dev-util/kdevelop:5
+"
diff --git a/dev-util/kdevelop-php/metadata.xml b/dev-util/kdevelop-php/metadata.xml
new file mode 100644
index 000000000000..2fdbf33d963d
--- /dev/null
+++ b/dev-util/kdevelop-php/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="project">
+ <email>kde@gentoo.org</email>
+ <name>Gentoo KDE Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-util/kdevelop-python/Manifest b/dev-util/kdevelop-python/Manifest
new file mode 100644
index 000000000000..7a9353087c90
--- /dev/null
+++ b/dev-util/kdevelop-python/Manifest
@@ -0,0 +1,7 @@
+DIST kdev-python-5.1.1.tar.xz 1068832 SHA256 e2d8ed64106fb6ff12161095df67d078af9e56c9075f7c2a99d96fb517ff020e SHA512 e232b2fc44876c8e46422ea2986c2df06071e3422236139d3658f514d2f9d968c4f6320048566fe991c5c510cc3cf36eb55389e3d2205bb29c92b4c6a97b19bf WHIRLPOOL c5990fb2bbd74aee057b31b9dd74dafad0d1a8fe183f8c9321d444aca820dffe85a37642fa7de961362dea1b51224d6e3e80ab4c67525c82c676a152dd76425b
+DIST kdev-python-5.1.2.tar.xz 1069080 SHA256 fd80a2d4073595b9d4ac404acc4d8939d43c9f367bc0e9a22dfb11781017690b SHA512 1c91554bce3a1bb92b247a8b924e5b73865b68c8b6c2898d708d3b45f89f1ca9cb4207bd2f1a6f71e7df95781cd5d0ddaa610fa5c18e8f4e902306df5c38591a WHIRLPOOL ff22f27c4f96c7d2325278ccb1f70c4e13d73f980f3c6807d677b071d21252de7abfd82e709a9034219280c805b3f6ec8e3a2a90ee56a32686e72dfb550f30f1
+EBUILD kdevelop-python-5.1.1.ebuild 1168 SHA256 7725c31d2ec54dcc9f6c33be5988fa4f45c0a334a7c447cee542988ab46ba5cd SHA512 462df962e53ab7c8ca4bbe5527e5797b55a286e729628fccabe9ffa4018f7f50b620dfba141d073a7c0ce2dcfcf6641611ca1ecf5f523bc0548a4bc3bfc098aa WHIRLPOOL 749a096a49d4f3a3c178b1ecd0a61b0fde61b14cd86b1dd8bdfecb456d5ccea5e65cfd377d9bb9a5dbd2159e40749a2669e98b56241587b9fb4fb884e4a64d9d
+EBUILD kdevelop-python-5.1.2.ebuild 1195 SHA256 a091c6b37893a4c835740fda6b610cfb3332084176bc11b18adc9f1c02558399 SHA512 f20f70bf6804180a5145f3cbf86171454687f5cbe6233e84b0e5a62119fd274ebbb2bc41372da95789ce01f49bf77eb188c0ff74a9cec4d247b40192ef51c702 WHIRLPOOL 7ba09298dcbdac6b462a616c5fbdefe866d1e0b10cdc4abcdb0ff9e903319ab4adafc23995bd9a9d60b78a9b871633165114afbccf31dacc90710b188f9a6efb
+MISC ChangeLog 5435 SHA256 13c25a8abbb9978bbf25bb31a87ab8f9beefcf109755dcc9f9c32687b4110421 SHA512 6acc6054af3776b35f9cc9380a03db2fecfbb6254cdf765a466d24fd423fdf3d427f27b37982104a6da1b6474786bc90b36ffb25a68c3ad2c27e5b4dc5dccf32 WHIRLPOOL e5eecef1aeccc8f504b90b9f4f6e0fccc36784bafc962d1e9e0ab4d1836556c60e3f3cfccb19aa0bf834d31ee42976ff6c4909d6dec34f7fa7b4a2cb4bc9166a
+MISC ChangeLog-2015 2238 SHA256 4416ee4adaa8e12e897b9233ee10f887a24393da5db1d55d46294d9cb91d037a SHA512 ba1cf179b2ee997ed06ff69c85705c2488ce9f50ce5b7b1ce3bad35be0e9064780ecf69a938804d8ca8aed313bd70173b000a588a792a5762d831bbef9ab0ecf WHIRLPOOL c57356d53ac61fa32dea9350faa652111dd36575e729b44e307be0bf395273be419d202cf7e59ba094e0c4e259ec35ebc945ebec9af9804b169ca4094d23d22c
+MISC metadata.xml 249 SHA256 584f1dcf51866dc24a9abf7a89bfba0fad11dde81ae1c1b715da41770d233c99 SHA512 76a5a340b13f0053ca3c5e94ed24380ea8d29b45ac8655419e22eaadb1e4a827c04d2e7e36b65145c4964e6526f656618fc6ac144e277ef53cb7373e6239e3c3 WHIRLPOOL 200c07a8bf7c55b11b7936d5cd30e991a511684913334e72f59def66c0ced5fed0b4a8754e2d98bffbab631cb90d4e17fcccc59d5dcc5a8e988f69e47c85518c
diff --git a/dev-util/kdevelop-python/kdevelop-python-5.1.1.ebuild b/dev-util/kdevelop-python/kdevelop-python-5.1.1.ebuild
new file mode 100644
index 000000000000..4e6c4ee8caaf
--- /dev/null
+++ b/dev-util/kdevelop-python/kdevelop-python-5.1.1.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+EGIT_BRANCH="5.1"
+KDEBASE="kdevelop"
+KMNAME="kdev-python"
+PYTHON_COMPAT=( python3_{4,5,6} )
+inherit kde5 python-single-r1
+
+DESCRIPTION="Python plugin for KDevelop"
+IUSE=""
+[[ ${KDE_BUILD_TYPE} = release ]] && KEYWORDS="amd64 x86"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+DEPEND="${PYTHON_DEPS}
+ $(add_frameworks_dep kcompletion)
+ $(add_frameworks_dep kconfig)
+ $(add_frameworks_dep kcoreaddons)
+ $(add_frameworks_dep ki18n)
+ $(add_frameworks_dep kio)
+ $(add_frameworks_dep kitemmodels)
+ $(add_frameworks_dep knewstuff)
+ $(add_frameworks_dep kparts)
+ $(add_frameworks_dep ktexteditor)
+ $(add_frameworks_dep kwidgetsaddons)
+ $(add_frameworks_dep kxmlgui)
+ $(add_frameworks_dep threadweaver)
+ $(add_qt_dep qtgui)
+ $(add_qt_dep qtwidgets)
+ dev-util/kdevplatform:5
+"
+RDEPEND="${DEPEND}
+ dev-python/pycodestyle[${PYTHON_USEDEP}]
+ dev-util/kdevelop:5
+"
+
+RESTRICT+=" test"
+
+pkg_setup() {
+ python-single-r1_pkg_setup
+ kde5_pkg_setup
+}
+
+src_compile() {
+ pushd "${WORKDIR}"/${P}_build > /dev/null || die
+ emake parser
+ popd > /dev/null || die
+
+ kde5_src_compile
+}
diff --git a/dev-util/kdevelop-python/kdevelop-python-5.1.2.ebuild b/dev-util/kdevelop-python/kdevelop-python-5.1.2.ebuild
new file mode 100644
index 000000000000..681783b6f194
--- /dev/null
+++ b/dev-util/kdevelop-python/kdevelop-python-5.1.2.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+EGIT_BRANCH="5.1"
+KDE_TEST="forceoptional"
+KDEBASE="kdevelop"
+KMNAME="kdev-python"
+PYTHON_COMPAT=( python3_{4,5,6} )
+inherit kde5 python-single-r1
+
+DESCRIPTION="Python plugin for KDevelop"
+IUSE=""
+[[ ${KDE_BUILD_TYPE} = release ]] && KEYWORDS="~amd64 ~x86"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+DEPEND="${PYTHON_DEPS}
+ $(add_frameworks_dep kcompletion)
+ $(add_frameworks_dep kconfig)
+ $(add_frameworks_dep kcoreaddons)
+ $(add_frameworks_dep ki18n)
+ $(add_frameworks_dep kio)
+ $(add_frameworks_dep kitemmodels)
+ $(add_frameworks_dep knewstuff)
+ $(add_frameworks_dep kparts)
+ $(add_frameworks_dep ktexteditor)
+ $(add_frameworks_dep kwidgetsaddons)
+ $(add_frameworks_dep kxmlgui)
+ $(add_frameworks_dep threadweaver)
+ $(add_qt_dep qtgui)
+ $(add_qt_dep qtwidgets)
+ dev-util/kdevplatform:5
+"
+RDEPEND="${DEPEND}
+ dev-python/pycodestyle[${PYTHON_USEDEP}]
+ dev-util/kdevelop:5
+"
+
+RESTRICT+=" test"
+
+pkg_setup() {
+ python-single-r1_pkg_setup
+ kde5_pkg_setup
+}
+
+src_compile() {
+ pushd "${WORKDIR}"/${P}_build > /dev/null || die
+ emake parser
+ popd > /dev/null || die
+
+ kde5_src_compile
+}
diff --git a/dev-util/kdevelop-python/metadata.xml b/dev-util/kdevelop-python/metadata.xml
new file mode 100644
index 000000000000..2fdbf33d963d
--- /dev/null
+++ b/dev-util/kdevelop-python/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="project">
+ <email>kde@gentoo.org</email>
+ <name>Gentoo KDE Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-util/kdevelop/Manifest b/dev-util/kdevelop/Manifest
new file mode 100644
index 000000000000..dc52cd8664cc
--- /dev/null
+++ b/dev-util/kdevelop/Manifest
@@ -0,0 +1,8 @@
+AUX kdevelop-5.0.2-ninja-optional.patch 426 SHA256 de410283856feaf6e13f5edf88d659cee65dd677bdc244285864bd4839af4a2e SHA512 7c54ca466ac8afae7ced2798182104977f1a41de884afb8e52b6b23ba60f87a184b7898cc991de1211e8a194343396851d50c25fa60ff69205731725074bf19c WHIRLPOOL c4969d7081e710058c055fdb863b4cfbf5240ae8fecd71fc165cbba4414eade65a2d21b6dd0526e50611d8c14adaeee0dfa1fcdcd141b53a14c8c22bfd82c442
+DIST kdevelop-5.1.1.tar.xz 4685416 SHA256 0a01a4ffb2f01802cf4945521a3149a8f82c21fa8a97935991f1854b7db5d754 SHA512 e2c1a4885bab9815341a53da6a98dd4939b7128eee174e79c616cc020f464362a2730508b3a8d66f00e4ea95f2098b92d6328b43b9f22bd77145bbe6ce096529 WHIRLPOOL 7e4134a89533ec510486f4b65a50cdc4b6f9f3ec3639f38077e568b54ae66d470f8028348eaab875c08ab8de4535902e2572aea99f86baba9359b581747a4366
+DIST kdevelop-5.1.2.tar.xz 4688696 SHA256 af54e807847d145fe5f3eb55962ed0d22e6363c2bc6c32167e51ca4823c00ac7 SHA512 3f359587c7dca3ad4d0db4940cc9557bb61647672432f21c21d6f493e5e5c96e026c7dc155b66a7be4d20b06972fe961d8a3dda28e8aa273d0a4044a6242e39b WHIRLPOOL 0e3229a9b209cc3dd0afed13fdf72053dafaff3ca3d75172ef575590e6a5eb8374a4c0ded6e10adabb305a91f725a26877f91d417bd05d647fec2bb8f169f1fb
+EBUILD kdevelop-5.1.1.ebuild 2562 SHA256 5bed63ece3d27fd5b4aedc2a2d2b0220b6e6e5e8d365367a6c2f04902f23ba20 SHA512 f7d3ad87391cc509ffaefc5d9308ad7cabbd4faabef68acf1ab0e00259526014bcc100a686879e796cbed99090bbf354a7bb5493a8dba356a4b31581c6942e26 WHIRLPOOL 5c45c5dc2f5a5bf16780e50f47c04359956052843c3221a7776c93478d659e2664fc2b34c832d57b2cfbb5b03bf94702b5cdfbe81ef01963bbaa64302987d21d
+EBUILD kdevelop-5.1.2.ebuild 2570 SHA256 06ceabc2d1e8fa8601df41d8f243078e3ea42a413e97ff479a900002a5c4dccf SHA512 413a4b79c2edb489816f18cbeabf3099b64ee2318b6b32a4dc242be8ad287c9557223af151c186d508cfdee873ae7414c114e10685558750dfd0b50f2731c383 WHIRLPOOL 6c4de213735e838da17da608c1316bcc88035ee9e5083cff795cc7991462656e4d595b2cef16ce1b77278eabca99259e99b191bdb9738ba48fc6e8c97d2b2ecb
+MISC ChangeLog 7546 SHA256 62a5c648dd50a1c831960579da88ff3aad5f5f198c04afa2e8dca66e2a41b43d SHA512 f7ccdeb52b318a7ac700538508ddc119b3833349705715e41b57aec8707ffc69cbf948abbae08dd6d44971d46b693ac0e55b54344094048cb7c0ae24099433ba WHIRLPOOL bbbc218f69de23736553946b14fe8ff508437526af62dea7d680b76dbc182a3dd4307fae9261de47ba2b8a9003944c2cbdc1938804cd025672bf616df2db59ef
+MISC ChangeLog-2015 39119 SHA256 6ce8c61c7acd1546a9d894cfc7754e7363ab7f0799b82747ffa0615e489366dd SHA512 b78ac3c39b5fa535956066568d56bcd57a54b42614abc5cc28015909b1824878d89cfe81172782d6ee85f24a572304ca9565c88c5c51d191349373a0ba2a9e20 WHIRLPOOL d1d433c52184613a9c6bd1fa17334fb6c67c311a4ddfe2e70e3d5693dbc268d63ff3c416d720167cc59e2d99c50b7baaad41dcca696ba9c2ac95d6d117c17f3d
+MISC metadata.xml 606 SHA256 ae2ded29876f28bf22af2a6ec83ab5f1c73f645b05f95a24e535d945fccc5d39 SHA512 029fc300951af3f0887192a7c51efb51b4107b05433d7b47af2a1346603443c2da4c7849bcc4b06d08445c12893a6abddf89fbe126694aa1809a43579cbe9600 WHIRLPOOL 3368c317e6a8ea906a395eba09a0828d911d02816c59bf4968e5c02f0a88be3b564f4d606c6ef3ebcdeed38fe3a07021979369bfb4cf38720f6c8be050b6e835
diff --git a/dev-util/kdevelop/files/kdevelop-5.0.2-ninja-optional.patch b/dev-util/kdevelop/files/kdevelop-5.0.2-ninja-optional.patch
new file mode 100644
index 000000000000..a60da91df6dc
--- /dev/null
+++ b/dev-util/kdevelop/files/kdevelop-5.0.2-ninja-optional.patch
@@ -0,0 +1,11 @@
+diff --git a/projectbuilders/CMakeLists.txt b/projectbuilders/CMakeLists.txt
+index 80d7866..825ca8b 100644
+--- a/projectbuilders/CMakeLists.txt
++++ b/projectbuilders/CMakeLists.txt
+@@ -1,5 +1,5 @@
+ add_subdirectory(makebuilder)
+-add_subdirectory(ninjabuilder)
++ecm_optional_add_subdirectory(ninjabuilder)
+ ecm_optional_add_subdirectory(cmakebuilder)
+ if (KDevelop-PG-Qt_FOUND)
+ ecm_optional_add_subdirectory(qmakebuilder)
diff --git a/dev-util/kdevelop/kdevelop-5.1.1.ebuild b/dev-util/kdevelop/kdevelop-5.1.1.ebuild
new file mode 100644
index 000000000000..681bc3245037
--- /dev/null
+++ b/dev-util/kdevelop/kdevelop-5.1.1.ebuild
@@ -0,0 +1,92 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+EGIT_BRANCH="5.1"
+KDE_HANDBOOK="forceoptional"
+KDE_TEST="forceoptional-recursive"
+VIRTUALX_REQUIRED="test"
+inherit kde5
+
+DESCRIPTION="Integrated Development Environment, supporting KF5/Qt, C/C++ and much more"
+LICENSE="GPL-2 LGPL-2"
+IUSE="+gdbui +ninja okteta +plasma +qmake qthelp"
+[[ ${KDE_BUILD_TYPE} = release ]] && KEYWORDS="amd64 x86"
+
+COMMON_DEPEND="
+ $(add_frameworks_dep kcmutils)
+ $(add_frameworks_dep kcompletion)
+ $(add_frameworks_dep kconfig)
+ $(add_frameworks_dep kconfigwidgets)
+ $(add_frameworks_dep kcoreaddons)
+ $(add_frameworks_dep kcrash)
+ $(add_frameworks_dep kdeclarative)
+ $(add_frameworks_dep ki18n)
+ $(add_frameworks_dep kiconthemes)
+ $(add_frameworks_dep kio)
+ $(add_frameworks_dep kitemmodels)
+ $(add_frameworks_dep kitemviews)
+ $(add_frameworks_dep kjobwidgets)
+ $(add_frameworks_dep knewstuff)
+ $(add_frameworks_dep knotifyconfig)
+ $(add_frameworks_dep kparts)
+ $(add_frameworks_dep kservice)
+ $(add_frameworks_dep ktexteditor)
+ $(add_frameworks_dep kwidgetsaddons)
+ $(add_frameworks_dep kwindowsystem)
+ $(add_frameworks_dep kxmlgui)
+ $(add_frameworks_dep threadweaver)
+ $(add_qt_dep qtdbus)
+ $(add_qt_dep qtdeclarative)
+ $(add_qt_dep qtgui)
+ $(add_qt_dep qtnetwork)
+ $(add_qt_dep qtwebkit)
+ $(add_qt_dep qtwidgets)
+ $(add_qt_dep qtxml)
+ >=dev-util/kdevplatform-${PV}:5
+ >=sys-devel/clang-3.5.0:*
+ x11-misc/shared-mime-info
+ gdbui? ( $(add_plasma_dep libksysguard) )
+ okteta? ( $(add_kdeapps_dep okteta) )
+ plasma? (
+ $(add_frameworks_dep krunner)
+ $(add_frameworks_dep plasma)
+ )
+ qmake? ( dev-util/kdevelop-pg-qt:5 )
+ qthelp? ( $(add_qt_dep qthelp) )
+"
+DEPEND="${COMMON_DEPEND}
+ $(add_qt_dep qtconcurrent)
+"
+RDEPEND="${COMMON_DEPEND}
+ $(add_kdeapps_dep kapptemplate)
+ $(add_kdeapps_dep kio-extras)
+ >=sys-devel/gdb-7.0[python]
+ ninja? ( dev-util/ninja )
+ !dev-util/kdevelop:4
+ !dev-util/kdevelop-clang
+ !dev-util/kdevelop-cppcheck
+ !dev-util/kdevelop-qmake
+ !dev-util/kdevelop-qmljs
+ !<kde-apps/kapptemplate-16.04.0
+"
+
+RESTRICT+=" test"
+# see bug 366471
+
+PATCHES=( "${FILESDIR}/${PN}-5.0.2-ninja-optional.patch" )
+
+src_configure() {
+ local mycmakeargs=(
+ $(cmake-utils_use_find_package gdbui KF5SysGuard)
+ -DBUILD_executeplasmoid=$(usex plasma)
+ $(cmake-utils_use_find_package plasma KF5Plasma)
+ -DBUILD_ninjabuilder=$(usex ninja)
+ $(cmake-utils_use_find_package okteta OktetaKastenControllers)
+ $(cmake-utils_use_find_package qmake KDevelop-PG-Qt)
+ -DBUILD_qthelp=$(usex qthelp)
+ )
+
+ kde5_src_configure
+}
diff --git a/dev-util/kdevelop/kdevelop-5.1.2.ebuild b/dev-util/kdevelop/kdevelop-5.1.2.ebuild
new file mode 100644
index 000000000000..ffbbca5b1bc6
--- /dev/null
+++ b/dev-util/kdevelop/kdevelop-5.1.2.ebuild
@@ -0,0 +1,97 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+EGIT_BRANCH="5.1"
+KDE_HANDBOOK="forceoptional"
+KDE_TEST="true"
+VIRTUALX_REQUIRED="test"
+inherit kde5
+
+DESCRIPTION="Integrated Development Environment, supporting KF5/Qt, C/C++ and much more"
+LICENSE="GPL-2 LGPL-2"
+IUSE="+gdbui okteta +plasma +qmake"
+[[ ${KDE_BUILD_TYPE} = release ]] && KEYWORDS="~amd64 ~x86"
+
+COMMON_DEPEND="
+ $(add_frameworks_dep kcmutils)
+ $(add_frameworks_dep kcompletion)
+ $(add_frameworks_dep kconfig)
+ $(add_frameworks_dep kconfigwidgets)
+ $(add_frameworks_dep kcoreaddons)
+ $(add_frameworks_dep kcrash)
+ $(add_frameworks_dep kdeclarative)
+ $(add_frameworks_dep ki18n)
+ $(add_frameworks_dep kiconthemes)
+ $(add_frameworks_dep kio)
+ $(add_frameworks_dep kitemmodels)
+ $(add_frameworks_dep kitemviews)
+ $(add_frameworks_dep kjobwidgets)
+ $(add_frameworks_dep knewstuff)
+ $(add_frameworks_dep knotifyconfig)
+ $(add_frameworks_dep kparts)
+ $(add_frameworks_dep kservice)
+ $(add_frameworks_dep ktexteditor)
+ $(add_frameworks_dep kwidgetsaddons)
+ $(add_frameworks_dep kwindowsystem)
+ $(add_frameworks_dep kxmlgui)
+ $(add_frameworks_dep threadweaver)
+ $(add_qt_dep qtdbus)
+ $(add_qt_dep qtdeclarative)
+ $(add_qt_dep qtgui)
+ $(add_qt_dep qthelp)
+ $(add_qt_dep qtnetwork)
+ $(add_qt_dep qtwebkit)
+ $(add_qt_dep qtwidgets)
+ $(add_qt_dep qtxml)
+ >=dev-util/kdevplatform-${PV}:5
+ >=sys-devel/clang-3.5.0:*
+ x11-misc/shared-mime-info
+ gdbui? ( $(add_plasma_dep libksysguard) )
+ okteta? ( $(add_kdeapps_dep okteta) )
+ plasma? (
+ $(add_frameworks_dep krunner)
+ $(add_frameworks_dep plasma)
+ )
+ qmake? ( dev-util/kdevelop-pg-qt:5 )
+"
+DEPEND="${COMMON_DEPEND}
+ $(add_qt_dep qtconcurrent)
+"
+RDEPEND="${COMMON_DEPEND}
+ $(add_kdeapps_dep kapptemplate)
+ $(add_kdeapps_dep kio-extras)
+ dev-util/ninja
+ >=sys-devel/gdb-7.0[python]
+ !dev-util/kdevelop:4
+ !dev-util/kdevelop-clang
+ !dev-util/kdevelop-cppcheck
+ !dev-util/kdevelop-qmake
+ !dev-util/kdevelop-qmljs
+ !<kde-apps/kapptemplate-16.04.0
+"
+
+RESTRICT+=" test"
+# see bug 366471
+
+src_configure() {
+ local mycmakeargs=(
+ $(cmake-utils_use_find_package gdbui KF5SysGuard)
+ -DBUILD_executeplasmoid=$(usex plasma)
+ $(cmake-utils_use_find_package plasma KF5Plasma)
+ $(cmake-utils_use_find_package okteta OktetaKastenControllers)
+ $(cmake-utils_use_find_package qmake KDevelop-PG-Qt)
+ -DBUILD_qthelp=ON
+ )
+
+ kde5_src_configure
+}
+
+pkg_postinst() {
+ kde5_pkg_postinst
+
+ if ! has_version "dev-util/cppcheck" ; then
+ elog "For static C/C++ code analysis support, please install dev-util/cppcheck"
+ fi
+}
diff --git a/dev-util/kdevelop/metadata.xml b/dev-util/kdevelop/metadata.xml
new file mode 100644
index 000000000000..f7ada62fc4f0
--- /dev/null
+++ b/dev-util/kdevelop/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="project">
+ <email>kde@gentoo.org</email>
+ <name>Gentoo KDE Project</name>
+ </maintainer>
+ <use>
+ <flag name="gdbui">Enable GUI for attaching GDB to a running process</flag>
+ <flag name="ninja">Enable support for Ninja build system</flag>
+ <flag name="okteta">Enable hex editor plugin</flag>
+ <flag name="qmake">Enable support for QMake build system</flag>
+ <flag name="qthelp">Enable support for QtHelp documentation browsing</flag>
+ </use>
+</pkgmetadata>
diff --git a/dev-util/kdevplatform/Manifest b/dev-util/kdevplatform/Manifest
new file mode 100644
index 000000000000..780e7ae975cf
--- /dev/null
+++ b/dev-util/kdevplatform/Manifest
@@ -0,0 +1,8 @@
+AUX kdevplatform-5.1.1-tests-optional.patch 7299 SHA256 539cef9d92085335dbe55d6b85df5d7cf45ecdd4872fd1e6257b53e8edd6933c SHA512 277101dbb2d567201ced0d5063c1f628eca752b5079993de6f27dfdd7d49376d7fcf0313df1bc2bfdeca77a2273a6bad768502e59ef48ef358cefece92259802 WHIRLPOOL cc50b99f8c6c7431385dbba323bc6301901cefcfa5883273bb3669b6a0b2c401e18de8e21d87fdea58978d8af067093dbe416e76bf2a38e096d75a4c03aa75e4
+DIST kdevplatform-5.1.1.tar.xz 2047948 SHA256 3159440512b1373c1a4b35f401ba1f81217de9578372b45137af141eeda6e726 SHA512 2780bc8f321be262bb9c2152fa8c58d52c93d48411122a5ce8d00f11becc8885c9697be7159cbcbb57c0a3f049912f96e67bc274af7ffa90cebf62eeba1eb572 WHIRLPOOL 60ea7b77d5edc007e91d141affbb9c9d46a4cbf52efc21e7b0202d07132d553e266af2968802843758a40905aeb5f568fff787fd4f68c48698619b5f8528378a
+DIST kdevplatform-5.1.2.tar.xz 2051776 SHA256 e622ddad552a678baaf1166d5cbdc5fd1192d2324300c52ef2d25f1c6778664a SHA512 cba58144b1c431789c6ceedee673f365af411a185944c5f6e2d8a8f46bf8bd817de0bbbb454d8ee6c2db28675a78940cb4293bb5e6430bdce77e4bd98e335889 WHIRLPOOL bb0fa4e8895b018710a7b020951f31cbe8801bf4eae411e2c29fab13201b76e14ee465d63deb0c9953ec7a91a5533db1a2e57357986aab52fe64fef80f0a7ad1
+EBUILD kdevplatform-5.1.1.ebuild 2446 SHA256 60e1e3ffc061cb642338b069261a5658b93d2883c8e2970cb055f105818dcd41 SHA512 45a5aa1b790c6cb2f6aeb60961f2ffdf7576c3b3601c2f28fb25a9d949cd39d09f07f2ff06f40239bb86b7f2933b43b34ae7c77ce3e10b2e550fdd9846521e6b WHIRLPOOL a2c62d7215942ba58a77e3da8bab8bfcf10cb5c8c7436f4cb40c6a1c9101cee219c20fd6608b7275cbf433cbe4c4f3f71b2d668bae52efe8f617d00e990df498
+EBUILD kdevplatform-5.1.2.ebuild 2838 SHA256 b16666a1ea00ee4db64f9a68fd5ea05565860408884c88ca2a0bcf5dfa28acc3 SHA512 6a1e35bca978d90070f798e5c40f309a5ad26e3ae5e41f851345807221b3de1a8709969c458d1ef68527d847dedfefee90614be6ec465c8ac90d7e88bf7931c5 WHIRLPOOL b5b60d448acfedfdc2ce63d59a47154a06b93513d7000fe860879628565714143aaba3dc2329b2ec2b32017a404c237b50158acf8511d140506ecc4eee2bec72
+MISC ChangeLog 7122 SHA256 1fa9a19f3f0ec043583391454883f3ed813a31f13b34d4472eb729cae95c172f SHA512 a902cedb96a48b794ebefca8ffba4b922bcdf5f1487146ee9e91b597326608d4d6eaf81c3fb3bcee4a3cc778ca6a6568cf54cbaa510d81eedd8d827083e43388 WHIRLPOOL 9deca444e6544e7caf2c723b9cf840fba50b7c85a51cdb0b58c7a65c41a91999671863f3f026b565f3731b72dad4999656efa113688f4410765f0295f5b07708
+MISC ChangeLog-2015 13838 SHA256 2b8be10fbd1fd348b1f3e5f81b68577482ac0d924ed473414c4a00ee536adaaa SHA512 3577fe2f0bcc3f2f95f5f07b0fd5af0aacb4e03af69377274fe17d8dbc0040430c94b033792115ce43cc723fef77aee1e8c37775e4cf1dae8f08f986a9b92ea5 WHIRLPOOL 087eeecca1148f163ea857d44366084acdb6aa6b51debaba2aa9c39a281784e7535d53c8a24010f9042c7043c7d1bf8a4a48cacd31e4c33e3304b74475410c60
+MISC metadata.xml 421 SHA256 24c40ffa8e4f13acade949a09f69577a11e7cdee636bd730f93f57aa00526114 SHA512 78367015dc92cfc16e5f10e2a57530e891339dcec777763f58d2ded933655c875c1e83402fa81a1c902a5c0765d7d43b00e2bb138b26148061d6584173681490 WHIRLPOOL 078fd1f89d766ef49d2df37e2b7b485bb765c2103a2bc6386c3f86e9c0b65164abf04410c88b933bef386398b5f02b1aa625bcb03c8e5184322d9661f1152fcc
diff --git a/dev-util/kdevplatform/files/kdevplatform-5.1.1-tests-optional.patch b/dev-util/kdevplatform/files/kdevplatform-5.1.1-tests-optional.patch
new file mode 100644
index 000000000000..385e37c38654
--- /dev/null
+++ b/dev-util/kdevplatform/files/kdevplatform-5.1.1-tests-optional.patch
@@ -0,0 +1,229 @@
+Patch autogenerated by KDE_TEST=forceoptional-recursive and edited.
+
+--- a/project/CMakeLists.txt 2017-08-19 13:39:27.223931674 +0200
++++ b/project/CMakeLists.txt 2017-08-19 13:39:27.230931474 +0200
+@@ -38,7 +38,9 @@
+ Qt5::Concurrent
+ )
+
++if(BUILD_TESTING)
+ add_subdirectory(tests)
++endif()
+
+ install(FILES
+ interfaces/iprojectbuilder.h
+--- a/sublime/CMakeLists.txt 2017-08-19 13:39:27.242931131 +0200
++++ b/sublime/CMakeLists.txt 2017-08-19 13:39:27.249930930 +0200
+@@ -1,7 +1,9 @@
+ add_definitions(-DTRANSLATION_DOMAIN=\"kdevplatform\")
+
+ add_subdirectory(examples)
++if(BUILD_TESTING)
+ add_subdirectory(tests)
++endif()
+
+ set(sublime_LIB_SRCS
+ area.cpp
+--- a/vcs/CMakeLists.txt 2017-08-19 13:39:27.258930673 +0200
++++ b/vcs/CMakeLists.txt 2017-08-19 13:39:27.264930501 +0200
+@@ -1,7 +1,9 @@
+ add_definitions(-DTRANSLATION_DOMAIN=\"kdevplatform\")
+
++if(BUILD_TESTING)
+ add_subdirectory(dvcs/tests)
+ add_subdirectory(models/tests)
++endif()
+
+ set(KDevPlatformVcs_UIS
+ widgets/vcscommitdialog.ui
+--- a/shell/CMakeLists.txt 2017-08-19 13:39:27.274930215 +0200
++++ b/shell/CMakeLists.txt 2017-08-19 13:39:27.281930015 +0200
+@@ -1,6 +1,8 @@
+ add_definitions(-DTRANSLATION_DOMAIN=\"kdevplatform\")
+
++if(BUILD_TESTING)
+ add_subdirectory(tests)
++endif()
+
+ set(KDevPlatformShell_LIB_SRCS
+ workingsetcontroller.cpp
+--- a/language/CMakeLists.txt 2017-08-19 13:39:27.292929700 +0200
++++ b/language/CMakeLists.txt 2017-08-19 13:39:27.299929500 +0200
+@@ -6,11 +6,13 @@
+ check_include_file("malloc.h" HAVE_MALLOC_H)
+ check_symbol_exists(malloc_trim "malloc.h" HAVE_MALLOC_TRIM)
+
++if(BUILD_TESTING)
+ add_subdirectory(highlighting/tests)
+ add_subdirectory(duchain/tests)
+ add_subdirectory(backgroundparser/tests)
+ add_subdirectory(codegen/tests)
+ add_subdirectory(util/tests)
++endif()
+
+ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/language-features.h.cmake
+ ${CMAKE_CURRENT_BINARY_DIR}/language-features.h )
+--- a/language/codegen/tests/data/CMakeLists.txt 2017-08-19 13:39:27.309929214 +0200
++++ b/language/codegen/tests/data/CMakeLists.txt 2017-08-19 13:39:27.316929014 +0200
+@@ -1 +1,3 @@
++if(BUILD_TESTING)
+ add_subdirectory(kdevcodegentest)
++endif()
+--- a/outputview/CMakeLists.txt 2017-08-19 13:39:27.326928728 +0200
++++ b/outputview/CMakeLists.txt 2017-08-19 13:39:27.334928499 +0200
+@@ -31,4 +31,6 @@
+ outputexecutejob.h
+ DESTINATION ${KDE_INSTALL_INCLUDEDIR}/kdevplatform/outputview COMPONENT Devel)
+
++if(BUILD_TESTING)
+ add_subdirectory(tests)
++endif()
+--- a/serialization/CMakeLists.txt 2017-08-19 13:39:27.343928241 +0200
++++ b/serialization/CMakeLists.txt 2017-08-19 13:39:27.351928013 +0200
+@@ -27,4 +27,6 @@
+ DESTINATION ${KDE_INSTALL_INCLUDEDIR}/kdevplatform/serialization COMPONENT Devel
+ )
+
++if(BUILD_TESTING)
+ add_subdirectory(tests)
++endif()
+--- a/util/CMakeLists.txt 2017-08-19 13:39:27.360927755 +0200
++++ b/util/CMakeLists.txt 2017-08-19 13:39:27.368927526 +0200
+@@ -39,7 +39,9 @@
+
+ add_subdirectory(duchainify)
+
++if(BUILD_TESTING)
+ add_subdirectory(tests)
++endif()
+
+ ki18n_wrap_ui(KDevPlatformUtil_LIB_SRCS ${KDevPlatformUtil_LIB_US})
+ kdevplatform_add_library(KDevPlatformUtil SOURCES ${KDevPlatformUtil_LIB_SRCS})
+--- a/debugger/CMakeLists.txt 2017-08-19 13:39:27.377927269 +0200
++++ b/debugger/CMakeLists.txt 2017-08-19 13:39:27.385927040 +0200
+@@ -63,4 +63,6 @@
+ DESTINATION ${KDE_INSTALL_INCLUDEDIR}/kdevplatform/debugger/framestack COMPONENT Devel
+ )
+
++if(BUILD_TESTING)
+ add_subdirectory(tests)
++endif()
+--- a/plugins/bazaar/CMakeLists.txt 2017-08-19 13:39:27.394926782 +0200
++++ b/plugins/bazaar/CMakeLists.txt 2017-08-19 13:39:27.402926554 +0200
+@@ -16,4 +16,6 @@
+ )
+
+ add_subdirectory(icons)
++if(BUILD_TESTING)
+ add_subdirectory(tests)
++endif()
+--- a/plugins/standardoutputview/CMakeLists.txt 2017-08-19 13:39:27.410926325 +0200
++++ b/plugins/standardoutputview/CMakeLists.txt 2017-08-19 13:39:27.418926096 +0200
+@@ -1,5 +1,7 @@
+ add_definitions(-DTRANSLATION_DOMAIN=\"kdevstandardoutputview\")
++if(BUILD_TESTING)
+ add_subdirectory(tests)
++endif()
+
+ ########### next target ###############
+
+--- a/plugins/cvs/CMakeLists.txt 2017-08-19 13:39:27.426925867 +0200
++++ b/plugins/cvs/CMakeLists.txt 2017-08-19 13:39:27.434925638 +0200
+@@ -1,5 +1,7 @@
+ add_definitions(-DTRANSLATION_DOMAIN=\"kdevcvs\")
++if(BUILD_TESTING)
+ add_subdirectory(tests)
++endif()
+
+
+ ########### next target ###############
+--- a/plugins/quickopen/CMakeLists.txt 2017-08-19 13:39:27.443925381 +0200
++++ b/plugins/quickopen/CMakeLists.txt 2017-08-19 13:39:27.450925181 +0200
+@@ -1,5 +1,7 @@
+ add_definitions(-DTRANSLATION_DOMAIN=\"kdevquickopen\")
++if(BUILD_TESTING)
+ add_subdirectory( tests )
++endif()
+
+ set(kdevquickopen_PART_SRCS
+ quickopenplugin.cpp
+--- a/plugins/genericprojectmanager/CMakeLists.txt 2017-08-19 13:39:27.458924952 +0200
++++ b/plugins/genericprojectmanager/CMakeLists.txt 2017-08-19 13:39:27.465924752 +0200
+@@ -1,6 +1,8 @@
+ add_definitions(-DTRANSLATION_DOMAIN=\"kdevgenericprojectmanager\")
+
++if(BUILD_TESTING)
+ add_subdirectory(test)
++endif()
+
+ ########### next target ###############
+
+--- a/plugins/subversion/CMakeLists.txt 2017-08-19 13:39:27.473924523 +0200
++++ b/plugins/subversion/CMakeLists.txt 2017-08-19 13:39:27.479924351 +0200
+@@ -7,7 +7,9 @@
+
+ string(REPLACE "-Wdocumentation" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
+
++if(BUILD_TESTING)
+ add_subdirectory(tests)
++endif()
+ add_subdirectory(icons)
+
+ include_directories(
+--- a/plugins/grepview/CMakeLists.txt 2017-08-19 13:39:27.488924094 +0200
++++ b/plugins/grepview/CMakeLists.txt 2017-08-19 13:39:27.494923922 +0200
+@@ -39,4 +39,6 @@
+
+ ########### install files ###############
+
++if(BUILD_TESTING)
+ add_subdirectory(tests)
++endif()
+--- a/plugins/perforce/CMakeLists.txt 2017-08-19 13:39:27.503923665 +0200
++++ b/plugins/perforce/CMakeLists.txt 2017-08-19 13:39:27.509923493 +0200
+@@ -1,5 +1,7 @@
+ add_subdirectory(p4clientstub)
++if(BUILD_TESTING)
+ add_subdirectory(test)
++endif()
+
+ set(kdevperforce_PART_SRCS
+ perforceplugin.cpp
+--- a/plugins/filetemplates/CMakeLists.txt 2017-08-19 13:39:27.517923264 +0200
++++ b/plugins/filetemplates/CMakeLists.txt 2017-08-19 13:39:27.523923092 +0200
+@@ -89,4 +89,6 @@
+ KF5::NewStuff
+ )
+
++if(BUILD_TESTING)
+ add_subdirectory(tests)
++endif()
+--- a/plugins/git/CMakeLists.txt 2017-08-19 13:39:27.531922863 +0200
++++ b/plugins/git/CMakeLists.txt 2017-08-19 13:39:27.538922663 +0200
+@@ -1,6 +1,8 @@
+ add_definitions(-DTRANSLATION_DOMAIN=\"kdevgit\")
+
++if(BUILD_TESTING)
+ add_subdirectory(tests)
++endif()
+ add_subdirectory(icons)
+
+ set(kdevgit_PART_SRCS
+--- a/plugins/projectfilter/CMakeLists.txt 2017-08-19 13:39:27.546922435 +0200
++++ b/plugins/projectfilter/CMakeLists.txt 2017-08-19 13:39:27.552922263 +0200
+@@ -26,4 +26,6 @@
+ KDev::Interfaces
+ )
+
++if(BUILD_TESTING)
+ add_subdirectory(tests)
++endif()
+--- a/plugins/problemreporter/CMakeLists.txt 2017-08-19 13:39:27.560922034 +0200
++++ b/plugins/problemreporter/CMakeLists.txt 2017-08-19 13:39:27.567921834 +0200
+@@ -15,4 +15,6 @@
+ kdevplatform_add_plugin(kdevproblemreporter JSON kdevproblemreporter.json SOURCES ${kdevproblemreporter_PART_SRCS})
+ target_link_libraries(kdevproblemreporter KF5::TextEditor KF5::Parts KDev::Language KDev::Interfaces KDev::Util KDev::Project KDev::Shell)
+
++if(BUILD_TESTING)
+ add_subdirectory(tests)
++endif()
diff --git a/dev-util/kdevplatform/kdevplatform-5.1.1.ebuild b/dev-util/kdevplatform/kdevplatform-5.1.1.ebuild
new file mode 100644
index 000000000000..8f3366b15ea5
--- /dev/null
+++ b/dev-util/kdevplatform/kdevplatform-5.1.1.ebuild
@@ -0,0 +1,97 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+EGIT_BRANCH="5.1"
+KDEBASE="kdevelop"
+KDE_TEST="true"
+VIRTUALDBUS_TEST="true"
+VIRTUALX_REQUIRED="test"
+inherit kde5
+
+DESCRIPTION="KDE development support libraries and apps"
+IUSE="cvs reviewboard subversion +welcomepage"
+[[ ${KDE_BUILD_TYPE} = release ]] && KEYWORDS="amd64 x86"
+
+COMMON_DEPEND="
+ $(add_frameworks_dep karchive)
+ $(add_frameworks_dep kbookmarks)
+ $(add_frameworks_dep kcmutils)
+ $(add_frameworks_dep kcodecs)
+ $(add_frameworks_dep kcompletion)
+ $(add_frameworks_dep kconfig)
+ $(add_frameworks_dep kconfigwidgets)
+ $(add_frameworks_dep kcoreaddons)
+ $(add_frameworks_dep kdeclarative)
+ $(add_frameworks_dep kguiaddons)
+ $(add_frameworks_dep ki18n)
+ $(add_frameworks_dep kiconthemes)
+ $(add_frameworks_dep kio)
+ $(add_frameworks_dep kitemmodels)
+ $(add_frameworks_dep kitemviews)
+ $(add_frameworks_dep kjobwidgets)
+ $(add_frameworks_dep knewstuff)
+ $(add_frameworks_dep knotifications)
+ $(add_frameworks_dep knotifyconfig)
+ $(add_frameworks_dep kparts)
+ $(add_frameworks_dep kservice)
+ $(add_frameworks_dep ktexteditor)
+ $(add_frameworks_dep ktextwidgets)
+ $(add_frameworks_dep kwidgetsaddons)
+ $(add_frameworks_dep kwindowsystem)
+ $(add_frameworks_dep kxmlgui)
+ $(add_frameworks_dep sonnet)
+ $(add_frameworks_dep threadweaver)
+ $(add_kdeapps_dep libkomparediff2)
+ $(add_qt_dep qtdbus)
+ $(add_qt_dep qtgui)
+ $(add_qt_dep qttest)
+ $(add_qt_dep qtwebkit)
+ $(add_qt_dep qtwidgets)
+ $(add_qt_dep qtxml)
+ dev-libs/grantlee:5
+ reviewboard? ( dev-libs/purpose )
+ subversion? (
+ dev-libs/apr:1
+ dev-libs/apr-util:1
+ dev-vcs/subversion
+ )
+ welcomepage? ( $(add_qt_dep qtdeclarative 'widgets') )
+"
+DEPEND="${COMMON_DEPEND}
+ dev-libs/boost
+ $(add_qt_dep qtconcurrent)
+"
+RDEPEND="${COMMON_DEPEND}
+ cvs? ( dev-vcs/cvs )
+ !dev-util/kdevelop:4
+ !dev-util/kdevplatform:4
+"
+
+REQUIRED_USE="test? ( welcomepage )"
+
+RESTRICT+=" test"
+
+PATCHES=( "${FILESDIR}/${P}-tests-optional.patch" )
+
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_cvs=$(usex cvs)
+ $(cmake-utils_use_find_package reviewboard KDEExperimentalPurpose)
+ $(cmake-utils_use_find_package subversion SubversionLibrary)
+ $(cmake-utils_use_find_package welcomepage Qt5QuickWidgets)
+ )
+
+ kde5_src_configure
+}
+
+pkg_postinst() {
+ kde5_pkg_postinst
+
+ if ! has_version "kde-apps/konsole" ; then
+ echo
+ elog "For konsole view, please install kde-apps/konsole"
+ echo
+ fi
+}
diff --git a/dev-util/kdevplatform/kdevplatform-5.1.2.ebuild b/dev-util/kdevplatform/kdevplatform-5.1.2.ebuild
new file mode 100644
index 000000000000..e93015314f51
--- /dev/null
+++ b/dev-util/kdevplatform/kdevplatform-5.1.2.ebuild
@@ -0,0 +1,107 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+EGIT_BRANCH="5.1"
+KDEBASE="kdevelop"
+KDE_TEST="true"
+VIRTUALDBUS_TEST="true"
+VIRTUALX_REQUIRED="test"
+inherit kde5
+
+DESCRIPTION="KDE development support libraries and apps"
+IUSE="cvs reviewboard subversion +welcomepage"
+[[ ${KDE_BUILD_TYPE} = release ]] && KEYWORDS="~amd64 ~x86"
+
+COMMON_DEPEND="
+ $(add_frameworks_dep karchive)
+ $(add_frameworks_dep kbookmarks)
+ $(add_frameworks_dep kcmutils)
+ $(add_frameworks_dep kcodecs)
+ $(add_frameworks_dep kcompletion)
+ $(add_frameworks_dep kconfig)
+ $(add_frameworks_dep kconfigwidgets)
+ $(add_frameworks_dep kcoreaddons)
+ $(add_frameworks_dep kdeclarative)
+ $(add_frameworks_dep kguiaddons)
+ $(add_frameworks_dep ki18n)
+ $(add_frameworks_dep kiconthemes)
+ $(add_frameworks_dep kio)
+ $(add_frameworks_dep kitemmodels)
+ $(add_frameworks_dep kitemviews)
+ $(add_frameworks_dep kjobwidgets)
+ $(add_frameworks_dep knewstuff)
+ $(add_frameworks_dep knotifications)
+ $(add_frameworks_dep knotifyconfig)
+ $(add_frameworks_dep kparts)
+ $(add_frameworks_dep kservice)
+ $(add_frameworks_dep ktexteditor)
+ $(add_frameworks_dep ktextwidgets)
+ $(add_frameworks_dep kwidgetsaddons)
+ $(add_frameworks_dep kwindowsystem)
+ $(add_frameworks_dep kxmlgui)
+ $(add_frameworks_dep sonnet)
+ $(add_frameworks_dep threadweaver)
+ $(add_kdeapps_dep libkomparediff2)
+ $(add_qt_dep qtdbus)
+ $(add_qt_dep qtgui)
+ $(add_qt_dep qttest)
+ $(add_qt_dep qtwebkit)
+ $(add_qt_dep qtwidgets)
+ $(add_qt_dep qtxml)
+ dev-libs/grantlee:5
+ reviewboard? ( dev-libs/purpose )
+ subversion? (
+ dev-libs/apr:1
+ dev-libs/apr-util:1
+ dev-vcs/subversion
+ )
+ welcomepage? ( $(add_qt_dep qtdeclarative 'widgets') )
+"
+DEPEND="${COMMON_DEPEND}
+ dev-libs/boost
+ $(add_qt_dep qtconcurrent)
+"
+RDEPEND="${COMMON_DEPEND}
+ cvs? ( dev-vcs/cvs )
+ reviewboard? ( $(add_kdeapps_dep ktp-accounts-kcm) )
+ !dev-util/kdevelop:4
+ !dev-util/kdevplatform:4
+"
+
+REQUIRED_USE="test? ( welcomepage )"
+
+RESTRICT+=" test"
+
+src_prepare() {
+ kde5_src_prepare
+ # root tests subdirectory actually does not contain tests, installs stuff
+ if ! use test; then
+ sed -i -e "/add_subdirectory(tests)/ s/#DONOTCOMPILE //" \
+ CMakeLists.txt || die "Failed to fix CMakeLists.txt"
+ sed -i -e '1s/^/find_package(Qt5Test \$\{QT_MIN_VERSION\})\n/' \
+ tests/CMakeLists.txt || die "Failed to fix tests/CMakeLists.txt"
+ fi
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_cvs=$(usex cvs)
+ $(cmake-utils_use_find_package reviewboard KDEExperimentalPurpose)
+ $(cmake-utils_use_find_package subversion SubversionLibrary)
+ $(cmake-utils_use_find_package welcomepage Qt5QuickWidgets)
+ )
+
+ kde5_src_configure
+}
+
+pkg_postinst() {
+ kde5_pkg_postinst
+
+ if ! has_version "kde-apps/konsole" ; then
+ echo
+ elog "For konsole view, please install kde-apps/konsole"
+ echo
+ fi
+}
diff --git a/dev-util/kdevplatform/metadata.xml b/dev-util/kdevplatform/metadata.xml
new file mode 100644
index 000000000000..3017fcac6063
--- /dev/null
+++ b/dev-util/kdevplatform/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="project">
+ <email>kde@gentoo.org</email>
+ <name>Gentoo KDE Project</name>
+ </maintainer>
+ <use>
+ <flag name="reviewboard">Enable reviewboard support</flag>
+ <flag name="welcomepage">Enable welcome page, requires <pkg>dev-qt/qtdeclarative</pkg></flag>
+ </use>
+</pkgmetadata>
diff --git a/dev-util/kelbt/Manifest b/dev-util/kelbt/Manifest
new file mode 100644
index 000000000000..d9b5fd640544
--- /dev/null
+++ b/dev-util/kelbt/Manifest
@@ -0,0 +1,6 @@
+AUX ragel-6.7+gcc-4.7.patch 5585 SHA256 bcdee795c9a063d4a42f49f2ba642a922aa705769c455b9b375bfab47c7e137c SHA512 160aea4100328accbe423e98f7f5741309b9e293aea992f287cb5d9fab25ae74c76933e924658dd4670d317b01e76d37c3defeeb47ada07370b819a16515ebf4 WHIRLPOOL 332ea976cc95139491b767ce31142a8408fbf79cdd16434c7527c270fe42cc1911581124fde5a33dcefe4d61a78c2ea38f0e484015d0fe3b40611305da45c46b
+DIST kelbt-0.15.tar.gz 232537 SHA256 000ae8e0906f34de13c3448f2422065e48407b6d85c61bbe51490ffdab0bc565 SHA512 2f203d3c3a12cc03d96a4d650dde3902d6815a3978af6f78f759b8dfce7971e2799e1325dc043cbc8a5b1fedaf9553a8f1693a159afa4f3601b3bdbc844df647 WHIRLPOOL d0285767d020c8eeae12adf5c9c776703c7ae35095da3ecb7fa10535f67b37ef802824f0955e0db313be6a19c79722f53cc570fc1928506fb3d87270f15f7dfe
+EBUILD kelbt-0.15.ebuild 823 SHA256 0585b7599b3d1e4892f070e269187d1b1a46b699e8ede579cc85df261728634d SHA512 7f5b4d2b0c115deee7d925fd7c95a12cdf1efb20776ee79c197d37c35aa8c95c4db0a31d29d9397c9d7b24697e9d0ad85d06b72a07924b1eba7f9e0b9dd585cb WHIRLPOOL 1dc2beddabbf7822cdbf2be8e3b15384d65551266ba78b6f7a6e5a0067f953b44d3f64a25f2e51a1eed5242f0437f65083704077beb95f2645c10dfe935a75a3
+MISC ChangeLog 2320 SHA256 d80adf5d074f23e6b6fdbea18669c35177ba9b2034b35b5311a9bb60848720cf SHA512 00639fff1cdff458ed153e23c1fe3a886369b4e62243bda65ec1dd2fb85e68dd912f5f39dd4972359611b23b7fad8aa56bd4b37ba68dd8f84401a8c5f168a359 WHIRLPOOL 548f382a3796b1c9b0d682a6d4e1d370891e59265caaaa74dbfc69be2074aefa02321c7a49548448822c928b27b825a13598d12a2131eea03639a2f1de79e499
+MISC ChangeLog-2015 1143 SHA256 90b8b08ac5eee2b9e20b7532b5f2ca6d9c2256deacf447e441610301a97f1d43 SHA512 4d7abecfa7c11810d857c1a2d7f8ced474e17dd48aa06c2a5c62c82ba78154964777bb204c9231fc3eaf2b65b7db07359760f00e7a4534546b00f3643b6c1717 WHIRLPOOL ec1606ef537ce40b6ad4e5a0d37038623f688642a0dcdc5169810cf71c14886760923af9143fc270f33971fe15a5817658e4f2d5deca80bf9fed18c44ba657ea
+MISC metadata.xml 222 SHA256 6c24a139c34c4a4e9e995ed2cd115a74f67aeafa57d23bcd34cc1f34a23c3cab SHA512 f5b07576edb64cee121aab00dd2a5f0c080fa947e00b6ff6ad6c514a82c132230426ca81e3430d7785c212786f7ead5f6c3f48e58478507df7d96a4e734168ab WHIRLPOOL a90afbba69e90a6040018c2494e46c9d6a416c5c050eab323cbd2e447fb68478d690fc5779764ce7edff97f6fcebc353aab4dc9784a6f159812d62046bfd8e1a
diff --git a/dev-util/kelbt/files/ragel-6.7+gcc-4.7.patch b/dev-util/kelbt/files/ragel-6.7+gcc-4.7.patch
new file mode 100644
index 000000000000..80eb29a46f05
--- /dev/null
+++ b/dev-util/kelbt/files/ragel-6.7+gcc-4.7.patch
@@ -0,0 +1,178 @@
+From 27454d1e55b2a5cefc3cc1044d036add9ee9a6d3 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= <flameeyes@flameeyes.eu>
+Date: Tue, 22 May 2012 16:25:37 -0700
+Subject: [PATCH] aapl: fix building with gcc-4.7.0
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Starting with GCC 4.7, you have to explicit methods inherited from
+base templates, otherwise it will refuse to build.
+
+---
+
+The URL reported in the README is no longer registered, so I couldn't
+find a way to report this to an upstream project.
+
+Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.eu>
+---
+ aapl/avlcommon.h | 12 ++++++------
+ aapl/bstcommon.h | 16 ++++++++--------
+ aapl/bubblesort.h | 2 +-
+ aapl/mergesort.h | 2 +-
+ 4 files changed, 16 insertions(+), 16 deletions(-)
+
+diff --git a/aapl/avlcommon.h b/aapl/avlcommon.h
+index 06983bc..2e3c190 100644
+--- a/aapl/avlcommon.h
++++ b/aapl/avlcommon.h
+@@ -881,9 +881,9 @@ template <AVLMEL_TEMPDEF> Element *AvlTree<AVLMEL_TEMPUSE>::
+ }
+
+ #ifdef AVL_BASIC
+- keyRelation = compare( *element, *curEl );
++ keyRelation = this->compare( *element, *curEl );
+ #else
+- keyRelation = compare( element->BASEKEY(getKey()),
++ keyRelation = this->compare( element->BASEKEY(getKey()),
+ curEl->BASEKEY(getKey()) );
+ #endif
+
+@@ -920,7 +920,7 @@ template <AVLMEL_TEMPDEF> Element *AvlTree<AVLMEL_TEMPUSE>::
+ long keyRelation;
+
+ while (curEl) {
+- keyRelation = compare( *element, *curEl );
++ keyRelation = this->compare( *element, *curEl );
+
+ /* Do we go left? */
+ if ( keyRelation < 0 )
+@@ -969,7 +969,7 @@ template <AVLMEL_TEMPDEF> Element *AvlTree<AVLMEL_TEMPUSE>::
+ return element;
+ }
+
+- keyRelation = compare( key, curEl->BASEKEY(getKey()) );
++ keyRelation = this->compare( key, curEl->BASEKEY(getKey()) );
+
+ /* Do we go left? */
+ if ( keyRelation < 0 ) {
+@@ -1023,7 +1023,7 @@ template <AVLMEL_TEMPDEF> Element *AvlTree<AVLMEL_TEMPUSE>::
+ return element;
+ }
+
+- keyRelation = compare(key, curEl->getKey());
++ keyRelation = this->compare(key, curEl->getKey());
+
+ /* Do we go left? */
+ if ( keyRelation < 0 ) {
+@@ -1058,7 +1058,7 @@ template <AVLMEL_TEMPDEF> Element *AvlTree<AVLMEL_TEMPUSE>::
+ long keyRelation;
+
+ while (curEl) {
+- keyRelation = compare( key, curEl->BASEKEY(getKey()) );
++ keyRelation = this->compare( key, curEl->BASEKEY(getKey()) );
+
+ /* Do we go left? */
+ if ( keyRelation < 0 )
+diff --git a/aapl/bstcommon.h b/aapl/bstcommon.h
+index 888717f..7c53ff3 100644
+--- a/aapl/bstcommon.h
++++ b/aapl/bstcommon.h
+@@ -361,7 +361,7 @@ template <BST_TEMPL_DEF> bool BstTable<BST_TEMPL_USE>::
+ }
+
+ mid = lower + ((upper-lower)>>1);
+- keyRelation = compare(key, GET_KEY(*mid));
++ keyRelation = this->compare(key, GET_KEY(*mid));
+
+ if ( keyRelation < 0 )
+ upper = mid - 1;
+@@ -373,12 +373,12 @@ template <BST_TEMPL_DEF> bool BstTable<BST_TEMPL_USE>::
+
+ lower = mid - 1;
+ while ( lower != lowEnd &&
+- compare(key, GET_KEY(*lower)) == 0 )
++ this->compare(key, GET_KEY(*lower)) == 0 )
+ lower--;
+
+ upper = mid + 1;
+ while ( upper != highEnd &&
+- compare(key, GET_KEY(*upper)) == 0 )
++ this->compare(key, GET_KEY(*upper)) == 0 )
+ upper++;
+
+ low = (Element*)lower + 1;
+@@ -419,7 +419,7 @@ template <BST_TEMPL_DEF> Element *BstTable<BST_TEMPL_USE>::
+ }
+
+ mid = lower + ((upper-lower)>>1);
+- keyRelation = compare(key, GET_KEY(*mid));
++ keyRelation = this->compare(key, GET_KEY(*mid));
+
+ if ( keyRelation < 0 )
+ upper = mid - 1;
+@@ -457,7 +457,7 @@ template <BST_TEMPL_DEF> Element *BstTable<BST_TEMPL_USE>::
+ }
+
+ mid = lower + ((upper-lower)>>1);
+- keyRelation = compare(key, GET_KEY(*mid));
++ keyRelation = this->compare(key, GET_KEY(*mid));
+
+ if ( keyRelation < 0 )
+ upper = mid - 1;
+@@ -508,7 +508,7 @@ template <BST_TEMPL_DEF> Element *BstTable<BST_TEMPL_USE>::
+ }
+
+ mid = lower + ((upper-lower)>>1);
+- keyRelation = compare(key, GET_KEY(*mid));
++ keyRelation = this->compare(key, GET_KEY(*mid));
+
+ if ( keyRelation < 0 )
+ upper = mid - 1;
+@@ -603,7 +603,7 @@ template <BST_TEMPL_DEF> Element *BstTable<BST_TEMPL_USE>::
+ }
+
+ mid = lower + ((upper-lower)>>1);
+- keyRelation = compare(GET_KEY(el), GET_KEY(*mid));
++ keyRelation = this->compare(GET_KEY(el), GET_KEY(*mid));
+
+ if ( keyRelation < 0 )
+ upper = mid - 1;
+@@ -662,7 +662,7 @@ template <BST_TEMPL_DEF> Element *BstTable<BST_TEMPL_USE>::
+ }
+
+ mid = lower + ((upper-lower)>>1);
+- keyRelation = compare(GET_KEY(el), GET_KEY(*mid));
++ keyRelation = this->compare(GET_KEY(el), GET_KEY(*mid));
+
+ if ( keyRelation < 0 )
+ upper = mid - 1;
+diff --git a/aapl/bubblesort.h b/aapl/bubblesort.h
+index bcc2fb6..f0f4ce5 100644
+--- a/aapl/bubblesort.h
++++ b/aapl/bubblesort.h
+@@ -72,7 +72,7 @@ template <class T, class Compare> void BubbleSort<T,Compare>::
+ changed = false;
+ for ( long i = 0; i < len-pass; i++ ) {
+ /* Do we swap pos with the next one? */
+- if ( compare( data[i], data[i+1] ) > 0 ) {
++ if ( this->compare( data[i], data[i+1] ) > 0 ) {
+ char tmp[sizeof(T)];
+
+ /* Swap the two items. */
+diff --git a/aapl/mergesort.h b/aapl/mergesort.h
+index 68b8426..8cefa73 100644
+--- a/aapl/mergesort.h
++++ b/aapl/mergesort.h
+@@ -110,7 +110,7 @@ template< class T, class Compare> void MergeSort<T,Compare>::
+ }
+ else {
+ /* Both upper and lower left. */
+- if ( compare(*lower, *upper) <= 0 )
++ if ( this->compare(*lower, *upper) <= 0 )
+ memcpy( dest++, lower++, sizeof(T) );
+ else
+ memcpy( dest++, upper++, sizeof(T) );
+--
+1.7.8.6
+
diff --git a/dev-util/kelbt/kelbt-0.15.ebuild b/dev-util/kelbt/kelbt-0.15.ebuild
new file mode 100644
index 000000000000..b724f138a4cf
--- /dev/null
+++ b/dev-util/kelbt/kelbt-0.15.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit eutils
+
+DESCRIPTION="A backtracking LR parser by the author of Ragel"
+HOMEPAGE="http://www.complang.org/kelbt/"
+SRC_URI="http://www.complang.org/kelbt/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86-fbsd"
+IUSE="vim-syntax"
+
+RDEPEND=""
+
+src_prepare() {
+ find "${S}" -iname "Makefile*" -exec sed -i \
+ -e '/\$(CXX)/s:CFLAGS:CXXFLAGS:' \
+ {} \;
+
+ epatch "${FILESDIR}"/ragel-6.7+gcc-4.7.patch
+}
+
+src_compile() {
+ emake CXXFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS}"
+}
+
+src_test() {
+ cd "${S}"/test
+ ./runtests || die "tests failed"
+}
+
+src_install() {
+ dobin kelbt/kelbt
+ dodoc TODO CREDITS ChangeLog
+
+ if use vim-syntax; then
+ insinto /usr/share/vim/vimfiles/syntax
+ doins ${PN}.vim
+ fi
+}
diff --git a/dev-util/kelbt/metadata.xml b/dev-util/kelbt/metadata.xml
new file mode 100644
index 000000000000..71e948fffb95
--- /dev/null
+++ b/dev-util/kelbt/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>lu_zero@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-util/kscope/Manifest b/dev-util/kscope/Manifest
new file mode 100644
index 000000000000..0b4734e48053
--- /dev/null
+++ b/dev-util/kscope/Manifest
@@ -0,0 +1,7 @@
+AUX kscope-1.9.4-actions.patch 3325 SHA256 6404f7f30657473237cb2a992baa80ef5a5aef072192dc5e2edee046464d2744 SHA512 16ac276db12297b6d7068cd4e854e45c76170062bbf83ebb2bb46a60ba198987d309186dd5f41e64567167fe69b3cd4f7f2949e94feefa9a84ea2eb27887e90a WHIRLPOOL 77b17d61798e9f961389ecf7ce2751e6736525ccc8106511cd7c19960462a64c29d849eae3baea3bda7d2561cf9946d84297d6f9c40cdf1f78a7d79ad951e1d1
+AUX kscope-1.9.4-underlinking.patch 419 SHA256 7f6992dc92e6b2afaffdc5139910b9802e39ea36086ffc6e0c7b9a0242c1e55c SHA512 8e5f4a6d07e193b99af5f174306acee35ea56c98e3c36b2e6d15367da7ce52acdbdacad62257ca61bedf7bd0978f69a58cd6c984f82b12bef0145e704e17d066 WHIRLPOOL 7051abc607de8d24489f9c72de5af47a175ae310c1c92337c820efccdb479ad7833a218c6e53b0d00d0cff8ad8c99ec8626ff9bd1453896e7c9c681a928c3a68
+DIST kscope-1.9.4.tar.gz 127892 SHA256 7bd35960afa29026f8e0c4a827868e93b4d7c6e81796ceb89f086efbc24636df SHA512 744bd8a57031c0253e37521ddc42ee1cc173bfb8490130592a1a6478525c3ea0bcc17d2c2e01adb72cc14adc96298ee69a235c16fc2a42b301de4d30ef287a3b WHIRLPOOL 9a589021253cae7625178cc3e90db9537cc795c967c45e408d10e50d305624c8dfc92208bc64331f4478b46eede5da08b2109ba42f4e990140f2736694c10d2b
+EBUILD kscope-1.9.4-r2.ebuild 919 SHA256 862a91bcdd92fab742559407b317deb8ab1a036e8f57e05905eb4f7fee3debef SHA512 7838ef1a0659c03f43bfc894526f37f3d2576860c0596ec13866f66d0d32ce52b04fa2f07c731d3ab6ab0b914f317335ded3615fd1ada2009b06da09721c8ea5 WHIRLPOOL fc0fdb018017d74362368257210daef30c0868ea3246d6c8c25f1d2401b168916fb46c81c02751610229c6352000203ec364418314fd5235ade0fdb6bfcc2b08
+MISC ChangeLog 2507 SHA256 d8462e4757e583553c375504821e7c4fb2e437d635d9a5a554e1e8eef766ec08 SHA512 933e62d1e0b072db620e12293786c3bc5210fc8fe64408df2fa8aa1e046b4722eea8aba2031b7223fd7b7937e742b6ff766a76cc66b75eb891fdca8d945ac69b WHIRLPOOL 7105059411f05da16c9e60db2e8ec32bae3945ec3fddbf9af122a4de27b636b8c43714ffcc082028e1dc1537d3dfc2c3cb02ad8fc77d6411eae3771bde7a296d
+MISC ChangeLog-2015 7095 SHA256 bec0f66e8a92ddb38d9f8e81e0f891fbfabbea2bef2932fbbf60ec426ffca2e4 SHA512 b4948cac3ca18fee2f0fae202f901dce2246d06563661f945fe3426585468768d10140d3cfed52977f4fcefaa8758ca255ac098146ee0e582b715a716039cd50 WHIRLPOOL 7312560bb6ed72eda5055e522011b235399a6b118dc526beea1194335f6c2a2340a993a74610083e2413a1982961da6cce7b7d8b716786e00b9e26e8d83a5f8e
+MISC metadata.xml 325 SHA256 35a6699316026d96174203e465a4eabb7c71f849fe217de81a78ec62069d3ee5 SHA512 3c26d8a35353553cbda8a8e3d5d5f1e25a9fa5fd2410d6db06c35b8d683d19f3aeab3002f8216ae6a9a1bd6fe125350ace83308859c2958ae17000cb70b1fefc WHIRLPOOL 3148915326b963502afab57e85b5bfa9609e9ae79f998c93c9667d15a6b104f5076a4401cabbf19711b8628143d682dcee72a2ff01fbac6ec4c05ee29a2bbc6a
diff --git a/dev-util/kscope/files/kscope-1.9.4-actions.patch b/dev-util/kscope/files/kscope-1.9.4-actions.patch
new file mode 100644
index 000000000000..d333efb0ab09
--- /dev/null
+++ b/dev-util/kscope/files/kscope-1.9.4-actions.patch
@@ -0,0 +1,90 @@
+--- trunk/app/actions.cpp 2009/08/26 13:17:03 203
++++ trunk/app/actions.cpp 2009/09/07 19:58:30 204
+@@ -264,69 +264,58 @@
+ QActionGroup* queryGroup = new QActionGroup(this);
+ connect(queryGroup, SIGNAL(triggered(QAction*)), this,
+ SLOT(query(QAction*)));
++ connect(ProjectManager::signalProxy(), SIGNAL(hasProject(bool)),
++ queryGroup, SLOT(setEnabled(bool)));
++ queryGroup->setEnabled(false);
+
+ // Query references.
+- action = new QAction(tr("&References"), this);
++ action = new QAction(tr("&References"), queryGroup);
+ action->setShortcut(tr("Ctrl+0"));
+ action->setStatusTip(tr("Find all symbol references"));
+ action->setData(Core::Query::References);
+ menu->addAction(action);
+- projectGroup->addAction(action);
+- queryGroup->addAction(action);
+
+ // Query definition.
+- action = new QAction(tr("&Definition"), this);
++ action = new QAction(tr("&Definition"), queryGroup);
+ action->setShortcut(tr("Ctrl+1"));
+ action->setStatusTip(tr("Find symbol definition"));
+ action->setData(Core::Query::Definition);
+ menu->addAction(action);
+- projectGroup->addAction(action);
+- queryGroup->addAction(action);
+
+ // Query called functions.
+- action = new QAction(tr("&Called Functions"), this);
++ action = new QAction(tr("&Called Functions"), queryGroup);
+ action->setShortcut(tr("Ctrl+2"));
+ action->setStatusTip(tr("Show functions called from function"));
+ action->setData(Core::Query::CalledFunctions);
+ menu->addAction(action);
+- projectGroup->addAction(action);
+- queryGroup->addAction(action);
+
+ // Query calling functions.
+- action = new QAction(tr("C&alling Functions"), this);
++ action = new QAction(tr("C&alling Functions"), queryGroup);
+ action->setShortcut(tr("Ctrl+3"));
+ action->setStatusTip(tr("Find functions calling function"));
+ action->setData(Core::Query::CallingFunctions);
+ menu->addAction(action);
+- projectGroup->addAction(action);
+- queryGroup->addAction(action);
+
+ // Query text.
+- action = new QAction(tr("&Text"), this);
++ action = new QAction(tr("&Text"), queryGroup);
+ action->setShortcut(tr("Ctrl+4"));
+ action->setStatusTip(tr("Find text in files"));
+ action->setData(Core::Query::Text);
+ menu->addAction(action);
+- projectGroup->addAction(action);
+- queryGroup->addAction(action);
+
+ // Find file.
+- action = new QAction(tr("&File"), this);
++ action = new QAction(tr("&File"), queryGroup);
+ action->setShortcut(tr("Ctrl+7"));
+ action->setStatusTip(tr("Find a file"));
+ action->setData(Core::Query::FindFile);
+ menu->addAction(action);
+- projectGroup->addAction(action);
+- queryGroup->addAction(action);
+
+ // Find including files.
+- action = new QAction(tr("&Including Files"), this);
++ action = new QAction(tr("&Including Files"), queryGroup);
+ action->setShortcut(tr("Ctrl+8"));
+ action->setStatusTip(tr("Find files #including a given file"));
+ action->setData(Core::Query::IncludingFiles);
+ menu->addAction(action);
+- projectGroup->addAction(action);
+- queryGroup->addAction(action);
+
+ // Show local tags.
+ action = new QAction(tr("Local &Tags"), this);
+@@ -348,6 +337,7 @@
+ action->setStatusTip(tr("Create a call tree"));
+ connect(action, SIGNAL(triggered()), mainWnd(), SLOT(promptCallTree()));
+ menu->addAction(action);
++ projectGroup->addAction(action);
+
+ // Settings menu.
+ menu = mainWnd()->menuBar()->addMenu(tr("&Settings"));
diff --git a/dev-util/kscope/files/kscope-1.9.4-underlinking.patch b/dev-util/kscope/files/kscope-1.9.4-underlinking.patch
new file mode 100644
index 000000000000..90b6fc365594
--- /dev/null
+++ b/dev-util/kscope/files/kscope-1.9.4-underlinking.patch
@@ -0,0 +1,13 @@
+diff -ruN kscope-1.9.4.orig/app/app.pro kscope-1.9.4/app/app.pro
+--- kscope-1.9.4.orig/app/app.pro 2009-03-14 12:45:48.000000000 +0100
++++ kscope-1.9.4/app/app.pro 2011-08-07 20:33:04.540575855 +0200
+@@ -58,7 +58,8 @@
+ -L../cscope \
+ -lkscope_cscope \
+ -L../editor \
+- -lkscope_editor
++ -lkscope_editor \
++ -lqscintilla2
+ RESOURCES = app.qrc
+ target.path = $${INSTALL_PATH}/bin
+ INSTALLS += target
diff --git a/dev-util/kscope/kscope-1.9.4-r2.ebuild b/dev-util/kscope/kscope-1.9.4-r2.ebuild
new file mode 100644
index 000000000000..a1d3783410eb
--- /dev/null
+++ b/dev-util/kscope/kscope-1.9.4-r2.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils multilib qt4-r2
+
+DESCRIPTION="Source Editing Environment based on Qt"
+HOMEPAGE="http://kscope.sourceforge.net/"
+SRC_URI="mirror://sourceforge/kscope/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="4"
+KEYWORDS="amd64 ~ppc ~sparc x86"
+IUSE=""
+
+RDEPEND="dev-qt/qtcore:4
+ dev-qt/qtgui:4
+ x11-libs/qscintilla:=[qt4(-)]"
+DEPEND="${RDEPEND}"
+
+DOCS="ChangeLog"
+
+src_prepare() {
+ sed -i -e "s:/usr/local:/usr:" config || die
+ sed -i \
+ -e "s:\$\${QSCI_ROOT_PATH}/include/Qsci:& /usr/include/qt4/Qsci:g" \
+ -e "s:\$\${QSCI_ROOT_PATH}/lib:& -L/usr/lib/qt4:g" \
+ -e "s:/lib:/$(get_libdir):g" \
+ app/app.pro core/core.pro cscope/cscope.pro editor/editor.pro \
+ || die
+
+ # fix build failure with parallel make
+ echo "CONFIG += ordered" >> kscope.pro
+
+ epatch "${FILESDIR}/${P}"-{actions,underlinking}.patch
+}
diff --git a/dev-util/kscope/metadata.xml b/dev-util/kscope/metadata.xml
new file mode 100644
index 000000000000..4fc15baded9e
--- /dev/null
+++ b/dev-util/kscope/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="project">
+ <email>kde@gentoo.org</email>
+ <name>Gentoo KDE Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">kscope</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/kup/Manifest b/dev-util/kup/Manifest
new file mode 100644
index 000000000000..45528688d563
--- /dev/null
+++ b/dev-util/kup/Manifest
@@ -0,0 +1,5 @@
+DIST kup-0.3.4.tar.gz 45996 SHA256 2a7f96084ca241e7d5ed5aa11dee8c04422b84645b05091ac5512b09ca0d03e2 SHA512 fde61de2978f8ba76c4b89a84313aa8b8651cc2610b1512ba1d662fbd0675f269959dd66ef5e1e0ce216ba66e12f5735e58bb36f4ba1a14d90269da1a6fcee46 WHIRLPOOL 29fbade9007be2ec3ba71861e10af228a3684e6486aafeed311806fb0088baf2c67999da30a65bc716ab1ed877cfced0bd2c81a46371875366615efb61531e41
+EBUILD kup-0.3.4-r1.ebuild 523 SHA256 ac21ba2148aa4eff7fee75e16e737c4ea7360043a85967dc7b3cd31a4e532825 SHA512 ba60bc80430a22b7419defee12354ed8eae157fe59d97447b5dd074f0805c82db1070a762590431439b15e2a57c18a1e5b07b86e8a667d8a4208ab1e5ab1a3a1 WHIRLPOOL a5c787f6cd16df21c5bd6165a45197ddfb0b14cb238543df9edead56853197d31c1b975c55f8bd6faef0f7784f279e5a13592c97dd05a4a3b2cd3d93ab78ae0a
+MISC ChangeLog 2445 SHA256 4aadc884f6f06f1a2f7f3513a14ea9dbbbc0c93afe570da6f229da7af7517a0e SHA512 7ea25567c5f6a685a044056c28d248b6c5ff51ae0136af15d50fc123501aabe9b4c962d30bb1e55bea8e78c79afd7d61305d237b244aaa29d5a9794430886175 WHIRLPOOL 4810200ff5201abf2631741bdfe9cf4a50d77d0a091e70bdac5472096e8ef008dd3a3df1c911885200f9e9341daa182ba4332e42730b3f21122fb3fe0babb6f2
+MISC ChangeLog-2015 878 SHA256 74bb72c9d864a2513f8a475184a86f788bfe810b960a8c9d91938feff6b4f688 SHA512 38e116c5a01d9a9a0dd9bec01d10f291409e06badc15750fb8d7e57aca9276cd0bf16827924348381c1128b6f8b10c220062a8be5ae59c81a2bd2a387ac6565e WHIRLPOOL b2d8d3d239fa3658bc84241f654d8ddd9d63ce9065cc738de1fcbeeebf02b97f6a71a26026449f57958fd41e5bae0d057b8b4a550bdcef4c4ab7ef9d62e2955d
+MISC metadata.xml 224 SHA256 ac3edf52832f461791959c8bdcd28822502e10ec02f961682dbda42216f9b1a4 SHA512 50fd033081cbd709e8dbd3441700c8301309ccfbf81200ea387916a3e95d88b231748df77c3f6ec62207d02fc268d4841679374e06abee36bf196eeecfac64e5 WHIRLPOOL 3166e67c06c16ee2b8eb9b37606a674b674e49524d82cd9c987fab4e039adc11639f38762e803781aa95ce3cf16d7c9188cc3286b17d25d7601cef98bf45024d
diff --git a/dev-util/kup/kup-0.3.4-r1.ebuild b/dev-util/kup/kup-0.3.4-r1.ebuild
new file mode 100644
index 000000000000..54b8b1a1e82a
--- /dev/null
+++ b/dev-util/kup/kup-0.3.4-r1.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils
+
+DESCRIPTION="kernel.org uploader tool"
+HOMEPAGE="https://www.kernel.org/pub/software/network/kup"
+SRC_URI="mirror://kernel/software/network/kup/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+ dev-lang/perl
+ dev-perl/BSD-Resource
+ dev-perl/Config-Simple
+"
+
+DOCS=( README )
+
+src_install() {
+ dobin "${PN}" "${PN}-server" gpg-sign-all
+ doman "${PN}.1"
+ einstalldocs
+}
diff --git a/dev-util/kup/metadata.xml b/dev-util/kup/metadata.xml
new file mode 100644
index 000000000000..0ae91bddd943
--- /dev/null
+++ b/dev-util/kup/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>monsieurp@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-util/kyua/Manifest b/dev-util/kyua/Manifest
new file mode 100644
index 000000000000..3508350373f7
--- /dev/null
+++ b/dev-util/kyua/Manifest
@@ -0,0 +1,3 @@
+DIST kyua-0.13.tar.gz 663776 SHA256 db6e5d341d5cf7e49e50aa361243e19087a00ba33742b0855d2685c0b8e721d6 SHA512 80ecf4fd888d4759122f3c1d1d5b06a19135e06f7bca1ef8458c7a5e78c1b6baff54969c863c93f11c40611ca256fc0334402531397b16788fb3ec701dd278ae WHIRLPOOL 565f34704941b704fdbd92f441fc85a479322480a005df9999bb1f9c22f155cfe3e3d6d7675f06a4c9618c05accdc4bc753b95464a4dce8d1bcc4bcca687dcfa
+EBUILD kyua-0.13-r1.ebuild 531 SHA256 56aa1e1a07b1ff51f20505c1c40fce950b10302de256a68e3042a67e0f942d95 SHA512 f9e1e8ed3b44cf2e17e4bd2b939ad37d5944b45d51de6406cb5e2630ab603158fefa21ae35b7c4f37a7567354b9e7ea18f050f1acfb9026a4e6240c1aa69108f WHIRLPOOL ceb82a4e0874a92ba76b92b82b3f9974b17cfa76d4a49063cc9b277866fde049f9bf0468577630139cf771d9ec41faa71a370c0a7ddbfe8bacdb97c1549b1378
+MISC metadata.xml 246 SHA256 87fa83ef14035e5fbb6dac93f3d4afd4085e971aab6d7401ac2b6bed9e5eb84d SHA512 b6df287a6e1f18bf267a05d8eb6dea788ae7ec74de31d9cea76fea038e4090c6a83d62221505d280d55e9b314d059c409e442951d78eb3a58928307ff118147b WHIRLPOOL 1e17af59af785717b26fdd3df4e84788475fa23ad410fc7a9214c0b86c57b80b54cd66742f44ef0a29d9c96611842d57d833d41568a4859b3e2fe491d691d55a
diff --git a/dev-util/kyua/kyua-0.13-r1.ebuild b/dev-util/kyua/kyua-0.13-r1.ebuild
new file mode 100644
index 000000000000..283f409fd938
--- /dev/null
+++ b/dev-util/kyua/kyua-0.13-r1.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Testing framework for infrastructure software"
+HOMEPAGE="https://github.com/jmmv/kyua"
+SRC_URI="https://github.com/jmmv/kyua/releases/download/${P}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 arm ~arm64 hppa ia64 ppc ppc64 sparc x86"
+IUSE="test"
+
+# Tests fail
+RESTRICT="test"
+
+RDEPEND="
+ dev-db/sqlite:3
+ dev-lua/lutok
+"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ test? ( dev-libs/atf )
+"
diff --git a/dev-util/kyua/metadata.xml b/dev-util/kyua/metadata.xml
new file mode 100644
index 000000000000..de09ffd8b089
--- /dev/null
+++ b/dev-util/kyua/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>floppym@gentoo.org</email>
+ <name>Mike Gilbert</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-util/lcov/Manifest b/dev-util/lcov/Manifest
new file mode 100644
index 000000000000..b54b03224579
--- /dev/null
+++ b/dev-util/lcov/Manifest
@@ -0,0 +1,10 @@
+AUX lcov-1.9-gcc-4.7.patch 1035 SHA256 76826522239ce354738de8c6adaf2face028eb42a7516525c4fa2375bbf55fe5 SHA512 c9d1a80ead5ed8de91fdac4ac3b7b8d8cbcf245f38276c91551a4f74942ff348947fbbd4b4a3fa171fd90ea240ffea8f4b162ca9eab2a929a7daa2eb0834f307 WHIRLPOOL 683b53a1e7d0d9ea1204b5b5eabba7a4de45a1805f1489ae3901a2b79123803300f3b758358e55a672b5ed92ff00dc642a5e61bee344f44b963516462fa2e8ad
+DIST lcov-1.11.tar.gz 155906 SHA256 c282de8d678ecbfda32ce4b5c85fc02f77c2a39a062f068bd8e774d29ddc9bf8 SHA512 db42256c7fbe00d17256ad4944b7e658e65f2dc2b9df1814e25d46a652e92a0ff8bacd4e68de743681df22f4352ffc82b3ccdc0a85723546d7eb64c92e28c0fe WHIRLPOOL 8309d97546a228e3c2c6a4cb95d2dc409be1dde46bd96821c83c3a8105e7026a64b2121f954fbe569f99a70ae4de3b936d7199ff8099bdedf3aee29ba684b3d0
+DIST lcov-1.13.tar.gz 156709 SHA256 44972c878482cc06a05fe78eaa3645cbfcbad6634615c3309858b207965d8a23 SHA512 54033c0f99dbf7b332fcd70730df8672713ffc36c010809353dfd83a73fcc4f504b6a68e3b5010002d6992da5fa940a7d5f4e03dc3fe6930ab713a7b980dff9e WHIRLPOOL 82a812b8879b8738b237fb0c21f9ca5f4bf2aafe480ab17416d74243a01acb21704a61dfe7c57a99a484d725a230e96f2b5c7c274a866d1a728c9c284956e0b1
+DIST lcov-1.9.tar.gz 140035 SHA256 c37e125d4f0773339de3600d45ad325fe710ea2f0051d7ee2b8a168f450f1aca SHA512 518f068d5eb4a805985863e7b755ae16b1b2ebb9e42cc57c5cda20a60f22e170c1e2957692086e5eeabe12ddbcf39132494aa2ea7ce33411e8abeddc759852ee WHIRLPOOL 2b7e6f1d743ded96e3ecc16c7733b8c76fccbf0aff07a02c02f3e3e08c9fb8f85aa35d4258830f17291fa5d4eedc554c808528b4158919c65439f524c5fd78c7
+EBUILD lcov-1.11.ebuild 574 SHA256 7c1adb36172da2db3000d19586122cb09272e45e5e758a2ccffbece35b030267 SHA512 a5559fb75533fa53ec54edc0262fac5582b68ca42b66b4dcb7b708e69032eb63c7fffb94af629113d50ff2598166853ed19c489ebfbddafada4fe88e0ea4f3bb WHIRLPOOL 2461ce21d68e626306ce72fd8ff010237482b6a63b85716ca8c84620eefe72c717a29bcaac9f9daeb21cb47557627e78644c7f4550983841f40f63e9a8738042
+EBUILD lcov-1.13-r1.ebuild 569 SHA256 89c6438bdb15ab326bf6027acd53ed6b1ce6271f3731211c54de830438da40b8 SHA512 d26302b58079d7545b7d45a867c456637bbd23be4305aee4591d21a790432c248a946b3a4be1229d26c250437dfcec536fd1500b804cb13617cc1a3cd30c269c WHIRLPOOL c24580ab3f3cb166972b861305587641f22fb87dc5b7150640003e7a20305c819c0dfe3d121f7a9700528a396760cc23ddb18fb54f239f1c5b17aa95105e1ff1
+EBUILD lcov-1.9-r1.ebuild 590 SHA256 aaafd2e1ef0aed4a78730575d2f3b4e88278986b5fd98f49d6bb6a6f13820aaa SHA512 856522fb69c0e251be261b07a82b5fbdf935f41aee6d4cd7f2b5709cb0c0877c1686b578d45cc4857169fbd0735ddc0fbb8475b6fa8156325522d4be101b72e3 WHIRLPOOL 9decfc57fdab054cc36ef1704a86c42ec81c4d3c5b73bbd7c379cf96ca5e501417cc5151c757d4549c87cc8a15cc6fbba7ef6d6c6601c784676b642ce0fafccf
+MISC ChangeLog 2570 SHA256 0bda9f0534b226e752930ca9dcf5d1cb54f8dd6735012b8837b95ded1d57283d SHA512 e2dd51f59a2802f157390d42e0ad5df9a2df6dc6b50e51c184c20f65c536b7d26c89510b7d3c394988bd456d27766c1f4e409da97919a84302b16b1281323179 WHIRLPOOL 0cfdc76c45df58196a486fe6d858d09520a0db28898f3d74a188ed51b9a1459549f541db905d49a2b691fa09384feac2aba753350b83402ab00157987965b757
+MISC ChangeLog-2015 3022 SHA256 ff8b5ed2b9ba7fde44ba81fbfc0c6b64218ed0f463e759614b50b3c191f8c069 SHA512 7b283c313dfb2caad6e4e9ebf624e2a1256a2a39da355b5a25af4a695ab3357faf3d69072efe56bd1fd8284f7b5a45c294e4422a7307bf381f89e193c0aa2583 WHIRLPOOL 3be345df2c3d486b50aa27258722a15947d62e8fbb9b69d4be42d7fd3751f478d8449cb8a72f4856d8d6ec8b5e252de12d6fd2b1c5c635ba5b55966e4ba9bf03
+MISC metadata.xml 506 SHA256 0ada7277938dadbc1f4f991317f2ef4a165c4c6ed66f5a2c6e03beb81c2b5e36 SHA512 fca559ff151bdcf06a1095094af6104e17d2c6b3408362a9ed8ac4138fd7e6164fdabb726e1eb6e2ffb740857c2e92d78974fdb8099f04c69672829aee18f270 WHIRLPOOL b86cf302343102f3d6c42c808008a7efa0abfc1ac77b2efb0d72ae13d27d61f755d04f674e5c218351ea1bdf5e97b5298e98f4024f241d2f6836aa588f38a886
diff --git a/dev-util/lcov/files/lcov-1.9-gcc-4.7.patch b/dev-util/lcov/files/lcov-1.9-gcc-4.7.patch
new file mode 100644
index 000000000000..1b9d6ac0ff21
--- /dev/null
+++ b/dev-util/lcov/files/lcov-1.9-gcc-4.7.patch
@@ -0,0 +1,29 @@
+fix from upstream to work with gcc-4.7
+
+Index: bin/geninfo
+===================================================================
+RCS file: /cvsroot/ltp/utils/analysis/lcov/bin/geninfo,v
+retrieving revision 1.95
+retrieving revision 1.96
+diff -u -p -r1.95 -r1.96
+--- bin/geninfo 20 Jan 2012 11:53:57 -0000 1.95
++++ bin/geninfo 10 Apr 2012 11:48:52 -0000 1.96
+@@ -61,6 +61,7 @@ if( $^O eq "msys" )
+ our $gcov_tool = "gcov";
+ our $tool_name = basename($0);
+
++our $GCOV_VERSION_4_7_0 = 0x40700;
+ our $GCOV_VERSION_3_4_0 = 0x30400;
+ our $GCOV_VERSION_3_3_0 = 0x30300;
+ our $GCNO_FUNCTION_TAG = 0x01000000;
+@@ -3023,5 +3024,10 @@ sub read_gcno_function_record(*$$$$)
+ graph_expect("function record");
+ # Skip ident and checksum
+ graph_skip($handle, 8, "function ident and checksum") or return undef;
++ if ($gcov_version >= $GCOV_VERSION_4_7_0) {
++ # Skip extra checksum added by android 4.4.0 / gcc >= 4.7
++ # toolchains.
++ graph_skip($handle, 4, "function extra checksum");
++ }
+ # Read function name
+ graph_expect("function name");
diff --git a/dev-util/lcov/lcov-1.11.ebuild b/dev-util/lcov/lcov-1.11.ebuild
new file mode 100644
index 000000000000..83edb27798aa
--- /dev/null
+++ b/dev-util/lcov/lcov-1.11.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+
+inherit eutils
+
+DESCRIPTION="A graphical front-end for GCC's coverage testing tool gcov"
+HOMEPAGE="http://ltp.sourceforge.net/coverage/lcov.php"
+SRC_URI="mirror://sourceforge/ltp/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~m68k ppc ppc64 ~s390 ~sh sparc x86 ~x86-linux ~x64-macos"
+IUSE=""
+
+DEPEND=""
+RDEPEND=">=dev-lang/perl-5
+ dev-perl/GD[png]"
+
+src_compile() { :; }
+
+src_install() {
+ emake PREFIX="${ED}" install
+}
diff --git a/dev-util/lcov/lcov-1.13-r1.ebuild b/dev-util/lcov/lcov-1.13-r1.ebuild
new file mode 100644
index 000000000000..8baf9478f95f
--- /dev/null
+++ b/dev-util/lcov/lcov-1.13-r1.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="A graphical front-end for GCC's coverage testing tool gcov"
+HOMEPAGE="http://ltp.sourceforge.net/coverage/lcov.php"
+SRC_URI="mirror://sourceforge/ltp/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-linux ~x64-macos"
+
+RDEPEND="
+ dev-lang/perl
+ dev-perl/GD[png]"
+
+src_compile() { :; }
+
+src_install() {
+ emake PREFIX="${ED}/usr" CFG_DIR="${ED}/etc" install
+}
diff --git a/dev-util/lcov/lcov-1.9-r1.ebuild b/dev-util/lcov/lcov-1.9-r1.ebuild
new file mode 100644
index 000000000000..d46f47b86bf8
--- /dev/null
+++ b/dev-util/lcov/lcov-1.9-r1.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+
+inherit eutils
+
+DESCRIPTION="A graphical front-end for GCC's coverage testing tool gcov"
+HOMEPAGE="http://ltp.sourceforge.net/coverage/lcov.php"
+SRC_URI="mirror://sourceforge/ltp/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~arm arm64 ppc x86 ~x86-linux ~x64-macos"
+IUSE=""
+
+DEPEND=""
+RDEPEND=">=dev-lang/perl-5
+ dev-perl/GD[png]"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-gcc-4.7.patch
+}
+
+src_compile() { :; }
+
+src_install() {
+ emake PREFIX="${ED}" install
+}
diff --git a/dev-util/lcov/metadata.xml b/dev-util/lcov/metadata.xml
new file mode 100644
index 000000000000..6657b444b7b3
--- /dev/null
+++ b/dev-util/lcov/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>marbacz@gmail.com</email>
+ <name>Marcin Baczyński</name>
+ <description>Proxy-Maintainer. Assign bugs to him</description>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">ltp</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/leaktracer/Manifest b/dev-util/leaktracer/Manifest
new file mode 100644
index 000000000000..2aaff4fcab48
--- /dev/null
+++ b/dev-util/leaktracer/Manifest
@@ -0,0 +1,5 @@
+DIST leaktracer-2.4-gentoo_p2.tbz2 11957 SHA256 21ed81f47654ae03211c1ee0655bf0f1d5cdbe433fbe3424d0b4738506deced8 SHA512 12f348564933c8cf372208f846bb21b175f041e7687811e9c6ce8062e7f285b9d2395e7853a20df11d9b0d5b8fff89efc76ccbac9f8b7c0bc4fd4ea25d476718 WHIRLPOOL 16cf715ad6d5690040d59c913ba9360249842de587ad57fa2e4182614fba10ffdf5850cf9d80f09a692f3064ed7f3af59f80e0aa3ba73ee219855d34af60abcb
+EBUILD leaktracer-2.4-r3.ebuild 1386 SHA256 962b0fd023cc72e861f62ab1a55b1177337eaeb176038239518c50a26a5c466d SHA512 63bd2edad6fbdd6c710c0bac526b386a787c72aec151f6470ea11081f807c771d4bd797c3ecfcf71493380e35893a9bb279f6d13473a9a02fc1d6a54889df992 WHIRLPOOL 47cc0eb0d20892a434836d87246638475b1386fafa0023e242e49ec6acac3e9b9796657388e2287d13438c387289c0ac7f846f83983c7cde0e3bb83931197fa7
+MISC ChangeLog 2973 SHA256 c1da9057d2c1036ae884449ca3b0e04590890e510fd9cdfebc6e7b9bd42afd72 SHA512 92199f70e8a7aca51256ba87eb14dd7a92b065f5d590aa4c14908ca5eba85e2e2b303f3e48fc4a7636211bb9c5a533af264198ebdbc07da1a81493e7df0f6429 WHIRLPOOL cd8307fc8da547a9e07624ff5e9dc0f74446848b641af3801459fa9e991608aa3727717732dfbecb04a02e835b97626c475e5967e52a0fa01649f4da7da182f0
+MISC ChangeLog-2015 2331 SHA256 0610f1ccaf2de109a29c36a574dbabe4d936a29aeeb371498c85c7f61877f50b SHA512 e95b3292ed33786f69746507fa71c6ea3852b0dc5f45164433e9d1eb1c006d2dc3b253b6bfcec30b0b1c9f721a5386fd9e03e78060bbc98080d70358249223f1 WHIRLPOOL f39a41c202ad03d167426ec172aae18568976bbcae8b243fd93bc6a377f589d1a63c027936629af6d01bc5dc849728c8eb2760e0e9407648421522eb920ba156
+MISC metadata.xml 245 SHA256 2d55ae4b33723b881e2cd48221560da36aec5b304b8bf2b440a9e2588875dba9 SHA512 b098db4fb4d9ea116f6246bc6caf0f49e80e236d2fad78d287b638dbd5add7bfaf7feb1ca081ca557b23dde9227ce42fa808f3f6fd8eaba6a7e9cae93342f9c6 WHIRLPOOL edd2e34ed3775c96bf085c9c0a95bd448028cb5ba6a2bfa7d7253b54878c888b62fa579483265c47c2602ca454fd656d32346eaa7351067cc3a36295d1e1e861
diff --git a/dev-util/leaktracer/leaktracer-2.4-r3.ebuild b/dev-util/leaktracer/leaktracer-2.4-r3.ebuild
new file mode 100644
index 000000000000..9312217fb988
--- /dev/null
+++ b/dev-util/leaktracer/leaktracer-2.4-r3.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit toolchain-funcs
+
+# Upstream-package has no version in it's name.
+# We therefore repackage it directly, together with the patches.
+PATCH_LEVEL="2"
+
+DESCRIPTION="trace and analyze memory leaks in C++ programs"
+HOMEPAGE="http://www.andreasen.org/LeakTracer/"
+SRC_URI="mirror://gentoo/${P}-gentoo_p${PATCH_LEVEL}.tbz2"
+
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+
+DEPEND="dev-lang/perl
+ sys-devel/gdb"
+RDEPEND="${DEPEND}"
+
+# leaktracer is being realized using LD_PRELOAD and segfaults
+# when being run in the sandbox and the library is _not_ in
+# /usr/$(get_libdir) which is not possible before installation
+RESTRICT="test"
+
+src_prepare() {
+ eapply -p1 "${WORKDIR}/patches/01_all_gcc-cflags.patch"
+ eapply -p0 "${WORKDIR}/patches/05_all_libdir.patch"
+ eapply -p1 "${WORKDIR}/patches/15_all_printf.patch"
+
+ sed -i \
+ -e "s|%LIBDIR%|$(get_libdir)|" \
+ LeakCheck || die "sed for setting lib path failed"
+
+ eapply_user
+}
+
+src_compile() {
+ emake CXX=$(tc-getCXX)
+}
+
+src_install() {
+ dobin LeakCheck leak-analyze
+ dolib.so LeakTracer.so
+ dodoc README test.cc
+ docinto html
+ dodoc README.html
+}
+
+pkg_postinst() {
+ elog "To use LeakTracer, run LeakCheck my_prog and then leak-analyze my_prog leak.out"
+ elog "Please refer to README file for more info."
+}
diff --git a/dev-util/leaktracer/metadata.xml b/dev-util/leaktracer/metadata.xml
new file mode 100644
index 000000000000..41cd682e0ecf
--- /dev/null
+++ b/dev-util/leaktracer/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="project">
+ <email>cpp@gentoo.org</email>
+ <name>Gentoo C++ Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/dev-util/linklint/Manifest b/dev-util/linklint/Manifest
new file mode 100644
index 000000000000..ceaa2d5dfbfa
--- /dev/null
+++ b/dev-util/linklint/Manifest
@@ -0,0 +1,5 @@
+DIST linklint-2.3.5.tar.gz 113256 SHA256 ecaee456a3c2d6a3bd18a580d6b09b6b7b825df3e59f900270fe3f84ec3ac9c7 SHA512 723aa5be27c563755ef488bb586eabcd8ef92569f5391be988b19317da6fc93983ad1231d650a07728face0af01c80ada4b1867de81be9cd27952a762dc41e73 WHIRLPOOL ed97cf826661fe500efa20857581d358dafc074e58edc249c39b1c6ae98f84702f90347ea919ba69ac9797710781f59cc03ac34cd3b75fd6598ca5a3fa8e6bfd
+EBUILD linklint-2.3.5.ebuild 522 SHA256 0b16510a09ae1137cb3b7a71b06a7d7c38fe49150853eb03be69acbe487b1c83 SHA512 f2783bdaccb54790ebee97c3caa4a2fa71600a5f0984f75d8b1b394e368799d412b158850ce0b6dcc82eb2ebb74be8d51050f48c7ef50495ac11e677bbc70ee1 WHIRLPOOL 6c1b718083c235df7fe6455b50d60fda0813706bd623043100aadd8969613a011bfbfb32ef072d5a7a6fdd97463df61ff315a043f56c20d0b6f6800f1d23e704
+MISC ChangeLog 2525 SHA256 323736860347d7f492778e3c73d439203c989ebde3d2f848a315ea2a458d0739 SHA512 b6b23efe1b090503b23a4c30707658ecf3a705065d4cdc78056ca7dee59d55ceb5e5dc1c664846cec368721c2515309367010e35cf52d87d4314fe740b77050a WHIRLPOOL 4a10b2f7f18ea4a4419b1398fd018ce791e0d1468af39fd701534133aad7b73ad3b00518be6cbc4425d0c6c8f5ec06713e47483998dbd9f12dda479a274119af
+MISC ChangeLog-2015 2004 SHA256 0c7ddcf08e5cb150f5b38a2748fb1a357c7901cebe333ed61396cbf0d3a2552b SHA512 75c0bc1440e2b027f48ecace7c920d30d206cd921b6abcf918c1ba147423406f11d34cdac8dd58a3c82ed0bedfd513534b6eca32c4de95af17bdff5f745cc9a0 WHIRLPOOL 38bc1c6c3c450e5afc9edfe0b69cc67cabe694fb060be36491fba01a5163d73a6d9303d21bd458f8ef84d2823d018584f6535867e78c43bb1cef9014a62deadf
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/dev-util/linklint/linklint-2.3.5.ebuild b/dev-util/linklint/linklint-2.3.5.ebuild
new file mode 100644
index 000000000000..b2b7b1a9e14d
--- /dev/null
+++ b/dev-util/linklint/linklint-2.3.5.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+DESCRIPTION="A Perl program that checks links on web sites"
+HOMEPAGE="http://www.linklint.org/"
+SRC_URI="http://www.linklint.org/download/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
+IUSE=""
+
+DEPEND=""
+RDEPEND="dev-lang/perl"
+
+src_install() {
+ newbin ${P} ${PN}
+ dodoc INSTALL.unix INSTALL.windows READ_ME.txt CHANGES.txt
+ dohtml -r doc/*
+}
diff --git a/dev-util/linklint/metadata.xml b/dev-util/linklint/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/dev-util/linklint/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/dev-util/lldb/Manifest b/dev-util/lldb/Manifest
new file mode 100644
index 000000000000..b828b90cec86
--- /dev/null
+++ b/dev-util/lldb/Manifest
@@ -0,0 +1,12 @@
+AUX 4.0.1/0001-test-Fix-finding-LLDB-tools-when-building-stand-alon.patch 4415 SHA256 4f3cb14bd03e403c7be34e4fb0a6780334fb59f0be90f44536c152f8dd1a0b65 SHA512 9aa4a9618696d97b523e758725619a6cb6d4ca74058147185383b32ddc7db348bada379ad8c567a66a4bebd982c4e039aaae14ba44336408340378735c0b069c WHIRLPOOL 92ddcb08cb2cf87bf961aa1719c7a96628908bf78d98193b3eaaa583be1a6e9e191a0d84c2084a5541bad6a5db072e35e689370c074e1fe7ac42dcbbbe48a53d
+AUX 4.0.1/0002-Fix-bug-28898.patch 3526 SHA256 740390057e85995a1ad45c654c4e335cda697c93d1c5c63c64312772052c376e SHA512 8a9167ba1b17bb6d373fd41755ce4436b199fb48a47e303bff4020a79f90c547ae3ca86525345c55536bdc03b9c3853baaebdf914df04ae92901a073ae5658aa WHIRLPOOL ad5127bd629d65923cfb57e5fac4ac9ad20e8866a2b253343dd36343df8e76439f412f39acbfff8296b44e5a20ce3da020a0e3b36364422819143fe8825dec3b
+DIST lldb-4.0.1.src.tar.xz 19088212 SHA256 8432d2dfd86044a0fc21713e0b5c1d98e1d8aad863cf67562879f47f841ac47b SHA512 1d94d7dfcc0614b16d0ef83436bbe814b39e34ba18394361bb9f13ad408ae9b29affa9a5d58c50c8dcd83765a39ae4d59ffabb7d8cd1358fd2fbd198b2de2ab6 WHIRLPOOL d7897416b89c683702bec9bd244caa911e24e5801270b64b119caf0e617f4bdc714d10bcea3963f229273d040ffdebcb8c5737a71ca17fc92e2bbbf93af002bb
+DIST lldb-5.0.0.src.tar.xz 19203772 SHA256 c0a0ca32105e9881d86b7ca886220147e686edc97fdb9f3657c6659dc6568b7d SHA512 bc70953c7f6b3f0bc797461fb53d9c60c5ab36c0b9aae815a3c37fc597a61c7220695ee3b60a9682486d2e4713c5f78ea85e853e13c587e356510a1c99a62ba9 WHIRLPOOL 25b88b8b0678afe5aaf9e108dd154b874defc63ff41c48a495c91b98a22844e614142e2240515d9996d794ed5322aec26c977ed156cc2d5081ffe5a0c0999cd3
+DIST llvm-4.0.1.src.tar.xz 21065652 SHA256 da783db1f82d516791179fe103c71706046561f7972b18f0049242dee6712b51 SHA512 16adc39b34ddb628f81b171119a8e2a0e9138b25011e803ef0b688e2fbea116fc4953d3a1b61b90a98a75e33619f81566b7cb06a9a2ea4d04ac5e0eb303a2d1d WHIRLPOOL 1626ff270f7ce4801d02a0797b227fda9314ff5c0c01d653111599e9a4d2854c4d9edc3c698a7abee8d79d6bce8b18dc619fbced3c07ca610d44a248d65830cc
+DIST llvm-5.0.0.src.tar.xz 23411980 SHA256 e35dcbae6084adcf4abb32514127c5eabd7d63b733852ccdb31e06f1373136da SHA512 e6d8fdcb5bf27bded814d02f39f69c6171bc3a512d5957c03e5ac2e231f903b7de87634b059bd5c5da670f7c3a8f7a538f6299225799f15f921857f1452f6b3a WHIRLPOOL 6a99edbdc3e6726dc8ff9126b110fd7560faac46601407722e6dd80b5d894ff242521dc8fda7f4d879de83dac51c65645a37224f7e8def0d8d2f1e564b0531bb
+EBUILD lldb-4.0.1.ebuild 3061 SHA256 2b5344d52b42017c07f98399302b4f9cb0283737baa273e905e0c980976c051c SHA512 d88dc965435cddf490e5fb7ba36ecb43cdc3c4ecf5865d531f3141f40226bba0cc63ff604d62e8e1d436da2c48c4f5a435e0561f265b0e2961423770e9edc43a WHIRLPOOL 8b71979e005adbdd507c4adef7f5fab0555a3726178c7197dd635bc265b29f011c50eb03edae04a04f7387aa62bc317a6975cde5baeb42aa79e07e88e38c3f65
+EBUILD lldb-5.0.0.ebuild 2811 SHA256 84ebaf8be3ca7cfb2538ea2aa360d099c6dd665a43fe2bee3d193c0070abb253 SHA512 e4b38ef25db0a8b764bc7b1540190024557ddafcae6613d3c55fb98b67ca72a922b5224b8f65144050cc3055418bbde6769ae30bd90cb5d30083c018e1fee8f4 WHIRLPOOL 3f70c4841d689de7861a6eae5a4b01b999e9a67311741f989462334805d8991110539f4d39a4988a5d6b8008f77e92d60b7200e372aa80df096f0221f995a117
+EBUILD lldb-5.0.9999.ebuild 2979 SHA256 65d38020b4bdc857d948160870a708d8a052c0d9c236765f6e6d7b6fc28e104b SHA512 46a0d9d7cc2d495037134f0ba7fd3538c974d9d1ba01290f893d2dddec4ab92905fb05c070a9b475f0a6d28c8fb132172784918ff03eccc0b2472573df05fbcd WHIRLPOOL c0948a0c48049a4e8e68305bcd13e650df058291e3bfd62f643f2401a2425bb98a9263a8f76c0012dc23b13255c8f3359ee78d484936c675401abc9d37cb72dc
+EBUILD lldb-9999.ebuild 2960 SHA256 a93f53f6edef42d3e11e40fba7633116c99a0566030e4d25c0c2ecf31b89a2ff SHA512 9b0d27b2508d5814ac7643bf17bccba07ce3fbdddf1708e96971116b2640d6fe84642ff6356acb5f1245cbb614e93ab888c106dc063efc42a3eb87ce5d98ed9a WHIRLPOOL dc1fa2b7ef45c0fb8e7234a7c2edba0091c882ded2783d5da8abbe0a7512e3149e6b9cf489ffb172e23286df92c1ab4fb8f71b215ffeab57166b960bba508796
+MISC ChangeLog 896 SHA256 45fa8891008f733b1dc64963fcc074d79d910d3fa0247a5363c27a5629c28657 SHA512 0b80df074c10b4b65da01b02444386ebdd8f495605de7adc0ef57e8c40eb8c59b888d3d3b85bbc49d351715062b04e1d55ee304b3572592fef62c262546ed092 WHIRLPOOL 6c45ed0905574bb8ad09f56c073d35c1909f542704f6fced3a068e25e7ca00316d4659d5ed36d6a84b812a2a249c7cb9b5ff4764cc10eb9581690406dab761d5
+MISC metadata.xml 216 SHA256 e94ba81dd2791908508a3993afdebf723cc617314c53c273b9bcca15a9c48327 SHA512 3485598147c953e72e1785693a489a7e7d73d59620b76054db9c0ce95d8bfa0e8ffec29da7f7a9d73a32e5b77eac07ca3306c56a972dc57fd89d477edaebf3d5 WHIRLPOOL 29145f5721e079e0548c5ef22424c65e6a5b2bfc4428918e923fcfdfc37e9b8749fb63e3c2eb5773c17fab276f7513dd66e326b906f1848911dceba7ae4b419a
diff --git a/dev-util/lldb/files/4.0.1/0001-test-Fix-finding-LLDB-tools-when-building-stand-alon.patch b/dev-util/lldb/files/4.0.1/0001-test-Fix-finding-LLDB-tools-when-building-stand-alon.patch
new file mode 100644
index 000000000000..1b183d860a2d
--- /dev/null
+++ b/dev-util/lldb/files/4.0.1/0001-test-Fix-finding-LLDB-tools-when-building-stand-alon.patch
@@ -0,0 +1,102 @@
+From 6a9aab954c32a2d3d13a0fe5fc984e9787e9f794 Mon Sep 17 00:00:00 2001
+From: Michal Gorny <mgorny@gentoo.org>
+Date: Sun, 19 Feb 2017 22:11:38 +0000
+Subject: [PATCH] [test] Fix finding LLDB tools when building stand-alone
+
+Use both LLDB- and LLVM-specific tool/library directories when LLDB is
+being built stand-alone. This ensures that the freshly-built tools
+(and libraries) are used correctly.
+
+Without this patch, the test suite uses LLVM_TOOLS_DIR and LLVM_LIBS_DIR
+to locate lldb, and set PATH and LD_LIBRARY_PATH. When doing
+a stand-alone build, these variables represent the installed LLVM.
+As a result, tests either fail due to missing lldb executable
+or use an earlier installed LLDB version rather than the one being
+built.
+
+To solve this, additional LLDB_TOOLS_DIR and LLDB_LIBS_DIR variables
+are added and populated using LLVM_*_OUTPUT_INTDIR. Those variables
+contain directories used to output built executables and libraries.
+In stand-alone builds, they represent the build-tree directories
+used by LLDB. In integrated builds, they have the same values as
+LLVM_*_DIR and therefore using them does not harm.
+
+The new variables are prepended to PATH and LD_LIBRARY_PATH to ensure
+that freshly built binaries are preferred over potentially earlier
+installed ones. Furthermore, paths used to locate various tools are
+updated to match appropriate locations.
+
+Differential Revision: https://reviews.llvm.org/D29985
+
+git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@295621 91177308-0d34-0410-b5e6-96231b3b80d8
+---
+ lit/lit.cfg | 18 ++++++++++++------
+ lit/lit.site.cfg.in | 2 ++
+ 2 files changed, 14 insertions(+), 6 deletions(-)
+
+diff --git a/lit/lit.cfg b/lit/lit.cfg
+index dd89b45fa..a3d5f9ca7 100644
+--- a/lit/lit.cfg
++++ b/lit/lit.cfg
+@@ -39,18 +39,24 @@ config.llvm_obj_root = getattr(config, 'llvm_obj_root', None)
+
+ # Tweak the PATH to include the tools dir and the scripts dir.
+ if lldb_obj_root is not None:
++ lldb_tools_dir = getattr(config, 'lldb_tools_dir', None)
++ if not lldb_tools_dir:
++ lit_config.fatal('No LLDB tools dir set!')
+ llvm_tools_dir = getattr(config, 'llvm_tools_dir', None)
+ if not llvm_tools_dir:
+ lit_config.fatal('No LLVM tools dir set!')
+- path = os.path.pathsep.join((llvm_tools_dir, config.environment['PATH']))
++ path = os.path.pathsep.join((lldb_tools_dir, llvm_tools_dir, config.environment['PATH']))
+ path = os.path.pathsep.join((os.path.join(getattr(config, 'llvm_src_root', None),'test','Scripts'),path))
+
+ config.environment['PATH'] = path
+
++ lldb_libs_dir = getattr(config, 'lldb_libs_dir', None)
++ if not lldb_libs_dir:
++ lit_config.fatal('No LLDB libs dir set!')
+ llvm_libs_dir = getattr(config, 'llvm_libs_dir', None)
+ if not llvm_libs_dir:
+ lit_config.fatal('No LLVM libs dir set!')
+- path = os.path.pathsep.join((llvm_libs_dir,
++ path = os.path.pathsep.join((lldb_libs_dir, llvm_libs_dir,
+ config.environment.get('LD_LIBRARY_PATH','')))
+ config.environment['LD_LIBRARY_PATH'] = path
+
+@@ -115,14 +121,14 @@ if config.test_exec_root is None:
+ # Register substitutions
+ config.substitutions.append(('%python', config.python_executable))
+
+-debugserver = lit.util.which('debugserver', llvm_tools_dir)
+-lldb = lit.util.which('lldb', llvm_tools_dir)
++debugserver = lit.util.which('debugserver', lldb_tools_dir)
++lldb = lit.util.which('lldb', lldb_tools_dir)
+
+ if not os.path.exists(config.cc):
+- config.cc = lit.util.which(config.cc, llvm_tools_dir)
++ config.cc = lit.util.which(config.cc, config.environment['PATH'])
+
+ if not os.path.exists(config.cxx):
+- config.cxx = lit.util.which(config.cxx, llvm_tools_dir)
++ config.cxx = lit.util.which(config.cxx, config.environment['PATH'])
+
+ if platform.system() in ['Darwin']:
+ try:
+diff --git a/lit/lit.site.cfg.in b/lit/lit.site.cfg.in
+index 904521c9d..03aa3df9a 100644
+--- a/lit/lit.site.cfg.in
++++ b/lit/lit.site.cfg.in
+@@ -6,6 +6,8 @@ config.llvm_tools_dir = "@LLVM_TOOLS_DIR@"
+ config.llvm_libs_dir = "@LLVM_LIBS_DIR@"
+ config.lit_tools_dir = "@LLVM_LIT_TOOLS_DIR@"
+ config.lldb_obj_root = "@LLDB_BINARY_DIR@"
++config.lldb_libs_dir = "@LLVM_LIBRARY_OUTPUT_INTDIR@"
++config.lldb_tools_dir = "@LLVM_RUNTIME_OUTPUT_INTDIR@"
+ config.target_triple = "@TARGET_TRIPLE@"
+ config.python_executable = "@PYTHON_EXECUTABLE@"
+ config.cc = "@CMAKE_C_COMPILER@"
+--
+2.12.0
+
diff --git a/dev-util/lldb/files/4.0.1/0002-Fix-bug-28898.patch b/dev-util/lldb/files/4.0.1/0002-Fix-bug-28898.patch
new file mode 100644
index 000000000000..563d2f6813a2
--- /dev/null
+++ b/dev-util/lldb/files/4.0.1/0002-Fix-bug-28898.patch
@@ -0,0 +1,98 @@
+From 9ad9480c3a380a04b3dbe869c0675d6bba37247b Mon Sep 17 00:00:00 2001
+From: Kamil Rytarowski <n54@gmx.com>
+Date: Thu, 25 May 2017 20:12:30 +0000
+Subject: [PATCH] Fix bug #28898 lldb: libedit produces garbled, unusable input
+ on Linux
+
+Apply patch from Christos Zoulas, upstream libedit developer.
+It has been tested on NetBSD/amd64.
+
+New code supports combination of wide libedit and disabled
+LLDB_EDITLINE_USE_WCHAR, which was the popular case on Linux
+systems.
+
+
+git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@303907 91177308-0d34-0410-b5e6-96231b3b80d8
+---
+ include/lldb/Host/Editline.h | 12 +++++++++---
+ source/Host/common/Editline.cpp | 8 ++++----
+ 2 files changed, 13 insertions(+), 7 deletions(-)
+
+diff --git a/include/lldb/Host/Editline.h b/include/lldb/Host/Editline.h
+index 2b1a8e047..0b75e9c92 100644
+--- a/include/lldb/Host/Editline.h
++++ b/include/lldb/Host/Editline.h
+@@ -82,8 +82,14 @@ using EditLineStringStreamType = std::stringstream;
+ using EditLineCharType = char;
+ #endif
+
++#ifdef EL_CLIENTDATA /* editline with wide support + wide char read function */
++using EditLineGetCharType = wchar_t;
++#else
++using EditLineGetCharType = char;
++#endif
++
+ typedef int (*EditlineGetCharCallbackType)(::EditLine *editline,
+- EditLineCharType *c);
++ EditLineGetCharType *c);
+ typedef unsigned char (*EditlineCommandCallbackType)(::EditLine *editline,
+ int ch);
+ typedef const char *(*EditlinePromptCallbackType)(::EditLine *editline);
+@@ -270,7 +276,7 @@ private:
+
+ /// Character reading implementation for EditLine that supports our multi-line
+ /// editing trickery.
+- int GetCharacter(EditLineCharType *c);
++ int GetCharacter(EditLineGetCharType *c);
+
+ /// Prompt implementation for EditLine.
+ const char *Prompt();
+@@ -323,7 +329,7 @@ private:
+ /// single or multi-line editing.
+ void ConfigureEditor(bool multiline);
+
+- bool CompleteCharacter(char ch, EditLineCharType &out);
++ bool CompleteCharacter(char ch, EditLineGetCharType &out);
+
+ private:
+ #if LLDB_EDITLINE_USE_WCHAR
+diff --git a/source/Host/common/Editline.cpp b/source/Host/common/Editline.cpp
+index 7d4b398a1..7b580dde6 100644
+--- a/source/Host/common/Editline.cpp
++++ b/source/Host/common/Editline.cpp
+@@ -474,7 +474,7 @@ unsigned char Editline::RecallHistory(bool earlier) {
+ return CC_NEWLINE;
+ }
+
+-int Editline::GetCharacter(EditLineCharType *c) {
++int Editline::GetCharacter(EditLineGetCharType *c) {
+ const LineInfoW *info = el_wline(m_editline);
+
+ // Paint a faint version of the desired prompt over the version libedit draws
+@@ -969,7 +969,7 @@ void Editline::ConfigureEditor(bool multiline) {
+ }));
+
+ el_wset(m_editline, EL_GETCFN, (EditlineGetCharCallbackType)([](
+- EditLine *editline, EditLineCharType *c) {
++ EditLine *editline, EditLineGetCharType *c) {
+ return Editline::InstanceFor(editline)->GetCharacter(c);
+ }));
+
+@@ -1360,12 +1360,12 @@ void Editline::PrintAsync(Stream *stream, const char *s, size_t len) {
+ }
+ }
+
+-bool Editline::CompleteCharacter(char ch, EditLineCharType &out) {
++bool Editline::CompleteCharacter(char ch, EditLineGetCharType &out) {
+ #if !LLDB_EDITLINE_USE_WCHAR
+ if (ch == (char)EOF)
+ return false;
+
+- out = ch;
++ out = (unsigned char)ch;
+ return true;
+ #else
+ std::codecvt_utf8<wchar_t> cvt;
+--
+2.13.1
+
diff --git a/dev-util/lldb/lldb-4.0.1.ebuild b/dev-util/lldb/lldb-4.0.1.ebuild
new file mode 100644
index 000000000000..64a83e7105da
--- /dev/null
+++ b/dev-util/lldb/lldb-4.0.1.ebuild
@@ -0,0 +1,121 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+: ${CMAKE_MAKEFILE_GENERATOR:=ninja}
+# (needed due to CMAKE_BUILD_TYPE != Gentoo)
+CMAKE_MIN_VERSION=3.7.0-r1
+PYTHON_COMPAT=( python2_7 )
+
+inherit cmake-utils llvm python-single-r1 toolchain-funcs
+
+DESCRIPTION="The LLVM debugger"
+HOMEPAGE="https://llvm.org/"
+SRC_URI="https://releases.llvm.org/${PV/_//}/${P/_/}.src.tar.xz
+ test? ( https://releases.llvm.org/${PV/_//}/llvm-${PV/_/}.src.tar.xz )"
+
+LICENSE="UoI-NCSA"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~x86"
+IUSE="libedit ncurses python test"
+
+RDEPEND="
+ libedit? ( dev-libs/libedit:0= )
+ ncurses? ( >=sys-libs/ncurses-5.9-r3:0= )
+ python? ( dev-python/six[${PYTHON_USEDEP}]
+ ${PYTHON_DEPS} )
+ ~sys-devel/clang-${PV}[xml]
+ ~sys-devel/llvm-${PV}
+ !<sys-devel/llvm-4.0"
+# swig-3.0.9+ generates invalid wrappers, #598708
+# upstream: https://github.com/swig/swig/issues/769
+DEPEND="${RDEPEND}
+ python? ( <dev-lang/swig-3.0.9 )
+ test? ( ~dev-python/lit-${PV}[${PYTHON_USEDEP}] )
+ ${PYTHON_DEPS}"
+
+REQUIRED_USE=${PYTHON_REQUIRED_USE}
+
+S=${WORKDIR}/${P/_/}.src
+
+# least intrusive of all
+CMAKE_BUILD_TYPE=RelWithDebInfo
+
+pkg_setup() {
+ LLVM_MAX_SLOT=${PV%%.*} llvm_pkg_setup
+ python-single-r1_pkg_setup
+}
+
+src_unpack() {
+ default
+
+ if use test; then
+ mv llvm-* llvm || die
+ fi
+}
+
+src_prepare() {
+ # fix tests in stand-alone build
+ eapply "${FILESDIR}"/4.0.1/0001-test-Fix-finding-LLDB-tools-when-building-stand-alon.patch
+ # fix compatibility with new libedit
+ eapply "${FILESDIR}"/4.0.1/0002-Fix-bug-28898.patch
+
+ eapply_user
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DLLDB_DISABLE_CURSES=$(usex !ncurses)
+ -DLLDB_DISABLE_LIBEDIT=$(usex !libedit)
+ -DLLDB_DISABLE_PYTHON=$(usex !python)
+ -DLLVM_ENABLE_TERMINFO=$(usex ncurses)
+
+ -DLLVM_BUILD_TESTS=$(usex test)
+ # compilers for lit tests
+ -DLLDB_TEST_C_COMPILER="$(type -P clang)"
+ -DLLDB_TEST_CXX_COMPILER="$(type -P clang++)"
+ # compiler for ole' python tests
+ -DLLDB_TEST_COMPILER="$(type -P clang)"
+
+ # TODO: fix upstream to detect this properly
+ -DHAVE_LIBDL=ON
+ -DHAVE_LIBPTHREAD=ON
+
+ # normally we'd have to set LLVM_ENABLE_TERMINFO, HAVE_TERMINFO
+ # and TERMINFO_LIBS... so just force FindCurses.cmake to use
+ # ncurses with complete library set (including autodetection
+ # of -ltinfo)
+ -DCURSES_NEED_NCURSES=ON
+ )
+ use test && mycmakeargs+=(
+ -DLLVM_MAIN_SRC_DIR="${WORKDIR}/llvm"
+ -DLIT_COMMAND="${EPREFIX}/usr/bin/lit"
+ )
+
+ cmake-utils_src_configure
+}
+
+src_test() {
+ cmake-utils_src_make check-lldb-lit
+ use python && cmake-utils_src_make check-lldb
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ # oh my...
+ if use python; then
+ # remove bundled six module
+ rm "${D}$(python_get_sitedir)/six.py" || die
+
+ # remove custom readline.so for now
+ # TODO: figure out how to deal with it
+ # upstream is basically building a custom readline.so with -ledit
+ # to avoid symbol collisions between readline and libedit...
+ rm "${D}$(python_get_sitedir)/readline.so" || die
+
+ # byte-compile the modules
+ python_optimize
+ fi
+}
diff --git a/dev-util/lldb/lldb-5.0.0.ebuild b/dev-util/lldb/lldb-5.0.0.ebuild
new file mode 100644
index 000000000000..ac6f0f6cadc5
--- /dev/null
+++ b/dev-util/lldb/lldb-5.0.0.ebuild
@@ -0,0 +1,112 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+: ${CMAKE_MAKEFILE_GENERATOR:=ninja}
+# (needed due to CMAKE_BUILD_TYPE != Gentoo)
+CMAKE_MIN_VERSION=3.7.0-r1
+PYTHON_COMPAT=( python2_7 )
+
+inherit cmake-utils llvm python-single-r1 toolchain-funcs
+
+DESCRIPTION="The LLVM debugger"
+HOMEPAGE="https://llvm.org/"
+SRC_URI="https://releases.llvm.org/${PV/_//}/${P/_/}.src.tar.xz
+ test? ( https://releases.llvm.org/${PV/_//}/llvm-${PV/_/}.src.tar.xz )"
+
+LICENSE="UoI-NCSA"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~x86"
+IUSE="libedit ncurses python test"
+
+RDEPEND="
+ libedit? ( dev-libs/libedit:0= )
+ ncurses? ( >=sys-libs/ncurses-5.9-r3:0= )
+ python? ( dev-python/six[${PYTHON_USEDEP}]
+ ${PYTHON_DEPS} )
+ ~sys-devel/clang-${PV}[xml]
+ ~sys-devel/llvm-${PV}
+ !<sys-devel/llvm-4.0"
+# swig-3.0.9+ generates invalid wrappers, #598708
+# upstream: https://github.com/swig/swig/issues/769
+DEPEND="${RDEPEND}
+ python? ( <dev-lang/swig-3.0.9 )
+ test? ( ~dev-python/lit-${PV}[${PYTHON_USEDEP}] )
+ ${PYTHON_DEPS}"
+
+REQUIRED_USE=${PYTHON_REQUIRED_USE}
+
+S=${WORKDIR}/${P/_/}.src
+
+# least intrusive of all
+CMAKE_BUILD_TYPE=RelWithDebInfo
+
+pkg_setup() {
+ LLVM_MAX_SLOT=${PV%%.*} llvm_pkg_setup
+ python-single-r1_pkg_setup
+}
+
+src_unpack() {
+ default
+
+ if use test; then
+ mv llvm-* llvm || die
+ fi
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DLLDB_DISABLE_CURSES=$(usex !ncurses)
+ -DLLDB_DISABLE_LIBEDIT=$(usex !libedit)
+ -DLLDB_DISABLE_PYTHON=$(usex !python)
+ -DLLVM_ENABLE_TERMINFO=$(usex ncurses)
+
+ -DLLVM_BUILD_TESTS=$(usex test)
+ # compilers for lit tests
+ -DLLDB_TEST_C_COMPILER="$(type -P clang)"
+ -DLLDB_TEST_CXX_COMPILER="$(type -P clang++)"
+ # compiler for ole' python tests
+ -DLLDB_TEST_COMPILER="$(type -P clang)"
+
+ # TODO: fix upstream to detect this properly
+ -DHAVE_LIBDL=ON
+ -DHAVE_LIBPTHREAD=ON
+
+ # normally we'd have to set LLVM_ENABLE_TERMINFO, HAVE_TERMINFO
+ # and TERMINFO_LIBS... so just force FindCurses.cmake to use
+ # ncurses with complete library set (including autodetection
+ # of -ltinfo)
+ -DCURSES_NEED_NCURSES=ON
+ )
+ use test && mycmakeargs+=(
+ -DLLVM_MAIN_SRC_DIR="${WORKDIR}/llvm"
+ -DLIT_COMMAND="${EPREFIX}/usr/bin/lit"
+ )
+
+ cmake-utils_src_configure
+}
+
+src_test() {
+ cmake-utils_src_make check-lldb-lit
+ use python && cmake-utils_src_make check-lldb
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ # oh my...
+ if use python; then
+ # remove bundled six module
+ rm "${D}$(python_get_sitedir)/six.py" || die
+
+ # remove custom readline.so for now
+ # TODO: figure out how to deal with it
+ # upstream is basically building a custom readline.so with -ledit
+ # to avoid symbol collisions between readline and libedit...
+ rm "${D}$(python_get_sitedir)/readline.so" || die
+
+ # byte-compile the modules
+ python_optimize
+ fi
+}
diff --git a/dev-util/lldb/lldb-5.0.9999.ebuild b/dev-util/lldb/lldb-5.0.9999.ebuild
new file mode 100644
index 000000000000..d1d0b573437b
--- /dev/null
+++ b/dev-util/lldb/lldb-5.0.9999.ebuild
@@ -0,0 +1,119 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+: ${CMAKE_MAKEFILE_GENERATOR:=ninja}
+# (needed due to CMAKE_BUILD_TYPE != Gentoo)
+CMAKE_MIN_VERSION=3.7.0-r1
+PYTHON_COMPAT=( python2_7 )
+
+inherit cmake-utils git-r3 llvm python-single-r1 toolchain-funcs
+
+DESCRIPTION="The LLVM debugger"
+HOMEPAGE="https://llvm.org/"
+SRC_URI=""
+EGIT_REPO_URI="https://git.llvm.org/git/lldb.git
+ https://github.com/llvm-mirror/lldb.git"
+EGIT_BRANCH="release_50"
+
+LICENSE="UoI-NCSA"
+SLOT="0"
+KEYWORDS=""
+IUSE="libedit ncurses python test"
+
+RDEPEND="
+ libedit? ( dev-libs/libedit:0= )
+ ncurses? ( >=sys-libs/ncurses-5.9-r3:0= )
+ python? ( dev-python/six[${PYTHON_USEDEP}]
+ ${PYTHON_DEPS} )
+ ~sys-devel/clang-${PV}[xml]
+ ~sys-devel/llvm-${PV}
+ !<sys-devel/llvm-4.0"
+# swig-3.0.9+ generates invalid wrappers, #598708
+# upstream: https://github.com/swig/swig/issues/769
+DEPEND="${RDEPEND}
+ python? ( <dev-lang/swig-3.0.9 )
+ test? ( ~dev-python/lit-${PV}[${PYTHON_USEDEP}] )
+ ${PYTHON_DEPS}"
+
+REQUIRED_USE=${PYTHON_REQUIRED_USE}
+
+# least intrusive of all
+CMAKE_BUILD_TYPE=RelWithDebInfo
+
+pkg_setup() {
+ LLVM_MAX_SLOT=${PV%%.*} llvm_pkg_setup
+ python-single-r1_pkg_setup
+}
+
+src_unpack() {
+ if use test; then
+ # needed for patched gtest
+ git-r3_fetch "https://git.llvm.org/git/llvm.git
+ https://github.com/llvm-mirror/llvm.git"
+ fi
+ git-r3_fetch
+
+ if use test; then
+ git-r3_checkout https://llvm.org/git/llvm.git \
+ "${WORKDIR}"/llvm
+ fi
+ git-r3_checkout
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DLLDB_DISABLE_CURSES=$(usex !ncurses)
+ -DLLDB_DISABLE_LIBEDIT=$(usex !libedit)
+ -DLLDB_DISABLE_PYTHON=$(usex !python)
+ -DLLVM_ENABLE_TERMINFO=$(usex ncurses)
+
+ -DLLVM_BUILD_TESTS=$(usex test)
+ # compilers for lit tests
+ -DLLDB_TEST_C_COMPILER="$(type -P clang)"
+ -DLLDB_TEST_CXX_COMPILER="$(type -P clang++)"
+ # compiler for ole' python tests
+ -DLLDB_TEST_COMPILER="$(type -P clang)"
+
+ # TODO: fix upstream to detect this properly
+ -DHAVE_LIBDL=ON
+ -DHAVE_LIBPTHREAD=ON
+
+ # normally we'd have to set LLVM_ENABLE_TERMINFO, HAVE_TERMINFO
+ # and TERMINFO_LIBS... so just force FindCurses.cmake to use
+ # ncurses with complete library set (including autodetection
+ # of -ltinfo)
+ -DCURSES_NEED_NCURSES=ON
+ )
+ use test && mycmakeargs+=(
+ -DLLVM_MAIN_SRC_DIR="${WORKDIR}/llvm"
+ -DLIT_COMMAND="${EPREFIX}/usr/bin/lit"
+ )
+
+ cmake-utils_src_configure
+}
+
+src_test() {
+ cmake-utils_src_make check-lldb-lit
+ use python && cmake-utils_src_make check-lldb
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ # oh my...
+ if use python; then
+ # remove bundled six module
+ rm "${D}$(python_get_sitedir)/six.py" || die
+
+ # remove custom readline.so for now
+ # TODO: figure out how to deal with it
+ # upstream is basically building a custom readline.so with -ledit
+ # to avoid symbol collisions between readline and libedit...
+ rm "${D}$(python_get_sitedir)/readline.so" || die
+
+ # byte-compile the modules
+ python_optimize
+ fi
+}
diff --git a/dev-util/lldb/lldb-9999.ebuild b/dev-util/lldb/lldb-9999.ebuild
new file mode 100644
index 000000000000..8dd6d2049e91
--- /dev/null
+++ b/dev-util/lldb/lldb-9999.ebuild
@@ -0,0 +1,119 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+: ${CMAKE_MAKEFILE_GENERATOR:=ninja}
+# (needed due to CMAKE_BUILD_TYPE != Gentoo)
+CMAKE_MIN_VERSION=3.7.0-r1
+PYTHON_COMPAT=( python2_7 )
+
+inherit cmake-utils git-r3 llvm python-single-r1 toolchain-funcs
+
+DESCRIPTION="The LLVM debugger"
+HOMEPAGE="https://llvm.org/"
+SRC_URI=""
+EGIT_REPO_URI="https://git.llvm.org/git/lldb.git
+ https://github.com/llvm-mirror/lldb.git"
+
+LICENSE="UoI-NCSA"
+SLOT="0"
+KEYWORDS=""
+IUSE="libedit ncurses python test"
+
+RDEPEND="
+ libedit? ( dev-libs/libedit:0= )
+ ncurses? ( >=sys-libs/ncurses-5.9-r3:0= )
+ python? ( dev-python/six[${PYTHON_USEDEP}]
+ ${PYTHON_DEPS} )
+ ~sys-devel/clang-${PV}[xml]
+ ~sys-devel/llvm-${PV}
+ !<sys-devel/llvm-4.0"
+# swig-3.0.9+ generates invalid wrappers, #598708
+# upstream: https://github.com/swig/swig/issues/769
+DEPEND="${RDEPEND}
+ python? ( <dev-lang/swig-3.0.9 )
+ test? ( ~dev-python/lit-${PV}[${PYTHON_USEDEP}] )
+ ${PYTHON_DEPS}"
+
+REQUIRED_USE=${PYTHON_REQUIRED_USE}
+
+# least intrusive of all
+CMAKE_BUILD_TYPE=RelWithDebInfo
+
+pkg_setup() {
+ llvm_pkg_setup
+ python-single-r1_pkg_setup
+}
+
+src_unpack() {
+ if use test; then
+ # needed for patched gtest
+ git-r3_fetch "https://git.llvm.org/git/llvm.git
+ https://github.com/llvm-mirror/llvm.git"
+ fi
+ git-r3_fetch
+
+ if use test; then
+ git-r3_checkout https://llvm.org/git/llvm.git \
+ "${WORKDIR}"/llvm
+ fi
+ git-r3_checkout
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DLLDB_DISABLE_CURSES=$(usex !ncurses)
+ -DLLDB_DISABLE_LIBEDIT=$(usex !libedit)
+ -DLLDB_DISABLE_PYTHON=$(usex !python)
+ -DLLVM_ENABLE_TERMINFO=$(usex ncurses)
+
+ -DLLVM_BUILD_TESTS=$(usex test)
+ # compilers for lit tests
+ -DLLDB_TEST_C_COMPILER="$(type -P clang)"
+ -DLLDB_TEST_CXX_COMPILER="$(type -P clang++)"
+ # compiler for ole' python tests
+ -DLLDB_TEST_COMPILER="$(type -P clang)"
+
+ # TODO: fix upstream to detect this properly
+ -DHAVE_LIBDL=ON
+ -DHAVE_LIBPTHREAD=ON
+
+ # normally we'd have to set LLVM_ENABLE_TERMINFO, HAVE_TERMINFO
+ # and TERMINFO_LIBS... so just force FindCurses.cmake to use
+ # ncurses with complete library set (including autodetection
+ # of -ltinfo)
+ -DCURSES_NEED_NCURSES=ON
+ )
+ use test && mycmakeargs+=(
+ -DLLVM_MAIN_SRC_DIR="${WORKDIR}/llvm"
+ -DLLVM_EXTERNAL_LIT="${EPREFIX}/usr/bin/lit"
+ -DLLVM_LIT_ARGS="-vv"
+ )
+
+ cmake-utils_src_configure
+}
+
+src_test() {
+ cmake-utils_src_make check-lldb-lit
+ use python && cmake-utils_src_make check-lldb
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ # oh my...
+ if use python; then
+ # remove bundled six module
+ rm "${D}$(python_get_sitedir)/six.py" || die
+
+ # remove custom readline.so for now
+ # TODO: figure out how to deal with it
+ # upstream is basically building a custom readline.so with -ledit
+ # to avoid symbol collisions between readline and libedit...
+ rm "${D}$(python_get_sitedir)/readline.so" || die
+
+ # byte-compile the modules
+ python_optimize
+ fi
+}
diff --git a/dev-util/lldb/metadata.xml b/dev-util/lldb/metadata.xml
new file mode 100644
index 000000000000..89c4bdb96049
--- /dev/null
+++ b/dev-util/lldb/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>llvm@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-util/lockrun/Manifest b/dev-util/lockrun/Manifest
new file mode 100644
index 000000000000..bea1e131878e
--- /dev/null
+++ b/dev-util/lockrun/Manifest
@@ -0,0 +1,6 @@
+AUX lockrun.c-20120508 7025 SHA256 b44a2458a7a2357a321078f7f5a321f488580c2dbf11a704cb63397fc47acd65 SHA512 f800e96d41d11c9b6f7e28c5bd1f2b59b824ccba5f093574d8f4df8e737f2df47c3f8e89a08eee81b9c3fb46377e62be9c5ddf83df253fd0ab3a25a85a8bee0b WHIRLPOOL 75cf819092caaa9d83a06f258b305e01e16cb3b047eb17ad05363df67b1095c4bf65d01403ba3d0e85069be3ad437086fee2cdf92f5f9e979c299d21e8baf8ad
+EBUILD lockrun-20120508-r1.ebuild 601 SHA256 51e07d760e23137f3b32901b34def356d1cba0ba761510999fb207e58aaf8031 SHA512 695fd4aa9e9488763d9e4b58544894f0a965e2dedd096e1811bc208b58ee883e8aa26f912cf779a2058e8e1f0d2e154d789b4c88f4d0048d9fad96bf71f6c0e7 WHIRLPOOL 17c267c6269bea2d45cf06263ba2753a128d38d93023ad75d52d1090490e2f0138f355b4eddc81dd4ad0b19d9094f6e40306a8e54ecef8eaa78d8572fd482372
+EBUILD lockrun-20120508.ebuild 599 SHA256 b8c48166edfc40dba74351c4c7e35bff8e3f31d388b9a008e2b4f66d4e9c2847 SHA512 a39be47b2381380580eb9edc1387591ac7b36372cb6b27f41a4d1f83b177682ab5f0352a234a1c55db3575cbd31dc0994f44f4f9dbbb9618ea88c7550986ec73 WHIRLPOOL 0e482fc764ffa1fb3a26cd1513711aea5cf1da009af90ef32862cc40b19c091c40fc728b43cb3ee1a2182cf997f9137d11b8a2a48490104f8830aeea249d0efd
+MISC ChangeLog 2555 SHA256 2ab902210c30d7949bc309d3c32cee7d2e1205badbbc5e86e4709aeab6500548 SHA512 10c91b570a145beb8146fbe72e5fcaa77b3c18cd2548e6d4fe6ba39040ebcbefb8606cbcfacd3f7b8b20b6215ec1a7ca5722810026b41c53bda4a3df02be1885 WHIRLPOOL e30a66459d2638f7dac4a250a7c6da1a22ad0c0200948948d2920787c8f663583701c4f0f964c964caa7369910e4a24a2328caeb695318326dffdca79502c788
+MISC ChangeLog-2015 1806 SHA256 9f4fc194618cb2adc547ab90fc283426f4d2dc57d1ec41f03f19f38cff8dcf25 SHA512 d58392101eedfc6593daa3938534e0ff42fd43f60d384d3cbba7464de6364aab9802232bcd0f2b62479eb051de5ca47c8a9d74049e32f18c95af36e0abe38d2d WHIRLPOOL 28e49ba6424cb80560afd7c145312379a4de056007b1696052f08f7e37a08a3bdb0bfefba6065a11bd6556f760fe99906f1ad6b9e472ac2a3edb098ddfe2e1a5
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/dev-util/lockrun/files/lockrun.c-20120508 b/dev-util/lockrun/files/lockrun.c-20120508
new file mode 100644
index 000000000000..51da6c71fa4a
--- /dev/null
+++ b/dev-util/lockrun/files/lockrun.c-20120508
@@ -0,0 +1,294 @@
+/*
+ * $Id: //websites/unixwiz/unixwiz.net/webroot/tools/lockrun.c#5 $
+ *
+ * written by : Stephen J. Friedl
+ * Software Consultant
+ * steve@unixwiz.net
+ * http://www.unixwiz.net/tools/
+ *
+ * ===================================================================
+ * ======== This software is in the public domain, and can be ========
+ * ======== used by anybody for any purpose ========
+ * ===================================================================
+ *
+ * Lockrun: This program is used to launch a program out with a lockout
+ * so that only one can run at a time. It's mainly intended for use out
+ * of cron so that our five-minute running jobs which run long don't get
+ * walked on. We find this a *lot* with Cacti jobs which just get hung
+ * up: it's better to miss a polling period than to stack them up and
+ * slow each other down.
+ *
+ * So we use a file which is used for locking: this program attempts to
+ * lock the file, and if the lock exists, we have to either exit with
+ * an error, or wait for it to release.
+ *
+ * lockrun --lockfile=FILE -- my command here
+ *
+ * COMMAND LINE
+ * ------------
+ *
+ * --lockfile=F
+ *
+ * Specify the name of a file which is used for locking. The file is
+ * created if necessary (with mode 0666), and no I/O of any kind is
+ * done. The file is never removed.
+ *
+ * --maxtime=N
+ *
+ * The script being controlled should run for no more than <N> seconds,
+ * and if it's beyond that time, we should report it to the standard
+ * error (which probably gets routed to the user via cron's email).
+ *
+ * --wait
+ *
+ * When a lock is hit, we normally exit with error, but --wait causes
+ * it to loop until the lock is released.
+ *
+ * --verbose
+ *
+ * Show a bit more runtime debugging.
+ *
+ * --quiet
+ *
+ * Don't show "run is locked" error if things are busy; keeps cron from
+ * overwhelming you with messages if lockrun overlap is not uncommon.
+ *
+ * --
+ *
+ * Mark the end of the options: the command to run follows.
+ *
+ */
+
+#include <stdio.h>
+#include <stdarg.h>
+#include <errno.h>
+#include <stdlib.h>
+#include <string.h>
+#include <fcntl.h>
+#include <unistd.h>
+#include <time.h>
+#include <sys/types.h>
+#include <sys/wait.h>
+#include <sys/file.h>
+
+#ifndef __GNUC__
+# define __attribute__(x) /* nothing */
+#endif
+
+
+#define STRMATCH(a,b) (strcmp((a),(b)) == 0)
+
+#define UNUSED_PARAMETER(v) ((void)(v))
+
+#define TRUE 1
+#define FALSE 0
+
+static const char *lockfile = 0;
+static int wait_for_lock = FALSE;
+static mode_t openmode = 0666;
+static int sleeptime = 10; /* seconds */
+static int Verbose = FALSE;
+static int Maxtime = 0;
+static int Quiet = FALSE;
+
+static char *getarg(char *opt, char ***pargv);
+
+static void die(const char *format, ...)
+ __attribute__((noreturn))
+ __attribute__((format(printf, 1, 2)));
+
+#ifdef __sun
+# define WAIT_AND_LOCK(fd) lockf(fd, F_TLOCK,0)
+#else
+# define WAIT_AND_LOCK(fd) flock(fd, LOCK_EX | LOCK_NB)
+#endif
+
+int main(int argc, char **argv)
+{
+ char *Argv0 = *argv;
+ int rc;
+ int lfd;
+ pid_t childpid;
+ time_t starttime;
+
+ UNUSED_PARAMETER(argc);
+
+ time(&starttime);
+
+ for ( argv++ ; *argv ; argv++ )
+ {
+ char *arg = *argv;
+ char *opt = strchr(arg, '=');
+
+ /* the -- token marks the end of the list */
+
+ if ( strcmp(*argv, "--") == 0 )
+ {
+ argv++;
+ break;
+ }
+
+ if (opt) *opt++ = '\0'; /* pick off the =VALUE part */
+
+ if ( STRMATCH(arg, "-L") || STRMATCH(arg, "--lockfile"))
+ {
+ lockfile = getarg(opt, &argv);
+ }
+
+ else if ( STRMATCH(arg, "-W") || STRMATCH(arg, "--wait"))
+ {
+ wait_for_lock = TRUE;
+ }
+
+ else if ( STRMATCH(arg, "-S") || STRMATCH(arg, "--sleep"))
+ {
+ sleeptime = atoi(getarg(opt, &argv));
+ }
+
+ else if ( STRMATCH(arg, "-T") || STRMATCH(arg, "--maxtime"))
+ {
+ Maxtime = atoi(getarg(opt, &argv));
+ }
+
+ else if ( STRMATCH(arg, "-V") || STRMATCH(arg, "--verbose"))
+ {
+ Verbose++;
+ }
+
+ else if ( STRMATCH(arg, "-q") || STRMATCH(arg, "--quiet"))
+ {
+ Quiet = TRUE;
+ }
+
+ else
+ {
+ die("ERROR: \"%s\" is an invalid cmdline param", arg);
+ }
+ }
+
+ /*----------------------------------------------------------------
+ * SANITY CHECKING
+ *
+ * Make sure that we have all the parameters we require
+ */
+ if (*argv == 0)
+ die("ERROR: missing command to %s (must follow \"--\" marker) ", Argv0);
+
+ if (lockfile == 0)
+ die("ERROR: missing --lockfile=F parameter");
+
+ /*----------------------------------------------------------------
+ * Open or create the lockfile, then try to acquire the lock. If
+ * the lock is acquired immediately (==0), then we're done, but
+ * if the lock is not available, we have to wait for it.
+ *
+ * We can either loop trying for the lock (for --wait), or exit
+ * with error.
+ */
+
+ if ( (lfd = open(lockfile, O_RDWR|O_CREAT, openmode)) < 0)
+ die("ERROR: cannot open(%s) [err=%s]", lockfile, strerror(errno));
+
+ while ( WAIT_AND_LOCK(lfd) != 0 )
+ {
+ if ( ! wait_for_lock )
+ {
+ if ( Quiet)
+ exit(EXIT_SUCCESS);
+ else
+ die("ERROR: cannot launch %s - run is locked", argv[0]);
+ }
+
+ /* waiting */
+ if ( Verbose ) printf("(locked: sleeping %d secs)\n", sleeptime);
+
+ sleep(sleeptime);
+ }
+
+ fflush(stdout);
+
+ /* run the child */
+
+
+ if ( (childpid = fork()) == 0 )
+ {
+ close(lfd); // don't need the lock file
+
+ execvp(argv[0], argv);
+ }
+ else if ( childpid > 0 )
+ {
+ time_t endtime;
+ pid_t pid;
+
+ if ( Verbose )
+ printf("Waiting for process %ld\n", (long) childpid);
+
+ pid = waitpid(childpid, &rc, 0);
+
+ time(&endtime);
+
+ endtime -= starttime;
+
+ if ( Verbose || (Maxtime > 0 && endtime > Maxtime) )
+ printf("pid %d exited with status %d (time=%ld sec)\n", pid, rc, endtime);
+ }
+ else
+ {
+ die("ERROR: cannot fork [%s]", strerror(errno));
+ }
+
+ exit(rc);
+}
+
+
+/*! \fn static char *getarg(char *opt, char ***pargv)
+ * \brief A function to parse calling parameters
+ *
+ * This is a helper for the main arg-processing loop: we work with
+ * options which are either of the form "-X=FOO" or "-X FOO"; we
+ * want an easy way to handle either one.
+ *
+ * The idea is that if the parameter has an = sign, we use the rest
+ * of that same argv[X] string, otherwise we have to get the *next*
+ * argv[X] string. But it's an error if an option-requiring param
+ * is at the end of the list with no argument to follow.
+ *
+ * The option name could be of the form "-C" or "--conf", but we
+ * grab it from the existing argv[] so we can report it well.
+ *
+ * \return character pointer to the argument
+ *
+ */
+static char *getarg(char *opt, char ***pargv)
+{
+ const char *const optname = **pargv;
+
+ /* option already set? */
+ if (opt) return opt;
+
+ /* advance to next argv[] and try that one */
+ if ((opt = *++(*pargv)) == 0)
+ die("ERROR: option %s requires a parameter", optname);
+
+ return opt;
+}
+
+/*
+ * die()
+ *
+ * Given a printf-style argument list, format it to the standard error,
+ * append a newline, then exit with error status.
+ */
+
+static void die(const char *format, ...)
+{
+va_list args;
+
+ va_start(args, format);
+ vfprintf(stderr, format, args);
+ putc('\n', stderr);
+ va_end(args);
+
+ exit(EXIT_FAILURE);
+}
diff --git a/dev-util/lockrun/lockrun-20120508-r1.ebuild b/dev-util/lockrun/lockrun-20120508-r1.ebuild
new file mode 100644
index 000000000000..1a0c8c9f4992
--- /dev/null
+++ b/dev-util/lockrun/lockrun-20120508-r1.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit toolchain-funcs
+
+DESCRIPTION="Lockrun - runs cronjobs with overrun protection"
+HOMEPAGE="http://www.unixwiz.net/tools/lockrun.html"
+
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="~amd64 ~hppa ~x86"
+
+S="${WORKDIR}"
+
+src_unpack() {
+ cp -v "${FILESDIR}"/${PN}.c-${PV} "${S}"/${PN}.c || die
+ cp -v "${FILESDIR}"/${PN}.c-${PV} "${S}"/README || die
+}
+
+src_compile() {
+ emake CC=$(tc-getCC) ${PN}
+ sed -i README -e '60q;s|^ \*||g' || die
+}
+
+src_install () {
+ dobin ${PN}
+ einstalldocs
+}
diff --git a/dev-util/lockrun/lockrun-20120508.ebuild b/dev-util/lockrun/lockrun-20120508.ebuild
new file mode 100644
index 000000000000..70d5bafe59d6
--- /dev/null
+++ b/dev-util/lockrun/lockrun-20120508.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+inherit toolchain-funcs
+
+DESCRIPTION="Lockrun - runs cronjobs with overrun protection"
+HOMEPAGE="http://www.unixwiz.net/tools/lockrun.html"
+
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="amd64 hppa x86"
+IUSE=""
+
+S="${WORKDIR}"
+
+src_unpack() {
+ cp "${FILESDIR}"/${PN}.c-${PV} "${S}"/${PN}.c || die
+ cp "${FILESDIR}"/${PN}.c-${PV} "${S}"/README || die
+}
+
+src_compile() {
+ emake CC=$(tc-getCC) ${PN}
+ sed -i README -e '60q;s|^ \*||g' || die
+}
+
+src_install () {
+ dobin ${PN}
+ dodoc README
+}
diff --git a/dev-util/lockrun/metadata.xml b/dev-util/lockrun/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/dev-util/lockrun/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/dev-util/lsuio/Manifest b/dev-util/lsuio/Manifest
new file mode 100644
index 000000000000..3084836c3569
--- /dev/null
+++ b/dev-util/lsuio/Manifest
@@ -0,0 +1,6 @@
+AUX lsuio-0.2.0-build.patch 259 SHA256 6e0181872499f125d7dfb7b49dc91abb0ecbdbe635ab8481e2a6593520c23aa3 SHA512 6ef2f67dea8cecb0ee94e2b24e7b68c9b769db0196c0d31f24d2031f2f6a994748a5b0bbbd43da8552664d1379d32bee30f9406d63ba9ee79f65edfbc648f199 WHIRLPOOL b6bddda9a3af90ab462e912ce5452c097574ebd3ff0b0bb63f8a33de7f3f1b0375354b5ede10a3c210fe00ca1cf0a07325357797018780d0b28cb75d3362279a
+DIST lsuio-0.2.0.tar.gz 202584 SHA256 c88b3850248b2d3419e025abd7b9b0991c8bd33a2d4983f9608408a29900bfb5 SHA512 55567b9028a22ae3058439135117d1537c972e875d864a1d7f6611f815461e17ecd6d953cc6abc129208241c1ba7fbeb9a2a62b5b9102a8429ccf270a93741f3 WHIRLPOOL d123480d277b5a78e8da4c9143fa22478423c0b3e373bb410b31b26d0f944094374c25375bf54d55305240e9a1ecdd293fe4460af61e8ac0d480deba45d9edf2
+EBUILD lsuio-0.2.0.ebuild 520 SHA256 cd273f250e2f5d0546b179dfdba07931c3a23bc304394fed1c2bb893a797ef33 SHA512 90c50a18c01684dc1d209715320f30dd4258fd86460d53aee8b7817ea15ab601e98b67e68ed41166d55b1a321218dff8add139af77d67e81afc7e087c2577e4b WHIRLPOOL 8570f7988f9c350673de3ef34229cbe3c3a34a00130426f0bf2b0629c2a27c9e04005c50534558efcd6aad783df196c0b4076a46e91478b051aeca7d4c649fad
+MISC ChangeLog 2732 SHA256 19ad64aefb2b50d4e2ac9c81fa042b7b2b4619bbf25fec29bf2cb8727f6eef76 SHA512 41d76346573688613aa684efeaa7b615db8962ea07aa8e23f04bb18f95a41ba16065222a31256cf76371631bcaf0cd41f8dc953948d6888d395b4a2266655d20 WHIRLPOOL 8f4fa4a3a2f9c6745fa11723d97a60210e051a4169db973d835e999589bc1d5555b6a426b9f40f88f93bdbc00a68ad68ece0aa7779f28aa409198c1e3ab92fc1
+MISC ChangeLog-2015 603 SHA256 32193325b400a3464581ea052337be01d4e854ad132efa700fb4f55906ca6944 SHA512 28845a626aadade2e70e07973d1c9421a62d32c0afbeae457c6f34e9265889382bbf5953adb22ed18feeb4735f71b1559751990af5b21ddaec4669863248b7ce WHIRLPOOL 2f161e98f16f47cf42d717f6d9e6f94fd2e87c4293126fc4c27c1c815da10e99500b35fcd3be5b889b9b94c95a4bc519fb5332dad6ea208fa1ed3a07dd91d0b4
+MISC metadata.xml 256 SHA256 d30e6c3b8417bdf0cf4cef8310cd1a81e600e643707e9c215a3e27db61c1d954 SHA512 eb8e446afc52f5f079733bdaf0db316e97194ba08e3b1370a287db29ea0bd7974bb237dfc67ff22a115538ec830b632b98390a8e59ace9634a89dfa9c02037b5 WHIRLPOOL 54aca0ae35c2e8ac1797106908b50f31eb7ab9783df8dc1749304b2f0ca553f8fcd109b5c689715e44b0c6b7a81fbb256686e80cf432688259ae38e8ed018c79
diff --git a/dev-util/lsuio/files/lsuio-0.2.0-build.patch b/dev-util/lsuio/files/lsuio-0.2.0-build.patch
new file mode 100644
index 000000000000..cef204c786f5
--- /dev/null
+++ b/dev-util/lsuio/files/lsuio-0.2.0-build.patch
@@ -0,0 +1,9 @@
+--- uio_helper.h
++++ uio_helper.h
+@@ -68,5 +68,6 @@
+ void uio_free_dev_attrs(struct uio_info_t* info);
+ void uio_free_info(struct uio_info_t* info);
+ struct uio_info_t* uio_find_devices(int filter_num);
++void uio_mmap_test(struct uio_info_t* info);
+
+ #endif
diff --git a/dev-util/lsuio/lsuio-0.2.0.ebuild b/dev-util/lsuio/lsuio-0.2.0.ebuild
new file mode 100644
index 000000000000..729c2ba0c5d4
--- /dev/null
+++ b/dev-util/lsuio/lsuio-0.2.0.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils
+
+DESCRIPTION="list available userspace I/O (UIO) devices"
+HOMEPAGE="http://www.osadl.org/UIO.uio.0.html"
+SRC_URI="http://www.osadl.org/projects/downloads/UIO/user/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-build.patch
+}
+
+src_install() {
+ emake install DESTDIR="${D}" || die
+ dodoc AUTHORS NEWS README
+}
diff --git a/dev-util/lsuio/metadata.xml b/dev-util/lsuio/metadata.xml
new file mode 100644
index 000000000000..b4a27e94fc24
--- /dev/null
+++ b/dev-util/lsuio/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>bircoph@gentoo.org</email>
+ <name>Andrew Savchenko</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-util/ltrace/Manifest b/dev-util/ltrace/Manifest
new file mode 100644
index 000000000000..651f2bbe0ce1
--- /dev/null
+++ b/dev-util/ltrace/Manifest
@@ -0,0 +1,17 @@
+AUX 0.4-parallel-make.patch 312 SHA256 f32ce2f3a7dab21301a7726b5ccc65669bced58f5577863c231c32e20ef36f08 SHA512 d1642d5e474f145c7d57f138850a209ae43911733fba5a36fbb070e60a75b2286a6b255f059bb7fc0aca55d6d65b362e443b3dc93aa775d89a7e79da651d40ce WHIRLPOOL e3f5192825464ea53b60b89dcb78b6b4a8ed6883e163ec972dca395bcd7821fc834a6b65609ddc9f30b02a2a0d0f9ea3beab3b889c8844b22eecbead572eea44
+AUX ltrace-0.5.3-cross.patch 485 SHA256 fb0f36643464d19090bfbe644f30a0bf98cf302229df9a6fb1d24a2b3ce6a134 SHA512 476105d06c759e4d191d0b49751bfdcea5f492c035ac243366eb324ea3b54fa29b5c304865e3603636e64375ff527c4917aaaa290e2d056ea237b7f7ec89c340 WHIRLPOOL fc719f17265ad7121af2f7c7094962a5a2c631b8eba46360ed91e6a399fb0e3c2631c93a25527fb3e355751f6d247ee7260b19b8c15494ef76c65577f79a7663
+AUX ltrace-0.5.3-ppc.patch 594 SHA256 ca817bbf29bf219f3908d583bf64fd7f43a24dd2069aaeddd461b7b519806d3b SHA512 b993d1300d20d6ef593084cb78d624ff6eff2a15d612dd5b64c59c0ea5ffab0493a38c63da318d2ea0026b4f309bae66e038b3300f923d9a425bf206579065c6 WHIRLPOOL 1374eca1a4eec7be1441cc34959e6d9175baf08fb2220f654d5ba921ce53362f67e0a331a9f821d232140356f85e599ee33df9b0ad7a7d21fb88576052dd92f5
+AUX ltrace-0.5.3.1-gcc43-testsuite.patch 406 SHA256 7b12907b1cf0b4b820ad1698d065e25d325ac7b7c3452c15dc2574170ed348e4 SHA512 4d3bb92daea7f1f11a5658d4a05358595799a5f117de175255c0b9e87bfe862808ee43efbb75eb8787f2782287bfa667b88231d24fc2dc69c186a23b5da62af5 WHIRLPOOL 406f5de0c2d432309cde164e4c98532526b746342d9c891c3d0c43bae371b10c13ec424a2344a75a0914afe5543f61ce1735af03f165b8acea74c6609135eb7f
+AUX ltrace-0.7.3-alpha-protos.patch 849 SHA256 50f74d069399e16645c8b992a46d87954c777719f2e7216f8b57fee7e5c188c8 SHA512 014660bf48b7e5bf43b17fd3f82fb8a01f3855c16dc2fed76f6a9e4f348ec28beca0e7429ee10dc3aba3bd0bba143d21ee5b67ccc7057cb006ef694a6d38aa72 WHIRLPOOL 17126b60938c8aa3937b989ea23e28cafc98a73daf55d52a7fd3b931a5e85904f669094cdb9b365c88e200fc6269cf1bac2e67d7f40eb6966f337b6a9b96c00c
+AUX ltrace-0.7.3-ia64.patch 1538 SHA256 fcb69e1f607a7deb6897c75b2ab2aeaf827884ba716d946a8c3a5c620f779bd9 SHA512 c6e7576047aa06eca67a80ecaa008854a2e312b1d38693cc802a6b6be6f671003716c6a0d3268fb3f076f3311fb27c228f55220bcb2432afd0210542020764ad WHIRLPOOL bfef6099889267a3cb59381b70d3b5b83ef7d5e697d8a363c7949129beefce4d2ddcfee3e0f84129df222ab1efc8e18ccad13c4eee4b974061b0b64fcd4a8ca8
+AUX ltrace-0.7.3-test-protos.patch 2551 SHA256 3cbc553e51c12dfd14829b3d612a8423f8dee2e01ff278e373fa58b0f82704aa SHA512 4652b3f920ad3669d2e6076775b9a598bd999a0fa5319c490f580d93c63f53bd0e3db61cf7a61c5db3a436789802b8fa9646f84ee76e8f37f4f3afb827b84f34 WHIRLPOOL e85be67cc48e3dab8900e81197d6adb6c15cf3460971cda1659668b2dcaa080d8a0f5f24972fc66b86a64a814657f9d4eab5a58b48b31695992e3cd61b9b3686
+DIST ltrace-0.7.2.tar.bz2 483806 SHA256 bd9e7bd94ba6728fd3ec57f4bcfef8240260bea8f4fcebbc9c454d07ccc11894 SHA512 ec86f08d0c18579ff05f8be23ef3c7309c76c647a0d952fbc627e8095b6ce52b2552e152dc0ec9c6098039c2d50d549a1d218f56a13f75f28bc7b03eb39e94e0 WHIRLPOOL 4989b8d7a2d3986e39f9db134ebbe4fdb4cea48f216267e324a88ee67f4b18b4d2d8e3bcbb90dfacb04ecde6ac74afe079c64f9efb330ca61c7e694d425834a8
+DIST ltrace-0.7.3.tar.bz2 482658 SHA256 0e6f8c077471b544c06def7192d983861ad2f8688dd5504beae62f0c5f5b9503 SHA512 a842b16dcb81da869afa0bddc755fdff0d57b35672505bf2c7164fd983b1938d28b126714128930994cc1230ced69d779456d0cfc16f4008c9b6d19f0852285d WHIRLPOOL 081460150cf67c2c12ae81db4596a51d13e930f37ec143df1b0d1cb2ade6d1cec4445b127b822d5e3e776f3cd5f33fb9d23689f10d1da4adef73463bbd4e7fd2
+DIST ltrace_0.7.3-4.debian.tar.gz 11373 SHA256 44dab94f96f1427ecdff1a08148e81b11eafacb542400fc7067c750590c7e5b9 SHA512 67a868c95703ca9cd8407905e3be416e3a66920f41d9deb78fadb71719d7d3f1a3f67ffcb575acff4bf7e4715102f3a6b0f67c6adb74f37ee66c398c132ff04b WHIRLPOOL ecaf6a2314b5add5af488e4654a4b76e543bf3444345bdd0a496ba57d1509451c50e9e1e33dd40976e8176e0d92a6270a4d28b5d63d04fa1aa8a6ee0af9989d8
+DIST ltrace_0.7.3.orig.tar.bz2 482658 SHA256 0e6f8c077471b544c06def7192d983861ad2f8688dd5504beae62f0c5f5b9503 SHA512 a842b16dcb81da869afa0bddc755fdff0d57b35672505bf2c7164fd983b1938d28b126714128930994cc1230ced69d779456d0cfc16f4008c9b6d19f0852285d WHIRLPOOL 081460150cf67c2c12ae81db4596a51d13e930f37ec143df1b0d1cb2ade6d1cec4445b127b822d5e3e776f3cd5f33fb9d23689f10d1da4adef73463bbd4e7fd2
+EBUILD ltrace-0.7.2.ebuild 879 SHA256 2e0496341231dfd51eb2c659761d6ac3fb0413c9aeb71094d5786efc22f88bb5 SHA512 783a1343c85a6942fd0380793dcb766034b0bb3d5bcb8cd0524864d034e6073b33f245b6694232a4a2b9d7504f9dc8fae6148becf2330ca739597422301140f8 WHIRLPOOL 4896f852153136431f07ccb2e61718ffb93de20a6b60f178e886da8d143b68e912d6c862d5076ecd76e9b1957921b4b4da5ceaf80cb132c2839ad20e42e74c71
+EBUILD ltrace-0.7.3.ebuild 887 SHA256 d80364b9077c5e68cc76c79d400f955eaf735c5cc3535606200ae496a4e47e0e SHA512 92534f4915b2b9d086c3209afb139688962f8038ea189ff6a4a4252db5f3f3dede44403dc87fcadcdba713a4981b095750f054b03a9c55cae59b0bb5557ea2cc WHIRLPOOL 5f6393bc430a8725daf0372f4df877c35c29aee6d29b1198ce17667b09d92caaeb52e112a1e12ab6648eaa78ca03707105193982dc1c6c965def10cc2744488f
+EBUILD ltrace-0.7.3_p4.ebuild 1254 SHA256 8357107f10acd8ad920fee7f08a3cf9843408b877a64aaa347064fbdff38be8f SHA512 45e226cecfa160c8c10de41fdc78b0352c303e0477925df31d3823d99e312a78b52afbf28348d41846e8bd5fbc4ba1311c8e65c0e12c5f680ee0ccbeb06ded26 WHIRLPOOL 9898a0a0ac23680d7573dc82b57a398b204ae23142bc89b25df52bed2c5cd3aa23d8904ec343019b063a4635a604f9f17403cbe81ab3d41b8d7cb0fe7fb0f235
+MISC ChangeLog 3525 SHA256 1d2346682a2450d45f9ac93e76f1610ff0ed04bd62365f480d66421d0492f043 SHA512 a952c377beb27f5ce6180c59788fd917f1053bf51c126f38bae286f22ac55ed84566cc3e2ea8b7aede006edd40ec446085f203b2bb35ddcb630c263b9451bd8a WHIRLPOOL e3398b7fab33af0ed0b89f806616497cf3087dfa78ad86645e9a403514db6c77f4aaa5c9f79c8191654154bf20fd9d11a7a86aa60d55e0ac170899c06452ac6d
+MISC ChangeLog-2015 9033 SHA256 f883c3a846f6fefcd88e511fe886da39c9b488275e80e47b3a556022b40b80ac SHA512 9106851a02a8ee96b09443885813995d8d24b9a39df0cf46f8d124e6ea78ae101eec2920b5c99c63bf39cacfdbd78b1ffc397ca9e90fba7aa3c075b929b250c6 WHIRLPOOL 96189311f84fa0ff8209d9708300a5332caaa168af4c1fa64b0de10087b3cf0fb851f59b61d5190f485565b88e2d28e45939cd16b6ea18af1b167a6e8e997a96
+MISC metadata.xml 357 SHA256 e868720c6d89ef3f17aa782bca435f9e4c3b87b015fc6df268069f17d2f9025c SHA512 fff13f831e3d3994abc654ab5c5cb97e14cbec653d42074300cf81b22da05e5318a55ae4b28198fdc7aa8169464385939f5a889ca5ba86c45aa39dfe24772a95 WHIRLPOOL b89d995980c7cc9fd083f974a0a4341eb5e77c7d6dcebb0afde9c0ccf41069bd0e05289f09841f34d030620b2bfcbf48474d0fcfdff73a5e7ee55869cbaac68a
diff --git a/dev-util/ltrace/files/0.4-parallel-make.patch b/dev-util/ltrace/files/0.4-parallel-make.patch
new file mode 100644
index 000000000000..3fd3624477ab
--- /dev/null
+++ b/dev-util/ltrace/files/0.4-parallel-make.patch
@@ -0,0 +1,11 @@
+--- ltrace-0.3.36.orig/Makefile.in 2004-11-10 01:12:03.000000000 +0200
++++ ltrace-0.3.36/Makefile.in 2006-09-02 11:10:57.000000000 +0300
+@@ -35,6 +35,8 @@
+ ltrace: sysdeps/sysdep.o $(OBJ)
+ $(CC) $(LDFLAGS) $^ $(LIBS) -o $@
+
++$(OBJ): sysdeps/sysdep.o
++
+ sysdeps/sysdep.o: dummy
+ $(MAKE) -C sysdeps/$(OS)
+
diff --git a/dev-util/ltrace/files/ltrace-0.5.3-cross.patch b/dev-util/ltrace/files/ltrace-0.5.3-cross.patch
new file mode 100644
index 000000000000..610bbccf1fd8
--- /dev/null
+++ b/dev-util/ltrace/files/ltrace-0.5.3-cross.patch
@@ -0,0 +1,20 @@
+--- configure.ac
++++ configure.ac
+@@ -8,6 +8,8 @@
+ AC_CANONICAL_HOST
+ HOST_OS="$host_os"
+ AC_SUBST(HOST_OS)
++HOST_CPU="$host_cpu"
++AC_SUBST(HOST_CPU)
+
+ dnl Checks for programs.
+ AC_PROG_CC
+@@ -84,7 +86,7 @@
+ dnl of libelf and ltrace matches.
+ AC_SYS_LARGEFILE
+ fi
+-AC_OUTPUT(Makefile testsuite/Makefile \
++AC_OUTPUT(Makefile sysdeps/linux-gnu/Makefile testsuite/Makefile \
+ testsuite/ltrace.main/Makefile testsuite/ltrace.minor/Makefile \
+ testsuite/ltrace.torture/Makefile )
+
diff --git a/dev-util/ltrace/files/ltrace-0.5.3-ppc.patch b/dev-util/ltrace/files/ltrace-0.5.3-ppc.patch
new file mode 100644
index 000000000000..e344c3e28f5b
--- /dev/null
+++ b/dev-util/ltrace/files/ltrace-0.5.3-ppc.patch
@@ -0,0 +1,10 @@
+diff -Naur ltrace-0.5.old/sysdeps/linux-gnu/Makefile.in ltrace-0.5/sysdeps/linux-gnu/Makefile.in
+--- ltrace-0.5.old/sysdeps/linux-gnu/Makefile.in 2007-12-26 18:55:42.000000000 +0000
++++ ltrace-0.5/sysdeps/linux-gnu/Makefile.in 2007-12-26 18:55:55.000000000 +0000
+@@ -1,5 +1,6 @@
+ ARCH := $(shell echo @HOST_CPU@ | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ \
+- -e s/arm.*/arm/ -e s/sa110/arm/ -e s/ppc64/ppc/ -e s/s390x/s390/)
++ -e s/arm.*/arm/ -e s/sa110/arm/ -e s/ppc64/ppc/ -e s/s390x/s390/ \
++ -e s/powerpc64/ppc/ -e s/powerpc/ppc/)
+
+ CPPFLAGS += -I$(TOPDIR)/sysdeps/linux-gnu/$(ARCH)
diff --git a/dev-util/ltrace/files/ltrace-0.5.3.1-gcc43-testsuite.patch b/dev-util/ltrace/files/ltrace-0.5.3.1-gcc43-testsuite.patch
new file mode 100644
index 000000000000..e115c97322fd
--- /dev/null
+++ b/dev-util/ltrace/files/ltrace-0.5.3.1-gcc43-testsuite.patch
@@ -0,0 +1,9 @@
+diff -Naurp ltrace-0.5-orig/testsuite/ltrace.minor/demangle-lib.cpp ltrace-0.5/testsuite/ltrace.minor/demangle-lib.cpp
+--- ltrace-0.5-orig/testsuite/ltrace.minor/demangle-lib.cpp 2006-03-13 17:12:01.000000000 -0600
++++ ltrace-0.5/testsuite/ltrace.minor/demangle-lib.cpp 2009-07-27 13:47:43.876929485 -0600
+@@ -1,4 +1,5 @@
+ #include<stddef.h>
++#include<stdlib.h>
+ #include<iostream>
+
+ #include"demangle.h"
diff --git a/dev-util/ltrace/files/ltrace-0.7.3-alpha-protos.patch b/dev-util/ltrace/files/ltrace-0.7.3-alpha-protos.patch
new file mode 100644
index 000000000000..659952bdf148
--- /dev/null
+++ b/dev-util/ltrace/files/ltrace-0.7.3-alpha-protos.patch
@@ -0,0 +1,14 @@
+Fix build failure on alpha:
+ plt.c:32:12: error: dereferencing pointer to incomplete type ‘struct library_symbol’
+ return sym->enter_addr;
+ ^
+diff -U0 -raN ltrace-0.7.3/sysdeps/linux-gnu/alpha/plt.c ltrace-0.7.3/sysdeps/linux-gnu/alpha/plt.c
+--- ltrace-0.7.3_p4/work/ltrace-0.7.3/sysdeps/linux-gnu/alpha/plt.c 2012-11-10 13:43:55.000000000 +0100
++++ foo/work/ltrace-0.7.3/sysdeps/linux-gnu/alpha/plt.c 2016-06-27 23:21:28.000000000 +0200
+@@ -23,0 +24 @@
++#include "library.h"
+diff -U0 -raN ltrace-0.7.3/sysdeps/linux-gnu/alpha/trace.c ltrace-0.7.3/sysdeps/linux-gnu/alpha/trace.c
+--- ltrace-0.7.3_p4/work/ltrace-0.7.3/sysdeps/linux-gnu/alpha/trace.c 2016-06-27 23:30:08.000000000 +0200
++++ foo/work/ltrace-0.7.3/sysdeps/linux-gnu/alpha/trace.c 2016-06-27 23:25:20.000000000 +0200
+@@ -29,0 +30 @@
++#include "backend.h"
diff --git a/dev-util/ltrace/files/ltrace-0.7.3-ia64.patch b/dev-util/ltrace/files/ltrace-0.7.3-ia64.patch
new file mode 100644
index 000000000000..4fb1c4eba734
--- /dev/null
+++ b/dev-util/ltrace/files/ltrace-0.7.3-ia64.patch
@@ -0,0 +1,39 @@
+Fix build fauilure on ia64.
+
+Build fails due to bitrot: some definitions
+moved off from <sys/pthrace.h> to <asm/ptrace.h>
+(similar to other arches).
+
+fetch.c:39:26: error: field 'regs' has incomplete type
+ struct pt_all_user_regs regs;
+ ^~~~
+fetch.c:209:25: warning: 'struct ia64_fpreg' declared inside parameter list will not be visible outside of this definition or declaration
+ fpreg_to_double (struct ia64_fpreg *fp) {
+ ^~~~~~~~~~
+fetch.c: In function 'fpreg_to_double':
+fetch.c:211:45: error: dereferencing pointer to incomplete type 'struct ia64_fpreg'
+ asm ("ldf.fill %0=%1" : "=f"(result) : "m"(*fp));
+ ^~~
+
+diff --git a/sysdeps/linux-gnu/ia64/fetch.c b/sysdeps/linux-gnu/ia64/fetch.c
+index 54dc5b8..b3b9a9a 100644
+--- a/sysdeps/linux-gnu/ia64/fetch.c
++++ b/sysdeps/linux-gnu/ia64/fetch.c
+@@ -134,9 +134,4 @@ allocate_reg(struct fetch_context *ctx, struct Process *proc,
+ return 0;
+
+- /* This would normally be brought over from asm/ptrace.h, but
+- * when we do, we get namespace conflicts between asm/fpu.h
+- * and libunwind. */
+- enum { PT_AUR_BSP = 17 };
+-
+ union cfm_t cfm = { .value = ctx->regs.cfm };
+ unsigned long *bsp = (unsigned long *)ctx->regs.ar[PT_AUR_BSP];
+diff --git a/sysdeps/linux-gnu/ia64/ptrace.h b/sysdeps/linux-gnu/ia64/ptrace.h
+index ef63b4f..8b131f1 100644
+--- a/sysdeps/linux-gnu/ia64/ptrace.h
++++ b/sysdeps/linux-gnu/ia64/ptrace.h
+@@ -20,2 +20,3 @@
+
+ #include <sys/ptrace.h>
++#include <asm/ptrace.h>
diff --git a/dev-util/ltrace/files/ltrace-0.7.3-test-protos.patch b/dev-util/ltrace/files/ltrace-0.7.3-test-protos.patch
new file mode 100644
index 000000000000..caafff4b2637
--- /dev/null
+++ b/dev-util/ltrace/files/ltrace-0.7.3-test-protos.patch
@@ -0,0 +1,71 @@
+https://bugs.gentoo.org/421649
+
+For some reason testsuite does not handle warnings well:
+ /tmp/lt-cZI2cFo0z7.c:2:24: warning: inplicit function declaration «puts» [-Wimplicit-function-declaration]
+ void func2(void) { puts("func2"); }
+ ^
+and abandons problematic tests:
+ Testcase compile failed, so all tests in this file will automatically fail.
+diff --git a/testsuite/ltrace.main/filters.exp b/testsuite/ltrace.main/filters.exp
+index 988346f..f7f4140 100644
+--- a/testsuite/ltrace.main/filters.exp
++++ b/testsuite/ltrace.main/filters.exp
+@@ -24,2 +24,3 @@ set libfilt1 [ltraceCompile libfilt1.so [ltraceSource c {
+ set libfilt2 [ltraceCompile libfilt2.so [ltraceSource c {
++ #include <stdio.h>
+ void func2(void) { puts("func2"); }
+diff --git a/testsuite/ltrace.main/parameters.c b/testsuite/ltrace.main/parameters.c
+index ff24a38..9569dbe 100644
+--- a/testsuite/ltrace.main/parameters.c
++++ b/testsuite/ltrace.main/parameters.c
+@@ -19,2 +19,3 @@ void func_strfixed(char*);
+ void func_ppp(int***);
++void func_string(char*);
+ void func_stringp(char**);
+diff --git a/testsuite/ltrace.main/signals.c b/testsuite/ltrace.main/signals.c
+index a02e795..fda4ab9 100644
+--- a/testsuite/ltrace.main/signals.c
++++ b/testsuite/ltrace.main/signals.c
+@@ -7,2 +7,3 @@
+ #include <sys/types.h>
++#include <unistd.h>
+
+diff --git a/testsuite/ltrace.minor/time-record.c b/testsuite/ltrace.minor/time-record.c
+index a66b838..7d5e5e3 100644
+--- a/testsuite/ltrace.minor/time-record.c
++++ b/testsuite/ltrace.minor/time-record.c
+@@ -7,2 +7,3 @@
+ #include <time.h>
++#include <unistd.h>
+
+diff --git a/testsuite/ltrace.minor/trace-clone.c b/testsuite/ltrace.minor/trace-clone.c
+index db1936d..c68b128 100644
+--- a/testsuite/ltrace.minor/trace-clone.c
++++ b/testsuite/ltrace.minor/trace-clone.c
+@@ -10,2 +10,3 @@
+ #include <sched.h>
++#include <unistd.h>
+
+diff --git a/testsuite/ltrace.minor/trace-fork.c b/testsuite/ltrace.minor/trace-fork.c
+index c5f0c71..e1ab17f 100644
+--- a/testsuite/ltrace.minor/trace-fork.c
++++ b/testsuite/ltrace.minor/trace-fork.c
+@@ -8,2 +8,4 @@
+ #include <sys/types.h>
++#include <sys/wait.h>
++#include <unistd.h>
+
+@@ -29,3 +31,4 @@ main ()
+ printf("My child pid is %d\n",pid);
+- wait();
++ int status;
++ wait(&status);
+ }
+diff --git a/testsuite/ltrace.torture/signals.c b/testsuite/ltrace.torture/signals.c
+index b786c81..86e2dba 100644
+--- a/testsuite/ltrace.torture/signals.c
++++ b/testsuite/ltrace.torture/signals.c
+@@ -7,2 +7,3 @@
+ #include <sys/types.h>
++#include <unistd.h>
+
diff --git a/dev-util/ltrace/ltrace-0.7.2.ebuild b/dev-util/ltrace/ltrace-0.7.2.ebuild
new file mode 100644
index 000000000000..d48cad4075cd
--- /dev/null
+++ b/dev-util/ltrace/ltrace-0.7.2.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils autotools
+
+NUM="3848"
+
+DESCRIPTION="trace library calls made at runtime"
+HOMEPAGE="http://ltrace.alioth.debian.org/"
+SRC_URI="https://alioth.debian.org/frs/download.php/${NUM}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="-alpha amd64 ~arm ~ia64 ~mips ppc ~ppc64 x86"
+IUSE="debug selinux test unwind"
+
+RDEPEND="dev-libs/elfutils
+ selinux? ( sys-libs/libselinux )
+ unwind? ( sys-libs/libunwind )"
+DEPEND="${RDEPEND}
+ test? ( dev-util/dejagnu )"
+
+src_prepare() {
+ sed -i '/^dist_doc_DATA/d' Makefile.am || die
+ eautoreconf
+}
+
+src_configure() {
+ ac_cv_header_selinux_selinux_h=$(usex selinux) \
+ ac_cv_lib_selinux_security_get_boolean_active=$(usex selinux) \
+ econf \
+ --disable-werror \
+ $(use_enable debug) \
+ $(use_with unwind libunwind)
+}
diff --git a/dev-util/ltrace/ltrace-0.7.3.ebuild b/dev-util/ltrace/ltrace-0.7.3.ebuild
new file mode 100644
index 000000000000..398859437833
--- /dev/null
+++ b/dev-util/ltrace/ltrace-0.7.3.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils autotools
+
+NUM="3947"
+
+DESCRIPTION="trace library calls made at runtime"
+HOMEPAGE="http://ltrace.alioth.debian.org/"
+SRC_URI="https://alioth.debian.org/frs/download.php/file/${NUM}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="-alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~x86"
+IUSE="debug selinux test unwind"
+
+RDEPEND="dev-libs/elfutils
+ selinux? ( sys-libs/libselinux )
+ unwind? ( sys-libs/libunwind )"
+DEPEND="${RDEPEND}
+ test? ( dev-util/dejagnu )"
+
+src_prepare() {
+ sed -i '/^dist_doc_DATA/d' Makefile.am || die
+ eautoreconf
+}
+
+src_configure() {
+ ac_cv_header_selinux_selinux_h=$(usex selinux) \
+ ac_cv_lib_selinux_security_get_boolean_active=$(usex selinux) \
+ econf \
+ --disable-werror \
+ $(use_enable debug) \
+ $(use_with unwind libunwind)
+}
diff --git a/dev-util/ltrace/ltrace-0.7.3_p4.ebuild b/dev-util/ltrace/ltrace-0.7.3_p4.ebuild
new file mode 100644
index 000000000000..a818ab970852
--- /dev/null
+++ b/dev-util/ltrace/ltrace-0.7.3_p4.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit autotools eutils
+
+LTRACE_V=${PV/_p*/}
+DB_V=${PV/*_p/}
+
+DESCRIPTION="trace library calls made at runtime"
+HOMEPAGE="http://ltrace.alioth.debian.org/"
+SRC_URI="
+ mirror://debian/pool/main/l/${PN}/${PN}_${LTRACE_V}.orig.tar.bz2
+ mirror://debian/pool/main/l/${PN}/${PN}_${LTRACE_V}-${DB_V}.debian.tar.gz
+"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
+IUSE="debug selinux test unwind"
+
+RDEPEND="dev-libs/elfutils
+ selinux? ( sys-libs/libselinux )
+ unwind? ( sys-libs/libunwind )"
+DEPEND="${RDEPEND}
+ sys-libs/binutils-libs
+ test? ( dev-util/dejagnu )"
+
+S=${WORKDIR}/${PN}-${LTRACE_V}
+
+src_prepare() {
+ epatch "${WORKDIR}"/debian/patches/[0-9]*
+ epatch "${FILESDIR}"/${PN}-0.7.3-test-protos.patch #bug 421649
+ epatch "${FILESDIR}"/${PN}-0.7.3-alpha-protos.patch
+ epatch "${FILESDIR}"/${PN}-0.7.3-ia64.patch
+ sed -i '/^dist_doc_DATA/d' Makefile.am || die
+ eautoreconf
+}
+
+src_configure() {
+ ac_cv_header_selinux_selinux_h=$(usex selinux) \
+ ac_cv_lib_selinux_security_get_boolean_active=$(usex selinux) \
+ econf \
+ --disable-werror \
+ $(use_enable debug) \
+ $(use_with unwind libunwind)
+}
diff --git a/dev-util/ltrace/metadata.xml b/dev-util/ltrace/metadata.xml
new file mode 100644
index 000000000000..e3ce665bb25c
--- /dev/null
+++ b/dev-util/ltrace/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>slyfox@gentoo.org</email>
+ <name>Sergei Trofimovich</name>
+ </maintainer>
+ <use>
+ <flag name="unwind">Use <pkg>sys-libs/libunwind</pkg> for frame unwinding support</flag>
+ </use>
+</pkgmetadata>
diff --git a/dev-util/lttng-modules/Manifest b/dev-util/lttng-modules/Manifest
new file mode 100644
index 000000000000..c62c88ef41f7
--- /dev/null
+++ b/dev-util/lttng-modules/Manifest
@@ -0,0 +1,11 @@
+DIST lttng-modules-2.6.4.tar.bz2 295609 SHA256 2e476958563839140a1d5f4316a51ea73fd54283464e050494977a62846099e0 SHA512 ec93456829b04964d0c9befd1071e220bc047e3bf57978bf9e6a666d0be418c5825873746604e0758cd8fcd47f70f4471e0b190ad87f53b79d7efa94febeef03 WHIRLPOOL 4a1bb3f04e91eba8e668efe156dc3e553090071777aef9773d17c8235fffc7746635e34eaa979cd736a43b51047f5251f44a74d85c70d0f602a0704d6152aa10
+DIST lttng-modules-2.7.1.tar.bz2 297555 SHA256 3ce48a0d0fef39d2cc4687ec866de8f2fe49289faad02425b689559d7ddd077f SHA512 77609c7b7bc0a8315dd4c635c1be2d84cc1a946438323b362bd25cfcd97f2cf9655aefdbca8b96fceb61db7b733219251d2f9f2e1a46c7534c5d1c622c03b744 WHIRLPOOL 671f9eb773742ea8409806cf1ed26911654910c8c75a719654c6c0e154b80b07c4319cbf94b4a1114ffbca4d935e4631d7128701764d84622117c5f1d1b033bb
+DIST lttng-modules-2.7.4.tar.bz2 302329 SHA256 1ae1c6c5848e10df88698db94364188b97c4c116b1ea50831d018abd2b965e17 SHA512 bdec56c59f282be9a7d191f7799db5b66577f231f92e8fffbc1dad059706fe07c4dd288e74b516e8f6c13cc0da8a54f5e5dd913ae39639489b8eb1507ede08a8 WHIRLPOOL 1485835f9d999963230979e7516afb50591bebbe865a6e81fda88a4fa12ee66b4eebc7c4d0a77aff5bffc04fbeb0791fba719d7cdc3c861891598ce3de5809a5
+DIST lttng-modules-2.8.0.tar.bz2 315529 SHA256 b067f8a9c101dc244170ae5b66fc1d2f0547448162080a00f2a1df3701e63d29 SHA512 760a4417ca6113501f99177eded3dfdf39477a8978894d414c3e2f49c1e86716dc7a076d43f67b3fffb52e1f05ef1bc2671c0e30cfe0cead41c97a8ac1488d8c WHIRLPOOL cd8b209a75ac90f83e7425ce6923d9e8554ee97ea925b55f8c9ad198933a33f2c333c124d69c548c9304d06da7f8465b45854d0dae0e82f6feb1a8ee4a6bc072
+EBUILD lttng-modules-2.6.4.ebuild 966 SHA256 42b163bf219edf1401e7425d5a87f2e2226c10af922032c540c2978404c091b5 SHA512 b54bd61a9ce611420785c84ed0b7ec6a9e735f982ec91625540389c7198552cdafe3291d9216cb5e98ef132556c2d79a8bb7fb06a9dd311d64ff7700ac4c080e WHIRLPOOL 9bdcdbaa4b8aaeebfa75c1997f312d3ebb8f48e8fb5052b83ff1aaa56fbc6dfa58ac9406b81d29be2b285d372dc71e6408fe9d3e96be4f11492a4dc4a8382708
+EBUILD lttng-modules-2.7.1.ebuild 964 SHA256 7848f913d5eaa434df38aa40ab8f4dabce8decd7cd082e4d583f36670a6d4a1e SHA512 ae8b58e4d351c9d85b7371a571f4e700e3c9c6ed74ea977ca388cd24e559ea135be96a518eb42bf02bcdffdca1089b2caedebc8b35ba4d7e7135bfc245023d5d WHIRLPOOL b131dc449236d60ef5b6388a611a4cdef827196f5ac7524ee0643f36b0adaa17ecc0b2031e9a13b8e0a8ecbc8317713acc12eb7602a5b4aff1d9fe52ff424d4d
+EBUILD lttng-modules-2.7.4.ebuild 966 SHA256 42b163bf219edf1401e7425d5a87f2e2226c10af922032c540c2978404c091b5 SHA512 b54bd61a9ce611420785c84ed0b7ec6a9e735f982ec91625540389c7198552cdafe3291d9216cb5e98ef132556c2d79a8bb7fb06a9dd311d64ff7700ac4c080e WHIRLPOOL 9bdcdbaa4b8aaeebfa75c1997f312d3ebb8f48e8fb5052b83ff1aaa56fbc6dfa58ac9406b81d29be2b285d372dc71e6408fe9d3e96be4f11492a4dc4a8382708
+EBUILD lttng-modules-2.8.0.ebuild 966 SHA256 42b163bf219edf1401e7425d5a87f2e2226c10af922032c540c2978404c091b5 SHA512 b54bd61a9ce611420785c84ed0b7ec6a9e735f982ec91625540389c7198552cdafe3291d9216cb5e98ef132556c2d79a8bb7fb06a9dd311d64ff7700ac4c080e WHIRLPOOL 9bdcdbaa4b8aaeebfa75c1997f312d3ebb8f48e8fb5052b83ff1aaa56fbc6dfa58ac9406b81d29be2b285d372dc71e6408fe9d3e96be4f11492a4dc4a8382708
+MISC ChangeLog 3132 SHA256 41cb0db0aafe7dfa12af7c68451e2072e3f27a0c3e1396b9a9ae124d9da2601b SHA512 6031cb0bba131b1cf63b4f8e15fd23e6614a573866032779c249c8a5f2b191caedf61ddd14b6458f5d8b2283a8c9b1649a43714413e9f8f6491110f171c10aa3 WHIRLPOOL c0b2dc16731cf5ee71ee4e2df0899eeeee515669253302d9ce7919edaec06017c04fab3d9608462898bca958a9484895478204246f11705259a586e0cb48fcf7
+MISC ChangeLog-2015 1000 SHA256 147f020ec89bb99afe47fe22a574adf30c618b2f46176f158c6e5bf111d25d6b SHA512 fbd61c5b6bda94179a7c9ad64fe786f02f88bce3a14321d5cde02222e7864208853c0c5c06267c35f1b85fd6ddd1617057f1394e68485980f13309f7c33915ab WHIRLPOOL 5399e65ba55aefcaf0eab1b82b4f40a00335552d31a4ca8c1522ee833f2203dc73fa3cd8d2f1177f950bb5dbd6e02f5753c821d27ab4f4d73e92866adb8f3a12
+MISC metadata.xml 695 SHA256 4c9bc5825dccbe5d21fda04852688e202567ae20ad331e8a4f0d3bdca7e700b2 SHA512 04c53b397e1a57634fca43761c76031f4c19299c15a0e639964de526691ad90c81326f7bfcf42afe1073830c66600b653165a752381c983a021478e112f8b6f8 WHIRLPOOL ea693197fce9acbbf493a8cdab58addc5222693f3760ab63e084030456e50b126bd328e23f484179547286276807a03908badc9131fbecdc2893ac82e79802e9
diff --git a/dev-util/lttng-modules/lttng-modules-2.6.4.ebuild b/dev-util/lttng-modules/lttng-modules-2.6.4.ebuild
new file mode 100644
index 000000000000..d7f32b7b99d1
--- /dev/null
+++ b/dev-util/lttng-modules/lttng-modules-2.6.4.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit linux-mod versionator
+
+MY_P="${P/_rc/-rc}"
+MY_SLOT="$(get_version_component_range 1-2)"
+
+DESCRIPTION="LTTng Kernel Tracer Modules"
+HOMEPAGE="http://lttng.org"
+SRC_URI="http://lttng.org/files/${PN}/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0/${MY_SLOT}"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+BUILD_TARGETS="default"
+
+CONFIG_CHECK="MODULES KALLSYMS HIGH_RES_TIMERS TRACEPOINTS
+ ~HAVE_SYSCALL_TRACEPOINTS ~PERF_EVENTS ~EVENT_TRACING ~KPROBES KRETPROBES"
+
+MODULE_NAMES="true"
+
+S="${WORKDIR}/${MY_P}"
+
+pkg_pretend() {
+ if kernel_is lt 2 6 27; then
+ eerror "${PN} require Linux kernel >= 2.6.27"
+ die "Please update your kernel!"
+ fi
+}
+
+src_install() {
+ for i in $(find "${S}" -name "*.ko" -print); do
+ local val=${i##${S}/}
+ local modules+="${val%%.ko}(misc:) "
+ done
+ MODULE_NAMES=${modules}
+
+ linux-mod_src_install
+ dodoc ChangeLog README.md TODO
+}
diff --git a/dev-util/lttng-modules/lttng-modules-2.7.1.ebuild b/dev-util/lttng-modules/lttng-modules-2.7.1.ebuild
new file mode 100644
index 000000000000..816b24592955
--- /dev/null
+++ b/dev-util/lttng-modules/lttng-modules-2.7.1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit linux-mod versionator
+
+MY_P="${P/_rc/-rc}"
+MY_SLOT="$(get_version_component_range 1-2)"
+
+DESCRIPTION="LTTng Kernel Tracer Modules"
+HOMEPAGE="http://lttng.org"
+SRC_URI="http://lttng.org/files/${PN}/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0/${MY_SLOT}"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+BUILD_TARGETS="default"
+
+CONFIG_CHECK="MODULES KALLSYMS HIGH_RES_TIMERS TRACEPOINTS
+ ~HAVE_SYSCALL_TRACEPOINTS ~PERF_EVENTS ~EVENT_TRACING ~KPROBES KRETPROBES"
+
+MODULE_NAMES="true"
+
+S="${WORKDIR}/${MY_P}"
+
+pkg_pretend() {
+ if kernel_is lt 2 6 27; then
+ eerror "${PN} require Linux kernel >= 2.6.27"
+ die "Please update your kernel!"
+ fi
+}
+
+src_install() {
+ for i in $(find "${S}" -name "*.ko" -print); do
+ local val=${i##${S}/}
+ local modules+="${val%%.ko}(misc:) "
+ done
+ MODULE_NAMES=${modules}
+
+ linux-mod_src_install
+ dodoc ChangeLog README.md TODO
+}
diff --git a/dev-util/lttng-modules/lttng-modules-2.7.4.ebuild b/dev-util/lttng-modules/lttng-modules-2.7.4.ebuild
new file mode 100644
index 000000000000..d7f32b7b99d1
--- /dev/null
+++ b/dev-util/lttng-modules/lttng-modules-2.7.4.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit linux-mod versionator
+
+MY_P="${P/_rc/-rc}"
+MY_SLOT="$(get_version_component_range 1-2)"
+
+DESCRIPTION="LTTng Kernel Tracer Modules"
+HOMEPAGE="http://lttng.org"
+SRC_URI="http://lttng.org/files/${PN}/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0/${MY_SLOT}"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+BUILD_TARGETS="default"
+
+CONFIG_CHECK="MODULES KALLSYMS HIGH_RES_TIMERS TRACEPOINTS
+ ~HAVE_SYSCALL_TRACEPOINTS ~PERF_EVENTS ~EVENT_TRACING ~KPROBES KRETPROBES"
+
+MODULE_NAMES="true"
+
+S="${WORKDIR}/${MY_P}"
+
+pkg_pretend() {
+ if kernel_is lt 2 6 27; then
+ eerror "${PN} require Linux kernel >= 2.6.27"
+ die "Please update your kernel!"
+ fi
+}
+
+src_install() {
+ for i in $(find "${S}" -name "*.ko" -print); do
+ local val=${i##${S}/}
+ local modules+="${val%%.ko}(misc:) "
+ done
+ MODULE_NAMES=${modules}
+
+ linux-mod_src_install
+ dodoc ChangeLog README.md TODO
+}
diff --git a/dev-util/lttng-modules/lttng-modules-2.8.0.ebuild b/dev-util/lttng-modules/lttng-modules-2.8.0.ebuild
new file mode 100644
index 000000000000..d7f32b7b99d1
--- /dev/null
+++ b/dev-util/lttng-modules/lttng-modules-2.8.0.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit linux-mod versionator
+
+MY_P="${P/_rc/-rc}"
+MY_SLOT="$(get_version_component_range 1-2)"
+
+DESCRIPTION="LTTng Kernel Tracer Modules"
+HOMEPAGE="http://lttng.org"
+SRC_URI="http://lttng.org/files/${PN}/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0/${MY_SLOT}"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+BUILD_TARGETS="default"
+
+CONFIG_CHECK="MODULES KALLSYMS HIGH_RES_TIMERS TRACEPOINTS
+ ~HAVE_SYSCALL_TRACEPOINTS ~PERF_EVENTS ~EVENT_TRACING ~KPROBES KRETPROBES"
+
+MODULE_NAMES="true"
+
+S="${WORKDIR}/${MY_P}"
+
+pkg_pretend() {
+ if kernel_is lt 2 6 27; then
+ eerror "${PN} require Linux kernel >= 2.6.27"
+ die "Please update your kernel!"
+ fi
+}
+
+src_install() {
+ for i in $(find "${S}" -name "*.ko" -print); do
+ local val=${i##${S}/}
+ local modules+="${val%%.ko}(misc:) "
+ done
+ MODULE_NAMES=${modules}
+
+ linux-mod_src_install
+ dodoc ChangeLog README.md TODO
+}
diff --git a/dev-util/lttng-modules/metadata.xml b/dev-util/lttng-modules/metadata.xml
new file mode 100644
index 000000000000..26a5660b7e94
--- /dev/null
+++ b/dev-util/lttng-modules/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>dlan@gentoo.org</email>
+ <name>Yixun Lan</name>
+ </maintainer>
+
+ <longdescription>
+ Use the kernel tracer if you are debugging a system-wide performance problem or a kernel problem. This tracer comes with an instrumentation patch for most kernel subsystems, which is enough to debug many problems. This includes system calls, IRQs, traps, memory management, softIRQs, scheduling and many others. Of course, the kernel tracer allows you to add your own instrumentation anywhere in the kernel code.
+ </longdescription>
+</pkgmetadata>
diff --git a/dev-util/lttng-tools/Manifest b/dev-util/lttng-tools/Manifest
new file mode 100644
index 000000000000..41a35cb3a312
--- /dev/null
+++ b/dev-util/lttng-tools/Manifest
@@ -0,0 +1,11 @@
+DIST lttng-tools-2.6.1.tar.bz2 956120 SHA256 70ec8e24f8ea12f593d77c6bdc5348e4124dcb4897e8c0eb6fba25048fd31137 SHA512 7b2de0a42975e3c8ced67ed877417684892322c477a35a310c13ddbf84fcf125ee87156bae56b802eacec7757a927388d764e917ce8da8e57bfd33fdae3da469 WHIRLPOOL 22596b4572ffddd025c89c51eb234096105526614e2c5616bdc0f0ee97c83aab03852cd02af6890c2cb590b6c003dcd8a02ab87c849d792763624442f45c3b00
+DIST lttng-tools-2.7.1.tar.bz2 984351 SHA256 0c799fb21dfa42475feaa1507ded934608b2e531039b46c40e944a5b81c7b21c SHA512 b0cafa5b74182a077232dbe2b73ed4e2267a921a62163367f0e7e14463e176d4538fc6ec27b8737f55fc417734677e5d22efc65685f885fa5f892f7900ee0e2d WHIRLPOOL cfe0db0679e128888dfe0061bfaeb5b8b337900a1b1e84cf1aaafec230638e67744cc0873f2959456f3cc1c91e6c9c9458f64a10c2fe835e34af4bf2778b956b
+DIST lttng-tools-2.7.3.tar.bz2 986692 SHA256 e477997036e1337a6fa97dd11109d28a64d8c99d4f4af3cfa698f68a5db74a61 SHA512 17568232b24028757b623c63bf40fc2929e700ecafe3e759d891373fc7342458c3d26c2199fcbbde6deeb1746b6bc8e7e95b7c19bb33c40f4c97339c4c04c459 WHIRLPOOL 5aa6c840517a9bd5da7881410551dc45a47f8ba48d1c8bf1544a75de2598dc9afb1fae3af684b97e52a7ba463ef1d188724c9cf15fe56bc9fe03ce780083549d
+DIST lttng-tools-2.8.0.tar.bz2 1118863 SHA256 2651a6c30bf26ebbdc218fdf75772b834ee42cccf0d6e14d7dac4c575fd02bd5 SHA512 2a49b9f83b2a53dda653d8bf7cf35cbc67173912a38d9d52e2eb9313deb8a64ec9b5f7751055dc56cd972aaf412694088a7cc63297338448418872da5791d7a2 WHIRLPOOL 4aec0419dc8bb74502ec6b952398d082b0ec0a9abd5ab76ad6551b01b64b63949dfbb39ac015de944512200d65bd60d3992c31005f8575425bd9eeef208e15ee
+EBUILD lttng-tools-2.6.1.ebuild 861 SHA256 73ae8583a0cb2d651c46597f3ed6e71f99b41523e8ece599ae2336a6ce6e3cdb SHA512 36de610728b91d969724beb8f8b323b2ba55e23acdee7e30a4bbc0559204bba894f3d45b10ca2343baca92ccf1b910cb2b19e1469fc439b45743c3aac964923e WHIRLPOOL ec6a128782710e3b04bf37fda2d30990421571857ade337e329c3ab5ad439c080d2a367fd15abc85665ed914f3146761a96ff089471021c2d15fdc989dea4f03
+EBUILD lttng-tools-2.7.1.ebuild 859 SHA256 554f9f71f1e3529b11a5e87ac79d7efd079e13d05beb94fe3afda1992056b573 SHA512 c08fa1100598dddca0178170658fe1879362e2d8a8f474f7fa314a9599e03c8ec98399104b509c0fd34b590f33c2ee76a8c6ea0fe629c9b222fb9d81cf408fe0 WHIRLPOOL 35f3fe90d4ec2b4a0ba06bc1c02be5f5429cae6c73a6bba2099f6bc7a638f8c2d9e6571e3b5b59c8674211431db7ad92481e1530b713ac4f7fe34e660b7260bb
+EBUILD lttng-tools-2.7.3.ebuild 861 SHA256 73ae8583a0cb2d651c46597f3ed6e71f99b41523e8ece599ae2336a6ce6e3cdb SHA512 36de610728b91d969724beb8f8b323b2ba55e23acdee7e30a4bbc0559204bba894f3d45b10ca2343baca92ccf1b910cb2b19e1469fc439b45743c3aac964923e WHIRLPOOL ec6a128782710e3b04bf37fda2d30990421571857ade337e329c3ab5ad439c080d2a367fd15abc85665ed914f3146761a96ff089471021c2d15fdc989dea4f03
+EBUILD lttng-tools-2.8.0.ebuild 861 SHA256 73ae8583a0cb2d651c46597f3ed6e71f99b41523e8ece599ae2336a6ce6e3cdb SHA512 36de610728b91d969724beb8f8b323b2ba55e23acdee7e30a4bbc0559204bba894f3d45b10ca2343baca92ccf1b910cb2b19e1469fc439b45743c3aac964923e WHIRLPOOL ec6a128782710e3b04bf37fda2d30990421571857ade337e329c3ab5ad439c080d2a367fd15abc85665ed914f3146761a96ff089471021c2d15fdc989dea4f03
+MISC ChangeLog 3487 SHA256 7a36116f9f25a79e22a7b0ac9b320d8454accc4a2e0b94de24c6afc9932115e6 SHA512 df1239d9b821e37d8b9a5592120b877cb3727153a76dad63cb655b48dc06acebc5266882837cd3ce3b8062951afa777039cd8a26a2feb83acbe7f72f561a0f9b WHIRLPOOL a53ab8ffb1c0d71754cd510acb49b7dc915c5f10ebab14041db130fe4e821e3e77955bcf6b294e60251384c0f0e5a281729b83c1d8664db3ad244bbabd3e3f4b
+MISC ChangeLog-2015 966 SHA256 ca307ac3ceefca3b2b5191106082ed85b8a109f6cdfacaeb490fe9412b85a263 SHA512 c79414617fb30f577d87fabcfdf57e43cfdd4d229087c2d240eb255d01d42aed6f21fd0f31cc4814bf973d15be56cd98783fbdbf24c0f613a8870a61aaabefb3 WHIRLPOOL 38412b79726b8aa09703f5bd08c9ed87ff8c7faf1f11f94ca0dd0e17660638a68c7d2713cc1ec434d0f878275719f9be07dcff38fdff858fe79c4c7a44f97c80
+MISC metadata.xml 493 SHA256 828c9349b2f3575e4cae9a5d85cd797fc48307435ad8bd3b87e023acceca60a4 SHA512 39a5a7c28b3471efe353af48d001726df67d061cf89a11c1a7f8f80309c9d591f594787968570af1af86d2f5ac2ddfcb9d81bd84604d2836d28b184c414af252 WHIRLPOOL a4cb746fd403219158a8b9e5ced602b509953f6889e7be3498edc3b36b2173a896e5eefea46252c6e5659659cdaee9caa794ef6d568908787db551923932e9a2
diff --git a/dev-util/lttng-tools/lttng-tools-2.6.1.ebuild b/dev-util/lttng-tools/lttng-tools-2.6.1.ebuild
new file mode 100644
index 000000000000..9f1c5e6a680d
--- /dev/null
+++ b/dev-util/lttng-tools/lttng-tools-2.6.1.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit linux-info versionator
+
+MY_P="${P/_rc/-rc}"
+MY_SLOT="$(get_version_component_range 1-2)"
+
+DESCRIPTION="Linux Trace Toolkit - next generation"
+HOMEPAGE="http://lttng.org"
+SRC_URI="http://lttng.org/files/${PN}/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0/${MY_SLOT}"
+KEYWORDS="~amd64 ~x86"
+IUSE="+ust"
+
+DEPEND="dev-libs/userspace-rcu
+ dev-libs/popt
+ dev-libs/libxml2
+ ust? ( dev-util/lttng-ust:= )
+"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+pkg_pretend() {
+ if kernel_is -lt 2 6 27; then
+ ewarn "${PN} require Linux kernel >= 2.6.27"
+ ewarn " pipe2(), epoll_create1() and SOCK_CLOEXEC are needed to run"
+ ewarn " the session daemon. There were introduce in the 2.6.27"
+ fi
+}
+
+src_configure() {
+ econf $(use_enable ust lttng-ust)
+}
diff --git a/dev-util/lttng-tools/lttng-tools-2.7.1.ebuild b/dev-util/lttng-tools/lttng-tools-2.7.1.ebuild
new file mode 100644
index 000000000000..37b1fe1b01d6
--- /dev/null
+++ b/dev-util/lttng-tools/lttng-tools-2.7.1.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit linux-info versionator
+
+MY_P="${P/_rc/-rc}"
+MY_SLOT="$(get_version_component_range 1-2)"
+
+DESCRIPTION="Linux Trace Toolkit - next generation"
+HOMEPAGE="http://lttng.org"
+SRC_URI="http://lttng.org/files/${PN}/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0/${MY_SLOT}"
+KEYWORDS="amd64 x86"
+IUSE="+ust"
+
+DEPEND="dev-libs/userspace-rcu
+ dev-libs/popt
+ dev-libs/libxml2
+ ust? ( dev-util/lttng-ust:= )
+"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+pkg_pretend() {
+ if kernel_is -lt 2 6 27; then
+ ewarn "${PN} require Linux kernel >= 2.6.27"
+ ewarn " pipe2(), epoll_create1() and SOCK_CLOEXEC are needed to run"
+ ewarn " the session daemon. There were introduce in the 2.6.27"
+ fi
+}
+
+src_configure() {
+ econf $(use_enable ust lttng-ust)
+}
diff --git a/dev-util/lttng-tools/lttng-tools-2.7.3.ebuild b/dev-util/lttng-tools/lttng-tools-2.7.3.ebuild
new file mode 100644
index 000000000000..9f1c5e6a680d
--- /dev/null
+++ b/dev-util/lttng-tools/lttng-tools-2.7.3.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit linux-info versionator
+
+MY_P="${P/_rc/-rc}"
+MY_SLOT="$(get_version_component_range 1-2)"
+
+DESCRIPTION="Linux Trace Toolkit - next generation"
+HOMEPAGE="http://lttng.org"
+SRC_URI="http://lttng.org/files/${PN}/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0/${MY_SLOT}"
+KEYWORDS="~amd64 ~x86"
+IUSE="+ust"
+
+DEPEND="dev-libs/userspace-rcu
+ dev-libs/popt
+ dev-libs/libxml2
+ ust? ( dev-util/lttng-ust:= )
+"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+pkg_pretend() {
+ if kernel_is -lt 2 6 27; then
+ ewarn "${PN} require Linux kernel >= 2.6.27"
+ ewarn " pipe2(), epoll_create1() and SOCK_CLOEXEC are needed to run"
+ ewarn " the session daemon. There were introduce in the 2.6.27"
+ fi
+}
+
+src_configure() {
+ econf $(use_enable ust lttng-ust)
+}
diff --git a/dev-util/lttng-tools/lttng-tools-2.8.0.ebuild b/dev-util/lttng-tools/lttng-tools-2.8.0.ebuild
new file mode 100644
index 000000000000..9f1c5e6a680d
--- /dev/null
+++ b/dev-util/lttng-tools/lttng-tools-2.8.0.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit linux-info versionator
+
+MY_P="${P/_rc/-rc}"
+MY_SLOT="$(get_version_component_range 1-2)"
+
+DESCRIPTION="Linux Trace Toolkit - next generation"
+HOMEPAGE="http://lttng.org"
+SRC_URI="http://lttng.org/files/${PN}/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0/${MY_SLOT}"
+KEYWORDS="~amd64 ~x86"
+IUSE="+ust"
+
+DEPEND="dev-libs/userspace-rcu
+ dev-libs/popt
+ dev-libs/libxml2
+ ust? ( dev-util/lttng-ust:= )
+"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+pkg_pretend() {
+ if kernel_is -lt 2 6 27; then
+ ewarn "${PN} require Linux kernel >= 2.6.27"
+ ewarn " pipe2(), epoll_create1() and SOCK_CLOEXEC are needed to run"
+ ewarn " the session daemon. There were introduce in the 2.6.27"
+ fi
+}
+
+src_configure() {
+ econf $(use_enable ust lttng-ust)
+}
diff --git a/dev-util/lttng-tools/metadata.xml b/dev-util/lttng-tools/metadata.xml
new file mode 100644
index 000000000000..94dfadace4f4
--- /dev/null
+++ b/dev-util/lttng-tools/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>dlan@gentoo.org</email>
+ <name>Yixun Lan</name>
+ </maintainer>
+
+ <longdescription>
+ LTTng, the Linux Trace Toolkit Next Generation, is a project that aims at producing a highly efficient full system tracing solution
+ </longdescription>
+ <use>
+ <flag name="ust">Support LTTng-UST (Userspace Tracing)</flag>
+ </use>
+</pkgmetadata>
diff --git a/dev-util/lttng-ust/Manifest b/dev-util/lttng-ust/Manifest
new file mode 100644
index 000000000000..e868ca2d764b
--- /dev/null
+++ b/dev-util/lttng-ust/Manifest
@@ -0,0 +1,11 @@
+DIST lttng-ust-2.6.5.tar.bz2 619053 SHA256 31ad8ae3a63a5009747732b5d015d19cd3fdb9a4524dcdc7b92c6b29b2120d8a SHA512 bf144c987b7ff62f70551db51a5605bc006b1d8a0e7f4197e1a2c7a7d79a1e4e786a658d0ec885f7d56c4d4f405da23717137c8b0d2be6289fc16ca84f06a230 WHIRLPOOL bec7bf92e07c2b606c726b48c691524f4821ce1dd7715a0784603968f40f2e1b01558f92d5a7019e060aa413624c96b35ad8242b261d2e936b0a315ca8529858
+DIST lttng-ust-2.7.1.tar.bz2 643906 SHA256 878438f10a488aa5855615a3108f4759bd123fa795d70c34647146d70103ce16 SHA512 80ba4b79df2a0ba0606a31145a427c8c5b30e2a4ace20f9e4602738ace99fe88146569de549288ff33c809a606b6973c17c3effcf9699b5dca3383b8da5b10ee WHIRLPOOL b6f5d40594bddf60c5463167d70d09633b0bca9593c5b018ecf3220819926a0d44af6288340d76c3dfe2aea9b4c29a9301285b98f5aa55884a9efa39f7e82287
+DIST lttng-ust-2.7.4.tar.bz2 648002 SHA256 22f0c5cc81dfba1fca5ca31b00a5c1e1d3355bb8bab0cfbcb65996b28f01381c SHA512 f3164fd72724065d23b2b21aaa037b6e90f4eeb9dad75f16af4766374cd8a0a7a6eb2c815d93c17950a1048c5a32e6b334fa31b3d4b0f8314e352a9ddc8d4395 WHIRLPOOL f2f07db5ca98fa4d79c6e6af547705d9a3e81f3cb9ad4d3a2a6a1a27c49899823f0448dd37ffb569a19c4ad74af1bd49511ff40e99971c7c6866803adbb908ef
+DIST lttng-ust-2.8.1.tar.bz2 743271 SHA256 6e41349107e83e7b43c69ed358e48788ca2fd095bad61737b850e3f3d2c0508a SHA512 15c459620cb73ef5be8c7df2ef02663ef650555b973a3d1ed976ae38068b53a8c83143a611bcb53e91a3f211361c44cd2a331cb41dd53d28a69924f7ac44cc95 WHIRLPOOL fe0dab78804fe9ebefe4470936b36ae416c5570369c71bf6b7ad1fcd71de888a4bc509629e7d8ec03df8b13cb291263659fb3f072e20f19160754ed025b7f550
+EBUILD lttng-ust-2.6.5.ebuild 634 SHA256 cac864c8a821a5a72fd3babf23dfc0a0fdef66cc0af8689370bf809a8d2f5c44 SHA512 610deadc2813386c71b3449fec096c0793be2e08315085e25d10331b55153bbeeecfd371eb9ba900117c8ff18841085d72a870dd61a96ff821b6284491262a05 WHIRLPOOL 1a24d23be170b1b8fc2512316f09c9ddd0c56683e84dab3a28c3a5c41b35e30ba432f1ad17627d4d91ed81f7c42f7c3a1b086d757fffc8aea4907c30085e73c6
+EBUILD lttng-ust-2.7.1.ebuild 632 SHA256 44095f830cc7bfab59dd213904a64523f9617f750a57bb61680336829479ffcd SHA512 7848f28030dd7ede00ed14d0924af46d589d549dbd73d5afb83b0a06fd2600ddd01c2e32eebe5ed7aa243225d63fbc1648e2d66f38794c0f85a4e6e9fdadabe7 WHIRLPOOL edda8f96770fa19638b00c3e8dba237be017fe89df579530f45eda40309d6c8d59573def7bd139f14027f94e1d70c54c07868017b503d51e0c2951649a872405
+EBUILD lttng-ust-2.7.4.ebuild 634 SHA256 cac864c8a821a5a72fd3babf23dfc0a0fdef66cc0af8689370bf809a8d2f5c44 SHA512 610deadc2813386c71b3449fec096c0793be2e08315085e25d10331b55153bbeeecfd371eb9ba900117c8ff18841085d72a870dd61a96ff821b6284491262a05 WHIRLPOOL 1a24d23be170b1b8fc2512316f09c9ddd0c56683e84dab3a28c3a5c41b35e30ba432f1ad17627d4d91ed81f7c42f7c3a1b086d757fffc8aea4907c30085e73c6
+EBUILD lttng-ust-2.8.1.ebuild 641 SHA256 2a50c9cff0cd0ad0385f3381ac19ee8baf09457abc4f7eff1c281c7ca50f502b SHA512 61658607c167802cfce29c2b866106ee16a010d0bba434da91c1bb57c0681ee51ce891374bd8aedad806066edf573cc725de124ad310ac63a0013f0f337e8a0e WHIRLPOOL 5a8af5eee69a0f5c2cfb65f9d143b8a61cfe75818a47dac770353d682ebcead9aa537e85ec1a3f375029fd88e064647c457ed8a460a36e79127eceebf5ae1b9c
+MISC ChangeLog 3173 SHA256 550eb9f34818ab5ee43accd42cf93b4e3f67122c5c6954f3331e25c06c8c7281 SHA512 f3a4fe36bab3aca408d1ecfde4fac74ff5ec5c862314b1e74916dc4524b0f7a49a9623df8f5ce85a7d18cd08cb4c1c87d5d990dacbf4c71a35e699c858309e6c WHIRLPOOL 525fac9d8a6eff2e88cb52b84878d955fdacbb467cfd079b1befc70710923c6d05d3938685884400134dce47540edd0066165e8f378956531c20dc8466543c90
+MISC ChangeLog-2015 1116 SHA256 2963a1c20473daca3d4c95ad7f3b02ca0acf44923e770f819eaa917992ae19fb SHA512 9d11579c318e2f0ad9b5b71790e02d7a6621a4b82b1d82412fb80c74465cc14c1a512ec4cc7785979962f3ccd303f40cc13941c54d51252517b0b4e168ed7bd1 WHIRLPOOL 6bec2617307cb1dfb82807ff64395fdac4d0fd9b0876f79685c88bb063d7df12d6089a3a12431f6a447b011a1958c67e733c5b69a13033080d281c1b1a06b3d0
+MISC metadata.xml 639 SHA256 4db601251a26e13242364b942842c3e6adcdbeac38fe1246b29cc1c6012b4faf SHA512 4887f60d12b32ff0b08ce5457fa2e56fd76aab443df0fc0a610ddcab02c3a85c7a6dc196ac58a725f7dc268c6b8aadbdddfef78c415bbb640f7b1bc0bda7577f WHIRLPOOL 3cb8afa6a0bee14d913269d50d2458bd32ac554684164ae38778ce2cf8df31510a6547a1f0d9790efdcc868c3061b700afaad5bd2067758b07370732a02fa868
diff --git a/dev-util/lttng-ust/lttng-ust-2.6.5.ebuild b/dev-util/lttng-ust/lttng-ust-2.6.5.ebuild
new file mode 100644
index 000000000000..b5983a546e8b
--- /dev/null
+++ b/dev-util/lttng-ust/lttng-ust-2.6.5.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit autotools versionator
+
+MY_P="${P/_rc/-rc}"
+MY_SLOT="$(get_version_component_range 1-2)"
+
+DESCRIPTION="Linux Trace Toolkit - UST library"
+HOMEPAGE="http://lttng.org"
+SRC_URI="http://lttng.org/files/${PN}/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0/${MY_SLOT}"
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
+IUSE="examples"
+
+DEPEND="dev-libs/userspace-rcu"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}"/${MY_P}
+
+src_prepare() {
+ if ! use examples; then
+ sed -i -e '/SUBDIRS/s:examples::' doc/Makefile.am || die
+ fi
+ eautoreconf
+}
diff --git a/dev-util/lttng-ust/lttng-ust-2.7.1.ebuild b/dev-util/lttng-ust/lttng-ust-2.7.1.ebuild
new file mode 100644
index 000000000000..dc493ad0c9d3
--- /dev/null
+++ b/dev-util/lttng-ust/lttng-ust-2.7.1.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit autotools versionator
+
+MY_P="${P/_rc/-rc}"
+MY_SLOT="$(get_version_component_range 1-2)"
+
+DESCRIPTION="Linux Trace Toolkit - UST library"
+HOMEPAGE="http://lttng.org"
+SRC_URI="http://lttng.org/files/${PN}/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0/${MY_SLOT}"
+KEYWORDS="amd64 ~arm ~ppc ~ppc64 x86"
+IUSE="examples"
+
+DEPEND="dev-libs/userspace-rcu"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}"/${MY_P}
+
+src_prepare() {
+ if ! use examples; then
+ sed -i -e '/SUBDIRS/s:examples::' doc/Makefile.am || die
+ fi
+ eautoreconf
+}
diff --git a/dev-util/lttng-ust/lttng-ust-2.7.4.ebuild b/dev-util/lttng-ust/lttng-ust-2.7.4.ebuild
new file mode 100644
index 000000000000..b5983a546e8b
--- /dev/null
+++ b/dev-util/lttng-ust/lttng-ust-2.7.4.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit autotools versionator
+
+MY_P="${P/_rc/-rc}"
+MY_SLOT="$(get_version_component_range 1-2)"
+
+DESCRIPTION="Linux Trace Toolkit - UST library"
+HOMEPAGE="http://lttng.org"
+SRC_URI="http://lttng.org/files/${PN}/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0/${MY_SLOT}"
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
+IUSE="examples"
+
+DEPEND="dev-libs/userspace-rcu"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}"/${MY_P}
+
+src_prepare() {
+ if ! use examples; then
+ sed -i -e '/SUBDIRS/s:examples::' doc/Makefile.am || die
+ fi
+ eautoreconf
+}
diff --git a/dev-util/lttng-ust/lttng-ust-2.8.1.ebuild b/dev-util/lttng-ust/lttng-ust-2.8.1.ebuild
new file mode 100644
index 000000000000..98b7ef0251ea
--- /dev/null
+++ b/dev-util/lttng-ust/lttng-ust-2.8.1.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit autotools versionator
+
+MY_P="${P/_rc/-rc}"
+MY_SLOT="$(get_version_component_range 1-2)"
+
+DESCRIPTION="Linux Trace Toolkit - UST library"
+HOMEPAGE="http://lttng.org"
+SRC_URI="http://lttng.org/files/${PN}/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0/${MY_SLOT}"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
+IUSE="examples"
+
+DEPEND="dev-libs/userspace-rcu"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}"/${MY_P}
+
+src_prepare() {
+ if ! use examples; then
+ sed -i -e '/SUBDIRS/s:examples::' doc/Makefile.am || die
+ fi
+ eautoreconf
+}
diff --git a/dev-util/lttng-ust/metadata.xml b/dev-util/lttng-ust/metadata.xml
new file mode 100644
index 000000000000..6c50e4708494
--- /dev/null
+++ b/dev-util/lttng-ust/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>dlan@gentoo.org</email>
+ <name>Yixun Lan</name>
+ </maintainer>
+
+ <longdescription>
+ The userspace tracer is designed to provide detailed information about userspace activity. UST is a port of the LTTng kernel tracer to userspace. Like the LTTng kernel tracer, performance is the main goal. Tracing does not require system calls or traps. UST instrumentation points may be added in any userspace code including signal handlers and libraries.
+ </longdescription>
+</pkgmetadata>
diff --git a/dev-util/lxqt-build-tools/Manifest b/dev-util/lxqt-build-tools/Manifest
new file mode 100644
index 000000000000..4386afeff3f9
--- /dev/null
+++ b/dev-util/lxqt-build-tools/Manifest
@@ -0,0 +1,3 @@
+DIST lxqt-build-tools-0.2.0.tar.xz 15552 SHA256 4b2b6788260e167358f3bb295cc2faa820cb52670d3213a6317419db893037d2 SHA512 40349710a20d3f06761c57b5d40aa05cb194fa4b50d1e41e4bd7e6adf1beb5c7209f3d4965869a301369df17ec1d75f55aede7ab0fe88a55d692cd56d72121de WHIRLPOOL 9725e8181a7f6e6e05c172336b5b489caf9573e7d6beb472ffd9a6ae8769f961b285f43d3ef05103e0374c50abf55afc81d028e487668d1b0cbe8fcc2787a878
+EBUILD lxqt-build-tools-0.2.0.ebuild 495 SHA256 f6801f1a66116a2c97ddd9a05b1172c9633d3db294e9a59b6850522a33ea7a40 SHA512 845e112ba9c17a97bd730d0939b9bf4a79151f3cc4d765309b8330f080719a463c97ecb7c3ca3d5c9bbefddf07119cb09cf7d321b67835d0778fb8148a8f3641 WHIRLPOOL 6e769350da81301c92eecf6323147b07a5425aaa48c3c158d21d6ffcf15ef137ee83a9df89b088869706eed8cd100f4b8e7ef900354040c07dfa570d7093ad3b
+MISC metadata.xml 240 SHA256 5c1b2e0fae64eabbb43582e437ece5c0df4f7e1c9b4587b919629b2b765aec6b SHA512 84f77a0e7d17d09eea1157217fcd22ae5fc98e1569879f85b5fc950d2b2ad00168b1ec9d5d8c1f964673c55bc91d509adb2d39b5983de21d83200ef6c58b9652 WHIRLPOOL 2bc375b8b743be2e84a38afe52329fcb6160906b0edbc054b9ab53aae30add6c8cac4de2a03c6f83e875b1e692c14f45369dcc2f8411ec9b858af228ba3ba163
diff --git a/dev-util/lxqt-build-tools/lxqt-build-tools-0.2.0.ebuild b/dev-util/lxqt-build-tools/lxqt-build-tools-0.2.0.ebuild
new file mode 100644
index 000000000000..566008f0bf5f
--- /dev/null
+++ b/dev-util/lxqt-build-tools/lxqt-build-tools-0.2.0.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit cmake-utils
+
+DESCRIPTION="LXQt Build tools"
+HOMEPAGE="http://lxqt.org/"
+
+if [[ ${PV} = *9999* ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="git://git.lxde.org/git/lxde/${PN}.git"
+else
+ SRC_URI="http://downloads.lxqt.org/${PN}/${PV}/${P}.tar.xz"
+ KEYWORDS="~amd64 ~arm64 ~x86"
+fi
+
+LICENSE="BSD"
+SLOT="0"
+
+DEPEND="dev-qt/qtcore:5"
+
+src_configure() {
+ cmake-utils_src_configure
+}
diff --git a/dev-util/lxqt-build-tools/metadata.xml b/dev-util/lxqt-build-tools/metadata.xml
new file mode 100644
index 000000000000..a40a83a9c6a9
--- /dev/null
+++ b/dev-util/lxqt-build-tools/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="project">
+ <email>lxqt@gentoo.org</email>
+ <name>LXQt</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-util/makeheaders/Manifest b/dev-util/makeheaders/Manifest
new file mode 100644
index 000000000000..258860c83205
--- /dev/null
+++ b/dev-util/makeheaders/Manifest
@@ -0,0 +1,6 @@
+DIST makeheaders-0_p4.c 99253 SHA256 a03498d80e29c836b1525cd2aad7f2f75c80e8dfcd533dd619ac0fe0c5cef2cd SHA512 d46a23a4ee1436f1bad2f0d26e7de9be47a84b0c163430bdaf360c4c6a94b84949f2a427683265898312e56e9dda316992857e488202aa74afcc3939fa712a35 WHIRLPOOL 7ac59e936cd81923024ce27b82561ce6eaffe56abd20f1f419cc8373644312ff331be0edc5649ee6f327772188ee6667696f70934ef3118c58e36e2e407e24b5
+DIST makeheaders-0_p4.html 35481 SHA256 dad57fe035cf440d28878ff31ae30a188b8935aeb68f3f6ee08f3001a1c19008 SHA512 903437c9d4b280af1cb9d5e29df150fb347ef9c62ec146daecfb5c4093554531c206bc73885cc7aacea1b7c24fb473e240a03a31c139caf6bc0e42901b518597 WHIRLPOOL 548d486201d2bcdc8c2445e986e55a904c237e41b99f229a91cb6e19c9ecb95ea5a8b1f529d8bc536e2feb210ee4f1e2ee7cbd04ab30a18aeb008620e2e01c30
+EBUILD makeheaders-0_p4.ebuild 711 SHA256 6afbd17a427885bd4b637d60d0ba12ef1f26cdaed9455eed3ee8f52bbbe5bc2d SHA512 344f7c291d418836b569304b8af4b4dee6d99a66abba30d03cf49077c859fd512a9442a814463136546a195b51e2b45676103c1897078a6982a95828a08fe06a WHIRLPOOL 78e4a5777af0ee3811fae7bed426fb6bf8cf4f658bb8778a6823980147d6ab47cb15cca403fe2b245f34b1da3e06e3e67b10d523d809cf695a79262adefeb126
+MISC ChangeLog 2579 SHA256 6a84e15ccba852cb00d87f59866e48f652986335eaf9bf444ac520bfdeb36308 SHA512 d7ad7e1a687703331fe8c6f7b26632d449602fdf13696625850eaddd3f2b2ecc24080099f1fb8b292cb7881d201c7124cec28b3193c2491026cecf48b166bbd4 WHIRLPOOL 2e72219be5cc978b7c2483292e5cca87da94f6984abac62bd2d1eed462eee9d73c7293fef92509697cd441beb1af2e477993bd63130f73ed2f3d2f63a57f1cd3
+MISC ChangeLog-2015 786 SHA256 3c2c5f93b994fd76253acb52193283149541cae473d2ed145d22b192428e5f4e SHA512 d9228eaa09f52f264d8322b23a59dbcaef86530c4429d9152f771654036b2564d08c410fec6444f3c9a16972bf629557df35917cc152464c04d0a49aaa342b02 WHIRLPOOL 38cf5c1c6490b01a0af0d5f8b4d1642c01fe59e2fc449a564c5e913e26e497858ce6910fa0c13db3d62bb561cf0188ce9ae053a96ab64f0f2d0414bec7113659
+MISC metadata.xml 237 SHA256 ffb571839c57797d282263369646d2bba2662601a45f7bb3251bb97f716554a6 SHA512 ae2360aa6b1b00c67e0acea4935c02b64585b9a15e126fec9d5d99637021c542c0a495e5116205f3da287def46fa5b19cb1a7f3042c12c5f7a78d66d92fcb03f WHIRLPOOL 60d6da846c983457e038ea5ba3c0bf48f939c9586610985a14cac9772fd1d45d781a643abc16482f232f3028e44fe99fe1a382deaebf6589602fc244a4460e3f
diff --git a/dev-util/makeheaders/makeheaders-0_p4.ebuild b/dev-util/makeheaders/makeheaders-0_p4.ebuild
new file mode 100644
index 000000000000..c7433fcbeb3b
--- /dev/null
+++ b/dev-util/makeheaders/makeheaders-0_p4.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=3
+
+inherit toolchain-funcs
+
+DESCRIPTION="simple utility that will automatically generate header files"
+HOMEPAGE="http://www.hwaci.com/sw/mkhdr/"
+SRC_URI="http://www.hwaci.com/sw/mkhdr/makeheaders.c -> ${P}.c
+ http://www.hwaci.com/sw/mkhdr/makeheaders.html -> ${P}.html"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc ~sparc x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+src_unpack() {
+ local my_a
+ for my_a in ${A} ; do
+ cp -v "${DISTDIR}"/"${my_a}" . || die
+ done
+}
+
+src_compile() {
+ $(tc-getCC) ${CFLAGS} -o ${PN} ${P}.c ${LDFLAGS} || die
+}
+
+src_install() {
+ dobin ${PN} || die
+ dohtml ${P}.html || die
+}
diff --git a/dev-util/makeheaders/metadata.xml b/dev-util/makeheaders/metadata.xml
new file mode 100644
index 000000000000..a535b8852829
--- /dev/null
+++ b/dev-util/makeheaders/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>xmw@gentoo.org</email>
+<name>Michael Weber</name>
+</maintainer>
+</pkgmetadata>
diff --git a/dev-util/makepp/Manifest b/dev-util/makepp/Manifest
new file mode 100644
index 000000000000..058fc8658ed3
--- /dev/null
+++ b/dev-util/makepp/Manifest
@@ -0,0 +1,22 @@
+AUX makepp-1.18-install.patch 2499 SHA256 1c30e69da75f136115f481925f93ef45af46688da20eb872a3d1225f9781f05f SHA512 fe1dc50fde876e95fcf3bdfcd619faf8cef2a519cbf9512f32d715b6ad946d2e6a0f4cafe24aa6a1319d61662726b5c7e958ef2a3e5583079dd4ac409edd074b WHIRLPOOL 83fe8e1deb6ebc620578ef025aefc77714d6b44b344913c367d887248bd50b6a2f8b990e6c0a9c68e2ae9a09bb83ce86832b47be0a00998f53fc93870eb4ebee
+AUX makepp-1.40.1a-install.patch 426 SHA256 2494b43f20845d200e0735d9ae1496fd47ee75858b13f5698b3fe274c1624b5e SHA512 af78ac75655103177fdfaf6a3e28b35052b29ede4385f8e8f29c50ed8386da157e0b2fb114591ad004dc4aa605077706df54f17eb068f765e14624b90365d706 WHIRLPOOL 04aadc1e277d0ed9134969ef0560ebe87df70b140af8635c271ec852fbda791d2e2e385fec5135b3882303d6fa48305fc984721ae85e1bd9d29dfb7b2609271a
+AUX makepp-2.0-destdir.patch 254 SHA256 ff72c8d2ef4e3c938f665855a382bcb58583a42dda943b5fc160f1622cbd8d2c SHA512 8bd13910c03d86e32f6713f733ad2a0079f4befa257efb9f5abcdf3cb578270483fcd59cdba97e24ea95f3801ccc0b7edec8161c80ca56eb81556a43efd989f2 WHIRLPOOL 1c17495a0f332925da5f761b0f9ea62f0c5966013610698da89126c6497b5fa927a3eb1f4ddc8dfa70ac4875e1059a6060494e47b3a06532f1d38e92714e30a2
+AUX makepp-2.0.98.5-perl526.patch 964 SHA256 ab50207ed79598515772fa2f791a551026b39ae05184b19d9d61d17fe2bab56b SHA512 aec311f042c34018c31d8f3e7c4fdc5594eb14519c78b20c9498e1680728e1eba397aca3be68a720f1da49925e619be30b288acf1d83515aa5388a2f8ad72274 WHIRLPOOL 45ba040c572e5b47de10abcf04a270501023dad2f858333151acc46498e5c426fb8faa168f416ebe950cbf1401ac8d54867e04d237a3225794e7158a434912c3
+DIST makepp-1.18.tar.gz 236990 SHA256 0a1ee878452d44ecdf52dae928418ed2c426b5bbb95bc223b787329f9f5cc2be SHA512 e6d4fe2d8136bbbbec00401761bf5a4bf5ff15357e75080b942188a613b8156c67eac63f46ce89f1e521997ca620f22924dd0b9055dcb66e30801142dab4e0a9 WHIRLPOOL 278fd69d575e7c9fcbed168d43da031740b5c9fc8c1bf5f97b16e4ab8b3d0b5d65d0a8a3764a72b212137b1958a9fe69a67c7ef649a713aff669cc50597e7ac1
+DIST makepp-1.40.1a.tar.gz 278170 SHA256 eb9991e9c726836e9b214377976dc15f66f4f6045f9713cd36c8c6b73c1f8e83 SHA512 554987f1ff51fd4d984d54a8bf1c36182418f57820899567aba8d961753ab4daa4f4fee9591557dac199c0a2e4ba33f5b2a789e237ae9684e5168201d0a152ef WHIRLPOOL 1ac773abd2f384c020c54264e700c32c84021b07f43e13c7e7474579bb99aee018321f5476441942ef891a8b1840e6195cb89260e837fbb49d0d5e651eddb0b0
+DIST makepp-1.50-110621.txz 496296 SHA256 70d6af24020bcdc1ad4607817163e18c952792a39f67674ee60562545c940330 SHA512 fca88aa5abad01f02edd59060cafd0f0e1ecd4335c2af556e04890d07f48bc07027e9fe533ad2c0d125b35b2da90a775d09b6401fce22e539df4843fc7704966 WHIRLPOOL b55572e05b3152552fb9fbd2b5c80cde82d3006024e8763d1b7eba3873f5108a606bfa3dc420b36bafe8b1bd72f7424e226130fd6df9019637738c6a0a625fd9
+DIST makepp-2.0.98.4.txz 528092 SHA256 e37f6d4374c64f0ebe2146af044514ab531ad0dea5701b31ca059a337e935f68 SHA512 c04e67f62155ce398c1fccba350354b163367ef5a6db961277433a7c733a71512a48cf3427d02a7b6874ab33047f6b7082105ed78b8397dc430c9d6a34ad9d38 WHIRLPOOL f75be059e04aa139f2ebe47acb8f64815b6f0e95c3ade0a24d00bfb437962292eb2e264f774a4f4d3eee65aa836f7a129d97eeaf99a4439b0d1ddde42cb2171e
+DIST makepp-2.0.98.5.txz 529556 SHA256 ae62717cf37da1788b46fa7c90511e399a6e545798d8c12531d33b2be0ac62bb SHA512 f4ad5ab3800148fc4527558374be765e0b7ac731220192c1105e9c688c5961b8d5dd42ed2177db2aadc879b2c66e4bde14428eaf3055a6ba52163d908c576b5a WHIRLPOOL debdd1d25d1ab4822b38cda3a72bad1975fb759c6526332cea65b6dedc4644554662667562024949bc3ed725f03990cb647aa487a1c083e98d9411e0e4aff719
+DIST makepp-2.0.99.1.txz 532784 SHA256 6217553ebbe208b6e450affd77e6c82c0c928ab30f617d489ebbfa9cfd3b6d86 SHA512 457d64a2e9d2860dc2f7ad1bd4ef7df9fcd1563878dcd7b63e6f1d3fd6c03cdb89aab68faa018b3ef6b3009733a365fadbb49ad6c8a03ffe6eafcf867b765213 WHIRLPOOL 71b2e1037e5ca05976c766669b221234b4d21b3e8b8e43de311d56cb1a908ceeed5c7a5d4d31ed59638c5973d446e8d19506eb3d2fb9ca4db16a745c4f61692c
+DIST makepp-2.0.txz 534708 SHA256 0c617b1c23b537070d43ace2501ac1b30503b126a729206a7853933485d2bc78 SHA512 b8327fe475cb323352c6b89f1dc5e4a3fbbc71ee8b53777340449f610e3276465680ba3bc3bba905bb00754ca52ca56b82b9b1184db7bf7b272a47822b86aa49 WHIRLPOOL 79c69783a64c3f42184f5d72b19374251e8e88eab2e08c73e8442908eafac4cc7f3a8a64a36bf45c68d1a5d9b5eeab08b799e26a85a14f4bbfe320fd34a77ee4
+EBUILD makepp-1.18.ebuild 907 SHA256 1919841113ca4d8bf92fbb85c0a14c217454c9a0dbf8a27ceb32da1edbf8b542 SHA512 cf12ad152a900eaf3178879b18cc49c50d9f55edba7e873671355093af969678e30217f879357ae61d7a8625ded0f0c82214720e34873a034eefe65cd325de9f WHIRLPOOL 3fd128f10296c1cef133dabe090093cff51604e60b0a6cf96a36f55a1beacd325e356fd28342bd2a96d92e62b0fdcd61346cff689369c982f89cdd3110830106
+EBUILD makepp-1.40.1a.ebuild 864 SHA256 8ffb7b4ef6a96accf3e1594314635346ba8d5af739f789e31ecfd23a86723d0e SHA512 c9ddb8a99a226651bcf6fda665c6e92caa2fa0ca7264e4f9fb98bd1aa0d40cb54420d10c906dd220507a6a608b8736d63f8248cdf09433c963b8ae4d2e69b030 WHIRLPOOL 61889651f665182517077712ec91451a4f33a67b2b13f59c7badf723bd597677a5f8148829da4a1db0df6e9b529712cdd5ef14dd3a2f68977079958baa71a5c1
+EBUILD makepp-1.50_pre110621.ebuild 1069 SHA256 8f47661c004820692942e4d2980773c673d71e62ea19864cc577141b740920e7 SHA512 14adafaf2bb7ab4e6caf36c60fe59f4b9ba8b90f0682928af709568e2931c6b8e6b886214dcab9f62dfd5b13e2e77a72c93647b13cedb177085d57619d9d75f6 WHIRLPOOL b26b9af7e4751f7b0d2c3ee3390cf7c687049a3eb67c622b09f9c2b07cfe98c22772cdf2f6235862c4fc881e0b522ab8cb2be6c4d095f01c650160d9a018cfc6
+EBUILD makepp-2.0-r1.ebuild 1101 SHA256 0da8d1715f6b715d808c6a1d01931dbdbdc58efccfd6e09c653e406a3678f107 SHA512 fd8000e9b800a0dbae39824ba3286252ee63e25f76b5229e0e42e026ea731172b8c500a85370eda51e26d616a9d2f652241a1fae563494ad6dd46a33d0cdf416 WHIRLPOOL 145e02f5c22820cb9a10794611338341ef70481b30ca676b14cf1ee4783369efe0db7c7bc9ffe38acca3ebed5dc14c414636ce7da71b9c07c2c53653ebf3c6bc
+EBUILD makepp-2.0.98.4.ebuild 1049 SHA256 9d2f76f212a8de2472e2cc8787b095b31c2bfe9a28256de7d6623ab19c84f183 SHA512 872e6613230136f8fa8807720af8054086481f70fdc461fb08278adeb90f539e89f84a3b3cb3b7d08244f30153de5526b54db8406e15a1391e0e63f87c4dd49c WHIRLPOOL 235b8e1bef6a75680dbbccde19e5c399b4e37eec46ade74824c8e89a1130830eace860a04f44f51db7bae7c6deb5b2827dc67df33f65da77e1ea5d66e7cda403
+EBUILD makepp-2.0.98.5-r1.ebuild 1003 SHA256 f5e427b0e883e730dfa6d4c9be329155262e98d6149e2c76d0ce545d8f62051d SHA512 8541e1a75f5c8867bb9e5320090496d6f2b4b59fce8745aa689657c98f3bc782487ad3b48e2e6a29d0784c718c921cfff879ffe8fb64ec8cc4e96138d9d5214f WHIRLPOOL 4650e9cbd0fde1b8717228534bb4409510bf21a5c1277c63e7ffb2a29556accef57e7498fb20dcfd54b4a6c7306f068e60868f0351d2fb07dd9b5b40dc596336
+EBUILD makepp-2.0.98.5.ebuild 1049 SHA256 9d2f76f212a8de2472e2cc8787b095b31c2bfe9a28256de7d6623ab19c84f183 SHA512 872e6613230136f8fa8807720af8054086481f70fdc461fb08278adeb90f539e89f84a3b3cb3b7d08244f30153de5526b54db8406e15a1391e0e63f87c4dd49c WHIRLPOOL 235b8e1bef6a75680dbbccde19e5c399b4e37eec46ade74824c8e89a1130830eace860a04f44f51db7bae7c6deb5b2827dc67df33f65da77e1ea5d66e7cda403
+EBUILD makepp-2.0.99.1.ebuild 957 SHA256 580b4ee08d6de5b3de80e538a3bc4b50a33bbde8df2fc9e169b0f675032d4bca SHA512 2172c34461777f3ecde95e01e6dbd53a9d20fd41eeb1bb1f3bed86f6fd08762e595a203c3158917d55acca04177eaf089ecfbb967f28bc14c43c00b95baeda62 WHIRLPOOL e3973409fb8287719f54b4c5ab15de9ba9c67d0b2919c6abf8352a131d27986a2ade10ed6b1be33dafcab425fc61bae07bb5c8a951d835a9b4414513df290160
+MISC ChangeLog 2820 SHA256 41ea096c059ebea5235d83bb734126fab56f48e9d468ac825940631692c6927b SHA512 8fd98c90ab0d282c09de918f8a153ca21359f23cccea630751f1abef86d21d7f26d3d3c99d8f461cb487ef31c06a7b46c3523bed5a61318a4aa7838136ef806a WHIRLPOOL e3a6749ebe068422fd3033f65b4b36b17a24217b3d373eac3498ad45c96ca4b2e6b85af7a90ab20c12c1362230ff41ac2806211c5c4a62d6417281359a620dcf
+MISC ChangeLog-2015 1916 SHA256 0745afb4b7bab8a18a5861d4848c250bc074a54241718d9fe64a62534758de6a SHA512 ac7f15be9e5e5a9feb876d7edc6ee59d380840785be55d9ce2bce9343e8c96c389c7ed09db36bf3fccc1a1eba45e6e7febf693f7c57259568b3ee983f1828e5e WHIRLPOOL eaf41d90a0eb13df0ce40ad34c035b84a317ca51ffdcb02191d33a6186912bacd56525f6be5ee6ea85b5bd7e43d1c8e683edcb0191c6624582db9a610ec3ea72
+MISC metadata.xml 333 SHA256 b1b33c0a5c1941458064572b6f41827ac68747361bae4a1e30ddff47f9b54ceb SHA512 a4d44741093e730e73c16da4aef90a745a8f4a3e3f844e0b68e168788d934126faf29d598a17dc1c185a97d8a9611525e7ae0f1bab17ed20e25aa7f0e466ea41 WHIRLPOOL 0cc21d4823eb2c9d2b79ad621be0024b9bf79f37b05eb909db450adb7fffe8d3251986a4f0d8e6ad8368e2e02646887106db7b55386f9a28a59cb8da35923336
diff --git a/dev-util/makepp/files/makepp-1.18-install.patch b/dev-util/makepp/files/makepp-1.18-install.patch
new file mode 100644
index 000000000000..7d90e2166223
--- /dev/null
+++ b/dev-util/makepp/files/makepp-1.18-install.patch
@@ -0,0 +1,69 @@
+--- install.pl.orig 2003-02-18 13:15:15.000000000 -0800
++++ install.pl 2003-02-18 13:49:10.000000000 -0800
+@@ -31,9 +31,24 @@
+ #
+ # Now figure out where everything goes:
+ #
+-$prefix = "/usr/local";
++$prefix = shift(@ARGV) ||
++ read_with_prompt( "
++You can specify a prefix directory that will simplify defaults for
++further questions.
++
++What should be the prefix directory [$prefix]? ") ||
++ "/usr/local";
++
++$inst_prefix = shift(@ARGV) ||
++ read_with_prompt( "
++You can specify an install prefix that is prefixed to the runtime
++prefix for the install phase only. This is useful when installing
++into staging directories for packaging systems.
+
+-$bindir = shift(@_) ||
++What should the install prefix be []? ") ||
++ "";
++
++$bindir = shift(@ARGV) ||
+ read_with_prompt("
+ Makepp needs to know where you want to install it and its data files.
+ makepp is written in perl, but there is no particular reason to install
+@@ -43,10 +58,7 @@
+ Where should the makepp executable be installed [$prefix/bin]? ") ||
+ "$prefix/bin";
+
+-$bindir =~ m@(.*)/bin@ and $prefix = $1;
+- # See if a prefix was specified.
+-
+-$datadir = shift @_ || read_with_prompt("
++$datadir = shift @ARGV || read_with_prompt("
+ Makepp has a number of library files that it needs to install somewhere. Some
+ of these are perl modules, but they can't be used by other perl programs, so
+ there's no point in installing them in the perl modules hierarchy; they are
+@@ -55,14 +67,24 @@
+ Where should the library files be installed [$prefix/share/makepp]? ") ||
+ "$prefix/share/makepp";
+
+-$htmldir = shift @_ || read_with_prompt("
++$htmldir = shift @ARGV || read_with_prompt("
+ Where should the HTML documentation be installed?
+ Enter \"none\" if you do not want any documentation installed.
+ HTML documentation directory [$prefix/share/makepp/html]: ") ||
+ "$prefix/share/makepp/html";
+
+-substitute_file("makepp", $bindir, 0755);
+-substitute_file("recursive_makepp", $datadir, 0644);
++substitute_file("makepp", "$inst_prefix/$bindir", 0755);
++substitute_file("recursive_makepp", "$inst_prefix/$datadir", 0644);
++
++if( $inst_prefix ) {
++ $bindir = join( '/', $inst_prefix, $bindir );
++ $datadir = join( '/', $inst_prefix, $datadir );
++ $htmldir = join( '/', $inst_prefix, $htmldir );
++}
++
++print STDERR "bindir now $bindir\n";
++print STDERR "datadir now $datadir\n";
++print STDERR "htmldir now $htmldir\n";
+
+ make_dir("$datadir/Signature");
+ foreach $module (qw(FileInfo FileInfo_makepp MakeEvent Glob Makefile Makesubs Rule
diff --git a/dev-util/makepp/files/makepp-1.40.1a-install.patch b/dev-util/makepp/files/makepp-1.40.1a-install.patch
new file mode 100644
index 000000000000..b1ee013add3e
--- /dev/null
+++ b/dev-util/makepp/files/makepp-1.40.1a-install.patch
@@ -0,0 +1,12 @@
+--- makepp-1.40/config.pl
++++ makepp-1.40/config.pl
+@@ -34,7 +34,7 @@
+ cd makepp-$(VERSION) && make test # Make sure it all runs.
+ rm -rf makepp-$(VERSION)
+
+-install: all
+- $(PERL) install.pl $(BINDIR) $(DATADIR) $(MANDIR) $(HTMLDIR) $(FINDBIN)
++install:
++ $(PERL) install.pl $(DESTDIR)$(BINDIR) $(DESTDIR)$(DATADIR) $(DESTDIR)$(MANDIR) $(DESTDIR)$(HTMLDIR) $(DESTDIR)$(FINDBIN)
+
+ .PHONY: all distribution install test
diff --git a/dev-util/makepp/files/makepp-2.0-destdir.patch b/dev-util/makepp/files/makepp-2.0-destdir.patch
new file mode 100644
index 000000000000..7d7950b2dff4
--- /dev/null
+++ b/dev-util/makepp/files/makepp-2.0-destdir.patch
@@ -0,0 +1,13 @@
+don't break install paths when DESTDIR is set
+
+--- a/install.pl
++++ b/install.pl
+@@ -131,7 +131,7 @@
+
+ if( $destdir ) {
+ for( $bindir, $datadir, $mandir, $htmldir_val ) {
+- s/$prefix/$destdir/o if defined;
++ s/^/$destdir/o if defined;
+ }
+ }
+
diff --git a/dev-util/makepp/files/makepp-2.0.98.5-perl526.patch b/dev-util/makepp/files/makepp-2.0.98.5-perl526.patch
new file mode 100644
index 000000000000..b5ed875b4dcf
--- /dev/null
+++ b/dev-util/makepp/files/makepp-2.0.98.5-perl526.patch
@@ -0,0 +1,24 @@
+diff -ruN makepp-2.0.98.5.orig/config.pl makepp-2.0.98.5/config.pl
+--- makepp-2.0.98.5.orig/config.pl 2017-07-08 21:35:18.257017457 +0200
++++ makepp-2.0.98.5/config.pl 2017-07-08 21:39:06.087026936 +0200
+@@ -19,6 +19,8 @@
+ you on?), get the latest from www.perl.org and install it.
+ EOS
+
++use lib q[.];
++
+ BEGIN { eval { require Mpp::Utils } or warn <<EOS and exit 1 } # avoid BEGIN/die diagnostic
+ Please call this script in the directory where you unpacked it!
+ EOS
+diff -ruN makepp-2.0.98.5.orig/install.pl makepp-2.0.98.5/install.pl
+--- makepp-2.0.98.5.orig/install.pl 2013-07-05 23:02:38.000000000 +0200
++++ makepp-2.0.98.5/install.pl 2017-07-08 21:38:48.441026202 +0200
+@@ -13,6 +13,8 @@
+ #
+ BEGIN { eval { require 5.008 } or exec $^X, 'config.pl' } # Dies with nice message.
+
++use lib q[.];
++
+ BEGIN { eval { require Mpp::Text } or warn <<EOS and exit 1 } # avoid BEGIN/die diagnostic
+ Please call this script in the directory where you unpacked it!
+ EOS
diff --git a/dev-util/makepp/makepp-1.18.ebuild b/dev-util/makepp/makepp-1.18.ebuild
new file mode 100644
index 000000000000..3fa99977dce7
--- /dev/null
+++ b/dev-util/makepp/makepp-1.18.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils
+
+DESCRIPTION="GNU make replacement"
+HOMEPAGE="http://makepp.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~ppc ~sparc alpha"
+IUSE=""
+DEPEND=">=dev-lang/perl-5.6.0"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-install.patch
+ # There is a sandbox violation in this test.
+ # In future versions, this ebuild should try to find
+ # a better way of avoiding this, but the current version
+ # appears to have garbage NUL characters all over the test files,
+ # making them complicated to edit.
+ # Robert Coie <rac@gentoo.org> 2002.02.18
+ rm "${S}"/makepp_tests/include.test
+}
+
+src_compile() {
+ make test || die
+}
+
+src_install() {
+ perl install.pl /usr "${D}" /usr/bin /usr/share/makepp /usr/share/doc/makepp
+}
diff --git a/dev-util/makepp/makepp-1.40.1a.ebuild b/dev-util/makepp/makepp-1.40.1a.ebuild
new file mode 100644
index 000000000000..da21b106b420
--- /dev/null
+++ b/dev-util/makepp/makepp-1.40.1a.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils
+
+DESCRIPTION="GNU make replacement"
+HOMEPAGE="http://makepp.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~ppc ~sparc ~x86"
+IUSE=""
+
+DEPEND=">=dev-lang/perl-5.6.0"
+
+S=${WORKDIR}/${P%.*}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-install.patch
+ # remove ones which cause sandbox violations
+ rm makepp_tests/wildcard_repositories.test
+}
+
+src_compile() {
+ # not an autoconf configure script
+ ./configure \
+ --prefix=/usr \
+ --bindir=/usr/bin \
+ --htmldir=/usr/share/doc/${PF}/html \
+ --mandir=/usr/share/man \
+ --datadir=/usr/share/makepp \
+ || die "configure failed"
+}
+
+src_install() {
+ emake install DESTDIR="${D}" || die
+ dodoc ChangeLog README
+}
diff --git a/dev-util/makepp/makepp-1.50_pre110621.ebuild b/dev-util/makepp/makepp-1.50_pre110621.ebuild
new file mode 100644
index 000000000000..d19d34f743bb
--- /dev/null
+++ b/dev-util/makepp/makepp-1.50_pre110621.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="3"
+
+inherit eutils
+
+MY_PV=${PV/_pre/-}
+MY_P="${PN}-${MY_PV}"
+DESCRIPTION="GNU make replacement"
+HOMEPAGE="http://makepp.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${PV%_pre*}/${MY_P}.txz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~ppc ~sparc ~x86"
+IUSE=""
+
+DEPEND=">=dev-lang/perl-5.6.0"
+
+S=${WORKDIR}/${MY_P}
+
+src_unpack() {
+ ln -s "${DISTDIR}/${A}" ${P}.tar.xz
+ unpack ./${P}.tar.xz
+}
+
+src_prepare() {
+# epatch "${FILESDIR}"/${P}-install.patch
+ # remove ones which cause sandbox violations
+# rm makepp_tests/wildcard_repositories.test
+ # default "all" rule is to run tests :x
+ sed -i '/^all:/s:test::' config.pl || die
+}
+
+src_configure() {
+ # not an autoconf configure script
+ ./configure \
+ --prefix=/usr \
+ --bindir=/usr/bin \
+ --htmldir=/usr/share/doc/${PF}/html \
+ --mandir=/usr/share/man \
+ --datadir=/usr/share/makepp \
+ || die "configure failed"
+}
+
+src_install() {
+ emake install DESTDIR="${D}" || die
+ dodoc ChangeLog README
+}
diff --git a/dev-util/makepp/makepp-2.0-r1.ebuild b/dev-util/makepp/makepp-2.0-r1.ebuild
new file mode 100644
index 000000000000..a8d44bd7fca1
--- /dev/null
+++ b/dev-util/makepp/makepp-2.0-r1.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+
+inherit eutils
+
+MY_PV=${PV/_}
+MY_P="${PN}-${MY_PV}"
+DESCRIPTION="GNU make replacement"
+HOMEPAGE="http://makepp.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${PV%_*}/${MY_P}.txz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86 ~x86-linux ~ppc-macos"
+IUSE=""
+
+DEPEND=">=dev-lang/perl-5.6.0"
+
+S=${WORKDIR}/${MY_P}
+
+src_unpack() {
+ ln -s "${DISTDIR}/${A}" ${P}.tar.xz
+ unpack ./${P}.tar.xz
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-2.0-destdir.patch
+
+ # default "all" rule is to run tests :x
+ sed -i '/^all:/s:test::' config.pl || die
+}
+
+src_configure() {
+ # not an autoconf configure script
+ ./configure \
+ --prefix="${EPREFIX}"/usr \
+ --bindir="${EPREFIX}"/usr/bin \
+ --htmldir="${EPREFIX}"/usr/share/doc/${PF}/html \
+ --mandir="${EPREFIX}"/usr/share/man \
+ --datadir="${EPREFIX}"/usr/share/makepp \
+ || die "configure failed"
+}
+
+src_test() {
+ # work around https://bugzilla.samba.org/show_bug.cgi?id=8728
+ export CCACHE_UNIFY=1
+ ROOT= default
+}
diff --git a/dev-util/makepp/makepp-2.0.98.4.ebuild b/dev-util/makepp/makepp-2.0.98.4.ebuild
new file mode 100644
index 000000000000..1ecf18f24d1f
--- /dev/null
+++ b/dev-util/makepp/makepp-2.0.98.4.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+
+inherit eutils
+
+MY_PV=${PV/_}
+MY_P="${PN}-${MY_PV}"
+DESCRIPTION="GNU make replacement"
+HOMEPAGE="http://makepp.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/2.1/${MY_P}.txz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86 ~x86-linux ~ppc-macos"
+IUSE=""
+
+DEPEND=">=dev-lang/perl-5.6.0"
+
+S=${WORKDIR}/${MY_P}
+
+src_unpack() {
+ ln -s "${DISTDIR}/${A}" ${P}.tar.xz
+ unpack ./${P}.tar.xz
+}
+
+src_prepare() {
+ # default "all" rule is to run tests :x
+ sed -i '/^all:/s:test::' config.pl || die
+}
+
+src_configure() {
+ # not an autoconf configure script
+ ./configure \
+ --prefix="${EPREFIX}"/usr \
+ --bindir="${EPREFIX}"/usr/bin \
+ --htmldir="${EPREFIX}"/usr/share/doc/${PF}/html \
+ --mandir="${EPREFIX}"/usr/share/man \
+ --datadir="${EPREFIX}"/usr/share/makepp \
+ || die "configure failed"
+}
+
+src_test() {
+ # work around https://bugzilla.samba.org/show_bug.cgi?id=8728
+ export CCACHE_UNIFY=1
+ ROOT= default
+}
diff --git a/dev-util/makepp/makepp-2.0.98.5-r1.ebuild b/dev-util/makepp/makepp-2.0.98.5-r1.ebuild
new file mode 100644
index 000000000000..d6b300f282ee
--- /dev/null
+++ b/dev-util/makepp/makepp-2.0.98.5-r1.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+MY_PV=${PV/_}
+MY_P="${PN}-${MY_PV}"
+DESCRIPTION="GNU make replacement"
+HOMEPAGE="http://makepp.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/2.1/${MY_P}.txz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86 ~x86-linux ~ppc-macos"
+IUSE=""
+
+DEPEND="dev-lang/perl:="
+
+S=${WORKDIR}/${MY_P}
+
+PATCHES=( "${FILESDIR}/${P}-perl526.patch" )
+
+src_prepare() {
+ # default "all" rule is to run tests :x
+ sed -i '/^all:/s:test::' config.pl || die
+ default
+}
+
+src_configure() {
+ # not an autoconf configure script
+ ./configure \
+ --prefix="${EPREFIX}"/usr \
+ --bindir="${EPREFIX}"/usr/bin \
+ --htmldir="${EPREFIX}"/usr/share/doc/${PF}/html \
+ --mandir="${EPREFIX}"/usr/share/man \
+ --datadir="${EPREFIX}"/usr/share/makepp \
+ || die "configure failed"
+}
+
+src_test() {
+ # work around https://bugzilla.samba.org/show_bug.cgi?id=8728
+ export CCACHE_UNIFY=1
+ ROOT= default
+}
diff --git a/dev-util/makepp/makepp-2.0.98.5.ebuild b/dev-util/makepp/makepp-2.0.98.5.ebuild
new file mode 100644
index 000000000000..1ecf18f24d1f
--- /dev/null
+++ b/dev-util/makepp/makepp-2.0.98.5.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+
+inherit eutils
+
+MY_PV=${PV/_}
+MY_P="${PN}-${MY_PV}"
+DESCRIPTION="GNU make replacement"
+HOMEPAGE="http://makepp.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/2.1/${MY_P}.txz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86 ~x86-linux ~ppc-macos"
+IUSE=""
+
+DEPEND=">=dev-lang/perl-5.6.0"
+
+S=${WORKDIR}/${MY_P}
+
+src_unpack() {
+ ln -s "${DISTDIR}/${A}" ${P}.tar.xz
+ unpack ./${P}.tar.xz
+}
+
+src_prepare() {
+ # default "all" rule is to run tests :x
+ sed -i '/^all:/s:test::' config.pl || die
+}
+
+src_configure() {
+ # not an autoconf configure script
+ ./configure \
+ --prefix="${EPREFIX}"/usr \
+ --bindir="${EPREFIX}"/usr/bin \
+ --htmldir="${EPREFIX}"/usr/share/doc/${PF}/html \
+ --mandir="${EPREFIX}"/usr/share/man \
+ --datadir="${EPREFIX}"/usr/share/makepp \
+ || die "configure failed"
+}
+
+src_test() {
+ # work around https://bugzilla.samba.org/show_bug.cgi?id=8728
+ export CCACHE_UNIFY=1
+ ROOT= default
+}
diff --git a/dev-util/makepp/makepp-2.0.99.1.ebuild b/dev-util/makepp/makepp-2.0.99.1.ebuild
new file mode 100644
index 000000000000..673b76c61cd9
--- /dev/null
+++ b/dev-util/makepp/makepp-2.0.99.1.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+MY_PV=${PV/_}
+MY_P="${PN}-${MY_PV}"
+DESCRIPTION="GNU make replacement"
+HOMEPAGE="http://makepp.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/2.1/${MY_P}.txz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86 ~x86-linux ~ppc-macos"
+IUSE=""
+
+DEPEND="dev-lang/perl:="
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ # default "all" rule is to run tests :x
+ sed -i '/^all:/s:test::' config.pl || die
+ default
+}
+
+src_configure() {
+ # not an autoconf configure script
+ ./configure \
+ --prefix="${EPREFIX}"/usr \
+ --bindir="${EPREFIX}"/usr/bin \
+ --htmldir="${EPREFIX}"/usr/share/doc/${PF}/html \
+ --mandir="${EPREFIX}"/usr/share/man \
+ --datadir="${EPREFIX}"/usr/share/makepp \
+ || die "configure failed"
+}
+
+src_test() {
+ # work around https://bugzilla.samba.org/show_bug.cgi?id=8728
+ export CCACHE_UNIFY=1
+ ROOT= default
+}
diff --git a/dev-util/makepp/metadata.xml b/dev-util/makepp/metadata.xml
new file mode 100644
index 000000000000..dabb537bfa74
--- /dev/null
+++ b/dev-util/makepp/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="project">
+ <email>base-system@gentoo.org</email>
+ <name>Gentoo Base System</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">makepp</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/massif-visualizer/Manifest b/dev-util/massif-visualizer/Manifest
new file mode 100644
index 000000000000..b5d25bcb2da9
--- /dev/null
+++ b/dev-util/massif-visualizer/Manifest
@@ -0,0 +1,3 @@
+DIST massif-visualizer-0.7.0.tar.xz 257380 SHA256 f8a4cc23c80a259a9edac989e957c48ed308cf9da9caeef19eec3ffb52361f6d SHA512 058412e34c0899a34fb4080a602cb0c70a9ac707f27b72a79fb412ea35a6e8c66ce06df15b3153fdc1a70a27232f98b508c7441b657eb73466962b33f9b2f561 WHIRLPOOL 5d3832ffd6a7ca36f6721d16f1a6301e7e060f5a403d8da6c6540636029b595e80c249836226d393933027b943a667bc5320082221de77a2d370e2fecfd3057f
+EBUILD massif-visualizer-0.7.0.ebuild 1111 SHA256 8a8d110eb206d5d34a56e5a49f4afa4b82d55031410c13f4f73d13133fc1d52c SHA512 53302d3a613bc323845a7a18c5fb3f2368eff015b5e6f7ee59466ef5bd50c0dfdf8e5a40654f2f596b182bd2f03dd976d1b7761acd0f9fa6933deea446ff67cf WHIRLPOOL 5de5420f67ed53d54e6eeed1c7cb3567b7d39f903261540f60eadc97807653cd88632d0a6f2548751770f4f3f9c264b8e34315fb28b868a67c6737cd93c55e2c
+MISC metadata.xml 370 SHA256 b8bf9ac8a7fa751ef51a1491112e4ceb2474e03492b625718865d574ed570c69 SHA512 a47938e506c035d69c8e69a4edb2e2587f76e9bd348aa0d9e88455cdf8c0d988b276e9f81c67c2039bef153051dcebd7b62b6b3d6bff1ebbbc572f87bbcd6382 WHIRLPOOL e787a611f9a5e7bd20915cb6774d37e1f90e4bd41a6ff275a6e30b48bf93f28912a3def1c91bccfe6202d446e08e91ea5aaf1296353a0826cc69c2a29ae97b12
diff --git a/dev-util/massif-visualizer/massif-visualizer-0.7.0.ebuild b/dev-util/massif-visualizer/massif-visualizer-0.7.0.ebuild
new file mode 100644
index 000000000000..3879dd8ec904
--- /dev/null
+++ b/dev-util/massif-visualizer/massif-visualizer-0.7.0.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+KDE_TEST="forceoptional"
+inherit kde5
+
+DESCRIPTION="Tool visualising massif data"
+HOMEPAGE="https://www.linux-apps.com/content/show.php/Massif+Visualizer?content=122409"
+SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz"
+
+LICENSE="|| ( GPL-2 GPL-3 )"
+KEYWORDS="~amd64"
+IUSE="+callgraph"
+
+RDEPEND="
+ $(add_frameworks_dep karchive)
+ $(add_frameworks_dep kcompletion)
+ $(add_frameworks_dep kconfig)
+ $(add_frameworks_dep kconfigwidgets)
+ $(add_frameworks_dep kcoreaddons)
+ $(add_frameworks_dep ki18n)
+ $(add_frameworks_dep kio)
+ $(add_frameworks_dep kparts)
+ $(add_frameworks_dep kwidgetsaddons)
+ $(add_frameworks_dep kxmlgui)
+ $(add_qt_dep qtgui)
+ $(add_qt_dep qtprintsupport)
+ $(add_qt_dep qtsvg)
+ $(add_qt_dep qtwidgets)
+ dev-libs/kdiagram:5
+ callgraph? ( media-gfx/kgraphviewer:5 )
+"
+DEPEND="${RDEPEND}
+ $(add_qt_dep qtxmlpatterns)
+ x11-misc/shared-mime-info
+"
+
+src_configure() {
+ local mycmakeargs=(
+ $(cmake-utils_use_find_package callgraph KGraphViewerPart)
+ )
+ kde5_src_configure
+}
diff --git a/dev-util/massif-visualizer/metadata.xml b/dev-util/massif-visualizer/metadata.xml
new file mode 100644
index 000000000000..a38f0ed5101b
--- /dev/null
+++ b/dev-util/massif-visualizer/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="project">
+ <email>kde@gentoo.org</email>
+ <name>Gentoo KDE Project</name>
+ </maintainer>
+ <use>
+ <flag name="callgraph">Enable detailed snapshot analysis using <pkg>media-gfx/kgraphviewer</pkg></flag>
+ </use>
+</pkgmetadata>
diff --git a/dev-util/mdds/Manifest b/dev-util/mdds/Manifest
new file mode 100644
index 000000000000..efaf54c1b83c
--- /dev/null
+++ b/dev-util/mdds/Manifest
@@ -0,0 +1,9 @@
+AUX mdds-1.2.3-buildsystem.patch 901 SHA256 45d6419de44de5d978513c013619342f39fae2a493dec0275799915f166a6848 SHA512 bc48b893c0b3d98aa45d7642bbd9bd10ee0f183bcd3da848a0abe4f33547b693e171a327439aba9b76f0683cc15eeb0410be7ed6f834d28483b8f82f8c13678f WHIRLPOOL 067adeafaa0128e26686fab279ae5ae053aca839b6001e9da852e4d9f59ddc126a4ee9fab17761a92085095fafe8f09d44d4784c4e30b9cec318dbef776ad442
+DIST mdds-1.2.2.tar.bz2 286185 SHA256 141e730b39110434b02cd844c5ad3442103f7c35f7e9a4d6a9f8af813594cc9d SHA512 552cb1b65c03cd18eb679c95821e47c1151e1b3015043de4b3a7bc14d27734772fa4d80fd90ab48998d0bc75385a3d29c4dd7ce826cf84b012685573c623bf01 WHIRLPOOL f0b24a886ad6b275267603b73a95c3b83ce14808f90daa0e680babec966a52de19349ac0991d76b9279818897f783d1768ece74f5f1be1157fa8bff94e5e8a5a
+DIST mdds-1.2.3.tar.bz2 287079 SHA256 402fec18256f95b89517d54d85f00bce1faa6e517cb3d7c98a720fddd063354f SHA512 e5935fd99a53df124532cfc8e46349b2ef9ca79f5f184ca2da941c9a77e66ee40e11478e520bf9cb62e1bcea4b69deab5088265e1b89fda04417130aab227c3d WHIRLPOOL 88e154f3e1141d09736a8a9d5b4adf3612cea95a82773f59053d8e83f7fec3a0c292f5453df92627f31ac7e12b2f702dc281c959e7f219de91f2a1acc15cc7b4
+EBUILD mdds-1.2.2.ebuild 956 SHA256 71bbf7a3044057a9659792fb76ae89abac0491e421133a5f651f00edd0f769fa SHA512 3ece29d620b194a208738fda783cdbfa84e743172a893b2f7e9d99f21ca2192cc5fb93db80356b76b1d77d1b9e0fac848fa13d3781cb48cf0ef28cc284e82085 WHIRLPOOL e4b099bbf125bd4c60735626f30f89a92666ebbb64231f9faf9a3654e9f31f3705c6f0080a8819f84d8c7fa3eac181a4a5a72e7f47780800f75fc0a8e108d031
+EBUILD mdds-1.2.3.ebuild 955 SHA256 d02e55cfde032d0107fa24b9878adcb03a537440d421986c6605aacfd710640a SHA512 32e8df21c390a68c2353907b3c72b06ea92f329e36b3b798451576af2c42b025a66baf8eeddc5aed2a5f0bd45440683b4e3bf0bf0373739275189d57fe9bf08d WHIRLPOOL b2bb5ad9ecd79d9c983b2db7112b86e584e2807a7c6f62951be512461d77110e8f54b03537926bf12b01a5fcff726e9d6a5c44a408da12ae9f304b2c34ada453
+EBUILD mdds-9999.ebuild 955 SHA256 bff38399b0581cb05fdcc6d793acc32fc196657854713df06c0c213cac2fc905 SHA512 39b840e056623529b6270de4c6d987ad2bbc2eaf6a52b2bb875af14b09a71f54e8aa6d7318e02fb8bfa51a8159e970c208dc308b85f34d07c2c62c629e80d0ec WHIRLPOOL 17fc37f1aedc9c85288253ea154bc179ff8dd4541c7dc655bf3bb5f92fa33e14411124f4a2930c229b39454bc7e7b502e6dd1494e0dd72b5213517876147036f
+MISC ChangeLog 5315 SHA256 18859341ad9a408d2415201cd065026e65a493f6ebfabd61342a0d245da0fec0 SHA512 aff33b0c0ccd6a9b46f447b90f6891ccddae3f6aa7ea6e3aff635209b297bc82f65ec467247752b006ed6cc33194fc8e591a677b36c45379c5b1f9517b92e747 WHIRLPOOL 221b76a29b10eca5c6fc2ff78ccb1ebba66122930bcd2490ed5360470dd4d32aabb35fe2f913a068af564490b02cf1c0f690c840f4acc508ae8af482a7a24994
+MISC ChangeLog-2015 7826 SHA256 38af778836aa2d7f64ff9f0eaaa15e347bea2b56d5985408847d0fd399dbfe2b SHA512 9a5c77c0720a948edb1171dd60a3612e949f3854c1d26085cda0418bab9138073e465999a425c70b94772523c022fa11fbbe7fce9b222332d1829355a3461fec WHIRLPOOL 0414bab637aed04c46538d1d6a12ad60fe04216bb83c7b795e78f8bb6cb6487efe0b21bd763ebb4e4016c01ada0669b53256989737a7679dce9d69bfcd03ff74
+MISC metadata.xml 456 SHA256 08d30fa3660091cc9feefc6d1822078898b3018a70818bcf30e2887744a3f1bf SHA512 51aa3106f9bb7b962e7225e88fb56335b0bef35dc1749866a4e44290ca0cac510be348aa6b5542f536a8b3bdc83dbf39c4af6b79dc603047a7a6ba6980842d71 WHIRLPOOL 0682ab3ae33742425833ed38c5df478b4a94de3f04986cb6feac1517a2e1b1b53b59a5a6a24063e00b4993a8406306e89ef7be3370867f30233429e8eb0a7dd1
diff --git a/dev-util/mdds/files/mdds-1.2.3-buildsystem.patch b/dev-util/mdds/files/mdds-1.2.3-buildsystem.patch
new file mode 100644
index 000000000000..89b45d826e04
--- /dev/null
+++ b/dev-util/mdds/files/mdds-1.2.3-buildsystem.patch
@@ -0,0 +1,36 @@
+We want to install (not all of) those files manually.
+
+--- a/Makefile.am 2017-05-24 23:59:15.000000000 +0200
++++ b/Makefile.am 2017-05-26 21:52:01.184258647 +0200
+@@ -4,16 +4,12 @@
+
+ AM_CPPFLAGS = -I$(top_srcdir)/include
+
+-dist_doc_DATA = AUTHORS README.md
+-nodist_doc_DATA = VERSION
+ nodist_pkgconf_DATA = misc/mdds-@API_VERSION@.pc
+
+ DISTCLEANFILES = misc/mdds-@API_VERSION@.pc
+
+ EXTRA_DIST = \
+ autogen.sh \
+- CHANGELOG \
+- LICENSE \
+ doc/conf.py \
+ doc/doxygen.conf \
+ doc/flat_segment_tree.rst \
+@@ -151,14 +147,6 @@
+ trie_map_test_mem.mem
+ endif
+
+-install-data-local:
+- $(MKDIR_P) $(DESTDIR)$(docdir)
+- $(INSTALL_DATA) $(top_srcdir)/LICENSE $(DESTDIR)$(docdir)/COPYING
+- $(INSTALL_DATA) $(top_srcdir)/CHANGELOG $(DESTDIR)$(docdir)/NEWS
+-
+-uninstall-local:
+- rm -f $(DESTDIR)$(docdir)/COPYING $(DESTDIR)$(docdir)/NEWS
+-
+ if BUILD_DOCS
+ html-local:
+ (cd doc && $(DOXYGEN) doxygen.conf)
diff --git a/dev-util/mdds/mdds-1.2.2.ebuild b/dev-util/mdds/mdds-1.2.2.ebuild
new file mode 100644
index 000000000000..87734073a01b
--- /dev/null
+++ b/dev-util/mdds/mdds-1.2.2.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+EGIT_REPO_URI="https://gitlab.com/mdds/mdds.git"
+[[ ${PV} == 9999 ]] && GITECLASS="git-r3 autotools"
+
+inherit toolchain-funcs ${GITECLASS}
+
+DESCRIPTION="A collection of multi-dimensional data structure and indexing algorithm"
+HOMEPAGE="https://gitlab.com/mdds/mdds"
+[[ ${PV} == 9999 ]] || SRC_URI="http://kohei.us/files/${PN}/src/${P}.tar.bz2"
+
+LICENSE="MIT"
+SLOT="1/${PV%.*}"
+IUSE="doc valgrind"
+
+[[ ${PV} == 9999 ]] || \
+KEYWORDS="amd64 ~arm ~ppc ~ppc64 x86 ~amd64-linux ~x86-linux"
+
+RDEPEND="dev-libs/boost:="
+DEPEND="${RDEPEND}
+ doc? (
+ app-doc/doxygen
+ dev-python/sphinx
+ )
+"
+
+DOCS=() # buildsystem installs docs
+
+src_prepare(){
+ default
+ [[ ${PV} == 9999 ]] && eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_enable doc docs) \
+ $(use_enable valgrind memory_tests)
+}
+
+src_compile() { :; }
+
+src_test() {
+ tc-export CXX
+ default
+}
diff --git a/dev-util/mdds/mdds-1.2.3.ebuild b/dev-util/mdds/mdds-1.2.3.ebuild
new file mode 100644
index 000000000000..7106902e2181
--- /dev/null
+++ b/dev-util/mdds/mdds-1.2.3.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+EGIT_REPO_URI="https://gitlab.com/mdds/mdds.git"
+[[ ${PV} == 9999 ]] && GITECLASS="git-r3"
+
+inherit autotools toolchain-funcs ${GITECLASS}
+
+DESCRIPTION="A collection of multi-dimensional data structure and indexing algorithm"
+HOMEPAGE="https://gitlab.com/mdds/mdds"
+[[ ${PV} == 9999 ]] || SRC_URI="http://kohei.us/files/${PN}/src/${P}.tar.bz2"
+
+LICENSE="MIT"
+SLOT="1/${PV%.*}"
+IUSE="doc valgrind"
+
+[[ ${PV} == 9999 ]] || \
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
+
+RDEPEND="dev-libs/boost:="
+DEPEND="${RDEPEND}
+ doc? (
+ app-doc/doxygen
+ dev-python/sphinx
+ )
+"
+
+PATCHES=( "${FILESDIR}/${P}-buildsystem.patch" )
+
+src_prepare(){
+ default
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_enable doc docs) \
+ $(use_enable valgrind memory_tests)
+}
+
+src_compile() { :; }
+
+src_test() {
+ tc-export CXX
+ default
+}
diff --git a/dev-util/mdds/mdds-9999.ebuild b/dev-util/mdds/mdds-9999.ebuild
new file mode 100644
index 000000000000..e87dc4be509d
--- /dev/null
+++ b/dev-util/mdds/mdds-9999.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+EGIT_REPO_URI="https://gitlab.com/mdds/mdds.git"
+[[ ${PV} == 9999 ]] && GITECLASS="git-r3"
+
+inherit autotools toolchain-funcs ${GITECLASS}
+
+DESCRIPTION="A collection of multi-dimensional data structure and indexing algorithm"
+HOMEPAGE="https://gitlab.com/mdds/mdds"
+[[ ${PV} == 9999 ]] || SRC_URI="http://kohei.us/files/${PN}/src/${P}.tar.bz2"
+
+LICENSE="MIT"
+SLOT="1/${PV%.*}"
+IUSE="doc valgrind"
+
+[[ ${PV} == 9999 ]] || \
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
+
+RDEPEND="dev-libs/boost:="
+DEPEND="${RDEPEND}
+ doc? (
+ app-doc/doxygen
+ dev-python/sphinx
+ )
+"
+
+PATCHES=( "${FILESDIR}/${PN}-1.2.3-buildsystem.patch" )
+
+src_prepare(){
+ default
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_enable doc docs) \
+ $(use_enable valgrind memory_tests)
+}
+
+src_compile() { :; }
+
+src_test() {
+ tc-export CXX
+ default
+}
diff --git a/dev-util/mdds/metadata.xml b/dev-util/mdds/metadata.xml
new file mode 100644
index 000000000000..c054dfb0bb86
--- /dev/null
+++ b/dev-util/mdds/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="project">
+ <email>office@gentoo.org</email>
+ <name>Gentoo Office project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="google-code">multidimalgorithm</remote-id>
+ </upstream>
+ <use>
+ <flag name="valgrind">Add support for memory debugging using <pkg>dev-util/valgrind</pkg></flag>
+ </use>
+</pkgmetadata>
diff --git a/dev-util/meld/Manifest b/dev-util/meld/Manifest
new file mode 100644
index 000000000000..d4dbac672bc7
--- /dev/null
+++ b/dev-util/meld/Manifest
@@ -0,0 +1,7 @@
+DIST meld-3.16.4.tar.xz 537364 SHA256 93c4f928319dae7484135ab292fe6ea4254123e8219549a66d3e2deba6a38e67 SHA512 58ebca17b9ed9d9357d6f36357085603c3643eedbd86630a9a911ec87fd3a29a97a8e7ffba605b8e8d054322452ebdc299a5d50601968cf7b97d41ce6458be8f WHIRLPOOL c94fc2e5acbb839e4db60e841e5dcff1187a134f9f0f06a77b9b4ef25650e2987a8276258c298769a030026979ff32a032967683f0fc7c347e10072a9a4b5dcf
+DIST meld-3.17.4.tar.xz 553316 SHA256 7e2d0a8b2a921e39c4142b500bf57d2199d90fca62fd1876103d95d113583e47 SHA512 3026953691607bf7c4ae332822576704568daa471fe657015ae2533f40e25c89da50810d921e2962241824047580e67fe25fe336aa89c4d1a21cda7a8f0aca72 WHIRLPOOL 6b4631cc839660631393db4ff3a3bde6a99ae06b312433bda2b39edfde85c790adf07dec1e242732b46210476fe9a5fbdbc27b9430301a9f72a0a507ed6e7f0d
+EBUILD meld-3.16.4.ebuild 895 SHA256 e8ba15f526f9d0a915b0828270eb6015049581ebaa6042c190f4485f397585ef SHA512 1c746808f45549a8d4c6193b82f9870ff3959f6fe83e569661faacd61c638a7729f96b42f35f8fb2f64223ec62caa153a765376dbb7767eddee62b94c1e28d63 WHIRLPOOL 867ca35b45d5c8d17f13651a438f0d669fd620967acb122c1bca4d8a57d42d57a64cb989e5a055c48499a5f106ea3bd032c8a8bfac068e54afbddf4fb9819d96
+EBUILD meld-3.17.4.ebuild 904 SHA256 5772c7f33bccd1a11773e3dd12b4ed2f5791acadc8d4bd6e4bf5773940eba4e6 SHA512 3fde2e788e0776d15df1129746641b6468ba163a051cf26e690747121c846cba3f188e328cad7ef18c04c5f42ef60229ebfbe006cacb7ef4d02aa90117b308f1 WHIRLPOOL fd74f917ce107476b2fad45f91dc55e4fa4fe0f721cbca3f15efb7f667113f18e5fba7fa55798bbf6fc19cb2687ef4fee714e0b5cb1ca36a9925eef16d82cf8f
+MISC ChangeLog 5729 SHA256 fdb7b0e9e58a495d2ecd07f0dbe1db47145b2a01a8b38254d5046804144ab401 SHA512 845de2f504ed12ea98da4ed96942f53939c69987472e3524da1ee799bb45c35e3d0c5cc3d8497be2efd90a3106f045e9a168a26ef6790228bcecd5ae3afc05bd WHIRLPOOL 8de53532e6bc1cab47ceb92883f8cdc2f8aa0eb9ae2845096ea5fe7c53f366f7a305e789959167b586a6a2ad91066b9ddabf56ea39d48047d73deebcc8f4514d
+MISC ChangeLog-2015 25817 SHA256 33889c6a3cff763e00284f1916494423bb91bc94d51d0e1cb2b7d56a04a5c60b SHA512 5552fbc93c3c77c576037663da3b0a45cd3e25397a7b63cc00b25f9c3834575d2de03cc8ad74740c66855a9f338010225d541124e5ea6f05e8bd6ee44c81a01b WHIRLPOOL bc579ab83d040524a657f598d798866c381d73147d8dd201aad67cb1973259448f75fc98508788d0a8e72ddf511a64bd029bc802409ec86882d7090d5f3ea4bd
+MISC metadata.xml 249 SHA256 4505b0bfeadff287958620b7dc7b7209699065a8f17139a237a5dd409a726a97 SHA512 c40662134899a5c9f0369a1017806f35adf3280a0b3c91726f7a8ca6012a073a8b471583f5bfb6fe95faac1dcf607e8e2e43f8c91d48ec46f4a8824e2f551506 WHIRLPOOL 333a938ee1d2124595596c572697bf5ebad523a92ba12005cfb12e6bb6270881a94a911f0cc9c1cf2bb571559e8271e07dfd307dabe50058236dbe7103562b92
diff --git a/dev-util/meld/meld-3.16.4.ebuild b/dev-util/meld/meld-3.16.4.ebuild
new file mode 100644
index 000000000000..98a3b175b5cc
--- /dev/null
+++ b/dev-util/meld/meld-3.16.4.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+PYTHON_REQ_USE="xml"
+PYTHON_COMPAT=( python2_7 )
+DISTUTILS_SINGLE_IMPL=1
+
+inherit gnome2 distutils-r1
+
+DESCRIPTION="A graphical diff and merge tool"
+HOMEPAGE="http://meldmerge.org/"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~alpha amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc x86 ~amd64-linux ~x86-linux"
+IUSE=""
+
+RDEPEND="${PYTHON_DEPS}
+ >=dev-libs/glib-2.36:2[dbus]
+ dev-python/dbus-python[${PYTHON_USEDEP}]
+ >=dev-python/pygobject-3.8:3[cairo,${PYTHON_USEDEP}]
+ gnome-base/gsettings-desktop-schemas
+ >=x11-libs/gtk+-3.14:3[introspection]
+ >=x11-libs/gtksourceview-3.14:3.0[introspection]
+ x11-themes/hicolor-icon-theme
+"
+DEPEND="${RDEPEND}
+ dev-util/intltool
+ dev-util/itstool
+ sys-devel/gettext
+"
+
+python_compile_all() {
+ mydistutilsargs=( --no-update-icon-cache --no-compile-schemas )
+}
diff --git a/dev-util/meld/meld-3.17.4.ebuild b/dev-util/meld/meld-3.17.4.ebuild
new file mode 100644
index 000000000000..417166e088eb
--- /dev/null
+++ b/dev-util/meld/meld-3.17.4.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+PYTHON_REQ_USE="xml"
+PYTHON_COMPAT=( python3_{4,5,6} )
+DISTUTILS_SINGLE_IMPL=1
+
+inherit gnome2 distutils-r1
+
+DESCRIPTION="A graphical diff and merge tool"
+HOMEPAGE="http://meldmerge.org/"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE=""
+
+RDEPEND="${PYTHON_DEPS}
+ >=dev-libs/glib-2.50:2[dbus]
+ dev-python/dbus-python[${PYTHON_USEDEP}]
+ >=dev-python/pygobject-3.12:3[cairo,${PYTHON_USEDEP}]
+ gnome-base/gsettings-desktop-schemas
+ >=x11-libs/gtk+-3.14:3[introspection]
+ >=x11-libs/gtksourceview-3.14:3.0[introspection]
+ x11-themes/hicolor-icon-theme
+"
+DEPEND="${RDEPEND}
+ dev-util/intltool
+ dev-util/itstool
+ sys-devel/gettext
+"
+
+python_compile_all() {
+ mydistutilsargs=( --no-update-icon-cache --no-compile-schemas )
+}
diff --git a/dev-util/meld/metadata.xml b/dev-util/meld/metadata.xml
new file mode 100644
index 000000000000..39980802b1da
--- /dev/null
+++ b/dev-util/meld/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="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+</maintainer>
+</pkgmetadata>
diff --git a/dev-util/memprof/Manifest b/dev-util/memprof/Manifest
new file mode 100644
index 000000000000..bc884a12c291
--- /dev/null
+++ b/dev-util/memprof/Manifest
@@ -0,0 +1,7 @@
+AUX memprof-0.6.2-binutils.patch 212 SHA256 95339da2981a035b0776024368e8c174203fb17ade7fbc18d7909f1813bf3795 SHA512 f0b5d6ff79d04536f1b0f2e7275eb795c4fb816f973483970d9fcf01ef07e6216e89890d7a5a367004883b2a5b7d6eda344397641fbd7ae9c921a7f8674a7001 WHIRLPOOL 8f47d7d77e766373f9dd4ee68022e56fc3eaeedc58ca226d0fdf594ab84469b9da89d133647bc05f1c2d59b31058cc06d82ad3bb40594180881553367c36411f
+AUX memprof-0.6.2-desktop.patch 754 SHA256 916defbe3af3c42a7a1bbec6903705ded6d42a49f5458bc869bf3654813a291f SHA512 a9e96331aac0b5c1eb50ffc24d6e242479d8e3642fff762f529ec2d3ad97e50262109e15ac80ddbeea8bd87bd4c5ac9d5c7f27989a93422140e5edbe0087b375 WHIRLPOOL 081d89288028953d6de87d5225040a07776089a90e4a0df36b911723459f624bdf637b16d9130c16b0ab9f46fdcb021bbde4f83493e055ade0d6f5627e8e00d0
+DIST memprof-0.6.2.tar.gz 534543 SHA256 5d505f536753036b1b8777fb865b5bce1972a14bfa640cc15da2aa0bc5a0aef3 SHA512 cecfeb88f10f11fc4df106367871487453ddd9cb502ef96a6f120ee8889cfa96e8463f260c853abb351c7864e68904cf6e833864d561f9e7b09a785f4c315ca7 WHIRLPOOL 81afc8800dbf00750c4816b762f395fd45b3a4dfab4def956f1535e416747b8de4f282792a955764894ba40e2b9e1aeb8a30b70988f594348073121087ed39fd
+EBUILD memprof-0.6.2-r1.ebuild 825 SHA256 1c067667bae4e4514aec7c1be2e1499342046d1553b051efa659fd78cb7f2b20 SHA512 198bbbf95ac526eb0521ee2d9a020c75b7bd33c1ed70cd0566fe6f7361ccbc48beb5feef83bc2042784af4dd669e67ee8babe3fed56d5a902dffd87eba08789d WHIRLPOOL 34841076d2796e7ab0e192212e69ddfbfa7fa820bfd5e206b0428677eacc24773a7588342e17662faf4a008cb90499fc9eb9a369caf8c0e20aaba5e61e21892b
+MISC ChangeLog 2603 SHA256 3e0ab26b46a589961939c504cbcb454f8e5f689a60420f4045497686bb032e62 SHA512 18f4a875388e8093fcc3de86487bda8977202a7f9899c78da43ef42c9f571f89a7eee88d790d7dcb695777b9272c634bb8f5d4d8e334859bcb87a127c1cfa9f4 WHIRLPOOL f7aafbad2f05a228df3a647488f589486dc198138c4108bd962b75534b15e21675e42c5ace0a95c7747aa167345cb208b632b0b90b76f3348a1a1b8efee24be7
+MISC ChangeLog-2015 3274 SHA256 67b5e0d985c6a7bdcad1dd3d903d41430be04da6883a776ac35c65525de54759 SHA512 cd7d7eeee7d0533d5c1c174e574677283e6f127618356eeb683d92b7c7f9b27c679231158031e7de1a23d3018a07ec4f901eba06f233b93972419d8b7fd6b88e WHIRLPOOL f2dd8f369c1ca77a2a9c76cc3f94d2cdec74d9f2cf8f581bc67ce40711da9e821bebc14c8275a7647a4d79b24e8f038a6d40ac2ef87c990043310c51b7718132
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/dev-util/memprof/files/memprof-0.6.2-binutils.patch b/dev-util/memprof/files/memprof-0.6.2-binutils.patch
new file mode 100644
index 000000000000..2a7f80993d5e
--- /dev/null
+++ b/dev-util/memprof/files/memprof-0.6.2-binutils.patch
@@ -0,0 +1,10 @@
+--- src/memprof.h
++++ src/memprof.h
+@@ -24,6 +24,7 @@
+ #include <gtk/gtkwidget.h>
+ #include <stdio.h>
+ #include <sys/types.h>
++#include "config.h"
+ #include "bfd.h"
+ #include "stackstash.h"
+ #include "binfile.h"
diff --git a/dev-util/memprof/files/memprof-0.6.2-desktop.patch b/dev-util/memprof/files/memprof-0.6.2-desktop.patch
new file mode 100644
index 000000000000..a49b5697aaca
--- /dev/null
+++ b/dev-util/memprof/files/memprof-0.6.2-desktop.patch
@@ -0,0 +1,24 @@
+--- memprof.desktop
++++ memprof.desktop
+@@ -11,17 +11,13 @@
+ Name[uk]=MemProf
+ Comment=Check a program for leaks and analyze its memory usage
+ Comment[sl]=Orodje za profiliranje pomnilnika
+-Comment[da]=Vrktj til hukommelsesprofilering
+-Comment[el]=
+ Comment[fr]=Outil de profilage de memoire
+ Comment[it]=Strumento di profilo della memoria
+ Comment[nl]=Gereedschap voor geheugen profilering
+-Comment[no]=Verkty for minneprofilering
+ Comment[pt_BR]=Ferramenta de
+ Comment[sv]=Minnesprofileringsverktyg
+-Comment[uk]=Ӧ Ʀ 'Ԧ
+ Exec=memprof
+-Terminal=0
++Terminal=false
+ Type=Application
+-Icon=memprof.png
+-Categories=Application;Development;
+\ No newline at end of file
++Icon=memprof
++Categories=Development;
diff --git a/dev-util/memprof/memprof-0.6.2-r1.ebuild b/dev-util/memprof/memprof-0.6.2-r1.ebuild
new file mode 100644
index 000000000000..99e0512870ef
--- /dev/null
+++ b/dev-util/memprof/memprof-0.6.2-r1.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils
+
+DESCRIPTION="Profiling and leak detection tool"
+HOMEPAGE="http://www.secretlabs.de/projects/memprof/"
+SRC_URI="http://www.secretlabs.de/projects/memprof/releases/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="nls"
+
+RDEPEND="dev-libs/glib:2
+ >=gnome-base/libglade-2
+ >=x11-libs/gtk+-2.6:2
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ nls? ( dev-util/intltool
+ sys-devel/gettext )"
+
+DOCS=( AUTHORS ChangeLog README NEWS )
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-binutils.patch
+ epatch "${FILESDIR}"/${P}-desktop.patch
+}
+
+src_configure() {
+ econf \
+ --disable-static \
+ $(use_enable nls)
+}
+
+src_install() {
+ default
+ prune_libtool_files --modules
+}
diff --git a/dev-util/memprof/metadata.xml b/dev-util/memprof/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/dev-util/memprof/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/dev-util/meson/Manifest b/dev-util/meson/Manifest
new file mode 100644
index 000000000000..f25788cae7ba
--- /dev/null
+++ b/dev-util/meson/Manifest
@@ -0,0 +1,11 @@
+DIST meson-0.41.2.tar.gz 1013526 SHA256 ad1707717987fe8b7b65392b8327580105fcbdd5f2032bf3b7232b647284c95c SHA512 b11dccad82c2380004793e22f538b89d8871f080b55d2c8f5adab1afd4a215fac98304d823f320aefe9946dedc52747e5b2a877bfd80dc8c63d191c542b46a4e WHIRLPOOL 8116a5938461ec083a34e64008e07e9a8138cbe3ca6a036cefea8d6e72e1a58fd7b0ffad57340664b913c48295700d420970c550ab2efcc6753026b92340f09a
+DIST meson-0.42.0.tar.gz 1042920 SHA256 4ef46250beea2af272a2ab5bdf835dd06e8c8d341c18529d502b5f7be0ac73fe SHA512 0a8c3c8c4da70f19de7e10faaf7aef9e950cc21db116a886d0dd7732a70a3dc26996ef15c5eeed79638cf34ee994008e5cb68f7f38b18174e311572ba44e1594 WHIRLPOOL ea16b78710586f907de63f31d4f8973cac4bdbb062f45532ec27edae3c22b8fce596c9ed0917c219a80acf0da32e9873806966509197d72729f0b239fad619a5
+DIST meson-0.42.1.tar.gz 1044883 SHA256 bb74f7aa0baea94f4d4b8502aea43afd45555c8678e618232ea8a2ca6f0f0ede SHA512 43dc72ea4aa697c0dea6cef57308f487814fb6cf2a4a2338b658172a43603924122ed892c707eb6b974db72f86d767aac23a7397b97270cfe2032d2e6a68911d WHIRLPOOL 4e213bb7ca2fdce33740b8f9ad7b0887fade0ea80ba76b2764fc76d460473811f067703951a85a72b8589337dbbc48d15734da9f34f07f38094efab42f3eeec3
+DIST meson-0.43.0.tar.gz 1066663 SHA256 c1e05a84e7ba34922562b638dbf85ceec817830ec78c776c8d7954b5bf87c562 SHA512 17f7e7f87c344ae0a2f53975c65ef3b4eae204a57eb97141aedb4edf65aa21af29a6f61e3870022efd2d126ce768602fbb894ec7d919875dd44ccdb39a5df044 WHIRLPOOL 88fc7b22a7a3a3725bce6788764c9817877b264e9d9f2679df884ba839332f9ea91f2e5824cb947929efba44e87e84258dc72c25ae5c12bf79cacc83a244f1db
+EBUILD meson-0.41.2.ebuild 785 SHA256 19eca41aa8d04ab604da4b8a547717c663b6367e6a0eb2ff058c10303ae80d34 SHA512 32a88234559f73227e530b04a865e217f7de468152eb44f2da844b3ffb2ce645a0d73d11cdaf3a02c311b0a3c91cc77aa8a19b2fb6d0efcb1dc017d20cd9d804 WHIRLPOOL 681194fda8f8897088968e56f62217744c781aef08a50511e2b0a936ea48f5842f316697a5dfdc350e4c61b9085f0abc32513721cef8e6b6addc27e067eaa641
+EBUILD meson-0.42.0.ebuild 792 SHA256 a26aad28692ce0a800280f176a1e5aee4765a3be254b965b9187097df7537785 SHA512 1f7ab26089b79546881d031a44b57a98715163bb973e7aae9c25ee10caab24a75fbf4bc8ec1bf0ea561e41ca547090dc22e1026ac027730df6d0a8bab8b7d180 WHIRLPOOL c5ec364c32c657fdd31db261bfa45079d85ae63d150dc4f8679afc1a2cde65bbb2e2b2e86705091a81f5c06937671fd11f34ef34673d5acdc7a5d245ea2682ad
+EBUILD meson-0.42.1.ebuild 792 SHA256 a26aad28692ce0a800280f176a1e5aee4765a3be254b965b9187097df7537785 SHA512 1f7ab26089b79546881d031a44b57a98715163bb973e7aae9c25ee10caab24a75fbf4bc8ec1bf0ea561e41ca547090dc22e1026ac027730df6d0a8bab8b7d180 WHIRLPOOL c5ec364c32c657fdd31db261bfa45079d85ae63d150dc4f8679afc1a2cde65bbb2e2b2e86705091a81f5c06937671fd11f34ef34673d5acdc7a5d245ea2682ad
+EBUILD meson-0.43.0.ebuild 792 SHA256 a26aad28692ce0a800280f176a1e5aee4765a3be254b965b9187097df7537785 SHA512 1f7ab26089b79546881d031a44b57a98715163bb973e7aae9c25ee10caab24a75fbf4bc8ec1bf0ea561e41ca547090dc22e1026ac027730df6d0a8bab8b7d180 WHIRLPOOL c5ec364c32c657fdd31db261bfa45079d85ae63d150dc4f8679afc1a2cde65bbb2e2b2e86705091a81f5c06937671fd11f34ef34673d5acdc7a5d245ea2682ad
+EBUILD meson-9999.ebuild 792 SHA256 a26aad28692ce0a800280f176a1e5aee4765a3be254b965b9187097df7537785 SHA512 1f7ab26089b79546881d031a44b57a98715163bb973e7aae9c25ee10caab24a75fbf4bc8ec1bf0ea561e41ca547090dc22e1026ac027730df6d0a8bab8b7d180 WHIRLPOOL c5ec364c32c657fdd31db261bfa45079d85ae63d150dc4f8679afc1a2cde65bbb2e2b2e86705091a81f5c06937671fd11f34ef34673d5acdc7a5d245ea2682ad
+MISC ChangeLog 1644 SHA256 16a9aa8ce1a9add714323002885f3199f679aff35cba65edc21bbc1ba636ed85 SHA512 8ada51de63f366d4c33e0d08a66687fa37df2ff56bf4767a8f201efac0ef73a5685a13437115e4eb09479a415da6ffc065e412dd38dab8a1e83ecc3349ea3f0b WHIRLPOOL 1fb093e733adccf5923a1a85909042cf083ae69139f8e3ecddd10e8c8f132e42fc4074a916f51c1a27cbfaf7c83abe12726604376f5e534771b4f47e18592c52
+MISC metadata.xml 443 SHA256 741f4eeccedf2aee465c65859a709a21ef5c833e7a804fecddc83d6b6b6907c2 SHA512 acc217d18494f1f968d25b52e58fa268d6a1931c5ecd03350e84ed8094ce5d0a708ba536688dfdd267ca6bfad103a2bffcfece5bb5bd9a34f4853b5f1f655826 WHIRLPOOL 66ed2ff4475484a36ce9f65439abc1bb324f4b0be1c2f3e56f913d609fb96313d81fd574ad9591f3dc1ba49edc2ef1d56fdf2749596564c7b489bcc6fb78f5e0
diff --git a/dev-util/meson/meson-0.41.2.ebuild b/dev-util/meson/meson-0.41.2.ebuild
new file mode 100644
index 000000000000..3bd963cb7b3d
--- /dev/null
+++ b/dev-util/meson/meson-0.41.2.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python3_{4,5,6} )
+
+if [[ ${PV} = *9999* ]]; then
+ EGIT_REPO_URI="https://github.com/mesonbuild/meson"
+ inherit git-r3
+else
+ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+ KEYWORDS="alpha amd64 arm ~arm64 ia64 ~mips ppc ppc64 x86"
+fi
+
+inherit distutils-r1
+
+DESCRIPTION="Open source build system"
+HOMEPAGE="http://mesonbuild.com/"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+IUSE=""
+RESTRICT="test"
+
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
+RDEPEND=""
+
+python_test() {
+ ${EPYTHON} run_tests.py || die
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+
+ insinto /usr/share/vim/vimfiles
+ doins -r syntax-highlighting/vim/{ftdetect,indent,syntax}
+}
diff --git a/dev-util/meson/meson-0.42.0.ebuild b/dev-util/meson/meson-0.42.0.ebuild
new file mode 100644
index 000000000000..bd996e33f689
--- /dev/null
+++ b/dev-util/meson/meson-0.42.0.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python3_{4,5,6} )
+
+if [[ ${PV} = *9999* ]]; then
+ EGIT_REPO_URI="https://github.com/mesonbuild/meson"
+ inherit git-r3
+else
+ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~x86"
+fi
+
+inherit distutils-r1
+
+DESCRIPTION="Open source build system"
+HOMEPAGE="http://mesonbuild.com/"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+IUSE=""
+RESTRICT="test"
+
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
+RDEPEND=""
+
+python_test() {
+ ${EPYTHON} run_tests.py || die
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+
+ insinto /usr/share/vim/vimfiles
+ doins -r syntax-highlighting/vim/{ftdetect,indent,syntax}
+}
diff --git a/dev-util/meson/meson-0.42.1.ebuild b/dev-util/meson/meson-0.42.1.ebuild
new file mode 100644
index 000000000000..bd996e33f689
--- /dev/null
+++ b/dev-util/meson/meson-0.42.1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python3_{4,5,6} )
+
+if [[ ${PV} = *9999* ]]; then
+ EGIT_REPO_URI="https://github.com/mesonbuild/meson"
+ inherit git-r3
+else
+ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~x86"
+fi
+
+inherit distutils-r1
+
+DESCRIPTION="Open source build system"
+HOMEPAGE="http://mesonbuild.com/"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+IUSE=""
+RESTRICT="test"
+
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
+RDEPEND=""
+
+python_test() {
+ ${EPYTHON} run_tests.py || die
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+
+ insinto /usr/share/vim/vimfiles
+ doins -r syntax-highlighting/vim/{ftdetect,indent,syntax}
+}
diff --git a/dev-util/meson/meson-0.43.0.ebuild b/dev-util/meson/meson-0.43.0.ebuild
new file mode 100644
index 000000000000..bd996e33f689
--- /dev/null
+++ b/dev-util/meson/meson-0.43.0.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python3_{4,5,6} )
+
+if [[ ${PV} = *9999* ]]; then
+ EGIT_REPO_URI="https://github.com/mesonbuild/meson"
+ inherit git-r3
+else
+ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~x86"
+fi
+
+inherit distutils-r1
+
+DESCRIPTION="Open source build system"
+HOMEPAGE="http://mesonbuild.com/"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+IUSE=""
+RESTRICT="test"
+
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
+RDEPEND=""
+
+python_test() {
+ ${EPYTHON} run_tests.py || die
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+
+ insinto /usr/share/vim/vimfiles
+ doins -r syntax-highlighting/vim/{ftdetect,indent,syntax}
+}
diff --git a/dev-util/meson/meson-9999.ebuild b/dev-util/meson/meson-9999.ebuild
new file mode 100644
index 000000000000..bd996e33f689
--- /dev/null
+++ b/dev-util/meson/meson-9999.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python3_{4,5,6} )
+
+if [[ ${PV} = *9999* ]]; then
+ EGIT_REPO_URI="https://github.com/mesonbuild/meson"
+ inherit git-r3
+else
+ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~x86"
+fi
+
+inherit distutils-r1
+
+DESCRIPTION="Open source build system"
+HOMEPAGE="http://mesonbuild.com/"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+IUSE=""
+RESTRICT="test"
+
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
+RDEPEND=""
+
+python_test() {
+ ${EPYTHON} run_tests.py || die
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+
+ insinto /usr/share/vim/vimfiles
+ doins -r syntax-highlighting/vim/{ftdetect,indent,syntax}
+}
diff --git a/dev-util/meson/metadata.xml b/dev-util/meson/metadata.xml
new file mode 100644
index 000000000000..8f23b803b042
--- /dev/null
+++ b/dev-util/meson/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>williamh@gentoo.org</email>
+ <name>William Hubbs</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>gstreamer@gentoo.org</email>
+ <name>GStreamer package maintainers</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="pypi">meson</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/metadata.xml b/dev-util/metadata.xml
new file mode 100644
index 000000000000..b57240b4ca92
--- /dev/null
+++ b/dev-util/metadata.xml
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE catmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<catmetadata>
+ <longdescription lang="en">
+ The dev-util category contains various miscellaneous development
+ utilities.
+ </longdescription>
+ <longdescription lang="de">
+ Die Kategorie dev-util enthält verschiedene Programmierwerkzeuge.
+ </longdescription>
+ <longdescription lang="es">
+ La categoría dev-util contiene varias utilidades de desarrollo mixtas.
+ </longdescription>
+ <longdescription lang="ja">
+ dev-util カテゴリーには多種多様な開発ユーティリティが含まれます。
+ </longdescription>
+ <longdescription lang="nl">
+ De dev-util categorie bevat verschillende hulpmiddelen voor gebruik
+ bij het programmeren.
+ </longdescription>
+ <longdescription lang="vi">
+ Nhóm dev-util chứa các tiện ích phát triển khác nhau.
+ </longdescription>
+ <longdescription lang="it">
+ La categoria dev-util contiene varie utilità di sviluppo software.
+ </longdescription>
+ <longdescription lang="pt">
+ A categoria dev-util contém vários utilitários de
+ desenvolvimento mistos.
+ </longdescription>
+ <longdescription lang="pl">
+ Kategoria dev-util zawiera różne dodatkowe narzędzia związane z
+ rozwijaniem programów.
+ </longdescription>
+ <longdescription lang="ru">
+ Категория dev-util содержит различные утилиты для разработки,
+ не попадающие в другие категории.
+ </longdescription>
+</catmetadata>
+
diff --git a/dev-util/min-cscope/Manifest b/dev-util/min-cscope/Manifest
new file mode 100644
index 000000000000..5185c9dd809b
--- /dev/null
+++ b/dev-util/min-cscope/Manifest
@@ -0,0 +1,5 @@
+DIST min-cscope-16.1.0.tar.gz 382326 SHA256 2d316736d468205abac3343aa9f5795228a6846c86d8d86484ca04f490b6c74b SHA512 434d6333758dbf72c320e08b3b705bbff6c67de8a1380295fe5971af1a2c4659dd3201c726fd318d7715b90f8a693a76599a8659ac45c76568e5a29a399a9c0a WHIRLPOOL a52e4a78579b2f40b3c61e43c53c2c671cdfe0e2b8a3e20c1c3dc5a553ae79768dd273aca1659ccbeb81eccd595484ae0dd1e7d546ec727e0975ea7b0228e730
+EBUILD min-cscope-16.1.0.ebuild 587 SHA256 4cf5a7316f55ecd70c2fa2aba14204df6156cafee265666eaac10ee91af8db6a SHA512 21133c1d828e18fcedab46f8d4d1737d8ec4d6f74548d12d47014afaae735788d1bc188bdad83bda7ab1c90252338c9e70b8f2a7d8aac94d872b627fff53fe49 WHIRLPOOL 9ac2172ad032acde1684289fff3c4e987ff3b4cfbec14d7baa62d1241b102531b8b6ed2f61de78eea8c4e9635a6259b016bef504b5946bbb30ccbddc44497f6b
+MISC ChangeLog 2649 SHA256 ab04271adba0a0061fcbf04727fa07630e36f3d0713cd0fd97b0cb0e55857be6 SHA512 c2411cb362a79536fcef57441161bcfdbc27b528584c95c2e8936168174b45ed0b2452e3e7cddde61ad4844d5bfbcdde121e2154d91613bdd5dc51c12a7ec8b2 WHIRLPOOL 5508f79d47b05f1e9ae402ef931462747158cfe9f577cd931900ff9ee6c45c295ed083b840679e92a5d96694da99472f4bf6f15235cdf9564c8e8854ec474e70
+MISC ChangeLog-2015 540 SHA256 4fffba37dd98ea35325c0f4a9991f5cfd61debef5af50f54a62a1e966fc2e4e9 SHA512 0d92d9a702adab034b75d8cc96ed3b94a0b046a63ea6aee80f203417f6ea450ac5c4d79b5b49d73048216eca4a781d4c0b6acdde9d92280f85ca552ab66158e2 WHIRLPOOL 733af9a76f6d9092711f0951e0a0aa07b8e9e0f5cbe6438d6590b7897f7cfc6a595158f5902735b3d2e28e4de410887bec7ddb6e923c3a793ad13f5e650a7a83
+MISC metadata.xml 248 SHA256 2d04f913582e3e3bf94ab9e84ab0943985fafa200413393fb51253c51f6b4d5a SHA512 6f50ad3193cddb62d48b3e833f321299930b9755b7e92dd1fa7ac4adb54d08996a75f89225e3d5358e84c5a75480d5b2b54163c717f7df66ef5e779946d342b4 WHIRLPOOL 60c2c14bbaae98a4a24e12bdf671a0c3d95e0dd3646428ae5493dfeae97bf5315aba814e6b6d7f9da8eb3db0e8b3550257eed40b7c0f29609aa495fe4a262214
diff --git a/dev-util/min-cscope/metadata.xml b/dev-util/min-cscope/metadata.xml
new file mode 100644
index 000000000000..8b2f09938be6
--- /dev/null
+++ b/dev-util/min-cscope/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-needed -->
+ <upstream>
+ <remote-id type="sourceforge">kscope</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/min-cscope/min-cscope-16.1.0.ebuild b/dev-util/min-cscope/min-cscope-16.1.0.ebuild
new file mode 100644
index 000000000000..a32340f19d04
--- /dev/null
+++ b/dev-util/min-cscope/min-cscope-16.1.0.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit cmake-utils flag-o-matic
+
+DESCRIPTION="Interactively examine a C program"
+HOMEPAGE="https://sourceforge.net/projects/kscope/"
+SRC_URI="mirror://sourceforge/kscope/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="debug"
+
+S=${WORKDIR}/${PN}
+
+DOCS="AUTHORS README* TODO"
+
+src_prepare() {
+ echo 'INSTALL(TARGETS min-cscope RUNTIME DESTINATION bin)' \
+ >> src/CMakeLists.txt
+}
+
+src_configure() {
+ append-flags -I"${S}/sort"
+ cmake-utils_src_configure
+}
diff --git a/dev-util/mingw-runtime/Manifest b/dev-util/mingw-runtime/Manifest
new file mode 100644
index 000000000000..c403f81b6e76
--- /dev/null
+++ b/dev-util/mingw-runtime/Manifest
@@ -0,0 +1,13 @@
+AUX mingw-runtime-3.18-gcc-4.6.patch 861 SHA256 5106cdb8a450ca152dbff873f5165b6ec3c5fc595fc340cda47ee6f350b975e1 SHA512 696469f42f03f79219d946ea046aa2cf419f3abd6664db60b477a3ea474a652f42521ab039f4e4ccbd2d0c15d6816d54b4ac3551fbea3d5539dfcda71e17139d WHIRLPOOL 3049e9cfb74299b54c932e375a16b0b63cfda1f7686cab292900efd12c78e57d1b8d6f8828a25a9be6a02af3133e0256017a9dbd49adc155ccadacaa406189b2
+AUX mingw-runtime-3.20-LDBL_MIN_EXP.patch 5806 SHA256 16eab6a941eb6dc820dda592d8a80e94d4eccaa2cfd666213d5e894e187cd4ed SHA512 2013860ca92e5eeeaf94b5b78882a453d2f3312a51b6d8b37665e9d1f70aa80364355b5d3cb60a561adc6f2fb0001de41069548d715ffeb65793cdcc6c4b97ea WHIRLPOOL 8f21eaedb8203c20fafda4b76e0bae3ad8e08b13ca88572fe76de9350b7827d4c7a00b10223dd982f37219cb72d80080f4665be6cb0e842c02730a93e046ccd2
+DIST mingwrt-3.18-mingw32-src.tar.gz 391939 SHA256 de4979fd6eedeb21d2d506fe4880a838706dc88cbebe031e38561967fb7cbd42 SHA512 87778f08469a806dda606b0945d00511fccd0f7e0d545a33e2b4685db2490ec6a3e5e4267090b79a88eb963f97035fe8149097892f1f4a6e85f3a4661eb5e977 WHIRLPOOL c8883fcb3a4d04e9bf28e8ee15c9d5eb1fea62d7d3aed1dcfd4ae90f7186468296dc67dcd27f2e11b4af762e0fd833749a0065f4744992295c45a881aa58817a
+DIST mingwrt-3.20-2-mingw32-src.tar.lzma 302072 SHA256 398d300407861dda1d11cc5e2a4e44a1798503f364169459633020ea224a987c SHA512 ffb8e3d46a4646b236b67df0d9d21571a0ee8b78125989d506c176e03922e520201770a03093f27789f0e4373bf64f69d41e377d861ddd008b5e29da65fb1d55 WHIRLPOOL 46efda9e299fb29d538b4bb3aba9743f141e96bb60b15c62668a0b565bb84825d5a0e6accc97dafba5ec51dac904c917d6cea7c1e48676050be8ef3b7744c2e7
+DIST mingwrt-3.20-mingw32-src.tar.gz 393946 SHA256 f1869483318ed1df5e15e49b8315173e90c1caa2968c4956b7657854c36bfe0a SHA512 2d2d3c7decc7b35ab4759034dcd291c8e322a46205ae70fd4c4d68224c9d7c75454b908f61ba8ca7e0fdf18ff121c5b7ffd02e0658b7557e3af1f89ed28ed58c WHIRLPOOL c66a805cdd4500f142e0d38cd3add06046608addba67e1c0167d96dc4838eacd938c6d38c5d423ab7dd6344070445df5105eeac9bbe3529ca528d02c3f31bad3
+DIST mingwrt-4.0.3-1-mingw32-src.tar.lzma 1341612 SHA256 409be571382cad83a7304d37e13c620aa98757014b0107efe7e2895a1feafcc2 SHA512 2aa429f939038c86441ccfd32b4ddd40347582557f9427df92ea7454eb5bf743b8e1aafbb627b527be755976be807f415aad3920f700d93aa86d07bf40f12bde WHIRLPOOL 12be2c230370ff794a79635d8f12861f022f2551ff7d009882df6c358dd2bbaf1ae16e2944136055948a44b5f187893f9bedacdc49122570324cb726f38addd2
+EBUILD mingw-runtime-3.18.ebuild 1781 SHA256 181409f03132efb652aa9d9abed29ac837a49971c418f53400b70081eb162f5e SHA512 17d45119f34f9701f7aa9e46a024fd5a5f211f16e2c7565911b8c0f74f32ec399ed38e3e64190d17bc656894a6d0c17b510d4b828747762c9feaeac31b62c01d WHIRLPOOL 46999b30f2eb079340b3b32d74fb4612c9a827c5f98379942ac59d26d874f29931132b9201c50f22432a42852a66f7279c9ab1ae15322efe78241a5f8f6ab72c
+EBUILD mingw-runtime-3.20.2.ebuild 1933 SHA256 a548d0f340f4140e6495b1db35140121767d865b2719ef109714fa00e820a382 SHA512 e234e784d8c8c0c8683a2479cf7a5e5dbc8b7f54265f3d95ba178954c929788cee50b80e5e5f14051e8ec2fd5ac5ac30d3ebedb763fac4d36a35a5009ae2798f WHIRLPOOL 12bb82b06860a5347515d69332d0b599ca7df778f38eb34236d8492f17258f7f9d9930d2909f8827487498c99f2bd3aa8c2998e9629834cf86a483976d477bff
+EBUILD mingw-runtime-3.20.ebuild 1861 SHA256 3704201d074bbafb1fdcf3d242c4b5f7e823221c35797569513fd321b06fe1c7 SHA512 324ee8e82c4ad2a8590274100249983d1bd3650800d0b32bc14a9fe7e4fa7efd6b2b32bf710d7a593b886cf784806e951969f99a8a229b9fce1ba383bf9eac51 WHIRLPOOL 3899803948ad63f2d183fb369021941aff0d7aee0b0756cce68102cb6a03075feefd2871e1e6bd83ba1189e8d2d625a21f51c9eb2ca30e3d393048a516d351fb
+EBUILD mingw-runtime-4.0.3.1.ebuild 1922 SHA256 ae830baeada533c0ea45152f87bb0cae8916a79cf318677df9d5181a95d97d34 SHA512 c391f7d5da2530f9d7e8394427a48c0efefbbbdeebc135949894863617c91c76ef846fc289b6b2c0ce62d6576601db80b31f4c2ce4465e356ea8bfedaa223f15 WHIRLPOOL ebb12c06495bcad40a693825b6ed4277b1344f79e34ad7afa47365f62833535cf3287a6c6af8a971ac43f4572856eaf67d2b6d2cc1f31955c53a6ac6949e3417
+MISC ChangeLog 3042 SHA256 fe7cbf0a33077c102adea5b73bf308972f83c1d51e7d029a3ff247db82c9ad0e SHA512 645bb20ed6a4998416fb52cd2ce27c1ae258be8b838de6bb3694ebcd6ca2a594346f3a58637b3dbeb7e3875d9bedb4d3a2beecc2ac60d5f0384e054208522ea1 WHIRLPOOL 45cd1b219b0a722d1f39761be130b3ddba8d1ecd69d0a98c56d0510b259b0f500c8bc8095c4e7f49f8ce68bbf098ffebd3871e963e1a46a69a9ac1be10476b58
+MISC ChangeLog-2015 4923 SHA256 3cb31c87e4f16d8e3488b0386e2eb110d40e2c7a03e5834552c3d2e0b7bb99b4 SHA512 7d21bb219d1503533c22b6c7ac895755d2e322ba3c29ea1489682ef0c9f0d4faf399c470b99f7667cb2c6da0fc487799c410612a2d31316e457777bac761349e WHIRLPOOL 147f103b47a41c6f22ef93f1ac27a3f9b2bff003716f60fad010f2c2c9831f7e33c0c22b001ca450928ca90b1b70315b2ce54668d2e0b69d34f3b68eb27a43b9
+MISC metadata.xml 336 SHA256 a0331895152c717fa18ca5b1dcfe6e508c1a658c70f7302ae94b35126eab361b SHA512 c15c4f7fe2796147558f99a89942b216159b291e18dfb02358f0985fef55e7ce166dbd0831ef24938a5bc76377634036932e0ce1526d01c2b07be35cac17cbf9 WHIRLPOOL 1243f7c570849051d8b915f29664c42cb68d91debad0496179187dff896f677e9a6bd560c8d9aa75e3ab8c5254843825c55d4b5b2abc620cc56135a5c8c1ad52
diff --git a/dev-util/mingw-runtime/files/mingw-runtime-3.18-gcc-4.6.patch b/dev-util/mingw-runtime/files/mingw-runtime-3.18-gcc-4.6.patch
new file mode 100644
index 000000000000..eff81002e624
--- /dev/null
+++ b/dev-util/mingw-runtime/files/mingw-runtime-3.18-gcc-4.6.patch
@@ -0,0 +1,27 @@
+https://sourceforge.net/tracker/?func=detail&aid=3446009&group_id=2435&atid=302435
+https://bugs.gentoo.org/419627
+
+--- a/tlssup.c
++++ b/tlssup.c
+@@ -84,6 +84,7 @@ BOOL WINAPI
+ __dyn_tls_init (HANDLE hDllHandle, DWORD dwReason, LPVOID lpreserved)
+ {
+ _PVFV *pfunc;
++ int nfuncs, ifunc;
+
+ /* We don't let us trick here. */
+ if (_CRT_MT != 2)
+@@ -96,8 +97,12 @@ __dyn_tls_init (HANDLE hDllHandle, DWORD dwReason, LPVOID lpreserved)
+ return TRUE;
+ }
+
+- for (pfunc = &__xd_a + 1; pfunc != &__xd_z; ++pfunc)
++ /* Use the nfuncs variable to iterate the TLS functions instead of pfunc to
++ avoid nasty compiler optimizations when comparing two global pointers. */
++ nfuncs = &__xd_z - (&__xd_a + 1);
++ for (ifunc=0; ifunc < nfuncs; ++ifunc)
+ {
++ pfunc = (&__xd_a + 1) + ifunc;
+ if (*pfunc != NULL)
+ (*pfunc)();
+ }
diff --git a/dev-util/mingw-runtime/files/mingw-runtime-3.20-LDBL_MIN_EXP.patch b/dev-util/mingw-runtime/files/mingw-runtime-3.20-LDBL_MIN_EXP.patch
new file mode 100644
index 000000000000..49377fe2b099
--- /dev/null
+++ b/dev-util/mingw-runtime/files/mingw-runtime-3.20-LDBL_MIN_EXP.patch
@@ -0,0 +1,145 @@
+https://sourceforge.net/tracker/?func=detail&atid=102435&aid=3441135&group_id=2435
+https://bugs.gentoo.org/395893
+
+????-??-?? Keith Marshall <keithmarshall@...>
+
+ Support pragmatic identification for w32api source directory.
+
+ * aclocal.m4 (MINGW_AC_W32API_SRCDIR): New macro; implement it.
+ * configure.in (W32API_INCLUDE): Assign using MINGW_AC_W32API_SRCDIR.
+ * Makefile.in (W32API_INCLUDE): Prefix -I flag to AC_SUBST value.
+ * mingwex/Makefile.in (W32API_INCLUDE): Likewise.
+ * profile/Makefile.in (W32API_INCLUDE): Likewise.
+
+diff -r 62c176864807 Makefile.in
+--- a/Makefile.in Mon Nov 28 11:32:25 2011 +0000
++++ b/Makefile.in Mon Nov 28 21:18:55 2011 +0000
+@@ -166,9 +166,9 @@ THREAD_DLL_NAME = $(THREAD_DLL)$(THREAD_
+ # Various libraries.
+ LIBM_A=@LIBM_A@
+
+-W32API_INCLUDE = @W32API_INCLUDE@
+-INCLUDES = -I$(srcdir)/include \
+- -I$(srcdir)/../include \
++W32API_INCLUDE = -I @W32API_INCLUDE@
++INCLUDES = -I $(srcdir)/include \
++ -I $(srcdir)/../include \
+ -nostdinc \
+ -iwithprefixbefore include
+ ALL_CFLAGS = $(CFLAGS) $(INCLUDES) $(W32API_INCLUDE)
+diff -r 62c176864807 aclocal.m4
+--- a/aclocal.m4 Mon Nov 28 11:32:25 2011 +0000
++++ b/aclocal.m4 Mon Nov 28 21:18:55 2011 +0000
+@@ -15,7 +15,65 @@ AC_DEFUN([MINGW_AC_CONFIG_SRCDIR],
+ AC_MSG_CHECKING([package version])
+ PACKAGE_VERSION=`awk '$[2] == "'"$1"'" { print $[3] }' ${srcdir}/$2`
+ AC_MSG_RESULT([$PACKAGE_VERSION])dnl
+-]) #MINGW_AC_CONFIG_SRCDIR
++])# MINGW_AC_CONFIG_SRCDIR
++
++# MINGW_AC_W32API_SRCDIR
++# ----------------------
++# Attempt to identify the location of the w32api sources.
++# Accept an explicit location specified by to user, as argument
++# to --with-w32api-srcdir; if unspecified, fall back to standard
++# location relative to ${srcdir}. Identification requires that
++# include/windows.h is present within the nominated directory.
++# This is naive, but AC_CHECK_HEADER cannot be used because
++# the system's w32api headers will interfere.
++#
++AC_DEFUN([MINGW_AC_W32API_SRCDIR],
++[AC_ARG_WITH([w32api-srcdir],
++ [AS_HELP_STRING([--with-w32api-srcdir=DIR],
++ [locate w32api sources in DIR [SRCDIR/../w32api]])
++ ],[],[with_w32api_srcdir=NONE])
++ AS_IF([test "x${with_w32api_srcdir}" = xNONE],
++ [AC_MSG_CHECKING([include path for w32api headers])
++ for with_w32api_srcdir in ${srcdir}/../w32api*; do
++ test -f "${with_w32api_srcdir}/include/windows.h" && break
++ with_w32api_srcdir=NONE
++ done
++ AS_IF([test "x${with_w32api_srcdir}" = xNONE],
++ [AC_MSG_RESULT([none found])
++ AC_MSG_RESULT
++ AC_MSG_WARN([source directory containing include/windows.h not found])
++ AC_MSG_WARN([ensure w32api sources are installed at \${top_srcdir}/../w32api*])
++ AC_MSG_WARN([or use --with-w32api-srcdir=DIR to specify an alternative])
++ ],
++ [case "${with_w32api_srcdir}" in
++ "${srcdir}/"*) with_w32api_srcdir="`echo "${with_w32api_srcdir}"dnl
++ | sed s,"^${srcdir}/",'${top_srcdir}/',`" ;;
++ esac
++ AC_MSG_RESULT([${with_w32api_srcdir}/include])
++ ])
++ ],
++ [AC_MSG_CHECKING([for windows.h in ${with_w32api_srcdir}/include])
++ AS_IF([test -f "${with_w32api_srcdir}/include/windows.h"],
++ [AC_MSG_RESULT([yes])
++ case "${with_w32api_srcdir}" in /*) ;;
++ *) with_w32api_srcdir='${top_builddir}/'"${with_w32api_srcdir}" ;;
++ esac
++ ],
++ [AC_MSG_RESULT([no])
++ AC_MSG_RESULT
++ AC_MSG_WARN([the nominated directory, ${with_w32api_srcdir}])
++ AC_MSG_WARN([does not appear to contain valid w32api source code])
++ AC_MSG_WARN([(file '${with_w32api_srcdir}/include/windows.h' is not present)])
++ with_w32api_srcdir=NONE
++ ])
++ ])
++ AS_IF([test "x${with_w32api_srcdir}" = xNONE],
++ [AC_MSG_WARN([please correct this omission and run configure again])
++ AC_MSG_RESULT
++ AC_MSG_ERROR([unable to continue until this issue is resolved])
++ ])
++ W32API_INCLUDE="${with_w32api_srcdir}/include"
++])# MINGW_AC_W32API_SRCDIR
+
+ # The following is copied from `no-executables.m4', in the top
+ # `src/config' directory.
+diff -r 62c176864807 configure.in
+--- a/configure.in Mon Nov 28 11:32:25 2011 +0000
++++ b/configure.in Mon Nov 28 21:18:55 2011 +0000
+@@ -44,7 +44,7 @@ AC_CHECK_TOOL([WINDRES], [windres], [win
+
+ AC_SUBST([NO_CYGWIN])
+ AC_SUBST([HEADER_SUBDIR])
+-AC_SUBST([W32API_INCLUDE], ['-I ${top_srcdir}/../w32api/include'])
++AC_SUBST([W32API_INCLUDE], [MINGW_AC_W32API_SRCDIR])
+
+ # The following are used by the GCC profiling hooks...
+ #
+diff -r 62c176864807 mingwex/Makefile.in
+--- a/mingwex/Makefile.in Mon Nov 28 11:32:25 2011 +0000
++++ b/mingwex/Makefile.in Mon Nov 28 21:18:55 2011 +0000
+@@ -126,10 +126,9 @@ ifdef NO_CYGWIN
+ override CC := ${NO_CYGWIN} $(firstword $(filter-out ${NO_CYGWIN},${CC}))
+ endif
+
+-W32API_INCLUDE = @W32API_INCLUDE@
+-INCLUDES = -I${srcdir} -I${top_srcdir} -I${top_srcdir}/include \
+- -nostdinc \
+- -iwithprefixbefore include
++W32API_INCLUDE = -I @W32API_INCLUDE@
++INCLUDES = -I ${srcdir} -I ${top_srcdir} -I ${top_srcdir}/include \
++ -nostdinc -isystem @W32API_INCLUDE@ -iwithprefixbefore include
+ ALL_CFLAGS = $(CFLAGS) $(WARNFLAGS) $(OPTFLAGS) $(INCLUDES) $(W32API_INCLUDE)
+ ALL_CXXFLAGS = $(CXXFLAGS) $(WARNFLAGS) $(OPTFLAGS) $(INCLUDES) -nostdinc++ $(W32API_INCLUDE)
+
+diff -r 62c176864807 profile/Makefile.in
+--- a/profile/Makefile.in Mon Nov 28 11:32:25 2011 +0000
++++ b/profile/Makefile.in Mon Nov 28 21:18:55 2011 +0000
+@@ -65,10 +65,9 @@ THREAD_DLL = @THREAD_DLL@
+ THREAD_DLL_VERSION = 10
+ THREAD_DLL_NAME = $(THREAD_DLL)$(THREAD_DLL_VERSION).dll
+
+-W32API_INCLUDE = @W32API_INCLUDE@
+-INCLUDES = -I${srcdir} -I${top_srcdir}/include \
+- -nostdinc \
+- -iwithprefixbefore include
++W32API_INCLUDE = -I @W32API_INCLUDE@
++INCLUDES = -I ${srcdir} -I ${top_srcdir}/include \
++ -nostdinc -iwithprefixbefore include
+ ALL_CFLAGS = $(CFLAGS) $(INCLUDES) $(W32API_INCLUDE)
+ ALL_CXXFLAGS = $(CXXFLAGS) $(INCLUDES) -nostdinc++ $(W32API_INCLUDE)
+
diff --git a/dev-util/mingw-runtime/metadata.xml b/dev-util/mingw-runtime/metadata.xml
new file mode 100644
index 000000000000..6c377f90be9b
--- /dev/null
+++ b/dev-util/mingw-runtime/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="project">
+ <email>toolchain@gentoo.org</email>
+ <name>Gentoo Toolchain Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">mingw</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/mingw-runtime/mingw-runtime-3.18.ebuild b/dev-util/mingw-runtime/mingw-runtime-3.18.ebuild
new file mode 100644
index 000000000000..fb7b3aaaadba
--- /dev/null
+++ b/dev-util/mingw-runtime/mingw-runtime-3.18.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+export CBUILD=${CBUILD:-${CHOST}}
+export CTARGET=${CTARGET:-${CHOST}}
+if [[ ${CTARGET} == ${CHOST} ]] ; then
+ if [[ ${CATEGORY} == cross-* ]] ; then
+ export CTARGET=${CATEGORY#cross-}
+ fi
+fi
+
+inherit flag-o-matic eutils
+
+MY_P="mingwrt-${PV}-mingw32"
+DESCRIPTION="Free Win32 runtime and import library definitions"
+HOMEPAGE="http://www.mingw.org/"
+SRC_URI="mirror://sourceforge/mingw/${MY_P}-src.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 ~ppc ~sparc x86"
+IUSE="crosscompile_opts_headers-only"
+RESTRICT="strip"
+
+S=${WORKDIR}/${MY_P}
+
+is_crosscompile() {
+ [[ ${CHOST} != ${CTARGET} ]]
+}
+just_headers() {
+ use crosscompile_opts_headers-only && [[ ${CHOST} != ${CTARGET} ]]
+}
+
+pkg_setup() {
+ if [[ ${CBUILD} == ${CHOST} ]] && [[ ${CHOST} == ${CTARGET} ]] ; then
+ die "Invalid configuration"
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-gcc-4.6.patch #419627
+ sed -i \
+ -e "/W32API_INCLUDE/s:=.*:='-I /usr/${CTARGET}/usr/include':" \
+ $(find -name configure) || die
+ sed -i \
+ -e '/^install_dlls_host:/s:$: install-dirs:' \
+ Makefile.in || die # fix parallel install
+}
+
+src_compile() {
+ just_headers && return 0
+
+ CHOST=${CTARGET} strip-unsupported-flags
+ econf --host=${CTARGET} || die
+ emake || die
+}
+
+src_install() {
+ if just_headers ; then
+ insinto /usr/${CTARGET}/usr/include
+ doins -r include/* || die
+ else
+ local insdir
+ is_crosscompile \
+ && insdir="${D}/usr/${CTARGET}" \
+ || insdir="${D}"
+ emake install DESTDIR="${insdir}" || die
+ env -uRESTRICT CHOST=${CTARGET} prepallstrip
+ rm -rf "${insdir}"/usr/doc
+ dodoc CONTRIBUTORS ChangeLog README TODO readme.txt
+ fi
+ is_crosscompile && dosym usr /usr/${CTARGET}/mingw
+}
diff --git a/dev-util/mingw-runtime/mingw-runtime-3.20.2.ebuild b/dev-util/mingw-runtime/mingw-runtime-3.20.2.ebuild
new file mode 100644
index 000000000000..21f0e6d6c3be
--- /dev/null
+++ b/dev-util/mingw-runtime/mingw-runtime-3.20.2.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+
+export CBUILD=${CBUILD:-${CHOST}}
+export CTARGET=${CTARGET:-${CHOST}}
+if [[ ${CTARGET} == ${CHOST} ]] ; then
+ if [[ ${CATEGORY} == cross-* ]] ; then
+ export CTARGET=${CATEGORY#cross-}
+ fi
+fi
+
+inherit flag-o-matic autotools versionator eutils
+
+MY_P="mingwrt-$(version_format_string '$1.$2-$3')-mingw32"
+DESCRIPTION="Free Win32 runtime and import library definitions"
+HOMEPAGE="http://www.mingw.org/"
+# https://sourceforge.net/projects/mingw/files/MinGW/Base/mingw-rt/
+SRC_URI="mirror://sourceforge/mingw/${MY_P}-src.tar.lzma"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE="crosscompile_opts_headers-only"
+RESTRICT="strip"
+
+DEPEND="app-arch/xz-utils"
+
+S=${WORKDIR}/${MY_P}
+
+is_crosscompile() {
+ [[ ${CHOST} != ${CTARGET} ]]
+}
+just_headers() {
+ use crosscompile_opts_headers-only && [[ ${CHOST} != ${CTARGET} ]]
+}
+
+pkg_setup() {
+ if [[ ${CBUILD} == ${CHOST} ]] && [[ ${CHOST} == ${CTARGET} ]] ; then
+ die "Invalid configuration"
+ fi
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-3.20-LDBL_MIN_EXP.patch #395893
+ eautoconf
+ sed -i \
+ -e '/^install_dlls_host:/s:$: install-dirs:' \
+ Makefile.in || die # fix parallel install
+}
+
+src_configure() {
+ just_headers && return 0
+
+ CHOST=${CTARGET} strip-unsupported-flags
+ econf \
+ --host=${CTARGET} \
+ --with-w32api-srcdir="/usr/${CTARGET}/usr"
+}
+
+src_install() {
+ if just_headers ; then
+ insinto /usr/${CTARGET}/usr/include
+ doins -r include/* || die
+ else
+ local insdir
+ is_crosscompile \
+ && insdir="${D}/usr/${CTARGET}" \
+ || insdir="${D}"
+ emake install DESTDIR="${insdir}" || die
+ env -uRESTRICT CHOST=${CTARGET} prepallstrip
+ rm -rf "${insdir}"/usr/doc
+ docinto ${CTARGET} # Avoid collisions with other cross-compilers.
+ dodoc CONTRIBUTORS ChangeLog README TODO readme.txt
+ fi
+ is_crosscompile && dosym usr /usr/${CTARGET}/mingw
+}
diff --git a/dev-util/mingw-runtime/mingw-runtime-3.20.ebuild b/dev-util/mingw-runtime/mingw-runtime-3.20.ebuild
new file mode 100644
index 000000000000..d456e763daa6
--- /dev/null
+++ b/dev-util/mingw-runtime/mingw-runtime-3.20.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+
+export CBUILD=${CBUILD:-${CHOST}}
+export CTARGET=${CTARGET:-${CHOST}}
+if [[ ${CTARGET} == ${CHOST} ]] ; then
+ if [[ ${CATEGORY} == cross-* ]] ; then
+ export CTARGET=${CATEGORY#cross-}
+ fi
+fi
+
+inherit flag-o-matic autotools eutils
+
+MY_P="mingwrt-${PV}-mingw32"
+DESCRIPTION="Free Win32 runtime and import library definitions"
+HOMEPAGE="http://www.mingw.org/"
+# https://sourceforge.net/projects/mingw/files/MinGW/Base/mingw-rt/
+SRC_URI="mirror://sourceforge/mingw/${MY_P}-src.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE="crosscompile_opts_headers-only"
+RESTRICT="strip"
+
+S=${WORKDIR}/${MY_P}
+
+is_crosscompile() {
+ [[ ${CHOST} != ${CTARGET} ]]
+}
+just_headers() {
+ use crosscompile_opts_headers-only && [[ ${CHOST} != ${CTARGET} ]]
+}
+
+pkg_setup() {
+ if [[ ${CBUILD} == ${CHOST} ]] && [[ ${CHOST} == ${CTARGET} ]] ; then
+ die "Invalid configuration"
+ fi
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-3.20-LDBL_MIN_EXP.patch #395893
+ eautoconf
+ sed -i \
+ -e '/^install_dlls_host:/s:$: install-dirs:' \
+ Makefile.in || die # fix parallel install
+}
+
+src_configure() {
+ just_headers && return 0
+
+ CHOST=${CTARGET} strip-unsupported-flags
+ econf \
+ --host=${CTARGET} \
+ --with-w32api-srcdir="/usr/${CTARGET}/usr"
+}
+
+src_install() {
+ if just_headers ; then
+ insinto /usr/${CTARGET}/usr/include
+ doins -r include/* || die
+ else
+ local insdir
+ is_crosscompile \
+ && insdir="${D}/usr/${CTARGET}" \
+ || insdir="${D}"
+ emake install DESTDIR="${insdir}" || die
+ env -uRESTRICT CHOST=${CTARGET} prepallstrip
+ rm -rf "${insdir}"/usr/doc
+ docinto ${CTARGET} # Avoid collisions with other cross-compilers.
+ dodoc CONTRIBUTORS ChangeLog README TODO readme.txt
+ fi
+ is_crosscompile && dosym usr /usr/${CTARGET}/mingw
+}
diff --git a/dev-util/mingw-runtime/mingw-runtime-4.0.3.1.ebuild b/dev-util/mingw-runtime/mingw-runtime-4.0.3.1.ebuild
new file mode 100644
index 000000000000..29cc5a875193
--- /dev/null
+++ b/dev-util/mingw-runtime/mingw-runtime-4.0.3.1.ebuild
@@ -0,0 +1,83 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+
+export CBUILD=${CBUILD:-${CHOST}}
+export CTARGET=${CTARGET:-${CHOST}}
+if [[ ${CTARGET} == ${CHOST} ]] ; then
+ if [[ ${CATEGORY} == cross-* ]] ; then
+ export CTARGET=${CATEGORY#cross-}
+ fi
+fi
+
+inherit flag-o-matic toolchain-funcs versionator
+
+MY_P="mingwrt-$(version_format_string '$1.$2.$3-$4')-mingw32"
+DESCRIPTION="Free Win32 runtime and import library definitions"
+HOMEPAGE="http://www.mingw.org/"
+# https://sourceforge.net/projects/mingw/files/MinGW/Base/mingw-rt/
+SRC_URI="mirror://sourceforge/mingw/${MY_P}-src.tar.lzma"
+
+LICENSE="BSD"
+SLOT="0"
+# Collides with w32api-4.x
+#KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE="crosscompile_opts_headers-only"
+RESTRICT="strip"
+
+DEPEND="app-arch/xz-utils"
+RDEPEND=""
+
+S=${WORKDIR}/${MY_P}-src
+
+is_crosscompile() {
+ [[ ${CHOST} != ${CTARGET} ]]
+}
+just_headers() {
+ use crosscompile_opts_headers-only && [[ ${CHOST} != ${CTARGET} ]]
+}
+
+pkg_setup() {
+ if [[ ${CBUILD} == ${CHOST} ]] && [[ ${CHOST} == ${CTARGET} ]] ; then
+ die "Invalid configuration"
+ fi
+}
+
+src_prepare() {
+ sed -i \
+ -e '/^install_dlls_host:/s:$: install-dirs:' \
+ Makefile.in || die # fix parallel install
+}
+
+src_configure() {
+ just_headers && return 0
+
+ CHOST=${CTARGET} strip-unsupported-flags
+ filter-flags -frecord-gcc-switches
+ tc-export AR
+ econf \
+ --host=${CTARGET} \
+ --docdir="${EPREFIX}/usr/share/doc/${PF}"
+}
+
+src_compile() {
+ emake -j1
+}
+
+src_install() {
+ if just_headers ; then
+ insinto /usr/${CTARGET}/usr/include
+ doins -r include/*
+ else
+ local insdir
+ is_crosscompile \
+ && insdir="${D}/usr/${CTARGET}" \
+ || insdir="${D}"
+ emake -j1 install DESTDIR="${insdir}"
+ env -uRESTRICT CHOST=${CTARGET} prepallstrip
+ rm -rf "${insdir}"/usr/doc
+ docinto ${CTARGET} # Avoid collisions with other cross-compilers.
+ fi
+ is_crosscompile && dosym usr /usr/${CTARGET}/mingw
+}
diff --git a/dev-util/mingw64-runtime/Manifest b/dev-util/mingw64-runtime/Manifest
new file mode 100644
index 000000000000..7a36a8d2278c
--- /dev/null
+++ b/dev-util/mingw64-runtime/Manifest
@@ -0,0 +1,25 @@
+AUX mingw64-runtime-4.0.1-build.patch 2981 SHA256 35e3dcd14c23241a1eedcaaad25f99f6e345fde5e1d950f697e4e0f0a288ec6c SHA512 6495f898b736188800b1fc02956cfe021c7668a2d38d8acabc2d035e90aa1d72d761ae15141396f8d3dad8ac7111dcaac5fdb0c59c0d34bd2d820e54ab30c89d WHIRLPOOL 97ed9c6d118d75432ef322a7e1234e53cdcca76b4686875e482356cb69ee04f59593e23c74add37ae33bb71326c57e8494f2557e6e375d68303eb4776cb1b268
+AUX mingw64-runtime-4.0.1-winpthreads.patch 3142 SHA256 fd9039cb2ff117a661c15a70868af66c44e38206acd158cffa3ed6767939aad8 SHA512 5a4e34257f0eb9f3f9b51677459111b08b389dbebf3f29d30d99dcccd06e41bf1b82d6d0a1ce01fbfa5c0833bff205679203a0146d77b5416ef277c4c047a492 WHIRLPOOL 4dfdc48f45f122869734f22acd75549af9815e472184cb0cb3f87fc8b0f4389f9799af17702c0add54ef93a50e58e3a37141e6f0636ca29a7ceb78a49bc12df5
+AUX mingw64-runtime-5.0.2-implicit-fallthrough.patch 1329 SHA256 4413a9bb9a1d29523f431afdb2f1e22eb5b51673315391dceef1fe93075106a4 SHA512 9de46f074d42fd7dcc7b9ce01343eae22d803a8f20662b57e309aad5c7f349552048fe2ab39983b5f7e4b7b703617e6e884ef2714c9a67ea47129d4ae6dd1f8b WHIRLPOOL 3bedd399bfe152801133fdebd72c09bad5fc86d1314fce7cc34433479e7df86b01920f5d774ea598170fe2c9e80ecf6efc2591a2ddbd6a6235e27146d5f8e2b9
+AUX mingw64-runtime-5.0.2-locale.patch 595 SHA256 450f0ae42d30a66ae5aaa356227f43467a646d241fd7f3978368ba6b782e5136 SHA512 82d1fc293be628f8e967a108001d0e04c53e6c4581be2aa954e05c07e52473a6ffb4cedffc1f27202ea607316e6d38e64997ccc8d3eaee44125ec795d9a30553 WHIRLPOOL c9d151e39c688ffdc520e218229d3ffb3759f2fdfe718e66680506d2ffc2a4580004cf72a43fe8e50b0956a35f3fd55a9cf2559225019310f80b5da2577b0993
+DIST mingw-w64-v3.0.0.tar.bz2 7012419 SHA256 ffd381a53cb774843667ccdaeb3a23f86be77b0344355e1a5947b3ceb8343c67 SHA512 7fc438908328ae4429f79dfaaae92bc7e88bc0f46517bdebdc3c45b3e8062ff6c27f166eb51103c2d49aae01851d82f33e0b031c8d98198baaeb119e19221989 WHIRLPOOL ea2820ab24dcd6f35fab0404b2bd26273b117731bb25e2e3ef753e9a3a9b6661564605cdae7ed5e6e4f9fc6b3c3d000761fa44afa19f79b5d6deaebca44f709c
+DIST mingw-w64-v3.1.0.tar.bz2 7021162 SHA256 ece7a7e7e1ab5e25d5ce469f8e4de7223696146fffa71c16e2a9b017d0e017d2 SHA512 9f418694aa0f072e2f08766fcee8929ac3022187750028781336243e050495b9709bb9ae87b4a83a8e9d3856478c525d8636277a4c219e282421b269dafa68d8 WHIRLPOOL 90a3a7056df7c4da2e605da1578e65b16e0f831370d8b1d399fed48945828604a94f9402b2d53bc4ca26623f1d34e6c45c862bf1f7590ddf9325fd4a053a18fb
+DIST mingw-w64-v3.2.0.tar.bz2 7053254 SHA256 78a0de610829a1145ae12c4a29603344963a0b8156ba39a9a31a0e79c3b29142 SHA512 dd483bcf7ba0e698a33a0b02a811b181e601cd344b87dafd0f6c477f68efb9a617a4109046fd06735242623f87833cf97688f057583e1378d6d84e7818927593 WHIRLPOOL 99ba5ddaa99c40309d12d75d3953deaf9cc31280ad2446793d1525702963edd1b33e91053e99bdfd06d37980049d30b7fb4e9f3a5358f8277c2fabe587c56037
+DIST mingw-w64-v4.0.1.tar.bz2 10803072 SHA256 89d2524a071b6337dfd9f3b6e6f46d8002b2633f928c833dc4e873a13e045b17 SHA512 a216a09a460c56c29208aee1e1cdb428e856f9c8d59dd399723ccf6d549368f0a13a6aacb046d211ddec7c0a1f1c227d5dd599e4f0c33ba4b6d9c92bd0a7fa1b WHIRLPOOL e021031e2820e918fe0f291624335fadc08641e811f6cf19d45b1586d2ac96c6bff4fb936bcd154a7b48711db9f5faabd27bfdced3a38073b4a20c8471a91915
+DIST mingw-w64-v4.0.4.tar.bz2 10812375 SHA256 89356a0aa8cf9f8b9dc8d92bc8dd01a131d4750c3acb30c6350a406316c42199 SHA512 06de6b592f776676184a9c50c63eb105c82a912965dee5d8217f9b5b325e0258c188f5d7d5e28aaeacf7bad44ce5d36bd837b9f1cbb91358754787738fb15146 WHIRLPOOL ff557b2aff821c1833ab6d5fdade4f256b71cb37e84a476d3e5a4cfe13f60db68c336d7e72f6e3eb13b3d127e1bac2cbfdde160ea2f7016867f10efa6a02914b
+DIST mingw-w64-v4.0.6.tar.bz2 10853871 SHA256 0c407394b0d8635553f4fbca674cdfe446aac223e90b4010603d863e4bdd015c SHA512 c9ec75b10fe40d80e620b569ca8f452b1f78e9e4dd45ad087a2b69297dc661d06aa30255ea310786f28c042256c35a1d3e709ff7ea8bc19e7f4ea914c120f020 WHIRLPOOL 69015094c14f66e1102d343b220eb17cc245f24a66c1a39ffced2f155cae84315eabb9a843bd9aa8e7874a12e34297a4f7cfff06447972a17beecf070bc70b08
+DIST mingw-w64-v5.0.1.tar.bz2 9160780 SHA256 9bb5cd7df78817377841a63555e73596dc0af4acbb71b09bd48de7cf24aeadd2 SHA512 73b746f227930597a97f117cf9f9aa19ddabb6090907cf6850864cf30089e5d6e1cd07e257b3b0b9ae0ac762cb24a6f5acf7336c9be48760c975ac038569dcfa WHIRLPOOL 26f3e52a5fb0a0332861a919d2b913dcb3e8dceb26bb174e85830282229823366918132c5db22a5d294167ba3c54c6fd461b663ff0ab92373f46519149817e98
+DIST mingw-w64-v5.0.2.tar.bz2 9107077 SHA256 5f46e80ff1a9102a37a3453743dae9df98262cba7c45306549ef7432cfd92cfd SHA512 430065a822afb9901219b1f86ea221ae70ef7820ea298f51828bf1689a014115dade967a806388b7ee3ed1ea1d6c53970514ec64d0185b5024523093d9e96060 WHIRLPOOL fdc7b1f647679b2761cdb306f5400fdcdbcdd64de4aeb6d3d3bd4b31aab81ad5f81c7485c377fa8100da0ebe7e0b53a83674443d61c986df27a616694bb512d6
+EBUILD mingw64-runtime-3.0.0.ebuild 1813 SHA256 bc4b91670d4970aa1cd9a5a0feaf9a2b3f34064214d83c44898843fffc3c361c SHA512 731699be6c251ab07e7e9f82ec0d477ae1b186c595eabbc9d9a7766e2fdecb8799475772d5e51fab134ec43f76e8da9b50fd3fdef68d90dda585223275bfb643 WHIRLPOOL e7352f6f9091703a49c6b508dc80112c416e9ba0c0dc5d2ddfa73968eafce510c03fb89f5b719520973e6f60fee00aed129b05f477ed74599e1b5bf5cc503ca3
+EBUILD mingw64-runtime-3.1.0.ebuild 1813 SHA256 bc4b91670d4970aa1cd9a5a0feaf9a2b3f34064214d83c44898843fffc3c361c SHA512 731699be6c251ab07e7e9f82ec0d477ae1b186c595eabbc9d9a7766e2fdecb8799475772d5e51fab134ec43f76e8da9b50fd3fdef68d90dda585223275bfb643 WHIRLPOOL e7352f6f9091703a49c6b508dc80112c416e9ba0c0dc5d2ddfa73968eafce510c03fb89f5b719520973e6f60fee00aed129b05f477ed74599e1b5bf5cc503ca3
+EBUILD mingw64-runtime-3.2.0-r1.ebuild 1813 SHA256 bc4b91670d4970aa1cd9a5a0feaf9a2b3f34064214d83c44898843fffc3c361c SHA512 731699be6c251ab07e7e9f82ec0d477ae1b186c595eabbc9d9a7766e2fdecb8799475772d5e51fab134ec43f76e8da9b50fd3fdef68d90dda585223275bfb643 WHIRLPOOL e7352f6f9091703a49c6b508dc80112c416e9ba0c0dc5d2ddfa73968eafce510c03fb89f5b719520973e6f60fee00aed129b05f477ed74599e1b5bf5cc503ca3
+EBUILD mingw64-runtime-4.0.1.ebuild 2584 SHA256 c05d0a8716707e34922cf62a5afa854b1b4df3e45f05f49689174a2f1b589475 SHA512 018a0bc7b950c7899251ed53cfb6e7e4b8253a4e194868d49720db4be3dfaeb84b8eadadc0bfd3a588258c22b6255a7618a2b138003e04fdf518d06422ea982b WHIRLPOOL a94366439f9641e8975d12be46a5376d292ce651bf9cd5ce3458b70e8077032e3d582a6ced331cd157d52270076dcc2ca65292422d9a4a3b361e3d0edacebe92
+EBUILD mingw64-runtime-4.0.4.ebuild 2598 SHA256 a839964176b77dc469a157d6feff0fb0e029545bb7868535b6735c1296a60218 SHA512 3d5b65cd965e6ac759d3af02369fcdb8dbc50b699bbc9e2e07ece58d230327533deae68d3cd63844a1905d38e3b9df533069a9e1aa4db59141065c288a48ff97 WHIRLPOOL 64f73a7c10e8a67a24ac6b3caf9de01332bc6428dd7af4e09dd6a9862b5b6d58021cfdc28fdc7f1a6f7790ba7f86630df6972c1e47379181e6a96a38b01162ef
+EBUILD mingw64-runtime-4.0.6.ebuild 2552 SHA256 f34598229dbd2e33de8d60331870349dc081154a560cf3a3ad26f851d64b4be6 SHA512 b3ea1286a87ea536db49b8acf566286feda5a352a5a71d8d4fa49a630161f6a70fa8fa9776736045c1a202ab1546848b2d3a96fdbdbe0cce46671746f821f1a7 WHIRLPOOL 05f2a0415986d3b5d12d227819ea691d2fc9528ffd1050ea51d3504f3091095716b1b53ebc79acc1a4e4047ae25ee4ee4f752564ff3e1ad0a61ef28cc3dfd65b
+EBUILD mingw64-runtime-5.0.1.ebuild 2560 SHA256 c68fc9b2a61683928eba791e8debf438ed4d35d4dd8030e04d86930e281f57fd SHA512 a701ebddba123544e6c1854beac891ec1104d5bc3c5dbf151d0ed3c1be7e05a13a18885d0c9f5f74cb8e5f615cf30d084692e28770a57bc749a8504a36328392 WHIRLPOOL c2ce5b060706a246946517b39dfac4e54812144d9041c84a0789b5e99e2d2d33c5efa33fe7997e354c82240ae57788d5a68fd907d4108a926f6540b30dcb9779
+EBUILD mingw64-runtime-5.0.2-r1.ebuild 2651 SHA256 a9b7e5f223757af9fe5dd6a4c3a99f174a38a60a84ad9568a4ee090e2be55796 SHA512 f8c0fd5cc01431016675bf3831488e5852c29d9a0621216842f72b2bef1bdc57585b98885913d7c859a4aa8de01d1294a65ff1f7bd3224c691db7208d96946fc WHIRLPOOL 4b3f116213d58b19765579ba2e4af1b71448166e03bb9aed9d9916b252af12b5c390855fc58a1955be15aa5b17b525461c92ba5970a89f1b95aa56369cf913ec
+EBUILD mingw64-runtime-5.0.2-r2.ebuild 2691 SHA256 08fae1bbb881fda9c284ce4e3644a91d297538f98f92bd48be3df8c3d46543f4 SHA512 33615d4db2e4fe13bc0a63e3b84445392133edbac907514dc41a0bc29f82be0ce54c837bd0dfd6c1872e74f89055cdc3d2b7989f6912f3d8f37e3ffcc72b3106 WHIRLPOOL aede15cb662746ab21535000647aee9f8a7ff66e4fc8c36f550127541e95dd5a2f84fe61dc138c14e65af2521c23838c4cc86b9c67ebe1a724ba8af18505a4a2
+EBUILD mingw64-runtime-5.0.2.ebuild 2560 SHA256 c68fc9b2a61683928eba791e8debf438ed4d35d4dd8030e04d86930e281f57fd SHA512 a701ebddba123544e6c1854beac891ec1104d5bc3c5dbf151d0ed3c1be7e05a13a18885d0c9f5f74cb8e5f615cf30d084692e28770a57bc749a8504a36328392 WHIRLPOOL c2ce5b060706a246946517b39dfac4e54812144d9041c84a0789b5e99e2d2d33c5efa33fe7997e354c82240ae57788d5a68fd907d4108a926f6540b30dcb9779
+MISC ChangeLog 3707 SHA256 9003c6e0efa68c344a559d5f47dde2ec8acd29f05fb70d91dd728fae37295f6b SHA512 3923841966d2653e0ddaec0be18a3f258757f1c2d759049536ec85292ab1e82673448b2633ed97a42e6668f30d589294c7dcd16e2c4d634b0ba933c836dc8f05 WHIRLPOOL 7725b8d74d5ea0ef06c1cb577f56609bdef2a6f8baf287473d753a895ab02642052f056df51a1e3efa9c2cf4f1c15fd70c97a905f6da5cce650f339414b75898
+MISC ChangeLog-2015 3670 SHA256 7cd9976de775f8d4c760e6860af327fd3ebf5e8a0e104d364c3ad62decf7a352 SHA512 d514d50ad706d755be69f4821cc092a8b73f614526d372437b95c34b71ce181e934b10c4d44ee1ad7727c3c68a0067ba2d3b956f66c16f3ae5602a50472181e8 WHIRLPOOL 55cf99587928e8fbba9ee6c79b70ded995b73fdd01174d95bb767c1de3381905da1bf3c344b4f6b583c53be1a512e594ab3a3c51c604137c9be5cee79258b172
+MISC metadata.xml 544 SHA256 f3da93654e01312e7805a426a62337a7bc1baa836f3ca4e2df127bb8e9867ca1 SHA512 297a90e704de81f41a4f29871f96bed47aa00c703e79fd825b3a06ab8850fe67896c66dee2603f86cd6596a0c5cbd533c87cb94c1c674714f65767954341a3c8 WHIRLPOOL 41f2a919c459fc2b7c6d0a3d0823ebb68faa846b69ae776a1aea912eadcc1511601a67d966a01a9dbc52f5ed6e0df7402be696706d0730050e4f93e88a68293c
diff --git a/dev-util/mingw64-runtime/files/mingw64-runtime-4.0.1-build.patch b/dev-util/mingw64-runtime/files/mingw64-runtime-4.0.1-build.patch
new file mode 100644
index 000000000000..6461b98e5044
--- /dev/null
+++ b/dev-util/mingw64-runtime/files/mingw64-runtime-4.0.1-build.patch
@@ -0,0 +1,88 @@
+From 67434f57cbb5aba791e9ca973a86859e0736f829 Mon Sep 17 00:00:00 2001
+From: Alon Bar-Lev <alon.barlev@gmail.com>
+Date: Mon, 4 May 2015 21:31:10 +0300
+Subject: [PATCH 2/2] build: autoconf: enable multiple tools and libs
+
+this somewhat reduces the error checking, but makes code and usage nicer.
+
+Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
+---
+ configure.ac | 55 ++++++++++++-------------------------------------------
+ 1 file changed, 12 insertions(+), 43 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 468d1b1..1b59821 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -56,32 +56,12 @@ AC_ARG_WITH([libraries],
+ [Build the extra mingw-w64 libs, where ARG is one of libmangle, pseh, winpthreads, or all])],
+ [],
+ [with_libraries=no])
+-AS_CASE([$with_libraries],
+- [yes|all],[
+- with_libraries="libmangle,pseh,winpthreads"
+- with_libraries_winpthreads=yes
+- with_libraries_mangle=yes
+- with_libraries_pseh=yes],
+- [libmangle],[
+- with_libraries="libmangle"
+- with_libraries_winpthreads=no
+- with_libraries_mangle=yes
+- with_libraries_pseh=no],
+- [pseh],[
+- with_libraries="pseh"
+- with_libraries_winpthreads=no
+- with_libraries_mangle=no
+- with_libraries_pseh=yes],
+- [winpthreads],[
+- with_libraries="winpthreads"
+- with_libraries_winpthreads=yes
+- with_libraries_mangle=no
+- with_libraries_pseh=no],
+- [no],[
+- with_libraries_winpthreads=no
+- with_libraries_mangle=no
+- with_libraries_pseh=no],
+- [MW64_OPTION_ERROR([with-libraries])])
++for l in winpthreads mangle pseh; do
++ res=`echo "${with_libraries}" | grep $l > /dev/null && echo yes || echo no`
++ AS_CASE([$with_libraries],
++ [all|yes],[res=yes])
++ AS_VAR_COPY([with_libraries_$l], [res])
++done
+ AM_CONDITIONAL([LIBRARIES_MANGLE],[test "x$with_libraries_mangle" = xyes])
+ AM_CONDITIONAL([LIBRARIES_PSEH],[test "x$with_libraries_pseh" = xyes])
+ AM_CONDITIONAL([LIBRARIES_WINPTHREADS],[test "x$with_libraries_winpthreads" = xyes])
+@@ -96,23 +76,12 @@ AC_ARG_WITH([tools],
+ [Build the extra mingw-w64 tools, where ARG is one of gendef, genidl, or all])],
+ [],
+ [with_tools=no])
+-AS_CASE([$with_tools],
+- [yes|all],[
+- with_tools="gendef,genidl"
+- with_tools_gendef=yes
+- with_tools_genidl=yes],
+- [gendef],[
+- with_tools="gendef"
+- with_tools_gendef=yes
+- with_tools_genidl=no],
+- [genidl],[
+- with_tools="genidl"
+- with_tools_gendef=no
+- with_tools_genidl=yes],
+- [no],[
+- with_tools_gendef=no
+- with_tools_genidl=no],
+- [MW64_OPTION_ERROR([with-tools])])
++for t in gendef genidl; do
++ res=`echo "${with_tools}" | grep $t > /dev/null && echo yes || echo no`
++ AS_CASE([$with_tools],
++ [all|yes],[res=yes])
++ AS_VAR_COPY([with_tools_$t], [res])
++done
+ AM_CONDITIONAL([TOOLS_GENDEF],[test "x$with_tools_gendef" = xyes])
+ AM_CONDITIONAL([TOOLS_GENIDL],[test "x$with_tools_genidl" = xyes])
+ AM_COND_IF([TOOLS_GENDEF],[AC_CONFIG_SUBDIRS([mingw-w64-tools/gendef])])
+--
+2.3.6
+
diff --git a/dev-util/mingw64-runtime/files/mingw64-runtime-4.0.1-winpthreads.patch b/dev-util/mingw64-runtime/files/mingw64-runtime-4.0.1-winpthreads.patch
new file mode 100644
index 000000000000..0d3e59dc9dd5
--- /dev/null
+++ b/dev-util/mingw64-runtime/files/mingw64-runtime-4.0.1-winpthreads.patch
@@ -0,0 +1,86 @@
+From 0adec5d0e1c65fc4ce4f84f3d4bb6738e923e1de Mon Sep 17 00:00:00 2001
+From: Alon Bar-Lev <alon.barlev@gmail.com>
+Date: Mon, 4 May 2015 20:39:52 +0300
+Subject: [PATCH 1/2] build: autoconf: support winpthreads library
+
+Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
+---
+ Makefile.am | 6 +++++-
+ configure.ac | 15 +++++++++++++--
+ 2 files changed, 18 insertions(+), 3 deletions(-)
+
+diff --git a/Makefile.am b/Makefile.am
+index 26a7606..308b6fd 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -14,6 +14,10 @@ if LIBRARIES_PSEH
+ MAYBE_LIBRARIES_PSEH = mingw-w64-libraries/pseh
+ endif
+
++if LIBRARIES_WINPTHREADS
++ MAYBE_LIBRARIES_WINPTHREADS = mingw-w64-libraries/winpthreads
++endif
++
+ if TOOLS_GENDEF
+ MAYBE_TOOLS_GENDEF = mingw-w64-tools/gendef
+ endif
+@@ -22,7 +26,7 @@ if TOOLS_GENIDL
+ MAYBE_TOOLS_GENIDL = mingw-w64-tools/genidl
+ endif
+
+-SUBDIRS = $(MAYBE_HEADER) $(MAYBE_CRT) $(MAYBE_LIBRARIES_MANGLE) $(MAYBE_LIBRARIES_PSEH) $(MAYBE_TOOLS_GENDEF) $(MAYBE_TOOLS_GENIDL)
++SUBDIRS = $(MAYBE_HEADER) $(MAYBE_CRT) $(MAYBE_LIBRARIES_MANGLE) $(MAYBE_LIBRARIES_PSEH) $(MAYBE_LIBRARIES_WINPTHREADS) $(MAYBE_TOOLS_GENDEF) $(MAYBE_TOOLS_GENIDL)
+
+ DISTCHECK_CONFIGURE_FLAGS = --with-headers --with-crt --with-libraries=all --with-tools=all
+
+diff --git a/configure.ac b/configure.ac
+index 4bb3926..468d1b1 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -53,30 +53,41 @@ AC_MSG_RESULT([$with_crt])
+ AC_MSG_CHECKING([whether to build the optional libraries])
+ AC_ARG_WITH([libraries],
+ [AS_HELP_STRING([--with-libraries=ARG],
+- [Build the extra mingw-w64 libs, where ARG is one of libmangle, pseh, or all])],
++ [Build the extra mingw-w64 libs, where ARG is one of libmangle, pseh, winpthreads, or all])],
+ [],
+ [with_libraries=no])
+ AS_CASE([$with_libraries],
+ [yes|all],[
+- with_libraries="libmangle,pseh"
++ with_libraries="libmangle,pseh,winpthreads"
++ with_libraries_winpthreads=yes
+ with_libraries_mangle=yes
+ with_libraries_pseh=yes],
+ [libmangle],[
+ with_libraries="libmangle"
++ with_libraries_winpthreads=no
+ with_libraries_mangle=yes
+ with_libraries_pseh=no],
+ [pseh],[
+ with_libraries="pseh"
++ with_libraries_winpthreads=no
+ with_libraries_mangle=no
+ with_libraries_pseh=yes],
++ [winpthreads],[
++ with_libraries="winpthreads"
++ with_libraries_winpthreads=yes
++ with_libraries_mangle=no
++ with_libraries_pseh=no],
+ [no],[
++ with_libraries_winpthreads=no
+ with_libraries_mangle=no
+ with_libraries_pseh=no],
+ [MW64_OPTION_ERROR([with-libraries])])
+ AM_CONDITIONAL([LIBRARIES_MANGLE],[test "x$with_libraries_mangle" = xyes])
+ AM_CONDITIONAL([LIBRARIES_PSEH],[test "x$with_libraries_pseh" = xyes])
++AM_CONDITIONAL([LIBRARIES_WINPTHREADS],[test "x$with_libraries_winpthreads" = xyes])
+ AM_COND_IF([LIBRARIES_MANGLE],[AC_CONFIG_SUBDIRS([mingw-w64-libraries/libmangle])])
+ AM_COND_IF([LIBRARIES_PSEH],[AC_CONFIG_SUBDIRS([mingw-w64-libraries/pseh])])
++AM_COND_IF([LIBRARIES_WINPTHREADS],[AC_CONFIG_SUBDIRS([mingw-w64-libraries/winpthreads])])
+ AC_MSG_RESULT([$with_libraries])
+
+ AC_MSG_CHECKING([whether to build the optional tools])
+--
+2.3.6
+
diff --git a/dev-util/mingw64-runtime/files/mingw64-runtime-5.0.2-implicit-fallthrough.patch b/dev-util/mingw64-runtime/files/mingw64-runtime-5.0.2-implicit-fallthrough.patch
new file mode 100644
index 000000000000..859e00243d33
--- /dev/null
+++ b/dev-util/mingw64-runtime/files/mingw64-runtime-5.0.2-implicit-fallthrough.patch
@@ -0,0 +1,41 @@
+diff --git a/mingw-w64-tools/gendef/src/gendef.c b/mingw-w64-tools/gendef/src/gendef.c
+index a935abfe..cefdd8cb 100644
+--- a/mingw-w64-tools/gendef/src/gendef.c
++++ b/mingw-w64-tools/gendef/src/gendef.c
+@@ -1031,13 +1031,16 @@ redo_switch:
+ PRDEBUG(" 0x%x illegal ", (unsigned int) b);
+ #endif
+ *aCode=c_ill; return 0;
+- case c_4: sz++;
+- case c_3: sz++;
+- case c_lb:
+- case c_2: sz++;
+- case c_retn: case c_retf:
+- case c_iret: case c_int3:
+- case c_ad: case c_op:
++ case c_4: sz++; // fallthrough
++ case c_3: sz++; // fallthrough
++ case c_lb: // fallthrough
++ case c_2: sz++; // fallthrough
++ case c_retn: // fallthrough
++ case c_retf: // fallthrough
++ case c_iret: // fallthrough
++ case c_int3: // fallthrough
++ case c_ad: // fallthrough
++ case c_op: // fallthrough
+ case c_1: *aCode=tb1; return sz;
+ case c_lv:
+ if (oper_mode) sz+=4;
+diff --git a/mingw-w64-tools/genpeimg/src/genpeimg.c b/mingw-w64-tools/genpeimg/src/genpeimg.c
+index b2430bbc..6a37b1a0 100644
+--- a/mingw-w64-tools/genpeimg/src/genpeimg.c
++++ b/mingw-w64-tools/genpeimg/src/genpeimg.c
+@@ -203,7 +203,7 @@ pass_args (int argc, char **argv)
+ goto error_point;
+ case 'h':
+ if (h[2] == 0)
+- show_usage ();
++ show_usage (); // fallthrough
+ default:
+ error_point:
+ fprintf (stderr, "Unknown option ,%s'\n", h);
diff --git a/dev-util/mingw64-runtime/files/mingw64-runtime-5.0.2-locale.patch b/dev-util/mingw64-runtime/files/mingw64-runtime-5.0.2-locale.patch
new file mode 100644
index 000000000000..a7a0a09dc162
--- /dev/null
+++ b/dev-util/mingw64-runtime/files/mingw64-runtime-5.0.2-locale.patch
@@ -0,0 +1,36 @@
+--- a/mingw-w64-crt/lib32/msvcrt.def.in
++++ b/mingw-w64-crt/lib32/msvcrt.def.in
+@@ -138,6 +138,7 @@ _copysign
+ _cprintf
+ _cputs
+ _creat
++_create_locale
+ _cscanf
+ _ctype DATA
+ _cwait
+@@ -192,6 +193,7 @@ _fpieee_flt
+ _fpreset DATA
+ _fputchar
+ _fputwchar
++_free_locale
+ _fsopen
+ _fstat
+ _fstat32 == _fstat
+--- a/mingw-w64-crt/lib64/msvcrt.def.in
++++ b/mingw-w64-crt/lib64/msvcrt.def.in
+@@ -240,6 +240,7 @@ _cprintf_p_l
+ _cputs
+ _cputws
+ _creat
++_create_locale
+ _cscanf
+ _cscanf_l
+ _cscanf_s
+@@ -315,6 +316,7 @@ _fputchar
+ _fputwchar
+ _fscanf_l
+ _fscanf_s_l
++_free_locale
+ _fsopen
+ _fstat
+ _fstat64
diff --git a/dev-util/mingw64-runtime/metadata.xml b/dev-util/mingw64-runtime/metadata.xml
new file mode 100644
index 000000000000..5d6c0c23c0d6
--- /dev/null
+++ b/dev-util/mingw64-runtime/metadata.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>toolchain@gentoo.org</email>
+ <name>Gentoo Toolchain Project</name>
+ </maintainer>
+ <use>
+ <flag name="idl">
+ Install idl files.
+ </flag>
+ <flag name="libraries">
+ Build extra libraries.
+ </flag>
+ <flag name="tools">
+ Build extra tools.
+ </flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">mingw-w64</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/mingw64-runtime/mingw64-runtime-3.0.0.ebuild b/dev-util/mingw64-runtime/mingw64-runtime-3.0.0.ebuild
new file mode 100644
index 000000000000..ce8f87cddc9c
--- /dev/null
+++ b/dev-util/mingw64-runtime/mingw64-runtime-3.0.0.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+export CBUILD=${CBUILD:-${CHOST}}
+export CTARGET=${CTARGET:-${CHOST}}
+if [[ ${CTARGET} == ${CHOST} ]] ; then
+ if [[ ${CATEGORY} == cross-* ]] ; then
+ export CTARGET=${CATEGORY#cross-}
+ fi
+fi
+
+inherit flag-o-matic eutils
+
+DESCRIPTION="Free Win64 runtime and import library definitions"
+HOMEPAGE="http://mingw-w64.sourceforge.net/"
+SRC_URI="mirror://sourceforge/mingw-w64/mingw-w64/mingw-w64-release/mingw-w64-v${PV}.tar.bz2"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="crosscompile_opts_headers-only idl"
+RESTRICT="strip"
+
+S="${WORKDIR}/mingw-w64-v${PV}"
+
+is_crosscompile() {
+ [[ ${CHOST} != ${CTARGET} ]]
+}
+just_headers() {
+ use crosscompile_opts_headers-only && [[ ${CHOST} != ${CTARGET} ]]
+}
+
+pkg_setup() {
+ if [[ ${CBUILD} == ${CHOST} ]] && [[ ${CHOST} == ${CTARGET} ]] ; then
+ die "Invalid configuration"
+ fi
+}
+
+src_configure() {
+ local extra_conf=()
+
+ if just_headers; then
+ extra_conf+=( --without-crt )
+ else
+ extra_conf+=( --with-crt )
+ fi
+
+ case ${CTARGET} in
+ x86_64*) extra_conf+=( --disable-lib32 --enable-lib64 ) ;;
+ i?86*) extra_conf+=( --enable-lib32 --disable-lib64 ) ;;
+ *) die "Unsupported ${CTARGET}" ;;
+ esac
+
+ CHOST=${CTARGET} strip-unsupported-flags
+ CHOST=${CTARGET} econf \
+ --prefix=/usr/${CTARGET} \
+ --includedir=/usr/${CTARGET}/usr/include \
+ --with-headers \
+ --enable-sdk \
+ $(use_enable idl) \
+ "${extra_conf[@]}"
+}
+
+src_install() {
+ default
+
+ if is_crosscompile ; then
+ # gcc is configured to look at specific hard-coded paths for mingw #419601
+ dosym usr /usr/${CTARGET}/mingw
+ dosym usr /usr/${CTARGET}/${CTARGET}
+ dosym usr/include /usr/${CTARGET}/sys-include
+ fi
+
+ env -uRESTRICT CHOST=${CTARGET} prepallstrip
+ rm -rf "${ED}/usr/share"
+}
diff --git a/dev-util/mingw64-runtime/mingw64-runtime-3.1.0.ebuild b/dev-util/mingw64-runtime/mingw64-runtime-3.1.0.ebuild
new file mode 100644
index 000000000000..ce8f87cddc9c
--- /dev/null
+++ b/dev-util/mingw64-runtime/mingw64-runtime-3.1.0.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+export CBUILD=${CBUILD:-${CHOST}}
+export CTARGET=${CTARGET:-${CHOST}}
+if [[ ${CTARGET} == ${CHOST} ]] ; then
+ if [[ ${CATEGORY} == cross-* ]] ; then
+ export CTARGET=${CATEGORY#cross-}
+ fi
+fi
+
+inherit flag-o-matic eutils
+
+DESCRIPTION="Free Win64 runtime and import library definitions"
+HOMEPAGE="http://mingw-w64.sourceforge.net/"
+SRC_URI="mirror://sourceforge/mingw-w64/mingw-w64/mingw-w64-release/mingw-w64-v${PV}.tar.bz2"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="crosscompile_opts_headers-only idl"
+RESTRICT="strip"
+
+S="${WORKDIR}/mingw-w64-v${PV}"
+
+is_crosscompile() {
+ [[ ${CHOST} != ${CTARGET} ]]
+}
+just_headers() {
+ use crosscompile_opts_headers-only && [[ ${CHOST} != ${CTARGET} ]]
+}
+
+pkg_setup() {
+ if [[ ${CBUILD} == ${CHOST} ]] && [[ ${CHOST} == ${CTARGET} ]] ; then
+ die "Invalid configuration"
+ fi
+}
+
+src_configure() {
+ local extra_conf=()
+
+ if just_headers; then
+ extra_conf+=( --without-crt )
+ else
+ extra_conf+=( --with-crt )
+ fi
+
+ case ${CTARGET} in
+ x86_64*) extra_conf+=( --disable-lib32 --enable-lib64 ) ;;
+ i?86*) extra_conf+=( --enable-lib32 --disable-lib64 ) ;;
+ *) die "Unsupported ${CTARGET}" ;;
+ esac
+
+ CHOST=${CTARGET} strip-unsupported-flags
+ CHOST=${CTARGET} econf \
+ --prefix=/usr/${CTARGET} \
+ --includedir=/usr/${CTARGET}/usr/include \
+ --with-headers \
+ --enable-sdk \
+ $(use_enable idl) \
+ "${extra_conf[@]}"
+}
+
+src_install() {
+ default
+
+ if is_crosscompile ; then
+ # gcc is configured to look at specific hard-coded paths for mingw #419601
+ dosym usr /usr/${CTARGET}/mingw
+ dosym usr /usr/${CTARGET}/${CTARGET}
+ dosym usr/include /usr/${CTARGET}/sys-include
+ fi
+
+ env -uRESTRICT CHOST=${CTARGET} prepallstrip
+ rm -rf "${ED}/usr/share"
+}
diff --git a/dev-util/mingw64-runtime/mingw64-runtime-3.2.0-r1.ebuild b/dev-util/mingw64-runtime/mingw64-runtime-3.2.0-r1.ebuild
new file mode 100644
index 000000000000..ce8f87cddc9c
--- /dev/null
+++ b/dev-util/mingw64-runtime/mingw64-runtime-3.2.0-r1.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+export CBUILD=${CBUILD:-${CHOST}}
+export CTARGET=${CTARGET:-${CHOST}}
+if [[ ${CTARGET} == ${CHOST} ]] ; then
+ if [[ ${CATEGORY} == cross-* ]] ; then
+ export CTARGET=${CATEGORY#cross-}
+ fi
+fi
+
+inherit flag-o-matic eutils
+
+DESCRIPTION="Free Win64 runtime and import library definitions"
+HOMEPAGE="http://mingw-w64.sourceforge.net/"
+SRC_URI="mirror://sourceforge/mingw-w64/mingw-w64/mingw-w64-release/mingw-w64-v${PV}.tar.bz2"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="crosscompile_opts_headers-only idl"
+RESTRICT="strip"
+
+S="${WORKDIR}/mingw-w64-v${PV}"
+
+is_crosscompile() {
+ [[ ${CHOST} != ${CTARGET} ]]
+}
+just_headers() {
+ use crosscompile_opts_headers-only && [[ ${CHOST} != ${CTARGET} ]]
+}
+
+pkg_setup() {
+ if [[ ${CBUILD} == ${CHOST} ]] && [[ ${CHOST} == ${CTARGET} ]] ; then
+ die "Invalid configuration"
+ fi
+}
+
+src_configure() {
+ local extra_conf=()
+
+ if just_headers; then
+ extra_conf+=( --without-crt )
+ else
+ extra_conf+=( --with-crt )
+ fi
+
+ case ${CTARGET} in
+ x86_64*) extra_conf+=( --disable-lib32 --enable-lib64 ) ;;
+ i?86*) extra_conf+=( --enable-lib32 --disable-lib64 ) ;;
+ *) die "Unsupported ${CTARGET}" ;;
+ esac
+
+ CHOST=${CTARGET} strip-unsupported-flags
+ CHOST=${CTARGET} econf \
+ --prefix=/usr/${CTARGET} \
+ --includedir=/usr/${CTARGET}/usr/include \
+ --with-headers \
+ --enable-sdk \
+ $(use_enable idl) \
+ "${extra_conf[@]}"
+}
+
+src_install() {
+ default
+
+ if is_crosscompile ; then
+ # gcc is configured to look at specific hard-coded paths for mingw #419601
+ dosym usr /usr/${CTARGET}/mingw
+ dosym usr /usr/${CTARGET}/${CTARGET}
+ dosym usr/include /usr/${CTARGET}/sys-include
+ fi
+
+ env -uRESTRICT CHOST=${CTARGET} prepallstrip
+ rm -rf "${ED}/usr/share"
+}
diff --git a/dev-util/mingw64-runtime/mingw64-runtime-4.0.1.ebuild b/dev-util/mingw64-runtime/mingw64-runtime-4.0.1.ebuild
new file mode 100644
index 000000000000..b298a1a53043
--- /dev/null
+++ b/dev-util/mingw64-runtime/mingw64-runtime-4.0.1.ebuild
@@ -0,0 +1,112 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+export CBUILD=${CBUILD:-${CHOST}}
+export CTARGET=${CTARGET:-${CHOST}}
+if [[ ${CTARGET} == ${CHOST} ]] ; then
+ if [[ ${CATEGORY} == cross-* ]] ; then
+ export CTARGET=${CATEGORY#cross-}
+ fi
+fi
+
+WANT_AUTOMAKE="1.15"
+
+inherit autotools flag-o-matic eutils
+
+DESCRIPTION="Free Win64 runtime and import library definitions"
+HOMEPAGE="http://mingw-w64.sourceforge.net/"
+SRC_URI="mirror://sourceforge/mingw-w64/mingw-w64/mingw-w64-release/mingw-w64-v${PV}.tar.bz2"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="crosscompile_opts_headers-only idl libraries tools"
+RESTRICT="strip"
+
+S="${WORKDIR}/mingw-w64-v${PV}"
+
+is_crosscompile() {
+ [[ ${CHOST} != ${CTARGET} ]]
+}
+just_headers() {
+ use crosscompile_opts_headers-only && [[ ${CHOST} != ${CTARGET} ]]
+}
+crt_with() {
+ just_headers && echo --without-$1 || echo --with-$1
+}
+crt_use_enable() {
+ just_headers && echo --without-$2 || use_enable "$@"
+}
+crt_use_with() {
+ just_headers && echo --without-$2 || use_with "$@"
+}
+
+pkg_setup() {
+ if [[ ${CBUILD} == ${CHOST} ]] && [[ ${CHOST} == ${CTARGET} ]] ; then
+ die "Invalid configuration"
+ fi
+}
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-winpthreads.patch"
+ epatch "${FILESDIR}/${P}-build.patch"
+ eautoreconf
+}
+
+src_configure() {
+ CHOST=${CTARGET} strip-unsupported-flags
+
+ if ! just_headers; then
+ mkdir "${WORKDIR}/headers"
+ pushd "${WORKDIR}/headers" > /dev/null
+ CHOST=${CTARGET} "${S}/configure" \
+ --prefix="${T}/tmproot" \
+ --with-headers \
+ --without-crt \
+ || die
+ popd > /dev/null
+ append-cppflags "-I${T}/tmproot/include"
+ fi
+
+ local extra_conf=()
+
+ case ${CTARGET} in
+ x86_64*) extra_conf+=( --disable-lib32 --enable-lib64 ) ;;
+ i?86*) extra_conf+=( --enable-lib32 --disable-lib64 ) ;;
+ *) die "Unsupported ${CTARGET}" ;;
+ esac
+
+ CHOST=${CTARGET} econf \
+ --prefix=/usr/${CTARGET} \
+ --includedir=/usr/${CTARGET}/usr/include \
+ --with-headers \
+ --enable-sdk \
+ $(crt_with crt) \
+ $(crt_use_enable idl) \
+ $(crt_use_with libraries libraries winpthreads,libmangle) \
+ $(crt_use_with tools) \
+ "${extra_conf[@]}"
+}
+
+src_compile() {
+ if ! just_headers; then
+ emake -C "${WORKDIR}/headers" install
+ fi
+ default
+}
+
+src_install() {
+ default
+
+ if is_crosscompile ; then
+ # gcc is configured to look at specific hard-coded paths for mingw #419601
+ dosym usr /usr/${CTARGET}/mingw
+ dosym usr /usr/${CTARGET}/${CTARGET}
+ dosym usr/include /usr/${CTARGET}/sys-include
+ fi
+
+ env -uRESTRICT CHOST=${CTARGET} prepallstrip
+ rm -rf "${ED}/usr/share"
+}
diff --git a/dev-util/mingw64-runtime/mingw64-runtime-4.0.4.ebuild b/dev-util/mingw64-runtime/mingw64-runtime-4.0.4.ebuild
new file mode 100644
index 000000000000..2fc6dd78d673
--- /dev/null
+++ b/dev-util/mingw64-runtime/mingw64-runtime-4.0.4.ebuild
@@ -0,0 +1,112 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+export CBUILD=${CBUILD:-${CHOST}}
+export CTARGET=${CTARGET:-${CHOST}}
+if [[ ${CTARGET} == ${CHOST} ]] ; then
+ if [[ ${CATEGORY} == cross-* ]] ; then
+ export CTARGET=${CATEGORY#cross-}
+ fi
+fi
+
+WANT_AUTOMAKE="1.15"
+
+inherit autotools flag-o-matic eutils
+
+DESCRIPTION="Free Win64 runtime and import library definitions"
+HOMEPAGE="http://mingw-w64.sourceforge.net/"
+SRC_URI="mirror://sourceforge/mingw-w64/mingw-w64/mingw-w64-release/mingw-w64-v${PV}.tar.bz2"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="crosscompile_opts_headers-only idl libraries tools"
+RESTRICT="strip"
+
+S="${WORKDIR}/mingw-w64-v${PV}"
+
+is_crosscompile() {
+ [[ ${CHOST} != ${CTARGET} ]]
+}
+just_headers() {
+ use crosscompile_opts_headers-only && [[ ${CHOST} != ${CTARGET} ]]
+}
+crt_with() {
+ just_headers && echo --without-$1 || echo --with-$1
+}
+crt_use_enable() {
+ just_headers && echo --without-$2 || use_enable "$@"
+}
+crt_use_with() {
+ just_headers && echo --without-$2 || use_with "$@"
+}
+
+pkg_setup() {
+ if [[ ${CBUILD} == ${CHOST} ]] && [[ ${CHOST} == ${CTARGET} ]] ; then
+ die "Invalid configuration"
+ fi
+}
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-4.0.1-winpthreads.patch"
+ epatch "${FILESDIR}/${PN}-4.0.1-build.patch"
+ eautoreconf
+}
+
+src_configure() {
+ CHOST=${CTARGET} strip-unsupported-flags
+
+ if ! just_headers; then
+ mkdir "${WORKDIR}/headers"
+ pushd "${WORKDIR}/headers" > /dev/null
+ CHOST=${CTARGET} "${S}/configure" \
+ --prefix="${T}/tmproot" \
+ --with-headers \
+ --without-crt \
+ || die
+ popd > /dev/null
+ append-cppflags "-I${T}/tmproot/include"
+ fi
+
+ local extra_conf=()
+
+ case ${CTARGET} in
+ x86_64*) extra_conf+=( --disable-lib32 --enable-lib64 ) ;;
+ i?86*) extra_conf+=( --enable-lib32 --disable-lib64 ) ;;
+ *) die "Unsupported ${CTARGET}" ;;
+ esac
+
+ CHOST=${CTARGET} econf \
+ --prefix=/usr/${CTARGET} \
+ --includedir=/usr/${CTARGET}/usr/include \
+ --with-headers \
+ --enable-sdk \
+ $(crt_with crt) \
+ $(crt_use_enable idl) \
+ $(crt_use_with libraries libraries winpthreads,libmangle) \
+ $(crt_use_with tools) \
+ "${extra_conf[@]}"
+}
+
+src_compile() {
+ if ! just_headers; then
+ emake -C "${WORKDIR}/headers" install
+ fi
+ default
+}
+
+src_install() {
+ default
+
+ if is_crosscompile ; then
+ # gcc is configured to look at specific hard-coded paths for mingw #419601
+ dosym usr /usr/${CTARGET}/mingw
+ dosym usr /usr/${CTARGET}/${CTARGET}
+ dosym usr/include /usr/${CTARGET}/sys-include
+ fi
+
+ env -uRESTRICT CHOST=${CTARGET} prepallstrip
+ rm -rf "${ED}/usr/share"
+}
diff --git a/dev-util/mingw64-runtime/mingw64-runtime-4.0.6.ebuild b/dev-util/mingw64-runtime/mingw64-runtime-4.0.6.ebuild
new file mode 100644
index 000000000000..8b0d38b204ca
--- /dev/null
+++ b/dev-util/mingw64-runtime/mingw64-runtime-4.0.6.ebuild
@@ -0,0 +1,108 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+export CBUILD=${CBUILD:-${CHOST}}
+export CTARGET=${CTARGET:-${CHOST}}
+if [[ ${CTARGET} == ${CHOST} ]] ; then
+ if [[ ${CATEGORY} == cross-* ]] ; then
+ export CTARGET=${CATEGORY#cross-}
+ fi
+fi
+
+WANT_AUTOMAKE="1.15"
+
+inherit autotools flag-o-matic eutils
+
+DESCRIPTION="Free Win64 runtime and import library definitions"
+HOMEPAGE="http://mingw-w64.sourceforge.net/"
+SRC_URI="mirror://sourceforge/mingw-w64/mingw-w64/mingw-w64-release/mingw-w64-v${PV}.tar.bz2"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="crosscompile_opts_headers-only idl libraries tools"
+RESTRICT="strip"
+
+S="${WORKDIR}/mingw-w64-v${PV}"
+
+is_crosscompile() {
+ [[ ${CHOST} != ${CTARGET} ]]
+}
+just_headers() {
+ use crosscompile_opts_headers-only && [[ ${CHOST} != ${CTARGET} ]]
+}
+crt_with() {
+ just_headers && echo --without-$1 || echo --with-$1
+}
+crt_use_enable() {
+ just_headers && echo --without-$2 || use_enable "$@"
+}
+crt_use_with() {
+ just_headers && echo --without-$2 || use_with "$@"
+}
+
+pkg_setup() {
+ if [[ ${CBUILD} == ${CHOST} ]] && [[ ${CHOST} == ${CTARGET} ]] ; then
+ die "Invalid configuration"
+ fi
+}
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-4.0.1-winpthreads.patch"
+ epatch "${FILESDIR}/${PN}-4.0.1-build.patch"
+ eautoreconf
+}
+
+src_configure() {
+ CHOST=${CTARGET} strip-unsupported-flags
+
+ if ! just_headers; then
+ mkdir "${WORKDIR}/headers"
+ pushd "${WORKDIR}/headers" > /dev/null
+ CHOST=${CTARGET} "${S}/configure" \
+ --prefix="${T}/tmproot" \
+ --with-headers \
+ --without-crt \
+ || die
+ popd > /dev/null
+ append-cppflags "-I${T}/tmproot/include"
+ fi
+
+ CHOST=${CTARGET} econf \
+ --prefix=/usr/${CTARGET} \
+ --includedir=/usr/${CTARGET}/usr/include \
+ --with-headers \
+ --enable-sdk \
+ $(crt_with crt) \
+ $(crt_use_enable idl) \
+ $(crt_use_with libraries libraries winpthreads,libmangle) \
+ $(crt_use_with tools) \
+ $(
+ $(tc-getCPP ${CTARGET}) ${CPPFLAGS} -dM - < /dev/null | grep -q __MINGW64__ \
+ && echo --disable-lib32 --enable-lib64 \
+ || echo --enable-lib32 --disable-lib64
+ )
+}
+
+src_compile() {
+ if ! just_headers; then
+ emake -C "${WORKDIR}/headers" install
+ fi
+ default
+}
+
+src_install() {
+ default
+
+ if is_crosscompile ; then
+ # gcc is configured to look at specific hard-coded paths for mingw #419601
+ dosym usr /usr/${CTARGET}/mingw
+ dosym usr /usr/${CTARGET}/${CTARGET}
+ dosym usr/include /usr/${CTARGET}/sys-include
+ fi
+
+ env -uRESTRICT CHOST=${CTARGET} prepallstrip
+ rm -rf "${ED}/usr/share"
+}
diff --git a/dev-util/mingw64-runtime/mingw64-runtime-5.0.1.ebuild b/dev-util/mingw64-runtime/mingw64-runtime-5.0.1.ebuild
new file mode 100644
index 000000000000..408aa8d8e7ba
--- /dev/null
+++ b/dev-util/mingw64-runtime/mingw64-runtime-5.0.1.ebuild
@@ -0,0 +1,112 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+export CBUILD=${CBUILD:-${CHOST}}
+export CTARGET=${CTARGET:-${CHOST}}
+if [[ ${CTARGET} == ${CHOST} ]] ; then
+ if [[ ${CATEGORY} == cross-* ]] ; then
+ export CTARGET=${CATEGORY#cross-}
+ fi
+fi
+
+WANT_AUTOMAKE="1.15"
+
+inherit autotools flag-o-matic eutils
+
+DESCRIPTION="Free Win64 runtime and import library definitions"
+HOMEPAGE="http://mingw-w64.sourceforge.net/"
+SRC_URI="mirror://sourceforge/mingw-w64/mingw-w64/mingw-w64-release/mingw-w64-v${PV}.tar.bz2"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="crosscompile_opts_headers-only idl libraries tools"
+RESTRICT="strip"
+
+S="${WORKDIR}/mingw-w64-v${PV}"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-4.0.1-winpthreads.patch"
+ "${FILESDIR}/${PN}-4.0.1-build.patch"
+)
+
+is_crosscompile() {
+ [[ ${CHOST} != ${CTARGET} ]]
+}
+just_headers() {
+ use crosscompile_opts_headers-only && [[ ${CHOST} != ${CTARGET} ]]
+}
+crt_with() {
+ just_headers && echo --without-$1 || echo --with-$1
+}
+crt_use_enable() {
+ just_headers && echo --without-$2 || use_enable "$@"
+}
+crt_use_with() {
+ just_headers && echo --without-$2 || use_with "$@"
+}
+
+pkg_setup() {
+ if [[ ${CBUILD} == ${CHOST} ]] && [[ ${CHOST} == ${CTARGET} ]] ; then
+ die "Invalid configuration"
+ fi
+}
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ CHOST=${CTARGET} strip-unsupported-flags
+
+ if ! just_headers; then
+ mkdir "${WORKDIR}/headers"
+ pushd "${WORKDIR}/headers" > /dev/null
+ CHOST=${CTARGET} "${S}/configure" \
+ --prefix="${T}/tmproot" \
+ --with-headers \
+ --without-crt \
+ || die
+ popd > /dev/null
+ append-cppflags "-I${T}/tmproot/include"
+ fi
+
+ CHOST=${CTARGET} econf \
+ --prefix=/usr/${CTARGET} \
+ --includedir=/usr/${CTARGET}/usr/include \
+ --with-headers \
+ --enable-sdk \
+ $(crt_with crt) \
+ $(crt_use_enable idl) \
+ $(crt_use_with libraries libraries winpthreads,libmangle) \
+ $(crt_use_with tools) \
+ $(
+ $(tc-getCPP ${CTARGET}) ${CPPFLAGS} -dM - < /dev/null | grep -q __MINGW64__ \
+ && echo --disable-lib32 --enable-lib64 \
+ || echo --enable-lib32 --disable-lib64
+ )
+}
+
+src_compile() {
+ if ! just_headers; then
+ emake -C "${WORKDIR}/headers" install
+ fi
+ default
+}
+
+src_install() {
+ default
+
+ if is_crosscompile ; then
+ # gcc is configured to look at specific hard-coded paths for mingw #419601
+ dosym usr /usr/${CTARGET}/mingw
+ dosym usr /usr/${CTARGET}/${CTARGET}
+ dosym usr/include /usr/${CTARGET}/sys-include
+ fi
+
+ env -uRESTRICT CHOST=${CTARGET} prepallstrip
+ rm -rf "${ED}/usr/share"
+}
diff --git a/dev-util/mingw64-runtime/mingw64-runtime-5.0.2-r1.ebuild b/dev-util/mingw64-runtime/mingw64-runtime-5.0.2-r1.ebuild
new file mode 100644
index 000000000000..534091fe6549
--- /dev/null
+++ b/dev-util/mingw64-runtime/mingw64-runtime-5.0.2-r1.ebuild
@@ -0,0 +1,114 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+export CBUILD=${CBUILD:-${CHOST}}
+export CTARGET=${CTARGET:-${CHOST}}
+if [[ ${CTARGET} == ${CHOST} ]] ; then
+ if [[ ${CATEGORY} == cross-* ]] ; then
+ export CTARGET=${CATEGORY#cross-}
+ fi
+fi
+
+WANT_AUTOMAKE="1.15"
+
+inherit autotools flag-o-matic eutils
+
+DESCRIPTION="Free Win64 runtime and import library definitions"
+HOMEPAGE="http://mingw-w64.sourceforge.net/"
+SRC_URI="mirror://sourceforge/mingw-w64/mingw-w64/mingw-w64-release/mingw-w64-v${PV}.tar.bz2"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="crosscompile_opts_headers-only idl libraries tools"
+RESTRICT="strip"
+
+S="${WORKDIR}/mingw-w64-v${PV}"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-4.0.1-winpthreads.patch"
+ "${FILESDIR}/${PN}-4.0.1-build.patch"
+ "${FILESDIR}/${PN}-5.0.2-implicit-fallthrough.patch"
+)
+
+is_crosscompile() {
+ [[ ${CHOST} != ${CTARGET} ]]
+}
+just_headers() {
+ use crosscompile_opts_headers-only && [[ ${CHOST} != ${CTARGET} ]]
+}
+crt_with() {
+ just_headers && echo --without-$1 || echo --with-$1
+}
+crt_use_enable() {
+ just_headers && echo --without-$2 || use_enable "$@"
+}
+crt_use_with() {
+ just_headers && echo --without-$2 || use_with "$@"
+}
+
+pkg_setup() {
+ if [[ ${CBUILD} == ${CHOST} ]] && [[ ${CHOST} == ${CTARGET} ]] ; then
+ die "Invalid configuration"
+ fi
+}
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ CHOST=${CTARGET} strip-unsupported-flags
+
+ if ! just_headers; then
+ mkdir "${WORKDIR}/headers"
+ pushd "${WORKDIR}/headers" > /dev/null
+ CHOST=${CTARGET} "${S}/configure" \
+ --prefix="${T}/tmproot" \
+ --with-headers \
+ --without-crt \
+ || die
+ popd > /dev/null
+ append-cppflags "-I${T}/tmproot/include"
+ fi
+
+ CHOST=${CTARGET} econf \
+ --prefix=/usr/${CTARGET} \
+ --includedir=/usr/${CTARGET}/usr/include \
+ --libdir=/usr/${CTARGET}/usr/lib \
+ --with-headers \
+ --enable-sdk \
+ $(crt_with crt) \
+ $(crt_use_enable idl) \
+ $(crt_use_with libraries libraries winpthreads,libmangle) \
+ $(crt_use_with tools) \
+ $(
+ $(tc-getCPP ${CTARGET}) ${CPPFLAGS} -dM - < /dev/null | grep -q __MINGW64__ \
+ && echo --disable-lib32 --enable-lib64 \
+ || echo --enable-lib32 --disable-lib64
+ )
+}
+
+src_compile() {
+ if ! just_headers; then
+ emake -C "${WORKDIR}/headers" install
+ fi
+ default
+}
+
+src_install() {
+ default
+
+ if is_crosscompile ; then
+ # gcc is configured to look at specific hard-coded paths for mingw #419601
+ dosym usr /usr/${CTARGET}/mingw
+ dosym usr /usr/${CTARGET}/${CTARGET}
+ dosym usr/include /usr/${CTARGET}/sys-include
+ fi
+
+ env -uRESTRICT CHOST=${CTARGET} prepallstrip
+ rm -rf "${ED}/usr/share"
+}
diff --git a/dev-util/mingw64-runtime/mingw64-runtime-5.0.2-r2.ebuild b/dev-util/mingw64-runtime/mingw64-runtime-5.0.2-r2.ebuild
new file mode 100644
index 000000000000..0edd83c00354
--- /dev/null
+++ b/dev-util/mingw64-runtime/mingw64-runtime-5.0.2-r2.ebuild
@@ -0,0 +1,115 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+export CBUILD=${CBUILD:-${CHOST}}
+export CTARGET=${CTARGET:-${CHOST}}
+if [[ ${CTARGET} == ${CHOST} ]] ; then
+ if [[ ${CATEGORY} == cross-* ]] ; then
+ export CTARGET=${CATEGORY#cross-}
+ fi
+fi
+
+WANT_AUTOMAKE="1.15"
+
+inherit autotools flag-o-matic eutils
+
+DESCRIPTION="Free Win64 runtime and import library definitions"
+HOMEPAGE="http://mingw-w64.sourceforge.net/"
+SRC_URI="mirror://sourceforge/mingw-w64/mingw-w64/mingw-w64-release/mingw-w64-v${PV}.tar.bz2"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="crosscompile_opts_headers-only idl libraries tools"
+RESTRICT="strip"
+
+S="${WORKDIR}/mingw-w64-v${PV}"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-4.0.1-winpthreads.patch"
+ "${FILESDIR}/${PN}-4.0.1-build.patch"
+ "${FILESDIR}/${PN}-5.0.2-implicit-fallthrough.patch"
+ "${FILESDIR}/${PN}-5.0.2-locale.patch"
+)
+
+is_crosscompile() {
+ [[ ${CHOST} != ${CTARGET} ]]
+}
+just_headers() {
+ use crosscompile_opts_headers-only && [[ ${CHOST} != ${CTARGET} ]]
+}
+crt_with() {
+ just_headers && echo --without-$1 || echo --with-$1
+}
+crt_use_enable() {
+ just_headers && echo --without-$2 || use_enable "$@"
+}
+crt_use_with() {
+ just_headers && echo --without-$2 || use_with "$@"
+}
+
+pkg_setup() {
+ if [[ ${CBUILD} == ${CHOST} ]] && [[ ${CHOST} == ${CTARGET} ]] ; then
+ die "Invalid configuration"
+ fi
+}
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ CHOST=${CTARGET} strip-unsupported-flags
+
+ if ! just_headers; then
+ mkdir "${WORKDIR}/headers"
+ pushd "${WORKDIR}/headers" > /dev/null
+ CHOST=${CTARGET} "${S}/configure" \
+ --prefix="${T}/tmproot" \
+ --with-headers \
+ --without-crt \
+ || die
+ popd > /dev/null
+ append-cppflags "-I${T}/tmproot/include"
+ fi
+
+ CHOST=${CTARGET} econf \
+ --prefix=/usr/${CTARGET} \
+ --includedir=/usr/${CTARGET}/usr/include \
+ --libdir=/usr/${CTARGET}/usr/lib \
+ --with-headers \
+ --enable-sdk \
+ $(crt_with crt) \
+ $(crt_use_enable idl) \
+ $(crt_use_with libraries libraries winpthreads,libmangle) \
+ $(crt_use_with tools) \
+ $(
+ $(tc-getCPP ${CTARGET}) ${CPPFLAGS} -dM - < /dev/null | grep -q __MINGW64__ \
+ && echo --disable-lib32 --enable-lib64 \
+ || echo --enable-lib32 --disable-lib64
+ )
+}
+
+src_compile() {
+ if ! just_headers; then
+ emake -C "${WORKDIR}/headers" install
+ fi
+ default
+}
+
+src_install() {
+ default
+
+ if is_crosscompile ; then
+ # gcc is configured to look at specific hard-coded paths for mingw #419601
+ dosym usr /usr/${CTARGET}/mingw
+ dosym usr /usr/${CTARGET}/${CTARGET}
+ dosym usr/include /usr/${CTARGET}/sys-include
+ fi
+
+ env -uRESTRICT CHOST=${CTARGET} prepallstrip
+ rm -rf "${ED}/usr/share"
+}
diff --git a/dev-util/mingw64-runtime/mingw64-runtime-5.0.2.ebuild b/dev-util/mingw64-runtime/mingw64-runtime-5.0.2.ebuild
new file mode 100644
index 000000000000..408aa8d8e7ba
--- /dev/null
+++ b/dev-util/mingw64-runtime/mingw64-runtime-5.0.2.ebuild
@@ -0,0 +1,112 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+export CBUILD=${CBUILD:-${CHOST}}
+export CTARGET=${CTARGET:-${CHOST}}
+if [[ ${CTARGET} == ${CHOST} ]] ; then
+ if [[ ${CATEGORY} == cross-* ]] ; then
+ export CTARGET=${CATEGORY#cross-}
+ fi
+fi
+
+WANT_AUTOMAKE="1.15"
+
+inherit autotools flag-o-matic eutils
+
+DESCRIPTION="Free Win64 runtime and import library definitions"
+HOMEPAGE="http://mingw-w64.sourceforge.net/"
+SRC_URI="mirror://sourceforge/mingw-w64/mingw-w64/mingw-w64-release/mingw-w64-v${PV}.tar.bz2"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="crosscompile_opts_headers-only idl libraries tools"
+RESTRICT="strip"
+
+S="${WORKDIR}/mingw-w64-v${PV}"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-4.0.1-winpthreads.patch"
+ "${FILESDIR}/${PN}-4.0.1-build.patch"
+)
+
+is_crosscompile() {
+ [[ ${CHOST} != ${CTARGET} ]]
+}
+just_headers() {
+ use crosscompile_opts_headers-only && [[ ${CHOST} != ${CTARGET} ]]
+}
+crt_with() {
+ just_headers && echo --without-$1 || echo --with-$1
+}
+crt_use_enable() {
+ just_headers && echo --without-$2 || use_enable "$@"
+}
+crt_use_with() {
+ just_headers && echo --without-$2 || use_with "$@"
+}
+
+pkg_setup() {
+ if [[ ${CBUILD} == ${CHOST} ]] && [[ ${CHOST} == ${CTARGET} ]] ; then
+ die "Invalid configuration"
+ fi
+}
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ CHOST=${CTARGET} strip-unsupported-flags
+
+ if ! just_headers; then
+ mkdir "${WORKDIR}/headers"
+ pushd "${WORKDIR}/headers" > /dev/null
+ CHOST=${CTARGET} "${S}/configure" \
+ --prefix="${T}/tmproot" \
+ --with-headers \
+ --without-crt \
+ || die
+ popd > /dev/null
+ append-cppflags "-I${T}/tmproot/include"
+ fi
+
+ CHOST=${CTARGET} econf \
+ --prefix=/usr/${CTARGET} \
+ --includedir=/usr/${CTARGET}/usr/include \
+ --with-headers \
+ --enable-sdk \
+ $(crt_with crt) \
+ $(crt_use_enable idl) \
+ $(crt_use_with libraries libraries winpthreads,libmangle) \
+ $(crt_use_with tools) \
+ $(
+ $(tc-getCPP ${CTARGET}) ${CPPFLAGS} -dM - < /dev/null | grep -q __MINGW64__ \
+ && echo --disable-lib32 --enable-lib64 \
+ || echo --enable-lib32 --disable-lib64
+ )
+}
+
+src_compile() {
+ if ! just_headers; then
+ emake -C "${WORKDIR}/headers" install
+ fi
+ default
+}
+
+src_install() {
+ default
+
+ if is_crosscompile ; then
+ # gcc is configured to look at specific hard-coded paths for mingw #419601
+ dosym usr /usr/${CTARGET}/mingw
+ dosym usr /usr/${CTARGET}/${CTARGET}
+ dosym usr/include /usr/${CTARGET}/sys-include
+ fi
+
+ env -uRESTRICT CHOST=${CTARGET} prepallstrip
+ rm -rf "${ED}/usr/share"
+}
diff --git a/dev-util/molecule-core/Manifest b/dev-util/molecule-core/Manifest
new file mode 100644
index 000000000000..84ee0cd0dfc1
--- /dev/null
+++ b/dev-util/molecule-core/Manifest
@@ -0,0 +1,5 @@
+DIST molecule-core-1.0.2.tar.bz2 30616 SHA256 141817590a4501c49fb3d25fb8ffd4737023c52216b3b80677ecbbca5e71872c SHA512 1f501960e4029cb993680c7356aa8fc0ac7afa249d106b4ce97afb39f58cd666640bcf9fd8cee64482077ad23f91da743d6ce54e82863faab20d68a1814d92cb WHIRLPOOL c5f6da62c164488543cce45b0f4485c5d4d3ea15d474f06b65f00c685fef22851d5b43234da54d4324e4cce2bbc01b1cbe0c639dd97ac5f17a4128004166aadd
+EBUILD molecule-core-1.0.2-r1.ebuild 636 SHA256 bb63692363289fd13960da1335def57279cdbf8ba20383cb243c1a8c385895c7 SHA512 9798239f564bacbdd13243f3e3357a67419b0f8eb4977a2f8d761008ca8f8af5b7c3fc260d39dda18ea686e88a52865bb5b294d4ab199b9dd5fa49c8a2bb2ce3 WHIRLPOOL fe394572861ecd88b66b830217cbe7e81298f93a03ea04c53f0f8a5aa5d6616f1d3ded68e546ec9a078b02702b9a2ccc6ddf23c9c9cdb3c4c7ad056e97df1bd7
+MISC ChangeLog 3157 SHA256 526da77c3f283e340f96edba3bc1d5bf87cf002b16412d3aaa68e0291998ef4a SHA512 348ab621f9ca18c359b483bbd03f4215b75c89b3ac84da60be8c337efcfee40717287e9ea4ef148bf35c5549dcb458ab9b49aca84ba43bb8e8b12f7ba16a8039 WHIRLPOOL 3cfae1e0e18279c5edeb55c20f922cc5692b05aff7b5b86386b832c14827006b6d20291c1b2652346d52d649e67039996cbfe076095c82f403eb107038339053
+MISC ChangeLog-2015 771 SHA256 33ce793a26c13ca33d1ec4f270d1eedc999cbc409edead58cfbbf5858960b91f SHA512 3145e56c9e8798ca25901227bb11cdf2c9c96c13fdc35220e20d9debb41a2f912ecb86194a6bc3327ae49facd6d6e67c6c2c4e32887ce7dd4d3e0c7c50799181 WHIRLPOOL 1674a6b593dbb0b6ad941ff408366968ea8aad482b36fa0ad3646f017caca83bb2f8be949abe0afe7d2969409d7d07c83640c05d6c42d4063169bc076e141b7b
+MISC metadata.xml 1393 SHA256 b64c411ee54e77132fbf2891b4ee343e6c89a3a53f0151c50d08c541044bd1ff SHA512 48aa3a2966c3b235d0d5bf91ce8a558f36e185ca0015c1625b3532b540178a89aaf9c029aa835300e2885c91940dfe5b7c1b1efaab870fa65380e158bd10dc3c WHIRLPOOL e444c881733b0b72131f97be2b42457505cf889d27fbc4499f9450ec454010d3fb7e1bc6dda4401c320a10a926c2f7d8b0b4a91bab978c2a777d76460456b669
diff --git a/dev-util/molecule-core/metadata.xml b/dev-util/molecule-core/metadata.xml
new file mode 100644
index 000000000000..1393c7435bfe
--- /dev/null
+++ b/dev-util/molecule-core/metadata.xml
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>mudler@gentoo.org</email>
+ <name>Ettore Di Giacinto</name>
+ <description>Assign bugs to him</description>
+ </maintainer>
+ <maintainer type="person">
+ <email>lxnay@gentoo.org</email>
+ <name>Fabio Erculiani</name>
+ <description>CC on bugs</description>
+ </maintainer>
+ <longdescription lang="en">
+ Molecule is a build tool that can build, rebuild or extend Sabayon Linux or
+ Gentoo Linux OS releases OpenVZ templates and stage4 tarballs.
+ It doesn't contain any specific package manager bit and can work with
+ your favourite one. The philosophy of Molecule is simple: ease of use and
+ modularity.
+ Just like Catalyst, Molecule uses its own .spec file format and learning
+ how to write one is just about reading examples provided at
+ http://git.sabayon.org/molecules.git/.
+ You can tweak your ISO image or create one off your chroot (stage4) in no
+ time. Molecule uses a plugin-based system to implement support for new
+ execution patterns (like ISO to ISO, ISO to Tar, Chroot to ISO, etc).
+ Molecule is born inside Sabayon and is used in its release cycle for both
+ daily(live) and versioned ISO images.
+ Molecule developers are looking for help for writing user docs and HOWTOs.
+ </longdescription>
+</pkgmetadata>
diff --git a/dev-util/molecule-core/molecule-core-1.0.2-r1.ebuild b/dev-util/molecule-core/molecule-core-1.0.2-r1.ebuild
new file mode 100644
index 000000000000..5ce8515f2b95
--- /dev/null
+++ b/dev-util/molecule-core/molecule-core-1.0.2-r1.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+PYTHON_COMPAT=( python{2_7,3_3,3_4,3_5,3_6} )
+
+inherit python-r1
+
+DESCRIPTION="Sabayon distro-agnostic images build tool"
+HOMEPAGE="http://www.sabayon.org"
+SRC_URI="mirror://sabayon/${CATEGORY}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+DEPEND="dev-util/intltool
+ sys-devel/gettext"
+RDEPEND="!<dev-util/molecule-1
+ sys-process/lsof
+ ${PYTHON_DEPS}"
+
+src_install() {
+ emake DESTDIR="${D}" LIBDIR="/usr/lib" \
+ PREFIX="/usr" SYSCONFDIR="/etc" install
+}
diff --git a/dev-util/molecule-plugins/Manifest b/dev-util/molecule-plugins/Manifest
new file mode 100644
index 000000000000..d04be3795735
--- /dev/null
+++ b/dev-util/molecule-plugins/Manifest
@@ -0,0 +1,5 @@
+DIST molecule-plugins-1.0.2.tar.bz2 17428 SHA256 1e2c8de1e4c8dd3b8623bb048527153bef147e15d01d13e61575711561703b4d SHA512 65b75c23f3c662812be2ab4fe0c92bd99aba48da6e05aad6175ba3fe1cd8106d9085ed53f27c738ef6af1b327ac8ac872ef7c3c48728366b510b7a82bb90c866 WHIRLPOOL 90f1f22c0e3514ac3ba658b9de32ca71eafa60ba7e5a6e212d0b1fbcbcd4cd22a6be405c9dad06179e1db9d09e161fb50cf57d3307b8a8a950fe6366e5e788b1
+EBUILD molecule-plugins-1.0.2-r1.ebuild 689 SHA256 5944aca333f808c4664529fa22d69ae876da1fbc23549658f62192cadae65fe4 SHA512 aeebf6736c4727ea0c6e50d3fb86e504805cca32dbbba93c299474f69341dfed6b42eb2058f28eab4b756fcce83088ffc85cea886690024fb8e08846d411e650 WHIRLPOOL 3345fe50a7b7d6ee1c8d35316bda09a828542bc2f972f459e42e3afb496c81a9077a81080c8129f8fcf8f5e7dc85dbd0f4d60abaa0952a6b4d83322993be582a
+MISC ChangeLog 3175 SHA256 257caf3f735e8d2216f32368ba8f72cc2ad017718364eefc9c7bbbc8952f0342 SHA512 e309298ee4d4dc9783fba688226fb88204fa4618c01a289109909192584dc58252247ffbf308e987f60a3eda808a8d8954f2b673b558888375b32e0636144af5 WHIRLPOOL faa9b7fbfdc639b054640dc2545cb7731f2a2b30b97b24cbaa3753387dba99902bbe6f744fc95d6ab57d06381fb12ef506ac43e1af6d85c0d79092ff38ec4701
+MISC ChangeLog-2015 749 SHA256 1448c677ac5729ca7fc8630ccf75c28ff14d364d6e7ecc28349df9bab5f96961 SHA512 5d3a76a4c4f0bb592e902b23efbbfb293ca2721c78452b475313bb2542cf8d1d975226ed24be56baa21b06e88152e3da171fd27e39889516d7350caf7c0fd744 WHIRLPOOL 283f349e41769b919ec94b6e4a900ae0d37660d6b3ec5ffe261a8bdc95104bb13be1dc622ff832d69bf62719fd12a87ee52a26fede95098f5e06d835d7b2340b
+MISC metadata.xml 447 SHA256 48a210571aa712b6016dc95f4c2a15f3e1d5996fbde224ce950b4fa4d74906a3 SHA512 2101f474c05885ff071c20a3feff1a6135a350f646b2799bba9c7f88ee64c36097cb4a8b4913d9e2042282d05cc148d75e7157c9ce7e9658396484b4a61f87d6 WHIRLPOOL ecfb1ed2079f00b6fddfbcba41b958cf859f11fe6871d4a31338bbc0272d2d7997c487b87b9f1d8494b74df2dbf116b49f4bcb6f14ade01dadd0509574c15323
diff --git a/dev-util/molecule-plugins/metadata.xml b/dev-util/molecule-plugins/metadata.xml
new file mode 100644
index 000000000000..2c94a04481eb
--- /dev/null
+++ b/dev-util/molecule-plugins/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>mudler@gentoo.org</email>
+ <name>Ettore Di Giacinto</name>
+ <description>Assign bugs to him</description>
+ </maintainer>
+ <maintainer type="person">
+ <email>lxnay@gentoo.org</email>
+ <name>Fabio Erculiani</name>
+ <description>CC on bugs</description>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-util/molecule-plugins/molecule-plugins-1.0.2-r1.ebuild b/dev-util/molecule-plugins/molecule-plugins-1.0.2-r1.ebuild
new file mode 100644
index 000000000000..746d3b7fc28e
--- /dev/null
+++ b/dev-util/molecule-plugins/molecule-plugins-1.0.2-r1.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+
+inherit python-r1
+
+DESCRIPTION="A set of base plugins for Molecule"
+HOMEPAGE="http://www.sabayon.org"
+SRC_URI="mirror://sabayon/${CATEGORY}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+DEPEND="
+ >=dev-util/molecule-core-1.0.1
+ !<dev-util/molecule-1"
+RDEPEND="${DEPEND}
+ net-misc/rsync
+ sys-fs/squashfs-tools
+ sys-process/lsof
+ virtual/cdrtools
+ ${PYTHON_DEPS}"
+
+src_install() {
+ emake DESTDIR="${D}" LIBDIR="/usr/lib" \
+ PREFIX="/usr" SYSCONFDIR="/etc" install
+}
diff --git a/dev-util/molecule/Manifest b/dev-util/molecule/Manifest
new file mode 100644
index 000000000000..8b39a69d34a8
--- /dev/null
+++ b/dev-util/molecule/Manifest
@@ -0,0 +1,4 @@
+EBUILD molecule-2.ebuild 412 SHA256 0a34938ae83ab724559c1b30bc4fb02dad0010047b6f352cd14857d7c2d11456 SHA512 c8151d3c5311d4684ac6407591666cf175d9007f7a9c9f7dd741104f48602c1ddc50262c139ab60aa4374d2688def5d711afe12c01a43cc1df68bc5099888ca0 WHIRLPOOL 80f50ec512b838a774c6f8bd0b8b7325cea1751dca8f6afc999f18b02a2875657089cdb004df388dfbf33d915987d1d5660bcced8d0c9aa2f6e4319fdc42c3f5
+MISC ChangeLog 3624 SHA256 6c7bb46c2188d243eaaeb1c92cf6641f5bad1e6d20a0d6337abe77c40f519c70 SHA512 f321701a58cede1a574ac40877b872170bea688828cc4fbd40ecd3069640b5f9ba4c14c137effe0973a2b4b833e39d4378f3ade64a36d5ef6abbc5e3b4a48bc5 WHIRLPOOL 8cad2cd4424b7aabe9c066d4d02b40966c27a6c9175230db2564225ba7e2560a1e4327c6804ad0931abfdbdebfc0d2e33c616c7093c9ecb54fd3a3b48fb0af3d
+MISC ChangeLog-2015 6874 SHA256 695008db47f7379a2651fc0a9e53a3665bb7e42afb3363b60a303f3feeeb5a45 SHA512 bd0417bd6a121cc673f02c7ac58138a49d5046738e63834d21a1f777b50d6b1b9878b0238ee2c3705386f8fccf369692fcf4e8b518b8f8b5785ce042825286be WHIRLPOOL feef3260aeaa282cbeeb3f05dde47dc4dddaac0548c53ab67cb1114fdd517414c6d25261267417e2e91fcb3c7b35ad1148b6e9169de01c4529ecca0b6002a957
+MISC metadata.xml 542 SHA256 cc55b47b79f5e6a4e37f47b714d5b6dbf10846f14d42f974dfad9ad1f92415df SHA512 3d918b064e3a084b48c06d57344af5d3ba99168c7533a9299a59e55049b641eb954ec453bb090a35e1a25fd2bff3f69390c46fbad1bfad6effd7e408670b6d53 WHIRLPOOL ded6c38b0222dc2570dab3ded7d9efc0e4dcc129236a7da1aac8dc9c03aef74ddf4b50032f12e49e300f3ef25dd78569e85bec2319cfcba4e96c6d8e5276cf8a
diff --git a/dev-util/molecule/metadata.xml b/dev-util/molecule/metadata.xml
new file mode 100644
index 000000000000..acee678928c9
--- /dev/null
+++ b/dev-util/molecule/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>mudler@gentoo.org</email>
+ <name>Ettore Di Giacinto</name>
+ <description>Assign bugs to him</description>
+ </maintainer>
+ <maintainer type="person">
+ <email>lxnay@gentoo.org</email>
+ <name>Fabio Erculiani</name>
+ <description>CC on bugs</description>
+ </maintainer>
+ <use>
+ <flag name="plugins">Add plugins provided by dev-util/molecule-plugins</flag>
+ </use>
+</pkgmetadata>
diff --git a/dev-util/molecule/molecule-2.ebuild b/dev-util/molecule/molecule-2.ebuild
new file mode 100644
index 000000000000..d03edd9c576b
--- /dev/null
+++ b/dev-util/molecule/molecule-2.ebuild
@@ -0,0 +1,17 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+DESCRIPTION="Meta package for dev-util/molecule-core and dev-util/molecule-plugins"
+HOMEPAGE="http://www.sabayon.org"
+SRC_URI=""
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+plugins"
+
+DEPEND=""
+RDEPEND=">=dev-util/molecule-core-1.0.2
+ plugins? ( >=dev-util/molecule-plugins-1.0.2 )"
diff --git a/dev-util/monkeystudio/Manifest b/dev-util/monkeystudio/Manifest
new file mode 100644
index 000000000000..9d9df26386b8
--- /dev/null
+++ b/dev-util/monkeystudio/Manifest
@@ -0,0 +1,6 @@
+AUX monkeystudio-1.9.0.4-install.patch 743 SHA256 1d349c8817beab372a53dbbeb90dce6c50b43dafa13f9e118fef6abd28cc549d SHA512 436dd197c6b2b3a3b898a2633e30242d7241019b1491929337c0f5b8964b4067738fcf3ad68c28a299011fefdfa6dbaaf3fb7207da8eb041a39536e3fe6417a7 WHIRLPOOL abb5f69cda533f653298da319986bf5b9031bf6d5c781cdddfdd9d5d7aa698577c93849faa6cb37f072e7aea71a84311647a50167cdbe54bd20e74ad8e555a7a
+DIST mks_1.9.0.4-src.tar.gz 7553485 SHA256 cfd3517ac6d4a5d8ffdf7ec9995a624b6cef13aa00163e46a9b54b1f52164ffd SHA512 57503ef55856d6ba651c58b6f21a84900bab8c86687de114feaa15e914bd99a4661e3617ddc7a6dcca2dbedaac8b19e244e17362aa1bc54f2c9bcd96087d8eae WHIRLPOOL 70a96c26411527c83b7219459a3ba91ee4d907a3e1389c9a543da38b681fabafaef23b9dc510ebbbd667c4e8c2303b55b15926662628ef53bec18d527e1083c6
+EBUILD monkeystudio-1.9.0.4-r2.ebuild 1403 SHA256 aaf0f45e0005f7cc744e6f6db01764609aa14fde42817490c0f7b6c40f9051eb SHA512 4948a4d4aa023a482e5f88a88f08df4e7730274756c2eb3307c0645b6ec8a1bdd584d95dc7d523557311a93b7630648c0123b9d13d1d26b7d8930109c6636ab1 WHIRLPOOL 7c440883afc4a6a8618b598305fbfbd69fd08280af0b78f47b3c014a49e6e3b5757cdc30d21e2aca927b00a2d5e89e7979df4d780d2c8b8891d23005f458cb7f
+MISC ChangeLog 2661 SHA256 f06b74b8c8389bd4217f7936ff86adb6f6888182f5a4b1483df8ff955251b1c1 SHA512 815c4e7ef6e11ccb409324dc4b89b433747585f93ef10582b970822d8a8843373e2b7512e5c73af4b0c52caed7adc1f2d64abdb803f47c338b5353a68038b279 WHIRLPOOL ed71c768808ff1cd83c8e6311b178fbc781df5638f5023f16294dc00d3daf1bd3a5d8540c4505449f5bd2a8e36712b2f9fa67d911f6bffd324fc1b5505b3638b
+MISC ChangeLog-2015 1156 SHA256 76f18b2e99709cba50d35602e15b4dd0e3ddcda48a466bcb64c3b31f4b0d858d SHA512 85f961d2c9d8fd9cb74a9a39caf4392c8cb672ccfdcb811ef81522aeb8541139e54b4e299be35c9c42f994026def186fdbea7b010b044d20b663a44d448a3eea WHIRLPOOL e3d5d86368978a1051a08fd28af9dc559a1a9034cfd2d721661ac661ce1783604d1a6808cd57ab8efc791edece6f515b05ac5ca639ed59069c979a98af63a4c6
+MISC metadata.xml 329 SHA256 0c14f5c80ee902b5d7a2aa12d228610490dfc82be8f3fde4505f47c80c625313 SHA512 5aabc1dc8e8835ba42981dc03e6248b08c906ee60c1c4e6facce54b3805d78ac3ea4b18eae4074e0797b6d18b7f16f36c58003a4a59e3e7af13ba4a6d200e2a7 WHIRLPOOL 4c51773fbca39a69304dbbc136a48ea9e3b75feb50a8d5b8193fd09a60ee037b152d5c4fc130caa19e0cf257dd8555c53412f6812cf0785e23f00a2e052ea2c5
diff --git a/dev-util/monkeystudio/files/monkeystudio-1.9.0.4-install.patch b/dev-util/monkeystudio/files/monkeystudio-1.9.0.4-install.patch
new file mode 100644
index 000000000000..0a657d48f208
--- /dev/null
+++ b/dev-util/monkeystudio/files/monkeystudio-1.9.0.4-install.patch
@@ -0,0 +1,26 @@
+* Don't install unneeded docs
+* Don't install all translations
+
+--- installs.pri
++++ installs.pri
+@@ -31,19 +31,9 @@
+ !exists( $${toolsFolder} ):toolsFolder = tools
+ toolsDataFolder = $${toolsFolder}/data/$${dataFolder}
+
+- # licenses, readme, changelog
+- monkey_docs.path = $${PACKAGE_DOCS}
+- monkey_docs.files = GPL-2 \
+- GPL-3 \
+- LGPL-3 \
+- dev-readme \
+- readme.txt \
+- ChangeLog
+- install_folders *= $${monkey_docs.path}
+-
+ # datas
+ monkey_datas.path = $${PACKAGE_DATAS}
+- monkey_datas.files = datas/*
++ monkey_datas.files = datas/apis datas/scripts datas/templates
+ monkey_datas.CONFIG *= no_check_exist
+ install_folders *= $${monkey_datas.path}
+
diff --git a/dev-util/monkeystudio/metadata.xml b/dev-util/monkeystudio/metadata.xml
new file mode 100644
index 000000000000..56f5896cdb63
--- /dev/null
+++ b/dev-util/monkeystudio/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="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="google-code">monkeystudio</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/monkeystudio/monkeystudio-1.9.0.4-r2.ebuild b/dev-util/monkeystudio/monkeystudio-1.9.0.4-r2.ebuild
new file mode 100644
index 000000000000..a6256c77b8ae
--- /dev/null
+++ b/dev-util/monkeystudio/monkeystudio-1.9.0.4-r2.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+LANGS="be es fr ru"
+
+inherit qt4-r2
+
+MY_P="mks_${PV}-src"
+
+DESCRIPTION="A cross platform Qt 4 IDE"
+HOMEPAGE="https://monkeystudio.pasnox.com/"
+SRC_URI="https://${PN}.googlecode.com/files/${MY_P}.tar.gz"
+
+LICENSE="GPL-2 LGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc"
+
+RDEPEND="
+ dev-qt/designer:4
+ dev-qt/qtcore:4
+ dev-qt/qtgui:4
+ dev-qt/qthelp:4
+ dev-qt/qtsql:4
+ x11-libs/qscintilla:=[qt4(-)]
+"
+DEPEND="${RDEPEND}
+ doc? ( >=app-doc/doxygen-1.5.8 )
+"
+
+PATCHES=( "${FILESDIR}/${P}-install.patch" )
+DOCS=( ChangeLog readme.txt )
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ # Revert upstream change designed to permit shadow building
+ # which is causing build failure
+ sed -e '/PACKAGE_BUILD_PATH = $$(PWD)\/build/d' \
+ -e 's/#PACKAGE_BUILD_PATH/PACKAGE_BUILD_PATH/' \
+ -i config.pri || die
+
+ rm -r qscintilla/QScintilla-gpl-snapshot \
+ || die "failed removing bundled qscintilla"
+
+ qt4-r2_src_prepare
+}
+
+src_configure() {
+ eqmake4 prefix=/usr system_qscintilla=1
+}
+
+src_install() {
+ qt4-r2_src_install
+
+ insinto /usr/share/${PN}/translations
+ local lang
+ for lang in ${LANGS} ; do
+ if use linguas_${lang} ; then
+ doins datas/translations/monkeystudio_${lang}.qm
+ fi
+ done
+
+ fperms 755 /usr/bin/${PN}
+
+ if use doc ; then
+ doxygen || die "doxygen failed"
+ dohtml -r doc/html/*
+ fi
+}
diff --git a/dev-util/mpatch/Manifest b/dev-util/mpatch/Manifest
new file mode 100644
index 000000000000..3f257e72512e
--- /dev/null
+++ b/dev-util/mpatch/Manifest
@@ -0,0 +1,5 @@
+DIST mpatch-0.8.tar.bz2 115774 SHA256 b886843319a107f914f765617959989560fecf3f59b9e09ca0ad2d10643546d9 SHA512 1a05d23c923e29cc87dcc0994affd87b9b0b9257f2d410fb28ed2fe5337676274e9c8548df286a81479afa231a80805ac09f3e0e9b6c8942ebef443fbc4f96f1 WHIRLPOOL f135137ac6994a3f8b3945653f6b0fcb29d42dc638ee306781c70a81b211356d96e45abf9d8dac73c81704cfd72220d865df732278ec20807e241146612e5fc7
+EBUILD mpatch-0.8-r1.ebuild 591 SHA256 6a8669c7dc1fb317eee027f74dbf83a187853cc65b3bbf5c17866d8c66db2c85 SHA512 08286350586c6dde7f991754378c11d10028dcb401215c973594da4df58347e99bd164223ead8cb46ff7597f967807fc14cbb727a03b5d8f1d8accdd40ce8930 WHIRLPOOL ee406377703d2e8a28cfb31a778a44104306e3339ac8968b8c25ef4a809dd87525a742806d3889b500147e6aebe390e6d4cfd2b32bbff037d62af4d6802362cf
+MISC ChangeLog 2175 SHA256 b5e1735dc9b5d6e905932938f7337ecd73288dab37b6a0744c70d226fb3293a4 SHA512 71ac2558a668c0aacc622b07c64abfa6a6c341863b7d141a8910e7c3e64144c27c561ef6339a84fdd41e4484e343477901c9e8c04ae24f67edf9ba3db88d86ba WHIRLPOOL 492e7fe96dbfc32cb69a7af6786bb68e1a94c9d6e79f14ca2a024200bd7b2eb883c0515bc575d0b109328d1e1bab3233c8a42c91ad2f474a822401fb10913e0f
+MISC ChangeLog-2015 955 SHA256 ed172a90ce7d6e1df5674d915ccb1ef8836004f1a8c65bf111a096fde121bb55 SHA512 fe369fb46d4641d3a00585c9727a70bf1a9cd8421166a31a9933ba7cdcbd8cfa508e8cdff066eb39d12c977e18a6a5a5168f63a52ac41aa05604f2b5426c81a7 WHIRLPOOL 73d37b23b7e0fd3a6dc02996934ea3c24154beb605c937db69a3b6f158e4dc0ee40c7c11cd7f4a114bac89d19cb125866d46d103264feb78c7cc385ea00856d6
+MISC metadata.xml 268 SHA256 972faf76e6638f2159ef3c7dafdcfef26d582070e6f0064d9136d1c6b2bee905 SHA512 ffda1db3fd6ac952f41a970e2e496c6a9fd0b12ed11cdf363fd269c3b00f627c6e70421fd545aad61d69594af2e5f43d8ebc197232a39b596d012818fe758850 WHIRLPOOL 759c32dcdde671d2fda0269ee9326f6d0f0e44966f767ac7becc40e6efb5429237b683cb23867d76a8d13dde79fe257e090ef890761b20f9792172a90369296d
diff --git a/dev-util/mpatch/metadata.xml b/dev-util/mpatch/metadata.xml
new file mode 100644
index 000000000000..a4e0d354f696
--- /dev/null
+++ b/dev-util/mpatch/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>robbat2@gentoo.org</email>
+ <name>Robin H. Johnson</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-util/mpatch/mpatch-0.8-r1.ebuild b/dev-util/mpatch/mpatch-0.8-r1.ebuild
new file mode 100644
index 000000000000..5b31fd4fba7d
--- /dev/null
+++ b/dev-util/mpatch/mpatch-0.8-r1.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+DISTUTILS_SINGLE_IMPL=1
+
+inherit distutils-r1
+
+DESCRIPTION="Patch-like tool for applying diffs which can resolve common causes of patch rejects"
+HOMEPAGE="http://oss.oracle.com/~mason/mpatch/"
+SRC_URI="http://oss.oracle.com/~mason/mpatch/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~ppc"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+pkg_setup() {
+ python-single-r1_pkg_setup
+}
+
+src_install() {
+ distutils-r1_src_install
+ dobin cmd/qp cmd/mp
+}
diff --git a/dev-util/mutrace/Manifest b/dev-util/mutrace/Manifest
new file mode 100644
index 000000000000..4b3bab17c3d4
--- /dev/null
+++ b/dev-util/mutrace/Manifest
@@ -0,0 +1,6 @@
+AUX mutrace-0.2-missing-header.patch 285 SHA256 9c5c53d3a3e04f222ebc812a120b553890ecb2ff6cb320e210328b48e176f21e SHA512 dcf2e9f0a1f6851a6d6820a7032cee9a622149ac3f99822cb1d925e3576ea05ce07e6d1816353c576623a4a64ea6ed4a296d29b3d1dfeec90fa0853aa829aac3 WHIRLPOOL f4bdf1a442f86d552e59c8ea97d51affc1836a765a24a3c8cf03228396d5deda9af9cad02780e8f38670c227efbce66d21e4e101648460e27d9392fe3d8ab9b8
+DIST mutrace-0.2.tar.gz 358710 SHA256 38eb62b9c86443361b8222d7088a9dc1e8c1db6b2b01b47c4155234d230dbd23 SHA512 237ef478417a19d5967c80d285dcde68ee8ffce40af4967a3b055347272c66a6bbdfb55ed9bf36633fbaccc7c4fd9c2de09b705ab92b74eefc5e7a7170c0c545 WHIRLPOOL df7320740b0716956c1b2efda81c6a236ae4e54a219ff1f7a07ac456f9c7cc646ea678c01ef4f7b40a439d80cc0ee461dfa88da7400312d50a7f22cba5bbb5e5
+EBUILD mutrace-0.2-r1.ebuild 523 SHA256 324889dbde6201995be9a849bee5d0520db6bf8beccffc8814f8d27606c48b0f SHA512 e8fbc404a07dae3f1afea856e4d9661900d1c2553fa9679dfe99643d51e295e07535a5dea425871ebcc60e5f366828b4612e58ff87c3df79445db8d6c2b8919d WHIRLPOOL 728712a776cc72be64a17b8959c72d1863a87317a24de0886de8d16c9797f1b16ca7c019df69b1bf4cc33f17ecf5f3da0c216456c84024a798f721474d020ca1
+MISC ChangeLog 2758 SHA256 ad9b35c627b114404e25f67ebf17c103d585ad412e0d4c5c93a29370f00df930 SHA512 fce6e21a28d86a507c69b6eeed9e53a1cb0e9990cf6dd5d586fbd5b4711c320b732f162a99c69af27b33047ad9d92e2cd4e67611e98fcf04c6b9ffbb0aca8157 WHIRLPOOL acb0f685d9933b9cc3f3d7ea26db0a71c4b5236e68af088e8f75ac683b05545c8e6f30bbf34ca1b31c24bb70aaa24fff5e11f7a5e3810896d4408fe7d9e458d2
+MISC ChangeLog-2015 791 SHA256 e96e666d613e418e3698bd00f2c8b0dbc235d28ecfc164070552ccaf277c9177 SHA512 792d09cefdd20830665bd5b16716b9779d66696dee0e5ffc311c60d9d1f983584f95bef0bd25694382df1c452cbf88346ddb6dc9aecdbf50dab41f374148d2e5 WHIRLPOOL 140fea12a9f8c5599c5e42a3792ce89834f41c6153b2b7d23e502bf0613152c0b190ae6f8609301bdf89ea52475c3730ccbc428a327e1dd8c9b6469091853dfe
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/dev-util/mutrace/files/mutrace-0.2-missing-header.patch b/dev-util/mutrace/files/mutrace-0.2-missing-header.patch
new file mode 100644
index 000000000000..aa2c32e79d5e
--- /dev/null
+++ b/dev-util/mutrace/files/mutrace-0.2-missing-header.patch
@@ -0,0 +1,10 @@
+--- backtrace-symbols.c 2009-09-30 00:30:08.000000000 +0300
++++ backtrace-symbols.c 2013-10-20 19:54:47.273470222 +0300
+@@ -49,6 +49,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <execinfo.h>
++#include "config.h"
+ #include <bfd.h>
+ #include <libiberty.h>
+ #include <dlfcn.h>
diff --git a/dev-util/mutrace/metadata.xml b/dev-util/mutrace/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/dev-util/mutrace/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/dev-util/mutrace/mutrace-0.2-r1.ebuild b/dev-util/mutrace/mutrace-0.2-r1.ebuild
new file mode 100644
index 000000000000..a9728aa1ec29
--- /dev/null
+++ b/dev-util/mutrace/mutrace-0.2-r1.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils
+
+DESCRIPTION="A mutex tracer/profiler"
+HOMEPAGE="http://0pointer.de/blog/projects/mutrace.html"
+SRC_URI="http://0pointer.de/public/${P}.tar.gz"
+
+LICENSE="GPL-2 LGPL-3"
+SLOT="0"
+KEYWORDS="~x86 ~amd64 ~arm"
+IUSE=""
+
+DEPEND="sys-libs/binutils-libs:="
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ # Fails to build due to missing header, bug #430706
+ epatch "${FILESDIR}"/${PN}-0.2-missing-header.patch
+}
diff --git a/dev-util/nemiver/Manifest b/dev-util/nemiver/Manifest
new file mode 100644
index 000000000000..555c780e4270
--- /dev/null
+++ b/dev-util/nemiver/Manifest
@@ -0,0 +1,8 @@
+AUX nemiver-0.9.6-bool-build.patch 1672 SHA256 acbf69696462484a5c8bc0b01762eb0c52c63aa97f62160d385e3b1bc569a2fb SHA512 28835958edbaf2fc7cd1a8eca47d118089a46a4e7a6046094092dd8c1d385db0407410b0df90057b601443c0e0b1202dc03276f4b046f565f57f7491b429f77a WHIRLPOOL 74d122cbd3f4b4ce68e1f57648aa0f03845d1bbf324eb7b86c67f60ed59df4489294c61edd0e16f80e951e2e0c482e3ae64e449b2d3aaf5349d71f843d78c2a0
+AUX nemiver-0.9.6-fix-build.patch 1123 SHA256 e26a2802c2dfa85f370f09a9229e25964b39a455d2d7953e18cf9c6ece41725f SHA512 8a4041ea5609af8805da4fd0717cc2c3e38ef3201ca4c0ae5dc9ede193223bc47424bb0590bd90845e758f271c1001140af438b791a2b53c5ee0ec319e70ea9f WHIRLPOOL 423853f9c4edb1c1b9dec880d7f9e10c1368b9b25e0b0abe23e7b9072e4617ff470d3b3ad27cce15d4fcabf5a5bb2cde061845a6cefdd72f566e5b7eec9a5056
+AUX nemiver-0.9.6-gcc6-throw-in-dtors.patch 1734 SHA256 bfd4d084ea71aeae1a91f64da11a7e828bc4881b2ddb6ad378bcbd8e2c0ae179 SHA512 329c4ba78849fad8b20dba77cf66eca1994532946adb75583e19caa24da9360b50072d8ee9affac18aac65f245a96a911d783434d40ba23cee22a03dba3080cc WHIRLPOOL b245d5c88d5684f758d091109e090a9cddcf2e17f2c24d8dc5c074276e0cc5e913f718e79587a7644d5f5dc49c9ee6a007958a033f812f22f1c99579949ab2c2
+DIST nemiver-0.9.6.tar.xz 1427660 SHA256 85ab8cf6c4f83262f441cb0952a6147d075c3c53d0687389a3555e946b694ef2 SHA512 6fd941975af6e9ba98d7100daf8205f8b61f75ccde4aaf30145a4e2beafe1b96b14ab70d22db7c258aabc7c1a71d4787aa121bc4e943b3fc310e00c13feb4f21 WHIRLPOOL 4c0897901f54467ea9cd49167a528631500b97d590811c554346cac7a54e21bdc68fe671717cdfd8c28f41fa9d0fa2ef2b5e29de0066ec561439462eed35eef1
+EBUILD nemiver-0.9.6.ebuild 1407 SHA256 0dbebb25a20848c5d27226b8c025c14b577d23ace8ed90d6d4db398250f52888 SHA512 7d332099a32235f626e819ab70d81965ac202b0100e8cb7fa130d65b525257e6f28936640192e300544876482e2a1abb0ea9c44482cc6529eb85765b020ef3f8 WHIRLPOOL c0f2c8789a3c28b6dd812f3331aad090b892b6bb2933f6f9e316ed87ade7ce97d8a51640c7ed2bedd7e32cc5521cd8e26253e3efe3e15565f6ac423b4b9d7e46
+MISC ChangeLog 3694 SHA256 0fe2df2dd7c546c122514d44f28c255ba8ba7d5b11e2940c23396793d71d9195 SHA512 216c5c6970170166609906afea1b8778e16cf6728243444d244ce5897b9500ac3ef01b18b7f270b1374a2df5cb7e6550f069c16d5064b612336c2025ba12004d WHIRLPOOL 89a8198d35cb31bbd4dc0de510d2c801544c7652f2de510593d1e1cbb5e3e477c390d9f3f846ef74458951afdc0e9649ce551002cb734f5c500fab554b23eafc
+MISC ChangeLog-2015 7995 SHA256 4d48387b3c9bd63f13f78749ea5b7e7b7f5146ee778893680afb241760b585cc SHA512 4846db01710fd97f44240de375445c420382051306de01cc9a7a7a0e8bddf5462026ccbd4acd1b8bb6302b6cca27692bcac6a9eaf96217d4ab14009ae75b70f5 WHIRLPOOL ce0866232d74741402104f367ac008e7ef5a274e525b1ad7342da2a6dce935f8d313a8aaef5fa3c86291ae88f97d415f61dfb094ac2f742588259892820e4bdc
+MISC metadata.xml 560 SHA256 092b3e0f60274fe324c96cad7302ae09314b5abe74260e6293d43c795e64af37 SHA512 57946391e99389c2e7287285c61f16eca71b6642beef53a06a6a884ae35e7337d56d16255f2e7c4e23e62b42cac5bf2a219c18c65efd71c2a2f50d1700979158 WHIRLPOOL 02dbf65f8742fe3f5b946c40ddbc6f358ffa24b9e625b5dbb55d4c55744a666eab3acf53d8020fd08a31a833a2476429e45d5c56b1108c339ec39f7be834d454
diff --git a/dev-util/nemiver/files/nemiver-0.9.6-bool-build.patch b/dev-util/nemiver/files/nemiver-0.9.6-bool-build.patch
new file mode 100644
index 000000000000..dac65a8a4cc0
--- /dev/null
+++ b/dev-util/nemiver/files/nemiver-0.9.6-bool-build.patch
@@ -0,0 +1,36 @@
+From 262cf9657f9c2727a816972b348692adcc666008 Mon Sep 17 00:00:00 2001
+From: Marcin Kolny <marcin.kolny@gmail.com>
+Date: Fri, 1 Jul 2016 19:45:05 +0200
+Subject: Use RefPtr::bool() operator in the conditions
+
+Since bool() operator in RefPtr class is explicit,
+comparision with integer doesn't compile.
+---
+ src/persp/dbgperspective/nmv-dbg-perspective.cc | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/persp/dbgperspective/nmv-dbg-perspective.cc b/src/persp/dbgperspective/nmv-dbg-perspective.cc
+index be652db..ac207e4 100644
+--- a/src/persp/dbgperspective/nmv-dbg-perspective.cc
++++ b/src/persp/dbgperspective/nmv-dbg-perspective.cc
+@@ -5672,7 +5672,7 @@ DBGPerspective::switch_to_asm (const common::DisassembleInfo &a_info,
+ a_source_editor->clear_decorations ();
+
+ Glib::RefPtr<Gsv::Buffer> asm_buf;
+- if ((asm_buf = a_source_editor->get_assembly_source_buffer ()) == 0) {
++ if (!(asm_buf = a_source_editor->get_assembly_source_buffer ())) {
+ SourceEditor::setup_buffer_mime_and_lang (asm_buf, "text/x-asm");
+ a_source_editor->register_assembly_source_buffer (asm_buf);
+ asm_buf = a_source_editor->get_assembly_source_buffer ();
+@@ -5720,7 +5720,7 @@ DBGPerspective::switch_to_source_code ()
+
+ Glib::RefPtr<Gsv::Buffer> source_buf;
+ UString source_path;
+- if ((source_buf = source_editor->get_non_assembly_source_buffer ()) == 0) {
++ if (!(source_buf = source_editor->get_non_assembly_source_buffer ())) {
+ // Woops!
+ // We don't have any source code buffer. Let's try hard to get
+ // the source code corresponding to the current frame. For that,
+--
+cgit v0.12
+
diff --git a/dev-util/nemiver/files/nemiver-0.9.6-fix-build.patch b/dev-util/nemiver/files/nemiver-0.9.6-fix-build.patch
new file mode 100644
index 000000000000..59a893ad003a
--- /dev/null
+++ b/dev-util/nemiver/files/nemiver-0.9.6-fix-build.patch
@@ -0,0 +1,39 @@
+From e0e42221ceb77d88be64fac1c09792dc5c9e2f43 Mon Sep 17 00:00:00 2001
+From: Ben Iofel <iofelben@gmail.com>
+Date: Thu, 17 Mar 2016 18:28:02 -0400
+Subject: Fix compiliation warnings & errors
+
+---
+ src/dbgengine/nmv-dbg-common.h | 2 +-
+ src/dbgengine/nmv-i-var-list-walker.h | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/dbgengine/nmv-dbg-common.h b/src/dbgengine/nmv-dbg-common.h
+index ad3cc00..0edac7c 100644
+--- a/src/dbgengine/nmv-dbg-common.h
++++ b/src/dbgengine/nmv-dbg-common.h
+@@ -171,7 +171,7 @@ public:
+
+ bool has_slot () const
+ {
+- return m_slot;
++ return static_cast<bool> (m_slot);
+ }
+
+ template<class T>
+diff --git a/src/dbgengine/nmv-i-var-list-walker.h b/src/dbgengine/nmv-i-var-list-walker.h
+index b719c0d..f2f3229 100644
+--- a/src/dbgengine/nmv-i-var-list-walker.h
++++ b/src/dbgengine/nmv-i-var-list-walker.h
+@@ -22,7 +22,7 @@
+ *
+ *See COPYRIGHT file copyright information.
+ */
+-#ifndef __NMV_VAR_LIST_WALKER_H__
++#ifndef __NMV_I_VAR_LIST_WALKER_H__
+ #define __NMV_I_VAR_LIST_WALKER_H__
+
+ #include "nmv-i-var-walker.h"
+--
+cgit v0.12
+
diff --git a/dev-util/nemiver/files/nemiver-0.9.6-gcc6-throw-in-dtors.patch b/dev-util/nemiver/files/nemiver-0.9.6-gcc6-throw-in-dtors.patch
new file mode 100644
index 000000000000..91d90961cb4a
--- /dev/null
+++ b/dev-util/nemiver/files/nemiver-0.9.6-gcc6-throw-in-dtors.patch
@@ -0,0 +1,73 @@
+Bug: https://bugs.gentoo.org/602436
+Upstream PR: https://github.com/GNOME/nemiver/pull/3
+
+--- a/src/common/nmv-api-macros.h
++++ b/src/common/nmv-api-macros.h
+@@ -52,5 +52,12 @@
+ # define NEMIVER_PURE_IFACE
+ # define NEMIVER_API
+ # endif //HAS_GCC_VISIBILITY_SUPPORT
++
++# if __cplusplus >= 201103L
++# define DTOR_NOEXCEPT noexcept(false)
++# else
++# define DTOR_NOEXCEPT
++# endif //__cplusplus >= 201103L
++
+ #endif
+
+--- a/src/common/nmv-log-stream.cc
++++ b/src/common/nmv-log-stream.cc
+@@ -393,7 +393,7 @@
+ }
+ }
+
+-LogStream::~LogStream ()
++LogStream::~LogStream () DTOR_NOEXCEPT
+ {
+ LOG_D ("delete", "destructor-domain");
+ if (!m_priv) throw runtime_error ("double free in LogStrea::~LogStream");
+--- a/src/common/nmv-log-stream.h
++++ b/src/common/nmv-log-stream.h
+@@ -151,7 +151,7 @@
+ const string &a_default_domain=NMV_GENERAL_DOMAIN);
+
+ /// \brief destructor of the log stream class
+- virtual ~LogStream ();
++ virtual ~LogStream () DTOR_NOEXCEPT;
+
+ /// \brief enable or disable logging for a domain
+ /// \param a_domain the domain to enable logging for
+--- a/src/common/nmv-object.cc
++++ b/src/common/nmv-object.cc
+@@ -68,7 +68,7 @@
+ return *this;
+ }
+
+-Object::~Object ()
++Object::~Object () DTOR_NOEXCEPT
+ {
+ }
+
+--- a/src/common/nmv-object.h
++++ b/src/common/nmv-object.h
+@@ -54,7 +54,7 @@
+
+ Object& operator= (Object const&);
+
+- virtual ~Object ();
++ virtual ~Object () DTOR_NOEXCEPT;
+
+ void ref ();
+
+--- a/src/common/nmv-transaction.h
++++ b/src/common/nmv-transaction.h
+@@ -116,7 +116,7 @@
+ return m_trans;
+ }
+
+- ~TransactionAutoHelper ()
++ ~TransactionAutoHelper () DTOR_NOEXCEPT
+ {
+ if (m_ignore) {
+ return;
diff --git a/dev-util/nemiver/metadata.xml b/dev-util/nemiver/metadata.xml
new file mode 100644
index 000000000000..c61ba4c696b8
--- /dev/null
+++ b/dev-util/nemiver/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="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+ </maintainer>
+ <longdescription>
+ Nemiver is an on going effort to write an easy to use standalone C/C++
+ debugger that integrates well in the GNOME environment.
+ </longdescription>
+ <use>
+ <flag name="memoryview">Enable the optional hexadecimal memory inspection
+ with <pkg>app-editors/ghex</pkg>.</flag>
+ </use>
+</pkgmetadata>
diff --git a/dev-util/nemiver/nemiver-0.9.6.ebuild b/dev-util/nemiver/nemiver-0.9.6.ebuild
new file mode 100644
index 000000000000..b5d54807fe31
--- /dev/null
+++ b/dev-util/nemiver/nemiver-0.9.6.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+GNOME2_LA_PUNT="yes"
+
+inherit eutils gnome2
+
+DESCRIPTION="A gtkmm front end to the GNU Debugger (gdb)"
+HOMEPAGE="https://wiki.gnome.org/Apps/Nemiver"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="debug memoryview"
+
+RDEPEND="
+ >=dev-libs/glib-2.16:2[dbus]
+ >=dev-cpp/glibmm-2.30:2
+ >=dev-cpp/gtkmm-3:3.0
+ >=dev-cpp/gtksourceviewmm-3:3.0
+ >=gnome-base/gsettings-desktop-schemas-0.0.1
+ >=gnome-base/libgtop-2.19
+ x11-libs/vte:2.91
+ >=dev-db/sqlite-3:3
+ sys-devel/gdb
+ dev-libs/boost
+ memoryview? ( >=app-editors/ghex-2.90:2 )
+"
+# FIXME: dynamiclayout needs unreleased stable gdlmm:3
+# dynamiclayout? ( >=dev-cpp/gdlmm-3.0:3 )
+DEPEND="${RDEPEND}
+ app-text/docbook-xml-dtd:4.1.2
+ >=dev-util/intltool-0.40
+ dev-util/itstool
+ >=sys-devel/gettext-0.17
+ virtual/pkgconfig
+"
+
+PATCHES=(
+ # Use RefPtr::bool() operator in the conditions, fixed in next
+ # version
+ "${FILESDIR}/${P}-bool-build.patch"
+
+ # Fix compiliation warnings & errors, fixed in next version
+ "${FILESDIR}/${P}-fix-build.patch"
+
+ # Fix building with GCC-6 and CXXFLAGS="-Werror=terminate"
+ "${FILESDIR}/${P}-gcc6-throw-in-dtors.patch"
+)
+
+src_configure() {
+ gnome2_src_configure \
+ --disable-dynamiclayout \
+ --disable-static \
+ --disable-symsvis \
+ --enable-gsettings \
+ $(use_enable debug) \
+ $(use_enable memoryview)
+}
diff --git a/dev-util/netbeans/Manifest b/dev-util/netbeans/Manifest
new file mode 100644
index 000000000000..5ab1d1bf22e3
--- /dev/null
+++ b/dev-util/netbeans/Manifest
@@ -0,0 +1,15 @@
+DIST netbeans-8.0.2-201411181905-src.zip 196585461 SHA256 581f80d3c2e8d87a0f007dd3f358ce0534a0bb2e4b3312cd6c8c7263713bc530 SHA512 9533de5b3c45e4a5b025213dd5602344e16d024e0cdb013f207ac3c7a9d8e63da19279f97910ad136777d75780c620224953f2974070d5c9833d1d6ef3fd427c WHIRLPOOL 2e45e83309743df167ddd1d58068848166d01ef6d9eec99ddf72b9ba7664cb182a04d6420ab03a9270842b3cd9a16a161c1eebb66953ef09158d8d521fb96516
+DIST netbeans-8.0.2-build.xml.patch.bz2 2678 SHA256 cf120f7fd8b4ad40e9abdcb09e7763fd93b4acef04ff0365e18f178706ea83bb SHA512 b61adf29bcb139207241c68513724f352420078583ca5e6d7856a4dd335ad36b7d05311eb6e14ff1c568aaf090de4ca083c32f6db1dec0b6f50d66a388bbedf7 WHIRLPOOL fb4d63329aa450a1b387fa45b59fa3c18d1a1ca8ecf9443111a3056d409a6d928d15dae275e9c564558f4b2abd54cc0f8db2df653ac432d9f58f8ef4dd747dff
+DIST netbeans-8.1-201510222201-src.zip 208692973 SHA256 e8dd9b73304bc7e546150629f7555624b405e8a7af2cd5d616e7a91a0655f463 SHA512 c3ed9e8c9444b1685e3ed7e1a2525d8be43953994aebed962d39f8eae35b6ab0dcab0093b7eeb287e3c74e0620ceded1956ef93205837bb7749db49f53c1c285 WHIRLPOOL 7ff7c3441dbc8f1ebd6f5441c8371ef0ef392f45eef65e06efec3201f417e228fb32879df83ec23ae61898840eadcde43caa66d54182bf3aae2f44c683916268
+DIST netbeans-8.1-build.xml.patch.bz2 2671 SHA256 b5384db6533d41c7d3fdaffd3cd296d156ac99f0a026e3d74c4ac5b5d388a70f SHA512 1dd5dcf02fd81691b0f9c531470379138484dcbc271f65ba53a3844a1e697719e47cb98c90f92f92c5980a577d27370efc800297525f62da7211393ea0a18915 WHIRLPOOL c77621b5f4eea9e688d9714be9268d05f7c1e792d9d46d3a082418d8c1cb52c35f76d59f0befddc73f30a0e0e12c0af25b4b31c1cb69b68dd90e48638d7da509
+DIST netbeans-8.2-201609300101-src.zip 217356974 SHA256 5a7141176fe655807f04bdde12073116a77c1844e4ca7a071d95930b7cd7d5ac SHA512 d0499489dcd9383f719209997fd5518ea93ad5c2f727005f074a351a4adc7f8708ebff972a4bff4572e2ba9237b14c7a24b7fb1f89100e33012e14404f0336e7 WHIRLPOOL 378db0807a616205fee2623f1c1ada6284ecfc85badb06d68e56e91fbedbc4f73af3ce6e4e8eb8bdb9504d15cf20cdc2a30d5f9cad0c72329791f1a53803ca0e
+DIST netbeans-8.2-build.xml.patch.bz2 2678 SHA256 d0b395111c04e82aeae2bf99eea17fb5b3275dab92939164602ad27569d73cb2 SHA512 a287681acc0771445f9389b22ca6fd855393c0b9e8885680d13c9157aa37b215162aac6f958d0831dc64a55fc21a391fdee13c3ab9a97ad416929c6a4710b619 WHIRLPOOL 0807ec60843a7e3a232fed52c91303ef47693fcdd364d5e12f2507ea6f073df4b18b0708efc92cce93580d4963cbefb85fa0c3962363542687bdc1e5e73bbb6c
+DIST netbeans-l10n-8.0.1-20141110.tar.bz2 12065358 SHA256 542d325cbc6e0e617f6076e964e37803ec322b6d0ee4724a6d2127f2f480fb24 SHA512 28242dcbe7bcbc6a9abce15dfe6fd6140a275a417d96ff28228315bdc0ce8110ede899a1815e2fdf9115b48221d50cd3ff5b71a15d36316d04d81f66e9c0cac4 WHIRLPOOL 0318caea3463d3f7bb8876774b1cc9467dadd9bc36497a9304ed12900e2fabdc4dcdfec0b9eaee27bb36c39e9caff3743c5a42ad4c3a432205a716832688c4d6
+DIST netbeans-l10n-8.1-20151105.tar.bz2 11945028 SHA256 33e86aa7315021d28fdb64790233327d7599c98bcf3ab9d936b6fe924884325a SHA512 eb3163eaa8add417a0e8ac3ed4923a6e4992a80eaac00a01eed24e0e1ceb8a5cbd308659bcf0e5e1192ac8e84a79ea36744ad6b2589d60891b03b37102e9435d WHIRLPOOL f214a865bfd8c54341fb9d538da6db4d9b24906b0d94b3ee6cbf4a525e8842d28e852febb2f34c4c31f989d1b6baf750480bc2f04d94bcd7a8bdb8c9553ef590
+DIST netbeans-l10n-8.2-20160920.tar.bz2 12723797 SHA256 90d09843d2e0256f3196f4ea2fe9cdfd77d811f366a5d8cf13320cd813c7cc7a SHA512 4ac086e8189d89e7a0b91e7e03352f691f09edf208017062a8fc798e6f54906f1c85112dd2780feefa6a21c8fcb582b91bdd9758f5a90c05cbd2e3042d6c87c3 WHIRLPOOL 1002d7c6769eb9b4c0ae02e6c17ea91a064e7bbf99e151b720967f70a28bad3159fe5804f3c4ece62f7025da661bc717a098883995b0bebbdb7342b685cd475f
+EBUILD netbeans-8.0.2.ebuild 6630 SHA256 6384b8e5c28deef202f94670a36fc7b856e6e2959f2f9b42065815e23f0e4a79 SHA512 15bf79e13db932b452e9268996e8090d1cb6aa0ed78915e1d588ed730081f37aaa46aa7aa8666900cc84f692aaeff33698e220d150282b43d9daf98694e1f4da WHIRLPOOL d6ce3c6495d95be2c031f0c775b725d6cda24b5842131a05552471a2ff67a2f059e6e118f3de5aca58c8daaf947b4ba57ee946305bd7663c37d7168ee86072f3
+EBUILD netbeans-8.1.ebuild 6628 SHA256 a76c41c66f8edfa5a5277cbc71e20eeb12b3d857e68c244051ce9c95f046daf0 SHA512 168e63312b67e04e72657423812a7854c31d61914b7f0b5215253de03c0417532101c9ad9051dbd72de832bf31e1400ef8346132d909448529b5c9d56d23d899 WHIRLPOOL a43f66f68615a0d4430264f31628c20c7d86cbee9a66725426f7806807f8e5f0d9c975d8dc760307969e4d9d1d37df55365777a4993a3cabb22fad7882cbc617
+EBUILD netbeans-8.2.ebuild 6137 SHA256 4637303149ccb6295953ecaef53a5f479c427c4bfe90403f5574d973bc13dd77 SHA512 0fec52feb8f1577de9a9b9e5c37ae4036b10087c4aac648f90c33e07ebcc1c260b2c0e1aee7ab067b5c76a495ad87abb06702cb936e3849e8d732cceb216bdad WHIRLPOOL fb45f79de341fb32147b1ddee84a5795a80c4960ab882fa759a0b9e6076fb8c1bac4fcb1ed3d7b2a23598777f450b6bcfab216f823445e6b59bfbe51ebd933d5
+MISC ChangeLog 3949 SHA256 5fc0a774a711f3e122269667a1a7b0f4c354c5dffa69647e8d34f3a9fe67cd56 SHA512 b7797ab8ed5bfc45251eca78a6e8374fe4cf653f5a0326439c0d4f1604dfeacfdb64f63cfc1e397b07ac858ed495c276ba72eca6403e04dde1e1ebb6ea917bbe WHIRLPOOL 322e66e52d746be12d87e5c89638b8d8e80e1e32607bfaa0e794d65c925706a9d02e48f84095c34d075c27e07ece9d72f44f7ffa3fe8cb48edae10cbd4589068
+MISC ChangeLog-2015 33263 SHA256 eb573b7d83d4081c431c496b3c5860eb43239174bc6d7d81ec5144f607a85eda SHA512 86b09da142928591e3d2944af87c274330e86731e3968644feaf3a08a52287622b3358638f69e9e2bd5fa51daceac76ca7d5ba493007735bb502c39b901bbd98 WHIRLPOOL 4bf32905a550856debfb89aaf551ff031f790ddbac5d77875dc5cadd7be1b846c724b606b6de2a55acb073a66598083ddb216d772596745df024b235af31fd16
+MISC metadata.xml 1290 SHA256 d54b681b8f87f6e87256f8093479a34034d7dd063c053abeb10aea192732fe6a SHA512 10b6897bd10823d399937aaf3e09c1231a6c67072723cea8a9aff002b275b76d74a62260f8416e17cc53bc6a87fa0c19d00cb428ecff4052c1c8e278211ebe70 WHIRLPOOL 5becc9cb059d11ee610f4e5096ea0296c0586c66d92de24396c607dd241b9b87252a6748946dec15dd0174075afdc05e7b1144123a9b099360135e50cd87a14c
diff --git a/dev-util/netbeans/metadata.xml b/dev-util/netbeans/metadata.xml
new file mode 100644
index 000000000000..8834161921f2
--- /dev/null
+++ b/dev-util/netbeans/metadata.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>fordfrog@gentoo.org</email>
+ <name>Miroslav Šulc</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>java@gentoo.org</email>
+ <name>Java</name>
+ </maintainer>
+ <longdescription>
+NetBeans is dedicated to providing rock solid software development products (NetBeans IDE, NetBeans Platform) that address the needs
+of developers, users and the businesses who rely on NetBeans as a basis for their products. NetBeans is also a vibrant community
+where people from just about any country you can think of, have the ability ask questions, give advice, make a wide variety of
+contributions and ultimately share in the success of our products. You will find students on our mailing list, developers from top
+companies and individuals looking to sharpen their skills.
+
+In June of 2000 NetBeans was made Open Source by Sun Microsystems who remains the project sponsor. Today two products exist: the
+NetBeans IDE and NetBeans Platform. Both products are free for commercial and noncommercial use. The source code to both are available
+to anyone, to reuse as they see fit, under the terms of use.
+ </longdescription>
+</pkgmetadata>
diff --git a/dev-util/netbeans/netbeans-8.0.2.ebuild b/dev-util/netbeans/netbeans-8.0.2.ebuild
new file mode 100644
index 000000000000..ffda722d6f7e
--- /dev/null
+++ b/dev-util/netbeans/netbeans-8.0.2.ebuild
@@ -0,0 +1,251 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+inherit eutils java-pkg-2 java-ant-2
+
+DESCRIPTION="Netbeans IDE"
+HOMEPAGE="http://netbeans.org/"
+SLOT="8.0"
+SOURCE_URL="http://download.netbeans.org/netbeans/8.0.2/final/zip/netbeans-8.0.2-201411181905-src.zip"
+PATCHES_URL="https://dev.gentoo.org/~fordfrog/distfiles/netbeans-8.0.2-build.xml.patch.bz2"
+L10N_URL="https://dev.gentoo.org/~fordfrog/distfiles/netbeans-l10n-8.0.1-20141110.tar.bz2"
+ALL_URLS="${SOURCE_URL} ${PATCHES_URL} ${L10N_URL}"
+SRC_URI="l10n_af? ( ${ALL_URLS} )
+ l10n_ar? ( ${ALL_URLS} )
+ l10n_bg? ( ${ALL_URLS} )
+ l10n_ca? ( ${ALL_URLS} )
+ l10n_cs? ( ${ALL_URLS} )
+ l10n_de? ( ${ALL_URLS} )
+ l10n_el? ( ${ALL_URLS} )
+ l10n_es? ( ${ALL_URLS} )
+ l10n_fil? ( ${ALL_URLS} )
+ l10n_fr? ( ${ALL_URLS} )
+ l10n_gl? ( ${ALL_URLS} )
+ l10n_hi? ( ${ALL_URLS} )
+ l10n_id? ( ${ALL_URLS} )
+ l10n_it? ( ${ALL_URLS} )
+ l10n_ja? ( ${ALL_URLS} )
+ l10n_ko? ( ${ALL_URLS} )
+ l10n_lt? ( ${ALL_URLS} )
+ l10n_nl? ( ${ALL_URLS} )
+ l10n_pl? ( ${ALL_URLS} )
+ l10n_pt-BR? ( ${ALL_URLS} )
+ l10n_pt-PT? ( ${ALL_URLS} )
+ l10n_ro? ( ${ALL_URLS} )
+ l10n_ru? ( ${ALL_URLS} )
+ l10n_si? ( ${ALL_URLS} )
+ l10n_sq? ( ${ALL_URLS} )
+ l10n_sr? ( ${ALL_URLS} )
+ l10n_sv? ( ${ALL_URLS} )
+ l10n_ta? ( ${ALL_URLS} )
+ l10n_tr? ( ${ALL_URLS} )
+ l10n_vi? ( ${ALL_URLS} )
+ l10n_zh-CN? ( ${ALL_URLS} )
+ l10n_zh-TW? ( ${ALL_URLS} )
+"
+LICENSE="|| ( CDDL GPL-2-with-linking-exception )"
+KEYWORDS="amd64 x86"
+IUSE_NETBEANS_MODULES="
+ +netbeans_modules_apisupport
+ netbeans_modules_cnd
+ netbeans_modules_dlight
+ netbeans_modules_enterprise
+ netbeans_modules_ergonomics
+ netbeans_modules_extide
+ netbeans_modules_groovy
+ +netbeans_modules_java
+ netbeans_modules_javacard
+ +netbeans_modules_javafx
+ netbeans_modules_mobility
+ netbeans_modules_php
+ +netbeans_modules_profiler
+ netbeans_modules_webcommon
+ +netbeans_modules_websvccommon"
+IUSE_L10N="
+ l10n_af
+ l10n_ar
+ l10n_bg
+ l10n_ca
+ l10n_cs
+ l10n_de
+ l10n_el
+ l10n_es
+ l10n_fil
+ l10n_fr
+ l10n_gl
+ l10n_hi
+ l10n_id
+ l10n_it
+ l10n_ja
+ l10n_ko
+ l10n_lt
+ l10n_nl
+ l10n_pl
+ l10n_pt-BR
+ l10n_pt-PT
+ l10n_ro
+ l10n_ru
+ l10n_si
+ l10n_sq
+ l10n_sr
+ l10n_sv
+ l10n_ta
+ l10n_tr
+ l10n_vi
+ l10n_zh-CN
+ l10n_zh-TW"
+IUSE="doc ${IUSE_NETBEANS_MODULES} ${IUSE_L10N}"
+S="${WORKDIR}"
+
+DEPEND="virtual/jdk:1.7
+ dev-java/javahelp:0"
+RDEPEND=">=virtual/jdk-1.7
+ ~dev-java/netbeans-harness-${PV}
+ ~dev-java/netbeans-ide-${PV}
+ ~dev-java/netbeans-nb-${PV}
+ ~dev-java/netbeans-platform-${PV}
+ netbeans_modules_apisupport? ( ~dev-java/netbeans-apisupport-${PV} )
+ netbeans_modules_cnd? ( ~dev-java/netbeans-cnd-${PV} )
+ netbeans_modules_dlight? ( ~dev-java/netbeans-dlight-${PV} )
+ netbeans_modules_enterprise? ( ~dev-java/netbeans-enterprise-${PV} )
+ netbeans_modules_ergonomics? ( ~dev-java/netbeans-ergonomics-${PV} )
+ netbeans_modules_extide? ( ~dev-java/netbeans-extide-${PV} )
+ netbeans_modules_groovy? ( ~dev-java/netbeans-groovy-${PV} )
+ netbeans_modules_java? ( ~dev-java/netbeans-java-${PV} )
+ netbeans_modules_javacard? ( ~dev-java/netbeans-javacard-${PV} )
+ netbeans_modules_javafx? ( ~dev-java/netbeans-javafx-${PV} )
+ netbeans_modules_mobility? ( ~dev-java/netbeans-mobility-${PV} )
+ netbeans_modules_php? ( ~dev-java/netbeans-php-${PV} )
+ netbeans_modules_profiler? ( ~dev-java/netbeans-profiler-${PV} )
+ netbeans_modules_webcommon? ( ~dev-java/netbeans-webcommon-${PV} )
+ netbeans_modules_websvccommon? ( ~dev-java/netbeans-websvccommon-${PV} )
+ doc? ( ~dev-java/netbeans-javadoc-${PV} )"
+JAVA_PKG_BSFIX="off"
+NBLOCALES=""
+
+pkg_setup() {
+ for lingua in ${IUSE_L10N} ; do
+ local lang=${lingua/l10n_/}
+ lang=${lang/-/_}
+
+ case ${lang} in
+ ar) lang="ar_EG,ar_SA" ;;
+ es) lang="es,es_CO" ;;
+ fil) lang="fil_PH" ;;
+ gl) lang="gl_ES" ;;
+ hi) lang="hi_IN" ;;
+ id) lang="in_ID" ;;
+ nl) lang="nl_BE,nl_NL" ;;
+ ta) lang="ta_IN" ;;
+ esac
+
+ if use ${lingua} ; then
+ if [ -z "${NBLOCALES}" ] ; then
+ NBLOCALES="${lang}"
+ else
+ NBLOCALES="${NBLOCALES},${lang}"
+ fi
+ fi
+ done
+
+ java-pkg-2_pkg_setup
+}
+
+src_unpack() {
+ if [ -n "${NBLOCALES}" ] ; then
+ unpack $(basename ${SOURCE_URL})
+ unpack $(basename ${L10N_URL})
+
+ einfo "Deleting bundled jars..."
+ find -name "*.jar" -type f -delete
+
+ unpack netbeans-8.0.2-build.xml.patch.bz2
+ fi
+}
+
+src_prepare() {
+ if [ -n "${NBLOCALES}" ] ; then
+ einfo "Deleting bundled class files..."
+ find -name "*.class" -type f | xargs rm -vf
+
+ epatch netbeans-8.0.2-build.xml.patch
+
+ # Support for custom patches
+ if [ -n "${NETBEANS80_PATCHES_DIR}" -a -d "${NETBEANS80_PATCHES_DIR}" ] ; then
+ local files=`find "${NETBEANS80_PATCHES_DIR}" -type f`
+
+ if [ -n "${files}" ] ; then
+ einfo "Applying custom patches:"
+
+ for file in ${files} ; do
+ epatch "${file}"
+ done
+ fi
+ fi
+
+ einfo "Symlinking external libraries..."
+ java-pkg_jar-from --build-only --into javahelp/external javahelp jhall.jar jhall-2.0_05.jar
+ fi
+
+ java-pkg-2_src_prepare
+}
+
+src_compile() {
+ if [ -n "${NBLOCALES}" ] ; then
+ einfo "Compiling support for locales: ${NBLOCALES}"
+ eant -f nbbuild/build.xml bootstrap || die
+ eant -Dlocales=${NBLOCALES} -Ddist.dir=../nbbuild/netbeans -Dnbms.dir="" -Dnbms.dist.dir="" \
+ -Dpermit.jdk7.builds=true -f l10n/build.xml build || die
+ fi
+}
+
+src_install() {
+ if [ -n "${NBLOCALES}" ] ; then
+ pushd "${S}"/nbbuild/netbeans >/dev/null || die
+
+ for cluster in apisupport cnd dlight enterprise ergonomics groovy harness ide java javacard javafx mobility php platform profiler webcommon websvccommon ; do
+ if [ -d "${cluster}" ] ; then
+ insinto /usr/share/netbeans-${cluster}-${SLOT}
+ doins -r ${cluster}/*
+ fi
+ done
+
+ if [ -d nb ] ; then
+ insinto /usr/share/netbeans-nb-${SLOT}/nb
+ doins -r nb/*
+ fi
+
+ popd >/dev/null || die
+ fi
+}
+
+pkg_postinst() {
+ if [ -n "${NBLOCALES}" ] ; then
+ einfo "Netbeans automatically starts with the locale you have set in your user profile, if"
+ einfo "the locale is built for Netbeans."
+ einfo "If you want to force specific locale, use --locale argument, for example:"
+ einfo "${PN}-${SLOT} --locale de"
+ einfo "${PN}-${SLOT} --locale pt:BR"
+ fi
+
+ if use l10n_ar ; then
+ einfo
+ einfo "You selected Arabic locale so you can choose either ar:EG or ar:SA variant."
+ fi
+
+ if use l10n_es ; then
+ einfo
+ einfo "You selected Spanish locale so you can choose either es or es:CO variant."
+ fi
+
+ if use l10n_id ; then
+ einfo
+ einfo "You selected Indonesian locale which has locale code in:ID in Netbeans."
+ fi
+
+ if use l10n_nl ; then
+ einfo
+ einfo "You selected Dutch locale so you can choose either nl:BE or nl:NL variant."
+ fi
+}
diff --git a/dev-util/netbeans/netbeans-8.1.ebuild b/dev-util/netbeans/netbeans-8.1.ebuild
new file mode 100644
index 000000000000..06d934837090
--- /dev/null
+++ b/dev-util/netbeans/netbeans-8.1.ebuild
@@ -0,0 +1,251 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+inherit eutils java-pkg-2 java-ant-2
+
+DESCRIPTION="Netbeans IDE"
+HOMEPAGE="http://netbeans.org/"
+SLOT="8.1"
+SOURCE_URL="http://download.netbeans.org/netbeans/8.1/final/zip/netbeans-8.1-201510222201-src.zip"
+PATCHES_URL="https://dev.gentoo.org/~fordfrog/distfiles/netbeans-8.1-build.xml.patch.bz2"
+L10N_URL="https://dev.gentoo.org/~fordfrog/distfiles/netbeans-l10n-8.1-20151105.tar.bz2"
+ALL_URLS="${SOURCE_URL} ${PATCHES_URL} ${L10N_URL}"
+SRC_URI="l10n_af? ( ${ALL_URLS} )
+ l10n_ar? ( ${ALL_URLS} )
+ l10n_bg? ( ${ALL_URLS} )
+ l10n_ca? ( ${ALL_URLS} )
+ l10n_cs? ( ${ALL_URLS} )
+ l10n_de? ( ${ALL_URLS} )
+ l10n_el? ( ${ALL_URLS} )
+ l10n_es? ( ${ALL_URLS} )
+ l10n_fil? ( ${ALL_URLS} )
+ l10n_fr? ( ${ALL_URLS} )
+ l10n_gl? ( ${ALL_URLS} )
+ l10n_hi? ( ${ALL_URLS} )
+ l10n_id? ( ${ALL_URLS} )
+ l10n_it? ( ${ALL_URLS} )
+ l10n_ja? ( ${ALL_URLS} )
+ l10n_ko? ( ${ALL_URLS} )
+ l10n_lt? ( ${ALL_URLS} )
+ l10n_nl? ( ${ALL_URLS} )
+ l10n_pl? ( ${ALL_URLS} )
+ l10n_pt-BR? ( ${ALL_URLS} )
+ l10n_pt-PT? ( ${ALL_URLS} )
+ l10n_ro? ( ${ALL_URLS} )
+ l10n_ru? ( ${ALL_URLS} )
+ l10n_si? ( ${ALL_URLS} )
+ l10n_sq? ( ${ALL_URLS} )
+ l10n_sr? ( ${ALL_URLS} )
+ l10n_sv? ( ${ALL_URLS} )
+ l10n_ta? ( ${ALL_URLS} )
+ l10n_tr? ( ${ALL_URLS} )
+ l10n_vi? ( ${ALL_URLS} )
+ l10n_zh-CN? ( ${ALL_URLS} )
+ l10n_zh-TW? ( ${ALL_URLS} )
+"
+LICENSE="|| ( CDDL GPL-2-with-linking-exception )"
+KEYWORDS="~amd64 ~x86"
+IUSE_NETBEANS_MODULES="
+ +netbeans_modules_apisupport
+ netbeans_modules_cnd
+ netbeans_modules_dlight
+ netbeans_modules_enterprise
+ netbeans_modules_ergonomics
+ netbeans_modules_extide
+ netbeans_modules_groovy
+ +netbeans_modules_java
+ netbeans_modules_javacard
+ +netbeans_modules_javafx
+ netbeans_modules_mobility
+ netbeans_modules_php
+ +netbeans_modules_profiler
+ netbeans_modules_webcommon
+ +netbeans_modules_websvccommon"
+IUSE_L10N="
+ l10n_af
+ l10n_ar
+ l10n_bg
+ l10n_ca
+ l10n_cs
+ l10n_de
+ l10n_el
+ l10n_es
+ l10n_fil
+ l10n_fr
+ l10n_gl
+ l10n_hi
+ l10n_id
+ l10n_it
+ l10n_ja
+ l10n_ko
+ l10n_lt
+ l10n_nl
+ l10n_pl
+ l10n_pt-BR
+ l10n_pt-PT
+ l10n_ro
+ l10n_ru
+ l10n_si
+ l10n_sq
+ l10n_sr
+ l10n_sv
+ l10n_ta
+ l10n_tr
+ l10n_vi
+ l10n_zh-CN
+ l10n_zh-TW"
+IUSE="doc ${IUSE_NETBEANS_MODULES} ${IUSE_L10N}"
+S="${WORKDIR}"
+
+DEPEND=">=virtual/jdk-1.7
+ dev-java/javahelp:0"
+RDEPEND=">=virtual/jdk-1.7
+ ~dev-java/netbeans-harness-${PV}
+ ~dev-java/netbeans-ide-${PV}
+ ~dev-java/netbeans-nb-${PV}
+ ~dev-java/netbeans-platform-${PV}
+ netbeans_modules_apisupport? ( ~dev-java/netbeans-apisupport-${PV} )
+ netbeans_modules_cnd? ( ~dev-java/netbeans-cnd-${PV} )
+ netbeans_modules_dlight? ( ~dev-java/netbeans-dlight-${PV} )
+ netbeans_modules_enterprise? ( ~dev-java/netbeans-enterprise-${PV} )
+ netbeans_modules_ergonomics? ( ~dev-java/netbeans-ergonomics-${PV} )
+ netbeans_modules_extide? ( ~dev-java/netbeans-extide-${PV} )
+ netbeans_modules_groovy? ( ~dev-java/netbeans-groovy-${PV} )
+ netbeans_modules_java? ( ~dev-java/netbeans-java-${PV} )
+ netbeans_modules_javacard? ( ~dev-java/netbeans-javacard-${PV} )
+ netbeans_modules_javafx? ( ~dev-java/netbeans-javafx-${PV} )
+ netbeans_modules_mobility? ( ~dev-java/netbeans-mobility-${PV} )
+ netbeans_modules_php? ( ~dev-java/netbeans-php-${PV} )
+ netbeans_modules_profiler? ( ~dev-java/netbeans-profiler-${PV} )
+ netbeans_modules_webcommon? ( ~dev-java/netbeans-webcommon-${PV} )
+ netbeans_modules_websvccommon? ( ~dev-java/netbeans-websvccommon-${PV} )
+ doc? ( ~dev-java/netbeans-javadoc-${PV} )"
+JAVA_PKG_BSFIX="off"
+NBLOCALES=""
+
+pkg_setup() {
+ for lingua in ${IUSE_L10N} ; do
+ local lang=${lingua/l10n_/}
+ lang=${lang/-/_}
+
+ case ${lang} in
+ ar) lang="ar_EG,ar_SA" ;;
+ es) lang="es,es_CO" ;;
+ fil) lang="fil_PH" ;;
+ gl) lang="gl_ES" ;;
+ hi) lang="hi_IN" ;;
+ id) lang="in_ID" ;;
+ nl) lang="nl_BE,nl_NL" ;;
+ ta) lang="ta_IN" ;;
+ esac
+
+ if use ${lingua} ; then
+ if [ -z "${NBLOCALES}" ] ; then
+ NBLOCALES="${lang}"
+ else
+ NBLOCALES="${NBLOCALES},${lang}"
+ fi
+ fi
+ done
+
+ java-pkg-2_pkg_setup
+}
+
+src_unpack() {
+ if [ -n "${NBLOCALES}" ] ; then
+ unpack $(basename ${SOURCE_URL})
+ unpack $(basename ${L10N_URL})
+
+ einfo "Deleting bundled jars..."
+ find -name "*.jar" -type f -delete
+
+ unpack netbeans-8.1-build.xml.patch.bz2
+ fi
+}
+
+src_prepare() {
+ if [ -n "${NBLOCALES}" ] ; then
+ einfo "Deleting bundled class files..."
+ find -name "*.class" -type f | xargs rm -vf
+
+ epatch netbeans-8.1-build.xml.patch
+
+ # Support for custom patches
+ if [ -n "${NETBEANS9999_PATCHES_DIR}" -a -d "${NETBEANS9999_PATCHES_DIR}" ] ; then
+ local files=`find "${NETBEANS9999_PATCHES_DIR}" -type f`
+
+ if [ -n "${files}" ] ; then
+ einfo "Applying custom patches:"
+
+ for file in ${files} ; do
+ epatch "${file}"
+ done
+ fi
+ fi
+
+ einfo "Symlinking external libraries..."
+ java-pkg_jar-from --build-only --into javahelp/external javahelp jhall.jar jhall-2.0_05.jar
+ fi
+
+ java-pkg-2_src_prepare
+}
+
+src_compile() {
+ if [ -n "${NBLOCALES}" ] ; then
+ einfo "Compiling support for locales: ${NBLOCALES}"
+ eant -f nbbuild/build.xml bootstrap || die
+ eant -Dlocales=${NBLOCALES} -Ddist.dir=../nbbuild/netbeans -Dnbms.dir="" -Dnbms.dist.dir="" \
+ -Dpermit.jdk7.builds=true -f l10n/build.xml build || die
+ fi
+}
+
+src_install() {
+ if [ -n "${NBLOCALES}" ] ; then
+ pushd "${S}"/nbbuild/netbeans >/dev/null || die
+
+ for cluster in apisupport cnd dlight enterprise ergonomics groovy harness ide java javacard javafx mobility php platform profiler webcommon websvccommon ; do
+ if [ -d "${cluster}" ] ; then
+ insinto /usr/share/netbeans-${cluster}-${SLOT}
+ doins -r ${cluster}/*
+ fi
+ done
+
+ if [ -d nb ] ; then
+ insinto /usr/share/netbeans-nb-${SLOT}/nb
+ doins -r nb/*
+ fi
+
+ popd >/dev/null || die
+ fi
+}
+
+pkg_postinst() {
+ if [ -n "${NBLOCALES}" ] ; then
+ einfo "Netbeans automatically starts with the locale you have set in your user profile, if"
+ einfo "the locale is built for Netbeans."
+ einfo "If you want to force specific locale, use --locale argument, for example:"
+ einfo "${PN}-${SLOT} --locale de"
+ einfo "${PN}-${SLOT} --locale pt:BR"
+ fi
+
+ if use l10n_ar ; then
+ einfo
+ einfo "You selected Arabic locale so you can choose either ar:EG or ar:SA variant."
+ fi
+
+ if use l10n_es ; then
+ einfo
+ einfo "You selected Spanish locale so you can choose either es or es:CO variant."
+ fi
+
+ if use l10n_id ; then
+ einfo
+ einfo "You selected Indonesian locale which has locale code in:ID in Netbeans."
+ fi
+
+ if use l10n_nl ; then
+ einfo
+ einfo "You selected Dutch locale so you can choose either nl:BE or nl:NL variant."
+ fi
+}
diff --git a/dev-util/netbeans/netbeans-8.2.ebuild b/dev-util/netbeans/netbeans-8.2.ebuild
new file mode 100644
index 000000000000..71c3e2eafe32
--- /dev/null
+++ b/dev-util/netbeans/netbeans-8.2.ebuild
@@ -0,0 +1,235 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+inherit eutils java-pkg-2 java-ant-2
+
+DESCRIPTION="Netbeans IDE"
+HOMEPAGE="http://netbeans.org/"
+SLOT="8.2"
+SOURCE_URL="http://download.netbeans.org/netbeans/8.2/final/zip/netbeans-8.2-201609300101-src.zip"
+PATCHES_URL="https://dev.gentoo.org/~fordfrog/distfiles/netbeans-8.2-build.xml.patch.bz2"
+L10N_URL="https://dev.gentoo.org/~fordfrog/distfiles/netbeans-l10n-8.2-20160920.tar.bz2"
+ALL_URLS="${SOURCE_URL} ${PATCHES_URL} ${L10N_URL}"
+SRC_URI="l10n_af? ( ${ALL_URLS} )
+ l10n_ar? ( ${ALL_URLS} )
+ l10n_bg? ( ${ALL_URLS} )
+ l10n_ca? ( ${ALL_URLS} )
+ l10n_cs? ( ${ALL_URLS} )
+ l10n_de? ( ${ALL_URLS} )
+ l10n_el? ( ${ALL_URLS} )
+ l10n_es? ( ${ALL_URLS} )
+ l10n_fil? ( ${ALL_URLS} )
+ l10n_fr? ( ${ALL_URLS} )
+ l10n_gl? ( ${ALL_URLS} )
+ l10n_hi? ( ${ALL_URLS} )
+ l10n_id? ( ${ALL_URLS} )
+ l10n_it? ( ${ALL_URLS} )
+ l10n_ja? ( ${ALL_URLS} )
+ l10n_ko? ( ${ALL_URLS} )
+ l10n_lt? ( ${ALL_URLS} )
+ l10n_nl? ( ${ALL_URLS} )
+ l10n_pl? ( ${ALL_URLS} )
+ l10n_pt-BR? ( ${ALL_URLS} )
+ l10n_pt-PT? ( ${ALL_URLS} )
+ l10n_ro? ( ${ALL_URLS} )
+ l10n_ru? ( ${ALL_URLS} )
+ l10n_si? ( ${ALL_URLS} )
+ l10n_sq? ( ${ALL_URLS} )
+ l10n_sr? ( ${ALL_URLS} )
+ l10n_sv? ( ${ALL_URLS} )
+ l10n_ta? ( ${ALL_URLS} )
+ l10n_tr? ( ${ALL_URLS} )
+ l10n_vi? ( ${ALL_URLS} )
+ l10n_zh-CN? ( ${ALL_URLS} )
+ l10n_zh-TW? ( ${ALL_URLS} )
+"
+LICENSE="|| ( CDDL GPL-2-with-linking-exception )"
+KEYWORDS="amd64 ~x86"
+IUSE_NETBEANS_MODULES="
+ +netbeans_modules_apisupport
+ netbeans_modules_cnd
+ netbeans_modules_dlight
+ netbeans_modules_enterprise
+ netbeans_modules_ergonomics
+ netbeans_modules_extide
+ netbeans_modules_groovy
+ +netbeans_modules_java
+ netbeans_modules_javacard
+ +netbeans_modules_javafx
+ netbeans_modules_mobility
+ netbeans_modules_php
+ +netbeans_modules_profiler
+ netbeans_modules_webcommon
+ +netbeans_modules_websvccommon"
+IUSE_L10N="
+ l10n_af
+ l10n_ar
+ l10n_bg
+ l10n_ca
+ l10n_cs
+ l10n_de
+ l10n_el
+ l10n_es
+ l10n_fil
+ l10n_fr
+ l10n_gl
+ l10n_hi
+ l10n_id
+ l10n_it
+ l10n_ja
+ l10n_ko
+ l10n_lt
+ l10n_nl
+ l10n_pl
+ l10n_pt-BR
+ l10n_pt-PT
+ l10n_ro
+ l10n_ru
+ l10n_si
+ l10n_sq
+ l10n_sr
+ l10n_sv
+ l10n_ta
+ l10n_tr
+ l10n_vi
+ l10n_zh-CN
+ l10n_zh-TW"
+IUSE="doc ${IUSE_NETBEANS_MODULES} ${IUSE_L10N}"
+S="${WORKDIR}"
+
+CDEPEND="virtual/jdk:1.8"
+DEPEND="${CDEPEND}
+ dev-java/javahelp:0"
+RDEPEND="${CDEPEND}
+ ~dev-java/netbeans-harness-${PV}
+ ~dev-java/netbeans-ide-${PV}
+ ~dev-java/netbeans-nb-${PV}
+ ~dev-java/netbeans-platform-${PV}
+ netbeans_modules_apisupport? ( ~dev-java/netbeans-apisupport-${PV} )
+ netbeans_modules_cnd? ( ~dev-java/netbeans-cnd-${PV} )
+ netbeans_modules_dlight? ( ~dev-java/netbeans-dlight-${PV} )
+ netbeans_modules_enterprise? ( ~dev-java/netbeans-enterprise-${PV} )
+ netbeans_modules_ergonomics? ( ~dev-java/netbeans-ergonomics-${PV} )
+ netbeans_modules_extide? ( ~dev-java/netbeans-extide-${PV} )
+ netbeans_modules_groovy? ( ~dev-java/netbeans-groovy-${PV} )
+ netbeans_modules_java? ( ~dev-java/netbeans-java-${PV} )
+ netbeans_modules_javacard? ( ~dev-java/netbeans-javacard-${PV} )
+ netbeans_modules_javafx? ( ~dev-java/netbeans-javafx-${PV} )
+ netbeans_modules_mobility? ( ~dev-java/netbeans-mobility-${PV} )
+ netbeans_modules_php? ( ~dev-java/netbeans-php-${PV} )
+ netbeans_modules_profiler? ( ~dev-java/netbeans-profiler-${PV} )
+ netbeans_modules_webcommon? ( ~dev-java/netbeans-webcommon-${PV} )
+ netbeans_modules_websvccommon? ( ~dev-java/netbeans-websvccommon-${PV} )
+ doc? ( ~dev-java/netbeans-javadoc-${PV} )"
+
+JAVA_PKG_BSFIX="off"
+NBLOCALES=""
+
+pkg_setup() {
+ for lingua in ${IUSE_L10N} ; do
+ if use ${lingua} ; then
+ local lang=${lingua/l10n_/}
+ lang=${lang/-/_}
+
+ case ${lang} in
+ ar) lang="ar_EG,ar_SA" ;;
+ es) lang="es,es_CO" ;;
+ fil) lang="fil_PH" ;;
+ gl) lang="gl_ES" ;;
+ hi) lang="hi_IN" ;;
+ id) lang="in_ID" ;;
+ nl) lang="nl_BE,nl_NL" ;;
+ ta) lang="ta_IN" ;;
+ esac
+
+ if [ -z "${NBLOCALES}" ] ; then
+ NBLOCALES="${lang}"
+ else
+ NBLOCALES="${NBLOCALES},${lang}"
+ fi
+ fi
+ done
+
+ java-pkg-2_pkg_setup
+}
+
+src_unpack() {
+ if [ -n "${NBLOCALES}" ] ; then
+ unpack $(basename ${SOURCE_URL})
+ unpack $(basename ${L10N_URL})
+
+ einfo "Deleting bundled jars..."
+ find -name "*.jar" -type f -delete
+
+ unpack netbeans-8.2-build.xml.patch.bz2
+ fi
+}
+
+src_prepare() {
+ if [ -n "${NBLOCALES}" ] ; then
+ einfo "Deleting bundled class files..."
+ find -name "*.class" -type f | xargs rm -vf
+
+ epatch netbeans-8.2-build.xml.patch
+
+ einfo "Symlinking external libraries..."
+ java-pkg_jar-from --build-only --into javahelp/external javahelp jhall.jar jhall-2.0_05.jar
+ fi
+
+ java-pkg-2_src_prepare
+ default
+}
+
+src_compile() {
+ if [ -n "${NBLOCALES}" ] ; then
+ einfo "Compiling support for locales: ${NBLOCALES}"
+ eant -f nbbuild/build.xml bootstrap || die
+ eant -Dlocales=${NBLOCALES} -Ddist.dir=../nbbuild/netbeans -Dnbms.dir="" -Dnbms.dist.dir="" \
+ -Dpermit.jdk7.builds=true -f l10n/build.xml build || die
+ fi
+}
+
+src_install() {
+ if [ -n "${NBLOCALES}" ] ; then
+ pushd "${S}"/nbbuild/netbeans >/dev/null || die
+
+ for cluster in apisupport cnd dlight enterprise ergonomics groovy harness ide java javacard javafx mobility php platform profiler webcommon websvccommon ; do
+ if [ -d "${cluster}" ] ; then
+ insinto /usr/share/netbeans-${cluster}-${SLOT}
+ doins -r ${cluster}/*
+ fi
+ done
+
+ if [ -d nb ] ; then
+ insinto /usr/share/netbeans-nb-${SLOT}/nb
+ doins -r nb/*
+ fi
+
+ popd >/dev/null || die
+
+ make_desktop_entry "netbeans-${SLOT} --locale en" "Netbeans ${PV} en" netbeans-${SLOT} Development
+
+ for lingua in ${IUSE_L10N}; do
+ if use ${lingua} ; then
+ local locales=${lingua/l10n_/}
+ locales=${locales/-/:}
+
+ case ${locales} in
+ ar) lang="ar:EG ar:SA" ;;
+ es) lang="es es:CO" ;;
+ fil) lang="fil:PH" ;;
+ gl) lang="gl:ES" ;;
+ hi) lang="hi:IN" ;;
+ id) lang="in:ID" ;;
+ nl) lang="nl:BE nl:NL" ;;
+ ta) lang="ta:IN" ;;
+ esac
+
+ for locale in ${locales}; do
+ make_desktop_entry "netbeans-${SLOT} --locale ${locale}" "Netbeans ${PV} ${locale}" netbeans-${SLOT} Development
+ done
+ fi
+ done
+ fi
+}
diff --git a/dev-util/ninja/Manifest b/dev-util/ninja/Manifest
new file mode 100644
index 000000000000..7919601f7f11
--- /dev/null
+++ b/dev-util/ninja/Manifest
@@ -0,0 +1,9 @@
+AUX ninja-uclibc.patch 526 SHA256 5864494d956310fbc8abf6d7dd7cd8968eb483a1da046870b943ab6ac76af16a SHA512 180c3390001a6bb49deef4f459d42fd7141a5cf68a7077cfe3b5b1384f7b40911f9e4d871ffce07f51b347deb2c2568c266c5a5d1d113010090cd4f65eebeb6e WHIRLPOOL 6a6e849902348ea0714733baf9ad9e729c99408ac9d8f28c4f6ef9227d4a3747d87ff6e2e6b3fa72c2b8a0d94e4e41ac437e8cf558021897fdd59e75fb5a8e46
+DIST ninja-1.7.2.tar.gz 180611 SHA256 2edda0a5421ace3cf428309211270772dd35a91af60c96f93f90df6bc41b16d9 SHA512 29900d07364d87ad8b9614b82bc1b0afda5ca6522563ab73fb228f206ed6b29b70cf034a3caf5a9b2c0b105d1e076c6b425d93b5d14aa3ca3730d75611212a64 WHIRLPOOL 43623778d3f96a87efb4bfd272075b257ebba3760d315c5650fa74493e2193699401c9b6d35d679e7c5235456d48674ac7e913fe1d45b5b98c2542c3b0a72e44
+DIST ninja-1.8.2.tar.gz 185226 SHA256 86b8700c3d0880c2b44c2ff67ce42774aaf8c28cbf57725cb881569288c1c6f4 SHA512 1650bf9e3eddeb0b0fbb415c2b8e0a7c094421e991fa8139fd77fae0f6ee7ee980b7cf5e98d883c3a884f99abcb06fa26e3980af3a3a5bb6dd655124755782c2 WHIRLPOOL 7afc5a6ba34f5c5b464ed47af8e0b5e50bc02a81beb4e5719e19348d60057e6cd3f156ef20f77646fe883b8becc1298d7998d85f1d8bc07ee6b0bd415a58aa2f
+EBUILD ninja-1.7.2.ebuild 2654 SHA256 f1e1da387aacfe5e7e20a410fccbe936b6b35ddfd81f6cc20d6e994184be5d04 SHA512 715d1473f7515354f0c3f3d8c7017abbf45509c477b1d66f6c4e7cd3d2dac0d85fe68a35feed89c77be4d1d10540039a9966abe35c453d3bb6965709686e0cd3 WHIRLPOOL 998aaf6b6ed4493b74b01dd74a80dcb85a6b4f656b2ef2835db58c0cf5fee418c61422ec41f9aa0462e3e1253be3c15c13f0bf1fa52c6334313f850a5d8f6666
+EBUILD ninja-1.8.2.ebuild 2617 SHA256 b92033b3a4b37c5f5770e3c1c1fb3b379b8c2dc72d78cba37f7640f80dd60096 SHA512 510034c91bc8be87f2e267e3d38ef86f0fe27dc8d2ca634e302b47a1752cd7caa379055f91c493d248693ae5c472ca4987870f0f126b41be0507dd0872ebcce8 WHIRLPOOL 2e0a8b4949f31056d4262d6937dfec1a7c5693d3e42bf1acc8f6c6ebed53ddb0c796bdc5ae27aac69a787022d5c82728d51abcfcca08eb45376bcf901a1e12cc
+EBUILD ninja-9999.ebuild 2617 SHA256 b92033b3a4b37c5f5770e3c1c1fb3b379b8c2dc72d78cba37f7640f80dd60096 SHA512 510034c91bc8be87f2e267e3d38ef86f0fe27dc8d2ca634e302b47a1752cd7caa379055f91c493d248693ae5c472ca4987870f0f126b41be0507dd0872ebcce8 WHIRLPOOL 2e0a8b4949f31056d4262d6937dfec1a7c5693d3e42bf1acc8f6c6ebed53ddb0c796bdc5ae27aac69a787022d5c82728d51abcfcca08eb45376bcf901a1e12cc
+MISC ChangeLog 5535 SHA256 06426d51846a9e0a803d92040f79bfde06554f00ff4999f8311e482d5305b62b SHA512 f2fffa79fb37ee24f392afe8a55e9cdcccf3b91a0191ff0573ca05b6b5e737ae16c367ed33e830ba70590829809f89ff45eff90f9d50bcd1a14b59f73bcabdcf WHIRLPOOL f11e09e4eff52d5b0e76e759005b5d2eed7153d679664bea5cd919dc3ad9515d711dde733da6c8ddeaf57476f341844ad1cafe45971bb32d029ed71e99a6bcea
+MISC ChangeLog-2015 6583 SHA256 bddeb0e9007198ddea2c83fa3d9fedfeaac320a7bcb78d75c7e272d3705f2d44 SHA512 62420fba29520829755b371c15d3e5abda58e62bbfbfef9c5ef81843fbb4053ad50f68c2919ec54ea9d32a1a7ecfd444ddab92a219ef19b8b95b8ef03e016e1f WHIRLPOOL 7819fc4209a88659bc3c1a202453a8d153a81ff78373924c0baff929689c3f1815fd7b9acfea04692fb747e116b4b77fa50aeb88fd0548057022defd6f04e373
+MISC metadata.xml 340 SHA256 d4ea7033a3239b8c560458035ff44cb72a37f69603c88c3e32704bcd6b84291c SHA512 4b78365b98eb9b8a1ef27115261dbf426942cccb7be03c8264e2728e60dedfec8fa51ee3f43488043be5af21b28a74c1c81f4767bcc58574873c2223172447b2 WHIRLPOOL 6003e6562e4f56c68af6818dc4d9e1b58233fbb30b40d0de8d930498a5687d931be5252a536e775d73ec3a99382d3efa4f8f9e04005bedb0b7c767932a4c6843
diff --git a/dev-util/ninja/files/ninja-uclibc.patch b/dev-util/ninja/files/ninja-uclibc.patch
new file mode 100644
index 000000000000..e87eea842722
--- /dev/null
+++ b/dev-util/ninja/files/ninja-uclibc.patch
@@ -0,0 +1,18 @@
+diff --git a/src/util.cc b/src/util.cc
+index e31fd1f..1caa1ce 100644
+--- a/src/util.cc
++++ b/src/util.cc
+@@ -585,6 +585,13 @@ double GetLoadAverage() {
+ // Calculation taken from comment in libperfstats.h
+ return double(cpu_stats.loadavg[0]) / double(1 << SBITS);
+ }
++#elif defined(__UCLIBC__)
++double GetLoadAverage() {
++ struct sysinfo si;
++ if (sysinfo(&si) != 0)
++ return -0.0f;
++ return 1.0 / (1 << SI_LOAD_SHIFT) * si.loads[0];
++}
+ #else
+ double GetLoadAverage() {
+ double loadavg[3] = { 0.0f, 0.0f, 0.0f };
diff --git a/dev-util/ninja/metadata.xml b/dev-util/ninja/metadata.xml
new file mode 100644
index 000000000000..723d554b064c
--- /dev/null
+++ b/dev-util/ninja/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="project">
+ <email>chromium@gentoo.org</email>
+ <name>Chromium in Gentoo Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">martine/ninja</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/ninja/ninja-1.7.2.ebuild b/dev-util/ninja/ninja-1.7.2.ebuild
new file mode 100644
index 000000000000..00220b01643e
--- /dev/null
+++ b/dev-util/ninja/ninja-1.7.2.ebuild
@@ -0,0 +1,131 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+
+inherit bash-completion-r1 elisp-common python-any-r1 toolchain-funcs
+
+if [[ ${PV} == 9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/ninja-build/ninja.git"
+else
+ SRC_URI="https://github.com/ninja-build/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~m68k ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+fi
+
+DESCRIPTION="A small build system similar to make"
+HOMEPAGE="https://ninja-build.org/"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+
+IUSE="doc emacs test vim-syntax zsh-completion"
+
+DEPEND="
+ ${PYTHON_DEPS}
+ dev-util/re2c
+ doc? (
+ app-text/asciidoc
+ app-doc/doxygen
+ dev-libs/libxslt
+ )
+ test? ( dev-cpp/gtest )
+"
+RDEPEND="
+ emacs? ( virtual/emacs )
+ vim-syntax? (
+ || (
+ app-editors/vim
+ app-editors/gvim
+ )
+ )
+ zsh-completion? ( app-shells/zsh )
+ !<net-irc/ninja-1.5.9_pre14-r1" #436804
+
+PATCHES=(
+ "${FILESDIR}/${PN}-uclibc.patch"
+)
+
+run_for_build() {
+ if tc-is-cross-compiler; then
+ local -x AR=$(tc-getBUILD_AR)
+ local -x CXX=$(tc-getBUILD_CXX)
+ local -x CFLAGS=${BUILD_CXXFLAGS}
+ local -x LDFLAGS=${BUILD_LDFLAGS}
+ fi
+ "$@"
+}
+
+src_compile() {
+ tc-export AR CXX
+
+ # configure.py uses CFLAGS instead of CXXFLAGS
+ export CFLAGS=${CXXFLAGS}
+
+ run_for_build "${PYTHON}" configure.py --bootstrap --verbose || die
+
+ if tc-is-cross-compiler; then
+ mv ninja ninja-build || die
+ "${PYTHON}" configure.py || die
+ ./ninja-build -v ninja || die
+ else
+ ln ninja ninja-build || die
+ fi
+
+ if use doc; then
+ ./ninja-build -v doxygen manual || die
+ fi
+
+ if use emacs; then
+ elisp-compile misc/ninja-mode.el || die
+ fi
+}
+
+src_test() {
+ if ! tc-is-cross-compiler; then
+ # Bug 485772
+ ulimit -n 2048
+ ./ninja-build -v ninja_test || die
+ ./ninja_test || die
+ fi
+}
+
+src_install() {
+ dodoc README HACKING.md
+ if use doc; then
+ dohtml -r doc/doxygen/html/*
+ dohtml doc/manual.html
+ fi
+ dobin ninja
+
+ newbashcomp misc/bash-completion "${PN}"
+
+ if use vim-syntax; then
+ insinto /usr/share/vim/vimfiles/syntax/
+ doins misc/"${PN}".vim
+
+ echo 'au BufNewFile,BufRead *.ninja set ft=ninja' > "${T}/${PN}.vim"
+ insinto /usr/share/vim/vimfiles/ftdetect
+ doins "${T}/${PN}.vim"
+ fi
+
+ if use zsh-completion; then
+ insinto /usr/share/zsh/site-functions
+ newins misc/zsh-completion _ninja
+ fi
+
+ if use emacs; then
+ cd misc || die
+ elisp-install ${PN} ninja-mode.el* || die
+ fi
+}
+
+pkg_postinst() {
+ use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}
diff --git a/dev-util/ninja/ninja-1.8.2.ebuild b/dev-util/ninja/ninja-1.8.2.ebuild
new file mode 100644
index 000000000000..4dc6e68bbf61
--- /dev/null
+++ b/dev-util/ninja/ninja-1.8.2.ebuild
@@ -0,0 +1,127 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+
+inherit bash-completion-r1 elisp-common python-any-r1 toolchain-funcs
+
+if [[ ${PV} == 9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/ninja-build/ninja.git"
+else
+ SRC_URI="https://github.com/ninja-build/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+fi
+
+DESCRIPTION="A small build system similar to make"
+HOMEPAGE="https://ninja-build.org/"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+
+IUSE="doc emacs test vim-syntax zsh-completion"
+
+DEPEND="
+ ${PYTHON_DEPS}
+ dev-util/re2c
+ doc? (
+ app-text/asciidoc
+ app-doc/doxygen
+ dev-libs/libxslt
+ )
+ test? ( dev-cpp/gtest )
+"
+RDEPEND="
+ emacs? ( virtual/emacs )
+ vim-syntax? (
+ || (
+ app-editors/vim
+ app-editors/gvim
+ )
+ )
+ zsh-completion? ( app-shells/zsh )
+ !<net-irc/ninja-1.5.9_pre14-r1" #436804
+
+run_for_build() {
+ if tc-is-cross-compiler; then
+ local -x AR=$(tc-getBUILD_AR)
+ local -x CXX=$(tc-getBUILD_CXX)
+ local -x CFLAGS=${BUILD_CXXFLAGS}
+ local -x LDFLAGS=${BUILD_LDFLAGS}
+ fi
+ "$@"
+}
+
+src_compile() {
+ tc-export AR CXX
+
+ # configure.py uses CFLAGS instead of CXXFLAGS
+ export CFLAGS=${CXXFLAGS}
+
+ run_for_build "${PYTHON}" configure.py --bootstrap --verbose || die
+
+ if tc-is-cross-compiler; then
+ mv ninja ninja-build || die
+ "${PYTHON}" configure.py || die
+ ./ninja-build -v ninja || die
+ else
+ ln ninja ninja-build || die
+ fi
+
+ if use doc; then
+ ./ninja-build -v doxygen manual || die
+ fi
+
+ if use emacs; then
+ elisp-compile misc/ninja-mode.el || die
+ fi
+}
+
+src_test() {
+ if ! tc-is-cross-compiler; then
+ # Bug 485772
+ ulimit -n 2048
+ ./ninja-build -v ninja_test || die
+ ./ninja_test || die
+ fi
+}
+
+src_install() {
+ dodoc README HACKING.md
+ if use doc; then
+ dohtml -r doc/doxygen/html/*
+ dohtml doc/manual.html
+ fi
+ dobin ninja
+
+ newbashcomp misc/bash-completion "${PN}"
+
+ if use vim-syntax; then
+ insinto /usr/share/vim/vimfiles/syntax/
+ doins misc/"${PN}".vim
+
+ echo 'au BufNewFile,BufRead *.ninja set ft=ninja' > "${T}/${PN}.vim"
+ insinto /usr/share/vim/vimfiles/ftdetect
+ doins "${T}/${PN}.vim"
+ fi
+
+ if use zsh-completion; then
+ insinto /usr/share/zsh/site-functions
+ newins misc/zsh-completion _ninja
+ fi
+
+ if use emacs; then
+ cd misc || die
+ elisp-install ${PN} ninja-mode.el* || die
+ fi
+}
+
+pkg_postinst() {
+ use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}
diff --git a/dev-util/ninja/ninja-9999.ebuild b/dev-util/ninja/ninja-9999.ebuild
new file mode 100644
index 000000000000..4dc6e68bbf61
--- /dev/null
+++ b/dev-util/ninja/ninja-9999.ebuild
@@ -0,0 +1,127 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+
+inherit bash-completion-r1 elisp-common python-any-r1 toolchain-funcs
+
+if [[ ${PV} == 9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/ninja-build/ninja.git"
+else
+ SRC_URI="https://github.com/ninja-build/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+fi
+
+DESCRIPTION="A small build system similar to make"
+HOMEPAGE="https://ninja-build.org/"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+
+IUSE="doc emacs test vim-syntax zsh-completion"
+
+DEPEND="
+ ${PYTHON_DEPS}
+ dev-util/re2c
+ doc? (
+ app-text/asciidoc
+ app-doc/doxygen
+ dev-libs/libxslt
+ )
+ test? ( dev-cpp/gtest )
+"
+RDEPEND="
+ emacs? ( virtual/emacs )
+ vim-syntax? (
+ || (
+ app-editors/vim
+ app-editors/gvim
+ )
+ )
+ zsh-completion? ( app-shells/zsh )
+ !<net-irc/ninja-1.5.9_pre14-r1" #436804
+
+run_for_build() {
+ if tc-is-cross-compiler; then
+ local -x AR=$(tc-getBUILD_AR)
+ local -x CXX=$(tc-getBUILD_CXX)
+ local -x CFLAGS=${BUILD_CXXFLAGS}
+ local -x LDFLAGS=${BUILD_LDFLAGS}
+ fi
+ "$@"
+}
+
+src_compile() {
+ tc-export AR CXX
+
+ # configure.py uses CFLAGS instead of CXXFLAGS
+ export CFLAGS=${CXXFLAGS}
+
+ run_for_build "${PYTHON}" configure.py --bootstrap --verbose || die
+
+ if tc-is-cross-compiler; then
+ mv ninja ninja-build || die
+ "${PYTHON}" configure.py || die
+ ./ninja-build -v ninja || die
+ else
+ ln ninja ninja-build || die
+ fi
+
+ if use doc; then
+ ./ninja-build -v doxygen manual || die
+ fi
+
+ if use emacs; then
+ elisp-compile misc/ninja-mode.el || die
+ fi
+}
+
+src_test() {
+ if ! tc-is-cross-compiler; then
+ # Bug 485772
+ ulimit -n 2048
+ ./ninja-build -v ninja_test || die
+ ./ninja_test || die
+ fi
+}
+
+src_install() {
+ dodoc README HACKING.md
+ if use doc; then
+ dohtml -r doc/doxygen/html/*
+ dohtml doc/manual.html
+ fi
+ dobin ninja
+
+ newbashcomp misc/bash-completion "${PN}"
+
+ if use vim-syntax; then
+ insinto /usr/share/vim/vimfiles/syntax/
+ doins misc/"${PN}".vim
+
+ echo 'au BufNewFile,BufRead *.ninja set ft=ninja' > "${T}/${PN}.vim"
+ insinto /usr/share/vim/vimfiles/ftdetect
+ doins "${T}/${PN}.vim"
+ fi
+
+ if use zsh-completion; then
+ insinto /usr/share/zsh/site-functions
+ newins misc/zsh-completion _ninja
+ fi
+
+ if use emacs; then
+ cd misc || die
+ elisp-install ${PN} ninja-mode.el* || die
+ fi
+}
+
+pkg_postinst() {
+ use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}
diff --git a/dev-util/numdiff/Manifest b/dev-util/numdiff/Manifest
new file mode 100644
index 000000000000..387444498d5f
--- /dev/null
+++ b/dev-util/numdiff/Manifest
@@ -0,0 +1,4 @@
+AUX numdiff-5.9.0-fix-build-system.patch 6824 SHA256 ccd926061999ac2eed5cf650d558f622bab97a5e6940171ab2517b1fd7239c33 SHA512 4ae5dcb4534b11ed54d3ef8f44b48ec5a20b7c4eb747bd14be9c7ba078c1e3cfbd107a3c1da1dabc4aba5881e1b14e2decef41cce6d4a06e8e5c1a780ccf2818 WHIRLPOOL 0da4e10f18b93264fa7088c79d37fcf5c9b42d0cd41a084dd5086cc59488953d38bc609113e129e9d16acb52bcede535fba2715b437336b5ebdf579173aef5f0
+DIST numdiff-5.9.0.tar.gz 915117 SHA256 87284a117944723eebbf077f857a0a114d818f8b5b54d289d59e73581194f5ef SHA512 7be7aad30afbb2a964046815807be0d9149edd18364660443220ce7032248cf83bf840eaf89e19193c8c68ad075cfa81759301574ed73151526e4eea34d33f86 WHIRLPOOL b3fd89d4d4941dc2097aaef64b4a154618b1fdf6ebe72286f36b52464fd2fe222ae171401923ed96371244a00e584d4030a9c5f3bcfb67e2dc6164a4736406c7
+EBUILD numdiff-5.9.0.ebuild 865 SHA256 956bfd0fa90e0c0af98fdf0503f59bca4e1737e8c66cf6f2228f95be7550545f SHA512 03c04118f5e0e3f30b5cba27e0881646163e8ee62634519682a46446fa7f93df6a5f404328aeaecb9cbd6b2d86d320b07c0e98d161d0b4607fd32de5cbe6497c WHIRLPOOL 4f270e709b45cd6ea088dfa9b2e78ea7ca607a2d5d5ecee4e98e339c33ec08a923afd8d357ae304510d9618991f4d7b8e6282aba12fd715a86aa1d5d1e771fc7
+MISC metadata.xml 728 SHA256 be6c364713f494c43ff56fb5a0146571a8bec42bc17ad7653adbf5a728411b50 SHA512 f3480f48dd59ec51ae287c3a450fded09688865280f3b8e5d61b9b80d5565e75aee5ac9a5b945dd4e4ea00733709961f58e3ca09b793d3e3c1e4642f9bb0fd31 WHIRLPOOL 7eeb3b87f119f6cf0dfd78bd5c61a93636184bc5900444fd251d912258f33c1e488aa12ce1ed8a0e72b5e07510e4aaf6d4ed48c99d4cf8f2ee35bc46f80ae6a6
diff --git a/dev-util/numdiff/files/numdiff-5.9.0-fix-build-system.patch b/dev-util/numdiff/files/numdiff-5.9.0-fix-build-system.patch
new file mode 100644
index 000000000000..5bbeba5f8f9d
--- /dev/null
+++ b/dev-util/numdiff/files/numdiff-5.9.0-fix-build-system.patch
@@ -0,0 +1,166 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -24,7 +24,7 @@
+
+ AC_INIT(Numdiff, 5.9, <ivprimi at libero dot it>, numdiff)
+ AC_CONFIG_SRCDIR(numdiff.h)
+-AC_CONFIG_HEADER(config.h)
++AC_CONFIG_HEADERS(config.h)
+
+ dnl --------------------------------------
+ dnl My own flags
+@@ -82,6 +82,7 @@
+
+ AC_ARG_ENABLE(nls, [ --enable-nls turn on Natural Language Support [default=yes]],
+ , enable_nls=yes)
++AC_SUBST([enable_nls])
+
+ AC_ARG_ENABLE(gmp, [ --enable-gmp turn on use of GNU MP [default=yes]],
+ , enable_gmp=yes)
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -19,18 +19,18 @@
+ prefix =@prefix@
+ exec_prefix =@exec_prefix@
+ bindir =@bindir@
+-docdir =@docdir@
+-localedir =@localedir@
+-infodir =@infodir@
++datarootdir =@datarootdir@
++docdir =@docdir@
++localedir =@localedir@
++infodir =@infodir@
++htmldir =@htmldir@
++pdfdir =@pdfdir@
+ mandir =@mandir@
++man1dir =$(mandir)/man1
+ srcdir =@srcdir@
+ VPATH =@srcdir@
+
+-BINDIR=$(bindir)
+-DOCDIR=$(docdir)/$(PACKAGE)
+-INFODIR=$(infodir)
+-LOCALEDIR=$(localedir)
+-MANDIR=$(mandir)/man1
++enable_nls =@enable_nls@
+
+ CC=@CC@
+ @SET_MAKE@
+@@ -62,7 +62,7 @@
+ HELP2MAN=help2man -s 1 -m "User Commands"
+
+ # flags for the preprocessor:
+-CPPFLAGS =-DPACKAGE="\"$(PACKAGE)\"" -DPACKAGE2="\"$(PACKAGETWO)\"" -DLOCALEDIR="\"$(LOCALEDIR)\"" -I$(srcdir) -I. @CPPFLAGS@
++CPPFLAGS =-DPACKAGE="\"$(PACKAGE)\"" -DPACKAGE2="\"$(PACKAGETWO)\"" -DLOCALEDIR="\"$(localedir)\"" -I$(srcdir) -I. @CPPFLAGS@
+ # flags for the C compiler:
+ CFLAGS =@CFLAGS@
+
+@@ -77,7 +77,7 @@
+ SOURCESONE=$(srcdir)/analyze.c $(srcdir)/arith.c $(srcdir)/bitvector.c $(srcdir)/cmpbuf.c $(srcdir)/cmpfns.c $(srcdir)/error.c $(srcdir)/errors.c $(srcdir)/exitfail.c $(srcdir)/flags.c $(srcdir)/getopt.c $(srcdir)/getopt1.c $(srcdir)/inout.c $(srcdir)/io.c $(srcdir)/linesplit.c $(srcdir)/main.c $(srcdir)/new.c $(srcdir)/number.c $(srcdir)/numutil.c $(srcdir)/options.c $(srcdir)/read_line.c $(srcdir)/setmode.c $(srcdir)/side.c $(srcdir)/thrlist.c $(srcdir)/util.c $(srcdir)/xalloc-die.c $(srcdir)/xmalloc.c
+ OBJECTSTWO=./bitvector.o ./getopt.o ./getopt1.o ./linesplit.o ./ndselect.o
+ SOURCESTWO=$(srcdir)/bitvector.c $(srcdir)/getopt.c $(srcdir)/getopt1.c $(srcdir)/linesplit.c $(srcdir)/ndselect.c $(srcdir)/read_line.c
+-DOCS=$(srcdir)/AUTHORS $(srcdir)/BUGS $(srcdir)/COPYING $(srcdir)/ChangeLog $(srcdir)/INSTALL $(srcdir)/NEWS $(srcdir)/README $(srcdir)/TODO
++DOCS=$(srcdir)/AUTHORS $(srcdir)/BUGS $(srcdir)/ChangeLog $(srcdir)/NEWS $(srcdir)/README $(srcdir)/TODO
+ TEXISRC=$(srcdir)/docs/numdiff.txi
+ FDLTEXI=$(srcdir)/docs/fdl.texi
+ HTMLFILE=$(srcdir)/docs/numdiff.html
+@@ -91,7 +91,7 @@
+ PACKAGETWO_POT=$(srcdir)/po/$(PACKAGETWO)/$(PACKAGETWO).pot
+ PACKAGE_IT=$(srcdir)/po/$(PACKAGE)/it
+ PACKAGETWO_IT=$(srcdir)/po/$(PACKAGETWO)/it
+-IT_LOC_DIR="$(DESTDIR)$(LOCALEDIR)/it/LC_MESSAGES"
++IT_LOC_DIR="$(DESTDIR)$(localedir)/it/LC_MESSAGES"
+
+ GARBAGE=./numdiff.aux ./numdiff.cp ./numdiff.cps ./numdiff.fn ./numdiff.ky ./numdiff.log ./numdiff.pg ./numdiff.toc ./numdiff.tp ./numdiff.vr ./config.log ./config.status ./config.h.in.save ./config.h
+
+@@ -193,48 +193,61 @@
+ # Rules needed by the installation process.
+
+ installdirs: all
+- $(MKDIR) "$(DESTDIR)$(BINDIR)"
+- $(MKDIR) "$(DESTDIR)$(DOCDIR)"
+- $(MKDIR) "$(DESTDIR)$(INFODIR)"
+- $(MKDIR) "$(DESTDIR)$(MANDIR)"
+- $(MKDIR) $(IT_LOC_DIR)
+-
+-install: installdirs html info pdf txt
+- $(INSTALL_PROGRAM) $(PACKAGE) $(PACKAGETWO) "$(DESTDIR)$(BINDIR)"
+- $(INSTALL_DATA) $(DOCS) "$(DESTDIR)$(DOCDIR)"
+- $(INSTALL_DATA) $(MANFILE) "$(DESTDIR)$(MANDIR)"
+- $(INSTALL_DATA) $(MANFILETWO) "$(DESTDIR)$(MANDIR)"
+- $(INSTALL_DATA) $(HTMLFILE) "$(DESTDIR)$(DOCDIR)"
+- $(INSTALL_DATA) $(PDFFILE) "$(DESTDIR)$(DOCDIR)"
+- $(INSTALL_DATA) $(TXTFILE) "$(DESTDIR)$(DOCDIR)"
++ $(MKDIR) "$(DESTDIR)$(bindir)"
++ $(MKDIR) "$(DESTDIR)$(docdir)"
++ $(MKDIR) "$(DESTDIR)$(htmldir)"
++ $(MKDIR) "$(DESTDIR)$(pdfdir)"
++ $(MKDIR) "$(DESTDIR)$(infodir)"
++ $(MKDIR) "$(DESTDIR)$(mandir)"
++ $(MKDIR) "$(DESTDIR)$(man1dir)"
++ if [ $(enable_nls) == yes ]; then \
++ $(MKDIR) "$(DESTDIR)$(localedir)"/it/LC_MESSAGES; \
++ fi
++
++ifeq ($(enable_nls),yes)
++opt_targets = install-nls
++endif
++install: installdirs html info pdf txt $(opt_targets)
++ $(INSTALL_PROGRAM) $(PACKAGE) $(PACKAGETWO) "$(DESTDIR)$(bindir)"
++ $(INSTALL_DATA) $(DOCS) "$(DESTDIR)$(docdir)"
++ $(INSTALL_DATA) $(MANFILE) "$(DESTDIR)$(man1dir)"
++ $(INSTALL_DATA) $(MANFILETWO) "$(DESTDIR)$(man1dir)"
++ $(INSTALL_DATA) $(HTMLFILE) "$(DESTDIR)$(htmldir)"
++ $(INSTALL_DATA) $(PDFFILE) "$(DESTDIR)$(pdfdir)"
++ $(INSTALL_DATA) $(TXTFILE) "$(DESTDIR)$(docdir)"
+ $(POST_INSTALL)
+- $(INSTALL_DATA) $(INFOFILE) "$(DESTDIR)$(INFODIR)"
+- $(INSTALL_DATA) $(INFOFILE).gz "$(DESTDIR)$(INFODIR)"
++ $(INSTALL_DATA) $(INFOFILE) "$(DESTDIR)$(infodir)"
++ $(INSTALL_DATA) $(INFOFILE).gz "$(DESTDIR)$(infodir)"
+ if $(SHELL) -c "$(INSTINFO) --version" \
+ >/dev/null 2>&1; then \
+- $(INSTINFO) --dir-file="$(DESTDIR)$(INFODIR)/dir" "$(DESTDIR)$(INFODIR)/numdiff.info"; \
++ $(INSTINFO) --dir-file="$(DESTDIR)$(infodir)/dir" "$(DESTDIR)$(infodir)/numdiff.info"; \
+ else true; fi
+
+-install-nls: install
++install-nls: installdirs
+ $(INSTALL_DATA) $(PACKAGE_IT).mo $(IT_LOC_DIR)/$(PACKAGE).mo
+ $(INSTALL_DATA) $(PACKAGETWO_IT).mo $(IT_LOC_DIR)/$(PACKAGETWO).mo
+
+ # Rules needed to removed the installed stuff
+
+ uninstall:
+- $(RM) "$(DESTDIR)$(BINDIR)/$(PACKAGE)"
+- $(RM) "$(DESTDIR)$(BINDIR)/$(PACKAGETWO)"
+- $(RM) "$(DESTDIR)$(DOCDIR)"/*
+- $(RMDIR) "$(DESTDIR)$(DOCDIR)"
+- $(INSTINFO) --delete "$(DESTDIR)$(INFODIR)/numdiff.info" "$(DESTDIR)$(INFODIR)/dir"
+- $(RM) "$(DESTDIR)$(INFODIR)/numdiff.info.gz"
+- $(RM) "$(DESTDIR)$(INFODIR)/numdiff.info"
+- $(RM) "$(DESTDIR)$(MANDIR)/$(PACKAGE).1"
+- $(RM) "$(DESTDIR)$(MANDIR)/$(PACKAGETWO).1"
++ $(RM) "$(DESTDIR)$(bindir)/$(PACKAGE)"
++ $(RM) "$(DESTDIR)$(bindir)/$(PACKAGETWO)"
++ $(RM) "$(DESTDIR)$(docdir)"/*
++ $(RMDIR) "$(DESTDIR)$(docdir)"
++ $(RM) "$(DESTDIR)$(htmldir)"/*
++ $(RMDIR) "$(DESTDIR)$(htmldir)"
++ $(RM) "$(DESTDIR)$(pdfdir)"/*
++ $(RMDIR) "$(DESTDIR)$(pdfdir)"
++ $(INSTINFO) --delete "$(DESTDIR)$(infodir)/numdiff.info" "$(DESTDIR)$(infodir)/dir"
++ $(RM) "$(DESTDIR)$(infodir)/numdiff.info.gz"
++ $(RM) "$(DESTDIR)$(infodir)/numdiff.info"
++ $(RM) "$(DESTDIR)$(man1dir)/$(PACKAGE).1"
++ $(RM) "$(DESTDIR)$(man1dir)/$(PACKAGETWO).1"
++ $(RMDIR) "$(DESTDIR)$(mandir)"
+
+ uninstall-nls: uninstall
+- $(FIND) "$(DESTDIR)$(LOCALEDIR)" -name '$(PACKAGE).mo' -exec $(RM) \{\} \;
+- $(FIND) "$(DESTDIR)$(LOCALEDIR)" -name '$(PACKAGETWO).mo' -exec $(RM) \{\} \;
++ $(FIND) "$(DESTDIR)$(localedir)" -name '$(PACKAGE).mo' -exec $(RM) \{\} \;
++ $(FIND) "$(DESTDIR)$(localedir)" -name '$(PACKAGETWO).mo' -exec $(RM) \{\} \;
+
+ # Cleaning rules
+
diff --git a/dev-util/numdiff/metadata.xml b/dev-util/numdiff/metadata.xml
new file mode 100644
index 000000000000..67838213dfc0
--- /dev/null
+++ b/dev-util/numdiff/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>tamiko@gentoo.org</email>
+ <name>Matthias Maier</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>sci@gentoo.org</email>
+ <name>Gentoo Science Project</name>
+ </maintainer>
+ <longdescription>
+ numdiff is a program that can be used to compare putatively similar files
+ line by line and field by field, ignoring small numeric differences
+ or/and different numeric formats. Equivalently, numdiff is a program with
+ the capability to appropriately compare files containing numerical fields
+ (and not only).
+</longdescription>
+</pkgmetadata>
diff --git a/dev-util/numdiff/numdiff-5.9.0.ebuild b/dev-util/numdiff/numdiff-5.9.0.ebuild
new file mode 100644
index 000000000000..223601ad7bf7
--- /dev/null
+++ b/dev-util/numdiff/numdiff-5.9.0.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools
+
+DESCRIPTION="File comparision, ignoring small numeric differences and formats"
+HOMEPAGE="http://www.nongnu.org/numdiff/"
+SRC_URI="http://savannah.nongnu.org/download/numdiff/${P}.tar.gz"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+nls +gmp"
+
+RDEPEND="
+ gmp? ( dev-libs/gmp:0= )
+ nls? ( sys-devel/gettext )
+ !dev-util/ndiff"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-5.9.0-fix-build-system.patch
+)
+
+src_prepare() {
+ default
+ # yes, it really only needs eautoconf, due to the
+ # config.h being hand-written, which would be bulldozered
+ # when running eautoreconf (due to it invoking autoheader)
+ eautoconf
+}
+
+src_configure() {
+ econf \
+ --enable-optimization \
+ $(use_enable gmp) \
+ $(use_enable nls)
+}
diff --git a/dev-util/nvidia-cuda-sdk/Manifest b/dev-util/nvidia-cuda-sdk/Manifest
new file mode 100644
index 000000000000..1a04479f39d0
--- /dev/null
+++ b/dev-util/nvidia-cuda-sdk/Manifest
@@ -0,0 +1,12 @@
+DIST cuda_6.5.19_linux_32.run 81882112 SHA256 9f767f38b84f52c097bec81669f99e4a6c4c9c09b5da1bc09fe49e0f804bc7a6 SHA512 1ce9bd6b472b7e4f1fb181eb340dfcb757714d59a89aaa02146cfe1a97c8ccb7eb7699b4ec823276f277eb4d82d95050eaba17e7ed5fd2e47b9b5d78531c5d4e WHIRLPOOL ac94b4e7f29811b4240623fb69b3c54214e7f0c60a286d899944dbab9da7fd3c122760199a3357667e33879bd48fbf352d5d39029acca6021e7caf21785557ed
+DIST cuda_6.5.19_linux_64.run 982446238 SHA256 5279bc159b72b7445d8aae5f289d24bb4042c35422ef32da68049d8f666d3ff5 SHA512 06854f020a5f72cf4bd714859e6966248ac2f589284113674e869fdaa1254cae27d4101940758ecda5df4724ad3e448a1f6d0c053b6cbc28107750872b6a5797 WHIRLPOOL 6ae8e53719e12997de60ec3688167f3fe33b1145d01217182e39ac386c25b358c8ba6cee45ad6c80e33ef66fd9a511338dce4589f10a31635b8437b6e528fd7a
+DIST cuda_7.5.18_linux.run 1195424633 SHA256 08411d536741075131a1858a68615b8b73c51988e616e83b835e4632eea75eec SHA512 97459dfd124060200f1c43f763e5bce0bea53e35ed4bef72bee6c8ba1c04ecffb8695af11755443513316f91fdb5cb4d35662f7b87bca7e3de85d562d4e49363 WHIRLPOOL 59d186f5e9176db25e5991e8088417ac778953c3ed2f0dcef034968f7ea695c5d4cfea81759ac0f7f1290c3842d9d0339b5b74d2d90ec8b333135aa1b986ca10
+DIST cuda_8.0.44_linux.run 1457082926 SHA256 64dc4ab867261a0d690735c46d7cc9fc60d989da0d69dc04d1714e409cacbdf0 SHA512 1bf9d8e6b853c2a971b8d908a043adc5b11ec7033faed04a773c42680882753f98bc33b46f6b301c24c0f780f74bc237dce5766fc857f1a905e6c1f200728d86 WHIRLPOOL e90fa2088cd70aef2794c1ce2db126d6186bc3c44d14c1cf7cb4a66f889cbb4799485d1d71ab045e2dfaed9bfabcea224ca04b7f97e9bce061ac9fbd31c62fdd
+DIST cuda_8.0.61_375.26_linux.run 1465528129 SHA256 9ceca9c2397f841024e03410bfd6eabfd72b384256fbed1c1e4834b5b0ce9dc4 SHA512 d22303719a9feff64f95bf6a966f1caa2bf0cf8c955e475ce08ce54faa5e098d336c2db223ef0185c1f23b9c52b7d2f81a63515485219cfc016d72bda979248b WHIRLPOOL 650a0e8bc9ad2d0637cd4a82a057bf77e613559d1080a86009f594c73adb8879de62b26dac9d8e3f572806556bf878505382479e596d4ce91929ab94b882489a
+EBUILD nvidia-cuda-sdk-6.5.19.ebuild 3992 SHA256 9ba333c19ea35b959c0b47883293948922222996fd3f7518b39d6ecf38d4c2f1 SHA512 367460c2bc89549774ead4cde22c875ed3df9f8002fdd6666289649c6749295389204a11cd0cd6ab201cb2eed1e43d1cda45aea42b9864c9a7fb5ba813aaa04e WHIRLPOOL a6d471060a563bc2e0c7472af84921fc50674d39889ae45d0cacba53e6655b799036fdd05b6cbfa6e410446ae72557c6d24c5a68b848b10366dd96075a82c858
+EBUILD nvidia-cuda-sdk-7.5.18.ebuild 3568 SHA256 59c7fdef2fc7f32917af8b41ead94049b9fd56dfe1011596d10b8719ffaf87f7 SHA512 199004e748db588de447c71ac2bddb08fdfbbc099a335ecbcd7e57978cc3cbb9cfdd6a87765c6b315cfac067248c133eeff1a98fc2e9d331a138ccb5266a1f7e WHIRLPOOL 2cb71ade48b0b8a2089a55d9798a431ef63ab3ef9b23684da1bda821d666814374fce06f2c8885ce719f1c2aed4f45dc732b89e1d18e87c8237235053d6da646
+EBUILD nvidia-cuda-sdk-8.0.44-r1.ebuild 3757 SHA256 5a141cb188f96e47755a50d896f183cf7026da8a9d06f650d6205abd950c4f79 SHA512 b2270c56dc77e85db6963c01965afb4a85b7acf3790630d955adf0d64d2ca09203c9423285684c99432037c8378dd5856c5ccf4b91a0b364f54c282765c149d9 WHIRLPOOL 47db788b6825dad04a809b100d2d7775ae7110ccd6e5a8ba27f7f6882dcef5f9e9f1970dc50577532c04c09f03864ffaca26378639a6b47f5e366c21c6e8439f
+EBUILD nvidia-cuda-sdk-8.0.61.ebuild 3803 SHA256 8c2e415f4c88eef97c94b503ca61fa0fcfdc1de2ee7f8453be85f2342f420ec4 SHA512 91ed589b1841b6069e24ea8fd12fc55d73c7bca0b33cd6b7b37746fbd3c896ce8224a5622b7750720595d1f36a7daecc3661612148f58e6e6e79028b2a0333fa WHIRLPOOL f5eddd4d4b8990429f3bd55d6250150fff4a8b0687b4f3556b98c73fa8b4d963632e1cdf86352ef34e7a6d3b2108597e5e1965c3a7c1a6b1682fc3e46c1a9144
+MISC ChangeLog 4632 SHA256 302ee13070c9599a7df8923f6bb29cb4841e66c11f1c7adb9da7451f70bb8df1 SHA512 d06821356c8c68c23fdfd14e6d5ffb2263373713db1f8675340049fb1280966e942a8ca6c40ed0cd15a416229d8fff45365a2a2e9f2fb64b30f17303de10fb3e WHIRLPOOL 92907fc9e73251b860e7ee8517c3e35123acc4812e1e13f0e1e8e607bca3f5ac75a0b706610c0ae07daf5d6a5d306b833aff5a5fcacb2cdd6c41c8c4138ca8ae
+MISC ChangeLog-2015 11675 SHA256 db9efe400d5ff1168c942206146c5b6e2d847578d6638b48c8e52d6da2efd1ec SHA512 95089cb719e9817b82e8d36649f0b59ad82ba5df135c0914af45cb7bf246a1523c4746eb7015910fa92e3ddf6368b0e31c5b19d780a90f8bae0fb305849bed24 WHIRLPOOL 0638a4984df55307fb3d008ae05bed7966eebd0814f8eefe113e59f185df0a13e271732cb14e864af5b3b707e718ad805ae3c1a681b6d445934f9f1e5f028924
+MISC metadata.xml 394 SHA256 62e27e2f2871962baa5f68b39db9fa811cf0a60cd43f71513747f1c348c6b947 SHA512 f20a681825a67b16424264661572ef279bade1ff346f846c5fd7e802f6d0c012653f462580ad48a03d333735cfd7525a62efd389c9f42dd6181d51adf0455767 WHIRLPOOL cb72b223e6d133d0eb13a422d5b6b0c76638341d6f44fafee5343c2fe5d62a0a013e8c687e0888033f69aa6bfdbe3c5d81a7d77746b9dea0f87812c84f95481d
diff --git a/dev-util/nvidia-cuda-sdk/metadata.xml b/dev-util/nvidia-cuda-sdk/metadata.xml
new file mode 100644
index 000000000000..9ab4f583a9c4
--- /dev/null
+++ b/dev-util/nvidia-cuda-sdk/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="project">
+ <email>sci@gentoo.org</email>
+ <name>Gentoo Science Project</name>
+ </maintainer>
+ <use>
+ <flag name="opencl">
+ Build OpenCL binaries.
+ </flag>
+ <flag name="cuda">
+ Build CUDA binaries.
+ </flag>
+ </use>
+</pkgmetadata>
diff --git a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-6.5.19.ebuild b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-6.5.19.ebuild
new file mode 100644
index 000000000000..f48ac080ba5f
--- /dev/null
+++ b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-6.5.19.ebuild
@@ -0,0 +1,156 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cuda eutils flag-o-matic portability toolchain-funcs unpacker versionator
+
+MYD=$(get_version_component_range 1)_$(get_version_component_range 2)
+
+DESCRIPTION="NVIDIA CUDA Software Development Kit"
+HOMEPAGE="http://developer.nvidia.com/cuda"
+CURI="http://developer.download.nvidia.com/compute/cuda/${MYD}/rel/installers"
+SRC_URI="
+ amd64? ( ${CURI}/cuda_${PV}_linux_64.run )
+ x86? ( ${CURI}/cuda_${PV}_linux_32.run )"
+
+LICENSE="CUDPP"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="debug +doc +examples opencl +cuda"
+
+RDEPEND="
+ ~dev-util/nvidia-cuda-toolkit-${PV}
+ media-libs/freeglut
+ examples? (
+ media-libs/freeimage
+ media-libs/glew:0=
+ virtual/mpi
+ >=x11-drivers/nvidia-drivers-340.32[uvm]
+ x86? ( <x11-drivers/nvidia-drivers-346.35[uvm] )
+ )"
+DEPEND="${RDEPEND}"
+
+RESTRICT="test"
+
+S=${WORKDIR}/cuda-samples
+
+QA_EXECSTACK=(
+ opt/cuda/sdk/0_Simple/cdpSimplePrint/cdpSimplePrint
+ opt/cuda/sdk/0_Simple/cdpSimpleQuicksort/cdpSimpleQuicksort
+ opt/cuda/sdk/bin/x86_64/linux/release/cdpSimplePrint
+ opt/cuda/sdk/bin/x86_64/linux/release/cdpSimpleQuicksort
+ )
+
+src_unpack() {
+ unpacker
+ unpacker run_files/cuda-samples*run
+}
+
+pkg_setup() {
+ if use cuda || use opencl; then
+ cuda_pkg_setup
+ fi
+
+ if use x86; then
+ ewarn "Starting with version 6.5 NVIDIA dropped more and more"
+ ewarn "the support for 32bit linux."
+ ewarn "Be aware that bugfixes and new features may not be available."
+ ewarn "https://dev.gentoo.org/~jlec/distfiles/CUDA_Toolkit_Release_Notes.pdf"
+ fi
+}
+
+src_prepare() {
+ export RAWLDFLAGS="$(raw-ldflags)"
+# epatch "${FILESDIR}"/${P}-asneeded.patch
+
+ sed \
+ -e 's:-O2::g' \
+ -e 's:-O3::g' \
+ -e "/LINK/s:gcc:$(tc-getCC) ${LDFLAGS}:g" \
+ -e "/LINK/s:g++:$(tc-getCXX) ${LDFLAGS}:g" \
+ -e "/CC/s:gcc:$(tc-getCC):g" \
+ -e "/GCC/s:g++:$(tc-getCXX):g" \
+ -e "/NVCC /s|\(:=\).*|:= ${EPREFIX}/opt/cuda/bin/nvcc|g" \
+ -e "/ CFLAGS/s|\(:=\)|\1 ${CFLAGS}|g" \
+ -e "/ CXXFLAGS/s|\(:=\)|\1 ${CXXFLAGS}|g" \
+ -e "/NVCCFLAGS/s|\(:=\)|\1 ${NVCCFLAGS} |g" \
+ -e 's:-Wimplicit::g' \
+ -e "s|../../common/lib/linux/\$(OS_ARCH)/libGLEW.a|$(pkg-config --libs glew)|g" \
+ -e "s|../../common/lib/\$(OSLOWER)/libGLEW.a|$(pkg-config --libs glew)|g" \
+ -e "s|../../common/lib/\$(OSLOWER)/\$(OS_ARCH)/libGLEW.a|$(pkg-config --libs glew)|g" \
+ -i $(find . -type f -name "Makefile") || die
+
+# -e "/ALL_LDFLAGS/s|:=|:= ${RAWLDFLAGS} |g" \
+ find common/inc/GL -delete || die
+ find . -type f -name "*\.a" -delete || die
+
+ eapply_user
+}
+
+src_compile() {
+ use examples || return
+ local myopts verbose="verbose=1"
+ use debug && myopts+=" dbg=1"
+ export FAKEROOTKEY=1 # Workaround sandbox issue in #462602
+ emake \
+ cuda-install="${EPREFIX}/opt/cuda" \
+ CUDA_PATH="${EPREFIX}/opt/cuda/" \
+ MPI_GCC=10 \
+ ${myopts} ${verbose}
+}
+
+src_test() {
+ local _dir _subdir
+
+ addwrite /dev/nvidiactl
+ addwrite /dev/nvidia0
+
+ for _dir in {0..9}*; do
+ pushd ${_dir} > /dev/null
+ for _subdir in *; do
+ emake -C ${_subdir} run
+ done
+ popd > /dev/null
+ done
+}
+
+src_install() {
+ local i j f t crap=""
+
+ if use doc; then
+ ebegin "Installing docs ..."
+ treecopy $(find -type f \( -name readme.txt -o -name "*.pdf" \)) "${ED}"/usr/share/doc/${PF}/
+ docompress -x $(find "${ED}"/usr/share/doc/${PF}/ -type f -name readme.txt | sed -e "s:${ED}::")
+ eend
+ fi
+
+ crap+=" *.txt Samples.htm*"
+
+ ebegin "Cleaning before installation..."
+ for i in ${crap}; do
+ if [[ -e ${i} ]]; then
+ find ${i} -delete || die
+ fi
+ done
+ find -type f \( -name "*.o" -o -name "*.pdf" -o -name "readme.txt" \) -delete || die
+ eend
+
+ ebegin "Moving files..."
+ for f in $(find .); do
+ local t="$(dirname ${f})"
+ if [[ ${t/obj\/} != ${t} || ${t##*.} == a ]]; then
+ continue
+ fi
+ if [[ ! -d ${f} ]]; then
+ if [[ -x ${f} ]]; then
+ exeinto /opt/cuda/sdk/${t}
+ doexe ${f}
+ else
+ insinto /opt/cuda/sdk/${t}
+ doins ${f}
+ fi
+ fi
+ done
+ eend
+}
diff --git a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-7.5.18.ebuild b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-7.5.18.ebuild
new file mode 100644
index 000000000000..f3d256ec6cd5
--- /dev/null
+++ b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-7.5.18.ebuild
@@ -0,0 +1,143 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit cuda eutils flag-o-matic portability toolchain-funcs unpacker versionator
+
+MYD=$(get_version_component_range 1-2)
+
+DESCRIPTION="NVIDIA CUDA Software Development Kit"
+HOMEPAGE="https://developer.nvidia.com/cuda-downloads"
+SRC_URI="http://developer.download.nvidia.com/compute/cuda/${MYD}/Prod/local_installers/cuda_${PV}_linux.run"
+
+LICENSE="CUDPP"
+SLOT="0"
+KEYWORDS="~amd64 ~amd64-linux"
+IUSE="debug +doc +examples opencl +cuda"
+
+RDEPEND="
+ ~dev-util/nvidia-cuda-toolkit-${PV}
+ media-libs/freeglut
+ examples? (
+ media-libs/freeimage
+ media-libs/glew:0=
+ virtual/mpi
+ >=x11-drivers/nvidia-drivers-352.39[uvm]
+ )"
+DEPEND="${RDEPEND}"
+
+RESTRICT="test"
+
+S=${WORKDIR}/samples
+
+QA_EXECSTACK=(
+ opt/cuda/sdk/0_Simple/cdpSimplePrint/cdpSimplePrint
+ opt/cuda/sdk/0_Simple/cdpSimpleQuicksort/cdpSimpleQuicksort
+ opt/cuda/sdk/bin/x86_64/linux/release/cdpSimplePrint
+ opt/cuda/sdk/bin/x86_64/linux/release/cdpSimpleQuicksort
+ )
+
+src_unpack() {
+ unpacker
+ unpacker run_files/cuda-samples*run
+}
+
+pkg_setup() {
+ if use cuda || use opencl; then
+ cuda_pkg_setup
+ fi
+}
+
+src_prepare() {
+ export RAWLDFLAGS="$(raw-ldflags)"
+# epatch "${FILESDIR}"/${P}-asneeded.patch
+
+ sed \
+ -e 's:-O2::g' \
+ -e 's:-O3::g' \
+ -e "/LINK/s:gcc:$(tc-getCC) ${LDFLAGS}:g" \
+ -e "/LINK/s:g++:$(tc-getCXX) ${LDFLAGS}:g" \
+ -e "/CC/s:gcc:$(tc-getCC):g" \
+ -e "/GCC/s:g++:$(tc-getCXX):g" \
+ -e "/NVCC /s|\(:=\).*|:= ${EPREFIX}/opt/cuda/bin/nvcc|g" \
+ -e "/ CFLAGS/s|\(:=\)|\1 ${CFLAGS}|g" \
+ -e "/ CXXFLAGS/s|\(:=\)|\1 ${CXXFLAGS}|g" \
+ -e "/NVCCFLAGS/s|\(:=\)|\1 ${NVCCFLAGS} |g" \
+ -e 's:-Wimplicit::g' \
+ -e "s|../../common/lib/linux/\$(OS_ARCH)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
+ -e "s|../../common/lib/\$(OSLOWER)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
+ -e "s|../../common/lib/\$(OSLOWER)/\$(OS_ARCH)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
+ -i $(find . -type f -name "Makefile") || die
+
+# -e "/ALL_LDFLAGS/s|:=|:= ${RAWLDFLAGS} |g" \
+ find common/inc/GL -delete || die
+ find . -type f -name "*\.a" -delete || die
+}
+
+src_compile() {
+ use examples || return
+ local myopts verbose="verbose=1"
+ use debug && myopts+=" dbg=1"
+ export FAKEROOTKEY=1 # Workaround sandbox issue in #462602
+ emake \
+ cuda-install="${EPREFIX}/opt/cuda" \
+ CUDA_PATH="${EPREFIX}/opt/cuda/" \
+ MPI_GCC=10 \
+ ${myopts} ${verbose}
+}
+
+src_test() {
+ local _dir _subdir
+
+ addwrite /dev/nvidiactl
+ addwrite /dev/nvidia0
+
+ for _dir in {0..9}*; do
+ pushd ${_dir} > /dev/null
+ for _subdir in *; do
+ emake -C ${_subdir} run
+ done
+ popd > /dev/null
+ done
+}
+
+src_install() {
+ local i j f t crap=""
+
+ if use doc; then
+ ebegin "Installing docs ..."
+ treecopy $(find -type f \( -name readme.txt -o -name "*.pdf" \)) "${ED}"/usr/share/doc/${PF}/
+ docompress -x $(find "${ED}"/usr/share/doc/${PF}/ -type f -name readme.txt | sed -e "s:${ED}::")
+ eend
+ fi
+
+ crap+=" *.txt Samples.htm*"
+
+ ebegin "Cleaning before installation..."
+ for i in ${crap}; do
+ if [[ -e ${i} ]]; then
+ find ${i} -delete || die
+ fi
+ done
+ find -type f \( -name "*.o" -o -name "*.pdf" -o -name "readme.txt" \) -delete || die
+ eend
+
+ ebegin "Moving files..."
+ for f in $(find .); do
+ local t="$(dirname ${f})"
+ if [[ ${t/obj\/} != ${t} || ${t##*.} == a ]]; then
+ continue
+ fi
+ if [[ ! -d ${f} ]]; then
+ if [[ -x ${f} ]]; then
+ exeinto /opt/cuda/sdk/${t}
+ doexe ${f}
+ else
+ insinto /opt/cuda/sdk/${t}
+ doins ${f}
+ fi
+ fi
+ done
+ eend
+}
diff --git a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-8.0.44-r1.ebuild b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-8.0.44-r1.ebuild
new file mode 100644
index 000000000000..4015cff5dca8
--- /dev/null
+++ b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-8.0.44-r1.ebuild
@@ -0,0 +1,143 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cuda eutils flag-o-matic portability toolchain-funcs unpacker versionator
+
+MYD=$(get_version_component_range 1-2)
+
+DESCRIPTION="NVIDIA CUDA Software Development Kit"
+HOMEPAGE="https://developer.nvidia.com/cuda-zone"
+SRC_URI="https://developer.nvidia.com/compute/cuda/${MYD}/prod/local_installers/cuda_${PV}_linux-run -> cuda_${PV}_linux.run"
+
+LICENSE="CUDPP"
+SLOT="0"
+KEYWORDS="~amd64 ~amd64-linux"
+IUSE="+cuda debug +doc +examples opencl mpi"
+
+RDEPEND="
+ ~dev-util/nvidia-cuda-toolkit-${PV}
+ media-libs/freeglut
+ examples? (
+ media-libs/freeimage
+ media-libs/glew:0=
+ >=x11-drivers/nvidia-drivers-367.44[uvm]
+ mpi? ( virtual/mpi )
+ )"
+DEPEND="${RDEPEND}"
+
+RESTRICT="test"
+
+S=${WORKDIR}/samples
+
+QA_EXECSTACK=(
+ opt/cuda/sdk/0_Simple/cdpSimplePrint/cdpSimplePrint
+ opt/cuda/sdk/0_Simple/cdpSimpleQuicksort/cdpSimpleQuicksort
+ opt/cuda/sdk/bin/x86_64/linux/release/cdpSimplePrint
+ opt/cuda/sdk/bin/x86_64/linux/release/cdpSimpleQuicksort
+ )
+
+src_unpack() {
+ # We first need to unpack the cuda_${PV}_linux.run file
+ # which includes the cuda-samples*run file.
+ unpacker
+ unpacker run_files/cuda-samples*run
+}
+
+pkg_setup() {
+ if use cuda || use opencl; then
+ cuda_pkg_setup
+ fi
+}
+
+src_prepare() {
+ export RAWLDFLAGS="$(raw-ldflags)"
+# epatch "${FILESDIR}"/${P}-asneeded.patch
+
+ local file
+ while IFS="" read -d $'\0' -r file; do
+ sed \
+ -e 's:-O[23]::g' \
+ -e "/LINK/s:gcc:$(tc-getCC) ${LDFLAGS}:g" \
+ -e "/LINK/s:g++:$(tc-getCXX) ${LDFLAGS}:g" \
+ -e "/CC/s:gcc:$(tc-getCC):g" \
+ -e "/GCC/s:g++:$(tc-getCXX):g" \
+ -e "/NVCC /s|\(:=\).*|:= ${EPREFIX}/opt/cuda/bin/nvcc|g" \
+ -e "/ CFLAGS/s|\(:=\)|\1 ${CFLAGS}|g" \
+ -e "/ CXXFLAGS/s|\(:=\)|\1 ${CXXFLAGS}|g" \
+ -e "/NVCCFLAGS/s|\(:=\)|\1 ${NVCCFLAGS} |g" \
+ -e 's:-Wimplicit::g' \
+ -e "s|../../common/lib/linux/\$(OS_ARCH)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
+ -e "s|../../common/lib/\$(OSLOWER)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
+ -e "s|../../common/lib/\$(OSLOWER)/\$(OS_ARCH)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
+ -i "${file}" || die
+ # -e "/ALL_LDFLAGS/s|:=|:= ${RAWLDFLAGS} |g" \
+ done < <(find . -type f -name 'Makefile' -print0)
+
+ rm -rf common/inc/GL || die
+ find . -type f -name '*.a' -delete || die
+
+ eapply_user
+}
+
+src_compile() {
+ use examples || return
+ local myopts=("verbose=1")
+ use debug && myopts+=("dbg=1")
+ export FAKEROOTKEY=1 # Workaround sandbox issue in #462602
+ emake \
+ cuda-install="${EPREFIX}/opt/cuda" \
+ CUDA_PATH="${EPREFIX}/opt/cuda/" \
+ MPI_GCC=10 \
+ "${myopts[@]}"
+}
+
+src_test() {
+ addwrite /dev/nvidiactl
+ addwrite /dev/nvidia0
+
+ local i
+ for i in {0..9}*/*; do
+ emake -C "${i}" run
+ done
+}
+
+src_install() {
+ local f t crap=( *.txt Samples.htm* )
+
+ if use doc; then
+ ebegin "Installing docs ..."
+ while IFS="" read -d $'\0' -r f; do
+ treecopy "${f}" "${ED%/}"/usr/share/doc/${PF}/
+ done < <(find -type f \( -name 'readme.txt' -o -name '*.pdf' \) -print0)
+
+ while IFS="" read -d $'\0' -r f; do
+ docompress -x "${f#${ED%/}}"
+ done < <(find "${ED%/}"/usr/share/doc/${PF}/ -type f -name 'readme.txt' -print0)
+ eend
+ fi
+
+ ebegin "Cleaning before installation..."
+ for f in "${crap[@]}"; do
+ rm -f "${f}" || die
+ done
+ find -type f \( -name '*.o' -o -name '*.pdf' -o -name 'readme.txt' \) -delete || die
+ eend
+
+ ebegin "Moving files..."
+ while IFS="" read -d $'\0' -r f; do
+ t="$(dirname ${f})"
+ if [[ ${t/obj\/} != ${t} || ${t##*.} == a ]]; then
+ continue
+ fi
+ if [[ -x ${f} ]]; then
+ exeinto /opt/cuda/sdk/"${t}"
+ doexe "${f}"
+ else
+ insinto /opt/cuda/sdk/"${t}"
+ doins "${f}"
+ fi
+ done < <(find . -type f -print0)
+ eend
+}
diff --git a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-8.0.61.ebuild b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-8.0.61.ebuild
new file mode 100644
index 000000000000..0f301935641d
--- /dev/null
+++ b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-8.0.61.ebuild
@@ -0,0 +1,144 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cuda eutils flag-o-matic portability toolchain-funcs unpacker versionator
+
+MYD=$(get_version_component_range 1-2)
+DRIVER_PV="375.26"
+
+DESCRIPTION="NVIDIA CUDA Software Development Kit"
+HOMEPAGE="https://developer.nvidia.com/cuda-zone"
+SRC_URI="https://developer.nvidia.com/compute/cuda/${MYD}/Prod2/local_installers/cuda_${PV}_${DRIVER_PV}_linux-run -> cuda_${PV}_${DRIVER_PV}_linux.run"
+
+LICENSE="CUDPP"
+SLOT="0"
+KEYWORDS="~amd64 ~amd64-linux"
+IUSE="+cuda debug +doc +examples opencl mpi"
+
+RDEPEND="
+ ~dev-util/nvidia-cuda-toolkit-${PV}
+ media-libs/freeglut
+ examples? (
+ media-libs/freeimage
+ media-libs/glew:0=
+ >=x11-drivers/nvidia-drivers-375.26[uvm]
+ mpi? ( virtual/mpi )
+ )"
+DEPEND="${RDEPEND}"
+
+RESTRICT="test"
+
+S=${WORKDIR}/samples
+
+QA_EXECSTACK=(
+ opt/cuda/sdk/0_Simple/cdpSimplePrint/cdpSimplePrint
+ opt/cuda/sdk/0_Simple/cdpSimpleQuicksort/cdpSimpleQuicksort
+ opt/cuda/sdk/bin/x86_64/linux/release/cdpSimplePrint
+ opt/cuda/sdk/bin/x86_64/linux/release/cdpSimpleQuicksort
+ )
+
+src_unpack() {
+ # We first need to unpack the cuda_${PV}_linux.run file
+ # which includes the cuda-samples*run file.
+ unpacker
+ unpacker run_files/cuda-samples*run
+}
+
+pkg_setup() {
+ if use cuda || use opencl; then
+ cuda_pkg_setup
+ fi
+}
+
+src_prepare() {
+ export RAWLDFLAGS="$(raw-ldflags)"
+# epatch "${FILESDIR}"/${P}-asneeded.patch
+
+ local file
+ while IFS="" read -d $'\0' -r file; do
+ sed \
+ -e 's:-O[23]::g' \
+ -e "/LINK/s:gcc:$(tc-getCC) ${LDFLAGS}:g" \
+ -e "/LINK/s:g++:$(tc-getCXX) ${LDFLAGS}:g" \
+ -e "/CC/s:gcc:$(tc-getCC):g" \
+ -e "/GCC/s:g++:$(tc-getCXX):g" \
+ -e "/NVCC /s|\(:=\).*|:= ${EPREFIX}/opt/cuda/bin/nvcc|g" \
+ -e "/ CFLAGS/s|\(:=\)|\1 ${CFLAGS}|g" \
+ -e "/ CXXFLAGS/s|\(:=\)|\1 ${CXXFLAGS}|g" \
+ -e "/NVCCFLAGS/s|\(:=\)|\1 ${NVCCFLAGS} |g" \
+ -e 's:-Wimplicit::g' \
+ -e "s|../../common/lib/linux/\$(OS_ARCH)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
+ -e "s|../../common/lib/\$(OSLOWER)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
+ -e "s|../../common/lib/\$(OSLOWER)/\$(OS_ARCH)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
+ -i "${file}" || die
+ # -e "/ALL_LDFLAGS/s|:=|:= ${RAWLDFLAGS} |g" \
+ done < <(find . -type f -name 'Makefile' -print0)
+
+ rm -rf common/inc/GL || die
+ find . -type f -name '*.a' -delete || die
+
+ eapply_user
+}
+
+src_compile() {
+ use examples || return
+ local myopts=("verbose=1")
+ use debug && myopts+=("dbg=1")
+ export FAKEROOTKEY=1 # Workaround sandbox issue in #462602
+ emake \
+ cuda-install="${EPREFIX}/opt/cuda" \
+ CUDA_PATH="${EPREFIX}/opt/cuda/" \
+ MPI_GCC=10 \
+ "${myopts[@]}"
+}
+
+src_test() {
+ addwrite /dev/nvidiactl
+ addwrite /dev/nvidia0
+
+ local i
+ for i in {0..9}*/*; do
+ emake -C "${i}" run
+ done
+}
+
+src_install() {
+ local f t crap=( *.txt Samples.htm* )
+
+ if use doc; then
+ ebegin "Installing docs ..."
+ while IFS="" read -d $'\0' -r f; do
+ treecopy "${f}" "${ED%/}"/usr/share/doc/${PF}/
+ done < <(find -type f \( -name 'readme.txt' -o -name '*.pdf' \) -print0)
+
+ while IFS="" read -d $'\0' -r f; do
+ docompress -x "${f#${ED%/}}"
+ done < <(find "${ED%/}"/usr/share/doc/${PF}/ -type f -name 'readme.txt' -print0)
+ eend
+ fi
+
+ ebegin "Cleaning before installation..."
+ for f in "${crap[@]}"; do
+ rm -f "${f}" || die
+ done
+ find -type f \( -name '*.o' -o -name '*.pdf' -o -name 'readme.txt' \) -delete || die
+ eend
+
+ ebegin "Moving files..."
+ while IFS="" read -d $'\0' -r f; do
+ t="$(dirname ${f})"
+ if [[ ${t/obj\/} != ${t} || ${t##*.} == a ]]; then
+ continue
+ fi
+ if [[ -x ${f} ]]; then
+ exeinto /opt/cuda/sdk/"${t}"
+ doexe "${f}"
+ else
+ insinto /opt/cuda/sdk/"${t}"
+ doins "${f}"
+ fi
+ done < <(find . -type f -print0)
+ eend
+}
diff --git a/dev-util/nvidia-cuda-toolkit/Manifest b/dev-util/nvidia-cuda-toolkit/Manifest
new file mode 100644
index 000000000000..be6113697a85
--- /dev/null
+++ b/dev-util/nvidia-cuda-toolkit/Manifest
@@ -0,0 +1,16 @@
+AUX cuda-config.in 406 SHA256 7271463891ff75dd83f4cb42bb3004d3204243d0e38f9cbd5b4ec4560865496a SHA512 df6d16bd2e800868bdf8401b6f82a387b701ea297ddf6e8feb0daf5222e62a33f156e5f45cf1ee4e1aa51559dfbd56b897c257dae1bb9568e839bf806bfebd5b WHIRLPOOL 4a26ee11d97676827cb01644891fdca495c3373585ddfbb5fab9f988186da384f27482c4be9e27d834036ffa87f7ee19f9ad7da2d8536babe874dda4ff991147
+DIST cuda_6.5.14_linux_32.run 76788277 SHA256 63fa1fe5d013e9944d6c1a3a71768fa4dcb35d6a157c1b06765bb56198c205c5 SHA512 89649ee0f4543b37037b7c8f5ed0b8bd502512afb4d93e3158b3df4786123be05a5288986b5abbfe15c14eb010777d2527b715225bea96a354a898c34e4a2fcc WHIRLPOOL c1094dd84883ef08d91c6eec3634a285496418db1e76b70f449f833dcb01069a620af504b6df7fe2752559688ed1f60f4adda8c97d849d648cba1be0f8196954
+DIST cuda_6.5.14_linux_64.run 972320904 SHA256 f3e527f34f317314fe8fcd8c85f10560729069298c0f73105ba89225db69da48 SHA512 fecca731b86955f5bc7b09d88b02951e3ee5d4b1f1cf5f92658227a029b87cd35d6ac22956a5fa0afe62dcdc57191f1d12bb08c9f7cc05128727cd8455947b1e WHIRLPOOL 0b890771dcca352168fed1b1df9b29504b03f8c29da59cec29914c541283998edf65f5ca6a41362143a2d5d7359822b036894f563c56b39583b1ac4c64e35180
+DIST cuda_6.5.19_linux_32.run 81882112 SHA256 9f767f38b84f52c097bec81669f99e4a6c4c9c09b5da1bc09fe49e0f804bc7a6 SHA512 1ce9bd6b472b7e4f1fb181eb340dfcb757714d59a89aaa02146cfe1a97c8ccb7eb7699b4ec823276f277eb4d82d95050eaba17e7ed5fd2e47b9b5d78531c5d4e WHIRLPOOL ac94b4e7f29811b4240623fb69b3c54214e7f0c60a286d899944dbab9da7fd3c122760199a3357667e33879bd48fbf352d5d39029acca6021e7caf21785557ed
+DIST cuda_6.5.19_linux_64.run 982446238 SHA256 5279bc159b72b7445d8aae5f289d24bb4042c35422ef32da68049d8f666d3ff5 SHA512 06854f020a5f72cf4bd714859e6966248ac2f589284113674e869fdaa1254cae27d4101940758ecda5df4724ad3e448a1f6d0c053b6cbc28107750872b6a5797 WHIRLPOOL 6ae8e53719e12997de60ec3688167f3fe33b1145d01217182e39ac386c25b358c8ba6cee45ad6c80e33ef66fd9a511338dce4589f10a31635b8437b6e528fd7a
+DIST cuda_7.5.18_linux.run 1195424633 SHA256 08411d536741075131a1858a68615b8b73c51988e616e83b835e4632eea75eec SHA512 97459dfd124060200f1c43f763e5bce0bea53e35ed4bef72bee6c8ba1c04ecffb8695af11755443513316f91fdb5cb4d35662f7b87bca7e3de85d562d4e49363 WHIRLPOOL 59d186f5e9176db25e5991e8088417ac778953c3ed2f0dcef034968f7ea695c5d4cfea81759ac0f7f1290c3842d9d0339b5b74d2d90ec8b333135aa1b986ca10
+DIST cuda_8.0.44_linux.run 1457082926 SHA256 64dc4ab867261a0d690735c46d7cc9fc60d989da0d69dc04d1714e409cacbdf0 SHA512 1bf9d8e6b853c2a971b8d908a043adc5b11ec7033faed04a773c42680882753f98bc33b46f6b301c24c0f780f74bc237dce5766fc857f1a905e6c1f200728d86 WHIRLPOOL e90fa2088cd70aef2794c1ce2db126d6186bc3c44d14c1cf7cb4a66f889cbb4799485d1d71ab045e2dfaed9bfabcea224ca04b7f97e9bce061ac9fbd31c62fdd
+DIST cuda_8.0.61_375.26_linux.run 1465528129 SHA256 9ceca9c2397f841024e03410bfd6eabfd72b384256fbed1c1e4834b5b0ce9dc4 SHA512 d22303719a9feff64f95bf6a966f1caa2bf0cf8c955e475ce08ce54faa5e098d336c2db223ef0185c1f23b9c52b7d2f81a63515485219cfc016d72bda979248b WHIRLPOOL 650a0e8bc9ad2d0637cd4a82a057bf77e613559d1080a86009f594c73adb8879de62b26dac9d8e3f572806556bf878505382479e596d4ce91929ab94b882489a
+EBUILD nvidia-cuda-toolkit-6.5.14.ebuild 3818 SHA256 5ef92981e2536f257dc3eb3ca2b531730cc0ee061d4f9e2b7e9f2e13c1a5c187 SHA512 7f73c4e321234f6a19166e6e28719f6c98cecb809f9878ee1182b812e18fcc6f8c29fb2ebd0ed520847f38bfddd6a0bc60fae6b711b75f563ab39a9b322468b2 WHIRLPOOL 31798f88e715e8df1c1731a5173ac5149cd85a46a24f8b6f510dd69ea6f50aade2b3b05dd9ea400e0b6861f59a428f152bf8e6f4bff2f61bb1e95c85de5c02e2
+EBUILD nvidia-cuda-toolkit-6.5.19-r1.ebuild 3844 SHA256 adf2c05e47abb31f1dccbdf44b272b0b1000aa07d6a2109ac0443613f2a03599 SHA512 f40103348972041a9d6c09a8c129b68603ce0fafa29df1fdf6b13014bb97156a44881161d4668beef8af9b77adea9df8034c88d6413a6ac2ad709285f785df79 WHIRLPOOL 6ffa251bfd438e632b8b366cf9df8a209228feb90fa4a9ec1c7f52a48b38326e4c129a02a23c217f77a14c0ae1c5ecf5d8fc99b1407673d23af916874d45df51
+EBUILD nvidia-cuda-toolkit-7.5.18-r2.ebuild 3355 SHA256 6afc12a4389f1cb18a99f677f5697402e80c8e95a3cea089ea71628918644e12 SHA512 4e8070e399766796b1589329db4de04fc0fda0cbd1dc8ec1984b8550f1bc10d490fed7b085066f4419d5cbdf98ea2ae8202b29a9d360fe3b2a3be6e20bc802be WHIRLPOOL 3607a7b7413124e3fc2264e8df5e03c18846dde7910dcccbf41ed9b0e870f0cedbb499acefe7dc1c792d99d92b7e33f3ffdafea0ebf5998b4d0428e480424222
+EBUILD nvidia-cuda-toolkit-8.0.44.ebuild 3311 SHA256 29ce5f153ad4c2b191c993cc8afc236d9bf006a8ba31cbcf5fe6e427ff3bbbdd SHA512 807ac67b141dd390d78ec4e764dc939e993aa3b23c6469dde9e29c62a0ac7bbbd3be4d2425e3a1a9863a813c88c5fe0da37f07d1bb2fc91c0593cab99f8e8a8b WHIRLPOOL d3bc0c46bab61ef38ad51fd66ee65530c2406dd8101fbf8f7e6801a0e882c341014f3580a3482fb9b73280d5c820d2392920e9496b1aa687e1bd6d58426b7570
+EBUILD nvidia-cuda-toolkit-8.0.61.ebuild 3361 SHA256 5d9bcc8c5559be822b2a411db8fe2269eb5f084ece76b2f17ae20327fd4b2269 SHA512 b98d5b85eb4405ba749061b7d228f3e86057592283a36f189eda2f1d859b2e1e55c9c6c1444e9521ac699ab8bb7b6f87a8e2457a5fe5ca85cc13043e59cdeb33 WHIRLPOOL 0dd971e681be1792b2780ff225c66c56287df0c27205c6c22cb42d3a3bde53d10d5bf8f74562252f0c2e45e61c909969f3faf2a9f77835423eabc948ab2e3f03
+MISC ChangeLog 5772 SHA256 2cd55aa9b5068c1bac89fcc24e17e76a2de1c7b33f15ac166be95c66e6a70acd SHA512 114307f8659f3eb6775f23abcadd1a4acd36dcaa4b2e7885e340514103f6c33f4f892f0604810bdc03c81de713b06baf8cd3bf3ef3aebbade1e5c8e4f386e53a WHIRLPOOL 44cc0558a5680392a17a5e05869783b505d6a2bdccefd8f9ef1569f580732414ce66727e32f733de5df71e9c0eb5f3079b910d07d143e7fde7eaef8ad6052e2e
+MISC ChangeLog-2015 2264 SHA256 8cdb76f9a24d4661310a9c9cf79d3a01e42e76c37c8ec5d2938f68da34c49360 SHA512 08c47c4e1533fa261b5c24c32905b8ad77de631ad0c348a508303182fe7afd4d4e011ceef2b395260a3cf261d239a3ba3e19853284cf59521e2c3dbb6994758d WHIRLPOOL 16d1f8807f81357840bccbede120769e850493ac61123b6ab516d6c668b553ddd4d81d61eb9b1a681e01c669cbaf374c1904c2d6d166480cd84e6884dbab7b7b
+MISC metadata.xml 486 SHA256 a7ff0497884c72152b187e808c63ff01109eb7cde39edf77f43c82cdca0d7b3c SHA512 14746574456248d684dc30574c868f4f14ae270c86b6642e7c4aa3ea0918fe7b6cc685323e376d32c8f97879e3fb23a35c4f95185fb44f7b845035b9fcdcc2ac WHIRLPOOL 3205c2685cc3ba2822d5b8208218a19582733ae81811d466936255aaf58c982e6bb4c805fe9468337573b4985f0a845918af82f9f7f0bca9bc8ae0cb090510dd
diff --git a/dev-util/nvidia-cuda-toolkit/files/cuda-config.in b/dev-util/nvidia-cuda-toolkit/files/cuda-config.in
new file mode 100644
index 000000000000..ca0d1d77e107
--- /dev/null
+++ b/dev-util/nvidia-cuda-toolkit/files/cuda-config.in
@@ -0,0 +1,28 @@
+#!/bin/bash
+
+SUPPORT_GCC_VERSIONS_BY_CUDA="CUDA_SUPPORTED_GCC"
+
+_print_help() {
+ cat <<- EOF
+ Usage:
+ $(basename $0) [options]
+
+ -s | --supported Returns by current CUDA supported gcc versions
+ -h | --help Shows this help
+ EOF
+}
+
+case ${1} in
+ -s|--supported)
+ echo "${SUPPORT_GCC_VERSIONS_BY_CUDA}"
+ exit 0
+ ;;
+ -h|--help)
+ _print_help
+ exit -1
+ ;;
+ *)
+ _print_help
+ exit 1
+ ;;
+esac
diff --git a/dev-util/nvidia-cuda-toolkit/metadata.xml b/dev-util/nvidia-cuda-toolkit/metadata.xml
new file mode 100644
index 000000000000..ad6a3973276d
--- /dev/null
+++ b/dev-util/nvidia-cuda-toolkit/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="project">
+ <email>sci@gentoo.org</email>
+ <name>Gentoo Science Project</name>
+ </maintainer>
+ <use>
+ <flag name="profiler">
+ Installs the NVIDIA CUDA visual profiler.
+ </flag>
+ <flag name="debugger">
+ Installs the CUDA debugger.
+ </flag>
+ <flag name="eclipse">Install plugins for eclipse</flag>
+ </use>
+</pkgmetadata>
diff --git a/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-6.5.14.ebuild b/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-6.5.14.ebuild
new file mode 100644
index 000000000000..f9562a7fb37e
--- /dev/null
+++ b/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-6.5.14.ebuild
@@ -0,0 +1,154 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit check-reqs cuda unpacker versionator
+
+MYD=$(get_version_component_range 1)_$(get_version_component_range 2)
+
+DESCRIPTION="NVIDIA CUDA Toolkit (compiler and friends)"
+HOMEPAGE="http://developer.nvidia.com/cuda"
+CURI="http://developer.download.nvidia.com/compute/cuda/${MYD}/rel/installers"
+SRC_URI="
+ amd64? ( ${CURI}/cuda_${PV}_linux_64.run )
+ x86? ( ${CURI}/cuda_${PV}_linux_32.run )"
+
+SLOT="0/${PV}"
+LICENSE="NVIDIA-CUDA"
+KEYWORDS="-* ~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="debugger doc eclipse profiler"
+
+DEPEND=""
+RDEPEND="${DEPEND}
+ <sys-devel/gcc-4.9[cxx]
+ debugger? (
+ sys-libs/libtermcap-compat
+ sys-libs/ncurses[tinfo]
+ )
+ eclipse? ( >=virtual/jre-1.6 )
+ profiler? ( >=virtual/jre-1.6 )
+ amd64? ( >=x11-drivers/nvidia-drivers-340.32[uvm] )
+ x86? ( <x11-drivers/nvidia-drivers-346.35[uvm] )
+ "
+
+S="${WORKDIR}"
+
+QA_PREBUILT="opt/cuda/*"
+
+CHECKREQS_DISK_BUILD="1500M"
+
+pkg_setup() {
+ # We don't like to run cuda_pkg_setup as it depends on us
+ check-reqs_pkg_setup
+
+ if use x86; then
+ ewarn "Starting with version 6.5 NVIDIA dropped more and more"
+ ewarn "the support for 32bit linux."
+ ewarn "Be aware that bugfixes and new features may not be available."
+ ewarn "https://dev.gentoo.org/~jlec/distfiles/CUDA_Toolkit_Release_Notes.pdf"
+ fi
+}
+
+src_unpack() {
+ unpacker
+ unpacker run_files/cuda-linux*.run
+}
+
+src_prepare() {
+ local cuda_supported_gcc
+
+ cuda_supported_gcc="4.7 4.8"
+
+ sed \
+ -e "s:CUDA_SUPPORTED_GCC:${cuda_supported_gcc}:g" \
+ "${FILESDIR}"/cuda-config.in > "${T}"/cuda-config || die
+}
+
+src_install() {
+ local i j
+ local remove="doc jre run_files install-linux.pl "
+ local cudadir=/opt/cuda
+ local ecudadir="${EPREFIX}"${cudadir}
+
+ # dodoc doc/*txt
+ if use doc; then
+ dodoc doc/pdf/*
+ dohtml -r doc/html/*
+ fi
+
+ if use amd64; then
+ mv doc/man/man3/{,cuda-}deprecated.3 || die
+ doman doc/man/man*/*
+ fi
+
+ use debugger || remove+=" bin/cuda-gdb extras/Debugger"
+ ( use profiler || use eclipse ) || remove+=" libnsight"
+ use amd64 || remove+=" cuda-installer.pl"
+
+ if use profiler; then
+ # hack found in install-linux.pl
+ for j in nvvp nsight; do
+ cat > bin/${j} <<- EOF
+ #!${EPREFIX}/bin/sh
+ LD_LIBRARY_PATH=\${LD_LIBRARY_PATH}:${ecudadir}/lib:${ecudadir}/lib64 \
+ UBUNTU_MENUPROXY=0 LIBOVERLAY_SCROLLBAR=0 \
+ ${ecudadir}/lib${j}/${j} -vm ${EPREFIX}/usr/bin/java
+ EOF
+ chmod a+x bin/${j}
+ done
+ else
+ use eclipse || remove+=" libnvvp"
+ remove+=" extras/CUPTI"
+ fi
+
+ for i in ${remove}; do
+ ebegin "Cleaning ${i}..."
+ if [[ -e ${i} ]]; then
+ find ${i} -delete || die
+ eend
+ else
+ eend $1
+ fi
+ done
+
+ dodir ${cudadir}
+ mv * "${ED}"${cudadir} || die
+
+ cat > "${T}"/99cuda <<- EOF
+ PATH=${ecudadir}/bin$(use profiler && echo ":${ecudadir}/libnvvp")
+ ROOTPATH=${ecudadir}/bin
+ LDPATH=${ecudadir}/lib$(use amd64 && echo "64:${ecudadir}/lib")
+ EOF
+ doenvd "${T}"/99cuda
+
+ use profiler && \
+ make_wrapper nvprof "${EPREFIX}"${cudadir}/bin/nvprof "." ${ecudadir}/lib$(use amd64 && echo "64:${ecudadir}/lib")
+
+ dobin "${T}"/cuda-config
+}
+
+pkg_postinst_check() {
+ local a b
+ a="$(version_sort $(cuda-config -s))"; a=( $a )
+ # greatest supported version
+ b=${a[${#a[@]}-1]}
+
+ # if gcc and if not gcc-version is at least greatesst supported
+ if [[ $(tc-getCC) == *gcc* ]] && \
+ ! version_is_at_least $(gcc-version) ${b}; then
+ echo
+ ewarn "gcc >= ${b} will not work with CUDA"
+ ewarn "Make sure you set an earlier version of gcc with gcc-config"
+ ewarn "or append --compiler-bindir= pointing to a gcc bindir like"
+ ewarn "--compiler-bindir=${EPREFIX}/usr/*pc-linux-gnu/gcc-bin/gcc${b}"
+ ewarn "to the nvcc compiler flags"
+ echo
+ fi
+}
+
+pkg_postinst() {
+ if [[ ${MERGE_TYPE} != binary ]]; then
+ pkg_postinst_check
+ fi
+}
diff --git a/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-6.5.19-r1.ebuild b/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-6.5.19-r1.ebuild
new file mode 100644
index 000000000000..b980d663d12f
--- /dev/null
+++ b/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-6.5.19-r1.ebuild
@@ -0,0 +1,156 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit check-reqs cuda unpacker versionator
+
+MYD=$(get_version_component_range 1)_$(get_version_component_range 2)
+
+DESCRIPTION="NVIDIA CUDA Toolkit (compiler and friends)"
+HOMEPAGE="http://developer.nvidia.com/cuda"
+CURI="http://developer.download.nvidia.com/compute/cuda/${MYD}/rel/installers"
+SRC_URI="
+ amd64? ( ${CURI}/cuda_${PV}_linux_64.run )
+ x86? ( ${CURI}/cuda_${PV}_linux_32.run )"
+
+SLOT="0/${PV}"
+LICENSE="NVIDIA-CUDA"
+KEYWORDS="-* ~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="debugger doc eclipse profiler"
+
+DEPEND=""
+RDEPEND="${DEPEND}
+ <sys-devel/gcc-4.9[cxx]
+ debugger? (
+ sys-libs/libtermcap-compat
+ sys-libs/ncurses[tinfo]
+ )
+ eclipse? ( >=virtual/jre-1.6 )
+ profiler? ( >=virtual/jre-1.6 )
+ amd64? ( >=x11-drivers/nvidia-drivers-343.22[uvm] )
+ x86? ( <x11-drivers/nvidia-drivers-346.35[uvm] )
+ "
+
+S="${WORKDIR}"
+
+QA_PREBUILT="opt/cuda/*"
+
+CHECKREQS_DISK_BUILD="1500M"
+
+pkg_setup() {
+ # We don't like to run cuda_pkg_setup as it depends on us
+ check-reqs_pkg_setup
+
+ if use x86; then
+ ewarn "Starting with version 6.5 NVIDIA dropped more and more"
+ ewarn "the support for 32bit linux."
+ ewarn "Be aware that bugfixes and new features may not be available."
+ ewarn "https://dev.gentoo.org/~jlec/distfiles/CUDA_Toolkit_Release_Notes.pdf"
+ fi
+}
+
+src_unpack() {
+ unpacker
+ unpacker run_files/cuda-linux*.run
+}
+
+src_prepare() {
+ local cuda_supported_gcc
+
+ cuda_supported_gcc="4.7 4.8"
+
+ sed \
+ -e "s:CUDA_SUPPORTED_GCC:${cuda_supported_gcc}:g" \
+ "${FILESDIR}"/cuda-config.in > "${T}"/cuda-config || die
+}
+
+src_install() {
+ local i j
+ local remove="doc jre run_files install-linux.pl "
+ local cudadir=/opt/cuda
+ local ecudadir="${EPREFIX}"${cudadir}
+
+ # dodoc doc/*txt
+ if use doc; then
+ dodoc doc/pdf/*
+ dohtml -r doc/html/*
+ fi
+
+ if use amd64; then
+ mv doc/man/man3/{,cuda-}deprecated.3 || die
+ doman doc/man/man*/*
+ fi
+
+ use debugger || remove+=" bin/cuda-gdb extras/Debugger"
+ ( use profiler || use eclipse ) || remove+=" libnsight"
+ use amd64 || remove+=" cuda-installer.pl"
+
+ if use profiler; then
+ # hack found in install-linux.pl
+ for j in nvvp nsight; do
+ cat > bin/${j} <<- EOF
+ #!${EPREFIX}/bin/sh
+ LD_LIBRARY_PATH=\${LD_LIBRARY_PATH}:${ecudadir}/lib:${ecudadir}/lib64 \
+ UBUNTU_MENUPROXY=0 LIBOVERLAY_SCROLLBAR=0 \
+ ${ecudadir}/lib${j}/${j} -vm ${EPREFIX}/usr/bin/java
+ EOF
+ chmod a+x bin/${j}
+ done
+ else
+ use eclipse || remove+=" libnvvp"
+ remove+=" extras/CUPTI"
+ fi
+
+ for i in ${remove}; do
+ ebegin "Cleaning ${i}..."
+ if [[ -e ${i} ]]; then
+ find ${i} -delete || die
+ eend
+ else
+ eend $1
+ fi
+ done
+
+ ln -sf lib lib32 || die
+
+ dodir ${cudadir}
+ mv * "${ED}"${cudadir} || die
+
+ cat > "${T}"/99cuda <<- EOF
+ PATH=${ecudadir}/bin$(use profiler && echo ":${ecudadir}/libnvvp")
+ ROOTPATH=${ecudadir}/bin
+ LDPATH=${ecudadir}/lib$(use amd64 && echo "64:${ecudadir}/lib")
+ EOF
+ doenvd "${T}"/99cuda
+
+ use profiler && \
+ make_wrapper nvprof "${EPREFIX}"${cudadir}/bin/nvprof "." ${ecudadir}/lib$(use amd64 && echo "64:${ecudadir}/lib")
+
+ dobin "${T}"/cuda-config
+}
+
+pkg_postinst_check() {
+ local a b
+ a="$(version_sort $(cuda-config -s))"; a=( $a )
+ # greatest supported version
+ b=${a[${#a[@]}-1]}
+
+ # if gcc and if not gcc-version is at least greatesst supported
+ if [[ $(tc-getCC) == *gcc* ]] && \
+ ! version_is_at_least $(gcc-version) ${b}; then
+ echo
+ ewarn "gcc >= ${b} will not work with CUDA"
+ ewarn "Make sure you set an earlier version of gcc with gcc-config"
+ ewarn "or append --compiler-bindir= pointing to a gcc bindir like"
+ ewarn "--compiler-bindir=${EPREFIX}/usr/*pc-linux-gnu/gcc-bin/gcc${b}"
+ ewarn "to the nvcc compiler flags"
+ echo
+ fi
+}
+
+pkg_postinst() {
+ if [[ ${MERGE_TYPE} != binary ]]; then
+ pkg_postinst_check
+ fi
+}
diff --git a/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-7.5.18-r2.ebuild b/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-7.5.18-r2.ebuild
new file mode 100644
index 000000000000..7122efbeae91
--- /dev/null
+++ b/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-7.5.18-r2.ebuild
@@ -0,0 +1,143 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit check-reqs cuda unpacker versionator
+
+MYD=$(get_version_component_range 1-2)
+
+DESCRIPTION="NVIDIA CUDA Toolkit (compiler and friends)"
+HOMEPAGE="http://developer.nvidia.com/cuda"
+SRC_URI="http://developer.download.nvidia.com/compute/cuda/${MYD}/Prod/local_installers/cuda_${PV}_linux.run"
+
+SLOT="0/${PV}"
+LICENSE="NVIDIA-CUDA"
+KEYWORDS="-* ~amd64 ~amd64-linux"
+IUSE="debugger doc eclipse profiler"
+
+DEPEND=""
+RDEPEND="${DEPEND}
+ >=sys-devel/gcc-4.7[cxx]
+ <sys-devel/gcc-5[cxx]
+ >=x11-drivers/nvidia-drivers-352.39[uvm]
+ debugger? (
+ sys-libs/libtermcap-compat
+ sys-libs/ncurses[tinfo]
+ )
+ eclipse? ( >=virtual/jre-1.6 )
+ profiler? ( >=virtual/jre-1.6 )"
+
+S="${WORKDIR}"
+
+QA_PREBUILT="opt/cuda/*"
+
+CHECKREQS_DISK_BUILD="1500M"
+
+pkg_setup() {
+ # We don't like to run cuda_pkg_setup as it depends on us
+ check-reqs_pkg_setup
+}
+
+src_unpack() {
+ unpacker
+ unpacker run_files/cuda-linux*.run
+}
+
+src_prepare() {
+ local cuda_supported_gcc
+
+ cuda_supported_gcc="4.7 4.8 4.9"
+
+ sed \
+ -e "s:CUDA_SUPPORTED_GCC:${cuda_supported_gcc}:g" \
+ "${FILESDIR}"/cuda-config.in > "${T}"/cuda-config || die
+}
+
+src_install() {
+ local i j
+ local remove="doc jre run_files install-linux.pl "
+ local cudadir=/opt/cuda
+ local ecudadir="${EPREFIX}"${cudadir}
+
+ # dodoc doc/*txt
+ if use doc; then
+ dodoc doc/pdf/*
+ dohtml -r doc/html/*
+ fi
+
+ mv doc/man/man3/{,cuda-}deprecated.3 || die
+ doman doc/man/man*/*
+
+ use debugger || remove+=" bin/cuda-gdb extras/Debugger"
+ ( use profiler || use eclipse ) || remove+=" libnsight"
+ remove+=" cuda-installer.pl"
+
+ if use profiler; then
+ # hack found in install-linux.pl
+ for j in nvvp nsight; do
+ cat > bin/${j} <<- EOF
+ #!${EPREFIX}/bin/sh
+ LD_LIBRARY_PATH=\${LD_LIBRARY_PATH}:${ecudadir}/lib:${ecudadir}/lib64 \
+ UBUNTU_MENUPROXY=0 LIBOVERLAY_SCROLLBAR=0 \
+ ${ecudadir}/lib${j}/${j} -vm ${EPREFIX}/usr/bin/java
+ EOF
+ chmod a+x bin/${j}
+ done
+ else
+ use eclipse || remove+=" libnvvp"
+ remove+=" extras/CUPTI"
+ fi
+
+ for i in ${remove}; do
+ ebegin "Cleaning ${i}..."
+ if [[ -e ${i} ]]; then
+ find ${i} -delete || die
+ eend
+ else
+ eend $1
+ fi
+ done
+
+ ln -sf lib lib32 || die
+
+ dodir ${cudadir}
+ mv * "${ED}"${cudadir} || die
+
+ cat > "${T}"/99cuda <<- EOF
+ PATH=${ecudadir}/bin$(use profiler && echo ":${ecudadir}/libnvvp")
+ ROOTPATH=${ecudadir}/bin
+ LDPATH=${ecudadir}/lib64:${ecudadir}/lib:${ecudadir}/nvvm/lib64
+ EOF
+ doenvd "${T}"/99cuda
+
+ use profiler && \
+ make_wrapper nvprof "${EPREFIX}"${cudadir}/bin/nvprof "." ${ecudadir}/lib64:${ecudadir}/lib
+
+ dobin "${T}"/cuda-config
+}
+
+pkg_postinst_check() {
+ local a b
+ a="$(version_sort $(cuda-config -s))"; a=( $a )
+ # greatest supported version
+ b=${a[${#a[@]}-1]}
+
+ # if gcc and if not gcc-version is at least greatesst supported
+ if [[ $(tc-getCC) == *gcc* ]] && \
+ ! version_is_at_least $(gcc-version) ${b}; then
+ echo
+ ewarn "gcc >= ${b} will not work with CUDA"
+ ewarn "Make sure you set an earlier version of gcc with gcc-config"
+ ewarn "or append --compiler-bindir= pointing to a gcc bindir like"
+ ewarn "--compiler-bindir=${EPREFIX}/usr/*pc-linux-gnu/gcc-bin/gcc${b}"
+ ewarn "to the nvcc compiler flags"
+ echo
+ fi
+}
+
+pkg_postinst() {
+ if [[ ${MERGE_TYPE} != binary ]]; then
+ pkg_postinst_check
+ fi
+}
diff --git a/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-8.0.44.ebuild b/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-8.0.44.ebuild
new file mode 100644
index 000000000000..45b0828f1ece
--- /dev/null
+++ b/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-8.0.44.ebuild
@@ -0,0 +1,135 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit check-reqs cuda toolchain-funcs unpacker versionator
+
+MYD=$(get_version_component_range 1-2)
+
+DESCRIPTION="NVIDIA CUDA Toolkit (compiler and friends)"
+HOMEPAGE="https://developer.nvidia.com/cuda-zone"
+SRC_URI="https://developer.nvidia.com/compute/cuda/${MYD}/prod/local_installers/cuda_${PV}_linux-run -> cuda_${PV}_linux.run"
+SLOT="0/${PV}"
+LICENSE="NVIDIA-CUDA"
+KEYWORDS="-* ~amd64 ~amd64-linux"
+IUSE="debugger doc eclipse profiler"
+
+DEPEND=""
+RDEPEND="${DEPEND}
+ >=sys-devel/gcc-4.7[cxx]
+ <sys-devel/gcc-6[cxx]
+ >=x11-drivers/nvidia-drivers-367.44[X,uvm]
+ debugger? (
+ sys-libs/libtermcap-compat
+ sys-libs/ncurses[tinfo]
+ )
+ eclipse? ( >=virtual/jre-1.6 )
+ profiler? ( >=virtual/jre-1.6 )"
+
+S="${WORKDIR}"
+
+QA_PREBUILT="opt/cuda/*"
+
+CHECKREQS_DISK_BUILD="3500M"
+
+pkg_setup() {
+ # We don't like to run cuda_pkg_setup as it depends on us
+ check-reqs_pkg_setup
+}
+
+src_unpack() {
+ unpacker
+ unpacker run_files/cuda-linux*.run
+}
+
+src_prepare() {
+ local cuda_supported_gcc
+
+ cuda_supported_gcc="4.7 4.8 4.9 5.3 5.4"
+
+ sed \
+ -e "s:CUDA_SUPPORTED_GCC:${cuda_supported_gcc}:g" \
+ "${FILESDIR}"/cuda-config.in > "${T}"/cuda-config || die
+
+ default
+}
+
+src_install() {
+ local i remove=( doc jre run_files install-linux.pl cuda-installer.pl )
+ local cudadir=/opt/cuda
+ local ecudadir="${EPREFIX}${cudadir}"
+
+ if use doc; then
+ DOCS+=( doc/pdf/. )
+ HTML_DOCS+=( doc/html/. )
+ fi
+ einstalldocs
+
+ mv doc/man/man3/{,cuda-}deprecated.3 || die
+ doman doc/man/man*/*
+
+ use debugger || remove+=( bin/cuda-gdb extras/Debugger extras/cuda-gdb-${PV}.src.tar.gz )
+
+ if use profiler; then
+ # hack found in install-linux.pl
+ for i in nvvp nsight; do
+ cat > bin/${i} <<- EOF || die
+ #!/usr/bin/env sh
+ LD_LIBRARY_PATH=\${LD_LIBRARY_PATH}:${ecudadir}/lib:${ecudadir}/lib64 \
+ UBUNTU_MENUPROXY=0 LIBOVERLAY_SCROLLBAR=0 \
+ ${ecudadir}/lib${i}/${i} -vm ${EPREFIX}/usr/bin/java
+ EOF
+ chmod a+x bin/${i} || die
+ done
+ else
+ use eclipse || remove+=( libnvvp libnsight )
+ remove+=( extras/CUPTI )
+ fi
+
+ for i in "${remove[@]}"; do
+ ebegin "Cleaning ${i}..."
+ rm -rf "${i}" || die
+ eend
+ done
+
+ dodir ${cudadir}
+ mv * "${ED%/}${cudadir}" || die
+
+ cat > "${T}"/99cuda <<- EOF || die
+ PATH=${ecudadir}/bin$(usex profiler ":${ecudadir}/libnvvp" "")
+ ROOTPATH=${ecudadir}/bin
+ LDPATH=${ecudadir}/lib64:${ecudadir}/lib:${ecudadir}/nvvm/lib64
+ EOF
+ doenvd "${T}"/99cuda
+
+ use profiler && \
+ make_wrapper nvprof "${ecudadir}/bin/nvprof" "." "${ecudadir}/lib64:${ecudadir}/lib"
+
+ dobin "${T}"/cuda-config
+}
+
+pkg_postinst_check() {
+ local a b
+ a="$(version_sort $(cuda-config -s))"; a=( $a )
+ # greatest supported version
+ b="${a[${#a[@]}-1]}"
+
+ # if gcc and if not gcc-version is at least greatest supported
+ if tc-is-gcc && \
+ ! version_is_at_least gcc-version ${b}; then
+ ewarn ""
+ ewarn "gcc >= ${b} will not work with CUDA"
+ ewarn "Make sure you set an earlier version of gcc with gcc-config"
+ ewarn "or append --compiler-bindir= pointing to a gcc bindir like"
+ ewarn "--compiler-bindir=${EPREFIX}/usr/*pc-linux-gnu/gcc-bin/gcc${b}"
+ ewarn "to the nvcc compiler flags"
+ ewarn ""
+ fi
+}
+
+pkg_postinst() {
+ if [[ ${MERGE_TYPE} != binary ]]; then
+ pkg_postinst_check
+ fi
+}
diff --git a/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-8.0.61.ebuild b/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-8.0.61.ebuild
new file mode 100644
index 000000000000..0295aba23074
--- /dev/null
+++ b/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-8.0.61.ebuild
@@ -0,0 +1,136 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit check-reqs cuda toolchain-funcs unpacker versionator
+
+MYD=$(get_version_component_range 1-2)
+DRIVER_PV="375.26"
+
+DESCRIPTION="NVIDIA CUDA Toolkit (compiler and friends)"
+HOMEPAGE="https://developer.nvidia.com/cuda-zone"
+SRC_URI="https://developer.nvidia.com/compute/cuda/${MYD}/Prod2/local_installers/cuda_${PV}_${DRIVER_PV}_linux-run -> cuda_${PV}_${DRIVER_PV}_linux.run"
+SLOT="0/${PV}"
+LICENSE="NVIDIA-CUDA"
+KEYWORDS="-* ~amd64 ~amd64-linux"
+IUSE="debugger doc eclipse profiler"
+
+DEPEND=""
+RDEPEND="${DEPEND}
+ >=sys-devel/gcc-4.7[cxx]
+ <sys-devel/gcc-6[cxx]
+ >=x11-drivers/nvidia-drivers-375.26[X,uvm]
+ debugger? (
+ sys-libs/libtermcap-compat
+ sys-libs/ncurses:5/5[tinfo]
+ )
+ eclipse? ( >=virtual/jre-1.6 )
+ profiler? ( >=virtual/jre-1.6 )"
+
+S="${WORKDIR}"
+
+QA_PREBUILT="opt/cuda/*"
+
+CHECKREQS_DISK_BUILD="3500M"
+
+pkg_setup() {
+ # We don't like to run cuda_pkg_setup as it depends on us
+ check-reqs_pkg_setup
+}
+
+src_unpack() {
+ unpacker
+ unpacker run_files/cuda-linux*.run
+}
+
+src_prepare() {
+ local cuda_supported_gcc
+
+ cuda_supported_gcc="4.7 4.8 4.9 5.3 5.4"
+
+ sed \
+ -e "s:CUDA_SUPPORTED_GCC:${cuda_supported_gcc}:g" \
+ "${FILESDIR}"/cuda-config.in > "${T}"/cuda-config || die
+
+ default
+}
+
+src_install() {
+ local i remove=( doc jre run_files install-linux.pl cuda-installer.pl )
+ local cudadir=/opt/cuda
+ local ecudadir="${EPREFIX}${cudadir}"
+
+ if use doc; then
+ DOCS+=( doc/pdf/. )
+ HTML_DOCS+=( doc/html/. )
+ fi
+ einstalldocs
+
+ mv doc/man/man3/{,cuda-}deprecated.3 || die
+ doman doc/man/man*/*
+
+ use debugger || remove+=( bin/cuda-gdb extras/Debugger extras/cuda-gdb-${PV}.src.tar.gz )
+
+ if use profiler; then
+ # hack found in install-linux.pl
+ for i in nvvp nsight; do
+ cat > bin/${i} <<- EOF || die
+ #!/usr/bin/env sh
+ LD_LIBRARY_PATH=\${LD_LIBRARY_PATH}:${ecudadir}/lib:${ecudadir}/lib64 \
+ UBUNTU_MENUPROXY=0 LIBOVERLAY_SCROLLBAR=0 \
+ ${ecudadir}/lib${i}/${i} -vm ${EPREFIX}/usr/bin/java
+ EOF
+ chmod a+x bin/${i} || die
+ done
+ else
+ use eclipse || remove+=( libnvvp libnsight )
+ remove+=( extras/CUPTI )
+ fi
+
+ for i in "${remove[@]}"; do
+ ebegin "Cleaning ${i}..."
+ rm -rf "${i}" || die
+ eend
+ done
+
+ dodir ${cudadir}
+ mv * "${ED%/}${cudadir}" || die
+
+ cat > "${T}"/99cuda <<- EOF || die
+ PATH=${ecudadir}/bin$(usex profiler ":${ecudadir}/libnvvp" "")
+ ROOTPATH=${ecudadir}/bin
+ LDPATH=${ecudadir}/lib64:${ecudadir}/lib:${ecudadir}/nvvm/lib64
+ EOF
+ doenvd "${T}"/99cuda
+
+ use profiler && \
+ make_wrapper nvprof "${ecudadir}/bin/nvprof" "." "${ecudadir}/lib64:${ecudadir}/lib"
+
+ dobin "${T}"/cuda-config
+}
+
+pkg_postinst_check() {
+ local a b
+ a="$(version_sort $(cuda-config -s))"; a=( $a )
+ # greatest supported version
+ b="${a[${#a[@]}-1]}"
+
+ # if gcc and if not gcc-version is at least greatest supported
+ if tc-is-gcc && \
+ ! version_is_at_least gcc-version ${b}; then
+ ewarn ""
+ ewarn "gcc >= ${b} will not work with CUDA"
+ ewarn "Make sure you set an earlier version of gcc with gcc-config"
+ ewarn "or append --compiler-bindir= pointing to a gcc bindir like"
+ ewarn "--compiler-bindir=${EPREFIX}/usr/*pc-linux-gnu/gcc-bin/gcc${b}"
+ ewarn "to the nvcc compiler flags"
+ ewarn ""
+ fi
+}
+
+pkg_postinst() {
+ if [[ ${MERGE_TYPE} != binary ]]; then
+ pkg_postinst_check
+ fi
+}
diff --git a/dev-util/objconv/Manifest b/dev-util/objconv/Manifest
new file mode 100644
index 000000000000..267c3c9bc04f
--- /dev/null
+++ b/dev-util/objconv/Manifest
@@ -0,0 +1,7 @@
+DIST objconv-2.32_pre20131127.zip 814334 SHA256 e0ed4a795ce46eadbf724b072e7f1e2b4c37a8a85f94a44ee9da94ed85ac12f2 SHA512 9be8f6e7f33794ade3340604508a996139c3f7a3a620efc634919e20ad29c5510b25a88df469769862d969375eefaed39c4e200b1ef25d9eff8abb1936027f7b WHIRLPOOL 6abe704f9f8f9864f7321d5abe5d3caabda364c744d6918d9f0c84fbc4dc7d0294262fef350cc9f4463a827d88bd76e8fababecda9a414d9252a15732c6a040e
+DIST objconv-2.42.zip 1016499 SHA256 1aa3171a8f0ebba7902b413857b178df2b079cbc31bfb95b196ba7a685c227ba SHA512 9ccc49ddfe5a6d353c746917832419478335e73d1cb85762cad314f918532bd20844b9812e392d57789a4a6cb8764945a6b1894884b50d5486bdf635fe58d35f WHIRLPOOL 6db650b33f63ca2d39720352c4aa72e72a92c649f4073b10e32ce361e0194ed7f37663d8eceed3bc708abcd5bfe1f29756655af82292b081498e46251070b376
+EBUILD objconv-2.32_pre20131127.ebuild 936 SHA256 67f773de4e28d45e6907a7afa1abc1648840c98bcebe55cbe477bf98de41882d SHA512 a83b95ec7cc666d6824209a69308962192a5ef99afe8bc517a11184a535952ec6bf974f8e47d1b05d02fd2b1948e59e34f8b65cef0b119a1d1bf4d25d2c5dce5 WHIRLPOOL 2f2cb745dd5a9f86f1098ccde3c7b0f10a9ebecfe591dc525bfbf87a000e909265cbd0871565a5021445886066b28883a956eb1beca8b00dbea61217b307aa40
+EBUILD objconv-2.42.ebuild 949 SHA256 a408ea4338e15ab3790557ff0767bb2ab5483c4ba874133ffd4f0e6e24b10d31 SHA512 069c496238aa3b511101216399a86c18e914d7d8b1d95dbde134a7d7097d5aadbed75732ed75915f5c141eff82cf3c74a37e58b1da9f1a34732649c984cdbc17 WHIRLPOOL 3ed9f16b2bf3b461f40e3ec600daedc9b419ee6331c122b894b1508fd96fb7ccc3f3fd54180b1788275f55cfd8d2eee8ce74f2e5e1cc879278e0eff996e10640
+MISC ChangeLog 2392 SHA256 bf329f5b18fbb4158bfb2b7c44a8442aea436f01bf66719378b5ba33220d9379 SHA512 607d95ae1c508a3518d84682b40a66379c249567d4f6a0cd7b6a532771d3c9747c7cf110dbaf10c7a6347f752088c364123d6569d28cf8c39b9a25859674067c WHIRLPOOL 209ea8ecde544b2a26d27c4eea72a7934c2513481c303033e58bbaa2526addce8a0d6dd7ed27793146e44a28c348a631a9239a95e6e8eac5044535a0b210293a
+MISC ChangeLog-2015 523 SHA256 b7cfbb6fa7bfbf626d38d4e5d483ee6c6ffca5f8396582bfbc9c614f45b18870 SHA512 96ee986a9d0aa1bbbcbb82552e87a8c6f9683bfe6b24b9cd66740c28edfd827120f4b1d5b1d30a394de7cb15f4fcf16aaf415fa3e3c570375c21d56c11497a57 WHIRLPOOL 8a7352a3b86cd5134dab27c3dc31b2030a4643a0c53ef4fc5ca9a50433bdf28c1e298ce45ef8a751771a4def29f6ac0e5544f3080efa07c6c7901bb0a26169bc
+MISC metadata.xml 251 SHA256 90d6112ae9e256cc0e1e136cbc0f06790773deb619f29ffb87301cddd9b96750 SHA512 cc2bd3977894946ee4ea5b739cc3998bcd6017b9e7a52aa501409d0988954339a9a22fe751d0a5e967ddac9225d9b23f20b4fb1e2c62ee91d1d23c383d9776dd WHIRLPOOL 7fb42bdc9d6347bdf289087e631f6d6e7cf683679af236bf343f2d1e3213e999372123a46d339bcc559dfd0af8e41d75a56a76b60d67ef936bdc973ebfff1bf0
diff --git a/dev-util/objconv/metadata.xml b/dev-util/objconv/metadata.xml
new file mode 100644
index 000000000000..c5298995d2d4
--- /dev/null
+++ b/dev-util/objconv/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>slyfox@gentoo.org</email>
+ <name>Sergei Trofimovich</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-util/objconv/objconv-2.32_pre20131127.ebuild b/dev-util/objconv/objconv-2.32_pre20131127.ebuild
new file mode 100644
index 000000000000..e9288020b183
--- /dev/null
+++ b/dev-util/objconv/objconv-2.32_pre20131127.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit toolchain-funcs unpacker
+
+DESCRIPTION="object code file converted (COFF, ELF, OMF, MACHO)"
+HOMEPAGE="http://agner.org/optimize/#objconv"
+# original URL is "http://agner.org/optimize/objconv.zip", but it's unversioned.
+# I copy those to distfiles time to time
+SRC_URI="https://dev.gentoo.org/~slyfox/distfiles/${P}.zip"
+LICENSE="GPL-2"
+
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND=""
+DEPEND=""
+
+S=${WORKDIR}/${P}
+
+src_unpack() {
+ unpacker_src_unpack
+ mkdir "${S}" || die
+ pushd "${S}" || die
+ unpack_zip ../source.zip
+}
+
+src_prepare() {
+ # project has extremenly poor build system (see build.sh)
+ local sources=$(echo *.cpp)
+
+ {
+ echo "objconv: ${sources//.cpp/.o}"
+ echo " \$(CXX) -o \$@ \$^ \$(LDFLAGS)"
+ } > Makefile || die
+
+ tc-export CXX
+}
+
+src_install() {
+ dobin objconv
+ dodoc ../objconv-instructions.pdf
+}
diff --git a/dev-util/objconv/objconv-2.42.ebuild b/dev-util/objconv/objconv-2.42.ebuild
new file mode 100644
index 000000000000..f4aa2421d778
--- /dev/null
+++ b/dev-util/objconv/objconv-2.42.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit toolchain-funcs unpacker
+
+DESCRIPTION="object code file converted (COFF, ELF, OMF, MACHO)"
+HOMEPAGE="http://agner.org/optimize/#objconv"
+# original URL is "http://agner.org/optimize/objconv.zip", but it's unversioned.
+# I copy those to distfiles time to time
+SRC_URI="https://dev.gentoo.org/~slyfox/distfiles/${P}.zip"
+LICENSE="GPL-2"
+
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND=""
+DEPEND=""
+
+S=${WORKDIR}/${P}
+
+src_unpack() {
+ unpacker_src_unpack
+ mkdir "${S}" || die
+ pushd "${S}" || die
+ unpack_zip ../source.zip
+}
+
+src_prepare() {
+ # project has extremenly poor build system (see build.sh)
+ local sources=$(echo *.cpp)
+
+ {
+ echo "objconv: ${sources//.cpp/.o}"
+ echo " \$(CXX) \$(CXXFLAGS) -o \$@ \$^ \$(LDFLAGS)"
+ } > Makefile || die
+
+ tc-export CXX
+}
+
+src_install() {
+ dobin objconv
+ dodoc ../objconv-instructions.pdf
+}
diff --git a/dev-util/obs-service-cpanspec/Manifest b/dev-util/obs-service-cpanspec/Manifest
new file mode 100644
index 000000000000..632f3675c071
--- /dev/null
+++ b/dev-util/obs-service-cpanspec/Manifest
@@ -0,0 +1,6 @@
+DIST cpanspec-20130318 2228 SHA256 5949a2604fc51cbb3e87814018e00bc3d13358d0c06722d74109312872170489 SHA512 a3150811f12af16d62f4635833a92827de8bd2260ae5e43cecf65b066d7beb2aeb1323c428e379e4a53168d3c99dd9ce988b4f41ad58026a267ab9e809df7eef WHIRLPOOL 6f3a3a1d25dd2fa6db0f0627044986397d2c9c50b38c38eaeb6b807bf6a8b9d38edb9d6cf1fb466e989a7ffdf3915a94613ee791f4af72a551b8283278e78c70
+DIST cpanspec-20130318.service 986 SHA256 4aa68921a95cc3b1ef28ad44219df8775eb337e6cdf621422dd9a90e3e2804a4 SHA512 c4191060a576cb63986dc9a115e397d4f8870a6bb10ddaf642310eb6acaf0b0c3b8d803c239e401ff85058f8ca1455058c246757ab4b53a26b884cb7f4525c3c WHIRLPOOL e2ce05c836932b84ce6c89bc396d72fe4fd5f6ebdb200dfd0517587af9d8532954ab5ac0f20917596c9af4cce767a716d6986838c84fd738d60179610fed41cc
+EBUILD obs-service-cpanspec-20130318.ebuild 197 SHA256 c3077c0e80736884b169700a22552d5c1d7a3788856966c67aa5fca68fe2ec8b SHA512 fcf4225d5a1d6fedc5b70a8d4dfd01559a8e77d55428150699d2a24a1fb8ced695e8dc6fa972f11d3b0d9c6aab4797362dcf3cce519fdea6730f35b71f28b9b2 WHIRLPOOL 5a4656708ef8f706067d6c3685dd071b4b52a0e1c8ad2d193672b39a6b8c36a39f6adac2dd9405080263ed0c870ec93ba01e8cab080d13f01fe2306fd5ac099d
+MISC ChangeLog 2472 SHA256 72e2bdfbcf146d0d26189c050c5f557d7ae43740da7fb988c1020b62e212aa0b SHA512 0ef07fa5e208660359dab1245e3e95b9556ff0ad82a82194fca566fb40abfb7c3ad82c3e45c53cf34666b9e6ac24e548647ede95d8a6174558eceb92ea2bb24d WHIRLPOOL 8976026136ceda574ac83c0d9bc31efe71862da3ae75c85e0606d98df48a20621ff816768d3ac1be9b54c2cc34d6c8a37645544398f70f5db10843dddd9a4377
+MISC ChangeLog-2015 1234 SHA256 25cf13be2c468ca3acf5d8719fa47670a37898b8502b4db98b3c56aadb7fedd3 SHA512 5d9f0c4dd83ac41c701fbecd55a9f58615783ea653c0084ac75378625f3853f9160028d55b6c276104512c4a41a8f8394e1fbfd3271e4dce1bd8ceabb76a6dd2 WHIRLPOOL c72bc62d64ccf108de13a2da09365c940f4dbad791c39702c6defdf85da286606c1b0ae877b2b980e88eb75a9eacac741a305c49116e4d60544ab8d7d3267ee5
+MISC metadata.xml 367 SHA256 00ad7280a44b0384f16f0d0bf31071c8958c6f8fde389dbefb3a7a3c9523959d SHA512 6829a44be3d6bbb3da7533cb264206573be85362446618293441e6d9f30451932668318e2d74c47c586643463ffb9f4f2822995731df25ee187dcaa3d612164a WHIRLPOOL 5781a2ee4b27a19cda3b68d8a9028ffeae2183c1f4c96aeff39365cab1cd5305bc63802788c1557e26759368ff0cf712008b3783838f03a0bacad8ff85e22c5a
diff --git a/dev-util/obs-service-cpanspec/metadata.xml b/dev-util/obs-service-cpanspec/metadata.xml
new file mode 100644
index 000000000000..0a8ff0aac5da
--- /dev/null
+++ b/dev-util/obs-service-cpanspec/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="project">
+ <email>suse@gentoo.org</email>
+ <name>SUSE</name>
+</maintainer>
+<longdescription lang="en">
+This is a source service for Open Build Service. It's a wrapper around cpanspec script.
+</longdescription>
+</pkgmetadata>
diff --git a/dev-util/obs-service-cpanspec/obs-service-cpanspec-20130318.ebuild b/dev-util/obs-service-cpanspec/obs-service-cpanspec-20130318.ebuild
new file mode 100644
index 000000000000..5a275bb4cb27
--- /dev/null
+++ b/dev-util/obs-service-cpanspec/obs-service-cpanspec-20130318.ebuild
@@ -0,0 +1,12 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit obs-service
+
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND="${DEPEND}"
diff --git a/dev-util/obs-service-download_files/Manifest b/dev-util/obs-service-download_files/Manifest
new file mode 100644
index 000000000000..1ea25517eafb
--- /dev/null
+++ b/dev-util/obs-service-download_files/Manifest
@@ -0,0 +1,6 @@
+DIST download_files-20130716 6333 SHA256 2e625a9287fd56b85e76890dde579aca4e5501f33932e183dbec342edfa54484 SHA512 2df185d535043c4652c09f8404a67d6b6e27436d01187378c21b2309bd4ea4928162dbe93a980ffc5aa212f83195facf90c602adf7984b0af7b3c14875a904e5 WHIRLPOOL 0f576c95a90794b5c4de680691990954dc6934601d232eeb316ea30eb34aec7c2a8cd97022b40ba111472789beb1cdaa0821d4ecac4e6954a2e194472e701dd9
+DIST download_files-20130716.service 1070 SHA256 6a900f6d610cdbd27aafc469fde42c4c2a20ae488b3dde6fb38b7adb1e171fd5 SHA512 3c19bc317bf4d9559d61ea388bdbb9a04fd8f3749102a52579737af9809f9dcfe045ce39feefbf08c42b52f7ca5a3d598b85609a0fb8fcefc55a7f846f13dbb2 WHIRLPOOL 397deb0f2e9a74afe62fa3d7b05062456630a97fb2dd295a4c7ef8a584cc132ccfab958fff86a67fc22e9a6936ee1d4049345f03fcca82464ed9fe58c9389f24
+EBUILD obs-service-download_files-20130716.ebuild 213 SHA256 ac007daa623178c391c4fde3e97cc1a60535f773e53725532dfb25c79237ac74 SHA512 db1c8f84ef118517977870295f715f662cd836b49a4a01af5a2a8e02f9fbfa297d2b9ec1feb1cbbe733bae5cc34390511b72f1b800aec4769997b31053616ada WHIRLPOOL b2d2225246708fba7e2071b8c88456e098a74cd451e391733a232078ece582d8cd176fad1da9b3c25d145dca1201e2046dde9e4fe1113b358e8c669964d38714
+MISC ChangeLog 2490 SHA256 9003722d34adca9872c1fb9a6505e0295bb4a1c2351f4715f9a58811ee70a99c SHA512 ac423c78f6df36f62526d2a5fb24e0dfdedd611689c99ab2487e2fdaca3e85ae6f246bc7d756f6a0e7ac99e04022c35758886af5a2ab906f9a9711947200170b WHIRLPOOL 3a0b18b562a6c21579a7f663de3617d8f43da06fd85fc3213289bd184f4bc1cef693a4c365d0e65063b552a17a818cab9bf875ccb9fa3e123369c42dc2cc00a8
+MISC ChangeLog-2015 2370 SHA256 befb9228e6155b99bd858fb33e4424683bced241d8579387e74867695229243e SHA512 9cec18b047c786abe172de02d895e75c5c1534d6b3421f0349dfa72559c36df6fb220f05e6220da41dc3cd4a8b23a694385a88ac7c7f1a0ca1117f9a474ec224 WHIRLPOOL ffaa776a27dabfe8f067f0b03560a5d9f75b6472bc558cc1627fcb9211926e887ee9ebc271f65292a38712ed90e6c5ab51ead7d560d30f961641512be33298e9
+MISC metadata.xml 448 SHA256 ee74d6811686eca17b1017a6ce0efb337229dcf38dcadb121c82e9b423846e5a SHA512 f544445cb83288650c17bff5a3b472644ea2af586ccc2022e1dfa7a6865ac49b774b50bc63c894c55fea86dd4cc053a88062a0f83fa6fead0b5691698ea8f7e8 WHIRLPOOL 6d2b04d220781d58cc2e76984b74c557b033367f95576c6924d4a88c3c02323fc9503e07dac5140e31cd296d49f7908ca380a533954fa049856c13453d83531d
diff --git a/dev-util/obs-service-download_files/metadata.xml b/dev-util/obs-service-download_files/metadata.xml
new file mode 100644
index 000000000000..b2d1711cfd56
--- /dev/null
+++ b/dev-util/obs-service-download_files/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="project">
+ <email>suse@gentoo.org</email>
+ <name>SUSE</name>
+</maintainer>
+<longdescription lang="en">
+This is a source service for Open Build Service. This service is parsing all spec files and downloads all Source files which are specified via a http, https or ftp url.
+</longdescription>
+</pkgmetadata>
diff --git a/dev-util/obs-service-download_files/obs-service-download_files-20130716.ebuild b/dev-util/obs-service-download_files/obs-service-download_files-20130716.ebuild
new file mode 100644
index 000000000000..3ef73e967e02
--- /dev/null
+++ b/dev-util/obs-service-download_files/obs-service-download_files-20130716.ebuild
@@ -0,0 +1,14 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit obs-service
+
+IUSE=""
+KEYWORDS="amd64 x86"
+
+DEPEND=""
+RDEPEND="${DEPEND}
+ net-misc/wget
+"
diff --git a/dev-util/obs-service-download_src_package/Manifest b/dev-util/obs-service-download_src_package/Manifest
new file mode 100644
index 000000000000..abac3ab19f57
--- /dev/null
+++ b/dev-util/obs-service-download_src_package/Manifest
@@ -0,0 +1,6 @@
+DIST download_src_package-20130318 1454 SHA256 2e2f9fec6d09f27b72e270ce007bd82c7005f0dfc2e79380cdbf0174b369e39e SHA512 47c83be8f97bebd9920e7ad115c5f1ef52281c2f0b11f62b31426349d9139b8a236530a7617473535dd160326de15d1f4a629017c8e47f5e8ec09e111b179500 WHIRLPOOL 6f67b6d1081383c69d6b9785b1160056547b9f68904afd84ad829bf3bc35a47fb1fb8a61d5f3c3c27e5938b115d1610cc4defb1539e009cdfadd44778c5728c8
+DIST download_src_package-20130318.service 1054 SHA256 a4e8c4c263dfaf0920b41f9935c8c2677f951d53b420950ed22345a9f49d9d06 SHA512 b2f97f32ccd28e148f7317c4213523cc87adfc19ebb85ab5277ec62fa75ef603b6b4d65bd69e44f168c374ad890e28e69250735b1c9476f09a8dac89b3682f5f WHIRLPOOL 4d2435fe62781101fa45c53d449a0fc5ddf6dd7494e267fb313f4bc2eb487347f58756cea570b690789f2a49bed21daa2090826a98de87ee6bc2523f2d287f61
+EBUILD obs-service-download_src_package-20130318.ebuild 213 SHA256 ac007daa623178c391c4fde3e97cc1a60535f773e53725532dfb25c79237ac74 SHA512 db1c8f84ef118517977870295f715f662cd836b49a4a01af5a2a8e02f9fbfa297d2b9ec1feb1cbbe733bae5cc34390511b72f1b800aec4769997b31053616ada WHIRLPOOL b2d2225246708fba7e2071b8c88456e098a74cd451e391733a232078ece582d8cd176fad1da9b3c25d145dca1201e2046dde9e4fe1113b358e8c669964d38714
+MISC ChangeLog 2508 SHA256 b32e5d2545455f651e96e8349f8d37a5e74aa84057289f2787b52f44d322db4c SHA512 ef583716ab760f6473c730719ba4246daa749c91ca386f98e67364192e841df6b9aa59f25a2268a67bfac74c05e6394b12fb4aec1a3e476512957b5bd202c27f WHIRLPOOL 064b1269159c9230f7a1db6884e21c3f7dce5b32ad00be88dbf145041b75b75978375285c84a3713310533e63c250c2a3fc6c196e79891560467598e2868c70e
+MISC ChangeLog-2015 1084 SHA256 5a64a4e467b313ff60d8ec7273d613b0ddc0a80f997e79a8112c4cd534e93d37 SHA512 7436bf90e9f12a1dec55517e4e0233311302ee24b5ac5f9e6362a1d00988410a5f1c35cab7cef6983fbe0efb0a11945877b1715dca6b3a9e8c0bb7c2f683c0de WHIRLPOOL 811455a53d333e4d43095d4c999db6d504382b0c2c85ae553e7d013b86d46613e908d0cbdaa892ef6a344e070187669433535ede1e2318c7322415a142ab6393
+MISC metadata.xml 448 SHA256 ee74d6811686eca17b1017a6ce0efb337229dcf38dcadb121c82e9b423846e5a SHA512 f544445cb83288650c17bff5a3b472644ea2af586ccc2022e1dfa7a6865ac49b774b50bc63c894c55fea86dd4cc053a88062a0f83fa6fead0b5691698ea8f7e8 WHIRLPOOL 6d2b04d220781d58cc2e76984b74c557b033367f95576c6924d4a88c3c02323fc9503e07dac5140e31cd296d49f7908ca380a533954fa049856c13453d83531d
diff --git a/dev-util/obs-service-download_src_package/metadata.xml b/dev-util/obs-service-download_src_package/metadata.xml
new file mode 100644
index 000000000000..b2d1711cfd56
--- /dev/null
+++ b/dev-util/obs-service-download_src_package/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="project">
+ <email>suse@gentoo.org</email>
+ <name>SUSE</name>
+</maintainer>
+<longdescription lang="en">
+This is a source service for Open Build Service. This service is parsing all spec files and downloads all Source files which are specified via a http, https or ftp url.
+</longdescription>
+</pkgmetadata>
diff --git a/dev-util/obs-service-download_src_package/obs-service-download_src_package-20130318.ebuild b/dev-util/obs-service-download_src_package/obs-service-download_src_package-20130318.ebuild
new file mode 100644
index 000000000000..3ef73e967e02
--- /dev/null
+++ b/dev-util/obs-service-download_src_package/obs-service-download_src_package-20130318.ebuild
@@ -0,0 +1,14 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit obs-service
+
+IUSE=""
+KEYWORDS="amd64 x86"
+
+DEPEND=""
+RDEPEND="${DEPEND}
+ net-misc/wget
+"
diff --git a/dev-util/obs-service-download_url/Manifest b/dev-util/obs-service-download_url/Manifest
new file mode 100644
index 000000000000..def66e865144
--- /dev/null
+++ b/dev-util/obs-service-download_url/Manifest
@@ -0,0 +1,6 @@
+DIST download_url-20130318 2225 SHA256 e74cdb81c446e0144a6535f010fca744c73696dbfe0fa15c0d2d77de7e4bd361 SHA512 70aa703d36d7e43a8533a8b6ea15fa92e01653759a86d187184a9bae272ea10fdbf25e4a6c6a70ad59d39be88e30293fb8d8b65720b80b4e2e8f739839259cb0 WHIRLPOOL 3fa707735900fefbe8b7574b14563b7cf0d8573a8a9eba0020ca2932911b07bd884aaa6a8a0b4dd7e3b858b3d18eac4b6b84231c6ea5ae3ac9797a2b3b244320
+DIST download_url-20130318.service 849 SHA256 e889bec6a3720b15897097479c1a78c0005fe90450e08a43bd8a527de1767a02 SHA512 b32d87e490e04e561013d9d0981674be8fc63c07575bf7a2fd7282c423fe755615547e5ef19ba7fa058b2a3803714a32cbee618aa4bedcad2fe4b9c54a7172e4 WHIRLPOOL 7c6f4bcf5b029fad40a0bb83c3345fecd325447e1e7e02ff0c84707ffce8cea180206f06f4e4c2e9ecd5adabc1771810fbc34ceca1b59082b1a938d62d3fc237
+EBUILD obs-service-download_url-20130318.ebuild 213 SHA256 ac007daa623178c391c4fde3e97cc1a60535f773e53725532dfb25c79237ac74 SHA512 db1c8f84ef118517977870295f715f662cd836b49a4a01af5a2a8e02f9fbfa297d2b9ec1feb1cbbe733bae5cc34390511b72f1b800aec4769997b31053616ada WHIRLPOOL b2d2225246708fba7e2071b8c88456e098a74cd451e391733a232078ece582d8cd176fad1da9b3c25d145dca1201e2046dde9e4fe1113b358e8c669964d38714
+MISC ChangeLog 2484 SHA256 4fdf0518df3475a81261ffe5c3bf04b8b2207dacc7aead38dc58a1847a93b7f6 SHA512 b4f6489ec3713c673dac48d0bf3c5225110e392743a10b4b92ae8210ed29d358636150f1c96a1ac2bed2cf79f84b31b72e1f5182d6582209f229a7ae1357050f WHIRLPOOL 1503cce7c480cce90af2a0c29cd89a6e28f56594a0603429583659c9ba69188ce31aec5c826e16f299f2e8b9953de5267369458877148b879f62ac552b19c3e9
+MISC ChangeLog-2015 1005 SHA256 3ea7b174ffc68dce004fa4a77f837baec75081545f7db5e1111a21753fb9f51a SHA512 6f3ed80891054719e931c5ebd151c02c6a34d8a4ca24e247be22bf04d222663de8468a3551d377529534c9a4d57c02648ba3ef27ad6ac4f1ee21a88c42379cbe WHIRLPOOL a8fd77696f108281e0a10e0ebab640e4041dcb90223cc7d988e316146c6b13925f8608ffc1922c2302480b49ce649f0a43d54cd9936ef20ad74c442ce54bf35e
+MISC metadata.xml 448 SHA256 ee74d6811686eca17b1017a6ce0efb337229dcf38dcadb121c82e9b423846e5a SHA512 f544445cb83288650c17bff5a3b472644ea2af586ccc2022e1dfa7a6865ac49b774b50bc63c894c55fea86dd4cc053a88062a0f83fa6fead0b5691698ea8f7e8 WHIRLPOOL 6d2b04d220781d58cc2e76984b74c557b033367f95576c6924d4a88c3c02323fc9503e07dac5140e31cd296d49f7908ca380a533954fa049856c13453d83531d
diff --git a/dev-util/obs-service-download_url/metadata.xml b/dev-util/obs-service-download_url/metadata.xml
new file mode 100644
index 000000000000..b2d1711cfd56
--- /dev/null
+++ b/dev-util/obs-service-download_url/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="project">
+ <email>suse@gentoo.org</email>
+ <name>SUSE</name>
+</maintainer>
+<longdescription lang="en">
+This is a source service for Open Build Service. This service is parsing all spec files and downloads all Source files which are specified via a http, https or ftp url.
+</longdescription>
+</pkgmetadata>
diff --git a/dev-util/obs-service-download_url/obs-service-download_url-20130318.ebuild b/dev-util/obs-service-download_url/obs-service-download_url-20130318.ebuild
new file mode 100644
index 000000000000..3ef73e967e02
--- /dev/null
+++ b/dev-util/obs-service-download_url/obs-service-download_url-20130318.ebuild
@@ -0,0 +1,14 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit obs-service
+
+IUSE=""
+KEYWORDS="amd64 x86"
+
+DEPEND=""
+RDEPEND="${DEPEND}
+ net-misc/wget
+"
diff --git a/dev-util/obs-service-extract_file/Manifest b/dev-util/obs-service-extract_file/Manifest
new file mode 100644
index 000000000000..d34c86e8febd
--- /dev/null
+++ b/dev-util/obs-service-extract_file/Manifest
@@ -0,0 +1,6 @@
+DIST extract_file-20130318 1828 SHA256 f73b24c762a58c77814ec298b09a8c587287e43449ab3d79cb93b26ec6a53cbf SHA512 ceb09d0c7f86a04ddc7389e97ba94105249488be267c998ab601add03cd6ec6e7fd26baf463b18d9422f3360b69ea73000ccbb331807b19ae7df95e468d8aba1 WHIRLPOOL c83e4c9a889f191c2dc1b19578b8d49be81586afb66fc0b64a64104f92a4d25a0d0422b3c79cfdb13d3405f83493fb9fea43cec0b4d05b8f6af99b2f69acea1a
+DIST extract_file-20130318.service 615 SHA256 a87a9e2241f5342fcc4e29bed7ebf75e8ec0a5dffc98a05a1a42c022a610774d SHA512 e647787b83bc1f45e9104bb210d3807481f2ab7ddcc7dd4eb3c522a9dc6f94580b60a92ad5ff73a634c025438d2ccaa655ea005c26e1f214532e69f67510d7c6 WHIRLPOOL 384802508be5d9f23b8f783dd1067491dc799edf7d065c95a3edcf5b32373b7512b58ac8c518061f6ad87784d4afc82c79b0b8af8ff8117fb0fbf006870597a5
+EBUILD obs-service-extract_file-20130318.ebuild 278 SHA256 15cbac17a613ab0400a5ac41e875f158be81ff8a113b1bb6b7bd377fc589a8cb SHA512 5790e7402588e6c9605e321809ad9bb31ac13673b591f8122c82e1295f41ebd5e5a9c20fd83646d26904915011eb7aaca4afdf707bb9b82dbe4824610acae356 WHIRLPOOL c5b813e4ef43c382f92d79a6d2220d62cc16f0604e3129be53623e1453ae0e65b057a7401284a4f88ed145ffa413807cdecc3b73600cf9098bcfe1563e4c1561
+MISC ChangeLog 2484 SHA256 13141b1a52c919ecfcaa444fd025f63a84e7cb51fd714b894153dfb9305a9801 SHA512 71715cdf000739133492359829ec31627ff5017bb233e8d9592426fa81fbc883c3d66dbadf2ad98993b262dce6625187003a47cd723aea8948f496d7e1ee3d20 WHIRLPOOL 6b61c92b14df2feec5124b767ec7c00f17fa14039b86afbca4beb198b136e875f592ea5b653bb74395613a27b268edfddb46d8488b6e79cbcb189c8ab522a0b1
+MISC ChangeLog-2015 1006 SHA256 75f871c19a45fc6647350bc69cb3acc55d0fb0151ebf26f9cd20e8c4a5adee60 SHA512 e39aa55130dc8057128454446a4412a601c03539905f389c5a675401a68a706c4e7313831699ac808782874ab8fc2e5d34d2524e0664d0c2ed4c042700f772c4 WHIRLPOOL 9592fa06dda39883700dd469fcb43b7fc9e8b5aa089454f2928ed2d29b5108cabe79542fec123aa859ca7ec63bda2dd84e917f833b1975e996c6f10064da8827
+MISC metadata.xml 448 SHA256 ee74d6811686eca17b1017a6ce0efb337229dcf38dcadb121c82e9b423846e5a SHA512 f544445cb83288650c17bff5a3b472644ea2af586ccc2022e1dfa7a6865ac49b774b50bc63c894c55fea86dd4cc053a88062a0f83fa6fead0b5691698ea8f7e8 WHIRLPOOL 6d2b04d220781d58cc2e76984b74c557b033367f95576c6924d4a88c3c02323fc9503e07dac5140e31cd296d49f7908ca380a533954fa049856c13453d83531d
diff --git a/dev-util/obs-service-extract_file/metadata.xml b/dev-util/obs-service-extract_file/metadata.xml
new file mode 100644
index 000000000000..b2d1711cfd56
--- /dev/null
+++ b/dev-util/obs-service-extract_file/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="project">
+ <email>suse@gentoo.org</email>
+ <name>SUSE</name>
+</maintainer>
+<longdescription lang="en">
+This is a source service for Open Build Service. This service is parsing all spec files and downloads all Source files which are specified via a http, https or ftp url.
+</longdescription>
+</pkgmetadata>
diff --git a/dev-util/obs-service-extract_file/obs-service-extract_file-20130318.ebuild b/dev-util/obs-service-extract_file/obs-service-extract_file-20130318.ebuild
new file mode 100644
index 000000000000..a3976408f7c9
--- /dev/null
+++ b/dev-util/obs-service-extract_file/obs-service-extract_file-20130318.ebuild
@@ -0,0 +1,18 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit obs-service
+
+IUSE=""
+KEYWORDS="amd64 x86"
+
+DEPEND=""
+RDEPEND="${DEPEND}
+ app-arch/bzip2
+ app-arch/gzip
+ app-arch/tar
+ app-arch/unzip
+ app-arch/xz-utils
+"
diff --git a/dev-util/obs-service-format_spec_file/Manifest b/dev-util/obs-service-format_spec_file/Manifest
new file mode 100644
index 000000000000..fb29799245c5
--- /dev/null
+++ b/dev-util/obs-service-format_spec_file/Manifest
@@ -0,0 +1,9 @@
+DIST format_spec_file-20130618 957 SHA256 7338b7cea0ccd89ab1ba86f0a3ae525860a4f5816d7adab06ba252f1598c104e SHA512 52dfb06f6d7ab71570090a940f69d631fdf027b48797354911e5aca9d8aeab53026251f4da1c0e8fc58044344762d01633f02253fcdb096e8d9e9edae0cd0ebe WHIRLPOOL dcf6e822364c45c0382f0e18a1ee302db7095645d1e45fedbfd0bb90d0037ee7e387f5234ff7253a74e6535fd1f93687a3fb39cbca092410f14ca69addce8dca
+DIST format_spec_file-20130618.service 274 SHA256 2f8c5639f893e20f99a70fb11ed525517be6a094f73f10d8da4cc90454f4ce7b SHA512 a97789f41f9493aab3cb2dc15da3de69d3e9dd025ae3660afb6dec436f050112460611db969f0c9f2ba8ec786f210714c51088a7089bdbaed3353635e7e8e6b1 WHIRLPOOL 1bedd6130fd91732d6ead78b1e9dbba4a143969a35222198295a9dc4793f35a78f59a17739e4e7a2c5ca67fdb20200840863ba7014625d6c4c2efa9f088f8eb4
+DIST licenses_changes.txt-20130618 24641 SHA256 6ff17a2b366b75547635f5e51e41e97039f2a53f363ea5683f743e19ef3d45e4 SHA512 ca5a3a56892331b8c7377ffdd0010ac8174871aa710ff60e58bc3aaa9def8b25676ac377aef8cc27035e648e7b60e315a5ec39c1ace05a76d26c41f46d647d9f WHIRLPOOL 346729f875d618f4403baa221620660ceafef9d1c8eaba62a7a1808ccb60d939ea5fc30f626ff2c2b815cdd7400a4952aab1e21466c46397566907007e493b51
+DIST patch_license-20130618 14873 SHA256 e5085e9aa3101d130eb8c286c295cbafc2abca75715b29416a7c46268a6033b8 SHA512 b3eaa1a99d3035ce1fc36da702f563896a16328ad0bd01da62a36e7973558749724203fcd5d24a7e3dc2118ab1f9099daa71b3c33fa46f2926f072d4227c81bf WHIRLPOOL 954b3542c620c5c81c2c4194ddc25fb666a6b471d63ed3ba637ec3c77a7c967276efd9d3490a750df3e9e7d945482cbf30563f9ad4097ca576b10a692d0b0550
+DIST prepare_spec-20130618 19929 SHA256 25121dfa44d7186742450befb19256319665418d0d3ada75fe004fce43ad0f36 SHA512 51826979c2ca8f5c9adf5d51c3d2c0a6422785cf690d044798a439e532a90eb399f776d0d7fdbc8673779a988a71629ba6dcbd3a572198a4cd4aef4dd1fedc7f WHIRLPOOL fcaed7d8f0bbe20c102e2798024452732d4fd1a1db9021b129a77986456b067398e10f16f141caa81e38a347e6cefc9c141449b91f5e119c2865de721984feef
+EBUILD obs-service-format_spec_file-20130618.ebuild 309 SHA256 d3bb7d641b72317306f202eaf6229dfa2e2f19a1595461af44921f852ec020e5 SHA512 603b74b3867e168dd6e1d31edeb8f9894e690974bbdbfb9ee243a21a5dbc56d5de8a85b094ed43bc44b6edea600330197d58c68f52004551362c97bb448feb64 WHIRLPOOL 577da6b313bbbbae8c554190c9133e9969c73da4095fa28923a089d64257df6772aeaa59e13971c0ba3c780457222ecc5e1d461262ff454bc6233d458c7f8c08
+MISC ChangeLog 2496 SHA256 fba470fabb7efe494ad97080450cd26ba4cf3a21ad9eb551282df2063fde0546 SHA512 7e54464e67702ae999387429ed7c5d5e9cc353bcea708a4edb68311ba2f0a3d425b14431a7b4401910e230c57ec83c76650ca86e7b703122ce9128f20755ec62 WHIRLPOOL d1545e7acb6a6c5bfaa8645641794ff38414f0bff9c2bba7e72f04d727480a5a69c0a29c719a5ca2179aeb890e9ad171c092d1457788769734e420ea2f2530c9
+MISC ChangeLog-2015 2647 SHA256 4abb5becdd3a969e5b3bb95de42b05d57691d07469435d84a9aa351ac7ad6ae4 SHA512 ee1c7a15defc8887392c6461c1a6a8bd7845e83029dc519e38698fdc645324f9b67b627235fe9508523c1b0de99fac627069be8c3867b738703b9b421012089a WHIRLPOOL a488affe45f3bc306facb6fd1427ee872d8611aa482b92b60d4362b75d445b60d8c69b9c23bd2d92568016dbaf9d825efb64f27287e069b5a3ed0aac856971ca
+MISC metadata.xml 603 SHA256 93f66224d026596b21a0b0609f5a3615e419162a39ea53330f34ea06a28261e4 SHA512 d329c319faf527d459c062b12767d26a3085a8e944b3570cd4b09a3547319158c84d5f2ac15cfcedfb3326acb197ab470817f2fe6bc3010b2bca428cef11ebf5 WHIRLPOOL 8d7e14d235f163101ab0ede3326fe4f6f7c9bfc4f57220eb77d8a049ff0ffabc2f61753c051e8a551cde53dc72d5060b34782e41411fae2ad29100a83731be25
diff --git a/dev-util/obs-service-format_spec_file/metadata.xml b/dev-util/obs-service-format_spec_file/metadata.xml
new file mode 100644
index 000000000000..ee9110e7992e
--- /dev/null
+++ b/dev-util/obs-service-format_spec_file/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="project">
+ <email>suse@gentoo.org</email>
+ <name>SUSE</name>
+</maintainer>
+<longdescription lang="en">
+This is a source service for openSUSE Build Service.
+
+This source service is formating the spec file to SUSE standard. The rational
+behind is to make it easier to review spec files from unknown packagers.
+
+This should be used in "trylocal" mode, so that osc is adapting the existing
+spec file instead of creating a new one.
+</longdescription>
+</pkgmetadata>
diff --git a/dev-util/obs-service-format_spec_file/obs-service-format_spec_file-20130618.ebuild b/dev-util/obs-service-format_spec_file/obs-service-format_spec_file-20130618.ebuild
new file mode 100644
index 000000000000..96be738c15fe
--- /dev/null
+++ b/dev-util/obs-service-format_spec_file/obs-service-format_spec_file-20130618.ebuild
@@ -0,0 +1,19 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+ADDITIONAL_FILES="
+ licenses_changes.txt
+ patch_license
+ prepare_spec
+"
+inherit obs-service
+
+IUSE=""
+KEYWORDS="amd64 x86"
+
+DEPEND=""
+RDEPEND="${DEPEND}
+ dev-util/obs-service-source_validator
+"
diff --git a/dev-util/obs-service-generator_driver_update_disk/Manifest b/dev-util/obs-service-generator_driver_update_disk/Manifest
new file mode 100644
index 000000000000..61fd17a63cb4
--- /dev/null
+++ b/dev-util/obs-service-generator_driver_update_disk/Manifest
@@ -0,0 +1,7 @@
+DIST BSKiwiXML-20130318.pm 7295 SHA256 9ca0eb48f8d1f93d05757622894866a9b03f6782329822983e6c2e082acca289 SHA512 1e6df1903b0ac8447a26385df4a83ccea62d2a9f698a1d46745216bb7b8f44563c8502791b4da42f702aaaad5f0e3597636de437194af457b366d7b42f492782 WHIRLPOOL ee2be557f75dac0871819e5786930a1000db41a9e72ce66a0642461c658b3cba5b21d2c695c099d48a297892f03983b49ed40c58ddfda1423a7a0faff3a5c282
+DIST generator_driver_update_disk-20130318 11776 SHA256 21397673ebf480654f078d5828e857176ad1b2278afe5735801ce5d695fda218 SHA512 155924d561e7256cd9ea0c862a538310c96014527f461c9256c2b6e11c8a820e8df38c111c3f7662c3f2ff73845450189970364f28904afebe2abc6366328213 WHIRLPOOL a12c81fec31d75d92297a44cd967fea14bf9fdc158d50f0fc0b229e2202639ba93d5e739da2c5db1f12805719b8993e82ebe979f0af9a34844de8ac2f7d821b3
+DIST generator_driver_update_disk-20130318.service 838 SHA256 8a39eaeb8d0492919948a03fc7c48de16942271a9cc8df2375c55f349db4e0fb SHA512 85ebeef1d79a37e81c5e8558a078f9b929e5f9b5b8960b7930bab7812846eda911210f9cdacff82686298c9b58f62560f99ed76a33d346f3c65be0738f9ff374 WHIRLPOOL 21a8c2d4e1c207deadafe9988849e51168d3e66bd3033d9275b138672890ce232ff1b4490ab3e2eeacc0cdfa5f32ebcb55d684fdc2c27504079994802a82a123
+EBUILD obs-service-generator_driver_update_disk-20130318.ebuild 391 SHA256 1a15332710341ff175e75cb612f899145f059d1843940be9c5052c16d2b15e08 SHA512 28b844bad72f840c41df9d53e6c3e241e52e725f859ad22f2a3099267d38338d161e243893c4e88dd364989972d2bf8fc86c6a76fbd2a0e94b1194d4756e6371 WHIRLPOOL ca6066be169e13372db4ff4c5a6b74152cecc2eecb9f234f8e7adb93724efd719e042531b1e71945bbc6d6c7f33ed7361c2380c1e64e40c9ce77d93b86947634
+MISC ChangeLog 2532 SHA256 13eb1c068618d0407b5c8f5f16934c5e95dad6353ce06fb10f2813d0dd4ae979 SHA512 3257e4fa8223df97202df96cb103c6c40a50638b9d1cd2ea77b0a4f46970584e4506b66a2668f475c984f0311344d6a258c20bd0c8852c4b6206868d39588e10 WHIRLPOOL 158762f95175dfe64d2ae42da83abfae3579417e4cb66bae198e5b3286e8985ef608a26f66cea2f57a43625d408a01c606990156f029ede6a30270fa352506a3
+MISC ChangeLog-2015 1132 SHA256 2379bb6388c483a44bce446a72ba06146448162072c74d3e3878f4214e6b16d4 SHA512 16c1fb39a78d04f611e8b9baf6efb1278cf8d0f4de6097da93dc59c76017aa17d69e4081a661603ffa11f3baf6476b0cf41c405caa87947e3e11c4d994a8edca WHIRLPOOL 9bf425f1f27e79e995e8eb36abfd1353ecc5867ecaa3020e977516fcbb824bff4e36a260b9c0b1fc53198c2c85859da4a85aa9d541d25d65f8bb3cf1b7ff49aa
+MISC metadata.xml 448 SHA256 ee74d6811686eca17b1017a6ce0efb337229dcf38dcadb121c82e9b423846e5a SHA512 f544445cb83288650c17bff5a3b472644ea2af586ccc2022e1dfa7a6865ac49b774b50bc63c894c55fea86dd4cc053a88062a0f83fa6fead0b5691698ea8f7e8 WHIRLPOOL 6d2b04d220781d58cc2e76984b74c557b033367f95576c6924d4a88c3c02323fc9503e07dac5140e31cd296d49f7908ca380a533954fa049856c13453d83531d
diff --git a/dev-util/obs-service-generator_driver_update_disk/metadata.xml b/dev-util/obs-service-generator_driver_update_disk/metadata.xml
new file mode 100644
index 000000000000..b2d1711cfd56
--- /dev/null
+++ b/dev-util/obs-service-generator_driver_update_disk/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="project">
+ <email>suse@gentoo.org</email>
+ <name>SUSE</name>
+</maintainer>
+<longdescription lang="en">
+This is a source service for Open Build Service. This service is parsing all spec files and downloads all Source files which are specified via a http, https or ftp url.
+</longdescription>
+</pkgmetadata>
diff --git a/dev-util/obs-service-generator_driver_update_disk/obs-service-generator_driver_update_disk-20130318.ebuild b/dev-util/obs-service-generator_driver_update_disk/obs-service-generator_driver_update_disk-20130318.ebuild
new file mode 100644
index 000000000000..c5cb32134a8c
--- /dev/null
+++ b/dev-util/obs-service-generator_driver_update_disk/obs-service-generator_driver_update_disk-20130318.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit obs-service
+
+SRC_URI+=" ${OBS_URI}/BSKiwiXML.pm -> BSKiwiXML-${PV}.pm"
+
+IUSE=""
+KEYWORDS="amd64 x86"
+
+DEPEND=""
+RDEPEND="${DEPEND}
+ dev-lang/perl
+"
+
+src_install() {
+ obs-service_src_install
+
+ insinto /usr/libexec/obs/service
+ newins BSKiwiXML-${PV}.pm BSKiwiXML.pm
+}
diff --git a/dev-util/obs-service-git_tarballs/Manifest b/dev-util/obs-service-git_tarballs/Manifest
new file mode 100644
index 000000000000..8f3c8e2db906
--- /dev/null
+++ b/dev-util/obs-service-git_tarballs/Manifest
@@ -0,0 +1,5 @@
+DIST obs-service-git_tarballs-0.1.7+git.1375261502.72b5224.tar.gz 11006 SHA256 b82cf6c1c7533e881a2feaad6393dabfcd37c067167f2a1b4a351c697be3b180 SHA512 4c8557aa0139a6b65a7993b5ebd5b3cbf3a9f9bbd7da50d56619ed6dc54bdba6e098af92163cf4819acc42e5d4106b6056f120c6f4d0cc38e67daf5c92cc0e6a WHIRLPOOL bd13f9085213c542da852b0a7f751511bc354d908c391cb8b034a24aeb6e6b50cdc776388faf56697a8084f3c1742e0767cfff977a7823164e157b95cae1deb3
+EBUILD obs-service-git_tarballs-0.1.7.ebuild 535 SHA256 793df81cf9b50a430b5c495e77929bed170a0d8482c4e72bec1aff7245fce59a SHA512 1c25ddea7c6e623dcc58a2a7384e2206f43f5efa9f0093e6854dca829917ec732fa3b57333cd3a181ed3349853dc2d4e258918c012e63295a4a25daa5287959a WHIRLPOOL 96ff2b16c69aedc2f6beff0dc62f6a99f0664ef26fc975726fcc7ee3f7bf57683736d6846a0d465a39551d242b8efaf57efe3a3c7931ea054dfdac8f6a3358f5
+MISC ChangeLog 2478 SHA256 bf048390e4163404dc2d47ada99f544cc524d9b1efd3be464fdf49de5928a527 SHA512 82a0fca57dc06dc704bae39dfe6fca772957ca358f148d631f65cb57e55ccddcb953cede0e206e9e2d625554d8a3bef847698b3c4125224d6f0ecfd52b11f60b WHIRLPOOL 3a6e5466631c30b771af147e4b2c701e779d5cecbf297a13e04de2a849f11d018998a305b525dde3ca5c4d97eefc552af99bb19e240a4c08c33d48abdbcb090d
+MISC ChangeLog-2015 460 SHA256 5b40cbed3bba76023a802ada3cac1b8dd6fd000cdf54c2109e742635b7fb11e5 SHA512 7606e449ca35c000d3cdcd6d1e734321f6f1dc7f451e96035631b9e45ecc96f51d84eab94656253a9a0279f14bbee2b3a44f12f718cfaf49dc399e25990ff7a2 WHIRLPOOL 623866cceb6c2369f7d1a9bbea9dcc3146a878a5cd54e59771289ed33095c45213baa8ac631f7ba429259bc225d72334e43a6c4c4ee382136bfecb564b943793
+MISC metadata.xml 448 SHA256 ee74d6811686eca17b1017a6ce0efb337229dcf38dcadb121c82e9b423846e5a SHA512 f544445cb83288650c17bff5a3b472644ea2af586ccc2022e1dfa7a6865ac49b774b50bc63c894c55fea86dd4cc053a88062a0f83fa6fead0b5691698ea8f7e8 WHIRLPOOL 6d2b04d220781d58cc2e76984b74c557b033367f95576c6924d4a88c3c02323fc9503e07dac5140e31cd296d49f7908ca380a533954fa049856c13453d83531d
diff --git a/dev-util/obs-service-git_tarballs/metadata.xml b/dev-util/obs-service-git_tarballs/metadata.xml
new file mode 100644
index 000000000000..b2d1711cfd56
--- /dev/null
+++ b/dev-util/obs-service-git_tarballs/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="project">
+ <email>suse@gentoo.org</email>
+ <name>SUSE</name>
+</maintainer>
+<longdescription lang="en">
+This is a source service for Open Build Service. This service is parsing all spec files and downloads all Source files which are specified via a http, https or ftp url.
+</longdescription>
+</pkgmetadata>
diff --git a/dev-util/obs-service-git_tarballs/obs-service-git_tarballs-0.1.7.ebuild b/dev-util/obs-service-git_tarballs/obs-service-git_tarballs-0.1.7.ebuild
new file mode 100644
index 000000000000..4ae8a446b50a
--- /dev/null
+++ b/dev-util/obs-service-git_tarballs/obs-service-git_tarballs-0.1.7.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit obs-service
+
+HASH="git.1375261502.72b5224"
+SRC_URI="${OBS_URI}/${P}+${HASH}.tar.gz"
+IUSE=""
+KEYWORDS="~amd64 ~x86"
+
+DEPEND=""
+RDEPEND="${DEPEND}
+ dev-vcs/git
+"
+
+S="${WORKDIR}/${P}+${HASH}"
+
+src_unpack() {
+ default
+}
+
+src_install() {
+ # different folder and files in this module
+ exeinto /usr/libexec/obs/service
+ doexe ${OBS_SERVICE_NAME}
+
+ insinto /usr/libexec/obs/service
+ doins ${OBS_SERVICE_NAME}.service
+}
diff --git a/dev-util/obs-service-github_tarballs/Manifest b/dev-util/obs-service-github_tarballs/Manifest
new file mode 100644
index 000000000000..06a4808bfe5c
--- /dev/null
+++ b/dev-util/obs-service-github_tarballs/Manifest
@@ -0,0 +1,5 @@
+DIST obs-service-github_tarballs-0.2.1.tar.gz 8837 SHA256 d39518f4ec0c1343bb56c496842323e0ae2d556f2c789e288ee1a23eaa22bebd SHA512 7e4d2b9bc5f27448d7c6f11e05307fdb5860ccfff285fc486a4b17ce475716db73fe026c5019674a7dea02dd3e892045eae735c8060735fd1384e2b672995599 WHIRLPOOL f211c9b11e2455edac4248ffd8e4db0e2e9b3dd993f85a7cf143202da69cac7a9803512aca4522911ebd195331ca9bf68f467d3306a9cca6897fe10bdc64ca15
+EBUILD obs-service-github_tarballs-0.2.1.ebuild 662 SHA256 ba82ba67dd135b9408c9b52a765edaac4ebc8e137d65ff9c7589359ddc13905b SHA512 914eb965c952cc97dafb1287777c934f522a7e388f51b564d080a640d3aad4348832f6e067e04bcdbf12ee67580ee9ccf2d53a4505c7aa290456243f54646c62 WHIRLPOOL e506d90a57d7b6f84a0ee90bc6ef3bfdcdd964967d6060b4a6ba677120e84fad34538d9359f90d01bb067c0b8a77640cb71536ee15da8109ca443871f98d7a63
+MISC ChangeLog 2487 SHA256 378f348530a04c233a53e7f9a3800941f2949608f0d2c98e8ebf4ff8c8bd03fd SHA512 82f4c1038889e4e5f7dc7b3feadca5cc0dad9ee541acdd2aa991916771d60ff5bee9b468023ea3448bace75ee3c4cc2c2f66d481c902a49cc408128cbdd644df WHIRLPOOL 0e346249faa3c2f66f4a92ff70cd1fcb6b54e2ee7e52f94180b5c93f4400d186c4554d9b09aed815ad813f4f6e27482f84e9a8762b004adb6f8dbb2751378aeb
+MISC ChangeLog-2015 460 SHA256 2223c1294bcdbccfe6be3cdb8c0aba4749970e5f971a92e4947e58ae7019d1f1 SHA512 2e1c96c4514c2590c69ce06b19dc7689f0202086bc41b95f9c6ab44303a4af63c75f2fe846142c87bfa875ada9ded42440f3e727238d5bed492d7928c857c72a WHIRLPOOL 93f9d890998f0c22753b1d4af944eab1bed123289ae10dae3bfbf472f574d6b4d83b2c25773a32132689a15c4578e00477437335d8067c0fb0aa3cb4abf3432c
+MISC metadata.xml 448 SHA256 ee74d6811686eca17b1017a6ce0efb337229dcf38dcadb121c82e9b423846e5a SHA512 f544445cb83288650c17bff5a3b472644ea2af586ccc2022e1dfa7a6865ac49b774b50bc63c894c55fea86dd4cc053a88062a0f83fa6fead0b5691698ea8f7e8 WHIRLPOOL 6d2b04d220781d58cc2e76984b74c557b033367f95576c6924d4a88c3c02323fc9503e07dac5140e31cd296d49f7908ca380a533954fa049856c13453d83531d
diff --git a/dev-util/obs-service-github_tarballs/metadata.xml b/dev-util/obs-service-github_tarballs/metadata.xml
new file mode 100644
index 000000000000..b2d1711cfd56
--- /dev/null
+++ b/dev-util/obs-service-github_tarballs/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="project">
+ <email>suse@gentoo.org</email>
+ <name>SUSE</name>
+</maintainer>
+<longdescription lang="en">
+This is a source service for Open Build Service. This service is parsing all spec files and downloads all Source files which are specified via a http, https or ftp url.
+</longdescription>
+</pkgmetadata>
diff --git a/dev-util/obs-service-github_tarballs/obs-service-github_tarballs-0.2.1.ebuild b/dev-util/obs-service-github_tarballs/obs-service-github_tarballs-0.2.1.ebuild
new file mode 100644
index 000000000000..a2acafce99b0
--- /dev/null
+++ b/dev-util/obs-service-github_tarballs/obs-service-github_tarballs-0.2.1.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+[[ -n ${OBS_SERVICE_NAME} ]] || OBS_SERVICE_NAME=${PN/obs-service-/}
+OBS_PROJECT="openSUSE:Tools"
+
+inherit obs-download
+
+DESCRIPTION="Open Build Service client module - ${OBS_SERVICE_NAME} service"
+HOMEPAGE="http://en.opensuse.org/openSUSE:OSC"
+LICENSE="GPL-2"
+SLOT="0"
+
+SRC_URI="${OBS_URI}/${P}.tar.gz"
+IUSE=""
+KEYWORDS="~amd64 ~x86"
+
+DEPEND=""
+RDEPEND="${DEPEND}
+ dev-util/osc
+ dev-util/suse-build
+ dev-vcs/git
+"
+
+src_install() {
+ exeinto /usr/libexec/obs/service
+ doexe ${OBS_SERVICE_NAME}
+ insinto /usr/libexec/obs/service
+ doins *.service
+}
diff --git a/dev-util/obs-service-meta/Manifest b/dev-util/obs-service-meta/Manifest
new file mode 100644
index 000000000000..a2721a1057ff
--- /dev/null
+++ b/dev-util/obs-service-meta/Manifest
@@ -0,0 +1,5 @@
+EBUILD obs-service-meta-1.ebuild 962 SHA256 57a4d612656c4d227471f35a12cd1a4509d72c794973ea10c5686a7296986013 SHA512 bf62281d590f8ae898d768e4e17b95d02dc88eea838f0223f1b27d9b289b9dba6450460c705f447af6a6d1921ecdd8e37f3a9eea3a5cac581f6efae55522188e WHIRLPOOL 9a6a3a37c1c62a3f47d765ecd93b543013c918103a073947443dbc6f0a3393a1ff7e3856469a855f4e1f2586840d5ee3d1477074330208f971bdb04279c73cc7
+EBUILD obs-service-meta-2.ebuild 1105 SHA256 eded7980b167e62719900bdc945226a4d5de4e309be8df6dadab78834430a8ad SHA512 c273c3b47355120c7b829885db2dbe07d9719d748eed913f17f7305fec23c566bfa19deddcc3d8719394eaf9e383213c85ed9f4aa405e0464fc7ebbdf8fcc54e WHIRLPOOL d410ccb0002b9039df8622c1e8365b3f9b1d14e13485987c8a6d1e65075614e5a0d344941e7527ca5d6732b3895940b37581d19425a982f0523d9303bcc4d889
+MISC ChangeLog 2508 SHA256 648b3a90f0ecbed95d8cd1b4ab5b6a7d10b030ad5004bdcb8f737cff1807859b SHA512 b5d652b1a698a52acfba4743ef028ea774384a43ce8e093cb1aa8267cda00ecf44c1957485371c821cf0cb4ee0a36edb8b4d5062d879409ca52c59588cb0a805 WHIRLPOOL 6e48de560a713f51063eabc3ee813bef6803477fc5136f7789a977407435eddc2ffaf00a2374e8d161ed19e25ef530ba5417a3a79b508e6aca11aae3d6e23a0a
+MISC ChangeLog-2015 726 SHA256 5e8156a2d32b29436da71a9d25ab540fc2eeaf24512e1d6c6f12256ed2323c5e SHA512 2bc438eec006caca4443831f30760391511bc1e677faece436f5e1c485ef551e3cc04699f271c7f5c989a7bb3bb9e1321617a438d72b9560b6558d2df24ea4dd WHIRLPOOL 21db94eb8d06748c9f3e6e991d340544d0cbca45542d0ee1d648f1f8a9ecef6349129861561000d4d557965a9201dc52afaf58f45353b38b44dbe404cf5ccf32
+MISC metadata.xml 523 SHA256 ba4b34d949d5212fb37293fa1a59f5c1caa5a841e34148cceafbc96e7ef59029 SHA512 b5abcca76da449c17761381a01547986b83fe19eac292e322e9fc21d5eefb8d38975b88f9ebb51ff72a843773d931f30dcce21f352808ac1573cb9c37d2312cb WHIRLPOOL a761fe3fc6e3e56948f4c915c1cdb6679c061e4fda80f92f5cafc654956107218cc8db806b517ea4059403b3b4e31577400b9ac307869e12fbb3a1b0a57991cb
diff --git a/dev-util/obs-service-meta/metadata.xml b/dev-util/obs-service-meta/metadata.xml
new file mode 100644
index 000000000000..96cb567641fc
--- /dev/null
+++ b/dev-util/obs-service-meta/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="project">
+ <email>suse@gentoo.org</email>
+ <name>SUSE</name>
+</maintainer>
+<longdescription lang="en">
+This is a source service for Open Build Service. This service runs all checks from osc-source_validator. This can be used to guarantee that all checks succeed also on the service side. This plugin can be used via project wide defined services.
+</longdescription>
+</pkgmetadata>
diff --git a/dev-util/obs-service-meta/obs-service-meta-1.ebuild b/dev-util/obs-service-meta/obs-service-meta-1.ebuild
new file mode 100644
index 000000000000..8ecafcd30405
--- /dev/null
+++ b/dev-util/obs-service-meta/obs-service-meta-1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+DESCRIPTION="Metapackage to pull all open build service services"
+HOMEPAGE="http://openbuildservice.org/"
+SRC_URI=""
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND="${DEPEND}
+ dev-util/obs-service-cpanspec
+ dev-util/obs-service-download_files
+ dev-util/obs-service-download_src_package
+ dev-util/obs-service-download_url
+ dev-util/obs-service-extract_file
+ dev-util/obs-service-format_spec_file
+ dev-util/obs-service-generator_driver_update_disk
+ dev-util/obs-service-recompress
+ dev-util/obs-service-set_version
+ dev-util/obs-service-source_validator
+ dev-util/obs-service-verify_file
+"
+
+pkg_postinst() {
+ if ! has_version dev-util/obs-service-tar_scm ; then
+ elog "You should consider installing also following package"
+ elog "if you plan to work with SCM packages:"
+ elog " dev-util/obs-service-tar_scm"
+ fi
+}
diff --git a/dev-util/obs-service-meta/obs-service-meta-2.ebuild b/dev-util/obs-service-meta/obs-service-meta-2.ebuild
new file mode 100644
index 000000000000..baa4befba8cc
--- /dev/null
+++ b/dev-util/obs-service-meta/obs-service-meta-2.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+DESCRIPTION="Metapackage to pull all open build service services"
+HOMEPAGE="http://openbuildservice.org/"
+SRC_URI=""
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND="${DEPEND}
+ dev-util/obs-service-cpanspec
+ dev-util/obs-service-download_files
+ dev-util/obs-service-download_src_package
+ dev-util/obs-service-download_url
+ dev-util/obs-service-extract_file
+ dev-util/obs-service-format_spec_file
+ dev-util/obs-service-generator_driver_update_disk
+ dev-util/obs-service-git_tarballs
+ dev-util/obs-service-github_tarballs
+ dev-util/obs-service-rearchive
+ dev-util/obs-service-recompress
+ dev-util/obs-service-set_version
+ dev-util/obs-service-source_validator
+ dev-util/obs-service-update_source
+ dev-util/obs-service-verify_file
+"
+
+pkg_postinst() {
+ if ! has_version dev-util/obs-service-tar_scm ; then
+ elog "You should consider installing also following package"
+ elog "if you plan to work with SCM packages:"
+ elog " dev-util/obs-service-tar_scm"
+ fi
+}
diff --git a/dev-util/obs-service-rearchive/Manifest b/dev-util/obs-service-rearchive/Manifest
new file mode 100644
index 000000000000..0857026fbaa4
--- /dev/null
+++ b/dev-util/obs-service-rearchive/Manifest
@@ -0,0 +1,6 @@
+DIST rearchive-20130802 2182 SHA256 dd72dd52f7453ebb01633c2c01f712c6fb891d74142db8ca4727f9e0edc2a51c SHA512 7266f142cdfcbcf9b96b36ed70d80e3640ec8897b98619abd885b892ffd6b86980bb337957879871b7b268bf72cc12e2b4bf8c1e0ecb9a45cf95a6f535ca0279 WHIRLPOOL 0ca606b91486c97df0192b20db6021004805cf29e96e2b9e7339d9af60f6808b444ee719405d2b7c5f89192f3d90a038f7a5d6b3254bd6be39b56ee29811bb58
+DIST rearchive-20130802.service 544 SHA256 5aceaa120cffcd59ff069eba9f01139463970b56842c1cd7478452139e585d1e SHA512 a228f780b5494d19565c190f4e97389a9e2fb6926ee939220df8862082f0cc881e5bdbaeac2db9085fcb57f47e4e43eb504c49929fc55a7954786e57d2a9925f WHIRLPOOL fe6da8b295c64a4e10ff7a26a1b344d37c342edc173ef4a59fdcbcaed68c20f1d145f39273c2f9a166b81f1a0219bf23df233e770383c280d387b878dd1a0503
+EBUILD obs-service-rearchive-20130802.ebuild 247 SHA256 cad81ac71634ab2185696a37734b9db7b722121e42001a8e0b9042b9c46d45a3 SHA512 dd7d850126cea03cd680fa94626ee8fac698ae154bf1c2c73124466182673fae24611e60ec3c37b29c81fd42364dc27e110945dde907f677d0d550cfc07da6ac WHIRLPOOL e4c0648cfb86f300dce862a5457a6a98f7d160c186ee7eeef1dca91807d2b7c4d6453e59c34e3f514b4f6e793fc4450036c6a5601665e634b47fc0da5b02e186
+MISC ChangeLog 2475 SHA256 c48b31fdc0ce53c1b3df4f8cec9127caf640c9d1b6a6a4a02bbd3b49bfc8ddf4 SHA512 ea288785a7ec7340596921bfdb667a703e6a44a4ce0dbc55bd7b76447e4c6cae2663352a2e8ce5578fa13ebcbe1105cea38d02e0909c76f7a5d6e73c0fdb80e0 WHIRLPOOL 78c724dd2aec3e4be20b48b7a932940715188f3143ac99daeee1eba70d4f3df5894527ea875eb2ccebb9e20acb65ec838e7c34cf37944b3c3fedc5dff45af283
+MISC ChangeLog-2015 454 SHA256 9fd01f1b48eddaf90d8177657c45d29d9fd2dee479a32879034c40b06b04295a SHA512 48fe4e1044d19377cbbb566fcefc527d3fd57f625a1189f2edaadb726cf6510b643a71c1d9cd5068423383976577153e5f5e5d9f5798039ddfc2e51c878e4169 WHIRLPOOL 12b9cd32531b491c9aa9ae7eb61bcfa4856695c911a7d7475e74c05164f2959fe5df40845b9d7530ace2c9f50549bb202207943a8716524650354ab2caa97de2
+MISC metadata.xml 367 SHA256 00ad7280a44b0384f16f0d0bf31071c8958c6f8fde389dbefb3a7a3c9523959d SHA512 6829a44be3d6bbb3da7533cb264206573be85362446618293441e6d9f30451932668318e2d74c47c586643463ffb9f4f2822995731df25ee187dcaa3d612164a WHIRLPOOL 5781a2ee4b27a19cda3b68d8a9028ffeae2183c1f4c96aeff39365cab1cd5305bc63802788c1557e26759368ff0cf712008b3783838f03a0bacad8ff85e22c5a
diff --git a/dev-util/obs-service-rearchive/metadata.xml b/dev-util/obs-service-rearchive/metadata.xml
new file mode 100644
index 000000000000..0a8ff0aac5da
--- /dev/null
+++ b/dev-util/obs-service-rearchive/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="project">
+ <email>suse@gentoo.org</email>
+ <name>SUSE</name>
+</maintainer>
+<longdescription lang="en">
+This is a source service for Open Build Service. It's a wrapper around cpanspec script.
+</longdescription>
+</pkgmetadata>
diff --git a/dev-util/obs-service-rearchive/obs-service-rearchive-20130802.ebuild b/dev-util/obs-service-rearchive/obs-service-rearchive-20130802.ebuild
new file mode 100644
index 000000000000..e7c8f22f7f8d
--- /dev/null
+++ b/dev-util/obs-service-rearchive/obs-service-rearchive-20130802.ebuild
@@ -0,0 +1,16 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit obs-service
+
+IUSE=""
+KEYWORDS="~amd64 ~x86"
+
+DEPEND=""
+RDEPEND="${DEPEND}
+ app-arch/gzip
+ app-arch/unrar
+ app-arch/unzip
+"
diff --git a/dev-util/obs-service-recompress/Manifest b/dev-util/obs-service-recompress/Manifest
new file mode 100644
index 000000000000..47799adfc01f
--- /dev/null
+++ b/dev-util/obs-service-recompress/Manifest
@@ -0,0 +1,5 @@
+DIST obs-service-recompress-0.2.tar.gz 1593 SHA256 7b458102204cbdae74bd72d4da6e0c77d3a6bc4e22880ad2e5278e89d7bf81af SHA512 085a6b47ca2a2930a41a6edcdbec85960c0d3c092e5d4e643c90c5bbc97f01ddbf35c73edad9293ffc0ff3254270a3f7ae2d6c500708bd4f41e355b5549a2585 WHIRLPOOL 24adce8a8b3ffc3bacc404a44ab27f46aaba827a40d079fb642296fa6e8c6af22ad94ee28aa5d4ff7e27be37533ff61062c22bd386ab133cc2ee4d3f9e9cf5c3
+EBUILD obs-service-recompress-0.2.ebuild 697 SHA256 98753b27c240f3903685338bf5938c402ee0994cb44feb826606b4ff8aa001fa SHA512 fb2881f11270eb819b41b5665ebeb69f760e43437686a9d459089dbb24b3ff5cf93c06c605818f8d62113b1f150df08d3a077b79e31238191620b36e39020e44 WHIRLPOOL 679e5f4fb46c422dba3aaa4b8b44dba9e5b5824f6d292ba608bd8c10409e3558aee9c7d88ba7a6135c36590b3ad97bde922eaaf916f60bc78429800e36f6b252
+MISC ChangeLog 2468 SHA256 8970092204fe6ff72fee310c67c37fe030a321b20187cd9cf137950b525e8fd5 SHA512 8d2083117ca66024e494342ef432859ccef311cc2a807610a4dc48224a069b57654bcb6b35dc3fdb5aff38c914197280d326f8f0e3412b3903f35ad41598a19c WHIRLPOOL 83fba3ec014f48aebe28bef113d3199d447d7789dd14e752c9d6fa7666c9cdfe8062f06610523d60764dbe5029f8f577f67ca894c82346fefe0ccb65706840cc
+MISC ChangeLog-2015 1210 SHA256 6bb9d3144e15c1b34ce3ca5b1fe38f38a03d05a79bb2db505ed4a0ca19d11e3c SHA512 02e9407fa47ddf7273d2bcc3d1ed2d012b024a24f7c28ff942255ea84acab0c82e060d4c532cb2aa8da975d919046e93fd13812800c1efeb90b39bbfc0427ac0 WHIRLPOOL 5b471b852542294ca2a294d2dd2ce440bb5cc58daff228141a6ea043694a2e34a2684d7ea3f2baca39aa9dc6b9db6b37882584e3c8884e1a56a7a2ad6d184ff6
+MISC metadata.xml 448 SHA256 ee74d6811686eca17b1017a6ce0efb337229dcf38dcadb121c82e9b423846e5a SHA512 f544445cb83288650c17bff5a3b472644ea2af586ccc2022e1dfa7a6865ac49b774b50bc63c894c55fea86dd4cc053a88062a0f83fa6fead0b5691698ea8f7e8 WHIRLPOOL 6d2b04d220781d58cc2e76984b74c557b033367f95576c6924d4a88c3c02323fc9503e07dac5140e31cd296d49f7908ca380a533954fa049856c13453d83531d
diff --git a/dev-util/obs-service-recompress/metadata.xml b/dev-util/obs-service-recompress/metadata.xml
new file mode 100644
index 000000000000..b2d1711cfd56
--- /dev/null
+++ b/dev-util/obs-service-recompress/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="project">
+ <email>suse@gentoo.org</email>
+ <name>SUSE</name>
+</maintainer>
+<longdescription lang="en">
+This is a source service for Open Build Service. This service is parsing all spec files and downloads all Source files which are specified via a http, https or ftp url.
+</longdescription>
+</pkgmetadata>
diff --git a/dev-util/obs-service-recompress/obs-service-recompress-0.2.ebuild b/dev-util/obs-service-recompress/obs-service-recompress-0.2.ebuild
new file mode 100644
index 000000000000..31af6a9e8911
--- /dev/null
+++ b/dev-util/obs-service-recompress/obs-service-recompress-0.2.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+[[ -n ${OBS_SERVICE_NAME} ]] || OBS_SERVICE_NAME=${PN/obs-service-/}
+OBS_PROJECT="openSUSE:Tools"
+
+inherit obs-download
+
+DESCRIPTION="Open Build Service client module - ${OBS_SERVICE_NAME} service"
+HOMEPAGE="http://en.opensuse.org/openSUSE:OSC"
+LICENSE="GPL-2"
+SLOT="0"
+
+SRC_URI="${OBS_URI}/${P}.tar.gz"
+IUSE=""
+KEYWORDS="amd64 x86"
+
+DEPEND=""
+RDEPEND="${DEPEND}
+ app-arch/bzip2
+ app-arch/gzip
+ app-arch/xz-utils
+ dev-util/osc
+ dev-util/suse-build
+"
+
+src_install() {
+ exeinto /usr/libexec/obs/service
+ doexe ${OBS_SERVICE_NAME}
+ insinto /usr/libexec/obs/service
+ doins *.service
+}
diff --git a/dev-util/obs-service-set_version/Manifest b/dev-util/obs-service-set_version/Manifest
new file mode 100644
index 000000000000..c91edc79963e
--- /dev/null
+++ b/dev-util/obs-service-set_version/Manifest
@@ -0,0 +1,5 @@
+DIST obs-service-set_version-0.3.tar.gz 1993 SHA256 31514b9d30d33df4e171ca9e9f299a562f4734b6fde7b135e38c986e6dae936b SHA512 a053c869199441aec54af3e170258297584c018a2d7b6a0f48119762ac2386f74b0a15132280d3428c948454cd4d0c8dadc65eb68d9439df40d55ba4f9e5da7a WHIRLPOOL 91156c82f9724b2bba428fbe7ea6ebe7a0b35411ab8a87abcb3322936f2fce6e870c52797dcd9bf9d51813ab5b8cf24d9c67f909a563b2ff40bdfeb0c4c70e5a
+EBUILD obs-service-set_version-0.3.ebuild 647 SHA256 02c259ac4261855e05d115d53304471e21412e03f9c6ec6237b8a70adaf2347d SHA512 6bebaa5504442f27349bf9ef6c402e633c459642d7177fc8239ec370342fc937c6f174034d60612003bcf816632556f0f6b08c35827bacb38ee603260166aa13 WHIRLPOOL c04161295f58889deb21254f2de76fec7e664b9b89708592c73dc7b60fe33ca9772036a5e6891ead2765a0ccf6b9382d3193bc2e31460f749b36d8f3d7269b71
+MISC ChangeLog 2471 SHA256 05df326362650b986f7c9261beec7590eb57a02c0db802c1184410c61dc5a4c5 SHA512 613bbf9b0cafbbf3686cd1cd1ac88b4bd248a669f44577d024c724029c8b6fbf914d196dc70dec20c25e0cdaebaec6849b66cf6e689e0e452466903cee24f306 WHIRLPOOL 2ed70c377bb710027802f32c05587fa1c17c03b049eb96b8a43732ebad23c8fc4decfba89416329a6ef5df932b6b51f947f150302a5d447418ed9a1f5afe0811
+MISC ChangeLog-2015 1362 SHA256 99ebac6b0b709d5b048e25ea850cf2a36b3944e5df6f74f4ffae533c880aaaf8 SHA512 f30ee2b4d3952ab52c355e6fbc30c509897c35cce01b8ce270d3616aaa22d02836dcde2e02360a42966b2256cebbaeef2e505cdd8e6006515f2f624f56ab156d WHIRLPOOL 1600cfe862cd27e78271830634a8b252f4614f71fe40756ac6c91a2a83c7bf5c98486d50b4cfcdb707aa225eb241c408a8fdde590e6c9b598401fd5dbb9358cc
+MISC metadata.xml 448 SHA256 ee74d6811686eca17b1017a6ce0efb337229dcf38dcadb121c82e9b423846e5a SHA512 f544445cb83288650c17bff5a3b472644ea2af586ccc2022e1dfa7a6865ac49b774b50bc63c894c55fea86dd4cc053a88062a0f83fa6fead0b5691698ea8f7e8 WHIRLPOOL 6d2b04d220781d58cc2e76984b74c557b033367f95576c6924d4a88c3c02323fc9503e07dac5140e31cd296d49f7908ca380a533954fa049856c13453d83531d
diff --git a/dev-util/obs-service-set_version/metadata.xml b/dev-util/obs-service-set_version/metadata.xml
new file mode 100644
index 000000000000..b2d1711cfd56
--- /dev/null
+++ b/dev-util/obs-service-set_version/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="project">
+ <email>suse@gentoo.org</email>
+ <name>SUSE</name>
+</maintainer>
+<longdescription lang="en">
+This is a source service for Open Build Service. This service is parsing all spec files and downloads all Source files which are specified via a http, https or ftp url.
+</longdescription>
+</pkgmetadata>
diff --git a/dev-util/obs-service-set_version/obs-service-set_version-0.3.ebuild b/dev-util/obs-service-set_version/obs-service-set_version-0.3.ebuild
new file mode 100644
index 000000000000..9e7ca4b56d9e
--- /dev/null
+++ b/dev-util/obs-service-set_version/obs-service-set_version-0.3.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+[[ -n ${OBS_SERVICE_NAME} ]] || OBS_SERVICE_NAME=${PN/obs-service-/}
+OBS_PROJECT="openSUSE:Tools"
+
+inherit obs-download
+
+DESCRIPTION="Open Build Service client module - ${OBS_SERVICE_NAME} service"
+HOMEPAGE="http://en.opensuse.org/openSUSE:OSC"
+LICENSE="GPL-2"
+SLOT="0"
+
+SRC_URI="${OBS_URI}/${P}.tar.gz"
+IUSE=""
+KEYWORDS="amd64 x86"
+
+DEPEND=""
+RDEPEND="${DEPEND}
+ dev-util/osc
+ dev-util/suse-build
+"
+
+src_install() {
+ exeinto /usr/libexec/obs/service
+ doexe ${OBS_SERVICE_NAME}
+ insinto /usr/libexec/obs/service
+ doins *.service
+}
diff --git a/dev-util/obs-service-source_validator/Manifest b/dev-util/obs-service-source_validator/Manifest
new file mode 100644
index 000000000000..66a8ab799c6b
--- /dev/null
+++ b/dev-util/obs-service-source_validator/Manifest
@@ -0,0 +1,5 @@
+DIST obs-service-source_validator-0.3.tar.bz2 18472 SHA256 7c2131cb5edda57c7f187c55f425c021167b36e2b0c246fd4a703d9b32baf8fe SHA512 129d69a896bbd157b781f6d9014420fa7a9717f6a48b677bbe99d5d92a242ff25be470108d6f6da00a170b3133b9fceaf8d7447f356e9ddc1090ba7f7d79c164 WHIRLPOOL b86727b0d67d5359ff098af02a5f36c5d61f964905801fcc84548e781ec765ccbe82562b728315532bfa9a2f49566501267193baca531b2d5e133cbe2fbf316b
+EBUILD obs-service-source_validator-0.3.ebuild 655 SHA256 fecde63f4f0007c888725e4ce30830befcf1dd2210a8f5d174c3dc7f97c45683 SHA512 8e93e5089f00c2021ff712a866b5cd8f0067b1e446df61b3f17994c929fee7a4dded124b08a2ecf401848dbe7a934d9aa602ae924526812d091f42c775960855 WHIRLPOOL 6ca51a4762484986503dbd8b426909adab9b9dbf8dffd84fb5546d25e581ed00f0f89cfb91ab1087fbdd9ab481d7a7f08e04260755b09a95d0f4e7076e858eaf
+MISC ChangeLog 2486 SHA256 77d331ac707679d96bf101b1a5ed76dfe68caba90a08d1826afccc40755ff4dc SHA512 99e884501a9aae7d8d5617f150fcd39c7b30149b2b81c0a8fdee0eaf0868c40bbe80f02f18965348cf54e4f81562e77a43f71ed56822f88beb1a3ac3de15618b WHIRLPOOL d0407d2cfcc47a74d395ddb3517f68a7afbb688ee0ea322b36dffd4407920b719db46afb8573198d498e421423ea636a221f91966f4401a2ac6216d7a44037a5
+MISC ChangeLog-2015 2450 SHA256 7ede176d8c1785919937b94fed708d0250fc372e7603cf1b62de4547e3134866 SHA512 aabeff2b99e8d5067f5586621b5ca9b21b69b1e9202a10e1f66c85e2cd31bddf72e382c35e8f9ec56b7a19f6946b3393f9893d9e1f558875e830cbcf6b234d17 WHIRLPOOL a76daac8c96d6678e30e29bae388ea2209c3d28ad96f2795b8a8febb3f4ad625b451b7c0cb9dd14cce0e71152be39430151ed80d3a154d9a3b33fd9f814b3d2c
+MISC metadata.xml 523 SHA256 ba4b34d949d5212fb37293fa1a59f5c1caa5a841e34148cceafbc96e7ef59029 SHA512 b5abcca76da449c17761381a01547986b83fe19eac292e322e9fc21d5eefb8d38975b88f9ebb51ff72a843773d931f30dcce21f352808ac1573cb9c37d2312cb WHIRLPOOL a761fe3fc6e3e56948f4c915c1cdb6679c061e4fda80f92f5cafc654956107218cc8db806b517ea4059403b3b4e31577400b9ac307869e12fbb3a1b0a57991cb
diff --git a/dev-util/obs-service-source_validator/metadata.xml b/dev-util/obs-service-source_validator/metadata.xml
new file mode 100644
index 000000000000..96cb567641fc
--- /dev/null
+++ b/dev-util/obs-service-source_validator/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="project">
+ <email>suse@gentoo.org</email>
+ <name>SUSE</name>
+</maintainer>
+<longdescription lang="en">
+This is a source service for Open Build Service. This service runs all checks from osc-source_validator. This can be used to guarantee that all checks succeed also on the service side. This plugin can be used via project wide defined services.
+</longdescription>
+</pkgmetadata>
diff --git a/dev-util/obs-service-source_validator/obs-service-source_validator-0.3.ebuild b/dev-util/obs-service-source_validator/obs-service-source_validator-0.3.ebuild
new file mode 100644
index 000000000000..8a85f2cb822e
--- /dev/null
+++ b/dev-util/obs-service-source_validator/obs-service-source_validator-0.3.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit obs-service
+
+# only one sanely packed service
+SRC_URI="${OBS_URI}/${P}.tar.bz2"
+
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="dev-perl/TimeDate"
+RDEPEND="${DEPEND}"
+
+src_unpack() {
+ default
+}
+
+src_install() {
+ # different folder and files in this module
+ exeinto /usr/libexec/obs/service
+ doexe ${OBS_SERVICE_NAME}
+
+ insinto /usr/libexec/obs/service
+ doins ${OBS_SERVICE_NAME}.service
+
+ exeinto /usr/libexec/obs/service/${OBS_SERVICE_NAME}s
+ doexe [0-9]*
+ exeinto /usr/libexec/obs/service/${OBS_SERVICE_NAME}s/helpers/
+ doexe helpers/*
+}
diff --git a/dev-util/obs-service-tar_scm/Manifest b/dev-util/obs-service-tar_scm/Manifest
new file mode 100644
index 000000000000..cd2dd65f6f4e
--- /dev/null
+++ b/dev-util/obs-service-tar_scm/Manifest
@@ -0,0 +1,5 @@
+DIST obs-service-tar_scm-0.3.1.1383144507.58d1af8.tar.gz 18252 SHA256 fab9fc62f38964973a7570692b488e85a4ba8e1b53629f1324b98b0749cfdb90 SHA512 c150e6a0867befacfbd029726e997b3e64307646e2887d00e6ad7493ac2bd9200afd7bfb9057255549ff87cc5280161edc7c96f31c7fcfa572ab4b96ba74cfbe WHIRLPOOL d2c521a14e1461889e774fbebf04984c35115533714f62f21f62b0fea6830a5b0e70bc09b62c98c89b0630e0741c21204137b7df39e845f8e1087dfa94805b01
+EBUILD obs-service-tar_scm-0.3.1.ebuild 660 SHA256 c25c124b515143ffcbf9b840079c20dc0a5d83cb5dc99bcfbbb0a0009ef69900 SHA512 692ce8d5dd5d609d0da701260534bfbd52cac70768b30095e6a7895ebeed68d6f956581055bff2522e46353cd4efd62f13205efe40d6dc3bbdcadc53d1292972 WHIRLPOOL 0058abc4570fbeee471a2b23b9c5bb5a20b1f97cfbb7e3c85073a56914261a51ad1d5bf620ac6c8ae7daba404e423efc3ce389039b85db81297f86c5c2625294
+MISC ChangeLog 2463 SHA256 7c9a4b3d0343d6b887daf3d32594038f8bd87538a4c0467461f1ceb43c1c6e41 SHA512 7d3c28b95ede47bb46d47bf29257fee29176c3bd55658c5f73de094a5e825afb858f4cb3a98dd9b481966a817d842aaa47f662ba94a12f49667b1090da62ac27 WHIRLPOOL e63174b37a4be50300b4d61d71c0c76c1e8278cfedf9b227d7f223bf865e2bd1d05d691170b126625c0b564062c1386521bfd25d6b0fa2b327bba95e08c9b30c
+MISC ChangeLog-2015 1162 SHA256 1d5737f82229dfd2cbf24f503200ba83c93e4c7289ffd7aba4e2f35994a2398b SHA512 4219c2eb7b66fccd093e7a7d837282192468a9b81be5b8ade23c062b0ce05d82eace5fe56b44bf5a6251eafb4cc5322b2d9762fb29e0fcadfcce4753209e66b4 WHIRLPOOL e34f78c9d9e40ec15e5d811eab4fec49a85bd243ff68c5764eebf72021dd19ab69897965042a322c6c05315bfff2570178b654a039274514b8d1cf86d0a8bb9f
+MISC metadata.xml 448 SHA256 ee74d6811686eca17b1017a6ce0efb337229dcf38dcadb121c82e9b423846e5a SHA512 f544445cb83288650c17bff5a3b472644ea2af586ccc2022e1dfa7a6865ac49b774b50bc63c894c55fea86dd4cc053a88062a0f83fa6fead0b5691698ea8f7e8 WHIRLPOOL 6d2b04d220781d58cc2e76984b74c557b033367f95576c6924d4a88c3c02323fc9503e07dac5140e31cd296d49f7908ca380a533954fa049856c13453d83531d
diff --git a/dev-util/obs-service-tar_scm/metadata.xml b/dev-util/obs-service-tar_scm/metadata.xml
new file mode 100644
index 000000000000..b2d1711cfd56
--- /dev/null
+++ b/dev-util/obs-service-tar_scm/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="project">
+ <email>suse@gentoo.org</email>
+ <name>SUSE</name>
+</maintainer>
+<longdescription lang="en">
+This is a source service for Open Build Service. This service is parsing all spec files and downloads all Source files which are specified via a http, https or ftp url.
+</longdescription>
+</pkgmetadata>
diff --git a/dev-util/obs-service-tar_scm/obs-service-tar_scm-0.3.1.ebuild b/dev-util/obs-service-tar_scm/obs-service-tar_scm-0.3.1.ebuild
new file mode 100644
index 000000000000..d3d82662a49f
--- /dev/null
+++ b/dev-util/obs-service-tar_scm/obs-service-tar_scm-0.3.1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit obs-service
+
+HASH="1383144507.58d1af8"
+SRC_URI="${OBS_URI}/${P}.${HASH}.tar.gz"
+IUSE=""
+KEYWORDS="amd64 x86"
+
+DEPEND=""
+RDEPEND="${DEPEND}
+ dev-vcs/bzr
+ dev-vcs/git
+ dev-vcs/mercurial
+ dev-vcs/subversion
+"
+
+S="${WORKDIR}/${P}.${HASH}"
+
+src_unpack() {
+ default
+}
+
+src_install() {
+ # different folder and files in this module
+ exeinto /usr/libexec/obs/service
+ doexe ${OBS_SERVICE_NAME}
+
+ insinto /usr/libexec/obs/service
+ doins ${OBS_SERVICE_NAME}.service
+
+ insinto /etc/obs/services
+ newins ${OBS_SERVICE_NAME}.rc ${OBS_SERVICE_NAME}
+}
diff --git a/dev-util/obs-service-update_source/Manifest b/dev-util/obs-service-update_source/Manifest
new file mode 100644
index 000000000000..a234684f9408
--- /dev/null
+++ b/dev-util/obs-service-update_source/Manifest
@@ -0,0 +1,6 @@
+DIST update_source-20130802 4081 SHA256 1c3dea734bf0826a9e3dcff97dc53c9e9acaed080eaa7bed51aeac5cc611a2fe SHA512 24a28c9f487b9ecc247988dcffc3ab612fa11b33824f9b3f1537548722186143dfeefe5208444383a918baa599fc57994dc6a7ae7049aea8108c087fd49f6e17 WHIRLPOOL 51574e12ba70a9cc5b8fe071fc88651439d52acd5648e3b949b01227003099ce269766c1aa533bd8d71a16b49a562a4da98ef6ed4fb67727b57efdd119e32519
+DIST update_source-20130802.service 486 SHA256 86f4703f355891aa55f1ed2b064f18171d705c1e704811f2aedd3b5354c6d9ea SHA512 3cfb25566f2806c145bca0817976e7129436334706c2f0022fe7e94be62ce11b8e2420c2e97c24999bcda1de88850a589e5b6a0de633a27cdce52b4253965818 WHIRLPOOL 104c1f9242c2dfa268d027c1d865f71ec5850a29668ca5a25c5b8dab678ebfe918a155c821ac4d154997161b72763fd992c9b695ad709c4ee370e93206d2709e
+EBUILD obs-service-update_source-20130802.ebuild 235 SHA256 90eda883d437c4da76dbcc2c034d306f82bee477482d04d128651551f9a90f63 SHA512 5b2512a4c45a0259432f35b1e48dfdf5f9a2290740d5cafe60855af329edbd4619b9209ef8d8fa0f405749a6b1b601aea706fe95ef14ee660fa857cc11e77013 WHIRLPOOL 6cf05c95d4ada3f95b3b3578e1626b8c70c38911dc725d20ac6f0bf6021e3a202b22de8d737fc644c55b60be24a39cd51473ddb7ccf61623bdd83c71bffb9f37
+MISC ChangeLog 2487 SHA256 006304fb420aa42b229de949df682fd330d26b96bed9c89abff744835f6774a9 SHA512 04dc4b79765e7e8e7afc5ebc53d96e5bce5f1b95c610f20377f001024feb2bdc42353de3ab14f70f8b2e21f81fcd4c01e65e3cf0d0cc418fef5ece5aaf5e74e0 WHIRLPOOL 3d345a2588be2f2f7100861264349e95dc1d8dea133224a8f36fe40ea7e1d68b84a42c902b491a4c2aae3f7506f8473e169ac4f9a504eab90ad45d0c6600b14a
+MISC ChangeLog-2015 454 SHA256 0b9e4d8500e13a2d1136a9644318225b0412c898c178e65cf81b6f7ea3b62a6d SHA512 bf6eab9a8268928f06791a98abb0da40219cc1d381fb810da16111395b56a647dc8a02cc145efad4fa9fb89f2ab8af37c35b0fa590ccd228c27a4fdc47782223 WHIRLPOOL 3131bbbdb36c3c631b9e06bf908bd82f93cb5abe1c832c3ae609db10bc11934b5c18e7c041259726a48b6403b4ce3ab08069040c2c4bf2bf68d03c351aa520dc
+MISC metadata.xml 367 SHA256 00ad7280a44b0384f16f0d0bf31071c8958c6f8fde389dbefb3a7a3c9523959d SHA512 6829a44be3d6bbb3da7533cb264206573be85362446618293441e6d9f30451932668318e2d74c47c586643463ffb9f4f2822995731df25ee187dcaa3d612164a WHIRLPOOL 5781a2ee4b27a19cda3b68d8a9028ffeae2183c1f4c96aeff39365cab1cd5305bc63802788c1557e26759368ff0cf712008b3783838f03a0bacad8ff85e22c5a
diff --git a/dev-util/obs-service-update_source/metadata.xml b/dev-util/obs-service-update_source/metadata.xml
new file mode 100644
index 000000000000..0a8ff0aac5da
--- /dev/null
+++ b/dev-util/obs-service-update_source/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="project">
+ <email>suse@gentoo.org</email>
+ <name>SUSE</name>
+</maintainer>
+<longdescription lang="en">
+This is a source service for Open Build Service. It's a wrapper around cpanspec script.
+</longdescription>
+</pkgmetadata>
diff --git a/dev-util/obs-service-update_source/obs-service-update_source-20130802.ebuild b/dev-util/obs-service-update_source/obs-service-update_source-20130802.ebuild
new file mode 100644
index 000000000000..0ca3539359e9
--- /dev/null
+++ b/dev-util/obs-service-update_source/obs-service-update_source-20130802.ebuild
@@ -0,0 +1,15 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit obs-service
+
+IUSE=""
+KEYWORDS="~amd64 ~x86"
+
+DEPEND=""
+RDEPEND="${DEPEND}
+ net-misc/wget
+ sys-apps/diffutils
+"
diff --git a/dev-util/obs-service-verify_file/Manifest b/dev-util/obs-service-verify_file/Manifest
new file mode 100644
index 000000000000..643dadac0215
--- /dev/null
+++ b/dev-util/obs-service-verify_file/Manifest
@@ -0,0 +1,6 @@
+DIST verify_file-20130403 1279 SHA256 34a8aad8ae563e150a72805749aca54275183ec9012d6bfb950922c862e14bf2 SHA512 8fd6771c6c93766429d58620750132a6139df34041009f890792458c2f6de4efd8548c1f9f96aba051563d32a60294bae7e14d6c5523db345787c609e1a0a5dc WHIRLPOOL 5949e94a6b11b5816076a753f0f6c48ac2db96a64a177f78197e696c00a6e43f4d16fb2b3fe2187673e2b88d14f83acdb10cd5b3a82b6de5ffbc4e05694cd194
+DIST verify_file-20130403.service 513 SHA256 210c28bceaf3c8bb9db8b53f0fd6115d209005458ce58066ba5b541ebd3cc1c0 SHA512 3ad6b31fc5599ebf3389f32b909c8859b78a2134079692e2891aa03cca1b9fea420f6796d762fbceb431c6216610427fb33fb2d58859a521ff34639cab38a63c WHIRLPOOL 94785b9324b185ff0515ab0ff7fc2bb74abd634286299fa7bbaed6b5748c77ab9aa3541401e1a31ebacf21487d9faaf0447266bcf542d15780f00e79381319c6
+EBUILD obs-service-verify_file-20130403.ebuild 227 SHA256 1c170943cf321889dcfdacd3a9bf9b60f6ee1c9387a8147fd962d246c76f69e5 SHA512 d967efea3eed4ca6245ad248cc6e40162581a43945c0016afe7b149332fc93faa60a3053d6cabec417202e94c69ec9984f8d5e6704994303b55e3f850066e29e WHIRLPOOL e13a6d2d5ede5e9887921d6f83af57941c5d25adccb9d4a0ffbf7f289f404f074f5fa9771ff7f7b76dea630712fff9b77854b33a9747e8dfa6bc32154df8655c
+MISC ChangeLog 2481 SHA256 06dc0b2ec5f73bd7518a68ec2bab43c3baac6dd6e6dcf8a2abe7894665224825 SHA512 adb2cdb239b3e09dce434a4f4ee04298635e423e53efbde5eb4346b8b2c9cab56fc409042974ba0f82fa8fbf8ed8d409dbc254f03bb250b12e09b1a571e70a5b WHIRLPOOL db968910dd4174333fe075bb0c106e07e944bad130e8a92213d50b85951a4da6c89cd81816bd72773edbd4c01c83b17d919bfffa5cb69f3d4a513010981483b7
+MISC ChangeLog-2015 1262 SHA256 608980365efdd3ce4bb015e5e441002729f66252de7511e269602eac4e815ec9 SHA512 7274b9fb6ce884cf37f0e93969ef5bee63d3404acf3fe7105307ed53579b114edbea70da879064425287cbd5645e2663abe1d05d49bb145c9717e1d5521a7afa WHIRLPOOL 2e8fff85dac08f37cf6f80a71e75f3098ad269e8169eff66801b2c333cd506c97f42dd5bb5bc29b8488ffe77c5a75faedf5cd766040edfe8fef1fa55b0b9cfaa
+MISC metadata.xml 448 SHA256 ee74d6811686eca17b1017a6ce0efb337229dcf38dcadb121c82e9b423846e5a SHA512 f544445cb83288650c17bff5a3b472644ea2af586ccc2022e1dfa7a6865ac49b774b50bc63c894c55fea86dd4cc053a88062a0f83fa6fead0b5691698ea8f7e8 WHIRLPOOL 6d2b04d220781d58cc2e76984b74c557b033367f95576c6924d4a88c3c02323fc9503e07dac5140e31cd296d49f7908ca380a533954fa049856c13453d83531d
diff --git a/dev-util/obs-service-verify_file/metadata.xml b/dev-util/obs-service-verify_file/metadata.xml
new file mode 100644
index 000000000000..b2d1711cfd56
--- /dev/null
+++ b/dev-util/obs-service-verify_file/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="project">
+ <email>suse@gentoo.org</email>
+ <name>SUSE</name>
+</maintainer>
+<longdescription lang="en">
+This is a source service for Open Build Service. This service is parsing all spec files and downloads all Source files which are specified via a http, https or ftp url.
+</longdescription>
+</pkgmetadata>
diff --git a/dev-util/obs-service-verify_file/obs-service-verify_file-20130403.ebuild b/dev-util/obs-service-verify_file/obs-service-verify_file-20130403.ebuild
new file mode 100644
index 000000000000..47d7404b6f41
--- /dev/null
+++ b/dev-util/obs-service-verify_file/obs-service-verify_file-20130403.ebuild
@@ -0,0 +1,15 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit obs-service
+
+LICENSE="MIT"
+IUSE=""
+KEYWORDS="amd64 x86"
+
+DEPEND=""
+RDEPEND="${DEPEND}
+ net-misc/wget
+"
diff --git a/dev-util/omake/Manifest b/dev-util/omake/Manifest
new file mode 100644
index 000000000000..2acae10bd199
--- /dev/null
+++ b/dev-util/omake/Manifest
@@ -0,0 +1,10 @@
+AUX omake-0.10.2-cflags.patch 353 SHA256 0c4a3d96169595539cbb53b43a14b086366f750d4a47f51edb4d413fb8af380b SHA512 460ff11b457eb99f2d3a89f862deffcddc8ccddfeac7b4c7d5cce78544bb223feffb448cc39c440e03a2d028698180cc7439f3b39dd07ce237cc60cedf7e7d37 WHIRLPOOL 36f17d93a3a1064111054e8543bfb69f50e1e8cdf03c6a64a677009bbba9d6be02cff67cd6d18d0783801921a46d61f531d25e6f0039e9660c8fb83a9f0dade9
+AUX omake-0.9.8.6.0_rc1-cflags.patch 231 SHA256 88e8a494f7591dbd8dc9689820b8ea2f84aaae31c31e48451dbc42eb3fc81424 SHA512 733aeb2288b8c6494eb4a46ceff2a88149477ae95da8470f11fa321b3f1623adae13169effb95f45c16fff893d610af05be54ad892c4d7a97019e2a12fe3d19b WHIRLPOOL 8e59093e87243c20067809a96ed4e982eabb8bdef961796c76468b4d1d59669529a6dce522680ee5f8ea482d53d84a7971a6edc47186324fb019a407afcaeaeb
+AUX omake-0.9.8.6.0_rc1-warnerror.patch 287 SHA256 34e3622e74fb8dc5b2c821fec3e3fb66c6c55a30fabdd8ce91651a61ae315be5 SHA512 0b099c314e2eb19ab48eca873710f3c5716b4a2b82048ddd5baf3b2c7a82de5245ca36f1f72c6dbdbd79bd023de7ab3716a6c46c87986d00db2ec3661daa9d50 WHIRLPOOL 278dde3a985a9f94b3efb4520c4b795932274715a78885304f806322b369c084c905e910eeded529239f819fd1d11dcf261faf6e624e96614af06ba9553f7c36
+DIST omake-0.10.2.tar.gz 2434316 SHA256 c454f20535d91082294b150beebde3d0542f52be81daed17211326f4efa4d6fe SHA512 22c454825287dd54272874ec3aa7c5a79f7eac79e18a3eefd4b2e90a08f9767307b0f627d71049a4c08776c85318ce096e89fcc5619d3ec78cc073744efd0fbd WHIRLPOOL 86078e22c975b03f48968e02722374be61f24f1df9b402eeac87d0305c73e1558f2d9b6e74e419a911f797e74dd330fee192591f695ff2bdfbcfa56a90372a4c
+DIST omake-0.9.8.6-0.rc1.tar.gz 3254283 SHA256 23c498f071723621dd5e1e29c1abefd6937c73c67bb85d223fd514b9ae005ae9 SHA512 10a7ef6746c656d25852d408fafdd67a95acc59b73c892f0dbc316f2a01949b5349d5203c9fe2400cc7c05e14a7b1bc075603bd462ab74b60427d944f8e177d0 WHIRLPOOL d7da243aff8b6ff12f943db997bb644cfb88117b4deadb8ebea698537d864ede4084acc4afe7314a93eb24fa3a4092dbb24ecfb28cabff85c0214a03d89b44c6
+EBUILD omake-0.10.2.ebuild 1155 SHA256 5e7a27d2e7c03b584b1ab0f51c7d7c33283baf3efcbc3fe659d216c9d9b918ad SHA512 79b90c2feab16dc5520897f752e771ab0c1578d92f0d7d8fd6a6e88e298c7e6493334ad10895efef98158d7f4e42e0971954a81ab4a0037f5aa89dc72e895c06 WHIRLPOOL 777c995ff7cd5adffc4b078c1225a2cdc06fa37f7b9eff1ef545724a2042b2d64c7236702a6c67d357893c55a42533434063f29822ca9e3842009444c98be709
+EBUILD omake-0.9.8.6.0_rc1.ebuild 2000 SHA256 f2171eac7c4c123dc89189a27f25ea9436fb9cb740785724b0c77b09d23e10cb SHA512 b1ca3e4b4687a1535fb4908cd02235706f8138ee6f2b2de66e3363c6800b3b4eb63c5389fba03e8e630848edbe03ca74ac3f1351c20f148595554095cd5cc25e WHIRLPOOL 29149e37aa1519d179f87cb3355956550fb93767ec4a4b9e4b9e3d349569fbc6ddd51804301c537762e1013b32a02add078c6bd65f88b14c673a92370390c717
+MISC ChangeLog 2811 SHA256 4aad1c278d91673b85084d4df551b082e0e1d2c4900592511285416148a9c025 SHA512 575f16d9822f230948ac315a538f15642943f8abc8396b84e22867ca1d58b59a9d34caf9e3bb6a49435c0e592befa724a7c4451374648e13d0eea22ca5c007cb WHIRLPOOL aaee3010bc1d9896d5a36d752ab95fde1e0f4b5fb16421ab458d22e7cc6ecd92870efc00dfb8b65d1b88366bc2de95669e4f13a26884f698d5958692ae9ca8cd
+MISC ChangeLog-2015 4069 SHA256 0c6239db1f9e051e14dd7965585385f133b2b605513055247e3cf2cd97d68129 SHA512 ef2c842904c4ff51b6ae893c2bc4ae3e926580e127ca79e73a7a564ea7b0ce1ac1ebbfec9fb157561cbf11b0714425f4a4cf80de71e050ec987b6f2d309ddf5c WHIRLPOOL 0026dba5815d841efef936a165d4b14bbb3dbc5bc157931e5f7cfcb7c56ae1e26c2097ae2dd364e224cbdcdd27096c2261cb7aae3f55e54de7024ea9eefb5f04
+MISC metadata.xml 243 SHA256 5e9b58b0b795266f973d066675839499e3a56d7d932d702404a4b91ded8eb26c SHA512 1c5b4b2163017e496999d1f87e5c9c5ac6c11b2e9187450ccfb3df258f34e54d278972f04ee0e8429476c6f87e091a869ac2a28c6e8c8e6d20678c3e74061449 WHIRLPOOL 085df2e84901cbe563c7c1d30d04c229547f15f8ee26ac61d44d07c3f6999f2bbfa4cf309963172fb507cce5450d27598b762c3ccab92351601965c3afc05e3a
diff --git a/dev-util/omake/files/omake-0.10.2-cflags.patch b/dev-util/omake/files/omake-0.10.2-cflags.patch
new file mode 100644
index 000000000000..b4dc9ee38aa7
--- /dev/null
+++ b/dev-util/omake/files/omake-0.10.2-cflags.patch
@@ -0,0 +1,13 @@
+Index: omake-0.10.2/OMakefile
+===================================================================
+--- omake-0.10.2.orig/OMakefile
++++ omake-0.10.2/OMakefile
+@@ -49,7 +49,7 @@ else
+ #
+ # Extra options for the C compiler
+ #
+- CFLAGS += -g -O2 -Wall -Wno-unused
++ CFLAGS += -Wall -Wno-unused
+
+ #
+ # We never need threads on Unix
diff --git a/dev-util/omake/files/omake-0.9.8.6.0_rc1-cflags.patch b/dev-util/omake/files/omake-0.9.8.6.0_rc1-cflags.patch
new file mode 100644
index 000000000000..a6eaf707c971
--- /dev/null
+++ b/dev-util/omake/files/omake-0.9.8.6.0_rc1-cflags.patch
@@ -0,0 +1,11 @@
+--- a/OMakefile
++++ b/OMakefile
+@@ -33,7 +33,7 @@
+ #
+ # Extra options for the C compiler
+ #
+- CFLAGS += -g -O2 -Wall -Werror -Wno-unused
++ CFLAGS += -Wall -Wno-unused
+
+ #
+ # We never need threads on Unix
diff --git a/dev-util/omake/files/omake-0.9.8.6.0_rc1-warnerror.patch b/dev-util/omake/files/omake-0.9.8.6.0_rc1-warnerror.patch
new file mode 100644
index 000000000000..cf8a7972027d
--- /dev/null
+++ b/dev-util/omake/files/omake-0.9.8.6.0_rc1-warnerror.patch
@@ -0,0 +1,11 @@
+--- a/lib/build/OCaml.om
++++ b/lib/build/OCaml.om
+@@ -176,7 +176,7 @@ public.PREFIXED_OCAMLPACKS =\
+ #
+ declare OCAMLDEPFLAGS
+ public.OCAMLPPFLAGS =
+-public.OCAMLFLAGS = -warn-error A
++public.OCAMLFLAGS =
+ public.OCAMLCFLAGS = -g
+ public.OCAMLOPTFLAGS =
+ public.OCAMLCPPFLAGS =
diff --git a/dev-util/omake/metadata.xml b/dev-util/omake/metadata.xml
new file mode 100644
index 000000000000..ffac4d7ebc01
--- /dev/null
+++ b/dev-util/omake/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="project">
+ <email>ml@gentoo.org</email>
+ <name>Gentoo ML Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/dev-util/omake/omake-0.10.2.ebuild b/dev-util/omake/omake-0.10.2.ebuild
new file mode 100644
index 000000000000..46e34cdb6a51
--- /dev/null
+++ b/dev-util/omake/omake-0.10.2.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit toolchain-funcs multilib eutils
+
+RESTRICT="installsources"
+DESCRIPTION="Make replacement"
+HOMEPAGE="http://projects.camlcity.org/projects/omake.html"
+SRC_URI="http://download.camlcity.org/download/${P}.tar.gz"
+LICENSE="GPL-2"
+
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="doc fam ncurses +ocamlopt readline"
+DEPEND=">=dev-lang/ocaml-3.10.2:=[ocamlopt?]
+ ncurses? ( >=sys-libs/ncurses-5.3:0= )
+ fam? ( virtual/fam )
+ readline? ( >=sys-libs/readline-4.3:0= )"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}/${P}-cflags.patch"
+}
+
+src_configure() {
+ ./configure \
+ -prefix "${EPREFIX}/usr" \
+ $(use readline || echo '-disable-readline') \
+ $(use ncurses || echo '-disable-ncurses' ) \
+ $(use fam || echo '-disable-fam' ) \
+ || die
+}
+
+src_compile() {
+ emake all
+}
+
+src_install() {
+ emake INSTALL_ROOT="${D}" install
+ dodoc ChangeLog CONTRIBUTORS.org README.md
+ if use doc; then
+ dodoc doc/ps/omake-doc.{pdf,ps} doc/txt/omake-doc.txt
+ dohtml -r doc/html/*
+ fi
+ use ocamlopt || export STRIP_MASK="*/bin/*"
+}
diff --git a/dev-util/omake/omake-0.9.8.6.0_rc1.ebuild b/dev-util/omake/omake-0.9.8.6.0_rc1.ebuild
new file mode 100644
index 000000000000..daa7fd04918a
--- /dev/null
+++ b/dev-util/omake/omake-0.9.8.6.0_rc1.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit toolchain-funcs multilib versionator eutils
+
+MY_PV=$(replace_version_separator 5 '.' "$(replace_version_separator 4 '-' )")
+RESTRICT="installsources"
+DESCRIPTION="Make replacement"
+HOMEPAGE="http://omake.metaprl.org/"
+SRC_URI="http://omake.metaprl.org/downloads/${PN}-${MY_PV}.tar.gz"
+LICENSE="GPL-2"
+
+SLOT="0"
+KEYWORDS="~amd64 ppc x86"
+IUSE="doc fam ncurses +ocamlopt readline"
+DEPEND=">=dev-lang/ocaml-3.10.2:=[ocamlopt?]
+ ncurses? ( >=sys-libs/ncurses-5.3:0= )
+ fam? ( virtual/fam )
+ readline? ( >=sys-libs/readline-4.3:0= )"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/${PN}-${MY_PV%-*}
+
+use_boolean() {
+ if use $1; then
+ echo "true"
+ else
+ echo "false"
+ fi
+}
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}/${P}-cflags.patch" \
+ "${FILESDIR}/${P}-warnerror.patch"
+}
+
+src_configure() {
+ # Configuration steps...
+ echo "PREFIX = \$(dir \$\"/usr\")" > .config
+ echo "BINDIR = \$(dir \$\"\$(PREFIX)/bin\")" >> .config
+ echo "LIBDIR = \$(dir \$\"\$(PREFIX)/$(get_libdir)\")" >> .config
+ echo "MANDIR = \$(dir \$\"\$(PREFIX)/man\")" >> .config
+
+ echo "CC = $(tc-getCC)" >> .config
+ echo "CFLAGS = ${CFLAGS}" >> .config
+
+ if use ocamlopt; then
+ echo "NATIVE_ENABLED = true" >> .config
+ echo "BYTE_ENABLED = false" >> .config
+ else
+ echo "NATIVE_ENABLED = false" >> .config
+ echo "BYTE_ENABLED = true" >> .config
+ fi
+
+ echo "NATIVE_PROFILE = false" >> .config
+
+ echo "READLINE_ENABLED = $(use_boolean readline)" >> .config
+ echo "FAM_ENABLED = $(use_boolean fam)" >> .config
+ echo "NCURSES_ENABLED = $(use_boolean ncurses)" >> .config
+
+ echo "DEFAULT_SAVE_INTERVAL = 60" >> .config
+
+ echo "OCAMLDEP_MODULES_ENABLED = false" >> .config
+}
+
+src_compile() {
+ emake all
+}
+
+src_install() {
+ emake INSTALL_ROOT="${D}" install
+ dodoc CHANGELOG.txt
+ if use doc; then
+ dodoc doc/ps/omake-doc.{pdf,ps} doc/txt/omake-doc.txt
+ dohtml -r doc/html/*
+ fi
+ use ocamlopt || export STRIP_MASK="*/bin/*"
+}
diff --git a/dev-util/open-vcdiff/Manifest b/dev-util/open-vcdiff/Manifest
new file mode 100644
index 000000000000..2189785455fd
--- /dev/null
+++ b/dev-util/open-vcdiff/Manifest
@@ -0,0 +1,6 @@
+AUX open-vcdiff-0.8.4-gcc6.patch 8635 SHA256 3a579d96ff41f2e255d774aad435a76d261397a5e24ebb24eb8a3c21b70264a1 SHA512 f4b1ce46832bc279cc5fb421171f5efba64e1e733a1d733b8ed26d6b024e9e2875ab2dfffcecf3b48ab805c3f44ba9da3eb961fd36ebe5fa6beba3642177a368 WHIRLPOOL f698479bd0e4fb5a65a7350fa69cac55ce74c5dcb8c1698b539a1d3cb77ad5a1899f047f99747032a7d101e1911470c7ee17ec636b417b8c0cf44a43a6500e85
+DIST open-vcdiff-0.8.4.tar.gz 780923 SHA256 2b142b1027fb0a62c41347600e01a53fa274dad15445a7da48083c830c3138b3 SHA512 fb9062d6a854c999d04eb68672596583e958c3d1705d58429280cb53dcf381c880b23d7fc9d5277545b4a5f9023435648d7bc87bad10cb30385fb950e5d499bd WHIRLPOOL fbbb26f6aa3773bb06c33085bc1d2f1e2bd74776466864713b06567806eca815f80d72d8872487359ffa99102f8914948d20b37a2b4e3bf502a03ca7de029a8a
+EBUILD open-vcdiff-0.8.4-r1.ebuild 510 SHA256 f1f3216173ec9261d2806b6e1d279ecdba3a713354b5d4480f4e262e80ade3fc SHA512 21c85520b16b17158ba09e3d9bc6b97079f5d19c32a946219ee5e3421c09f4b60af3e5adc1b5b4f47e5111551cdf3d0c159b6723862c5d4c8e3b243438ef6aea WHIRLPOOL f4c9966822d27fd7b0a8eb184949eeee70ca9e59554765e6698c7968b380807ceb18cd78cea812eba7dfef249716e7a5e5ed7ba3fa8a3c333e96400b6314cb6d
+MISC ChangeLog 3136 SHA256 b7130bd40a29aa18e0ecbf13d58639b048df98132fa0d4ceb20744ed1109e25c SHA512 413acfd0e950783c83788ccffbb7bc7ea081aa58a4fecf4791362ab6f6f588d70510ec6b7ba6dc455a1fb36bacfef8cf5f386282caec7197d2028b87b8617277 WHIRLPOOL 515e175063b44967eaac0bd7146a742ee8968d456fe5c24318e99611781409a48ea0293a5af9cebaad6c64e6d3b6bab22f853840188cfb0ff257f5465c41ae25
+MISC ChangeLog-2015 991 SHA256 8cdf32b8dc6caf763311f18c70a75cab7ef9a8e4230a2a9f5b47ef20bcb09541 SHA512 b3f8907ec5034dd004b6aa46c5c55630a0f4eb9c7b2127a3144e85759d446cfb5d402cfb30c5c856dd72a2f1a985f36d8d57a0a7c8696ab5e75ca7c53e97f2aa WHIRLPOOL 71cbf8a8c3e743f2a9be070a179399af36bd5a41b2aaffa875c217b1d1c102f04a2e2a47f5c51b4fa702a336ca505f21652e1903a68e8e5aa14e5b4ebd8fec0c
+MISC metadata.xml 278 SHA256 efc150ef18c43e025a4535e1125dd50de936bb5b1377149e7f203c9f199b7ec5 SHA512 4b637493a5e196c76d1e2f560230f35b24549aa54088d0b718fa91c3ccb8631e6d30c49038bf19265f2fbe25dfd92247827827b576af5841fd061094bcea6f14 WHIRLPOOL 713e4abd80db5a60faead3f53e11b92245fdf372fc4f34de4909029f8a01669298566b7551108c3737ee5ca881a2ae84543a100f09341ae5ece5afa3c23c4554
diff --git a/dev-util/open-vcdiff/files/open-vcdiff-0.8.4-gcc6.patch b/dev-util/open-vcdiff/files/open-vcdiff-0.8.4-gcc6.patch
new file mode 100644
index 000000000000..fdba3faa78b2
--- /dev/null
+++ b/dev-util/open-vcdiff/files/open-vcdiff-0.8.4-gcc6.patch
@@ -0,0 +1,223 @@
+--- a/src/vcdecoder_test.cc
++++ b/src/vcdecoder_test.cc
+@@ -23,7 +23,7 @@
+
+ namespace open_vcdiff {
+
+-const char VCDiffDecoderTest::kStandardFileHeader[] = {
++const uint8_t VCDiffDecoderTest::kStandardFileHeader[] = {
+ 0xD6, // 'V' | 0x80
+ 0xC3, // 'C' | 0x80
+ 0xC4, // 'D' | 0x80
+@@ -31,7 +31,7 @@
+ 0x00 // Hdr_Indicator: no custom code table, no compression
+ };
+
+-const char VCDiffDecoderTest::kInterleavedFileHeader[] = {
++const uint8_t VCDiffDecoderTest::kInterleavedFileHeader[] = {
+ 0xD6, // 'V' | 0x80
+ 0xC3, // 'C' | 0x80
+ 0xC4, // 'D' | 0x80
+@@ -61,21 +61,22 @@
+ }
+
+ void VCDiffDecoderTest::UseStandardFileHeader() {
+- delta_file_header_.assign(kStandardFileHeader,
++ delta_file_header_.assign(reinterpret_cast<const char *>(kStandardFileHeader),
+ sizeof(kStandardFileHeader));
+ }
+
+ void VCDiffDecoderTest::UseInterleavedFileHeader() {
+- delta_file_header_.assign(kInterleavedFileHeader,
+- sizeof(kInterleavedFileHeader));
++ delta_file_header_.assign(
++ reinterpret_cast<const char *>(kInterleavedFileHeader),
++ sizeof(kInterleavedFileHeader));
+ }
+
+ void VCDiffDecoderTest::InitializeDeltaFile() {
+ delta_file_ = delta_file_header_ + delta_window_header_ + delta_window_body_;
+ }
+
+-char VCDiffDecoderTest::GetByteFromStringLength(const char* s,
+- int which_byte) {
++uint8_t VCDiffDecoderTest::GetByteFromStringLength(const char* s,
++ int which_byte) {
+ char varint_buf[VarintBE<int32_t>::kMaxBytes];
+ VarintBE<int32_t>::Encode(static_cast<int32_t>(strlen(s)), varint_buf);
+ return varint_buf[which_byte];
+@@ -101,10 +102,10 @@
+ // (0x7FFFFFFF) at the given offset in the delta window.
+ void VCDiffDecoderTest::WriteMaxVarintAtOffset(int offset,
+ int bytes_to_replace) {
+- static const char kMaxVarint[] = { 0x87, 0xFF, 0xFF, 0xFF, 0x7F };
++ static const uint8_t kMaxVarint[] = { 0x87, 0xFF, 0xFF, 0xFF, 0x7F };
+ delta_file_.replace(delta_file_header_.size() + offset,
+ bytes_to_replace,
+- kMaxVarint,
++ reinterpret_cast<const char*>(kMaxVarint),
+ sizeof(kMaxVarint));
+ }
+
+@@ -112,10 +113,10 @@
+ // in the delta window.
+ void VCDiffDecoderTest::WriteNegativeVarintAtOffset(int offset,
+ int bytes_to_replace) {
+- static const char kNegativeVarint[] = { 0x88, 0x80, 0x80, 0x80, 0x00 };
++ static const uint8_t kNegativeVarint[] = { 0x88, 0x80, 0x80, 0x80, 0x00 };
+ delta_file_.replace(delta_file_header_.size() + offset,
+ bytes_to_replace,
+- kNegativeVarint,
++ reinterpret_cast<const char*>(kNegativeVarint),
+ sizeof(kNegativeVarint));
+ }
+
+@@ -123,18 +124,18 @@
+ // at the given offset in the delta window.
+ void VCDiffDecoderTest::WriteInvalidVarintAtOffset(int offset,
+ int bytes_to_replace) {
+- static const char kInvalidVarint[] = { 0x87, 0xFF, 0xFF, 0xFF, 0xFF, 0x7F };
++ static const uint8_t kInvalidVarint[] = { 0x87, 0xFF, 0xFF, 0xFF, 0xFF, 0x7F };
+ delta_file_.replace(delta_file_header_.size() + offset,
+ bytes_to_replace,
+- kInvalidVarint,
++ reinterpret_cast<const char*>(kInvalidVarint),
+ sizeof(kInvalidVarint));
+ }
+
+ bool VCDiffDecoderTest::FuzzOneByteInDeltaFile() {
+ static const struct Fuzzer {
+- char _and;
+- char _or;
+- char _xor;
++ uint8_t _and;
++ uint8_t _or;
++ uint8_t _xor;
+ } fuzzers[] = {
+ { 0xff, 0x80, 0x00 },
+ { 0xff, 0xff, 0x00 },
+@@ -162,7 +163,7 @@
+ return false;
+ }
+
+-const char VCDiffStandardDecoderTest::kWindowHeader[] = {
++const uint8_t VCDiffStandardDecoderTest::kWindowHeader[] = {
+ VCD_SOURCE, // Win_Indicator: take source from dictionary
+ FirstByteOfStringLength(kDictionary), // Source segment size
+ SecondByteOfStringLength(kDictionary),
+@@ -176,7 +177,7 @@
+ 0x03 // length of addresses for COPYs
+ };
+
+-const char VCDiffStandardDecoderTest::kWindowBody[] = {
++const uint8_t VCDiffStandardDecoderTest::kWindowBody[] = {
+ // Data for ADDs: 1st section (length 61)
+ ' ', 'I', ' ', 'h', 'a', 'v', 'e', ' ', 's', 'a', 'i', 'd', ' ',
+ 'i', 't', ' ', 't', 'w', 'i', 'c', 'e', ':', '\n',
+@@ -216,11 +217,13 @@
+
+ VCDiffStandardDecoderTest::VCDiffStandardDecoderTest() {
+ UseStandardFileHeader();
+- delta_window_header_.assign(kWindowHeader, sizeof(kWindowHeader));
+- delta_window_body_.assign(kWindowBody, sizeof(kWindowBody));
++ delta_window_header_.assign(reinterpret_cast<const char *>(kWindowHeader),
++ sizeof(kWindowHeader));
++ delta_window_body_.assign(reinterpret_cast<const char *>(kWindowBody),
++ sizeof(kWindowBody));
+ }
+
+-const char VCDiffInterleavedDecoderTest::kWindowHeader[] = {
++const uint8_t VCDiffInterleavedDecoderTest::kWindowHeader[] = {
+ VCD_SOURCE, // Win_Indicator: take source from dictionary
+ FirstByteOfStringLength(kDictionary), // Source segment size
+ SecondByteOfStringLength(kDictionary),
+@@ -234,7 +237,7 @@
+ 0x00 // length of addresses for COPYs (unused)
+ };
+
+-const char VCDiffInterleavedDecoderTest::kWindowBody[] = {
++const uint8_t VCDiffInterleavedDecoderTest::kWindowBody[] = {
+ 0x13, // VCD_COPY mode VCD_SELF, size 0
+ 0x1C, // Size of COPY (28)
+ 0x00, // Address of COPY: Start of dictionary
+@@ -272,8 +275,10 @@
+
+ VCDiffInterleavedDecoderTest::VCDiffInterleavedDecoderTest() {
+ UseInterleavedFileHeader();
+- delta_window_header_.assign(kWindowHeader, sizeof(kWindowHeader));
+- delta_window_body_.assign(kWindowBody, sizeof(kWindowBody));
++ delta_window_header_.assign(reinterpret_cast<const char *>(kWindowHeader),
++ sizeof(kWindowHeader));
++ delta_window_body_.assign(reinterpret_cast<const char *>(kWindowBody),
++ sizeof(kWindowBody));
+ }
+
+ } // namespace open_vcdiff
+--- a/src/vcdecoder_test.h
++++ b/src/vcdecoder_test.h
+@@ -16,6 +16,7 @@
+ #define OPEN_VCDIFF_VCDECODER_TEST_H_
+
+ #include "google/vcdecoder.h"
++#include <stdint.h> // utf8_t
+ #include <string>
+ #include "checksum.h"
+ #include "testing.h"
+@@ -80,7 +81,7 @@
+ // Assuming the length of the given string can be expressed as a VarintBE
+ // of length N, this function returns the byte at position which_byte, where
+ // 0 <= which_byte < N.
+- static char GetByteFromStringLength(const char* s, int which_byte);
++ static uint8_t GetByteFromStringLength(const char* s, int which_byte);
+
+ // Assuming the length of the given string can be expressed as a one-byte
+ // VarintBE, this function returns that byte value.
+@@ -90,13 +91,13 @@
+
+ // Assuming the length of the given string can be expressed as a two-byte
+ // VarintBE, this function returns the first byte of its representation.
+- static char FirstByteOfStringLength(const char* s) {
++ static uint8_t FirstByteOfStringLength(const char* s) {
+ return GetByteFromStringLength(s, 0);
+ }
+
+ // Assuming the length of the given string can be expressed as a two-byte
+ // VarintBE, this function returns the second byte of its representation.
+- static char SecondByteOfStringLength(const char* s) {
++ static uint8_t SecondByteOfStringLength(const char* s) {
+ return GetByteFromStringLength(s, 1);
+ }
+
+@@ -124,8 +125,8 @@
+ private:
+ // These values should only be accessed via UseStandardFileHeader() and
+ // UseInterleavedFileHeader().
+- static const char kStandardFileHeader[];
+- static const char kInterleavedFileHeader[];
++ static const uint8_t kStandardFileHeader[];
++ static const uint8_t kInterleavedFileHeader[];
+
+ // These two counters are used by FuzzOneByteInDeltaFile() to iterate through
+ // different ways to corrupt the delta file.
+@@ -141,8 +142,8 @@
+ virtual ~VCDiffStandardDecoderTest() {}
+
+ private:
+- static const char kWindowHeader[];
+- static const char kWindowBody[];
++ static const uint8_t kWindowHeader[];
++ static const uint8_t kWindowBody[];
+ };
+
+ class VCDiffInterleavedDecoderTest : public VCDiffDecoderTest {
+@@ -151,8 +152,8 @@
+ virtual ~VCDiffInterleavedDecoderTest() {}
+
+ private:
+- static const char kWindowHeader[];
+- static const char kWindowBody[];
++ static const uint8_t kWindowHeader[];
++ static const uint8_t kWindowBody[];
+ };
+
+ } // namespace open_vcdiff
diff --git a/dev-util/open-vcdiff/metadata.xml b/dev-util/open-vcdiff/metadata.xml
new file mode 100644
index 000000000000..4d97c1a4a4ec
--- /dev/null
+++ b/dev-util/open-vcdiff/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <upstream>
+ <remote-id type="google-code">open-vcdiff</remote-id>
+ <remote-id type="github">google/open-vcdiff</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/open-vcdiff/open-vcdiff-0.8.4-r1.ebuild b/dev-util/open-vcdiff/open-vcdiff-0.8.4-r1.ebuild
new file mode 100644
index 000000000000..18324677305e
--- /dev/null
+++ b/dev-util/open-vcdiff/open-vcdiff-0.8.4-r1.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="An encoder/decoder for the VCDIFF (RFC3284) format"
+HOMEPAGE="https://github.com/google/open-vcdiff"
+SRC_URI="https://dev.gentoo.org/~floppym/dist/${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0/0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+PATCHES=( "${FILESDIR}"/${P}-gcc6.patch )
+
+src_configure() {
+ econf --disable-static
+}
+
+src_install() {
+ default
+ find "${D}" -name '*.la' -delete || die
+}
diff --git a/dev-util/oprofile/Manifest b/dev-util/oprofile/Manifest
new file mode 100644
index 000000000000..e99ef674a858
--- /dev/null
+++ b/dev-util/oprofile/Manifest
@@ -0,0 +1,14 @@
+AUX oprofile-0.9.9-gcc-4.9-non-ppc.patch 1612 SHA256 491897ec7b00e72f0b645c5b0eb6212d7edc46dc6322978d8d69b655fb2ba928 SHA512 6cd0d067a95528aa40adb76cb38fc7ba76da16357621fb9e25ad6c61662e5bab9ebc9f52ee23da078aed2f650d95d2a3dc76389d93775e328be34f65570abaa3 WHIRLPOOL 3096a872a734fdf925e15f014c0327dcf664aec29ff2195abef00416142959a7dceaebe7245cbcfa04f708d7777f5b999ea597c83fa2414a03c6c995821017bf
+AUX oprofile-0.9.9-gcc-4.9-unused.patch 1285 SHA256 123930ceb8f1a743cf8d1bd679d73505dd419807335c19616c44ba8395974c5e SHA512 79f3388bb2e3a76611ecc414618f89b27f471f464aa4be63ac54b620b4b37c4e4e39179230775f712fcf63919a85f3808e1577f6e7f4ae3319ebe28c44667952 WHIRLPOOL c96332536a0fcc6d38765b7d7e9f27b373cd3cb0c6c70d22dade13e4c15a907826ca1e390fa5b77ac580e602c594ea2aaa8a3ca0860a558f3213d8273cba3261
+AUX oprofile-1.0.0-athlon.patch 641 SHA256 bb2fd7d0d644df165f225efc14731c0e54a134adcf918b4cd54b3be81b4003b5 SHA512 450afe61b035f987e1e53f44a8ed69886a0031ec21c61225fdf34dc9a5fb6292bbd81e197e2db22d31e01f739463ed8916dd8f95c63f17ac789e62866b8505fe WHIRLPOOL 0a6cdf86c5342b2b715cdcaa86789f04739623587ce73538e4683842b8a4bff45ac35147576e54a0b219e9cd89cce7aebc18b77004c9fdc63c486b3c4c73099e
+AUX oprofile-1.1.0-gcc6-template-depth.patch 454 SHA256 91cc1aa17be128b1c22b7c17bc9e389de875b040a2295690c3fd399a9a8f589c SHA512 c5356ff2e0b31b792eac13c4f19123f6fadfc5fa0154bd422a86185514410eef48eabc321c32d344b1dbf9357de888130e0a84336d08551cea7c787478f9f21e WHIRLPOOL 4baaff5e4c000da08364394128693a0cdaa46e54cab0a5ea3644c775ea9887ce5447319a3b15f6235d4e8c94b1a129f678baa1507c276bb559cc4bfe83a6b94b
+AUX oprofile-1.1.0-gcc6.patch 777 SHA256 985e0845702fef9a6d2985bced1150bd80995fbd3dc88017b887d776f4b489d7 SHA512 de907f9583255a313c719eaf8163385de15a40d4ea76eb13e91f223375597f9d1ef41ad21bf129e550536e6a6a316beb3cd2c528fd38cb17e3fc22256f1dbc38 WHIRLPOOL aaf36439043b07d2266efaf97deb1864508afd61026ce9465ad23cf3fad4a88ed8e1ea03dc5686eedd02c8b215e3ebee7bc7f37163464b6ee4c0ad4265eb6c9e
+DIST oprofile-0.9.9.tar.gz 1502834 SHA256 1e523400daaba7b8d0d15269e977a08b40edfea53970774b69ae130e25117597 SHA512 98cc3d2c15744d02ed649833cf4797482aec73bd52653e916f80b490e17a8250d988c4c945e52dd8999a0d0603fec405e99c9570dfc54baa4992950fe4d8763f WHIRLPOOL 534d04449923da5008dbf044f9783a1d39ad8b749170edf04a503ca1a885455fc8aef4f5894060d14135f5e3b0a0d577897779eed30dc26deff9b0663fcbb7d1
+DIST oprofile-1.1.0.tar.gz 1468502 SHA256 cf759a6de1a6033d5dfc93bda129a9f2e128aecc4238cc657feb0801d1b0366c SHA512 b26f67f20172a4912c0aafb3adf83f9084ea62b9ca89e4cfcb3e13276114a05b07587f7d250028995a10c39ae993e2bce271be11688010473ab9f0fd81715758 WHIRLPOOL b268af1578c485165624e0152751b6c5053c745e6813d6f13ea554993f311e540312854a36011e10560e82c378ef1fc357220a69cd713f73824ae249cc150650
+DIST oprofile-1.2.0.tar.gz 1533343 SHA256 eb95f98c40b7d0ee29b45fba3565d9f8381747528aa6b6159e37d4fa0c8ca57d SHA512 d642d9a8d71ad271a80d21806ffd8522613830f450a71dc531005e940f31f683936691898d381a31f8913715361db8c1713dfe3744a5f9214419349f6504717d WHIRLPOOL e677d0117ef232bbd8794793e9b9fb31c1d89dc87e5d797d18720ff8baaf0e2f6e8328662a6b1e5b2a5662081e06927923f7969502dea9609ab09ab424a2ae07
+EBUILD oprofile-0.9.9-r2.ebuild 1992 SHA256 2805dd488dacff0f2efd04b22b5d09cb34a425dc95ac2597d6fbc762d01bf618 SHA512 6d858d0f9a3d4f38618564cff40775fddec8bf1e98778c8e062227f5fbff720a91cdaed8bf50e4e480de747935c9f342754937f36f6af18f38118e04a3ddfdc5 WHIRLPOOL ca36f806af5fb51af9603e9786f6ac701401cbc22c7c3aa231dcbd96d939074c55b232b1c9813671821f98a7ae1f796b13d07d6ba7b71f547a100aef526c3818
+EBUILD oprofile-1.1.0-r1.ebuild 1835 SHA256 4a412ffbe32e228555efb9d575be7a5db9d58a94dd795252b452d281c60e401a SHA512 d53e071b01e6f2e9247444ea9130debd07db16c6df589709ee1a3e71a3d5f923af5f2c22ef4f721ddce3fd37c26b4744284d0bbf43138040dbddcae79960b4ed WHIRLPOOL 4d2840fcec7ec84fec9e8079aaf468d0d4dc5ea6102f5d36846243a64c1e16a8dcdedf08dcc3eb612e809a6294541087735f6a7e2b5858dd90db617e50a1ad1c
+EBUILD oprofile-1.2.0-r1.ebuild 1603 SHA256 daac87db1929bdb701dcb94f95adf3c95f52910e3467dd1a30d22dc165a8b123 SHA512 be29f71b347cf06159f406baedc7064c1c42248e26ff6557946ad216cb3024c7ee1a8f92f565dfdbdd96989ec000e832fb3002baac63f9dcb7cc618c42808f2b WHIRLPOOL 91cd1467f6444ada24fe6543bb7b589a10f58c83aa66eb967a4ec162a9473b414e4172ad04609716a87a9b4cc9423fbbab86c2913d2845baeffd255fc2741534
+MISC ChangeLog 7191 SHA256 caff7df5f7f7f4498331b093a727a0c3e78e40584cb8e153340e9478d938c24f SHA512 395f7bb7f6fdfbe7de14d66d484df39124395ba7f9045263e2540b6efe8c0ea64e9eaeed291e90e18caaff6e00d257a8161b431c094a4e4e5934f05a4845038a WHIRLPOOL c444c187143ac8904d5dceed7cdc9178ddb73c99c11a25caae08be5143b83773afd46f7ae0ad50fe24131e482778f8cb9c925821386b6aaa35c776f595ab1952
+MISC ChangeLog-2015 16859 SHA256 7da2ca27ee9cca6121d43a39383f43f55ac89b427785b0ca060babcef596e53c SHA512 50bb462e603642a869da7be3479b4a7fe95c85f8be7a2ee49e5c33dc4a36a9d93e89e9acc6841ce49d49c2a9ef32b4b0b57eb57ef6f1e315204ad181541995ef WHIRLPOOL fb1589b46ec17b4f513fa4067caaa2bbe9d784c9b2d89446a6be9e6b103e0c3b415aaf23ac89de2eb1f4d3db24cec7d2049bf175fa7431f1c3b30ded86b4d223
+MISC metadata.xml 423 SHA256 4f5e88258389ba2346a99e77e858ff72ef5abf678237d49df61855446c022155 SHA512 01f96b806fca3e20eb84908a1cd77edbe11291be0098aff2e4d20f0fbf86ea0ef9972c7148c791bc826152a109d16903781cc2f2f367a2ac8b8fb7e5efee378a WHIRLPOOL 0e4ebb0290bcd49a12b04b59de7a9a5c06a91abde3a5ca03afcd78a1c510269a2404347cea04fbe3677959ce986959d872875936b91c2ee0927a6e74170676b1
diff --git a/dev-util/oprofile/files/oprofile-0.9.9-gcc-4.9-non-ppc.patch b/dev-util/oprofile/files/oprofile-0.9.9-gcc-4.9-non-ppc.patch
new file mode 100644
index 000000000000..423c703f7ffb
--- /dev/null
+++ b/dev-util/oprofile/files/oprofile-0.9.9-gcc-4.9-non-ppc.patch
@@ -0,0 +1,36 @@
+Backported from 1.0.0:
+======================================================================
+commit 008e470a9b8751de0a3745e511cbc05b68759688
+Author: Aaro Koskinen <aaro.koskinen@iki.fi>
+Date: Mon May 12 08:28:46 2014 -0500
+
+ configure: fix test-for-synth check with GCC 4.9.0
+
+ With GCC 4.9.0 oprofile 0.9.9 build fails on non-PPC platfroms because
+ the "test-for-synth" configure check result is incorrect: There is a NULL
+ pointer dereference in the test program, so the compiler seems to optimize
+ the rest of the code away, and the test will always succeed regardless
+ whether powerpc_elf64_vec/bfd_elf64_powerpc_vec are present or not.
+ Fix by allocating the referred struct statically.
+
+ While at it, also include stdio.h to avoid a compiler warning.
+
+ Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
+
+diff --git a/m4/binutils.m4 b/m4/binutils.m4
+index 25fb15a..d7948c1 100644
+--- a/m4/binutils.m4
++++ b/m4/binutils.m4
+@@ -27,8 +27,10 @@ if test "$OS" = "Linux"; then
+ AC_MSG_CHECKING([whether bfd_get_synthetic_symtab() exists in BFD library])
+ rm -f test-for-synth
+ AC_LANG_CONFTEST(
+- [AC_LANG_PROGRAM([[#include <bfd.h>]],
+- [[asymbol * synthsyms; bfd * ibfd = 0;
++ [AC_LANG_PROGRAM([[#include <bfd.h>]
++ [#include <stdio.h>]
++ [static bfd _ibfd;]],
++ [[asymbol * synthsyms; bfd * ibfd = &_ibfd;
+ long synth_count = bfd_get_synthetic_symtab(ibfd, 0, 0, 0, 0, &synthsyms);
+ extern const bfd_target bfd_elf64_powerpc_vec;
+ extern const bfd_target bfd_elf64_powerpcle_vec;
diff --git a/dev-util/oprofile/files/oprofile-0.9.9-gcc-4.9-unused.patch b/dev-util/oprofile/files/oprofile-0.9.9-gcc-4.9-unused.patch
new file mode 100644
index 000000000000..5c541a053a72
--- /dev/null
+++ b/dev-util/oprofile/files/oprofile-0.9.9-gcc-4.9-unused.patch
@@ -0,0 +1,47 @@
+commit 98f57a6c0e32bc6080a50e1cdd769b9ff78108bc
+Author: William Cohen <wcohen@redhat.com>
+Date: Tue Jun 10 09:56:55 2014 -0500
+
+ Remove unused functions causing errors in recent gcc
+
+ The Fedora rawhide compiler is now stricter and will treat the
+ warnings for unused functions as errors and stop the compile. This patch
+ removes two unused functions in the code.
+
+ Signed-off-by: William Cohen <wcohen@redhat.com>
+
+diff --git a/libpp/callgraph_container.cpp b/libpp/callgraph_container.cpp
+index 1d1c95f..c5bc272 100644
+--- a/libpp/callgraph_container.cpp
++++ b/libpp/callgraph_container.cpp
+@@ -36,13 +36,6 @@ using namespace std;
+
+ namespace {
+
+-bool operator==(cg_symbol const & lhs, cg_symbol const & rhs)
+-{
+- less_symbol cmp_symb;
+- return !cmp_symb(lhs, rhs) && !cmp_symb(rhs, lhs);
+-}
+-
+-
+ // we store {caller,callee} inside a single u64
+ odb_key_t caller_to_key(u32 value)
+ {
+diff --git a/libpp/xml_utils.cpp b/libpp/xml_utils.cpp
+index 5f1a3a1..3de41e5 100644
+--- a/libpp/xml_utils.cpp
++++ b/libpp/xml_utils.cpp
+@@ -101,12 +101,6 @@ bool has_separated_thread_info()
+ }
+
+
+-string get_cpu_num(size_t pclass)
+-{
+- return classes.v[pclass].ptemplate.cpu;
+-}
+-
+-
+ }; // anonymous namespace
+
+ xml_utils::xml_utils(format_output::xml_formatter * xo,
diff --git a/dev-util/oprofile/files/oprofile-1.0.0-athlon.patch b/dev-util/oprofile/files/oprofile-1.0.0-athlon.patch
new file mode 100644
index 000000000000..5916271b3a00
--- /dev/null
+++ b/dev-util/oprofile/files/oprofile-1.0.0-athlon.patch
@@ -0,0 +1,20 @@
+Fix AMD Athlon CPU family recognition.
+See upstream bug 275 for details:
+https://sourceforge.net/p/oprofile/bugs/275/
+--- oprofile-1.0.0/libop/op_cpu_type.c.orig 2014-09-12 18:39:47.000000000 +0400
++++ oprofile-1.0.0/libop/op_cpu_type.c 2014-11-30 18:29:00.328342552 +0300
+@@ -538,10 +538,13 @@
+ family = cpu_family(eax);
+
+ /* These family does not exist in the past.*/
+- if (family < 0x0f || family == 0x13)
++ if ((family < 0x0f && family != 0x06) || family == 0x13)
+ return ret;
+
+ switch (family) {
++ case 0x6:
++ ret = op_get_cpu_number("i386/athlon");
++ break;
+ case 0x0f:
+ ret = op_get_cpu_number("x86-64/hammer");
+ break;
diff --git a/dev-util/oprofile/files/oprofile-1.1.0-gcc6-template-depth.patch b/dev-util/oprofile/files/oprofile-1.1.0-gcc6-template-depth.patch
new file mode 100644
index 000000000000..01fc86910a3a
--- /dev/null
+++ b/dev-util/oprofile/files/oprofile-1.1.0-gcc6-template-depth.patch
@@ -0,0 +1,10 @@
+--- oprofile-1.1.0/configure.ac.orig 2015-07-21 17:53:27.000000000 +0300
++++ oprofile-1.1.0/configure.ac 2016-11-22 01:15:31.329067697 +0300
+@@ -320,7 +320,6 @@
+ AX_CXXFLAGS_OPTION(OP_CXXFLAGS,[-Wall])
+ AX_CFLAGS_OPTION(OP_CFLAGS,[-fno-common])
+ AX_CXXFLAGS_OPTION(OP_CXXFLAGS,[-fno-common])
+-AX_CXXFLAGS_OPTION(OP_CXXFLAGS,[-ftemplate-depth-50])
+ AX_CFLAGS_OPTION(OP_CFLAGS,[-Wdeclaration-after-statement])
+
+ dnl enable option to use GCC test coverage
diff --git a/dev-util/oprofile/files/oprofile-1.1.0-gcc6.patch b/dev-util/oprofile/files/oprofile-1.1.0-gcc6.patch
new file mode 100644
index 000000000000..ab3ca7c1b142
--- /dev/null
+++ b/dev-util/oprofile/files/oprofile-1.1.0-gcc6.patch
@@ -0,0 +1,30 @@
+--- a/libop/op_alloc_counter.c
++++ b/libop/op_alloc_counter.c
+@@ -171,7 +171,7 @@
+ /* no counters then probably perfmon managing perfmon hw */
+ if (nr_counters <= 0) {
+ nr_counters = op_get_nr_counters(cpu_type);
+- unavailable_counters = (~0) << nr_counters;
++ unavailable_counters = (~0U) << nr_counters;
+ }
+
+ /* Check to see if we have enough physical counters to map events*/
+--- a/libutil++/op_bfd.cpp
++++ b/libutil++/op_bfd.cpp
+@@ -535,15 +535,13 @@
+ {
+ op_bfd_symbol const & sym = syms[sym_idx];
+
+- bool const verbose = cverb << (vbfd & vlevel1);
+-
+ if (anon_obj)
+ start = sym.vma();
+ else
+ start = sym.filepos();
+ end = start + sym.size();
+
+- if (!verbose)
++ if (!(cverb << (vbfd & vlevel1)))
+ return;
+
+ io_state state(cverb << (vbfd & vlevel1));
diff --git a/dev-util/oprofile/metadata.xml b/dev-util/oprofile/metadata.xml
new file mode 100644
index 000000000000..2a35c6646c1e
--- /dev/null
+++ b/dev-util/oprofile/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>bircoph@gentoo.org</email>
+ <name>Andrew Savchenko</name>
+ </maintainer>
+ <longdescription>A transparent low-overhead system-wide profiler</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">oprofile</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/oprofile/oprofile-0.9.9-r2.ebuild b/dev-util/oprofile/oprofile-0.9.9-r2.ebuild
new file mode 100644
index 000000000000..a5a0ac05f129
--- /dev/null
+++ b/dev-util/oprofile/oprofile-0.9.9-r2.ebuild
@@ -0,0 +1,82 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+inherit autotools eutils linux-info multilib user java-pkg-opt-2
+
+MY_P=${PN}-${PV/_/-}
+DESCRIPTION="A transparent low-overhead system-wide profiler"
+HOMEPAGE="http://${PN}.sourceforge.net"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ~mips ppc ppc64 sparc x86"
+IUSE="java pch qt4"
+
+DEPEND=">=dev-libs/popt-1.7-r1
+ sys-libs/binutils-libs:=
+ >=sys-libs/glibc-2.3.2-r1
+ ppc64? ( dev-libs/libpfm )
+ qt4? ( dev-qt/qtgui:4[qt3support] )
+ java? ( >=virtual/jdk-1.5:= )"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+pkg_setup() {
+ linux-info_pkg_setup
+ if ! linux_config_exists || ! linux_chkconfig_present OPROFILE ; then
+ echo
+ elog "In order for ${PN} to work, you need to configure your kernel"
+ elog "with CONFIG_OPROFILE set to 'm' or 'y'."
+ echo
+ fi
+
+ if ! kernel_is -ge 2 6 ; then
+ echo
+ elog "Support for kernels before 2.6 has been dropped in ${PN}-0.9.8."
+ echo
+ fi
+
+ # Required for JIT support, see README_PACKAGERS
+ enewgroup ${PN}
+ enewuser ${PN} -1 -1 -1 ${PN}
+
+ use java && java-pkg_init
+}
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-gcc-4.9-non-ppc.patch"
+ epatch "${FILESDIR}/${P}-gcc-4.9-unused.patch"
+ epatch "${FILESDIR}/${PN}-1.0.0-athlon.patch"
+ epatch "${FILESDIR}/${PN}-1.1.0-gcc6.patch"
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --disable-werror \
+ $(use_with qt4 x) \
+ $(use_enable qt4 gui qt4) \
+ $(use_enable pch) \
+ $(use_with java java ${JAVA_HOME})
+}
+
+src_install() {
+ emake DESTDIR="${D}" htmldir="/usr/share/doc/${PF}" install
+
+ dodoc ChangeLog* README TODO
+
+ dodir /etc/env.d
+ echo "LDPATH=${PREFIX}/usr/$(get_libdir)/${PN}" > "${D}"/etc/env.d/10${PN} || die "env.d failed"
+}
+
+pkg_postinst() {
+ echo
+ elog "Now load the ${PN} module by running:"
+ elog " # opcontrol --init"
+ elog "Then read manpages and this html doc:"
+ elog " /usr/share/doc/${PF}/${PN}.html"
+ echo
+}
diff --git a/dev-util/oprofile/oprofile-1.1.0-r1.ebuild b/dev-util/oprofile/oprofile-1.1.0-r1.ebuild
new file mode 100644
index 000000000000..2c8a16f7a16f
--- /dev/null
+++ b/dev-util/oprofile/oprofile-1.1.0-r1.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+inherit autotools eutils java-pkg-opt-2 linux-info multilib user
+
+MY_P=${PN}-${PV/_/-}
+DESCRIPTION="A transparent low-overhead system-wide profiler"
+HOMEPAGE="http://${PN}.sourceforge.net"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ~mips ppc ppc64 sparc x86"
+IUSE="java pch"
+
+RDEPEND=">=dev-libs/popt-1.7-r1
+ sys-libs/binutils-libs:=
+ >=sys-libs/glibc-2.3.2-r1
+ java? ( >=virtual/jdk-1.5:= )
+ ppc64? ( dev-libs/libpfm )"
+DEPEND="${RDEPEND}
+ >=sys-kernel/linux-headers-2.6.31"
+
+S="${WORKDIR}/${MY_P}"
+
+CONFIG_CHECK="PERF_EVENTS"
+ERROR_PERF_EVENTS="CONFIG_PERF_EVENTS is mandatory for ${PN} to work."
+
+pkg_setup() {
+ linux-info_pkg_setup
+ if ! kernel_is -ge 2 6 31; then
+ echo
+ ewarn "Support for kernels before 2.6.31 has been dropped in ${PN}-1.0.0."
+ echo
+ fi
+
+ # Required for JIT support, see README_PACKAGERS
+ enewgroup ${PN}
+ enewuser ${PN} -1 -1 -1 ${PN}
+
+ use java && java-pkg_init
+}
+
+src_prepare() {
+ # fix bug #594178
+ epatch "${FILESDIR}/${PN}-1.1.0-gcc6.patch"
+ # bug #600000
+ epatch "${FILESDIR}/${PN}-1.1.0-gcc6-template-depth.patch"
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --disable-werror \
+ $(use_enable pch) \
+ $(use_with java java ${JAVA_HOME})
+}
+
+src_install() {
+ emake DESTDIR="${D}" htmldir="/usr/share/doc/${PF}" install
+
+ dodoc ChangeLog* README TODO
+ echo "LDPATH=${PREFIX}/usr/$(get_libdir)/${PN}" > "${T}/10${PN}"
+ doenvd "${T}/10${PN}"
+}
+
+pkg_postinst() {
+ echo
+ elog "Starting from ${PN}-1.0.0 opcontrol was removed, use operf instead."
+ elog "CONFIG_OPROFILE is no longer used, you may remove it from your kernels."
+ elog "Please read manpages and this html doc:"
+ elog " /usr/share/doc/${PF}/${PN}.html"
+ echo
+}
diff --git a/dev-util/oprofile/oprofile-1.2.0-r1.ebuild b/dev-util/oprofile/oprofile-1.2.0-r1.ebuild
new file mode 100644
index 000000000000..809a7ce8a485
--- /dev/null
+++ b/dev-util/oprofile/oprofile-1.2.0-r1.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit java-pkg-opt-2 linux-info user
+
+DESCRIPTION="A transparent low-overhead system-wide profiler"
+HOMEPAGE="http://${PN}.sourceforge.net"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
+IUSE="java pch"
+
+RDEPEND=">=dev-libs/popt-1.7-r1
+ sys-libs/binutils-libs:=
+ >=sys-libs/glibc-2.3.2-r1
+ java? ( >=virtual/jdk-1.5:= )
+ ppc64? ( dev-libs/libpfm )"
+DEPEND="${RDEPEND}
+ >=sys-kernel/linux-headers-2.6.31"
+
+CONFIG_CHECK="PERF_EVENTS"
+ERROR_PERF_EVENTS="CONFIG_PERF_EVENTS is mandatory for ${PN} to work."
+
+pkg_setup() {
+ linux-info_pkg_setup
+ if ! kernel_is -ge 2 6 31; then
+ echo
+ ewarn "Support for kernels before 2.6.31 has been dropped in ${PN}-1.0.0."
+ echo
+ fi
+
+ # Required for JIT support, see README_PACKAGERS
+ enewgroup ${PN}
+ enewuser ${PN} -1 -1 -1 ${PN}
+
+ use java && java-pkg_init
+}
+
+src_configure() {
+ econf \
+ --disable-werror \
+ $(use_enable pch) \
+ $(use_with java java ${JAVA_HOME})
+}
+
+src_install() {
+ emake DESTDIR="${D}" htmldir="/usr/share/doc/${PF}" install
+
+ dodoc ChangeLog* README TODO
+ echo "LDPATH=${PREFIX}/usr/$(get_libdir)/${PN}" > "${T}/10${PN}" || die
+ doenvd "${T}/10${PN}"
+}
+
+pkg_postinst() {
+ echo
+ elog "Starting from ${PN}-1.0.0 opcontrol was removed, use operf instead."
+ elog "CONFIG_OPROFILE is no longer used, you may remove it from your kernels."
+ elog "Please read manpages and this html doc:"
+ elog " /usr/share/doc/${PF}/${PN}.html"
+ echo
+}
diff --git a/dev-util/osc/Manifest b/dev-util/osc/Manifest
new file mode 100644
index 000000000000..8d48fa9f0b6b
--- /dev/null
+++ b/dev-util/osc/Manifest
@@ -0,0 +1,11 @@
+AUX osc-0.139.2-out-of-tree-build.patch 708 SHA256 59c717f4baf357a9ea076f71a10db66a36232ae0b794a38914ac06bf9bf7cee3 SHA512 5663497e5a2685a48407d4eece16b64c33275808252b29f05ff507274951b0a8d9fc77e0d3f9a2412089d683ac1eb547ebd16ef2491ac55944fcc6f40fc8c166 WHIRLPOOL 29a0783dd30e1fa45b35a17feaf002a335ff3697badb835e83c5669e208fc2df8f4ce37c24574a76c746374b0703ec4108a500335bd6dd68a23c5f6c7d8eb2dd
+DIST osc-0.148.2.tar.gz 6818939 SHA256 573d23d84e47316bd2eaed16e37696a1b87b8bc8cb457be5403ecfcb4da44c4c SHA512 4e17c8fb8f78a3f9a279f27e3c52fa1a4d6ee62825e06a5943b144ff39a3c53650d31c1b8033ee78cf6f3d4e85c140b2fc0c7f86b3d134cea59fc8da24e3fd16 WHIRLPOOL 20160e3148f21ff78074f4858928fee20227defe1065c8971c9e1823ab7cb5195edab2ac9da4662667be49ad2dc772c1d260a83eae59166c362f3050b88fd19d
+DIST osc-0.152.0.tar.gz 331512 SHA256 e30508cb6197c48a4ac6364eb60e47a850a67faa705cc2eafbce4f1072c30b41 SHA512 273bad36565d4f90b1a1f9af965367728559e5d0d8060689b1086f1df12fd3ef575900064973888cba1c06fb2d7c0e998161d65c04581a040750ef34281f035a WHIRLPOOL f2937f91649f04a9c6710851cb6e52f5cf1614169c643e8ce82c8c3ad611f252e96b9002f7dfb2a9be762c86f9feb12f2e6b39f5f57fcf5b6a33e12ff975a3bc
+DIST osc-0.154.0.tar.gz 341789 SHA256 00612f245db2f090c747e79d300440256252d5e739e8882ef4268a8e42739a6c SHA512 1240bc9cc9079115342fc0bff1e522ca8fbff0a22b15fc2bfa90817241fd42e2350dd9344e5d6e3e0b5842be3f010398d108c7f9c7d474bde5c2300f7bf6bfb7 WHIRLPOOL 7b7a656525796a531c0cba8d0ed8ddaa2c004717407b1b30b7bbfd6c2f44acc65e47cf1b67e597229318b5c374077b63bcf6a002ebc2717724c1ad8e7c893a75
+EBUILD osc-0.148.2.ebuild 1518 SHA256 d0fbc029402bf4f0d6d419f852d89ba2eea044be8e371825b3527473a8d8e4c7 SHA512 1ee27f8833e560aa25d3e1f747c45a32d0cd33100b7cbceef29e632abc30a01f6c3b5107804d15de474d090e0cc6edf20b63e722bc6ffd3f0173a103b3fde64f WHIRLPOOL 2f27a35f292f7525593dedf29311137c46fe97a2f7efda581a5e54e15d6c719adfdd8072172acdd6e297c4fddf3eb128f6c59ebd05ced8bfc1f73a26d6dda948
+EBUILD osc-0.152.0.ebuild 1520 SHA256 f82676af1fe41c7c1605de6d5d629f7ca9b3019c13f91e71919a7d181081a271 SHA512 d9147c1a3c9269a46095e72cd2bfb7d09b1a8bbcd51ee76ea2f7134cf154509cf92d1440fecb42c0b91a99fa2502fecf7d32eea2ed0f391a983284ee2799f1ea WHIRLPOOL 87d5e26b01abe08ce3984c5bfba44adc658bf228f995131c214b889070ce741941f1fe63994ae8f8df17183f870faefab6072aa0b4210378038ac86ce03a976b
+EBUILD osc-0.154.0.ebuild 1522 SHA256 65f0c0e675f46538550049521226794fcd469b05973355494e2044ef73608257 SHA512 fea65ff434da0ce6e4d4bf78261dddb8f20c26404c25562129346998bac7d8b98ebfb49325f1861c7736904937ce32d47da47905b492af6090ce631192c7a3f8 WHIRLPOOL 8f09179d35339b1d168d086b78986d6a25055e46a4f0b931e4258ef982ba88eb179ef7bfdd28ae43fa9d3dceacfaa9a0bfe949cfa1207498f90c8fc47a680d7c
+EBUILD osc-9999.ebuild 1522 SHA256 65f0c0e675f46538550049521226794fcd469b05973355494e2044ef73608257 SHA512 fea65ff434da0ce6e4d4bf78261dddb8f20c26404c25562129346998bac7d8b98ebfb49325f1861c7736904937ce32d47da47905b492af6090ce631192c7a3f8 WHIRLPOOL 8f09179d35339b1d168d086b78986d6a25055e46a4f0b931e4258ef982ba88eb179ef7bfdd28ae43fa9d3dceacfaa9a0bfe949cfa1207498f90c8fc47a680d7c
+MISC ChangeLog 3709 SHA256 51990d9342d4ffb6d97ef5790df7b4c7114fa2b6d3f2024aaa7e14f5e5c89669 SHA512 cef010f6cc80c03925d5a9efc051bd9f291a0fcd3adbde72d77b2c24cf162ba5f7c1893f87369bf29088253d0244c5050c0a6fe576f639f2a796ae9ac25a6c9a WHIRLPOOL a029b185bdea62ea547ed50626e0ceadbf2cd95f38fcecf8aecbfc39014ee5a7ef03eedf8e928d2f54eff61a9e55a4641c36fdd74031f9b9e43c4d3f865d2f5a
+MISC ChangeLog-2015 6223 SHA256 231c9eee43f45254817aa89d45a862a3e6dea631f23044b57034ca7fd6040b18 SHA512 6da0626589d5d3620fd8e5fbd06e95cd32084b7cd9dcff990d59a500f8c82cf752409a8b2ee1354e0890187054e0e61bf5f8f9779a80a20ada06b74a2037c84f WHIRLPOOL edf716ba01e03dcfba3255cfb791c191e7250921cd123ed038f02def6a723e2398fbcc1ba0125a2fc3eb72ebcaf32da6ef24b8603127f60cf8156c2184a9cd0b
+MISC metadata.xml 498 SHA256 6a138586438114b9a07e7ecd1ede955a4f906ad7c80d3fea2cc88ec66c896e7a SHA512 670b8bad9b8be7908537e369e9b6de78b21672f88f8e47025c4b1f8e054834a62e563f2b1dd063bc8bd1c40cea88541440170d4275e4ef2391542a4e499fffdb WHIRLPOOL e1088abdfa9de6199c4a8fdfd6a5f225c3010c8c4c1bf5dabe80cb4487f92e114e5013751c467d248bf4d53f05d5441fb2ef6dff6795101b6c7d24bae43b201c
diff --git a/dev-util/osc/files/osc-0.139.2-out-of-tree-build.patch b/dev-util/osc/files/osc-0.139.2-out-of-tree-build.patch
new file mode 100644
index 000000000000..d0adfe53f615
--- /dev/null
+++ b/dev-util/osc/files/osc-0.139.2-out-of-tree-build.patch
@@ -0,0 +1,20 @@
+--- setup.py.orig 2013-05-27 13:51:06.143039789 +0000
++++ setup.py 2013-05-27 13:53:27.814034661 +0000
+@@ -25,7 +25,7 @@
+ """
+ """
+ import gzip
+- man_path = os.path.join('build', 'osc.1.gz')
++ man_path = 'osc.1.gz'
+ distutils.log.info('generating %s' % man_path)
+ outfile = gzip.open(man_path, 'w')
+ osccli = commandline.Osc(stdout=outfile)
+@@ -48,7 +48,7 @@
+
+ data_files = []
+ if sys.platform[:3] != 'win':
+- data_files.append((os.path.join('share', 'man', 'man1'), [os.path.join('build', 'osc.1.gz')]))
++ data_files.append((os.path.join('share', 'man', 'man1'), ['osc.1.gz']))
+
+ setup(name='osc',
+ version = osc.core.__version__,
diff --git a/dev-util/osc/metadata.xml b/dev-util/osc/metadata.xml
new file mode 100644
index 000000000000..3e0165c6d2fe
--- /dev/null
+++ b/dev-util/osc/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="project">
+ <email>suse@gentoo.org</email>
+ <name>SUSE</name>
+</maintainer>
+<longdescription lang="en">
+Subversion-like client for Open Build Service - http://open-build-service.org/ It serves as client for the source code repository part of the build service, and it is used to edit metadata or query about build results.
+</longdescription>
+</pkgmetadata>
diff --git a/dev-util/osc/osc-0.148.2.ebuild b/dev-util/osc/osc-0.148.2.ebuild
new file mode 100644
index 000000000000..ff92ebd5d75d
--- /dev/null
+++ b/dev-util/osc/osc-0.148.2.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+EGIT_REPO_URI="https://github.com/openSUSE/osc.git"
+
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="xml"
+
+if [[ "${PV}" == "9999" ]]; then
+ EXTRA_ECLASS="git-2"
+else
+ OBS_PROJECT="openSUSE:Tools"
+ EXTRA_ECLASS="obs-download"
+fi
+
+DISTUTILS_SINGLE_IMPL=1
+inherit distutils-r1 ${EXTRA_ECLASS}
+unset EXTRA_ECLASS
+
+DESCRIPTION="Command line tool for Open Build Service"
+HOMEPAGE="https://en.opensuse.org/openSUSE:OSC"
+
+[[ "${PV}" == "9999" ]] || SRC_URI="${OBS_URI}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE=""
+
+# Don't move KEYWORDS on the previous line or ekeyword won't work # 399061
+[[ "${PV}" == "9999" ]] || \
+KEYWORDS="amd64 x86"
+
+DEPEND="
+ dev-python/urlgrabber[${PYTHON_USEDEP}]
+ app-arch/rpm[python,${PYTHON_USEDEP}]
+ dev-python/m2crypto[${PYTHON_USEDEP}]
+ ${PYTHON_DEPS}
+"
+PDEPEND="${DEPEND}
+ app-admin/sudo
+ dev-util/obs-service-meta
+"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-0.139.2-out-of-tree-build.patch
+ distutils-r1_src_prepare
+}
+
+src_install() {
+ distutils-r1_src_install
+ dosym osc-wrapper.py /usr/bin/osc
+ keepdir /usr/lib/osc/source_validators
+ cd "${ED}"/usr/
+ find . -type f -exec sed -i 's|/usr/bin/build|/usr/bin/suse-build|g' {} +
+ find . -type f -exec sed -i 's|/usr/lib/build|/usr/libexec/suse-build|g' {} +
+ find . -type f -exec sed -i 's|/usr/lib/obs|/usr/libexec/obs|g' {} +
+ rm -f "${ED}"/usr/share/doc/${PN}*/TODO*
+}
diff --git a/dev-util/osc/osc-0.152.0.ebuild b/dev-util/osc/osc-0.152.0.ebuild
new file mode 100644
index 000000000000..0a9fe2d65388
--- /dev/null
+++ b/dev-util/osc/osc-0.152.0.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+EGIT_REPO_URI="https://github.com/openSUSE/${PN}.git"
+
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="xml"
+
+if [[ "${PV}" == "9999" ]]; then
+ EXTRA_ECLASS="git-2"
+else
+ OBS_PROJECT="openSUSE:Tools"
+ EXTRA_ECLASS="obs-download"
+fi
+
+DISTUTILS_SINGLE_IMPL=1
+inherit distutils-r1 ${EXTRA_ECLASS}
+unset EXTRA_ECLASS
+
+DESCRIPTION="Command line tool for Open Build Service"
+HOMEPAGE="https://en.opensuse.org/openSUSE:OSC"
+
+[[ "${PV}" == "9999" ]] || SRC_URI="${OBS_URI}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE=""
+
+# Don't move KEYWORDS on the previous line or ekeyword won't work # 399061
+[[ "${PV}" == "9999" ]] || \
+KEYWORDS="amd64 x86"
+
+DEPEND="
+ dev-python/urlgrabber[${PYTHON_USEDEP}]
+ app-arch/rpm[python,${PYTHON_USEDEP}]
+ dev-python/m2crypto[${PYTHON_USEDEP}]
+ ${PYTHON_DEPS}
+"
+PDEPEND="${DEPEND}
+ app-admin/sudo
+ dev-util/obs-service-meta
+"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-0.139.2-out-of-tree-build.patch
+ distutils-r1_src_prepare
+}
+
+src_install() {
+ distutils-r1_src_install
+ dosym osc-wrapper.py /usr/bin/osc
+ keepdir /usr/lib/osc/source_validators
+ cd "${ED}"/usr/
+ find . -type f -exec sed -i 's|/usr/bin/build|/usr/bin/suse-build|g' {} +
+ find . -type f -exec sed -i 's|/usr/lib/build|/usr/libexec/suse-build|g' {} +
+ find . -type f -exec sed -i 's|/usr/lib/obs|/usr/libexec/obs|g' {} +
+ rm -f "${ED}"/usr/share/doc/${PN}*/TODO*
+}
diff --git a/dev-util/osc/osc-0.154.0.ebuild b/dev-util/osc/osc-0.154.0.ebuild
new file mode 100644
index 000000000000..42d6d248359a
--- /dev/null
+++ b/dev-util/osc/osc-0.154.0.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+EGIT_REPO_URI="https://github.com/openSUSE/${PN}.git"
+
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="xml"
+
+if [[ "${PV}" == "9999" ]]; then
+ EXTRA_ECLASS="git-2"
+else
+ OBS_PROJECT="openSUSE:Tools"
+ EXTRA_ECLASS="obs-download"
+fi
+
+DISTUTILS_SINGLE_IMPL=1
+inherit distutils-r1 ${EXTRA_ECLASS}
+unset EXTRA_ECLASS
+
+DESCRIPTION="Command line tool for Open Build Service"
+HOMEPAGE="https://en.opensuse.org/openSUSE:OSC"
+
+[[ "${PV}" == "9999" ]] || SRC_URI="${OBS_URI}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE=""
+
+# Don't move KEYWORDS on the previous line or ekeyword won't work # 399061
+[[ "${PV}" == "9999" ]] || \
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="
+ dev-python/urlgrabber[${PYTHON_USEDEP}]
+ app-arch/rpm[python,${PYTHON_USEDEP}]
+ dev-python/m2crypto[${PYTHON_USEDEP}]
+ ${PYTHON_DEPS}
+"
+PDEPEND="${DEPEND}
+ app-admin/sudo
+ dev-util/obs-service-meta
+"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-0.139.2-out-of-tree-build.patch
+ distutils-r1_src_prepare
+}
+
+src_install() {
+ distutils-r1_src_install
+ dosym osc-wrapper.py /usr/bin/osc
+ keepdir /usr/lib/osc/source_validators
+ cd "${ED}"/usr/
+ find . -type f -exec sed -i 's|/usr/bin/build|/usr/bin/suse-build|g' {} +
+ find . -type f -exec sed -i 's|/usr/lib/build|/usr/libexec/suse-build|g' {} +
+ find . -type f -exec sed -i 's|/usr/lib/obs|/usr/libexec/obs|g' {} +
+ rm -f "${ED}"/usr/share/doc/${PN}*/TODO*
+}
diff --git a/dev-util/osc/osc-9999.ebuild b/dev-util/osc/osc-9999.ebuild
new file mode 100644
index 000000000000..42d6d248359a
--- /dev/null
+++ b/dev-util/osc/osc-9999.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+EGIT_REPO_URI="https://github.com/openSUSE/${PN}.git"
+
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="xml"
+
+if [[ "${PV}" == "9999" ]]; then
+ EXTRA_ECLASS="git-2"
+else
+ OBS_PROJECT="openSUSE:Tools"
+ EXTRA_ECLASS="obs-download"
+fi
+
+DISTUTILS_SINGLE_IMPL=1
+inherit distutils-r1 ${EXTRA_ECLASS}
+unset EXTRA_ECLASS
+
+DESCRIPTION="Command line tool for Open Build Service"
+HOMEPAGE="https://en.opensuse.org/openSUSE:OSC"
+
+[[ "${PV}" == "9999" ]] || SRC_URI="${OBS_URI}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE=""
+
+# Don't move KEYWORDS on the previous line or ekeyword won't work # 399061
+[[ "${PV}" == "9999" ]] || \
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="
+ dev-python/urlgrabber[${PYTHON_USEDEP}]
+ app-arch/rpm[python,${PYTHON_USEDEP}]
+ dev-python/m2crypto[${PYTHON_USEDEP}]
+ ${PYTHON_DEPS}
+"
+PDEPEND="${DEPEND}
+ app-admin/sudo
+ dev-util/obs-service-meta
+"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-0.139.2-out-of-tree-build.patch
+ distutils-r1_src_prepare
+}
+
+src_install() {
+ distutils-r1_src_install
+ dosym osc-wrapper.py /usr/bin/osc
+ keepdir /usr/lib/osc/source_validators
+ cd "${ED}"/usr/
+ find . -type f -exec sed -i 's|/usr/bin/build|/usr/bin/suse-build|g' {} +
+ find . -type f -exec sed -i 's|/usr/lib/build|/usr/libexec/suse-build|g' {} +
+ find . -type f -exec sed -i 's|/usr/lib/obs|/usr/libexec/obs|g' {} +
+ rm -f "${ED}"/usr/share/doc/${PN}*/TODO*
+}
diff --git a/dev-util/patchbin/Manifest b/dev-util/patchbin/Manifest
new file mode 100644
index 000000000000..299ed99596af
--- /dev/null
+++ b/dev-util/patchbin/Manifest
@@ -0,0 +1,4 @@
+DIST patchbin-20160208.tar.gz 9713001 SHA256 40bb69a6c7c46e59082b22224195dd5f8dedcb67fb5220eb646c06fa5dc60e6a SHA512 eeb5c4bc708cfc3a065568ef233297586c3bb3d497c6bf3ace52b8337b5a5d127e607f668a6f74e3be892e8cfac96a046dea3646735c4404efedd8760572353a WHIRLPOOL 384b44d127adcf4674f2e237fd502d55e8829535397789c31d1ef119a4bdaa1d2f33e3377bbf80077539f8bbd7664c9679658b673edc73ece043c8eba0f7e941
+EBUILD patchbin-20160208.ebuild 1144 SHA256 1949828e4075826c7c66e7ffd75c5d2a62fd2b93375e852b58a7137c7cb56170 SHA512 d34f4d8edaf8c0c5856a2968015bad0b50507d4264fdfcfee95e126188e9731f14079f0783ea6b6679bdd11c70e809aa4cbc23f09593c980f732df165c47a9ba WHIRLPOOL f85aaf2b38427138273945780c780a8638a765d06e5aa944aa0e705f6497e74393690c58a65aef79abf0bf42462ab80338f761335188fcb5a5a9503bdb818582
+EBUILD patchbin-99999999.ebuild 1144 SHA256 1949828e4075826c7c66e7ffd75c5d2a62fd2b93375e852b58a7137c7cb56170 SHA512 d34f4d8edaf8c0c5856a2968015bad0b50507d4264fdfcfee95e126188e9731f14079f0783ea6b6679bdd11c70e809aa4cbc23f09593c980f732df165c47a9ba WHIRLPOOL f85aaf2b38427138273945780c780a8638a765d06e5aa944aa0e705f6497e74393690c58a65aef79abf0bf42462ab80338f761335188fcb5a5a9503bdb818582
+MISC metadata.xml 528 SHA256 3a08af7b7ea5b2d6fcdd0ed7c6493a2554b4ba3cf44f69cc8573181cd5f863de SHA512 d15966f28c81025fd34bc247fc2f3f4ceda3c7dadd23f28487c80fe3155666665b9dd451e59356cd6bdcd30197be9a0439ab5c0b9383ab655870aa9033d58d94 WHIRLPOOL 8353c07aaafcfd5ea3f059b74c145e1179ccf3fa4a5e2877c2aadd2455ed544f5d2c843c0dbd0a4b8a7351af591caf1b2511ff58a78a7b410696534ba20168cd
diff --git a/dev-util/patchbin/metadata.xml b/dev-util/patchbin/metadata.xml
new file mode 100644
index 000000000000..1f33891b2670
--- /dev/null
+++ b/dev-util/patchbin/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>NP-Hardass@gentoo.org</email>
+ <name>NP-Hardass</name>
+ </maintainer>
+ <longdescription lang="en">
+ Apply binary patches without git
+ </longdescription>
+ <upstream>
+ <remote-id type="github">wine-compholio/wine-staging</remote-id>
+ <maintainer>
+ <name>Sebastian Lackner</name>
+ <email>sebastian@fds-team.de</email>
+ </maintainer>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/patchbin/patchbin-20160208.ebuild b/dev-util/patchbin/patchbin-20160208.ebuild
new file mode 100644
index 000000000000..8da830cccac7
--- /dev/null
+++ b/dev-util/patchbin/patchbin-20160208.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+if [[ ${PV} == 99999999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/wine-compholio/wine-staging"
+ KEYWORDS=""
+ S="${WORKDIR}/wine-staging"
+else
+ SHA="4ffcf184bb71c6c3512b3a8c144dcf4a3a76d23c"
+ SRC_URI="https://github.com/wine-compholio/wine-staging/archive/${SHA}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86 ~x86-fbsd"
+ S="${WORKDIR}/wine-staging-${SHA}"
+fi
+
+DESCRIPTION="Apply binary patches without git"
+HOMEPAGE="https://github.com/wine-compholio/wine-staging"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+IUSE="userland_BSD userland_GNU"
+
+RDEPEND="
+ app-shells/bash
+ sys-apps/coreutils
+ sys-apps/gawk
+ sys-apps/grep
+ userland_BSD? (
+ sys-freebsd/freebsd-bin
+ sys-freebsd/freebsd-ubin
+ )
+ userland_GNU? (
+ sys-apps/util-linux
+ sys-devel/patch
+ )
+"
+
+src_prepare(){
+ mv patches/gitapply.sh ${PN} || die
+ sed -E -i "s/(\.\/)?gitapply(\.sh)?/${PN}/g" ${PN} || die
+
+ default
+}
+
+src_install(){
+ exeinto /usr/bin/
+ doexe ${PN}
+}
+
+pkg_postinst(){
+ einfo "${PN} can optionally use dev-util/git to apply patches if installed."
+}
diff --git a/dev-util/patchbin/patchbin-99999999.ebuild b/dev-util/patchbin/patchbin-99999999.ebuild
new file mode 100644
index 000000000000..8da830cccac7
--- /dev/null
+++ b/dev-util/patchbin/patchbin-99999999.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+if [[ ${PV} == 99999999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/wine-compholio/wine-staging"
+ KEYWORDS=""
+ S="${WORKDIR}/wine-staging"
+else
+ SHA="4ffcf184bb71c6c3512b3a8c144dcf4a3a76d23c"
+ SRC_URI="https://github.com/wine-compholio/wine-staging/archive/${SHA}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86 ~x86-fbsd"
+ S="${WORKDIR}/wine-staging-${SHA}"
+fi
+
+DESCRIPTION="Apply binary patches without git"
+HOMEPAGE="https://github.com/wine-compholio/wine-staging"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+IUSE="userland_BSD userland_GNU"
+
+RDEPEND="
+ app-shells/bash
+ sys-apps/coreutils
+ sys-apps/gawk
+ sys-apps/grep
+ userland_BSD? (
+ sys-freebsd/freebsd-bin
+ sys-freebsd/freebsd-ubin
+ )
+ userland_GNU? (
+ sys-apps/util-linux
+ sys-devel/patch
+ )
+"
+
+src_prepare(){
+ mv patches/gitapply.sh ${PN} || die
+ sed -E -i "s/(\.\/)?gitapply(\.sh)?/${PN}/g" ${PN} || die
+
+ default
+}
+
+src_install(){
+ exeinto /usr/bin/
+ doexe ${PN}
+}
+
+pkg_postinst(){
+ einfo "${PN} can optionally use dev-util/git to apply patches if installed."
+}
diff --git a/dev-util/patchelf/Manifest b/dev-util/patchelf/Manifest
new file mode 100644
index 000000000000..d6a94e859a3f
--- /dev/null
+++ b/dev-util/patchelf/Manifest
@@ -0,0 +1,8 @@
+AUX patchelf-0.8-dash.patch 1060 SHA256 4c8edea1661401e914047ed96ec793bf7282abcae87fe0f39af71cf3e717bc5a SHA512 35f32d43a85ddcfa0a1c3879b0a934dea8c58c7121d3d86157183a175bcf64fc0d4aadf96a91b5e4d5aeade773ff3145c683378fbee019f5293bc0f636104a7e WHIRLPOOL f6bc55c9a7760ab5140a5b25fd807ae8060e7df718d5a01019430902f53c69ad2e58b6876a2f7591080f9ad04b9cfb89f0c5a0e8705d905016e289f39ae53158
+DIST patchelf-0.8.tar.bz2 119369 SHA256 c99f84d124347340c36707089ec8f70530abd56e7827c54d506eb4cc097a17e7 SHA512 819ace0ee032612e8bef56f230ea470be9d44bc03ef561f98ffac84f2555e419f87309280df6d265a8ae56452e54d46fc90be13a449847e93e4e7b413dc8605a WHIRLPOOL 64c56eda439dc114e4450428d7bde754a894ecbd8d2e0d1a29c3a53965527f76723fef9a240cd3686532f9202c84b23dd25cfe8e4f664ac33e08ca4056ef6780
+DIST patchelf-0.9.tar.bz2 159956 SHA256 a0f65c1ba148890e9f2f7823f4bedf7ecad5417772f64f994004f59a39014f83 SHA512 5bd3a1268b809f173debde5d34c3f736f38d7afb69decf609a422884c51eb1d5ccf62f2d454d4ef8b2c20e263ece49e3c2f801347ef1dfcceecd89c78a214790 WHIRLPOOL 040b568fcac1e73cdf4ef928af7171e74402e2197918a00573624a92c9db444f7c45facd4cc629d8fdc629ba771a04236420444b4f67d0a732a636c51ecc16a4
+EBUILD patchelf-0.8.ebuild 795 SHA256 c4b36075761d3d17fde9271f983bb5e8aa4bf3ec86b6cca49d62d438fca6a1a5 SHA512 ab5ab9ce393c12b5439646cda2d25226a65a9f262481357dac7c4fd12133790b6623b4ca8fd939306b6fe31d10082597e1b28319f9cc26b66b23316443eff191 WHIRLPOOL 68e6d2108e29931169942d3014d91c4b8302d57697b583716a3e4ac9d2be8db207394bb9a1e769786ec64bb3c8e8ddf62050561199d4c2cd55775cd39f1fc731
+EBUILD patchelf-0.9.ebuild 566 SHA256 e2969060c96fd1aca0bf14bf73aab4e535ba4043fc63f6d6eab3f36ac3841be9 SHA512 16c5341ace2673ffd4b8bbc6fe259ee53a1e4759c271a72a988274a39d40689ca666bc648d2a94033536eed41f64bbcfb93f4cd1089e17a15b64896b78c166fd WHIRLPOOL 811d526444e2408459149b2833ddc494972753e430e2ab98f80f08ac5564fe553c0f52cf769296a88856eb9ac210856db3ccf6fea87bbf2560c2d0b163f3441d
+MISC ChangeLog 2915 SHA256 35efc966837043a43d1a802029145dd8377f3ee9fbb822e38ccd3ced18f9218a SHA512 9657d6f98893db5e7cd64f05a92534f0ed8863b884efe33e7b814fed91a15228e922d6f53c0d8432c54e0f2f72e3d48461418866ee28ca85ed8e00e11bdbc2c9 WHIRLPOOL e0530f3c824908bea1e081e79766a0eb34a610312a6fdd39335ab2dd84a9bfddb021e822b75d7acb1a2a5a93cfa79f0f1a4d4ea6e86d186a06ae3155b6576124
+MISC ChangeLog-2015 2431 SHA256 ddd2fa25679a4693f5d7ffcfde09b598f515ce513024e399dc162bde180d1f65 SHA512 c4cd27d122d87b8233eedd489d04f1eb7fb195580b2e73213d5bb3d2ba2ae74f86f6ac6016d71e0fafcb975209103cddc1b215031129873560d5da4d00f756e7 WHIRLPOOL 3a7faa274a76f4cd5964c2ae0817a321dd376181923d549a0c85fd63addac1c369752ee55f4d32877821ccf5fed8ad54565fcb61b4e45ddd3b9f44b0b7dd951d
+MISC metadata.xml 220 SHA256 e158dc6d5b70da38970f840171880631a82b0bcabfa5a2a2fd1f9e7b3bdeb348 SHA512 512eee7a953300d5e721b64bade8be9bd1b62984e543552b58a7a72b42cb90973c8c6d557ecfe08c2355cab45f640c88dcd31ab8d116815bc01680a65c7a132c WHIRLPOOL c548f59f38696a783105fbd7b017590d0480b3af100de5cf5556fbf95a89f306b5c20aa9e1a326449f91fbe997334efa6bf6ffab8ba7d09c50ed67cefcd79928
diff --git a/dev-util/patchelf/files/patchelf-0.8-dash.patch b/dev-util/patchelf/files/patchelf-0.8-dash.patch
new file mode 100644
index 000000000000..4210b1c054d0
--- /dev/null
+++ b/dev-util/patchelf/files/patchelf-0.8-dash.patch
@@ -0,0 +1,28 @@
+From 3b9e7913a6d14cb09ed91ce8a1110955bda200ef Mon Sep 17 00:00:00 2001
+From: Alexandre Pretyman <alexandre.pretyman@gmail.com>
+Date: Tue, 14 Jul 2015 09:12:38 -0400
+Subject: [PATCH] Change configure.ac from OpenWrt to support Mac OS
+
+This change is from the OpenWrt project, from the URL:
+https://dev.openwrt.org/ticket/18998
+It enables patchelf to sucessfully compile and run under Mac OS and
+keeps compatibility with Linux.
+
+Tested under Mac OS X 10.9.5 and Ubuntu 15.04 to patch a binary of type
+ELF 32-bit LSB executable - the patch fully worked
+
+This patch is credited to Felix Fietkau
+---
+ configure.ac | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index 8ca9ad4..69e12de 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -1,4 +1,4 @@
+-AC_INIT([patchelf], m4_esyscmd([echo -n $(cat ./version)]))
++AC_INIT([patchelf], m4_esyscmd([printf $(cat ./version)]))
+ AC_CONFIG_SRCDIR([src/patchelf.cc])
+ AC_CONFIG_AUX_DIR([build-aux])
+ AM_INIT_AUTOMAKE([-Wall -Werror dist-bzip2 foreign color-tests parallel-tests])
diff --git a/dev-util/patchelf/metadata.xml b/dev-util/patchelf/metadata.xml
new file mode 100644
index 000000000000..1769853ef7e2
--- /dev/null
+++ b/dev-util/patchelf/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>chewi@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-util/patchelf/patchelf-0.8.ebuild b/dev-util/patchelf/patchelf-0.8.ebuild
new file mode 100644
index 000000000000..92c86cecf1a4
--- /dev/null
+++ b/dev-util/patchelf/patchelf-0.8.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+AUTOTOOLS_AUTORECONF=true
+
+inherit autotools-utils
+
+DESCRIPTION="Small utility to modify the dynamic linker and RPATH of ELF executables"
+HOMEPAGE="http://nixos.org/patchelf.html"
+SRC_URI="http://releases.nixos.org/${PN}/${P}/${P}.tar.bz2"
+
+SLOT="0"
+KEYWORDS="amd64 ppc ppc64 x86 ~amd64-linux ~x86-linux"
+LICENSE="GPL-3"
+IUSE=""
+
+AUTOTOOLS_IN_SOURCE_BUILD=1
+
+PATCHES=( "${FILESDIR}"/${P}-dash.patch )
+
+src_prepare() {
+ rm src/elf.h || die
+ sed -e 's:-Werror::g' -i configure.ac || die
+ autotools-utils_src_prepare
+}
+
+src_configure() {
+ local myeconfargs=( --docdir="${EPREFIX}"/usr/share/doc/${PF} )
+ autotools-utils_src_configure
+}
+
+src_test() {
+ autotools-utils_src_test -j1
+}
diff --git a/dev-util/patchelf/patchelf-0.9.ebuild b/dev-util/patchelf/patchelf-0.9.ebuild
new file mode 100644
index 000000000000..47264579ddde
--- /dev/null
+++ b/dev-util/patchelf/patchelf-0.9.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools
+
+DESCRIPTION="Small utility to modify the dynamic linker and RPATH of ELF executables"
+HOMEPAGE="http://nixos.org/patchelf.html"
+SRC_URI="http://releases.nixos.org/${PN}/${P}/${P}.tar.bz2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
+LICENSE="GPL-3"
+
+src_prepare() {
+ default
+ rm src/elf.h || die
+
+ sed -i \
+ -e 's:-Werror::g' \
+ -e 's:parallel-tests:serial-tests:g' \
+ configure.ac || die
+
+ eautoreconf
+}
diff --git a/dev-util/patchutils/Manifest b/dev-util/patchutils/Manifest
new file mode 100644
index 000000000000..3a6d746b941a
--- /dev/null
+++ b/dev-util/patchutils/Manifest
@@ -0,0 +1,8 @@
+AUX patchutils-0.3.3-format-security.patch 715 SHA256 f4c17fda9bea2e48f0265855403a64d063f7cd50fcff37cc59cc5113926bd434 SHA512 b98932e5e48dfefb2ef8550c7f212cb0bf7417b0ed42705e3ddd9164d522ebdb47a0610539769a49a19d10e6389eb9e764fc5ef7bdd03af9b29feeb76a51c8fa WHIRLPOOL 4b1f7415f3a55ee96c3b4939bc67fb14faa445524cf696ea8aea436929a10b6373fce3481f7f5beda96c07ab777f44b5bc17e16011d96ccfdd7813acdfda7624
+DIST patchutils-0.3.3.tar.xz 156328 SHA256 91f4e8451b2efcac5d40c966e42c175803450f0de94c926bfecc12c90070ad3c SHA512 4ec085078e9ae2e878dc10fbfea5974d9772716aef5d8e130a0023ceaa26640bccfaf1022c8153923b38230b36c8d4dddf4aaa674076c733bb1277895b63a268 WHIRLPOOL b4db67f2682e3bd4a37abacaa56477f7bfe79210469243c572ebd870e0e19cb54e51d6be79b737210e9de685d09470ce2d2db0452fe4b8f26f72f06a9cb6b3f8
+DIST patchutils-0.3.4.tar.xz 166400 SHA256 cf55d4db83ead41188f5b6be16f60f6b76a87d5db1c42f5459d596e81dabe876 SHA512 ede006122fad180b78feaf69294f1c40c0a764981fa581f1893abeeb0421f9d586fc33f79d065690a6bc6187a31f11311b086669879dde12c6e49c7c8a2aa440 WHIRLPOOL 4f6b04ff139f9b8ae8c0d7e3ac7200071de087b70633ec17836937c473b54cc6d60d7572d91fe36735b12d1eaed57ebcaac9283d41f9a06f19f52683b4c0e372
+EBUILD patchutils-0.3.3.ebuild 754 SHA256 61e8ae1779fd8384f6477c1b354932afa3f687f7e0bc6b07141f99af3ec5027b SHA512 8f67afa723ad1162d17c816bb3b185019dd648da5c6e541ac74a974e9b76689ce93df139bbf7d87c6746a87425e0e65c76cff70ae9d06b731afbf06ce7d1ddef WHIRLPOOL 3f57da568271976457a9b9b35c5df918ed3b0073a5ec5de3d04114a7c9021ce0fd194673b3c2579fb49dee0680110db57460081c89f80a3ac779e786f804fca4
+EBUILD patchutils-0.3.4.ebuild 787 SHA256 d200c73928700c7b5fd9b9a09a461535b7daf03620dde2fb2f6b98b070ea8dc5 SHA512 445ab2d5978ea00a9b061fd9d78cc44d668e725f2385e459c7fc07b6dc8e3638fbd08894b737959f321c8c5040ea2d40ca11fc96d3c92b8f38008ad2981fa76b WHIRLPOOL 633add3700a1f5a406d1222fcd4a9b3b6defce728f6a82e54ed415a01148612bea59f6a7f5e7ddbfb49a9e0ea77729d3169a7617722f9c37d6044be04e5616aa
+MISC ChangeLog 2714 SHA256 5510f9ab78ee2dc79939b1856fba7518cf15be0bd4a41566652cd97eec4d35c6 SHA512 d34ba801a34e2142c83f9f626a5e57f31acbefda775b7a926142515965e64f7fef5493059479dda7ab411243a65c22d16d7b2db4450d2f0989c2c9c2d97e64c5 WHIRLPOOL c5f909e132caea79bdf2ae0563ac4d2248e02c0dfa085f5ed4e66b052a52eaaede7bd2d856d00621ff5c256f6d533f9bd89b64f8c8d13b3549f674cb21ecf82a
+MISC ChangeLog-2015 9899 SHA256 2fec93564625de38604da1f896d64e75a564d6b62cae69c0803c0bb7380e07b7 SHA512 f90b3d2d230251687edded087a3b808b6f8baaaf72ba172c3c31f022de4fc1a41baa14572b1d0485f16f9c2666ec35eb73dfaf8f6d1e681c6c347dff5d89d994 WHIRLPOOL 585bddff8c5b8f1ed7d0f441f015cebc495bc7278043a5a37ee2ecfc65594e582f2d282620560fde3edf2f7ee89ef3d16e5a8c66a131ca81535ebed2ae2faa9f
+MISC metadata.xml 265 SHA256 5c4f9426c69dd2191012bf8aae1952f4f6298c1f6ff0ec1e45fe0e05327694e9 SHA512 176f814d8c555e8726f36e012367b698e8a19a0662982621029a7f9190beecc5e6798e43c51698dc149364966cdeff7061121e54fa9d4cf2a3559a6ce4904e25 WHIRLPOOL 2fa84a9f23f48e804ab20a6fabe2707f86227bded2a41d3af30958db5a69bc6276140a7f035a256caeca5a8b8ce1c240383c300a90fc4a83334c178769bc3519
diff --git a/dev-util/patchutils/files/patchutils-0.3.3-format-security.patch b/dev-util/patchutils/files/patchutils-0.3.3-format-security.patch
new file mode 100644
index 000000000000..be190b65a734
--- /dev/null
+++ b/dev-util/patchutils/files/patchutils-0.3.3-format-security.patch
@@ -0,0 +1,25 @@
+ src/filterdiff.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/filterdiff.c b/src/filterdiff.c
+index eb08d49..0b2b301 100644
+--- a/src/filterdiff.c
++++ b/src/filterdiff.c
+@@ -1263,7 +1263,7 @@ read_regex_file (const char *file)
+ char errstr[300];
+ regerror (err, &regex[num_regex - 1], errstr,
+ sizeof (errstr));
+- error (EXIT_FAILURE, 0, errstr);
++ error (EXIT_FAILURE, 0, "%s", errstr);
+ exit (1);
+ }
+ }
+@@ -1509,7 +1509,7 @@ int main (int argc, char *argv[])
+ char errstr[300];
+ regerror (err, &regex[num_regex - 1], errstr,
+ sizeof (errstr));
+- error (EXIT_FAILURE, 0, errstr);
++ error (EXIT_FAILURE, 0, "%s", errstr);
+ exit (1);
+ }
+ }
diff --git a/dev-util/patchutils/metadata.xml b/dev-util/patchutils/metadata.xml
new file mode 100644
index 000000000000..3cf14bf74636
--- /dev/null
+++ b/dev-util/patchutils/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="project">
+ <email>shell-tools@gentoo.org</email>
+ <name>Gentoo Shell Tools Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-util/patchutils/patchutils-0.3.3.ebuild b/dev-util/patchutils/patchutils-0.3.3.ebuild
new file mode 100644
index 000000000000..7cccfbdbbac7
--- /dev/null
+++ b/dev-util/patchutils/patchutils-0.3.3.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils
+
+DESCRIPTION="A collection of tools that operate on patch files"
+HOMEPAGE="http://cyberelk.net/tim/patchutils/"
+SRC_URI="http://cyberelk.net/tim/data/patchutils/stable/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x86-solaris"
+IUSE="test"
+
+RDEPEND=""
+# The testsuite makes use of gendiff(1) that comes from rpm, thus if
+# the user wants to run tests, it should install that too.
+DEPEND="test? ( app-arch/rpm )"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-format-security.patch
+}
diff --git a/dev-util/patchutils/patchutils-0.3.4.ebuild b/dev-util/patchutils/patchutils-0.3.4.ebuild
new file mode 100644
index 000000000000..582fbb04cb1e
--- /dev/null
+++ b/dev-util/patchutils/patchutils-0.3.4.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="A collection of tools that operate on patch files"
+HOMEPAGE="http://cyberelk.net/tim/patchutils/"
+SRC_URI="http://cyberelk.net/tim/data/patchutils/stable/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~ppc-aix ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x86-solaris"
+IUSE="test"
+
+# testsuite makes use of gendiff(1) that comes from rpm, thus if the user wants
+# to run tests, it should install that package as well.
+DEPEND="test? ( app-arch/rpm )"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-0.3.3-format-security.patch"
+)
+
+src_test() {
+ # See bug 605952.
+ make check || die
+}
diff --git a/dev-util/patdiff/Manifest b/dev-util/patdiff/Manifest
new file mode 100644
index 000000000000..9755f091c8d5
--- /dev/null
+++ b/dev-util/patdiff/Manifest
@@ -0,0 +1,3 @@
+DIST patdiff-0.9.0.tar.gz 40059 SHA256 ca5cddb2aad11eb29108e14b661427fc9488fca6753578b0141b331ee39683f5 SHA512 a48d58c7b2681d5be6281fd6ff4e95df98d6c6f50622eaae5560a9f99c3b8ea0154cec5e6e5eaff687122a1d907657e943239869125089cab5e94e65f7c6a298 WHIRLPOOL 3dc776b01b77b06d04b4511b06c9d892d5cc2eb93c62333707c274dc2af301bca05ed5be08b86e5c371b8efc8c98032fbff587e6d93de0acf7b8e1154b11b14e
+EBUILD patdiff-0.9.0.ebuild 847 SHA256 ad00e3633a9715622c6125f77d5b990cb241acc1c6aa92b21c80c41c2a832f48 SHA512 17cad2854442957d5c5ac9a41d5d35553c1f28c6a39d924757ddac66431152323fbfa9d3eca99427209f9c32c7e05b87406c70c27e7034720a74400ba46ff6aa WHIRLPOOL 3fcddf17b0bf9621bcc751566d7f5fc4506041ce4a1b07ecf373295809f4cf69160353417bfafb277d791e6e97221961d01c629aec59912627d8639fbbd22458
+MISC metadata.xml 329 SHA256 35f240edff8a029b7227e8f215cdfeb841488a8180f2dc4b03bec205c881e56f SHA512 f911fdd49ca38df516f914bb069165f9114f442d78f8626a5132b3699321683e9ea85d139e1e91d3fc48b4495bdf58ae7014dd4eb723385612d9490f6c9447ae WHIRLPOOL e38651c6acfc9c89e0611e66d7e088b13b8df3d4a089759e2cf069122a86ed3d894fea234d49c8ef606a736d6b437c862dcd91e7e0a1bf1624d1cc8490a552bd
diff --git a/dev-util/patdiff/metadata.xml b/dev-util/patdiff/metadata.xml
new file mode 100644
index 000000000000..80d170f9a1b2
--- /dev/null
+++ b/dev-util/patdiff/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="project">
+ <email>ml@gentoo.org</email>
+ <name>Gentoo ML Project</name>
+</maintainer>
+ <upstream>
+ <remote-id type="github">janestreet/patdiff</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/patdiff/patdiff-0.9.0.ebuild b/dev-util/patdiff/patdiff-0.9.0.ebuild
new file mode 100644
index 000000000000..2c95dc9f4545
--- /dev/null
+++ b/dev-util/patdiff/patdiff-0.9.0.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Colored patience diffs with word-level refinement"
+HOMEPAGE="https://github.com/janestreet/patdiff"
+SRC_URI="https://github.com/janestreet/patdiff/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE=""
+
+RDEPEND="
+ dev-lang/ocaml:=
+ dev-ml/core:=
+ dev-ml/core_extended:=
+ dev-ml/patience_diff:=
+ dev-ml/ppx_driver:=
+ dev-ml/ppx_jane:=
+ dev-ml/re2:=
+ dev-ml/sexplib:=
+ dev-ml/ocaml-migrate-parsetree:=
+ dev-ml/pcre-ocaml:=
+"
+DEPEND="${RDEPEND} dev-ml/opam dev-ml/jbuilder"
+
+src_install() {
+ opam-installer -i \
+ --prefix="${ED}/usr" \
+ --libdir="${D}/$(ocamlc -where)" \
+ --docdir="${ED}/usr/share/doc/${PF}" \
+ --mandir="${ED}/usr/share/man" \
+ ${PN}.install || die
+}
diff --git a/dev-util/peg/Manifest b/dev-util/peg/Manifest
new file mode 100644
index 000000000000..9cc72fc1420d
--- /dev/null
+++ b/dev-util/peg/Manifest
@@ -0,0 +1,10 @@
+DIST peg-0.1.13.tar.gz 55352 SHA256 1803b1427a55aae9d7a0db032669a86c4db372fdf775921e43b6308c7b69148c SHA512 fbec192daef2c72511cc17e6f7b301ac48d20746ac9843d61c05e8a069633c5fbc6d92155a94aad5094dc84a2f1bb92bc2b2aabaf6bc563d4401460f1047b3b0 WHIRLPOOL 9b2043aa14569fc45053563c5785297d4ea26fd350a18edd9791a3fb55445c3a31de91fcfd654fe4aed5abd78d47a8651b0c1c78a3218aa78dc5c4a4559505c5
+DIST peg-0.1.15.tar.gz 56522 SHA256 b6736ca15e5eb9154596e620ebad94a4705c7e597fc97b11219a90fc171faef2 SHA512 70b67d57c866c24cc9ceaf029e95bacba56def7ccb289233e3816c1f6f1f210dd8a729446df94d0424b5946959dbf9a33f81a5a95f7563a9dca460d6e2320018 WHIRLPOOL 2a8f4942c32d92998ba930707e59f49b3e957a9c8602d9160fe07143e7f7353d88ae597c694f42554f789d6ab35c4748f81ef5548fabe520ced623d3905b5168
+DIST peg-0.1.9.tar.gz 38485 SHA256 81d9299f3ee9e12b78c993529185645edd4475f5da271bff65b13c61d776708f SHA512 73d0776972243ca8cba348b63252dee837308df6d6b00d2a186396545b80cb798e3280a9af6a71d51d9ae8c381a518502f96cf3d0d651bcf0f2206276f29ed1e WHIRLPOOL 2b3ff19f6028ae15e5cd6e1794e97892ea791da0f7a906d3ba45d1a478d7c0eaa1aa5432572e2dcfe03106f3d108bb5e02d3fbd9ee1c59f45d5c56ca56efa5a9
+EBUILD peg-0.1.13.ebuild 803 SHA256 14fe34bffa2543c17300fc139bf8c39ada905663294e835a8be49e538561fcbc SHA512 f96ccd15b32243ba527d3d803a898d416ae49b5f566415e13926c96b9e7724b24453eb839b9c1923f9f052c316ccb2ff476dd13dea78f5b3088236131ad58b0f WHIRLPOOL e8b896af6cf21e0f69cca40d2a937cf8814bf5d131406db5dd9b85fcdbb4e6b922d62832b10e0048bf270efffb535943135818b90cc0f1a1462f6bf1dabf9ddd
+EBUILD peg-0.1.15-r1.ebuild 896 SHA256 ff8f78bf2f731ac948d5e9f203782b4e7ddbce76fa1cf435f6f5ef7366151bfe SHA512 21b10c4f565e3dd927f08e3e4a1aa70cdd572ce8777e74dc069dd830d813abb5080127d2789e91e86d5048217c94663090a4c548ad5efeab595f34200fabcaed WHIRLPOOL d1b999d303f4b2e7ade7b3a3419b3224b9388a8bb40eb26275244ea9b07faa1bbb58ba7ec19dbdf901c1522b30c11c2a96eaf8081c135b0d5841bec1d3517e89
+EBUILD peg-0.1.15.ebuild 743 SHA256 db1e87b89184cb6576b3355f7d1fd5c7ac60c526eb22d9e47c835710f80c12e0 SHA512 f251edd6def3e93edd4e7e8a0c776e961ff49cd0d1b9062b72061379dcf83033c2b4b2be69c7bc041d951774e3a70a10faee31846b42e1d3eda01ddf27e73ef3 WHIRLPOOL 382dacf30eb3b7783511ddb74d7c01c769aed16d117d6d2589b9e3d3812fea998d4227211f49df344f1a96d24171362abd1c0ca7a223b3bd9a46ed82bf439f84
+EBUILD peg-0.1.9.ebuild 757 SHA256 d47b6a07841ea9569b8a599bb0d5ceb9a224eedac6337bcb0e8e106cc55a96ee SHA512 eb565ee8b4a0d113dc4bdfbcbdc9f4473482b36eb80c811a7dcafd42aa60f12d6145bdd0b21d4a6e8a345e70eeae3d60f2b842b2f2470f68975ea9663e486f73 WHIRLPOOL c12f4649f9574534f3d6d0170eb7ce3fb33804c775cee6defd7b0866a25179ed3bac4928faf284b258c6cfbd282525df9cbfb18c4682ebf0f731925be78f71f0
+MISC ChangeLog 2431 SHA256 268a16fd940c9889cfaf9f94b8f2861fb8cbad33e035ddd095a29629b76bb676 SHA512 12db3e2f7d3fffbc3b75181cd118261981d27aca1d602aad976bc54534f052516eab66c85a7796f829c4877db99c1515cd8719595ea020568fb89401c28361a5 WHIRLPOOL 6a487c21e30a4e92e65e3fb10b3dd60713398967649b6b15fbfa40c9ca5b2bf29bdae1322fa4cd45bb8c5ab9f4be64c0d3028fd17c57a0e165b819d86e3a3db6
+MISC ChangeLog-2015 863 SHA256 ab88089c0eb66557a3b3093c410ea396f1c3c8675b2140c9bc52dd98cd42afaf SHA512 0f5064a642502e96b372eb5ea0f964fd43c0a4fffc26819752310a0233086dc56b87403828f086d8c92e93dd2d695de4a6d50445e93238f14b17fb9661333cac WHIRLPOOL d17c4bbe61f494855e874b1847de650e083ccd7dfd76fe498387c453fa9a92538ac2de35c9453be5ad8c521be233f0ae44deb90a8b18276a6f15851969d1a3a9
+MISC metadata.xml 257 SHA256 43d82a629f2ec8fceb1d2200794c3ec1d858fe64315ded4225e10d4ff5197f13 SHA512 7c68096d12fdee234074ad1256cb5075513b3a00795138a18a70003d8498c9418664d4f62772647e090796ea6b9bda9aeeac1e74c271773efa42568aeefde301 WHIRLPOOL 8aec5513a5507ae708497642d96ebdb3334bffab336ca57f6576ba2431b8660fbeee778efaccc7a17d036fd0bfd42ab777877be6b0632c21131931d7d3ad36d0
diff --git a/dev-util/peg/metadata.xml b/dev-util/peg/metadata.xml
new file mode 100644
index 000000000000..50a821d8b2dc
--- /dev/null
+++ b/dev-util/peg/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>rafaelmartins@gentoo.org</email>
+ <name>Rafael G. Martins</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-util/peg/peg-0.1.13.ebuild b/dev-util/peg/peg-0.1.13.ebuild
new file mode 100644
index 000000000000..9d17112ee19a
--- /dev/null
+++ b/dev-util/peg/peg-0.1.13.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+DESCRIPTION="Recursive-descent parser generators for C"
+HOMEPAGE="http://piumarta.com/software/peg/"
+SRC_URI="http://piumarta.com/software/${PN}/${PF}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+# FIXME: tests don't respect {C,LD}FLAGS and build stuff in runtime.
+RESTRICT="test"
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ sed -i \
+ -e '/strip/d' \
+ -e '/^CFLAGS/d' \
+ -e 's/$(CFLAGS)/$(CFLAGS) $(LDFLAGS)/g' \
+ Makefile || die "sed failed"
+}
+
+src_install() {
+ mkdir -p "${D}/usr/bin" || die "mkdir failed"
+ emake ROOT="${D}" PREFIX="/usr" install
+ rm -rf "${D}/usr/man" || die "rm failed"
+ doman src/${PN}.1
+}
+
+src_test() {
+ emake check
+ emake test
+}
diff --git a/dev-util/peg/peg-0.1.15-r1.ebuild b/dev-util/peg/peg-0.1.15-r1.ebuild
new file mode 100644
index 000000000000..f9bd88d83f92
--- /dev/null
+++ b/dev-util/peg/peg-0.1.15-r1.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit toolchain-funcs
+
+DESCRIPTION="Recursive-descent parser generators for C"
+HOMEPAGE="http://piumarta.com/software/peg/"
+SRC_URI="http://piumarta.com/software/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+# FIXME: tests don't respect {C,LD}FLAGS and build stuff in runtime.
+RESTRICT="test"
+
+src_prepare() {
+ sed -i \
+ -e '/strip/d' \
+ -e '/^CFLAGS/d' \
+ -e 's/$(CC) $(CFLAGS) -o/$(CC) $(CFLAGS) $(LDFLAGS) -o/g' \
+ Makefile || die "sed failed"
+}
+
+src_compile() {
+ emake \
+ CC="$(tc-getCC)" \
+ CFLAGS="${CFLAGS}" \
+ LDFLAGS="${LDFLAGS}"
+}
+
+src_install() {
+ dodir "/usr/bin"
+ emake -j1 \
+ ROOT="${D}" \
+ PREFIX="/usr" \
+ install
+ rm -rf "${D}/usr/man" || die "rm failed"
+ doman src/${PN}.1
+}
+
+src_test() {
+ emake check
+ emake test
+}
diff --git a/dev-util/peg/peg-0.1.15.ebuild b/dev-util/peg/peg-0.1.15.ebuild
new file mode 100644
index 000000000000..69f02c21d1e8
--- /dev/null
+++ b/dev-util/peg/peg-0.1.15.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+DESCRIPTION="Recursive-descent parser generators for C"
+HOMEPAGE="http://piumarta.com/software/peg/"
+SRC_URI="http://piumarta.com/software/${PN}/${PF}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+# FIXME: tests don't respect {C,LD}FLAGS and build stuff in runtime.
+RESTRICT="test"
+
+src_prepare() {
+ sed -i \
+ -e '/strip/d' \
+ -e '/^CFLAGS/d' \
+ -e 's/$(CFLAGS)/$(CFLAGS) $(LDFLAGS)/g' \
+ Makefile || die "sed failed"
+}
+
+src_install() {
+ dodir "/usr/bin"
+ emake ROOT="${D}" PREFIX="/usr" install
+ rm -rf "${D}/usr/man" || die "rm failed"
+ doman src/${PN}.1
+}
+
+src_test() {
+ emake check
+ emake test
+}
diff --git a/dev-util/peg/peg-0.1.9.ebuild b/dev-util/peg/peg-0.1.9.ebuild
new file mode 100644
index 000000000000..6f8f2b50b211
--- /dev/null
+++ b/dev-util/peg/peg-0.1.9.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+DESCRIPTION="Recursive-descent parser generators for C"
+HOMEPAGE="http://piumarta.com/software/peg/"
+SRC_URI="http://piumarta.com/software/${PN}/${PF}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+# FIXME: tests don't respect {C,LD}FLAGS and build stuff in runtime.
+RESTRICT="test"
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ sed -i \
+ -e '/strip/d' \
+ -e '/^CFLAGS/d' \
+ -e 's/$(CFLAGS)/$(CFLAGS) $(LDFLAGS)/g' \
+ Makefile || die "sed failed"
+}
+
+src_install() {
+ mkdir -p "${D}/usr/bin" || die "mkdir failed"
+ emake ROOT="${D}" PREFIX="/usr" install
+ doman ${PN}.1
+}
+
+src_test() {
+ emake check
+ emake test
+}
diff --git a/dev-util/perf/Manifest b/dev-util/perf/Manifest
new file mode 100644
index 000000000000..3a63297e4bba
--- /dev/null
+++ b/dev-util/perf/Manifest
@@ -0,0 +1,21 @@
+AUX perf-4.1.5-prefix.patch 1637 SHA256 dac4671e909a0af78345f6253e4c7ca04f0d3d400c76eecaf0149ad51639b241 SHA512 ff7179d7b06513a83f0909723ad47774c07ad089079f43750c24a1dca685745048bce5ea6b0766e65e48b75b50d5a26866e827a89b0206800769ea2779355d6b WHIRLPOOL b9015891fcb48d113b8015a54a7dae290b041ab1cb607c7ea196fc6aeec74c6b14d221c3197efa2ff2040249498082a5fb9588c51428489a1fc9d349b5e799d1
+DIST linux-3.12.tar.bz2 91111381 SHA256 43129defd9079c99cf5e57506d36b6b01614c734a5ed9e604d3a7c1510ab8b22 SHA512 bea14d044c8a0257d8312f45db6a39ca4f9dffe8ac32a11198e90762ee1735c8b6975bb81c635a4755d451793fa7c7e5b2d7d692c9e57133b15b4cdc941febf1 WHIRLPOOL 1889c3f689cf305856112f350e3901175b9f6c4f1e4143d62b40e502000685ade3e75b211a8a9fd948f6225e1c57a68cae10ceb649ff7976981089290d562926
+DIST linux-3.13.tar.xz 77187032 SHA256 4d5e5eee5f276424c32e9591f1b6c971baedc7b49f28ce03d1f48b1e5d6226a2 SHA512 1ba223bb4b885d691a67196d86a8aaf7b4a1c351bf2a762f50f1b0c32da00dd0c28895872a66b49e8d244498d996876609268e64861d28ac4048886ef9f79b87 WHIRLPOOL 2992257a17e85b3eb16fcaf21678fa6dbf31f80c2099fd1ad0ff9852ac1d16122ac8e2c0b46421d8895d4368253a724e439cd625307ee7af7bd1e50cb2c9b62a
+DIST linux-3.15.tar.xz 79676484 SHA256 c3927e87be4040fa8aca1b58663dc0776aaf00485604ff88a623be2f3fb07794 SHA512 d5dc477cad4584e56e2e2ef9e0950c2b22e76e5cf5090a896ba099cb7c5e5db1853a4aeb96b199189653dc66d461557e95198e37516a619f7ddc01ba6b308e02 WHIRLPOOL 7f3dfde1a23aab75b7f40770ae2ca77c1b28f845e4abe6296b2aec9b56fe94f7afa76b00eb6cc7475305c31b726ebeb4643107dd48c12ac04c933cf1856b8e77
+DIST linux-4.1.tar.xz 83017828 SHA256 caf51f085aac1e1cea4d00dbbf3093ead07b551fc07b31b2a989c05f8ea72d9f SHA512 168ef84a4e67619f9f53f3574e438542a5747f9b43443363cb83597fcdac9f40d201625c66e375a23226745eaada9176eb006ca023613cec089349e91751f3c0 WHIRLPOOL 85fcfdb67ea7f865272a85d3b4c3ec1f5a1267f4664bf073c562bb3875e9d96ad68486259d8866a9aced98c95de16840ec531d89745aec75b7315a64ebe650b8
+DIST linux-4.4.tar.xz 87295988 SHA256 401d7c8fef594999a460d10c72c5a94e9c2e1022f16795ec51746b0d165418b2 SHA512 13c8459933a8b80608e226a1398e3d1848352ace84bcfb7e6a4a33cb230bbe1ab719d4b58e067283df91ce5311be6d2d595fc8c19e2ae6ecc652499415614b3e WHIRLPOOL 02abc203d867404b9934aaa4c1e5b5dcbb0b0021e91a03f3a7e7fd224eed106821d8b4949f32a590536db150e5a88c16fcde88538777a26d0c17900f0257b1bc
+DIST linux-4.9.tar.xz 93192404 SHA256 029098dcffab74875e086ae970e3828456838da6e0ba22ce3f64ef764f3d7f1a SHA512 bf67ff812cc3cb7e5059e82cc5db0d9a7c5637f7ed9a42e4730c715bf7047c81ed3a571225f92a33ef0b6d65f35595bc32d773356646df2627da55e9bc7f1f1a WHIRLPOOL 072505b29972ad120eb25a074217847c9c2813416c4903e605a0433574f5f87616dbea0b1454e4b19acc48107f11274b682958b1d773373156e99f8163e6606a
+DIST patch-3.13.1.xz 2884 SHA256 74a093b2cacddac0a105e0989b7bf0e9829b9923e2d71ca10382e90324a17e74 SHA512 164235a15e6a984e9aeaf9fe475a8b2975d5e4c4b28dd4ecf99064b0f0c72eea766d925340f1a7232cabcbd23d26773527c300b6d995bf5cde18a276208fdccc WHIRLPOOL 0ea0118960970b7d6465445252e7a21a6aeb494c0afefec5f52a68c0b7e0d63fd2ed59a3877fbe9ebd282ac03812235b021534866efa8f46d549b6f70228e4b6
+DIST patch-3.15.5.xz 122232 SHA256 9b0d000e0bdec7a25ee6303afdab8d2af77439995876eadd6ce248e5c954037d SHA512 6831200503334e839c3cccdad29058aecc0205171cc5b75205d0a2aada8636633889ebff35d9677d4567bbaeea249efc83571e016104cd67554fe72b3b405755 WHIRLPOOL 56e1e817c08b4557e18b34d148d8ffd0f73bf8dec92f2339ca9413ca2143b65ec35f6d48c87e37f140226e57d7df33f06d6c53a48dafa7ddf090a839fdabe024
+DIST patch-4.1.5.xz 170056 SHA256 b495cf8a7b978986dd2b757b687751c62f635d15cc2228edb80934bc0d449dcc SHA512 1325cdb35ea1f277d513932af37804f788b96ae63b94cedeb3c9b916ee8963bbd6aca5d0e13279e36a81f1de06005c5f3666ecfc845609932686f261fa4250c5 WHIRLPOOL 291ddfcde395c3d201a8172f7281ac560167a8bce78d3196b47e4c7be759545282cc1104fc7b2edc95d90250a834cc23103199275bc8c6974bd4229dd530d1a3
+DIST patch-4.4.4.xz 200972 SHA256 9061d8f57cc25d760387c4e6b7d5cceacaa808e8784a3e478012e7c2949853c8 SHA512 c206af7803cb0915fbe2bd27ed33282452db3fbd3070c73e4c7147443efd3c7588fb3be12d0abc08742381fbe892190602b29147684630aa9e6ff5e9efa49dbc WHIRLPOOL e6a004e32eecca1507354f97d3de85a07c1b9512fe3d4d87173e6d39c02ef1c2411abd0c26b6a077cd5eaefde11dd201445f72b9a0cf185e76635bdcc36df8dd
+DIST patch-4.9.13.xz 295932 SHA256 87a0f07dd393e2d08850f0536417d091684535ff0c8ab8f8d9aeab1db38589bf SHA512 d7956cc8a4ab11514789af4f1f7023268e4b003216766c153f0f09aac659aabda5de634b363d53f8daeddfcf5820619c5bca31ff5f9aeb187c1df016c05f68d5 WHIRLPOOL 154747030245f5c1e9f6d9717c32584e3901372fdfe7945497b294c7454f2da4ae4959cf9f1bdd091dca70d346125023a0b5d0c75cc3745342eb8bb56c68e023
+EBUILD perf-3.12.ebuild 5006 SHA256 29845b4ca7e89095cea0696583e1b4e88afd9c625d91be8c6d10498eb281cb00 SHA512 c247393496ac96e14ede7eaebb7e00d32221ccd38c2dca2cf50e3b7fe158172f49803c1e697584e25917a6d7d829890952cc7e8ae09a87158180530af66afb56 WHIRLPOOL 3bdc9fbff93750aff6cfc5c1d7bba8b6b0da912294f86d7faee19a3c41a521e50b0c2b517b13e8be71a9f59439fa1a873445cb165d97e07ed73b767d7fcc291c
+EBUILD perf-3.13.1-r1.ebuild 5128 SHA256 bec3bb4ae1c610189a25f040c3ab1967a16174ae87c0dc649599eb830595ae5b SHA512 f7ce04b5f4a4db657dfeb6b59d70c15cfb012ce661a62620773607ee93d5becfea56912dd9fae88db47a9f42ade6ce0ed0d0ba67a3fc37b086eda0e9e87118ab WHIRLPOOL 443379b33507b4f32c8a5d58917406cd0ab96946c39fb2a58f54109b3c0d6978a6afcc03fafd6ab5e7481132b2b7b4b2dbb1bbc95ce21b5a69e33c4a4863180e
+EBUILD perf-3.15.5.ebuild 5143 SHA256 28fc388439d49805ff0d2375facbdbd7fe7193bf0c837aeb787c934db439b564 SHA512 9a56717e87b9bf6bfa27f3d953e41af18c55e92020fbcc14fd01f43835e542bf1c7adb195387400c955706f5ca8a69090e41d6edfb728717910cd19b801d6dfc WHIRLPOOL 79a786c95d9568a678db98b0f5b1a80001bf649065001d4d3e385ff92584eb3f6a89ce0e2ac44e3423c4a0c429999514ec71d4b2b2d4d81a136ecbb7d4491e8e
+EBUILD perf-4.1.5-r1.ebuild 5269 SHA256 934813830b158e3324d539998ba597eeebc4531be4620c4c883e662eaa38e407 SHA512 1aa7d9fad71cbaf1a28976cfe7dbf74d7e04b4a00f81e5d7e0b96cced0a051bcf9846122caa66bb1466790ef5b7dcea71a1b291b2300056b1846ce4e5531b165 WHIRLPOOL 4293e13b07e3e3820e065156d107ba4a55fc6b598dae3c1755ea691b4bd6c0004becd4d990aca62b43e7adc8f607475efb702f0566a1466c3568a39202186711
+EBUILD perf-4.4.4.ebuild 5040 SHA256 621a728a3aa34f81677f1a28ecd6a33cef99c69ccfe9fafe961c3219b6c1f685 SHA512 f39e5397d269f879dbaa62b4cfacebba27dd2f26feb17d70b5b4f60fcf256438c2920df340c27abb45f24404b21ace1c5bab982c7e4a93c2befa382762e76967 WHIRLPOOL 271c8022b129baa5bf49bf57efa22cd03ec164cb73b66a9a12237d08a751b7decfeef092add71a4051924c7769c6e08adb725547bb29d02087ea13255e53e875
+EBUILD perf-4.9.13.ebuild 4818 SHA256 da57feb21153f85189430a5792e33ed0601ba0fd3f459491f3f06ed5187b5ac4 SHA512 460bb9d5077c015c85bc5dc256407d41d8ddd8dc8cb7e1bce4146261b4fec3d9740750d2533b7e80286b136416e180ff4b08b2c42490c335e3aeaf13b89ec369 WHIRLPOOL 1008df96aee9c88e0dd0d351410bde8a5d337d751694fd02e5c965c3d4df4635a7e1db318dd25bc969f912790779f1eae6e9381b4ddf42eb56b3dede5dbbc59e
+MISC ChangeLog 3650 SHA256 0975840be7bd7127c7d5b83a130f6ae8621256a7f02eb80196c69298b918eca2 SHA512 742d129e590b0c36adc7cc3b81fa51184c1c147dec3aa5c844a704f81cbab7023f39229c7e06ffcf06f4a5af5d1ba44100b8421f4c52fa5b8f8c47df4016d7ae WHIRLPOOL effae523378dd7bbdfac3dbb990e7e1a0b8d0cb18c08128c138f3e84d8f6419a9c117c4e7ed867d2ebc4e32279ab12f6c99a921d596f36da2cac74c89c55abc3
+MISC ChangeLog-2015 6264 SHA256 740d932dcee9533fa7cb6a2a03eecdc04aeb744b5d456dcb9972f6c228b57e2f SHA512 aebf127fb17bd1fd086d9f0057dfb5f044e789f943dbda5ef2260b5145944c4f8f44d241610209ec9c9a65908aa932019d5f0d3c027dfb5869423daf6762cb08 WHIRLPOOL 0f040aa61460166d988e4becfe91449bab91e90c5ac2d5da04eeb8685142a96700f776625f21b4997d5518857597c851934ebcdf6e558407ee25adce0d5ca63f
+MISC metadata.xml 1153 SHA256 880863b904a364fe264b2d6e4db2d5086b543df748a140aeab88bf531db1c88e SHA512 18e5b436d7ae5ba8c9da8bd4007e33006e25f351d9e01e55127bd35f47446663faafa1de37283410e0cec9f00b8b4422afb4a8d256b8161d88c3c084e8c9a09d WHIRLPOOL 2f765f9167d86eb0317b673f91f2c44190dc6d1a231d2fc047cdea57c8c0fcc03083bdfa03fae2abae1263d225141f1b9f6109f91026c77d47f7e532fb907c31
diff --git a/dev-util/perf/files/perf-4.1.5-prefix.patch b/dev-util/perf/files/perf-4.1.5-prefix.patch
new file mode 100644
index 000000000000..0c4dff011306
--- /dev/null
+++ b/dev-util/perf/files/perf-4.1.5-prefix.patch
@@ -0,0 +1,43 @@
+commit 75e84ab906ef8935cff3df3d8929f1bafea81599
+Author: Lukas Wunner <lukas@wunner.de>
+Date: Thu Jun 18 13:00:32 2015 +0200
+
+ perf tools: Fix build breakage if prefix= is specified
+
+ Invoking Makefile.perf with prefix= breaks the build since Makefile.perf
+ hands that variable down to Makefile.build where it overrides
+
+ prefix := $(subst ./,,$(OUTPUT)$(dir)/)
+
+ leading to errors like this:
+
+ No rule to make target '/usrabspath.o', needed by '/usrlibperf-in.o'
+
+ Signed-off-by: Lukas Wunner <lukas@wunner.de>
+ Acked-by: Jiri Olsa <jolsa@kernel.org>
+ Cc: David Ahern <dsahern@gmail.com>
+ Fixes: c819e2cf2eb6f65d3208d195d7a0edef6108d5
+ Link: http://lkml.kernel.org/r/5582c48a.84a22b0a.a918.5285SMTPIN_ADDED_MISSING@mx.google.com
+ Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
+
+diff --git a/tools/build/Makefile.build b/tools/build/Makefile.build
+index 10df572..98cfc38 100644
+--- a/tools/build/Makefile.build
++++ b/tools/build/Makefile.build
+@@ -94,12 +94,12 @@ obj-y := $(patsubst %/, %/$(obj)-in.o, $(obj-y))
+ subdir-obj-y := $(filter %/$(obj)-in.o, $(obj-y))
+
+ # '$(OUTPUT)/dir' prefix to all objects
+-prefix := $(subst ./,,$(OUTPUT)$(dir)/)
+-obj-y := $(addprefix $(prefix),$(obj-y))
+-subdir-obj-y := $(addprefix $(prefix),$(subdir-obj-y))
++objprefix := $(subst ./,,$(OUTPUT)$(dir)/)
++obj-y := $(addprefix $(objprefix),$(obj-y))
++subdir-obj-y := $(addprefix $(objprefix),$(subdir-obj-y))
+
+ # Final '$(obj)-in.o' object
+-in-target := $(prefix)$(obj)-in.o
++in-target := $(objprefix)$(obj)-in.o
+
+ PHONY += $(subdir-y)
+
diff --git a/dev-util/perf/metadata.xml b/dev-util/perf/metadata.xml
new file mode 100644
index 000000000000..1b50bf7e527b
--- /dev/null
+++ b/dev-util/perf/metadata.xml
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>naota@gentoo.org</email>
+ </maintainer>
+ <maintainer type="person">
+ <email>dlan@gentoo.org</email>
+ <name>Yixun Lan</name>
+ </maintainer>
+ <use>
+ <flag name="demangle">
+ Enable C++ symbol name demangling, using libbfd from
+ <pkg>sys-devel/binutils</pkg>. When this flag is enabled, the
+ package will have to be rebuilt after every version bump of
+ binutils.
+ </flag>
+ <flag name="doc">
+ Build documentation and man pages. With this USE flag disabled,
+ the --help parameter for perf and its sub-tools will not be
+ available. This is optional because it depends on a few
+ documentation handling tools that are not always welcome on user
+ systems.
+ </flag>
+ <flag name="numa">Enable NUMA support</flag>
+ <flag name="perl">
+ Add support for Perl as a scripting language for perf tools.
+ </flag>
+ <flag name="unwind">
+ Use sys-libs/libunwind for frame unwinding support.
+ </flag>
+ </use>
+</pkgmetadata>
diff --git a/dev-util/perf/perf-3.12.ebuild b/dev-util/perf/perf-3.12.ebuild
new file mode 100644
index 000000000000..9b930d58dece
--- /dev/null
+++ b/dev-util/perf/perf-3.12.ebuild
@@ -0,0 +1,177 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+PYTHON_COMPAT=( python2_7 )
+inherit versionator eutils toolchain-funcs python-single-r1 linux-info
+
+MY_PV="${PV/_/-}"
+MY_PV="${MY_PV/-pre/-git}"
+
+DESCRIPTION="Userland tools for Linux Performance Counters"
+HOMEPAGE="https://perf.wiki.kernel.org/"
+
+LINUX_V="${PV:0:1}.x"
+if [[ ${PV/_rc} != ${PV} ]] ; then
+ LINUX_VER=$(get_version_component_range 1-2).$(($(get_version_component_range 3)-1))
+ PATCH_VERSION=$(get_version_component_range 1-3)
+ LINUX_PATCH=patch-${PV//_/-}.bz2
+ SRC_URI="mirror://kernel/linux/kernel/v${LINUX_V}/testing/${LINUX_PATCH}
+ mirror://kernel/linux/kernel/v${LINUX_V}/testing/v${PATCH_VERSION}/${LINUX_PATCH}"
+elif [[ $(get_version_component_count) == 4 ]] ; then
+ # stable-release series
+ LINUX_VER=$(get_version_component_range 1-3)
+ LINUX_PATCH=patch-${PV}.bz2
+ SRC_URI="mirror://kernel/linux/kernel/v${LINUX_V}/${LINUX_PATCH}"
+else
+ LINUX_VER=${PV}
+ SRC_URI=""
+fi
+
+LINUX_SOURCES="linux-${LINUX_VER}.tar.bz2"
+SRC_URI+=" mirror://kernel/linux/kernel/v${LINUX_V}/${LINUX_SOURCES}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ppc ~x86"
+IUSE="audit +demangle +doc perl python slang unwind"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+RDEPEND="audit? ( sys-process/audit )
+ demangle? ( sys-devel/binutils )
+ perl? ( dev-lang/perl )
+ python? ( ${PYTHON_DEPS} )
+ slang? ( dev-libs/newt )
+ unwind? ( sys-libs/libunwind )
+ dev-libs/elfutils"
+DEPEND="${RDEPEND}
+ ${LINUX_PATCH+dev-util/patchutils}
+ sys-devel/bison
+ sys-devel/flex
+ doc? (
+ app-text/asciidoc
+ app-text/sgml-common
+ app-text/xmlto
+ sys-process/time
+ )"
+
+S_K="${WORKDIR}/linux-${LINUX_VER}"
+S="${S_K}/tools/perf"
+
+CONFIG_CHECK="~PERF_EVENTS ~KALLSYMS"
+
+pkg_setup() {
+ linux-info_pkg_setup
+ use python && python-single-r1_pkg_setup
+}
+
+src_unpack() {
+ local paths=( tools/perf tools/scripts tools/lib include lib "arch/*/include" "arch/*/lib" )
+
+ # We expect the tar implementation to support the -j option (both
+ # GNU tar and libarchive's tar support that).
+ echo ">>> Unpacking ${LINUX_SOURCES} (${paths[*]}) to ${PWD}"
+ tar --wildcards -xpf "${DISTDIR}"/${LINUX_SOURCES} \
+ "${paths[@]/#/linux-${LINUX_VER}/}" || die
+
+ if [[ -n ${LINUX_PATCH} ]] ; then
+ eshopts_push -o noglob
+ ebegin "Filtering partial source patch"
+ filterdiff -p1 ${paths[@]/#/-i } -z "${DISTDIR}"/${LINUX_PATCH} > ${P}.patch || die
+ eend $? || die "filterdiff failed"
+ eshopts_pop
+ fi
+
+ local a
+ for a in ${A}; do
+ [[ ${a} == ${LINUX_SOURCES} ]] && continue
+ [[ ${a} == ${LINUX_PATCH} ]] && continue
+ unpack ${a}
+ done
+}
+
+src_prepare() {
+ if [[ -n ${LINUX_PATCH} ]] ; then
+ cd "${S_K}"
+ epatch "${WORKDIR}"/${P}.patch
+ fi
+
+ # Drop some upstream too-developer-oriented flags and fix the
+ # Makefile in general
+ sed -i \
+ -e 's:-Werror::' \
+ -e 's:-ggdb3::' \
+ -e 's:-fstack-protector-all::' \
+ -e 's:^LDFLAGS =:EXTLIBS +=:' \
+ -e '/\(PERL\|PYTHON\)_EMBED_LDOPTS/s:ALL_LDFLAGS +=:EXTLIBS +=:' \
+ -e '/-x c - /s:\$(ALL_LDFLAGS):\0 $(EXTLIBS):' \
+ -e '/^ALL_CFLAGS =/s:$: $(CFLAGS_OPTIMIZE):' \
+ -e '/^ALL_LDFLAGS =/s:$: $(LDFLAGS_OPTIMIZE):' \
+ -e 's:$(sysconfdir_SQ)/bash_completion.d:/usr/share/bash-completion:' \
+ "${S}"/Makefile || die
+ sed -i -e 's:-Werror::' "${S_K}"/tools/lib/lk/Makefile || die
+ sed -i \
+ -e '/.FORCE-PERF-VERSION-FILE/s,.FORCE-PERF-VERSION-FILE,,g' \
+ "${S}"/Makefile \
+ "${S}"/Documentation/Makefile || die
+
+ # Avoid the call to make kernelversion
+ echo "#define PERF_VERSION \"${MY_PV}\"" > PERF-VERSION-FILE
+
+ # The code likes to compile local assembly files which lack ELF markings.
+ find -name '*.S' -exec sed -i '$a.section .note.GNU-stack,"",%progbits' {} +
+}
+
+puse() { usex $1 "" no; }
+perf_make() {
+ # The arch parsing is a bit funky. The perf tools package is integrated
+ # into the kernel, so it wants an ARCH that looks like the kernel arch,
+ # but it also wants to know about the split value -- i386/x86_64 vs just
+ # x86. We can get that by telling the func to use an older linux version.
+ # It's kind of a hack, but not that bad ...
+ local arch=$(KV=2.6.23 tc-arch-kernel)
+ emake -j1 V=1 \
+ CC="$(tc-getCC)" AR="$(tc-getAR)" \
+ prefix="/usr" bindir_relative="sbin" \
+ CFLAGS_OPTIMIZE="${CFLAGS}" \
+ LDFLAGS_OPTIMIZE="${LDFLAGS}" \
+ ARCH="${arch}" \
+ NO_DEMANGLE=$(puse demangle) \
+ NO_LIBAUDIT=$(puse audit) \
+ NO_LIBPERL=$(puse perl) \
+ NO_LIBPYTHON=$(puse python) \
+ NO_LIBUNWIND=$(puse unwind) \
+ NO_NEWT=$(puse slang) \
+ WERROR=0 \
+ "$@"
+}
+
+src_compile() {
+ perf_make
+ use doc && perf_make -C Documentation
+}
+
+src_test() {
+ :
+}
+
+src_install() {
+ perf_make install DESTDIR="${D}"
+
+ dodoc CREDITS
+
+ dodoc *txt Documentation/*.txt
+ if use doc ; then
+ dohtml Documentation/*.html
+ doman Documentation/*.1
+ fi
+}
+
+pkg_postinst() {
+ if ! use doc ; then
+ elog "Without the doc USE flag you won't get any documentation nor man pages."
+ elog "And without man pages, you won't get any --help output for perf and its"
+ elog "sub-tools."
+ fi
+}
diff --git a/dev-util/perf/perf-3.13.1-r1.ebuild b/dev-util/perf/perf-3.13.1-r1.ebuild
new file mode 100644
index 000000000000..39c962d6d05c
--- /dev/null
+++ b/dev-util/perf/perf-3.13.1-r1.ebuild
@@ -0,0 +1,182 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+PYTHON_COMPAT=( python2_7 )
+inherit versionator eutils toolchain-funcs python-single-r1 linux-info
+
+MY_PV="${PV/_/-}"
+MY_PV="${MY_PV/-pre/-git}"
+
+DESCRIPTION="Userland tools for Linux Performance Counters"
+HOMEPAGE="https://perf.wiki.kernel.org/"
+
+LINUX_V="${PV:0:1}.x"
+if [[ ${PV} == *_rc* ]] ; then
+ LINUX_VER=$(get_version_component_range 1-2).$(($(get_version_component_range 3)-1))
+ PATCH_VERSION=$(get_version_component_range 1-3)
+ LINUX_PATCH=patch-${PV//_/-}.xz
+ SRC_URI="mirror://kernel/linux/kernel/v${LINUX_V}/testing/${LINUX_PATCH}
+ mirror://kernel/linux/kernel/v${LINUX_V}/testing/v${PATCH_VERSION}/${LINUX_PATCH}"
+else
+ VER_COUNT=$(get_version_component_count)
+ if [[ ${VER_COUNT} -gt 2 ]] ; then
+ # stable-release series
+ LINUX_VER=$(get_version_component_range 1-2)
+ LINUX_PATCH=patch-${PV}.xz
+ SRC_URI="mirror://kernel/linux/kernel/v${LINUX_V}/${LINUX_PATCH}"
+ else
+ LINUX_VER=${PV}
+ SRC_URI=""
+ fi
+fi
+
+LINUX_SOURCES="linux-${LINUX_VER}.tar.xz"
+SRC_URI+=" mirror://kernel/linux/kernel/v${LINUX_V}/${LINUX_SOURCES}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~mips ~ppc ~x86"
+IUSE="audit +demangle +doc gtk perl python slang unwind"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+RDEPEND="audit? ( sys-process/audit )
+ demangle? ( sys-devel/binutils )
+ gtk? ( x11-libs/gtk+:2 )
+ perl? ( dev-lang/perl )
+ python? ( ${PYTHON_DEPS} )
+ slang? ( dev-libs/newt )
+ unwind? ( sys-libs/libunwind )
+ dev-libs/elfutils"
+DEPEND="${RDEPEND}
+ ${LINUX_PATCH+dev-util/patchutils}
+ sys-devel/bison
+ sys-devel/flex
+ doc? (
+ app-text/asciidoc
+ app-text/sgml-common
+ app-text/xmlto
+ sys-process/time
+ )"
+
+S_K="${WORKDIR}/linux-${LINUX_VER}"
+S="${S_K}/tools/perf"
+
+CONFIG_CHECK="~PERF_EVENTS ~KALLSYMS"
+
+pkg_setup() {
+ linux-info_pkg_setup
+ use python && python-single-r1_pkg_setup
+}
+
+src_unpack() {
+ local paths=( tools/perf tools/scripts tools/lib include lib "arch/*/include" "arch/*/lib" )
+
+ # We expect the tar implementation to support the -j option (both
+ # GNU tar and libarchive's tar support that).
+ echo ">>> Unpacking ${LINUX_SOURCES} (${paths[*]}) to ${PWD}"
+ tar --wildcards -xpf "${DISTDIR}"/${LINUX_SOURCES} \
+ "${paths[@]/#/linux-${LINUX_VER}/}" || die
+
+ if [[ -n ${LINUX_PATCH} ]] ; then
+ eshopts_push -o noglob
+ ebegin "Filtering partial source patch"
+ filterdiff -p1 ${paths[@]/#/-i } -z "${DISTDIR}"/${LINUX_PATCH} > ${P}.patch || die
+ eend $? || die "filterdiff failed"
+ eshopts_pop
+ fi
+
+ local a
+ for a in ${A}; do
+ [[ ${a} == ${LINUX_SOURCES} ]] && continue
+ [[ ${a} == ${LINUX_PATCH} ]] && continue
+ unpack ${a}
+ done
+}
+
+src_prepare() {
+ if [[ -n ${LINUX_PATCH} ]] ; then
+ cd "${S_K}"
+ epatch "${WORKDIR}"/${P}.patch
+ fi
+
+ # Drop some upstream too-developer-oriented flags and fix the
+ # Makefile in general
+ sed -i \
+ -e 's:-Werror::' \
+ -e 's:-ggdb3::' \
+ -e 's:-fstack-protector-all::' \
+ -e 's:^LDFLAGS =:EXTLIBS +=:' \
+ -e '/\(PERL\|PYTHON\)_EMBED_LDOPTS/s:ALL_LDFLAGS +=:EXTLIBS +=:' \
+ -e '/-x c - /s:\$(ALL_LDFLAGS):\0 $(EXTLIBS):' \
+ -e '/^ALL_CFLAGS =/s:$: $(CFLAGS_OPTIMIZE):' \
+ -e '/^ALL_LDFLAGS =/s:$: $(LDFLAGS_OPTIMIZE):' \
+ -e 's:$(sysconfdir_SQ)/bash_completion.d:/usr/share/bash-completion:' \
+ "${S}"/Makefile || die
+ sed -i -e 's:-Werror::' "${S_K}"/tools/lib/lk/Makefile || die
+ sed -i \
+ -e '/.FORCE-PERF-VERSION-FILE/s,.FORCE-PERF-VERSION-FILE,,g' \
+ "${S}"/Makefile \
+ "${S}"/Documentation/Makefile || die
+
+ # Avoid the call to make kernelversion
+ echo "#define PERF_VERSION \"${MY_PV}\"" > PERF-VERSION-FILE
+
+ # The code likes to compile local assembly files which lack ELF markings.
+ find -name '*.S' -exec sed -i '$a.section .note.GNU-stack,"",%progbits' {} +
+}
+
+puse() { usex $1 "" no; }
+perf_make() {
+ # The arch parsing is a bit funky. The perf tools package is integrated
+ # into the kernel, so it wants an ARCH that looks like the kernel arch,
+ # but it also wants to know about the split value -- i386/x86_64 vs just
+ # x86. We can get that by telling the func to use an older linux version.
+ # It's kind of a hack, but not that bad ...
+ local arch=$(KV=2.6.23 tc-arch-kernel)
+ emake V=1 \
+ CC="$(tc-getCC)" AR="$(tc-getAR)" \
+ prefix="/usr" bindir_relative="bin" \
+ CFLAGS_OPTIMIZE="${CFLAGS}" \
+ LDFLAGS_OPTIMIZE="${LDFLAGS}" \
+ ARCH="${arch}" \
+ NO_DEMANGLE=$(puse demangle) \
+ NO_GTK2=$(puse gtk) \
+ NO_LIBAUDIT=$(puse audit) \
+ NO_LIBPERL=$(puse perl) \
+ NO_LIBPYTHON=$(puse python) \
+ NO_LIBUNWIND=$(puse unwind) \
+ NO_NEWT=$(puse slang) \
+ WERROR=0 \
+ "$@"
+}
+
+src_compile() {
+ perf_make -f Makefile.perf
+ use doc && perf_make -C Documentation
+}
+
+src_test() {
+ :
+}
+
+src_install() {
+ perf_make -f Makefile.perf install DESTDIR="${D}"
+
+ dodoc CREDITS
+
+ dodoc *txt Documentation/*.txt
+ if use doc ; then
+ dohtml Documentation/*.html
+ doman Documentation/*.1
+ fi
+}
+
+pkg_postinst() {
+ if ! use doc ; then
+ elog "Without the doc USE flag you won't get any documentation nor man pages."
+ elog "And without man pages, you won't get any --help output for perf and its"
+ elog "sub-tools."
+ fi
+}
diff --git a/dev-util/perf/perf-3.15.5.ebuild b/dev-util/perf/perf-3.15.5.ebuild
new file mode 100644
index 000000000000..c2e5a6f47f2c
--- /dev/null
+++ b/dev-util/perf/perf-3.15.5.ebuild
@@ -0,0 +1,182 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+PYTHON_COMPAT=( python2_7 )
+inherit versionator eutils toolchain-funcs python-single-r1 linux-info
+
+MY_PV="${PV/_/-}"
+MY_PV="${MY_PV/-pre/-git}"
+
+DESCRIPTION="Userland tools for Linux Performance Counters"
+HOMEPAGE="https://perf.wiki.kernel.org/"
+
+LINUX_V="${PV:0:1}.x"
+if [[ ${PV} == *_rc* ]] ; then
+ LINUX_VER=$(get_version_component_range 1-2).$(($(get_version_component_range 3)-1))
+ PATCH_VERSION=$(get_version_component_range 1-3)
+ LINUX_PATCH=patch-${PV//_/-}.xz
+ SRC_URI="mirror://kernel/linux/kernel/v${LINUX_V}/testing/${LINUX_PATCH}
+ mirror://kernel/linux/kernel/v${LINUX_V}/testing/v${PATCH_VERSION}/${LINUX_PATCH}"
+else
+ VER_COUNT=$(get_version_component_count)
+ if [[ ${VER_COUNT} -gt 2 ]] ; then
+ # stable-release series
+ LINUX_VER=$(get_version_component_range 1-2)
+ LINUX_PATCH=patch-${PV}.xz
+ SRC_URI="mirror://kernel/linux/kernel/v${LINUX_V}/${LINUX_PATCH}"
+ else
+ LINUX_VER=${PV}
+ SRC_URI=""
+ fi
+fi
+
+LINUX_SOURCES="linux-${LINUX_VER}.tar.xz"
+SRC_URI+=" mirror://kernel/linux/kernel/v${LINUX_V}/${LINUX_SOURCES}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ppc ~x86"
+IUSE="audit debug +demangle +doc gtk perl python slang unwind"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+RDEPEND="audit? ( sys-process/audit )
+ demangle? ( sys-devel/binutils )
+ gtk? ( x11-libs/gtk+:2 )
+ perl? ( dev-lang/perl )
+ python? ( ${PYTHON_DEPS} )
+ slang? ( dev-libs/newt )
+ unwind? ( sys-libs/libunwind )
+ dev-libs/elfutils"
+DEPEND="${RDEPEND}
+ ${LINUX_PATCH+dev-util/patchutils}
+ sys-devel/bison
+ sys-devel/flex
+ doc? (
+ app-text/asciidoc
+ app-text/sgml-common
+ app-text/xmlto
+ sys-process/time
+ )"
+
+S_K="${WORKDIR}/linux-${LINUX_VER}"
+S="${S_K}/tools/perf"
+
+CONFIG_CHECK="~PERF_EVENTS ~KALLSYMS"
+
+pkg_setup() {
+ linux-info_pkg_setup
+ use python && python-single-r1_pkg_setup
+}
+
+src_unpack() {
+ local paths=( tools/perf tools/scripts tools/include tools/lib include lib "arch/*/include" "arch/*/lib" )
+
+ # We expect the tar implementation to support the -j option (both
+ # GNU tar and libarchive's tar support that).
+ echo ">>> Unpacking ${LINUX_SOURCES} (${paths[*]}) to ${PWD}"
+ tar --wildcards -xpf "${DISTDIR}"/${LINUX_SOURCES} \
+ "${paths[@]/#/linux-${LINUX_VER}/}" || die
+
+ if [[ -n ${LINUX_PATCH} ]] ; then
+ eshopts_push -o noglob
+ ebegin "Filtering partial source patch"
+ filterdiff -p1 ${paths[@]/#/-i } -z "${DISTDIR}"/${LINUX_PATCH} > ${P}.patch || die
+ eend $? || die "filterdiff failed"
+ eshopts_pop
+ fi
+
+ local a
+ for a in ${A}; do
+ [[ ${a} == ${LINUX_SOURCES} ]] && continue
+ [[ ${a} == ${LINUX_PATCH} ]] && continue
+ unpack ${a}
+ done
+}
+
+src_prepare() {
+ if [[ -n ${LINUX_PATCH} ]] ; then
+ cd "${S_K}"
+ epatch "${WORKDIR}"/${P}.patch
+ fi
+
+ # Drop some upstream too-developer-oriented flags and fix the
+ # Makefile in general
+ sed -i \
+ -e 's:-Werror::' \
+ -e 's:-ggdb3::' \
+ -e 's:-fstack-protector-all::' \
+ -e 's:^LDFLAGS =:EXTLIBS +=:' \
+ -e '/\(PERL\|PYTHON\)_EMBED_LDOPTS/s:ALL_LDFLAGS +=:EXTLIBS +=:' \
+ -e '/-x c - /s:\$(ALL_LDFLAGS):\0 $(EXTLIBS):' \
+ -e '/^ALL_CFLAGS =/s:$: $(CFLAGS_OPTIMIZE):' \
+ -e '/^ALL_LDFLAGS =/s:$: $(LDFLAGS_OPTIMIZE):' \
+ -e 's:$(sysconfdir_SQ)/bash_completion.d:/usr/share/bash-completion:' \
+ "${S}"/Makefile || die
+ sed -i -e 's:-Werror::' "${S_K}"/tools/lib/api/Makefile || die
+ sed -i \
+ -e '/.FORCE-PERF-VERSION-FILE/s,.FORCE-PERF-VERSION-FILE,,g' \
+ "${S}"/Makefile \
+ "${S}"/Documentation/Makefile || die
+
+ # Avoid the call to make kernelversion
+ echo "#define PERF_VERSION \"${MY_PV}\"" > PERF-VERSION-FILE
+
+ # The code likes to compile local assembly files which lack ELF markings.
+ find -name '*.S' -exec sed -i '$a.section .note.GNU-stack,"",%progbits' {} +
+}
+
+puse() { usex $1 "" no; }
+perf_make() {
+ # The arch parsing is a bit funky. The perf tools package is integrated
+ # into the kernel, so it wants an ARCH that looks like the kernel arch,
+ # but it also wants to know about the split value -- i386/x86_64 vs just
+ # x86. We can get that by telling the func to use an older linux version.
+ # It's kind of a hack, but not that bad ...
+ local arch=$(KV=2.6.23 tc-arch-kernel)
+ emake V=1 \
+ CC="$(tc-getCC)" AR="$(tc-getAR)" \
+ prefix="/usr" bindir_relative="bin" \
+ CFLAGS_OPTIMIZE="${CFLAGS}" \
+ LDFLAGS_OPTIMIZE="${LDFLAGS}" \
+ ARCH="${arch}" \
+ NO_DEMANGLE=$(puse demangle) \
+ NO_GTK2=$(puse gtk) \
+ NO_LIBAUDIT=$(puse audit) \
+ NO_LIBPERL=$(puse perl) \
+ NO_LIBPYTHON=$(puse python) \
+ NO_LIBUNWIND=$(puse unwind) \
+ NO_NEWT=$(puse slang) \
+ WERROR=0 \
+ "$@"
+}
+
+src_compile() {
+ perf_make -f Makefile.perf
+ use doc && perf_make -C Documentation
+}
+
+src_test() {
+ :
+}
+
+src_install() {
+ perf_make -f Makefile.perf install DESTDIR="${D}"
+
+ dodoc CREDITS
+
+ dodoc *txt Documentation/*.txt
+ if use doc ; then
+ dohtml Documentation/*.html
+ doman Documentation/*.1
+ fi
+}
+
+pkg_postinst() {
+ if ! use doc ; then
+ elog "Without the doc USE flag you won't get any documentation nor man pages."
+ elog "And without man pages, you won't get any --help output for perf and its"
+ elog "sub-tools."
+ fi
+}
diff --git a/dev-util/perf/perf-4.1.5-r1.ebuild b/dev-util/perf/perf-4.1.5-r1.ebuild
new file mode 100644
index 000000000000..4fdec292a19d
--- /dev/null
+++ b/dev-util/perf/perf-4.1.5-r1.ebuild
@@ -0,0 +1,190 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+PYTHON_COMPAT=( python2_7 )
+inherit versionator eutils toolchain-funcs python-single-r1 linux-info
+
+MY_PV="${PV/_/-}"
+MY_PV="${MY_PV/-pre/-git}"
+
+DESCRIPTION="Userland tools for Linux Performance Counters"
+HOMEPAGE="https://perf.wiki.kernel.org/"
+
+LINUX_V="${PV:0:1}.x"
+if [[ ${PV} == *_rc* ]] ; then
+ LINUX_VER=$(get_version_component_range 1-2).$(($(get_version_component_range 3)-1))
+ PATCH_VERSION=$(get_version_component_range 1-3)
+ LINUX_PATCH=patch-${PV//_/-}.xz
+ SRC_URI="mirror://kernel/linux/kernel/v${LINUX_V}/testing/${LINUX_PATCH}
+ mirror://kernel/linux/kernel/v${LINUX_V}/testing/v${PATCH_VERSION}/${LINUX_PATCH}"
+else
+ VER_COUNT=$(get_version_component_count)
+ if [[ ${VER_COUNT} -gt 2 ]] ; then
+ # stable-release series
+ LINUX_VER=$(get_version_component_range 1-2)
+ LINUX_PATCH=patch-${PV}.xz
+ SRC_URI="mirror://kernel/linux/kernel/v${LINUX_V}/${LINUX_PATCH}"
+ else
+ LINUX_VER=${PV}
+ SRC_URI=""
+ fi
+fi
+
+LINUX_SOURCES="linux-${LINUX_VER}.tar.xz"
+SRC_URI+=" mirror://kernel/linux/kernel/v${LINUX_V}/${LINUX_SOURCES}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~ppc ~x86"
+IUSE="audit debug +demangle +doc gtk numa perl python slang unwind"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+RDEPEND="audit? ( sys-process/audit )
+ demangle? ( sys-devel/binutils:= )
+ gtk? ( x11-libs/gtk+:2 )
+ numa? ( sys-process/numactl )
+ perl? ( dev-lang/perl )
+ python? ( ${PYTHON_DEPS} )
+ slang? ( dev-libs/newt )
+ unwind? ( sys-libs/libunwind )
+ dev-libs/elfutils"
+DEPEND="${RDEPEND}
+ ${LINUX_PATCH+dev-util/patchutils}
+ sys-devel/bison
+ sys-devel/flex
+ doc? (
+ app-text/asciidoc
+ app-text/sgml-common
+ app-text/xmlto
+ sys-process/time
+ )"
+
+S_K="${WORKDIR}/linux-${LINUX_VER}"
+S="${S_K}/tools/perf"
+
+CONFIG_CHECK="~PERF_EVENTS ~KALLSYMS"
+
+pkg_setup() {
+ linux-info_pkg_setup
+ use python && python-single-r1_pkg_setup
+}
+
+src_unpack() {
+ local paths=(
+ tools/build tools/include tools/lib tools/perf tools/scripts
+ include lib "arch/*/include" "arch/*/lib"
+ )
+
+ # We expect the tar implementation to support the -j option (both
+ # GNU tar and libarchive's tar support that).
+ echo ">>> Unpacking ${LINUX_SOURCES} (${paths[*]}) to ${PWD}"
+ tar --wildcards -xpf "${DISTDIR}"/${LINUX_SOURCES} \
+ "${paths[@]/#/linux-${LINUX_VER}/}" || die
+
+ if [[ -n ${LINUX_PATCH} ]] ; then
+ eshopts_push -o noglob
+ ebegin "Filtering partial source patch"
+ filterdiff -p1 ${paths[@]/#/-i } -z "${DISTDIR}"/${LINUX_PATCH} \
+ > ${P}.patch || die
+ eend $? || die "filterdiff failed"
+ eshopts_pop
+ fi
+
+ local a
+ for a in ${A}; do
+ [[ ${a} == ${LINUX_SOURCES} ]] && continue
+ [[ ${a} == ${LINUX_PATCH} ]] && continue
+ unpack ${a}
+ done
+}
+
+src_prepare() {
+ if [[ -n ${LINUX_PATCH} ]] ; then
+ cd "${S_K}"
+ epatch "${WORKDIR}"/${P}.patch
+ fi
+
+ epatch "${FILESDIR}"/${P}-prefix.patch
+
+ # Drop some upstream too-developer-oriented flags and fix the
+ # Makefile in general
+ sed -i \
+ -e 's:-Werror::' \
+ -e 's:-ggdb3::' \
+ -e 's:-fstack-protector-all::' \
+ -e 's:^LDFLAGS =:EXTLIBS +=:' \
+ -e '/\(PERL\|PYTHON\)_EMBED_LDOPTS/s:ALL_LDFLAGS +=:EXTLIBS +=:' \
+ -e '/-x c - /s:\$(ALL_LDFLAGS):\0 $(EXTLIBS):' \
+ -e '/^ALL_CFLAGS =/s:$: $(CFLAGS_OPTIMIZE):' \
+ -e '/^ALL_LDFLAGS =/s:$: $(LDFLAGS_OPTIMIZE):' \
+ -e 's:$(sysconfdir_SQ)/bash_completion.d:/usr/share/bash-completion:' \
+ "${S}"/Makefile || die
+ sed -i -e 's:-Werror::' "${S_K}"/tools/lib/api/Makefile || die
+ sed -i \
+ -e '/.FORCE-PERF-VERSION-FILE/s,.FORCE-PERF-VERSION-FILE,,g' \
+ "${S}"/Makefile \
+ "${S}"/Documentation/Makefile || die
+
+ # Avoid the call to make kernelversion
+ echo "#define PERF_VERSION \"${MY_PV}\"" > PERF-VERSION-FILE
+
+ # The code likes to compile local assembly files which lack ELF markings.
+ find -name '*.S' -exec sed -i '$a.section .note.GNU-stack,"",%progbits' {} +
+}
+
+puse() { usex $1 "" no; }
+perf_make() {
+ # The arch parsing is a bit funky. The perf tools package is integrated
+ # into the kernel, so it wants an ARCH that looks like the kernel arch,
+ # but it also wants to know about the split value -- i386/x86_64 vs just
+ # x86. We can get that by telling the func to use an older linux version.
+ # It's kind of a hack, but not that bad ...
+ local arch=$(tc-arch-kernel)
+ emake V=1 \
+ CC="$(tc-getCC)" AR="$(tc-getAR)" \
+ prefix="/usr" bindir_relative="bin" \
+ CFLAGS_OPTIMIZE="${CFLAGS}" \
+ LDFLAGS_OPTIMIZE="${LDFLAGS}" \
+ ARCH="${arch}" \
+ NO_DEMANGLE=$(puse demangle) \
+ NO_GTK2=$(puse gtk) \
+ NO_LIBAUDIT=$(puse audit) \
+ NO_LIBPERL=$(puse perl) \
+ NO_LIBPYTHON=$(puse python) \
+ NO_LIBUNWIND=$(puse unwind) \
+ NO_NEWT=$(puse slang) \
+ NO_LIBNUMA=$(puse numa) \
+ WERROR=0 \
+ "$@"
+}
+
+src_compile() {
+ perf_make -f Makefile.perf
+ use doc && perf_make -C Documentation
+}
+
+src_test() {
+ :
+}
+
+src_install() {
+ perf_make -f Makefile.perf install DESTDIR="${D}"
+
+ dodoc CREDITS
+
+ dodoc *txt Documentation/*.txt
+ if use doc ; then
+ dohtml Documentation/*.html
+ doman Documentation/*.1
+ fi
+}
+
+pkg_postinst() {
+ if ! use doc ; then
+ elog "Without the doc USE flag you won't get any documentation nor man pages."
+ elog "And without man pages, you won't get any --help output for perf and its"
+ elog "sub-tools."
+ fi
+}
diff --git a/dev-util/perf/perf-4.4.4.ebuild b/dev-util/perf/perf-4.4.4.ebuild
new file mode 100644
index 000000000000..a1366ba16e6f
--- /dev/null
+++ b/dev-util/perf/perf-4.4.4.ebuild
@@ -0,0 +1,184 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+PYTHON_COMPAT=( python2_7 )
+inherit versionator eutils toolchain-funcs python-single-r1 linux-info
+
+MY_PV="${PV/_/-}"
+MY_PV="${MY_PV/-pre/-git}"
+
+DESCRIPTION="Userland tools for Linux Performance Counters"
+HOMEPAGE="https://perf.wiki.kernel.org/"
+
+LINUX_V="${PV:0:1}.x"
+if [[ ${PV} == *_rc* ]] ; then
+ LINUX_VER=$(get_version_component_range 1-2).$(($(get_version_component_range 3)-1))
+ PATCH_VERSION=$(get_version_component_range 1-3)
+ LINUX_PATCH=patch-${PV//_/-}.xz
+ SRC_URI="mirror://kernel/linux/kernel/v${LINUX_V}/testing/${LINUX_PATCH}
+ mirror://kernel/linux/kernel/v${LINUX_V}/testing/v${PATCH_VERSION}/${LINUX_PATCH}"
+else
+ VER_COUNT=$(get_version_component_count)
+ if [[ ${VER_COUNT} -gt 2 ]] ; then
+ # stable-release series
+ LINUX_VER=$(get_version_component_range 1-2)
+ LINUX_PATCH=patch-${PV}.xz
+ SRC_URI="mirror://kernel/linux/kernel/v${LINUX_V}/${LINUX_PATCH}"
+ else
+ LINUX_VER=${PV}
+ SRC_URI=""
+ fi
+fi
+
+LINUX_SOURCES="linux-${LINUX_VER}.tar.xz"
+SRC_URI+=" mirror://kernel/linux/kernel/v${LINUX_V}/${LINUX_SOURCES}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ppc ~x86"
+IUSE="audit debug +demangle +doc gtk numa perl python slang unwind"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+RDEPEND="audit? ( sys-process/audit )
+ demangle? ( sys-devel/binutils:= )
+ gtk? ( x11-libs/gtk+:2 )
+ numa? ( sys-process/numactl )
+ perl? ( dev-lang/perl )
+ python? ( ${PYTHON_DEPS} )
+ slang? ( dev-libs/newt )
+ unwind? ( sys-libs/libunwind )
+ dev-libs/elfutils"
+DEPEND="${RDEPEND}
+ >=sys-kernel/linux-headers-4.4
+ ${LINUX_PATCH+dev-util/patchutils}
+ sys-devel/bison
+ sys-devel/flex
+ doc? (
+ app-text/asciidoc
+ app-text/sgml-common
+ app-text/xmlto
+ sys-process/time
+ )"
+
+S_K="${WORKDIR}/linux-${LINUX_VER}"
+S="${S_K}/tools/perf"
+
+CONFIG_CHECK="~PERF_EVENTS ~KALLSYMS"
+
+pkg_setup() {
+ linux-info_pkg_setup
+ use python && python-single-r1_pkg_setup
+}
+
+src_unpack() {
+ local paths=(
+ tools/arch tools/build tools/include tools/lib tools/perf tools/scripts
+ include lib "arch/*/lib"
+ )
+
+ # We expect the tar implementation to support the -j option (both
+ # GNU tar and libarchive's tar support that).
+ echo ">>> Unpacking ${LINUX_SOURCES} (${paths[*]}) to ${PWD}"
+ tar --wildcards -xpf "${DISTDIR}"/${LINUX_SOURCES} \
+ "${paths[@]/#/linux-${LINUX_VER}/}" || die
+
+ if [[ -n ${LINUX_PATCH} ]] ; then
+ eshopts_push -o noglob
+ ebegin "Filtering partial source patch"
+ filterdiff -p1 ${paths[@]/#/-i } -z "${DISTDIR}"/${LINUX_PATCH} \
+ > ${P}.patch || die
+ eend $? || die "filterdiff failed"
+ eshopts_pop
+ fi
+
+ local a
+ for a in ${A}; do
+ [[ ${a} == ${LINUX_SOURCES} ]] && continue
+ [[ ${a} == ${LINUX_PATCH} ]] && continue
+ unpack ${a}
+ done
+}
+
+src_prepare() {
+ if [[ -n ${LINUX_PATCH} ]] ; then
+ cd "${S_K}"
+ epatch "${WORKDIR}"/${P}.patch
+ fi
+
+ # Drop some upstream too-developer-oriented flags and fix the
+ # Makefile in general
+ sed -i \
+ -e 's:-Werror::' \
+ -e 's:-ggdb3::' \
+ -e 's:-fstack-protector-all::' \
+ -e 's:^LDFLAGS =:EXTLIBS +=:' \
+ -e '/\(PERL\|PYTHON\)_EMBED_LDOPTS/s:ALL_LDFLAGS +=:EXTLIBS +=:' \
+ -e '/-x c - /s:\$(ALL_LDFLAGS):\0 $(EXTLIBS):' \
+ "${S}"/config/Makefile || die
+ sed -i \
+ -e 's:$(sysconfdir_SQ)/bash_completion.d:/usr/share/bash-completion:' \
+ "${S}"/Makefile.perf || die
+ sed -i -e 's:-Werror::' "${S_K}"/tools/lib/api/Makefile || die
+
+ # Avoid the call to make kernelversion
+ echo "#define PERF_VERSION \"${MY_PV}\"" > PERF-VERSION-FILE
+
+ # The code likes to compile local assembly files which lack ELF markings.
+ find -name '*.S' -exec sed -i '$a.section .note.GNU-stack,"",%progbits' {} +
+}
+
+puse() { usex $1 "" no; }
+perf_make() {
+ # The arch parsing is a bit funky. The perf tools package is integrated
+ # into the kernel, so it wants an ARCH that looks like the kernel arch,
+ # but it also wants to know about the split value -- i386/x86_64 vs just
+ # x86. We can get that by telling the func to use an older linux version.
+ # It's kind of a hack, but not that bad ...
+ local arch=$(tc-arch-kernel)
+ emake V=1 \
+ CC="$(tc-getCC)" AR="$(tc-getAR)" LD="$(tc-getLD)" \
+ prefix="/usr" bindir_relative="bin" \
+ EXTRA_CFLAGS="${CFLAGS}" \
+ ARCH="${arch}" \
+ NO_DEMANGLE=$(puse demangle) \
+ NO_GTK2=$(puse gtk) \
+ NO_LIBAUDIT=$(puse audit) \
+ NO_LIBPERL=$(puse perl) \
+ NO_LIBPYTHON=$(puse python) \
+ NO_LIBUNWIND=$(puse unwind) \
+ NO_NEWT=$(puse slang) \
+ NO_LIBNUMA=$(puse numa) \
+ WERROR=0 \
+ "$@"
+}
+
+src_compile() {
+ perf_make -f Makefile.perf
+ use doc && perf_make -C Documentation
+}
+
+src_test() {
+ :
+}
+
+src_install() {
+ perf_make -f Makefile.perf install DESTDIR="${D}"
+
+ dodoc CREDITS
+
+ dodoc *txt Documentation/*.txt
+ if use doc ; then
+ dohtml Documentation/*.html
+ doman Documentation/*.1
+ fi
+}
+
+pkg_postinst() {
+ if ! use doc ; then
+ elog "Without the doc USE flag you won't get any documentation nor man pages."
+ elog "And without man pages, you won't get any --help output for perf and its"
+ elog "sub-tools."
+ fi
+}
diff --git a/dev-util/perf/perf-4.9.13.ebuild b/dev-util/perf/perf-4.9.13.ebuild
new file mode 100644
index 000000000000..99c34d5b4c5b
--- /dev/null
+++ b/dev-util/perf/perf-4.9.13.ebuild
@@ -0,0 +1,176 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+PYTHON_COMPAT=( python2_7 )
+inherit bash-completion-r1 versionator eutils toolchain-funcs python-single-r1 linux-info
+
+MY_PV="${PV/_/-}"
+MY_PV="${MY_PV/-pre/-git}"
+
+DESCRIPTION="Userland tools for Linux Performance Counters"
+HOMEPAGE="https://perf.wiki.kernel.org/"
+
+LINUX_V="${PV:0:1}.x"
+if [[ ${PV} == *_rc* ]] ; then
+ LINUX_VER=$(get_version_component_range 1-2).$(($(get_version_component_range 3)-1))
+ PATCH_VERSION=$(get_version_component_range 1-3)
+ LINUX_PATCH=patch-${PV//_/-}.xz
+ SRC_URI="mirror://kernel/linux/kernel/v${LINUX_V}/testing/${LINUX_PATCH}
+ mirror://kernel/linux/kernel/v${LINUX_V}/testing/v${PATCH_VERSION}/${LINUX_PATCH}"
+else
+ VER_COUNT=$(get_version_component_count)
+ if [[ ${VER_COUNT} -gt 2 ]] ; then
+ # stable-release series
+ LINUX_VER=$(get_version_component_range 1-2)
+ LINUX_PATCH=patch-${PV}.xz
+ SRC_URI="mirror://kernel/linux/kernel/v${LINUX_V}/${LINUX_PATCH}"
+ else
+ LINUX_VER=${PV}
+ SRC_URI=""
+ fi
+fi
+
+LINUX_SOURCES="linux-${LINUX_VER}.tar.xz"
+SRC_URI+=" mirror://kernel/linux/kernel/v${LINUX_V}/${LINUX_SOURCES}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ppc ~x86 ~amd64-linux ~x86-linux"
+IUSE="audit debug +demangle +doc gtk numa perl python slang unwind"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+RDEPEND="audit? ( sys-process/audit )
+ demangle? ( sys-libs/binutils-libs:= )
+ gtk? ( x11-libs/gtk+:2 )
+ numa? ( sys-process/numactl )
+ perl? ( dev-lang/perl )
+ python? ( ${PYTHON_DEPS} )
+ slang? ( dev-libs/newt )
+ unwind? ( sys-libs/libunwind )
+ dev-libs/elfutils"
+DEPEND="${RDEPEND}
+ >=sys-kernel/linux-headers-4.9
+ ${LINUX_PATCH+dev-util/patchutils}
+ sys-devel/bison
+ sys-devel/flex
+ doc? (
+ app-text/asciidoc
+ app-text/sgml-common
+ app-text/xmlto
+ sys-process/time
+ )"
+
+S_K="${WORKDIR}/linux-${LINUX_VER}"
+S="${S_K}/tools/perf"
+
+CONFIG_CHECK="~PERF_EVENTS ~KALLSYMS"
+
+pkg_setup() {
+ linux-info_pkg_setup
+ use python && python-single-r1_pkg_setup
+}
+
+src_unpack() {
+ local paths=(
+ tools/arch tools/build tools/include tools/lib tools/perf tools/scripts
+ include lib "arch/*/lib"
+ )
+
+ # We expect the tar implementation to support the -j option (both
+ # GNU tar and libarchive's tar support that).
+ echo ">>> Unpacking ${LINUX_SOURCES} (${paths[*]}) to ${PWD}"
+ tar --wildcards -xpf "${DISTDIR}"/${LINUX_SOURCES} \
+ "${paths[@]/#/linux-${LINUX_VER}/}" || die
+
+ if [[ -n ${LINUX_PATCH} ]] ; then
+ eshopts_push -o noglob
+ ebegin "Filtering partial source patch"
+ filterdiff -p1 ${paths[@]/#/-i } -z "${DISTDIR}"/${LINUX_PATCH} \
+ > ${P}.patch || die
+ eend $? || die "filterdiff failed"
+ eshopts_pop
+ fi
+
+ local a
+ for a in ${A}; do
+ [[ ${a} == ${LINUX_SOURCES} ]] && continue
+ [[ ${a} == ${LINUX_PATCH} ]] && continue
+ unpack ${a}
+ done
+}
+
+src_prepare() {
+ if [[ -n ${LINUX_PATCH} ]] ; then
+ cd "${S_K}"
+ epatch "${WORKDIR}"/${P}.patch
+ fi
+
+ # Drop some upstream too-developer-oriented flags and fix the
+ # Makefile in general
+ sed -i \
+ -e "s:\$(sysconfdir_SQ)/bash_completion.d:$(get_bashcompdir):" \
+ "${S}"/Makefile.perf || die
+ sed -i -e 's:-Werror::' "${S_K}"/tools/lib/api/Makefile || die
+
+ # Avoid the call to make kernelversion
+ echo "#define PERF_VERSION \"${MY_PV}\"" > PERF-VERSION-FILE
+
+ # The code likes to compile local assembly files which lack ELF markings.
+ find -name '*.S' -exec sed -i '$a.section .note.GNU-stack,"",%progbits' {} +
+}
+
+puse() { usex $1 "" no; }
+perf_make() {
+ # The arch parsing is a bit funky. The perf tools package is integrated
+ # into the kernel, so it wants an ARCH that looks like the kernel arch,
+ # but it also wants to know about the split value -- i386/x86_64 vs just
+ # x86. We can get that by telling the func to use an older linux version.
+ # It's kind of a hack, but not that bad ...
+ local arch=$(tc-arch-kernel)
+ emake V=1 \
+ CC="$(tc-getCC)" AR="$(tc-getAR)" LD="$(tc-getLD)" \
+ prefix="${EPREFIX}/usr" bindir_relative="bin" \
+ EXTRA_CFLAGS="${CFLAGS}" \
+ ARCH="${arch}" \
+ NO_DEMANGLE=$(puse demangle) \
+ NO_GTK2=$(puse gtk) \
+ NO_LIBAUDIT=$(puse audit) \
+ NO_LIBPERL=$(puse perl) \
+ NO_LIBPYTHON=$(puse python) \
+ NO_LIBUNWIND=$(puse unwind) \
+ NO_NEWT=$(puse slang) \
+ NO_LIBNUMA=$(puse numa) \
+ WERROR=0 \
+ "$@"
+}
+
+src_compile() {
+ perf_make -f Makefile.perf
+ use doc && perf_make -C Documentation
+}
+
+src_test() {
+ :
+}
+
+src_install() {
+ perf_make -f Makefile.perf install DESTDIR="${D}"
+
+ dodoc CREDITS
+
+ dodoc *txt Documentation/*.txt
+ if use doc ; then
+ dohtml Documentation/*.html
+ doman Documentation/*.1
+ fi
+}
+
+pkg_postinst() {
+ if ! use doc ; then
+ elog "Without the doc USE flag you won't get any documentation nor man pages."
+ elog "And without man pages, you won't get any --help output for perf and its"
+ elog "sub-tools."
+ fi
+}
diff --git a/dev-util/pkgcheck/Manifest b/dev-util/pkgcheck/Manifest
new file mode 100644
index 000000000000..f27b2171dc4e
--- /dev/null
+++ b/dev-util/pkgcheck/Manifest
@@ -0,0 +1,8 @@
+DIST pkgcheck-0.5.3.tar.gz 80896 SHA256 f062626d33346c321b11cd9e7041a22fa9fc00dd5daeca00e588467aa21936e1 SHA512 39804112b70bb90b655754b78d87a23906b749622083534dda1cb7b7e381c61f95c41c02fbfc6f8dea075bd3665cfda93f565c5d896779d5746ac71b74878df9 WHIRLPOOL 425da2fececa661584dbf5a3c602b855130eea7db97ceaee4c124059ba04944eb8d13d5899951e31127203697c3849e1bb00b5ad6e50210da7e48a22ff5ae244
+DIST pkgcheck-0.5.4.tar.gz 95354 SHA256 43e15ecb2cf384d39a587ad31b7ad3ee5915c517a1e39a4cb6bc6eb132e69bab SHA512 3c196ce170bb01f0a9f15caa8557e30cad8e088ab9bc733ac754e9c5f6d9078a70a4d14649ee5342848cc170f3c34d7575b35872c5d1a5693fb7aad207727b1b WHIRLPOOL 116b2de4d7e6569f61aa5c36a64e898cc11c2921c01572780d67bcec3db497adcfceaf54911011233160679841ac63de48741128cfbe565a08a95dd6ca0dc0d2
+EBUILD pkgcheck-0.5.3.ebuild 1208 SHA256 3892da78c9108a1f9f5b24a249735c45a7d7d84f275a9524dce89ca466dd7f25 SHA512 5f88cbd4c3162a3e6cb02e8710464c10384268564428b4dc713f9b9d122909e8cce9ed086648c5238a1b1c6092d78abbf248e72b764818b1bea687f3886706d5 WHIRLPOOL e6d39b526018af0bba732acc818eec1426e4da7c74713cae7cad8655699efb3628772b109068c8ed6909bb9184e38081fa7d703922d3f67c96f56731ed122d15
+EBUILD pkgcheck-0.5.4.ebuild 1336 SHA256 fa0efe44b02dd0388d54992490df5ff7b7a4a9a7c6bfec8e0e05e0b5a89b2b48 SHA512 44b8e3877881af9a34685de4ee1f40e56bb2802581260cc56e3c5add635ee20db2e0b9efca4e6c4f112c78ab20082c03dbfadde80f5d2fb023c230d9f96d9188 WHIRLPOOL db2c566cb7320df784309ba351eae0fdc16b3d763a48a323b7689f7e76f8b118fde58282ff8ad30ca74f8a96f00aa949ceacd2a4e2818d2cfd488b29a10aaf83
+EBUILD pkgcheck-9999.ebuild 1336 SHA256 fa0efe44b02dd0388d54992490df5ff7b7a4a9a7c6bfec8e0e05e0b5a89b2b48 SHA512 44b8e3877881af9a34685de4ee1f40e56bb2802581260cc56e3c5add635ee20db2e0b9efca4e6c4f112c78ab20082c03dbfadde80f5d2fb023c230d9f96d9188 WHIRLPOOL db2c566cb7320df784309ba351eae0fdc16b3d763a48a323b7689f7e76f8b118fde58282ff8ad30ca74f8a96f00aa949ceacd2a4e2818d2cfd488b29a10aaf83
+MISC ChangeLog 3635 SHA256 d2085ad10ce67ec86ae9b0560cfbb3acd72421c544533734a3bec8ebeb865a4d SHA512 738aa1decee1c0c060874c79e54254ffe435ab0c7ef3669bd74e1ce9d2b3b50b130f896c8ec01aeb8a46108a43383c74ec399ae55a9eafc3a99d05e4308c216c WHIRLPOOL 14f89b872370dfa76f4a76eb1ce11d70d17db3b9339f179e0155851cb9d2f06ca38edb53a41a04e1db28cefc449731ef84eeaa202aad8cee702f0b81ddac8bbe
+MISC ChangeLog-2015 981 SHA256 9482db37abb6f582dc69b8725f0134819bf835a251e949528fce004abc1450ba SHA512 f62660624b369f8c7575886358d1ed4090bf11316c8a43f0be1a200342043c1cd0200d4871fe99e5d2041480c315d65f7b55cf38b0ab1c057b2c57c3dcd78043 WHIRLPOOL 03cb6b324753ac13428c14782ca6f34a0b28d4dfba491dfaa68633941346eacb1700e6013c317ab1248d0fa11f41b3752b120c58d29ce6574b49f4365325f92e
+MISC metadata.xml 337 SHA256 bf76dfae8e4bbe05e901be79062e737021c2df2c8b972170cf2df4b4a946314d SHA512 e2f31f9cc7fe4296758b15b222f7f14ff04a78d28850bc48f67af0fba4a561f6da63191ebaba73fc6623d12296ad6137ec84b74a5eb9b6b76c929d7029468a71 WHIRLPOOL 79831a60afc2f2e40b600cf77b062f75ee29101b025892ad886f8e45ba433c103c53a32335956e9a12395da6d3a6a97981e201107e321d7393cf80f9d7314f59
diff --git a/dev-util/pkgcheck/metadata.xml b/dev-util/pkgcheck/metadata.xml
new file mode 100644
index 000000000000..a43b6993fd17
--- /dev/null
+++ b/dev-util/pkgcheck/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>radhermit@gentoo.org</email>
+ <name>Tim Harder</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">pkgcore/pkgcheck</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/pkgcheck/pkgcheck-0.5.3.ebuild b/dev-util/pkgcheck/pkgcheck-0.5.3.ebuild
new file mode 100644
index 000000000000..7f6377c90e14
--- /dev/null
+++ b/dev-util/pkgcheck/pkgcheck-0.5.3.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python{2_7,3_4,3_5} )
+DISTUTILS_IN_SOURCE_BUILD=1
+inherit distutils-r1
+
+if [[ ${PV} == *9999 ]] ; then
+ EGIT_REPO_URI="https://github.com/pkgcore/pkgcheck.git"
+ inherit git-r3
+else
+ KEYWORDS="~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+ SRC_URI="https://github.com/pkgcore/${PN}/releases/download/v${PV}/${P}.tar.gz"
+fi
+
+DESCRIPTION="pkgcore-based QA utility"
+HOMEPAGE="https://github.com/pkgcore/pkgcheck"
+
+LICENSE="|| ( BSD GPL-2 )"
+SLOT="0"
+
+RDEPEND="
+ >=sys-apps/pkgcore-0.9.3[${PYTHON_USEDEP}]
+ >=dev-python/snakeoil-0.7.0[${PYTHON_USEDEP}]
+ dev-python/lxml[${PYTHON_USEDEP}]
+"
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]"
+[[ ${PV} == *9999 ]] && DEPEND+=" dev-python/sphinx[${PYTHON_USEDEP}]"
+
+pkg_setup() {
+ # disable snakeoil 2to3 caching...
+ unset PY2TO3_CACHEDIR
+}
+
+python_compile_all() {
+ esetup.py build_man
+}
+
+python_test() {
+ esetup.py test
+}
+
+python_install_all() {
+ local DOCS=( AUTHORS NEWS.rst )
+ distutils-r1_python_install install_man
+ distutils-r1_python_install_all
+}
+
+pkg_postinst() {
+ python_foreach_impl pplugincache pkgcheck.plugins
+}
diff --git a/dev-util/pkgcheck/pkgcheck-0.5.4.ebuild b/dev-util/pkgcheck/pkgcheck-0.5.4.ebuild
new file mode 100644
index 000000000000..6a4fce0ea524
--- /dev/null
+++ b/dev-util/pkgcheck/pkgcheck-0.5.4.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+DISTUTILS_IN_SOURCE_BUILD=1
+inherit distutils-r1
+
+if [[ ${PV} == *9999 ]] ; then
+ EGIT_REPO_URI="https://github.com/pkgcore/pkgcheck.git"
+ inherit git-r3
+else
+ KEYWORDS="~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+fi
+
+DESCRIPTION="pkgcore-based QA utility"
+HOMEPAGE="https://github.com/pkgcore/pkgcheck"
+
+LICENSE="|| ( BSD GPL-2 )"
+SLOT="0"
+
+if [[ ${PV} == *9999 ]]; then
+ RDEPEND="
+ =dev-python/snakeoil-9999[${PYTHON_USEDEP}]
+ =sys-apps/pkgcore-9999[${PYTHON_USEDEP}]"
+else
+ RDEPEND="
+ >=dev-python/snakeoil-0.7.2[${PYTHON_USEDEP}]
+ >=sys-apps/pkgcore-0.9.5[${PYTHON_USEDEP}]"
+fi
+RDEPEND+=" dev-python/lxml[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]"
+[[ ${PV} == *9999 ]] && DEPEND+=" dev-python/sphinx[${PYTHON_USEDEP}]"
+
+pkg_setup() {
+ # disable snakeoil 2to3 caching...
+ unset PY2TO3_CACHEDIR
+}
+
+python_compile_all() {
+ esetup.py build_man
+}
+
+python_test() {
+ esetup.py test
+}
+
+python_install_all() {
+ local DOCS=( AUTHORS NEWS.rst )
+ distutils-r1_python_install install_man
+ distutils-r1_python_install_all
+}
+
+pkg_postinst() {
+ python_foreach_impl pplugincache pkgcheck.plugins
+}
diff --git a/dev-util/pkgcheck/pkgcheck-9999.ebuild b/dev-util/pkgcheck/pkgcheck-9999.ebuild
new file mode 100644
index 000000000000..6a4fce0ea524
--- /dev/null
+++ b/dev-util/pkgcheck/pkgcheck-9999.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+DISTUTILS_IN_SOURCE_BUILD=1
+inherit distutils-r1
+
+if [[ ${PV} == *9999 ]] ; then
+ EGIT_REPO_URI="https://github.com/pkgcore/pkgcheck.git"
+ inherit git-r3
+else
+ KEYWORDS="~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+fi
+
+DESCRIPTION="pkgcore-based QA utility"
+HOMEPAGE="https://github.com/pkgcore/pkgcheck"
+
+LICENSE="|| ( BSD GPL-2 )"
+SLOT="0"
+
+if [[ ${PV} == *9999 ]]; then
+ RDEPEND="
+ =dev-python/snakeoil-9999[${PYTHON_USEDEP}]
+ =sys-apps/pkgcore-9999[${PYTHON_USEDEP}]"
+else
+ RDEPEND="
+ >=dev-python/snakeoil-0.7.2[${PYTHON_USEDEP}]
+ >=sys-apps/pkgcore-0.9.5[${PYTHON_USEDEP}]"
+fi
+RDEPEND+=" dev-python/lxml[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]"
+[[ ${PV} == *9999 ]] && DEPEND+=" dev-python/sphinx[${PYTHON_USEDEP}]"
+
+pkg_setup() {
+ # disable snakeoil 2to3 caching...
+ unset PY2TO3_CACHEDIR
+}
+
+python_compile_all() {
+ esetup.py build_man
+}
+
+python_test() {
+ esetup.py test
+}
+
+python_install_all() {
+ local DOCS=( AUTHORS NEWS.rst )
+ distutils-r1_python_install install_man
+ distutils-r1_python_install_all
+}
+
+pkg_postinst() {
+ python_foreach_impl pplugincache pkgcheck.plugins
+}
diff --git a/dev-util/pkgconf/Manifest b/dev-util/pkgconf/Manifest
new file mode 100644
index 000000000000..ab4b88016fd2
--- /dev/null
+++ b/dev-util/pkgconf/Manifest
@@ -0,0 +1,20 @@
+DIST pkgconf-0.9.11.tar.bz2 86489 SHA256 3bdae1b2672133943dc0dda694ed57074f8b03c3fea10efb215d76d3cabe2c3b SHA512 21313ef29afcaa7c49a8cb512ecd3a821693945c22fb1a670ada74f41bca320e1b9ffb64e79adc2c33cb86822b74ddc850fadb16ddcde7eb805b81a50096992f WHIRLPOOL 7442a456af7e959c86f318ee74ec89883cc4e2ad16c9708f98d8ab30cdcf71ea7ef13f7e0f9bf945717b1dea8a317ffc5322878f88a5084c2dcbdc2aeafaf4d2
+DIST pkgconf-0.9.12.tar.bz2 87109 SHA256 7ec8b516e655e247f4ba976837cee808134785819ab8f538f652fe919cc6c09f SHA512 efe13db7a46992eb44ead493fc12b3fc6a5567e0206f701b6c48d9b5eb0bc90fcc9ae7a7e08ae641bb10df869287e5b68291701d4013d6cf27bd2b1518c29192 WHIRLPOOL 9fa7336e111f29648f5c37310bdeb2266bead1b86ff18183cfb57c06054916d235da20a5723bd364497d20a1f4db399eaf77f38c0bfc1519f2b7b825ab4666d0
+DIST pkgconf-1.0.1.tar.gz 362653 SHA256 45ce2f6ab032451345185b800badd77c054040879bd2e56225dafc7fbe583cf1 SHA512 b379ed366327eb4de3a7ed732be58a3757fdcd231637f0fbc2f9b762fda08173244d05fd853d683cfa6bdad90f1d8ee663b3eae9aee024456ef46e8a021e7122 WHIRLPOOL ba9a26874d14b6dfd62858da1b50397bc0aa9637bfe0824d4911f4df1e430e60a9f589242f8dc60a792b16f5201f9e0944d637e0d3a4749a211b976459152d69
+DIST pkgconf-1.0.2.tar.xz 247972 SHA256 a7c67f8603c0d0400be17b2efac0fdc9ff46625f7e50aefe4ad31eff248115dd SHA512 679c9033489076ba5691c3a830b8e300c6cb2dc9e7eeffa1a478c681c7f1cc49896b0b5d0d069b14804a5c9bc31115ba672b1f724cd6282ce26d54945a5a8a42 WHIRLPOOL e7bcb19eba08ff271a470a1c8bba13810951c20e79b7dea5352ea20b8b519d4462892c623e8383b540f5af3b6daf302386b8b1831bfed3d7d143f33cb9e0830a
+DIST pkgconf-1.1.0.tar.xz 264428 SHA256 5f1ef65d73a880fa5e7012102a17f7b32010e5e46139aed85851a541ba828a63 SHA512 2d54b14b9fb830a3d30e8812f6079a95cf1e1e77fd42d1eac7a6041347094ff88b79146be93c56625c44e2dcf38af725cbbdfdda09b457b921a9a17b97a23d15 WHIRLPOOL deffe0277f48f39b3824a25f255da6cdf51bdcf973d9b19f8eb166ba388c6440451d07bf37862f044a4e8be572d4ea5406ff243759fa5f22c0e6ecce8064ba31
+DIST pkgconf-1.2.2.tar.xz 267268 SHA256 b445d16df8b6e88489039eb2d7d91d5668025cb058a1852f3e0fdee19c8cb104 SHA512 0d9f74a69bd36f55b1485341127bff08487d5216ae495cea0474e6d23bb323d5c8c7d36b25c2e58282b1bcb0d74da6bb93ee0757e98405aba42b13f2e76eeac2 WHIRLPOOL ef2fe3045b058d627a920e3f2648bbfe2de763bb3f52f61b835684b533cbd768fd0ef892d7c99b89ac73b42d02ba4409d098b285d2943cad6017617112087257
+DIST pkgconf-1.3.5.tar.xz 271216 SHA256 886c397b22907209a7483229a8bf473afe151de50527c4b4d04b94fdba0f0c8e SHA512 a937607a5a868f136b1f8018f152512a3c6997e1e73baf7bd9af54c3e5542ecdac2f24df0078df2e0c8544060ba26a25ade88b7949c97ca4fe783d656a1804de WHIRLPOOL 9287c800063cac6ff8124a131e9f99c89112f56f9e14f72f525d97f3041a7444b4b71a64779925f5352a80f7205ae66e30e30ce98a5926dcd9c6ce1c1bb9519f
+DIST pkgconf-1.3.7.tar.xz 271840 SHA256 1be7e40900c7467893c65f810211b1e68da3f8d5e70fddb883fc24839cad0339 SHA512 6c06afc4fe64c94a833db98d4dc7881192d38cc28eb1fb86345f4ce065489930ac953aa9f6b2df172127244cb1cbab1c85a042aa0f6be4fa18bf9dcd83173960 WHIRLPOOL eaf41a5ff5c7521ae365197a89745d74dca39a4e91e27631fa54d5b641e941943dd8edc4e1d258db4fd0aa562e9db1253782ad423a2e7edbb5e09394c1abc108
+EBUILD pkgconf-0.9.11.ebuild 1331 SHA256 d791f2a8193fed44757d04f5c518ab1ef52ab443a44b8a918a1ef7824991a146 SHA512 34bf15ccf2c00aa9cb305e0219ec2931f7a9828d1446c9f05d84cd598456a4de50d0bbe29cef41d83b85c9727d1c141774dc86acc3be680f120532530d1472e2 WHIRLPOOL 1d2105f014554517c90753223b264b6d547dbb8bebae91a440a31eaca0839adbac9fc2342fe509a33a24ad41a2509ea64cd9fafcdc95fb8086ddff5211ee54dc
+EBUILD pkgconf-0.9.12.ebuild 1331 SHA256 d791f2a8193fed44757d04f5c518ab1ef52ab443a44b8a918a1ef7824991a146 SHA512 34bf15ccf2c00aa9cb305e0219ec2931f7a9828d1446c9f05d84cd598456a4de50d0bbe29cef41d83b85c9727d1c141774dc86acc3be680f120532530d1472e2 WHIRLPOOL 1d2105f014554517c90753223b264b6d547dbb8bebae91a440a31eaca0839adbac9fc2342fe509a33a24ad41a2509ea64cd9fafcdc95fb8086ddff5211ee54dc
+EBUILD pkgconf-1.0.1.ebuild 1299 SHA256 92836164edc3e323ef011eaa25d964a62e121e3011856873135b06a57afb897b SHA512 460e27e8c24d84ea573d14489922417e1b8959b0ef612648b5ab37259efb57e86ec723bb9e02df14dcf1e623295f0750bd644eb74979c627e9aeb155de48d243 WHIRLPOOL 4feb477f02b52ec5d71c8d117c0355c8549cf0fb3100bbc604cfc8de7af3c108597596f552d10669d92c62824694fadc3a9529aadc1dbef0b1575a6d823f04b2
+EBUILD pkgconf-1.0.2.ebuild 1286 SHA256 d7507610aa827bf4fab4414ad5aecd1d3257746cd32cd414a278ab494598ce4e SHA512 05d078a1a04949adb75a05c675fb6c51f0dde569a49019d2572c375e2ed2d7453937ffee2bb342053ab5ce25e85daf6f0afdd316b24645d392d9a534532b6716 WHIRLPOOL 4e3c37806d3c4c763ec1b5ead206bac453aa9c85cccded3b0bf047cfbccac53c8706429865506dca392e9f3ccc1a3dc7a27aef18ee7f569a87eddd10aa3f0d5d
+EBUILD pkgconf-1.1.0.ebuild 1295 SHA256 e8af1b74a21421c2efc27a53634862b44e32277219e66b4f62172a0a639d1e7b SHA512 d41d54e6334840e3c9ecafbabb70832b0be6c1f03dd27a41c6de949e59c1c1a071504bb55258c257efa7e4026b8e0f08d9f2777bc226af86416733d0991cd173 WHIRLPOOL f0b8617f5fefc39b7c0f660b3e8217a9d59f534a2f538d764a0644c73be90ceecfcf28552e8cab6c79588a41cfd8c99c28a42ae09659cef74d2ffcf11ba9f9ed
+EBUILD pkgconf-1.2.2.ebuild 1295 SHA256 e8af1b74a21421c2efc27a53634862b44e32277219e66b4f62172a0a639d1e7b SHA512 d41d54e6334840e3c9ecafbabb70832b0be6c1f03dd27a41c6de949e59c1c1a071504bb55258c257efa7e4026b8e0f08d9f2777bc226af86416733d0991cd173 WHIRLPOOL f0b8617f5fefc39b7c0f660b3e8217a9d59f534a2f538d764a0644c73be90ceecfcf28552e8cab6c79588a41cfd8c99c28a42ae09659cef74d2ffcf11ba9f9ed
+EBUILD pkgconf-1.3.5.ebuild 1272 SHA256 80733afd086cf2bcad49b21d7701491c02be6852125d7c5ff9b8567a473841b6 SHA512 77bc9917d6729cd9743885d4a1ce852e1cc96b4e340550530cf4fd0f41948706767b7ae966ad4acecddeef2379a46088c8118db91dc8defcbae05020619de90e WHIRLPOOL 3fa279d7fbe73feed6560a5fc4bde93b4e9aea661d721494726f8a106b418a73f2a8ef86d33abd0e379075f30989dae28aaa646533b38d55b238aea8d184fde1
+EBUILD pkgconf-1.3.7.ebuild 1284 SHA256 e18012877ba23a5f77797e16cdbaf7df2d2753d8fed553d95ed746ad0a1472e8 SHA512 513380b84195051b3ec144768170cc8fae329c7f585d136e9d89e9893597cb12c1f8a27fac4c6fd55ca0a5b96269e4f1d7f68b215b8d992da93f249f9dbe9d3e WHIRLPOOL 4a14fc65039dc5fd5da03e058536291e7626bae4236c8fd10721c8d604ef7bc50429a885bbeff7670bbded5861ef12c8a69e246510afa825dd8461b2a08aedac
+EBUILD pkgconf-9999.ebuild 1272 SHA256 80733afd086cf2bcad49b21d7701491c02be6852125d7c5ff9b8567a473841b6 SHA512 77bc9917d6729cd9743885d4a1ce852e1cc96b4e340550530cf4fd0f41948706767b7ae966ad4acecddeef2379a46088c8118db91dc8defcbae05020619de90e WHIRLPOOL 3fa279d7fbe73feed6560a5fc4bde93b4e9aea661d721494726f8a106b418a73f2a8ef86d33abd0e379075f30989dae28aaa646533b38d55b238aea8d184fde1
+MISC ChangeLog 7530 SHA256 2cb6920981942e5a75642525b6e4454c014d0d0d05c479fdf407b064dd6f89a7 SHA512 c6ccd4e6f8d231a5803375911567b69126d40dd1328b93cd0f1b39f8d3258c66aeb37a27ff86fad910589b2900bfe0bca6799d0fb3451168e11adf3caa6abfd7 WHIRLPOOL 5cab7b57c38537cd92fff5163bec3a5970d3b2cf19306a6f3ca547dda6e22a11fb86463dca0f77bf7d13e5d425fb4b32441ef9d496308135cc9a80b6b59db999
+MISC ChangeLog-2015 11246 SHA256 f1671c26b687b39a50c7f1ba82101c29be5ec42d74976218bb84aed74243d3d0 SHA512 6ae9486e7429401f19d21c12056929374a49840e305114394fecfdd55e49ad8ed3f4ede7dea5b5da67438c77a8c031b539b356a9b950b4182b2149f9d233a048 WHIRLPOOL b9547d35ac17482faa1fd283fe45e1a2ee805506fd89a03f99735b0a627b1ba2083116c70d460708fbf3313039c562a5f5d6ee669d4cfd6a218a1a897869072a
+MISC metadata.xml 556 SHA256 434646bb8f2543ef1a741b7770dc89875cb7bb9da0ed4cd09836dbb8f264b899 SHA512 dd0241269c2d3533b9643cea1c7a17f3abce89c5db819e5fa2428d620c6d652474b0547000574ac77ab76dd7058a0b84d55542f138df3a75a24a6e378b7488ec WHIRLPOOL e30559c2666290e5041d4a07476be0d003818ae2dba130166a33223fea6e07ff73f235b9aa25f941e4a401a9db89d091936f3d0b4d588c52e2b53d4bd035742e
diff --git a/dev-util/pkgconf/metadata.xml b/dev-util/pkgconf/metadata.xml
new file mode 100644
index 000000000000..da933164fba0
--- /dev/null
+++ b/dev-util/pkgconf/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>floppym@gentoo.org</email>
+ <name>Mike Gilbert</name>
+ </maintainer>
+ <use>
+ <flag name="pkg-config">Install as a replacement for dev-util/pkgconfig</flag>
+ <flag name="strict">Adhere to POSIX pkg-config specification. Useful for finding uses of
+non-standard pkg-config invocations</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">pkgconf/pkgconf</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/pkgconf/pkgconf-0.9.11.ebuild b/dev-util/pkgconf/pkgconf-0.9.11.ebuild
new file mode 100644
index 000000000000..e75c07494d20
--- /dev/null
+++ b/dev-util/pkgconf/pkgconf-0.9.11.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/${PN}/${PN}.git"
+ inherit autotools git-2 multilib-minimal
+else
+ inherit eutils multilib-minimal
+ SRC_URI="http://rabbit.dereferenced.org/~nenolod/distfiles/${P}.tar.bz2"
+ KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc64-solaris ~x64-solaris"
+fi
+
+DESCRIPTION="pkg-config compatible replacement with no dependencies other than ANSI C89"
+HOMEPAGE="https://github.com/pkgconf/pkgconf"
+
+LICENSE="BSD-1"
+SLOT="0"
+IUSE="+pkg-config strict"
+
+RESTRICT="test" # at least until 0.9.13
+
+DEPEND=""
+RDEPEND="${DEPEND}
+ pkg-config? (
+ !dev-util/pkgconfig
+ !dev-util/pkg-config-lite
+ !dev-util/pkgconfig-openbsd[pkg-config]
+ )"
+
+MULTILIB_CHOST_TOOLS=(
+ /usr/bin/pkgconf
+)
+
+src_prepare() {
+ [[ -e configure ]] || eautoreconf
+
+ if use pkg-config; then
+ MULTILIB_CHOST_TOOLS+=(
+ /usr/bin/pkg-config
+ )
+ fi
+}
+
+multilib_src_configure() {
+ ECONF_SOURCE=${S} \
+ econf $(use_enable strict)
+}
+
+multilib_src_install() {
+ default
+ use pkg-config \
+ && dosym pkgconf /usr/bin/pkg-config \
+ || rm "${ED}"/usr/share/aclocal/pkg.m4 \
+ || die
+}
diff --git a/dev-util/pkgconf/pkgconf-0.9.12.ebuild b/dev-util/pkgconf/pkgconf-0.9.12.ebuild
new file mode 100644
index 000000000000..e75c07494d20
--- /dev/null
+++ b/dev-util/pkgconf/pkgconf-0.9.12.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/${PN}/${PN}.git"
+ inherit autotools git-2 multilib-minimal
+else
+ inherit eutils multilib-minimal
+ SRC_URI="http://rabbit.dereferenced.org/~nenolod/distfiles/${P}.tar.bz2"
+ KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc64-solaris ~x64-solaris"
+fi
+
+DESCRIPTION="pkg-config compatible replacement with no dependencies other than ANSI C89"
+HOMEPAGE="https://github.com/pkgconf/pkgconf"
+
+LICENSE="BSD-1"
+SLOT="0"
+IUSE="+pkg-config strict"
+
+RESTRICT="test" # at least until 0.9.13
+
+DEPEND=""
+RDEPEND="${DEPEND}
+ pkg-config? (
+ !dev-util/pkgconfig
+ !dev-util/pkg-config-lite
+ !dev-util/pkgconfig-openbsd[pkg-config]
+ )"
+
+MULTILIB_CHOST_TOOLS=(
+ /usr/bin/pkgconf
+)
+
+src_prepare() {
+ [[ -e configure ]] || eautoreconf
+
+ if use pkg-config; then
+ MULTILIB_CHOST_TOOLS+=(
+ /usr/bin/pkg-config
+ )
+ fi
+}
+
+multilib_src_configure() {
+ ECONF_SOURCE=${S} \
+ econf $(use_enable strict)
+}
+
+multilib_src_install() {
+ default
+ use pkg-config \
+ && dosym pkgconf /usr/bin/pkg-config \
+ || rm "${ED}"/usr/share/aclocal/pkg.m4 \
+ || die
+}
diff --git a/dev-util/pkgconf/pkgconf-1.0.1.ebuild b/dev-util/pkgconf/pkgconf-1.0.1.ebuild
new file mode 100644
index 000000000000..ef72b6eb15b5
--- /dev/null
+++ b/dev-util/pkgconf/pkgconf-1.0.1.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/${PN}/${PN}.git"
+ inherit autotools git-r3
+else
+ SRC_URI="https://github.com/${PN}/${PN}/releases/download/${P}/${P}.tar.gz"
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc64-solaris ~x64-solaris"
+fi
+
+inherit multilib-minimal
+
+DESCRIPTION="pkg-config compatible replacement with no dependencies other than ANSI C89"
+HOMEPAGE="https://github.com/pkgconf/pkgconf"
+
+LICENSE="BSD-1"
+SLOT="0"
+IUSE="+pkg-config strict"
+
+DEPEND=""
+RDEPEND="${DEPEND}
+ pkg-config? (
+ !dev-util/pkgconfig
+ !dev-util/pkg-config-lite
+ !dev-util/pkgconfig-openbsd[pkg-config]
+ )"
+
+MULTILIB_CHOST_TOOLS=(
+ /usr/bin/pkgconf
+)
+
+src_prepare() {
+ default
+
+ [[ ${PV} == "9999" ]] && eautoreconf
+ if use pkg-config; then
+ MULTILIB_CHOST_TOOLS+=(
+ /usr/bin/pkg-config
+ )
+ fi
+}
+
+multilib_src_configure() {
+ ECONF_SOURCE=${S} \
+ econf $(use_enable strict)
+}
+
+multilib_src_install() {
+ default
+
+ if use pkg-config; then
+ dosym pkgconf /usr/bin/pkg-config
+ else
+ rm "${ED%/}"/usr/share/aclocal/pkg.m4 || die
+ fi
+}
diff --git a/dev-util/pkgconf/pkgconf-1.0.2.ebuild b/dev-util/pkgconf/pkgconf-1.0.2.ebuild
new file mode 100644
index 000000000000..ae90eba29cdb
--- /dev/null
+++ b/dev-util/pkgconf/pkgconf-1.0.2.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/${PN}/${PN}.git"
+ inherit autotools git-r3
+else
+ SRC_URI="https://distfiles.dereferenced.org/${PN}/${P}.tar.xz"
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc64-solaris ~x64-solaris"
+fi
+
+inherit multilib-minimal
+
+DESCRIPTION="pkg-config compatible replacement with no dependencies other than ANSI C89"
+HOMEPAGE="https://github.com/pkgconf/pkgconf"
+
+LICENSE="BSD-1"
+SLOT="0"
+IUSE="+pkg-config strict"
+
+DEPEND=""
+RDEPEND="${DEPEND}
+ pkg-config? (
+ !dev-util/pkgconfig
+ !dev-util/pkg-config-lite
+ !dev-util/pkgconfig-openbsd[pkg-config]
+ )"
+
+MULTILIB_CHOST_TOOLS=(
+ /usr/bin/pkgconf
+)
+
+src_prepare() {
+ default
+
+ [[ ${PV} == "9999" ]] && eautoreconf
+ if use pkg-config; then
+ MULTILIB_CHOST_TOOLS+=(
+ /usr/bin/pkg-config
+ )
+ fi
+}
+
+multilib_src_configure() {
+ ECONF_SOURCE=${S} \
+ econf $(use_enable strict)
+}
+
+multilib_src_install() {
+ default
+
+ if use pkg-config; then
+ dosym pkgconf /usr/bin/pkg-config
+ else
+ rm "${ED%/}"/usr/share/aclocal/pkg.m4 || die
+ fi
+}
diff --git a/dev-util/pkgconf/pkgconf-1.1.0.ebuild b/dev-util/pkgconf/pkgconf-1.1.0.ebuild
new file mode 100644
index 000000000000..f6b5df7a7997
--- /dev/null
+++ b/dev-util/pkgconf/pkgconf-1.1.0.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/${PN}/${PN}.git"
+ inherit autotools git-r3
+else
+ SRC_URI="https://distfiles.dereferenced.org/${PN}/${P}.tar.xz"
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc64-solaris ~x64-solaris"
+fi
+
+inherit multilib-minimal
+
+DESCRIPTION="pkg-config compatible replacement with no dependencies other than ANSI C89"
+HOMEPAGE="https://github.com/pkgconf/pkgconf"
+
+LICENSE="BSD-1"
+SLOT="0"
+IUSE="+pkg-config"
+
+# tests require 'kyua'
+RESTRICT="test"
+
+DEPEND=""
+RDEPEND="${DEPEND}
+ pkg-config? (
+ !dev-util/pkgconfig
+ !dev-util/pkg-config-lite
+ !dev-util/pkgconfig-openbsd[pkg-config]
+ )"
+
+MULTILIB_CHOST_TOOLS=(
+ /usr/bin/pkgconf
+)
+
+src_prepare() {
+ default
+
+ [[ ${PV} == "9999" ]] && eautoreconf
+ if use pkg-config; then
+ MULTILIB_CHOST_TOOLS+=(
+ /usr/bin/pkg-config
+ )
+ fi
+}
+
+multilib_src_configure() {
+ ECONF_SOURCE=${S} econf
+}
+
+multilib_src_install() {
+ default
+
+ if use pkg-config; then
+ dosym pkgconf /usr/bin/pkg-config
+ else
+ rm "${ED%/}"/usr/share/aclocal/pkg.m4 || die
+ fi
+}
diff --git a/dev-util/pkgconf/pkgconf-1.2.2.ebuild b/dev-util/pkgconf/pkgconf-1.2.2.ebuild
new file mode 100644
index 000000000000..f6b5df7a7997
--- /dev/null
+++ b/dev-util/pkgconf/pkgconf-1.2.2.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/${PN}/${PN}.git"
+ inherit autotools git-r3
+else
+ SRC_URI="https://distfiles.dereferenced.org/${PN}/${P}.tar.xz"
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc64-solaris ~x64-solaris"
+fi
+
+inherit multilib-minimal
+
+DESCRIPTION="pkg-config compatible replacement with no dependencies other than ANSI C89"
+HOMEPAGE="https://github.com/pkgconf/pkgconf"
+
+LICENSE="BSD-1"
+SLOT="0"
+IUSE="+pkg-config"
+
+# tests require 'kyua'
+RESTRICT="test"
+
+DEPEND=""
+RDEPEND="${DEPEND}
+ pkg-config? (
+ !dev-util/pkgconfig
+ !dev-util/pkg-config-lite
+ !dev-util/pkgconfig-openbsd[pkg-config]
+ )"
+
+MULTILIB_CHOST_TOOLS=(
+ /usr/bin/pkgconf
+)
+
+src_prepare() {
+ default
+
+ [[ ${PV} == "9999" ]] && eautoreconf
+ if use pkg-config; then
+ MULTILIB_CHOST_TOOLS+=(
+ /usr/bin/pkg-config
+ )
+ fi
+}
+
+multilib_src_configure() {
+ ECONF_SOURCE=${S} econf
+}
+
+multilib_src_install() {
+ default
+
+ if use pkg-config; then
+ dosym pkgconf /usr/bin/pkg-config
+ else
+ rm "${ED%/}"/usr/share/aclocal/pkg.m4 || die
+ fi
+}
diff --git a/dev-util/pkgconf/pkgconf-1.3.5.ebuild b/dev-util/pkgconf/pkgconf-1.3.5.ebuild
new file mode 100644
index 000000000000..30537959f4d5
--- /dev/null
+++ b/dev-util/pkgconf/pkgconf-1.3.5.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/${PN}/${PN}.git"
+ inherit autotools git-r3
+else
+ SRC_URI="https://distfiles.dereferenced.org/${PN}/${P}.tar.xz"
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~x86"
+fi
+
+inherit ltprune multilib-minimal
+
+DESCRIPTION="pkg-config compatible replacement with no dependencies other than ANSI C89"
+HOMEPAGE="https://github.com/pkgconf/pkgconf"
+
+LICENSE="BSD-1"
+SLOT="0"
+IUSE="+pkg-config test"
+
+# tests require 'kyua'
+RESTRICT="!test? ( test )"
+
+DEPEND="
+ test? (
+ dev-libs/atf
+ dev-util/kyua
+ )
+"
+RDEPEND="
+ pkg-config? (
+ !dev-util/pkgconfig
+ !dev-util/pkg-config-lite
+ !dev-util/pkgconfig-openbsd[pkg-config]
+ )
+"
+
+MULTILIB_CHOST_TOOLS=(
+ /usr/bin/pkgconf
+)
+
+src_prepare() {
+ default
+
+ [[ ${PV} == "9999" ]] && eautoreconf
+ if use pkg-config; then
+ MULTILIB_CHOST_TOOLS+=(
+ /usr/bin/pkg-config
+ )
+ fi
+}
+
+multilib_src_configure() {
+ ECONF_SOURCE=${S} econf
+}
+
+multilib_src_install() {
+ default
+
+ if use pkg-config; then
+ dosym pkgconf /usr/bin/pkg-config
+ else
+ rm "${ED%/}"/usr/share/aclocal/pkg.m4 || die
+ fi
+}
+
+multilib_src_install_all() {
+ prune_libtool_files
+ einstalldocs
+}
diff --git a/dev-util/pkgconf/pkgconf-1.3.7.ebuild b/dev-util/pkgconf/pkgconf-1.3.7.ebuild
new file mode 100644
index 000000000000..ed2919362479
--- /dev/null
+++ b/dev-util/pkgconf/pkgconf-1.3.7.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/${PN}/${PN}.git"
+ inherit autotools git-r3
+else
+ SRC_URI="https://distfiles.dereferenced.org/${PN}/${P}.tar.xz"
+ KEYWORDS="~alpha ~amd64 arm ~arm64 hppa ia64 ppc ppc64 sparc x86"
+fi
+
+inherit ltprune multilib-minimal
+
+DESCRIPTION="pkg-config compatible replacement with no dependencies other than ANSI C89"
+HOMEPAGE="https://github.com/pkgconf/pkgconf"
+
+LICENSE="BSD-1"
+SLOT="0"
+IUSE="+pkg-config test"
+
+# tests require 'kyua'
+RESTRICT="!test? ( test )"
+
+DEPEND="
+ test? (
+ dev-libs/atf
+ dev-util/kyua
+ )
+"
+RDEPEND="
+ pkg-config? (
+ !dev-util/pkgconfig
+ !dev-util/pkg-config-lite
+ !dev-util/pkgconfig-openbsd[pkg-config]
+ )
+"
+
+MULTILIB_CHOST_TOOLS=(
+ /usr/bin/pkgconf
+)
+
+src_prepare() {
+ default
+
+ [[ ${PV} == "9999" ]] && eautoreconf
+ if use pkg-config; then
+ MULTILIB_CHOST_TOOLS+=(
+ /usr/bin/pkg-config
+ )
+ fi
+}
+
+multilib_src_configure() {
+ ECONF_SOURCE=${S} econf
+}
+
+multilib_src_install() {
+ default
+
+ if use pkg-config; then
+ dosym pkgconf /usr/bin/pkg-config
+ else
+ rm "${ED%/}"/usr/share/aclocal/pkg.m4 || die
+ fi
+}
+
+multilib_src_install_all() {
+ prune_libtool_files
+ einstalldocs
+}
diff --git a/dev-util/pkgconf/pkgconf-9999.ebuild b/dev-util/pkgconf/pkgconf-9999.ebuild
new file mode 100644
index 000000000000..30537959f4d5
--- /dev/null
+++ b/dev-util/pkgconf/pkgconf-9999.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/${PN}/${PN}.git"
+ inherit autotools git-r3
+else
+ SRC_URI="https://distfiles.dereferenced.org/${PN}/${P}.tar.xz"
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~x86"
+fi
+
+inherit ltprune multilib-minimal
+
+DESCRIPTION="pkg-config compatible replacement with no dependencies other than ANSI C89"
+HOMEPAGE="https://github.com/pkgconf/pkgconf"
+
+LICENSE="BSD-1"
+SLOT="0"
+IUSE="+pkg-config test"
+
+# tests require 'kyua'
+RESTRICT="!test? ( test )"
+
+DEPEND="
+ test? (
+ dev-libs/atf
+ dev-util/kyua
+ )
+"
+RDEPEND="
+ pkg-config? (
+ !dev-util/pkgconfig
+ !dev-util/pkg-config-lite
+ !dev-util/pkgconfig-openbsd[pkg-config]
+ )
+"
+
+MULTILIB_CHOST_TOOLS=(
+ /usr/bin/pkgconf
+)
+
+src_prepare() {
+ default
+
+ [[ ${PV} == "9999" ]] && eautoreconf
+ if use pkg-config; then
+ MULTILIB_CHOST_TOOLS+=(
+ /usr/bin/pkg-config
+ )
+ fi
+}
+
+multilib_src_configure() {
+ ECONF_SOURCE=${S} econf
+}
+
+multilib_src_install() {
+ default
+
+ if use pkg-config; then
+ dosym pkgconf /usr/bin/pkg-config
+ else
+ rm "${ED%/}"/usr/share/aclocal/pkg.m4 || die
+ fi
+}
+
+multilib_src_install_all() {
+ prune_libtool_files
+ einstalldocs
+}
diff --git a/dev-util/pkgconfig-openbsd/Manifest b/dev-util/pkgconfig-openbsd/Manifest
new file mode 100644
index 000000000000..0f56684b6d31
--- /dev/null
+++ b/dev-util/pkgconfig-openbsd/Manifest
@@ -0,0 +1,8 @@
+AUX pkgconfig-openbsd-20130507-zap-warning.patch 525 SHA256 02045bde5bf5c31b6421e1828f743101988636896969825b9905777af85d89da SHA512 984d662b5918a4a0f1bc75cee538f8414ca431a6e3132b74f86a2e3ef538479b7966042f414a103393a78ff236a78eb5aeef0107c16493ffe86f3c66cc64f791 WHIRLPOOL 4bb57efa81dabacea1fce7982c371215f3eb2b57ea848d73a5ae7d5e633b125da5fcd26e8a45df80fe77a7ebae3ace43f69f827045c99f7bd72d394704587b50
+DIST pkg-config-0.28.tar.gz 1931203 SHA256 6b6eb31c6ec4421174578652c7e141fdaae2dabad1021f420d8713206ac1f845 SHA512 6eafa5ca77c5d44cd15f48457a5e96fcea2555b66d8e35ada5ab59864a0aa03d441e15f54ab9c6343693867b3b490f392c75b7d9312f024c9b7ec6a0194d8320 WHIRLPOOL db4ddb4ce61724e629931c5ffccb4d7a551b4dc0f4efed5a966822307e4b5a786adee5705dd80ec0a9aa32cb1af9ad9615e307360e131fc34688207216161486
+DIST pkgconfig-openbsd-20130507.tar.xz 10876 SHA256 ed43eef85e6f2fcee3eb02944b59cdacf29305507d4f168dc63c022a452869b8 SHA512 39335c986be0f58fe22bfcda9b6196b34c7c8b7e889df2df0d9707fc699ba6e45df7aaa1d1f4bbe53098ea5fb1bb4aa3e5e33c22971978b40bba395642b41b69 WHIRLPOOL 607ab006bc262143ff4e87ccf72321f0217b7efba44f6b46efad34571d5324ba1fcb3a7142c75a002511fc6ba55ea2dbba16df383ca9fafbf52f38f308113f69
+EBUILD pkgconfig-openbsd-20130507-r1.ebuild 1719 SHA256 c0bcb835c016501c14646f77da8c4588f4df05bfb544db9852f2270cf62dad59 SHA512 8a5bcb1bc6d16ada5f7b3b913e8c3eafaead8a17b15de12e90c3422127e0f93a728cc344d5444e66f0ccffe5b12b361f44b6e63816bc1d2ecd0fe1e18eff37c9 WHIRLPOOL 7edebb2812bb4435afeb6f25b7eb0f6d03aef1439ae7716ecfd38e92e44523acb9030249ee19c06c95cb6ddf55d564d20a5bfd31d7f8b9d9039176bdf519e283
+EBUILD pkgconfig-openbsd-20130507-r2.ebuild 1765 SHA256 67678cfcc10b61547fa56366f53a8d04bc2e19295c2ed0b3eb1cc835e28107cc SHA512 71e2cea8ef068c4e0b6f81796529f6c6be6db03264621a3a7b676f311697d606a53554f07e6132626f8955757f9bef585ee88d6c8f6dcc1b551edd13d417120b WHIRLPOOL b75dd013b9e9d94ee7d99a8f9aae6e8bb7ff77d17170055d2bd2e4d9b7ebcbaa1e1626b08661c83060be08746c2ac52710385381caaf7877fbe7b94d6b1f40b7
+MISC ChangeLog 4378 SHA256 d986b13d9981d6205abcaaafb086ef2e53d1f7ce9fb429cb9c19ee3dae39ec9a SHA512 5ef2cb82bb0dde4dd1d5c709e41009092376764cc8de14d1d801a88ae9d9b5b0a5e5a6306cfb59a2f3796d37ab2e8b2f95c55b39e5e85c1f2a5647bf6c92c023 WHIRLPOOL 2dd41c7ffe9b12aa84fef2d0e27122822092164aacf0cc980c4a7e5be24f0b88828e5cb625d723126e67f0a1f90bc16344788e2bde419d6e3cef82157414d7f9
+MISC ChangeLog-2015 3132 SHA256 069e732476348e6800c43d3b3464961be4c0e339de30d60c78cb4859ace6f2b1 SHA512 bfdd5a1cdc7a475cac7a1f963071c7b1d67cc9d77c06c1a15ff183b9295ec79c8a501a7a71921bf14e6de82862485e6dcaa7f2688aee1d39dfdc69a3e5ab41a9 WHIRLPOOL bcacc002edd68cd714b86b978c01f51c5c47c67736098a0bafc2b36ccd9d0c322d92d29e85808eb40fd723869bf9271e4b7ef6a76f06e622ec0b19209837459d
+MISC metadata.xml 250 SHA256 2937de3a1956c82f929461800471cc8012c009d9978e22c93b7bda0b5e626947 SHA512 57c5d6cefedd04f50e461d73db25c3166735de76c6500985888a13fe3c23cb44b3e17b046d53376192abe8924257b8bd97c14934a2d24c7df29298660998e7c9 WHIRLPOOL 11ae320ea8bd6e8eab224b049bb85779f6ad20cd8ccf5fd319218bed65dedab6732e083602c15c9505ff423c549587011f751f9d776c3660841f463f7663210a
diff --git a/dev-util/pkgconfig-openbsd/files/pkgconfig-openbsd-20130507-zap-warning.patch b/dev-util/pkgconfig-openbsd/files/pkgconfig-openbsd-20130507-zap-warning.patch
new file mode 100644
index 000000000000..41784c919e19
--- /dev/null
+++ b/dev-util/pkgconfig-openbsd/files/pkgconfig-openbsd-20130507-zap-warning.patch
@@ -0,0 +1,19 @@
+Use of $_ produces warnings which can cause build failures in certain consumers.
+
+Backported from revision 1.4 upstream (http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/pkg-config/OpenBSD/PkgConfig.pm).
+
+Gentoo-bug: 538012
+Gentoo-bug: 545314
+Gentoo-bug: 545322
+Gentoo-bug: 545962
+
+--- a/src/usr.bin/pkg-config/OpenBSD/PkgConfig.pm
++++ b/src/usr.bin/pkg-config/OpenBSD/PkgConfig.pm
+@@ -91,7 +91,6 @@
+ {
+ my ($class, $fh, $name) = @_;
+ my $cfg = $class->new;
+- my $_;
+
+ $name = '' if !defined $name;
+ while (<$fh>) {
diff --git a/dev-util/pkgconfig-openbsd/metadata.xml b/dev-util/pkgconfig-openbsd/metadata.xml
new file mode 100644
index 000000000000..1632dc7b3fb8
--- /dev/null
+++ b/dev-util/pkgconfig-openbsd/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <use>
+ <flag name="pkg-config">Install as a replacement for <pkg>dev-util/pkgconfig</pkg></flag>
+ </use>
+</pkgmetadata>
diff --git a/dev-util/pkgconfig-openbsd/pkgconfig-openbsd-20130507-r1.ebuild b/dev-util/pkgconfig-openbsd/pkgconfig-openbsd-20130507-r1.ebuild
new file mode 100644
index 000000000000..ff2fbadd47bb
--- /dev/null
+++ b/dev-util/pkgconfig-openbsd/pkgconfig-openbsd-20130507-r1.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PERL_EXPORT_PHASE_FUNCTIONS=no
+inherit eutils multilib perl-module multilib-minimal
+
+# cvs -d anoncvs@anoncvs.openbsd.org:/cvs get src/usr.bin/pkg-config
+
+PKG_M4_VERSION=0.28
+
+DESCRIPTION="A perl based version of pkg-config from OpenBSD"
+HOMEPAGE="http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/pkg-config/"
+SRC_URI="https://dev.gentoo.org/~ssuominen/${P}.tar.xz
+ pkg-config? ( https://pkgconfig.freedesktop.org/releases/pkg-config-${PKG_M4_VERSION}.tar.gz )"
+
+LICENSE="ISC"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+pkg-config"
+
+RDEPEND="virtual/perl-Getopt-Long
+ pkg-config? (
+ !dev-util/pkgconfig
+ !dev-util/pkgconf[pkg-config]
+ )"
+
+S=${WORKDIR}/src
+
+src_prepare() {
+ epatch_user
+ ecvs_clean
+
+ # Config.pm from dev-lang/perl doesn't set ARCH, only archname
+ sed -i -e '/Config/s:ARCH:archname:' usr.bin/pkg-config/pkg-config || die
+
+ if use pkg-config; then
+ MULTILIB_CHOST_TOOLS=( /usr/bin/pkg-config )
+ else
+ MULTILIB_CHOST_TOOLS=( /usr/bin/pkg-config-openbsd )
+ fi
+}
+
+multilib_src_install() {
+ local pc_bin=pkg-config
+ use pkg-config || pc_bin+=-openbsd
+
+ newbin "${S}"/usr.bin/pkg-config/pkg-config ${pc_bin}
+ newman "${S}"/usr.bin/pkg-config/pkg-config.1 ${pc_bin}.1
+
+ # insert proper paths
+ local pc_paths=(
+ /usr/$(get_libdir)/pkgconfig
+ /usr/share/pkgconfig
+ )
+ sed -i -e "/my @PKGPATH/,/;/{s@(.*@( ${pc_paths[*]} );@p;d}" \
+ "${ED%/}/usr/bin/${pc_bin}" || die
+}
+
+multilib_src_install_all() {
+ if use pkg-config; then
+ insinto /usr/share/aclocal
+ doins "${WORKDIR}"/pkg-config-*/pkg.m4
+ fi
+
+ perl_set_version
+ insinto "${VENDOR_LIB}"
+ doins -r "${S}"/usr.bin/pkg-config/OpenBSD
+}
diff --git a/dev-util/pkgconfig-openbsd/pkgconfig-openbsd-20130507-r2.ebuild b/dev-util/pkgconfig-openbsd/pkgconfig-openbsd-20130507-r2.ebuild
new file mode 100644
index 000000000000..e47abefe3039
--- /dev/null
+++ b/dev-util/pkgconfig-openbsd/pkgconfig-openbsd-20130507-r2.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PERL_EXPORT_PHASE_FUNCTIONS=no
+inherit eutils multilib perl-module multilib-minimal
+
+# cvs -d anoncvs@anoncvs.openbsd.org:/cvs get src/usr.bin/pkg-config
+
+PKG_M4_VERSION=0.28
+
+DESCRIPTION="A perl based version of pkg-config from OpenBSD"
+HOMEPAGE="http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/pkg-config/"
+SRC_URI="https://dev.gentoo.org/~ssuominen/${P}.tar.xz
+ pkg-config? ( https://pkgconfig.freedesktop.org/releases/pkg-config-${PKG_M4_VERSION}.tar.gz )"
+
+LICENSE="ISC"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+pkg-config"
+
+RDEPEND="virtual/perl-Getopt-Long
+ pkg-config? (
+ !dev-util/pkgconfig
+ !dev-util/pkgconf[pkg-config]
+ )"
+
+S=${WORKDIR}/src
+
+src_prepare() {
+ epatch_user
+ ecvs_clean
+
+ epatch "${FILESDIR}/${P}-zap-warning.patch"
+
+ # Config.pm from dev-lang/perl doesn't set ARCH, only archname
+ sed -i -e '/Config/s:ARCH:archname:' usr.bin/pkg-config/pkg-config || die
+
+ if use pkg-config; then
+ MULTILIB_CHOST_TOOLS=( /usr/bin/pkg-config )
+ else
+ MULTILIB_CHOST_TOOLS=( /usr/bin/pkg-config-openbsd )
+ fi
+}
+
+multilib_src_install() {
+ local pc_bin=pkg-config
+ use pkg-config || pc_bin+=-openbsd
+
+ newbin "${S}"/usr.bin/pkg-config/pkg-config ${pc_bin}
+ newman "${S}"/usr.bin/pkg-config/pkg-config.1 ${pc_bin}.1
+
+ # insert proper paths
+ local pc_paths=(
+ /usr/$(get_libdir)/pkgconfig
+ /usr/share/pkgconfig
+ )
+ sed -i -e "/my @PKGPATH/,/;/{s@(.*@( ${pc_paths[*]} );@p;d}" \
+ "${ED%/}/usr/bin/${pc_bin}" || die
+}
+
+multilib_src_install_all() {
+ if use pkg-config; then
+ insinto /usr/share/aclocal
+ doins "${WORKDIR}"/pkg-config-*/pkg.m4
+ fi
+
+ perl_set_version
+ insinto "${VENDOR_LIB}"
+ doins -r "${S}"/usr.bin/pkg-config/OpenBSD
+}
diff --git a/dev-util/pkgconfig/Manifest b/dev-util/pkgconfig/Manifest
new file mode 100644
index 000000000000..3df0b7c2fd9b
--- /dev/null
+++ b/dev-util/pkgconfig/Manifest
@@ -0,0 +1,13 @@
+AUX pkgconfig-0.28-lfs.patch 8351 SHA256 df7f6349c0784ac0c73f14fc27b64fd60be35ee4fe0d3282ea9f7b468022c81b SHA512 1fbf5d326467f92cc9a82627f2b855ed5bd1a1843dbb922d7a48391ed900d45b6b228d2ee5e5860a4755812645095a8501765d85ffbb6eb28e0c088d7e9559c5 WHIRLPOOL 0dfb38a4f75fd62995392dd654f895b48bb5fbbf32353cdd3fc30b1a01a7c007c8b217fe6dd99c7f6529c98324c0714cea84b7be37223be39e2d1db2fc393747
+AUX pkgconfig-0.28-strip_system_library_dirs_reliably.patch 777 SHA256 9b58db9533d9b219a2cf19be296e977b2ee45cdae16a88533a30d7978d3ca3e7 SHA512 9511c0f966b4acc90d0421906ef0937edeae6901fa267a282d878e1d4a1ef84ee12f89b8feafe7172cecbde98e6d106fc446ac98780efd41b036c1f7a2f97d87 WHIRLPOOL 0140f86ffcfaa55ada6579136aa8e09fd22d6348c5b9d805d879064b77f193d9fc296eca71306d5f66003d27b1fd42e3e5e3e4ebf1147170fc1469556587e151
+DIST pkg-config-0.28.tar.gz 1931203 SHA256 6b6eb31c6ec4421174578652c7e141fdaae2dabad1021f420d8713206ac1f845 SHA512 6eafa5ca77c5d44cd15f48457a5e96fcea2555b66d8e35ada5ab59864a0aa03d441e15f54ab9c6343693867b3b490f392c75b7d9312f024c9b7ec6a0194d8320 WHIRLPOOL db4ddb4ce61724e629931c5ffccb4d7a551b4dc0f4efed5a966822307e4b5a786adee5705dd80ec0a9aa32cb1af9ad9615e307360e131fc34688207216161486
+DIST pkg-config-0.29.1.tar.gz 2013454 SHA256 beb43c9e064555469bd4390dcfd8030b1536e0aa103f08d7abf7ae8cac0cb001 SHA512 d2963355929d7aae0fbadad445d67b5c6762934fc4963a10a4b72ae90f7f6df4e6a38694884b924ff37eedaf636b49f3f521fe4eb3009e0322a402f330f1b4c2 WHIRLPOOL 6e7ff88253a4ff2e5b8c7e07bd9b5ab9b78b7f13dfe3af0a8607a8a20205a2340d02a400857d43aca5265ddb299c889b4a71c0c840c2d1b0e956434eb1980341
+DIST pkg-config-0.29.2.tar.gz 2016830 SHA256 6fc69c01688c9458a57eb9a1664c9aba372ccda420a02bf4429fe610e7e7d591 SHA512 4861ec6428fead416f5cbbbb0bbad10b9152967e481d4b0ff2eb396a9f297f552984c9bb72f6864a37dcd8fca1d9ccceda3ef18d8f121938dbe4fdf2b870fe75 WHIRLPOOL fefcf3c07a34993ac77967767578ff1961d00dca50bd884915d6a80001bd6726714452b0be82a76f0f9337e4f300c31c4a446274e6fe819e5477babab058763a
+EBUILD pkgconfig-0.28-r2.ebuild 2917 SHA256 af884821614db43099274b354c1f802ce886ff8e0f4bae278de19c987f43f8dc SHA512 1684738c78ae64b822c47c8c85b787dec1b8a44ef3db08611df5af1fa1c2e9e113d841b0270376f29831dc98db46889ceac9201b853c39402d3bd6b4cb566f15 WHIRLPOOL 8cb4a88c259207bf55bd6635b1ee9e88c2b53e5bcebd46ba5ce9ca5a7be801f3bae323ca3776b09ec71592581cf1ef713822a8ce930d73cc15f7138537374eed
+EBUILD pkgconfig-0.28-r3.ebuild 3440 SHA256 d63059644d79e73ff436a28c74fae044c91e5687608ef63d9a0df53a74280390 SHA512 30b8056d52a616023779aa243f96a372ae6ec6ba25009785aa7ee349127aa9ee5d87f9d385d48e8f9fc67678ce16fd8672f8a20c5332f8f363352eba3ef4a4a2 WHIRLPOOL 4d76fa823e321f60a4d95a2a6991e95e694b9c2e17e9229c2bcd34eb2137637b79e1bddc46b6b05ea9b244728e9af9e7e3bdd58ac7987c0922385330d152a5cd
+EBUILD pkgconfig-0.29.1.ebuild 3804 SHA256 41df846c2bdedfb185988177e230538083bc1c8ed4561364a9d9f2987f3caa99 SHA512 38c9f1f0ef4badc04b19901da1fef0cd11038ff9805fbc34ff0598f9d477be8c94bc20ec8f8102576f22c2e9ad0e3d11a1acab5fa676de169c47fbb6ade88de0 WHIRLPOOL 4eeab2abab0e745b455f4b4e5221352ab6ea3cf082fe424beb085d50e78babe60f38b70cfd9edf9d56ee93634c940b19b2fce9059f442d3cae8d8414b22a9c30
+EBUILD pkgconfig-0.29.2.ebuild 3798 SHA256 4b0bdd0a0242889b3945a9795d7e133d26d5e7f589e5ce867c6432220526342b SHA512 306d9eb5dc0c502c8a38ae3285e4c579f1ff89c25168727a836baaba6ef209dc0e7494255c5aee0a5b8b70497c4552f6c661be594d719c73b3790c9360b8d360 WHIRLPOOL a08d601fe12d63d09a0c72e59de35dd25d9e4157c1f3455f7d62b36ed25f5c3ace64fe5fa99c991a135b96805c6f90971454d67c8f6fa4729be77a150c9ac9d9
+EBUILD pkgconfig-9999.ebuild 3804 SHA256 41df846c2bdedfb185988177e230538083bc1c8ed4561364a9d9f2987f3caa99 SHA512 38c9f1f0ef4badc04b19901da1fef0cd11038ff9805fbc34ff0598f9d477be8c94bc20ec8f8102576f22c2e9ad0e3d11a1acab5fa676de169c47fbb6ade88de0 WHIRLPOOL 4eeab2abab0e745b455f4b4e5221352ab6ea3cf082fe424beb085d50e78babe60f38b70cfd9edf9d56ee93634c940b19b2fce9059f442d3cae8d8414b22a9c30
+MISC ChangeLog 4743 SHA256 d52a67ba0cfc2b0a08cfc14d4a24b6e9243ee07914b65eb8cd89b5dbaf0d40dd SHA512 160ad07c6aa9e48c8120d1a9e145138de28d896eba28378398909694f1c1f701ee4ed97d0f2d218ae8a669139ccfa5894b6a4d98db72ab9dea3d90fd5285b70d WHIRLPOOL f3b34eacf324590deb60b4be52974a7ba5046c0043918a4fe9cb0bd3ec37f07070963d7ac318b363f9e31eb491c44a66900a87fe7d269ad0bde95aec0da4822e
+MISC ChangeLog-2015 21094 SHA256 cc1d50a35be5f09e95cc26ecdcc79981d65b2b7897e37dae1a6dbec5f2dc23b9 SHA512 7a816d8c7abb0b0a1693d5576cd8410ca482e8e6a4223577e166c794d4da36593b9940f231bdfba997c7c813b93670fbd2bec3f41c906b8c14e32cc8daba5af8 WHIRLPOOL 020cc9cfde139648733284321638c4b5339d6d6ee8d7665ad34d9194502f99fcf0085ea66929acb8db0f6e7eff4703716dda96b3bc2c86ccacd38ec7ff8b72cc
+MISC metadata.xml 325 SHA256 c7fa7acac887e8520b294d677fe5fe54f6f717e75cd8bb41cbf2921e3f158789 SHA512 0db9510bbe132efa03acbbb4fb31407188edd83a6ac5c1d84316fa682db9399879957e8cd4447c1cbde01638f6d220f9a30a17611cd31e35769e71e5d38287a4 WHIRLPOOL 68c73161d17a8c286696b51f720551f982000c055b71f240d466fdfaa50c59161a4f3dc672a0e8bd6ec8e9278b62927a35f1729cc77a09121ba97a00b34daabe
diff --git a/dev-util/pkgconfig/files/pkgconfig-0.28-lfs.patch b/dev-util/pkgconfig/files/pkgconfig-0.28-lfs.patch
new file mode 100644
index 000000000000..9515f4f650a0
--- /dev/null
+++ b/dev-util/pkgconfig/files/pkgconfig-0.28-lfs.patch
@@ -0,0 +1,281 @@
+From 217ffa021257fc2313c9eeb3e94e2ee38d255634 Mon Sep 17 00:00:00 2001
+From: Peter Jones <pjones@redhat.com>
+Date: Wed, 15 Apr 2015 12:25:29 -0400
+Subject: [PATCH] Enable large file support
+
+https://bugs.freedesktop.org/show_bug.cgi?id=90078
+
+Signed-off-by: Peter Jones <pjones@redhat.com>
+
+[Alexandre Rostovtsev <tetromino@gentoo.org>: expand out configure,
+ config.h.in modifications.]
+---
+ configure.ac | 3 +
+ config.h.in | 11 ++++
+ configure | 203 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ 3 files changed, 217 insertions(+)
+
+diff --git a/configure.ac b/configure.ac
+index 2b33371..1a321e1 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -17,6 +17,9 @@ dnl by either passing --disable-silent-rules to configure or passing V=1
+ dnl to make
+ m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
+
++dnl Enable large file support
++AC_SYS_LARGEFILE
++
+ dnl Check for programs
+ AC_PROG_CC
+ AC_CHECK_PROG([LN], [ln], [ln], [cp -Rp])
+diff --git a/config.h.in b/config.h.in
+index 0aac8f3..fdae454 100644
+--- a/config.h.in
++++ b/config.h.in
+@@ -72,3 +72,14 @@
+
+ /* Version number of package */
+ #undef VERSION
++
++/* Enable large inode numbers on Mac OS X 10.5. */
++#ifndef _DARWIN_USE_64_BIT_INODE
++# define _DARWIN_USE_64_BIT_INODE 1
++#endif
++
++/* Number of bits in a file offset, on hosts where this is settable. */
++#undef _FILE_OFFSET_BITS
++
++/* Define for large files, on AIX-style hosts. */
++#undef _LARGE_FILES
+diff --git a/configure b/configure
+index 160ecab..f897e22 100755
+--- a/configure
++++ b/configure
+@@ -783,6 +783,7 @@ with_gnu_ld
+ with_sysroot
+ enable_libtool_lock
+ enable_silent_rules
++enable_largefile
+ with_pc_path
+ with_system_include_path
+ with_system_library_path
+@@ -1435,6 +1436,7 @@ Optional Features:
+ --disable-libtool-lock avoid locking (might break parallel builds)
+ --enable-silent-rules less verbose build output (undo: "make V=1")
+ --disable-silent-rules verbose build output (undo: "make V=0")
++ --disable-largefile omit support for large files
+ --enable-indirect-deps list both direct and indirect dependencies.
+ --disable-indirect-deps only list direct dependencies.
+ default=auto
+@@ -11389,6 +11391,207 @@ fi
+ AM_BACKSLASH='\'
+
+
++# Check whether --enable-largefile was given.
++if test "${enable_largefile+set}" = set; then :
++ enableval=$enable_largefile;
++fi
++
++if test "$enable_largefile" != no; then
++
++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
++$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
++if ${ac_cv_sys_largefile_CC+:} false; then :
++ $as_echo_n "(cached) " >&6
++else
++ ac_cv_sys_largefile_CC=no
++ if test "$GCC" != yes; then
++ ac_save_CC=$CC
++ while :; do
++ # IRIX 6.2 and later do not support large files by default,
++ # so use the C compiler's -n32 option if that helps.
++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h. */
++#include <sys/types.h>
++ /* Check that off_t can represent 2**63 - 1 correctly.
++ We can't simply define LARGE_OFF_T to be 9223372036854775807,
++ since some C++ compilers masquerading as C compilers
++ incorrectly reject 9223372036854775807. */
++#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
++ int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
++ && LARGE_OFF_T % 2147483647 == 1)
++ ? 1 : -1];
++int
++main ()
++{
++
++ ;
++ return 0;
++}
++_ACEOF
++ if ac_fn_c_try_compile "$LINENO"; then :
++ break
++fi
++rm -f core conftest.err conftest.$ac_objext
++ CC="$CC -n32"
++ if ac_fn_c_try_compile "$LINENO"; then :
++ ac_cv_sys_largefile_CC=' -n32'; break
++fi
++rm -f core conftest.err conftest.$ac_objext
++ break
++ done
++ CC=$ac_save_CC
++ rm -f conftest.$ac_ext
++ fi
++fi
++{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
++$as_echo "$ac_cv_sys_largefile_CC" >&6; }
++ if test "$ac_cv_sys_largefile_CC" != no; then
++ CC=$CC$ac_cv_sys_largefile_CC
++ fi
++
++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
++$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
++if ${ac_cv_sys_file_offset_bits+:} false; then :
++ $as_echo_n "(cached) " >&6
++else
++ while :; do
++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h. */
++#include <sys/types.h>
++ /* Check that off_t can represent 2**63 - 1 correctly.
++ We can't simply define LARGE_OFF_T to be 9223372036854775807,
++ since some C++ compilers masquerading as C compilers
++ incorrectly reject 9223372036854775807. */
++#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
++ int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
++ && LARGE_OFF_T % 2147483647 == 1)
++ ? 1 : -1];
++int
++main ()
++{
++
++ ;
++ return 0;
++}
++_ACEOF
++if ac_fn_c_try_compile "$LINENO"; then :
++ ac_cv_sys_file_offset_bits=no; break
++fi
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h. */
++#define _FILE_OFFSET_BITS 64
++#include <sys/types.h>
++ /* Check that off_t can represent 2**63 - 1 correctly.
++ We can't simply define LARGE_OFF_T to be 9223372036854775807,
++ since some C++ compilers masquerading as C compilers
++ incorrectly reject 9223372036854775807. */
++#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
++ int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
++ && LARGE_OFF_T % 2147483647 == 1)
++ ? 1 : -1];
++int
++main ()
++{
++
++ ;
++ return 0;
++}
++_ACEOF
++if ac_fn_c_try_compile "$LINENO"; then :
++ ac_cv_sys_file_offset_bits=64; break
++fi
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++ ac_cv_sys_file_offset_bits=unknown
++ break
++done
++fi
++{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
++$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
++case $ac_cv_sys_file_offset_bits in #(
++ no | unknown) ;;
++ *)
++cat >>confdefs.h <<_ACEOF
++#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
++_ACEOF
++;;
++esac
++rm -rf conftest*
++ if test $ac_cv_sys_file_offset_bits = unknown; then
++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
++$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
++if ${ac_cv_sys_large_files+:} false; then :
++ $as_echo_n "(cached) " >&6
++else
++ while :; do
++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h. */
++#include <sys/types.h>
++ /* Check that off_t can represent 2**63 - 1 correctly.
++ We can't simply define LARGE_OFF_T to be 9223372036854775807,
++ since some C++ compilers masquerading as C compilers
++ incorrectly reject 9223372036854775807. */
++#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
++ int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
++ && LARGE_OFF_T % 2147483647 == 1)
++ ? 1 : -1];
++int
++main ()
++{
++
++ ;
++ return 0;
++}
++_ACEOF
++if ac_fn_c_try_compile "$LINENO"; then :
++ ac_cv_sys_large_files=no; break
++fi
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
++/* end confdefs.h. */
++#define _LARGE_FILES 1
++#include <sys/types.h>
++ /* Check that off_t can represent 2**63 - 1 correctly.
++ We can't simply define LARGE_OFF_T to be 9223372036854775807,
++ since some C++ compilers masquerading as C compilers
++ incorrectly reject 9223372036854775807. */
++#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
++ int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
++ && LARGE_OFF_T % 2147483647 == 1)
++ ? 1 : -1];
++int
++main ()
++{
++
++ ;
++ return 0;
++}
++_ACEOF
++if ac_fn_c_try_compile "$LINENO"; then :
++ ac_cv_sys_large_files=1; break
++fi
++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
++ ac_cv_sys_large_files=unknown
++ break
++done
++fi
++{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
++$as_echo "$ac_cv_sys_large_files" >&6; }
++case $ac_cv_sys_large_files in #(
++ no | unknown) ;;
++ *)
++cat >>confdefs.h <<_ACEOF
++#define _LARGE_FILES $ac_cv_sys_large_files
++_ACEOF
++;;
++esac
++rm -rf conftest*
++ fi
++
++
++fi
++
++
+ ac_ext=c
+ ac_cpp='$CPP $CPPFLAGS'
+ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+--
+2.4.2
+
diff --git a/dev-util/pkgconfig/files/pkgconfig-0.28-strip_system_library_dirs_reliably.patch b/dev-util/pkgconfig/files/pkgconfig-0.28-strip_system_library_dirs_reliably.patch
new file mode 100644
index 000000000000..e1a2bb534a37
--- /dev/null
+++ b/dev-util/pkgconfig/files/pkgconfig-0.28-strip_system_library_dirs_reliably.patch
@@ -0,0 +1,30 @@
+http://bugs.gentoo.org/512336
+http://bugs.freedesktop.org/show_bug.cgi?id=78077
+
+From 8691b580ab3f7ac36182060e2253307fbd0aba75 Mon Sep 17 00:00:00 2001
+From: Andrew Oakley <aoakley@espial.com>
+Date: Tue, 29 Apr 2014 13:14:35 +0100
+Subject: [PATCH 1/1] Strip system library directories reliably
+
+This loop was changed from a while loop to a for loop in commit
+9bf6277b, but the iterator is now advanced twice each time round the
+loop.
+---
+ pkg.c | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/pkg.c b/pkg.c
+index 3697fec..c847c95 100644
+--- a/pkg.c
++++ b/pkg.c
+@@ -917,7 +917,6 @@ verify_package (Package *pkg)
+ }
+ system_dir_iter = system_dir_iter->next;
+ }
+- iter = iter->next;
+ }
+ g_list_free (system_directories);
+
+--
+1.8.3.2
+
diff --git a/dev-util/pkgconfig/metadata.xml b/dev-util/pkgconfig/metadata.xml
new file mode 100644
index 000000000000..feea3b542d9b
--- /dev/null
+++ b/dev-util/pkgconfig/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>freedesktop-bugs@gentoo.org</email>
+ </maintainer>
+ <use>
+ <flag name="internal-glib">Use internal copy of <pkg>dev-libs/glib</pkg></flag>
+ </use>
+</pkgmetadata>
diff --git a/dev-util/pkgconfig/pkgconfig-0.28-r2.ebuild b/dev-util/pkgconfig/pkgconfig-0.28-r2.ebuild
new file mode 100644
index 000000000000..a1119c66a8d9
--- /dev/null
+++ b/dev-util/pkgconfig/pkgconfig-0.28-r2.ebuild
@@ -0,0 +1,95 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils flag-o-matic libtool multilib multilib-minimal
+
+MY_P=pkg-config-${PV}
+
+if [[ ${PV} == *9999* ]]; then
+ EGIT_REPO_URI="https://anongit.freedesktop.org/git/pkg-config.git"
+ inherit autotools git-2
+else
+ KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+ SRC_URI="https://pkgconfig.freedesktop.org/releases/${MY_P}.tar.gz"
+fi
+
+DESCRIPTION="Package config system that manages compile/link flags"
+HOMEPAGE="https://pkgconfig.freedesktop.org/wiki/"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="elibc_FreeBSD elibc_glibc hardened internal-glib"
+
+RDEPEND="!internal-glib? ( >=dev-libs/glib-2.34.3[${MULTILIB_USEDEP}] )
+ !dev-util/pkgconf[pkg-config]
+ !dev-util/pkg-config-lite
+ !dev-util/pkgconfig-openbsd[pkg-config]"
+DEPEND="${RDEPEND}"
+
+S=${WORKDIR}/${MY_P}
+
+DOCS=( AUTHORS NEWS README )
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-strip_system_library_dirs_reliably.patch
+
+ sed -i -e "s|^prefix=/usr\$|prefix=${EPREFIX}/usr|" check/simple.pc || die #434320
+
+ epatch_user
+
+ if [[ ${PV} == *9999* ]]; then
+ eautoreconf
+ else
+ elibtoolize # Required for FreeMiNT wrt #333429
+ fi
+}
+
+multilib_src_configure() {
+ local myconf
+
+ if use internal-glib; then
+ myconf+=' --with-internal-glib'
+ # non-glibc platforms use GNU libiconv, but configure needs to
+ # know about that not to get confused when it finds something
+ # outside the prefix too
+ if use prefix && use !elibc_glibc ; then
+ myconf+=" --with-libiconv=gnu"
+ # add the libdir for libtool, otherwise it'll make love with system
+ # installed libiconv
+ append-ldflags "-L${EPREFIX}/usr/$(get_libdir)"
+ fi
+ else
+ if ! has_version dev-util/pkgconfig; then
+ export GLIB_CFLAGS="-I${EPREFIX}/usr/include/glib-2.0 -I${EPREFIX}/usr/$(get_libdir)/glib-2.0/include"
+ export GLIB_LIBS="-lglib-2.0"
+ fi
+ fi
+
+ use ppc64 && use hardened && replace-flags -O[2-3] -O1
+
+ # Force using all the requirements when linking, so that needed -pthread
+ # lines are inherited between libraries
+ use elibc_FreeBSD && myconf+=' --enable-indirect-deps'
+
+ [[ ${PV} == *9999* ]] && myconf+=' --enable-maintainer-mode'
+
+ ECONF_SOURCE=${S} \
+ econf \
+ --docdir="${EPREFIX}"/usr/share/doc/${PF}/html \
+ --with-system-include-path="${EPREFIX}"/usr/include \
+ --with-system-library-path="${EPREFIX}"/usr/$(get_libdir) \
+ ${myconf}
+}
+
+multilib_src_install() {
+ emake DESTDIR="${D}" install
+
+ if use prefix; then
+ # Add an explicit reference to $EPREFIX to PKG_CONFIG_PATH to
+ # simplify cross-prefix builds
+ echo "PKG_CONFIG_PATH=${EPREFIX}/usr/$(get_libdir)/pkgconfig:${EPREFIX}/usr/share/pkgconfig" >> "${T}"/99${PN}
+ doenvd "${T}"/99${PN}
+ fi
+}
diff --git a/dev-util/pkgconfig/pkgconfig-0.28-r3.ebuild b/dev-util/pkgconfig/pkgconfig-0.28-r3.ebuild
new file mode 100644
index 000000000000..97ed77bde110
--- /dev/null
+++ b/dev-util/pkgconfig/pkgconfig-0.28-r3.ebuild
@@ -0,0 +1,105 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+# Do not inherit autotools in non-live ebuild - causes circular dependency, bug #550856
+inherit eutils flag-o-matic libtool multilib multilib-minimal
+
+MY_P=pkg-config-${PV}
+
+if [[ ${PV} == *9999* ]]; then
+ # 1.12 is only needed for tests due to some am__check_pre / LOG_DRIVER
+ # weirdness with "/bin/bash /bin/sh" in arguments chain with >=1.13
+ WANT_AUTOMAKE=1.12
+ EGIT_REPO_URI="https://anongit.freedesktop.org/git/pkg-config.git"
+ EGIT_CHECKOUT_DIR=${WORKDIR}/${MY_P}
+ inherit autotools git-r3
+else
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+ SRC_URI="https://pkgconfig.freedesktop.org/releases/${MY_P}.tar.gz"
+fi
+
+DESCRIPTION="Package config system that manages compile/link flags"
+HOMEPAGE="https://pkgconfig.freedesktop.org/wiki/"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="elibc_FreeBSD elibc_glibc hardened internal-glib"
+
+RDEPEND="!internal-glib? ( >=dev-libs/glib-2.34.3[${MULTILIB_USEDEP}] )
+ !dev-util/pkgconf[pkg-config]
+ !dev-util/pkg-config-lite
+ !dev-util/pkgconfig-openbsd[pkg-config]"
+DEPEND="${RDEPEND}"
+
+S=${WORKDIR}/${MY_P}
+
+DOCS=( AUTHORS NEWS README )
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-strip_system_library_dirs_reliably.patch
+
+ sed -i -e "s|^prefix=/usr\$|prefix=${EPREFIX}/usr|" check/simple.pc || die #434320
+
+ # Large file support, fixed in upstream git; bug #550508
+ epatch "${FILESDIR}"/${P}-lfs.patch
+ # lfs patch touches config.h.in; need this hack to prevent autoreconf and automake
+ touch aclocal.m4 config.h.in Makefile.in
+
+ epatch_user
+
+ if [[ ${PV} == *9999* ]]; then
+ eautoreconf
+ else
+ elibtoolize # Required for FreeMiNT wrt #333429
+ fi
+}
+
+multilib_src_configure() {
+ local myconf
+
+ if use internal-glib; then
+ myconf+=' --with-internal-glib'
+ # non-glibc platforms use GNU libiconv, but configure needs to
+ # know about that not to get confused when it finds something
+ # outside the prefix too
+ if use prefix && use !elibc_glibc ; then
+ myconf+=" --with-libiconv=gnu"
+ # add the libdir for libtool, otherwise it'll make love with system
+ # installed libiconv
+ append-ldflags "-L${EPREFIX}/usr/$(get_libdir)"
+ fi
+ else
+ if ! has_version dev-util/pkgconfig; then
+ export GLIB_CFLAGS="-I${EPREFIX}/usr/include/glib-2.0 -I${EPREFIX}/usr/$(get_libdir)/glib-2.0/include"
+ export GLIB_LIBS="-lglib-2.0"
+ fi
+ fi
+
+ use ppc64 && use hardened && replace-flags -O[2-3] -O1
+
+ # Force using all the requirements when linking, so that needed -pthread
+ # lines are inherited between libraries
+ use elibc_FreeBSD && myconf+=' --enable-indirect-deps'
+
+ [[ ${PV} == *9999* ]] && myconf+=' --enable-maintainer-mode'
+
+ ECONF_SOURCE=${S} \
+ econf \
+ --docdir="${EPREFIX}"/usr/share/doc/${PF}/html \
+ --with-system-include-path="${EPREFIX}"/usr/include \
+ --with-system-library-path="${EPREFIX}"/usr/$(get_libdir) \
+ ${myconf}
+}
+
+multilib_src_install() {
+ emake DESTDIR="${D}" install
+
+ if use prefix; then
+ # Add an explicit reference to $EPREFIX to PKG_CONFIG_PATH to
+ # simplify cross-prefix builds
+ echo "PKG_CONFIG_PATH=${EPREFIX}/usr/$(get_libdir)/pkgconfig:${EPREFIX}/usr/share/pkgconfig" >> "${T}"/99${PN}
+ doenvd "${T}"/99${PN}
+ fi
+}
diff --git a/dev-util/pkgconfig/pkgconfig-0.29.1.ebuild b/dev-util/pkgconfig/pkgconfig-0.29.1.ebuild
new file mode 100644
index 000000000000..31f6de36737e
--- /dev/null
+++ b/dev-util/pkgconfig/pkgconfig-0.29.1.ebuild
@@ -0,0 +1,117 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+# Do not inherit autotools in non-live ebuild - causes circular dependency, bug #550856
+inherit eutils flag-o-matic libtool multilib multilib-minimal
+
+MY_P=pkg-config-${PV}
+
+if [[ ${PV} == *9999* ]]; then
+ # 1.12 is only needed for tests due to some am__check_pre / LOG_DRIVER
+ # weirdness with "/bin/bash /bin/sh" in arguments chain with >=1.13
+ WANT_AUTOMAKE=1.12
+ EGIT_REPO_URI="https://anongit.freedesktop.org/git/pkg-config.git"
+ EGIT_CHECKOUT_DIR=${WORKDIR}/${MY_P}
+ inherit autotools git-r3
+else
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+ SRC_URI="https://pkgconfig.freedesktop.org/releases/${MY_P}.tar.gz"
+fi
+
+DESCRIPTION="Package config system that manages compile/link flags"
+HOMEPAGE="https://pkgconfig.freedesktop.org/wiki/"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="elibc_FreeBSD elibc_glibc hardened internal-glib"
+
+RDEPEND="!internal-glib? ( >=dev-libs/glib-2.34.3[${MULTILIB_USEDEP}] )
+ !dev-util/pkgconf[pkg-config]
+ !dev-util/pkg-config-lite
+ !dev-util/pkgconfig-openbsd[pkg-config]
+ virtual/libintl"
+DEPEND="${RDEPEND}"
+
+S=${WORKDIR}/${MY_P}
+
+DOCS=( AUTHORS NEWS README )
+
+src_prepare() {
+ sed -i -e "s|^prefix=/usr\$|prefix=${EPREFIX}/usr|" check/simple.pc || die #434320
+
+ eapply_user
+
+ if [[ ${PV} == *9999* ]]; then
+ eautoreconf
+ else
+ elibtoolize # Required for FreeMiNT wrt #333429
+ fi
+
+ if [[ ${CHOST} == *-solaris* ]] ; then
+ # fix standards conflicts
+ sed -i -e 's/\(_XOPEN_SOURCE\(_EXTENDED\)\?\|__EXTENSIONS__\)/ \1_DISABLED/' \
+ glib/configure || die
+ sed -i -e '/#define\s\+_POSIX_SOURCE/d' \
+ glib/glib/giounix.c || die
+ fi
+}
+
+multilib_src_configure() {
+ local myconf
+
+ if use internal-glib; then
+ myconf+=' --with-internal-glib'
+ # non-glibc platforms use GNU libiconv, but configure needs to
+ # know about that not to get confused when it finds something
+ # outside the prefix too
+ if use prefix && use !elibc_glibc ; then
+ myconf+=" --with-libiconv=gnu"
+ # add the libdir for libtool, otherwise it'll make love with system
+ # installed libiconv
+ append-ldflags "-L${EPREFIX}/usr/$(get_libdir)"
+ # the glib objects reference symbols from these frameworks,
+ # not good, esp. since Carbon should be deprecated
+ [[ ${CHOST} == *-darwin* ]] && \
+ append-ldflags -framework CoreFoundation -framework Carbon
+ if [[ ${CHOST} == *-solaris* ]] ; then
+ # required due to __EXTENSIONS__
+ append-cppflags -DENABLE_NLS
+ # similar to Darwin
+ append-ldflags -lintl
+ fi
+ fi
+ else
+ if ! has_version dev-util/pkgconfig; then
+ export GLIB_CFLAGS="-I${EPREFIX}/usr/include/glib-2.0 -I${EPREFIX}/usr/$(get_libdir)/glib-2.0/include"
+ export GLIB_LIBS="-lglib-2.0"
+ fi
+ fi
+
+ use ppc64 && use hardened && replace-flags -O[2-3] -O1
+
+ # Force using all the requirements when linking, so that needed -pthread
+ # lines are inherited between libraries
+ use elibc_FreeBSD && myconf+=' --enable-indirect-deps'
+
+ [[ ${PV} == *9999* ]] && myconf+=' --enable-maintainer-mode'
+
+ ECONF_SOURCE=${S} \
+ econf \
+ --docdir="${EPREFIX}"/usr/share/doc/${PF}/html \
+ --with-system-include-path="${EPREFIX}"/usr/include \
+ --with-system-library-path="${EPREFIX}"/usr/$(get_libdir) \
+ ${myconf}
+}
+
+multilib_src_install() {
+ emake DESTDIR="${D}" install
+
+ if use prefix; then
+ # Add an explicit reference to $EPREFIX to PKG_CONFIG_PATH to
+ # simplify cross-prefix builds
+ echo "PKG_CONFIG_PATH=${EPREFIX}/usr/$(get_libdir)/pkgconfig:${EPREFIX}/usr/share/pkgconfig" >> "${T}"/99${PN}
+ doenvd "${T}"/99${PN}
+ fi
+}
diff --git a/dev-util/pkgconfig/pkgconfig-0.29.2.ebuild b/dev-util/pkgconfig/pkgconfig-0.29.2.ebuild
new file mode 100644
index 000000000000..081de47109bc
--- /dev/null
+++ b/dev-util/pkgconfig/pkgconfig-0.29.2.ebuild
@@ -0,0 +1,117 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+# Do not inherit autotools in non-live ebuild - causes circular dependency, bug #550856
+inherit eutils flag-o-matic libtool multilib multilib-minimal
+
+MY_P=pkg-config-${PV}
+
+if [[ ${PV} == *9999* ]]; then
+ # 1.12 is only needed for tests due to some am__check_pre / LOG_DRIVER
+ # weirdness with "/bin/bash /bin/sh" in arguments chain with >=1.13
+ WANT_AUTOMAKE=1.12
+ EGIT_REPO_URI="https://anongit.freedesktop.org/git/pkg-config.git"
+ EGIT_CHECKOUT_DIR=${WORKDIR}/${MY_P}
+ inherit autotools git-r3
+else
+ KEYWORDS="alpha ~amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+ SRC_URI="https://pkgconfig.freedesktop.org/releases/${MY_P}.tar.gz"
+fi
+
+DESCRIPTION="Package config system that manages compile/link flags"
+HOMEPAGE="https://pkgconfig.freedesktop.org/wiki/"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="elibc_FreeBSD elibc_glibc hardened internal-glib"
+
+RDEPEND="!internal-glib? ( >=dev-libs/glib-2.34.3[${MULTILIB_USEDEP}] )
+ !dev-util/pkgconf[pkg-config]
+ !dev-util/pkg-config-lite
+ !dev-util/pkgconfig-openbsd[pkg-config]
+ virtual/libintl"
+DEPEND="${RDEPEND}"
+
+S=${WORKDIR}/${MY_P}
+
+DOCS=( AUTHORS NEWS README )
+
+src_prepare() {
+ sed -i -e "s|^prefix=/usr\$|prefix=${EPREFIX}/usr|" check/simple.pc || die #434320
+
+ eapply_user
+
+ if [[ ${PV} == *9999* ]]; then
+ eautoreconf
+ else
+ elibtoolize # Required for FreeMiNT wrt #333429
+ fi
+
+ if [[ ${CHOST} == *-solaris* ]] ; then
+ # fix standards conflicts
+ sed -i -e 's/\(_XOPEN_SOURCE\(_EXTENDED\)\?\|__EXTENSIONS__\)/ \1_DISABLED/' \
+ glib/configure || die
+ sed -i -e '/#define\s\+_POSIX_SOURCE/d' \
+ glib/glib/giounix.c || die
+ fi
+}
+
+multilib_src_configure() {
+ local myconf
+
+ if use internal-glib; then
+ myconf+=' --with-internal-glib'
+ # non-glibc platforms use GNU libiconv, but configure needs to
+ # know about that not to get confused when it finds something
+ # outside the prefix too
+ if use prefix && use !elibc_glibc ; then
+ myconf+=" --with-libiconv=gnu"
+ # add the libdir for libtool, otherwise it'll make love with system
+ # installed libiconv
+ append-ldflags "-L${EPREFIX}/usr/$(get_libdir)"
+ # the glib objects reference symbols from these frameworks,
+ # not good, esp. since Carbon should be deprecated
+ [[ ${CHOST} == *-darwin* ]] && \
+ append-ldflags -framework CoreFoundation -framework Carbon
+ if [[ ${CHOST} == *-solaris* ]] ; then
+ # required due to __EXTENSIONS__
+ append-cppflags -DENABLE_NLS
+ # similar to Darwin
+ append-ldflags -lintl
+ fi
+ fi
+ else
+ if ! has_version dev-util/pkgconfig; then
+ export GLIB_CFLAGS="-I${EPREFIX}/usr/include/glib-2.0 -I${EPREFIX}/usr/$(get_libdir)/glib-2.0/include"
+ export GLIB_LIBS="-lglib-2.0"
+ fi
+ fi
+
+ use ppc64 && use hardened && replace-flags -O[2-3] -O1
+
+ # Force using all the requirements when linking, so that needed -pthread
+ # lines are inherited between libraries
+ use elibc_FreeBSD && myconf+=' --enable-indirect-deps'
+
+ [[ ${PV} == *9999* ]] && myconf+=' --enable-maintainer-mode'
+
+ ECONF_SOURCE=${S} \
+ econf \
+ --docdir="${EPREFIX}"/usr/share/doc/${PF}/html \
+ --with-system-include-path="${EPREFIX}"/usr/include \
+ --with-system-library-path="${EPREFIX}"/usr/$(get_libdir) \
+ ${myconf}
+}
+
+multilib_src_install() {
+ emake DESTDIR="${D}" install
+
+ if use prefix; then
+ # Add an explicit reference to $EPREFIX to PKG_CONFIG_PATH to
+ # simplify cross-prefix builds
+ echo "PKG_CONFIG_PATH=${EPREFIX}/usr/$(get_libdir)/pkgconfig:${EPREFIX}/usr/share/pkgconfig" >> "${T}"/99${PN}
+ doenvd "${T}"/99${PN}
+ fi
+}
diff --git a/dev-util/pkgconfig/pkgconfig-9999.ebuild b/dev-util/pkgconfig/pkgconfig-9999.ebuild
new file mode 100644
index 000000000000..31f6de36737e
--- /dev/null
+++ b/dev-util/pkgconfig/pkgconfig-9999.ebuild
@@ -0,0 +1,117 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+# Do not inherit autotools in non-live ebuild - causes circular dependency, bug #550856
+inherit eutils flag-o-matic libtool multilib multilib-minimal
+
+MY_P=pkg-config-${PV}
+
+if [[ ${PV} == *9999* ]]; then
+ # 1.12 is only needed for tests due to some am__check_pre / LOG_DRIVER
+ # weirdness with "/bin/bash /bin/sh" in arguments chain with >=1.13
+ WANT_AUTOMAKE=1.12
+ EGIT_REPO_URI="https://anongit.freedesktop.org/git/pkg-config.git"
+ EGIT_CHECKOUT_DIR=${WORKDIR}/${MY_P}
+ inherit autotools git-r3
+else
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+ SRC_URI="https://pkgconfig.freedesktop.org/releases/${MY_P}.tar.gz"
+fi
+
+DESCRIPTION="Package config system that manages compile/link flags"
+HOMEPAGE="https://pkgconfig.freedesktop.org/wiki/"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="elibc_FreeBSD elibc_glibc hardened internal-glib"
+
+RDEPEND="!internal-glib? ( >=dev-libs/glib-2.34.3[${MULTILIB_USEDEP}] )
+ !dev-util/pkgconf[pkg-config]
+ !dev-util/pkg-config-lite
+ !dev-util/pkgconfig-openbsd[pkg-config]
+ virtual/libintl"
+DEPEND="${RDEPEND}"
+
+S=${WORKDIR}/${MY_P}
+
+DOCS=( AUTHORS NEWS README )
+
+src_prepare() {
+ sed -i -e "s|^prefix=/usr\$|prefix=${EPREFIX}/usr|" check/simple.pc || die #434320
+
+ eapply_user
+
+ if [[ ${PV} == *9999* ]]; then
+ eautoreconf
+ else
+ elibtoolize # Required for FreeMiNT wrt #333429
+ fi
+
+ if [[ ${CHOST} == *-solaris* ]] ; then
+ # fix standards conflicts
+ sed -i -e 's/\(_XOPEN_SOURCE\(_EXTENDED\)\?\|__EXTENSIONS__\)/ \1_DISABLED/' \
+ glib/configure || die
+ sed -i -e '/#define\s\+_POSIX_SOURCE/d' \
+ glib/glib/giounix.c || die
+ fi
+}
+
+multilib_src_configure() {
+ local myconf
+
+ if use internal-glib; then
+ myconf+=' --with-internal-glib'
+ # non-glibc platforms use GNU libiconv, but configure needs to
+ # know about that not to get confused when it finds something
+ # outside the prefix too
+ if use prefix && use !elibc_glibc ; then
+ myconf+=" --with-libiconv=gnu"
+ # add the libdir for libtool, otherwise it'll make love with system
+ # installed libiconv
+ append-ldflags "-L${EPREFIX}/usr/$(get_libdir)"
+ # the glib objects reference symbols from these frameworks,
+ # not good, esp. since Carbon should be deprecated
+ [[ ${CHOST} == *-darwin* ]] && \
+ append-ldflags -framework CoreFoundation -framework Carbon
+ if [[ ${CHOST} == *-solaris* ]] ; then
+ # required due to __EXTENSIONS__
+ append-cppflags -DENABLE_NLS
+ # similar to Darwin
+ append-ldflags -lintl
+ fi
+ fi
+ else
+ if ! has_version dev-util/pkgconfig; then
+ export GLIB_CFLAGS="-I${EPREFIX}/usr/include/glib-2.0 -I${EPREFIX}/usr/$(get_libdir)/glib-2.0/include"
+ export GLIB_LIBS="-lglib-2.0"
+ fi
+ fi
+
+ use ppc64 && use hardened && replace-flags -O[2-3] -O1
+
+ # Force using all the requirements when linking, so that needed -pthread
+ # lines are inherited between libraries
+ use elibc_FreeBSD && myconf+=' --enable-indirect-deps'
+
+ [[ ${PV} == *9999* ]] && myconf+=' --enable-maintainer-mode'
+
+ ECONF_SOURCE=${S} \
+ econf \
+ --docdir="${EPREFIX}"/usr/share/doc/${PF}/html \
+ --with-system-include-path="${EPREFIX}"/usr/include \
+ --with-system-library-path="${EPREFIX}"/usr/$(get_libdir) \
+ ${myconf}
+}
+
+multilib_src_install() {
+ emake DESTDIR="${D}" install
+
+ if use prefix; then
+ # Add an explicit reference to $EPREFIX to PKG_CONFIG_PATH to
+ # simplify cross-prefix builds
+ echo "PKG_CONFIG_PATH=${EPREFIX}/usr/$(get_libdir)/pkgconfig:${EPREFIX}/usr/share/pkgconfig" >> "${T}"/99${PN}
+ doenvd "${T}"/99${PN}
+ fi
+}
diff --git a/dev-util/plan9port/Manifest b/dev-util/plan9port/Manifest
new file mode 100644
index 000000000000..3bc4f7bb8721
--- /dev/null
+++ b/dev-util/plan9port/Manifest
@@ -0,0 +1,9 @@
+AUX plan9port-builderr.patch 936 SHA256 d0d97cac6d9b42c7eaafc1f94e688080bbfe957495ac1e08e55e1cc95880e8a3 SHA512 d95e6c5b4b75d54167721f7250288b8640945ebeb10ff346e989a4690828bb8448e46cbcf30d5e35c27d094680b2995ca04b8106c4dce083260f605fc2024d84 WHIRLPOOL 220c2a759cd70f21107e908c80bf0a35a5663e7073d22160972280421d5c91b0b3ece6660a6d9bfe6bec1f7cf9a58f92f3696e5db8c60e2d1a5ea7518b4a9b44
+AUX plan9port-cflags.patch 328 SHA256 ef9e325972b4f4320bbfcfb4d57cd6e06241c820643b189c2f85feed504df581 SHA512 281b236893cc1efde75d7fc5160168c8602a5eff27229f9b0e2b1284ac36cf73fdbd22f2ae4d3776556f7b881ad63f4dd68d56628942ca6e84abca12b93616bc WHIRLPOOL 73a5afd2adfaa625ee0e5cf3f40c93da6c8859567992e4e3b380dc70b6080f6aba2eb6bc767911a4d7535f3d2034e52a541d5abf693b24f976cf18ba92f876d7
+AUX plan9port-freebsd-10.patch 265 SHA256 b258a8e8680acb7e74a30a10803e03e879dad35a2fc5087a3aa2f2601a0193e9 SHA512 69c8d4ee824afb453bd4ebc8ba9af3e73c37fd31e40d92ae62685a9a6916571ed16e8f3eee8aff32e2db96177439fa34e52bba8d7c52a296328ae1d9d3767c19 WHIRLPOOL 5861044c97ddce95462e13f463fb82b4346d921148cebd7ab398420098a1e834b0c679bcde2e9bd09fc414b704b4de62746b4c1da060e5c3475bb29c87c49526
+AUX plan9port-noexecstack.patch 984 SHA256 eafebec7adf9310eba6b4bc1aec1ea41ad3cdd73b366471278dd4439643351ea SHA512 160f0a793345603c4c905e65a6fa4a25b1a1c1084f0eadd4ada49ba5b6efc48b975031d14926fdfc2bd48d2e3860c987da449d9d9973038ab510f42528383da8 WHIRLPOOL 997262eb672ce3836309216eb31219671051d1e7b936c98811a668cbe481a820140ec07555871940a367e730e7206ab90e7d8705ee9f0fae50fe613c400f5e22
+DIST plan9port-e78ed7a67bbaa37dc57dfb37219f505c48755e14.tar.gz 23442851 SHA256 29628d315c3f26f73157076717684f8ee642083f2213e78c739c79fdf703e458 SHA512 3cb126eb0f8c58c76c4da5aaca6b3956b9cc30b1955c1b9db4727a01a46cae696f01b538a47f6f009e955f6ed8f308b60b6519d4184e10b255636ea32a1e9099 WHIRLPOOL 3ac4474ae9df9fcc032e24ef065a1a9ccd20f3a8fa416ee9d0ec51faad9c883581500c5827ec2a3b2c56bd1779e5a59fc07a84dcd78ce8acbf5f48450635106c
+EBUILD plan9port-20140306-r4.ebuild 3536 SHA256 73e6abe859fa0b15387236cf31f3d6161ae1bd278a0206ce379b771937a42195 SHA512 290a3824ee3aaaa2a813f2e703b16851988126e1d7c1636552767529fb9bcbc01edf86851d6869f1000df71bb8ce8a0fa34af807810c6dd87702e6a9e711685f WHIRLPOOL 10786a9ccf8236ed7fdc288f8a37d478765e06a625e2a1a25fabe93382aad56303bc6354dd99c74a781d7ea05725c866396516fca2d21b9e5e6f871549ffeebe
+MISC ChangeLog 4204 SHA256 558c0ff41e0310adfba1be44a75f9b67eedded2173bed37d4852e2668149eda1 SHA512 20924b8aa8eb74cd8e331b4c81beeb9f20236df2610713ddc0f29b642094904550a4de4818660add97c9db932b1b9e80368a1ef861f74298e22d82587a352030 WHIRLPOOL 3e38e43d5810f96fd6921151c4d4727f4463c3e741f8d4438c7c4f79e4d77221823588810d988df21268120987cc439e3be05b0135fe580f898304d92d5fdb57
+MISC ChangeLog-2015 6800 SHA256 26935902c85acce1c3ff5af5e1c2ed514eeb2b4d5e9c480757f5ae57dc22cfe1 SHA512 605dd2afb2f19e445772be995d8ac754a35fcdc54598891f913825008e1cfece1b0d5594ab3c34fe29bf64d8335b182bd2cc423aa715ebc721c13c5bfa787eeb WHIRLPOOL 964ee61ac81cfffbc0299cc55a9409847f468728f4282c76af3f0d3e4ae409dd7148c1fa312ab915353e8908eefc88d095dcfda063d05ae2c0f5ccb5fed249bb
+MISC metadata.xml 683 SHA256 38651be777925e25decd8d6fbd86fab5357fc229a6202f5d4cde0d0ee57c5f48 SHA512 8d8bc34ae706ed839de9f2c1e32be135545b706208ef800d9ebde98f2f182111a91bc92c1f764c6fa6d26af8615bd528e1dfb87e0597e86d4ffce06f3a0c0b33 WHIRLPOOL b464d24d0b0330faeaf6ac00f72b7a198636c78f885cfcac0db1e9971824436a7c573f5740eb864be9b182ab72f4242af7b2fba2574d211d41f8d3e93c3af780
diff --git a/dev-util/plan9port/files/plan9port-builderr.patch b/dev-util/plan9port/files/plan9port-builderr.patch
new file mode 100644
index 000000000000..266f10c4b9d5
--- /dev/null
+++ b/dev-util/plan9port/files/plan9port-builderr.patch
@@ -0,0 +1,29 @@
+Prevent mk from ignoring errors
+
+By default, the plan9port INSTALL script doesn't report build error,
+which can result in a mostly broken build begin installed.
+--- a/INSTALL
++++ b/INSTALL
+@@ -41,7 +41,6 @@ echo " "
+ echo "* Resetting $PLAN9/config"
+ rm -f config
+
+-(
+ echo "* Compiler version:"
+ 9c -v 2>&1 | grep -v 'Configured with:' | grep -i version | sed 's/^/ /'
+
+@@ -134,7 +133,7 @@ if $dobuild; then
+ echo "* Warning: not all binaries built successfully."
+ fi
+ echo "* Installing everything in $PLAN9/bin..."
+- mk -k install || exit 1
++ mk install || exit 1
+ if [ ! -x $PLAN9/bin/cleanname -o ! -x $PLAN9/bin/acme -o ! -x $PLAN9/bin/sam ]; then
+ echo " "
+ echo "* Warning: not all binaries built successfully."
+@@ -182,5 +181,4 @@ if $doinstall; then
+ echo " PLAN9=$PLAN9 export PLAN9"
+ echo ' PATH=$PATH:$PLAN9/bin export PATH'
+ fi
+-) 2>&1 | tee install.log | $awk -f $PLAN9/dist/isum.awk -v 'copy='install.sum
+
diff --git a/dev-util/plan9port/files/plan9port-cflags.patch b/dev-util/plan9port/files/plan9port-cflags.patch
new file mode 100644
index 000000000000..c2d2ed6defe5
--- /dev/null
+++ b/dev-util/plan9port/files/plan9port-cflags.patch
@@ -0,0 +1,16 @@
+Prevent resetting CFLAGS and LDFLAGS
+
+This allows the plan9port build to inherit cflags from the environment.
+
+(This patch must be applied after plan9port-noexecstack.patch)
+--- a/src/mkhdr
++++ b/src/mkhdr
+@@ -28,8 +28,6 @@ LD=9l
+ AS=9a
+ AR=9ar
+ INSTALL=install
+-CFLAGS=
+-LDFLAGS=
+ AFLAGS=--noexecstack
+ CLEANFILES=
+ NUKEFILES=
diff --git a/dev-util/plan9port/files/plan9port-freebsd-10.patch b/dev-util/plan9port/files/plan9port-freebsd-10.patch
new file mode 100644
index 000000000000..cc46dc6f4509
--- /dev/null
+++ b/dev-util/plan9port/files/plan9port-freebsd-10.patch
@@ -0,0 +1,11 @@
+--- a/bin/9l 2015-12-09 19:12:50.000000000 +0000
++++ b/bin/9l 2015-12-09 19:13:00.000000000 +0000
+@@ -19,7 +19,7 @@ case "$tag" in
+ 5.2.*)
+ extralibs="$extralibs -lkse"
+ ;;
+- [5-9].*)
++ [5-9].*|10.*)
+ extralibs="$extralibs -lpthread"
+ ;;
+ esac
diff --git a/dev-util/plan9port/files/plan9port-noexecstack.patch b/dev-util/plan9port/files/plan9port-noexecstack.patch
new file mode 100644
index 000000000000..fb4f19f21fc5
--- /dev/null
+++ b/dev-util/plan9port/files/plan9port-noexecstack.patch
@@ -0,0 +1,54 @@
+Remove unneeded executable stack
+
+Assembly routines in libthread and libmp use an executable stack by
+default. This is not needed and can be removed using --noexecstack.
+
+The plan9port 9a wrapper wrapper needs to be modified to pass flags to the
+underlying assembler first though..
+
+Patch by Andy Spencer
+
+ http://code.swtch.com/plan9port/issue/76/
+--- a/bin/9a
++++ b/bin/9a
+@@ -1,10 +1,5 @@
+ #!/bin/sh
+
+-if [ $# != 1 ]; then
+- echo 'usage: 9a file.s' 1>&2
+- exit 1
+-fi
+-
+ test -f $PLAN9/config && . $PLAN9/config
+
+ aflags=""
+@@ -17,5 +12,16 @@ Darwin-*x86_64*)
+ ;;
+ esac
+
+-out=`echo $1 | sed 's/\.s$//;s/$/.o/'`
+-exec as $aflags -o $out $1
++for arg; do
++ case $arg in
++ -*)
++ opts="$opts $arg"
++ ;;
++ *.s)
++ src=$arg
++ dst=$(echo $arg | sed 's/\.s/\.o/')
++ ;;
++ esac
++done
++
++exec as $aflags $opts -o $dst $src
+--- a/src/mkhdr
++++ b/src/mkhdr
+@@ -30,7 +30,7 @@ AR=9ar
+ INSTALL=install
+ CFLAGS=
+ LDFLAGS=
+-AFLAGS=
++AFLAGS=--noexecstack
+ CLEANFILES=
+ NUKEFILES=
+ YACC=9 yacc
diff --git a/dev-util/plan9port/metadata.xml b/dev-util/plan9port/metadata.xml
new file mode 100644
index 000000000000..1ddb5cc0124d
--- /dev/null
+++ b/dev-util/plan9port/metadata.xml
@@ -0,0 +1,22 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>andy753421@gmail.com</email>
+ </maintainer>
+ <maintainer type="person">
+ <email>blueness@gentoo.org</email>
+ <name>Anthony G. Basile</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <longdescription>
+ Plan9Port is a set of Plan 9 utilities ported to the POSIX
+ environment - also know as Plan 9 from User Space.
+ </longdescription>
+ <upstream>
+ <remote-id type="github">9fans/plan9port</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/plan9port/plan9port-20140306-r4.ebuild b/dev-util/plan9port/plan9port-20140306-r4.ebuild
new file mode 100644
index 000000000000..68a51b267f4e
--- /dev/null
+++ b/dev-util/plan9port/plan9port-20140306-r4.ebuild
@@ -0,0 +1,120 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit eutils multiprocessing toolchain-funcs
+
+MY_HASH="e78ed7a67bbaa37dc57dfb37219f505c48755e14"
+MY_P="${PN}-${MY_HASH}"
+
+DESCRIPTION="Port of many Plan 9 programs and libraries"
+HOMEPAGE="http://swtch.com/plan9port/"
+SRC_URI="https://github.com/9fans/${PN}/archive/${MY_HASH}.tar.gz -> ${MY_P}.tar.gz"
+
+LICENSE="9base BSD-4 MIT LGPL-2.1 BigelowHolmes"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="X aqua truetype"
+REQUIRED_USE="?? ( X aqua )"
+
+DEPEND="X? ( x11-apps/xauth )
+ truetype? ( media-libs/freetype
+ media-libs/fontconfig )"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+PLAN9=/usr/lib/plan9
+EPLAN9="${EPREFIX}"${PLAN9}
+QA_MULTILIB_PATHS="${PLAN9}/.*/.*"
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-"{noexecstack,cflags,builderr}".patch"
+ case ${CHOST} in
+ *freebsd10.*) # patch 9l to use -pthread also on FreeBSD-10
+ epatch "${FILESDIR}/${PN}-freebsd-10.patch" ;;
+ *apple*)
+ sed -i 's/--noexecstack/-noexecstack/' src/mkhdr ||
+ die "Failed to sed AFLAGS" ;;
+ esac
+
+ # don't hardcode /bin and /usr/bin in PATH
+ sed -i '/PATH/s,/bin:/usr/bin:,,' INSTALL || die "sed on INSTALL failed"
+
+ # don't hardcode /usr/{,local/}include and prefix /usr/include/*
+ for f in src/cmd/fontsrv/freetyperules.sh INSTALL \
+ $(find -name makefile); do
+ sed -r -i -e 's,-I/usr(|/local)/include ,,g' \
+ -e "s,-I/usr(|/local)/include,-I${EPREFIX}/usr\1/include,g" ${f} \
+ || die "sed on ${f} failed"
+ done
+
+ # Fix paths, done in place of ./INSTALL -c
+ einfo "Fixing hard-coded /usr/local/plan9 paths"
+ grep --null -l -r '/usr/local/plan9' |
+ xargs --null sed -i "s,/usr/local/plan9,${EPLAN9},g"
+}
+
+src_configure() {
+ local myconf=()
+ if use X; then
+ myconf+=("X11=${EPREFIX}/usr" WSYSTYPE=x11)
+ elif use aqua; then
+ local wsystype=$(echo ${MACOSX_DEPLOYMENT_TARGET} |
+ awk '{if ($1 > 10.5) print "osx-cocoa"; else print "osx"}')
+ myconf+=("WSYSTYPE=${wsystype}")
+ else
+ myconf+=(WSYSTYPE=nowsys)
+ fi
+
+ if use truetype; then
+ myconf+=(FONTSRV=fontsrv)
+ else
+ myconf+=(FONTSRV=)
+ fi
+ printf '%s\n' "${myconf[@]}" >> LOCAL.config
+}
+
+src_compile() {
+ export NPROC=$(makeopts_jobs)
+ export CC9=$(tc-getCC)
+
+ # The INSTALL script builds mk then [re]builds everything using that
+ einfo "Compiling Plan 9 from User Space can take a very long time"
+ einfo "depending on the speed of your computer. Please be patient!"
+ ./INSTALL -b || die "Please report bugs to bugs.gentoo.org, NOT Plan9Port."
+}
+
+src_install() {
+ dodir "${PLAN9}"
+
+ # P9P's man does not handle compression
+ docompress -x $PLAN9/man
+
+ # do* plays with the executable bit, and we should not modify them
+ cp -a * "${ED}/${PLAN9}"
+
+ # build the environment variables and install them in env.d
+ cat > "${T}/60plan9" <<-EOF
+ PLAN9="${EPLAN9}"
+ PATH="${EPLAN9}/bin"
+ ROOTPATH="${EPLAN9}/bin"
+ MANPATH="${EPLAN9}/man"
+ EOF
+ doenvd "${T}/60plan9"
+}
+
+pkg_postinst() {
+ elog "Plan 9 from User Space has been successfully installed into"
+ elog "${PLAN9}. Your PLAN9 and PATH environment variables have"
+ elog "also been appropriately set, please use env-update and"
+ elog "source /etc/profile to bring that into immediate effect."
+ elog
+ elog "Please note that ${PLAN9}/bin has been appended to the"
+ elog "*end* or your PATH to prevent conflicts. To use the Plan9"
+ elog "versions of common UNIX tools, use the absolute path:"
+ elog "${PLAN9}/bin or the 9 command (eg: 9 troff)"
+ elog
+ elog "Please report any bugs to bugs.gentoo.org, NOT Plan9Port."
+}
diff --git a/dev-util/ply/Manifest b/dev-util/ply/Manifest
new file mode 100644
index 000000000000..922387329c25
--- /dev/null
+++ b/dev-util/ply/Manifest
@@ -0,0 +1,4 @@
+DIST ply-0_pre20160313.tar.gz 38530 SHA256 ef2f320b84f133840c65d4cca664b5c9fe8b3d5a01743dd05f776c1b7bff65ae SHA512 2de2ca2751574fe23b48188b0e8d1b4f1afe46003cbdefa69aeadaed0442675dad42b6cbfd161ebfbe006fbb21d447be4fca0ea7350b1409207473511f685d47 WHIRLPOOL 9283887367955adb98ae067fedaf3d183195dd0cca727864afcb84ac2f59e2f6b98b4e3c5be4867a1b6095f5435d445a86fb9e18053eae7fe4adee774c7f18e6
+EBUILD ply-0_pre20160313.ebuild 1539 SHA256 7fff1790963e4cb0227614021b7a40f0b32aaab5fc2fec08c53b5e6e6c6eafc5 SHA512 76457c4d3d0b7e537fca072b4133cbeec5898a786e09e758bf5ea42c870e039c3386e4a29fe7dd5e357d04ff7d75f0ed7be6d978e3b6fd1801a55bd164d66c1a WHIRLPOOL ab54c4c9827f904f699bcd48b7d6ea0ee8016d5419a98577cc48ee469bae2487d2ee6504ab5f7fd87ec365720a1c745c803a0ab3b24d819a0436c90f2db55fa4
+MISC ChangeLog 453 SHA256 9d409844dc70eede394fc0a0c9c0760e3d55256e965de7932ce0c7a8caff4730 SHA512 66210253c5f5dcf0537e53c9bb59403b0c97a0eec462d600de5e9ff9a9d541d82bfd8ea3bd39761988d02aa9a4cc189cacc9833a737a403e174f33df695ae14d WHIRLPOOL f1e579f0afff3f2986da4c23523d941a521b1ebab5fc0c2eeb4aca8b36d9d1f68a4c1cefb70e58d941b824017d689e8995a45eda7c08b89c19879bdd50e5f33b
+MISC metadata.xml 302 SHA256 529efeb6b7c4382a8f8f295cbf5135b295ca9f3281cd205500d05abb9ce465e6 SHA512 528855426ce54aa03f915178952e3b82d98dfe1dec45ef7a5a9ddf1069bc279e5bd4c894ab9bb5e328b72a10e05a5f9d5d9b5c60650246343b832bb6381bd24c WHIRLPOOL 5b3b66840bd5746f1d7b66daa52f4837994bd2b09e45de3c41dc0ce64102cc71779299499b2f286c87ba0a1d83d5c27fcfddafe57fd53199fc5b8a7bd86a72de
diff --git a/dev-util/ply/metadata.xml b/dev-util/ply/metadata.xml
new file mode 100644
index 000000000000..0e1f3d58af2b
--- /dev/null
+++ b/dev-util/ply/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>zmedico@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">iovisor/ply</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/ply/ply-0_pre20160313.ebuild b/dev-util/ply/ply-0_pre20160313.ebuild
new file mode 100644
index 000000000000..46367c55cfcd
--- /dev/null
+++ b/dev-util/ply/ply-0_pre20160313.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools linux-info
+
+DESCRIPTION="Dynamic instrumentation of the Linux kernel with BPF and kprobes"
+HOMEPAGE="https://github.com/iovisor/ply"
+EGIT_COMMIT="cfc56c789ad1eff1080ecb0dad18d009b91ae8ea"
+SRC_URI="https://github.com/iovisor/ply/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+S=${WORKDIR}/${PN}-${EGIT_COMMIT}
+
+pkg_pretend() {
+ local CONFIG_CHECK="~BPF ~BPF_SYSCALL ~NET_CLS_BPF ~NET_ACT_BPF
+ ~BPF_JIT ~HAVE_BPF_JIT ~BPF_EVENTS"
+
+ check_extra_config
+}
+
+src_prepare() {
+ eapply_user
+ eautoreconf
+ default
+}
+
+src_configure() {
+ local econf_args=() kerneldir_orig
+ if [[ -d ${KERNEL_DIR} ]]; then
+ # Using KBUILD_OUTPUT can fail, depending on the source tree
+ # state (it might demand that we make mrproper). Therefore,
+ # create a symlink copy of the source tree so that we are free
+ # to clean things up as needed.
+ kerneldir_orig=${KERNEL_DIR}
+ cp -sR "$(realpath "${kerneldir_orig}")" "${T}/kerneldir" || die
+ export KERNEL_DIR="${T}/kerneldir"
+ pushd "${KERNEL_DIR}" || die
+ # avoid sandbox violation for scripts/kconfig/.conf.cmd
+ find . -name '\.*' -delete
+ cp "${kerneldir_orig}/.config" ./.config || die
+ set_arch_to_kernel
+ make mrproper oldconfig prepare || die
+ popd || die
+ econf_args+=(--with-kerneldir="${KERNEL_DIR}")
+ fi
+ econf "${econf_args[@]}"
+}
+
+src_install() {
+ default
+ rm -f "${ED}/usr/share/doc/${P}/COPYING"
+}
diff --git a/dev-util/pmd/Manifest b/dev-util/pmd/Manifest
new file mode 100644
index 000000000000..8f75a4b66e0f
--- /dev/null
+++ b/dev-util/pmd/Manifest
@@ -0,0 +1,7 @@
+AUX pmd-4.2.5-build.xml.patch 2313 SHA256 22672c88dc2af5f12cc59a65a5ea496f1de0493282e82e7e0a68027e853421c8 SHA512 ee0851e642013a59698043fd2aa120b804c5e8ddbdcaa462d8196a8f1e63011b90396c921b4881f1d21687d58e11352a269554420e74718b5d059e1b4b7bdecf WHIRLPOOL 65d66d5761f7bd1f7fb67229ce24a9a062654bfc2dec5b5d3814d97aeb8fa2db0ccd157fb63fe201d3cf333d253acae8267f6ec75587716198c97ac197c219d7
+AUX pmd-4.2.5-launcher-pre-commands 171 SHA256 d2e683d5512b7d102d595d6ef3a757bd21891f3257303506026e85f99bd2e8ad SHA512 9d36998cee64096d5d71562cc255ae951a11ad6d67057359b2a16cb860b8d542b121c1482fb9bd1458d93a4bc69e3b4720080e8153bc01930b8927e653fe5c75 WHIRLPOOL b6f2bf623cf29b4485abec9b419db66843a58eacf2daf4b1a4265f08c900f6b3e47275b8d84d3d61cc903a6800732519f70c24db14f251397f81dbae0e6e2e2b
+DIST pmd-src-4.2.5.zip 10801078 SHA256 d3a8c181a59ea1cedb1896ba3c14e076bfe34ead602a2546a4028a857b881cb4 SHA512 f515445126d0b3ad11adac491df94d4e1e806764b2601b4ad9974a090d8542cfc4992d4aaf5ef61470459ecaf4c75db0865e257a1f7ea065b3d248b53387e93e WHIRLPOOL 39e04690df2d164d9aa6d6032ed71e3301d1fd5d8dd38a556f6a438cd2b1f58909da16ce058f9d5197cfbb6aa63b738ac1bb48ef5c5df0dedba5b4dd7b738feb
+EBUILD pmd-4.2.5.ebuild 1721 SHA256 ec671e529d1c9710f98df5dc02c0721a8403864dea2a6c0657014e11d114c2ee SHA512 54c79caf491a7b2cfe928576c02347b56add3d26725049696747e5b4c2d130b5aa37e99156cbfd5b84aaad7e9f34aef422f9e8fc2dc3cab104068f6f098cb0b7 WHIRLPOOL 6ac7ce3d71b2b9c6e7a0e55422a0453a7b65fc62463c2b27cf60473fe220c7b3d57e109fdf433edfe5b3ceea2894cd74a0d88c77b1503b1de6c53b68fc0ae057
+MISC ChangeLog 2625 SHA256 b94c2579524e6eb32f7662078ba13850f9b3cc99cd243af255b2324850b2dd0e SHA512 0a7ed038972ce46cdafb51edc2e9784c5ebed3ce4a712c1a44b50b0b7f5ee035eaacf068711b0d82d2a331e9dc563b740d8efafad9767614bd0977831ae45148 WHIRLPOOL 3159f7fa961b88359a712d40498f9b0e7d51159d7f70b5336823e4e6212f8b66bff72b8765a82017abcadbd593e5af190de1be33240f3bca5a9a3a35003b968f
+MISC ChangeLog-2015 5375 SHA256 646aab4406e957f1644260c72fbd421a8df5d5217a5833f2fb3654a78d6093dd SHA512 cbb5dfd9169979469c96ebd6cd70cbb38f3ca765ef372eaf18d74d3f49b583f0d5c6c36a3de5768505d9318434b3838476f2f1f826b13c3a7529ba54d009c30e WHIRLPOOL fb97d971d8580a0b3ecc3da606802766625a20ec39ebe662f4aa31814dc6af1bbeda1ec0f36efe613bcf492a5e66c3f53351bd62ea3d802da2c29ff2dfe833c2
+MISC metadata.xml 309 SHA256 e9c74bf1d99cd374917c63d92cb8683c34e295658a455b1fda4076bee72337af SHA512 516024e7c481f53034f039bb417ac691aaac3b2650349ef7744badd450a073f3388de60c616e869ad8697b66b57b5241f0e3077363db51a82c579d5cc8347bc2 WHIRLPOOL 51255dd8563198b34acce19fbb854f3566da52272d4b045184a5116ff8a2cb58424e32efe93f0f0710e20bf4d81548362370a547fa6397f1d325d8e6f97e7d11
diff --git a/dev-util/pmd/files/pmd-4.2.5-build.xml.patch b/dev-util/pmd/files/pmd-4.2.5-build.xml.patch
new file mode 100644
index 000000000000..a0f043568625
--- /dev/null
+++ b/dev-util/pmd/files/pmd-4.2.5-build.xml.patch
@@ -0,0 +1,51 @@
+diff -Nur pmd-4.2.4/bin/build.xml pmd-4.2.4_patched/bin/build.xml
+--- pmd-4.2.4/bin/build.xml 2008-08-31 15:32:20.000000000 +0300
++++ pmd-4.2.4_patched/bin/build.xml 2008-11-23 08:15:09.000000000 +0200
+@@ -22,11 +22,7 @@
+
+ <path id="dependencies.path">
+ <pathelement location="${dir.build}" />
+- <fileset dir="${dir.lib}">
+- <include name="jaxen-${jaxen.version}.jar" />
+- <include name="asm-${asm.version}.jar" />
+- <include name="junit-${junit.version}.jar" />
+- </fileset>
++ <fileset dir="${dir.lib}" includes="*.jar"/>
+ </path>
+
+ <target name="delete" description="Deletes the build directory and the pmd-x.x jar file.">
+@@ -76,7 +72,6 @@
+ <zipfileset dir="etc" includes="ruleset.dtd,ruleset_xml_schema.xsd" prefix="rulesets"/>
+ <manifest>
+ <attribute name="Main-Class" value="net.sourceforge.pmd.PMD" />
+- <attribute name="Class-Path" value="jaxen-${jaxen.version}.jar asm-${asm.version}.jar" />
+ </manifest>
+ </jar>
+
+@@ -86,17 +81,6 @@
+ basedir="${dir.build}" />
+ </target>
+
+- <taskdef name="retroweaver" classname="net.sourceforge.retroweaver.ant.RetroWeaverTask">
+- <classpath>
+- <pathelement location="${dir.lib14}/retroweaver-${retroweaver.version}.jar"/>
+- <pathelement location="${dir.lib14}/retroweaver-rt-${retroweaver.version}.jar"/>
+- <pathelement location="${dir.lib14}/backport-util-concurrent.jar"/>
+- <pathelement location="${dir.lib14}/asm-commons-${asm.version}.jar"/>
+- <pathelement location="${dir.lib14}/asm-util-${asm.version}.jar"/>
+- <pathelement location="${dir.lib}/asm-${asm.version}.jar"/>
+- </classpath>
+- </taskdef>
+-
+ <target name="weavejunit" depends="jar">
+ <path id="retroweaverclasspath">
+ <pathelement location="${dir.lib14}/retroweaver-rt-${retroweaver.version}.jar"/>
+@@ -211,7 +195,7 @@
+ <target name="test-execute" description="Runs the unit tests">
+ <delete dir="${test.outputdir}" />
+ <mkdir dir="${test.outputdir}/xml"/>
+- <junit printsummary="${test.printsummary}" showoutput="no" filtertrace="yes" haltonfailure="no" jvm="${test.jvm}" forkmode="perBatch"
++ <junit printsummary="${test.printsummary}" showoutput="no" filtertrace="yes" haltonfailure="yes" jvm="${test.jvm}" forkmode="perBatch"
+ failureProperty="test.failure"
+ >
+ <sysproperty key="pmd.regress" value="${test.regression}"/>
diff --git a/dev-util/pmd/files/pmd-4.2.5-launcher-pre-commands b/dev-util/pmd/files/pmd-4.2.5-launcher-pre-commands
new file mode 100644
index 000000000000..b2e48852597d
--- /dev/null
+++ b/dev-util/pmd/files/pmd-4.2.5-launcher-pre-commands
@@ -0,0 +1,6 @@
+if [ -z "$3" ]; then
+ script=`basename $0`
+ echo "Usage:"
+ echo " $script <java-src-file> html|xml|text|vbhtml rulesetfile1[,rulesetfile2[,..]]"
+ exit 1
+fi
diff --git a/dev-util/pmd/metadata.xml b/dev-util/pmd/metadata.xml
new file mode 100644
index 000000000000..f4e182129a3d
--- /dev/null
+++ b/dev-util/pmd/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="project">
+ <email>java@gentoo.org</email>
+ <name>Java</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">pmd</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/pmd/pmd-4.2.5.ebuild b/dev-util/pmd/pmd-4.2.5.ebuild
new file mode 100644
index 000000000000..2974d1385e44
--- /dev/null
+++ b/dev-util/pmd/pmd-4.2.5.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=2
+JAVA_PKG_IUSE="doc source test"
+inherit java-pkg-2 java-ant-2
+
+DESCRIPTION="A Java source code analyzer"
+HOMEPAGE="http://pmd.sourceforge.net"
+SRC_URI="mirror://sourceforge/pmd/${PN}-src-${PV}.zip"
+
+LICENSE="pmd"
+SLOT="0"
+KEYWORDS="amd64 x86 ~x86-fbsd"
+IUSE=""
+
+COMMON_DEPEND="
+ dev-java/ant-core
+ dev-java/asm:3
+ dev-java/jaxen:1.1
+ >=dev-java/junit-4.4:4"
+
+RDEPEND=">=virtual/jre-1.5
+ ${COMMON_DEPEND}"
+
+DEPEND=">=virtual/jdk-1.5
+ app-arch/unzip
+ test? (
+ dev-java/ant-junit4
+ dev-java/ant-trax
+ )
+ ${COMMON_DEPEND}"
+
+# tests fail
+RESTRICT="test"
+
+java_prepare() {
+ epatch "${FILESDIR}/${P}-build.xml.patch"
+ find -name "*.jar" | xargs rm -v
+
+ cd "${S}/lib"
+ java-pkg_jar-from ant-core
+ java-pkg_jar-from asm-3 asm.jar
+ java-pkg_jar-from jaxen-1.1 jaxen.jar
+ java-pkg_jar-from junit-4
+}
+
+EANT_BUILD_XML="bin/build.xml"
+
+src_test() {
+ # junit does not like collisions
+ rm lib/ant.jar
+ ANT_TASKS="ant-junit4 ant-trax" eant -f bin/build.xml test -DoutputTestResultsToFile=true
+}
+
+src_install() {
+ java-pkg_newjar lib/${P}.jar
+ java-pkg_register-ant-task
+
+ # Create launchers and copy rulesets
+ java-pkg_dolauncher ${PN} --main net.sourceforge.pmd.PMD --java_args "-Xmx512m" \
+ -pre "${FILESDIR}"/${P}-launcher-pre-commands
+ java-pkg_dolauncher ${PN}-designer --main net.sourceforge.pmd.util.designer.Designer
+ cp -r rulesets "${D}"/usr/share/${PN}
+ mkdir "${D}"/usr/share/${PN}/etc
+ cp -r etc/xslt "${D}"/usr/share/${PN}/etc/
+
+ use doc && java-pkg_dojavadoc docs/api
+ use source && java-pkg_dosrc src/net
+}
+
+pkg_postinst() {
+ elog "Example rulesets can be found under"
+ elog "/usr/share/pmd/rulesets/"
+}
diff --git a/dev-util/premake/Manifest b/dev-util/premake/Manifest
new file mode 100644
index 000000000000..f63a47d8577f
--- /dev/null
+++ b/dev-util/premake/Manifest
@@ -0,0 +1,8 @@
+AUX archless.patch 1516 SHA256 3cdb0b10c70dddc467297510388001d7d1aa7ce9edb04adb0539cfed30aa85e3 SHA512 e74f895b24a7bb3da118aa694c35b2473994881ffa6e54ec5a0be450ab55374c0bb418b93fa84b5e30f46a04987c1cb75305463a1a181e458c750d38cafecd04 WHIRLPOOL 36488b8518b17fd82a40a9233cc699be55e67764ac8fd193bad34f29d3733294081419a400f46fd70221af160ed82ef36e890501199186363df408a109835185
+DIST premake-4.3-src.zip 514366 SHA256 36536490f8928d8ecde135da80cd8b751ea5bebe50cabba5c0de49cd41cb2780 SHA512 df3a4f1e04afb6ae9acf06c063b084a4bcc7c48a98eebeb242eafef40de4097c6a6fe549369d9538b93efea35244222b9d26c15824f126a67b8f80abaecdf001 WHIRLPOOL f39bb097379206818989b5076b2310ea26252f694382eaec1ed5b3785318dbdb0fbd3669094f2756979fbf67c771f080f76dd9418da3d8326f3e93b8e15957e4
+DIST premake-src-3.7.zip 427727 SHA256 b59841a519e75d5b6566848a2c5be2f91455bf0cc6ae4d688fcbd4c40db934d5 SHA512 351b26b9ee738e97b1828e7c26fe1538fb1509fbdc030da3d87fc28b1daa7966bc50ba8043062d35b37fa3929d909533b723241e1f98e438a039c6f9d61a46f4 WHIRLPOOL ddebaac25b0382620dba378ca8f3f3340cbe630cc081858cc94a6dc4d4a5a13c9e09706af5dc602e6886a0e3f720cc68515f38bc112fd82a389593a2b3514bf6
+EBUILD premake-3.7.ebuild 447 SHA256 4f6b375ade377d38bcafad045b7772a52db596837dc7372574e84c1088d35d49 SHA512 8e77f419f850b861e66e77ac0140fc0de4ead84b23d0abd82ab568d6e9dc06c6537eed6ea2b5db8b3a0b88f44f3b915009ae173f6165c53b56bbc5a0b384d1c8 WHIRLPOOL 8a66b4350a97717c0070b5ed0b9abea2657452bdb17978a8dd2b8d22b8767685fa55cf70d452a8f25896ce2535e6bdf01c9781cb0f681076397608cd3e217741
+EBUILD premake-4.3-r1.ebuild 542 SHA256 a960163959c9269ada0cb7bb6fe9e9cd4fd0e79759c74a68f5ba435809d1047a SHA512 5739291a774abf6b87331f1bad8a4e00d890367194b7254abe6a92e252908e6a5e8698519e3a27154cf8518aaab112797b90171c0db8938703760d79986c6d74 WHIRLPOOL 9be10bd6078d4ed10497ccb22a33aa2c921ca6a16a0ef4ef2ffa084bf0ed253d673191349920f5e6574f98f3c24540b7ef42c9ca74edcd3bc3ee9dfb4653b1d8
+MISC ChangeLog 2249 SHA256 45c8e07665f4e48dfe767d7d41d86771fcaf5bd12857d0471c5abc7145e738bb SHA512 c14868d4ad19e9019865ee6813a89391b3e47e814d0f0b0069955aa046356551d66927fc6751c42a906339d13bd987fe3e52d969edf8623bec2e7e4e974afe79 WHIRLPOOL f242be73048d001fcb0ac9c342d39c25397645b652fc89ee3b6ab964ec2036f63ff4d97fcff867d48c2ef3f680583be4c8d0d8d11f352f634fae87eb4fc816b0
+MISC ChangeLog-2015 2538 SHA256 8c0a65afece9ca096b30604d6582798e97d75a284aafecd6aaf858f2823f7f25 SHA512 23d398d12b1eb7fb387171197526fe8437a040cae6b1bf21a1841d8f81c2728b8df69d39e3916d0b701e79f23e11cf1bc9e1f90d9eace05899261a56140f2fc1 WHIRLPOOL d2ee4e55d421030a0f05a5b6a923ac659187672e79c59c93e0452551acec2d41c76c43b4a1c4f6b19680bbf97a26a4986eca7d5252dad4f93ca32d0f23aab369
+MISC metadata.xml 717 SHA256 d2a74bd72a99161220b1b036f42e56c2bb17b699e69e54a1a7b2dc84cb253e8f SHA512 416923483181ade601cee1fa8cdcf44d721dea0424adb0527419a5561a5ea9f48ee2fbd59b9b5fe120525b73faed68e9be288b70ae3c1c51b803c176843da1de WHIRLPOOL 3c2cd68f11a73f3f77957b1e6cda2cb9e540a3f6ffeb5f54f63b48762c5e3f6f2fb00d1724c252af50212911863ad81505fcd862c4ffe89d95f12faf4ed20fdb
diff --git a/dev-util/premake/files/archless.patch b/dev-util/premake/files/archless.patch
new file mode 100644
index 000000000000..68719bc3669c
--- /dev/null
+++ b/dev-util/premake/files/archless.patch
@@ -0,0 +1,36 @@
+diff -Naur premake-4.3.orig/build/gmake.unix/Premake4.make premake-4.3/build/gmake.unix/Premake4.make
+--- premake-4.3.orig/build/gmake.unix/Premake4.make 2010-11-16 06:29:14.000000000 -0500
++++ premake-4.3/build/gmake.unix/Premake4.make 2011-04-18 07:24:59.374986001 -0400
+@@ -26,13 +26,12 @@
+ DEFINES += -DNDEBUG -DLUA_USE_POSIX -DLUA_USE_DLOPEN
+ INCLUDES += -I../../src/host/lua-5.1.4/src
+ CPPFLAGS += -MMD -MP $(DEFINES) $(INCLUDES)
+- CFLAGS += $(CPPFLAGS) $(ARCH) -Wall -Os
+- CXXFLAGS += $(CFLAGS)
+- LDFLAGS += -s -rdynamic
++ CFLAGS += $(CPPFLAGS) -Wall
++ LDFLAGS += -rdynamic
+ LIBS += -lm -ldl
+ RESFLAGS += $(DEFINES) $(INCLUDES)
+ LDDEPS +=
+- LINKCMD = $(CC) -o $(TARGET) $(OBJECTS) $(LDFLAGS) $(RESOURCES) $(ARCH) $(LIBS)
++ LINKCMD = $(CC) -o $(TARGET) $(OBJECTS) $(LDFLAGS) $(RESOURCES) $(LIBS)
+ define PREBUILDCMDS
+ endef
+ define PRELINKCMDS
+@@ -48,13 +47,12 @@
+ DEFINES += -D_DEBUG -DLUA_USE_POSIX -DLUA_USE_DLOPEN
+ INCLUDES += -I../../src/host/lua-5.1.4/src
+ CPPFLAGS += -MMD -MP $(DEFINES) $(INCLUDES)
+- CFLAGS += $(CPPFLAGS) $(ARCH) -Wall -g
+- CXXFLAGS += $(CFLAGS)
++ CFLAGS += $(CPPFLAGS) -Wall -g
+ LDFLAGS += -rdynamic
+ LIBS += -lm -ldl
+ RESFLAGS += $(DEFINES) $(INCLUDES)
+ LDDEPS +=
+- LINKCMD = $(CC) -o $(TARGET) $(OBJECTS) $(LDFLAGS) $(RESOURCES) $(ARCH) $(LIBS)
++ LINKCMD = $(CC) -o $(TARGET) $(OBJECTS) $(LDFLAGS) $(RESOURCES) $(LIBS)
+ define PREBUILDCMDS
+ endef
+ define PRELINKCMDS
diff --git a/dev-util/premake/metadata.xml b/dev-util/premake/metadata.xml
new file mode 100644
index 000000000000..798594dcbe68
--- /dev/null
+++ b/dev-util/premake/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>titanofold@gentoo.org</email>
+ <name>Aaron W. Swenson</name>
+ </maintainer>
+ <longdescription lang="en">
+ Describe your software project just once, using Premake's simple and
+ easy to read syntax, and build it everywhere. Generate project files
+ for Visual Studio, GNU Make, Xcode, Code::Blocks, and more across
+ Windows, Mac OS X, and Linux. Use the full featured Lua scripting
+ engine to make build configuration tasks a breeze.
+ </longdescription>
+ <upstream>
+ <remote-id type="sourceforge">premake</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/premake/premake-3.7.ebuild b/dev-util/premake/premake-3.7.ebuild
new file mode 100644
index 000000000000..91026f3efad0
--- /dev/null
+++ b/dev-util/premake/premake-3.7.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit versionator
+
+DESCRIPTION="A makefile generation tool"
+HOMEPAGE="http://industriousone.com/premake"
+SRC_URI="mirror://sourceforge/${PN}/${PN}-src-${PV}.zip"
+
+LICENSE="GPL-2"
+SLOT=$(get_major_version)
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="app-arch/unzip"
+RDEPEND=""
+
+S=${WORKDIR}/${P/p/P}
+
+src_install() {
+ dobin bin/${PN}
+}
diff --git a/dev-util/premake/premake-4.3-r1.ebuild b/dev-util/premake/premake-4.3-r1.ebuild
new file mode 100644
index 000000000000..7aba60fc21ee
--- /dev/null
+++ b/dev-util/premake/premake-4.3-r1.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit versionator eutils
+
+DESCRIPTION="A makefile generation tool"
+HOMEPAGE="http://industriousone.com/premake"
+SRC_URI="mirror://sourceforge/premake/${P}-src.zip"
+
+LICENSE="BSD"
+SLOT=$(get_major_version)
+KEYWORDS="amd64 ppc x86"
+IUSE=""
+
+DEPEND="app-arch/unzip"
+RDEPEND=""
+
+src_prepare() {
+ epatch "${FILESDIR}/archless.patch"
+}
+
+src_compile() {
+ emake -C build/gmake.unix/
+}
+
+src_install() {
+ dobin bin/release/premake4
+}
diff --git a/dev-util/pretrace/Manifest b/dev-util/pretrace/Manifest
new file mode 100644
index 000000000000..3e469f637e66
--- /dev/null
+++ b/dev-util/pretrace/Manifest
@@ -0,0 +1,7 @@
+AUX pretrace-0.4--as-needed.diff 511 SHA256 4be6648667000e3cdc9e6df42ef520f4149571afa6592b3b8f5a60490b0351fd SHA512 f12393152ac127e2edc32e51ae185517d053e9022537f69b0ffb74a95ea86551375b70423e8d661f5bed2c252f035023262da66b128750eb8809dfb4a0e8e8b3 WHIRLPOOL 4c4fe7b95ef68da6c7c314250a142978dc5bcc59b04b0c5dc3ca221a5d1471899dfab8ac6f3f4e9ae079ebfe957f06ce43035f224d2a2ea37971bf67df20570a
+AUX pretrace-0.4-build.patch 315 SHA256 d54297e44ddd4ee67e83e8ac66766128b5c13038da0e31fca97b3dc7faf7188d SHA512 282315443239ea2baa12e125d84c6a768010d57a2a7a5050c887ecb9d20b2df1fdf4f7901d80746b809a008cc83af53f20172a8fedf7bef43b1e4ece13f13b5c WHIRLPOOL 1a694a5b7298faaa0b5b5c483db075d852a64dfd7571c796bc9737e33160948b1f59d368b333e7fa08250df95743040be4826afaddd68c2c51968c39b4322ff6
+DIST libpretrace-0.4.tar.gz 7370 SHA256 e215563c23c63ce23bbd544be7f0108bf862e2b24e9abeb27321720cc3b4c1a6 SHA512 64d1041ce398c73342ed371ebac4f656620c9ae4bc6da1b56b43bccd9898564a44dfe7bfaf3d4c865b89c5924b9d03aa21f393dcbafc185f84ac4b9ea2eb17d8 WHIRLPOOL 5dba777356049a4bc2621ad63f76e0ca9d5d8e55dc99392b5d7fdbedfbc79d931b8a88ca847b635267bb51b2c0ef5daa199116eee701592f2d04e51b3c123ded
+EBUILD pretrace-0.4.ebuild 780 SHA256 8d4867d34bf3c7a0a8adf453e47f6a754c224f66401737718348b5c70d094ded SHA512 8a9b5bdb09f39f3a6ade03a98fda6280c6dff4f228e7f82ff218c8d5d1d52c5a20e4a69d04c5891c7692cdd7b097735911173f135671f2d8d4fbb8cbddeae8d9 WHIRLPOOL f11801e363213cbfb35d31d968134bbd167d8f6edb44760f00808d93d03d66b76d25c9709954d2d22eb1f7fd150949b632723f5730c99e932207defe7464d887
+MISC ChangeLog 2777 SHA256 f36a11a99b1a497a183f8b99ae026bcd2a3389b9165384809e7940836bac8a97 SHA512 ff4bb0f1d39ff264ab94fd37462ec5d39060457a45071cc1bcec8349209bfb80d3c8e3560999782b98aca45d091f7bacdabd2f622e7b17e3fe7af8a2f1156c28 WHIRLPOOL c5044fb9fe868b382b1eb3dc2e4a77eb1b7b22a20e9e3d30d22ee4a164a19161765f990877f3dd7afe3151f5f5bab8bc2d2e24fbc6136e2831acf7e51dde2bfc
+MISC ChangeLog-2015 2028 SHA256 85e3ff223525e599f6ad0bd1a119b706eb8a5df4defdf80fdda7997e19cf1588 SHA512 15c286d2c27b271884819c6a5d6cef4565d9f4732a8a8a974f6696c7d3d9d561a19e94fbd8b93fbc6203939e4c475d48bedd7ab039f5f8a22fc62989bc2c7f21 WHIRLPOOL ddb74864f49227dd4ac6ecb225702afaf50326d2a84f5fd1374378ad1a895de8f53ab997455e0b5688358acf1f6107330bd84cc77bc0c64f8ca6046aef53c1e8
+MISC metadata.xml 256 SHA256 d30e6c3b8417bdf0cf4cef8310cd1a81e600e643707e9c215a3e27db61c1d954 SHA512 eb8e446afc52f5f079733bdaf0db316e97194ba08e3b1370a287db29ea0bd7974bb237dfc67ff22a115538ec830b632b98390a8e59ace9634a89dfa9c02037b5 WHIRLPOOL 54aca0ae35c2e8ac1797106908b50f31eb7ab9783df8dc1749304b2f0ca553f8fcd109b5c689715e44b0c6b7a81fbb256686e80cf432688259ae38e8ed018c79
diff --git a/dev-util/pretrace/files/pretrace-0.4--as-needed.diff b/dev-util/pretrace/files/pretrace-0.4--as-needed.diff
new file mode 100644
index 000000000000..19b66ed40c09
--- /dev/null
+++ b/dev-util/pretrace/files/pretrace-0.4--as-needed.diff
@@ -0,0 +1,12 @@
+diff -uNr libpretrace-0.4/Makefile libpretrace-0.4.new/Makefile
+--- libpretrace-0.4/Makefile 2005-12-15 12:50:06.000000000 +0000
++++ libpretrace-0.4.new/Makefile 2006-04-01 23:53:00.000000000 +0100
+@@ -14,7 +14,7 @@
+ @echo 'type `make install` to install to $(PREFIX)'
+
+ ptgenmap: libpretrace.so ptgenmap.o
+- $(CC) $(CFLAGS) $(LDFLAGS) -g -L. -lpretrace ptgenmap.o -o ptgenmap
++ $(CC) $(CFLAGS) $(LDFLAGS) -g -L. ptgenmap.o -lpretrace -o ptgenmap
+
+ ptgenmap.o:
+ $(CC) $(CFLAGS) -Wall -g -fPIC -c ptgenmap.c
diff --git a/dev-util/pretrace/files/pretrace-0.4-build.patch b/dev-util/pretrace/files/pretrace-0.4-build.patch
new file mode 100644
index 000000000000..4d7056fa83f7
--- /dev/null
+++ b/dev-util/pretrace/files/pretrace-0.4-build.patch
@@ -0,0 +1,15 @@
+fix building with newer glibc
+
+http://bugs.gentoo.org/227923
+
+--- pretrace.h
++++ pretrace.h
+@@ -20,3 +20,8 @@
+ #include <sys/time.h>
+ # define RANDOMIZE(x) { struct timeval tv; gettimeofday(&tv, NULL); x = tv.tv_usec; }
+ #endif
++
++#include <unistd.h>
++#ifndef ARG_MAX
++# define ARG_MAX sysconf(_SC_ARG_MAX)
++#endif
diff --git a/dev-util/pretrace/metadata.xml b/dev-util/pretrace/metadata.xml
new file mode 100644
index 000000000000..b4a27e94fc24
--- /dev/null
+++ b/dev-util/pretrace/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>bircoph@gentoo.org</email>
+ <name>Andrew Savchenko</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-util/pretrace/pretrace-0.4.ebuild b/dev-util/pretrace/pretrace-0.4.ebuild
new file mode 100644
index 000000000000..00fe92568f87
--- /dev/null
+++ b/dev-util/pretrace/pretrace-0.4.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils multilib
+
+DESCRIPTION="start dynamically linked applications under debugging environment"
+HOMEPAGE="http://dev.inversepath.com/trac/pretrace"
+SRC_URI="http://dev.inversepath.com/pretrace/libpretrace-${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+S="${WORKDIR}/lib${P}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}--as-needed.diff
+ epatch "${FILESDIR}"/${P}-build.patch #227923
+}
+
+src_install() {
+ dodir /usr/bin /usr/share/man/man{3,8}
+ einstall LIBDIR="${D}/usr/$(get_libdir)" PREFIX="${D}/usr" || die
+ prepalldocs
+}
+
+pkg_postinst() {
+ elog "remember to execute ptgenmap after modifying pretrace.conf"
+}
diff --git a/dev-util/promu/Manifest b/dev-util/promu/Manifest
new file mode 100644
index 000000000000..732b7a99f84c
--- /dev/null
+++ b/dev-util/promu/Manifest
@@ -0,0 +1,4 @@
+DIST promu-0.1.0.tar.gz 1065003 SHA256 043c4149bc85e4d51a93390cdb4fee6871d93123ced5c2d3d4f78a2265167bbc SHA512 18ad54b1ec9fe8975a0048b5c85609858cd500a2d3aa34e51e5c2c3d07a0df4337bac9648562e2007d5c8572e07c814c6bba7522b94836c258cde457df5815e2 WHIRLPOOL 3717496ee2296bfa27baf47d601f3bb5eaa4e4e27c3ebd7fd71979ae9e29d833f04065a16add9b2410fb4cff040d98a51e9d628ba316ab8cb488eda2ef4f7b15
+EBUILD promu-0.1.0.ebuild 853 SHA256 62d2df20ff7ee2736e8c6e0cd57d08909acf15e0c4146d125f9e2f05696ada24 SHA512 3fe36dce670c3f49888edf59ab8629fc2e2f8d8cd3ed1a9eaf3dda3801c889d97b573cc0078b17fa9359d21960a0f5bfca08454f0b15441a53b14bef47e1616f WHIRLPOOL 6c597cf2ac412b8d163fe085a6abed740a6c98b614b5aa8e8888055fc912bc9be0e7028155b3eb55d41800863e580d911550e0563274b3890a116c505d96f9a4
+MISC ChangeLog 336 SHA256 76e511d7d1c57337dd5267f808eabaa2404586af47c60b669149f3fa537157a3 SHA512 92749443b98120a227c119bcc5f2062670974f29b1712ea7bb2ab7df019369673eb1db2ea1993b73eaecd87dc843a28a15b9b2522dbe91fea02e1352ba2d61aa WHIRLPOOL 2648285a1fa4b5da3913efd935195c32a1e1b65a8598e74ed28b67f716235bb8fa112fc9d85ecbd5784aea34dc04f3d1d5c2422088ace8c919d76386ba5b90d5
+MISC metadata.xml 326 SHA256 5dbb55e07c5fb7ac57941fc6df1f1b26448104f4acab549b744a9d17e2adea87 SHA512 2870183c141e5d9ec65aba01e7ab02443f42d13d0f39c4ba51af7adacabdf360cb2308cb898c4bf4f0a8c3e20b35d511af2b978fafcb4de47177de77819f6853 WHIRLPOOL 51b7fef293e4f4b7e6aba9574d917eaa80c20553599482570eb0b3e0f97888ea00b65a9ffef75cb81e27708153ab627ef2f3b1d40c2f23766dab98460e532f78
diff --git a/dev-util/promu/metadata.xml b/dev-util/promu/metadata.xml
new file mode 100644
index 000000000000..547d58abc6fd
--- /dev/null
+++ b/dev-util/promu/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>mrueg@gentoo.org</email>
+ <name>Manuel Rüger</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">prometheus/promu</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/promu/promu-0.1.0.ebuild b/dev-util/promu/promu-0.1.0.ebuild
new file mode 100644
index 000000000000..6cefcabc0a9c
--- /dev/null
+++ b/dev-util/promu/promu-0.1.0.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit golang-build golang-vcs-snapshot
+
+EGO_PN="github.com/prometheus/promu"
+EGIT_COMMIT="5e82f2f"
+SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+KEYWORDS="~amd64"
+
+DESCRIPTION="Prometheus Utility Tool"
+HOMEPAGE="https://github.com/prometheus/promu"
+LICENSE="Apache-2.0"
+SLOT="0"
+IUSE=""
+
+src_compile() {
+ LDFLAGS="-X github.com/prometheus/vendor/github.com/prometheus/common/version.Version=$(cat src/${EGO_PN}/VERSION)
+ -X github.com/prometheus/vendor/github.com/prometheus/common/version.Revision=${EGIT_COMMIT}
+ -extldflags \"-static\""
+ GOPATH="${S}" go build -ldflags "${LDFLAGS}" -o bin/promu src/${EGO_PN}/main.go || die
+}
+
+src_install() {
+ dobin bin/*
+ dodoc -r src/${EGO_PN}/{doc,{README,CONTRIBUTING}.md}
+}
diff --git a/dev-util/pscan/Manifest b/dev-util/pscan/Manifest
new file mode 100644
index 000000000000..cd07c76fd60c
--- /dev/null
+++ b/dev-util/pscan/Manifest
@@ -0,0 +1,5 @@
+DIST pscan.tar.gz 14555 SHA256 0f3a9f5b91ddba5363d77734a717f541260b2154c964b9ce63511b3ff50272ee SHA512 83196cc9c450217fc2287d38fd1a0b9d1d9951b8f6328b6b9f7f50b680f653b099af04d4c448f3cb2b2a96871eec8772557851e887faa2f41dc259f01c031e78 WHIRLPOOL b5fe4022dd1234ab6b976ee3984114e50080ceec0f8b5cff539824c6b9f00ee83c5b7ebfb75e685d14efe655a0c4ac464fc80cfb485a10e7225c19c5bbdef52a
+EBUILD pscan-20000721-r1.ebuild 835 SHA256 788211799b9ec48056a367b62c2282967ba1e99e9d92314ab8a3f5d982b7a937 SHA512 6635cd4ec65923934ccc3a6dba675a1ba628237e8c2af62d26a4ed35cb7147fa8e1b869742c6d8615d392e35ddd8509467337610e379c9a6ff3deb6060f2cf80 WHIRLPOOL 4dc6023fde49f50938f367db7e96cc667e9fa888fc227e9ca4cdf59bf63abb65a774e89decdcfa1819f01c973d3c205f76848190f00426bd60351148761308c2
+MISC ChangeLog 2182 SHA256 2b3689162302a7b099a63f7ad94e0f8d8d977a7397c504ddeddf4270870beef9 SHA512 9a4411c1272790edf3ca6e4f9d9237c21b6709957d8ca4accb1733f3ae999218bccb4bb469275dcfceec3248b56e22507d4d03d858f7069979acff609b9f2c86 WHIRLPOOL 186dd6239b795d6319c4ac0a46ea7a622c1a611e91d303426e0921a3b491d17ab4cf60bd09da47c3fd9d638b145ab7810b78447fea32187e7f17aa2b49474126
+MISC ChangeLog-2015 1818 SHA256 d7bf848bab5e0bb23f96b2769569efca0efa17f29c4ae088eec59c17c7f0efca SHA512 02c14e01779d4fddf92d0d0abef8b86ff5d369e95e924369886c4abcd92824defbf923ff02beb50e5dd7edf242663a659a6981bae893e0107399fbb73e96c9e6 WHIRLPOOL 973fc66db393932557bb30d5a26670e5a40a553841ea1c6e3853dc7ef9e7b6dea6d1c91536b48646bf0be1bf630e39a068b85beb66db91136589ba26148fe6fc
+MISC metadata.xml 216 SHA256 f7475919f28a8a93ec8bd025c8f8bbab918f66d0d1737420c876f0480308fe6a SHA512 e881b59fe49746eb25ad66c258b41aba501e4eb563129093a3898ea970a20506e7898f7c355cfcf99605234962bf2c77c1309c258b9a2b84ee4302ccb71c9dbd WHIRLPOOL 163285b60aa93e00993af659dc1e29a9eb245bd3415dd5ec75b284250596165f469028102b72fa0c344834443a44c1bbcf6272fe6a3f5211f721fc96e1c6ec16
diff --git a/dev-util/pscan/metadata.xml b/dev-util/pscan/metadata.xml
new file mode 100644
index 000000000000..79d462e85571
--- /dev/null
+++ b/dev-util/pscan/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+ <email>robbat2@gentoo.org</email>
+</maintainer>
+</pkgmetadata>
diff --git a/dev-util/pscan/pscan-20000721-r1.ebuild b/dev-util/pscan/pscan-20000721-r1.ebuild
new file mode 100644
index 000000000000..77fec34a5bd4
--- /dev/null
+++ b/dev-util/pscan/pscan-20000721-r1.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit toolchain-funcs
+
+DESCRIPTION="A limited problem scanner for C source files"
+HOMEPAGE="http://www.striker.ottawa.on.ca/~aland/pscan/"
+# I wish upstream would version their files, even if it's only with a date
+SRC_URI="http://www.striker.ottawa.on.ca/~aland/pscan/pscan.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
+IUSE=""
+
+# Does NOT contain a testsuite, but does contain a test.c that confuses src_test
+RESTRICT="test"
+
+RDEPEND=""
+DEPEND="${RDEPEND}
+ sys-devel/flex"
+
+S="${WORKDIR}/${PN}"
+
+src_compile() {
+ emake CC="$(tc-getCC) ${CFLAGS}" || die
+}
+
+src_install() {
+ newbin pscan printf-scan || die
+ dodoc README find_formats.sh test.c wu-ftpd.pscan || die
+}
diff --git a/dev-util/pycharm-community/Manifest b/dev-util/pycharm-community/Manifest
new file mode 100644
index 000000000000..86a9a4b5588b
--- /dev/null
+++ b/dev-util/pycharm-community/Manifest
@@ -0,0 +1,12 @@
+AUX README.gentoo 169 SHA256 3bcfb4f4909ec42cbaba2645b5c88d111f47b7d5e800a8aeadf3130091fd8bab SHA512 a0254552b98b6ec8dadd91ed7df35bf990d08025d8352366f58ecabe94cdde2df64d8665447d0a2ffc1edacdeb05124c2a82722d5ad70b614d90bb0ae38544d2 WHIRLPOOL f0de5cc2a1955e210655ee10d305bcfaf6a4a7b6dba46e17eece981d50bb461e9bd5bde772462a5849ebf59e54357bcfe42a5322c614bc75c1f96202654aa605
+DIST pycharm-community-2016.3.2.tar.gz 215633678 SHA256 e1092d3692118f9097e4182edfccc76159160353b7d7379cada3249b9e2d4f39 SHA512 64f8fd908c2165e4534f77596e6f9a86e72a04390432a0c1206d8a5cfde8a54067d5747a6f1f2a5ba5bb168e311d5f432939c87a15f871330ce2c2e42c9bfc8a WHIRLPOOL 92320d3f96b76148bba1e0ead93578cde6890119fa963e1390b7da2ea570d4b99e6bebdffe6167e283d534073b06cd063c2d9e70c0100436afc6b6d0fd264eda
+DIST pycharm-community-2017.1.5.tar.gz 195342869 SHA256 1a0bbf0d881527e08aad7a5adaa3ad44e8754c3eb2c3a8ed5ab113491549679b SHA512 1eac6062a1b92782e50425e053ec326965eaff6bf36ec3cf6d4e9fcdc1fe1a8baaf4d16131a38fc506c55c384943aaea51cf5f4c9d8d2e36080b7342ef1af21c WHIRLPOOL 1a655bcaa78b4a6607601229455e822cc56341c70132363a57cb9f6597f9f31ce007426a70284467cfe2c1a082972883746957e67dc678b5d379956f46a6c3cf
+DIST pycharm-community-2017.2.1.tar.gz 200410040 SHA256 4a7e5ab8c89be6ac3b6da649003260d1ed86b1dd41b7e9aa1d3873cacd7d6bd1 SHA512 734cbe66b38970a6f0c7e14d25f73143074d75034f6a29907c33998c3f83142f18f0016350916577db4497356594f144c7499f73c6a2e53e80374b3bf387f4f3 WHIRLPOOL 7dc075e2ce63dabb5eaca9a2b390d5930330ad39964b0d9e3d6ab935c141c1627696fd8f72bc862c3e684c9a454f9e3c21dd630673f01ff0909dd4c0cf01a3c8
+DIST pycharm-community-2017.2.3.tar.gz 200478376 SHA256 e8562938c2ede32a1c1036391942190144cd9f0927bd49b6b3ddf5f7a01c33aa SHA512 502b056f15367c0aaed2a2b001b218f2f7e48d65b313d7560f3b77a0337a2502628ee502cb730eb2f8c6c853460988760e10601b98d43936603afa80beb1065e WHIRLPOOL 4096a3afcf86ae17e8021783c55264625e80a87034eaf6b0612fd622f88d52d24d7c27388be0c7f9a78b21333762fcf0531bd8f17b5cd4b2849cee5298d2f831
+EBUILD pycharm-community-2016.3.2-r1.ebuild 931 SHA256 43e97e1cd0c1a43d81d46ad6671add25dd6292a776ef2b1fc4b1e5f89c8bc6a2 SHA512 a5a79043917ac8fd8fcf3e55d52d3e22707473dd044393a99d90cd00636c5fc4c3dc4125a9c89fa3b71a1c73877e8ce7549ebaaef17c456a14c7c8a16d6009a7 WHIRLPOOL 0e67c42a09bd83180e38acfd58b99677421a616a68fde7867d661b756030bb6697ce04b6d8d8568752eba21e2739ae2c79f95125e62a507984812f02f7c71cbc
+EBUILD pycharm-community-2017.1.5.ebuild 938 SHA256 0eac4ab4d2e3ae841ccf5cb1af524ce2a3d747507ed607cd6e5b66a252216413 SHA512 7240f33cacfcd6420f986cc5b4218fa1bdc881cbb5dacdab7aab8ae1b643dac21ff5edd59a7043f21fcf113105ee485f170fd85cc61e51055e3abc08c748f332 WHIRLPOOL d0dd7d47dba42bff534fc27892c947ba93fde286511f5eeb1811fdd50b913e9aaa43d0d3f4e728896ecf6dbbfb69aa2aaa46c336786add6b0028f162b025c582
+EBUILD pycharm-community-2017.2.1.ebuild 938 SHA256 0eac4ab4d2e3ae841ccf5cb1af524ce2a3d747507ed607cd6e5b66a252216413 SHA512 7240f33cacfcd6420f986cc5b4218fa1bdc881cbb5dacdab7aab8ae1b643dac21ff5edd59a7043f21fcf113105ee485f170fd85cc61e51055e3abc08c748f332 WHIRLPOOL d0dd7d47dba42bff534fc27892c947ba93fde286511f5eeb1811fdd50b913e9aaa43d0d3f4e728896ecf6dbbfb69aa2aaa46c336786add6b0028f162b025c582
+EBUILD pycharm-community-2017.2.3.ebuild 938 SHA256 0eac4ab4d2e3ae841ccf5cb1af524ce2a3d747507ed607cd6e5b66a252216413 SHA512 7240f33cacfcd6420f986cc5b4218fa1bdc881cbb5dacdab7aab8ae1b643dac21ff5edd59a7043f21fcf113105ee485f170fd85cc61e51055e3abc08c748f332 WHIRLPOOL d0dd7d47dba42bff534fc27892c947ba93fde286511f5eeb1811fdd50b913e9aaa43d0d3f4e728896ecf6dbbfb69aa2aaa46c336786add6b0028f162b025c582
+MISC ChangeLog 6592 SHA256 97dc91aad9390c028dca7ed85d68e19fd8260ba0a0c558db9ff662a9e6cf86a4 SHA512 bbb9dd6c1f8f6d9d14c4d38e5599ecc747a176b5566b3f6950c441693415b87d60d1dbf26f515c0c023046868405ce5310daca35271a1fcc42b74803a289fe69 WHIRLPOOL fc728869fa849eeb92e0f62195895f059c3db2cbcc52fd20746303baabbd1f294a44dfa9f90a2c17fd09b42132c5ebed6b1a61151d92a944f71e7dfc56a20998
+MISC ChangeLog-2015 1510 SHA256 75d1e0701206066a4da5eaf713561b637bd4fb03003a7d2a544b24224ff04ce3 SHA512 58f11b893302578a4badcfdd4885f7adaa73aa5fedca4edd9e102049b9ce1ab2e4f1be1565a7c3f2f96be1bfe7a4833388caf7fbf2ad56417748d87905779295 WHIRLPOOL 298fd47601c7d4869cf77cad31f484639c78c589f6b8a127e714ab8cae1bfaa72bd596ba6c738e6e38779dfa4e3265b7f641b6f545657e03620d7f223b68eaa3
+MISC metadata.xml 237 SHA256 ffb571839c57797d282263369646d2bba2662601a45f7bb3251bb97f716554a6 SHA512 ae2360aa6b1b00c67e0acea4935c02b64585b9a15e126fec9d5d99637021c542c0a495e5116205f3da287def46fa5b19cb1a7f3042c12c5f7a78d66d92fcb03f WHIRLPOOL 60d6da846c983457e038ea5ba3c0bf48f939c9586610985a14cac9772fd1d45d781a643abc16482f232f3028e44fe99fe1a382deaebf6589602fc244a4460e3f
diff --git a/dev-util/pycharm-community/files/README.gentoo b/dev-util/pycharm-community/files/README.gentoo
new file mode 100644
index 000000000000..2164d9e03ff7
--- /dev/null
+++ b/dev-util/pycharm-community/files/README.gentoo
@@ -0,0 +1,5 @@
+According to JetBrains, PyCharm has performance and
+graphics issues with OpenJDK Java.
+
+Please consider using Oracle JDK.
+Especially before reporting problems upstream.
diff --git a/dev-util/pycharm-community/metadata.xml b/dev-util/pycharm-community/metadata.xml
new file mode 100644
index 000000000000..a535b8852829
--- /dev/null
+++ b/dev-util/pycharm-community/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>xmw@gentoo.org</email>
+<name>Michael Weber</name>
+</maintainer>
+</pkgmetadata>
diff --git a/dev-util/pycharm-community/pycharm-community-2016.3.2-r1.ebuild b/dev-util/pycharm-community/pycharm-community-2016.3.2-r1.ebuild
new file mode 100644
index 000000000000..2b1fc89caea1
--- /dev/null
+++ b/dev-util/pycharm-community/pycharm-community-2016.3.2-r1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils readme.gentoo-r1
+
+DESCRIPTION="Intelligent Python IDE with unique code assistance and analysis"
+HOMEPAGE="http://www.jetbrains.com/pycharm/"
+SRC_URI="http://download.jetbrains.com/python/${P}.tar.gz"
+
+LICENSE="Apache-2.0 BSD CDDL MIT-with-advertising"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND=">=virtual/jre-1.8"
+DEPEND=""
+
+RESTRICT="mirror strip"
+
+QA_PREBUILT="opt/${PN}/bin/fsnotifier
+ opt/${PN}/bin/fsnotifier64
+ opt/${PN}/bin/fsnotifier-arm"
+
+MY_PN=${PN/-community/}
+
+src_prepare() {
+ default
+
+ rm -rf jre || die
+}
+
+src_install() {
+ insinto /opt/${PN}
+ doins -r *
+
+ fperms a+x /opt/${PN}/bin/{pycharm.sh,fsnotifier{,64},inspect.sh}
+
+ dosym /opt/${PN}/bin/pycharm.sh /usr/bin/${PN}
+ newicon "bin/${MY_PN}.png" ${PN}.png
+ make_desktop_entry ${PN} "${PN}" "${PN}"
+
+ readme.gentoo_create_doc
+}
diff --git a/dev-util/pycharm-community/pycharm-community-2017.1.5.ebuild b/dev-util/pycharm-community/pycharm-community-2017.1.5.ebuild
new file mode 100644
index 000000000000..6bcb19218d4c
--- /dev/null
+++ b/dev-util/pycharm-community/pycharm-community-2017.1.5.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils readme.gentoo-r1
+
+DESCRIPTION="Intelligent Python IDE with unique code assistance and analysis"
+HOMEPAGE="http://www.jetbrains.com/pycharm/"
+SRC_URI="http://download.jetbrains.com/python/${P}.tar.gz"
+
+LICENSE="Apache-2.0 BSD CDDL MIT-with-advertising"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=">=virtual/jre-1.8"
+DEPEND=""
+
+RESTRICT="mirror strip"
+
+QA_PREBUILT="opt/${PN}/bin/fsnotifier
+ opt/${PN}/bin/fsnotifier64
+ opt/${PN}/bin/fsnotifier-arm"
+
+MY_PN=${PN/-community/}
+
+src_prepare() {
+ default
+
+ rm -rf jre || die
+}
+
+src_install() {
+ insinto /opt/${PN}
+ doins -r *
+
+ fperms a+x /opt/${PN}/bin/{pycharm.sh,fsnotifier{,64},inspect.sh}
+
+ dosym ../../opt/${PN}/bin/pycharm.sh /usr/bin/${PN}
+ newicon "bin/${MY_PN}.png" ${PN}.png
+ make_desktop_entry ${PN} "${PN}" "${PN}"
+
+ readme.gentoo_create_doc
+}
diff --git a/dev-util/pycharm-community/pycharm-community-2017.2.1.ebuild b/dev-util/pycharm-community/pycharm-community-2017.2.1.ebuild
new file mode 100644
index 000000000000..6bcb19218d4c
--- /dev/null
+++ b/dev-util/pycharm-community/pycharm-community-2017.2.1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils readme.gentoo-r1
+
+DESCRIPTION="Intelligent Python IDE with unique code assistance and analysis"
+HOMEPAGE="http://www.jetbrains.com/pycharm/"
+SRC_URI="http://download.jetbrains.com/python/${P}.tar.gz"
+
+LICENSE="Apache-2.0 BSD CDDL MIT-with-advertising"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=">=virtual/jre-1.8"
+DEPEND=""
+
+RESTRICT="mirror strip"
+
+QA_PREBUILT="opt/${PN}/bin/fsnotifier
+ opt/${PN}/bin/fsnotifier64
+ opt/${PN}/bin/fsnotifier-arm"
+
+MY_PN=${PN/-community/}
+
+src_prepare() {
+ default
+
+ rm -rf jre || die
+}
+
+src_install() {
+ insinto /opt/${PN}
+ doins -r *
+
+ fperms a+x /opt/${PN}/bin/{pycharm.sh,fsnotifier{,64},inspect.sh}
+
+ dosym ../../opt/${PN}/bin/pycharm.sh /usr/bin/${PN}
+ newicon "bin/${MY_PN}.png" ${PN}.png
+ make_desktop_entry ${PN} "${PN}" "${PN}"
+
+ readme.gentoo_create_doc
+}
diff --git a/dev-util/pycharm-community/pycharm-community-2017.2.3.ebuild b/dev-util/pycharm-community/pycharm-community-2017.2.3.ebuild
new file mode 100644
index 000000000000..6bcb19218d4c
--- /dev/null
+++ b/dev-util/pycharm-community/pycharm-community-2017.2.3.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils readme.gentoo-r1
+
+DESCRIPTION="Intelligent Python IDE with unique code assistance and analysis"
+HOMEPAGE="http://www.jetbrains.com/pycharm/"
+SRC_URI="http://download.jetbrains.com/python/${P}.tar.gz"
+
+LICENSE="Apache-2.0 BSD CDDL MIT-with-advertising"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=">=virtual/jre-1.8"
+DEPEND=""
+
+RESTRICT="mirror strip"
+
+QA_PREBUILT="opt/${PN}/bin/fsnotifier
+ opt/${PN}/bin/fsnotifier64
+ opt/${PN}/bin/fsnotifier-arm"
+
+MY_PN=${PN/-community/}
+
+src_prepare() {
+ default
+
+ rm -rf jre || die
+}
+
+src_install() {
+ insinto /opt/${PN}
+ doins -r *
+
+ fperms a+x /opt/${PN}/bin/{pycharm.sh,fsnotifier{,64},inspect.sh}
+
+ dosym ../../opt/${PN}/bin/pycharm.sh /usr/bin/${PN}
+ newicon "bin/${MY_PN}.png" ${PN}.png
+ make_desktop_entry ${PN} "${PN}" "${PN}"
+
+ readme.gentoo_create_doc
+}
diff --git a/dev-util/pycharm-professional/Manifest b/dev-util/pycharm-professional/Manifest
new file mode 100644
index 000000000000..3422252e47eb
--- /dev/null
+++ b/dev-util/pycharm-professional/Manifest
@@ -0,0 +1,10 @@
+AUX README.gentoo 169 SHA256 3bcfb4f4909ec42cbaba2645b5c88d111f47b7d5e800a8aeadf3130091fd8bab SHA512 a0254552b98b6ec8dadd91ed7df35bf990d08025d8352366f58ecabe94cdde2df64d8665447d0a2ffc1edacdeb05124c2a82722d5ad70b614d90bb0ae38544d2 WHIRLPOOL f0de5cc2a1955e210655ee10d305bcfaf6a4a7b6dba46e17eece981d50bb461e9bd5bde772462a5849ebf59e54357bcfe42a5322c614bc75c1f96202654aa605
+DIST pycharm-professional-2016.3.2.tar.gz 283150795 SHA256 c36413a56a8a1d046c84a2c32bab8aaba132551305a5db0845a6c7ed1dc0d4db SHA512 a189ae38a70874709b0e0243dc6a1dd14aa2b5199e8cf33a0f8c85dd0606e35ddb9d0f954ec9252da7a098cbe184bfa6bf69e43b7c8475c5c3776312f89395f7 WHIRLPOOL d8350fb6d1b4712f0082bca41b9ecf2f190bc5c95a72677efc9321abe7a9f5687c05f3554c7e7022e18e7d747f1a628acde8738012eb7e354d1801e374acbc53
+DIST pycharm-professional-2017.1.5.tar.gz 269726667 SHA256 52519dfd0e913b5ccb8767155cd4d1fd413967d5010e8474cdc9a1fa688016ce SHA512 5ba5c2893587afef3b2a5f0b7a5d4395665fd8e75764f9d8c7e1c41170af0c0457f0f27953adceb74a24c8f2260cabc65ba54918bdd38271e1aba014a5428bc8 WHIRLPOOL 0eaee27ef5ed2b3a4a2c5da3211aeed596d15de928c6a4c8a80abfaa03383e167d40e2633900f26e9795720692242a1f12afd880912e57f8b83fa378ffbd85fa
+DIST pycharm-professional-2017.2.3.tar.gz 273776254 SHA256 3e6f1cd48c08363353b2d2777a581cb60bebd6c538b325767c11d02395376945 SHA512 1233b4b272017856e90125e3439f1057f22852749d101532e1b57d51c382d017fa15442307120d49a77a150c863e33fa53e799f2c77ff6d56312381a82fd51fd WHIRLPOOL 52336480fc7dee194ba707adf529814d040519d8a6433ea381a37592adfab765c4f8533360d39d97d7ed169b1255ce2a225a4430f875eb86fdefb8306b83314d
+EBUILD pycharm-professional-2016.3.2.ebuild 1092 SHA256 9b9fc76b1e93f53ebdc1f471aa78c0f7d527823ed813624fe441ac26a05d213d SHA512 3338054b9cedc55f4b79a39e672857265e703106ef6a6d28f7beaf3e92d9ecf8fdb79b44057c2faf32bb789c448f718111c17b1d0b69a977c712748238c2a09c WHIRLPOOL b2367fd7f2cd2904aa0a29a5bf33419548d3ea2e2824016e4f94648eaf3a03c1843334e7743efe71474ea6c49561b07dbf65ad07c4bf1cda968ada427743bd3e
+EBUILD pycharm-professional-2017.1.5.ebuild 1099 SHA256 11781ef83227bb7d0b78f05dcfa122689405ca6cc2f71bd15d30fc98ab3ee482 SHA512 260a5662d26f25eafd8d74231de60447f4adcc3b066eb7f316ef94485a061afb8f890ef078a540a1b02bfcab1b74a7cbdf05db3087d15ef0c77faaa7acefb4f0 WHIRLPOOL 13d1ffdaf3742c714726aa069733e4b00b4dd79a6837582051c29cdf6078f9180b5d3029b3ef1f19bea34b4301428847daa87d3c8253a0413e7bac1d013079f3
+EBUILD pycharm-professional-2017.2.3.ebuild 1099 SHA256 11781ef83227bb7d0b78f05dcfa122689405ca6cc2f71bd15d30fc98ab3ee482 SHA512 260a5662d26f25eafd8d74231de60447f4adcc3b066eb7f316ef94485a061afb8f890ef078a540a1b02bfcab1b74a7cbdf05db3087d15ef0c77faaa7acefb4f0 WHIRLPOOL 13d1ffdaf3742c714726aa069733e4b00b4dd79a6837582051c29cdf6078f9180b5d3029b3ef1f19bea34b4301428847daa87d3c8253a0413e7bac1d013079f3
+MISC ChangeLog 7894 SHA256 052b012bfa99313705176597f626f50b4450f68d0255291e612c01583508f239 SHA512 49a79a3879c528d99039c7ddf59c7a0a12943cb0604141ec234e5fb3e258a757ccef3b73a3ba63bef3384ee267eac6ecf82971e8071c5af8fac4c247f77fc185 WHIRLPOOL 17a00c6aff24f67c62df3a9192e98b50bf3deb5ec1fde1992b979d8bc2111dd8ba0f2e31926ac48eba5c867a0e187673cf39541e96fa8cda97255b896b46f57a
+MISC ChangeLog-2015 1543 SHA256 34d9ff265cf5674128d7c7fef5d0f0baebed31949e98a1783e7f98622607faec SHA512 d6fc92af3d20b9028bf57c581a8275ffb0b3d3a55bb070b4f6301ab851007159430d2e6a41016c7c38240457a90a6be34888d9c1672be5921ac0ffe2808d5b8a WHIRLPOOL 019b03f1564f4f2f90f57b112028370d4420f7c1a5d0d911ede5d1c98edcdb10bdcdc346c3c63715982b9f9f8f6cd0dcd61ad9cf86aa67745173b01e151613c4
+MISC metadata.xml 237 SHA256 ffb571839c57797d282263369646d2bba2662601a45f7bb3251bb97f716554a6 SHA512 ae2360aa6b1b00c67e0acea4935c02b64585b9a15e126fec9d5d99637021c542c0a495e5116205f3da287def46fa5b19cb1a7f3042c12c5f7a78d66d92fcb03f WHIRLPOOL 60d6da846c983457e038ea5ba3c0bf48f939c9586610985a14cac9772fd1d45d781a643abc16482f232f3028e44fe99fe1a382deaebf6589602fc244a4460e3f
diff --git a/dev-util/pycharm-professional/files/README.gentoo b/dev-util/pycharm-professional/files/README.gentoo
new file mode 100644
index 000000000000..2164d9e03ff7
--- /dev/null
+++ b/dev-util/pycharm-professional/files/README.gentoo
@@ -0,0 +1,5 @@
+According to JetBrains, PyCharm has performance and
+graphics issues with OpenJDK Java.
+
+Please consider using Oracle JDK.
+Especially before reporting problems upstream.
diff --git a/dev-util/pycharm-professional/metadata.xml b/dev-util/pycharm-professional/metadata.xml
new file mode 100644
index 000000000000..a535b8852829
--- /dev/null
+++ b/dev-util/pycharm-professional/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>xmw@gentoo.org</email>
+<name>Michael Weber</name>
+</maintainer>
+</pkgmetadata>
diff --git a/dev-util/pycharm-professional/pycharm-professional-2016.3.2.ebuild b/dev-util/pycharm-professional/pycharm-professional-2016.3.2.ebuild
new file mode 100644
index 000000000000..e7a6891d1266
--- /dev/null
+++ b/dev-util/pycharm-professional/pycharm-professional-2016.3.2.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils readme.gentoo-r1
+
+DESCRIPTION="Intelligent Python IDE with unique code assistance and analysis"
+HOMEPAGE="http://www.jetbrains.com/pycharm/"
+SRC_URI="http://download.jetbrains.com/python/${P}.tar.gz"
+
+LICENSE="PyCharm_Academic PyCharm_Classroom PyCharm PyCharm_OpenSource PyCharm_Preview"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND=">=virtual/jre-1.8
+ dev-python/pip"
+DEPEND=""
+
+RESTRICT="mirror strip"
+
+QA_PREBUILT="opt/${PN}/bin/fsnotifier
+ opt/${PN}/bin/fsnotifier64
+ opt/${PN}/bin/fsnotifier-arm
+ opt/${PN}/bin/libyjpagent-linux.so
+ opt/${PN}/bin/libyjpagent-linux64.so"
+
+MY_PN=${PN/-professional/}
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+src_prepare() {
+ default
+
+ rm -rf jre || die
+}
+
+src_install() {
+ insinto /opt/${PN}
+ doins -r *
+
+ fperms a+x /opt/${PN}/bin/{pycharm.sh,fsnotifier{,64},inspect.sh}
+
+ dosym /opt/${PN}/bin/pycharm.sh /usr/bin/${PN}
+ newicon "bin/${MY_PN}.png" ${PN}.png
+ make_desktop_entry ${PN} "${PN}" "${PN}"
+
+ readme.gentoo_create_doc
+}
diff --git a/dev-util/pycharm-professional/pycharm-professional-2017.1.5.ebuild b/dev-util/pycharm-professional/pycharm-professional-2017.1.5.ebuild
new file mode 100644
index 000000000000..b8731d8db528
--- /dev/null
+++ b/dev-util/pycharm-professional/pycharm-professional-2017.1.5.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils readme.gentoo-r1
+
+DESCRIPTION="Intelligent Python IDE with unique code assistance and analysis"
+HOMEPAGE="http://www.jetbrains.com/pycharm/"
+SRC_URI="http://download.jetbrains.com/python/${P}.tar.gz"
+
+LICENSE="PyCharm_Academic PyCharm_Classroom PyCharm PyCharm_OpenSource PyCharm_Preview"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=">=virtual/jre-1.8
+ dev-python/pip"
+DEPEND=""
+
+RESTRICT="mirror strip"
+
+QA_PREBUILT="opt/${PN}/bin/fsnotifier
+ opt/${PN}/bin/fsnotifier64
+ opt/${PN}/bin/fsnotifier-arm
+ opt/${PN}/bin/libyjpagent-linux.so
+ opt/${PN}/bin/libyjpagent-linux64.so"
+
+MY_PN=${PN/-professional/}
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+src_prepare() {
+ default
+
+ rm -rf jre || die
+}
+
+src_install() {
+ insinto /opt/${PN}
+ doins -r *
+
+ fperms a+x /opt/${PN}/bin/{pycharm.sh,fsnotifier{,64},inspect.sh}
+
+ dosym ../../opt/${PN}/bin/pycharm.sh /usr/bin/${PN}
+ newicon "bin/${MY_PN}.png" ${PN}.png
+ make_desktop_entry ${PN} "${PN}" "${PN}"
+
+ readme.gentoo_create_doc
+}
diff --git a/dev-util/pycharm-professional/pycharm-professional-2017.2.3.ebuild b/dev-util/pycharm-professional/pycharm-professional-2017.2.3.ebuild
new file mode 100644
index 000000000000..b8731d8db528
--- /dev/null
+++ b/dev-util/pycharm-professional/pycharm-professional-2017.2.3.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils readme.gentoo-r1
+
+DESCRIPTION="Intelligent Python IDE with unique code assistance and analysis"
+HOMEPAGE="http://www.jetbrains.com/pycharm/"
+SRC_URI="http://download.jetbrains.com/python/${P}.tar.gz"
+
+LICENSE="PyCharm_Academic PyCharm_Classroom PyCharm PyCharm_OpenSource PyCharm_Preview"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=">=virtual/jre-1.8
+ dev-python/pip"
+DEPEND=""
+
+RESTRICT="mirror strip"
+
+QA_PREBUILT="opt/${PN}/bin/fsnotifier
+ opt/${PN}/bin/fsnotifier64
+ opt/${PN}/bin/fsnotifier-arm
+ opt/${PN}/bin/libyjpagent-linux.so
+ opt/${PN}/bin/libyjpagent-linux64.so"
+
+MY_PN=${PN/-professional/}
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+src_prepare() {
+ default
+
+ rm -rf jre || die
+}
+
+src_install() {
+ insinto /opt/${PN}
+ doins -r *
+
+ fperms a+x /opt/${PN}/bin/{pycharm.sh,fsnotifier{,64},inspect.sh}
+
+ dosym ../../opt/${PN}/bin/pycharm.sh /usr/bin/${PN}
+ newicon "bin/${MY_PN}.png" ${PN}.png
+ make_desktop_entry ${PN} "${PN}" "${PN}"
+
+ readme.gentoo_create_doc
+}
diff --git a/dev-util/qbs/Manifest b/dev-util/qbs/Manifest
new file mode 100644
index 000000000000..c5bb0b3585f3
--- /dev/null
+++ b/dev-util/qbs/Manifest
@@ -0,0 +1,8 @@
+AUX 1.8.1-Install-missing-public-header.patch 1815 SHA256 5b8d5d943f09c720b3d33d446c282cca5597ec62613307e0baeb7086807028a5 SHA512 fa54a14f1ac455ef9a8c502f473f9c45df955d515ea4ec1452f41e2e2d39c6a7e52c06d1178a228482dfbd2d66d0f202b066f55183bb1638d139dca708c879ad WHIRLPOOL 62b070c3ccfc470b6efa41ea96b41f4ba8c8d0afc81348a5a49ddc7c91eb434400a20e5455a0fcd70ba001ab5569b3d470db10128c3d80d52231931357bbcc6c
+DIST qbs-src-1.8.1.tar.gz 1053395 SHA256 3e94460ecbd1ca43974d62a0ecf691d48866049787c465944866baf52d5b16fc SHA512 2b4657475803e56f911f0bc373692b70f9376ed520499f1c4e7040e4dedddc417bd4e72208c925ed7fdc7fcf0b96434dab8d8f87c454ae08da80d6438dbcbc5c WHIRLPOOL 1a5fa2cc7518b3b324d163224b259e7f44b91599e58ff3c9e2d52d3322d68b0fbb2b0e0ec5abee17e95a4a51a00d10a84397a49d5cf31ec37fbab4759dba7259
+DIST qbs-src-1.9.1.tar.gz 4007946 SHA256 970048842581bc004eec9ac9777a49380c03f4e01ef7ad309813aa1054870073 SHA512 6b400a06b4f2c2cb531095a0c3eadb112335fe0f91c2077f01c7d2dc6ea329d250e7af70f70ebeb972368aa8fa0ee9548b84b75dc877230de6dea0b10468b7fd WHIRLPOOL 3c265433f514fa6bf9ad3f3f901fe2fc6ec88180277af05af6fd1ca66481a5ca86cdc046835a2b7d99d23efd4e57d479494df4d24f32c7b3f20832644ee523b4
+EBUILD qbs-1.8.1-r1.ebuild 2948 SHA256 0469adf887c8b02ebf5039652bcbc96314960e17bae603315e9c26b5427f952c SHA512 8ce928a55a420659ed73ae5f6e537f71059dfb6542bfcb0ed8f0253a62f6fc0d629a83bd8828113b76a565acdc78e05fb44a3362bb1bf912a91061b948c6457f WHIRLPOOL 372227a7f026647303f9aa3132df4ab09a4f82c63a6e7b94d7750fdd712dd3859e7ebc552e5096e5fe58dfaab0be2580f65b38a228857796b4953ceea7852d64
+EBUILD qbs-1.9.1.ebuild 2866 SHA256 fa9850b0a0b5276c478e1fc12a2fcffc1267748c23569d2ac3ad8b8b13cef844 SHA512 b81d2f56e10be6d34c67e0b2bb78161793a53cc1fe03e45df55fdfbcdc48d8f93b9750d6602569fee40d93124a19113d75234465b74e4f8f875c67831eca8a82 WHIRLPOOL 6347a84aebfaf69a462f5543ceabd6eb7b1eeba9c26413d6c41a1d8ab44394f8cc89772ecaa063fe2d5abb5f3af6a89d4ff7357e3f2e6da8362b4daad92877a0
+MISC ChangeLog 6169 SHA256 d1e22ef15b74cbc097ac79c0762e3b7caed82cb9d9670e6b3e79198d50e0f73b SHA512 251c0efd2d7a2c41f0bf3023eda572a9116fa8c8eba71c942ceedb17e7cde90803752eb7a9157a9b93e7858d8ab60eeecebc9ecaf18b15dc2dafd305796e743b WHIRLPOOL 522685377e675b8976c2e403dc3da3b580a234c1d297bdd787a8f1215ff444ae6823392d218ed3f2ea708b6d598f771f66eccbdaaf64d7b1126dfedfefee4862
+MISC ChangeLog-2015 3445 SHA256 0d98ad28a296ea6d92039646c964707ed7f72ae525e77cd0aa92f8b0b7010236 SHA512 d4e66063b67cabfe975f16ec2f17520adf98d5cbb806ff5afb9a4c2e17d8cfa9f87c0e7edffce9cf486897549f979204619a5e8eb3a823ff121e20b0315e68b5 WHIRLPOOL 65a8d86612961047cf19d2a9c45c8f0b0bc4bbca3221f3192409fbdba70758b819ba4fd7b8c5aa09f0f2f4269dc2a49fcd451adf9931ab5209675dddc400a129
+MISC metadata.xml 920 SHA256 d06e39a293694874ef3f6df50067dd3d68fddbda799de049e0a91438e4feda3c SHA512 ca8c93f9630e818e2f567388fd5f61f47882b843eee39a78f2882ec0ba8c310e0689fb70925762da7548040892d606ef21497503c6fb2a655af608b36bcc98da WHIRLPOOL 7ae6d26e82df8a28b2369e36036197178b99b5bc4ebc58e2a2d7a5c94399e603f9c3c1ade9ffbcd28acce1f1add7ce158aa9e2edee9e89c6022b2142d06fe8bb
diff --git a/dev-util/qbs/files/1.8.1-Install-missing-public-header.patch b/dev-util/qbs/files/1.8.1-Install-missing-public-header.patch
new file mode 100644
index 000000000000..09aa6aec519e
--- /dev/null
+++ b/dev-util/qbs/files/1.8.1-Install-missing-public-header.patch
@@ -0,0 +1,52 @@
+From 4143de9ab93283c6331418610902da4648db5b67 Mon Sep 17 00:00:00 2001
+From: Joerg Bornemann <joerg.bornemann@qt.io>
+Date: Mon, 10 Jul 2017 09:49:19 +0200
+Subject: [PATCH] Install missing public header
+
+Since commit 7ccc08f3, tools/version.h is needed by a public header.
+It must be installed.
+
+Change-Id: I79cb243463abb9390a581144467b3cd89f46eadd
+Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
+---
+ src/lib/corelib/corelib.qbs | 2 +-
+ src/lib/corelib/tools/tools.pri | 3 ++-
+ 2 files changed, 3 insertions(+), 2 deletions(-)
+
+diff --git a/src/lib/corelib/corelib.qbs b/src/lib/corelib/corelib.qbs
+index 1b137925..6dd6f082 100644
+--- a/src/lib/corelib/corelib.qbs
++++ b/src/lib/corelib/corelib.qbs
+@@ -405,7 +405,6 @@ QbsLibrary {
+ "stlutils.h",
+ "toolchains.cpp",
+ "version.cpp",
+- "version.h",
+ "visualstudioversioninfo.cpp",
+ "visualstudioversioninfo.h",
+ "vsenvironmentdetector.cpp",
+@@ -435,6 +434,7 @@ QbsLibrary {
+ "settingsmodel.h",
+ "setupprojectparameters.h",
+ "toolchains.h",
++ "version.h",
+ ]
+ qbs.install: qbsbuildconfig.installApiHeaders
+ qbs.installDir: headerInstallPrefix + "/tools"
+diff --git a/src/lib/corelib/tools/tools.pri b/src/lib/corelib/tools/tools.pri
+index 0fa91147..fb0c225b 100644
+--- a/src/lib/corelib/tools/tools.pri
++++ b/src/lib/corelib/tools/tools.pri
+@@ -125,7 +125,8 @@ qbs_enable_unit_tests {
+ $$PWD/generatorpluginmanager.h \
+ $$PWD/installoptions.h \
+ $$PWD/setupprojectparameters.h \
+- $$PWD/toolchains.h
++ $$PWD/toolchains.h \
++ $$PWD/version.h
+ tools_headers.path = $${QBS_INSTALL_PREFIX}/include/qbs/tools
+ INSTALLS += tools_headers
+ }
+--
+2.14.1
+
diff --git a/dev-util/qbs/metadata.xml b/dev-util/qbs/metadata.xml
new file mode 100644
index 000000000000..eb2faf769298
--- /dev/null
+++ b/dev-util/qbs/metadata.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>pesa@gentoo.org</email>
+ <name>Davide Pesavento</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <longdescription lang="en">
+ Qbs is a tool that helps simplify the build process for developing
+ projects across multiple platforms. Qbs can be used for any software
+ project, whether it is written in Qt or not.
+
+ Qbs is an all-in-one tool that generates a build graph from a
+ high-level project description (like qmake or cmake) and additionally
+ undertakes the task of executing the commands in the low-level build
+ graph (like make).
+ </longdescription>
+ <upstream>
+ <bugs-to>https://bugreports.qt.io/</bugs-to>
+ <doc>http://doc.qt.io/qbs/</doc>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/qbs/qbs-1.8.1-r1.ebuild b/dev-util/qbs/qbs-1.8.1-r1.ebuild
new file mode 100644
index 000000000000..4cad93eff2cb
--- /dev/null
+++ b/dev-util/qbs/qbs-1.8.1-r1.ebuild
@@ -0,0 +1,120 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit qmake-utils
+
+MY_P=${PN}-src-${PV}
+
+DESCRIPTION="Modern build tool for software projects"
+HOMEPAGE="https://wiki.qt.io/Qbs"
+SRC_URI="http://download.qt.io/official_releases/${PN}/${PV}/${MY_P}.tar.gz"
+
+LICENSE="|| ( LGPL-2.1 LGPL-3 )"
+SLOT="0"
+KEYWORDS="amd64 ~arm x86"
+IUSE="doc examples test"
+
+# see bug 581874 for the qttest dep in RDEPEND
+RDEPEND="
+ dev-qt/qtcore:5=
+ dev-qt/qtgui:5
+ dev-qt/qtnetwork:5
+ dev-qt/qtscript:5
+ dev-qt/qtwidgets:5
+ dev-qt/qtxml:5
+ test? ( dev-qt/qttest:5 )
+"
+DEPEND="${RDEPEND}
+ doc? (
+ dev-qt/qdoc:5
+ dev-qt/qthelp:5
+ )
+ test? ( dev-qt/qtdeclarative:5 )
+"
+
+S=${WORKDIR}/${MY_P}
+
+PATCHES=(
+ # bug 625640
+ "${FILESDIR}/1.8.1-Install-missing-public-header.patch"
+)
+
+src_prepare() {
+ default
+
+ # don't add /usr/include to INCLUDEPATH
+ # avoids a build failure in qt-creator with gcc-6 (bug 618424)
+ sed -i -e '/^INCLUDEPATH/ s:$${PWD}/\.\.::' src/lib/corelib/use_installed_corelib.pri || die
+
+ if ! use examples; then
+ sed -i -e '/INSTALLS +=/ s:examples::' static.pro || die
+ fi
+
+ if use test; then
+ sed -i -e '/SUBDIRS =/ s:=.*:= auto:' tests/tests.pro || die
+ else
+ sed -i -e '/SUBDIRS =/ d' tests/tests.pro || die
+ fi
+
+ # skip several tests that fail and/or have additional deps
+ sed -i \
+ -e 's/findArchiver("7z")/""/' `# requires p7zip, fails` \
+ -e 's/findArchiver(binaryName,.*/"";/' `# requires zip and jar` \
+ -e 's/p\.value("nodejs\./true||&/' `# requires nodejs, bug 527652` \
+ -e 's/\(p\.value\|m_qbsStderr\.contains\)("typescript\./true||&/' `# requires nodejs and typescript` \
+ tests/auto/blackbox/tst_blackbox.cpp || die
+
+ # requires jdk, fails, bug 585398
+ sed -i -e '/blackbox-java\.pro/ d' tests/auto/auto.pro || die
+}
+
+src_configure() {
+ local myqmakeargs=(
+ qbs.pro # bug 523218
+ -recursive
+ CONFIG+=qbs_disable_rpath
+ CONFIG+=qbs_enable_project_file_updates
+ $(usex test 'CONFIG+=qbs_enable_unit_tests' '')
+ QBS_INSTALL_PREFIX="${EPREFIX}/usr"
+ QBS_LIBRARY_DIRNAME="$(get_libdir)"
+ )
+ eqmake5 "${myqmakeargs[@]}"
+}
+
+src_test() {
+ einfo "Setting up test environment in ${T}"
+
+ export HOME=${T}
+ export LD_LIBRARY_PATH=${S}/$(get_libdir)
+
+ "${S}"/bin/qbs-setup-toolchains /usr/bin/gcc gcc || die
+ "${S}"/bin/qbs-setup-qt "$(qt5_get_bindir)/qmake" qbs_autotests || die
+
+ einfo "Running autotests"
+
+ # simply exporting LD_LIBRARY_PATH doesn't work
+ # we have to use a custom testrunner script
+ local testrunner=${WORKDIR}/gentoo-testrunner
+ cat <<-EOF > "${testrunner}"
+ #!/bin/sh
+ export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}\${LD_LIBRARY_PATH:+:}\${LD_LIBRARY_PATH}"
+ exec "\$@"
+ EOF
+ chmod +x "${testrunner}"
+
+ emake TESTRUNNER="'${testrunner}'" check
+}
+
+src_install() {
+ emake INSTALL_ROOT="${D}" install
+
+ # install documentation
+ if use doc; then
+ emake docs
+ dodoc -r doc/qbs/html
+ dodoc doc/qbs.qch
+ docompress -x /usr/share/doc/${PF}/qbs.qch
+ fi
+}
diff --git a/dev-util/qbs/qbs-1.9.1.ebuild b/dev-util/qbs/qbs-1.9.1.ebuild
new file mode 100644
index 000000000000..881b9a2b5bd7
--- /dev/null
+++ b/dev-util/qbs/qbs-1.9.1.ebuild
@@ -0,0 +1,115 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit qmake-utils
+
+MY_P=${PN}-src-${PV}
+
+DESCRIPTION="Modern build tool for software projects"
+HOMEPAGE="https://wiki.qt.io/Qbs"
+SRC_URI="http://download.qt.io/official_releases/${PN}/${PV}/${MY_P}.tar.gz"
+
+LICENSE="|| ( LGPL-2.1 LGPL-3 )"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="doc examples test"
+
+# see bug 581874 for the qttest dep in RDEPEND
+RDEPEND="
+ dev-qt/qtcore:5=
+ dev-qt/qtgui:5
+ dev-qt/qtnetwork:5
+ dev-qt/qtscript:5
+ dev-qt/qtwidgets:5
+ dev-qt/qtxml:5
+ test? ( dev-qt/qttest:5 )
+"
+DEPEND="${RDEPEND}
+ doc? (
+ dev-qt/qdoc:5
+ dev-qt/qthelp:5
+ )
+ test? ( dev-qt/qtdeclarative:5 )
+"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ default
+
+ # don't add /usr/include to INCLUDEPATH
+ # avoids a build failure in qt-creator with gcc-6 (bug 618424)
+ sed -i -e '/^INCLUDEPATH/ s:$${PWD}/\.\.::' src/lib/corelib/use_installed_corelib.pri || die
+
+ if ! use examples; then
+ sed -i -e '/INSTALLS +=/ s:examples::' static.pro || die
+ fi
+
+ if use test; then
+ sed -i -e '/SUBDIRS =/ s:=.*:= auto:' tests/tests.pro || die
+ else
+ sed -i -e '/SUBDIRS =/ d' tests/tests.pro || die
+ fi
+
+ # skip several tests that fail and/or have additional deps
+ sed -i \
+ -e 's/findArchiver("7z")/""/' `# requires p7zip, fails` \
+ -e 's/findArchiver(binaryName,.*/"";/' `# requires zip and jar` \
+ -e 's/p\.value("nodejs\./true||&/' `# requires nodejs, bug 527652` \
+ -e 's/\(p\.value\|m_qbsStderr\.contains\)("typescript\./true||&/' `# requires nodejs and typescript` \
+ tests/auto/blackbox/tst_blackbox.cpp || die
+
+ # requires jdk, fails, bug 585398
+ sed -i -e '/blackbox-java\.pro/ d' tests/auto/auto.pro || die
+}
+
+src_configure() {
+ local myqmakeargs=(
+ qbs.pro # bug 523218
+ -recursive
+ CONFIG+=qbs_disable_rpath
+ CONFIG+=qbs_enable_project_file_updates
+ $(usex test 'CONFIG+=qbs_enable_unit_tests' '')
+ QBS_INSTALL_PREFIX="${EPREFIX}/usr"
+ QBS_LIBRARY_DIRNAME="$(get_libdir)"
+ )
+ eqmake5 "${myqmakeargs[@]}"
+}
+
+src_test() {
+ einfo "Setting up test environment in ${T}"
+
+ export HOME=${T}
+ export LD_LIBRARY_PATH=${S}/$(get_libdir)
+
+ "${S}"/bin/qbs-setup-toolchains /usr/bin/gcc gcc || die
+ "${S}"/bin/qbs-setup-qt "$(qt5_get_bindir)/qmake" qbs_autotests || die
+
+ einfo "Running autotests"
+
+ # simply exporting LD_LIBRARY_PATH doesn't work
+ # we have to use a custom testrunner script
+ local testrunner=${WORKDIR}/gentoo-testrunner
+ cat <<-EOF > "${testrunner}"
+ #!/bin/sh
+ export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}\${LD_LIBRARY_PATH:+:}\${LD_LIBRARY_PATH}"
+ exec "\$@"
+ EOF
+ chmod +x "${testrunner}"
+
+ emake TESTRUNNER="'${testrunner}'" check
+}
+
+src_install() {
+ emake INSTALL_ROOT="${D}" install
+
+ # install documentation
+ if use doc; then
+ emake docs
+ dodoc -r doc/qbs/html
+ dodoc doc/qbs.qch
+ docompress -x /usr/share/doc/${PF}/qbs.qch
+ fi
+}
diff --git a/dev-util/qdevicemonitor/Manifest b/dev-util/qdevicemonitor/Manifest
new file mode 100644
index 000000000000..77d9d35abd54
--- /dev/null
+++ b/dev-util/qdevicemonitor/Manifest
@@ -0,0 +1,4 @@
+DIST qdevicemonitor-1.0.1.tar.gz 955052 SHA256 33bd193dd6ad492973ec1fd0c6076bf3c3e9b90deb04f9c39c3f15095d98712b SHA512 c393d8e33aa6234c2b62af8c25e5fc2e6ccacf9734b77500a512fbd584ecde723b9d5717dbe268d65565d3d30801d297236b3546263ba2689ba246d2b13b8f55 WHIRLPOOL 0b1a1f24ea21897adcf24e5a3ff3dcb42244052c6cf28d6898791c50c250376f98b82496d680c5693bbc680eff8f826134de666e5226c1226ed2e8927d1b13ee
+EBUILD qdevicemonitor-1.0.1.ebuild 919 SHA256 c0cf0f41994ce0a733a49607029aeb1621d4a779fabc87031a80f009efb2cfed SHA512 6f82903b9aefcef70c88766a5907e1dd14ec1bbdd9163eec724b8c6cb6c23e2ab0375796f443c73fd1944d1dbb0782c8c2a32a426a07becaefe06e38e0423f70 WHIRLPOOL c4e4d45044373a8f0ef3ab7e39e0317482ed921558307d93cc98ffb37b3bf5168338896875566d8b45e858d00c3bc8ec3296914f982e213f7d4fa4c0561041d0
+EBUILD qdevicemonitor-9999.ebuild 919 SHA256 c0cf0f41994ce0a733a49607029aeb1621d4a779fabc87031a80f009efb2cfed SHA512 6f82903b9aefcef70c88766a5907e1dd14ec1bbdd9163eec724b8c6cb6c23e2ab0375796f443c73fd1944d1dbb0782c8c2a32a426a07becaefe06e38e0423f70 WHIRLPOOL c4e4d45044373a8f0ef3ab7e39e0317482ed921558307d93cc98ffb37b3bf5168338896875566d8b45e858d00c3bc8ec3296914f982e213f7d4fa4c0561041d0
+MISC metadata.xml 508 SHA256 d432104e84282cbe0adc5e5582f0a9a54089baeb4b58e78e9952d75548ef1531 SHA512 90fc779f3aaa323f0842ba08241a0556e72ee6581ee47a944063712f9e4f17a840686a0aa5f14a1151f6df3f7b0580b9e42913a91c5eaf11fcce9086922e3997 WHIRLPOOL 822536e007b34f84af141e0c7fab8d84ecfdbb15946ece2d9c2b6ff980445acd65214619d8629198f542db4cf8cc032398249047df527847071cf1c7207f5f13
diff --git a/dev-util/qdevicemonitor/metadata.xml b/dev-util/qdevicemonitor/metadata.xml
new file mode 100644
index 000000000000..5351b1543c26
--- /dev/null
+++ b/dev-util/qdevicemonitor/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>alopatindev@gmail.com</email>
+ <name>Alexander Lopatin</name>
+ <description>Proxy maintainer</description>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">alopatindev/qdevicemonitor</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/qdevicemonitor/qdevicemonitor-1.0.1.ebuild b/dev-util/qdevicemonitor/qdevicemonitor-1.0.1.ebuild
new file mode 100644
index 000000000000..c055bb2fca97
--- /dev/null
+++ b/dev-util/qdevicemonitor/qdevicemonitor-1.0.1.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit eutils qmake-utils
+
+DESCRIPTION="Crossplatform log viewer for Android, iOS and text files"
+HOMEPAGE="https://github.com/alopatindev/qdevicemonitor"
+
+if [[ ${PV} == "9999" ]] ; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/alopatindev/${PN}"
+else
+ SRC_URI="https://github.com/alopatindev/qdevicemonitor/archive/${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="GPL-3"
+SLOT="0"
+IUSE=""
+
+RDEPEND="
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-util/android-tools
+ app-pda/usbmuxd"
+DEPEND="${RDEPEND}"
+
+src_configure() {
+ cd "${PN}" || die
+ export VERSION_WITH_BUILD_NUMBER="${PV}"
+ eqmake5
+}
+
+src_compile() {
+ cd "${PN}" || die
+ emake
+}
+
+src_install() {
+ dobin "${PN}/${PN}"
+ dodoc README.md
+ newicon -s scalable "icons/app_icon.svg" "${PN}.svg"
+ domenu "icons/${PN}.desktop"
+}
diff --git a/dev-util/qdevicemonitor/qdevicemonitor-9999.ebuild b/dev-util/qdevicemonitor/qdevicemonitor-9999.ebuild
new file mode 100644
index 000000000000..c055bb2fca97
--- /dev/null
+++ b/dev-util/qdevicemonitor/qdevicemonitor-9999.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit eutils qmake-utils
+
+DESCRIPTION="Crossplatform log viewer for Android, iOS and text files"
+HOMEPAGE="https://github.com/alopatindev/qdevicemonitor"
+
+if [[ ${PV} == "9999" ]] ; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/alopatindev/${PN}"
+else
+ SRC_URI="https://github.com/alopatindev/qdevicemonitor/archive/${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="GPL-3"
+SLOT="0"
+IUSE=""
+
+RDEPEND="
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-util/android-tools
+ app-pda/usbmuxd"
+DEPEND="${RDEPEND}"
+
+src_configure() {
+ cd "${PN}" || die
+ export VERSION_WITH_BUILD_NUMBER="${PV}"
+ eqmake5
+}
+
+src_compile() {
+ cd "${PN}" || die
+ emake
+}
+
+src_install() {
+ dobin "${PN}/${PN}"
+ dodoc README.md
+ newicon -s scalable "icons/app_icon.svg" "${PN}.svg"
+ domenu "icons/${PN}.desktop"
+}
diff --git a/dev-util/qfsm/Manifest b/dev-util/qfsm/Manifest
new file mode 100644
index 000000000000..7aca5c2aab0b
--- /dev/null
+++ b/dev-util/qfsm/Manifest
@@ -0,0 +1,5 @@
+DIST qfsm-0.54.0-Source.tar.bz2 2130183 SHA256 2b53b7e54e42d4c188f62220aaae3d3fb5e8239b8ac8e88f793689cc0a5b8766 SHA512 ab1f427c6d3421de924070a9fdca5aab2c2cf29dfad1b9f2cd35cbc35542238015a13bb91457de6872fe18f25e41720642bb58a22f33e4d0f56f9067ec8e9507 WHIRLPOOL 1a49150bd5bde7ac0f2d71b65e71523fbc3c5b40b7da593590f2bc78953f056ee410fc4d2c0372f7e33763a34a4252f8b0c890b06706dc2fcd03e3c65cf52c60
+EBUILD qfsm-0.54.0.ebuild 947 SHA256 5795a347be60476b7bbbb07e9b8fab9933a23d12f54a65fe173ea4916bc574e3 SHA512 51840d9ce0a0b63e83e3840482053784b0140e437d34173a48af89812482f7deaaf4c9b43b2abef0f2cab14440fb5c33dfe102b44733f5be5c18f355a0291921 WHIRLPOOL 3b17d8a5e04c647816824cf9662fdfdd204b2aa26917574326d6572e3cee433a4ff3d7c3aefa0862a49cb02650b52e48fb9691c4cc9989460b9bec2d86d59544
+MISC ChangeLog 2342 SHA256 47017227e232dbff3bca9a63e0857929ff01c3ed739cab0443a77ebc73db9b52 SHA512 ab83ff62180afdb1f5ce98f549ac3ae4bbadcade48521a4509f0f128bf720e163555d0c71209194c8ac148bb5d2f30f185c448cfd20a2c0504cb8291908ed3e1 WHIRLPOOL c73a52678b6734904880f59397c59d033b1f6f84404c70b24a8b91c01854ebef730a058d6f1f21033ebd97660df273e251dc41791b0159072146951d521dc17b
+MISC ChangeLog-2015 1255 SHA256 f84bbf257712804b442a9b6aacb094b2b84bdbf878b7cbe4a0c276bfe9ceb29f SHA512 96ec1acb4e9ac3fe01d91e6f4ff9f9639c302b2905daeabadf27c447b68f946372ade0ab01907616cb38600dfad9b70f583731927ea52c1f4a813c8a89ab8045 WHIRLPOOL 1c9f1a21c879fdc2a1f79e0160ce47c654d2b600ac7f5bf23822c78da4b2bdebb88d308bac2928a8d4683c72a93237bbc5de37475341fc8bc56b1f099f404911
+MISC metadata.xml 321 SHA256 d4eb0ffec3c9f37845896c537d78dd159db3225e727787d1c10394b951b5a759 SHA512 27bc40788c338184357073164382778144d0546bb63dc7b72730a2167aaf108c3298d25301e961b867cd5936b46291330338ac6418340f74193d930acfc5c9d0 WHIRLPOOL f7496a3b3effc471ab41efc46b60c970c4483c01d5589cc1b733732563717ce12ceac4887dab2d7931821b80c749d8adbf40541528c78378fd34219ca105c3dc
diff --git a/dev-util/qfsm/metadata.xml b/dev-util/qfsm/metadata.xml
new file mode 100644
index 000000000000..63d33d380dcb
--- /dev/null
+++ b/dev-util/qfsm/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>pinkbyte@gentoo.org</email>
+ <name>Sergey Popov</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">qfsm</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/qfsm/qfsm-0.54.0.ebuild b/dev-util/qfsm/qfsm-0.54.0.ebuild
new file mode 100644
index 000000000000..a0901a6be503
--- /dev/null
+++ b/dev-util/qfsm/qfsm-0.54.0.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+MY_P="${P}-Source"
+
+inherit cmake-utils
+
+DESCRIPTION="A graphical tool for designing finite state machines"
+HOMEPAGE="http://qfsm.sourceforge.net"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="sys-libs/zlib
+ dev-qt/qtcore:4
+ dev-qt/qt3support:4
+ dev-qt/qtsvg:4
+ >=media-gfx/graphviz-2.36"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+DOCS=( ChangeLog README TODO )
+
+src_prepare()
+{
+ # remove broken pre-generated Makefile
+ rm Makefile || die 'rm Makefile failed'
+ # fix desktop files
+ sed -i -e '/Encoding/d' \
+ -e 's/\.png//' \
+ desktop/qfsm.desktop || die 'sed on qfsm.desktop failed'
+ # fix doc path installation, bug #130641
+ sed -i -e "s:share/doc/qfsm:share/doc/${P}/html:g" CMakeLists.txt || die 'sed on CMakeLists.txt failed'
+
+ cmake-utils_src_prepare
+}
diff --git a/dev-util/qmtest/Manifest b/dev-util/qmtest/Manifest
new file mode 100644
index 000000000000..e9d028b32826
--- /dev/null
+++ b/dev-util/qmtest/Manifest
@@ -0,0 +1,5 @@
+DIST qmtest-2.4.1.tar.gz 2792290 SHA256 106b591ffae7c879afd147f21bfb37a2f5c3ea484988f54289d91063df567a04 SHA512 01a8b317fd5ae3d653b81d031005975d745829eda4b7d4d57c85cc13b71c142213dce053ba13999bf42a1b9b17118075e2c244c67e5c4c8a957d35d2850ae372 WHIRLPOOL 795d160ed71f2e5ab4453151a1d1d8bb9cc9d745a06823e9c4dd11a47e0c8c22cccce3688730016de9407dcab1d12b20abf0a44356d8f6bddbfba17139c115a8
+EBUILD qmtest-2.4.1-r1.ebuild 806 SHA256 f7d895460952c5cfd0e72276fe18fe57e7dfca32e40250ef780d52de0fd2a029 SHA512 ba57ad071066f58d69058edffbeebec874daf0317cfbd3cb32ecdb817333d6d2aee4798e1c1d48f11c4c75a785a6747a5d19c38a422892e2a5cda6adcfb12e89 WHIRLPOOL 2fd41453b5fad81cd721134301d6f8dfe93cab2408968e945f4298bec148b7135cd034a5dd2abf71d44703ec983c56a33018c415db3d324105b1d5d876119824
+MISC ChangeLog 3055 SHA256 d25f7c4ed87c1b30c66fbaf30caf746cb82e76f0b5c0768f68e6d6ad66deb5f4 SHA512 6721b4f14b4de38933a25db8f415fb3b01f6346f645bd8f2cad57e2726cd8ff6206345e029c9af633e0f5e360594c42cbeab50cfa95fa24b7f6293f732bf9906 WHIRLPOOL 7a693739debdafe7cd07903e7f18ef8c4ad8da6164624bce76872c1579b13583fd2dba88e61c085a854007051997d409dd3b4ee6a31d21aa83e75657c18f0a08
+MISC ChangeLog-2015 1885 SHA256 00f2f65031e605e077bf7839b7e457f0ed2a2e3a2ad1ba0a35069afbe5580c5f SHA512 b41314fd8ec692cfcfeb6a441e5dc2db4eb671ac54085acc6059c25c53840d1632ac028042f2016dfbfb2fd2bfcd84b0b90d75049710da61a49b8529e774f311 WHIRLPOOL 0ed16377333a2273178bd4a86c2ee9b1f8585b6dad5bbfae9168d4f6c1a15b603b568dd6adecae2a7690b48bf2214ab62adb3e8d5d06c261fa7c7353e64da409
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/dev-util/qmtest/metadata.xml b/dev-util/qmtest/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/dev-util/qmtest/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/dev-util/qmtest/qmtest-2.4.1-r1.ebuild b/dev-util/qmtest/qmtest-2.4.1-r1.ebuild
new file mode 100644
index 000000000000..93ad4a8feb92
--- /dev/null
+++ b/dev-util/qmtest/qmtest-2.4.1-r1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+DISTUTILS_SINGLE_IMPL=1
+
+inherit distutils-r1
+
+DESCRIPTION="CodeSourcery's test harness system"
+HOMEPAGE="http://www.codesourcery.com/qmtest/"
+SRC_URI="http://www.codesourcery.com/public/${PN}/${P}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~mips x86 ~amd64-linux ~x86-linux"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+pkg_setup() {
+ python-single-r1_pkg_setup
+}
+
+src_install() {
+ distutils-r1_src_install
+ find "${ED}" -name config.py -print0 | xargs -0 sed -i "s:${ED}:${EPREFIX}/usr:"
+ rm -r "${ED}"usr/share/doc/${PN}/{COPYING,LICENSE.OPL} || die
+ mv "${ED}"usr/share/doc/${PN}/* "${ED}"usr/share/doc/${PF} || die
+ rm -r "${ED}"/usr/share/doc/${PN} || die
+}
diff --git a/dev-util/qstlink2/Manifest b/dev-util/qstlink2/Manifest
new file mode 100644
index 000000000000..cc11007f0493
--- /dev/null
+++ b/dev-util/qstlink2/Manifest
@@ -0,0 +1,5 @@
+DIST qstlink2-1.0.3.tar.gz 661197 SHA256 c6e39bd3cde87c932b42c0831bb243f7148e741bf788643e438cdb98b3fb3b04 SHA512 bd6d083623296cfcbc407e8c9c920de24efc91f508fb8bfe64d538ff776ed927cb89efba5c265c393b877cee995ed022b6ac51e081423b787cbcbb176215231b WHIRLPOOL 74243268a657fd8980a0aca3e64a0d7eccba2ae12f090aabe3170d8d82eb85a5909e2fb7118b8c7f46258f0618f9b30204fd6f2bf5b193f3cf50dd2b0faf8154
+EBUILD qstlink2-1.0.3.ebuild 496 SHA256 769e6d5b350427858ef8aa144abd1722950ad3f352f64272699121b545d4b46e SHA512 b23d8241e1c78908a02b98b63cfcc5b8c032ddae3bf18f0fd7150d66db4f1cd6d24d52685aa136b7cb7c69e45b4666e70539ca947a7416dc6a1a5e86b4b860b4 WHIRLPOOL 4c92ae5c6beca82e764e7adce5eab174f43e0e464a035c319e4eb0882895938bf9027270dcf5ce1af9dbc99d62ed1f5d7d3425d8a2466141eb161e508925d548
+MISC ChangeLog 2713 SHA256 27154f75e5738285d8e1884623c2ea9a5cdf667e8fbea5ac85a736a6631b4b38 SHA512 5ab4525948eb3bfe71de80493489824db60311bc65dd6e32385e2c20f890b62877855ac2d66982f4d8d99c8121a2bf33a9fa9c7bc69fb23820745e88f849368b WHIRLPOOL f3ac0d86004ce66f8cb3d3d4ac13945d894ea15b2b7c254501a0bc74b13ddeb7f2a868d90a0c2d55623d00cfa3bf429096a7ee15ec13504843fb4516662f979d
+MISC ChangeLog-2015 574 SHA256 2e614d1af27de2a780b027783c9dc00129fbe91955ace1e17a25cdbb31613dbf SHA512 cf67e399dfcd7098c4628ea067c31ee7607e27e66b535b3f72b4e937b9bda3206835d516ed41ce13f13717088762b9a35ef776caa46465b8278e82674b6a6a5f WHIRLPOOL d7e04964cba7b8e7f72f0af5e36d2d85dee110b4f1fc1e268e2561db3a98608e24ea78a6c249b3d113a072b4650fd24037bd6c9e42cd2e94eade27a1ddda419a
+MISC metadata.xml 626 SHA256 b36f7d3913022aa3524f00295f1ca82f597217f46307e25112b44e36796889b1 SHA512 5b086323c16218c71c03a9dff91e7c95a3be54c82a871ce3e653a5208876c08d18e4292e9126e49224e65b93315ec2e3ae82a09eede155c5f705e432ac8603a1 WHIRLPOOL 0ebdbbe22055ff6831fa4ee9db7befc535ad854519bf387e1ff9259298a086188094a153c95b1d0dc5efdcb2705893d0eb514a94f489d8fe6c293b3cddea078e
diff --git a/dev-util/qstlink2/metadata.xml b/dev-util/qstlink2/metadata.xml
new file mode 100644
index 000000000000..a8644ee61d15
--- /dev/null
+++ b/dev-util/qstlink2/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>no111u3@gmail.com</email>
+ <name>Boris Vinogradov</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <longdescription>
+ This is a ST-Link V2 (Debugger/Programmer) client developped for Linux, OSX and Windows.
+
+ It is developped using QT and LibUsb/WinUsb.
+ </longdescription>
+ <upstream>
+ <remote-id type="github">mobyfab/qstlink2</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/qstlink2/qstlink2-1.0.3.ebuild b/dev-util/qstlink2/qstlink2-1.0.3.ebuild
new file mode 100644
index 000000000000..addd107df2ff
--- /dev/null
+++ b/dev-util/qstlink2/qstlink2-1.0.3.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit qt4-r2
+
+DESCRIPTION="GUI and CLI ST-Link V2(Debugger/Programmer) client"
+HOMEPAGE="https://github.com/fpoussin/qstlink2"
+SRC_URI="https://github.com/mobyfab/QStlink2/archive/v1.0.3.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="virtual/libusb:0
+ dev-qt/qtcore:4
+ dev-qt/qtgui:4"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/QStlink2-${PV}"
diff --git a/dev-util/quilt/Manifest b/dev-util/quilt/Manifest
new file mode 100644
index 000000000000..13fa5cd680d8
--- /dev/null
+++ b/dev-util/quilt/Manifest
@@ -0,0 +1,14 @@
+AUX quilt-0.50-no-graphviz.patch 1477 SHA256 b08f087361427a66bc3b2246090e947a7207b397d67dd6278a18398f9456adbb SHA512 281c3f080e6ce6d4fd38e881b5cf111bc8313a9171a1c93edf9393b4f33eb0bd4fdb4c1b1df2cc888391acc6016c0eae9183948f5a76b8dc492e2ebb99f84f98 WHIRLPOOL a0c23194287e887de70231b1503a48579a76be6194fb0fc5d457225cf7674b2336778beeaac1148d03cf75d73ddccb1504af55c5b94a8cc7059eb97d46b0fe8d
+AUX quilt-0.63-bash-completion.patch 584 SHA256 c6d58febd55980b84144cef31086b6271476ffbfdfc0477eac2342f7afe99b2d SHA512 6ec0a3d36d347573f791c7a8217f65a46c35b7fa510a5092b4d425814656f4ef0d9318da42020dc059caeaa631f13d3c5780bbb3ad19e20c87b60a60d32a7bc8 WHIRLPOOL bab8794008c47a1772708bc3abcbb1d68dbe6808c04b66ee79b90e5fb8f30a34f764e6b6cafe0bd88572060a34faa5e93ae9bec29a139466f792e51a7a1e2b33
+AUX quilt-0.63-no-graphviz.patch 1431 SHA256 6f9d2a28289882a604d7877ace3fdf746eaf93b9c1ff29c621449a48955ba808 SHA512 9e66299df9e83f8d89d25b9d72fccff60c2ada37029f3542667c267527fc4b9f36101c752b8393b137553e7ac277ee344158ca131e931c1a61103621ae4a7027 WHIRLPOOL eadc895becfb33fe03afa22dcf0c17c5d30cd53a4a7d8ffb3f48ef8826c38d98dd4d42c6e29641a53ddb990df5493907459c67af6273834d2646e74a2d3d5be4
+AUX quilt-0.65-no-graphviz.patch 1482 SHA256 04cfa4bd7d993c14675045769e36e8f48a37329a6b0c115a619d9d569ecadf25 SHA512 4a70ac2abf6e7f2a63d138035ca5a8194bf4fbee5ee2f7be8c3587cbc94104ffb7abca89e37b2b3bfe9063554bab358a86adb92e553ad72099d8baf35b48444d WHIRLPOOL e111c6a567e7cbb68ec971fb7e955ee0a1640f3528cd38c1583ee54dc1c38d63ad349056f30bcdbde2706dad95583acb7d7f1b6744942aff5042dc2785e0d3a7
+DIST quilt-0.50.tar.gz 452769 SHA256 fa4579628a98cf94472b36869e74f5cd0cb057d6fd13c1872a53f01c45aba8c3 SHA512 c6258872bc591b35e93ba09cc17b4954696faf391aff71b7789cc8cc58c4c54e51b605896937bd1aa54545eed6bf1e9b70352ad9b643f869154e6953c0340365 WHIRLPOOL d4823f9c1507fc3b29f605df855c53343bc0e0b300617b8203d9422d3fede2e1930ba9390329b3ee484fbeb7dde5535f9938c84ceee63477eb8fc0c705556822
+DIST quilt-0.63.tar.gz 389593 SHA256 2846788221aa8844c54f10239c7cbc5e88031859162bcc285449446c3cfffe52 SHA512 e6d5c601805b664a5586a557799e7b321b6b28f7ccec708f52aa96371c987e5791aa54418c9b89d34154e4967ddfe7a261e37195fd29b6aa529e8fa6e5007c45 WHIRLPOOL 89b72f38d75e479fc8f030398757ab325ab46ff79baa7227fe122c4902d582374971c8c5f562611f0c024e8b56db01858669cd0427338f2368492ff118f31280
+DIST quilt-0.65.tar.gz 410780 SHA256 f6cbc788e5cbbb381a3c6eab5b9efce67c776a8662a7795c7432fd27aa096819 SHA512 37dffe34fe209371f2fbc0af2dbb4dcfa6edd2221aed15f31a0651a0bd457f2af03a98450a3e63406f70e040e944246e5b23733b820665eeb3fd4ff2bdde3a08 WHIRLPOOL 533a355a690ff598caea35ac94d00822baf225b5bb59705ed2cf3d484a1db55068dd7d0ab1ccaedef403b1d0c2c3369037bbd04839899eba46b3ea516fbae4ae
+EBUILD quilt-0.50.ebuild 1498 SHA256 baaf2d524f49593a8acc5bbb9a470170844d4d78cd2519ef6e21976c9e63442f SHA512 859ed76032223dace82c96f899a1fbbfe5e508223117ed6c5397e59950623f107bf3493c0a942475a079c90f5431a4c1197ab27f896a8a59739b1602d4eb1d80 WHIRLPOOL 00d2f78d03ae76abf1e71cf16deb2ced6f7f48e73f14f405a3ed7693fc3705f3845240a24cdccdddfb35843180a42aace534e1f70168e6312ed19e5b327e5b01
+EBUILD quilt-0.63.ebuild 1934 SHA256 e3492fdba9698c20ef3d6d002e62447c01a691352cb905113d288875b1ef7867 SHA512 5d60f84f0fa3abd6e15f428182523f9417b5541c3301374b60bfe3704aa2e488628d501f1dffd47028db92de44e95c8fc2e89217d9fe789faff7f56d6c636082 WHIRLPOOL 213f3e373bcd8481a0d5497e0d8d261450bd03a01bcbbf1b1e60627289f4d6417cfaa410295c8c7e09ca79430fa5fc06ff30ca6a00f4f43630bdcc27edfe906e
+EBUILD quilt-0.65.ebuild 1647 SHA256 dd662d8c7d57e62652e0dda4623d54d252da4f7a348419b4f48834fcd57ef6fc SHA512 7be1c157aac11b74de9fe6bd2bb18719f9b5428f58ce8b9d1b1277eeba0f130f591c9815836c6d60004d8774bb5f463aaacdd9ae479ceaa00374fb73bcee49b3 WHIRLPOOL 89b17dab3e7858d09c9b7c23b1d41e47be4c5da302c97ecc808e1efdeafb409543959cc3643d7d55d5d09e2a9b05e7a1d56fbaf9da2f944e6304093bb385b378
+EBUILD quilt-9999.ebuild 1764 SHA256 cdf8a7e00e1a0b69240b314cce516f8bb1eed9bd960f909bc64fdcbcf66bed9c SHA512 ab39ceb5756c763b911a077ca98cde61143332b21708f62963ec0632ae3b02e4d319bc92a3b7c9fd74a5fbb04d6c537088bc63aeff1fc5b06f97fece2d07e2ef WHIRLPOOL c000826c2dd25191830322cfa33a1c405f6b1dee0930155dd351944f7714ebbb466c35636f6b833feebc67458cef5ca8bfc5745f8f817abc0c591d5dd9e7693c
+MISC ChangeLog 2930 SHA256 7bf31bf2beaec60ad37fd3db8df313d214034587ba1320385429be3e566418a6 SHA512 4564a821d5b4d65a74a03c0d6b3893826a7925a3beef94ffcd58b8149aac1dc21411bbd63d40711e8dd21c2b77487832eb09da7410ab6ca1cbae60a44853c670 WHIRLPOOL c08e3548cb4c0d3e3fb87d1f5a6c96ddd86002527b56b8ab9b4833599fb3b42f9844d94e8fc2f4570a704f826de3c24f7f5c04deac10a1547ed875236e17c312
+MISC ChangeLog-2015 8469 SHA256 7b3cbc98dd6628f0c9d8d107e42192b9c914d3f282494fbba0f02147344b8956 SHA512 00ba079fa145513bdc95d89d6f0cf5f52cc53cdc0db63f5a4b31ea0294a8afbdcbea9d3a8eafe9bb3e8cc4e2722043f9a814bdd65fb309debc0330862a652a93 WHIRLPOOL 1add27d9e757ba2d41bfaa1705db3378ae64bda8be7a5ea4c330088e6cb43cdb39e0cb0f243ca63b0f5295e156af7f10308573b0676e55f1d3c0395efb21b3b5
+MISC metadata.xml 320 SHA256 0f1caacdad122229a02e84d5e14f5efa3c4e0d499f75d1ea6b39e748f7b0cb7f SHA512 7a8f43fb660058256892da7cad161a61a02629c1a1137919a768ac18dcc5a7e211944cba8c0aaaa33ba0b4c005bc17605706040e3bee8af923b1bdd7d4518cda WHIRLPOOL 6c4ca715ad909ba9ad6f21ef377673a52d75f6fcec98248b2fc96e2b8c31b8392b70e4610f3cf7776857e07079b9b8796c2b2d448529d235a823981633f243e1
diff --git a/dev-util/quilt/files/quilt-0.50-no-graphviz.patch b/dev-util/quilt/files/quilt-0.50-no-graphviz.patch
new file mode 100644
index 000000000000..04e0d7d3a9a1
--- /dev/null
+++ b/dev-util/quilt/files/quilt-0.50-no-graphviz.patch
@@ -0,0 +1,47 @@
+Index: b/Makefile.in
+===================================================================
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -82,8 +82,7 @@ QUILT := $(QUILT_IN)
+ SRC += $(QUILT_SRC:%=quilt/%)
+ DIRT += $(QUILT_IN:%=quilt/%)
+
+-SCRIPTS_IN := patchfns parse-patch inspect dependency-graph edmail \
+- remove-trailing-ws
++SCRIPTS_IN := patchfns parse-patch inspect edmail remove-trailing-ws
+
+ SCRIPTS_SRC := $(SCRIPTS_IN:%=%.in)
+ SCRIPTS := $(SCRIPTS_IN)
+Index: b/bash_completion
+===================================================================
+--- a/bash_completion
++++ b/bash_completion
+@@ -95,7 +95,7 @@ _quilt_completion()
+ prev=${COMP_WORDS[COMP_CWORD-1]}
+
+ # quilt sub commands
+- cmds='add annotate applied delete diff edit files fold fork graph \
++ cmds='add annotate applied delete diff edit files fold fork \
+ grep header import mail new next patches pop previous push refresh \
+ remove rename revert series setup snapshot top unapplied'
+
+@@ -189,19 +189,6 @@ _quilt_completion()
+ ;;
+ esac
+ ;;
+- graph)
+- case $prev in
+- -T)
+- COMPREPLY=( $( compgen -W "ps" -- $cur ) )
+- ;;
+- --edge-labels)
+- COMPREPLY=( $( compgen -W "files" -- $cur ) )
+- ;;
+- *)
+- COMPREPLY=( $( compgen -W "-T -h --all --reduce --lines --edge-labels $(quilt applied 2>/dev/null)" -- $cur ) )
+- ;;
+- esac
+- ;;
+ grep)
+ _longopt grep
+ COMPREPLY=( ${COMPREPLY[@]:-} $( compgen -W "-h" -- $cur ) )
diff --git a/dev-util/quilt/files/quilt-0.63-bash-completion.patch b/dev-util/quilt/files/quilt-0.63-bash-completion.patch
new file mode 100644
index 000000000000..c85caca5c9e1
--- /dev/null
+++ b/dev-util/quilt/files/quilt-0.63-bash-completion.patch
@@ -0,0 +1,17 @@
+--- bash_completion.orig 2014-10-21 18:15:29.549789267 -0400
++++ bash_completion 2014-10-21 18:15:38.489789221 -0400
+@@ -11,8 +11,6 @@
+ # completion to work then you must set QUILT_PC in your global environment
+ # (for example in ~/.profile) and not just in your quiltrc file.
+
+-if type quilt &> /dev/null ; then
+-
+ if ! type _expand &> /dev/null ; then
+ # This function expands tildes in pathnames
+ #
+@@ -310,5 +308,3 @@ _quilt_completion()
+ && _quilt_complete_opt="-o filenames"
+ complete -F _quilt_completion $_quilt_complete_opt quilt
+ unset -v _quilt_complete_opt
+-
+-fi
diff --git a/dev-util/quilt/files/quilt-0.63-no-graphviz.patch b/dev-util/quilt/files/quilt-0.63-no-graphviz.patch
new file mode 100644
index 000000000000..80458120f4f1
--- /dev/null
+++ b/dev-util/quilt/files/quilt-0.63-no-graphviz.patch
@@ -0,0 +1,43 @@
+--- Makefile.in.orig 2014-10-21 17:08:25.639810130 -0400
++++ Makefile.in 2014-10-21 17:09:03.269809935 -0400
+@@ -79,8 +79,7 @@ QUILT := $(QUILT_IN)
+ SRC += $(QUILT_SRC:%=quilt/%)
+ DIRT += $(QUILT_IN:%=quilt/%)
+
+-SCRIPTS_IN := patchfns inspect dependency-graph edmail \
+- remove-trailing-ws backup-files
++SCRIPTS_IN := patchfns inspect edmail remove-trailing-ws backup-files
+
+ SCRIPTS_SRC := $(SCRIPTS_IN:%=%.in)
+ SCRIPTS := $(SCRIPTS_IN)
+--- bash_completion.orig 2014-10-21 17:09:08.789809906 -0400
++++ bash_completion 2014-10-21 17:09:53.189809676 -0400
+@@ -100,7 +100,7 @@ _quilt_completion()
+ prev=${COMP_WORDS[COMP_CWORD-1]}
+
+ # quilt sub commands
+- cmds='add annotate applied delete diff edit files fold fork graph \
++ cmds='add annotate applied delete diff edit files fold fork \
+ grep header import mail new next patches pop previous push refresh \
+ remove rename revert series setup snapshot top unapplied'
+
+@@ -194,19 +194,6 @@ _quilt_completion()
+ ;;
+ esac
+ ;;
+- graph)
+- case $prev in
+- -T)
+- COMPREPLY=( $( compgen -W "ps" -- $cur ) )
+- ;;
+- --edge-labels)
+- COMPREPLY=( $( compgen -W "files" -- $cur ) )
+- ;;
+- *)
+- COMPREPLY=( $( compgen -W "-T -h --all --reduce --lines --edge-labels $(quilt --quiltrc - applied 2>/dev/null)" -- $cur ) )
+- ;;
+- esac
+- ;;
+ grep)
+ _longopt grep
+ COMPREPLY=( ${COMPREPLY[@]:-} $( compgen -W "-h" -- $cur ) )
diff --git a/dev-util/quilt/files/quilt-0.65-no-graphviz.patch b/dev-util/quilt/files/quilt-0.65-no-graphviz.patch
new file mode 100644
index 000000000000..ea06a9eebefb
--- /dev/null
+++ b/dev-util/quilt/files/quilt-0.65-no-graphviz.patch
@@ -0,0 +1,43 @@
+--- Makefile.in.orig 2017-04-12 09:27:40.853018901 -0400
++++ Makefile.in 2017-04-12 09:36:16.584315529 -0400
+@@ -78,8 +78,7 @@ QUILT := $(QUILT_IN)
+ SRC += $(QUILT_SRC:%=quilt/%)
+ DIRT += $(QUILT_IN:%=quilt/%)
+
+-SCRIPTS_IN := patchfns inspect-wrapper dependency-graph edmail \
+- remove-trailing-ws backup-files
++SCRIPTS_IN := patchfns inspect-wrapper edmail remove-trailing-ws backup-files
+
+ SCRIPTS_SRC := $(SCRIPTS_IN:%=%.in)
+ SCRIPTS := $(SCRIPTS_IN)
+--- bash_completion.orig 2017-04-12 09:27:57.643126246 -0400
++++ bash_completion 2017-04-12 09:30:27.673938451 -0400
+@@ -28,7 +28,7 @@ _quilt_completion()
+ prev=${COMP_WORDS[COMP_CWORD-1]}
+
+ # quilt sub commands
+- cmds='add annotate applied delete diff edit files fold fork graph \
++ cmds='add annotate applied delete diff edit files fold fork \
+ grep header import mail new next patches pop previous push refresh \
+ remove rename revert series setup snapshot top unapplied upgrade'
+
+@@ -122,19 +122,6 @@ _quilt_completion()
+ ;;
+ esac
+ ;;
+- graph)
+- case $prev in
+- -T)
+- COMPREPLY=( $( compgen -W "ps" -- $cur ) )
+- ;;
+- --edge-labels)
+- COMPREPLY=( $( compgen -W "files" -- $cur ) )
+- ;;
+- *)
+- COMPREPLY=( $( compgen -W "-T -h --all --reduce --lines --edge-labels $(quilt --quiltrc - applied 2>/dev/null)" -- $cur ) )
+- ;;
+- esac
+- ;;
+ grep)
+ type _longopt &> /dev/null && _longopt grep
+ COMPREPLY=( "${COMPREPLY[@]}" $( compgen -W "-h" -- $cur ) )
diff --git a/dev-util/quilt/metadata.xml b/dev-util/quilt/metadata.xml
new file mode 100644
index 000000000000..8b375ab7cfb6
--- /dev/null
+++ b/dev-util/quilt/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>mpagano@gentoo.org</email>
+ </maintainer>
+<maintainer type="project">
+ <email>suse@gentoo.org</email>
+ <name>SUSE</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-util/quilt/quilt-0.50.ebuild b/dev-util/quilt/quilt-0.50.ebuild
new file mode 100644
index 000000000000..bdd72d31598f
--- /dev/null
+++ b/dev-util/quilt/quilt-0.50.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit bash-completion-r1 eutils
+
+DESCRIPTION="quilt patch manager"
+HOMEPAGE="https://savannah.nongnu.org/projects/quilt"
+SRC_URI="https://savannah.nongnu.org/download/quilt/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 arm ppc ppc64 sparc x86"
+IUSE="emacs graphviz"
+
+RDEPEND="sys-apps/ed
+ dev-util/diffstat
+ graphviz? ( media-gfx/graphviz )
+ >=sys-apps/coreutils-8.5"
+
+PDEPEND="emacs? ( app-emacs/quilt-el )"
+
+pkg_setup() {
+ use graphviz && return 0
+ echo
+ elog "If you intend to use the folding functionality (graphical illustration of the"
+ elog "patch stack) then you'll need to remerge this package with USE=graphviz."
+ echo
+ epause 5
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ # Add support for USE=graphviz
+ use graphviz || epatch "${FILESDIR}/${P}-no-graphviz.patch"
+
+ # Some tests are somewhat broken while being run from within portage, work
+ # fine if you run them manually
+ rm "${S}"/test/delete.test "${S}"/test/mail.test
+}
+
+src_install() {
+ emake BUILD_ROOT="${D}" install || die "make install failed"
+
+ rm -rf "${D}"/usr/share/doc/${P}
+ dodoc AUTHORS TODO quilt.changes doc/README doc/README.MAIL \
+ doc/quilt.pdf
+
+ rm -rf "${D}"/etc/bash_completion.d
+ newbashcomp bash_completion ${PN}
+
+ # Remove the compat symlinks
+ rm -rf "${D}"/usr/share/quilt/compat
+
+ # Remove Emacs mode; newer version is in app-emacs/quilt-el, bug 247500
+ rm -rf "${D}"/usr/share/emacs
+}
diff --git a/dev-util/quilt/quilt-0.63.ebuild b/dev-util/quilt/quilt-0.63.ebuild
new file mode 100644
index 000000000000..ea76c38419cf
--- /dev/null
+++ b/dev-util/quilt/quilt-0.63.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit bash-completion-r1 eutils
+
+DESCRIPTION="quilt patch manager"
+HOMEPAGE="https://savannah.nongnu.org/projects/quilt"
+SRC_URI="https://savannah.nongnu.org/download/quilt/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x64-solaris"
+IUSE="emacs graphviz elibc_Darwin elibc_SunOS"
+
+RDEPEND="sys-apps/ed
+ dev-util/diffstat
+ graphviz? ( media-gfx/graphviz )
+ elibc_Darwin? ( app-misc/getopt )
+ elibc_SunOS? ( app-misc/getopt )
+ >=sys-apps/coreutils-8.5"
+
+PDEPEND="emacs? ( app-emacs/quilt-el )"
+
+pkg_setup() {
+ use graphviz && return 0
+ echo
+ elog "If you intend to use the folding functionality (graphical illustration of the"
+ elog "patch stack) then you'll need to remerge this package with USE=graphviz."
+ echo
+}
+
+src_unpack() {
+ unpack ${A}
+
+ # Some tests are somewhat broken while being run from within portage, work
+ # fine if you run them manually
+ rm "${S}"/test/delete.test "${S}"/test/mail.test
+}
+
+src_prepare() {
+
+ # Apply bash-competion patch see bug #526294
+ epatch "${FILESDIR}/${P}-bash-completion.patch"
+
+ # Add support for USE=graphviz
+ use graphviz || epatch "${FILESDIR}/${P}-no-graphviz.patch"
+}
+
+src_configure() {
+ local myconf=""
+ [[ ${CHOST} == *-darwin* || ${CHOST} == *-solaris* ]] && \
+ myconf="${myconf} --with-getopt=${EPREFIX}/usr/bin/getopt-long"
+ econf ${myconf}
+}
+
+src_install() {
+ emake BUILD_ROOT="${D}" install || die "make install failed"
+
+ rm -rf "${ED}"/usr/share/doc/${P}
+ dodoc AUTHORS TODO doc/README doc/README.MAIL doc/quilt.pdf
+
+ rm -rf "${ED}"/etc/bash_completion.d
+ newbashcomp bash_completion ${PN}
+
+ # Remove the compat symlinks
+ rm -rf "${ED}"/usr/share/quilt/compat
+
+ # Remove Emacs mode; newer version is in app-emacs/quilt-el, bug 247500
+ rm -rf "${ED}"/usr/share/emacs
+}
diff --git a/dev-util/quilt/quilt-0.65.ebuild b/dev-util/quilt/quilt-0.65.ebuild
new file mode 100644
index 000000000000..40ccf8926d5c
--- /dev/null
+++ b/dev-util/quilt/quilt-0.65.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit bash-completion-r1 eutils
+
+DESCRIPTION="quilt patch manager"
+HOMEPAGE="https://savannah.nongnu.org/projects/quilt"
+SRC_URI="https://savannah.nongnu.org/download/quilt/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x64-solaris"
+IUSE="emacs graphviz elibc_Darwin elibc_SunOS"
+
+RDEPEND="sys-apps/ed
+ dev-util/diffstat
+ graphviz? ( media-gfx/graphviz )
+ elibc_Darwin? ( app-misc/getopt )
+ elibc_SunOS? ( app-misc/getopt )
+ >=sys-apps/coreutils-8.5"
+
+PDEPEND="emacs? ( app-emacs/quilt-el )"
+
+pkg_setup() {
+ use graphviz && return 0
+ echo
+ elog "If you intend to use the folding functionality (graphical illustration of the"
+ elog "patch stack) then you'll need to remerge this package with USE=graphviz."
+ echo
+}
+
+src_prepare() {
+
+ # Add support for USE=graphviz
+ use graphviz || epatch "${FILESDIR}/${P}-no-graphviz.patch"
+}
+
+src_configure() {
+ local myconf=""
+ [[ ${CHOST} == *-darwin* || ${CHOST} == *-solaris* ]] && \
+ myconf="${myconf} --with-getopt=${EPREFIX}/usr/bin/getopt-long"
+ econf ${myconf}
+}
+
+src_install() {
+ emake BUILD_ROOT="${D}" install || die "make install failed"
+
+ rm -rf "${ED}"/usr/share/doc/${P}
+ dodoc AUTHORS TODO doc/README doc/README.MAIL doc/quilt.pdf
+
+ rm -rf "${ED}"/etc/bash_completion.d
+ newbashcomp bash_completion ${PN}
+
+ # Remove the compat symlinks
+ rm -rf "${ED}"/usr/share/quilt/compat
+
+ # Remove Emacs mode; newer version is in app-emacs/quilt-el, bug 247500
+ rm -rf "${ED}"/usr/share/emacs
+}
diff --git a/dev-util/quilt/quilt-9999.ebuild b/dev-util/quilt/quilt-9999.ebuild
new file mode 100644
index 000000000000..4a4042e9a2f0
--- /dev/null
+++ b/dev-util/quilt/quilt-9999.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+EGIT_REPO_URI="git://git.sv.gnu.org/quilt.git"
+
+[[ ${PV} == 9999 ]] && inherit git-2
+
+inherit bash-completion-r1 eutils
+
+DESCRIPTION="quilt patch manager"
+HOMEPAGE="https://savannah.nongnu.org/projects/quilt"
+[[ ${PV} == 9999 ]] || SRC_URI="https://savannah.nongnu.org/download/quilt/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+[[ ${PV} == 9999 ]] || \
+KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x64-solaris"
+IUSE="graphviz elibc_Darwin elibc_SunOS"
+
+RDEPEND="
+ dev-util/diffstat
+ mail-mta/sendmail
+ sys-apps/ed
+ elibc_Darwin? ( app-misc/getopt )
+ elibc_SunOS? ( app-misc/getopt )
+ >=sys-apps/coreutils-8.5
+ graphviz? ( media-gfx/graphviz )
+"
+
+src_prepare() {
+ # Add support for USE=graphviz
+ use graphviz || epatch "${FILESDIR}/${PN}-0.60-no-graphviz.patch"
+
+ # remove failing test, because it fails on root-build
+ rm -rf test/delete.test
+}
+
+src_configure() {
+ local myconf=""
+ [[ ${CHOST} == *-darwin* || ${CHOST} == *-solaris* ]] && \
+ myconf="${myconf} --with-getopt=${EPREFIX}/usr/bin/getopt-long"
+ econf ${myconf}
+}
+
+src_install() {
+ emake BUILD_ROOT="${ED}" install
+
+ rm -rf "${ED}"/usr/share/doc/${P}
+ dodoc AUTHORS TODO quilt.changes doc/README doc/README.MAIL \
+ doc/quilt.pdf
+
+ rm -rf "${ED}"/etc/bash_completion.d
+ newbashcomp bash_completion ${PN}
+
+ # Remove the compat symlinks
+ rm -rf "${ED}"/usr/share/quilt/compat
+
+ # Remove Emacs mode; newer version is in app-emacs/quilt-el, bug 247500
+ rm -rf "${ED}"/usr/share/emacs
+}
+
+pkg_postinst() {
+ if ! has_version app-emacs/quilt-el ; then
+ elog "If you plan to use quilt with emacs consider installing \"app-emacs/quilt-el\""
+ fi
+}
diff --git a/dev-util/radare2/Manifest b/dev-util/radare2/Manifest
new file mode 100644
index 000000000000..58734945eb22
--- /dev/null
+++ b/dev-util/radare2/Manifest
@@ -0,0 +1,21 @@
+AUX radare2-0.9.9-nogit.patch 352 SHA256 cb87e4093d4ace137f48e79d899576e89c91805934b0ad0f0b1c5f4a965332f9 SHA512 5a84c2f768b60dc6ffb35130f409714e0ffc4cbc6fb9e08bc4bf86d28651060398d809fed8abafcd56cabde86aa9e8672df77212f0d8c0b6dfc056b243e1c270 WHIRLPOOL fcbc1358c844e486366f766061b82c2ae72f7d513b2e504e7b488057e88f1af732667a5f02b05a8c8f91642799f3fdd47ad8f17e82f9659377c651d3e8d9c7d7
+AUX radare2-1.1.0-openssl-1.1.0c.patch 917 SHA256 250cd5d020c26627cde4462d98cae74b02e7b3baae2273bcbc0c482a868f1058 SHA512 c3829ce72751dca4d2e24e88d6bf4a03852f23699e5a8f6e64ede4c1304a5f00ba244995950f564531deb6552d9b0f7766cd991ef8205c579fd60db19a722714 WHIRLPOOL 3e2abd56c149bd7c2c68d82b18f2dc83728dbf0786ed4edae28cc1b3c54a03be7d76263911d0603bebbb73f2c018fc87cdda0f2116c607a2a718a8e8120badf1
+DIST radare2-0.10.6.tar.xz 5082028 SHA256 8e887526b22bdf7839fe10779c8da11d6156a5999382c2fa7bf6791a3f6a9d45 SHA512 1e33a831244c8bfc6ab317ed74ec108730f361550f504d48d8783e6c3bfc2ce98e4feac08b37b4b8997f0a83a456fe26685c6f4847798dea841a97b259dcef8b WHIRLPOOL 360d5ec9fd5fa02a7dca12a8bb5f388e1684419d757bd0767f33ec56e60354d3dafbca440e3d0b584d37a42a9aba12e6465f42acab71af2c584c30ccf3bb4f6b
+DIST radare2-1.0.2.tar.xz 5014612 SHA256 91fde12126e29bf8bbd6c4aad9e5b226b96afd289e55a52db3df872dc580a294 SHA512 cd60246aaf612818f8bc9fc77ce746a33b92b28ba7ee80988d56f7060dfa26072ada17a01b56c32d6d1f2bc2d98781c806a86f9e1e38aaf5c400ed54aaaff9b1 WHIRLPOOL 5c3f23fd938235d526345f3df2c3dafb5fa29a290bb96cdda79682057e37bca585fb5542cd2eb3d600e7b9a4901fb45b2bb8148c7f328053f99a08f7da43335e
+DIST radare2-1.1.0.tar.gz 8438634 SHA256 7bc1e206a2b4def6bdb8684c2af0281b007986a0b5b5da652bd03be264ca0fa5 SHA512 a99ac488f78c52fa9d6fbfe095b0aae10864f4a591721ee3679310ada3ef5e2a069ad919d1f7472d0dcd2c78569aac584086a7e975f1946194b346c94e4873b7 WHIRLPOOL 0d00f06eac3c6a7f3db1b4dc6b728714c73ea35eb5bbdd8281fe01052bd8519e19f8737c794c51f098d1fde9feaa8f1f7959815afad7a87ea8aaab36e862f834
+DIST radare2-1.2.0.tar.gz 8461187 SHA256 3660f4f8c1490194f5b5b80d7e21e1cc507e6aff2551008074e632c22549b941 SHA512 8419d92c9db2f1312bb188317af53497a75e0c78504d6b9c3fee7cb90f9219d6801543a2bc68f2dd3fc846d75ba60ce3f8d4cde61c99ec1e3c5f63c8c2b8dd88 WHIRLPOOL 1cc31557e4a6882251a517b24f5df59fb2fb9ad083e6670c42d392ab79a8ffd0d56f11f82512ee59f1c233edef3b3c5b08cbbb936ffe5e22753889987e313c2f
+DIST radare2-1.3.0.tar.gz 8517265 SHA256 adf9bbfb36b5cff986e8218455d75d7410e41e2fb4a380b99d1bcf6d36dce222 SHA512 ef410f8c5c0b931dab452c50b694313f26898a5f36c8286d18f56889e056658331cee87097a0e3028b8f53f25ec9c4354f6c78a41365a74d5bc67a38a6510174 WHIRLPOOL d3d5877814893308c0aa344740ef857d5814ec465d1f7deee73e226f4e1609ed9a75b3395c92fc382815464d1ceac3409bf09aade9f0f2f74cda93d3b2937ed8
+DIST radare2-1.4.0.tar.gz 8719644 SHA256 bf6e9ad94fd5828d3936563b8b13218433fbf44231cacfdf37a7312ae2b3e93e SHA512 5d022759e53f762094e237a29780d63dc4f39601ceacb22f58206bbb83a38a8938ea2321e49426b03421dcb0f6493a96f18905f8bf81025293f9c1a8087a4a0a WHIRLPOOL a86f5389d4905b970b22cd79b217d71a37a980b780b53078e5bcaf623d66e24999fb77a9d9b527986f5e9193b72f6b158e8dbefbed4d2557bdd9f0abffc88199
+DIST radare2-1.6.0.tar.gz 5752191 SHA256 759d1c65dcd69d1189fc73e427c568ec234a7ca1958c19f5001c255dd31a3787 SHA512 6e1485c4edaa007790c07a8cfe190c4ea3e4df843620e2575587478e60f1be3dacaa0c545c84e135a51d9f7aff61c27f712c0ffa6038b556d347151f2a3cd2bb WHIRLPOOL 6a35b3b58bc5ec248de53ca3970c4791a8d837b330109f832ccd12d0660537ca0fa62101b806dc29f1123bd48d4139bd7ef1856f5fdbd31afe67daea384f1872
+EBUILD radare2-0.10.6.ebuild 735 SHA256 f79177878d006c8f99296f6a807ea9347b7d7e662e3d8c3bbb96433873297a70 SHA512 9d49a23c3cccab934b84a121c6621ac1660dfb3815dadabb773bfb76ba60560d6f58d5d0b3a193f2c69f3522fd5935d2f1dab7ce37a1b5bf61eb26eb28229777 WHIRLPOOL 6fd83e33c8bba1de1d42fffd2fc9916b363fba09b552efe6eaac75ebce94330114c87a45d79817a54295fbde5afe9d97e72fd2db3f38c77a5856e804be350696
+EBUILD radare2-1.0.2.ebuild 735 SHA256 f79177878d006c8f99296f6a807ea9347b7d7e662e3d8c3bbb96433873297a70 SHA512 9d49a23c3cccab934b84a121c6621ac1660dfb3815dadabb773bfb76ba60560d6f58d5d0b3a193f2c69f3522fd5935d2f1dab7ce37a1b5bf61eb26eb28229777 WHIRLPOOL 6fd83e33c8bba1de1d42fffd2fc9916b363fba09b552efe6eaac75ebce94330114c87a45d79817a54295fbde5afe9d97e72fd2db3f38c77a5856e804be350696
+EBUILD radare2-1.1.0.ebuild 791 SHA256 bb682c299a3e9d5418de0f45fd7513d3b8f476f81241ee18e5e99924ea9a49cb SHA512 05f625d98263a245b72f097b3d3823c2291638fe577c9d97aefa0a1db3aba177214b73b214522b7adca1a2332f802dff77c377f00c0220699066d2ac7ceb1f8f WHIRLPOOL 3fc6021d118d162c70be8ff1aa0afe0ec8183bc61b6fd51e1d896bb16d32e87a90c605075c4d19b4be51f77b2669ae68de69d96112e56d2ac832d4a141c4ecbc
+EBUILD radare2-1.2.0.ebuild 733 SHA256 262aa204d848d6b123b3d57998ddf92c461d3ac85dba09af95f0197dac19c6f1 SHA512 09ecdc22c51553047632a38db89185ca32d1cf3597a09d12c532db56f37f4b62e6a2523222e4f78219fa761048005a8d2d27a2e5b383f5cd75b0c23b97c1e77e WHIRLPOOL a32d29b35591d22266558ea21694a72c9b11bdc5cfb7a341cbbe5504da925b5fc00207547da0ae4da689509505b93f5c11a0d4f5ca2dca224987348359a80999
+EBUILD radare2-1.3.0.ebuild 733 SHA256 262aa204d848d6b123b3d57998ddf92c461d3ac85dba09af95f0197dac19c6f1 SHA512 09ecdc22c51553047632a38db89185ca32d1cf3597a09d12c532db56f37f4b62e6a2523222e4f78219fa761048005a8d2d27a2e5b383f5cd75b0c23b97c1e77e WHIRLPOOL a32d29b35591d22266558ea21694a72c9b11bdc5cfb7a341cbbe5504da925b5fc00207547da0ae4da689509505b93f5c11a0d4f5ca2dca224987348359a80999
+EBUILD radare2-1.4.0-r1.ebuild 837 SHA256 17d601d343d2c6f1217fe81ddd96cef3240d84391557ea21d620eb6801a8a18b SHA512 e0148f02ceabc72b08617f338e64a35397081cc880974c7b5d43def77b66c46663ac5b6e5ff4825f2c64dd9e770a358f87dd70f0da849cf31730069e6da10606 WHIRLPOOL 679e214742a245a94b6eef1f41f1a76967b65e410737668d7dc2a4970e8e860d0b834fbe82363d7c5561b50191aafc720834a5d993964606ca33236f820bcb8c
+EBUILD radare2-1.4.0.ebuild 837 SHA256 17d601d343d2c6f1217fe81ddd96cef3240d84391557ea21d620eb6801a8a18b SHA512 e0148f02ceabc72b08617f338e64a35397081cc880974c7b5d43def77b66c46663ac5b6e5ff4825f2c64dd9e770a358f87dd70f0da849cf31730069e6da10606 WHIRLPOOL 679e214742a245a94b6eef1f41f1a76967b65e410737668d7dc2a4970e8e860d0b834fbe82363d7c5561b50191aafc720834a5d993964606ca33236f820bcb8c
+EBUILD radare2-1.6.0.ebuild 861 SHA256 399475512ae8f5e572c2f6e329a34192a6560926f33a76dbfa7358a8ae018be2 SHA512 b1f9c7dc798d5e47dc0ef34de6d574aceecdfd24b495ce93268ef6938ca43ea229dd2071687acab5c4e883591516300fb18157b7c24cb761a48eefc441020a45 WHIRLPOOL ad58c41e71e005272ad393388b85ba929503ad91b393e3dab765e155c0871d4a7822d054a1a53cf0b1e9d44faa642d5a99899d89f850c8ae01b566f8cc8fc6cf
+EBUILD radare2-9999.ebuild 666 SHA256 e8ab43a4f5887381d3d9d70442297185ff6785b5fe227bb87521b5d566d78bba SHA512 cafa5ff6e8d1c25371228260accf564ff3aaae72e0571a67070537aaa18add189eec8d257c238e39c4466b5b4324c34b6b846f157e96a0252c52fd062262179e WHIRLPOOL 8728c126d84b36b3f50b205c9b534dc3492f2450989937f09bd9c63f46cc92c237fd54e7c10737e36ce345efeee47ad4978be9f246f9af6f7d712c0ae3cfabc4
+MISC ChangeLog 4607 SHA256 0849da5ab6d072ad7593d03e9b9b22d917dd2595cfbf2c13f24428ad36d2dca0 SHA512 eed5b7c00d816f0704b108ab36b69cb017ee2db9765c1faec063d4cf1d7b51d707c6d3cd94e29b754327cf9a786aa8e2337e327e1fb2b2dcce2c295307bac9d2 WHIRLPOOL 164b4dc5cd791295f748fed843fc23bb2108da6bc7d844cf83e862536ede59edcabca277462a964ae14bb373328c77ccb3f01125dd3205d0843e589d45d094e2
+MISC ChangeLog-2015 791 SHA256 4dd712e34e1b2e2ab9be03f8f9ad678dfd8e6a26da95bb9ae76c9a4f2d618430 SHA512 b618b8c70903664d4f78ce1318761460114c52a6b83320f22bef114988919a3c5a9961e01c16b40a1e0b063f4a4f7e367af93c9977dfb0c2d675e3c325541198 WHIRLPOOL 694b555dd75664961bee62ad4fe60394ad7a38e757c5d67218a174c46811557b10271575ee62c2be1617f3019b3e703dbcda281d159cb6d2c8af093ab1f60e9e
+MISC metadata.xml 472 SHA256 ca3ab277752c9a2b90825a7cdfbeb2860c69f67baa3eec158028d0c74c9e22b8 SHA512 110f9ec2d6dddd20703b9cf6ec8cd77e2459f67aca74065211dc30888cea9c9154128da8a2f15810063de9c4867e3e1a31658d3c5cb27be44824342784b67365 WHIRLPOOL 3c1f8372953016360880cf500de78526a1ece9b5386616e740fb91ca1790db56abac41da6665b4390ae024457af4e443cc95b1f259845975b8a2981dc3afbfd0
diff --git a/dev-util/radare2/files/radare2-0.9.9-nogit.patch b/dev-util/radare2/files/radare2-0.9.9-nogit.patch
new file mode 100644
index 000000000000..9a6979e348a4
--- /dev/null
+++ b/dev-util/radare2/files/radare2-0.9.9-nogit.patch
@@ -0,0 +1,13 @@
+capstone-sync does not work correctly for release tarballs.
+It tries to sync/revert from upstream git repo unconditionaly.
+diff --git a/shlr/Makefile b/shlr/Makefile
+index a1796ce..f8d179a 100644
+--- a/shlr/Makefile
++++ b/shlr/Makefile
+@@ -144,5 +144,5 @@ else
+
+ ifeq ($(CS_TAR),)
+-capstone: capstone-sync
++capstone: # capstone-sync
+
+ capstone-sync:
diff --git a/dev-util/radare2/files/radare2-1.1.0-openssl-1.1.0c.patch b/dev-util/radare2/files/radare2-1.1.0-openssl-1.1.0c.patch
new file mode 100644
index 000000000000..28e2f55126f8
--- /dev/null
+++ b/dev-util/radare2/files/radare2-1.1.0-openssl-1.1.0c.patch
@@ -0,0 +1,31 @@
+commit ecd8cf26c2647a1f455595209fcf2d6bfb72240f
+Author: eroen <eroen@users.noreply.github.com>
+Date: Tue Jan 3 23:45:07 2017 +0100
+
+ Disable deprecated initialization for openssl 1.1.0 (#6423)
+
+ Openssl 1.1.0 handles this initialization internally. Leaving the calls in
+ place causes "undefined reference" errors if openssl was built with
+ `--api=1.1.0`.
+
+ X-Gentoo-Bug: 604576
+ X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=604576
+
+diff --git a/libr/socket/socket.c b/libr/socket/socket.c
+index 1e30120fb..1ba87e77e 100755
+--- a/libr/socket/socket.c
++++ b/libr/socket/socket.c
+@@ -116,11 +116,13 @@ R_API RSocket *r_socket_new (int is_ssl) {
+ s->sfd = NULL;
+ s->ctx = NULL;
+ s->bio = NULL;
++#if OPENSSL_VERSION_NUMBER < 0x1010000fL
+ if (!SSL_library_init ()) {
+ r_socket_free (s);
+ return NULL;
+ }
+ SSL_load_error_strings ();
++#endif
+ }
+ #endif
+ return s;
diff --git a/dev-util/radare2/metadata.xml b/dev-util/radare2/metadata.xml
new file mode 100644
index 000000000000..dc1faaf6b746
--- /dev/null
+++ b/dev-util/radare2/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>slyfox@gentoo.org</email>
+ <name>Sergei Trofimovich</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>davidroman96@gmail.com</email>
+ <name>David Roman</name>
+ </maintainer>
+ <use>
+ <flag name='system-capstone'>Use <pkg>dev-libs/capstone</pkg> instead of bundled copy.</flag>
+ </use>
+</pkgmetadata>
diff --git a/dev-util/radare2/radare2-0.10.6.ebuild b/dev-util/radare2/radare2-0.10.6.ebuild
new file mode 100644
index 000000000000..17b40b0741fb
--- /dev/null
+++ b/dev-util/radare2/radare2-0.10.6.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils
+
+DESCRIPTION="Advanced command line hexadecimal editor and more"
+HOMEPAGE="http://www.radare.org"
+SRC_URI="http://www.radare.org/get/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="ssl"
+
+RDEPEND="
+ ssl? ( dev-libs/openssl:= )
+"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+"
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-0.9.9-nogit.patch
+}
+
+src_configure() {
+ econf \
+ $(use_with ssl openssl)
+}
+
+src_install() {
+ # a workaround for unstable $(INSTALL) call, bug #574866
+ local d
+ for d in doc/*; do
+ if [[ -d $d ]]; then
+ rm -rfv "$d" || die "failed to delete '$d'"
+ fi
+ done
+
+ default
+}
diff --git a/dev-util/radare2/radare2-1.0.2.ebuild b/dev-util/radare2/radare2-1.0.2.ebuild
new file mode 100644
index 000000000000..17b40b0741fb
--- /dev/null
+++ b/dev-util/radare2/radare2-1.0.2.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils
+
+DESCRIPTION="Advanced command line hexadecimal editor and more"
+HOMEPAGE="http://www.radare.org"
+SRC_URI="http://www.radare.org/get/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="ssl"
+
+RDEPEND="
+ ssl? ( dev-libs/openssl:= )
+"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+"
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-0.9.9-nogit.patch
+}
+
+src_configure() {
+ econf \
+ $(use_with ssl openssl)
+}
+
+src_install() {
+ # a workaround for unstable $(INSTALL) call, bug #574866
+ local d
+ for d in doc/*; do
+ if [[ -d $d ]]; then
+ rm -rfv "$d" || die "failed to delete '$d'"
+ fi
+ done
+
+ default
+}
diff --git a/dev-util/radare2/radare2-1.1.0.ebuild b/dev-util/radare2/radare2-1.1.0.ebuild
new file mode 100644
index 000000000000..93ff4e14e4ef
--- /dev/null
+++ b/dev-util/radare2/radare2-1.1.0.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils
+
+DESCRIPTION="Advanced command line hexadecimal editor and more"
+HOMEPAGE="http://www.radare.org"
+SRC_URI="http://cloud.radare.org/get/${PV}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="ssl"
+
+RDEPEND="
+ ssl? ( dev-libs/openssl:= )
+"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+"
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-0.9.9-nogit.patch
+ epatch "${FILESDIR}"/${P}-openssl-1.1.0c.patch
+}
+
+src_configure() {
+ econf \
+ $(use_with ssl openssl)
+}
+
+src_install() {
+ # a workaround for unstable $(INSTALL) call, bug #574866
+ local d
+ for d in doc/*; do
+ if [[ -d $d ]]; then
+ rm -rfv "$d" || die "failed to delete '$d'"
+ fi
+ done
+
+ default
+}
diff --git a/dev-util/radare2/radare2-1.2.0.ebuild b/dev-util/radare2/radare2-1.2.0.ebuild
new file mode 100644
index 000000000000..fa1392fa1166
--- /dev/null
+++ b/dev-util/radare2/radare2-1.2.0.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils
+
+DESCRIPTION="Advanced command line hexadecimal editor and more"
+HOMEPAGE="http://www.radare.org"
+SRC_URI="http://cloud.radare.org/get/${PV}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="ssl"
+
+RDEPEND="
+ ssl? ( dev-libs/openssl:0= )
+"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.9.9-nogit.patch
+)
+
+src_configure() {
+ econf \
+ $(use_with ssl openssl)
+}
+
+src_install() {
+ # a workaround for unstable $(INSTALL) call, bug #574866
+ local d
+ for d in doc/*; do
+ if [[ -d $d ]]; then
+ rm -rfv "$d" || die "failed to delete '$d'"
+ fi
+ done
+
+ default
+}
diff --git a/dev-util/radare2/radare2-1.3.0.ebuild b/dev-util/radare2/radare2-1.3.0.ebuild
new file mode 100644
index 000000000000..fa1392fa1166
--- /dev/null
+++ b/dev-util/radare2/radare2-1.3.0.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils
+
+DESCRIPTION="Advanced command line hexadecimal editor and more"
+HOMEPAGE="http://www.radare.org"
+SRC_URI="http://cloud.radare.org/get/${PV}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="ssl"
+
+RDEPEND="
+ ssl? ( dev-libs/openssl:0= )
+"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.9.9-nogit.patch
+)
+
+src_configure() {
+ econf \
+ $(use_with ssl openssl)
+}
+
+src_install() {
+ # a workaround for unstable $(INSTALL) call, bug #574866
+ local d
+ for d in doc/*; do
+ if [[ -d $d ]]; then
+ rm -rfv "$d" || die "failed to delete '$d'"
+ fi
+ done
+
+ default
+}
diff --git a/dev-util/radare2/radare2-1.4.0-r1.ebuild b/dev-util/radare2/radare2-1.4.0-r1.ebuild
new file mode 100644
index 000000000000..397bcc5a11f2
--- /dev/null
+++ b/dev-util/radare2/radare2-1.4.0-r1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils
+
+DESCRIPTION="Advanced command line hexadecimal editor and more"
+HOMEPAGE="http://www.radare.org"
+SRC_URI="http://cloud.radare.org/get/${PV}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="ssl +system-capstone"
+
+RDEPEND="
+ ssl? ( dev-libs/openssl:0= )
+ system-capstone? ( dev-libs/capstone:0= )
+"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.9.9-nogit.patch
+)
+
+src_configure() {
+ econf \
+ $(use_with ssl openssl) \
+ $(use_with system-capstone syscapstone)
+}
+
+src_install() {
+ # a workaround for unstable $(INSTALL) call, bug #574866
+ local d
+ for d in doc/*; do
+ if [[ -d $d ]]; then
+ rm -rfv "$d" || die "failed to delete '$d'"
+ fi
+ done
+
+ default
+}
diff --git a/dev-util/radare2/radare2-1.4.0.ebuild b/dev-util/radare2/radare2-1.4.0.ebuild
new file mode 100644
index 000000000000..397bcc5a11f2
--- /dev/null
+++ b/dev-util/radare2/radare2-1.4.0.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils
+
+DESCRIPTION="Advanced command line hexadecimal editor and more"
+HOMEPAGE="http://www.radare.org"
+SRC_URI="http://cloud.radare.org/get/${PV}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="ssl +system-capstone"
+
+RDEPEND="
+ ssl? ( dev-libs/openssl:0= )
+ system-capstone? ( dev-libs/capstone:0= )
+"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.9.9-nogit.patch
+)
+
+src_configure() {
+ econf \
+ $(use_with ssl openssl) \
+ $(use_with system-capstone syscapstone)
+}
+
+src_install() {
+ # a workaround for unstable $(INSTALL) call, bug #574866
+ local d
+ for d in doc/*; do
+ if [[ -d $d ]]; then
+ rm -rfv "$d" || die "failed to delete '$d'"
+ fi
+ done
+
+ default
+}
diff --git a/dev-util/radare2/radare2-1.6.0.ebuild b/dev-util/radare2/radare2-1.6.0.ebuild
new file mode 100644
index 000000000000..6edc67c9c1f3
--- /dev/null
+++ b/dev-util/radare2/radare2-1.6.0.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils
+
+DESCRIPTION="Advanced command line hexadecimal editor and more"
+HOMEPAGE="http://www.radare.org"
+SRC_URI="https://github.com/radare/radare2/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="ssl +system-capstone"
+
+RDEPEND="
+ ssl? ( dev-libs/openssl:0= )
+ system-capstone? ( dev-libs/capstone:0= )
+"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.9.9-nogit.patch
+)
+
+src_configure() {
+ econf \
+ $(use_with ssl openssl) \
+ $(use_with system-capstone syscapstone)
+}
+
+src_install() {
+ # a workaround for unstable $(INSTALL) call, bug #574866
+ local d
+ for d in doc/*; do
+ if [[ -d $d ]]; then
+ rm -rfv "$d" || die "failed to delete '$d'"
+ fi
+ done
+
+ default
+}
diff --git a/dev-util/radare2/radare2-9999.ebuild b/dev-util/radare2/radare2-9999.ebuild
new file mode 100644
index 000000000000..4c5adb60d123
--- /dev/null
+++ b/dev-util/radare2/radare2-9999.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+is_live() { [[ ${PV} == 9999* ]]; }
+
+is_live && inherit git-r3
+
+DESCRIPTION="Advanced command line hexadecimal editor and more"
+HOMEPAGE="http://www.radare.org"
+is_live || SRC_URI="http://www.radare.org/get/${P}.tar.xz"
+EGIT_REPO_URI="https://github.com/radare/radare2"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="ssl +system-capstone"
+
+RDEPEND="
+ ssl? ( dev-libs/openssl:0= )
+ system-capstone? ( dev-libs/capstone:0= )
+"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+"
+
+src_configure() {
+ econf \
+ $(use_with ssl openssl) \
+ $(use_with system-capstone syscapstone)
+}
diff --git a/dev-util/ragel/Manifest b/dev-util/ragel/Manifest
new file mode 100644
index 000000000000..8c90f7b5e311
--- /dev/null
+++ b/dev-util/ragel/Manifest
@@ -0,0 +1,17 @@
+AUX ragel-6.7+gcc-4.7.patch 5585 SHA256 bcdee795c9a063d4a42f49f2ba642a922aa705769c455b9b375bfab47c7e137c SHA512 160aea4100328accbe423e98f7f5741309b9e293aea992f287cb5d9fab25ae74c76933e924658dd4670d317b01e76d37c3defeeb47ada07370b819a16515ebf4 WHIRLPOOL 332ea976cc95139491b767ce31142a8408fbf79cdd16434c7527c270fe42cc1911581124fde5a33dcefe4d61a78c2ea38f0e484015d0fe3b40611305da45c46b
+AUX ragel-6.7-cross-compile.patch 576 SHA256 b393221908d6524567c2b9a08e51e8b1998313ac457a7a04ac3d00db031b84d5 SHA512 0ab26720537bdb77194159145d5fc2e01ee96f3d197d947693141e0559e18b4da3ac7b058d7de4a9d4d9cf9c4ab63649839da359ed3aabcb5ea7163ec975d5b1 WHIRLPOOL 0b38984463c4178cbeca5c6253eb9da992d0e095df22ecf97a6894e5660a846bc6adbc657ec04de554f4263ad3816afafb939a54047f85e4da00a123d8482059
+DIST ragel-6.10.tar.gz 1232993 SHA256 5f156edb65d20b856d638dd9ee2dfb43285914d9aa2b6ec779dac0270cd56c3f SHA512 6c1fe4f6fa8546ae28b92ccfbae94355ff0d3cea346b9ae8ce4cf6c2bdbeb823e0ccd355332643ea72d3befd533a8b3030ddbf82be7ffa811c2c58cbb01aaa38 WHIRLPOOL 12f8557fb665dba46d63ddb05d0dab87b990e6743471652bb608dfcb7cb24dafb4105e42cc91897cde4cad2c2fb58f50d5fbed68a468ca9fc33e5b1047d36f74
+DIST ragel-6.7.tar.gz 1182734 SHA256 46df8e3f117a730f8896061c95ea8e8f53e9789cb053c2eea047833724fd7a30 SHA512 a85c1d5d4fd7d903c823c2ddc8b5f1d5dd5f715f11bc04f10fb78ea5632b3aa33c5b4861f89179fa9d6b4944484216ee93bbd25dd0b5958d2419e434b781b78a WHIRLPOOL 52f1614e16390949fe070df46c9929b5871e35923b38e6c277f0d4688e45f610a16a6635240cea0622892c675aebf092e3f6a9c626684ed1a4af8191ff3c6d6f
+DIST ragel-6.8.tar.gz 1211146 SHA256 dd7f7d22f3a58147379bda61334d341c2caa0caf9f71897e3e4ec05c8f398764 SHA512 3c7fa4ca0cfcd5d19e0ff8746ca427f5a1eefb0af09db5d2ee55ced9bcc35c588a5db146dcfdec46b83fb63d94ff9ace117b4cfcb07e2c57aec67a6cbe249458 WHIRLPOOL 540ba0c5a712ae0426982e08e7aa7b1fa1ff33e3d9c2095353939ed2c45e04048ebcdf93292ead8e70abbd8fa230dddbfeea8d485955142d0615ddb94c8a0b9a
+DIST ragel-6.9.tar.gz 1226871 SHA256 6e07be0fab5ca1d9c2d9e177718a018fc666141f594a5d6e7025658620cf660a SHA512 46886a37fa0b785574c03ba6581d99bbeaa11ca65cf4fdc37ceef42f4869bd695694cd69b4b974a25cf539f004cb106e3debda17fc26e1a9a6a4295992733dbd WHIRLPOOL c802e3020842b28ecfe604ca13c8f205ed98fb4c180c65a88be9001e7b73dc4facc6a716f55623da4f9c7cdc43c79d958c4c26fa89622bdabf9b3989e0c9682e
+DIST ragel-7.0.0.10.tar.gz 779503 SHA256 40562bcac66a22dbea8357a35745bbcb1ab596c262d8691145ee11aafa6f8dec SHA512 2d1d4c469d8581239ec21f128e94ab452b398903302f82ef59ce03d6fb89bc89de6441dbe53ea99d7689866f7aec485ab1ec9c537908f21eb1394650b55413ba WHIRLPOOL d99108785163de286d426d805409a23c6ac7d82ea2887e6900ab184758bad3945ccdc1a692c3577ccb084c492c2fe7e8052e45ecc622fe754f08dc8da9f85fc2
+DIST ragel-7.0.0.9.tar.gz 850078 SHA256 b9e6cac5d388398ac05d8ef15a07628f5e6de292e39f5ad92b8176379e8352f0 SHA512 87de7d41af4a08f09d422a0e58820f9b5b1218acc4733c58690feea4f872790813b5f2d7505ce147a2a6e1bcd341926c35fed7c6b55f543bdf864b119868bcde WHIRLPOOL 0ae6c3d589caf967c30d9ccc30a6801cdf55032aa7f2939dc101e6ca3ef5b3e15df4a311164128bca63f9d2e3500d601739b9296a276de3b3b58755e5db0d646
+EBUILD ragel-6.10.ebuild 961 SHA256 41a23dd81825ef78265e00506641857277484f3078a3b47eaba638f93aae6545 SHA512 565f9f5c0da6b27d8147b786b45f27dba1ace9b524dafa8014dcacc5cb26100a191214f3588949156e96e514a12bbfd5a170e295c7bc52f133d28c934194a239 WHIRLPOOL 34f7adfaeeb65338871a07159d25edf35a956a901c898ea6c34fcef6d41b3524b7d6a9ef85b734334ac8f9b3d6261955eed2d6fb7bc4599d36aa0efacaafda4f
+EBUILD ragel-6.7-r1.ebuild 1152 SHA256 e99b2083ae13a8d1a7d784b5a9cb4a6e02fa4d91a35dd5184c31d190813acc9e SHA512 46bee68ca0e22ef5f64a827af52f3dc14374920a31e2817a4430726bb2278447b0515acf1e0b77d58e3a6330e580f71c735e2170e4503734dd31186c10907822 WHIRLPOOL 92150dac5227a015f614531a3670e713167233b27067644ad98788d5d8e0fd49ae44a5ed05edfeda66f5ea0ff76f1befd3ab47903e4ca351839d3b894cd5ff31
+EBUILD ragel-6.8.ebuild 1094 SHA256 507b280002f2df0a5a5cde11713ebce68d9d2f07a9936c39efe5e9ed475e6db3 SHA512 f290a2edb43b60b52a563927343cb5f3672dcac30a598b6e95afe66858cfb33f0af5bc1d960e9b8efc05e9eea9a369045fe8dc7dc77abd596813d80f324d03ce WHIRLPOOL 77384425e2ecfbfc453a876e43387533ff7c97773bf42f6348f83f3745d7751a177f38c172ef574ec81195f4d0b1bdf7b876f7341dfc1ba4d2684df900cdfaca
+EBUILD ragel-6.9.ebuild 966 SHA256 d96f2cfa1bf988e10b3ff77cb4dfaba1dfc93d59d9351e33d8d859c7d0bd5f95 SHA512 14f09d54403f9eb38ad6a6b2640940475514a819f134102920c57700327886094aa94c723e829076540e9cef02b763c6e2204bc665f9ab80aa60f5d47ccff41a WHIRLPOOL 6ff83b36c3401f88b9d6be1a27f78bae62bf35cbe8306edde993297cd5d550bfebd90688a330087998cc8fa6ee7af059b01748a4a85cae3f626aa450b7e0d90b
+EBUILD ragel-7.0.0.10.ebuild 627 SHA256 2f6d1b55711efc362534ec9cda95bbd57b2ebff59996f1dd868a37dc24a8a693 SHA512 023290b91413f0a249aa409de73a22ab622290c81281f699187ea64ceb6393819a9e0e4b9b2eecaf5c25d519d09ba080f7bfbe085dc86c228ab3f7400980d9d5 WHIRLPOOL 2d77548ed757d8649161be1ed31bf4800f601ea5e46fe393dfc6a82e52dba8d8a677232679e054dd28ebdfae3a18fb8be97e1031b69aa23b251effdae6b110b9
+EBUILD ragel-7.0.0.9.ebuild 627 SHA256 d509a44548536bd7cc12b55ac8f52d569122c24ebbfb07695d94b96c2c661030 SHA512 1f88ee8f0bac60c073a2be525ea1dcc9128961d8383f36d992121064746d7c154b1338f4582797145fe782485c8d322119aa7ac8ee903315d056cf17a635a3c6 WHIRLPOOL bee7b21c1a50a04d560356cc78f330311e0fecaca759dc362920707354ebc14d50e4e6ce6a49bdda1b20acc28c39a1c683e1c4221c2271021fbefed8c4f15945
+MISC ChangeLog 2452 SHA256 de1aaa84731ddf8bb9a0f59127336b3572e841557624e6b63716af57e0c1732e SHA512 1ba6a8f3da6816e4bc8a4ef01109880fa81947be416578550323abeb8081e22f9d9386b8059b57cc33ce7e181630b6d113710511d59a7b915988a9dcad070a22 WHIRLPOOL 7e83a1608239a2fec6e67ef79ea847a91c1209458a09ff80dc68b9773dabf53753add3ad404291ba6bcbad164ff830a36be90efb6357167cc7f45681c093f22e
+MISC ChangeLog-2015 8753 SHA256 cad31226ac0f9cf7ac2b4c3bcc73f16406134bcec3b637590dbb4ae2a4ccd9eb SHA512 a729de49be76d99ea81b05f583308113b0c37fc32e65e7ba93ab4c74fd579df2c0e087cbdc217669b1354384f4d504a58676d213a08b4e0b3cd7c9682704c573 WHIRLPOOL aa4f81564f7fb23fed6a32caf1457c9b604baa90f3afbf6ae5db48c477618034cf56178a0a21cd1a9653f7b9ed30b9231424c94ff75c36e52cd00d34a86b28e1
+MISC metadata.xml 222 SHA256 6c24a139c34c4a4e9e995ed2cd115a74f67aeafa57d23bcd34cc1f34a23c3cab SHA512 f5b07576edb64cee121aab00dd2a5f0c080fa947e00b6ff6ad6c514a82c132230426ca81e3430d7785c212786f7ead5f6c3f48e58478507df7d96a4e734168ab WHIRLPOOL a90afbba69e90a6040018c2494e46c9d6a416c5c050eab323cbd2e447fb68478d690fc5779764ce7edff97f6fcebc353aab4dc9784a6f159812d62046bfd8e1a
diff --git a/dev-util/ragel/files/ragel-6.7+gcc-4.7.patch b/dev-util/ragel/files/ragel-6.7+gcc-4.7.patch
new file mode 100644
index 000000000000..80eb29a46f05
--- /dev/null
+++ b/dev-util/ragel/files/ragel-6.7+gcc-4.7.patch
@@ -0,0 +1,178 @@
+From 27454d1e55b2a5cefc3cc1044d036add9ee9a6d3 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= <flameeyes@flameeyes.eu>
+Date: Tue, 22 May 2012 16:25:37 -0700
+Subject: [PATCH] aapl: fix building with gcc-4.7.0
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Starting with GCC 4.7, you have to explicit methods inherited from
+base templates, otherwise it will refuse to build.
+
+---
+
+The URL reported in the README is no longer registered, so I couldn't
+find a way to report this to an upstream project.
+
+Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.eu>
+---
+ aapl/avlcommon.h | 12 ++++++------
+ aapl/bstcommon.h | 16 ++++++++--------
+ aapl/bubblesort.h | 2 +-
+ aapl/mergesort.h | 2 +-
+ 4 files changed, 16 insertions(+), 16 deletions(-)
+
+diff --git a/aapl/avlcommon.h b/aapl/avlcommon.h
+index 06983bc..2e3c190 100644
+--- a/aapl/avlcommon.h
++++ b/aapl/avlcommon.h
+@@ -881,9 +881,9 @@ template <AVLMEL_TEMPDEF> Element *AvlTree<AVLMEL_TEMPUSE>::
+ }
+
+ #ifdef AVL_BASIC
+- keyRelation = compare( *element, *curEl );
++ keyRelation = this->compare( *element, *curEl );
+ #else
+- keyRelation = compare( element->BASEKEY(getKey()),
++ keyRelation = this->compare( element->BASEKEY(getKey()),
+ curEl->BASEKEY(getKey()) );
+ #endif
+
+@@ -920,7 +920,7 @@ template <AVLMEL_TEMPDEF> Element *AvlTree<AVLMEL_TEMPUSE>::
+ long keyRelation;
+
+ while (curEl) {
+- keyRelation = compare( *element, *curEl );
++ keyRelation = this->compare( *element, *curEl );
+
+ /* Do we go left? */
+ if ( keyRelation < 0 )
+@@ -969,7 +969,7 @@ template <AVLMEL_TEMPDEF> Element *AvlTree<AVLMEL_TEMPUSE>::
+ return element;
+ }
+
+- keyRelation = compare( key, curEl->BASEKEY(getKey()) );
++ keyRelation = this->compare( key, curEl->BASEKEY(getKey()) );
+
+ /* Do we go left? */
+ if ( keyRelation < 0 ) {
+@@ -1023,7 +1023,7 @@ template <AVLMEL_TEMPDEF> Element *AvlTree<AVLMEL_TEMPUSE>::
+ return element;
+ }
+
+- keyRelation = compare(key, curEl->getKey());
++ keyRelation = this->compare(key, curEl->getKey());
+
+ /* Do we go left? */
+ if ( keyRelation < 0 ) {
+@@ -1058,7 +1058,7 @@ template <AVLMEL_TEMPDEF> Element *AvlTree<AVLMEL_TEMPUSE>::
+ long keyRelation;
+
+ while (curEl) {
+- keyRelation = compare( key, curEl->BASEKEY(getKey()) );
++ keyRelation = this->compare( key, curEl->BASEKEY(getKey()) );
+
+ /* Do we go left? */
+ if ( keyRelation < 0 )
+diff --git a/aapl/bstcommon.h b/aapl/bstcommon.h
+index 888717f..7c53ff3 100644
+--- a/aapl/bstcommon.h
++++ b/aapl/bstcommon.h
+@@ -361,7 +361,7 @@ template <BST_TEMPL_DEF> bool BstTable<BST_TEMPL_USE>::
+ }
+
+ mid = lower + ((upper-lower)>>1);
+- keyRelation = compare(key, GET_KEY(*mid));
++ keyRelation = this->compare(key, GET_KEY(*mid));
+
+ if ( keyRelation < 0 )
+ upper = mid - 1;
+@@ -373,12 +373,12 @@ template <BST_TEMPL_DEF> bool BstTable<BST_TEMPL_USE>::
+
+ lower = mid - 1;
+ while ( lower != lowEnd &&
+- compare(key, GET_KEY(*lower)) == 0 )
++ this->compare(key, GET_KEY(*lower)) == 0 )
+ lower--;
+
+ upper = mid + 1;
+ while ( upper != highEnd &&
+- compare(key, GET_KEY(*upper)) == 0 )
++ this->compare(key, GET_KEY(*upper)) == 0 )
+ upper++;
+
+ low = (Element*)lower + 1;
+@@ -419,7 +419,7 @@ template <BST_TEMPL_DEF> Element *BstTable<BST_TEMPL_USE>::
+ }
+
+ mid = lower + ((upper-lower)>>1);
+- keyRelation = compare(key, GET_KEY(*mid));
++ keyRelation = this->compare(key, GET_KEY(*mid));
+
+ if ( keyRelation < 0 )
+ upper = mid - 1;
+@@ -457,7 +457,7 @@ template <BST_TEMPL_DEF> Element *BstTable<BST_TEMPL_USE>::
+ }
+
+ mid = lower + ((upper-lower)>>1);
+- keyRelation = compare(key, GET_KEY(*mid));
++ keyRelation = this->compare(key, GET_KEY(*mid));
+
+ if ( keyRelation < 0 )
+ upper = mid - 1;
+@@ -508,7 +508,7 @@ template <BST_TEMPL_DEF> Element *BstTable<BST_TEMPL_USE>::
+ }
+
+ mid = lower + ((upper-lower)>>1);
+- keyRelation = compare(key, GET_KEY(*mid));
++ keyRelation = this->compare(key, GET_KEY(*mid));
+
+ if ( keyRelation < 0 )
+ upper = mid - 1;
+@@ -603,7 +603,7 @@ template <BST_TEMPL_DEF> Element *BstTable<BST_TEMPL_USE>::
+ }
+
+ mid = lower + ((upper-lower)>>1);
+- keyRelation = compare(GET_KEY(el), GET_KEY(*mid));
++ keyRelation = this->compare(GET_KEY(el), GET_KEY(*mid));
+
+ if ( keyRelation < 0 )
+ upper = mid - 1;
+@@ -662,7 +662,7 @@ template <BST_TEMPL_DEF> Element *BstTable<BST_TEMPL_USE>::
+ }
+
+ mid = lower + ((upper-lower)>>1);
+- keyRelation = compare(GET_KEY(el), GET_KEY(*mid));
++ keyRelation = this->compare(GET_KEY(el), GET_KEY(*mid));
+
+ if ( keyRelation < 0 )
+ upper = mid - 1;
+diff --git a/aapl/bubblesort.h b/aapl/bubblesort.h
+index bcc2fb6..f0f4ce5 100644
+--- a/aapl/bubblesort.h
++++ b/aapl/bubblesort.h
+@@ -72,7 +72,7 @@ template <class T, class Compare> void BubbleSort<T,Compare>::
+ changed = false;
+ for ( long i = 0; i < len-pass; i++ ) {
+ /* Do we swap pos with the next one? */
+- if ( compare( data[i], data[i+1] ) > 0 ) {
++ if ( this->compare( data[i], data[i+1] ) > 0 ) {
+ char tmp[sizeof(T)];
+
+ /* Swap the two items. */
+diff --git a/aapl/mergesort.h b/aapl/mergesort.h
+index 68b8426..8cefa73 100644
+--- a/aapl/mergesort.h
++++ b/aapl/mergesort.h
+@@ -110,7 +110,7 @@ template< class T, class Compare> void MergeSort<T,Compare>::
+ }
+ else {
+ /* Both upper and lower left. */
+- if ( compare(*lower, *upper) <= 0 )
++ if ( this->compare(*lower, *upper) <= 0 )
+ memcpy( dest++, lower++, sizeof(T) );
+ else
+ memcpy( dest++, upper++, sizeof(T) );
+--
+1.7.8.6
+
diff --git a/dev-util/ragel/files/ragel-6.7-cross-compile.patch b/dev-util/ragel/files/ragel-6.7-cross-compile.patch
new file mode 100644
index 000000000000..e953a1aeeeef
--- /dev/null
+++ b/dev-util/ragel/files/ragel-6.7-cross-compile.patch
@@ -0,0 +1,21 @@
+https://bugs.gentoo.org/473970
+
+already sent upstream
+
+patch by Jungshik Shin
+
+--- ragel-6.7/configure.in
++++ ragel-6.7/configure.in
+@@ -27,9 +27,9 @@
+
+ dnl Choose defaults for the build_parsers and build_manual vars. If the dist
+ dnl file is present in the root then default to no, otherwise go for it.
+-AC_CHECK_FILES( $srcdir/DIST,
+- [ . $srcdir/DIST; ],
+- [ build_parsers=yes; build_manual=yes; ] )
++
++AS_IF([test -r $srcdir/DIST], [. $srcdir/DIST], [build_parsers=yes;
++ build_manual=yes])
+
+ dnl
+ dnl Enable arg to explicitly control the building of the manual
diff --git a/dev-util/ragel/metadata.xml b/dev-util/ragel/metadata.xml
new file mode 100644
index 000000000000..71e948fffb95
--- /dev/null
+++ b/dev-util/ragel/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>lu_zero@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-util/ragel/ragel-6.10.ebuild b/dev-util/ragel/ragel-6.10.ebuild
new file mode 100644
index 000000000000..349702c305f9
--- /dev/null
+++ b/dev-util/ragel/ragel-6.10.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils autotools autotools-utils
+
+DESCRIPTION="Compiles finite state machines from regular languages into executable code"
+HOMEPAGE="http://www.colm.net/open-source/ragel/"
+SRC_URI="http://www.colm.net/files/ragel/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ia64 ~mips ppc ppc64 ~s390 ~sh ~sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE="vim-syntax"
+
+DEPEND=""
+RDEPEND=""
+
+# We need to get the txl language in Portage to have the tests :(
+RESTRICT=test
+
+DOCS=( ChangeLog CREDITS README TODO )
+
+src_test() {
+ cd "${S}"/test
+ ./runtests.in || die
+}
+
+src_install() {
+ autotools-utils_src_install
+
+ if use vim-syntax; then
+ insinto /usr/share/vim/vimfiles/syntax
+ doins ragel.vim
+ fi
+}
diff --git a/dev-util/ragel/ragel-6.7-r1.ebuild b/dev-util/ragel/ragel-6.7-r1.ebuild
new file mode 100644
index 000000000000..5e3e52d25ccf
--- /dev/null
+++ b/dev-util/ragel/ragel-6.7-r1.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit eutils autotools
+
+DESCRIPTION="Compiles finite state machines from regular languages into executable code"
+HOMEPAGE="http://www.complang.org/ragel/"
+SRC_URI="http://www.complang.org/ragel/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE="vim-syntax"
+
+DEPEND=""
+RDEPEND=""
+
+# We need to get the txl language in Portage to have the tests :(
+RESTRICT=test
+
+DOCS=( ChangeLog CREDITS README TODO )
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}+gcc-4.7.patch
+ epatch "${FILESDIR}"/${P}-cross-compile.patch #473970
+ sed -i -e '/CXXFLAGS/d' configure.in || die
+
+ eautoreconf
+}
+
+src_configure() {
+ econf --docdir="${EPREFIX}"/usr/share/doc/${PF}
+}
+
+src_test() {
+ cd "${S}"/test
+ ./runtests.in || die
+}
+
+src_install() {
+ default
+
+ if use vim-syntax; then
+ insinto /usr/share/vim/vimfiles/syntax
+ doins ragel.vim
+ fi
+}
diff --git a/dev-util/ragel/ragel-6.8.ebuild b/dev-util/ragel/ragel-6.8.ebuild
new file mode 100644
index 000000000000..e5090066d3e8
--- /dev/null
+++ b/dev-util/ragel/ragel-6.8.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils autotools autotools-utils
+
+DESCRIPTION="Compiles finite state machines from regular languages into executable code"
+HOMEPAGE="http://www.complang.org/ragel/"
+SRC_URI="http://www.complang.org/ragel/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE="vim-syntax"
+
+DEPEND=""
+RDEPEND=""
+
+# We need to get the txl language in Portage to have the tests :(
+RESTRICT=test
+
+DOCS=( ChangeLog CREDITS README TODO )
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-6.7-cross-compile.patch #473970
+ sed -i -e '/CXXFLAGS/d' configure.in || die
+
+ eautoreconf
+}
+
+src_test() {
+ cd "${S}"/test
+ ./runtests.in || die
+}
+
+src_install() {
+ autotools-utils_src_install
+
+ if use vim-syntax; then
+ insinto /usr/share/vim/vimfiles/syntax
+ doins ragel.vim
+ fi
+}
diff --git a/dev-util/ragel/ragel-6.9.ebuild b/dev-util/ragel/ragel-6.9.ebuild
new file mode 100644
index 000000000000..bfa5a8aa1948
--- /dev/null
+++ b/dev-util/ragel/ragel-6.9.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils autotools autotools-utils
+
+DESCRIPTION="Compiles finite state machines from regular languages into executable code"
+HOMEPAGE="http://www.colm.net/open-source/ragel/"
+SRC_URI="http://www.colm.net/files/ragel/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE="vim-syntax"
+
+DEPEND=""
+RDEPEND=""
+
+# We need to get the txl language in Portage to have the tests :(
+RESTRICT=test
+
+DOCS=( ChangeLog CREDITS README TODO )
+
+src_test() {
+ cd "${S}"/test
+ ./runtests.in || die
+}
+
+src_install() {
+ autotools-utils_src_install
+
+ if use vim-syntax; then
+ insinto /usr/share/vim/vimfiles/syntax
+ doins ragel.vim
+ fi
+}
diff --git a/dev-util/ragel/ragel-7.0.0.10.ebuild b/dev-util/ragel/ragel-7.0.0.10.ebuild
new file mode 100644
index 000000000000..e9215b2485be
--- /dev/null
+++ b/dev-util/ragel/ragel-7.0.0.10.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Compiles finite state machines from regular languages into executable code"
+HOMEPAGE="https://www.colm.net/open-source/ragel/"
+SRC_URI="https://www.colm.net/files/ragel/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~x86"
+IUSE="vim-syntax"
+
+DEPEND="~dev-util/colm-0.13.0.5"
+RDEPEND="${DEPEND}"
+
+src_test() {
+ cd "${S}"/test || die
+ ./runtests.in || die
+}
+
+src_install() {
+ if use vim-syntax; then
+ insinto /usr/share/vim/vimfiles/syntax
+ doins ragel.vim
+ fi
+ default
+}
diff --git a/dev-util/ragel/ragel-7.0.0.9.ebuild b/dev-util/ragel/ragel-7.0.0.9.ebuild
new file mode 100644
index 000000000000..fb260ba41723
--- /dev/null
+++ b/dev-util/ragel/ragel-7.0.0.9.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Compiles finite state machines from regular languages into executable code"
+HOMEPAGE="https://www.colm.net/open-source/ragel/"
+SRC_URI="https://www.colm.net/files/ragel/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~x86"
+IUSE="vim-syntax"
+
+DEPEND="~dev-util/colm-0.13.0.4"
+RDEPEND="${DEPEND}"
+
+src_test() {
+ cd "${S}"/test || die
+ ./runtests.in || die
+}
+
+src_install() {
+ if use vim-syntax; then
+ insinto /usr/share/vim/vimfiles/syntax
+ doins ragel.vim
+ fi
+ default
+}
diff --git a/dev-util/rats/Manifest b/dev-util/rats/Manifest
new file mode 100644
index 000000000000..40da0a85b020
--- /dev/null
+++ b/dev-util/rats/Manifest
@@ -0,0 +1,9 @@
+AUX rats-2.1-add-getopt-trailing-null.patch 367 SHA256 53ea4b679683af99ddfe1eb997038786caee9e69a3bcbb0f4bc9815a2eb3327d SHA512 50a246a36b7d26d228d5350bbde260792ff7cfcf168038efe284d6c138d25b112f209778fbeb0b118af7c96debadddc59719d73fc373a7e5ce8d1ce3ebec6b36 WHIRLPOOL 2bb5dff198c80641b2a67d549902a961a397a45eaabf8c24934724ffafa1150117388ccb4de9f426523684bd06318a80f6fce0b936317220ed7149e14dac5044
+AUX rats-2.1-fix-null-pointers.patch 3600 SHA256 30753ace2b091bfe802350693279842774d59eb80ccc17a50182b102e01d5a76 SHA512 a1b332a5a436cb4e3b27b8c97f1da582c93ca783b89fc0b0523825fa9046af1916bcfa95704cc3aca3588130139eb61b8c4fd40fba3536997370065387e2e3cf WHIRLPOOL 6d25aa69d9a09361800890d5c0d271a5d8bb587c38bf4be08147dd44fdd292bbe9ba5af0908ccc840b304eb31016576ebedd0d2ac0c8866dd364ba504a501ec5
+DIST rats-2.1.tar.gz 326930 SHA256 ec9fac2765b655c03cede8c5920de3226581f1e626be314bce95f4d0ac9aadd9 SHA512 2fdb670dc9559c453a6c69ee2d411e2626c0ee4cca4b59ceda878142008e136dfd11f8265c0719383212b38b0358a9cab1a29f1cc92a986fc800dd0c46bdf0d3 WHIRLPOOL 376a79cf05aad274296a7a17944ad4f4523e82c0db4c09f201dbcdc306ba803a8e8824cadc2526a05cb448c91ea35020dcd0b3ef56fc71976216b38b50758822
+DIST rats-2.4.tgz 393114 SHA256 2163ad111070542d941c23b98d3da231f13cf065f50f2e4ca40673996570776a SHA512 f402717fc935a2f9c2464e1623807575044258fd998cabc8f115c063141004b5978bad739021f109cbbd1abd84231155eb59671ae202aefb40e1fd6733d8ac6d WHIRLPOOL 78d0f0e1f18db8a4cabc77e50576c8f3040ecba2200b522b9bea0cad3518dba12cec66c539a46eed38fed50963694a68213a3e7874645d751621eb3261cafafb
+EBUILD rats-2.1-r2.ebuild 1017 SHA256 ef9788bcd1b8a8235b1006ba3ce90a90b257eff748e3e871d2b0552caaf5bd95 SHA512 322954d36971597725bd6c5facb436c06ccafd93df788a93ebec2b0ec92900960bf8acfeb22c180c546def22cdea0528831032079d4fa23e3e538617763b1bb6 WHIRLPOOL 8d2f2f1eeacb85a834daf5440a74d84d1637a8e1b95c26f56ee279225c40e9800b8f908687f9380beb2f510794e6e5b7acba68d842d806ad148bcc1eb8564faf
+EBUILD rats-2.4.ebuild 1162 SHA256 43b621578d9006cdbac1cfae3fcb9b93458787e25258fb78308a92e0b6722615 SHA512 96ffe97c9003989173278654195aabceef2562834c215f7d8ca33f6e215fc5dfddb4a3007cf0009c85db6f27d573ea6c4c9c548534baa355a0dfaf7ad690d423 WHIRLPOOL 1846e123dcc7788c3a49a12b6a1ebb93a35035d20ce750614d5b4482f21dd54098ffa2b86e2b65c22d5c4bc7361f64add61c6425ca97c19abe462e82897ac93b
+MISC ChangeLog 2451 SHA256 dda8d48317421c1295dabd0a07032d1d8dbb3ab85a1b984f192e5326283f1c06 SHA512 dfcdcc951962547bc14c98c4b454888682de0c21d4d4230e62c4cb57203347ceaedc39212ba8c3f38e5e9149da85426beebaaeb15535cf231fcb52251b921823 WHIRLPOOL 3c18093eeeb45474fbb500af7d5b886ef3ada187a9cbdd14deb8fde8d1afead211b4f854e6a0709a630d5ee388e44fcd5a07e5d68549d84cd06c7c1a99be127b
+MISC ChangeLog-2015 2522 SHA256 daa7e67f8753502c2c9d2f09cafc7669b8ff5e19f20b768b7da9b818562f3e22 SHA512 b40e9a053c836187040e4a2df14dedd5f0549df249c5ac294560cd3f8794dc54d6bac34001e860ce05a70516a87c338181590983a436f6e1afb581bf0aa9b3de WHIRLPOOL 9d1b445776cdc37f67fc485bc51f5629011bdb2d3f24476b270bbd0272df4504df427ec298bd834c0f8ecf228e59d5fdbccd34100df208c95362c5f0db7887b5
+MISC metadata.xml 604 SHA256 eba11894dcaa042fbb5f42641a807d740b87ccedbf8b71d0fd20ec972133036c SHA512 14edf04ecb58d9fd69c549b9cd64713338aaa8dab9230ddc00824dfaaa3b2e77090deeb0dc7f87fc875ebb3851ea3bae4765ee8e140b8695ad4088f1eb1fbdad WHIRLPOOL b7822209a31ca2aee6a2ede34bd710d824eee3263f21a543279deb19f9e438e8144b1c5c919a62578c4a069c5ea7be83518535f3f9bec5bfda60f6918dc685a2
diff --git a/dev-util/rats/files/rats-2.1-add-getopt-trailing-null.patch b/dev-util/rats/files/rats-2.1-add-getopt-trailing-null.patch
new file mode 100644
index 000000000000..65ea6df1f456
--- /dev/null
+++ b/dev-util/rats/files/rats-2.1-add-getopt-trailing-null.patch
@@ -0,0 +1,11 @@
+diff -Nuar --exclude '*~' rats-2.1.orig/main.c rats-2.1/main.c
+--- rats-2.1.orig/main.c 2002-09-16 21:05:43.000000000 -0700
++++ rats-2.1/main.c 2006-05-21 21:56:29.578601459 -0700
+@@ -278,6 +278,7 @@
+ {"columns", 0,0,0},
+ {"context", 0,0,0},
+ {"all-static", 0,0,0},
++ {NULL,0,0,0}
+ };
+ progname = argv[0];
+ flags|=RECURSIVE_FILE_SCAN;
diff --git a/dev-util/rats/files/rats-2.1-fix-null-pointers.patch b/dev-util/rats/files/rats-2.1-fix-null-pointers.patch
new file mode 100644
index 000000000000..0d4c701f0bfc
--- /dev/null
+++ b/dev-util/rats/files/rats-2.1-fix-null-pointers.patch
@@ -0,0 +1,128 @@
+diff -Nuar rats-2.1.orig/report.c rats-2.1/report.c
+--- rats-2.1.orig/report.c 2002-09-16 21:05:43.000000000 -0700
++++ rats-2.1/report.c 2006-05-21 23:16:16.323046789 -0700
+@@ -122,9 +122,15 @@
+ return result;
+ }
+
+-
+-
+-
++/* Exclusively for debugging vulnerabilities.
++ * - robbat2@gentoo.org 21/05/2006 */
++static void debug_vuln_dump(vulnerability_t *ptr) {
++ fprintf(stderr,"vuln_dump: this=%x f=%s l=%d c=%d d=%x t=%d s=%d u=%x p=(%x,%x)\n",
++ ptr,
++ ptr->filename,ptr->lineno,ptr->column,
++ ptr->data,ptr->type,ptr->severity,
++ ptr->uses,ptr->next,ptr->prev);
++}
+
+ static void
+ replace_cfname(char *filename)
+@@ -317,6 +323,27 @@
+ insert_vulnerability(log);
+ }
+
++/* These are special static vulnerabilities because we don't
++ * want NULL data elements in the vulnerability_t->data
++ * field, because the HTML and XML output formats use that
++ * pointer without checking it for being null first.
++ * - robbat2@gentoo.org 21/05/2006 */
++static struct Vuln_t vuln_PerlBacktick = {
++ .Name = "Perl Backtick"
++};
++static struct Vuln_t vuln_PhpBacktick = {
++ .Name = "PHP Backtick"
++};
++static struct Vuln_t vuln_PythonBacktick = {
++ .Name = "Python Backtick"
++};
++static struct Vuln_t vuln_StaticLocalBuffer = {
++ .Name = "Static Local Buffer"
++};
++static struct Vuln_t vuln_StaticGlobalBuffer = {
++ .Name = "Static Global Buffer"
++};
++
+ void log_perlbacktick(int lineno, int column, Severity_t severity)
+ {
+ vulnerability_t * log;
+@@ -325,7 +352,7 @@
+ log->filename = current_file;
+ log->column = column;
+ log->lineno = lineno;
+- log->data = (Vuln_t *)NULL;
++ log->data = &vuln_PerlBacktick;
+ log->type = PerlBacktick;
+ log->severity = severity;
+ log->uses = (toctou_use_t *)NULL;
+@@ -342,7 +369,7 @@
+ log->filename = current_file;
+ log->column = column;
+ log->lineno = lineno;
+- log->data = (Vuln_t *)NULL;
++ log->data = &vuln_PhpBacktick;
+ log->type = PhpBacktick;
+ log->severity = severity;
+ log->uses = (toctou_use_t *)NULL;
+@@ -358,7 +385,7 @@
+ log->filename = current_file;
+ log->column = column;
+ log->lineno = lineno;
+- log->data = (Vuln_t *)NULL;
++ log->data = &vuln_PythonBacktick;
+ log->type = PythonBacktick;
+ log->severity = severity;
+ log->uses = (toctou_use_t *)NULL;
+@@ -374,7 +401,16 @@
+ log->filename = current_file;
+ log->column = column;
+ log->lineno = lineno;
+- log->data = (Vuln_t *)NULL;
++ switch(type) {
++ case StaticLocalBuffer:
++ log->data = &vuln_StaticLocalBuffer;
++ break;
++ case StaticGlobalBuffer:
++ log->data = &vuln_StaticGlobalBuffer;
++ break;
++ default:
++ log->data = (Vuln_t *)NULL;
++ }
+ log->type = type;
+ log->severity = severity;
+ log->uses = (toctou_use_t *)NULL;
+@@ -432,6 +468,10 @@
+ static void build_xml_vulnerability(vulnerability_t *ptr) {
+ int i;
+
++ /* Debugging - robbat2@gentoo.org 21/05/2006 */
++ if(ptr->data == NULL)
++ debug_vuln_dump(ptr);
++
+ printf("<vulnerability>\n");
+
+ /* Output the severity */
+@@ -593,6 +633,8 @@
+ void report_vulnerability(vulnerability_t *ptr)
+ {
+ int i;
++ if(ptr->data == NULL)
++ debug_vuln_dump(ptr);
+
+ switch (ptr->type)
+ {
+@@ -890,8 +932,10 @@
+
+ static void build_html_vulnerability(vulnerability_t *ptr) {
+ int i;
+-
+-
++
++ /* Debugging - robbat2@gentoo.org 21/05/2006 */
++ if(ptr->data == NULL)
++ debug_vuln_dump(ptr);
+
+ /* Output the severity */
+ printf(" <b>Severity: %s</b><br/>\n",
diff --git a/dev-util/rats/metadata.xml b/dev-util/rats/metadata.xml
new file mode 100644
index 000000000000..d7aaff12cec9
--- /dev/null
+++ b/dev-util/rats/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>robbat2@gentoo.org</email>
+</maintainer>
+<longdescription>RATS - Rough Auditing Tool for Security - is an open source
+ tool developed and maintained by Secure Software security engineers. RATS
+ is a tool for scanning C, C++, Perl, PHP and Python source code and
+ flagging common security related programming errors such as buffer
+ overflows and TOCTOU (Time Of Check, Time Of Use) race conditions.
+</longdescription>
+</pkgmetadata>
diff --git a/dev-util/rats/rats-2.1-r2.ebuild b/dev-util/rats/rats-2.1-r2.ebuild
new file mode 100644
index 000000000000..161aeea514e1
--- /dev/null
+++ b/dev-util/rats/rats-2.1-r2.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=3
+inherit eutils
+
+DESCRIPTION="RATS - Rough Auditing Tool for Security"
+HOMEPAGE="http://www.fortifysoftware.com/security-resources/rats.jsp"
+SRC_URI="http://www.fortifysoftware.com/servlet/downloads/public/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
+IUSE=""
+
+DEPEND="dev-libs/expat"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-add-getopt-trailing-null.patch
+ epatch "${FILESDIR}"/${P}-fix-null-pointers.patch
+}
+
+src_configure() {
+ econf --datadir="${EPREFIX}/usr/share/${PN}/"
+}
+
+src_install () {
+ einstall SHAREDIR="${ED}/usr/share/${PN}" MANDIR="${ED}/usr/share/man"
+ dodoc README README.win32
+}
+
+pkg_postinst() {
+ ewarn "Please be careful when using this program with it's force language"
+ ewarn "option, '--language <LANG>' it may take huge amounts of memory when"
+ ewarn "it tries to treat binary files as some other type."
+}
diff --git a/dev-util/rats/rats-2.4.ebuild b/dev-util/rats/rats-2.4.ebuild
new file mode 100644
index 000000000000..1c49b7c4df49
--- /dev/null
+++ b/dev-util/rats/rats-2.4.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=3
+inherit eutils
+
+DESCRIPTION="RATS - Rough Auditing Tool for Security"
+HOMEPAGE="https://code.google.com/p/rough-auditing-tool-for-security/"
+SRC_URI="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/rough-auditing-tool-for-security/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
+IUSE=""
+
+DEPEND="dev-libs/expat"
+
+src_prepare() {
+ edos2unix $(find "${S}" -name '*.[chl]' -o -name '*.in' -o -name '*.am')
+ #epatch "${FILESDIR}"/${PN}-2.1-add-getopt-trailing-null.patch
+ #epatch "${FILESDIR}"/${PN}-2.1-fix-null-pointers.patch
+}
+
+src_configure() {
+ econf --datadir="${EPREFIX}/usr/share/${PN}/"
+}
+
+src_install () {
+ einstall SHAREDIR="${ED}/usr/share/${PN}" MANDIR="${ED}/usr/share/man"
+ dodoc README README.win32
+}
+
+pkg_postinst() {
+ ewarn "Please be careful when using this program with it's force language"
+ ewarn "option, '--language <LANG>' it may take huge amounts of memory when"
+ ewarn "it tries to treat binary files as some other type."
+}
diff --git a/dev-util/rbtools/Manifest b/dev-util/rbtools/Manifest
new file mode 100644
index 000000000000..7d7ba3856eba
--- /dev/null
+++ b/dev-util/rbtools/Manifest
@@ -0,0 +1,7 @@
+DIST RBTools-0.7.10.tar.gz 171957 SHA256 7da97baa0dd447b3d83e1eed8ff41eee32d9195925ac08dc2c7b019b9b85ae8d SHA512 d4495cc73315e10d31d9b6c1517734fc58cc8b795a2d5eb32c9900b7108c57ad5b5f559e0fc7b13de0b00997f014a8f832183da46376f1480abaa5ebf5eb4866 WHIRLPOOL 5b0dcc0dd8fe210b6ae2cfa98729b4a7617c691687138f1879425ccf03395fece909fe675adbcc3df103475a9a545e8fdb3fd641f9feac9c19ca33f03e3801b1
+DIST RBTools-0.7.9.tar.gz 169548 SHA256 66689445e5063e3646703173d2eec459ceb68bb6ff15dbc8e84ec431ff6ee107 SHA512 d05e6ba7dc733e16d2a9795e93e0a4760875fd960a109fe3f52202cbb77883fa7f2897508b6dc827ad94c4ac96dc426638ba7aeaac7691d3692e6eb58b86a44d WHIRLPOOL e674b0e502afa7abdee6bd9e353d5a94552eb5eefba00e57e5579239819baf14d8adee6a72f7205b0091e27d17e3cf66bd5022f22fffa08938720a5be8803891
+EBUILD rbtools-0.7.10.ebuild 690 SHA256 c9a4a3e0b2f04de9e710294cf1e18f2bc90f5a9cb5ed9f834958c6a202fe60b9 SHA512 3681afe47b506897209beb40405dbd30875a4109d2857d278e071d372386ec3b0e54e60d2e0c50fb6752ad7cf0f62143f5cdd892fe42be4c4f877baaa18b0f64 WHIRLPOOL 38ad14db8770ee35f5d14e5f4eeff4bfc302cc4cf9d92fca38a8c34db3a8b2f5574cce91836c678e474c7bcd48b0373d7ba2286297370462b9f5f78dd704aebb
+EBUILD rbtools-0.7.9.ebuild 688 SHA256 4ffcc3558d462952543e329111bdb76989cc724603623f18a0dc674f4b1ac70f SHA512 e24d2dfef42e07e14e1b6fbb6eb8751fdd9cbe25348a04eb6e21a6bf677c3c9db0d92f0365d33d3bce5e9b68f06f625815f50794ca7b29de0b624eaa0d794118 WHIRLPOOL 832bf0f0b7135961d7730e60ec3a9ceed945222f771bbde86ca6394bbcca631d9b37abbd32ef70867dd03c965132ae4f267009b13129115dfc7c5a01178d8168
+MISC ChangeLog 4390 SHA256 960def181e2270ded611e107cf010e53e32dae108b1feda7b313fa8bb8ea94ac SHA512 de46c3d822d46f4168bb7ec2d4b16f58e8df450ae7ba4b3ca821d7f38b6357f267ec17440cb3700de71afb8f2ef8dec25a7f9c62d607a5e7ca46f24eb4cd9ce7 WHIRLPOOL c894caabb9b0e0418d390f8c493fb28b73f973c8dd926501bc8fd3ca4ab6263c8bf16803c477a49b54148a0156a8e7998d2c47cc7fbf03e0cbbbbc705d42650a
+MISC ChangeLog-2015 6415 SHA256 680f6acfc0e3d5c5354d8006e474faa22aaef8db188537718b482cfcf8a138cc SHA512 b9f62ed8622ade4718c51c0c38f4bafcb1941c7490742d4b0f8e94a094c2566162acda1f94b83be7c0b1ab4f796436455497124565fd3c32c8728acd855ad708 WHIRLPOOL c98cb1f22883d4a17a1026e7bcf47935f1efabe96460501a33c93d1d1ec4099a32488a7881c47fbff8b7eca0b82bd8f6e6d338f604a4a5e2b505d1969915d63b
+MISC metadata.xml 249 SHA256 584f1dcf51866dc24a9abf7a89bfba0fad11dde81ae1c1b715da41770d233c99 SHA512 76a5a340b13f0053ca3c5e94ed24380ea8d29b45ac8655419e22eaadb1e4a827c04d2e7e36b65145c4964e6526f656618fc6ac144e277ef53cb7373e6239e3c3 WHIRLPOOL 200c07a8bf7c55b11b7936d5cd30e991a511684913334e72f59def66c0ced5fed0b4a8754e2d98bffbab631cb90d4e17fcccc59d5dcc5a8e988f69e47c85518c
diff --git a/dev-util/rbtools/metadata.xml b/dev-util/rbtools/metadata.xml
new file mode 100644
index 000000000000..2fdbf33d963d
--- /dev/null
+++ b/dev-util/rbtools/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="project">
+ <email>kde@gentoo.org</email>
+ <name>Gentoo KDE Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-util/rbtools/rbtools-0.7.10.ebuild b/dev-util/rbtools/rbtools-0.7.10.ebuild
new file mode 100644
index 000000000000..35ccbd937ddb
--- /dev/null
+++ b/dev-util/rbtools/rbtools-0.7.10.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1 versionator
+
+MY_PN="RBTools"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Command line tools for use with Review Board"
+HOMEPAGE="https://www.reviewboard.org/"
+SRC_URI="https://downloads.reviewboard.org/releases/${MY_PN}/$(get_version_component_range 1-2)/${MY_P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="
+ >=dev-python/six-1.8.0[${PYTHON_USEDEP}]
+ dev-python/tqdm[${PYTHON_USEDEP}]
+"
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]
+"
+
+DOCS=( AUTHORS NEWS README.md )
+
+S=${WORKDIR}/${MY_P}
diff --git a/dev-util/rbtools/rbtools-0.7.9.ebuild b/dev-util/rbtools/rbtools-0.7.9.ebuild
new file mode 100644
index 000000000000..4ef8e4c719f2
--- /dev/null
+++ b/dev-util/rbtools/rbtools-0.7.9.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1 versionator
+
+MY_PN="RBTools"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Command line tools for use with Review Board"
+HOMEPAGE="https://www.reviewboard.org/"
+SRC_URI="https://downloads.reviewboard.org/releases/${MY_PN}/$(get_version_component_range 1-2)/${MY_P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND="
+ >=dev-python/six-1.8.0[${PYTHON_USEDEP}]
+ dev-python/tqdm[${PYTHON_USEDEP}]
+"
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]
+"
+
+DOCS=( AUTHORS NEWS README.md )
+
+S=${WORKDIR}/${MY_P}
diff --git a/dev-util/re2c/Manifest b/dev-util/re2c/Manifest
new file mode 100644
index 000000000000..f66b1d4cbbec
--- /dev/null
+++ b/dev-util/re2c/Manifest
@@ -0,0 +1,11 @@
+DIST re2c-0.13.5.tar.gz 782725 SHA256 f3a995139af475e80a30207d02728b1e0065b0caade7375e974cb1b14861668c SHA512 56101bf01aea6f0c082b85382be34acada51d70036252581cd76ac4b2bdbc144633b97c63a94bfdba434ffb80884e11299a38853e2d805dc7ce6cf9d452c81c8 WHIRLPOOL 31e462704e3ab72fce92b62ce0bca73b256c98e48f302f6f90392c26a7235e86786f2bc5f43faedbaa60f9614098ac5d734a61abed394cd71135dd3639704210
+DIST re2c-0.16.tar.gz 4892417 SHA256 48c12564297641cceb5ff05aead57f28118db6277f31e2262437feba89069e84 SHA512 d4fb8078d9566a1fa177331b649cac79e2e45cc9558a22a2212503f6c77c9e6b4238aa01c85c66b86fa4831cdc669cedf8b430d395be6a0c6cfabfb7c61cf8a3 WHIRLPOOL de28f65acac11ea36aad72eb8ba8f63949dcc10e9712ac84be91a66cd4216c01dee9eb360bf95db1c32de79cf9aa7ad2a1656eb877c52d44dd95a45e2b24253a
+DIST re2c-1.0.1.tar.gz 5758988 SHA256 605058d18a00e01bfc32aebf83af35ed5b13180b4e9f279c90843afab2c66c7c SHA512 ab3b652d8f97b0d1be4c7561ce65e28870ab8976f8a31d74a6629b43d2057bfa608c7f393d5e5d59d26f991552a60e6274f554ef58752bdfcfeba330578f1299 WHIRLPOOL ed42bfdbe88a194c3972c09f7040009d5e804ce071549dff3d7b2a4916efb71c0f3ecba58402f3a1c4df1fdcf8035c01effdebaeb4aa6f1e7111a1c9746672ae
+DIST re2c-1.0.2.tar.gz 5805526 SHA256 b0919585b50095a00e55b99212a81bc67c5fab61d877aca0d9d061aff3093f52 SHA512 9d85933ae874cb9240175ce7210d3808173bafe246c67b9c333578846239b7bcef074287f26040b5a048bcd98db8d0393035c417918b80db1f74098695a77176 WHIRLPOOL b67af97e088af4d21df45a47a8c8560fe70cbe5e9d207a77f945a84a60b4dc1dbb9eb9d297d5ffc750a690ec087a163dac925cd16b6e3530104eaab8bf174bde
+EBUILD re2c-0.13.5-r1.ebuild 712 SHA256 58b5eefb88530dbc262d2d90a30dece27114fbe1d219167be3633c10f380bd4a SHA512 446a7fe4ff39783c7172ae3110200e896955cf36bb2fa26133a671adc6394ca4efb92f012b074e3cf2dd392d27b4ee6bfbf43a86755b4b6edebb8fe77e395f86 WHIRLPOOL 6e9b9a47ebfaf9e32c8d0c630e3d1de01be98f7c76b166470e3b3ed7a92eb36bd4c139062ee56d0e376d5114d2366517eb30c1e7f0160b0d777dc3204b7ab5b0
+EBUILD re2c-0.16.ebuild 755 SHA256 647b7d33c4a11670844122e5df9ab5db53f2634320381fef1468f648158b16e9 SHA512 8bd63d72cb9bd092ce626def2946ee5167d98c91ced9497f8fa895115c868fb199b2afe4173fd0f5fa14f0aacd763170f72817e4cf2444a2bebbccf307a45653 WHIRLPOOL 4a12c146f133f78320149cd526760e6fb0e3ffdfc4a6f169c3ec4dc937eb4e6af4ed6ae509f63e83a159006b1c46ba7adfbed2c979859b1e3b2ef2b3c3ef5675
+EBUILD re2c-1.0.1.ebuild 763 SHA256 468a6c6013746d15bbea5cd27690acf41e85b0ad0196f0f149c9c9724ed93f71 SHA512 ded3ef724bc5624a00994a80739483e7a21278bb45f7d54001e060b71d591c44cca59e7202e1af5f36ec84b39003c97f7f9161d735a8ba67925d29bdb65253a7 WHIRLPOOL b134ac2e4739c1f460786a5d4f4cce1c1958cec72a226bc0d355a41aee32abdb90d097241643c3a3ef70cb6466a75aeae6fc88c87bda7e0bc6c526084585bbaa
+EBUILD re2c-1.0.2.ebuild 763 SHA256 468a6c6013746d15bbea5cd27690acf41e85b0ad0196f0f149c9c9724ed93f71 SHA512 ded3ef724bc5624a00994a80739483e7a21278bb45f7d54001e060b71d591c44cca59e7202e1af5f36ec84b39003c97f7f9161d735a8ba67925d29bdb65253a7 WHIRLPOOL b134ac2e4739c1f460786a5d4f4cce1c1958cec72a226bc0d355a41aee32abdb90d097241643c3a3ef70cb6466a75aeae6fc88c87bda7e0bc6c526084585bbaa
+MISC ChangeLog 4634 SHA256 9720b96cb59c7a752579116a5722cb5c078ff090ce339847b533ae35f43facf6 SHA512 db2448c60fe672933c2f848d2146af8fe6db82fa318da52f940fc6eb6fc6e57dd5327b95a95d6138d536f490862471050829d5d39baa07450b9b8e69be0b69a9 WHIRLPOOL 58ee96416a2079052ddf3a8fa962c9f68afa4a0e9a94a74b2c2360b553ebb0520ffb0a404761d52f91050a2f73c08505ee2fbf09d03fc43dfd81fa17bf57872b
+MISC ChangeLog-2015 11944 SHA256 83231e58dc4d3c7ca92d55dceb7a7b62e997299156a828be942176ad30cb904d SHA512 a8c6ab17ba21b7c6b8e3a6e99c88f8e74edbe223efe323d4af025a4f54ae6dd9108308328939e268168685e80a4d76fe6fe86d13908f2b0dc935d031bf7c76f7 WHIRLPOOL 8f1fed9dfc047924eab55b3bae15e8a74eb46dab0ac03e433cf4bbb93a93376b4f6f946c20c3a20f44ef601c6819e1f0b83b70761daf04df2290f64c2c0ee5ff
+MISC metadata.xml 423 SHA256 405af3772ed2ee867686c5c204eb602475dee4f0b8ef16dd31888c813b28cde1 SHA512 997590e1de3136f7f87181746d9dccfd8c34a12e570d15a29a8abd4b4163bfa98405d928e932255c962d4af79e9913de563453891155590bff309d764c2b5bd9 WHIRLPOOL 8105f64cb55da72e78651ed400e537ae31e5b1980a1fbfa9de4760a78de11295da1d56027c33d90a695e8f7a07f4d4211ec60d3d1ac6cacf24a36169557295d3
diff --git a/dev-util/re2c/metadata.xml b/dev-util/re2c/metadata.xml
new file mode 100644
index 000000000000..1fc58ccd41a6
--- /dev/null
+++ b/dev-util/re2c/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>robbat2@gentoo.org</email>
+ </maintainer>
+ <maintainer type="person">
+ <email>slyfox@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">re2c</remote-id>
+ <remote-id type="github">skvadrik/re2c</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/re2c/re2c-0.13.5-r1.ebuild b/dev-util/re2c/re2c-0.13.5-r1.ebuild
new file mode 100644
index 000000000000..d04be68e9eb1
--- /dev/null
+++ b/dev-util/re2c/re2c-0.13.5-r1.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit eutils
+
+DESCRIPTION="tool for generating C-based recognizers from regular expressions"
+HOMEPAGE="http://re2c.sourceforge.net/"
+MY_PV="${PV/_/.}"
+MY_P="${PN}-${MY_PV}"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
+IUSE=""
+
+RDEPEND=""
+DEPEND="${RDEPEND}"
+S="${WORKDIR}/${MY_P}"
+
+src_install() {
+ dobin re2c
+ doman re2c.1
+ dodoc README CHANGELOG doc/*
+ docinto examples
+ dodoc examples/*.c examples/*.re
+}
diff --git a/dev-util/re2c/re2c-0.16.ebuild b/dev-util/re2c/re2c-0.16.ebuild
new file mode 100644
index 000000000000..958239c76220
--- /dev/null
+++ b/dev-util/re2c/re2c-0.16.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils
+
+DESCRIPTION="tool for generating C-based recognizers from regular expressions"
+HOMEPAGE="http://re2c.org/"
+SRC_URI="https://github.com/skvadrik/re2c/releases/download/${PV}/${P}.tar.gz"
+
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~m68k ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris"
+
+src_prepare() {
+ epatch_user
+ export ac_cv_path_BISON="no"
+}
+
+src_install() {
+ default
+
+ docompress -x /usr/share/doc/${PF}/{examples,paper}
+ dodoc -r README CHANGELOG examples
+ docinto paper
+ dodoc doc/loplas.ps doc/sample.bib
+}
diff --git a/dev-util/re2c/re2c-1.0.1.ebuild b/dev-util/re2c/re2c-1.0.1.ebuild
new file mode 100644
index 000000000000..f81eb657511c
--- /dev/null
+++ b/dev-util/re2c/re2c-1.0.1.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils
+
+DESCRIPTION="tool for generating C-based recognizers from regular expressions"
+HOMEPAGE="http://re2c.org/"
+SRC_URI="https://github.com/skvadrik/re2c/releases/download/${PV}/${P}.tar.gz"
+
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris"
+
+src_prepare() {
+ default
+ export ac_cv_path_BISON="no"
+}
+
+src_install() {
+ default
+
+ docompress -x /usr/share/doc/${PF}/{examples,paper}
+ dodoc -r README CHANGELOG examples
+ docinto paper
+ dodoc doc/loplas.ps doc/tdfa/tdfa.pdf
+}
diff --git a/dev-util/re2c/re2c-1.0.2.ebuild b/dev-util/re2c/re2c-1.0.2.ebuild
new file mode 100644
index 000000000000..f81eb657511c
--- /dev/null
+++ b/dev-util/re2c/re2c-1.0.2.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils
+
+DESCRIPTION="tool for generating C-based recognizers from regular expressions"
+HOMEPAGE="http://re2c.org/"
+SRC_URI="https://github.com/skvadrik/re2c/releases/download/${PV}/${P}.tar.gz"
+
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris"
+
+src_prepare() {
+ default
+ export ac_cv_path_BISON="no"
+}
+
+src_install() {
+ default
+
+ docompress -x /usr/share/doc/${PF}/{examples,paper}
+ dodoc -r README CHANGELOG examples
+ docinto paper
+ dodoc doc/loplas.ps doc/tdfa/tdfa.pdf
+}
diff --git a/dev-util/rebar/Manifest b/dev-util/rebar/Manifest
new file mode 100644
index 000000000000..72ddfb8c014b
--- /dev/null
+++ b/dev-util/rebar/Manifest
@@ -0,0 +1,11 @@
+DIST rebar-2.6.1.tar.gz 191063 SHA256 aed933d4e60c4f11e0771ccdb4434cccdb9a71cf8b1363d17aaf863988b3ff60 SHA512 0baa10aac65ad78c05d6ecd180327b8752a31bbc51f3b3aa6060f4d2adf9269de83c6481767d9abc8a599e231f569c0496edc6c47f43d1e2892c4e98de6ccd85 WHIRLPOOL 85934f20d0da344376e9beff056275a994c5cd9373df056349217db5e67bd3727b185c6751738104a37ece25dc40063bb3197daeb00762a8f2bf2a2a1a788a1b
+DIST rebar-2.6.2.tar.gz 210775 SHA256 ed2a49300f2f8ae7c95284e53e95dd85430952d2843ce224a17db2b312964400 SHA512 410129defbf98af00f5040f9d3956299a70a0a1a21d28c42db32350b922e207f8af5830d8c322e9d3cfed8697ddcb228d5a98b983995414ed32662659a5c4c96 WHIRLPOOL 2c5dfcb1e7bc94c205d75594c76bf31b35a6e7621a665c4d0b41c251412c7db0dc6979892a40531a0e705bafb3fe9e21521799dd9617b578866affc6d2b504fd
+DIST rebar-2.6.3.tar.gz 213146 SHA256 e4b645747bcc1cde3994ccc7a3861a97408df9be387ea1e7bc8910cd013154e0 SHA512 451f18cec02f9b23ab1e522d4e9bc2a43cf5ace5fea6a7543874a76615cdb55e3d705ad2be94e7c28e6e1acfbc519eb3452588880f0846b928f8a28369623dde WHIRLPOOL e4bf0b80d8082aa3f5283494dc92faaf473e23038b2eb2f7beaac53c27028effe6b475630f3ed4ee3ec8cd857b75f6871f3431502d319abace08d381d330a38f
+DIST rebar-2.6.4.tar.gz 213158 SHA256 577246bafa2eb2b2c3f1d0c157408650446884555bf87901508ce71d5cc0bd07 SHA512 4e53d1ab7db296c60fb039443da7e3b31b63410fc614690c6faa7ec330d9e9393dbc1c8507aa4aea2c99397e1b443ff9d25e4d57ec57f616ee748aa97d055ffa WHIRLPOOL 06fa04ceb64ce6efa9cd6df011a12fe8ee8acbe00b6f6c8bde5bb9742438b87c83a812d9351b119504fca3579030e1a10efde6956ae7f8f89573b88edd6e93f7
+EBUILD rebar-2.6.1.ebuild 626 SHA256 f43e8161d9a6ddf3688b6ab8eb5e0190034177f12c0e0c4ea953faef4f22d714 SHA512 5ad031fdec579dd3bd352f03ed32ee561a277fea02a945f58dd74a0bce101852a5f54e345f069b7755a4b593426203ebe142f77fa030c3688d7413a612d5f2bb WHIRLPOOL 3a3ed891f662de6405c9a09c4ed640256233af0e48098635ac882213f09b910e5a5837c3806d3eaabedda6f4cc9ee90fe7b553a9527923266ad325d4ebf9f28c
+EBUILD rebar-2.6.2.ebuild 630 SHA256 3cabd71740a7716345da6cc3479c2584a46c33b2d2255aefaa2d9e13db57135c SHA512 ecb5f24a95aa823ceb1d0bce71306238ec07a0d7285bb7941102a1b21b3f9855c0429730455e2783c84d0f7d662aeab863cc9bf07c2c670f027647dd3dc78512 WHIRLPOOL 6def8523c7203f9d693cf3b00b4f82e3a89aa35c9223dc37341a478ed60e90384c2cd3e5b011eae082b6f0b189c767e66aec77305d8327461ff447007a39020b
+EBUILD rebar-2.6.3.ebuild 630 SHA256 a3b1327c5d073ccd81541668dc086a153fa4799ca0868fb2a7ba42765adbb495 SHA512 c5889bebd569f588134f0146ab62c7292cebb197a19478e89d3073d5afa364984a03674dcbe4f5ba481dd01be5d87c7e3ff0ae27903d5df3f0953a55103931cd WHIRLPOOL 3d16101aa32ad5aa8cb95dc12dabb046418a8c194c7d92946f9ecc7fc00da64b534ead7c91ac80ad66656356af4b8ca1d1bd1bb66d41f85a5e6975047b8d309b
+EBUILD rebar-2.6.4.ebuild 630 SHA256 a3b1327c5d073ccd81541668dc086a153fa4799ca0868fb2a7ba42765adbb495 SHA512 c5889bebd569f588134f0146ab62c7292cebb197a19478e89d3073d5afa364984a03674dcbe4f5ba481dd01be5d87c7e3ff0ae27903d5df3f0953a55103931cd WHIRLPOOL 3d16101aa32ad5aa8cb95dc12dabb046418a8c194c7d92946f9ecc7fc00da64b534ead7c91ac80ad66656356af4b8ca1d1bd1bb66d41f85a5e6975047b8d309b
+MISC ChangeLog 4984 SHA256 d621795396e78c054f846c4932036bee7eb896d784a7304a2564ec560110812b SHA512 8534be866f1329af7830d95387c98617981c7b52953e020fb4b2ca83cad7f72483a795af94d203ec406d1152e70f954ef626afcb8897e250af9a7555af802401 WHIRLPOOL 29d3abef11ee22c4a0cce6560aead1f2d33fb3f48e1099f7253d4ac5d6c20c778d61024e9b05886d33a1ca36e01b567c89d94ebefc4ebd091b44e2b91ffe8cd3
+MISC ChangeLog-2015 1407 SHA256 5b3d4e9ec42ee8db5302a7ed80ef597347c7b4a43d130a55c5ce65a132897321 SHA512 083653fb07330ef9192dbf25f24bf1b0aff39d03439a28c31dfe4bb1ed64397e61e7e40f4ce927762dcbdbf93106b51829182b678d02917960f814254ba76cef WHIRLPOOL 4a34000d6ab8407780bc0f0d3232343a95dd27493ee289dcb3e994fb59fe0ec141bbe6bd1fd77deec8cb1cf1b7118e0ec26c8e5c63a48e32ae2fd18955ae7bc6
+MISC metadata.xml 624 SHA256 11bf04b17b1695a1f465a94c5a93f504c49c9bfad6380b0281d9323f54657cd5 SHA512 21752b1c24db61ecbff63d29c4087ebfd26dba5ca068be3ed59a9a8647f5d2e1a526f042b90e3d99d94f1bcc845bb846ccd3eb08e177273a2acf6ca13328c869 WHIRLPOOL 157de86f6fd4bd4c4e36a6f8a5b2ca1d44922c580285298489103a6d24dc1b408b877c7381871aa07acc775c9843f9dfa565205da6221341a4b9fd348191d085
diff --git a/dev-util/rebar/metadata.xml b/dev-util/rebar/metadata.xml
new file mode 100644
index 000000000000..c2edb573c8a7
--- /dev/null
+++ b/dev-util/rebar/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>aranea@aixah.de</email>
+ <name>Luis Ressel</name>
+ <description>Proxy-maintainer, assign bugs</description>
+ </maintainer>
+ <maintainer type="person">
+ <email>djc@gentoo.org</email>
+ <name>Dirkjan Ochtman</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">rebar/rebar</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/rebar/rebar-2.6.1.ebuild b/dev-util/rebar/rebar-2.6.1.ebuild
new file mode 100644
index 000000000000..3ca90ef6ba83
--- /dev/null
+++ b/dev-util/rebar/rebar-2.6.1.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit bash-completion-r1
+
+DESCRIPTION="A sophisticated build-tool for Erlang projects that follows OTP principles"
+HOMEPAGE="https://github.com/rebar/rebar"
+SRC_URI="https://github.com/rebar/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="amd64 ~arm ~ia64 ppc ppc64 ~sparc x86"
+IUSE=""
+
+RDEPEND="dev-lang/erlang"
+DEPEND="${RDEPEND}"
+
+src_test() {
+ emake xref
+}
+
+src_install() {
+ dobin rebar
+ dodoc rebar.config.sample THANKS
+ dobashcomp priv/shell-completion/bash/${PN}
+}
diff --git a/dev-util/rebar/rebar-2.6.2.ebuild b/dev-util/rebar/rebar-2.6.2.ebuild
new file mode 100644
index 000000000000..3f512e87afde
--- /dev/null
+++ b/dev-util/rebar/rebar-2.6.2.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit bash-completion-r1
+
+DESCRIPTION="A sophisticated build-tool for Erlang projects that follows OTP principles"
+HOMEPAGE="https://github.com/rebar/rebar"
+SRC_URI="https://github.com/rebar/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE=""
+
+RDEPEND="dev-lang/erlang"
+DEPEND="${RDEPEND}"
+
+src_test() {
+ emake xref
+}
+
+src_install() {
+ dobin rebar
+ dodoc rebar.config.sample THANKS
+ dobashcomp priv/shell-completion/bash/${PN}
+}
diff --git a/dev-util/rebar/rebar-2.6.3.ebuild b/dev-util/rebar/rebar-2.6.3.ebuild
new file mode 100644
index 000000000000..6e91c65845b5
--- /dev/null
+++ b/dev-util/rebar/rebar-2.6.3.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit bash-completion-r1
+
+DESCRIPTION="A sophisticated build-tool for Erlang projects that follows OTP principles"
+HOMEPAGE="https://github.com/rebar/rebar"
+SRC_URI="https://github.com/rebar/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE=""
+
+RDEPEND="dev-lang/erlang"
+DEPEND="${RDEPEND}"
+
+src_test() {
+ emake xref
+}
+
+src_install() {
+ dobin rebar
+ dodoc rebar.config.sample THANKS
+ dobashcomp priv/shell-completion/bash/${PN}
+}
diff --git a/dev-util/rebar/rebar-2.6.4.ebuild b/dev-util/rebar/rebar-2.6.4.ebuild
new file mode 100644
index 000000000000..6e91c65845b5
--- /dev/null
+++ b/dev-util/rebar/rebar-2.6.4.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit bash-completion-r1
+
+DESCRIPTION="A sophisticated build-tool for Erlang projects that follows OTP principles"
+HOMEPAGE="https://github.com/rebar/rebar"
+SRC_URI="https://github.com/rebar/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE=""
+
+RDEPEND="dev-lang/erlang"
+DEPEND="${RDEPEND}"
+
+src_test() {
+ emake xref
+}
+
+src_install() {
+ dobin rebar
+ dodoc rebar.config.sample THANKS
+ dobashcomp priv/shell-completion/bash/${PN}
+}
diff --git a/dev-util/regexxer/Manifest b/dev-util/regexxer/Manifest
new file mode 100644
index 000000000000..7811d97d8a73
--- /dev/null
+++ b/dev-util/regexxer/Manifest
@@ -0,0 +1,7 @@
+AUX regexxer-0.10-glib-2.32.patch 864 SHA256 de526cfd5a06c5775124b7a54ee146dd8a3383e6660002481636aae3eb5baa6b SHA512 99e25b974a6be678169a57f8f5e728f60c470e7d2290e365f7b9c0c326d8e7867af0a093f6b0a7505ea7068e01770cdc565cf33e2db8cc6695bd5bd269a56a8b WHIRLPOOL 1239bb97ea476b7de502183c24ab017687774d8a6c8b225cf9fe4c95b67cbf904150b992fe24a0d5940eb2df883bcc44d33aabd38e95eccda3d70776d105eaa9
+AUX regexxer-0.10-sandbox.patch 412 SHA256 9cdc7ef74c67dbbd2702970014bf1c839cc8f0f0edcaadb5a898b47844bc83b3 SHA512 2e895d2686e243ce1ada04dc9fe4db846b59dd076252e992349442658c96cba6ce62499fb056c77d0aa19329794545ea313c538c61efab147a44fe85b2c40534 WHIRLPOOL ab13002c51ab30a81db823d9d741f3be9d2cfd7d3d35bf3c3ecd5d7c30df7b22548a4a1382a1700e1bc22e713fd6a871e4f335846c26c0a68e9f556bdad04d46
+DIST regexxer-0.10.tar.xz 251544 SHA256 2a7832541a0306b3d4eb63a1cf8978d7bbfc7927e9304473fe801d71fd99736c SHA512 0b18c8f167595984a042403c7e91c8b65c1348870c47d664c6cfc825b74e047f657190f30830ce6e2098867bbd8e1b042e1adc2798aedb86a59299583340f920 WHIRLPOOL 4a8c408cf777a2bdaa6a9f6fde50a5ae6e09e1744680f040979a5cce7580f9a9f09c7e4a5027aafb48319f9ef7094ea25b377b91f71d0e44d8906e4c2af058de
+EBUILD regexxer-0.10.ebuild 724 SHA256 95be0eccc234d406ce72c0556a0e83570a7e798f50a0129c1ccc71105237ac46 SHA512 23bc0caf21d75aaec7ae65def8cf30f77ee3f06eaa91dce8dd0e77bbca261d3377fb353f42f36e30c100f656878056d6229da23ef93c33c5feffb461d84081f2 WHIRLPOOL dad43a366473184ffbcf15912afe8d5d630ae69ee359d0aa1d048a4c4738149a341490076129c20e938b57d09a15a0304da76868ab745672261f7691203b081e
+MISC ChangeLog 2652 SHA256 100925226f1cda156e5ccbcfa41f6d102000ec63784632b5cdc17b4747811200 SHA512 9c9fc2cb3c1926f06e8713ef9314346800272cb1f5f9bfa309819de70add4817cb95ffc7acc155467fe7f3642bb26b12a144a626918c6b4a1c66ff0c1c0f1984 WHIRLPOOL 2c370f76796ae4e710c16d3e66d4db5b3f9b381fb1380423f2d4ddd425f86141a32e79ff4e0134ec161a837ab480df75d60939902427b0fafc0a1220d67ec57b
+MISC ChangeLog-2015 3937 SHA256 a6eedc9a1b219a9b3b31b83ba4217bae45cbb42c33cd39f040762ff3b22a866d SHA512 fceee58a0184ebc8c8c2525cb08999f4081be95bd5306f947fb62124c0e516063b20ac246085d082eee77819ff17c7e51305a45c1e315dc181db3f15fea3665b WHIRLPOOL d0907cf2a09ebcb01b0bcc1a724bae54f86ed9aac9b8a5d21f680763c9f8a0c0cc338a9466ace441e3a25db13e0d74fd5e7c71c2d3e52575904ba095624349fa
+MISC metadata.xml 354 SHA256 4dfd35ff881956145974608259f2e18e3841f1f147cfa8a156f6aebce70593fc SHA512 3da056033c05593bc2bf0b606cdb7ff99879eb99580c3b7741759a0b4bdcfd0025cebaa1e586fe12e69972f75df6003b041bd338800ff814e7aae6094fad02aa WHIRLPOOL 5941a5bbf04d9862cc6dbe4e5f897391e380d09cd78c455b79919097137766b670c355dc90c92d5eb511eb4dd7230563314d44bfee81d049c5060b3853947104
diff --git a/dev-util/regexxer/files/regexxer-0.10-glib-2.32.patch b/dev-util/regexxer/files/regexxer-0.10-glib-2.32.patch
new file mode 100644
index 000000000000..fbbb1cbf20f0
--- /dev/null
+++ b/dev-util/regexxer/files/regexxer-0.10-glib-2.32.patch
@@ -0,0 +1,35 @@
+Downloaded from https://projects.archlinux.org/svntogit/community.git/plain/trunk/regexxer-glib2.32.patch?h=packages/regexxer
+for bug 417049
+
+--- a/src/fileshared.h
++++ b/src/fileshared.h
+@@ -23,6 +23,7 @@
+
+ #include "sharedptr.h"
+
++#include <glibmm/regex.h>
+ #include <gtkmm/textbuffer.h>
+ #include <functional>
+ #include <utility>
+--- a/src/globalstrings.h
++++ b/src/globalstrings.h
+@@ -21,7 +21,7 @@
+ #ifndef REGEXXER_GLOBALSTRINGS_H_INCLUDED
+ #define REGEXXER_GLOBALSTRINGS_H_INCLUDED
+
+-#include <glib/gutils.h> /* for G_DIR_SEPARATOR_S */
++#include <glib.h> /* for G_DIR_SEPARATOR_S */
+
+ namespace Regexxer
+ {
+--- a/src/translation.h
++++ b/src/translation.h
+@@ -21,7 +21,7 @@
+ #ifndef REGEXXER_TRANSLATION_H_INCLUDED
+ #define REGEXXER_TRANSLATION_H_INCLUDED
+
+-#include <glib/gmacros.h>
++#include <glib.h>
+ #include <glibmm/ustring.h>
+
+ #ifndef gettext_noop
diff --git a/dev-util/regexxer/files/regexxer-0.10-sandbox.patch b/dev-util/regexxer/files/regexxer-0.10-sandbox.patch
new file mode 100644
index 000000000000..f460344b8ad7
--- /dev/null
+++ b/dev-util/regexxer/files/regexxer-0.10-sandbox.patch
@@ -0,0 +1,15 @@
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -107,12 +107,6 @@
+ @INTLTOOL_DESKTOP_RULE@
+ @INTLTOOL_XML_NOMERGE_RULE@
+
+-install-data-hook: install-update-icon-cache
+- $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir)
+-#$(gsettingsupdateschemacache) $(gsettingsschemadir)
+-
+-uninstall-hook: uninstall-update-icon-cache
+-
+ dist-hook: dist-changelog
+
+ # Note that this rule creates the ui/ build directory as a side effect.
diff --git a/dev-util/regexxer/metadata.xml b/dev-util/regexxer/metadata.xml
new file mode 100644
index 000000000000..b59e5c70aebc
--- /dev/null
+++ b/dev-util/regexxer/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="project">
+ <email>desktop-misc@gentoo.org</email>
+ <name>Gentoo Desktop Miscellaneous Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">regexxer</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/regexxer/regexxer-0.10.ebuild b/dev-util/regexxer/regexxer-0.10.ebuild
new file mode 100644
index 000000000000..2e3e14fec72b
--- /dev/null
+++ b/dev-util/regexxer/regexxer-0.10.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+GCONF_DEBUG=no
+
+inherit autotools eutils flag-o-matic gnome2
+
+DESCRIPTION="An interactive tool for performing search and replace operations"
+HOMEPAGE="http://regexxer.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86"
+
+RDEPEND=">=dev-cpp/glibmm-2.28
+ dev-cpp/gtkmm:3.0
+ dev-cpp/gtksourceviewmm:3.0"
+DEPEND="${RDEPEND}
+ dev-util/intltool
+ virtual/pkgconfig
+ sys-devel/gettext"
+
+src_prepare() {
+ append-cxxflags -std=c++11
+
+ epatch "${FILESDIR}"/${P}-glib-2.32.patch
+ epatch "${FILESDIR}"/${P}-sandbox.patch
+ eautoreconf
+ gnome2_src_prepare
+}
diff --git a/dev-util/rej/Manifest b/dev-util/rej/Manifest
new file mode 100644
index 000000000000..638a3835eb8b
--- /dev/null
+++ b/dev-util/rej/Manifest
@@ -0,0 +1,5 @@
+DIST rej-0.16.tar.gz 422796 SHA256 a68c02b4833b60fc91b48f10e1f1fa67b185ec98d828a8132d936f1c3dcdcbb6 SHA512 e216edf5559141c571f56265a499dbb4273b47e3a05305a13233d3fc7d9d02aca4a2305317fb467fee1b08ecba147dbe72516d71ba189f1dfeedb45faa525d46 WHIRLPOOL c2fce597941d1c0ffcfc8534fe763e7d2d382a5ab1a6b5f3e840a9a64fdcd5d6a6018a67a263da05c0402133520e3bf24d80ca16eecc0689c100edab82437fb4
+EBUILD rej-0.16.ebuild 563 SHA256 f189df534fe94e1d1db327a0d626c4dfecb075a5f1d599e9997a77ec75a8ab7c SHA512 5f6cac089b3aafdf38157ab232e6e142a443da2b9f762cc42630c6c3b02337bd9f6ba09ceb47c5953d425a51c2567121f9148b463385b58ce304ed68227b3628 WHIRLPOOL 5f1cb8ca6f7d7a6a18547743d8e5c16b11649c00381ab89ce967f19d3a3b6d75f6d173e628573ef4339d9e6282976d50323f4ca32828c43f774403aa10140fcf
+MISC ChangeLog 2555 SHA256 cf3c334bbc7a0ecb9524dfbf873c2392faf3b29c0730f3c96f459d6446413944 SHA512 0775e6a1a1f8965a315e23634c098cb4bf03fde21b1891ac92799904d44c92575514dfa5482c710ea4f7433b98956e55328046407da5f6cb2e6eefb9da770e69 WHIRLPOOL 898a553cdea8701b06a146ef6d7b441bfdadf2d2d44490cdc8e9b7d5ca2be2d0cf3e68b8d0708adf9ad506112499b86f5665e79e2f07d1fa78e32dc465211c59
+MISC ChangeLog-2015 1650 SHA256 f42c038ffbc166fabc23492c257c5eacbd2686dcd1ef8c3371e9009a69dbe5e5 SHA512 a795569fc48d7c0f1091216178383526ea79138f39374737867300c0e730bf15fd346f6aad4e5788914b3e88c0b3adb0a5cecd91ca8d844c03b8b3cb583ff00c WHIRLPOOL 6ee13119e14af3aef2a1914ebde55f7e5a146a8133f91088d1426e75dde45b078002c9ab893b8342484377f7228218e6fd1ce9b47fedd8dc0e9f25b78e5216bd
+MISC metadata.xml 238 SHA256 bae0588f6a20ccebb0e76d3ad782fcb2adfd1ea5b9fc1433851379423a103b72 SHA512 b0b981ef72f4d295f427f92dc9931553b4fb7a91c8ed63fa1f28bdbe8bc61d6f0943e1217eb7b61b8d85d9685cbe759db49f094a18a1461cb48429affe76d993 WHIRLPOOL ad8bdcb129ac41a2941e41186ec94e845858818fe21b95b69adc902ddbe0eb4c4bcce8f00d5f167981852184df07e355866a07f50dcdc8f7cd7edf20ed95ecee
diff --git a/dev-util/rej/metadata.xml b/dev-util/rej/metadata.xml
new file mode 100644
index 000000000000..a8fb43312942
--- /dev/null
+++ b/dev-util/rej/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>jer@gentoo.org</email>
+<name>Jeroen Roovers</name>
+</maintainer>
+</pkgmetadata>
diff --git a/dev-util/rej/rej-0.16.ebuild b/dev-util/rej/rej-0.16.ebuild
new file mode 100644
index 000000000000..82d14beb6e27
--- /dev/null
+++ b/dev-util/rej/rej-0.16.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+DESCRIPTION="A utility for solving diff/patch rejects"
+HOMEPAGE="http://ftp.suse.com/pub/people/mason/rej/"
+SRC_URI="http://ftp.suse.com/pub/people/mason/rej/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86 ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE=""
+
+DEPEND=""
+RDEPEND="
+ dev-lang/perl
+ !<app-editors/mp-5
+ !dev-lang/qu-prolog
+ !dev-util/mpatch
+ "
+
+src_compile() {
+ echo
+}
+
+src_install() {
+ dobin rej qp mp
+ dodoc CHANGELOG README vimrc
+}
diff --git a/dev-util/repo/Manifest b/dev-util/repo/Manifest
new file mode 100644
index 000000000000..237989c70f5c
--- /dev/null
+++ b/dev-util/repo/Manifest
@@ -0,0 +1,3 @@
+DIST repo-1.12.37.tar.gz 115098 SHA256 31e374155eba54b18fae966ef3fb9290378c29fd8c15085cc70e8007a3227c66 SHA512 3ff6b5c3bcc8fba1861102035b86b59137e7dcebeab7a0fb01672da28473e1912c3cbac7c085e9b8d3fce404bd18095ba022d4978d83833f666bd31d621d5953 WHIRLPOOL 5025f0fb2b2fe84ddbfdc4d8585243ac80276f1906f50bf878a2c804cfdb357973c9d6ac282338c366f3cbdee74ccafaa80d69a16ab8b9dbbf00b8ac07e97376
+EBUILD repo-1.12.37.ebuild 781 SHA256 b245c36658ab50eb4f6b2c76b02ec39d2769cb10f61ad1b5ed09d7b34d5e9984 SHA512 87ba2cd9cff189e4c945747fb16b730b1bf6b5235d22aa92ee72ef2395c053c7d875629786225b4e9686a7279f49f06584f7f8482c70e533318085f67388ee13 WHIRLPOOL c57e446e9dfb43a8dd3a795d5b381ec24178af90dd03c540c45409893901a105f1e4faf522ff706e284c219b93ffe94f1bc4e1ad2b042e9b18a3c60d2718c617
+MISC metadata.xml 387 SHA256 ab968c1c0971ec6907d3136c98f694eb0abd279e7a160513c299eba2036977b6 SHA512 25be1dab3058fe3d823c1a0863c9894bf5c7d8020c0faeab73db09cde992589eda83f36ea718396e327bfb18627a58f2db2fc3d21e2f1d490d91ebe867d33dee WHIRLPOOL a81d0d3da45e6117d882894c05b2174f03a6287f7b10e5d5e6cb8ef80e1c7dc9c468beec73f0d5e1a4e327c50e5d228ffe7bacf4828868a9a921b890ad851b8c
diff --git a/dev-util/repo/metadata.xml b/dev-util/repo/metadata.xml
new file mode 100644
index 000000000000..e31c816a429f
--- /dev/null
+++ b/dev-util/repo/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>wizardedit@gentoo.org</email>
+ <name>Austin English</name>
+ </maintainer>
+ <longdescription>
+ Tool for managing multiple git repositories. From Google, useful for building Android.
+ </longdescription>
+</pkgmetadata>
diff --git a/dev-util/repo/repo-1.12.37.ebuild b/dev-util/repo/repo-1.12.37.ebuild
new file mode 100644
index 000000000000..ba92c75316c3
--- /dev/null
+++ b/dev-util/repo/repo-1.12.37.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+# 3.x is currently very buggy, only 2.7 actually works
+PYTHON_COMPAT=( python2_7 )
+
+inherit python-r1
+
+DESCRIPTION="Google tool for managing git, particularly multiple repos"
+HOMEPAGE="https://android.googlesource.com/tools/repo"
+# Should be:
+#SRC_URI="https://android.googlesource.com/tools/repo/+archive/v${PV}.tar.gz -> ${P}.tar.gz"
+SRC_URI="https://dev.gentoo.org/~wizardedit/dist/repo-${PV}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}"
+
+src_install() {
+ python_foreach_impl python_fix_shebang ./repo
+ python_foreach_impl python_doexe ./repo
+}
diff --git a/dev-util/reswrap/Manifest b/dev-util/reswrap/Manifest
new file mode 100644
index 000000000000..c858e210563d
--- /dev/null
+++ b/dev-util/reswrap/Manifest
@@ -0,0 +1,7 @@
+DIST fox-1.4.12.tar.gz 3922769 SHA256 a83966681aff8fa204504abe0e4654f8405597998ab8dcbf37b425fd7f59eb12 SHA512 aa2accc25fc740c4959dec5ebb87b86afb035e65636986a220e3d43582da3aabaa2ee8ce9acc2c043fb530c12fc0f0806c06ff75155afc47e7dc783bef44d8f7 WHIRLPOOL b4e1daff7cc3293f9085fbd93745817a46965a24bdb138426fcff0dfab24ad495b8e8611030f02e1d5a809effcb00c4a4aa453c760b23278bdd20569f7d5e666
+DIST fox-1.6.40.tar.gz 4353981 SHA256 19bcdb56f3985ef359adc1cf3a392d11cad0d097c646dd73c8ef1349faa1ba6f SHA512 63c46b3db2693c91dc6277b08395ab3a0748414471b7bff10062cac9ddc5e743ee7af5b85ea5f7b7dc96723baa1c9ff7ae18a0f503a210b6255ac956023ac17b WHIRLPOOL c4c946de1f40de5544f7c3a310bc8705315f0123d370240b7db812509f4640815e05c6d82adef4e9592520541f7cff4134fee53ce26be239fc9c5c6c4aac596b
+EBUILD reswrap-3.2.0.ebuild 587 SHA256 36f46fe31436a937e8fa7eef728beb76f3ef436b6a26764924e60a4f62d0ffd7 SHA512 9be32421d788c5b7aaa3b7db9ff298189a90282b9b87654d3d433a3db72cea8ab6ba58f34036dc33765d2d11ac3fb1d67bb9095d524617f1b83636786dcb7b05 WHIRLPOOL 985bc382585875f68475900bf470272f5ee7b8625a903fb683514b6be81d2e34efac9a84f9ee7d892b7d1dc8cc5deacba5c560770ba5df9304dfbaf6f6d79cbf
+EBUILD reswrap-4.0.0.ebuild 584 SHA256 d42893542d0bc678d0140542d4f5eb6437d23ae12a4b1de40c82ca1b6264a4b7 SHA512 35b4785e1c303ac29232df9a185412eb15afc030202fcfe36e0c9c19349c28ddbcfe64a63d86bfe8a5acf2831a3ec92a39200d6c71dc560c1967a8b8ee411676 WHIRLPOOL cf27573e924dbf708e8e1dc8b1fbb7c08b097223333bb2d366e64c89f8d4c3a889c3d63f2915e874feb3073b9f26205d29222922965d5f14b40d6d156d1c4a27
+MISC ChangeLog 2742 SHA256 5a1dca9801f3bc8262fc18642a1794e504e52cc4804c103efdf179c7bd6b896c SHA512 8ecbcafaa22809dcc34b46cb8b94e75956ce2585369a281e813d2493f33011bc87609fa1e377159d52db63cf52ee84e0d16bfb331497e882b8673f34e5460542 WHIRLPOOL fc6dff7feee47623037c3a909af7590ecf2b6f45354b5de54ef0d7b37f535e210d69cc1f3966b0b9704f97ebe806c6828fd72422ecbc5dc16525d899baf5c084
+MISC ChangeLog-2015 2588 SHA256 4a3cab9d729dddff022cf40c1ad299b6c5fba548fc3aab05b0a009e156b72bcc SHA512 e1c29d9b99fc8f974d39eeae3fbad9b1908951ab34996e81d3af9bda49e9ac510461fc366bd862c23c38da68375b19d5df6062db33c665534b8fdb2809d5d5e1 WHIRLPOOL a0948879bfae698c8947ac5cb4976ff6d21436e716ee36da3f4dcbc28c2808080e14201f012ad600b88a5c6b1e7cc6a5d8049ea9f729282a2ec64fce673701f6
+MISC metadata.xml 139 SHA256 5cdc1888ebc8807b9a37b1d33429c61cabe7415a4f240e21a4c2ff8eca7a34ed SHA512 8be912ace7468a4396eb1da00a9785030a8ce35da4357a01591876a1056fd45e44da65de2af3e1eb0506ce6551714962c40c3ae5a3aefa2ad231de35af2519be WHIRLPOOL 620431014dd4fb752c3d46d11904ecb2c6d4525f5b4e30f4f778a3b74d3f7187ae4ccd856ebd7eabb48ce261b21849c732928fe647edce024a3fdc082d8f8630
diff --git a/dev-util/reswrap/metadata.xml b/dev-util/reswrap/metadata.xml
new file mode 100644
index 000000000000..097975e3adc2
--- /dev/null
+++ b/dev-util/reswrap/metadata.xml
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+</pkgmetadata>
diff --git a/dev-util/reswrap/reswrap-3.2.0.ebuild b/dev-util/reswrap/reswrap-3.2.0.ebuild
new file mode 100644
index 000000000000..1364323f9082
--- /dev/null
+++ b/dev-util/reswrap/reswrap-3.2.0.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+FOX_COMPONENT="utils"
+FOX_PV="1.4.12"
+
+inherit fox
+
+DESCRIPTION="Utility to wrap icon resources into C++ code, from the FOX Toolkit"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86"
+IUSE=""
+
+RDEPEND=""
+
+FOXCONF="--disable-bz2lib \
+ --disable-cups \
+ --disable-jpeg \
+ --without-opengl \
+ --disable-png \
+ --without-shape \
+ --disable-tiff \
+ --without-x \
+ --without-xcursor \
+ --without-xrandr \
+ --without-xshm \
+ --without-xft \
+ --disable-zlib"
diff --git a/dev-util/reswrap/reswrap-4.0.0.ebuild b/dev-util/reswrap/reswrap-4.0.0.ebuild
new file mode 100644
index 000000000000..538220c273d5
--- /dev/null
+++ b/dev-util/reswrap/reswrap-4.0.0.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+FOX_COMPONENT="utils"
+FOX_PV="1.6.40"
+
+inherit fox
+
+DESCRIPTION="Utility to wrap icon resources into C++ code, from the FOX Toolkit"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 ~arm hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd"
+IUSE=""
+
+RDEPEND=""
+
+FOXCONF="--disable-bz2lib \
+ --disable-jpeg \
+ --without-opengl \
+ --disable-png \
+ --without-shape \
+ --disable-tiff \
+ --without-x \
+ --without-xcursor \
+ --without-xrandr \
+ --without-xshm \
+ --without-xft \
+ --disable-zlib"
diff --git a/dev-util/rosdep/Manifest b/dev-util/rosdep/Manifest
new file mode 100644
index 000000000000..338c9c352c7e
--- /dev/null
+++ b/dev-util/rosdep/Manifest
@@ -0,0 +1,9 @@
+DIST rosdep-0.11.5.tar.gz 76136 SHA256 46e072074270a1ea25411829814f4bdc1f34b358c950e9b8a7b75b4a40efd96a SHA512 593ca209714945e79ec878e0e84d086645bea9095bc2fbf0a3ac48b8696c8694990f554f160b8271734e2980d95390dc2dffbd3da765c43c505d8b2e1e05e381 WHIRLPOOL 59b04fbfa5521a8df7c9d556bc7faf0da3d425a56d6dfeafb8583bf24a24f6c762dac7e9f1abb747fa7604c9cb1c621c13537a7eb2dcf88408b50a183ac85da9
+DIST rosdep-0.11.6.tar.gz 79121 SHA256 d30b46fe89832fd47e03f74f0d720d94793875aa02ee9e86f403195fb66c9218 SHA512 f662ab62951d84db1af48978791304e0c1800929a1ae89c360a042a17bc48c2ff6b7ea790fa7fc16852fb5f09f62e9b800d7be7f71ee18124102e48f030e3b2a WHIRLPOOL 7111e702777e9fb5ca3d2c9a716def34f6dd985cf7523b49b150d140622aeb18487bf0ded727add2a43d88deb226568df8e6bea61e8c5e4e0e8d777d61c102dd
+DIST rosdep-0.11.8.tar.gz 112899 SHA256 2d5b3c73caa1af5a92b2d1d5356614fff4947d62ac9985e96f62ef801a078137 SHA512 9fe44eb2dbcdfce0ac6df9b4f6926d26fa12d9fe4089976a460448dc6d4ecb893c0c7cb6b6e9f16bd07da0be4088d7d3eb594d2c0fad6f77d8728e2873cbc344 WHIRLPOOL 4ad977497fb85d41c94d68ce68cfd8b8ff3b3e4b8ae1dcd89c0bc4f38899e315e68471e87591a4f91784168dd45f8387a34bbba4a4d38f04b62607b098126ba7
+EBUILD rosdep-0.11.5.ebuild 1455 SHA256 22381e0fea72adfa7b0459ee16cd52c9f615098090db2b9c371387fbe705d38c SHA512 26863413617e4a0a251aec84c1e2fddf297333ac7e00eff1e95ea2d4f76526bc7db89540f4371b12e1e5b93a6435e1eedc5ffd05c534025aea2e29badaa3ea07 WHIRLPOOL ee575823a68637efe9505c7a2212f789be8b59826ca1c27f7e3922645ad9917dd0e2c7f70f13ee6a33c650a2b8391744269e80c049a1371bc13011fa674bf9ff
+EBUILD rosdep-0.11.6.ebuild 1455 SHA256 22381e0fea72adfa7b0459ee16cd52c9f615098090db2b9c371387fbe705d38c SHA512 26863413617e4a0a251aec84c1e2fddf297333ac7e00eff1e95ea2d4f76526bc7db89540f4371b12e1e5b93a6435e1eedc5ffd05c534025aea2e29badaa3ea07 WHIRLPOOL ee575823a68637efe9505c7a2212f789be8b59826ca1c27f7e3922645ad9917dd0e2c7f70f13ee6a33c650a2b8391744269e80c049a1371bc13011fa674bf9ff
+EBUILD rosdep-0.11.8.ebuild 1455 SHA256 22381e0fea72adfa7b0459ee16cd52c9f615098090db2b9c371387fbe705d38c SHA512 26863413617e4a0a251aec84c1e2fddf297333ac7e00eff1e95ea2d4f76526bc7db89540f4371b12e1e5b93a6435e1eedc5ffd05c534025aea2e29badaa3ea07 WHIRLPOOL ee575823a68637efe9505c7a2212f789be8b59826ca1c27f7e3922645ad9917dd0e2c7f70f13ee6a33c650a2b8391744269e80c049a1371bc13011fa674bf9ff
+EBUILD rosdep-9999.ebuild 1455 SHA256 22381e0fea72adfa7b0459ee16cd52c9f615098090db2b9c371387fbe705d38c SHA512 26863413617e4a0a251aec84c1e2fddf297333ac7e00eff1e95ea2d4f76526bc7db89540f4371b12e1e5b93a6435e1eedc5ffd05c534025aea2e29badaa3ea07 WHIRLPOOL ee575823a68637efe9505c7a2212f789be8b59826ca1c27f7e3922645ad9917dd0e2c7f70f13ee6a33c650a2b8391744269e80c049a1371bc13011fa674bf9ff
+MISC ChangeLog 2588 SHA256 c1102d1712eed7da512ba9633e5103475671ce38c8706664fdf0e071fa487d99 SHA512 9520f15da90f0aabe0cafa10a615e0c8c10b97f744590fc2d215524a13a9d8fc811dc79ddf36510bacbe8cddd0f84e0668022f48bd08171f59249b6b25bef9fa WHIRLPOOL dfcfa1e157c72bdf1d2f89c8575d0bbbe08c9ae871f4b7da0842a6ee2f213c7be07cdf2cdd7b785b55f1ece6e4e4d8e8c4b05ee8fc65905a959f6d1b39f890c5
+MISC metadata.xml 339 SHA256 599e1007add69d6c1176aec4f2ba9916d2953a02dac92ef701122be991a95937 SHA512 62ab4dc2638e4af95290eba19e1755d3bade56e5d1e7251d3cc9da410fcf7ead48562193b2cb6b6f8800daf7df31786e70ce153780b9e278891c31d2b9c257bf WHIRLPOOL 04f64ce407a7a0a72b30c00267d6e72f38d35ed619c55f015397fc8ef2591183979ab6104037fc49ad045f6c78cb2dfa8a65f2dbb461ecbf95efb9d085e31266
diff --git a/dev-util/rosdep/metadata.xml b/dev-util/rosdep/metadata.xml
new file mode 100644
index 000000000000..d067e076ce7f
--- /dev/null
+++ b/dev-util/rosdep/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="project">
+ <email>ros@gentoo.org</email>
+ <name>Gentoo ROS Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">ros-infrastructure/rosdep</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/rosdep/rosdep-0.11.5.ebuild b/dev-util/rosdep/rosdep-0.11.5.ebuild
new file mode 100644
index 000000000000..463cc83cafbd
--- /dev/null
+++ b/dev-util/rosdep/rosdep-0.11.5.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} pypy{,3} )
+
+SCM=""
+if [ "${PV#9999}" != "${PV}" ] ; then
+ SCM="git-r3"
+ EGIT_REPO_URI="https://github.com/ros-infrastructure/rosdep"
+fi
+
+inherit ${SCM} distutils-r1
+
+DESCRIPTION="Command-line tool for installing ROS system dependencies"
+HOMEPAGE="http://wiki.ros.org/rosdep"
+if [ "${PV#9999}" != "${PV}" ] ; then
+ SRC_URI=""
+ KEYWORDS=""
+else
+ SRC_URI="http://download.ros.org/downloads/${PN}/${P}.tar.gz
+ https://github.com/ros-infrastructure/rosdep/archive/${PV}.tar.gz -> ${P}.tar.gz
+ "
+ KEYWORDS="~amd64 ~arm"
+fi
+
+LICENSE="BSD"
+SLOT="0"
+IUSE="test"
+
+RDEPEND="
+ dev-python/catkin_pkg[${PYTHON_USEDEP}]
+ dev-python/rospkg[${PYTHON_USEDEP}]
+ dev-python/rosdistro[${PYTHON_USEDEP}]
+ dev-python/pyyaml[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+ dev-python/nose[${PYTHON_USEDEP}]
+ test? (
+ dev-python/coverage[${PYTHON_USEDEP}]
+ dev-python/mock[${PYTHON_USEDEP}]
+ )
+"
+
+python_test() {
+ nosetests --with-coverage --cover-package=rosdep2 --with-xunit test || die
+}
+
+pkg_postrm() {
+ if [ "${ROOT:-/}" = "/" ] ; then
+ einfo "Removing rosdep default sources list."
+ rm -f "${EPREFIX}/etc/ros/rosdep/sources.list.d/20-default.list"
+ fi
+}
+
+pkg_postinst() {
+ if [ "${ROOT:-/}" = "/" -a ! -f "${EPREFIX}/etc/ros/rosdep/sources.list.d/20-default.list" ] ; then
+ einfo "Initializing rosdep"
+ rosdep init
+ fi
+}
diff --git a/dev-util/rosdep/rosdep-0.11.6.ebuild b/dev-util/rosdep/rosdep-0.11.6.ebuild
new file mode 100644
index 000000000000..463cc83cafbd
--- /dev/null
+++ b/dev-util/rosdep/rosdep-0.11.6.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} pypy{,3} )
+
+SCM=""
+if [ "${PV#9999}" != "${PV}" ] ; then
+ SCM="git-r3"
+ EGIT_REPO_URI="https://github.com/ros-infrastructure/rosdep"
+fi
+
+inherit ${SCM} distutils-r1
+
+DESCRIPTION="Command-line tool for installing ROS system dependencies"
+HOMEPAGE="http://wiki.ros.org/rosdep"
+if [ "${PV#9999}" != "${PV}" ] ; then
+ SRC_URI=""
+ KEYWORDS=""
+else
+ SRC_URI="http://download.ros.org/downloads/${PN}/${P}.tar.gz
+ https://github.com/ros-infrastructure/rosdep/archive/${PV}.tar.gz -> ${P}.tar.gz
+ "
+ KEYWORDS="~amd64 ~arm"
+fi
+
+LICENSE="BSD"
+SLOT="0"
+IUSE="test"
+
+RDEPEND="
+ dev-python/catkin_pkg[${PYTHON_USEDEP}]
+ dev-python/rospkg[${PYTHON_USEDEP}]
+ dev-python/rosdistro[${PYTHON_USEDEP}]
+ dev-python/pyyaml[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+ dev-python/nose[${PYTHON_USEDEP}]
+ test? (
+ dev-python/coverage[${PYTHON_USEDEP}]
+ dev-python/mock[${PYTHON_USEDEP}]
+ )
+"
+
+python_test() {
+ nosetests --with-coverage --cover-package=rosdep2 --with-xunit test || die
+}
+
+pkg_postrm() {
+ if [ "${ROOT:-/}" = "/" ] ; then
+ einfo "Removing rosdep default sources list."
+ rm -f "${EPREFIX}/etc/ros/rosdep/sources.list.d/20-default.list"
+ fi
+}
+
+pkg_postinst() {
+ if [ "${ROOT:-/}" = "/" -a ! -f "${EPREFIX}/etc/ros/rosdep/sources.list.d/20-default.list" ] ; then
+ einfo "Initializing rosdep"
+ rosdep init
+ fi
+}
diff --git a/dev-util/rosdep/rosdep-0.11.8.ebuild b/dev-util/rosdep/rosdep-0.11.8.ebuild
new file mode 100644
index 000000000000..463cc83cafbd
--- /dev/null
+++ b/dev-util/rosdep/rosdep-0.11.8.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} pypy{,3} )
+
+SCM=""
+if [ "${PV#9999}" != "${PV}" ] ; then
+ SCM="git-r3"
+ EGIT_REPO_URI="https://github.com/ros-infrastructure/rosdep"
+fi
+
+inherit ${SCM} distutils-r1
+
+DESCRIPTION="Command-line tool for installing ROS system dependencies"
+HOMEPAGE="http://wiki.ros.org/rosdep"
+if [ "${PV#9999}" != "${PV}" ] ; then
+ SRC_URI=""
+ KEYWORDS=""
+else
+ SRC_URI="http://download.ros.org/downloads/${PN}/${P}.tar.gz
+ https://github.com/ros-infrastructure/rosdep/archive/${PV}.tar.gz -> ${P}.tar.gz
+ "
+ KEYWORDS="~amd64 ~arm"
+fi
+
+LICENSE="BSD"
+SLOT="0"
+IUSE="test"
+
+RDEPEND="
+ dev-python/catkin_pkg[${PYTHON_USEDEP}]
+ dev-python/rospkg[${PYTHON_USEDEP}]
+ dev-python/rosdistro[${PYTHON_USEDEP}]
+ dev-python/pyyaml[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+ dev-python/nose[${PYTHON_USEDEP}]
+ test? (
+ dev-python/coverage[${PYTHON_USEDEP}]
+ dev-python/mock[${PYTHON_USEDEP}]
+ )
+"
+
+python_test() {
+ nosetests --with-coverage --cover-package=rosdep2 --with-xunit test || die
+}
+
+pkg_postrm() {
+ if [ "${ROOT:-/}" = "/" ] ; then
+ einfo "Removing rosdep default sources list."
+ rm -f "${EPREFIX}/etc/ros/rosdep/sources.list.d/20-default.list"
+ fi
+}
+
+pkg_postinst() {
+ if [ "${ROOT:-/}" = "/" -a ! -f "${EPREFIX}/etc/ros/rosdep/sources.list.d/20-default.list" ] ; then
+ einfo "Initializing rosdep"
+ rosdep init
+ fi
+}
diff --git a/dev-util/rosdep/rosdep-9999.ebuild b/dev-util/rosdep/rosdep-9999.ebuild
new file mode 100644
index 000000000000..463cc83cafbd
--- /dev/null
+++ b/dev-util/rosdep/rosdep-9999.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} pypy{,3} )
+
+SCM=""
+if [ "${PV#9999}" != "${PV}" ] ; then
+ SCM="git-r3"
+ EGIT_REPO_URI="https://github.com/ros-infrastructure/rosdep"
+fi
+
+inherit ${SCM} distutils-r1
+
+DESCRIPTION="Command-line tool for installing ROS system dependencies"
+HOMEPAGE="http://wiki.ros.org/rosdep"
+if [ "${PV#9999}" != "${PV}" ] ; then
+ SRC_URI=""
+ KEYWORDS=""
+else
+ SRC_URI="http://download.ros.org/downloads/${PN}/${P}.tar.gz
+ https://github.com/ros-infrastructure/rosdep/archive/${PV}.tar.gz -> ${P}.tar.gz
+ "
+ KEYWORDS="~amd64 ~arm"
+fi
+
+LICENSE="BSD"
+SLOT="0"
+IUSE="test"
+
+RDEPEND="
+ dev-python/catkin_pkg[${PYTHON_USEDEP}]
+ dev-python/rospkg[${PYTHON_USEDEP}]
+ dev-python/rosdistro[${PYTHON_USEDEP}]
+ dev-python/pyyaml[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+ dev-python/nose[${PYTHON_USEDEP}]
+ test? (
+ dev-python/coverage[${PYTHON_USEDEP}]
+ dev-python/mock[${PYTHON_USEDEP}]
+ )
+"
+
+python_test() {
+ nosetests --with-coverage --cover-package=rosdep2 --with-xunit test || die
+}
+
+pkg_postrm() {
+ if [ "${ROOT:-/}" = "/" ] ; then
+ einfo "Removing rosdep default sources list."
+ rm -f "${EPREFIX}/etc/ros/rosdep/sources.list.d/20-default.list"
+ fi
+}
+
+pkg_postinst() {
+ if [ "${ROOT:-/}" = "/" -a ! -f "${EPREFIX}/etc/ros/rosdep/sources.list.d/20-default.list" ] ; then
+ einfo "Initializing rosdep"
+ rosdep init
+ fi
+}
diff --git a/dev-util/rosinstall/Manifest b/dev-util/rosinstall/Manifest
new file mode 100644
index 000000000000..27442e0d25df
--- /dev/null
+++ b/dev-util/rosinstall/Manifest
@@ -0,0 +1,5 @@
+DIST rosinstall-0.7.8.tar.gz 26430 SHA256 2ba808bf8bac2cc3f13af9745184b9714c1426e11d09eb96468611b2ad47ed40 SHA512 a53ae8fb96f9dda4671b22dfd9dbadc18d1e4adbf34a50b6706baf971c1c7ee418e14641d334346b02638f06c10d1bc984b4759c92a39510dd0044fbc346be67 WHIRLPOOL ef84d3cc5c37792a6b1b7c85b8ae2caa9cf8ed36a3150c3270a9230a1cec32597041db7d73a03ed57cb2686d0791fb5c36764ea79518c6da6a9bca4e358e83a7
+EBUILD rosinstall-0.7.8.ebuild 1538 SHA256 e301f061737a15d4067e9541e2574cfcb8d163d241823213c476eacd5a7b70ef SHA512 7b80df325b9886f529c41fd03f0ee470c10d0559c9ae922c1a326b2e4683b62610a849b755d2d5b1c3ed6871d64851998837538b39fb79b00030ae10db311721 WHIRLPOOL 30fe9ba44c8890c8d9a87a85d5c7ebf449b21b870d99a2f0771b369a2af456e5834044d751f6336cd4039277b529c11b7a9dfa5f331029af3f344fcf705f406f
+EBUILD rosinstall-9999.ebuild 1538 SHA256 e301f061737a15d4067e9541e2574cfcb8d163d241823213c476eacd5a7b70ef SHA512 7b80df325b9886f529c41fd03f0ee470c10d0559c9ae922c1a326b2e4683b62610a849b755d2d5b1c3ed6871d64851998837538b39fb79b00030ae10db311721 WHIRLPOOL 30fe9ba44c8890c8d9a87a85d5c7ebf449b21b870d99a2f0771b369a2af456e5834044d751f6336cd4039277b529c11b7a9dfa5f331029af3f344fcf705f406f
+MISC ChangeLog 1469 SHA256 294012fe317fcc448268f7b34c013015a68be1e525d86cf18e61863e9268234d SHA512 25065f27bad42617be7a0e96f39e87bdcdcb72b7389d44d21971588fd0a3a4e536fbd39eb6f623e7c28d1592028f4e000e421097d6f620f0ce208de1b7eac0de WHIRLPOOL 8cf31aecbfbb120c26401afb4abe50a2a13f1db69d20e9d8533e8c20f42a028654bb2efb52f219583fd7c0e692435efd21a89ae72c79d0a907bbb554a8b0e230
+MISC metadata.xml 333 SHA256 df3d2d537603577520d2c9bb5e4212b7dad37be54b4b1e9089d4edf0da4ea095 SHA512 5c6ef4930985cd5c2ea51b18a25d7cc2a5e387bdbd26e42f8710d6ce903cf13fe85ee1f1d13a0ffe82c8056dd295a3e25268ec58353508f30bf10404ae4ffb8a WHIRLPOOL 19d6efcb5258e8fefa3de1312350939c50faad71a23e5fae2b4bccd63c44a9641c9fe7cff1232daef2dd790eff8b62ad856624090e8566883d65eff8acb6ca9a
diff --git a/dev-util/rosinstall/metadata.xml b/dev-util/rosinstall/metadata.xml
new file mode 100644
index 000000000000..22544f9d5e39
--- /dev/null
+++ b/dev-util/rosinstall/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="project">
+ <email>ros@gentoo.org</email>
+ <name>Gentoo ROS Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">vcstools/rosinstall</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/rosinstall/rosinstall-0.7.8.ebuild b/dev-util/rosinstall/rosinstall-0.7.8.ebuild
new file mode 100644
index 000000000000..421784382161
--- /dev/null
+++ b/dev-util/rosinstall/rosinstall-0.7.8.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python{2_7,3_4,3_5} )
+
+SCM=""
+if [ "${PV#9999}" != "${PV}" ] ; then
+ SCM="git-r3"
+ EGIT_REPO_URI="https://github.com/vcstools/rosinstall"
+fi
+
+inherit ${SCM} distutils-r1
+
+DESCRIPTION="Command-line tools for maintaining a workspace of projects for ROS"
+HOMEPAGE="http://wiki.ros.org/rosinstall http://wiki.ros.org/roslocate"
+if [ "${PV#9999}" != "${PV}" ] ; then
+ SRC_URI=""
+ KEYWORDS=""
+else
+ SRC_URI="http://download.ros.org/downloads/${PN}/${P}.tar.gz
+ https://github.com/vcstools/rosinstall/archive/${PV}.tar.gz -> ${P}.tar.gz
+ "
+ KEYWORDS="~amd64 ~arm"
+fi
+
+LICENSE="BSD"
+SLOT="0"
+IUSE="test"
+
+RDEPEND="
+ dev-python/catkin_pkg[${PYTHON_USEDEP}]
+ >=dev-python/vcstools-0.1.38[${PYTHON_USEDEP}]
+ dev-python/rosdistro[${PYTHON_USEDEP}]
+ >=dev-util/wstool-0.1.12[${PYTHON_USEDEP}]
+ dev-python/pyyaml[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+ test? (
+ dev-python/nose[${PYTHON_USEDEP}]
+ dev-vcs/git
+ dev-vcs/bzr
+ dev-vcs/mercurial
+ app-shells/zsh
+ )
+"
+
+python_test() {
+ # From travis.yml
+ # Set git config to silence some stuff in the tests
+ git config --global user.email "foo@example.com"
+ git config --global user.name "Foo Bar"
+ # Set the hg user
+ echo -e "[ui]\nusername = Your Name <your@mail.com>" >> ~/.hgrc
+ # Set the bzr user
+ bzr whoami "Your Name <name@example.com>"
+ # command to run tests
+ # Local tests work even if ros.org is down
+ export ROSINSTALL_SKIP_PYTHON3=1
+ nosetests test || die
+}
diff --git a/dev-util/rosinstall/rosinstall-9999.ebuild b/dev-util/rosinstall/rosinstall-9999.ebuild
new file mode 100644
index 000000000000..421784382161
--- /dev/null
+++ b/dev-util/rosinstall/rosinstall-9999.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python{2_7,3_4,3_5} )
+
+SCM=""
+if [ "${PV#9999}" != "${PV}" ] ; then
+ SCM="git-r3"
+ EGIT_REPO_URI="https://github.com/vcstools/rosinstall"
+fi
+
+inherit ${SCM} distutils-r1
+
+DESCRIPTION="Command-line tools for maintaining a workspace of projects for ROS"
+HOMEPAGE="http://wiki.ros.org/rosinstall http://wiki.ros.org/roslocate"
+if [ "${PV#9999}" != "${PV}" ] ; then
+ SRC_URI=""
+ KEYWORDS=""
+else
+ SRC_URI="http://download.ros.org/downloads/${PN}/${P}.tar.gz
+ https://github.com/vcstools/rosinstall/archive/${PV}.tar.gz -> ${P}.tar.gz
+ "
+ KEYWORDS="~amd64 ~arm"
+fi
+
+LICENSE="BSD"
+SLOT="0"
+IUSE="test"
+
+RDEPEND="
+ dev-python/catkin_pkg[${PYTHON_USEDEP}]
+ >=dev-python/vcstools-0.1.38[${PYTHON_USEDEP}]
+ dev-python/rosdistro[${PYTHON_USEDEP}]
+ >=dev-util/wstool-0.1.12[${PYTHON_USEDEP}]
+ dev-python/pyyaml[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+ test? (
+ dev-python/nose[${PYTHON_USEDEP}]
+ dev-vcs/git
+ dev-vcs/bzr
+ dev-vcs/mercurial
+ app-shells/zsh
+ )
+"
+
+python_test() {
+ # From travis.yml
+ # Set git config to silence some stuff in the tests
+ git config --global user.email "foo@example.com"
+ git config --global user.name "Foo Bar"
+ # Set the hg user
+ echo -e "[ui]\nusername = Your Name <your@mail.com>" >> ~/.hgrc
+ # Set the bzr user
+ bzr whoami "Your Name <name@example.com>"
+ # command to run tests
+ # Local tests work even if ros.org is down
+ export ROSINSTALL_SKIP_PYTHON3=1
+ nosetests test || die
+}
diff --git a/dev-util/rosinstall_generator/Manifest b/dev-util/rosinstall_generator/Manifest
new file mode 100644
index 000000000000..f7f84198206f
--- /dev/null
+++ b/dev-util/rosinstall_generator/Manifest
@@ -0,0 +1,9 @@
+DIST rosinstall_generator-0.1.11.tar.gz 10230 SHA256 cbb87d76a35d14d9dc5728c53e0027fe855830daacf6b4aa78b336fad03a297d SHA512 ec94feaf05f105cc19715824937c96a505bcff1236a445f8eb85cd68dfa70fd8e146d6e8c67a5f1d54b1579a8f432ecbf042acd7c0a78a104c27281433afb2f6 WHIRLPOOL e78320c5134f6645ab168695b4a5291fda8348a38f0b5f3a27618e0c6a9eac04381a843f1eb083db9e1f4edb149e8ac767e6ded6691894dec604504e582fce34
+DIST rosinstall_generator-0.1.12.tar.gz 10269 SHA256 aa767131b5f99177ea4372b65938560f5f6bd45d79cdddd09164fe1708650d17 SHA512 29c22920c5780deb9562ca26cff442161518d86f0b0355c2303b831f27c3c6b6cd0825321254a1dc97ccbe91806741b3b16bbd21309fa81b2aa4412b45b5c8e0 WHIRLPOOL bbaf1c849a7c304d96a7d58b155cd6d5f5ff667d6fe6c5cc8605e3e7c4184699b68a9b9bb016462410ecbe717d18e1c0d8b18a7336d49bf9b4570f1208498262
+DIST rosinstall_generator-0.1.13.tar.gz 11186 SHA256 90e7689750e1b07ec1aa647bb8f34ea6efe7777f8d349c9698428afb56733cd0 SHA512 c8b5736066f8a42a324b2bed578e03282b6d8ae8df48fb30545617c2995ce53f35d7fea6fab3989383b958e7cb763b24deb67c5ec3496cc77f1ba51f110ab78c WHIRLPOOL 60cec0ea01de5a17b7a8dbdb45e4496f6e19cc2ab09da253e1ff6a6733a4f1fef473df8498c64a25e72d1ee78f79c54af819e03013dfd4ba1b11b6ba7733a93c
+EBUILD rosinstall_generator-0.1.11.ebuild 948 SHA256 e770f3417d76a4d32e7e0f0305a27e5ded34049b9f43aab382a6c1abad3959e5 SHA512 729ebcd532742a73d8bc7883b3b42ad92f9dfe40e142319ecb745863d13b9ea19d11c93203295adf2d9c70840026a009f46ccb74d34a3e818a83f67d3f3a1e4b WHIRLPOOL ab2acd0eeff8c58d6f6645f3b7084ce256aab0ee59f866598c3eedf67a42a6eb1df67a9c27ed77dbdc56ca74dc42f67a9c391dedc8e12527ee8d76abb386b835
+EBUILD rosinstall_generator-0.1.12.ebuild 948 SHA256 690da69dc92496049c82c45dedea548979cd75fb4b5d39d427773eec7f61b4c2 SHA512 adf4d447336a44a6bafc83f46f57a0a3ce6b6f1b793447ccc92c636d89b6329f8700304958ca630f5989879a81a9f0ed7480a9166dba319ee671cf14096834bf WHIRLPOOL 17bbda75cedf7237b3c19e882913cb9607e8dbf424a6260c86aaa4c88873c646be379993da12d208653523a9b08bfb1c5fea2c8f47aa5e33e67d8f533242e247
+EBUILD rosinstall_generator-0.1.13.ebuild 964 SHA256 3c10b66707a1018fdb69c90f05aec896878d2f4379fc2b061df098f5992a0421 SHA512 b162d9e0320db3d3cfb7a812f4938be9e868231b9c1fd9d3e5d70c93ce2b3460964c706a8d9108308f7554c9d7f3e852552b501ba2d49db4f6330e432e051a8a WHIRLPOOL 9042710dbde0c61fecbc5260e1fd9226d6bd380a86628f38d8b6b6518787be53e99a278bfac62f15c4c3a02bb75963dda117a81fa29aa8117eca35422c8ea903
+EBUILD rosinstall_generator-9999.ebuild 964 SHA256 3c10b66707a1018fdb69c90f05aec896878d2f4379fc2b061df098f5992a0421 SHA512 b162d9e0320db3d3cfb7a812f4938be9e868231b9c1fd9d3e5d70c93ce2b3460964c706a8d9108308f7554c9d7f3e852552b501ba2d49db4f6330e432e051a8a WHIRLPOOL 9042710dbde0c61fecbc5260e1fd9226d6bd380a86628f38d8b6b6518787be53e99a278bfac62f15c4c3a02bb75963dda117a81fa29aa8117eca35422c8ea903
+MISC ChangeLog 1597 SHA256 beeefa82ad30fd8e1f2a846f0f6bf814b58c0415fd37db60dbca411bd077a6cb SHA512 6b3fb27c03ce11433faf40684255da2833b7f6c735c62d60bb66caa4120d148fbbf350b0d12328f8a751726de4acc3cae941b2cd402b9d994469a71cf5c953c8 WHIRLPOOL 01caaf614c6432d6eb756a4755338f7b4eb6d066d36aaad42fde3abfc901b9337b404ef5e3e3fdcab86645f403c273a61eabfca95d6c38152fba0994d3cbeb88
+MISC metadata.xml 353 SHA256 d95a8f8e8c99b1c0bcc1f3e56eb906dc9f2894cee941cb2b4c60135b3bf47f85 SHA512 a681a9f31c4cf06a775ef57f7a942c76d0e8873c4c854fddaf44df0301f3e14bd836727e6816bc74f0ced9e54dfd9335c376c47b8af2a19455c42a3f6ed38a18 WHIRLPOOL 3788bf4641da125b4c12927eb7eccd3fd8b8befd7f19190d8ff12bb97faffcefd5d586a139075e5bd6a089ff81f54e49d64d076911beebb2a695446e44cfd3d1
diff --git a/dev-util/rosinstall_generator/metadata.xml b/dev-util/rosinstall_generator/metadata.xml
new file mode 100644
index 000000000000..b8df423a729e
--- /dev/null
+++ b/dev-util/rosinstall_generator/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="project">
+ <email>ros@gentoo.org</email>
+ <name>Gentoo ROS Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">ros-infrastructure/rosinstall_generator</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/rosinstall_generator/rosinstall_generator-0.1.11.ebuild b/dev-util/rosinstall_generator/rosinstall_generator-0.1.11.ebuild
new file mode 100644
index 000000000000..36abfaddc7f9
--- /dev/null
+++ b/dev-util/rosinstall_generator/rosinstall_generator-0.1.11.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python{2_7,3_4} )
+
+SCM=""
+if [ "${PV#9999}" != "${PV}" ] ; then
+ SCM="git-r3"
+ EGIT_REPO_URI="https://github.com/ros-infrastructure/rosinstall_generator"
+fi
+
+inherit ${SCM} distutils-r1
+
+DESCRIPTION="Generates rosinstall files containing information about repositories with ROS packages/stacks"
+HOMEPAGE="http://wiki.ros.org/rosinstall_generator"
+if [ "${PV#9999}" != "${PV}" ] ; then
+ SRC_URI=""
+ KEYWORDS=""
+else
+ SRC_URI="https://github.com/ros-infrastructure/rosinstall_generator/archive/${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~arm"
+fi
+
+LICENSE="BSD"
+SLOT="0"
+IUSE=""
+
+RDEPEND="
+ >=dev-python/catkin_pkg-0.1.28[${PYTHON_USEDEP}]
+ dev-python/rosdistro[${PYTHON_USEDEP}]
+ dev-python/rospkg[${PYTHON_USEDEP}]
+ dev-python/pyyaml[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]"
diff --git a/dev-util/rosinstall_generator/rosinstall_generator-0.1.12.ebuild b/dev-util/rosinstall_generator/rosinstall_generator-0.1.12.ebuild
new file mode 100644
index 000000000000..d0f79b54db5c
--- /dev/null
+++ b/dev-util/rosinstall_generator/rosinstall_generator-0.1.12.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python{2_7,3_4} )
+
+SCM=""
+if [ "${PV#9999}" != "${PV}" ] ; then
+ SCM="git-r3"
+ EGIT_REPO_URI="https://github.com/ros-infrastructure/rosinstall_generator"
+fi
+
+inherit ${SCM} distutils-r1
+
+DESCRIPTION="Generates rosinstall files containing information about repositories with ROS packages/stacks"
+HOMEPAGE="http://wiki.ros.org/rosinstall_generator"
+if [ "${PV#9999}" != "${PV}" ] ; then
+ SRC_URI=""
+ KEYWORDS=""
+else
+ SRC_URI="https://github.com/ros-infrastructure/rosinstall_generator/archive/${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~arm"
+fi
+
+LICENSE="BSD"
+SLOT="0"
+IUSE=""
+
+RDEPEND="
+ >=dev-python/catkin_pkg-0.1.28[${PYTHON_USEDEP}]
+ dev-python/rosdistro[${PYTHON_USEDEP}]
+ dev-python/rospkg[${PYTHON_USEDEP}]
+ dev-python/pyyaml[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]"
diff --git a/dev-util/rosinstall_generator/rosinstall_generator-0.1.13.ebuild b/dev-util/rosinstall_generator/rosinstall_generator-0.1.13.ebuild
new file mode 100644
index 000000000000..a793d67d94a8
--- /dev/null
+++ b/dev-util/rosinstall_generator/rosinstall_generator-0.1.13.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+
+SCM=""
+if [ "${PV#9999}" != "${PV}" ] ; then
+ SCM="git-r3"
+ EGIT_REPO_URI="https://github.com/ros-infrastructure/rosinstall_generator"
+fi
+
+inherit ${SCM} distutils-r1
+
+DESCRIPTION="Generates rosinstall files containing information about repositories with ROS packages/stacks"
+HOMEPAGE="http://wiki.ros.org/rosinstall_generator"
+if [ "${PV#9999}" != "${PV}" ] ; then
+ SRC_URI=""
+ KEYWORDS=""
+else
+ SRC_URI="https://github.com/ros-infrastructure/rosinstall_generator/archive/${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~arm"
+fi
+
+LICENSE="BSD"
+SLOT="0"
+IUSE=""
+
+RDEPEND="
+ >=dev-python/catkin_pkg-0.1.28[${PYTHON_USEDEP}]
+ >=dev-python/rosdistro-0.5.0[${PYTHON_USEDEP}]
+ dev-python/rospkg[${PYTHON_USEDEP}]
+ dev-python/pyyaml[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]"
diff --git a/dev-util/rosinstall_generator/rosinstall_generator-9999.ebuild b/dev-util/rosinstall_generator/rosinstall_generator-9999.ebuild
new file mode 100644
index 000000000000..a793d67d94a8
--- /dev/null
+++ b/dev-util/rosinstall_generator/rosinstall_generator-9999.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+
+SCM=""
+if [ "${PV#9999}" != "${PV}" ] ; then
+ SCM="git-r3"
+ EGIT_REPO_URI="https://github.com/ros-infrastructure/rosinstall_generator"
+fi
+
+inherit ${SCM} distutils-r1
+
+DESCRIPTION="Generates rosinstall files containing information about repositories with ROS packages/stacks"
+HOMEPAGE="http://wiki.ros.org/rosinstall_generator"
+if [ "${PV#9999}" != "${PV}" ] ; then
+ SRC_URI=""
+ KEYWORDS=""
+else
+ SRC_URI="https://github.com/ros-infrastructure/rosinstall_generator/archive/${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~arm"
+fi
+
+LICENSE="BSD"
+SLOT="0"
+IUSE=""
+
+RDEPEND="
+ >=dev-python/catkin_pkg-0.1.28[${PYTHON_USEDEP}]
+ >=dev-python/rosdistro-0.5.0[${PYTHON_USEDEP}]
+ dev-python/rospkg[${PYTHON_USEDEP}]
+ dev-python/pyyaml[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]"
diff --git a/dev-util/rpmdevtools/Manifest b/dev-util/rpmdevtools/Manifest
new file mode 100644
index 000000000000..4b2bc2c0ef37
--- /dev/null
+++ b/dev-util/rpmdevtools/Manifest
@@ -0,0 +1,5 @@
+DIST rpmdevtools-8.10.tar.xz 94976 SHA256 dddf6649f2bcbe0204bd59316a387a59bb9056aaa14593e1b4dcdfe8c05dafcc SHA512 49f310d5cf1e709e8001ffcf2b17afa7f7a89ef9c8f805d694149a914c40626a08afe93b16d9ed41df1717d0bc97713c06a3b0e63f13fa53d978c6204bb05d57 WHIRLPOOL 2db8900fe8198632a057551600a686bda5b549d1e0e9a274e336519d2831d588ee4ac7ae4efa8961b21fa9b02cfc857b026cf028d33002702eee970539844f74
+EBUILD rpmdevtools-8.10.ebuild 769 SHA256 4e4729a394af5b4b4086b79cc4936ad69f621fa9887426ab12fccd67e65fa707 SHA512 8c39b0b3f70595226a60199f0b32263d9c6a5b7c3a219d716c7ff08ab3593e21e4ca46aa39346681de3e49ca2307324a9b8d182719842d3850710fd532f59d41 WHIRLPOOL f297fd179da1f4e785c0a8577e52f02dff2d4971c7c67ecf1d844f399211ccfe0ab4e503c95f51bcc64363e6a9fc890b5aef1556d61dbf44695f5626cbd38065
+MISC ChangeLog 2953 SHA256 00ddfa0337e9ff9cfd9b457366b28e7cdbdb1967254e72202e3406ec35442a77 SHA512 90c02c9749ccdd73b5cc356ac5c194108293d78e078bdd130a0ce1e72d920dd38ba05f320856c439257eb91a76391caec35b76c656e3e31bc3af85c252a09ab1 WHIRLPOOL a4c21a7dab834be18b03bd86122a05251552d08a70d13b0962103fffdffa1fae7d1ab9822a7ac3d55d04464da6b9d2d10d5bafe8878e4da7c744bec5cb2a170f
+MISC ChangeLog-2015 984 SHA256 f7ca0c2641506f2dcb9f5ddc2f076062667a51a9f7c640f80e816c1629496c7d SHA512 ce6ed5d8149e671ec198ba333f778ea930adf10ed6957e28448c85a5583153f451fc0be78ca783c34ece42599eb9bfbafa4295824a8b35da3f4e7842de646418 WHIRLPOOL 30e57d3983ae557c5f00ed0e2fb46caf8b56bbc3d279037bf4b518aae5e1e69a7ad28f392c7e4822f3845724cea2aaa73d54ccf491bdaf01bdfc6a7129ee0dd7
+MISC metadata.xml 221 SHA256 c73636a70f6ee6e176f71ac32048a002355627ef4f1181fb245c6c0eb39be8b8 SHA512 e50d6cad26239ebf4260f0cf4bdf4e29ef2038e999039adf94f49b184b5993f02bb0d4cdb3de6c7b5cda99890db42dcd2b65c5342256be50dc19e6aab2406353 WHIRLPOOL 8e35f4dca402d63d64baae4aba21722f8daccb3a61861a0b453cb355305fb29dc8e9d1e1760eb2f13d264502aaaafc37d15258338e97dbb4aea15239944f25d6
diff --git a/dev-util/rpmdevtools/metadata.xml b/dev-util/rpmdevtools/metadata.xml
new file mode 100644
index 000000000000..69570e849328
--- /dev/null
+++ b/dev-util/rpmdevtools/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>kensington@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-util/rpmdevtools/rpmdevtools-8.10.ebuild b/dev-util/rpmdevtools/rpmdevtools-8.10.ebuild
new file mode 100644
index 000000000000..695baa91caf8
--- /dev/null
+++ b/dev-util/rpmdevtools/rpmdevtools-8.10.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+inherit python-single-r1
+
+DESCRIPTION="Collection of rpm packaging related utilities"
+HOMEPAGE="https://pagure.io/rpmdevtools"
+SRC_URI="https://releases.pagure.org/${PN}/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="emacs"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+COMMON_DEPEND="
+ ${PYTHON_DEPS}
+ app-arch/rpm[python,${PYTHON_USEDEP}]
+ dev-lang/perl:*
+"
+RDEPEND="${COMMON_DEPEND}
+ net-misc/curl
+ emacs? ( app-emacs/rpm-spec-mode )
+"
+DEPEND="${COMMON_DEPEND}
+ sys-apps/help2man
+"
+
+src_prepare() {
+ default
+ python_fix_shebang rpmdev-{rmdevelrpms.py,checksig,sort,vercmp,bumpspec}
+}
diff --git a/dev-util/rr/Manifest b/dev-util/rr/Manifest
new file mode 100644
index 000000000000..d3ddffc3e3f4
--- /dev/null
+++ b/dev-util/rr/Manifest
@@ -0,0 +1,4 @@
+AUX rr-4.5.0-sysmacros.patch 788 SHA256 131be30c9cc07ba73c615b75e62580b6270e594070052bf4ac7d26ac2aff3f17 SHA512 57c802d02ba6d8e9295300fcc0156670a3fc9b35dbd05d594eff95481eaa746d7715d9b493190c94833cb331e45cda71f5574b0fa5aed06991b1d80fd4f9bae6 WHIRLPOOL 528ce6fb414ae327a320df7b3de6142c51a85c78128fb60a407a7c3d3671388dd82f0f5c6c14e4ab92b4a5004e41e0114b6933f5b35615d54b0e230859bc20dd
+DIST mozilla-rr-4.5.0.tar.gz 683371 SHA256 19f28259c0aa562c9518ae51207377fa93071a7dc270a0738d8d39e45ae2b1c0 SHA512 8e9b7c6eaa9908e75853b5e19f61954b57e6e5afa7a8b6fe55f31aee36bab6ff315b5c3511d14c93dca5da19055a7879b6f3b9f51c349b1bb9acea130187a5e6 WHIRLPOOL d16e36da11d3ed0c0c4f8509abe890842fc95127a899e98800db93d407080ea796d1e8fd8545f17d84540a553f848b3985c9c139479d1a76fa31e418ad700e33
+EBUILD rr-4.5.0.ebuild 1073 SHA256 731063d2afb3e09469e2e7ed5adf401d6e4093dfdcef2074d126479daaee9bfe SHA512 45174284c9f7c0c1c297629a028a8b83fee93972ee94d111b0c681922df208530849a20884663f511df38f7113b61ce2e4fc3404116102a3a6aa0945afab3c57 WHIRLPOOL 4d5d45abf5fdfc543a8ecd6593228fe68a8745884c4c157a9b4c3c366b84e9aa61d44e6b6ff12aa8013fcdfb79b7f4efdeb7cf04fc952b30c24d5e4e573575e6
+MISC metadata.xml 555 SHA256 e5fa28c09a12a5b011c7e60caadd9436cbd2b8a139ff7db98977a0b385231c7e SHA512 33487b0389d097115365ef82c85accedf17d798e312e9528fae27519f242c343fa280d32bff05c6f1a1620d6481df1db57fc4c1e2fa7ce36dbe56f998f03870a WHIRLPOOL 7a0d6df2c68791c2849a709ba64cfabcd4b5707fe01a2a7d552122ed3b66b863fc9f4040668b133ce9906f210eed9521d0b7d033dce6c2296e2e2280269dc5ab
diff --git a/dev-util/rr/files/rr-4.5.0-sysmacros.patch b/dev-util/rr/files/rr-4.5.0-sysmacros.patch
new file mode 100644
index 000000000000..573d5956598b
--- /dev/null
+++ b/dev-util/rr/files/rr-4.5.0-sysmacros.patch
@@ -0,0 +1,28 @@
+https://github.com/mozilla/rr/pull/1981
+
+From fefdb3b89e98192601dfdc98c8927c9a91f07f9f Mon Sep 17 00:00:00 2001
+From: Mike Frysinger <vapier@gentoo.org>
+Date: Mon, 13 Feb 2017 16:01:52 -0500
+Subject: [PATCH] tests: include sys/sysmacros.h for minor/major funcs
+
+Newer versions of glibc are deprecating the implicit sys/sysmacros.h
+include via sys/types.h, so include it explicitly.
+---
+ src/test/rrutil.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/test/rrutil.h b/src/test/rrutil.h
+index 60de6e47a57b..bb5b527c4c9a 100644
+--- a/src/test/rrutil.h
++++ b/src/test/rrutil.h
+@@ -76,6 +76,7 @@
+ #include <sys/socket.h>
+ #include <sys/stat.h>
+ #include <sys/sysinfo.h>
++#include <sys/sysmacros.h>
+ #include <sys/time.h>
+ #include <sys/timerfd.h>
+ #include <sys/times.h>
+--
+2.11.0
+
diff --git a/dev-util/rr/metadata.xml b/dev-util/rr/metadata.xml
new file mode 100644
index 000000000000..4c3360d06373
--- /dev/null
+++ b/dev-util/rr/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>toolchain@gentoo.org</email>
+ <name>Gentoo Toolchain Project</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>lu_zero@gentoo.org</email>
+ <name>Luca Barbato</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>mudler@gentoo.org</email>
+ <name>Ettore Di Giacinto</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">mozilla/rr</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/rr/rr-4.5.0.ebuild b/dev-util/rr/rr-4.5.0.ebuild
new file mode 100644
index 000000000000..fd1d69c293d0
--- /dev/null
+++ b/dev-util/rr/rr-4.5.0.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+CMAKE_BUILD_TYPE=Release
+
+inherit cmake-utils linux-info python-single-r1
+
+DESCRIPTION="Record and Replay Framework"
+HOMEPAGE="http://rr-project.org/"
+SRC_URI="https://github.com/mozilla/${PN}/archive/${PV}.tar.gz -> mozilla-${P}.tar.gz"
+
+LICENSE="MIT BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+DEPEND="
+ sys-libs/zlib
+ ${PYTHON_DEPS}"
+RDEPEND="${DEPEND}
+ sys-devel/gdb[xml]"
+# Add all the deps needed only at build/test time.
+DEPEND+="
+ test? (
+ dev-python/pexpect[${PYTHON_USEDEP}]
+ sys-devel/gdb[xml]
+ )"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-sysmacros.patch
+)
+
+pkg_setup() {
+ if use kernel_linux; then
+ CONFIG_CHECK="SECCOMP"
+ linux-info_pkg_setup
+ fi
+ python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ cmake-utils_src_prepare
+
+ sed -i 's:-Werror::' CMakeLists.txt || die #609192
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_TESTS=$(usex test)
+ )
+
+ cmake-utils_src_configure
+}
diff --git a/dev-util/rustfmt/Manifest b/dev-util/rustfmt/Manifest
new file mode 100644
index 000000000000..48f319622c8a
--- /dev/null
+++ b/dev-util/rustfmt/Manifest
@@ -0,0 +1,46 @@
+DIST aho-corasick-0.5.1.crate 29015 SHA256 67077478f0a03952bed2e6786338d400d40c25e9836e08ad50af96607317fd03 SHA512 81dbcf720613671880c5f28066a1368ee7e953c5d9f44253dc1f9c31b601e87bac518baa48cfaa34b905a4f687ec30233c1dcb00da093dbe502ce8a2f96b9619 WHIRLPOOL 33ddea81b7768c02a14d4a461b0f8e0175567ffbf70dc0aa849bbd46830df0607212c2c5d51efa1b3902ad156b20f22c14fa07be2d03b848a202b66579639d54
+DIST aho-corasick-0.5.3.crate 252052 SHA256 ca972c2ea5f742bfce5687b9aef75506a764f61d37f8f649047846a9686ddb66 SHA512 cc297b4882b869919edf9023ee2bd7100eb48709f6e7076fd26d1701dab3d8aa2cfb03752a764877cd92177ab7a4ce3dcdae76d16965eca2ff53667832afda31 WHIRLPOOL 93651414398a02de849aa0b1dd8319678e20df385643422da751e38388afe60ae305f197a68cf2b9d1d6e39ef56c54979b6290a2c82555eb811839acffb72531
+DIST bitflags-0.5.0.crate 10940 SHA256 4f67931368edf3a9a51d29886d245f1c3db2f1ef0dcc9e35ff70341b78c10d23 SHA512 220511ed57391bbbd4c8828cf485aed25d078a1cad6305367939072383e48468d545550002398a288d30d8501b9232fb9a91e7a3651f67103991677b9f25de0c WHIRLPOOL b2f567584f039de09c214eda79307a8e88c454a6e11e545abb100171947ec876b0573e0422c22d320c713750cccaba990518915fa6318656f6a3ac5fbf193bbe
+DIST bitflags-0.7.0.crate 10851 SHA256 aad18937a628ec6abcd26d1489012cc0e18c21798210f491af69ded9b881106d SHA512 fdfe472c26e5486d1a3f1bfe5a27d26678781235c6e14b49bdb75388359cb78841f38d794fc4557548581a80a10b715d8840182c9ca3316049984a6b9f35b3c0 WHIRLPOOL 60551486cd6688c78ecd0ac40ca39b1f3d75537dd96ec32e9882e205bfe2062de939a129777d66f8c269c8a71e2f2aa240e015c0b3bfa51adbad478024e296d4
+DIST diff-0.1.9.crate 2954 SHA256 e48977eec6d3b7707462c2dc2e1363ad91b5dd822cf942537ccdc2085dc87587 SHA512 d208be8da107d438168197c7ea67377048519b350c10d30410b57d71954ef634d03dfdb87b88f5a9fd7e0527ac31d165df95bf7a040b03c161831b9bb3f78dee WHIRLPOOL fdf5e092d43de67799e116f67e1f2b4c6014e93cd85e495f04be44f908b1ffea6e45a63bbebafc69fc61e93056526f53273f347a11d909578ff2f0f8991b33f0
+DIST env_logger-0.3.3.crate 5603 SHA256 aba65b63ffcc17ffacd6cf5aa843da7c5a25e3bd4bbe0b7def8b214e411250e5 SHA512 336384348b052e5af4f1b8be2930e124b35b4652c4c6fdf4861012092b81790da51776c6fea1d2667bcca65d0e0a27186ceee7aba6657a45551dfbc37a348b48 WHIRLPOOL 26a2cf3dd76a17e98939498e56255d5d14eb89705a7b8912fff2288e62cd2836b0e3d00f37a452a3583cad1aa991f16f0040968c7b856e509a23dac4ce2b488a
+DIST env_logger-0.3.5.crate 5950 SHA256 15abd780e45b3ea4f76b4e9a26ff4843258dd8a3eed2775a0e7368c2e7936c2f SHA512 9650ba32bfaa8c013c04cf2eb68378874fed53a178332151bec8d7ac832ab2884f91fdc39c372d3c1677954b073212654fb570da1f3c708e4d5a25910d6c1181 WHIRLPOOL 21b4c81d96e5a8ccbda8491df42db9144acf41f4a25b1f510d8af7d46c931a28e089615692d46d9eb73c511a9cacfb59a15a5647ed1eea6d17ef9a973d99f5a5
+DIST getopts-0.2.14.crate 16622 SHA256 d9047cfbd08a437050b363d35ef160452c5fe8ea5187ae0a624708c91581d685 SHA512 bb6101403b6d4ed6102dc84c69e95114c0f336924a3f45643a5a92ca82a2ad5ef6b0405e1975b84853831dcb7518b24d094a211a54cc2b46d32ff914e2f977bd WHIRLPOOL 43b3a9bb5dadb22ee63731003dadf0baef31b85dc70d22f16fca6d3059e40a426a249b1748793c8667655efc9dc7b1f05c6679368d4f4320f918b088af1965d6
+DIST itertools-0.4.19.crate 64212 SHA256 c4a9b56eb56058f43dc66e58f40a214b2ccbc9f3df51861b63d51dec7b65bc3f SHA512 3cc1ec3928ace76394572a92f28d883a11f6f6481a0efcfbb9ef73b30e7f1f0ea35c407639dc45feb83da16bb756faa10192c75aea0cbfe573c22e20a5d97c99 WHIRLPOOL 28ca8bb6fd5e7f0a80c45f472862c5913223ec4f5480b3420b3c63274b472a33b439d4ae86258e5d8e7fffc0e77a912779066cc521b587ee2d3dcb4cc9c4407d
+DIST kernel32-sys-0.2.1.crate 24530 SHA256 b5b5e7edf375e6d26243bde172f1d5ed1446f4a766fc9b7006e1fd27258243f1 SHA512 7d63fda3200fc565853e5c2733f06c97f48f94ddfb13db73f889197917478948c3f73b61a9c0efc42cd4f8a4355af4c1790e3145ea18f35ccf29a2be997f5bad WHIRLPOOL 80af653642291337ba9a3d581f8c98f042f26c6138e650a563eae8b7e41064934c565dab2b50b55e93482cb0567a14ae2fd46bb89beda528675e59ba47bdf7c5
+DIST kernel32-sys-0.2.2.crate 24537 SHA256 7507624b29483431c0ba2d82aece8ca6cdba9382bff4ddd0f7490560c056098d SHA512 682bc7c629aefd035966a2873518fd60719121cca7d63d89d6c97ff5306f24d8b5055a3c91b4eedaec22b1d5dd3fb8b48ff7341a05bbd72d86e06c422dab473b WHIRLPOOL 036baa6611f13d76692a5c032e7e8e8b5a82e12bdf13d5a2cdcf4d33020b003c941331f0c8aa774e7f7cc7b36ad7403bb2cbdecb739d7645cff66aeecd59b09f
+DIST libc-0.2.16.crate 104182 SHA256 408014cace30ee0f767b1c4517980646a573ec61a57957aeeabcac8ac0a02e8d SHA512 7af473d11ad4a34e9bfbd1dddf77d3d39773f76d779a60664458fbe0acecc871286ab41d90beb0ac5ae7285099ed1ff0c94ca69f5cbac4d3b2cb56b0ff766203 WHIRLPOOL 0f88147e5a880563d6950b0da897f0282cd171dea3719a8ed02a0ad76c1c1f1d8c15777db61b209e390a7c226817961acc705a4c967a9772aa9b7b0211726332
+DIST libc-0.2.9.crate 77923 SHA256 95ca44454e7cfe7f8a2095a41a10c79d96a177c0b1672cbf1a30d901a9c16ee5 SHA512 4c0c7d1a28f42ad9c7ac8a12171a6d5d747b174ad3637497ea0db79f3b72469f811f2f6fb8dbbc6aee8d9e04637a9de7d8888db766b15a35b428c986d2650a16 WHIRLPOOL 956a7a182edf78907cc6b32a0fe2c8cfd8d627d5b833bab9e17ec9458ef9d7829a66a6070176ec7ec7da8d058a6b2bdd242d2165a2ff779290a376bf15c1a05c
+DIST log-0.3.6.crate 16110 SHA256 ab83497bf8bf4ed2a74259c1c802351fcd67a65baa86394b6ba73c36f4838054 SHA512 f2e5526a2613f70301a607cbc79213a946a6039f85473f9de28ceb2f3b464be61a584f34ca6381e077d8bf6ac751c93011087d1723649c0d7722281f1a2b7174 WHIRLPOOL 18ef70829fae28a19e545479f4fd6f181d5dbd67ea17dadfa5b8ecdb8437c04f07036de5c2d5421bec4f783ba9b6390e833d624506bdbe99d1b0c47624082bab
+DIST memchr-0.1.11.crate 6977 SHA256 d8b629fb514376c675b98c1421e80b151d3817ac42d7c667717d282761418d20 SHA512 96bbdb69913966326acba4bb82b8dfe0516edba225ac38b3355d60a2337ca620807750682fff3de7a2a38a7f70f0db7d8c1638701aacca7ab4c14098ba0fbcab WHIRLPOOL af0984d7e8084cc1aef94e486506a0fad9ec81d7be505233343e9fdad2ef0627a4d33bf99c2923959f9604326713ea24a01e2581aaa91249574b6c6d1a6d01a3
+DIST mempool-0.3.1.crate 6678 SHA256 4163a9c003e88a1d8d1ebe0a64101f66213f23735de6797ef91d136162e95594 SHA512 79c6d1891b6d8c6b8d2e6ec76b3ce49a4595fe5d4d21320c004657c6db37d0ef56d7caf6a7e113a1ad8332fa5be333aaa54e7a7ba88ea59c6ccb971e7043ef03 WHIRLPOOL c68bbd7bd64d97c2d4888db68d218d284d2c445a3e7fae503c55be51f333bc252bc7a9caafbbe5fd9b7c1d1a9195523149c2a2aeb9ed8a6ae9a61fdc91367f24
+DIST multimap-0.3.0.crate 10681 SHA256 9223f4774d08e06185e44e555b9a7561243d387bac49c78a6205c42d6975fbf2 SHA512 ba1c8c4f9f23da2b80b5a16668b8227d1147aa9999f3b11343deb3e4b0582ead6fd957b7d0cb18f4b8141df3e6c8b81aa7f6c2ee0d0d61868b4e00181f5f290e WHIRLPOOL 36b63f994500979723699b9237d0335963517fad93621b52544453188be5cc18df6788a42b2cd9fc5b2b09fbda81d7c36a419d3ada564084790b9fcca24bf538
+DIST regex-0.1.63.crate 276618 SHA256 0452ff4986fadf8eff4c7165ebbab51fe51a42e7fc6fa337eee2fbe58b70eb03 SHA512 1758fc37f60e64a44bdaee66af84e9f5126c694186cf17612da7ff9b828261cb5136ea34a14e0a160cc7de2aa211f8fa806e3d27762e3aba8d0f4e0ba8c4e13d WHIRLPOOL 528440f6cd6bb211a8f570a758c1e698edf8463e05bb2c306e486172a527c1234d3a3864db0a3f384a450281a0a72bbc1cb7cd8e5996f898b9c19698c9d512f0
+DIST regex-0.1.77.crate 185559 SHA256 64b03446c466d35b42f2a8b203c8e03ed8b91c0f17b56e1f84f7210a257aa665 SHA512 6b63a8d51a79ff020f6256d319d86e0a4a5efbf56071877ff4f23bb283c5a92ae914b6d7a00e4ac85c1b0efd45f68dd3672356e86a63343cd3ee6be1a206bfea WHIRLPOOL 065627433da57be33beb4641514c45138c31c2b729c154ac02002415ddf3751814ecf7f13149b793f1fb8d2757585ff003c85b5a2a2ff0f3a4d0b00034f965ee
+DIST regex-syntax-0.3.1.crate 115911 SHA256 841591b1e05609a643e3b4d0045fce04f701daba7151ddcd3ad47b080693d5a9 SHA512 ed040291d3c9e195923134fae7cf436752578c9bf975b48e3a426009ea5a71eb3852441036726781172f2006dc450801b12f6dc0cba31e60d7ed4fa8e85dd721 WHIRLPOOL e676a41c26794f1a49bd86b3bf844b62d254412c6fa3879eff97a896c62cb8db5dd90d3642f48a64941ad42611e7246f033ab9c50d06a00b08f1e0d0eb2948bc
+DIST regex-syntax-0.3.5.crate 116666 SHA256 279401017ae31cf4e15344aa3f085d0e2e5c1e70067289ef906906fdbe92c8fd SHA512 df3757a583b546af275937264788d04fb212d13fbce84b4200e88f10aa38558cf098ec7f91b838c09905ae2b71a8984566b71ef9f9b6e74d9404f3e5a4c027fc WHIRLPOOL 05e22047118cb679c7ba968e69ed4cd3e7293a0ddbb73e3a36b6b3eb44deeac429299d10caf81b0f6a9e58563417ba9e1adcfb24d46064f075cd5510f4c2a7e4
+DIST rustc-serialize-0.3.19.crate 40870 SHA256 6159e4e6e559c81bd706afe9c8fd68f547d3e851ce12e76b1de7914bab61691b SHA512 265f6426287e532822ba4ab7e209b0a0ba0fd58466f292c38b554ea12c7a992ad1a1910e10d151eedf1f0c99c248c64cdc4d4609cb67e36472e425d315f8a83e WHIRLPOOL 154e73db1b26bf65eef86b7f66aeae6def77a19e05d8786b89d74ae73ffac7e7d994e94572061a68cd07f01ed362d4320de901850aa8f089046a6165b4aa7fd6
+DIST rustfmt-0.5.0.crate 77624 SHA256 c2d860213f6e653527de316bdd9bf4fa821cc3c3b052540885a26653e7a77288 SHA512 228a68ba7d2c12483635506d2564edae3203848fd00020554993ffdad3d160be78ffb917564553f0eaafe2862c53316447dc131269cf14abeec9714a137d8fed WHIRLPOOL 59467598b6b9747be5d775b194ca3cee097c72d1e695d68536f67b46e8b907084383afe65629477b5b7e9762180104af9cb3cc8857f53808a10bfdbd77126608
+DIST rustfmt-0.6.3.crate 88474 SHA256 21a36236a22925a6057ea1025152584bc750a61051cf5f885cb5299788d76f17 SHA512 d2b12ae9cb78af43029363d97dcd5e0bbbc4f1eaf96d738b06d2c13662b20b9e4ca975056ccb683be3e52099307431da9e31db452f2f355b825bb1bd83b12f80 WHIRLPOOL 32e4fe767c25a193f0c8f48b3f09950c6dc841e066eae96420b0c04087442d503a54f0fee0d5fda433cb4240a48d87e6f9a222dc604835fb49e94edb3b65c7d4
+DIST strings-0.0.1.crate 12981 SHA256 54f86446ab480b4f60782188f4f78886465c5793aee248cbb48b7fdc0d022420 SHA512 be94151f46962ce4980d225af4bd007cd3bd56e630e361078b119796ae34566db97e8f35ae82e6bcef299fb79cd3101570eff25914dd9b4b410ea133ec0938a9 WHIRLPOOL b3018af3c0eb2220884ea68be7826ca7438fc306c27d9f8400e6bea5be5a0c2a00f8a427d75d2731b0884c6af328b9f732c713f928b92b6202b27a7f22fd4a1e
+DIST syntex_errors-0.44.0.crate 17411 SHA256 d0d95d2141ae79f312a01c6934d9984f9d7f5cfaf0c74aae5fbbc234a6dcb77a SHA512 25a4f8580e253b10fa08953b34e66d6ddbe85cbc9f872b8343e739b8a8c754b823ae7c948de9678c2f3bef58bf54bfe35fda63b0eaf7f5d5e935143f531d166d WHIRLPOOL d73248a7969b4617d280fb0c0c80371c23b64dc72013a0e77e41f587fdb02340bb67a88733fc9c1c371f67178d3b29a7f00aa3d3cb087d29ca7b524ca3ef774e
+DIST syntex_pos-0.44.0.crate 6883 SHA256 3e2cbf0598c5970f2dca122a4e6f7e93bf42f2d0b2dd88c3ea112413152864df SHA512 856a3103446afa42b615668c74ca073af55c03e8d1e3043ea120889aa9e18f284fb43a8982aa9bec4eb6bddc272e8ff45a26a8570dff1777c945185ae500a280 WHIRLPOOL 8355e8e4aef1b3a9e09e0bd4be5ba2f89eab0a5b606b7a1e677afdf47cd8d5fd392896e8cd02a5e20fc3b79edc0334bef167fef966a6601e5f5f9c27fb737583
+DIST syntex_syntax-0.32.0.crate 663466 SHA256 86169b0992bf734955f1a3bb07e8ac9851506b1337d7d1f7c5537084f4e6efd5 SHA512 28059e6c68dc1324c0fb4411f829ad6a25fdb4573e15be5021206fb519b1a4d350129a073d279c7bf785308becfced5ecbdb7a60eb6ca78eada0111b5480d61b WHIRLPOOL 4236f466c18d8310f297797a70d97fdd8e10c87f1f647693bcd8f5ba01343e7ee4526092abc3dca75b141c192ee7cd2be47e5b1f23b0bc9cb9c1c3ca1f8e15bf
+DIST syntex_syntax-0.44.1.crate 257816 SHA256 5a89ee386d492cdd3855becec489c25797bb91bcbb3c2478c41969b24cb318a2 SHA512 4d26e2a207efefc42993fd2e707a7b16882dfcf91e6d3ad385e210c3e2e9dafb3686e5a508ec27dd5acbf7bcf8edbf53d891cfb925b782691fc5d4243ecb376f WHIRLPOOL 3022e205c19e3cf0f95d6fb393089b87f096b9381e4969c9d5ba221313bbe8c48e921d748e2b187f6fc032db6c4c2c62612f7ab8ec859cc9e7bbab79a620173c
+DIST term-0.2.14.crate 25395 SHA256 f2077e54d38055cf1ca0fd7933a2e00cd3ec8f6fed352b2a377f06dcdaaf3281 SHA512 34872c1c1b06afb79ed3ac8a92d9c145681d22c09a3f1f5dd6047dfcc177ad5b1b9c9201ec982009e9f85d7ea71bac26d1f317fecfc67d2cd7569aa52c3327ed WHIRLPOOL 7a77e568ff67d47f7280cf4fcac4775f001d185325cf5559c342eac8ce882b2cae947d819b702f22a6e5d5b9f5cb21c8342004c5509dc9d1718ff0c592a8809d
+DIST term-0.4.4.crate 35853 SHA256 3deff8a2b3b6607d6d7cc32ac25c0b33709453ca9cceac006caac51e963cf94a SHA512 df99c7273ca6f97ec3d9206f98601540d26370124a7a5404cc072bf2e6621bc48fa74101e60f29bea10869278401193648e253fc2029f4cf8e3c8303625b11f7 WHIRLPOOL 57de8f4d686d6806fd18a3de9ead347d2c4c8b63af5175d3c2df4e894ffe13b62caa93774bd320e3d2c42108849012071bce8c07414856af8374884661bd164a
+DIST thread-id-2.0.0.crate 6108 SHA256 a9539db560102d1cef46b8b78ce737ff0bb64e7e18d35b2a5688f7d097d0ff03 SHA512 9fc73cb13dd70f6f323161667f7a253b48c4e11d074457fa033b3617dcaf7ba9aa95f12801c4c045e7e9c07dd4b63a83f79701b489a9d97aefde07970064d9b0 WHIRLPOOL 88a26709bb3a6b27ab102e4414d25f20361ad92be89662c59c14ceed8a84eb17249ece8f250fb082e85acb75835ea81d1f5b62358e57e1bb1bfb96dac5d6e1f4
+DIST thread_local-0.2.7.crate 10954 SHA256 8576dbbfcaef9641452d5cf0df9b0e7eeab7694956dd33bb61515fb8f18cfdd5 SHA512 adc9be75120fd9e27429d0116cc6774a519ed9a2348db122ea90864947e4c1e1c98aeef740e7f8d28861b1db0f4a9340e58e13c1b3ece1fb3320058ea7a47b35 WHIRLPOOL 5988b0a217254ee39387b34dcadd9f44243a2403fabb33b3ce56415910b27e0ff887ec209af1f25e40ed4f3646e840a903f156c5546b20b640aa44463adca44b
+DIST toml-0.1.28.crate 42323 SHA256 fcd27a04ca509aff336ba5eb2abc58d456f52c4ff64d9724d88acb85ead560b6 SHA512 4b4af8fa2f9079259e2c4ebddde70e82f96603c4ec69a266394366671a5c42c61a6ea13fd51145a97c286ca48cbe731650065fac1c20822f818aff48f2a2b13c WHIRLPOOL 7746b110241648466382a1e73ccf7569ed996f49270e2552443f7ff23bbe4bae3fc22e87513239828387efb1ba984220957dabe6b70bbaee14463a38cbea6d75
+DIST toml-0.1.30.crate 45082 SHA256 0590d72182e50e879c4da3b11c6488dae18fccb1ae0c7a3eda18e16795844796 SHA512 e6d06f47750fea66705f7b7e34c396665c564dc7687a9d1ff5f56bb63f37aaa991c253a022f76aa8857e9b95dcb0c11d0246889df98d4c8aca34ba7e1fb97ae7 WHIRLPOOL 54546e97c4fd2054cd96787d504dffc752be7d139f119cf4cdcdd4141ce86f6cc7af21eefdb72743a919a6e848b6432e3d33e2bf7d46c92b7438596dd28e41d1
+DIST unicode-segmentation-0.1.2.crate 53030 SHA256 b905d0fc2a1f0befd86b0e72e31d1787944efef9d38b9358a9e92a69757f7e3b SHA512 bdc196b56b7776fba44ed068823752fd48b962fbf9fa64fc3b976ab6ef3bced449b9f76c2fa5ab5c91294253b697871c1fc66a9ea6b95f087fadd1ee047bddd9 WHIRLPOOL e89ed0a1e36fe8e059479cb575fa5a17063eebb37cc5412663d45da7cf8484a941fb08c6981169ac32cdbffec424ca66c13790f9565339ae96411ded57472bf4
+DIST unicode-xid-0.0.3.crate 15998 SHA256 36dff09cafb4ec7c8cf0023eb0b686cb6ce65499116a12201c9e11840ca01beb SHA512 268c1f3ec79ed2255c4e3759e4526b4892cb04f54ced07afbfff0ff8dcdec953e5b540fcb58b30bfec01b6401b58ef3b21320a0c1bf3a43aec22f0715568dcc5 WHIRLPOOL 6e11d1a02e8f03c7490e644b112a64b8ececa1e05e7fe39bdf63c540f17d5d5d676de775bf8c6a69efdbc926c3584a69a727ecbcffea34dbb608e36a8bbdb261
+DIST utf8-ranges-0.1.3.crate 8422 SHA256 a1ca13c08c41c9c3e04224ed9ff80461d97e121589ff27c753a16cb10830ae0f SHA512 84bd9b67c423923b856452e113f0d786ac438bc7f9b4d4d9f31f6f91f141a8ac4c93f45f722ac5a8a4bac8eac0e355fe7db1eebc62391709326e9817eda8c374 WHIRLPOOL 05b6f88e1ba81a2139d38d0feb60781976859adfc46731ef322a552b17db71e0bf61c6626432812fb2e0ca45ce10a5438d9dcf218a962ef7415187adaa0280fa
+DIST walkdir-0.1.8.crate 19807 SHA256 c66c0b9792f0a765345452775f3adbd28dde9d33f30d13e5dcc5ae17cf6f3780 SHA512 292602f33d0eec44529f9fd763a76420177d7a3a417645975053871823b6531691cb0c253bc8ead2c32cd061538c161701aa86b111148960417e2d5e198b0d0f WHIRLPOOL e0eed883b20badd26366ce755021f91230dc75b8c8b607cc1eec085d6dbd56b7cbf9f8dfc7d101c15bf9ad8d36d3c574d18ee250722ab733d7a70fcc840e082f
+DIST winapi-0.2.6.crate 741153 SHA256 4dfaaa8fbdaa618fa6914b59b2769d690dd7521920a18d84b42d254678dd5fd4 SHA512 ee81295e8154b0656b2ec892a38c69b3e1f839d6915ff68439ab5fe9ef9cf2d85cdadc9e8c9779d0eb3046821cafbc1f6e7977057178c85b29a21a86781bcc38 WHIRLPOOL 60e95e757262cab7eb8dc2fbefbf6ecb9578ce77a5841a7221eedf78b42a4faa0ce4a56c2a35726a85fa8105b84464468cb23b9c855853f9e777b69e601c66cb
+DIST winapi-0.2.8.crate 455145 SHA256 167dc9d6949a9b857f3451275e911c3f44255842c1f7a76f33c55103a909087a SHA512 115e6f027cdd4a56f77ca24f4ab249d2a6cac1e1f955c826a9b6ee05db4861790a533f5e674aebbb540370fff52ed41618c2cd7c906e73200e92df213109cebe WHIRLPOOL 3dce71a6927320e3882ba60a24630a9ba8d123b73d8da6b9330e422580af9d9b0a96748d7368767e3712185877ddec6978b924d40428341c4de19b76ed375af4
+DIST winapi-build-0.1.1.crate 669 SHA256 2d315eee3b34aca4797b2da6b13ed88266e6d612562a0c46390af8299fc699bc SHA512 8b0a239e205a5368892f41c870a8a7ea16e3468c364b03382bef7fa3a2e7159b09c07661e95b1227578f6d72c14879daa4444b28c51ae20ef15d985d59ca5a77 WHIRLPOOL 036080513776fe806cc9dd68bbf5b797776b98ca9fdceaa4bd77c87c66d2e5bd0eec8b0e7f0100dab8f2ced754da058f67e651002c786b4992c2be416a5d52ff
+EBUILD rustfmt-0.5.0.ebuild 791 SHA256 8ab129c8b67a750fd29588f786328732bd66abcf90aa3cb57c238c022aad0098 SHA512 6bb1e080bda390178620af636f7ad5d0eeb06d588c089daf4d63d67eb82a9f19a3dcb7b0d02e2e87117902324439fe9e07dc86dfe5f37b0a754b2e88899236b6 WHIRLPOOL ff16d006d759b91c66c9e7df67e409b7a5ffe20702a9d7e969f6984745591592e80f875cdd1222f5acc76c5ca2c097134279f2deb1f55bb82ae8510d9bc3b183
+EBUILD rustfmt-0.6.3.ebuild 886 SHA256 d58f675c0c248e97c913cd389f500bfa97349d3eac36c3c347ed13209f01c06b SHA512 346cc52c5085f191f77200f11011c1270d43ac341aba9782a8a655715521f2f9f34ce0c2cdadbf029e31fe61f52925ed9f93546cf30e6452a6273c94b2875e27 WHIRLPOOL 52dd39a9141df533e3ddc6036f584c85026abc1ae2ebcb24c2706c1829ad79192689ce2bc1b2da7a9288767be2762e160c1cbfaf0d23112f779c98d9810a7cb7
+MISC ChangeLog 326 SHA256 e0a8587e5566350659e09460dbd99fab56e3b305a1ce84f559475edae97cc8e5 SHA512 4fd34b593aa11a0ad38a2289856402c09d7fcf20c0f7b5d48ddc2d7b53984cfb39ecff9ef206b14fae449a6e4e9422dfdfbfc841cb28e0044118fcb1e0da875a WHIRLPOOL ff9657b23689153a9db9c6137b14c6c24e9c8f05644457d7252d82dad32485a9063836f50a6262befeb89d1ce730fe5c2d17570015bdc812caad94e9fabf9525
+MISC metadata.xml 344 SHA256 958bd98ccee90bfd299ae8c2c1fa9a7ee48e8b0a07f3365861aad537b9bbe431 SHA512 aeced857d8f01a427d61171bd400db3503c524dde306580d4c92790fa4843e7a5ab3e8a4b0c429a626b87ae6575ed65eeb7913334faa219d6cae0c445cce7c04 WHIRLPOOL 0522ab0d4f29a7438778188ef764830d30ad6d0991506d89ab0a0c71669730eb55105d624388cca8f11afbb18e8202d5b01681be3d3fc95bc7262166116bf311
diff --git a/dev-util/rustfmt/metadata.xml b/dev-util/rustfmt/metadata.xml
new file mode 100644
index 000000000000..838e7b2c8423
--- /dev/null
+++ b/dev-util/rustfmt/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="project">
+ <email>rust@gentoo.org</email>
+ <name>Rust Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">rust-lang-nursery/rustfmt</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/rustfmt/rustfmt-0.5.0.ebuild b/dev-util/rustfmt/rustfmt-0.5.0.ebuild
new file mode 100644
index 000000000000..4ccf2c0b1711
--- /dev/null
+++ b/dev-util/rustfmt/rustfmt-0.5.0.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+CRATES="
+aho-corasick-0.5.1
+unicode-xid-0.0.3
+log-0.3.6
+term-0.2.14
+rustc-serialize-0.3.19
+memchr-0.1.11
+toml-0.1.28
+bitflags-0.5.0
+strings-0.0.1
+getopts-0.2.14
+diff-0.1.9
+mempool-0.3.1
+unicode-segmentation-0.1.2
+term-0.4.4
+syntex_syntax-0.32.0
+winapi-0.2.6
+winapi-build-0.1.1
+kernel32-sys-0.2.1
+utf8-ranges-0.1.3
+regex-0.1.63
+regex-syntax-0.3.1
+rustfmt-0.5.0
+env_logger-0.3.3
+libc-0.2.9
+"
+
+inherit cargo
+
+DESCRIPTION="Tool to find and fix Rust formatting issues"
+HOMEPAGE="https://github.com/rust-lang-nursery/rustfmt"
+SRC_URI="$(cargo_crate_uris ${CRATES})"
+LICENSE="|| ( MIT Apache-2.0 )"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=">=dev-lang/rust-1.8.0"
+RDEPEND=""
diff --git a/dev-util/rustfmt/rustfmt-0.6.3.ebuild b/dev-util/rustfmt/rustfmt-0.6.3.ebuild
new file mode 100644
index 000000000000..bb7b0a5a35f7
--- /dev/null
+++ b/dev-util/rustfmt/rustfmt-0.6.3.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+CRATES="
+aho-corasick-0.5.3
+bitflags-0.7.0
+diff-0.1.9
+env_logger-0.3.5
+getopts-0.2.14
+itertools-0.4.19
+kernel32-sys-0.2.2
+libc-0.2.16
+log-0.3.6
+memchr-0.1.11
+multimap-0.3.0
+regex-0.1.77
+regex-syntax-0.3.5
+rustc-serialize-0.3.19
+rustfmt-0.6.3
+strings-0.0.1
+syntex_errors-0.44.0
+syntex_pos-0.44.0
+syntex_syntax-0.44.1
+term-0.4.4
+thread-id-2.0.0
+thread_local-0.2.7
+toml-0.1.30
+unicode-segmentation-0.1.2
+unicode-xid-0.0.3
+utf8-ranges-0.1.3
+walkdir-0.1.8
+winapi-0.2.8
+winapi-build-0.1.1
+"
+
+inherit cargo
+
+DESCRIPTION="Tool to find and fix Rust formatting issues"
+HOMEPAGE="https://github.com/rust-lang-nursery/rustfmt"
+SRC_URI="$(cargo_crate_uris ${CRATES})"
+LICENSE="|| ( MIT Apache-2.0 )"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=">=dev-lang/rust-1.8.0"
+RDEPEND=""
diff --git a/dev-util/sasm/Manifest b/dev-util/sasm/Manifest
new file mode 100644
index 000000000000..4d3d33874a08
--- /dev/null
+++ b/dev-util/sasm/Manifest
@@ -0,0 +1,6 @@
+DIST sasm-2.2.tar.gz 9117410 SHA256 4441726f7f081304bdddc4be2d139d96140655ed19df6b9ed33da666989d93eb SHA512 42d4af775d37d47bcf63fb70b9142e387e33cef5589002ff3e3cee926b5fca7e1508d640d1d5a175d48fc9fd041eb1f03304cad5ddc3c22a09ff29198650b513 WHIRLPOOL 683c783e2d9e2482e52c3925aa023ae1dcd62b211d7a24d1acf665fd3f3d238ff6325480e1a11216b265478bb4cbfb475664281e3798cc52198745fa71807713
+EBUILD sasm-2.2.ebuild 640 SHA256 f62c7224b07a7627483177ed7228c1ff17011a0d8106d982bd82de8f71a5174a SHA512 4a7059cdec57cbbd3f010368d1b0752ff2946b0d0a1c8818a6ec909cf9bef832e8426adba3b2938528647d6b9a690fcb3d9076c5132a10c95445a1527d517cbd WHIRLPOOL 4d33cefafac4ec2226f439c9b256f297a73c2fb2fab8c09b3e06de3160765724906528186e3acc1d9a182f4ad3d9d457b6d9c26140afc766d51b41444da461ea
+EBUILD sasm-9999.ebuild 640 SHA256 f62c7224b07a7627483177ed7228c1ff17011a0d8106d982bd82de8f71a5174a SHA512 4a7059cdec57cbbd3f010368d1b0752ff2946b0d0a1c8818a6ec909cf9bef832e8426adba3b2938528647d6b9a690fcb3d9076c5132a10c95445a1527d517cbd WHIRLPOOL 4d33cefafac4ec2226f439c9b256f297a73c2fb2fab8c09b3e06de3160765724906528186e3acc1d9a182f4ad3d9d457b6d9c26140afc766d51b41444da461ea
+MISC ChangeLog 2207 SHA256 a76fa4b072289ebb2e2a1444db6c8e4262e049f2aa4613e192c81a713d4ea2e4 SHA512 ac0f0a25ae219edb8dc4f38e17757356a256fcfd90428d60a35502e6bfa75d2aa9b28e94240bc011231822871b48864124bb7a98860cb8f8064dea3870c6096e WHIRLPOOL 2b73103f6a43ec34823d96253bf4817a20fa1da0cd64ceeb3f9f3192ad3649696cc8a79022998b5dd13df4bc5357296b92703819c8a6bbd0b12caf2f7f7936d0
+MISC ChangeLog-2015 393 SHA256 288be5ec2b69d09e417a6d34c4970679995f8b69ef0a9e76e41d0a4376d09d75 SHA512 c16e3909d8b59903c6be49c4096df152500662399bec565878bd8e6669625188b8c13514ff6bba67e5ccb67afde6cabe39f909a78c6e3f770ceaf42d13114170 WHIRLPOOL 113b46dc012918d0d0d3a7849c725b18543945727505de22a27062f69d79aa9554ab612c7f729023e3054385ac2c8966acd50224ca605406bdf855f2b7062160
+MISC metadata.xml 325 SHA256 a78e21d331a7d9ff25e22c43e1242dc3fea099beaef710498f9a0efdcd6d05af SHA512 8cb446410e74845234244cb121cf966f18ea1ce69796f6dc5c6c1d434952811e61c8b02aaeba24905578f8e8463e29269538b50768b30524af859419769b5a92 WHIRLPOOL dc90cbc56762d96d7a6d2b5e6fb92b365390fc28a0eef46479d07c498024a5b0772df2378d1239c4a1255ecbc403d9e7dcf550371774632d1603dbacc22e2520
diff --git a/dev-util/sasm/metadata.xml b/dev-util/sasm/metadata.xml
new file mode 100644
index 000000000000..0dd346aa2e8d
--- /dev/null
+++ b/dev-util/sasm/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>maksbotan@gentoo.org</email>
+ <name>Maxim Koltsov</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">Dman95/SASM</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/sasm/sasm-2.2.ebuild b/dev-util/sasm/sasm-2.2.ebuild
new file mode 100644
index 000000000000..023b24aab05d
--- /dev/null
+++ b/dev-util/sasm/sasm-2.2.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit qt4-r2
+
+if [[ ${PV} == 9999 ]]; then
+ EGIT_REPO_URI="https://github.com/Dman95/SASM.git"
+ SRC_URI=""
+ inherit git-r3
+else
+ SRC_URI="https://github.com/Dman95/SASM/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+ S="${WORKDIR}/SASM-${PV}"
+fi
+
+DESCRIPTION="Simple crossplatform IDE for NASM assembly language"
+HOMEPAGE="http://dman95.github.io/SASM/"
+
+LICENSE="GPL-3"
+SLOT="0"
+[[ ${PV} == 9999 ]] || \
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="
+ dev-qt/qtcore:4
+ dev-qt/qtgui:4
+"
+REPEND="${DEPEND}
+ dev-lang/nasm
+ sys-devel/gdb
+"
diff --git a/dev-util/sasm/sasm-9999.ebuild b/dev-util/sasm/sasm-9999.ebuild
new file mode 100644
index 000000000000..023b24aab05d
--- /dev/null
+++ b/dev-util/sasm/sasm-9999.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit qt4-r2
+
+if [[ ${PV} == 9999 ]]; then
+ EGIT_REPO_URI="https://github.com/Dman95/SASM.git"
+ SRC_URI=""
+ inherit git-r3
+else
+ SRC_URI="https://github.com/Dman95/SASM/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+ S="${WORKDIR}/SASM-${PV}"
+fi
+
+DESCRIPTION="Simple crossplatform IDE for NASM assembly language"
+HOMEPAGE="http://dman95.github.io/SASM/"
+
+LICENSE="GPL-3"
+SLOT="0"
+[[ ${PV} == 9999 ]] || \
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="
+ dev-qt/qtcore:4
+ dev-qt/qtgui:4
+"
+REPEND="${DEPEND}
+ dev-lang/nasm
+ sys-devel/gdb
+"
diff --git a/dev-util/scala-ide/Manifest b/dev-util/scala-ide/Manifest
new file mode 100644
index 000000000000..af1648f05f75
--- /dev/null
+++ b/dev-util/scala-ide/Manifest
@@ -0,0 +1,9 @@
+DIST scala-SDK-4.1.0-vfinal-2.11-linux.gtk.x86.tar.gz 232347349 SHA256 1d7054b49195b598d469a2d56971f67aa219c6043cb8209f8c8608160c4df7ad SHA512 f3d8bff300ee772e07f9c9287c37428d5ddf50bd750dcc86b6a28d9ad5a0b891fa8ce810599e754ac06bf48786a9c58b981055c29976c37b2c530466591d171a WHIRLPOOL f584d8d6e129f5464f9eb44ab7137e230dc0b701e07d3569a7975e35a5ecc2a4f6b81e085486f36867b00a9715e1e25b5cd29294c638abe195f4a60677aa61f9
+DIST scala-SDK-4.1.0-vfinal-2.11-linux.gtk.x86_64.tar.gz 232491001 SHA256 d3e9efe1176d979dc0fe2a9457f70068b5a3fd23635a07bcd5639e2345897aca SHA512 d5b8fe3cb3d6623e2f29e0ad5d279b363143c9b392ea5d91092ecb9de765828ac0c50c74ff879f7c825099b22a833ad3acbb0c2cfcd51c769ee19082905b63eb WHIRLPOOL 8007d41e9695c6ae5c3094906ebc6fba263d8d005f6763ce70eb4398db266ea1aff64bc4bc24bc216d0e869e839a92298bb3f85f8149608dd2986d36a3863def
+DIST scala-SDK-4.3.0-vfinal-2.11-linux.gtk.x86.tar.gz 237898838 SHA256 3f46b5576e72f8555b322bf8a1ff8357372c5ec159f9171f2d81f78c5d753f78 SHA512 b8fcac4e0eeace0d146028e2f1551cdd3f58d38830430080e7aa5ccd581ae6a31992a5d1f39b6e8fcb30979953f0b9777166d2de73d7310621c9e7fa2e620f3d WHIRLPOOL 05756a8be2e23d50a84ea36a786f5b442c18da94e40b14c199c034880b226e0fdd8a06f4c2fbfa7238c5ab4343ea68bf71ea91830f05cd7226aba40d5389c05c
+DIST scala-SDK-4.3.0-vfinal-2.11-linux.gtk.x86_64.tar.gz 238040666 SHA256 bc6b9289ab318a4eb7e273a2990351cc051a00051b208192591c0a6fad5da20d SHA512 70f3a481065f79532a4a0463e2549e4ecb0590e6d6e1ca7704629eced4393a7e4f7b22cd7c368a852c1d8f63cff949db02a7dd7f1be71cd30f52219c5cfbefd5 WHIRLPOOL 11dddf53d364864198629dfefdc84202fc19876d325e7738488402b7614faa5d6b88e8f2867810c854e9110fd3596043529a2e6f588107af519ae807a9d711d8
+EBUILD scala-ide-4.1.0.ebuild 1117 SHA256 6feb2f59870e421fa1f98a8a7726bdb7a913bea940d86bd6e848d92009ad644c SHA512 083d71e32137aca3799b6e4ad97c94257a512049715c17ecac10c2ac5d253d9adb11c9c6f55025ac6b9aa2cbb05fd2cdf81fc245e035b48b7a22bde7378334fe WHIRLPOOL bdebe5d3615198fb3af24342d79b76748b95a2c79eb103fc5a65fea89d80408b68c0f4fe92558a50fb3d9e3b931e5dea0310d0915857985c549e0f150fa59278
+EBUILD scala-ide-4.3.0.ebuild 1172 SHA256 81321f427d68a8b874e9fe212245c2e4c54ebe88a52eb27934c63f31b6235c5b SHA512 d4be195f829c81fb0d09b5aecbfcb4c7cb4178b5134100a6ff9d58b0b58539fd04da86e2b2de8fdb590058898530babd5298445265776b8bdaa2d8fc66cd028b WHIRLPOOL 13587cec3e8e24bec7574a36eb960072b7f0a820d9913e4adb37e56b5b4f407ea51fde853d09a1c3438c4127a3199e7411caee1792e0f2fdfc87759ff49a658d
+MISC ChangeLog 2900 SHA256 07d90a2eb1424fb239aa6465ff3e021d79e6f1e71ff2f7286f1c5fa3ad363770 SHA512 a8391d400fb4500ffcd8d423c4aacdd02f4866f6f87c0240b6be8eca56bddebb6c730c2bf9597b7193ca45e2e6dfef8ac134fe56aaf220cf9584475fa7eee591 WHIRLPOOL ae8c85a8f7a8fcbb9f5bedc392a976fd757452d2b77b0459460080b75db3c3145ba343acd9a0109ddc327220fd47c61db43c5e873592a255e0479d325d283902
+MISC ChangeLog-2015 510 SHA256 ac7c623a47070cc610ad7132b9f4a48875ea0a88629a0debcd176bffedca12b1 SHA512 1ec207ebb1c96a35e72e4313edc657f97fa6fbf8e4ebab15bf351be9e2d60ea07371c58f18818d099ca38352904adba3bdd18084bc2c8639a9186b7ae535004f WHIRLPOOL 8d9663c7eba9918c9ddd6fa1a8832f27105e9bceffd7807002571401f50e2513eb0167a9b192a9ee6c6f2a48e3f054100f596e7dd5e77f9cabec1e0c14dc2db6
+MISC metadata.xml 322 SHA256 727c779dca55d509b83a5be15ae2ff5bea642fffce4bf5dd67de3c1e97db93fe SHA512 31b070b2d770ffd3345949cc9ef12f660631660b312f64a2e5b657205ead2dc40da0245312fd7d10e8c78ca3853f325c105c70bd85ae9a8e76bf5c24c2dfeda0 WHIRLPOOL 05cc5145a18ad1b691af536da9ded411bc79c5002e9f7f3c38dbd340e3149c7ccb0b064c5f7adc7929b8553249839be4a5fe8999ac2b574daca56379ad2cea51
diff --git a/dev-util/scala-ide/metadata.xml b/dev-util/scala-ide/metadata.xml
new file mode 100644
index 000000000000..5352e92a2dc2
--- /dev/null
+++ b/dev-util/scala-ide/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>monsieurp@gentoo.org</email>
+ </maintainer>
+<maintainer type="project">
+ <email>java@gentoo.org</email>
+ <name>Java</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-util/scala-ide/scala-ide-4.1.0.ebuild b/dev-util/scala-ide/scala-ide-4.1.0.ebuild
new file mode 100644
index 000000000000..9563ac9cecd8
--- /dev/null
+++ b/dev-util/scala-ide/scala-ide-4.1.0.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+EAPI=5
+
+inherit java-pkg-opt-2
+
+SRC_URI_AMD64="http://downloads.typesafe.com/scalaide-pack/${PV}-vfinal-luna-211-20150525/scala-SDK-${PV}-vfinal-2.11-linux.gtk.x86_64.tar.gz"
+SRC_URI_X86="http://downloads.typesafe.com/scalaide-pack/${PV}-vfinal-luna-211-20150525/scala-SDK-${PV}-vfinal-2.11-linux.gtk.x86.tar.gz"
+
+DESCRIPTION="The Scala IDE"
+HOMEPAGE="http://www.scala-ide.org"
+KEYWORDS="amd64 x86"
+SRC_URI="
+ amd64? ( ${SRC_URI_AMD64} )
+ x86? ( ${SRC_URI_X86} )
+"
+
+SLOT="0"
+LICENSE="BSD"
+
+DEPEND=">=virtual/jdk-1.6
+ || (
+ dev-lang/scala
+ dev-lang/scala-bin
+ )"
+RDEPEND=">=virtual/jre-1.6"
+
+MY_D="/opt"
+
+src_unpack() {
+ unpack ${A}
+ mv "${WORKDIR}"/eclipse "${WORKDIR}"/"${P}"
+}
+
+src_prepare() {
+ mv "${WORKDIR}"/"${P}"/eclipse "${WORKDIR}"/"${P}"/"${PN}"
+}
+
+src_install() {
+ cd "${D}" || die
+ dodir "${MY_D}" || die
+ insinto "${MY_D}"
+ doins -r "${WORKDIR}"/"${P}" || die
+ insopts -m 0755
+ insinto "${MY_D}"/"${P}"
+ doins "${WORKDIR}"/"${P}"/"${PN}" || die
+ dosym ${MY_D}/${P}/${PN} /usr/bin/${PN} || die
+}
diff --git a/dev-util/scala-ide/scala-ide-4.3.0.ebuild b/dev-util/scala-ide/scala-ide-4.3.0.ebuild
new file mode 100644
index 000000000000..8e637c5ccdea
--- /dev/null
+++ b/dev-util/scala-ide/scala-ide-4.3.0.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+EAPI=5
+
+inherit java-pkg-opt-2
+
+# scala-ide -> scalaide
+S_PACK="${PN/-/}-pack"
+
+# scala-ide -> scala-SDK-${PV}
+S_SDK="${PN%-*}-SDK-${PV}"
+
+SRC_URI_AMD64="http://downloads.typesafe.com/${S_PACK}/${PV}-vfinal-luna-211-20151201/${S_SDK}-vfinal-2.11-linux.gtk.x86_64.tar.gz"
+SRC_URI_X86="http://downloads.typesafe.com/${S_PACK}/${PV}-vfinal-luna-211-20151201/${S_SDK}-vfinal-2.11-linux.gtk.x86.tar.gz"
+
+DESCRIPTION="The Scala IDE"
+HOMEPAGE="http://www.scala-ide.org"
+KEYWORDS="~amd64 ~x86"
+SRC_URI="
+ amd64? ( ${SRC_URI_AMD64} )
+ x86? ( ${SRC_URI_X86} )
+"
+
+SLOT="0"
+LICENSE="BSD"
+
+RDEPEND=">=virtual/jdk-1.6
+ || (
+ dev-lang/scala
+ dev-lang/scala-bin
+ )"
+
+MY_D="/opt"
+
+src_unpack() {
+ default
+ unpack ${A}
+ mv "${WORKDIR}"/eclipse "${WORKDIR}"/"${P}" || die
+}
+
+src_prepare() {
+ mv "${WORKDIR}"/"${P}"/eclipse "${WORKDIR}"/"${P}"/"${PN}" || die
+}
+
+src_install() {
+ cd "${D}" || die
+ dodir "${MY_D}"
+ insinto "${MY_D}"
+ doins -r "${WORKDIR}"/"${P}"
+ insopts -m 0755
+ insinto "${MY_D}"/"${P}"
+ doins "${WORKDIR}"/"${P}"/"${PN}"
+ dosym ${MY_D}/${P}/${PN} /usr/bin/${PN}
+}
diff --git a/dev-util/scanmem/Manifest b/dev-util/scanmem/Manifest
new file mode 100644
index 000000000000..385800a35006
--- /dev/null
+++ b/dev-util/scanmem/Manifest
@@ -0,0 +1,7 @@
+DIST scanmem-0.15.3.tar.gz 243150 SHA256 910d836f54266896920bcb07d32e4550f2578e47d8e786b5cce0903bb98f26da SHA512 7f14e8a129321d7e58651d7e98ab71e58926465c98d256226ef7803fa7e42ba8bbe0879da8173ad2659deb655c73338db27d832a264b429f740331aee1f6d4b7 WHIRLPOOL ff9d85b0bebcce02951794acc427d3846f070f72b12070f503fa233dcd3c50f4d6bc48c7e8d45731b3d0356a6f7d398e11138e8b95f95f88a3a2aafc7a53258c
+DIST scanmem-0.16.1.tar.gz 202133 SHA256 6eb8b843a34ef70f0d8f42f1d3aff779ae4cf7fde468ba4728519f45908b765b SHA512 5e0a97e020a8a392aed75e2654cc6bcfad68590b9caab43444e57c3180be45ce1269f5acb02355bee57ff8bb5b9349b4f65e0fe96655206a812ea645796b153b WHIRLPOOL 88c80d61ea7c09ff6223c4bd54dc076ebb37b5b9ee87a48bfb5a795719f13fa7a96b577b07dec8f4bd5b4f5a71aae5cc14272c432d4ba72412ad3a650278858d
+EBUILD scanmem-0.15.3.ebuild 953 SHA256 64c4fcffd94c518c5dd496e41716029dff923e5fb0e73488c9111107639eb9da SHA512 58cef753e1603467e1f80544fad0c4ae0fe124a49c322a46c4c4efb31d30df082ba171eca2685533b5969b93371cff25ad4cba2724fdaebbe62d09a8b7ea8eef WHIRLPOOL a5ef7e9e7582f3991bb1e24d47408bffd331465d5b8ad4ca521f5584dd46f5bc2fc056f18d406fd5b193fb61f4148074ab16e08f877236ee86a5116bde64c407
+EBUILD scanmem-0.16.1.ebuild 989 SHA256 d50025169b035c06bb85dc169b678f9b58117ecbe5b138e50ce7c26f51762477 SHA512 3771f6c6fe69ac354b16dbc3bb89ed40ba112070dbf6a689b5100b400ffd5ac8611115728fc5dc43dbdd53c62232f4b9c725e3ab70cf569d35c0081fe813b95d WHIRLPOOL 39f7604e8ddd12ae97f0014ddb9a5fb2c8457fb8ea1f7476fdfb08c23633504f3c28002676d1bbc1f4cc44652f2c2d90cac2a84d04d1550af45af1f612f07abf
+MISC ChangeLog 3284 SHA256 d5a9960f2c8d13239beb61a136f3a31f75a55c69ae2816b10ac9941fdb45ff27 SHA512 12368fb24ec0a76499b46e6b555224f7f95a801722e7b928bf2461e00c28462163ea594fdbd7656929cc77175ac6493ae6bc871c4ae29b868627db98d4dd61be WHIRLPOOL d83e5ecaafcb89b664e23e8df12ffad8977103f4c86845b1fc1e48623eb3bdaa643ee27e17f5d96ced3e6df32d13f48318e2929918fa76f1b29ae6d27ce54fb4
+MISC ChangeLog-2015 2175 SHA256 416f0c51d7d0a94a0ea7cba18a8b9fedfebc5605091f904847dcf2548a0dd7ac SHA512 6603498650319473886e33c34e113eb2d9396c233df47cf150a94b90fa4cb74761c2864f72ae406fe2d9b11958e86c43a1340b0f37e6ab340946177fe7c805eb WHIRLPOOL 714166b6fa0a97c3d8d07c5d6cfc449328264ac706cb0b4d2bb147f9a9419cfa8f87614c25f13a3d47afe5e1e07156a82248a0943ea6cfe280ef0abf45f058e8
+MISC metadata.xml 317 SHA256 763a1e05d0f3fec4111305465155314b4807a97d20fb08970b524e1b57913b5e SHA512 44f1ccb76808c4bd5c2bdade165d0f32d68ca07fbec73b2c074ff5b486cb69df2b23cb619d590b5a15d1adfe2f444f2b91aad3f238b29c752aaad97b3a5616b0 WHIRLPOOL 1cb5b247aa51d8fcee3900ee5b019019b6ae973e56a339a1c45a26cdc0c108f7763ff4b357e06da20686b02b70853c28312e297616a5b239aa9d6d50cda9948e
diff --git a/dev-util/scanmem/metadata.xml b/dev-util/scanmem/metadata.xml
new file mode 100644
index 000000000000..0796a9ceda90
--- /dev/null
+++ b/dev-util/scanmem/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-needed -->
+ <use>
+ <flag name="gui">Enable the GameConqueror GUI</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">scanmem/scanmem</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/scanmem/scanmem-0.15.3.ebuild b/dev-util/scanmem/scanmem-0.15.3.ebuild
new file mode 100644
index 000000000000..036313e7dd56
--- /dev/null
+++ b/dev-util/scanmem/scanmem-0.15.3.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python{2_7,3_4,3_5} )
+
+inherit autotools eutils python-single-r1
+
+DESCRIPTION="Locate and modify variables in executing processes"
+HOMEPAGE="https://github.com/scanmem/scanmem"
+SRC_URI="https://github.com/scanmem/scanmem/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="gui"
+
+DEPEND="sys-libs/readline:="
+RDEPEND="${DEPEND}
+ gui? (
+ ${PYTHON_DEPS}
+ dev-python/pygobject:3
+ sys-auth/polkit
+ )"
+
+REQUIRED_USE="gui? ( ${PYTHON_REQUIRED_USE} )"
+
+pkg_setup() {
+ use gui && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ sed -i "/CFLAGS/d" Makefile.am || die
+
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --docdir="/usr/share/doc/${PF}" \
+ $(use_enable gui)
+}
+
+src_install() {
+ default
+
+ if use gui ; then
+ docinto gui
+ dodoc gui/{README,TODO}
+ python_fix_shebang "${D}"
+ fi
+}
diff --git a/dev-util/scanmem/scanmem-0.16.1.ebuild b/dev-util/scanmem/scanmem-0.16.1.ebuild
new file mode 100644
index 000000000000..7c226726a1fc
--- /dev/null
+++ b/dev-util/scanmem/scanmem-0.16.1.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python{2_7,3_{4,5,6}} )
+
+inherit autotools eutils python-single-r1
+
+DESCRIPTION="Locate and modify variables in executing processes"
+HOMEPAGE="https://github.com/scanmem/scanmem"
+SRC_URI="https://github.com/scanmem/scanmem/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="gui"
+
+DEPEND="sys-libs/readline:="
+RDEPEND="${DEPEND}
+ gui? (
+ ${PYTHON_DEPS}
+ dev-python/pygobject:3
+ sys-auth/polkit
+ )"
+
+REQUIRED_USE="gui? ( ${PYTHON_REQUIRED_USE} )"
+
+pkg_setup() {
+ use gui && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ default
+
+ sed -i "/CFLAGS/d" Makefile.am || die
+
+ eautoreconf
+}
+
+src_configure() {
+ local myeconfargs=(
+ --with-readline
+ $(use_enable gui)
+ )
+ econf "${myeconfargs[@]}"
+}
+
+src_install() {
+ default
+
+ if use gui ; then
+ docinto gui
+ dodoc gui/{README,TODO}
+ python_fix_shebang "${D}"
+ fi
+}
diff --git a/dev-util/schroot/Manifest b/dev-util/schroot/Manifest
new file mode 100644
index 000000000000..464b9e3093cb
--- /dev/null
+++ b/dev-util/schroot/Manifest
@@ -0,0 +1,11 @@
+AUX schroot-1.6.10-cmake-add-additional-regex-tests.patch 2283 SHA256 8effe0d973d51b52e030b3b686847e6029c750bcac5893fa5f6a0d2a07d64b9b SHA512 e68698dbace2e79c9e89525f22314fb75a42568cbeeac570334956b14051ed8dddbdffb3bdd769f77a6609159377a64df7de5041aff7512d100bbdd72aa6d4c0 WHIRLPOOL 3ecad5858d87068c26ab7808b0e2009eca7204359cdbbb41ce1afbe07b95282fb819fd7a3233833d2380ab1b92ad05b48070fdf1e6ebf2fa7459666712cebb7d
+AUX schroot.confd 371 SHA256 68efa89cd4b358c6de050ebb5b973c87ee514fe5e5d888f63aa0af85aa4736c8 SHA512 b86944ee7fb2622ef0bd9c9252a51724916427c6bffa1dc0623a40190e4866ffda48f8999790365f4a589ea647e3695077b6cd7ec8a1d1ab6bd026a5c7480c98 WHIRLPOOL 921b6677f8400e94d8f5714e24d8c8cf1375fa4b79dac1fe4f67ef338f7c8ad3d8ee072ef64d70473f86c27f93e4b413d4fd3c69968be88f46a6ca87a9fbbc58
+AUX schroot.initd 706 SHA256 44bffc141c13c7a5d724606de9b906d93ffec280bfa2c6cdfe3a9b1114b83a92 SHA512 8ce31a67cb4a6064875eed2d5cf3f11ce13f322b19df6b51dc08df2de42447f09124d725d70b1c4ff906644ef52a1f1b5b295575f795a96438bad3dea52f3d15 WHIRLPOOL 787facd9830c91289cd9f8f1fdd9dca1c0818dd70dc8d6b6acb360b3e294711ad625d14a6a807374f908561b0f37127def0b899d6425ca1e332eb72785d7f110
+DIST schroot_1.6.10-1.debian.tar.xz 27108 SHA256 d93a7acc4b6c06a024b6bb0bfc1867a144193aadbb09cab454373c2983120cd9 SHA512 2b989054485f397c7de4f9d5e625f2bb2d4738ecb087ff83903a247696a2c98dea611e9743d4ae6bee401b122c21aac4f5e220b5e544f9968f94d6f326fadfa6 WHIRLPOOL 7f9a1b782093321b0dc236098688dacd93f608725bd551ef848262049da3f08b12b2ec34188413ec5b16070753acdc0a07af8d723599581340ecd9cfc6493b67
+DIST schroot_1.6.10-2.debian.tar.xz 34296 SHA256 71ed5b264029bd62226337a29f7ec926c29724c9540b24f7ccccfbef81c2391a SHA512 ea980199b90a2cffc36348e01e2de229c5cb4321f10bcde4b593eeaaa18f34ab9187cc9c717e6043c477819fefbd793cc707e1e77a5bae1c1815a668956cd84c WHIRLPOOL b6de6552c78418cde8ffc201017d3665a85a161d2417648b8213a37979889ae54380da051c59f1643d28989ae3f905976493b860002e1a4ded3aaea1434d3673
+DIST schroot_1.6.10.orig.tar.xz 797328 SHA256 3ce8dfd9cb97b099e4b6d4ccec421d6cc8c9ef84574681e928a12badb5643d0b SHA512 25155989c7811ab4c7bf3cdceaa8d0ffb12f08388143891def96fcd205f1cc401dad9a74f0e9a9ef8610d50174ff8319a8368401431dc87e1a11c0241e61fcbe WHIRLPOOL 91c4682101c6eeb1f56d3e5c583a55af1164abd6853a822ac5c5f1c6820140fb1049765877e97985a90264f4e9d898886487fac794a794904f98210494974090
+EBUILD schroot-1.6.10-r3.ebuild 2930 SHA256 26fdc60b8824c184422ffe60446cba7fcb3b1439355ab41a032e352378075c9a SHA512 cbec9893b42377c72674632b4bc4774c4def3ee0834d863c82ea27435822805b5d52c07f845bf27946377f23e3f79471321ad2258c61fb932ea8d24ae493157f WHIRLPOOL 25fc59e8b7a759a12879feeb171d33ea03034955792eee0c902f7d522db738511c88ac184efdaf1ab8d761bf8f96ad12b8f3b378918131dfccefa4b65ed3c533
+EBUILD schroot-1.6.10-r4.ebuild 3762 SHA256 6113c606de65af8e9eefc5fcab0c01fb1a0054061ce0312cfc17e2d05e4e53a7 SHA512 0bf878ab01c421189efcada441fac7aa815f9e729e080355fac5f5bbb35f939b4452bbea09c933583758b3206264c51d9a67d53e616e27785b357ec7654ea408 WHIRLPOOL 55c46ed60157bc8f81e8765315c3a1e171bb2e98d43f34067f0829ae0d2ae518e0790ebdd2f419d7fe87cfa560d184134d2866b186a1be0182fb672ca41bd3ca
+MISC ChangeLog 3406 SHA256 435c4af915fb13df057bcbd5e236759bd05fd08bbb79a5715813dc960b43a076 SHA512 1e86626fec5928fd70bad7fdf37c16fccb4f803bd8f007d0c276c3bc4a085db734c8c8c4f765bd79bfe0b13fbb07c30aed8a0e56d56181c44e5f9125adeda159 WHIRLPOOL e47c44a7900ba0bc21a2001aa9b6d73dd410ac783b715805aed75890a47f920ed01e848e3be11112dd9dd4b702e6841d009054d0dc4403335c8da50b41508ebf
+MISC ChangeLog-2015 8070 SHA256 3f91afa740b3945c3439d3c8d207dd7e6fb6b3666488e98469e7fb17037637fb SHA512 936ba7ba19e5a11b4be82b2bc7ad95ca6bf5d97145e97941e4291458cb2665495566a29edd71e0ec66b7391dceed84b8452286590011318c540e42e1932d94c3 WHIRLPOOL ec5c029225e0417f6fac0d5668a8d77a91683e7f2650cdd0276980ef3305dc44829f70a10521df06638069129b7edda15a7115fc728b71cf6ebd9f15ddb310bd
+MISC metadata.xml 451 SHA256 3dc528c94c8ba05d3a20cefb5372df9259c69baf205807b9e275ca173be49aaf SHA512 372b1bc77d13fde4eff8f5e45bab2a3c75152d05c7fbc272e5bb119e2edf9f8931acb426ca06b413cbcd7b4476424fdbc9eec49b865dd9cd2990bed88201d40a WHIRLPOOL 4870bd45c2f1ca1e29d13bcea1b5930b9b1719f41bd719c3d582051ded243e3f30fd0e1961c5c1f7b8654d764fcd3fc9812d07736fa4efad4301a2624d72f262
diff --git a/dev-util/schroot/files/schroot-1.6.10-cmake-add-additional-regex-tests.patch b/dev-util/schroot/files/schroot-1.6.10-cmake-add-additional-regex-tests.patch
new file mode 100644
index 000000000000..1660f18ae4b8
--- /dev/null
+++ b/dev-util/schroot/files/schroot-1.6.10-cmake-add-additional-regex-tests.patch
@@ -0,0 +1,70 @@
+From 8c9139249689570ff2f4d058ed1031f0cbb6c084 Mon Sep 17 00:00:00 2001
+From: Roger Leigh <rleigh@codelibre.net>
+Date: Sun, 26 Jul 2015 14:00:13 +0100
+Subject: [PATCH] cmake: Add additional regex tests and corresponding unit
+ tests
+
+---
+ cmake/regex-checks.cmake | 10 ++++++++++
+ test/sbuild-regex.cc | 20 ++++++++++++++++++++
+ 2 files changed, 30 insertions(+)
+
+diff --git a/cmake/regex-checks.cmake b/cmake/regex-checks.cmake
+index d0bb211..60507ec 100644
+--- a/cmake/regex-checks.cmake
++++ b/cmake/regex-checks.cmake
+@@ -30,6 +30,16 @@ int main() {
+ if (${namespace}_match(fail, bar)) return 11;
+ if (${namespace}_match(fail, chk)) return 12;
+
++ // Checks for broken support in GCC 4.9 and 5.1
++ ${namespace} range1(\"^[a-z0-9][a-z0-9-]*\$\", ${namespace}::extended);
++ ${namespace} range2(\"^[a-z0-9][-a-z0-9]*\$\", ${namespace}::extended);
++ if (!${namespace}_match(test, range1)) return 13;
++ if (!${namespace}_match(test, range2)) return 14;
++ if (!${namespace}_match(\"a-\", range1)) return 15;
++ if (!${namespace}_match(\"a-\", range2)) return 16;
++ if (${namespace}_match(\"-a\", range1)) return 17;
++ if (${namespace}_match(\"-a\", range2)) return 18;
++
+ return 0;
+ }"
+ ${outvar})
+diff --git a/test/sbuild-regex.cc b/test/sbuild-regex.cc
+index 915e915..a8520c5 100644
+--- a/test/sbuild-regex.cc
++++ b/test/sbuild-regex.cc
+@@ -33,6 +33,8 @@ class test_regex : public TestCase
+ CPPUNIT_TEST(test_output);
+ CPPUNIT_TEST(test_input);
+ CPPUNIT_TEST(test_match);
++ CPPUNIT_TEST(test_match_bracket1);
++ CPPUNIT_TEST(test_match_bracket2);
+ CPPUNIT_TEST_EXCEPTION(test_input_fail, std::regex_error);
+ CPPUNIT_TEST_SUITE_END();
+
+@@ -88,6 +90,24 @@ class test_regex : public TestCase
+ }
+
+ void
++ test_match_bracket1()
++ {
++ sbuild::regex r("^[a-z0-9][a-z0-9-]*$");
++ CPPUNIT_ASSERT(sbuild::regex_search("foobar", r));
++ CPPUNIT_ASSERT(sbuild::regex_search("a-", r));
++ CPPUNIT_ASSERT(!sbuild::regex_search("-a", r));
++ }
++
++ void
++ test_match_bracket2()
++ {
++ sbuild::regex r("^[a-z0-9][-a-z0-9]*$");
++ CPPUNIT_ASSERT(sbuild::regex_search("foobar", r));
++ CPPUNIT_ASSERT(sbuild::regex_search("a-", r));
++ CPPUNIT_ASSERT(!sbuild::regex_search("-a", r));
++ }
++
++ void
+ test_input_fail()
+ {
+ sbuild::regex r;
diff --git a/dev-util/schroot/files/schroot.confd b/dev-util/schroot/files/schroot.confd
new file mode 100644
index 000000000000..b62263175721
--- /dev/null
+++ b/dev-util/schroot/files/schroot.confd
@@ -0,0 +1,9 @@
+# This is a configuration file for /etc/init.d/schroot; it allows you
+# to perform common modifications to the behavior of schroot
+# initialization without editing the init script.
+
+# What do we want to do with "orphan" sessions when starting or
+# restarting? Recover them (leave empty or set to "recover") or just
+# end them (set to "end")?
+SESSIONS_RECOVER="recover"
+
diff --git a/dev-util/schroot/files/schroot.initd b/dev-util/schroot/files/schroot.initd
new file mode 100644
index 000000000000..be58c3a0f2d0
--- /dev/null
+++ b/dev-util/schroot/files/schroot.initd
@@ -0,0 +1,41 @@
+#!/sbin/openrc-run
+
+depend() {
+ need localmount
+ after net netmount
+}
+
+start() {
+ local msg param
+ case "${SESSIONS_RECOVER}" in
+ end)
+ msg="Ending"
+ param="--end-session"
+ ;;
+ recover|"")
+ msg="Recovering"
+ param="--recover-session"
+ ;;
+ *)
+ ewarn "Invalid value \"$SESSIONS_RECOVER\" for \$SESSIONS_RECOVER, using \"recover\""
+ msg="Recovering"
+ param="--recover-session"
+ ;;
+ esac
+
+ einfo "$msg schroot sessions"
+ eindent
+ local chroot
+ local chroots="$(schroot --all-sessions --list --quiet)"
+ if [ -n "$chroots" ]; then
+ for chroot in $chroots; do
+ ebegin "$chroot"
+ schroot --chroot=$chroot $param
+ eend $?
+ done
+ else
+ einfo "(none)"
+ fi
+ eoutdent
+ einfo "...done"
+}
diff --git a/dev-util/schroot/metadata.xml b/dev-util/schroot/metadata.xml
new file mode 100644
index 000000000000..cc3f6c238b48
--- /dev/null
+++ b/dev-util/schroot/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<!-- maintainer-needed -->
+<use>
+ <flag name="btrfs">Enable support for chroots using btrfs snapshots.</flag>
+ <flag name="dchroot">Enables the building of a wrapper named "dchroot", replacing <pkg>sys-apps/dchroot</pkg>.</flag>
+ <flag name="lvm">Enable support for chroots using LVM snapshots.</flag>
+</use>
+</pkgmetadata>
diff --git a/dev-util/schroot/schroot-1.6.10-r3.ebuild b/dev-util/schroot/schroot-1.6.10-r3.ebuild
new file mode 100644
index 000000000000..003cb75a0647
--- /dev/null
+++ b/dev-util/schroot/schroot-1.6.10-r3.ebuild
@@ -0,0 +1,129 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit cmake-utils eutils pam versionator bash-completion-r1
+
+MY_P=${PN}_${PV}
+DEB_REL=1
+
+DESCRIPTION="Utility to execute commands in a chroot environment"
+HOMEPAGE="http://packages.debian.org/source/sid/schroot"
+SRC_URI="mirror://debian/pool/main/${PN::1}/${PN}/${MY_P}.orig.tar.xz
+ mirror://debian/pool/main/${PN::1}/${PN}/${MY_P}-${DEB_REL}.debian.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 ~arm x86"
+IUSE="btrfs +dchroot debug doc lvm nls pam test"
+
+COMMON_DEPEND="
+ >=dev-libs/boost-1.42.0
+ >=sys-apps/util-linux-2.16
+ btrfs? ( >=sys-fs/btrfs-progs-0.19-r2 )
+ lvm? ( sys-fs/lvm2 )
+ pam? ( sys-libs/pam )
+"
+
+DEPEND="${COMMON_DEPEND}
+ app-arch/xz-utils
+ sys-apps/groff
+ doc? (
+ app-doc/doxygen
+ media-gfx/graphviz
+ )
+ nls? (
+ >=app-text/po4a-0.40
+ sys-devel/gettext
+ )
+ test? ( >=dev-util/cppunit-1.10.0 )
+"
+RDEPEND="${COMMON_DEPEND}
+ sys-apps/debianutils
+ dchroot? ( !sys-apps/dchroot )
+ nls? ( virtual/libintl )
+"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-1.6.10-cmake-add-additional-regex-tests.patch"
+)
+
+src_unpack() {
+ unpack ${MY_P}.orig.tar.xz
+ cd "${S}"
+ unpack ${MY_P}-${DEB_REL}.debian.tar.xz
+}
+
+src_prepare() {
+ sed -i -e 's/warn(/message(WARNING /' man/CMakeLists.txt || die
+ sed -i -e '/^have schroot/d' etc/bash_completion/schroot || die
+
+ cmake-utils_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ $(cmake-utils_use btrfs btrfs-snapshot)
+ $(cmake-utils_use dchroot dchroot)
+ $(cmake-utils_use dchroot dchroot-dsa)
+ $(cmake-utils_use debug debug)
+ $(cmake-utils_use doc doxygen)
+ $(cmake-utils_use lvm lvm-snapshot)
+ $(cmake-utils_use nls nls)
+ $(cmake-utils_use pam pam)
+ $(cmake-utils_use test test)
+ -Dbash_completion_dir="$(get_bashcompdir)"
+ -DCMAKE_INSTALL_SYSCONFDIR="${EPREFIX}/etc"
+ -DCMAKE_INSTALL_LOCALSTATEDIR="${EPREFIX}/var"
+ )
+ if ! use nls; then
+ mycmakeargs+=(-DPO4A_EXECUTABLE=NOTFOUND)
+ fi
+
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile all $(usev doc)
+}
+
+src_test() {
+ if [[ $EUID -ne 0 ]]; then
+ ewarn "Disabling tests because you are not root"
+ return 0
+ fi
+
+ cmake-utils_src_test
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ insinto /usr/share/doc/${PF}/contrib/setup.d
+ doins contrib/setup.d/05customdir contrib/setup.d/09fsck contrib/setup.d/10mount-ssh
+
+ newdoc debian/schroot.NEWS NEWS.debian
+
+ newinitd "${FILESDIR}"/schroot.initd schroot
+ newconfd "${FILESDIR}"/schroot.confd schroot
+
+ if use doc; then
+ docinto html/sbuild
+ dohtml "${BUILD_DIR}"/doc/sbuild/html/*
+ docinto html/schroot
+ dohtml "${BUILD_DIR}"/doc/schroot/html/*
+ fi
+
+ if use pam; then
+ rm -f "${ED}"etc/pam.d/schroot
+ pamd_mimic_system schroot auth account session
+ fi
+}
+
+pkg_postinst() {
+ if [[ ${REPLACING_VERSIONS} == 1.[24]* ]]; then
+ elog "Please read /usr/share/doc/${PF}/NEWS.debian* for important"
+ elog "upgrade information."
+ fi
+}
diff --git a/dev-util/schroot/schroot-1.6.10-r4.ebuild b/dev-util/schroot/schroot-1.6.10-r4.ebuild
new file mode 100644
index 000000000000..280d789e5202
--- /dev/null
+++ b/dev-util/schroot/schroot-1.6.10-r4.ebuild
@@ -0,0 +1,146 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit cmake-utils eutils pam versionator bash-completion-r1
+
+MY_P=${PN}_${PV}
+DEB_REL=2
+
+DESCRIPTION="Utility to execute commands in a chroot environment"
+HOMEPAGE="http://packages.debian.org/source/sid/schroot"
+SRC_URI="mirror://debian/pool/main/${PN::1}/${PN}/${MY_P}.orig.tar.xz
+ mirror://debian/pool/main/${PN::1}/${PN}/${MY_P}-${DEB_REL}.debian.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="btrfs +dchroot debug doc lvm nls pam test"
+
+COMMON_DEPEND="
+ >=dev-libs/boost-1.42.0
+ >=sys-apps/util-linux-2.16
+ btrfs? ( >=sys-fs/btrfs-progs-0.19-r2 )
+ lvm? ( sys-fs/lvm2 )
+ pam? ( sys-libs/pam )
+"
+
+DEPEND="${COMMON_DEPEND}
+ app-arch/xz-utils
+ sys-apps/groff
+ doc? (
+ app-doc/doxygen
+ media-gfx/graphviz
+ )
+ nls? (
+ >=app-text/po4a-0.40
+ sys-devel/gettext
+ )
+ test? ( >=dev-util/cppunit-1.10.0 )
+"
+RDEPEND="${COMMON_DEPEND}
+ sys-apps/debianutils
+ dchroot? ( !sys-apps/dchroot )
+ nls? ( virtual/libintl )
+"
+
+PATCHES=(
+ "${S}/debian/patches/Add-support-for-more-compression-formats.patch"
+ "${S}/debian/patches/Add-SESSION_SOURCE-and-CHROOT_SESSION_SOURCE.patch"
+ "${S}/debian/patches/10mount-Move-mount-directory-to-var-run.patch"
+ "${S}/debian/patches/Support-union-mounts-with-overlay-as-in-Linux-4.0.patch"
+ "${S}/debian/patches/GCC5-fixes-on-regexes.patch"
+)
+
+src_unpack() {
+ unpack ${MY_P}.orig.tar.xz
+ cd "${S}"
+ unpack ${MY_P}-${DEB_REL}.debian.tar.xz
+}
+
+src_prepare() {
+ sed -i -e 's/warn(/message(WARNING /' man/CMakeLists.txt || die
+ sed -i -e '/^have schroot/d' etc/bash_completion/schroot || die
+
+ cmake-utils_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -Dbtrfs-snapshot=$(usex btrfs)
+ -Ddchroot=$(usex dchroot)
+ -Ddchroot-dsa=$(usex dchroot)
+ -Ddebug=$(usex debug)
+ -Ddoxygen=$(usex doc)
+ -Dlvm-snapshot=$(usex lvm)
+ -Dnls=$(usex nls)
+ -Dpam=$(usex pam)
+ -Dtest=$(usex test)
+ -Dbash_completion_dir="$(get_bashcompdir)"
+ -DCMAKE_INSTALL_SYSCONFDIR="${EPREFIX}/etc"
+ -DCMAKE_INSTALL_LOCALSTATEDIR="${EPREFIX}/var"
+ )
+ if ! use nls; then
+ mycmakeargs+=(-DPO4A_EXECUTABLE=NOTFOUND)
+ fi
+
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile all $(usev doc)
+}
+
+src_test() {
+ if [[ $EUID -ne 0 ]]; then
+ ewarn "Disabling tests because you are not root"
+ return 0
+ fi
+
+ cmake-utils_src_test
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ insinto /usr/share/doc/${PF}/contrib/setup.d
+ doins contrib/setup.d/05customdir contrib/setup.d/09fsck contrib/setup.d/10mount-ssh
+
+ newdoc debian/schroot.NEWS NEWS.debian
+
+ newinitd "${FILESDIR}"/schroot.initd schroot
+ newconfd "${FILESDIR}"/schroot.confd schroot
+
+ if use doc; then
+ docinto html/sbuild
+ dohtml "${BUILD_DIR}"/doc/sbuild/html/*
+ docinto html/schroot
+ dohtml "${BUILD_DIR}"/doc/schroot/html/*
+ fi
+
+ if use pam; then
+ rm -f "${ED}"etc/pam.d/schroot
+ pamd_mimic_system schroot auth account session
+ fi
+}
+
+pkg_postinst() {
+ if [[ ${REPLACING_VERSIONS} == 1.[24]* ]]; then
+ elog "Please read /usr/share/doc/${PF}/NEWS.debian* for important"
+ elog "upgrade information."
+ fi
+ # If installing to a running system, upgrading from <=1.6.10-r3, then
+ # make sure that the runtime dirs are still visible to the new install
+ if [[ ${ROOT} == / && ${REPLACING_VERSIONS} ]] && ! version_is_at_least 1.6.10-r4 ${REPLACING_VERSIONS}; then
+ ln -s "${EPREFIX}"/var/lib/schroot "${EPREFIX}"/var/run/schroot
+ fi
+}
+
+pkg_postrm() {
+ if [[ -z ${REPLACED_BY_VERSION} ]]; then
+ for dir in $(find "${EROOT}"/var/lib/schroot/mount -maxdepth 1 -type d | tac); do
+ rmdir "$dir" || elog "Failed to remove session mount directory $dir: Please check for any stray mounts or data under this directory and remove by hand."
+ done
+ fi
+}
diff --git a/dev-util/scons/Manifest b/dev-util/scons/Manifest
new file mode 100644
index 000000000000..dfe958f4e480
--- /dev/null
+++ b/dev-util/scons/Manifest
@@ -0,0 +1,20 @@
+AUX scons-2.1.0-jython.patch 427 SHA256 f973254e500325334c44f7db86daec87954aa47287c8aa92146a91ed172eb97a SHA512 5ffe6ee08e2dbf7dfb92e67a2b4ac75a5566a34680dbe86eae749c67709e8ddf585ddbd4549c0151c022567f171240c329cc546ce3d0bfb76efd2c8bd6f185e1 WHIRLPOOL 3316c6f83c5792cbc4e58d721a57df972eba0dcc90a0bea4fcc0222affd014662b11b06cc6699d4e6fa1bc41468318b82b33f47a6e4d20a5ff7194fde79e5173
+DIST scons-2.3.5-user.html 1280097 SHA256 2724fe17e3901f6c70dc190e7a215a86e3c103f90393588480f0adb7c2c9a9bb SHA512 e2c80beacd03f4071e33f8084e499e54c8529e68ec02b972d0d0944b6e096437fd70f59339ebba652cc5539475e1b4eb8b80e4a3d188413ca5181af9ae5b70d3 WHIRLPOOL d73ef9a5f1cbf9a0cf70124b224a50b7d4ca5d7a35bddb6b88f3fa14ba5fbee1e2721ad9179698b5cd45f24bf91815bc15e4c0d40d21b34a761ec68243a1fc74
+DIST scons-2.3.5-user.pdf 2505997 SHA256 4e157b75b49b6e15f339811102b8e3e8af761ed197a6fe0df01c535ecb16f758 SHA512 137ab2d3b1cab6821f2d8a8fde33406e2a7d46a4c26eec9de1073d3c03f49e1d485ae7884ed3cd2e41a0e3d2ef457e103d782dc1deb01a280c48e4f5e7e68f1e WHIRLPOOL f5394cc86930ec60259af01232948cd10aa7c240bf75262d622a94f0b2311bdc70835921b8ff7a5e2091adc035ce56ad1c0b69c22def1305082af3f6a3aaf802
+DIST scons-2.3.5.tar.gz 631619 SHA256 8a8993e1914801ace5ce83c92bf4c43127669750e9dec8eb93574e57729e9c42 SHA512 aad0213d70c06b02d647a4de4a4fdcd9970e7bda6f3ba0b33e9ba05677af617302b3a557e7cb13560c9057c3b11fbc27cf5e8e7511297058ad9599a04c8381a3 WHIRLPOOL 545d759d0d3ecd54b706712030b5091f1c56f8a3762118c4fd2d27aae9a407e59bffa81ca3592369467a2561eeba867c2a3f91f4652ee34afd4514b06627fd7f
+DIST scons-2.4.1-user.html 1110981 SHA256 d77b75e8b04e60843269f9fc0b83a8c903d3b47599f2502e50f0acd2754b9e27 SHA512 e73caa3daedb5da419a417dbec73a3958da162311e9ad09a7d5e9d6989686b24cf5c1b34fdb1d547a43de1da36e99566e6c367fde05af032a2d1000a7e12270c WHIRLPOOL 6813fc873d6a50dd830ba697324b4fe18be73089dd54cef08ef36758670a66bf5d596cdb2d3f26f1d0d4a68000d4467ba39e5dab104e1506d64b9c413b4f90bb
+DIST scons-2.4.1-user.pdf 2527773 SHA256 196f678894e0cb2d72fa4f8922a1554345ca3ae66c7a51e4599687bfb41d8f8e SHA512 d53d41e51096d1923e168054d335da1498e9ca338e39aef7985967f839656d368b65a8b979dac701ca1c529deeff4a79f402f058d23ef4e658f849ce0784eb45 WHIRLPOOL 7a78b888a93fecc464c7b11cbe79464ddd4d1319604806b3357c2a45629c0cbe9ddda8d290c3ffefd25c74020b7712437f4482aedb709d2a62a6b141d9c21134
+DIST scons-2.4.1.tar.gz 638990 SHA256 8fc4f42928c69bcbb33e1be94b646f2c700b659693fabc778c192d4d22f753a7 SHA512 bd0830719dfc0c2e8620ec767ee6342af74a170cd895acda2995761eafe52e1efa9471626fcaedb0dd9a779ef9bb9b4306bd6cd3c2a5bd7bd2500018b40653e0 WHIRLPOOL d0d57d8c3377b2ac807ae5293ba905cb74623695a4ab0c70a08a3a07e358f8b59edbc1283e4b6df8b81e64858a7d71cc025296af982531bffc8badc2e0b32f2f
+DIST scons-2.5.0-user.html 1111090 SHA256 f79b154c256e0b74d5b9ac099c6ce4afd146253bf9e42a463028499987307adf SHA512 650be28d9be4322b51d31c001ffce339aa926dd3aa2b59c4e16e34151c26f0aa62f9d7a7407d0bcf1ae0e5f10e2e31a5adb66a7a189afac084101c6b0dc209e4 WHIRLPOOL ea702d23fb73423f019a507898fb388276595867afd453537caed74eea6baebfdcfd770a82593b8e525dcae9df1712aa1ff6a7bbc93a24fd2a8e3d8a07db218a
+DIST scons-2.5.0-user.pdf 2527810 SHA256 bf389a8471801b554aba22e3a568e4e654db847c1815ef62a787d3d9f7f59e62 SHA512 f8572db6d2fb4e6c4814d785fcde0a2c0bbe647265bf8b8904c315cf46af60636f273843d757f630b9a70f33762cca7010c4dc475143be670ee1c008e6be9155 WHIRLPOOL 8208dfa62e1ee32ecb22610f20b1789a193c01a338835a617b3facbc875202e45ff67c911b6ed5f2b05f1c9b16bbcc222fc195dc9b9d4cbbbfd844133d67a182
+DIST scons-2.5.0.tar.gz 619991 SHA256 eb296b47f23c20aec7d87d35cfa386d3508e01d1caa3040ea6f5bbab2292ace9 SHA512 abb0069976390182b77dbf6f20819c30ccf5fe9f58032eef7694ef408dceb63cfd1d1be69e7c0bced8a179297243b1a93924dd5064cd7c123ea118619bb53572 WHIRLPOOL db06c588de670cb253e551012a3a5abd6d304fb165c6578965f3a46b12cf65745c8e7fc03d4fbccfeba51519b86f624b7bf6417ccd65a8fcb11af812b118e882
+DIST scons-2.5.1-user.html 1112180 SHA256 42c69adcc6f098e61ceb2bd1c12acbd35bf654c9341e2390d0d2191111f88c57 SHA512 5be58a6bba4b92fc51f0b271fd7e08b820dda10775aaa40a012c0e54d485e02ebf6d0d0be379bd90980a9b496e86a951c8760a4a90107fb3b8f422e874e46046 WHIRLPOOL 31b4ffee0b58bfb502c72f7e4120aeac0ddc5713bee976b18e8ac3972670ee5baa708da58bf76a9cf91b4cb9730e5a17fd775235b06cb9d4fe438a6e54f7712b
+DIST scons-2.5.1-user.pdf 2522755 SHA256 dfba0c3800854010998a8184bdc829184d5965c6638d28dd9b552c50418fd1f6 SHA512 0bd7f67a1355ec33125bef87ce1bc352bda5b0befd9809673a427851c843191d74930b4ca9add705152393521f81d926595d173b0101013da216217dc5b64397 WHIRLPOOL cdc648537a6418a4ffac513d051030c6ec68812be4962aa2242ae85b99a4ecb08e209d03035eb90414a430b859bf94d5e5912efb0223ba7e0565428471470e03
+DIST scons-2.5.1.tar.gz 620909 SHA256 0b25218ae7b46a967db42f2a53721645b3d42874a65f9552ad16ce26d30f51f2 SHA512 0e39f7f22a6c4ecc13edcd843b050754da5ded5371b3a8b406395f7b53dd280f95f804707eec271f8de3624d06f5b4ba3cc788dc4eb891cad224a163544f51b9 WHIRLPOOL b3e17c9b4d5b0b490132c6d15ffd4a32b879e2b6819f666fe29605074b0c2f48598ec0252ead76841b49c00942078b94fd43e834dea0acd317a8ac1e06554ad9
+EBUILD scons-2.3.5.ebuild 1728 SHA256 1ab1795c629b4fa530c89dc1eaeba366e73ad98d06ab088e431c8f2a0f1a1147 SHA512 e1a645980bb9e096c558a0f3925f7019ddfb6823792e81bffc632a76e45b6724866ded80502ef806a921bdc99661b3ad6f2c1809823300b7b897662cb0b975c3 WHIRLPOOL 8ff1310d1236c1b3469abfc4280b8cb091ac492966267ba46d1fac2c40dacc1fb083ee56cc50b90928e32655c3f9f93b41f06ce67637d1cfc31203f3f54ae9e5
+EBUILD scons-2.4.1.ebuild 1703 SHA256 4bf9a1e8fed173a2243722fcf63e27441bb821d614fecc7f7310d69eb28dfee4 SHA512 69f7b513981e51bf547aad20f31af7ee98b77bb11bc10257499f92ea32d4a664cf83d77cabea81a56b068f2c18a40503567611e7ba78b987d4c6de1d52648b90 WHIRLPOOL f15f022bc122181aec07d19f87d68c3fdd49f78bf4d58a8faf01295949e05d62efd745183e7d574c2b5566b0edb4ed5fbf6553eb63831472c639e0994fdff3ec
+EBUILD scons-2.5.0.ebuild 1713 SHA256 fe1efd5e004f164f55aad7384a81264a46ebd0ce6bc2d1b631f73a8701ceac0f SHA512 223a1b338295c4e1aecfe8765344ba026367ba0d2cacfb269c40a9cf880baba1cd51932c93ee70b78d3666dce97c9047fb49df0c55f74de1525b46356aadeddd WHIRLPOOL 8b178f18690493cddbe232d8f5775994e6f5c502326372bb9a5d925c215e2a2443e4fa0f9d606d102c3f7d8d095644adc99730fe67d78f6c687693c593799f05
+EBUILD scons-2.5.1.ebuild 1725 SHA256 3b5dce21cf986289d17280dc4c96fa7a776ea8dd7ae40b7b14944af1b20871b6 SHA512 a5fa3ee3607112a4985b60c1b8cba91430b46770d5bc9161b344a697bb02af5d7d109c16e268a716eba80098a0743816b6afa6abd1f38fc17736f726c14f26e3 WHIRLPOOL 66aa848d3b2460d5f9c46224bf1a17a91d75c094ccc1dd693c640c172ce646bb95188b8595b946904c702b6476af5b49445251ab1510f3675c37d360eb90d002
+MISC ChangeLog 5523 SHA256 e6c309404405c512e887249ddc1a0cfcaafb32dfc7a30e3d8223460d2dfdb431 SHA512 13d26938019a1ce44428d0889ea1762ede92528108dff4800206037a21333a3d1d18b0750b95c881cbf4538516022697b9c096ddb0a327fef38c96ea50f03266 WHIRLPOOL c3dfc0f94ed224e87b800a3025f669aea1fc84a78be2e35cda84c537fdb73bddd0c77ac84657045b9e93089b0ef92aa0326fc885f0437f6315c748c8466c3082
+MISC ChangeLog-2015 12535 SHA256 d6a731c023cd5c8980d049de917e73bbc9ad2174f216f6b1d8318cf352494bff SHA512 ce3a96d022a41a180ce4331c6143ab2a5489c8837d6effece10a57ae3c04e5e1c53c6bf2f9b454847b416dc81f3e5e0f1e2729f76df4ddd57f9b748be6322090 WHIRLPOOL 567ee01c560fbe9f0cd55ae164a240939ac25434a3237ae064989279f2a69b9cdef5a8b7b7f70119978e6d92e3ee3287eabe0a5d4f874449801674d807bf3916
+MISC metadata.xml 704 SHA256 0480a11273aa566920c082dfa4630db3c7589e382943a1785b6b4a55891aa04b SHA512 62e5c8c23f1c67c218ff6b33c1f941ac3c258b39a5b2d799bedceb734aa5b2e29a718f90823ab5bf199e9d1eb8236aefaddcbff99c6d03f58987fb4936b10aa6 WHIRLPOOL 1c2506d063a5d97e67edba3f3d96cb5b7ba17cb751a82599ec923a3687d2f12a4a2f01857ae81de9841a64dea4a2ae4461debf57ec0f1240e6255f514a8a82a9
diff --git a/dev-util/scons/files/scons-2.1.0-jython.patch b/dev-util/scons/files/scons-2.1.0-jython.patch
new file mode 100644
index 000000000000..ca04e12031e1
--- /dev/null
+++ b/dev-util/scons/files/scons-2.1.0-jython.patch
@@ -0,0 +1,13 @@
+http://scons.tigris.org/issues/show_bug.cgi?id=2791
+
+--- setup.py
++++ setup.py
+@@ -325,7 +325,7 @@
+ self.copy_scons(src, scons_version_bat)
+
+ # --- distutils copy/paste ---
+- if os.name == 'posix':
++ if hasattr(os, 'chmod'):
+ # Set the executable bits (owner, group, and world) on
+ # all the scripts we just installed.
+ for file in self.get_outputs():
diff --git a/dev-util/scons/metadata.xml b/dev-util/scons/metadata.xml
new file mode 100644
index 000000000000..979bab55bc3a
--- /dev/null
+++ b/dev-util/scons/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>mgorny@gentoo.org</email>
+ <name>Michał Górny</name>
+ </maintainer>
+ <longdescription lang="en">
+ SCons is a make replacement providing a range of enhanced
+ features such as automated dependency generation and built in
+ compilation cache support. SCons rule sets are Python scripts so
+ as well as the features it provides itself SCons allows you to use
+ the full power of Python to control compilation.
+ </longdescription>
+ <upstream>
+ <remote-id type="sourceforge">scons</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/scons/scons-2.3.5.ebuild b/dev-util/scons/scons-2.3.5.ebuild
new file mode 100644
index 000000000000..2c581c3b0cbf
--- /dev/null
+++ b/dev-util/scons/scons-2.3.5.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 pypy )
+PYTHON_REQ_USE="threads(+)"
+
+inherit distutils-r1
+
+DESCRIPTION="Extensible Python-based build utility"
+HOMEPAGE="http://www.scons.org/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz
+ doc? ( http://www.scons.org/doc/${PV}/PDF/${PN}-user.pdf -> ${P}-user.pdf
+ http://www.scons.org/doc/${PV}/HTML/${PN}-user.html -> ${P}-user.html )"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
+IUSE="doc"
+
+PATCHES=( "${FILESDIR}/${PN}-2.1.0-jython.patch" )
+
+python_prepare_all() {
+ # https://bugs.gentoo.org/show_bug.cgi?id=361061
+ sed -i -e "s|/usr/local/bin:/opt/bin:/bin:/usr/bin|${EPREFIX}/usr/local/bin:${EPREFIX}/opt/bin:${EPREFIX}/bin:${EPREFIX}/usr/bin:/usr/local/bin:/opt/bin:/bin:/usr/bin|g" engine/SCons/Platform/posix.py || die
+ # and make sure the build system doesn't "force" /usr/local/ :(
+ sed -i -e "s/'darwin'/'NOWAYdarwinWAYNO'/" setup.py || die
+
+ distutils-r1_python_prepare_all
+}
+
+python_install() {
+ distutils-r1_python_install \
+ --standard-lib \
+ --no-version-script \
+ --install-data "${EPREFIX}"/usr/share
+}
+
+python_install_all() {
+ local DOCS=( {CHANGES,README,RELEASE}.txt )
+ distutils-r1_python_install_all
+
+ use doc && dodoc "${DISTDIR}"/${P}-user.{pdf,html}
+}
+
+src_install() {
+ distutils-r1_src_install
+
+ # Build system does not use build_scripts properly.
+ # http://scons.tigris.org/issues/show_bug.cgi?id=2891
+ python_replicate_script "${ED}"usr/bin/scons{,ign,-time}
+}
diff --git a/dev-util/scons/scons-2.4.1.ebuild b/dev-util/scons/scons-2.4.1.ebuild
new file mode 100644
index 000000000000..68b9b393ddfa
--- /dev/null
+++ b/dev-util/scons/scons-2.4.1.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 pypy )
+PYTHON_REQ_USE="threads(+)"
+
+inherit distutils-r1
+
+DESCRIPTION="Extensible Python-based build utility"
+HOMEPAGE="http://www.scons.org/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz
+ doc? ( http://www.scons.org/doc/${PV}/PDF/${PN}-user.pdf -> ${P}-user.pdf
+ http://www.scons.org/doc/${PV}/HTML/${PN}-user.html -> ${P}-user.html )"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
+IUSE="doc"
+
+#PATCHES=( )
+
+python_prepare_all() {
+ # https://bugs.gentoo.org/show_bug.cgi?id=361061
+ sed -i -e "s|/usr/local/bin:/opt/bin:/bin:/usr/bin|${EPREFIX}/usr/local/bin:${EPREFIX}/opt/bin:${EPREFIX}/bin:${EPREFIX}/usr/bin:/usr/local/bin:/opt/bin:/bin:/usr/bin|g" engine/SCons/Platform/posix.py || die
+ # and make sure the build system doesn't "force" /usr/local/ :(
+ sed -i -e "s/'darwin'/'NOWAYdarwinWAYNO'/" setup.py || die
+
+ distutils-r1_python_prepare_all
+}
+
+python_install() {
+ distutils-r1_python_install \
+ --standard-lib \
+ --no-version-script \
+ --install-data "${EPREFIX}"/usr/share
+}
+
+python_install_all() {
+ local DOCS=( {CHANGES,README,RELEASE}.txt )
+ distutils-r1_python_install_all
+
+ use doc && dodoc "${DISTDIR}"/${P}-user.{pdf,html}
+}
+
+src_install() {
+ distutils-r1_src_install
+
+ # Build system does not use build_scripts properly.
+ # http://scons.tigris.org/issues/show_bug.cgi?id=2891
+ python_replicate_script "${ED}"usr/bin/scons{,ign,-time}
+}
diff --git a/dev-util/scons/scons-2.5.0.ebuild b/dev-util/scons/scons-2.5.0.ebuild
new file mode 100644
index 000000000000..1229463da8c0
--- /dev/null
+++ b/dev-util/scons/scons-2.5.0.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 pypy )
+PYTHON_REQ_USE="threads(+)"
+
+inherit distutils-r1
+
+DESCRIPTION="Extensible Python-based build utility"
+HOMEPAGE="http://www.scons.org/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz
+ doc? ( http://www.scons.org/doc/${PV}/PDF/${PN}-user.pdf -> ${P}-user.pdf
+ http://www.scons.org/doc/${PV}/HTML/${PN}-user.html -> ${P}-user.html )"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
+IUSE="doc"
+
+#PATCHES=( )
+
+python_prepare_all() {
+ # https://bugs.gentoo.org/show_bug.cgi?id=361061
+ sed -i -e "s|/usr/local/bin:/opt/bin:/bin:/usr/bin|${EPREFIX}/usr/local/bin:${EPREFIX}/opt/bin:${EPREFIX}/bin:${EPREFIX}/usr/bin:/usr/local/bin:/opt/bin:/bin:/usr/bin|g" engine/SCons/Platform/posix.py || die
+ # and make sure the build system doesn't "force" /usr/local/ :(
+ sed -i -e "s/'darwin'/'NOWAYdarwinWAYNO'/" setup.py || die
+
+ distutils-r1_python_prepare_all
+}
+
+python_install() {
+ distutils-r1_python_install \
+ --standard-lib \
+ --no-version-script \
+ --install-data "${EPREFIX}"/usr/share
+}
+
+python_install_all() {
+ local DOCS=( {CHANGES,README,RELEASE}.txt )
+ distutils-r1_python_install_all
+
+ use doc && dodoc "${DISTDIR}"/${P}-user.{pdf,html}
+}
+
+src_install() {
+ distutils-r1_src_install
+
+ # Build system does not use build_scripts properly.
+ # http://scons.tigris.org/issues/show_bug.cgi?id=2891
+ python_replicate_script "${ED}"usr/bin/scons{,ign,-time}
+}
diff --git a/dev-util/scons/scons-2.5.1.ebuild b/dev-util/scons/scons-2.5.1.ebuild
new file mode 100644
index 000000000000..d377f041389e
--- /dev/null
+++ b/dev-util/scons/scons-2.5.1.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 pypy )
+PYTHON_REQ_USE="threads(+)"
+
+inherit distutils-r1
+
+DESCRIPTION="Extensible Python-based build utility"
+HOMEPAGE="http://www.scons.org/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz
+ doc? ( http://www.scons.org/doc/${PV}/PDF/${PN}-user.pdf -> ${P}-user.pdf
+ http://www.scons.org/doc/${PV}/HTML/${PN}-user.html -> ${P}-user.html )"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
+IUSE="doc"
+
+#PATCHES=( )
+
+python_prepare_all() {
+ # https://bugs.gentoo.org/show_bug.cgi?id=361061
+ sed -i -e "s|/usr/local/bin:/opt/bin:/bin:/usr/bin|${EPREFIX}/usr/local/bin:${EPREFIX}/opt/bin:${EPREFIX}/bin:${EPREFIX}/usr/bin:/usr/local/bin:/opt/bin:/bin:/usr/bin|g" engine/SCons/Platform/posix.py || die
+ # and make sure the build system doesn't "force" /usr/local/ :(
+ sed -i -e "s/'darwin'/'NOWAYdarwinWAYNO'/" setup.py || die
+
+ distutils-r1_python_prepare_all
+}
+
+python_install() {
+ distutils-r1_python_install \
+ --standard-lib \
+ --no-version-script \
+ --install-data "${EPREFIX}"/usr/share
+}
+
+python_install_all() {
+ local DOCS=( {CHANGES,README,RELEASE}.txt )
+ distutils-r1_python_install_all
+
+ use doc && dodoc "${DISTDIR}"/${P}-user.{pdf,html}
+}
+
+src_install() {
+ distutils-r1_src_install
+
+ # Build system does not use build_scripts properly.
+ # http://scons.tigris.org/issues/show_bug.cgi?id=2891
+ python_replicate_script "${ED}"usr/bin/scons{,ign,-time}
+}
diff --git a/dev-util/sel/Manifest b/dev-util/sel/Manifest
new file mode 100644
index 000000000000..441be4461303
--- /dev/null
+++ b/dev-util/sel/Manifest
@@ -0,0 +1,7 @@
+DIST sel-0.08.4.tar.gz 22188 SHA256 051279e3432415497d02c53e2fe9691b4039bfa6398fb1a60bb2603e1c94a66a SHA512 5550f1b78fef10c2ac7c132f752db4e0f7a3318419bf5751a4f812c1da04b07b3fcac341076d32f6ea436a0216ad6746e9cf29c4bcef630b76e307ded6237e52 WHIRLPOOL 76d92e6d99260f40d633d975204cdcf17999566e268b202d5dce1e2ed809a195ecfbd965f2e90c9a416b1bb3f31d0246e4d394fca7dd824528a1d77f57cc97f6
+EBUILD sel-0.08.4-r1.ebuild 724 SHA256 6a974bc68fd09a2f76a9f1e0f60ce35e0d8cf21b91dfd41464995ac370f6d4e9 SHA512 9978eed79f8494738b544c1fa2e122e532a62151db28cf30b6de726db970a88f86897d04bd1f68ea51062042835e28277a42551d1662f85955bb54148465c285 WHIRLPOOL ce8a8b00b5fad482c8f5696eafa50198b4e04c55587c0a69138fbf21f3c631bf52a6938198399e5acab6a1c30a8b76b6c3b9be82c83727efe9091a54ea73b058
+EBUILD sel-0.08.4-r2.ebuild 720 SHA256 4481898da85f17a0423d9fa0cc6874d7f306f420b28ceb230339159826ee13db SHA512 0652895242592d1611846755acab0142753f164369594d24075c84108b89b07de284ece47ab7a64a8778ff9d919a123bc264aad22a512cc22e98ecace8b051f8 WHIRLPOOL 6fa6ed45357df0f2266e0693c42b7a6367cb733945fe5e6d08726da673dc9a09b3586ac4f8ef7e58a7ac9c150fa390bf59d0946321b15107efc79a9430feba8d
+EBUILD sel-0.08.4.ebuild 840 SHA256 98f052ad9c6c6d0aab4e39c3d8bfeec45bc8abdeca5df4977ec1ffbc57981117 SHA512 ad031883bc3001c85d233ed580a614f4a9abb82715c2e6f5cf169a1326a59453fc785e91be9cb6d149af6707c72da532840ac29c01f9396177380b88bb44cf1a WHIRLPOOL 27b466338579ba7d41cf4bd61d7339a264d31d666582f33b028845bb36f4548d8a3a61b84eeb0d89fb2aedfbc90f466e7d52825656bf374166e93ee04d0af705
+MISC ChangeLog 2218 SHA256 39a75d844d0b28c5edc30ca9a0a6f06f6ddecd4ae73df2f76a551924a555850f SHA512 450614654b100766f319d018db1a61ac1e8f9c2e57035af75a4655077f07c22cf0a4c9f04fb6d8e4e81965bfd6c365fd27dc3993441908f09a2aff2363628c6d WHIRLPOOL f5251dbdf15ec8b965b2365303f493a3dbf6deaba4f50b6dadbf880c417dbd2e456dcfaefd56b7aff984b82014ed6c0f6c93c9ecb384d377036d9169d0ec7328
+MISC ChangeLog-2015 2482 SHA256 21233c508ae116afe95542e49ad194cc93663c0f3e64740d7843530a92c6982c SHA512 7e372b9625408ae53bd8dbd45970e77b85205c2ac931082ee9144940c49ea6a81580cee1478537c1684240c8771e35633bc4c2423e408483739f255a92960ad4 WHIRLPOOL 84b40c69d84ecda1ecec39cbcdb800bf0f93e4aeabd5319a23eed675b4846ecfd163f3e93c67c50f97976ff87b1b1499325fbbdeff85ad69713df53a265b33e0
+MISC metadata.xml 404 SHA256 9a3a606fef61c844cecfae5541ffdea63121cc2589fc96c03be202f71f2ffe79 SHA512 310c9f33404a692c3c55ebd8244d3ed4649e46880ba1a3e792ca82e5efffdef763fe809e9380f0820596d3fdc51b1d9708b012374efebf5e3bb88a2d9b1ab500 WHIRLPOOL e939f43897ab18b8e87343c4ff8c94908af18af22dce80de2e569ce964835b1aab72480e209a65f3884c1a2ab47ac0d8172b03500f831e2ed7d047d74de87b02
diff --git a/dev-util/sel/metadata.xml b/dev-util/sel/metadata.xml
new file mode 100644
index 000000000000..ac16aaf0a181
--- /dev/null
+++ b/dev-util/sel/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>wschlich@gentoo.org</email>
+ <name>Wolfram Schlich</name>
+ <description>Primary maintainer</description>
+</maintainer>
+<longdescription>
+sel is a file selection utility for use on the shell and in shell scripts
+</longdescription>
+</pkgmetadata>
diff --git a/dev-util/sel/sel-0.08.4-r1.ebuild b/dev-util/sel/sel-0.08.4-r1.ebuild
new file mode 100644
index 000000000000..2faa3e43c54f
--- /dev/null
+++ b/dev-util/sel/sel-0.08.4-r1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+inherit toolchain-funcs
+
+DESCRIPTION="A filemanager for shell scripts"
+SRC_URI="http://www.rninet.de/darkstar/files/${P}.tar.gz"
+HOMEPAGE="http://www.rninet.de/darkstar/sel.html"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ppc s390 sparc x86"
+IUSE=""
+
+RDEPEND=">=sys-libs/ncurses-5.1"
+DEPEND="${RDEPEND}"
+
+src_prepare () {
+ sed -i -e "s:/usr/local/share/sel/help\.txt:/usr/share/sel/help\.txt:" \
+ sel.c || die 'sed failed'
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDLIBS="-lncurses"
+}
+
+src_install () {
+ dobin sel
+ doman sel.1
+ insinto /usr/share/sel
+ doins help.txt
+ dodoc README.GER
+}
diff --git a/dev-util/sel/sel-0.08.4-r2.ebuild b/dev-util/sel/sel-0.08.4-r2.ebuild
new file mode 100644
index 000000000000..d858c06807be
--- /dev/null
+++ b/dev-util/sel/sel-0.08.4-r2.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit toolchain-funcs
+
+DESCRIPTION="A filemanager for shell scripts"
+SRC_URI="http://www.rninet.de/darkstar/files/${P}.tar.gz"
+HOMEPAGE="http://www.rninet.de/darkstar/sel.html"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~ppc ~s390 ~sparc ~x86"
+
+RDEPEND="sys-libs/ncurses:0="
+
+DOCS=( "help.txt" README.GER whatsnew )
+
+src_prepare () {
+ default
+ sed -i \
+ -e "s:/usr/local/share/sel/help\.txt:/usr/share/sel/help\.txt:" \
+ "${PN}.c" || die 'sed failed'
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDLIBS="-lncurses"
+}
+
+src_install () {
+ dobin "${PN}"
+ doman "${PN}.1"
+ einstalldocs
+}
diff --git a/dev-util/sel/sel-0.08.4.ebuild b/dev-util/sel/sel-0.08.4.ebuild
new file mode 100644
index 000000000000..e0e7ce2b3de2
--- /dev/null
+++ b/dev-util/sel/sel-0.08.4.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit toolchain-funcs
+
+DESCRIPTION="A filemanager for shell scripts"
+SRC_URI="http://www.rninet.de/darkstar/files/${P}.tar.gz"
+HOMEPAGE="http://www.rninet.de/darkstar/sel.html"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ppc s390 sparc x86"
+IUSE=""
+
+RDEPEND=">=sys-libs/ncurses-5.1"
+DEPEND="${RDEPEND}"
+
+src_unpack () {
+ unpack ${A}
+ cd "${S}"
+
+ sed -i -e "s:/usr/local/share/sel/help\.txt:/usr/share/sel/help\.txt:" \
+ sel.c || die 'sed failed'
+}
+
+doecho() {
+ echo "$@"
+ "$@"
+}
+
+src_compile() {
+ doecho $(tc-getCC) -o ${PN} \
+ ${CFLAGS} ${LDFLAGS} \
+ ${PN}.c -lncurses \
+ || die "build failed"
+}
+
+src_install () {
+ dobin sel || die
+ doman sel.1 || die
+ insinto /usr/share/sel
+ doins help.txt || die
+ dodoc README.GER || die
+}
diff --git a/dev-util/serialtalk/Manifest b/dev-util/serialtalk/Manifest
new file mode 100644
index 000000000000..a53c03ecddc6
--- /dev/null
+++ b/dev-util/serialtalk/Manifest
@@ -0,0 +1,5 @@
+DIST serialtalk-1.2.tar.gz 19214 SHA256 0dde1167ef1d3494e43ec5c8c5715122e68efb3b83e8c725673326fd0160ab9f SHA512 4634e4a044915841bf4c2ba141b479207237b1d078a3af47515adebbca3feeb8e1a8e86a673b8a77595255b017e51bbe3e3567e4914b9d603ba676525a7f1dc2 WHIRLPOOL 280368d5b3f6bb670d7d56e1e0aa038ba6709af6be990be64b38fe50c9b0c585f2f49164cf89ccfb8c22c157cadeea3e4ea0948bfb65970a772f6d0e5b11ceec
+EBUILD serialtalk-1.2.ebuild 537 SHA256 7877e7873a484b709fe92e9b5c484cd6fe5703fcf0307fff3d383d3fd4974380 SHA512 b92141c5eb194f25ff8a984c1285015155448d462d201a4949981f61471bd6dd37a9b9569237ff168100ea30be72dc562abc94dd31573d9629a4248ffa488f18 WHIRLPOOL 263be1bc427c5e8f095c96e7e279a6e2e11781e6dbffe95ed71e56c54bd650e781b4fade4da8497e92a518822bcbbab8246adc3612ac1cfa399c07ab33bc6d72
+EBUILD serialtalk-9999.ebuild 537 SHA256 7877e7873a484b709fe92e9b5c484cd6fe5703fcf0307fff3d383d3fd4974380 SHA512 b92141c5eb194f25ff8a984c1285015155448d462d201a4949981f61471bd6dd37a9b9569237ff168100ea30be72dc562abc94dd31573d9629a4248ffa488f18 WHIRLPOOL 263be1bc427c5e8f095c96e7e279a6e2e11781e6dbffe95ed71e56c54bd650e781b4fade4da8497e92a518822bcbbab8246adc3612ac1cfa399c07ab33bc6d72
+MISC ChangeLog 979 SHA256 dc1479d7d82738268dde6c10e5ebc2db7b40ba5e39c0080a4ac564033ca7fd3e SHA512 d758b0f0268fc155ca136041900f356d673ba49079f8be3947578d52bad81358e52270d95c36ec7359014d3dba9762baa7ee89bfaf23cb7d706016ea33267c86 WHIRLPOOL 3d4127ff89fe1713fdf8f5e950be1f289d9110bd027d8330a9e6cc8c60491a6d7098309ac161c90f3e6dff679eb196c038a3d87cbc5ed1ad6f3d517bee65fe96
+MISC metadata.xml 536 SHA256 369b79d410ef34ae8c9a5124475275c56a9151531e2740df915fa99fc6574443 SHA512 06e4cac91bd739ff7c05d585dd0da3877145e12187e15188374d291450a09e81de3ba7f21dcb716612047e227282d5ad3fe28608a17189e1c4864159fd12be4a WHIRLPOOL 6d30a451190294cc4e7307d1b449f6a4b9aaec848de1d7b102a0222a0469903c970c3238cb2dcf5e6e5a49a3229d5a3a5c1144dc94c3246986397b8a6dd17145
diff --git a/dev-util/serialtalk/metadata.xml b/dev-util/serialtalk/metadata.xml
new file mode 100644
index 000000000000..cdeb0f438925
--- /dev/null
+++ b/dev-util/serialtalk/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>o.freyermuth@googlemail.com</email>
+ <name>Oliver Freyermuth</name>
+ <description>Proxy-maintainer, assign bugs</description>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">BGO-OD/serialtalk</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/serialtalk/serialtalk-1.2.ebuild b/dev-util/serialtalk/serialtalk-1.2.ebuild
new file mode 100644
index 000000000000..59c9ad0a3efd
--- /dev/null
+++ b/dev-util/serialtalk/serialtalk-1.2.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils
+
+if [[ ${PV} == 9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/BGO-OD/serialtalk.git"
+else
+ SRC_URI="https://github.com/BGO-OD/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+DESCRIPTION="simple command-line tool to talk to serial devices"
+HOMEPAGE="https://github.com/BGO-OD/serialtalk"
+
+LICENSE="GPL-3+"
+SLOT="0"
+
+src_install() {
+ cmake-utils_src_install
+}
diff --git a/dev-util/serialtalk/serialtalk-9999.ebuild b/dev-util/serialtalk/serialtalk-9999.ebuild
new file mode 100644
index 000000000000..59c9ad0a3efd
--- /dev/null
+++ b/dev-util/serialtalk/serialtalk-9999.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils
+
+if [[ ${PV} == 9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/BGO-OD/serialtalk.git"
+else
+ SRC_URI="https://github.com/BGO-OD/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+DESCRIPTION="simple command-line tool to talk to serial devices"
+HOMEPAGE="https://github.com/BGO-OD/serialtalk"
+
+LICENSE="GPL-3+"
+SLOT="0"
+
+src_install() {
+ cmake-utils_src_install
+}
diff --git a/dev-util/setconf/Manifest b/dev-util/setconf/Manifest
new file mode 100644
index 000000000000..6bbb6ffa0671
--- /dev/null
+++ b/dev-util/setconf/Manifest
@@ -0,0 +1,7 @@
+DIST setconf-0.6.6.tar.xz 12620 SHA256 1554877f771fd3e509df5fd75c452460fd4ed78d2b23a4cd97710d5cb9831e4f SHA512 28f62b4dbc5883763cd11480ca059dd8ba120d6dfd964bbf1746ec5cb23fb0f0fd949249f77673d150cb6abd0039ff6f34d79ad744f8abcc765e0af37fbb85ff WHIRLPOOL 95fcf26aba2e11c7b5d3a25adb7e813930ac3409b6dc51afdf189ae22025cc6bb5fdc47907c8705d09db34c1cc92036eb59572ffe5baf5955efebac6fbc74e31
+DIST setconf-0.6.7.tar.xz 12700 SHA256 dcc38c2864c4a6d76d161a7aa34eb425f45ee4e7e76ad95050988b437750bb4f SHA512 8b247de9f7ac06f77e6251e95c045886cde5b6ca21b0152cb6fdc1456381aacd9051d5221c9fc8149608555e14f85ee2b51acbe65f78d129b1c8b732e093236d WHIRLPOOL de34abb2cbf49827f4b2a9845c85fdaec76afaeb9858458358e2f82adfcea0f24c4025147707ebfe8be23e2b433334078ad6a7a9de40c60c7ebeb84eb08f2bb2
+EBUILD setconf-0.6.6.ebuild 834 SHA256 dcfed5ad8a438730c09403bf4246bd25971c7c80ddbe39f5a8bd53c0a43cb4ed SHA512 c5752e1c0685d7bcaac043b5d754ab57d26b06f86f58c58cd1f6e95a878af678a2c8fd4a0eaadc606d4d36272e974bb06a45fe8c486c79b10a566bd27a9adfb3 WHIRLPOOL ad4521e08a7048e76ce8a72d2ab3a6e54992fb84d5e5d58de2e0ad6ced47ebaab4515d9d534e3b9d11cdfec8c852fde700e03974acba7b68a534f7d610db9864
+EBUILD setconf-0.6.7.ebuild 842 SHA256 b2d040d807343a12ec251a55f7ef44fff78b9f0c2cb303a12f37500d6d178382 SHA512 221d62759fb5cd629aa00e63634b5b9be3a4925c75a2f86c2d6f77656ee0a4f214b836334a1e9bf7f5962c7bdd4053087f94b775326969b7c52d2a79489b5abd WHIRLPOOL 16790494e78b1fbd8914024861873030d4690aff26905f3b85c652cb45c2ee0a2f5305b0c191a2767e8cfd3fc15fc99ea0cb48a827f898db72f412c18e04ba6a
+MISC ChangeLog 2752 SHA256 f37420124da94d015536c59276638d724b437313c3032fc093c7205f82ed7859 SHA512 521780c6390d48d47353dee0974d3a72ceab0ec8507bd0f798bc6f32409615ae2469d99ba914199862100c6dcb98995883517cfdd623b0ae864cd12dfbc5e03d WHIRLPOOL 4c20f48168aae7de1d6d42437f9b1ed44d21d916995c4bb512eb63c602de9e396f7dbe5d714931ae14e33116e678c703aa27506166919a714065c143cb65105e
+MISC ChangeLog-2015 1599 SHA256 c308e750538b23cfbf0fa9f5e98229fd58e534fa67acbc2aa62ffe339b30a9f5 SHA512 c4b3ef9819d7bd099b4cacaebd4a8a892bca61dd307317a0300c0e71fb71d9dc3b89bb17250cc6ef7d1bb7ed0db025f210b2298c3aeefd11b45ea1e8e7d77be7 WHIRLPOOL 690bb6217127b66b5303a8c34b5238171b620027cfe842b532e776cdaf05300bbf4578ad0425c316673ba7caa437962efbf08602c73c89b317e2216bc566b489
+MISC metadata.xml 265 SHA256 5c4f9426c69dd2191012bf8aae1952f4f6298c1f6ff0ec1e45fe0e05327694e9 SHA512 176f814d8c555e8726f36e012367b698e8a19a0662982621029a7f9190beecc5e6798e43c51698dc149364966cdeff7061121e54fa9d4cf2a3559a6ce4904e25 WHIRLPOOL 2fa84a9f23f48e804ab20a6fabe2707f86227bded2a41d3af30958db5a69bc6276140a7f035a256caeca5a8b8ce1c240383c300a90fc4a83334c178769bc3519
diff --git a/dev-util/setconf/metadata.xml b/dev-util/setconf/metadata.xml
new file mode 100644
index 000000000000..3cf14bf74636
--- /dev/null
+++ b/dev-util/setconf/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="project">
+ <email>shell-tools@gentoo.org</email>
+ <name>Gentoo Shell Tools Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-util/setconf/setconf-0.6.6.ebuild b/dev-util/setconf/setconf-0.6.6.ebuild
new file mode 100644
index 000000000000..b0646c4fed59
--- /dev/null
+++ b/dev-util/setconf/setconf-0.6.6.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python{2_7,3_4} )
+inherit python-single-r1
+
+DESCRIPTION="A small python based utility used to change configuration files"
+HOMEPAGE="http://setconf.roboticoverlords.org/"
+SRC_URI="http://${PN}.roboticoverlords.org/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND=${PYTHON_DEPS}
+
+# "REQUIRED_USE is needed to have a (un-)nice error when someone disabled all of python3" -mgorny
+REQUIRED_USE=${PYTHON_REQUIRED_USE}
+
+pkg_setup() {
+ python-single-r1_pkg_setup
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}" || die
+ unpack "./${PN}.1.gz"
+}
+
+src_prepare() {
+ python_fix_shebang -f "${PN}.py"
+}
+
+src_install() {
+ python_doscript "${PN}.py"
+ dosym "${PN}.py" "/usr/bin/${PN}"
+ doman "${PN}.1"
+}
diff --git a/dev-util/setconf/setconf-0.6.7.ebuild b/dev-util/setconf/setconf-0.6.7.ebuild
new file mode 100644
index 000000000000..1f5e27b579f0
--- /dev/null
+++ b/dev-util/setconf/setconf-0.6.7.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+inherit python-single-r1
+
+DESCRIPTION="A small python based utility used to change configuration files"
+HOMEPAGE="http://setconf.roboticoverlords.org/"
+SRC_URI="http://${PN}.roboticoverlords.org/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND=${PYTHON_DEPS}
+
+# "REQUIRED_USE is needed to have a (un-)nice error when someone disabled all of python3" -mgorny
+REQUIRED_USE=${PYTHON_REQUIRED_USE}
+
+pkg_setup() {
+ python-single-r1_pkg_setup
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}" || die
+ unpack "./${PN}.1.gz"
+}
+
+src_prepare() {
+ python_fix_shebang -f "${PN}.py"
+}
+
+src_install() {
+ python_doscript "${PN}.py"
+ dosym "${PN}.py" "/usr/bin/${PN}"
+ doman "${PN}.1"
+}
diff --git a/dev-util/sgb/Manifest b/dev-util/sgb/Manifest
new file mode 100644
index 000000000000..3148b4a6e7c1
--- /dev/null
+++ b/dev-util/sgb/Manifest
@@ -0,0 +1,7 @@
+AUX sgb-20030623-destdir.patch 2315 SHA256 89c4a5ddefeeb5298dd13d4777231c9d0f51147dabf2ab4051cd02dc1d07630d SHA512 0e821be0bdeac661c229958a9227b315810f66ae420f10b720b2fe0a09f9a20510d97f47aa6cc69a9c79904925ac842771743d694bd82ca9621f4fc8f1b46f04 WHIRLPOOL ee2c3f31fa06c8767ae574cc0343dfb4494bfb84d9892ca332cbb84a517d5cff6ae43ef47f9d3bb59f3870efcc0d2061af6e552a47e952e920eb8df4fad1a03c
+AUX sgb-20030623-parallel-make-fix.patch 947 SHA256 b583acccc414b15588a0204894e117ed75fc75a6fb6393cdd19eed844df1ca21 SHA512 d86c32c5f0a1ec9e09a70bc8dc0581654986ada562bd37f77c3d28e16856f72f6d42eae23e1cffc35973b2701718ea1e03bd0addee61a94901efbb5af0bcbd50 WHIRLPOOL ba4c5bd65729fc7a155054a9f9eb9917edb00a34b0f128c0c0a56fc7936ea4f18ba3bc3bfa0167f7d99d4b7aeb295167b994508c0e45df8c95c744169bf3323d
+DIST sgb-2003-06-23.tar.gz 493974 SHA256 dc911a3abd0bad1a528e89fc7f06135e05845ca7996ddf44559d3cc73d5eb7b5 SHA512 f486317dd85dc11761c970ab2bc0c9193f8dd3fa0d114528e1b55fd935fa9cce9266dc595b2ebe3526214ce3e6a1b3dc747382b32cbfd518ffb6179d3463e874 WHIRLPOOL 341ac4e0121675c2eb321d596ae7f52f7eeaeed802b7c330361f8621f72083ff0b26c1667ae6fb8af413868b9143bf20d7250e01f780aa34d6d9302b460df34b
+EBUILD sgb-20030623.ebuild 1335 SHA256 8b90793a96eb461f1d0156eba1fc9361f318e64232a6567d3aa33a261a288669 SHA512 c1ef93598fe367b80281d575d2aec5fdeddffe79fc7d5cfe4b936088f5d91e4b9f789f84799c19cc2c43400dd88c05110405594fa84693b3cc5ae629946e488a WHIRLPOOL 8af60132f130bb6ec5721fd54bf7ff0207333bfd96e56aeba52104962ba147b99318acd3fe8377ff75ad55b4e57ba82ca7e643c45b84398457f461f699986b33
+MISC ChangeLog 2254 SHA256 0834d5f415e97443f7d923b6ba3fd8de1ff840efe6d56ade22cbd26a088338b1 SHA512 9f4a3e62cdef4feef33776ddb558f689f74ebecd6426913f3bd5b294904df26785fbeec1bcfca3b8ab614a43adbe10677cb152efc098bf0c7e649b7ecdbb4e34 WHIRLPOOL d34f27bd444b5859cd2a8fb08b31fef4609f28d38a87e366dc151dd8c3bf7703d1f8e1f6f96042cee2096b17a23854a7a207ac9bff3999ba6be152ca82934a6d
+MISC ChangeLog-2015 1388 SHA256 d77495438b7205eba1b8595a56f32c2835746992c6ba67f31866aa9dd36c6d96 SHA512 bbcf0e880fa0c094fa0e5360de75e1e4d2900df25c3d82ac104bea4b34ed18e7b5d8f3877182d47333c005a7cb6c833281d1765272b37df0db9dad5b82d31d19 WHIRLPOOL 5bf6f4132cd2140fee717d17c03936398f6756b48c7fc0fbdfcadd8400fb6fe1b9b839546e5413fc60cf0e44d4ec7e004293d33591a9deccb8ab2eafcaf049c4
+MISC metadata.xml 216 SHA256 f7475919f28a8a93ec8bd025c8f8bbab918f66d0d1737420c876f0480308fe6a SHA512 e881b59fe49746eb25ad66c258b41aba501e4eb563129093a3898ea970a20506e7898f7c355cfcf99605234962bf2c77c1309c258b9a2b84ee4302ccb71c9dbd WHIRLPOOL 163285b60aa93e00993af659dc1e29a9eb245bd3415dd5ec75b284250596165f469028102b72fa0c344834443a44c1bbcf6272fe6a3f5211f721fc96e1c6ec16
diff --git a/dev-util/sgb/files/sgb-20030623-destdir.patch b/dev-util/sgb/files/sgb-20030623-destdir.patch
new file mode 100644
index 000000000000..0517d0ce46a3
--- /dev/null
+++ b/dev-util/sgb/files/sgb-20030623-destdir.patch
@@ -0,0 +1,76 @@
+diff -Nuar -Nuar work.orig/Makefile work/Makefile
+--- work.orig/Makefile 2009-09-22 01:59:32.521217030 +0000
++++ work/Makefile 2009-09-22 01:58:42.494972535 +0000
+@@ -93,50 +93,48 @@
+ $(CC) $(CFLAGS) -DDATA_DIRECTORY=\"$(DATADIR)/\" -c gb_io.c
+
+ test_io: gb_io.o
+- $(CC) $(CFLAGS) test_io.c gb_io.o -o test_io
++ $(CC) $(CFLAGS) $(LDFLAGS) test_io.c gb_io.o -o test_io
+
+ test_graph: gb_graph.o
+- $(CC) $(CFLAGS) test_graph.c gb_graph.o -o test_graph
++ $(CC) $(CFLAGS) $(LDFLAGS) test_graph.c gb_graph.o -o test_graph
+
+ test_flip: gb_flip.o
+- $(CC) $(CFLAGS) test_flip.c gb_flip.o -o test_flip
++ $(CC) $(CFLAGS) $(LDFLAGS) test_flip.c gb_flip.o -o test_flip
+
+-tests: test_io test_graph test_flip
++tests: certified
++
++tests_phase1: test_io test_graph test_flip
+ ./test_io
+ ./test_graph
+ ./test_flip
+- make gb_sort.o
+- make lib
+- make test_sample
++
++certified tests_phase2: tests_phase1 gb_sort.o lib test_sample
+ - ./test_sample > sample.out
+ diff test.gb test.correct
+ diff sample.out sample.correct
+- rm test.gb sample.out test_io test_graph test_flip test_sample
++ echo rm test.gb sample.out test_io test_graph test_flip test_sample
+ echo "Congratulations --- the tests have all been passed."
+ touch certified
+
+-install: lib
+- if test ! -r certified; then echo "Please run 'make tests' first!"; fi
+- test -r certified
+- make installdata
+- - mkdir $(LIBDIR)
+- - cp libgb.a $(LIBDIR)
+- - mkdir $(CWEBINPUTS)
+- - cp -p boilerplate.w gb_types.w $(CWEBINPUTS)
+- - mkdir $(INCLUDEDIR)
+- - cp -p $(HEADERS) Makefile $(INCLUDEDIR)
++install: lib certified installdata
++ - mkdir -p $(DESTDIR)$(LIBDIR)
++ - cp libgb.a $(DESTDIR)$(LIBDIR)
++ - mkdir -p $(DESTDIR)$(CWEBINPUTS)
++ - cp -p boilerplate.w gb_types.w $(DESTDIR)$(CWEBINPUTS)
++ - mkdir -p $(DESTDIR)$(INCLUDEDIR)
++ - cp -p $(HEADERS) Makefile $(DESTDIR)$(INCLUDEDIR)
+
+ installdata: $(DATAFILES)
+- - mkdir $(SGBDIR)
+- - mkdir $(DATADIR)
+- - cp -p $(DATAFILES) $(DATADIR)
++ - mkdir -p $(DESTDIR)$(SGBDIR)
++ - mkdir -p $(DESTDIR)$(DATADIR)
++ - cp -p $(DATAFILES) $(DESTDIR)$(DATADIR)
+
+ installdemos: lib $(DEMOS)
+- - mkdir $(BINDIR)
+- - mv $(DEMOS) $(BINDIR)
++ - mkdir -p $(DESTDIR)$(BINDIR)
++ - mv $(DEMOS) $(DESTDIR)$(BINDIR)
+
+ uninstalldemos:
+- - cd $(BINDIR); rm -f $(DEMOS)
++ - cd $(DESTDIR)$(BINDIR); rm -f $(DEMOS)
+
+ doc:
+ tex abstract.plaintex
diff --git a/dev-util/sgb/files/sgb-20030623-parallel-make-fix.patch b/dev-util/sgb/files/sgb-20030623-parallel-make-fix.patch
new file mode 100644
index 000000000000..4a96742f24eb
--- /dev/null
+++ b/dev-util/sgb/files/sgb-20030623-parallel-make-fix.patch
@@ -0,0 +1,47 @@
+diff -Nuar b/Makefile a/Makefile
+--- b/Makefile 1999-12-27 22:27:24.000000000 +0000
++++ a/Makefile 2009-09-21 11:49:40.000000000 +0000
+@@ -46,26 +46,14 @@
+
+ .SUFFIXES: .dvi .tex .w
+
+-.tex.dvi:
+- tex $*.tex
++all: libgb.a test_io test_graph test_flip demos
+
+-.w.c:
+- if test -r $*.ch; then ctangle $*.w $*.ch; else ctangle $*.w; fi
+-
+-.w.tex:
+- if test -r $*.ch; then cweave $*.w $*.ch; else cweave $*.w; fi
+-
+-.w.o:
+- make $*.c
+- make $*.o
+-
+-.w:
+- make $*.c
+- make $*
+-
+-.w.dvi:
+- make $*.tex
+- make $*.dvi
++%.dvi: %.tex
++ tex $^
++%.c: %.w
++ ctangle $^
++%.tex: %.w
++ cweave $^
+
+ DATAFILES = anna.dat david.dat econ.dat games.dat homer.dat huck.dat \
+ jean.dat lisa.dat miles.dat roget.dat words.dat
+@@ -175,3 +163,9 @@
+
+ fulltar: $(ALL) ERRATA ANSI AMIGA PROTOTYPES MSVC
+ tar cvf sgb.tar $(ALL) ERRATA ANSI AMIGA PROTOTYPES MSVC
++
++$(DEMOS) lib tests test_io test_graph test_flip: libgb.a
++
++demos: $(DEMOS)
++
++.PRECIOUS: .o .c .tex
diff --git a/dev-util/sgb/metadata.xml b/dev-util/sgb/metadata.xml
new file mode 100644
index 000000000000..79d462e85571
--- /dev/null
+++ b/dev-util/sgb/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+ <email>robbat2@gentoo.org</email>
+</maintainer>
+</pkgmetadata>
diff --git a/dev-util/sgb/sgb-20030623.ebuild b/dev-util/sgb/sgb-20030623.ebuild
new file mode 100644
index 000000000000..c38c08974751
--- /dev/null
+++ b/dev-util/sgb/sgb-20030623.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils multilib
+
+DESCRIPTION="Stanford GraphBase"
+HOMEPAGE="ftp://labrea.stanford.edu/pub/sgb/"
+SRC_URI="ftp://labrea.stanford.edu/pub/sgb/sgb-${PV:0:4}-${PV:4:2}-${PV:6:2}.tar.gz"
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc x86"
+IUSE=""
+DEPEND="|| ( >=dev-util/cweb-3.00 virtual/tex-base )"
+S="${WORKDIR}"
+
+src_unpack() {
+ unpack ${A}
+ epatch "${FILESDIR}"/sgb-20030623-parallel-make-fix.patch
+ epatch "${FILESDIR}"/sgb-20030623-destdir.patch
+}
+
+src_compile() {
+ # bug #299028
+ emake -j1 \
+ CFLAGS="${CFLAGS}" \
+ SGBDIR=/usr/share/${PN} \
+ INCLUDEDIR=/usr/include/sgb \
+ LIBDIR=/usr/$(get_libdir) \
+ BINDIR=/usr/bin \
+ CFLAGS="${CFLAGS}" \
+ lib demos tests || die "Failed to build"
+ #CWEBINPUTS=/usr/share/${PN}/cweb \
+ #LDFLAGS="${LDFLAGS}" \
+}
+
+src_install() {
+ dodir /usr/share/${PN} /usr/include/sgb /usr/lib /usr/bin /usr/share/${PN}/cweb
+ emake \
+ DESTDIR="${D}" \
+ SGBDIR=/usr/share/${PN} \
+ INCLUDEDIR=/usr/include/sgb \
+ LIBDIR=/usr/$(get_libdir) \
+ BINDIR=/usr/bin \
+ CFLAGS="${CFLAGS}" \
+ LDFLAGS="${LDFLAGS}" \
+ CWEBINPUTS=/usr/share/${PN}/cweb \
+ install \
+ || die "Failed to install"
+
+ # we don't need no makefile
+ rm "${D}"/usr/include/sgb/Makefile
+
+ dodoc ERRATA README
+}
+
+src_test() {
+ emake tests
+}
diff --git a/dev-util/shadowman/Manifest b/dev-util/shadowman/Manifest
new file mode 100644
index 000000000000..af3f1720ec68
--- /dev/null
+++ b/dev-util/shadowman/Manifest
@@ -0,0 +1,6 @@
+DIST shadowman-1.tar.gz 3337 SHA256 b979cc02990e750a0fb7cc12cf36eaa559c5060ad8e337f213daa48342fe3bbe SHA512 9ec41c53444a20ba3e3d69c33f1ecdce46dbcd911de5b024cab84f2573ccb772b508b5c79f6f9cafda0cc4ab5a8de7414fa8d893a1ca5b86fabd0b2cfb62f6d2 WHIRLPOOL ba2de87d9c74e069f0baf05d6c782183f2308b7bba4c6e009c816ab52a7256bb21bca13a5165ce862ba12ed21912b1fdc12ac4b65b8e6bb20701d31cea627c22
+DIST shadowman-2.tar.gz 3349 SHA256 296730adc288e750fb083a51d7fbece341c76942bf8c7db61e16259b99d159de SHA512 eeb10248c7f76116352bffa671ab7c761b2f79cb943de20dba327b0d7bf1126d15021508c9e9389b9f0c37cf5049ad2c67bad93f6a03340fcfd27e03c4969110 WHIRLPOOL 307168a322819643041f9368d605b179145a422f7c50f4973ee4970bf441fe8b8d6ef6c914077f0b8247165642fa54a0efb36c1798981a3f925ccd6ea1a63205
+EBUILD shadowman-1.ebuild 584 SHA256 8bc01af75ef50f1a5a71367ea79945a15cae16185acb15e8a47250f86e3d4dc7 SHA512 0000f3bc020f31120634282069c19107c814f20030797bad94a3588579a9bd0ce434569974e9a1352a67b95c3d2446cf4becafc49373ef78a4623056c266a631 WHIRLPOOL 5a80743b04627c035f1daa9d2b7c8a4741a0fe63c84455a5efae8faab5005339c7c4f7b7c40e52a97da073ce77bafe693add332290565e4cec53caa9b4ade189
+EBUILD shadowman-2.ebuild 607 SHA256 30e8a3d1ab2943fb5a42baeddb3e6d6fcbccbd9fa5346f7ae98106d6ea3b9ad0 SHA512 196522ec2088b917ddf865f48b0f1c32ae0a17b228ed2d5ea84927e823d492d677de7f98855b8c7bd2843ebe6a67d0643bd60e9a31ef799ccae0b2133c9d131f WHIRLPOOL 0347e090db6027ddb180b6208be19665ad6ab49c7943b49aa33d22558eb1f7630b29c61f7a35ed1f67fee91e8ad072e541effcdde78b676e0d590b27f0b479da
+EBUILD shadowman-9999.ebuild 568 SHA256 fa23a50a0d8eff2cb4de615488f9ef21f8578087071471c13102f9087c1afd9f SHA512 4325db35429e59387690b10c09e86268e79e3a4a5e968075f36155fbcd5af7e0ec0a79b6a08b6e9e74ea5cad6727be0697abebcc63ba48c7449cd54141edd794 WHIRLPOOL 7793071ead70dbc4f48531e48e178255f70acf1f1a0aa95ee980de86e82b26a02ca8c8529d13ad2f77386d900acbb78e4120831c62827bffe4c6fdc09465aba4
+MISC metadata.xml 247 SHA256 34d6ed4186bad4ac57e0b4c08b657b14e28852a83c4ccf4d8a62f7829063b1cf SHA512 d6e2ea8a9d74791bcbf3d6311a66bafc20b8f4db3a576d9a8d54b86d7afb231122b8d87f71f3f46360980adf8d815c633b6d5041f9a30fc8656e8fb66057a282 WHIRLPOOL fbd18b3e6e3d777e8d78e91b8d32c5e357fd2a1c754d2c9add4622be682521e59556f466cba397d913f0e63265202744ceaf76dc7823be0a172a9bf4da6a2579
diff --git a/dev-util/shadowman/metadata.xml b/dev-util/shadowman/metadata.xml
new file mode 100644
index 000000000000..0319eec4c8be
--- /dev/null
+++ b/dev-util/shadowman/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>mgorny@gentoo.org</email>
+ <name>Michał Górny</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-util/shadowman/shadowman-1.ebuild b/dev-util/shadowman/shadowman-1.ebuild
new file mode 100644
index 000000000000..df3f6d1f3b81
--- /dev/null
+++ b/dev-util/shadowman/shadowman-1.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Unified compiler shadow link directory updater"
+HOMEPAGE="https://github.com/mgorny/shadowman"
+SRC_URI="https://github.com/mgorny/shadowman/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="app-admin/eselect"
+DEPEND="${RDEPEND}"
+
+src_install() {
+ # tool modules are split into their respective packages
+ emake DESTDIR="${ED}" install \
+ INSTALL_MODULES_TOOL=""
+ keepdir /usr/share/shadowman/tools
+}
diff --git a/dev-util/shadowman/shadowman-2.ebuild b/dev-util/shadowman/shadowman-2.ebuild
new file mode 100644
index 000000000000..95059ace20bc
--- /dev/null
+++ b/dev-util/shadowman/shadowman-2.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Unified compiler shadow link directory updater"
+HOMEPAGE="https://github.com/mgorny/shadowman"
+SRC_URI="https://github.com/mgorny/shadowman/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="app-admin/eselect"
+DEPEND="${RDEPEND}"
+
+src_install() {
+ # tool modules are split into their respective packages
+ emake DESTDIR="${D}" prefix="${EPREFIX}"/usr install \
+ INSTALL_MODULES_TOOL=""
+ keepdir /usr/share/shadowman/tools
+}
diff --git a/dev-util/shadowman/shadowman-9999.ebuild b/dev-util/shadowman/shadowman-9999.ebuild
new file mode 100644
index 000000000000..816a0bfd21f7
--- /dev/null
+++ b/dev-util/shadowman/shadowman-9999.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+EGIT_REPO_URI="https://github.com/mgorny/shadowman"
+inherit git-r3
+
+DESCRIPTION="Unified compiler shadow link directory updater"
+HOMEPAGE="https://github.com/mgorny/shadowman"
+SRC_URI=""
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS=""
+IUSE=""
+
+RDEPEND="app-admin/eselect"
+DEPEND="${RDEPEND}"
+
+src_install() {
+ # tool modules are split into their respective packages
+ emake DESTDIR="${D}" install \
+ INSTALL_MODULES_TOOL=""
+ keepdir /usr/share/shadowman/tools
+}
diff --git a/dev-util/shards/Manifest b/dev-util/shards/Manifest
new file mode 100644
index 000000000000..2ec3ed8eec54
--- /dev/null
+++ b/dev-util/shards/Manifest
@@ -0,0 +1,12 @@
+DIST shards-0.6.1.tar.gz 26505 SHA256 8e7d179a499a2fca895b534c6204e2e34828e6a645e48f83f08fbefcd6a03951 SHA512 fc1e32cf459a5c448ef780601b9515cd331fc40d3f6f0666e71e218a62e202e0d4f642f5e82660529d24145a5ed5f5cbf2fdc6fc251421850d9c7ac1ebcf4d07 WHIRLPOOL 0bf8ef2de47b6dd6be728c489b7ac9ff8101a51329d956ac2d1ad21ac9322442646d624b5b6e9baee5f1738326e3a5e039b94b5057ce6a2a5223a04db226b5a6
+DIST shards-0.6.2.tar.gz 26589 SHA256 11d22086d736598efa87eea558e7b304d538372f017fce9bb21476e40c586110 SHA512 baeebe496ea52c93313e9a550a8f1dda225674ca49e9e2b2660b059a8e7cd6a148085d33d5c70a46d2d4c7db9260f841a634c079cc590576a6d98c9308fb1100 WHIRLPOOL 944c3265aab2a7dc2e9261f68ea250b77f16ce16dd8fead8521ae367edd41b7998b624db6b1526759da60b52f6a6f02d710f9657021dd4e9ea494248ab620b6d
+DIST shards-0.6.3.tar.gz 26826 SHA256 5245aebb21af0a5682123732e4f4d476e7aa6910252fb3ffe4be60ee8df03ac2 SHA512 c9ef7f41dc1feb223fbaa22bc60546a6152eae44ecead6afc3ca5ed68ffb8640444efdf7817dc77f6507200993b6213293e24e006ebb483e804342b877d81c78 WHIRLPOOL 4863edf4f12871e16378a0e0854c508e7daae63ffebbeb1e0b37ba6e2d80ddd1121ae10ae8724505a49ae40bfb371c875acff9231c16a1d447d6d1573dd385f1
+DIST shards-0.6.4.tar.gz 26916 SHA256 5972f1b40bb3253319f564dee513229f82b0dcb8eea1502ae7dc483a9c6da5a0 SHA512 56475ab8287f469ec0b97d9ad7fcc36e75da8a4cd3fbddadfaf0156b6b0ede25331634bb3b41fa3e4b3c46adcd881838fe56c56de6e5bbf30d03e3106458e820 WHIRLPOOL 9ec386622e56a2cd3e8e494f68f1855365b8699fb229548d92e10794c421775ee855bbc0c236f5bdb1bb57406acbfa816234ae6d0785d16d5bf795fa186d8e64
+DIST shards-0.7.1.tar.gz 29722 SHA256 31de819c66518479682ec781a39ef42c157a1a8e6e865544194534e2567cb110 SHA512 9371df40a5c5f0f809c5febcbdede6c743e2a0f1898d648ecb8c2be69ed746bdb879eb3653cd2c7aacd43148ac8536c401b119fcf63039b866e284e8003e73ee WHIRLPOOL 91b94257e177a87aebe31e9ed677c7fa5278384a86d7d210124c5741525922b27677a81d3271d1467ca792b9f8547b95f96548a962b49efa5f3245d905e660a0
+EBUILD shards-0.6.1.ebuild 472 SHA256 59cf4235d0cd65de7f853a3cc28476268d44f7cccee0fd6cc70e9d65cd742852 SHA512 22b05fcebaca1a1c0d4cbf599a38da15d9c608472ded6dbdb7b4350373a075e93c77426f5444af83a32c6d4572f8a0b4dbd2bcb9955060ca656c09e9fbcc86d4 WHIRLPOOL f59ee57f8b4dc1bd2dcb28576e845cfc4cf0a9322cf074bcfa62bb72fb2d9430be0fa72c2788d907345116f4d606006ebfcfa10a705c4cb65c87b8a0e380f7de
+EBUILD shards-0.6.2.ebuild 476 SHA256 bf2e36c79f60bd8a35eb83912cd523c3c257045984eee1075c2656e8289d0de5 SHA512 a64966d302b3b49b18658cbe7a8498d6a1840d1306784860327a688fd4ddebfa9509bebf28d3f12b308b6354157b01ed7c4e97da757a42bd8a63739cae507970 WHIRLPOOL 3f1d0d9d3ebefe22b4fde0ea9f1ee17e95357a294d4184e2df5c26d2d9080a31dfc7b1c4d1a3b7486ae89b170797a0b78c9ef1e1a336216c99530913557abe4a
+EBUILD shards-0.6.3.ebuild 476 SHA256 bf2e36c79f60bd8a35eb83912cd523c3c257045984eee1075c2656e8289d0de5 SHA512 a64966d302b3b49b18658cbe7a8498d6a1840d1306784860327a688fd4ddebfa9509bebf28d3f12b308b6354157b01ed7c4e97da757a42bd8a63739cae507970 WHIRLPOOL 3f1d0d9d3ebefe22b4fde0ea9f1ee17e95357a294d4184e2df5c26d2d9080a31dfc7b1c4d1a3b7486ae89b170797a0b78c9ef1e1a336216c99530913557abe4a
+EBUILD shards-0.6.4.ebuild 476 SHA256 bf2e36c79f60bd8a35eb83912cd523c3c257045984eee1075c2656e8289d0de5 SHA512 a64966d302b3b49b18658cbe7a8498d6a1840d1306784860327a688fd4ddebfa9509bebf28d3f12b308b6354157b01ed7c4e97da757a42bd8a63739cae507970 WHIRLPOOL 3f1d0d9d3ebefe22b4fde0ea9f1ee17e95357a294d4184e2df5c26d2d9080a31dfc7b1c4d1a3b7486ae89b170797a0b78c9ef1e1a336216c99530913557abe4a
+EBUILD shards-0.7.1.ebuild 518 SHA256 8b839041719fff15eb6144fbb10d80789d4a15960855c214e3cd20b5159f2408 SHA512 0a65554b57b4e7b95f339bcd3c4eb2757a71db034e9224947f16037439c710a4584ed9c42201baaa9d2bc13cf268bc7e6347b28d055a64f07390792bbc1e7201 WHIRLPOOL 3c3781286802e6017b8d0eb067c7a2b9bd7d9731d23d42f149961746bcb6edecbd13a03b49ccb098b0d1d5100ff27b6d4da0f9d1e4f1cc105d641000aa5740ae
+MISC ChangeLog 1139 SHA256 461c6df38006910f5f13c3652eb1d29c2ce323dfe434a1613c548540f0db35b5 SHA512 13dce8a2136d11d9c89033a8d9dc286a53eeb8135acffac1515fb9ed31699454d60e65ebc403579c76e24aaec464213f91302bd3e58e79033b560581f61ef187 WHIRLPOOL 49a0af43c5abe130171f6400f590798737472d2288827c4cbecf8e5bd7ac9eabb507cdf183b3df945b135ec8b8b20e7b3011f0b201489859fc34705bb53a30ac
+MISC metadata.xml 666 SHA256 765582f65cd32a65205a212037e65e23b93209828ce1e38cb872a15106738991 SHA512 e8410cece16b7247fafcda124d235f100ee4d7a52178706c33271ba267b2778bdc77e12403b99c883b936ac691e1bb7eeaa5bc2e02c31f548151646e8cfdc63f WHIRLPOOL f6dfd81940f3dd73c6882ee6a6d6b22f133b3c7b53dc50e93396142088c81f557cb655ce8bffd6bbd261110321310b9036a43b40cacb35c23375f81270acc8fc
diff --git a/dev-util/shards/metadata.xml b/dev-util/shards/metadata.xml
new file mode 100644
index 000000000000..9c98005e23c3
--- /dev/null
+++ b/dev-util/shards/metadata.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>longlene@gmail.com</email>
+ <name>Lixiao Chen</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>slyfox@gentoo.org</email>
+ <name>Sergei Trofimovich</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Gentoo Proxy Maintainers Project</name>
+ </maintainer>
+ <longdescription lang="en">
+ Dependency manager for the Crystal language
+ </longdescription>
+ <upstream>
+ <remote-id type="github">ysbaddaden/shards</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/shards/shards-0.6.1.ebuild b/dev-util/shards/shards-0.6.1.ebuild
new file mode 100644
index 000000000000..313c82834ab9
--- /dev/null
+++ b/dev-util/shards/shards-0.6.1.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Dependency manager for the Crystal language"
+HOMEPAGE="https://github.com/ysbaddaden/shards"
+SRC_URI="https://github.com/ysbaddaden/shards/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+DEPEND="
+ >dev-lang/crystal-0.11.1[yaml]
+"
+RDEPEND="${DEPEND}"
+
+src_install() {
+ dobin bin/${PN}
+ dodoc README.md
+}
diff --git a/dev-util/shards/shards-0.6.2.ebuild b/dev-util/shards/shards-0.6.2.ebuild
new file mode 100644
index 000000000000..6a29317bdb13
--- /dev/null
+++ b/dev-util/shards/shards-0.6.2.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Dependency manager for the Crystal language"
+HOMEPAGE="https://github.com/crystal-lang/shards"
+SRC_URI="https://github.com/crystal-lang/shards/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+DEPEND="
+ >dev-lang/crystal-0.11.1[yaml]
+"
+RDEPEND="${DEPEND}"
+
+src_install() {
+ dobin bin/${PN}
+ dodoc README.md
+}
diff --git a/dev-util/shards/shards-0.6.3.ebuild b/dev-util/shards/shards-0.6.3.ebuild
new file mode 100644
index 000000000000..6a29317bdb13
--- /dev/null
+++ b/dev-util/shards/shards-0.6.3.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Dependency manager for the Crystal language"
+HOMEPAGE="https://github.com/crystal-lang/shards"
+SRC_URI="https://github.com/crystal-lang/shards/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+DEPEND="
+ >dev-lang/crystal-0.11.1[yaml]
+"
+RDEPEND="${DEPEND}"
+
+src_install() {
+ dobin bin/${PN}
+ dodoc README.md
+}
diff --git a/dev-util/shards/shards-0.6.4.ebuild b/dev-util/shards/shards-0.6.4.ebuild
new file mode 100644
index 000000000000..6a29317bdb13
--- /dev/null
+++ b/dev-util/shards/shards-0.6.4.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Dependency manager for the Crystal language"
+HOMEPAGE="https://github.com/crystal-lang/shards"
+SRC_URI="https://github.com/crystal-lang/shards/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+DEPEND="
+ >dev-lang/crystal-0.11.1[yaml]
+"
+RDEPEND="${DEPEND}"
+
+src_install() {
+ dobin bin/${PN}
+ dodoc README.md
+}
diff --git a/dev-util/shards/shards-0.7.1.ebuild b/dev-util/shards/shards-0.7.1.ebuild
new file mode 100644
index 000000000000..38b42f417a5c
--- /dev/null
+++ b/dev-util/shards/shards-0.7.1.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Dependency manager for the Crystal language"
+HOMEPAGE="https://github.com/crystal-lang/shards"
+SRC_URI="https://github.com/crystal-lang/shards/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+DEPEND="
+ >dev-lang/crystal-0.11.1[yaml]
+"
+RDEPEND="${DEPEND}"
+
+RESTRICT=test # missing files in tarball
+
+src_install() {
+ dobin bin/${PN}
+ dodoc README.md
+}
diff --git a/dev-util/shc/Manifest b/dev-util/shc/Manifest
new file mode 100644
index 000000000000..6bbb7d6c5447
--- /dev/null
+++ b/dev-util/shc/Manifest
@@ -0,0 +1,5 @@
+DIST shc-3.8.9.tgz 20536 SHA256 ef7bbf1252c9c791f711782870d00d6f19c42c08e0ee57e9a04d0e2b3d114d40 SHA512 e8a4f9b0ef6e90fc99ebeeb0af36b89d1020209429c9651a036ab1f51a293d9faa3b775b7f040e91997b6ff5a487cb45943fc3548fa6fa3e7282e0d6f74d2cd4 WHIRLPOOL 07e0144fb58deeb205ea108ee79b451b1456351970f7a1e90cbe52bb7463578161c18a1a6028298309fba454456703a1df97a29ca6e56074695831ff8dc6488d
+EBUILD shc-3.8.9.ebuild 825 SHA256 d49cad1d7b1b789187668780abd0818a715bb43be9fcd94f8d9b6eeab7887633 SHA512 048acb29321004230fb3da0713b4879d1c672633fe45212cef21ab72e3a9d9b55e2444449e1a25a333134f185b05641ea2393a475cef3b403666b7086c83168f WHIRLPOOL db984517a081bbdad82be83cc633e5625fe40eb9709ab8e10f1de99b6aea4ae4c83273c39c19049d582edff9ccb0eea5cb76320bb244295bf84cf2e6418f700d
+MISC ChangeLog 2164 SHA256 6cf15f5f7654c3647539e90f74d83f0e41c589b8f12509716fb2724bf03a662d SHA512 112d0de517b62cc5bf528b9f837f5630d976fc8f233cd30b74998106e64b765d63c4c6cb1deafdd28f72a01b054ae654f6250975476ec11b0c72e31f88e6f032 WHIRLPOOL 52d4f28cef00b1bc3d82b368d8ce3f6a669bb62ac3844985fd005391942109b3ddea37a359271790ebc1dc7d123ebfe4f76a798c601ecff934667cf498419c02
+MISC ChangeLog-2015 3748 SHA256 b403a399571941d98c420606fcfa201cc537b4359316cbe39236d9d74a71f6ea SHA512 838dd7f05d4f0391548f089908ea4c7ff3a6e47d29526e801c428be6236558d3085e281b50a9cc08d61b97b4d0bd849b2924e2238511f6be4d15b7d0e2982389 WHIRLPOOL b660cf0152d04a8af2085b9e966ff69fa2d3973210d21e3d1016ecbdae44620822de74fc734f0b004a4968d88c3983064b4edeb935423b2cba3c5b1e8704c67b
+MISC metadata.xml 341 SHA256 e311e5b51aa828b9ede9eced62197857dabbc3d34d08857bcc251d494a972e52 SHA512 f5b2c355996851ad7c34e40f762e636295581148806b5a6129e79d39c564dcd16a8281b289598204048ca53c30b3f5efdea7f393e6ac47008d9a8af9bb54fe2b WHIRLPOOL 8a9a02ad5dd64d028f49d748d26d1ea9b68a2c48f6c2eeff905b1bc8ff12a3346085ee00910c219a27ba938cd146cb5344337a557b9ece8732f8532928ae63f3
diff --git a/dev-util/shc/metadata.xml b/dev-util/shc/metadata.xml
new file mode 100644
index 000000000000..e057d190bf73
--- /dev/null
+++ b/dev-util/shc/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>pinkbyte@gentoo.org</email>
+ <name>Sergey Popov</name>
+</maintainer>
+<upstream>
+ <changelog>http://www.datsi.fi.upm.es/~frosal/sources/CHANGES</changelog>
+</upstream>
+</pkgmetadata>
diff --git a/dev-util/shc/shc-3.8.9.ebuild b/dev-util/shc/shc-3.8.9.ebuild
new file mode 100644
index 000000000000..78178e4f1ae1
--- /dev/null
+++ b/dev-util/shc/shc-3.8.9.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+
+inherit toolchain-funcs
+
+DESCRIPTION="A (shell-) script compiler/scrambler"
+HOMEPAGE="http://www.datsi.fi.upm.es/~frosal"
+SRC_URI="http://www.datsi.fi.upm.es/~frosal/sources/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha amd64 ppc ~sparc x86"
+IUSE=""
+
+RESTRICT="test"
+
+src_prepare() {
+ # respect LDFLAGS
+ sed -i makefile -e 's:$(CC) $(CFLAGS):& $(LDFLAGS):' || die
+ # fix source file name wrt bug #433970
+ mv {${P},${PN}}.c || die
+}
+
+src_compile() {
+ ## the "test"-target leads to an access-violation -> so we skip it
+ ## as it's only for demonstration purposes anyway.
+ emake CC=$(tc-getCC) CFLAGS="${CFLAGS}" shc
+}
+
+src_install() {
+ dobin shc
+ doman shc.1
+ newdoc shc.README README
+ dodoc CHANGES
+}
diff --git a/dev-util/shellcheck/Manifest b/dev-util/shellcheck/Manifest
new file mode 100644
index 000000000000..a87e3f8f7653
--- /dev/null
+++ b/dev-util/shellcheck/Manifest
@@ -0,0 +1,9 @@
+DIST ShellCheck-0.4.4.tar.gz 105979 SHA256 6cc50790d25b6f330037c3612c21460aa75839cc32c65e10ea6b35f9f4488768 SHA512 2b78f167932b2f7880ccb892fb89923a23eb5a885ba4d2ce892e14214ee4df0a86d4110af64ee49e45b39347dd140d6d6646ca34bc7bdb4ce3f6c9ec0e5960a8 WHIRLPOOL 0ea00dcddc9a710a79df2e5cc2fb322ede95b608fc311a64279fc18afe404897e99f562a03b8f8c6c35e5d91339f1bddc828a256e5f4e9befd118936a7c7579f
+DIST ShellCheck-0.4.5.tar.gz 109721 SHA256 53039ac314b99af691a99aec111572ee51b0579280c7fa5795ac48d0c4e02fa7 SHA512 eb6e286de762e73f1916add169176d3347bc489504be848859c88acba93e02c4bfc7e75725fe3fcf041a7c2082a31f26245831126c8c9fb1b91e3e1ecd959ebc WHIRLPOOL 74fb725b1b829fda5e75265ee364134cb3612a8de2970544d715e87178a5b7cc394ed26092ab0a57515c07ff36ca6cb0ec1c13e11c9e8b4952c2a93e0d33c04d
+DIST ShellCheck-0.4.6.tar.gz 116618 SHA256 11eb9b2794363fbccc6fbd18601db49680e2c439440a9b103eebfda1aa86b1bc SHA512 b053a7f581d73f1e5be51046f2fd77f6e7452acecf841321ef363156a5f72d98c13a723885d1888ab366550625e05396ca207925539fec1d70a00212af920ca5 WHIRLPOOL a4d2a01a52a17b9033ac3cc7bd96bd18ee9b260a895f4237bc03e44a7b9821e863c6d73834997deb44a9aea294b4a7d50cd61f5a0fe377ddf59870a4ae2509e5
+EBUILD shellcheck-0.4.4.ebuild 863 SHA256 316fd9d9ada4c5e104d7bc32955ae85ca1d5d9e65a525d06a6c4aa6aed9c1aaf SHA512 7fb8f3028c5f941f04489316d6c0dfb729b3ea0f8ebb0af4110435407d3e47ea70020ea73b400ecd6d975f3d2505b95cbfa9ec61ef3b9cb56c22c561cc89bf1b WHIRLPOOL ec3ba5912f0bf771321e19dd584b45d53a09e088c197e554e072617a449a3a38990972a1967046e9ae8335c1c71f6bdc25c91dd3727817d641f524fdcbb27d09
+EBUILD shellcheck-0.4.5.ebuild 859 SHA256 1a3ae5320e7615dadd436db4b3f0224ea6c3a03841a797b69b7b956a0760b9d1 SHA512 79c4d7593d9a0d29785a5ff94f94cbfe487cf47ec814e878b0d07004cb87f109a1ca6770c6f9291dcbf463ff9ef1527778948464f56fe82ed8fd58c85985bcf7 WHIRLPOOL 1968f0d48140192923952806c942e0cb8d4b4b0f6a41c18e6a20f6ed5f120c848f93f9e3c2c84a668444fc17891aeb8dc37fc784e70fc17c6e58fd93172d3a61
+EBUILD shellcheck-0.4.6.ebuild 859 SHA256 b667d9540e443f0e22bf72c9ac4636f77e746b3dc37dff80209920cb6527374f SHA512 6bbeb59349d018d45f9606683c723809a84aae507b9bae3b913ef53c163314dfbd30cf6632b18839266089551f4f4b8bb29356850c72d5577f0bed2cc251d022 WHIRLPOOL 7b5369c80cee4af29fe9f50062f29d9bb2cb14393f4df43cd51cf1675b31c38370474d29b7cdc9a531419ba2461c20feefd562804a66474d18090dd208dcf816
+MISC ChangeLog 4338 SHA256 d569a089014761a24728ee83e1087bb556af7aa59990fbc12a7d2554b6d479da SHA512 4a5642bf493640c96acb08d514f20f37ae70a5235f558bba44408ad6d408bf83ebeef82bb727de05d2ff5dccee4bab3a7564f2a699f2b7ee5b84dd4afc326f9f WHIRLPOOL 7563f14b4b7ba56b20ac9e8b0c511c39a62fb1b3bc6f802aef9d92959eb0773f1e21df52523c9e8cdb0c429ef2ae69bfbc02c429b6168c1f4a3646327e453de7
+MISC ChangeLog-2015 1080 SHA256 7b344b6252be9366eb50c4ece5a1f7e6682e2016a2b7e12b44a1829d621c278b SHA512 acdd26d91fc4013efec3d3f05ac2c5d13cd0c9a302138e7d70ac29b83189e1ee78a6220912e9bae8d42bfaf9493e3ec212920b22d742ba557a187ed905722cc3 WHIRLPOOL eb526878045e6566d178f3646d44c17586c2402009083772304633185551d4c3b57b5d7a9cdf41e0b58ae8231163162e764b31b56c109607a5c37812fb855af4
+MISC metadata.xml 354 SHA256 9d45542b82f65ca9484868584cc8b9cd66fa78d1a1dc82f2db3db957f47c7c76 SHA512 033d85c60d488513cec6cbd63c406ff12882909629acd2417e4d0b1e2046ff9aebda7dcca7b95ee144deb3d876ccc422211cc31eb259f306deb35938b56183af WHIRLPOOL bc527772ec01aed8854f9f57436ac0dd2f6eb7ee3e4e3932d1e46e692ec597fc4b396b3f9cd2fd1a57ca45e6e278bb8816fb7c3e79adff707db2751b24d59117
diff --git a/dev-util/shellcheck/metadata.xml b/dev-util/shellcheck/metadata.xml
new file mode 100644
index 000000000000..c120a64c1f9e
--- /dev/null
+++ b/dev-util/shellcheck/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>jlec@gentoo.org</email>
+ <name>Justin Lecher</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>haskell@gentoo.org</email>
+ <name>Gentoo Haskell</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-util/shellcheck/shellcheck-0.4.4.ebuild b/dev-util/shellcheck/shellcheck-0.4.4.ebuild
new file mode 100644
index 000000000000..22146ef9d1cb
--- /dev/null
+++ b/dev-util/shellcheck/shellcheck-0.4.4.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+# ebuild generated by hackport 0.5.9999
+
+CABAL_FEATURES="bin lib profile haddock hoogle hscolour test-suite"
+inherit haskell-cabal
+
+MY_PN="ShellCheck"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Shell script analysis tool"
+HOMEPAGE="http://www.shellcheck.net/"
+SRC_URI="mirror://hackage/packages/archive/${MY_PN}/${PV}/${MY_P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="dev-haskell/json:=[profile?]
+ >=dev-haskell/mtl-2.2.1:=[profile?]
+ dev-haskell/parsec:=[profile?]
+ >=dev-haskell/quickcheck-2.7.4:2=[template_haskell,profile?]
+ dev-haskell/regex-tdfa:=[profile?]
+ >=dev-lang/ghc-7.4.1:=
+"
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-1.8
+"
+
+S="${WORKDIR}/${MY_P}"
+
+src_install() {
+ cabal_src_install
+ doman "${PN}.1"
+}
diff --git a/dev-util/shellcheck/shellcheck-0.4.5.ebuild b/dev-util/shellcheck/shellcheck-0.4.5.ebuild
new file mode 100644
index 000000000000..19f437b98c86
--- /dev/null
+++ b/dev-util/shellcheck/shellcheck-0.4.5.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+# ebuild generated by hackport 0.5.9999
+
+CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite"
+inherit haskell-cabal
+
+MY_PN="ShellCheck"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Shell script analysis tool"
+HOMEPAGE="http://www.shellcheck.net/"
+SRC_URI="mirror://hackage/packages/archive/${MY_PN}/${PV}/${MY_P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="dev-haskell/json:=[profile?]
+ >=dev-haskell/mtl-2.2.1:=[profile?]
+ dev-haskell/parsec:=[profile?]
+ >=dev-haskell/quickcheck-2.7.4:2=[template_haskell,profile?]
+ dev-haskell/regex-tdfa:=[profile?]
+ >=dev-lang/ghc-7.4.1:=
+"
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-1.8
+"
+
+S="${WORKDIR}/${MY_P}"
+
+src_install() {
+ cabal_src_install
+ doman "${PN}.1"
+}
diff --git a/dev-util/shellcheck/shellcheck-0.4.6.ebuild b/dev-util/shellcheck/shellcheck-0.4.6.ebuild
new file mode 100644
index 000000000000..0d6b3a6027ce
--- /dev/null
+++ b/dev-util/shellcheck/shellcheck-0.4.6.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+# ebuild generated by hackport 0.5.9999
+
+CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite"
+inherit haskell-cabal
+
+MY_PN="ShellCheck"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Shell script analysis tool"
+HOMEPAGE="http://www.shellcheck.net/"
+SRC_URI="mirror://hackage/packages/archive/${MY_PN}/${PV}/${MY_P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="dev-haskell/json:=[profile?]
+ >=dev-haskell/mtl-2.2.1:=[profile?]
+ dev-haskell/parsec:=[profile?]
+ >=dev-haskell/quickcheck-2.7.4:2=[template_haskell,profile?]
+ dev-haskell/regex-tdfa:=[profile?]
+ >=dev-lang/ghc-7.4.1:=
+"
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-1.8
+"
+
+S="${WORKDIR}/${MY_P}"
+
+src_install() {
+ cabal_src_install
+ doman "${PN}.1"
+}
diff --git a/dev-util/shelltestrunner/Manifest b/dev-util/shelltestrunner/Manifest
new file mode 100644
index 000000000000..456a1630c143
--- /dev/null
+++ b/dev-util/shelltestrunner/Manifest
@@ -0,0 +1,8 @@
+DIST shelltestrunner-1.3.4.tar.gz 21331 SHA256 1eeb0cb74e39c30289106af41bc4f7f88c9be6c241339aab32b1a49d1215ddbd SHA512 b46e5e2456573b06f6958076a001be3fd65471dc6c89b78700f1d77870bb3844e89e9cec98ad2a146554f19550891c2f3c6bd150b8ee8d0b20d9cd3b34f55753 WHIRLPOOL 38aaf46b929401ebc1f6a6c6c8888a8c734765e70eef66ebcf8ee09fdcc7ece942e760f18e1584305cb0e9ec0c8a632043b8e66eeabd8523ca4a01a8017ddabc
+DIST shelltestrunner-1.3.5.tar.gz 21428 SHA256 4265eb9cc87c352655099da26f49fb7829f5163edd03a20105b7a25609d3a829 SHA512 f0cc03c41fe176ddfd0e498121f5ebafda721b93e9a84f320b445bf797022545e1046ffb3814e2eaac72f0975a2a11fb1de5e0a007c5700de028e57ee66fa093 WHIRLPOOL af23b0af0c391843df2f83beb854caeded4ff043065690de9e0824a94f6b97fc2878a84d1140d5beb775d3184491428c11c0dfae4743a3a648bb1623b0e82287
+EBUILD shelltestrunner-1.3.4.ebuild 978 SHA256 05671837af1a0201cb3c6053af0a0418c5a4fb38d775e9c2e802459b766abb98 SHA512 ad9ed06d115b4010ed62ba9cf21dff7c5140f623d23091ac434eb1c3faeaab9aeb7bd15a4bbb566a5edafec0f5274dfb592825c4f15e02fca30963c10092d243 WHIRLPOOL e12e7778fe3688f76876bc32987ebc37ee3bbbaa8a9136b4823dc0d9c23eebc2e99e18970da8b5731c316be059355ebc741d830f971d415cc10aac671ca2564e
+EBUILD shelltestrunner-1.3.5-r1.ebuild 1202 SHA256 72e13bf2d692bafc793597bb1e405f8942f34f65384c5f6e584678dbf1719ba3 SHA512 92cb13a0627f1981d0cbe1e9a68e540758cfc88c410afca940c0e80627cd7c206443923a7ea51c254d6d74276bbd4d61432b6744c48206f6be609410bc31a776 WHIRLPOOL 867aff5426444c00b04d3f6126dd4f20e96b0513cc2d9fd93bfd98adc3b38e3764934e68f024d965b3d6212112727e5ebcf0103b36f17ca311c54d320ef20fb3
+EBUILD shelltestrunner-1.3.5.ebuild 1068 SHA256 6e98fee20dfe0c32fd047bc44d1943e643345e42b67ef093852d7592b888f342 SHA512 5ade6d8a933e07a444ea97f49b341284d93f266aa33b98564c7f595c6713e32996e471c9e026f6acf4c70542170d1186aabc9927530636bd2a6bfdbfe9ad5190 WHIRLPOOL 2484fd64c86878e511d27b5ae05347207fbf4048f0841a2a83ba9c5d8701669ed94d91c9b89b94fe2529b3a6c8523a46e973d3f8f729299f050a2b5daee5ad8b
+MISC ChangeLog 3328 SHA256 dee356c16d63e64a3f8ffe1c4e256ec3be8b486fa11919425222112d0e255355 SHA512 709d97eda9e61fa8ab950680b15c637827d2de1b507cdfc23685aef7e9f54237cb05aa5f8d6d2646e514bf473586dec9a88c6d35a3f6061749f4050be6476716 WHIRLPOOL 824774acdc22d115df835c4bef9e18b3ecf36178c8096b893ac461ec5b71437bfece8acbcfa1bbf7c2dae56d953eb1135084e29d6f75a3fdf49c0873caab9e1f
+MISC ChangeLog-2015 540 SHA256 fd34cba888cc432734314369369667fccd36a97ec5f807db4206fa19e8143064 SHA512 03b01c2f66d93d192df57475c98c082c1e877098e71ea2dc87672cec3b18f47cfcb265663ecbfcad69cc89c5c03c464766645558a9a9f1a3723bc3cb630c027a WHIRLPOOL 0f16ecc2e4f57c05d2ab3b42a26180608e5da7eabf64a350de5e74f9e96b259e2926cf446d3117715b93fa7a9d201784bc1b79b67a102927b653030cd091efcb
+MISC metadata.xml 635 SHA256 ebf9fdf263b41470a50d174ca009015e0c276bab96668ec1db300589cd058335 SHA512 a398308f38fffe954bdcb052e6b22997442c2a303896790c643e3e95cc38976f2d5b8fb9d08a713411fd5ec0aca2d2904a5a388276d69ad132e8780115bac6f8 WHIRLPOOL c19482dd310b697e0c93aefb28601b9a4f66796504fd27ae2951654fc442a93b66d353ffc1b34042a1ef0003b69068318418d5cc6c16b22b5b5788ca41344110
diff --git a/dev-util/shelltestrunner/metadata.xml b/dev-util/shelltestrunner/metadata.xml
new file mode 100644
index 000000000000..bc1b5fecdb56
--- /dev/null
+++ b/dev-util/shelltestrunner/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="project">
+ <email>haskell@gentoo.org</email>
+ <name>Gentoo Haskell</name>
+ </maintainer>
+ <longdescription>
+ shelltestrunner is a cross-platform tool for testing command-line
+ programs (or arbitrary shell commands.) It reads simple declarative tests
+ specifying a command, some input, and the expected output, error output
+ and exit status. Tests can be run selectively, in parallel, with a
+ timeout, in color, and/or with differences highlighted.
+ </longdescription>
+</pkgmetadata>
diff --git a/dev-util/shelltestrunner/shelltestrunner-1.3.4.ebuild b/dev-util/shelltestrunner/shelltestrunner-1.3.4.ebuild
new file mode 100644
index 000000000000..d4035c20b502
--- /dev/null
+++ b/dev-util/shelltestrunner/shelltestrunner-1.3.4.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+# ebuild generated by hackport 0.4.9999
+
+CABAL_FEATURES="bin"
+inherit haskell-cabal
+
+DESCRIPTION="A tool for testing command-line programs"
+HOMEPAGE="http://joyful.com/shelltestrunner"
+SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=""
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-1.6
+ >=dev-haskell/cmdargs-0.7 <dev-haskell/cmdargs-0.11
+ >=dev-haskell/diff-0.2.0 <dev-haskell/diff-0.4
+ >=dev-haskell/filemanip-0.3 <dev-haskell/filemanip-0.4
+ <dev-haskell/hunit-1.3
+ <dev-haskell/parsec-3.2
+ >=dev-haskell/regex-tdfa-1.1 <dev-haskell/regex-tdfa-1.3
+ >=dev-haskell/test-framework-0.3.2 <dev-haskell/test-framework-0.9
+ >=dev-haskell/test-framework-hunit-0.2 <dev-haskell/test-framework-hunit-0.4
+ >=dev-haskell/utf8-string-0.3.5 <dev-haskell/utf8-string-0.4
+ >=dev-lang/ghc-7.4.1
+"
diff --git a/dev-util/shelltestrunner/shelltestrunner-1.3.5-r1.ebuild b/dev-util/shelltestrunner/shelltestrunner-1.3.5-r1.ebuild
new file mode 100644
index 000000000000..217aa1e52dda
--- /dev/null
+++ b/dev-util/shelltestrunner/shelltestrunner-1.3.5-r1.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+# ebuild generated by hackport 0.4.5.9999
+
+CABAL_FEATURES="bin"
+inherit haskell-cabal
+
+DESCRIPTION="A tool for testing command-line programs"
+HOMEPAGE="http://joyful.com/shelltestrunner"
+SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND=">=dev-haskell/cmdargs-0.7:= <dev-haskell/cmdargs-0.11:=
+ >=dev-haskell/diff-0.2.0:= <dev-haskell/diff-0.4:=
+ >=dev-haskell/filemanip-0.3:= <dev-haskell/filemanip-0.4:=
+ dev-haskell/hunit:=
+ <dev-haskell/parsec-3.2:=
+ >=dev-haskell/pretty-show-1.6.5:=
+ >=dev-haskell/regex-tdfa-1.1:= <dev-haskell/regex-tdfa-1.3:=
+ dev-haskell/safe:=
+ >=dev-haskell/test-framework-0.3.2:= <dev-haskell/test-framework-0.9:=
+ >=dev-haskell/test-framework-hunit-0.2:= <dev-haskell/test-framework-hunit-0.4:=
+ >=dev-haskell/utf8-string-0.3.5:= <dev-haskell/utf8-string-1.1:=
+ >=dev-lang/ghc-7.4.1:=
+"
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-1.6
+"
+
+src_prepare() {
+ cabal_chdeps \
+ 'HUnit < 1.3' 'HUnit' \
+ 'process < 1.3' 'process'
+}
diff --git a/dev-util/shelltestrunner/shelltestrunner-1.3.5.ebuild b/dev-util/shelltestrunner/shelltestrunner-1.3.5.ebuild
new file mode 100644
index 000000000000..e570b6f65de8
--- /dev/null
+++ b/dev-util/shelltestrunner/shelltestrunner-1.3.5.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+# ebuild generated by hackport 0.4.5.9999
+
+CABAL_FEATURES="bin"
+inherit haskell-cabal
+
+DESCRIPTION="A tool for testing command-line programs"
+HOMEPAGE="http://joyful.com/shelltestrunner"
+SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=">=dev-haskell/cmdargs-0.7:= <dev-haskell/cmdargs-0.11:=
+ >=dev-haskell/diff-0.2.0:= <dev-haskell/diff-0.4:=
+ >=dev-haskell/filemanip-0.3:= <dev-haskell/filemanip-0.4:=
+ <dev-haskell/hunit-1.3:=
+ <dev-haskell/parsec-3.2:=
+ >=dev-haskell/pretty-show-1.6.5:=
+ >=dev-haskell/regex-tdfa-1.1:= <dev-haskell/regex-tdfa-1.3:=
+ dev-haskell/safe:=
+ >=dev-haskell/test-framework-0.3.2:= <dev-haskell/test-framework-0.9:=
+ >=dev-haskell/test-framework-hunit-0.2:= <dev-haskell/test-framework-hunit-0.4:=
+ >=dev-haskell/utf8-string-0.3.5:= <dev-haskell/utf8-string-1.1:=
+ >=dev-lang/ghc-7.4.1:=
+"
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-1.6
+"
diff --git a/dev-util/shflags/Manifest b/dev-util/shflags/Manifest
new file mode 100644
index 000000000000..f790348c9c77
--- /dev/null
+++ b/dev-util/shflags/Manifest
@@ -0,0 +1,5 @@
+DIST shflags-1.0.3.tgz 43549 SHA256 956a14771230760e24fa6ad5692bf858d1c9ee2d314320091fd045181cec8a22 SHA512 993f5b274855d5dea5d01d3a799cfd5ff6c5ff2bf153461983052a78d8a96f9b0ee44124b4c51977baa4905c86a3293778c5d7e154305ee051fcac03f6fe70cc WHIRLPOOL 90e7112e6087c50b502be35d6e665ccaa2e47e7619842a46c136dc4106fa9e7a0b986a0da7f316bf29ec00a1724c1dcc0dbc76a4194d5262eeabd93742d795c1
+EBUILD shflags-1.0.3.ebuild 631 SHA256 4b64f6fdbc4bea4e5e424a24bbabc15bf030b31fc22769b34da6112afdc1c3bc SHA512 e9cc2545163784ea9d1c9a1d6cddb3a0988a339d15090ad668156c4c398f35c1f699f8f3b34a1db8b29d16511ca661160f07b5ed58d58397a29ccf9afcdf5793 WHIRLPOOL 3281feb2ad497dc7ee1a781a1b73cac98dccfb152e14e1e97947c4be9dbae508727e2ea77d8b090930475a1f1f9dfca19426482e9425e46f986993c9d4146b0b
+MISC ChangeLog 3056 SHA256 baeafcae43c11bb831baf26d43c954007135df870258ea225dbf1c9c555dfb69 SHA512 0bf1a05291f131a2170c89d81d2fe3f175730a46c5ded93560f741b792e9265d5c6a86b037d64d0f6924f4f394e189effd5f2fb0c6968f06721c25f6b393025a WHIRLPOOL 5d3f2973e5e62287bda7f36ba948589edd71e2063ee9b682621caa6b5b2aee18248739f518a1f1008fe18aed2bd7ae09e327de92a54b9b3c3468b61291b54398
+MISC ChangeLog-2015 694 SHA256 3b153d12cae3ad0fcd2bb8ef9a64a5dcf5b8ec1139cc2d5c7bf35a9d7858ca11 SHA512 bfccca82336eda21ab5b9ddf6d0df6b5e971767206d781370687ba5a58628a8dbf0163ac116c85911629e65e7d64bac5d7ef7214994bf3b06c313ad7b2fe89cb WHIRLPOOL 7de5e5df66d882060cffb235192dc17a89c24a95273c8db6da1c3790c0bcbe784ce54d05070041876578803a67e0e9e0ebe5002a31a21f24f2b91877d61393a3
+MISC metadata.xml 473 SHA256 71ae4b1d66c93c3f00e0b025db132e5202136afec84602c8bc5041552f1c58ec SHA512 04b4fe8bd3c81abb5e11ec1171cfd8d28f2dc56912bd8fa28d4ea6bcbec7a69642b8d0c412ac88b34f21fdc20a0e63bcf73d8fc743f8f38e801f6c7f5e36ef91 WHIRLPOOL 826ac1543ad7355fb199cbf4e307bb55c1c2cd053c3c30e2f76421a5c671a7b2a429e0390aaf9dfebb04a8d53d59a750c8ee025dc08fe7c182b9792e98f809fd
diff --git a/dev-util/shflags/metadata.xml b/dev-util/shflags/metadata.xml
new file mode 100644
index 000000000000..85002b3b83fe
--- /dev/null
+++ b/dev-util/shflags/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>vapier@gentoo.org</email>
+ </maintainer>
+ <maintainer type="project">
+ <email>shell-tools@gentoo.org</email>
+ <name>Gentoo Shell Tools Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="google-code">shflags</remote-id>
+ <remote-id type="github">kward/shflags</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/shflags/shflags-1.0.3.ebuild b/dev-util/shflags/shflags-1.0.3.ebuild
new file mode 100644
index 000000000000..a1bba5a8346f
--- /dev/null
+++ b/dev-util/shflags/shflags-1.0.3.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+DESCRIPTION="Command-line flags module for Unix shell scripts"
+HOMEPAGE="https://github.com/kward/shflags"
+SRC_URI="https://github.com/kward/shflags/archive/${PV}.tar.gz -> ${P}.tgz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86"
+IUSE="examples"
+
+src_test() {
+ cd src || die
+ ./shflags_test.sh || die
+}
+
+src_install() {
+ dohtml README.html
+ dodoc README.txt doc/*.txt
+ insinto /usr/share/misc
+ doins src/shflags
+ use examples && dodoc examples/*.sh
+}
diff --git a/dev-util/shtool/Manifest b/dev-util/shtool/Manifest
new file mode 100644
index 000000000000..11116d5c1e93
--- /dev/null
+++ b/dev-util/shtool/Manifest
@@ -0,0 +1,5 @@
+DIST shtool-2.0.8.tar.gz 97033 SHA256 1298a549416d12af239e9f4e787e6e6509210afb49d5cf28eb6ec4015046ae19 SHA512 f0c9292e8d980323d587b70e582574ba1cfe3c26296a01d51a2068a7886e5b1f501e8c5dc37b5d4b0f7a34217c7ad7f6f3011969d9c2d65776fe66e8287c1758 WHIRLPOOL d7c161a7b4492df79a0d1c20ee6bc25f920fd3bdf198dea46a0978121c8a128ce758af45c836f8e0b59b16dfa670ce03fc57ee073d2c69402abbc2a969ae38c9
+EBUILD shtool-2.0.8-r1.ebuild 493 SHA256 7a5caa4f79620c412c65c5fc50be66e2c4163de84886dc082f28287080e596d6 SHA512 7e90ec080098b959083e81625579519991f38e83179d57e65f1eb866b120a15c0f2d048308853dca952b35ac983e930cb8cfa8833765059fb00166a409235d2b WHIRLPOOL 3d096a090c8e1b813d735557b75c7df51f4682fa324f03e86c2b74010b682600f26b0b68904d64f18d570a55c388e4e498f076c41c2ea3711b17d35e78cefe8b
+MISC ChangeLog 3387 SHA256 992fc6b8699e6d0f8284aae986456caa751abd2bea80076c6f88a2adcf2457c1 SHA512 6eb304e6f9bb066dccce4e90c94e3f90a050d75dec339aeb4042933b1d412302f2422fb5cacc980adf44566b99d9be5c04f82879c2bd38f4942f4c59573cf7e1 WHIRLPOOL e59f89c0caeee53d00fd82704340be5cd2474100b17d9b682d27109cc748814af6a8eb2062fe2081cc1bcdd183657f1c8f84e4ebc37e121289aac35f0fd54a29
+MISC ChangeLog-2015 4021 SHA256 4bf4692143f9c41678decc2476b9fe2d0777fbbf8605f8f62099ca9157db8701 SHA512 9e6c68559022b6d2ab75a3335fd17fc78744ccff552c5f57aa5f5528aa9987c4d38fad5e778471d7662ebe998baa6fb6c3ee277366315eacc65a41a50b1a7150 WHIRLPOOL 80c11185c48f29f7f523b7e8a01d59ed3cac5235c59b3706a2c9f319f1ab80d87c7104f5b9817e92f3650a8e7c23a00f044f7adbdc097794bec6eff168360249
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/dev-util/shtool/metadata.xml b/dev-util/shtool/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/dev-util/shtool/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/dev-util/shtool/shtool-2.0.8-r1.ebuild b/dev-util/shtool/shtool-2.0.8-r1.ebuild
new file mode 100644
index 000000000000..6fc14e68ba45
--- /dev/null
+++ b/dev-util/shtool/shtool-2.0.8-r1.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Set of stable and portable shell scripts"
+HOMEPAGE="https://www.gnu.org/software/shtool/shtool.html"
+SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 arm hppa ia64 ppc s390 sh sparc x86"
+IUSE=""
+
+DEPEND="dev-lang/perl"
+
+src_install () {
+ emake DESTDIR="${D}" install
+ dodoc AUTHORS ChangeLog README THANKS VERSION NEWS RATIONAL
+}
diff --git a/dev-util/shunit2/Manifest b/dev-util/shunit2/Manifest
new file mode 100644
index 000000000000..fc0c8eedee42
--- /dev/null
+++ b/dev-util/shunit2/Manifest
@@ -0,0 +1,5 @@
+DIST shunit2-2.1.6.tgz 61558 SHA256 65a313a76fd5cc1c58c9e19fbc80fc0e418a4cbfbd46d54b35ed5b6e0025d4ee SHA512 c78cf349d72a9048e4932108a62b2d1873019b9b1909c3fb1bd7e873e7bb62df58c1941d916508dc60ef6ba0261a2bc6ee9e25d654eefdcce997682f2bc748d7 WHIRLPOOL f20154214fa08db98ad6ffaef39b555079f1dd17cc04b3c15f206a4ae690b55a8dbff582c5440c232920dbb4013c0b292f9fe15aa7dcc64fb1a99e51189ddd92
+EBUILD shunit2-2.1.6-r1.ebuild 547 SHA256 d36f27a61a1b0ea32adb988f18a8b89bdb1c38fb270f4cb36c97898b67184696 SHA512 617fdbc114ac334c52fbfa0d5580a062799f8aebf03a16398ef786f8ffd28140273161d18b468665f8dd2ccce93d43d93c10f1170c8e6d8573ce8124935b8251 WHIRLPOOL d29d55a0d334ac603ebdf0123d45062f7d9528f224e4595d2f5a26ea1156a52133c7340e9594b7164cebda03dd7200bf81524107b9db751eccf57e5d3a1a6a6f
+MISC ChangeLog 3544 SHA256 c3d27b50b22e78266c20986bb8a81c113462a43bbe9cee55155b0daf2303095a SHA512 30ec8f2301b418725fa2f2b90901c7ba37d631f0c452d3f25c3015bf030a76a71cf2ca46aecf2496493e1ef41023d2bf5d6f39f6bec2e546f7cc4b556cf91e23 WHIRLPOOL 975a229d2265b8671cb53290510ba045c3ee3a08fd0540dff6bc7c8f8559be7b30e3318c6baece4fb2627598450aafbfd0ecc32b3cd5074a053bef5aa5afd6a7
+MISC ChangeLog-2015 1349 SHA256 6f16c5cbe73421df61187071d5c2aad6bcd7352d39141b133b07018e76a138fe SHA512 3246c3eea58b0887e5b9fc974853f0c225549c4f8a0ad4c6f1cb41516c61489538b87eed06fa3e86e19920279729296ce26d2753e08da76f5c1fb805125fff9e WHIRLPOOL 088b419987969ed9b3988ab3df6c24afdf9232fdbe5e42920a87c153df80631d16f5a1e285a705a9faf89c19d38f672aaa4caba8f794046221ee6df567a9adb3
+MISC metadata.xml 552 SHA256 6e39f06578beda41c5333385aeeb5c343f444808f85bad882a48d9f9f6dd1c3b SHA512 e414e03b4170cfc183e9cc169e7eeec9fed89b815023e534a691e36ee8278b606c60ff5e9b3768a5f8d570dd7ba9e3a9e22dd8061753be6e6b7fa55ee8a38739 WHIRLPOOL 1f4ebc2994edf1e536476bd6797d321e4a28114ae99fb87d9626e9244b899dbdf2d0aab0df2a538531d230b115c5dba7ba4a7acfc0605d56de3499d2f604772b
diff --git a/dev-util/shunit2/metadata.xml b/dev-util/shunit2/metadata.xml
new file mode 100644
index 000000000000..52490b64142a
--- /dev/null
+++ b/dev-util/shunit2/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <longdescription>shUnit2 is a xUnit unit test framework for Bourne based shell scripts, and
+ it is designed to work in a similar manner to JUnit, PyUnit, etc. If you
+ have ever had the desire to write a unit test for a shell script, shUnit2
+ can do the job.</longdescription>
+ <upstream>
+ <remote-id type="google-code">shunit2</remote-id>
+ <remote-id type="github">kward/shunit2</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/shunit2/shunit2-2.1.6-r1.ebuild b/dev-util/shunit2/shunit2-2.1.6-r1.ebuild
new file mode 100644
index 000000000000..dd75e0e1c249
--- /dev/null
+++ b/dev-util/shunit2/shunit2-2.1.6-r1.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+DESCRIPTION="Unit-test framework for Bourne-based shell scripts"
+HOMEPAGE="https://github.com/kward/shunit2"
+SRC_URI="https://shunit2.googlecode.com/files/${P}.tgz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86"
+IUSE=""
+
+src_install() {
+ dobin src/shunit2
+
+ # For backwards compat to <=2.1.5
+ dosym /usr/bin/shunit2 /usr/share/shunit2/shunit2
+
+ dodoc -r examples
+ dodoc doc/*.txt
+
+ docinto html
+ dodoc doc/*.{html,css}
+}
diff --git a/dev-util/skipfish/Manifest b/dev-util/skipfish/Manifest
new file mode 100644
index 000000000000..45240c00d0ff
--- /dev/null
+++ b/dev-util/skipfish/Manifest
@@ -0,0 +1,5 @@
+DIST skipfish-2.10_beta.tar.gz 243827 SHA256 4b239304974dd0d24b54c11072da8a100c92544348030fbc8271a12d2961e3ae SHA512 a726bb7e53299ae3941c6a1645b89bb0a4c1d8a4ced6154696932d9a4844fc22d0a1f29d9311d083908b640155d65466ffea7b342c1f7c38e2c26f657c393af9 WHIRLPOOL 005204ece9cd7efcb6bc2f2512108d89f7fd1478c18c4246328b562b665e2b96b29d630b20833497c1981d9b20801781b1c04feb244fe00d24aab5b620d31ccc
+EBUILD skipfish-2.10_beta.ebuild 1287 SHA256 85dd5eae3389f23ecc18f6d7c20fe35d214c4478f3b6121bc828f3c93eba519b SHA512 6705b497785661f30b2675093314d856b0785ec14ad22358623a64c55559b0676a048b5a16578cc6dcc1aa29c00acf4fb5062a0b85f93e5222ccc7a46d087428 WHIRLPOOL 8d6702e152f822b7d974e7645d3e7cc368c1f1b35b3907d6c6bdbe687c35e33173f17dd1fb99dcfe5ae49486e30b504174e292dc49c4f86ba9369a629b101ddb
+MISC ChangeLog 2766 SHA256 202f7c136cef00c81119ddd3fb8fda8d0a61a49ba7018b6dfd87fdf5f3f6027d SHA512 1e302fa6438611b43b07b6cb3271023d853ab2930e01d1c51d90077be09c74fae437049705a544ed511b0bf574a2f28e137e29c76b5a2ce910c940b61ed16596 WHIRLPOOL 3824de2606a8a1820d7b9023a3993e73ca3ffedb766fe4eb775992193acf57b329a12951722236644786c994cf42f1fa871bf50cce37e6ac88e3d07e087ca411
+MISC ChangeLog-2015 2419 SHA256 291eeb58f8dd8d4803ef082810932a9aa140aea8af66ce89a1156f842f4cdba1 SHA512 ff54cb4c96c3d0d4ac22c8182d95225e481a3c411d562f3e05e60fdb57223aaf652b8bde4238c9fcf60b3e1330d1cd80f4d054249a7e8f2b8ad1144866f86c33 WHIRLPOOL da0e1cfef823f1ffa654a2eff50ac3de1d3a5906a9161b398e9b0816fbe6a5c81586547678ba50eb8b64c0669bb6179ac23a701d3036977c4a9953bf3387bd2b
+MISC metadata.xml 249 SHA256 7809286fde9ce9043f466221737e9caac3ca456bfd28c27691f0d5b271830a3f SHA512 66df1edc899ada7514e4682ad663bbfc307b526dd7a1c9c2c9492d429fbbb8e220a137de40af26d4d238262888dde0d25f25e5cd5e1a8864454133e5298cf5eb WHIRLPOOL f4273c7e4a6d95952dfc4f5588ed695f8c2fe674c71929e2c39274d38140a72325cc621f085f4e02b90d60423e1d393741ee07cf262e42fd907e88ce9e9f591a
diff --git a/dev-util/skipfish/metadata.xml b/dev-util/skipfish/metadata.xml
new file mode 100644
index 000000000000..3e6841b663b1
--- /dev/null
+++ b/dev-util/skipfish/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-needed -->
+ <upstream>
+ <remote-id type="github">spinkham/skipfish</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/skipfish/skipfish-2.10_beta.ebuild b/dev-util/skipfish/skipfish-2.10_beta.ebuild
new file mode 100644
index 000000000000..81bb804912a3
--- /dev/null
+++ b/dev-util/skipfish/skipfish-2.10_beta.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit toolchain-funcs vcs-snapshot versionator
+
+MY_COMMIT_HASH="093800c9de4116706258982376abce01928a3f7b"
+
+DESCRIPTION="A fully automated, active web application security reconnaissance tool"
+HOMEPAGE="https://github.com/spinkham/skipfish"
+SRC_URI="https://github.com/spinkham/${PN}/archive/${MY_COMMIT_HASH}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0 LGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug"
+
+RDEPEND="dev-libs/openssl:0
+ dev-libs/libpcre
+ net-dns/libidn
+ sys-libs/zlib"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ sed -i \
+ -e '/CFLAGS_GEN/s:-g -ggdb::' \
+ -e '/CFLAGS_OPT/s:-O3::' \
+ Makefile || die
+
+ sed -i \
+ -e "/ASSETS_DIR/s:assets:/usr/share/doc/${PF}/html:" \
+ -e "/SIG_FILE/s:signatures/:/etc/skipfish/signatures/:" \
+ src/config.h || die
+
+ sed -i \
+ -e "s:signatures/:/etc/skipfish/signatures/:g" \
+ signatures/signatures.conf || die
+}
+
+src_compile() {
+ tc-export CC
+
+ local _debug
+ use debug && _debug=debug
+
+ emake ${_debug}
+}
+
+src_install() {
+ dobin ${PN}
+ doman doc/${PN}.1
+
+ insinto /etc/skipfish
+ doins -r signatures
+
+ insinto /usr/share/${PN}/dictionaries
+ doins dictionaries/*.wl
+
+ dohtml assets/*
+
+ dodoc ChangeLog README doc/*.txt
+}
diff --git a/dev-util/smem/Manifest b/dev-util/smem/Manifest
new file mode 100644
index 000000000000..865d8d3203c1
--- /dev/null
+++ b/dev-util/smem/Manifest
@@ -0,0 +1,5 @@
+DIST smem.pl.20071119_p1.bz2 794 SHA256 556300aaf70c1f2472cc36e93ac384f7b8c0bd56c0acfc5cef564cb0260e549f SHA512 452d10b2e3dda5d4167e62e3fd541f89f90cb07c431876e0fb671f30e224b8cd14a0268ab14243342c2188f3d3826e7a8303b3fd2eda393fdc8e31d0f1b1d575 WHIRLPOOL 90c241bcb0736261ad2d2c0b2f02c6c05707aa9940c7f478763d32b017cd583920f89a5e1317616cc7ec9d7b8c98eef2ed5f1e9307fe1352944261c5e1d855d5
+EBUILD smem-20071119_p1.ebuild 528 SHA256 a31d002cc4883a23f153bc959106c4dd9c3eed5bc3041e4822d7f437ebdfeb05 SHA512 a13a0a7d975a61ab4802c30a6edcb34cf70c54ea81bc7b718b7a98f4da5bedccf7fc1a19d2dbf983903eb1d5513ce25a9e2849a58a60704b2167e1098346e1a2 WHIRLPOOL 511eca4835d12db1a89bc098623952323e845b9994f8459230e39500bef73d93d592703086bbf7c79131a428cb7f6af4315a8a17fbb268c5c8cb016e514e9b32
+MISC ChangeLog 2326 SHA256 27e650aa9a104f15ee13c70c938d1c020f3e73afad1e1d72e5ee8e88abf9f3b8 SHA512 db22ed62f116d498d84144d5db166ebbc0b64a11c4fa2f75a8852ed6b7c87773be31b47369f6225d7f8b91d576767e9d48f9f8536942166d1c4d67ecacce42a2 WHIRLPOOL 98867e42129564707ac9afcfee5dea5e63710b584c5fcf00f773bd4abc0d008134ae57f93e7e61c240119535700ec2e002fd2fb861fa707c87870af66e138b20
+MISC ChangeLog-2015 771 SHA256 8073c273ca5fe6d5fcee9946fd63de076d24bbd40a4b9db3c842b00858773439 SHA512 6b1d687247997f0005d6da222b2385637c49ffe10ffc2b82beb0fd878d9a533484be8deaec74147fbc141966719352e9bab3e1eea760d0bca2ea5c3ea933f405 WHIRLPOOL 582cd79723253daa2f64d468f1ecf93c6f2731e2e4c185a22a36fa7c18058879e1ef31b24e8a1e625f6b74a7ddcf8d240a6e137770d7bc0cd920f209dc3fed47
+MISC metadata.xml 139 SHA256 5cdc1888ebc8807b9a37b1d33429c61cabe7415a4f240e21a4c2ff8eca7a34ed SHA512 8be912ace7468a4396eb1da00a9785030a8ce35da4357a01591876a1056fd45e44da65de2af3e1eb0506ce6551714962c40c3ae5a3aefa2ad231de35af2519be WHIRLPOOL 620431014dd4fb752c3d46d11904ecb2c6d4525f5b4e30f4f778a3b74d3f7187ae4ccd856ebd7eabb48ce261b21849c732928fe647edce024a3fdc082d8f8630
diff --git a/dev-util/smem/metadata.xml b/dev-util/smem/metadata.xml
new file mode 100644
index 000000000000..097975e3adc2
--- /dev/null
+++ b/dev-util/smem/metadata.xml
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+</pkgmetadata>
diff --git a/dev-util/smem/smem-20071119_p1.ebuild b/dev-util/smem/smem-20071119_p1.ebuild
new file mode 100644
index 000000000000..8aebbaeaf09f
--- /dev/null
+++ b/dev-util/smem/smem-20071119_p1.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+DESCRIPTION="A tool to parse smaps statistics"
+HOMEPAGE="http://bmaurer.blogspot.de/2006/03/memory-usage-with-smaps.html"
+SRC_URI="mirror://gentoo/smem.pl.${PV}.bz2
+ https://dev.gentoo.org/~tove/distfiles/${CATEGORY}/${PN}/smem.pl.${PV}.bz2"
+
+IUSE=""
+
+KEYWORDS="~amd64 ~x86"
+LICENSE="MIT"
+SLOT="0"
+
+RDEPEND="dev-lang/perl
+ dev-perl/Linux-Smaps"
+
+src_compile() { :; }
+
+src_install() {
+ newbin smem.pl.${PV} smem || die
+}
diff --git a/dev-util/source-highlight/Manifest b/dev-util/source-highlight/Manifest
new file mode 100644
index 000000000000..d594dfa67fd4
--- /dev/null
+++ b/dev-util/source-highlight/Manifest
@@ -0,0 +1,7 @@
+DIST source-highlight-3.1.7.tar.gz 1600692 SHA256 e1b2e007cdd94595393d42510e2a84763c36aad3409f0c3087f05fcb50a389e8 SHA512 4a1e733bd06468e6ebd023dfe4a62d7134c35aac311509a61e8d80de35ff3cea25fb79adb56bfe413ee214bbf4d578b4d4ebdcf1236481d9b83152aff6d7afb8 WHIRLPOOL 3d99a135abef73e865d2729bcbdf47fc7c143aeef91015b73a87d4a129323ca95aac153c3fa7d5207afb2a03ecba2f05db3e3ed8627b1e0477dcd9dfa830bbb7
+DIST source-highlight-3.1.8.tar.gz 1648351 SHA256 01336a7ea1d1ccc374201f7b81ffa94d0aecb33afc7d6903ebf9fbf33a55ada3 SHA512 00a49ab180460750614b38be9a569478d1d34d01f601ebc7452a4fee8475a19faf9bb9fb2f256c6b40d43fbc3d34962a77ba8b9833483345c4e4a42faad6976c WHIRLPOOL a05c3028816d0e0f0236ed18b806ce7f9f8f82be61b142774fe2156543c577bfcd5fb49bb259f03b4e97d5c01b5292e3b82720e29ccafa3a6bd7661f353ade5d
+EBUILD source-highlight-3.1.7-r2.ebuild 1156 SHA256 9f000c1eaa884515fbd7ef9cac72de9eb5ecd38eaec5984d97c763d50e43d49f SHA512 362e3904871945ffee6096e708ee85ae0e7edb749e1755abd260e8e2ca63587d312c4ed271ae61549b55391bcee543a110eb140eb2614ec754c8d9b053b06075 WHIRLPOOL bc3e156e85e3d6c3b0c0461da5419877a6a962a05da6749143250a2036b02fae1e46a9280efbc7e5107a99a5de55a38382cb401dc3a22364a34bbaebd036ac47
+EBUILD source-highlight-3.1.8.ebuild 1275 SHA256 edba0d9846ce853aac2ffc5dc24a6ac6dd20165262f02334b1aec53e82683624 SHA512 b8a514aca099b6378287334e7df0e5849ee80f54e4824f6ff076ab2206f74275cfa07acf2590f5dadedfb8e64b168eb29e74a0243f188ca05ccdc3f20cfbc029 WHIRLPOOL f27c059c8ca43c4a71bfc97cf57dc0a1a4efad2f006e63400cf80217f52de1be9f838849190333c009bf598f976cf93213d49990c0392a3524cbfb321dcda96a
+MISC ChangeLog 2658 SHA256 3ce8341779514bdbd2b350655d0806e56a921b10790c3c1096da9dedcbd05f21 SHA512 fe132fdbb7b7f1dcd3cf6077a0ac1cd03736acd0d5c1beb52861d1aa12de34fbc60fb2e8c3c55d72887b3d86c42170576a8bf0bf0cbaf6e9ca9570f3d99bb559 WHIRLPOOL 110a8acc4f7f162d557464d9288411178b5a67b4960ea41906121aa72bd105447ad40795929adea99ceac6695c497a1a5f7f49d5d61327aabb6c2a1555f45ee7
+MISC ChangeLog-2015 11116 SHA256 a0c4f9c8ad1fd05e3457f5625bd43b3adf5ddd2b35ef60d79c0ae5c9fc334bc1 SHA512 3ee6493d2a3d58a8e59bcc0760c1b8489e66cee03471d03b626bf322a4f9e184f6a725cac64a43c7e49dfb3ad3acfe9fe8f8bb6c207465e9290411e9923cba8b WHIRLPOOL 69b51e97b6eb22a9453649ba283dadbfb0ab585bda0b91076dc7b51a5ca54cde3a05e1a687f38951edd1193a8c726b43134323f6f29a0511611d56cf4f1f6361
+MISC metadata.xml 250 SHA256 e950c68e7a4e72f8096556d6bb21fea300438999061af252e040672516b06351 SHA512 a57d332a86b16f67fe2896c47c6cc9ba57f602b65943080289c816a9d0f70b779f61cde882034cc1c2adda79208865dae0bf43d95deea4556e840b785e062343 WHIRLPOOL 7804a583de98e5ebb9478b76dd2a78071f8fe6973d88692ae4ec9107dd1dd7c54fd11baf66339a9ad4267da708ffaae3d8b1d0bf332db2d5db9feac46b6856f1
diff --git a/dev-util/source-highlight/metadata.xml b/dev-util/source-highlight/metadata.xml
new file mode 100644
index 000000000000..5c23291b5215
--- /dev/null
+++ b/dev-util/source-highlight/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>dev-zero@gentoo.org</email>
+ <name>Tiziano Müller</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-util/source-highlight/source-highlight-3.1.7-r2.ebuild b/dev-util/source-highlight/source-highlight-3.1.7-r2.ebuild
new file mode 100644
index 000000000000..11686c55373a
--- /dev/null
+++ b/dev-util/source-highlight/source-highlight-3.1.7-r2.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+
+inherit bash-completion-r1 versionator
+
+DESCRIPTION="Generate highlighted source code as an (x)html document"
+HOMEPAGE="https://www.gnu.org/software/src-highlite/source-highlight.html"
+SRC_URI="mirror://gnu/src-highlite/${P}.tar.gz"
+LICENSE="GPL-3"
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris"
+SLOT="0"
+IUSE="doc static-libs"
+
+DEPEND=">=dev-libs/boost-1.52.0-r1[threads]
+ dev-util/ctags"
+RDEPEND="${DEPEND}"
+
+src_configure() {
+ econf \
+ --with-boost-regex="boost_regex" \
+ --without-bash-completion \
+ $(use_enable static-libs static)
+}
+
+src_install () {
+ DOCS="AUTHORS ChangeLog CREDITS NEWS README THANKS TODO.txt"
+ default
+
+ use static-libs || rm -rf "${D}"/usr/lib*/*.la
+
+ dobashcomp completion/source-highlight
+
+ # That's not how we want it
+ rm -fr "${ED}/usr/share"/{aclocal,doc}
+ use doc && dohtml -A java doc/*.{html,css,java}
+}
+
+src_test() {
+ export LD_LIBRARY_PATH="${S}/lib/srchilite/.libs/"
+ default
+}
diff --git a/dev-util/source-highlight/source-highlight-3.1.8.ebuild b/dev-util/source-highlight/source-highlight-3.1.8.ebuild
new file mode 100644
index 000000000000..26e96bfbcc65
--- /dev/null
+++ b/dev-util/source-highlight/source-highlight-3.1.8.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit bash-completion-r1 flag-o-matic
+
+DESCRIPTION="Generate highlighted source code as an (x)html document"
+HOMEPAGE="https://www.gnu.org/software/src-highlite/source-highlight.html"
+SRC_URI="mirror://gnu/src-highlite/${P}.tar.gz"
+LICENSE="GPL-3"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris"
+SLOT="0"
+IUSE="doc static-libs"
+
+RDEPEND=">=dev-libs/boost-1.62.0:=[threads]
+ dev-util/ctags"
+DEPEND="${RDEPEND}"
+
+src_configure() {
+ # required as rev-dep of dev-libs/boost-1.62.0
+ # https://wiki.gentoo.org/wiki/Project:C%2B%2B/Maintaining_ABI
+ append-cxxflags -std=c++14
+
+ econf \
+ --with-boost-regex="boost_regex" \
+ --without-bash-completion \
+ $(use_enable static-libs static)
+}
+
+src_install () {
+ use doc && local HTML_DOCS=( doc/*.{html,css,java} )
+ default
+
+ # That's not how we want it
+ rm -rf "${ED%/}"/usr/share/{aclocal,doc} || die
+
+ # package provides .pc file
+ find "${D}" -name '*.la' -delete || die
+
+ dobashcomp completion/source-highlight
+}
+
+src_test() {
+ export LD_LIBRARY_PATH="${S}/lib/srchilite/.libs/"
+ default
+}
diff --git a/dev-util/spec-cleaner/Manifest b/dev-util/spec-cleaner/Manifest
new file mode 100644
index 000000000000..40b189e06c98
--- /dev/null
+++ b/dev-util/spec-cleaner/Manifest
@@ -0,0 +1,6 @@
+DIST spec-cleaner-0.8.9.tar.gz 100949 SHA256 72bdfbaf074bd982ec670681051d50d2c3830afb08a9d680f026034081ef9885 SHA512 9e89c2760b429baa38be2ce2149fbd323b38a4c6159421192b07e612e359666810dc6077b2befd8a6d91b03aabc78bd4f81bb0e5cf5b4a274061b0aae0ab66f8 WHIRLPOOL 92b3f0ae406a2a5710e08297740238f4625ff9fef6b22439e6225fcd01b6420c20b9455a1c94c198d445e44fcc9c22f0b571df91dcf08e1c6f58dad637e018f7
+EBUILD spec-cleaner-0.8.9.ebuild 878 SHA256 c847572098623a2ae0a6c6a78fec53fca494af6d22d44914f19113658819fe87 SHA512 18f047622b1b235f424b24e98809697e96d9217df6c1a29010ed23c4a031d17ad7b7fdd7d4b4c5e18f9f40e7cd0d5870e2058669f5d72fac89a1746350c8ca87 WHIRLPOOL 24b911814e14d46ee3b7c330852533dc6edf3b9282e941423fe0c9bcc84a87fa8051ff51715f02dafe82b5f280c6cd171df8264dfe47a41c7b491e44e761f230
+EBUILD spec-cleaner-9999.ebuild 878 SHA256 c847572098623a2ae0a6c6a78fec53fca494af6d22d44914f19113658819fe87 SHA512 18f047622b1b235f424b24e98809697e96d9217df6c1a29010ed23c4a031d17ad7b7fdd7d4b4c5e18f9f40e7cd0d5870e2058669f5d72fac89a1746350c8ca87 WHIRLPOOL 24b911814e14d46ee3b7c330852533dc6edf3b9282e941423fe0c9bcc84a87fa8051ff51715f02dafe82b5f280c6cd171df8264dfe47a41c7b491e44e761f230
+MISC ChangeLog 3371 SHA256 294fe45a929c061680286d0c14c1bb46ad43355c2f1f630bfb62321be8c64643 SHA512 59168a2c153cfec8ff86004f60a27a5aa4f921759d815d16c04ea666346bf54e32db77836e08d96e2e37fdbce2c2ffead46dc646aaa30e49c22ddcb81e67dd5a WHIRLPOOL 8d6231edaea2553da46534668f02d8899c7fdba7172b496e39c1fe4434f0b6b28187f4f4c50d22b6697f0f6a2275b7dd0df5d417b523ac2be4087265a89800ff
+MISC ChangeLog-2015 3007 SHA256 cc9b398c5dc9695f8ffdc8d7333adc7e882dfb433b288ea49bcee52f489ee64b SHA512 9dbff712b2e352caa1ec7e76f787613ac93dff229081065be9c2eea8413dffa7ced0c5d8fdb485419772876288ec93c9a91e30b8d3b8255ee69eb8c1f41f202b WHIRLPOOL f37ae495556916fafcb5cc1cb04cb0ed0ddd488d5d613f24875c1d86d1f6bfd6df2c5e62e2b6aaf8ce8cc9d2d2e71b8b49af41f057c601ee1a992a7c781c935b
+MISC metadata.xml 322 SHA256 092400d8e465b0b1d1e3b64f575941564b775d4e6bd6f5869ba2124994c6f5cf SHA512 8a8ca164fa41039adace3aaa14fe39f27fca78bbc64211dc28561e45e75e9bd208d81f3f911dcb09c77d5c28614999132248454eb0431b2324b8a55f9ae69bf0 WHIRLPOOL 434cdae93c1d73320ea902723c4454cb091a139254b0d50253e200f0dc9c9c4b4050bdbe8a4481031118918091af41b4ddb8e093021fae9066634ffd08a8881e
diff --git a/dev-util/spec-cleaner/metadata.xml b/dev-util/spec-cleaner/metadata.xml
new file mode 100644
index 000000000000..b6e676944948
--- /dev/null
+++ b/dev-util/spec-cleaner/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="project">
+ <email>suse@gentoo.org</email>
+ <name>SUSE</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">openSUSE/spec-cleaner</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/spec-cleaner/spec-cleaner-0.8.9.ebuild b/dev-util/spec-cleaner/spec-cleaner-0.8.9.ebuild
new file mode 100644
index 000000000000..61a6579ab757
--- /dev/null
+++ b/dev-util/spec-cleaner/spec-cleaner-0.8.9.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5} )
+EGIT_REPO_URI="https://github.com/openSUSE/spec-cleaner.git"
+inherit distutils-r1
+[[ ${PV} == 9999 ]] && inherit git-r3
+
+DESCRIPTION="SUSE spec file cleaner and formatter"
+HOMEPAGE="https://github.com/openSUSE/spec-cleaner"
+[[ ${PV} != 9999 ]] && SRC_URI="https://github.com/openSUSE/${PN}/archive/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+[[ ${PV} != 9999 ]] && \
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+DEPEND="
+ test? (
+ dev-python/mock[${PYTHON_USEDEP}]
+ dev-python/nose[${PYTHON_USEDEP}]
+ )
+"
+RDEPEND="
+ ${PYTHON_DEPS}
+"
+
+[[ ${PV} != 9999 ]] && S="${WORKDIR}/${PN}-${P}"
+
+src_prepare() {
+ # we have libexec
+ sed -i \
+ -e 's:lib/obs:libexec/obs:g' \
+ setup.py || die
+ distutils-r1_src_prepare
+}
+
+python_test() {
+ nosetests
+}
diff --git a/dev-util/spec-cleaner/spec-cleaner-9999.ebuild b/dev-util/spec-cleaner/spec-cleaner-9999.ebuild
new file mode 100644
index 000000000000..61a6579ab757
--- /dev/null
+++ b/dev-util/spec-cleaner/spec-cleaner-9999.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5} )
+EGIT_REPO_URI="https://github.com/openSUSE/spec-cleaner.git"
+inherit distutils-r1
+[[ ${PV} == 9999 ]] && inherit git-r3
+
+DESCRIPTION="SUSE spec file cleaner and formatter"
+HOMEPAGE="https://github.com/openSUSE/spec-cleaner"
+[[ ${PV} != 9999 ]] && SRC_URI="https://github.com/openSUSE/${PN}/archive/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+[[ ${PV} != 9999 ]] && \
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+DEPEND="
+ test? (
+ dev-python/mock[${PYTHON_USEDEP}]
+ dev-python/nose[${PYTHON_USEDEP}]
+ )
+"
+RDEPEND="
+ ${PYTHON_DEPS}
+"
+
+[[ ${PV} != 9999 ]] && S="${WORKDIR}/${PN}-${P}"
+
+src_prepare() {
+ # we have libexec
+ sed -i \
+ -e 's:lib/obs:libexec/obs:g' \
+ setup.py || die
+ distutils-r1_src_prepare
+}
+
+python_test() {
+ nosetests
+}
diff --git a/dev-util/splint/Manifest b/dev-util/splint/Manifest
new file mode 100644
index 000000000000..2013dd2a5338
--- /dev/null
+++ b/dev-util/splint/Manifest
@@ -0,0 +1,7 @@
+AUX splint-3.1.2-musl.patch 232 SHA256 e969dfcc9378f03015cf35cf346478950fe8e226937b86030a43caa1e94e5348 SHA512 4e74cd5181848c3babf3a6d6687eb6d274be1549f26b7817b2c3fa4c0cee048c841d71a28931ae4db21c0c67154cff536218e7ace6d6e5ba4c7eccb7a800790f WHIRLPOOL 872948c6448752cd564197852331d0caec8c57639ab483377e8be99ee3795274de827bd04b074dc5c1d2a0c699d3507515863bcb0f66cda9d62001d547c55220
+DIST splint-3.1.2.src.tgz 2284033 SHA256 c78db643df663313e3fa9d565118391825dd937617819c6efc7966cdf444fb0a SHA512 9bbf3f6575763c022940efde947f845f52095a1bcf645f7f4a98feb335b62d2bd50d78420e7fe95f81eb139b110d8fe48112b025deace45f7994360b20d47e0b WHIRLPOOL 092afab6adee524b93a06c4674941bb5a21c838226fa8fa0d5536e97d1411ee43d472212f5aa3677431b59eef325837bf6521ba62163df54f302b6ac1c279313
+EBUILD splint-3.1.2-r1.ebuild 1001 SHA256 45f222a07186a8d0e7f6bc06249d9810c89f8dae282748936eddcf317043a0a9 SHA512 8e4f2feb30a17f713410328823e9c44af8bf7ca2df44fc1504314cebffad44e1395c1e2ad185f24ea846456b79278ded4cfd8f799f2defebaa2061edfb53533b WHIRLPOOL 3c7abc8844f6e96a64f159792768d32c03c2e7fbfd632175d7c487ff48ba175ac623a03ef7645800451c7d0456b84a662534d829ea5db61c086f9510291b9d94
+EBUILD splint-3.1.2-r2.ebuild 1100 SHA256 84992a525bcae4e45d7523790bac45818b07cdce739c0a16a2b17cfe25cb1371 SHA512 68e3fc629c36c6a686dec98b3ae30d2afa68a77d5a8ec70de11206f7a23247e669151a189801cc041adb456117da5b70086c117cb38cc99529a59ba6ec6eb28f WHIRLPOOL 3332a1bcbb988c80b081049728dc9331231c00a2dbe7a046168674b1ed138a159137e40b4631c70d410d1ae4a5ec9a33b38a48f71df121222ed4d02b12d65216
+MISC ChangeLog 2406 SHA256 f44d7a7fccdd27d31fb7ab832d3d042080f5a742eb953620b5e895a35dbd2067 SHA512 5f438a47079781681fc81040d19706b04b9c8e89e3fb294e5d00d3a8a552fa449a467cee1fd0c2ca5a066edd683de23bf972a88096362ebc0ef9846bf54d8093 WHIRLPOOL 1d6a28c626523dc56d5afad801e69c4c23968e5e100c86520d9c2b5f24aec239d688da9bd999722420f4cae8db2396eaa5d057b3ab9af71598d093c405b8e32c
+MISC ChangeLog-2015 4320 SHA256 18c53346d8d2dbfbb68fdd977a8691bfebc549107e5d3d7efc2f355ddd3190c5 SHA512 f7ca8dcec5c5cd7c2d596ef699d87dac60b1a1819da58871f3cd884db5472dbdc288b62221038c6a479ee2ffa11cd7119d2ecd1b9ad3ece1c34e583fda69d0b2 WHIRLPOOL f0b219caf152933473d007aa02a1b9015b624f8c77b1583426da7efd093d11dd1109089b5b81e2f192ed1b08c3dd51b9d110af58b3b953f1def9db8feed8a327
+MISC metadata.xml 240 SHA256 58d315d79d6b07d798e12d1f8f2481ca4eb03b71d430e68989603732bcd392c8 SHA512 25affa2d6d2fe48707ae81553343451aff9797885b4232e73973a29d4cc1d28a937d024cefca49f92383f01eb8cb811546cd2334cbb78f8e66f1db1f63ff4572 WHIRLPOOL 7d0fb1efdaf8bcd6f9a04c6f8635a1071bd50e6b223334139c275d55fabf5ad9e93390120ea7c823495048176a74f66b6dd09d3ffabc9a6e67f63cae2af73f24
diff --git a/dev-util/splint/files/splint-3.1.2-musl.patch b/dev-util/splint/files/splint-3.1.2-musl.patch
new file mode 100644
index 000000000000..bf8c770b2ef5
--- /dev/null
+++ b/dev-util/splint/files/splint-3.1.2-musl.patch
@@ -0,0 +1,11 @@
+--- a/src/osd.c
++++ b/src/osd.c
+@@ -516,7 +516,7 @@
+ # if defined (WIN32) || defined (OS2) && defined (__IBMC__)
+ int pid = _getpid ();
+ # else
+- __pid_t pid = getpid ();
++ pid_t pid = getpid ();
+ # endif
+
+ return (int) pid;
diff --git a/dev-util/splint/metadata.xml b/dev-util/splint/metadata.xml
new file mode 100644
index 000000000000..f9f8bbfd9405
--- /dev/null
+++ b/dev-util/splint/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>jer@gentoo.org</email>
+ <name>Jeroen Roovers</name>
+</maintainer>
+</pkgmetadata>
diff --git a/dev-util/splint/splint-3.1.2-r1.ebuild b/dev-util/splint/splint-3.1.2-r1.ebuild
new file mode 100644
index 000000000000..6b04a9b7874a
--- /dev/null
+++ b/dev-util/splint/splint-3.1.2-r1.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit autotools
+
+DESCRIPTION="Check C programs for vulnerabilities and programming mistakes"
+HOMEPAGE="http://lclint.cs.virginia.edu/"
+SRC_URI="http://www.splint.org/downloads/${P}.src.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha amd64 arm hppa ~ia64 ppc ppc64 sparc x86"
+
+DEPEND="
+ sys-devel/flex
+"
+
+src_prepare() {
+ # verbose compiler calls
+ sed -i -e '/Compiling/d' src/Makefile.am || die
+ # automake complains about trailing \
+ sed -i -e '1600d' test/Makefile.am || die
+ # do not install these header files twice
+ sed -i -e '/\$(UnixHeaders)/s|stdio.h stdlib.h||g' lib/Makefile.am || die
+
+ eautoreconf
+}
+
+src_configure() {
+ # We do not need bison/yacc at all here
+ # We definitely need libfl
+ BISON=no LEXLIB=-lfl econf
+}
+
+src_compile() {
+ local subdir
+ # skip test/ subdir
+ for subdir in src lib imports doc; do
+ emake -j1 -C ${subdir}
+ done
+}
+
+src_test() {
+ emake -C test
+}
diff --git a/dev-util/splint/splint-3.1.2-r2.ebuild b/dev-util/splint/splint-3.1.2-r2.ebuild
new file mode 100644
index 000000000000..1549f142bdb8
--- /dev/null
+++ b/dev-util/splint/splint-3.1.2-r2.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit autotools eutils
+
+DESCRIPTION="Check C programs for vulnerabilities and programming mistakes"
+HOMEPAGE="http://lclint.cs.virginia.edu/"
+SRC_URI="http://www.splint.org/downloads/${P}.src.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~ppc-macos ~x64-macos ~x86-macos"
+
+DEPEND="
+ sys-devel/flex
+"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-3.1.2-musl.patch
+
+ # verbose compiler calls
+ sed -i -e '/Compiling/d' src/Makefile.am || die
+ # automake complains about trailing \
+ sed -i -e '1600d' test/Makefile.am || die
+ # do not install these header files twice
+ sed -i -e '/\$(UnixHeaders)/s|stdio.h stdlib.h||g' lib/Makefile.am || die
+
+ eautoreconf
+}
+
+src_configure() {
+ # We do not need bison/yacc at all here
+ # We definitely need libfl
+ BISON=no LEXLIB=-lfl econf
+}
+
+src_compile() {
+ local subdir
+ # skip test/ subdir
+ for subdir in src lib imports doc; do
+ emake -j1 -C ${subdir}
+ done
+}
+
+src_test() {
+ emake -C test
+}
diff --git a/dev-util/squashdelta/Manifest b/dev-util/squashdelta/Manifest
new file mode 100644
index 000000000000..55594433a3ff
--- /dev/null
+++ b/dev-util/squashdelta/Manifest
@@ -0,0 +1,6 @@
+DIST squashdelta-0.1.tar.bz2 77702 SHA256 732b0c05085d2d2f14329e0edd3a4b4f15ff315b8b47cac553e6be3c5f9f3f5a SHA512 1ce93b59b6c51be49aaaee9576049677c8ba146fa3a17c7d3552440a1c0ebe93fb4d8cbe1182db691e2c9552713ecfeef0e50d95f7e94218c341c51364bf724f WHIRLPOOL 1ff9fe6a653ca394e5fc1d32bf420880d2e2036d11560cf9ad9cf23535d4c8a60758a7da5e81121d8fa5fe053f1cac83d161057a84076327315b1c35a1d30e3a
+EBUILD squashdelta-0.1.ebuild 816 SHA256 845d946171ca072291ecfc53595ab59918265056d6033c8e8cd318c2fd04528c SHA512 db8727fd723ce993b06fc4c12f769b412971c9042609d48f14a6e6bfe681511652e4253bcf57c0a8a20a855edd53c0989462974ba15291a50c61f86e64ff359f WHIRLPOOL 61a9a3dd872bb919e6e1e1ab88e8be18ead8d51ce50db972e625a89dde18a2fe821ce49160422aa91382fe7c2c91e6aebddd54dfbcbf1c17db71987f5391ac61
+EBUILD squashdelta-9999.ebuild 812 SHA256 c7715140cf5f351fdb54b07bc810ede2287a4a64295c00e780009d9e05f45dda SHA512 d3551e272526a4c105623bce97879012d998fe57d2bf31d795d9051da3427a7900916f0f8b90d5a725e45fbf3e1282413c13eb32c6eb0ba2faf6ad6fcc799ee0 WHIRLPOOL 5162aeaec40ffba9461bc90ba1e9237659eb4c617469ded09722eb9c5720dbdf302b976f162939163d055042af028d096061af5516206095cbacae61899a56a5
+MISC ChangeLog 2388 SHA256 3f73f40ede4e7292643a165c73ed5fe5c7e1d3a10146f132bc25a1ee63c6d382 SHA512 4e90c8ff011a9a99a72f51a6681314ead9715ad93685988b8dffb1c8c35ea25ac49db872d253276edeba3a138a17661ea188a9b0e80cdb0b289b08475132e34a WHIRLPOOL bee471d22bd52dff0cb611c243b11fce1b838ebf650d9048dbf46568f031a2b988977a33126393f84a40471db2dae35b5cfeacc17b63dcbff5b7b3d522c178f6
+MISC ChangeLog-2015 885 SHA256 41186c4e31c0e91651c4a4bb2d31de946c51481323a575573ba9a8f749ff66d4 SHA512 90c96728b66633a43c9995514bb59a597d91d10ade7ac30012a60932ea8ef9497280395c97f18f20262a5cedfede5f1ce8f36b759ddfdfa45dbb3b5eedbfae00 WHIRLPOOL a6c27c80cc03377746fabe49b8ff6b0cec75ae191cebf7a7a5fe737e63dc281eaed9da30273ffd15837a1a2383933c018822ffcf932b112dbaf63761abb5a1c6
+MISC metadata.xml 617 SHA256 107dc18d21ebb40e1c45f98bc5573e55d8fc3221dc897024be7e83cf4a5dbdac SHA512 a08f732876cfc4455ddd980eb04cffbe73b4bd56426d420777782a93b1229277463f85c71f05699f152f2edaa4ee8e029e1e5185b5c7b47204a9e9b9ba5120a2 WHIRLPOOL 59d45aac16cca4de3fcdc0f6c0d2457f267f78c0279b9da6526955857b2350806f761567c7946f39182b8945e345ae158914db5358722f4aa3dfdb8ff5f84dfc
diff --git a/dev-util/squashdelta/metadata.xml b/dev-util/squashdelta/metadata.xml
new file mode 100644
index 000000000000..1001cf9123ee
--- /dev/null
+++ b/dev-util/squashdelta/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <use>
+ <flag name="lz4">Enable support for LZ4 compression using <pkg>app-arch/lz4</pkg></flag>
+ </use>
+ <maintainer type="person">
+ <email>mgorny@gentoo.org</email>
+ <name>Michał Górny</name>
+ </maintainer>
+ <upstream>
+ <maintainer status="active">
+ <email>mgorny@gentoo.org</email>
+ <name>Michał Górny</name>
+ </maintainer>
+ <bugs-to>https://github.com/mgorny/squashdelta/issues/</bugs-to>
+ <remote-id type="github">mgorny/squashdelta</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/squashdelta/squashdelta-0.1.ebuild b/dev-util/squashdelta/squashdelta-0.1.ebuild
new file mode 100644
index 000000000000..64d107803421
--- /dev/null
+++ b/dev-util/squashdelta/squashdelta-0.1.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit autotools-utils
+
+DESCRIPTION="Efficient (partially uncompressed) SquashFS binary delta tool"
+HOMEPAGE="https://github.com/mgorny/squashdelta/"
+SRC_URI="https://www.github.com/mgorny/${PN}/releases/download/v${PV}/${P}.tar.bz2"
+
+# uses public-domain murmurhash3
+LICENSE="BSD public-domain"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="lz4 +lzo"
+
+COMMON_DEPEND="
+ lz4? ( app-arch/lz4:0= )
+ lzo? ( dev-libs/lzo:2= )"
+RDEPEND="${COMMON_DEPEND}
+ dev-util/xdelta:3"
+DEPEND=${COMMON_DEPEND}
+
+# SquashDelta does not make much sense without a compression algo.
+REQUIRED_USE="|| ( lz4 lzo )"
+
+src_configure() {
+ local myeconfargs=(
+ $(use_enable lz4)
+ $(use_enable lzo)
+ )
+
+ autotools-utils_src_configure
+}
diff --git a/dev-util/squashdelta/squashdelta-9999.ebuild b/dev-util/squashdelta/squashdelta-9999.ebuild
new file mode 100644
index 000000000000..fd19fe305141
--- /dev/null
+++ b/dev-util/squashdelta/squashdelta-9999.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+EGIT_REPO_URI="https://github.com/mgorny/${PN}.git"
+inherit autotools git-r3
+
+DESCRIPTION="Efficient (partially uncompressed) SquashFS binary delta tool"
+HOMEPAGE="https://github.com/mgorny/squashdelta/"
+SRC_URI=""
+
+# uses public-domain murmurhash3
+LICENSE="BSD public-domain"
+SLOT="0"
+KEYWORDS=""
+IUSE="lz4 +lzo"
+
+COMMON_DEPEND="
+ lz4? ( app-arch/lz4:0= )
+ lzo? ( dev-libs/lzo:2= )"
+RDEPEND="${COMMON_DEPEND}
+ dev-util/xdelta:3"
+DEPEND=${COMMON_DEPEND}
+
+# SquashDelta does not make much sense without a compression algo.
+REQUIRED_USE="|| ( lz4 lzo )"
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ local myconf=(
+ $(use_enable lz4)
+ $(use_enable lzo)
+ )
+
+ econf "${myconf[@]}"
+}
diff --git a/dev-util/squashmerge/Manifest b/dev-util/squashmerge/Manifest
new file mode 100644
index 000000000000..6277a7ee7eaf
--- /dev/null
+++ b/dev-util/squashmerge/Manifest
@@ -0,0 +1,6 @@
+DIST squashmerge-0.1.tar.bz2 76678 SHA256 f4c1c16ae91517191f64718f9e2e0d1f89efcbe56280b70d5c82e2b2f0447d3d SHA512 a12e78d79a3f212a65c0b979a1ca3de9532ebf33f891ae2fd216425cd044a6f3357496e9f37bebc53a067aa592f7a1eecdeee653929eb443426e48fe342c7683 WHIRLPOOL c559f79a8d43e9cf30a8850d62e6c9e374f32ea4bdb10f168b8ce7aef2a0b11b50c4c54e776a703628810cb8d9e7d6c323ab8378d1ac9f0c0b5c6f55d0589071
+EBUILD squashmerge-0.1.ebuild 762 SHA256 b751ca8dc13fc7139c131c8ee44fb560a39295095824e2e280d556456fefaf59 SHA512 45c8283e5b02e98cbd071d90b0b859d685c67ad13005846a1b3aa979e70d0e66e14b9e49ec299dac3118f31dc1d19eb9145c04937c43afe040d0de795252f66f WHIRLPOOL 5ccaf66d06b4fdcbcff7b2a2181d7abe0587e4f3d6265a6677a4fb28e87ed466b1bc7c3b3f3448f2bde6ecd770db51a7f02b85296eb87a776f83b7f1e903a79f
+EBUILD squashmerge-9999.ebuild 758 SHA256 3fe5e00487df5daf952e0b4a64366541d8da5a1468f3d1f5b5c7d777432eb74e SHA512 f62e8b4ff613c37a7f0446fdd24939cef4c40a1f836fce827d58451f2585166054d2220344f806e39f6fc4e3ef18044b28e8187f1a3228feb00b22fbb34a267a WHIRLPOOL a72fbece4774d7c4b0b3df8f7349b825ea6b68cc217720522a2759e516d59195fd270411e11a5e5333290af878e552bbfc0e6c44ca9847fef171ef051b5348c8
+MISC ChangeLog 2388 SHA256 3c9322eca73c12473f248a94ea0833bda984020d0cda29d6ace833c4acd73f09 SHA512 2459e630e1a4e8dc8c7bba52942b82d9ef969e70f847149297876b0192f246d82ea739d3ec732efadd80b751d43ca1ee3de996b7808fbf1dae9446fb4bee2a5b WHIRLPOOL f5186368a821c32676519d90504a5a546c84d8f27ed842197289790cff0db0e169b6bbf4fa9ca0e811f0593efab61ad1f5e3aee861e785d0366d504142462cf2
+MISC ChangeLog-2015 1125 SHA256 e7b934a693e5671e7e267ab29cf075e4cb4e8adddc070a56926adeaf1a6538a1 SHA512 207b22a3bf8c5f14efca0c96ac32f46843d7cba9402465330dcd3785f45894d083883f27a952730304c601f07408654588151c734ec4911fe03cdf01f8730ff4 WHIRLPOOL cf1864dff7828cfd48567cdc945f23bd10e4c4e2c94d4c71de9076b28cd1fafb3dd78c8142eb48cbfacab92b21b879727dc62671a20050c6cc1c80774548ca99
+MISC metadata.xml 617 SHA256 9f5fc73262bfa264d696f5da4f00d23fb3ee22b1c2c9d01754487cb6c79635ad SHA512 3fd67397e969a42017f09a6833b0ee2fefefb9c9fdb16c75312f579991f7025ff7284779f01fd7b6f7ebdd491c85d7b26aad24c6fefd2dddac3c868fd0df1b3d WHIRLPOOL 7f00fd492094a21d460504efcd443b4187a1ab78a1b742e5f14204837974926a4b88cb3f1313a3acd5aa75bf3dbbf4caca5a469af5e6c0506bea6dbb4006f0a6
diff --git a/dev-util/squashmerge/metadata.xml b/dev-util/squashmerge/metadata.xml
new file mode 100644
index 000000000000..8c6675d140f4
--- /dev/null
+++ b/dev-util/squashmerge/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <use>
+ <flag name="lz4">Enable support for LZ4 compression using <pkg>app-arch/lz4</pkg></flag>
+ </use>
+ <maintainer type="person">
+ <email>mgorny@gentoo.org</email>
+ <name>Michał Górny</name>
+ </maintainer>
+ <upstream>
+ <maintainer status="active">
+ <email>mgorny@gentoo.org</email>
+ <name>Michał Górny</name>
+ </maintainer>
+ <bugs-to>https://github.com/mgorny/squashmerge/issues/</bugs-to>
+ <remote-id type="github">mgorny/squashmerge</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/squashmerge/squashmerge-0.1.ebuild b/dev-util/squashmerge/squashmerge-0.1.ebuild
new file mode 100644
index 000000000000..b2b4863ee107
--- /dev/null
+++ b/dev-util/squashmerge/squashmerge-0.1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit autotools-utils
+
+DESCRIPTION="dev-util/squashdelta delta merge tool"
+HOMEPAGE="https://github.com/mgorny/squashmerge/"
+SRC_URI="https://www.github.com/mgorny/${PN}/releases/download/v${PV}/${P}.tar.bz2"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="lz4 +lzo"
+
+COMMON_DEPEND="
+ lz4? ( app-arch/lz4:0= )
+ lzo? ( dev-libs/lzo:2= )"
+RDEPEND="${COMMON_DEPEND}
+ dev-util/xdelta:3"
+DEPEND=${COMMON_DEPEND}
+
+# SquashDelta does not make much sense without a compression algo.
+REQUIRED_USE="|| ( lz4 lzo )"
+
+DOCS=( FORMAT )
+
+src_configure() {
+ local myeconfargs=(
+ $(use_enable lz4)
+ $(use_enable lzo)
+ )
+
+ autotools-utils_src_configure
+}
diff --git a/dev-util/squashmerge/squashmerge-9999.ebuild b/dev-util/squashmerge/squashmerge-9999.ebuild
new file mode 100644
index 000000000000..14b136be6184
--- /dev/null
+++ b/dev-util/squashmerge/squashmerge-9999.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+EGIT_REPO_URI="https://github.com/mgorny/${PN}.git"
+inherit autotools git-r3
+
+DESCRIPTION="dev-util/squashdelta delta merge tool"
+HOMEPAGE="https://github.com/mgorny/squashmerge/"
+SRC_URI=""
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS=""
+IUSE="lz4 +lzo"
+
+COMMON_DEPEND="
+ lz4? ( app-arch/lz4:0= )
+ lzo? ( dev-libs/lzo:2= )"
+RDEPEND="${COMMON_DEPEND}
+ dev-util/xdelta:3"
+DEPEND=${COMMON_DEPEND}
+
+# SquashDelta does not make much sense without a compression algo.
+REQUIRED_USE="|| ( lz4 lzo )"
+
+DOCS=( FORMAT )
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ local myconf=(
+ $(use_enable lz4)
+ $(use_enable lzo)
+ )
+
+ econf "${myconf[@]}"
+}
diff --git a/dev-util/staruml-bin/Manifest b/dev-util/staruml-bin/Manifest
new file mode 100644
index 000000000000..8b34c5b64acb
--- /dev/null
+++ b/dev-util/staruml-bin/Manifest
@@ -0,0 +1,5 @@
+DIST StarUML-v2.8.0-32-bit.deb 41749126 SHA256 361d6087175ef0b5d062d175cba6f16a754555d5191aa9a7988bc56ba9e0fc4b SHA512 e6baae6ee6202a682b3aa3b570a8899378dc5e8ac21613ca940268ce7758c51216d7e8ea6a8e317b50f1d96bef26bfbdaeef7b323991c7f1dc4af10f050ce693 WHIRLPOOL b6a67eac8022b1abcd5dda9dcba5640c37df6acc0c5272e75b66c4693ba48cea079e2c6a7a272135c1a329f8700b5d247bb022c6390ce2e540a9620d9ec48999
+DIST StarUML-v2.8.0-64-bit.deb 43585506 SHA256 79fb7b0bfe15ec9c73b195addd6561c322e8814bf65c2930375f8e6fd7e56c2c SHA512 faadb8971386a7cd6c6d5a9cb37772ece9f7f92fbb756d1e7d4203c1ba5874e36afa46402697eb0d4246af60c114e8957789b1f75034dbea9badf7e63001f010 WHIRLPOOL 133919cea10a122e6777ac0886c155c02ba9c58b664fde14d6f394a2a0ee4296fb88bd4996215a26cb4b570277fc623df7f1a40ab92d0b23e1cff5ca1864d770
+EBUILD staruml-bin-2.8.0.ebuild 1241 SHA256 fb79681eaab1710afc70233546a4e664a6f9546fc4354ec30678bd1a14e864a4 SHA512 44efb4ffdc96c57c3acfbb53471300e4a5ca3e8f4063a99c474e4b5e4dda634e273f33c7cff1fbbe2ce45c8ecb587b6a3989d175241b06b2c591366c8f3b626d WHIRLPOOL 7b238c441af56eb141b9b7b63a2267fa25567eb0bb0b0a154233f6b7f28b487d293f172b8abcf398846ab11a37fdbde41fd6af6a899804698f8fed96135a1595
+MISC ChangeLog 937 SHA256 0f6fa2cdd49d5788f7eaaeeea547fbf72bf75aee6d66ef7aca303b91485e2a3a SHA512 0fe500c2e193b4c472d190fc13ce9420ad41c839e33a078881c0197d1bd0419e58420464ee70d71c75a3b7e19dc9c02f1b2f2dd5521b8b0186306a4c61cb4876 WHIRLPOOL a424d8ce9ee1e9fcb89c15028d8a5e9ad3930d9799e8e4d649025ec77c749c8669c4808b47c9a18874f2d92d1909c4fc01242d4cfb065a8fe9da856b47d6504e
+MISC metadata.xml 383 SHA256 dec6ea6a790914dc62dd0d5f5c58e00840969c5da5902eae6e269f0447535bd7 SHA512 43b9dc9d256d23f9fe81341771dfb4ad64776552c44ebbe3333f8b3136e9e37d0db4b90d0a2d962149f84e93a4fdc43ca0f65e955bbd7b2da9b41975a8849644 WHIRLPOOL 9b3a1f82f3b373de9f791601e2474db35622b31e2d77b3c9de11345f393174dc4e033f00579eabad9ff2e07f0e4bf5f1bc5daa04d8f24c6b611bf1f3956f625e
diff --git a/dev-util/staruml-bin/metadata.xml b/dev-util/staruml-bin/metadata.xml
new file mode 100644
index 000000000000..3554bdb770b5
--- /dev/null
+++ b/dev-util/staruml-bin/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>hilobakho@gmail.com</email>
+ <name>Mykyta Holubakha</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Gentoo Proxy Maintainers Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-util/staruml-bin/staruml-bin-2.8.0.ebuild b/dev-util/staruml-bin/staruml-bin-2.8.0.ebuild
new file mode 100644
index 000000000000..6961a4594d22
--- /dev/null
+++ b/dev-util/staruml-bin/staruml-bin-2.8.0.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit unpacker
+
+DESCRIPTION="A sophisticated software modeler"
+HOMEPAGE="http://staruml.io/"
+SRC_URI="
+ amd64? ( http://staruml.io/download/release/v${PV}/StarUML-v${PV}-64-bit.deb )
+ x86? ( http://staruml.io/download/release/v${PV}/StarUML-v${PV}-32-bit.deb )
+"
+
+LICENSE="StarUML-EULA"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+RESTRICT="bindist mirror splitdebug"
+
+RDEPEND="
+ dev-libs/atk
+ dev-libs/expat
+ dev-libs/glib:2
+ dev-libs/libgcrypt:11
+ dev-libs/nss
+ dev-libs/nspr
+ gnome-base/gconf
+ media-libs/fontconfig
+ media-libs/freetype
+ media-libs/alsa-lib
+ net-print/cups
+ x11-libs/cairo
+ x11-libs/gdk-pixbuf:2
+ x11-libs/gtk+:2
+ x11-libs/libXcomposite
+ x11-libs/libXdamage
+ x11-libs/libXext
+ x11-libs/libXfixes
+ x11-libs/libXi
+ x11-libs/libXrender
+ x11-libs/libX11
+ x11-libs/pango
+ virtual/libudev
+"
+
+S="${WORKDIR}"
+QA_PREBUILT="opt/staruml/Brackets-node opt/staruml/StarUML"
+
+src_unpack() {
+ unpack_deb ${A}
+}
+
+MY_PN=${PN/-bin/}
+src_install() {
+ mv opt "${ED}" || die
+ dosym /usr/lib/libudev.so /opt/${MY_PN}/libudev.so.0
+ dosym /opt/${MY_PN}/${MY_PN} /usr/bin/${MY_PN}
+ newdoc usr/share/doc/${MY_PN}/copyright LICENSE
+}
diff --git a/dev-util/strace/Manifest b/dev-util/strace/Manifest
new file mode 100644
index 000000000000..ffde98a5c080
--- /dev/null
+++ b/dev-util/strace/Manifest
@@ -0,0 +1,14 @@
+DIST strace-4.13.tar.xz 847032 SHA256 d48f732576c91ece36a5843d63f9be054c40ef59f1e4773986042636861625d7 SHA512 166d9b80ec093e049161ee5506a60c408d6f953d8fa04ba5dcb5105b0c9181282a2c28ff0a7acfa44880be44fd1dbde2319e895868a6edecd0121700a49dfdec WHIRLPOOL 0e5dd46610befc20fe9c0d65f665b304e7e512d647b2bd4b3cf73840197c052914d775296e01a738969e5ec84df94e19c491ab943e88040ca04063a4cd22a8ed
+DIST strace-4.16.tar.xz 966668 SHA256 98487cb5178ec1259986cc9f6e2a844f50e5d1208c112cc22431a1e4d9adf0ef SHA512 d1a7b782cb8196eb95b431b66f9b0eff7886869a7e3a4618d985f73b2eed7590ba73150b9c33e55ee5c65fc8f863588b64c5611dca7b5d7a4183110eaf4451d5 WHIRLPOOL 3406b4fa96d4113c620e5d179ae61def8dc8ca97f4255b8df6b344269f9fd2c0eae76d9dde6fcc10a6aebc192e4ccb0e130a60ee03f83bcef9be56632e400cb3
+DIST strace-4.17.tar.xz 1001808 SHA256 81f35b085fbb3cfa806eb521a8522ac3406deaccfe121ce35064bad268237419 SHA512 dab376d9c5ac7db98e864f3cfb165eeec714e3ea492f32ee873cebe01fbd3a0793db09983af1da6530480666a59973ccd9855d348e754be1eead9c0a5d524029 WHIRLPOOL 5d1aaa0405288695d73523eb0171e9c56e966db44a58dbd7ae6aed16af66a151be5ad58fb716ce2305ea9435e29dc36bd3be5ade73e09fef69fcbcf32599a036
+DIST strace-4.18.tar.xz 1040676 SHA256 89ad887c1e6226bdbca8da31d589cadea4be0744b142eb47b768086c937fca08 SHA512 4fcabc11ef8055c09a5a4777e66f006dd9d67d74740dc0d6e31eb16fa8496062b848c1f21adeeeba7895f57af851103a384c19000ac15cd2f5521e78a5e7a8ad WHIRLPOOL 740d8a19ed3cc0822ec3bbdae72dd3cbe892f78a9161ee824735599ac316788a3fa8c54a18ba32b79c6225930e57f9a74f00fd8e11a1b96514bce9b40d124edc
+DIST strace-4.19.tar.xz 1113124 SHA256 7c93ebc6c29280f47c24a0eb86873a99ccb2cac6512c60a60ba4ef99ab807281 SHA512 91d57f58ac0e70ff4dcd69fda3cb835de7f40a9152817427e9c264773f99015badbad7bab047ce7f69001b689b1ce54af9522a9738060823de8873bee1e0c629 WHIRLPOOL 426bca505798a70f623f263de2fe3b02ee603ae513523d3b3fe781780ffc31a0a365214f76c1afdcdb32ec72a37178dd342f594fafe596a3c64d3b99ba38f2fb
+EBUILD strace-4.13.ebuild 1801 SHA256 14172303370e5e18803a54a99f2191e588a7574d82aa8e8a8ea07a25e4dbad3f SHA512 5bcb19d5ebd468ea79087df89f3ff0b8755932aeb1bbc447b1e52fbfc29897cfff520b3baf4f8534a248488dc9cd19a5a694b9d1a471d8598931e1941c97b2e7 WHIRLPOOL 2f20be7255740520d80b3b83cb5e02ed6e4544f10c580e8879aae4754b82de6a31d7906f4656473afc0da388fb535ae5c136d2a5689bc9ff13489072f7bcb56c
+EBUILD strace-4.16.ebuild 1805 SHA256 7f465571feb8b49810ef962bae4ebc34a6651bae36ce2f8a0566d4e12cf6d0b1 SHA512 f83b6233e57cfae2fbdfb3c09a973f70d2bd12c505bd8b754f34524a7967f72b82b395f0daa938bba1a2a816fcfdc14ffa6a8388d67271e7d13456fcbf3490e0 WHIRLPOOL a97f00564a365f335f7a2fb0572a2da9ecadbfb3918215b9f2b11aeda8691a0f6a2a65c6bade3f2fb46d92b457991caaff80d1609c481d5e476192e2063f2cd1
+EBUILD strace-4.17.ebuild 1814 SHA256 ad5a4bdbc5770e4d372f3d1086b723f8b6d395f15c5be333e8437cd743afc882 SHA512 6aadd722d04b46a84dd535688c6cd7c7ca64860cfe7f5aa90b636ceb953f7f603894b546e4ab94558607c7e6781817ffe41695b7e1e0000f0bdc7e5d0a07e47e WHIRLPOOL 18bf7ca566489826261da5bcec13dd5a8802bb626ff2cbd01a329d0f0ce0c10ac9c76e6007ac908d9e5de28102c64f1cfb49ad08fb97cf7f530cb48e41d3f603
+EBUILD strace-4.18.ebuild 1818 SHA256 1715bfb7932b81e56ad4459e8a041afc8a8530e3ba80046c62c543e3f57cb485 SHA512 b33cbc9ae5ce9bddd739dee78b9f81b8a0ec2481074a33a1f341f33362a52625768d3db1649c61449c9089e1457697614d906b04fe660354c6d74118aa071121 WHIRLPOOL 3893f1e234ee861fcfcb6869b524c2a5d78a050cbb0c8588fc374e084b6e195cb5903e6dacce3c263b0f7925749018c8a95069cd303e5efda86629ab9274cca9
+EBUILD strace-4.19.ebuild 1818 SHA256 1715bfb7932b81e56ad4459e8a041afc8a8530e3ba80046c62c543e3f57cb485 SHA512 b33cbc9ae5ce9bddd739dee78b9f81b8a0ec2481074a33a1f341f33362a52625768d3db1649c61449c9089e1457697614d906b04fe660354c6d74118aa071121 WHIRLPOOL 3893f1e234ee861fcfcb6869b524c2a5d78a050cbb0c8588fc374e084b6e195cb5903e6dacce3c263b0f7925749018c8a95069cd303e5efda86629ab9274cca9
+EBUILD strace-9999.ebuild 1818 SHA256 1715bfb7932b81e56ad4459e8a041afc8a8530e3ba80046c62c543e3f57cb485 SHA512 b33cbc9ae5ce9bddd739dee78b9f81b8a0ec2481074a33a1f341f33362a52625768d3db1649c61449c9089e1457697614d906b04fe660354c6d74118aa071121 WHIRLPOOL 3893f1e234ee861fcfcb6869b524c2a5d78a050cbb0c8588fc374e084b6e195cb5903e6dacce3c263b0f7925749018c8a95069cd303e5efda86629ab9274cca9
+MISC ChangeLog 6475 SHA256 cb6f88a0781d3ae1ad956eea89528142607b55ffac120fc6ce3cda8ba73f715f SHA512 bb2e8128d7522634f95dcc3af8d3902c904ba2c666ae89106f9673f844880b1dddda45564251e711899f72a81c73dbfaf8b0088d1567d2db9dcbdd29e7cf36f8 WHIRLPOOL ad4ccff60ab2379c2bbb5f29e43f800f03d0d0b060f8f4a4d969a62b48c487b0681f7f04accaba2c766728224e20a5b830d49b1340fbf98c280cf7162ae9a519
+MISC ChangeLog-2015 25514 SHA256 89a5d54c7b85ba428f52c74535710e834504ff846ba4491e2ec8fb9c23523e1b SHA512 fc6c2a4a4c0e9acf27604cdef5383a5789e5e0ee633b301706a7d4e44556a7608fbda5e23c6a59c403d2fad7693f55a90aad4d3b5265a713134e33a514b3970c WHIRLPOOL ef1ffe8a0dedc7a533a32d4c73802ea0f86d88c6076acd0a3b598fa97e4d49b440335d610231b148cd01dac0b2610c70d6741e681685543ae34d1d8e0def26d5
+MISC metadata.xml 593 SHA256 e109b90d149d7f0a92316f83f9695c40f2d702625c274b3a9c48bfab2b38dd53 SHA512 67300cfcaba830a47e49cd327bf2d8490b084b016a321fd6e19e52d8dc28968395b3ffc114675a7d4dc723a9ddd7b57c3ede10207a226d60a2225f88aceb59e4 WHIRLPOOL 1af581a8525b849b93b4e2f1c7106fb4805c61818d374e451b5cdf88d7e0d87a41e5175d08e789daab6daf4832ed4b055e9b7de4ad7516220c9da0c203bdc910
diff --git a/dev-util/strace/metadata.xml b/dev-util/strace/metadata.xml
new file mode 100644
index 000000000000..869980f0195f
--- /dev/null
+++ b/dev-util/strace/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>base-system@gentoo.org</email>
+ <name>Gentoo Base System</name>
+ </maintainer>
+ <use>
+ <flag name="aio">
+ Enable <pkg>dev-libs/libaio</pkg> support for tracing Asynchronous I/O operations
+ </flag>
+ <flag name="unwind">
+ Enable stack backtraces (-k flag) via <pkg>sys-libs/libunwind</pkg>
+ </flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">strace</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/strace/strace-4.13.ebuild b/dev-util/strace/strace-4.13.ebuild
new file mode 100644
index 000000000000..8cc44de60594
--- /dev/null
+++ b/dev-util/strace/strace-4.13.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit flag-o-matic eutils toolchain-funcs
+
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="git://git.code.sf.net/p/strace/code"
+ EGIT_PROJECT="${PN}"
+ inherit git-2 autotools
+else
+ SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz"
+ KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux ~arm-linux ~x86-linux"
+fi
+
+DESCRIPTION="A useful diagnostic, instructional, and debugging tool"
+HOMEPAGE="https://sourceforge.net/projects/strace/"
+
+LICENSE="BSD"
+SLOT="0"
+IUSE="aio perl static unwind"
+
+LIB_DEPEND="unwind? ( sys-libs/libunwind[static-libs(+)] )"
+# strace only uses the header from libaio to decode structs
+DEPEND="static? ( ${LIB_DEPEND} )
+ aio? ( >=dev-libs/libaio-0.3.106 )
+ sys-kernel/linux-headers"
+RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )
+ perl? ( dev-lang/perl )"
+
+src_prepare() {
+ if epatch_user || [[ ! -e configure ]] ; then
+ # git generation
+ ./xlat/gen.sh || die
+ ./generate_mpers_am.sh || die
+ eautoreconf
+ [[ ! -e CREDITS ]] && cp CREDITS{.in,}
+ fi
+
+ filter-lfs-flags # configure handles this sanely
+ use static && append-ldflags -static
+
+ export ac_cv_header_libaio_h=$(usex aio)
+ use elibc_musl && export ac_cv_header_stdc=no
+
+ # Stub out the -k test since it's known to be flaky. #545812
+ sed -i '1iexit 77' tests*/strace-k.test || die
+}
+
+src_configure() {
+ # Set up the default build settings, and then use the names strace expects.
+ tc-export_build_env BUILD_{CC,CPP}
+ local v bv
+ for v in CC CPP {C,CPP,LD}FLAGS ; do
+ bv="BUILD_${v}"
+ export "${v}_FOR_BUILD=${!bv}"
+ done
+
+ econf $(use_with unwind libunwind)
+}
+
+src_install() {
+ default
+ use perl || rm "${ED}"/usr/bin/strace-graph
+ dodoc CREDITS
+}
diff --git a/dev-util/strace/strace-4.16.ebuild b/dev-util/strace/strace-4.16.ebuild
new file mode 100644
index 000000000000..29011899d9d0
--- /dev/null
+++ b/dev-util/strace/strace-4.16.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit flag-o-matic eutils toolchain-funcs
+
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="git://git.code.sf.net/p/strace/code"
+ EGIT_PROJECT="${PN}"
+ inherit git-2 autotools
+else
+ SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz"
+ KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-linux ~arm-linux ~x86-linux"
+fi
+
+DESCRIPTION="A useful diagnostic, instructional, and debugging tool"
+HOMEPAGE="https://sourceforge.net/projects/strace/"
+
+LICENSE="BSD"
+SLOT="0"
+IUSE="aio perl static unwind"
+
+LIB_DEPEND="unwind? ( sys-libs/libunwind[static-libs(+)] )"
+# strace only uses the header from libaio to decode structs
+DEPEND="static? ( ${LIB_DEPEND} )
+ aio? ( >=dev-libs/libaio-0.3.106 )
+ sys-kernel/linux-headers"
+RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )
+ perl? ( dev-lang/perl )"
+
+src_prepare() {
+ if epatch_user || [[ ! -e configure ]] ; then
+ # git generation
+ ./xlat/gen.sh || die
+ ./generate_mpers_am.sh || die
+ eautoreconf
+ [[ ! -e CREDITS ]] && cp CREDITS{.in,}
+ fi
+
+ filter-lfs-flags # configure handles this sanely
+ use static && append-ldflags -static
+
+ export ac_cv_header_libaio_h=$(usex aio)
+ use elibc_musl && export ac_cv_header_stdc=no
+
+ # Stub out the -k test since it's known to be flaky. #545812
+ sed -i '1iexit 77' tests*/strace-k.test || die
+}
+
+src_configure() {
+ # Set up the default build settings, and then use the names strace expects.
+ tc-export_build_env BUILD_{CC,CPP}
+ local v bv
+ for v in CC CPP {C,CPP,LD}FLAGS ; do
+ bv="BUILD_${v}"
+ export "${v}_FOR_BUILD=${!bv}"
+ done
+
+ econf $(use_with unwind libunwind)
+}
+
+src_install() {
+ default
+ use perl || rm "${ED}"/usr/bin/strace-graph
+ dodoc CREDITS
+}
diff --git a/dev-util/strace/strace-4.17.ebuild b/dev-util/strace/strace-4.17.ebuild
new file mode 100644
index 000000000000..9ec77eb9b806
--- /dev/null
+++ b/dev-util/strace/strace-4.17.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit flag-o-matic eutils toolchain-funcs
+
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="git://git.code.sf.net/p/strace/code"
+ EGIT_PROJECT="${PN}"
+ inherit git-2 autotools
+else
+ SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz"
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux"
+fi
+
+DESCRIPTION="A useful diagnostic, instructional, and debugging tool"
+HOMEPAGE="https://sourceforge.net/projects/strace/"
+
+LICENSE="BSD"
+SLOT="0"
+IUSE="aio perl static unwind"
+
+LIB_DEPEND="unwind? ( sys-libs/libunwind[static-libs(+)] )"
+# strace only uses the header from libaio to decode structs
+DEPEND="static? ( ${LIB_DEPEND} )
+ aio? ( >=dev-libs/libaio-0.3.106 )
+ sys-kernel/linux-headers"
+RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )
+ perl? ( dev-lang/perl )"
+
+src_prepare() {
+ if epatch_user || [[ ! -e configure ]] ; then
+ # git generation
+ ./xlat/gen.sh || die
+ ./generate_mpers_am.sh || die
+ eautoreconf
+ [[ ! -e CREDITS ]] && cp CREDITS{.in,}
+ fi
+
+ filter-lfs-flags # configure handles this sanely
+ use static && append-ldflags -static
+
+ export ac_cv_header_libaio_h=$(usex aio)
+ use elibc_musl && export ac_cv_header_stdc=no
+
+ # Stub out the -k test since it's known to be flaky. #545812
+ sed -i '1iexit 77' tests*/strace-k.test || die
+}
+
+src_configure() {
+ # Set up the default build settings, and then use the names strace expects.
+ tc-export_build_env BUILD_{CC,CPP}
+ local v bv
+ for v in CC CPP {C,CPP,LD}FLAGS ; do
+ bv="BUILD_${v}"
+ export "${v}_FOR_BUILD=${!bv}"
+ done
+
+ econf $(use_with unwind libunwind)
+}
+
+src_install() {
+ default
+ use perl || rm "${ED}"/usr/bin/strace-graph
+ dodoc CREDITS
+}
diff --git a/dev-util/strace/strace-4.18.ebuild b/dev-util/strace/strace-4.18.ebuild
new file mode 100644
index 000000000000..5d4fba688f4b
--- /dev/null
+++ b/dev-util/strace/strace-4.18.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit flag-o-matic eutils toolchain-funcs
+
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="git://git.code.sf.net/p/strace/code"
+ EGIT_PROJECT="${PN}"
+ inherit git-2 autotools
+else
+ SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz"
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux"
+fi
+
+DESCRIPTION="A useful diagnostic, instructional, and debugging tool"
+HOMEPAGE="https://sourceforge.net/projects/strace/"
+
+LICENSE="BSD"
+SLOT="0"
+IUSE="aio perl static unwind"
+
+LIB_DEPEND="unwind? ( sys-libs/libunwind[static-libs(+)] )"
+# strace only uses the header from libaio to decode structs
+DEPEND="
+ static? ( ${LIB_DEPEND} )
+ aio? ( >=dev-libs/libaio-0.3.106 )
+ sys-kernel/linux-headers
+"
+RDEPEND="
+ !static? ( ${LIB_DEPEND//\[static-libs(+)]} )
+ perl? ( dev-lang/perl )
+"
+
+src_prepare() {
+ if epatch_user || [[ ! -e configure ]] ; then
+ # git generation
+ ./xlat/gen.sh || die
+ ./generate_mpers_am.sh || die
+ eautoreconf
+ [[ ! -e CREDITS ]] && cp CREDITS{.in,}
+ fi
+
+ filter-lfs-flags # configure handles this sanely
+ use static && append-ldflags -static
+
+ export ac_cv_header_libaio_h=$(usex aio)
+ use elibc_musl && export ac_cv_header_stdc=no
+
+ # Stub out the -k test since it's known to be flaky. #545812
+ sed -i '1iexit 77' tests*/strace-k.test || die
+}
+
+src_configure() {
+ # Set up the default build settings, and then use the names strace expects.
+ tc-export_build_env BUILD_{CC,CPP}
+ local v bv
+ for v in CC CPP {C,CPP,LD}FLAGS ; do
+ bv="BUILD_${v}"
+ export "${v}_FOR_BUILD=${!bv}"
+ done
+
+ econf $(use_with unwind libunwind)
+}
+
+src_install() {
+ default
+ use perl || rm "${ED}"/usr/bin/strace-graph
+ dodoc CREDITS
+}
diff --git a/dev-util/strace/strace-4.19.ebuild b/dev-util/strace/strace-4.19.ebuild
new file mode 100644
index 000000000000..5d4fba688f4b
--- /dev/null
+++ b/dev-util/strace/strace-4.19.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit flag-o-matic eutils toolchain-funcs
+
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="git://git.code.sf.net/p/strace/code"
+ EGIT_PROJECT="${PN}"
+ inherit git-2 autotools
+else
+ SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz"
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux"
+fi
+
+DESCRIPTION="A useful diagnostic, instructional, and debugging tool"
+HOMEPAGE="https://sourceforge.net/projects/strace/"
+
+LICENSE="BSD"
+SLOT="0"
+IUSE="aio perl static unwind"
+
+LIB_DEPEND="unwind? ( sys-libs/libunwind[static-libs(+)] )"
+# strace only uses the header from libaio to decode structs
+DEPEND="
+ static? ( ${LIB_DEPEND} )
+ aio? ( >=dev-libs/libaio-0.3.106 )
+ sys-kernel/linux-headers
+"
+RDEPEND="
+ !static? ( ${LIB_DEPEND//\[static-libs(+)]} )
+ perl? ( dev-lang/perl )
+"
+
+src_prepare() {
+ if epatch_user || [[ ! -e configure ]] ; then
+ # git generation
+ ./xlat/gen.sh || die
+ ./generate_mpers_am.sh || die
+ eautoreconf
+ [[ ! -e CREDITS ]] && cp CREDITS{.in,}
+ fi
+
+ filter-lfs-flags # configure handles this sanely
+ use static && append-ldflags -static
+
+ export ac_cv_header_libaio_h=$(usex aio)
+ use elibc_musl && export ac_cv_header_stdc=no
+
+ # Stub out the -k test since it's known to be flaky. #545812
+ sed -i '1iexit 77' tests*/strace-k.test || die
+}
+
+src_configure() {
+ # Set up the default build settings, and then use the names strace expects.
+ tc-export_build_env BUILD_{CC,CPP}
+ local v bv
+ for v in CC CPP {C,CPP,LD}FLAGS ; do
+ bv="BUILD_${v}"
+ export "${v}_FOR_BUILD=${!bv}"
+ done
+
+ econf $(use_with unwind libunwind)
+}
+
+src_install() {
+ default
+ use perl || rm "${ED}"/usr/bin/strace-graph
+ dodoc CREDITS
+}
diff --git a/dev-util/strace/strace-9999.ebuild b/dev-util/strace/strace-9999.ebuild
new file mode 100644
index 000000000000..5d4fba688f4b
--- /dev/null
+++ b/dev-util/strace/strace-9999.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit flag-o-matic eutils toolchain-funcs
+
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="git://git.code.sf.net/p/strace/code"
+ EGIT_PROJECT="${PN}"
+ inherit git-2 autotools
+else
+ SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz"
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux"
+fi
+
+DESCRIPTION="A useful diagnostic, instructional, and debugging tool"
+HOMEPAGE="https://sourceforge.net/projects/strace/"
+
+LICENSE="BSD"
+SLOT="0"
+IUSE="aio perl static unwind"
+
+LIB_DEPEND="unwind? ( sys-libs/libunwind[static-libs(+)] )"
+# strace only uses the header from libaio to decode structs
+DEPEND="
+ static? ( ${LIB_DEPEND} )
+ aio? ( >=dev-libs/libaio-0.3.106 )
+ sys-kernel/linux-headers
+"
+RDEPEND="
+ !static? ( ${LIB_DEPEND//\[static-libs(+)]} )
+ perl? ( dev-lang/perl )
+"
+
+src_prepare() {
+ if epatch_user || [[ ! -e configure ]] ; then
+ # git generation
+ ./xlat/gen.sh || die
+ ./generate_mpers_am.sh || die
+ eautoreconf
+ [[ ! -e CREDITS ]] && cp CREDITS{.in,}
+ fi
+
+ filter-lfs-flags # configure handles this sanely
+ use static && append-ldflags -static
+
+ export ac_cv_header_libaio_h=$(usex aio)
+ use elibc_musl && export ac_cv_header_stdc=no
+
+ # Stub out the -k test since it's known to be flaky. #545812
+ sed -i '1iexit 77' tests*/strace-k.test || die
+}
+
+src_configure() {
+ # Set up the default build settings, and then use the names strace expects.
+ tc-export_build_env BUILD_{CC,CPP}
+ local v bv
+ for v in CC CPP {C,CPP,LD}FLAGS ; do
+ bv="BUILD_${v}"
+ export "${v}_FOR_BUILD=${!bv}"
+ done
+
+ econf $(use_with unwind libunwind)
+}
+
+src_install() {
+ default
+ use perl || rm "${ED}"/usr/bin/strace-graph
+ dodoc CREDITS
+}
diff --git a/dev-util/stressapptest/Manifest b/dev-util/stressapptest/Manifest
new file mode 100644
index 000000000000..e9d0c16ee113
--- /dev/null
+++ b/dev-util/stressapptest/Manifest
@@ -0,0 +1,7 @@
+DIST stressapptest-1.0.7_p1.tar.xz 165876 SHA256 39183d4dd79ae37e7ad480a4b9254ff52bcc926e853e954df492b51db3ee3b04 SHA512 ac3c072eae6f13ba6608d2cee1ee33b5d27b078dbbcb9e7ae1e59507d4571e36a06dd0e19e4a1b705c916104e06be39aa93ebe607fe93d5669e8764c68904fc9 WHIRLPOOL 374a8c86dc2742187c001580ec335b72822f0ac44ba2694bdabf6991765126fedca8928862db56c827f24e9e11c5f7f8b6654d0e04a94ba5a4a284f608f28bf1
+DIST stressapptest-1.0.8.tar.gz 218485 SHA256 b0432f39055166156ed04eb234f3c226b17a42f802a3f81d76ee999838e205df SHA512 b5fde353d15958052219c3e505a22aa914e03a7fe96c3a0ac5025a4c730643f6fbdd5088a7cc0dd4618d4998151e2374507845110af8f2cdb43ccd4c87d48916 WHIRLPOOL 9a71c958b4b929623daf908b436f4d252b8b2234e2fa20286b36c7a3d8471d84ffbfd4da8b3b2b7d97f5a70a658e323a6b2ee6328e779a67e7277a29caed03ce
+EBUILD stressapptest-1.0.7_p1.ebuild 692 SHA256 266030e3745b06735f74bdbd5cd3ad10c1fed4248a874f117d144ea131f17d81 SHA512 f5986c263db46433b1cf8d9af4e945ee6d2cc4ad777bd3015e81df96c642299abcd7a0e213250fcf85ae31f96a09f731735612f6d8bbf66cf0d3fc2359a2ead0 WHIRLPOOL 4b6234cbb47e7432db1e59bf1a3f52e8ab3f7f3cf0e0e2e9c37c4cb070a5081cf58c969b869326f05c209d97314064351ef95db465021af5dd673b3832dde1f4
+EBUILD stressapptest-1.0.8.ebuild 610 SHA256 c856159189517a371cd4fd45270d535483e5bdbc30c9e16ea71f7618d580b7a4 SHA512 36404057a349a6a5e66525235960becaafa4ef7013937170cb04eafd8e7202b19fa5e17be018e5c8cb540407c4c757154b0e4cfe00a89d16fa891611398cd969 WHIRLPOOL 2f2376f59d98a6f472e11fd7f0c56d2498386986f65ac737f66dedd877074fe78c6178732f5599e70d409495be0ee8adbadf13f233f7d4ab381761f3f354b54e
+MISC ChangeLog 3388 SHA256 0268ab846553649057df077064767067e194a851902662e26eaa0645747719f1 SHA512 0112a5821d663ac0c9641f624e77de33e3cc6f490098847e6a7d9d5d929710351a5b978f3069bdfcb81bd15a67b2c8a6041a3ceee36db45410e1aed56f5265ef WHIRLPOOL bc3f501f83b418f404cf97f5a2bce617122c1eec218125cb407c1baa0f116d9e8a830f3ba0d13ee32f0e29f5c25db5305bdbf4b62c0506d22036ad8912c661fc
+MISC ChangeLog-2015 1818 SHA256 94ea0dc32dcae3b47e0a59c3f0c055d66aff93323b998764a37913ce833c61fa SHA512 dc455c44d01202338a47c0be8e4847d5785a0f1a4a72e80ccd291392de93206755c1a4e8d98de43adb48d764c4225e60780ccf07620a90e097afde13395aebbf WHIRLPOOL a814f5305eb651a443c7bbdeecc7a57a9c9d6acb7f6ce41909622a415242e52e161c2677552d06d321ccdca3c6f0fb20f97e33f9696dd4d2c51b23b83db38e08
+MISC metadata.xml 350 SHA256 4b12dc690ab9b4e4390ef10ac0e1f0711340c85cd9bdd2d0a61ab09a73ef7f30 SHA512 7df2f6c1ebb8bd68cc4580dc1a63cc3709ebb3e1aeee869de8ae3be643739d1d62955f8975af2f9c56d037618f9480925698a9b101da187aef4af7d9b83624ed WHIRLPOOL edf5655703edc43b430ab37312e3e061503d60aea684f41ae5c2b9873dea81f88844e67fa39f9ec1c1504878e3e4ab38506e80ab79489e94db2e28ff6000938c
diff --git a/dev-util/stressapptest/metadata.xml b/dev-util/stressapptest/metadata.xml
new file mode 100644
index 000000000000..5c0e460d8a46
--- /dev/null
+++ b/dev-util/stressapptest/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>vapier@gentoo.org</email>
+ <description>do whatever</description>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">stressapptest/stressapptest</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/stressapptest/stressapptest-1.0.7_p1.ebuild b/dev-util/stressapptest/stressapptest-1.0.7_p1.ebuild
new file mode 100644
index 000000000000..d8a17384024e
--- /dev/null
+++ b/dev-util/stressapptest/stressapptest-1.0.7_p1.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# This is the 1.0.7 release:
+# https://code.google.com/p/stressapptest/source/detail?r=44
+# With the one follow up fix applied (hence the p1).
+
+EAPI="4"
+
+inherit flag-o-matic
+
+DESCRIPTION="Stressful Application Test"
+HOMEPAGE="https://code.google.com/p/stressapptest/"
+SRC_URI="mirror://gentoo/${P}.tar.xz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~mips ~x86"
+IUSE="debug"
+
+RDEPEND="dev-libs/libaio"
+DEPEND="${RDEPEND}"
+
+src_configure() {
+ # Matches the configure & sat.cc logic
+ use debug || append-cppflags -DNDEBUG -DCHECKOPTS
+ econf --disable-default-optimizations
+}
diff --git a/dev-util/stressapptest/stressapptest-1.0.8.ebuild b/dev-util/stressapptest/stressapptest-1.0.8.ebuild
new file mode 100644
index 000000000000..927f546d91ed
--- /dev/null
+++ b/dev-util/stressapptest/stressapptest-1.0.8.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit flag-o-matic
+
+DESCRIPTION="Stressful Application Test"
+HOMEPAGE="https://github.com/stressapptest/stressapptest"
+SRC_URI="https://github.com/stressapptest/stressapptest/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~mips ~x86"
+IUSE="debug"
+
+RDEPEND="dev-libs/libaio"
+DEPEND="${RDEPEND}"
+
+src_configure() {
+ # Matches the configure & sat.cc logic.
+ use debug || append-cppflags -DNDEBUG -DCHECKOPTS
+ econf --disable-default-optimizations
+}
diff --git a/dev-util/stubgen/Manifest b/dev-util/stubgen/Manifest
new file mode 100644
index 000000000000..69f4638f57bc
--- /dev/null
+++ b/dev-util/stubgen/Manifest
@@ -0,0 +1,5 @@
+DIST stubgen-2.08.tar.gz 104152 SHA256 0a47ebd80dc610afd801195b6f8de9e47331e2723542bd8431c306458066317b SHA512 daf8a83963fbc8b6857036a3f67a25031fc9e5f032ffedb1e041246354ede2363f5324b6f52ffe69fb41caa177eeca0a1c120f235e460043da1db5fb78fa5e41 WHIRLPOOL afde6c1413127a03ef27c5b0aaae72aea88f6f1a96d704f1daa545bcc5ffc6bded394b2afe563fbac8f4004f4f14f21668f440d7597e77a8289e3cbae98a8874
+EBUILD stubgen-2.08.ebuild 531 SHA256 95aeb203f75616ae0fe7f85d7e553c570830c971130288b15fcd1068b46b9402 SHA512 3e64445ddb9037bdac22cbb4dc93bd7c2d1166de01e4dca09c51cd107a77ad810d28b960a0e97c875401d347065d24914fea8da49294850ab5f4099409b83482 WHIRLPOOL 13c1d368b3297da01cbd6dcf1eef7076a3850cb9583b47b9b32001d6f1df26742bf38f188ae2e60e12c48979cb81795e05db3ccb598a79b36213e4052380aea0
+MISC ChangeLog 2688 SHA256 d1b257f237d9a57e36e71e09e0ccd4f86ce1399812596e80f33c16106f31ed4c SHA512 df54d02a0dca89c07963bcf8fa66bc8f45afb2320c9af95973452c053c7f67c06a819b4e9a7c3b4a7bf2cc513b7ac0d63f12e328284208d1d8f126893ba38eca WHIRLPOOL 57c14ae3df5ef1b9e72e6383eca905494143a6889e2db74e77657ccee264c56b9daf2dfeb306a482a8f72eb90728f92477b2043941db6522cf01d74cfe7200f4
+MISC ChangeLog-2015 551 SHA256 479dcc0df7d8e9e596243c68b4155e47b2e3889f79352c056a55f2c349c76ddb SHA512 7a73533c8cc4fd52cad703e44c4d604214eb15f646c124e820a05668a54037d0b1804e83b24f74ae8c97019c5e34ba948bf815c74f7c2b8887736026fb9598be WHIRLPOOL 9f3ae965743866961c5ba3d05b79f198aaa6ca8ae53c6569d43185d5c938a38e41993ec046b2c8bb3d68f68896019a65f407bdc04531a2f290016fec27c512c8
+MISC metadata.xml 139 SHA256 5cdc1888ebc8807b9a37b1d33429c61cabe7415a4f240e21a4c2ff8eca7a34ed SHA512 8be912ace7468a4396eb1da00a9785030a8ce35da4357a01591876a1056fd45e44da65de2af3e1eb0506ce6551714962c40c3ae5a3aefa2ad231de35af2519be WHIRLPOOL 620431014dd4fb752c3d46d11904ecb2c6d4525f5b4e30f4f778a3b74d3f7187ae4ccd856ebd7eabb48ce261b21849c732928fe647edce024a3fdc082d8f8630
diff --git a/dev-util/stubgen/metadata.xml b/dev-util/stubgen/metadata.xml
new file mode 100644
index 000000000000..097975e3adc2
--- /dev/null
+++ b/dev-util/stubgen/metadata.xml
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+</pkgmetadata>
diff --git a/dev-util/stubgen/stubgen-2.08.ebuild b/dev-util/stubgen/stubgen-2.08.ebuild
new file mode 100644
index 000000000000..d830848e7908
--- /dev/null
+++ b/dev-util/stubgen/stubgen-2.08.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+inherit toolchain-funcs
+
+DESCRIPTION="a member function stub generator for C++"
+HOMEPAGE="http://www.radwin.org/michael/projects/stubgen/"
+SRC_URI="http://www.radwin.org/michael/projects/${PN}/dist/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+src_compile() {
+ make CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LFLAGS="${LDFLAGS}"
+}
+
+src_install() {
+ dobin ${PN}
+ dodoc ChangeLog README
+ doman ${PN}.1
+}
diff --git a/dev-util/suse-build/Manifest b/dev-util/suse-build/Manifest
new file mode 100644
index 000000000000..ed023ade0bd4
--- /dev/null
+++ b/dev-util/suse-build/Manifest
@@ -0,0 +1,9 @@
+AUX suse-build-2014.09.18-libexec-paths.patch 14173 SHA256 b3844618969ab85e6c1041cfdd2d2d96311a60dcd3cf59da8640b8df394d63b7 SHA512 e808c32eeb0c29c9b7db97129634c9fc35a5bb7fc376601051329cd2508aad2a0342404cffb299dde515f4792d26c4be460c738bea90574d113241821339fe69 WHIRLPOOL 513c7a34504f1d578b10d6e8ff2fbe4683002eb6d16d429fe16ffd81d730244647039f45af8b22cfc64fefc80e10bef3f6a9116fa0cf5a2c47fb8c6f6ed218e9
+DIST obs-build-20140918.tar.gz 192320 SHA256 3b8263fa9f5320d34bcf7c731b5eda9bcedda5f65c2583a57f8640a925dcdbcf SHA512 3eddb6d131cbc405200add39c681365abc704965adb39f52a03936653dd9439d479f6ad8ee7492248399bb015f101c0e41396b70a205bde2cceea2c6646f7c51 WHIRLPOOL 79be4deca3806c2ffbbf2cb55d8e71e9f630b580fa87cfe2bd13bc81634cce83276701ca5bfb464c8bf3f0bbc01229716dbfb5d1da99c2c17d56d2666ef2dbfb
+DIST obs-build-20151105.tar.gz 231249 SHA256 e498bd32223b88bece019abfa23501bca7343ce1e8156e00f94200bb3ff24079 SHA512 7b6be4a0d6cd82501c05e41e2a08fa2ad30fe28f28ed72d06b2e4acfdb4d5d6759254291510e8797d214e6330d5c186a85d0f104454d0cde2221d94451bbfb23 WHIRLPOOL 86c4a59de6de6a9b1092a082d9ec15222cf55ace638f8843260485f19c90085a82dcd41ebe71fc31a2f130a5b30d2783624189333ba0e88cfb9651475a9f3b64
+EBUILD suse-build-2014.09.18.ebuild 1457 SHA256 42ab8129f2af25ad754df313c5fbe52c89a621a67c82f6d73328ba22b8f49077 SHA512 256f57f73173d20d9e988ac5ceec3b621373e402acd744494b78ff80fa3df6ef4e475ba3936c3290d74abfa68c098a1c72894132c8a5a119caf2e55450e06fce WHIRLPOOL 68f69b7eb4e2c7e46a027feb152d8223d06069b3af6a0cc5c268c6d4a34100fa39c90a054e1f7faaec7bb3b93b6f21b7471960642455b70d99c2eb2e373e7e5a
+EBUILD suse-build-2015.11.05.ebuild 1469 SHA256 7e82a7d6a8672ebc695769c35bc4d9c86be5dd9708e8311b7600723a554e4220 SHA512 cf34d0f099035833b5bbbc066086ae5c457b60b3648bf7478a6d0f6f25f687738c8658f595fe23f501d3c1297b95825b8c7f116ddf9b03689c46d97b52a21c34 WHIRLPOOL f1f4cb19826b53918662dce158b53e11d9d462c53a533ee5969a5c516b1d936352e7c856f1742509c0a0768491801ba3792fc1e0f406d4853d06153f3f8081cb
+EBUILD suse-build-9999.ebuild 1469 SHA256 7e82a7d6a8672ebc695769c35bc4d9c86be5dd9708e8311b7600723a554e4220 SHA512 cf34d0f099035833b5bbbc066086ae5c457b60b3648bf7478a6d0f6f25f687738c8658f595fe23f501d3c1297b95825b8c7f116ddf9b03689c46d97b52a21c34 WHIRLPOOL f1f4cb19826b53918662dce158b53e11d9d462c53a533ee5969a5c516b1d936352e7c856f1742509c0a0768491801ba3792fc1e0f406d4853d06153f3f8081cb
+MISC ChangeLog 3394 SHA256 7aa16cf4b0b7040fadabd2b01ab44eb7336dc9fa99a1f88a619019ee4453371f SHA512 9361a384e222284f36b98d47f41d11a9653f441de6a9299708a521b9c7f5c1c1822673297e0955da937dac498c32caa24841f323a3b23ac32255256d3b8ef734 WHIRLPOOL ad4e570bb4702e1ba7737ba4ed5425ea9a77e63c283da62c36b3e4a1d4d200caa252b984dc99ea7a13d9f85273d015c603824f8d23234e4d3c430f0f7ce52a50
+MISC ChangeLog-2015 5802 SHA256 9a20ec8e962a86d421d610e796c94e6f8457bb01e15d29533aae8a47fcf7991a SHA512 07f4bcf80a48b794514278ff74b2de3ff49ef230ec092267385eac26274365f8e33be9db655f7bccb44c94e2626b794a9938cc91db5c5f621507e9789037c893 WHIRLPOOL b56ea6b01f23b759c9414d2c4dfe67744aa4efefa9ffe350a62a39d9e81981854ab9034df301794b4da4ce7aba3c02ea75dc80ad848a06f16fc7f71387629aa3
+MISC metadata.xml 501 SHA256 e42e7ab464bcc3a50e064abfb512de3d47c7f14fc08051eb5ceec8be5bfc6cbe SHA512 1c56251b6dc033aa6fa01e196dbb0a6050a2542504ef5f415c9e758f21ff05b9886ce73826778ed1e49e44af5ea53d594868adb885e86e6a61c9640485dc5f81 WHIRLPOOL 7eb57068897169de41013e2880ae8b44b6b1cf2194d3d00eeed3c03f2130a702da0d8fb81c3627cf050d3dc016aeb9f9029858dea9907e04116546e78d6854a5
diff --git a/dev-util/suse-build/files/suse-build-2014.09.18-libexec-paths.patch b/dev-util/suse-build/files/suse-build-2014.09.18-libexec-paths.patch
new file mode 100644
index 000000000000..92bce8090858
--- /dev/null
+++ b/dev-util/suse-build/files/suse-build-2014.09.18-libexec-paths.patch
@@ -0,0 +1,449 @@
+ build | 18 +++++++++---------
+ build-recipe-kiwi | 4 ++--
+ build-recipe-livebuild | 4 ++--
+ build-recipe-spec | 8 ++++----
+ changelog2spec | 2 +-
+ createarchdeps | 2 +-
+ createrepomddeps | 2 +-
+ createrpmdeps | 2 +-
+ createyastdeps | 2 +-
+ createzyppdeps | 2 +-
+ download | 2 +-
+ expanddeps | 4 ++--
+ getbinaryid | 2 +-
+ init_buildsystem | 2 +-
+ initvm.c | 13 +++++++++----
+ mkdrpms | 2 +-
+ order | 4 ++--
+ queryconfig | 4 ++--
+ spectool | 2 +-
+ substitutedeps | 4 ++--
+ test/common | 2 +-
+ 21 files changed, 46 insertions(+), 41 deletions(-)
+
+diff --git a/build b/build
+old mode 100755
+new mode 100644
+index 9f9fb72..fcfec70
+--- a/build
++++ b/build
+@@ -13,7 +13,7 @@ if test "$0" = /sbin/init ; then
+ fi
+
+ test -z "$BUILD_DIR" -a -e /.build/build.data -a -z "$BUILD_IGNORE_2ND_STAGE" && BUILD_DIR=/.build
+-test -z "$BUILD_DIR" && BUILD_DIR=/usr/lib/build
++test -z "$BUILD_DIR" && BUILD_DIR=/usr/libexec/suse-build
+ test -z "$BUILD_ROOT" && BUILD_ROOT=/var/tmp/build-root
+ test -z "$CONFIG_DIR" && CONFIG_DIR="$BUILD_DIR/configs"
+
+@@ -493,8 +493,8 @@ create_baselibs() {
+ if test -e $BUILD_ROOT$TOPDIR/SOURCES/baselibs.conf ; then
+ BASELIBS_CFG="-c $TOPDIR/SOURCES/baselibs.conf"
+ fi
+- if test -e $BUILD_ROOT/usr/lib/build/baselibs_global.conf; then
+- BASELIBS_GLOBAL="-c /usr/lib/build/baselibs_global.conf"
++ if test -e $BUILD_ROOT/usr/libexec/suse-build/baselibs_global.conf; then
++ BASELIBS_GLOBAL="-c /usr/libexec/suse-build/baselibs_global.conf"
+ fi
+ pkgs=($RPMS)
+ fi
+@@ -503,14 +503,14 @@ create_baselibs() {
+ # don't use -R as extracted sources, build root etc might be below $TOPDIR
+ chown "$ABUILD_UID:$ABUILD_GID" "$BUILD_ROOT$TOPDIR"/* "$BUILD_ROOT$TOPDIR"/RPMS/* || true
+
+- local mkbaselibs="/usr/lib/build/mkbaselibs"
++ local mkbaselibs="/usr/libexec/suse-build/mkbaselibs"
+ local whichone=''
+ # $BUILD_DIR is set to /.build when using a vm. So we need to
+- # hardcode /usr/lib/build instead of $BUILD_DIR to prefer
++ # hardcode /usr/libexec/suse-build instead of $BUILD_DIR to prefer
+ # mkbaselibs from the distro.
+ if test -f $BUILD_ROOT$mkbaselibs; then
+- if test -z "$BASELIBS_CFG" -a -e $BUILD_ROOT/usr/lib/build/baselibs.conf ; then
+- BASELIBS_CFG="-c /usr/lib/build/baselibs.conf"
++ if test -z "$BASELIBS_CFG" -a -e $BUILD_ROOT/usr/libexec/suse-build/baselibs.conf ; then
++ BASELIBS_CFG="-c /usr/libexec/suse-build/baselibs.conf"
+ fi
+ else
+ if test "$CREATE_BASELIBS" = 'internal'; then
+@@ -1274,7 +1274,7 @@ if test -n "$RPMS" -a -n "$BUILD_USER_ABUILD_USED" ; then
+ recipe_check_file_owners
+ fi
+
+-if test -n "$RPMS" -a -d "$BUILD_ROOT/usr/lib/build/checks" ; then
++if test -n "$RPMS" -a -d "$BUILD_ROOT/usr/libexec/suse-build/checks" ; then
+ export DO_RPM_REMOVE=true
+ # find package name
+ export PNAME=
+@@ -1282,7 +1282,7 @@ if test -n "$RPMS" -a -d "$BUILD_ROOT/usr/lib/build/checks" ; then
+ test -f "$SRPM" && PNAME=`rpm --nodigest --nosignature -qp --qf "%{NAME}" $SRPM`
+ done
+ mount -n -tproc none $BUILD_ROOT/proc 2> /dev/null
+- for CHECKSCRIPT in $BUILD_ROOT/usr/lib/build/checks/* ; do
++ for CHECKSCRIPT in $BUILD_ROOT/usr/libexec/suse-build/checks/* ; do
+ echo "... running ${CHECKSCRIPT##*/}"
+ $CHECKSCRIPT || cleanup_and_exit 1
+ done
+diff --git a/build-recipe-kiwi b/build-recipe-kiwi
+index 95afd3f..23cafb7 100644
+--- a/build-recipe-kiwi
++++ b/build-recipe-kiwi
+@@ -459,8 +459,8 @@ recipe_build_kiwi() {
+ fi
+
+ # Hook for running post kiwi build scripts like QA scripts if installed
+- if test -x $BUILD_ROOT/usr/lib/build/kiwi_post_run ; then
+- chroot $BUILD_ROOT su -c /usr/lib/build/kiwi_post_run || cleanup_and_exit 1
++ if test -x $BUILD_ROOT/usr/libexec/suse-build/kiwi_post_run ; then
++ chroot $BUILD_ROOT su -c /usr/libexec/suse-build/kiwi_post_run || cleanup_and_exit 1
+ fi
+ }
+
+diff --git a/build-recipe-livebuild b/build-recipe-livebuild
+index 6ae7046..c426ea0 100644
+--- a/build-recipe-livebuild
++++ b/build-recipe-livebuild
+@@ -172,9 +172,9 @@ recipe_build_livebuild() {
+ # TODO: Add the repository public key
+ # cp ... $BUILD_ROOT/$TOPDIR/$LIVEBUILD_ROOT/config/archives/debian.key
+
+- if [ -x $BUILD_ROOT/usr/lib/build/livebuild_pre_run ] ; then
++ if [ -x $BUILD_ROOT/usr/libexec/suse-build/livebuild_pre_run ] ; then
+ echo "Running OBS build livebuild_pre_run hook"
+- chroot $BUILD_ROOT su -c "/usr/lib/build/livebuild_pre_run" - root \
++ chroot $BUILD_ROOT su -c "/usr/libexec/suse-build/livebuild_pre_run" - root \
+ < /dev/null || cleanup_and_exit 1
+ fi
+
+diff --git a/build-recipe-spec b/build-recipe-spec
+index b120f02..7a0b424 100644
+--- a/build-recipe-spec
++++ b/build-recipe-spec
+@@ -194,10 +194,10 @@ recipe_run_rpmlint() {
+ }
+
+ recipe_compare_oldpackages() {
+- if test -x "$BUILD_ROOT/usr/lib/build/same-build-result.sh" ; then
++ if test -x "$BUILD_ROOT/usr/libexec/suse-build/same-build-result.sh" ; then
+ echo "... comparing built packages with the former built"
+ mount -n -tproc none $BUILD_ROOT/proc 2> /dev/null
+- if chroot $BUILD_ROOT /usr/lib/build/same-build-result.sh /.build.oldpackages "$TOPDIR/RPMS" "$TOPDIR/SRPMS"; then
++ if chroot $BUILD_ROOT /usr/libexec/suse-build/same-build-result.sh /.build.oldpackages "$TOPDIR/RPMS" "$TOPDIR/SRPMS"; then
+ chroot $BUILD_ROOT touch /.build/.same_result_marker
+ # XXX: dirty build service hack. fix bs_worker. Search for
+ # 'same_result_marker' for traces of a first try to get rid of this
+@@ -210,9 +210,9 @@ recipe_compare_oldpackages() {
+ }
+
+ recipe_create_deltarpms() {
+- if test -x "$BUILD_ROOT/usr/bin/makedeltarpm" -a -x $BUILD_ROOT/usr/lib/build/mkdrpms ; then
++ if test -x "$BUILD_ROOT/usr/bin/makedeltarpm" -a -x $BUILD_ROOT/usr/libexec/suse-build/mkdrpms ; then
+ echo "... creating delta rpms"
+ ds=("$BUILD_ROOT/$TOPDIR"/RPMS/* "$BUILD_ROOT$TOPDIR/SRPMS")
+- chroot $BUILD_ROOT /usr/lib/build/mkdrpms /.build.oldpackages "${ds[@]#$BUILD_ROOT}"
++ chroot $BUILD_ROOT /usr/libexec/suse-build/mkdrpms /.build.oldpackages "${ds[@]#$BUILD_ROOT}"
+ fi
+ }
+diff --git a/changelog2spec b/changelog2spec
+old mode 100755
+new mode 100644
+index 4b94798..b87f4e1
+--- a/changelog2spec
++++ b/changelog2spec
+@@ -5,7 +5,7 @@
+ #
+
+ BEGIN {
+- unshift @INC, ($::ENV{'BUILD_DIR'} || '/usr/lib/build');
++ unshift @INC, ($::ENV{'BUILD_DIR'} || '/usr/libexec/suse-build');
+ }
+
+ use Date::Parse;
+diff --git a/createarchdeps b/createarchdeps
+old mode 100755
+new mode 100644
+index 94efdb1..5e6795c
+--- a/createarchdeps
++++ b/createarchdeps
+@@ -3,7 +3,7 @@
+ # Archlinux support, based on the GSoC work of Nikolay Rysev <mad.f3ka@gmail.com>
+
+ BEGIN {
+- unshift @INC, ($::ENV{"BUILD_DIR"} || "/usr/lib/build");
++ unshift @INC, ($::ENV{"BUILD_DIR"} || "/usr/libexec/suse-build");
+ }
+
+ use strict;
+diff --git a/createrepomddeps b/createrepomddeps
+old mode 100755
+new mode 100644
+index fad84e5..f2292a6
+--- a/createrepomddeps
++++ b/createrepomddeps
+@@ -1,7 +1,7 @@
+ #!/usr/bin/perl -w
+
+ BEGIN {
+- unshift @INC, ($::ENV{'BUILD_DIR'} || '/usr/lib/build');
++ unshift @INC, ($::ENV{'BUILD_DIR'} || '/usr/libexec/suse-build');
+ }
+
+ use strict;
+diff --git a/createrpmdeps b/createrpmdeps
+old mode 100755
+new mode 100644
+index c8c796d..c890df1
+--- a/createrpmdeps
++++ b/createrpmdeps
+@@ -1,7 +1,7 @@
+ #!/usr/bin/perl -w
+
+ BEGIN {
+- unshift @INC, ($::ENV{'BUILD_DIR'} || '/usr/lib/build');
++ unshift @INC, ($::ENV{'BUILD_DIR'} || '/usr/libexec/suse-build');
+ }
+
+ use Build;
+diff --git a/createyastdeps b/createyastdeps
+old mode 100755
+new mode 100644
+index 43c83e7..094c532
+--- a/createyastdeps
++++ b/createyastdeps
+@@ -1,7 +1,7 @@
+ #!/usr/bin/perl -w
+
+ BEGIN {
+- unshift @INC, ($::ENV{'BUILD_DIR'} || '/usr/lib/build');
++ unshift @INC, ($::ENV{'BUILD_DIR'} || '/usr/libexec/suse-build');
+ }
+
+ use Build;
+diff --git a/createzyppdeps b/createzyppdeps
+index 9abf693..e78937c 100755
+--- a/createzyppdeps
++++ b/createzyppdeps
+@@ -1,7 +1,7 @@
+ #!/usr/bin/perl -w
+
+ BEGIN {
+- unshift @INC, ($::ENV{'BUILD_DIR'} || '/usr/lib/build');
++ unshift @INC, ($::ENV{'BUILD_DIR'} || '/usr/libexec/suse-build');
+ }
+
+ use strict;
+diff --git a/download b/download
+old mode 100755
+new mode 100644
+index b0a7c1f..d08770f
+--- a/download
++++ b/download
+@@ -3,7 +3,7 @@
+ use Net::SSL ();
+ BEGIN {
+ $ENV{PERL_LWP_SSL_VERIFY_HOSTNAME} = 0,
+- unshift @INC, ($::ENV{'BUILD_DIR'} || '/usr/lib/build');
++ unshift @INC, ($::ENV{'BUILD_DIR'} || '/usr/libexec/suse-build');
+ }
+
+ use LWP::UserAgent;
+diff --git a/expanddeps b/expanddeps
+old mode 100755
+new mode 100644
+index 48116d8..04b9c20
+--- a/expanddeps
++++ b/expanddeps
+@@ -1,7 +1,7 @@
+ #!/usr/bin/perl -w
+
+ BEGIN {
+- unshift @INC, ($::ENV{'BUILD_DIR'} || '/usr/lib/build');
++ unshift @INC, ($::ENV{'BUILD_DIR'} || '/usr/libexec/suse-build');
+ }
+
+ use strict;
+@@ -10,7 +10,7 @@ use Build;
+
+ my ($dist, $rpmdeps, $archs, $configdir, $useusedforbuild, $installonly, $noinstall);
+
+-$configdir = ($::ENV{'BUILD_DIR'} || '/usr/lib/build') . '/configs';
++$configdir = ($::ENV{'BUILD_DIR'} || '/usr/libexec/suse-build') . '/configs';
+
+ while (@ARGV) {
+ if ($ARGV[0] eq '--dist') {
+diff --git a/getbinaryid b/getbinaryid
+old mode 100755
+new mode 100644
+index 55c57f6..8f06579
+--- a/getbinaryid
++++ b/getbinaryid
+@@ -1,7 +1,7 @@
+ #!/usr/bin/perl
+
+ BEGIN {
+- unshift @INC, ($::ENV{'BUILD_DIR'} || '/usr/lib/build');
++ unshift @INC, ($::ENV{'BUILD_DIR'} || '/usr/libexec/suse-build');
+ }
+
+ use Build;
+diff --git a/init_buildsystem b/init_buildsystem
+old mode 100755
+new mode 100644
+index 9fec7aa..21c5d4f
+--- a/init_buildsystem
++++ b/init_buildsystem
+@@ -13,7 +13,7 @@
+ # needed globals variables
+ #
+ export SRC
+-export BUILD_DIR=${BUILD_DIR:-/usr/lib/build}
++export BUILD_DIR=${BUILD_DIR:-/usr/libexec/suse-build}
+
+ export YAST_IS_RUNNING=instsys
+
+diff --git a/initvm.c b/initvm.c
+index 55686ea..f922eb4 100644
+--- a/initvm.c
++++ b/initvm.c
+@@ -54,9 +54,10 @@ const int n_fields = 8;
+ #define SYSFS_BINFMT_MISC_REG "/proc/sys/fs/binfmt_misc/register"
+ #define SYSFS_BINFMT_MISC_STAT "/proc/sys/fs/binfmt_misc/status"
+
+-/* /usr/lib/build/x paths are copied to /.build inside a virtual machine */
++/* /usr/libexec/suse-build/x paths are copied to /.build inside a virtual machine */
+ #define BINFMT_REGF_0 "/.build/qemu-reg"
+-#define BINFMT_REGF_1 "/usr/lib/build/qemu-reg"
++#define BINFMT_REGF_1 "/usr/libexec/suse-build/qemu-reg"
++#define BINFMT_REGF_2 "/usr/libexec/suse-build/qemu-reg"
+ #define BUILD "/.build/build"
+
+ /* useful constant arrays */
+@@ -324,9 +325,13 @@ int main(int argc, char* argv[], char* env[])
+ fprintf(stderr, "%s: failed. Trying alternate binfmt file\n",
+ BINFMT_REGF_0);
+ if (!binfmt_register(BINFMT_REGF_1, SYSFS_BINFMT_MISC_REG)) {
+- fprintf(stderr, "%s: binfmt registration failed\n",
++ fprintf(stderr, "%s: failed. Trying alternate binfmt file\n",
+ BINFMT_REGF_1);
+- exit(1);
++ if (!binfmt_register(BINFMT_REGF_2, SYSFS_BINFMT_MISC_REG)) {
++ fprintf(stderr, "%s: binfmt registration failed\n",
++ BINFMT_REGF_2);
++ exit(1);
++ }
+ }
+ }
+ }
+diff --git a/mkdrpms b/mkdrpms
+old mode 100755
+new mode 100644
+index b3c13b3..11b929c
+--- a/mkdrpms
++++ b/mkdrpms
+@@ -1,7 +1,7 @@
+ #!/usr/bin/perl -w
+
+ BEGIN {
+- unshift @INC, '/usr/lib/build';
++ unshift @INC, '/usr/libexec/suse-build';
+ unshift @INC, $::ENV{'BUILD_DIR'} if $::ENV{'BUILD_DIR'};
+ }
+
+diff --git a/order b/order
+old mode 100755
+new mode 100644
+index 2236b46..246b9fd
+--- a/order
++++ b/order
+@@ -1,7 +1,7 @@
+ #!/usr/bin/perl -w
+
+ BEGIN {
+- unshift @INC, ($::ENV{'BUILD_DIR'} || '/usr/lib/build');
++ unshift @INC, ($::ENV{'BUILD_DIR'} || '/usr/libexec/suse-build');
+ }
+
+ use Build;
+@@ -9,7 +9,7 @@ use strict;
+
+ my ($dist, $archs, $configdir, $manifest);
+
+-$configdir = ($::ENV{'BUILD_DIR'} || '/usr/lib/build') . '/configs';
++$configdir = ($::ENV{'BUILD_DIR'} || '/usr/libexec/suse-build') . '/configs';
+
+ while (@ARGV) {
+ if ($ARGV[0] eq '--dist') {
+diff --git a/queryconfig b/queryconfig
+index f4d383c..bb1e018 100755
+--- a/queryconfig
++++ b/queryconfig
+@@ -1,7 +1,7 @@
+ #!/usr/bin/perl -w
+
+ BEGIN {
+- unshift @INC, ($::ENV{'BUILD_DIR'} || '/usr/lib/build');
++ unshift @INC, ($::ENV{'BUILD_DIR'} || '/usr/libexec/suse-build');
+ }
+
+ use strict;
+@@ -10,7 +10,7 @@ use Build;
+
+ my ($dist, $archs, $configdir, $debug, $type, $argument);
+
+-$configdir = ($::ENV{'BUILD_DIR'} || '/usr/lib/build') . '/configs';
++$configdir = ($::ENV{'BUILD_DIR'} || '/usr/libexec/suse-build') . '/configs';
+
+ while (@ARGV) {
+ if ($ARGV[0] eq '--dist') {
+diff --git a/spectool b/spectool
+old mode 100755
+new mode 100644
+index ef05859..24bd500
+--- a/spectool
++++ b/spectool
+@@ -116,7 +116,7 @@ the algorithm is prepended with colon to the check sum.
+ my $builddir;
+
+ BEGIN {
+- $builddir = ($::ENV{'BUILD_DIR'} || '/usr/lib/build');
++ $builddir = ($::ENV{'BUILD_DIR'} || '/usr/libexec/suse-build');
+ unshift @INC, $builddir;
+ }
+
+diff --git a/substitutedeps b/substitutedeps
+old mode 100755
+new mode 100644
+index 54e540c..d327c42
+--- a/substitutedeps
++++ b/substitutedeps
+@@ -1,7 +1,7 @@
+ #!/usr/bin/perl -w
+
+ BEGIN {
+- unshift @INC, ($::ENV{'BUILD_DIR'} || '/usr/lib/build');
++ unshift @INC, ($::ENV{'BUILD_DIR'} || '/usr/libexec/suse-build');
+ }
+
+ use strict;
+@@ -19,7 +19,7 @@ sub expand {
+
+ my ($dist, $buildroot, $rpmdeps, $archs, $configdir, $release, $changelog);
+
+-$configdir = ($::ENV{'BUILD_DIR'} || '/usr/lib/build') . '/configs';
++$configdir = ($::ENV{'BUILD_DIR'} || '/usr/libexec/suse-build') . '/configs';
+
+ while (@ARGV) {
+ if ($ARGV[0] eq '--root') {
+diff --git a/test/common b/test/common
+index 45c0da2..86a062b 100644
+--- a/test/common
++++ b/test/common
+@@ -22,7 +22,7 @@ if [ -e ${0%/*}/config.local ]; then
+ . ${0%/*}/config.local
+ fi
+
+-: ${BUILD_DIR:=/usr/lib/build}
++: ${BUILD_DIR:=/usr/libexec/suse-build}
+
+ #if [ ! -e "$build_vm_img" ]; then
+ # sudo dd if=/dev/zero of="$build_vm_img" bs=512 count=0 seek=$((build_vm_image_size*2*1024))
diff --git a/dev-util/suse-build/metadata.xml b/dev-util/suse-build/metadata.xml
new file mode 100644
index 000000000000..8b87c4da4729
--- /dev/null
+++ b/dev-util/suse-build/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="project">
+ <email>suse@gentoo.org</email>
+ <name>SUSE</name>
+ </maintainer>
+ <use>
+ <flag name="symlink">Provide compatibility symlinks with original openSUSE package (might clash with other packages)</flag>
+ </use>
+ <longdescription lang="en">
+Script for building RPMs for SUSE Linux in a chroot environment.
+</longdescription>
+</pkgmetadata>
diff --git a/dev-util/suse-build/suse-build-2014.09.18.ebuild b/dev-util/suse-build/suse-build-2014.09.18.ebuild
new file mode 100644
index 000000000000..8861aedd9072
--- /dev/null
+++ b/dev-util/suse-build/suse-build-2014.09.18.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+EGIT_REPO_URI="https://github.com/openSUSE/obs-build.git"
+
+if [[ "${PV}" == "9999" ]]; then
+ EXTRA_ECLASS="git-2"
+else
+ OBS_PACKAGE="build"
+ OBS_PROJECT="openSUSE:Tools"
+ EXTRA_ECLASS="obs-download"
+fi
+
+inherit eutils ${EXTRA_ECLASS}
+unset EXTRA_ECLASS
+
+DESCRIPTION="Script to build SUSE Linux RPMs"
+HOMEPAGE="https://build.opensuse.org/package/show/openSUSE:Tools/build"
+
+[[ "${PV}" == "9999" ]] || SRC_URI="${OBS_URI}/${PN/suse/obs}-${PV//.}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="symlink"
+[[ "${PV}" == "9999" ]] || \
+KEYWORDS="amd64 x86"
+
+RDEPEND="
+ virtual/perl-Digest-MD5
+ virtual/perl-Getopt-Long
+ dev-perl/XML-Parser
+ dev-perl/TimeDate
+ app-shells/bash
+ app-arch/cpio
+ app-arch/rpm
+"
+
+S="${WORKDIR}/${PN/suse/obs}-${PV//.}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-libexec-paths.patch
+}
+
+src_compile() { :; }
+
+src_install() {
+ emake DESTDIR="${ED}" pkglibdir=/usr/libexec/suse-build install
+ cd "${ED}"/usr
+ find bin -type l | while read i; do
+ mv "${i}" "${i/bin\//bin/suse-}"
+ use !symlink || dosym "${i/bin\//suse-}" "/usr/${i}"
+ done
+ find share/man/man1 -type f | while read i; do
+ mv "${i}" "${i/man1\//man1/suse-}"
+ use !symlink || dosym "${i/man1\//suse-}" "/usr/${i}"
+ done
+
+ # create symlink for default build config
+ dosym /usr/libexec/suse-build/configs/sl13.2.conf /usr/libexec/suse-build/configs/default.conf
+}
diff --git a/dev-util/suse-build/suse-build-2015.11.05.ebuild b/dev-util/suse-build/suse-build-2015.11.05.ebuild
new file mode 100644
index 000000000000..15f352f1e641
--- /dev/null
+++ b/dev-util/suse-build/suse-build-2015.11.05.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+EGIT_REPO_URI="https://github.com/openSUSE/obs-build.git"
+
+if [[ "${PV}" == "9999" ]]; then
+ EXTRA_ECLASS="git-2"
+else
+ OBS_PACKAGE="build"
+ OBS_PROJECT="openSUSE:Tools"
+ EXTRA_ECLASS="obs-download"
+fi
+
+inherit eutils ${EXTRA_ECLASS}
+unset EXTRA_ECLASS
+
+DESCRIPTION="Script to build SUSE Linux RPMs"
+HOMEPAGE="https://build.opensuse.org/package/show/openSUSE:Tools/build"
+
+[[ "${PV}" == "9999" ]] || SRC_URI="${OBS_URI}/${PN/suse/obs}-${PV//.}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="symlink"
+[[ "${PV}" == "9999" ]] || \
+KEYWORDS="amd64 x86"
+
+RDEPEND="
+ virtual/perl-Digest-MD5
+ virtual/perl-Getopt-Long
+ dev-perl/XML-Parser
+ dev-perl/TimeDate
+ app-shells/bash
+ app-arch/cpio
+ app-arch/rpm
+"
+
+S="${WORKDIR}/${PN/suse/obs}-${PV//.}"
+
+src_compile() { :; }
+
+src_install() {
+ emake DESTDIR="${ED}" pkglibdir=/usr/libexec/suse-build install
+ cd "${ED}"/usr
+ find bin -type l | while read i; do
+ mv "${i}" "${i/bin\//bin/suse-}"
+ use !symlink || dosym "${i/bin\//suse-}" "/usr/${i}"
+ done
+ find share/man/man1 -type f | while read i; do
+ mv "${i}" "${i/man1\//man1/suse-}"
+ use !symlink || dosym "${i/man1\//suse-}" "/usr/${i}"
+ done
+ find . -type f -exec sed -i 's|/usr/lib/build|/usr/libexec/suse-build|' {} +
+
+ # create symlink for default build config
+ dosym /usr/libexec/suse-build/configs/sl42.1.conf /usr/libexec/suse-build/configs/default.conf
+}
diff --git a/dev-util/suse-build/suse-build-9999.ebuild b/dev-util/suse-build/suse-build-9999.ebuild
new file mode 100644
index 000000000000..15f352f1e641
--- /dev/null
+++ b/dev-util/suse-build/suse-build-9999.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+EGIT_REPO_URI="https://github.com/openSUSE/obs-build.git"
+
+if [[ "${PV}" == "9999" ]]; then
+ EXTRA_ECLASS="git-2"
+else
+ OBS_PACKAGE="build"
+ OBS_PROJECT="openSUSE:Tools"
+ EXTRA_ECLASS="obs-download"
+fi
+
+inherit eutils ${EXTRA_ECLASS}
+unset EXTRA_ECLASS
+
+DESCRIPTION="Script to build SUSE Linux RPMs"
+HOMEPAGE="https://build.opensuse.org/package/show/openSUSE:Tools/build"
+
+[[ "${PV}" == "9999" ]] || SRC_URI="${OBS_URI}/${PN/suse/obs}-${PV//.}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="symlink"
+[[ "${PV}" == "9999" ]] || \
+KEYWORDS="amd64 x86"
+
+RDEPEND="
+ virtual/perl-Digest-MD5
+ virtual/perl-Getopt-Long
+ dev-perl/XML-Parser
+ dev-perl/TimeDate
+ app-shells/bash
+ app-arch/cpio
+ app-arch/rpm
+"
+
+S="${WORKDIR}/${PN/suse/obs}-${PV//.}"
+
+src_compile() { :; }
+
+src_install() {
+ emake DESTDIR="${ED}" pkglibdir=/usr/libexec/suse-build install
+ cd "${ED}"/usr
+ find bin -type l | while read i; do
+ mv "${i}" "${i/bin\//bin/suse-}"
+ use !symlink || dosym "${i/bin\//suse-}" "/usr/${i}"
+ done
+ find share/man/man1 -type f | while read i; do
+ mv "${i}" "${i/man1\//man1/suse-}"
+ use !symlink || dosym "${i/man1\//suse-}" "/usr/${i}"
+ done
+ find . -type f -exec sed -i 's|/usr/lib/build|/usr/libexec/suse-build|' {} +
+
+ # create symlink for default build config
+ dosym /usr/libexec/suse-build/configs/sl42.1.conf /usr/libexec/suse-build/configs/default.conf
+}
diff --git a/dev-util/synopsis/Manifest b/dev-util/synopsis/Manifest
new file mode 100644
index 000000000000..824b5b1b8010
--- /dev/null
+++ b/dev-util/synopsis/Manifest
@@ -0,0 +1,6 @@
+AUX synopsis-0.12-gcc45.patch 482 SHA256 2ded05ad8072673f36e49781b84a29947c2a42978b0627355e23c0421470b8b4 SHA512 bccb0c6975d0763bf29f08de86349cb41aee1843e08201c7cd22455daddda1c9d419ab39ae67348d0566ae681fc1f90f777d3756b10e0fad2f72eee5fc213b9c WHIRLPOOL fe5ae542a745218262a81b73a79ddc2d6d40e9d7996adea570d25a7b3f4f827ae212defc63c6f07f67d18cc76b59710c020032ea9b3b881b0f75e8a5fd464446
+DIST synopsis-0.13.tar.gz 10691494 SHA256 8a27f39203d828ace4a122b8bdc4f98e3746af724f88a0d75e1380fe736dbe5f SHA512 cdd84f4b9fc8a7b0edaa017e7a332bba06cd4fc804c49b84b1558a84e814e3a8a4b8c5801a8eaf149e6475dbacbb879f04ade57e31d660dfac5e0c83887abd54 WHIRLPOOL 0198437a19b8871428ddc1bcbbf01cad3b9e660cdb577f48c3542fcffc2b31acbb92ef5938b4e2d4a0404c5db85de9915772e953b93c45505fd8341748222aea
+EBUILD synopsis-0.13.ebuild 1229 SHA256 1f030c42004bcb44aa83571ee37420566a7ada2a1abe04aad199da0ebcb28649 SHA512 a3467acc11f424adf0e140b1541ece9c0088a507795eb65f84b2e50f2825f211c93ae12c2f73d9d890f289f635ac25bdd86fc8770ae4d37331a8667bb4a601e6 WHIRLPOOL 069636d06076ad8f3b4add2c2fcd4fe30cb64b27c242a97e6da7fa0b401d2ca6d0a2fbf20912cada36b1732f2e4d144f7145f7204f734b15a952e4ff6f2232c5
+MISC ChangeLog 2557 SHA256 cde4b9e75e1c0f292519892e826908de01d6f47ae656d10a8c51dfb210de4889 SHA512 d028e7dab23a390a37c10ebd54fe1418f6d8df61b13c2590942d2de90ea517b9b580b3ed44eb5ca756248eed2f497a7002881ee7305523c0068e8abfd4287f4e WHIRLPOOL a2cc34c71827ee4ac571e74049b014d8c8707600a68307b9b02a44f7489d0d17e23fc1ee17c6dece5db8b709268e98982dfdcbdba22164d4a1d1340ae55f8d29
+MISC ChangeLog-2015 2429 SHA256 69ced1b00fe3ef84adeafca30682336b6e4f20a82b8e15d3faf5861fca203dad SHA512 021d1b14545362e4b457e4121e5c9df98dc6e53bcb83d4efa0ec2e1007ed0fbe1aa06c6a549858dd8674533f20b94d8849e189ec49157ba73d92956438fb0e4a WHIRLPOOL 57a5188686b4bd2b48818ff00b761323dd99ad10e0b131b59bcb27eda7c763da8207def2833ac2802f82f63990747f040da98ca1b12004f887aec21171ab2787
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/dev-util/synopsis/files/synopsis-0.12-gcc45.patch b/dev-util/synopsis/files/synopsis-0.12-gcc45.patch
new file mode 100644
index 000000000000..ff0fe2be5da8
--- /dev/null
+++ b/dev-util/synopsis/files/synopsis-0.12-gcc45.patch
@@ -0,0 +1,17 @@
+Fixing build with gcc 4.5
+
+http://bugs.gentoo.org/show_bug.cgi?id=318429
+
+Patch written by Kacper Kowalik <xarthisius.kk@gmail.com>
+
+--- Synopsis/Parsers/Cxx/Types.cc
++++ Synopsis/Parsers/Cxx/Types.cc
+@@ -169,7 +169,7 @@
+ // Class Types::FuncPtr
+ //
+
+-FuncPtr::FuncPtr(Type::Type* ret, const Mods& premods, const Type::vector& params)
++FuncPtr::FuncPtr(Type* ret, const Mods& premods, const Type::vector& params)
+ : m_return(ret), m_premod(premods), m_params(params)
+ {}
+
diff --git a/dev-util/synopsis/metadata.xml b/dev-util/synopsis/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/dev-util/synopsis/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/dev-util/synopsis/synopsis-0.13.ebuild b/dev-util/synopsis/synopsis-0.13.ebuild
new file mode 100644
index 000000000000..ebf368135bb7
--- /dev/null
+++ b/dev-util/synopsis/synopsis-0.13.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+DISTUTILS_IN_SOURCE_BUILD=1
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1 multilib toolchain-funcs
+
+DESCRIPTION="General source code documentation tool"
+HOMEPAGE="http://synopsis.fresco.org/index.html"
+SRC_URI="http://synopsis.fresco.org/download/${P}.tar.gz"
+
+LICENSE="GPL-2 LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+COMMON_DEPEND="dev-libs/boehm-gc"
+RDEPEND="${COMMON_DEPEND}
+ media-gfx/graphviz"
+DEPEND="${COMMON_DEPEND}
+ ${RDEPEND}
+ sys-devel/bison
+ sys-devel/flex
+ virtual/pkgconfig"
+
+PATCHES=( "${FILESDIR}"/${PN}-0.12-gcc45.patch )
+
+pkg_setup() {
+ tc-export CC CXX
+}
+
+python_prepare() {
+ rm -r src/Synopsis/gc || die "failed to remove bundled lib"
+
+ # the distutils script passes its options to a number of
+ # autoconf scripts, to not all of which these options are
+ # relevant. adding this option disables these useless warnings.
+ sed -e "/self.announce(command)/i\ command += ' --disable-option-checking'" \
+ -i Synopsis/dist/command/config.py || die
+}
+
+python_configure() {
+ local mydistutilsargs=(
+ config
+ --libdir=/usr/$(get_libdir)
+ --with-gc-prefix=/usr
+ )
+ esetup.py
+}
diff --git a/dev-util/sysdig/Manifest b/dev-util/sysdig/Manifest
new file mode 100644
index 000000000000..1e21699a66a9
--- /dev/null
+++ b/dev-util/sysdig/Manifest
@@ -0,0 +1,10 @@
+AUX sysdig-0.17.0-curlbuild.h.patch 2068 SHA256 50405aff08d8ecb7c9e2252fbc90e6082a3d3ea04874a8cff6718e167eeb53ae SHA512 4c51377dcdc52b1c7a14f8dd7310f8922541af19ce9167ed060a5a9fa0174a6f8156f59b336746fa27599c976124751d44bf990ee99e457fdf85bb19a92c59e9 WHIRLPOOL ce085f16cb9f46ae7791633ee1b94c21f54cab964c8f82b9bee3e5d9a3c0929dfac8e8f7f3fbccd50c67c4fb8ae1127004e070d53153fe4ad889d85a13064165
+DIST sysdig-0.17.0.tar.gz 718719 SHA256 f009acc32f2b15fcb0d2267bde6f6de9b3445179003c979ba61a8836abdb78f9 SHA512 476e130151d1a8e9e782f074c45448becbef10397c0040e33febaf89c73f22c1716ebeeb2683f489a74c83f5d67174c9f21bb05d4327f35fb03ca1b9822889bc WHIRLPOOL a8f3e0aa45e00d9e6b02e0c26f3ec2f91cbf4d9a6caf955684617e2a1e7c9c0b92c0bdda3b2c254129008ea42bd2386710ef391714e13631e0e7d62fe9226ed0
+DIST sysdig-0.18.0.tar.gz 739774 SHA256 9caab6b4ef4a6d9f9ded8f79b1fcbe34a918c61b6f3b5a15d803f0f25e73497a SHA512 51649bc965d54b0e4b6c17d3b8f6a9c1710300b371c556193f04f25c71acbc96da1bfb6c636f8afdd8544de39d7bb1db0bd8ecc39d18d6f1f238d9e7819f0265 WHIRLPOOL de150a7254428edf88fbe34226ebb1bc96270fbb942d70cc483cef7c04e7a31e43e8efd070b44d78991bdeabc88bfd90370f0cfa7fcb71b41b72c4fd005f4e8c
+DIST sysdig-0.19.1.tar.gz 742149 SHA256 480d5d8fd7e7373c08008c30bd8e2c7595d5c45d710bf07bd15a522021b560f6 SHA512 a3947ecd2019af75d787d956b3931dc1aac593279256a92fc02ff0d7e0a85f23786ab821da9bf3ec55430e4da56f70c8583d1b5d24782b426f7deb6f1fca69eb WHIRLPOOL 387aa58c56821b52c39229e8923486192c763c270c9c4d392dea6bef29c3b68d3a0d0aa229270736125ab18fd2fb2129499f77553897912be100a1b1b2a7a49d
+EBUILD sysdig-0.17.0-r1.ebuild 1963 SHA256 6c2351c631ac1907652e1e4974f80e462679c9b1bf7f1015ba8f2af1b2859998 SHA512 1becee0e3fa18c80fe075ed2819e36425ad168cd3755c145d2a0fbb30c29c8861e701d8079891619b12b19b4a06b0c6280c6b599ed188fb8239bfa94a7bba90c WHIRLPOOL b923cd3355a9cc328aa9dbfea183563cc1fe2c8633e875f781d0b6d961e9237c92a4bf56e57bf965eefd2ca68fdd206c6454a216902fb3ba4c88ccf628e54a6e
+EBUILD sysdig-0.18.0.ebuild 1821 SHA256 aa51602feb7debe16adda13a705a074639cfff03cb703c2f41a0a7da8f8138f0 SHA512 0dae4db4f1178ea0ddec2b22edd036fd63c9625642e06b154fe052da5a53257e825bf7b560bdee57015062d9534d2c2985e7c738f9baa328b4df5e1df13769e0 WHIRLPOOL a75d2bf1c46672d21596281b3000b42517756640e1173abc68c99609fbf58ea4197fc3f3ae8ce9919a18a0c1e43f88cd0f33b9e25cc2e50291aa041d3de5129c
+EBUILD sysdig-0.19.1.ebuild 1821 SHA256 aa51602feb7debe16adda13a705a074639cfff03cb703c2f41a0a7da8f8138f0 SHA512 0dae4db4f1178ea0ddec2b22edd036fd63c9625642e06b154fe052da5a53257e825bf7b560bdee57015062d9534d2c2985e7c738f9baa328b4df5e1df13769e0 WHIRLPOOL a75d2bf1c46672d21596281b3000b42517756640e1173abc68c99609fbf58ea4197fc3f3ae8ce9919a18a0c1e43f88cd0f33b9e25cc2e50291aa041d3de5129c
+MISC ChangeLog 5677 SHA256 70c1f045cb72ce8c04d6ca90b3258ad7d15a0dbb3132a2cbeb68318609441da7 SHA512 c2744fe0955b0b962cff531cd9f23f24813a125e5ec9e063fa17bedce087cf186cdd796a6f3e332c84b22a885a858dfa5493f3c61de406f2803f364733e5690f WHIRLPOOL a8cccfba4cb4d7136050ad7c4c7b62bc7256aa943ce80766413e3fa74f14f4d7724439672e798de4d0c3fd3919af8eacf786220632e2b9ff8820d11f75f00aa5
+MISC ChangeLog-2015 807 SHA256 d13ddf4d0354b46c20d300f0248f2c68260ba445a351442f63ee838ce680f84c SHA512 062e74dc59198d4206325b6d4f0e9528cb888ed5b4cf8490f94f0ed9a489efe6be519eecff8d02d91f54a52ef597b4b5abc9b8fdfccbc8fce75874cd199034a8 WHIRLPOOL 24f060a7091c30519996fee68a6b794c36c346d0a7b962ec9eb00ee5ef911ef1abe5af376f5818d6f9c74ab4550744e995bfe34b97ea23d8476e1b7c62569a2e
+MISC metadata.xml 507 SHA256 d12824ad27f1d0f6fb5b44fa945149141d47cce277f2aba8f3ad7a4e75b251ad SHA512 d218731de7acfbbfa3c3043b2d942c00b7f5aff1a020b6dca2019f202be3a5390f44337e04691a0d4641e661f7581f703db5fda3d2a116c0d63fb7d9da25ed06 WHIRLPOOL 7378e0a59f6cd3a61ba2d45ee67cbbcc2dd0db66e9e30c3ec4d45954623620849351cf6b36effb1fef0e1a9e1da252b29269f8d6186454ae68be277ede0ce6f2
diff --git a/dev-util/sysdig/files/sysdig-0.17.0-curlbuild.h.patch b/dev-util/sysdig/files/sysdig-0.17.0-curlbuild.h.patch
new file mode 100644
index 000000000000..465be572b1fe
--- /dev/null
+++ b/dev-util/sysdig/files/sysdig-0.17.0-curlbuild.h.patch
@@ -0,0 +1,53 @@
+From d15be88ccb1b7df9a0b6db2967131521b526918b Mon Sep 17 00:00:00 2001
+From: Mark Stemm <mark.stemm@gmail.com>
+Date: Tue, 15 Aug 2017 17:49:53 -0700
+Subject: [PATCH] Don't include curlbuild.h
+
+It's not required to build and it's not present with some newer versions
+of libcurl, so removing it.
+
+Thanks to https://github.com/hhoffstaette for the tip.
+
+This fixes https://github.com/draios/sysdig/issues/895.
+---
+ userspace/libsinsp/marathon_http.cpp | 1 -
+ userspace/libsinsp/mesos_http.cpp | 1 -
+ userspace/sysdig.project | 1 -
+ 3 files changed, 3 deletions(-)
+
+diff --git a/userspace/libsinsp/marathon_http.cpp b/userspace/libsinsp/marathon_http.cpp
+index f7937b681..2e4449ad9 100644
+--- a/userspace/libsinsp/marathon_http.cpp
++++ b/userspace/libsinsp/marathon_http.cpp
+@@ -7,7 +7,6 @@
+ #include "marathon_http.h"
+ #include "curl/curl.h"
+ #include "curl/easy.h"
+-#include "curl/curlbuild.h"
+ #define BUFFERSIZE 512 // b64 needs this macro
+ #include "b64/encode.h"
+ #include "sinsp.h"
+diff --git a/userspace/libsinsp/mesos_http.cpp b/userspace/libsinsp/mesos_http.cpp
+index 18ac9f5b5..c6bfb5810 100644
+--- a/userspace/libsinsp/mesos_http.cpp
++++ b/userspace/libsinsp/mesos_http.cpp
+@@ -7,7 +7,6 @@
+ #include "mesos_http.h"
+ #include "curl/curl.h"
+ #include "curl/easy.h"
+-#include "curl/curlbuild.h"
+ #include "sinsp.h"
+ #include "sinsp_int.h"
+ #include "sinsp_curl.h"
+diff --git a/userspace/sysdig.project b/userspace/sysdig.project
+index 5d00f18f2..76a18f0a8 100644
+--- a/userspace/sysdig.project
++++ b/userspace/sysdig.project
+@@ -752,7 +752,6 @@
+ </VirtualDirectory>
+ <VirtualDirectory Name="include">
+ <VirtualDirectory Name="curl">
+- <File Name="../build/release/curl-prefix/src/curl/include/curl/curlbuild.h"/>
+ <File Name="../build/release/curl-prefix/src/curl/include/curl/easy.h"/>
+ <File Name="../build/release/curl-prefix/src/curl/include/curl/stdcheaders.h"/>
+ <File Name="../build/release/curl-prefix/src/curl/include/curl/curlrules.h"/>
diff --git a/dev-util/sysdig/metadata.xml b/dev-util/sysdig/metadata.xml
new file mode 100644
index 000000000000..d888c8211430
--- /dev/null
+++ b/dev-util/sysdig/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>mgorny@gentoo.org</email>
+ <name>Michał Górny</name>
+ </maintainer>
+ <use>
+ <flag name="modules">Build kernel modules needed for tracing local
+ events. Disable this only if you intend to use sysdig purely
+ to work with dumpfiles.</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">draios/sysdig</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/sysdig/sysdig-0.17.0-r1.ebuild b/dev-util/sysdig/sysdig-0.17.0-r1.ebuild
new file mode 100644
index 000000000000..d886e9c22e5d
--- /dev/null
+++ b/dev-util/sysdig/sysdig-0.17.0-r1.ebuild
@@ -0,0 +1,97 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+: ${CMAKE_MAKEFILE_GENERATOR:=ninja}
+MODULES_OPTIONAL_USE=modules
+inherit linux-mod bash-completion-r1 cmake-utils
+
+DESCRIPTION="A system exploration and troubleshooting tool"
+HOMEPAGE="https://www.sysdig.org/"
+SRC_URI="https://github.com/draios/sysdig/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+modules"
+
+RDEPEND="
+ app-misc/jq:0=
+ dev-lang/luajit:2=
+ >=dev-libs/jsoncpp-0.6_pre:0=
+ dev-libs/libb64:0=
+ sys-libs/ncurses:0=
+ sys-libs/zlib:0=
+ dev-libs/openssl:0=
+ net-misc/curl:0="
+DEPEND="${RDEPEND}
+ app-arch/xz-utils
+ virtual/os-headers"
+
+# needed for the kernel module
+CONFIG_CHECK="HAVE_SYSCALL_TRACEPOINTS ~TRACEPOINTS"
+
+pkg_pretend() {
+ linux-mod_pkg_setup
+}
+
+pkg_setup() {
+ linux-mod_pkg_setup
+}
+
+src_prepare() {
+ local PATCHES=(
+ # fix building against curl-7.55.0+
+ # https://bugs.gentoo.org/627572
+ "${FILESDIR}"/sysdig-0.17.0-curlbuild.h.patch
+ )
+
+ sed -i -e 's:-ggdb::' CMakeLists.txt || die
+
+ cmake-utils_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ # we will use linux-mod for that
+ -DBUILD_DRIVER=OFF
+ # libscap examples are not installed or really useful
+ -DBUILD_LIBSCAP_EXAMPLES=OFF
+
+ # unbundle the deps
+ -DUSE_BUNDLED_DEPS=OFF
+ )
+
+ cmake-utils_src_configure
+
+ # setup linux-mod ugliness
+ MODULE_NAMES="sysdig-probe(extra:${S}/driver:)"
+ BUILD_PARAMS='KERNELDIR="${KERNEL_DIR}"'
+ BUILD_TARGETS="all"
+
+ if use modules; then
+ cmake-utils_src_make configure_driver
+
+ cp "${BUILD_DIR}"/driver/Makefile.dkms driver/Makefile || die
+ fi
+}
+
+src_compile() {
+ cmake-utils_src_compile
+
+ linux-mod_src_compile
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ linux-mod_src_install
+
+ # remove sources
+ rm -r "${ED%/}"/usr/src || die
+
+ # move bashcomp to the proper location
+ dobashcomp "${ED%/}"/usr/etc/bash_completion.d/sysdig || die
+ rm -r "${ED%/}"/usr/etc || die
+}
diff --git a/dev-util/sysdig/sysdig-0.18.0.ebuild b/dev-util/sysdig/sysdig-0.18.0.ebuild
new file mode 100644
index 000000000000..ebc9e98519ac
--- /dev/null
+++ b/dev-util/sysdig/sysdig-0.18.0.ebuild
@@ -0,0 +1,91 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+: ${CMAKE_MAKEFILE_GENERATOR:=ninja}
+MODULES_OPTIONAL_USE=modules
+inherit linux-mod bash-completion-r1 cmake-utils
+
+DESCRIPTION="A system exploration and troubleshooting tool"
+HOMEPAGE="https://www.sysdig.org/"
+SRC_URI="https://github.com/draios/sysdig/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+modules"
+
+RDEPEND="
+ app-misc/jq:0=
+ dev-lang/luajit:2=
+ >=dev-libs/jsoncpp-0.6_pre:0=
+ dev-libs/libb64:0=
+ sys-libs/ncurses:0=
+ sys-libs/zlib:0=
+ dev-libs/openssl:0=
+ net-misc/curl:0="
+DEPEND="${RDEPEND}
+ app-arch/xz-utils
+ virtual/os-headers"
+
+# needed for the kernel module
+CONFIG_CHECK="HAVE_SYSCALL_TRACEPOINTS ~TRACEPOINTS"
+
+pkg_pretend() {
+ linux-mod_pkg_setup
+}
+
+pkg_setup() {
+ linux-mod_pkg_setup
+}
+
+src_prepare() {
+ sed -i -e 's:-ggdb::' CMakeLists.txt || die
+
+ cmake-utils_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ # we will use linux-mod for that
+ -DBUILD_DRIVER=OFF
+ # libscap examples are not installed or really useful
+ -DBUILD_LIBSCAP_EXAMPLES=OFF
+
+ # unbundle the deps
+ -DUSE_BUNDLED_DEPS=OFF
+ )
+
+ cmake-utils_src_configure
+
+ # setup linux-mod ugliness
+ MODULE_NAMES="sysdig-probe(extra:${S}/driver:)"
+ BUILD_PARAMS='KERNELDIR="${KERNEL_DIR}"'
+ BUILD_TARGETS="all"
+
+ if use modules; then
+ cmake-utils_src_make configure_driver
+
+ cp "${BUILD_DIR}"/driver/Makefile.dkms driver/Makefile || die
+ fi
+}
+
+src_compile() {
+ cmake-utils_src_compile
+
+ linux-mod_src_compile
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ linux-mod_src_install
+
+ # remove sources
+ rm -r "${ED%/}"/usr/src || die
+
+ # move bashcomp to the proper location
+ dobashcomp "${ED%/}"/usr/etc/bash_completion.d/sysdig || die
+ rm -r "${ED%/}"/usr/etc || die
+}
diff --git a/dev-util/sysdig/sysdig-0.19.1.ebuild b/dev-util/sysdig/sysdig-0.19.1.ebuild
new file mode 100644
index 000000000000..ebc9e98519ac
--- /dev/null
+++ b/dev-util/sysdig/sysdig-0.19.1.ebuild
@@ -0,0 +1,91 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+: ${CMAKE_MAKEFILE_GENERATOR:=ninja}
+MODULES_OPTIONAL_USE=modules
+inherit linux-mod bash-completion-r1 cmake-utils
+
+DESCRIPTION="A system exploration and troubleshooting tool"
+HOMEPAGE="https://www.sysdig.org/"
+SRC_URI="https://github.com/draios/sysdig/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+modules"
+
+RDEPEND="
+ app-misc/jq:0=
+ dev-lang/luajit:2=
+ >=dev-libs/jsoncpp-0.6_pre:0=
+ dev-libs/libb64:0=
+ sys-libs/ncurses:0=
+ sys-libs/zlib:0=
+ dev-libs/openssl:0=
+ net-misc/curl:0="
+DEPEND="${RDEPEND}
+ app-arch/xz-utils
+ virtual/os-headers"
+
+# needed for the kernel module
+CONFIG_CHECK="HAVE_SYSCALL_TRACEPOINTS ~TRACEPOINTS"
+
+pkg_pretend() {
+ linux-mod_pkg_setup
+}
+
+pkg_setup() {
+ linux-mod_pkg_setup
+}
+
+src_prepare() {
+ sed -i -e 's:-ggdb::' CMakeLists.txt || die
+
+ cmake-utils_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ # we will use linux-mod for that
+ -DBUILD_DRIVER=OFF
+ # libscap examples are not installed or really useful
+ -DBUILD_LIBSCAP_EXAMPLES=OFF
+
+ # unbundle the deps
+ -DUSE_BUNDLED_DEPS=OFF
+ )
+
+ cmake-utils_src_configure
+
+ # setup linux-mod ugliness
+ MODULE_NAMES="sysdig-probe(extra:${S}/driver:)"
+ BUILD_PARAMS='KERNELDIR="${KERNEL_DIR}"'
+ BUILD_TARGETS="all"
+
+ if use modules; then
+ cmake-utils_src_make configure_driver
+
+ cp "${BUILD_DIR}"/driver/Makefile.dkms driver/Makefile || die
+ fi
+}
+
+src_compile() {
+ cmake-utils_src_compile
+
+ linux-mod_src_compile
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ linux-mod_src_install
+
+ # remove sources
+ rm -r "${ED%/}"/usr/src || die
+
+ # move bashcomp to the proper location
+ dobashcomp "${ED%/}"/usr/etc/bash_completion.d/sysdig || die
+ rm -r "${ED%/}"/usr/etc || die
+}
diff --git a/dev-util/sysprof/Manifest b/dev-util/sysprof/Manifest
new file mode 100644
index 000000000000..95634eed800f
--- /dev/null
+++ b/dev-util/sysprof/Manifest
@@ -0,0 +1,7 @@
+DIST sysprof-3.22.2.tar.xz 581864 SHA256 d57fb19a3e5d4ad37d5fb554dc93d9a03f332779c3bffd9c2aa8f176e85269d7 SHA512 601e83f8809bfc970b87a8cbecfc868e957d992aa554316e80b44f21c97a58ef0a236e0b0bda6accc01d5d551f7fca76b4882863a9ea498578731b49dc75322c WHIRLPOOL fdb2bcf0ee191bcecdda93fa3bc9d78aae5301e5fb2f0706021e1b2425d93a2d8ae16472a584ed172b864044b096c66f5c3ef714c848af63937d7dfe40736377
+DIST sysprof-3.24.1.tar.xz 595920 SHA256 054eebe2afb6fe3c06ac8c46bc045c42f675d4fd64e6f16cbc602d5c7ce27bec SHA512 5d323bcb9923c511065132711963dc8856c4d837b4d7ccfae5cc5794be5ac8ad1dc42504025469199f4bfd6a6fad4d8f49b7b21cab6f0c9a954820182e75c7d0 WHIRLPOOL e4cc8391b9583f4e2633e89b5cf18445f9d2c6324dcb4b1b00e2e5742441688c16d514701d5f4077f2579e854dbbfec5058e97d6f37b32b7ba8a812354668ce8
+EBUILD sysprof-3.22.2.ebuild 1679 SHA256 54ebe2a5b30ee8e92a5b4414dbcee823c752348442117287e3f998c0833d02eb SHA512 a24e95b2cfd651ff4772e3f8556696ec099dcb8dc59fa961539251de23cf531c705eba1515d0b9f32e04d5d2479b2199d46f6776b2bc0c596617ad46df67001c WHIRLPOOL 0ac8b9448a5c416afa38feba923520c436a88a16e56b9f3d063979934744169bbf06b747badd11f2ed0ccba184d62fb636ed7568e98f775e48fcfe6e2af7803e
+EBUILD sysprof-3.24.1.ebuild 1764 SHA256 ffd6b40505154c5692b214c7e588e7f2587035f349c0b4e285044ef8d7da1d71 SHA512 8ba4c47314e0a39d8e15a9afa3fcbced60180860bc75d1a4d3feb2b27a593778dd8ead96a1a3ccc86f5b50b5f75b6cdd4b62f5c403bf3e5ad7d8a1248e072b03 WHIRLPOOL 5c185d35b45e405a956c484eab84a1d4dc4ed3be03bfd8ba9f983566c50143c7eb972a6b7cfc25056f06356ad25b37b2c7b511d3a4dd9baaf3bd7987917bf8bb
+MISC ChangeLog 2404 SHA256 9891752de5f021e5bba0cabd355c62e8e04b2b615174cc76ef42f85384907bce SHA512 f6ec538e378c8fec520b73793ada77e121b957501e40540ea4c5d813b0cca62f154e183d8dd10ae7af2e984b97e30da7429e924906247fd72dc6d879adb3beeb WHIRLPOOL a2255e6f4d36dcb8f830ca62f6731fcf7e524fa0ead2c13250ca766f5a7aeffc118d8102a735ef3b2436e513adb523ec6c32fc1043af99bd6d293fdf0510ffa0
+MISC ChangeLog-2015 5690 SHA256 165461bd15ce4b4b2870a2635acf03355bc4768d1a3f1eac7d89a02ec5dbb154 SHA512 f92a280da84ce774b321eb66cb723553c711d6924b692cf26efca4164bed995a5a28919c16215bb4ea083ddd93fa033e33cd2802a4ecfb4ff7243c61933e6e9f WHIRLPOOL caad83e683ce4d6b40dce01a3d3b1bf83d572e8d5db083fcc3a5ca8044bbdfc194773947ed70d83f041b9c2ed2c3cd54b47e0c3afcf9975e4d6bbae8735fe80b
+MISC metadata.xml 833 SHA256 e703183472353f65dd9fb04592c0ced87d6583497c5a396f76fc35702601eb9a SHA512 190e4b54bedcffac3323133feb1fd48b0ff81df3fafd647b3761fb8aa7d31abccba2fd720f3aa1af37a515c48ad3159f30e0609d287db091647b07a935853aec WHIRLPOOL 81afa37bface5a6d927de381efa61975219a688c31377f4df8f80cb33d1ceefd47aa8a957ca05c01cef1f3d00c01eee3cbc1f834cdd0bb54767c8e57bfb917f6
diff --git a/dev-util/sysprof/metadata.xml b/dev-util/sysprof/metadata.xml
new file mode 100644
index 000000000000..ea79c2ed1343
--- /dev/null
+++ b/dev-util/sysprof/metadata.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+ <email>tetromino@gentoo.org</email>
+ <name>Alexandre Rostovtsev</name>
+</maintainer>
+<maintainer type="person">
+ <email>leio@gentoo.org</email>
+ <name>Mart Raudsepp</name>
+</maintainer>
+<longdescription lang="en">
+ Sysprof is a sampling CPU profiler for Linux that profiles the entire system,
+ not just a single application.
+ Sysprof handles shared libraries and applications do not need to be recompiled.
+ In fact they don't even have to be restarted.
+</longdescription>
+<use>
+ <flag name="systemd">Build the sysprofd daemon service, required to run the UI without root permissions.
+ Relies on <pkg>sys-apps/systemd</pkg> running as the init system.</flag>
+</use>
+</pkgmetadata>
diff --git a/dev-util/sysprof/sysprof-3.22.2.ebuild b/dev-util/sysprof/sysprof-3.22.2.ebuild
new file mode 100644
index 000000000000..baa9bad81320
--- /dev/null
+++ b/dev-util/sysprof/sysprof-3.22.2.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit gnome2 linux-info systemd
+
+DESCRIPTION="System-wide Linux Profiler"
+HOMEPAGE="http://sysprof.com/"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="debug gtk systemd"
+
+RDEPEND="
+ >=dev-libs/glib-2.44:2
+ gtk? (
+ sys-auth/polkit
+ >=x11-libs/gtk+-3.22.0:3 )
+ systemd? (
+ sys-auth/polkit
+ >=sys-apps/systemd-222 )
+"
+DEPEND="${RDEPEND}
+ app-text/yelp-tools
+ >=sys-devel/gettext-0.19.6
+ >=sys-kernel/linux-headers-2.6.32
+ virtual/pkgconfig
+"
+
+pkg_pretend() {
+ kernel_is -ge 2 6 31 && return
+ die "Sysprof will not work with a kernel version less than 2.6.31"
+}
+
+src_configure() {
+ # introspection & vala not use in build system
+ gnome2_src_configure \
+ $(use_enable debug) \
+ $(use_enable gtk) \
+ --disable-introspection \
+ --disable-static \
+ --disable-vala \
+ --with-sysprofd=$(usex systemd bundled no) \
+ --with-systemdsystemunitdir=$(systemd_get_systemunitdir)
+}
+
+pkg_postinst() {
+ gnome2_pkg_postinst
+
+ elog "On many systems, especially amd64, it is typical that with a modern"
+ elog "toolchain -fomit-frame-pointer for gcc is the default, because"
+ elog "debugging is still possible thanks to gcc4/gdb location list feature."
+ elog "However sysprof is not able to construct call trees if frame pointers"
+ elog "are not present. Therefore -fno-omit-frame-pointer CFLAGS is suggested"
+ elog "for the libraries and applications involved in the profiling. That"
+ elog "means a CPU register is used for the frame pointer instead of other"
+ elog "purposes, which means a very minimal performance loss when there is"
+ elog "register pressure."
+}
diff --git a/dev-util/sysprof/sysprof-3.24.1.ebuild b/dev-util/sysprof/sysprof-3.24.1.ebuild
new file mode 100644
index 000000000000..bc46f88d4238
--- /dev/null
+++ b/dev-util/sysprof/sysprof-3.24.1.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit gnome2 linux-info systemd
+
+DESCRIPTION="System-wide Linux Profiler"
+HOMEPAGE="http://sysprof.com/"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug gtk systemd"
+
+RDEPEND="
+ >=dev-libs/glib-2.44:2
+ gtk? (
+ sys-auth/polkit
+ >=x11-libs/gtk+-3.22.0:3 )
+ systemd? (
+ sys-auth/polkit
+ >=sys-apps/systemd-222 )
+"
+DEPEND="${RDEPEND}
+ app-text/yelp-tools
+ >=sys-devel/gettext-0.19.6
+ >=sys-kernel/linux-headers-2.6.32
+ dev-libs/appstream-glib
+ virtual/pkgconfig
+"
+
+pkg_pretend() {
+ kernel_is -ge 2 6 31 && return
+ die "Sysprof will not work with a kernel version less than 2.6.31"
+}
+
+src_configure() {
+ # introspection & vala not use in build system
+ # --with-sysprofd=host currently unavailable from ebuild
+ gnome2_src_configure \
+ $(use_enable debug) \
+ $(use_enable gtk) \
+ --disable-introspection \
+ --disable-static \
+ --disable-vala \
+ --with-sysprofd=$(usex systemd bundled no) \
+ --with-systemdsystemunitdir=$(systemd_get_systemunitdir)
+}
+
+pkg_postinst() {
+ gnome2_pkg_postinst
+
+ elog "On many systems, especially amd64, it is typical that with a modern"
+ elog "toolchain -fomit-frame-pointer for gcc is the default, because"
+ elog "debugging is still possible thanks to gcc4/gdb location list feature."
+ elog "However sysprof is not able to construct call trees if frame pointers"
+ elog "are not present. Therefore -fno-omit-frame-pointer CFLAGS is suggested"
+ elog "for the libraries and applications involved in the profiling. That"
+ elog "means a CPU register is used for the frame pointer instead of other"
+ elog "purposes, which means a very minimal performance loss when there is"
+ elog "register pressure."
+}
diff --git a/dev-util/systemtap/Manifest b/dev-util/systemtap/Manifest
new file mode 100644
index 000000000000..65cd129b2636
--- /dev/null
+++ b/dev-util/systemtap/Manifest
@@ -0,0 +1,10 @@
+DIST systemtap-2.4.tar.gz 2664988 SHA256 fdcee37c4db188819a69f67a72ad1977251e80673cebf729a443b6c00be779f4 SHA512 40c30942eb50948f11f06f9f37c76d96f5ebc8eb6d164c9af5d54845b3f43f38594ddebf5f0d42ac4704b0a2563cd23edf818c196ee1330db00011a85ae11b0c WHIRLPOOL 7441504b167b9f90da52abb7f0c934263c9ce984de4caedc43f3694c7a1c492fe7c5bdd56357d7eebc8d306aea6873cdf8c0dadb0fafcc4f0bb192d5e9cfb9d3
+DIST systemtap-2.9.tar.gz 3258026 SHA256 04f2c607512f4867f345a3d173940e1023441c5d3560f2e580b4a82dfe4d6353 SHA512 00d24ad52d5634b540241a9fc64efbab7fa1d34d31a0254b43474101d3024f050ab7ec284aba0c082889066e1b4cf4c38799801910bff7516ca2e380684089dc WHIRLPOOL fa8d3978f0768091c5cc3bd1cd4b13b6ff9643e2e37ee8e8b59c1801fd7ddcad7029d06e4a1207dc5add5faf423de9ccdb9df677b7db88a5199b1fde731fcb3a
+DIST systemtap-3.1.tar.gz 4885480 SHA256 a7b679877502db9b3ac9dfb658c05b49f77e29d42ad2eb36105b62bf2d32f676 SHA512 07b322d5745f570296e287db80f1e370da87eb65073815cf24d532827900453c1cb9ee74b5496b4f3919d176b960caad4479edc2dadf27b5c58898fb7398264d WHIRLPOOL ebb6c085c74747e54434c4ca6b6cf840bc3268dfb66cf95cd7a51553c73b75f4b34ab76ea715163986b601e5ffbaa8340a88dfa5cc203537856c30a3d88fa5c4
+EBUILD systemtap-2.4-r1.ebuild 1997 SHA256 d875e2ef5e0cf6361ccbe96f7b6fb72438be4da4b53e29824d44aaeda723cf40 SHA512 faf017d5ff4057b31d455d6e15a38f42cd6539e0ce1b1a93fdc3827cc6c996d20e4a90fd9bdbf11f198c96ba9ab22930d3f18329b6f51ee8070af50568ff1ca9 WHIRLPOOL 07b9f589a8deaab9537fc35e663c50c57711241ddbe486959d63e985d299e4f0f6d7c02b75cb96adf3217fed666648c9908c66e2ad188af53455431ed6626529
+EBUILD systemtap-2.9.ebuild 2027 SHA256 07492ea54687ab61b54036aecb0f04143def17b1d4b593726b431d4b037d8990 SHA512 91dbad53d734de2b28302b4634fce30115d430da3a00e44ebac8a3470b2f8a6894e8b6a74651950a670ae05bdb921f5269832af162d0656b65f192df44059430 WHIRLPOOL 42fd7dc30aa7c2189a0137566bcceb218d451037c5ad58ee3970af49b2f73b031358858397d1d5d208094c70e2d1b0310c768e3870c98bed0d37b3ff108dd670
+EBUILD systemtap-3.1-r1.ebuild 2106 SHA256 fd62f0642a00d2bd953432458490cc45d7273b62d59be6bb2e24c2cab9bbd5da SHA512 6b297339244bb6b4ebb31be7ed1619049b4f4bd047d9639064807e6ae244b9360e7adf7b910a86dacd1c77f54bc3cb58ae6918f5b9472a2b34b388d3d1032f60 WHIRLPOOL c16ddd3f46a846689bea914177520ef5ab534ef6f1227f001bc5e8f9f6a22464a2fe682ed0b9df32e410a1aab61d9d5298e710c60ea0f0e6f8cdd8d9947e287b
+EBUILD systemtap-3.1.ebuild 2023 SHA256 86ab7cf4748c8dc3dccf9c44d6e30de0df5995c1fa3da485c51c0524955eb7e1 SHA512 56bede76998eb716b552aafd1ac5333a3d2fbac34b82d6b59a08634628cdada3616c25715d94d3c42467d5c6a618eecf55b73b9d0123989930fe26e08e1a2b2a WHIRLPOOL 04f7a454b7311dbc6cdd115a309b32c50f8c9e63f2e15465e3e1c9a589ddad9c069c8fbcfdc0ff9d411016ca5048a185f4096f7024dc834328b44d61008444d8
+MISC ChangeLog 2897 SHA256 9f126d03a53fc3e6ee4f1b2564fd12afbb5562e0a4ea532c94e977dbf1704a9f SHA512 1ff92e3ab4904c650618a708255eb87d07a60650f9f587d5b1b582465037cc88b9e4fcaa46f5b8cd9689ba7efbe2ec01acec021580e0a273e3db0d67d4725fd4 WHIRLPOOL 55526412784dfb2d328b33e41f06ee657a31f7e2ba947a62fea51415356360e7f300160f3bb99676e011503fb7beacc163980fb132f4dabe593dace786e8a542
+MISC ChangeLog-2015 20184 SHA256 959e517e7b3fe2cfb593f1d9181aacdfbb1ddacbfc972f80f1312f71db215751 SHA512 3dc443727de960e7a94365e886d94303b2801d51b491d9b602c2b536280789662c8c67f2834d3531aafbb13b16f3102d6584074cf477b8ed27761d8a62d4f344 WHIRLPOOL e82a32819f5e23419694d0ad2c707e81460a7e781c501b61d8e4b5f5468ff87baafcb3a7dac53b4b5b5c543c82eca9c734438a04860e32ab78a2af79f21a1b4d
+MISC metadata.xml 302 SHA256 e8676b2f6a5229c97a1d5d01be69db6e8b8dd771fd94327d662a0e76868b5981 SHA512 4db366a3c2ff95cd2cfe271cf4a50fa2d5189985620d3b9e51708f2811609e53eec2656589ff754731d018bf1c184a1bab662be8683c714a8621e9296eacd9a9 WHIRLPOOL 0052a600b92ecbd9504dc0c62131d4d377e17d90001f942d1d5c9aa29a5a70ec01113ee6f58b368ad51ac6ee340cf8af6690c1005b616d53dc3bc2a747d8aeee
diff --git a/dev-util/systemtap/metadata.xml b/dev-util/systemtap/metadata.xml
new file mode 100644
index 000000000000..25ae3f091aca
--- /dev/null
+++ b/dev-util/systemtap/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+ <email>swegener@gentoo.org</email>
+</maintainer>
+ <use>
+ <flag name="libvirt">Support probing of libvirt domains.</flag>
+ </use>
+</pkgmetadata>
diff --git a/dev-util/systemtap/systemtap-2.4-r1.ebuild b/dev-util/systemtap/systemtap-2.4-r1.ebuild
new file mode 100644
index 000000000000..e1f823c3cbd0
--- /dev/null
+++ b/dev-util/systemtap/systemtap-2.4-r1.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit linux-info autotools eutils python-single-r1
+
+DESCRIPTION="A linux trace/probe tool"
+HOMEPAGE="http://www.sourceware.org/systemtap/"
+SRC_URI="http://www.sourceware.org/${PN}/ftp/releases/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm ia64 ~mips ppc ppc64 ~s390 sparc x86"
+IUSE="sqlite"
+
+RDEPEND=">=dev-libs/elfutils-0.142
+ sys-libs/libcap
+ ${PYTHON_DEPS}
+ sqlite? ( dev-db/sqlite:3 )"
+DEPEND="${RDEPEND}
+ >=sys-devel/gettext-0.18.2"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+CONFIG_CHECK="~KPROBES ~RELAY ~DEBUG_FS"
+ERROR_KPROBES="${PN} requires support for KProbes Instrumentation (KPROBES) - this can be enabled in 'Instrumentation Support -> Kprobes'."
+ERROR_RELAY="${PN} works with support for user space relay support (RELAY) - this can be enabled in 'General setup -> Kernel->user space relay support (formerly relayfs)'."
+ERROR_DEBUG_FS="${PN} works best with support for Debug Filesystem (DEBUG_FS) - this can be enabled in 'Kernel hacking -> Debug Filesystem'."
+
+DOCS="AUTHORS HACKING NEWS README"
+
+pkg_setup() {
+ linux-info_pkg_setup
+ python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ python_fix_shebang .
+
+ sed -i \
+ -e 's:-Werror::g' \
+ configure.ac \
+ Makefile.am \
+ staprun/Makefile.am \
+ stapdyn/Makefile.am \
+ buildrun.cxx \
+ testsuite/systemtap.unprivileged/unprivileged_probes.exp \
+ testsuite/systemtap.unprivileged/unprivileged_myproc.exp \
+ testsuite/systemtap.base/stmt_rel_user.exp \
+ testsuite/systemtap.base/sdt_va_args.exp \
+ testsuite/systemtap.base/sdt_misc.exp \
+ testsuite/systemtap.base/sdt.exp \
+ scripts/kprobes_test/gen_code.py \
+ || die "Failed to clean up sources"
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --docdir="${EPREFIX}/usr/share/doc/${PF}" \
+ --without-rpm \
+ --disable-server \
+ --disable-docs \
+ --disable-refdocs \
+ --disable-grapher \
+ $(use_enable sqlite)
+}
diff --git a/dev-util/systemtap/systemtap-2.9.ebuild b/dev-util/systemtap/systemtap-2.9.ebuild
new file mode 100644
index 000000000000..2691f98d6ed8
--- /dev/null
+++ b/dev-util/systemtap/systemtap-2.9.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit linux-info autotools eutils python-single-r1
+
+DESCRIPTION="A linux trace/probe tool"
+HOMEPAGE="http://www.sourceware.org/systemtap/"
+SRC_URI="http://www.sourceware.org/${PN}/ftp/releases/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
+IUSE="sqlite"
+
+RDEPEND=">=dev-libs/elfutils-0.142
+ sys-libs/libcap
+ ${PYTHON_DEPS}
+ sqlite? ( dev-db/sqlite:3 )"
+DEPEND="${RDEPEND}
+ >=sys-devel/gettext-0.18.2"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+CONFIG_CHECK="~KPROBES ~RELAY ~DEBUG_FS"
+ERROR_KPROBES="${PN} requires support for KProbes Instrumentation (KPROBES) - this can be enabled in 'Instrumentation Support -> Kprobes'."
+ERROR_RELAY="${PN} works with support for user space relay support (RELAY) - this can be enabled in 'General setup -> Kernel->user space relay support (formerly relayfs)'."
+ERROR_DEBUG_FS="${PN} works best with support for Debug Filesystem (DEBUG_FS) - this can be enabled in 'Kernel hacking -> Debug Filesystem'."
+
+DOCS="AUTHORS HACKING NEWS README"
+
+pkg_setup() {
+ linux-info_pkg_setup
+ python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ python_fix_shebang .
+
+ sed -i \
+ -e 's:-Werror::g' \
+ configure.ac \
+ Makefile.am \
+ staprun/Makefile.am \
+ stapdyn/Makefile.am \
+ buildrun.cxx \
+ testsuite/systemtap.unprivileged/unprivileged_probes.exp \
+ testsuite/systemtap.unprivileged/unprivileged_myproc.exp \
+ testsuite/systemtap.base/stmt_rel_user.exp \
+ testsuite/systemtap.base/sdt_va_args.exp \
+ testsuite/systemtap.base/sdt_misc.exp \
+ testsuite/systemtap.base/sdt.exp \
+ scripts/kprobes_test/gen_code.py \
+ || die "Failed to clean up sources"
+
+ epatch_user
+
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --docdir="${EPREFIX}/usr/share/doc/${PF}" \
+ --without-rpm \
+ --disable-server \
+ --disable-docs \
+ --disable-refdocs \
+ --disable-grapher \
+ $(use_enable sqlite)
+}
diff --git a/dev-util/systemtap/systemtap-3.1-r1.ebuild b/dev-util/systemtap/systemtap-3.1-r1.ebuild
new file mode 100644
index 000000000000..5b890a2b0540
--- /dev/null
+++ b/dev-util/systemtap/systemtap-3.1-r1.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit linux-info autotools eutils python-single-r1
+
+DESCRIPTION="A linux trace/probe tool"
+HOMEPAGE="http://www.sourceware.org/systemtap/"
+SRC_URI="http://www.sourceware.org/${PN}/ftp/releases/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
+IUSE="libvirt sqlite"
+
+RDEPEND=">=dev-libs/elfutils-0.142
+ sys-libs/libcap
+ ${PYTHON_DEPS}
+ libvirt? ( >=app-emulation/libvirt-1.0.2 )
+ sqlite? ( dev-db/sqlite:3 )"
+DEPEND="${RDEPEND}
+ >=sys-devel/gettext-0.18.2"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+CONFIG_CHECK="~KPROBES ~RELAY ~DEBUG_FS"
+ERROR_KPROBES="${PN} requires support for KProbes Instrumentation (KPROBES) - this can be enabled in 'Instrumentation Support -> Kprobes'."
+ERROR_RELAY="${PN} works with support for user space relay support (RELAY) - this can be enabled in 'General setup -> Kernel->user space relay support (formerly relayfs)'."
+ERROR_DEBUG_FS="${PN} works best with support for Debug Filesystem (DEBUG_FS) - this can be enabled in 'Kernel hacking -> Debug Filesystem'."
+
+DOCS="AUTHORS HACKING NEWS README"
+
+pkg_setup() {
+ linux-info_pkg_setup
+ python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ python_fix_shebang .
+
+ sed -i \
+ -e 's:-Werror::g' \
+ configure.ac \
+ Makefile.am \
+ staprun/Makefile.am \
+ stapdyn/Makefile.am \
+ buildrun.cxx \
+ testsuite/systemtap.unprivileged/unprivileged_probes.exp \
+ testsuite/systemtap.unprivileged/unprivileged_myproc.exp \
+ testsuite/systemtap.base/stmt_rel_user.exp \
+ testsuite/systemtap.base/sdt_va_args.exp \
+ testsuite/systemtap.base/sdt_misc.exp \
+ testsuite/systemtap.base/sdt.exp \
+ scripts/kprobes_test/gen_code.py \
+ || die "Failed to clean up sources"
+
+ default
+
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --docdir="${EPREFIX}/usr/share/doc/${PF}" \
+ --without-rpm \
+ --disable-server \
+ --disable-docs \
+ --disable-refdocs \
+ --disable-grapher \
+ $(use_enable libvirt virt) \
+ $(use_enable sqlite)
+}
diff --git a/dev-util/systemtap/systemtap-3.1.ebuild b/dev-util/systemtap/systemtap-3.1.ebuild
new file mode 100644
index 000000000000..94540f06502e
--- /dev/null
+++ b/dev-util/systemtap/systemtap-3.1.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit linux-info autotools eutils python-single-r1
+
+DESCRIPTION="A linux trace/probe tool"
+HOMEPAGE="http://www.sourceware.org/systemtap/"
+SRC_URI="http://www.sourceware.org/${PN}/ftp/releases/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
+IUSE="sqlite"
+
+RDEPEND=">=dev-libs/elfutils-0.142
+ sys-libs/libcap
+ ${PYTHON_DEPS}
+ sqlite? ( dev-db/sqlite:3 )"
+DEPEND="${RDEPEND}
+ >=sys-devel/gettext-0.18.2"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+CONFIG_CHECK="~KPROBES ~RELAY ~DEBUG_FS"
+ERROR_KPROBES="${PN} requires support for KProbes Instrumentation (KPROBES) - this can be enabled in 'Instrumentation Support -> Kprobes'."
+ERROR_RELAY="${PN} works with support for user space relay support (RELAY) - this can be enabled in 'General setup -> Kernel->user space relay support (formerly relayfs)'."
+ERROR_DEBUG_FS="${PN} works best with support for Debug Filesystem (DEBUG_FS) - this can be enabled in 'Kernel hacking -> Debug Filesystem'."
+
+DOCS="AUTHORS HACKING NEWS README"
+
+pkg_setup() {
+ linux-info_pkg_setup
+ python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ python_fix_shebang .
+
+ sed -i \
+ -e 's:-Werror::g' \
+ configure.ac \
+ Makefile.am \
+ staprun/Makefile.am \
+ stapdyn/Makefile.am \
+ buildrun.cxx \
+ testsuite/systemtap.unprivileged/unprivileged_probes.exp \
+ testsuite/systemtap.unprivileged/unprivileged_myproc.exp \
+ testsuite/systemtap.base/stmt_rel_user.exp \
+ testsuite/systemtap.base/sdt_va_args.exp \
+ testsuite/systemtap.base/sdt_misc.exp \
+ testsuite/systemtap.base/sdt.exp \
+ scripts/kprobes_test/gen_code.py \
+ || die "Failed to clean up sources"
+
+ default
+
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --docdir="${EPREFIX}/usr/share/doc/${PF}" \
+ --without-rpm \
+ --disable-server \
+ --disable-docs \
+ --disable-refdocs \
+ --disable-grapher \
+ $(use_enable sqlite)
+}
diff --git a/dev-util/tailor/Manifest b/dev-util/tailor/Manifest
new file mode 100644
index 000000000000..f1d399a16d52
--- /dev/null
+++ b/dev-util/tailor/Manifest
@@ -0,0 +1,5 @@
+DIST tailor-0.9.35.tar.gz 228650 SHA256 50b6eac61103636a9acb72a0b88e915dcc8baa1dcd9675e358aad8deaf622a18 SHA512 184521adac681ccca279215c115913d98d1521aac41fe15ca65a35e3c5075419e1cb0f1b453bca6d5a56a15b09928c34738a264b44f666de7067b2aba0562bed WHIRLPOOL 3ec5acbaa0418eff6c964253e5c7abab267e2a32c66e833192e7492cc16e1da8a8c29a98859e96c776fa3154ddb523d863f27b4872ac6ea1efc5b465375a10e7
+EBUILD tailor-0.9.35-r1.ebuild 868 SHA256 0c23d398dacd473bcaac0bc6f0b5a357a003859ae3ce341458501270ccb105c5 SHA512 2047073ec9dbc72d66bc99d773769aa37ee4c7a2ba4d562ee0ffb7c8628d305d35820c7cfea95829943bc8673129033ef5e313c1d4c0b9c9aed7b53e5e9f11ea WHIRLPOOL 2b5f4bde26b7dcc0f6d3733c07199366ee76f775638855ebaa6ba6369d21d01993b3f263714a502ef84d1b3012117689460bde1bbedbcdcdc8ae40892f22e77f
+MISC ChangeLog 2535 SHA256 aff09f834abc61f09d4cb72d7b663b75f70ec66c30c725a80c1340a1adeee8d6 SHA512 47ec5b2d6afd1f6e8f0f2900643a827f3fd1861744231febd32f4da3fba7c857726c9195668ff93f363237762b38a06b2d40b1b8233510d6163ccd8c44c46a7f WHIRLPOOL a57450f8e1e3e0138df89493f4722aa8d1816da85f6492e5c2a80820fce7d7b3ab7927d52eb988a2f9001cf8c0c53f6981b101d8e7708f219f55cdd8ac2e3d05
+MISC ChangeLog-2015 2530 SHA256 0eb33f7932464b53cd299f5528fee55cbe23d0e5d39781444e6bf77c057da34a SHA512 2f27770ee4c6b256e7648a3621b5790dbe92d1fe70318d74dad25ed6815aaf6a1890af0ae6f25fe71ae518a588b68cb782249a8fd5f20b49bd7261653f433c26 WHIRLPOOL 280841ee86d0371b1ec44e31691b1a04c762d71961c1280442b46e8f3b821924b152bfdc0c02c425d7616b031782c6b3a4417eef980df5fc32ac7630dd0eb1db
+MISC metadata.xml 375 SHA256 f0d8cfed6c2bd4ed42e1f281ad569731d74fef299099a0b87596c67778d25854 SHA512 941495f6fcaf8a68c320ad045533fa95a7deab3ec1cf2b55113c67efe004045685464440eaaf4b879711389c9b4afd21eccc74c2be865ce59b1216c206bb8877 WHIRLPOOL 8a6599188e45c2ad5d7df40c49e7a7db0352c43f3123b25a3bb4b2df07e577fbce70d9ecbc73ed5a927a70f6a567b10d3428c43b5bf6d6bbfb4f3a5706fad97d
diff --git a/dev-util/tailor/metadata.xml b/dev-util/tailor/metadata.xml
new file mode 100644
index 000000000000..8dd954b0400b
--- /dev/null
+++ b/dev-util/tailor/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <longdescription lang="en">
+ Tailor is a tool to migrate changesets between ArX, Bazaar,
+ Bazaar-NG, CVS, Codeville, Darcs, Git, Mercurial, Monotone,
+ Subversion and Tla repositories.
+ </longdescription>
+</pkgmetadata>
diff --git a/dev-util/tailor/tailor-0.9.35-r1.ebuild b/dev-util/tailor/tailor-0.9.35-r1.ebuild
new file mode 100644
index 000000000000..baf62a2442bd
--- /dev/null
+++ b/dev-util/tailor/tailor-0.9.35-r1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+DISTUTILS_SINGLE_IMPL=1
+
+inherit distutils-r1
+
+DESCRIPTION="A tool to migrate changesets between version control systems"
+HOMEPAGE="http://wiki.darcs.net/index.html/Tailor"
+SRC_URI="http://darcs.arstecnica.it/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+pkg_setup() {
+ python-single-r1_pkg_setup
+}
+
+python_install_all() {
+ local HTML_DOCS=( README.html )
+ distutils-r1_python_install_all
+ rm "${D}usr/share/doc/${PF}/README.html"
+}
+
+pkg_postinst() {
+ elog "Tailor does not explicitly depend on any other VCS."
+ elog "You should emerge whatever VCS(s) that you want to use seperately."
+}
diff --git a/dev-util/ticpp/Manifest b/dev-util/ticpp/Manifest
new file mode 100644
index 000000000000..36d7364e2ba8
--- /dev/null
+++ b/dev-util/ticpp/Manifest
@@ -0,0 +1,6 @@
+DIST ticpp-0_p20120423.tar.bz2 94818 SHA256 b131ecebcd6a7e589a4b1c365c15f73535b4ac07cf538d4cdf26399fd4d2a631 SHA512 3b01a57d6b08722d3f4e1592c7986719d74c9852071b6a20852e987a3534c12758263ad4310ce434ad0c483988fc77900ed4a76f1c98556fc33a35186d9cdf22 WHIRLPOOL da0265a8e840d4cd974f800d4066c8fed8ec5bfcea3efd39ef755fd4837dc46803a45b124b3c8ab99d5da7a7f383d2690506e16913719ce93731c06edc5bee72
+EBUILD ticpp-0_p20120423.ebuild 956 SHA256 bf5b713b8488b4a9875efae50f9d701dbb98b93bd0a217e5f3a0daa38710f0a3 SHA512 0b1696a7ffa4243163d373ecf57687af974d8f7963181f10f5caa9a2efe4805c71978ce92835fc15a4f0be2b8733f8f96bed97b6de0e9885d3b067fde1061438 WHIRLPOOL 220fccf93e536d9bc17b7c437ccd0452cb9167eafa7d041cd051916f3ba36299f6675c570ebc9c178b21c544f50a7a85430ea0ab3b8c863d339ecacdd72191fd
+EBUILD ticpp-9999.ebuild 979 SHA256 963326ef6187de72295b74cb6e6f3d332942f37a5dfa357d418520c2190766aa SHA512 f246e5715fd27c7d1ed679494580b84c58ae88545f5c5d78257ca1aac011f52eefe1b6f2c05833eac67b54d497f2336bec6914fea8f241448be3ef295d6ef41c WHIRLPOOL da25458695b0e4ffff6fc0ad9713e19650c7f4de1188236f6254a46ca375f116603ceef66795c27b785e03cc9f06524d94c08d334302110713208ccc0f3c8ba5
+MISC ChangeLog 2934 SHA256 5da251324bcb9a01b3230e021af6ef8f82313f3fea76f5838c39a4dd99d090e1 SHA512 5492f7f0378cc1a293c67479470b4b878a8080bb6b4385c4ce522e58e314d84fd09dad1bf8f76fc0d11ecdab3ad72b2c824349ff79c965096415560d2695a54f WHIRLPOOL db0f31b0aaf6688ce53be40e33652dafebc8ce6ae9b14b8658e69681d5216be7dc725b794ff6c76befa49b87078ce0dbd3111cf8271f99f25eff1d87b69353b5
+MISC ChangeLog-2015 1903 SHA256 c810e57a4f751bdbddfba7b5f43ef6b3bf7e4e5a3bb4450b8bf558fe6906041c SHA512 00a00be37d28097dd31c471bab2bd3f308824505dbdc3052f0ee375dde02ec1cc30a0fe7a32e413a40baca1d0e01def881fa8cc6a531357ad5469398de49bd70 WHIRLPOOL 1e6739fcbf6a8fb23bf70d041764abf26524756235125344d3349b3f26882ac8c8a9d05517549ca75cd8a2a3375b9c6dafa51cb4c4a8f01736335aea4545ab61
+MISC metadata.xml 329 SHA256 9da4468b615f474677359d04c842bb4bf8538f55a85f649724d7352f350953d8 SHA512 f2badabd41a46561df730bb570737e39eaea1430e438a1c32759b5642fce8afce3d0b7a62e8f2dc4f34e0c65ac4c7497a1ec2e9d218fcf0efa2023cbc7623c01 WHIRLPOOL 1dbfceefa9e895b91b1f926b7c0355377db0de08e4bd26460df57ca30c52a899a07b3622ca46c1970c00415aaefc3a60ed67f5a26cd08011639e31ed67dde586
diff --git a/dev-util/ticpp/metadata.xml b/dev-util/ticpp/metadata.xml
new file mode 100644
index 000000000000..22534e587ae2
--- /dev/null
+++ b/dev-util/ticpp/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>ago@gentoo.org</email>
+ <name>Agostino Sarubbo</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">rjpcomputing/ticpp</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/ticpp/ticpp-0_p20120423.ebuild b/dev-util/ticpp/ticpp-0_p20120423.ebuild
new file mode 100644
index 000000000000..bb4f925a7ac3
--- /dev/null
+++ b/dev-util/ticpp/ticpp-0_p20120423.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+DESCRIPTION="A completely new interface to TinyXML that uses MANY of the C++ strengths"
+HOMEPAGE="https://github.com/rjpcomputing/ticpp"
+SRC_URI="https://dev.gentoo.org/~ago/distfiles/${P}.tar.bz2"
+
+LICENSE="MIT"
+KEYWORDS="amd64 ~ppc x86"
+SLOT="0"
+IUSE="debug doc"
+
+DEPEND="dev-util/premake:4
+ doc? ( app-doc/doxygen )"
+RDEPEND=""
+
+src_prepare() {
+ premake4 gmake || die
+
+ sed -i "s:\$(ARCH)::g" TiCPP.make || die
+}
+
+src_compile() {
+ local myconf
+ use !debug && myconf="config=release"
+ emake ${myconf}
+
+ if use doc ; then
+ sed -i -e '/GENERATE_HTMLHELP/s:YES:NO:' dox || die
+ doxygen dox || die
+ fi
+}
+
+src_install () {
+ insinto /usr/include/ticpp
+ doins *.h
+
+ if use debug ; then
+ dolib lib/libticppd.a
+ else
+ dolib lib/libticpp.a
+ fi
+
+ dodoc {changes,readme,tutorial_gettingStarted,tutorial_ticpp}.txt
+
+ use doc && dohtml -r docs/*
+}
diff --git a/dev-util/ticpp/ticpp-9999.ebuild b/dev-util/ticpp/ticpp-9999.ebuild
new file mode 100644
index 000000000000..4b63f1ecff22
--- /dev/null
+++ b/dev-util/ticpp/ticpp-9999.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit subversion
+
+ESVN_REPO_URI="https://${PN}.googlecode.com/svn/trunk/"
+MY_PV=cvs
+
+DESCRIPTION="A completely new interface to TinyXML that uses MANY of the C++ strengths"
+HOMEPAGE="https://github.com/rjpcomputing/ticpp"
+SRC_URI=""
+
+LICENSE="MIT"
+KEYWORDS=""
+SLOT="0"
+IUSE="debug doc"
+
+DEPEND="dev-util/premake:4
+ doc? ( app-doc/doxygen )"
+RDEPEND=""
+
+src_prepare() {
+ premake4 gmake || die
+
+ sed -i "s:\$(ARCH)::g" TiCPP.make || die
+}
+
+src_compile() {
+ local myconf
+ use !debug && myconf="config=release"
+ emake ${myconf}
+
+ if use doc ; then
+ sed -i -e '/GENERATE_HTMLHELP/s:YES:NO:' dox || die
+ doxygen dox || die
+ fi
+}
+
+src_install () {
+ insinto /usr/include/ticpp
+ doins *.h
+
+ if use debug ; then
+ dolib lib/libticppd.a
+ else
+ dolib lib/libticpp.a
+ fi
+
+ dodoc {changes,readme,tutorial_gettingStarted,tutorial_ticpp}.txt
+
+ use doc && dohtml -r docs/*
+}
diff --git a/dev-util/tinlink/Manifest b/dev-util/tinlink/Manifest
new file mode 100644
index 000000000000..8d544d109e86
--- /dev/null
+++ b/dev-util/tinlink/Manifest
@@ -0,0 +1,5 @@
+DIST tinlink-1.0.0.tar.gz 4726 SHA256 541be21de7543b2e3ba549ff033803bf6a308fa423bbc3ae7640003ad78752c1 SHA512 30e81ecba9850caaedc6d295d6ae88a24b8799e1ab74158a3f98da17d68dd6b0dd23a7076f887114f695f1023e832225bff8c4c2044dc105763ef47b0111ebef WHIRLPOOL 4c44829a078acf962a5e2d396690685a99b13b4fea3a8ddf66731fd511987b3241bdfcf66039a9fd3481807fec5f86221cc0b42b8c521b848c595e72752cdae3
+EBUILD tinlink-1.0.0.ebuild 576 SHA256 a396f69a0ace2d694e3738bfe1cfafe7b8cb51bdae2930af703f4a2e3d9a84ae SHA512 bb85e29babf6b0545ec4f8b2a32e663610a552ba5bc6998630d1eba0b171aa870616aeae87144c103bfb4e3400800860a2996a02350cee17ad88e2c479ee39c3 WHIRLPOOL 3adbfe2d87d9c1d2379cc48b09c7759bae95299cd912e881f400bfb202a6f7deb8db9b4577cbab000098b4411d7e673f5bfd944b975127daa11e58a740e0498c
+MISC ChangeLog 2706 SHA256 9a0accb51d2fffccf7dc80d9b88629280f233c8b3d821e37d150be1c6a210a3f SHA512 ed61026de5fa38f6d4694b11f647a425fe9966ece06783d90abaa89070fe5e8d5e3b4517efc98c60df0b566b9cfc41c9ebfa6e1f5856179588101467733959f5 WHIRLPOOL 2f110306d9cc60cd874226c0d1b863ee2192600c67d100883d7af61481c0d61f93c81d2c1282ab66f9c7af5128dcba0ab7603480535e5d25e7d072a290e88f42
+MISC ChangeLog-2015 706 SHA256 f75ba7f9e7a610d4300bbe9f664d6407b0ba95ba68f550d07d1669c25b78df76 SHA512 a2899f0bcecce5a348b35558c0b4e2766e7567887f3c44115a14e1db80f6e0adea6a2a876ce7489d6395c6f087b23d2710830f36c0eb686bdaf5508a222ffeb7 WHIRLPOOL 1aff921dae71e038c57ac435b7927a0e59265a03ff6bb3b1cd314b5650516331cf544752912c2fb82fff8e4468649fe9ed884aaaa84efada3e42b5cb7303920a
+MISC metadata.xml 256 SHA256 d30e6c3b8417bdf0cf4cef8310cd1a81e600e643707e9c215a3e27db61c1d954 SHA512 eb8e446afc52f5f079733bdaf0db316e97194ba08e3b1370a287db29ea0bd7974bb237dfc67ff22a115538ec830b632b98390a8e59ace9634a89dfa9c02037b5 WHIRLPOOL 54aca0ae35c2e8ac1797106908b50f31eb7ab9783df8dc1749304b2f0ca553f8fcd109b5c689715e44b0c6b7a81fbb256686e80cf432688259ae38e8ed018c79
diff --git a/dev-util/tinlink/metadata.xml b/dev-util/tinlink/metadata.xml
new file mode 100644
index 000000000000..b4a27e94fc24
--- /dev/null
+++ b/dev-util/tinlink/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>bircoph@gentoo.org</email>
+ <name>Andrew Savchenko</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-util/tinlink/tinlink-1.0.0.ebuild b/dev-util/tinlink/tinlink-1.0.0.ebuild
new file mode 100644
index 000000000000..42806808b6e4
--- /dev/null
+++ b/dev-util/tinlink/tinlink-1.0.0.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit toolchain-funcs
+
+DESCRIPTION="a tool to create very small elf binary from pure binary files"
+HOMEPAGE="http://sed.free.fr/tinlink/"
+SRC_URI="http://sed.free.fr/tinlink/${P}.tar.gz"
+
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~ppc"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+src_unpack() {
+ unpack ${A}
+ rm -f "${S}"/Makefile
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" tinlink || die
+}
+
+src_install() {
+ dobin tinlink || die
+ dodoc AUTHORS README example.asm
+}
diff --git a/dev-util/tkdiff/Manifest b/dev-util/tkdiff/Manifest
new file mode 100644
index 000000000000..e0ccfbcd6f21
--- /dev/null
+++ b/dev-util/tkdiff/Manifest
@@ -0,0 +1,5 @@
+DIST tkdiff-4.2.tar.gz 92063 SHA256 734bb417184c10072eb64e8d274245338e41b7fdeff661b5ef30e89f3e3aa357 SHA512 6c16475b808a9ac4d51a3e0b348d12739d821743eb205281473408a722ef7329e7dee61b4e0536741fab0c88eb67b00080d84598fca5e3215d4b183a858f6984 WHIRLPOOL bb04cdc915a7ac911435640f36ceb395d54682912af0332b2479587ae9fba1256e6c1a6fa530c0abdb447bf8b5eedc3405f87cc125fc040330b9abd261f45f5b
+EBUILD tkdiff-4.2.ebuild 474 SHA256 8b751d6b1ab8c8b5a269a10b48db4d424993af416be61e25277b6edba6d6bbd8 SHA512 d721ae135b7b59c989d2992603ba4999104e264f418f912a515162d014585cd8626396072c85d2ea3652beee268391bfd8738d1be19599171d1e752c61aefd90 WHIRLPOOL 119f6c546db1781d9e232601a49123321c25d49b69e6b0e36652dd061e8e8601b517bfedb187e0debda8409cee0101d43082af8ab9e33daa55b9f17f3a638b6a
+MISC ChangeLog 2701 SHA256 58924e4822e990203ed7ff2f0a5efc0fe1d78c4fe1b3b9b1add8b366e47d168e SHA512 e821f5700a26583258b1c4da18ab0a833fe2779fa88082b3c913fdccead7c2f7b6200fa984bc20c44d87e70e12f5625beca49bc20e85b29e283ffac358100c8f WHIRLPOOL d8e9ea9f8e99fdca9741a5561f08b00fcac16af13df9fcf8d45095fd3da953add80a951e62db9e1be231c29a128276fd02e30a0886a7505f84369a198c710840
+MISC ChangeLog-2015 3034 SHA256 e01c54287a3b7450e5d09213cac4d92e2dd6a3007e47664f85e8b95df7e7660d SHA512 cb600b6e6c9fb99da39a70791360cc2af776a72ddd36d626643b9b36009acec0e85cb1031d37dd222423c82fa54c1937f58fb85a4c1957126f6d13e1a8ff1e16 WHIRLPOOL e459b968406235e08b7595775368896a94eba89790f9defe3598a5abc041d4f61fb9ab56e4d83ecd7a49e03431e1687d7007ee3e5ceba78004bc177d4493e74a
+MISC metadata.xml 329 SHA256 8c501eac7b4c327b90a224c9647a9974928065ae67924fe57df0518752ac3db3 SHA512 b4d8e2c6df1cba67c191b95e7381da88c9d50715dcb2dddf74b91927bcf5509b2beecfac337a5e06657f3e3ec045808cb1f912c9ad9736b68ef3ed270b93c957 WHIRLPOOL 32ebdf695d48bb5547d50595b91bf5d4164b8a178b20868015db414d1ecc977f54f831104553d0d596785ebb6a848b505f01f511763eae33bd20e27c475a9642
diff --git a/dev-util/tkdiff/metadata.xml b/dev-util/tkdiff/metadata.xml
new file mode 100644
index 000000000000..b2dc049fd070
--- /dev/null
+++ b/dev-util/tkdiff/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="project">
+ <email>tcltk@gentoo.org</email>
+ <name>Gentoo Tcltk Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">tkdiff</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/tkdiff/tkdiff-4.2.ebuild b/dev-util/tkdiff/tkdiff-4.2.ebuild
new file mode 100644
index 000000000000..cc4994205d46
--- /dev/null
+++ b/dev-util/tkdiff/tkdiff-4.2.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Graphical front end to the diff program"
+HOMEPAGE="http://tkdiff.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux"
+IUSE=""
+
+RDEPEND="dev-lang/tk"
+DEPEND="${DEPEND}"
+
+S="${WORKDIR}/${PN}-unix"
+
+src_install() {
+ dobin tkdiff
+ dodoc CHANGELOG.txt
+}
diff --git a/dev-util/tmake/Manifest b/dev-util/tmake/Manifest
new file mode 100644
index 000000000000..8b76e8295814
--- /dev/null
+++ b/dev-util/tmake/Manifest
@@ -0,0 +1,6 @@
+DIST tmake-2.12.tar.bz2 47558 SHA256 fadb103ec02309a03a309f01a60966a542f2fb0f93ef67486d2840e10a220f09 SHA512 203a37aca7d391cf8bf7c27d9e5a9825472e9464f745d50b40343f71986ea5a48030372fa858ad5dade0807951f5c413145b9521ee1da416ff4952f8bb845ada WHIRLPOOL 68d425f6dc2233b5cd68d4505cf837629b9f932a97f31b3e19bfa489259c41b185a5754f33e97479b6f0bfbccc39324fed53da121b05de7dd373788d2923a145
+EBUILD tmake-2.12-r1.ebuild 606 SHA256 c166cfa5b4876ee32da39d858a634ce2839bff6b25a8731a8cb769f0066fb3d2 SHA512 082932540467f57cd1263ac9a4d9b46305ae76cb619bfb02d09aaa3139f4811dc9eff0367aafc340b2974700e46d7ed30e9326214a5c53c29d5d6ba0f57a8b49 WHIRLPOOL 1624e8f8fca9e1622ed646b8653ff155893a2660a6066df053d491641956677534ca158bb499d05fcb9e07b597f179679592314482cf2b469d6f4b129c7ffa04
+EBUILD tmake-2.12.ebuild 606 SHA256 a350e8470675ca2f04e41ff6c184a66ef402a2f8108c74fb2003635e612fe137 SHA512 fc23d5b01823ea2ca8b86eaae599a01f33edabb79c5d9831ba59bb1ab895eb7274353caf794a40ea234da7e850f7f5b715670b771671cd5d29ae699356b60090 WHIRLPOOL dfe423213bfd084bb7a08e1e7c9382f4380efc75f9c8356d1de51a78f57a3847a7f9ead5197a9f04e976d67e794a7629d9de0a81f2261d43773a3ad4bb1a4781
+MISC ChangeLog 2514 SHA256 fcde21568c8bd3126dd68838aef0040aec602d6d2e70cb9aa06af7ad8fae3fd9 SHA512 5d70fc86df3bdff89564f198353d699097f0a20eb6c0d447f540765d64bc41187e35f3995195d6d9de88a6d2f6d5a24bbcdafa6d21751692d2eb841681dc4a6c WHIRLPOOL 3fa71c9d6b1f947a6e4dafdc756ae3d9d77a7cdd0f377d1b7360bc21b9dbfb03287026dc16cffe72e36f0aa889679c33888a190a813b896dd558fdfd256bee5e
+MISC ChangeLog-2015 3505 SHA256 88db1eb2225efe8befb584b1c20c3eda03470fc0c3f2bd8b11daf7013d9ab4be SHA512 6282ee3b6f3a00b774ade46c72a3d71a2be4eff3c5c353c5d1b9b178bb17af3d3723d52a8bd37d7f4faf13ebf8dc72d21346e33d9c80a944a4e642d9724e78ae WHIRLPOOL 28f23fff6eef5d90b6acc1e227fbce2f8c5ec2279522b15d81b038fb53d53f6c71e45762fec3eb68bf1b93a07ba1c1acf95a742fe6cefee82cbe064cc6f6b3b8
+MISC metadata.xml 242 SHA256 a1742b708e14e12fc0a167f76f6c5f28cdcca52ecca15647de14bcf65d7ae234 SHA512 6212facd652d416cf5e57a8607563f29573595984ffd05f5d0ce068fa48d6ad9155cf9fea6308702cc9f6ee36e27d38dd35c13ba3b47a3500c5d6124880b0869 WHIRLPOOL c892107c9faa9b380289691da80a443ad54ff5d33881212dd62af33e258c6c9d0a78fd399b53db9658d30c00b7cc081a27544987eb52d268b5a1a651b56fb13a
diff --git a/dev-util/tmake/metadata.xml b/dev-util/tmake/metadata.xml
new file mode 100644
index 000000000000..24c5c006abab
--- /dev/null
+++ b/dev-util/tmake/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-needed -->
+ <upstream>
+ <remote-id type="sourceforge">tmake</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/tmake/tmake-2.12-r1.ebuild b/dev-util/tmake/tmake-2.12-r1.ebuild
new file mode 100644
index 000000000000..a8025506c657
--- /dev/null
+++ b/dev-util/tmake/tmake-2.12-r1.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="A Cross platform Makefile tool"
+SRC_URI="mirror://sourceforge/tmake/${P}.tar.bz2"
+HOMEPAGE="http://tmake.sourceforge.net"
+
+LICENSE="HPND"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86 ~x86-linux ~ppc-macos"
+IUSE=""
+
+RDEPEND=">=dev-lang/perl-5"
+
+src_install () {
+ dobin bin/tmake bin/progen
+ dodir /usr/lib/tmake
+ cp -pPRf "${S}"/lib/* "${ED}"/usr/lib/tmake
+ dodoc README
+ dohtml -r doc/*
+ echo "TMAKEPATH=\"${EPREFIX}/usr/lib/tmake/linux-g++\"" > "${T}"/51tmake
+ doenvd "${T}"/51tmake
+}
diff --git a/dev-util/tmake/tmake-2.12.ebuild b/dev-util/tmake/tmake-2.12.ebuild
new file mode 100644
index 000000000000..751d77e77003
--- /dev/null
+++ b/dev-util/tmake/tmake-2.12.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="3"
+
+DESCRIPTION="A Cross platform Makefile tool"
+SRC_URI="mirror://sourceforge/tmake/${P}.tar.bz2"
+HOMEPAGE="http://tmake.sourceforge.net"
+
+LICENSE="HPND"
+SLOT="0"
+KEYWORDS="~amd64 ppc x86 ~x86-linux ~ppc-macos"
+IUSE=""
+
+RDEPEND=">=dev-lang/perl-5"
+
+src_install () {
+ dobin bin/tmake bin/progen
+ dodir /usr/lib/tmake
+ cp -pPRf "${S}"/lib/* "${ED}"/usr/lib/tmake
+ dodoc README
+ dohtml -r doc/*
+ echo "TMAKEPATH=\"${EPREFIX}/usr/lib/tmake/linux-g++\"" > "${T}"/51tmake
+ doenvd "${T}"/51tmake
+}
diff --git a/dev-util/trace-cmd/Manifest b/dev-util/trace-cmd/Manifest
new file mode 100644
index 000000000000..a7f632dca433
--- /dev/null
+++ b/dev-util/trace-cmd/Manifest
@@ -0,0 +1,8 @@
+AUX trace-cmd-2.5.1-makefile.patch 1152 SHA256 991083db0f9a4ec10fbcd18a4d5b002faf8eec3ac592a09ef1b2d290fff74275 SHA512 e74742d3c050f9e7bdb566a82a5212e6474b34ee6fc46e9ffa313ad3f2c323f55b63521ec857ae44f39ef168135fcdf733314fb3e04709e51f03ef7aed99c416 WHIRLPOOL 02e21d94c957110bf9fa0c309d3e1ac86323c30f6ef70d7d82bd2f62ea5deb9a28f66026e61dc2b47f64e4599e0fb24fbf2b36a1b317bdb82d2c81953f2654d8
+DIST trace-cmd-2.5.1.tar.xz 1577148 SHA256 591aa00ff90a60fa2bce8637392126623511fd7629a771c7e3276137b31b3966 SHA512 2280eefa130a3914c34798f8bd4097a55f7f4fa4632b3d26ee1317bba54625d259ac61c6576dd3051fb2be48fb593fa54a4203d1828b7fec5fd196de00491ea2 WHIRLPOOL 4185a05c96204fb5ec8256620af53ec4c4bb2e0f7e2f268c7a6814ed788b1ce256f2dba429eef80dcf2b2409b3cd1ff11bed9bae43da558de9f6d3bb2c7c654c
+DIST trace-cmd-2.6.tar.xz 1584768 SHA256 e390265567b7701d92d8f7480ea669314609353bae9e0d57e8dd66951d8655f9 SHA512 cf479a940825935aa89b282c7a617d56fa5dd1f82e3322a969c4e0a08343ceca16c40058ead5f5878260ce0a003102550808c5475110706580769dffb1897c54 WHIRLPOOL 63cd934a5985d581faebb5108562bbc2fec6d445120f09c4e7689f4330ade846c3ed53875a04e5741c8b9cef78029440f871e38c5e95f3b2c8436c04411d31df
+EBUILD trace-cmd-2.5.1.ebuild 1519 SHA256 eb1dc9951152011ac736a875a22cb5ff718cd17e13da8dd5aab8e4343e4e2f8f SHA512 564125aa45004c07e27a83d2e78fbbfd9670c4079c7d8afc679c9c3445ceca54370bd168dcccbf65101752bfb8a5b9b7f04264f172d7b12be917d1388d2e5c5b WHIRLPOOL 38e93607a406db5ce84b3f4fe0bdda3c005158f9a6acf2c074dafa6a17697c7f7ab8151f3e49078959760cec65e81adefff89a900bfd74cdac3010102989b632
+EBUILD trace-cmd-2.6.ebuild 1500 SHA256 2cc6a2cbcc3c331dddbc3c05ae35734d0963339ab86f1cd2b7039ecb5203714b SHA512 866ac85fd69cac13215ca03f3044bf2214a46c0d711c6e4305acab224e7df6dd8258189a1c11155ab385c76d1592834b5ff79b1a6e8619c8940100c2c91c522d WHIRLPOOL c1f0e490bed8edf579da1e972136c013964a60da36c62c76a6d1b476a7783202beb26fa05a94cf6343b5e1801a6b78a526bb971c61abe83f5887f8cf75053ef1
+MISC ChangeLog 2408 SHA256 7defdaaf334aa4ba02f90bead66b44468e2fbc0724cea398429835cf87a81797 SHA512 cd93adaebea151443b38bead00c7a1757756c64dda3843688f3fc46fa83b9f2ee2e20d4f91a2a6137b5ed0de3790369a3161c69e40905e20217d330354dc42fd WHIRLPOOL e6b0cc5fc938b64537c15613e4bc50177d28ebeec578f50654497e83fc3f13ab2c8ff9417f0df62663429f3021349d787d73775b6fc1a3e2c4d1c7011811629a
+MISC ChangeLog-2015 538 SHA256 33917e85e26598373b2ba6057a60e361562dcdd5a8d2e6ed54f4cd9a35615893 SHA512 49edb210e24a1afd462f08dfa6646e44f196e760092a48b4050d0098729b1b85ffd418529317fabee3a3114517061fa5e286a3c9a1cb4fc9f98715b135a7e12f WHIRLPOOL f5d4db863d5c47ef4b4af5def8525cb96e03031be19f598b261fd5a24ae670709beb8ed88cb262cd144fc95fb978fb69fe0f62578c24bcfa3a86e5b748333d87
+MISC metadata.xml 349 SHA256 efbcef54583c3962daad24d51dd999c72195cdf5a1b72d061f7e8a242166adf6 SHA512 0a6322fba3de56559284a0f1e4abc83791cf089a74cb369d167b30dadaa019353c8eef0e09e91ad84b130f0660c1dfa665e4252987903884029f4d08fe80c552 WHIRLPOOL 851a6a5afe4bbb4e27d5dd95f3944905f00abdfef4ff3d0eec4caeaf217bed1c63ce3092c0fbe8b669801694b1f374614375607581415954fa4a79d1c68217f9
diff --git a/dev-util/trace-cmd/files/trace-cmd-2.5.1-makefile.patch b/dev-util/trace-cmd/files/trace-cmd-2.5.1-makefile.patch
new file mode 100644
index 000000000000..ec9fb1774a3a
--- /dev/null
+++ b/dev-util/trace-cmd/files/trace-cmd-2.5.1-makefile.patch
@@ -0,0 +1,34 @@
+diff --git a/Makefile b/Makefile
+index 186e245..9127f23 100644
+--- a/Makefile
++++ b/Makefile
+@@ -58,7 +58,7 @@ plugin_dir = $(HOME)/.trace-cmd/plugins
+ python_dir = $(HOME)/.trace-cmd/python
+ else
+ plugin_dir = $(prefix)/$(libdir)/trace-cmd/plugins
+-python_dir = $(prefix)/$(libdir)/trace-cmd/python
++python_dir ?= $(prefix)/$(libdir)/trace-cmd/python
+ PLUGIN_DIR = -DPLUGIN_DIR="$(plugin_dir)"
+ PYTHON_DIR = -DPYTHON_DIR="$(python_dir)"
+ PLUGIN_DIR_SQ = '$(subst ','\'',$(PLUGIN_DIR))'
+@@ -98,8 +98,11 @@ endif # NO_PYTHON
+ test-build = $(if $(shell sh -c 'echo "$(1)" | \
+ $(CC) -o /dev/null -c -x c - > /dev/null 2>&1 && echo y'), $2)
+
++ifndef NO_UDIS86
+ # have udis86 disassembler library?
+-udis86-flags := $(call test-build,\#include <udis86.h>,-DHAVE_UDIS86 -ludis86)
++udis86-flags := -DHAVE_UDIS86
++udis86-ldflags := -ludis86
++endif # NO_UDIS86
+
+ define BLK_TC_FLUSH_SOURCE
+ #include <linux/blktrace_api.h>
+@@ -242,6 +245,7 @@ endif
+ # Append required CFLAGS
+ override CFLAGS += $(CONFIG_FLAGS) $(INCLUDES) $(PLUGIN_DIR_SQ)
+ override CFLAGS += $(udis86-flags) $(blk-flags)
++override LDFLAGS += $(udis86-ldflags)
+
+ ifeq ($(VERBOSE),1)
+ Q =
diff --git a/dev-util/trace-cmd/metadata.xml b/dev-util/trace-cmd/metadata.xml
new file mode 100644
index 000000000000..d0ed66266c6a
--- /dev/null
+++ b/dev-util/trace-cmd/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>chutzpah@gentoo.org</email>
+ <name>Patrick McLean</name>
+ </maintainer>
+ <use>
+ <flag name="udis86">Enable support for dev-libs/udis86 disassembler library</flag>
+ </use>
+</pkgmetadata>
diff --git a/dev-util/trace-cmd/trace-cmd-2.5.1.ebuild b/dev-util/trace-cmd/trace-cmd-2.5.1.ebuild
new file mode 100644
index 000000000000..c6acbd767956
--- /dev/null
+++ b/dev-util/trace-cmd/trace-cmd-2.5.1.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=(python2_7)
+
+inherit eutils toolchain-funcs linux-info python-single-r1
+
+DESCRIPTION="User-space front-end for Ftrace"
+HOMEPAGE="https://git.kernel.org/cgit/linux/kernel/git/rostedt/trace-cmd.git"
+SRC_URI="mirror://gentoo/${P}.tar.xz"
+
+LICENSE="GPL-2 LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="doc gtk python udis86"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+RDEPEND="python? ( ${PYTHON_DEPS} )
+ udis86? ( dev-libs/udis86 )
+ gtk? (
+ ${PYTHON_DEPS}
+ dev-python/pygtk:2[${PYTHON_USEDEP}]
+ )"
+DEPEND="${RDEPEND}
+ sys-kernel/linux-headers
+ python? (
+ virtual/pkgconfig
+ dev-lang/swig
+ )
+ gtk? ( virtual/pkgconfig )
+ doc? ( app-text/asciidoc )"
+
+CONFIG_CHECK="
+ ~TRACING
+ ~FTRACE
+ ~BLK_DEV_IO_TRACE"
+
+pkg_setup() {
+ linux-info_pkg_setup
+ use python && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-makefile.patch
+ epatch_user
+}
+
+src_configure() {
+ MAKEOPTS+=" prefix=/usr libdir=$(get_libdir) CC=$(tc-getCC) AR=$(tc-getAR)"
+
+ if use python; then
+ MAKEOPTS+=" PYTHON_VERS=${EPYTHON//python/python-}"
+ MAKEOPTS+=" python_dir=$(python_get_sitedir)/${PN}"
+ else
+ MAKEOPTS+=" NO_PYTHON=1"
+ fi
+
+ use udis86 || MAKEOPTS+=" NO_UDIS86=1"
+}
+
+src_compile() {
+ emake all_cmd
+ use doc && emake doc
+ use gtk && emake -j1 gui
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ use doc && emake DESTDIR="${D}" install_doc
+ use gtk && emake DESTDIR="${D}" install_gui
+}
diff --git a/dev-util/trace-cmd/trace-cmd-2.6.ebuild b/dev-util/trace-cmd/trace-cmd-2.6.ebuild
new file mode 100644
index 000000000000..4187d0fdd2f3
--- /dev/null
+++ b/dev-util/trace-cmd/trace-cmd-2.6.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=(python2_7)
+
+inherit eutils toolchain-funcs linux-info python-single-r1
+
+DESCRIPTION="User-space front-end for Ftrace"
+HOMEPAGE="https://git.kernel.org/cgit/linux/kernel/git/rostedt/trace-cmd.git"
+SRC_URI="mirror://gentoo/${P}.tar.xz"
+
+LICENSE="GPL-2 LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="doc gtk python udis86"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+RDEPEND="python? ( ${PYTHON_DEPS} )
+ udis86? ( dev-libs/udis86 )
+ gtk? (
+ ${PYTHON_DEPS}
+ dev-python/pygtk:2[${PYTHON_USEDEP}]
+ )"
+DEPEND="${RDEPEND}
+ sys-kernel/linux-headers
+ python? (
+ virtual/pkgconfig
+ dev-lang/swig
+ )
+ gtk? ( virtual/pkgconfig )
+ doc? ( app-text/asciidoc )"
+
+CONFIG_CHECK="
+ ~TRACING
+ ~FTRACE
+ ~BLK_DEV_IO_TRACE"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-2.5.1-makefile.patch
+)
+
+pkg_setup() {
+ linux-info_pkg_setup
+ use python && python-single-r1_pkg_setup
+}
+
+src_configure() {
+ MAKEOPTS+=" prefix=/usr libdir=$(get_libdir) CC=$(tc-getCC) AR=$(tc-getAR)"
+
+ if use python; then
+ MAKEOPTS+=" PYTHON_VERS=${EPYTHON//python/python-}"
+ MAKEOPTS+=" python_dir=$(python_get_sitedir)/${PN}"
+ else
+ MAKEOPTS+=" NO_PYTHON=1"
+ fi
+
+ use udis86 || MAKEOPTS+=" NO_UDIS86=1"
+}
+
+src_compile() {
+ emake all_cmd
+ use doc && emake doc
+ use gtk && emake -j1 gui
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ use doc && emake DESTDIR="${D}" install_doc
+ use gtk && emake DESTDIR="${D}" install_gui
+}
diff --git a/dev-util/treecc/Manifest b/dev-util/treecc/Manifest
new file mode 100644
index 000000000000..fc6c27ca55ef
--- /dev/null
+++ b/dev-util/treecc/Manifest
@@ -0,0 +1,5 @@
+DIST treecc-0.3.10.tar.gz 375762 SHA256 5e9d20a6938e0c6fedfed0cabc7e9e984024e4881b748d076e8c75f1aeb6efe7 SHA512 426add1a96913a169a0f03a6e3247a8b48c9073335cf967ef05d4d4188fbe3b8ebc837b38b9a4de94ccdb13685ace47a91b185c75a845cf2670e929802774b73 WHIRLPOOL 5667e873e1c02c25944e07721383c94d7363dcc2132d0c89bb531619d191fb25fdfcce4a8e17e2e4336fac7428925910b5e697298337bf991d87c81c005cad2f
+EBUILD treecc-0.3.10.ebuild 1128 SHA256 ad7b7e0b78e1bbc183817d4f346eb5009fac4444623613afdac92629c6cd570f SHA512 9c55f8399dafd27c8a87a635d84c54e245e816c8cc2cb5d375b3c83d717d1c103392e5710267a8e74a813ac43cfe0df9afbd8cfc3a5d6ada2032b63a6c5293fc WHIRLPOOL 9149fa2a3ebcb19402aaefe524ed67f9b69fca7629ee48d76c8fd12d3a3c15a4edb87a0dc5ec428d43318926d1cfed07aa905c648aef310eb0c5574619717e33
+MISC ChangeLog 2580 SHA256 9e1181f7ab3f952aff22dcc62775bdaacf478b0a1326ee9ff89b20376a316d98 SHA512 c992b261bce7c605cf3c4743c8ae7cc414d4ab7ab391f3d50e551cd81f24595d541c2aa9bb763958c73fa1e24a3dbbcc001fd084a833979dc1bc6c8b0f70a28b WHIRLPOOL 2d60b2e8953c00e673b22a93d03776ad9f094a436f63355655814842baac5072a80efefaf6148d2eb7c7a195c350f96f30d0d98aff1b2c5f1ca186adfd221404
+MISC ChangeLog-2015 4652 SHA256 148e0ad12198521ed51bebb1993e506ac9bc6042c89c7ab2577f1b30ae83305d SHA512 9caf82795f60c005a4c67645c9866e7f5b1bb132665cb06b30ee7e541f6c17cc73ada46e89672d5529ee734aa458052055a8856ac2fb84ffb6e7d7fe2a60ef80 WHIRLPOOL 167039d4e663bae665e8dca1e94d4af4b2833a59b81eec1fc2a09f7bd0994a1059027bedc2e7cd22a6ca39ee812ad558fe3275d669ae7ddb560fb1cac5e41af8
+MISC metadata.xml 251 SHA256 595191d58977749c914fbf6b5c686ffa6b5dfb9e365051cec1c4e8decac81344 SHA512 9b3d8ef0e933c58ceeae768b5e07fec1aba98d2f0add71719bcdec0e571b503b102610c0c4cbc322cc15638547e2f26f149d80c1498edb10b16a874014ae20d0 WHIRLPOOL 0f5236ff12a828b17c19a0948ed84b66cfab03603a10be9ed24c377ec561729f00d2627e49a95972c6e10d164cd8c2bcbcc60425c9f4c64db2d215626ebeaed1
diff --git a/dev-util/treecc/metadata.xml b/dev-util/treecc/metadata.xml
new file mode 100644
index 000000000000..c99669dda129
--- /dev/null
+++ b/dev-util/treecc/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="project">
+ <email>dotnet@gentoo.org</email>
+ <name>Gentoo Dotnet Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/dev-util/treecc/treecc-0.3.10.ebuild b/dev-util/treecc/treecc-0.3.10.ebuild
new file mode 100644
index 000000000000..126876138c19
--- /dev/null
+++ b/dev-util/treecc/treecc-0.3.10.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+DESCRIPTION="compiler-compiler tool for aspect-oriented programming"
+HOMEPAGE="https://www.gnu.org/software/dotgnu"
+SRC_URI="http://download.savannah.gnu.org/releases/dotgnu-pnet/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris"
+IUSE="doc examples"
+
+DEPEND="doc? ( app-text/texi2html )"
+
+src_compile() {
+ econf || die "econf failed"
+ emake || die "emake failed"
+
+ if use doc ; then
+ if [ ! -f "${S}"/doc/treecc.texi ] ; then
+ die "treecc.texi was not generated"
+ fi
+
+ cd "${S}"/doc
+ texi2html -split_chapter "${S}"/doc/treecc.texi \
+ || die "texi2html failed"
+ cd "${S}"
+ fi
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dodoc AUTHORS ChangeLog NEWS README
+
+ if use examples ; then
+ docinto examples
+ dodoc examples/README
+ dodoc examples/{expr_c.tc,gram_c.y,scan_c.l}
+ fi
+
+ if use doc ; then
+ dodoc doc/*.{txt,html}
+
+ docinto html
+ dohtml doc/treecc/*.html
+ fi
+}
diff --git a/dev-util/trinity/Manifest b/dev-util/trinity/Manifest
new file mode 100644
index 000000000000..b41d73fa03ec
--- /dev/null
+++ b/dev-util/trinity/Manifest
@@ -0,0 +1,7 @@
+AUX trinity-1.7-cflags.patch 538 SHA256 04a99d0697b17fed3a64a6c6d1c7f42f4b1f9c5969b7e868f9354a6a003752b9 SHA512 48abb97ad496ab2f74aa5acb8266d7643ce0c6cbe1bc33dfa1acbe107978e7b53aa1a4de33dce18f77eef94408bc661b62dfa0776e87de4cb959dcfa26d51129 WHIRLPOOL 77f4ffc0e6377652a27969dc9ca899e49bed4ce879b354ea95f8b441a783ca459d9e56a46ed627af28cee90eaa0381bacec622c576910aeb12381ba47146ee48
+DIST trinity-1.7.tar.xz 195488 SHA256 4cb2bd4049ce523fdf47490c4c18b8eb713c720d4b3b13d6ec2ae246aac908ad SHA512 bb702ec79494591e04c74279e39d6dd0c5779f7cb2696c306c94bee3a8aefb524e369674daadf02f70b58dbb19ad5699d2c331bc4c9089046d2214403a95ba87 WHIRLPOOL 2b14592a85e049eb0f41f611b645f38be61267a63f83e6ef08c2de35213398c61b30f85da4f4b37c4e9293f4c5064c317aad157df5bca5ca552bc378c2aa4837
+EBUILD trinity-1.7.ebuild 862 SHA256 a5d1e4dacda5bb703c96ccbb3e1c5bdc326442c50b88ec1bd27cd974e19a0086 SHA512 f91dfc4e754aefaa384ec40d7dc57a317de3b7db34badf85ef402b5cf0b4d19b734c8d6d984d45c5e2d2aedc3bfd4d3f191115047d0263d1c71205e1a59b86b3 WHIRLPOOL 1fb642ee1753619537fe12eb42e6f522466e90f349f121bfeb2d163c4721cbe42e079045e5c46b96c59e2c4851ad66a87d73c5554ed2bda66fdaf54c9e5baebf
+EBUILD trinity-9999.ebuild 804 SHA256 266c5af210e7a4c585fec90da11546295690a0ac3366abf0270916935121e9af SHA512 6183f9cba7341792b559fddc183027a7d80fdc7a5531ee26c94aa04ca82663492827b2ee1fb1986d136c69826e1a79183f6c2c6e9ee9b4c018d6af8fdb44c384 WHIRLPOOL 457d1c86560efc3b0b48796c8333521b12f494c5b6771e8df324b2bcdc010a698c20a63e752c3597b4ef8d916c1f02e22dbe27e4dd6a3f0601952f646cb51bd6
+MISC ChangeLog 4170 SHA256 96000b6f7470fce532a823df92c0d85b25299fd71d86ecbe0798f1dfb493ee47 SHA512 da40c17577c32a6e83af33492980b303e93d92908043f0b65695a67986b67f0cef26b86d16d5747b31b9c7b1b49559c2e586f4f0f9e893b9ff4932903dda7b87 WHIRLPOOL 0f2a99e29f100b55bf653830a20cda2d742350c95f3f2b45479066ef4802658c6f61b60fc1a115277bd4df08f5a59e13fe9803d92dd06e56c22481b52123f794
+MISC ChangeLog-2015 1632 SHA256 09c27a17d177702b5804409cea9037cb42a1a47ef894527e0ff90220f59f2d81 SHA512 21796f1922387cd03a0d356bb6a7374e76eaafb4f68568c3f9a7b5663272aaa9d7b1d3ec74352a14795ab87f5c34ce5d9864d3f9367f4700e179470877551601 WHIRLPOOL b3366f2609d69d01c8f3b1d621195d89754e21166fc78ed71efd1874e7a22f1d6ea71628e918e80df4c6a1f20ee18262c108b17360012927726ee321cdfb02ed
+MISC metadata.xml 253 SHA256 82daba2c810d859ad73b4a195ff5e0b08555ed39e6dabbc8d922298f21a405b4 SHA512 c6d2490fa32bc6e044a6b051ba21210f47d7545271a7437b9ed16f49924837e1c88dffc33efb94557b818a508e068e1405fae056c881078c37a001e30947aa25 WHIRLPOOL cc5153d2bdfe0bdfcc75d5fae1cb28a568cef347fa6ae718b721a5b97ffaa795cea02f80ebb96b7a736cfc9731c95052324115dc2b7d4a6919b006263d72a866
diff --git a/dev-util/trinity/files/trinity-1.7-cflags.patch b/dev-util/trinity/files/trinity-1.7-cflags.patch
new file mode 100644
index 000000000000..accdae374bfa
--- /dev/null
+++ b/dev-util/trinity/files/trinity-1.7-cflags.patch
@@ -0,0 +1,14 @@
+diff --git a/Makefile b/Makefile
+index c77d1f9..b970d08 100644
+--- a/Makefile
++++ b/Makefile
+@@ -10,7 +10,8 @@ endif
+ CC := $(CROSS_COMPILE)$(CC)
+ LD := $(CROSS_COMPILE)$(LD)
+
+-CFLAGS += -Wall -Wextra -g -O2 -I. -Iinclude/ -Wimplicit -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D__linux__
++CFLAGS ?= -g -O2 -D_FORTIFY_SOURCE=2
++CFLAGS += -Wall -Wextra -I. -Iinclude/ -Wimplicit -D_GNU_SOURCE -D__linux__
+
+ CFLAGS += $(shell if $(CC) -std=gnu11 -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-std=gnu11"; else echo "-std=gnu99"; fi)
+
diff --git a/dev-util/trinity/metadata.xml b/dev-util/trinity/metadata.xml
new file mode 100644
index 000000000000..1d8df37aeeb8
--- /dev/null
+++ b/dev-util/trinity/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-needed -->
+ <upstream>
+ <remote-id type="github">kernelslacker/trinity</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/trinity/trinity-1.7.ebuild b/dev-util/trinity/trinity-1.7.ebuild
new file mode 100644
index 000000000000..a25cbb887f2f
--- /dev/null
+++ b/dev-util/trinity/trinity-1.7.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit toolchain-funcs
+
+DESCRIPTION="A Linux system call fuzz tester"
+HOMEPAGE="http://codemonkey.org.uk/projects/trinity/"
+SRC_URI="http://codemonkey.org.uk/projects/${PN}/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="examples"
+
+# We need newer headers to avoid compilation failures in the BPF stuff.
+DEPEND="app-arch/xz-utils
+ >=sys-kernel/linux-headers-4.8"
+
+PATCHES=( "${FILESDIR}/${P}-cflags.patch" )
+
+src_configure() {
+ tc-export CC
+ default
+}
+
+src_compile() {
+ # Enable a verbose (i.e. not quiet) build.
+ emake V=1
+}
+
+src_install() {
+ dobin "${PN}"
+ dodoc Documentation/* README
+
+ if use examples ; then
+ exeinto "/usr/share/doc/${PF}/scripts"
+ doexe scripts/*
+ docompress -x "/usr/share/doc/${PF}/scripts"
+ fi
+}
diff --git a/dev-util/trinity/trinity-9999.ebuild b/dev-util/trinity/trinity-9999.ebuild
new file mode 100644
index 000000000000..2e263c788cee
--- /dev/null
+++ b/dev-util/trinity/trinity-9999.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit toolchain-funcs git-r3
+
+EGIT_REPO_URI="https://github.com/kernelslacker/trinity.git"
+
+DESCRIPTION="A Linux system call fuzz tester"
+HOMEPAGE="http://codemonkey.org.uk/projects/trinity/ https://github.com/kernelslacker/trinity/"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="examples"
+
+DEPEND="sys-kernel/linux-headers"
+
+src_prepare() {
+ sed -e 's/-g -O2//' \
+ -e 's/-D_FORTIFY_SOURCE=2//' \
+ -e '/-o $@/s/$(LDFLAGS) //' \
+ -i Makefile || die
+
+ tc-export CC
+ default
+}
+
+src_compile() {
+ emake V=1
+}
+
+src_install() {
+ dobin ${PN}
+ dodoc Documentation/* README
+
+ if use examples ; then
+ exeinto /usr/share/doc/${PF}/scripts
+ doexe scripts/*
+ docompress -x /usr/share/doc/${PF}/scripts
+ fi
+}
diff --git a/dev-util/txt2regex/Manifest b/dev-util/txt2regex/Manifest
new file mode 100644
index 000000000000..1949aaaa15fe
--- /dev/null
+++ b/dev-util/txt2regex/Manifest
@@ -0,0 +1,7 @@
+AUX txt2regex-0.8-disable-nls.patch 696 SHA256 41f8ddd3f84c95cf014feb92b726a748869641d6e7116b3e20c36b67afb3adc0 SHA512 8b3fb8e37695d44078325687e8b7d4ac929578a03a46693f2854445a798f1ecfeae60d2da5212c395d00dae53eca63043865c8ea4a04d26a620d20c3a4aa1c7a WHIRLPOOL 09d91463b088cd938c067f204176633c10c64b100b1fad319bc52ae9fc91eab8c3742b69587430a0dc795e78f4fda5f269fe6d2b8de04ea7ba93d908bebfb2db
+AUX txt2regex-0.8-textdomaindir.patch 729 SHA256 e94df4242b4cba507dc7a76ad6c9aa233d9b915d3d5ce132341dda99266620df SHA512 85178d5cb8cdf9b8faf11c4b66247c8c5102b8035825cb08a4aaf0d8a5148965260e4df85bf1ab5e3aeaa20dad9bbb5d6fa5a6ddc1576c9949eb48bcb6844aa0 WHIRLPOOL bbe75b259608359c867e82bc724e38d92d0d686dcd4465adcaf39703b028a8b1720e87c2b40e4fa102e78f84d03dbaa4fa79eaaa7d7401e5652b3a36e878353c
+DIST txt2regex-0.8.tgz 40514 SHA256 19a10fbcc144ab80d1998488be380e5c4b307101e2740491d9f90685a5c0fc8d SHA512 69d2a682471e3e35fbd0b2ad6f6ffab040803a17bda8082f3dd67baf3a03e7011cb20047940fb9403e180895a1258f720ca4d538187878c5989a1ec51168435f WHIRLPOOL adb6ba8975ea5159ea61a652e0aa0ae8f3661c07a26a65490a0656db35351e67a78557a05490fa783fa8be97cb01cbe33f1443eede1171f6f6877c632a0c94e0
+EBUILD txt2regex-0.8-r3.ebuild 859 SHA256 5862fc4b89b27b6e5e10b26cc62310283c80de112f5e92880184af415d6ef422 SHA512 dc79e8737f3736b765915965d8e754d7d936c6b07e1836d2d55c173c3f73ded6776f7d2758bccda77a045e9565dedbabe08b6a933e6ba70f2a4d70bba988f622 WHIRLPOOL 75591291c58a29bd0069e050ab31f80e02516ed1ffdfe9f0740b6e028650d130ad21e397969e3847fdb83d51d3ce3156ab7eca754235dc54d66a2aaaeb96d5e6
+MISC ChangeLog 4182 SHA256 2d9532c54a0f003be5d51680f4e522b66ee136bfda0408f382a68476c747130a SHA512 d2cdc07169376a281ea99620fcb8a9618ac8a002b3a2e28981fea5a1258a5d8eb07944731ae098fd148f53d29811154b3f0af802ba4a84cc12a2fe1faf2dda8e WHIRLPOOL 221bb9a45bd4c54db7bb023e3638261085b696843540a957e536e0c8f743fc20ea4ec12295b3d3ceb46bf37f4552fd6797af6fd78d627a2d9200b75688030a41
+MISC ChangeLog-2015 2454 SHA256 8ff9a421bdd5215e6fc8a84c7f7d9e7e863e088e23831a0a5654f80502f6ed97 SHA512 33bf82b1158e6902aaf22bcbf40cbcc2626ac0dfc4d052f1f2e5cd75a16ec2e5c5ab1eae766e51c7739305c675685a9151980de95aa32cb6bbfd6a8f352618f0 WHIRLPOOL 7138240008f0ebb4051616f8f3295b1f14da12971bc6dd0b9c7504f0766acd9e5547dac2c4a0d67b83fff06479dceddc16a5fbdc3663ddae26f905a4214ab868
+MISC metadata.xml 344 SHA256 b1c1e7524116a2e0e61876991a098a25223fdd9bf7ee31876d00ad4f4bec410f SHA512 b16ae2357ca3ea0aaa63733fc657cf348df2ff8dca5f4471c8a828c63b535f6c4b0b658935081e14c8e5f40affeea743e3c6028f8d673e1f037ab61e93278731 WHIRLPOOL 428991919a1c614af505c64a78404e68f955f7855ce34c7a80edeb94687fcfa77e5263e871a3af1501e5b258748da1ede057c4f338d86733357e16bb46c11eee
diff --git a/dev-util/txt2regex/files/txt2regex-0.8-disable-nls.patch b/dev-util/txt2regex/files/txt2regex-0.8-disable-nls.patch
new file mode 100644
index 000000000000..878b84a7e3ea
--- /dev/null
+++ b/dev-util/txt2regex/files/txt2regex-0.8-disable-nls.patch
@@ -0,0 +1,19 @@
+--- Makefile.orig 2015-10-13 20:09:55.612486000 +0000
++++ Makefile 2015-10-13 20:11:19.166486000 +0000
+@@ -81,15 +81,9 @@
+ rm -rf $(DISTDIR)
+
+ #TODO install man page and README
+-install: mo
++install:
+ @[ -d $(LOCALEDIR) ] || mkdir -p $(LOCALEDIR); \
+ [ -d $(BINDIR) ] || mkdir -p $(BINDIR); \
+- for pot in `cd $(PODIR) && ls *.mo`; do \
+- poti=`echo $$pot | sed 's/\.mo$$//'`; \
+- modir=$(LOCALEDIR)/$$poti/LC_MESSAGES; \
+- [ -d $$modir ] || mkdir -p $$modir; \
+- install -m644 $(PODIR)/$$pot $$modir/$(NAME).mo; \
+- done; \
+ sed -e '/^TEXTDOMAINDIR=/s,=.*,=$(BLOCALEDIR),' \
+ -e '/^VERSION=/s/=.*/=$(VERSION)/' $(SHSKEL) > $(BINDIR)/$(NAME) && \
+ chmod +x $(BINDIR)/$(NAME) && \
diff --git a/dev-util/txt2regex/files/txt2regex-0.8-textdomaindir.patch b/dev-util/txt2regex/files/txt2regex-0.8-textdomaindir.patch
new file mode 100644
index 000000000000..524f2af8b02e
--- /dev/null
+++ b/dev-util/txt2regex/files/txt2regex-0.8-textdomaindir.patch
@@ -0,0 +1,21 @@
+--- Makefile.orig 2015-10-13 19:24:21.799486000 +0000
++++ Makefile 2015-10-13 19:26:05.187486000 +0000
+@@ -11,7 +11,8 @@
+
+ DESTDIR =
+ BINDIR = $(DESTDIR)/usr/bin
+-LOCALEDIR = $(DESTDIR)/usr/share/locale
++BLOCALEDIR = /usr/share/locale
++LOCALEDIR = $(DESTDIR)$(BLOCALEDIR)
+ MANDIR = $(DESTDIR)/usr/share/man/man1
+
+ TARGET=all
+@@ -89,7 +90,7 @@
+ [ -d $$modir ] || mkdir -p $$modir; \
+ install -m644 $(PODIR)/$$pot $$modir/$(NAME).mo; \
+ done; \
+- sed -e '/^TEXTDOMAINDIR=/s,=.*,=$(LOCALEDIR),' \
++ sed -e '/^TEXTDOMAINDIR=/s,=.*,=$(BLOCALEDIR),' \
+ -e '/^VERSION=/s/=.*/=$(VERSION)/' $(SHSKEL) > $(BINDIR)/$(NAME) && \
+ chmod +x $(BINDIR)/$(NAME) && \
+ echo "program '$(NAME)' installed. just run $(BINDIR)/$(NAME)"
diff --git a/dev-util/txt2regex/metadata.xml b/dev-util/txt2regex/metadata.xml
new file mode 100644
index 000000000000..5228121b668a
--- /dev/null
+++ b/dev-util/txt2regex/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="project">
+ <email>shell-tools@gentoo.org</email>
+ <name>Gentoo Shell Tools Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">txt2regex</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/txt2regex/txt2regex-0.8-r3.ebuild b/dev-util/txt2regex/txt2regex-0.8-r3.ebuild
new file mode 100644
index 000000000000..4eba479be662
--- /dev/null
+++ b/dev-util/txt2regex/txt2regex-0.8-r3.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils
+
+DESCRIPTION="A Regular Expression wizard that converts human sentences to regexs"
+HOMEPAGE="http://txt2regex.sourceforge.net/"
+SRC_URI="http://txt2regex.sourceforge.net/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 hppa ~mips ppc ppc64 sparc x86"
+IUSE="nls cjk"
+
+DEPEND="nls? ( sys-devel/gettext )"
+RDEPEND=">=app-shells/bash-2.04"
+
+src_prepare() {
+ # bug #562856
+ epatch "${FILESDIR}"/"${P}-textdomaindir.patch"
+
+ # bug #93568
+ use nls || epatch "${FILESDIR}"/"${P}-disable-nls.patch"
+
+ use cjk && sed -i -e 's/\xa4/:+:/g' "${S}"/${P}.sh
+}
+
+src_install() {
+ emake install DESTDIR="${D}" MANDIR="${D}"/usr/share/man/man1 install
+ dodoc Changelog NEWS README README.japanese TODO
+ newman txt2regex.man txt2regex.6
+}
diff --git a/dev-util/umockdev/Manifest b/dev-util/umockdev/Manifest
new file mode 100644
index 000000000000..e18346f069bb
--- /dev/null
+++ b/dev-util/umockdev/Manifest
@@ -0,0 +1,6 @@
+AUX umockdev-0.8.11-sysmacros.patch 1132 SHA256 da413e9a204d3ef6d31a8eb060ade6d3b2a52510d27662ff9221a27c870c10cd SHA512 43cd12d94dc4f1370b15a33c1b551332eb67d1a7be4318b9a844eba66aaa25f9bcd3b50eab4b2f2af12c0296bafb8433959e2417bd531bf9c28406c58dcf0ea1 WHIRLPOOL 96e3d036e4d24e94a7a54e13d81699673f39e4bc42f00928ddb7b94d369b04090e6254f80a642f69cf1178fddcfe9be87ed1e25ba98c6b903ce9ca25f2de84a2
+DIST umockdev-0.8.11.tar.xz 741812 SHA256 222518a634c57b1d6d9f51b042e8c80641251260d9c43e6c6273d446d577ccb7 SHA512 dd6aa23873060c2778796f7300b61aa46e6f9bed8b2b2dc107eb747ade93f9d9027385a414f2107f3da4932065e1f7ec488cc91c6f24c3204a7abbbdf4cb8e84 WHIRLPOOL b736ca9d9f73294e5aabc3be75e006efcfdba8f8ecb96cdeb2fb88a12cc3ba53870c416c82c315acc7da7929d07a9efcdc6ceadaa324e0c63a9a60589d66148c
+EBUILD umockdev-0.8.11.ebuild 688 SHA256 7378eff0ba66e1b78564d900b5224efc5d248f2cea743833f6fde223ce8f7f33 SHA512 6fc1c9a49890d5751b2b8ccd762d6ce9987197cdf9d8f13d70bb7cc328b7c0acb4f9d6270085046599e2fb6a57d3d14817b4cf3f7d25e32c35baff2c90c1c999 WHIRLPOOL 8ee0e80355d8b43f8a6d647b00bb447b6d18b18cba51207a77696ceb3103da54634e380fdef720ccb53436894a1650c22da0b78949804d1a49adbb6c603a6857
+MISC ChangeLog 3601 SHA256 e02b4b19aba763d9c353e0f41c2bf39abf0f4b906947d93f075119a709f1dcfe SHA512 526ab7d4c1ec6505929460ef8841eb2ba55671097ac2939f29fc31984933c3b94123cc5f228ca7b5cedd68c3c5b88f3af6584a0e7b14552ff84cc2274efff12b WHIRLPOOL 694ec9ea0dd506334b3a54b83c33878c6b133b08b13f5d0149548a743946caf775156b2dfca9e44b1953b1a63ad832ceec623dfbd39a3388ec0f7401ef897fbd
+MISC ChangeLog-2015 3842 SHA256 257981323d1418f62ca3a04c5b697d4c6d48123b1b97c1bd3cbbb64da531d554 SHA512 02d29f6c9237ebf7ca1708b7780725ef364796f84aed300705453c0998a228d83fa17bfe7d7a9b5790b158f90cba5ed0bb32c4b10d95c37c3810a1f3f793f835 WHIRLPOOL 11831144c764058452bab4ce6494dd2c3e334cddf981c87ec77b94b312d560359b29f29819a165d7fc5d9cf8bba44e758d8e2ee0f1e9abff118ba7a7445ca073
+MISC metadata.xml 302 SHA256 3e34db58bacb628ede41c44dd9237420086178e6eadeee38e2ac869399aae24d SHA512 2ff22fa67bfa335de8cbbb0bd802232a7a1e3d8771fe65409477cb9164b5aa88f12127e86a41e04c07c2d3d581af70d15233f1d145c2c6c1d9f929e952a10706 WHIRLPOOL 8e768aec57877cf857445540acd7a28a0d00f507cfb05e4d930fef8ee79ff30443adf46652d7098612c9603d910741f9ae56a5a16a1ebe96c6ac9704a16974fa
diff --git a/dev-util/umockdev/files/umockdev-0.8.11-sysmacros.patch b/dev-util/umockdev/files/umockdev-0.8.11-sysmacros.patch
new file mode 100644
index 000000000000..17ee6b23759a
--- /dev/null
+++ b/dev-util/umockdev/files/umockdev-0.8.11-sysmacros.patch
@@ -0,0 +1,43 @@
+https://github.com/martinpitt/umockdev/pull/52
+https://bugs.gentoo.org/579988
+
+--- a/src/libumockdev-preload.c
++++ b/src/libumockdev-preload.c
+@@ -39,6 +39,7 @@
+ #include <inttypes.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
++#include <sys/sysmacros.h>
+ #include <sys/inotify.h>
+ #include <sys/socket.h>
+ #include <sys/ioctl.h>
+--- a/src/umockdev-record.c
++++ b/src/umockdev-record.c
+@@ -31,6 +31,7 @@
+ #include <stdarg.h>
+ #include <sys/stat.h>
+ #include <errno.h>
++#include <sys/sysmacros.h>
+ #include <sys/types.h>
+ #include <glib/gstdio.h>
+ #include <fcntl.h>
+--- a/tests/test-umockdev-vala.c
++++ b/tests/test-umockdev-vala.c
+@@ -36,6 +36,7 @@
+ #include <unistd.h>
+ #include <glib/gstdio.h>
+ #include <sys/stat.h>
++#include <sys/sysmacros.h>
+ #include <gobject/gvaluecollector.h>
+
+ #define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
+--- a/tests/test-umockdev.c
++++ b/tests/test-umockdev.c
+@@ -29,6 +29,7 @@
+ #include <errno.h>
+ #include <sys/ioctl.h>
+ #include <sys/socket.h>
++#include <sys/sysmacros.h>
+ #include <sys/un.h>
+ #include <linux/usbdevice_fs.h>
+ #include <linux/input.h>
diff --git a/dev-util/umockdev/metadata.xml b/dev-util/umockdev/metadata.xml
new file mode 100644
index 000000000000..4d3a755af6b8
--- /dev/null
+++ b/dev-util/umockdev/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 -->
+ <upstream>
+ <remote-id type="launchpad">umockdev</remote-id>
+ <remote-id type="github">martinpitt/umockdev</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/umockdev/umockdev-0.8.11.ebuild b/dev-util/umockdev/umockdev-0.8.11.ebuild
new file mode 100644
index 000000000000..a637d862e76a
--- /dev/null
+++ b/dev-util/umockdev/umockdev-0.8.11.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+
+inherit python-any-r1 autotools-utils
+
+DESCRIPTION="Mock hardware devices for creating unit tests"
+HOMEPAGE="https://github.com/martinpitt/umockdev/"
+SRC_URI="https://launchpad.net/${PN}/trunk/${PV}/+download/${P}.tar.xz"
+
+LICENSE="LGPL-2.1+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="static-libs test"
+
+RDEPEND="virtual/libgudev:=
+ virtual/libudev:=
+ >=dev-libs/glib-2.32:2"
+DEPEND="${RDEPEND}
+ test? ( ${PYTHON_DEPS} )
+ app-arch/xz-utils
+ virtual/pkgconfig"
+
+RESTRICT="test"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-sysmacros.patch #579988
+)
diff --git a/dev-util/uncrustify/Manifest b/dev-util/uncrustify/Manifest
new file mode 100644
index 000000000000..fee952e87516
--- /dev/null
+++ b/dev-util/uncrustify/Manifest
@@ -0,0 +1,9 @@
+AUX uncrustify-0.59-unistdh.patch 473 SHA256 92918a0a216d9bd3aaf3fbe8dbd6ab8981b73d1d2212632acb70f27bbff13e31 SHA512 a7ed9c1e0a587dc9923085c7a830192fece50ba18c2a19617de60209e051ec44d517d337738c7948454669b3d2061625379cacb301e44d239b3c2b90b09e6114 WHIRLPOOL 00fd81603560c73c48b586f9567898931879b8bac3789e5ecdb870829dd5bfe4e3d30ee245958c0e1a151c19e5a261e836fe70788cc2b1fa8c3faa0955701ebf
+DIST uncrustify-0.59.tar.gz 983822 SHA256 3f2ba1ca15f7ed1cd0871d54a5dd4ecf006fd167a0fa0fe1d5d76c91106238b5 SHA512 eb228ecb63f777e90ecca44bdef2312fbca2cdbdf9dd899e1f67e9917265667584796b983050138bae39773ab2627e3c3035e519f64dfe51475f207a0e3af900 WHIRLPOOL 85d702e2968d6fbbce7f15fb23d2bbb5e2131f462076e82adf109c684c9b09410c409aa0d75114e7d5b8951d1dfdee80186d483e48d57c1e183d4c3a27bfa8b5
+DIST uncrustify-0.64.tar.gz 1178957 SHA256 2a8cb3ab82ca53202d50fc2c2cec0edd11caa584def58d356c1c759b57db0b32 SHA512 bc7361520adc3c95c9ba3dffeabadec4219af1827ed2f4ae0c4ad94a0f366490854ed40d09ecc6bf3f34941bf87722f013e01d1a1684c9f7fb1adac6dd4fee01 WHIRLPOOL 1e45748b8dc3c2c99dd774677d539b4bd7e1f4f52c3e9a40894df3ab67780767604dd845e9ffc6f69eb23980e447ce8d82c526eba1236454194baac5f25d9a84
+EBUILD uncrustify-0.59.ebuild 726 SHA256 85248fa0eb2c4d56bdaedc45d3a14995490429f01fc3e80715855bea8960f9b3 SHA512 a0aa2fca968e77a7eb0d92d183d97cea5d19a781c28d48167ecbd1b410560436cfd3c31b57876cea5aca4afabad0db76c5a4cfcbd10b0f8a8a72913ca8c7da5e WHIRLPOOL 27bdf8250c17e7d226c9df0d475d1efbbc02b1da5a31907f0dcb3f946d02b26a3ba917e48a902c982fdbaf555603271bdd05f10f4fdfd44addc9c50458eb31fd
+EBUILD uncrustify-0.64.ebuild 768 SHA256 76c768a475b959d28a5907985a044bb592bdfdc0cb803342c9dff839c9fbe3ec SHA512 ddd9587992e64a9872591669e20301ae9955a533dc6dabb7e35ba3764edacf39155221f48107b30c852e863cb4c1e9a049f3efde5742233d4a81415f3d6e87e9 WHIRLPOOL 6e867c87feb35ac1c31cf287e30d28f8707619c2506dd060f7084e1d33bcaf4cf9b826c10b3c2b887f2a7ac138a8d8b429062632b790093257a28c27698180f5
+EBUILD uncrustify-9999.ebuild 768 SHA256 76c768a475b959d28a5907985a044bb592bdfdc0cb803342c9dff839c9fbe3ec SHA512 ddd9587992e64a9872591669e20301ae9955a533dc6dabb7e35ba3764edacf39155221f48107b30c852e863cb4c1e9a049f3efde5742233d4a81415f3d6e87e9 WHIRLPOOL 6e867c87feb35ac1c31cf287e30d28f8707619c2506dd060f7084e1d33bcaf4cf9b826c10b3c2b887f2a7ac138a8d8b429062632b790093257a28c27698180f5
+MISC ChangeLog 3400 SHA256 602e5d33aede1dd33db105f1e1f661fbb63c347d002356001e324ebe36bf70de SHA512 503e0de64a4df10f642c4f8d3f8b32a957d4789c0e4be35ec426275de976a3676c3baf3cea43b14dc25a6e043cfe139873ac6dbee67a0d05231d2e9e773145ed WHIRLPOOL 9e4099b301bf0febf48bc648ae054b0887b7f37655794a2cec9f43dcf0908a1e34e207c4b283ae8ea37f34347ec78a149022494d90141db51cf916cbe3970815
+MISC ChangeLog-2015 3653 SHA256 0cd5e3fcd9b0852be17bcdabfd68e3ffe0d0232647efcc681344f69a4beff524 SHA512 9dc5b75579b82c7fffff9f98b1596b8e064ae6bd26cfe98e4c67c63fe8b4718a9c2f2e347e65001f00a1042b65fefcbf57404b9c9246820c42bede15cc2ce3cf WHIRLPOOL e2f17eb15a1b2cc3dbc437e3a53ac66d6e4e8c0f36b4ac33c72660226ea57cbba87b8ecdcded76f5e5e770e5a480e4ad8aeafbce520ee8b773d53096d32470e3
+MISC metadata.xml 499 SHA256 26fa8a7dc618352f5e0a7652cf55ae32165d9f20c6d19dd4aba7f85d2bf53825 SHA512 e8a379440acebe626dc28ecd4de5e76e1a684e67441bcce6720eb4ea834102c4d020d91a5950ffd24fc297ccd5ea8386850b0bfe0771352539936345d8b1f3cb WHIRLPOOL 56bcb59488eccae096ee4b27946acf09a1f784a74f3803481f51ad39ab0c2b150e3e415f2147e9c046d6a7392adb5270e8f62722223e0ec8fe5ff19b7a700d1b
diff --git a/dev-util/uncrustify/files/uncrustify-0.59-unistdh.patch b/dev-util/uncrustify/files/uncrustify-0.59-unistdh.patch
new file mode 100644
index 000000000000..275c21aba339
--- /dev/null
+++ b/dev-util/uncrustify/files/uncrustify-0.59-unistdh.patch
@@ -0,0 +1,16 @@
+open/close/etc. are defined in unistd.h, GCC 4.7 is stricter in this and
+breaks the build, bug #413859. Upstream already applied a similar
+change for another issue, so next release should be fine.
+
+--- uncrustify-0.59/src/uncrustify.cpp
++++ uncrustify-0.59/src/uncrustify.cpp
+@@ -24,6 +24,9 @@
+ #include <cstdlib>
+ #include <cstring>
+ #include <cerrno>
++#ifdef HAVE_UNISTD_H
++#include <unistd.h>
++#endif
+ #include <fcntl.h>
+ #include "unc_ctype.h"
+ #ifdef HAVE_SYS_STAT_H
diff --git a/dev-util/uncrustify/metadata.xml b/dev-util/uncrustify/metadata.xml
new file mode 100644
index 000000000000..370ea023f4f0
--- /dev/null
+++ b/dev-util/uncrustify/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>grobian@gentoo.org</email>
+ <name>Fabian Groffen</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>alexxy@gentoo.org</email>
+ <name>Alexey Shvetosov</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">uncrustify</remote-id>
+ <remote-id type="github">uncrustify/uncrustify</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/uncrustify/uncrustify-0.59.ebuild b/dev-util/uncrustify/uncrustify-0.59.ebuild
new file mode 100644
index 000000000000..38fc0c4aa6b7
--- /dev/null
+++ b/dev-util/uncrustify/uncrustify-0.59.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="3"
+
+inherit eutils
+
+DESCRIPTION="C/C++/C#/D/Java/Pawn code indenter and beautifier"
+HOMEPAGE="http://uncrustify.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86 ~amd64-linux ~ppc-macos ~x64-macos ~x64-solaris ~x86-solaris"
+IUSE="test"
+
+DEPEND="test? ( =dev-lang/python-2* )"
+RDEPEND=""
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-unistdh.patch
+}
+
+src_test() {
+ cd tests
+ python2 run_tests.py || die "tests failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "Install failed"
+ dodoc AUTHORS ChangeLog NEWS README || die "dodoc failed"
+}
diff --git a/dev-util/uncrustify/uncrustify-0.64.ebuild b/dev-util/uncrustify/uncrustify-0.64.ebuild
new file mode 100644
index 000000000000..d0891fcae6c3
--- /dev/null
+++ b/dev-util/uncrustify/uncrustify-0.64.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+if [[ $PV == *9999* ]]; then
+ EGIT_REPO_URI="https://github.com/${PN}/${PN}.git"
+ KEYWORDS=""
+ SRC_URI=""
+ scm_eclass=git-r3
+else
+ KEYWORDS="~amd64 ~x86 ~amd64-linux ~ppc-macos ~x64-macos ~x64-solaris ~x86-solaris"
+ SRC_URI="https://github.com/${PN}/${PN}/archive/${P}.tar.gz"
+ S=${WORKDIR}/${PN}-${P}
+fi
+
+inherit cmake-utils ${scm_eclass}
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit python-any-r1
+
+DESCRIPTION="C/C++/C#/D/Java/Pawn code indenter and beautifier"
+HOMEPAGE="http://uncrustify.sourceforge.net/"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="test"
+
+DEPEND="test? ( ${PYTHON_DEPS} )"
+
+python_test() {
+ cd tests
+ ${EPYTHON} run_tests.py || die "tests failed"
+}
diff --git a/dev-util/uncrustify/uncrustify-9999.ebuild b/dev-util/uncrustify/uncrustify-9999.ebuild
new file mode 100644
index 000000000000..d0891fcae6c3
--- /dev/null
+++ b/dev-util/uncrustify/uncrustify-9999.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+if [[ $PV == *9999* ]]; then
+ EGIT_REPO_URI="https://github.com/${PN}/${PN}.git"
+ KEYWORDS=""
+ SRC_URI=""
+ scm_eclass=git-r3
+else
+ KEYWORDS="~amd64 ~x86 ~amd64-linux ~ppc-macos ~x64-macos ~x64-solaris ~x86-solaris"
+ SRC_URI="https://github.com/${PN}/${PN}/archive/${P}.tar.gz"
+ S=${WORKDIR}/${PN}-${P}
+fi
+
+inherit cmake-utils ${scm_eclass}
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit python-any-r1
+
+DESCRIPTION="C/C++/C#/D/Java/Pawn code indenter and beautifier"
+HOMEPAGE="http://uncrustify.sourceforge.net/"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="test"
+
+DEPEND="test? ( ${PYTHON_DEPS} )"
+
+python_test() {
+ cd tests
+ ${EPYTHON} run_tests.py || die "tests failed"
+}
diff --git a/dev-util/unifdef/Manifest b/dev-util/unifdef/Manifest
new file mode 100644
index 000000000000..015557c5eb3a
--- /dev/null
+++ b/dev-util/unifdef/Manifest
@@ -0,0 +1,7 @@
+DIST unifdef-2.10.tar.gz 73285 SHA256 1375528c8983de06bbf074b6cfa60fcf0257ea8efcbaec0953b744d2e3dcc5dd SHA512 39d4551f43fa8eccaee8a9fc469b5ddc8ca8eb0e0ce46c17c3a8300f7e6960fbf0960f364a83df20059b4aa623edc7c3c16df1b7162f068332e6c066d7ffe9b3 WHIRLPOOL 54d1e1730cd7eaafba828c508d682dbfa888675e2ae4b709b16c5bc5eb713be6e54afacab10c521a340612ac91d30d9565250e43d4929b13ef2768506bc3ac0a
+DIST unifdef-2.11.tar.gz 77947 SHA256 e8483c05857a10cf2d5e45b9e8af867d95991fab0f9d3d8984840b810e132d98 SHA512 948abf878852da321f15c6060dfe33a2ab38f1787b0a6096f10bb3828d0b4e50226643e9dbcb678a422868c215b5c4e981dc7da5244d38688e8e91287beb8845 WHIRLPOOL 8aaec29a930b44d26854e61803d84011084f3388d5cdbea68b44d11777e5accbba2ff895004a48210338be1ccb7676a7dd4994004b1f78e0baa5d2c3fc5522f6
+EBUILD unifdef-2.10.ebuild 564 SHA256 a9b37fda029a83f93dad1b64adb1dadc6b049e7d1ef2c2b13a03e4ac3d5d5d83 SHA512 435812ff5d0832b094bdab063614fe4c992201e6507e6d6c8be0101d1a1a7a2af582a7544a8df5d0c69bda0de79db6bd471f799d45707f536653e9d5e8ca4641 WHIRLPOOL eb3b9a526ad679df4953a5136abf3426492e09f6bdd8a1fd4d7bf04b68f5de7a3b1299ceace94898da9ba740e3b5d8070b5c4047c0e8bb4144999b74d4f7d985
+EBUILD unifdef-2.11.ebuild 586 SHA256 cda911b109dd33c3a2ea3d05d527000b1f5496d34c426a0757ffa1bc382d6be0 SHA512 81d896841419e609ec28bd53958fa313443a407c3f273a6182ddd49e67ed5ed064ba8dd616dc4df398f2a0d488f7352f42e6e49c8c9ec33b201204a57ed094d8 WHIRLPOOL 18829023a7bde7fb18eac93251c348ee2ea5c5f72c12a6f2a8e2b8d11328726dcd6be5cf4f8fecc37bf6b5b69cf9cb138d0289fd513774aaf11ac0bd93437fc6
+MISC ChangeLog 2765 SHA256 a4344c37371c77aa1a1198825d1a6f86698ec1832bb632d19fa231ad1266d965 SHA512 51185948b0443418600346e501ab9d1a92282c15427e77eeae1b3ca23db34fbdc306e8c2193bcef4ee4bcb76b471e080aafd0edc7e5fb8bdd2a1802e6823f95d WHIRLPOOL 942643bc555d0ce7c919b1ba56784e574af7df61ec44c377dbea20d641b4198dcf096f13b04612100102097aef44c18e4120a4f8ec672da8e0246dd7f46587ab
+MISC ChangeLog-2015 4799 SHA256 20ee0716e5f3919d2475f0835e372bdaf250a4c6311d4629f08d564145859cef SHA512 c3d80c26807ff2ce611d9c510ee2aa923951a7156cab2ae8a748b7538a001ef4e228ddbd7b1ea7bc02c1b688a5b6d2e64b3a268e4a88c9e14c4ab11b326e1aa9 WHIRLPOOL a9c500ac4db12903aaca2ce93a05563c4c5fdb1d7df70c8c284b07ca0f271859b5814b7161eeb2a95c2a6a35cfb85f2b0540d6ea53408f37b8171136b479cf1c
+MISC metadata.xml 253 SHA256 d82c33ef453113a5c1ebe250dcba373c22934a69b0a86c6ab15a5ca589c25b91 SHA512 54a9069aeb4165d2dff3d473c8001bc51613aac9dff3f7f5e9971a9891a737a31511ffa11cbd523febe581ac1d9de2bdf2f40410f0c4239138f2ccca3ef15555 WHIRLPOOL e5aee23acff864609953a1e4de768f0e4aef704b44c53c021f28573e1ca5c99f1a46d92935ecec2449f7b4419a36d8373127d0ecfa8d7bae72d835e1839eb3f8
diff --git a/dev-util/unifdef/metadata.xml b/dev-util/unifdef/metadata.xml
new file mode 100644
index 000000000000..56c124413057
--- /dev/null
+++ b/dev-util/unifdef/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="project">
+ <email>base-system@gentoo.org</email>
+ <name>Gentoo Base System</name>
+</maintainer>
+</pkgmetadata>
diff --git a/dev-util/unifdef/unifdef-2.10.ebuild b/dev-util/unifdef/unifdef-2.10.ebuild
new file mode 100644
index 000000000000..784d2244c3b1
--- /dev/null
+++ b/dev-util/unifdef/unifdef-2.10.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+inherit toolchain-funcs
+
+DESCRIPTION="remove #ifdef'ed lines from a file while otherwise leaving the file alone"
+HOMEPAGE="http://dotat.at/prog/unifdef/"
+SRC_URI="http://dotat.at/prog/unifdef/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 -sparc-fbsd -x86-fbsd ~amd64-linux ~x86-linux"
+
+DOCS=( README )
+
+src_prepare() {
+ sed -i '/^prefix/s:=.*:=/usr:' Makefile || die
+ tc-export CC
+}
diff --git a/dev-util/unifdef/unifdef-2.11.ebuild b/dev-util/unifdef/unifdef-2.11.ebuild
new file mode 100644
index 000000000000..f28f46c74f52
--- /dev/null
+++ b/dev-util/unifdef/unifdef-2.11.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit toolchain-funcs
+
+DESCRIPTION="remove #ifdef'ed lines from a file while otherwise leaving the file alone"
+HOMEPAGE="http://dotat.at/prog/unifdef/"
+SRC_URI="http://dotat.at/prog/unifdef/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 -sparc-fbsd -x86-fbsd ~amd64-linux ~x86-linux"
+
+DOCS=( README )
+
+src_prepare() {
+ sed -i "/^prefix/s:=.*:=${EPREFIX}/usr:" Makefile || die
+ tc-export CC
+}
diff --git a/dev-util/universalindentgui/Manifest b/dev-util/universalindentgui/Manifest
new file mode 100644
index 000000000000..c26008e9be71
--- /dev/null
+++ b/dev-util/universalindentgui/Manifest
@@ -0,0 +1,5 @@
+DIST universalindentgui-1.2.0.tar.gz 863793 SHA256 78a8d5538b951080c521118a0cefcae5bf1b32a3f0a022087087af3d70e98338 SHA512 73535e2a199f3b0396d2d33cdf6cdf051cc4f01da4907c03ba9fd9fa86033921ff7fc448078ca2d34ae88a421f6ac51ef4c0f98daaceff40d128f55d790e197e WHIRLPOOL b445a1259bb86dbfa282f1b89b60a964deda66eb921288c1298476a47018908a2f49344ced73de1563d3b5132b50df9485a778d8073e304d4f014952d23238b2
+EBUILD universalindentgui-1.2.0-r3.ebuild 3161 SHA256 318272f17b01c614887df5a433307b9c4592483e981d9e79bc6a1ce9a9ea60d2 SHA512 a2d8213c9de613d52f79f6daf1a63741aeb59d0cda7f754bfe9b22a33f3f662f09ceab1587bf7fdc29752ded18b34806691ca4e0828dc31fb7e87391f8ad11de WHIRLPOOL 133810adc6bdaf6d78ba77e0e2f062d4be0900fcd246f3c9dbadf7e25897dd3a21227ca03d9f614319eed0e1141736aff8635c685d9591881a0583f22d5cfe38
+MISC ChangeLog 2928 SHA256 1eece9634d5a642c6284d8e3ecf61d752872ea9e6400ec9cca9149af0056ab54 SHA512 e3ddb6ee5e8dc69eb6dcc4dd3ec61da1cca1c312f2a9a5796483f2d9c0e192d8bf211dfed76cc011ea07b28fdb9f35bcb675375bb06f3d482688fd4c9b5422de WHIRLPOOL 7448519eeb17f218f3ee5650a74e447f95770368a11940bb9f55c13e90723efa3b281e7df16f9d261c66ce49a52348bd548fe726dae9cc8cc1f697e513ff94a3
+MISC ChangeLog-2015 2820 SHA256 f26d1e5160295bedb1daf02afec7213a4e21ea2b4c6d43d68fe24c38a8a9635b SHA512 1826d6977ac5a9b3e4d4d9fc5246f32f32da23b91a1da771bbff2b9d2c21f40a655987f7d98e592dbfd2aadd6171e9b86bbc0ad0f4b24ef38bb10e4b72c8ae22 WHIRLPOOL 982a75a975f11de4755cf3539305d55328d00c3ad96fba552de810d8654eba75417ed432c776cd892ea7f0167a4ff84dba3707dc11556f886a2c7b6a6ee26928
+MISC metadata.xml 401 SHA256 22e0ea6a201ac80283544e634e3079719360d30cbfbc135722bfcb927b154ef8 SHA512 09e0150ef9584a46b67ba1be34cf76e6675ee4ddcaee6fdbca533ec89dfe2005c0ebe4df04e6b823f61bbacbcdc823d93c91a91958e73cda67aa10d78cb72235 WHIRLPOOL ba82e10371f511b6b013a533ed51228355c057533712b147aa2dcf9ce4031e5dfaf03f79ca0e02925f66277b72e089259f1cc9dca4e1fe253d71a9ea98aafda6
diff --git a/dev-util/universalindentgui/metadata.xml b/dev-util/universalindentgui/metadata.xml
new file mode 100644
index 000000000000..14edd78e4522
--- /dev/null
+++ b/dev-util/universalindentgui/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="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <use>
+ <flag name="html">Add support for HTML files</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">universalindent</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/universalindentgui/universalindentgui-1.2.0-r3.ebuild b/dev-util/universalindentgui/universalindentgui-1.2.0-r3.ebuild
new file mode 100644
index 000000000000..c069af0d8a75
--- /dev/null
+++ b/dev-util/universalindentgui/universalindentgui-1.2.0-r3.ebuild
@@ -0,0 +1,137 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+
+inherit eutils python-single-r1 qmake-utils
+
+DESCRIPTION="Cross platform GUI for several code formatters, beautifiers and indenters"
+HOMEPAGE="http://universalindent.sourceforge.net/"
+SRC_URI="mirror://sourceforge/universalindent/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug examples html perl php python ruby xml"
+
+DEPEND="dev-qt/qtcore:4
+ dev-qt/qtgui:4
+ dev-qt/qtscript:4
+ x11-libs/qscintilla[qt4(-)]
+"
+RDEPEND="${DEPEND}
+ dev-util/astyle
+ dev-util/bcpp
+ dev-util/indent
+ html? (
+ app-text/htmltidy
+ perl? ( dev-lang/perl )
+ )
+ perl? ( dev-perl/Perl-Tidy )
+ php? ( dev-php/PEAR-PHP_Beautifier )
+ python? ( ${PYTHON_DEPS} )
+ ruby? ( dev-lang/ruby )
+ xml? ( dev-util/xmlindent )
+"
+
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ default
+
+ # correct translation binaries
+ sed -e "s|lupdate-qt4|$(qt4_get_bindir)/lupdate|" \
+ -e "s|lrelease-qt4|$(qt4_get_bindir)/lrelease|" \
+ -i UniversalIndentGUI.pro || die "sed pro translation binary"
+
+ if use debug; then
+ sed -i -e 's:release,:debug,:g' UniversalIndentGUI.pro || die
+ fi
+
+ # patch .pro file according to our use flags
+ # basic support
+ UEXAMPLES="cpp sh"
+ local UINDENTERS="shellindent.awk"
+ local UIGUIFILES="shellindent gnuindent bcpp astyle"
+
+ if use html; then
+ UEXAMPLES="${UEXAMPLES} html"
+ UIGUIFILES="${UIGUIFILES} tidy"
+ if use perl; then
+ UINDENTERS="${UINDENTERS} hindent"
+ UIGUIFILES="${UIGUIFILES} hindent"
+ fi
+ fi
+
+ if use perl; then
+ UEXAMPLES="${UEXAMPLES} pl"
+ UIGUIFILES="${UIGUIFILES} perltidy"
+ fi
+
+ if use php; then
+ UEXAMPLES="${UEXAMPLES} php"
+ UINDENTERS="${UINDENTERS} phpStylist.php"
+ UIGUIFILES="${UIGUIFILES} php_Beautifier phpStylist"
+ fi
+
+ if use python; then
+ UEXAMPLES="${UEXAMPLES} py"
+ UINDENTERS="${UINDENTERS} pindent.py"
+ UIGUIFILES="${UIGUIFILES} pindent"
+ python_fix_shebang .
+ fi
+
+ if use ruby; then
+ UEXAMPLES="${UEXAMPLES} rb"
+ UINDENTERS="${UINDENTERS} rbeautify.rb ruby_formatter.rb"
+ UIGUIFILES="${UIGUIFILES} rbeautify rubyformatter"
+ fi
+
+ if use xml; then
+ UEXAMPLES="${UEXAMPLES} xml"
+ UIGUIFILES="${UIGUIFILES} xmlindent"
+ fi
+
+ local IFILES= I=
+ for I in ${UINDENTERS}; do
+ IFILES="${IFILES} indenters/${I}"
+ chmod +x indenters/${I} || die
+ done
+
+ for I in ${UIGUIFILES}; do
+ IFILES="${IFILES} indenters/uigui_${I}.ini"
+ done
+
+ # apply fixes in .pro file
+ sed -i -e "/^unix:indenters.files +=/d" UniversalIndentGUI.pro ||
+ die ".pro patching failed"
+ sed -i -e "s:indenters/uigui_\*\.ini:${IFILES}:" UniversalIndentGUI.pro ||
+ die ".pro patching failed"
+}
+
+src_configure() {
+ eqmake4 UniversalIndentGUI.pro
+}
+
+src_install() {
+ emake install INSTALL_ROOT="${D}"
+ dodoc CHANGELOG.txt readme.html
+
+ doman doc/${PN}.1.gz
+
+ if use examples; then
+ docinto examples
+ local I
+ for I in ${UEXAMPLES}; do
+ dodoc indenters/example.${I}
+ done
+ fi
+
+ newicon resources/universalIndentGUI_512x512.png ${PN}.png
+ make_desktop_entry ${PN} UniversalIndentGUI ${PN} "Qt;Development"
+}
diff --git a/dev-util/usb-robot/Manifest b/dev-util/usb-robot/Manifest
new file mode 100644
index 000000000000..cc2dbdaed5ac
--- /dev/null
+++ b/dev-util/usb-robot/Manifest
@@ -0,0 +1,5 @@
+DIST usb-robot-0.2.0.tar.gz 43682 SHA256 ee7d9c8cbbb22c8ac13387aec5ce88523b48264267dc9fae7f248884c7637eac SHA512 45d7332a10ba881ade03e1f927a6f36e13d31661ac85950c2f31534b313db4bb354e75404b98bdbe522ab22a08a18592a8ab3b4c73bd6cd902e97285b505e37b WHIRLPOOL aa1ea89ff3c8dc8f5938da74e384b6bdfab856b71cbf65415ba2ad9036b40220bee17d22ed8d0b1913cf0c39fe0e0e0f9e262de8526ba0de1ea155f057a4e36a
+EBUILD usb-robot-0.2.0.ebuild 565 SHA256 da89542f10c9927fc76a3f21e8b63bf465b9c41f0c4d85814843c4cc5e8b8623 SHA512 a630c903c673819198ed16d3e52d743159ac2ddaece12211611a334984655b3a8d0d7c2aafbe5646ab1c2223499e263fa56e70ca7694e8960c1189060f7cded0 WHIRLPOOL dfb8f0ee636dfa55d9aba38767b7970c9824bf201d0a2e831f8d21124d85856024b39a8041cec49d7ddcd6f666991d8b3f2a592eefe6a8924d5ea77e2d19137b
+MISC ChangeLog 2712 SHA256 6f45fe387b70fc8e62e33bbe3b79bcb3c3cae556f974642fd88e11604c5ea24b SHA512 16c3040698b59316c299830fde20d2f96bccdf4c276bac0e353bbd50341fd40069675ded0cb4065a40a45f3c94cb96fec46e939a3aecb823228e07f729f9eabb WHIRLPOOL a9aa1b75499a3602c5e47de2256bdca6f3d2714996b1c837e6db3741c07793f3816c8b77eafb954a0ce6923fdefd97533ec1721d57fb4122f21892481aa4a9a7
+MISC ChangeLog-2015 1331 SHA256 e4b119795c37f37d9e6018c7b04758d553907c26bab87898d9860441813c9307 SHA512 339b00a7548b2cd0278ca8a3119ceefd1251002964c124c414e3555bd4d29de8cd73b95e8892d560bff5b7cd9510d643019c5154474796f9be8d3e1b1c277aec WHIRLPOOL 1f364c5d8fc9329e7f4b8b8f34cb985bcf22124aa8c8c2369558ecba17baa0a61fdf7f9bd730c7d557d85a030f2b68cf1ce2bf6514c641500e887578bcb10ec9
+MISC metadata.xml 335 SHA256 dc4e24cdd4f37b69b3eaed21a4d70f2d20f796ac68c50a4801455a251fb851d5 SHA512 660c92df11d079a8eb300c181cf4ededd9a469e1e2c04c4ed900b04a86ad785e44ea207060d7aaeb286ff39b4b75f2828adeaec97ee8ad7dfd5b101ad72f214e WHIRLPOOL 98d1e41846ed844dd6faca8df043d0ea1c129338d39740e41648cefbef1c6c315772e5f44d9659d8793007c8cd2a92962d2388347068ab704cf9635df307d2ae
diff --git a/dev-util/usb-robot/metadata.xml b/dev-util/usb-robot/metadata.xml
new file mode 100644
index 000000000000..94119439ccc2
--- /dev/null
+++ b/dev-util/usb-robot/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>bircoph@gentoo.org</email>
+ <name>Andrew Savchenko</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">usb-robot</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/usb-robot/usb-robot-0.2.0.ebuild b/dev-util/usb-robot/usb-robot-0.2.0.ebuild
new file mode 100644
index 000000000000..81f343715d57
--- /dev/null
+++ b/dev-util/usb-robot/usb-robot-0.2.0.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="2"
+
+inherit toolchain-funcs
+
+DESCRIPTION="USB Reverse engineering tools"
+HOMEPAGE="http://usb-robot.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE=""
+
+DEPEND="virtual/libusb:0
+ sys-libs/readline"
+RDEPEND="${DEPEND}"
+
+src_compile() {
+ emake CC="$(tc-getCC)" || die "emake failed"
+}
+
+src_install () {
+ emake install DESTDIR="${D}" || die
+ dodoc AUTHORS NEWS README ChangeLog
+}
diff --git a/dev-util/valgrind/Manifest b/dev-util/valgrind/Manifest
new file mode 100644
index 000000000000..9a12ad6642a8
--- /dev/null
+++ b/dev-util/valgrind/Manifest
@@ -0,0 +1,10 @@
+AUX valgrind-3.7.0-fno-stack-protector.patch 554 SHA256 83ed90a0e8a8b06dca8aad4e7f1a12e3c84621d502427c0913b72740b310f479 SHA512 4f9573fd68a0e1e209518fb4100c27b697ccd28e7a39abaa921f1949cd87ffb79a6784d2d1f6e006d68a08c7217cee77cba378c18aab48b87a3824eedb53ed5e WHIRLPOOL 097a9658c0b83cec2b49fc0011bc63512d1a1b2e12048203ac963ad1fd526f932d8fee4052e6b8daacec3fa0bc9a0ea25e69f88bbb5df588e9b668252c0dc517
+AUX valgrind-3.7.0-respect-flags.patch 360 SHA256 6b1e5938ecafc29428a698296423c71924848b1e746d6ee8a0f1dd91141f1019 SHA512 efdb017283b6a5829d1a5acc31b42ddd177a3ab468eb062b8c4fd90b2dbd06679e8d8bc2d6f813e3001efdda831d4410cc8da3a3e42ee2e49efea0423e4b3ca3 WHIRLPOOL 5bff165cf8f6042905a4d682b0114ee41301de173d43412b16208a08a351fe8ca74a527e4d09f9649dca28cbb61dd8ea2392e10e2b8d7b8ea0e51318915f9565
+DIST valgrind-3.12.0.tar.bz2 12788556 SHA256 67ca4395b2527247780f36148b084f5743a68ab0c850cb43e4a5b4b012cf76a1 SHA512 2c083f7c2e74dc58600397726d9d3af7a2cea40fe3d8733149886d1d77867e6c09996e5be1c58dd932f3662acf7363e04eeadbc0f9c8f0dac089e605024229be WHIRLPOOL 136dd4f358bd18165a5801083cc73fc269a84bf491880af9842e789feea62181e16ca4c099db06fb4ffacf0cb0189b1b29d64790cc4202442f6f6b71ce4c6eea
+DIST valgrind-3.13.0.tar.bz2 14723076 SHA256 d76680ef03f00cd5e970bbdcd4e57fb1f6df7d2e2c071635ef2be74790190c3b SHA512 34e1013cd3815d30a459b86220e871bb0a6209cc9e87af968f347083693779f022e986f211bdf1a5184ad7370cde12ff2cfca8099967ff94732970bd04a97009 WHIRLPOOL 5ec5c371f8fb22813b895eaa3ee1dbb3c32bb998ad4b646d4b252a694d9b40a1543234cb7208445d8ca557e779ce30e9d0503a36bb9e4240a245c5d5d802c8a4
+EBUILD valgrind-3.12.0.ebuild 2854 SHA256 c17d95bcad897f39d8babda49f57d722b055e8c0e147599a36098294b82e51f5 SHA512 a65f3ccca3a33e2bbae7d2616b2fa13a6a3913e927f601f8ef52172981f72c03219ccad126a801719688cb6106dea18c56ac0e14de194e065bffa744151ab457 WHIRLPOOL f83bad7363f3d5aa898be4c67a061ac6ffd2fc339deb845f14d8fd1578449082dfe95c35eada5f1b9bfe6149ed0bc609948f23bc6a78a35d3176f3e3079264c5
+EBUILD valgrind-3.13.0.ebuild 2859 SHA256 61b972077fae385f286a62adbd71fd4edf6c9778549c64b64bdc407a802f534a SHA512 127cf5c6216e5de83041f80a141b33c963a11772f3965b23e2d7573c5d0d8f14474bbba59ac455cc265a36071ad74ea091f275b0901bcd08ff3d750bfd5c22b7 WHIRLPOOL 09bbaef4f4b087567d8611a520d3f187bbc0a0f02d0866f91c053f12a1c8e578d7781637b73f7b3ec51eeed4c61f56986f5ffc7bbab3e5db518c93973f0e9cc4
+EBUILD valgrind-9999.ebuild 3117 SHA256 1f5a7ed3874d2094f3c2547dc7791923b27b99f97cc6e22976a1c298b1e8add3 SHA512 8fcb9250a1a602463dfe112d0340bcc6a565beb33979172c2f2cbbdd499e744aa05b9a17c0164ea6f57e3720cc582b831a061e0a75984b0007b10f18dbdf873d WHIRLPOOL 03d5403ee5e23aceb342000fb7e48c5bb71c3d0614edc940f50a3731d3fc2b1872d1f5a9856a4c4212c705ffb9cd9ff8ff000b6b6d03ff57db5ba1fb41e8daaa
+MISC ChangeLog 4905 SHA256 6426fca52173c69a094830fafb3cc1ee4cf198d1cabebb50e02a42290d3dfab9 SHA512 4c6bdfadb501d88387fd4564f264cecb2ce6cc2cd61966e06e9d7f56d110639df6c4b5715cb3c2855351a6e522989b832dd9a28aa80f575e6da982fe434cbef8 WHIRLPOOL 338a907450140519669ff650ab9eea29b8e3bd94cc95515fddf68e981f4d507f6b056a30f587e7d672a81bf1b8f64a4c6d5f29387bfbcf4f0a30bb1701334aab
+MISC ChangeLog-2015 31180 SHA256 da9c64ccba59ab236081a2a3d00f790a3e29799219594aec17df572dd85c4277 SHA512 d9bd1206b5272037af312a6037771cdab9afb806836a669f2958f1924a9c844681e86925d28123f9174f02f2ac72b62b5c564108d6cc4c41f19c4277a7135bd3 WHIRLPOOL 2e2a8f121c363ca32dedcfb3a646494d3d9f974eaaaece550b01b50262981d9b1a8d09c69e2b02d3f7ee7a198079f42a65d3a47454903a59be951e7c85368522
+MISC metadata.xml 1139 SHA256 5d601e1ea0a4b8a1ba906b88621b2f814e26d24d21c994dee39cd47494402982 SHA512 f3ee37b8e5f408c01d5f6308644305fcb945df008e5f708dbde95f73a1e7988f53799e28bd72f75bd5e01765414a0e11b8045f671e723beb46d90a50f5dd1846 WHIRLPOOL fc7cf7dd758d8f9baf538fce53a95019225af8a6b0049662b174ef67d287a92396ddafdd37b33ec7f72b94a4f093bf4afac8b47f8d9f75529e15b3ece1957414
diff --git a/dev-util/valgrind/files/valgrind-3.7.0-fno-stack-protector.patch b/dev-util/valgrind/files/valgrind-3.7.0-fno-stack-protector.patch
new file mode 100644
index 000000000000..6af455319567
--- /dev/null
+++ b/dev-util/valgrind/files/valgrind-3.7.0-fno-stack-protector.patch
@@ -0,0 +1,12 @@
+diff -Naur valgrind-3.7.0.orig//Makefile.all.am valgrind-3.7.0/Makefile.all.am
+--- valgrind-3.7.0.orig//Makefile.all.am 2011-10-26 17:24:45.000000000 -0400
++++ valgrind-3.7.0/Makefile.all.am 2011-11-10 16:18:18.000000000 -0500
+@@ -82,7 +82,7 @@
+ # performance and get whatever useful warnings we can out of gcc.
+ # -fno-builtin is important for defeating LLVM's idiom recognition
+ # that somehow causes VG_(memset) to get into infinite recursion.
+-AM_CFLAGS_BASE = \
++AM_CFLAGS_BASE = -fno-stack-protector \
+ -O2 -g \
+ -Wall \
+ -Wmissing-prototypes \
diff --git a/dev-util/valgrind/files/valgrind-3.7.0-respect-flags.patch b/dev-util/valgrind/files/valgrind-3.7.0-respect-flags.patch
new file mode 100644
index 000000000000..860e09c86ed3
--- /dev/null
+++ b/dev-util/valgrind/files/valgrind-3.7.0-respect-flags.patch
@@ -0,0 +1,13 @@
+diff -Naur valgrind-3.7.0.orig//mpi/Makefile.am valgrind-3.7.0/mpi/Makefile.am
+--- valgrind-3.7.0.orig//mpi/Makefile.am 2011-10-26 17:24:23.000000000 -0400
++++ valgrind-3.7.0/mpi/Makefile.am 2011-11-10 16:03:14.000000000 -0500
+@@ -7,9 +7,6 @@
+ CC = $(MPI_CC)
+ DEFS =
+ DEFAULT_INCLUDES =
+-CPPFLAGS =
+-CFLAGS =
+-LDFLAGS =
+
+ EXTRA_DIST = \
+ mpiwrap_type_test.c
diff --git a/dev-util/valgrind/metadata.xml b/dev-util/valgrind/metadata.xml
new file mode 100644
index 000000000000..31d1b4f644dd
--- /dev/null
+++ b/dev-util/valgrind/metadata.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>blueness@gentoo.org</email>
+ <name>Anthony G. Basile</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>wizardedit@gentoo.org</email>
+ <name>Austin English</name>
+ </maintainer>
+ <longdescription>
+ Valgrind is a GPL'd tool to help you find memory-management problems
+ in your programs. When a program is run under Valgrind's supervision,
+ all reads and writes of memory are checked, and calls to
+ malloc/new/free/delete are intercepted. As a result, Valgrind can
+ detect problems such as
+
+ - Use of uninitialised memory
+ - Reading/writing memory after it has been free'd
+ - Reading/writing off the end of malloc'd blocks
+ - Reading/writing inappropriate areas on the stack
+ - Memory leaks -- where pointers to malloc'd blocks are lost forever
+ - Passing of uninitialised and/or unaddressible memory to system calls
+ - Mismatched use of malloc/new/new [] vs free/delete/delete []
+ - Some abuses of the POSIX Pthreads API
+ </longdescription>
+</pkgmetadata>
diff --git a/dev-util/valgrind/valgrind-3.12.0.ebuild b/dev-util/valgrind/valgrind-3.12.0.ebuild
new file mode 100644
index 000000000000..a759d9c53e77
--- /dev/null
+++ b/dev-util/valgrind/valgrind-3.12.0.ebuild
@@ -0,0 +1,95 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+inherit autotools eutils flag-o-matic toolchain-funcs multilib pax-utils
+
+DESCRIPTION="An open-source memory debugger for GNU/Linux"
+HOMEPAGE="http://www.valgrind.org"
+SRC_URI="http://www.valgrind.org/downloads/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="-* amd64 arm ppc ppc64 x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos"
+IUSE="mpi"
+
+DEPEND="mpi? ( virtual/mpi )"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ # Correct hard coded doc location
+ sed -i -e "s:doc/valgrind:doc/${PF}:" docs/Makefile.am || die
+
+ # Don't force multiarch stuff on OSX, bug #306467
+ sed -i -e 's:-arch \(i386\|x86_64\)::g' Makefile.all.am || die
+
+ # Respect CFLAGS, LDFLAGS
+ epatch "${FILESDIR}"/${PN}-3.7.0-respect-flags.patch
+
+ # Changing Makefile.all.am to disable SSP
+ epatch "${FILESDIR}"/${PN}-3.7.0-fno-stack-protector.patch
+
+ # Allow users to test their own patches
+ epatch_user
+
+ # Regenerate autotools files
+ eautoreconf
+}
+
+src_configure() {
+ local myconf
+
+ # Respect ar, bug #468114
+ tc-export AR
+
+ # -fomit-frame-pointer "Assembler messages: Error: junk `8' after expression"
+ # while compiling insn_sse.c in none/tests/x86
+ # -fstack-protector more undefined references to __guard and __stack_smash_handler
+ # because valgrind doesn't link to glibc (bug #114347)
+ # -m64 -mx32 for multilib-portage, bug #398825
+ # -ggdb3 segmentation fault on startup
+ filter-flags -fomit-frame-pointer
+ filter-flags -fstack-protector
+ filter-flags -m64 -mx32
+ replace-flags -ggdb3 -ggdb2
+
+ if use amd64 || use ppc64; then
+ ! has_multilib_profile && myconf="${myconf} --enable-only64bit"
+ fi
+
+ # Force bitness on darwin, bug #306467
+ use x86-macos && myconf="${myconf} --enable-only32bit"
+ use x64-macos && myconf="${myconf} --enable-only64bit"
+
+ # Don't use mpicc unless the user asked for it (bug #258832)
+ if ! use mpi; then
+ myconf="${myconf} --without-mpicc"
+ fi
+
+ econf ${myconf}
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ dodoc AUTHORS FAQ.txt NEWS README*
+
+ pax-mark m "${ED}"/usr/$(get_libdir)/valgrind/*-*-linux
+
+ if [[ ${CHOST} == *-darwin* ]] ; then
+ # fix install_names on shared libraries, can't turn them into bundles,
+ # as dyld won't load them any more then, bug #306467
+ local l
+ for l in "${ED}"/usr/lib/valgrind/*.so ; do
+ install_name_tool -id "${EPREFIX}"/usr/lib/valgrind/${l##*/} "${l}"
+ done
+ fi
+}
+
+pkg_postinst() {
+ elog "Valgrind will not work if glibc does not have debug symbols."
+ elog "To fix this you can add splitdebug to FEATURES in make.conf"
+ elog "and remerge glibc. See:"
+ elog "https://bugs.gentoo.org/show_bug.cgi?id=214065"
+ elog "https://bugs.gentoo.org/show_bug.cgi?id=274771"
+ elog "https://bugs.gentoo.org/show_bug.cgi?id=388703"
+}
diff --git a/dev-util/valgrind/valgrind-3.13.0.ebuild b/dev-util/valgrind/valgrind-3.13.0.ebuild
new file mode 100644
index 000000000000..5f802dc656d8
--- /dev/null
+++ b/dev-util/valgrind/valgrind-3.13.0.ebuild
@@ -0,0 +1,95 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+inherit autotools flag-o-matic toolchain-funcs multilib pax-utils
+
+DESCRIPTION="An open-source memory debugger for GNU/Linux"
+HOMEPAGE="http://www.valgrind.org"
+SRC_URI="ftp://sourceware.org/pub/valgrind/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos"
+IUSE="mpi"
+
+DEPEND="mpi? ( virtual/mpi )"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ # Correct hard coded doc location
+ sed -i -e "s:doc/valgrind:doc/${PF}:" docs/Makefile.am || die
+
+ # Don't force multiarch stuff on OSX, bug #306467
+ sed -i -e 's:-arch \(i386\|x86_64\)::g' Makefile.all.am || die
+
+ # Respect CFLAGS, LDFLAGS
+ eapply "${FILESDIR}"/${PN}-3.7.0-respect-flags.patch
+
+ # Changing Makefile.all.am to disable SSP
+ eapply "${FILESDIR}"/${PN}-3.7.0-fno-stack-protector.patch
+
+ # Allow users to test their own patches
+ eapply_user
+
+ # Regenerate autotools files
+ eautoreconf
+}
+
+src_configure() {
+ local myconf
+
+ # Respect ar, bug #468114
+ tc-export AR
+
+ # -fomit-frame-pointer "Assembler messages: Error: junk `8' after expression"
+ # while compiling insn_sse.c in none/tests/x86
+ # -fstack-protector more undefined references to __guard and __stack_smash_handler
+ # because valgrind doesn't link to glibc (bug #114347)
+ # -m64 -mx32 for multilib-portage, bug #398825
+ # -ggdb3 segmentation fault on startup
+ filter-flags -fomit-frame-pointer
+ filter-flags -fstack-protector
+ filter-flags -m64 -mx32
+ replace-flags -ggdb3 -ggdb2
+
+ if use amd64 || use ppc64; then
+ ! has_multilib_profile && myconf="${myconf} --enable-only64bit"
+ fi
+
+ # Force bitness on darwin, bug #306467
+ use x86-macos && myconf="${myconf} --enable-only32bit"
+ use x64-macos && myconf="${myconf} --enable-only64bit"
+
+ # Don't use mpicc unless the user asked for it (bug #258832)
+ if ! use mpi; then
+ myconf="${myconf} --without-mpicc"
+ fi
+
+ econf ${myconf}
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ dodoc AUTHORS FAQ.txt NEWS README*
+
+ pax-mark m "${ED}"/usr/$(get_libdir)/valgrind/*-*-linux
+
+ if [[ ${CHOST} == *-darwin* ]] ; then
+ # fix install_names on shared libraries, can't turn them into bundles,
+ # as dyld won't load them any more then, bug #306467
+ local l
+ for l in "${ED}"/usr/lib/valgrind/*.so ; do
+ install_name_tool -id "${EPREFIX}"/usr/lib/valgrind/${l##*/} "${l}"
+ done
+ fi
+}
+
+pkg_postinst() {
+ elog "Valgrind will not work if glibc does not have debug symbols."
+ elog "To fix this you can add splitdebug to FEATURES in make.conf"
+ elog "and remerge glibc. See:"
+ elog "https://bugs.gentoo.org/show_bug.cgi?id=214065"
+ elog "https://bugs.gentoo.org/show_bug.cgi?id=274771"
+ elog "https://bugs.gentoo.org/show_bug.cgi?id=388703"
+}
diff --git a/dev-util/valgrind/valgrind-9999.ebuild b/dev-util/valgrind/valgrind-9999.ebuild
new file mode 100644
index 000000000000..6414792ca62c
--- /dev/null
+++ b/dev-util/valgrind/valgrind-9999.ebuild
@@ -0,0 +1,107 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+inherit autotools flag-o-matic toolchain-funcs multilib pax-utils
+
+DESCRIPTION="An open-source memory debugger for GNU/Linux"
+HOMEPAGE="http://www.valgrind.org"
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="mpi"
+
+if [[ ${PV} == "9999" ]]; then
+ EGIT_REPO_URI="git://sourceware.org/git/${PN}.git/"
+ inherit git-r3
+else
+ SRC_URI="ftp://sourceware.org/pub/valgrind/${P}.tar.bz2"
+ KEYWORDS="-* ~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos"
+fi
+
+DEPEND="mpi? ( virtual/mpi )"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ # Correct hard coded doc location
+ sed -i -e "s:doc/valgrind:doc/${PF}:" docs/Makefile.am || die
+
+ # Don't force multiarch stuff on OSX, bug #306467
+ sed -i -e 's:-arch \(i386\|x86_64\)::g' Makefile.all.am || die
+
+ # Respect CFLAGS, LDFLAGS
+ eapply "${FILESDIR}"/${PN}-3.7.0-respect-flags.patch
+
+ # Changing Makefile.all.am to disable SSP
+ eapply "${FILESDIR}"/${PN}-3.7.0-fno-stack-protector.patch
+
+ # Allow users to test their own patches
+ eapply_user
+
+ # Regenerate autotools files
+ eautoreconf
+}
+
+src_configure() {
+ local myconf
+
+ # Respect ar, bug #468114
+ tc-export AR
+
+ # -fomit-frame-pointer "Assembler messages: Error: junk `8' after expression"
+ # while compiling insn_sse.c in none/tests/x86
+ # -fstack-protector more undefined references to __guard and __stack_smash_handler
+ # because valgrind doesn't link to glibc (bug #114347)
+ # -m64 -mx32 for multilib-portage, bug #398825
+ # -ggdb3 segmentation fault on startup
+ filter-flags -fomit-frame-pointer
+ filter-flags -fstack-protector
+ filter-flags -m64 -mx32
+ replace-flags -ggdb3 -ggdb2
+
+ if use amd64 || use ppc64; then
+ ! has_multilib_profile && myconf="${myconf} --enable-only64bit"
+ fi
+
+ # Force bitness on darwin, bug #306467
+ use x86-macos && myconf="${myconf} --enable-only32bit"
+ use x64-macos && myconf="${myconf} --enable-only64bit"
+
+ # Don't use mpicc unless the user asked for it (bug #258832)
+ if ! use mpi; then
+ myconf="${myconf} --without-mpicc"
+ fi
+
+ econf ${myconf}
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+
+ if [[ ${PV} == "9999" ]]; then
+ # Otherwise FAQ.txt won't exist:
+ emake -C docs FAQ.txt
+ mv docs/FAQ.txt . || die "Couldn't move FAQ.txt"
+ fi
+
+ dodoc AUTHORS FAQ.txt NEWS README*
+
+ pax-mark m "${ED}"/usr/$(get_libdir)/valgrind/*-*-linux
+
+ if [[ ${CHOST} == *-darwin* ]] ; then
+ # fix install_names on shared libraries, can't turn them into bundles,
+ # as dyld won't load them any more then, bug #306467
+ local l
+ for l in "${ED}"/usr/lib/valgrind/*.so ; do
+ install_name_tool -id "${EPREFIX}"/usr/lib/valgrind/${l##*/} "${l}"
+ done
+ fi
+}
+
+pkg_postinst() {
+ elog "Valgrind will not work if glibc does not have debug symbols."
+ elog "To fix this you can add splitdebug to FEATURES in make.conf"
+ elog "and remerge glibc. See:"
+ elog "https://bugs.gentoo.org/show_bug.cgi?id=214065"
+ elog "https://bugs.gentoo.org/show_bug.cgi?id=274771"
+ elog "https://bugs.gentoo.org/show_bug.cgi?id=388703"
+}
diff --git a/dev-util/valkyrie/Manifest b/dev-util/valkyrie/Manifest
new file mode 100644
index 000000000000..cc4fbe40ff94
--- /dev/null
+++ b/dev-util/valkyrie/Manifest
@@ -0,0 +1,7 @@
+AUX valkyrie-2.0.0-gcc47.patch 963 SHA256 06772d6369a0d7cbecc7b14e7e3283dd3424580a97712f4417f47ea353ffd3cc SHA512 fac2ad08f7726ce448568e6d6f705e85140d2e4846ff150e7b7a3b2a64bc328fd885e17d62c2a5fac70049bb946e3013471bde35cf2e76b0a55155fc50cf5362 WHIRLPOOL d252fb68a650e211619772baed47f940d1586388750054424d543c747bdd4d32f395913d81f7460367cf275473a35793d0fc3db55b02a8a7161d6aa3ba9af1bc
+AUX valkyrie-2.0.0-prefix.patch 329 SHA256 851aa36a68f79fa3537f57b5440a0a1fc6fdab88c1e36ead128067b639e011a9 SHA512 67e98f5251d5d4d7831fca702eef4e639e4909af790387d018af2511e9151d4be0e827035d3f1ac6eb61b1115216943a811b32ada3cb5b45573ae089d5571ca6 WHIRLPOOL c539ab2419fdc565ced183f853110bc79ce243ae26e67da54ba9cfdb52bd820806245b0e77d46e07569c3fca1b3cb3c570e08b608adcb34bfd7d801bb680bfc0
+DIST valkyrie-2.0.0.tar.bz2 260690 SHA256 a70b9ffb2409c96c263823212b4be6819154eb858825c9a19aad0ae398d59b43 SHA512 435abb17ecad114c3e492fa193e508bad7ca61884bd09bf1bf0b8398c63151d33e571fea927b84f05bc2b647183af441da1550161a6f766db9e9a15d00cfc888 WHIRLPOOL a7b394976012df7a28b02ba63c092354daff2a55912b6ccc88914aac5811b09064227a08e0fdbd23dc41bcd453dc3fe9846c2517c83d8eed1d4131dbbafdac4a
+EBUILD valkyrie-2.0.0.ebuild 528 SHA256 965efc71be6cd6088bb82814b8e5db4e47d2beca15f3a39c62ca9492c6d19d20 SHA512 f799284de3948fcd06736cf0cbc66d17d8923901ab49239d06317446ecb07fd9fadb225184dcb90b6647dc666f9ec44040e0c5a8d9b9341dcd38b13e15597ce3 WHIRLPOOL c92912409ffe99ff388b8f181dda2f68eabf21b16b5213c47f71762fe10071aba95f524042add3e460083b8cbf36c5817bc4691c20dba61871cf80c7ced7588e
+MISC ChangeLog 2645 SHA256 40e9db24d456b2debc10bb923cc09ec74ceaaf56f45ea411a7b4dba724eff38f SHA512 ae946822f03d0207864acc96516e9e8fe7aacb596320a196c95384bf3d8853e3ea9de3ea71c585fde22ef841a1a6d17771772a9bc32fd80627885ff9d105d862 WHIRLPOOL e37ce431fcbfd992f398179db5279e416b3dd0e7867d4e519ea706027a7ceb2e428ba85f80db08ec8194bc8ca8d2f7e6206c3287ae1d34720d5830b574e9a9dc
+MISC ChangeLog-2015 978 SHA256 3a64fc4d5fbcd0675e2360e46f5679a211885e70d7126a467c56d5d3e925a0e0 SHA512 82ed6a902003e2953201bf9adfe8af83f6fb45e2406b1cbb7b51b556514f9dfea1a8cea18a4247b0113dd1b407f1763f8538b9d78934483afbd848ed4db201fc WHIRLPOOL b39c90303d9f290141a27005d0edd46bb68430bbfa066c757f2305ef144349900dd9400d7672df73aba1b677f47e08b45b03e63553153c69ccc279754e96f50b
+MISC metadata.xml 237 SHA256 ffb571839c57797d282263369646d2bba2662601a45f7bb3251bb97f716554a6 SHA512 ae2360aa6b1b00c67e0acea4935c02b64585b9a15e126fec9d5d99637021c542c0a495e5116205f3da287def46fa5b19cb1a7f3042c12c5f7a78d66d92fcb03f WHIRLPOOL 60d6da846c983457e038ea5ba3c0bf48f939c9586610985a14cac9772fd1d45d781a643abc16482f232f3028e44fe99fe1a382deaebf6589602fc244a4460e3f
diff --git a/dev-util/valkyrie/files/valkyrie-2.0.0-gcc47.patch b/dev-util/valkyrie/files/valkyrie-2.0.0-gcc47.patch
new file mode 100644
index 000000000000..d2d33166a85c
--- /dev/null
+++ b/dev-util/valkyrie/files/valkyrie-2.0.0-gcc47.patch
@@ -0,0 +1,37 @@
+Fix building with gcc-4.7
+
+https://bugs.gentoo.org/show_bug.cgi?id=421867
+
+Patch written by LE GARREC Vincent <legarrec.vincent@gmail.com>
+--- a/src/objects/tool_object.cpp
++++ b/src/objects/tool_object.cpp
+@@ -50,6 +50,7 @@ stopProcess()
+ #include <QKeySequence>
+ #include <QString>
+ #include <QStringList>
++#include <unistd.h> // usleep
+
+
+ #if 1
+--- a/src/utils/vk_config.cpp
++++ b/src/utils/vk_config.cpp
+@@ -25,6 +25,8 @@
+ #include "utils/vk_utils.h"
+
+ #include <pwd.h> // getpwuid
++#include <sys/types.h> // getuid
++#include <unistd.h> // getuid
+
+ #include <QColor>
+ #include <QDir>
+--- a/src/utils/vk_utils.cpp
++++ b/src/utils/vk_utils.cpp
+@@ -22,6 +22,8 @@
+ #include "utils/vk_config.h" // vkname()
+
+ #include <cstdlib> // exit, mkstemp, free/malloc, etc
++#include <sys/types.h> // getpid
++#include <unistd.h> // getpid
+
+ #include <QDateTime>
+ #include <QFile>
diff --git a/dev-util/valkyrie/files/valkyrie-2.0.0-prefix.patch b/dev-util/valkyrie/files/valkyrie-2.0.0-prefix.patch
new file mode 100644
index 000000000000..2f18491e8f81
--- /dev/null
+++ b/dev-util/valkyrie/files/valkyrie-2.0.0-prefix.patch
@@ -0,0 +1,11 @@
+--- valkyrie-2.0.0/vk_config.pri
++++ valkyrie-2.0.0/vk_config.pri
+@@ -14,7 +14,7 @@
+ # Set a default value for PREFIX (etc) in the generated makefiles
+ # Note: ignore INSTALL_ROOT: it's a qt special, can't be set from here
+ isEmpty(PREFIX) {
+- PREFIX = /usr/local
++ PREFIX = /usr
+ }
+ isEmpty(BINDIR) {
+ BINDIR = $$PREFIX/bin
diff --git a/dev-util/valkyrie/metadata.xml b/dev-util/valkyrie/metadata.xml
new file mode 100644
index 000000000000..a535b8852829
--- /dev/null
+++ b/dev-util/valkyrie/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>xmw@gentoo.org</email>
+<name>Michael Weber</name>
+</maintainer>
+</pkgmetadata>
diff --git a/dev-util/valkyrie/valkyrie-2.0.0.ebuild b/dev-util/valkyrie/valkyrie-2.0.0.ebuild
new file mode 100644
index 000000000000..23baa9225410
--- /dev/null
+++ b/dev-util/valkyrie/valkyrie-2.0.0.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=3
+
+inherit qt4-r2
+
+DESCRIPTION="Graphical front-end to the Valgrind suite of tools"
+HOMEPAGE="http://www.valgrind.org/"
+SRC_URI="http://www.valgrind.org/downloads/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND=">=dev-util/valgrind-3.6.0
+ dev-qt/qtgui:4
+ dev-qt/qtcore:4"
+RDEPEND="${DEPEND}"
+
+DOCS=( README )
+PATCHES=(
+ "${FILESDIR}"/${P}-prefix.patch
+ "${FILESDIR}"/${P}-gcc47.patch
+)
diff --git a/dev-util/vbindiff/Manifest b/dev-util/vbindiff/Manifest
new file mode 100644
index 000000000000..d848153819ea
--- /dev/null
+++ b/dev-util/vbindiff/Manifest
@@ -0,0 +1,7 @@
+DIST vbindiff-3.0_beta4.tar.gz 121538 SHA256 7d5d5a87fde953dc2089746f6f6ab811d60e127b01074c97611898fb1ef1983d SHA512 6437f107fe58e8343ccd8cb65b3c562d5cb25445fcce284c7ce73fe4a2ed7191100595b9cd0c88d5a630a176f4c4bd374625c97c109a6ee14f1f56ca136d23da WHIRLPOOL 49c9cb66846c3fe48fdfde5febf25435fd23db066d6556479a656eeca913415c116f1a5ab43e2986c24839906103f9647a4aa322a7cf5122012ee5e0436732fa
+DIST vbindiff-3.0_beta5.tar.gz 134192 SHA256 7a242d1349f4d23f3cf53464761de04dba49d8d7ae8545338ce888e4dd405a84 SHA512 e6abd5cb93beffa3bc55455dbfbc98f0effc2a6667c8b9c721792c4a274dfe6f35ef121d27506fc9c951a1decb0e69886775fcf092a5f47fda82ed75ef760a74 WHIRLPOOL f597555b2d28134847cea5d4ad1c90900159bca730643c2955bc46d5f1a3e0553011721bc82d7f03e61bbf6dec8de34ebffad40a0e1df1fd8cfd9f1eb505c4e7
+EBUILD vbindiff-3.0_beta4-r1.ebuild 512 SHA256 508a54261d9eaa203ccff1a2cad342402e594fd976f9edbbf9d26d6d13e65923 SHA512 cccc8ba05665680717ee48ff6f38eeaa12ac8e7eaab1c88f969b0667a027aa10f5c55fa37cd8cf2a0dfe3e8fb6b0e4c300ee022e1ea5d322239d31988ee385db WHIRLPOOL ae7902a1f29541025b39e3f014807e57c4cd4b3f71279d7093a3e0663b91c270e8e291ee2a15e2a448d2370e4a52cd706bd3733231c57cb9beb9ae77ead5f5d0
+EBUILD vbindiff-3.0_beta5.ebuild 402 SHA256 14c898b78640df1d1080ad82348ba4aa1fa65fbb000411b8a73d9f457372ece8 SHA512 d5c6561c5786ef27cab15bafd15e3723bfc7a72e04414737427c61ecef437be001e8742cef07e52cc065ca4f8bc6ad11fc30aa66e4250984da87a7d56549f207 WHIRLPOOL fb00757ce7d3d56f70d508f99221faf03cb0353ced2e581178f07c699ecd450b111ed8743013cec0c985917bed1ed179f9aefb22df09c189f254bbb64676a652
+MISC ChangeLog 3155 SHA256 416b18feef056d25a97c3772f10bf2f629f24b35e3133e69a201c8764f647def SHA512 0f836aa3d6e7459c8abfe730e77d967fe21503ebdc809a378cdbc16981562f458c40c7e6aa91d9b70e2b50ef8b4566e5ac72644fac8f27cfd84eea9091afaeb5 WHIRLPOOL 7550c8f823a5b2b5bf78d88ef086718215581fbe573b465f7f44d338de825385d94d4f4ea28493cd8e0164df708a2618068487a3bf6766da26716f76c9326d31
+MISC ChangeLog-2015 1592 SHA256 fce3fbc626829bc3f395bc7abdd30945511cc406b67ed5e59b726dab46ce3b6b SHA512 0cf55771ccaadd2a756030e8cc6b22b7161250c805daea1461e1d8fffa86005258a26ef80951e3c08c76ff65db36591387c2c91a99374038ff67bc5d4f036749 WHIRLPOOL 5103d505367fbf98c410e75c0184021079c729e64a5e67bad1ecd1ebff57986c2c2085312ce44430e674fb6f7d7b1768791ee2c9c892c8b58e0b84a6a0048128
+MISC metadata.xml 331 SHA256 e609b845f80bff2e1b6f82f18bbc474211deaf6c6c6259f6fb5aba8e09107c54 SHA512 32b9763a0137fc5fb36751a38c9476a6f813ff118f4cc0a491dcae75439fb7ce40f934d6d0cffb0397ad11b85373859791622884c194ddddd3bd5bb03427001f WHIRLPOOL 818015dce2e996e857feb6f901befea1ea6440fb269faacc38259931bbd99fd4b37d8ce64de3f377ec524cfca5c2561f3fd717478b62a4aaaaea6e302dd30271
diff --git a/dev-util/vbindiff/metadata.xml b/dev-util/vbindiff/metadata.xml
new file mode 100644
index 000000000000..f842cb0feb5f
--- /dev/null
+++ b/dev-util/vbindiff/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>slyfox@gentoo.org</email>
+ <name>Sergei Trofimovich</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">mrdudz/vbindiff</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/vbindiff/vbindiff-3.0_beta4-r1.ebuild b/dev-util/vbindiff/vbindiff-3.0_beta4-r1.ebuild
new file mode 100644
index 000000000000..a27438a4c301
--- /dev/null
+++ b/dev-util/vbindiff/vbindiff-3.0_beta4-r1.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Visual binary diff utility"
+HOMEPAGE="https://www.cjmweb.net/vbindiff/"
+SRC_URI="https://www.cjmweb.net/vbindiff/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~arm x86 ~x86-fbsd"
+IUSE="debug"
+
+RDEPEND="sys-libs/ncurses:0="
+DEPEND="${RDEPEND}"
+
+src_configure() {
+ has_version 'sys-libs/ncurses:0[tinfo(-)]' && \
+ local -x LIBS="${LIBS} -ltinfo"
+ econf $(use_enable debug)
+}
diff --git a/dev-util/vbindiff/vbindiff-3.0_beta5.ebuild b/dev-util/vbindiff/vbindiff-3.0_beta5.ebuild
new file mode 100644
index 000000000000..979dcdcbcfe8
--- /dev/null
+++ b/dev-util/vbindiff/vbindiff-3.0_beta5.ebuild
@@ -0,0 +1,16 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Visual binary diff utility"
+HOMEPAGE="https://www.cjmweb.net/vbindiff/"
+SRC_URI="https://github.com/mrdudz/${PN}/releases/download/${PV}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86 ~x86-fbsd"
+IUSE=""
+
+RDEPEND="sys-libs/ncurses:0="
+DEPEND="${RDEPEND}"
diff --git a/dev-util/vint/Manifest b/dev-util/vint/Manifest
new file mode 100644
index 000000000000..e2534c4cf242
--- /dev/null
+++ b/dev-util/vint/Manifest
@@ -0,0 +1,5 @@
+DIST vint-0.3.13.tar.gz 91599 SHA256 7cb00bf3d83a093857db9a9bcc7d316a9fa52704cbeff991130eb34ed2d27df5 SHA512 ef0b811df0250899e23e30ee4b240cf8b54e510231353ca86202661fd5f0826b9faeacc9268849e51bd6a1c71c1514498dec04a7a4ed79f00a5098811525e3d4 WHIRLPOOL 0c0a12c8a17ac2a4ab664b8aee03597a5e77b8a6b03458d4767c841d3adc03955bcbb0f876de09b2c4e194a94c9ab1d162a1902b6e49b146c4d8493ffe750e2d
+DIST vint-0.3.14.tar.gz 92565 SHA256 4e0792cf83ef65ca83e09d6b3fe715cd397d635bc8380eb42302fb05d542014e SHA512 61509320e11d410cad56368fcc92d7596bd3e090dfb3950ba01886c37c3b83af69c168a71aeeb0e3221a9802a8e878a4b04a5aa6069189c5027ec1ad7070799b WHIRLPOOL 98bbf8ad3b1572a25fc6c22fad9a1b16bdfae6bfe915a30fb0f765f8a8dca2c854660a779bedf137cdd641d919cff910f38a9ccaa0879863507b5e2796601b8e
+EBUILD vint-0.3.13-r1.ebuild 1282 SHA256 5ff133261badd98b850128c443753e2610010ec81845738cd08514d70744dbb4 SHA512 1cbf63bf0a347168501ec98a386a0d2b91eb4615074f6b8b14027b88f132410b683af3b3ca513c0a4970f7f67856c07ef6e4f2ee9cf14d4d94800f00cbfdc2a7 WHIRLPOOL 61fcff7e39a72b73c79493a899bb009aa18c5435d32ab1ee3408d432570d559de194acf514244bb2e26b744309b9fc540bc4fa6dd674c2289e3bfd7986fe3003
+EBUILD vint-0.3.14.ebuild 1493 SHA256 f4914b06910a629a2787c4c45cb825e8411665592b8b3ee3de05bdc142d00f0e SHA512 9e5de8e9c79b569344db07fbe96c21e36706d1dfb471dc24725d9bf85180927f75d44f96655bfd0dd5ca85fec032f45ab13210f3be2548d797b8d612b16daa3e WHIRLPOOL 1d04d03fc4bbac5287e8393d47b8f3ae98fee69482e00cc404cf117afbda42ff124d5ff58ef7bd3dd692c9161a7de5881c671c1a1963aeba53ae082c57bc7db0
+MISC metadata.xml 555 SHA256 ae87adaae56dfce0801002076b4344b642423a42a938cfd304df446be0bf237d SHA512 ed3b8b8054f549adb826668dc08d364b02e86e0ec83d5455c8a9adc21702a143b488d028a8d12135a28f66bb673c3281d0f79fe20773ec1f78b632a86c859129 WHIRLPOOL 87f3232d42b024b979cffc9e35338341ac6f6e4b306ddd6a191cf5a36072d25b91f35bb1f0fc4d1feffbe8387922ae6ece34c6f398f8c7787d1acbd0e0c2ea26
diff --git a/dev-util/vint/metadata.xml b/dev-util/vint/metadata.xml
new file mode 100644
index 000000000000..b2d24cbd66c5
--- /dev/null
+++ b/dev-util/vint/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>itumaykin+gentoo@gmail.com</email>
+ <name>Coacher</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <upstream>
+ <changelog>https://github.com/Kuniwak/vint/releases</changelog>
+ <remote-id type="github">Kuniwak/vint</remote-id>
+ <remote-id type="pypi">vim-vint</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/vint/vint-0.3.13-r1.ebuild b/dev-util/vint/vint-0.3.13-r1.ebuild
new file mode 100644
index 000000000000..36f8aa8e66b2
--- /dev/null
+++ b/dev-util/vint/vint-0.3.13-r1.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5} )
+
+inherit distutils-r1
+
+DESCRIPTION="Lint tool for Vim script language"
+HOMEPAGE="https://github.com/Kuniwak/vint https://pypi.python.org/pypi/vim-vint/"
+SRC_URI="https://github.com/Kuniwak/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="amd64"
+IUSE="test"
+
+RDEPEND="
+ >=dev-python/ansicolor-0.2.4[${PYTHON_USEDEP}]
+ >=dev-python/chardet-2.3.0[${PYTHON_USEDEP}]
+ >=dev-python/pyyaml-3.11[${PYTHON_USEDEP}]
+ virtual/python-enum34[${PYTHON_USEDEP}]
+ virtual/python-pathlib[${PYTHON_USEDEP}]
+ dev-python/setuptools[${PYTHON_USEDEP}]
+"
+DEPEND="${RDEPEND}
+ test? (
+ >=dev-python/coverage-3.7.1[${PYTHON_USEDEP}]
+ >=dev-python/pytest-2.6.4[${PYTHON_USEDEP}]
+ >=dev-python/pytest-cov-1.8.1[${PYTHON_USEDEP}]
+ $(python_gen_cond_dep '>=dev-python/mock-1.0.1[${PYTHON_USEDEP}]' python2_7)
+ )
+"
+
+python_prepare_all() {
+ distutils-r1_python_prepare_all
+
+ # Don't try to use an installed vint executable.
+ # See https://github.com/Kuniwak/vint/issues/22
+ sed -i -e "s|'vint'|'bin/vint'|" test/acceptance/test_cli{,_vital}.py || die
+}
+
+python_test() {
+ py.test -v || die "Test suite failed with ${EPYTHON}"
+}
diff --git a/dev-util/vint/vint-0.3.14.ebuild b/dev-util/vint/vint-0.3.14.ebuild
new file mode 100644
index 000000000000..a64b9b754639
--- /dev/null
+++ b/dev-util/vint/vint-0.3.14.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5} )
+
+inherit distutils-r1
+
+DESCRIPTION="Lint tool for Vim script language"
+HOMEPAGE="https://github.com/Kuniwak/vint https://pypi.python.org/pypi/vim-vint/"
+SRC_URI="https://github.com/Kuniwak/vint/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="test"
+
+RDEPEND="
+ >=dev-python/ansicolor-0.2.4[${PYTHON_USEDEP}]
+ >=dev-python/chardet-2.3.0[${PYTHON_USEDEP}]
+ >=dev-python/pyyaml-3.11[${PYTHON_USEDEP}]
+ virtual/python-enum34[${PYTHON_USEDEP}]
+ virtual/python-pathlib[${PYTHON_USEDEP}]
+ virtual/python-typing[${PYTHON_USEDEP}]
+ dev-python/setuptools[${PYTHON_USEDEP}]
+"
+DEPEND="${RDEPEND}
+ test? (
+ >=dev-python/coverage-3.7.1[${PYTHON_USEDEP}]
+ >=dev-python/pytest-2.6.4[${PYTHON_USEDEP}]
+ >=dev-python/pytest-cov-1.8.1[${PYTHON_USEDEP}]
+ $(python_gen_cond_dep '>=dev-python/mock-1.0.1[${PYTHON_USEDEP}]' python2_7)
+ )
+"
+
+python_prepare_all() {
+ distutils-r1_python_prepare_all
+
+ # Don't try to use an installed vint executable.
+ # See https://github.com/Kuniwak/vint/issues/22
+ sed -i -e "s|'vint'|'bin/vint'|" test/acceptance/test_cli{,_vital}.py || die
+
+ # Don't blindly require typing. It's already shipped with Python>=3.5.
+ # See https://github.com/Kuniwak/vint/issues/238
+ sed -i -e '/typing/d' requirements.txt || die
+}
+
+python_test() {
+ py.test -v || die "Test suite failed with ${EPYTHON}"
+}
diff --git a/dev-util/visual-regexp/Manifest b/dev-util/visual-regexp/Manifest
new file mode 100644
index 000000000000..3cc536682d18
--- /dev/null
+++ b/dev-util/visual-regexp/Manifest
@@ -0,0 +1,16 @@
+AUX visual-regexp-3.0-help-font-fix.patch 994 SHA256 3b466db66a9b694ae91d8e9be12c627e1541258f801373369c3b8d13d28588f0 SHA512 806c870cbe76dfb6d5a23a169f5f4e1a79e6d6915ae941c950b9b7f91e30783670276cd247698b176f5a6e21f7eb8147cd1fd71e99e969d720de81d39c36dbd4 WHIRLPOOL 05c28db8228cd30ce37e0d99a825e72be593e1df0d82a85e965de236376f57397a9f7fc74024919167a7cc15bc6a377a67ada62e7ebfaf0ba519c68f2a57c3d0
+AUX visual-regexp-3.0-home-conf-fix.patch 1792 SHA256 01ccae8dd5600e70f208a9f93f178eee87ce33dc77c21d46ac9945e3fcf52482 SHA512 be77ca9ef0d484991a665dbc2f59f1030f69edc9be3e0b3f973afcbb19ea424fdf3c9099797391ac6eb6c4943809394f877949240eefd542791ca43815fb3dc6 WHIRLPOOL 5fc496b808d9076492a865aa676f61d65f12500f95389f0f166bd7d8f75be2cd6101a06a87a1146b4b1b2615782ba55eb279c24df6b36c2673c255e0758133f4
+AUX visual-regexp-3.0-pattern-load-fix.patch 891 SHA256 59608fb6da74c1c4ba6f3ec56f22f39dabd6c8e7f0a045e70644c521f7ce31d6 SHA512 9b9cc5275852ebcb5a68b8583eee75936d871c8bbd931462e14a56db7e71769d58a9934da17e1eaf806ae9eaf1fdc9836dab113911ac65f9f5a13bcb47ecd6df WHIRLPOOL f446f2ffb8d55b18785faa543b19ed8acdfddc1fc65a61b0b329b0b336daba5e11bdb155afcfc102f4c74bb7f9e6b0b87c05e27d48240537ee12118b6d519339
+AUX visual-regexp-3.0-wish-fix.patch 405 SHA256 da55282349b3229b82469d415b7e6821a8f1b8c9f9b6a79ecc795c24e347c0ae SHA512 5e51a9627e86778cca27b37663086c7e80e9d49d1bd53b669b76963e9dcbb42838c7334479efabbd8ca85f980ff4f4cadd2de92e6026586c8bdaa62fd096324c WHIRLPOOL 05cf905c082d56f1a4aa8dc6c95b8cf03702612b1e75d8bbf7f576aea918651707640016bc8df9cbf797c0d51942669bd6d7494cd9f41044cf6b738c7d47eaf2
+AUX visual-regexp-3.1-help-font-fix.patch 1264 SHA256 495f597108c66cea2bf9b7c7a556786e46536071e83f56713746dfd678a63533 SHA512 2ec777e5bd3a401f99fa387bb0b015596fcdcf39c11bb214daaf94f56759320d1d36bd9cd36b2cbd634a1c1eccffba1b1d1fb7736981a31528a7752447c74b13 WHIRLPOOL 2b528533d1076766d0b414de557809b92e0d4cb7edf651c6c03cc952ac80ca7aa6a12809d2c2ad0cf5b4d5df2ff8047dd5787215f50f7b97f2c153f7bbac492f
+AUX visual-regexp-3.1-make-regexp-fix.patch 411 SHA256 ca2f41eff5c474d77706f0f81a0161b3dcb06e8498635388351f76fbc82e3ad3 SHA512 6d8522788a6ddc4d1cac2a66be4b2c24fbd596927303b58be3e3cabe920e4150a574bb53d588618d096a833b063c197498250abe2d12b8997f278d90747cdf58 WHIRLPOOL a06265c52d625fcfb3ac5215a0c4d79aafe16a32a6c71b2d4854b33e7a8ed94dbcd0a2ce72058f1b2165772adca6fc84fe4b9bb3e124e6d5ef2904040000354a
+AUX visual-regexp-3.1-wish-fix.patch 383 SHA256 abb99f359b79a58557ca5b3472b6fd1abdfa8891be66593448b4ba90339f7a1c SHA512 eae72720bf064245b4e1076b7a2e4f02dd42e727ca897bb30a6da0a07305e51bd7571b28e6d1e0e251ec9fc5d9724f0a7e2feac306f89c6e7ef2f313f1c6d78d WHIRLPOOL 466435881f4b86d629c13fb076e93bce8c3f53e22c2faeeba0aa4651bff37c10991f5f1d2e314593c19a5039b6f548ef12afc4a9a10f4cb68777ea8b53798119
+AUX visualregexp.desktop 166 SHA256 ed4527e88f6b81c568a9866d1a500e1aae63c8984721c46555eb6bf5d957f739 SHA512 9f80b55123c781749e078c2c6c0117fcc4dbe8e15536e5b4d98683e67de1f5637a3c1e73b109f661765d042f76f71dcd8e633cc9d363de21b5b3ff27db21c1d1 WHIRLPOOL 974cc1f6cabb0ae97459d3cb93dabd19e4eac29df078415e85eb82554eca6293fbfbbe423d4a3418f1968c3a53e8e6d73c63001433db7f9086204328c5fdb762
+DIST visual_regexp-3.0.tar.gz 25659 SHA256 07a22a498e32476c7ae17b00d131c04a53def4e5f174ffe42ddbc42e44752c0f SHA512 3c8b3e44d20f8cdc69fdb501ac82a44f6b755715c9bd6309bbca01193acc72a97595d6012ad889c957adba587c3f8f1f888c0f42993bb81bf3f730adff42c655 WHIRLPOOL 56be241b1653fbb0b0fa5f4a1b13e755424a2d193b267e68b938ca34dbe636bcf7fdd2bb65611abe9d3e8ebb2080614c1224534424b9a83840f5ade3015a3964
+DIST visual_regexp-3.1.tcl 71183 SHA256 153bccbce71da7b208f95abc7408a126f819e4a0e57ad053866080c82e282752 SHA512 f36729800e0e66ee22339614b47f068eeb440cac501f73898250ddda9865cd5c3cc09bd57a8ea601ef7a3240bddbe524a69b704ae58b8e56decb81b25166818b WHIRLPOOL bdb4f35e8a5fd7267848e43a9eb8ea4d02633ace08bf9336826cecf5c4370857a31d54042f92b4cd79e934c468a07c0ba5f3c4ae8eabf7d98cb5ae8198629bbe
+DIST visualregexp-icon.png.tar 20480 SHA256 8704b626f9318d62fe6bdf7f2b4fb4ef7b72c6b4fe7376e55c486d5dc89fd064 SHA512 af0a5ec63d2d5fa71842ed85a83541b0f1ee72a4b37941e11f4f212874564b0255a97dfa953ea1684b056a4ab6f86ce47b6df9374628551c9cf8e775f7d12fb2 WHIRLPOOL 7dd0e70e4f419e0f4d9a6ad57260267b674b2f2ebe904ec5ec582a539d3cc619eac968e580318b003babf0b36885298b4a7c8d8ff8c4591d61794f83da807834
+EBUILD visual-regexp-3.0-r1.ebuild 935 SHA256 dbb513ba672fa2954d31b34241b92a0b1d55d33b41feabe0a5ead40843231c2b SHA512 19f39420f473fb8a9b049c4fd377abf1ff230c9eeae397d583afb0065851660413ff2c339e9f9b82cd5c62018dc8d9435e0b596f662bc4cbb830071f1de19078 WHIRLPOOL 3633c3e9d7ffcf440c59d305fb519f303f40678e97a93c896e850e1301f7332d33b868592a3e9acd77d6ebf27c1412e513b3a1143b9cc8708416853f9ba1184c
+EBUILD visual-regexp-3.1.ebuild 1237 SHA256 c898a220c8fba11cd0afd69f505e922fb0e2c2156b03f6fda66989d5ee7afbdf SHA512 532ecc703222531147989096acbee3523aa39ce79148bb46a0c2ebcf0b5aa7cfe760fe1773dc4b0837f41f7ced5517373bef2b4d43687f92269834cc1c711dea WHIRLPOOL 9bd3c4c34594752b6c89951dd0e64d9333850600544715cf01173032b1581c8b79507877f516736147d2d7d76b5bead326499262ddd0f3394a457a7c3f4ae0c8
+MISC ChangeLog 2924 SHA256 4107996c7166902b0496fab335be44dd077f6d865c1e390ae2e1cd674a98889b SHA512 f753522b1d9a8542a80ee5c723cc34bed55010f2fff491b6b48362233af9d30c6a7587320bab20f15830f80b2d2ddacf305e83fcec99e60937947ba6b8efbd4a WHIRLPOOL 129774667426f0fb039efec9fce54f3abb36e4db3b046221861ae80617f858161c5da5f387563c62187f99cdfb47420aa4d1f3398abc577403c4b14fffe9a545
+MISC ChangeLog-2015 2718 SHA256 6f40f1ded479d81f59cc9d24b8c31afbaa6283713dc6f34ff4e4c050e23f09fe SHA512 f23dfae9687e86b79717990c08a0b84452e49227950064b50b75d8bd3305b0c1996195d97474d47f405610400ad0b597b863f0999a8b5d2ed7c58d273bc8476c WHIRLPOOL 99f8cc86bd9e4d0aafab8e98d56bf03ac0bc48d854a7cccb99dd49a25481fa611a8c8408c737243d807aae1b34025ac37933df8f1a64d52653d0063fa733435b
+MISC metadata.xml 365 SHA256 d4fac92e622bd537b862ede7619662389ae9d12a17d3fce03f0e1c33e0bdf65f SHA512 9556a7d272b95bfde71df2994d8ac26639f3252cd743f9caeeea8b516a70dfd031dacf42dd56df19394c03223001e09bacb094b68256641764d139b3880e9ff1 WHIRLPOOL d73f08134a91e1bf5fcb38bfcdc7bbb29b149b480124b04f1561f6ccdad14b200a0a7684fce649761747705ff47266ad9e73823a4ccc33223968ee5e30d72340
diff --git a/dev-util/visual-regexp/files/visual-regexp-3.0-help-font-fix.patch b/dev-util/visual-regexp/files/visual-regexp-3.0-help-font-fix.patch
new file mode 100644
index 000000000000..ec3763cc9dd1
--- /dev/null
+++ b/dev-util/visual-regexp/files/visual-regexp-3.0-help-font-fix.patch
@@ -0,0 +1,26 @@
+diff -ur a/visual_regexp.tcl b/visual_regexp.tcl
+--- a/visual_regexp.tcl 2013-11-10 01:35:49.959609478 +0100
++++ b/visual_regexp.tcl 2013-11-10 01:34:10.491151352 +0100
+@@ -494,15 +494,18 @@
+ pack .help.l -side top -padx 10 -pady 10
+ # help text
+ if {$tcl_platform(platform) == "windows"} {
+- text .help.t -bd 2 -relief groove -font {Courier 10}
++ set hfont {Courier 10}
++ set hbfont {Courier 10 bold}
+ } else {
+- text .help.t -bd 2 -relief groove
++ set hfont {9x15}
++ set hbfont {9x15bold}
+ }
++ text .help.t -bd 2 -relief groove -font $hfont
+ pack .help.t -side top -padx 20
+- .help.t tag configure bold -font "[.help.t cget -font] bold"
++ .help.t tag configure bold -font $hbfont
+ .help.t insert 1.0 "Version:" bold " $::version
+
+-" normal "Usage:" bold " tkregexp <sampleFile>
++" normal "Usage:" bold " [file tail $::argv0] <sampleFile>
+
+ " normal "Key bindings:" bold " Alt-q exit
+ Alt-a toggle 'all' flag
diff --git a/dev-util/visual-regexp/files/visual-regexp-3.0-home-conf-fix.patch b/dev-util/visual-regexp/files/visual-regexp-3.0-home-conf-fix.patch
new file mode 100644
index 000000000000..c86202ae05fb
--- /dev/null
+++ b/dev-util/visual-regexp/files/visual-regexp-3.0-home-conf-fix.patch
@@ -0,0 +1,56 @@
+diff -ur a/visual_regexp.tcl b/visual_regexp.tcl
+--- a/visual_regexp.tcl 2013-11-12 23:23:59.730171882 +0100
++++ b/visual_regexp.tcl 2013-11-12 23:24:42.134085257 +0100
+@@ -1062,27 +1060,38 @@
+ #==============================================================================================
+
+ # try to get customization from 'visual_regexp.ini'
+-puts "[file exists visual_regexp.ini]"
+-set filename [file dirname [info nameofexecutable]]/visual_regexp.ini
+-if {[file exists $filename]} {
+- source $filename
+-} elseif {[file exists visual_regexp.ini]} {
+- source visual_regexp.ini
++set localfilename visual_regexp.ini
++set homefilename ""
++if {[info exists ::env(HOME)]} {
++ set homefilename [file join $::env(HOME) .visual_regexp visual_regexp.ini]
+ }
+-
+-# try to auto user patterns
+-set filename [file dirname [info nameofexecutable]]/regexp.txt
+-if {[file exists $filename]} {
+- regexp::pattern:load $filename
+-} elseif {[file exists regexp.txt]} {
+- regexp::pattern:load regexp.txt
++set binfilename [file join [file dirname [info nameofexecutable]] visual_regexp.ini]
++foreach filename [list $localfilename $homefilename $binfilename] {
++ if {[file exists $filename]} {
++ source $filename
++ break
++ }
+ }
+
+-# buld the GUI
++# build the GUI
+ regexp::history:init
+ regexp::gui
+ regexp::go
+
++# try to auto user patterns
++set localfilename regexp.txt
++set homefilename ""
++if {[info exists ::env(HOME)]} {
++ set homefilename [file join $::env(HOME) .visual_regexp regexp.txt]
++}
++set binfilename [file join [file dirname [info nameofexecutable]] regexp.txt]
++foreach filename [list $localfilename $homefilename $binfilename] {
++ if {[file exists $filename]} {
++ regexp::pattern:load $filename
++ break
++ }
++}
++
+ if {$argc > 1} {
+ puts "Usage: $argv0 <sampleFile>"
+ } elseif {$argc == 1} {
diff --git a/dev-util/visual-regexp/files/visual-regexp-3.0-pattern-load-fix.patch b/dev-util/visual-regexp/files/visual-regexp-3.0-pattern-load-fix.patch
new file mode 100644
index 000000000000..18dbf509f45a
--- /dev/null
+++ b/dev-util/visual-regexp/files/visual-regexp-3.0-pattern-load-fix.patch
@@ -0,0 +1,31 @@
+diff -ur a/visual_regexp.tcl b/visual_regexp.tcl
+--- a/visual_regexp.tcl 2013-11-12 23:23:59.730171882 +0100
++++ b/visual_regexp.tcl 2013-11-12 23:24:42.134085257 +0100
+@@ -380,19 +380,17 @@
+ }
+ # do it
+ set in [open $file "r"]
+- $data(w:menu) delete [expr 4+[llength $::regexp_db]/2] end
+- while {![eof $in]} {
+- set name [gets $in]
+- while {$name == ""} {
+- set name [gets $in]
+- }
+- set pattern [gets $in]
+- while {$pattern == ""} {
+- set pattern [gets $in]
++ set contents {}
++ foreach line [split [read $in] \n] {
++ if {$line != ""} {
++ lappend contents $line
+ }
+- $data(w:menu) add command -label $name -command "regexp::regexp:insert [list $pattern]"
+ }
+ close $in
++ $data(w:menu) delete [expr 4+[llength $::regexp_db]/2] end
++ foreach {name pattern} $contents {
++ $data(w:menu) add command -label $name -command "regexp::regexp:insert [list $pattern]"
++ }
+ }
+
+
diff --git a/dev-util/visual-regexp/files/visual-regexp-3.0-wish-fix.patch b/dev-util/visual-regexp/files/visual-regexp-3.0-wish-fix.patch
new file mode 100644
index 000000000000..bfb7478d1fec
--- /dev/null
+++ b/dev-util/visual-regexp/files/visual-regexp-3.0-wish-fix.patch
@@ -0,0 +1,12 @@
+diff -ur visual_regexp-3.0/visual_regexp.tcl visual_regexp-current/visual_regexp.tcl
+--- visual_regexp-3.0/visual_regexp.tcl 2002-09-01 08:24:56.000000000 -0500
++++ visual_regexp-current/visual_regexp.tcl 2004-03-29 23:20:43.000000000 -0500
+@@ -1,7 +1,7 @@
+ #!/bin/sh
+ #-*-tcl-*-
+ # the next line restarts using wish \
+-exec wish8.3 "$0" -- ${1+"$@"}
++exec wish "$0" -- ${1+"$@"}
+
+
+ set version 3.0
diff --git a/dev-util/visual-regexp/files/visual-regexp-3.1-help-font-fix.patch b/dev-util/visual-regexp/files/visual-regexp-3.1-help-font-fix.patch
new file mode 100644
index 000000000000..1dd7e7021b4f
--- /dev/null
+++ b/dev-util/visual-regexp/files/visual-regexp-3.1-help-font-fix.patch
@@ -0,0 +1,32 @@
+diff -ur a/visual_regexp.tcl b/visual_regexp.tcl
+--- a/visual_regexp.tcl 2013-11-10 01:49:14.987065220 +0100
++++ b/visual_regexp.tcl 2013-11-10 01:49:04.177341077 +0100
+@@ -740,10 +740,13 @@
+ frame .help.text;
+
+ if {$tcl_platform(platform) == "windows"} {
+- text .help.text.t -borderwidth 2 -relief groove -font {Courier 10} -yscrollcommand [list .help.text.sy set];
++ set hfont {Courier 10}
++ set hbfont {Courier 10 bold}
+ } else {
+- text .help.text.t -borderwidth 2 -relief groove -yscrollcommand [list .help.text.sy set];
++ set hfont {9x15}
++ set hbfont {9x15bold}
+ }
++ text .help.text.t -borderwidth 2 -relief groove -font $hfont -yscrollcommand [list .help.text.sy set];
+
+ scrollbar .help.text.sy \
+ -command ".help.text.t yview" \
+@@ -755,10 +758,10 @@
+
+ pack .help.text -side top -fill both -expand 1 -padx 20
+
+- .help.text.t tag configure bold -font "[.help.text.t cget -font] bold"
++ .help.text.t tag configure bold -font $hbfont
+ .help.text.t insert 1.0 "Version:" bold " $::version
+
+-" normal "Usage:" bold " tkregexp <sampleFile>
++" normal "Usage:" bold " [file tail $::argv0] <sampleFile>
+
+ " normal "Key bindings:" bold " Alt-q exit
+ Alt-a toggle 'all' flag
diff --git a/dev-util/visual-regexp/files/visual-regexp-3.1-make-regexp-fix.patch b/dev-util/visual-regexp/files/visual-regexp-3.1-make-regexp-fix.patch
new file mode 100644
index 000000000000..6610b16e76ff
--- /dev/null
+++ b/dev-util/visual-regexp/files/visual-regexp-3.1-make-regexp-fix.patch
@@ -0,0 +1,12 @@
+diff -ur a/visual_regexp.tcl b/visual_regexp.tcl
+--- a/visual_regexp.tcl 2013-11-11 12:11:34.256631106 +0100
++++ b/visual_regexp.tcl 2013-11-11 11:50:46.614881803 +0100
+@@ -1437,7 +1439,7 @@
+ set output [text $f.output \
+ -wrap char \
+ -undo 1 \
+- -background white
++ -background white \
+ -font $::font_regexp \
+ -selectbackground lightblue \
+ -selectborderwidth 0 \
diff --git a/dev-util/visual-regexp/files/visual-regexp-3.1-wish-fix.patch b/dev-util/visual-regexp/files/visual-regexp-3.1-wish-fix.patch
new file mode 100644
index 000000000000..3fae9d095025
--- /dev/null
+++ b/dev-util/visual-regexp/files/visual-regexp-3.1-wish-fix.patch
@@ -0,0 +1,13 @@
+diff -ur a/visual_regexp.tcl b/visual_regexp.tcl
+--- a/visual_regexp.tcl 2013-10-29 03:42:43.443932232 +0100
++++ b/visual_regexp.tcl 2013-10-29 03:35:35.441951822 +0100
+@@ -1,7 +1,6 @@
+-package require starkit
+-starkit::startup
++#!/usr/bin/wish
+
+-set version 3.0
++set version 3.1
+
+ ###############################################################################################
+ #
diff --git a/dev-util/visual-regexp/files/visualregexp.desktop b/dev-util/visual-regexp/files/visualregexp.desktop
new file mode 100644
index 000000000000..1d66181bc2c1
--- /dev/null
+++ b/dev-util/visual-regexp/files/visualregexp.desktop
@@ -0,0 +1,7 @@
+[Desktop Entry]
+Type=Application
+Exec=visualregexp
+Icon=visualregexp-icon
+Name=Visual Regexp
+Comment=An interactive regular expression editor
+Categories=Development;
diff --git a/dev-util/visual-regexp/metadata.xml b/dev-util/visual-regexp/metadata.xml
new file mode 100644
index 000000000000..61d19ccc4a52
--- /dev/null
+++ b/dev-util/visual-regexp/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>quentin@minster.io</email>
+ <name>Quentin Minster</name>
+ </maintainer>
+<maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-util/visual-regexp/visual-regexp-3.0-r1.ebuild b/dev-util/visual-regexp/visual-regexp-3.0-r1.ebuild
new file mode 100644
index 000000000000..6de44bc09c0e
--- /dev/null
+++ b/dev-util/visual-regexp/visual-regexp-3.0-r1.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils
+
+DESCRIPTION="Type the regexp and visualize it on a sample of your choice"
+HOMEPAGE="http://laurent.riesterer.free.fr/regexp/"
+SRC_URI="
+ https://dev.gentoo.org/~jlec/distfiles/visualregexp-icon.png.tar
+ http://laurent.riesterer.free.fr/regexp/visual_regexp-${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND=">=dev-lang/tk-8.3"
+
+S=${WORKDIR}/visual_regexp-${PV}
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${P}-wish-fix.patch \
+ "${FILESDIR}"/${P}-help-font-fix.patch \
+ "${FILESDIR}"/${P}-home-conf-fix.patch \
+ "${FILESDIR}"/${P}-pattern-load-fix.patch
+}
+
+src_install() {
+ dodoc README
+
+ newbin visual_regexp.tcl visualregexp
+
+ dosym visualregexp /usr/bin/tkregexp
+
+ doicon "${WORKDIR}"/visualregexp-icon.png
+
+ domenu "${FILESDIR}"/visualregexp.desktop
+}
diff --git a/dev-util/visual-regexp/visual-regexp-3.1.ebuild b/dev-util/visual-regexp/visual-regexp-3.1.ebuild
new file mode 100644
index 000000000000..3920d2a42ab5
--- /dev/null
+++ b/dev-util/visual-regexp/visual-regexp-3.1.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils
+
+DESCRIPTION="Type the regexp and visualize it on a sample of your choice"
+HOMEPAGE="http://laurent.riesterer.free.fr/regexp/"
+SRC_URI="
+ https://dev.gentoo.org/~jlec/distfiles/visualregexp-icon.png.tar
+ http://laurent.riesterer.free.fr/regexp/visual_regexp-${PV}.tcl"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
+IUSE=""
+
+DEPEND=""
+RDEPEND=">=dev-lang/tk-8.5"
+
+S="${WORKDIR}"
+
+src_unpack() {
+ # Manually copy the source file since unpack gets confused by things it can't unpack
+ cp "${DISTDIR}/visual_regexp-${PV}.tcl" "${WORKDIR}/visual_regexp.tcl"
+
+ default
+}
+
+src_prepare() {
+ # File comes with DOS newlines
+ edos2unix visual_regexp.tcl
+
+ epatch \
+ "${FILESDIR}/${P}-wish-fix.patch" \
+ "${FILESDIR}/${P}-help-font-fix.patch" \
+ "${FILESDIR}/${P}-make-regexp-fix.patch" \
+ "${FILESDIR}/${PN}-3.0-home-conf-fix.patch" \
+ "${FILESDIR}/${PN}-3.0-pattern-load-fix.patch"
+
+ epatch_user
+}
+
+src_install() {
+ newbin visual_regexp.tcl visualregexp
+ dosym visualregexp /usr/bin/tkregexp
+ doicon "${WORKDIR}/visualregexp-icon.png"
+ domenu "${FILESDIR}/visualregexp.desktop"
+}
diff --git a/dev-util/visualvm/Manifest b/dev-util/visualvm/Manifest
new file mode 100644
index 000000000000..b7e636a6262e
--- /dev/null
+++ b/dev-util/visualvm/Manifest
@@ -0,0 +1,11 @@
+AUX org-netbeans-modules-profiler-kit.xml 480 SHA256 f2b7ef384e71241dd91a49825b62a97875231dc5ac539e1ca1919a0edc02b6ca SHA512 43c979dce3996ef49de4cea4e46d1869bcf707cdabd0af04442ea7ba1ecb7e4f0d35e0355114e0382a1b7e105c02a7aedf0846ccab3e0cdc1f82f0a829dc9e40 WHIRLPOOL 1c7d2b7e3ac98850147dde1c17f6de7bf46cada3837b5933777305271b104e0ce8bb0011680f4ce3b48f0b5517cc0b588832b0a868d1992d1085bae1039e1341
+AUX org-netbeans-modules-profiler-nbimpl.xml 486 SHA256 86d7dd0bb435f9fe97a54ab1dff2d6f5a2cc8413add1ac78c9abed9600e0de5f SHA512 608089dfe84c19542ebabf484b4ba4ac0c0fd9be62d0e86f1a46f5b99cc00e702236618037aa5afa9d2f866af8b360fc4cfe9683998616e96964595068e73f4a WHIRLPOOL e8913740280b7a5f73082789d55f48b4d1a970f24074981771e116404a5028ab679e55faa7636502935442be171e0a231cf78f659d28c6bd3473195e83af9be0
+AUX org-netbeans-modules-profiler-options.xml 488 SHA256 fdef7c3e062df1cfddff844c11b0763190a92f863a9d308de240b67a42ea110a SHA512 00012a71334794b5b454f7de1ddecd2dd5ea90f11c8a4fdade520d0128d4cd27af13f5dc707b00231c68bf302189f06eaf2addc9cdfe403773421497ae4f1dcd WHIRLPOOL 028d335379785361e582016f8279914d2baf00c037f15c7e9e3094e19c1c53a6242669cd990c914437fe0447cbd12773fa67047671d704bebce58abdd3ee518a
+AUX org-netbeans-modules-profiler-oql-language.xml 498 SHA256 dec11f45e21b886b98841e058e7dfa2be8d34cec1309e8401d334f7f23471738 SHA512 95962ba87c85c7f0ae9378eab7b29d377e3e4cd5173e65f428f26d0c2e9d35d69f140877d1fbb77dbdca4ca0473d8beeae48674101412c9b41e0be832895f4b2 WHIRLPOOL 445fd2ab096125512f7ab0599cf7b1a3938ddba9bb5570596d1fb9e307e8ad1fbdcd905dea808bf7447c696f0973a5aa239cb6666f73977f62718ac8bd716517
+AUX visualvm.conf 383 SHA256 8ee4e0cb4a69cd0db8f581bef42ae8504ba14323dfe163f7c275e9f821d1a3ae SHA512 a5537c7ff8e3821ea435cb6236eac6d0f8941d16541f14862cf5ad15fc2d3621cd50aa296dd316f54f7137196981163b211fe984d21a38ababfce05d575203ff WHIRLPOOL f53de8d9401fbeb86ffb23825da5d228dee2ff1a6b158a74190a6bc37ec24d36d819d65242d0d7b1e0732baadc98766740b33381bc93eb1a9210051b48a9f849
+AUX visualvm.sh 730 SHA256 3828b835d52d7c3a8d452b4cca0273559318bdd66c8a1e6e3fa27354ec06d6f6 SHA512 5f8ba3cbb1c74c9807c016fff5ce31abeb15275df68c710acfb2d0e5f9ecf7e9c5c6aa85c865350bc8225caa278117cda8d6005e28759cc327baf0d14546b95b WHIRLPOOL 85d6857376ccb4ec84391cc4ae9c259911a60060d23753217f6bb26f8fee53bbdd3324bc014bcd030a558080ebc9949b3c5123b7516cd979c75a73aba2d27e92
+DIST visualvm_138-src.tar.gz 1052176 SHA256 e34cd0425d74055e03394c572735067d3b98095ed5c04268707b52f1dc7c6144 SHA512 f418fcd3316f793c6fc77c6bcdf1e53dc543f7de2ee638f3d500a4de61505246fd07829b25cdf988836f515b72c59c71a2a4fecbb569910e9203e5b490e837a1 WHIRLPOOL c2d83fd92687d07d2f240d4a6c1f150471041e0e0ab1c13f7cd1804a98d3565ed1df29c5124002ced0c403fec98b5464f8ad113cc76ae264d95413c81c4dc129
+EBUILD visualvm-1.3.8-r1.ebuild 1801 SHA256 430d3eb62f58d9aba67fc46fecd0fa95bbb9dd5acc2d8fad13cb36ee2e7dc4d9 SHA512 68b0dd605e34df43883caa8476913cf77f804141e0d90b2cbd68827fe152984296b6895f2520ee14b81a4ad01d35eaa6af4c7eae3b126b3bb12f7dd747778dc3 WHIRLPOOL 56f22c4d1d1e7fe65267ea3c6f5af73776f07aa0ed438af8a96ff3fa840e743e7b63d266acb0115d890a0dbab0a2c5d7c918ee9b7561992e5397350535b0b2cf
+MISC ChangeLog 2950 SHA256 9b5c0dd533ce296b0bfa4f1ea2ae5df7bd3f65c71cb4341ef91a6b51d1785ae4 SHA512 bc1cd08ad0b17a63f8727c9d6987aa6c981b9ff631e58614809c4d46635bbac691f058f8ad7acb49fa99087d06e6a852c0cf67e9186cf6c89b01ec9107279573 WHIRLPOOL 1787ce34ab59e9509c7c8afd1f23e06b151e8a0b6b97b43984d06aeb56306121a9eb3b2e759eacc299aeabe81643a9e66ca47c3c4a7641d3a0955cc13dbd4a23
+MISC ChangeLog-2015 2106 SHA256 cd9d0b9eebe63b3dd597a4a000c396c0975d129be3a492740bb7c017e66124aa SHA512 4c7428777f2f257866aa253a160c062d9f368b0831076b9f8804f81ee93e0f6dd98f572fde056ce2093807fdce805132ebda1268d703ce14e188fdf06ff4ad9c WHIRLPOOL 83081cbbfa408fdf21b4dce0a6d92dd4cc08c4e668b529cca3c77d4f33d1c6698bd06bef670e9f6c001d0412e510ee34aadbdfb2e3fc9dfb9b80184cc89d9f67
+MISC metadata.xml 346 SHA256 f90f6f8211893f5ce8dbf54c4ba4d8dae856449e6e61245667202a7148ef643b SHA512 bef5b6d65ed86015b369e396c706b70f885407890e72fb177d170761d9c04a6dfc843d59999a9076ca64f3c281cb25b604213f31c67cec5e7cc47389e99429b9 WHIRLPOOL 0e3020788df31c25ab4303ef911557435cc648a41c946b884146d06a4b039f2be7900d685c0291129d11a93fe83b7020739ff387dca7fcb1d622ea92ae92ccdb
diff --git a/dev-util/visualvm/files/org-netbeans-modules-profiler-kit.xml b/dev-util/visualvm/files/org-netbeans-modules-profiler-kit.xml
new file mode 100644
index 000000000000..94021f8ef293
--- /dev/null
+++ b/dev-util/visualvm/files/org-netbeans-modules-profiler-kit.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE module PUBLIC "-//NetBeans//DTD Module Status 1.0//EN"
+ "http://www.netbeans.org/dtds/module-status-1_0.dtd">
+<module name="org.netbeans.modules.profiler.kit">
+ <param name="autoload">false</param>
+ <param name="eager">false</param>
+ <param name="enabled">false</param>
+ <param name="jar">modules/org-netbeans-modules-profiler-kit.jar</param>
+ <param name="reloadable">false</param>
+</module>
diff --git a/dev-util/visualvm/files/org-netbeans-modules-profiler-nbimpl.xml b/dev-util/visualvm/files/org-netbeans-modules-profiler-nbimpl.xml
new file mode 100644
index 000000000000..d33e48d5b7f5
--- /dev/null
+++ b/dev-util/visualvm/files/org-netbeans-modules-profiler-nbimpl.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE module PUBLIC "-//NetBeans//DTD Module Status 1.0//EN"
+ "http://www.netbeans.org/dtds/module-status-1_0.dtd">
+<module name="org.netbeans.modules.profiler.nbimpl">
+ <param name="autoload">false</param>
+ <param name="eager">false</param>
+ <param name="enabled">false</param>
+ <param name="jar">modules/org-netbeans-modules-profiler-nbimpl.jar</param>
+ <param name="reloadable">false</param>
+</module>
diff --git a/dev-util/visualvm/files/org-netbeans-modules-profiler-options.xml b/dev-util/visualvm/files/org-netbeans-modules-profiler-options.xml
new file mode 100644
index 000000000000..d56b0c8fe32a
--- /dev/null
+++ b/dev-util/visualvm/files/org-netbeans-modules-profiler-options.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE module PUBLIC "-//NetBeans//DTD Module Status 1.0//EN"
+ "http://www.netbeans.org/dtds/module-status-1_0.dtd">
+<module name="org.netbeans.modules.profiler.options">
+ <param name="autoload">false</param>
+ <param name="eager">false</param>
+ <param name="enabled">false</param>
+ <param name="jar">modules/org-netbeans-modules-profiler-options.jar</param>
+ <param name="reloadable">false</param>
+</module>
diff --git a/dev-util/visualvm/files/org-netbeans-modules-profiler-oql-language.xml b/dev-util/visualvm/files/org-netbeans-modules-profiler-oql-language.xml
new file mode 100644
index 000000000000..0ba0c5aa0660
--- /dev/null
+++ b/dev-util/visualvm/files/org-netbeans-modules-profiler-oql-language.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE module PUBLIC "-//NetBeans//DTD Module Status 1.0//EN"
+ "http://www.netbeans.org/dtds/module-status-1_0.dtd">
+<module name="org.netbeans.modules.profiler.oql.language">
+ <param name="autoload">false</param>
+ <param name="eager">false</param>
+ <param name="enabled">false</param>
+ <param name="jar">modules/org-netbeans-modules-profiler-oql-language.jar</param>
+ <param name="reloadable">false</param>
+</module>
diff --git a/dev-util/visualvm/files/visualvm.conf b/dev-util/visualvm/files/visualvm.conf
new file mode 100644
index 000000000000..117e25436e8d
--- /dev/null
+++ b/dev-util/visualvm/files/visualvm.conf
@@ -0,0 +1,8 @@
+# Default user directory
+visualvm_default_userdir="${HOME}/.visualvm"
+
+# Default runtime options
+visualvm_default_options="-J-Dnetbeans.logger.console=true -J-ea -J-client -J-Xms24m -J-Xmx256m -J-Dnetbeans.accept_license_class=com.sun.tools.visualvm.modules.startup.AcceptLicense -J-Dsun.java2d.noddraw=true -J-Dsun.java2d.d3d=false"
+
+# JDK home
+visualvm_jdkhome="$(java-config -O)"
diff --git a/dev-util/visualvm/files/visualvm.sh b/dev-util/visualvm/files/visualvm.sh
new file mode 100644
index 000000000000..d26306a9ac37
--- /dev/null
+++ b/dev-util/visualvm/files/visualvm.sh
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+# source the configuration file
+source /etc/visualvm/visualvm.conf
+
+# if visualvm userdir does not exist, create it and put in the default module configuration
+# so that user does not face warning that some (unneeded) modules were not found
+if [ ! -e "${visualvm_default_userdir}" ] ; then
+ mkdir -p "${visualvm_default_userdir}/config/Modules"
+ cp /usr/share/visualvm/config/* "${visualvm_default_userdir}/config/Modules/"
+fi
+
+# launch visualvm
+/usr/share/netbeans-platform-8.0/lib/nbexec --jdkhome ${visualvm_jdkhome} --userdir ${visualvm_default_userdir} \
+ --branding visualvm --clusters /usr/share/visualvm/cluster:/usr/share/netbeans-platform-8.0:/usr/share/netbeans-profiler-8.0 \
+ ${visualvm_default_options}
diff --git a/dev-util/visualvm/metadata.xml b/dev-util/visualvm/metadata.xml
new file mode 100644
index 000000000000..9ef97ae66fd0
--- /dev/null
+++ b/dev-util/visualvm/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="project">
+ <email>java@gentoo.org</email>
+ <name>Java</name>
+</maintainer>
+<longdescription>The IcedTea project provides a harness to build the source code from VisualVM.</longdescription>
+</pkgmetadata>
diff --git a/dev-util/visualvm/visualvm-1.3.8-r1.ebuild b/dev-util/visualvm/visualvm-1.3.8-r1.ebuild
new file mode 100644
index 000000000000..911a74a645a5
--- /dev/null
+++ b/dev-util/visualvm/visualvm-1.3.8-r1.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit java-pkg-2 java-ant-2
+
+DESCRIPTION="Integrates commandline JDK tools and profiling capabilities"
+HOMEPAGE="http://visualvm.java.net/"
+SRC_URI="https://java.net/downloads/visualvm/release138/visualvm_138-src.tar.gz"
+
+LICENSE="GPL-2-with-linking-exception"
+SLOT="7"
+KEYWORDS="~amd64"
+IUSE=""
+
+COMMON_DEP="
+ || ( virtual/jdk:1.7 virtual/jdk:1.8 )
+ dev-java/netbeans-platform:8.0
+ dev-java/netbeans-profiler:8.0"
+RDEPEND="${COMMON_DEP}"
+DEPEND="${COMMON_DEP}
+ dev-java/netbeans-harness:8.0"
+
+S="${WORKDIR}/visualvm"
+INSTALL_DIR=/usr/share/${PN}
+
+EANT_BUILD_TARGET="build"
+
+src_prepare() {
+ mkdir "${S}/netbeans" || die "Failed to create netbeans directory"
+ ln -s /usr/share/netbeans-harness-8.0 "${S}/netbeans/harness" || die "Failed to symlink harness"
+ ln -s /usr/share/netbeans-platform-8.0 "${S}/netbeans/platform" || die "Failed to symlink platform"
+ ln -s /usr/share/netbeans-profiler-8.0 "${S}/netbeans/profiler" || die "Failed to symlink profiler"
+}
+
+src_install() {
+ # this is the visualvm cluster
+ insinto ${INSTALL_DIR}
+ doins -r "${S}/build/cluster"
+
+ # these are netbeans platform configuration files that prevent display of missing modules during startup
+ insinto ${INSTALL_DIR}/config
+ doins "${FILESDIR}"/org-netbeans-modules-profiler-*.xml
+
+ # configuration file that can be used to tweak visualvm startup parameters
+ insinto /etc/visualvm
+ doins "${FILESDIR}/visualvm.conf"
+
+ # visualvm runtime script
+ into ${INSTALL_DIR}
+ dobin "${FILESDIR}/visualvm.sh"
+ fperms 755 ${INSTALL_DIR}/bin/visualvm.sh
+ dosym ${INSTALL_DIR}/bin/visualvm.sh /usr/bin/visualvm
+
+ # makes visualvm entry
+ make_desktop_entry "/usr/bin/visualvm" "VisualVM" "java" "Development;Java;"
+}
diff --git a/dev-util/vmtouch/Manifest b/dev-util/vmtouch/Manifest
new file mode 100644
index 000000000000..c675dbb53c35
--- /dev/null
+++ b/dev-util/vmtouch/Manifest
@@ -0,0 +1,9 @@
+DIST vmtouch-1.0.2.tar.gz 13404 SHA256 48d41e5b805a0fcac46c12feeb4650e4b9def44b75d528d7c66c2f8b3a747c39 SHA512 df0d8a1599c970540e70e050dab33327589f0dd64548640c7d44607c3ef3397c7b1d2184fe80195ec5cb9a73d7218d7fd1b2cda2cee227ce84a8c20e8874f489 WHIRLPOOL 903813783d93395b637b565a887b8d0d3d5d3b7d548d9a98d49c1ab9bfc82322a495c771937cc7688561de30d0ec2aca6edb6d599508c440bd963547b78915b9
+DIST vmtouch-1.2.0.tar.gz 15993 SHA256 154034dec5ef550dcb7ff5a359ee1b7a9421f586f47237e3bc2617efa148b5fd SHA512 cc13688c1b8bee38495ed3b9295d0066e33f4242b6bb70c4547cb99c1403c15b71ae1c739a8f7dc718f760c40ff4e7ba3dd55691900b501305d9263797c3b5cd WHIRLPOOL 237243ccd97774896fe5178e4535bb09efa0a3369a3d337350d228d44415b348ff51a6f7d57f08ee5f6ee0f32c38f3eba99f2696081dcff5db817396deb0fb78
+DIST vmtouch-1.3.0.tar.gz 18733 SHA256 4615980b8f824c8eb164e50ec0880bcb71591f4e3989a6075e5a3e2efd122ceb SHA512 ddb86b764dffea6c43a2dc5c48dc91fa862c104a2e5ee7beefb45815b60aba14d255936082593cec97534f7231d65f91f23b0cab3f985695af365c34341a8a19 WHIRLPOOL 0b6c4fe0a4732a0daae9069eaabbdb7bb5dd149e96b1044ee5b18509ce33e5be761c27670b52d927d8bf6919285d250f01ea81d41a75065dfb499bd80e16b9a7
+EBUILD vmtouch-1.0.2.ebuild 670 SHA256 5d8149a737fae29bb51a6254ea5c46b31f78fc734b4ceaa2afa3edb5a4b0fa0b SHA512 c4b9d5ebdb65432371fc60faa53c1aba4d9332e1363f1ff1e4fc2246270f06c6e76eefabc22ada07261474fc97c55881e276e21695d80620ff51a379ac03ef3f WHIRLPOOL 3f579926c2cc95ad3f3f72370e3293f8e971d662ee176a7d465eecf4c9f7b8537ada904270ebee275f247b2cda8a82000a223ef7e1380b2ca7442557c5575fba
+EBUILD vmtouch-1.2.0.ebuild 645 SHA256 7361ed900b8c17c49fe0c188a876c507677854fb2b79bee03feb634a2d3c4a65 SHA512 146258289c2179a40b409195899b67a9613b63154193b33a4405a8a3b4f98912cceaa7d9db034169fb60aa11cb5c9a1d4ae020cc1657b3ee966f94fa63619d4f WHIRLPOOL be4b2fa33720b0ec6300e7653df113dc95bdf813ba945eedd8e71d51acc6be8f91bef0882eb24986a24d573ebb67ba67c7ef433042feb40f505dcdb572ce7aa9
+EBUILD vmtouch-1.3.0.ebuild 645 SHA256 7361ed900b8c17c49fe0c188a876c507677854fb2b79bee03feb634a2d3c4a65 SHA512 146258289c2179a40b409195899b67a9613b63154193b33a4405a8a3b4f98912cceaa7d9db034169fb60aa11cb5c9a1d4ae020cc1657b3ee966f94fa63619d4f WHIRLPOOL be4b2fa33720b0ec6300e7653df113dc95bdf813ba945eedd8e71d51acc6be8f91bef0882eb24986a24d573ebb67ba67c7ef433042feb40f505dcdb572ce7aa9
+MISC ChangeLog 2737 SHA256 6e68d1b0aabef3ae874f9b7341a0d014cf6c2892f91bd3960ed280f4dfbf2f51 SHA512 429d740c572dc4713eaf6d5cfd2cad9b6a64b70a6d924011781c86956b72ccf13a7351fcb0640e936f4e1ca0932491570e905b48e4e369ec9616ffcc5bbbf3d2 WHIRLPOOL 134069368e85c73bf361ebbe7311724339780e222c169ea52d97f425b76496da2cbfda86d7fd9567a221935c72fb089d2d4b7d46e5373f46e6bcc934f1348191
+MISC ChangeLog-2015 347 SHA256 9730d59905b05f7f75dee9d813c0ace0f51b1aa9ec37b673f3d1a400ccf8c505 SHA512 732b88225dbc1916241341d4ecbdf8225797f11d3c85876ee5d8f324e50773989b54d7dd7dfbae409ca5ddde7980c3c3c216b3335123116fb455834a52a0b1ae WHIRLPOOL 3dfe9697d5452995a15f12da1c2de9b9d449eef7bf9a26c35f56a4749bb048ae415e26c2a4edfd69873f360d37a2a6ff74284db8efdf7e304bfc6894e78e7eae
+MISC metadata.xml 554 SHA256 ef5e6f9052a7faf765dd12c1a762d8a2668f955efb10fec32d965c6487690873 SHA512 b2ea2c6e314fa0f849ae17461352372b583a5b1f52ce64ea07fda64d21147b649854f54b43788396bf35b91f625389337912f31b80f8428d94fcc44d20896b18 WHIRLPOOL 43d73c151ebf1dd3599de35d9cca3488a9dfa186fa5d167b1d11298467d4361c0691e3c4282901a0520d973c1b6b7ba7402b02eb4fd218101f8e216aa9ec8b98
diff --git a/dev-util/vmtouch/metadata.xml b/dev-util/vmtouch/metadata.xml
new file mode 100644
index 000000000000..d4b6bb25c496
--- /dev/null
+++ b/dev-util/vmtouch/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>dlan@gentoo.org</email>
+ <name>Yixun Lan</name>
+ </maintainer>
+ <longdescription>
+ vmtouch is a tool for learning about and controlling the file system cache
+ of unix and unix-like systems. It is BSD licensed so you can basically
+ do whatever you want with it.
+ </longdescription>
+ <upstream>
+ <remote-id type="github">hoytech/vmtouch</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/vmtouch/vmtouch-1.0.2.ebuild b/dev-util/vmtouch/vmtouch-1.0.2.ebuild
new file mode 100644
index 000000000000..9678761838e0
--- /dev/null
+++ b/dev-util/vmtouch/vmtouch-1.0.2.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit toolchain-funcs
+
+DESCRIPTION="Virtual Memory Toucher, portable file system cache diagnostics and control"
+HOMEPAGE="http://hoytech.com/vmtouch/"
+SRC_URI="https://github.com/hoytech/${PN}/archive/${P}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+S="${WORKDIR}"/${PN}-${P}
+
+src_compile() {
+ emake CC="$(tc-getCC)"
+}
+
+src_install() {
+ local my_prefix="${ED}/usr"
+ emake PREFIX="${my_prefix}" MANDIR="${my_prefix}/share/man/man8" install
+ dodoc CHANGES README.md TODO
+}
diff --git a/dev-util/vmtouch/vmtouch-1.2.0.ebuild b/dev-util/vmtouch/vmtouch-1.2.0.ebuild
new file mode 100644
index 000000000000..e043a354abd7
--- /dev/null
+++ b/dev-util/vmtouch/vmtouch-1.2.0.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit toolchain-funcs
+
+DESCRIPTION="Virtual Memory Toucher, portable file system cache diagnostics and control"
+HOMEPAGE="http://hoytech.com/vmtouch/"
+SRC_URI="https://github.com/hoytech/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+src_compile() {
+ emake CC="$(tc-getCC)"
+}
+
+src_install() {
+ local my_prefix="${ED}/usr"
+ emake PREFIX="${my_prefix}" MANDIR="${my_prefix}/share/man/man8" install
+ dodoc CHANGES README.md TODO
+}
diff --git a/dev-util/vmtouch/vmtouch-1.3.0.ebuild b/dev-util/vmtouch/vmtouch-1.3.0.ebuild
new file mode 100644
index 000000000000..e043a354abd7
--- /dev/null
+++ b/dev-util/vmtouch/vmtouch-1.3.0.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit toolchain-funcs
+
+DESCRIPTION="Virtual Memory Toucher, portable file system cache diagnostics and control"
+HOMEPAGE="http://hoytech.com/vmtouch/"
+SRC_URI="https://github.com/hoytech/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+src_compile() {
+ emake CC="$(tc-getCC)"
+}
+
+src_install() {
+ local my_prefix="${ED}/usr"
+ emake PREFIX="${my_prefix}" MANDIR="${my_prefix}/share/man/man8" install
+ dodoc CHANGES README.md TODO
+}
diff --git a/dev-util/vtable-dumper/Manifest b/dev-util/vtable-dumper/Manifest
new file mode 100644
index 000000000000..32ef941b8896
--- /dev/null
+++ b/dev-util/vtable-dumper/Manifest
@@ -0,0 +1,4 @@
+DIST vtable-dumper-1.2.tar.gz 16033 SHA256 6993781b6a00936fc5f76dc0db4c410acb46b6d6e9836ddbe2e3c525c6dd1fd2 SHA512 b1e052b95af1fa557e2e2eb4faae79afd9b7a87c664c546d43ff92de0f118d6f5fa9e792671e546a5c05364af6149b066705f94c2c590dd103e0067004a7543f WHIRLPOOL b7396cc382b2eb3b0695d4b4187d8323dcb74b102a3a50a4aad2c3c82626573f268cd82fd8a264a74e6e2b6964f8c5183bcf82b10096b2c5f86aee118c011089
+EBUILD vtable-dumper-1.2.ebuild 551 SHA256 17e0bf16402eddb494e47f648cf7291fc156d62608388c6b51daa23b33d1f0e6 SHA512 c4d83121a25b48d69e3738b12b350a2f77334cca40670f9b5a93a2a4a3d968cebbe4b807d0d7f4383f80ba7d11b039a346baa755cfda3d41a040aecb587f4471 WHIRLPOOL 78f9dbdc4c6d93ccf349ad5534bf77b500b4ebbaeb4a5fb3515544e1226ebfb7d2c0dced76bf5cbc6a8156a1cbc4619384f0eb316264ab18ea5de6b12ba2e695
+MISC ChangeLog 323 SHA256 39e47563d5bab770288f65d83911174cc71fa2e819a1cf8659f154f36aa3ccfd SHA512 072fa198914f741966df8b14abacf214f445c804410cba7b3f4e0aae458c09e20b2ba874dbf141d7a4462bffd36c3e58345b17cd361e0ce17952e076f4b7f4a4 WHIRLPOOL 71d806c86976139d63cc6a120fc7bce25450304d582a3684965ba1c7e2cd3bf4d067a1a8b2453b1ac05be5329b4d5d84281901240eb262b6cdb21af1faff3260
+MISC metadata.xml 436 SHA256 a9c1a3199fbe0e502d02175563b5c4cc57cc179ce07eb3a502893ad74f39deeb SHA512 e3070f8ddc5ad65ec16e6d8b49b1d71f48a459d5e12cee08d4a1bc12eac903918842bcd4434de4a0a2c77a37be95e3691c8ba94a2cec0f1857665f464b907e55 WHIRLPOOL 532b08c19c2398b12e45615729c9d59fe9fbfd40b7ed1a0cc21227a8aa6d0569602d2691160d762324ceb0614a720e40282afb553ac7a6ad44f01d3e0764c25b
diff --git a/dev-util/vtable-dumper/metadata.xml b/dev-util/vtable-dumper/metadata.xml
new file mode 100644
index 000000000000..fac2ebc49305
--- /dev/null
+++ b/dev-util/vtable-dumper/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>floppym@gentoo.org</email>
+ <name>Mike Gilbert</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>mgorny@gentoo.org</email>
+ <name>Michał Górny</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">lvc/vtable-dumper</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/vtable-dumper/vtable-dumper-1.2.ebuild b/dev-util/vtable-dumper/vtable-dumper-1.2.ebuild
new file mode 100644
index 000000000000..420b8915e24f
--- /dev/null
+++ b/dev-util/vtable-dumper/vtable-dumper-1.2.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit toolchain-funcs
+
+DESCRIPTION="A tool to list content of virtual tables in a shared library"
+HOMEPAGE="https://github.com/lvc/vtable-dumper"
+SRC_URI="https://github.com/lvc/vtable-dumper/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="dev-libs/elfutils:0="
+RDEPEND="${DEPEND}"
+
+src_configure() {
+ tc-export CC
+}
+
+src_install() {
+ emake prefix="${ED%/}/usr" install
+ einstalldocs
+}
diff --git a/dev-util/w32api/Manifest b/dev-util/w32api/Manifest
new file mode 100644
index 000000000000..188075d64173
--- /dev/null
+++ b/dev-util/w32api/Manifest
@@ -0,0 +1,7 @@
+DIST w32api-3.17-2-mingw32-src.tar.lzma 965844 SHA256 8b23391c9cc7f6884c9f6a3c6ad32fbe6530992ca54660d2f2adcef80db53027 SHA512 4fc8f319ab895366fb3757713e2724f8f4c90593687f1ccfdbfa6a52881ddc430167326e782117ae937c7e456e029132b971c3a041889bcfb876a84741475a1f WHIRLPOOL 2c5bc864f967fab73fde3eabdecdae1fad66dd14ffc2c66c69cbe39ba02f31cce94a63c4bf2a05ffe39dcd7bb1f58c372be6293761ff2c9a16ce23ddeec188be
+DIST w32api-4.0.3-1-mingw32-src.tar.lzma 1341804 SHA256 ea0ff65fae99624078f8c42754def4d63a97624779bab73e858683def7bc936f SHA512 9295b7e803b1551dfefbf527e98fa315d60c70f6b63b4565942f7bc3d6032483d5ec4f76265b376fc6776c5ecfd1ad47fd912764c390b0b6917b1ad382250977 WHIRLPOOL f0e6a9a90916f43ac8eddb0a4bd56514c4e598b6bc851364405f420836c6ae892850ffdf2ba80705ae349b20d6aa1370553353ab3df441feb34069b80ce56e2d
+EBUILD w32api-3.17.2.ebuild 1538 SHA256 d019a8f7a8d18b62845e74e6ce332d9f54b5d881a2ab3d80ff01d819be94dd50 SHA512 b800e604bd25daf552391ab5d01d3738c975bb67b3804ef8d0054bfd45d1dddb7432e65314f176a650ba27f69a73efde7be73b847be8336e0a675754c3b6fa84 WHIRLPOOL 7153828a597a9a455d1398b89607896022a8387a8fcf84e4790233d23ac3588c2a8d0b6e71ae3de3c679890aa488803c8fccfa4074f7076241ce8e58c4059ecd
+EBUILD w32api-4.0.3.1.ebuild 1634 SHA256 9b1bacdef4a0a2ca610eea3e047b56a5bcc7678e02bead234cd5da0229c5fb9a SHA512 dc5c1d2f8f3692ad3ab0c56938e29f4e2a984be0be4675a0be8bc0c306741c456a7b9d1a65f0ff6e377b0123d17a1454c2dc320323ff14a68c6da1141205210d WHIRLPOOL 3e2cbcb504662bbd76f184bcd179e54e82efcf95b12ac4adad7c075de0290b32bbc65aa32293632daff6c5d1c95d51563afe4139f76150cc2ff477410998021c
+MISC ChangeLog 2617 SHA256 d6daf3ce2a95971e2ff35c0c5167ca989061d11a619c767f9655b291e4d693b2 SHA512 067d0e06f4e1e3d2eb8b78955457c0d29a0d44d4aff009040532a4c7176d8d8e12bfbfed9d183a4b0cbc19c7ed5e5de52cc9e352eb9c9d37b093942cea8eb9ee WHIRLPOOL ceda35f03bf0affc1f7fd0eb519bf27b0a419528e1d4abdd4d029495bc41181ff37d0cb7d40c5554df84eb0bf585f05bde1ed739034c2419ee2cbc1d36187c87
+MISC ChangeLog-2015 2928 SHA256 44b16b1dafc136a568dd6e2645f49fb67045f82a3a0d5dc54cfb9aa69b7a260d SHA512 8d1a2939d3d8f96133b2ee1640825abe1ed93a3c1e484b5f72ce60fed0e779d73ff9799e06f13d314d51ecdd21da79e83d23bc3f70375942b0b3e016c9a0f891 WHIRLPOOL f9c1514c8eebbdc6be2770448fffb5bd57dee81a4d6bad05e711b07b9d3d0d5ae63086dcda3aa22d5dc66d6cf5c57c221888641190bf85e3ff8c4a4959119729
+MISC metadata.xml 336 SHA256 a0331895152c717fa18ca5b1dcfe6e508c1a658c70f7302ae94b35126eab361b SHA512 c15c4f7fe2796147558f99a89942b216159b291e18dfb02358f0985fef55e7ce166dbd0831ef24938a5bc76377634036932e0ce1526d01c2b07be35cac17cbf9 WHIRLPOOL 1243f7c570849051d8b915f29664c42cb68d91debad0496179187dff896f677e9a6bd560c8d9aa75e3ab8c5254843825c55d4b5b2abc620cc56135a5c8c1ad52
diff --git a/dev-util/w32api/metadata.xml b/dev-util/w32api/metadata.xml
new file mode 100644
index 000000000000..6c377f90be9b
--- /dev/null
+++ b/dev-util/w32api/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="project">
+ <email>toolchain@gentoo.org</email>
+ <name>Gentoo Toolchain Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">mingw</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/w32api/w32api-3.17.2.ebuild b/dev-util/w32api/w32api-3.17.2.ebuild
new file mode 100644
index 000000000000..c04ebdcfad70
--- /dev/null
+++ b/dev-util/w32api/w32api-3.17.2.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+export CBUILD=${CBUILD:-${CHOST}}
+export CTARGET=${CTARGET:-${CHOST}}
+if [[ ${CTARGET} == ${CHOST} ]] ; then
+ if [[ ${CATEGORY} == cross-* ]] ; then
+ export CTARGET=${CATEGORY#cross-}
+ fi
+fi
+
+inherit eutils flag-o-matic
+
+MY_P="${P:0:${#P}-2}-${PV:0-1}-mingw32"
+DESCRIPTION="Free Win32 runtime and import library definitions"
+HOMEPAGE="http://www.mingw.org/"
+# https://sourceforge.net/projects/mingw/files/MinGW/Base/w32api/
+SRC_URI="mirror://sourceforge/mingw/${MY_P}-src.tar.lzma"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 ~ppc ~sparc x86"
+IUSE="crosscompile_opts_headers-only"
+RESTRICT="strip"
+
+DEPEND="app-arch/xz-utils"
+RDEPEND=""
+
+S=${WORKDIR}/${MY_P}
+
+just_headers() {
+ use crosscompile_opts_headers-only && [[ ${CHOST} != ${CTARGET} ]]
+}
+
+pkg_setup() {
+ if [[ ${CBUILD} == ${CHOST} ]] && [[ ${CHOST} == ${CTARGET} ]] ; then
+ die "Invalid configuration; do not emerge this directly"
+ fi
+}
+
+src_compile() {
+ just_headers && return 0
+
+ CHOST=${CTARGET} strip-unsupported-flags
+ econf \
+ --host=${CTARGET} \
+ --prefix=/usr/${CTARGET}/usr
+ emake || die
+}
+
+src_install() {
+ if just_headers ; then
+ insinto /usr/${CTARGET}/usr/include
+ doins -r include/* || die
+ else
+ emake install DESTDIR="${D}" || die
+ env -uRESTRICT CHOST=${CTARGET} prepallstrip
+ dodoc CONTRIBUTIONS ChangeLog README.w32api TODO
+
+ # Make sure diff cross-compilers don't collide #414075
+ mv "${D}"/usr/share/doc/{${PF},${CTARGET}-${PF}} || die
+ fi
+}
diff --git a/dev-util/w32api/w32api-4.0.3.1.ebuild b/dev-util/w32api/w32api-4.0.3.1.ebuild
new file mode 100644
index 000000000000..0d8deb3895a8
--- /dev/null
+++ b/dev-util/w32api/w32api-4.0.3.1.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+
+export CBUILD=${CBUILD:-${CHOST}}
+export CTARGET=${CTARGET:-${CHOST}}
+if [[ ${CTARGET} == ${CHOST} ]] ; then
+ if [[ ${CATEGORY} == cross-* ]] ; then
+ export CTARGET=${CATEGORY#cross-}
+ fi
+fi
+
+inherit eutils flag-o-matic toolchain-funcs
+
+MY_P="${P:0:${#P}-2}-${PV:0-1}-mingw32"
+DESCRIPTION="Free Win32 runtime and import library definitions"
+HOMEPAGE="http://www.mingw.org/"
+# https://sourceforge.net/projects/mingw/files/MinGW/Base/w32api/
+SRC_URI="mirror://sourceforge/mingw/${MY_P}-src.tar.lzma"
+
+LICENSE="BSD"
+SLOT="0"
+# Collides with mingw-runtime-4.x
+#KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE="crosscompile_opts_headers-only"
+RESTRICT="strip"
+
+DEPEND="app-arch/xz-utils"
+RDEPEND=""
+
+S=${WORKDIR}/${MY_P/-m/.m}-src
+
+just_headers() {
+ use crosscompile_opts_headers-only && [[ ${CHOST} != ${CTARGET} ]]
+}
+
+pkg_setup() {
+ if [[ ${CBUILD} == ${CHOST} ]] && [[ ${CHOST} == ${CTARGET} ]] ; then
+ die "Invalid configuration; do not emerge this directly"
+ fi
+}
+
+src_configure() {
+ just_headers && return 0
+
+ CHOST=${CTARGET} strip-unsupported-flags
+ filter-flags -frecord-gcc-switches
+ tc-export AR
+ econf \
+ --host=${CTARGET} \
+ --prefix=/usr/${CTARGET}/usr \
+ --docdir="${EPREFIX}/usr/share/doc/${PF}"
+}
+
+src_install() {
+ if just_headers ; then
+ insinto /usr/${CTARGET}/usr/include
+ doins -r include/*
+ else
+ emake -j1 install DESTDIR="${D}"
+ env -uRESTRICT CHOST=${CTARGET} prepallstrip
+
+ # Make sure diff cross-compilers don't collide #414075
+ mv "${D}"/usr/share/doc/{${PF},${CTARGET}-${PF}} || die
+ fi
+}
diff --git a/dev-util/waf/Manifest b/dev-util/waf/Manifest
new file mode 100644
index 000000000000..3f731861aed6
--- /dev/null
+++ b/dev-util/waf/Manifest
@@ -0,0 +1,5 @@
+DIST waf-1.9.14.tar.bz2 631021 SHA256 02a0e4e942867e987e1214f10341ded95d996123165ec5062c444371cff7c62f SHA512 5b7e556eeb3ceec83e81e9b849786d7921aa06e443aa2fb5f288e3fcef6b05b3a1a6aa4ebcdfd0bd345ea3166980cb926cbea2260a229613bdcb2def86fb5816 WHIRLPOOL 2a6d8253c9c16d6d1adfabb6226996a5ed1393eb128a5f8bdc9838c7e8a805d353b268f590367d43d652a1b524ef838e72021d261476980d60426c5b34ad685b
+DIST waf-1.9.8.tar.bz2 620795 SHA256 d8ec47b85e832e97f32d4f83df3cacfa08dbf142c52ad525ee8e1a70ab658472 SHA512 a86d29d32257ee5b82db28f20ef3056a995c4a47404ee47f216899c76332c6586bde83397db907b51c8d3d38efaa3e2f4befbf8f27d17d1f58e6b0808f070fdc WHIRLPOOL 55bce3d9cb071a564689b6c85036251989849f56295052c35dea514b01f26c5fb442853f7436c2b3b5442481a96b30173eb8372f7c6402e6d400f74bcfbddfa5
+EBUILD waf-1.9.14.ebuild 1009 SHA256 170ae037083c023c881186244eb7958dc50c18789aa936f7e9d4b22525ed97e9 SHA512 d5ba9c1b80a2550cc660e96831a50da9b9b4bffdf27824d05a87925bf9a09d240fb1f74012640b30ac813a3dca8825c1d1cda26a769c053e561b233aeb1b4478 WHIRLPOOL 3b857ebd66ee9531521b1ff9fc5a3fa008ef2bfeca4d5e9bef92ac4984ee3963d462664bcb5c700b005c33c7e4efb45402260dfdff7579bfe0c1c08402306a21
+EBUILD waf-1.9.8.ebuild 1009 SHA256 170ae037083c023c881186244eb7958dc50c18789aa936f7e9d4b22525ed97e9 SHA512 d5ba9c1b80a2550cc660e96831a50da9b9b4bffdf27824d05a87925bf9a09d240fb1f74012640b30ac813a3dca8825c1d1cda26a769c053e561b233aeb1b4478 WHIRLPOOL 3b857ebd66ee9531521b1ff9fc5a3fa008ef2bfeca4d5e9bef92ac4984ee3963d462664bcb5c700b005c33c7e4efb45402260dfdff7579bfe0c1c08402306a21
+MISC metadata.xml 237 SHA256 ffb571839c57797d282263369646d2bba2662601a45f7bb3251bb97f716554a6 SHA512 ae2360aa6b1b00c67e0acea4935c02b64585b9a15e126fec9d5d99637021c542c0a495e5116205f3da287def46fa5b19cb1a7f3042c12c5f7a78d66d92fcb03f WHIRLPOOL 60d6da846c983457e038ea5ba3c0bf48f939c9586610985a14cac9772fd1d45d781a643abc16482f232f3028e44fe99fe1a382deaebf6589602fc244a4460e3f
diff --git a/dev-util/waf/metadata.xml b/dev-util/waf/metadata.xml
new file mode 100644
index 000000000000..a535b8852829
--- /dev/null
+++ b/dev-util/waf/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>xmw@gentoo.org</email>
+<name>Michael Weber</name>
+</maintainer>
+</pkgmetadata>
diff --git a/dev-util/waf/waf-1.9.14.ebuild b/dev-util/waf/waf-1.9.14.ebuild
new file mode 100644
index 000000000000..e37a34205025
--- /dev/null
+++ b/dev-util/waf/waf-1.9.14.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_4 python3_5 python3_6 )
+PYTHON_REQ_USE="threads(+)"
+inherit python-any-r1 toolchain-funcs
+
+DESCRIPTION="piece of software used to help building software projects"
+HOMEPAGE="https://waf.io/"
+SRC_URI="https://waf.io/${P}.tar.bz2"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="examples"
+
+DEPEND="${PYTHON_DEPS}"
+
+DOCS="ChangeLog README.md DEVEL"
+
+src_prepare() {
+ rm -v waf || die
+
+ default
+}
+
+src_configure() {
+ ${EPYTHON} ./waf-light configure
+}
+
+src_compile() {
+ ${EPYTHON} ./waf-light build
+}
+
+src_install() {
+ default
+
+ #point waf binary to waflib dir and strip payload
+ sed -e "/INSTALL=/s:=.*:='${EROOT}usr':" \
+ -e "/REVISION=/s:=.*:='${PR}':" \
+ -e "s:/lib/:/$(get_libdir)/:" \
+ -e "/^#\(==>\|BZ\|<==\)/d" \
+ -i waf || die
+ dobin waf
+
+ insinto /usr/$(get_libdir)/${PN}3-${PV}-${PR}
+ doins -r waflib
+
+ if use examples ; then
+ dodoc -r demos
+ fi
+}
diff --git a/dev-util/waf/waf-1.9.8.ebuild b/dev-util/waf/waf-1.9.8.ebuild
new file mode 100644
index 000000000000..e37a34205025
--- /dev/null
+++ b/dev-util/waf/waf-1.9.8.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_4 python3_5 python3_6 )
+PYTHON_REQ_USE="threads(+)"
+inherit python-any-r1 toolchain-funcs
+
+DESCRIPTION="piece of software used to help building software projects"
+HOMEPAGE="https://waf.io/"
+SRC_URI="https://waf.io/${P}.tar.bz2"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="examples"
+
+DEPEND="${PYTHON_DEPS}"
+
+DOCS="ChangeLog README.md DEVEL"
+
+src_prepare() {
+ rm -v waf || die
+
+ default
+}
+
+src_configure() {
+ ${EPYTHON} ./waf-light configure
+}
+
+src_compile() {
+ ${EPYTHON} ./waf-light build
+}
+
+src_install() {
+ default
+
+ #point waf binary to waflib dir and strip payload
+ sed -e "/INSTALL=/s:=.*:='${EROOT}usr':" \
+ -e "/REVISION=/s:=.*:='${PR}':" \
+ -e "s:/lib/:/$(get_libdir)/:" \
+ -e "/^#\(==>\|BZ\|<==\)/d" \
+ -i waf || die
+ dobin waf
+
+ insinto /usr/$(get_libdir)/${PN}3-${PV}-${PR}
+ doins -r waflib
+
+ if use examples ; then
+ dodoc -r demos
+ fi
+}
diff --git a/dev-util/webstorm/Manifest b/dev-util/webstorm/Manifest
new file mode 100644
index 000000000000..6c810f2f1bf8
--- /dev/null
+++ b/dev-util/webstorm/Manifest
@@ -0,0 +1,8 @@
+DIST WebStorm-10.0.4.tar.gz 130242508 SHA256 f2c6b6fde74513858f204a6fc5d4f39a6b3424edcc1abc435e566ead0929319c SHA512 2523795dc3cc4395549313584e8e597b2782eb2c6ad577d0aae81b72656f00a2cc2f9bbac77f83f9e1f74350aaa762d8b7ba873558a37af316839784e506c6ec WHIRLPOOL a76ad8b92e454e12ce2948c98041a1cbc671848519a3fe329b3f6524b3bc9cb52922755668048b72011f856fadf28386ebd048830558197516029a8594a83d87
+DIST WebStorm-2016.2.2.tar.gz 215535491 SHA256 06af83ee181b37ae0a1108b4b88ae9a8d10f153796f3c59c879a4ead24dc4e58 SHA512 84123bd5e169e87490f3b71f7259b6b13a7885b5a66b912957cd6e869b6f985db0f0a0f3a232436b1894096ec8d74c2b907c4162f2fdd212f96cb0a3d5f41f48 WHIRLPOOL 9a9cb5d88cded6d6472a6c64425e692144d209da1b72f725db7b5f0dd0a5ff4b1fc90c2da659be7a6520fa2056ae90a99c779ce7bfbd0bf713e9323375ea85a1
+DIST WebStorm-2017.2.4.tar.gz 257748171 SHA256 c0aa4f21bdb2bed8a2fe1b1a831ac7ace625695ce2cfc0d3a88ea8ecf572a2b5 SHA512 283339f7757093affde698cfb751f7ced18d54159db7696c9fe6b4d37751e94ad1ca9f0c54db9d5ca256da35ee24454a3b48ced21d6db434c23ec94b023a4d09 WHIRLPOOL 2c223a3c8ef37b64b568934c488ef4afb85e2e7577c3a9305205cf31c542783019f2dc0710bf0560772fe8a280bf91135969b6d0a5f89438316549191848eafd
+EBUILD webstorm-10.0.4.141.1550.ebuild 813 SHA256 c3b365e9bd0f9b1e3f448eda083502458f1dafeba75e4105e5c6eaf6951c9dfb SHA512 6800b2d9cffc552e2bf2813898b5d03a33a8344bbf8c242a4d778f73a9a739be724a5b23980763d237a4f44ea769a9dd80b34097f8fd46fdec5cbbe247dfe8c3 WHIRLPOOL 01b3b83bfd681104a0f24b34a9e310f062edd7eb8e5faaacb69e016eb500493e29ca76e4081a35ac9be41f75daec49274be2c76e9ceb07d709dd3e7645265c4b
+EBUILD webstorm-2016.2.2.162.1628.41.ebuild 813 SHA256 2d8bffab5ec2445cf67b30917f840f29d08a06da9be72091e40ab7f14f596a92 SHA512 a82f4821d479c824947f24f8bcb9d2159c57f9f624f27d4a4de188b05294fd7310e0a847a2d156d4b134eec277234470e314a093e7f25ffb743ce1ca93a83829 WHIRLPOOL 98ec25ad20a6ea803e22b45037b9267c6b8d5919d663dd0140af5517e02d5943309ebd91ff651309b3a329c4fa82f644f7f402eacc55fe906894b7457cbce550
+EBUILD webstorm-2017.2.4.172.4155.35.ebuild 866 SHA256 c542da7e93e7e564579ae0d971a0a7fb0058c494d69aec4f232cdd3f52e0986b SHA512 431ab5070b50d7299948c1c06de6ce2523aa55cbaa6f40b42883bab140e3028ca2069338f738524d5952351bf8b62e5dce52ad07980b7328be12f3e20aa4b3df WHIRLPOOL 9309a02c55c082604886d65d0a49001d1f3753ee34a580605ecce3d9ed3f771314b4055b2b205f161d3012b5af2766a6822dd0746c9e82c751029f845167eff1
+MISC ChangeLog 1079 SHA256 1242b3098545d3f2227c55c586da3d5f42af0b161ccdcf178a744611a9cb79c0 SHA512 f04bcfaa9ea9af77aebe264c161d3afc22412f04f6698b0f810e0ecb08687dcc61765aaa034c0dba4500ef9653ca13f75c745076b5f55f194b3658b47483b388 WHIRLPOOL 8292e899e2b21b5d17de319333666f9f108e8218148138dd22318492532c28d53f76a57b4179414085ae91520eb33a14bc4c5d083af301e0d5ca9616e1002f39
+MISC metadata.xml 353 SHA256 5005d1ea381e697b5763aa86def76668d5ab99f1d3f20f43cfae957bbf47a973 SHA512 141b9620fe7a3839c6fdf2dad646948e413c85c3a9b1ae15aa2582db0af57461f741c038127627873d02c62411262cbbdc7dd21705ea304bc3072ae3491bdcac WHIRLPOOL 68d14dbc7ef37998ebe27366db6443b743a59485e1cf30e722021902dd42542d14b4b306e8ac53e9b0837a942cba6e8e28eb43c5f1f178ae194226ccc3ac5c23
diff --git a/dev-util/webstorm/metadata.xml b/dev-util/webstorm/metadata.xml
new file mode 100644
index 000000000000..1866cf4b1397
--- /dev/null
+++ b/dev-util/webstorm/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-needed -->
+<longdescription lang="en">
+WebStorm is a lightweight yet powerful IDE, perfectly equipped for complex client-side development and server-side development with Node.js
+</longdescription>
+</pkgmetadata>
diff --git a/dev-util/webstorm/webstorm-10.0.4.141.1550.ebuild b/dev-util/webstorm/webstorm-10.0.4.141.1550.ebuild
new file mode 100644
index 000000000000..d281ef919c9f
--- /dev/null
+++ b/dev-util/webstorm/webstorm-10.0.4.141.1550.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils versionator
+
+SLOT="$(get_major_version)"
+MY_PV="$(get_version_component_range 4-5)"
+MY_PN="WebStorm"
+
+DESCRIPTION="JavaScript IDE for client- and server-side development with Node.js"
+HOMEPAGE="http://www.jetbrains.com/webstorm"
+SRC_URI="http://download.jetbrains.com/${PN}/${MY_PN}-$(get_version_component_range 1-3).tar.gz"
+
+LICENSE="WebStorm WebStorm_Academic WebStorm_Classroom WebStorm_OpenSource WebStorm_personal"
+IUSE=""
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND=">=virtual/jdk-1.7"
+S="${WORKDIR}/${MY_PN}-${MY_PV}"
+
+src_install() {
+ local dir="/opt/${PN}"
+
+ insinto "${dir}"
+ doins -r .
+ fperms 755 ${dir}/bin/{${PN}.sh,fsnotifier{,64}}
+
+ make_wrapper "${PN}" "${dir}/bin/${PN}.sh"
+}
diff --git a/dev-util/webstorm/webstorm-2016.2.2.162.1628.41.ebuild b/dev-util/webstorm/webstorm-2016.2.2.162.1628.41.ebuild
new file mode 100644
index 000000000000..c01948942f74
--- /dev/null
+++ b/dev-util/webstorm/webstorm-2016.2.2.162.1628.41.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils versionator
+
+SLOT="$(get_major_version)"
+MY_PV="$(get_version_component_range 4-6)"
+MY_PN="WebStorm"
+
+DESCRIPTION="JavaScript IDE for client- and server-side development with Node.js"
+HOMEPAGE="http://www.jetbrains.com/webstorm"
+SRC_URI="http://download.jetbrains.com/${PN}/${MY_PN}-$(get_version_component_range 1-3).tar.gz"
+
+LICENSE="WebStorm WebStorm_Academic WebStorm_Classroom WebStorm_OpenSource WebStorm_personal"
+IUSE=""
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND=">=virtual/jdk-1.7"
+S="${WORKDIR}/${MY_PN}-${MY_PV}"
+
+src_install() {
+ local dir="/opt/${PN}"
+
+ insinto "${dir}"
+ doins -r .
+ fperms 755 ${dir}/bin/{${PN}.sh,fsnotifier{,64}}
+
+ make_wrapper "${PN}" "${dir}/bin/${PN}.sh"
+}
diff --git a/dev-util/webstorm/webstorm-2017.2.4.172.4155.35.ebuild b/dev-util/webstorm/webstorm-2017.2.4.172.4155.35.ebuild
new file mode 100644
index 000000000000..cd605cc309aa
--- /dev/null
+++ b/dev-util/webstorm/webstorm-2017.2.4.172.4155.35.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+EAPI=6
+
+inherit eutils versionator
+
+DESCRIPTION="JavaScript IDE for client- and server-side development with Node.js"
+HOMEPAGE="http://www.jetbrains.com/webstorm"
+SRC_URI="http://download.jetbrains.com/${PN}/WebStorm-$(get_version_component_range 1-3).tar.gz"
+
+LICENSE="WebStorm WebStorm_Academic WebStorm_Classroom WebStorm_OpenSource WebStorm_personal"
+SLOT="$(get_major_version)"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=">=virtual/jdk-1.7"
+
+S="${WORKDIR}/WebStorm-$(get_version_component_range 4-6)"
+
+src_install() {
+ insinto "/opt/${PN}"
+ doins -r .
+ fperms 755 /opt/${PN}/bin/{${PN}.sh,fsnotifier{,64}}
+
+ make_wrapper "${PN}" "/opt/${PN}/bin/${PN}.sh"
+ newicon "bin/${PN}.svg" "${PN}.svg"
+ make_desktop_entry "${PN}" "${PN}" "${PN}" "Development;IDE;"
+}
diff --git a/dev-util/weka/Manifest b/dev-util/weka/Manifest
new file mode 100644
index 000000000000..505b6ec90c98
--- /dev/null
+++ b/dev-util/weka/Manifest
@@ -0,0 +1,9 @@
+AUX weka-3.7.13-build.xml.patch 576 SHA256 c30d30fbc9ab4270f3b204e9bd5582df1d294ddbc3fb05c7e4979bf7ca4e2379 SHA512 7d187da1ebd6f2e774ff8441d742eed37c9e804da2b9f6df905c02ceea2a5fdc2c210b7a195b052e7b4eeb062225b8bed315ad38ac9323adf8a3cf11fc29e143 WHIRLPOOL 786321daa795c192358209ab1303124af36aa0244a8224756428ec74dbd57b79a4ce2481123b80e65f9ac378af9b13694eb1a477cd2501b03a6848fc9927c1f3
+AUX weka-3.8.0-build.xml.patch 568 SHA256 d3c0f329bc61f046239f0e850e48af227800a19bb3e09908a0262cee10fadaa4 SHA512 8b1cd5ff6867bf5d43ec1b95d98288f1d035f37878c8fd99f33bb6389dd24e29ba8112f718c02b25cfbae6ed67f02c22643af39cae06e3a2d58081600a918c39 WHIRLPOOL b1507bfef26c0ceeeacc84820fe352c338e26917e34bcc6fae9991667bb72d492281c5465f289dd0a69a6541fa0906df1869de1f7eae843dd17a8405fddc3846
+DIST weka-3-7-13.zip 42159458 SHA256 8d856d52be9964da580e7d396deecb03b83016f5b218c3159a40d2d4df38ecb5 SHA512 aa15b857d3b3b35720468206e42a157cc8c63d6bf3f4fdda93845da7e4e4ffca0201b2b92056486a2245681f7e0052dc75959194be954d84b391e812bd49ce5e WHIRLPOOL 2fb4f56de6321d6edd96752c57a5a90eabbabd0e7be6c2ec3e2c2517dc92df6a74d9c27b50524c537035f8c313a09db71fc9ba0a0c8f19352c15138d7f88047e
+DIST weka-3-8-0.zip 50550487 SHA256 2586298688059a025e2810b1ffc73f4fb3cf81ebf2183d8d19b0763d33857f61 SHA512 7e38646a59e3d3d5fa314d269747ed7c526605253339e20f24bae55684a6cd77eeefb267b05825d8de44ae0e827873ba11ce6759b1d78a1a1975d100fd910b33 WHIRLPOOL 127566483c9ed3764ef6e8eaebc6d6b5613b766b2e8c0438db0b27213bd837b14618d7d06026d9041be5f78e91dbc7840b3c2e0a57192f001ecd50b7cdb38c2c
+EBUILD weka-3.7.13.ebuild 1468 SHA256 6de2c52c5774abdc56ca4ccd763a89a24155a3aa31262f5b33f219c1f6d268fe SHA512 2f746f8e8874497a66650d5561412ee92996fd97adb9282a423a34452a261845a9a2d9d6370f01cbd7d6af3c188ac885eb1210058e4722eefa02f87adc54e733 WHIRLPOOL 883021a6b2e80373cbce27b3f54f8b1f3d2d943ec21be31dd8f0f73f7a93920d1e4fa77d1cb2f70316394ffda496f3d24eaf0d635dc04bda5f74e73c28b5e76a
+EBUILD weka-3.8.0.ebuild 1776 SHA256 143c2bed2a73a2f1c71287c3d133d8a8f10ee4cf8318bd79791b5205fdbc0b34 SHA512 f684824f58f527210c932662124d3ab3e3ff77398c4e592bf5e238a3caf57329d8536155a1a54e0efe14a9def8306325ef524ee5d00c1703d6bf1dc7448d80b1 WHIRLPOOL 271a2a2af49a23ff3ad6c593446131e19e7c520a20678c1a2ddf6c8f2b50e6d4a946d0f55e86e9d08a6ab53b282987dc98638d979c894c67be2c591983386e61
+MISC ChangeLog 4629 SHA256 bfce5deb1b5a3a7951704619ff0b94a41f680d0c409d8d94036a6c9172060497 SHA512 f148d1c210e168e545a745ba5fd688264d49a81c3bc6c8f4047aafb9a5ecc1e554b681d4d57eedfd92660873bce2d427edc66a10b83b8cd41aabf9136f7d1e3e WHIRLPOOL 250aaf27bf77ec13f7e00128b1c25b179456a1f9cb62d2e5c9a1f0ee755f1f9526894a08d2251e09c7f65282dfcf37295986b1686513c55b081e54a62acd1484
+MISC ChangeLog-2015 6749 SHA256 ab1c743292a749d110d2f0fe552d11012aad93343096b45aea8f7c21b9966e75 SHA512 8f01f457c41649639070cf5bd61ae210b165d0d5209f68d94ed0222fbdb40a0af873d1884911ba96697ae44868b3b5357007ea7403b0b577340ae69d7fa6b706 WHIRLPOOL 0e9d9d5601ae103a97b2b6ac2e59756aaf099573d071ae2719eed69ba740c945fb9cdd0a0db8eabde72ee1db12d255964d321835fcd725249d7dfe1178c491e3
+MISC metadata.xml 397 SHA256 0ddddb8b6f11f9de9e4dc9c1d93f4b344a887e9a2b35b83bf7872d0cb3e976be SHA512 7864802fa60e29a0505d15ab5d384c7b3aecefb72ac14a58aa3e150da1fe5c870c7e019aa5ab38a16bf2b1484717e7432c8c3d7d9515dd650becfc748cbef084 WHIRLPOOL aaf58a0e3ce9c09f35ecb08fe01091f8bf795f1f2cd89cce0e7ebc3b24a1a930445fdd6e30216b70769a58cf3c3cbcd49177562ace9f9fc37dac22a043562d45
diff --git a/dev-util/weka/files/weka-3.7.13-build.xml.patch b/dev-util/weka/files/weka-3.7.13-build.xml.patch
new file mode 100644
index 000000000000..05da33df23d6
--- /dev/null
+++ b/dev-util/weka/files/weka-3.7.13-build.xml.patch
@@ -0,0 +1,16 @@
+--- a/build.xml 2016-04-11 16:45:18.592385569 +0200
++++ b/build.xml 2016-04-11 16:48:01.756389582 +0200
+@@ -603,13 +603,6 @@
+ <include name="**/*.default"/>
+ </fileset>
+ </copy>
+- <rmic base="${build}/classes"
+- classname="weka.experiment.RemoteEngine"/>
+- <unzip src="${lib}/java-cup.jar" dest="${build}/classes">
+- <patternset>
+- <include name="java_cup/runtime/**/*"/>
+- </patternset>
+- </unzip>
+ <unzip src="${lib}/packageManager.jar" dest="${build}/classes">
+ <patternset>
+ <include name="org/**/*"/>
diff --git a/dev-util/weka/files/weka-3.8.0-build.xml.patch b/dev-util/weka/files/weka-3.8.0-build.xml.patch
new file mode 100644
index 000000000000..ca8264dc2291
--- /dev/null
+++ b/dev-util/weka/files/weka-3.8.0-build.xml.patch
@@ -0,0 +1,16 @@
+--- a/build.xml 2016-05-15 10:56:04.011409745 +0200
++++ b/build.xml 2016-05-15 10:57:43.971411711 +0200
+@@ -618,13 +618,6 @@
+ <include name="**/*.default"/>
+ </fileset>
+ </copy>
+- <rmic base="${build}/classes"
+- classname="weka.experiment.RemoteEngine"/>
+- <unzip src="${lib}/java-cup.jar" dest="${build}/classes">
+- <patternset>
+- <include name="java_cup/runtime/**/*"/>
+- </patternset>
+- </unzip>
+ <unzip src="${lib}/bounce.jar" dest="${build}/classes">
+ <patternset>
+ <include name="org/**/*"/>
diff --git a/dev-util/weka/metadata.xml b/dev-util/weka/metadata.xml
new file mode 100644
index 000000000000..21b778d163c4
--- /dev/null
+++ b/dev-util/weka/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>amynka@gentoo.org</email>
+ </maintainer>
+ <maintainer type="project">
+ <email>java@gentoo.org</email>
+ <name>Java</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">weka</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/weka/weka-3.7.13.ebuild b/dev-util/weka/weka-3.7.13.ebuild
new file mode 100644
index 000000000000..7f39cee56198
--- /dev/null
+++ b/dev-util/weka/weka-3.7.13.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+JAVA_PKG_IUSE="source"
+
+inherit java-pkg-2 java-ant-2 versionator
+
+MY_P="${PN}-$(replace_all_version_separators '-')"
+DESCRIPTION="A Java data mining package"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.zip"
+HOMEPAGE="http://www.cs.waikato.ac.nz/ml/weka/"
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="amd64 x86"
+DEPEND=">=virtual/jdk-1.6
+ app-arch/unzip
+ >=dev-java/javacup-0.11a_beta20060608:0"
+RDEPEND=">=virtual/jre-1.6
+ >=dev-java/javacup-0.11a_beta20060608:0"
+IUSE=""
+
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=("${FILESDIR}"/${P}-build.xml.patch)
+
+EANT_BUILD_TARGET="exejar"
+EANT_DOC_TARGET="docs"
+JAVA_ANT_IGNORE_SYSTEM_CLASSES="true"
+
+weka_get_max_memory() {
+ if use amd64; then
+ echo 512m
+ else
+ echo 256m
+ fi
+}
+
+src_prepare() {
+ unzip -qq "${PN}-src.jar" -d . || die "Failed to unpack the source"
+ rm -v weka.jar || die
+ rm -rf doc || die
+ java-pkg_jar-from --into lib javacup
+
+ sed -i -e "s/256m/$(weka_get_max_memory)/g" build.xml || die
+ default
+}
+
+src_install() {
+ java-pkg_dojar dist/${PN}.jar
+ java-pkg_dolauncher weka --main "${PN}.gui.GUIChooser"
+
+ # Really need a virtual to list all available drivers and pull the ones
+ # instaled
+ java-pkg_register-optional-dependency hsqldb,jdbc-mysql,mckoi-1
+
+ use source && java-pkg_dosrc src/main/java/weka/
+
+ dodoc README || die
+
+ dodir /usr/share/${PN}/data/
+ insinto /usr/share/${PN}/data/
+ doins data/*
+}
diff --git a/dev-util/weka/weka-3.8.0.ebuild b/dev-util/weka/weka-3.8.0.ebuild
new file mode 100644
index 000000000000..134f1ad611ba
--- /dev/null
+++ b/dev-util/weka/weka-3.8.0.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+JAVA_PKG_IUSE="source"
+
+inherit java-pkg-2 java-ant-2 versionator
+
+MY_P="${PN}-$(replace_all_version_separators '-')"
+DESCRIPTION="A Java data mining package"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.zip"
+HOMEPAGE="http://www.cs.waikato.ac.nz/ml/weka/"
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~x86"
+DEPEND=">=virtual/jdk-1.7
+ app-arch/unzip
+ >=dev-java/javacup-0.11a_beta20060608:0"
+RDEPEND=">=virtual/jre-1.7
+ >=dev-java/javacup-0.11a_beta20060608:0"
+IUSE=""
+
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=("${FILESDIR}"/${P}-build.xml.patch)
+
+EANT_BUILD_TARGET="exejar"
+EANT_DOC_TARGET="docs"
+JAVA_ANT_IGNORE_SYSTEM_CLASSES="true"
+
+weka_get_max_memory() {
+ if use amd64; then
+ echo 512m
+ else
+ echo 256m
+ fi
+}
+
+src_prepare() {
+ unzip -qq "${PN}-src.jar" -d . || die "Failed to unpack the source"
+ rm -v weka.jar || die
+ rm -rf doc || die
+ java-pkg_jar-from --into lib javacup
+
+ sed -i -e "s/256m/$(weka_get_max_memory)/g" build.xml || die
+ default
+}
+
+src_install() {
+ java-pkg_dojar dist/${PN}.jar
+ java-pkg_dolauncher weka --main "${PN}.gui.GUIChooser"
+
+ # Really need a virtual to list all available drivers and pull the ones
+ # instaled
+ java-pkg_register-optional-dependency hsqldb,jdbc-mysql,mckoi-1
+
+ use source && java-pkg_dosrc src/main/java/weka/
+
+ dodoc README
+
+ dodir /usr/share/${PN}/data/
+ insinto /usr/share/${PN}/data/
+ doins data/*
+}
+
+pkg_postinst() {
+ elog "If you are upgrading from weka 3.7 to later"
+ elog "and your package manager does not start please delete"
+ elog "file installedPackageCache.ser from packages folder"
+ elog "in wekafiles located in your user home."
+ elog
+ elog "rm \${HOME}/wekafiles/packages/installedPackageCache.ser"
+}
diff --git a/dev-util/wiggle/Manifest b/dev-util/wiggle/Manifest
new file mode 100644
index 000000000000..bfbd5dc3271d
--- /dev/null
+++ b/dev-util/wiggle/Manifest
@@ -0,0 +1,8 @@
+AUX wiggle-1.0-cflags.patch 576 SHA256 dafd0e8ed07b3d07beb3a741313951c0485fc1ff697224e45e78087be862bd78 SHA512 a6bbcbe8307212416ed66f17e5b5dfe2ef2c369f15351623ff1c47c8364da463aeb05241379de28b554a749ce8a66f6f3c0898c8607eabc44797fd2c36bf17d5 WHIRLPOOL 2d3f7394baabaeb27fccf9a5749a8ff04944dbe066a44502f6186216152cec9c314f9760ef93d493fd3cf8e0fd8552880105c052dc048f6dec18bf37f160c633
+DIST wiggle-0.9.tar.gz 809756 SHA256 fe3dcf05a2cda07f42db2099ae8407acdb4d58bb9cfdc58c72395b7ae4a4e6b5 SHA512 2e3a4977704231f3bd6aa96ffaba8bc733acde425773b86a9649312676b44360c5b85cb48bf944cd383d8e4d0a541d88755f23be7d7a8884213f68a6320c62d9 WHIRLPOOL 95a12f73458abdb999681de7af08c407d9f7c4762c71287eb6e80e38a322459c6e1767f2bec72199cf7d8cb33912981b9fd48fbe95957f854b43e4c148c04c14
+DIST wiggle-1.0.tar.gz 868216 SHA256 44c97b2d47a109c709cdd4181d9ba941fee50dbb64448018b91d4a2fffe69cf2 SHA512 e9bd6e794ba0cff70db96a648c53aa21b427967758375b843fccf409dd17faf59468c11bafb1e0a7af8bfa657551da8bc1903b9ccf8def1ed9acc84f50c7e0b3 WHIRLPOOL 26674ff2ac280ee2f6db916518c85799fda5d71bb0e056e414c82576a75a28db35460a0ca76a42854dd3a6b8e30a16b2b8f20649d4da604d2d3838297552e6f8
+EBUILD wiggle-0.9-r1.ebuild 1690 SHA256 17147437fb78071dd5c98841a7dead18b8fcf311e4cabf33e58bd00028d51b9b SHA512 e46d1f87710d9dba5fa70cf2a8778e36505ef2985ab9b9dd8f091474d9e25f45bd10055e0613bcd69124930e46f6d72fb36a1743db179b51849aee2cae805b4e WHIRLPOOL a09586b9e5cae7c084b94b0d4f2490f9692ca71bf0264c69457a063e34deca9242f3e172080416716991044073fe78081eb814812e9d9fc7fa5445715f6b4e2f
+EBUILD wiggle-1.0.ebuild 1465 SHA256 664bf7cfedfe9b45e812076c86caafcab633394203823dc0390f3fb377c3a3d6 SHA512 c0f51a7caf75b2534ead9e5c9da254434874ea4be217cf4f8517943cb195a9762132e5afe19dc5641d6a9e52ad1c48fd9659e0c95b58d560cda471467c63e30b WHIRLPOOL b2d7056d352c0382750c6aa315d540dbe1950de9d80c70a64c663594fe1da6d60b8373051463a57b294ff1a96c4d7215bfb463845a22b525b9406336bc5d8680
+MISC ChangeLog 3629 SHA256 917225c836200197df0579f43f5b00f8cdb19fd53fbd6910955d8bd2e7905a30 SHA512 b8d622628dcfaad45ca5d6e6da3535f7844631ea758a05df62ab72a2afe615b3eaa693fde05512d0e7b5f7d6aa2339ad31c6a7418640f478c161474fb14cdaa5 WHIRLPOOL 751714e445d6128ce3e2b042fb9259f0ad93f1d90c5a9c2769073e83058e1a82e591a9b1ca303bb3f021d8578f361c343d3bd66b58257f5d0218d0e7ba4be66f
+MISC ChangeLog-2015 3743 SHA256 9b2905a0b92afdb424d83ba9c638b719da9da5f159fced65ad9de44decdd4761 SHA512 b0dc3dfdcc35c61e2c2b48591e7a78cee328742b68a78b2d8bff1c885ef0edc8f71e4a2d5534d10cd3fb22b3d13d9b3a1da7cb8aa00359cefc7299a056607620 WHIRLPOOL b5f478d31a56638c992eaddc6aa7c846c36d2d5cff28124cbdaae69cc83577f713eb503852eed3d7b5c7d608d886cc3a23baf6a1252055a997791bba81ed4d9f
+MISC metadata.xml 256 SHA256 b81904dc627fa9bc6bf21b08552700b9a5fa50dda9373a3ccdc52186aa0a27c2 SHA512 574345bb2730bbc2d0190a03b16703d10441ccd589623c5e8bdddf84d7ce86226da7e079d7b2135e4c724d0813973c551143cdd0f525a58efdd37716dd83edfd WHIRLPOOL b8bf8d610f5442c2d7f2848cde768454a982126618b58927dead107d740105a028c6d953d4b3243d85d6ae127fc05eeb67626aba2ee007010fe051b9c91b6df3
diff --git a/dev-util/wiggle/files/wiggle-1.0-cflags.patch b/dev-util/wiggle/files/wiggle-1.0-cflags.patch
new file mode 100644
index 000000000000..ce5defb7bb89
--- /dev/null
+++ b/dev-util/wiggle/files/wiggle-1.0-cflags.patch
@@ -0,0 +1,22 @@
+Respect user CFLAGS and use pkg-config to get ncurses libs.
+
+--- wiggle-1.0/Makefile
++++ wiggle-1.0/Makefile
+@@ -3,7 +3,7 @@
+ #OptDbg=-O3
+ #OptDbg=-O3 -march=pentium2
+ OptDbg=-ggdb
+-CFLAGS=$(OptDbg) -I. -Wall -Werror -Wstrict-prototypes -Wextra -Wno-unused-parameter
++CFLAGS += -I. -Wall -Wstrict-prototypes -Wextra -Wno-unused-parameter
+
+ # STRIP = -s
+ INSTALL = /usr/bin/install
+@@ -12,7 +12,7 @@
+ MANDIR = /usr/share/man
+ MAN1DIR = $(MANDIR)/man1
+ MAN5DIR = $(MANDIR)/man5
+-LDLIBS = -lncurses
++LDLIBS = $(shell pkg-config --libs ncurses)
+
+ all: wiggle wiggle.man test
+
diff --git a/dev-util/wiggle/metadata.xml b/dev-util/wiggle/metadata.xml
new file mode 100644
index 000000000000..483ee9fe5899
--- /dev/null
+++ b/dev-util/wiggle/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>robbat2@gentoo.org</email>
+ <name>Robin H. Johnson</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-util/wiggle/wiggle-0.9-r1.ebuild b/dev-util/wiggle/wiggle-0.9-r1.ebuild
new file mode 100644
index 000000000000..65b4804e13c1
--- /dev/null
+++ b/dev-util/wiggle/wiggle-0.9-r1.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils fixheadtails flag-o-matic toolchain-funcs
+
+DESCRIPTION="program for applying patches that patch cannot apply because of conflicting changes"
+HOMEPAGE="http://neil.brown.name/wiggle http://neil.brown.name/git?p=wiggle"
+SRC_URI="http://neil.brown.name/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux"
+IUSE="test"
+
+# The 'p' tool does support bitkeeper, but I'm against just dumping it in here
+# due to it's size. I've explictly listed every other dependancy here due to
+# the nature of the shell program 'p'
+RDEPEND="
+ dev-util/diffstat
+ dev-util/patchutils
+ sys-apps/diffutils
+ sys-apps/findutils
+ virtual/awk
+ sys-apps/grep
+ sys-apps/less
+ sys-apps/sed
+ sys-apps/coreutils
+ sys-devel/patch
+ sys-libs/ncurses:0=
+ "
+DEPEND="${RDEPEND}
+ sys-apps/groff
+ test? ( sys-process/time )"
+
+src_prepare() {
+ # Fix the reference to the help file so `p help' works
+ sed -i "s:\$0.help:${EPREFIX}/usr/share/wiggle/p.help:" p || die "sed failed on p"
+
+ # Don't add Neil Brown's default sign off line to every patch
+ sed -i '/$CERT/,+4s,^,#,' p || die "sed failed on p"
+
+ # Use prefixed time binary
+ sed -i "s:/usr/bin/time:${EPREFIX}/usr/bin/time:" dotest || die "sed failed on dotest"
+
+ sed \
+ -e "s:-lncurses:$($(tc-getPKG_CONFIG) --libs ncurses):g" \
+ -i Makefile || die
+
+ ht_fix_file p
+
+ append-cppflags -I.
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" CFLAGS="${CFLAGS} -Wall" ${PN}
+}
+
+src_install() {
+ dobin wiggle p
+ doman wiggle.1
+ dodoc ANNOUNCE INSTALL TODO DOC/diff.ps notes
+ insinto /usr/share/wiggle
+ doins p.help
+}
diff --git a/dev-util/wiggle/wiggle-1.0.ebuild b/dev-util/wiggle/wiggle-1.0.ebuild
new file mode 100644
index 000000000000..2a949ba271dd
--- /dev/null
+++ b/dev-util/wiggle/wiggle-1.0.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit fixheadtails toolchain-funcs
+
+DESCRIPTION="tool for applying patches that patch cannot apply because of conflicting changes"
+HOMEPAGE="http://neil.brown.name/wiggle http://neil.brown.name/git?p=wiggle"
+SRC_URI="http://neil.brown.name/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
+IUSE="test"
+
+# The 'p' tool does support bitkeeper, but I'm against just dumping it in here
+# due to it's size. I've explictly listed every other dependancy here due to
+# the nature of the shell program 'p'
+RDEPEND="
+ dev-util/diffstat
+ dev-util/patchutils
+ sys-apps/diffutils
+ sys-apps/findutils
+ virtual/awk
+ sys-apps/grep
+ sys-apps/less
+ sys-apps/sed
+ sys-apps/coreutils
+ sys-devel/patch
+ sys-libs/ncurses:0=
+ "
+DEPEND="${RDEPEND}
+ sys-apps/groff
+ virtual/pkgconfig
+ test? ( sys-process/time )"
+
+PATCHES=( "${FILESDIR}"/${P}-cflags.patch )
+
+src_prepare() {
+ default
+
+ # Fix the reference to the help file so `p help' works
+ sed -i "s:\$0.help:${EPREFIX}/usr/share/wiggle/p.help:" p || die "sed failed on p"
+
+ ht_fix_file p
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" ${PN}
+}
+
+src_test() {
+ # Use prefixed time binary
+ emake TIME_CMD="${EPREFIX}/usr/bin/time" test
+}
+
+src_install() {
+ dobin wiggle p
+ doman wiggle.1
+ dodoc ANNOUNCE INSTALL TODO DOC/Algorithm notes
+ insinto /usr/share/wiggle
+ doins p.help
+}
diff --git a/dev-util/wsta/Manifest b/dev-util/wsta/Manifest
new file mode 100644
index 000000000000..0fcf545b3dad
--- /dev/null
+++ b/dev-util/wsta/Manifest
@@ -0,0 +1,52 @@
+DIST argparse-0.2.1.crate 18969 SHA256 37bb99f5e39ee8b23b6e227f5b8f024207e8616f44aa4b8c76ecd828011667ef SHA512 f12aea4ddc0d619d40194f8d3db3c4d952521d1dfad6bc21b5b7cf8db91c30f70c5259bd6a0cf40d521e4d0cbaf3e4d59ae0bd40554772c79a4b200ebcfa73fe WHIRLPOOL 84ea81a44af8490c5aa135d51f026475e276df2d0d90d7d15aa6a5f924bea2b0a70788c8db3533a92c284eeb76d2c84b5d5172380444aaab485b2cdf90434585
+DIST bitflags-0.7.0.crate 10851 SHA256 aad18937a628ec6abcd26d1489012cc0e18c21798210f491af69ded9b881106d SHA512 fdfe472c26e5486d1a3f1bfe5a27d26678781235c6e14b49bdb75388359cb78841f38d794fc4557548581a80a10b715d8840182c9ca3316049984a6b9f35b3c0 WHIRLPOOL 60551486cd6688c78ecd0ac40ca39b1f3d75537dd96ec32e9882e205bfe2062de939a129777d66f8c269c8a71e2f2aa240e015c0b3bfa51adbad478024e296d4
+DIST byteorder-0.5.3.crate 8643 SHA256 0fc10e8cc6b2580fda3f36eb6dc5316657f812a3df879a44a66fc9f0fdbc4855 SHA512 c6134458bc5b05529cef261c519b1d1e515fde37143690cf365dfb7a65d1fa91f1689bec1d1d04dff7f6417ed1eb2e70aef40c78400d7f1bc90c12eac085496b WHIRLPOOL 94628caf86b15255e65924062665df7ef46f05f09a4ba622cf4c6261881e5cf92968dcbd126464cee0cf1bdc5d1bc9f3a08dfb3e4abf02899b56ecc4ca82cc67
+DIST cfg-if-0.1.0.crate 2758 SHA256 de1e760d7b6535af4241fca8bd8adf68e2e7edacc6b29f5d399050c5e48cf88c SHA512 d2f10ae39a7fe712cd9d228e3b5a96448acaeab3b92d1b97229d54e5201237b9434ceecb1f38f1ebc1f678da5cfc33aa46c810f422f68a21aa341666c27572fb WHIRLPOOL 8a57a78a8e4a72c3321cf8ac97c2b50f18eb4ed35b2e3c22ca06b5f8031eadccce015237ac846ce78ecf9414632b75a04b168993439d1469eb928d4d05c843e5
+DIST config-0.1.3.crate 29564 SHA256 90acbe23921c3b07226a6679befa9e906be58a5c7f9691b2f646e064949f23cc SHA512 c2acf4ab9976b11bd99d8b3b7c0f8bddcf16b91ff4979aad8db79733b2ea8073f5e96d8333238eb1e2418ce07605311907aed59920b5a578a7efa23fe53ca641 WHIRLPOOL 497eb280acfb4ff3bf93bde605b7127bf9b1ef96f9cc7cf58d86622ad18082c1444c9ddb54fd5d2c04e66f26c432d49ed8ed11515b70f0d5f482d6c534c7ab7f
+DIST cookie-0.2.5.crate 12969 SHA256 0e3d6405328b6edb412158b3b7710e2634e23f3614b9bb1c412df7952489a626 SHA512 41705087506d3bf7d8de839245eabc032c79c712e6b1fda111139afd92b267c0e2aa61013020b8b5a3a679aa779861fa2ef9397b9bbb3c5705ba2585ea02afaf WHIRLPOOL 6124a6c0c2d88ae648f3788158eced4b58b19d38fa23a2c5eb87b2eacb8b66d457b478440e0fb2240bd821ffcfcb374f1d3b573e726914c64823fb186c0d6bbe
+DIST gcc-0.3.40.crate 25010 SHA256 872db9e59486ef2b14f8e8c10e9ef02de2bccef6363d7f34835dedb386b3d950 SHA512 8facf1c0f85642047386ae41f7dad525007ef8a3e898e6f21985200fa564bac54af9c97f2340c094d05b04bb8741352f71583ae8c2186e6abcb2ec8286e5dbe6 WHIRLPOOL 0de06c41785288614b4cf084756b214628948f59c32ef163fd114ea30b74114ec8054d8a23c3755e708b6ca11ca937a66cdbcbcecbba890ab57fa5ffe0af54cf
+DIST gdi32-sys-0.2.0.crate 7643 SHA256 0912515a8ff24ba900422ecda800b52f4016a56251922d397c576bf92c690518 SHA512 009f51899ecf9c8a6c688c3b087c294482c9d4c09b9c2b7fd5d949ed269bed9dea7ab5ff95ba9524c3402e4299d944205187f99ce0d0300a1646ff021030f19c WHIRLPOOL f7a8005023ee0cf45af76580acb0960680694a3481c8ee2a6d78278f438fe35a245672854720984c7a1c6b81152bd1f705a78f4c554aced34ad81f882c0305b6
+DIST hpack-0.2.0.crate 26932 SHA256 3d2da7d3a34cf6406d9d700111b8eafafe9a251de41ae71d8052748259343b58 SHA512 d77b4329d2bed10fc00b49e5f9228a03c6f95e7bab5fabe02a6f88e3bde8bffed34c2f12c11fbe6283697f473543cdff37dbda10b159185c7a13a47142e168ff WHIRLPOOL fe723f8dd4e1c909aafebf2685cfb9a1ba8971e75456b5f28467d7d20872eaf4c8211517bcf3f53c74a790d06b51023a720a861a7c47a76f9682b73f6adbeace
+DIST httparse-1.2.1.crate 14239 SHA256 a6e7a63e511f9edffbab707141fbb8707d1a3098615fb2adbd5769cdfcc9b17d SHA512 ac74673ed9420bbf483e920a256e3625b5c3da8a7668de7aead5fa14cfc0334910c838356af711ddefedb32edf86aae68c2d72850dfce345eb3f05927c37cc9f WHIRLPOOL 43997f99101bffccf714414ff2c3ac32e2f89142db440a82517445ca08abc15a60195e2adc3a5cf133e30ff58973da00c1d39536a731c47a68edd2beeb08a046
+DIST hyper-0.9.14.crate 133777 SHA256 bcb3fc65554155980167fb821d05c7c66177f92464976c0b676a19d9e03387a7 SHA512 86f7f69105a1c0083061265bf689478241b9e854c11182cf5ffb40b30a7e1d59762f57eda1f614391957f11aec44536070c5092439550ae488d98217c59b23df WHIRLPOOL 3bc11b0127bce305cedaa086ed8d0d81c729621c7819fa71d3ce74bf6dc377757da006695bfbc1ac3ec11d00f111f2934b5cbf512e53620c7d0e343c14796a92
+DIST idna-0.1.0.crate 234027 SHA256 1053236e00ce4f668aeca4a769a09b3bf5a682d802abd6f3cb39374f6b162c11 SHA512 a3bdcd7934c8f2823e8be7b467a829334ab53c71e225f2ae73b379db6bf47c8c8fb28d30900eb18c7ce79e9d9780d45babff3d7e77c20640001e6f6ad93b2424 WHIRLPOOL 9bfe69ec718606736b4844a6884872dfb2cf608b3a21494016abbcb44d08400c489a8f51f142b6892501073d3d67b634d6ab593c0282032f5be3ccbbc517db0f
+DIST kernel32-sys-0.2.2.crate 24537 SHA256 7507624b29483431c0ba2d82aece8ca6cdba9382bff4ddd0f7490560c056098d SHA512 682bc7c629aefd035966a2873518fd60719121cca7d63d89d6c97ff5306f24d8b5055a3c91b4eedaec22b1d5dd3fb8b48ff7341a05bbd72d86e06c422dab473b WHIRLPOOL 036baa6611f13d76692a5c032e7e8e8b5a82e12bdf13d5a2cdcf4d33020b003c941331f0c8aa774e7f7cc7b36ad7403bb2cbdecb739d7645cff66aeecd59b09f
+DIST language-tags-0.2.2.crate 12754 SHA256 a91d884b6667cd606bb5a69aa0c99ba811a115fc68915e7056ec08a46e93199a SHA512 54a6c7d1bc985860c194c842d7b5ec731d0e06f9c77ead8cb0156bd34addd957d0bbf8b6a9dfc6bef5ea31e39f84ab447d1ccec3c178a6c18c4a222a51e1abc6 WHIRLPOOL 6d6e8d78e9c790f97e3e68b79fadb00335944f7115b71a205ce5636bd0509cb09f957eee2dc5a78f86b3afe4446391ec7aee6c1f99cc9760146620e594173167
+DIST lazy_static-0.2.2.crate 5026 SHA256 6abe0ee2e758cd6bc8a2cd56726359007748fbf4128da998b65d0b70f881e19b SHA512 d151405da0ff2305cb9556325c783c3214f57f7d905a9de9e41aabfcfa3921a402957b71e48b307feff4c34372e04075864d3eef3b44098df3f8015264eead09 WHIRLPOOL b228bfb5f3a7e65d6d68e6f1c74138c615fcb8c0412c90472db2888fe55bd98b1a8e5c5ba0e77b10f72a351c182743faca943194fc6780f93a0c6d0b4ae54196
+DIST libc-0.2.18.crate 114209 SHA256 a51822fc847e7a8101514d1d44e354ba2ffa7d4c194dcab48870740e327cac70 SHA512 d99e0db6fcc6538ee88109c2857a9e24641326c399f604d9704b9fc9e1d3e79eec8dfb10291499b1900a9a40f0d3d00f50d4709808683032f10fc3bdddebc2bf WHIRLPOOL d1a0129f1c752560f041700a547ba674484c9fef63f55e31001465ce9d3c83ee38e48c04663741dffdd865878ae4ad26b04e6718baf5f22e393e1b888d6907b0
+DIST libressl-pnacl-sys-2.1.6.crate 2697179 SHA256 cbc058951ab6a3ef35ca16462d7642c4867e6403520811f28537a4e2f2db3e71 SHA512 b4e315900e88d4e00b99c76388658f1b1e6761dc4b9de72804dc9ab946a2fb1bcdb8711de0c99a123f3180143c55625cafbec9db69837d2d5e1a79b2df87d983 WHIRLPOOL 7b43eb64694c187ef3c915406f3a1b016b6441a1c8814653564487fd5d14afb6b840b6ce2a49d2ab4918e9be1f129814390c8b07d64ddf1d7795838e3519c833
+DIST log-0.3.6.crate 16110 SHA256 ab83497bf8bf4ed2a74259c1c802351fcd67a65baa86394b6ba73c36f4838054 SHA512 f2e5526a2613f70301a607cbc79213a946a6039f85473f9de28ceb2f3b464be61a584f34ca6381e077d8bf6ac751c93011087d1723649c0d7722281f1a2b7174 WHIRLPOOL 18ef70829fae28a19e545479f4fd6f181d5dbd67ea17dadfa5b8ecdb8437c04f07036de5c2d5421bec4f783ba9b6390e833d624506bdbe99d1b0c47624082bab
+DIST matches-0.1.4.crate 1530 SHA256 efd7622e3022e1a6eaa602c4cea8912254e5582c9c692e9167714182244801b1 SHA512 a0248296a155fd3132150dcd95d3e51b62cf7b99a8530f0c2ea34455a224613bd7a2d1803fbbe1627aedf826e82e746495df319b62f1189e361c9fa1cd8a380e WHIRLPOOL 06386045c0bc87da223f0590c01225b4b811c9921a3107cbd924fd0caca33d53f5278b7378438c9951f5ba037f533e05ef00a6b056f417d5d0118c4a7174fb42
+DIST mime-0.2.2.crate 6391 SHA256 b5c93a4bd787ddc6e7833c519b73a50883deb5863d76d9b71eb8216fb7f94e66 SHA512 4e214b0314e0a5863bf359f15cc47fa80e4e69c852b89b8d839825cc926488382f209cd3fdcbd4aa71e8514c5537578f4c12b678f97276fbdb059af51f5d053e WHIRLPOOL 94d4a3eaf6e1b56e55a8577416760380afca117e8dfc24da777f28fc4aba83334bbdfd71e45889222f44f9abd8bbc6410c14afbbf4dbd0efd78081f186e7b471
+DIST net2-0.2.26.crate 18489 SHA256 5edf9cb6be97212423aed9413dd4729d62b370b5e1c571750e882cebbbc1e3e2 SHA512 60c6c3b0b9dbfd844c7b52565bf3ed4977394be6396c19aa872d9377bf1961ae3e2cdf87da3822a81d78d453369d740b0477dc48ee62834bd6be4ead6cc92fb7 WHIRLPOOL e0272f280970e9f140fafffaf4883eacfb85d4d371b4f1ff14fd5e668d10b14d051d3b588cbebe9166c327cea2dd0163503ebe4244ba393bd4d0864bbc0ccac9
+DIST nom-1.0.1.crate 46800 SHA256 fb98ecbcf8158734a40bd61c81766a3bf583949d37d089d2fe800c886d84f0c8 SHA512 906a6ac89caa0530c18d8ef1ecad3b1b6a21364c539254fb45f369f05f55dc2d8af470d80b528c0158a72e664b2113e10e69d2db5ce155ca776fa88fefc3240c WHIRLPOOL ee45e8dbffc73cc2207e2c7231d36f4d8e60e35ad6075252c02c5dba0be4ae800b62b83466833e0b6b4ebf54cb9e2f056919eb81e1848a7125132ead8119a3fc
+DIST num_cpus-1.2.0.crate 6463 SHA256 55aabf4e2d6271a2e4e4c0f2ea1f5b07cc589cc1a9e9213013b54a76678ca4f3 SHA512 f72842d71324638b7be2fe2f40f917cd792d83707480bf4d1f8c7f896689297c5e6b521a1643d4a77e1c2e91e18a3106bf065104592e2fcf0b2d06a587e4dc35 WHIRLPOOL e7e569eba36137f5187dba7a1493aaa38be00ac336cb43a2678e6e81d097314b9febb5676f2c4d3aef5894215dad2608bd7e6466d7153746049b612184a706f1
+DIST openssl-0.7.14.crate 63824 SHA256 c4117b6244aac42ed0150a6019b4d953d28247c5dd6ae6f46ae469b5f2318733 SHA512 e36943d907d1846a619250de6db1b3e48ca729a34bcb21ee7f47ab1ee5535682ba8b8f73e60e3321e6ae321114891c9e98bdf0af1685175c1fa342b84e9ce33d WHIRLPOOL 94540fec4fe3b6e1fefac6f37737238195f33cc96f48d5bde0925e4135c6e6143701ca89be033e3bb637acfd599fce08b43288697c33364f4e339ec658e54d0f
+DIST openssl-sys-0.7.17.crate 12097 SHA256 89c47ee94c352eea9ddaf8e364be7f978a3bb6d66d73176572484238dd5a5c3f SHA512 4ba167b098bc7b30d1d839e4e5a11267c2d54221fc7c6b1de03875f501fa3de6b71110e4af52d6e7d71b5342969a58fb4961050744c19bfb995ae7b74736de31 WHIRLPOOL 03d63b9095696f87cacd55f4e6056fc0537bbd2d47bf25c0983942c22380d15891679d5dd7429a2c811d77d614829cdeaab4001ae506f63f6569c83b88b1250e
+DIST openssl-sys-extras-0.7.14.crate 3871 SHA256 11c5e1dba7d3d03d80f045bf0d60111dc69213b67651e7c889527a3badabb9fa SHA512 3fdbb09fff2e75cbb2a7e8e279930010df0ca478376afc15c9b2e15259ee7167ac7d59c36c209f95a17b284b42352d4527302ba1118ecd70295afa84422269f8 WHIRLPOOL 5332014495ec97645aedbecd750e318797722108e4e8075a2ebbb4aca9552e861c2d2320b5e6e148108c2828c86d94ff865450d0137c28ce817b6da683a0945b
+DIST openssl-verify-0.1.0.crate 19367 SHA256 3ed86cce894f6b0ed4572e21eb34026f1dc8869cb9ee3869029131bc8c3feb2d SHA512 e5ea4c3201dfae719dc5f021d86cb868a4c7e818fd131ea31b3229b41c57eb63352c14f75e7eeff44e803ac87e0170a4eaa7203182d6a33d07fcbca344561eed WHIRLPOOL 6166c547671db2162fd85737b8b65ccc45f2a6f5dd62fc524a2550e84823daa7083a155e0640f7c81515d8daaa73d882ae8f5bc7b4caa3f37f21fff730faee65
+DIST pkg-config-0.3.8.crate 10814 SHA256 8cee804ecc7eaf201a4a207241472cc870e825206f6c031e3ee2a72fa425f2fa SHA512 a58102ea0c6063c53e45e2f5005888fcac7a8e27dceeae4fae8d672ed0690f062386fe175c968b17c127b622b80fd319448faf9fe8ba3422e24f6fa17e8ccb77 WHIRLPOOL b8921e822910523910fb1e9437dedecf55f640bec605f96cade50783f58ace3f8931d76f5a573b3c0ebd5f4134268d17eb7dcff134accf88a880b9064e67680e
+DIST pnacl-build-helper-1.4.10.crate 5470 SHA256 61c9231d31aea845007443d62fcbb58bb6949ab9c18081ee1e09920e0cf1118b SHA512 c170589b379378a4f33ee1ae40de6f649d573e9c9288ad9603a958c9dedf04f09b268539e922a91c060f40374bb697f190fde055ea057de57bfae2308b512707 WHIRLPOOL 9d2da27d66ddc14f31e4815f6ff5b7daa099b37d23bef73d4c3edef4da2b9eb322c646d1acd404db29f4eb9a3c1382fe0f15f0e034af6138cd030f6f8f3f9f12
+DIST rand-0.3.15.crate 55312 SHA256 022e0636ec2519ddae48154b028864bdce4eaf7d35226ab8e65c611be97b189d SHA512 4c812b1f742adf94fe45c806fd66a360a2490e474db6cc1d13acf4101fd63072429f1b50aa84b51cc742c1624a871a588769f4c12faa775f6f275a028fe96633 WHIRLPOOL 069746a66bf09e20e8fa435c6f462f7c19468480adc42bb4802450eed93db38d4e530e647a4a0b6444ca3b15fc3cc2f470f9649b15c026cbcdfd2a44d491343c
+DIST rustc-serialize-0.3.22.crate 45545 SHA256 237546c689f20bb44980270c73c3b9edd0891c1be49cc1274406134a66d3957b SHA512 833649dc82e0a568eee051a37856983aadb3a33ca5d20c02e6ef057c7fad802c19d3131cc7108b33b098a964a2492e43d796f36b600fe3df4c93c76c9abb219c WHIRLPOOL 19dd0ac1dc26294d472410cf7a8f70f550937143c5d2ef89f89d22871345db0e44b0c5149197097ef63733ea8d166bfd922cade4d31bde49c3b5bd1a205377df
+DIST rustc_version-0.1.7.crate 8816 SHA256 c5f5376ea5e30ce23c03eb77cbe4962b988deead10910c372b226388b594c084 SHA512 f7ceb913f93444bf98ff8113beb96fbd013ecd6c0f31c49aeb738f418f2e5a958c54afcce6e5d017d66a2b47e07fee032aa07b0aa748cd3be67e672cf48f2b48 WHIRLPOOL dcb1a492794962200df883c53b0b9a058a2068b1ed8e0defa0bb824c545581c922ab4b32380bed2b873c449e490376ec131bf22273cf567c9f186f9edc4eae40
+DIST semver-0.1.20.crate 15876 SHA256 d4f410fedcf71af0345d7607d246e7ad15faaadd49d240ee3b24e5dc21a820ac SHA512 d24401aa4a1e12472c799fd9d2f50f5965e4d2d4a5eccbd244a3f817797fd58cb073b933d45415a1a8d71084deebe04c2277c435da7f359e510c52133bdaa08d WHIRLPOOL 7c3ba0fe8b278f1648b4833bc4d5725dbcf7262159f564a676919d39c45454c6cf31fe939d65de44e04b25e4ecfd12f78efef99960f4c01ee8d1a96e5fdace7e
+DIST solicit-0.4.4.crate 61955 SHA256 172382bac9424588d7840732b250faeeef88942e37b6e35317dce98cafdd75b2 SHA512 46ebf883d8c162747bc1b477209a746d28085325097cbfeced93c52cdc5edc3b7c98b3e0b4770b554ed1dc7189eb02b9d7d7c2e3f5ad785cb208f8b21744f908 WHIRLPOOL 27d5c7e7fc1148c5510013b7023cb4d7937f7b5cd69cee752b04480b20819d666b0686efe0bad6d652493a9463e5ed432e933c7d6341ed5ad64e1c1dedbe4ab5
+DIST tempdir-0.3.5.crate 10605 SHA256 87974a6f5c1dfb344d733055601650059a3363de2a6104819293baff662132d6 SHA512 5ef3cb15064fc51ab2b371f8a48694205ad831fdcd11ff0fd6be85708a8ee955c82c3cbf926360fabc2cac91528a1db90f8425090bb361fa192c8ce9b1e1f0ab WHIRLPOOL f3e3e70e9f0f5d9eb38e0b33b5f58f480d321ee5feb8bf682f7a6b80b433a3740594393f3d5c13d7dcb1f733dfa31fec338b321955f2b631ec4c4dacb56c23b4
+DIST time-0.1.35.crate 27419 SHA256 3c7ec6d62a20df54e07ab3b78b9a3932972f4b7981de295563686849eb3989af SHA512 2681e38885273109b9e274b033b9d4a9f88d5c49b8d5d1872bb75ccb8a7e6c368e4580534f6b76d7edebc5680314e6dceb6ed087b10d5f2f5a6271fa2ba699a1 WHIRLPOOL 3cf3f0e5de5552992907d747aabcc5811b49085470a18d923609dbb15c01f0eec028766cb3f0f23a09b197ac0809fbda15bbe8490f16ca380b79d85591c07f0c
+DIST traitobject-0.0.1.crate 1389 SHA256 07eaeb7689bb7fca7ce15628319635758eda769fed481ecfe6686ddef2600616 SHA512 acf10ffb1d47ad9182fe981b021818724c7de2aab3cc40edd608a98409d24b181e3e2333b034d96e87454438ca6951738ec976ef449fcc36958f9ade38ea2eac WHIRLPOOL 1f32aed2c7bd985baf56e1342a87f0a70d5b998817c8888930b99ff3f09de2dc15f7c80b527cbeef033995522c36b9993b67f03c358d978db87330661e6257f8
+DIST typeable-0.1.2.crate 901 SHA256 1410f6f91f21d1612654e7cc69193b0334f909dcf2c790c4826254fbb86f8887 SHA512 336083ea6c8cc64fce1cf14443b1afa955a71302cc0a2023e3c52aeadbf3832c59aa8b8ae0c87d3062658cb7c98e9f79dfac9db7f5831642075ae8f9c0bbebc9 WHIRLPOOL f7b26d7f720e3afc7b3ea1639358146d921fb291c04cd3fd82b57bdd935c280c2ff60a7c027fd9b629228df5b7f79b1bc7da4256033cce0e2d423b65886ef2ef
+DIST unicase-1.4.0.crate 3385 SHA256 13a5906ca2b98c799f4b1ab4557b76367ebd6ae5ef14930ec841c74aed5f3764 SHA512 d5b0c005d81c587fc90e9c5bbb8421575cd14ed74c512ce17d7ebeb5a538bde9ac5bc6e8a96b080de03f13271a97a83aaef21fd98552703dd7d24f8a2ed065ac WHIRLPOOL c99bf77018f462e86d6f33cc95e8c37710e0e34e3bd7c6cd8f5ff6d6583b5d82661e4b2115b607a8d011e619ea248fdab13d2cad3c5274f7270c87b0e52bd036
+DIST unicode-bidi-0.2.3.crate 1744003 SHA256 c1f7ceb96afdfeedee42bade65a0d585a6a0106f681b6749c8ff4daa8df30b3f SHA512 fb067746b4788c7110bc2687850dc11183c7e596453b42c0c4764c59c1686faf4d03a52b6c147c6578d88b8a2f3f1257d88010874b6ff0bb942b41e055c00a08 WHIRLPOOL cea3be7073b65971b303213f2eec72035c80b65bc306231e2af067ec58cfab3ce2d2a1b38a2e4a5a537a94e7458573b1cc7cc8b44aa3b62a2595ffc532343b11
+DIST unicode-normalization-0.1.2.crate 612931 SHA256 26643a2f83bac55f1976fb716c10234485f9202dcd65cfbdf9da49867b271172 SHA512 b6dc4316a875de59ee00f89ac0e9b255d0111dc2e2e45395ed726282502ab7b6cfcd56acff7f409b97a2f36d5278e16936359791be6bc8fba1213ca6c8a888df WHIRLPOOL 89b477db1efd9ff153140c485cce0d4c0457ccf30fa8ad765fe14a27e94f8506521b64dbbee7b300da2786e139738583ce255b78192534d63aac9d2fd833cc92
+DIST url-1.2.4.crate 69521 SHA256 f024e241a55f5c88401595adc1d4af0c9649e91da82d0e190fe55950231ae575 SHA512 4108c59476ae35be6ca8018f81106f2981cb0be235a92d79182f15c40f5a4147383b3a3261979cac1db587b4a419ad50207f54d754765dc3b03d0f9e99dafe5f WHIRLPOOL 146df13f8a5a1c6ecce16388c41b8d25ea18a1887a36d9d12f1ee46038c567fe8f411f90356819c6dc13a7a4154d9b5a70fb1b51560ed231f303d71370a77966
+DIST user32-sys-0.2.0.crate 10624 SHA256 4ef4711d107b21b410a3a974b1204d9accc8b10dad75d8324b5d755de1617d47 SHA512 75fa43621acff70425ca40a132a25fc67923526c895c51edb6b49ef507d1d461383e1d92b5dbb5c5aee9207cc76b9a9e43d27efa0b65476bc5ae0c122a2dcc19 WHIRLPOOL 38379a094f27223281e0c0d300a552ab4bac3b03e3f12ccf4d22c092e19b2b1478cd67ea1a5000015b19679b3cbc0af352724c7413aba0b92dfb6197e04ac936
+DIST websocket-0.17.1.crate 30977 SHA256 bb4a1a6ea5ed0367f32eb3d94dcc58859ef4294b5f75ba983dbf56ac314af45d SHA512 7d2493531ee89fc95cbe31a0f523ab3814480bba27174c80bdee13fa9321c434080186e7f6e0adb9818e97f88d42c07cf170a65842848c054d9deb3649397417 WHIRLPOOL faa7f0e328e1cba91899c2d898b14bec8994f7053d174d8474f5f3066965b345f84829d51c8039e866774119714f8fcc195c5a1fedbb2354e67fa6a7b5b01adc
+DIST winapi-0.2.8.crate 455145 SHA256 167dc9d6949a9b857f3451275e911c3f44255842c1f7a76f33c55103a909087a SHA512 115e6f027cdd4a56f77ca24f4ab249d2a6cac1e1f955c826a9b6ee05db4861790a533f5e674aebbb540370fff52ed41618c2cd7c906e73200e92df213109cebe WHIRLPOOL 3dce71a6927320e3882ba60a24630a9ba8d123b73d8da6b9330e422580af9d9b0a96748d7368767e3712185877ddec6978b924d40428341c4de19b76ed375af4
+DIST winapi-build-0.1.1.crate 669 SHA256 2d315eee3b34aca4797b2da6b13ed88266e6d612562a0c46390af8299fc699bc SHA512 8b0a239e205a5368892f41c870a8a7ea16e3468c364b03382bef7fa3a2e7159b09c07661e95b1227578f6d72c14879daa4444b28c51ae20ef15d985d59ca5a77 WHIRLPOOL 036080513776fe806cc9dd68bbf5b797776b98ca9fdceaa4bd77c87c66d2e5bd0eec8b0e7f0100dab8f2ced754da058f67e651002c786b4992c2be416a5d52ff
+DIST ws2_32-sys-0.2.1.crate 4697 SHA256 d59cefebd0c892fa2dd6de581e937301d8552cb44489cdff035c6187cb63fa5e SHA512 18356861fc595efe7d0180afb8ce7649da35a4f9ba456271d2068679ab258a861af32a2e016e241fbfbf5f6ef0eb33127b26eabfc11428af39506538faa4821f WHIRLPOOL fd144081dc48c18ca407c1af08411d3aecf99cec42d27a3b7825d16f91f15be96ab66b79c62083520fae6988af76dfc20fe028416f84cfb5a0e1de9bfa4ba107
+DIST wsta-0.5.0.tar.gz 43058 SHA256 97d277faf0a423910c74e1036df724f16362839196c56d0986de7db15d6ba629 SHA512 6d1b5aa65f70d78e47cad91d84ada9129076fb9714e2add173f965503d8c12829702f4ef29592015e7e06f126f7518199430f1d2f076cdff640c05db5c42b130 WHIRLPOOL 1238175ad47d1927794ef0204cba9abfceb59f618ab7c343d602ea1513086d82761820ff830ab122914c1e6be4d905b1e9a99adb7c83e1e5a45a31237c786176
+DIST xdg-2.0.0.crate 12301 SHA256 77b831a5ba77110f438f0ac5583aafeb087f70432998ba6b7dcb1d32185db453 SHA512 9acf7c2210148227000ad837551344366650f5f05eeebf3d69da73bf215e1f66fddcb21c57371598db85d8b669e6f337c5eeff9650e2c7ce9b75cd133f9a3a4a WHIRLPOOL 1eccd0ef18fa360aa4d8a14a6f0763f8af39cdc926b32a01a690b21bdef65d68079c35a1ab68c23c1faccb20ed8ca4ad96b4b8240e3d460fa015edbfa1cb785f
+EBUILD wsta-0.5.0.ebuild 1463 SHA256 5512aad30cc7bf7a74f52faa313bc9f24ff8635d47bc00453d194221f4772de0 SHA512 74a2793cfd3504cd4cf6b136fef2bfd0b774cd77e59604f1e3ee8150f930e6de6e2cfe2545469c82a8577d7bb064525f353edd49a6f2491d09f780a76b09f19d WHIRLPOOL 40476294748a945ad28e9e312371062c0d41fbf4ea9789739053378d4722c5600a5f23ac9764020245d27a5599638d4a63e1d8f06cd5aef0084a5580c8cbc5ed
+MISC ChangeLog 491 SHA256 f17149f02d34666c8aa897dac2f019d8cd0b9b5697813269ecedac7b207b28c4 SHA512 bdb138f5fb5785d8941bbea14a93065d2b2ecaf1a6ac9a84ebfce7447c17a3c5d4df38d976ab983a8cda3d4fb8c1590d5eec3915a8247a226ddde63bef695e7b WHIRLPOOL cc8e74103e78e0c05a1711a55601cad32531005da2b19e8b44726e8a912a913c3a20e786934f7fb92712be4325649a5d045684a0a454771022ab7b94446eddc9
+MISC metadata.xml 696 SHA256 ea067f299834385fa803ee54b00fe2d738e50f95040673cebbff94ee9687a208 SHA512 660fa12550676a342b4e650964959bafb511d00bc6ccfc51981e6695034cb78de347b58ff49e96bc353f9a682b87c191573f1d5cf6d4d494e437fc09b6ea613c WHIRLPOOL 8969efbce39b1cf766646ae6b8f9819178a793c1cedcfcdb3faf786cce32adb9323b50048801dada413a105c8af2e2d4f0796ed3a4469d94c482e94af479f001
diff --git a/dev-util/wsta/metadata.xml b/dev-util/wsta/metadata.xml
new file mode 100644
index 000000000000..04683970c888
--- /dev/null
+++ b/dev-util/wsta/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-needed -->
+ <upstream>
+ <remote-id type="github">esphen/wsta</remote-id>
+ </upstream>
+ <longdescription lang="en">
+ wsta is a CLI tool written in rust for interfacing with WebSockets. wsta has
+ the philosophy of being an easy tool to learn and thus gets out of your way
+ to let you work your UNIX magic directly on the WebSocket traffic. The way
+ wsta does this is to be as pipe-friendly as possible, letting you chain it
+ into complex pipelines or bash scripts as you see fit, or just keep it simple
+ and use it as is.
+ </longdescription>
+</pkgmetadata>
diff --git a/dev-util/wsta/wsta-0.5.0.ebuild b/dev-util/wsta/wsta-0.5.0.ebuild
new file mode 100644
index 000000000000..ad36c325bcc6
--- /dev/null
+++ b/dev-util/wsta/wsta-0.5.0.ebuild
@@ -0,0 +1,87 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+CRATES="
+argparse-0.2.1
+bitflags-0.7.0
+byteorder-0.5.3
+cfg-if-0.1.0
+config-0.1.3
+cookie-0.2.5
+gcc-0.3.40
+gdi32-sys-0.2.0
+hpack-0.2.0
+httparse-1.2.1
+hyper-0.9.14
+idna-0.1.0
+kernel32-sys-0.2.2
+language-tags-0.2.2
+lazy_static-0.2.2
+libc-0.2.18
+libressl-pnacl-sys-2.1.6
+log-0.3.6
+matches-0.1.4
+mime-0.2.2
+net2-0.2.26
+nom-1.0.1
+num_cpus-1.2.0
+openssl-0.7.14
+openssl-sys-0.7.17
+openssl-sys-extras-0.7.14
+openssl-verify-0.1.0
+pkg-config-0.3.8
+pnacl-build-helper-1.4.10
+rand-0.3.15
+rustc-serialize-0.3.22
+rustc_version-0.1.7
+semver-0.1.20
+solicit-0.4.4
+tempdir-0.3.5
+time-0.1.35
+traitobject-0.0.1
+typeable-0.1.2
+unicase-1.4.0
+unicode-bidi-0.2.3
+unicode-normalization-0.1.2
+url-1.2.4
+user32-sys-0.2.0
+websocket-0.17.1
+winapi-0.2.8
+winapi-build-0.1.1
+ws2_32-sys-0.2.1
+xdg-2.0.0
+"
+
+inherit cargo
+
+DESCRIPTION="A CLI development tool for WebSocket APIs"
+HOMEPAGE="https://github.com/esphen/wsta/"
+SRC_URI="https://github.com/esphen/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz
+ $(cargo_crate_uris ${CRATES})
+ "
+
+SLOT="0"
+LICENSE="GPL-3"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="dev-libs/openssl:*"
+DEPEND="${RDEPEND}
+ dev-util/cargo
+ "
+
+src_test() {
+ debug-print-function ${FUNCNAME} "$0"
+
+ export CARGO_HOME="${ECARGO_HOME}"
+
+ cargo test --release || die "Tests failed"
+}
+
+src_install() {
+ cargo_src_install || die "Installation failed"
+
+ einstalldocs
+ doman ${PN}.1
+}
diff --git a/dev-util/wstool/Manifest b/dev-util/wstool/Manifest
new file mode 100644
index 000000000000..c5ee6cf3d1d4
--- /dev/null
+++ b/dev-util/wstool/Manifest
@@ -0,0 +1,6 @@
+AUX prefix2.patch 1031 SHA256 6a20d84bf6bce6a56e9221ae179a57bdc0b705a0badc4f2148b5bef295c73e60 SHA512 747b973ec84a31213de84fc15f40d4d9dce854a32602b3dffaac088992578a07f48047358bf7c38b6ca597c251232f48432404836cb2304f5423db4ddf2f9345 WHIRLPOOL ca0bec5536de06c4f9bc868afb9ccc3d2ccd219079cb07a2cb84645912473e40bc1a8da7037ffceddbdcb61ab67aa076202a7993c0c66c63861f3220b02cb688
+DIST wstool-0.1.13.tar.gz 75188 SHA256 97db71105728b3bed1828c85becfb1216b95f8b2776d94e280ad1875f2196160 SHA512 4d54f78ca044d31d927de1c3387536d0447ece77672c555845adf54e47f07adb67e6e9c866bc2719aae468aeeb26c900b3784e0ec7cf014c8118e841a92dca14 WHIRLPOOL 3ef703a5eafc2ac8f80b76fdb91de789921c89fa15b3f8457979e84dafc86a9d2d957d053e430dc75784d85912008617bd1c2418432e60873bb199af561e845b
+EBUILD wstool-0.1.13.ebuild 1455 SHA256 6a987a5b0a131e3c20fadfda7349d08f14c39fce9e30f06fe26e7c4871ebf51a SHA512 b92eaabaf6197e82d72ec20faf6af57a36912192a13576e5bcd52c88c99cb08c75f6cf5958b64d3c931c28201c1f15371c93c83529093d6d49c9883af878c5cf WHIRLPOOL d9344ba1853b506073bf82431e455607fc294e4acc903840d231bd04aa813970f00f16245ded0b83a8af5c20c21219e645f64d2e12f69a46a46bed3d0b6c9d98
+EBUILD wstool-9999.ebuild 1455 SHA256 6a987a5b0a131e3c20fadfda7349d08f14c39fce9e30f06fe26e7c4871ebf51a SHA512 b92eaabaf6197e82d72ec20faf6af57a36912192a13576e5bcd52c88c99cb08c75f6cf5958b64d3c931c28201c1f15371c93c83529093d6d49c9883af878c5cf WHIRLPOOL d9344ba1853b506073bf82431e455607fc294e4acc903840d231bd04aa813970f00f16245ded0b83a8af5c20c21219e645f64d2e12f69a46a46bed3d0b6c9d98
+MISC ChangeLog 2354 SHA256 2d939f5224ecb8c52e8343b3cb44e19a95a4676cec248193d0292675b3284371 SHA512 d20e0f9019b2713f88116819175171f7bbfddde0e1f92d437586839751230482b2fbcd65a55f8b9b0b3f230f3e3c6336084f77817b8e3f1bc74e71e3b52b86ba WHIRLPOOL 69207e236b43601e3d726ec76f903ec6bf8ac4039602f5fef6ea4e9656deb0120bea8349e24f6fbce12ce4f8e0f95405ff35de4c088e2474266887e70e14fdb2
+MISC metadata.xml 329 SHA256 1651f6e2c507421d71e90852d8e60dca21d711863e6394519938d0ad264bac45 SHA512 7bedf1430c3a2e5a8c98701ef48ce3a97ac59bebe3d42e19da193480c97ef0b2020916c7582f4083ebbf361b5c66b17ad1bfa7889e8aa62d3c945ba8dcf5b62f WHIRLPOOL 8aa9a793f15450def2a6148543d024e61b04a214742e782db0264908d5739423342bbc7ea574671593c7ccdaef33bb106b1c9396c274c6db0a017149984314e7
diff --git a/dev-util/wstool/files/prefix2.patch b/dev-util/wstool/files/prefix2.patch
new file mode 100644
index 000000000000..934443f98707
--- /dev/null
+++ b/dev-util/wstool/files/prefix2.patch
@@ -0,0 +1,26 @@
+Index: wstool-0.1.13/setup.py
+===================================================================
+--- wstool-0.1.13.orig/setup.py
++++ wstool-0.1.13/setup.py
+@@ -26,18 +26,11 @@ def _resolve_prefix(prefix, type):
+ # issue: https://github.com/vcstools/wstool/issues/81
+ osx_system_prefix = '/System/Library/Frameworks/Python.framework/Versions'
+ if type == 'man':
+- if prefix == '/usr':
+- return '/usr/share'
+- if sys.prefix.startswith(osx_system_prefix):
+- return '/usr/local/share'
++ return os.path.join(prefix, 'share')
+ elif type == 'bash_comp':
+- if prefix == '/usr':
+- return '/'
+- if sys.prefix.startswith(osx_system_prefix):
+- return '/usr/local'
++ return os.path.join(prefix, '../')
+ elif type == 'zsh_comp':
+- if sys.prefix.startswith(osx_system_prefix):
+- return '/usr/local'
++ return os.path.join(prefix, '../')
+ else:
+ raise ValueError('not supported type')
+ return prefix
diff --git a/dev-util/wstool/metadata.xml b/dev-util/wstool/metadata.xml
new file mode 100644
index 000000000000..8df7d893c82b
--- /dev/null
+++ b/dev-util/wstool/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="project">
+ <email>ros@gentoo.org</email>
+ <name>Gentoo ROS Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">vcstools/wstool</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/wstool/wstool-0.1.13.ebuild b/dev-util/wstool/wstool-0.1.13.ebuild
new file mode 100644
index 000000000000..68bf771bb166
--- /dev/null
+++ b/dev-util/wstool/wstool-0.1.13.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python{2_7,3_4,3_5} )
+
+SCM=""
+if [ "${PV#9999}" != "${PV}" ] ; then
+ SCM="git-r3"
+ EGIT_REPO_URI="https://github.com/vcstools/wstool"
+fi
+
+inherit ${SCM} distutils-r1
+
+DESCRIPTION="Commands to manage several local SCM repositories for ROS"
+HOMEPAGE="http://wiki.ros.org/wstool"
+if [ "${PV#9999}" != "${PV}" ] ; then
+ SRC_URI=""
+ KEYWORDS=""
+else
+ SRC_URI="http://download.ros.org/downloads/${PN}/${P}.tar.gz
+ https://github.com/vcstools/wstool/archive/${PV}.tar.gz -> ${P}.tar.gz
+ "
+ KEYWORDS="~amd64 ~arm"
+fi
+
+LICENSE="BSD"
+SLOT="0"
+IUSE="test"
+
+RDEPEND="
+ dev-python/pyyaml[${PYTHON_USEDEP}]
+ >=dev-python/vcstools-0.1.38[${PYTHON_USEDEP}]
+"
+DEPEND="${RDEPEND}
+ dev-python/sphinx
+ test? (
+ dev-python/nose[${PYTHON_USEDEP}]
+ dev-python/coverage[${PYTHON_USEDEP}]
+ dev-vcs/git
+ dev-vcs/bzr
+ dev-vcs/mercurial
+ dev-vcs/subversion
+ )
+"
+
+PATCHES=( "${FILESDIR}/prefix2.patch" )
+DISTUTILS_IN_SOURCE_BUILD="yes"
+
+python_test() {
+ # From travis.yml
+ # Set git config to silence some stuff in the tests
+ git config --global user.email "foo@example.com"
+ git config --global user.name "Foo Bar"
+ # Set the hg user
+ echo -e "[ui]\nusername = Your Name <your@mail.com>" >> ~/.hgrc
+ # Set the bzr user
+ bzr whoami "Your Name <name@example.com>"
+ # command to run tests
+ nosetests --with-coverage --cover-package=wstool || die
+}
diff --git a/dev-util/wstool/wstool-9999.ebuild b/dev-util/wstool/wstool-9999.ebuild
new file mode 100644
index 000000000000..68bf771bb166
--- /dev/null
+++ b/dev-util/wstool/wstool-9999.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python{2_7,3_4,3_5} )
+
+SCM=""
+if [ "${PV#9999}" != "${PV}" ] ; then
+ SCM="git-r3"
+ EGIT_REPO_URI="https://github.com/vcstools/wstool"
+fi
+
+inherit ${SCM} distutils-r1
+
+DESCRIPTION="Commands to manage several local SCM repositories for ROS"
+HOMEPAGE="http://wiki.ros.org/wstool"
+if [ "${PV#9999}" != "${PV}" ] ; then
+ SRC_URI=""
+ KEYWORDS=""
+else
+ SRC_URI="http://download.ros.org/downloads/${PN}/${P}.tar.gz
+ https://github.com/vcstools/wstool/archive/${PV}.tar.gz -> ${P}.tar.gz
+ "
+ KEYWORDS="~amd64 ~arm"
+fi
+
+LICENSE="BSD"
+SLOT="0"
+IUSE="test"
+
+RDEPEND="
+ dev-python/pyyaml[${PYTHON_USEDEP}]
+ >=dev-python/vcstools-0.1.38[${PYTHON_USEDEP}]
+"
+DEPEND="${RDEPEND}
+ dev-python/sphinx
+ test? (
+ dev-python/nose[${PYTHON_USEDEP}]
+ dev-python/coverage[${PYTHON_USEDEP}]
+ dev-vcs/git
+ dev-vcs/bzr
+ dev-vcs/mercurial
+ dev-vcs/subversion
+ )
+"
+
+PATCHES=( "${FILESDIR}/prefix2.patch" )
+DISTUTILS_IN_SOURCE_BUILD="yes"
+
+python_test() {
+ # From travis.yml
+ # Set git config to silence some stuff in the tests
+ git config --global user.email "foo@example.com"
+ git config --global user.name "Foo Bar"
+ # Set the hg user
+ echo -e "[ui]\nusername = Your Name <your@mail.com>" >> ~/.hgrc
+ # Set the bzr user
+ bzr whoami "Your Name <name@example.com>"
+ # command to run tests
+ nosetests --with-coverage --cover-package=wstool || die
+}
diff --git a/dev-util/wxglade/Manifest b/dev-util/wxglade/Manifest
new file mode 100644
index 000000000000..e830be78d6b6
--- /dev/null
+++ b/dev-util/wxglade/Manifest
@@ -0,0 +1,6 @@
+AUX wxglade-0.6.3-wxversion.patch 357 SHA256 95de2623e3cb79b71d7595d8fa48fb91b2dde220ddeca33e58db16c9abe02191 SHA512 6a3ab0d1365d7c511d3d360a95ded27abb4eebc1cf605712603934134c6da96d8d2fe4aea71c9b6d3a2fa1b0ff280f3cfc1b9198608b1e7b6a450ac7b62b06b0 WHIRLPOOL 6d474c31b6cab81d81915a26b61cbd950c125e3b9999555ef3f5d56d0a7470b73aee18b9402e6ca309acb4dc3f158034b6f6aadec14a932d3bd46321e1bb8cf0
+DIST wxGlade-0.6.3.tar.gz 595243 SHA256 28f0a15a8eb4d16039a1981bdcdc74bed12b595a4de8c11cf068b970fb80a68d SHA512 7cb8cb99f2a3d97c2aa43a6ad5cbb8c1b6aafff0e5d120fca1760acbb44d2c8fb3bf8a4d5b42055e1b4bef061bfdbe8eee884f4e087b9d6572874b5b818a61f9 WHIRLPOOL d7af96614f12216c74af0120012925284408b59eb46c2379de4b3080d5fcad73b1e369c01944505bfe271d238e6d32dae54ffa2b377a48adffa4ff62e905a6ba
+EBUILD wxglade-0.6.3-r3.ebuild 1127 SHA256 6cb50e73b250428dc5809003596d2944dfe62a747a5c214df45dc9a09e137a40 SHA512 60d54c5d1d36570b65a0319f99bb0921ef1f35c5e742d0cf060871ed36a58a178e37858d087c4be14540a48564bbc1dd6f774cd6a5a0523928a8711057171c6c WHIRLPOOL d5a09df5b0bb7d469547b02e28d4b3b3d9315d8c1cd96c3d207dc71c4060565b32c68819227592461318c14af638f5450947964f3df02c9f05677ea943cab427
+MISC ChangeLog 2473 SHA256 1b4fa8e90fec827b7c596a9335d70fd292c8bcb28d93e3828b0dfbe9e8abf828 SHA512 aebe6cef3ed8fa626c41e74ec69931e3c7a74933545da39baeb997c01d7c159c07e29575790e5cfd387bc5d04d5890a0e254ca09565e25bf3ce88a847f6d0a07 WHIRLPOOL 717a30bb290557ade9d34c82afa255a07898d63b15eae809b24e46a7442de8eecdc6d137f95399d00a288d97182788c1acb1674348ee575e24ba63720c07835b
+MISC ChangeLog-2015 7685 SHA256 bed74e0cf249d4f50c284a5d7377347253943cadcf1ca4ea0160b0832b871f24 SHA512 301978cd0b5d8cca9272e75ee78c9ccd2a4c02ab580b57babfc435a8cb3fff390783bc15ef2703feec298dcaac83622306f9352120cc225da1f027e826e35c4d WHIRLPOOL 8ed55ca6833d6ff36f8cdc26db0fcb138d577b5a476ba8c0706030642ad5e98d65524f17e14e278c60e0170fafe48027a3d734a4b68f80a80ac7b8025cc2ac7a
+MISC metadata.xml 338 SHA256 4cd21f7e3c69145af2dd420ce15a06be450c80f837733c41146ab6ec6d551734 SHA512 a5c2365b0607137be3ea999914329a9ffb3390065163f1f4bc818247ee9d8bfb7b4494c533f739870a31bd5ee484b9ff4199f279a9202708c1742513b0a48b97 WHIRLPOOL edc4740d59ab452db45f19fb4ad359cb71319e74720608ea10064e3e6436781a6dd8026b9c704f40cb0c341ddc16bc321b23cb06f9bf50d06eb05796d1e98b44
diff --git a/dev-util/wxglade/files/wxglade-0.6.3-wxversion.patch b/dev-util/wxglade/files/wxglade-0.6.3-wxversion.patch
new file mode 100644
index 000000000000..f788e0bff492
--- /dev/null
+++ b/dev-util/wxglade/files/wxglade-0.6.3-wxversion.patch
@@ -0,0 +1,12 @@
+diff -Naur wxGlade-0.6.1-orig/main.py wxGlade-0.6.1/main.py
+--- wxGlade-0.6.1/main.py 2007-10-25 01:03:22.000000000 -0600
++++ wxGlade-0.6.1/main.py 2007-12-04 09:36:20.000000000 -0600
+@@ -7,7 +7,7 @@
+ # THIS PROGRAM COMES WITH NO WARRANTY
+
+ import wxversion
+-wxversion.ensureMinimal("2.6")
++wxversion.select("2.8")
+
+ #from wxPython.wx import *
+ import wx
diff --git a/dev-util/wxglade/metadata.xml b/dev-util/wxglade/metadata.xml
new file mode 100644
index 000000000000..a2cf0a120bb2
--- /dev/null
+++ b/dev-util/wxglade/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="project">
+ <email>wxwidgets@gentoo.org</email>
+ <name>Gentoo wxWidgets Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">wxglade</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/wxglade/wxglade-0.6.3-r3.ebuild b/dev-util/wxglade/wxglade-0.6.3-r3.ebuild
new file mode 100644
index 000000000000..e307c940a1e8
--- /dev/null
+++ b/dev-util/wxglade/wxglade-0.6.3-r3.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit eutils python-single-r1
+
+MY_P="wxGlade-${PV}"
+
+DESCRIPTION="Glade-like GUI designer which can generate Python, Perl, C++ or XRC code"
+HOMEPAGE="http://wxglade.sourceforge.net/"
+SRC_URI="mirror://sourceforge/wxglade/${MY_P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="amd64 ppc sparc x86"
+IUSE=""
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}
+ dev-python/wxpython:2.8[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=( "${FILESDIR}"/${P}-wxversion.patch )
+
+src_compile() {
+ python_fix_shebang wxglade.py
+}
+
+src_install() {
+ dodoc CHANGES.txt README.txt TODO.txt
+ newicon icons/icon.xpm wxglade.xpm
+ doman debian/wxglade.1
+ dodoc -r docs
+ rm -r debian docs || die
+
+ python_moduleinto /usr/lib/wxglade
+ python_domodule .
+ dosym /usr/share/doc/${PF}/docs /usr/lib/wxglade/docs
+ fperms 775 /usr/lib/wxglade/wxglade.py
+ dosym ../lib/wxglade/wxglade.py /usr/bin/wxglade
+
+ make_desktop_entry wxglade wxGlade wxglade "Development;GUIDesigner"
+}
diff --git a/dev-util/xdelta/Manifest b/dev-util/xdelta/Manifest
new file mode 100644
index 000000000000..4c981391bfc5
--- /dev/null
+++ b/dev-util/xdelta/Manifest
@@ -0,0 +1,12 @@
+AUX xdelta-1.1.4-glib2.patch 4545 SHA256 dea479d7c6e116abd72076063adcb790226966eb720a99ffeecd77c4d22a8c03 SHA512 563a99d6007228ef2e0f838cc66251918b875ce779f12fa03015dc97d14379951fd9d2a165b7562e97ad41931ac8ca0a535941cbd4605b5f67e176d1f9d31288 WHIRLPOOL 3b0e6be59151e8d9067466b66a6092220ce597c77abaa113d80f5dd1983b437366988234e4e717bee22796c550c078b05e77b6209a91da938a0dfbc2d059d82c
+AUX xdelta-1.1.4-m4.patch 458 SHA256 8a3e06cfef18ed4e976daecab0e4ebdea20dd849136ef919787f4444b8f89f2d SHA512 f932359b311cffbe711a006a670dbeb2ebcea2386f04bcd3ce38ffd0d743f7c0aa4138b5a781942dc02c40950982b2f295b9a79935dce3666c4ae1dd7d068fd3 WHIRLPOOL 6e432279d7edbea936aff6def1ffd015680f29098023bf8b61f800154a16843f84f092be730afdbb9c87e506a0ec35260da67b496abc784c2bd6e2e8b62bf725
+AUX xdelta-1.1.4-pkgconfig.patch 2551 SHA256 1a00aad31265a5a5b8b6bbfc4c6dd57f08566c72aa4a85fdbea3f9394c4214f4 SHA512 08428227f9aa15e373f2fc81a097e3aad7df2d53d65172da9d1da3c81c52b9d646ad8d1f0f69533e4486cf72e4cf8ec106e948dc0c9a1cd1aad8732ceb4aeeb5 WHIRLPOOL 8189ac32b2d29f8cfc810e3f635c9d33a81e6c63cc4173d3b76017e0d0cab7dd655c735f01ae7c41e879416857f0861c9fd72049b921edc779e138d0221975e3
+DIST xdelta-1.1.4.tar.gz 423529 SHA256 345503b60432812840991ea1d79cb10db5f34bfaba9499bd0e7d5c57ac5d5c6d SHA512 eef45f7977e9a7f490b881f33ab8a948cc5eff9300ea850cc30062905c8e883c104961f075f56f7ce8e385142c35de168aef1e0b8169bda66786ea4bee33168b WHIRLPOOL 246d7b50ef528e0a761e334fb9c0af06028364ba6851aee4de0a11db42ae25fbecbf4f603e0a01f3daa5d89caecc549deea79f795af08925bdac282103056150
+DIST xdelta3-3.0.11.tar.gz 683605 SHA256 0ccc9751ceaa4d90d6b06938a4deddb481816f5d9284bd07d2e728609cb300aa SHA512 41c48e28f92ad50a737cf0acac150fe17d1132e9a652c482d751c8c4e745c6922d576a183eeabae343a1a238ed8c53353e537977628c86eb599ab3d1c01e7c52 WHIRLPOOL 212950d31369e8fbbeb65ae2f6b489f15b259cbbf42242653eace6e3f59b8d592e31ba4994475ba3c79e8c0f7d62ef09b1437548f13c9e7f5b439274eee07e82
+DIST xdelta3-3.1.0.tar.gz 727607 SHA256 114543336ab6cee3764e3c03202701ef79d7e5e8e4863fe64811e4d9e61884dc SHA512 848c90a28018ec3c541ec43be59ea90328142c4705d3b59907fd89e8f6ac2758e288b1a1112fea601884c50ef7f6cf2c1634f539a76bea65a2741d3bb0e9b990 WHIRLPOOL 3183e51fb1d2b2bf5a3e8e4392cd36a7fa4c756b38a4701f9bf46cda47ede87607fc1fda11876f724c8aa4ba9adee800540ca55f014a6b44d547352792d2b02c
+EBUILD xdelta-1.1.4-r1.ebuild 888 SHA256 cb257325d4a74db0048b49a475026bee94f4587b2fb191ae8a81b989801bd47a SHA512 c40d4253bf9b226fd2a5f863170ecbc53a0bef5590aa5d5f3a88305958367bd97c042d0efdf0a9f95dc65d0351ebd271bfc5ea994d20bddaa896fdbc0f5d31c8 WHIRLPOOL a9c0e5854c8c8e2aeb6ca219a32ac5d8317fb690a01f152c1a45a8a0ba9aa9c56275f09de18e96cb9c252bbb8272f5ded6380e0ed01d944213ea040da0e096ef
+EBUILD xdelta-3.0.11.ebuild 871 SHA256 36240c8085b8b1db3ed39d8796c4c56143722bc99718b2353d83dca7e7348d55 SHA512 2ec513f7ae5a37db2d00b7c83ce117c442c8d76ea274834a2fade35795d347c2cfbc55032931c1d4949fbaeabe00f0b8ee69015fc4ab4c51389ecda9c3248ae4 WHIRLPOOL d1149c513b0b938a77e81ab076ea7da5937fbf76a149c1de5dbd0727cb2e50a27e2d61e7b0189224092e668cd4a4e2b4bf069016cd6f6f07b47b6a75962b5614
+EBUILD xdelta-3.1.0.ebuild 1143 SHA256 ea981ac7342582a3c4fc6792e0b36014131787df0e2380d3aae43b77183bedb9 SHA512 c4643a90fd33543e07febf5fb6fa9e08d4efe251658fe6c4d74111071388a9b35fd2e6e9708f227cd2233a3a0b76565d998dd084a2c544fcd894c4d7d2053bb1 WHIRLPOOL ec64741b227fc57c1641d7f951d4e7b22a3a0c681c0dc9faa32dae3036b2c7ca4e8a368cf23160f0f35efbe8f14e20302985240ed3bf0f04cbf931b8758f1321
+MISC ChangeLog 4417 SHA256 7523f8c27c63b2e2cf96de89ebcc4ee000de2c0c1c067c6524f6f41876700c1c SHA512 c1c145449bd0d42370eaa3dea661e2dfc1063d2e43dec8f53ba14fc21e54844f73607b54ef1b73d74ceaa92496eda3e710004cfb7bea36719c2d07bd092dddf6 WHIRLPOOL 58d89cb2016189ca3761cbcbfc27c8c20eabd9832a73211c09f682474f084a6c778abae947751f96d58e7ef824bfbf86f23ccbdd636b56a0dab0ceedaafa838b
+MISC ChangeLog-2015 12875 SHA256 05c6c133701079a084ff5efab3cc7293335aa501ae95127329a9b37537c7ef9c SHA512 6cdda923ff5472760b2864c24542c0d400c8c9cd0b07f5591837cb331ed96981038e3db60c674cf51407fbd27009af1a6b959d08851c9ea8ce775b18bdb4cfbf WHIRLPOOL f503909f94ac9c0f1dfc5eb1910bbfd59334965a54984436e6259ff3066bcf97a662b619c87489d6a86ec7a4ad740c8d476a7131ac399ec6f95985c1ae06f3ce
+MISC metadata.xml 381 SHA256 96c29bf628ac991cf94828f8d37c9a4567a476b4d93fe4b364b1fab5025b23e1 SHA512 2c439c35f726e18396d3a0f2e923cf2f2d0eb7a9798907fd0f039dddcc9fdbac95d6e89d113fc8a937ceb260c90901e0657ecdea2f0bf423ca9456627b2912d3 WHIRLPOOL edf7e6e2f9940d6093759f4914c389bfef7ae4991d9e8b5bad56f102e174df42e2065a68b88851601677095925b1b84568adc079373b6f17802d92507e93338f
diff --git a/dev-util/xdelta/files/xdelta-1.1.4-glib2.patch b/dev-util/xdelta/files/xdelta-1.1.4-glib2.patch
new file mode 100644
index 000000000000..916b3ee2c007
--- /dev/null
+++ b/dev-util/xdelta/files/xdelta-1.1.4-glib2.patch
@@ -0,0 +1,221 @@
+Nicked from http://cvs.fedoraproject.org/viewvc/devel/xdelta/xdelta-1.1.4-glib2.patch
+
+
+--- xdelta-1.1.4pre1/libedsio/edsio.c.glib2 2007-01-29 14:55:10.000000000 +0100
++++ xdelta-1.1.4pre1/libedsio/edsio.c 2007-01-29 14:56:52.000000000 +0100
+@@ -179,9 +179,9 @@
+ }
+ }
+
+- while (g_queue_get_size (queued) > 0)
++ while (g_queue_get_length (queued) > 0)
+ {
+- DelayedEvent* de = g_queue_pop (queued);
++ DelayedEvent* de = g_queue_pop_head (queued);
+
+ for (i = 0; i < all_event_watchers->len; i += 1)
+ {
+@@ -211,7 +211,7 @@
+ de->def = def;
+ de->msg = out->str;
+
+- g_queue_push (queued, de);
++ g_queue_push_tail (queued, de);
+
+ g_ptr_array_add (free_strings, out);
+ }
+@@ -1482,129 +1482,3 @@
+ g_free (source);
+ }
+
+-/* Missing glib stuff
+- */
+-
+-GQueue *
+-g_queue_new (void)
+-{
+- GQueue *q = g_new (GQueue, 1);
+-
+- q->list = q->list_end = NULL;
+- q->list_size = 0;
+-
+- return q;
+-}
+-
+-
+-void
+-g_queue_free (GQueue *q)
+-{
+- if (q)
+- {
+- if (q->list)
+- g_list_free (q->list);
+- g_free (q);
+- }
+-}
+-
+-
+-guint
+-g_queue_get_size (GQueue *q)
+-{
+- return (q == NULL) ? 0 : q->list_size;
+-}
+-
+-
+-void
+-g_queue_push_front (GQueue *q, gpointer data)
+-{
+- if (q)
+- {
+- q->list = g_list_prepend (q->list, data);
+-
+- if (q->list_end == NULL)
+- q->list_end = q->list;
+-
+- q->list_size++;
+- }
+-}
+-
+-
+-void
+-g_queue_push_back (GQueue *q, gpointer data)
+-{
+- if (q)
+- {
+- q->list_end = g_list_append (q->list_end, data);
+-
+- if (! q->list)
+- q->list = q->list_end;
+- else
+- q->list_end = q->list_end->next;
+-
+- q->list_size++;
+- }
+-}
+-
+-
+-gpointer
+-g_queue_pop_front (GQueue *q)
+-{
+- gpointer data = NULL;
+-
+- if ((q) && (q->list))
+- {
+- GList *node;
+-
+- node = q->list;
+- data = node->data;
+-
+- if (! node->next)
+- {
+- q->list = q->list_end = NULL;
+- q->list_size = 0;
+- }
+- else
+- {
+- q->list = node->next;
+- q->list->prev = NULL;
+- q->list_size--;
+- }
+-
+- g_list_free_1 (node);
+- }
+-
+- return data;
+-}
+-
+-
+-gpointer
+-g_queue_pop_back (GQueue *q)
+-{
+- gpointer data = NULL;
+-
+- if ((q) && (q->list))
+- {
+- GList *node;
+-
+- node = q->list_end;
+- data = node->data;
+-
+- if (! node->prev)
+- {
+- q->list = q->list_end = NULL;
+- q->list_size = 0;
+- }
+- else
+- {
+- q->list_end = node->prev;
+- q->list_end->next = NULL;
+- q->list_size--;
+- }
+-
+- g_list_free_1 (node);
+- }
+-
+- return data;
+-}
+--- xdelta-1.1.4pre1/libedsio/edsio.h.glib2 2007-01-29 14:54:38.000000000 +0100
++++ xdelta-1.1.4pre1/libedsio/edsio.h 2007-01-29 14:55:00.000000000 +0100
+@@ -481,49 +481,6 @@
+
+ #endif
+
+-/* Missing glib stuff
+- */
+-
+-typedef struct _GQueue GQueue;
+-
+-struct _GQueue
+-{
+- GList *list;
+- GList *list_end;
+- guint list_size;
+-};
+-
+-/* Queues
+- */
+-
+-GQueue * g_queue_new (void);
+-void g_queue_free (GQueue *q);
+-guint g_queue_get_size (GQueue *q);
+-void g_queue_push_front (GQueue *q, gpointer data);
+-void g_queue_push_back (GQueue *q, gpointer data);
+-gpointer g_queue_pop_front (GQueue *q);
+-gpointer g_queue_pop_back (GQueue *q);
+-
+-#define g_queue_empty(queue) \
+- ((((GQueue *)(queue)) && ((GQueue *)(queue))->list) ? FALSE : TRUE)
+-
+-#define g_queue_peek_front(queue) \
+- ((((GQueue *)(queue)) && ((GQueue *)(queue))->list) ? \
+- ((GQueue *)(queue))->list->data : NULL)
+-
+-#define g_queue_peek_back(queue) \
+- ((((GQueue *)(queue)) && ((GQueue *)(queue))->list_end) ? \
+- ((GQueue *)(queue))->list_end->data : NULL)
+-
+-#define g_queue_index(queue,ptr) \
+- ((((GQueue *)(queue)) && ((GQueue *)(queue))->list) ? \
+- g_list_index (((GQueue *)(queue))->list, (ptr)) : -1)
+-
+-#define g_queue_push g_queue_push_back
+-#define g_queue_pop g_queue_pop_front
+-#define g_queue_peek g_queue_peek_front
+-
+-
+ #ifdef __cplusplus
+ }
+ #endif
+--- xdelta-1.1.4pre1/configure.in.glib2 2007-01-29 14:58:06.000000000 +0100
++++ xdelta-1.1.4pre1/configure.in 2007-01-29 14:59:18.000000000 +0100
+@@ -71,8 +71,8 @@
+ top_srcdir_absolute=`cd $srcdir; pwd`
+ AC_SUBST(top_srcdir_absolute)
+
+-AM_PATH_GLIB(1.2.8,,
+- AC_MSG_ERROR(Test for GLIB failed. Download it from ftp://ftp.gtk.org/pub/gtk/v1.2/))
++AM_PATH_GLIB_2_0(2.10.0,,
++ AC_MSG_ERROR(Test for GLIB2.0 failed. Download it from ftp://ftp.gtk.org/pub/gtk/v2.10/))
+
+ dnl AC_CHECK_LIB(z, gzsetparams, */
+ dnl AC_CHECK_HEADER(zlib.h,, */
diff --git a/dev-util/xdelta/files/xdelta-1.1.4-m4.patch b/dev-util/xdelta/files/xdelta-1.1.4-m4.patch
new file mode 100644
index 000000000000..ad8c99de5970
--- /dev/null
+++ b/dev-util/xdelta/files/xdelta-1.1.4-m4.patch
@@ -0,0 +1,11 @@
+--- xdelta-1.1.3/xdelta.m4.aclocal 2004-10-20 00:20:47.875648144 +0200
++++ xdelta-1.1.3/xdelta.m4 2004-10-20 00:21:47.205628616 +0200
+@@ -4,7 +4,7 @@
+ dnl AM_PATH_XDELTA([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]])
+ dnl Test for XDELTA, and define XDELTA_CFLAGS and XDELTA_LIBS, if "gmodule" or
+ dnl
+-AC_DEFUN(AM_PATH_XDELTA,
++AC_DEFUN([AM_PATH_XDELTA],
+ [dnl
+ dnl Get the cflags and libraries from the xdelta-config script
+ dnl
diff --git a/dev-util/xdelta/files/xdelta-1.1.4-pkgconfig.patch b/dev-util/xdelta/files/xdelta-1.1.4-pkgconfig.patch
new file mode 100644
index 000000000000..bb509b8d4356
--- /dev/null
+++ b/dev-util/xdelta/files/xdelta-1.1.4-pkgconfig.patch
@@ -0,0 +1,113 @@
+Nicked from http://cvs.fedoraproject.org/viewvc/devel/xdelta/xdelta-1.1.3-pkgconfig.patch
+
+--- /dev/null 2006-05-17 14:47:01.398050000 +0200
++++ xdelta-1.1.3/xdelta.pc.in 2006-05-30 16:00:55.000000000 +0200
+@@ -0,0 +1,13 @@
++prefix=@prefix@
++exec_prefix=@exec_prefix@
++libdir=@libdir@
++includedir=@includedir@
++pkgdatadir=@pkgdatadir@
++
++Name: xdelta
++Description: A binary file delta generator and an RCS replacement library.
++Version: @VERSION@
++Requires: glib-2.0
++Libs: -L${libdir} -lxdelta -ledsio
++Cflags: -I${includedir}
++
+--- /dev/null 2006-05-17 14:47:01.398050000 +0200
++++ xdelta-1.1.3/xdelta-config 2006-05-30 16:04:22.000000000 +0200
+@@ -0,0 +1,60 @@
++#!/bin/bash
++#
++# Simple wrapper around pkg-config to replace /usr/bin/<foo>-config scripts
++#
++# Copyright 2006 Red Hat, Inc.
++# Jeremy Katz <katzj@redhat.com>
++
++CFGPATH=$(basename $0)
++MODULE=${CFGPATH%-config}
++
++usage() {
++ pkg-config --help
++ exit 1
++}
++
++if [ $# -lt 1 ]; then
++ usage 1>&2
++fi
++
++ARGS=""
++
++while test $# -gt 0; do
++ case $1 in
++ --version)
++ ARGS="$ARGS --modversion"
++ ;;
++ --cflags)
++ ARGS="$ARGS --cflags"
++ ;;
++ --libs)
++ ARGS="$ARGS --libs"
++ ;;
++ --libdir*)
++ ARGS="$ARGS --libs-only-L"
++ ;;
++ --includedir*)
++ ARGS="$ARGS --cflags-only-I"
++ ;;
++ --prefix*)
++ ARGS="$ARGS --variable=prefix"
++ ;;
++ --exec-prefix*)
++ ARGS="$ARGS --variable=exec_prefix"
++ ;;
++ --module*)
++ if echo $1 | grep -q '=' ; then
++ MODULE=`echo $1 | sed 's/^--module=//'`
++ else
++ MODULE=$2
++ shift
++ fi
++ ;;
++ *)
++ usage 1>&2
++ ;;
++ esac
++ shift
++done
++
++pkg-config $ARGS $MODULE
+--- xdelta-1.1.3/Makefile.am.pkgconfig 2006-05-30 16:00:55.000000000 +0200
++++ xdelta-1.1.3/Makefile.am 2006-05-30 16:00:55.000000000 +0200
+@@ -27,6 +27,9 @@
+ m4datadir = $(datadir)/aclocal
+ m4data_DATA = xdelta.m4
+
++pkgconfigdir = $(libdir)/pkgconfig
++pkgconfig_DATA = xdelta.pc
++
+ ## $Format: "libxdelta_la_LDFLAGS = -version-info $LibCurrent$:$LibRevision$:$LibAge$" $
+ libxdelta_la_LDFLAGS = -version-info 2:0:0
+
+--- xdelta-1.1.3/configure.in.pkgconfig 2006-05-30 16:00:55.000000000 +0200
++++ xdelta-1.1.3/configure.in 2006-05-30 16:00:55.000000000 +0200
+@@ -63,6 +63,8 @@
+ AC_HEADER_STDC
+ AC_PROG_MAKE_SET
+
++PKG_PROG_PKG_CONFIG
++
+ AC_CHECK_FUNCS(gettimeofday)
+ AC_HEADER_TIME
+
+@@ -83,7 +85,7 @@
+ doc/Makefile
+ test/Makefile
+ djgpp/Makefile
+- xdelta-config
++ xdelta.pc
+ libedsio/Makefile
+ libedsio/edsio-comp,
+
diff --git a/dev-util/xdelta/metadata.xml b/dev-util/xdelta/metadata.xml
new file mode 100644
index 000000000000..132ebadbee23
--- /dev/null
+++ b/dev-util/xdelta/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>mgorny@gentoo.org</email>
+ <name>Michał Górny</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="google-code">xdelta</remote-id>
+ <remote-id type="github">jmacd/xdelta-devel</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/xdelta/xdelta-1.1.4-r1.ebuild b/dev-util/xdelta/xdelta-1.1.4-r1.ebuild
new file mode 100644
index 000000000000..61d044c28e80
--- /dev/null
+++ b/dev-util/xdelta/xdelta-1.1.4-r1.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit autotools eutils toolchain-funcs
+
+DESCRIPTION="Computes changes between binary or text files and creates deltas"
+HOMEPAGE="https://xdelta.googlecode.com/"
+SRC_URI="https://${PN}.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86"
+IUSE=""
+
+RDEPEND=">=dev-libs/glib-2
+ >=sys-libs/zlib-1.1.4"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}"/${P}-m4.patch
+ epatch "${FILESDIR}"/${P}-glib2.patch
+ epatch "${FILESDIR}"/${P}-pkgconfig.patch
+
+ eautoreconf
+}
+
+src_compile() {
+ tc-export CC
+ econf || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dodoc AUTHORS ChangeLog NEWS README
+}
diff --git a/dev-util/xdelta/xdelta-3.0.11.ebuild b/dev-util/xdelta/xdelta-3.0.11.ebuild
new file mode 100644
index 000000000000..7afc64d68730
--- /dev/null
+++ b/dev-util/xdelta/xdelta-3.0.11.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+MY_P=xdelta3-${PV}
+
+DESCRIPTION="a binary diff and differential compression tools. VCDIFF (RFC 3284) delta compression"
+HOMEPAGE="http://xdelta.org/"
+SRC_URI="https://github.com/jmacd/xdelta-gpl/releases/download/v${PV}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="3"
+KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd"
+IUSE="examples lzma"
+
+RDEPEND="lzma? ( app-arch/xz-utils:= )"
+DEPEND="${RDEPEND}"
+
+S=${WORKDIR}/${MY_P}
+
+src_configure() {
+ econf \
+ $(use_with lzma liblzma)
+}
+
+src_compile() {
+ # avoid building tests
+ emake xdelta3
+}
+
+src_test() {
+ emake xdelta3regtest
+ ./xdelta3regtest || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" install-binPROGRAMS install-man1
+ dodoc draft-korn-vcdiff.txt README.md
+ use examples && dodoc -r examples
+}
diff --git a/dev-util/xdelta/xdelta-3.1.0.ebuild b/dev-util/xdelta/xdelta-3.1.0.ebuild
new file mode 100644
index 000000000000..1203efc69ce0
--- /dev/null
+++ b/dev-util/xdelta/xdelta-3.1.0.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+
+WANT_AUTOMAKE=1.14
+inherit autotools python-any-r1
+
+MY_P=xdelta3-${PV}
+
+DESCRIPTION="a binary diff and differential compression tools. VCDIFF (RFC 3284) delta compression"
+HOMEPAGE="http://xdelta.org/"
+SRC_URI="https://github.com/jmacd/xdelta-gpl/releases/download/v${PV}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="3"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="examples test"
+
+RDEPEND="app-arch/xz-utils"
+DEPEND="${RDEPEND}
+ test? ( ${PYTHON_DEPS} )"
+
+S=${WORKDIR}/${MY_P}
+
+pkg_setup() {
+ use test && python-any-r1_pkg_setup
+}
+
+src_prepare() {
+ eapply_user
+
+ # huh
+ sed -i -e '/python/s:2.6:2:' testing/xdelta3-regtest.py || die
+ sed -i -e '/python/s:2.7:2:' testing/xdelta3-test.py || die
+
+ # only build tests when required
+ sed -i -e '/xdelta3regtest/s:noinst_P:check_P:' Makefile.am || die
+ eautomake
+}
+
+src_test() {
+ default
+ ./xdelta3regtest || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ dodoc draft-korn-vcdiff.txt README.md
+ use examples && dodoc -r examples
+}
diff --git a/dev-util/xesam-tools/Manifest b/dev-util/xesam-tools/Manifest
new file mode 100644
index 000000000000..54999382a336
--- /dev/null
+++ b/dev-util/xesam-tools/Manifest
@@ -0,0 +1,5 @@
+DIST xesam-tools-0.7.0.tar.gz 73173 SHA256 b73264bd392e3031c54cc112bd6d6780d78d9d20150954653415a25c9ab6ff96 SHA512 3428e18eb52fa205bca872c8b0b1f12f01f58a8fb43239bc2cc78fe52f9903940702dae4116d4775340b69ec949ad2198b57c0c1246fe58dd8ed8b7a6562bf71 WHIRLPOOL d2645d395ceafdcaf852ed287d5c472d5d666e461d1f35ebb289ee91f60aaae50e2b468d37ec5e815a2abd0a25c5b250be42f2da2bb213d15f7b29dfecd72868
+EBUILD xesam-tools-0.7.0-r1.ebuild 882 SHA256 fdfb84ef43f081a671fb2a1b65f1ad8ba035adfac491afc35c73265a13a1812f SHA512 ed796ebb4d4698fe04c6f8d5b88a969238018789fa1a7088900ea6856ec68b27b83f0e3d502911aed45113cc21de624e051fe52824ab264e24ff2c816ced849e WHIRLPOOL 154fa1dff6ddf2e03c61404c5066244c38234bcff3ee306f3765a3cb1935c8918c4aeefe0959993e31f425c8acb78f36e38bd3eabe850d5372da9754a6124228
+MISC ChangeLog 2540 SHA256 b7fb5a9e9d9e618a4f98b1b5f02cc534f459f0ba75c89465ffa789bdc64a27e3 SHA512 6116ee254d9fd03c76ad4082fad47eb394ff796382c38014582f526bec2fe8b6b5cc1333a4d1b5546cde13f1a65758973686777fec022d718878a193d4ae2c43 WHIRLPOOL 208e18574235471ab26a3360d2d3ad4cfb2aa1bfd07f0a183001b539d99008996e0dfe917aaa447ec3f69e69074c7313906139fdbee11e69cd0d2bab9a4da855
+MISC ChangeLog-2015 1404 SHA256 20690174117314683644e627353a8806022d7983e3570e87573759689f753066 SHA512 fbe8ad6bb5b8a54dcc3a4ce50e401b2058ffe21b48f94cd861568014f8af6304364911adfe9b88579365cdebeb9237a51a91cd05af545be001f5962e748b7bc8 WHIRLPOOL 746f5500192673bdc011d607ff73fb42ccc3d918798530f425955042576a66e31ec6c798e184367537f36c4921d8ddcbca8d5f43877ad6859f2eac06d1f7370f
+MISC metadata.xml 392 SHA256 4639fd0c29548c258a9923f4b3efd0f38fbfae2d8c46fa5b974be04164c48a60 SHA512 10e2dafc4fdaa7f851db74280e47df4f37885d2919383d15f9d51004858d3221178052d55c6fe53fcab101389c1ed028c1d9c4e7ca72360c4620c563ae2a7cdf WHIRLPOOL f9c47368c7a2765599ea2a052fa5b4c11007f67c6164e7f166181bd34c7fb54d2951dc2e8d0eede1d55da80cedce669b1f00e5584ae4e70b979878747650c358
diff --git a/dev-util/xesam-tools/metadata.xml b/dev-util/xesam-tools/metadata.xml
new file mode 100644
index 000000000000..9c8fd938d1b4
--- /dev/null
+++ b/dev-util/xesam-tools/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <longdescription lang="en">
+ xesam-tools provides a set of tools and examples to help developers
+ who are working on servers or clients which implement the Xesam desktop
+ search specification
+ </longdescription>
+</pkgmetadata>
diff --git a/dev-util/xesam-tools/xesam-tools-0.7.0-r1.ebuild b/dev-util/xesam-tools/xesam-tools-0.7.0-r1.ebuild
new file mode 100644
index 000000000000..c3a780d7fb7e
--- /dev/null
+++ b/dev-util/xesam-tools/xesam-tools-0.7.0-r1.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="xml"
+DISTUTILS_SINGLE_IMPL=1
+
+inherit distutils-r1
+
+DESCRIPTION="Development tools and examples for the Xesam desktop search API"
+HOMEPAGE="http://xesam.org/people/kamstrup/xesam-tools"
+SRC_URI="http://xesam.org/people/kamstrup/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE="examples"
+
+DEPEND=""
+RDEPEND="dev-python/dbus-python[${PYTHON_USEDEP}]
+ dev-python/pygobject:2[${PYTHON_USEDEP}]
+ dev-python/pygtk[${PYTHON_USEDEP}]"
+
+pkg_setup() {
+ python-single-r1_pkg_setup
+}
+
+src_install() {
+ distutils-r1_src_install
+
+ insinto "/usr/share/doc/${PF}"
+ doins -r samples
+
+ if use examples; then
+ insinto "/usr/share/doc/${PF}/demo"
+ doins "demo/demo.py"
+ insopts -m 0755
+ doins demo/[^d]*
+ fi
+}
diff --git a/dev-util/xfce4-dev-tools/Manifest b/dev-util/xfce4-dev-tools/Manifest
new file mode 100644
index 000000000000..26750f02030f
--- /dev/null
+++ b/dev-util/xfce4-dev-tools/Manifest
@@ -0,0 +1,5 @@
+DIST xfce4-dev-tools-4.12.0.tar.bz2 309586 SHA256 e2e3a654fe9110df81f8c2483c9cbfa6d656fed15d5e5e717d6ef10bd0f5b5cb SHA512 60f90daaaac3eea355779ee1bb6a0cf24fb9e0ba70971c9c26ea681755de41560cfbca59a28241c2fd818031dc46e95c550424577451ceb7a42b1de0b0ff4a31 WHIRLPOOL 27963f582fc568097c943133fbe7517cc27c526b795ca7813b4b91c2707ee82e55012044c6cedc1120b24614f988048fbeb2a0eb528c57d63cd016d3faa22d23
+EBUILD xfce4-dev-tools-4.12.0.ebuild 656 SHA256 58dbb9c4b8133a455ade70ca4ca39414607c4566b3c74ad2fef6093837946549 SHA512 7eedf87afd0397dc9632458762b3471ebbbfd2453d5d2903584f79f05912999631629ea1d221aed8883705e05eeb6beff4dfe99aa38e0c515a9f0944b1b93382 WHIRLPOOL 770307e5c5473207621bb4182bf27bb70ed80f0aa8bea7bcff11b55e114fc3b886786b8f211b7fbd8f26d5e87d1563da09d30648bc3582aa8dfdcf4cf60fd018
+MISC ChangeLog 2625 SHA256 a5b1ae29f47311dc219b0e257f89c0a6d57aee81f6885c7db2ee24dbaa299fa7 SHA512 60a7c4ef33877f3af31a7dd9214042f23782045d1db81212829caa4673f0616b72ea8ffc11234f4c96b44a18c5b5a1b4ae40b437624108272bbc1c14a6038811 WHIRLPOOL 7453e8a4c47e4017021e1d79b40f8ae26ea0d7420e9f4e00ae2fc30f2e942ad8d4c3ebd86100e03a15ea134b580934b51c46f1f402da6ecf5f8672156511b1f5
+MISC ChangeLog-2015 11019 SHA256 4b9950e725cc01afb9257f345e99156c8da86ef2313f2360ba8044fe8b80bce9 SHA512 42b33731d0d7375446b8aa6006ceacf9db92d158c38b9a945bf188941a64c1c5db22e219389019b699a314c15ba70aeb1419a1d9dec89c779b18376c313c3703 WHIRLPOOL db9cc05643d964195f3300e262eabea18fa8edfd20f6104f9197f23bbbd0d8a387ba5655a9807fc91707135e00f3ff917444b4eaf75c8dcfe536182e5a1713bc
+MISC metadata.xml 247 SHA256 5e270543b0f1e81148a19b29d77d40191169f37a8b3e34c7c08bdca376150864 SHA512 25494c0053fb7b2ed0f78ecc2de8a8ae08a971db8e15f89e906a1d43177fef53eb9ec5dd075a5c67ddee2be112c0943f6c87e4870d405436bddfea3a4fa19203 WHIRLPOOL 15305f8aec1b5f5e255d6378d5b44652a3958e808017fd8ba00350b667528753ff0466bcf5b9b28b683fd3341d25bf8884396730003f071515ad28146d33893b
diff --git a/dev-util/xfce4-dev-tools/metadata.xml b/dev-util/xfce4-dev-tools/metadata.xml
new file mode 100644
index 000000000000..359901b31db4
--- /dev/null
+++ b/dev-util/xfce4-dev-tools/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="project">
+ <email>xfce@gentoo.org</email>
+ <name>XFCE Team</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-util/xfce4-dev-tools/xfce4-dev-tools-4.12.0.ebuild b/dev-util/xfce4-dev-tools/xfce4-dev-tools-4.12.0.ebuild
new file mode 100644
index 000000000000..1f2adf858832
--- /dev/null
+++ b/dev-util/xfce4-dev-tools/xfce4-dev-tools-4.12.0.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit xfconf
+
+DESCRIPTION="A set of scripts and m4/autoconf macros that ease build system maintenance"
+HOMEPAGE="https://www.xfce.org/ http://users.xfce.org/~benny/projects/xfce4-dev-tools/"
+SRC_URI="mirror://xfce/src/xfce/${PN}/${PV%.*}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x64-solaris"
+IUSE=""
+
+RDEPEND=">=dev-libs/glib-2.30"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+pkg_setup() {
+ DOCS=( AUTHORS ChangeLog HACKING NEWS README )
+}
diff --git a/dev-util/xmlindent/Manifest b/dev-util/xmlindent/Manifest
new file mode 100644
index 000000000000..0b4fc1592039
--- /dev/null
+++ b/dev-util/xmlindent/Manifest
@@ -0,0 +1,6 @@
+DIST xmlindent-0.2.17.tar.gz 18333 SHA256 3a0f6887b696087b8dad4901d3994954214dbbd78499eaf622b9a85060cf254c SHA512 ab4b46dbd68f29e7adba6283485eb9d1c614ece640c18e1eabbe7f0e1e6f27f14d00d694e4e1981aaf66e0ddcf208c6cb2c80dda1cbeb0ceb1a40987a419f716 WHIRLPOOL 28b9ea143efb19152554ef5aa69dce6dd0652df3bc84ff36fc23ac9ac7804b3b43716917b0bbc043bf37680df492c0c1cd9358644b22b2037c4fc15baeee3c01
+EBUILD xmlindent-0.2.17-r1.ebuild 680 SHA256 cb6720645ee39dc403e01c4dc7412f38cb474d3e37b85b56cb750d6a18335802 SHA512 279abeb88c326649fbfeac981d6ebfe517975cce1219f88c9aaf4444ee5b3d90072bd0d34012d9f2fe194801df60d9a649ba3399d600f88a2613c9c38c0f3ebf WHIRLPOOL bd199a589c1ec0522ff94aa9bb2df57b670fe605484bbf97e61593b58c62bc0bf4d3700703700c0cfebdb3a0cb163599e251f4e3584628af330a0b56d21a6bd8
+EBUILD xmlindent-0.2.17-r2.ebuild 581 SHA256 5fb02f0dc5b5bbb23f205225895e48d8c261eb98081dcc517a68689ca4139b7e SHA512 c017027f6d44239e0bccfb2c3807843db464433915eedf807425d93c24e2a62f3c31fa1aafbc973be242207502d85ba7902517b33eec7c85c9af04b7d31e7acb WHIRLPOOL 02ade18dce61b168a6b24e83a14f92328e01060579b4258037d2d7ad763d18741940630e1106c0092dce24138e4494dda8d1ced1dee6c9dcd5c477634555bd07
+MISC ChangeLog 2774 SHA256 3a93db0626f9d3be7597a62274d267712e5bbec6faf431bdf5e3ab9d97bb3ea8 SHA512 9cf19b55db6911fcb99bc1943d7b6013ad30b928ced6a9173d40d4857e0e9ecaedd3f14530e207817114eb6f3028024634c20e40aeb63bb19f1b413f71493edc WHIRLPOOL 5e7e8514f95bbc490f5a5d7330fef2403e6054e9dceb9156e67f3f766482372c85873f45f2ffa82931e93407ea207c4966a7d245b3bfc385dc8468be19d54c78
+MISC ChangeLog-2015 1246 SHA256 bc65b5302530474e8bde6d3c421dacb57b52576a78bc1c86028ed0854423f576 SHA512 b302c9ebc3b8bec9cd7b4572e5714d0c1bfccb6dd1becd164b2cd0e3e8cb410274ffc6d188e3c95b56973663119676ea815b4f426b73735b8490fcdbd5cce22f WHIRLPOOL 21d9085566314c8508cb88af335936e6f9dbd76ba30a62c7a4b9572d3794da3e1c74e89d6960ff7d8606a82c3cdacf7b86d09b2ae9447d536b60fe1c50c8b28a
+MISC metadata.xml 330 SHA256 17d87474e3e28be15a2818bd10bce842e969e540cd02f1c7b7de997a1e5816dc SHA512 0b23db5bd25122e4498effc8a36b9015e619b68cebacc103849c9827ebc9e73c790334b7bc90e771f5da8946ba3ac41aff9458a5dc13784fe1ffbfd0379476f5 WHIRLPOOL 64054b873653234fbefcb9eb97ae6628a34b25779b5a998b32ded8bdf0d5153159115390f8439620561250d872c7867a1b9ec6304a9038f14519ce631615deae
diff --git a/dev-util/xmlindent/metadata.xml b/dev-util/xmlindent/metadata.xml
new file mode 100644
index 000000000000..9cd695dbdcf0
--- /dev/null
+++ b/dev-util/xmlindent/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>monsieurp@gentoo.org</email>
+ <name>Patrice Clement</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">xmlindent</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/xmlindent/xmlindent-0.2.17-r1.ebuild b/dev-util/xmlindent/xmlindent-0.2.17-r1.ebuild
new file mode 100644
index 000000000000..c0b6bcefc271
--- /dev/null
+++ b/dev-util/xmlindent/xmlindent-0.2.17-r1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="2"
+
+inherit toolchain-funcs
+
+DESCRIPTION="XML Indent is an XML stream reformatter written in ANSI C, analogous to GNU indent"
+HOMEPAGE="http://xmlindent.sourceforge.net/"
+SRC_URI="mirror://sourceforge/xmlindent/${P}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+
+IUSE=""
+DEPEND="sys-devel/flex"
+RDEPEND=""
+
+src_prepare() {
+ sed -i Makefile \
+ -e 's|gcc|$(CC)|g' \
+ -e 's|-g|$(CFLAGS) $(LDFLAGS) |g' \
+ || die "sed failed"
+}
+
+src_compile() {
+ tc-export CC
+ emake || die "emake failed"
+}
+
+src_install() {
+ dobin xmlindent || die "dobin failed"
+ doman *.1
+}
diff --git a/dev-util/xmlindent/xmlindent-0.2.17-r2.ebuild b/dev-util/xmlindent/xmlindent-0.2.17-r2.ebuild
new file mode 100644
index 000000000000..89968bf87eff
--- /dev/null
+++ b/dev-util/xmlindent/xmlindent-0.2.17-r2.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit toolchain-funcs
+
+DESCRIPTION="XML stream reformatter written in ANSI C"
+HOMEPAGE="http://xmlindent.sourceforge.net/"
+SRC_URI="mirror://sourceforge/xmlindent/${P}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~x86"
+
+DEPEND="sys-devel/flex"
+
+src_prepare() {
+ default
+ sed -i Makefile \
+ -e 's|gcc|$(CC)|g' \
+ -e 's|-g|$(CFLAGS) $(LDFLAGS) |g' \
+ || die "sed failed"
+}
+
+src_compile() {
+ tc-export CC
+ emake
+}
+
+src_install() {
+ dobin "${PN}"
+ doman *.1
+}
diff --git a/dev-util/xxdi/Manifest b/dev-util/xxdi/Manifest
new file mode 100644
index 000000000000..b95776b9a93b
--- /dev/null
+++ b/dev-util/xxdi/Manifest
@@ -0,0 +1,5 @@
+DIST xxdi-1.0.0.tar.gz 8039 SHA256 5279cd356a680ef22dafc13a8b674eafa81c2bc82f57b38b04059b16c046f1b0 SHA512 ebf026f61f0b0a339e3dfa5c9dd6a819ef23f0d29948073cbf5f6ae9668e68a7dd903f695ab5a824494f8424dad8b79aace5742bc23484a25303a15aa32ab698 WHIRLPOOL ed3199facbd8cdef6f37e8e595d6c91d994e0fdbe449ab95e4db6bb95e1ae6f0ed0c8650281a7aab9de7d22e8ef9f96dfb9383716043a99ca4c6ebbfd815248a
+EBUILD xxdi-1.0.0.ebuild 524 SHA256 9f581bd1e2189ea0896f6a60152a284069ef2607f1d8ea7a06062f58510cb346 SHA512 fb0557381100c993af68928e186c007f216ea0eb1a9ddab2b1f6da3c8ed6ee9ff502ab555d8d40c9be4a08870e7450f363775b8abbaabd99632fd44839213d21 WHIRLPOOL 3381d4ae30a56f5b83a199029c320440106f30c0e9ff8102810314a69d4aa58444a0c8d2fd38ad6bb4db24bbf325d59da8bcede10a6b89e163df176b131f4211
+MISC ChangeLog 2414 SHA256 26cf0f91fc5db9346f3e06c9c770c28e2547f0ef9b600e016a5262897fcf030a SHA512 2bea958953069c73df301ec8babbdf94c7e61ffdf2d1c1334b2beb0662f4788b62d2cbbf876d04d12313b7dc945246f66eb3df8e439bb80dd9a6f2b022bad460 WHIRLPOOL ad1eeca3e118cc44e3e14b5267fcf403911b2e3ff5ece6f2a665d4b587152a6ef4f71bfd85e8ef1e94713e72af9c8b85efefd904473e3bbd825eaffb3e54aa95
+MISC ChangeLog-2015 848 SHA256 71999ffa608e8e735c5ced12642552d29de84dce1d19d4a9fe8b0096fdb4b580 SHA512 f7306c9f9bf7abad0a7148910b0d04b2bc9d4a11a97d6fe48aa142986a86fde6e664635f0192823fde0edb8b21f7697ce7dfd2ecb79ed5d0455caa65505e3f34 WHIRLPOOL 1939b90a77ac301cd646fa14f41c898dce9d93e172394afafc1f657ac0da9231defb234fdbe033ed22e1ef1968c9b248a261cc4c3378b67704f5e0df0d461c61
+MISC metadata.xml 725 SHA256 70bba3f8e76510f3101d3e16bd3db14369fca5b9a3ddcfdd4133275debc7f573 SHA512 e123546a703ba283f8f4cebdf737d911d88405fd7a36b991939497891eef66ca2253711dba21b67a3ce58bf1fadb21054c20464c05e2cf42295cd1eef8cb6626 WHIRLPOOL 7c829ae3c460e1cf77de9c05f12061b714ba2aa6fa31fa66989cdc81c1c82bd8468f40376fa2451a588c21f365dd37a92713376a353d2f8cbfca57afa64bcff8
diff --git a/dev-util/xxdi/metadata.xml b/dev-util/xxdi/metadata.xml
new file mode 100644
index 000000000000..2e483a030941
--- /dev/null
+++ b/dev-util/xxdi/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <longdescription lang="en">
+ xxdi.pl is a perl script that implements vim's 'xxd -i' mode
+ so that packages do not have to use all of vim just to get this
+ functionality.
+
+ efitools is an example of a package that uses it in this manner,
+ and in some build configurations, mediastreamer also does.
+ </longdescription>
+ <upstream>
+ <maintainer status="active">
+ <email>gregkh@linuxfoundation.org</email>
+ <name>Greg Kroah-Hartman</name>
+ </maintainer>
+ <bugs-to>https://github.com/gregkh/xxdi/issues</bugs-to>
+ <remote-id type="github">gregkh/xxdi</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/xxdi/xxdi-1.0.0.ebuild b/dev-util/xxdi/xxdi-1.0.0.ebuild
new file mode 100644
index 000000000000..e5a189229eee
--- /dev/null
+++ b/dev-util/xxdi/xxdi-1.0.0.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+MODULE_VERSION=001
+
+DESCRIPTION="Simple alternative to vim's 'xxd -i' mode"
+HOMEPAGE="https://github.com/gregkh/xxdi"
+SRC_URI="https://github.com/gregkh/xxdi/archive/v${MODULE_VERSION}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc ppc64 x86"
+IUSE=""
+
+RDEPEND="dev-lang/perl
+ dev-perl/File-Slurp"
+
+S=${WORKDIR}/${PN}-${MODULE_VERSION}
+
+src_install() {
+ dobin xxdi.pl
+ dodoc README.md
+}
diff --git a/dev-util/xxdiff/Manifest b/dev-util/xxdiff/Manifest
new file mode 100644
index 000000000000..8eb80179e3d4
--- /dev/null
+++ b/dev-util/xxdiff/Manifest
@@ -0,0 +1,11 @@
+AUX xxdiff-4.0.1-no-throw-in-dtor.patch 667 SHA256 a8d57065b7955602323e3dcd639012b2451a9e0b7e6bd902c8ab1e61b4e20340 SHA512 254961c7a3baced5f9dafdb71583145de4d8fccbc49ffb13568bf7414326ee3811389f38b1ac290f67867eebf0b724f5cdd776deab8b3f850847e1783bbf085f WHIRLPOOL ad5e9ddc5da2affacc531c7722c8e118f256ebc192c50d61d1323b83d39a95cb62f15b22d18e7fbf11c4df8c530414f20bb998cbf54eaf42480130c5aa3e5fdb
+AUX xxdiff-4.0_beta1_p20110426-bison3.patch 3243 SHA256 210ecb4f22ab81320ff121a92feecc4013a08e4530d1c129f00173542c3712d4 SHA512 179b57f579cc0ef20d3b391b9120726c44549c363fb6a0d88528a6e0bcf256d144fce99d44bbd5510fc42c5a8aea8b4a9ffea6aeb0a667a15b89af0e51893832 WHIRLPOOL 0a1df0b0d1c05392ee350e177988ac162b7a4b768d6a7196a592ce60098e307ec2f9d0b25a3e06966c1b1c975518318f22fff9ccb62f37b7d8a7509c9fdb1af7
+AUX xxdiff-4.0_beta1_p20110426-gcc47.patch 631 SHA256 1393715259ef607f6f56d1117751620e02d600a7dea5aa99cb04c8157dc63b99 SHA512 df3a4362d160cabdf3fb590965258b69d854ae3becef19d754932851e47d98d93869d666c41c11743d49cdc84222b2f0e819b119e2af8f7a3679e714bda13885 WHIRLPOOL 0b7e19d8e8af099569e888bd4e77acb56289bf84ee82118a1649e63e7a9d26e1c86847a0c135b88ad5878b5b50f7a70e26a8d3637bc8574d1d36dbe807f02174
+DIST xxdiff-4.0.1.tar.bz2 1981869 SHA256 bf58ddda9d7a887f4f5cae20070ed5f2e0d65f575af20860738c6e2742c3a000 SHA512 bcc2b528a0ebf273677d74aa3a971feb9052a01a8187a5d8abe3bce744520a3fa61bd842a9d4ba465abbf00f6da62868a1f18adeb7d8eccee6f76df4a1e4db3a WHIRLPOOL f85bc19e982744194d2c3eab726adb9865a805e00fae9c6d286ad8025f23334da33fbafb87b149f1b3723c7511b49322ba04cbe6292be9948b65670db3fc1dcb
+DIST xxdiff-4.0_beta1_p20110426.tar.bz2 1770035 SHA256 70718eeb26e8880e2cda06d7ff6fe2e3fa9ea407086086f70ec1eb0e32301afe SHA512 d0be7a5775ed90aa1ac73320144aa24947c1bcc305bbb8f95c64009990dc44b96fd05abd7dc3f69c3a74fb93632099f4a40c76029ed29949854c5f3d7a890097 WHIRLPOOL 05048f3594d042f0130f0da20951bb124867ebfea55902bcabead5c8ba097fa4eb1f834b1f19b1ba7d36536f53240942414d143b3c4b6e0678909a5c4a5c6855
+EBUILD xxdiff-4.0.1-r1.ebuild 1137 SHA256 37b328dd9f02a88742ebe11f453d40bbc671147118e91b67924b474db854350d SHA512 af5bfc98af1cfe73327718b352335379e0e07c20c8814a6e13b3009a590a6cb9b5bfd395da0a1e51ec2793c13a05c8ac31ed5c3d5b9c3cdcf4e89de87387fbe3 WHIRLPOOL 3acbb647a6d7eeee65d77447ada8bf5caba486b097cdeeac815352898d93e36575271fcc2aaaf4573c9564c250de8afb4ae210fc4acc251a7eb7f447e7347dad
+EBUILD xxdiff-4.0.1.ebuild 1087 SHA256 405572bf3f0609e1ea3f6a0e5ecd95913737e3354ec42039e7dc3fa925b9afa1 SHA512 a1478abaf30230b1a36af7bf2a7d09f23ec0a8fa06f25f74abdd3ecce4c5b682d5380b89f45cef80a2051c10ca36abb2697219c4dbfc4d3aa5cd1b4600d12a34 WHIRLPOOL f6f0a00cbb5432c98c13b1d96cd4fc71f2821862addd2c9a96aec89b9622ff9e4bc1c5ed89162756dda8ce0817bb6f1ee6c57dccee4bda09d4e7e94490d39295
+EBUILD xxdiff-4.0_beta1_p20110426-r1.ebuild 1154 SHA256 b5539b0720807be19d14920c89073c4c1be9d96a1411c29a3d7360b4d90abbd4 SHA512 2f538add6f3e640a6b329f57ebd6dba113acd6792c935f6bf8907a8a23b3934f623d4c05d12f6305b668637e84d10b34fec847735e0743e4991d1de9ae911964 WHIRLPOOL 3ea3de110a6f9cc534a62c69e3ef36903d74106b9b65f6b7390bf6300ae36ccd3a1671e054608b947b5a56d807b1387cf2ca7fd0603db1901d115aa0e00297e5
+MISC ChangeLog 3924 SHA256 8b98adf92c647d4ce75f18757ddc515e954dab43491533bfd24460f63c1ba312 SHA512 e867541249dc4d2fcb5603fa0df7b36b971984351c32b1b02a7d20c9fc71f19d6a4c9dbb79bdf8aa6dcd0453b5fd0715fe4bdcb9008db119d971bb72179f7e5f WHIRLPOOL 4f5a2965b495f03a2a673834a7cd55a0db60ee75b893acc3c4f12501726441806f2863db3eee7f843dd94d29773e72e43ec1b2f8e05e3cd8aa548863d2aedf76
+MISC ChangeLog-2015 1937 SHA256 dea0a92901333f83cde5da633771935da9abfe189411c929c4079a3478864d0d SHA512 74c48e7f4d934d41c63591750e5a8b1470cf1ee3e3ca8ebf6b5e19a43cc9bcc6064a100a04e92f4e37988aaa3b2352b7508145173793e28574bd73656a959869 WHIRLPOOL 93d5f854703fc91bddaaafe019e8a86b4cbd99a25dbce150ce7ffba70f8a1e5f51c9513d54f34cef41bc95f829424845986933af825529ca52fc3d5dcc5d1c4e
+MISC metadata.xml 435 SHA256 ff3a95aefc918b55d6172fb2b7e6ff3747f2694cfad811e72993b1c56f8f9458 SHA512 2ed2dc743bf4787b8a10c379ec52d84b8b76305f1b80b85da3b7c44ad5e3642673e34f9159d7804bb0780ef8a31d49d121c04c885d524253ab0e8ebde04136ed WHIRLPOOL 255005f52212b0227228f17cb58da59dcbdc271fb8d5dcecb5240eda0cf713211ea2c77fc4c27551e2b3871b1427d37650d9430dacebc73deb79a97bd5bf40f8
diff --git a/dev-util/xxdiff/files/xxdiff-4.0.1-no-throw-in-dtor.patch b/dev-util/xxdiff/files/xxdiff-4.0.1-no-throw-in-dtor.patch
new file mode 100644
index 000000000000..93162cc615b4
--- /dev/null
+++ b/dev-util/xxdiff/files/xxdiff-4.0.1-no-throw-in-dtor.patch
@@ -0,0 +1,16 @@
+Build failure triggers on CXXFLAGS=-Werror=terminate
+
+ cmdline.cpp: In destructor ‘virtual XxCmdline::~XxCmdline()’:
+ ./defs.h:121:43: error: throw will always call terminate() [-Werror=terminate]
+ { throw XxInternalError( XX_EXC_PARAMS ); } ^
+ cmdline.cpp:369:7: note: in expansion of macro ‘XX_ASSERT’
+
+https://bugs.gentoo.org/601018
+diff --git a/src/cmdline.cpp b/src/cmdline.cpp
+index 8cb0ac9..174b9a4 100644
+--- a/src/cmdline.cpp
++++ b/src/cmdline.cpp
+@@ -368,3 +368,2 @@ XxCmdline::~XxCmdline()
+ for ( int ii = 0; ii < _nbQtOptions; ++ii ) {
+- XX_ASSERT( _qtOptions[ii] != 0 );
+ #ifndef WINDOWS
diff --git a/dev-util/xxdiff/files/xxdiff-4.0_beta1_p20110426-bison3.patch b/dev-util/xxdiff/files/xxdiff-4.0_beta1_p20110426-bison3.patch
new file mode 100644
index 000000000000..fba71996b217
--- /dev/null
+++ b/dev-util/xxdiff/files/xxdiff-4.0_beta1_p20110426-bison3.patch
@@ -0,0 +1,100 @@
+http://bugs.gentoo.org/511560
+
+Description: Fix compilation with Bison 3
+YYPARSE_PARAM was deprecated in Bison 1.875 and removed in Bison 3;
+%parse-param can be used instead. Also fix a warning about %pure_parser
+Author: Florian Schlichting <fsfs@debian.org>
+
+--- a/src/resParser.y
++++ b/src/resParser.y
+@@ -39,12 +39,11 @@
+
+ // The parser input is the resources object to fill in.
+ #define RESOURCES ( static_cast<XxResources*>(resources) )
+-#define YYPARSE_PARAM resources
+
+ // Declare lexer from other compilation unit.
+ int resParserlex( YYSTYPE* yylval );
+
+-void resParsererror( const char* msg );
++void resParsererror( void *resources, const char* msg );
+
+ // Declare some parser functions and data defined in resParser.cpp
+ namespace XxResParserNS {
+@@ -58,6 +57,9 @@
+
+ %}
+
++/* The parser input is the resources object to fill in. */
++%parse-param { void *resources }
++
+ /* generate header file */
+ %defines
+
+@@ -144,7 +146,7 @@
+ %type <num> boolkwd
+
+ %start xxdiffrc
+-%pure_parser
++%pure-parser
+
+ %%
+ xxdiffrc : stmts
+@@ -188,7 +190,7 @@
+ RESOURCES->setPreferredGeometry( geometry );
+ }
+ else {
+- yyerror( "Bad geometry specification." );
++ yyerror( resources, "Bad geometry specification." );
+ // Should never happen, the lexer regexp should be tough
+ // enough.
+ }
+@@ -212,7 +214,7 @@
+ QString err = QString( "Requested style key does not exist." );
+ err += QString( "\nValid styles are: " );
+ err += styles.join( ", " );
+- yyerror( err.toLatin1().constData() );
++ yyerror( resources, err.toLatin1().constData() );
+ }
+ }
+ ;
+@@ -224,7 +226,7 @@
+ char buf[2048];
+ ::snprintf( buf, 2048,
+ "Unrecognized accelerator: %s\n", $5 );
+- yyerror( buf );
++ yyerror( resources, buf );
+ }
+ }
+ ;
+--- a/src/resParser.l
++++ b/src/resParser.l
+@@ -298,7 +298,7 @@
+ QString os;
+ QTextOStream oss( &os );
+ oss << "ignoring char: " << yytext << flush;
+- yyerror( os.latin1() );
++ yyerror( resources, os.latin1() );
+ */
+ }
+ }
+--- a/src/resParser.cpp
++++ b/src/resParser.cpp
+@@ -73,7 +73,7 @@
+
+ //------------------------------------------------------------------------------
+ //
+-void resParsererror( const char* msg )
++void resParsererror( void* resources __attribute__((__unused__)), const char* msg )
+ {
+ // Send errors to stdout so we can filter out the debug info shmeglu while
+ // debugging parser.
+@@ -794,7 +794,7 @@
+ QString os;
+ QTextStream oss( &os );
+ oss << "Unknown " << errmsg << ": " << name << flush;
+- resParsererror( os.toLatin1().constData() );
++ resParsererror( NULL, os.toLatin1().constData() );
+ }
+ num = ERROR_TOKEN;
+ return ERROR_TOKEN;
diff --git a/dev-util/xxdiff/files/xxdiff-4.0_beta1_p20110426-gcc47.patch b/dev-util/xxdiff/files/xxdiff-4.0_beta1_p20110426-gcc47.patch
new file mode 100644
index 000000000000..2dcea00bcba2
--- /dev/null
+++ b/dev-util/xxdiff/files/xxdiff-4.0_beta1_p20110426-gcc47.patch
@@ -0,0 +1,24 @@
+https://bugs.gentoo.org/show_bug.cgi?id=442302
+
+# HG changeset patch
+# User Martin Blais <mblais@marketfactory.com>
+# Date 1339464558 14400
+# Node ID 00d868ea5f4a92f4b5c7e2665403eb18c7390aca
+# Parent fdc247a7d9e51ca71b284f592be33f0465140f6b
+Fixed compile error that only shows up in FC17 with gcc-4.7.
+
+diff -r fdc247a7d9e5 -r 00d868ea5f4a src/main.h
+--- a/src/main.h Mon Feb 20 10:46:22 2012 -0500
++++ b/src/main.h Mon Jun 11 21:29:18 2012 -0400
+@@ -35,6 +35,10 @@
+ * PUBLIC DECLARATIONS
+ *============================================================================*/
+
++extern "C" {
++
+ extern char** environ;
+
++}
++
+ #endif
+
diff --git a/dev-util/xxdiff/metadata.xml b/dev-util/xxdiff/metadata.xml
new file mode 100644
index 000000000000..95131383c5a8
--- /dev/null
+++ b/dev-util/xxdiff/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="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>slyfox@gentoo.org</email>
+ <name>Sergei Trofimovich</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">xxdiff</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/xxdiff/xxdiff-4.0.1-r1.ebuild b/dev-util/xxdiff/xxdiff-4.0.1-r1.ebuild
new file mode 100644
index 000000000000..253a5704bce6
--- /dev/null
+++ b/dev-util/xxdiff/xxdiff-4.0.1-r1.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1 eutils qt4-r2
+
+DESCRIPTION="A graphical file and directories comparator and merge tool"
+HOMEPAGE="http://furius.ca/xxdiff/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="dev-qt/qtgui:4"
+DEPEND="${RDEPEND}
+ virtual/yacc"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-no-throw-in-dtor.patch
+ pushd src >/dev/null
+ sed -i -e '/qPixmapFromMimeSource/d' *.ui || die #365019
+ qt4-r2_src_prepare
+ popd
+
+ distutils-r1_src_prepare
+}
+
+src_configure() {
+ pushd src >/dev/null
+ qt4-r2_src_configure
+ cat Makefile.extra >> Makefile
+ popd
+
+ distutils-r1_src_configure
+}
+
+src_compile() {
+ pushd src >/dev/null
+ qt4-r2_src_compile
+ popd
+
+ distutils-r1_src_compile
+}
+
+src_install() {
+ dobin bin/xxdiff
+
+ distutils-r1_src_install
+
+ dodoc CHANGES README* TODO doc/*.txt src/doc.txt
+
+ dohtml doc/*.{png,html} src/doc.html
+
+ # example tools, use these to build your own ones
+ insinto /usr/share/doc/${PF}
+ doins -r tools
+}
diff --git a/dev-util/xxdiff/xxdiff-4.0.1.ebuild b/dev-util/xxdiff/xxdiff-4.0.1.ebuild
new file mode 100644
index 000000000000..9ba26ac0ea35
--- /dev/null
+++ b/dev-util/xxdiff/xxdiff-4.0.1.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1 eutils qt4-r2
+
+DESCRIPTION="A graphical file and directories comparator and merge tool"
+HOMEPAGE="http://furius.ca/xxdiff/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="dev-qt/qtgui:4"
+DEPEND="${RDEPEND}
+ virtual/yacc"
+
+src_prepare() {
+ pushd src >/dev/null
+ sed -i -e '/qPixmapFromMimeSource/d' *.ui || die #365019
+ qt4-r2_src_prepare
+ popd
+
+ distutils-r1_src_prepare
+}
+
+src_configure() {
+ pushd src >/dev/null
+ qt4-r2_src_configure
+ cat Makefile.extra >> Makefile
+ popd
+
+ distutils-r1_src_configure
+}
+
+src_compile() {
+ pushd src >/dev/null
+ qt4-r2_src_compile
+ popd
+
+ distutils-r1_src_compile
+}
+
+src_install() {
+ dobin bin/xxdiff
+
+ distutils-r1_src_install
+
+ dodoc CHANGES README* TODO doc/*.txt src/doc.txt
+
+ dohtml doc/*.{png,html} src/doc.html
+
+ # example tools, use these to build your own ones
+ insinto /usr/share/doc/${PF}
+ doins -r tools
+}
diff --git a/dev-util/xxdiff/xxdiff-4.0_beta1_p20110426-r1.ebuild b/dev-util/xxdiff/xxdiff-4.0_beta1_p20110426-r1.ebuild
new file mode 100644
index 000000000000..ead20c6c3297
--- /dev/null
+++ b/dev-util/xxdiff/xxdiff-4.0_beta1_p20110426-r1.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1 eutils qt4-r2
+
+DESCRIPTION="A graphical file and directories comparator and merge tool"
+HOMEPAGE="http://furius.ca/xxdiff/"
+SRC_URI="mirror://gentoo/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND="dev-qt/qtgui:4"
+DEPEND="${RDEPEND}
+ virtual/yacc"
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${P}-gcc47.patch \
+ "${FILESDIR}"/${P}-bison3.patch
+
+ pushd src >/dev/null
+ sed -i -e '/qPixmapFromMimeSource/d' *.ui || die #365019
+ qt4-r2_src_prepare
+ popd
+
+ distutils-r1_src_prepare
+}
+
+src_configure() {
+ pushd src >/dev/null
+ qt4-r2_src_configure
+ cat Makefile.extra >> Makefile
+ popd
+
+ distutils-r1_src_configure
+}
+
+src_compile() {
+ pushd src >/dev/null
+ qt4-r2_src_compile
+ popd
+
+ distutils-r1_src_compile
+}
+
+src_install() {
+ dobin bin/xxdiff
+
+ distutils-r1_src_install
+
+ dodoc CHANGES README* TODO doc/*.txt src/doc.txt
+
+ dohtml doc/*.{png,html} src/doc.html
+
+ # example tools, use these to build your own ones
+ insinto /usr/share/doc/${PF}
+ doins -r tools
+}
diff --git a/dev-util/yacc/Manifest b/dev-util/yacc/Manifest
new file mode 100644
index 000000000000..dd41f7e9f59c
--- /dev/null
+++ b/dev-util/yacc/Manifest
@@ -0,0 +1,8 @@
+AUX yacc-1.9.1-CVE-2008-3196.patch 1199 SHA256 5bd7b40a6b600575d37ab0ee93a31cc5e6896c828884504d2aee5dc247fbc25e SHA512 7c636f5b6d98d4bf33b60ae1c49079fc849c35ca9f84e3277bafc58d9689c7b8021af34c3d7411d8637b1c821036105e73b6d5770241de72d5358718a052abf3 WHIRLPOOL c03f1a6ce34b5b22521acfe2ad42eb48b1c36d386acbe6344bc3aa6c22f6e21439c9495eb8818f98d139286a66c1f28bab2a4e944ea31401df65cf90e4485567
+AUX yacc-1.9.1-ia64.patch 504 SHA256 8bea1acbb1a2b225376df4c7b382dad05751b5fd073d1a3483a2c83e4ae4295a SHA512 6525f6c3f9d0011fea00781a24fb0f2d4f80a13835746d8ea8b05a762d789d5f17984da04f32178dbdd73ab098be38fe044bf108ed2e145888cf5ebfe84bb1ec WHIRLPOOL 666eecf30061b7a5282d2553b17fb5d97ba01df8cfd56aa18b3d9cac25760ad15c23ee80fde06dfb994bd108d61e4ab7a9b54c55a924c3d64ae6b90e7acbf71d
+AUX yacc-1.9.1-mkstemp.patch 417 SHA256 9e17663bef7483f66400ae638d3dc57e65014ac864cd466f12e97a00ea4f3443 SHA512 c36d07d4fafc363fcb0173fc17cf4e37dfe20fcfe7df7faaa11d5cc47f9b933a4f192c55f738d1cdcf7f87ddb07311bbc54aa502d8e68b8e7831bf1daba8da03 WHIRLPOOL 80aee37d01db9adc70e89808327d1f1a8506e1effa52d6df3dd5fe3f6a324e1d4cdc4899f0aecfe222afeb1c537902d7229ec6c91de671b30509b25056724ad5
+DIST yacc-1.9.1.tar.Z 64805 SHA256 8a0f3faf78d0ada00eea5ffd1e141bb7a979d5d570a4c8a9a6ea57e5f3751477 SHA512 6adb51c5f07e8084a86688589f52d9eee0183fb4d77508e36621a6b0ba91a5c4195feb87db3401ec69560554f71f2f6984dec01266e41e0fd54fa72ef1780e80 WHIRLPOOL 91bcefbf56374559c83c40ff5c15303d6547c607aa0ab98eea2883dc78fd82d638d6638787eb89fa283cc19791bf9e1cc3041ecc435404b012d913ee04664560
+EBUILD yacc-1.9.1-r6.ebuild 1550 SHA256 64a0d399f0213df5c2f95919f9ef240671c5eda27bd453e74f37cb1d8527a8b8 SHA512 b3beb6e9a2fc0d09044bcf4cd4b22ac4496659e518633a0ca7caaec91f933405fbb06c0571ecd557fc8496e4940ef6f09b4b1368775210e4d3e7d53e9fee6af6 WHIRLPOOL c44b2f96f74bd87d1e5751a5e663b2924f190ff02561b095d095b7400a52799e995e5f29a2ce97401ed6c1d95574d2750c5e568d56bb515b9b08d19f59b21ccd
+MISC ChangeLog 3800 SHA256 f8412c593d39b6872022f0b8bb72911fa6820b9ac23cbefcaac5a2cfbbdfa966 SHA512 1da5f76e41b3fd9d5a5a1e913ddbaf1b2fd348cdf924abe351cc31b31c8cb16fbb59126025c0183a1749f9aaa25a9295269f15f1bc4fd259d8acab000d77aeb4 WHIRLPOOL 141e80aaf170e67b5c4c44a843c1f1137ba7187d783dc1d63ab384e21c2bb3c8e21d049400aca12bd6e736887e355ffada020a429ddd4f3cb86d1b5fc2977369
+MISC ChangeLog-2015 3826 SHA256 eb040be53bb12023e21cc37871b0b425db30ddcf141466fbfdc47abca7b6adf1 SHA512 ea7f2dcde89a9b2a0c00ed18fb562dac75be8715cd795b88c5695686251894645375dde53ba9eb4d9b3fe61abb9eef6fc0db8ed19797cc674b567699e7d52ffc WHIRLPOOL cefa66658dcdff9c6f04760bb2ecc71b9e25313f08231bcca05a529099bd1bdb1bbfb50828d029fb0de261a24876720377d56a8d3823422144d38185cf8067c6
+MISC metadata.xml 220 SHA256 998ce4afb847c8594ee92e054f8a06ae3de375d38b2e400eebab911ebbad60a8 SHA512 1db105eebacb6c7d44fd17746981e6e24badb2e81327410aa935a7603379cfcc8f3cf27dcf4e9d870cea2f73f6a15cf052e3e785205095ea9a93d72980ff71cc WHIRLPOOL 23c78e4c05afc8a04239236928ca26e539b0a969f44389b90a34fef3f4a57f18d9db2838d3df439c482cd4b89ce8b959dde5e83500c44ebd2af453629ef79a3d
diff --git a/dev-util/yacc/files/yacc-1.9.1-CVE-2008-3196.patch b/dev-util/yacc/files/yacc-1.9.1-CVE-2008-3196.patch
new file mode 100644
index 000000000000..2fbb83cfc6b1
--- /dev/null
+++ b/dev-util/yacc/files/yacc-1.9.1-CVE-2008-3196.patch
@@ -0,0 +1,33 @@
+Tue Jul 8 15:06:50 2008 UTC by otto
+
+Fix an venerable bug: if we're reducing a rule that has an empty
+right hand side and the yacc stackpointer is pointing at the very
+end of the allocated stack, we end up accessing the stack out of
+bounds by the implicit $$ = $1 action. Detected by my new malloc,
+experienced by sturm@ on sparc64; ok deraadt@
+
+
+Index: yacc-1.9.1/skeleton.c
+===================================================================
+--- yacc-1.9.1.orig/skeleton.c
++++ yacc-1.9.1/skeleton.c
+@@ -18,6 +18,7 @@ char *banner[] =
+ "/*static char yysccsid[] = \"from: @(#)yaccpar 1.9 (Berkeley) 02/21/93\";*/",
+ "static char yyrcsid[] = \"$Id: yacc-1.9.1-CVE-2008-3196.patch,v 1.1 2008/10/04 18:57:18 rbu Exp $\";",
+ "#endif",
++ "#include <string.h>",
+ "#define YYBYACC 1",
+ "#define YYMAJOR 1",
+ "#define YYMINOR 9",
+@@ -226,7 +227,10 @@ char *body[] =
+ " YYPREFIX, yystate, yyn, yyrule[yyn]);",
+ "#endif",
+ " yym = yylen[yyn];",
+- " yyval = yyvsp[1-yym];",
++ " if (yym)",
++ " yyval = yyvsp[1-yym];",
++ " else",
++ " memset(&yyval, 0, sizeof yyval);",
+ " switch (yyn)",
+ " {",
+ 0
diff --git a/dev-util/yacc/files/yacc-1.9.1-ia64.patch b/dev-util/yacc/files/yacc-1.9.1-ia64.patch
new file mode 100644
index 000000000000..c10e88541287
--- /dev/null
+++ b/dev-util/yacc/files/yacc-1.9.1-ia64.patch
@@ -0,0 +1,24 @@
+--- byacc-1.9/defs.h.busted Sat May 6 21:10:56 2000
++++ byacc-1.9/defs.h Sat May 6 21:11:22 2000
+@@ -1,7 +1,8 @@
+ #include <assert.h>
+ #include <ctype.h>
+ #include <stdio.h>
+-
++#include <string.h>
++#include <stdlib.h>
+
+ /* machine-dependent definitions */
+ /* the following definitions are for the Tahoe */
+@@ -280,10 +281,3 @@
+ extern int errno;
+
+
+-/* system functions */
+-
+-extern void free();
+-extern char *calloc();
+-extern char *malloc();
+-extern char *realloc();
+-extern char *strcpy();
+
diff --git a/dev-util/yacc/files/yacc-1.9.1-mkstemp.patch b/dev-util/yacc/files/yacc-1.9.1-mkstemp.patch
new file mode 100644
index 000000000000..5c72a6e9bc14
--- /dev/null
+++ b/dev-util/yacc/files/yacc-1.9.1-mkstemp.patch
@@ -0,0 +1,15 @@
+--- a/main.c.orig 2002-12-17 14:28:54.000000000 -0500
++++ b/main.c 2002-12-17 14:29:31.000000000 -0500
+@@ -264,9 +264,9 @@
+ text_file_name[len + 5] = 't';
+ union_file_name[len + 5] = 'u';
+
+- mktemp(action_file_name);
+- mktemp(text_file_name);
+- mktemp(union_file_name);
++ mkstemp(action_file_name);
++ mkstemp(text_file_name);
++ mkstemp(union_file_name);
+
+ len = strlen(file_prefix);
+
diff --git a/dev-util/yacc/metadata.xml b/dev-util/yacc/metadata.xml
new file mode 100644
index 000000000000..294c350c6960
--- /dev/null
+++ b/dev-util/yacc/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>monsieurp@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-util/yacc/yacc-1.9.1-r6.ebuild b/dev-util/yacc/yacc-1.9.1-r6.ebuild
new file mode 100644
index 000000000000..0462eee56053
--- /dev/null
+++ b/dev-util/yacc/yacc-1.9.1-r6.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit toolchain-funcs
+
+DESCRIPTION="Yacc: Yet Another Compiler-Compiler"
+HOMEPAGE="http://dinosaur.compilertools.net/#yacc"
+SRC_URI="ftp://metalab.unc.edu/pub/Linux/devel/compiler-tools/${P}.tar.Z"
+
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 s390 sh sparc x86"
+
+PATCHES=(
+ # mkstemp patch from byacc ebuild.
+ "${FILESDIR}/${P}-mkstemp.patch"
+
+ # The following patch fixes yacc to run correctly on ia64 (and
+ # other 64-bit arches). See bug 46233.
+ "${FILESDIR}/${P}-ia64.patch"
+
+ # Avoid stack access error. See bug 232005.
+ "${FILESDIR}/${P}-CVE-2008-3196.patch"
+)
+
+src_prepare() {
+ default
+
+ # Use our CFLAGS and LDFLAGS.
+ sed -i -e 's: -O : $(CFLAGS) $(LDFLAGS) :' Makefile || die 'sed failed'
+}
+
+src_compile() {
+ emake clean
+ emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}"
+}
+
+src_install() {
+ dobin "${PN}"
+ doman "${PN}.1"
+ dodoc 00README* ACKNOWLEDGEMENTS NEW_FEATURES NO_WARRANTY NOTES README*
+}
+
+pkg_preinst() {
+ # bison installs a /usr/bin/yacc symlink ...
+ # we need to remove it to avoid triggering
+ # collision-protect errors. See bug 90089.
+ if [[ -L "${ROOT}/usr/bin/${PN}" ]]; then
+ rm -v "${ROOT}/usr/bin/${PN}" || die
+ fi
+}
+
+pkg_postrm() {
+ # and if we uninstall yacc but keep bison,
+ # let's restore the /usr/bin/yacc symlink.
+ if [[ ! -e "${ROOT}/usr/bin/${PN}" ]] && [[ -e "${ROOT}/usr/bin/${PN}.bison" ]]; then
+ ln -s yacc.bison "${ROOT}/usr/bin/${PN}" || die
+ fi
+}
diff --git a/dev-util/yuicompressor/Manifest b/dev-util/yuicompressor/Manifest
new file mode 100644
index 000000000000..00863ddb6345
--- /dev/null
+++ b/dev-util/yuicompressor/Manifest
@@ -0,0 +1,4 @@
+DIST yuicompressor-2.4.8.tar.gz 1254322 SHA256 199ed2e4a05330b72cc1802347e2ae449112bb955894d44f596c1ef7319167bf SHA512 cb955fc3677f930403f4f97aaad5d6ca5ec6ee834f464005ddfd8d83c4a532180859b72d55a4025b13f05a6a0146a1391d93668452e57035d4fc4f4d7f20d00b WHIRLPOOL 275ce13b4f61c85e610f16016a5b0f5ef75b04f0ff40463a148c8e037521b8a1f983f0b63bbc9c2ea7a14c46a5854d5d586e017518cda0493d4fb25a91d8c2e1
+EBUILD yuicompressor-2.4.8-r2.ebuild 1071 SHA256 bdfb0edee2ce3ea580b58bd2c72e87cbb79552e1a6f4d6d1566ab9c66a25e699 SHA512 e050c2ccee9e34294c8be404a74f977f0f81d0c28491f94dd51fee63e835acbd5cca6a1d42500e1e1a3b6292f5d51f8c952fc89112c0d35c5199f9a5d2dca051 WHIRLPOOL d66f147def96b169f401c1ab97745cf2fca7769c8b485dff6ef95f30bce9ff41e7b730f9f03941f54525bc0dcf924ea04b2cbad6d9184b90477478ca83f2dcb9
+MISC ChangeLog 1971 SHA256 f6cf411aec6812e78aeea19ff8dd6a1c8df312fcd7da3063836223e213f20ec3 SHA512 1d9d07a8a88bacacaa18e18c578436f021f11e34ef7028b4b0c6da64ea97f2d7d70643fefe9d6935f29160ca2e6723cdc3a366ba66b79f65315decaebbe1141e WHIRLPOOL c27eb4566d9e456f24248ace5a1c52b6b95a84e91f9b9537b59aa02def5e17825cc6d38cf90d052b1d7a7a334bd16277de46129ba722f3450e2205ef77e3cd49
+MISC metadata.xml 492 SHA256 ea82e9d9c927971207f276b9e248f7fa9f531839a212faff4f5429c6a08b43f9 SHA512 699d1b2c881c60855eb94b7744c6134ce4006548d01394e584059cde9837c91df3680357b79579f3b9af07666d50e68d357b571e6deabb191b7798a514c5ac6a WHIRLPOOL eb5b021504a44f8ca7b795ba71fa16b04e9b5788335fae14bd54dfb039a5c3e5321d5d4bf8a2f661a1422cd5c42b357ce397b178d345c0c497f1c5de014071fe
diff --git a/dev-util/yuicompressor/metadata.xml b/dev-util/yuicompressor/metadata.xml
new file mode 100644
index 000000000000..5c7f3dccbe10
--- /dev/null
+++ b/dev-util/yuicompressor/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>hydrapolic@gmail.com</email>
+ <name>Tomas Mozes</name>
+ <description>Proxy maintainer</description>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">yui/yuicompressor</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/yuicompressor/yuicompressor-2.4.8-r2.ebuild b/dev-util/yuicompressor/yuicompressor-2.4.8-r2.ebuild
new file mode 100644
index 000000000000..c3ae956f568b
--- /dev/null
+++ b/dev-util/yuicompressor/yuicompressor-2.4.8-r2.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+RHINO_JAR="lib/rhino-1.7R2.jar"
+JAVA_PKG_IUSE="doc source"
+
+inherit java-pkg-2 java-pkg-simple
+
+DESCRIPTION="JavaScript and CSS compressor"
+HOMEPAGE="http://yui.github.io/yuicompressor/"
+SRC_URI="https://github.com/yui/yuicompressor/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+CDEPEND="
+ dev-java/jargs:0"
+
+DEPEND="
+ ${CDEPEND}
+ >=virtual/jdk-1.6"
+
+RDEPEND="
+ ${CDEPEND}
+ >=virtual/jre-1.6"
+
+S="${WORKDIR}/${P}"
+JAVA_GENTOO_CLASSPATH="jargs"
+JAVA_GENTOO_CLASSPATH_EXTRA="${S}/${RHINO_JAR}"
+JAVA_SRC_DIR="src"
+
+java_prepare() {
+ # Rhino must stay bundled for now.
+ rm -v lib/jargs*.jar || die
+
+ # Normally build.xml does this.
+ sed -i "s/@VERSION@/${PV}/g" \
+ src/com/yahoo/platform/yui/compressor/YUICompressor.java || die
+}
+
+src_install() {
+ java-pkg-simple_src_install
+ java-pkg_newjar ${RHINO_JAR} rhino.jar # Install this last!!
+ java-pkg_dolauncher ${PN} --main com.yahoo.platform.yui.compressor.Bootstrap
+}