summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /app-misc
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'app-misc')
-rw-r--r--app-misc/abduco/Manifest2
-rw-r--r--app-misc/abduco/abduco-0.2.ebuild50
-rw-r--r--app-misc/abduco/abduco-0.3.ebuild50
-rw-r--r--app-misc/abduco/metadata.xml16
-rw-r--r--app-misc/abook/Manifest1
-rw-r--r--app-misc/abook/abook-0.6.0_pre2.ebuild38
-rw-r--r--app-misc/abook/files/abook-0.6.0_pre2-vcard-fix.patch10
-rw-r--r--app-misc/abook/files/abook-0.6.0_pre2-vcard-import.patch325
-rw-r--r--app-misc/abook/metadata.xml6
-rw-r--r--app-misc/acdctl/Manifest1
-rw-r--r--app-misc/acdctl/acdctl-1.1.ebuild22
-rw-r--r--app-misc/acdctl/metadata.xml13
-rw-r--r--app-misc/activylircd/Manifest1
-rw-r--r--app-misc/activylircd/activylircd-0.4.ebuild34
-rw-r--r--app-misc/activylircd/files/activylircd-0.4-linking.patch25
-rw-r--r--app-misc/activylircd/metadata.xml11
-rw-r--r--app-misc/actkbd/Manifest1
-rw-r--r--app-misc/actkbd/actkbd-0.2.8-r1.ebuild49
-rw-r--r--app-misc/actkbd/files/actkbd-0.2.7-amd64.patch38
-rw-r--r--app-misc/actkbd/files/actkbd.confd13
-rw-r--r--app-misc/actkbd/files/actkbd.initd32
-rw-r--r--app-misc/actkbd/metadata.xml11
-rw-r--r--app-misc/aldo/Manifest1
-rw-r--r--app-misc/aldo/aldo-0.7.7.ebuild23
-rw-r--r--app-misc/aldo/metadata.xml8
-rw-r--r--app-misc/anki/Manifest2
-rw-r--r--app-misc/anki/anki-2.0.31-r1.ebuild64
-rw-r--r--app-misc/anki/anki-2.0.31.ebuild70
-rw-r--r--app-misc/anki/anki-2.0.32.ebuild64
-rw-r--r--app-misc/anki/metadata.xml25
-rw-r--r--app-misc/asciinema/Manifest1
-rw-r--r--app-misc/asciinema/asciinema-0.9.8.ebuild20
-rw-r--r--app-misc/asciinema/metadata.xml10
-rw-r--r--app-misc/astrolog-ephemeris/Manifest1
-rw-r--r--app-misc/astrolog-ephemeris/astrolog-ephemeris-5.40.ebuild24
-rw-r--r--app-misc/astrolog-ephemeris/metadata.xml15
-rw-r--r--app-misc/astrolog/Manifest1
-rw-r--r--app-misc/astrolog/astrolog-5.40-r1.ebuild69
-rw-r--r--app-misc/astrolog/astrolog-5.40-r2.ebuild69
-rw-r--r--app-misc/astrolog/metadata.xml8
-rw-r--r--app-misc/away/Manifest1
-rw-r--r--app-misc/away/away-0.9.5-r1.ebuild39
-rw-r--r--app-misc/away/metadata.xml7
-rw-r--r--app-misc/banner/Manifest1
-rw-r--r--app-misc/banner/banner-1.3.3.ebuild20
-rw-r--r--app-misc/banner/files/banner-1.3.3-ctype.h.patch11
-rw-r--r--app-misc/banner/metadata.xml5
-rw-r--r--app-misc/basenji/Manifest1
-rw-r--r--app-misc/basenji/basenji-1.0.0.ebuild44
-rw-r--r--app-misc/basenji/metadata.xml15
-rw-r--r--app-misc/bb/Manifest1
-rw-r--r--app-misc/bb/bb-1.3.0_rc1-r3.ebuild64
-rw-r--r--app-misc/bb/files/bb-1.3.0_rc1-fix-protos.patch15
-rw-r--r--app-misc/bb/files/bb-1.3.0_rc1-m4-stuff.patch396
-rw-r--r--app-misc/bb/files/bb-1.3.0_rc1-messager-overlap.patch25
-rw-r--r--app-misc/bb/files/bb-1.3.0_rc1-noattr.patch15
-rw-r--r--app-misc/bb/files/bb-1.3.0_rc1-printf-cleanup.patch55
-rw-r--r--app-misc/bb/files/bb-1.3.0_rc1-zbuff-fault.patch35
-rw-r--r--app-misc/bb/metadata.xml11
-rw-r--r--app-misc/beancounter/Manifest1
-rw-r--r--app-misc/beancounter/beancounter-0.8.10-r1.ebuild33
-rw-r--r--app-misc/beancounter/metadata.xml11
-rw-r--r--app-misc/beanstalkd/Manifest3
-rw-r--r--app-misc/beanstalkd/beanstalkd-1.10.ebuild51
-rw-r--r--app-misc/beanstalkd/beanstalkd-1.4.6-r1.ebuild50
-rw-r--r--app-misc/beanstalkd/beanstalkd-1.9-r1.ebuild51
-rw-r--r--app-misc/beanstalkd/files/beanstalkd-dbgprintf.patch110
-rw-r--r--app-misc/beanstalkd/files/beanstalkd-werror-v2.patch14
-rw-r--r--app-misc/beanstalkd/files/conf15
-rw-r--r--app-misc/beanstalkd/files/conf-1.4.218
-rw-r--r--app-misc/beanstalkd/files/conf-1.921
-rw-r--r--app-misc/beanstalkd/files/init25
-rw-r--r--app-misc/beanstalkd/files/init-1.4.626
-rw-r--r--app-misc/beanstalkd/files/init-1.726
-rw-r--r--app-misc/beanstalkd/files/init-1.826
-rw-r--r--app-misc/beanstalkd/files/init-1.926
-rw-r--r--app-misc/beanstalkd/metadata.xml18
-rw-r--r--app-misc/beep/Manifest2
-rw-r--r--app-misc/beep/beep-1.2.2-r1.ebuild27
-rw-r--r--app-misc/beep/beep-1.3.ebuild29
-rw-r--r--app-misc/beep/files/beep-1.2.2-Makefile.patch26
-rw-r--r--app-misc/beep/files/beep-1.2.2-nosuid.patch33
-rw-r--r--app-misc/beep/metadata.xml5
-rw-r--r--app-misc/bfm/Manifest1
-rw-r--r--app-misc/bfm/bfm-1.2-r1.ebuild66
-rw-r--r--app-misc/bfm/bfm-1.2-r2.ebuild65
-rw-r--r--app-misc/bfm/files/1.2-build.xml75
-rw-r--r--app-misc/bfm/files/1.2-r2-build.xml75
-rw-r--r--app-misc/bfm/files/1.2-r2-package.patch313
-rw-r--r--app-misc/bfm/metadata.xml13
-rw-r--r--app-misc/bfr/Manifest1
-rw-r--r--app-misc/bfr/bfr-1.6-r2.ebuild22
-rw-r--r--app-misc/bfr/files/bfr-1.6-perl.patch28
-rw-r--r--app-misc/bfr/metadata.xml5
-rw-r--r--app-misc/bgrep/Manifest1
-rw-r--r--app-misc/bgrep/bgrep-0_p20110121.ebuild46
-rw-r--r--app-misc/bgrep/metadata.xml10
-rw-r--r--app-misc/bijiben/Manifest2
-rw-r--r--app-misc/bijiben/bijiben-3.14.2.ebuild42
-rw-r--r--app-misc/bijiben/bijiben-3.16.2.ebuild43
-rw-r--r--app-misc/bijiben/metadata.xml5
-rw-r--r--app-misc/binclock/Manifest1
-rw-r--r--app-misc/binclock/binclock-1.5.ebuild33
-rw-r--r--app-misc/binclock/metadata.xml6
-rw-r--r--app-misc/binwalk/Manifest1
-rw-r--r--app-misc/binwalk/binwalk-2.0.1.ebuild43
-rw-r--r--app-misc/binwalk/files/binwalk-2.0.1-libs.patch14
-rw-r--r--app-misc/binwalk/files/binwalk-2.0.1-makefile.patch61
-rw-r--r--app-misc/binwalk/metadata.xml23
-rw-r--r--app-misc/birthday/Manifest1
-rw-r--r--app-misc/birthday/birthday-1.6.2.ebuild31
-rw-r--r--app-misc/birthday/metadata.xml8
-rw-r--r--app-misc/bottlerocket/Manifest1
-rw-r--r--app-misc/bottlerocket/bottlerocket-0.04c-r1.ebuild45
-rw-r--r--app-misc/bottlerocket/metadata.xml7
-rw-r--r--app-misc/boxes/Manifest1
-rw-r--r--app-misc/boxes/boxes-1.1.2-r1.ebuild41
-rw-r--r--app-misc/boxes/metadata.xml8
-rw-r--r--app-misc/brewtarget/Manifest2
-rw-r--r--app-misc/brewtarget/brewtarget-2.0.2.ebuild56
-rw-r--r--app-misc/brewtarget/brewtarget-2.1.0.ebuild56
-rw-r--r--app-misc/brewtarget/metadata.xml13
-rw-r--r--app-misc/btail/Manifest1
-rw-r--r--app-misc/btail/btail-0.3.ebuild42
-rw-r--r--app-misc/btail/metadata.xml7
-rw-r--r--app-misc/byobu/Manifest2
-rw-r--r--app-misc/byobu/byobu-5.90.ebuild42
-rw-r--r--app-misc/byobu/byobu-5.94.ebuild42
-rw-r--r--app-misc/byobu/metadata.xml20
-rw-r--r--app-misc/ca-certificates/Manifest23
-rw-r--r--app-misc/ca-certificates/ca-certificates-20090709.ebuild72
-rw-r--r--app-misc/ca-certificates/ca-certificates-20110421.ebuild72
-rw-r--r--app-misc/ca-certificates/ca-certificates-20110502-r1.ebuild72
-rw-r--r--app-misc/ca-certificates/ca-certificates-20110502-r2.ebuild87
-rw-r--r--app-misc/ca-certificates/ca-certificates-20110502-r3.ebuild95
-rw-r--r--app-misc/ca-certificates/ca-certificates-20110502-r4.ebuild98
-rw-r--r--app-misc/ca-certificates/ca-certificates-20110502.ebuild72
-rw-r--r--app-misc/ca-certificates/ca-certificates-20111025.ebuild100
-rw-r--r--app-misc/ca-certificates/ca-certificates-20120212.ebuild100
-rw-r--r--app-misc/ca-certificates/ca-certificates-20120623.ebuild100
-rw-r--r--app-misc/ca-certificates/ca-certificates-20121114.ebuild100
-rw-r--r--app-misc/ca-certificates/ca-certificates-20130119.ebuild98
-rw-r--r--app-misc/ca-certificates/ca-certificates-20130610.ebuild97
-rw-r--r--app-misc/ca-certificates/ca-certificates-20130906-r1.ebuild95
-rw-r--r--app-misc/ca-certificates/ca-certificates-20140223-r1.ebuild178
-rw-r--r--app-misc/ca-certificates/ca-certificates-20140223.3.15.5-r1.ebuild184
-rw-r--r--app-misc/ca-certificates/ca-certificates-20140223.3.16-r1.ebuild184
-rw-r--r--app-misc/ca-certificates/ca-certificates-20140325.3.16.3.ebuild184
-rw-r--r--app-misc/ca-certificates/ca-certificates-20140927.3.17.2.ebuild186
-rw-r--r--app-misc/ca-certificates/ca-certificates-20141019.3.17.4.ebuild186
-rw-r--r--app-misc/ca-certificates/ca-certificates-20141019.3.19.ebuild186
-rw-r--r--app-misc/ca-certificates/files/ca-certificates-20090709-root.patch107
-rw-r--r--app-misc/ca-certificates/files/ca-certificates-20110502-root.patch110
-rw-r--r--app-misc/ca-certificates/files/ca-certificates-20141019-root.patch116
-rw-r--r--app-misc/ca-certificates/metadata.xml11
-rw-r--r--app-misc/cadubi/Manifest1
-rw-r--r--app-misc/cadubi/cadubi-1.3.ebuild30
-rw-r--r--app-misc/cadubi/files/cadubi-1.3-helpfile.patch11
-rw-r--r--app-misc/cadubi/metadata.xml7
-rw-r--r--app-misc/calendar/Manifest1
-rw-r--r--app-misc/calendar/calendar-0.9.1.ebuild26
-rw-r--r--app-misc/calendar/metadata.xml5
-rw-r--r--app-misc/carbon-c-relay/Manifest3
-rw-r--r--app-misc/carbon-c-relay/carbon-c-relay-0.39-r1.ebuild37
-rw-r--r--app-misc/carbon-c-relay/carbon-c-relay-0.40.ebuild38
-rw-r--r--app-misc/carbon-c-relay/carbon-c-relay-0.43.ebuild37
-rw-r--r--app-misc/carbon-c-relay/files/carbon-c-relay.confd16
-rw-r--r--app-misc/carbon-c-relay/files/carbon-c-relay.initd71
-rw-r--r--app-misc/carbon-c-relay/metadata.xml10
-rw-r--r--app-misc/cbrpager/Manifest2
-rw-r--r--app-misc/cbrpager/cbrpager-0.9.20.ebuild27
-rw-r--r--app-misc/cbrpager/cbrpager-0.9.22.ebuild28
-rw-r--r--app-misc/cbrpager/metadata.xml11
-rw-r--r--app-misc/cbview/Manifest1
-rw-r--r--app-misc/cbview/cbview-0.06.ebuild22
-rw-r--r--app-misc/cbview/metadata.xml7
-rw-r--r--app-misc/cdargs/Manifest1
-rw-r--r--app-misc/cdargs/cdargs-1.35-r2.ebuild71
-rw-r--r--app-misc/cdargs/files/50cdargs-gentoo.el8
-rw-r--r--app-misc/cdargs/files/cdargs-1.35-format_security.patch100
-rw-r--r--app-misc/cdargs/files/cdargs-1.35-tinfo.patch20
-rw-r--r--app-misc/cdargs/metadata.xml5
-rw-r--r--app-misc/cdcat/Manifest1
-rw-r--r--app-misc/cdcat/cdcat-0.3.ebuild51
-rw-r--r--app-misc/cdcat/metadata.xml8
-rw-r--r--app-misc/cdctl/Manifest2
-rw-r--r--app-misc/cdctl/cdctl-0.15.ebuild35
-rw-r--r--app-misc/cdctl/cdctl-0.16.ebuild30
-rw-r--r--app-misc/cdctl/files/cdctl-0.15-Makefile.in.patch56
-rw-r--r--app-misc/cdctl/files/cdctl-0.15-cdc_ioctls.patch13
-rw-r--r--app-misc/cdctl/files/cdctl-0.16-Makefile.in.patch55
-rw-r--r--app-misc/cdctl/metadata.xml10
-rw-r--r--app-misc/cdircmp/Manifest1
-rw-r--r--app-misc/cdircmp/cdircmp-0.3-r1.ebuild39
-rw-r--r--app-misc/cdircmp/metadata.xml8
-rw-r--r--app-misc/cdspeed/Manifest1
-rw-r--r--app-misc/cdspeed/cdspeed-0.4-r1.ebuild35
-rw-r--r--app-misc/cdspeed/metadata.xml7
-rw-r--r--app-misc/ckb/Manifest2
-rw-r--r--app-misc/ckb/ckb-0.1.5.ebuild46
-rw-r--r--app-misc/ckb/ckb-0.2.ebuild46
-rw-r--r--app-misc/ckb/files/ckb.initd29
-rw-r--r--app-misc/ckb/metadata.xml11
-rw-r--r--app-misc/ckermit/Manifest1
-rw-r--r--app-misc/ckermit/ckermit-8.0.211-r4.ebuild76
-rw-r--r--app-misc/ckermit/files/ckermit-8.0.211-build-wart.patch23
-rw-r--r--app-misc/ckermit/files/ckermit-8.0.211-cleanup.patch78
-rw-r--r--app-misc/ckermit/metadata.xml8
-rw-r--r--app-misc/clockywock/Manifest1
-rw-r--r--app-misc/clockywock/clockywock-0.3.1a.ebuild33
-rw-r--r--app-misc/clockywock/files/clockywock-0.3.1a-makefile.patch10
-rw-r--r--app-misc/clockywock/metadata.xml8
-rw-r--r--app-misc/cmatrix/Manifest1
-rw-r--r--app-misc/cmatrix/cmatrix-1.2a-r1.ebuild47
-rw-r--r--app-misc/cmatrix/files/cmatrix-1.2a-fontdir.patch28
-rw-r--r--app-misc/cmatrix/files/cmatrix-1.2a-gentoo.patch48
-rw-r--r--app-misc/cmatrix/metadata.xml7
-rw-r--r--app-misc/color/Manifest1
-rw-r--r--app-misc/color/color-1.2-r1.ebuild39
-rw-r--r--app-misc/color/files/1.2-ldflags.patch23
-rw-r--r--app-misc/color/metadata.xml11
-rw-r--r--app-misc/colordiff/Manifest2
-rw-r--r--app-misc/colordiff/colordiff-1.0.13-r1.ebuild40
-rw-r--r--app-misc/colordiff/colordiff-1.0.15-r1.ebuild40
-rw-r--r--app-misc/colordiff/metadata.xml5
-rw-r--r--app-misc/conmux/Manifest1
-rw-r--r--app-misc/conmux/conmux-0.15.1-r3.ebuild64
-rw-r--r--app-misc/conmux/files/conmux-registry.confd4
-rwxr-xr-xapp-misc/conmux/files/conmux-registry.initd31
-rw-r--r--app-misc/conmux/files/conmux.confd14
-rwxr-xr-xapp-misc/conmux/files/conmux.initd39
-rw-r--r--app-misc/conmux/metadata.xml17
-rw-r--r--app-misc/countrycodes/Manifest1
-rw-r--r--app-misc/countrycodes/countrycodes-1.0.5-r1.ebuild33
-rw-r--r--app-misc/countrycodes/files/1.0.5-Makefile.patch42
-rw-r--r--app-misc/countrycodes/files/countrycodes-1.0.5-Makefile.patch12
-rw-r--r--app-misc/countrycodes/metadata.xml5
-rw-r--r--app-misc/crunch/Manifest3
-rw-r--r--app-misc/crunch/crunch-3.4.ebuild28
-rw-r--r--app-misc/crunch/crunch-3.5.ebuild30
-rw-r--r--app-misc/crunch/crunch-3.6.ebuild30
-rw-r--r--app-misc/crunch/files/crunch-3.4-gentoo.patch34
-rw-r--r--app-misc/crunch/metadata.xml11
-rw-r--r--app-misc/cstream/Manifest2
-rw-r--r--app-misc/cstream/cstream-3.0.0.ebuild24
-rw-r--r--app-misc/cstream/cstream-3.1.1.ebuild24
-rw-r--r--app-misc/cstream/metadata.xml21
-rw-r--r--app-misc/cw/Manifest1
-rw-r--r--app-misc/cw/cw-1.0.16-r3.ebuild63
-rw-r--r--app-misc/cw/files/1.0.16-collision.patch34
-rw-r--r--app-misc/cw/files/1.0.16-format-security.patch16
-rw-r--r--app-misc/cw/files/1.0.16-ldflags.patch18
-rw-r--r--app-misc/cw/files/1.0.16-path.patch19
-rw-r--r--app-misc/cw/metadata.xml8
-rw-r--r--app-misc/cwiid/Manifest1
-rw-r--r--app-misc/cwiid/cwiid-20110107-r2.ebuild77
-rw-r--r--app-misc/cwiid/files/60-cwiid.rules2
-rw-r--r--app-misc/cwiid/files/cwiid-20110107-underlinking.patch31
-rw-r--r--app-misc/cwiid/metadata.xml13
-rw-r--r--app-misc/dailystrips/Manifest1
-rw-r--r--app-misc/dailystrips/dailystrips-1.0.28-r2.ebuild33
-rw-r--r--app-misc/dailystrips/metadata.xml10
-rw-r--r--app-misc/datefudge/Manifest1
-rw-r--r--app-misc/datefudge/datefudge-1.17.ebuild36
-rw-r--r--app-misc/datefudge/files/datefudge-1.17-bsd.patch58
-rw-r--r--app-misc/datefudge/metadata.xml8
-rw-r--r--app-misc/dateutils/Manifest4
-rw-r--r--app-misc/dateutils/dateutils-0.2.7.ebuild33
-rw-r--r--app-misc/dateutils/dateutils-0.3.1.ebuild33
-rw-r--r--app-misc/dateutils/dateutils-0.3.2.ebuild33
-rw-r--r--app-misc/dateutils/dateutils-0.3.3.ebuild33
-rw-r--r--app-misc/dateutils/metadata.xml8
-rw-r--r--app-misc/datovka/Manifest1
-rw-r--r--app-misc/datovka/datovka-3.0.3-r1.ebuild28
-rw-r--r--app-misc/datovka/datovka-3.0.3.ebuild37
-rw-r--r--app-misc/datovka/metadata.xml12
-rw-r--r--app-misc/ddate/Manifest1
-rw-r--r--app-misc/ddate/ddate-0.2.1.ebuild29
-rw-r--r--app-misc/ddate/metadata.xml11
-rw-r--r--app-misc/ddccontrol-db/Manifest1
-rw-r--r--app-misc/ddccontrol-db/ddccontrol-db-20061014_p20121105.ebuild38
-rw-r--r--app-misc/ddccontrol-db/metadata.xml11
-rw-r--r--app-misc/ddccontrol/Manifest1
-rw-r--r--app-misc/ddccontrol/ddccontrol-0.4.2_p20140105-r1.ebuild77
-rw-r--r--app-misc/ddccontrol/metadata.xml14
-rw-r--r--app-misc/delay/Manifest1
-rw-r--r--app-misc/delay/delay-1.6-r2.ebuild31
-rw-r--r--app-misc/delay/files/delay-1.6-headers.patch10
-rw-r--r--app-misc/delay/files/delay-1.6-tinfo.patch16
-rw-r--r--app-misc/delay/metadata.xml5
-rw-r--r--app-misc/detachtty/Manifest1
-rw-r--r--app-misc/detachtty/detachtty-9.ebuild27
-rw-r--r--app-misc/detachtty/metadata.xml12
-rw-r--r--app-misc/detox/Manifest1
-rw-r--r--app-misc/detox/detox-1.2.0-r3.ebuild47
-rw-r--r--app-misc/detox/files/detox-1.2.0-LDFLAGS.patch18
-rw-r--r--app-misc/detox/files/detox-1.2.0-change-default-sequence-to-use-utf8-table.patch17
-rw-r--r--app-misc/detox/files/detox-1.2.0-format-security.patch72
-rw-r--r--app-misc/detox/files/detox-1.2.0-install-missing-file.patch18
-rw-r--r--app-misc/detox/files/detox-1.2.0-parallel.patch29
-rw-r--r--app-misc/detox/metadata.xml8
-rw-r--r--app-misc/devtodo/Manifest1
-rw-r--r--app-misc/devtodo/devtodo-0.1.20-r3.ebuild71
-rw-r--r--app-misc/devtodo/files/devtodo-0.1.20-bashcom_spaces.patch32
-rw-r--r--app-misc/devtodo/files/devtodo-0.1.20-gcc43.patch10
-rw-r--r--app-misc/devtodo/files/devtodo-0.1.20-gentoo.diff85
-rw-r--r--app-misc/devtodo/files/devtodo.bash-completion44
-rw-r--r--app-misc/devtodo/metadata.xml5
-rw-r--r--app-misc/digitemp/Manifest1
-rw-r--r--app-misc/digitemp/digitemp-3.5.0-r2.ebuild76
-rw-r--r--app-misc/digitemp/metadata.xml23
-rw-r--r--app-misc/dnetc/Manifest12
-rw-r--r--app-misc/dnetc/dnetc-2.9011.496-r1.ebuild79
-rw-r--r--app-misc/dnetc/dnetc-2.9015.504.ebuild93
-rw-r--r--app-misc/dnetc/dnetc-2.9103.509.ebuild86
-rw-r--r--app-misc/dnetc/dnetc-2.9107.516.ebuild94
-rw-r--r--app-misc/dnetc/dnetc-2.9108.517.ebuild94
-rw-r--r--app-misc/dnetc/dnetc-2.9109.518.ebuild94
-rw-r--r--app-misc/dnetc/dnetc-2.9110.519.ebuild94
-rw-r--r--app-misc/dnetc/dnetc-2.9110.519b.ebuild96
-rw-r--r--app-misc/dnetc/files/dnetc.confd18
-rw-r--r--app-misc/dnetc/files/dnetc.initd89
-rw-r--r--app-misc/dnetc/metadata.xml11
-rw-r--r--app-misc/dtach/Manifest1
-rw-r--r--app-misc/dtach/dtach-0.8-r1.ebuild26
-rw-r--r--app-misc/dtach/files/dtach-0.8-CVE-2012-3368.patch35
-rw-r--r--app-misc/dtach/metadata.xml8
-rw-r--r--app-misc/dvorak7min/Manifest1
-rw-r--r--app-misc/dvorak7min/dvorak7min-1.6.1.ebuild32
-rw-r--r--app-misc/dvorak7min/metadata.xml8
-rw-r--r--app-misc/dvorakng/Manifest1
-rw-r--r--app-misc/dvorakng/dvorakng-0.6.0.ebuild27
-rw-r--r--app-misc/dvorakng/metadata.xml10
-rw-r--r--app-misc/dvtm/Manifest3
-rw-r--r--app-misc/dvtm/dvtm-0.11.ebuild69
-rw-r--r--app-misc/dvtm/dvtm-0.14.ebuild69
-rw-r--r--app-misc/dvtm/dvtm-0.8.ebuild61
-rw-r--r--app-misc/dvtm/dvtm-9999.ebuild69
-rw-r--r--app-misc/dvtm/metadata.xml9
-rw-r--r--app-misc/editor-wrapper/editor-wrapper-4.ebuild32
-rw-r--r--app-misc/editor-wrapper/files/editor-wrapper-4.sh17
-rw-r--r--app-misc/editor-wrapper/metadata.xml6
-rw-r--r--app-misc/egads/Manifest1
-rw-r--r--app-misc/egads/egads-0.9.5.ebuild50
-rw-r--r--app-misc/egads/metadata.xml8
-rw-r--r--app-misc/eid-viewer-bin/Manifest1
-rw-r--r--app-misc/eid-viewer-bin/eid-viewer-bin-4.0.7_p184.ebuild34
-rw-r--r--app-misc/eid-viewer-bin/metadata.xml18
-rw-r--r--app-misc/elasticsearch/Manifest2
-rw-r--r--app-misc/elasticsearch/elasticsearch-1.6.2.ebuild71
-rw-r--r--app-misc/elasticsearch/elasticsearch-1.7.1.ebuild71
-rw-r--r--app-misc/elasticsearch/files/elasticsearch.conf20
-rw-r--r--app-misc/elasticsearch/files/elasticsearch.init487
-rw-r--r--app-misc/elasticsearch/files/elasticsearch.service411
-rw-r--r--app-misc/elasticsearch/metadata.xml13
-rw-r--r--app-misc/email2trac/Manifest2
-rw-r--r--app-misc/email2trac/email2trac-2.6.2-r1.ebuild39
-rw-r--r--app-misc/email2trac/email2trac-2.8.4.ebuild39
-rw-r--r--app-misc/email2trac/metadata.xml10
-rw-r--r--app-misc/emelfm2/Manifest2
-rw-r--r--app-misc/emelfm2/emelfm2-0.8.1.ebuild70
-rw-r--r--app-misc/emelfm2/emelfm2-0.9.1-r1.ebuild88
-rw-r--r--app-misc/emelfm2/emelfm2-0.9.1.ebuild88
-rw-r--r--app-misc/emelfm2/metadata.xml7
-rw-r--r--app-misc/empty/Manifest1
-rw-r--r--app-misc/empty/empty-0.6.19b.ebuild33
-rw-r--r--app-misc/empty/files/empty-respect-LDFLAGS.patch11
-rw-r--r--app-misc/empty/files/overflow-fixes.patch20
-rw-r--r--app-misc/empty/metadata.xml11
-rw-r--r--app-misc/enum/Manifest1
-rw-r--r--app-misc/enum/enum-1.1.ebuild31
-rw-r--r--app-misc/enum/metadata.xml8
-rw-r--r--app-misc/esekeyd/Manifest1
-rw-r--r--app-misc/esekeyd/esekeyd-1.2.7.ebuild15
-rw-r--r--app-misc/esekeyd/metadata.xml10
-rw-r--r--app-misc/evemu/Manifest3
-rw-r--r--app-misc/evemu/evemu-1.2.0-r1.ebuild43
-rw-r--r--app-misc/evemu/evemu-2.0.0.ebuild44
-rw-r--r--app-misc/evemu/evemu-2.1.0.ebuild44
-rw-r--r--app-misc/evemu/files/evemu-1.2.0-install-man.patch43
-rw-r--r--app-misc/evemu/metadata.xml8
-rw-r--r--app-misc/evtest/Manifest6
-rw-r--r--app-misc/evtest/evtest-1.29.ebuild37
-rw-r--r--app-misc/evtest/evtest-1.30.ebuild40
-rw-r--r--app-misc/evtest/evtest-1.31.ebuild38
-rw-r--r--app-misc/evtest/files/evtest-1.30-autoconf.patch33
-rw-r--r--app-misc/evtest/files/evtest-1.30-xml.patch40
-rw-r--r--app-misc/evtest/metadata.xml7
-rw-r--r--app-misc/fdupes/Manifest1
-rw-r--r--app-misc/fdupes/fdupes-1.51.ebuild42
-rw-r--r--app-misc/fdupes/files/fdupes-1.50_pre2-compare-file.patch58
-rw-r--r--app-misc/fdupes/files/fdupes-1.50_pre2-lfs.patch21
-rw-r--r--app-misc/fdupes/files/fdupes-1.50_pre2-makefile.patch23
-rw-r--r--app-misc/fdupes/files/fdupes-1.50_pre2-typo.patch12
-rw-r--r--app-misc/fdupes/files/fdupes-1.51-makefile.patch23
-rw-r--r--app-misc/fdupes/metadata.xml8
-rw-r--r--app-misc/fdutils/Manifest5
-rw-r--r--app-misc/fdutils/fdutils-5.4.20020222-r1.ebuild49
-rw-r--r--app-misc/fdutils/fdutils-5.5-r2.ebuild42
-rw-r--r--app-misc/fdutils/fdutils-5.5.20060227.ebuild53
-rw-r--r--app-misc/fdutils/files/fdutils-5.5-destdirfix.patch140
-rw-r--r--app-misc/fdutils/files/fdutils-no-fd.4-manpage.diff12
-rw-r--r--app-misc/fdutils/metadata.xml5
-rw-r--r--app-misc/figlet/Manifest1
-rw-r--r--app-misc/figlet/figlet-2.2.5.ebuild40
-rw-r--r--app-misc/figlet/files/figlet.bashcomp52
-rw-r--r--app-misc/figlet/metadata.xml8
-rw-r--r--app-misc/flasm/Manifest1
-rw-r--r--app-misc/flasm/files/flasm-1.63-makefile.patch27
-rw-r--r--app-misc/flasm/flasm-1.63.ebuild42
-rw-r--r--app-misc/flasm/metadata.xml14
-rw-r--r--app-misc/freemind/Manifest1
-rw-r--r--app-misc/freemind/freemind-1.0.1-r1.ebuild122
-rw-r--r--app-misc/freemind/freemind-1.0.1-r2.ebuild122
-rw-r--r--app-misc/freemind/metadata.xml14
-rw-r--r--app-misc/fslint/Manifest2
-rw-r--r--app-misc/fslint/fslint-2.42.ebuild62
-rw-r--r--app-misc/fslint/fslint-2.44-r2.ebuild74
-rw-r--r--app-misc/fslint/metadata.xml7
-rw-r--r--app-misc/fslurp/Manifest4
-rw-r--r--app-misc/fslurp/files/fslurp-0.9-makefile.patch19
-rw-r--r--app-misc/fslurp/files/fslurp-2.1.2-makefile.patch41
-rw-r--r--app-misc/fslurp/files/fslurp-2.1.4-makefile.patch47
-rw-r--r--app-misc/fslurp/fslurp-0.9.ebuild32
-rw-r--r--app-misc/fslurp/fslurp-2.1.2.ebuild29
-rw-r--r--app-misc/fslurp/fslurp-2.1.3.ebuild29
-rw-r--r--app-misc/fslurp/fslurp-2.1.4.ebuild28
-rw-r--r--app-misc/fslurp/metadata.xml16
-rw-r--r--app-misc/fsniper/Manifest1
-rw-r--r--app-misc/fsniper/files/fsniper-1.3.1-format-security.patch26
-rw-r--r--app-misc/fsniper/files/fsniper-1.3.1-umask.patch18
-rw-r--r--app-misc/fsniper/fsniper-1.3.1-r1.ebuild26
-rw-r--r--app-misc/fsniper/metadata.xml8
-rw-r--r--app-misc/fujiplay/Manifest1
-rw-r--r--app-misc/fujiplay/files/fujiplay-1.33-unterminated-strings.patch75
-rw-r--r--app-misc/fujiplay/fujiplay-1.33.ebuild50
-rw-r--r--app-misc/fujiplay/metadata.xml8
-rw-r--r--app-misc/g15composer/Manifest2
-rw-r--r--app-misc/g15composer/files/g15composer-3.1.confd17
-rw-r--r--app-misc/g15composer/files/g15composer-3.1.initd49
-rw-r--r--app-misc/g15composer/files/g15composer-3.2.confd17
-rw-r--r--app-misc/g15composer/files/g15composer-3.2.initd49
-rw-r--r--app-misc/g15composer/g15composer-3.1.ebuild42
-rw-r--r--app-misc/g15composer/g15composer-3.2.ebuild42
-rw-r--r--app-misc/g15composer/metadata.xml14
-rw-r--r--app-misc/g15daemon/Manifest1
-rw-r--r--app-misc/g15daemon/files/20g15daemon15
-rw-r--r--app-misc/g15daemon/files/99-g15daemon.rules1
-rw-r--r--app-misc/g15daemon/files/g15daemon-1.2.7.confd9
-rw-r--r--app-misc/g15daemon/files/g15daemon-1.9.5.3-forgotten-open-mode.patch11
-rw-r--r--app-misc/g15daemon/files/g15daemon-1.9.5.3-g510-keys.patch340
-rw-r--r--app-misc/g15daemon/files/g15daemon-1.9.5.3-overflow-fix.patch11
-rw-r--r--app-misc/g15daemon/files/g15daemon-1.9.5.3.initd46
-rw-r--r--app-misc/g15daemon/files/g15daemon-hotplug15
-rw-r--r--app-misc/g15daemon/files/g15daemon.conf27
-rw-r--r--app-misc/g15daemon/g15daemon-1.9.5.3-r11.ebuild177
-rw-r--r--app-misc/g15daemon/g15daemon-1.9.5.3-r12.ebuild179
-rw-r--r--app-misc/g15daemon/g15daemon-9999.ebuild191
-rw-r--r--app-misc/g15daemon/metadata.xml14
-rw-r--r--app-misc/g15macro/Manifest1
-rw-r--r--app-misc/g15macro/g15macro-1.0.3-r1.ebuild34
-rw-r--r--app-misc/g15macro/metadata.xml14
-rw-r--r--app-misc/g15message/Manifest1
-rw-r--r--app-misc/g15message/g15message-1.0.0.ebuild26
-rw-r--r--app-misc/g15message/metadata.xml14
-rw-r--r--app-misc/g15mpd/Manifest1
-rw-r--r--app-misc/g15mpd/files/g15mpd-1.0.0-cflags-and-lib-fix.patch18
-rw-r--r--app-misc/g15mpd/files/g15mpd-1.0.0-libmpd.patch34
-rw-r--r--app-misc/g15mpd/g15mpd-1.0.0-r1.ebuild39
-rw-r--r--app-misc/g15mpd/metadata.xml10
-rw-r--r--app-misc/g15stats/Manifest1
-rw-r--r--app-misc/g15stats/files/g15stats-1.9.7.confd20
-rw-r--r--app-misc/g15stats/files/g15stats-1.9.7.initd24
-rw-r--r--app-misc/g15stats/g15stats-1.9.7.ebuild49
-rw-r--r--app-misc/g15stats/metadata.xml14
-rw-r--r--app-misc/gcal/Manifest1
-rw-r--r--app-misc/gcal/gcal-3.6.3.ebuild33
-rw-r--r--app-misc/gcal/metadata.xml17
-rw-r--r--app-misc/gcalcli/Manifest1
-rw-r--r--app-misc/gcalcli/gcalcli-3.2.ebuild29
-rw-r--r--app-misc/gcalcli/metadata.xml11
-rw-r--r--app-misc/gcstar/Manifest1
-rw-r--r--app-misc/gcstar/files/gcstar-1.4.0-man.patch26
-rw-r--r--app-misc/gcstar/files/gcstar-1.7.0-gcstar.desktop.patch23
-rw-r--r--app-misc/gcstar/gcstar-1.7.0.ebuild114
-rw-r--r--app-misc/gcstar/metadata.xml22
-rw-r--r--app-misc/geekcode/Manifest1
-rw-r--r--app-misc/geekcode/files/geekcode-1.7.3-exit.patch10
-rw-r--r--app-misc/geekcode/geekcode-1.7.3-r1.ebuild31
-rw-r--r--app-misc/geekcode/metadata.xml11
-rw-r--r--app-misc/geneweb/Manifest2
-rw-r--r--app-misc/geneweb/files/geneweb-6.07-gentoo.patch30
-rw-r--r--app-misc/geneweb/files/geneweb-6.07-parallellbuild.patch68
-rw-r--r--app-misc/geneweb/files/geneweb.confd6
-rw-r--r--app-misc/geneweb/files/geneweb.initd20
-rw-r--r--app-misc/geneweb/geneweb-6.07.ebuild85
-rw-r--r--app-misc/geneweb/metadata.xml18
-rw-r--r--app-misc/gentoo/Manifest1
-rw-r--r--app-misc/gentoo/gentoo-0.20.6.ebuild62
-rw-r--r--app-misc/gentoo/metadata.xml8
-rw-r--r--app-misc/geoclue/Manifest4
-rw-r--r--app-misc/geoclue/files/geoclue-0.12.0_p20110307-use-fallback-mac.patch16
-rw-r--r--app-misc/geoclue/files/geoclue-0.12.0_p20110307-use-flag.patch79
-rw-r--r--app-misc/geoclue/files/geoclue-0.12.99-gpsd.patch73
-rw-r--r--app-misc/geoclue/geoclue-0.12.99.ebuild72
-rw-r--r--app-misc/geoclue/geoclue-2.1.10.ebuild48
-rw-r--r--app-misc/geoclue/geoclue-2.1.9.ebuild47
-rw-r--r--app-misc/geoclue/geoclue-2.2.0.ebuild48
-rw-r--r--app-misc/geoclue/metadata.xml18
-rw-r--r--app-misc/getopt/Manifest3
-rw-r--r--app-misc/getopt/files/getopt-1.1.4-irix.patch17
-rw-r--r--app-misc/getopt/files/getopt-1.1.4-libintl.patch34
-rw-r--r--app-misc/getopt/files/getopt-1.1.4-longrename.patch118
-rw-r--r--app-misc/getopt/files/getopt-1.1.5-libintl.patch11
-rw-r--r--app-misc/getopt/files/getopt-1.1.5-longrename.patch79
-rw-r--r--app-misc/getopt/files/getopt-1.1.5-setlocale.patch12
-rw-r--r--app-misc/getopt/files/getopt-1.1.6-longrename.patch70
-rw-r--r--app-misc/getopt/getopt-1.1.4.ebuild64
-rw-r--r--app-misc/getopt/getopt-1.1.5.ebuild65
-rw-r--r--app-misc/getopt/getopt-1.1.6.ebuild65
-rw-r--r--app-misc/getopt/metadata.xml6
-rw-r--r--app-misc/glastree/Manifest1
-rw-r--r--app-misc/glastree/files/glastree-posix-make.patch16
-rw-r--r--app-misc/glastree/glastree-1.04.ebuild29
-rw-r--r--app-misc/glastree/metadata.xml7
-rw-r--r--app-misc/glcdprocdriver/Manifest1
-rw-r--r--app-misc/glcdprocdriver/files/glcdprocdriver-0.0.3-makefile.patch22
-rw-r--r--app-misc/glcdprocdriver/files/glcdprocdriver-gcc43.patch15
-rw-r--r--app-misc/glcdprocdriver/files/glcdprocdriver-gcc44.patch12
-rw-r--r--app-misc/glcdprocdriver/glcdprocdriver-0.0.6.ebuild30
-rw-r--r--app-misc/glcdprocdriver/metadata.xml14
-rw-r--r--app-misc/glimpse/Manifest2
-rw-r--r--app-misc/glimpse/files/glimpse-4.18.5-makefile.patch42
-rw-r--r--app-misc/glimpse/glimpse-4.18.5.ebuild54
-rw-r--r--app-misc/glimpse/glimpse-4.18.6.ebuild57
-rw-r--r--app-misc/glimpse/metadata.xml7
-rw-r--r--app-misc/gnomecatalog/Manifest1
-rw-r--r--app-misc/gnomecatalog/files/gnomecatalog-0.3.4.2-dbus.patch109
-rw-r--r--app-misc/gnomecatalog/gnomecatalog-0.3.4.2-r1.ebuild54
-rw-r--r--app-misc/gnomecatalog/metadata.xml18
-rw-r--r--app-misc/gnote/Manifest4
-rw-r--r--app-misc/gnote/gnote-3.14.2.ebuild82
-rw-r--r--app-misc/gnote/gnote-3.16.1.ebuild74
-rw-r--r--app-misc/gnote/gnote-3.16.2.ebuild74
-rw-r--r--app-misc/gnote/metadata.xml8
-rw-r--r--app-misc/gnuit/Manifest1
-rw-r--r--app-misc/gnuit/files/gnuit-4.9.5-format-security.patch16
-rw-r--r--app-misc/gnuit/gnuit-4.9.5-r2.ebuild39
-rw-r--r--app-misc/gnuit/metadata.xml5
-rw-r--r--app-misc/gnutu/Manifest1
-rw-r--r--app-misc/gnutu/files/gnutu-2.0-event.patch11
-rw-r--r--app-misc/gnutu/gnutu-2.5.ebuild22
-rw-r--r--app-misc/gnutu/metadata.xml18
-rw-r--r--app-misc/golly/Manifest4
-rw-r--r--app-misc/golly/golly-2.4-r1.ebuild44
-rw-r--r--app-misc/golly/golly-2.4.ebuild46
-rw-r--r--app-misc/golly/golly-2.5.ebuild49
-rw-r--r--app-misc/golly/golly-2.6.ebuild49
-rw-r--r--app-misc/golly/golly-2.7.ebuild49
-rw-r--r--app-misc/golly/metadata.xml11
-rw-r--r--app-misc/goobook/Manifest2
-rw-r--r--app-misc/goobook/goobook-1.8.ebuild49
-rw-r--r--app-misc/goobook/goobook-1.9.ebuild49
-rw-r--r--app-misc/goobook/metadata.xml15
-rw-r--r--app-misc/gourmet/Manifest1
-rw-r--r--app-misc/gourmet/files/desktop-entry.patch10
-rw-r--r--app-misc/gourmet/files/gourmet-0.16.1-PIL-png.patch29
-rw-r--r--app-misc/gourmet/files/gourmet-0.16.1-pictures-dir.patch13
-rw-r--r--app-misc/gourmet/files/no-docs-0.17.0.patch10
-rw-r--r--app-misc/gourmet/files/no-docs.patch10
-rw-r--r--app-misc/gourmet/files/nutritional-db-fix.patch29
-rw-r--r--app-misc/gourmet/gourmet-0.17.4.ebuild59
-rw-r--r--app-misc/gourmet/metadata.xml53
-rw-r--r--app-misc/grabcartoons/files/2.8.4-fix-install-paths.patch32
-rw-r--r--app-misc/grabcartoons/grabcartoons-2.8.4_p20141112.ebuild35
-rw-r--r--app-misc/grabcartoons/grabcartoons-9999.ebuild35
-rw-r--r--app-misc/grabcartoons/metadata.xml5
-rw-r--r--app-misc/gramps/Manifest2
-rw-r--r--app-misc/gramps/files/gramps-3.4.0-use_bsddb3.patch11
-rw-r--r--app-misc/gramps/gramps-3.4.5-r1.ebuild76
-rw-r--r--app-misc/gramps/gramps-3.4.9.ebuild78
-rw-r--r--app-misc/gramps/metadata.xml99
-rw-r--r--app-misc/granule/Manifest1
-rw-r--r--app-misc/granule/files/granule-1.4.0-fix-template-with-permissive.patch15
-rw-r--r--app-misc/granule/granule-1.4.0.ebuild39
-rw-r--r--app-misc/granule/metadata.xml11
-rw-r--r--app-misc/graphlcd-base/Manifest3
-rw-r--r--app-misc/graphlcd-base/files/graphlcd-base-0.1.5-gcc43.patch312
-rw-r--r--app-misc/graphlcd-base/files/graphlcd-base-0.1.5-nostrip.patch75
-rw-r--r--app-misc/graphlcd-base/graphlcd-base-0.1.5-r1.ebuild48
-rw-r--r--app-misc/graphlcd-base/graphlcd-base-0.1.9.ebuild38
-rw-r--r--app-misc/graphlcd-base/metadata.xml15
-rw-r--r--app-misc/grc/Manifest1
-rw-r--r--app-misc/grc/files/1.0.6-support-more-files.patch60
-rw-r--r--app-misc/grc/files/conf.configure27
-rw-r--r--app-misc/grc/files/grc-1.4-ipv6.patch16
-rw-r--r--app-misc/grc/files/grc-1.4-support-more-files.patch53
-rw-r--r--app-misc/grc/grc-1.5.ebuild42
-rw-r--r--app-misc/grc/metadata.xml5
-rw-r--r--app-misc/gtk-sunlight/Manifest1
-rw-r--r--app-misc/gtk-sunlight/gtk-sunlight-0.4.2.ebuild26
-rw-r--r--app-misc/gtk-sunlight/metadata.xml8
-rw-r--r--app-misc/gtypist/Manifest5
-rw-r--r--app-misc/gtypist/files/50gtypist-gentoo.el6
-rw-r--r--app-misc/gtypist/files/gtypist-2.8.3-xemacs-compat.patch18
-rw-r--r--app-misc/gtypist/gtypist-2.8.5-r1.ebuild68
-rw-r--r--app-misc/gtypist/gtypist-2.9.1.ebuild68
-rw-r--r--app-misc/gtypist/gtypist-2.9.2.ebuild68
-rw-r--r--app-misc/gtypist/gtypist-2.9.5.ebuild70
-rw-r--r--app-misc/gtypist/metadata.xml9
-rw-r--r--app-misc/hachoir-metadata/Manifest1
-rw-r--r--app-misc/hachoir-metadata/hachoir-metadata-1.3.3-r1.ebuild73
-rw-r--r--app-misc/hachoir-metadata/metadata.xml13
-rw-r--r--app-misc/hachoir-subfile/Manifest1
-rw-r--r--app-misc/hachoir-subfile/hachoir-subfile-0.5.3-r1.ebuild30
-rw-r--r--app-misc/hachoir-subfile/metadata.xml12
-rw-r--r--app-misc/hachoir-urwid/Manifest1
-rw-r--r--app-misc/hachoir-urwid/hachoir-urwid-1.1-r1.ebuild31
-rw-r--r--app-misc/hachoir-urwid/metadata.xml12
-rw-r--r--app-misc/hatools/Manifest1
-rw-r--r--app-misc/hatools/hatools-2.14.ebuild18
-rw-r--r--app-misc/hatools/metadata.xml5
-rw-r--r--app-misc/hddled/Manifest1
-rw-r--r--app-misc/hddled/hddled-0.3.ebuild41
-rw-r--r--app-misc/hddled/metadata.xml9
-rw-r--r--app-misc/hello/Manifest2
-rw-r--r--app-misc/hello/hello-2.8.ebuild28
-rw-r--r--app-misc/hello/hello-2.9.ebuild28
-rw-r--r--app-misc/hello/metadata.xml8
-rw-r--r--app-misc/hexcompare/Manifest2
-rw-r--r--app-misc/hexcompare/files/hexcompare-1.0.1.patch52
-rw-r--r--app-misc/hexcompare/files/hexcompare-1.0.4-Makefile.patch14
-rw-r--r--app-misc/hexcompare/hexcompare-1.0.1.ebuild38
-rw-r--r--app-misc/hexcompare/hexcompare-1.0.4.ebuild29
-rw-r--r--app-misc/hexcompare/metadata.xml11
-rw-r--r--app-misc/hilite/Manifest1
-rw-r--r--app-misc/hilite/hilite-1.5.ebuild29
-rw-r--r--app-misc/hilite/metadata.xml5
-rw-r--r--app-misc/hivex/Manifest1
-rw-r--r--app-misc/hivex/hivex-1.3.11-r1.ebuild117
-rw-r--r--app-misc/hivex/hivex-1.3.11.ebuild116
-rw-r--r--app-misc/hivex/metadata.xml13
-rw-r--r--app-misc/ifp-line/Manifest1
-rw-r--r--app-misc/ifp-line/files/ifp-line-0.3-fix-warnings.patch30
-rw-r--r--app-misc/ifp-line/ifp-line-0.3.ebuild43
-rw-r--r--app-misc/ifp-line/metadata.xml8
-rw-r--r--app-misc/ignuit/Manifest1
-rw-r--r--app-misc/ignuit/ignuit-2.20.0.ebuild42
-rw-r--r--app-misc/ignuit/metadata.xml8
-rw-r--r--app-misc/iguanaIR/Manifest2
-rw-r--r--app-misc/iguanaIR/files/40-iguanaIR.rules5
-rw-r--r--app-misc/iguanaIR/files/iguanaIR-0.93-asneeded.patch29
-rw-r--r--app-misc/iguanaIR/files/iguanaIR-0.93-gentoo.diff34
-rw-r--r--app-misc/iguanaIR/iguanaIR-0.93.ebuild42
-rw-r--r--app-misc/iguanaIR/iguanaIR-1.0.1.ebuild45
-rw-r--r--app-misc/iguanaIR/metadata.xml10
-rw-r--r--app-misc/inputlircd/Manifest2
-rw-r--r--app-misc/inputlircd/files/inputlircd.conf2
-rwxr-xr-xapp-misc/inputlircd/files/inputlircd.init13
-rwxr-xr-xapp-misc/inputlircd/files/inputlircd.init.217
-rw-r--r--app-misc/inputlircd/inputlircd-0.0.1_pre11-r1.ebuild34
-rw-r--r--app-misc/inputlircd/inputlircd-0.0.1_pre11.ebuild22
-rw-r--r--app-misc/inputlircd/inputlircd-0.0.1_pre15.ebuild34
-rw-r--r--app-misc/inputlircd/metadata.xml5
-rw-r--r--app-misc/interceptty/Manifest1
-rw-r--r--app-misc/interceptty/interceptty-0.6.ebuild19
-rw-r--r--app-misc/interceptty/metadata.xml7
-rw-r--r--app-misc/irtrans-irclient/Manifest2
-rw-r--r--app-misc/irtrans-irclient/irtrans-irclient-6.01.05.ebuild67
-rw-r--r--app-misc/irtrans-irclient/metadata.xml17
-rw-r--r--app-misc/irtrans-irserver/Manifest2
-rw-r--r--app-misc/irtrans-irserver/files/irtrans-server.confd13
-rw-r--r--app-misc/irtrans-irserver/files/irtrans-server.initd22
-rw-r--r--app-misc/irtrans-irserver/irtrans-irserver-6.09.04.ebuild84
-rw-r--r--app-misc/irtrans-irserver/metadata.xml19
-rw-r--r--app-misc/jail/Manifest1
-rw-r--r--app-misc/jail/files/jail-1.9-gentoo.patch130
-rw-r--r--app-misc/jail/files/jail-1.9-ldflags.patch11
-rw-r--r--app-misc/jail/files/jail-1.9-multiuser-rsa.patch44
-rw-r--r--app-misc/jail/files/jail-1.9-wrongshell.patch11
-rw-r--r--app-misc/jail/jail-2.0.ebuild70
-rw-r--r--app-misc/jail/metadata.xml20
-rw-r--r--app-misc/jdictionary/Manifest1
-rw-r--r--app-misc/jdictionary/jdictionary-1.8-r2.ebuild40
-rw-r--r--app-misc/jdictionary/jdictionary-1.8-r3.ebuild44
-rw-r--r--app-misc/jdictionary/metadata.xml8
-rw-r--r--app-misc/jitac/Manifest1
-rw-r--r--app-misc/jitac/jitac-0.3.0.ebuild44
-rw-r--r--app-misc/jitac/metadata.xml5
-rw-r--r--app-misc/jot/Manifest1
-rw-r--r--app-misc/jot/jot-9.0-r1.ebuild24
-rw-r--r--app-misc/jot/jot-9.0.ebuild21
-rw-r--r--app-misc/jot/metadata.xml8
-rw-r--r--app-misc/joy2key/Manifest1
-rw-r--r--app-misc/joy2key/files/1.6.1-fix-configure.diff27
-rw-r--r--app-misc/joy2key/files/fix-configure.in.diff27
-rw-r--r--app-misc/joy2key/joy2key-1.6.3.ebuild27
-rw-r--r--app-misc/joy2key/metadata.xml10
-rw-r--r--app-misc/joymouse/Manifest1
-rw-r--r--app-misc/joymouse/joymouse-0.5.ebuild26
-rw-r--r--app-misc/joymouse/metadata.xml8
-rw-r--r--app-misc/jq/Manifest1
-rw-r--r--app-misc/jq/files/jq-1.4-dynamic-link.patch12
-rw-r--r--app-misc/jq/jq-1.4-r1.ebuild40
-rw-r--r--app-misc/jq/jq-1.4.ebuild32
-rw-r--r--app-misc/jq/metadata.xml8
-rw-r--r--app-misc/kanatest/Manifest1
-rw-r--r--app-misc/kanatest/files/kanatest-0.4.8+gtk-2.22.patch23
-rw-r--r--app-misc/kanatest/files/kanatest-0.4.8-autoconf.patch13
-rw-r--r--app-misc/kanatest/files/kanatest-0.4.8-cflags.patch13
-rw-r--r--app-misc/kanatest/kanatest-0.4.8.ebuild41
-rw-r--r--app-misc/kanatest/metadata.xml5
-rw-r--r--app-misc/klavaro/Manifest1
-rw-r--r--app-misc/klavaro/files/klavaro-3.0.1-datadir.patch27
-rw-r--r--app-misc/klavaro/files/klavaro-3.0.1-out-of-source.patch11
-rw-r--r--app-misc/klavaro/files/klavaro-3.0.1-static.patch8
-rw-r--r--app-misc/klavaro/files/klavaro-desktop-keywords.patch11
-rw-r--r--app-misc/klavaro/klavaro-3.0.1.ebuild44
-rw-r--r--app-misc/klavaro/metadata.xml10
-rw-r--r--app-misc/ktoblzcheck/Manifest3
-rw-r--r--app-misc/ktoblzcheck/ktoblzcheck-1.39.ebuild54
-rw-r--r--app-misc/ktoblzcheck/ktoblzcheck-1.45.ebuild41
-rw-r--r--app-misc/ktoblzcheck/ktoblzcheck-1.48.ebuild41
-rw-r--r--app-misc/ktoblzcheck/metadata.xml10
-rw-r--r--app-misc/lcd-stuff/Manifest1
-rw-r--r--app-misc/lcd-stuff/files/lcd-stuff-0.1.2-mpd.patch23
-rw-r--r--app-misc/lcd-stuff/files/lcd-stuff-0.1.2-r1.initd24
-rw-r--r--app-misc/lcd-stuff/files/lcd-stuff-0.1.3-socket-h.patch33
-rw-r--r--app-misc/lcd-stuff/files/lcd-stuff.confd13
-rw-r--r--app-misc/lcd-stuff/lcd-stuff-0.1.6.ebuild56
-rw-r--r--app-misc/lcd-stuff/metadata.xml20
-rw-r--r--app-misc/lcd4linux/Manifest1
-rw-r--r--app-misc/lcd4linux/files/lcd4linux-0.10.1_rc2-autoconf-2.65.patch20
-rw-r--r--app-misc/lcd4linux/files/lcd4linux-0.10.1_rc2-missing-header.patch12
-rw-r--r--app-misc/lcd4linux/files/lcd4linux-0.10.1_rc2-mpd.patch374
-rw-r--r--app-misc/lcd4linux/files/lcd4linux-0.10.1_rc2-nordtsc.patch187
-rw-r--r--app-misc/lcd4linux/files/lcd4linux-0.10.1_rc2-usbdebug.patch121
-rw-r--r--app-misc/lcd4linux/files/lcd4linux-0.10.1_rc2-warnings.patch64
-rw-r--r--app-misc/lcd4linux/files/lcd4linux-0.10.1_rc2.initd23
-rw-r--r--app-misc/lcd4linux/lcd4linux-0.10.1_rc2-r3.ebuild175
-rw-r--r--app-misc/lcd4linux/metadata.xml16
-rw-r--r--app-misc/lcdproc/Manifest4
-rw-r--r--app-misc/lcdproc/files/0.5.1-LCDd.initd22
-rw-r--r--app-misc/lcdproc/files/0.5.1-lcdproc.initd21
-rw-r--r--app-misc/lcdproc/files/0.5.2-r2-lcdproc.initd22
-rw-r--r--app-misc/lcdproc/lcdproc-0.5.2-r1.ebuild184
-rw-r--r--app-misc/lcdproc/lcdproc-0.5.5.ebuild192
-rw-r--r--app-misc/lcdproc/lcdproc-0.5.6-r1.ebuild196
-rw-r--r--app-misc/lcdproc/metadata.xml29
-rw-r--r--app-misc/leave/Manifest1
-rw-r--r--app-misc/leave/files/README9
-rw-r--r--app-misc/leave/files/leave-fix-makefile.diff20
-rw-r--r--app-misc/leave/leave-20100918.ebuild34
-rw-r--r--app-misc/leave/metadata.xml5
-rw-r--r--app-misc/ledit/Manifest1
-rw-r--r--app-misc/ledit/ledit-2.03.ebuild42
-rw-r--r--app-misc/ledit/metadata.xml5
-rw-r--r--app-misc/lfm/Manifest1
-rw-r--r--app-misc/lfm/files/lfm-2.3-no-doc.patch12
-rw-r--r--app-misc/lfm/lfm-2.3-r1.ebuild22
-rw-r--r--app-misc/lfm/metadata.xml7
-rw-r--r--app-misc/linux-logo/Manifest1
-rw-r--r--app-misc/linux-logo/files/gentoo-alt.logo39
-rw-r--r--app-misc/linux-logo/files/gentoo-linux.logo82
-rw-r--r--app-misc/linux-logo/files/linux-logo-5.11.conf28
-rw-r--r--app-misc/linux-logo/files/linux-logo.init.d36
-rw-r--r--app-misc/linux-logo/files/linux-logo.service9
-rw-r--r--app-misc/linux-logo/files/linux_logo_creator12
-rw-r--r--app-misc/linux-logo/files/logo-config7
-rw-r--r--app-misc/linux-logo/linux-logo-5.11-r3.ebuild77
-rw-r--r--app-misc/linux-logo/metadata.xml17
-rw-r--r--app-misc/linuxspa/Manifest1
-rw-r--r--app-misc/linuxspa/files/linuxspa-0.7.1-compile-fix.patch12
-rw-r--r--app-misc/linuxspa/linuxspa-0.7.1-r1.ebuild39
-rw-r--r--app-misc/linuxspa/linuxspa-0.7.1.ebuild34
-rw-r--r--app-misc/linuxspa/metadata.xml11
-rw-r--r--app-misc/lirc/Manifest1
-rw-r--r--app-misc/lirc/files/irexec-confd9
-rwxr-xr-xapp-misc/lirc/files/irexec-initd28
-rwxr-xr-xapp-misc/lirc/files/irexec-initd-0.8.6-r228
-rw-r--r--app-misc/lirc/files/irexec.service10
-rw-r--r--app-misc/lirc/files/lirc-0.8.3_pre1-remotewonderplus.patch26
-rw-r--r--app-misc/lirc/files/lirc-0.8.4-portaudio_check.patch18
-rw-r--r--app-misc/lirc/files/lirc-0.9.0-add-zotac-support.patch658
-rw-r--r--app-misc/lirc/files/lirc-0.9.0-atiusb_kfifo.patch14
-rw-r--r--app-misc/lirc/files/lirc-0.9.0-fixed-font.patch20
-rw-r--r--app-misc/lirc/files/lirc-0.9.0-kernel-2.6.39-fixes.patch67
-rw-r--r--app-misc/lirc/files/lirc-0.9.0-kernel-3.3.0-fixes.patch50
-rw-r--r--app-misc/lirc/files/lirc-0.9.0-kernel-3.5-err-fix.patch12
-rw-r--r--app-misc/lirc/files/lirc-0.9.0-kernel-3.8-fixes.patch80
-rw-r--r--app-misc/lirc/files/lirc.service10
-rw-r--r--app-misc/lirc/files/lircd-0.8.323
-rw-r--r--app-misc/lirc/files/lircd-0.8.641
-rw-r--r--app-misc/lirc/files/lircd-0.8.6-r252
-rw-r--r--app-misc/lirc/files/lircd.conf.210
-rw-r--r--app-misc/lirc/files/lircd.conf.422
-rw-r--r--app-misc/lirc/files/lircm.service11
-rw-r--r--app-misc/lirc/files/lircmd20
-rw-r--r--app-misc/lirc/files/modprobed.lirc22
-rw-r--r--app-misc/lirc/files/modulesd.lirc22
-rw-r--r--app-misc/lirc/lirc-0.9.0-r2.ebuild427
-rw-r--r--app-misc/lirc/lirc-0.9.0-r3.ebuild429
-rw-r--r--app-misc/lirc/lirc-0.9.0-r4.ebuild431
-rw-r--r--app-misc/lirc/lirc-0.9.0-r5.ebuild435
-rw-r--r--app-misc/lirc/metadata.xml14
-rw-r--r--app-misc/livecd-tools/Manifest2
-rw-r--r--app-misc/livecd-tools/livecd-tools-2.0.3.ebuild44
-rw-r--r--app-misc/livecd-tools/livecd-tools-2.0.4.ebuild44
-rw-r--r--app-misc/livecd-tools/livecd-tools-9999.ebuild44
-rw-r--r--app-misc/livecd-tools/metadata.xml5
-rw-r--r--app-misc/lockfile-progs/Manifest2
-rw-r--r--app-misc/lockfile-progs/files/Makefile55
-rw-r--r--app-misc/lockfile-progs/lockfile-progs-0.1.16.ebuild25
-rw-r--r--app-misc/lockfile-progs/lockfile-progs-0.1.17.ebuild35
-rw-r--r--app-misc/lockfile-progs/metadata.xml8
-rw-r--r--app-misc/logitech-applet/Manifest1
-rw-r--r--app-misc/logitech-applet/files/40-logitech_applet.rules6
-rw-r--r--app-misc/logitech-applet/files/logitech-applet-0.4_pre1-mx300-mx518.patch139
-rw-r--r--app-misc/logitech-applet/logitech-applet-0.4_pre1-r3.ebuild34
-rw-r--r--app-misc/logitech-applet/metadata.xml5
-rw-r--r--app-misc/logserial/Manifest1
-rw-r--r--app-misc/logserial/files/logserial-0.4.2-gentoo.patch30
-rw-r--r--app-misc/logserial/logserial-0.4.2.ebuild32
-rw-r--r--app-misc/logserial/metadata.xml13
-rw-r--r--app-misc/lsx/Manifest1
-rw-r--r--app-misc/lsx/lsx-0.1.ebuild48
-rw-r--r--app-misc/lsx/metadata.xml8
-rw-r--r--app-misc/ltunify/Manifest1
-rw-r--r--app-misc/ltunify/ltunify-0.2-r1.ebuild35
-rw-r--r--app-misc/ltunify/metadata.xml8
-rw-r--r--app-misc/lxsplit/Manifest1
-rw-r--r--app-misc/lxsplit/lxsplit-0.2.4.ebuild24
-rw-r--r--app-misc/lxsplit/metadata.xml8
-rw-r--r--app-misc/magneto-loader/Manifest1
-rw-r--r--app-misc/magneto-loader/magneto-loader-254.ebuild31
-rw-r--r--app-misc/magneto-loader/metadata.xml11
-rw-r--r--app-misc/matew/Manifest1
-rw-r--r--app-misc/matew/matew-1.9.ebuild35
-rw-r--r--app-misc/matew/metadata.xml8
-rw-r--r--app-misc/mc/Manifest4
-rw-r--r--app-misc/mc/files/mc-4.8.11-ncurses_build_fix.patch38
-rw-r--r--app-misc/mc/files/mc-4.8.13-3297-prealloc.patch120
-rw-r--r--app-misc/mc/files/mc-4.8.13-tinfo.patch39
-rw-r--r--app-misc/mc/mc-4.8.11.ebuild99
-rw-r--r--app-misc/mc/mc-4.8.12.ebuild97
-rw-r--r--app-misc/mc/mc-4.8.13-r1.ebuild102
-rw-r--r--app-misc/mc/mc-4.8.13.ebuild100
-rw-r--r--app-misc/mc/mc-4.8.14.ebuild101
-rw-r--r--app-misc/mc/mc-9999.ebuild108
-rw-r--r--app-misc/mc/metadata.xml24
-rw-r--r--app-misc/media-player-info/Manifest2
-rw-r--r--app-misc/media-player-info/files/media-player-info-21-udev.patch20
-rw-r--r--app-misc/media-player-info/media-player-info-21-r1.ebuild43
-rw-r--r--app-misc/media-player-info/media-player-info-22.ebuild37
-rw-r--r--app-misc/media-player-info/metadata.xml5
-rw-r--r--app-misc/mediacrush-cli/Manifest1
-rw-r--r--app-misc/mediacrush-cli/mediacrush-cli-1.1.2.ebuild46
-rw-r--r--app-misc/mediacrush-cli/mediacrush-cli-9999.ebuild45
-rw-r--r--app-misc/mediacrush-cli/metadata.xml11
-rw-r--r--app-misc/mencal/Manifest1
-rw-r--r--app-misc/mencal/mencal-2.3.ebuild19
-rw-r--r--app-misc/mencal/metadata.xml8
-rw-r--r--app-misc/mepl/Manifest1
-rw-r--r--app-misc/mepl/files/gcc433.patch16
-rw-r--r--app-misc/mepl/mepl-0.45.ebuild36
-rw-r--r--app-misc/mepl/metadata.xml7
-rw-r--r--app-misc/metadata.xml36
-rw-r--r--app-misc/metromap/Manifest1
-rw-r--r--app-misc/metromap/metadata.xml13
-rw-r--r--app-misc/metromap/metromap-0.1.4-r1.ebuild52
-rw-r--r--app-misc/mime-types/Manifest1
-rw-r--r--app-misc/mime-types/metadata.xml9
-rw-r--r--app-misc/mime-types/mime-types-9.ebuild20
-rw-r--r--app-misc/misterhouse/Manifest2
-rw-r--r--app-misc/misterhouse/files/misterhouse.conf12
-rwxr-xr-xapp-misc/misterhouse/files/misterhouse.init18
-rw-r--r--app-misc/misterhouse/metadata.xml10
-rw-r--r--app-misc/misterhouse/misterhouse-2.103.ebuild50
-rw-r--r--app-misc/misterhouse/misterhouse-2.105.ebuild52
-rw-r--r--app-misc/mmv/Manifest3
-rw-r--r--app-misc/mmv/metadata.xml5
-rw-r--r--app-misc/mmv/mmv-1.01b_p15.ebuild50
-rw-r--r--app-misc/mmv/mmv-1.01b_p18.ebuild50
-rw-r--r--app-misc/mouseremote/Manifest1
-rw-r--r--app-misc/mouseremote/files/mouseremote-0.90-makefile.diff20
-rw-r--r--app-misc/mouseremote/files/mouseremote-gentoo-0.90-r1.diff66
-rw-r--r--app-misc/mouseremote/files/mouseremote-gentoo.diff82
-rw-r--r--app-misc/mouseremote/files/mouseremote.conf14
-rw-r--r--app-misc/mouseremote/files/mouseremote.start29
-rw-r--r--app-misc/mouseremote/metadata.xml7
-rw-r--r--app-misc/mouseremote/mouseremote-0.90-r1.ebuild69
-rw-r--r--app-misc/mtail/Manifest2
-rw-r--r--app-misc/mtail/files/mtail-1.1.1-remove-blanks.patch52
-rw-r--r--app-misc/mtail/metadata.xml12
-rw-r--r--app-misc/mtail/mtail-1.1.1-r2.ebuild27
-rw-r--r--app-misc/mtail/mtail-1.1.1-r3.ebuild31
-rw-r--r--app-misc/multimon/Manifest2
-rw-r--r--app-misc/multimon/files/multimon-1.0-flags.patch46
-rw-r--r--app-misc/multimon/files/multimon-1.0-includes.patch20
-rw-r--r--app-misc/multimon/files/multimon-1.0-prll.patch75
-rw-r--r--app-misc/multimon/metadata.xml7
-rw-r--r--app-misc/multimon/multimon-1.0-r2.ebuild47
-rw-r--r--app-misc/multimon/multimon-1.0-r3.ebuild50
-rw-r--r--app-misc/muttprint/Manifest1
-rw-r--r--app-misc/muttprint/files/muttprint-0.73-manuals.patch140
-rw-r--r--app-misc/muttprint/files/muttprint-0.73-pod-encoding.patch32
-rw-r--r--app-misc/muttprint/files/muttprint-0.73-r3-pod-encoding.patch36
-rw-r--r--app-misc/muttprint/files/muttprint-0.73-warning.patch20
-rw-r--r--app-misc/muttprint/metadata.xml20
-rw-r--r--app-misc/muttprint/muttprint-0.73-r1.ebuild74
-rw-r--r--app-misc/muttprint/muttprint-0.73-r2.ebuild75
-rw-r--r--app-misc/muttprint/muttprint-0.73-r3.ebuild75
-rw-r--r--app-misc/muttprint/muttprint-0.73.ebuild71
-rw-r--r--app-misc/mvcase/Manifest1
-rw-r--r--app-misc/mvcase/files/mvcase-0.1-flags.patch25
-rw-r--r--app-misc/mvcase/files/mvcase-0.1-includes.patch25
-rw-r--r--app-misc/mvcase/metadata.xml7
-rw-r--r--app-misc/mvcase/mvcase-0.1-r1.ebuild35
-rw-r--r--app-misc/note/Manifest1
-rw-r--r--app-misc/note/metadata.xml12
-rw-r--r--app-misc/note/note-1.3.3-r1.ebuild56
-rw-r--r--app-misc/nullmodem/Manifest1
-rw-r--r--app-misc/nullmodem/metadata.xml21
-rw-r--r--app-misc/nullmodem/nullmodem-0.0.6.ebuild19
-rw-r--r--app-misc/nut/Manifest1
-rw-r--r--app-misc/nut/metadata.xml10
-rw-r--r--app-misc/nut/nut-20.1.ebuild29
-rw-r--r--app-misc/ofl/Manifest1
-rw-r--r--app-misc/ofl/metadata.xml8
-rw-r--r--app-misc/ofl/ofl-20110721.ebuild37
-rw-r--r--app-misc/ompload/Manifest1
-rw-r--r--app-misc/ompload/metadata.xml8
-rw-r--r--app-misc/ompload/ompload-20101220.ebuild26
-rw-r--r--app-misc/ondir/Manifest1
-rw-r--r--app-misc/ondir/metadata.xml5
-rw-r--r--app-misc/ondir/ondir-0.2.2-r1.ebuild40
-rw-r--r--app-misc/oneko/Manifest4
-rw-r--r--app-misc/oneko/files/oneko-1.2-include.patch10
-rw-r--r--app-misc/oneko/metadata.xml5
-rw-r--r--app-misc/oneko/oneko-1.2-r2.ebuild73
-rw-r--r--app-misc/pal/Manifest1
-rw-r--r--app-misc/pal/files/0.4.3-ldflags.patch8
-rw-r--r--app-misc/pal/files/0.4.3-strip.patch17
-rw-r--r--app-misc/pal/files/pal-0.4.3-pkg_config.patch14
-rw-r--r--app-misc/pal/files/pal-0.4.3-prefix.patch44
-rw-r--r--app-misc/pal/metadata.xml15
-rw-r--r--app-misc/pal/pal-0.4.3-r1.ebuild55
-rw-r--r--app-misc/pax-utils/Manifest17
-rw-r--r--app-misc/pax-utils/metadata.xml12
-rw-r--r--app-misc/pax-utils/pax-utils-0.2.1.ebuild29
-rw-r--r--app-misc/pax-utils/pax-utils-0.2.2.ebuild29
-rw-r--r--app-misc/pax-utils/pax-utils-0.2.3.ebuild30
-rw-r--r--app-misc/pax-utils/pax-utils-0.3.0.ebuild30
-rw-r--r--app-misc/pax-utils/pax-utils-0.4.ebuild30
-rw-r--r--app-misc/pax-utils/pax-utils-0.5.ebuild30
-rw-r--r--app-misc/pax-utils/pax-utils-0.6.ebuild38
-rw-r--r--app-misc/pax-utils/pax-utils-0.7.ebuild43
-rw-r--r--app-misc/pax-utils/pax-utils-0.8.1.ebuild43
-rw-r--r--app-misc/pax-utils/pax-utils-0.9.1.ebuild53
-rw-r--r--app-misc/pax-utils/pax-utils-0.9.2.ebuild53
-rw-r--r--app-misc/pax-utils/pax-utils-1.0.1.ebuild53
-rw-r--r--app-misc/pax-utils/pax-utils-1.0.2.ebuild53
-rw-r--r--app-misc/pax-utils/pax-utils-1.0.3.ebuild53
-rw-r--r--app-misc/pax-utils/pax-utils-1.0.4.ebuild53
-rw-r--r--app-misc/pax-utils/pax-utils-1.0.5.ebuild53
-rw-r--r--app-misc/pax-utils/pax-utils-1.0.ebuild53
-rw-r--r--app-misc/pdfpc/Manifest2
-rw-r--r--app-misc/pdfpc/metadata.xml11
-rw-r--r--app-misc/pdfpc/pdfpc-3.1.1.ebuild30
-rw-r--r--app-misc/pdfpc/pdfpc-4.0.0-r1.ebuild43
-rw-r--r--app-misc/perltrash/Manifest1
-rw-r--r--app-misc/perltrash/metadata.xml8
-rw-r--r--app-misc/perltrash/perltrash-0.3.ebuild19
-rw-r--r--app-misc/pfm/Manifest1
-rw-r--r--app-misc/pfm/metadata.xml15
-rw-r--r--app-misc/pfm/pfm-2.12.3.ebuild27
-rw-r--r--app-misc/physlock/Manifest3
-rw-r--r--app-misc/physlock/files/physlock-0.4.4-makefile.patch16
-rw-r--r--app-misc/physlock/metadata.xml21
-rw-r--r--app-misc/physlock/physlock-0.4.3.ebuild24
-rw-r--r--app-misc/physlock/physlock-0.4.4.ebuild24
-rw-r--r--app-misc/physlock/physlock-0.4.5.ebuild24
-rw-r--r--app-misc/pip/Manifest1
-rw-r--r--app-misc/pip/metadata.xml5
-rw-r--r--app-misc/pip/pip-1.2-r2.ebuild25
-rw-r--r--app-misc/pipeworks/Manifest1
-rw-r--r--app-misc/pipeworks/metadata.xml15
-rw-r--r--app-misc/pipeworks/pipeworks-0.4.ebuild26
-rw-r--r--app-misc/plod/Manifest1
-rw-r--r--app-misc/plod/files/plodrc2
-rw-r--r--app-misc/plod/metadata.xml7
-rw-r--r--app-misc/plod/plod-1.9.ebuild35
-rw-r--r--app-misc/ps3pf_utils/Manifest3
-rw-r--r--app-misc/ps3pf_utils/metadata.xml5
-rw-r--r--app-misc/ps3pf_utils/ps3pf_utils-2.1.1.ebuild21
-rw-r--r--app-misc/ps3pf_utils/ps3pf_utils-2.2.0.ebuild22
-rw-r--r--app-misc/ps3pf_utils/ps3pf_utils-2.3.ebuild22
-rw-r--r--app-misc/pwsafe/Manifest1
-rw-r--r--app-misc/pwsafe/files/pwsafe-0.2.0-XChangeProperty.patch22
-rw-r--r--app-misc/pwsafe/files/pwsafe-0.2.0-cvs-1.57.patch48
-rw-r--r--app-misc/pwsafe/files/pwsafe-0.2.0-fake-readline.patch107
-rw-r--r--app-misc/pwsafe/files/pwsafe-0.2.0-man-page-option-syntax.patch30
-rw-r--r--app-misc/pwsafe/files/pwsafe-0.2.0-printf.patch43
-rw-r--r--app-misc/pwsafe/metadata.xml23
-rw-r--r--app-misc/pwsafe/pwsafe-0.2.0-r2.ebuild42
-rw-r--r--app-misc/pysmssend/Manifest1
-rw-r--r--app-misc/pysmssend/metadata.xml11
-rw-r--r--app-misc/pysmssend/pysmssend-1.48-r1.ebuild49
-rw-r--r--app-misc/pysmssend/pysmssend-1.48.ebuild45
-rw-r--r--app-misc/pysmssend/pysmssend-9999.ebuild63
-rw-r--r--app-misc/pystopwatch/Manifest1
-rw-r--r--app-misc/pystopwatch/metadata.xml9
-rw-r--r--app-misc/pystopwatch/pystopwatch-2012.12.24.1-r1.ebuild36
-rw-r--r--app-misc/pystopwatch/pystopwatch-2012.12.24.1.ebuild30
-rw-r--r--app-misc/ranger/Manifest1
-rw-r--r--app-misc/ranger/files/ranger-1.6.1-w3mimgdisplay.patch11
-rw-r--r--app-misc/ranger/metadata.xml15
-rw-r--r--app-misc/ranger/ranger-1.7.1.ebuild38
-rw-r--r--app-misc/ranger/ranger-9999.ebuild31
-rw-r--r--app-misc/razertool/Manifest1
-rw-r--r--app-misc/razertool/metadata.xml12
-rw-r--r--app-misc/razertool/razertool-0.0.7-r3.ebuild62
-rw-r--r--app-misc/realpath/Manifest4
-rw-r--r--app-misc/realpath/files/realpath-1.14-no-po4a.patch12
-rw-r--r--app-misc/realpath/files/realpath-1.15-build.patch35
-rw-r--r--app-misc/realpath/files/realpath-1.15-prefix.patch39
-rw-r--r--app-misc/realpath/files/realpath-1.16-nonls.patch29
-rw-r--r--app-misc/realpath/files/realpath-1.17-build.patch43
-rw-r--r--app-misc/realpath/metadata.xml9
-rw-r--r--app-misc/realpath/realpath-1.17.ebuild75
-rw-r--r--app-misc/realpath/realpath-1.18.ebuild81
-rw-r--r--app-misc/recoll/Manifest2
-rw-r--r--app-misc/recoll/metadata.xml26
-rw-r--r--app-misc/recoll/recoll-1.17.3-r1.ebuild161
-rw-r--r--app-misc/recoll/recoll-1.19.5.ebuild178
-rw-r--r--app-misc/regex-markup/Manifest1
-rw-r--r--app-misc/regex-markup/files/regex-markup-0.10.0-locale.patch29
-rw-r--r--app-misc/regex-markup/metadata.xml8
-rw-r--r--app-misc/regex-markup/regex-markup-0.10.0.ebuild34
-rw-r--r--app-misc/regionset/Manifest2
-rw-r--r--app-misc/regionset/metadata.xml5
-rw-r--r--app-misc/regionset/regionset-0.1-r1.ebuild36
-rw-r--r--app-misc/regionset/regionset-0.2.ebuild41
-rw-r--r--app-misc/relevation/Manifest1
-rw-r--r--app-misc/relevation/metadata.xml8
-rw-r--r--app-misc/relevation/relevation-1.3.ebuild27
-rw-r--r--app-misc/remind/Manifest3
-rw-r--r--app-misc/remind/metadata.xml5
-rw-r--r--app-misc/remind/remind-03.01.13.ebuild44
-rw-r--r--app-misc/remind/remind-03.01.14.ebuild44
-rw-r--r--app-misc/remind/remind-03.01.15.ebuild44
-rw-r--r--app-misc/reptyr/Manifest4
-rw-r--r--app-misc/reptyr/metadata.xml12
-rw-r--r--app-misc/reptyr/reptyr-0.5.ebuild30
-rw-r--r--app-misc/reptyr/reptyr-0.6.1.ebuild32
-rw-r--r--app-misc/reptyr/reptyr-0.6.2.ebuild32
-rw-r--r--app-misc/reptyr/reptyr-0.6.ebuild32
-rw-r--r--app-misc/rioutil/Manifest1
-rw-r--r--app-misc/rioutil/files/75-rio.rules38
-rw-r--r--app-misc/rioutil/files/rioutil-1.5.0-buffer-overflow.patch15
-rw-r--r--app-misc/rioutil/metadata.xml11
-rw-r--r--app-misc/rioutil/rioutil-1.5.0-r2.ebuild35
-rw-r--r--app-misc/rl/Manifest1
-rw-r--r--app-misc/rl/metadata.xml10
-rw-r--r--app-misc/rl/rl-0.2.7.ebuild26
-rw-r--r--app-misc/rlwrap/Manifest3
-rw-r--r--app-misc/rlwrap/metadata.xml15
-rw-r--r--app-misc/rlwrap/rlwrap-0.37.ebuild27
-rw-r--r--app-misc/rlwrap/rlwrap-0.41.ebuild27
-rw-r--r--app-misc/rlwrap/rlwrap-0.42.ebuild27
-rw-r--r--app-misc/roadnav/Manifest1
-rw-r--r--app-misc/roadnav/files/roadnav-0.19-gcc45.patch26
-rw-r--r--app-misc/roadnav/metadata.xml17
-rw-r--r--app-misc/roadnav/roadnav-0.19-r1.ebuild59
-rw-r--r--app-misc/rox-filer/Manifest1
-rw-r--r--app-misc/rox-filer/files/rox-filer-2.11-in-source-build.patch15
-rw-r--r--app-misc/rox-filer/files/rox.desktop9
-rw-r--r--app-misc/rox-filer/metadata.xml33
-rw-r--r--app-misc/rox-filer/rox-filer-2.11.ebuild71
-rw-r--r--app-misc/run-mailcap/Manifest2
-rw-r--r--app-misc/run-mailcap/files/run-mailcap-breakrecursion.patch11
-rw-r--r--app-misc/run-mailcap/metadata.xml7
-rw-r--r--app-misc/run-mailcap/run-mailcap-3.39_p1.ebuild36
-rw-r--r--app-misc/run-mailcap/run-mailcap-3.52_p1.ebuild33
-rw-r--r--app-misc/scope/Manifest1
-rw-r--r--app-misc/scope/metadata.xml13
-rw-r--r--app-misc/scope/scope-0.04-r1.ebuild23
-rw-r--r--app-misc/screen/Manifest3
-rw-r--r--app-misc/screen/files/4.0.2-64bit-time.patch11
-rw-r--r--app-misc/screen/files/4.0.2-no-libelf.patch18
-rw-r--r--app-misc/screen/files/4.0.2-no-pty.patch14
-rw-r--r--app-misc/screen/files/4.0.2-no-utempter.patch14
-rw-r--r--app-misc/screen/files/4.0.2-nonblock.patch11
-rw-r--r--app-misc/screen/files/4.0.2-windowlist-multiuser-fix.patch12
-rw-r--r--app-misc/screen/files/4.0.3-extend-d_termname-ng2.patch203
-rw-r--r--app-misc/screen/files/screen-4.0.1-int-overflow-fix.patch31
-rw-r--r--app-misc/screen/files/screen-4.0.1-vsprintf.patch13
-rw-r--r--app-misc/screen/files/screen-4.0.3-config.h-autoconf-2.62.patch14
-rw-r--r--app-misc/screen/files/screen-4.0.3-cppflags.patch20
-rw-r--r--app-misc/screen/files/screen-4.0.3-crosscompile.patch598
-rw-r--r--app-misc/screen/files/screen-4.0.3-setenv_autoconf.patch79
-rw-r--r--app-misc/screen/files/screen-4.3.0-no-utempter.patch14
-rw-r--r--app-misc/screen/files/screenrc356
-rw-r--r--app-misc/screen/metadata.xml32
-rw-r--r--app-misc/screen/screen-4.0.3-r6.ebuild163
-rw-r--r--app-misc/screen/screen-4.0.3-r7.ebuild163
-rw-r--r--app-misc/screen/screen-4.0.3-r8.ebuild173
-rw-r--r--app-misc/screen/screen-4.2.1-r2.ebuild145
-rw-r--r--app-misc/screen/screen-4.3.1.ebuild145
-rw-r--r--app-misc/screen/screen-9999.ebuild146
-rw-r--r--app-misc/screenfetch/Manifest3
-rw-r--r--app-misc/screenfetch/metadata.xml14
-rw-r--r--app-misc/screenfetch/screenfetch-2.7.7.ebuild28
-rw-r--r--app-misc/screenfetch/screenfetch-3.2.2.ebuild31
-rw-r--r--app-misc/screenfetch/screenfetch-3.6.5.ebuild31
-rw-r--r--app-misc/screenfetch/screenfetch-9999.ebuild31
-rw-r--r--app-misc/screenie/Manifest1
-rw-r--r--app-misc/screenie/files/screenie-CVE-2008-5371.patch26
-rw-r--r--app-misc/screenie/metadata.xml20
-rw-r--r--app-misc/screenie/screenie-1.30.0-r1.ebuild27
-rw-r--r--app-misc/scrub/Manifest2
-rw-r--r--app-misc/scrub/metadata.xml12
-rw-r--r--app-misc/scrub/scrub-2.5.2.ebuild17
-rw-r--r--app-misc/scrub/scrub-2.6.1.ebuild17
-rw-r--r--app-misc/sl/Manifest3
-rw-r--r--app-misc/sl/files/Makefile5
-rw-r--r--app-misc/sl/files/fix_compilation.patch22
-rw-r--r--app-misc/sl/files/sl-3.03-gentoo.diff10
-rw-r--r--app-misc/sl/metadata.xml14
-rw-r--r--app-misc/sl/sl-3.03-r3.ebuild63
-rw-r--r--app-misc/slashtime/Manifest1
-rw-r--r--app-misc/slashtime/metadata.xml6
-rw-r--r--app-misc/slashtime/slashtime-0.5.13-r1.ebuild50
-rw-r--r--app-misc/sleepyhead/Manifest2
-rw-r--r--app-misc/sleepyhead/files/common_gui.patch12
-rw-r--r--app-misc/sleepyhead/files/gitfix.patch15
-rw-r--r--app-misc/sleepyhead/files/prs1-64fix.patch13
-rw-r--r--app-misc/sleepyhead/files/prs1-code8fix.patch12
-rw-r--r--app-misc/sleepyhead/metadata.xml8
-rw-r--r--app-misc/sleepyhead/sleepyhead-0.9.2.2-r1.ebuild53
-rw-r--r--app-misc/sleepyhead/sleepyhead-0.9.2.2.ebuild50
-rw-r--r--app-misc/sleepyhead/sleepyhead-0.9.3.ebuild51
-rw-r--r--app-misc/sleepyhead/sleepyhead-9999.ebuild48
-rw-r--r--app-misc/slmon/Manifest1
-rw-r--r--app-misc/slmon/files/slmon-0.5.13-invalid-free.patch18
-rw-r--r--app-misc/slmon/files/slmon-0.5.13-make-382.patch11
-rw-r--r--app-misc/slmon/metadata.xml10
-rw-r--r--app-misc/slmon/slmon-0.5.13.ebuild42
-rw-r--r--app-misc/smtm/Manifest1
-rw-r--r--app-misc/smtm/metadata.xml7
-rw-r--r--app-misc/smtm/smtm-1.6.10-r1.ebuild33
-rw-r--r--app-misc/socnetv/Manifest1
-rw-r--r--app-misc/socnetv/metadata.xml19
-rw-r--r--app-misc/socnetv/socnetv-0.90.ebuild47
-rw-r--r--app-misc/solaar/Manifest1
-rw-r--r--app-misc/solaar/metadata.xml10
-rw-r--r--app-misc/solaar/solaar-0.9.2-r3.ebuild59
-rw-r--r--app-misc/sonypid/Manifest1
-rw-r--r--app-misc/sonypid/metadata.xml7
-rw-r--r--app-misc/sonypid/sonypid-1.9.ebuild29
-rw-r--r--app-misc/spacenavd/Manifest1
-rw-r--r--app-misc/spacenavd/files/99-space-navigator.rules6
-rw-r--r--app-misc/spacenavd/files/99-space-navigator.rules-r17
-rw-r--r--app-misc/spacenavd/files/spacenavd-0.5-custom-flags.patch67
-rw-r--r--app-misc/spacenavd/files/spacenavd-0.5-destdir.patch16
-rw-r--r--app-misc/spacenavd/files/spacenavd-0.5-no-x11.patch13
-rw-r--r--app-misc/spacenavd/files/spacenavd.service8
-rw-r--r--app-misc/spacenavd/files/spnavd27
-rw-r--r--app-misc/spacenavd/metadata.xml25
-rw-r--r--app-misc/spacenavd/spacenavd-0.5-r2.ebuild79
-rw-r--r--app-misc/spacenavd/spacenavd-0.5-r4.ebuild79
-rw-r--r--app-misc/spacenavd/spacenavd-0.5-r5.ebuild82
-rw-r--r--app-misc/specto/Manifest1
-rw-r--r--app-misc/specto/files/specto-0.4.1-icon-theme.patch30
-rw-r--r--app-misc/specto/metadata.xml11
-rw-r--r--app-misc/specto/specto-0.4.1-r1.ebuild40
-rw-r--r--app-misc/sphinx/Manifest5
-rw-r--r--app-misc/sphinx/files/searchd.rc32
-rw-r--r--app-misc/sphinx/files/sphinx-1.10_beta-darwin8.patch23
-rw-r--r--app-misc/sphinx/files/sphinx-1.10_beta-libsphinxclient-darwin.patch22
-rw-r--r--app-misc/sphinx/files/sphinx-1.10_beta-nosigpipe.patch26
-rw-r--r--app-misc/sphinx/files/sphinx-2.0.1_beta-darwin8.patch22
-rw-r--r--app-misc/sphinx/files/sphinx-2.0.1_beta-solaris.patch35
-rw-r--r--app-misc/sphinx/files/sphinx-2.0.4_gcc-4.7.patch29
-rw-r--r--app-misc/sphinx/metadata.xml11
-rw-r--r--app-misc/sphinx/sphinx-0.9.9.ebuild71
-rw-r--r--app-misc/sphinx/sphinx-2.0.10.ebuild101
-rw-r--r--app-misc/sphinx/sphinx-2.1.8.ebuild90
-rw-r--r--app-misc/sphinx/sphinx-2.1.9.ebuild90
-rw-r--r--app-misc/splitvt/Manifest2
-rw-r--r--app-misc/splitvt/files/1.6.6-ldflags.patch23
-rw-r--r--app-misc/splitvt/metadata.xml5
-rw-r--r--app-misc/splitvt/splitvt-1.6.6-r2.ebuild47
-rw-r--r--app-misc/srm/Manifest2
-rw-r--r--app-misc/srm/files/cflags.patch21
-rw-r--r--app-misc/srm/files/srm-1.2.11-cflags.patch23
-rw-r--r--app-misc/srm/files/srm-1.2.15-cflags.patch10
-rw-r--r--app-misc/srm/files/srm-1.2.8-remove-mount.patch13
-rw-r--r--app-misc/srm/metadata.xml15
-rw-r--r--app-misc/srm/srm-1.2.11-r2.ebuild37
-rw-r--r--app-misc/srm/srm-1.2.15.ebuild37
-rw-r--r--app-misc/strigi/Manifest1
-rw-r--r--app-misc/strigi/files/strigi-0.7.8-gcc-4.8.patch11
-rw-r--r--app-misc/strigi/files/strigi-0.7.8-libav10.patch16
-rw-r--r--app-misc/strigi/metadata.xml10
-rw-r--r--app-misc/strigi/strigi-0.7.8-r1.ebuild99
-rw-r--r--app-misc/subsurface/Manifest2
-rw-r--r--app-misc/subsurface/metadata.xml24
-rw-r--r--app-misc/subsurface/subsurface-3.1.1.ebuild110
-rw-r--r--app-misc/subsurface/subsurface-4.2.ebuild76
-rw-r--r--app-misc/subsurface/subsurface-9999.ebuild76
-rw-r--r--app-misc/supercat/Manifest1
-rw-r--r--app-misc/supercat/metadata.xml5
-rw-r--r--app-misc/supercat/supercat-0.5.5-r1.ebuild24
-rw-r--r--app-misc/symlinks/Manifest1
-rw-r--r--app-misc/symlinks/files/symlinks-1.2-fix-implicit-declaration.patch11
-rw-r--r--app-misc/symlinks/metadata.xml12
-rw-r--r--app-misc/symlinks/symlinks-1.4-r2.ebuild35
-rw-r--r--app-misc/symlinks/symlinks-1.4.ebuild28
-rw-r--r--app-misc/tablix/Manifest1
-rw-r--r--app-misc/tablix/metadata.xml9
-rw-r--r--app-misc/tablix/tablix-0.3.5-r1.ebuild59
-rw-r--r--app-misc/task/Manifest1
-rw-r--r--app-misc/task/metadata.xml8
-rw-r--r--app-misc/task/task-2.4.4.ebuild59
-rw-r--r--app-misc/tasque/Manifest2
-rw-r--r--app-misc/tasque/metadata.xml17
-rw-r--r--app-misc/tasque/tasque-0.1.11.ebuild60
-rw-r--r--app-misc/tasque/tasque-0.1.12.ebuild53
-rw-r--r--app-misc/tdfsb/Manifest1
-rw-r--r--app-misc/tdfsb/files/tdfsb-0.0.10-asneeded.patch23
-rw-r--r--app-misc/tdfsb/files/tdfsb-0.0.10-debugging.patch28
-rw-r--r--app-misc/tdfsb/metadata.xml8
-rw-r--r--app-misc/tdfsb/tdfsb-0.0.10.ebuild38
-rw-r--r--app-misc/tdl/Manifest2
-rw-r--r--app-misc/tdl/files/1.5.2-ldflags.patch13
-rw-r--r--app-misc/tdl/files/tdl-1.5.2-list.c.patch34
-rw-r--r--app-misc/tdl/files/tdl-1.5.2-main.c.patch178
-rw-r--r--app-misc/tdl/files/tdl-1.5.2-man.patch507
-rw-r--r--app-misc/tdl/metadata.xml10
-rw-r--r--app-misc/tdl/tdl-1.5.2-r2.ebuild76
-rw-r--r--app-misc/terminal-colors/Manifest3
-rw-r--r--app-misc/terminal-colors/metadata.xml8
-rw-r--r--app-misc/terminal-colors/terminal-colors-2.0.ebuild25
-rw-r--r--app-misc/terminal-colors/terminal-colors-2.1.ebuild25
-rw-r--r--app-misc/terminal-colors/terminal-colors-2.2.ebuild25
-rw-r--r--app-misc/timestamp/Manifest1
-rw-r--r--app-misc/timestamp/metadata.xml5
-rw-r--r--app-misc/timestamp/timestamp-1.1.ebuild20
-rw-r--r--app-misc/tkpasman/Manifest1
-rw-r--r--app-misc/tkpasman/files/tkpasman-2.2a-gentoo.patch22
-rw-r--r--app-misc/tkpasman/metadata.xml7
-rw-r--r--app-misc/tkpasman/tkpasman-2.2b.ebuild40
-rw-r--r--app-misc/tmux-mem-cpu-load/Manifest2
-rw-r--r--app-misc/tmux-mem-cpu-load/metadata.xml11
-rw-r--r--app-misc/tmux-mem-cpu-load/tmux-mem-cpu-load-2.1.0.ebuild38
-rw-r--r--app-misc/tmux-mem-cpu-load/tmux-mem-cpu-load-2.2.1-r1.ebuild29
-rw-r--r--app-misc/tmux-mem-cpu-load/tmux-mem-cpu-load-2.2.1.ebuild26
-rw-r--r--app-misc/tmux-mem-cpu-load/tmux-mem-cpu-load-9999.ebuild26
-rw-r--r--app-misc/tmux/Manifest2
-rw-r--r--app-misc/tmux/files/tmux-1.9a-flags.patch28
-rw-r--r--app-misc/tmux/files/tmux-2.0-flags.patch18
-rw-r--r--app-misc/tmux/files/tmux.vim1
-rw-r--r--app-misc/tmux/metadata.xml15
-rw-r--r--app-misc/tmux/tmux-1.9a.ebuild85
-rw-r--r--app-misc/tmux/tmux-2.0.ebuild85
-rw-r--r--app-misc/tmux/tmux-9999.ebuild71
-rw-r--r--app-misc/toilet/Manifest1
-rw-r--r--app-misc/toilet/metadata.xml8
-rw-r--r--app-misc/toilet/toilet-0.3.ebuild29
-rw-r--r--app-misc/tomboy/Manifest1
-rw-r--r--app-misc/tomboy/metadata.xml5
-rw-r--r--app-misc/tomboy/tomboy-1.14.1.ebuild61
-rw-r--r--app-misc/towitoko/Manifest1
-rw-r--r--app-misc/towitoko/metadata.xml11
-rw-r--r--app-misc/towitoko/towitoko-2.0.7-r2.ebuild38
-rw-r--r--app-misc/tpconfig/Manifest1
-rw-r--r--app-misc/tpconfig/files/tpconfig23
-rw-r--r--app-misc/tpconfig/files/tpconfig.conf5
-rw-r--r--app-misc/tpconfig/metadata.xml7
-rw-r--r--app-misc/tpconfig/tpconfig-3.1.3.ebuild26
-rw-r--r--app-misc/tpipe/Manifest1
-rw-r--r--app-misc/tpipe/metadata.xml8
-rw-r--r--app-misc/tpipe/tpipe-1.6.ebuild24
-rw-r--r--app-misc/tprint/Manifest1
-rw-r--r--app-misc/tprint/metadata.xml11
-rw-r--r--app-misc/tprint/tprint-1.1.0-r1.ebuild35
-rw-r--r--app-misc/tracker/Manifest3
-rw-r--r--app-misc/tracker/files/tracker-1.4.0-have-gstreamer-fix.patch35
-rw-r--r--app-misc/tracker/metadata.xml27
-rw-r--r--app-misc/tracker/tracker-1.2.5.ebuild262
-rw-r--r--app-misc/tracker/tracker-1.2.6.ebuild268
-rw-r--r--app-misc/tracker/tracker-1.4.0.ebuild269
-rw-r--r--app-misc/trash-cli/Manifest1
-rw-r--r--app-misc/trash-cli/metadata.xml24
-rw-r--r--app-misc/trash-cli/trash-cli-0.12.9.14-r2.ebuild21
-rw-r--r--app-misc/ttyrec/Manifest1
-rw-r--r--app-misc/ttyrec/files/ttyrec-1.0.8-ldflags.patch19
-rw-r--r--app-misc/ttyrec/metadata.xml14
-rw-r--r--app-misc/ttyrec/ttyrec-1.0.8-r1.ebuild30
-rw-r--r--app-misc/ttysnoop/Manifest1
-rw-r--r--app-misc/ttysnoop/files/pinkbyte_masking.patch41
-rw-r--r--app-misc/ttysnoop/files/ttysnoop-makefile.patch36
-rw-r--r--app-misc/ttysnoop/metadata.xml8
-rw-r--r--app-misc/ttysnoop/ttysnoop-0.12d.ebuild45
-rw-r--r--app-misc/unfoo/Manifest1
-rw-r--r--app-misc/unfoo/metadata.xml11
-rw-r--r--app-misc/unfoo/unfoo-1.0.8.ebuild52
-rw-r--r--app-misc/uptimed/Manifest2
-rw-r--r--app-misc/uptimed/files/uptimed.init14
-rw-r--r--app-misc/uptimed/files/uptimed.service10
-rw-r--r--app-misc/uptimed/metadata.xml11
-rw-r--r--app-misc/uptimed/uptimed-0.3.18.ebuild53
-rw-r--r--app-misc/uptimed/uptimed-0.4.0.ebuild53
-rw-r--r--app-misc/usbirboy/Manifest2
-rw-r--r--app-misc/usbirboy/files/usbirboy-0.2.1-kernel-2.6.16.diff43
-rw-r--r--app-misc/usbirboy/files/usbirboy-0.2.1-module_param.diff23
-rw-r--r--app-misc/usbirboy/files/usbirboy-0.2.1-nice-kernel-msgs.diff48
-rw-r--r--app-misc/usbirboy/metadata.xml8
-rw-r--r--app-misc/usbirboy/usbirboy-0.2.1-r1.ebuild65
-rw-r--r--app-misc/usbirboy/usbirboy-0.3.1-r1.ebuild57
-rw-r--r--app-misc/usbirboy/usbirboy-0.3.1.ebuild57
-rw-r--r--app-misc/utimer/Manifest1
-rw-r--r--app-misc/utimer/metadata.xml18
-rw-r--r--app-misc/utimer/utimer-0.4.ebuild33
-rw-r--r--app-misc/vcp/Manifest1
-rw-r--r--app-misc/vcp/metadata.xml5
-rw-r--r--app-misc/vcp/vcp-2.2-r1.ebuild36
-rw-r--r--app-misc/vifm/Manifest4
-rw-r--r--app-misc/vifm/files/vifm-0.7.8-fix-ncurses-tinfo.patch14
-rw-r--r--app-misc/vifm/metadata.xml33
-rw-r--r--app-misc/vifm/vifm-0.7.2.ebuild65
-rw-r--r--app-misc/vifm/vifm-0.7.7.ebuild85
-rw-r--r--app-misc/vifm/vifm-0.7.8.ebuild95
-rw-r--r--app-misc/vifm/vifm-0.8.ebuild94
-rw-r--r--app-misc/vittk/Manifest1
-rw-r--r--app-misc/vittk/files/vittk-1.1.1-dirs.patch66
-rw-r--r--app-misc/vittk/files/vittk-1.3-configure.patch32
-rw-r--r--app-misc/vittk/files/vittk-1.3-makefile.patch87
-rw-r--r--app-misc/vittk/metadata.xml13
-rw-r--r--app-misc/vittk/vittk-1.3.ebuild33
-rw-r--r--app-misc/vlock/Manifest1
-rw-r--r--app-misc/vlock/files/vlock-2.2.2-asneeded.patch11
-rw-r--r--app-misc/vlock/files/vlock-2.2.2-test_process.patch28
-rw-r--r--app-misc/vlock/metadata.xml5
-rw-r--r--app-misc/vlock/vlock-2.2.3.ebuild53
-rw-r--r--app-misc/vzstats/Manifest3
-rw-r--r--app-misc/vzstats/metadata.xml28
-rw-r--r--app-misc/vzstats/vzstats-0.3.2.ebuild31
-rw-r--r--app-misc/vzstats/vzstats-0.4.ebuild31
-rw-r--r--app-misc/vzstats/vzstats-0.5.1.ebuild31
-rw-r--r--app-misc/wcd/Manifest1
-rw-r--r--app-misc/wcd/files/wcd-5.2.5-gentoo.patch72
-rw-r--r--app-misc/wcd/metadata.xml8
-rw-r--r--app-misc/wcd/wcd-5.2.7.ebuild45
-rw-r--r--app-misc/webcomics-collector/Manifest1
-rw-r--r--app-misc/webcomics-collector/metadata.xml7
-rw-r--r--app-misc/webcomics-collector/webcomics-collector-0.7.3-r1.ebuild38
-rw-r--r--app-misc/webcomics-collector/webcomics-collector-0.7.3.ebuild39
-rw-r--r--app-misc/when/Manifest1
-rw-r--r--app-misc/when/metadata.xml5
-rw-r--r--app-misc/when/when-1.1.33.ebuild38
-rw-r--r--app-misc/wipe/Manifest2
-rw-r--r--app-misc/wipe/files/wipe-2.2.20050509-gentoo.patch106
-rw-r--r--app-misc/wipe/files/wipe-2.3.1-LDFLAGS.patch19
-rw-r--r--app-misc/wipe/metadata.xml11
-rw-r--r--app-misc/wipe/wipe-2.2.20050509-r1.ebuild43
-rw-r--r--app-misc/wipe/wipe-2.2.20050509.ebuild38
-rw-r--r--app-misc/wipe/wipe-2.3.1.ebuild40
-rw-r--r--app-misc/worker/Manifest1
-rw-r--r--app-misc/worker/metadata.xml17
-rw-r--r--app-misc/worker/worker-2.19.6.ebuild55
-rw-r--r--app-misc/workrave/Manifest2
-rw-r--r--app-misc/workrave/files/workrave-1.10.1-desktop.patch10
-rw-r--r--app-misc/workrave/metadata.xml20
-rw-r--r--app-misc/workrave/workrave-1.10.1.ebuild75
-rw-r--r--app-misc/workrave/workrave-1.10.6-r1.ebuild95
-rw-r--r--app-misc/wyrd/Manifest3
-rw-r--r--app-misc/wyrd/files/ocaml4.patch20
-rw-r--r--app-misc/wyrd/metadata.xml12
-rw-r--r--app-misc/wyrd/wyrd-1.4.4.ebuild31
-rw-r--r--app-misc/wyrd/wyrd-1.4.5.ebuild46
-rw-r--r--app-misc/wyrd/wyrd-1.4.6.ebuild35
-rw-r--r--app-misc/xmind/Manifest4
-rw-r--r--app-misc/xmind/files/x-xmind.xml10
-rw-r--r--app-misc/xmind/files/xmind-3.4.0-config.ini20
-rw-r--r--app-misc/xmind/files/xmind-thumbnailer78
-rwxr-xr-xapp-misc/xmind/files/xmind-wrapper8
-rw-r--r--app-misc/xmind/files/xmind.schemas30
-rw-r--r--app-misc/xmind/metadata.xml8
-rw-r--r--app-misc/xmind/xmind-3.4.1.201401221918.ebuild89
-rw-r--r--app-misc/xmind/xmind-3.5.1.201411201906.ebuild89
-rw-r--r--app-misc/xmind/xmind-3.5.3.201506180105.ebuild89
-rw-r--r--app-misc/yagtd/Manifest1
-rw-r--r--app-misc/yagtd/metadata.xml16
-rw-r--r--app-misc/yagtd/yagtd-0.3.4-r1.ebuild35
-rw-r--r--app-misc/yagtd/yagtd-0.3.4.ebuild31
-rw-r--r--app-misc/ytree/Manifest2
-rw-r--r--app-misc/ytree/files/ytree-1.94-bindir.patch11
-rw-r--r--app-misc/ytree/metadata.xml7
-rw-r--r--app-misc/ytree/ytree-1.97.ebuild35
-rw-r--r--app-misc/ytree/ytree-1.98.ebuild35
-rw-r--r--app-misc/yworklog/Manifest1
-rw-r--r--app-misc/yworklog/metadata.xml15
-rw-r--r--app-misc/yworklog/yworklog-0.0.7.ebuild26
-rw-r--r--app-misc/zisofs-tools/Manifest2
-rw-r--r--app-misc/zisofs-tools/metadata.xml5
-rw-r--r--app-misc/zisofs-tools/zisofs-tools-1.0.6.ebuild27
-rw-r--r--app-misc/zisofs-tools/zisofs-tools-1.0.8.ebuild27
-rw-r--r--app-misc/zygrib/Manifest7
-rw-r--r--app-misc/zygrib/files/zygrib2
-rw-r--r--app-misc/zygrib/files/zygrib.desktop11
-rw-r--r--app-misc/zygrib/metadata.xml11
-rw-r--r--app-misc/zygrib/zygrib-6.2.3.ebuild56
-rw-r--r--app-misc/zygrib/zygrib-7.0.0.ebuild57
1415 files changed, 48043 insertions, 0 deletions
diff --git a/app-misc/abduco/Manifest b/app-misc/abduco/Manifest
new file mode 100644
index 000000000000..251c7889208f
--- /dev/null
+++ b/app-misc/abduco/Manifest
@@ -0,0 +1,2 @@
+DIST abduco-0.2.tar.gz 11499 SHA256 c8b75a903b0914dd7804d57566f571f3f5efa91e46482bfb4652400156a71912 SHA512 9e6bda1779c4eff43c0f8a44857dd3beb25948c0f0bf2ff6e12bc951655e5f5ed3304794d7966b2e1cbb2c9f3917c153a1393889791a5293bd13111e15c3db11 WHIRLPOOL b76a95c21e16946eff999a148c453a44f819423fb6ab8c3903c8266c6d805d779c7232f2aa49fc0e09a19e3b6a6448b8a6a3c178266934dd1a3dcaaa4370a07c
+DIST abduco-0.3.tar.gz 11978 SHA256 934bf0b9ae25fb3f71b775387b5f281bf7d175fea79c12ec28ffdbbbb95390d4 SHA512 0bbd3a52e256738d39edf8e73e43d72fd4bcf2d240f45b8287486910777310320e239e7d1abb523a37c573dc557a0e33bf5849aa34f50f261f50c27a80db7338 WHIRLPOOL 1741f3c8d47a4f745b0fa0bed79306ca2d7dba8a936c6e66c1773205809fa1cf12f33f4c9f488eaa3c31f57d21299f17ec092926539a4fd037ebf2619e0dfb85
diff --git a/app-misc/abduco/abduco-0.2.ebuild b/app-misc/abduco/abduco-0.2.ebuild
new file mode 100644
index 000000000000..d69623781671
--- /dev/null
+++ b/app-misc/abduco/abduco-0.2.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils savedconfig toolchain-funcs
+
+DESCRIPTION="lightweight session manager with {de,at}tach support"
+HOMEPAGE="http://www.brain-dump.org/projects/abduco/"
+SRC_URI="http://www.brain-dump.org/projects/${PN}/${P}.tar.gz"
+
+LICENSE="ISC"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+src_prepare() {
+ sed -e 's:^PREFIX.*:PREFIX = /usr:' \
+ -e 's/-Os//' \
+ -e '/^CC/d' \
+ -i config.mk || die
+
+ sed -e "s/VERSION/${PV}/g" \
+ -i ${PN}.1 || die
+
+ sed -e '/@echo CC/d' \
+ -e 's|@${CC}|$(CC)|g' \
+ -i Makefile || die
+
+ restore_config config.def.h
+ epatch_user
+
+ tc-export CC
+}
+
+src_test() {
+ ./testsuite.sh || die
+}
+
+src_install() {
+ dobin ${PN}
+ dodoc README
+ doman ${PN}.1
+
+ save_config config.def.h
+}
diff --git a/app-misc/abduco/abduco-0.3.ebuild b/app-misc/abduco/abduco-0.3.ebuild
new file mode 100644
index 000000000000..8dcc0276128e
--- /dev/null
+++ b/app-misc/abduco/abduco-0.3.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils savedconfig toolchain-funcs
+
+DESCRIPTION="lightweight session manager with {de,at}tach support"
+HOMEPAGE="http://www.brain-dump.org/projects/abduco/"
+SRC_URI="http://www.brain-dump.org/projects/${PN}/${P}.tar.gz"
+
+LICENSE="ISC"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+src_prepare() {
+ sed -e 's:^PREFIX.*:PREFIX = /usr:' \
+ -e 's/-Os//' \
+ -e '/^CC/d' \
+ -i config.mk || die
+
+ sed -e "s/VERSION/${PV}/g" \
+ -i ${PN}.1 || die
+
+ sed -e '/@echo CC/d' \
+ -e 's|@${CC}|$(CC)|g' \
+ -i Makefile || die
+
+ restore_config config.def.h
+ epatch_user
+
+ tc-export CC
+}
+
+src_test() {
+ ./testsuite.sh || die
+}
+
+src_install() {
+ dobin ${PN}
+ dodoc README
+ doman ${PN}.1
+
+ save_config config.def.h
+}
diff --git a/app-misc/abduco/metadata.xml b/app-misc/abduco/metadata.xml
new file mode 100644
index 000000000000..e062d001b116
--- /dev/null
+++ b/app-misc/abduco/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>proxy-maintainers</herd>
+<maintainer>
+ <email>hendrik@consetetur.de</email>
+ <name>Hendrik v. Raven (lorem_ipsum)</name>
+</maintainer>
+<maintainer>
+ <email>xmw@gentoo.org</email>
+ <name>Michael Weber</name>
+</maintainer>
+<longdescription lang="en">
+ abduco provides session management i.e. it allows programs to be run independently from its controlling terminal. That is programs can be detached - run in the background - and then later reattached. Together with dvtm it provides a simpler and cleaner alternative to tmux or screen.
+</longdescription>
+</pkgmetadata>
diff --git a/app-misc/abook/Manifest b/app-misc/abook/Manifest
new file mode 100644
index 000000000000..e154d0f2db1b
--- /dev/null
+++ b/app-misc/abook/Manifest
@@ -0,0 +1 @@
+DIST abook-0.6.0pre2.tar.gz 411412 SHA256 59d444504109dd96816e003b3023175981ae179af479349c34fa70bc12f6d385 SHA512 d1bc437981964a5dd873b12458833c60306d37b36904a04b072cefe7501175933dd7817ca51f8634bbd6722f79f768b39e00b68d0699086d5efaf28d0cbdf1ed WHIRLPOOL fbaed8cc4dff1b7b7786c4f5b4124e94893d59e97b67372b0b1f1cf176a16ef23141c37255589cfb352f1e4993ae69d1f77077f2396aaa2c482e85b3c617fc5f
diff --git a/app-misc/abook/abook-0.6.0_pre2.ebuild b/app-misc/abook/abook-0.6.0_pre2.ebuild
new file mode 100644
index 000000000000..e383d809c9ba
--- /dev/null
+++ b/app-misc/abook/abook-0.6.0_pre2.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=3
+
+inherit eutils
+
+MY_P="${P/_/}"
+DESCRIPTION="Abook is a text-based addressbook program designed to use with mutt mail client"
+HOMEPAGE="http://abook.sourceforge.net/"
+SRC_URI="http://abook.sourceforge.net/devel/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 ppc ppc64 sparc x86 ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris"
+IUSE="nls"
+
+RDEPEND="sys-libs/ncurses
+ sys-libs/readline
+ nls? ( virtual/libintl )"
+DEPEND="nls? ( sys-devel/gettext )"
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-vcard-import.patch
+ epatch "${FILESDIR}"/${P}-vcard-fix.patch
+}
+
+src_configure() {
+ econf $(use_enable nls)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dodoc BUGS ChangeLog FAQ README TODO sample.abookrc || die "dodoc failed"
+}
diff --git a/app-misc/abook/files/abook-0.6.0_pre2-vcard-fix.patch b/app-misc/abook/files/abook-0.6.0_pre2-vcard-fix.patch
new file mode 100644
index 000000000000..8045909463ac
--- /dev/null
+++ b/app-misc/abook/files/abook-0.6.0_pre2-vcard-fix.patch
@@ -0,0 +1,10 @@
+--- abook-0.6.0pre2/abook.c.orig 2010-10-03 14:54:23.827767178 -0700
++++ abook-0.6.0pre2/abook.c 2010-10-03 14:54:55.738042419 -0700
+@@ -708,6 +708,7 @@
+ check_abook_directory();
+ init_opts();
+ load_opts(rcfile);
++ init_standard_fields();
+ atexit(free_opts);
+
+ /*
diff --git a/app-misc/abook/files/abook-0.6.0_pre2-vcard-import.patch b/app-misc/abook/files/abook-0.6.0_pre2-vcard-import.patch
new file mode 100644
index 000000000000..316f1229fd9f
--- /dev/null
+++ b/app-misc/abook/files/abook-0.6.0_pre2-vcard-import.patch
@@ -0,0 +1,325 @@
+diff -ru a/filter.c b/filter.c
+--- a/filter.c 2006-09-06 07:26:10.000000000 +0200
++++ b/filter.c 2008-05-18 20:55:12.000000000 +0200
+@@ -44,6 +44,7 @@
+ static int csv_parse_file(FILE *in);
+ static int allcsv_parse_file(FILE *in);
+ static int palmcsv_parse_file(FILE *in);
++static int vcard_parse_file(FILE *in);
+
+ /*
+ * export filter prototypes
+@@ -75,6 +76,7 @@
+ { "csv", N_("comma separated values"), csv_parse_file },
+ { "allcsv", N_("comma separated values (all fields)"), allcsv_parse_file },
+ { "palmcsv", N_("Palm comma separated values"), palmcsv_parse_file },
++ { "vcard", N_("vCard file"), vcard_parse_file },
+ { "\0", NULL, NULL }
+ };
+
+@@ -1331,6 +1333,262 @@
+ */
+
+ /*
++ * vCard import filter
++ */
++
++static char *vcard_fields[] = {
++ "FN", /* NAME */
++ "EMAIL", /* EMAIL */
++ "ADR", /* ADDRESS */
++ "ADR", /* ADDRESS2 - not used */
++ "ADR", /* CITY */
++ "ADR", /* STATE */
++ "ADR", /* ZIP */
++ "ADR", /* COUNTRY */
++ "TEL", /* PHONE */
++ "TEL", /* WORKPHONE */
++ "TEL", /* FAX */
++ "TEL", /* MOBILEPHONE */
++ "NICKNAME", /* NICK */
++ "URL", /* URL */
++ "NOTE", /* NOTES */
++ NULL /* not implemented: ANNIVERSARY, ITEM_FIELDS */
++};
++
++/*
++ * mappings between vCard ADR field and abook's ADDRESS
++ * see rfc2426 section 3.2.1
++ */
++static int vcard_address_fields[] = {
++ -1, /* vCard(post office box) - not used */
++ -1, /* vCard(the extended address) - not used */
++ 2, /* vCard(the street address) - ADDRESS */
++ 4, /* vCard(the locality) - CITY */
++ 5, /* vCard(the region) - STATE */
++ 6, /* vCard(the postal code) - ZIP */
++ 7 /* vCard(the country name) - COUNTRY */
++};
++
++enum {
++ VCARD_KEY = 0,
++ VCARD_KEY_ATTRIBUTE,
++ VCARD_VALUE,
++};
++
++static char *
++vcard_get_line_element(char *line, int element)
++{
++ int i;
++ char *line_copy = 0;
++ char *result = 0;
++ char *key = 0;
++ char *key_attr = 0;
++ char *value = 0;
++
++ line_copy = xstrdup(line);
++
++ /* make newline characters if exist end of string */
++ for(i=0; line_copy[i]; i++) {
++ if(line_copy[i] == '\r' || line_copy[i] == '\n') {
++ line_copy[i] = '\0';
++ break;
++ }
++ }
++
++ /* separate key from value */
++ for(i=0; line_copy[i]; i++) {
++ if(line_copy[i] == ':') {
++ line_copy[i] = '\0';
++ key = line_copy;
++ value = &line_copy[i+1];
++ break;
++ }
++ }
++
++ /* separate key from key attributes */
++ if (key) {
++ for(i=0; key[i]; i++) {
++ if(key[i] == ';') {
++ key[i] = '\0';
++ key_attr = &key[i+1];
++ break;
++ }
++ }
++ }
++
++ switch(element) {
++ case VCARD_KEY:
++ if(key)
++ result = xstrdup(key);
++ break;
++ case VCARD_KEY_ATTRIBUTE:
++ if(key_attr)
++ result = xstrdup(key_attr);
++ break;
++ case VCARD_VALUE:
++ if(value)
++ result = xstrdup(value);
++ break;
++ }
++
++ xfree(line_copy);
++ return result;
++}
++
++static void
++vcard_parse_email(list_item item, char *line)
++{
++ char *email;
++
++ email = vcard_get_line_element(line, VCARD_VALUE);
++
++ if(item[1]) {
++ item[1] = strconcat(item[1], ",", email, 0);
++ xfree(email);
++ }
++ else {
++ item[1] = email;
++ }
++}
++
++static void
++vcard_parse_address(list_item item, char *line)
++{
++ int i;
++ int k;
++ char *value;
++ char *address_field;
++
++ value = vcard_get_line_element(line, VCARD_VALUE);
++ if(!value)
++ return;
++
++ address_field = value;
++ for(i=k=0; value[i]; i++) {
++ if(value[i] == ';') {
++ value[i] = '\0';
++ if(vcard_address_fields[k] >= 0) {
++ item[vcard_address_fields[k]] = xstrdup(address_field);
++ }
++ address_field = &value[i+1];
++ k++;
++ if((k+1)==(sizeof(vcard_address_fields)/sizeof(*vcard_address_fields)))
++ break;
++ }
++ }
++ item[vcard_address_fields[k]] = xstrdup(address_field);
++ xfree(value);
++}
++
++static void
++vcard_parse_phone(list_item item, char *line)
++{
++ int index = 8;
++ char *type = vcard_get_line_element(line, VCARD_KEY_ATTRIBUTE);
++ char *value = vcard_get_line_element(line, VCARD_VALUE);
++
++ /* set the standard number */
++ if (!type) {
++ item[index] = value;
++ }
++
++ /*
++ * see rfc2426 section 3.3.1
++ */
++ else if (strstr(type, "TYPE=") == type){
++ if (strcasestr(type, "home")) {
++ item[index] = xstrdup(value);
++ }
++ if (strcasestr(type, "work")) {
++ item[index+1] = xstrdup(value);
++ }
++ if (strcasestr(type, "fax")) {
++ item[index+2] = xstrdup(value);
++ }
++ if (strcasestr(type, "cell")) {
++ item[index+3] = xstrdup(value);
++ }
++
++ xfree(type);
++ xfree(value);
++ }
++}
++
++static void
++vcard_parse_line(list_item item, char *line)
++{
++ int i;
++ char *key;
++
++ for(i=0; vcard_fields[i]; i++) {
++ key = vcard_fields[i];
++
++ if(!strncmp(key, line, strlen(key))) {
++ if(i == 1) {
++ vcard_parse_email(item, line);
++ }
++ else if(i == 2) {
++ vcard_parse_address(item, line);
++ }
++ else if(i == 8) {
++ vcard_parse_phone(item, line);
++ }
++ else {
++ item[i] = vcard_get_line_element(line, VCARD_VALUE);
++ }
++ break;
++ }
++ }
++}
++
++static void
++vcard_parse_item(FILE *in)
++{
++ char *line = NULL;
++ list_item item = item_create();
++
++ while(!feof(in)) {
++ line = getaline(in);
++
++ if(line && !strncmp("END:VCARD", line, 9)) {
++ xfree(line);
++ break;
++ }
++ else if(line) {
++ vcard_parse_line(item, line);
++ xfree(line);
++ }
++ }
++
++ add_item2database(item);
++ item_free(&item);
++}
++
++static int
++vcard_parse_file(FILE *in)
++{
++ char *line = NULL;
++
++ while(!feof(in)) {
++ line = getaline(in);
++
++ if(line && !strncmp("BEGIN:VCARD", line, 11)) {
++ xfree(line);
++ vcard_parse_item(in);
++ }
++ else if(line) {
++ xfree(line);
++ }
++ }
++
++ return 0;
++}
++
++/*
++ * end of vCard import filter
++ */
++
++/*
+ * csv addressbook export filters
+ */
+
+diff -ru a/misc.c b/misc.c
+--- a/misc.c 2006-09-04 21:24:18.000000000 +0200
++++ b/misc.c 2008-05-18 18:00:33.000000000 +0200
+@@ -77,6 +77,27 @@
+ return 1;
+ }
+
++char *
++strcasestr(char *haystack, char *needle)
++{
++ int i;
++ int k;
++
++ assert(haystack != NULL);
++ assert(needle != NULL);
++
++ for(i=0; i<strlen(haystack)-strlen(needle)+1; i++) {
++ for(k=0; k<strlen(needle); k++, i++) {
++ if (tolower(haystack[i]) != tolower(needle[k]))
++ break;
++ else if ((k+1) == strlen(needle))
++ return &haystack[i];
++ }
++ }
++
++ return NULL;
++}
++
+
+ #ifdef HAVE_CONFIG_H
+ # include "config.h"
+diff -ru a/misc.h b/misc.h
+--- a/misc.h 2006-09-04 21:24:18.000000000 +0200
++++ b/misc.h 2008-05-18 17:55:59.000000000 +0200
+@@ -18,6 +18,8 @@
+
+ int is_number(char *s);
+
++char *strcasestr(char *haystack, char *needle);
++
+ char *strdup_printf(const char *format, ... );
+ char *strconcat(const char *str, ...);
+
diff --git a/app-misc/abook/metadata.xml b/app-misc/abook/metadata.xml
new file mode 100644
index 000000000000..38597f5e4851
--- /dev/null
+++ b/app-misc/abook/metadata.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>net-mail</herd>
+<longdescription>Abook is a text-based addressbook program designed to use with mutt mail client.</longdescription>
+</pkgmetadata>
diff --git a/app-misc/acdctl/Manifest b/app-misc/acdctl/Manifest
new file mode 100644
index 000000000000..9cb139db080a
--- /dev/null
+++ b/app-misc/acdctl/Manifest
@@ -0,0 +1 @@
+DIST acdctl-1.1.tar.bz2 10827 SHA256 d6c6d83672682d5d803431010bce3112becf5c6a42e1918da3f814b1e3af4f43 SHA512 3a41aba7b6385f4d823694bfd387036759b7d47355f2d69e92de9e80bb9491aeaf5e060cf6695ae5ec23ba7580e203c13210b7d2bc5aaf796adf52925557043d WHIRLPOOL fbf479865dc9ee1851e425f32b48fa1ba45b23956ed0bd110e2609d070350b08f06b24367e84b293d9455bcc8b36558a6b0ddb37cbc125eec1ef3f6452242eff
diff --git a/app-misc/acdctl/acdctl-1.1.ebuild b/app-misc/acdctl/acdctl-1.1.ebuild
new file mode 100644
index 000000000000..e91aa178ca75
--- /dev/null
+++ b/app-misc/acdctl/acdctl-1.1.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+DESCRIPTION="Apple Cinema Display Control"
+HOMEPAGE="http://www.technocage.com/~caskey/acdctl/"
+SRC_URI="http://www.technocage.com/~caskey/acdctl/download/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="ppc"
+IUSE=""
+
+RDEPEND="virtual/libusb:0"
+DEPEND="${RDEPEND}"
+
+src_install() {
+ dobin acdctl
+ dodoc CHANGELOG README
+}
diff --git a/app-misc/acdctl/metadata.xml b/app-misc/acdctl/metadata.xml
new file mode 100644
index 000000000000..3ccf5464591f
--- /dev/null
+++ b/app-misc/acdctl/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>
+ <email>maintainer-needed@gentoo.org</email>
+ <name>Default assignee for orphaned packages</name>
+ </maintainer>
+ <longdescription lang="en">
+ acdctl is a command-line utility to control the otherwise inaccessible
+ brightness levels of an Apple Cinema Display on any system with libusb
+ support.
+ </longdescription>
+</pkgmetadata>
diff --git a/app-misc/activylircd/Manifest b/app-misc/activylircd/Manifest
new file mode 100644
index 000000000000..1b0c4d31e413
--- /dev/null
+++ b/app-misc/activylircd/Manifest
@@ -0,0 +1 @@
+DIST activylircd-0.4.tgz 26900 SHA256 d9475ca9009d0af83c1c88352b0aba39a485dd4b469950fbc005010f6e966d3f SHA512 2440f4b858d945ae7103d14d6aeea6e16461713da60eaadc0767843d218d12554efc99607231503aabcbb853cd26cd205c4c783083b7c77d6d3a5e3f9cbd2cb7 WHIRLPOOL 4dc995d80e189b2093aec1f9fb18328990048c38131c5a77d4331fccfc99b75e347c0170da854869697b7653f2e98f300c5aadb6eea05054c263cbcb2549c1cf
diff --git a/app-misc/activylircd/activylircd-0.4.ebuild b/app-misc/activylircd/activylircd-0.4.ebuild
new file mode 100644
index 000000000000..5e1f745552f4
--- /dev/null
+++ b/app-misc/activylircd/activylircd-0.4.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="ACTIVYLIRCD lirc daemon for activy remote control"
+HOMEPAGE="http://www.htpc-forum.de/"
+SRC_URI="http://www.htpc-forum.de/download/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="x11-libs/libX11
+ x11-libs/libXtst"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-linking.patch" # Bug #277656
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)"
+}
+
+src_install() {
+ dosbin activylircd
+ dobin key2xd eventmapper key2lircd key2xd
+ dodoc key2x.conf README
+}
diff --git a/app-misc/activylircd/files/activylircd-0.4-linking.patch b/app-misc/activylircd/files/activylircd-0.4-linking.patch
new file mode 100644
index 000000000000..8ebd721fd38e
--- /dev/null
+++ b/app-misc/activylircd/files/activylircd-0.4-linking.patch
@@ -0,0 +1,25 @@
+Index: activylircd-0.4/Makefile
+===================================================================
+--- activylircd-0.4.orig/Makefile
++++ activylircd-0.4/Makefile
+@@ -14,16 +14,16 @@ names.h: /usr/include/linux/input.h genn
+ ./gennames $< > $@
+
+ activylircd: activylircd.c /usr/include/linux/input.h names.h Makefile
+- $(CC) $(CFLAGS) -o $@ $<
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $<
+
+ key2lircd: key2lircd.c /usr/include/linux/input.h names.h Makefile
+- $(CC) $(CFLAGS) -o $@ $<
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $<
+
+ eventmapper: eventmapper.c /usr/include/linux/input.h names.h Makefile
+- $(CC) $(CFLAGS) -o $@ $<
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $<
+
+ key2xd: key2xd.c Makefile
+- $(CC) $(CFLAGS) -o $@ -lX11 -lXtst $<
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< -lX11 -lXtst
+
+ install: $(PROG)
+ install -v -t /usr/bin $(PROG)
diff --git a/app-misc/activylircd/metadata.xml b/app-misc/activylircd/metadata.xml
new file mode 100644
index 000000000000..332e9ad12d8a
--- /dev/null
+++ b/app-misc/activylircd/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>media-tv</herd>
+<herd>proxy-maintainers</herd>
+<maintainer>
+ <email>vdr@helmutauer.de</email>
+ <name>Helmut Auer</name>
+ <description>Proxy maintaining through zzam</description>
+</maintainer>
+</pkgmetadata>
diff --git a/app-misc/actkbd/Manifest b/app-misc/actkbd/Manifest
new file mode 100644
index 000000000000..c4cb100976d5
--- /dev/null
+++ b/app-misc/actkbd/Manifest
@@ -0,0 +1 @@
+DIST actkbd-0.2.8.tar.bz2 23192 SHA256 95ea643b8e1b6bd8b9bc342d4a01eb4639498e15329aa42329f7cc83cb3cebc6 SHA512 307d97b2854be801f1a4a8a8fbc408d3c83efd40f5bb35ea463b154fc0c9761fcb83a99905cd2730a24122ff222f60f31c4ac0163600ba463d4713846de2bf72 WHIRLPOOL cf1288351bb8ccc7306289cf7227483d5a7c13905cfa24af905c568ce135aa4cee7085141d8e4812aa09a045cd8448ae15973224b6bd9d5e7d8c5c568db750dd
diff --git a/app-misc/actkbd/actkbd-0.2.8-r1.ebuild b/app-misc/actkbd/actkbd-0.2.8-r1.ebuild
new file mode 100644
index 000000000000..e986555edf13
--- /dev/null
+++ b/app-misc/actkbd/actkbd-0.2.8-r1.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit linux-info eutils toolchain-funcs
+
+DESCRIPTION="A keyboard shortcut daemon"
+HOMEPAGE="http://users.softlab.ece.ntua.gr/~thkala/projects/actkbd/"
+SRC_URI="http://users.softlab.ece.ntua.gr/~thkala/projects/actkbd/files/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+CONFIG_CHECK="~INPUT_EVDEV"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-0.2.7-amd64.patch
+}
+
+src_compile() {
+ emake CFLAGS="${CFLAGS}" CC="$(tc-getCC)"
+}
+
+src_install() {
+ dobin actkbd
+ dodoc AUTHORS ChangeLog FAQ README TODO
+ docinto samples
+ dodoc samples/actkbd.conf
+ newconfd "${FILESDIR}/${PN}.confd" ${PN}
+ newinitd "${FILESDIR}/${PN}.initd" ${PN}
+}
+
+pkg_postinst() {
+ elog
+ elog "System-wide configuration file is /etc/actkbd.conf."
+ elog "Use actkbd.conf from usr/share/doc/${PF}/samples as a template."
+ elog "You need to create the config and set right input device from"
+ elog "/dev/input/event* in /etc/conf.d/actkbd"
+ elog
+ elog "To obtain keycodes for pressed combinations/keys just run:"
+ elog " # actkbd -s -d /dev/input/event<MYDEVICENUMBER>"
+}
diff --git a/app-misc/actkbd/files/actkbd-0.2.7-amd64.patch b/app-misc/actkbd/files/actkbd-0.2.7-amd64.patch
new file mode 100644
index 000000000000..b962d7e861a7
--- /dev/null
+++ b/app-misc/actkbd/files/actkbd-0.2.7-amd64.patch
@@ -0,0 +1,38 @@
+# Try to fix pointer assigned to int and vice-versa problems. Written by Joe Pelkey.
+
+diff -ru actkbd-0.2.7.orig/actkbd.h actkbd-0.2.7/actkbd.h
+--- actkbd-0.2.7.orig/actkbd.h 2006-05-02 13:24:01.000000000 -0400
++++ actkbd-0.2.7/actkbd.h 2006-10-27 03:37:37.000000000 -0400
+@@ -122,7 +122,7 @@
+ typedef struct _attr_t attr_t;
+ struct _attr_t {
+ int type; /* Attribute type */
+- void *opt; /* Options for this attribute */
++ int opt; /* Options for this attribute */
+ attr_t *next; /* The next node */
+ };
+
+diff -ru actkbd-0.2.7.orig/config.c actkbd-0.2.7/config.c
+--- actkbd-0.2.7.orig/config.c 2006-08-20 07:05:36.000000000 -0400
++++ actkbd-0.2.7/config.c 2006-10-27 03:55:21.000000000 -0400
+@@ -107,7 +107,7 @@
+ strtolower(attrs);
+ while ((tmp = strsep(&attrs, ", \t")) != NULL) {
+ int type = -1;
+- void *opt = NULL;
++ int opt = 0;
+ char *num = NULL;
+
+ if (strlen(tmp) == 0)
+@@ -174,9 +174,9 @@
+
+ errno = 0;
+ if (strlen(num) > 0) {
+- opt = (void *)((int)strtol(num, (char **)NULL, 10));
++ opt = ((int)strtol(num, (char **)NULL, 10));
+ } else {
+- opt = (void *)((int)(-1));
++ opt = ((int)(-1));
+ }
+
+ if (((int)opt < 0) &&
diff --git a/app-misc/actkbd/files/actkbd.confd b/app-misc/actkbd/files/actkbd.confd
new file mode 100644
index 000000000000..c3c711c1c887
--- /dev/null
+++ b/app-misc/actkbd/files/actkbd.confd
@@ -0,0 +1,13 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+# Configuration file
+CONFIG="/etc/actkbd.conf"
+
+# Event provider providing the keypress events
+EVENT_DEVICE="/dev/input/<DEVICE>"
+
+# PID
+PIDFILE="/var/run/actkbd.pid"
+
diff --git a/app-misc/actkbd/files/actkbd.initd b/app-misc/actkbd/files/actkbd.initd
new file mode 100644
index 000000000000..e0fc046a7ff6
--- /dev/null
+++ b/app-misc/actkbd/files/actkbd.initd
@@ -0,0 +1,32 @@
+#!/sbin/runscript
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+checkconfig() {
+ if [ ! -f ${CONFIG} ] ; then
+ eerror "Config file \"${CONFIG}\" does not exist. Create it prior launching the daemon."
+ return 1
+ fi
+ if [ ! -c ${EVENT_DEVICE} ] ; then
+ eerror "Device \"${EVENT_DEVICE}\" is not valid pointer to input provider."
+ return 1
+ fi
+}
+
+depend() {
+ before acpid
+}
+
+start() {
+ checkconfig || return 1
+ ebegin "Starting actkbd"
+ start-stop-daemon --start --quiet --pidfile ${PIDFILE} --exec /usr/bin/actkbd -- -c "${CONFIG}" -D -q -x -l -p "${PIDFILE}" -d "${EVENT_DEVICE}"
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping actkbd"
+ start-stop-daemon --stop --quiet --pidfile ${PIDFILE} --exec /usr/bin/actkbd
+ eend $?
+}
diff --git a/app-misc/actkbd/metadata.xml b/app-misc/actkbd/metadata.xml
new file mode 100644
index 000000000000..cbfedbb3611a
--- /dev/null
+++ b/app-misc/actkbd/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>
+ <email>maintainer-needed@gentoo.org</email>
+ </maintainer>
+ <longdescription>
+actkbd is a simple daemon that binds actions to keyboard events. It recognises
+key combinations and can handle press, repeat and release events.
+ </longdescription>
+</pkgmetadata>
diff --git a/app-misc/aldo/Manifest b/app-misc/aldo/Manifest
new file mode 100644
index 000000000000..692e576f2dc0
--- /dev/null
+++ b/app-misc/aldo/Manifest
@@ -0,0 +1 @@
+DIST aldo-0.7.7.tar.bz2 112000 SHA256 f1b8849d09267fff3c1f5122097d90fec261291f51b1e075f37fad8f1b7d9f92 SHA512 b68f9bd96210f17b6a37bc49f114bba70b75357967580cb4644454789b70285439f15bedb55fb93aa1bc0e5027c46a65679fcefb6a66332ca37d866d9c169e0b WHIRLPOOL ff7e569cb674a331eeb3208c08762aa70a699796212ca7774c8101c079cad6ad8d1048571563a64520e34ba86cbf82d14677d29e34a564f4216679e7e276c290
diff --git a/app-misc/aldo/aldo-0.7.7.ebuild b/app-misc/aldo/aldo-0.7.7.ebuild
new file mode 100644
index 000000000000..29b75d8b8f92
--- /dev/null
+++ b/app-misc/aldo/aldo-0.7.7.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+DESCRIPTION="A morse tutor"
+HOMEPAGE="http://www.nongnu.org/aldo"
+SRC_URI="mirror://nongnu/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+RDEPEND=">=media-libs/libao-0.8.5"
+DEPEND="${RDEPEND}"
+
+DOCS=( AUTHORS ChangeLog NEWS README THANKS )
+
+src_compile() {
+ emake LDFLAGS="${LDFLAGS}"
+}
diff --git a/app-misc/aldo/metadata.xml b/app-misc/aldo/metadata.xml
new file mode 100644
index 000000000000..59e2b8f78cb5
--- /dev/null
+++ b/app-misc/aldo/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>maintainer-needed@gentoo.org</email>
+ <name>Default assignee for orphaned packages</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-misc/anki/Manifest b/app-misc/anki/Manifest
new file mode 100644
index 000000000000..bea9e6f80134
--- /dev/null
+++ b/app-misc/anki/Manifest
@@ -0,0 +1,2 @@
+DIST anki-2.0.31.tgz 3329290 SHA256 4b969629255b00db9a9eb8a2fd70271cc41c92c47752eb1c78e8609ff025be2f SHA512 3e6e29247d83b026ece6974007c848822360a812838dbb718cf3f1423fc9d015236b027944cd99f3b419e0fe4fe6cb2390d185f00646af727ec8e76f4aa3cbb8 WHIRLPOOL 42b1ecf2cc856c15ad1fe690d45e8051a8b79ef0b850e701a6a8a510a56cc4e6711bf4c8acc8ae9add7a3c761788005979c9a6398a71e1b28c9821043d5f6053
+DIST anki-2.0.32.tgz 3353186 SHA256 398f00d9ab7da811548813e19b6da192f07d5c1c7e4486de508040ecc1abb93c SHA512 a65a529121e8d6ca53b29ef3b22d432b48884c28ef5b2422f0c813069f5889469e0545951f6789aa883a411572419e7175364320a18a7cfc1582f5fa98b837d3 WHIRLPOOL 204a8761bbafd87bddf9aecad867eb9705c72d6e8f1c7b6f050d893db3e9d4d58d047597f0e079cfd502b89095fedd17d1581c3be8cd833d2a18a37fb90fb262
diff --git a/app-misc/anki/anki-2.0.31-r1.ebuild b/app-misc/anki/anki-2.0.31-r1.ebuild
new file mode 100644
index 000000000000..51896953783b
--- /dev/null
+++ b/app-misc/anki/anki-2.0.31-r1.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="sqlite"
+
+inherit eutils python-single-r1
+
+DESCRIPTION="A spaced-repetition memory training program (flash cards)"
+HOMEPAGE="http://ichi2.net/anki/"
+SRC_URI="http://ankisrs.net/download/mirror/${P}.tgz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="latex +recording +sound"
+
+RDEPEND="${PYTHON_DEPS}
+ dev-python/PyQt4[X,svg,webkit]
+ >=dev-python/httplib2-0.7.4
+ dev-python/beautifulsoup:python-2
+ dev-python/send2trash
+ recording? ( media-sound/lame
+ >=dev-python/pyaudio-0.2.4 )
+ sound? ( media-video/mplayer )
+ latex? ( app-text/texlive
+ app-text/dvipng )"
+DEPEND=""
+
+pkg_setup(){
+ python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ rm -r thirdparty || die
+ sed -i -e "s/updates=True/updates=False/" \
+ aqt/profiles.py || die
+}
+
+# Nothing to configure or compile
+src_configure() {
+ true;
+}
+
+src_compile() {
+ true;
+}
+
+src_install() {
+ doicon ${PN}.png
+ domenu ${PN}.desktop
+ doman ${PN}.1
+
+ dodoc README README.development
+ python_domodule aqt anki
+ python_doscript anki/anki
+
+ # Localization files go into the anki directory:
+ python_moduleinto anki
+ python_domodule locale
+}
diff --git a/app-misc/anki/anki-2.0.31.ebuild b/app-misc/anki/anki-2.0.31.ebuild
new file mode 100644
index 000000000000..c82f391f0e78
--- /dev/null
+++ b/app-misc/anki/anki-2.0.31.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="sqlite"
+
+inherit eutils python-single-r1
+
+DESCRIPTION="A spaced-repetition memory training program (flash cards)"
+HOMEPAGE="http://ichi2.net/anki/"
+SRC_URI="http://ankisrs.net/download/mirror/${P}.tgz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="latex +recording +sound"
+
+RDEPEND="${PYTHON_DEPS}
+ dev-python/PyQt4[X,svg,webkit]
+ >=dev-python/httplib2-0.7.4
+ dev-python/beautifulsoup:python-2
+ dev-python/send2trash
+ recording? ( media-sound/lame
+ >=dev-python/pyaudio-0.2.4 )
+ sound? ( media-video/mplayer )
+ latex? ( app-text/texlive
+ app-text/dvipng )"
+DEPEND=""
+
+pkg_setup(){
+ python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ rm -r thirdparty || die
+ sed -i -e "s/updates=True/updates=False/" \
+ aqt/profiles.py || die
+}
+
+# Nothing to configure or compile
+src_configure() {
+ true;
+}
+
+src_compile() {
+ true;
+}
+
+src_install() {
+ doicon ${PN}.png
+ domenu ${PN}.desktop
+ doman ${PN}.1
+
+ dodoc README README.development
+ python_domodule aqt anki
+ python_doscript anki/anki
+}
+
+pkg_preinst() {
+ if has_version "<app-misc/anki-2" ; then
+ elog "Anki 2 is a rewrite of Anki with many new features and"
+ elog "a new database format. On the first run your decks are"
+ elog "converted to the new format and a backup of your Anki-1"
+ elog "decks is created. Please read the following:"
+ elog "http://ankisrs.net/anki2.html"
+ fi
+}
diff --git a/app-misc/anki/anki-2.0.32.ebuild b/app-misc/anki/anki-2.0.32.ebuild
new file mode 100644
index 000000000000..51896953783b
--- /dev/null
+++ b/app-misc/anki/anki-2.0.32.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="sqlite"
+
+inherit eutils python-single-r1
+
+DESCRIPTION="A spaced-repetition memory training program (flash cards)"
+HOMEPAGE="http://ichi2.net/anki/"
+SRC_URI="http://ankisrs.net/download/mirror/${P}.tgz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="latex +recording +sound"
+
+RDEPEND="${PYTHON_DEPS}
+ dev-python/PyQt4[X,svg,webkit]
+ >=dev-python/httplib2-0.7.4
+ dev-python/beautifulsoup:python-2
+ dev-python/send2trash
+ recording? ( media-sound/lame
+ >=dev-python/pyaudio-0.2.4 )
+ sound? ( media-video/mplayer )
+ latex? ( app-text/texlive
+ app-text/dvipng )"
+DEPEND=""
+
+pkg_setup(){
+ python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ rm -r thirdparty || die
+ sed -i -e "s/updates=True/updates=False/" \
+ aqt/profiles.py || die
+}
+
+# Nothing to configure or compile
+src_configure() {
+ true;
+}
+
+src_compile() {
+ true;
+}
+
+src_install() {
+ doicon ${PN}.png
+ domenu ${PN}.desktop
+ doman ${PN}.1
+
+ dodoc README README.development
+ python_domodule aqt anki
+ python_doscript anki/anki
+
+ # Localization files go into the anki directory:
+ python_moduleinto anki
+ python_domodule locale
+}
diff --git a/app-misc/anki/metadata.xml b/app-misc/anki/metadata.xml
new file mode 100644
index 000000000000..1de05e0522a5
--- /dev/null
+++ b/app-misc/anki/metadata.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>tomka@gentoo.org</email>
+ <name>Thomas Kahle</name>
+ </maintainer>
+ <maintainer>
+ <email>patrick@gentoo.org</email>
+ <name>Patrick Lauer</name>
+ </maintainer>
+ <longdescription lang="en">
+ Anki is a program designed to help you remember facts
+ (such as words and phrases in a foreign language) as
+ quickly, easily and efficiently as possible.
+ </longdescription>
+ <use>
+ <flag name="recording">
+ Enable support for audio recording
+ </flag>
+ <flag name="sound">
+ Enable support for adding sound to cards
+ </flag>
+ </use>
+</pkgmetadata>
diff --git a/app-misc/asciinema/Manifest b/app-misc/asciinema/Manifest
new file mode 100644
index 000000000000..b5a2c4fe4b52
--- /dev/null
+++ b/app-misc/asciinema/Manifest
@@ -0,0 +1 @@
+DIST asciinema-0.9.8.tar.gz 6336 SHA256 f20bf96c5ec5f4faba7c4c91ce5b48696ce8160593a4897e8a87cc839214df1f SHA512 2df8520dca6c3a61e0bb5987a723a9668423da088cbba91e79ed51f0000e242290477f7a23e409270e29d5792e8a88e38d3c33963b835ce8dd9fc0cd24e2b7b4 WHIRLPOOL f7db1f8a2e6557879e08af44def66692699fa6296ed476d88cd93101045759b094ed487df8cae68a75377cbb9b91cefd21f103782fb550a739d9e952aa94bc21
diff --git a/app-misc/asciinema/asciinema-0.9.8.ebuild b/app-misc/asciinema/asciinema-0.9.8.ebuild
new file mode 100644
index 000000000000..0ad1d2ec51cd
--- /dev/null
+++ b/app-misc/asciinema/asciinema-0.9.8.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python{2_7,3_3,3_4})
+inherit distutils-r1
+
+DESCRIPTION="Command line recorder for asciinema.org service"
+HOMEPAGE="http://pypi.python.org/pypi/asciinema http://asciinema.org/"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="amd64"
+IUSE=""
+
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
+RDEPEND=">=dev-python/requests-1.1.0[${PYTHON_USEDEP}]"
diff --git a/app-misc/asciinema/metadata.xml b/app-misc/asciinema/metadata.xml
new file mode 100644
index 000000000000..7debdb1d988c
--- /dev/null
+++ b/app-misc/asciinema/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>
+ <email>maintainer-needed@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="pypi">asciinema</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/astrolog-ephemeris/Manifest b/app-misc/astrolog-ephemeris/Manifest
new file mode 100644
index 000000000000..013d6db4ab69
--- /dev/null
+++ b/app-misc/astrolog-ephemeris/Manifest
@@ -0,0 +1 @@
+DIST ephemall.zip 4604012 SHA256 d1a6de1de067af81c17500fbce52861f3e2a0a6925ecf599e55397d6f9684910 SHA512 e7822cecb87466987107e84aae64d292dad31de9d2c268886869a37ea9e99bf81b2a530129c0f6538c6b55ad46b185e16ee0c5b0d8858acfe189f19e2595c6da WHIRLPOOL 1ad7e6fe584ad3b23d40dcebebfe60d4fe9b82ff11ee32bdeb1ae15a3dbf82a9520ae2a2cdab345aeed39704604f4c3df38bf93fd831240340cd6cdc6b1285ac
diff --git a/app-misc/astrolog-ephemeris/astrolog-ephemeris-5.40.ebuild b/app-misc/astrolog-ephemeris/astrolog-ephemeris-5.40.ebuild
new file mode 100644
index 000000000000..b07a911374b7
--- /dev/null
+++ b/app-misc/astrolog-ephemeris/astrolog-ephemeris-5.40.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+DESCRIPTION="ephemeris files for optional extended accuracy of astrolog's calculations"
+HOMEPAGE="http://www.astrolog.org/astrolog.htm"
+SRC_URI="http://www.astrolog.org/ftp/ephem/ephemall.zip"
+
+LICENSE="astrolog"
+SLOT="0"
+# works fine on x86 - runs probably on other architectures, too
+KEYWORDS="amd64 ppc ppc64 x86"
+IUSE=""
+
+S="${WORKDIR}"
+
+RDEPEND="app-misc/astrolog"
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+src_install() {
+ dodir /usr/share/astrolog
+ cp * "${D}"/usr/share/astrolog || die "cp failed"
+}
diff --git a/app-misc/astrolog-ephemeris/metadata.xml b/app-misc/astrolog-ephemeris/metadata.xml
new file mode 100644
index 000000000000..ccfb996d72e6
--- /dev/null
+++ b/app-misc/astrolog-ephemeris/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>sci</herd>
+
+<maintainer>
+ <email>george@gentoo.org</email>
+ <name>George Shapovalov</name>
+ <description>
+ I'll be taking care of it. But since we need to have a herd in metadata
+ I've put sci there, as it seems the most related one.
+ </description>
+</maintainer>
+
+</pkgmetadata>
diff --git a/app-misc/astrolog/Manifest b/app-misc/astrolog/Manifest
new file mode 100644
index 000000000000..d55b24122aa4
--- /dev/null
+++ b/app-misc/astrolog/Manifest
@@ -0,0 +1 @@
+DIST ast54unx.shr 1465432 SHA256 6700d393a421c16076d1aad37f171fde6293f1c062ec6a6ee07a884182287736 SHA512 824fcea1891dafc77692e84a36cc97a8afd90ad93d772edab8437e89869cdc912002f628fd86eecc8182ba4f1ad02cb98f42a30fde425bf94cf59f852b4eda1a WHIRLPOOL 6538f1e1d41a1a23dc476ffbe3f153d43e22829614ecbb71fa5c4f2b31b9ee799291ef7ac55283875f8e07324f9e416bb9f8092a97e354017796f7ff4fd42edd
diff --git a/app-misc/astrolog/astrolog-5.40-r1.ebuild b/app-misc/astrolog/astrolog-5.40-r1.ebuild
new file mode 100644
index 000000000000..5a28227beaae
--- /dev/null
+++ b/app-misc/astrolog/astrolog-5.40-r1.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit toolchain-funcs
+
+DESCRIPTION="A many featured astrology chart calculation program"
+HOMEPAGE="http://www.astrolog.org/astrolog.htm"
+SRC_URI="http://www.astrolog.org/ftp/ast54unx.shr"
+
+LICENSE="astrolog"
+SLOT="0"
+KEYWORDS="amd64 ~ppc ~ppc64 x86"
+IUSE="X"
+
+DEPEND="X? ( x11-libs/libX11 )"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}"
+
+src_unpack() {
+ sh "${DISTDIR}"/ast54unx.shr || die
+}
+
+src_prepare() {
+ # remove stripping of created binary, dump hardcoded CFLAGS,
+ # respect CC (bug #243606), and CFLAGS (bug #240057)
+ sed \
+ -e 's:strip:#strip:' -e 's:^CFLAGS = :#CFLAGS = :' \
+ -e 's:\tcc :\t$(CC) $(CFLAGS) $(LDFLAGS) :' \
+ -i Makefile || die
+
+ # we use /usr/share/astrolog for config and (optional) ephemeris-data-files
+ sed -i -e "s:~/astrolog:/usr/share/astrolog:g" astrolog.h || die
+
+ # if we use X, we need to add -L/usr/X11R6/lib to compile succesful
+ #use X && sed -i -e "s:-lm -lX11:-lm -lX11 -L/usr/X11R6/lib:g" Makefile
+
+ # if we do NOT use X, we disable it by removing the -lX11 from the Makefile
+ # and remove the "#define X11" and "#define MOUSE" from astrolog.h
+ use X || ( sed -i -e "s:-lm -lX11:-lm:g" Makefile
+ sed -i -e "s:#define X11:/*#define X11:g" astrolog.h
+ sed -i -e "s:#define MOUSE:/*#define MOUSE:g" astrolog.h )
+
+ # any user may have an own astrolog configfile
+ #sed -i -e "s:astrolog.dat:astrolog.dat:g" astrolog.h
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" LDFLAGS="${LDFLAGS}"
+}
+
+src_install() {
+ dobin astrolog
+ dodoc Helpfile.540 README.1ST README.540 Update.540
+ insinto /usr/share/astrolog
+ doins astrolog.dat
+}
+
+pkg_postinst() {
+ ewarn "There is a sample config file /usr/share/astrolog/astrolog.dat"
+ ewarn "astrolog looks in current dir for a file astrolog.dat before"
+ ewarn "using the file in /usr/share/astrolog"
+ ewarn "If you want extended accuracy of astrolog's calculations you"
+ ewarn "can emerge the optional package \"astrolog-ephemeris\" which"
+ ewarn "needs ~4.7 MB additional diskspace for the ephemeris-files"
+}
diff --git a/app-misc/astrolog/astrolog-5.40-r2.ebuild b/app-misc/astrolog/astrolog-5.40-r2.ebuild
new file mode 100644
index 000000000000..57b454dba452
--- /dev/null
+++ b/app-misc/astrolog/astrolog-5.40-r2.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit toolchain-funcs
+
+DESCRIPTION="A many featured astrology chart calculation program"
+HOMEPAGE="http://www.astrolog.org/astrolog.htm"
+SRC_URI="http://www.astrolog.org/ftp/ast54unx.shr"
+
+LICENSE="astrolog"
+SLOT="0"
+KEYWORDS="amd64 ppc ppc64 x86"
+IUSE="X"
+
+DEPEND="X? ( x11-libs/libX11 )"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}"
+
+src_unpack() {
+ sh "${DISTDIR}"/ast54unx.shr || die
+}
+
+src_prepare() {
+ # remove stripping of created binary, dump hardcoded CFLAGS,
+ # respect CC (bug #243606), and CFLAGS (bug #240057)
+ sed \
+ -e 's:strip:#strip:' -e 's:^CFLAGS = :#CFLAGS = :' \
+ -e 's:\tcc :\t$(CC) $(CFLAGS) $(LDFLAGS) :' \
+ -i Makefile || die
+
+ # we use /usr/share/astrolog for config and (optional) ephemeris-data-files
+ sed -i -e "s:~/astrolog:/usr/share/astrolog:g" astrolog.h || die
+
+ # if we use X, we need to add -L/usr/X11R6/lib to compile succesful
+ #use X && sed -i -e "s:-lm -lX11:-lm -lX11 -L/usr/X11R6/lib:g" Makefile
+
+ # if we do NOT use X, we disable it by removing the -lX11 from the Makefile
+ # and remove the "#define X11" and "#define MOUSE" from astrolog.h
+ use X || ( sed -i -e "s:-lm -lX11:-lm:g" Makefile
+ sed -i -e "s:#define X11:/*#define X11:g" astrolog.h
+ sed -i -e "s:#define MOUSE:/*#define MOUSE:g" astrolog.h )
+
+ # any user may have an own astrolog configfile
+ #sed -i -e "s:astrolog.dat:astrolog.dat:g" astrolog.h
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" LDFLAGS="${LDFLAGS}"
+}
+
+src_install() {
+ dobin astrolog
+ dodoc Helpfile.540 README.1ST README.540 Update.540
+ insinto /usr/share/astrolog
+ doins astrolog.dat
+}
+
+pkg_postinst() {
+ ewarn "There is a sample config file /usr/share/astrolog/astrolog.dat"
+ ewarn "astrolog looks in current dir for a file astrolog.dat before"
+ ewarn "using the file in /usr/share/astrolog"
+ ewarn "If you want extended accuracy of astrolog's calculations you"
+ ewarn "can emerge the optional package \"astrolog-ephemeris\" which"
+ ewarn "needs ~4.7 MB additional diskspace for the ephemeris-files"
+}
diff --git a/app-misc/astrolog/metadata.xml b/app-misc/astrolog/metadata.xml
new file mode 100644
index 000000000000..b589349749e1
--- /dev/null
+++ b/app-misc/astrolog/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>george@gentoo.org</email>
+ <name>George Shapovalov</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-misc/away/Manifest b/app-misc/away/Manifest
new file mode 100644
index 000000000000..78a19d50a0f1
--- /dev/null
+++ b/app-misc/away/Manifest
@@ -0,0 +1 @@
+DIST away-0.9.5.tar.bz2 16909 SHA256 d8ca7d4f63634b8093e90f99b4cdf99920a13ae905c61c21095c07edd9d0ec7a SHA512 9cb0ab5caf80e337ce524ec88ee0ffc5305080be807494ababd122d7c5a00b7e79711537d74d930eb3768a71a31156e9abe5e0d9d424a201a9af31aa1bbc1c2a WHIRLPOOL 436f12d6e44263c999398e58188711af4ef91162e9105e18f9262e581d7d70228fea36cd722b7db63dab519310a80534ce921c306584144bf47b9d1ff47d7491
diff --git a/app-misc/away/away-0.9.5-r1.ebuild b/app-misc/away/away-0.9.5-r1.ebuild
new file mode 100644
index 000000000000..48c32d5dd319
--- /dev/null
+++ b/app-misc/away/away-0.9.5-r1.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit pam toolchain-funcs flag-o-matic
+
+DESCRIPTION="Terminal locking program with few additional features"
+HOMEPAGE="http://unbeatenpath.net/software/away/"
+SRC_URI="http://unbeatenpath.net/software/away/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc ppc64 sparc x86"
+IUSE=""
+
+RDEPEND=">=sys-libs/pam-0.75"
+DEPEND="${RDEPEND}"
+
+src_unpack() {
+ unpack ${A}
+
+ sed -i -e '/-o \$(BINARY)/d' \
+ -e 's:LIBS:LDLIBS:' \
+ "${S}"/Makefile || die "Makefile fix failed"
+}
+src_compile() {
+ append-flags -pthread
+
+ emake CFLAGS="${CFLAGS}" CC="$(tc-getCC)" || die
+}
+
+src_install() {
+ dobin away || die "dobin failed"
+
+ pamd_mimic_system away auth
+
+ doman doc/*
+ dodoc BUGS AUTHORS NEWS README TODO data/awayrc || die "dodoc failed"
+}
diff --git a/app-misc/away/metadata.xml b/app-misc/away/metadata.xml
new file mode 100644
index 000000000000..91f4e72fb544
--- /dev/null
+++ b/app-misc/away/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>
+ <email>maintainer-needed@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-misc/banner/Manifest b/app-misc/banner/Manifest
new file mode 100644
index 000000000000..6df67045cde6
--- /dev/null
+++ b/app-misc/banner/Manifest
@@ -0,0 +1 @@
+DIST banner-1.3.3.tar.gz 114237 SHA256 bbc0c166da751d2055f76fde7a268a1ea008e4b6f949b767ab79ff07d47a4bda SHA512 38f16f2a25bd7fb270056ebe43691c989a808891ecc75e4f794456d1752a07002efb7ba7b90a2000a40704e6b6f11760b47a3fe59deeb05ff3578f0d982f7d96 WHIRLPOOL bea44375446950d737e4f7472d8f9305eb640f339e1c846f43e407bd0a26da95194e97029e52fa126d50ce6f757279ee939763aafa7ee5cef19229a308bafbf3
diff --git a/app-misc/banner/banner-1.3.3.ebuild b/app-misc/banner/banner-1.3.3.ebuild
new file mode 100644
index 000000000000..cb1d920d4e32
--- /dev/null
+++ b/app-misc/banner/banner-1.3.3.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils
+
+DESCRIPTION="The well known banner program for Linux"
+HOMEPAGE="http://cedar-solutions.com"
+SRC_URI="http://cedar-solutions.com/ftp/software/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 ~ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux"
+
+DEPEND="!games-misc/bsd-games"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-ctype.h.patch
+}
diff --git a/app-misc/banner/files/banner-1.3.3-ctype.h.patch b/app-misc/banner/files/banner-1.3.3-ctype.h.patch
new file mode 100644
index 000000000000..c89e1b3fe8d1
--- /dev/null
+++ b/app-misc/banner/files/banner-1.3.3-ctype.h.patch
@@ -0,0 +1,11 @@
+--- a/banner.c
++++ b/banner.c
+@@ -126,6 +126,8 @@
+ #include <string.h>
+ #endif
+
++#include <ctype.h> /* isspace() toupper() */
++
+ #include "letters.h"
+
+
diff --git a/app-misc/banner/metadata.xml b/app-misc/banner/metadata.xml
new file mode 100644
index 000000000000..731225048652
--- /dev/null
+++ b/app-misc/banner/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>desktop-misc</herd>
+</pkgmetadata>
diff --git a/app-misc/basenji/Manifest b/app-misc/basenji/Manifest
new file mode 100644
index 000000000000..2f1d0b794749
--- /dev/null
+++ b/app-misc/basenji/Manifest
@@ -0,0 +1 @@
+DIST basenji-1.0.0.tar.gz 642763 SHA256 1a52c351a84ffe05801f1f440bfc9dbf4523136fad0da40d928e6e354c727c1e SHA512 9448545f345138cdef39f872a8bbd60d60a6e8f49a7ea518d58fa69c6711c5ca019d1d0257e26b80b95d5fe12d787ab9b2ed4bf5a76e4f6acccd904cc6fa6084 WHIRLPOOL 315ea82274acbb7e98ac44407fd10fa377940db7b47f37c54ad11806b2e7e0cc1a40568b12bb805316fb2d91cd550a568d305d9072194a7b5d94c392f8b28319
diff --git a/app-misc/basenji/basenji-1.0.0.ebuild b/app-misc/basenji/basenji-1.0.0.ebuild
new file mode 100644
index 000000000000..843742a2e489
--- /dev/null
+++ b/app-misc/basenji/basenji-1.0.0.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+inherit multilib versionator
+
+DESCRIPTION="Basenji is a volume indexing tool designed for easy and fast indexing of volume collections"
+HOMEPAGE="http://launchpad.net/basenji"
+SRC_URI="http://launchpad.net/basenji/trunk/$(get_version_component_range 1-2)/+download/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+CDEPEND="dev-dotnet/dbus-sharp
+ dev-dotnet/dbus-sharp-glib
+ dev-dotnet/gio-sharp
+ dev-dotnet/gtk-sharp
+ dev-dotnet/gnome-sharp
+ dev-dotnet/taglib-sharp
+ media-libs/libextractor"
+
+DEPEND="${CDEPEND}"
+
+RDEPEND="${CDEPEND}
+ dev-dotnet/gnome-desktop-sharp
+ sys-fs/udisks"
+
+S="${WORKDIR}"
+
+src_prepare() {
+ sed -i -e "s/-pkg:mono-cairo/-r:Mono.Cairo/" Basenji/Makefile || die "sed failed."
+}
+
+src_configure() {
+ ./configure --prefix="${EPREFIX}/usr"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "Install failed"
+}
diff --git a/app-misc/basenji/metadata.xml b/app-misc/basenji/metadata.xml
new file mode 100644
index 000000000000..8a8a86733d17
--- /dev/null
+++ b/app-misc/basenji/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>
+ <email>maintainer-needed@gentoo.org</email>
+ </maintainer>
+ <longdescription>
+ Basenji is a volume indexing tool designed for easy and fast indexing of volume collections. It currently supports indexing of removable media such as CDs and USB sticks and stores them as volume objects in a database. After being stored in this database, volumes can be browsed and searched trough for specific files very quickly.
+ </longdescription>
+ <use>
+ </use>
+ <upstream>
+ <remote-id type="launchpad">basenji</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/bb/Manifest b/app-misc/bb/Manifest
new file mode 100644
index 000000000000..f0828061abec
--- /dev/null
+++ b/app-misc/bb/Manifest
@@ -0,0 +1 @@
+DIST bb-1.3rc1.tar.gz 1416292 SHA256 793d88c872793b6dab444cf5bab24f283ecb2f3502f1479ebbe41dd8e90b81c4 SHA512 f05eb741f1189038a5a63016437f8eaeb25eb001307561bfe8827701bc246873fec14462e586d5966dcd1c74cddaf346f4670254b712713625e139300817c0a9 WHIRLPOOL 3e56032a2dc593eb91418deb6ca13d641177068755b5ee5c7d836ff0e444e4f4a0f3453d3d841f7a6f4dae007b3188cccb2fc478aad6dc2f94684ac5221023c7
diff --git a/app-misc/bb/bb-1.3.0_rc1-r3.ebuild b/app-misc/bb/bb-1.3.0_rc1-r3.ebuild
new file mode 100644
index 000000000000..3232314295ba
--- /dev/null
+++ b/app-misc/bb/bb-1.3.0_rc1-r3.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit autotools eutils versionator
+
+MY_P="${PN}-$(get_version_component_range 1-2)$(get_version_component_range 4-4)"
+
+DESCRIPTION="Demonstration program for visual effects of aalib"
+HOMEPAGE="http://aa-project.sourceforge.net/"
+SRC_URI="mirror://sourceforge/aa-project/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="mikmod"
+
+DEPEND="media-libs/aalib:=
+ dev-libs/lzo:=
+ mikmod? ( media-libs/libmikmod:= )
+"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${PN}-$(get_version_component_range 1-3)"
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-noattr.patch"
+ epatch "${FILESDIR}/${P}-fix-protos.patch"
+ epatch "${FILESDIR}"/${P}-messager-overlap.patch
+ epatch "${FILESDIR}"/${P}-zbuff-fault.patch
+ epatch "${FILESDIR}"/${P}-printf-cleanup.patch
+ epatch "${FILESDIR}"/${P}-m4-stuff.patch
+
+ # unbundle lzo, #515286
+ rm -v README.LZO minilzo.{c,h} mylzo.h || die
+ sed -e 's/minilzo.c//' \
+ -e 's/minilzo.h//' \
+ -e 's/README.LZO//' \
+ -i Makefile.am || die
+ echo 'bb_LDADD = -llzo2' >> Makefile.am || die
+ # update code
+ sed -e 's,#include "minilzo.h",#include <lzo/lzo1x.h>,' \
+ -e 's,int size = image,lzo_uint size = image,' \
+ -i image.c || die
+
+ # rename binary and manpage bb -> bb-aalib
+
+ mv bb.1 bb-aalib.1 || die
+ sed -e 's/bb/bb-aalib/' \
+ -i bb-aalib.1
+ sed -e 's/bin_PROGRAMS = bb/bin_PROGRAMS = bb-aalib/' \
+ -e 's/man_MANS = bb.1/man_MANS = bb-aalib.1/' \
+ -e 's/bb_SOURCES/bb_aalib_SOURCES/' \
+ -e 's/bb_LDADD/bb_aalib_LDADD/' \
+ -i Makefile.am || die
+
+ AT_M4DIR="m4" eautoreconf
+}
+
+pkg_postinst() {
+ elog "bb binary has been renamed to bb-aalib to avoid a naming conflict with sys-apps/busybox."
+}
diff --git a/app-misc/bb/files/bb-1.3.0_rc1-fix-protos.patch b/app-misc/bb/files/bb-1.3.0_rc1-fix-protos.patch
new file mode 100644
index 000000000000..577f306c8169
--- /dev/null
+++ b/app-misc/bb/files/bb-1.3.0_rc1-fix-protos.patch
@@ -0,0 +1,15 @@
+Fixes warning:
+main.c: In function 'load_song':
+main.c:56:23: warning: incompatible implicit declaration of built-in function 'strlen'
+diff --git a/main.c b/main.c
+index ae852a7..417ff62 100644
+--- a/main.c
++++ b/main.c
+@@ -21,6 +21,7 @@
+ * 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+
++#include <string.h>
+ #include <unistd.h>
+ #include "timers.h"
+ #include "bb.h"
diff --git a/app-misc/bb/files/bb-1.3.0_rc1-m4-stuff.patch b/app-misc/bb/files/bb-1.3.0_rc1-m4-stuff.patch
new file mode 100644
index 000000000000..0fa98f8162f5
--- /dev/null
+++ b/app-misc/bb/files/bb-1.3.0_rc1-m4-stuff.patch
@@ -0,0 +1,396 @@
+Fix aclocal failure on libmikmod-less systems
+
+commit 55b86efdc3e2a1febb593169b10ab252c75fdb10
+Author: Sergei Trofimovich <slyfox@gentoo.org>
+Date: Tue Feb 7 10:59:09 2012 +0300
+
+ bb-1.3.0_rc1: bundle m4 source
+
+diff --git m4/aalib.m4 m4/aalib.m4
+new file mode 100644
+index 0000000..991fbda
+--- /dev/null
++++ m4/aalib.m4
+@@ -0,0 +1,169 @@
++# Configure paths for AALIB
++# Jan Hubicka 4/22/2001
++# stolen from Sam Lantinga 9/21/99
++# stolen from Manish Singh
++# stolen back from Frank Belew
++# stolen from Manish Singh
++# Shamelessly stolen from Owen Taylor
++
++dnl AM_PATH_AALIB([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
++dnl Test for AALIB, and define AALIB_CFLAGS and AALIB_LIBS
++dnl
++AC_DEFUN([AM_PATH_AALIB],
++[dnl
++dnl Get the cflags and libraries from the aalib-config script
++dnl
++AC_ARG_WITH(aalib-prefix,[ --with-aalib-prefix=PFX Prefix where AALIB is installed (optional)],
++ aalib_prefix="$withval", aalib_prefix="")
++AC_ARG_WITH(aalib-exec-prefix,[ --with-aalib-exec-prefix=PFX Exec prefix where AALIB is installed (optional)],
++ aalib_exec_prefix="$withval", aalib_exec_prefix="")
++AC_ARG_ENABLE(aalibtest, [ --disable-aalibtest Do not try to compile and run a test AALIB program],
++ , enable_aalibtest=yes)
++
++ if test x$aalib_exec_prefix != x ; then
++ aalib_args="$aalib_args --exec-prefix=$aalib_exec_prefix"
++ if test x${AALIB_CONFIG+set} != xset ; then
++ AALIB_CONFIG=$aalib_exec_prefix/bin/aalib-config
++ fi
++ fi
++ if test x$aalib_prefix != x ; then
++ aalib_args="$aalib_args --prefix=$aalib_prefix"
++ if test x${AALIB_CONFIG+set} != xset ; then
++ AALIB_CONFIG=$aalib_prefix/bin/aalib-config
++ fi
++ fi
++
++ AC_PATH_PROG(AALIB_CONFIG, aalib-config, no)
++ min_aalib_version=ifelse([$1], ,0.11.0,$1)
++ AC_MSG_CHECKING(for AALIB - version >= $min_aalib_version)
++ no_aalib=""
++ if test "$AALIB_CONFIG" = "no" ; then
++ no_aalib=yes
++ else
++ AALIB_CFLAGS=`$AALIB_CONFIG $aalibconf_args --cflags`
++ AALIB_LIBS=`$AALIB_CONFIG $aalibconf_args --libs`
++
++ aalib_major_version=`$AALIB_CONFIG $aalib_args --version | \
++ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
++ aalib_minor_version=`$AALIB_CONFIG $aalib_args --version | \
++ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
++ aalib_micro_version=`$AALIB_CONFIG $aalib_config_args --version | \
++ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
++ if test "x$enable_aalibtest" = "xyes" ; then
++ ac_save_CFLAGS="$CFLAGS"
++ ac_save_LIBS="$LIBS"
++ CFLAGS="$CFLAGS $AALIB_CFLAGS"
++ LIBS="$LIBS $AALIB_LIBS"
++dnl
++dnl Now check if the installed AALIB is sufficiently new. (Also sanity
++dnl checks the results of aalib-config to some extent
++dnl
++ rm -f conf.aalibtest
++ AC_TRY_RUN([
++#include <stdio.h>
++#include <stdlib.h>
++#include <string.h>
++#include "aalib.h"
++
++char*
++my_strdup (char *str)
++{
++ char *new_str;
++
++ if (str)
++ {
++ new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
++ strcpy (new_str, str);
++ }
++ else
++ new_str = NULL;
++
++ return new_str;
++}
++
++int main (int argc, char *argv[])
++{
++ int major, minor, micro;
++ char *tmp_version;
++
++ /* This hangs on some systems (?)
++ system ("touch conf.aalibtest");
++ */
++ { FILE *fp = fopen("conf.aalibtest", "a"); if ( fp ) fclose(fp); }
++
++ /* HP/UX 9 (%@#!) writes to sscanf strings */
++ tmp_version = my_strdup("$min_aalib_version");
++ if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
++ printf("%s, bad version string\n", "$min_aalib_version");
++ exit(1);
++ }
++
++ if (($aalib_major_version > major) ||
++ (($aalib_major_version == major) && ($aalib_minor_version > minor)) ||
++ (($aalib_major_version == major) && ($aalib_minor_version == minor) && ($aalib_micro_version >= micro)))
++ {
++ return 0;
++ }
++ else
++ {
++ printf("\n*** 'aalib-config --version' returned %d.%d.%d, but the minimum version\n", $aalib_major_version, $aalib_minor_version, $aalib_micro_version);
++ printf("*** of AALIB required is %d.%d.%d. If aalib-config is correct, then it is\n", major, minor, micro);
++ printf("*** best to upgrade to the required version.\n");
++ printf("*** If aalib-config was wrong, set the environment variable AALIB_CONFIG\n");
++ printf("*** to point to the correct copy of aalib-config, and remove the file\n");
++ printf("*** config.cache before re-running configure\n");
++ return 1;
++ }
++}
++
++],, no_aalib=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
++ CFLAGS="$ac_save_CFLAGS"
++ LIBS="$ac_save_LIBS"
++ fi
++ fi
++ if test "x$no_aalib" = x ; then
++ AC_MSG_RESULT(yes)
++ ifelse([$2], , :, [$2])
++ else
++ AC_MSG_RESULT(no)
++ if test "$AALIB_CONFIG" = "no" ; then
++ echo "*** The aalib-config script installed by AALIB could not be found"
++ echo "*** If AALIB was installed in PREFIX, make sure PREFIX/bin is in"
++ echo "*** your path, or set the AALIB_CONFIG environment variable to the"
++ echo "*** full path to aalib-config."
++ else
++ if test -f conf.aalibtest ; then
++ :
++ else
++ echo "*** Could not run AALIB test program, checking why..."
++ CFLAGS="$CFLAGS $AALIB_CFLAGS"
++ LIBS="$LIBS $AALIB_LIBS"
++ AC_TRY_LINK([
++#include <stdio.h>
++#include "AALIB.h"
++], [ return 0; ],
++ [ echo "*** The test program compiled, but did not run. This usually means"
++ echo "*** that the run-time linker is not finding AALIB or finding the wrong"
++ echo "*** version of AALIB. If it is not finding AALIB, you'll need to set your"
++ echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
++ echo "*** to the installed location Also, make sure you have run ldconfig if that"
++ echo "*** is required on your system"
++ echo "***"
++ echo "*** If you have an old version installed, it is best to remove it, although"
++ echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"],
++ [ echo "*** The test program failed to compile or link. See the file config.log for the"
++ echo "*** exact error that occured. This usually means AALIB was incorrectly installed"
++ echo "*** or that you have moved AALIB since it was installed. In the latter case, you"
++ echo "*** may want to edit the aalib-config script: $AALIB_CONFIG" ])
++ CFLAGS="$ac_save_CFLAGS"
++ LIBS="$ac_save_LIBS"
++ fi
++ fi
++ AALIB_CFLAGS=""
++ AALIB_LIBS=""
++ ifelse([$3], , :, [$3])
++ fi
++ AC_SUBST(AALIB_CFLAGS)
++ AC_SUBST(AALIB_LIBS)
++ rm -f conf.aalibtest
++])
+diff --git m4/libmikmod.m4 m4/libmikmod.m4
+new file mode 100644
+index 0000000..18feebe
+--- /dev/null
++++ m4/libmikmod.m4
+@@ -0,0 +1,207 @@
++# Configure paths for libmikmod
++#
++# Derived from glib.m4 (Owen Taylor 97-11-3)
++# Improved by Chris Butler
++#
++
++dnl AM_PATH_LIBMIKMOD([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND ]]])
++dnl Test for libmikmod, and define LIBMIKMOD_CFLAGS, LIBMIKMOD_LIBS and
++dnl LIBMIKMOD_LDADD
++dnl
++AC_DEFUN([AM_PATH_LIBMIKMOD],
++[dnl
++dnl Get the cflags and libraries from the libmikmod-config script
++dnl
++AC_ARG_WITH(libmikmod-prefix,[ --with-libmikmod-prefix=PFX Prefix where libmikmod is installed (optional)],
++ libmikmod_config_prefix="$withval", libmikmod_config_prefix="")
++AC_ARG_WITH(libmikmod-exec-prefix,[ --with-libmikmod-exec-prefix=PFX Exec prefix where libmikmod is installed (optional)],
++ libmikmod_config_exec_prefix="$withval", libmikmod_config_exec_prefix="")
++AC_ARG_ENABLE(libmikmodtest, [ --disable-libmikmodtest Do not try to compile and run a test libmikmod program],
++ , enable_libmikmodtest=yes)
++
++ if test x$libmikmod_config_exec_prefix != x ; then
++ libmikmod_config_args="$libmikmod_config_args --exec-prefix=$libmikmod_config_exec_prefix"
++ if test x${LIBMIKMOD_CONFIG+set} != xset ; then
++ LIBMIKMOD_CONFIG=$libmikmod_config_exec_prefix/bin/libmikmod-config
++ fi
++ fi
++ if test x$libmikmod_config_prefix != x ; then
++ libmikmod_config_args="$libmikmod_config_args --prefix=$libmikmod_config_prefix"
++ if test x${LIBMIKMOD_CONFIG+set} != xset ; then
++ LIBMIKMOD_CONFIG=$libmikmod_config_prefix/bin/libmikmod-config
++ fi
++ fi
++
++ AC_PATH_PROG(LIBMIKMOD_CONFIG, libmikmod-config, no)
++ min_libmikmod_version=ifelse([$1], ,3.1.5,$1)
++ AC_MSG_CHECKING(for libmikmod - version >= $min_libmikmod_version)
++ no_libmikmod=""
++ if test "$LIBMIKMOD_CONFIG" = "no" ; then
++ no_libmikmod=yes
++ else
++ LIBMIKMOD_CFLAGS=`$LIBMIKMOD_CONFIG $libmikmod_config_args --cflags`
++ LIBMIKMOD_LIBS=`$LIBMIKMOD_CONFIG $libmikmod_config_args --libs`
++ LIBMIKMOD_LDADD=`$LIBMIKMOD_CONFIG $libmikmod_config_args --ldadd`
++ libmikmod_config_major_version=`$LIBMIKMOD_CONFIG $libmikmod_config_args --version | \
++ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\).*/\1/'`
++ libmikmod_config_minor_version=`$LIBMIKMOD_CONFIG $libmikmod_config_args --version | \
++ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\).*/\2/'`
++ libmikmod_config_micro_version=`$LIBMIKMOD_CONFIG $libmikmod_config_args --version | \
++ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\).*/\3/'`
++ if test "x$enable_libmikmodtest" = "xyes" ; then
++ ac_save_CFLAGS="$CFLAGS"
++ ac_save_LIBS="$LIBS"
++ AC_LANG_SAVE
++ AC_LANG_C
++ CFLAGS="$CFLAGS $LIBMIKMOD_CFLAGS $LIBMIKMOD_LDADD"
++ LIBS="$LIBMIKMOD_LIBS $LIBS"
++dnl
++dnl Now check if the installed libmikmod is sufficiently new. (Also sanity
++dnl checks the results of libmikmod-config to some extent
++dnl
++ rm -f conf.mikmodtest
++ AC_TRY_RUN([
++#include <mikmod.h>
++#include <stdio.h>
++#include <stdlib.h>
++
++char* my_strdup (char *str)
++{
++ char *new_str;
++
++ if (str) {
++ new_str = malloc ((strlen (str) + 1) * sizeof(char));
++ strcpy (new_str, str);
++ } else
++ new_str = NULL;
++
++ return new_str;
++}
++
++int main()
++{
++ int major,minor,micro;
++ int libmikmod_major_version,libmikmod_minor_version,libmikmod_micro_version;
++ char *tmp_version;
++
++ system("touch conf.mikmodtest");
++
++ /* HP/UX 9 (%@#!) writes to sscanf strings */
++ tmp_version = my_strdup("$min_libmikmod_version");
++ if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
++ printf("%s, bad version string\n", "$min_libmikmod_version");
++ exit(1);
++ }
++
++ libmikmod_major_version=(MikMod_GetVersion() >> 16) & 255;
++ libmikmod_minor_version=(MikMod_GetVersion() >> 8) & 255;
++ libmikmod_micro_version=(MikMod_GetVersion() ) & 255;
++
++ if ((libmikmod_major_version != $libmikmod_config_major_version) ||
++ (libmikmod_minor_version != $libmikmod_config_minor_version) ||
++ (libmikmod_micro_version != $libmikmod_config_micro_version))
++ {
++ printf("\n*** 'libmikmod-config --version' returned %d.%d.%d, but libmikmod (%d.%d.%d)\n",
++ $libmikmod_config_major_version, $libmikmod_config_minor_version, $libmikmod_config_micro_version,
++ libmikmod_major_version, libmikmod_minor_version, libmikmod_micro_version);
++ printf ("*** was found! If libmikmod-config was correct, then it is best\n");
++ printf ("*** to remove the old version of libmikmod. You may also be able to fix the error\n");
++ printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
++ printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
++ printf("*** required on your system.\n");
++ printf("*** If libmikmod-config was wrong, set the environment variable LIBMIKMOD_CONFIG\n");
++ printf("*** to point to the correct copy of libmikmod-config, and remove the file config.cache\n");
++ printf("*** before re-running configure\n");
++ }
++ else if ((libmikmod_major_version != LIBMIKMOD_VERSION_MAJOR) ||
++ (libmikmod_minor_version != LIBMIKMOD_VERSION_MINOR) ||
++ (libmikmod_micro_version != LIBMIKMOD_REVISION))
++ {
++ printf("*** libmikmod header files (version %d.%d.%d) do not match\n",
++ LIBMIKMOD_VERSION_MAJOR, LIBMIKMOD_VERSION_MINOR, LIBMIKMOD_REVISION);
++ printf("*** library (version %d.%d.%d)\n",
++ libmikmod_major_version, libmikmod_minor_version, libmikmod_micro_version);
++ }
++ else
++ {
++ if ((libmikmod_major_version > major) ||
++ ((libmikmod_major_version == major) && (libmikmod_minor_version > minor)) ||
++ ((libmikmod_major_version == major) && (libmikmod_minor_version == minor) && (libmikmod_micro_version >= micro)))
++ {
++ return 0;
++ }
++ else
++ {
++ printf("\n*** An old version of libmikmod (%d.%d.%d) was found.\n",
++ libmikmod_major_version, libmikmod_minor_version, libmikmod_micro_version);
++ printf("*** You need a version of libmikmod newer than %d.%d.%d.\n",
++ major, minor, micro);
++ printf("***\n");
++ printf("*** If you have already installed a sufficiently new version, this error\n");
++ printf("*** probably means that the wrong copy of the libmikmod-config shell script is\n");
++ printf("*** being found. The easiest way to fix this is to remove the old version\n");
++ printf("*** of libmikmod, but you can also set the LIBMIKMOD_CONFIG environment to point to the\n");
++ printf("*** correct copy of libmikmod-config. (In this case, you will have to\n");
++ printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
++ printf("*** so that the correct libraries are found at run-time))\n");
++ }
++ }
++ return 1;
++}
++],, no_libmikmod=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
++ CFLAGS="$ac_save_CFLAGS"
++ LIBS="$ac_save_LIBS"
++ AC_LANG_RESTORE
++ fi
++ fi
++ if test "x$no_libmikmod" = x ; then
++ AC_MSG_RESULT([yes, `$LIBMIKMOD_CONFIG --version`])
++ ifelse([$2], , :, [$2])
++ else
++ AC_MSG_RESULT(no)
++ if test "$LIBMIKMOD_CONFIG" = "no" ; then
++ echo "*** The libmikmod-config script installed by libmikmod could not be found"
++ echo "*** If libmikmod was installed in PREFIX, make sure PREFIX/bin is in"
++ echo "*** your path, or set the LIBMIKMOD_CONFIG environment variable to the"
++ echo "*** full path to libmikmod-config."
++ else
++ if test -f conf.mikmodtest ; then
++ :
++ else
++ echo "*** Could not run libmikmod test program, checking why..."
++ CFLAGS="$CFLAGS $LIBMIKMOD_CFLAGS"
++ LIBS="$LIBS $LIBMIKMOD_LIBS"
++ AC_LANG_SAVE
++ AC_LANG_C
++ AC_TRY_LINK([
++#include <mikmod.h>
++#include <stdio.h>
++], [ return (MikMod_GetVersion()!=0); ],
++ [ echo "*** The test program compiled, but did not run. This usually means"
++ echo "*** that the run-time linker is not finding libmikmod or finding the wrong"
++ echo "*** version of libmikmod. If it is not finding libmikmod, you'll need to set your"
++ echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
++ echo "*** to the installed location. Also, make sure you have run ldconfig if that"
++ echo "*** is required on your system."
++ echo "***"
++ echo "*** If you have an old version installed, it is best to remove it, although"
++ echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"],
++ [ echo "*** The test program failed to compile or link. See the file config.log for the"
++ echo "*** exact error that occured. This usually means libmikmod was incorrectly installed"
++ echo "*** or that you have moved libmikmod since it was installed. In the latter case, you"
++ echo "*** may want to edit the libmikmod-config script: $LIBMIKMOD_CONFIG" ])
++ CFLAGS="$ac_save_CFLAGS"
++ LIBS="$ac_save_LIBS"
++ AC_LANG_RESTORE
++ fi
++ fi
++ LIBMIKMOD_CFLAGS=""
++ LIBMIKMOD_LIBS=""
++ LIBMIKMOD_LDADD=""
++ ifelse([$3], , :, [$3])
++ fi
++ AC_SUBST(LIBMIKMOD_CFLAGS)
++ AC_SUBST(LIBMIKMOD_LIBS)
++ AC_SUBST(LIBMIKMOD_LDADD)
++ rm -f conf.mikmodtest
++])
diff --git a/app-misc/bb/files/bb-1.3.0_rc1-messager-overlap.patch b/app-misc/bb/files/bb-1.3.0_rc1-messager-overlap.patch
new file mode 100644
index 000000000000..e46b75fd5815
--- /dev/null
+++ b/app-misc/bb/files/bb-1.3.0_rc1-messager-overlap.patch
@@ -0,0 +1,25 @@
+messager.c: fix memory overlap (fixes artefacts in scrolling text)
+
+==363== Source and destination overlap in memcpy(0xa066240, 0xa0662b8, 240)
+==363== at 0x4C2B220: memcpy@@GLIBC_2.14 (mc_replace_strmem.c:838)
+==363== by 0x407D97: newline (messager.c:43)
+==363== by 0x407EE6: put (messager.c:54)
+==363== by 0x40806E: messager (messager.c:77)
+==363== by 0x403009: bb (bb.c:258)
+==363== by 0x407C06: main (main.c:202)
+
+diff --git a/messager.c b/messager.c
+index 95cc410..964080b 100644
+--- a/messager.c
++++ b/messager.c
+@@ -40,8 +40,8 @@ static void newline()
+ start = 0;
+ cursor_y++, cursor_x = 0;
+ if (cursor_y >= aa_scrheight(context)) {
+- memcpy(context->textbuffer + start * aa_scrwidth(context), context->textbuffer + (start + 1) * aa_scrwidth(context), aa_scrwidth(context) * (aa_scrheight(context) - start - 1));
+- memcpy(context->attrbuffer + start * aa_scrwidth(context), context->attrbuffer + (start + 1) * aa_scrwidth(context), aa_scrwidth(context) * (aa_scrheight(context) - start - 1));
++ memmove(context->textbuffer + start * aa_scrwidth(context), context->textbuffer + (start + 1) * aa_scrwidth(context), aa_scrwidth(context) * (aa_scrheight(context) - start - 1));
++ memmove(context->attrbuffer + start * aa_scrwidth(context), context->attrbuffer + (start + 1) * aa_scrwidth(context), aa_scrwidth(context) * (aa_scrheight(context) - start - 1));
+ memset(context->textbuffer + aa_scrwidth(context) * (aa_scrheight(context) - 1), ' ', aa_scrwidth(context));
+ memset(context->attrbuffer + aa_scrwidth(context) * (aa_scrheight(context) - 1), 0, aa_scrwidth(context));
+ cursor_y--;
diff --git a/app-misc/bb/files/bb-1.3.0_rc1-noattr.patch b/app-misc/bb/files/bb-1.3.0_rc1-noattr.patch
new file mode 100644
index 000000000000..7a6f9474a71e
--- /dev/null
+++ b/app-misc/bb/files/bb-1.3.0_rc1-noattr.patch
@@ -0,0 +1,15 @@
+# remove __attribute__
+
+--- timers.h Thu Apr 26 18:04:22 2001
++++ timers.h Sun Dec 9 18:44:31 2007
+@@ -49,8 +49,8 @@
+ extern tl_group *syncgroup, *asyncgroup;
+ void tl_sleep (int);
+ void tl_allegromode (int mode); /*Just for djgpp */
+-int tl_lookup_timer (tl_timer * t) REGISTERS (3);
+-void tl_reset_timer (tl_timer * t) REGISTERS (3);
++int tl_lookup_timer (tl_timer * t);
++void tl_reset_timer (tl_timer * t);
+
+ struct timeemulator *tl_create_emulator(void);
+ void tl_free_emulator(struct timeemulator *t);
diff --git a/app-misc/bb/files/bb-1.3.0_rc1-printf-cleanup.patch b/app-misc/bb/files/bb-1.3.0_rc1-printf-cleanup.patch
new file mode 100644
index 000000000000..da113795124b
--- /dev/null
+++ b/app-misc/bb/files/bb-1.3.0_rc1-printf-cleanup.patch
@@ -0,0 +1,55 @@
+zoom.c: cleanup protos
+
+x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -O2 -march=core2 -pipe -I/usr/include -pthread -D_REENTRANT -D SOUNDDIR=\"/usr/share/bb\" -c zoom.c
+zoom.c: In function 'mkrealloc_table':
+zoom.c:245:113: warning: format '%i' expects type 'int', but argument 3 has type 'long unsigned int'
+zoom.c:251:113: warning: format '%i' expects type 'int', but argument 3 has type 'long unsigned int'
+zoom.c:260:113: warning: format '%i' expects type 'int', but argument 3 has type 'long unsigned int'
+zoom.c: In function 'moveoldpoints':
+zoom.c:590:3: warning: format '%i' expects type 'int', but argument 3 has type 'long unsigned int'
+zoom.c:596:3: warning: format '%i' expects type 'int', but argument 3 has type 'long unsigned int'
+diff --git a/zoom.c b/zoom.c
+index 7450095..b86cc8b 100644
+--- a/zoom.c
++++ b/zoom.c
+@@ -241,13 +241,13 @@ static /*INLINE */ void mkrealloc_table(register number_t * pos, realloc_t * rea
+ #endif
+ if (dyndata == NULL) {
+ fprintf(stderr, "XaoS fatal error:Could not allocate memory for"
+- "temporary dynamical data of size:%i\n"
++ "temporary dynamical data of size:%li\n"
+ "I am unable to handle this problem so please resize to lower window\n", (size) * (DSIZE + 1) * sizeof(struct dyn_data) + size * sizeof(int) + size * sizeof(int));
+ return;
+ }
+ if (best == NULL) {
+ fprintf(stderr, "XaoS fatal error:Could not allocate memory for"
+- "temporary dynamical data of size:%i\n"
++ "temporary dynamical data of size:%li\n"
+ "I am unable to handle this problem so please resize to lower window\n", (size) * (DSIZE + 1) * sizeof(struct dyn_data) + size * sizeof(int) + size * sizeof(int));
+ #ifndef HAVE_ALLOCA
+ free(dyndata);
+@@ -256,7 +256,7 @@ static /*INLINE */ void mkrealloc_table(register number_t * pos, realloc_t * rea
+ }
+ if (best1 == NULL) {
+ fprintf(stderr, "XaoS fatal error:Could not allocate memory for"
+- "temporary dynamical data of size:%i\n"
++ "temporary dynamical data of size:%li\n"
+ "I am unable to handle this problem so please resize to lower window\n", (size) * (DSIZE + 1) * sizeof(struct dyn_data) + size * sizeof(int) + size * sizeof(int));
+ #ifndef HAVE_ALLOCA
+ free(dyndata);
+@@ -586,13 +586,13 @@ static /*INLINE */ void moveoldpoints(void)
+ #endif
+ if (size == NULL) {
+ fprintf(stderr, "XaoS fratal error:Could not allocate memory for"
+- "temporary dynamical data of size:%i\n"
++ "temporary dynamical data of size:%li\n"
+ "I am unable to handle this problem so please resize to lower window\n", 2 * d->width * sizeof(int));
+ return;
+ }
+ if (start == NULL) {
+ fprintf(stderr, "XaoS fratal error:Could not allocate memory for"
+- "temporary dynamical data of size:%i\n"
++ "temporary dynamical data of size:%li\n"
+ "I am unable to handle this problem so please resize to lower window\n", 2 * d->width * sizeof(int));
+ #ifndef HAVE_ALLOCA
+ free(size);
diff --git a/app-misc/bb/files/bb-1.3.0_rc1-zbuff-fault.patch b/app-misc/bb/files/bb-1.3.0_rc1-zbuff-fault.patch
new file mode 100644
index 000000000000..b3e882ed55e9
--- /dev/null
+++ b/app-misc/bb/files/bb-1.3.0_rc1-zbuff-fault.patch
@@ -0,0 +1,35 @@
+tex.c: Fix out-of-bounds zbuff clearing
+
+> zbuff = (int *) malloc(X_s * Y_s * sizeof(int));
+> memset(zbuff, 0x55, (X_s * Y_s * sizeof(long)));
+
+Ouch! amd64: sizeof(long) == 8; sizeof (int) == 4
+
+Valgrind says:
+==4525== Invalid write of size 4
+==4525== at 0x4C2C3AF: memset (mc_replace_strmem.c:967)
+==4525== by 0x4122E0: clear_zbuff (tex.c:95)
+==4525== by 0x4144D8: disp3d (tex.c:292)
+==4525== by 0x40F3C6: scene5 (scene5.c:206)
+==4525== by 0x4031BC: bb (bb.c:325)
+==4525== by 0x407C56: main (main.c:202)
+==4525== Address 0xac9ef00 is 0 bytes after a block of size 34,992 alloc'd
+==4525== at 0x4C2996D: malloc (vg_replace_malloc.c:263)
+==4525== by 0x412283: set_zbuff (tex.c:85)
+==4525== by 0x40F347: scene5 (scene5.c:196)
+==4525== by 0x4031BC: bb (bb.c:325)
+==4525== by 0x407C56: main (main.c:202)
+
+diff --git a/tex.c b/tex.c
+index 9f2f99d..b390510 100644
+--- a/tex.c
++++ b/tex.c
+@@ -92,7 +92,7 @@ void unset_zbuff()
+
+ static inline void clear_zbuff()
+ {
+- memset(zbuff, 0x55, (X_s * Y_s * sizeof(long)));
++ memset(zbuff, 0x55, (X_s * Y_s * sizeof(int)));
+ }
+
+
diff --git a/app-misc/bb/metadata.xml b/app-misc/bb/metadata.xml
new file mode 100644
index 000000000000..94a1b8593946
--- /dev/null
+++ b/app-misc/bb/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>
+ <email>slyfox@gentoo.org</email>
+ <name>Sergei Trofimovich</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">aa-project</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/beancounter/Manifest b/app-misc/beancounter/Manifest
new file mode 100644
index 000000000000..d3dfe1a57e5c
--- /dev/null
+++ b/app-misc/beancounter/Manifest
@@ -0,0 +1 @@
+DIST beancounter_0.8.10.tar.gz 88658 SHA256 342a29110128daf6d4dc97dc5a8275d484154d8a75362df6804c953c7cfa7bbe SHA512 6d1270f0846987fe73480e0f6b46d1c27971d70ffe2622dee9a907f852249f7d30459003cc560c95dff9e6c973a88e81c4f6f63af8f8aa278861962bba703c1b WHIRLPOOL 2108f5d8d2852d098e748ad96b4dd69c71bd47a5584243e0e9643e10bfd75276672a3cc1b932d334e6be7c81e7c4150b81c71290d3848e81096a73f585241b1d
diff --git a/app-misc/beancounter/beancounter-0.8.10-r1.ebuild b/app-misc/beancounter/beancounter-0.8.10-r1.ebuild
new file mode 100644
index 000000000000..98a4fec0fce2
--- /dev/null
+++ b/app-misc/beancounter/beancounter-0.8.10-r1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit perl-module
+
+DESCRIPTION="Finance performance calculation engine with full data acquisition and SQL support"
+HOMEPAGE="http://dirk.eddelbuettel.com/code/beancounter.html"
+SRC_URI="http://eddelbuettel.com/dirk/code/${PN}/${PN}_${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="mysql postgres sqlite"
+
+DEPEND="dev-perl/DateManip
+ dev-perl/Statistics-Descriptive
+ dev-perl/Finance-YahooQuote
+ dev-perl/libwww-perl
+ mysql? ( dev-perl/DBD-mysql )
+ sqlite? ( dev-perl/DBD-SQLite )
+ postgres? ( dev-perl/DBD-Pg )"
+
+RDEPEND="${DEPEND} dev-perl/DBI"
+mydoc="README example.beancounterrc beancounter_*.txt "
+
+src_install() {
+ perl-module_src_install
+ # rm unwanted READMEs
+ rm "${D}"usr/share/doc/${PF}/{README.Debian,README.non-gnu} || die
+}
diff --git a/app-misc/beancounter/metadata.xml b/app-misc/beancounter/metadata.xml
new file mode 100644
index 000000000000..5ff3359131f4
--- /dev/null
+++ b/app-misc/beancounter/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>
+ <email>maintainer-needed@gentoo.org</email>
+ </maintainer>
+ <longdescription lang="en">
+ Finance performance calculation engine with data acquisition (Yahoo! Finance)
+ and SQL backend support.
+ </longdescription>
+</pkgmetadata>
diff --git a/app-misc/beanstalkd/Manifest b/app-misc/beanstalkd/Manifest
new file mode 100644
index 000000000000..20e2fc516e9c
--- /dev/null
+++ b/app-misc/beanstalkd/Manifest
@@ -0,0 +1,3 @@
+DIST beanstalkd-1.10.tar.gz 66243 SHA256 923b1e195e168c2a91adcc75371231c26dcf23868ed3e0403cd4b1d662a52d59 SHA512 db85e4a32c686330e50d64d497a39bb9806de42a2c2d2c84eb260ae8cfad91b4c99eef6a8f0ab3e62d0ca71a31837778ec68a4299899ac5a9d94a5a4403d673b WHIRLPOOL 3074fb2df0aa835d46d95a90a573bfe2afd1d316da6c9739d37d1eafb85b987ef12c3113f2bc51afed014e151e5eb064922b46c16a92e3113480b1c5ec8dc50c
+DIST beanstalkd-1.4.6.tar.gz 140858 SHA256 a03aca5ccd87c2a1bb6cdaf38d3463c9f987090f4eb6cd9c7f6e03d3d54d3ac9 SHA512 07cd77540367c25cdd16bea6f46a5e43162a13d59e96a6821465bfc950e6fbac2e28e0e1cb0f5b6d1483b493b59daad68c0d99672edeeb4f709d6b835d76eb64 WHIRLPOOL cd7f35ad0432000894a186803b01dbf963146fcb5473fc185dd918987a3235df98fbc743d6bcf80b7d364532b772fbde723e13c649d15fa40870c256e6ea542a
+DIST beanstalkd-1.9.tar.gz 63794 SHA256 158e6d6090c0afac7ee17b9f22713506b3e870dc04a738517282e2e262afb9eb SHA512 0b8ba803b511bc4a3275d23f2076d8129107df3756d0c991460693a6999a895da4fe84c7931afe153ea17245d7c280f92df977cc35e715d7997e54a861b547f4 WHIRLPOOL 13517e18b2b1b4517eda6f57645c3d078f20c73d450f96803939b5dc43433364a5214a3a6b39568a0bb82a53fc92195cd28ecf1699e963b8579b121c94b7d667
diff --git a/app-misc/beanstalkd/beanstalkd-1.10.ebuild b/app-misc/beanstalkd/beanstalkd-1.10.ebuild
new file mode 100644
index 000000000000..e9138b9bb0b1
--- /dev/null
+++ b/app-misc/beanstalkd/beanstalkd-1.10.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils systemd toolchain-funcs user
+
+DESCRIPTION="A simple, fast work queue"
+HOMEPAGE="http://kr.github.io/beanstalkd/"
+SRC_URI="https://github.com/kr/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="amd64 ~mips x86 ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x64-macos ~x86-macos"
+
+RDEPEND=""
+DEPEND=""
+
+IUSE=""
+
+DOCS=( README News docs/protocol.txt )
+
+pkg_setup() {
+ enewuser beanstalk -1 -1 /var/lib/beanstalkd daemon
+}
+
+src_prepare() {
+ sed -i -e "s/CFLAGS=/CFLAGS?=/" \
+ -e "s/LDLIBS/LDFLAGS/" \
+ -e "s/LDFLAGS=/LDFLAGS?=/" Makefile
+}
+
+src_compile() {
+ emake CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" CC="$(tc-getCC)" LD="$(tc-getLD)"
+}
+
+src_install() {
+ dobin beanstalkd
+
+ DATADIR=/var/lib/${PN}
+ dodir ${DATADIR}
+ fowners beanstalk:daemon ${DATADIR}
+
+ doman doc/"${PN}".1
+
+ newconfd "${FILESDIR}/conf-1.9" beanstalkd
+ newinitd "${FILESDIR}/init-1.9" beanstalkd
+
+ systemd_dounit "${S}/adm/systemd/${PN}".{service,socket}
+}
diff --git a/app-misc/beanstalkd/beanstalkd-1.4.6-r1.ebuild b/app-misc/beanstalkd/beanstalkd-1.4.6-r1.ebuild
new file mode 100644
index 000000000000..49926bfa2593
--- /dev/null
+++ b/app-misc/beanstalkd/beanstalkd-1.4.6-r1.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="3"
+
+inherit eutils user
+
+DESCRIPTION="A fast, distributed, in-memory workqueue service"
+HOMEPAGE="http://xph.us/software/beanstalkd/"
+SRC_URI="http://xph.us/dist/beanstalkd/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 ~mips x86 ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x64-macos ~x86-macos"
+
+RDEPEND="dev-libs/libevent"
+DEPEND="${RDEPEND}
+ test? ( dev-lang/python )"
+
+IUSE="debug test"
+
+pkg_setup() {
+ enewuser beanstalk -1 -1 /var/lib/beanstalkd daemon
+}
+
+src_prepare() {
+ epatch "$FILESDIR/beanstalkd-werror-v2.patch"
+ epatch "$FILESDIR/beanstalkd-dbgprintf.patch"
+}
+
+src_configure() {
+ econf \
+ --docdir="${EPREFIX}"/usr/share/${PF} \
+ --with-event="${EPREFIX}"/usr \
+ $(use_enable debug)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed."
+
+ DATADIR=/var/lib/${PN}
+ dodir ${DATADIR} || die "Install failed"
+ fowners beanstalk:daemon ${DATADIR}
+
+ dodoc README TODO doc/*.txt
+
+ newconfd "${FILESDIR}/conf-1.4.2" beanstalkd
+ newinitd "${FILESDIR}/init-${PV}" beanstalkd
+}
diff --git a/app-misc/beanstalkd/beanstalkd-1.9-r1.ebuild b/app-misc/beanstalkd/beanstalkd-1.9-r1.ebuild
new file mode 100644
index 000000000000..30f9e1ea2e8a
--- /dev/null
+++ b/app-misc/beanstalkd/beanstalkd-1.9-r1.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils systemd toolchain-funcs user
+
+DESCRIPTION="A simple, fast work queue"
+HOMEPAGE="http://kr.github.io/beanstalkd/"
+SRC_URI="https://github.com/kr/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="amd64 ~mips x86 ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x64-macos ~x86-macos"
+
+RDEPEND=""
+DEPEND=""
+
+IUSE=""
+
+DOCS=( README News docs/protocol.txt )
+
+pkg_setup() {
+ enewuser beanstalk -1 -1 /var/lib/beanstalkd daemon
+}
+
+src_prepare() {
+ sed -i -e "s/CFLAGS=/CFLAGS?=/" \
+ -e "s/LDLIBS/LDFLAGS/" \
+ -e "s/LDFLAGS=/LDFLAGS?=/" Makefile
+}
+
+src_compile() {
+ emake CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" CC="$(tc-getCC)" LD="$(tc-getLD)"
+}
+
+src_install() {
+ dobin beanstalkd
+
+ DATADIR=/var/lib/${PN}
+ dodir ${DATADIR}
+ fowners beanstalk:daemon ${DATADIR}
+
+ doman doc/"${PN}".1
+
+ newconfd "${FILESDIR}/conf-${PV}" beanstalkd
+ newinitd "${FILESDIR}/init-${PV}" beanstalkd
+
+ systemd_dounit "${S}/adm/systemd/${PN}".{service,socket}
+}
diff --git a/app-misc/beanstalkd/files/beanstalkd-dbgprintf.patch b/app-misc/beanstalkd/files/beanstalkd-dbgprintf.patch
new file mode 100644
index 000000000000..91d418e5f1ba
--- /dev/null
+++ b/app-misc/beanstalkd/files/beanstalkd-dbgprintf.patch
@@ -0,0 +1,110 @@
+diff -Naur beanstalkd-1.4.6.orig/prot.c beanstalkd-1.4.6/prot.c
+--- beanstalkd-1.4.6.orig/prot.c 2010-05-23 03:37:28.000000000 -0400
++++ beanstalkd-1.4.6/prot.c 2011-01-10 19:44:05.000000000 -0500
+@@ -305,7 +305,7 @@
+ c->reply_len = len;
+ c->reply_sent = 0;
+ c->state = state;
+- dprintf("sending reply: %.*s", len, line);
++ dbgprintf("sending reply: %.*s", len, line);
+ }
+
+ #define reply_msg(c,m) reply((c),(m),CONSTSTRLEN(m),STATE_SENDWORD)
+@@ -382,10 +382,10 @@
+ size_t i;
+ job j = NULL, candidate;
+
+- dprintf("tubes.used = %zu\n", tubes.used);
++ dbgprintf("tubes.used = %zu\n", tubes.used);
+ for (i = 0; i < tubes.used; i++) {
+ t = tubes.items[i];
+- dprintf("for %s t->waiting.used=%zu t->ready.used=%d t->pause=%" PRIu64 "\n",
++ dbgprintf("for %s t->waiting.used=%zu t->ready.used=%d t->pause=%" PRIu64 "\n",
+ t->name, t->waiting.used, t->ready.used, t->pause);
+ if (t->pause) {
+ if (t->deadline_at > now) continue;
+@@ -395,7 +395,7 @@
+ candidate = pq_peek(&t->ready);
+ if (!j || job_pri_cmp(candidate, j) < 0) j = candidate;
+ }
+- dprintf("i = %zu, tubes.used = %zu\n", i, tubes.used);
++ dbgprintf("i = %zu, tubes.used = %zu\n", i, tubes.used);
+ }
+
+ return j;
+@@ -407,9 +407,9 @@
+ job j;
+ usec now = now_usec();
+
+- dprintf("processing queue\n");
++ dbgprintf("processing queue\n");
+ while ((j = next_eligible_job(now))) {
+- dprintf("got eligible job %llu in %s\n", j->id, j->tube->name);
++ dbgprintf("got eligible job %llu in %s\n", j->id, j->tube->name);
+ j = pq_take(&j->tube->ready);
+ ready_ct--;
+ if (j->pri < URGENT_THRESHOLD) {
+@@ -462,7 +462,7 @@
+
+ if (j && (!deadline_at || j->deadline_at < deadline_at)) deadline_at = j->deadline_at;
+
+- dprintf("deadline_at=%" PRIu64 "\n", deadline_at);
++ dbgprintf("deadline_at=%" PRIu64 "\n", deadline_at);
+ set_main_timeout(deadline_at);
+ }
+
+@@ -1178,7 +1178,7 @@
+ }
+
+ type = which_cmd(c);
+- dprintf("got %s command: \"%s\"\n", op_names[(int) type], c->cmd);
++ dbgprintf("got %s command: \"%s\"\n", op_names[(int) type], c->cmd);
+
+ switch (type) {
+ case OP_PUT:
+@@ -1578,10 +1578,10 @@
+ }
+
+ if (should_timeout) {
+- dprintf("conn_waiting(%p) = %d\n", c, conn_waiting(c));
++ dbgprintf("conn_waiting(%p) = %d\n", c, conn_waiting(c));
+ return reply_msg(remove_waiting_conn(c), MSG_DEADLINE_SOON);
+ } else if (conn_waiting(c) && c->pending_timeout >= 0) {
+- dprintf("conn_waiting(%p) = %d\n", c, conn_waiting(c));
++ dbgprintf("conn_waiting(%p) = %d\n", c, conn_waiting(c));
+ c->pending_timeout = -1;
+ return reply_msg(remove_waiting_conn(c), MSG_TIMED_OUT);
+ }
+@@ -1773,7 +1773,7 @@
+ for (i = 0; i < tubes.used; i++) {
+ t = tubes.items[i];
+
+- dprintf("h_delay for %s t->waiting.used=%zu t->ready.used=%d t->pause=%" PRIu64 "\n",
++ dbgprintf("h_delay for %s t->waiting.used=%zu t->ready.used=%d t->pause=%" PRIu64 "\n",
+ t->name, t->waiting.used, t->ready.used, t->pause);
+ if (t->pause && t->deadline_at <= now) {
+ t->pause = 0;
+@@ -1811,7 +1811,7 @@
+ c = make_conn(cfd, STATE_WANTCOMMAND, default_tube, default_tube);
+ if (!c) return twarnx("make_conn() failed"), close(cfd), brake();
+
+- dprintf("accepted conn, fd=%d\n", cfd);
++ dbgprintf("accepted conn, fd=%d\n", cfd);
+ r = conn_set_evq(c, EV_READ | EV_PERSIST, (evh) h_conn);
+ if (r == -1) return twarnx("conn_set_evq() failed"), close(cfd), brake();
+ }
+diff -Naur beanstalkd-1.4.6.orig/util.h beanstalkd-1.4.6/util.h
+--- beanstalkd-1.4.6.orig/util.h 2010-05-22 17:23:16.000000000 -0400
++++ beanstalkd-1.4.6/util.h 2011-01-10 19:43:44.000000000 -0500
+@@ -43,9 +43,9 @@
+ __FILE__, __LINE__, __func__, ##args)
+
+ #ifdef DEBUG
+-#define dprintf(fmt, args...) ((void) fprintf(stderr, fmt, ##args))
++#define dbgprintf(fmt, args...) ((void) fprintf(stderr, fmt, ##args))
+ #else
+-#define dprintf(fmt, ...) ((void) 0)
++#define dbgprintf(fmt, ...) ((void) 0)
+ #endif
+
+ typedef uint64_t usec;
diff --git a/app-misc/beanstalkd/files/beanstalkd-werror-v2.patch b/app-misc/beanstalkd/files/beanstalkd-werror-v2.patch
new file mode 100644
index 000000000000..808e82b21362
--- /dev/null
+++ b/app-misc/beanstalkd/files/beanstalkd-werror-v2.patch
@@ -0,0 +1,14 @@
+diff --git a/configure b/configure
+index 2f29879..50136fb 100755
+--- a/configure
++++ b/configure
+@@ -3569,7 +3569,7 @@ fi
+
+
+
+- list="-Wall -Werror"
++ list="-Wall"
+ flags_supported=""
+ flags_unsupported=""
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supported compiler flags" >&5
+
diff --git a/app-misc/beanstalkd/files/conf b/app-misc/beanstalkd/files/conf
new file mode 100644
index 000000000000..f9a2e3a8fc45
--- /dev/null
+++ b/app-misc/beanstalkd/files/conf
@@ -0,0 +1,15 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+BEANSTALKD_BINARY="/usr/bin/beanstalkd"
+PIDFILE="/var/run/beanstalkd.pid"
+
+# User to run as
+USER="beanstalk"
+
+# Port to listen on
+PORT="11300"
+
+# Address to listen on
+ADDR="127.0.0.1"
diff --git a/app-misc/beanstalkd/files/conf-1.4.2 b/app-misc/beanstalkd/files/conf-1.4.2
new file mode 100644
index 000000000000..f7e517f7706e
--- /dev/null
+++ b/app-misc/beanstalkd/files/conf-1.4.2
@@ -0,0 +1,18 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+BEANSTALKD_BINARY="/usr/bin/beanstalkd"
+PIDFILE="/var/run/beanstalkd.pid"
+
+# User to run as
+USER="beanstalk"
+
+# Port to listen on
+PORT="11300"
+
+# Address to listen on
+ADDR="127.0.0.1"
+
+# Datadir (where to store queue)
+DATADIR="/var/lib/beanstalkd"
diff --git a/app-misc/beanstalkd/files/conf-1.9 b/app-misc/beanstalkd/files/conf-1.9
new file mode 100644
index 000000000000..6d4365121902
--- /dev/null
+++ b/app-misc/beanstalkd/files/conf-1.9
@@ -0,0 +1,21 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+BEANSTALKD_BINARY="/usr/bin/beanstalkd"
+PIDFILE="/run/beanstalkd.pid"
+
+# User to run as
+USER="beanstalk"
+
+# Port to listen on
+PORT="11300"
+
+# Address to listen on
+ADDR="127.0.0.1"
+
+# Datadir (where to store queue)
+DATADIR="/var/lib/beanstalkd"
+
+# Max job size
+JOB_SIZE="65536"
diff --git a/app-misc/beanstalkd/files/init b/app-misc/beanstalkd/files/init
new file mode 100644
index 000000000000..7d2e7e909df8
--- /dev/null
+++ b/app-misc/beanstalkd/files/init
@@ -0,0 +1,25 @@
+#!/sbin/runscript
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting beanstalkd"
+ /sbin/start-stop-daemon --start \
+ --pidfile ${PIDFILE} \
+ --exec ${BEANSTALKD_BINARY} \
+ -- -d -p ${PORT} -l ${ADDR} -u ${USER}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping beanstalkd"
+ start-stop-daemon --stop --quiet \
+ --pidfile ${PIDFILE} \
+ --exec ${BEANSTALKD_BINARY}
+ eend $?
+}
diff --git a/app-misc/beanstalkd/files/init-1.4.6 b/app-misc/beanstalkd/files/init-1.4.6
new file mode 100644
index 000000000000..bfbb74f69864
--- /dev/null
+++ b/app-misc/beanstalkd/files/init-1.4.6
@@ -0,0 +1,26 @@
+#!/sbin/runscript
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting beanstalkd"
+ /sbin/start-stop-daemon --start \
+ --background \
+ --pidfile ${PIDFILE} --make-pidfile \
+ --exec ${BEANSTALKD_BINARY} \
+ -- -b ${DATADIR} -p ${PORT} -l ${ADDR} -u ${USER}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping beanstalkd"
+ start-stop-daemon --stop --quiet \
+ --pidfile ${PIDFILE} \
+ --exec ${BEANSTALKD_BINARY}
+ eend $?
+}
diff --git a/app-misc/beanstalkd/files/init-1.7 b/app-misc/beanstalkd/files/init-1.7
new file mode 100644
index 000000000000..6de235504a0e
--- /dev/null
+++ b/app-misc/beanstalkd/files/init-1.7
@@ -0,0 +1,26 @@
+#!/sbin/runscript
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of MIT
+# $Id$
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting beanstalkd"
+ /sbin/start-stop-daemon --start \
+ --background \
+ --pidfile ${PIDFILE} --make-pidfile \
+ --exec ${BEANSTALKD_BINARY} \
+ -- -b ${DATADIR} -p ${PORT} -l ${ADDR} -u ${USER}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping beanstalkd"
+ start-stop-daemon --stop --quiet \
+ --pidfile ${PIDFILE} \
+ --exec ${BEANSTALKD_BINARY}
+ eend $?
+} \ No newline at end of file
diff --git a/app-misc/beanstalkd/files/init-1.8 b/app-misc/beanstalkd/files/init-1.8
new file mode 100644
index 000000000000..6de235504a0e
--- /dev/null
+++ b/app-misc/beanstalkd/files/init-1.8
@@ -0,0 +1,26 @@
+#!/sbin/runscript
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of MIT
+# $Id$
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting beanstalkd"
+ /sbin/start-stop-daemon --start \
+ --background \
+ --pidfile ${PIDFILE} --make-pidfile \
+ --exec ${BEANSTALKD_BINARY} \
+ -- -b ${DATADIR} -p ${PORT} -l ${ADDR} -u ${USER}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping beanstalkd"
+ start-stop-daemon --stop --quiet \
+ --pidfile ${PIDFILE} \
+ --exec ${BEANSTALKD_BINARY}
+ eend $?
+} \ No newline at end of file
diff --git a/app-misc/beanstalkd/files/init-1.9 b/app-misc/beanstalkd/files/init-1.9
new file mode 100644
index 000000000000..2b86c7e6f0e5
--- /dev/null
+++ b/app-misc/beanstalkd/files/init-1.9
@@ -0,0 +1,26 @@
+#!/sbin/runscript
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of MIT
+# $Id$
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting beanstalkd"
+ /sbin/start-stop-daemon --start \
+ --background \
+ --pidfile ${PIDFILE} --make-pidfile \
+ --exec ${BEANSTALKD_BINARY} \
+ -- -b ${DATADIR} -p ${PORT} -l ${ADDR} -u ${USER} -z ${JOB_SIZE}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping beanstalkd"
+ start-stop-daemon --stop --quiet \
+ --pidfile ${PIDFILE} \
+ --exec ${BEANSTALKD_BINARY}
+ eend $?
+}
diff --git a/app-misc/beanstalkd/metadata.xml b/app-misc/beanstalkd/metadata.xml
new file mode 100644
index 000000000000..2748ce39ae60
--- /dev/null
+++ b/app-misc/beanstalkd/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>
+ <email>patrick@gentoo.org</email>
+ <name>Patrick Lauer</name>
+ </maintainer>
+ <maintainer>
+ <email>bugs@bergstroem.nu</email>
+ <name>Johan Bergstroem</name>
+ </maintainer>
+ <longdescription lang="en">
+beanstalked is a fast distributed workqueue service
+</longdescription>
+ <upstream>
+ <remote-id type="github">kr/beanstalkd</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/beep/Manifest b/app-misc/beep/Manifest
new file mode 100644
index 000000000000..2df976f6f696
--- /dev/null
+++ b/app-misc/beep/Manifest
@@ -0,0 +1,2 @@
+DIST beep-1.2.2.tar.gz 18460 SHA256 5c0445dac43950b7c7c3f235c6fb21f620ab3fd2f3aafaf09896e5730fcf49a1 SHA512 85e2288fc01322ad2b9ad59063ee61cc94edc6b712ef1af2f86bd7e52e08cfaa81a4d8aafd729791eb3e776dbaf8fff7298ccafb758a716a3bdc9a3c385a38e1 WHIRLPOOL 845899b7f2122128833bb0b23a4eb2df576e6239e1c6df80f1abc1d1b5fddb8e80e5a500ba7bfc9638e69e5d2366aea5afdcd15c86d71304c6afe8ba1cf12868
+DIST beep-1.3.tar.gz 19344 SHA256 59acef7a987de5557cefd1a904666cc2691f132929af39e65450b182a581ec2d SHA512 3f71146202208fa0c0cda360d125dd972ea003cf8cd62da21d67eb544c92f7b82640e7ce7c3835cbc65c75909a882edfa54dbd8d8b748d6f243711ea331477fd WHIRLPOOL 23ddc6e456803b82bf84b1022e5eed39488db6f4cd4410e77e55545b3e4c6256979dfc5587367c8206ea069ac4fedc4d5fa81406ea66c6c0c79fb9b428c339c7
diff --git a/app-misc/beep/beep-1.2.2-r1.ebuild b/app-misc/beep/beep-1.2.2-r1.ebuild
new file mode 100644
index 000000000000..3a1cf3038cec
--- /dev/null
+++ b/app-misc/beep/beep-1.2.2-r1.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit eutils base toolchain-funcs
+
+DESCRIPTION="The advanced PC speaker beeper"
+HOMEPAGE="http://www.johnath.com/beep/"
+SRC_URI="mirror://gentoo/${P}.tar.gz http://www.johnath.com/beep/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm ppc ppc64 sparc x86"
+IUSE=""
+
+PATCHES=( ${FILESDIR}/${P}-{Makefile,nosuid}.patch )
+
+pkg_setup() {
+ tc-export CC
+}
+
+src_install() {
+ dobin beep
+ fperms 0711 /usr/bin/beep
+ doman beep.1.gz
+ dodoc CHANGELOG CREDITS README
+}
diff --git a/app-misc/beep/beep-1.3.ebuild b/app-misc/beep/beep-1.3.ebuild
new file mode 100644
index 000000000000..f4ef53689687
--- /dev/null
+++ b/app-misc/beep/beep-1.3.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit eutils base toolchain-funcs
+
+DESCRIPTION="The advanced PC speaker beeper"
+HOMEPAGE="http://www.johnath.com/beep/"
+SRC_URI="http://www.johnath.com/beep/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86"
+IUSE=""
+
+PATCHES=( ${FILESDIR}/${PN}-1.2.2-Makefile.patch )
+
+pkg_setup() {
+ tc-export CC
+}
+
+src_install() {
+ dobin beep
+ fperms 0711 /usr/bin/beep
+ doman beep.1.gz
+ dodoc CHANGELOG CREDITS README
+}
diff --git a/app-misc/beep/files/beep-1.2.2-Makefile.patch b/app-misc/beep/files/beep-1.2.2-Makefile.patch
new file mode 100644
index 000000000000..6497323b9235
--- /dev/null
+++ b/app-misc/beep/files/beep-1.2.2-Makefile.patch
@@ -0,0 +1,26 @@
+--- /var/tmp/portage/app-misc/beep-1.2.2-r1/work/beep-1.2.2/Makefile 2002-03-29 09:37:22.000000000 -0800
++++ /tmp/Makefile 2009-03-27 22:19:18.000000000 -0700
+@@ -1,17 +1,18 @@
+-CC=gcc
+-FLAGS=-Wall
++CC ?= gcc
++LDFLAGS ?=
++CFLAGS ?= -Wall
+ EXEC_NAME=beep
+ INSTALL_DIR=/usr/bin
+ MAN_FILE=beep.1.gz
+-MAN_DIR=/usr/man/man1
++MAN_DIR=/usr/share/man/man1
+
+ default : beep
+
+ clean :
+- rm ${EXEC_NAME}
++ rm -f ${EXEC_NAME}
+
+ beep : beep.c
+- ${CC} ${FLAGS} -o ${EXEC_NAME} beep.c
++ ${CC} ${CFLAGS} ${LDFLAGS} -o ${EXEC_NAME} beep.c
+
+ install :
+ cp ${EXEC_NAME} ${INSTALL_DIR}
diff --git a/app-misc/beep/files/beep-1.2.2-nosuid.patch b/app-misc/beep/files/beep-1.2.2-nosuid.patch
new file mode 100644
index 000000000000..33e6affa9ffb
--- /dev/null
+++ b/app-misc/beep/files/beep-1.2.2-nosuid.patch
@@ -0,0 +1,33 @@
+--- beep.c.orig 2005-07-23 13:37:01.000000000 -0400
++++ beep.c 2005-07-23 14:00:55.000000000 -0400
+@@ -218,22 +218,20 @@
+ int i; /* loop counter */
+
+ /* try to snag the console */
+- if((console_fd = open("/dev/console", O_WRONLY)) == -1) {
+- fprintf(stderr, "Could not open /dev/console for writing.\n");
+- printf("\a"); /* Output the only beep we can, in an effort to fall back on usefulness */
+- perror("open");
+- exit(1);
+- }
++ console_fd = open("/dev/console", O_WRONLY);
+
+ /* Beep */
+ for (i = 0; i < parms.reps; i++) { /* start beep */
+- if(ioctl(console_fd, KIOCSOUND, (int)(CLOCK_TICK_RATE/parms.freq)) < 0) {
+- printf("\a"); /* Output the only beep we can, in an effort to fall back on usefulness */
+- perror("ioctl");
++ if (console_fd >= 0) {
++ ioctl(console_fd, KIOCSOUND, (int)(CLOCK_TICK_RATE/parms.freq));
++ } else {
++ printf("\a"); /* Output the fall back for usefulness we don't have to be suid to work at all */
++ fflush(stdout);
+ }
+ /* Look ma, I'm not ansi C compatible! */
+ usleep(1000*parms.length); /* wait... */
+- ioctl(console_fd, KIOCSOUND, 0); /* stop beep */
++ if (console_fd >= 0)
++ ioctl(console_fd, KIOCSOUND, 0); /* stop beep */
+ if(parms.end_delay || (i+1 < parms.reps))
+ usleep(1000*parms.delay); /* wait... */
+ } /* repeat. */
diff --git a/app-misc/beep/metadata.xml b/app-misc/beep/metadata.xml
new file mode 100644
index 000000000000..f23b9cae1593
--- /dev/null
+++ b/app-misc/beep/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>shell-tools</herd>
+</pkgmetadata>
diff --git a/app-misc/bfm/Manifest b/app-misc/bfm/Manifest
new file mode 100644
index 000000000000..270fbe2b1dba
--- /dev/null
+++ b/app-misc/bfm/Manifest
@@ -0,0 +1 @@
+DIST bfm-1.2.tar.gz 193924 SHA256 09294fb40e515198095b1df0744bb4eb0cd0aebe36df81827871e73d9df7bd6b SHA512 39a9a250a8f3cf3b148c31a9fa5a89ac9a5873884dc1a98840b2f21879b30bd7cc6cc5dd9c5f7e657090a56276dbef2a72594e095aec8c05f3e003f89e91daee WHIRLPOOL 43df53a85d6ba6697f510f9cc940859cdf7f14915675b8f7cca2da176380a8ef5f18bc34e8d0b9cd6adba22888e36ecbd15d0360243ead101fa62a453387428a
diff --git a/app-misc/bfm/bfm-1.2-r1.ebuild b/app-misc/bfm/bfm-1.2-r1.ebuild
new file mode 100644
index 000000000000..e5fa4fb96573
--- /dev/null
+++ b/app-misc/bfm/bfm-1.2-r1.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+JAVA_PKG_IUSE="doc source"
+
+inherit java-pkg-2 java-ant-2
+
+DESCRIPTION="File manager and first person shooter written in Java3D, you remove files by shooting at them"
+HOMEPAGE="http://bfm.webhop.net"
+SRC_URI="http://bfm.webhop.net/releases/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND=">=virtual/jre-1.4
+ >=dev-java/sun-java3d-bin-1.3"
+DEPEND=">=virtual/jdk-1.4
+ ${RDEPEND}"
+
+src_unpack() {
+ unpack ${A}
+
+ cd "${S}"
+ cp "${FILESDIR}/${PV}-build.xml" ./build.xml
+
+ mkdir "${S}/lib" && cd "${S}/lib"
+ if has_version dev-java/sun-java3d-bin; then
+ java-pkg_jar-from sun-java3d-bin
+ elif has_version dev-java/blackdown-java3d-bin; then
+ java-pkg_jar-from blackdown-java3d-bin
+ fi
+}
+
+EANT_DOC_TARGET=""
+
+src_install() {
+ java-pkg_dojar dist/${PN}.jar
+
+ local java3d=""
+ if has_version dev-java/blackdown-java3d-bin; then
+ java3d="blackdown-java3d-bin"
+ elif has_version dev-java/sun-java3d-bin; then
+ java3d="sun-java3d-bin"
+ fi
+
+ java-pkg_dolauncher ${PN} --main Bfm
+
+ insinto /etc/bfm
+ doins "${S}/bfm.conf"
+
+ if use doc; then
+ dodoc README ChangeLog bindings NEWS || die
+ java-pkg_dohtml -r docs/*
+ fi
+ use source && java-pkg_dosrc src/*
+}
+
+pkg_postinst() {
+ elog "A system wide config file has been installed to /etc/bfm/bfm.conf"
+ elog "Copy the file to ~/.bfm/bfm.conf to set local settings"
+ echo
+ ewarn "Be sure to run bfm in safe mode if you don't want to delete files"
+}
diff --git a/app-misc/bfm/bfm-1.2-r2.ebuild b/app-misc/bfm/bfm-1.2-r2.ebuild
new file mode 100644
index 000000000000..f8d56408256a
--- /dev/null
+++ b/app-misc/bfm/bfm-1.2-r2.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+JAVA_PKG_IUSE="doc source"
+
+inherit java-pkg-2 java-ant-2
+
+DESCRIPTION="File manager and first person shooter written in Java3D, you remove files by shooting at them"
+HOMEPAGE="http://bfm.webhop.net"
+SRC_URI="http://bfm.webhop.net/releases/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+
+CDEPEND="dev-java/sun-java3d-bin:0"
+
+RDEPEND=">=virtual/jre-1.4
+ ${CDEPEND}"
+
+DEPEND=">=virtual/jdk-1.4
+ ${CDEPEND}"
+
+java_prepare() {
+ cp "${FILESDIR}"/${PVR}-build.xml ./build.xml || die
+
+ mkdir lib || die
+ pushd lib
+ java-pkg_jar-from sun-java3d-bin
+ popd
+
+ epatch "${FILESDIR}"/${PVR}-package.patch
+
+ mkdir -p net/webhop/bfm || die
+ mv src/* net/webhop/bfm/ || die
+}
+
+EANT_DOC_TARGET="docs"
+
+src_install() {
+ local java3d="sun-java3d-bin"
+
+ java-pkg_dojar dist/${PN}.jar
+ java-pkg_dolauncher ${PN} --main net.webhop.bfm.Bfm
+
+ insinto /etc/bfm
+ doins "${S}/bfm.conf"
+
+ if use doc; then
+ dodoc README ChangeLog bindings NEWS
+ java-pkg_dohtml -r docs/*
+ fi
+
+ use source && java-pkg_dosrc src/*
+}
+
+pkg_postinst() {
+ elog "A system wide config file has been installed to /etc/bfm/bfm.conf"
+ elog "Copy the file to ~/.bfm/bfm.conf to set local settings"
+ echo
+ ewarn "Be sure to run bfm in safe mode if you don't want to delete files"
+}
diff --git a/app-misc/bfm/files/1.2-build.xml b/app-misc/bfm/files/1.2-build.xml
new file mode 100644
index 000000000000..85d9b447e4dc
--- /dev/null
+++ b/app-misc/bfm/files/1.2-build.xml
@@ -0,0 +1,75 @@
+<?xml version="1.0"?>
+
+<project name="bfm" default="jar">
+ <!-- some properties -->
+ <property name="src.dir" value="src" />
+ <property name="build.dir" value="build" />
+ <property name="docs.dir" value="docs" />
+ <property name="dist.dir" value="dist" />
+ <property name="lib.dir" value="lib" />
+ <property name="jarfile" value="${dist.dir}/${ant.project.name}.jar" />
+ <property name="target.jdk" value="1.4" />
+
+ <!-- init -->
+ <target name="init">
+ <mkdir dir="${dist.dir}" />
+ <mkdir dir="${build.dir}" />
+ <mkdir dir="${docs.dir}" />
+ </target>
+
+ <!-- classpath -->
+ <path id="refcp">
+ <fileset dir="${lib.dir}">
+ <include name="**/*.jar" />
+ </fileset>
+ </path>
+
+ <!-- compile everything -->
+ <target name="compile" depends="init">
+ <mkdir dir="${build.dir}" />
+ <javac srcdir="${src.dir}"
+ destdir="${build.dir}"
+ source="${target.jdk}"
+ target="${target.jdk}"
+ classpathref="refcp" />
+
+ <copy todir="${build.dir}">
+ <fileset file="${src.dir}/data" />
+ </copy>
+ <copy todir="${build.dir}/data">
+ <fileset dir="${src.dir}/data" />
+ </copy>
+ </target>
+
+ <!-- build the jar file -->
+ <target name="jar" depends="compile">
+ <jar jarfile="${jarfile}" basedir="${build.dir}"
+ manifest="${src.dir}/data/manifest" />
+ </target>
+
+ <!-- generate javadocs -->
+ <target name="docs" depends="init">
+ <javadoc sourcepath="${src.dir}"
+ packagenames=""
+ destdir="${docs.dir}"
+ author="true"
+ version="true"
+ use="true"
+ windowtitle="${ant.project.name} API" />
+ </target>
+
+ <!-- clean up -->
+ <target name="clean">
+ <delete dir="${build.dir}" />
+ <delete dir="${docs.dir}" />
+ <delete dir="${dist.dir}" />
+ </target>
+
+ <!-- zip the sources -->
+ <target name="sourcezip">
+ <zip destfile="${dist.dir}/${ant.project.name}-src.zip">
+ <zipfileset dir="${src.dir}" />
+ </zip>
+ </target>
+
+</project>
diff --git a/app-misc/bfm/files/1.2-r2-build.xml b/app-misc/bfm/files/1.2-r2-build.xml
new file mode 100644
index 000000000000..3c056688129d
--- /dev/null
+++ b/app-misc/bfm/files/1.2-r2-build.xml
@@ -0,0 +1,75 @@
+<?xml version="1.0"?>
+
+<project name="bfm" default="jar">
+ <!-- some properties -->
+ <property name="src.dir" value="net" />
+ <property name="build.dir" value="build" />
+ <property name="docs.dir" value="docs" />
+ <property name="dist.dir" value="dist" />
+ <property name="lib.dir" value="lib" />
+ <property name="jarfile" value="${dist.dir}/${ant.project.name}.jar" />
+ <property name="target.jdk" value="1.4" />
+
+ <!-- init -->
+ <target name="init">
+ <mkdir dir="${dist.dir}" />
+ <mkdir dir="${build.dir}" />
+ <mkdir dir="${docs.dir}" />
+ </target>
+
+ <!-- classpath -->
+ <path id="refcp">
+ <fileset dir="${lib.dir}">
+ <include name="**/*.jar" />
+ </fileset>
+ </path>
+
+ <!-- compile everything -->
+ <target name="compile" depends="init">
+ <mkdir dir="${build.dir}" />
+ <javac srcdir="${src.dir}"
+ destdir="${build.dir}"
+ source="${target.jdk}"
+ target="${target.jdk}"
+ classpathref="refcp" />
+
+ <copy todir="${build.dir}">
+ <fileset file="${src.dir}/webhop/bfm/data" />
+ </copy>
+ <copy todir="${build.dir}/net/webhop/bfm/data">
+ <fileset dir="${src.dir}/webhop/bfm/data" />
+ </copy>
+ </target>
+
+ <!-- build the jar file -->
+ <target name="jar" depends="compile">
+ <jar jarfile="${jarfile}" basedir="${build.dir}"
+ manifest="${src.dir}/webhop/bfm/data/manifest" />
+ </target>
+
+ <!-- generate javadocs -->
+ <target name="docs" depends="init">
+ <javadoc sourcepath="."
+ packagenames="*"
+ destdir="${docs.dir}"
+ author="true"
+ version="true"
+ use="true"
+ windowtitle="${ant.project.name} API" />
+ </target>
+
+ <!-- clean up -->
+ <target name="clean">
+ <delete dir="${build.dir}" />
+ <delete dir="${docs.dir}" />
+ <delete dir="${dist.dir}" />
+ </target>
+
+ <!-- zip the sources -->
+ <target name="sourcezip">
+ <zip destfile="${dist.dir}/${ant.project.name}-src.zip">
+ <zipfileset dir="${src.dir}" />
+ </zip>
+ </target>
+
+</project>
diff --git a/app-misc/bfm/files/1.2-r2-package.patch b/app-misc/bfm/files/1.2-r2-package.patch
new file mode 100644
index 000000000000..7b3db3a4415d
--- /dev/null
+++ b/app-misc/bfm/files/1.2-r2-package.patch
@@ -0,0 +1,313 @@
+diff -urN a/src/Bfm.java b/src/Bfm.java
+--- a/src/Bfm.java 2005-02-22 03:07:39.000000000 +0100
++++ b/src/Bfm.java 2013-06-10 08:37:16.978094948 +0200
+@@ -17,6 +17,8 @@
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
++package net.webhop.bfm;
++
+ import java.awt.*;
+ import javax.swing.*;
+ import com.sun.j3d.utils.universe.*;
+diff -urN a/src/Blood.java b/src/Blood.java
+--- a/src/Blood.java 2005-01-08 23:45:41.000000000 +0100
++++ b/src/Blood.java 2013-06-10 08:37:16.978094948 +0200
+@@ -26,6 +26,8 @@
+ A big thank to Andrew for letting us use his code!
+ */
+
++package net.webhop.bfm;
++
+ import javax.media.j3d.*;
+ import javax.vecmath.*;
+ import com.sun.j3d.utils.image.*;
+diff -urN a/src/DroppedDynamite.java b/src/DroppedDynamite.java
+--- a/src/DroppedDynamite.java 2004-12-31 14:23:44.000000000 +0100
++++ b/src/DroppedDynamite.java 2013-06-10 08:37:16.978094948 +0200
+@@ -17,6 +17,8 @@
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
++package net.webhop.bfm;
++
+ import com.sun.j3d.utils.geometry.*;
+ import javax.media.j3d.*;
+ import javax.vecmath.*;
+diff -urN a/src/Dynamite.java b/src/Dynamite.java
+--- a/src/Dynamite.java 2005-02-18 21:24:29.000000000 +0100
++++ b/src/Dynamite.java 2013-06-10 08:37:16.978094948 +0200
+@@ -17,6 +17,8 @@
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
++package net.webhop.bfm;
++
+ import com.sun.j3d.utils.geometry.*;
+ import javax.media.j3d.*;
+ import javax.vecmath.*;
+diff -urN a/src/Explotion.java b/src/Explotion.java
+--- a/src/Explotion.java 2005-02-20 23:55:12.000000000 +0100
++++ b/src/Explotion.java 2013-06-10 08:37:16.978094948 +0200
+@@ -17,6 +17,8 @@
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
++package net.webhop.bfm;
++
+ import com.sun.j3d.utils.geometry.*;
+ import javax.media.j3d.*;
+ import javax.vecmath.*;
+diff -urN a/src/FSDefault.java b/src/FSDefault.java
+--- a/src/FSDefault.java 2005-01-04 16:02:08.000000000 +0100
++++ b/src/FSDefault.java 2013-06-10 08:37:16.978094948 +0200
+@@ -20,6 +20,8 @@
+ /* FS stands for FileShape but is actually an transformgroup
+ containing the visuall shape of the FileObjet*/
+
++package net.webhop.bfm;
++
+ import java.awt.*;
+ import com.sun.j3d.utils.geometry.*;
+ import javax.media.j3d.*;
+diff -urN a/src/FSDocument.java b/src/FSDocument.java
+--- a/src/FSDocument.java 2005-01-04 16:02:08.000000000 +0100
++++ b/src/FSDocument.java 2013-06-10 08:37:16.978094948 +0200
+@@ -17,6 +17,8 @@
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
++package net.webhop.bfm;
++
+ import java.awt.*;
+ import com.sun.j3d.utils.geometry.*;
+ import javax.media.j3d.*;
+diff -urN a/src/FSPicture.java b/src/FSPicture.java
+--- a/src/FSPicture.java 2005-02-22 02:29:54.000000000 +0100
++++ b/src/FSPicture.java 2013-06-10 08:37:16.978094948 +0200
+@@ -17,6 +17,8 @@
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
++package net.webhop.bfm;
++
+ import java.awt.*;
+ import com.sun.j3d.utils.geometry.*;
+ import javax.media.j3d.*;
+diff -urN a/src/FSVideo.java b/src/FSVideo.java
+--- a/src/FSVideo.java 2005-01-04 16:02:08.000000000 +0100
++++ b/src/FSVideo.java 2013-06-10 08:37:16.978094948 +0200
+@@ -17,6 +17,8 @@
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
++package net.webhop.bfm;
++
+ import java.awt.*;
+ import com.sun.j3d.utils.geometry.*;
+ import javax.media.j3d.*;
+diff -urN a/src/FileObject.java b/src/FileObject.java
+--- a/src/FileObject.java 2005-02-20 23:55:12.000000000 +0100
++++ b/src/FileObject.java 2013-06-10 08:37:16.978094948 +0200
+@@ -17,6 +17,8 @@
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
++package net.webhop.bfm;
++
+ import java.awt.*;
+ import com.sun.j3d.utils.geometry.*;
+ import javax.media.j3d.*;
+diff -urN a/src/GrapplingHook.java b/src/GrapplingHook.java
+--- a/src/GrapplingHook.java 2005-01-03 06:03:50.000000000 +0100
++++ b/src/GrapplingHook.java 2013-06-10 08:37:16.978094948 +0200
+@@ -17,6 +17,8 @@
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
++package net.webhop.bfm;
++
+ import com.sun.j3d.utils.geometry.*;
+ import javax.media.j3d.*;
+ import javax.vecmath.*;
+diff -urN a/src/Hud.java b/src/Hud.java
+--- a/src/Hud.java 2005-02-21 19:14:18.000000000 +0100
++++ b/src/Hud.java 2013-06-10 08:37:16.978094948 +0200
+@@ -17,6 +17,8 @@
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
++package net.webhop.bfm;
++
+ import com.sun.j3d.utils.geometry.*;
+ import java.awt.*;
+ import javax.media.j3d.*;
+diff -urN a/src/OpenDialog.java b/src/OpenDialog.java
+--- a/src/OpenDialog.java 2005-02-21 18:36:44.000000000 +0100
++++ b/src/OpenDialog.java 2013-06-10 08:37:16.978094948 +0200
+@@ -16,6 +16,9 @@
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
++
++package net.webhop.bfm;
++
+ import javax.swing.plaf.*;
+ import java.awt.*;
+ import java.awt.event.*;
+diff -urN a/src/Pattern.java b/src/Pattern.java
+--- a/src/Pattern.java 2004-12-31 14:22:27.000000000 +0100
++++ b/src/Pattern.java 2013-06-10 08:37:16.978094948 +0200
+@@ -17,6 +17,8 @@
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
++package net.webhop.bfm;
++
+ import javax.vecmath.*;
+
+ public abstract class Pattern {
+diff -urN a/src/PatternCircle.java b/src/PatternCircle.java
+--- a/src/PatternCircle.java 2004-12-31 14:22:27.000000000 +0100
++++ b/src/PatternCircle.java 2013-06-10 08:37:16.978094948 +0200
+@@ -17,6 +17,8 @@
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
++package net.webhop.bfm;
++
+ import javax.vecmath.*;
+
+ public class PatternCircle extends Pattern {
+diff -urN a/src/PhysicsHandler.java b/src/PhysicsHandler.java
+--- a/src/PhysicsHandler.java 2005-02-21 18:36:44.000000000 +0100
++++ b/src/PhysicsHandler.java 2013-06-10 08:37:16.978094948 +0200
+@@ -17,6 +17,8 @@
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
++package net.webhop.bfm;
++
+ import javax.media.j3d.*;
+ import javax.vecmath.*;
+ import java.io.*;
+diff -urN a/src/Player.java b/src/Player.java
+--- a/src/Player.java 2005-02-21 18:30:54.000000000 +0100
++++ b/src/Player.java 2013-06-10 08:37:16.974761615 +0200
+@@ -17,6 +17,8 @@
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
++package net.webhop.bfm;
++
+ import com.sun.j3d.utils.universe.*;
+ import javax.media.j3d.*;
+ import javax.vecmath.*;
+diff -urN a/src/Rocket.java b/src/Rocket.java
+--- a/src/Rocket.java 2004-12-31 14:22:27.000000000 +0100
++++ b/src/Rocket.java 2013-06-10 08:37:16.974761615 +0200
+@@ -17,6 +17,8 @@
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
++package net.webhop.bfm;
++
+ import com.sun.j3d.utils.geometry.*;
+ import javax.media.j3d.*;
+ import javax.vecmath.*;
+diff -urN a/src/RocketLauncher.java b/src/RocketLauncher.java
+--- a/src/RocketLauncher.java 2005-01-08 01:22:40.000000000 +0100
++++ b/src/RocketLauncher.java 2013-06-10 08:37:16.974761615 +0200
+@@ -17,6 +17,8 @@
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
++package net.webhop.bfm;
++
+ import com.sun.j3d.utils.geometry.*;
+ import javax.media.j3d.*;
+ import javax.vecmath.*;
+diff -urN a/src/Room.java b/src/Room.java
+--- a/src/Room.java 2005-02-20 23:55:12.000000000 +0100
++++ b/src/Room.java 2013-06-10 08:37:16.974761615 +0200
+@@ -17,6 +17,8 @@
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
++package net.webhop.bfm;
++
+ import javax.media.j3d.*;
+ import javax.vecmath.*;
+ import java.io.*;
+diff -urN a/src/RoomObject.java b/src/RoomObject.java
+--- a/src/RoomObject.java 2005-02-20 23:55:12.000000000 +0100
++++ b/src/RoomObject.java 2013-06-10 08:37:16.974761615 +0200
+@@ -17,6 +17,8 @@
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
++package net.webhop.bfm;
++
+ import javax.media.j3d.*;
+
+ public abstract class RoomObject extends BranchGroup {
+diff -urN a/src/Shotgun.java b/src/Shotgun.java
+--- a/src/Shotgun.java 2005-01-08 01:22:40.000000000 +0100
++++ b/src/Shotgun.java 2013-06-10 08:37:16.974761615 +0200
+@@ -17,6 +17,8 @@
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
++package net.webhop.bfm;
++
+ import com.sun.j3d.utils.geometry.*;
+ import javax.media.j3d.*;
+ import javax.vecmath.*;
+diff -urN a/src/SniperRifle.java b/src/SniperRifle.java
+--- a/src/SniperRifle.java 2005-02-20 18:16:14.000000000 +0100
++++ b/src/SniperRifle.java 2013-06-10 08:37:16.974761615 +0200
+@@ -17,6 +17,8 @@
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
++package net.webhop.bfm;
++
+ import com.sun.j3d.utils.geometry.*;
+ import javax.media.j3d.*;
+ import javax.vecmath.*;
+diff -urN a/src/Spear.java b/src/Spear.java
+--- a/src/Spear.java 2005-01-03 02:00:41.000000000 +0100
++++ b/src/Spear.java 2013-06-10 08:37:16.974761615 +0200
+@@ -17,6 +17,8 @@
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
++package net.webhop.bfm;
++
+ import com.sun.j3d.utils.geometry.*;
+ import javax.media.j3d.*;
+ import javax.vecmath.*;
+diff -urN a/src/Wall.java b/src/Wall.java
+--- a/src/Wall.java 2005-01-03 20:40:55.000000000 +0100
++++ b/src/Wall.java 2013-06-10 08:37:16.974761615 +0200
+@@ -17,6 +17,8 @@
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
++package net.webhop.bfm;
++
+ import java.awt.*;
+ import com.sun.j3d.utils.geometry.*;
+ import javax.media.j3d.*;
+diff -urN a/src/Weapon.java b/src/Weapon.java
+--- a/src/Weapon.java 2005-02-21 18:36:44.000000000 +0100
++++ b/src/Weapon.java 2013-06-10 08:37:16.974761615 +0200
+@@ -17,6 +17,8 @@
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
++package net.webhop.bfm;
++
+ import javax.media.j3d.*;
+ import javax.vecmath.*;
+ import com.sun.j3d.utils.picking.*;
diff --git a/app-misc/bfm/metadata.xml b/app-misc/bfm/metadata.xml
new file mode 100644
index 000000000000..05f7df690ca1
--- /dev/null
+++ b/app-misc/bfm/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>java</herd>
+
+<longdescription>
+ BFM, the Brutal File Manager is a combined file manager and first
+ person shooter game. The basic idea is to represent different folders
+ on your computer as rooms in a 3D environment. Then, armed to your
+ teeths you go through these rooms and delete files by shooting at them.
+</longdescription>
+
+</pkgmetadata>
diff --git a/app-misc/bfr/Manifest b/app-misc/bfr/Manifest
new file mode 100644
index 000000000000..9b605cf62a64
--- /dev/null
+++ b/app-misc/bfr/Manifest
@@ -0,0 +1 @@
+DIST bfr-1.6.tar.bz2 81002 SHA256 9e1168f00a166cb99eb36f9a0ba4f8418919b4ffb9f1841b917426b9b5764d39 SHA512 19939218029219cc328e3efb8e799bb8c755ccff7b8cb81ba0c735d499a48f581aa42322045fdbd153dcfdb8792e84d9fddbfba9e9c5d94675e2830163936762 WHIRLPOOL 336e88b51a45ff065c9dd3ce691574670633b106c4a818441a339463b69562a9cc910ee06bf39e7f57088541b02fe29c46399de87db0bb56d1e8ccc178c62780
diff --git a/app-misc/bfr/bfr-1.6-r2.ebuild b/app-misc/bfr/bfr-1.6-r2.ebuild
new file mode 100644
index 000000000000..5e35149245ad
--- /dev/null
+++ b/app-misc/bfr/bfr-1.6-r2.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="General-purpose command-line pipe buffer"
+HOMEPAGE="http://www.glines.org/software/bfr"
+SRC_URI="http://www.glines.org/bin/pk/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc ppc64 sparc x86"
+
+DEPEND="dev-lang/perl"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-perl.patch
+ tc-export CC
+}
diff --git a/app-misc/bfr/files/bfr-1.6-perl.patch b/app-misc/bfr/files/bfr-1.6-perl.patch
new file mode 100644
index 000000000000..b2483fd54eb8
--- /dev/null
+++ b/app-misc/bfr/files/bfr-1.6-perl.patch
@@ -0,0 +1,28 @@
+--- old/bfr.pod 2004-03-03 15:38:53.000000000 +0100
++++ new/bfr.pod 2014-10-12 06:53:49.011697801 +0200
+@@ -176,8 +176,12 @@
+
+ =back
+
++=back
++
+ =head2 BUFPLAY SPECIFIC OPTIONS
+
++=over 2
++
+ =item
+
+ B<-s> | B<--speed>
+@@ -226,8 +230,12 @@
+
+ =back
+
++=back
++
+ =head2 DEBUG SPECIFIC OPTIONS
+
++=over 2
++
+ =item
+
+ B<-d> | B<--debug>
diff --git a/app-misc/bfr/metadata.xml b/app-misc/bfr/metadata.xml
new file mode 100644
index 000000000000..f23b9cae1593
--- /dev/null
+++ b/app-misc/bfr/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>shell-tools</herd>
+</pkgmetadata>
diff --git a/app-misc/bgrep/Manifest b/app-misc/bgrep/Manifest
new file mode 100644
index 000000000000..65783f0296ad
--- /dev/null
+++ b/app-misc/bgrep/Manifest
@@ -0,0 +1 @@
+DIST tmbinc-bgrep-49b098b.tar.gz 3386 SHA256 036e2843cc33170e8ee9aa640055f7e4c37d7268ace59fd23cfa19d420752c70 SHA512 18a0161fe23a04d36bbfe67712a90b3d30c4cca95fed023773b0a1eda5fc1c284996d9669eec256a9aacc7019297f96c3d4fe69c240595bcdcc3a8b7c1bea990 WHIRLPOOL e6f9ac1efb5730d4e32bb707148bd331adadaccd3a468a3157705f2667c0797677ece018f8c20db1df0862cf7a1d351716c0ae845d60e826b786d0aab88102fb
diff --git a/app-misc/bgrep/bgrep-0_p20110121.ebuild b/app-misc/bgrep/bgrep-0_p20110121.ebuild
new file mode 100644
index 000000000000..32c012881579
--- /dev/null
+++ b/app-misc/bgrep/bgrep-0_p20110121.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+GITHUB_USER="tmbinc"
+GITHUB_HASH="49b098be9548d174023ad05c10f6af9d02b8e18e"
+MY_P="${GITHUB_USER}-${PN}-${GITHUB_HASH:0:7}"
+
+inherit toolchain-funcs
+
+DESCRIPTION="grep-like tool to search for binary strings"
+HOMEPAGE="https://github.com/tmbinc/bgrep/"
+SRC_URI="https://github.com/${GITHUB_USER}/${PN}/tarball/${GITHUB_HASH} -> ${MY_P}.tar.gz"
+
+S="${WORKDIR}/${MY_P}"
+LICENSE="MIT"
+SLOT="0"
+
+KEYWORDS="~amd64"
+
+IUSE="test"
+
+RDEPEND=""
+DEPEND="test? ( dev-lang/perl )"
+
+src_prepare() {
+ sed -i -e "s|/tmp/|${T}/|g" \
+ test/bgrep-test.sh || die
+}
+
+src_compile() {
+ tc-export CC
+ emake || die
+}
+
+src_test() {
+ cd test
+ ./bgrep-test.sh || die
+}
+
+src_install() {
+ dobin bgrep
+ dodoc README
+}
diff --git a/app-misc/bgrep/metadata.xml b/app-misc/bgrep/metadata.xml
new file mode 100644
index 000000000000..f7d75d1eedfb
--- /dev/null
+++ b/app-misc/bgrep/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>
+ <email>flameeyes@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">tmbinc/bgrep</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/bijiben/Manifest b/app-misc/bijiben/Manifest
new file mode 100644
index 000000000000..7a6b91b0f751
--- /dev/null
+++ b/app-misc/bijiben/Manifest
@@ -0,0 +1,2 @@
+DIST bijiben-3.14.2.tar.xz 621696 SHA256 7998632c83889071c23725ad95867618c72814676a3a3865881e9556714e0537 SHA512 1fc1d4c9ddf3fb674229e96793603769ef77c9aaf43eb142c41450ce79d82e6a5dc659d7e0fe1b7c0256830516f770b32d3b2cf36250172feba2962b71bcb40a WHIRLPOOL 005b103a96457a729b5bb194f2d8973f4785ef302a23825f473c18d75caa699d9d47f8bab27ac44b11f8c327d5d93fb3ce72b46ef57a5f430ca721d95de3adba
+DIST bijiben-3.16.2.tar.xz 658656 SHA256 39c97690e6d0bbed343b2283ea184c89fd49f3c4309af7f56e1b494efd0fd98a SHA512 59e56a961ad66e90e2267ffeb0cdeab312720e82e2a0fb3e78fc1908478f42d657b81b7a3099121a36e150997cdae177f0b25db7e8fb664311550c2d79fab6de WHIRLPOOL 710db7f418be48ead556de0e059f39428bde6277a40174379f797953c8dea20b72ebda15db505cc044fff19df6636932f30b481eae271664ca357825ae8d171a
diff --git a/app-misc/bijiben/bijiben-3.14.2.ebuild b/app-misc/bijiben/bijiben-3.14.2.ebuild
new file mode 100644
index 000000000000..60e5bd6d3412
--- /dev/null
+++ b/app-misc/bijiben/bijiben-3.14.2.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+GCONF_DEBUG="no"
+
+inherit gnome2
+
+DESCRIPTION="Note editor designed to remain simple to use"
+HOMEPAGE="https://wiki.gnome.org/Apps/Bijiben"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+# zeitgeist is optional but automagic
+RDEPEND="
+ >=app-misc/tracker-1:=
+ >=dev-libs/glib-2.28:2
+ dev-libs/libxml2
+ >=gnome-extra/evolution-data-server-3
+ >=mail-client/evolution-3
+ gnome-extra/zeitgeist
+ net-libs/gnome-online-accounts
+ net-libs/webkit-gtk:3
+ sys-apps/util-linux
+ >=x11-libs/gtk+-3.11.4:3
+"
+DEPEND="${RDEPEND}
+ >=dev-util/intltool-0.35.0
+ sys-devel/gettext
+ virtual/pkgconfig
+"
+# app-text/yelp-tools
+
+src_configure() {
+ gnome2_src_configure \
+ ITSTOOL="$(type -P true)" \
+ --disable-update-mimedb
+}
diff --git a/app-misc/bijiben/bijiben-3.16.2.ebuild b/app-misc/bijiben/bijiben-3.16.2.ebuild
new file mode 100644
index 000000000000..3b7abaa9aeca
--- /dev/null
+++ b/app-misc/bijiben/bijiben-3.16.2.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+GCONF_DEBUG="no"
+
+inherit gnome2
+
+DESCRIPTION="Note editor designed to remain simple to use"
+HOMEPAGE="https://wiki.gnome.org/Apps/Bijiben"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+# zeitgeist is optional but automagic
+RDEPEND="
+ >=app-misc/tracker-1:=
+ >=dev-libs/glib-2.28:2
+ dev-libs/libxml2
+ >=gnome-extra/evolution-data-server-3.13.90:=
+ >=mail-client/evolution-3
+ gnome-extra/zeitgeist
+ net-libs/gnome-online-accounts
+ net-libs/webkit-gtk:3
+ sys-apps/util-linux
+ >=x11-libs/gtk+-3.11.4:3
+"
+DEPEND="${RDEPEND}
+ dev-libs/appstream-glib
+ >=dev-util/intltool-0.50.1
+ sys-devel/gettext
+ virtual/pkgconfig
+"
+# app-text/yelp-tools
+
+src_configure() {
+ gnome2_src_configure \
+ ITSTOOL="$(type -P true)" \
+ --disable-update-mimedb
+}
diff --git a/app-misc/bijiben/metadata.xml b/app-misc/bijiben/metadata.xml
new file mode 100644
index 000000000000..da6fd63d0085
--- /dev/null
+++ b/app-misc/bijiben/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>gnome</herd>
+</pkgmetadata>
diff --git a/app-misc/binclock/Manifest b/app-misc/binclock/Manifest
new file mode 100644
index 000000000000..170ad9c66852
--- /dev/null
+++ b/app-misc/binclock/Manifest
@@ -0,0 +1 @@
+DIST binclock-1.5.tar.gz 12301 SHA256 3b34033aef01771235e87848ddc92ef23dc2c989902f2ea1cb652b91e43f3df5 SHA512 f3650c8befb999a7e6261bc72ee4f81be670fe95899efc742112102c4107ebbbb25d015d57a702630ce2104cf8c738953c7fe70f24814514d8a2705240000e75 WHIRLPOOL 73b8ccdf94177e8959a83da9b0a3d9745e85c5672e2a4e3ef4d64a7394252697fc648040cf8486e519efb73c769be858ab5ae76445da3ea3bb2a370dccd1e3bd
diff --git a/app-misc/binclock/binclock-1.5.ebuild b/app-misc/binclock/binclock-1.5.ebuild
new file mode 100644
index 000000000000..b1e84c5cd8d3
--- /dev/null
+++ b/app-misc/binclock/binclock-1.5.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="2"
+
+inherit toolchain-funcs
+
+DESCRIPTION="Displays a binary clock in your terminal"
+HOMEPAGE="http://www.ngolde.de/binclock/"
+SRC_URI="http://www.ngolde.de/download/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 ~ia64 ~mips ppc ppc64 sparc x86"
+IUSE=""
+
+RDEPEND=""
+DEPEND=">=sys-apps/sed-4"
+
+src_prepare() {
+ sed -i -e s/strip/true/ Makefile || die
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" CFLAGS="${CFLAGS} ${LDFLAGS}" || die "emake failed"
+}
+
+src_install() {
+ dobin binclock || die "dobin failed"
+ doman doc/binclock.1 || die "doman failed"
+ dodoc CHANGELOG README binclockrc || die "dodoc failed"
+}
diff --git a/app-misc/binclock/metadata.xml b/app-misc/binclock/metadata.xml
new file mode 100644
index 000000000000..dbf8947073ac
--- /dev/null
+++ b/app-misc/binclock/metadata.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>shell-tools</herd>
+ <longdescription>binclock displays a binary clock in your terminal.</longdescription>
+</pkgmetadata>
diff --git a/app-misc/binwalk/Manifest b/app-misc/binwalk/Manifest
new file mode 100644
index 000000000000..cdff1fd99390
--- /dev/null
+++ b/app-misc/binwalk/Manifest
@@ -0,0 +1 @@
+DIST binwalk-2.0.1.tar.gz 2234469 SHA256 90ee8426d71e91b62dfe4a1446c457bc7835b475b28717859e275a0494403959 SHA512 de223f61a0a212469c21b8e36d02cadc83f1cdb96a0f6114490d15d8dc12c93a86b46ef74379acb96b32b305e75ca66e940d7a18a8dc3b5036ebe8946dcca0f3 WHIRLPOOL c66ea461132417629f59e3f7562330f038263a0d522aca1db1e85f0bad5e9564d8baa27125acfb67404f0ee8045bd8da71faedcf3d2e352303ca8b0295a2767d
diff --git a/app-misc/binwalk/binwalk-2.0.1.ebuild b/app-misc/binwalk/binwalk-2.0.1.ebuild
new file mode 100644
index 000000000000..bace7a0a5b04
--- /dev/null
+++ b/app-misc/binwalk/binwalk-2.0.1.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python{2_7,3_3,3_4} )
+
+inherit distutils-r1
+
+DESCRIPTION="A tool for identifying files embedded inside firmware images"
+HOMEPAGE="https://github.com/devttys0/binwalk"
+SRC_URI="https://github.com/devttys0/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="graph"
+
+RDEPEND="
+ app-crypt/ssdeep
+ sys-apps/file[${PYTHON_USEDEP}]
+ graph? ( dev-python/pyqtgraph[opengl,${PYTHON_USEDEP}] )
+"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-makefile.patch
+ "${FILESDIR}"/${P}-libs.patch
+)
+
+python_configure_all() {
+ econf --disable-bundles
+}
+
+python_compile_all() {
+ emake
+}
+
+python_install_all() {
+ local DOCS=( API.md INSTALL.md )
+ distutils-r1_python_install_all
+
+ dolib.so src/C/*/*.so
+}
diff --git a/app-misc/binwalk/files/binwalk-2.0.1-libs.patch b/app-misc/binwalk/files/binwalk-2.0.1-libs.patch
new file mode 100644
index 000000000000..5a746a4176fc
--- /dev/null
+++ b/app-misc/binwalk/files/binwalk-2.0.1-libs.patch
@@ -0,0 +1,14 @@
+Don't install C libs by default since we don't need to install them for
+every python version since they aren't linked with libpython.
+
+--- binwalk-2.0.1/setup.py
++++ binwalk-2.0.1/setup.py
+@@ -134,7 +134,7 @@
+
+ # The data files to install along with the module
+ data_dirs = ["magic", "config", "plugins", "modules", "core"]
+-install_data_files = [os.path.join("libs", "*.so")]
++install_data_files = []
+
+ for data_dir in data_dirs:
+ install_data_files.append("%s%s*" % (data_dir, os.path.sep))
diff --git a/app-misc/binwalk/files/binwalk-2.0.1-makefile.patch b/app-misc/binwalk/files/binwalk-2.0.1-makefile.patch
new file mode 100644
index 000000000000..e70f096ea6b4
--- /dev/null
+++ b/app-misc/binwalk/files/binwalk-2.0.1-makefile.patch
@@ -0,0 +1,61 @@
+Don't build python via the makefile and fix parallel make jobs.
+
+--- binwalk-2.0.1/Makefile.in
++++ binwalk-2.0.1/Makefile.in
+@@ -33,21 +33,20 @@
+ $(PYTHON) ./setup.py install $(PREFIX)
+
+ build:
+- if [ "$(BUILD_C_LIBS)" -eq "1" ]; then make -C $(SRC_C_DIR); fi
+- if [ "$(BUILD_BUNDLES)" -eq "1" ]; then make -C $(SRC_BUNDLES_DIR); fi
+- $(PYTHON) ./setup.py build
++ if [ "$(BUILD_C_LIBS)" -eq "1" ]; then $(MAKE) -C $(SRC_C_DIR); fi
++ if [ "$(BUILD_BUNDLES)" -eq "1" ]; then $(MAKE) -C $(SRC_BUNDLES_DIR); fi
+
+ deps:
+ ./deps.sh
+
+ clean:
+- if [ "$(BUILD_C_LIBS)" -eq "1" ]; then make -C $(SRC_C_DIR) clean; fi
+- if [ "$(BUILD_BUNDLES)" -eq "1" ]; then make -C $(SRC_BUNDLES_DIR) clean; fi
++ if [ "$(BUILD_C_LIBS)" -eq "1" ]; then $(MAKE) -C $(SRC_C_DIR) clean; fi
++ if [ "$(BUILD_BUNDLES)" -eq "1" ]; then $(MAKE) -C $(SRC_BUNDLES_DIR) clean; fi
+ $(PYTHON) ./setup.py clean
+
+ distclean: clean
+- if [ "$(BUILD_C_LIBS)" -eq "1" ]; then make -C $(SRC_C_DIR) distclean; fi
+- if [ "$(BUILD_BUNDLES)" -eq "1" ]; then make -C $(SRC_BUNDLES_DIR) distclean; fi
++ if [ "$(BUILD_C_LIBS)" -eq "1" ]; then $(MAKE) -C $(SRC_C_DIR) distclean; fi
++ if [ "$(BUILD_BUNDLES)" -eq "1" ]; then $(MAKE) -C $(SRC_BUNDLES_DIR) distclean; fi
+ rm -rf Makefile config.* *.cache
+
+ uninstall:
+--- binwalk-2.0.1/src/C/Makefile
++++ binwalk-2.0.1/src/C/Makefile
+@@ -3,9 +3,9 @@
+ .PHONY: all clean_libs clean distclean
+
+ all:
+- make -C miniz
++ $(MAKE) -C miniz
+ cp miniz/*.$(SOEXT) $(LIB_DIR)
+- make -C compress
++ $(MAKE) -C compress
+ cp compress/*.$(SOEXT) $(LIB_DIR)
+
+ clean_libs:
+@@ -13,10 +13,10 @@
+ rm -f $(LIB_DIR)/libcompress42.$(SOEXT)
+
+ clean: clean_libs
+- make -C miniz clean
+- make -C compress clean
++ $(MAKE) -C miniz clean
++ $(MAKE) -C compress clean
+
+ distclean: clean_libs
+- make -C miniz distclean
+- make -C compress distclean
++ $(MAKE) -C miniz distclean
++ $(MAKE) -C compress distclean
+
diff --git a/app-misc/binwalk/metadata.xml b/app-misc/binwalk/metadata.xml
new file mode 100644
index 000000000000..8edfc65b851a
--- /dev/null
+++ b/app-misc/binwalk/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>
+ <email>radhermit@gentoo.org</email>
+ <name>Tim Harder</name>
+ </maintainer>
+ <longdescription lang="en">Binwalk is a tool for searching a given binary image for embedded files.
+ Specifically, it is designed for identifying files embedded inside of firmware
+ images. Binwalk uses the libmagic library, so it is compatible with magic
+ signatures created for the Unix file utility.
+ Binwalk also includes a custom magic signature file which contains improved
+ signatures for files that are commonly found in firmware images such as
+ compressed/archived files, firmware headers, Linux kernels, bootloaders,
+ filesystems, etc.</longdescription>
+ <upstream>
+ <remote-id type="google-code">binwalk</remote-id>
+ <remote-id type="github">devttys0/binwalk</remote-id>
+ </upstream>
+ <use>
+ <flag name="graph">Enable support for generating entropy graphs</flag>
+ </use>
+</pkgmetadata>
diff --git a/app-misc/birthday/Manifest b/app-misc/birthday/Manifest
new file mode 100644
index 000000000000..18dabee0e81d
--- /dev/null
+++ b/app-misc/birthday/Manifest
@@ -0,0 +1 @@
+DIST birthday-1.6.2.tar.bz2 85617 SHA256 355ad07ad3312d8f5c5b54c71596ac3a0e706c539167900d73cb65df30c8e2f4 SHA512 5081cd9f875260758d209165803715d3eb19e2256344172cb3ea01f87f859215ce68e29174c22eec467bdb6eebc11627a71674321bb9b96db9562d13cdc80882 WHIRLPOOL 226a0293a2a3b91dfd6eae09680a7e2df56de1c2329332574c2d4eb5be9520106309cccead7c71439d5b9f3149798d25321c167eda2ead3f972630698cd6665b
diff --git a/app-misc/birthday/birthday-1.6.2.ebuild b/app-misc/birthday/birthday-1.6.2.ebuild
new file mode 100644
index 000000000000..600b93523b1b
--- /dev/null
+++ b/app-misc/birthday/birthday-1.6.2.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit toolchain-funcs
+
+DESCRIPTION="Displays a list of events happening in the near future"
+HOMEPAGE="http://sourceforge.net/projects/birthday/"
+SRC_URI="mirror://sourceforge/birthday/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc ppc64 sparc x86"
+IUSE=""
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ # Don't strip, install in correct share dir and respect CFLAGS
+ sed -i -e "s:install -s:install:g" -e "s:#SHARE:SHARE:g" -e "s:-O2:${CFLAGS}:g" \
+ Makefile || die
+}
+
+src_compile() {
+ emake CC=$(tc-getCC) || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+}
diff --git a/app-misc/birthday/metadata.xml b/app-misc/birthday/metadata.xml
new file mode 100644
index 000000000000..66d5c0543734
--- /dev/null
+++ b/app-misc/birthday/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>shell-tools</herd>
+ <upstream>
+ <remote-id type="sourceforge">birthday</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/bottlerocket/Manifest b/app-misc/bottlerocket/Manifest
new file mode 100644
index 000000000000..17efb6b26253
--- /dev/null
+++ b/app-misc/bottlerocket/Manifest
@@ -0,0 +1 @@
+DIST bottlerocket-0.04c.tar.gz 40533 SHA256 deb8fbf8856f87af15fa9883e07b1fddb2aa78f6b4c7d119ae4bd664dc1d19ae SHA512 37673bd9a519307f0ae3003f3a458dbb99d4fd0c96ebaa664f4967fe45b20c1132828c3c7a31e769157e6034c43c9cdcd1ecac8c6791812d2a04e93d4c0c6888 WHIRLPOOL 838f4267ea55a70fff2a50d457e90d2597ff6254383ae7d420075cb32782a8544a6491c9109e42f066c8408f14ed08654756f783184fb667471a7c7a4dcf12e6
diff --git a/app-misc/bottlerocket/bottlerocket-0.04c-r1.ebuild b/app-misc/bottlerocket/bottlerocket-0.04c-r1.ebuild
new file mode 100644
index 000000000000..46da14cd9b7e
--- /dev/null
+++ b/app-misc/bottlerocket/bottlerocket-0.04c-r1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="2"
+
+inherit toolchain-funcs
+
+DESCRIPTION="CLI interface to the X-10 Firecracker Kit"
+HOMEPAGE="http://www.linuxha.com/bottlerocket/"
+SRC_URI="http://www.linuxha.com/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc ~sparc x86"
+IUSE=""
+
+src_prepare() {
+ # inset LDFLAGS
+ sed -i Makefile.in \
+ -e 's| -O2 ||g' \
+ -e '/ -o br /s|${CFLAGS}|& $(LDFLAGS)|g' \
+ || die "sed Makefile.in"
+}
+
+src_configure() {
+ econf --with-x10port=/dev/firecracker
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" || die "emake failed"
+}
+
+src_install() {
+ einstall || die "einstall"
+ dodoc README
+}
+
+pkg_postinst() {
+ elog
+ elog "Be sure to create a /dev/firecracker symlink to the"
+ elog "serial port that has the Firecracker serial interface"
+ elog "installed on it."
+ elog
+}
diff --git a/app-misc/bottlerocket/metadata.xml b/app-misc/bottlerocket/metadata.xml
new file mode 100644
index 000000000000..d9cd2cad66c2
--- /dev/null
+++ b/app-misc/bottlerocket/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>
+<email>maintainer-needed@gentoo.org</email>
+</maintainer>
+</pkgmetadata>
diff --git a/app-misc/boxes/Manifest b/app-misc/boxes/Manifest
new file mode 100644
index 000000000000..33d89a2cb62f
--- /dev/null
+++ b/app-misc/boxes/Manifest
@@ -0,0 +1 @@
+DIST boxes-1.1.2.tar.gz 101658 SHA256 4d5e536be91b476ee48640bef9122f3114b16fe2da9b9906947308b94682c5fe SHA512 10efb5f62d94003532e2f32d6a0f7c76dd86c7cfaf150f35c24516dc6684f5e3909ecd5fd48c1c64f25f874cb1364bdf3d959a2fb837bfe74c2d879a35f443dd WHIRLPOOL 4017bca428dc6d5cd55a3eb240432ef00a468c21d6d3e3a66a8ec51105b5933d8949006cdefe61d9c1689a663afee6cce8b093c6e5a70368bcd23482aa31f0f3
diff --git a/app-misc/boxes/boxes-1.1.2-r1.ebuild b/app-misc/boxes/boxes-1.1.2-r1.ebuild
new file mode 100644
index 000000000000..9fdd532dd4de
--- /dev/null
+++ b/app-misc/boxes/boxes-1.1.2-r1.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit flag-o-matic toolchain-funcs
+
+DESCRIPTION="Draw any kind of boxes around your text"
+HOMEPAGE="http://boxes.thomasjensen.com/ https://github.com/ascii-boxes/boxes"
+SRC_URI="https://github.com/ascii-boxes/boxes/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 ia64 ~mips ppc ppc64 sparc x86"
+IUSE=""
+
+DEPEND="
+ sys-devel/bison
+ sys-devel/flex
+ "
+
+src_prepare() {
+ append-cflags -Iregexp -I. -ansi
+ append-ldflags -Lregexp
+ sed \
+ -e 's:STRIP=true:STRIP=false:g' \
+ -i src/Makefile || die
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
+}
+
+src_install() {
+ dobin src/boxes
+ doman doc/boxes.1
+ dodoc README.md
+ insinto /usr/share/boxes
+ doins boxes-config
+}
diff --git a/app-misc/boxes/metadata.xml b/app-misc/boxes/metadata.xml
new file mode 100644
index 000000000000..940c759eeb8f
--- /dev/null
+++ b/app-misc/boxes/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>shell-tools</herd>
+ <upstream>
+ <remote-id type="github">ascii-boxes/boxes</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/brewtarget/Manifest b/app-misc/brewtarget/Manifest
new file mode 100644
index 000000000000..6a015b52fd3a
--- /dev/null
+++ b/app-misc/brewtarget/Manifest
@@ -0,0 +1,2 @@
+DIST brewtarget_2.0.2.orig.tar.gz 8412998 SHA256 3f71a32a13b96726b3a71414ffd95e5e3634ecd95f784ae257bac27a195b3e39 SHA512 08a3420c29b1f4b914c36aebd15c2d1c7f717b1996d60b64dc5ad2d613aebc44bf5235d7ffeb0a598128d17b95ff9a171a46c7e461b3b1e1f4bc594ad8bed366 WHIRLPOOL 6e7bbf62df0b904228e9c08c603becfd13573ae6da6053e2cb1267f19946766e1dface9ba3acd092c15c8653ed1db296faff6c7e08266bc982969bbd42140539
+DIST brewtarget_2.1.0.orig.tar.xz 8576552 SHA256 5d34c6ed169d6589c85dd5383850512a0e36ab2b2233f9ed566f3a0fb4adb9be SHA512 980867c7d5d0d9c6a3c7dc659677c384522fa468c4c86b54d2e77e59b577352abdcaa245d04f01ee4d4d433426925f9df472821c81346e13457b6c58a35fe9c5 WHIRLPOOL df22343055dd133efb918afde589bd86bb0596adde2005a3cda70c8c7817392b762d4ae238feb4d026272108e6053743a1becfe953402d2f646f336a17bcf072
diff --git a/app-misc/brewtarget/brewtarget-2.0.2.ebuild b/app-misc/brewtarget/brewtarget-2.0.2.ebuild
new file mode 100644
index 000000000000..9d5b5b806b5f
--- /dev/null
+++ b/app-misc/brewtarget/brewtarget-2.0.2.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PLOCALES="ca cs de en es fr hu it nb nl pl pt ru sv"
+
+inherit cmake-utils l10n
+
+DESCRIPTION="Application to create and manage beer recipes"
+HOMEPAGE="http://www.brewtarget.org/"
+SRC_URI="https://launchpad.net/${PN}/trunk/${PV}/+download/${PN}_${PV}.orig.tar.gz"
+
+LICENSE="GPL-3 WTFPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+
+IUSE="kde phonon"
+
+DEPEND="
+ >=dev-qt/qtcore-4.8:4
+ >=dev-qt/qtgui-4.8:4
+ >=dev-qt/qtsql-4.8:4[sqlite]
+ >=dev-qt/qtsvg-4.8:4
+ >=dev-qt/qtwebkit-4.8:4
+ phonon? (
+ kde? ( media-libs/phonon[qt4] )
+ !kde? ( || ( >=dev-qt/qtphonon-4.8:4 media-libs/phonon[qt4] ) )
+ )
+"
+RDEPEND="${DEPEND}"
+
+remove_locale() {
+ sed -i -e "/bt_$1.ts/d" CMakeLists.txt || die
+}
+
+src_prepare() {
+ # Check for new locales, respect LINGUAS
+ l10n_find_plocales_changes "${S}/translations" bt_ .ts
+ l10n_for_each_disabled_locale_do remove_locale
+
+ # Fix desktop file
+ sed -i -e '/^Encoding=/d' ${PN}.desktop.in || die
+
+ cmake-utils_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DDO_RELEASE_BUILD=ON
+ -DNO_MESSING_WITH_FLAGS=ON
+ $(cmake-utils_use_no phonon)
+ )
+ cmake-utils_src_configure
+}
diff --git a/app-misc/brewtarget/brewtarget-2.1.0.ebuild b/app-misc/brewtarget/brewtarget-2.1.0.ebuild
new file mode 100644
index 000000000000..f15a48c7df43
--- /dev/null
+++ b/app-misc/brewtarget/brewtarget-2.1.0.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PLOCALES="ca cs da de el en es fr hu it nb nl pl pt ru sv zh"
+
+inherit cmake-utils l10n
+
+DESCRIPTION="Application to create and manage beer recipes"
+HOMEPAGE="http://www.brewtarget.org/"
+SRC_URI="https://launchpad.net/${PN}/trunk/${PV}/+download/${PN}_${PV}.orig.tar.xz"
+
+LICENSE="GPL-3 WTFPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+
+IUSE="kde phonon"
+
+DEPEND="
+ >=dev-qt/qtcore-4.8:4
+ >=dev-qt/qtgui-4.8:4
+ >=dev-qt/qtsql-4.8:4[sqlite]
+ >=dev-qt/qtsvg-4.8:4
+ >=dev-qt/qtwebkit-4.8:4
+ phonon? (
+ kde? ( media-libs/phonon[qt4] )
+ !kde? ( || ( >=dev-qt/qtphonon-4.8:4 media-libs/phonon[qt4] ) )
+ )
+"
+RDEPEND="${DEPEND}"
+
+remove_locale() {
+ sed -i -e "/bt_$1.ts/d" CMakeLists.txt || die
+}
+
+src_prepare() {
+ # Check for new locales, respect LINGUAS
+ l10n_find_plocales_changes "${S}/translations" bt_ .ts
+ l10n_for_each_disabled_locale_do remove_locale
+
+ # Tests are bogus, don't build them
+ sed -i -e '/=Tests=/,/=Installs=/d' src/CMakeLists.txt || die
+
+ cmake-utils_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DDO_RELEASE_BUILD=ON
+ -DNO_MESSING_WITH_FLAGS=ON
+ $(cmake-utils_use_no phonon)
+ )
+ cmake-utils_src_configure
+}
diff --git a/app-misc/brewtarget/metadata.xml b/app-misc/brewtarget/metadata.xml
new file mode 100644
index 000000000000..0ebb2a47b0a2
--- /dev/null
+++ b/app-misc/brewtarget/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>
+ <email>pesa@gentoo.org</email>
+ </maintainer>
+ <use>
+ <flag name="phonon">Enable sound support via <pkg>media-libs/phonon</pkg> or <pkg>dev-qt/qtphonon</pkg></flag>
+ </use>
+ <upstream>
+ <remote-id type="launchpad">brewtarget</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/btail/Manifest b/app-misc/btail/Manifest
new file mode 100644
index 000000000000..2990bbd8d46c
--- /dev/null
+++ b/app-misc/btail/Manifest
@@ -0,0 +1 @@
+DIST btail-0.3.tgz 7402 SHA256 0bcf19b49ad2071a7fd31bbc12327c132c1419d67519ea67d97241d436f71b1c SHA512 1b27b6fff41b5e69119526115d5c3d239d106303923796121829729617765354cbd3f769b95c8fd32cd5a181475c3cde0ffe2accaae44ae461966df46bb990ee WHIRLPOOL 882dcb45ae21750c6d3487e6885d798e2356567d55f27b8269c5037033aef6268cacd7c076e69bf95925770943a256433b96b0715c96d6101850cc9384f0371d
diff --git a/app-misc/btail/btail-0.3.ebuild b/app-misc/btail/btail-0.3.ebuild
new file mode 100644
index 000000000000..f71b4bd9c0cb
--- /dev/null
+++ b/app-misc/btail/btail-0.3.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+inherit toolchain-funcs
+
+DESCRIPTION="Bayesian logfile filter"
+HOMEPAGE="http://www.vanheusden.com/btail/"
+SRC_URI="${HOMEPAGE}/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+DEPEND="sys-libs/gdbm"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ sed -i Makefile \
+ -e '/^LDFLAGS/s:=:+=:g' \
+ -e '/$(CC)/s:-Wall:$(CFLAGS) &:g' \
+ || die
+ sed -i conf.cpp \
+ -e '/Configline/s:):, line):g' \
+ || die
+}
+
+src_compile() {
+ emake \
+ CFLAGS="${CFLAGS}" \
+ CXXFLAGS="${CXXFLAGS}" \
+ CC="$(tc-getCC)" \
+ CXX="$(tc-getCXX)"
+}
+
+src_install() {
+ dobin blearn btail
+ dodoc readme.txt btail.conf license.txt
+}
diff --git a/app-misc/btail/metadata.xml b/app-misc/btail/metadata.xml
new file mode 100644
index 000000000000..ff62877c67ae
--- /dev/null
+++ b/app-misc/btail/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>
+ <email>maintainer-needed@gentoo.org</email>
+</maintainer>
+</pkgmetadata>
diff --git a/app-misc/byobu/Manifest b/app-misc/byobu/Manifest
new file mode 100644
index 000000000000..34e3f28dcfec
--- /dev/null
+++ b/app-misc/byobu/Manifest
@@ -0,0 +1,2 @@
+DIST byobu_5.90.orig.tar.gz 658445 SHA256 a06daaf6074a2254632983dc261a68bccef5d313844deb08533d6ef5bf16c73b SHA512 73a4a3e79240466daab845fd4c90a3dc78e0a43b4a94b430eabc537968e805b67de3a2f94680d7c13ba6ccd097d62a62cc9e2e77d38d4698b68e5116c6bc09a6 WHIRLPOOL 89a71abd328ad50016ae2219978e739727561d397268d20f8447614c98499445de32efd760aa8a0c22f4f10437ad14b8da49e7ac6601e4911ec3e1615ceab283
+DIST byobu_5.94.orig.tar.gz 660103 SHA256 4917013f590110d25b18293a51af02bd1ebcd1c665474f62e2566fb9b8f62916 SHA512 b4e07d7d197f8796c26f33aa08c1d61dab463ce5cd2d646bf32c4c5a4be17ffe2b8996cb305c999ca0be20a1fab81c24dbd0eae5588b74e8da1e7726c293b2e6 WHIRLPOOL d2832c4ecac9d4d6907051d33efb8f51816866ce4bd0d75d5684322dd83a56d0a4717d2b6fd7736a0ca488d5e2e648a0e48a09de6a0bffcd779aa63cefd50c4c
diff --git a/app-misc/byobu/byobu-5.90.ebuild b/app-misc/byobu/byobu-5.90.ebuild
new file mode 100644
index 000000000000..8264cdcce309
--- /dev/null
+++ b/app-misc/byobu/byobu-5.90.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+
+inherit python-single-r1
+
+DESCRIPTION="A set of profiles for the GNU Screen console window manager (app-misc/screen)"
+HOMEPAGE="http://byobu.co"
+SRC_URI="http://launchpad.net/${PN}/trunk/${PV}/+download/${P/-/_}.orig.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="screen"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}
+ dev-libs/newt[${PYTHON_USEDEP}]
+ screen? ( app-misc/screen )
+ !screen? ( app-misc/tmux )"
+
+src_prepare() {
+ python_fix_shebang .
+
+ # Set default system backend to screen
+ if use screen ; then
+ sed -i -e 's/#\(BYOBU_BACKEND\).*/\1="screen"/' etc/byobu/backend || die
+ fi
+}
+
+src_install() {
+ default
+
+ # Create symlinks for backends
+ dosym ${PN} /usr/bin/${PN}-screen
+ dosym ${PN} /usr/bin/${PN}-tmux
+
+ docompress -x /usr/share/doc/${PN}
+}
diff --git a/app-misc/byobu/byobu-5.94.ebuild b/app-misc/byobu/byobu-5.94.ebuild
new file mode 100644
index 000000000000..8264cdcce309
--- /dev/null
+++ b/app-misc/byobu/byobu-5.94.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+
+inherit python-single-r1
+
+DESCRIPTION="A set of profiles for the GNU Screen console window manager (app-misc/screen)"
+HOMEPAGE="http://byobu.co"
+SRC_URI="http://launchpad.net/${PN}/trunk/${PV}/+download/${P/-/_}.orig.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="screen"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}
+ dev-libs/newt[${PYTHON_USEDEP}]
+ screen? ( app-misc/screen )
+ !screen? ( app-misc/tmux )"
+
+src_prepare() {
+ python_fix_shebang .
+
+ # Set default system backend to screen
+ if use screen ; then
+ sed -i -e 's/#\(BYOBU_BACKEND\).*/\1="screen"/' etc/byobu/backend || die
+ fi
+}
+
+src_install() {
+ default
+
+ # Create symlinks for backends
+ dosym ${PN} /usr/bin/${PN}-screen
+ dosym ${PN} /usr/bin/${PN}-tmux
+
+ docompress -x /usr/share/doc/${PN}
+}
diff --git a/app-misc/byobu/metadata.xml b/app-misc/byobu/metadata.xml
new file mode 100644
index 000000000000..1c7747e40943
--- /dev/null
+++ b/app-misc/byobu/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>shell-tools</herd>
+ <longdescription>
+Byobu is a GPLv3 open source text-based window manager and terminal multiplexer.
+It was originally designed to provide elegant enhancements to the otherwise
+functional, plain, practical GNU Screen, for the Ubuntu server distribution.
+Byobu now includes an enhanced profiles, convenient keybindings, configuration
+utilities, and toggle-able system status notifications for both the GNU Screen
+window manager and the more modern Tmux terminal multiplexer, and works on most
+Linux, BSD, and Mac distributions.
+</longdescription>
+ <use>
+ <flag name="screen">Use <pkg>app-misc/screen</pkg> as the default backend</flag>
+ </use>
+ <upstream>
+ <remote-id type="launchpad">byobu</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/ca-certificates/Manifest b/app-misc/ca-certificates/Manifest
new file mode 100644
index 000000000000..a479f3e79c09
--- /dev/null
+++ b/app-misc/ca-certificates/Manifest
@@ -0,0 +1,23 @@
+DIST ca-certificates_20090709_all.deb 154620 SHA256 de1e35997eb39c7ba5713f206aba034ff8ce8aa3aebebfc7eb1823de9968d767 SHA512 2237f03c6794f33e5dde2acc05c04447daf2b8a41fc4182297d971cf4bc1eb2ae1abdf21561fb8fdf9dad27465e63c17b8bd2060d3b270edcfdf22c5c5cb094d WHIRLPOOL 174facc0da0677baae403a0e9234692768d6a6342a1894116561a2c41878850cdc603c3556961641ba743fe347c436adef1d914060b23767549dd40041c4120c
+DIST ca-certificates_20110421_all.deb 176778 SHA256 a60a9c0faf1847df4553ce13ffe337412b88dd1b9d502741ac1760204c0bdda3 SHA512 11c9ba3f483cd17ca964f19e6ec394a2239fd74187f57224d7b13d1c0bf5dc55bb6c66217c1dd8273695ff92710617a897f7a40be6e4ec9960276f1bfe6b2bbb WHIRLPOOL 67dee5217526d5abec740f367fe28ce0f823d3c21b99fc988b73e75859e47beb00cb76e3d83572e704c3924e45bd9f6a7c818a1a1b2dd3bf7594864c9d9b2c5f
+DIST ca-certificates_20110502+nmu1_all.deb 174242 SHA256 d44284ee9b733b9890a54516f66b68a382ac5fb2c0bdceafed4cf229aa3b05a1 SHA512 2ba33346689d21846632390ad55f2a6102a333cc32019a6e00d85c00970a6f744b4a4d548b68bf9b6369d0cfc2b06009db4b4be4ffafd3629bf05737fdc096d2 WHIRLPOOL 88ffbbc68e1299a2b3cc243e1b17160f9862c469279e8dca03841c45defb238c034c8d81abe811a3d32f9968d7754f6d8c64a697cbcba0c2eb4be9d513d527e9
+DIST ca-certificates_20110502_all.deb 175556 SHA256 fa14c729b48ed58f5c048b8721f09fded9824c1f450a656fb2cc396195935a98 SHA512 12b148987c292320e90b7124bf5d0194a3b7d8f1807b13b05461b18798e6a5346e205b065256d0bbdce7bf13d5db2b9c756b0f5a63a309d9164eff973179a363 WHIRLPOOL 79a8dd9c27f094dbe687d61f41d39c26229a21d02713134c71dd0878927eefcbe325cf801b63caf4421a6c97dd21731dd49862e931cef7a5895734039ad877b2
+DIST ca-certificates_20111025_all.deb 185800 SHA256 7d743b307ab31138176d6da4fff1f4c7f6bd246b42698662894bfb1b74e55647 SHA512 4be682158891110d32e8f065af64c597da09476263fdebb860d08387c873e7839b106b6f9ad6be7acfb4e0eb568274e2196377b4e0bbb61aafaeaecaeef88284 WHIRLPOOL 78568cc1b4f21ef7ca747dd9c60d43a98b15da9236c76ce928d416ad0875bd5ec2a1096d7e0551fada838d6ffbfe30366080f698ea4a35ef4748b9833c1550f8
+DIST ca-certificates_20120212_all.deb 176812 SHA256 7e4277a0a5a0ac42c370a93f986839b4e3ff82646581caa8c5135ad0a41d01d7 SHA512 c22cb3b3472deb7819bae6518b136a5af27e4cb29610b12713908ce7effbe5e39f9f1856efd75d071d70016462e66b34d5800ab061a2b3a213e4f2969330f8f0 WHIRLPOOL 306cbafa408ddb0444d5cb547ff201ca5709527db0ca5f4798db751d8ef8df147ef8ffe382adda3cefadd110197104af9bc8e45a6276a2d7739d59ffccd498c5
+DIST ca-certificates_20120623_all.deb 183022 SHA256 41f719a63b8cace12a6cd69dce3fea9720c2702511205c2bab20c5d05528ede7 SHA512 970478971f545919e15f1af7e774043113fee725c7dba89bff27969814d60e1187219fb7f87e250261c54bc0cb03098b69748c33b625f5e5061df65c6bbe019a WHIRLPOOL 07b693dabae839bde3c31548e11d8cb8b0940de6aa1838eab3834ad3a5206f4a32a3cd7d134c9722ce244ac5ed21c5a222b74899972be9f5ae59876c4b61fc22
+DIST ca-certificates_20121114_all.deb 192630 SHA256 f6991820d1c6431a7db42e92efa51f4058e921bdcc491a906dc1309e9ba35286 SHA512 b2810d1b728c71189100352706fda17c6d87f53b5c6fc2dfb78be13fcfb5758ddd7f5a4bb69742c18241bd05809cbbe67b7a4c179e678b8cf46e277b54d77869 WHIRLPOOL a75ef6c7cbb12ab24070ef7cc016dbd03509dc1cee95634281210fc45bd4a620b5854a76349e060f46f1f0844d774a5f53aeac5c34f73e025b890364b70be1ee
+DIST ca-certificates_20130119_all.deb 185428 SHA256 08f8e5a1fab74a365c284ed4e353b4f14596f5ef533fced6395ead81fb3a76f7 SHA512 b93621e578dfa5ea224b3528839ca250fd9470dc28b17dd82e8669d64a631cb62218f1c53ebdb165ea3fffcaa8717210132215b5407ea0185e76ac2a11c0d157 WHIRLPOOL 9cedaba913d90f9f10ce7c97bcd248400b17c4fc3016e2fc3fca81333094f33ce60997da49144763fe86d705c458a273fd1e279a0237a1e855ae8ffe6d1e4c51
+DIST ca-certificates_20130610_all.deb 184342 SHA256 ab20ee409012c980725a6392d71ac0464bb87edd1645221d0eb4ecb32c2e00bd SHA512 6f5f3523d4f70b1a5f2ec45ee36ae2bd706fc713edfdcddab4bafe27c42c2c169f87852abfc7e9daf4d597b633bfcaea08cb0a36ea3a88b770a45c62c134e248 WHIRLPOOL 7dd5e5a0dc0c8a3bc1556aefea5d5544183af68fce234899e56678fcdba4ac988c07f8a76a4f05e4861ed086cc3c1d1c15601d3372bbc4431c8d8e7bb54f1c4a
+DIST ca-certificates_20130906_all.deb 185064 SHA256 b2326834479192de2298c607bc020715c949cbd4dc5dd6be28a1b3f348eb9b76 SHA512 0410d11843e36fb488698a5ce7e1eda473b91d476c99d8e3bd006705167c9f2ac9a554e7fce1595f3717f1781a1390af345b3e7e4bc1e58c055e0a11321ececa WHIRLPOOL b9cf04b0e080752567a82c8fecffd033d10f19e41c0ecb1e676246947a34d1380002f9860539611dd79b04c47d19f6631a126c5887cff7ee52ff866b36c50109
+DIST ca-certificates_20140223.tar.xz 274768 SHA256 815b7cd97200b0d76450bb3e7d9b65997ac494ab6467b17369f65b2ef94bcb0c SHA512 14855eba51f90ab062b53a0d1986889de9ad7db4cb52bd4d764872b7c90eaaee62920543a4670ab45329469f76365d1e902219397b660034689159f13b8668d8 WHIRLPOOL f841d9a5fa2d4b3d46d06a2de947108ccb8bf7f19c99979822e22f043624656e789ba0340657b21a15560fd6593efa4256efc9f317974bdca8088a3647836e49
+DIST ca-certificates_20140223_all.deb 190226 SHA256 13cb11144a97d95a8be130e4bcdd6c9ffc3df269bb194699bcd21ca377e01df2 SHA512 003b6fd2301eee3ca2119781ee75a1b195f142678d4570b598c4b93847de23c4f659152f834db1f0c8866767324d02b27807260cf43f6ae16207538fa419aa31 WHIRLPOOL 179a0bcf341e7de07d02f6574850614ef221851379945db00018d25f485cee6c11915322ee370e72321d81464d7d6bb96401b41029b8f7215a68e46971671deb
+DIST ca-certificates_20140325.tar.xz 278816 SHA256 c0e3d8c517995db2737f7f1a9b69d654b8823fa6d337871c6ce111fcf083454a SHA512 6645740d61da78845facce6e3881c64f51e945a454cb26cead6e7df4887f1f3797bea217cebaffaae22a76fa3867ee20dee7b1d5200df20b85878a0c6029c2f8 WHIRLPOOL 93d4ff1ac74c6961612ffa0e4da35228636698940fd0a66e4e6842de4e48f5ded74885bfb330f6d106ae267124309d51d49f646959bbae1ef9fa7a55dbb2085a
+DIST ca-certificates_20140927.tar.xz 288824 SHA256 e582724ebb9d5d6fe02d02db1773c9ca76d3aaab4b15375a0d72e9abf88a65c5 SHA512 3cd08559c52aeba763a8ecc0333c7c20838db0111e52d9adf65719f14f858611271d61801a60fb3aea4e74be4a7903c1b462bf889172f5afb774280bb615b98b WHIRLPOOL e32e54b21109b7c44266480a6a5d78693b5ef7ffae1df595c4edfe2cce85d1cd29664e6d916c5bfffb965e4bb01fce6a8327a2ead5bb0ca7cdd8afd04346a270
+DIST ca-certificates_20141019.tar.xz 289092 SHA256 684902d3f4e9ad27829f4af0d9d2d588afed03667997579b9c2be86fcd1eb73a SHA512 5b0e8fb917f5642a5a2b4fde46a706db0c652ff3fb31a5053d9123a5b670b50c6e3cf2496915cc01c613dcbe964d6432f393c12d8a697baedfad58f9d13e568b WHIRLPOOL 6d3c0ccfbd4b1598ed529cb07390baaf741e24c8fd4762aa1786ada7188ec0c4e327513047bca2b93a488681e80b5a8fabc37b98b7f6e5e92cba62580c4cf74f
+DIST nss-3.14.1-add_spi+cacerts_ca_certs.patch 25018 SHA256 82ca25982828fd7153ad15fc6e81408c115476eeeb4045d3a71469380b56824b SHA512 2aafbd972b073061bfd66a66a4b50060691957f2910f716f7a69d22d655c499f186f05db2101bea5248a00949f339327ba8bfffec024c61c8ee908766201ae00 WHIRLPOOL c9fe397e316dac7983b187acf7227078ebd8f8da5df53f77f2564489e85f123c4d2afb88d56e8dc14b9ebfffe8a71ade4724b3c1ea683c5c4c487cb3a64eda43
+DIST nss-3.15.5.tar.gz 6367893 SHA256 1442c85624b7de74c7745132a65aa0de47d280c4f01f293d111bc0b6d8271f43 SHA512 4db27ea98f17f1a5bc6f513455497945fc35957f573b3ac7e730b166fbe0e8fd741c188187c578faf361d969db63d83ff8ccf15ac2b8ca72a367f33a018695ca WHIRLPOOL c3c687ac53dca571d1c45bdf4a80e192ca58da07e06ef56de7ac9736480c97689dd12d14351860764b70a1d823092a1ddbc471328c4bae4a899edd0e331c8aee
+DIST nss-3.16.3.tar.gz 6426732 SHA256 657711ff7a4058043b69019a66f44101d0234eae2b6b80ab900439dbf02add60 SHA512 2e829b021319a9d8c0cedec742f84c54815eed8e3b1042b5045f08746e5768286001e9517d2b69c2a5d705cd632c98f3a9227e651a492bae3ef638cc706fe31f WHIRLPOOL bd8fe296baf79b4cad2224a921bf6d0a6b6a1f13df5b64131f59964541d2ec1ae506a79a5a3b8dc08a47c8fcdfa5eafb866727fcf26c37d4e5e91a7ebb7886b3
+DIST nss-3.16.tar.gz 6378110 SHA256 2bb4faa200962caacf0454f1e870e74aa9a543809e5c440f7978bcce58e0bfe8 SHA512 e3dcde8213f7f131fe2f714ff2f45c6d7b9b2167e51dbf0e1a750cc4f83d9fa35e69408850de6600f55fbc9e26b29dc344548cb64849d6e3252476eadd7ee57f WHIRLPOOL d30b53ec36cacff9756b43780d904e32760cd5d0b75f1888b6fb80e0a87ce828f4e6189de63880ddce90bdf5d90123ff7e9fdf600f4df02ce59702898f08c11e
+DIST nss-3.17.2.tar.gz 6927414 SHA256 134929e44e44b968a4883f4ee513a71ae45d55b486cee41ee8e26c3cc84dab8b SHA512 a3d165bb2c578e7b5d90349729e85a2fce09260d069093080c76cce3b8a996c6489232324fd6a0c69b959321bcdf5f1806054f165cd6ce851fe4ffeb2883ae7f WHIRLPOOL 01b3cc546aa2dd0974caa2267aa9874b01cf6096f307a114393ba5a98adc216e0f2b217631b89b20752be5881f70fc1a7e94e0e90618707d5f9b9d18fd55d859
+DIST nss-3.17.4.tar.gz 6924699 SHA256 1d98ad1881a4237ec98cbe472fc851480f0b0e954dfe224d047811fb96ff9d79 SHA512 dfc44e28c303743a72b4553f471089bc991c3cb61d5f3071082c16400d5e4f216f84a2e44536570316fe0e798c14ca370c875dad791a873034595b9e4dd70b89 WHIRLPOOL bb6e1027c5237d12fe58b4c520536022d8d4e83183a78c3421fd46bf9c3503b1f0ca4644240e383f216ec1e5174c0ae4148372db68fb9f1c10275954559d5bbf
+DIST nss-3.19.tar.gz 6951461 SHA256 989ebdf79374f24181f060d332445b1a4baf3df39d08514c4349ba8573cefa9b SHA512 e428d206a4fd30087f275a33771a1d7e753b000e8fc3e7c746972a89d1b32300d3619f430ea15e870d82b3af52785d4dd36ae89c9c496f014f9f323ea373da14 WHIRLPOOL 3a8b58a8a28e31f65f40cfa6a9bd9ca2177a17552082d8de2189da6c92ff7ba9c90be13793666558a2bff609da738cb1f4313968077e1041b8f283d36005e76c
diff --git a/app-misc/ca-certificates/ca-certificates-20090709.ebuild b/app-misc/ca-certificates/ca-certificates-20090709.ebuild
new file mode 100644
index 000000000000..b56979597665
--- /dev/null
+++ b/app-misc/ca-certificates/ca-certificates-20090709.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit eutils
+
+DESCRIPTION="Common CA Certificates PEM files"
+HOMEPAGE="http://packages.debian.org/sid/ca-certificates"
+SRC_URI="mirror://debian/pool/main/c/${PN}/${PN}_${PV}_all.deb"
+
+LICENSE="MPL-1.1"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
+IUSE=""
+
+DEPEND="|| ( >=sys-apps/coreutils-6.10-r1 sys-apps/mktemp sys-freebsd/freebsd-ubin )"
+RDEPEND="${DEPEND}
+ dev-libs/openssl
+ sys-apps/debianutils"
+
+S=${WORKDIR}
+
+src_unpack() {
+ unpack ${A}
+ unpack ./data.tar.gz
+ rm -f control.tar.gz data.tar.gz debian-binary
+}
+
+pkg_setup() {
+ # For the conversion to having it in CONFIG_PROTECT_MASK,
+ # we need to tell users about it once manually first.
+ [[ -f /etc/env.d/98ca-certificates ]] \
+ || ewarn "You should run update-ca-certificates manually after etc-update"
+}
+
+src_install() {
+ cp -pPR * "${D}"/ || die "installing data failed"
+
+ (
+ echo "# Automatically generated by ${CAT}/${PF}"
+ echo "# $(date -u)"
+ echo "# Do not edit."
+ cd "${D}"/usr/share/ca-certificates
+ find . -name '*.crt' | sort | cut -b3-
+ ) > "${D}"/etc/ca-certificates.conf
+
+ mv "${D}"/usr/share/doc/{ca-certificates,${PF}} || die
+ prepalldocs
+
+ echo 'CONFIG_PROTECT_MASK="/etc/ca-certificates.conf"' > 98ca-certificates
+ doenvd 98ca-certificates
+}
+
+pkg_postinst() {
+ if [ "${ROOT}" = "/" ] ; then
+ # However it's too overzealous when the user has custom certs in place.
+ # --fresh is to clean up dangling symlinks
+ update-ca-certificates
+ fi
+
+ local badcerts=0
+ for c in $(find -L "${ROOT}"etc/ssl/certs/ -type l) ; do
+ ewarn "Broken symlink for a certificate at $c"
+ badcerts=1
+ done
+ if [ $badcerts -eq 1 ]; then
+ ewarn "You MUST remove the above broken symlinks"
+ ewarn "Otherwise any SSL validation that use the directory may fail!"
+ ewarn "To batch-remove them, run:"
+ ewarn "find -L ${ROOT}etc/ssl/certs/ -type l -exec rm {} +"
+ fi
+}
diff --git a/app-misc/ca-certificates/ca-certificates-20110421.ebuild b/app-misc/ca-certificates/ca-certificates-20110421.ebuild
new file mode 100644
index 000000000000..1e074c085562
--- /dev/null
+++ b/app-misc/ca-certificates/ca-certificates-20110421.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit eutils
+
+DESCRIPTION="Common CA Certificates PEM files"
+HOMEPAGE="http://packages.debian.org/sid/ca-certificates"
+SRC_URI="mirror://debian/pool/main/c/${PN}/${PN}_${PV}_all.deb"
+
+LICENSE="MPL-1.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
+IUSE=""
+
+DEPEND="|| ( >=sys-apps/coreutils-6.10-r1 sys-apps/mktemp sys-freebsd/freebsd-ubin )"
+RDEPEND="${DEPEND}
+ dev-libs/openssl
+ sys-apps/debianutils"
+
+S=${WORKDIR}
+
+src_unpack() {
+ unpack ${A}
+ unpack ./data.tar.gz
+ rm -f control.tar.gz data.tar.gz debian-binary
+}
+
+pkg_setup() {
+ # For the conversion to having it in CONFIG_PROTECT_MASK,
+ # we need to tell users about it once manually first.
+ [[ -f /etc/env.d/98ca-certificates ]] \
+ || ewarn "You should run update-ca-certificates manually after etc-update"
+}
+
+src_install() {
+ cp -pPR * "${D}"/ || die
+
+ (
+ echo "# Automatically generated by ${CATEGORY}/${PF}"
+ echo "# $(date -u)"
+ echo "# Do not edit."
+ cd "${D}"/usr/share/ca-certificates
+ find . -name '*.crt' | sort | cut -b3-
+ ) > "${D}"/etc/ca-certificates.conf
+
+ mv "${D}"/usr/share/doc/{ca-certificates,${PF}} || die
+ prepalldocs
+
+ echo 'CONFIG_PROTECT_MASK="/etc/ca-certificates.conf"' > 98ca-certificates
+ doenvd 98ca-certificates
+}
+
+pkg_postinst() {
+ if [ "${ROOT}" = "/" ] ; then
+ # However it's too overzealous when the user has custom certs in place.
+ # --fresh is to clean up dangling symlinks
+ update-ca-certificates
+ fi
+
+ local c badcerts=0
+ for c in $(find -L "${ROOT}"etc/ssl/certs/ -type l) ; do
+ ewarn "Broken symlink for a certificate at $c"
+ badcerts=1
+ done
+ if [ $badcerts -eq 1 ]; then
+ ewarn "You MUST remove the above broken symlinks"
+ ewarn "Otherwise any SSL validation that use the directory may fail!"
+ ewarn "To batch-remove them, run:"
+ ewarn "find -L ${ROOT}etc/ssl/certs/ -type l -exec rm {} +"
+ fi
+}
diff --git a/app-misc/ca-certificates/ca-certificates-20110502-r1.ebuild b/app-misc/ca-certificates/ca-certificates-20110502-r1.ebuild
new file mode 100644
index 000000000000..a38aae8366f8
--- /dev/null
+++ b/app-misc/ca-certificates/ca-certificates-20110502-r1.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit eutils
+
+DESCRIPTION="Common CA Certificates PEM files"
+HOMEPAGE="http://packages.debian.org/sid/ca-certificates"
+SRC_URI="mirror://debian/pool/main/c/${PN}/${PN}_${PV}+nmu1_all.deb"
+
+LICENSE="MPL-1.1"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
+IUSE=""
+
+DEPEND="|| ( >=sys-apps/coreutils-6.10-r1 sys-apps/mktemp sys-freebsd/freebsd-ubin )"
+RDEPEND="${DEPEND}
+ dev-libs/openssl
+ sys-apps/debianutils"
+
+S=${WORKDIR}
+
+src_unpack() {
+ unpack ${A}
+ unpack ./data.tar.gz
+ rm -f control.tar.gz data.tar.gz debian-binary
+}
+
+pkg_setup() {
+ # For the conversion to having it in CONFIG_PROTECT_MASK,
+ # we need to tell users about it once manually first.
+ [[ -f /etc/env.d/98ca-certificates ]] \
+ || ewarn "You should run update-ca-certificates manually after etc-update"
+}
+
+src_install() {
+ cp -pPR * "${D}"/ || die
+
+ (
+ echo "# Automatically generated by ${CATEGORY}/${PF}"
+ echo "# $(date -u)"
+ echo "# Do not edit."
+ cd "${D}"/usr/share/ca-certificates
+ find . -name '*.crt' | sort | cut -b3-
+ ) > "${D}"/etc/ca-certificates.conf
+
+ mv "${D}"/usr/share/doc/{ca-certificates,${PF}} || die
+ prepalldocs
+
+ echo 'CONFIG_PROTECT_MASK="/etc/ca-certificates.conf"' > 98ca-certificates
+ doenvd 98ca-certificates
+}
+
+pkg_postinst() {
+ if [ "${ROOT}" = "/" ] ; then
+ # However it's too overzealous when the user has custom certs in place.
+ # --fresh is to clean up dangling symlinks
+ update-ca-certificates
+ fi
+
+ local c badcerts=0
+ for c in $(find -L "${ROOT}"etc/ssl/certs/ -type l) ; do
+ ewarn "Broken symlink for a certificate at $c"
+ badcerts=1
+ done
+ if [ $badcerts -eq 1 ]; then
+ ewarn "You MUST remove the above broken symlinks"
+ ewarn "Otherwise any SSL validation that use the directory may fail!"
+ ewarn "To batch-remove them, run:"
+ ewarn "find -L ${ROOT}etc/ssl/certs/ -type l -exec rm {} +"
+ fi
+}
diff --git a/app-misc/ca-certificates/ca-certificates-20110502-r2.ebuild b/app-misc/ca-certificates/ca-certificates-20110502-r2.ebuild
new file mode 100644
index 000000000000..deb91a980a9d
--- /dev/null
+++ b/app-misc/ca-certificates/ca-certificates-20110502-r2.ebuild
@@ -0,0 +1,87 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="3"
+
+inherit eutils
+
+DESCRIPTION="Common CA Certificates PEM files"
+HOMEPAGE="http://packages.debian.org/sid/ca-certificates"
+SRC_URI="mirror://debian/pool/main/c/${PN}/${PN}_${PV}+nmu1_all.deb"
+
+LICENSE="MPL-1.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
+IUSE=""
+
+DEPEND="|| ( >=sys-apps/coreutils-6.10-r1 sys-apps/mktemp sys-freebsd/freebsd-ubin )"
+RDEPEND="${DEPEND}
+ dev-libs/openssl
+ sys-apps/debianutils
+ kernel_AIX? ( app-arch/deb2targz )" # platforms like AIX don't have a good ar
+
+S=${WORKDIR}
+
+pkg_setup() {
+ # For the conversion to having it in CONFIG_PROTECT_MASK,
+ # we need to tell users about it once manually first.
+ [[ -f "${EPREFIX}"/etc/env.d/98ca-certificates ]] \
+ || ewarn "You should run update-ca-certificates manually after etc-update"
+}
+
+src_unpack() {
+ unpack ${A}
+ unpack ./data.tar.gz
+ rm -f control.tar.gz data.tar.gz debian-binary
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-20090709-root.patch
+}
+
+src_compile() {
+ (
+ echo "# Automatically generated by ${CATEGORY}/${PF}"
+ echo "# $(date -u)"
+ echo "# Do not edit."
+ cd "${S}"/usr/share/ca-certificates
+ find * -name '*.crt' | LC_ALL=C sort
+ ) > "${S}"/etc/ca-certificates.conf
+
+ sed -i "/^ROOT=""/s:=.*:='${EPREFIX}':" "${S}"/usr/sbin/update-ca-certificates || die
+ "${S}"/usr/sbin/update-ca-certificates --root "${S}"
+}
+
+src_install() {
+ mkdir -p "${ED}"
+ cp -pPR * "${ED}"/ || die
+
+ mv "${ED}"/usr/share/doc/{ca-certificates,${PF}} || die
+ prepalldocs
+
+ echo 'CONFIG_PROTECT_MASK="/etc/ca-certificates.conf"' > 98ca-certificates
+ doenvd 98ca-certificates
+}
+
+pkg_postinst() {
+ if [ -d "${EROOT}/usr/local/share/ca-certificates" ] ; then
+ # if the user has local certs, we need to rebuild again
+ # to include their stuff in the db.
+ # However it's too overzealous when the user has custom certs in place.
+ # --fresh is to clean up dangling symlinks
+ "${EROOT}"/usr/sbin/update-ca-certificates --root "${EROOT}"
+ fi
+
+ local c badcerts=0
+ for c in $(find -L "${EROOT}"etc/ssl/certs/ -type l) ; do
+ ewarn "Broken symlink for a certificate at $c"
+ badcerts=1
+ done
+ if [ $badcerts -eq 1 ]; then
+ ewarn "You MUST remove the above broken symlinks"
+ ewarn "Otherwise any SSL validation that use the directory may fail!"
+ ewarn "To batch-remove them, run:"
+ ewarn "find -L ${EROOT}etc/ssl/certs/ -type l -exec rm {} +"
+ fi
+}
diff --git a/app-misc/ca-certificates/ca-certificates-20110502-r3.ebuild b/app-misc/ca-certificates/ca-certificates-20110502-r3.ebuild
new file mode 100644
index 000000000000..4e47b1e95568
--- /dev/null
+++ b/app-misc/ca-certificates/ca-certificates-20110502-r3.ebuild
@@ -0,0 +1,95 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="3"
+
+inherit eutils
+
+DESCRIPTION="Common CA Certificates PEM files"
+HOMEPAGE="http://packages.debian.org/sid/ca-certificates"
+SRC_URI="mirror://debian/pool/main/c/${PN}/${PN}_${PV}+nmu1_all.deb"
+
+LICENSE="MPL-1.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
+IUSE=""
+
+# platforms like AIX don't have a good ar
+DEPEND="kernel_AIX? ( app-arch/deb2targz )"
+# openssl: we run `c_rehash`
+# debianutils: we run `run-parts`
+RDEPEND="${DEPEND}
+ dev-libs/openssl
+ sys-apps/debianutils"
+
+S=${WORKDIR}
+
+pkg_setup() {
+ # For the conversion to having it in CONFIG_PROTECT_MASK,
+ # we need to tell users about it once manually first.
+ [[ -f "${EPREFIX}"/etc/env.d/98ca-certificates ]] \
+ || ewarn "You should run update-ca-certificates manually after etc-update"
+}
+
+src_unpack() {
+ if [[ -n ${EPREFIX} ]] ; then
+ # need to perform everything in the offset, #381937
+ mkdir -p "./${EPREFIX}"
+ cd "./${EPREFIX}" || die
+ fi
+ unpack ${A}
+ unpack ./data.tar.gz
+ rm -f control.tar.gz data.tar.gz debian-binary
+}
+
+src_prepare() {
+ cd "./${EPREFIX}" || die
+ epatch "${FILESDIR}"/${PN}-20090709-root.patch
+ sed -i -e '/="$ROOT/s:ROOT/:ROOT'"${EPREFIX}"'/:' \
+ usr/sbin/update-ca-certificates || die
+}
+
+src_compile() {
+ (
+ echo "# Automatically generated by ${CATEGORY}/${PF}"
+ echo "# $(date -u)"
+ echo "# Do not edit."
+ cd "${S}${EPREFIX}"/usr/share/ca-certificates
+ find * -name '*.crt' | LC_ALL=C sort
+ ) > "${S}${EPREFIX}"/etc/ca-certificates.conf
+
+ "${S}${EPREFIX}"/usr/sbin/update-ca-certificates --root "${S}"
+}
+
+src_install() {
+ cp -pPR * "${D}"/ || die
+
+ mv "${ED}"/usr/share/doc/{ca-certificates,${PF}} || die
+ prepalldocs
+
+ echo 'CONFIG_PROTECT_MASK="/etc/ca-certificates.conf"' > 98ca-certificates
+ doenvd 98ca-certificates
+}
+
+pkg_postinst() {
+ if [ -d "${EROOT}/usr/local/share/ca-certificates" ] ; then
+ # if the user has local certs, we need to rebuild again
+ # to include their stuff in the db.
+ # However it's too overzealous when the user has custom certs in place.
+ # --fresh is to clean up dangling symlinks
+ "${EROOT}"/usr/sbin/update-ca-certificates --root "${EROOT}"
+ fi
+
+ local c badcerts=0
+ for c in $(find -L "${EROOT}"etc/ssl/certs/ -type l) ; do
+ ewarn "Broken symlink for a certificate at $c"
+ badcerts=1
+ done
+ if [ $badcerts -eq 1 ]; then
+ ewarn "You MUST remove the above broken symlinks"
+ ewarn "Otherwise any SSL validation that use the directory may fail!"
+ ewarn "To batch-remove them, run:"
+ ewarn "find -L ${EROOT}etc/ssl/certs/ -type l -exec rm {} +"
+ fi
+}
diff --git a/app-misc/ca-certificates/ca-certificates-20110502-r4.ebuild b/app-misc/ca-certificates/ca-certificates-20110502-r4.ebuild
new file mode 100644
index 000000000000..3aaa519e4ca9
--- /dev/null
+++ b/app-misc/ca-certificates/ca-certificates-20110502-r4.ebuild
@@ -0,0 +1,98 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="3"
+
+inherit eutils
+
+DESCRIPTION="Common CA Certificates PEM files"
+HOMEPAGE="http://packages.debian.org/sid/ca-certificates"
+SRC_URI="mirror://debian/pool/main/c/${PN}/${PN}_${PV}+nmu1_all.deb"
+
+LICENSE="MPL-1.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
+IUSE=""
+
+# platforms like AIX don't have a good ar
+DEPEND="kernel_AIX? ( app-arch/deb2targz )"
+# openssl: we run `c_rehash`
+# debianutils: we run `run-parts`
+RDEPEND="${DEPEND}
+ dev-libs/openssl
+ sys-apps/debianutils"
+
+S=${WORKDIR}
+
+pkg_setup() {
+ # For the conversion to having it in CONFIG_PROTECT_MASK,
+ # we need to tell users about it once manually first.
+ [[ -f "${EPREFIX}"/etc/env.d/98ca-certificates ]] \
+ || ewarn "You should run update-ca-certificates manually after etc-update"
+}
+
+src_unpack() {
+ if [[ -n ${EPREFIX} ]] ; then
+ # need to perform everything in the offset, #381937
+ mkdir -p "./${EPREFIX}"
+ cd "./${EPREFIX}" || die
+ fi
+ unpack ${A}
+ unpack ./data.tar.gz
+ rm -f control.tar.gz data.tar.gz debian-binary
+}
+
+src_prepare() {
+ cd "./${EPREFIX}" || die
+ epatch "${FILESDIR}"/${PN}-20110502-root.patch
+ local relp=$(echo "${EPREFIX}" | sed -e 's:[^/]\+:..:g')
+ sed -i \
+ -e '/="$ROOT/s:ROOT/:ROOT'"${EPREFIX}"'/:' \
+ -e '/RELPATH="\.\./s:"$:'"${relp}"'":' \
+ usr/sbin/update-ca-certificates || die
+}
+
+src_compile() {
+ (
+ echo "# Automatically generated by ${CATEGORY}/${PF}"
+ echo "# $(date -u)"
+ echo "# Do not edit."
+ cd "${S}${EPREFIX}"/usr/share/ca-certificates
+ find * -name '*.crt' | LC_ALL=C sort
+ ) > "${S}${EPREFIX}"/etc/ca-certificates.conf
+
+ sh "${S}${EPREFIX}"/usr/sbin/update-ca-certificates --root "${S}" || die
+}
+
+src_install() {
+ cp -pPR * "${D}"/ || die
+
+ mv "${ED}"/usr/share/doc/{ca-certificates,${PF}} || die
+ prepalldocs
+
+ echo 'CONFIG_PROTECT_MASK="/etc/ca-certificates.conf"' > 98ca-certificates
+ doenvd 98ca-certificates
+}
+
+pkg_postinst() {
+ if [ -d "${EROOT}/usr/local/share/ca-certificates" ] ; then
+ # if the user has local certs, we need to rebuild again
+ # to include their stuff in the db.
+ # However it's too overzealous when the user has custom certs in place.
+ # --fresh is to clean up dangling symlinks
+ "${EROOT}"/usr/sbin/update-ca-certificates --root "${EROOT}"
+ fi
+
+ local c badcerts=0
+ for c in $(find -L "${EROOT}"etc/ssl/certs/ -type l) ; do
+ ewarn "Broken symlink for a certificate at $c"
+ badcerts=1
+ done
+ if [ $badcerts -eq 1 ]; then
+ ewarn "You MUST remove the above broken symlinks"
+ ewarn "Otherwise any SSL validation that use the directory may fail!"
+ ewarn "To batch-remove them, run:"
+ ewarn "find -L ${EROOT}etc/ssl/certs/ -type l -exec rm {} +"
+ fi
+}
diff --git a/app-misc/ca-certificates/ca-certificates-20110502.ebuild b/app-misc/ca-certificates/ca-certificates-20110502.ebuild
new file mode 100644
index 000000000000..1e074c085562
--- /dev/null
+++ b/app-misc/ca-certificates/ca-certificates-20110502.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit eutils
+
+DESCRIPTION="Common CA Certificates PEM files"
+HOMEPAGE="http://packages.debian.org/sid/ca-certificates"
+SRC_URI="mirror://debian/pool/main/c/${PN}/${PN}_${PV}_all.deb"
+
+LICENSE="MPL-1.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
+IUSE=""
+
+DEPEND="|| ( >=sys-apps/coreutils-6.10-r1 sys-apps/mktemp sys-freebsd/freebsd-ubin )"
+RDEPEND="${DEPEND}
+ dev-libs/openssl
+ sys-apps/debianutils"
+
+S=${WORKDIR}
+
+src_unpack() {
+ unpack ${A}
+ unpack ./data.tar.gz
+ rm -f control.tar.gz data.tar.gz debian-binary
+}
+
+pkg_setup() {
+ # For the conversion to having it in CONFIG_PROTECT_MASK,
+ # we need to tell users about it once manually first.
+ [[ -f /etc/env.d/98ca-certificates ]] \
+ || ewarn "You should run update-ca-certificates manually after etc-update"
+}
+
+src_install() {
+ cp -pPR * "${D}"/ || die
+
+ (
+ echo "# Automatically generated by ${CATEGORY}/${PF}"
+ echo "# $(date -u)"
+ echo "# Do not edit."
+ cd "${D}"/usr/share/ca-certificates
+ find . -name '*.crt' | sort | cut -b3-
+ ) > "${D}"/etc/ca-certificates.conf
+
+ mv "${D}"/usr/share/doc/{ca-certificates,${PF}} || die
+ prepalldocs
+
+ echo 'CONFIG_PROTECT_MASK="/etc/ca-certificates.conf"' > 98ca-certificates
+ doenvd 98ca-certificates
+}
+
+pkg_postinst() {
+ if [ "${ROOT}" = "/" ] ; then
+ # However it's too overzealous when the user has custom certs in place.
+ # --fresh is to clean up dangling symlinks
+ update-ca-certificates
+ fi
+
+ local c badcerts=0
+ for c in $(find -L "${ROOT}"etc/ssl/certs/ -type l) ; do
+ ewarn "Broken symlink for a certificate at $c"
+ badcerts=1
+ done
+ if [ $badcerts -eq 1 ]; then
+ ewarn "You MUST remove the above broken symlinks"
+ ewarn "Otherwise any SSL validation that use the directory may fail!"
+ ewarn "To batch-remove them, run:"
+ ewarn "find -L ${ROOT}etc/ssl/certs/ -type l -exec rm {} +"
+ fi
+}
diff --git a/app-misc/ca-certificates/ca-certificates-20111025.ebuild b/app-misc/ca-certificates/ca-certificates-20111025.ebuild
new file mode 100644
index 000000000000..6934f8ccc450
--- /dev/null
+++ b/app-misc/ca-certificates/ca-certificates-20111025.ebuild
@@ -0,0 +1,100 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="3"
+
+inherit eutils
+
+DESCRIPTION="Common CA Certificates PEM files"
+HOMEPAGE="http://packages.debian.org/sid/ca-certificates"
+#NMU_PR="1"
+SRC_URI="mirror://debian/pool/main/c/${PN}/${PN}_${PV}${NMU_PR:++nmu}${NMU_PR}_all.deb"
+
+LICENSE="MPL-1.1"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
+IUSE=""
+
+# platforms like AIX don't have a good ar
+DEPEND="kernel_AIX? ( app-arch/deb2targz )
+ !<sys-apps/portage-2.1.10.41"
+# openssl: we run `c_rehash`
+# debianutils: we run `run-parts`
+RDEPEND="${DEPEND}
+ dev-libs/openssl
+ sys-apps/debianutils"
+
+S=${WORKDIR}
+
+pkg_setup() {
+ # For the conversion to having it in CONFIG_PROTECT_MASK,
+ # we need to tell users about it once manually first.
+ [[ -f "${EPREFIX}"/etc/env.d/98ca-certificates ]] \
+ || ewarn "You should run update-ca-certificates manually after etc-update"
+}
+
+src_unpack() {
+ if [[ -n ${EPREFIX} ]] ; then
+ # need to perform everything in the offset, #381937
+ mkdir -p "./${EPREFIX}"
+ cd "./${EPREFIX}" || die
+ fi
+ unpack ${A}
+ unpack ./data.tar.gz
+ rm -f control.tar.gz data.tar.gz debian-binary
+}
+
+src_prepare() {
+ cd "./${EPREFIX}" || die
+ epatch "${FILESDIR}"/${PN}-20110502-root.patch
+ local relp=$(echo "${EPREFIX}" | sed -e 's:[^/]\+:..:g')
+ sed -i \
+ -e '/="$ROOT/s:ROOT/:ROOT'"${EPREFIX}"'/:' \
+ -e '/RELPATH="\.\./s:"$:'"${relp}"'":' \
+ usr/sbin/update-ca-certificates || die
+}
+
+src_compile() {
+ (
+ echo "# Automatically generated by ${CATEGORY}/${PF}"
+ echo "# $(date -u)"
+ echo "# Do not edit."
+ cd "${S}${EPREFIX}"/usr/share/ca-certificates
+ find * -name '*.crt' | LC_ALL=C sort
+ ) > "${S}${EPREFIX}"/etc/ca-certificates.conf
+
+ sh "${S}${EPREFIX}"/usr/sbin/update-ca-certificates --root "${S}" || die
+}
+
+src_install() {
+ cp -pPR * "${D}"/ || die
+
+ mv "${ED}"/usr/share/doc/{ca-certificates,${PF}} || die
+ prepalldocs
+
+ echo 'CONFIG_PROTECT_MASK="/etc/ca-certificates.conf"' > 98ca-certificates
+ doenvd 98ca-certificates
+}
+
+pkg_postinst() {
+ if [ -d "${EROOT}/usr/local/share/ca-certificates" ] ; then
+ # if the user has local certs, we need to rebuild again
+ # to include their stuff in the db.
+ # However it's too overzealous when the user has custom certs in place.
+ # --fresh is to clean up dangling symlinks
+ "${EROOT}"/usr/sbin/update-ca-certificates --root "${EROOT}"
+ fi
+
+ local c badcerts=0
+ for c in $(find -L "${EROOT}"etc/ssl/certs/ -type l) ; do
+ ewarn "Broken symlink for a certificate at $c"
+ badcerts=1
+ done
+ if [ $badcerts -eq 1 ]; then
+ ewarn "You MUST remove the above broken symlinks"
+ ewarn "Otherwise any SSL validation that use the directory may fail!"
+ ewarn "To batch-remove them, run:"
+ ewarn "find -L ${EROOT}etc/ssl/certs/ -type l -exec rm {} +"
+ fi
+}
diff --git a/app-misc/ca-certificates/ca-certificates-20120212.ebuild b/app-misc/ca-certificates/ca-certificates-20120212.ebuild
new file mode 100644
index 000000000000..9b55707ce50a
--- /dev/null
+++ b/app-misc/ca-certificates/ca-certificates-20120212.ebuild
@@ -0,0 +1,100 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="3"
+
+inherit eutils
+
+DESCRIPTION="Common CA Certificates PEM files"
+HOMEPAGE="http://packages.debian.org/sid/ca-certificates"
+#NMU_PR="1"
+SRC_URI="mirror://debian/pool/main/c/${PN}/${PN}_${PV}${NMU_PR:++nmu}${NMU_PR}_all.deb"
+
+LICENSE="MPL-1.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
+IUSE=""
+
+# platforms like AIX don't have a good ar
+DEPEND="kernel_AIX? ( app-arch/deb2targz )
+ !<sys-apps/portage-2.1.10.41"
+# openssl: we run `c_rehash`
+# debianutils: we run `run-parts`
+RDEPEND="${DEPEND}
+ dev-libs/openssl
+ sys-apps/debianutils"
+
+S=${WORKDIR}
+
+pkg_setup() {
+ # For the conversion to having it in CONFIG_PROTECT_MASK,
+ # we need to tell users about it once manually first.
+ [[ -f "${EPREFIX}"/etc/env.d/98ca-certificates ]] \
+ || ewarn "You should run update-ca-certificates manually after etc-update"
+}
+
+src_unpack() {
+ if [[ -n ${EPREFIX} ]] ; then
+ # need to perform everything in the offset, #381937
+ mkdir -p "./${EPREFIX}"
+ cd "./${EPREFIX}" || die
+ fi
+ unpack ${A}
+ unpack ./data.tar.gz
+ rm -f control.tar.gz data.tar.gz debian-binary
+}
+
+src_prepare() {
+ cd "./${EPREFIX}" || die
+ epatch "${FILESDIR}"/${PN}-20110502-root.patch
+ local relp=$(echo "${EPREFIX}" | sed -e 's:[^/]\+:..:g')
+ sed -i \
+ -e '/="$ROOT/s:ROOT/:ROOT'"${EPREFIX}"'/:' \
+ -e '/RELPATH="\.\./s:"$:'"${relp}"'":' \
+ usr/sbin/update-ca-certificates || die
+}
+
+src_compile() {
+ (
+ echo "# Automatically generated by ${CATEGORY}/${PF}"
+ echo "# $(date -u)"
+ echo "# Do not edit."
+ cd "${S}${EPREFIX}"/usr/share/ca-certificates
+ find * -name '*.crt' | LC_ALL=C sort
+ ) > "${S}${EPREFIX}"/etc/ca-certificates.conf
+
+ sh "${S}${EPREFIX}"/usr/sbin/update-ca-certificates --root "${S}" || die
+}
+
+src_install() {
+ cp -pPR * "${D}"/ || die
+
+ mv "${ED}"/usr/share/doc/{ca-certificates,${PF}} || die
+ prepalldocs
+
+ echo 'CONFIG_PROTECT_MASK="/etc/ca-certificates.conf"' > 98ca-certificates
+ doenvd 98ca-certificates
+}
+
+pkg_postinst() {
+ if [ -d "${EROOT}/usr/local/share/ca-certificates" ] ; then
+ # if the user has local certs, we need to rebuild again
+ # to include their stuff in the db.
+ # However it's too overzealous when the user has custom certs in place.
+ # --fresh is to clean up dangling symlinks
+ "${EROOT}"/usr/sbin/update-ca-certificates --root "${EROOT}"
+ fi
+
+ local c badcerts=0
+ for c in $(find -L "${EROOT}"etc/ssl/certs/ -type l) ; do
+ ewarn "Broken symlink for a certificate at $c"
+ badcerts=1
+ done
+ if [ $badcerts -eq 1 ]; then
+ ewarn "You MUST remove the above broken symlinks"
+ ewarn "Otherwise any SSL validation that use the directory may fail!"
+ ewarn "To batch-remove them, run:"
+ ewarn "find -L ${EROOT}etc/ssl/certs/ -type l -exec rm {} +"
+ fi
+}
diff --git a/app-misc/ca-certificates/ca-certificates-20120623.ebuild b/app-misc/ca-certificates/ca-certificates-20120623.ebuild
new file mode 100644
index 000000000000..9b55707ce50a
--- /dev/null
+++ b/app-misc/ca-certificates/ca-certificates-20120623.ebuild
@@ -0,0 +1,100 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="3"
+
+inherit eutils
+
+DESCRIPTION="Common CA Certificates PEM files"
+HOMEPAGE="http://packages.debian.org/sid/ca-certificates"
+#NMU_PR="1"
+SRC_URI="mirror://debian/pool/main/c/${PN}/${PN}_${PV}${NMU_PR:++nmu}${NMU_PR}_all.deb"
+
+LICENSE="MPL-1.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
+IUSE=""
+
+# platforms like AIX don't have a good ar
+DEPEND="kernel_AIX? ( app-arch/deb2targz )
+ !<sys-apps/portage-2.1.10.41"
+# openssl: we run `c_rehash`
+# debianutils: we run `run-parts`
+RDEPEND="${DEPEND}
+ dev-libs/openssl
+ sys-apps/debianutils"
+
+S=${WORKDIR}
+
+pkg_setup() {
+ # For the conversion to having it in CONFIG_PROTECT_MASK,
+ # we need to tell users about it once manually first.
+ [[ -f "${EPREFIX}"/etc/env.d/98ca-certificates ]] \
+ || ewarn "You should run update-ca-certificates manually after etc-update"
+}
+
+src_unpack() {
+ if [[ -n ${EPREFIX} ]] ; then
+ # need to perform everything in the offset, #381937
+ mkdir -p "./${EPREFIX}"
+ cd "./${EPREFIX}" || die
+ fi
+ unpack ${A}
+ unpack ./data.tar.gz
+ rm -f control.tar.gz data.tar.gz debian-binary
+}
+
+src_prepare() {
+ cd "./${EPREFIX}" || die
+ epatch "${FILESDIR}"/${PN}-20110502-root.patch
+ local relp=$(echo "${EPREFIX}" | sed -e 's:[^/]\+:..:g')
+ sed -i \
+ -e '/="$ROOT/s:ROOT/:ROOT'"${EPREFIX}"'/:' \
+ -e '/RELPATH="\.\./s:"$:'"${relp}"'":' \
+ usr/sbin/update-ca-certificates || die
+}
+
+src_compile() {
+ (
+ echo "# Automatically generated by ${CATEGORY}/${PF}"
+ echo "# $(date -u)"
+ echo "# Do not edit."
+ cd "${S}${EPREFIX}"/usr/share/ca-certificates
+ find * -name '*.crt' | LC_ALL=C sort
+ ) > "${S}${EPREFIX}"/etc/ca-certificates.conf
+
+ sh "${S}${EPREFIX}"/usr/sbin/update-ca-certificates --root "${S}" || die
+}
+
+src_install() {
+ cp -pPR * "${D}"/ || die
+
+ mv "${ED}"/usr/share/doc/{ca-certificates,${PF}} || die
+ prepalldocs
+
+ echo 'CONFIG_PROTECT_MASK="/etc/ca-certificates.conf"' > 98ca-certificates
+ doenvd 98ca-certificates
+}
+
+pkg_postinst() {
+ if [ -d "${EROOT}/usr/local/share/ca-certificates" ] ; then
+ # if the user has local certs, we need to rebuild again
+ # to include their stuff in the db.
+ # However it's too overzealous when the user has custom certs in place.
+ # --fresh is to clean up dangling symlinks
+ "${EROOT}"/usr/sbin/update-ca-certificates --root "${EROOT}"
+ fi
+
+ local c badcerts=0
+ for c in $(find -L "${EROOT}"etc/ssl/certs/ -type l) ; do
+ ewarn "Broken symlink for a certificate at $c"
+ badcerts=1
+ done
+ if [ $badcerts -eq 1 ]; then
+ ewarn "You MUST remove the above broken symlinks"
+ ewarn "Otherwise any SSL validation that use the directory may fail!"
+ ewarn "To batch-remove them, run:"
+ ewarn "find -L ${EROOT}etc/ssl/certs/ -type l -exec rm {} +"
+ fi
+}
diff --git a/app-misc/ca-certificates/ca-certificates-20121114.ebuild b/app-misc/ca-certificates/ca-certificates-20121114.ebuild
new file mode 100644
index 000000000000..6c0e2c46f19a
--- /dev/null
+++ b/app-misc/ca-certificates/ca-certificates-20121114.ebuild
@@ -0,0 +1,100 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="3"
+
+inherit eutils
+
+DESCRIPTION="Common CA Certificates PEM files"
+HOMEPAGE="http://packages.debian.org/sid/ca-certificates"
+#NMU_PR="1"
+SRC_URI="mirror://debian/pool/main/c/${PN}/${PN}_${PV}${NMU_PR:++nmu}${NMU_PR}_all.deb"
+
+LICENSE="MPL-1.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
+IUSE=""
+
+# platforms like AIX don't have a good ar
+DEPEND="kernel_AIX? ( app-arch/deb2targz )
+ !<sys-apps/portage-2.1.10.41"
+# openssl: we run `c_rehash`
+# debianutils: we run `run-parts`
+RDEPEND="${DEPEND}
+ dev-libs/openssl
+ sys-apps/debianutils"
+
+S=${WORKDIR}
+
+pkg_setup() {
+ # For the conversion to having it in CONFIG_PROTECT_MASK,
+ # we need to tell users about it once manually first.
+ [[ -f "${EPREFIX}"/etc/env.d/98ca-certificates ]] \
+ || ewarn "You should run update-ca-certificates manually after etc-update"
+}
+
+src_unpack() {
+ if [[ -n ${EPREFIX} ]] ; then
+ # need to perform everything in the offset, #381937
+ mkdir -p "./${EPREFIX}"
+ cd "./${EPREFIX}" || die
+ fi
+ unpack ${A}
+ unpack ./data.tar.gz
+ rm -f control.tar.gz data.tar.gz debian-binary
+}
+
+src_prepare() {
+ cd "./${EPREFIX}" || die
+ epatch "${FILESDIR}"/${PN}-20110502-root.patch
+ local relp=$(echo "${EPREFIX}" | sed -e 's:[^/]\+:..:g')
+ sed -i \
+ -e '/="$ROOT/s:ROOT/:ROOT'"${EPREFIX}"'/:' \
+ -e '/RELPATH="\.\./s:"$:'"${relp}"'":' \
+ usr/sbin/update-ca-certificates || die
+}
+
+src_compile() {
+ (
+ echo "# Automatically generated by ${CATEGORY}/${PF}"
+ echo "# $(date -u)"
+ echo "# Do not edit."
+ cd "${S}${EPREFIX}"/usr/share/ca-certificates
+ find * -name '*.crt' | LC_ALL=C sort
+ ) > "${S}${EPREFIX}"/etc/ca-certificates.conf
+
+ sh "${S}${EPREFIX}"/usr/sbin/update-ca-certificates --root "${S}" || die
+}
+
+src_install() {
+ cp -pPR * "${D}"/ || die
+
+ mv "${ED}"/usr/share/doc/{ca-certificates,${PF}} || die
+ prepalldocs
+
+ echo 'CONFIG_PROTECT_MASK="/etc/ca-certificates.conf"' > 98ca-certificates
+ doenvd 98ca-certificates
+}
+
+pkg_postinst() {
+ if [ -d "${EROOT}/usr/local/share/ca-certificates" ] ; then
+ # if the user has local certs, we need to rebuild again
+ # to include their stuff in the db.
+ # However it's too overzealous when the user has custom certs in place.
+ # --fresh is to clean up dangling symlinks
+ "${EROOT}"/usr/sbin/update-ca-certificates --root "${EROOT}"
+ fi
+
+ local c badcerts=0
+ for c in $(find -L "${EROOT}"etc/ssl/certs/ -type l) ; do
+ ewarn "Broken symlink for a certificate at $c"
+ badcerts=1
+ done
+ if [ $badcerts -eq 1 ]; then
+ ewarn "You MUST remove the above broken symlinks"
+ ewarn "Otherwise any SSL validation that use the directory may fail!"
+ ewarn "To batch-remove them, run:"
+ ewarn "find -L ${EROOT}etc/ssl/certs/ -type l -exec rm {} +"
+ fi
+}
diff --git a/app-misc/ca-certificates/ca-certificates-20130119.ebuild b/app-misc/ca-certificates/ca-certificates-20130119.ebuild
new file mode 100644
index 000000000000..8e6e4f18b3c7
--- /dev/null
+++ b/app-misc/ca-certificates/ca-certificates-20130119.ebuild
@@ -0,0 +1,98 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="3"
+
+inherit eutils unpacker
+
+DESCRIPTION="Common CA Certificates PEM files"
+HOMEPAGE="http://packages.debian.org/sid/ca-certificates"
+#NMU_PR="1"
+SRC_URI="mirror://debian/pool/main/c/${PN}/${PN}_${PV}${NMU_PR:++nmu}${NMU_PR}_all.deb"
+
+LICENSE="MPL-1.1"
+SLOT="0"
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
+IUSE=""
+
+# platforms like AIX don't have a good ar
+DEPEND="kernel_AIX? ( app-arch/deb2targz )
+ !<sys-apps/portage-2.1.10.41"
+# openssl: we run `c_rehash`
+# debianutils: we run `run-parts`
+RDEPEND="${DEPEND}
+ dev-libs/openssl
+ sys-apps/debianutils"
+
+S=${WORKDIR}
+
+pkg_setup() {
+ # For the conversion to having it in CONFIG_PROTECT_MASK,
+ # we need to tell users about it once manually first.
+ [[ -f "${EPREFIX}"/etc/env.d/98ca-certificates ]] \
+ || ewarn "You should run update-ca-certificates manually after etc-update"
+}
+
+src_unpack() {
+ if [[ -n ${EPREFIX} ]] ; then
+ # need to perform everything in the offset, #381937
+ mkdir -p "./${EPREFIX}"
+ cd "./${EPREFIX}" || die
+ fi
+ unpack_deb ${A}
+}
+
+src_prepare() {
+ cd "./${EPREFIX}" || die
+ epatch "${FILESDIR}"/${PN}-20110502-root.patch
+ local relp=$(echo "${EPREFIX}" | sed -e 's:[^/]\+:..:g')
+ sed -i \
+ -e '/="$ROOT/s:ROOT/:ROOT'"${EPREFIX}"'/:' \
+ -e '/RELPATH="\.\./s:"$:'"${relp}"'":' \
+ usr/sbin/update-ca-certificates || die
+}
+
+src_compile() {
+ (
+ echo "# Automatically generated by ${CATEGORY}/${PF}"
+ echo "# $(date -u)"
+ echo "# Do not edit."
+ cd "${S}${EPREFIX}"/usr/share/ca-certificates
+ find * -name '*.crt' | LC_ALL=C sort
+ ) > "${S}${EPREFIX}"/etc/ca-certificates.conf
+
+ sh "${S}${EPREFIX}"/usr/sbin/update-ca-certificates --root "${S}" || die
+}
+
+src_install() {
+ cp -pPR . "${D}"/ || die
+
+ mv "${ED}"/usr/share/doc/{ca-certificates,${PF}} || die
+ prepalldocs
+
+ echo 'CONFIG_PROTECT_MASK="/etc/ca-certificates.conf"' > 98ca-certificates
+ doenvd 98ca-certificates
+}
+
+pkg_postinst() {
+ if [ -d "${EROOT}/usr/local/share/ca-certificates" ] ; then
+ # if the user has local certs, we need to rebuild again
+ # to include their stuff in the db.
+ # However it's too overzealous when the user has custom certs in place.
+ # --fresh is to clean up dangling symlinks
+ "${EROOT}"/usr/sbin/update-ca-certificates --root "${EROOT}"
+ fi
+
+ local c badcerts=0
+ for c in $(find -L "${EROOT}"etc/ssl/certs/ -type l) ; do
+ ewarn "Broken symlink for a certificate at $c"
+ badcerts=1
+ done
+ if [ $badcerts -eq 1 ]; then
+ ewarn "You MUST remove the above broken symlinks"
+ ewarn "Otherwise any SSL validation that use the directory may fail!"
+ ewarn "To batch-remove them, run:"
+ ewarn "find -L ${EROOT}etc/ssl/certs/ -type l -exec rm {} +"
+ fi
+}
diff --git a/app-misc/ca-certificates/ca-certificates-20130610.ebuild b/app-misc/ca-certificates/ca-certificates-20130610.ebuild
new file mode 100644
index 000000000000..8142937e118e
--- /dev/null
+++ b/app-misc/ca-certificates/ca-certificates-20130610.ebuild
@@ -0,0 +1,97 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+inherit eutils unpacker
+
+DESCRIPTION="Common CA Certificates PEM files"
+HOMEPAGE="http://packages.debian.org/sid/ca-certificates"
+#NMU_PR="1"
+SRC_URI="mirror://debian/pool/main/c/${PN}/${PN}_${PV}${NMU_PR:++nmu}${NMU_PR}_all.deb"
+
+LICENSE="MPL-1.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
+IUSE=""
+
+# platforms like AIX don't have a good ar
+DEPEND="kernel_AIX? ( app-arch/deb2targz )
+ !<sys-apps/portage-2.1.10.41"
+# openssl: we run `c_rehash`
+# debianutils: we run `run-parts`
+RDEPEND="${DEPEND}
+ dev-libs/openssl
+ sys-apps/debianutils"
+
+S=${WORKDIR}
+
+pkg_setup() {
+ # For the conversion to having it in CONFIG_PROTECT_MASK,
+ # we need to tell users about it once manually first.
+ [[ -f "${EPREFIX}"/etc/env.d/98ca-certificates ]] \
+ || ewarn "You should run update-ca-certificates manually after etc-update"
+}
+
+src_unpack() {
+ if [[ -n ${EPREFIX} ]] ; then
+ # need to perform everything in the offset, #381937
+ mkdir -p "./${EPREFIX}"
+ cd "./${EPREFIX}" || die
+ fi
+ unpack_deb ${A}
+}
+
+src_prepare() {
+ cd "./${EPREFIX}" || die
+ epatch "${FILESDIR}"/${PN}-20110502-root.patch
+ local relp=$(echo "${EPREFIX}" | sed -e 's:[^/]\+:..:g')
+ sed -i \
+ -e '/="$ROOT/s:ROOT/:ROOT'"${EPREFIX}"'/:' \
+ -e '/RELPATH="\.\./s:"$:'"${relp}"'":' \
+ usr/sbin/update-ca-certificates || die
+}
+
+src_compile() {
+ (
+ echo "# Automatically generated by ${CATEGORY}/${PF}"
+ echo "# $(date -u)"
+ echo "# Do not edit."
+ cd "${S}${EPREFIX}"/usr/share/ca-certificates
+ find * -name '*.crt' | LC_ALL=C sort
+ ) > "${S}${EPREFIX}"/etc/ca-certificates.conf
+
+ sh "${S}${EPREFIX}"/usr/sbin/update-ca-certificates --root "${S}" || die
+}
+
+src_install() {
+ cp -pPR . "${D}"/ || die
+
+ mv "${ED}"/usr/share/doc/{ca-certificates,${PF}} || die
+
+ echo 'CONFIG_PROTECT_MASK="/etc/ca-certificates.conf"' > 98ca-certificates
+ doenvd 98ca-certificates
+}
+
+pkg_postinst() {
+ if [ -d "${EROOT}/usr/local/share/ca-certificates" ] ; then
+ # if the user has local certs, we need to rebuild again
+ # to include their stuff in the db.
+ # However it's too overzealous when the user has custom certs in place.
+ # --fresh is to clean up dangling symlinks
+ "${EROOT}"/usr/sbin/update-ca-certificates --root "${EROOT}"
+ fi
+
+ local c badcerts=0
+ for c in $(find -L "${EROOT}"etc/ssl/certs/ -type l) ; do
+ ewarn "Broken symlink for a certificate at $c"
+ badcerts=1
+ done
+ if [ $badcerts -eq 1 ]; then
+ ewarn "You MUST remove the above broken symlinks"
+ ewarn "Otherwise any SSL validation that use the directory may fail!"
+ ewarn "To batch-remove them, run:"
+ ewarn "find -L ${EROOT}etc/ssl/certs/ -type l -exec rm {} +"
+ fi
+}
diff --git a/app-misc/ca-certificates/ca-certificates-20130906-r1.ebuild b/app-misc/ca-certificates/ca-certificates-20130906-r1.ebuild
new file mode 100644
index 000000000000..1147230ac23c
--- /dev/null
+++ b/app-misc/ca-certificates/ca-certificates-20130906-r1.ebuild
@@ -0,0 +1,95 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+inherit eutils unpacker
+
+DESCRIPTION="Common CA Certificates PEM files"
+HOMEPAGE="http://packages.debian.org/sid/ca-certificates"
+#NMU_PR="1"
+SRC_URI="mirror://debian/pool/main/c/${PN}/${PN}_${PV}${NMU_PR:++nmu}${NMU_PR}_all.deb"
+
+LICENSE="MPL-1.1"
+SLOT="0"
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
+IUSE=""
+
+# platforms like AIX don't have a good ar
+DEPEND="kernel_AIX? ( app-arch/deb2targz )
+ !<sys-apps/portage-2.1.10.41"
+# openssl: we run `c_rehash`
+# debianutils: we run `run-parts`
+RDEPEND="${DEPEND}
+ dev-libs/openssl
+ sys-apps/debianutils"
+
+S=${WORKDIR}
+
+pkg_setup() {
+ # For the conversion to having it in CONFIG_PROTECT_MASK,
+ # we need to tell users about it once manually first.
+ [[ -f "${EPREFIX}"/etc/env.d/98ca-certificates ]] \
+ || ewarn "You should run update-ca-certificates manually after etc-update"
+}
+
+src_unpack() {
+ if [[ -n ${EPREFIX} ]] ; then
+ # need to perform everything in the offset, #381937
+ mkdir -p "./${EPREFIX}"
+ cd "./${EPREFIX}" || die
+ fi
+ unpack_deb ${A}
+}
+
+src_prepare() {
+ cd "./${EPREFIX}" || die
+ epatch "${FILESDIR}"/${PN}-20110502-root.patch
+ local relp=$(echo "${EPREFIX}" | sed -e 's:[^/]\+:..:g')
+ sed -i \
+ -e '/="$ROOT/s:ROOT/:ROOT'"${EPREFIX}"'/:' \
+ -e '/RELPATH="\.\./s:"$:'"${relp}"'":' \
+ usr/sbin/update-ca-certificates || die
+}
+
+src_compile() {
+ (
+ echo "# Automatically generated by ${CATEGORY}/${PF}"
+ echo "# $(date -u)"
+ echo "# Do not edit."
+ cd "${S}${EPREFIX}"/usr/share/ca-certificates
+ find * -name '*.crt' | LC_ALL=C sort
+ ) > "${S}${EPREFIX}"/etc/ca-certificates.conf
+
+ sh "${S}${EPREFIX}"/usr/sbin/update-ca-certificates --root "${S}" || die
+}
+
+src_install() {
+ cp -pPR . "${D}"/ || die
+
+ mv "${ED}"/usr/share/doc/{ca-certificates,${PF}} || die
+
+ echo 'CONFIG_PROTECT_MASK="/etc/ca-certificates.conf"' > 98ca-certificates
+ doenvd 98ca-certificates
+}
+
+pkg_postinst() {
+ if [ -d "${EROOT}/usr/local/share/ca-certificates" ] ; then
+ # if the user has local certs, we need to rebuild again
+ # to include their stuff in the db.
+ # However it's too overzealous when the user has custom certs in place.
+ # --fresh is to clean up dangling symlinks
+ "${EROOT}"/usr/sbin/update-ca-certificates --root "${EROOT}"
+ fi
+
+ local c badcerts=0
+ for c in $(find -L "${EROOT}"etc/ssl/certs/ -type l) ; do
+ ewarn "Broken symlink for a certificate at $c"
+ badcerts=1
+ done
+ if [ $badcerts -eq 1 ]; then
+ ewarn "Removing the following broken symlinks:"
+ ewarn "$(find -L "${EROOT}"/etc/ssl/certs/ -type l -printf '%p -> %l\n' -delete)"
+ fi
+}
diff --git a/app-misc/ca-certificates/ca-certificates-20140223-r1.ebuild b/app-misc/ca-certificates/ca-certificates-20140223-r1.ebuild
new file mode 100644
index 000000000000..586020504363
--- /dev/null
+++ b/app-misc/ca-certificates/ca-certificates-20140223-r1.ebuild
@@ -0,0 +1,178 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+# The Debian ca-certificates package merely takes the CA database as it exists
+# in the nss package and repackages it for use by openssl.
+#
+# The issue with using the compiled debs directly is two fold:
+# - they do not update frequently enough for us to rely on them
+# - they pull the CA database from nss tip of tree rather than the release
+#
+# So we take the Debian source tools and combine them with the latest nss
+# release to produce (largely) the same end result. The difference is that
+# now we know our cert database is kept in sync with nss and, if need be,
+# can be sync with nss tip of tree more frequently to respond to bugs.
+
+# When triaging bugs from users, here's some handy tips:
+# - To see what cert is hitting errors, use openssl:
+# openssl s_client -port 443 -CApath /etc/ssl/certs/ -host $HOSTNAME
+# Focus on the errors written to stderr.
+#
+# - Look at the upstream log as to why certs were added/removed:
+# https://hg.mozilla.org/projects/nss/log/tip/lib/ckfw/builtins/certdata.txt
+#
+# - If people want to add/remove certs, tell them to file w/mozilla:
+# https://bugzilla.mozilla.org/enter_bug.cgi?product=NSS&component=CA%20Certificates&version=trunk
+
+EAPI="4"
+
+inherit eutils
+
+if [[ ${PV} == *.* ]] ; then
+ # Compile from source ourselves.
+ PRECOMPILED=false
+ inherit versionator
+
+ DEB_VER=$(get_version_component_range 1)
+ NSS_VER=$(get_version_component_range 2-)
+ RTM_NAME="NSS_${NSS_VER//./_}_RTM"
+else
+ # Debian precompiled version.
+ PRECOMPILED=true
+ inherit unpacker
+fi
+
+DESCRIPTION="Common CA Certificates PEM files"
+HOMEPAGE="http://packages.debian.org/sid/ca-certificates"
+if ${PRECOMPILED} ; then
+ #NMU_PR="1"
+ SRC_URI="mirror://debian/pool/main/c/${PN}/${PN}_${PV}${NMU_PR:++nmu}${NMU_PR}_all.deb"
+else
+ SRC_URI="mirror://debian/pool/main/c/${PN}/${PN}_${DEB_VER}${NMU_PR:++nmu}${NMU_PR}.tar.xz
+ ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/${RTM_NAME}/src/nss-${NSS_VER}.tar.gz
+ cacert? ( http://dev.gentoo.org/~anarchy/patches/nss-3.14.1-add_spi+cacerts_ca_certs.patch )"
+fi
+
+LICENSE="MPL-1.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
+IUSE=""
+${PRECOMPILED} || IUSE+=" +cacert"
+
+DEPEND=""
+if ${PRECOMPILED} ; then
+ # platforms like AIX don't have a good ar
+ DEPEND+="
+ kernel_AIX? ( app-arch/deb2targz )
+ !<sys-apps/portage-2.1.10.41"
+fi
+# openssl: we run `c_rehash`
+# debianutils: we run `run-parts`
+RDEPEND="${DEPEND}
+ dev-libs/openssl
+ sys-apps/debianutils"
+
+S=${WORKDIR}
+
+pkg_setup() {
+ # For the conversion to having it in CONFIG_PROTECT_MASK,
+ # we need to tell users about it once manually first.
+ [[ -f "${EPREFIX}"/etc/env.d/98ca-certificates ]] \
+ || ewarn "You should run update-ca-certificates manually after etc-update"
+}
+
+src_unpack() {
+ ${PRECOMPILED} || default
+
+ # Do all the work in the image subdir to avoid conflicting with source
+ # dirs in $WORKDIR. Need to perform everything in the offset #381937
+ mkdir -p "image/${EPREFIX}"
+ cd "image/${EPREFIX}" || die
+
+ ${PRECOMPILED} && unpacker_src_unpack
+}
+
+src_prepare() {
+ cd "image/${EPREFIX}" || die
+ if ! ${PRECOMPILED} ; then
+ mkdir -p usr/sbin
+ cp -p "${S}"/${PN}/sbin/update-ca-certificates usr/sbin/ || die
+
+ if use cacert ; then
+ pushd "${S}"/nss-${NSS_VER} >/dev/null
+ epatch "${DISTDIR}"/nss-3.14.1-add_spi+cacerts_ca_certs.patch
+ popd >/dev/null
+ fi
+ fi
+
+ epatch "${FILESDIR}"/${PN}-20110502-root.patch
+ local relp=$(echo "${EPREFIX}" | sed -e 's:[^/]\+:..:g')
+ sed -i \
+ -e '/="$ROOT/s:ROOT/:ROOT'"${EPREFIX}"'/:' \
+ -e '/RELPATH="\.\./s:"$:'"${relp}"'":' \
+ usr/sbin/update-ca-certificates || die
+}
+
+src_compile() {
+ cd "image/${EPREFIX}" || die
+ if ! ${PRECOMPILED} ; then
+ local d="${S}/${PN}/mozilla"
+ # Grab the database from the nss sources.
+ cp "${S}"/nss-${NSS_VER}/nss/lib/ckfw/builtins/{certdata.txt,nssckbi.h} "${d}" || die
+ emake -C "${d}"
+
+ # Now move the files to the same places that the precompiled would.
+ mkdir -p etc/ssl/certs etc/ca-certificates/update.d usr/share/ca-certificates/mozilla
+ if use cacert ; then
+ mkdir -p usr/share/ca-certificates/{cacert.org,spi-inc.org}
+ mv "${d}"/CAcert_Inc..crt usr/share/ca-certificates/cacert.org/cacert.org_root.crt || die
+ mv "${d}"/SPI_Inc..crt usr/share/ca-certificates/spi-inc.org/spi-cacert-2008.crt || die
+ fi
+ mv "${d}"/*.crt usr/share/ca-certificates/mozilla/ || die
+ else
+ mv usr/share/doc/{ca-certificates,${PF}} || die
+ fi
+
+ (
+ echo "# Automatically generated by ${CATEGORY}/${PF}"
+ echo "# $(date -u)"
+ echo "# Do not edit."
+ cd usr/share/ca-certificates
+ find * -name '*.crt' | LC_ALL=C sort
+ ) > etc/ca-certificates.conf
+
+ sh usr/sbin/update-ca-certificates --root "${S}/image" || die
+}
+
+src_install() {
+ cp -pPR image/* "${D}"/ || die
+ if ! ${PRECOMPILED} ; then
+ cd ca-certificates
+ doman sbin/*.8
+ dodoc debian/README.* examples/ca-certificates-local/README
+ fi
+
+ echo 'CONFIG_PROTECT_MASK="/etc/ca-certificates.conf"' > 98ca-certificates
+ doenvd 98ca-certificates
+}
+
+pkg_postinst() {
+ if [ -d "${EROOT}/usr/local/share/ca-certificates" ] ; then
+ # if the user has local certs, we need to rebuild again
+ # to include their stuff in the db.
+ # However it's too overzealous when the user has custom certs in place.
+ # --fresh is to clean up dangling symlinks
+ "${EROOT}"/usr/sbin/update-ca-certificates --root "${EROOT}"
+ fi
+
+ local c badcerts=0
+ for c in $(find -L "${EROOT}"etc/ssl/certs/ -type l) ; do
+ ewarn "Broken symlink for a certificate at $c"
+ badcerts=1
+ done
+ if [ $badcerts -eq 1 ]; then
+ ewarn "Removing the following broken symlinks:"
+ ewarn "$(find -L "${EROOT}"/etc/ssl/certs/ -type l -printf '%p -> %l\n' -delete)"
+ fi
+}
diff --git a/app-misc/ca-certificates/ca-certificates-20140223.3.15.5-r1.ebuild b/app-misc/ca-certificates/ca-certificates-20140223.3.15.5-r1.ebuild
new file mode 100644
index 000000000000..c76cfef8083d
--- /dev/null
+++ b/app-misc/ca-certificates/ca-certificates-20140223.3.15.5-r1.ebuild
@@ -0,0 +1,184 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+# The Debian ca-certificates package merely takes the CA database as it exists
+# in the nss package and repackages it for use by openssl.
+#
+# The issue with using the compiled debs directly is two fold:
+# - they do not update frequently enough for us to rely on them
+# - they pull the CA database from nss tip of tree rather than the release
+#
+# So we take the Debian source tools and combine them with the latest nss
+# release to produce (largely) the same end result. The difference is that
+# now we know our cert database is kept in sync with nss and, if need be,
+# can be sync with nss tip of tree more frequently to respond to bugs.
+
+# When triaging bugs from users, here's some handy tips:
+# - To see what cert is hitting errors, use openssl:
+# openssl s_client -port 443 -CApath /etc/ssl/certs/ -host $HOSTNAME
+# Focus on the errors written to stderr.
+#
+# - Look at the upstream log as to why certs were added/removed:
+# https://hg.mozilla.org/projects/nss/log/tip/lib/ckfw/builtins/certdata.txt
+#
+# - If people want to add/remove certs, tell them to file w/mozilla:
+# https://bugzilla.mozilla.org/enter_bug.cgi?product=NSS&component=CA%20Certificates&version=trunk
+
+EAPI="4"
+PYTHON_COMPAT=( python2_7 )
+
+inherit eutils python-any-r1
+
+if [[ ${PV} == *.* ]] ; then
+ # Compile from source ourselves.
+ PRECOMPILED=false
+ inherit versionator
+
+ DEB_VER=$(get_version_component_range 1)
+ NSS_VER=$(get_version_component_range 2-)
+ RTM_NAME="NSS_${NSS_VER//./_}_RTM"
+else
+ # Debian precompiled version.
+ PRECOMPILED=true
+ inherit unpacker
+fi
+
+DESCRIPTION="Common CA Certificates PEM files"
+HOMEPAGE="http://packages.debian.org/sid/ca-certificates"
+if ${PRECOMPILED} ; then
+ #NMU_PR="1"
+ SRC_URI="mirror://debian/pool/main/c/${PN}/${PN}_${PV}${NMU_PR:++nmu}${NMU_PR}_all.deb"
+else
+ SRC_URI="mirror://debian/pool/main/c/${PN}/${PN}_${DEB_VER}${NMU_PR:++nmu}${NMU_PR}.tar.xz
+ ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/${RTM_NAME}/src/nss-${NSS_VER}.tar.gz
+ cacert? ( http://dev.gentoo.org/~anarchy/patches/nss-3.14.1-add_spi+cacerts_ca_certs.patch )"
+fi
+
+LICENSE="MPL-1.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
+IUSE=""
+${PRECOMPILED} || IUSE+=" +cacert"
+
+DEPEND=""
+if ${PRECOMPILED} ; then
+ # platforms like AIX don't have a good ar
+ DEPEND+="
+ kernel_AIX? ( app-arch/deb2targz )
+ !<sys-apps/portage-2.1.10.41"
+fi
+# openssl: we run `c_rehash`
+# debianutils: we run `run-parts`
+RDEPEND="${DEPEND}
+ dev-libs/openssl
+ sys-apps/debianutils"
+
+if ! ${PRECOMPILED}; then
+ DEPEND+=" ${PYTHON_DEPS}"
+fi
+
+S=${WORKDIR}
+
+pkg_setup() {
+ # For the conversion to having it in CONFIG_PROTECT_MASK,
+ # we need to tell users about it once manually first.
+ [[ -f "${EPREFIX}"/etc/env.d/98ca-certificates ]] \
+ || ewarn "You should run update-ca-certificates manually after etc-update"
+}
+
+src_unpack() {
+ ${PRECOMPILED} || default
+
+ # Do all the work in the image subdir to avoid conflicting with source
+ # dirs in $WORKDIR. Need to perform everything in the offset #381937
+ mkdir -p "image/${EPREFIX}"
+ cd "image/${EPREFIX}" || die
+
+ ${PRECOMPILED} && unpacker_src_unpack
+}
+
+src_prepare() {
+ cd "image/${EPREFIX}" || die
+ if ! ${PRECOMPILED} ; then
+ mkdir -p usr/sbin
+ cp -p "${S}"/${PN}/sbin/update-ca-certificates usr/sbin/ || die
+
+ if use cacert ; then
+ pushd "${S}"/nss-${NSS_VER} >/dev/null
+ epatch "${DISTDIR}"/nss-3.14.1-add_spi+cacerts_ca_certs.patch
+ popd >/dev/null
+ fi
+ fi
+
+ epatch "${FILESDIR}"/${PN}-20110502-root.patch
+ local relp=$(echo "${EPREFIX}" | sed -e 's:[^/]\+:..:g')
+ sed -i \
+ -e '/="$ROOT/s:ROOT/:ROOT'"${EPREFIX}"'/:' \
+ -e '/RELPATH="\.\./s:"$:'"${relp}"'":' \
+ usr/sbin/update-ca-certificates || die
+}
+
+src_compile() {
+ cd "image/${EPREFIX}" || die
+ if ! ${PRECOMPILED} ; then
+ python_setup
+ local d="${S}/${PN}/mozilla"
+ # Grab the database from the nss sources.
+ cp "${S}"/nss-${NSS_VER}/nss/lib/ckfw/builtins/{certdata.txt,nssckbi.h} "${d}" || die
+ emake -C "${d}"
+
+ # Now move the files to the same places that the precompiled would.
+ mkdir -p etc/ssl/certs etc/ca-certificates/update.d usr/share/ca-certificates/mozilla
+ if use cacert ; then
+ mkdir -p usr/share/ca-certificates/{cacert.org,spi-inc.org}
+ mv "${d}"/CAcert_Inc..crt usr/share/ca-certificates/cacert.org/cacert.org_root.crt || die
+ mv "${d}"/SPI_Inc..crt usr/share/ca-certificates/spi-inc.org/spi-cacert-2008.crt || die
+ fi
+ mv "${d}"/*.crt usr/share/ca-certificates/mozilla/ || die
+ else
+ mv usr/share/doc/{ca-certificates,${PF}} || die
+ fi
+
+ (
+ echo "# Automatically generated by ${CATEGORY}/${PF}"
+ echo "# $(date -u)"
+ echo "# Do not edit."
+ cd usr/share/ca-certificates
+ find * -name '*.crt' | LC_ALL=C sort
+ ) > etc/ca-certificates.conf
+
+ sh usr/sbin/update-ca-certificates --root "${S}/image" || die
+}
+
+src_install() {
+ cp -pPR image/* "${D}"/ || die
+ if ! ${PRECOMPILED} ; then
+ cd ca-certificates
+ doman sbin/*.8
+ dodoc debian/README.* examples/ca-certificates-local/README
+ fi
+
+ echo 'CONFIG_PROTECT_MASK="/etc/ca-certificates.conf"' > 98ca-certificates
+ doenvd 98ca-certificates
+}
+
+pkg_postinst() {
+ if [ -d "${EROOT}/usr/local/share/ca-certificates" ] ; then
+ # if the user has local certs, we need to rebuild again
+ # to include their stuff in the db.
+ # However it's too overzealous when the user has custom certs in place.
+ # --fresh is to clean up dangling symlinks
+ "${EROOT}"/usr/sbin/update-ca-certificates --root "${EROOT}"
+ fi
+
+ local c badcerts=0
+ for c in $(find -L "${EROOT}"etc/ssl/certs/ -type l) ; do
+ ewarn "Broken symlink for a certificate at $c"
+ badcerts=1
+ done
+ if [ $badcerts -eq 1 ]; then
+ ewarn "Removing the following broken symlinks:"
+ ewarn "$(find -L "${EROOT}"/etc/ssl/certs/ -type l -printf '%p -> %l\n' -delete)"
+ fi
+}
diff --git a/app-misc/ca-certificates/ca-certificates-20140223.3.16-r1.ebuild b/app-misc/ca-certificates/ca-certificates-20140223.3.16-r1.ebuild
new file mode 100644
index 000000000000..c76cfef8083d
--- /dev/null
+++ b/app-misc/ca-certificates/ca-certificates-20140223.3.16-r1.ebuild
@@ -0,0 +1,184 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+# The Debian ca-certificates package merely takes the CA database as it exists
+# in the nss package and repackages it for use by openssl.
+#
+# The issue with using the compiled debs directly is two fold:
+# - they do not update frequently enough for us to rely on them
+# - they pull the CA database from nss tip of tree rather than the release
+#
+# So we take the Debian source tools and combine them with the latest nss
+# release to produce (largely) the same end result. The difference is that
+# now we know our cert database is kept in sync with nss and, if need be,
+# can be sync with nss tip of tree more frequently to respond to bugs.
+
+# When triaging bugs from users, here's some handy tips:
+# - To see what cert is hitting errors, use openssl:
+# openssl s_client -port 443 -CApath /etc/ssl/certs/ -host $HOSTNAME
+# Focus on the errors written to stderr.
+#
+# - Look at the upstream log as to why certs were added/removed:
+# https://hg.mozilla.org/projects/nss/log/tip/lib/ckfw/builtins/certdata.txt
+#
+# - If people want to add/remove certs, tell them to file w/mozilla:
+# https://bugzilla.mozilla.org/enter_bug.cgi?product=NSS&component=CA%20Certificates&version=trunk
+
+EAPI="4"
+PYTHON_COMPAT=( python2_7 )
+
+inherit eutils python-any-r1
+
+if [[ ${PV} == *.* ]] ; then
+ # Compile from source ourselves.
+ PRECOMPILED=false
+ inherit versionator
+
+ DEB_VER=$(get_version_component_range 1)
+ NSS_VER=$(get_version_component_range 2-)
+ RTM_NAME="NSS_${NSS_VER//./_}_RTM"
+else
+ # Debian precompiled version.
+ PRECOMPILED=true
+ inherit unpacker
+fi
+
+DESCRIPTION="Common CA Certificates PEM files"
+HOMEPAGE="http://packages.debian.org/sid/ca-certificates"
+if ${PRECOMPILED} ; then
+ #NMU_PR="1"
+ SRC_URI="mirror://debian/pool/main/c/${PN}/${PN}_${PV}${NMU_PR:++nmu}${NMU_PR}_all.deb"
+else
+ SRC_URI="mirror://debian/pool/main/c/${PN}/${PN}_${DEB_VER}${NMU_PR:++nmu}${NMU_PR}.tar.xz
+ ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/${RTM_NAME}/src/nss-${NSS_VER}.tar.gz
+ cacert? ( http://dev.gentoo.org/~anarchy/patches/nss-3.14.1-add_spi+cacerts_ca_certs.patch )"
+fi
+
+LICENSE="MPL-1.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
+IUSE=""
+${PRECOMPILED} || IUSE+=" +cacert"
+
+DEPEND=""
+if ${PRECOMPILED} ; then
+ # platforms like AIX don't have a good ar
+ DEPEND+="
+ kernel_AIX? ( app-arch/deb2targz )
+ !<sys-apps/portage-2.1.10.41"
+fi
+# openssl: we run `c_rehash`
+# debianutils: we run `run-parts`
+RDEPEND="${DEPEND}
+ dev-libs/openssl
+ sys-apps/debianutils"
+
+if ! ${PRECOMPILED}; then
+ DEPEND+=" ${PYTHON_DEPS}"
+fi
+
+S=${WORKDIR}
+
+pkg_setup() {
+ # For the conversion to having it in CONFIG_PROTECT_MASK,
+ # we need to tell users about it once manually first.
+ [[ -f "${EPREFIX}"/etc/env.d/98ca-certificates ]] \
+ || ewarn "You should run update-ca-certificates manually after etc-update"
+}
+
+src_unpack() {
+ ${PRECOMPILED} || default
+
+ # Do all the work in the image subdir to avoid conflicting with source
+ # dirs in $WORKDIR. Need to perform everything in the offset #381937
+ mkdir -p "image/${EPREFIX}"
+ cd "image/${EPREFIX}" || die
+
+ ${PRECOMPILED} && unpacker_src_unpack
+}
+
+src_prepare() {
+ cd "image/${EPREFIX}" || die
+ if ! ${PRECOMPILED} ; then
+ mkdir -p usr/sbin
+ cp -p "${S}"/${PN}/sbin/update-ca-certificates usr/sbin/ || die
+
+ if use cacert ; then
+ pushd "${S}"/nss-${NSS_VER} >/dev/null
+ epatch "${DISTDIR}"/nss-3.14.1-add_spi+cacerts_ca_certs.patch
+ popd >/dev/null
+ fi
+ fi
+
+ epatch "${FILESDIR}"/${PN}-20110502-root.patch
+ local relp=$(echo "${EPREFIX}" | sed -e 's:[^/]\+:..:g')
+ sed -i \
+ -e '/="$ROOT/s:ROOT/:ROOT'"${EPREFIX}"'/:' \
+ -e '/RELPATH="\.\./s:"$:'"${relp}"'":' \
+ usr/sbin/update-ca-certificates || die
+}
+
+src_compile() {
+ cd "image/${EPREFIX}" || die
+ if ! ${PRECOMPILED} ; then
+ python_setup
+ local d="${S}/${PN}/mozilla"
+ # Grab the database from the nss sources.
+ cp "${S}"/nss-${NSS_VER}/nss/lib/ckfw/builtins/{certdata.txt,nssckbi.h} "${d}" || die
+ emake -C "${d}"
+
+ # Now move the files to the same places that the precompiled would.
+ mkdir -p etc/ssl/certs etc/ca-certificates/update.d usr/share/ca-certificates/mozilla
+ if use cacert ; then
+ mkdir -p usr/share/ca-certificates/{cacert.org,spi-inc.org}
+ mv "${d}"/CAcert_Inc..crt usr/share/ca-certificates/cacert.org/cacert.org_root.crt || die
+ mv "${d}"/SPI_Inc..crt usr/share/ca-certificates/spi-inc.org/spi-cacert-2008.crt || die
+ fi
+ mv "${d}"/*.crt usr/share/ca-certificates/mozilla/ || die
+ else
+ mv usr/share/doc/{ca-certificates,${PF}} || die
+ fi
+
+ (
+ echo "# Automatically generated by ${CATEGORY}/${PF}"
+ echo "# $(date -u)"
+ echo "# Do not edit."
+ cd usr/share/ca-certificates
+ find * -name '*.crt' | LC_ALL=C sort
+ ) > etc/ca-certificates.conf
+
+ sh usr/sbin/update-ca-certificates --root "${S}/image" || die
+}
+
+src_install() {
+ cp -pPR image/* "${D}"/ || die
+ if ! ${PRECOMPILED} ; then
+ cd ca-certificates
+ doman sbin/*.8
+ dodoc debian/README.* examples/ca-certificates-local/README
+ fi
+
+ echo 'CONFIG_PROTECT_MASK="/etc/ca-certificates.conf"' > 98ca-certificates
+ doenvd 98ca-certificates
+}
+
+pkg_postinst() {
+ if [ -d "${EROOT}/usr/local/share/ca-certificates" ] ; then
+ # if the user has local certs, we need to rebuild again
+ # to include their stuff in the db.
+ # However it's too overzealous when the user has custom certs in place.
+ # --fresh is to clean up dangling symlinks
+ "${EROOT}"/usr/sbin/update-ca-certificates --root "${EROOT}"
+ fi
+
+ local c badcerts=0
+ for c in $(find -L "${EROOT}"etc/ssl/certs/ -type l) ; do
+ ewarn "Broken symlink for a certificate at $c"
+ badcerts=1
+ done
+ if [ $badcerts -eq 1 ]; then
+ ewarn "Removing the following broken symlinks:"
+ ewarn "$(find -L "${EROOT}"/etc/ssl/certs/ -type l -printf '%p -> %l\n' -delete)"
+ fi
+}
diff --git a/app-misc/ca-certificates/ca-certificates-20140325.3.16.3.ebuild b/app-misc/ca-certificates/ca-certificates-20140325.3.16.3.ebuild
new file mode 100644
index 000000000000..34568af1490e
--- /dev/null
+++ b/app-misc/ca-certificates/ca-certificates-20140325.3.16.3.ebuild
@@ -0,0 +1,184 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+# The Debian ca-certificates package merely takes the CA database as it exists
+# in the nss package and repackages it for use by openssl.
+#
+# The issue with using the compiled debs directly is two fold:
+# - they do not update frequently enough for us to rely on them
+# - they pull the CA database from nss tip of tree rather than the release
+#
+# So we take the Debian source tools and combine them with the latest nss
+# release to produce (largely) the same end result. The difference is that
+# now we know our cert database is kept in sync with nss and, if need be,
+# can be sync with nss tip of tree more frequently to respond to bugs.
+
+# When triaging bugs from users, here's some handy tips:
+# - To see what cert is hitting errors, use openssl:
+# openssl s_client -port 443 -CApath /etc/ssl/certs/ -host $HOSTNAME
+# Focus on the errors written to stderr.
+#
+# - Look at the upstream log as to why certs were added/removed:
+# https://hg.mozilla.org/projects/nss/log/tip/lib/ckfw/builtins/certdata.txt
+#
+# - If people want to add/remove certs, tell them to file w/mozilla:
+# https://bugzilla.mozilla.org/enter_bug.cgi?product=NSS&component=CA%20Certificates&version=trunk
+
+EAPI="4"
+PYTHON_COMPAT=( python2_7 )
+
+inherit eutils python-any-r1
+
+if [[ ${PV} == *.* ]] ; then
+ # Compile from source ourselves.
+ PRECOMPILED=false
+ inherit versionator
+
+ DEB_VER=$(get_version_component_range 1)
+ NSS_VER=$(get_version_component_range 2-)
+ RTM_NAME="NSS_${NSS_VER//./_}_RTM"
+else
+ # Debian precompiled version.
+ PRECOMPILED=true
+ inherit unpacker
+fi
+
+DESCRIPTION="Common CA Certificates PEM files"
+HOMEPAGE="http://packages.debian.org/sid/ca-certificates"
+NMU_PR=""
+if ${PRECOMPILED} ; then
+ SRC_URI="mirror://debian/pool/main/c/${PN}/${PN}_${PV}${NMU_PR:++nmu}${NMU_PR}_all.deb"
+else
+ SRC_URI="mirror://debian/pool/main/c/${PN}/${PN}_${DEB_VER}${NMU_PR:++nmu}${NMU_PR}.tar.xz
+ ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/${RTM_NAME}/src/nss-${NSS_VER}.tar.gz
+ cacert? ( http://dev.gentoo.org/~anarchy/patches/nss-3.14.1-add_spi+cacerts_ca_certs.patch )"
+fi
+
+LICENSE="MPL-1.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
+IUSE=""
+${PRECOMPILED} || IUSE+=" +cacert"
+
+DEPEND=""
+if ${PRECOMPILED} ; then
+ # platforms like AIX don't have a good ar
+ DEPEND+="
+ kernel_AIX? ( app-arch/deb2targz )
+ !<sys-apps/portage-2.1.10.41"
+fi
+# openssl: we run `c_rehash`
+# debianutils: we run `run-parts`
+RDEPEND="${DEPEND}
+ dev-libs/openssl
+ sys-apps/debianutils"
+
+if ! ${PRECOMPILED}; then
+ DEPEND+=" ${PYTHON_DEPS}"
+fi
+
+S=${WORKDIR}
+
+pkg_setup() {
+ # For the conversion to having it in CONFIG_PROTECT_MASK,
+ # we need to tell users about it once manually first.
+ [[ -f "${EPREFIX}"/etc/env.d/98ca-certificates ]] \
+ || ewarn "You should run update-ca-certificates manually after etc-update"
+}
+
+src_unpack() {
+ ${PRECOMPILED} || default
+
+ # Do all the work in the image subdir to avoid conflicting with source
+ # dirs in $WORKDIR. Need to perform everything in the offset #381937
+ mkdir -p "image/${EPREFIX}"
+ cd "image/${EPREFIX}" || die
+
+ ${PRECOMPILED} && unpacker_src_unpack
+}
+
+src_prepare() {
+ cd "image/${EPREFIX}" || die
+ if ! ${PRECOMPILED} ; then
+ mkdir -p usr/sbin
+ cp -p "${S}"/${PN}/sbin/update-ca-certificates usr/sbin/ || die
+
+ if use cacert ; then
+ pushd "${S}"/nss-${NSS_VER} >/dev/null
+ epatch "${DISTDIR}"/nss-3.14.1-add_spi+cacerts_ca_certs.patch
+ popd >/dev/null
+ fi
+ fi
+
+ epatch "${FILESDIR}"/${PN}-20110502-root.patch
+ local relp=$(echo "${EPREFIX}" | sed -e 's:[^/]\+:..:g')
+ sed -i \
+ -e '/="$ROOT/s:ROOT/:ROOT'"${EPREFIX}"'/:' \
+ -e '/RELPATH="\.\./s:"$:'"${relp}"'":' \
+ usr/sbin/update-ca-certificates || die
+}
+
+src_compile() {
+ cd "image/${EPREFIX}" || die
+ if ! ${PRECOMPILED} ; then
+ python_setup
+ local d="${S}/${PN}/mozilla"
+ # Grab the database from the nss sources.
+ cp "${S}"/nss-${NSS_VER}/nss/lib/ckfw/builtins/{certdata.txt,nssckbi.h} "${d}" || die
+ emake -C "${d}"
+
+ # Now move the files to the same places that the precompiled would.
+ mkdir -p etc/ssl/certs etc/ca-certificates/update.d usr/share/ca-certificates/mozilla
+ if use cacert ; then
+ mkdir -p usr/share/ca-certificates/{cacert.org,spi-inc.org}
+ mv "${d}"/CAcert_Inc..crt usr/share/ca-certificates/cacert.org/cacert.org_root.crt || die
+ mv "${d}"/SPI_Inc..crt usr/share/ca-certificates/spi-inc.org/spi-cacert-2008.crt || die
+ fi
+ mv "${d}"/*.crt usr/share/ca-certificates/mozilla/ || die
+ else
+ mv usr/share/doc/{ca-certificates,${PF}} || die
+ fi
+
+ (
+ echo "# Automatically generated by ${CATEGORY}/${PF}"
+ echo "# $(date -u)"
+ echo "# Do not edit."
+ cd usr/share/ca-certificates
+ find * -name '*.crt' | LC_ALL=C sort
+ ) > etc/ca-certificates.conf
+
+ sh usr/sbin/update-ca-certificates --root "${S}/image" || die
+}
+
+src_install() {
+ cp -pPR image/* "${D}"/ || die
+ if ! ${PRECOMPILED} ; then
+ cd ca-certificates
+ doman sbin/*.8
+ dodoc debian/README.* examples/ca-certificates-local/README
+ fi
+
+ echo 'CONFIG_PROTECT_MASK="/etc/ca-certificates.conf"' > 98ca-certificates
+ doenvd 98ca-certificates
+}
+
+pkg_postinst() {
+ if [ -d "${EROOT}/usr/local/share/ca-certificates" ] ; then
+ # if the user has local certs, we need to rebuild again
+ # to include their stuff in the db.
+ # However it's too overzealous when the user has custom certs in place.
+ # --fresh is to clean up dangling symlinks
+ "${EROOT}"/usr/sbin/update-ca-certificates --root "${EROOT}"
+ fi
+
+ local c badcerts=0
+ for c in $(find -L "${EROOT}"etc/ssl/certs/ -type l) ; do
+ ewarn "Broken symlink for a certificate at $c"
+ badcerts=1
+ done
+ if [ $badcerts -eq 1 ]; then
+ ewarn "Removing the following broken symlinks:"
+ ewarn "$(find -L "${EROOT}"/etc/ssl/certs/ -type l -printf '%p -> %l\n' -delete)"
+ fi
+}
diff --git a/app-misc/ca-certificates/ca-certificates-20140927.3.17.2.ebuild b/app-misc/ca-certificates/ca-certificates-20140927.3.17.2.ebuild
new file mode 100644
index 000000000000..98847059e374
--- /dev/null
+++ b/app-misc/ca-certificates/ca-certificates-20140927.3.17.2.ebuild
@@ -0,0 +1,186 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+# The Debian ca-certificates package merely takes the CA database as it exists
+# in the nss package and repackages it for use by openssl.
+#
+# The issue with using the compiled debs directly is two fold:
+# - they do not update frequently enough for us to rely on them
+# - they pull the CA database from nss tip of tree rather than the release
+#
+# So we take the Debian source tools and combine them with the latest nss
+# release to produce (largely) the same end result. The difference is that
+# now we know our cert database is kept in sync with nss and, if need be,
+# can be sync with nss tip of tree more frequently to respond to bugs.
+
+# When triaging bugs from users, here's some handy tips:
+# - To see what cert is hitting errors, use openssl:
+# openssl s_client -port 443 -CApath /etc/ssl/certs/ -host $HOSTNAME
+# Focus on the errors written to stderr.
+#
+# - Look at the upstream log as to why certs were added/removed:
+# https://hg.mozilla.org/projects/nss/log/tip/lib/ckfw/builtins/certdata.txt
+#
+# - If people want to add/remove certs, tell them to file w/mozilla:
+# https://bugzilla.mozilla.org/enter_bug.cgi?product=NSS&component=CA%20Certificates&version=trunk
+
+EAPI="4"
+PYTHON_COMPAT=( python2_7 )
+
+inherit eutils python-any-r1
+
+if [[ ${PV} == *.* ]] ; then
+ # Compile from source ourselves.
+ PRECOMPILED=false
+ inherit versionator
+
+ DEB_VER=$(get_version_component_range 1)
+ NSS_VER=$(get_version_component_range 2-)
+ RTM_NAME="NSS_${NSS_VER//./_}_RTM"
+else
+ # Debian precompiled version.
+ PRECOMPILED=true
+ inherit unpacker
+fi
+
+DESCRIPTION="Common CA Certificates PEM files"
+HOMEPAGE="http://packages.debian.org/sid/ca-certificates"
+NMU_PR=""
+if ${PRECOMPILED} ; then
+ SRC_URI="mirror://debian/pool/main/c/${PN}/${PN}_${PV}${NMU_PR:++nmu}${NMU_PR}_all.deb"
+else
+ SRC_URI="mirror://debian/pool/main/c/${PN}/${PN}_${DEB_VER}${NMU_PR:++nmu}${NMU_PR}.tar.xz
+ ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/${RTM_NAME}/src/nss-${NSS_VER}.tar.gz
+ cacert? ( http://dev.gentoo.org/~anarchy/patches/nss-3.14.1-add_spi+cacerts_ca_certs.patch )"
+fi
+
+LICENSE="MPL-1.1"
+SLOT="0"
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
+IUSE=""
+${PRECOMPILED} || IUSE+=" +cacert"
+
+DEPEND=""
+if ${PRECOMPILED} ; then
+ # platforms like AIX don't have a good ar
+ DEPEND+="
+ kernel_AIX? ( app-arch/deb2targz )
+ !<sys-apps/portage-2.1.10.41"
+fi
+# openssl: we run `c_rehash`
+# debianutils: we run `run-parts`
+RDEPEND="${DEPEND}
+ dev-libs/openssl
+ sys-apps/debianutils"
+
+if ! ${PRECOMPILED}; then
+ DEPEND+=" ${PYTHON_DEPS}"
+fi
+
+S=${WORKDIR}
+
+pkg_setup() {
+ # For the conversion to having it in CONFIG_PROTECT_MASK,
+ # we need to tell users about it once manually first.
+ [[ -f "${EPREFIX}"/etc/env.d/98ca-certificates ]] \
+ || ewarn "You should run update-ca-certificates manually after etc-update"
+}
+
+src_unpack() {
+ ${PRECOMPILED} || default
+
+ mv ${PN}-*/ ${PN} || die
+
+ # Do all the work in the image subdir to avoid conflicting with source
+ # dirs in $WORKDIR. Need to perform everything in the offset #381937
+ mkdir -p "image/${EPREFIX}"
+ cd "image/${EPREFIX}" || die
+
+ ${PRECOMPILED} && unpacker_src_unpack
+}
+
+src_prepare() {
+ cd "image/${EPREFIX}" || die
+ if ! ${PRECOMPILED} ; then
+ mkdir -p usr/sbin
+ cp -p "${S}"/${PN}/sbin/update-ca-certificates usr/sbin/ || die
+
+ if use cacert ; then
+ pushd "${S}"/nss-${NSS_VER} >/dev/null
+ epatch "${DISTDIR}"/nss-3.14.1-add_spi+cacerts_ca_certs.patch
+ popd >/dev/null
+ fi
+ fi
+
+ epatch "${FILESDIR}"/${PN}-20110502-root.patch
+ local relp=$(echo "${EPREFIX}" | sed -e 's:[^/]\+:..:g')
+ sed -i \
+ -e '/="$ROOT/s:ROOT/:ROOT'"${EPREFIX}"'/:' \
+ -e '/RELPATH="\.\./s:"$:'"${relp}"'":' \
+ usr/sbin/update-ca-certificates || die
+}
+
+src_compile() {
+ cd "image/${EPREFIX}" || die
+ if ! ${PRECOMPILED} ; then
+ python_setup
+ local d="${S}/${PN}/mozilla"
+ # Grab the database from the nss sources.
+ cp "${S}"/nss-${NSS_VER}/nss/lib/ckfw/builtins/{certdata.txt,nssckbi.h} "${d}" || die
+ emake -C "${d}"
+
+ # Now move the files to the same places that the precompiled would.
+ mkdir -p etc/ssl/certs etc/ca-certificates/update.d usr/share/ca-certificates/mozilla
+ if use cacert ; then
+ mkdir -p usr/share/ca-certificates/{cacert.org,spi-inc.org}
+ mv "${d}"/CAcert_Inc..crt usr/share/ca-certificates/cacert.org/cacert.org_root.crt || die
+ mv "${d}"/SPI_Inc..crt usr/share/ca-certificates/spi-inc.org/spi-cacert-2008.crt || die
+ fi
+ mv "${d}"/*.crt usr/share/ca-certificates/mozilla/ || die
+ else
+ mv usr/share/doc/{ca-certificates,${PF}} || die
+ fi
+
+ (
+ echo "# Automatically generated by ${CATEGORY}/${PF}"
+ echo "# $(date -u)"
+ echo "# Do not edit."
+ cd usr/share/ca-certificates
+ find * -name '*.crt' | LC_ALL=C sort
+ ) > etc/ca-certificates.conf
+
+ sh usr/sbin/update-ca-certificates --root "${S}/image" || die
+}
+
+src_install() {
+ cp -pPR image/* "${D}"/ || die
+ if ! ${PRECOMPILED} ; then
+ cd ca-certificates
+ doman sbin/*.8
+ dodoc debian/README.* examples/ca-certificates-local/README
+ fi
+
+ echo 'CONFIG_PROTECT_MASK="/etc/ca-certificates.conf"' > 98ca-certificates
+ doenvd 98ca-certificates
+}
+
+pkg_postinst() {
+ if [ -d "${EROOT}/usr/local/share/ca-certificates" ] ; then
+ # if the user has local certs, we need to rebuild again
+ # to include their stuff in the db.
+ # However it's too overzealous when the user has custom certs in place.
+ # --fresh is to clean up dangling symlinks
+ "${EROOT}"/usr/sbin/update-ca-certificates --root "${EROOT}"
+ fi
+
+ local c badcerts=0
+ for c in $(find -L "${EROOT}"etc/ssl/certs/ -type l) ; do
+ ewarn "Broken symlink for a certificate at $c"
+ badcerts=1
+ done
+ if [ $badcerts -eq 1 ]; then
+ ewarn "Removing the following broken symlinks:"
+ ewarn "$(find -L "${EROOT}"/etc/ssl/certs/ -type l -printf '%p -> %l\n' -delete)"
+ fi
+}
diff --git a/app-misc/ca-certificates/ca-certificates-20141019.3.17.4.ebuild b/app-misc/ca-certificates/ca-certificates-20141019.3.17.4.ebuild
new file mode 100644
index 000000000000..d11df9859787
--- /dev/null
+++ b/app-misc/ca-certificates/ca-certificates-20141019.3.17.4.ebuild
@@ -0,0 +1,186 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+# The Debian ca-certificates package merely takes the CA database as it exists
+# in the nss package and repackages it for use by openssl.
+#
+# The issue with using the compiled debs directly is two fold:
+# - they do not update frequently enough for us to rely on them
+# - they pull the CA database from nss tip of tree rather than the release
+#
+# So we take the Debian source tools and combine them with the latest nss
+# release to produce (largely) the same end result. The difference is that
+# now we know our cert database is kept in sync with nss and, if need be,
+# can be sync with nss tip of tree more frequently to respond to bugs.
+
+# When triaging bugs from users, here's some handy tips:
+# - To see what cert is hitting errors, use openssl:
+# openssl s_client -port 443 -CApath /etc/ssl/certs/ -host $HOSTNAME
+# Focus on the errors written to stderr.
+#
+# - Look at the upstream log as to why certs were added/removed:
+# https://hg.mozilla.org/projects/nss/log/tip/lib/ckfw/builtins/certdata.txt
+#
+# - If people want to add/remove certs, tell them to file w/mozilla:
+# https://bugzilla.mozilla.org/enter_bug.cgi?product=NSS&component=CA%20Certificates&version=trunk
+
+EAPI="4"
+PYTHON_COMPAT=( python2_7 )
+
+inherit eutils python-any-r1
+
+if [[ ${PV} == *.* ]] ; then
+ # Compile from source ourselves.
+ PRECOMPILED=false
+ inherit versionator
+
+ DEB_VER=$(get_version_component_range 1)
+ NSS_VER=$(get_version_component_range 2-)
+ RTM_NAME="NSS_${NSS_VER//./_}_RTM"
+else
+ # Debian precompiled version.
+ PRECOMPILED=true
+ inherit unpacker
+fi
+
+DESCRIPTION="Common CA Certificates PEM files"
+HOMEPAGE="http://packages.debian.org/sid/ca-certificates"
+NMU_PR=""
+if ${PRECOMPILED} ; then
+ SRC_URI="mirror://debian/pool/main/c/${PN}/${PN}_${PV}${NMU_PR:++nmu}${NMU_PR}_all.deb"
+else
+ SRC_URI="mirror://debian/pool/main/c/${PN}/${PN}_${DEB_VER}${NMU_PR:++nmu}${NMU_PR}.tar.xz
+ ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/${RTM_NAME}/src/nss-${NSS_VER}.tar.gz
+ cacert? ( http://dev.gentoo.org/~anarchy/patches/nss-3.14.1-add_spi+cacerts_ca_certs.patch )"
+fi
+
+LICENSE="MPL-1.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
+IUSE=""
+${PRECOMPILED} || IUSE+=" +cacert"
+
+DEPEND=""
+if ${PRECOMPILED} ; then
+ # platforms like AIX don't have a good ar
+ DEPEND+="
+ kernel_AIX? ( app-arch/deb2targz )
+ !<sys-apps/portage-2.1.10.41"
+fi
+# openssl: we run `c_rehash`; newer version for alt-cert-paths #552540
+# debianutils: we run `run-parts`
+RDEPEND="${DEPEND}
+ >=dev-libs/openssl-1.0.1o
+ sys-apps/debianutils"
+
+if ! ${PRECOMPILED}; then
+ DEPEND+=" ${PYTHON_DEPS}"
+fi
+
+S=${WORKDIR}
+
+pkg_setup() {
+ # For the conversion to having it in CONFIG_PROTECT_MASK,
+ # we need to tell users about it once manually first.
+ [[ -f "${EPREFIX}"/etc/env.d/98ca-certificates ]] \
+ || ewarn "You should run update-ca-certificates manually after etc-update"
+}
+
+src_unpack() {
+ ${PRECOMPILED} || default
+
+ mv ${PN}-*/ ${PN} || die
+
+ # Do all the work in the image subdir to avoid conflicting with source
+ # dirs in $WORKDIR. Need to perform everything in the offset #381937
+ mkdir -p "image/${EPREFIX}"
+ cd "image/${EPREFIX}" || die
+
+ ${PRECOMPILED} && unpacker_src_unpack
+}
+
+src_prepare() {
+ cd "image/${EPREFIX}" || die
+ if ! ${PRECOMPILED} ; then
+ mkdir -p usr/sbin
+ cp -p "${S}"/${PN}/sbin/update-ca-certificates usr/sbin/ || die
+
+ if use cacert ; then
+ pushd "${S}"/nss-${NSS_VER} >/dev/null
+ epatch "${DISTDIR}"/nss-3.14.1-add_spi+cacerts_ca_certs.patch
+ popd >/dev/null
+ fi
+ fi
+
+ epatch "${FILESDIR}"/${PN}-20141019-root.patch
+ local relp=$(echo "${EPREFIX}" | sed -e 's:[^/]\+:..:g')
+ sed -i \
+ -e '/="$ROOT/s:ROOT/:ROOT'"${EPREFIX}"'/:' \
+ -e '/RELPATH="\.\./s:"$:'"${relp}"'":' \
+ usr/sbin/update-ca-certificates || die
+}
+
+src_compile() {
+ cd "image/${EPREFIX}" || die
+ if ! ${PRECOMPILED} ; then
+ python_setup
+ local d="${S}/${PN}/mozilla"
+ # Grab the database from the nss sources.
+ cp "${S}"/nss-${NSS_VER}/nss/lib/ckfw/builtins/{certdata.txt,nssckbi.h} "${d}" || die
+ emake -C "${d}"
+
+ # Now move the files to the same places that the precompiled would.
+ mkdir -p etc/ssl/certs etc/ca-certificates/update.d usr/share/ca-certificates/mozilla
+ if use cacert ; then
+ mkdir -p usr/share/ca-certificates/{cacert.org,spi-inc.org}
+ mv "${d}"/CAcert_Inc..crt usr/share/ca-certificates/cacert.org/cacert.org_root.crt || die
+ mv "${d}"/SPI_Inc..crt usr/share/ca-certificates/spi-inc.org/spi-cacert-2008.crt || die
+ fi
+ mv "${d}"/*.crt usr/share/ca-certificates/mozilla/ || die
+ else
+ mv usr/share/doc/{ca-certificates,${PF}} || die
+ fi
+
+ (
+ echo "# Automatically generated by ${CATEGORY}/${PF}"
+ echo "# $(date -u)"
+ echo "# Do not edit."
+ cd usr/share/ca-certificates
+ find * -name '*.crt' | LC_ALL=C sort
+ ) > etc/ca-certificates.conf
+
+ sh usr/sbin/update-ca-certificates --root "${S}/image" || die
+}
+
+src_install() {
+ cp -pPR image/* "${D}"/ || die
+ if ! ${PRECOMPILED} ; then
+ cd ca-certificates
+ doman sbin/*.8
+ dodoc debian/README.* examples/ca-certificates-local/README
+ fi
+
+ echo 'CONFIG_PROTECT_MASK="/etc/ca-certificates.conf"' > 98ca-certificates
+ doenvd 98ca-certificates
+}
+
+pkg_postinst() {
+ if [ -d "${EROOT}/usr/local/share/ca-certificates" ] ; then
+ # if the user has local certs, we need to rebuild again
+ # to include their stuff in the db.
+ # However it's too overzealous when the user has custom certs in place.
+ # --fresh is to clean up dangling symlinks
+ "${EROOT}"/usr/sbin/update-ca-certificates --root "${EROOT}"
+ fi
+
+ local c badcerts=0
+ for c in $(find -L "${EROOT}"etc/ssl/certs/ -type l) ; do
+ ewarn "Broken symlink for a certificate at $c"
+ badcerts=1
+ done
+ if [ $badcerts -eq 1 ]; then
+ ewarn "Removing the following broken symlinks:"
+ ewarn "$(find -L "${EROOT}"/etc/ssl/certs/ -type l -printf '%p -> %l\n' -delete)"
+ fi
+}
diff --git a/app-misc/ca-certificates/ca-certificates-20141019.3.19.ebuild b/app-misc/ca-certificates/ca-certificates-20141019.3.19.ebuild
new file mode 100644
index 000000000000..2217e0827cdf
--- /dev/null
+++ b/app-misc/ca-certificates/ca-certificates-20141019.3.19.ebuild
@@ -0,0 +1,186 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+# The Debian ca-certificates package merely takes the CA database as it exists
+# in the nss package and repackages it for use by openssl.
+#
+# The issue with using the compiled debs directly is two fold:
+# - they do not update frequently enough for us to rely on them
+# - they pull the CA database from nss tip of tree rather than the release
+#
+# So we take the Debian source tools and combine them with the latest nss
+# release to produce (largely) the same end result. The difference is that
+# now we know our cert database is kept in sync with nss and, if need be,
+# can be sync with nss tip of tree more frequently to respond to bugs.
+
+# When triaging bugs from users, here's some handy tips:
+# - To see what cert is hitting errors, use openssl:
+# openssl s_client -port 443 -CApath /etc/ssl/certs/ -host $HOSTNAME
+# Focus on the errors written to stderr.
+#
+# - Look at the upstream log as to why certs were added/removed:
+# https://hg.mozilla.org/projects/nss/log/tip/lib/ckfw/builtins/certdata.txt
+#
+# - If people want to add/remove certs, tell them to file w/mozilla:
+# https://bugzilla.mozilla.org/enter_bug.cgi?product=NSS&component=CA%20Certificates&version=trunk
+
+EAPI="4"
+PYTHON_COMPAT=( python2_7 )
+
+inherit eutils python-any-r1
+
+if [[ ${PV} == *.* ]] ; then
+ # Compile from source ourselves.
+ PRECOMPILED=false
+ inherit versionator
+
+ DEB_VER=$(get_version_component_range 1)
+ NSS_VER=$(get_version_component_range 2-)
+ RTM_NAME="NSS_${NSS_VER//./_}_RTM"
+else
+ # Debian precompiled version.
+ PRECOMPILED=true
+ inherit unpacker
+fi
+
+DESCRIPTION="Common CA Certificates PEM files"
+HOMEPAGE="http://packages.debian.org/sid/ca-certificates"
+NMU_PR=""
+if ${PRECOMPILED} ; then
+ SRC_URI="mirror://debian/pool/main/c/${PN}/${PN}_${PV}${NMU_PR:++nmu}${NMU_PR}_all.deb"
+else
+ SRC_URI="mirror://debian/pool/main/c/${PN}/${PN}_${DEB_VER}${NMU_PR:++nmu}${NMU_PR}.tar.xz
+ ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/${RTM_NAME}/src/nss-${NSS_VER}.tar.gz
+ cacert? ( http://dev.gentoo.org/~anarchy/patches/nss-3.14.1-add_spi+cacerts_ca_certs.patch )"
+fi
+
+LICENSE="MPL-1.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
+IUSE=""
+${PRECOMPILED} || IUSE+=" +cacert"
+
+DEPEND=""
+if ${PRECOMPILED} ; then
+ # platforms like AIX don't have a good ar
+ DEPEND+="
+ kernel_AIX? ( app-arch/deb2targz )
+ !<sys-apps/portage-2.1.10.41"
+fi
+# openssl: we run `c_rehash`; newer version for alt-cert-paths #552540
+# debianutils: we run `run-parts`
+RDEPEND="${DEPEND}
+ >=dev-libs/openssl-1.0.1o
+ sys-apps/debianutils"
+
+if ! ${PRECOMPILED}; then
+ DEPEND+=" ${PYTHON_DEPS}"
+fi
+
+S=${WORKDIR}
+
+pkg_setup() {
+ # For the conversion to having it in CONFIG_PROTECT_MASK,
+ # we need to tell users about it once manually first.
+ [[ -f "${EPREFIX}"/etc/env.d/98ca-certificates ]] \
+ || ewarn "You should run update-ca-certificates manually after etc-update"
+}
+
+src_unpack() {
+ ${PRECOMPILED} || default
+
+ mv ${PN}-*/ ${PN} || die
+
+ # Do all the work in the image subdir to avoid conflicting with source
+ # dirs in $WORKDIR. Need to perform everything in the offset #381937
+ mkdir -p "image/${EPREFIX}"
+ cd "image/${EPREFIX}" || die
+
+ ${PRECOMPILED} && unpacker_src_unpack
+}
+
+src_prepare() {
+ cd "image/${EPREFIX}" || die
+ if ! ${PRECOMPILED} ; then
+ mkdir -p usr/sbin
+ cp -p "${S}"/${PN}/sbin/update-ca-certificates usr/sbin/ || die
+
+ if use cacert ; then
+ pushd "${S}"/nss-${NSS_VER} >/dev/null
+ epatch "${DISTDIR}"/nss-3.14.1-add_spi+cacerts_ca_certs.patch
+ popd >/dev/null
+ fi
+ fi
+
+ epatch "${FILESDIR}"/${PN}-20141019-root.patch
+ local relp=$(echo "${EPREFIX}" | sed -e 's:[^/]\+:..:g')
+ sed -i \
+ -e '/="$ROOT/s:ROOT/:ROOT'"${EPREFIX}"'/:' \
+ -e '/RELPATH="\.\./s:"$:'"${relp}"'":' \
+ usr/sbin/update-ca-certificates || die
+}
+
+src_compile() {
+ cd "image/${EPREFIX}" || die
+ if ! ${PRECOMPILED} ; then
+ python_setup
+ local d="${S}/${PN}/mozilla"
+ # Grab the database from the nss sources.
+ cp "${S}"/nss-${NSS_VER}/nss/lib/ckfw/builtins/{certdata.txt,nssckbi.h} "${d}" || die
+ emake -C "${d}"
+
+ # Now move the files to the same places that the precompiled would.
+ mkdir -p etc/ssl/certs etc/ca-certificates/update.d usr/share/ca-certificates/mozilla
+ if use cacert ; then
+ mkdir -p usr/share/ca-certificates/{cacert.org,spi-inc.org}
+ mv "${d}"/CAcert_Inc..crt usr/share/ca-certificates/cacert.org/cacert.org_root.crt || die
+ mv "${d}"/SPI_Inc..crt usr/share/ca-certificates/spi-inc.org/spi-cacert-2008.crt || die
+ fi
+ mv "${d}"/*.crt usr/share/ca-certificates/mozilla/ || die
+ else
+ mv usr/share/doc/{ca-certificates,${PF}} || die
+ fi
+
+ (
+ echo "# Automatically generated by ${CATEGORY}/${PF}"
+ echo "# $(date -u)"
+ echo "# Do not edit."
+ cd usr/share/ca-certificates
+ find * -name '*.crt' | LC_ALL=C sort
+ ) > etc/ca-certificates.conf
+
+ sh usr/sbin/update-ca-certificates --root "${S}/image" || die
+}
+
+src_install() {
+ cp -pPR image/* "${D}"/ || die
+ if ! ${PRECOMPILED} ; then
+ cd ca-certificates
+ doman sbin/*.8
+ dodoc debian/README.* examples/ca-certificates-local/README
+ fi
+
+ echo 'CONFIG_PROTECT_MASK="/etc/ca-certificates.conf"' > 98ca-certificates
+ doenvd 98ca-certificates
+}
+
+pkg_postinst() {
+ if [ -d "${EROOT}/usr/local/share/ca-certificates" ] ; then
+ # if the user has local certs, we need to rebuild again
+ # to include their stuff in the db.
+ # However it's too overzealous when the user has custom certs in place.
+ # --fresh is to clean up dangling symlinks
+ "${EROOT}"/usr/sbin/update-ca-certificates --root "${ROOT}"
+ fi
+
+ local c badcerts=0
+ for c in $(find -L "${EROOT}"etc/ssl/certs/ -type l) ; do
+ ewarn "Broken symlink for a certificate at $c"
+ badcerts=1
+ done
+ if [ $badcerts -eq 1 ]; then
+ ewarn "Removing the following broken symlinks:"
+ ewarn "$(find -L "${EROOT}"/etc/ssl/certs/ -type l -printf '%p -> %l\n' -delete)"
+ fi
+}
diff --git a/app-misc/ca-certificates/files/ca-certificates-20090709-root.patch b/app-misc/ca-certificates/files/ca-certificates-20090709-root.patch
new file mode 100644
index 000000000000..72a4ba1a6ddb
--- /dev/null
+++ b/app-misc/ca-certificates/files/ca-certificates-20090709-root.patch
@@ -0,0 +1,107 @@
+--- a/usr/sbin/update-ca-certificates
++++ b/usr/sbin/update-ca-certificates
+@@ -23,6 +23,7 @@
+
+ verbose=0
+ fresh=0
++ROOT=""
+ while [ $# -gt 0 ];
+ do
+ case $1 in
+@@ -30,6 +31,9 @@
+ verbose=1;;
+ --fresh|-f)
+ fresh=1;;
++ --root|-r)
++ ROOT=$(readlink -f "$2")
++ shift;;
+ --help|-h|*)
+- echo "$0: [--verbose] [--fresh]"
++ echo "$0: [--verbose] [--fresh] [--root <dir>]"
+ exit;;
+@@ -37,11 +41,11 @@
+ shift
+ done
+
+-CERTSCONF=/etc/ca-certificates.conf
+-CERTSDIR=/usr/share/ca-certificates
+-LOCALCERTSDIR=/usr/local/share/ca-certificates
++CERTSCONF="$ROOT/etc/ca-certificates.conf"
++CERTSDIR="$ROOT/usr/share/ca-certificates"
++LOCALCERTSDIR="$ROOT/usr/local/share/ca-certificates"
+ CERTBUNDLE=ca-certificates.crt
+-ETCCERTSDIR=/etc/ssl/certs
++ETCCERTSDIR="$ROOT/etc/ssl/certs"
+
+ cleanup() {
+ rm -f "$TEMPBUNDLE"
+@@ -66,7 +70,7 @@
+ -e 's/,/_/g').pem"
+ if ! test -e "$PEM" || [ "$(readlink "$PEM")" != "$CERT" ]
+ then
+- ln -sf "$CERT" "$PEM"
++ ln -sf "${CERT#$ROOT}" "$PEM"
+ echo +$PEM >> "$ADDED"
+ fi
+ cat "$CERT" >> "$TEMPBUNDLE"
+@@ -78,22 +82,22 @@
+ if test -L "$PEM"
+ then
+ rm -f "$PEM"
+- echo -$PEM >> "$REMOVED"
++ echo "-$PEM" >> "$REMOVED"
+ fi
+ }
+
+-cd $ETCCERTSDIR
++cd "$ETCCERTSDIR"
+ if [ "$fresh" = 1 ]; then
+ echo -n "Clearing symlinks in $ETCCERTSDIR..."
+ find . -type l -print | while read symlink
+ do
+- case $(readlink $symlink) in
+- $CERTSDIR*) rm -f $symlink;;
++ case $(readlink "$symlink") in
++ "$CERTSDIR"*) rm -f "$symlink";;
+ esac
+ done
+ find . -type l -print | while read symlink
+ do
+- test -f $symlink || rm -f $symlink
++ test -f "$symlink" || rm -f "$symlink"
+ done
+ echo "done."
+ fi
+@@ -102,12 +106,12 @@
+
+ # Handle certificates that should be removed. This is an explicit act
+ # by prefixing lines in the configuration files with exclamation marks (!).
+-sed -n -e '/^$/d' -e 's/^!//p' $CERTSCONF | while read crt
++sed -n -e '/^$/d' -e 's/^!//p' "$CERTSCONF" | while read crt
+ do
+ remove "$CERTSDIR/$crt"
+ done
+
+-sed -e '/^$/d' -e '/^#/d' -e '/^!/d' $CERTSCONF | while read crt
++sed -e '/^$/d' -e '/^#/d' -e '/^!/d' "$CERTSCONF" | while read crt
+ do
+ if ! test -f "$CERTSDIR/$crt"
+ then
+@@ -146,14 +150,14 @@
+
+ echo "$ADDED_CNT added, $REMOVED_CNT removed; done."
+
+-HOOKSDIR=/etc/ca-certificates/update.d
++HOOKSDIR="$ROOT/etc/ca-certificates/update.d"
+ echo -n "Running hooks in $HOOKSDIR...."
+ VERBOSE_ARG=
+ [ "$verbose" = 0 ] || VERBOSE_ARG=--verbose
+-eval run-parts $VERBOSE_ARG --test -- $HOOKSDIR | while read hook
++eval run-parts $VERBOSE_ARG --test -- \""$HOOKSDIR"\" | while read hook
+ do
+ ( cat $ADDED
+- cat $REMOVED ) | $hook || echo E: $hook exited with code $?.
++ cat $REMOVED ) | "$hook" || echo E: "$hook" exited with code $?.
+ done
+ echo "done."
+
diff --git a/app-misc/ca-certificates/files/ca-certificates-20110502-root.patch b/app-misc/ca-certificates/files/ca-certificates-20110502-root.patch
new file mode 100644
index 000000000000..f3fcf5d593d4
--- /dev/null
+++ b/app-misc/ca-certificates/files/ca-certificates-20110502-root.patch
@@ -0,0 +1,110 @@
+--- a/usr/sbin/update-ca-certificates
++++ b/usr/sbin/update-ca-certificates
+@@ -23,6 +23,8 @@
+
+ verbose=0
+ fresh=0
++ROOT=""
++RELPATH=""
+ while [ $# -gt 0 ];
+ do
+ case $1 in
+@@ -30,6 +31,11 @@
+ verbose=1;;
+ --fresh|-f)
+ fresh=1;;
++ --root|-r)
++ ROOT=$(readlink -f "$2")
++ # needed as c_rehash wants to read the files directly
++ RELPATH="../../.."
++ shift;;
+ --help|-h|*)
+- echo "$0: [--verbose] [--fresh]"
++ echo "$0: [--verbose] [--fresh] [--root <dir>]"
+ exit;;
+@@ -37,11 +41,11 @@
+ shift
+ done
+
+-CERTSCONF=/etc/ca-certificates.conf
+-CERTSDIR=/usr/share/ca-certificates
+-LOCALCERTSDIR=/usr/local/share/ca-certificates
++CERTSCONF="$ROOT/etc/ca-certificates.conf"
++CERTSDIR="$ROOT/usr/share/ca-certificates"
++LOCALCERTSDIR="$ROOT/usr/local/share/ca-certificates"
+ CERTBUNDLE=ca-certificates.crt
+-ETCCERTSDIR=/etc/ssl/certs
++ETCCERTSDIR="$ROOT/etc/ssl/certs"
+
+ cleanup() {
+ rm -f "$TEMPBUNDLE"
+@@ -66,7 +70,7 @@
+ -e 's/,/_/g').pem"
+ if ! test -e "$PEM" || [ "$(readlink "$PEM")" != "$CERT" ]
+ then
+- ln -sf "$CERT" "$PEM"
++ ln -sf "${RELPATH}${CERT#$ROOT}" "$PEM"
+ echo +$PEM >> "$ADDED"
+ fi
+ cat "$CERT" >> "$TEMPBUNDLE"
+@@ -78,22 +82,22 @@
+ if test -L "$PEM"
+ then
+ rm -f "$PEM"
+- echo -$PEM >> "$REMOVED"
++ echo "-$PEM" >> "$REMOVED"
+ fi
+ }
+
+-cd $ETCCERTSDIR
++cd "$ETCCERTSDIR"
+ if [ "$fresh" = 1 ]; then
+ echo -n "Clearing symlinks in $ETCCERTSDIR..."
+ find . -type l -print | while read symlink
+ do
+- case $(readlink $symlink) in
+- $CERTSDIR*) rm -f $symlink;;
++ case $(readlink "$symlink") in
++ "$CERTSDIR"*) rm -f "$symlink";;
+ esac
+ done
+ find . -type l -print | while read symlink
+ do
+- test -f $symlink || rm -f $symlink
++ test -f "$symlink" || rm -f "$symlink"
+ done
+ echo "done."
+ fi
+@@ -102,12 +106,12 @@
+
+ # Handle certificates that should be removed. This is an explicit act
+ # by prefixing lines in the configuration files with exclamation marks (!).
+-sed -n -e '/^$/d' -e 's/^!//p' $CERTSCONF | while read crt
++sed -n -e '/^$/d' -e 's/^!//p' "$CERTSCONF" | while read crt
+ do
+ remove "$CERTSDIR/$crt"
+ done
+
+-sed -e '/^$/d' -e '/^#/d' -e '/^!/d' $CERTSCONF | while read crt
++sed -e '/^$/d' -e '/^#/d' -e '/^!/d' "$CERTSCONF" | while read crt
+ do
+ if ! test -f "$CERTSDIR/$crt"
+ then
+@@ -146,14 +150,14 @@
+
+ echo "$ADDED_CNT added, $REMOVED_CNT removed; done."
+
+-HOOKSDIR=/etc/ca-certificates/update.d
++HOOKSDIR="$ROOT/etc/ca-certificates/update.d"
+ echo -n "Running hooks in $HOOKSDIR...."
+ VERBOSE_ARG=
+ [ "$verbose" = 0 ] || VERBOSE_ARG=--verbose
+-eval run-parts $VERBOSE_ARG --test -- $HOOKSDIR | while read hook
++eval run-parts $VERBOSE_ARG --test -- \""$HOOKSDIR"\" | while read hook
+ do
+ ( cat $ADDED
+- cat $REMOVED ) | $hook || echo E: $hook exited with code $?.
++ cat $REMOVED ) | "$hook" || echo E: "$hook" exited with code $?.
+ done
+ echo "done."
+
diff --git a/app-misc/ca-certificates/files/ca-certificates-20141019-root.patch b/app-misc/ca-certificates/files/ca-certificates-20141019-root.patch
new file mode 100644
index 000000000000..2b2a42c58ec5
--- /dev/null
+++ b/app-misc/ca-certificates/files/ca-certificates-20141019-root.patch
@@ -0,0 +1,116 @@
+add a --root option so we can generate with DESTDIR installs
+
+--- a/usr/sbin/update-ca-certificates
++++ b/usr/sbin/update-ca-certificates
+@@ -23,6 +23,8 @@
+
+ verbose=0
+ fresh=0
++ROOT=""
++RELPATH=""
+ while [ $# -gt 0 ];
+ do
+ case $1 in
+@@ -30,18 +32,23 @@ do
+ verbose=1;;
+ --fresh|-f)
+ fresh=1;;
++ --root|-r)
++ ROOT=$(readlink -f "$2")
++ # needed as c_rehash wants to read the files directly
++ RELPATH="../../.."
++ shift;;
+ --help|-h|*)
+- echo "$0: [--verbose] [--fresh]"
++ echo "$0: [--verbose] [--fresh] [--root <dir>]"
+ exit;;
+ esac
+ shift
+ done
+
+-CERTSCONF=/etc/ca-certificates.conf
+-CERTSDIR=/usr/share/ca-certificates
+-LOCALCERTSDIR=/usr/local/share/ca-certificates
++CERTSCONF="$ROOT/etc/ca-certificates.conf"
++CERTSDIR="$ROOT/usr/share/ca-certificates"
++LOCALCERTSDIR="$ROOT/usr/local/share/ca-certificates"
+ CERTBUNDLE=ca-certificates.crt
+-ETCCERTSDIR=/etc/ssl/certs
++ETCCERTSDIR="$ROOT/etc/ssl/certs"
+
+ cleanup() {
+ rm -f "$TEMPBUNDLE"
+@@ -66,7 +73,7 @@ add() {
+ -e 's/,/_/g').pem"
+ if ! test -e "$PEM" || [ "$(readlink "$PEM")" != "$CERT" ]
+ then
+- ln -sf "$CERT" "$PEM"
++ ln -sf "${RELPATH}${CERT#$ROOT}" "$PEM"
+ echo +$PEM >> "$ADDED"
+ fi
+ # Add trailing newline to certificate, if it is missing (#635570)
+@@ -79,36 +86,36 @@ remove() {
+ if test -L "$PEM"
+ then
+ rm -f "$PEM"
+- echo -$PEM >> "$REMOVED"
++ echo "-$PEM" >> "$REMOVED"
+ fi
+ }
+
+-cd $ETCCERTSDIR
++cd "$ETCCERTSDIR"
+ if [ "$fresh" = 1 ]; then
+- echo -n "Clearing symlinks in $ETCCERTSDIR..."
++ printf "Clearing symlinks in $ETCCERTSDIR..."
+ find . -type l -print | while read symlink
+ do
+- case $(readlink $symlink) in
+- $CERTSDIR*) rm -f $symlink;;
++ case $(readlink "$symlink") in
++ "$CERTSDIR"*) rm -f "$symlink";;
+ esac
+ done
+ find . -type l -print | while read symlink
+ do
+- test -f $symlink || rm -f $symlink
++ test -f "$symlink" || rm -f "$symlink"
+ done
+ echo "done."
+ fi
+
+-echo -n "Updating certificates in $ETCCERTSDIR... "
++printf "Updating certificates in $ETCCERTSDIR... "
+
+ # Handle certificates that should be removed. This is an explicit act
+ # by prefixing lines in the configuration files with exclamation marks (!).
+-sed -n -e '/^$/d' -e 's/^!//p' $CERTSCONF | while read crt
++sed -n -e '/^$/d' -e 's/^!//p' "$CERTSCONF" | while read crt
+ do
+ remove "$CERTSDIR/$crt"
+ done
+
+-sed -e '/^$/d' -e '/^#/d' -e '/^!/d' $CERTSCONF | while read crt
++sed -e '/^$/d' -e '/^#/d' -e '/^!/d' "$CERTSCONF" | while read crt
+ do
+ if ! test -f "$CERTSDIR/$crt"
+ then
+@@ -151,14 +158,14 @@ mv -f "$TEMPBUNDLE" "$CERTBUNDLE"
+
+ echo "$ADDED_CNT added, $REMOVED_CNT removed; done."
+
+-HOOKSDIR=/etc/ca-certificates/update.d
+-echo -n "Running hooks in $HOOKSDIR...."
++HOOKSDIR="$ROOT/etc/ca-certificates/update.d"
++printf "Running hooks in $HOOKSDIR...."
+ VERBOSE_ARG=
+ [ "$verbose" = 0 ] || VERBOSE_ARG=--verbose
+-eval run-parts $VERBOSE_ARG --test -- $HOOKSDIR | while read hook
++eval run-parts $VERBOSE_ARG --test -- \""$HOOKSDIR"\" | while read hook
+ do
+ ( cat $ADDED
+- cat $REMOVED ) | $hook || echo E: $hook exited with code $?.
++ cat $REMOVED ) | "$hook" || echo E: "$hook" exited with code $?.
+ done
+ echo "done."
+
diff --git a/app-misc/ca-certificates/metadata.xml b/app-misc/ca-certificates/metadata.xml
new file mode 100644
index 000000000000..9f0fc84b6680
--- /dev/null
+++ b/app-misc/ca-certificates/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>base-system</herd>
+<use>
+ <flag name='cacert'>
+ Include root certs from CAcert (http://www.cacert.org/) and
+ Software in the Public Interest (http://www.spi-inc.org/)
+ </flag>
+</use>
+</pkgmetadata>
diff --git a/app-misc/cadubi/Manifest b/app-misc/cadubi/Manifest
new file mode 100644
index 000000000000..be8fa0c76a79
--- /dev/null
+++ b/app-misc/cadubi/Manifest
@@ -0,0 +1 @@
+DIST cadubi-1.3.tar.gz 12559 SHA256 ca8b6ea305e0eccb11add7fc165beeee7ef33f9f0106e84efa1b364f082df0ab SHA512 e3b5190850bd4d579934bd5825db2b8bde5a46158862ec66b8604999344138477c0fb3fad34dc186ed9dd67dfbdcacf12763f76adbdfbd0cc4dbf6b51ad53bc7 WHIRLPOOL cfe4f3ad450c29386daf497d002135973fd76d919730c87fc86ed04fa8ae8fd98c9bdf3932448e7bdfad8368d7ce9aea797bfab29c830f14c704d680bac3fd25
diff --git a/app-misc/cadubi/cadubi-1.3.ebuild b/app-misc/cadubi/cadubi-1.3.ebuild
new file mode 100644
index 000000000000..e6ba6c3e5f64
--- /dev/null
+++ b/app-misc/cadubi/cadubi-1.3.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit eutils multilib
+
+DESCRIPTION="CADUBI is an application that allows you to draw ASCII-Art images"
+HOMEPAGE="http://langworth.com/CadubiProject"
+SRC_URI="http://langworth.com/downloads/${P}.tar.gz"
+
+LICENSE="Artistic"
+SLOT="0"
+KEYWORDS="~amd64 ppc ppc64 x86"
+IUSE=""
+
+DEPEND="dev-lang/perl
+ >=dev-perl/TermReadKey-2.21"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-helpfile.patch
+}
+
+src_install() {
+ dobin cadubi || die
+ insinto /usr/$(get_libdir)/${PN}
+ doins help.txt
+ dodoc README
+}
diff --git a/app-misc/cadubi/files/cadubi-1.3-helpfile.patch b/app-misc/cadubi/files/cadubi-1.3-helpfile.patch
new file mode 100644
index 000000000000..0d6a2e1fa5c9
--- /dev/null
+++ b/app-misc/cadubi/files/cadubi-1.3-helpfile.patch
@@ -0,0 +1,11 @@
+--- cadubi.orig 2004-03-29 22:36:24.280138064 +0200
++++ cadubi 2004-03-29 22:39:34.473224320 +0200
+@@ -18,7 +18,7 @@
+ # (sorry guys, i wrote this years before i had the remotest clue as to
+ # what the hell i was doing)
+ use FindBin qw($Bin);
+-$HELPFILE = "$Bin/help.txt";
++$HELPFILE = "$Bin/../lib/cadubi/help.txt";
+
+ # other stuff
+ $DEBUG = 0;
diff --git a/app-misc/cadubi/metadata.xml b/app-misc/cadubi/metadata.xml
new file mode 100644
index 000000000000..91f4e72fb544
--- /dev/null
+++ b/app-misc/cadubi/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>
+ <email>maintainer-needed@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-misc/calendar/Manifest b/app-misc/calendar/Manifest
new file mode 100644
index 000000000000..7ee05a5b8216
--- /dev/null
+++ b/app-misc/calendar/Manifest
@@ -0,0 +1 @@
+DIST calendar-0.9.1.tar.bz2 65225 SHA256 73cecf20f3f65996bc4f8585d8edfb8b3c2d5f6191aa85c0e0c8ee099d094bbe SHA512 c8f373ad06265720ab6ba1edb9066cb5474806d023bf0cb3a35876c5bad72de8bac8ab58c2b6d3a9f418d20d04b1811e256abce9296c9c8547c9b7f8005adfb3 WHIRLPOOL ea4e2738675ee8933fce2f57a09156ce03720b4f2d2a8153b85d988c96f9b8ef068aaf74981c475b72403beae9d1a2bf31b695b80c2ab0daa0d9314d77015360
diff --git a/app-misc/calendar/calendar-0.9.1.ebuild b/app-misc/calendar/calendar-0.9.1.ebuild
new file mode 100644
index 000000000000..4a983dd70d7d
--- /dev/null
+++ b/app-misc/calendar/calendar-0.9.1.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit toolchain-funcs
+
+DESCRIPTION="Standard unix calendar program for Linux, ported from OpenBSD"
+HOMEPAGE="http://bsdcalendar.sourceforge.net/"
+SRC_URI="http://bsdcalendar.sourceforge.net/${P}.tar.bz2"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="alpha amd64 ~hppa ~ia64 ~mips ppc ppc64 sparc x86"
+IUSE=""
+
+src_compile() {
+ tc-export CC
+ emake || die "emake failed"
+}
+
+src_install() {
+ dodoc README || die
+ cp -R "${S}/calendars" "${D}/usr/share/calendar" || die "cp failed"
+ dobin calendar || die "dobin failed"
+ doman calendar.1 || die
+}
diff --git a/app-misc/calendar/metadata.xml b/app-misc/calendar/metadata.xml
new file mode 100644
index 000000000000..40149c995561
--- /dev/null
+++ b/app-misc/calendar/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>shell-tools</herd>
+</pkgmetadata>
diff --git a/app-misc/carbon-c-relay/Manifest b/app-misc/carbon-c-relay/Manifest
new file mode 100644
index 000000000000..277e8f4b7ffa
--- /dev/null
+++ b/app-misc/carbon-c-relay/Manifest
@@ -0,0 +1,3 @@
+DIST carbon-c-relay-0.39.tar.gz 55308 SHA256 694cfb291981fda58930af09bd1563a20ca8e40839d8bdbda5b8403774cf391d SHA512 b7797f969bf3431f883a5e8288b748494a9c9d8448c7bcde6642b538e20c6fe99acc296ba7bc940739c53619ee672a46ff787c66d75900f45a057f2660da0e5f WHIRLPOOL 8e1b8646b720f2db3f1a556f57975c9556e4a0d3b36479b6ad58607abe0d9f2629ef7275def4ef6a9dc4b73268376fa07c78b8dac3bd5b8bd90ff70dd706f4cf
+DIST carbon-c-relay-0.40.tar.gz 57697 SHA256 38e3b93f4a46e72f11c30f84bd0a0a77862d8d3cd1904447678eabfce89a0468 SHA512 6d77d521eba6dfa576810f3e850f091431a76282f5c7c85a72af300cff18b0dec8738dd00d9555933fbf486ce9656ea4f06332644bfccc634078c90937705aaa WHIRLPOOL ddaf8d02168a10f1e0e2dd8701cd430aefe7346164016a41e25850b2871d541f9002c93063d0836d40caf6db2ff380183d8a4e145df89324be33ef22386bec39
+DIST carbon-c-relay-0.43.tar.gz 63005 SHA256 de55c2af2392910f28a28dab96faa24a394bf1038f4cc045d4db5f8a0180603e SHA512 9c81011131c242b96c198a299fb26661cceb4a6b66c387f4201fe156cc025ec5ccc9962573eec11f3f98a808ba38638a18dd6b2c535dea61c9eec009e22c0e44 WHIRLPOOL 895b31b54a0b7d28c80cfbe16b0ae0012a87adea738f49f503966c159ea0c536aeb6a6cbf424ed325811b85b1fe376a0aab969abd66d08c553dd300c6707a02c
diff --git a/app-misc/carbon-c-relay/carbon-c-relay-0.39-r1.ebuild b/app-misc/carbon-c-relay/carbon-c-relay-0.39-r1.ebuild
new file mode 100644
index 000000000000..043c4667d003
--- /dev/null
+++ b/app-misc/carbon-c-relay/carbon-c-relay-0.39-r1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit toolchain-funcs user
+
+DESCRIPTION="Enhanced C version of Carbon relay, aggregator and rewriter"
+HOMEPAGE="https://github.com/grobian/carbon-c-relay"
+SRC_URI="https://github.com/grobian/carbon-c-relay/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
+IUSE=""
+
+RDEPEND="dev-libs/openssl:0"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+pkg_preinst() {
+ enewgroup carbon
+ enewuser carbon -1 -1 -1 carbon
+}
+
+src_prepare() {
+ tc-export CC
+}
+
+src_install() {
+ newbin relay ${PN}
+ dodoc README.md
+
+ newinitd "${FILESDIR}"/${PN}.initd ${PN}
+ newconfd "${FILESDIR}"/${PN}.confd ${PN}
+}
diff --git a/app-misc/carbon-c-relay/carbon-c-relay-0.40.ebuild b/app-misc/carbon-c-relay/carbon-c-relay-0.40.ebuild
new file mode 100644
index 000000000000..9789bc255125
--- /dev/null
+++ b/app-misc/carbon-c-relay/carbon-c-relay-0.40.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit toolchain-funcs user
+
+DESCRIPTION="Enhanced C version of Carbon relay, aggregator and rewriter"
+HOMEPAGE="https://github.com/grobian/carbon-c-relay"
+SRC_URI="https://github.com/grobian/carbon-c-relay/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
+IUSE=""
+
+RDEPEND="dev-libs/openssl:0"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+pkg_preinst() {
+ enewgroup carbon
+ enewuser carbon -1 -1 -1 carbon
+}
+
+src_prepare() {
+ tc-export CC
+ tc-has-openmp || sed -i -e '/-fopenmp/s/^/#/' Makefile
+}
+
+src_install() {
+ newbin relay ${PN}
+ dodoc README.md
+
+ newinitd "${FILESDIR}"/${PN}.initd ${PN}
+ newconfd "${FILESDIR}"/${PN}.confd ${PN}
+}
diff --git a/app-misc/carbon-c-relay/carbon-c-relay-0.43.ebuild b/app-misc/carbon-c-relay/carbon-c-relay-0.43.ebuild
new file mode 100644
index 000000000000..e20b1c5dec80
--- /dev/null
+++ b/app-misc/carbon-c-relay/carbon-c-relay-0.43.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit toolchain-funcs user
+
+DESCRIPTION="Enhanced C version of Carbon relay, aggregator and rewriter"
+HOMEPAGE="https://github.com/grobian/carbon-c-relay"
+SRC_URI="https://github.com/grobian/carbon-c-relay/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
+IUSE=""
+
+RDEPEND=""
+DEPEND="${RDEPEND}"
+
+pkg_preinst() {
+ enewgroup carbon
+ enewuser carbon -1 -1 -1 carbon
+}
+
+src_prepare() {
+ tc-export CC
+ tc-has-openmp || export OPENMP_FLAGS=
+}
+
+src_install() {
+ newbin relay ${PN}
+ dodoc README.md
+
+ newinitd "${FILESDIR}"/${PN}.initd ${PN}
+ newconfd "${FILESDIR}"/${PN}.confd ${PN}
+}
diff --git a/app-misc/carbon-c-relay/files/carbon-c-relay.confd b/app-misc/carbon-c-relay/files/carbon-c-relay.confd
new file mode 100644
index 000000000000..b07846c933e7
--- /dev/null
+++ b/app-misc/carbon-c-relay/files/carbon-c-relay.confd
@@ -0,0 +1,16 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+# routing file to read
+#ROUTES_FILE=/etc/carbon-c-relay.conf
+
+# where to store the PID-file
+#PIDFILE=/run/carbon-c-relay.pid
+
+# user and group to run carbon-c-relay as
+#USER=carbon
+#GROUP=carbon
+
+# any options to use when starting the relay
+#EXTRA_OPTS=
diff --git a/app-misc/carbon-c-relay/files/carbon-c-relay.initd b/app-misc/carbon-c-relay/files/carbon-c-relay.initd
new file mode 100644
index 000000000000..40efa5286a6b
--- /dev/null
+++ b/app-misc/carbon-c-relay/files/carbon-c-relay.initd
@@ -0,0 +1,71 @@
+#!/sbin/runscript
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+extra_commands="configtest"
+extra_started_commands="reload"
+
+description="Lightweight graphite metrics router and aggregator."
+description_configtest="Run carbon-c-relay's internal config check."
+description_reload="Reload the carbon-c-relay configuration without losing connections."
+
+routes_config=${ROUTES_FILE:-/etc/${SVCNAME}.conf}
+
+command="/usr/bin/carbon-c-relay"
+command_args="-f ${routes_config} ${EXTRA_OPTS}"
+pidfile=${PIDFILE:-/run/${SVCNAME}.pid}
+user=${USER:-carbon}
+group=${GROUP:-carbon}
+
+depend() {
+ need net
+ use dns
+}
+
+start_pre() {
+ if [ "${RC_CMD}" != "restart" ]; then
+ configtest || return 1
+ fi
+ touch /var/log/${SVCNAME}.log
+ chown ${user}:${group} /var/log/${SVCNAME}.log
+}
+
+stop_pre() {
+ if [ "${RC_CMD}" = "restart" ]; then
+ configtest || return 1
+ fi
+}
+
+stop_post() {
+ rm -f ${pidfile}
+}
+
+start() {
+ ebegin "Starting ${SVCNAME}"
+ start-stop-daemon --start --background --make-pidfile --pidfile ${pidfile} \
+ --stdout /var/log/${SVCNAME}.log \
+ --stderr /var/log/${SVCNAME}.log \
+ --user ${user} --group ${group} \
+ --exec ${command} -- ${command_args}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ${SVCNAME}"
+ start-stop-daemon --stop --exec ${command} --pidfile ${pidfile}
+ eend $?
+}
+
+reload() {
+ configtest || return 1
+ ebegin "Refreshing ${SVCNAME}'s configuration"
+ kill -HUP $(< ${pidfile}) &>/dev/null
+ eend $? "Failed to reload ${SVCNAME}"
+}
+
+configtest() {
+ ebegin "Checking ${SVCNAME}'s configuration"
+ ${command} -f "${routes_config}" -t < /dev/null > /dev/null
+ eend $? "failed, please correct errors above"
+}
diff --git a/app-misc/carbon-c-relay/metadata.xml b/app-misc/carbon-c-relay/metadata.xml
new file mode 100644
index 000000000000..0b5431e071ab
--- /dev/null
+++ b/app-misc/carbon-c-relay/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>
+ <email>grobian@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">grobian/carbon-c-relay</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/cbrpager/Manifest b/app-misc/cbrpager/Manifest
new file mode 100644
index 000000000000..1f5aa2dbd2a0
--- /dev/null
+++ b/app-misc/cbrpager/Manifest
@@ -0,0 +1,2 @@
+DIST cbrpager-0.9.20.tar.gz 157732 SHA256 8838c53c49d2982c4d716ff5f241cf7168d5c4c5888cd73db21e73402dd5db39 SHA512 6756ce243a4cd7496ae75ff05c8d8cd5de23b6f284b5f214812b3569df8ff9e75fa6157f3d649b30193814669a868ac61fbc1579f9793446aa9882decb9e4191 WHIRLPOOL fbbb5fa10df4f13100df44f194ad234932b87dd77943de1d92e9af636f2e4702619def2a2600b44a4b71986ad9f156123dfdc31b909699838d4f4c5994c31c7b
+DIST cbrpager-0.9.22.tar.gz 146216 SHA256 1852303374d7777f2a5f395fda97d78f970fa87c854ee048495a901922b7dd84 SHA512 dc4bcf14528e6708a3ff0fc3b7e3163dfb9d6063f1cf40545b4f804915afedd9db4cd461834de7ee92fcd4b2f302b7f2ed0d9ae022e220dd8e6c95ccabea34d5 WHIRLPOOL eb0b85d419c78a06793ec4c8f99f476971647200f1a78573b807bcf2edb95f029e2e7093a62aec1d8bf78b92c3c9c54714af15ad17fe6997358e36db1eafba70
diff --git a/app-misc/cbrpager/cbrpager-0.9.20.ebuild b/app-misc/cbrpager/cbrpager-0.9.20.ebuild
new file mode 100644
index 000000000000..50ae3a8ccc04
--- /dev/null
+++ b/app-misc/cbrpager/cbrpager-0.9.20.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=3
+inherit eutils base
+
+DESCRIPTION="a simple comic book pager"
+HOMEPAGE="http://cbrpager.sourceforge.net"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE=""
+
+RDEPEND="|| ( app-arch/unrar app-arch/rar )
+ >=gnome-base/libgnomeui-2"
+DEPEND="${RDEPEND}
+ sys-devel/gettext
+ virtual/pkgconfig"
+
+src_install() {
+ base_src_install
+ dodoc AUTHORS ChangeLog CONTRIBUTORS NEWS README TODO || die
+ make_desktop_entry ${PN} "CBR Pager" ${PN} "Graphics;Viewer;Amusement;GTK"
+}
diff --git a/app-misc/cbrpager/cbrpager-0.9.22.ebuild b/app-misc/cbrpager/cbrpager-0.9.22.ebuild
new file mode 100644
index 000000000000..177db6c7669d
--- /dev/null
+++ b/app-misc/cbrpager/cbrpager-0.9.22.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=3
+
+inherit eutils base
+
+DESCRIPTION="a simple comic book pager"
+HOMEPAGE="http://cbrpager.sourceforge.net"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+RDEPEND="|| ( app-arch/unrar app-arch/rar )
+ >=gnome-base/libgnomeui-2"
+DEPEND="${RDEPEND}
+ sys-devel/gettext
+ virtual/pkgconfig"
+
+src_install() {
+ base_src_install
+ dodoc AUTHORS ChangeLog CONTRIBUTORS NEWS README TODO || die
+ make_desktop_entry ${PN} "CBR Pager" ${PN} "Graphics;Viewer;Amusement;GTK"
+}
diff --git a/app-misc/cbrpager/metadata.xml b/app-misc/cbrpager/metadata.xml
new file mode 100644
index 000000000000..f7c792c52245
--- /dev/null
+++ b/app-misc/cbrpager/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>
+ <email>xmw@gentoo.org</email>
+ <name>Michael Weber</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">cbrpager</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/cbview/Manifest b/app-misc/cbview/Manifest
new file mode 100644
index 000000000000..c8462cd1a95e
--- /dev/null
+++ b/app-misc/cbview/Manifest
@@ -0,0 +1 @@
+DIST cbview-0.06.tar.gz 16351 SHA256 79107627ea70c43410c293d8b99554457d6244d9f50dd2425e39c215f2cc94bc SHA512 4a680243a8c31fafad8826d1ead6d21fcce3642beef9ed82b19a7a75d78e7af32cd8d7800de15bd2b9a59241f81a295b7da8f7a80fa482b41fb589a274bfea06 WHIRLPOOL fdf40271b6cee78974eff621682a10fcb61277d7bc60b1685b00e72cfdc98c61350ab5b7bda957080b23370c4feb44e10b93ee90d6d67ede8ff8d91cb8a95899
diff --git a/app-misc/cbview/cbview-0.06.ebuild b/app-misc/cbview/cbview-0.06.ebuild
new file mode 100644
index 000000000000..2bea803b5089
--- /dev/null
+++ b/app-misc/cbview/cbview-0.06.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+DESCRIPTION="viewer/converter for CBR/CBZ comic book archives"
+HOMEPAGE="http://elvine.org/code/cbview/"
+SRC_URI="http://elvine.org/code/cbview/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~ppc ~amd64"
+IUSE=""
+
+DEPEND="dev-perl/gtk2-perl
+ dev-perl/String-ShellQuote
+ app-arch/unrar
+ app-arch/unzip"
+
+src_install() {
+ dobin cbview || die "Install failed"
+ dodoc README TODO
+}
diff --git a/app-misc/cbview/metadata.xml b/app-misc/cbview/metadata.xml
new file mode 100644
index 000000000000..d9cd2cad66c2
--- /dev/null
+++ b/app-misc/cbview/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>
+<email>maintainer-needed@gentoo.org</email>
+</maintainer>
+</pkgmetadata>
diff --git a/app-misc/cdargs/Manifest b/app-misc/cdargs/Manifest
new file mode 100644
index 000000000000..ea6eae11267c
--- /dev/null
+++ b/app-misc/cdargs/Manifest
@@ -0,0 +1 @@
+DIST cdargs-1.35.tar.gz 74103 SHA256 ee35a8887c2379c9664b277eaed9b353887d89480d5749c9ad957adf9c57ed2c SHA512 13df5d18de6f62309a0ecccc0dd95508d81d1955f87cfd2962360d3b7d74c5cdc2b0d2e00f7a4f1e7556bfbcbd3e2ecf4847a1a48ab47442e6d2d5a36db0cf0c WHIRLPOOL 1003ba9df179ee37684ab9e63d6ac15d8c6963a481304d75b322d04afafa0fbb105cc27af1e14247b8f92e67d08125ba7a626ae9a1ecec0e8a792787097a7ee6
diff --git a/app-misc/cdargs/cdargs-1.35-r2.ebuild b/app-misc/cdargs/cdargs-1.35-r2.ebuild
new file mode 100644
index 000000000000..bc8aa45d2066
--- /dev/null
+++ b/app-misc/cdargs/cdargs-1.35-r2.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit autotools elisp-common eutils
+
+DESCRIPTION="Bookmarks and browser for the shell builtin cd command"
+HOMEPAGE="http://www.skamphausen.de/cgi-bin/ska/CDargs"
+SRC_URI="http://www.skamphausen.de/software/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc ~sparc x86"
+IUSE="emacs"
+
+DEPEND="
+ sys-libs/ncurses
+ emacs? ( virtual/emacs )"
+RDEPEND="${DEPEND}"
+
+SITEFILE=50${PN}-gentoo.el
+
+PATCHES=(
+ "${FILESDIR}"/${P}-format_security.patch
+ "${FILESDIR}"/${P}-tinfo.patch
+ )
+
+src_prepare() {
+ epatch "${PATCHES[@]}"
+ mv configure.{in,ac} || die
+ eautoreconf
+}
+
+src_compile() {
+ default
+
+ use emacs && elisp-compile contrib/cdargs.el
+}
+
+src_install() {
+ default
+
+ cd "${S}/contrib" || die
+ insinto /usr/share/cdargs
+ doins cdargs-bash.sh cdargs-tcsh.csh
+ if use emacs ; then
+ elisp-install ${PN} cdargs.{el,elc}
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}"
+ fi
+}
+
+pkg_postinst() {
+ use emacs && elisp-site-regen
+
+ echo
+ elog "Add the following line to your ~/.bashrc to enable cdargs helper"
+ elog "functions/aliases in your environment:"
+ elog "[ -f /usr/share/cdargs/cdargs-bash.sh ] && \\ "
+ elog " source /usr/share/cdargs/cdargs-bash.sh"
+ elog
+ elog "Users of tcshell will find cdargs-tcsh.csh there with a reduced"
+ elog "feature set. See INSTALL file in the documentation directory for"
+ elog "more information."
+ echo
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}
diff --git a/app-misc/cdargs/files/50cdargs-gentoo.el b/app-misc/cdargs/files/50cdargs-gentoo.el
new file mode 100644
index 000000000000..f9203b308ce0
--- /dev/null
+++ b/app-misc/cdargs/files/50cdargs-gentoo.el
@@ -0,0 +1,8 @@
+
+;;; app-misc/cdargs site-lisp configuration
+
+(add-to-list 'load-path "@SITELISP@")
+(autoload 'cdargs "cdargs"
+ "Change the current working directory using a bookmarks file." t)
+(defalias 'cv 'cdargs)
+(autoload 'cdargs-edit "cdargs" "Simply open the bookmarks file" t)
diff --git a/app-misc/cdargs/files/cdargs-1.35-format_security.patch b/app-misc/cdargs/files/cdargs-1.35-format_security.patch
new file mode 100644
index 000000000000..978a8e92c088
--- /dev/null
+++ b/app-misc/cdargs/files/cdargs-1.35-format_security.patch
@@ -0,0 +1,100 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en' lang='en'>
+<head>
+<title>cdargs.git - cdargs</title>
+<meta name='generator' content='cgit v0.10.2'/>
+<meta name='robots' content='index, nofollow'/>
+<link rel='stylesheet' type='text/css' href='/cgit-data/cgit.css'/>
+<link rel='shortcut icon' href='/favicon.ico'/>
+<link rel='alternate' title='Atom feed' href='http://pkgs.fedoraproject.org/cgit/cdargs.git/atom/cdargs-1.35_format_security.patch?h=master' type='application/atom+xml'/>
+</head>
+<body>
+<script src="https://apps.fedoraproject.org/fedmenu/js/jquery-1.11.2.min.js"></script>
+<script src="https://apps.fedoraproject.org/fedmenu/js/fedmenu.js"></script>
+
+<script>
+ var base = 'https://apps.fedoraproject.org/';
+ var tokens = window.location.href.split('/');
+ var repo = null;
+ if (tokens.length > 4 && tokens[4] != '') {
+ repo = tokens[4].split('.')[0];
+ }
+ fedmenu({
+ 'url': base + 'js/data.js',
+ 'mimeType': 'application/javascript',
+ 'position': 'bottom-right',
+ 'package': repo,
+ });
+</script>
+<div id='cgit'><table id='header'>
+<tr>
+<td class='logo' rowspan='2'><a href='/cgit/'><img src='/cgit-data/cgit.png' alt='cgit logo'/></a></td>
+<td class='main'><a href='/cgit/'>index</a> : <a title='cdargs.git' href='/cgit/cdargs.git/'>cdargs.git</a></td><td class='form'><form method='get' action=''>
+<select name='h' onchange='this.form.submit();'>
+<option value='f10'>f10</option>
+<option value='f11'>f11</option>
+<option value='f12'>f12</option>
+<option value='f13'>f13</option>
+<option value='f14'>f14</option>
+<option value='f15'>f15</option>
+<option value='f16'>f16</option>
+<option value='f17'>f17</option>
+<option value='f18'>f18</option>
+<option value='f19'>f19</option>
+<option value='f20'>f20</option>
+<option value='f21'>f21</option>
+<option value='f22'>f22</option>
+<option value='f7'>f7</option>
+<option value='f8'>f8</option>
+<option value='f9'>f9</option>
+<option value='master' selected='selected'>master</option>
+</select> <input type='submit' name='' value='switch'/></form></td></tr>
+<tr><td class='sub'>cdargs</td><td class='sub right'>Jesse Keating</td></tr></table>
+<table class='tabs'><tr><td>
+<a href='/cgit/cdargs.git/'>summary</a><a href='/cgit/cdargs.git/refs/'>refs</a><a href='/cgit/cdargs.git/log/cdargs-1.35_format_security.patch'>log</a><a class='active' href='/cgit/cdargs.git/tree/cdargs-1.35_format_security.patch'>tree</a><a href='/cgit/cdargs.git/commit/cdargs-1.35_format_security.patch'>commit</a><a href='/cgit/cdargs.git/diff/cdargs-1.35_format_security.patch'>diff</a><a href='/cgit/cdargs.git/stats/cdargs-1.35_format_security.patch'>stats</a></td><td class='form'><form class='right' method='get' action='/cgit/cdargs.git/log/cdargs-1.35_format_security.patch'>
+<select name='qt'>
+<option value='grep'>log msg</option>
+<option value='author'>author</option>
+<option value='committer'>committer</option>
+<option value='range'>range</option>
+</select>
+<input class='txt' type='text' size='10' name='q' value=''/>
+<input type='submit' value='search'/>
+</form>
+</td></tr></table>
+<div class='path'>path: <a href='/cgit/cdargs.git/tree/'>root</a>/<a href='/cgit/cdargs.git/tree/cdargs-1.35_format_security.patch'>cdargs-1.35_format_security.patch</a></div><div class='content'>blob: 3ddc550e607e9f908b891c7e3626ee256484607e (<a href='/cgit/cdargs.git/plain/cdargs-1.35_format_security.patch'>plain</a>)
+<table summary='blob content' class='blob'>
+<tr><td class='linenumbers'><pre><a id='n1' href='#n1'>1</a>
+<a id='n2' href='#n2'>2</a>
+<a id='n3' href='#n3'>3</a>
+<a id='n4' href='#n4'>4</a>
+<a id='n5' href='#n5'>5</a>
+<a id='n6' href='#n6'>6</a>
+<a id='n7' href='#n7'>7</a>
+<a id='n8' href='#n8'>8</a>
+<a id='n9' href='#n9'>9</a>
+<a id='n10' href='#n10'>10</a>
+<a id='n11' href='#n11'>11</a>
+<a id='n12' href='#n12'>12</a>
+<a id='n13' href='#n13'>13</a>
+</pre></td>
+<td class='lines'><pre><code>diff --git a/src/cdargs.cc b/src/cdargs.cc
+index e505e4e..1fdfeb8 100644
+--- a/src/cdargs.cc
++++ b/src/cdargs.cc
+@@ -1301,7 +1301,7 @@ void helpscreen(void) {
+
+ void fatal_exit(char* msg) {
+ endwin();
+- fprintf(stderr, msg);
++ fprintf(stderr, "%s", msg);
+ exit(1);
+ }
+
+</code></pre></td></tr></table>
+</div> <!-- class=content -->
+<div class='footer'>generated by cgit v0.10.2 at 2015-06-21 13:46:50 (GMT)</div>
+</div> <!-- id=cgit -->
+</body>
+</html>
diff --git a/app-misc/cdargs/files/cdargs-1.35-tinfo.patch b/app-misc/cdargs/files/cdargs-1.35-tinfo.patch
new file mode 100644
index 000000000000..d85a3b9b685c
--- /dev/null
+++ b/app-misc/cdargs/files/cdargs-1.35-tinfo.patch
@@ -0,0 +1,20 @@
+ configure.in | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/configure.in b/configure.in
+index a21d664..263929e 100644
+--- a/configure.in
++++ b/configure.in
+@@ -8,10 +8,11 @@ dnl if test "$has_curses" = "false" ; then
+ dnl AC_MSG_ERROR([Fatal error: couldn't find ncurses/curses.])
+ dnl fi
+
++PKG_CHECK_MODULES([NCURSES], [ncurses],[CURSES_LIB=${NCURSES_LIBS}],[
+ MP_WITH_CURSES
+ if test "x$CURSES_LIB" = "x" ; then
+ AC_MSG_ERROR([Fatal error: couldn't find ncurses/curses.])
+-fi
++fi])
+ AC_SUBST(CURSES_LIB)
+
+ AC_OUTPUT(Makefile contrib/Makefile doc/Makefile src/Makefile m4/Makefile cdargs.spec)
diff --git a/app-misc/cdargs/metadata.xml b/app-misc/cdargs/metadata.xml
new file mode 100644
index 000000000000..40149c995561
--- /dev/null
+++ b/app-misc/cdargs/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>shell-tools</herd>
+</pkgmetadata>
diff --git a/app-misc/cdcat/Manifest b/app-misc/cdcat/Manifest
new file mode 100644
index 000000000000..870805040b3f
--- /dev/null
+++ b/app-misc/cdcat/Manifest
@@ -0,0 +1 @@
+DIST cdcat-0.3.tar.gz 7464 SHA256 b7c0ff819e572fa5b9c160a0d2fac391995c96c3bb5d61cc64ed63d17139a651 SHA512 6d30a22c29a1846a3899f384bcc395444af77b62024cb9f45da877819614c3f1ff495e03f7d7b498716fe4725c569c88a14480a37fc4e4fef5cfd9a640e4cfa3 WHIRLPOOL 68a0604bb6afe71c8c5836421f68a0d21fd0620865531add222e478a375ba8040d7a52b58c2b44b1e2502deeb5a07c7fbe2935432fb6a4a3049d3a312b500f78
diff --git a/app-misc/cdcat/cdcat-0.3.ebuild b/app-misc/cdcat/cdcat-0.3.ebuild
new file mode 100644
index 000000000000..52e25535898e
--- /dev/null
+++ b/app-misc/cdcat/cdcat-0.3.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+DESCRIPTION="simple yet effective CD indexing program"
+# original src went away: SRC_URI="http://littledragon.home.ro/unix/${P}.tar.gz"
+SRC_URI="mirror://gentoo/${P}.tar.gz"
+HOMEPAGE="http://dev.gentoo.org/~centic/cdcat/"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE=""
+
+DEPEND=">=sys-apps/sed-4.0.5
+ >=sys-apps/grep-2.4.2
+ >=sys-apps/findutils-4.1
+ virtual/cdrtools
+ !app-backup/cdbkup"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ # workaround install.sh ignoring --man_prefix
+ sed -i 's:^MAN_PREFIX:#:' install.sh
+
+ # fix path to cd index files to be FHS-compliant
+ sed -i 's:/mnt/ext/cd:/var/lib/cdcat:' src/cdcat.pl
+
+ # work around problem with isoinfo -di
+ sed -i 's:isoinfo -di:isoinfo -d -i:' src/cdcat.pl
+}
+
+src_install() {
+ # workaround install.sh ignoring --man_prefix
+ export MAN_PREFIX="${D}/usr/share/man"
+ dodir /usr/share/man/man1
+
+ # create index files path
+ dodir /var/lib/cdcat
+ chgrp cdrom "${D}"/var/lib/cdcat
+ chmod g+ws,o+w "${D}"/var/lib/cdcat
+
+ # now use the included install.sh
+ ./install.sh --prefix="${D}/usr" \
+ --man_prefix="${D}/usr/share/man" || die "Install script failed."
+
+ insinto /etc
+ doins doc/cdcat.conf || die
+}
diff --git a/app-misc/cdcat/metadata.xml b/app-misc/cdcat/metadata.xml
new file mode 100644
index 000000000000..59e2b8f78cb5
--- /dev/null
+++ b/app-misc/cdcat/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>maintainer-needed@gentoo.org</email>
+ <name>Default assignee for orphaned packages</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-misc/cdctl/Manifest b/app-misc/cdctl/Manifest
new file mode 100644
index 000000000000..7bb2030b8519
--- /dev/null
+++ b/app-misc/cdctl/Manifest
@@ -0,0 +1,2 @@
+DIST cdctl-0.15.tar.gz 44163 SHA256 6e9b6cbc6824c5fab7e7a45878605296ad8c62692cac6db468d5e42296d51e39 SHA512 7bcaec8f52cafbe84d87dcb740a952520ceccb197b1491a88bb03d6a993a6385d424f67386a7175bb30c5c8b3ac02abf31c2e8843c1cd7d1d808eee70a5906f4 WHIRLPOOL 4e7782421f142a8cc442837ca40c1969cca3467850b701f90bc6e0d9589c7d9ab216dc94dec2633c361b327cf1c37e1e0863480108e925446a6badac5e127b48
+DIST cdctl-0.16.tar.gz 34121 SHA256 b98c17accd72fdc12dd4cd4dfe9f198b961e44c6bc15f62085e71766858eaa7f SHA512 e1c341cf0acabc28c8aedb3265e65ffe90668b83eb44d23577049cc81a160ab0ec8b6e813cf8ffe20aaf83b4d056a8f07c2e958f5a6086db3843b84b36e060b4 WHIRLPOOL 842bd397d8afb3e85e41bb9f6b097324fe9b86f7afcc16524f52fd98f08037e95a031135162c52c3b0790dbd907d68aa015b62f05a20eb925897098fb15dab48
diff --git a/app-misc/cdctl/cdctl-0.15.ebuild b/app-misc/cdctl/cdctl-0.15.ebuild
new file mode 100644
index 000000000000..39b43cfc51bb
--- /dev/null
+++ b/app-misc/cdctl/cdctl-0.15.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Utility to control your cd/dvd drive"
+HOMEPAGE="http://cdctl.sourceforge.net/"
+SRC_URI="mirror://sourceforge/cdctl/${P}.tar.gz"
+
+LICENSE="free-noncomm"
+SLOT="0"
+KEYWORDS="x86 ppc amd64 ppc64"
+IUSE=""
+
+DEPEND=""
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-Makefile.in.patch
+ epatch "${FILESDIR}"/${P}-cdc_ioctls.patch
+}
+
+src_compile() {
+ econf
+ emake CC="$(tc-getCC)" \
+ CFLAGS="${CFLAGS}" \
+ || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+ dodoc NEWS NUTSANDBOLTS PUBLICKEY README
+}
diff --git a/app-misc/cdctl/cdctl-0.16.ebuild b/app-misc/cdctl/cdctl-0.16.ebuild
new file mode 100644
index 000000000000..0ac2f237b195
--- /dev/null
+++ b/app-misc/cdctl/cdctl-0.16.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils autotools toolchain-funcs
+
+DESCRIPTION="Utility to control your cd/dvd drive"
+HOMEPAGE="http://cdctl.sourceforge.net/"
+SRC_URI="mirror://sourceforge/cdctl/${P}.tar.gz"
+
+LICENSE="free-noncomm"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE=""
+
+DEPEND=""
+
+S="${WORKDIR}/${PN}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-0.16-Makefile.in.patch
+
+ eautoreconf
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)"
+}
diff --git a/app-misc/cdctl/files/cdctl-0.15-Makefile.in.patch b/app-misc/cdctl/files/cdctl-0.15-Makefile.in.patch
new file mode 100644
index 000000000000..6d8e11502fcc
--- /dev/null
+++ b/app-misc/cdctl/files/cdctl-0.15-Makefile.in.patch
@@ -0,0 +1,56 @@
+--- Makefile.in.orig 2003-02-20 21:57:38.000000000 -0800
++++ Makefile.in 2003-02-20 22:27:10.000000000 -0800
+@@ -2,10 +2,12 @@
+ CFLAGS=-Wall -g
+ BINS=cdctl sndreset
+ OBJS=cdctl.o version.o ioctls.o iso_header.o
+-DOCS=NEWS NUTSANDBOLTS LICENSE PUBLICKEY README SEGFAULTS
++DOCS=NEWS NUTSANDBOLTS LICENSE PUBLICKEY README
+ MANS=cdctl.1
+ MOS=cdctl.mo
+
++prefix = @prefix@
++exec_prefix = @exec_prefix@
+ bindir = @bindir@
+ mandir = @mandir@
+ datadir = @datadir@
+@@ -16,6 +18,10 @@
+ INSTALL = @INSTALL@
+ INSTALL_DATA = $(INSTALL) -m 644
+
++DESTDIR =
++
++man1dir = $(mandir)/man1
++
+ all: $(BINS)
+
+ cdctl: $(OBJS)
+@@ -26,21 +32,21 @@
+ version.o: version.c
+ iso_header.o: iso_header.c
+
+-install: install-bins install-docs install-mans install-mos
++install: install-bins install-mans install-mos
+
+ install-bins: $(BINS)
+- $(INSTALL) -s $(BINS) $(bindir)
+-
+-install-docs: $(DOCS)
+- $(INSTALL_DATA) $(DOCS) $(datadir)
++ $(INSTALL) -d $(DESTDIR)$(bindir)
++ $(INSTALL) $(BINS) $(DESTDIR)$(bindir)
+
+ install-mans: $(MANS)
+- $(INSTALL_DATA) $(MANS) $(mandir)
++ $(INSTALL) -d $(DESTDIR)$(man1dir)
++ $(INSTALL_DATA) $(MANS) $(DESTDIR)$(man1dir)
+
+ # FIXME: need to deal with other languages besides German
+
+ install-mos: cdctl.mo
+- $(INSTALL_DATA) $(MOS) $(localedir)/de/LC_MESSAGES
++ $(INSTALL) -d $(DESTDIR)$(localedir)/de/LC_MESSAGES
++ $(INSTALL_DATA) $(MOS) $(DESTDIR)$(localedir)/de/LC_MESSAGES
+
+ cdctl.mo: cdctl.po
+ msgfmt cdctl.po -o cdctl.mo
diff --git a/app-misc/cdctl/files/cdctl-0.15-cdc_ioctls.patch b/app-misc/cdctl/files/cdctl-0.15-cdc_ioctls.patch
new file mode 100644
index 000000000000..8e440955907b
--- /dev/null
+++ b/app-misc/cdctl/files/cdctl-0.15-cdc_ioctls.patch
@@ -0,0 +1,13 @@
+diff -Naurp cdctl-0.15-orig/cdctl.c cdctl-0.15/cdctl.c
+--- cdctl-0.15-orig/cdctl.c 2006-08-08 23:18:44.000000000 +0200
++++ cdctl-0.15/cdctl.c 2006-08-08 23:19:33.000000000 +0200
+@@ -337,7 +337,9 @@ int do_print_capabilities(int cdrom) {
+ printf("Can report media change: %i\n", (ret & CDC_MEDIA_CHANGED)?1:0);
+ printf("Can play audio discs : %i\n", (ret & CDC_PLAY_AUDIO)?1:0);
+ printf("Can do a hard reset : %i\n", (ret & CDC_RESET)?1:0);
++#ifdef CDC_IOCTLS
+ printf("Has non-standard ioctls: %i\n", (ret & CDC_IOCTLS)?1:0);
++#endif
+ printf("Can report drive status: %i\n", (ret & CDC_DRIVE_STATUS)?1:0);
+
+ #ifdef CDROM_CHANGER_NSLOTS
diff --git a/app-misc/cdctl/files/cdctl-0.16-Makefile.in.patch b/app-misc/cdctl/files/cdctl-0.16-Makefile.in.patch
new file mode 100644
index 000000000000..f6f4ad3abdcf
--- /dev/null
+++ b/app-misc/cdctl/files/cdctl-0.16-Makefile.in.patch
@@ -0,0 +1,55 @@
+--- cdctl/Makefile.in
++++ cdctl/Makefile.in
+@@ -1,8 +1,8 @@
+ CC=gcc
+-CFLAGS=-Wall -g
++CFLAGS:=-Wall -g
+ BINS=cdctl sndreset
+ OBJS=cdctl.o version.o ioctls.o iso_header.o
+-DOCS=NEWS NUTSANDBOLTS LICENSE PUBLICKEY README SEGFAULTS
++DOCS=NEWS NUTSANDBOLTS LICENSE PUBLICKEY README
+ # NOTE: all man pages are installed in $(mandir)/man1 -- see install-mans
+ MANS=cdctl.1
+ MOS=cdctl.mo
+@@ -22,6 +22,8 @@
+ INSTALL_DIR = $(INSTALL) -d
+ INSTALL_DATA = $(INSTALL) -m 644
+
++DESTDIR =
++
+ all: $(BINS)
+
+ cdctl: $(OBJS)
+@@ -35,25 +37,21 @@
+ indent:
+ indent -kr -cdb -sc *.c
+
+-install: install-bins install-docs install-mans install-mos
++install: install-bins install-mans install-mos
+
+ install-bins: $(BINS)
+- $(INSTALL_DIR) $(bindir)
+- $(INSTALL) -s $(BINS) $(bindir)
+-
+-install-docs: $(DOCS)
+- $(INSTALL_DIR) $(docdir)
+- $(INSTALL_DATA) $(DOCS) $(docdir)
++ $(INSTALL_DIR) $(DESTDIR)$(bindir)
++ $(INSTALL) $(BINS) $(DESTDIR)$(bindir)
+
+ install-mans: $(MANS)
+- $(INSTALL_DIR) $(mandir)/man1
+- $(INSTALL_DATA) $(MANS) $(mandir)/man1
++ $(INSTALL_DIR) $(DESTDIR)/$(mandir)/man1
++ $(INSTALL_DATA) $(MANS) $(DESTDIR)$(mandir)/man1
+
+ # FIXME: need to deal with other languages besides German
+
+ install-mos: cdctl.mo
+- $(INSTALL_DIR) $(localedir)/de/LC_MESSAGES
+- $(INSTALL_DATA) $(MOS) $(localedir)/de/LC_MESSAGES
++ $(INSTALL_DIR) $(DESTDIR)$(localedir)/de/LC_MESSAGES
++ $(INSTALL_DATA) $(MOS) $(DESTDIR)$(localedir)/de/LC_MESSAGES
+
+ cdctl.mo: cdctl.po
+ msgfmt cdctl.po -o cdctl.mo
diff --git a/app-misc/cdctl/metadata.xml b/app-misc/cdctl/metadata.xml
new file mode 100644
index 000000000000..65e05e457683
--- /dev/null
+++ b/app-misc/cdctl/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>
+ <email>maintainer-needed@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">cdctl</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/cdircmp/Manifest b/app-misc/cdircmp/Manifest
new file mode 100644
index 000000000000..6ec501b1b06c
--- /dev/null
+++ b/app-misc/cdircmp/Manifest
@@ -0,0 +1 @@
+DIST cdircmp-0.3.tar.gz 17253 SHA256 b66d8fbcb90f84c4ac1a735ad744b0d5905fbb0a04d5ecf6e14c058be805fe19 SHA512 66fa27a3c06aa4bd6584da2c6a38ad0798f5f10eb9b021080c473d03733bd2dba344549e95c22485bf72536a03a4e91a7497192296b6c297166e47a679cf0079 WHIRLPOOL 6c4ec8a3e5e6352aa1108b343ecd3865757e6304bfced30735a7efcfc6393334330f80a70c0a2103170379ab50d3acdf64c92fe6067989f4e9f78bd3630fbdfc
diff --git a/app-misc/cdircmp/cdircmp-0.3-r1.ebuild b/app-misc/cdircmp/cdircmp-0.3-r1.ebuild
new file mode 100644
index 000000000000..5da50e11b70a
--- /dev/null
+++ b/app-misc/cdircmp/cdircmp-0.3-r1.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="2"
+
+inherit toolchain-funcs
+
+DESCRIPTION="Compare directories and select files to copy"
+HOMEPAGE="http://home.hccnet.nl/paul.schuurmans/"
+SRC_URI="http://home.hccnet.nl/paul.schuurmans/download/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86"
+IUSE=""
+
+RDEPEND=">=sys-libs/ncurses-5.4"
+DEPEND="${RDEPEND}
+ >=sys-apps/sed-4"
+
+src_prepare() {
+ sed -i Makefile \
+ -e 's| -o | $(LDFLAGS)&|g' \
+ || die "sed Makefile"
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" \
+ CFLAGS="${CFLAGS}" \
+ LDFLAGS="${LDFLAGS}" \
+ || die "emake failed"
+}
+
+src_install() {
+ dodoc AUTHORS ChangeLog README
+
+ dobin ${PN} || die "dobin failed"
+}
diff --git a/app-misc/cdircmp/metadata.xml b/app-misc/cdircmp/metadata.xml
new file mode 100644
index 000000000000..59e2b8f78cb5
--- /dev/null
+++ b/app-misc/cdircmp/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>maintainer-needed@gentoo.org</email>
+ <name>Default assignee for orphaned packages</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-misc/cdspeed/Manifest b/app-misc/cdspeed/Manifest
new file mode 100644
index 000000000000..9e25fc648aa9
--- /dev/null
+++ b/app-misc/cdspeed/Manifest
@@ -0,0 +1 @@
+DIST cdspeed-0.4.tar.gz 3696 SHA256 b8d4214731345b2259460c5572e51162090585c5f1114cfff5a3ae2e620e3fa1 SHA512 2f656c0a8269a568f10a499efb6414c217369d42dc6fee393ccfdbb69b89ab6e01dae2e3901049081a29b7a2bed857591f9ff8b2855aa6e325b85aecba2e2b37 WHIRLPOOL a7213f272e353de9f84e820ebbcd9c6049d132f09bed4734dddaf8e0b661f8ad46ba1909b36fdbb721a6b79218c57b83524ebe376cb1580e4bdf4ef116de458a
diff --git a/app-misc/cdspeed/cdspeed-0.4-r1.ebuild b/app-misc/cdspeed/cdspeed-0.4-r1.ebuild
new file mode 100644
index 000000000000..6fb39d1bacee
--- /dev/null
+++ b/app-misc/cdspeed/cdspeed-0.4-r1.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="2"
+
+inherit toolchain-funcs
+
+DESCRIPTION="Change the speed of your CD drive"
+HOMEPAGE="http://linuxfocus.org/~guido/"
+SRC_URI="http://linuxfocus.org/~guido/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 ~hppa ~mips ppc x86"
+IUSE=""
+
+DEPEND=">=sys-apps/sed-4"
+RDEPEND=""
+
+src_prepare() {
+ sed -i Makefile \
+ -e 's| -o | $(LDFLAGS)&|g' \
+ || die "sed Makefile failed"
+}
+
+src_compile() {
+ emake CFLAGS="${CFLAGS} -Wall -Wno-unused" CC=$(tc-getCC) \
+ || die "emake failed"
+}
+
+src_install() {
+ emake PREFIX="${D}/usr" install || die "emake install"
+ dodoc README
+}
diff --git a/app-misc/cdspeed/metadata.xml b/app-misc/cdspeed/metadata.xml
new file mode 100644
index 000000000000..d9cd2cad66c2
--- /dev/null
+++ b/app-misc/cdspeed/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>
+<email>maintainer-needed@gentoo.org</email>
+</maintainer>
+</pkgmetadata>
diff --git a/app-misc/ckb/Manifest b/app-misc/ckb/Manifest
new file mode 100644
index 000000000000..ca5334e6ea36
--- /dev/null
+++ b/app-misc/ckb/Manifest
@@ -0,0 +1,2 @@
+DIST ckb-0.1.5.tar.gz 370107 SHA256 944e2735ca397287fbbadcff4f6946a7bcfd2a1a4d12f5e121a79e6b4fd39f8a SHA512 2f6b876e09c3f012c09d7d0f80ce21c80325d2588427074aeb9eb287b2aae58fdb66290bbd3643eeb7d6523d8230b6787c6517dd8a996db5af13c00fc8e84414 WHIRLPOOL 2b3fe82e407246487464d3888b908126c034965f6cdd89fd9155e3cc64d6dee9e6b388c4f7ce83e9085992d663a8f773b5582a56da95e8460cba97a1af5364cd
+DIST ckb-0.2.tar.gz 422398 SHA256 5d8a4e3dd49117e8af979406af11c4f7898065f258900683a1e26aa867e8871d SHA512 fb10ed3c93aee97f57bcc1419dc5e5d49f167367056d139f763c522b7b500d3489df04978d384cbc2533636c87bacc66632bbe0215fe4adf625d8c836d16a1ea WHIRLPOOL ee9df503909d1b7a6cb04e0062a4917a4e8c52f8b85ad480702863a6a3de11c84179954758bdb5cf0fc9970890a0f4ca1c5077b53fd3977873d5cf807ef49081
diff --git a/app-misc/ckb/ckb-0.1.5.ebuild b/app-misc/ckb/ckb-0.1.5.ebuild
new file mode 100644
index 000000000000..8c4a97a52f90
--- /dev/null
+++ b/app-misc/ckb/ckb-0.1.5.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit qmake-utils systemd
+
+DESCRIPTION="Corsair K65/K70/K95 Driver"
+HOMEPAGE="https://github.com/ccMSC/ckb"
+SRC_URI="https://github.com/ccMSC/ckb/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+DEPEND="dev-libs/quazip[qt5]
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtnetwork:5
+ dev-qt/qtwidgets:5"
+RDEPEND="${DEPEND}"
+
+DOCS=( README.md BUILD.md DAEMON.md )
+
+src_prepare() {
+ sed -i -e "s/-Werror=all//" src/ckb-daemon/ckb-daemon.pro || die
+ sed -i -e "/quazip/d" -e "s/^.*QUAZIP_STATIC/LIBS += -lquazip/" src/ckb/ckb.pro || die
+}
+
+src_configure() {
+ eqmake5
+}
+
+src_install() {
+ dobin bin/ckb bin/ckb-daemon
+ dodir /usr/bin/ckb-animations
+ exeinto /usr/bin/ckb-animations
+ doexe bin/ckb-animations/*
+
+ newinitd "${FILESDIR}"/ckb.initd ckb-daemon
+ domenu usr/ckb.desktop
+ doicon usr/ckb.png
+ systemd_dounit service/systemd/ckb-daemon.service
+}
diff --git a/app-misc/ckb/ckb-0.2.ebuild b/app-misc/ckb/ckb-0.2.ebuild
new file mode 100644
index 000000000000..8c4a97a52f90
--- /dev/null
+++ b/app-misc/ckb/ckb-0.2.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit qmake-utils systemd
+
+DESCRIPTION="Corsair K65/K70/K95 Driver"
+HOMEPAGE="https://github.com/ccMSC/ckb"
+SRC_URI="https://github.com/ccMSC/ckb/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+DEPEND="dev-libs/quazip[qt5]
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtnetwork:5
+ dev-qt/qtwidgets:5"
+RDEPEND="${DEPEND}"
+
+DOCS=( README.md BUILD.md DAEMON.md )
+
+src_prepare() {
+ sed -i -e "s/-Werror=all//" src/ckb-daemon/ckb-daemon.pro || die
+ sed -i -e "/quazip/d" -e "s/^.*QUAZIP_STATIC/LIBS += -lquazip/" src/ckb/ckb.pro || die
+}
+
+src_configure() {
+ eqmake5
+}
+
+src_install() {
+ dobin bin/ckb bin/ckb-daemon
+ dodir /usr/bin/ckb-animations
+ exeinto /usr/bin/ckb-animations
+ doexe bin/ckb-animations/*
+
+ newinitd "${FILESDIR}"/ckb.initd ckb-daemon
+ domenu usr/ckb.desktop
+ doicon usr/ckb.png
+ systemd_dounit service/systemd/ckb-daemon.service
+}
diff --git a/app-misc/ckb/files/ckb.initd b/app-misc/ckb/files/ckb.initd
new file mode 100644
index 000000000000..856d37c9e7d7
--- /dev/null
+++ b/app-misc/ckb/files/ckb.initd
@@ -0,0 +1,29 @@
+#!/sbin/runscript
+## Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+extra_started_commands="reload"
+command="/usr/bin/ckb-daemon"
+description="Controller for Corsair Keyboard Driver"
+pidfile="/run/ckb.pid"
+logfile="/var/run/ckb.log"
+
+start() {
+ ebegin "Starting Corsair Keyboard Driver"
+ start-stop-daemon --start --exec "${command}" --pidfile "${pidfile}" --background \
+ --stdout "${logfile}" --stderr "${logfile}"
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping Corsair Keyboard Driver"
+ start-stop-daemon --stop --exec "${command}" --pidfile "${pidfile}"
+ eend $?
+
+}
+
+reload() {
+ stop
+ sleep 3
+ start
+}
diff --git a/app-misc/ckb/metadata.xml b/app-misc/ckb/metadata.xml
new file mode 100644
index 000000000000..8c7152e38674
--- /dev/null
+++ b/app-misc/ckb/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>
+ <email>mrueg@gentoo.org</email>
+ <name>Manuel Rüger</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">ccMSC/ckb</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/ckermit/Manifest b/app-misc/ckermit/Manifest
new file mode 100644
index 000000000000..2a5442bd2c7c
--- /dev/null
+++ b/app-misc/ckermit/Manifest
@@ -0,0 +1 @@
+DIST cku211.tar.gz 2878523 SHA256 39e7cd4892502344a635952843487d9b4bfa98e59d1e1acad5ef8aa969abba93 SHA512 470bf56d5b5f30721d0030ff89a5cd845f365dba81d097942524cc04dd620070678d278d1009fb67bae3cb875715808cbbfc7c0358b9671f30c65ce1d9bd35ad WHIRLPOOL 160aee04d5f5c425ebb2011b71923257deb154cf1ca7070208cd8a2253189ff5529940c3b1deb7fc5280f5d9ff8f699dff8ebab3881584439b96da251b0c9435
diff --git a/app-misc/ckermit/ckermit-8.0.211-r4.ebuild b/app-misc/ckermit/ckermit-8.0.211-r4.ebuild
new file mode 100644
index 000000000000..5267dac9f465
--- /dev/null
+++ b/app-misc/ckermit/ckermit-8.0.211-r4.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+inherit versionator eutils flag-o-matic toolchain-funcs
+
+# Columbia University only uses the third component, e.g. cku211.tar.gz for
+# what we would call 8.0.211.
+MY_P="cku$( get_version_component_range 3 ${PV} )"
+
+DESCRIPTION="combined serial and network communication software package"
+SRC_URI="ftp://kermit.columbia.edu/kermit/archives/${MY_P}.tar.gz"
+HOMEPAGE="http://www.kermitproject.org/"
+
+LICENSE="Kermit"
+SLOT="0"
+KEYWORDS="amd64 arm ~hppa ppc ppc64 x86"
+IUSE="ncurses"
+
+DEPEND="ncurses? ( >=sys-libs/ncurses-5.2 )"
+RDEPEND="${DEPEND}
+ net-dialup/lrzsz"
+
+S=${WORKDIR}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-cleanup.patch
+ epatch "${FILESDIR}"/${P}-build-wart.patch
+ tc-export_build_env BUILD_CC
+ sed -i -r \
+ -e 's:"(CC2?) = gcc":"\1=$(CC)":g' \
+ -e 's:"CFLAGS = -O:"CFLAGS = $(CFLAGS):' \
+ makefile || die
+}
+
+ck_use() {
+ use $1 && append-cppflags $2 && libs+=" $3"
+}
+src_compile() {
+ # we don't enable any of the telnet/ftp authentication stuff
+ # since there are other packages which do these things better
+ # USE="kerberos pam shadow ssl zlib"
+ append-cppflags -DNO_AUTHENTICATION -DNOLOGIN -DNOFTP
+
+ local libs
+ ck_use ncurses -DCK_NCURSES -lncurses
+ append-cppflags -DHAVE_PTMX -D_XOPEN_SOURCE -D_BSD_SOURCE #202840
+ append-cppflags -DHAVE_CRYPT_H
+ emake \
+ CC="$(tc-getCC)" \
+ KFLAGS="${CPPFLAGS}" \
+ LIBS="-lcrypt -lresolv ${libs}" \
+ LNKFLAGS="${LDFLAGS}" \
+ linuxa
+}
+
+src_install() {
+ dodir /usr/bin /usr/share/man/man1
+ emake \
+ DESTDIR="${ED}" \
+ BINDIR=/usr/bin \
+ MANDIR="${ED}"/usr/share/man/man1 \
+ MANEXT=1 \
+ install
+ dodoc *.txt
+
+ # make the correct symlink
+ rm "${ED}"/usr/bin/kermit-sshsub || die
+ dosym /usr/bin/kermit /usr/bin/kermit-sshsub
+
+ # the ckermit.ini script is calling the wrong kermit binary --
+ # the one from ${D}
+ sed -i "s:${D}::g" "${ED}"/usr/bin/ckermit.ini
+}
diff --git a/app-misc/ckermit/files/ckermit-8.0.211-build-wart.patch b/app-misc/ckermit/files/ckermit-8.0.211-build-wart.patch
new file mode 100644
index 000000000000..59f28a9e5cc7
--- /dev/null
+++ b/app-misc/ckermit/files/ckermit-8.0.211-build-wart.patch
@@ -0,0 +1,23 @@
+the wart util is used at build time only, so use BUILD_* so we can cross-compile
+
+--- a/makefile
++++ b/makefile
+@@ -1406,12 +1406,17 @@
+
+ ckctel.$(EXT): ckcsym.h ckcdeb.h ckcker.h ckcnet.h ckctel.h ckclib.h
+
++BUILD_CC ?= $(CC)
++BUILD_CFLAGS ?= $(CFLAGS)
++BUILD_CPPFLAGS ?= $(CPPFLAGS)
++BUILD_LDFLAGS ?= $(LDFLAGS)
+ wart: ckwart.$(EXT)
+- $(CC) $(LNKFLAGS) -o wart ckwart.$(EXT) $(LIBS)
++ $(BUILD_CC) $(BUILD_CFLAGS) $(BUILD_CPPFLAGS) -o wart ckwart.$(EXT) $(BUILD_LDFLAGS)
+
+ ckcmdb.$(EXT): ckcmdb.c ckcdeb.h ckcsym.h ckclib.h
+
+ ckwart.$(EXT): ckwart.c
++ $(BUILD_CC) $(BUILD_CFLAGS) $(BUILD_CPPFLAGS) -o $@ -c $<
+
+ ckudia.$(EXT): ckudia.c ckcker.h ckcdeb.h ckucmd.h ckcasc.h ckcsym.h ckcsig.h \
+ ckcnet.h ckctel.h ckclib.h
diff --git a/app-misc/ckermit/files/ckermit-8.0.211-cleanup.patch b/app-misc/ckermit/files/ckermit-8.0.211-cleanup.patch
new file mode 100644
index 000000000000..5b7c1ed6b951
--- /dev/null
+++ b/app-misc/ckermit/files/ckermit-8.0.211-cleanup.patch
@@ -0,0 +1,78 @@
+clean up missing prototypes and broken printfs
+
+--- a/ckcmai.c
++++ b/ckcmai.c
+@@ -623,6 +623,8 @@ ACKNOWLEDGMENTS:
+ #include "ckntap.h"
+ #endif /* NT */
+
++#include <time.h>
++
+ #ifndef NOSERVER
+ /* Text message definitions.. each should be 256 chars long, or less. */
+ #ifdef MINIX
+--- a/ckufio.c
++++ b/ckufio.c
+@@ -40,6 +40,7 @@ char *ckzv = "UNIX File support, 8.0.200, 4 Mar 2004";
+ #include "ckcsym.h"
+ #include "ckcdeb.h"
+ #include "ckcasc.h"
++#include "ckuusr.h"
+
+ #ifndef NOCSETS
+ #include "ckcxla.h"
+@@ -1803,6 +1804,8 @@ zxin(n,s,x) int n, x; char *s; {
+ return(fread(s, sizeof (char), x, fp[n]));
+ }
+
++extern int ttwait(int fd, int secs);
++
+ /*
+ Z I N F I L L -- Buffered file input.
+
+--- a/ckutio.c
++++ b/ckutio.c
+@@ -1808,6 +1808,11 @@ ttgwsiz() {
+ #endif /* NONAWS */
+ }
+
++#ifdef CK_NAWS /* Negotiate About Window Size */
++#ifdef RLOGCODE
++_PROTOTYP( int rlog_naws, (void) );
++#endif /* RLOGCODE */
++#endif /* CK_NAWS */
+
+ #ifndef NOSIGWINCH
+ #ifdef SIGWINCH
+--- a/ckuus5.c
++++ b/ckuus5.c
+@@ -7747,7 +7747,7 @@ doshow(x) int x; {
+ printf(" --bannerfile=%s\n",bannerfile ? bannerfile : "(null)");
+ printf(" --cdfile:%s\n",cdmsgstr ? cdmsgstr : "(null)");
+ printf(" --cdmessage:%d\n",srvcdmsg);
+- printf(" --helpfile:%d\n",helpfile);
++ printf(" --helpfile:%s\n",helpfile ? helpfile : "(null)");
+ if (inserver) {
+ printf("\n");
+ break;
+--- a/ckuus7.c
++++ b/ckuus7.c
+@@ -2981,7 +2981,7 @@ dopurge() { /* Do the PURGE command */
+ if (n < tokeep) { /* Not deleting any */
+ count = 0;
+ if (listing)
+- printf(" Matches = %d: Not enough to purge.\n");
++ printf(" Matches = %d: Not enough to purge.\n", n);
+ goto xpurge;
+ }
+
+--- a/ckuusx.c
++++ b/ckuusx.c
+@@ -56,7 +56,6 @@
+ #include <termcap.h>
+ #endif /* NOHTERMCAP */
+ #endif /* BSD44 */
+-#else /* !BSD44 */
+ #ifdef linux
+ #include <term.h>
+ #endif /* linux */
diff --git a/app-misc/ckermit/metadata.xml b/app-misc/ckermit/metadata.xml
new file mode 100644
index 000000000000..59e2b8f78cb5
--- /dev/null
+++ b/app-misc/ckermit/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>maintainer-needed@gentoo.org</email>
+ <name>Default assignee for orphaned packages</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-misc/clockywock/Manifest b/app-misc/clockywock/Manifest
new file mode 100644
index 000000000000..403e7ccf7ea1
--- /dev/null
+++ b/app-misc/clockywock/Manifest
@@ -0,0 +1 @@
+DIST clockywock-0.3.1a.tar.gz 15004 SHA256 278c01e0adf650b21878e593b84b3594b21b296d601ee0f73330126715a4cce4 SHA512 1d4f6e0a2e9cd8f459346aa4778ed4da0f1ce8e2b0b8bfed97a90c286d79199cefa609976c6d6139f1acdaccfc07f5f84e46d2f54e397ff8e9b2b450d06399a9 WHIRLPOOL 9e65dc9ca1716d81d59b8b4b7fea2a131ec50606f7420b2ca3f69988f618657237fab150ab02e40d3229e66e6b59fd4a384d277acbeca2158e5dc3cb3c0eb806
diff --git a/app-misc/clockywock/clockywock-0.3.1a.ebuild b/app-misc/clockywock/clockywock-0.3.1a.ebuild
new file mode 100644
index 000000000000..e19b38a7caf3
--- /dev/null
+++ b/app-misc/clockywock/clockywock-0.3.1a.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+inherit base toolchain-funcs
+
+DESCRIPTION="ncurses based analog clock"
+HOMEPAGE="http://soomka.com/clockywock"
+SRC_URI="http://soomka.com/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
+
+RDEPEND="sys-libs/ncurses"
+DEPEND="${RDEPEND}"
+
+PATCHES=( "${FILESDIR}/${P}-makefile.patch" )
+
+src_prepare() {
+ # Respect compiler
+ tc-export CXX
+
+ base_src_prepare
+}
+
+src_install() {
+ dobin ${PN}
+ doman ${PN}.7
+ dodoc README CREDITS
+}
diff --git a/app-misc/clockywock/files/clockywock-0.3.1a-makefile.patch b/app-misc/clockywock/files/clockywock-0.3.1a-makefile.patch
new file mode 100644
index 000000000000..30bb487c6402
--- /dev/null
+++ b/app-misc/clockywock/files/clockywock-0.3.1a-makefile.patch
@@ -0,0 +1,10 @@
+--- Makefile
++++ Makefile
+@@ -1,5 +1,6 @@
++LIBS += -lncurses -lpthread
+ all:
+- g++ -O3 -Wall -o clockywock clockywock.cpp -lncurses -lpthread
++ $(CXX) $(CXXFLAGS) $(LDFLAGS) -o clockywock clockywock.cpp $(LIBS)
+
+ # install is done completely lazily
+ install:
diff --git a/app-misc/clockywock/metadata.xml b/app-misc/clockywock/metadata.xml
new file mode 100644
index 000000000000..b6b8956cde34
--- /dev/null
+++ b/app-misc/clockywock/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>pinkbyte@gentoo.org</email>
+ <name>Sergey Popov</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-misc/cmatrix/Manifest b/app-misc/cmatrix/Manifest
new file mode 100644
index 000000000000..e2dc0fef8ef1
--- /dev/null
+++ b/app-misc/cmatrix/Manifest
@@ -0,0 +1 @@
+DIST cmatrix-1.2a.tar.gz 74376 SHA256 1fa6e6caea254b6fe70a492efddc1b40ad7ccb950a5adfd80df75b640577064c SHA512 a653a840378da87877bda1b48fc4087e7789b548e0f943ae15b81b5dc7a847aed28c69d2ad955bd467f38d6a08b0960349490b61c30260767e7d1560bb542d82 WHIRLPOOL 35df82e9aa1c52d59ec89130b275f02457e80750c705c372469a0d3f69484ab853b6ee416126a1130c3450dab580f5ee2aef2091a1ece5af4b352e115ee576f3
diff --git a/app-misc/cmatrix/cmatrix-1.2a-r1.ebuild b/app-misc/cmatrix/cmatrix-1.2a-r1.ebuild
new file mode 100644
index 000000000000..9d107b569e8a
--- /dev/null
+++ b/app-misc/cmatrix/cmatrix-1.2a-r1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit autotools eutils
+
+DESCRIPTION="An ncurses based app to show a scrolling screen from the Matrix"
+HOMEPAGE="http://www.asty.org/cmatrix"
+SRC_URI="http://www.asty.org/${PN}/dist/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 hppa ppc ~ppc64 sparc x86"
+IUSE="X"
+
+DEPEND="X? ( x11-apps/mkfontdir )
+ sys-libs/ncurses"
+
+src_unpack() {
+ unpack ${A}
+ # patch Makefile.am to make sure the fonts installations don't violate the
+ # sandbox.
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-gentoo.patch
+ if use X ; then
+ epatch "${FILESDIR}"/${P}-fontdir.patch
+ fi
+ eautoreconf
+}
+
+src_install() {
+ dodir /usr/share/consolefonts || die 'dodir failed'
+ dodir /usr/lib/kbd/consolefonts || die 'dodir failed'
+ if use X;then
+ dodir /usr/share/fonts/misc || die 'dodir failed'
+ fi
+ emake DESTDIR="${D}" install || die 'emake install failed'
+}
+
+pkg_postinst() {
+ if use X; then
+ if [ -d "${ROOT}"usr/share/fonts/misc ] ; then
+ einfo ">>> Running mkfontdir on ${ROOT}usr/share/fonts/misc"
+ mkfontdir "${ROOT}"usr/share/fonts/misc || die 'mkfontdir failed'
+ fi
+ fi
+}
diff --git a/app-misc/cmatrix/files/cmatrix-1.2a-fontdir.patch b/app-misc/cmatrix/files/cmatrix-1.2a-fontdir.patch
new file mode 100644
index 000000000000..6e69841b5e01
--- /dev/null
+++ b/app-misc/cmatrix/files/cmatrix-1.2a-fontdir.patch
@@ -0,0 +1,28 @@
+diff -Naru cmatrix-1.2a.orig/Makefile.am cmatrix-1.2a/Makefile.am
+--- cmatrix-1.2a.orig/Makefile.am 2008-12-24 02:37:43.000000000 +0000
++++ cmatrix-1.2a/Makefile.am 2008-12-24 02:50:08.000000000 +0000
+@@ -18,20 +18,9 @@
+ $(INSTALL_DATA) $(srcdir)/matrix.fnt $(DESTDIR)/usr/lib/kbd/consolefonts; \
+ $(INSTALL_DATA) $(srcdir)/matrix.psf.gz $(DESTDIR)/usr/lib/kbd/consolefonts; \
+ fi
+- @if test -d /usr/lib/X11/fonts/misc; then \
+- echo " Installing X window matrix fonts in $(DESTDIR)/usr/lib/X11/fonts/misc..."; \
+- $(INSTALL_DATA) $(srcdir)/mtx.pcf $(DESTDIR)/usr/lib/X11/fonts/misc; \
+- $(INSTALL_DATA) $(srcdir)/mtx.pcf $(DESTDIR)/usr/lib/X11/fonts/misc; \
+- echo " Running mkfontdir $(DESTDIR)/usr/lib/X11/fonts/misc..."; \
+- echo " Done. If this is the first time you have installed CMatrix you will"; \
++ @if test -d /usr/share/fonts/misc; then \
++ echo " Installing X window matrix fonts in $(DESTDIR)/usr/share/fonts/misc..."; \
++ $(INSTALL_DATA) $(srcdir)/mtx.pcf $(DESTDIR)/usr/share/fonts/misc; \
++ echo " If this is the first time you have installed CMatrix you will"; \
+ echo " probably have to restart X window in order to use the mtx.pcf font."; \
+- else \
+- if test -d /usr/X11R6/lib/X11/fonts/misc; then \
+- echo " Installing X window matrix fonts in $(DESTDIR)/usr/X11R6/lib/X11/fonts/misc..."; \
+- $(INSTALL_DATA) $(srcdir)/mtx.pcf $(DESTDIR)/usr/X11R6/lib/X11/fonts/misc; \
+- $(INSTALL_DATA) $(srcdir)/mtx.pcf $(DESTDIR)/usr/X11R6/lib/X11/fonts/misc; \
+- echo " Running mkfontdir $(DESTDIR)/usr/X11R6/lib/X11/fonts/misc..."; \
+- echo " Done. If this is the first time you have installed CMatrix you will"; \
+- echo " probably have to restart X window in order to use the mtx.pcf font."; \
+- fi \
+ fi
diff --git a/app-misc/cmatrix/files/cmatrix-1.2a-gentoo.patch b/app-misc/cmatrix/files/cmatrix-1.2a-gentoo.patch
new file mode 100644
index 000000000000..5f88cd0fa876
--- /dev/null
+++ b/app-misc/cmatrix/files/cmatrix-1.2a-gentoo.patch
@@ -0,0 +1,48 @@
+diff -urN cmatrix-1.2a.old/Makefile.am cmatrix-1.2a/Makefile.am
+--- cmatrix-1.2a.old/Makefile.am Sun Mar 31 17:17:17 2002
++++ cmatrix-1.2a/Makefile.am Sat Jul 6 05:32:06 2002
+@@ -9,30 +9,28 @@
+
+ install-data-local:
+ @if test -d /usr/share/consolefonts; then \
+- echo " Installing matrix fonts in /usr/share/consolefonts..."; \
+- $(INSTALL_DATA) $(srcdir)/matrix.fnt /usr/share/consolefonts; \
+- $(INSTALL_DATA) $(srcdir)/matrix.psf.gz /usr/share/consolefonts; \
++ echo " Installing matrix fonts in $(DESTDIR)/usr/share/consolefonts..."; \
++ $(INSTALL_DATA) $(srcdir)/matrix.fnt $(DESTDIR)/usr/share/consolefonts; \
++ $(INSTALL_DATA) $(srcdir)/matrix.psf.gz $(DESTDIR)/usr/share/consolefonts; \
+ fi
+ @if test -d /usr/lib/kbd/consolefonts; then \
+- echo " Installing matrix fonts in /usr/lib/kbd/consolefonts..."; \
+- $(INSTALL_DATA) $(srcdir)/matrix.fnt /usr/lib/kbd/consolefonts; \
+- $(INSTALL_DATA) $(srcdir)/matrix.psf.gz /usr/lib/kbd/consolefonts; \
++ echo " Installing matrix fonts in $(DESTDIR)/usr/lib/kbd/consolefonts..."; \
++ $(INSTALL_DATA) $(srcdir)/matrix.fnt $(DESTDIR)/usr/lib/kbd/consolefonts; \
++ $(INSTALL_DATA) $(srcdir)/matrix.psf.gz $(DESTDIR)/usr/lib/kbd/consolefonts; \
+ fi
+ @if test -d /usr/lib/X11/fonts/misc; then \
+- echo " Installing X window matrix fonts in /usr/lib/X11/fonts/misc..."; \
+- $(INSTALL_DATA) $(srcdir)/mtx.pcf /usr/lib/X11/fonts/misc; \
+- $(INSTALL_DATA) $(srcdir)/mtx.pcf /usr/lib/X11/fonts/misc; \
+- echo " Running mkfontdir /usr/lib/X11/fonts/misc..."; \
+- $(MKFONTDIR) /usr/lib/X11/fonts/misc; \
++ echo " Installing X window matrix fonts in $(DESTDIR)/usr/lib/X11/fonts/misc..."; \
++ $(INSTALL_DATA) $(srcdir)/mtx.pcf $(DESTDIR)/usr/lib/X11/fonts/misc; \
++ $(INSTALL_DATA) $(srcdir)/mtx.pcf $(DESTDIR)/usr/lib/X11/fonts/misc; \
++ echo " Running mkfontdir $(DESTDIR)/usr/lib/X11/fonts/misc..."; \
+ echo " Done. If this is the first time you have installed CMatrix you will"; \
+ echo " probably have to restart X window in order to use the mtx.pcf font."; \
+ else \
+ if test -d /usr/X11R6/lib/X11/fonts/misc; then \
+- echo " Installing X window matrix fonts in /usr/X11R6/lib/X11/fonts/misc..."; \
+- $(INSTALL_DATA) $(srcdir)/mtx.pcf /usr/X11R6/lib/X11/fonts/misc; \
+- $(INSTALL_DATA) $(srcdir)/mtx.pcf /usr/X11R6/lib/X11/fonts/misc; \
+- echo " Running mkfontdir /usr/X11R6/lib/X11/fonts/misc..."; \
+- $(MKFONTDIR) /usr/X11R6/lib/X11/fonts/misc; \
++ echo " Installing X window matrix fonts in $(DESTDIR)/usr/X11R6/lib/X11/fonts/misc..."; \
++ $(INSTALL_DATA) $(srcdir)/mtx.pcf $(DESTDIR)/usr/X11R6/lib/X11/fonts/misc; \
++ $(INSTALL_DATA) $(srcdir)/mtx.pcf $(DESTDIR)/usr/X11R6/lib/X11/fonts/misc; \
++ echo " Running mkfontdir $(DESTDIR)/usr/X11R6/lib/X11/fonts/misc..."; \
+ echo " Done. If this is the first time you have installed CMatrix you will"; \
+ echo " probably have to restart X window in order to use the mtx.pcf font."; \
+ fi \
diff --git a/app-misc/cmatrix/metadata.xml b/app-misc/cmatrix/metadata.xml
new file mode 100644
index 000000000000..91f4e72fb544
--- /dev/null
+++ b/app-misc/cmatrix/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>
+ <email>maintainer-needed@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-misc/color/Manifest b/app-misc/color/Manifest
new file mode 100644
index 000000000000..5d42785a35d7
--- /dev/null
+++ b/app-misc/color/Manifest
@@ -0,0 +1 @@
+DIST color-1.2.tar.gz 10040 SHA256 7862fffb3d948b47435803461732f7dea4af64c2714219df7f929e20cb818bd9 SHA512 58f7d379bca3352b2e39eab83d2fa5891df86c45722541eb810becce813c8e866f28b856ed244a75b173f0dab5dbdc84ceb91d96175dcd2484e29abb98ba87ac WHIRLPOOL 9fbde967107e278ef2a65418cce3011bf4c7ab78b6a2d620e83d2524362b1456edd45479c9dc4308a5a69c0721f90bb061842589086297afce0652250890b5ae
diff --git a/app-misc/color/color-1.2-r1.ebuild b/app-misc/color/color-1.2-r1.ebuild
new file mode 100644
index 000000000000..98db130dd51b
--- /dev/null
+++ b/app-misc/color/color-1.2-r1.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="3"
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Easily add ANSI colouring to shell scripts"
+HOMEPAGE="http://www.runslinux.net/?page_id=10"
+SRC_URI="http://runslinux.net/projects/color/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 hppa ~ia64 ~mips ppc ppc64 sparc x86"
+IUSE=""
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PV}-ldflags.patch
+ tc-export CC
+}
+
+src_install() {
+ dobin color || die "dobin failed"
+ dodoc CHANGELOG README || die
+
+ # symlink for british users.
+ dosym color /usr/bin/colour || die
+}
+
+pkg_postinst() {
+ elog "For information on using colour in your shell scripts,"
+ elog "run \`color\` without any arguments."
+ elog
+ elog "To see all the colours available, use this command"
+ elog " $ color --list"
+ elog
+ elog "More examples are available in ${EPREFIX}/usr/share/doc/${PF}."
+}
diff --git a/app-misc/color/files/1.2-ldflags.patch b/app-misc/color/files/1.2-ldflags.patch
new file mode 100644
index 000000000000..9c95eda73b0e
--- /dev/null
+++ b/app-misc/color/files/1.2-ldflags.patch
@@ -0,0 +1,23 @@
+diff --git a/Makefile b/Makefile
+index 79c5b33..452e091 100644
+--- a/Makefile
++++ b/Makefile
+@@ -1,4 +1,4 @@
+-CC = cc
++CC ?= cc
+ #CFLAGS = -W -Wall -O2 -g
+ INCLUDE = $(wildcard *.h)
+ OBJS = color.o
+@@ -6,8 +6,11 @@ EXE = color
+
+ all: $(EXE)
+
++OBJS: color.c
++ $(CC) $(CFLAGS) -c $^ $@
++
+ $(EXE): $(OBJS)
+- $(CC) $(CFLAGS) -o $@ $^
++ $(CC) $(LDFLAGS) -o $@ $^
+
+ install: all
+ cp $(EXE) /usr/local/bin
diff --git a/app-misc/color/metadata.xml b/app-misc/color/metadata.xml
new file mode 100644
index 000000000000..c1bead0461d4
--- /dev/null
+++ b/app-misc/color/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>shell-tools</herd>
+ <longdescription lang="en">
+ Color is a nifty little utility that you can call from shell scripts,
+ that will let you easily use ANSI escape codes (for colors, bold,
+ underline, etc) to your shell scripts without having to memorize escape
+ sequences and type it every time you want a little red...
+ </longdescription>
+</pkgmetadata>
diff --git a/app-misc/colordiff/Manifest b/app-misc/colordiff/Manifest
new file mode 100644
index 000000000000..63576d40744c
--- /dev/null
+++ b/app-misc/colordiff/Manifest
@@ -0,0 +1,2 @@
+DIST colordiff-1.0.13.tar.gz 19960 SHA256 ce2805a130c81545711df94bc00a93545da3f323d835cc38b452d3396ef86c2a SHA512 8a47ea9e0c703d6b577a01e9a63df58233f752d4e72bb7f8213fcc076efcc52869df5e694126abbdc8a63816010786a577fa37ed3e175162dece3f17bd79fdda WHIRLPOOL 355d7ee12f37c19cf243bedff3d883ccd188da0e68c1531be932cec2d19055e67028cc5ca069f0bfe71d2c26538721989f13d1557d359338b534343b3c3faa4c
+DIST colordiff-1.0.15.tar.gz 21228 SHA256 595ee4e9796ba02fad0b181e21df3ee34ae71d1611e301e146c0bf00c5269d45 SHA512 8e7396b5c1a0be7f1a9a73af2cecc44dff3f808fae7e43b452ad9c9d9337e1c67942a14685b4100b0190bae99174102f8e4c233c980af6b8a63f23db02bae59e WHIRLPOOL 75f5e3ed00f7723b554c7b681c3e4e95f4be8cede70d759b5636f99bac4d68063d0d271bf9b9db066e859a21f1644e518128b3f8ff83e9560ae87c2f062aa242
diff --git a/app-misc/colordiff/colordiff-1.0.13-r1.ebuild b/app-misc/colordiff/colordiff-1.0.13-r1.ebuild
new file mode 100644
index 000000000000..f930ed658305
--- /dev/null
+++ b/app-misc/colordiff/colordiff-1.0.13-r1.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit prefix
+
+DESCRIPTION="Colorizes output of diff"
+HOMEPAGE="http://www.colordiff.org/"
+SRC_URI="http://www.colordiff.org/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86 ~ppc-aix ~x86-fbsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
+IUSE=""
+
+RDEPEND="
+ dev-lang/perl
+ sys-apps/diffutils"
+
+src_prepare() {
+ # set proper etcdir for Gentoo Prefix
+ sed \
+ -e "s:'/etc:'@GENTOO_PORTAGE_EPREFIX@/etc:" \
+ -i "${S}/colordiff.pl" || die "sed etcdir failed"
+ eprefixify "${S}"/colordiff.pl
+}
+
+# This package has a makefile, but we don't want to run it
+src_compile() { :; }
+
+src_install() {
+ newbin ${PN}{.pl,}
+ dobin cdiff.sh
+ insinto /etc
+ doins colordiffrc colordiffrc-lightbg
+ dodoc BUGS CHANGES README
+ doman {cdiff,colordiff}.1
+}
diff --git a/app-misc/colordiff/colordiff-1.0.15-r1.ebuild b/app-misc/colordiff/colordiff-1.0.15-r1.ebuild
new file mode 100644
index 000000000000..14c69a78a1b6
--- /dev/null
+++ b/app-misc/colordiff/colordiff-1.0.15-r1.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit prefix
+
+DESCRIPTION="Colorizes output of diff"
+HOMEPAGE="http://www.colordiff.org/"
+SRC_URI="http://www.colordiff.org/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~ppc-aix ~x86-fbsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
+IUSE=""
+
+RDEPEND="
+ dev-lang/perl
+ sys-apps/diffutils"
+
+src_prepare() {
+ # set proper etcdir for Gentoo Prefix
+ sed \
+ -e "s:'/etc:'@GENTOO_PORTAGE_EPREFIX@/etc:" \
+ -i "${S}/colordiff.pl" || die "sed etcdir failed"
+ eprefixify "${S}"/colordiff.pl
+}
+
+# This package has a makefile, but we don't want to run it
+src_compile() { :; }
+
+src_install() {
+ newbin ${PN}{.pl,}
+ dobin cdiff.sh
+ insinto /etc
+ doins colordiffrc{,-lightbg,-gitdiff}
+ dodoc BUGS CHANGES README
+ doman {cdiff,colordiff}.1
+}
diff --git a/app-misc/colordiff/metadata.xml b/app-misc/colordiff/metadata.xml
new file mode 100644
index 000000000000..f23b9cae1593
--- /dev/null
+++ b/app-misc/colordiff/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>shell-tools</herd>
+</pkgmetadata>
diff --git a/app-misc/conmux/Manifest b/app-misc/conmux/Manifest
new file mode 100644
index 000000000000..18eef58c120a
--- /dev/null
+++ b/app-misc/conmux/Manifest
@@ -0,0 +1 @@
+DIST conmux-0.15.1.tar.gz 50713 SHA256 52e0e8d8ae2ad679e498f2a8c0a01ec536738e9daf09d88f9e256c349c5e9cb7 SHA512 8138d6d10b4382709828277503d1c23c52fd43109ebad79073be9003c39a9e62c2b7d9d6e78a9e81797c22871985e50a58df0d538ff63e3f580c9a229b520107 WHIRLPOOL 0d6ea7183063d5a3dee4e884ad4de9d694fa0c8116e94f8bee9ed80f26e5ed009a8ec889365b90efe34ffbb2e3f9c3c28a408924fb8b9c68a8c63ecfa0e5325b
diff --git a/app-misc/conmux/conmux-0.15.1-r3.ebuild b/app-misc/conmux/conmux-0.15.1-r3.ebuild
new file mode 100644
index 000000000000..bc847e39b87e
--- /dev/null
+++ b/app-misc/conmux/conmux-0.15.1-r3.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit perl-module
+
+DESCRIPTION="A console multiplexor"
+HOMEPAGE="https://github.com/autotest/autotest"
+SRC_URI="http://dev.gentoo.org/~hwoarang/distfiles/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~mips x86"
+IUSE=""
+
+RDEPEND="dev-perl/IO-Multiplex
+ dev-perl/URI"
+DEPEND=""
+
+src_prepare() {
+ # manual installation of drivers and helpers
+ sed -i -e "/include/d" Makefile || die "Failed to fix Makefile"
+}
+
+src_install() {
+ perl_set_version
+ emake BASE="${D}/usr" install
+ # helpers and drivers have been removed in src_prepare
+ insinto /usr/share/${PN}/
+ doins -r drivers/ helpers/
+ fperms -R 0750 /usr/share/${PN}/{drivers,helpers}/
+ dodir /etc/${PN}
+ # no need to have the init script in /sbin
+ rm "${D}"/usr/sbin/start || die "failed to remove init script"
+ # console is too generic. Make it conmux-console instead
+ mv "${D}"/usr/bin/console "${D}"/usr/bin/${PN}-console || \
+ die "failed to rename console to conmux-console"
+ # Fix up directory for the module
+ perl_set_version
+ dodir ${VENDOR_LIB}/${PN}
+ mv "${D}"/usr/lib/Conmux.pm "${D}"/${VENDOR_LIB}/. || \
+ die "failed to move the Conmux.pm module"
+ newinitd "${FILESDIR}"/${PN}.initd ${PN}
+ newinitd "${FILESDIR}"/${PN}-registry.initd ${PN}-registry
+ newconfd "${FILESDIR}"/${PN}.confd ${PN}
+ newconfd "${FILESDIR}"/${PN}-registry.confd ${PN}-registry
+ dodoc README
+}
+
+pkg_postinst() {
+ elog ""
+ elog "If you have more than one serial ports and you want to use all"
+ elog "of them with conmux, copy and paste the 'conmux' init.d and conf.d"
+ elog "files as many times as you want, pointing each conf.d file to the"
+ elog "device's configuration file."
+ elog ""
+ elog "See /etc/conf.d/conmux and"
+ elog "https://github.com/autotest/autotest/wiki/Conmux-OriginalDocumentation"
+ elog "https://github.com/autotest/autotest/wiki/Conmux-Howto"
+ elog "for more information"
+ elog ""
+}
diff --git a/app-misc/conmux/files/conmux-registry.confd b/app-misc/conmux/files/conmux-registry.confd
new file mode 100644
index 000000000000..ac7bd8c20d5e
--- /dev/null
+++ b/app-misc/conmux/files/conmux-registry.confd
@@ -0,0 +1,4 @@
+# Port for Registry listener
+CONMAX_REGISTRY_PORT="63000"
+# Log file
+CONMAX_REGISTRY_LOG="/var/log/conmux-registry.log"
diff --git a/app-misc/conmux/files/conmux-registry.initd b/app-misc/conmux/files/conmux-registry.initd
new file mode 100755
index 000000000000..5af904210bbe
--- /dev/null
+++ b/app-misc/conmux/files/conmux-registry.initd
@@ -0,0 +1,31 @@
+#!/sbin/runscript
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+checkconfig() {
+ # Set sane defaults
+ if [ -z ${CONMUX_REGISTRY_PORT} ]; then
+ CONMUX_REGISTRY_PORT="63000"
+ fi
+ if [ -z ${CONMUX_REGISTRY_LOG} ]; then
+ CONMUX_REGISTRY_LOG="/var/log/conmux-registry.log"
+ fi
+}
+
+start() {
+ checkconfig
+ # Make sure conmux finds everything
+ export PATH="${PATH}:/usr/share/conmux/drivers:/usr/share/conmux/helpers"
+ ebegin "Starting conmux registry daemon"
+ [ -e ${CONMUX_REGISTRY_LOG} ] && rm ${CONMUX_REGISTRY_LOG}
+ touch ${CONMUX_REGISTRY_LOG}
+ start-stop-daemon -b -m --start -p /run/conmux-registry.pid \
+ --exec /usr/sbin/conmux-registry -- ${CONMUX_REGISTRY_PORT} \
+ ${CONMUX_REGISTRY_LOG}
+}
+
+stop() {
+ ebegin "Stopping conmux registry daemon"
+ start-stop-daemon --stop --pidfile /run/conmux-registry.pid
+ eend $?
+}
diff --git a/app-misc/conmux/files/conmux.confd b/app-misc/conmux/files/conmux.confd
new file mode 100644
index 000000000000..7f983c9ac409
--- /dev/null
+++ b/app-misc/conmux/files/conmux.confd
@@ -0,0 +1,14 @@
+# Configuration file
+# It should point to a valid device configuration file
+# eg CONMUX_CONFIG="/etc/conmux/deviceA.cf
+#
+# See https://github.com/autotest/autotest/wiki/Conmux-Howto
+# and https://github.com/autotest/autotest/wiki/Conmux-OriginalDocumentation
+# for examples
+#
+# Default value is empty so the init script will fail and force you
+# to create a new config
+#
+CONMUX_CONFIG=""
+# Log file
+CONMUX_LOG="/var/log/conmux.log"
diff --git a/app-misc/conmux/files/conmux.initd b/app-misc/conmux/files/conmux.initd
new file mode 100755
index 000000000000..d78db20bb9b7
--- /dev/null
+++ b/app-misc/conmux/files/conmux.initd
@@ -0,0 +1,39 @@
+#!/sbin/runscript
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ use net
+ need conmux-registry
+}
+
+checkconfig() {
+ if [ ! -f ${CONMUX_CONFIG} ]; then
+ eerror ""
+ eerror "No conmux configuration file was found!"
+ eerror "Please read the conmux README file."
+ eerror ""
+ return 1
+ fi
+ # Sane default
+ if [ -z ${CONMUX_LOG} ]; then
+ CONMUX_LOG="/var/log/conmux.log"
+ fi
+ return 0
+}
+
+start() {
+ checkconfig || exit 1
+ # Make sure conmux finds everything
+ export PATH="${PATH}:/usr/share/conmux/drivers:/usr/share/conmux/helpers"
+ ebegin "Starting conmux daemon"
+ start-stop-daemon -m -b --start -1 ${CONMUX_LOG} \
+ -2 ${CONMUX_LOG} -p /run/${SVCNAME}.pid \
+ --exec /usr/sbin/conmux -- ${CONMUX_CONFIG}
+}
+
+stop() {
+ ebegin "Stopping conmux daemon"
+ start-stop-daemon --stop --pidfile /run/${SVCNAME}.pid
+ eend $?
+}
diff --git a/app-misc/conmux/metadata.xml b/app-misc/conmux/metadata.xml
new file mode 100644
index 000000000000..d21360dfe630
--- /dev/null
+++ b/app-misc/conmux/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>
+ <email>hwoarang@gentoo.org</email>
+ <name>Markos Chandras</name>
+ </maintainer>
+ <longdescription lang="en">
+CONMUX is a console abstractor. Presenting any console with a
+consistent location, naming and semantic. Access to the console,
+and hardreset of the machine is the same regardless of the underlying
+access methodology.
+</longdescription>
+ <upstream>
+ <remote-id type="github">autotest/autotest</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/countrycodes/Manifest b/app-misc/countrycodes/Manifest
new file mode 100644
index 000000000000..c6f2d65a9e54
--- /dev/null
+++ b/app-misc/countrycodes/Manifest
@@ -0,0 +1 @@
+DIST countrycodes-1.0.5.tar.gz 18621 SHA256 e56e10442c7353c39cd9e57fa747df279ae39a84a89336644a58c29de5b2b39b SHA512 d62beaaccdbc8f7e14f3edf0044aeeef6375a3deffc0e4246a49fb8209ed7256208c878f811950c5c3bfda729988a46c173aecec72ee66e8843932d97064f035 WHIRLPOOL e00e5d39080b25e8c599bf9c549dc24d9ee2393ffb52f5d9e98fcdf1479e4ac3599853e2e5f7893aaaaee7f0881e3a6cd0d9ab88e8157674b09c98adc33e7ae7
diff --git a/app-misc/countrycodes/countrycodes-1.0.5-r1.ebuild b/app-misc/countrycodes/countrycodes-1.0.5-r1.ebuild
new file mode 100644
index 000000000000..9c9e28715f4c
--- /dev/null
+++ b/app-misc/countrycodes/countrycodes-1.0.5-r1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="3"
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="An ISO 3166 country code finder"
+HOMEPAGE="http://www.grigna.com/diego/linux/countrycodes/"
+SRC_URI="http://www.grigna.com/diego/linux/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 ~ia64 ~mips ppc ppc64 sparc x86"
+IUSE=""
+
+S="${WORKDIR}"/${P}/src
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PV}-Makefile.patch
+ tc-export CC
+}
+
+src_install() {
+ emake \
+ prefix="${D}/usr" \
+ mandir="${D}/usr/share/man/man1" install || die "make install failed"
+ dosym iso3166 /usr/bin/countrycodes || die
+ dosym iso3166.1 /usr/share/man/man1/countrycodes || die
+ dodoc ../doc/{Changelog,README} || die
+ prepman
+}
diff --git a/app-misc/countrycodes/files/1.0.5-Makefile.patch b/app-misc/countrycodes/files/1.0.5-Makefile.patch
new file mode 100644
index 000000000000..4ee47e32dfd2
--- /dev/null
+++ b/app-misc/countrycodes/files/1.0.5-Makefile.patch
@@ -0,0 +1,42 @@
+diff --git a/src/Makefile b/src/Makefile
+index 9330578..3ff7319 100644
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -26,13 +26,13 @@ BINMODE=755
+ LOGDIRMODE=700
+
+ # Compiler to use
+-CC=gcc
++CC ?= gcc
+
+ # Compiler warnings
+-WARNINGS= -pedantic -Wall
++WARNINGS=
+
+ # Compiler flags
+-CCOPTS = -O2 -fomit-frame-pointer
++CCOPTS = ${CFLAGS}
+
+ # The makefile standards document I read says that I have to put it here...
+ SHELL = /bin/sh
+@@ -61,7 +61,7 @@ PROGRAM = iso3166
+ all: $(PROGRAM)
+
+ $(PROGRAM): $(ISO3166OBJ)
+- $(CC) $(CCOPTS) $(ISO3166OBJ) -o $@
++ $(CC) $(CCOPTS) $(LDFLAGS) $(ISO3166OBJ) -o $@
+
+ clean:
+ rm -f $(ISO3166OBJ) core defines.h $(PROGRAM)
+@@ -70,8 +70,10 @@ strip:
+ strip $(PROGRAM)
+
+ install:
+- $(INSTALL) -g root -m $(BINMODE) -o root -s ${srcdir}/$(PROGRAM) ${bindir}
++ mkdir -p ${bindir}
++ $(INSTALL) -g root -m $(BINMODE) -o root ${srcdir}/$(PROGRAM) ${bindir}
+ @echo "Installing man page..."
++ mkdir -p ${mandir}
+ @$(SEDBIN) $(SEDCMDS) ${docdir}/iso3166.1.in > ${mandir}/iso3166.1
+ @chown 0.0 ${mandir}/iso3166.1
+ @echo
diff --git a/app-misc/countrycodes/files/countrycodes-1.0.5-Makefile.patch b/app-misc/countrycodes/files/countrycodes-1.0.5-Makefile.patch
new file mode 100644
index 000000000000..619d7a072360
--- /dev/null
+++ b/app-misc/countrycodes/files/countrycodes-1.0.5-Makefile.patch
@@ -0,0 +1,12 @@
+diff -Naur countrycodes-1.0.5-orig/src/Makefile countrycodes-1.0.5/src/Makefile
+--- countrycodes-1.0.5-orig/src/Makefile 2003-02-01 09:56:08.000000000 -0600
++++ countrycodes-1.0.5/src/Makefile 2007-02-03 20:12:26.000000000 -0600
+@@ -70,7 +70,7 @@
+ strip $(PROGRAM)
+
+ install:
+- $(INSTALL) -g root -m $(BINMODE) -o root -s ${srcdir}/$(PROGRAM) ${bindir}
++ $(INSTALL) -g root -m $(BINMODE) -o root ${srcdir}/$(PROGRAM) ${bindir}
+ @echo "Installing man page..."
+ @$(SEDBIN) $(SEDCMDS) ${docdir}/iso3166.1.in > ${mandir}/iso3166.1
+ @chown 0.0 ${mandir}/iso3166.1
diff --git a/app-misc/countrycodes/metadata.xml b/app-misc/countrycodes/metadata.xml
new file mode 100644
index 000000000000..40149c995561
--- /dev/null
+++ b/app-misc/countrycodes/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>shell-tools</herd>
+</pkgmetadata>
diff --git a/app-misc/crunch/Manifest b/app-misc/crunch/Manifest
new file mode 100644
index 000000000000..69042a6e318f
--- /dev/null
+++ b/app-misc/crunch/Manifest
@@ -0,0 +1,3 @@
+DIST crunch-3.4.tgz 38388 SHA256 cd3b46409a1d8a3adeac68b1b618b2773c7dd4085d61e37f9d02a2060f261922 SHA512 b433c4cb0eb42ce4e76bb8c77d26f3738bd73f925d69c1e4220ac186daf6b8afe20665dfb87e0e869b0a3bb91fb76f1b341a438cd219afa0629ca961c13a71a8 WHIRLPOOL b089c2306f7a4fbf5412f7667bdb521b24748f4786c2b80ae0dea78efb3e1144b53507a66a242842b73499e01ced3f7ff867b562eed6a20ee1bced2731e9d39d
+DIST crunch-3.5.tgz 38459 SHA256 471195d9503f3420ffe80da00c1bc2e392e9bf39918ddda3cf0eaf5ef5627fda SHA512 70280e290fae392a1bd2c07f0235945438f81bccad055fe69d2ac94fedfd5f95fc22ba528be7671bb68fd33c824171fd03589d72bd089e806ff22d88c6e6e087 WHIRLPOOL 7a3b78cdb22362ca6d2c5d1b0898a3131726bc0b505aff20f6314c5ae5e17108998d123552797e3d834301d823a70eff56eb39264f2c810c0741ab2178bf3743
+DIST crunch-3.6.tgz 38635 SHA256 6a8f6c3c7410cc1930e6854d1dadc6691bfef138760509b33722ff2de133fe55 SHA512 85a2a12bb481988ab27a19602122abc29bb307de0af279132dcc0565dfc4ba44ab9f7ca15d876001f2e6dcf7be77ed50168cb066fc6a65bf06ec5cf9d798e81f WHIRLPOOL 79a27e8af6472f4ab5a604e42a25e80aa957dbdee91478bc228df9d5fe45864cc468a3f3aadc0883d025fa804c16fd3e2ca836ea113ad6373b73114141ea153f
diff --git a/app-misc/crunch/crunch-3.4.ebuild b/app-misc/crunch/crunch-3.4.ebuild
new file mode 100644
index 000000000000..edaf0f426163
--- /dev/null
+++ b/app-misc/crunch/crunch-3.4.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="A wordlist generator"
+HOMEPAGE="http://sourceforge.net/projects/crunch-wordlist/"
+SRC_URI="mirror://sourceforge/crunch-wordlist/crunch-wordlist/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~mips ~x86"
+
+src_prepare() {
+ tc-export CC
+ epatch "${FILESDIR}/${P}-gentoo.patch"
+ epatch_user
+}
+
+src_install(){
+ dobin crunch
+ doman crunch.1
+ insinto /usr/share/crunch
+ doins charset.lst
+}
diff --git a/app-misc/crunch/crunch-3.5.ebuild b/app-misc/crunch/crunch-3.5.ebuild
new file mode 100644
index 000000000000..2ea374039709
--- /dev/null
+++ b/app-misc/crunch/crunch-3.5.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="A wordlist generator"
+HOMEPAGE="http://sourceforge.net/projects/crunch-wordlist/"
+SRC_URI="mirror://sourceforge/crunch-wordlist/crunch-wordlist/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~mips ~x86"
+
+src_prepare() {
+ epatch_user
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)"
+}
+
+src_install(){
+ dobin crunch
+ doman crunch.1
+ insinto /usr/share/crunch
+ doins charset.lst
+}
diff --git a/app-misc/crunch/crunch-3.6.ebuild b/app-misc/crunch/crunch-3.6.ebuild
new file mode 100644
index 000000000000..2ea374039709
--- /dev/null
+++ b/app-misc/crunch/crunch-3.6.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="A wordlist generator"
+HOMEPAGE="http://sourceforge.net/projects/crunch-wordlist/"
+SRC_URI="mirror://sourceforge/crunch-wordlist/crunch-wordlist/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~mips ~x86"
+
+src_prepare() {
+ epatch_user
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)"
+}
+
+src_install(){
+ dobin crunch
+ doman crunch.1
+ insinto /usr/share/crunch
+ doins charset.lst
+}
diff --git a/app-misc/crunch/files/crunch-3.4-gentoo.patch b/app-misc/crunch/files/crunch-3.4-gentoo.patch
new file mode 100644
index 000000000000..acdc757ef61d
--- /dev/null
+++ b/app-misc/crunch/files/crunch-3.4-gentoo.patch
@@ -0,0 +1,34 @@
+--- Makefile.orig 2013-11-21 11:53:21.835712927 +0400
++++ Makefile 2013-11-21 11:53:42.557713372 +0400
+@@ -16,19 +16,19 @@
+ # General variables
+ PACKAGE = crunch
+ VERSION = 3.4
+-PREFIX = /usr
++PREFIX ?= /usr
+ DISTDIR = $(PACKAGE)-$(VERSION)
+ DISTFILES = crunch.c crunch.1 charset.lst
+ BINDIR = $(PREFIX)/bin
+ BTBINDIR = /pentest/passwords/$(PACKAGE)
+ MANDIR = $(PREFIX)/share/man/man1
+ INSTALL = $(shell which install)
+-CC = $(shell which gcc)
++CC ?= $(shell which gcc)
+ LIBFLAGS = -lm
+ THREADFLAGS = -pthread
+ OPTFLAGS = -g -o0
+ LINTFLAGS = -Wall -pedantic
+-CFLAGS = $(THREADFLAGS) $(LINTFLAGS) -std=c99
++CFLAGS += $(THREADFLAGS) $(LINTFLAGS) -std=c99
+ VCFLAGS = $(THREADFLAGS) $(LINTFLAGS) -std=c99 $(OPTFLAGS)
+ LFS = $(shell getconf POSIX_V6_ILP32_OFFBIG_CFLAGS)
+ INSTALL_OPTIONS = -o root -g root
+@@ -46,7 +46,7 @@
+
+ crunch: crunch.c
+ @echo "Building binary..."
+- $(CC) $(CFLAGS) $(LFS) $? $(LIBFLAGS) -o $@
++ $(CC) $(CFLAGS) $(LDFLAGS) $(LFS) $? $(LIBFLAGS) -o $@
+ @echo ""
+
+ # Clean target
diff --git a/app-misc/crunch/metadata.xml b/app-misc/crunch/metadata.xml
new file mode 100644
index 000000000000..92eb07b23869
--- /dev/null
+++ b/app-misc/crunch/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>
+ <email>pinkbyte@gentoo.org</email>
+ <name>Sergey Popov</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">crunch-wordlist</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/cstream/Manifest b/app-misc/cstream/Manifest
new file mode 100644
index 000000000000..03c01555a47a
--- /dev/null
+++ b/app-misc/cstream/Manifest
@@ -0,0 +1,2 @@
+DIST cstream-3.0.0.tar.gz 98286 SHA256 3261202434d22256bb55fbcbafdfda5fac84c9c1e5589ba2c4ded45d3dad9bfc SHA512 53d72766071b64c81f16531e894d88c2559524e539c92616737b4c7d32c268771db2657afa5e2ad62a778e9dabaf3529f83067a12824e499767e5e9cf5f07387 WHIRLPOOL 2caa8a1cf9dbe646dc5a385404b377af61992f4441d879497d1745ba4cbf67afb8606185af29cba62811ddbde8a6dbff242e1a18d3b4e0573b71ecdcab3092af
+DIST cstream-3.1.1.tar.gz 96609 SHA256 95ad4a41932edda121684eaed2435a11a26104c8193cffca0f892573acc095ae SHA512 8d6364da622711f6888fd221b2f36f5da23d2a562d5a797d58d7ef361415481de8ab9ae55ae856d47c2d0141d570e22a61ab0ce9954c043877196df168f2f43a WHIRLPOOL efebe40cf26b8defffc12ce2f6a280cc628b62314c50f22bbe73bd23bd7fa4f26484722e0c3d2b3de5d5d7828399660bcc12abdcd8be0e8a00f5b752db88df1b
diff --git a/app-misc/cstream/cstream-3.0.0.ebuild b/app-misc/cstream/cstream-3.0.0.ebuild
new file mode 100644
index 000000000000..8d13736213a0
--- /dev/null
+++ b/app-misc/cstream/cstream-3.0.0.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="2"
+
+inherit autotools
+
+DESCRIPTION="general-purpose stream-handling tool like UNIX dd"
+HOMEPAGE="http://www.cons.org/cracauer/cstream.html"
+SRC_URI="http://www.cons.org/cracauer/download/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+src_prepare() {
+ eautoreconf
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+}
diff --git a/app-misc/cstream/cstream-3.1.1.ebuild b/app-misc/cstream/cstream-3.1.1.ebuild
new file mode 100644
index 000000000000..b98cb2b93222
--- /dev/null
+++ b/app-misc/cstream/cstream-3.1.1.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+AT_M4DIR="auxdir"
+AUTOTOOLS_AUTORECONF=1
+inherit autotools-utils
+
+DESCRIPTION="general-purpose stream-handling tool like UNIX dd"
+HOMEPAGE="http://www.cons.org/cracauer/cstream.html"
+SRC_URI="http://www.cons.org/cracauer/download/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+src_prepare() {
+ # this file does not regenerated automatically by autotools-utils eclass
+ rm auxdir/missing || die 'failed to remove auxdir/missing'
+
+ autotools-utils_src_prepare
+}
diff --git a/app-misc/cstream/metadata.xml b/app-misc/cstream/metadata.xml
new file mode 100644
index 000000000000..aec6dd2ce011
--- /dev/null
+++ b/app-misc/cstream/metadata.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer>
+ <email>maintainer-needed@gentoo.org</email>
+</maintainer>
+<longdescription lang="en">
+cstream is a general-purpose stream-handling tool like UNIX dd, usually used in commandline-constructed pipes.
+Features:
+ - Sane commandline switch syntax.
+ - Exact throughput limiting, on the incoming side. Timing variance in previous reads are counterbalanced in the following reads.
+ - Precise throughput reporting. Either at the end of the transmission or everytime SIGUSR1 is received. Quite useful to ask lengthy operations how much data has been transferred yet, i.e. when writing tapes. Reports are done in bytes/sec and if appropriate in KB/sec or MB/sec, where 1K = 1024.
+ - SIGHUP causes a clean shutdown before EOF on input, timing information is displayed.
+ - Build-in support to write its PID to a file, for painless sending of these signals.
+ - Build-in support for fifos. Example usage is a 'pseudo-device', something that sinks or delivers data at an appropriate rate, but looks like a file, i.e. if you test soundcard software. See the manpage for examples.
+ - Built-in data creation and sink, no more redirection of /dev/null and /dev/zero. These special devices speed varies greatly among operating systems, redirecting from it isn't appropriate benchmarking and a waste of resources anyway.
+ - Accepts 'k', 'm' and 'g' character after number for "kilo, mega, giga" bytes for overall data size limit.
+ - "gcc -Wall" clean source code, serious effort taken to avoid undefined behavior in ANSI C or POSIX, except long long is required. Limiting and reporting works on data amounts > 4 GB.
+</longdescription>
+</pkgmetadata>
+
diff --git a/app-misc/cw/Manifest b/app-misc/cw/Manifest
new file mode 100644
index 000000000000..b68084adf05b
--- /dev/null
+++ b/app-misc/cw/Manifest
@@ -0,0 +1 @@
+DIST cw-1.0.16.tar.bz2 76035 SHA256 a12738f13f3ee90b0bd0c875b4d0bd345d51dced6efd5a14dd82a4705c78fbe4 SHA512 6a5da4e4dbb4d042d8b4e1e0727039f3103f9d7124a6f7c37ac094d7fee0ae10d9bacc6739fc133ca9fb682501bcafecd39a660abfe19fbf1fd9bf7ec06cfa32 WHIRLPOOL 1e5188ac6a9c5985c0169a6a932e1fd7dec242a1e9dcf2409c0bf54161733feb26fb500ec0308d062dbffe595946d7adffe74a19a849420733931f092143cd1c
diff --git a/app-misc/cw/cw-1.0.16-r3.ebuild b/app-misc/cw/cw-1.0.16-r3.ebuild
new file mode 100644
index 000000000000..c032948da274
--- /dev/null
+++ b/app-misc/cw/cw-1.0.16-r3.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="A non-intrusive real-time ANSI color wrapper for common unix-based commands"
+HOMEPAGE="http://cwrapper.sourceforge.net/"
+SRC_URI="mirror://sourceforge/cwrapper/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${PV}-ldflags.patch \
+ "${FILESDIR}"/${PV}-path.patch \
+ "${FILESDIR}"/${PV}-collision.patch \
+ "${FILESDIR}"/${PV}-format-security.patch
+ tc-export CC
+}
+
+src_compile() {
+ emake local
+}
+
+src_install() {
+ insinto /usr/share/cw
+ doins etc/*
+
+ exeinto /usr/libexec/cw
+ doexe def/*
+
+ doman man/cwu*
+ newman man/cw.* color-wrapper
+ dodoc CHANGES CONTRIB INSTALL README PLATFORM doc/README*
+
+ dobin bin/{cwu,colorcfg}
+ # app-misc/color currently conflicts; hopefully 'colors' is safe
+ newbin bin/color colors
+ # media-radio/unixcw currently conflicts;
+ newbin bin/cw color-wrapper
+}
+
+pkg_postinst() {
+ ebegin "Updating definition files"
+ cwu /usr/libexec/cw /usr/bin/color-wrapper # >/dev/null
+ eend $?
+
+ elog "To enable color-wrapper, as your user, run:"
+ elog " colorcfg [1|2|3]"
+ elog "to add relevant environment variables to your ~/.bash_profile"
+ elog "Run colorcfg without options to see what [1|2|3] means."
+ elog
+ elog "After sourcing your ~/.bash_profile, commands for which definitions"
+ elog "are provided should have colored output."
+ elog
+ elog "To enable/disable colored output, run: 'colors [on|off]'."
+}
diff --git a/app-misc/cw/files/1.0.16-collision.patch b/app-misc/cw/files/1.0.16-collision.patch
new file mode 100644
index 000000000000..52bb8cab8f3b
--- /dev/null
+++ b/app-misc/cw/files/1.0.16-collision.patch
@@ -0,0 +1,34 @@
+diff --git a/src/cw.c b/src/cw.c
+index d7b4875..a7811d8 100644
+--- a/src/cw.c
++++ b/src/cw.c
+@@ -1336,7 +1336,7 @@ unsigned char is_cwfile(char *file){
+ s=strlen(buf);
+ if(buf[s]=='\n')s--;
+ if(buf[s]=='\r')s--;
+- if(s>4&&!strncmp(buf,"#!",2)&&!strncmp(buf+(s-4),"/cw",3))return(1);
++ if(s>15&&!strncmp(buf,"#!",2)&&!strncmp(buf+(s-15),"/color-wrapper",14))return(1);
+ return(0);
+ }
+ /* sets left and right borders. */
+diff --git a/src/cwu.c b/src/cwu.c
+index 823618d..63f566b 100644
+--- a/src/cwu.c
++++ b/src/cwu.c
+@@ -37,12 +37,12 @@ signed int main(signed int argc,char **argv){
+ if(argc>1&&!strcmp(argv[1],"-v"))
+ cwuexit(1,"cwu (color wrapper directive updater) v"VERSION);
+ if(argc<2)
+- cwuexit(1,"syntax: cwu <definitions directory> <cw binary path>");
++ cwuexit(1,"syntax: cwu <definitions directory> <color-wrapper binary path>");
+ if(argc<3)cwuexit(1,"no path provided to update with.");
+- if(strncmp(argv[2]+(strlen(argv[2])-3),"/cw",3))
+- cwuexit(1,"cw binary path doesn't end with `/cw'.");
++ if(strncmp(argv[2]+(strlen(argv[2])-14),"/color-wrapper",14))
++ cwuexit(1,"cw binary path doesn't end with `/color-wrapper'.");
+ if(access(argv[2],X_OK))
+- cwuexit(1,"cw binary does not exist or is not executable.");
++ cwuexit(1,"color-wrapper binary does not exist or is not executable.");
+ globcw(argv[1],argv[2]);
+ cwuexit(0,0);
+ exit(0);
diff --git a/app-misc/cw/files/1.0.16-format-security.patch b/app-misc/cw/files/1.0.16-format-security.patch
new file mode 100644
index 000000000000..20f0b1d06b1e
--- /dev/null
+++ b/app-misc/cw/files/1.0.16-format-security.patch
@@ -0,0 +1,16 @@
+ src/cw.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/cw.c b/src/cw.c
+index d7b4875..3ec1ac1 100644
+--- a/src/cw.c
++++ b/src/cw.c
+@@ -643,7 +643,7 @@ void sighandler(signed int sig){
+ else if(sig==SIGUSR1)ext=1;
+ else if(sig==SIGALRM)ext=2;
+ else if(sig==SIGPIPE||sig==SIGINT){
+- fprintf(stderr,pal2[16]);
++ fprintf(stderr,"%s", pal2[16]);
+ fflush(stderr);
+ cwexit(0,0);
+ }
diff --git a/app-misc/cw/files/1.0.16-ldflags.patch b/app-misc/cw/files/1.0.16-ldflags.patch
new file mode 100644
index 000000000000..46037312c6c3
--- /dev/null
+++ b/app-misc/cw/files/1.0.16-ldflags.patch
@@ -0,0 +1,18 @@
+diff --git a/Makefile.in b/Makefile.in
+index 9a6e4ec..e510493 100644
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -19,11 +19,11 @@ all:
+
+ cw:
+ @$(ECHO) "* Compiling cw(color wrapper)..."
+- @$(CC) src/cw.c -o bin/cw @CFLAGS@ @LIBS@ @DEFS@
++ $(CC) $(CFLAGS) $(LDFLAGS) src/cw.c -o bin/cw @CFLAGS@ @LIBS@ @DEFS@
+
+ cwu:
+ @$(ECHO) "* Compiling cwu(color wrapper directive updater)..."
+- @$(CC) src/cwu.c -o bin/cwu @CFLAGS@
++ $(CC) $(CFLAGS) $(LDFLAGS) src/cwu.c -o bin/cwu
+
+ local: cw cwu
+
diff --git a/app-misc/cw/files/1.0.16-path.patch b/app-misc/cw/files/1.0.16-path.patch
new file mode 100644
index 000000000000..f62b5bd994d4
--- /dev/null
+++ b/app-misc/cw/files/1.0.16-path.patch
@@ -0,0 +1,19 @@
+diff --git a/bin/colorcfg b/bin/colorcfg
+index cf73b50..3e78c73 100755
+--- a/bin/colorcfg
++++ b/bin/colorcfg
+@@ -10,13 +10,7 @@ echo "[ cw/color wrapper: user setup script. ]"
+ if test -x "${HOME}/.cw/bin/colorcfg";then
+ CWLIB="${HOME}/.cw/def"
+ else
+- SED="`which sed 2>/dev/null`"
+- if test -z "$SED";then
+- CWLIB="/usr/local/lib/cw"
+- echo "(NOTE: using static cw library path, this could be invalid)"
+- else
+- CWLIB="`echo \"$0/lib/cw\"|sed \"s/\/bin\/colorcfg//g\"`"
+- fi
++ CWLIB="/usr/libexec/cw"
+ fi
+
+ echo "[ cw library path: $CWLIB ]"
diff --git a/app-misc/cw/metadata.xml b/app-misc/cw/metadata.xml
new file mode 100644
index 000000000000..ffe1cdfd6046
--- /dev/null
+++ b/app-misc/cw/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>shell-tools</herd>
+ <upstream>
+ <remote-id type="sourceforge">cwrapper</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/cwiid/Manifest b/app-misc/cwiid/Manifest
new file mode 100644
index 000000000000..bfe1708fa3c8
--- /dev/null
+++ b/app-misc/cwiid/Manifest
@@ -0,0 +1 @@
+DIST cwiid-20110107.tar.bz2 81184 SHA256 7df682dd200eb703b2485ceb86f9834a4bc608c191e1431c3f9d2b58e4865a6f SHA512 b9cde716f7bc67697cf6fafd62f324cf343afc734845d8c3f608e0ad9abe245570e59dbda10a0d3a50b0439a8cc8db0bcf71d592c6d4b733c3955426a97cb46f WHIRLPOOL 5b92fb20c91eef290d334a39bbe0a258a62ca20311cdb65346f21a42b4dbeb271cdd2e326ed1d11c129893edf1131ab590472a911a6a7df32a559a88abd49134
diff --git a/app-misc/cwiid/cwiid-20110107-r2.ebuild b/app-misc/cwiid/cwiid-20110107-r2.ebuild
new file mode 100644
index 000000000000..605c32e14ad2
--- /dev/null
+++ b/app-misc/cwiid/cwiid-20110107-r2.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+if [[ ${PV} == "9999" ]]; then
+ EGIT_REPO_URI="git://github.com/abstrakraft/cwiid.git"
+ SRC_URI=""
+ KEYWORDS=""
+ inherit git
+else
+ # git archive --prefix=cwiid-$(date +%Y%m%d)/ \
+ # --format=tar HEAD | bzip2 > cwiid-$(date +%Y%m%d).tar.bz2
+ SRC_URI="http://dev.gentoo.org/~lxnay/cwiid/cwiid-${PV}.tar.bz2"
+ KEYWORDS="~x86 ~amd64"
+fi
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit eutils linux-mod autotools python-single-r1
+
+DESCRIPTION="Library, input driver, and utilities for the Nintendo Wiimote"
+HOMEPAGE="http://abstrakraft.org/cwiid"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="python"
+
+DEPEND="virtual/awk
+ sys-apps/sed
+ sys-devel/bison
+ >=sys-devel/flex-2.5.35
+ virtual/pkgconfig
+ python? ( ${PYTHON_DEPS} )"
+
+RDEPEND="net-wireless/bluez
+ x11-libs/gtk+:2
+ python? ( ${PYTHON_DEPS} )"
+
+REQUIRED_USE=${PYTHON_REQUIRED_USE}
+
+pkg_setup() {
+ CONFIG_CHECK="~BT_L2CAP ~INPUT_UINPUT"
+ linux-mod_pkg_setup
+ use python && python-single-r1_pkg_setup
+}
+
+src_unpack() {
+ if [[ ${PV} == "9999" ]]; then
+ git_src_unpack
+ else
+ unpack ${A}
+ fi
+}
+
+src_prepare() {
+ # Fix broken build system
+ sed -i "s:--disable-ldconfig:--without-ldconfig:g" "${S}"/configure.ac || die
+ sed -i "s:enable_ldconfig:with_ldconfig:g" "${S}"/configure.ac || die
+ epatch "${FILESDIR}"/${P}-underlinking.patch
+ eautoreconf
+}
+src_configure() {
+ econf $(use_with python) --without-ldconfig || die "configure failed"
+}
+
+src_compile() {
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dodoc AUTHORS ChangeLog NEWS README
+ insinto /lib/udev/rules.d
+ doins "${FILESDIR}/60-${PN}.rules"
+}
diff --git a/app-misc/cwiid/files/60-cwiid.rules b/app-misc/cwiid/files/60-cwiid.rules
new file mode 100644
index 000000000000..80689062a871
--- /dev/null
+++ b/app-misc/cwiid/files/60-cwiid.rules
@@ -0,0 +1,2 @@
+# make possible to use cwiid device as user
+KERNEL=="uinput", MODE="0660", GROUP="plugdev"
diff --git a/app-misc/cwiid/files/cwiid-20110107-underlinking.patch b/app-misc/cwiid/files/cwiid-20110107-underlinking.patch
new file mode 100644
index 000000000000..b60f379fc9cc
--- /dev/null
+++ b/app-misc/cwiid/files/cwiid-20110107-underlinking.patch
@@ -0,0 +1,31 @@
+From: Julian Ospald <hasufell@gentoo.org>
+Date: Tue Aug 14 23:04:03 UTC 2012
+Subject: build system
+
+fix build for linkers that don't permit underlinking
+
+--- configure.ac
++++ configure.ac
+@@ -69,6 +69,8 @@
+ AC_MSG_ERROR([linux/uinput.h]),
+ [#include <linux/input.h>])
+
++PKG_CHECK_MODULES([BLUETOOTH], [bluez])
++
+ AC_ISC_POSIX
+
+ AC_ARG_WITH(cwiid-config-dir,AC_HELP_STRING([--with-cwiid-config-dir],
+--- wmdemo/Makefile.in
++++ wmdemo/Makefile.in
+@@ -6,9 +6,9 @@
+
+ SOURCES = wmdemo.c
+
+-CFLAGS += -I@top_builddir@/libcwiid
++CFLAGS += -I@top_builddir@/libcwiid @BLUETOOTH_CFLAGS@
+ LDFLAGS += -L@top_builddir@/libcwiid
+-LDLIBS += -lcwiid
++LDLIBS += -lcwiid @BLUETOOTH_LIBS@
+ INST_DIR = @bindir@
+
+ include $(COMMON)/include/app.mak
diff --git a/app-misc/cwiid/metadata.xml b/app-misc/cwiid/metadata.xml
new file mode 100644
index 000000000000..a5f3f76b89bb
--- /dev/null
+++ b/app-misc/cwiid/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>proxy-maintainers</herd>
+ <maintainer>
+ <email>lxnay@gentoo.org</email>
+ </maintainer>
+ <maintainer>
+ <email>ziapannocchia@gmail.com</email>
+ <name>Marco Clocchiatti</name>
+ <description>Proxied co-maintainer</description>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-misc/dailystrips/Manifest b/app-misc/dailystrips/Manifest
new file mode 100644
index 000000000000..e9837129b703
--- /dev/null
+++ b/app-misc/dailystrips/Manifest
@@ -0,0 +1 @@
+DIST dailystrips-1.0.28.tar.gz 58713 SHA256 dc54d8559d378fb4115a5605cff5d0e45a69f6ed1539f4aa31d6e13231c362ca SHA512 a5388d5bd45ce1b8b22420c3d53bbbf4d26fec9737c6edca3b579126443e4f88ae5a7ce5c6770264ca96ea1488ab69b73831ab6bbd20e0f68854fb08714565cb WHIRLPOOL 19abde3f088c549f829c9f2f55c58c5ae2c8a045c5c4c37e03b1cae6a20faed98e52650d973e1ac93e4605899427deba4c5628e674cc4ff5130876ad05b2f020
diff --git a/app-misc/dailystrips/dailystrips-1.0.28-r2.ebuild b/app-misc/dailystrips/dailystrips-1.0.28-r2.ebuild
new file mode 100644
index 000000000000..1cc829268295
--- /dev/null
+++ b/app-misc/dailystrips/dailystrips-1.0.28-r2.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+DESCRIPTION="dailystrips automatically downloads your favorite online comics from the web"
+HOMEPAGE="http://dailystrips.sourceforge.net/"
+SRC_URI="mirror://sourceforge/dailystrips/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 ppc x86"
+IUSE=""
+
+RDEPEND=">=dev-perl/libwww-perl-5.50
+ dev-perl/DateTime
+ dev-perl/TimeDate"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ sed -i \
+ -e "s:/usr/share/dailystrips/strips.def:/etc/strips.def:" \
+ dailystrips \
+ || die "sed dailystrips failed"
+}
+
+src_install() {
+ dobin dailystrips dailystrips-clean dailystrips-update \
+ || die "dobin failed"
+ dodoc BUGS CHANGELOG CONTRIBUTORS README* TODO
+ insinto /etc
+ doins strips.def || die "doins failed"
+}
diff --git a/app-misc/dailystrips/metadata.xml b/app-misc/dailystrips/metadata.xml
new file mode 100644
index 000000000000..e880926d0a3e
--- /dev/null
+++ b/app-misc/dailystrips/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>
+ <email>maintainer-needed@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">dailystrips</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/datefudge/Manifest b/app-misc/datefudge/Manifest
new file mode 100644
index 000000000000..d0c008de3054
--- /dev/null
+++ b/app-misc/datefudge/Manifest
@@ -0,0 +1 @@
+DIST datefudge_1.17.tar.gz 12606 SHA256 ff6c566ef6d587dce27396c15b178fafc3c3d8a0275dd6bbd5523b88badabec4 SHA512 6d335f2c1f42792756d3a81264be0bdf4cde5efab86bec5b62de9ccb2488deaff67e4a4f6c7984fa7a5336156df2d76e366bf486436052d2c5ee5ff88067335e WHIRLPOOL 1c107cea05910b900e249338969cf89448cd81e6de61ae1731df37160ffb399912c45d25d1f3f1bf95d0bb7f8d42139916bf13f5a37e4b68362d16f10bc9d718
diff --git a/app-misc/datefudge/datefudge-1.17.ebuild b/app-misc/datefudge/datefudge-1.17.ebuild
new file mode 100644
index 000000000000..67db96de6427
--- /dev/null
+++ b/app-misc/datefudge/datefudge-1.17.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+inherit multilib toolchain-funcs eutils
+
+DESCRIPTION="A program (and preload library) to fake system date"
+HOMEPAGE="http://packages.qa.debian.org/d/datefudge.html"
+SRC_URI="mirror://debian/pool/main/d/${PN}/${PN}_${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
+IUSE=""
+
+src_prepare() {
+ use userland_BSD && epatch "${FILESDIR}"/${P}-bsd.patch
+ sed -i \
+ -e '/dpkg-parsechangelog/d' \
+ -e "s:usr/lib:usr/$(get_libdir):" \
+ Makefile || die
+
+ if use prefix; then
+ sed -i -e '/-o root -g root/d' Makefile || die
+ fi
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" VERSION="${PV}"
+}
+
+src_install() {
+ emake DESTDIR="${ED}" VERSION="${PV}" install
+ dodoc debian/changelog README
+}
diff --git a/app-misc/datefudge/files/datefudge-1.17-bsd.patch b/app-misc/datefudge/files/datefudge-1.17-bsd.patch
new file mode 100644
index 000000000000..2f2a7dac9be3
--- /dev/null
+++ b/app-misc/datefudge/files/datefudge-1.17-bsd.patch
@@ -0,0 +1,58 @@
+diff --git a/Makefile b/Makefile
+index b2f81bb..35da75e 100644
+--- a/Makefile
++++ b/Makefile
+@@ -12,17 +12,17 @@ compile all: datefudge datefudge.so
+
+ install: datefudge datefudge.so datefudge.1
+ install -d $(DESTDIR)/usr/lib/datefudge/
+- $(INSTALL_PROGRAM) -o root -g root -m 644 datefudge.so $(DESTDIR)/usr/lib/datefudge/datefudge.so
++ $(INSTALL_PROGRAM) -o root -g wheel -m 644 datefudge.so $(DESTDIR)/usr/lib/datefudge/datefudge.so
+ install -d $(DESTDIR)/usr/bin/
+- $(INSTALL_PROGRAM) -o root -g root -m 755 datefudge $(DESTDIR)/usr/bin
++ $(INSTALL_PROGRAM) -o root -g wheel -m 755 datefudge $(DESTDIR)/usr/bin
+ install -d $(DESTDIR)/usr/share/man/man1
+- install -o root -g root -m 644 datefudge.1 $(DESTDIR)/usr/share/man/man1
++ install -o root -g wheel -m 644 datefudge.1 $(DESTDIR)/usr/share/man/man1
+
+ datefudge: datefudge.sh
+ sed -e 's,@VERSION@,$(VERSION),g' < $< > $@
+
+ datefudge.so: datefudge.o
+- $(CC) $(LDFLAGS) -o $@ -shared $< -ldl -lc
++ $(CC) $(LDFLAGS) -o $@ -shared $< -lc
+
+ datefudge.o: datefudge.c
+ $(CC) $(CFLAGS) -c -o $@ $<
+@@ -39,8 +39,8 @@ test: compile
+ export TZ=UTC ;\
+ ret1=1; ret2=1 ;\
+ for i in 1 2; do \
+- export DATEFUDGE=`LC_ALL=C date --date='yesterday 0:00' +%s` ;\
+- dt=`LC_ALL=C LD_PRELOAD=$(CURDIR)/datefudge.so date --date=12:15 +%F.%T` ;\
++ export DATEFUDGE=`LC_ALL=C date -v-1d -v0H -v0M +%s` ;\
++ dt=`LC_ALL=C LD_PRELOAD=$(CURDIR)/datefudge.so date -v12H -v15M +%F.%T` ;\
+ exp="1970-01-02.12:15:00" ;\
+ [ "$$dt" != "$$exp" ] || { echo "OK"; ret1=0; break; } ;\
+ echo "failed: expected: $$exp, actual: $$dt" ;\
+@@ -49,7 +49,7 @@ test: compile
+ echo -n "Running a simple perl localtime() test... " ;\
+ pscr='@t=localtime(time);$$t[5]+=1900;$$t[4]++;printf "%04d-%02d-%02d\n",$$t[5],$$t[4],$$t[3];';\
+ for i in 1 2; do \
+- export DATEFUDGE=`LC_ALL=C date --date='yesterday 0:00' +%s` ;\
++ export DATEFUDGE=`LC_ALL=C date -v-1d -v0H -v0M +%s` ;\
+ dt=`LD_PRELOAD=$(CURDIR)/datefudge.so perl -e "$$pscr"` ;\
+ exp="1970-01-02" ;\
+ [ "$$dt" != "$$exp" ] || { echo "OK"; ret2=0; break; } ;\
+diff --git a/datefudge.c b/datefudge.c
+index 8c86652..fc7e3d6 100644
+--- a/datefudge.c
++++ b/datefudge.c
+@@ -14,7 +14,6 @@
+ #include <stdlib.h>
+ #include <dlfcn.h>
+ #include <assert.h>
+-#include <features.h>
+ #include <unistd.h>
+ #include <time.h>
+ #include <sys/time.h>
diff --git a/app-misc/datefudge/metadata.xml b/app-misc/datefudge/metadata.xml
new file mode 100644
index 000000000000..c2d865517c00
--- /dev/null
+++ b/app-misc/datefudge/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>ssuominen@gentoo.org</email>
+ <name>Samuli Suominen</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-misc/dateutils/Manifest b/app-misc/dateutils/Manifest
new file mode 100644
index 000000000000..4f2f630cb87d
--- /dev/null
+++ b/app-misc/dateutils/Manifest
@@ -0,0 +1,4 @@
+DIST dateutils-0.2.7.tar.xz 490456 SHA256 f7d0c502d79dec4a604ebc30e7c44988d7095bd303137d1fa652720350337042 SHA512 6e066b91da706abfd16f34d5a07a9f586b83720f7bde392c1dfd8666741b2a5245101545f36e2319ac6dce5b089bc1f90517916981c830d8993fcacc2927efdb WHIRLPOOL 8702375706a3c5514ec753fe166766860e01871296e482c3a4ea0b24b5295c03da8eeb0f14fce06e6e7b5ea678d982c2154ace3ca9def9869951d268133d1ed6
+DIST dateutils-0.3.1.tar.xz 586848 SHA256 b34f9d0bcb831e91c7ad3e3d17e56a8efbed11db302a2ee22437fd85dce11b19 SHA512 cbf691b0ef8c815159d262796bb5e7292547794610efb99772a51c8bd20e8f23e36be28c6c8a0ffa04445bf7b13bc8fe58bc44a1ba356e1b224b631d561422d9 WHIRLPOOL d2971d06c71166b7f81c83ad517d395482c8603b879e181cd6926b14b5877b02b20b9b972e88757d411a04d8f19035a7651e259fafe8cde387915b89bbc9762e
+DIST dateutils-0.3.2.tar.xz 586156 SHA256 551620b01c08d5feffb68fde6bb669fe09275dd316a79aeca0efcbe3ec774a3e SHA512 0b04e48ad5438425784250eac5d9dbf851b00548d8970d98f3ffa599003a845b22db4ef01693686f01f13c528f2ab86ab46ec0049cd4e05afd6b53c54eaede33 WHIRLPOOL deb08d0e89b0a3784af1b4e9d23759ea3c5484e9775842ae90a36ac89d2711acc976cc857ecf2543137aca5d24b37b5674dee3d2a0dd2f5067a740bf58da2754
+DIST dateutils-0.3.3.tar.xz 593700 SHA256 3eb0b1dbf4519c86bc890a12c78cc85eae2cc10c20ff894a90ed55140efeee7a SHA512 7041b415edd457b378db36f06782038c3b7b4663cb12dcd5c6555401169e953721a6c24b54fe6db67ba514ecd17fd6007bd503ba364012edcad99a0199f3a78c WHIRLPOOL f84cee24ade044f9fa8b284cc484711e86a3dcd91df840759817f28c516267a7008b4262c750d41ecbf27e87c476c641bd836b541288ba222b93d58ef1a1ae8e
diff --git a/app-misc/dateutils/dateutils-0.2.7.ebuild b/app-misc/dateutils/dateutils-0.2.7.ebuild
new file mode 100644
index 000000000000..04a3d4755625
--- /dev/null
+++ b/app-misc/dateutils/dateutils-0.2.7.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+DESCRIPTION="command line date and time utilities"
+HOMEPAGE="http://hroptatyr.github.com/dateutils/"
+SRC_URI="https://bitbucket.org/hroptatyr/${PN}/downloads/${P}.tar.xz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="app-arch/xz-utils
+ sys-libs/timezone-data"
+
+# bug 429810
+RDEPEND="!sys-infiniband/dapl"
+
+src_configure() {
+ econf \
+ --docdir=/usr/share/doc/${PF}
+}
+
+src_compile() {
+ emake CFLAGS="${CFLAGS}"
+}
+
+src_test() {
+ # parallel tests failure
+ emake CFLAGS="${CFLAGS}" -j1 check
+}
diff --git a/app-misc/dateutils/dateutils-0.3.1.ebuild b/app-misc/dateutils/dateutils-0.3.1.ebuild
new file mode 100644
index 000000000000..04a3d4755625
--- /dev/null
+++ b/app-misc/dateutils/dateutils-0.3.1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+DESCRIPTION="command line date and time utilities"
+HOMEPAGE="http://hroptatyr.github.com/dateutils/"
+SRC_URI="https://bitbucket.org/hroptatyr/${PN}/downloads/${P}.tar.xz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="app-arch/xz-utils
+ sys-libs/timezone-data"
+
+# bug 429810
+RDEPEND="!sys-infiniband/dapl"
+
+src_configure() {
+ econf \
+ --docdir=/usr/share/doc/${PF}
+}
+
+src_compile() {
+ emake CFLAGS="${CFLAGS}"
+}
+
+src_test() {
+ # parallel tests failure
+ emake CFLAGS="${CFLAGS}" -j1 check
+}
diff --git a/app-misc/dateutils/dateutils-0.3.2.ebuild b/app-misc/dateutils/dateutils-0.3.2.ebuild
new file mode 100644
index 000000000000..4f7f6727049a
--- /dev/null
+++ b/app-misc/dateutils/dateutils-0.3.2.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+DESCRIPTION="command line date and time utilities"
+HOMEPAGE="http://hroptatyr.github.com/dateutils/"
+SRC_URI="https://bitbucket.org/hroptatyr/${PN}/downloads/${P}.tar.xz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="app-arch/xz-utils
+ sys-libs/timezone-data"
+
+# bug 429810
+RDEPEND="!sys-infiniband/dapl"
+
+src_configure() {
+ econf \
+ --docdir=/usr/share/doc/${PF}
+}
+
+src_compile() {
+ emake CFLAGS="${CFLAGS}"
+}
+
+src_test() {
+ # parallel tests failure
+ emake CFLAGS="${CFLAGS}" -j1 check
+}
diff --git a/app-misc/dateutils/dateutils-0.3.3.ebuild b/app-misc/dateutils/dateutils-0.3.3.ebuild
new file mode 100644
index 000000000000..4f7f6727049a
--- /dev/null
+++ b/app-misc/dateutils/dateutils-0.3.3.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+DESCRIPTION="command line date and time utilities"
+HOMEPAGE="http://hroptatyr.github.com/dateutils/"
+SRC_URI="https://bitbucket.org/hroptatyr/${PN}/downloads/${P}.tar.xz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="app-arch/xz-utils
+ sys-libs/timezone-data"
+
+# bug 429810
+RDEPEND="!sys-infiniband/dapl"
+
+src_configure() {
+ econf \
+ --docdir=/usr/share/doc/${PF}
+}
+
+src_compile() {
+ emake CFLAGS="${CFLAGS}"
+}
+
+src_test() {
+ # parallel tests failure
+ emake CFLAGS="${CFLAGS}" -j1 check
+}
diff --git a/app-misc/dateutils/metadata.xml b/app-misc/dateutils/metadata.xml
new file mode 100644
index 000000000000..157326a7e891
--- /dev/null
+++ b/app-misc/dateutils/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>radhermit@gentoo.org</email>
+ <name>Tim Harder</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-misc/datovka/Manifest b/app-misc/datovka/Manifest
new file mode 100644
index 000000000000..10dcb84c857a
--- /dev/null
+++ b/app-misc/datovka/Manifest
@@ -0,0 +1 @@
+DIST datovka-3.0.3.tar.gz 671555 SHA256 96bbc89fb2fe0c6a306d80260945b1b4eb089a061f9e324139b9a238d8588c3c SHA512 c3dfa23125849fb1c5691a4ad6077fedd307b8c0417c72e014876f56c1185a2da73478927fb594cac45ada77a71a3798f57a75032a4d83cd81c194fe3257397d WHIRLPOOL 4ab43452a51130ce021fd23e292f6922cd6d16670b8e65f270747b75b35b8fd085962fe6086ed3ae8f0797e4e764e5e403b7694dd82396a7c1d2b4dacb81262f
diff --git a/app-misc/datovka/datovka-3.0.3-r1.ebuild b/app-misc/datovka/datovka-3.0.3-r1.ebuild
new file mode 100644
index 000000000000..445bc53e322a
--- /dev/null
+++ b/app-misc/datovka/datovka-3.0.3-r1.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1
+
+DESCRIPTION="GUI to access Czech eGov \"Datove schranky\""
+HOMEPAGE="http://labs.nic.cz/page/969/datovka/"
+SRC_URI="http://www.nic.cz/public_media/datove_schranky/releases/src/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="
+ dev-python/pygtk:2[${PYTHON_USEDEP}]
+ dev-python/pyopenssl[${PYTHON_USEDEP}]
+ dev-python/reportlab[${PYTHON_USEDEP}]
+ dev-python/sqlalchemy[${PYTHON_USEDEP}]
+ media-fonts/dejavu
+ >=net-libs/dslib-3.0[${PYTHON_USEDEP}]
+"
+RDEPEND="${DEPEND}"
diff --git a/app-misc/datovka/datovka-3.0.3.ebuild b/app-misc/datovka/datovka-3.0.3.ebuild
new file mode 100644
index 000000000000..912e49f54192
--- /dev/null
+++ b/app-misc/datovka/datovka-3.0.3.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+PYTHON_DEPEND="2"
+
+inherit distutils
+
+DESCRIPTION="GUI to access Czech eGov \"Datove schranky\""
+HOMEPAGE="http://labs.nic.cz/page/969/datovka/"
+SRC_URI="http://www.nic.cz/public_media/datove_schranky/releases/src/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="
+ dev-python/pygtk:2
+ dev-python/pyopenssl
+ dev-python/reportlab
+ dev-python/sqlalchemy
+ media-fonts/dejavu
+ >=net-libs/dslib-3.0
+"
+RDEPEND="${DEPEND}"
+
+pkg_setup() {
+ python_set_active_version 2
+ python_pkg_setup
+}
+
+src_prepare() {
+ python_convert_shebangs -r 4 "${WORKDIR}"
+}
diff --git a/app-misc/datovka/metadata.xml b/app-misc/datovka/metadata.xml
new file mode 100644
index 000000000000..416ef33f0839
--- /dev/null
+++ b/app-misc/datovka/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>
+ A GUI for accessing ISDS (Informační systém datových schránek
+ / Data Box Information System) SOAP services as defined in Czech ISDS Act
+ (300/2008 Coll.) and implied documents.
+</longdescription>
+<maintainer>
+ <email>scarabeus@gentoo.org</email>
+</maintainer>
+</pkgmetadata>
diff --git a/app-misc/ddate/Manifest b/app-misc/ddate/Manifest
new file mode 100644
index 000000000000..6d21b77d573e
--- /dev/null
+++ b/app-misc/ddate/Manifest
@@ -0,0 +1 @@
+DIST ddate-0.2.1.tar.gz 7757 SHA256 7602ccf2065e88ffe57a37db3e33eaa51e61f4e4f722b03842162d91f9726bf6 SHA512 377ae4be0ddd2386de726603116ec64a524f2f4263cb30d2cd8f10024659f5fee552cf13de45cbaad36c93d2dfd16c0667993d67a37ba2276a96ca052265c714 WHIRLPOOL 27acbf78448f1bfbfac5184a453b9a73481260c2b6190be0b0545b204d2522d4a0fcac6b4258e0a7fb85768466a38f41bc7bd1a1c5417ed62f2b91f650e87fb2
diff --git a/app-misc/ddate/ddate-0.2.1.ebuild b/app-misc/ddate/ddate-0.2.1.ebuild
new file mode 100644
index 000000000000..3025e360cd62
--- /dev/null
+++ b/app-misc/ddate/ddate-0.2.1.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit cmake-utils
+
+DESCRIPTION="Perpetual date converter from gregorian to poee calendar"
+HOMEPAGE="http://github.com/bo0ts/ddate"
+SRC_URI="http://github.com/bo0ts/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="!<sys-apps/util-linux-2.20
+ !<sys-apps/util-linux-2.23[ddate]"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ sed -i -e '/gzip/d' CMakeLists.txt || die
+}
+
+src_install() {
+ dobin "${CMAKE_BUILD_DIR}"/${PN}
+ doman ${PN}.1
+ dodoc README.org
+}
diff --git a/app-misc/ddate/metadata.xml b/app-misc/ddate/metadata.xml
new file mode 100644
index 000000000000..613d91381f86
--- /dev/null
+++ b/app-misc/ddate/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>
+ <email>ssuominen@gentoo.org</email>
+ <name>Samuli Suominen</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">bo0ts/ddate</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/ddccontrol-db/Manifest b/app-misc/ddccontrol-db/Manifest
new file mode 100644
index 000000000000..2df13b81fb99
--- /dev/null
+++ b/app-misc/ddccontrol-db/Manifest
@@ -0,0 +1 @@
+DIST ddccontrol-db-20061014_p20121105.tar.gz 62043 SHA256 6da0e41af98549a0cda31323dba6a4b87dbc08d5575f8c6b7c49379b88f4fd2e SHA512 323c2ac498f634d20a183ea96e67868b8f3e8bb26da0133b91848b06accbef5605b3d5ca56b4861a8d28d9da9a28b11579a2e1fcc248624835190cdb01943c80 WHIRLPOOL e6ddfbb369be0cfb2904f7d7ec91de2d8a6b3428f2461f491b3b85b2bab1f97fd2814436b57872d22d0d4434e24e0a9733e70af8719959b66fc48850eac4174a
diff --git a/app-misc/ddccontrol-db/ddccontrol-db-20061014_p20121105.ebuild b/app-misc/ddccontrol-db/ddccontrol-db-20061014_p20121105.ebuild
new file mode 100644
index 000000000000..7ab416e588d5
--- /dev/null
+++ b/app-misc/ddccontrol-db/ddccontrol-db-20061014_p20121105.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit autotools
+
+DESCRIPTION="DDCControl monitor database"
+HOMEPAGE="http://ddccontrol.sourceforge.net/"
+COMMIT_ID="130da80af5cd5d2897ffeed63362262262c6944f"
+SRC_URI="https://github.com/ddccontrol/ddccontrol-db/archive/${COMMIT_ID}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86"
+IUSE="nls"
+
+S=${WORKDIR}/${PN}-${COMMIT_ID}
+
+RDEPEND="nls? ( sys-devel/gettext )"
+DEPEND="${RDEPEND}
+ dev-util/intltool
+ dev-perl/XML-Parser"
+
+src_prepare(){
+ touch db/options.xml.h ABOUT-NLS config.rpath || die
+ eautoreconf
+}
+
+src_configure() {
+ econf $(use_enable nls)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ dodoc AUTHORS ChangeLog NEWS README
+}
diff --git a/app-misc/ddccontrol-db/metadata.xml b/app-misc/ddccontrol-db/metadata.xml
new file mode 100644
index 000000000000..c90d48f37bb3
--- /dev/null
+++ b/app-misc/ddccontrol-db/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>
+ <email>mrueg@gentoo.org</email>
+ <name>Manuel Rüger</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">ddccontrol/ddccontrol-db</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/ddccontrol/Manifest b/app-misc/ddccontrol/Manifest
new file mode 100644
index 000000000000..118397b40828
--- /dev/null
+++ b/app-misc/ddccontrol/Manifest
@@ -0,0 +1 @@
+DIST ddccontrol-0.4.2_p20140105.tar.gz 177771 SHA256 14026465b1c1b3bd0fecfe3f199139f1365317a0974844c82aa783f2125e064c SHA512 7a28e9b81ee14e0431c57d372c8d43f861f61c35b441111e1f42d1aa62c333b0cc6a101dcb39d30e9661aaa85a02d755e4adef3a9b20a6952e1599e3ac12c72f WHIRLPOOL 55083597ab4e7e78d5315f114b257f3bfbadd1712ad5bd27e88d3b18ca694554ec51542b2b9a88bd7e21ffbdc7d4f82b80f1d43b5f16f90bdcc2edfb2421c7a6
diff --git a/app-misc/ddccontrol/ddccontrol-0.4.2_p20140105-r1.ebuild b/app-misc/ddccontrol/ddccontrol-0.4.2_p20140105-r1.ebuild
new file mode 100644
index 000000000000..770e66766904
--- /dev/null
+++ b/app-misc/ddccontrol/ddccontrol-0.4.2_p20140105-r1.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils autotools
+
+DESCRIPTION="DDCControl allows control of monitor parameters via DDC"
+HOMEPAGE="http://ddccontrol.sourceforge.net/"
+COMMIT_ID="9d89d8c0b959a4da62ecc50fb2aeb23142d4bfb4"
+SRC_URI="https://github.com/ddccontrol/ddccontrol/archive/${COMMIT_ID}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86"
+IUSE="doc gtk nls +pci static-libs video_cards_fglrx"
+S=${WORKDIR}/${PN}-${COMMIT_ID}
+
+RDEPEND="app-misc/ddccontrol-db
+ dev-libs/libxml2:2
+ gtk? ( x11-libs/gtk+:2 )
+ nls? ( sys-devel/gettext )
+ pci? ( sys-apps/pciutils )
+ video_cards_fglrx? ( x11-libs/amd-adl-sdk )"
+DEPEND="${RDEPEND}
+ dev-perl/XML-Parser
+ dev-util/intltool
+ sys-kernel/linux-headers
+ doc? (
+ >=app-text/docbook-xsl-stylesheets-1.65.1
+ >=dev-libs/libxslt-1.1.6
+ app-text/htmltidy
+ )"
+
+src_prepare() {
+ sed -i 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' configure.ac || die #467574
+ sed -i '/;Application/d' src/gddccontrol/gddccontrol.desktop.in || die
+
+ # ppc/ppc64 do not have inb/outb/ioperm
+ # they also do not have (sys|asm)/io.h
+ if ! use amd64 && ! use x86 ; then
+ local card
+ for card in sis intel810 ; do
+ sed -r -i \
+ -e "/${card}.Po/d" \
+ -e "s~${card}[^[:space:]]*~ ~g" \
+ src/ddcpci/Makefile.{am,ini} || die
+ done
+ sed -i \
+ -e '/sis_/d' \
+ -e '/i810_/d' \
+ src/ddcpci/main.c || die
+ fi
+
+ ## Save for a rainy day or future patching
+ touch config.rpath ABOUT-NLS
+ eautoreconf
+ intltoolize --force || die "intltoolize failed"
+}
+
+src_configure() {
+ econf \
+ --htmldir='$(datarootdir)'/doc/${PF}/html \
+ --disable-gnome-applet \
+ $(use_enable doc) \
+ $(use_enable gtk gnome) \
+ $(use_enable nls) \
+ $(use_enable pci ddcpci) \
+ $(use_enable static-libs static) \
+ $(use_enable video_cards_fglrx amdadl)
+}
+
+src_install() {
+ default
+ use static-libs || find "${ED}" -name '*.la' -delete
+}
diff --git a/app-misc/ddccontrol/metadata.xml b/app-misc/ddccontrol/metadata.xml
new file mode 100644
index 000000000000..74cde140509e
--- /dev/null
+++ b/app-misc/ddccontrol/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>
+ <email>mrueg@gentoo.org</email>
+ <name>Manuel Rüger</name>
+ </maintainer>
+ <use>
+ <flag name="pci">enable direct PCI memory access (the setuid ddcpci util)</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">ddccontrol/ddccontrol</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/delay/Manifest b/app-misc/delay/Manifest
new file mode 100644
index 000000000000..6380c339b6e5
--- /dev/null
+++ b/app-misc/delay/Manifest
@@ -0,0 +1 @@
+DIST delay-1.6.tar.gz 69860 SHA256 3097a25fc0d0091402fc9dbc6aa395fd5141028bcdc99baa5d3438ca04f78ca2 SHA512 45d34b768082ff2e4a73f1af63239f6b9e418f1cb46e5945606c0e8830ba2b8c14eeb21d7e0776ef669d2834ed6dcc66c3ddb0225c182c77e85b18b5b28d5d43 WHIRLPOOL 836b7baafc377a2a53df1507ed5da667b30d7551393a77be729ff2ecf89ce6792b818d14807a7f76034046b22daf7ca8e441348832ada85809ebc6c14df7f16b
diff --git a/app-misc/delay/delay-1.6-r2.ebuild b/app-misc/delay/delay-1.6-r2.ebuild
new file mode 100644
index 000000000000..a870b0cf73b0
--- /dev/null
+++ b/app-misc/delay/delay-1.6-r2.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit autotools eutils toolchain-funcs
+
+DESCRIPTION="Sleeplike program that counts down the number of seconds specified"
+HOMEPAGE="http://onegeek.org/~tom/software/delay/"
+SRC_URI="http://onegeek.org/~tom/software/delay/dl/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~mips ppc ppc64 x86 ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos"
+
+RDEPEND="sys-libs/ncurses"
+DEPEND="
+ ${RDEPEND}
+ virtual/pkgconfig
+"
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${P}-headers.patch \
+ "${FILESDIR}"/${P}-tinfo.patch
+
+ mv configure.in configure.ac || die
+
+ eautoreconf
+}
diff --git a/app-misc/delay/files/delay-1.6-headers.patch b/app-misc/delay/files/delay-1.6-headers.patch
new file mode 100644
index 000000000000..5098435d7652
--- /dev/null
+++ b/app-misc/delay/files/delay-1.6-headers.patch
@@ -0,0 +1,10 @@
+--- a/delay.c
++++ b/delay.c
+@@ -17,6 +17,7 @@
+ */
+
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <time.h>
+ #include <sys/time.h>
+ #include <unistd.h>
diff --git a/app-misc/delay/files/delay-1.6-tinfo.patch b/app-misc/delay/files/delay-1.6-tinfo.patch
new file mode 100644
index 000000000000..37a7fb27cdc6
--- /dev/null
+++ b/app-misc/delay/files/delay-1.6-tinfo.patch
@@ -0,0 +1,16 @@
+--- a/configure.in
++++ b/configure.in
+@@ -35,8 +35,11 @@
+ AC_STRUCT_TM
+ AC_STRUCT_TM_GMTOFF
+
+-AC_CHECK_LIB(curses, initscr)
+-AC_CHECK_HEADERS(curses.h)
++PKG_CHECK_MODULES([ncurses],[ncurses],[
++ LIBS="$LIBS $ncurses_LIBS"
++ AC_DEFINE([HAVE_CURSES_H])
++ AC_DEFINE([HAVE_LIBCURSES])],
++ [AC_MSG_ERROR([ncurses not found])])
+
+ AC_OUTPUT(Makefile)
+
diff --git a/app-misc/delay/metadata.xml b/app-misc/delay/metadata.xml
new file mode 100644
index 000000000000..f23b9cae1593
--- /dev/null
+++ b/app-misc/delay/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>shell-tools</herd>
+</pkgmetadata>
diff --git a/app-misc/detachtty/Manifest b/app-misc/detachtty/Manifest
new file mode 100644
index 000000000000..7671c58234be
--- /dev/null
+++ b/app-misc/detachtty/Manifest
@@ -0,0 +1 @@
+DIST detachtty_9.tar.gz 13081 SHA256 bf1d6c2e16d3b83b46d6307c820d4bd02c1fe7b8ff773bd14faef66675957492 SHA512 8ae7edc1a1c7727eb4d32a1a4327932e374ac838b441f34aee99cfe83e922f1d70383ab0aab2299808f28fea6229f5c122a7624b7ff992ab92b9c3f53483d035 WHIRLPOOL c54d6b46b06444c2f39d7d427604afb278f87db6e7981ae5f9f33db1a930ed55210dae038ba550d9b6f4e6aa988ebb0ec897f3448356ea6f1d9e5acfd0bbd10c
diff --git a/app-misc/detachtty/detachtty-9.ebuild b/app-misc/detachtty/detachtty-9.ebuild
new file mode 100644
index 000000000000..dfb5e5a3d9d4
--- /dev/null
+++ b/app-misc/detachtty/detachtty-9.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit toolchain-funcs
+
+MY_P="${P/-/_}"
+
+DESCRIPTION="Attach/detach from interactive processes across the network"
+HOMEPAGE="http://packages.debian.org/unstable/admin/detachtty"
+SRC_URI="mirror://debian/pool/main/d/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc ~sparc x86"
+IUSE=""
+
+src_compile() {
+ emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" || die
+}
+
+src_install() {
+ dobin detachtty attachtty || die
+ doman detachtty.1 || die
+ dosym /usr/share/man/man1/detachtty.1 /usr/share/man/man1/attachtty.1
+ dodoc INSTALL README || die
+}
diff --git a/app-misc/detachtty/metadata.xml b/app-misc/detachtty/metadata.xml
new file mode 100644
index 000000000000..95138c2e6f6c
--- /dev/null
+++ b/app-misc/detachtty/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>shell-tools</herd>
+<herd>common-lisp</herd>
+<longdescription>
+detachtty is a utility that lets you run interactive programs non-interactively.
+Reattaching can be done locally or over the network. detachtty is similar in
+concept to GNU Screen but is better suited toward scrolling interfaces (not
+full-screen, random-access based applications).
+</longdescription>
+</pkgmetadata>
diff --git a/app-misc/detox/Manifest b/app-misc/detox/Manifest
new file mode 100644
index 000000000000..f1c3905a54a9
--- /dev/null
+++ b/app-misc/detox/Manifest
@@ -0,0 +1 @@
+DIST detox-1.2.0.tar.bz2 86118 SHA256 abfad90ee7d3e0fc53ce3b9da3253f9a800cdd92e3f8cc12a19394a7b1dcdbf8 SHA512 48c0060ed0538c26aeba444bf327f1e52ea47d0e696577deeb43304dfb960ee5abe984651948bfc67c51d7f15f9051df2a208acfe53a5778a7471460e87f639a WHIRLPOOL f8169f10e1713e3b2fd3ea736b22d0c024d6698bb2e80c30124bbf70be0afb764d496df5fba4f5b68383327590b2c90dd0ebb2481c0b62859ceb26a820265657
diff --git a/app-misc/detox/detox-1.2.0-r3.ebuild b/app-misc/detox/detox-1.2.0-r3.ebuild
new file mode 100644
index 000000000000..4d5e09afc74e
--- /dev/null
+++ b/app-misc/detox/detox-1.2.0-r3.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils
+
+MY_P="${PN}-${PV/_/-}"
+
+DESCRIPTION="Safely remove spaces and strange characters from filenames"
+HOMEPAGE="http://detox.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 ~hppa ~mips ppc x86 ~amd64-linux ~x86-linux"
+IUSE=""
+
+S="${WORKDIR}"/${MY_P}
+
+RDEPEND="dev-libs/popt"
+DEPEND="${RDEPEND}
+ sys-devel/flex
+ sys-devel/bison"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-parallel.patch
+ "${FILESDIR}"/${P}-LDFLAGS.patch
+ "${FILESDIR}"/${P}-change-default-sequence-to-use-utf8-table.patch
+ "${FILESDIR}"/${P}-install-missing-file.patch
+ "${FILESDIR}"/${P}-format-security.patch
+ )
+
+src_prepare() {
+ sed \
+ -e 's:Fl c Ar:Fl f Ar:g' \
+ -i ${PN}.1 || die
+ epatch "${PATCHES[@]}"
+ sed \
+ -e '/detoxrc.sample/d' \
+ -i Makefile.in || die
+}
+
+src_configure() {
+ econf --with-popt="${EPREFIX}/usr"
+}
diff --git a/app-misc/detox/files/detox-1.2.0-LDFLAGS.patch b/app-misc/detox/files/detox-1.2.0-LDFLAGS.patch
new file mode 100644
index 000000000000..3f0daa088010
--- /dev/null
+++ b/app-misc/detox/files/detox-1.2.0-LDFLAGS.patch
@@ -0,0 +1,18 @@
+https://sourceforge.net/tracker/index.php?func=detail&aid=2166388&group_id=101612&atid=630105
+
+--- Makefile.in 2008-10-14 16:37:22 +0000
++++ Makefile.in 2008-10-14 16:38:17 +0000
+@@ -70,10 +70,10 @@
+ #
+
+ detox: ${detoxOBJS}
+- ${CC} -o detox ${detoxOBJS} ${L_OPT}
++ ${CC} ${LDFLAGS} -o detox ${detoxOBJS} ${L_OPT}
+
+ inline-detox: ${inline-detoxOBJS}
+- ${CC} -o inline-detox ${inline-detoxOBJS} ${L_OPT}
++ ${CC} ${LDFLAGS} -o inline-detox ${inline-detoxOBJS} ${L_OPT}
+
+ #
+ # Special Source Compiles
+
diff --git a/app-misc/detox/files/detox-1.2.0-change-default-sequence-to-use-utf8-table.patch b/app-misc/detox/files/detox-1.2.0-change-default-sequence-to-use-utf8-table.patch
new file mode 100644
index 000000000000..2e54642f45b9
--- /dev/null
+++ b/app-misc/detox/files/detox-1.2.0-change-default-sequence-to-use-utf8-table.patch
@@ -0,0 +1,17 @@
+# Patch from Teemu Likonen <tlikonen@iki.fi>
+# to change the default sequence to use utf8 instead of iso8859-1
+--- detox-1.2.0/detoxrc~ 2006-07-03 19:45:54.000000000 +0300
++++ detox-1.2.0/detoxrc 2009-05-28 15:34:26.497832449 +0300
+@@ -32,10 +32,10 @@
+ #
+
+ #
+-# Basically just ISO8859_1
++# Basically just utf_8
+ #
+ sequence default {
+- iso8859_1;
++ utf_8;
+ safe;
+ wipeup;
+ };
diff --git a/app-misc/detox/files/detox-1.2.0-format-security.patch b/app-misc/detox/files/detox-1.2.0-format-security.patch
new file mode 100644
index 000000000000..c03a98aa046c
--- /dev/null
+++ b/app-misc/detox/files/detox-1.2.0-format-security.patch
@@ -0,0 +1,72 @@
+ parse_options_getopt.c | 8 ++++----
+ parse_options_popt.c | 8 ++++----
+ 2 files changed, 8 insertions(+), 8 deletions(-)
+
+diff --git a/parse_options_getopt.c b/parse_options_getopt.c
+index 1f80966..ea2b266 100644
+--- a/parse_options_getopt.c
++++ b/parse_options_getopt.c
+@@ -98,9 +98,9 @@ struct detox_options *parse_options_getopt(int argc, char **argv)
+ #endif
+ switch (optcode) {
+ case 'h':
+- printf(usage_message);
++ printf("%s", usage_message);
+ printf("\n");
+- printf(help_message);
++ printf("%s", help_message);
+ exit(EXIT_SUCCESS);
+
+ case 'f':
+@@ -138,7 +138,7 @@ struct detox_options *parse_options_getopt(int argc, char **argv)
+ exit(EXIT_SUCCESS);
+
+ case '?':
+- printf(usage_message);
++ printf("%s", usage_message);
+ exit(EXIT_SUCCESS);
+
+ case 0:
+@@ -195,7 +195,7 @@ struct detox_options *parse_options_getopt(int argc, char **argv)
+ }
+ else {
+ #ifndef INLINE_MODE
+- printf(usage_message);
++ printf("%s", usage_message);
+ exit(EXIT_FAILURE);
+ #endif
+ }
+diff --git a/parse_options_popt.c b/parse_options_popt.c
+index 60dad7a..370c3cc 100644
+--- a/parse_options_popt.c
++++ b/parse_options_popt.c
+@@ -94,9 +94,9 @@ struct detox_options *parse_options_popt(int argc, const char **argv)
+ while ((c = poptGetNextOpt(optCon)) >= 0) {
+ switch (c) {
+ case 'h':
+- printf(usage_message);
++ printf("%s", usage_message);
+ printf("\n");
+- printf(help_message);
++ printf("%s", help_message);
+ exit(EXIT_SUCCESS);
+
+ case 'f':
+@@ -142,7 +142,7 @@ struct detox_options *parse_options_popt(int argc, const char **argv)
+ break;
+
+ case '?':
+- printf(usage_message);
++ printf("%s", usage_message);
+ exit(EXIT_SUCCESS);
+
+ }
+@@ -177,7 +177,7 @@ struct detox_options *parse_options_popt(int argc, const char **argv)
+
+ #ifndef INLINE_MODE
+ if (i == 0) {
+- fprintf(stderr, usage_message);
++ fprintf(stderr, "%s", usage_message);
+ exit(EXIT_FAILURE);
+ }
+ #endif
diff --git a/app-misc/detox/files/detox-1.2.0-install-missing-file.patch b/app-misc/detox/files/detox-1.2.0-install-missing-file.patch
new file mode 100644
index 000000000000..97863268bc48
--- /dev/null
+++ b/app-misc/detox/files/detox-1.2.0-install-missing-file.patch
@@ -0,0 +1,18 @@
+# Patch by Nelson A. de Oliveira <naoliv@debian.org>
+#
+# Patch upstream Makefile to install missing safe.tbl (#566785)
+
+--- detox-1.2.0/Makefile.in 2010-06-20 23:41:34.000000000 -0300
++++ detox-1.2.0/Makefile.in 2010-06-20 23:42:34.000000000 -0300
+@@ -147,6 +147,11 @@
+ else \
+ echo "${DESTDIR}${datadir}/detox/unicode.tbl exists, skipping"; \
+ fi
++ @if [ ! -f ${DESTDIR}${datadir}/detox/safe.tbl ]; then \
++ ${INSTALL} -m 644 safe.tbl ${DESTDIR}${datadir}/detox; \
++ else \
++ echo "${DESTDIR}${datadir}/detox/safe.tbl exists, skipping"; \
++ fi
+
+ install-unsafe-config: install-base
+ ${INSTALL} -m 644 detoxrc ${DESTDIR}${sysconfdir}
diff --git a/app-misc/detox/files/detox-1.2.0-parallel.patch b/app-misc/detox/files/detox-1.2.0-parallel.patch
new file mode 100644
index 000000000000..73abd73d61b3
--- /dev/null
+++ b/app-misc/detox/files/detox-1.2.0-parallel.patch
@@ -0,0 +1,29 @@
+https://sourceforge.net/tracker/index.php?func=detail&aid=2166387&group_id=101612&atid=630105
+
+--- Makefile.in 2008-10-14 16:39:34 +0000
++++ Makefile.in 2008-10-14 16:38:51 +0000
+@@ -131,7 +131,7 @@
+ ${INSTALL} -m 644 detox.1 ${DESTDIR}${mandir}/man1
+ ${INSTALL} -m 644 detoxrc.5 detox.tbl.5 ${DESTDIR}${mandir}/man5
+
+-install-safe-config:
++install-safe-config: install-base
+ @if [ ! -f ${DESTDIR}${sysconfdir}/detoxrc ]; then \
+ ${INSTALL} -m 644 detoxrc ${DESTDIR}${sysconfdir}; \
+ else \
+@@ -148,12 +148,12 @@
+ echo "${DESTDIR}${datadir}/detox/unicode.tbl exists, skipping"; \
+ fi
+
+-install-unsafe-config:
++install-unsafe-config: install-base
+ ${INSTALL} -m 644 detoxrc ${DESTDIR}${sysconfdir}
+ ${INSTALL} -m 644 iso8859_1.tbl ${DESTDIR}${datadir}/detox
+ ${INSTALL} -m 644 unicode.tbl ${DESTDIR}${datadir}/detox
+
+-install-sample-config:
++install-sample-config: install-base
+ ${INSTALL} -m 644 detoxrc ${DESTDIR}${sysconfdir}/detoxrc.sample
+ ${INSTALL} -m 644 iso8859_1.tbl ${DESTDIR}${datadir}/detox/iso8859_1.tbl.sample
+ ${INSTALL} -m 644 unicode.tbl ${DESTDIR}${datadir}/detox/unicode.tbl.sample
+
diff --git a/app-misc/detox/metadata.xml b/app-misc/detox/metadata.xml
new file mode 100644
index 000000000000..73c014e4f0b3
--- /dev/null
+++ b/app-misc/detox/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>shell-tools</herd>
+ <upstream>
+ <remote-id type="sourceforge">detox</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/devtodo/Manifest b/app-misc/devtodo/Manifest
new file mode 100644
index 000000000000..1a1c71b0e601
--- /dev/null
+++ b/app-misc/devtodo/Manifest
@@ -0,0 +1 @@
+DIST devtodo-0.1.20.tar.gz 390935 SHA256 379c6ac4499fc97e9676075188f7217e324e7ece3fb6daeda7bf7969c7093e09 SHA512 58cff0455c735af4530fc9321d1eade8272dd5759eeb8a688a641c9be11830b87be116801e3cd1d90a27e070775fa00d7b4d6b3399eba7aad5c752bfda9c28fb WHIRLPOOL f34a354eda2968684c87b5f8586315de6aeafce62ea7859f028b00a28a383dd5b887841cb26c25d549cbf1eb2dad811a8017a65cc4976ba737d5921096274d5b
diff --git a/app-misc/devtodo/devtodo-0.1.20-r3.ebuild b/app-misc/devtodo/devtodo-0.1.20-r3.ebuild
new file mode 100644
index 000000000000..91f007e02f7f
--- /dev/null
+++ b/app-misc/devtodo/devtodo-0.1.20-r3.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+AUTOTOOLS_AUTORECONF=1
+AUTOTOOLS_IN_SOURCE_BUILD=1
+
+inherit autotools-utils bash-completion-r1 eutils flag-o-matic toolchain-funcs
+
+DESCRIPTION="A nice command line todo list for developers"
+HOMEPAGE="http://swapoff.org/DevTodo"
+SRC_URI="http://swapoff.org/files/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE=""
+
+RDEPEND="
+ >=sys-libs/ncurses-5.2
+ >=sys-libs/readline-4.1"
+DEPEND="${RDEPEND}"
+
+DOCS=( AUTHORS ChangeLog QuickStart README doc/scripts.sh doc/scripts.tcsh doc/todorc.example )
+
+PATCHES=(
+ "${FILESDIR}"/${P}-gentoo.diff
+ "${FILESDIR}"/${P}-gcc43.patch
+ "${FILESDIR}"/${P}-bashcom_spaces.patch
+)
+
+src_prepare() {
+ # fix regex.h issue on case-insensitive file-systems #332235
+ sed \
+ -e 's/Regex.h/DTRegex.h/' \
+ -i util/Lexer.h util/Makefile.{am,in} util/Regex.cc || die
+ mv util/{,DT}Regex.h || die
+
+ sed \
+ -e "/^LIBS/s:$: $($(tc-getPKG_CONFIG) --libs ncursesw):g" \
+ -i src/Makefile.am || die
+
+ autotools-utils_src_prepare
+}
+
+src_configure() {
+ replace-flags -O[23] -O1
+
+ local myeconfargs=(
+ --sysconfdir="${EPREFIX}/etc/devtodo"
+ )
+ autotools-utils_src_configure
+}
+
+src_install() {
+ autotools-utils_src_install
+
+ newbashcomp contrib/${PN}.bash-completion ${PN}
+ rm contrib/${PN}.bash-completion || die 'rm failed'
+
+ bashcomp_alias devtodo tda tdd tde tdr todo
+
+ dodoc -r contrib
+}
+
+pkg_postinst() {
+ elog "Because of a conflict with app-misc/tdl, the tdl symbolic link"
+ elog "and manual page have been removed."
+}
diff --git a/app-misc/devtodo/files/devtodo-0.1.20-bashcom_spaces.patch b/app-misc/devtodo/files/devtodo-0.1.20-bashcom_spaces.patch
new file mode 100644
index 000000000000..8567ab4b0562
--- /dev/null
+++ b/app-misc/devtodo/files/devtodo-0.1.20-bashcom_spaces.patch
@@ -0,0 +1,32 @@
+ contrib/devtodo.bash-completion | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/contrib/devtodo.bash-completion b/contrib/devtodo.bash-completion
+index 07139b0..c058dad 100644
+--- a/contrib/devtodo.bash-completion
++++ b/contrib/devtodo.bash-completion
+@@ -15,20 +15,20 @@ _devtodo() {
+ --purge"
+
+ if [[ ${cur} == -* || ${COMP_CWORD} -eq 1 ]] ; then
+- COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
++ COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
+ return 0
+ fi
+
+ case "${prev}" in
+ -p|--priority)
+ COMPREPLY=( $(compgen -W "default veryhigh high medium low verylow" \
+- -- ${cur}) )
++ -- "${cur}") )
+ ;;
+ --database-loaders)
+- COMPREPLY=( $(compgen -W "xml binary" -- ${cur}) )
++ COMPREPLY=( $(compgen -W "xml binary" -- "${cur}") )
+ ;;
+ -l|--link|--*database)
+- COMPREPLY=( $(compgen -f -- ${cur}) )
++ _filedir
+ ;;
+ *)
+ COMPREPLY=()
diff --git a/app-misc/devtodo/files/devtodo-0.1.20-gcc43.patch b/app-misc/devtodo/files/devtodo-0.1.20-gcc43.patch
new file mode 100644
index 000000000000..f9f920545805
--- /dev/null
+++ b/app-misc/devtodo/files/devtodo-0.1.20-gcc43.patch
@@ -0,0 +1,10 @@
+--- devtodo-0.1.20.orig/src/todoterm.cc
++++ devtodo-0.1.20/src/todoterm.cc
+@@ -2,6 +2,7 @@
+ #include "todoterm.h"
+
+ #ifdef USETERMCAP
++#include <cstdlib>
+ #include <iostream>
+ #include <string>
+ #include <stdexcept>
diff --git a/app-misc/devtodo/files/devtodo-0.1.20-gentoo.diff b/app-misc/devtodo/files/devtodo-0.1.20-gentoo.diff
new file mode 100644
index 000000000000..05c36a31880c
--- /dev/null
+++ b/app-misc/devtodo/files/devtodo-0.1.20-gentoo.diff
@@ -0,0 +1,85 @@
+--- devtodo-0.1.20.orig/doc/devtodo.1.in 2004-12-17 10:21:09.135350872 -0500
++++ devtodo-0.1.20/doc/devtodo.1.in 2004-12-17 10:21:34.050210242 -0500
+@@ -20,9 +20,6 @@
+ .TP
+ \fBtdd \fI<indices>\fP\fP
+ Mark the specified items as being done.
+-.TP
+-\fBtdl [\-g \fI<index>\fP] \fI<database>\fP\fP
+-Link the specified devtodo database into the current one, optionally grafting it as a child of the specified index.
+ .SH "DESCRIPTION"
+ .LP
+ \fBtodo\fP is a program aimed specifically at programmers (but usable by anybody at the terminal) to aid in day\-to\-day development.
+@@ -372,6 +369,10 @@
+ .TP
+ \fB~/.todorc\fR
+ User-specific options are specified in this file. Please refer to the section \fBTODORC\fR for more information.
++.SH "BUGS"
++.LP
++Because of a conflict with app-misc/tdl, the tdl symbolic link and the tdl manual page have been removed.
++See \fIhttp://bugs.gentoo.org/show_bug.cgi?id=55371\fR for more information.
+ .SH "AUTHORS"
+ .LP
+ Alec Thomas \fI<alec@swapoff.org>\fR
+--- devtodo-0.1.20.orig/doc/Makefile.am 2004-12-17 10:21:09.135350872 -0500
++++ devtodo-0.1.20/doc/Makefile.am 2004-12-17 10:21:34.050210242 -0500
+@@ -1,5 +1,5 @@
+ man_MANS=devtodo.1
+-manlinks=tda tdr tdd tde tdl todo
++manlinks=tda tdr tdd tde todo
+
+ install-data-local:
+ mkdir -p $(DESTDIR)$(mandir)/man1
+--- devtodo-0.1.20.orig/src/TodoDB.cc 2004-12-17 10:21:09.136350706 -0500
++++ devtodo-0.1.20/src/TodoDB.cc 2004-12-17 10:21:34.054209577 -0500
+@@ -949,7 +948,11 @@
+ if (out.bad())
+ throw exception("couldn't open TODO for generation");
+
+- if (titleText != "") wraptext(out, titleText, 0, options.columns);
++ if (titleText != "") {
++ wraptext(out, titleText, 0, options.columns);
++ out << endl << endl;
++ }
++
+ if (options.verbose > 1)
+ cout << "todo: generating using format '" << options.format["verbose-generated"] << "'" << endl;
+ filterView();
+--- devtodo-0.1.20/contrib/devtodo.bash-completion {cset 9b4d9f02-fdb7-4641-b07f-7359b794d6b0}
++++ devtodo-0.1.20/contrib/devtodo.bash-completion {local clone}
+@@ -35,6 +35,6 @@ _devtodo() {
+ ;;
+ esac
+ }
+-complete -o filenames -F _devtodo devtodo todo tda tde tdr tdd tdl
++complete -o filenames -F _devtodo devtodo todo tda tde tdr tdd
+
+ # vim: set ft=sh tw=80 sw=4 et :
+--- devtodo-0.1.20/src/support.cc {cset 5f5bd9cb-18fb-4046-bff5-4f3dbd781e47}
++++ devtodo-0.1.20/src/support.cc {local clone}
+@@ -289,11 +289,10 @@ enum { Help = -100, Remove, Version, Tit
+ << "Where <arguments> can be any of the following:" << endl;
+ args.displayHelp(cout, options.columns);
+ cout << endl
+- << "In addition, there are five convenience symlinks. These are 'tda', 'tdr'," << endl
+- << "'tdd', 'tde', and 'tdl'. For 'tde', 'tdd' and 'tdr' supply an index to edit," << endl
++ << "In addition, there are four convenience symlinks. These are 'tda', 'tdr'," << endl
++ << "'tdd', and 'tde'. For 'tde', 'tdd' and 'tdr' supply an index to edit," << endl
+ << "mark done and remove respectively. For 'tda' supply the text of the todo item" << endl
+- << "item and optionally the priority. For 'tdl' supply the path to another todo" << endl
+- << "file to link in to the current todo file." << endl
++ << "item and optionally the priority." << endl
+ << "eg. tde 1" << endl;
+ exit(0);
+ break;
+--- devtodo-0.1.20/src/Makefile.am 2007-09-17 12:12:55.000000000 +0200
++++ devtodo-0.1.20/src/Makefile.am 2007-09-17 12:13:43.000000000 +0200
+@@ -1,7 +1,7 @@
+ bin_PROGRAMS=devtodo
+ devtodo_SOURCES=Todo.cc Todo.h TodoDB.cc TodoDB.h support.cc support.h \
+ main.cc todoterm.cc todoterm.h Loaders.cc Loaders.h todorl.h
+-binlinks=tda tdr tdd tdl tde todo
++binlinks=tda tdr tdd tde todo
+
+ devtodo_LDADD=../util/libutil.la
+ INCLUDES=-I../util
diff --git a/app-misc/devtodo/files/devtodo.bash-completion b/app-misc/devtodo/files/devtodo.bash-completion
new file mode 100644
index 000000000000..ae2dacddc5aa
--- /dev/null
+++ b/app-misc/devtodo/files/devtodo.bash-completion
@@ -0,0 +1,44 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+# bash command-line completion for devtodo
+# Author: Aaron Walker <ka0ttic@gentoo.org>
+
+_devtodo() {
+ local cur prev opts
+ COMPREPLY=()
+ cur="${COMP_WORDS[COMP_CWORD]}"
+ prev="${COMP_WORDS[COMP_CWORD-1]}"
+ opts="-v --verbose -a --add -g --graft -l --link -R --reparent
+ -p --priority -e --edit --remove -d --done -D --not-done
+ --global-database -G --global --database -T --TODO -A --all
+ -f --filter --colour --force-colour --mono --help --version
+ --title --date-format --format --use-format --sort --paranoid
+ --database-loaders --backup -s --summary -c --comment --timeout
+ --purge"
+
+ if [[ "${cur}" == -* || ${COMP_CWORD} -eq 1 ]] ; then
+ COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
+ return 0
+ fi
+
+ case "${prev}" in
+ -p|--priority)
+ COMPREPLY=( $(compgen -W "default veryhigh high medium low verylow" \
+ -- ${cur}) )
+ ;;
+ --database-loaders)
+ COMPREPLY=( $(compgen -W "xml binary" -- ${cur}) )
+ ;;
+ -l|--link|--*database)
+ COMPREPLY=( $(compgen -f -- ${cur}) )
+ ;;
+ *)
+ COMPREPLY=()
+ ;;
+ esac
+}
+complete -o filenames -F _devtodo devtodo todo tda tde tdr tdd
+
+# vim: set ft=sh tw=80 sw=4 et :
diff --git a/app-misc/devtodo/metadata.xml b/app-misc/devtodo/metadata.xml
new file mode 100644
index 000000000000..f23b9cae1593
--- /dev/null
+++ b/app-misc/devtodo/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>shell-tools</herd>
+</pkgmetadata>
diff --git a/app-misc/digitemp/Manifest b/app-misc/digitemp/Manifest
new file mode 100644
index 000000000000..83c5ddf265e7
--- /dev/null
+++ b/app-misc/digitemp/Manifest
@@ -0,0 +1 @@
+DIST digitemp-3.5.0.tar.gz 267947 SHA256 e185ef9b84501b28568160eb5a5cc3b98b72c0791aff9c128ff6d0cd23b711e8 SHA512 59055a97ae35cdc86bb893a755975b688d3be9185e717f5da0024d664e6c93dd5a7f10f1230772c3bc1bc76a088392da083ba63d28e054727b9f68ce31de64d3 WHIRLPOOL d10bda164dee77a8f0c90330a2799a1f37d4c2f8b8c9709df1fa91939ccbc93f660c5184dadbb52f9d5cf80acf7fbd018e93d7f46283e5a5a6195bb257e4928f
diff --git a/app-misc/digitemp/digitemp-3.5.0-r2.ebuild b/app-misc/digitemp/digitemp-3.5.0-r2.ebuild
new file mode 100644
index 000000000000..a07c5fe338db
--- /dev/null
+++ b/app-misc/digitemp/digitemp-3.5.0-r2.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit toolchain-funcs
+
+DESCRIPTION="Temperature logging and reporting using Dallas Semiconductor's iButtons and 1-Wire protocol"
+HOMEPAGE="http://www.digitemp.com/ http://www.ibutton.com/"
+SRC_URI="http://www.digitemp.com/software/linux/${P}.tar.gz"
+
+IUSE="ds9097 ds9097u ds2490"
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="amd64 x86"
+
+DEPEND="ds2490? ( virtual/libusb:0 )"
+
+targets() {
+ # default is to compile to the ds9097u.
+ if ! ( use ds9097 || use ds9097u || use ds2490 ); then
+ echo ds9097u
+ fi
+ for target in ds9097 ds9097u ds2490; do
+ if use ${target}; then
+ echo ${target}
+ fi
+ done
+}
+
+src_prepare() {
+ sed -i -e "/^CFLAGS/s:-O2:${CFLAGS}:" \
+ -e "/^LIBS/s:=:= ${LDFLAGS}:" Makefile
+ # default is to compile to the ds9097u.
+ if ! ( use ds9097 || use ds9097u || use ds2490 ); then
+ ewarn "If you don't choose a component to install, we default to ds9097u"
+ fi
+}
+
+src_compile() {
+ local targets=$(targets)
+
+ for target in $targets; do
+ emake clean
+ emake CC="$(tc-getCC)" LOCK="no" ${target} || die "emake ${target} failed"
+ done
+}
+
+src_install() {
+ for target in $(echo $(targets) | tr '[:lower:]' '[:upper:]'); do
+ dobin digitemp_${target} && \
+ dosym digitemp_${target} /usr/bin/digitemp
+ done
+
+ if [[ $(targets|wc -l) -ge 1 ]]; then
+ echo
+ ewarn "/usr/bin/digitemp has been symlinked to /usr/bin/digitemp_${target}"
+ ewarn "If you want to access the others, they are available at /usr/bin/digitemp_*"
+ echo
+ fi
+
+ dodoc README FAQ TODO
+
+ for example in perl python rrdb; do
+ insinto "/usr/share/doc/${PF}/${example}_examples"
+ doins -r ${example}/*
+ done
+}
+
+pkg_postinst() {
+ echo
+ elog "Examples of using digitemp with python, perl, and rrdtool are"
+ elog "located in /usr/share/doc/${PF}/"
+ echo
+}
diff --git a/app-misc/digitemp/metadata.xml b/app-misc/digitemp/metadata.xml
new file mode 100644
index 000000000000..a1eaad9f69af
--- /dev/null
+++ b/app-misc/digitemp/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>
+ <email>wschlich@gentoo.org</email>
+ <name>Wolfram Schlich</name>
+ <description>Primary maintainer</description>
+</maintainer>
+<longdescription>
+DigiTemp is a simple to use program for reading values from 1-wire devices. Its
+main use is for reading temperature sensors, but it also reads counters, and
+understands the 1-wire hubs with devices on different branches of the network.
+DigiTemp now supports the following 1-wire temperature sensors: DS18S20 (and
+DS1820), DS18B20, DS1822, the DS2438 Smart Battery Monitor, DS2422 and DS2423
+Counters, DS2409 MicroLAN Coupler (used in 1-wire hubs), and the AAG TAI-8540
+humidity sensor.
+</longdescription>
+<use>
+ <flag name='ds2490'>Build support for the ds2490 sensor</flag>
+ <flag name='ds9097'>Build support for the ds9097 sensor</flag>
+ <flag name='ds9097u'>Build support for the ds9097u sensor</flag>
+</use>
+</pkgmetadata>
diff --git a/app-misc/dnetc/Manifest b/app-misc/dnetc/Manifest
new file mode 100644
index 000000000000..dae4da3887de
--- /dev/null
+++ b/app-misc/dnetc/Manifest
@@ -0,0 +1,12 @@
+DIST dnetc496-linux-amd64-elf.tar.gz 481070 SHA256 62a53e583beef2728062fc3cda172faa56540cd48458c37a102d2f9f818ce612 SHA512 288397a0508735f5ef774915e8981b42be412e9c9c257746114fd05dc966d93380dc2d1021eeb995964e76df2fa99daed74ba37a902773fe7bee597c4ec452ef WHIRLPOOL 56838a94a478eb781cdde25438b39c0aee947035b4cf2c89b9bd442239b3982cd483385ed1611e94267f8f36ef302805d8ceb902494f341de070e93e04876574
+DIST dnetc496-linux-x86-elf-uclibc.tar.gz 255750 SHA256 14e07c30e88f2817ed2f11373e85cfce18328e4fa79a3d4717f0ffd2b186af67 SHA512 b849197c015c2c5750e57c2a4d8e3543bed70bdef552d98c889f9af626866fcc932dc716092fa6822400a10f1f051f5b30282531b9af8b3059b0b1ff201eb005 WHIRLPOOL a25aa6696c201f3399a9a644ff4a442a640f880ed8fe71523dd27e91497e4ed2ad8a2ed30b95bd2b0d4a2eefb043c9d9fac0df8f9102cbf251030fab635c637d
+DIST dnetc504-linux-x86-elf-uclibc.tar.gz 261208 SHA256 084d0041a63efb952e35673c6b596105c5a1ba98a8ea9e942863e89f0552f3bd SHA512 37fd5dbc82cf30bd0934b1839e540bf872e16698359dc7bfd726ab68664bd7c496ffb907e612d13910ce31a228e2e00b2baf77e8235e278e5b4bc4af40dcd9f9 WHIRLPOOL 77ea716391aac747f3e0e4473b80853807985639bd8087d82bc920b049b83b401fae05105cb9131809d1f6dc2cd9ec28b6e43f7323e7a20f7c31c567d91ca8a3
+DIST dnetc509-linux-amd64-elf.tar.gz 887739 SHA256 97799e6206c57f768bd2f4e62996273b066c31d400ab42c8d50a9a9fbffc0278 SHA512 b4c9796c452c3c3c9afdad085fc5c48695973d0ef633792832a11851338cb55d6d4ff7d19cbec1cdbdbd6a43f72926bed970f6d70b5605c2b7a645bf369a43db WHIRLPOOL 5d65cb8c308084ca7ae1739c6254b6d0c5cd7d1cc27ac3e70a61862f09ed64aa9ed0de6f1b7f575701784cca36cb7cb22deb296c0247a66186aba16797e81d81
+DIST dnetc509-linux-x86-elf-uclibc.tar.gz 667536 SHA256 85fd690317c1546a6698968b71a47c07308c120b7d242857d84a5a0df98461ef SHA512 58288cdb1ea5c7b1ec57073b275c42f3025eeca57be0c2a6d3b387c6c562ed4f34e236b824f0f13f49144cdf51939e80c6ff7615db8ac77936819c7b3d0b2874 WHIRLPOOL b9cab2388f32b8f1da5bf06e3f1e9c7190ae4ca691e684a7cce8d572d20d25d0c17a21a96412fe05a4528a40535d042e6d2725675e0463d4a7bbbfcc8de64207
+DIST dnetc516-linux-sparc-v7.tar.gz 881743 SHA256 39441cf0c7b21cd1af1636698eb96769ffc46bc68331d5c4975d8485cfb8c352 SHA512 d70410773a14fe7237e0c542f45ab69f840dfd484622923da3abf723ffacf82bf94ecaa1d2089ab9326121ed4b3562ace7b267ed57bbf2c0971793b25fd30958 WHIRLPOOL 8f9628bb3521770044e4ecc33c4d7a5deb3602e1727d465eb0a8ffd95eff6908f97f174ecb852bf6f54a1ea83bf9185d1a97e8f9778a17fc2a60b769cda0e9c1
+DIST dnetc517-linux-amd64.tar.gz 645416 SHA256 5a2c7cf2ef50c5b895cb43751d94148523e0cc8283f3663601b10a7f83ddce38 SHA512 b22b59af2352a95156ea4b584f48d82e4b64080130d922bbb1797b2c62f7c401ec1263f2f0bd57103134f8fc76ef41a7e09d7da083ef0b46c44be4239005c21b WHIRLPOOL 4ec29bdf6a5d3dd1ba394ce12d6da8052577465f93e6f3ab4069ad6b51fe08e5aebcc3f108ee561a0a3319e8335a45e971fbbacfa67eb353a5664259acf56882
+DIST dnetc517-linux-x86-elf-uclibc.tar.gz 676398 SHA256 3245bb10705383983e9764340688ffe0fd74cbe69810ae3c9ef426b8df81e067 SHA512 7b56fa8c6819fd7060612c13c8fb17ca1e949abbca965b7599bb072751acd1d0e95f1a90fb67172c6d406b54e0c52549582489802e538670bdb6d12f8354e2a7 WHIRLPOOL 6906d777329615952b0d5c91730666089161e02a71d3a91cb5e9ea4364cce85047b58859f2cf6612a1b922745652a1fd0af0cb22f0e72ef47e9eab162d945489
+DIST dnetc518-linux-amd64.tar.gz 644073 SHA256 bc3f802079f07986b9b294834b5f97bdb43b061b17cc5e9ba9d22189896beda7 SHA512 95ad5144fbb1356806f6fd6f499891b36a0ea7c75794ada40cba9146c830adfd20044d8d3f3689186c9317b477aa95a6aae5d711c19534059b06b5d33367d785 WHIRLPOOL 134b479568d7feb05f74462155b72eb5a32f903a7b91dfa2587c845770583f6f62297356cb4514b238397729af8fb38a3fde4fcf6228953606e0b3f61389f9ab
+DIST dnetc518-linux-ppc-uclibc.tar.gz 717889 SHA256 2c8eda515d7976353fd3e3e6f11ac36b87af3158d0c4e472c1b58bde82182dd9 SHA512 c0d7592b1a5c98001355e71a1d31bc67bfef6b4c5f73c8e200717424ae4ea5c62558c413753e079f4e0b6bacdb921b395f46c168673e82049dcb69a0512d11eb WHIRLPOOL 39f0b46e799c8dfff713406c1991e4e729b74932e0177ed5808c3d68a8ec56b9fdab4aa931315e3b5372e2bcc3356d38e9df74f78beb68ee7da082762a22e089
+DIST dnetc519-linux-x86-elf-uclibc.tar.gz 676925 SHA256 185790bc3a1c0eb0a00e1aadf119b531ced6f931ef47bf134d6092fc55d096f0 SHA512 87519867e8e993d7b6520d73133196d34391d0694d8d8bbc372bac4e0b21ceb1a22fcd000bd2f29841695ee7232c4584eb1b19a690f723320df023c52a581395 WHIRLPOOL 873e329bba87122c2180d44a6df1a7ee50a2f1edcd7d631a9c0c5db0aa294ba936bf1aa945171d7962cc9455a08003ca946cf307f010c8cda0b5deeda8600993
+DIST dnetc519b-linux-amd64.tar.gz 648333 SHA256 ed6535ffea6c2fb627f6957559a8b27a48f785ac1678239a456194edf5e25354 SHA512 ea7899772ee8c5fbfbe96b6ec69b1a3237fe5ae96b17bb7e11e387fb833b471f3cce8809cf3c9987dfe33c7ca7082db560c36898094ace3e547077b7a5afc324 WHIRLPOOL b3d91208a9634b837f0e369a467bcd829770d4af7c18e1b0fefbb469c45574c6f09cdb0431ee35c7d00f2e20dd95a53561a262586b9be98d687531d8ad8c105a
diff --git a/app-misc/dnetc/dnetc-2.9011.496-r1.ebuild b/app-misc/dnetc/dnetc-2.9011.496-r1.ebuild
new file mode 100644
index 000000000000..53b45aacb85c
--- /dev/null
+++ b/app-misc/dnetc/dnetc-2.9011.496-r1.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit user
+
+MAJ_PV=${PV:0:6}
+MIN_PV=${PV:7:9}
+
+DESCRIPTION="distributed.net client"
+HOMEPAGE="http://www.distributed.net"
+SRC_URI="x86? ( http://http.distributed.net/pub/dcti/v${MAJ_PV}/dnetc${MIN_PV}-linux-x86-elf-uclibc.tar.gz )
+ amd64? ( http://http.distributed.net/pub/dcti/v${MAJ_PV}/dnetc${MIN_PV}-linux-amd64-elf.tar.gz )"
+
+LICENSE="distributed.net GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+RESTRICT="mirror"
+
+DEPEND=""
+RDEPEND="net-dns/bind-tools"
+
+QA_PRESTRIPPED="opt/distributed.net/dnetc"
+
+if use amd64; then
+ S="${WORKDIR}/dnetc${MIN_PV}-linux-amd64-elf"
+elif use x86; then
+ S="${WORKDIR}/dnetc${MIN_PV}-linux-x86-elf-uclibc"
+fi
+
+src_install() {
+ exeinto /opt/distributed.net
+ doexe dnetc
+
+ doman dnetc.1
+ dodoc docs/CHANGES.txt docs/dnetc.txt docs/readme.*
+
+ newinitd "${FILESDIR}"/dnetc.initd dnetc
+ newconfd "${FILESDIR}"/dnetc.confd dnetc
+}
+
+pkg_preinst() {
+ if [ -e /opt/distributed.net/dnetc ] && [ -e /etc/init.d/dnetc ]; then
+ einfo "flushing old buffers"
+ source /etc/conf.d/dnetc
+
+ if [ -e /opt/distributed.net/dnetc.ini ]; then
+ # use ini file
+ /opt/distributed.net/dnetc -quiet -ini /opt/distributed.net/dnetc.ini -flush
+ elif [ ! -e /opt/distributed.net/dnetc.ini ] && [ ! -z ${EMAIL} ]; then
+ # email adress from config
+ /opt/distributed.net/dnetc -quiet -flush -e ${EMAIL}
+ fi
+
+ einfo "removing old buffer files"
+ rm -f /opt/distributed.net/buff*
+ fi
+
+ enewgroup dnetc
+ enewuser dnetc -1 -1 /opt/distributed.net dnetc
+}
+
+pkg_postinst() {
+ chown -Rf dnetc:dnetc /opt/distributed.net
+ chmod 0555 /opt/distributed.net/dnetc
+
+ elog "To run distributed.net client in the background at boot:"
+ elog " rc-update add dnetc default"
+ elog ""
+ elog "Either configure your email address in /etc/conf.d/dnetc"
+ elog "or create the configuration file /opt/distributed.net/dnetc.ini"
+}
+
+pkg_postrm() {
+ if [ -d /opt/distributed.net ]; then
+ elog "All files has not been removed from /opt/distributed.net"
+ fi
+}
diff --git a/app-misc/dnetc/dnetc-2.9015.504.ebuild b/app-misc/dnetc/dnetc-2.9015.504.ebuild
new file mode 100644
index 000000000000..4ff8b2c5e557
--- /dev/null
+++ b/app-misc/dnetc/dnetc-2.9015.504.ebuild
@@ -0,0 +1,93 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit user versionator linux-info
+
+MAJ_PV="$(get_major_version).$(get_version_component_range 2)"
+MIN_PV="$(get_version_component_range 3)"
+
+DESCRIPTION="distributed.net client"
+HOMEPAGE="http://www.distributed.net"
+SRC_URI="http://http.distributed.net/pub/dcti/v${MAJ_PV}/dnetc${MIN_PV}-linux-x86-elf-uclibc.tar.gz"
+
+LICENSE="distributed.net GPL-2"
+SLOT="0"
+KEYWORDS="-* x86"
+RESTRICT="mirror"
+
+IUSE=""
+DEPEND=""
+RDEPEND=""
+
+QA_PRESTRIPPED="opt/distributed.net/dnetc"
+
+S="${WORKDIR}/dnetc${MIN_PV}-linux-x86-elf-uclibc"
+
+pkg_setup() {
+ local CONFIG_CHECK="~SYSVIPC"
+ local WARNING_SYSVIPC="CONFIG_SYSVIPC:\tis not set (required for dnetc)"
+ check_extra_config
+ echo
+}
+
+pkg_preinst() {
+ enewgroup dnetc
+ enewuser dnetc -1 -1 /opt/distributed.net dnetc
+ if [ -e /opt/distributed.net/dnetc ] && [ -e /etc/init.d/dnetc ]; then
+ ebegin "Flushing old buffers"
+ source /etc/conf.d/dnetc
+
+ if [ -e /etc/init.d/dnetc ] ; then
+ /etc/init.d/dnetc flush
+ local flushed=${?}
+ fi
+
+ if [ ${flushed} -eq 0 ] ; then
+ true
+ elif [ -e /opt/distributed.net/dnetc.ini ]; then
+ # use ini file
+ /opt/distributed.net/dnetc -quiet -ini /opt/distributed.net/dnetc.ini -flush
+ elif [ ! -e /opt/distributed.net/dnetc.ini ] && [ ! -z ${EMAIL} ]; then
+ # email adress from config
+ /opt/distributed.net/dnetc -quiet -flush -e ${EMAIL}
+ fi
+
+ eend ${?}
+ fi
+}
+
+src_install() {
+ newinitd "${FILESDIR}"/dnetc.initd dnetc
+ newconfd "${FILESDIR}"/dnetc.confd dnetc
+
+ local ownopts="--mode=0555 --group=dnetc --owner=dnetc"
+
+ diropts ${ownopts}
+ dodir /opt/distributed.net
+
+ exeopts ${ownopts}
+ exeinto /opt/distributed.net
+ doexe dnetc
+
+ doman dnetc.1
+ dodoc docs/CHANGES.txt docs/dnetc.txt docs/readme.*
+
+ diropts ${ownopts/0555/0755}
+ dodir /var/spool/dnetc
+}
+
+pkg_postinst() {
+ einfo "To run distributed.net client in the background at boot:"
+ einfo " rc-update add dnetc default"
+ einfo
+ einfo "Either configure your email address in /etc/conf.d/dnetc"
+ einfo "or create the configuration file /opt/distributed.net/dnetc.ini"
+}
+
+pkg_postrm() {
+ if [ -d /opt/distributed.net ]; then
+ einfo "All files has not been removed from /opt/distributed.net"
+ einfo "Probably old init file and/or buffer files"
+ fi
+}
diff --git a/app-misc/dnetc/dnetc-2.9103.509.ebuild b/app-misc/dnetc/dnetc-2.9103.509.ebuild
new file mode 100644
index 000000000000..a82c2d1fec13
--- /dev/null
+++ b/app-misc/dnetc/dnetc-2.9103.509.ebuild
@@ -0,0 +1,86 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=2
+inherit user
+
+MAJ_PV=${PV:0:6}
+MIN_PV=${PV:7:9}
+
+DESCRIPTION="distributed.net client"
+HOMEPAGE="http://www.distributed.net"
+SRC_URI="x86? ( http://http.distributed.net/pub/dcti/v${MAJ_PV}/dnetc${MIN_PV}-linux-x86-elf-uclibc.tar.gz )
+ amd64? ( http://http.distributed.net/pub/dcti/v${MAJ_PV}/dnetc${MIN_PV}-linux-amd64-elf.tar.gz )"
+
+LICENSE="distributed.net GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+RESTRICT="mirror"
+
+DEPEND=""
+RDEPEND="net-dns/bind-tools"
+
+QA_PRESTRIPPED="opt/distributed.net/dnetc"
+
+S=${WORKDIR}/dnetc
+
+src_prepare() {
+ if use amd64; then
+ mv dnetc${MIN_PV}-linux-amd64-elf dnetc
+ elif use x86; then
+ mv dnetc${MIN_PV}-linux-x86-elf-uclibc dnetc
+ fi
+}
+
+src_install() {
+ exeinto /opt/distributed.net
+ doexe dnetc
+
+ doman dnetc.1
+ dodoc docs/CHANGES.txt docs/dnetc.txt docs/readme.*
+
+ newinitd "${FILESDIR}"/dnetc.initd dnetc
+ newconfd "${FILESDIR}"/dnetc.confd dnetc
+
+ keepdir /var/spool/dnetc
+}
+
+pkg_preinst() {
+ if [ -e /opt/distributed.net/dnetc ] && [ -e /etc/init.d/dnetc ]; then
+ einfo "flushing old buffers"
+ source /etc/conf.d/dnetc
+
+ if [ -e /opt/distributed.net/dnetc.ini ]; then
+ # use ini file
+ /opt/distributed.net/dnetc -quiet -ini /opt/distributed.net/dnetc.ini -flush
+ elif [ ! -e /opt/distributed.net/dnetc.ini ] && [ ! -z ${EMAIL} ]; then
+ # email adress from config
+ /opt/distributed.net/dnetc -quiet -flush -e ${EMAIL}
+ fi
+
+ einfo "removing old buffer files"
+ rm -f /opt/distributed.net/buff*
+ fi
+
+ enewgroup dnetc
+ enewuser dnetc -1 -1 /opt/distributed.net dnetc
+}
+
+pkg_postinst() {
+ chown -Rf dnetc:dnetc /opt/distributed.net
+ chmod 0555 /opt/distributed.net/dnetc
+
+ elog "To run distributed.net client in the background at boot:"
+ elog " rc-update add dnetc default"
+ elog ""
+ elog "Either configure your email address in /etc/conf.d/dnetc"
+ elog "or create the configuration file /opt/distributed.net/dnetc.ini"
+}
+
+pkg_postrm() {
+ if [ -d /opt/distributed.net ]; then
+ elog "All files has not been removed from /opt/distributed.net"
+ fi
+}
diff --git a/app-misc/dnetc/dnetc-2.9107.516.ebuild b/app-misc/dnetc/dnetc-2.9107.516.ebuild
new file mode 100644
index 000000000000..924070a6dd65
--- /dev/null
+++ b/app-misc/dnetc/dnetc-2.9107.516.ebuild
@@ -0,0 +1,94 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=2
+inherit user
+
+MAJ_PV=${PV:0:6}
+MIN_PV=${PV:7:9}
+
+DESCRIPTION="distributed.net client"
+HOMEPAGE="http://www.distributed.net"
+#SRC_URI_x86="x86? ( http://http.distributed.net/pub/dcti/v${MAJ_PV}/dnetc${MIN_PV}-linux-x86-elf-uclibc.tar.gz )"
+#SRC_URI_amd64="amd64? ( http://http.distributed.net/pub/dcti/v${MAJ_PV}/dnetc${MIN_PV}-linux-amd64.tar.gz )"
+#SRC_URI_ppc="ppc? ( http://http.distributed.net/pub/dcti/v${MAJ_PV}/dnetc${MIN_PV}-linux-ppc-uclibc.tar.gz )"
+SRC_URI_sparc="sparc? ( http://http.distributed.net/pub/dcti/v${MAJ_PV}/dnetc${MIN_PV}-linux-sparc-v7.tar.gz )"
+SRC_URI="${SRC_URI_amd64} ${SRC_URI_ppc} ${SRC_URI_x86} ${SRC_URI_sparc}"
+
+LICENSE="distributed.net GPL-2"
+SLOT="0"
+KEYWORDS="~sparc" # x86,amd64,ppc not available for this version
+IUSE=""
+RESTRICT="mirror"
+
+DEPEND=""
+RDEPEND="net-dns/bind-tools"
+
+QA_PRESTRIPPED="opt/distributed.net/dnetc"
+
+S=${WORKDIR}/dnetc
+
+src_prepare() {
+ binname=""
+ if use amd64; then
+ binname=dnetc${MIN_PV}-linux-amd64
+ elif use x86; then
+ binname=dnetc${MIN_PV}-linux-x86-elf-uclibc
+ elif use ppc; then
+ binname=dnetc${MIN_PV}-linux-ppc-elf-uclibc
+ fi
+ [[ -z "${binname}" ]] && die "Name of dnetc binary for this platform undefined"
+ mv "${binname}" dnetc || die "$binname binary is missing"
+}
+
+src_install() {
+ exeinto /opt/distributed.net
+ doexe dnetc
+
+ doman dnetc.1
+ dodoc docs/CHANGES.txt docs/dnetc.txt docs/readme.*
+
+ newinitd "${FILESDIR}"/dnetc.initd dnetc
+ newconfd "${FILESDIR}"/dnetc.confd dnetc
+
+ keepdir /var/spool/dnetc
+}
+
+pkg_preinst() {
+ if [ -e /opt/distributed.net/dnetc ] && [ -e /etc/init.d/dnetc ]; then
+ einfo "flushing old buffers"
+ source /etc/conf.d/dnetc
+
+ if [ -e /opt/distributed.net/dnetc.ini ]; then
+ # use ini file
+ /opt/distributed.net/dnetc -quiet -ini /opt/distributed.net/dnetc.ini -flush
+ elif [ ! -e /opt/distributed.net/dnetc.ini ] && [ ! -z ${EMAIL} ]; then
+ # email adress from config
+ /opt/distributed.net/dnetc -quiet -flush -e ${EMAIL}
+ fi
+
+ einfo "removing old buffer files"
+ rm -f /opt/distributed.net/buff*
+ fi
+
+ enewgroup dnetc
+ enewuser dnetc -1 -1 /opt/distributed.net dnetc
+}
+
+pkg_postinst() {
+ chown -Rf dnetc:dnetc /opt/distributed.net
+ chmod 0555 /opt/distributed.net/dnetc
+
+ elog "To run distributed.net client in the background at boot:"
+ elog " rc-update add dnetc default"
+ elog ""
+ elog "Either configure your email address in /etc/conf.d/dnetc"
+ elog "or create the configuration file /opt/distributed.net/dnetc.ini"
+}
+
+pkg_postrm() {
+ if [ -d /opt/distributed.net ]; then
+ elog "All files has not been removed from /opt/distributed.net"
+ fi
+}
diff --git a/app-misc/dnetc/dnetc-2.9108.517.ebuild b/app-misc/dnetc/dnetc-2.9108.517.ebuild
new file mode 100644
index 000000000000..c423ec2cb9ba
--- /dev/null
+++ b/app-misc/dnetc/dnetc-2.9108.517.ebuild
@@ -0,0 +1,94 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=2
+inherit user
+
+MAJ_PV=${PV:0:6}
+MIN_PV=${PV:7:9}
+
+DESCRIPTION="distributed.net client"
+HOMEPAGE="http://www.distributed.net"
+SRC_URI_x86="x86? ( http://http.distributed.net/pub/dcti/v${MAJ_PV}/dnetc${MIN_PV}-linux-x86-elf-uclibc.tar.gz )"
+SRC_URI_amd64="amd64? ( http://http.distributed.net/pub/dcti/v${MAJ_PV}/dnetc${MIN_PV}-linux-amd64.tar.gz )"
+#SRC_URI_ppc="ppc? ( http://http.distributed.net/pub/dcti/v${MAJ_PV}/dnetc${MIN_PV}-linux-ppc-uclibc.tar.gz )"
+#SRC_URI_sparc="sparc? ( http://http.distributed.net/pub/dcti/v${MAJ_PV}/dnetc${MIN_PV}-linux-sparc-v7.tar.gz )"
+SRC_URI="${SRC_URI_amd64} ${SRC_URI_ppc} ${SRC_URI_x86} ${SRC_URI_sparc}"
+
+LICENSE="distributed.net GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86" # ppc not available for this version
+IUSE=""
+RESTRICT="mirror"
+
+DEPEND=""
+RDEPEND="net-dns/bind-tools"
+
+QA_PRESTRIPPED="opt/distributed.net/dnetc"
+
+S=${WORKDIR}/dnetc
+
+src_prepare() {
+ binname=""
+ if use amd64; then
+ binname=dnetc${MIN_PV}-linux-amd64
+ elif use x86; then
+ binname=dnetc${MIN_PV}-linux-x86-elf-uclibc
+ elif use ppc; then
+ binname=dnetc${MIN_PV}-linux-ppc-elf-uclibc
+ fi
+ [[ -z "${binname}" ]] && die "Name of dnetc binary for this platform undefined"
+ mv "${binname}" dnetc || die "$binname binary is missing"
+}
+
+src_install() {
+ exeinto /opt/distributed.net
+ doexe dnetc
+
+ doman dnetc.1
+ dodoc docs/CHANGES.txt docs/dnetc.txt docs/readme.*
+
+ newinitd "${FILESDIR}"/dnetc.initd dnetc
+ newconfd "${FILESDIR}"/dnetc.confd dnetc
+
+ keepdir /var/spool/dnetc
+}
+
+pkg_preinst() {
+ if [ -e /opt/distributed.net/dnetc ] && [ -e /etc/init.d/dnetc ]; then
+ einfo "flushing old buffers"
+ source /etc/conf.d/dnetc
+
+ if [ -e /opt/distributed.net/dnetc.ini ]; then
+ # use ini file
+ /opt/distributed.net/dnetc -quiet -ini /opt/distributed.net/dnetc.ini -flush
+ elif [ ! -e /opt/distributed.net/dnetc.ini ] && [ ! -z ${EMAIL} ]; then
+ # email adress from config
+ /opt/distributed.net/dnetc -quiet -flush -e ${EMAIL}
+ fi
+
+ einfo "removing old buffer files"
+ rm -f /opt/distributed.net/buff*
+ fi
+
+ enewgroup dnetc
+ enewuser dnetc -1 -1 /opt/distributed.net dnetc
+}
+
+pkg_postinst() {
+ chown -Rf dnetc:dnetc /opt/distributed.net
+ chmod 0555 /opt/distributed.net/dnetc
+
+ elog "To run distributed.net client in the background at boot:"
+ elog " rc-update add dnetc default"
+ elog ""
+ elog "Either configure your email address in /etc/conf.d/dnetc"
+ elog "or create the configuration file /opt/distributed.net/dnetc.ini"
+}
+
+pkg_postrm() {
+ if [ -d /opt/distributed.net ]; then
+ elog "All files has not been removed from /opt/distributed.net"
+ fi
+}
diff --git a/app-misc/dnetc/dnetc-2.9109.518.ebuild b/app-misc/dnetc/dnetc-2.9109.518.ebuild
new file mode 100644
index 000000000000..1d1e603697dc
--- /dev/null
+++ b/app-misc/dnetc/dnetc-2.9109.518.ebuild
@@ -0,0 +1,94 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=2
+inherit user
+
+MAJ_PV=${PV:0:6}
+MIN_PV=${PV:7:9}
+
+DESCRIPTION="distributed.net client"
+HOMEPAGE="http://www.distributed.net"
+#SRC_URI_x86="x86? ( http://http.distributed.net/pub/dcti/v${MAJ_PV}/dnetc${MIN_PV}-linux-x86-elf-uclibc.tar.gz )"
+SRC_URI_amd64="amd64? ( http://http.distributed.net/pub/dcti/v${MAJ_PV}/dnetc${MIN_PV}-linux-amd64.tar.gz )"
+SRC_URI_ppc="ppc? ( http://http.distributed.net/pub/dcti/v${MAJ_PV}/dnetc${MIN_PV}-linux-ppc-uclibc.tar.gz )"
+#SRC_URI_sparc="sparc? ( http://http.distributed.net/pub/dcti/v${MAJ_PV}/dnetc${MIN_PV}-linux-sparc-v7.tar.gz )"
+SRC_URI="${SRC_URI_amd64} ${SRC_URI_ppc} ${SRC_URI_x86} ${SRC_URI_sparc}"
+
+LICENSE="distributed.net GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc" # x86 not available for this version
+IUSE=""
+RESTRICT="mirror"
+
+DEPEND=""
+RDEPEND="net-dns/bind-tools"
+
+QA_PRESTRIPPED="opt/distributed.net/dnetc"
+
+S=${WORKDIR}/dnetc
+
+src_prepare() {
+ binname=""
+ if use amd64; then
+ binname=dnetc${MIN_PV}-linux-amd64
+ elif use x86; then
+ binname=dnetc${MIN_PV}-linux-x86-elf-uclibc
+ elif use ppc; then
+ binname=dnetc${MIN_PV}-linux-ppc-elf-uclibc
+ fi
+ [[ -z "${binname}" ]] && die "Name of dnetc binary for this platform undefined"
+ mv "${binname}" dnetc || die "$binname binary is missing"
+}
+
+src_install() {
+ exeinto /opt/distributed.net
+ doexe dnetc
+
+ doman dnetc.1
+ dodoc docs/CHANGES.txt docs/dnetc.txt docs/readme.*
+
+ newinitd "${FILESDIR}"/dnetc.initd dnetc
+ newconfd "${FILESDIR}"/dnetc.confd dnetc
+
+ keepdir /var/spool/dnetc
+}
+
+pkg_preinst() {
+ if [ -e /opt/distributed.net/dnetc ] && [ -e /etc/init.d/dnetc ]; then
+ einfo "flushing old buffers"
+ source /etc/conf.d/dnetc
+
+ if [ -e /opt/distributed.net/dnetc.ini ]; then
+ # use ini file
+ /opt/distributed.net/dnetc -quiet -ini /opt/distributed.net/dnetc.ini -flush
+ elif [ ! -e /opt/distributed.net/dnetc.ini ] && [ ! -z ${EMAIL} ]; then
+ # email adress from config
+ /opt/distributed.net/dnetc -quiet -flush -e ${EMAIL}
+ fi
+
+ einfo "removing old buffer files"
+ rm -f /opt/distributed.net/buff*
+ fi
+
+ enewgroup dnetc
+ enewuser dnetc -1 -1 /opt/distributed.net dnetc
+}
+
+pkg_postinst() {
+ chown -Rf dnetc:dnetc /opt/distributed.net
+ chmod 0555 /opt/distributed.net/dnetc
+
+ elog "To run distributed.net client in the background at boot:"
+ elog " rc-update add dnetc default"
+ elog ""
+ elog "Either configure your email address in /etc/conf.d/dnetc"
+ elog "or create the configuration file /opt/distributed.net/dnetc.ini"
+}
+
+pkg_postrm() {
+ if [ -d /opt/distributed.net ]; then
+ elog "All files has not been removed from /opt/distributed.net"
+ fi
+}
diff --git a/app-misc/dnetc/dnetc-2.9110.519.ebuild b/app-misc/dnetc/dnetc-2.9110.519.ebuild
new file mode 100644
index 000000000000..3cb79cf07dc3
--- /dev/null
+++ b/app-misc/dnetc/dnetc-2.9110.519.ebuild
@@ -0,0 +1,94 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=2
+inherit user
+
+MAJ_PV=${PV:0:6}
+MIN_PV=${PV:7:9}
+
+DESCRIPTION="distributed.net client"
+HOMEPAGE="http://www.distributed.net"
+SRC_URI_x86="x86? ( http://http.distributed.net/pub/dcti/v${MAJ_PV}/dnetc${MIN_PV}-linux-x86-elf-uclibc.tar.gz )"
+#SRC_URI_amd64="amd64? ( http://http.distributed.net/pub/dcti/v${MAJ_PV}/dnetc${MIN_PV}-linux-amd64.tar.gz )"
+#SRC_URI_ppc="ppc? ( http://http.distributed.net/pub/dcti/v${MAJ_PV}/dnetc${MIN_PV}-linux-ppc-uclibc.tar.gz )"
+#SRC_URI_sparc="sparc? ( http://http.distributed.net/pub/dcti/v${MAJ_PV}/dnetc${MIN_PV}-linux-sparc-v7.tar.gz )"
+SRC_URI="${SRC_URI_amd64} ${SRC_URI_ppc} ${SRC_URI_x86} ${SRC_URI_sparc}"
+
+LICENSE="distributed.net GPL-2"
+SLOT="0"
+KEYWORDS="~x86" # ppc,amd64 not available for this version
+IUSE=""
+RESTRICT="mirror"
+
+DEPEND=""
+RDEPEND="net-dns/bind-tools"
+
+QA_PRESTRIPPED="opt/distributed.net/dnetc"
+
+S=${WORKDIR}/dnetc
+
+src_prepare() {
+ binname=""
+ if use amd64; then
+ binname=dnetc${MIN_PV}-linux-amd64
+ elif use x86; then
+ binname=dnetc${MIN_PV}-linux-x86-elf-uclibc
+ elif use ppc; then
+ binname=dnetc${MIN_PV}-linux-ppc-elf-uclibc
+ fi
+ [[ -z "${binname}" ]] && die "Name of dnetc binary for this platform undefined"
+ mv "${binname}" dnetc || die "$binname binary is missing"
+}
+
+src_install() {
+ exeinto /opt/distributed.net
+ doexe dnetc
+
+ doman dnetc.1
+ dodoc docs/CHANGES.txt docs/dnetc.txt docs/readme.*
+
+ newinitd "${FILESDIR}"/dnetc.initd dnetc
+ newconfd "${FILESDIR}"/dnetc.confd dnetc
+
+ keepdir /var/spool/dnetc
+}
+
+pkg_preinst() {
+ if [ -e /opt/distributed.net/dnetc ] && [ -e /etc/init.d/dnetc ]; then
+ einfo "flushing old buffers"
+ source /etc/conf.d/dnetc
+
+ if [ -e /opt/distributed.net/dnetc.ini ]; then
+ # use ini file
+ /opt/distributed.net/dnetc -quiet -ini /opt/distributed.net/dnetc.ini -flush
+ elif [ ! -e /opt/distributed.net/dnetc.ini ] && [ ! -z ${EMAIL} ]; then
+ # email adress from config
+ /opt/distributed.net/dnetc -quiet -flush -e ${EMAIL}
+ fi
+
+ einfo "removing old buffer files"
+ rm -f /opt/distributed.net/buff*
+ fi
+
+ enewgroup dnetc
+ enewuser dnetc -1 -1 /opt/distributed.net dnetc
+}
+
+pkg_postinst() {
+ chown -Rf dnetc:dnetc /opt/distributed.net
+ chmod 0555 /opt/distributed.net/dnetc
+
+ elog "To run distributed.net client in the background at boot:"
+ elog " rc-update add dnetc default"
+ elog ""
+ elog "Either configure your email address in /etc/conf.d/dnetc"
+ elog "or create the configuration file /opt/distributed.net/dnetc.ini"
+}
+
+pkg_postrm() {
+ if [ -d /opt/distributed.net ]; then
+ elog "All files has not been removed from /opt/distributed.net"
+ fi
+}
diff --git a/app-misc/dnetc/dnetc-2.9110.519b.ebuild b/app-misc/dnetc/dnetc-2.9110.519b.ebuild
new file mode 100644
index 000000000000..f8b37d50436b
--- /dev/null
+++ b/app-misc/dnetc/dnetc-2.9110.519b.ebuild
@@ -0,0 +1,96 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=2
+inherit user
+
+MAJ_PV=${PV:0:6}
+MIN_PV=${PV:7:9}
+
+DESCRIPTION="distributed.net client"
+HOMEPAGE="http://www.distributed.net"
+#SRC_URI_x86="x86? ( http://http.distributed.net/pub/dcti/v${MAJ_PV}/dnetc${MIN_PV}-linux-x86-elf-uclibc.tar.gz )"
+SRC_URI_amd64="amd64? ( http://http.distributed.net/pub/dcti/v${MAJ_PV}/dnetc${MIN_PV}-linux-amd64.tar.gz )"
+#SRC_URI_ppc="ppc? ( http://http.distributed.net/pub/dcti/v${MAJ_PV}/dnetc${MIN_PV}-linux-ppc-uclibc.tar.gz )"
+#SRC_URI_sparc="sparc? ( http://http.distributed.net/pub/dcti/v${MAJ_PV}/dnetc${MIN_PV}-linux-sparc-v7.tar.gz )"
+SRC_URI="${SRC_URI_amd64} ${SRC_URI_ppc} ${SRC_URI_x86} ${SRC_URI_sparc}"
+
+LICENSE="distributed.net GPL-2"
+SLOT="0"
+KEYWORDS="~amd64" # ppc,x86 not available for this version
+IUSE=""
+RESTRICT="mirror"
+
+DEPEND=""
+RDEPEND="net-dns/bind-tools"
+
+QA_PREBUILT="opt/distributed.net/dnetc"
+
+getS() {
+ case $ARCH in
+ amd64) suffix=amd64 ;;
+ x86) suffix=x86-elf-uclibc ;;
+ ppc) suffix=ppc-elf-uclibc ;;
+ esac
+ echo dnetc${MIN_PV:0:3}-linux-${suffix}
+}
+
+src_prepare() {
+ export S="${WORKDIR}/$(getS)"
+ cd "${S}"
+ [[ -x dnetc ]] || die "Name of dnetc directory/binary for this platform undefined"
+}
+
+src_install() {
+ export S="${WORKDIR}/$(getS)"
+ cd "${S}"
+ exeinto /opt/distributed.net
+ doexe dnetc
+
+ doman dnetc.1
+ dodoc docs/CHANGES.txt docs/dnetc.txt docs/readme.*
+
+ newinitd "${FILESDIR}"/dnetc.initd dnetc
+ newconfd "${FILESDIR}"/dnetc.confd dnetc
+
+ keepdir /var/spool/dnetc
+}
+
+pkg_preinst() {
+ if [ -e /opt/distributed.net/dnetc ] && [ -e /etc/init.d/dnetc ]; then
+ einfo "flushing old buffers"
+ source /etc/conf.d/dnetc
+
+ if [ -e /opt/distributed.net/dnetc.ini ]; then
+ # use ini file
+ /opt/distributed.net/dnetc -quiet -ini /opt/distributed.net/dnetc.ini -flush
+ elif [ ! -e /opt/distributed.net/dnetc.ini ] && [ ! -z ${EMAIL} ]; then
+ # email adress from config
+ /opt/distributed.net/dnetc -quiet -flush -e ${EMAIL}
+ fi
+
+ einfo "removing old buffer files"
+ rm -f /opt/distributed.net/buff*
+ fi
+
+ enewgroup dnetc
+ enewuser dnetc -1 -1 /opt/distributed.net dnetc
+}
+
+pkg_postinst() {
+ chown -Rf dnetc:dnetc /opt/distributed.net
+ chmod 0555 /opt/distributed.net/dnetc
+
+ elog "To run distributed.net client in the background at boot:"
+ elog " rc-update add dnetc default"
+ elog ""
+ elog "Either configure your email address in /etc/conf.d/dnetc"
+ elog "or create the configuration file /opt/distributed.net/dnetc.ini"
+}
+
+pkg_postrm() {
+ if [ -d /opt/distributed.net ]; then
+ elog "All files has not been removed from /opt/distributed.net"
+ fi
+}
diff --git a/app-misc/dnetc/files/dnetc.confd b/app-misc/dnetc/files/dnetc.confd
new file mode 100644
index 000000000000..f6f0da6b7e2d
--- /dev/null
+++ b/app-misc/dnetc/files/dnetc.confd
@@ -0,0 +1,18 @@
+# configuration file for dnetc
+
+# Startup will look for configuration files in the following places, using the
+# first one that it finds:
+# 1. /etc/dnetc.conf
+# 2. /opt/distributed.net/dnetc.ini
+
+# Values specified here will override those found in any client configuration
+# file.
+
+# email adress
+EMAIL=
+
+# buffer base dir
+BUFFER_BASE_DIR=/var/spool/dnetc
+
+# keyserver address
+KEYSERVER_ADDRESS=
diff --git a/app-misc/dnetc/files/dnetc.initd b/app-misc/dnetc/files/dnetc.initd
new file mode 100644
index 000000000000..b00743eb7871
--- /dev/null
+++ b/app-misc/dnetc/files/dnetc.initd
@@ -0,0 +1,89 @@
+#!/sbin/runscript
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+opts="${opts} reload fetch flush"
+
+depend() {
+ use net
+}
+
+processOpts() {
+ local retVal=1
+
+ DNETPATH="/opt/distributed.net"
+ DNETBIN="${DNETPATH}/dnetc"
+
+ STARTOPTS="--start --chuid dnetc:dnetc --quiet \
+ --exec ${DNETBIN}"
+
+ DNETOPTS="-quiet"
+
+ if [ -e /etc/dnetc.ini ] ; then
+ retVal=0
+ DNETOPTS="${DNETOPTS} -ini /etc/dnetc.ini"
+ elif [ -e ${DNETPATH}/dnetc.ini ]; then
+ retVal=0
+ DNETOPTS="${DNETOPTS} -ini ${DNETPATH}/dnetc.ini"
+ elif [ ! -z ${EMAIL} ]; then
+ retVal=0
+ fi
+
+ # override ini settings with values in /etc/conf.d/dnetc
+
+ DNETOPTS="${DNETOPTS} ${EMAIL:+-e ${EMAIL}}"
+ if [ ! -z ${BUFFER_BASE_DIR} ] ; then
+ local buff_in="${BUFFER_BASE_DIR:+${BUFFER_BASE_DIR}/}buff-in"
+ local buff_out="${BUFFER_BASE_DIR:+${BUFFER_BASE_DIR}/}buff-out"
+ DNETOPTS="${DNETOPTS} -inbase ${buff_in}"
+ DNETOPTS="${DNETOPTS} -outbase ${buff_out}"
+ fi
+ DNETOPTS="${DNETOPTS} ${KEYSERVER_ADDRESS:+-a ${KEYSERVER_ADDRESS}}"
+
+ # fair group cpu scheduler
+ uidpath="/sys/kernel/uids/`id -u dnetc`"
+ [ -d $uidpath ] && echo 2 >$uidpath/cpu_share
+ unset uidpath
+
+ if [ ${retVal} -ne 0 ] ; then
+ eerror "Need some sort of configuration. Check /etc/conf.d/dnetc."
+ fi
+
+ return ${retVal}
+}
+
+start() {
+ processOpts || return 1
+ ebegin "Starting distributed.net client"
+ start-stop-daemon ${STARTOPTS} -- ${DNETOPTS}
+ eend ${?}
+}
+
+stop() {
+ processOpts || return 1
+ ebegin "Stopping distributed.net client"
+ start-stop-daemon --stop --quiet --exec ${DNETBIN} --
+ eend ${?}
+}
+
+reload() {
+ processOpts || return 1
+ ebegin "Reloading distributed.net client"
+ start-stop-daemon --stop --quiet --signal HUP --exec ${DNETBIN}
+ eend ${?}
+}
+
+fetch() {
+ processOpts || return 1
+ ebegin "Fetching distributed.net client buffers"
+ ${DNETBIN} ${DNETOPTS} -fetch
+ eend ${?}
+}
+
+flush() {
+ processOpts || return 1
+ ebegin "Flushing distributed.net client buffers"
+ ${DNETBIN} ${DNETOPTS} -flush
+ eend ${?}
+}
diff --git a/app-misc/dnetc/metadata.xml b/app-misc/dnetc/metadata.xml
new file mode 100644
index 000000000000..5fc044e11cb0
--- /dev/null
+++ b/app-misc/dnetc/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>
+ <email>robbat2@gentoo.org</email>
+ <name>Robin H. Johnson</name>
+ </maintainer>
+ <longdescription>
+ a distributed client for the distributed.net cracking challenges.
+ </longdescription>
+</pkgmetadata>
diff --git a/app-misc/dtach/Manifest b/app-misc/dtach/Manifest
new file mode 100644
index 000000000000..238d0df3fba3
--- /dev/null
+++ b/app-misc/dtach/Manifest
@@ -0,0 +1 @@
+DIST dtach-0.8.tar.gz 55472 SHA256 16614ebddf8ab2811d3dc0e7f329c7de88929ac6a9632d4cb4aef7fe11b8f2a9 SHA512 ad0a788d10a5e1e1be4c353b64e1e4a0dc8c888492a638b2442d7c59ef31d67975357116435a1059141bfc2c82a3a6e9e490faa87cf81e5fc3bc7457a99c1193 WHIRLPOOL 271236b493a36e159081570c1a2bea41cc58e151a9cdfd99d2a4f27486dd62d4c1955a4b858b356ef0d6613e1a9c5c8958ca3bd143e0fb07a12f3cb92370f989
diff --git a/app-misc/dtach/dtach-0.8-r1.ebuild b/app-misc/dtach/dtach-0.8-r1.ebuild
new file mode 100644
index 000000000000..1ec191c669a6
--- /dev/null
+++ b/app-misc/dtach/dtach-0.8-r1.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit eutils
+
+DESCRIPTION="Emulates the detach feature of screen"
+HOMEPAGE="http://dtach.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="amd64 ~arm ppc x86"
+IUSE=""
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-CVE-2012-3368.patch
+}
+
+src_install() {
+ dobin dtach
+ doman dtach.1
+ dodoc README
+}
diff --git a/app-misc/dtach/files/dtach-0.8-CVE-2012-3368.patch b/app-misc/dtach/files/dtach-0.8-CVE-2012-3368.patch
new file mode 100644
index 000000000000..82d5f0e1e159
--- /dev/null
+++ b/app-misc/dtach/files/dtach-0.8-CVE-2012-3368.patch
@@ -0,0 +1,35 @@
+Fix error handling for read from stdin in attach.c
+
+attach.c did not correctly handle a read from stdin when read returned
+an error. The code assigned the return value of read to pkt.len (an
+unsigned char) before checking the value. This prevented the error check
+from working correctly, since an unsigned integer can never be < 0.
+
+A packet with an invalid length was then sent to the master, which then
+sent 255 bytes of garbage to the program.
+
+Fix the bug in attach.c and the unchecked packet length bug in master.c.
+
+Report and initial patch by Enrico Scholz.
+
+--- attach.c 2012/07/01 21:26:10 1.12
++++ attach.c 2012/07/01 21:44:34 1.13
+@@ -237,12 +237,16 @@
+ /* stdin activity */
+ if (n > 0 && FD_ISSET(0, &readfds))
+ {
++ ssize_t len;
++
+ pkt.type = MSG_PUSH;
+ memset(pkt.u.buf, 0, sizeof(pkt.u.buf));
+- pkt.len = read(0, pkt.u.buf, sizeof(pkt.u.buf));
++ len = read(0, pkt.u.buf, sizeof(pkt.u.buf));
+
+- if (pkt.len <= 0)
++ if (len <= 0)
+ exit(1);
++
++ pkt.len = len;
+ process_kbd(s, &pkt);
+ n--;
+ }
diff --git a/app-misc/dtach/metadata.xml b/app-misc/dtach/metadata.xml
new file mode 100644
index 000000000000..31d4e7b5558b
--- /dev/null
+++ b/app-misc/dtach/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>shell-tools</herd>
+ <upstream>
+ <remote-id type="sourceforge">dtach</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/dvorak7min/Manifest b/app-misc/dvorak7min/Manifest
new file mode 100644
index 000000000000..52c3807efcb9
--- /dev/null
+++ b/app-misc/dvorak7min/Manifest
@@ -0,0 +1 @@
+DIST dvorak7min-1.6.1.tar.gz 53115 SHA256 f0b5be8b44782904717adea087fc936cd4941d6885fe5d8d0a60a5c8467f15c5 SHA512 17ed601f298673a51d73b2efeb1555d91337f34cfbcc099a71c11de38fecdb29747de9533abec9028c3abc9f04dc9090e4452bba1c53cdac8d65e86a760e8a7a WHIRLPOOL 2758b6cfefd858f7bcffa82efacb7dcb85daf8cffad03dd8bb4bf99ee4745f2903fd295b50334d01e3c5f2ebf347dcbc37c6e3805f9d1ed1bee3c392f2a466d0
diff --git a/app-misc/dvorak7min/dvorak7min-1.6.1.ebuild b/app-misc/dvorak7min/dvorak7min-1.6.1.ebuild
new file mode 100644
index 000000000000..e4d9f28dbd2b
--- /dev/null
+++ b/app-misc/dvorak7min/dvorak7min-1.6.1.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit toolchain-funcs
+
+DESCRIPTION="Simple ncurses-based typing tutor for learning the Dvorak keyboard layout"
+HOMEPAGE="http://www.linalco.com/comunidad.html"
+SRC_URI="http://www.linalco.com/ragnar/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE=""
+
+src_prepare() {
+ emake clean
+}
+
+src_compile() {
+ emake \
+ CC="$(tc-getCC)" \
+ PROF="${CFLAGS}" \
+ LDFLAGS="${LDFLAGS}"
+}
+
+src_install() {
+ dobin ${PN}
+ dodoc ChangeLog README
+}
diff --git a/app-misc/dvorak7min/metadata.xml b/app-misc/dvorak7min/metadata.xml
new file mode 100644
index 000000000000..f9d50da18d39
--- /dev/null
+++ b/app-misc/dvorak7min/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>maintainer-needed@gentoo.org</email>
+ <description>This package lacks a primary herd or maintainer.</description>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-misc/dvorakng/Manifest b/app-misc/dvorakng/Manifest
new file mode 100644
index 000000000000..6f96ea416fd5
--- /dev/null
+++ b/app-misc/dvorakng/Manifest
@@ -0,0 +1 @@
+DIST dvorakng-0.6.0rc1.tar.bz2 28994 SHA256 b85eb695d422562274aa39e85dec8911dcbffe6eb72d1e4d38f70afde27e0036 SHA512 87f0bb2199188093ea4223d7dc47232f53b266aa9498170b643c25e724f547fa1ce5d0e1d4e7f275c712f6ec4850d825827b66f84407f186eb80b73ac973ded7 WHIRLPOOL 78361363f4444bbd9cc86df9aebc79469f0909b6862d8856c21f61463aa702649c94ed6498b874a9773b1009a3934c85cc30de9bb3062c2ceb54c83d285e594f
diff --git a/app-misc/dvorakng/dvorakng-0.6.0.ebuild b/app-misc/dvorakng/dvorakng-0.6.0.ebuild
new file mode 100644
index 000000000000..f90b50fedd55
--- /dev/null
+++ b/app-misc/dvorakng/dvorakng-0.6.0.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit toolchain-funcs
+
+DESCRIPTION="Dvorak typing tutor"
+HOMEPAGE="http://freshmeat.net/projects/dvorakng/?topic_id=71%2C861"
+SRC_URI="http://www.free.of.pl/n/nopik/${P}rc1.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc ppc64 x86"
+IUSE=""
+DEPEND="sys-libs/ncurses"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/dvorakng
+
+src_compile() {
+ emake CXX="$(tc-getCXX)" CXXFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS}" || die "emake failed"
+}
+
+src_install() {
+ dobin dvorakng || die "dobin failed"
+ dodoc README TODO || die "dodoc failed"
+}
diff --git a/app-misc/dvorakng/metadata.xml b/app-misc/dvorakng/metadata.xml
new file mode 100644
index 000000000000..ce75af89025d
--- /dev/null
+++ b/app-misc/dvorakng/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>
+ <email>maintainer-needed@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="freshmeat">dvorakng</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/dvtm/Manifest b/app-misc/dvtm/Manifest
new file mode 100644
index 000000000000..fce1eda22ec8
--- /dev/null
+++ b/app-misc/dvtm/Manifest
@@ -0,0 +1,3 @@
+DIST dvtm-0.11.tar.gz 34499 SHA256 01a29fdf6556f019f183bd517a1045bcc12d23561c1a84c4b5a8b3ba2d2feb87 SHA512 e1c76540bbddf6245f77a749146f2c3c836a8f2cf1c0e96ef198c3be9e5069458360ecf0a0a523ce9fcf22d55a424ee064420f8699875026cb399fc3f017cfa7 WHIRLPOOL 7d18be8ca4ab86d93f6d98d07a1a1843d6bb0ea796affb99864fcd31798396a4a431895f4b3b955be64de2f6661f8c87c07c6b8dc09992c1d53107ee3500f52b
+DIST dvtm-0.14.tar.gz 35893 SHA256 8a9bb341f8a4c578b839e22d9a707f053a27ae6df15158e16f4fee787e43747a SHA512 d47f55b4ce47582f665ac5b5d86bb9137722f65b157bdd80aaaf45a2cd8d783a3b0718886c7a7ea1d900762359316c2d76816460dac03484e122d43c64f57dd6 WHIRLPOOL 1ca474b4ad5f9d7fa7106ec0c180d32e06cd2d02be1e3a3392a7c6373ecf00d5abba26e8e4d2ed67d8784533db10951bebc408cad9c068e7270407beb339706e
+DIST dvtm-0.8.tar.gz 27543 SHA256 4c84b7c32f6cd476ef92150c4c1ca211836ed00f16ca8bdd4089933912b39a78 SHA512 6b4c910aee637fe0e4eeedf7905e893ffee2476baffc08697093b2181197aaca1aafd1095fb7e140fea2f0dd9492edf608bad5ad4ad410a5a3e76610732220eb WHIRLPOOL c3505ca64e36a17b1e0de175448c6bbf09ba18732b41787c8f9d7062afb3aca1a72f0a74d890da2261db7b94bd14ac83f5998ff87c776253f0c4c0a2df4a575b
diff --git a/app-misc/dvtm/dvtm-0.11.ebuild b/app-misc/dvtm/dvtm-0.11.ebuild
new file mode 100644
index 000000000000..e7a4888044c9
--- /dev/null
+++ b/app-misc/dvtm/dvtm-0.11.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit savedconfig toolchain-funcs
+
+DESCRIPTION="Dynamic virtual terminal manager"
+HOMEPAGE="http://www.brain-dump.org/projects/dvtm/"
+
+if [[ ${PV} == 9999* ]]; then
+ inherit git-2
+ EGIT_REPO_URI="git://repo.or.cz/dvtm.git"
+ KEYWORDS="arm"
+else
+ SRC_URI="http://www.brain-dump.org/projects/${PN}/${P}.tar.gz"
+ KEYWORDS="amd64 arm x86"
+fi
+
+LICENSE="MIT"
+SLOT="0"
+IUSE="unicode"
+
+DEPEND="sys-libs/ncurses[unicode?]"
+RDEPEND=${DEPEND}
+
+src_prepare() {
+ sed -i \
+ -e 's|FLAGS =|FLAGS +=|' \
+ -e 's|-I/usr/local/include||' \
+ -e 's|-L/usr/local/lib||' \
+ -e 's|-Os||' \
+ config.mk || die "sed config.mk failed"
+ use unicode || {
+ sed -i \
+ -e 's|-lncursesw|-lncurses|' \
+ config.mk || die "sed config.mk failed"
+ }
+ sed -i \
+ -e '/strip/d' \
+ -e 's:@tic :@tic -o ${DESTDIR}${PREFIX}/share/terminfo :g' \
+ Makefile || die "sed Makefile failed"
+
+ restore_config config.h
+}
+
+src_compile() {
+ local msg=""
+ use savedconfig && msg=", please check the configfile"
+ emake CC=$(tc-getCC) ${PN} || die "emake failed${msg}"
+}
+
+src_install() {
+ emake DESTDIR="${D}" PREFIX="/usr" install
+
+ insinto /usr/share/${PN}
+ newins config.h ${PF}.config.h
+
+ dodoc README
+
+ save_config config.h
+}
+
+pkg_postinst() {
+ elog "This ebuild has support for user defined configs"
+ elog "Please read this ebuild for more details and re-emerge as needed"
+ elog "if you want to add or remove functionality for ${PN}"
+}
diff --git a/app-misc/dvtm/dvtm-0.14.ebuild b/app-misc/dvtm/dvtm-0.14.ebuild
new file mode 100644
index 000000000000..56d8eb740282
--- /dev/null
+++ b/app-misc/dvtm/dvtm-0.14.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit savedconfig toolchain-funcs
+
+DESCRIPTION="Dynamic virtual terminal manager"
+HOMEPAGE="http://www.brain-dump.org/projects/dvtm/"
+
+if [[ ${PV} == 9999* ]]; then
+ inherit git-2
+ EGIT_REPO_URI="git://repo.or.cz/dvtm.git"
+ KEYWORDS=""
+else
+ SRC_URI="http://www.brain-dump.org/projects/${PN}/${P}.tar.gz"
+ KEYWORDS="~amd64 ~arm ~x86"
+fi
+
+LICENSE="MIT"
+SLOT="0"
+IUSE="unicode"
+
+DEPEND="sys-libs/ncurses[unicode?]"
+RDEPEND=${DEPEND}
+
+src_prepare() {
+ sed -i \
+ -e 's|FLAGS =|FLAGS +=|' \
+ -e 's|-I/usr/local/include||' \
+ -e 's|-L/usr/local/lib||' \
+ -e 's|-Os||' \
+ config.mk || die "sed config.mk failed"
+ use unicode || {
+ sed -i \
+ -e 's|-lncursesw|-lncurses|' \
+ config.mk || die "sed config.mk failed"
+ }
+ sed -i \
+ -e '/strip/d' \
+ -e 's:@tic :@tic -o ${DESTDIR}${PREFIX}/share/terminfo :g' \
+ Makefile || die "sed Makefile failed"
+
+ restore_config config.h
+}
+
+src_compile() {
+ local msg=""
+ use savedconfig && msg=", please check the configfile"
+ emake CC=$(tc-getCC) ${PN} || die "emake failed${msg}"
+}
+
+src_install() {
+ emake DESTDIR="${D}" PREFIX="/usr" install
+
+ insinto /usr/share/${PN}
+ newins config.h ${PF}.config.h
+
+ dodoc README
+
+ save_config config.h
+}
+
+pkg_postinst() {
+ elog "This ebuild has support for user defined configs"
+ elog "Please read this ebuild for more details and re-emerge as needed"
+ elog "if you want to add or remove functionality for ${PN}"
+}
diff --git a/app-misc/dvtm/dvtm-0.8.ebuild b/app-misc/dvtm/dvtm-0.8.ebuild
new file mode 100644
index 000000000000..588e61cbb543
--- /dev/null
+++ b/app-misc/dvtm/dvtm-0.8.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=3
+
+inherit savedconfig toolchain-funcs
+
+DESCRIPTION="Dynamic virtual terminal manager"
+HOMEPAGE="http://www.brain-dump.org/projects/dvtm/"
+SRC_URI="http://www.brain-dump.org/projects/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="amd64 arm x86"
+IUSE="unicode"
+
+DEPEND="sys-libs/ncurses[unicode?]"
+RDEPEND=${DEPEND}
+
+src_prepare() {
+ sed -i \
+ -e 's|FLAGS =|FLAGS +=|' \
+ -e 's|-I/usr/local/include||' \
+ -e 's|-L/usr/local/lib||' \
+ -e 's|-Os||' \
+ config.mk || die "sed config.mk failed"
+ use unicode || {
+ sed -i \
+ -e 's|-lncursesw|-lncurses|' \
+ config.mk || die "sed config.mk failed"
+ }
+ sed -i \
+ -e '/strip/d' \
+ Makefile || die "sed Makefile failed"
+
+ restore_config config.h
+}
+
+src_compile() {
+ local msg=""
+ use savedconfig && msg=", please check the configfile"
+ emake CC=$(tc-getCC) ${PN} || die "emake failed${msg}"
+}
+
+src_install() {
+ emake DESTDIR="${D}" PREFIX="/usr" install || die "emake install failed"
+
+ insinto /usr/share/${PN}
+ newins config.h ${PF}.config.h || die "newins failed"
+
+ dodoc README || die "dodoc failed"
+
+ save_config config.h
+}
+
+pkg_postinst() {
+ elog "This ebuild has support for user defined configs"
+ elog "Please read this ebuild for more details and re-emerge as needed"
+ elog "if you want to add or remove functionality for ${PN}"
+}
diff --git a/app-misc/dvtm/dvtm-9999.ebuild b/app-misc/dvtm/dvtm-9999.ebuild
new file mode 100644
index 000000000000..35b2d77eeb5d
--- /dev/null
+++ b/app-misc/dvtm/dvtm-9999.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit savedconfig toolchain-funcs
+
+DESCRIPTION="Dynamic virtual terminal manager"
+HOMEPAGE="http://www.brain-dump.org/projects/dvtm/"
+
+if [[ ${PV} == 9999* ]]; then
+ inherit git-2
+ EGIT_REPO_URI="git://repo.or.cz/dvtm.git"
+ KEYWORDS=""
+else
+ SRC_URI="http://www.brain-dump.org/projects/${PN}/${P}.tar.gz"
+ KEYWORDS="~amd64 ~arm ~x86"
+fi
+
+LICENSE="MIT"
+SLOT="0"
+IUSE="unicode"
+
+DEPEND="sys-libs/ncurses[unicode?]"
+RDEPEND=${DEPEND}
+
+src_prepare() {
+ sed -i \
+ -e 's|FLAGS =|FLAGS +=|' \
+ -e 's|-I/usr/local/include||' \
+ -e 's|-L/usr/local/lib||' \
+ -e 's|-Os||' \
+ config.mk || die "sed config.mk failed"
+ use unicode || {
+ sed -i \
+ -e 's|-lncursesw|-lncurses|' \
+ config.mk || die "sed config.mk failed"
+ }
+ sed -i \
+ -e '/strip/d' \
+ -e 's:@tic :@tic -o ${DESTDIR}${PREFIX}/share/terminfo :g' \
+ Makefile || die "sed Makefile failed"
+
+ restore_config config.h
+}
+
+src_compile() {
+ local msg=""
+ use savedconfig && msg=", please check the configfile"
+ emake CC=$(tc-getCC) ${PN} || die "emake failed${msg}"
+}
+
+src_install() {
+ emake DESTDIR="${D}" PREFIX="/usr" install
+
+ insinto /usr/share/${PN}
+ newins config.h ${PF}.config.h
+
+ dodoc README
+
+ save_config config.h
+}
+
+pkg_postinst() {
+ elog "This ebuild has support for user defined configs"
+ elog "Please read this ebuild for more details and re-emerge as needed"
+ elog "if you want to add or remove functionality for ${PN}"
+}
diff --git a/app-misc/dvtm/metadata.xml b/app-misc/dvtm/metadata.xml
new file mode 100644
index 000000000000..8a9b49eec325
--- /dev/null
+++ b/app-misc/dvtm/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>
+ <email>chithanh@gentoo.org</email>
+ <name>Chí-Thanh Christopher Nguyễn</name>
+ </maintainer>
+</pkgmetadata>
+
diff --git a/app-misc/editor-wrapper/editor-wrapper-4.ebuild b/app-misc/editor-wrapper/editor-wrapper-4.ebuild
new file mode 100644
index 000000000000..4ec011e0c83f
--- /dev/null
+++ b/app-misc/editor-wrapper/editor-wrapper-4.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+DESCRIPTION="Wrapper scripts that will execute EDITOR or PAGER"
+HOMEPAGE="http://www.gentoo.org/"
+SRC_URI=""
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE=""
+
+S="${WORKDIR}"
+
+src_prepare() {
+ sed -e 's/@VAR@/EDITOR/g' "${FILESDIR}/${P}.sh" >editor || die
+ sed -e 's/@VAR@/PAGER/g' "${FILESDIR}/${P}.sh" >pager || die
+ if use prefix ; then
+ sed -i \
+ -e "s:#!/bin/sh:#!/usr/bin/env sh:" \
+ -e "s: /etc/profile: \"${EPREFIX}/etc/profile\":" \
+ editor pager || die
+ fi
+}
+
+src_install() {
+ exeinto /usr/libexec
+ doexe editor pager
+}
diff --git a/app-misc/editor-wrapper/files/editor-wrapper-4.sh b/app-misc/editor-wrapper/files/editor-wrapper-4.sh
new file mode 100644
index 000000000000..b58f1a8b9eeb
--- /dev/null
+++ b/app-misc/editor-wrapper/files/editor-wrapper-4.sh
@@ -0,0 +1,17 @@
+#!/bin/sh
+# Copyright 2009-2011 Gentoo Foundation
+# Distributed under the terms of the MIT/X11 license
+
+# Wrapper script, executes ${@VAR@} with arguments $@
+
+if [ -z "${@VAR@}" ]; then
+ # Try to get @VAR@ from system profile
+ @VAR@=$(. /etc/profile >/dev/null 2>&1; echo "${@VAR@}")
+fi
+
+if [ -z "${@VAR@}" ]; then
+ echo "$0: The @VAR@ variable must be set" >&2
+ exit 1
+fi
+
+exec ${@VAR@} "$@"
diff --git a/app-misc/editor-wrapper/metadata.xml b/app-misc/editor-wrapper/metadata.xml
new file mode 100644
index 000000000000..83d335031da4
--- /dev/null
+++ b/app-misc/editor-wrapper/metadata.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>base-system</herd>
+<herd>emacs</herd>
+</pkgmetadata>
diff --git a/app-misc/egads/Manifest b/app-misc/egads/Manifest
new file mode 100644
index 000000000000..3d581af09b36
--- /dev/null
+++ b/app-misc/egads/Manifest
@@ -0,0 +1 @@
+DIST egads-0.9.5.tar.gz 302708 SHA256 606d68e284540d357115d7c2d2952d22a2b293fe77f00599396aeeb5b47e36a1 SHA512 b3138d31165f25c4b4b83b72eeee5fd0ea80e2d89a1a67f1d6d40c82afd849ef76ebdb5e71165eb80c00c971dd0bb4e9660fcb70ffedb7e14a003be90ce91e7b WHIRLPOOL 90f2795416878f3af3205d251e2a9628c6fa5a0ba37ef467b5b51f10de2a4ea75a459e999bf2972c1c5c7a13f8340468e044641194ae67170cbe1ccbd3b59adb
diff --git a/app-misc/egads/egads-0.9.5.ebuild b/app-misc/egads/egads-0.9.5.ebuild
new file mode 100644
index 000000000000..965780695d14
--- /dev/null
+++ b/app-misc/egads/egads-0.9.5.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit multilib toolchain-funcs
+
+DESCRIPTION="Entropy Gathering And Distribution System"
+HOMEPAGE="http://www.securesoftware.com/download_${PN}.htm"
+SRC_URI="http://www.securesoftware.com/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~ppc x86 ~amd64"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+egadsdatadir=/var/run/egads
+
+src_unpack() {
+ unpack ${A}
+ sed -i \
+ -e '/^BINDIR/d' \
+ -e '/^LIBDIR/d' \
+ -e '/^INCLUDEDIR/d' \
+ "${S}"/Makefile.in || die "Failed to fix Makefile.in"
+ tc-export CC AR RANLIB
+}
+
+src_compile() {
+ econf \
+ --with-egads-datadir="${egadsdatadir}" \
+ --with-bindir=/usr/sbin \
+ || die
+ emake LIBDIR="/usr/$(get_libdir)" || die
+}
+
+src_install() {
+ keepdir ${egadsdatadir}
+ fperms +t ${egadsdatadir}
+ # NOT parallel safe, and no DESTDIR support
+ emake -j1 install \
+ BINDIR="${D}"/usr/sbin \
+ LIBDIR="${D}"/usr/$(get_libdir) \
+ INCLUDEDIR="${D}"/usr/include \
+ || die
+ dodoc README* doc/*.txt
+ dohtml doc/*.html
+}
diff --git a/app-misc/egads/metadata.xml b/app-misc/egads/metadata.xml
new file mode 100644
index 000000000000..a732fd8b2f03
--- /dev/null
+++ b/app-misc/egads/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>robbat2@gentoo.org</email>
+ <name>Robin H. Johnson</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-misc/eid-viewer-bin/Manifest b/app-misc/eid-viewer-bin/Manifest
new file mode 100644
index 000000000000..d3c3e74720eb
--- /dev/null
+++ b/app-misc/eid-viewer-bin/Manifest
@@ -0,0 +1 @@
+DIST eid-viewer-4.0.7_p184.tar.gz 9908119 SHA256 923962eecd907ac8e123fecbedd6c5988352e557ec0c4b95df4eac11433cd7be SHA512 65b93e86e0175ca9aea8b5fb237aaa8b3fcab838d7507db335e163a6927e1c214248764b96c61eb3bbec6caf19440f7b7cd60dff79482ad249e23770b51fafa9 WHIRLPOOL 735ac73bec1a674e3338fefb378d0cb2e601e019463db60efb9d205e3a840c911f77bda46ba0e0304eaac43bb4b57b80869fbed7b5af534ce347d507e2c0e59f
diff --git a/app-misc/eid-viewer-bin/eid-viewer-bin-4.0.7_p184.ebuild b/app-misc/eid-viewer-bin/eid-viewer-bin-4.0.7_p184.ebuild
new file mode 100644
index 000000000000..e7a284dfbfe5
--- /dev/null
+++ b/app-misc/eid-viewer-bin/eid-viewer-bin-4.0.7_p184.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils
+
+MY_PN="eid-viewer"
+MY_PV="${PV%%_p*}"
+#MY_PV="${PV/_p/-}"
+MY_P="${MY_PN}-${MY_PV}"
+
+SLOT="0"
+LICENSE="LGPL-3"
+KEYWORDS="~amd64 ~x86"
+DESCRIPTION="Graphical interface to the Belgian Electronic Identity Card"
+
+SRC_URI="http://eid.belgium.be/en/binaries/eid-viewer-4%2E0%2E7-184%2Esrc%2Etar_tcm406-250014.gz -> eid-viewer-4.0.7_p184.tar.gz"
+HOMEPAGE="http://eid.belgium.be"
+
+RDEPEND="
+ virtual/jre
+ sys-apps/pcsc-lite"
+DEPEND="${RDEPEND}"
+
+IUSE=""
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ sed -i -e 's:icons:pixmaps:' Makefile.in || die
+ sed -i -e 's:Application;::' eid-viewer.desktop.sh.in || die
+}
diff --git a/app-misc/eid-viewer-bin/metadata.xml b/app-misc/eid-viewer-bin/metadata.xml
new file mode 100644
index 000000000000..66cfa9108058
--- /dev/null
+++ b/app-misc/eid-viewer-bin/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>proxy-maintainers</herd>
+<maintainer>
+ <email>vincent.hardy.be@gmail.com</email>
+</maintainer>
+<longdescription>
+eid-mw is Belgian Electronic Identity Card (eID) middleware supplied by the Belgian Federal Government.
+
+With your eID, you can:
+- identify yourself when necessary. All you have to do is insert the card in the reader. All your details then appear automatically on the PC screen.
+- authenticate yourself. This is a way of checking that you are who you say you are. That can be handy on the internet or to enable your children to chat in safety.
+- place a legally binding electronic signature on electronic documents.
+
+These three functions form the basis of the countless applications for your eID. Go to http://welcome-to-e-belgium.be/en/ and check out what can you do with it? and discover all the things you can use the eID for.
+</longdescription>
+</pkgmetadata>
diff --git a/app-misc/elasticsearch/Manifest b/app-misc/elasticsearch/Manifest
new file mode 100644
index 000000000000..a8514cbb65c1
--- /dev/null
+++ b/app-misc/elasticsearch/Manifest
@@ -0,0 +1,2 @@
+DIST elasticsearch-1.6.2.tar.gz 28491082 SHA256 b7ef3aae0a263c2312bd1a25b191c3c108c92d5413c3527d776587e582c518d0 SHA512 fb97a373a36fbef1b55fc263f6234b41daa33068150f5badea04ee9ba65166696416db941a41e46f66b588c15f6b86b090aa8004d949ed25fb9409b67e062820 WHIRLPOOL 39aafc41bd950bb71758ece90cf0e901599b55291ac1cecb7fea893c00b12643af40b4ebf647c4e67b1467b84c2438a82e574bcbb796dd736e2d1a8621082023
+DIST elasticsearch-1.7.1.tar.gz 28500556 SHA256 86a0c20eea6ef55b14345bff5adf896e6332437b19180c4582a346394abde019 SHA512 88786d277cb3228a5e477068fc5ff723e0b5aa47411cea5c55d15ae769f2fb123d274e29c592a9e0f655deedb9db62f296af5aff4e8b56539928025a3375daaa WHIRLPOOL 2218ec3603314a60b38e903b3f00681512306efe1892350ced71c060a24924391d66cb9273d6db5ebb781d60808a2f3ab4c77c57baa03714db143c3718602bf5
diff --git a/app-misc/elasticsearch/elasticsearch-1.6.2.ebuild b/app-misc/elasticsearch/elasticsearch-1.6.2.ebuild
new file mode 100644
index 000000000000..1ad3bf36d3d7
--- /dev/null
+++ b/app-misc/elasticsearch/elasticsearch-1.6.2.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils systemd user
+
+MY_PN="${PN%-bin}"
+DESCRIPTION="Open Source, Distributed, RESTful, Search Engine"
+HOMEPAGE="https://www.elastic.co/products/elasticsearch"
+SRC_URI="https://download.elastic.co/${MY_PN}/${MY_PN}/${MY_PN}-${PV}.tar.gz"
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RESTRICT="strip"
+QA_PREBUILT="usr/share/elasticsearch/lib/sigar/libsigar-*.so"
+
+RDEPEND="|| ( virtual/jre:1.7 virtual/jre:1.8 )"
+
+pkg_setup() {
+ enewgroup ${MY_PN}
+ enewuser ${MY_PN} -1 /bin/bash /var/lib/${MY_PN} ${MY_PN}
+}
+
+src_prepare() {
+ rm -rf lib/sigar/*{solaris,winnt,freebsd,macosx}*
+ rm -rf bin/*.{bat,exe}
+ rm lib/sigar/libsigar-ia64-linux.so
+ rm LICENSE.txt
+
+ use amd64 && {
+ rm lib/sigar/libsigar-x86-linux.so
+ }
+
+ use x86 && {
+ rm lib/sigar/libsigar-amd64-linux.so
+ }
+}
+
+src_install() {
+ dodir /etc/${MY_PN}
+
+ insinto /usr/share/doc/${P}/examples
+ doins config/*
+ rm -rf config
+
+ insinto /usr/share/${MY_PN}
+ doins -r ./*
+ chmod +x "${D}"/usr/share/${MY_PN}/bin/*
+
+ keepdir /var/{lib,log}/${MY_PN}
+
+ newinitd "${FILESDIR}/elasticsearch.init4" "${MY_PN}"
+ newconfd "${FILESDIR}/${MY_PN}.conf" "${MY_PN}"
+ systemd_newunit "${FILESDIR}"/${PN}.service4 "${PN}.service"
+}
+
+pkg_postinst() {
+ elog
+ elog "You may create multiple instances of ${MY_PN} by"
+ elog "symlinking the init script:"
+ elog "ln -sf /etc/init.d/${MY_PN} /etc/init.d/${MY_PN}.instance"
+ elog
+ elog "Each of the example files in /usr/share/doc/${P}/examples"
+ elog "should be extracted to the proper configuration directory:"
+ elog "/etc/${MY_PN} (for standard init)"
+ elog "/etc/${MY_PN}/instance (for symlinked init)"
+ elog
+}
diff --git a/app-misc/elasticsearch/elasticsearch-1.7.1.ebuild b/app-misc/elasticsearch/elasticsearch-1.7.1.ebuild
new file mode 100644
index 000000000000..1ad3bf36d3d7
--- /dev/null
+++ b/app-misc/elasticsearch/elasticsearch-1.7.1.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils systemd user
+
+MY_PN="${PN%-bin}"
+DESCRIPTION="Open Source, Distributed, RESTful, Search Engine"
+HOMEPAGE="https://www.elastic.co/products/elasticsearch"
+SRC_URI="https://download.elastic.co/${MY_PN}/${MY_PN}/${MY_PN}-${PV}.tar.gz"
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RESTRICT="strip"
+QA_PREBUILT="usr/share/elasticsearch/lib/sigar/libsigar-*.so"
+
+RDEPEND="|| ( virtual/jre:1.7 virtual/jre:1.8 )"
+
+pkg_setup() {
+ enewgroup ${MY_PN}
+ enewuser ${MY_PN} -1 /bin/bash /var/lib/${MY_PN} ${MY_PN}
+}
+
+src_prepare() {
+ rm -rf lib/sigar/*{solaris,winnt,freebsd,macosx}*
+ rm -rf bin/*.{bat,exe}
+ rm lib/sigar/libsigar-ia64-linux.so
+ rm LICENSE.txt
+
+ use amd64 && {
+ rm lib/sigar/libsigar-x86-linux.so
+ }
+
+ use x86 && {
+ rm lib/sigar/libsigar-amd64-linux.so
+ }
+}
+
+src_install() {
+ dodir /etc/${MY_PN}
+
+ insinto /usr/share/doc/${P}/examples
+ doins config/*
+ rm -rf config
+
+ insinto /usr/share/${MY_PN}
+ doins -r ./*
+ chmod +x "${D}"/usr/share/${MY_PN}/bin/*
+
+ keepdir /var/{lib,log}/${MY_PN}
+
+ newinitd "${FILESDIR}/elasticsearch.init4" "${MY_PN}"
+ newconfd "${FILESDIR}/${MY_PN}.conf" "${MY_PN}"
+ systemd_newunit "${FILESDIR}"/${PN}.service4 "${PN}.service"
+}
+
+pkg_postinst() {
+ elog
+ elog "You may create multiple instances of ${MY_PN} by"
+ elog "symlinking the init script:"
+ elog "ln -sf /etc/init.d/${MY_PN} /etc/init.d/${MY_PN}.instance"
+ elog
+ elog "Each of the example files in /usr/share/doc/${P}/examples"
+ elog "should be extracted to the proper configuration directory:"
+ elog "/etc/${MY_PN} (for standard init)"
+ elog "/etc/${MY_PN}/instance (for symlinked init)"
+ elog
+}
diff --git a/app-misc/elasticsearch/files/elasticsearch.conf b/app-misc/elasticsearch/files/elasticsearch.conf
new file mode 100644
index 000000000000..54e3df9a82dc
--- /dev/null
+++ b/app-misc/elasticsearch/files/elasticsearch.conf
@@ -0,0 +1,20 @@
+# please modify/copy
+# /etc/elasticsearch/elasticsearch.in.sh.sample
+# to
+# /etc/elasticsearch/[instance/]elasticsearch.in.sh
+#
+# many variables/options are available in this file
+
+# ES_USER="elasticsearch:elasticsearch"
+## set max fds (ulimit -n X)
+# ES_MAX_FD=""
+
+## override elasticsearch.in.sh
+#
+# ES_CLASSPATH=""
+# JAVA_OPTS=""
+# ES_JAVA_OPTS=""
+# ES_HEAP_SIZE=""
+# ES_HEAP_NEWSIZE=""
+# ES_DIRECT_SIZE=""
+# ES_USE_IPV4=""
diff --git a/app-misc/elasticsearch/files/elasticsearch.init4 b/app-misc/elasticsearch/files/elasticsearch.init4
new file mode 100644
index 000000000000..7110e584196e
--- /dev/null
+++ b/app-misc/elasticsearch/files/elasticsearch.init4
@@ -0,0 +1,87 @@
+#!/sbin/runscript
+
+name="Elasticsearch"
+description=""
+
+ES_USER=${ES_USER:="elasticsearch"}
+ES_INSTANCE=${SVCNAME#*.}
+
+if [ -n "${ES_INSTANCE}" ] && [ ${SVCNAME} != "elasticsearch" ]; then
+ PIDFILE="/run/elasticsearch/elasticsearch.${ES_INSTANCE}.pid"
+ ES_BASE_PATH="/var/lib/elasticsearch/${ES_INSTANCE}"
+ ES_CONF_PATH="/etc/elasticsearch/${ES_INSTANCE}"
+ ES_LOG_PATH="/var/log/elasticsearch/${ES_INSTANCE}"
+else
+ PIDFILE="/run/elasticsearch/elasticsearch.pid"
+ ES_BASE_PATH="/var/lib/elasticsearch/_default"
+ ES_CONF_PATH="/etc/elasticsearch"
+ ES_LOG_PATH="/var/log/elasticsearch/_default"
+fi
+
+ES_DATA_PATH="${ES_BASE_PATH}/data"
+ES_WORK_PATH="${ES_BASE_PATH}/work"
+
+export ES_INCLUDE="/usr/share/elasticsearch/bin/elasticsearch.in.sh"
+export JAVA_OPTS
+export ES_JAVA_OPTS
+export ES_HEAP_SIZE
+export ES_HEAP_NEWSIZE
+export ES_DIRECT_SIZE
+export ES_USE_IPV4
+
+server_command="/usr/share/elasticsearch/bin/elasticsearch"
+server_args=" -p ${PIDFILE} -Des.default.path.conf=\"${ES_CONF_PATH}\" -Des.default.path.data=\"${ES_DATA_PATH}\" -Des.default.path.work=\"${ES_WORK_PATH}\" -Des.default.path.logs=\"${ES_LOG_PATH}\""
+
+depend() {
+ use net
+}
+
+start() {
+ # elasticsearch -Des.config=/path/to/config/file
+ # elasticsearch -Des.network.host=10.0.0.4
+
+ [ ! -f "${ES_INCLUDE}" ] && {
+ eerror "${ES_INCLUDE} must be copied into place"
+ return 1
+ }
+
+ local conf
+ local conf_file
+ for conf in elasticsearch.yml logging.yml; do
+ conf_file="${ES_CONF_PATH}/${conf}"
+ if [ ! -f "${conf_file}" ]; then
+ eerror "${conf_file} must be copied into place"
+ return 1
+ fi
+ done
+
+ ebegin "Starting ${SVCNAME}"
+
+ if [ -n "${ES_MAX_FD}" ]; then
+ ulimit -n ${ES_MAX_FD}
+ einfo "Max open filedescriptors : ${ES_MAX_FD}"
+ fi
+
+ checkpath -d -o "${ES_USER}" -m750 "/var/lib/elasticsearch"
+ checkpath -d -o "${ES_USER}" -m750 "/var/log/elasticsearch"
+ checkpath -d -o "${ES_USER}" -m750 "$(dirname "${PIDFILE}")"
+ checkpath -d -o "${ES_USER}" -m750 "${ES_BASE_PATH}"
+ checkpath -d -o "${ES_USER}" -m750 "${ES_LOG_PATH}"
+
+ start-stop-daemon --start \
+ --background \
+ --chdir "${ES_BASE_PATH}" \
+ --user="${ES_USER}" \
+ --pidfile="${PIDFILE}" \
+ --exec ${server_command} -- ${server_args}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ${SVCNAME}"
+ start-stop-daemon --stop \
+ --pidfile=${PIDFILE} \
+ --user="${ES_USER}" \
+ --retry=TERM/20/KILL/5
+ eend $?
+}
diff --git a/app-misc/elasticsearch/files/elasticsearch.service4 b/app-misc/elasticsearch/files/elasticsearch.service4
new file mode 100644
index 000000000000..739c6f8888bf
--- /dev/null
+++ b/app-misc/elasticsearch/files/elasticsearch.service4
@@ -0,0 +1,11 @@
+[Unit]
+Description=Elasticsearch
+After=network.target
+
+[Service]
+User=elasticsearch
+Environment=ES_INCLUDE=/usr/share/elasticsearch/bin/elasticsearch.in.sh
+ExecStart=/usr/share/elasticsearch/bin/elasticsearch -Des.default.path.conf=/etc/elasticsearch
+
+[Install]
+WantedBy=multi-user.target
diff --git a/app-misc/elasticsearch/metadata.xml b/app-misc/elasticsearch/metadata.xml
new file mode 100644
index 000000000000..c3eb101d09bc
--- /dev/null
+++ b/app-misc/elasticsearch/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>
+ <email>erkiferenc@gmail.com</email>
+ <name>Ferenc Erki</name>
+ <description>Proxy maintaining through chainsaw</description>
+ </maintainer>
+ <maintainer>
+ <email>chainsaw@gentoo.org</email>
+ <name>Tony Vroon</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-misc/email2trac/Manifest b/app-misc/email2trac/Manifest
new file mode 100644
index 000000000000..adbefef859bf
--- /dev/null
+++ b/app-misc/email2trac/Manifest
@@ -0,0 +1,2 @@
+DIST email2trac-2.6.2.tar.gz 104732 SHA256 4d1ccd12e18a303d3700eeb5449eb330ddbc13ed66103df79fffed950fd9243f SHA512 69b596b4c60ccc40b53ddfce5c13d5d7f27ac1fc5674e1cb3fbf84b083c2abc77d36879d665924a62b826e7d3a52d0ead1e1d693a55aae5edfc092998e01a0df WHIRLPOOL ac92802ab7fc0c0b6e0daddd3f723f1b21b2772f63dc9a6194db78572fc039c0d4f3602f1dc55caf5cc9387d481c9bf2aabb7961fb91147060ecce48926e13d5
+DIST email2trac-2.8.4.tar.gz 107791 SHA256 2673ea60f355c812d890346c1eaa9d0a65c791d214bf545b171ed66a8feceafb SHA512 f0bfd00442d50090f9cc582849026b08bb091bc72223b4569597c2ffdb57759206500da65390dc1609a24e521e137aee072d1ee3412391bf0e4b778933ff2165 WHIRLPOOL 18b35e889fc52e488dc88b7ef73302d8497961bf2710e3353b3d21c3514191bfdc4ec7d99ff9ad2c92cb9626d2db2f5dbca92e03963fe4b90e29d35f308118f4
diff --git a/app-misc/email2trac/email2trac-2.6.2-r1.ebuild b/app-misc/email2trac/email2trac-2.6.2-r1.ebuild
new file mode 100644
index 000000000000..21a97b6f79a3
--- /dev/null
+++ b/app-misc/email2trac/email2trac-2.6.2-r1.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+PYTHON_COMPAT=( python2_7 )
+inherit python-single-r1
+
+DESCRIPTION="Utilities to convert emails to trac tickets"
+HOMEPAGE="https://oss.trac.surfsara.nl/email2trac"
+SRC_URI="ftp://ftp.sara.nl/pub/outgoing/${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="${PYTHON_DEPS}
+ <www-apps/trac-1.1[${PYTHON_USEDEP}]"
+
+pkg_setup() {
+ einfo "You can set the following variables in make.conf:"
+ einfo " - EMAIL2TRAC_TRAC_USER (default: apache)"
+ einfo " - EMAIL2TRAC_MTA_USER (default: nobody)"
+
+ python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ sed -i -e "/^CFLAGS/s:=:&${CFLAGS} :" \
+ -e "s:\$(CC):& ${LDFLAGS} :" \
+ Makefile.in || die 'sed failed'
+}
+
+src_configure() {
+ econf --sysconfdir=/etc/${PN}/ \
+ --with-trac_user=${EMAIL2TRAC_TRAC_USER:-apache} \
+ --with-mta_user=${EMAIL2TRAC_MTA_USER:-nobody}
+}
diff --git a/app-misc/email2trac/email2trac-2.8.4.ebuild b/app-misc/email2trac/email2trac-2.8.4.ebuild
new file mode 100644
index 000000000000..1bd1ed0d7a30
--- /dev/null
+++ b/app-misc/email2trac/email2trac-2.8.4.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+PYTHON_COMPAT=( python2_7 )
+inherit python-single-r1
+
+DESCRIPTION="Utilities to convert emails to trac tickets"
+HOMEPAGE="https://oss.trac.surfsara.nl/email2trac"
+SRC_URI="ftp://ftp.sara.nl/pub/outgoing/${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="${PYTHON_DEPS}
+ <www-apps/trac-1.2[${PYTHON_USEDEP}]"
+
+pkg_setup() {
+ einfo "You can set the following variables in make.conf:"
+ einfo " - EMAIL2TRAC_TRAC_USER (default: apache)"
+ einfo " - EMAIL2TRAC_MTA_USER (default: nobody)"
+
+ python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ sed -i -e "/^CFLAGS/s:=:&${CFLAGS} :" \
+ -e "s:\$(CC):& ${LDFLAGS} :" \
+ Makefile.in || die 'sed failed'
+}
+
+src_configure() {
+ econf --sysconfdir=/etc/${PN}/ \
+ --with-trac_user=${EMAIL2TRAC_TRAC_USER:-apache} \
+ --with-mta_user=${EMAIL2TRAC_MTA_USER:-nobody}
+}
diff --git a/app-misc/email2trac/metadata.xml b/app-misc/email2trac/metadata.xml
new file mode 100644
index 000000000000..07e1e7150826
--- /dev/null
+++ b/app-misc/email2trac/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>web-apps</herd>
+ <herd>proxy-maintainers</herd>
+ <maintainer>
+ <email>lukas@dzunko.sk</email>
+ <name>Lukas Dzunko</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-misc/emelfm2/Manifest b/app-misc/emelfm2/Manifest
new file mode 100644
index 000000000000..6c30ef031efc
--- /dev/null
+++ b/app-misc/emelfm2/Manifest
@@ -0,0 +1,2 @@
+DIST emelfm2-0.8.1.tar.bz2 1098199 SHA256 d38355628360e6bcdb69ef4affff03dd9f7cc9bd25c999b18b648a23c6f8bba7 SHA512 0f371459b8e4ca96beb45a8ed04ea2b757356c938cbd6927244abadc01f4c89f39ca50b8a86c4ff97e5c2d068405c1969c1d028a2fba650ec9326c39bb39a65f WHIRLPOOL 1dbe7848c44a79afb40a1c663503ad57a257d1b55b4e24e1cc0c7efd3bbe0be94e3a5ba9228bc1ee1933ad967b42492ecba7e2849a33a00d188592b6b3f26a72
+DIST emelfm2-0.9.1.tar.bz2 1217126 SHA256 bfb94ff4e40c0a9c0d2a6aeb0efa22e177accbf6abd3096226d93daecd23642f SHA512 bd3a1ad2338c80d6824a2a84736470ecfa7e93f455cc8e3243944833807fe9b3544e2fea6bd6ccbddaf0188ad89ce616ed146271f6ffabec80f5dfb2f1ad6f57 WHIRLPOOL 4eaa1d95396a23c5f00ef66784f9f124f8c79e5dfe820f8bc556037109d799f5b1d30ef25a51183116ba955c931c0ec161d0e8aa3d92b79f33f0baaba7edf21d
diff --git a/app-misc/emelfm2/emelfm2-0.8.1.ebuild b/app-misc/emelfm2/emelfm2-0.8.1.ebuild
new file mode 100644
index 000000000000..08a39bb70d5e
--- /dev/null
+++ b/app-misc/emelfm2/emelfm2-0.8.1.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+inherit eutils multilib toolchain-funcs
+
+DESCRIPTION="A file manager that implements the popular two-pane design"
+HOMEPAGE="http://emelfm2.net/"
+SRC_URI="http://emelfm2.net/rel/${P}.tar.bz2"
+
+LICENSE="GPL-3 LGPL-3"
+SLOT="0"
+KEYWORDS="amd64 ~ppc ~ppc64 ~sparc x86"
+IUSE="acl gimp kernel_linux nls policykit spell udisks"
+
+COMMON_DEPEND=">=dev-libs/glib-2.26:2
+ >=x11-libs/gtk+-2.12:2
+ acl? ( sys-apps/acl )
+ gimp? ( media-gfx/gimp )
+ policykit? ( sys-auth/polkit )
+ spell? ( >=app-text/gtkspell-2.0.14:2 )"
+RDEPEND="${COMMON_DEPEND}
+ udisks? ( sys-fs/udisks:0 )"
+DEPEND="${COMMON_DEPEND}
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )"
+
+RESTRICT="test"
+
+pkg_setup() {
+ emel_use() {
+ use ${1} && echo "${2}=1" || echo "${2}=0"
+ }
+
+ #363813
+ myemelconf=(
+ GTK3=0
+ DOCS_VERSION=1
+ $(emel_use nls I18N)
+ WITH_TRANSPARENCY=1
+ $(emel_use kernel_linux WITH_KERNELFAM)
+ $(emel_use spell EDITOR_SPELLCHECK)
+ $(emel_use udisks WITH_DEVKIT)
+ $(emel_use gimp WITH_THUMBS)
+ $(emel_use acl WITH_ACL)
+ $(emel_use policykit WITH_POLKIT)
+ STRIP=0
+ )
+}
+
+src_prepare() {
+ sed -i \
+ -e 's:dbus-glib-1::' \
+ -e 's:@$(CC):$(CC):g' \
+ -e 's:@$(BIN_MSGFMT):$(BIN_MSGFMT):g' \
+ Makefile || die
+}
+
+src_compile() {
+ tc-export CC
+ emake LIB_DIR="/usr/$(get_libdir)" PREFIX="/usr" \
+ ${myemelconf[@]}
+}
+
+src_install() {
+ emake LIB_DIR="${D}/usr/$(get_libdir)" PREFIX="${D}/usr" \
+ ${myemelconf[@]} install $( use nls && echo install_i18n )
+ newicon icons/${PN}_48.png ${PN}.png
+}
diff --git a/app-misc/emelfm2/emelfm2-0.9.1-r1.ebuild b/app-misc/emelfm2/emelfm2-0.9.1-r1.ebuild
new file mode 100644
index 000000000000..220b0dcb250b
--- /dev/null
+++ b/app-misc/emelfm2/emelfm2-0.9.1-r1.ebuild
@@ -0,0 +1,88 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils multilib toolchain-funcs
+
+DESCRIPTION="A file manager that implements the popular two-pane design"
+HOMEPAGE="http://emelfm2.net/"
+SRC_URI="http://emelfm2.net/rel/${P}.tar.bz2"
+
+LICENSE="GPL-3 LGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="acl ansi gimp gtk3 kernel_linux nls policykit spell udisks"
+
+EMELFM2_LINGUAS=( de fr ja pl ru zh_CN )
+IUSE+=" ${EMELFM2_LINGUAS[@]/#/linguas_}"
+
+COMMON_DEPEND="
+ >=dev-libs/glib-2.26:2
+ !gtk3? ( >=x11-libs/gtk+-2.12:2 )
+ gtk3? ( x11-libs/gtk+:3 )
+ acl? ( sys-apps/acl )
+ gimp? ( media-gfx/gimp )
+ policykit? ( sys-auth/polkit )
+ spell? ( >=app-text/gtkspell-2.0.14:2 )
+"
+RDEPEND="
+ ${COMMON_DEPEND}
+ udisks? ( sys-fs/udisks:2 )
+"
+DEPEND="
+ ${COMMON_DEPEND}
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )
+"
+
+RESTRICT="test"
+
+src_prepare() {
+ sed -i \
+ -e 's:@$(BIN_MSGFMT):$(BIN_MSGFMT):g' \
+ -e 's:@$(CC):$(CC):g' \
+ -e 's:dbus-glib-1::' \
+ Makefile || die
+
+ local lingua
+ for lingua in ${EMELFM2_LINGUAS[@]}; do
+ use linguas_${lingua} || mv po/${lingua}.po{,.unwanted}
+ done
+}
+
+src_configure() {
+ myemelconf=(
+ $(usex acl WITH_ACL=1 WITH_ACL=0)
+ $(usex ansi WITH_OUTPUTSTYLES=1 WITH_OUTPUTSTYLES=0)
+ $(usex gimp WITH_THUMBS=1 WITH_THUMBS=0)
+ $(usex gtk3 'GTK3=1 GTK2=0' 'GTK3=0 GTK2=1')
+ $(usex kernel_linux WITH_KERNELFAM=1 WITH_KERNELFAM=0)
+ $(usex nls I18N=1 I18N=0)
+ $(usex policykit WITH_POLKIT=1 WITH_POLKIT=0)
+ $(usex spell EDITOR_SPELLCHECK=1 EDITOR_SPELLCHECK=0)
+ $(usex udisks WITH_UDISKS=1 WITH_UDISKS=0)
+ DOCS_VERSION=1
+ STRIP=0
+ WITH_TRANSPARENCY=1
+ )
+}
+
+src_compile() {
+ tc-export CC
+ emake \
+ LIB_DIR="/usr/$(get_libdir)" \
+ PREFIX="/usr" \
+ ${myemelconf[@]}
+}
+
+src_install() {
+ emake \
+ LIB_DIR="${D}/usr/$(get_libdir)" \
+ PREFIX="${D}/usr" \
+ ${myemelconf[@]} \
+ install \
+ $(usex nls install_i18n '')
+
+ newicon icons/${PN}_48.png ${PN}.png
+}
diff --git a/app-misc/emelfm2/emelfm2-0.9.1.ebuild b/app-misc/emelfm2/emelfm2-0.9.1.ebuild
new file mode 100644
index 000000000000..063788506897
--- /dev/null
+++ b/app-misc/emelfm2/emelfm2-0.9.1.ebuild
@@ -0,0 +1,88 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils multilib toolchain-funcs
+
+DESCRIPTION="A file manager that implements the popular two-pane design"
+HOMEPAGE="http://emelfm2.net/"
+SRC_URI="http://emelfm2.net/rel/${P}.tar.bz2"
+
+LICENSE="GPL-3 LGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="acl ansi gimp gtk3 kernel_linux nls policykit spell udisks"
+
+EMELFM2_LINGUAS=( de fr ja pl ru zh_CN )
+IUSE+=" ${EMELFM2_LINGUAS[@]/#/linguas_}"
+
+COMMON_DEPEND="
+ >=dev-libs/glib-2.26:2
+ !gtk3? ( >=x11-libs/gtk+-2.12:2 )
+ gtk3? ( x11-libs/gtk+:3 )
+ acl? ( sys-apps/acl )
+ gimp? ( media-gfx/gimp )
+ policykit? ( sys-auth/polkit )
+ spell? ( >=app-text/gtkspell-2.0.14:2 )
+"
+RDEPEND="
+ ${COMMON_DEPEND}
+ udisks? ( sys-fs/udisks:0 )
+"
+DEPEND="
+ ${COMMON_DEPEND}
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )
+"
+
+RESTRICT="test"
+
+src_prepare() {
+ sed -i \
+ -e 's:@$(BIN_MSGFMT):$(BIN_MSGFMT):g' \
+ -e 's:@$(CC):$(CC):g' \
+ -e 's:dbus-glib-1::' \
+ Makefile || die
+
+ local lingua
+ for lingua in ${EMELFM2_LINGUAS[@]}; do
+ use linguas_${lingua} || mv po/${lingua}.po{,.unwanted}
+ done
+}
+
+src_configure() {
+ myemelconf=(
+ $(usex acl WITH_ACL=1 WITH_ACL=0)
+ $(usex ansi WITH_OUTPUTSTYLES=1 WITH_OUTPUTSTYLES=0)
+ $(usex gimp WITH_THUMBS=1 WITH_THUMBS=0)
+ $(usex gtk3 'GTK3=1 GTK2=0' 'GTK3=0 GTK2=1')
+ $(usex kernel_linux WITH_KERNELFAM=1 WITH_KERNELFAM=0)
+ $(usex nls I18N=1 I18N=0)
+ $(usex policykit WITH_POLKIT=1 WITH_POLKIT=0)
+ $(usex spell EDITOR_SPELLCHECK=1 EDITOR_SPELLCHECK=0)
+ $(usex udisks WITH_DEVKIT=1 WITH_DEVKIT=0)
+ DOCS_VERSION=1
+ STRIP=0
+ WITH_TRANSPARENCY=1
+ )
+}
+
+src_compile() {
+ tc-export CC
+ emake \
+ LIB_DIR="/usr/$(get_libdir)" \
+ PREFIX="/usr" \
+ ${myemelconf[@]}
+}
+
+src_install() {
+ emake \
+ LIB_DIR="${D}/usr/$(get_libdir)" \
+ PREFIX="${D}/usr" \
+ ${myemelconf[@]} \
+ install \
+ $(usex nls install_i18n '')
+
+ newicon icons/${PN}_48.png ${PN}.png
+}
diff --git a/app-misc/emelfm2/metadata.xml b/app-misc/emelfm2/metadata.xml
new file mode 100644
index 000000000000..d08cba0fd23e
--- /dev/null
+++ b/app-misc/emelfm2/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>desktop-misc</herd>
+ <use><flag name='ansi'>Add support for ANSI escape sequences</flag></use>
+ <use><flag name='gtk3'>Use <pkg>x11-libs/gtk:3</pkg> instead of <pkg>x11-libs/gtk:2</pkg></flag></use>
+</pkgmetadata>
diff --git a/app-misc/empty/Manifest b/app-misc/empty/Manifest
new file mode 100644
index 000000000000..0b6d09bfd28d
--- /dev/null
+++ b/app-misc/empty/Manifest
@@ -0,0 +1 @@
+DIST empty-0.6.19b.tgz 16075 SHA256 05b7cb361ef815774abda325c09c573f8c9039ccbb71eedc743439e4637c314a SHA512 7afb2b5d08f2d3ebe0819eccef39b2e35fa532b6cbdcef49d2dbb4a5aa57fe55b1765461de9691d6eaa3188a9ecd98c291de738c13c9c2158c4f53d704b83670 WHIRLPOOL ed003801da923de6b50e6b29313b5603c18b98851e7523971b7a1059c9d14bc9545726437c6c8c41427fe7fbac531469aa7500ffb324f3cd77682208da88088b
diff --git a/app-misc/empty/empty-0.6.19b.ebuild b/app-misc/empty/empty-0.6.19b.ebuild
new file mode 100644
index 000000000000..80250f945625
--- /dev/null
+++ b/app-misc/empty/empty-0.6.19b.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Small shell utility, similar to expect(1)"
+HOMEPAGE="http://empty.sourceforge.net"
+SRC_URI="mirror://sourceforge/empty/${P}.tgz"
+LICENSE="BSD"
+SLOT="0"
+
+KEYWORDS="amd64 x86"
+IUSE="examples"
+DEPEND=""
+RDEPEND="virtual/logger"
+
+src_prepare() {
+ epatch "${FILESDIR}/overflow-fixes.patch"
+ epatch "${FILESDIR}/${PN}-respect-LDFLAGS.patch"
+}
+
+src_compile() {
+ emake CC=$(tc-getCC)
+}
+
+src_install() {
+ dobin empty
+ doman empty.1
+ dodoc README
+ use examples && dodoc -r examples
+}
diff --git a/app-misc/empty/files/empty-respect-LDFLAGS.patch b/app-misc/empty/files/empty-respect-LDFLAGS.patch
new file mode 100644
index 000000000000..f839afcf28c9
--- /dev/null
+++ b/app-misc/empty/files/empty-respect-LDFLAGS.patch
@@ -0,0 +1,11 @@
+--- empty-0.6.18b/Makefile
++++ empty-0.6.18b/Makefile
+@@ -16,7 +16,7 @@
+ PREFIX = /usr/local
+
+ all:
+- ${CC} ${CFLAGS} -Wall ${LIBS} -o empty empty.c
++ ${CC} ${CFLAGS} ${LDFLAGS} empty.c ${LIBS} -o empty
+
+ FreeBSD: all
+ NetBSD: all
diff --git a/app-misc/empty/files/overflow-fixes.patch b/app-misc/empty/files/overflow-fixes.patch
new file mode 100644
index 000000000000..96dd18024a03
--- /dev/null
+++ b/app-misc/empty/files/overflow-fixes.patch
@@ -0,0 +1,20 @@
+--- empty.c.orig 2009-07-27 18:26:42.000000000 +0100
++++ empty.c 2011-12-22 17:17:11.037090159 +0000
+@@ -584,7 +584,7 @@
+
+ for (i = 1; i < argc; i++) {
+ strncat(buf, " ", 1);
+- strncat(buf, argv[i], sizeof(buf));
++ strncat(buf, argv[i], sizeof(buf) -1);
+ }
+
+ (void)syslog(LOG_NOTICE, "forked %s", buf);
+@@ -686,7 +686,7 @@
+ while ((dent = readdir(dir)) != NULL) {
+ if (!strncmp(fmask, dent->d_name, len)) {
+ strncpy(fname, dent->d_name, sizeof(fname) - 1);
+- fname[sizeof(buf) - 1] = '\0';
++ fname[MAXPATHLEN - 1] = '\0';
+
+ strtok(fname, sep); /* empty */
+ strtok(NULL, sep); /* PPID */
diff --git a/app-misc/empty/metadata.xml b/app-misc/empty/metadata.xml
new file mode 100644
index 000000000000..08e6bc8cd26e
--- /dev/null
+++ b/app-misc/empty/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>
+ <email>pinkbyte@gentoo.org</email>
+ <name>Sergey Popov</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">empty</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/enum/Manifest b/app-misc/enum/Manifest
new file mode 100644
index 000000000000..ba926ef86cf0
--- /dev/null
+++ b/app-misc/enum/Manifest
@@ -0,0 +1 @@
+DIST enum-1.1.tar.bz2 100815 SHA256 9ba7fda59f183ca4dfd4b5f6654af8a0d36bbe3a846a16be764d8a32869ee480 SHA512 06396c5286c1e7b725c7cd7952713e21eaf917d586a3f069f2faedbf2fd191f2703ac7e67db563a54978542809552c71eda6a238a22fd2a8928d134ec471e931 WHIRLPOOL 706e1566d6ab73e9e774caff7305012b018afddf893b00c06b37dc0ef55b7e36b7a4ab5e3023f5233798bf660bdcc110f538eea2a38d78f9cc61dd34e2adf523
diff --git a/app-misc/enum/enum-1.1.ebuild b/app-misc/enum/enum-1.1.ebuild
new file mode 100644
index 000000000000..4b9730594095
--- /dev/null
+++ b/app-misc/enum/enum-1.1.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="2"
+
+DESCRIPTION="Replacement for GNU seq and BSD jot"
+HOMEPAGE="https://fedorahosted.org/enum/"
+SRC_URI="https://fedorahosted.org/releases/${PN:0:1}/${PN:1:1}/${PN}/${P}.tar.bz2"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+src_prepare() {
+ # Remove bundled getopt
+ rm -R thirdparty || die
+}
+
+src_configure() {
+ econf --disable-doc-rebuild --disable-dependency-tracking
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die 'emake install'
+ dodoc ChangeLog || die 'dodoc failed'
+}
diff --git a/app-misc/enum/metadata.xml b/app-misc/enum/metadata.xml
new file mode 100644
index 000000000000..16bcc9f800a2
--- /dev/null
+++ b/app-misc/enum/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>sping@gentoo.org</email>
+ <name>Sebastian Pipping</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-misc/esekeyd/Manifest b/app-misc/esekeyd/Manifest
new file mode 100644
index 000000000000..bae9e71487fc
--- /dev/null
+++ b/app-misc/esekeyd/Manifest
@@ -0,0 +1 @@
+DIST esekeyd-1.2.7.tar.gz 104502 SHA256 58bdac994be805d9c11b21065427c8f53684d38a1b44bb02b175fc4ee594cc56 SHA512 dc15623e0ffdd4cc7f3834b2becabf54ce61ea5190fd44734b2aa426db3d936cb5e3caada82357d6ed41db6eba41e9f792e453e2bb93c0fe62d87ac29651c89a WHIRLPOOL 75498558448fb7cf91ce79bdec21e6f3a14a582206398065e66e583ffe038bfc61e7541f3312f680492f9de600275274a6e4027c43c4b203fbbec01ea3afc94f
diff --git a/app-misc/esekeyd/esekeyd-1.2.7.ebuild b/app-misc/esekeyd/esekeyd-1.2.7.ebuild
new file mode 100644
index 000000000000..1f8fdf7f0542
--- /dev/null
+++ b/app-misc/esekeyd/esekeyd-1.2.7.ebuild
@@ -0,0 +1,15 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+DESCRIPTION="Multimedia key daemon that uses the Linux event interface"
+HOMEPAGE="http://freshmeat.net/projects/esekeyd/"
+SRC_URI="http://www.burghardt.pl/files/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 ~arm ~ppc x86"
+
+DOCS=( AUTHORS ChangeLog examples/example.conf NEWS README TODO )
diff --git a/app-misc/esekeyd/metadata.xml b/app-misc/esekeyd/metadata.xml
new file mode 100644
index 000000000000..e8270e1c2a44
--- /dev/null
+++ b/app-misc/esekeyd/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>
+ <email>maintainer-needed@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="freshmeat">esekeyd</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/evemu/Manifest b/app-misc/evemu/Manifest
new file mode 100644
index 000000000000..20dd2d0db8f2
--- /dev/null
+++ b/app-misc/evemu/Manifest
@@ -0,0 +1,3 @@
+DIST evemu-1.2.0.tar.xz 498400 SHA256 bcc2a97a8e10048ff6b9122180d27ccada63d4f8ca89e61e962201a13551f475 SHA512 41bef7b2e0f0769e4affb5633f41e5352224f5acfb5a001a27548f2236a1dc23d444bbfc3e93ea8eb518a7f4e628185eef9ca5ecefa4d87b201224bfeee28044 WHIRLPOOL 31879f637959265f7c8067c8dedd2b57fa82aeaac94af53fd42270715579163165f7a3d4fb460f2d15080c42d467c4a872c1dbc964018b684f32db49613ef97b
+DIST evemu-2.0.0.tar.xz 508212 SHA256 2734e980c2bd7450270aec49a14e04d0042a6d39d3946c23ed99a3f86c9af061 SHA512 4853c36dda5e5e015561cffe0cbfbe8e17c10562c7842dd0d9a969cd1b26a1513be49f4310733be862c847828b6dae1cb77b0ae6c98463fcd7cf8619f6502053 WHIRLPOOL a222ebd92c146e3a787b6a51ea5edb2aa373ce2be1b2b82988786e575f744ac206febce0af5c0e2be3c2e43b1155f387e6db5f1dcde5e0aa739ca09ab0f8d111
+DIST evemu-2.1.0.tar.xz 502240 SHA256 0c87360882751356e9f977ebf7438c00fe97deb232ac725dd86e5ba78203ee97 SHA512 16ed613aa465d85f617a5dd6b958b0480c55477836effc86c293facdb500152d5b387a79f14802f2db6a3c721cc754cac2e8fc605f5e689962742b8fc361c81b WHIRLPOOL bc4e9631eebe6329d726adf853e8ef716246d70cf4f3ee50497bec6d654c8483c9291a40f532d488813d0c2568cd106e03a131cfa6aab86f037ad3ee1f0a8d18
diff --git a/app-misc/evemu/evemu-1.2.0-r1.ebuild b/app-misc/evemu/evemu-1.2.0-r1.ebuild
new file mode 100644
index 000000000000..6d4a292f3902
--- /dev/null
+++ b/app-misc/evemu/evemu-1.2.0-r1.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+AUTOTOOLS_AUTORECONF=1
+AUTOTOOLS_IN_SOURCE_BUILD=1
+
+inherit autotools-utils python-single-r1
+
+DESCRIPTION="Tools and bindings for kernel input event device emulation, data capture, and replay"
+HOMEPAGE="http://www.freedesktop.org/wiki/Evemu/"
+SRC_URI="http://www.freedesktop.org/software/${PN}/${P}.tar.xz"
+
+LICENSE="LGPL-3 GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="python static-libs"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+RDEPEND="python? ( ${PYTHON_DEPS} )"
+DEPEND="app-arch/xz-utils
+ ${RDEPEND}"
+
+PATCHES=( "${FILESDIR}"/${P}-install-man.patch )
+
+src_prepare() {
+ if ! use python ; then
+ sed '/SUBDIRS/s/python//' -i Makefile.am || die
+ fi
+ autotools-utils_src_prepare
+}
+
+src_test() {
+ if use python ; then
+ if [[ ! ${EUID} -eq 0 ]] || has sandbox $FEATURES || has usersandbox $FEATURES ; then
+ ewarn "Tests require userpriv, sandbox, and usersandbox to be disabled in FEATURES."
+ else
+ emake check
+ fi
+ fi
+}
diff --git a/app-misc/evemu/evemu-2.0.0.ebuild b/app-misc/evemu/evemu-2.0.0.ebuild
new file mode 100644
index 000000000000..941084061028
--- /dev/null
+++ b/app-misc/evemu/evemu-2.0.0.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+AUTOTOOLS_AUTORECONF=1
+AUTOTOOLS_IN_SOURCE_BUILD=1
+
+inherit autotools-utils python-single-r1
+
+DESCRIPTION="Tools and bindings for kernel input event device emulation, data capture, and replay"
+HOMEPAGE="http://www.freedesktop.org/wiki/Evemu/"
+SRC_URI="http://www.freedesktop.org/software/${PN}/${P}.tar.xz"
+
+LICENSE="LGPL-3 GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="python static-libs"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+RDEPEND="python? ( ${PYTHON_DEPS} )
+ >=dev-libs/libevdev-0.5"
+DEPEND="app-arch/xz-utils
+ ${RDEPEND}"
+
+PATCHES=( "${FILESDIR}"/${PN}-1.2.0-install-man.patch )
+
+src_prepare() {
+ if ! use python ; then
+ sed '/SUBDIRS/s/python//' -i Makefile.am || die
+ fi
+ autotools-utils_src_prepare
+}
+
+src_test() {
+ if use python ; then
+ if [[ ! ${EUID} -eq 0 ]] || has sandbox $FEATURES || has usersandbox $FEATURES ; then
+ ewarn "Tests require userpriv, sandbox, and usersandbox to be disabled in FEATURES."
+ else
+ emake check
+ fi
+ fi
+}
diff --git a/app-misc/evemu/evemu-2.1.0.ebuild b/app-misc/evemu/evemu-2.1.0.ebuild
new file mode 100644
index 000000000000..73a7de9a8fea
--- /dev/null
+++ b/app-misc/evemu/evemu-2.1.0.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+AUTOTOOLS_AUTORECONF=1
+AUTOTOOLS_IN_SOURCE_BUILD=1
+
+inherit autotools-utils python-single-r1
+
+DESCRIPTION="Tools and bindings for kernel input event device emulation, data capture, and replay"
+HOMEPAGE="http://www.freedesktop.org/wiki/Evemu/"
+SRC_URI="http://www.freedesktop.org/software/${PN}/${P}.tar.xz"
+
+LICENSE="LGPL-3 GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="python static-libs"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+RDEPEND="python? ( ${PYTHON_DEPS} )
+ >=dev-libs/libevdev-1.2.99.902"
+DEPEND="app-arch/xz-utils
+ ${RDEPEND}"
+
+PATCHES=( "${FILESDIR}"/${PN}-1.2.0-install-man.patch )
+
+src_prepare() {
+ if ! use python ; then
+ sed '/SUBDIRS/s/python//' -i Makefile.am || die
+ fi
+ autotools-utils_src_prepare
+}
+
+src_test() {
+ if use python ; then
+ if [[ ! ${EUID} -eq 0 ]] || has sandbox $FEATURES || has usersandbox $FEATURES ; then
+ ewarn "Tests require userpriv, sandbox, and usersandbox to be disabled in FEATURES."
+ else
+ emake check
+ fi
+ fi
+}
diff --git a/app-misc/evemu/files/evemu-1.2.0-install-man.patch b/app-misc/evemu/files/evemu-1.2.0-install-man.patch
new file mode 100644
index 000000000000..73d18d7c7e0f
--- /dev/null
+++ b/app-misc/evemu/files/evemu-1.2.0-install-man.patch
@@ -0,0 +1,43 @@
+--- evemu-1.2.0/configure.ac
++++ evemu-1.2.0/configure.ac
+@@ -39,9 +39,6 @@
+ AC_ARG_VAR([ASCIIDOC], [Path to asciidoc command])
+ AC_PATH_PROG([ASCIIDOC], [asciidoc])
+ AM_CONDITIONAL([HAVE_DOCTOOLS], [test "x$XMLTO" != "x" && test "x$ASCIIDOC" != "x"])
+-if test "x$XMLTO" = "x" || test "x$ASCIIDOC" = "x"; then
+- AC_MSG_WARN([xmlto or asciidoc not found - cannot create man pages without it])
+-fi
+
+ AC_SUBST(AM_CFLAGS,
+ "-Wall -Wextra -pedantic")
+--- evemu-1.2.0/tools/Makefile.am
++++ evemu-1.2.0/tools/Makefile.am
+@@ -15,8 +15,6 @@
+ evemu_describe_SOURCES = evemu-record.c find_event_devices.c find_event_devices.h
+ evemu_record_SOURCES = evemu-record.c find_event_devices.c find_event_devices.h
+
+-# man page generation
+-if HAVE_DOCTOOLS
+ # actual man pages
+ man_pages_sources = evemu-describe.txt evemu-device.txt
+ # shadow man pages
+@@ -24,6 +22,8 @@
+
+ man_pages = $(man_pages_sources:.txt=.1) $(man_pages_shadows)
+
++# man page generation
++if HAVE_DOCTOOLS
+ $(man_pages_shadows): $(man_pages_sources:.txt=.1)
+
+ SUFFIXES = .1 .txt .xml
+@@ -33,9 +33,9 @@
+
+ .txt.xml:
+ $(AM_V_GEN)$(ASCIIDOC) -b docbook -d manpage -o $@ $<
++endif
+
+ EXTRA_DIST = $(man_pages_sources)
+ dist_man_MANS = $(man_pages)
+ CLEANFILES = $(dist_man_MANS)
+ MAINTAINERCLEANFILES = $(man_pages) *.xml
+-endif
diff --git a/app-misc/evemu/metadata.xml b/app-misc/evemu/metadata.xml
new file mode 100644
index 000000000000..efa5eb0078f3
--- /dev/null
+++ b/app-misc/evemu/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version = '1.0' encoding = 'UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>radhermit@gentoo.org</email>
+ <name>Tim Harder</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-misc/evtest/Manifest b/app-misc/evtest/Manifest
new file mode 100644
index 000000000000..1e25612255c2
--- /dev/null
+++ b/app-misc/evtest/Manifest
@@ -0,0 +1,6 @@
+DIST evtest-1.29-mans.tar.xz 2108 SHA256 8f5c92bb15671fd1acc3a4e66c8218115ff8f6365c4fc3ca491a728bdeff3231 SHA512 d32786fde7ca20cad445b6cce35f603fff8d39f51e6a0f7569f4cc020def77240686b3a12a969c5176c5cfc0e34270f169c4429cb9e6aa5f0684fa2c50abdf85 WHIRLPOOL ff6322a3c45e178dffa3d4c1d9768d587c7533566bc41f75d5d9eaa0ce41bc4579ba9f644a29751996a7eacca4babd47564bab6708abc8ff53c17a7779918d42
+DIST evtest-1.29.tar.bz2 21930 SHA256 6373c66e72cd461879f9fc6ee19b5b508ae1d6d365660a00cb8bcee7f415bb90 SHA512 ddbda6f1a34363a844b3e2e206afec6f6aed18c2b8c97f6e5bc9c57c1585fc00ee99ded8aded2d2674e58cfaf48c8028953059cc3024e04253f4cd961a1da2e1 WHIRLPOOL f9d1fb7e4036878e901d5da10ebe4a9a0bc01238224953322aaa9c0116e61d90a23bcbc8d1ae08d52b31188878d3f2ea13aa5cc6ccdc1819841d4a6b05a817fb
+DIST evtest-1.30-mans.tar.gz 2112 SHA256 bb66750d9871caac02c48aa309774e7043e2ff5a2fcf4188d424625583c41800 SHA512 470ac504091f9826023dd2cc62a1c0169f98bf2d6e9c4c3986e3719d67d02bb587023aa347a3fb26b0d06efae8eccdd05d88ae74556f3819416a6f6c905c4618 WHIRLPOOL fcdba792eb614bb47f35063dd8554a35e2ebd4e3a8413f3b39c54a468e8eb3d0b2bc249c7f24e763a23b3042dd55561364158ca03c9d9e272ab3aeb556db3fc1
+DIST evtest-1.30.tar.gz 25556 SHA256 68ec133d4c7834c682269cbf3c35c53ec5630a275368a8a470f461e9acceb1b7 SHA512 ea995c37c0cf8dd8a4c493895bd039e4adac5056a06e9e0275e879ca1e774e98b5cf42bc77f1ad34225b15282cc4edb6dc088cb6fb16f82250bc35fb3975c4bf WHIRLPOOL 7654c986ad4626a73ecc33e560da79d00eb1db362ede63d6d87dc84dace70091f3a08217fe92270a40583903f04da781e76e6a6fe126ce3897bc935486868da7
+DIST evtest-1.31-mans.tar.gz 1661 SHA256 38a96a8a6c6790353678aaf90336b2b0efe7b13bf2552a705336d07df05a866b SHA512 b3cd5cc8aaf6620a3243318ae42e807a8819a25082606707787ab8b1ac75f1f6dfc8b544d38a74b489d348981489153c33841ba0b0466ace3e3a83b031754321 WHIRLPOOL aa2490d4c69725d9adfc89a49942728aacf02941c0a85d9f99deb6aefd2a4e6b5a69ec5b1541b9883f2218a18151a617cb02418bd36ad3f25be209efcdeb74a6
+DIST evtest-1.31.tar.gz 17968 SHA256 c95a688ff2f116dbbb42bbe7f30175624d78895e35ad6daf4960abd0b7f92e3b SHA512 1657d880c531c6c8407bf7a66ab159a5992c9ab70b840e600e91ad3a7429a07ec2c2f3bca6848614ebbad01a4a5993e43e4388705455f9d31f8b60b06c04a7c4 WHIRLPOOL 97b6299cbdae15596c3ebf29f9a7ff3b68e58cfd3d25c7f066f2387ac08ea112cdf5a3e5e68406f15e849531dc7ff2b9f06b730bf8a9c1f4d39c7e96f64c7b4c
diff --git a/app-misc/evtest/evtest-1.29.ebuild b/app-misc/evtest/evtest-1.29.ebuild
new file mode 100644
index 000000000000..7beb6ac9ec67
--- /dev/null
+++ b/app-misc/evtest/evtest-1.29.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+inherit autotools eutils
+
+DESCRIPTION="test program for capturing input device events"
+HOMEPAGE="http://cgit.freedesktop.org/evtest/"
+SRC_URI="http://cgit.freedesktop.org/evtest/snapshot/${P}.tar.bz2
+ mirror://gentoo/${P}-mans.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 arm x86"
+IUSE="+xml"
+
+# We bundled the man pages ourselves to avoid xmlto/asciidoc.
+# We need libxml2 for the capture tool. While at runtime,
+# we have a file that can be used with xsltproc, we don't
+# directly need it ourselves, so don't depend on libxslt.
+RDEPEND="xml? ( dev-libs/libxml2 )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_prepare() {
+ # No pretty configure flag :/
+ sed -i -r \
+ -e "s:HAVE_LIBXML=(yes|no):HAVE_LIBXML=$(usex xml):g" \
+ configure.ac || die
+
+ # We pre-compile the man pages.
+ export XMLTO=/bin/true ASCIIDOC=/bin/true
+
+ eautoreconf
+}
diff --git a/app-misc/evtest/evtest-1.30.ebuild b/app-misc/evtest/evtest-1.30.ebuild
new file mode 100644
index 000000000000..e20b95798b2b
--- /dev/null
+++ b/app-misc/evtest/evtest-1.30.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+inherit autotools eutils
+
+DESCRIPTION="test program for capturing input device events"
+HOMEPAGE="http://cgit.freedesktop.org/evtest/"
+SRC_URI="http://cgit.freedesktop.org/evtest/snapshot/${PN}-${P}.tar.gz -> ${P}.tar.gz
+ mirror://gentoo/${P}-mans.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha amd64 arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc x86"
+IUSE="+xml"
+
+# We bundled the man pages ourselves to avoid xmlto/asciidoc.
+# We need libxml2 for the capture tool. While at runtime,
+# we have a file that can be used with xsltproc, we don't
+# directly need it ourselves, so don't depend on libxslt.
+# tar zcf ${P}-mans.tar.gz *.1 --transform=s:^:evtest-${P}/:
+RDEPEND="xml? ( dev-libs/libxml2 )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+S=${WORKDIR}/${PN}-${P}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-1.30-autoconf.patch
+ epatch "${FILESDIR}"/${PN}-1.30-xml.patch
+ eautoreconf
+}
+
+src_configure() {
+ # We pre-compile the man pages.
+ XMLTO=/bin/true ASCIIDOC=/bin/true \
+ econf $(use_enable xml)
+}
diff --git a/app-misc/evtest/evtest-1.31.ebuild b/app-misc/evtest/evtest-1.31.ebuild
new file mode 100644
index 000000000000..dd621d6f76b3
--- /dev/null
+++ b/app-misc/evtest/evtest-1.31.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+inherit autotools eutils
+
+DESCRIPTION="test program for capturing input device events"
+HOMEPAGE="http://cgit.freedesktop.org/evtest/"
+SRC_URI="http://cgit.freedesktop.org/evtest/snapshot/${PN}-${P}.tar.gz -> ${P}.tar.gz
+ mirror://gentoo/${P}-mans.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE=""
+
+# We bundled the man pages ourselves to avoid xmlto/asciidoc.
+# We need libxml2 for the capture tool. While at runtime,
+# we have a file that can be used with xsltproc, we don't
+# directly need it ourselves, so don't depend on libxslt.
+# tar zcf ${P}-mans.tar.gz *.1 --transform=s:^:evtest-${P}/:
+RDEPEND=""
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+S=${WORKDIR}/${PN}-${P}
+
+src_prepare() {
+ eautoreconf
+}
+
+src_configure() {
+ # We pre-compile the man pages.
+ XMLTO=$(type -P true) ASCIIDOC=$(type -P true) \
+ econf
+}
diff --git a/app-misc/evtest/files/evtest-1.30-autoconf.patch b/app-misc/evtest/files/evtest-1.30-autoconf.patch
new file mode 100644
index 000000000000..940c1316fd6f
--- /dev/null
+++ b/app-misc/evtest/files/evtest-1.30-autoconf.patch
@@ -0,0 +1,33 @@
+From d3864018ef09ef38e1733110e2643735067bc02f Mon Sep 17 00:00:00 2001
+From: Mike Frysinger <vapier@gentoo.org>
+Date: Sun, 6 Jan 2013 14:49:40 -0500
+Subject: [PATCH] use newer config headers macro
+
+With newer automake, it throws an error:
+configure.ac:5: error: 'AM_CONFIG_HEADER': this macro is obsolete.
+ You should use the 'AC_CONFIG_HEADERS' macro instead.
+
+The newer macro has been around a long time, so there's no need to
+worry about backwards compat here.
+
+Signed-off-by: Mike Frysinger <vapier@gentoo.org>
+---
+ configure.ac | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index ebf657f..9980c5a 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -2,7 +2,7 @@ AC_PREREQ([2.57])
+ AC_INIT(evtest,[1.30], [https://bugzilla.freedesktop.org/enter_bug.cgi?product=evtest], evtest)
+ AM_INIT_AUTOMAKE([foreign dist-bzip2])
+
+-AM_CONFIG_HEADER(config.h)
++AC_CONFIG_HEADERS(config.h)
+ AC_PROG_CC
+ AC_PROG_INSTALL
+
+--
+1.8.0.2
+
diff --git a/app-misc/evtest/files/evtest-1.30-xml.patch b/app-misc/evtest/files/evtest-1.30-xml.patch
new file mode 100644
index 000000000000..1fe3e6c7c34b
--- /dev/null
+++ b/app-misc/evtest/files/evtest-1.30-xml.patch
@@ -0,0 +1,40 @@
+From 92ecfec7b0a9c1f8d952d20e8a0cde5930f9264f Mon Sep 17 00:00:00 2001
+From: Mike Frysinger <vapier@gentoo.org>
+Date: Sun, 6 Jan 2013 15:09:26 -0500
+Subject: [PATCH] add a configure flag to control xml behavior
+
+The default behavior (autodetection) is unchanged.
+This adds a knob for distros to control directly.
+
+Signed-off-by: Mike Frysinger <vapier@gentoo.org>
+---
+ configure.ac | 12 ++++++++----
+ 1 file changed, 8 insertions(+), 4 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 9980c5a..e973733 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -5,11 +5,15 @@ AM_INIT_AUTOMAKE([foreign dist-bzip2])
+ AC_CONFIG_HEADERS(config.h)
+ AC_PROG_CC
+ AC_PROG_INSTALL
++PKG_PROG_PKG_CONFIG
+
+-PKG_CHECK_MODULES(XML, libxml-2.0, [HAVE_LIBXML=yes], [HAVE_LIBXML=no])
+-if test x$HAVE_LIBXML = "xno"; then
+- AC_MSG_WARN([libxml headers not available. Cannot build evtest-capture.])
+-fi
++AC_ARG_ENABLE([xml], [AS_HELP_STRING([--disable-xml], [Disable support for xml (evtest-capture)])])
++AS_IF([test "x$enable_xml" != "xno"], [
++ PKG_CHECK_MODULES(XML, libxml-2.0, [HAVE_LIBXML=yes], [HAVE_LIBXML=no])
++ AS_IF([test "x$enable_xml$HAVE_LIBXML" = "xyesno"], [
++ AC_MSG_ERROR([libxml headers not available. Cannot build evtest-capture.])
++ ])
++])
+ AM_CONDITIONAL(HAVE_LIBXML, [test "x$HAVE_LIBXML" = "xyes"])
+
+ AC_PATH_PROG(XSLTPROC, [xsltproc])
+--
+1.8.0.2
+
diff --git a/app-misc/evtest/metadata.xml b/app-misc/evtest/metadata.xml
new file mode 100644
index 000000000000..7123fa8f9ece
--- /dev/null
+++ b/app-misc/evtest/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>
+ <email>vapier@gentoo.org</email>
+</maintainer>
+</pkgmetadata>
diff --git a/app-misc/fdupes/Manifest b/app-misc/fdupes/Manifest
new file mode 100644
index 000000000000..db0a598fd79c
--- /dev/null
+++ b/app-misc/fdupes/Manifest
@@ -0,0 +1 @@
+DIST fdupes-1.51.tar.gz 48942 SHA256 87dbc85b7b9cdb9626e713dd8078bd7487bceb58d47ceaff5404a9e6fd062881 SHA512 7cbc414f25427793317667b8d5494f7247a08ba402855929de77d1db01eb3dce41ea608f8dcca047c4a7856e02b10261982cf2acd7f6a79ab726b3009c710a8d WHIRLPOOL 49c4ac195270972246e54f1249749afde889926067e6a3c88f14dbe738b1ba40c085c4b6c9fc0bcbb3fa83de0bf21c54a24eea91307143083648b333c50d7305
diff --git a/app-misc/fdupes/fdupes-1.51.ebuild b/app-misc/fdupes/fdupes-1.51.ebuild
new file mode 100644
index 000000000000..6bff666e0637
--- /dev/null
+++ b/app-misc/fdupes/fdupes-1.51.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils flag-o-matic toolchain-funcs
+
+MY_P="${PN}-${PV/_pre/-PR}"
+
+DESCRIPTION="Identify/delete duplicate files residing within specified directories"
+HOMEPAGE="https://github.com/adrianlopezroche/fdupes https://code.google.com/p/fdupes/"
+SRC_URI="
+ https://fdupes.googlecode.com/files/${P}.tar.gz
+ https://github.com/adrianlopezroche/${PN}/archive/${P}.tar.gz
+ "
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux"
+IUSE=""
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${P}-makefile.patch \
+ "${FILESDIR}"/${PN}-1.50_pre2-compare-file.patch \
+ "${FILESDIR}"/${PN}-1.50_pre2-typo.patch
+
+ append-lfs-flags
+}
+
+src_compile() {
+ emake CC=$(tc-getCC)
+}
+
+src_install() {
+ dobin fdupes
+ doman fdupes.1
+ dodoc CHANGES CONTRIBUTORS README TODO
+}
diff --git a/app-misc/fdupes/files/fdupes-1.50_pre2-compare-file.patch b/app-misc/fdupes/files/fdupes-1.50_pre2-compare-file.patch
new file mode 100644
index 000000000000..fa9e2a34a893
--- /dev/null
+++ b/app-misc/fdupes/files/fdupes-1.50_pre2-compare-file.patch
@@ -0,0 +1,58 @@
+diff -urNp fdupes-1.50-PR2.orig/fdupes.c fdupes-1.50-PR2/fdupes.c
+--- fdupes-1.50-PR2.orig/fdupes.c 2009-01-31 20:11:49.577968848 +0530
++++ fdupes-1.50-PR2/fdupes.c 2009-01-31 22:01:11.872219443 +0530
+@@ -492,7 +492,10 @@ file_t **checkmatch(filetree_t **root, f
+ else {
+ if (checktree->file->crcpartial == NULL) {
+ crcsignature = getcrcpartialsignature(checktree->file->d_name);
+- if (crcsignature == NULL) return NULL;
++ if (crcsignature == NULL) {
++ errormsg ("cannot read file %s\n", checktree->file->d_name);
++ return NULL;
++ }
+
+ checktree->file->crcpartial = (char*) malloc(strlen(crcsignature)+1);
+ if (checktree->file->crcpartial == NULL) {
+@@ -504,7 +507,10 @@ file_t **checkmatch(filetree_t **root, f
+
+ if (file->crcpartial == NULL) {
+ crcsignature = getcrcpartialsignature(file->d_name);
+- if (crcsignature == NULL) return NULL;
++ if (crcsignature == NULL) {
++ errormsg ("cannot read file %s\n", file->d_name);
++ return NULL;
++ }
+
+ file->crcpartial = (char*) malloc(strlen(crcsignature)+1);
+ if (file->crcpartial == NULL) {
+@@ -577,8 +583,8 @@ file_t **checkmatch(filetree_t **root, f
+
+ int confirmmatch(FILE *file1, FILE *file2)
+ {
+- unsigned char c1 = 0;
+- unsigned char c2 = 0;
++ unsigned char c1[CHUNK_SIZE];
++ unsigned char c2[CHUNK_SIZE];
+ size_t r1;
+ size_t r2;
+
+@@ -586,14 +592,13 @@ int confirmmatch(FILE *file1, FILE *file
+ fseek(file2, 0, SEEK_SET);
+
+ do {
+- r1 = fread(&c1, sizeof(c1), 1, file1);
+- r2 = fread(&c2, sizeof(c2), 1, file2);
++ r1 = fread(c1, 1, sizeof(c1), file1);
++ r2 = fread(c2, 1, sizeof(c2), file2);
+
+- if (c1 != c2) return 0; /* file contents are different */
+- } while (r1 && r2);
++ if (r1 != r2) return 0; /* file lengths are different */
++ if (memcmp (c1, c2, r1)) return 0; /* file contents are different */
++ } while (r2);
+
+- if (r1 != r2) return 0; /* file lengths are different */
+-
+ return 1;
+ }
+
diff --git a/app-misc/fdupes/files/fdupes-1.50_pre2-lfs.patch b/app-misc/fdupes/files/fdupes-1.50_pre2-lfs.patch
new file mode 100644
index 000000000000..bd63f83291c1
--- /dev/null
+++ b/app-misc/fdupes/files/fdupes-1.50_pre2-lfs.patch
@@ -0,0 +1,21 @@
+diff -urNp fdupes-1.50-PR2.orig/fdupes.c fdupes-1.50-PR2/fdupes.c
+--- fdupes-1.50-PR2.orig/fdupes.c 2009-01-31 20:11:49.577968848 +0530
++++ fdupes-1.50-PR2/fdupes.c 2009-01-31 20:29:17.103220311 +0530
+@@ -643,7 +643,7 @@ void printmatches(file_t *files)
+ while (files != NULL) {
+ if (files->hasdupes) {
+ if (!ISFLAG(flags, F_OMITFIRST)) {
+- if (ISFLAG(flags, F_SHOWSIZE)) printf("%ld byte%seach:\n", files->size,
++ if (ISFLAG(flags, F_SHOWSIZE)) printf("%lld byte%seach:\n", files->size,
+ (files->size != 1) ? "s " : " ");
+ if (ISFLAG(flags, F_DSAMELINE)) escapefilename("\\ ", &files->d_name);
+ printf("%s%c", files->d_name, ISFLAG(flags, F_DSAMELINE)?' ':'\n');
+@@ -796,7 +796,7 @@ void deletefiles(file_t *files, int prom
+ do {
+ printf("Set %d of %d, preserve files [1 - %d, all]",
+ curgroup, groups, counter);
+- if (ISFLAG(flags, F_SHOWSIZE)) printf(" (%ld byte%seach)", files->size,
++ if (ISFLAG(flags, F_SHOWSIZE)) printf(" (%lld byte%seach)", files->size,
+ (files->size != 1) ? "s " : " ");
+ printf(": ");
+ fflush(stdout);
diff --git a/app-misc/fdupes/files/fdupes-1.50_pre2-makefile.patch b/app-misc/fdupes/files/fdupes-1.50_pre2-makefile.patch
new file mode 100644
index 000000000000..ed2e9871d869
--- /dev/null
+++ b/app-misc/fdupes/files/fdupes-1.50_pre2-makefile.patch
@@ -0,0 +1,23 @@
+--- fdupes-1.50-PR2/Makefile.orig 2010-11-19 19:05:18.152330536 -0800
++++ fdupes-1.50-PR2/Makefile 2010-11-19 19:06:00.998659992 -0800
+@@ -72,9 +72,9 @@
+ # Make Configuration
+ #
+ CC = gcc
+-COMPILER_OPTIONS = -Wall -O -g
++COMPILER_OPTIONS = -Wall
+
+-CFLAGS= $(COMPILER_OPTIONS) -I. -DVERSION=\"$(VERSION)\" $(EXTERNAL_MD5) $(EXPERIMENTAL_RBTREE) $(OMIT_GETOPT_LONG)
++CFLAGS += $(COMPILER_OPTIONS) -I. -DVERSION=\"$(VERSION)\" $(EXTERNAL_MD5) $(EXPERIMENTAL_RBTREE) $(OMIT_GETOPT_LONG)
+
+ INSTALL_PROGRAM = $(INSTALL) -c -m 0755
+ INSTALL_DATA = $(INSTALL) -c -m 0644
+@@ -94,7 +94,7 @@
+ all: fdupes
+
+ fdupes: $(OBJECT_FILES)
+- $(CC) $(CFLAGS) -o fdupes $(OBJECT_FILES)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o fdupes $(OBJECT_FILES)
+
+ installdirs:
+ test -d $(BIN_DIR) || -$(MKDIR) $(BIN_DIR)
diff --git a/app-misc/fdupes/files/fdupes-1.50_pre2-typo.patch b/app-misc/fdupes/files/fdupes-1.50_pre2-typo.patch
new file mode 100644
index 000000000000..1615a15f49b1
--- /dev/null
+++ b/app-misc/fdupes/files/fdupes-1.50_pre2-typo.patch
@@ -0,0 +1,12 @@
+diff -urNp fdupes-1.50-PR2.orig/fdupes.1 fdupes-1.50-PR2/fdupes.1
+--- fdupes-1.50-PR2.orig/fdupes.1 2009-01-31 20:11:49.581967819 +0530
++++ fdupes-1.50-PR2/fdupes.1 2009-01-31 20:32:46.383969471 +0530
+@@ -84,7 +84,7 @@ If fdupes returns with an error message
+ .B fdupes: error invoking md5sum
+ it means the program has been compiled to use an external
+ program to calculate MD5 signatures (otherwise, fdupes uses
+-interal routines for this purpose), and an error has occurred
++internal routines for this purpose), and an error has occurred
+ while attempting to execute it. If this is the case, the
+ specified program should be properly installed prior
+ to running fdupes.
diff --git a/app-misc/fdupes/files/fdupes-1.51-makefile.patch b/app-misc/fdupes/files/fdupes-1.51-makefile.patch
new file mode 100644
index 000000000000..138914239a90
--- /dev/null
+++ b/app-misc/fdupes/files/fdupes-1.51-makefile.patch
@@ -0,0 +1,23 @@
+--- fdupes-1.50-PR2/Makefile.orig 2010-11-19 19:05:18.152330536 -0800
++++ fdupes-1.50-PR2/Makefile 2010-11-19 19:06:00.998659992 -0800
+@@ -72,9 +72,9 @@
+ # Make Configuration
+ #
+ CC = gcc
+-COMPILER_OPTIONS = -Wall -O -g
++COMPILER_OPTIONS = -Wall
+
+-CFLAGS= $(COMPILER_OPTIONS) -I. -DVERSION=\"$(VERSION)\" $(EXTERNAL_MD5) $(OMIT_GETOPT_LONG) $(FILEOFFSET_64BIT)
++CFLAGS += $(COMPILER_OPTIONS) -I. -DVERSION=\"$(VERSION)\" $(EXTERNAL_MD5) $(OMIT_GETOPT_LONG) $(FILEOFFSET_64BIT)
+
+ INSTALL_PROGRAM = $(INSTALL) -c -m 0755
+ INSTALL_DATA = $(INSTALL) -c -m 0644
+@@ -94,7 +94,7 @@
+ all: fdupes
+
+ fdupes: $(OBJECT_FILES)
+- $(CC) $(CFLAGS) -o fdupes $(OBJECT_FILES)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o fdupes $(OBJECT_FILES)
+
+ installdirs:
+ test -d $(BIN_DIR) || $(MKDIR) $(BIN_DIR)
diff --git a/app-misc/fdupes/metadata.xml b/app-misc/fdupes/metadata.xml
new file mode 100644
index 000000000000..b33a33f26d14
--- /dev/null
+++ b/app-misc/fdupes/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>shell-tools</herd>
+ <upstream>
+ <remote-id type="github">adrianlopezroche/fdupes</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/fdutils/Manifest b/app-misc/fdutils/Manifest
new file mode 100644
index 000000000000..7c083712c10a
--- /dev/null
+++ b/app-misc/fdutils/Manifest
@@ -0,0 +1,5 @@
+DIST fdutils-5.4-20020222.diff.gz 25310 SHA256 259c340a5956272e60385d0b8ae0a04b3d2ae0fc395114672536cba5f50bf903 SHA512 069583e796f86266e486ad65009d6a8163fc56b59f957f34ab144cc25188b868c950a48e2fd25fc876cd5b1fa3faa40bdc4c16e4690fe3a2a47f933f85e31094 WHIRLPOOL 9b679a1a0b7254a1d72de083c3ae3fa9c329234c6da6138ad08649cde8fbff002e31ba8f0d4de504c3a98404a88ab23a3dc76a60b51599ee18af786f157e2d12
+DIST fdutils-5.4.tar.gz 190535 SHA256 20ebb4fa9ec74e669eb0377819fafbf177325e930906032649aa8344bb34b9e9 SHA512 3c2dde9d2e14f771f6916851827df5b2dde62e3522b6ceb411bf0772800a4d8ed4721d99ad170b81de0cc8dba41a60817232993f3d69eb07141e1929ac626570 WHIRLPOOL 20626366bc1ad4334184de97c8ef43d50a00496be80f298a59eeb1144f493750cea61a39cc43ff8d251794854ec0a635141bc39d43cba9fad36c411bd0710da2
+DIST fdutils-5.5.tar.gz 222801 SHA256 87d5bbe8094558463acc5902664c58afd794322b0ea3ab3c2ed7b362c583a48a SHA512 c9eab0b8931bbd11fcacfeff54c87059844b068595725abb00c7c605cba0bdc7c9abcd31d0a0186786306a9136eac2ec3bad43842f0383acdb162ccbb39a73b8 WHIRLPOOL 622ded0b8f56257f42fdb7ab7ce648a3d813882c2b05ab30cc36c1b447b66e8c51757ce972b43ffd65d7929be7b7aed72ff3fe235c8fa47a263739ae1daace14
+DIST fdutils_5.5-20060227-6.debian.tar.gz 54489 SHA256 51fae03acb4f087b09c076dc3ec4e7b31362f1e1a9fa7b2b17d6dade1cd512fb SHA512 db6759bd2b98ae65bca39cf5b09fdb250371e02daa7665d8d21f93c3ab968cfe345cecb20faedaf2600104b22e2fb4df6868860dac3ead0ffb28d2141c8d7149 WHIRLPOOL f34a8d5d98a5b89544270dad4c3198881062aef7bec99e2dbfc186bfeab2e24f5ac741b487fac8136d7bddce907527645116d26d21f5f1af9e6d4f6c581196e8
+DIST fdutils_5.5-20060227.orig.tar.gz 222915 SHA256 a867b381adc3596ca9a0c9139773bef18a38ceb5fa0e7401af46813c3a4b8d58 SHA512 a25d23827b9178a9a54d0012ad20248072e07aa5798bb3661fd0412d2441239b7bbf1778b5e34acb1a09a25a76e44c1801b706a242ce3b2337c06757e0ac02dd WHIRLPOOL 4baa17276258669d950a0b3199db23521ebcd63ebe069f9ad94ec1903dd62e142314ad411c6d40a7323f5cc4869f3fab147ca3eb930f4ae0c7dcaaea3362c442
diff --git a/app-misc/fdutils/fdutils-5.4.20020222-r1.ebuild b/app-misc/fdutils/fdutils-5.4.20020222-r1.ebuild
new file mode 100644
index 000000000000..ba50d2dd7fe4
--- /dev/null
+++ b/app-misc/fdutils/fdutils-5.4.20020222-r1.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit eutils
+
+S=${WORKDIR}/${PN}-5.4
+DESCRIPTION="utilities for configuring and debugging the Linux floppy driver"
+HOMEPAGE="http://fdutils.linux.lu/"
+SRC_URI="http://fdutils.linux.lu/${PN}-5.4.tar.gz
+ http://fdutils.linux.lu/${PN}-5.4-20020222.diff.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="x86"
+IUSE="doc"
+
+DEPEND=">=sys-fs/mtools-3
+ doc? ( virtual/texi2dvi )"
+
+src_unpack() {
+ unpack ${A}
+ epatch "${WORKDIR}/${PN}-5.4-20020222.diff"
+
+ # the man 4 fd manpage is better in the man-pages package, so stop it
+ # from installing
+ epatch "${FILESDIR}/${PN}-no-fd.4-manpage.diff"
+}
+
+src_compile() {
+ econf --enable-fdmount-floppy-only || die
+
+ if use doc
+ then
+ make || die
+ else
+ make compile || die
+ fi
+}
+
+src_install() {
+ dodir /usr/bin /usr/share/man/man1
+
+ einstall || die
+
+ insinto /etc
+ doins src/mediaprm
+ dodoc Changelog
+}
diff --git a/app-misc/fdutils/fdutils-5.5-r2.ebuild b/app-misc/fdutils/fdutils-5.5-r2.ebuild
new file mode 100644
index 000000000000..8aacf6a6b7b5
--- /dev/null
+++ b/app-misc/fdutils/fdutils-5.5-r2.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit eutils flag-o-matic
+
+DESCRIPTION="utilities for configuring and debugging the Linux floppy driver"
+HOMEPAGE="http://fdutils.linux.lu/"
+SRC_URI="http://fdutils.linux.lu/${P}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~ppc ~x86"
+IUSE="doc"
+
+RDEPEND=">=sys-fs/mtools-3"
+
+DEPEND="${RDEPEND}
+ doc? ( virtual/texi2dvi )"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ # the man 4 fd manpage is better in the man-pages package, so stop it
+ # from installing
+ epatch "${FILESDIR}/${PN}-no-fd.4-manpage.diff"
+ epatch "${FILESDIR}/${P}-destdirfix.patch"
+ sed -i -e '/\$(INSTALL) -c/s/ -s / /' src/Makefile.in || die "Failed to sed upstream src/Makefile.in to prevent premature strip"
+}
+
+src_compile() {
+ econf --enable-fdmount-floppy-only || die
+
+ # parallel make unsafe (bug#315577)
+ emake -j1 $(use doc || echo compile) || die "emake failed"
+}
+
+src_install() {
+ dodoc Changelog
+ use doc && dodir /usr/share/info/
+ dodir /etc
+ emake -j1 DESTDIR="${D}" install || die
+}
diff --git a/app-misc/fdutils/fdutils-5.5.20060227.ebuild b/app-misc/fdutils/fdutils-5.5.20060227.ebuild
new file mode 100644
index 000000000000..3658976c3482
--- /dev/null
+++ b/app-misc/fdutils/fdutils-5.5.20060227.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils
+
+MY_P=${PN}_5.5-20060227
+
+DESCRIPTION="utilities for configuring and debugging the Linux floppy driver"
+HOMEPAGE="http://fdutils.linux.lu/"
+SRC_URI="mirror://debian/pool/main/f/${PN}/${MY_P}.orig.tar.gz
+ mirror://debian/pool/main/f/${PN}/${MY_P}-6.debian.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="doc"
+
+RDEPEND=">=sys-fs/mtools-4"
+DEPEND="${RDEPEND}
+ sys-apps/texinfo
+ virtual/os-headers
+ doc? ( virtual/texi2dvi )"
+
+S=${WORKDIR}/${PN}-5.5-20060227
+
+src_prepare() {
+ local d="${WORKDIR}"/debian/patches
+ EPATCH_SOURCE="${d}" epatch $(<"${d}"/series)
+ sed -i -e 's:{LDFLAFS}:(LDFLAGS):' src/Makefile.in || die #337721
+}
+
+src_configure() {
+ econf --enable-fdmount-floppy-only
+}
+
+src_compile() {
+ emake -j1 $(use doc || echo compile)
+}
+
+src_install() {
+ dodir /etc
+ use doc && dodir /usr/share/info
+
+ emake -j1 DESTDIR="${D}" install
+
+ # The copy in sys-apps/man-pages is more recent
+ rm -f "${ED}"/usr/share/man/man4/fd.4 || die
+
+ # Rename to match binary
+ mv "${ED}"/usr/share/man/man1/{makefloppies,MAKEFLOPPIES}.1 || die
+}
diff --git a/app-misc/fdutils/files/fdutils-5.5-destdirfix.patch b/app-misc/fdutils/files/fdutils-5.5-destdirfix.patch
new file mode 100644
index 000000000000..47d1918b1f42
--- /dev/null
+++ b/app-misc/fdutils/files/fdutils-5.5-destdirfix.patch
@@ -0,0 +1,140 @@
+--- fdutils-5.5/doc/Makefile.in.orig 2005-07-16 19:54:56.000000000 +1000
++++ fdutils-5.5/doc/Makefile.in 2005-07-16 20:00:42.000000000 +1000
+@@ -79,68 +79,68 @@
+
+ # Don't cd, to avoid breaking install-sh references.
+ install-info: info
+- $(top_srcdir)/mkinstalldirs $(infodir)
++ $(top_srcdir)/mkinstalldirs $(DESTDIR)$(infodir)
+ if test -f fdutils.info; then \
+ for i in fdutils.info*; do \
+- $(INSTALL_DATA) $$i $(infodir)/$$i; \
++ $(INSTALL_DATA) $$i $(DESTDIR)$(infodir)/$$i; \
+ done; \
+ else \
+ for i in $(srcdir)/fdutils.info*; do \
+- $(INSTALL_DATA) $$i $(infodir)/`echo $$i | sed 's|^$(srcdir)/||'`; \
++ $(INSTALL_DATA) $$i $(DESTDIR)$(infodir)/`echo $$i | sed 's|^$(srcdir)/||'`; \
+ done; \
+ fi; \
+ if [ -n "$(INSTALL_INFO)" ] ; then \
+ if [ -f $(infodir)/dir.info ] ; then \
+- $(INSTALL_INFO) $(infodir)/fdutils.info $(infodir)/dir.info; \
++ $(INSTALL_INFO) $(DESTDIR)$(infodir)/fdutils.info $(DESTDIR)$(infodir)/dir.info; \
+ fi; \
+ if [ -f $(infodir)/dir ] ; then \
+- $(INSTALL_INFO) $(infodir)/fdutils.info $(infodir)/dir; \
++ $(INSTALL_INFO) $(DESTDIR)$(infodir)/fdutils.info $(DESTDIR)$(infodir)/dir; \
+ fi; \
+ fi
+
+
+
+ install-man:
+- $(top_srcdir)/mkinstalldirs $(mandir1)
+- $(top_srcdir)/mkinstalldirs $(mandir4)
+- $(top_srcdir)/mkinstalldirs $(mandir8)
++ $(top_srcdir)/mkinstalldirs $(DESTDIR)$(mandir1)
++ $(top_srcdir)/mkinstalldirs $(DESTDIR)$(mandir4)
++ $(top_srcdir)/mkinstalldirs $(DESTDIR)$(mandir8)
+ for i in $(MANPAGES1); do \
+ install -c -m $(MANPERM) -o $(UID) -g $(GID) \
+- $(srcdir)/$$i $(mandir1)/$$i; \
++ $(srcdir)/$$i $(DESTDIR)$(mandir1)/$$i; \
+ done
+
+ for i in $(MANPAGES4); do \
+ install -c -m $(MANPERM) -o $(UID) -g $(GID) \
+- $(srcdir)/$$i $(mandir4)/$$i; \
++ $(srcdir)/$$i $(DESTDIR)$(mandir4)/$$i; \
+ done
+
+ # for i in $(MANPAGES8); do \
+ # install -c -m $(MANPERM) -o $(UID) -g $(GID) \
+-# $(srcdir)/$$i $(mandir8)/$$i; \
++# $(srcdir)/$$i $(DESTDIR)$(mandir8)/$$i; \
+ # done
+
+- ( cd $(mandir1); \
+- ln -sf fdmount.1 $(mandir1)/fdumount.1; \
+- ln -sf fdmount.1 $(mandir1)/fdlist.1; \
+- ln -sf fdmount.1 $(mandir1)/fdmountd.1; \
+- ln -sf xdfcopy.1 $(mandir1)/xdfformat.1 \
++ ( cd $(DESTDIR)$(mandir1); \
++ ln -sf fdmount.1 $(DESTDIR)$(mandir1)/fdumount.1; \
++ ln -sf fdmount.1 $(DESTDIR)$(mandir1)/fdlist.1; \
++ ln -sf fdmount.1 $(DESTDIR)$(mandir1)/fdmountd.1; \
++ ln -sf xdfcopy.1 $(DESTDIR)$(mandir1)/xdfformat.1 \
+ )
+
+ install-zman:
+ for i in $(MANPAGES1); do \
+ gzip < $(srcdir)/$$i >_; \
+ install -c -m $(MANPERM) -o $(UID) -g $(GID) \
+- _ $(mandir1)/$$i.gz; \
++ _ $(DESTDIR)$(mandir1)/$$i.gz; \
+ done
+ for i in $(MANPAGES4); do \
+ gzip < $(srcdir)/$$i >_; \
+ install -c -m $(MANPERM) -o $(UID) -g $(GID) \
+- _ $(mandir4)/$$i.gz; \
++ _ $(DESTDIR)$(mandir4)/$$i.gz; \
+ done
+ for i in $(MANPAGES8); do \
+ gzip < $(srcdir)/$$i >_; \
+ install -c -m $(MANPERM) -o $(UID) -g $(GID) \
+- _ $(mandir8)/$$i.gz; \
++ _ $(DESTDIR)$(mandir8)/$$i.gz; \
+ done
+ rm _
+
+--- fdutils-5.5/src/Makefile.in.orig 2005-07-16 19:51:09.000000000 +1000
++++ fdutils-5.5/src/Makefile.in 2005-07-16 19:54:39.000000000 +1000
+@@ -116,27 +116,27 @@
+
+
+ install-conf:
+- $(top_srcdir)/mkinstalldirs $(syconfdir)
++ $(top_srcdir)/mkinstalldirs $(DESTDIR)$(syconfdir)
+ if [ ! -f $(sysconfdir)/mediaprm ] ; then \
+- cp $(srcdir)/mediaprm $(sysconfdir) ; \
++ cp $(srcdir)/mediaprm $(DESTDIR)$(sysconfdir) ; \
+ fi
+
+ install-bin: all
+- $(top_srcdir)/mkinstalldirs $(bindir)
+- $(INSTALL) -c -m $(PERM) -o $(UID) -g $(GID) $(srcdir)/MAKEFLOPPIES $(bindir)
+- $(INSTALL) -c -s -m $(PERM) -o $(UID) -g $(GID) diskd $(bindir)
+- $(INSTALL) -c -s -m $(PERM) -o $(UID) -g $(GID) diskseekd $(bindir)
+- $(INSTALL) -c -s -m $(PERM) -o $(UID) -g $(GID) floppycontrol $(bindir)
+- $(INSTALL) -c -s -m $(PERM) -o $(UID) -g $(GID) floppymeter $(bindir)
+- $(INSTALL) -c -s -m $(PERM) -o $(UID) -g $(GID) getfdprm $(bindir)
+- $(INSTALL) -c -s -m $(PERM) -o $(UID) -g $(GID) setfdprm $(bindir)
+- $(INSTALL) -c -s -m $(PERM) -o $(UID) -g $(GID) fdrawcmd $(bindir)
+- $(INSTALL) -c -s -m $(PERM) -o $(UID) -g $(GID) superformat $(bindir)
+- $(INSTALL) -c -s -m $(PERM) -o $(UID) -g $(GID) xdfcopy $(bindir)
+- $(INSTALL) -c -s -m $(SPERM) -o $(UID) -g $(GID) fdmount $(bindir)
+- $(INSTALL) -c -s -m $(SPERM) -o $(UID) -g $(GID) fdmount $(bindir)/fdumount
+- ( cd $(bindir); \
+- ln -sf xdfcopy $(bindir)/xdfformat; \
+- ln -sf fdmount $(bindir)/fdumount; \
+- ln -sf fdmount $(bindir)/fdlist; \
+- ln -sf fdmount $(bindir)/fdmountd )
++ $(top_srcdir)/mkinstalldirs $(DESTDIR)$(bindir)
++ $(INSTALL) -c -m $(PERM) -o $(UID) -g $(GID) $(srcdir)/MAKEFLOPPIES $(DESTDIR)$(bindir)
++ $(INSTALL) -c -s -m $(PERM) -o $(UID) -g $(GID) diskd $(DESTDIR)$(bindir)
++ $(INSTALL) -c -s -m $(PERM) -o $(UID) -g $(GID) diskseekd $(DESTDIR)$(bindir)
++ $(INSTALL) -c -s -m $(PERM) -o $(UID) -g $(GID) floppycontrol $(DESTDIR)$(bindir)
++ $(INSTALL) -c -s -m $(PERM) -o $(UID) -g $(GID) floppymeter $(DESTDIR)$(bindir)
++ $(INSTALL) -c -s -m $(PERM) -o $(UID) -g $(GID) getfdprm $(DESTDIR)$(bindir)
++ $(INSTALL) -c -s -m $(PERM) -o $(UID) -g $(GID) setfdprm $(DESTDIR)$(bindir)
++ $(INSTALL) -c -s -m $(PERM) -o $(UID) -g $(GID) fdrawcmd $(DESTDIR)$(bindir)
++ $(INSTALL) -c -s -m $(PERM) -o $(UID) -g $(GID) superformat $(DESTDIR)$(bindir)
++ $(INSTALL) -c -s -m $(PERM) -o $(UID) -g $(GID) xdfcopy $(DESTDIR)$(bindir)
++ $(INSTALL) -c -s -m $(SPERM) -o $(UID) -g $(GID) fdmount $(DESTDIR)$(bindir)
++ $(INSTALL) -c -s -m $(SPERM) -o $(UID) -g $(GID) fdmount $(DESTDIR)$(bindir)/fdumount
++ ( cd $(DESTDIR)$(bindir); \
++ ln -sf xdfcopy xdfformat; \
++ ln -sf fdmount fdumount; \
++ ln -sf fdmount fdlist; \
++ ln -sf fdmount fdmountd )
diff --git a/app-misc/fdutils/files/fdutils-no-fd.4-manpage.diff b/app-misc/fdutils/files/fdutils-no-fd.4-manpage.diff
new file mode 100644
index 000000000000..909ecd971da9
--- /dev/null
+++ b/app-misc/fdutils/files/fdutils-no-fd.4-manpage.diff
@@ -0,0 +1,12 @@
+diff -urN fdutils-5.4.old/doc/Makefile.in fdutils-5.4/doc/Makefile.in
+--- fdutils-5.4.old/doc/Makefile.in 1999-07-02 15:03:25.000000000 -0700
++++ fdutils-5.4/doc/Makefile.in 2003-12-10 00:24:36.000000000 -0800
+@@ -22,7 +22,7 @@
+ floppycontrol.1 makefloppies.1 xdfcopy.1 fdmount.1 \
+ floppymeter.1 setfdprm.1
+
+-MANPAGES4 = fd.4
++MANPAGES4 =
+ MANPERM = 644
+ UID = root
+ GID = root
diff --git a/app-misc/fdutils/metadata.xml b/app-misc/fdutils/metadata.xml
new file mode 100644
index 000000000000..74d25af22b2e
--- /dev/null
+++ b/app-misc/fdutils/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>kernel-misc</herd>
+</pkgmetadata>
diff --git a/app-misc/figlet/Manifest b/app-misc/figlet/Manifest
new file mode 100644
index 000000000000..b7875db3adf8
--- /dev/null
+++ b/app-misc/figlet/Manifest
@@ -0,0 +1 @@
+DIST figlet-2.2.5.tar.gz 233201 SHA256 bf88c40fd0f077dab2712f54f8d39ac952e4e9f2e1882f1195be9e5e4257417d SHA512 bb9610fd89a51dd3e65c485653fe1292f47dbca7cb9a05af4ce317f5d776bb346ae455aec07fc37c290f6658639920fd7c431c1135a0f4d456a21c0bd25f99fb WHIRLPOOL bc5408f6e530adc099c1ef1798b5bbdf992f8614ba6e8b14d7cbc2c42232e62c9fa54e47fb8a2991e5e86b3fba4d43f1f9356c5dee77ff07d89dfbc16b60bdd8
diff --git a/app-misc/figlet/figlet-2.2.5.ebuild b/app-misc/figlet/figlet-2.2.5.ebuild
new file mode 100644
index 000000000000..e94e350280ba
--- /dev/null
+++ b/app-misc/figlet/figlet-2.2.5.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils bash-completion-r1 toolchain-funcs
+
+DESCRIPTION="program for making large letters out of ordinary text"
+HOMEPAGE="http://www.figlet.org/"
+SRC_URI="ftp://ftp.figlet.org/pub/figlet/program/unix/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha amd64 arm hppa ~ia64 ~mips ppc ppc64 ~sparc x86 ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+IUSE=""
+
+src_compile() {
+ emake clean
+ emake \
+ CC="$(tc-getCC)" \
+ LD="$(tc-getCC)" \
+ CFLAGS="${CFLAGS}" \
+ LDFLAGS="${LDFLAGS}" \
+ prefix="${EPREFIX}/usr" \
+ all
+}
+
+src_install() {
+ emake \
+ DESTDIR="${ED}" \
+ BINDIR="${EPREFIX}/usr/bin" \
+ MANDIR="${EPREFIX}/usr/share/man" \
+ prefix="${EPREFIX}/usr" \
+ install
+
+ doman chkfont.6 figlet.6 figlist.6 showfigfonts.6
+ dodoc README figfont.txt
+
+ dobashcomp "${FILESDIR}"/figlet.bashcomp
+}
diff --git a/app-misc/figlet/files/figlet.bashcomp b/app-misc/figlet/files/figlet.bashcomp
new file mode 100644
index 000000000000..6a64da3f3660
--- /dev/null
+++ b/app-misc/figlet/files/figlet.bashcomp
@@ -0,0 +1,52 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+# bash command-line completion for figlet
+# author: Aaron Walker <ka0ttic@gentoo.org>
+
+_figlet() {
+ local cur prev opts x
+ COMPREPLY=()
+ cur="${COMP_WORDS[COMP_CWORD]}"
+ prev="${COMP_WORDS[COMP_CWORD-1]}"
+ opts="-f -d -c -l -r -x -t -w -p -n -D -E -C -N -s -S -k -W -o \
+ -m -v -I -L -R -X"
+
+ if [[ "${cur}" == -* || ${COMP_CWORD} -eq 1 ]] ; then
+ COMPREPLY=( $(compgen -W "${opts}" -- $cur) )
+ return 0
+ fi
+
+ case "${prev}" in
+ -f)
+ COMPREPLY=( $(compgen -f -- $cur) \
+ $(compgen -W "$(\
+ for x in /usr/share/figlet/*.flf ; do \
+ [[ -f ${x} ]] && { local y=${x##*/} ; echo ${y%.*} ; } \
+ done)" -- $cur) )
+ ;;
+ -d)
+ COMPREPLY=( $(compgen -d -S '/' -- $cur) )
+ ;;
+ -C)
+ COMPREPLY=( $(compgen -f -- $cur) \
+ $(compgen -W "$(\
+ for x in /usr/share/figlet/*.flc ; do \
+ [[ -f ${x} ]] && { local y=${x##*/} ; echo ${y%.*} ; } \
+ done)" -- $cur) )
+ ;;
+ -m)
+ COMPREPLY=( $(compgen -W "$(\
+ for ((x = 1 ; x < 64 ; x++)) ; do \
+ echo ${x} ; \
+ done)" ) )
+ ;;
+ -I)
+ COMPREPLY=( $(compgen -W "-1 0 1 2 3 4" -- $cur) )
+ ;;
+ esac
+}
+complete -o filenames -F _figlet figlet
+
+# vim: set ft=sh tw=80 sw=4 et :
diff --git a/app-misc/figlet/metadata.xml b/app-misc/figlet/metadata.xml
new file mode 100644
index 000000000000..2c7916afbb38
--- /dev/null
+++ b/app-misc/figlet/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer>
+<email>mr_bones_@gentoo.org</email>
+<name>Michael Sterrett</name>
+</maintainer>
+</pkgmetadata>
diff --git a/app-misc/flasm/Manifest b/app-misc/flasm/Manifest
new file mode 100644
index 000000000000..72e3b8568337
--- /dev/null
+++ b/app-misc/flasm/Manifest
@@ -0,0 +1 @@
+DIST flasm-1.63.zip 111912 SHA256 df1273a506e2479cf95775197f5b7fa94e29fe1e0aae5aa190ed5bbebc4be5c6 SHA512 af53c8902bac9bc03a4274f51280abe7e595f19d8ee367c0237868634df58a42144bb6c335a99f860c494da90d483072c66064897ef1ad467b7621c648ca322a WHIRLPOOL e69860fdfa5be54235c0a02f2b77e30e4a2735b6785aa45260a2bdb55ff8a2edd366c1c9dadc93c7ac76886bd0070c4b6220a38365b6ba3135a1ade19a7ef103
diff --git a/app-misc/flasm/files/flasm-1.63-makefile.patch b/app-misc/flasm/files/flasm-1.63-makefile.patch
new file mode 100644
index 000000000000..32ea2bc00181
--- /dev/null
+++ b/app-misc/flasm/files/flasm-1.63-makefile.patch
@@ -0,0 +1,27 @@
+--- Makefile.o 2010-08-31 01:17:46.505000089 +0200
++++ Makefile 2010-08-31 01:19:11.841000098 +0200
+@@ -1,6 +1,4 @@
+ UNAME = $(shell uname)
+-CC = gcc
+-CFLAGS = -g -Wall -O2
+ LIBS = -lz
+ OFILES = util.o keywords.o flasm.o unflasm.o lex.yy.o assembler.tab.o
+ GARBAGE = assembler.tab.* lex.yy.c memwatch.o gmon.out memwatch.log core
+@@ -9,8 +7,6 @@
+ ifneq (,$(findstring debug,$(MAKECMDGOALS)))
+ CFLAGS += -DMEMWATCH -pg -p -pedantic -W -Wcast-align -Wcast-qual -Wshadow -Wnested-externs -Wstrict-prototypes -Waggregate-return -Wmissing-prototypes -Wpointer-arith
+ OFILES += memwatch.o
+-else
+- CFLAGS += -s
+ endif
+
+ # executable should not depend on cygwin.dll
+@@ -26,7 +22,7 @@
+ -rm -f ${OFILES} ${GARBAGE}
+
+ flasm: ${OFILES}
+- ${CC} $(CFLAGS) -o flasm ${OFILES} ${LIBS}
++ ${CC} $(CFLAGS) $(LDFLAGS) -o flasm ${OFILES} ${LIBS}
+
+ assembler.tab.c assembler.tab.h: assembler.y
+ bison --defines --debug assembler.y
diff --git a/app-misc/flasm/flasm-1.63.ebuild b/app-misc/flasm/flasm-1.63.ebuild
new file mode 100644
index 000000000000..19e76dbd133e
--- /dev/null
+++ b/app-misc/flasm/flasm-1.63.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils versionator toolchain-funcs
+
+MY_PV=$(delete_all_version_separators $(get_version_component_range 1-2))
+DESCRIPTION="Command line assembler/disassembler of Flash ActionScript bytecode"
+HOMEPAGE="http://www.nowrap.de/flasm.html"
+SRC_URI="http://www.nowrap.de/download/flasm${MY_PV}src.zip -> ${P}.zip"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~x86-fbsd"
+IUSE=""
+
+RDEPEND="sys-libs/zlib"
+DEPEND="${RDEPEND}
+ app-arch/unzip
+ dev-util/gperf
+ sys-devel/flex
+ virtual/yacc
+"
+
+S=${WORKDIR}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-makefile.patch
+}
+
+src_compile() {
+ tc-export CC
+ emake
+}
+
+src_install() {
+ dobin flasm
+ dodoc CHANGES.TXT
+ dohtml flasm.html classic.css
+}
diff --git a/app-misc/flasm/metadata.xml b/app-misc/flasm/metadata.xml
new file mode 100644
index 000000000000..8362375232ee
--- /dev/null
+++ b/app-misc/flasm/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>
+ <email>maintainer-needed@gentoo.org</email>
+ </maintainer>
+ <longdescription>Flasm disassembles your entire SWF including all the
+ timelines and events. Looking at disassembly, you learn how the Flash
+ compiler works, which improves your ActionScript skills. You can also do
+ some optimizations on the disassembled code by hand or adjust the code as
+ you wish. Flasm then applies your changes to the original SWF, replacing
+ original actions.
+ </longdescription>
+</pkgmetadata>
diff --git a/app-misc/freemind/Manifest b/app-misc/freemind/Manifest
new file mode 100644
index 000000000000..00250a522dd3
--- /dev/null
+++ b/app-misc/freemind/Manifest
@@ -0,0 +1 @@
+DIST freemind-src-1.0.1.tar.gz 31617138 SHA256 018285126b27eae7392b8c3bfb513f25bd70b9907440e5eb8209f20b4fbd8619 SHA512 f3b7bd526da3075e883292fc88dd5b01f5b0112c58cfeae25a6be9c7dbf4a5444839821e3e2554303032d832b4520fa742894c09ded2705270f51aca98167fb5 WHIRLPOOL 5c3e1c795060bb92bced84fcf785c721c0ecf2ea8fcd8440cfe4935255bb4685c78dc4ad5991ee425a3c7d37589a8698ee9e1b3e4c63d362bc172edbe4e281da
diff --git a/app-misc/freemind/freemind-1.0.1-r1.ebuild b/app-misc/freemind/freemind-1.0.1-r1.ebuild
new file mode 100644
index 000000000000..9e5334570a20
--- /dev/null
+++ b/app-misc/freemind/freemind-1.0.1-r1.ebuild
@@ -0,0 +1,122 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+JAVA_PKG_IUSE="doc"
+
+inherit eutils java-pkg-2 java-ant-2
+
+DESCRIPTION="Mind-mapping software written in Java"
+HOMEPAGE="http://freemind.sourceforge.net"
+SRC_URI="mirror://sourceforge/${PN}/${PN}-src-${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="groovy latex pdf svg"
+
+CDEPEND="
+ dev-java/javahelp:0
+ dev-java/jgoodies-forms:0
+ dev-java/jibx:0
+ dev-java/jortho:0
+ >=dev-java/simplyhtml-0.13.1:0
+ groovy? ( dev-java/groovy )
+ latex? ( dev-java/hoteqn:0 )
+ pdf? (
+ dev-java/batik:1.8
+ dev-java/fop:0
+ )
+ svg? (
+ dev-java/batik:1.8
+ dev-java/fop:0
+ )"
+DEPEND="${CDEPEND}
+ >=virtual/jdk-1.6
+ pdf? ( dev-java/avalon-framework:4.2 )
+ svg? ( dev-java/avalon-framework:4.2 )"
+RDEPEND="${CDEPEND}
+ >=virtual/jre-1.6"
+
+S="${WORKDIR}/${PN}"
+
+java_prepare() {
+ chmod +x check_for_duplicate_resources.sh || die
+
+ # someone got it all wrong (set/unset vs. bool)
+ sed -i -e 's|<property name="include_latex" value="false"/>||' plugins/build.xml || die
+
+ # disable dmg build on Mac OS X
+ sed -i -e 's:<antcall target="dist_\(macos\|icon\)"/>::p' 'build.xml' || die
+
+ use groovy || rm plugins/build_scripting.xml || die
+ use latex || rm plugins/build_latex.xml || die
+ use pdf || use svg || rm plugins/build_svg.xml || die
+ # not compatible with releases of jmapviewer
+ rm plugins/build_map.xml || die
+
+ rm -v $(find "${WORKDIR}" -name '*.jar' -o -name '*.zip') || die
+}
+
+src_configure() {
+ local build_files=( $(find "${S}" -name 'build*.xml') )
+ JAVA_PKG_BSFIX_NAME="${build_files[@]##*/}"
+ JAVA_ANT_REWRITE_CLASSPATH="yes"
+ JAVA_ANT_CLASSPATH_TAGS+=" javadoc"
+ JAVA_ANT_ENCODING="utf-8"
+ java-ant-2_src_configure
+}
+
+src_compile() {
+ local svg_deps svg_build_deps
+ if use pdf || use svg; then
+ svg_deps="batik-1.8,fop"
+ svg_build_deps=":$(java-pkg_getjars --build-only avalon-framework-4.2)"
+ fi
+ EANT_GENTOO_CLASSPATH="
+ jgoodies-forms,jibx,javahelp,jortho,simplyhtml
+ $(usex groovy groovy '')
+ $(usex latex hoteqn '')
+ ${svg_deps}"
+ EANT_GENTOO_CLASSPATH_EXTRA="lib/bindings.jar${svg_build_deps}"
+ EANT_BUILD_TARGET="dist"
+ EANT_DOC_TARGET="doc"
+ EANT_ANT_TASKS="jibx"
+ java-pkg-2_src_compile
+}
+
+src_install() {
+ cd "${WORKDIR}"/bin/dist || die
+ local dest="/usr/share/${PN}/"
+
+ java-pkg_dojar lib/*.jar
+
+ if use doc; then
+ java-pkg_dojavadoc doc/javadoc
+ rm -r doc/javadoc
+ fi
+
+ insinto "${dest}"
+ doins -r accessories browser doc plugins patterns.xml
+
+ # register plugins for java-dep-check
+ local plugins="help"
+ use groovy && plugins+=" script"
+ use latex && plugins+=" latex"
+ if use pdf || use svg; then
+ plugins+=" svg"
+ fi
+ local plugin
+ for plugin in ${plugins}; do
+ java-pkg_regjar "${ED}"${dest}/plugins/${plugin}/*jar
+ done
+
+ java-pkg_dolauncher ${PN} --java_args "-Dfreemind.base.dir=${EPREFIX}${dest}" \
+ --pwd "${EPREFIX}${dest}" --main freemind.main.FreeMindStarter
+
+ newicon "${S}/images/FreeMindWindowIcon.png" freemind.png
+
+ make_desktop_entry freemind Freemind freemind Utility
+}
diff --git a/app-misc/freemind/freemind-1.0.1-r2.ebuild b/app-misc/freemind/freemind-1.0.1-r2.ebuild
new file mode 100644
index 000000000000..af4a5c03aa55
--- /dev/null
+++ b/app-misc/freemind/freemind-1.0.1-r2.ebuild
@@ -0,0 +1,122 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+JAVA_PKG_IUSE="doc"
+
+inherit eutils java-pkg-2 java-ant-2
+
+DESCRIPTION="Mind-mapping software written in Java"
+HOMEPAGE="http://freemind.sourceforge.net"
+SRC_URI="mirror://sourceforge/${PN}/${PN}-src-${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="groovy latex pdf svg"
+
+CDEPEND="
+ dev-java/javahelp:0
+ dev-java/jgoodies-forms:0
+ dev-java/jibx:0
+ dev-java/jortho:0
+ >=dev-java/simplyhtml-0.13.1:0
+ groovy? ( dev-java/groovy )
+ latex? ( dev-java/hoteqn:0 )
+ pdf? (
+ dev-java/batik:1.8
+ dev-java/fop:0
+ )
+ svg? (
+ dev-java/batik:1.8
+ dev-java/fop:0
+ )"
+DEPEND="${CDEPEND}
+ >=virtual/jdk-1.6
+ pdf? ( dev-java/avalon-framework:4.2 )
+ svg? ( dev-java/avalon-framework:4.2 )"
+RDEPEND="${CDEPEND}
+ >=virtual/jre-1.6"
+
+S="${WORKDIR}/${PN}"
+
+java_prepare() {
+ chmod +x check_for_duplicate_resources.sh || die
+
+ # someone got it all wrong (set/unset vs. bool)
+ sed -i -e 's|<property name="include_latex" value="false"/>||' plugins/build.xml || die
+
+ # disable dmg build on Mac OS X
+ sed -i -e 's:<antcall target="dist_\(macos\|icon\)"/>::p' 'build.xml' || die
+
+ use groovy || rm plugins/build_scripting.xml || die
+ use latex || rm plugins/build_latex.xml || die
+ use pdf || use svg || rm plugins/build_svg.xml || die
+ # not compatible with releases of jmapviewer
+ rm plugins/build_map.xml || die
+
+ rm -v $(find "${WORKDIR}" -name '*.jar' -o -name '*.zip') || die
+}
+
+src_configure() {
+ local build_files=( $(find "${S}" -name 'build*.xml') )
+ JAVA_PKG_BSFIX_NAME="${build_files[@]##*/}"
+ JAVA_ANT_REWRITE_CLASSPATH="yes"
+ JAVA_ANT_CLASSPATH_TAGS+=" javadoc"
+ JAVA_ANT_ENCODING="utf-8"
+ java-ant-2_src_configure
+}
+
+src_compile() {
+ local svg_deps svg_build_deps
+ if use pdf || use svg; then
+ svg_deps="batik-1.8,fop"
+ svg_build_deps=":$(java-pkg_getjars --build-only avalon-framework-4.2)"
+ fi
+ EANT_GENTOO_CLASSPATH="
+ jgoodies-forms,jibx,javahelp,jortho,simplyhtml
+ $(usex groovy groovy '')
+ $(usex latex hoteqn '')
+ ${svg_deps}"
+ EANT_GENTOO_CLASSPATH_EXTRA="lib/bindings.jar${svg_build_deps}"
+ EANT_BUILD_TARGET="dist"
+ EANT_DOC_TARGET="doc"
+ EANT_ANT_TASKS="jibx"
+ java-pkg-2_src_compile
+}
+
+src_install() {
+ cd "${WORKDIR}"/bin/dist || die
+ local dest="/usr/share/${PN}/"
+
+ java-pkg_dojar lib/*.jar
+
+ if use doc; then
+ java-pkg_dojavadoc doc/javadoc
+ rm -r doc/javadoc
+ fi
+
+ insinto "${dest}"
+ doins -r accessories browser doc plugins patterns.xml
+
+ # register plugins for java-dep-check
+ local plugins="help"
+ use groovy && plugins+=" script"
+ use latex && plugins+=" latex"
+ if use pdf || use svg; then
+ plugins+=" svg"
+ fi
+ local plugin
+ for plugin in ${plugins}; do
+ java-pkg_regjar "${ED}"${dest}/plugins/${plugin}/*jar
+ done
+
+ java-pkg_dolauncher ${PN} --java_args "-Dfreemind.base.dir=${EPREFIX}${dest}" \
+ --pwd "${EPREFIX}${dest}" --main freemind.main.FreeMindStarter
+
+ newicon "${S}/images/FreeMindWindowIcon.png" freemind.png
+
+ make_desktop_entry freemind Freemind freemind Utility
+}
diff --git a/app-misc/freemind/metadata.xml b/app-misc/freemind/metadata.xml
new file mode 100644
index 000000000000..9ada244d0d9c
--- /dev/null
+++ b/app-misc/freemind/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>java</herd>
+ <use>
+ <flag name="groovy">Build plugin for scripting via Groovy</flag>
+ <flag name="latex">Build plugin for inserting mathematical formulas in LaTeX syntax</flag>
+ <flag name="pdf">Build plugin for exporting mindmaps to SVG and PDF</flag>
+ <flag name="svg">Build plugin for exporting mindmaps to SVG and PDF</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">freemind</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/fslint/Manifest b/app-misc/fslint/Manifest
new file mode 100644
index 000000000000..6c0de116d951
--- /dev/null
+++ b/app-misc/fslint/Manifest
@@ -0,0 +1,2 @@
+DIST fslint-2.42.tar.gz 111520 SHA256 babbef4a34f42ab1d396152fd79b4353adc114b2e8d68b838e20a8067c5a3273 SHA512 e32575827769a6e0e1847f6edb4ed5337fc5705d65f327e93510af29cafe11df175eec9924f15e9525ff7c320048940e9341e9e62b4ec717b2630aa405a484e6 WHIRLPOOL fc74fb8ddd9d03283d6f7ec7763c2efef9036242ab5ba487046af14f880f0bc8661cec07614fc61fcee684933614abe49142f6dde4c3ef1d42d0f5292437be67
+DIST fslint-2.44.tar.gz 116654 SHA256 8491a9cd76725e652ac8fe07288ba1f896d9331e30593c0ff3ab9e82e863f0ae SHA512 9ebb6d23186ed9a7194c854c3f3352cd787f01a71d6197aa0c53f5ff0dcb2e24004cfdddee3345655ae179f4397eba95120a5c08f25c5c0f807dab486226844b WHIRLPOOL d06bfdd29ce00a052de89757244f823fba2a30ef51c09bcf58248f73d2ecd33c859a52f172cf2c9f558d00274011083c2851bf47a5e40771fff6d4a0ba081f9b
diff --git a/app-misc/fslint/fslint-2.42.ebuild b/app-misc/fslint/fslint-2.42.ebuild
new file mode 100644
index 000000000000..c0968ad67a76
--- /dev/null
+++ b/app-misc/fslint/fslint-2.42.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+PYTHON_DEPEND="2"
+
+inherit eutils python
+
+DESCRIPTION="A utility to find various forms of lint on a filesystem"
+HOMEPAGE="http://www.pixelbeat.org/fslint/"
+SRC_URI="http://www.pixelbeat.org/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="nls"
+
+DEPEND="nls? ( sys-devel/gettext )"
+RDEPEND="dev-python/pygtk:2"
+
+src_prepare() {
+ python_convert_shebangs -r 2 .
+
+ # Change some paths to make ${PN}-gui run when installed in /usr/bin.
+ sed -e "s:^liblocation=.*$:liblocation='${EROOT}usr/share/${PN}' #Gentoo:" \
+ -e "s:^locale_base=.*$:locale_base=None #Gentoo:" \
+ -i ${PN}-gui || die "sed failed"
+}
+
+src_install() {
+ insinto /usr/share/${PN}
+ doins ${PN}{.glade,.gladep,_icon.png}
+
+ exeinto /usr/share/${PN}/${PN}
+ doexe ${PN}/find*
+ doexe ${PN}/${PN}
+ doexe ${PN}/zipdir
+
+ exeinto /usr/share/${PN}/${PN}/fstool/
+ doexe ${PN}/fstool/*
+
+ exeinto /usr/share/${PN}/${PN}/supprt/
+ doexe ${PN}/supprt/{fslver,getffl,getffp,getfpf,md5sum_approx}
+
+ exeinto /usr/share/${PN}/${PN}/supprt/rmlint
+ doexe ${PN}/supprt/rmlint/*
+
+ dobin ${PN}-gui
+
+ doicon ${PN}_icon.png
+ domenu ${PN}.desktop
+
+ dodoc doc/{FAQ,NEWS,README,TODO}
+ doman man/${PN}{.1,-gui.1}
+
+ if use nls ; then
+ cd po
+ emake DESTDIR="${D}" install
+ fi
+}
diff --git a/app-misc/fslint/fslint-2.44-r2.ebuild b/app-misc/fslint/fslint-2.44-r2.ebuild
new file mode 100644
index 000000000000..41a66000f63c
--- /dev/null
+++ b/app-misc/fslint/fslint-2.44-r2.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit eutils python-r1
+
+DESCRIPTION="A utility to find various forms of lint on a filesystem"
+HOMEPAGE="http://www.pixelbeat.org/fslint/"
+SRC_URI="http://www.pixelbeat.org/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~x86"
+
+IUSE="nls"
+
+RDEPEND="${PYTHON_DEPS}
+ dev-python/pygtk:2[${PYTHON_USEDEP}]
+ gnome-base/libglade:2.0"
+
+DEPEND="${RDEPEND}
+ nls? ( sys-devel/gettext:* )"
+
+src_prepare() {
+ # Change some paths to make ${PN}-gui run when installed in /usr/bin.
+ sed -e "s:^liblocation=.*$:liblocation='${EROOT}usr/share/${PN}' #Gentoo:" \
+ -e "s:^locale_base=.*$:locale_base=None #Gentoo:" \
+ -i ${PN}-gui || die
+}
+
+src_install() {
+ share=/usr/share/${PN}
+
+ insinto ${share}
+ doins ${PN}{.glade,.gladep,_icon.png}
+
+ exeinto ${share}/${PN}
+ doexe ${PN}/find*
+ doexe ${PN}/${PN}
+ doexe ${PN}/zipdir
+
+ exeinto ${share}/${PN}/fstool/
+ doexe ${PN}/fstool/*
+
+ exeinto ${share}/${PN}/supprt/
+ doexe ${PN}/supprt/{fslver,getffl,getffp,getfpf,md5sum_approx}
+
+ exeinto ${share}/${PN}/supprt/rmlint
+ doexe ${PN}/supprt/rmlint/*
+
+ dobin ${PN}-gui
+
+ doicon ${PN}_icon.png
+ domenu ${PN}.desktop
+
+ dodoc doc/{FAQ,NEWS,README,TODO}
+ doman man/${PN}{.1,-gui.1}
+
+ if use nls ; then
+ cd po
+ emake DESTDIR="${D}" install
+ fi
+
+ # Fix Python shebangs.
+ python_replicate_script "${ED}"${share}/${PN}/fstool/dupwaste
+ python_replicate_script "${ED}"${share}/${PN}/supprt/md5sum_approx
+ python_replicate_script "${ED}"${share}/${PN}/supprt/rmlint/merge_hardlinks
+ python_replicate_script "${ED}"${share}/${PN}/supprt/rmlint/fixdup
+ python_replicate_script "${ED}"/usr/bin/${PN}-gui
+}
diff --git a/app-misc/fslint/metadata.xml b/app-misc/fslint/metadata.xml
new file mode 100644
index 000000000000..aa5e9948640b
--- /dev/null
+++ b/app-misc/fslint/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>
+ <email>maintainer-needed@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-misc/fslurp/Manifest b/app-misc/fslurp/Manifest
new file mode 100644
index 000000000000..51687a55bd78
--- /dev/null
+++ b/app-misc/fslurp/Manifest
@@ -0,0 +1,4 @@
+DIST fslurp-0.9.tgz 22733 SHA256 2f0864e33a679407b37fd1d3c90f7ac0a83e0e2552ebcde257f3c65adba83747 SHA512 399c1441b849bb8a4b459916042d3dc883b81183438add27833aa2cac9cc2cb43b740a080dbadf22a99d35aa0e857e04c59bb6677e14980b472324b6244e5f1b WHIRLPOOL f734b3f1bf9ec92afaf027a1494708568415169317f995a0c111c596148be1cb4741b48ca04fc6b72cf06237f948a0d77476fa63aff9443ae49c58fb690ebdc6
+DIST fslurp-2.1.2.tgz 30088 SHA256 e952b90e6ca38a8263a6e3a508370ce8a35353ff730faf39fed5c261dcae3f7c SHA512 3eed2e48c2fac9c62d24c74394884e67d9ed671461f30cb4376892225d9b946c0abf3ea50cda212fc620700ac8a7f50a13b914b523f158fe141667b6fdbde685 WHIRLPOOL c584ba1a56d01665394cfa35f095caeb652bbd58a202b1cf314aa697620c8d417c02b68d2c4bc65b8946d92beeb693a12233319c587082808b2d72b5b8656ec7
+DIST fslurp-2.1.3.tgz 30865 SHA256 b8c5e59da56c29f98cc73eee94eb40849809e73568328e79ec351ba1de75b516 SHA512 b60d9fbacb4ae5a59c08dc91eb565b469830cd1050f735ad4d46f498e451f58e02bfb2b6587ed5918e133fa5988a6a65dba8fba34cf1467c0662ae3660e5ec04 WHIRLPOOL 17a20f4b1ab5c24e15f95e57a7c855922308de0131fa93e97b8245c1b4c7009444023a4e51b724132c1153989b7cb1553762bff40776256fde8abda3a94b3095
+DIST fslurp-2.1.4.tgz 33524 SHA256 4120675d38ff09c2d59a55192738e3bdfd3430a818504177c873ed04380087c0 SHA512 db209da30735de88245b5a79b65e441a426c793464a8607231156e9a5bea47884edbdf16e5ef83eaed6a4212835d0cac763ed0ed012d06757d2902ef01d88c6e WHIRLPOOL e0f8470cec0882f499602f37c6d526d9287d9fd4980d9b10b71e46dec9a623b96568c9a22ce36e1e4d2f67ffde08bb8a2c14d98d9b9c62a09cc92738d2c3c911
diff --git a/app-misc/fslurp/files/fslurp-0.9-makefile.patch b/app-misc/fslurp/files/fslurp-0.9-makefile.patch
new file mode 100644
index 000000000000..5c2eea232082
--- /dev/null
+++ b/app-misc/fslurp/files/fslurp-0.9-makefile.patch
@@ -0,0 +1,19 @@
+--- fslurp-0.9/makefile
++++ fslurp-0.9/makefile
+@@ -6,14 +6,14 @@
+
+ INCLUDES = fslurp.h fronius.h externs.h
+
+-CFLAGS = -Wall
++CFLAGS += -Wall
+
+ LINKFLAGS = -lm
+
+ VERSION := fslurp-$(shell tail -1 version)
+
+ fslurp: $(SOURCE) $(INCLUDES)
+- gcc $(CFLAGS) -o fslurp $(SOURCE) $(LINKFLAGS)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o fslurp $(SOURCE) $(LINKFLAGS)
+
+ test: fslurp
+ ./fslurp
diff --git a/app-misc/fslurp/files/fslurp-2.1.2-makefile.patch b/app-misc/fslurp/files/fslurp-2.1.2-makefile.patch
new file mode 100644
index 000000000000..487bb1fc0e6a
--- /dev/null
+++ b/app-misc/fslurp/files/fslurp-2.1.2-makefile.patch
@@ -0,0 +1,41 @@
+--- fslurp-2.1.2/Makefile
++++ fslurp-2.1.2/Makefile
+@@ -46,31 +46,31 @@
+ SIMINCLUDES = simulator.h
+
+ #DEBUGFLAGS = -g
+-CFLAGS = -c -Wall $(DEBUGFLAGS)
++CFLAGS += -c -Wall $(DEBUGFLAGS)
+
+-LDFLAGS = -lm
++LIBS = -lm
+
+ VERSION := fslurp-$(shell tail -1 version)
+
+ all: $(TARGETS)
+
+ fslurp: $(FSLURP_OBJS)
+- $(CC) $(LDFLAGS) $^ -o $@
++ $(CC) $(LDFLAGS) $^ -o $@ $(LIBS)
+
+ simSolarNet2i1s: \
+ $(SIMSOLARNET2I1S_OBJS)
+- $(CC) $(LDFLAGS) $^ -o $@
++ $(CC) $(LDFLAGS) $^ -o $@ $(LIBS)
+
+ simSolarNet1i0s: \
+ $(SIMSOLARNET1I0S_OBJS)
+- $(CC) $(LDFLAGS) $^ -o $@
++ $(CC) $(LDFLAGS) $^ -o $@ $(LIBS)
+
+ simSolarNet0i0s: \
+ $(SIMSOLARNET0I0S_OBJS)
+- $(CC) $(LDFLAGS) $^ -o $@
++ $(CC) $(LDFLAGS) $^ -o $@ $(LIBS)
+
+ simIFCEasy: $(SIMIFCEASY_OBJS)
+- $(CC) $(LDFLAGS) $^ -o $@
++ $(CC) $(LDFLAGS) $^ -o $@ $(LIBS)
+
+ test: $(TARGETS) clean
+ ./testcase.sh
diff --git a/app-misc/fslurp/files/fslurp-2.1.4-makefile.patch b/app-misc/fslurp/files/fslurp-2.1.4-makefile.patch
new file mode 100644
index 000000000000..f231c170a4a2
--- /dev/null
+++ b/app-misc/fslurp/files/fslurp-2.1.4-makefile.patch
@@ -0,0 +1,47 @@
+--- fslurp-2.1.4/Makefile
++++ fslurp-2.1.4/Makefile
+@@ -51,35 +51,35 @@
+ INCLUDES = fslurp.h fronius.h
+ SIMINCLUDES = simulator.h
+
+-DEBUGFLAGS = -g
+-CFLAGS = -c -Wall $(DEBUGFLAGS)
++#DEBUGFLAGS = -g
++CFLAGS += -c -Wall $(DEBUGFLAGS)
+
+-LDFLAGS = -lm
++LIBS = -lm
+
+ VERSION := fslurp-$(shell tail -1 version)
+
+ all: $(TARGETS)
+
+ fslurp: $(FSLURP_OBJS)
+- $(CC) $(LDFLAGS) $^ -o $@
++ $(CC) $(LDFLAGS) $^ -o $@ $(LIBS)
+
+ simSolarNet2i1s: \
+ $(SIMSOLARNET2I1S_OBJS)
+- $(CC) $(LDFLAGS) $^ -o $@
++ $(CC) $(LDFLAGS) $^ -o $@ $(LIBS)
+
+ simSolarNet1i0s: \
+ $(SIMSOLARNET1I0S_OBJS)
+- $(CC) $(LDFLAGS) $^ -o $@
++ $(CC) $(LDFLAGS) $^ -o $@ $(LIBS)
+
+ simSolarNet0i0s: \
+ $(SIMSOLARNET0I0S_OBJS)
+- $(CC) $(LDFLAGS) $^ -o $@
++ $(CC) $(LDFLAGS) $^ -o $@ $(LIBS)
+
+ simIFCEasy: $(SIMIFCEASY_OBJS)
+- $(CC) $(LDFLAGS) $^ -o $@
++ $(CC) $(LDFLAGS) $^ -o $@ $(LIBS)
+
+ sim422IGTL: $(SIM422IGTL_OBJS)
+- $(CC) $(LDFLAGS) $^ -o $@
++ $(CC) $(LDFLAGS) $^ -o $@ $(LIBS)
+
+ test: $(TARGETS) clean
+ ./testcase.sh
diff --git a/app-misc/fslurp/fslurp-0.9.ebuild b/app-misc/fslurp/fslurp-0.9.ebuild
new file mode 100644
index 000000000000..96a548caf72f
--- /dev/null
+++ b/app-misc/fslurp/fslurp-0.9.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Read and display data from Fronius IG and IG Plus inverters"
+HOMEPAGE="http://fslurp.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tgz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RESTRICT="test"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-makefile.patch
+ rm fslurp || die
+}
+
+src_compile() {
+ emake -f makefile CC="$(tc-getCC)"
+}
+
+src_install() {
+ dobin ${PN}
+ dodoc History README SampleOutput
+}
diff --git a/app-misc/fslurp/fslurp-2.1.2.ebuild b/app-misc/fslurp/fslurp-2.1.2.ebuild
new file mode 100644
index 000000000000..777dc6354375
--- /dev/null
+++ b/app-misc/fslurp/fslurp-2.1.2.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Read and display data from Fronius IG and IG Plus inverters"
+HOMEPAGE="http://fslurp.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tgz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-makefile.patch
+}
+
+src_compile() {
+ emake CC="$(tc-getCXX)"
+}
+
+src_install() {
+ dobin ${PN}
+ dodoc History README TODO
+}
diff --git a/app-misc/fslurp/fslurp-2.1.3.ebuild b/app-misc/fslurp/fslurp-2.1.3.ebuild
new file mode 100644
index 000000000000..146a98929eef
--- /dev/null
+++ b/app-misc/fslurp/fslurp-2.1.3.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Read and display data from Fronius IG and IG Plus inverters"
+HOMEPAGE="http://fslurp.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tgz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-2.1.2-makefile.patch
+}
+
+src_compile() {
+ emake CC="$(tc-getCXX)"
+}
+
+src_install() {
+ dobin ${PN}
+ dodoc History README TODO
+}
diff --git a/app-misc/fslurp/fslurp-2.1.4.ebuild b/app-misc/fslurp/fslurp-2.1.4.ebuild
new file mode 100644
index 000000000000..d195958c2d3c
--- /dev/null
+++ b/app-misc/fslurp/fslurp-2.1.4.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Read and display data from Fronius IG and IG Plus inverters"
+HOMEPAGE="http://fslurp.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tgz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-makefile.patch
+}
+
+src_compile() {
+ emake CC="$(tc-getCXX)"
+}
+
+src_install() {
+ dobin ${PN}
+ dodoc History README TODO
+}
diff --git a/app-misc/fslurp/metadata.xml b/app-misc/fslurp/metadata.xml
new file mode 100644
index 000000000000..7c3071bff69c
--- /dev/null
+++ b/app-misc/fslurp/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>
+ <email>radhermit@gentoo.org</email>
+ <name>Tim Harder</name>
+ </maintainer>
+ <longdescription lang="en">
+ fslurp is a program to pull the data from a Fronius Interface Card easy
+ that works with most Fronius IG and IG Plus inverters. It supports both
+ human-readable output and delimited (CSV-style) output.
+ </longdescription>
+ <upstream>
+ <remote-id type="sourceforge">fslurp</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/fsniper/Manifest b/app-misc/fsniper/Manifest
new file mode 100644
index 000000000000..1e6bde51d0f5
--- /dev/null
+++ b/app-misc/fsniper/Manifest
@@ -0,0 +1 @@
+DIST fsniper-1.3.1.tar.gz 282700 SHA256 e65a34221fc05eb7ececcd2fb783e3418de032f89082e09be3a8f75f6b056e6b SHA512 285b56ca239fb9c2c0319c8c5d24e368cda89d547bae25f69b528167c6fa5ebaab31f7fa178cb6b02735168043150605724ac14cc65e7347c6e49e2dc1e5ba87 WHIRLPOOL 8eb15c409baa1166e5b12fca29cc7a4b2e131d56664ef9966cf51574647eed2203386da9118cc65a678f1004e579422d4c23c155021284fec4d7e921ab3f717d
diff --git a/app-misc/fsniper/files/fsniper-1.3.1-format-security.patch b/app-misc/fsniper/files/fsniper-1.3.1-format-security.patch
new file mode 100644
index 000000000000..70c9460f97d2
--- /dev/null
+++ b/app-misc/fsniper/files/fsniper-1.3.1-format-security.patch
@@ -0,0 +1,26 @@
+From d15abeb19d1692698e0ec8a9f4a764a210e57a2b Mon Sep 17 00:00:00 2001
+From: Jakub Hrozek <jhrozek@redhat.com>
+Date: Tue, 3 Dec 2013 10:50:29 +0100
+Subject: [PATCH] Fix an error message
+
+This patch fixes https://bugzilla.redhat.com/show_bug.cgi?id=1037073
+---
+ src/handle_event.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/handle_event.c b/src/handle_event.c
+index 22f35f10ea3a6083c2ef933f794b529b8879a1ed..cac004b76917c192ad9bf8801062d701e4dc18c6 100644
+--- a/src/handle_event.c
++++ b/src/handle_event.c
+@@ -313,7 +313,7 @@ void handle_event(struct inotify_event* event, int writefd)
+ if (sysret == 127)
+ {
+ temp = malloc(27 + strlen(handler->value) + 20 + 1);
+- sprintf("Could not execute handler \"%s\", trying next one.\n", handler->value);
++ sprintf(temp, "Could not execute handler \"%s\", trying next one.\n", handler->value);
+ write_out(writefd, temp);
+
+ free(temp);
+--
+1.8.4.2
+
diff --git a/app-misc/fsniper/files/fsniper-1.3.1-umask.patch b/app-misc/fsniper/files/fsniper-1.3.1-umask.patch
new file mode 100644
index 000000000000..39aecaa3e0d1
--- /dev/null
+++ b/app-misc/fsniper/files/fsniper-1.3.1-umask.patch
@@ -0,0 +1,18 @@
+X-Git-Url: http://code.l3ib.org/?p=fsniper.git;a=blobdiff_plain;f=src%2Fmain.c;fp=src%2Fmain.c;h=cd49dffebe4b4c728b62c28c1381c4fb6f5ad87d;hp=03a8d701d6f9802ba346b591429e58741ca53479;hb=82cb0b46c48485fd4f6231ce3169c7be87d1ea07;hpb=2bbeb5d6e6b55bb9692c043fcdbeab15d9723c9e
+
+diff --git a/src/main.c b/src/main.c
+index 03a8d70..cd49dff 100644
+--- a/src/main.c
++++ b/src/main.c
+@@ -153,7 +153,10 @@ char *get_pid_filename()
+ void write_pid_file(char *pidfilename)
+ {
+ FILE *pidfile;
++ mode_t umask_old;
++ umask_old = umask(0177);
+ pidfile = fopen(pidfilename, "w");
++ umask(umask_old);
+ fprintf(pidfile, "%d", getpid());
+ fclose(pidfile);
+ }
+
diff --git a/app-misc/fsniper/fsniper-1.3.1-r1.ebuild b/app-misc/fsniper/fsniper-1.3.1-r1.ebuild
new file mode 100644
index 000000000000..2494522dd6ed
--- /dev/null
+++ b/app-misc/fsniper/fsniper-1.3.1-r1.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit autotools-utils
+
+DESCRIPTION="Tool that monitors a given set of directories for new files"
+HOMEPAGE="https://github.com/l3ib/fsniper/"
+SRC_URI="http://projects.l3ib.org/${PN}/files/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="
+ dev-libs/libpcre
+ sys-apps/file"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-format-security.patch
+ "${FILESDIR}"/${P}-umask.patch
+)
diff --git a/app-misc/fsniper/metadata.xml b/app-misc/fsniper/metadata.xml
new file mode 100644
index 000000000000..12e19ee50e91
--- /dev/null
+++ b/app-misc/fsniper/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>shell-tools</herd>
+ <upstream>
+ <remote-id type="github">l3ib/fsniper</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/fujiplay/Manifest b/app-misc/fujiplay/Manifest
new file mode 100644
index 000000000000..722f551b42d4
--- /dev/null
+++ b/app-misc/fujiplay/Manifest
@@ -0,0 +1 @@
+DIST fujiplay.tgz 12588 SHA256 d65c473b799532169d6ff362c24ee81f98efa2d2031bbcb8b638606701e75438 SHA512 168ce95b6926da2438fb858b2537060877145b28638217214f72833fcc75b76dd7e5bba9ed0ca966cd2f7f1c31ca3302ee4662907bf743c393314d615d795149 WHIRLPOOL 67cb3d43d94be6ae9348ca0de1b58fc32fdddce4d5648716f17bcaef4a87e926ce3151fd7edef37125bcb53def6a35f4cf7e1dcd0eb2b204cb7907a8e4cb308e
diff --git a/app-misc/fujiplay/files/fujiplay-1.33-unterminated-strings.patch b/app-misc/fujiplay/files/fujiplay-1.33-unterminated-strings.patch
new file mode 100644
index 000000000000..7f03c696c20e
--- /dev/null
+++ b/app-misc/fujiplay/files/fujiplay-1.33-unterminated-strings.patch
@@ -0,0 +1,75 @@
+--- fujiplay.c 1999-02-23 10:30:31.000000000 +0100
++++ fujiplay.c 2006-08-05 00:50:08.000000000 +0200
+@@ -759,40 +759,38 @@
+ return 1;
+ }
+
+-const char *Usage = "\
+-Usage: fujiplay [OPTIONS] PICTURES... (download)
+- charge NUMBER (recharge the flash)
+- shoot (take picture)
+- preview (preview to standard output)
+- upload FILES...
+- delete FILES...
+- setid STRING (set camera ID)
+- setflash MODE (0=Off, 1=On, 2=Strobe, 3=Auto)
+- setdate gmt|local|YYYYMMDDHHMMSS
+-Options:
+- -B NUMBER Set baudrate (115200, 57600, 38400, 19200, 9600 or 0)
+- -D DEVICE Select another device file (default is /dev/fujifilm)
+- -L List command set
+- -7 DS-7 compatibility mode (experimental)
+- -d Delete pictures after successful download
+- -f Force (overwrite existing files)
+- -p Assume picture numbers instead of frame numbers
+- -h Display this help message
+- -v Version information
+-Pictures:
+- all All pictures
+- last Last picture
+- 4 Only picture 4
+- 2-10 Pictures between 2 and 10
+-Files:
+- DSCxxxxx.JPG Files to delete or to upload into the camera
+-";
+-
+-const char *Copyright = "\
+-Fujiplay, $Id: fujiplay.c,v 1.33 1999/02/22 14:13:01 bousch Exp $
+-Written by Thierry Bousch <bousch@topo.math.u-psud.fr>
+-Public domain. Absolutely no warranty.
+-";
++const char *Usage = "\n" \
++"Usage: fujiplay [OPTIONS] PICTURES... (download) \n" \
++" charge NUMBER (recharge the flash) \n" \
++" shoot (take picture) \n" \
++" preview (preview to standard output) \n" \
++" upload FILES... \n" \
++" delete FILES... \n" \
++" setid STRING (set camera ID) \n" \
++" setflash MODE (0=Off, 1=On, 2=Strobe, 3=Auto) \n" \
++" setdate gmt|local|YYYYMMDDHHMMSS \n" \
++"Options: \n" \
++" -B NUMBER Set baudrate (115200, 57600, 38400, 19200, 9600 or 0) \n" \
++" -D DEVICE Select another device file (default is /dev/fujifilm) \n" \
++" -L List command set \n" \
++" -7 DS-7 compatibility mode (experimental) \n" \
++" -d Delete pictures after successful download \n" \
++" -f Force (overwrite existing files) \n" \
++" -p Assume picture numbers instead of frame numbers \n" \
++" -h Display this help message \n" \
++" -v Version information \n" \
++"Pictures: \n" \
++" all All pictures \n" \
++" last Last picture \n" \
++" 4 Only picture 4 \n" \
++" 2-10 Pictures between 2 and 10 \n" \
++"Files: \n" \
++" DSCxxxxx.JPG Files to delete or to upload into the camera \n";
++
++const char *Copyright = "\n" \
++"Fujiplay, $Id: fujiplay.c,v 1.33 1999/02/22 14:13:01 bousch Exp $\n" \
++"Written by Thierry Bousch <bousch@topo.math.u-psud.fr>\n" \
++"Public domain. Absolutely no warranty.\n";
+
+ static void sigint_handler (int sig)
+ {
diff --git a/app-misc/fujiplay/fujiplay-1.33.ebuild b/app-misc/fujiplay/fujiplay-1.33.ebuild
new file mode 100644
index 000000000000..13360e001e66
--- /dev/null
+++ b/app-misc/fujiplay/fujiplay-1.33.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Utility for Fujifilm/Leica digital cameras (via serial port)"
+HOMEPAGE="http://topo.math.u-psud.fr/~bousch/fujiplay.html"
+SRC_URI="http://topo.math.u-psud.fr/~bousch/${PN}.tgz"
+
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="~amd64 x86"
+IUSE=""
+
+S="${WORKDIR}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-unterminated-strings.patch
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" \
+ CFLAGS="${CFLAGS}" \
+ LDFLAGS="${LDFLAGS}" \
+ || die "emake failed"
+}
+
+src_install() {
+ dobin fujiplay yycc2ppm || die
+ dodoc README fujiplay.lsm mx700-commands.html
+ emake all clean
+}
+
+pkg_postinst() {
+ ln -s /dev/ttyS0 /dev/fujifilm
+ elog "A symbolic link /dev/ttyS0 -> /dev/fujifilm was created."
+ elog "You may want to create a serial group to allow non-root"
+ elog "members R/W access to the serial device."
+ echo
+}
+
+pkg_postrm() {
+ rm -f /dev/fujifilm
+ echo
+ elog "The symbolic link /dev/fujifilm was removed."
+ echo
+}
diff --git a/app-misc/fujiplay/metadata.xml b/app-misc/fujiplay/metadata.xml
new file mode 100644
index 000000000000..333a655e1976
--- /dev/null
+++ b/app-misc/fujiplay/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer>
+ <email>maintainer-needed@gentoo.org</email>
+ <description>This package lacks a primary herd or maintainer.</description>
+</maintainer>
+</pkgmetadata>
diff --git a/app-misc/g15composer/Manifest b/app-misc/g15composer/Manifest
new file mode 100644
index 000000000000..afeed3970c6e
--- /dev/null
+++ b/app-misc/g15composer/Manifest
@@ -0,0 +1,2 @@
+DIST g15composer-3.1.tar.bz2 104109 SHA256 d8f34c1711e95f8ca3ddd9fd5f557a51bb23b79099fbf2fddb96bdcd03067988 SHA512 e4b0ddef2dfbfd3a8a392ebe9e53a59638cbb7aee7a007b8a20be388f074d54a27ed509a5805fadc9ffd708c027ec4c331dfab96905bee1c37690a5585198ad8 WHIRLPOOL 3921267bfd884860d4228a8ec5546a536547c1a78bb287bd9dfe0d78029a4006bf87a8f47c6eeca4b9b22dcd05f565ca990d688dcdbe119706e9cec4857a5e90
+DIST g15composer-3.2.tar.bz2 105805 SHA256 0ae3fdac1dd5858bb7185ae5a50a6ff1c657a29d02b44c8a73f1c38cec17b035 SHA512 95b033e2bb957ef4a2f3d3e2954a11454af7d8576e037f723d2a7d45a7dadde4908540ff0a66b387209e689217ba0e6677dcee1e647b792c402f250371518bc1 WHIRLPOOL 4553fd85ff8627f8c31ec66799f39138c63b487c4a584e726e6a2f5f58f1ff9405afff4c5b7d1b020ac1a4fbd25b678fa5c043e2d099409238e01ba1a8a71729
diff --git a/app-misc/g15composer/files/g15composer-3.1.confd b/app-misc/g15composer/files/g15composer-3.1.confd
new file mode 100644
index 000000000000..f42ab956e242
--- /dev/null
+++ b/app-misc/g15composer/files/g15composer-3.1.confd
@@ -0,0 +1,17 @@
+# /etc/conf.d/g15composer: Configuration for the g15composer
+
+# The CONTROL_FIFO is the name of the FIFO that g15composer listens to.
+# It does not create a screen on the display, but allows programs to
+# create their own non-virtual screens.
+# Please make sure the file specified does not exist.
+CONTROL_FIFO="/var/run/g15composer"
+
+# Set the user who owns the CONTROL_FIFO.
+# As this is also the user as whom g15composer is run,
+# it has to be someone who can create further message channels
+# This should be the user who runs the LCD clients
+FIFO_USER=
+
+# Set the grop which owns the CONTROL_FIFO.
+# The users who want to display screens on the LCD need to be in this group.
+FIFO_GROUP=users
diff --git a/app-misc/g15composer/files/g15composer-3.1.initd b/app-misc/g15composer/files/g15composer-3.1.initd
new file mode 100644
index 000000000000..15fd4963ba4c
--- /dev/null
+++ b/app-misc/g15composer/files/g15composer-3.1.initd
@@ -0,0 +1,49 @@
+#!/sbin/runscript
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+PIDFILE=/var/run/${SVCNAME}.pid
+
+depend() {
+ need g15daemon
+}
+
+start() {
+ ebegin "Starting ${SVCNAME}"
+
+ if [ -z "${FIFO_USER}" -o -z "${FIFO_GROUP}" ] ; then
+ eerror "Please set the FIFO_USER and FIFO_GROUP variables in /etc/conf.d/${SVCNAME}"
+ eend 1
+ return 1
+ fi
+ if [ -e "${CONTROL_FIFO}" -a ! -p "${CONTROL_FIFO}" ] ; then
+ eerror "${CONTROL_FIFO} exists and is not a FIFO. Please remove."
+ eend 1
+ return 1
+ fi
+ if [ ! -p "${CONTROL_FIFO}" ] ; then
+ einfo "Creating FIFO at ${CONTROL_FIFO}"
+ mkfifo -m660 "${CONTROL_FIFO}"
+ else
+ einfo "Reusing FIFO at ${CONTROL_FIFO}"
+ fi
+
+ chown ${FIFO_USER} "${CONTROL_FIFO}"
+ chgrp ${FIFO_GROUP} "${CONTROL_FIFO}"
+ start-stop-daemon --start --background --pidfile ${PIDFILE} --make-pidfile --exec \
+ /usr/bin/g15composer -- -b -u "${FIFO_USER}" -g "${FIFO_GROUP}" "${CONTROL_FIFO}"
+ eend $?
+}
+
+stop() {
+ ebegin "Stoping ${SVCNAME}"
+ start-stop-daemon --stop --pidfile ${PIDFILE} --name g15composer
+ if [ -p "${CONTROL_FIFO}" ] ; then
+ einfo "Removing FIFO at ${CONTROL_FIFO}"
+ rm -f "${CONTROL_FIFO}"
+ else
+ ewarn "FIFO at ${CONTROL_FIFO} was lost"
+ fi
+ eend $?
+}
diff --git a/app-misc/g15composer/files/g15composer-3.2.confd b/app-misc/g15composer/files/g15composer-3.2.confd
new file mode 100644
index 000000000000..f42ab956e242
--- /dev/null
+++ b/app-misc/g15composer/files/g15composer-3.2.confd
@@ -0,0 +1,17 @@
+# /etc/conf.d/g15composer: Configuration for the g15composer
+
+# The CONTROL_FIFO is the name of the FIFO that g15composer listens to.
+# It does not create a screen on the display, but allows programs to
+# create their own non-virtual screens.
+# Please make sure the file specified does not exist.
+CONTROL_FIFO="/var/run/g15composer"
+
+# Set the user who owns the CONTROL_FIFO.
+# As this is also the user as whom g15composer is run,
+# it has to be someone who can create further message channels
+# This should be the user who runs the LCD clients
+FIFO_USER=
+
+# Set the grop which owns the CONTROL_FIFO.
+# The users who want to display screens on the LCD need to be in this group.
+FIFO_GROUP=users
diff --git a/app-misc/g15composer/files/g15composer-3.2.initd b/app-misc/g15composer/files/g15composer-3.2.initd
new file mode 100644
index 000000000000..15fd4963ba4c
--- /dev/null
+++ b/app-misc/g15composer/files/g15composer-3.2.initd
@@ -0,0 +1,49 @@
+#!/sbin/runscript
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+PIDFILE=/var/run/${SVCNAME}.pid
+
+depend() {
+ need g15daemon
+}
+
+start() {
+ ebegin "Starting ${SVCNAME}"
+
+ if [ -z "${FIFO_USER}" -o -z "${FIFO_GROUP}" ] ; then
+ eerror "Please set the FIFO_USER and FIFO_GROUP variables in /etc/conf.d/${SVCNAME}"
+ eend 1
+ return 1
+ fi
+ if [ -e "${CONTROL_FIFO}" -a ! -p "${CONTROL_FIFO}" ] ; then
+ eerror "${CONTROL_FIFO} exists and is not a FIFO. Please remove."
+ eend 1
+ return 1
+ fi
+ if [ ! -p "${CONTROL_FIFO}" ] ; then
+ einfo "Creating FIFO at ${CONTROL_FIFO}"
+ mkfifo -m660 "${CONTROL_FIFO}"
+ else
+ einfo "Reusing FIFO at ${CONTROL_FIFO}"
+ fi
+
+ chown ${FIFO_USER} "${CONTROL_FIFO}"
+ chgrp ${FIFO_GROUP} "${CONTROL_FIFO}"
+ start-stop-daemon --start --background --pidfile ${PIDFILE} --make-pidfile --exec \
+ /usr/bin/g15composer -- -b -u "${FIFO_USER}" -g "${FIFO_GROUP}" "${CONTROL_FIFO}"
+ eend $?
+}
+
+stop() {
+ ebegin "Stoping ${SVCNAME}"
+ start-stop-daemon --stop --pidfile ${PIDFILE} --name g15composer
+ if [ -p "${CONTROL_FIFO}" ] ; then
+ einfo "Removing FIFO at ${CONTROL_FIFO}"
+ rm -f "${CONTROL_FIFO}"
+ else
+ ewarn "FIFO at ${CONTROL_FIFO} was lost"
+ fi
+ eend $?
+}
diff --git a/app-misc/g15composer/g15composer-3.1.ebuild b/app-misc/g15composer/g15composer-3.1.ebuild
new file mode 100644
index 000000000000..2856e6a08064
--- /dev/null
+++ b/app-misc/g15composer/g15composer-3.1.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=2
+inherit eutils
+
+DESCRIPTION="A library to render text and shapes into a buffer usable by the Logitech G15 keyboard"
+HOMEPAGE="http://g15tools.sourceforge.net/"
+SRC_URI="mirror://sourceforge/g15tools/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc ~ppc64 x86"
+IUSE="truetype examples"
+
+DEPEND="app-misc/g15daemon
+ >=dev-libs/libg15render-1.2[truetype?]
+ truetype? ( media-libs/freetype )"
+
+src_configure() {
+ econf \
+ $(use_enable truetype ttf)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "make install failed"
+
+ newinitd "${FILESDIR}/${P}.initd" ${PN}
+ newconfd "${FILESDIR}/${P}.confd" ${PN}
+
+ dodoc AUTHORS README ChangeLog
+
+ if use examples ; then
+ exeinto "/usr/share/${PN}"
+ doexe examples/*
+ fi
+}
+
+pkg_postinst() {
+ elog "Set the user to run g15composer in /etc/conf.d/g15composer before starting the service."
+}
diff --git a/app-misc/g15composer/g15composer-3.2.ebuild b/app-misc/g15composer/g15composer-3.2.ebuild
new file mode 100644
index 000000000000..8026fad9a88f
--- /dev/null
+++ b/app-misc/g15composer/g15composer-3.2.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=2
+inherit eutils
+
+DESCRIPTION="A library to render text and shapes into a buffer usable by the Logitech G15 keyboard"
+HOMEPAGE="http://g15tools.sourceforge.net/"
+SRC_URI="mirror://sourceforge/g15tools/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE="truetype examples"
+
+DEPEND="app-misc/g15daemon
+ >=dev-libs/libg15render-1.2[truetype?]
+ truetype? ( media-libs/freetype )"
+
+src_configure() {
+ econf \
+ $(use_enable truetype ttf)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+
+ newinitd "${FILESDIR}/${P}.initd" ${PN}
+ newconfd "${FILESDIR}/${P}.confd" ${PN}
+
+ dodoc AUTHORS README ChangeLog
+
+ if use examples ; then
+ exeinto "/usr/share/${PN}"
+ doexe examples/*
+ fi
+}
+
+pkg_postinst() {
+ elog "Set the user to run g15composer in /etc/conf.d/g15composer before starting the service."
+}
diff --git a/app-misc/g15composer/metadata.xml b/app-misc/g15composer/metadata.xml
new file mode 100644
index 000000000000..968a455eb0aa
--- /dev/null
+++ b/app-misc/g15composer/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>
+ <email>robbat2@gentoo.org</email>
+ </maintainer>
+ <maintainer>
+ <email>polynomial-c@gentoo.org</email>
+ <name>Lars Wendler</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">g15tools</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/g15daemon/Manifest b/app-misc/g15daemon/Manifest
new file mode 100644
index 000000000000..150572efb659
--- /dev/null
+++ b/app-misc/g15daemon/Manifest
@@ -0,0 +1 @@
+DIST g15daemon-1.9.5.3.tar.gz 414603 SHA256 40ff07a4186c1fd01ea23d1753a2cb3bef25f92cc496ddddc6abde6a574cd60a SHA512 7a1770d08d1d4155866bba3b676d33bf943363f4519af41a13ab6ec73cc5d6c536b173977b3e3583b594b149b7f01ffbc51123a4678c2a249a51ff0b42c8b69a WHIRLPOOL 216e8d7ef3a79064e161e7b579271946215cbd49566672dccf9c69e0d478b1bf19b8b19334eb180c129bef03e900bd7fb532ba524a5cfd384f6abd9162ae3eb1
diff --git a/app-misc/g15daemon/files/20g15daemon b/app-misc/g15daemon/files/20g15daemon
new file mode 100644
index 000000000000..ee1422537f25
--- /dev/null
+++ b/app-misc/g15daemon/files/20g15daemon
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+. "${PM_FUNCTIONS}"
+
+case "$1" in
+ hibernate|suspend)
+ /etc/init.d/g15daemon stop
+ ;;
+ thaw|resume)
+ /etc/init.d/g15daemon start
+ ;;
+ *)
+ exit $NA
+ ;;
+esac
diff --git a/app-misc/g15daemon/files/99-g15daemon.rules b/app-misc/g15daemon/files/99-g15daemon.rules
new file mode 100644
index 000000000000..d491d683684f
--- /dev/null
+++ b/app-misc/g15daemon/files/99-g15daemon.rules
@@ -0,0 +1 @@
+SUBSYSTEM=="usb", ATTR{product}=="G15 Gaming Keyboard", RUN+="/usr/bin/g15daemon-hotplug"
diff --git a/app-misc/g15daemon/files/g15daemon-1.2.7.confd b/app-misc/g15daemon/files/g15daemon-1.2.7.confd
new file mode 100644
index 000000000000..08ea97f49763
--- /dev/null
+++ b/app-misc/g15daemon/files/g15daemon-1.2.7.confd
@@ -0,0 +1,9 @@
+# /etc/conf.d/g15daemon: Configuration for the g15daemon
+
+# Key to switch the client-screens. Default is the MR key,
+# Set to "yes" to use L1 key instead (black round key below the LCD, above the multimedia keys).
+CLIENT_SWITCH_L1="no"
+
+# Set to "yes" to switch off the lcd backlight when stopping g15daemon.
+BACKLIGHT_OFF="no"
+
diff --git a/app-misc/g15daemon/files/g15daemon-1.9.5.3-forgotten-open-mode.patch b/app-misc/g15daemon/files/g15daemon-1.9.5.3-forgotten-open-mode.patch
new file mode 100644
index 000000000000..b475f1d58d69
--- /dev/null
+++ b/app-misc/g15daemon/files/g15daemon-1.9.5.3-forgotten-open-mode.patch
@@ -0,0 +1,11 @@
+--- ./g15daemon-1.9.5.3/g15daemon/utility_funcs.c 2008-01-26 06:02:07.000000000 +0100
++++ ./g15daemon-1.9.5.3/g15daemon/utility_funcs.c 2009-02-01 17:00:55.203009264 +0100
+@@ -356,7 +356,7 @@
+ config_items_t * item=NULL;
+ char line[1024];
+
+- config_fd = open(filename,O_CREAT|O_RDWR|O_TRUNC);
++ config_fd = open(filename,O_CREAT|O_RDWR|O_TRUNC,0664);
+ if(config_fd){
+ snprintf(line,1024,"# G15Daemon Configuration File\n# any items entered before a [section] header\n# will be in the Global config space\n# comments you wish to keep should start with a semicolon';'\n");
+ write(config_fd,line,strlen(line));
diff --git a/app-misc/g15daemon/files/g15daemon-1.9.5.3-g510-keys.patch b/app-misc/g15daemon/files/g15daemon-1.9.5.3-g510-keys.patch
new file mode 100644
index 000000000000..240f21c385aa
--- /dev/null
+++ b/app-misc/g15daemon/files/g15daemon-1.9.5.3-g510-keys.patch
@@ -0,0 +1,340 @@
+From http://sourceforge.net/tracker/?func=detail&aid=3152167&group_id=167869&atid=844658
+
+diff -aNru trunk/g15daemon-wip/plugins/g15_plugin_uinput.c mod/g15daemon-wip/plugins/g15_plugin_uinput.c
+--- trunk/g15daemon-wip/plugins/g15_plugin_uinput.c 2011-06-26 06:50:50.000000000 +0000
++++ mod/g15daemon-wip/plugins/g15_plugin_uinput.c 2011-06-26 06:51:42.000000000 +0000
+@@ -164,146 +164,195 @@
+
+ static void g15_process_keys(g15daemon_t *masterlist, unsigned int currentkeys, unsigned int lastkeys)
+ {
+- /* 'G' keys */
+- if((currentkeys & G15_KEY_G1) && !(lastkeys & G15_KEY_G1))
+- keydown(GKEY_OFFSET);
+- else if(!(currentkeys & G15_KEY_G1) && (lastkeys & G15_KEY_G1))
+- keyup(GKEY_OFFSET);
+-
+- if((currentkeys & G15_KEY_G2) && !(lastkeys & G15_KEY_G2))
+- keydown(GKEY_OFFSET+1);
+- else if(!(currentkeys & G15_KEY_G2) && (lastkeys & G15_KEY_G2))
+- keyup(GKEY_OFFSET+1);
+-
+- if((currentkeys & G15_KEY_G3) && !(lastkeys & G15_KEY_G3))
+- keydown(GKEY_OFFSET+2);
+- else if(!(currentkeys & G15_KEY_G3) && (lastkeys & G15_KEY_G3))
+- keyup(GKEY_OFFSET+2);
+-
+- if((currentkeys & G15_KEY_G4) && !(lastkeys & G15_KEY_G4))
+- keydown(GKEY_OFFSET+3);
+- else if(!(currentkeys & G15_KEY_G4) && (lastkeys & G15_KEY_G4))
+- keyup(GKEY_OFFSET+3);
+-
+- if((currentkeys & G15_KEY_G5) && !(lastkeys & G15_KEY_G5))
+- keydown(GKEY_OFFSET+4);
+- else if(!(currentkeys & G15_KEY_G5) && (lastkeys & G15_KEY_G5))
+- keyup(GKEY_OFFSET+4);
+-
+- if((currentkeys & G15_KEY_G6) && !(lastkeys & G15_KEY_G6))
+- keydown(GKEY_OFFSET+5);
+- else if(!(currentkeys & G15_KEY_G6) && (lastkeys & G15_KEY_G6))
+- keyup(GKEY_OFFSET+5);
+-
+- if((currentkeys & G15_KEY_G7) && !(lastkeys & G15_KEY_G7))
+- keydown(GKEY_OFFSET+6);
+- else if(!(currentkeys & G15_KEY_G7) && (lastkeys & G15_KEY_G7))
+- keyup(GKEY_OFFSET+6);
+-
+- if((currentkeys & G15_KEY_G8) && !(lastkeys & G15_KEY_G8))
+- keydown(GKEY_OFFSET+7);
+- else if(!(currentkeys & G15_KEY_G8) && (lastkeys & G15_KEY_G8))
+- keyup(GKEY_OFFSET+7);
+-
+- if((currentkeys & G15_KEY_G9) && !(lastkeys & G15_KEY_G9))
+- keydown(GKEY_OFFSET+8);
+- else if(!(currentkeys & G15_KEY_G9) && (lastkeys & G15_KEY_G9))
+- keyup(GKEY_OFFSET+8);
+-
+- if((currentkeys & G15_KEY_G10) && !(lastkeys & G15_KEY_G10))
+- keydown(GKEY_OFFSET+9);
+- else if(!(currentkeys & G15_KEY_G10) && (lastkeys & G15_KEY_G10))
+- keyup(GKEY_OFFSET+9);
+-
+- if((currentkeys & G15_KEY_G11) && !(lastkeys & G15_KEY_G11))
+- keydown(GKEY_OFFSET+10);
+- else if(!(currentkeys & G15_KEY_G11) && (lastkeys & G15_KEY_G11))
+- keyup(GKEY_OFFSET+10);
+-
+- if((currentkeys & G15_KEY_G12) && !(lastkeys & G15_KEY_G12))
+- keydown(GKEY_OFFSET+11);
+- else if(!(currentkeys & G15_KEY_G12) && (lastkeys & G15_KEY_G12))
+- keyup(GKEY_OFFSET+11);
+-
+- if((currentkeys & G15_KEY_G13) && !(lastkeys & G15_KEY_G13))
+- keydown(GKEY_OFFSET+12);
+- else if(!(currentkeys & G15_KEY_G13) && (lastkeys & G15_KEY_G13))
+- keyup(GKEY_OFFSET+12);
+-
+- if((currentkeys & G15_KEY_G14) && !(lastkeys & G15_KEY_G14))
+- keydown(GKEY_OFFSET+13);
+- else if(!(currentkeys & G15_KEY_G14) && (lastkeys & G15_KEY_G14))
+- keyup(GKEY_OFFSET+13);
+-
+- if((currentkeys & G15_KEY_G15) && !(lastkeys & G15_KEY_G15))
+- keydown(GKEY_OFFSET+14);
+- else if(!(currentkeys & G15_KEY_G15) && (lastkeys & G15_KEY_G15))
+- keyup(GKEY_OFFSET+14);
+-
+- if((currentkeys & G15_KEY_G16) && !(lastkeys & G15_KEY_G16))
+- keydown(GKEY_OFFSET+15);
+- else if(!(currentkeys & G15_KEY_G16) && (lastkeys & G15_KEY_G16))
+- keyup(GKEY_OFFSET+15);
+-
+- if((currentkeys & G15_KEY_G17) && !(lastkeys & G15_KEY_G17))
+- keydown(GKEY_OFFSET+16);
+- else if(!(currentkeys & G15_KEY_G17) && (lastkeys & G15_KEY_G17))
+- keyup(GKEY_OFFSET+16);
+-
+- if((currentkeys & G15_KEY_G18) && !(lastkeys & G15_KEY_G18))
+- keydown(GKEY_OFFSET+17);
+- else if(!(currentkeys & G15_KEY_G18) && (lastkeys & G15_KEY_G18))
+- keyup(GKEY_OFFSET+17);
+-
+- /* 'M' keys */
+-
+- if((currentkeys & G15_KEY_M1) && !(lastkeys & G15_KEY_M1))
+- keydown(MKEY_OFFSET);
+- else if(!(currentkeys & G15_KEY_M1) && (lastkeys & G15_KEY_M1))
+- keyup(MKEY_OFFSET);
+-
+- if((currentkeys & G15_KEY_M2) && !(lastkeys & G15_KEY_M2))
+- keydown(MKEY_OFFSET+1);
+- else if(!(currentkeys & G15_KEY_M2) && (lastkeys & G15_KEY_M2))
+- keyup(MKEY_OFFSET+1);
+-
+- if((currentkeys & G15_KEY_M3) && !(lastkeys & G15_KEY_M3))
+- keydown(MKEY_OFFSET+2);
+- else if(!(currentkeys & G15_KEY_M3) && (lastkeys & G15_KEY_M3))
+- keyup(MKEY_OFFSET+2);
+-
+- if((currentkeys & G15_KEY_MR) && !(lastkeys & G15_KEY_MR))
+- keydown(MKEY_OFFSET+3);
+- else if(!(currentkeys & G15_KEY_MR) && (lastkeys & G15_KEY_MR))
+- keyup(MKEY_OFFSET+3);
+-
+- if(map_Lkeys){
+- /* 'L' keys... */
+- if((currentkeys & G15_KEY_L1) && !(lastkeys & G15_KEY_L1))
+- keydown(LKEY_OFFSET);
+- else if(!(currentkeys & G15_KEY_L1) && (lastkeys & G15_KEY_L1))
+- keyup(LKEY_OFFSET);
+-
+- if((currentkeys & G15_KEY_L2) && !(lastkeys & G15_KEY_L2))
+- keydown(LKEY_OFFSET+1);
+- else if(!(currentkeys & G15_KEY_L2) && (lastkeys & G15_KEY_L2))
+- keyup(LKEY_OFFSET+1);
+-
+- if((currentkeys & G15_KEY_L3) && !(lastkeys & G15_KEY_L3))
+- keydown(LKEY_OFFSET+2);
+- else if(!(currentkeys & G15_KEY_L3) && (lastkeys & G15_KEY_L3))
+- keyup(LKEY_OFFSET+2);
+-
+- if((currentkeys & G15_KEY_L4) && !(lastkeys & G15_KEY_L4))
+- keydown(LKEY_OFFSET+3);
+- else if(!(currentkeys & G15_KEY_L4) && (lastkeys & G15_KEY_L4))
+- keyup(LKEY_OFFSET+3);
+-
+- if((currentkeys & G15_KEY_L5) && !(lastkeys & G15_KEY_L5))
+- keydown(LKEY_OFFSET+4);
+- else if(!(currentkeys & G15_KEY_L5) && (lastkeys & G15_KEY_L5))
+- keyup(LKEY_OFFSET+4);
++ if(!(currentkeys & G15_KEY_LIGHT))
++ {
++ /* 'G' keys */
++ if((currentkeys & G15_KEY_G1) && !(lastkeys & G15_KEY_G1))
++ keydown(GKEY_OFFSET);
++ else if(!(currentkeys & G15_KEY_G1) && (lastkeys & G15_KEY_G1))
++ keyup(GKEY_OFFSET);
++
++ if((currentkeys & G15_KEY_G2) && !(lastkeys & G15_KEY_G2))
++ keydown(GKEY_OFFSET+1);
++ else if(!(currentkeys & G15_KEY_G2) && (lastkeys & G15_KEY_G2))
++ keyup(GKEY_OFFSET+1);
++
++ if((currentkeys & G15_KEY_G3) && !(lastkeys & G15_KEY_G3))
++ keydown(GKEY_OFFSET+2);
++ else if(!(currentkeys & G15_KEY_G3) && (lastkeys & G15_KEY_G3))
++ keyup(GKEY_OFFSET+2);
++
++ if((currentkeys & G15_KEY_G4) && !(lastkeys & G15_KEY_G4))
++ keydown(GKEY_OFFSET+3);
++ else if(!(currentkeys & G15_KEY_G4) && (lastkeys & G15_KEY_G4))
++ keyup(GKEY_OFFSET+3);
++
++ if((currentkeys & G15_KEY_G5) && !(lastkeys & G15_KEY_G5))
++ keydown(GKEY_OFFSET+4);
++ else if(!(currentkeys & G15_KEY_G5) && (lastkeys & G15_KEY_G5))
++ keyup(GKEY_OFFSET+4);
++
++ if((currentkeys & G15_KEY_G6) && !(lastkeys & G15_KEY_G6))
++ keydown(GKEY_OFFSET+5);
++ else if(!(currentkeys & G15_KEY_G6) && (lastkeys & G15_KEY_G6))
++ keyup(GKEY_OFFSET+5);
++
++ if((currentkeys & G15_KEY_G7) && !(lastkeys & G15_KEY_G7))
++ keydown(GKEY_OFFSET+6);
++ else if(!(currentkeys & G15_KEY_G7) && (lastkeys & G15_KEY_G7))
++ keyup(GKEY_OFFSET+6);
++
++ if((currentkeys & G15_KEY_G8) && !(lastkeys & G15_KEY_G8))
++ keydown(GKEY_OFFSET+7);
++ else if(!(currentkeys & G15_KEY_G8) && (lastkeys & G15_KEY_G8))
++ keyup(GKEY_OFFSET+7);
++
++ if((currentkeys & G15_KEY_G9) && !(lastkeys & G15_KEY_G9))
++ keydown(GKEY_OFFSET+8);
++ else if(!(currentkeys & G15_KEY_G9) && (lastkeys & G15_KEY_G9))
++ keyup(GKEY_OFFSET+8);
++
++ if((currentkeys & G15_KEY_G10) && !(lastkeys & G15_KEY_G10))
++ keydown(GKEY_OFFSET+9);
++ else if(!(currentkeys & G15_KEY_G10) && (lastkeys & G15_KEY_G10))
++ keyup(GKEY_OFFSET+9);
++
++ if((currentkeys & G15_KEY_G11) && !(lastkeys & G15_KEY_G11))
++ keydown(GKEY_OFFSET+10);
++ else if(!(currentkeys & G15_KEY_G11) && (lastkeys & G15_KEY_G11))
++ keyup(GKEY_OFFSET+10);
++
++ if((currentkeys & G15_KEY_G12) && !(lastkeys & G15_KEY_G12))
++ keydown(GKEY_OFFSET+11);
++ else if(!(currentkeys & G15_KEY_G12) && (lastkeys & G15_KEY_G12))
++ keyup(GKEY_OFFSET+11);
++
++ if((currentkeys & G15_KEY_G13) && !(lastkeys & G15_KEY_G13))
++ keydown(GKEY_OFFSET+12);
++ else if(!(currentkeys & G15_KEY_G13) && (lastkeys & G15_KEY_G13))
++ keyup(GKEY_OFFSET+12);
++
++ if((currentkeys & G15_KEY_G14) && !(lastkeys & G15_KEY_G14))
++ keydown(GKEY_OFFSET+13);
++ else if(!(currentkeys & G15_KEY_G14) && (lastkeys & G15_KEY_G14))
++ keyup(GKEY_OFFSET+13);
++
++ if((currentkeys & G15_KEY_G15) && !(lastkeys & G15_KEY_G15))
++ keydown(GKEY_OFFSET+14);
++ else if(!(currentkeys & G15_KEY_G15) && (lastkeys & G15_KEY_G15))
++ keyup(GKEY_OFFSET+14);
++
++ if((currentkeys & G15_KEY_G16) && !(lastkeys & G15_KEY_G16))
++ keydown(GKEY_OFFSET+15);
++ else if(!(currentkeys & G15_KEY_G16) && (lastkeys & G15_KEY_G16))
++ keyup(GKEY_OFFSET+15);
++
++ if((currentkeys & G15_KEY_G17) && !(lastkeys & G15_KEY_G17))
++ keydown(GKEY_OFFSET+16);
++ else if(!(currentkeys & G15_KEY_G17) && (lastkeys & G15_KEY_G17))
++ keyup(GKEY_OFFSET+16);
++
++ if((currentkeys & G15_KEY_G18) && !(lastkeys & G15_KEY_G18))
++ keydown(GKEY_OFFSET+17);
++ else if(!(currentkeys & G15_KEY_G18) && (lastkeys & G15_KEY_G18))
++ keyup(GKEY_OFFSET+17);
++
++ /* 'M' keys */
++
++ if((currentkeys & G15_KEY_M1) && !(lastkeys & G15_KEY_M1))
++ keydown(MKEY_OFFSET);
++ else if(!(currentkeys & G15_KEY_M1) && (lastkeys & G15_KEY_M1))
++ keyup(MKEY_OFFSET);
++
++ if((currentkeys & G15_KEY_M2) && !(lastkeys & G15_KEY_M2))
++ keydown(MKEY_OFFSET+1);
++ else if(!(currentkeys & G15_KEY_M2) && (lastkeys & G15_KEY_M2))
++ keyup(MKEY_OFFSET+1);
++
++ if((currentkeys & G15_KEY_M3) && !(lastkeys & G15_KEY_M3))
++ keydown(MKEY_OFFSET+2);
++ else if(!(currentkeys & G15_KEY_M3) && (lastkeys & G15_KEY_M3))
++ keyup(MKEY_OFFSET+2);
++
++ if((currentkeys & G15_KEY_MR) && !(lastkeys & G15_KEY_MR))
++ keydown(MKEY_OFFSET+3);
++ else if(!(currentkeys & G15_KEY_MR) && (lastkeys & G15_KEY_MR))
++ keyup(MKEY_OFFSET+3);
++
++ if(map_Lkeys){
++ /* 'L' keys... */
++ if((currentkeys & G15_KEY_L1) && !(lastkeys & G15_KEY_L1))
++ keydown(LKEY_OFFSET);
++ else if(!(currentkeys & G15_KEY_L1) && (lastkeys & G15_KEY_L1))
++ keyup(LKEY_OFFSET);
++
++ if((currentkeys & G15_KEY_L2) && !(lastkeys & G15_KEY_L2))
++ keydown(LKEY_OFFSET+1);
++ else if(!(currentkeys & G15_KEY_L2) && (lastkeys & G15_KEY_L2))
++ keyup(LKEY_OFFSET+1);
++
++ if((currentkeys & G15_KEY_L3) && !(lastkeys & G15_KEY_L3))
++ keydown(LKEY_OFFSET+2);
++ else if(!(currentkeys & G15_KEY_L3) && (lastkeys & G15_KEY_L3))
++ keyup(LKEY_OFFSET+2);
++
++ if((currentkeys & G15_KEY_L4) && !(lastkeys & G15_KEY_L4))
++ keydown(LKEY_OFFSET+3);
++ else if(!(currentkeys & G15_KEY_L4) && (lastkeys & G15_KEY_L4))
++ keyup(LKEY_OFFSET+3);
++
++ if((currentkeys & G15_KEY_L5) && !(lastkeys & G15_KEY_L5))
++ keydown(LKEY_OFFSET+4);
++ else if(!(currentkeys & G15_KEY_L5) && (lastkeys & G15_KEY_L5))
++ keyup(LKEY_OFFSET+4);
++ }
+ }
++ else
++ {
++ // G15_KEY_LIGHT - Key modifier for Logitech G510 Media Keys implementation
++
++ // XF86AudioPlay
++ if((currentkeys & G15_KEY_G1) && !(lastkeys & G15_KEY_G1))
++ keydown(KEY_PLAYPAUSE);
++ else if(!(currentkeys & G15_KEY_G1) && (lastkeys & G15_KEY_G1))
++ keyup(KEY_PLAYPAUSE);
++
++ // XF86AudioStop
++ if((currentkeys & G15_KEY_G2) && !(lastkeys & G15_KEY_G2))
++ keydown(KEY_STOPCD);
++ else if(!(currentkeys & G15_KEY_G2) && (lastkeys & G15_KEY_G2))
++ keyup(KEY_STOPCD);
++
++ // XF86AudioPrev
++ if((currentkeys & G15_KEY_G3) && !(lastkeys & G15_KEY_G3))
++ keydown(KEY_PREVIOUSSONG);
++ else if(!(currentkeys & G15_KEY_G3) && (lastkeys & G15_KEY_G3))
++ keyup(KEY_PREVIOUSSONG);
++
++ // XF86AudioNext
++ if((currentkeys & G15_KEY_G4) && !(lastkeys & G15_KEY_G4))
++ keydown(KEY_NEXTSONG);
++ else if(!(currentkeys & G15_KEY_G4) && (lastkeys & G15_KEY_G4))
++ keyup(KEY_NEXTSONG);
++
++ // XF86AudioMute
++ if((currentkeys & G15_KEY_G5) && !(lastkeys & G15_KEY_G5))
++ keydown(KEY_MUTE);
++ else if(!(currentkeys & G15_KEY_G5) && (lastkeys & G15_KEY_G5))
++ keyup(KEY_MUTE);
++
++ // XF86AudioRaiseVolume
++ if((currentkeys & G15_KEY_G6) && !(lastkeys & G15_KEY_G6))
++ keydown(KEY_VOLUMEUP);
++ else if(!(currentkeys & G15_KEY_G6) && (lastkeys & G15_KEY_G6))
++ keyup(KEY_VOLUMEUP);
++
++ // XF86AudioLowerVolume
++ if((currentkeys & G15_KEY_G7) && !(lastkeys & G15_KEY_G7))
++ keydown(KEY_VOLUMEDOWN);
++ else if(!(currentkeys & G15_KEY_G7) && (lastkeys & G15_KEY_G7))
++ keyup(KEY_VOLUMEDOWN);
++ }
+ }
+
+
diff --git a/app-misc/g15daemon/files/g15daemon-1.9.5.3-overflow-fix.patch b/app-misc/g15daemon/files/g15daemon-1.9.5.3-overflow-fix.patch
new file mode 100644
index 000000000000..71cbf914d839
--- /dev/null
+++ b/app-misc/g15daemon/files/g15daemon-1.9.5.3-overflow-fix.patch
@@ -0,0 +1,11 @@
+--- ./g15daemon-1.9.5.3/libg15daemon_client/g15daemon_net.c 2008-01-25 05:45:05.000000000 +0100
++++ ./g15daemon-1.9.5.3/libg15daemon_client/g15daemon_net.c 2011-02-14 22:51:55.203009264 +0100
+@@ -217,7 +217,7 @@
+ if(poll(pfd,1,100)>0){
+ if(pfd[0].revents & POLLPRI && !(pfd[0].revents & POLLERR || pfd[0].revents & POLLHUP || pfd[0].revents & POLLNVAL)) {
+ memset(packet,0,sizeof(packet));
+- msgret = recv(sock, packet, 10 , MSG_OOB);
++ msgret = recv(sock, packet, sizeof(packet), MSG_OOB);
+ if (msgret < 1) {
+ return -1;
+ }
diff --git a/app-misc/g15daemon/files/g15daemon-1.9.5.3.initd b/app-misc/g15daemon/files/g15daemon-1.9.5.3.initd
new file mode 100644
index 000000000000..4e7798c7fcfc
--- /dev/null
+++ b/app-misc/g15daemon/files/g15daemon-1.9.5.3.initd
@@ -0,0 +1,46 @@
+#!/sbin/runscript
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+# Init script for g15daemon
+
+pidfile="/var/run/g15daemon.pid"
+command="/usr/sbin/g15daemon"
+start_stop_daemon_args="--wait 30"
+command_args=""
+
+depend() {
+ after hotplug
+ after usb
+ after modules
+}
+
+start_pre() {
+ # Does the input device already exist?
+ if [ -e "/proc/modules" ] ; then
+ if [ ! -e "/dev/input/uinput" ] && [ ! -e "/dev/uinput" ] ; then
+ # We can load modules, but uinput device does not exist
+ einfo "Loading uinput module"
+ /sbin/modprobe uinput > /dev/null 2> /dev/null \
+ || return 1
+ fi
+ fi
+
+ if [ "${CLIENT_SWITCH_L1}" = "yes" ] ; then
+ command_args="--switch"
+ fi
+}
+
+stop() {
+ ebegin "Stopping g15daemon"
+ local KILLOPT="-k"
+ if [ $BACKLIGHT_OFF = "yes" ]; then
+ KILLOPT="-K"
+ fi
+ while [ -f "${pidfile}" ] && kill -0 $(cat ${pidfile}) ; do
+ ${command} ${KILLOPT}
+ sleep 1
+ done
+ eend $?
+}
diff --git a/app-misc/g15daemon/files/g15daemon-hotplug b/app-misc/g15daemon/files/g15daemon-hotplug
new file mode 100644
index 000000000000..2ae8be0bde01
--- /dev/null
+++ b/app-misc/g15daemon/files/g15daemon-hotplug
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+export IN_HOTPLUG=1
+
+case "$ACTION" in
+ "add")
+ /etc/init.d/g15daemon --quiet restart
+ ;;
+ "remove")
+ /etc/init.d/g15daemon --quiet stop
+ ;;
+ *)
+ exit 0
+ ;;
+esac
diff --git a/app-misc/g15daemon/files/g15daemon.conf b/app-misc/g15daemon/files/g15daemon.conf
new file mode 100644
index 000000000000..2d2bfc3cabde
--- /dev/null
+++ b/app-misc/g15daemon/files/g15daemon.conf
@@ -0,0 +1,27 @@
+# G15Daemon Configuration File
+# any items entered before a [section] header
+# will be in the Global config space
+# comments you wish to keep should start with a semicolon';'
+
+[Global]
+Use MR as Cycle Key: Off
+
+[PLUGIN_LOAD_ORDER]
+0: g15plugin_uinput.so
+1: g15plugin_clock.so
+2: g15plugin_tcpserver.so
+TotalPlugins: 3
+
+[PLUGINS]
+Linux UINPUT Keyboard Output: Load
+Clock: Load
+LCDServer: Load
+
+[Keyboard OS Mapping (uinput)]
+device: /dev/input/uinput
+Lkeys.mapped: 0
+
+[Clock]
+24hrFormat: On
+ShowDate: Off
+Digital: On
diff --git a/app-misc/g15daemon/g15daemon-1.9.5.3-r11.ebuild b/app-misc/g15daemon/g15daemon-1.9.5.3-r11.ebuild
new file mode 100644
index 000000000000..48c26bd96a59
--- /dev/null
+++ b/app-misc/g15daemon/g15daemon-1.9.5.3-r11.ebuild
@@ -0,0 +1,177 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+GENTOO_DEPEND_ON_PERL="no"
+PYTHON_DEPEND="python? *"
+SUPPORT_PYTHON_ABIS="1"
+
+inherit eutils linux-info perl-module python base
+
+DESCRIPTION="G15daemon takes control of the G15 keyboard, through the linux kernel uinput device driver"
+HOMEPAGE="http://g15daemon.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc ppc64 x86"
+IUSE="perl python static-libs"
+
+DEPEND="virtual/libusb:0
+ >=dev-libs/libg15-1.2.4
+ >=dev-libs/libg15render-1.2
+ perl? (
+ dev-lang/perl
+ dev-perl/GDGraph
+ >=dev-perl/Inline-0.4
+ )"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}/${P}-forgotten-open-mode.patch"
+ "${FILESDIR}/${P}-overflow-fix.patch"
+)
+uinput_check() {
+ ebegin "Checking for uinput support"
+ local rc=1
+ linux_config_exists && linux_chkconfig_present INPUT_UINPUT
+ rc=$?
+
+ if [[ $rc -ne 0 ]] ; then
+ eerror "To use g15daemon, you need to compile your kernel with uinput support."
+ eerror "Please enable uinput support in your kernel config, found at:"
+ eerror
+ eerror "Device Drivers -> Input Device ... -> Miscellaneous devices -> User level driver support."
+ eerror
+ eerror "Once enabled, you should have the /dev/input/uinput device."
+ eerror "g15daemon will not work without the uinput device."
+ fi
+}
+
+pkg_setup() {
+ linux-info_pkg_setup
+ uinput_check
+ if use python; then
+ python_pkg_setup
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ if use perl; then
+ unpack "./${P}/lang-bindings/perl-G15Daemon-0.2.tar.gz"
+ fi
+ if use python; then
+ unpack "./${P}/lang-bindings/pyg15daemon-0.0.tar.bz2"
+ fi
+}
+
+src_prepare() {
+ if use perl; then
+ perl-module_src_prepare
+ sed -i \
+ -e '1i#!/usr/bin/perl' \
+ "${S}"/contrib/testbindings.pl
+ else
+ # perl-module_src_prepare always calls base_src_prepare
+ base_src_prepare
+ fi
+}
+
+src_configure() {
+ econf \
+ --docdir="${EPREFIX}/usr/share/doc/${PF}" \
+ $(use_enable static-libs static)
+
+ if use perl; then
+ cd "${WORKDIR}/G15Daemon-0.2"
+ perl-module_src_configure
+ fi
+}
+
+src_compile() {
+ default
+
+ if use perl; then
+ cd "${WORKDIR}/G15Daemon-0.2"
+ perl-module_src_compile
+ fi
+}
+
+src_install() {
+ default
+
+ find "${ED}" -name '*.la' -exec rm -f {} +
+
+ # remove odd docs installed my make
+ rm "${ED}/usr/share/doc/${PF}/"{LICENSE,README.usage}
+
+ insinto /usr/share/${PN}/contrib
+ doins contrib/xmodmaprc
+ doins contrib/xmodmap.sh
+ if use perl; then
+ doins contrib/testbindings.pl
+ fi
+
+ newconfd "${FILESDIR}/${PN}-1.2.7.confd" ${PN}
+ newinitd "${FILESDIR}/${PN}-1.9.5.3.initd" ${PN}
+ dobin "${FILESDIR}/g15daemon-hotplug"
+ insinto /lib/udev/rules.d
+ doins "${FILESDIR}/99-g15daemon.rules"
+
+ insinto /etc
+ doins "${FILESDIR}"/g15daemon.conf
+
+ # Gentoo bug #301340, debian bug #611649
+ exeinto /usr/lib/pm-utils/sleep.d
+ doexe "${FILESDIR}"/20g15daemon
+
+ if use perl; then
+ ebegin "Installing Perl Bindings (G15Daemon.pm)"
+ cd "${WORKDIR}/G15Daemon-0.2"
+ docinto perl
+ perl-module_src_install
+ fi
+
+ if use python; then
+ ebegin "Installing Python Bindings (g15daemon.py)"
+ cd "${WORKDIR}/pyg15daemon"
+
+ installation() {
+ insinto $(python_get_sitedir)
+ doins g15daemon.py
+ }
+ python_execute_function installation
+
+ docinto python
+ dodoc AUTHORS
+ fi
+}
+
+pkg_postinst() {
+ if use python; then
+ python_mod_optimize g15daemon.py
+ echo ""
+ fi
+
+ elog "To use g15daemon, you need to add g15daemon to the default runlevel."
+ elog "This can be done with:"
+ elog "# /sbin/rc-update add g15daemon default"
+ elog "You can edit some g15daemon options at /etc/conf.d/g15daemon"
+ elog ""
+ elog "To have all new keys working in X11, you'll need create a "
+ elog "specific xmodmap in your home directory or edit the existent one."
+ elog ""
+ elog "Create the xmodmap:"
+ elog "cp /usr/share/g15daemon/contrib/xmodmaprc ~/.Xmodmap"
+ elog ""
+ elog "Adding keycodes to an existing xmodmap:"
+ elog "cat /usr/share/g15daemon/contrib/xmodmaprc >> ~/.Xmodmap"
+}
+
+pkg_postrm() {
+ if use python; then
+ python_mod_cleanup g15daemon.py
+ fi
+}
diff --git a/app-misc/g15daemon/g15daemon-1.9.5.3-r12.ebuild b/app-misc/g15daemon/g15daemon-1.9.5.3-r12.ebuild
new file mode 100644
index 000000000000..3ab19ce11bc8
--- /dev/null
+++ b/app-misc/g15daemon/g15daemon-1.9.5.3-r12.ebuild
@@ -0,0 +1,179 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+GENTOO_DEPEND_ON_PERL="no"
+PYTHON_DEPEND="python? *"
+SUPPORT_PYTHON_ABIS="1"
+
+inherit eutils linux-info perl-module python base
+
+DESCRIPTION="G15daemon takes control of the G15 keyboard, through the linux kernel uinput device driver"
+HOMEPAGE="http://g15daemon.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS=""
+IUSE="perl python static-libs"
+
+DEPEND="virtual/libusb:0
+ >=dev-libs/libg15-9999
+ >=dev-libs/libg15render-1.2
+ perl? (
+ dev-lang/perl
+ dev-perl/GDGraph
+ >=dev-perl/Inline-0.4
+ )"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}/${P}-forgotten-open-mode.patch"
+ "${FILESDIR}/${P}-overflow-fix.patch"
+ "${FILESDIR}/${P}-g510-keys.patch"
+)
+
+uinput_check() {
+ ebegin "Checking for uinput support"
+ local rc=1
+ linux_config_exists && linux_chkconfig_present INPUT_UINPUT
+ rc=$?
+
+ if [[ $rc -ne 0 ]] ; then
+ eerror "To use g15daemon, you need to compile your kernel with uinput support."
+ eerror "Please enable uinput support in your kernel config, found at:"
+ eerror
+ eerror "Device Drivers -> Input Device ... -> Miscellaneous devices -> User level driver support."
+ eerror
+ eerror "Once enabled, you should have the /dev/input/uinput device."
+ eerror "g15daemon will not work without the uinput device."
+ fi
+}
+
+pkg_setup() {
+ linux-info_pkg_setup
+ uinput_check
+ if use python; then
+ python_pkg_setup
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ if use perl; then
+ unpack "./${P}/lang-bindings/perl-G15Daemon-0.2.tar.gz"
+ fi
+ if use python; then
+ unpack "./${P}/lang-bindings/pyg15daemon-0.0.tar.bz2"
+ fi
+}
+
+src_prepare() {
+ if use perl; then
+ perl-module_src_prepare
+ sed -i \
+ -e '1i#!/usr/bin/perl' \
+ "${S}"/contrib/testbindings.pl
+ else
+ # perl-module_src_prepare always calls base_src_prepare
+ base_src_prepare
+ fi
+}
+
+src_configure() {
+ econf \
+ --docdir="${EPREFIX}/usr/share/doc/${PF}" \
+ $(use_enable static-libs static)
+
+ if use perl; then
+ cd "${WORKDIR}/G15Daemon-0.2"
+ perl-module_src_configure
+ fi
+}
+
+src_compile() {
+ default
+
+ if use perl; then
+ cd "${WORKDIR}/G15Daemon-0.2"
+ perl-module_src_compile
+ fi
+}
+
+src_install() {
+ default
+
+ find "${ED}" -name '*.la' -exec rm -f {} +
+
+ # remove odd docs installed my make
+ rm "${ED}/usr/share/doc/${PF}/"{LICENSE,README.usage}
+
+ insinto /usr/share/${PN}/contrib
+ doins contrib/xmodmaprc
+ doins contrib/xmodmap.sh
+ if use perl; then
+ doins contrib/testbindings.pl
+ fi
+
+ newconfd "${FILESDIR}/${PN}-1.2.7.confd" ${PN}
+ newinitd "${FILESDIR}/${PN}-1.9.5.3.initd" ${PN}
+ dobin "${FILESDIR}/g15daemon-hotplug"
+ insinto /lib/udev/rules.d
+ doins "${FILESDIR}/99-g15daemon.rules"
+
+ insinto /etc
+ doins "${FILESDIR}"/g15daemon.conf
+
+ # Gentoo bug #301340, debian bug #611649
+ exeinto /usr/lib/pm-utils/sleep.d
+ doexe "${FILESDIR}"/20g15daemon
+
+ if use perl; then
+ ebegin "Installing Perl Bindings (G15Daemon.pm)"
+ cd "${WORKDIR}/G15Daemon-0.2"
+ docinto perl
+ perl-module_src_install
+ fi
+
+ if use python; then
+ ebegin "Installing Python Bindings (g15daemon.py)"
+ cd "${WORKDIR}/pyg15daemon"
+
+ installation() {
+ insinto $(python_get_sitedir)
+ doins g15daemon.py
+ }
+ python_execute_function installation
+
+ docinto python
+ dodoc AUTHORS
+ fi
+}
+
+pkg_postinst() {
+ if use python; then
+ python_mod_optimize g15daemon.py
+ echo ""
+ fi
+
+ elog "To use g15daemon, you need to add g15daemon to the default runlevel."
+ elog "This can be done with:"
+ elog "# /sbin/rc-update add g15daemon default"
+ elog "You can edit some g15daemon options at /etc/conf.d/g15daemon"
+ elog ""
+ elog "To have all new keys working in X11, you'll need create a "
+ elog "specific xmodmap in your home directory or edit the existent one."
+ elog ""
+ elog "Create the xmodmap:"
+ elog "cp /usr/share/g15daemon/contrib/xmodmaprc ~/.Xmodmap"
+ elog ""
+ elog "Adding keycodes to an existing xmodmap:"
+ elog "cat /usr/share/g15daemon/contrib/xmodmaprc >> ~/.Xmodmap"
+}
+
+pkg_postrm() {
+ if use python; then
+ python_mod_cleanup g15daemon.py
+ fi
+}
diff --git a/app-misc/g15daemon/g15daemon-9999.ebuild b/app-misc/g15daemon/g15daemon-9999.ebuild
new file mode 100644
index 000000000000..e88188462f62
--- /dev/null
+++ b/app-misc/g15daemon/g15daemon-9999.ebuild
@@ -0,0 +1,191 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+GENTOO_DEPEND_ON_PERL="no"
+PYTHON_DEPEND="python? *"
+SUPPORT_PYTHON_ABIS="1"
+ESVN_PROJECT=${PN}/trunk
+ESVN_REPO_URI="https://${PN}.svn.sourceforge.net/svnroot/${ESVN_PROJECT}/${PN}-wip"
+
+inherit eutils linux-info perl-module python base subversion autotools
+
+DESCRIPTION="G15daemon takes control of the G15 keyboard, through the linux kernel uinput device driver"
+HOMEPAGE="http://g15daemon.sourceforge.net/"
+[[ ${PV} = *9999* ]] || SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS=""
+IUSE="perl python static-libs"
+
+DEPEND="virtual/libusb:0
+ >=dev-libs/libg15-9999
+ >=dev-libs/libg15render-9999
+ perl? (
+ dev-lang/perl
+ dev-perl/GDGraph
+ >=dev-perl/Inline-0.4
+ )"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-1.9.5.3-g510-keys.patch"
+)
+# "${FILESDIR}/${PN}-1.9.5.3-forgotten-open-mode.patch"
+# "${FILESDIR}/${PN}-1.9.5.3-overflow-fix.patch"
+
+uinput_check() {
+ ebegin "Checking for uinput support"
+ local rc=1
+ linux_config_exists && linux_chkconfig_present INPUT_UINPUT
+ rc=$?
+
+ if [[ $rc -ne 0 ]] ; then
+ eerror "To use g15daemon, you need to compile your kernel with uinput support."
+ eerror "Please enable uinput support in your kernel config, found at:"
+ eerror
+ eerror "Device Drivers -> Input Device ... -> Miscellaneous devices -> User level driver support."
+ eerror
+ eerror "Once enabled, you should have the /dev/input/uinput device."
+ eerror "g15daemon will not work without the uinput device."
+ fi
+}
+
+pkg_setup() {
+ linux-info_pkg_setup
+ uinput_check
+ if use python; then
+ python_pkg_setup
+ fi
+}
+
+src_unpack() {
+ if [[ ${PV} = *9999* ]]; then
+ subversion_src_unpack
+ else
+ unpack ${A}
+ fi
+ if use perl; then
+ unpack "./${P}/lang-bindings/perl-G15Daemon-0.2.tar.gz"
+ fi
+ if use python; then
+ unpack "./${P}/lang-bindings/pyg15daemon-0.0.tar.bz2"
+ fi
+}
+
+src_prepare() {
+ if [[ ${PV} = *9999* ]]; then
+ subversion_wc_info
+ fi
+ if use perl; then
+ perl-module_src_prepare
+ sed -i \
+ -e '1i#!/usr/bin/perl' \
+ "${S}"/contrib/testbindings.pl
+ else
+ # perl-module_src_prepare always calls base_src_prepare
+ base_src_prepare
+ fi
+ if [[ ${PV} = *9999* ]]; then
+ eautoreconf
+ fi
+}
+
+src_configure() {
+ econf \
+ --docdir="${EPREFIX}/usr/share/doc/${PF}" \
+ $(use_enable static-libs static)
+
+ if use perl; then
+ cd "${WORKDIR}/G15Daemon-0.2"
+ perl-module_src_configure
+ fi
+}
+
+src_compile() {
+ default
+
+ if use perl; then
+ cd "${WORKDIR}/G15Daemon-0.2"
+ perl-module_src_compile
+ fi
+}
+
+src_install() {
+ default
+
+ find "${ED}" -name '*.la' -exec rm -f {} +
+
+ # remove odd docs installed my make
+ rm "${ED}/usr/share/doc/${PF}/"{LICENSE,README.usage}
+
+ insinto /usr/share/${PN}/contrib
+ doins contrib/xmodmaprc
+ doins contrib/xmodmap.sh
+ if use perl; then
+ doins contrib/testbindings.pl
+ fi
+
+ newconfd "${FILESDIR}/${PN}-1.2.7.confd" ${PN}
+ newinitd "${FILESDIR}/${PN}-1.9.5.3.initd" ${PN}
+ dobin "${FILESDIR}/g15daemon-hotplug"
+ insinto /lib/udev/rules.d
+ doins "${FILESDIR}/99-g15daemon.rules"
+
+ insinto /etc
+ doins "${FILESDIR}"/g15daemon.conf
+
+ # Gentoo bug #301340, debian bug #611649
+ exeinto /usr/lib/pm-utils/sleep.d
+ doexe "${FILESDIR}"/20g15daemon
+
+ if use perl; then
+ ebegin "Installing Perl Bindings (G15Daemon.pm)"
+ cd "${WORKDIR}/G15Daemon-0.2"
+ docinto perl
+ perl-module_src_install
+ fi
+
+ if use python; then
+ ebegin "Installing Python Bindings (g15daemon.py)"
+ cd "${WORKDIR}/pyg15daemon"
+
+ installation() {
+ insinto $(python_get_sitedir)
+ doins g15daemon.py
+ }
+ python_execute_function installation
+
+ docinto python
+ dodoc AUTHORS
+ fi
+}
+
+pkg_postinst() {
+ if use python; then
+ python_mod_optimize g15daemon.py
+ echo ""
+ fi
+
+ elog "To use g15daemon, you need to add g15daemon to the default runlevel."
+ elog "This can be done with:"
+ elog "# /sbin/rc-update add g15daemon default"
+ elog "You can edit some g15daemon options at /etc/conf.d/g15daemon"
+ elog ""
+ elog "To have all new keys working in X11, you'll need create a "
+ elog "specific xmodmap in your home directory or edit the existent one."
+ elog ""
+ elog "Create the xmodmap:"
+ elog "cp /usr/share/g15daemon/contrib/xmodmaprc ~/.Xmodmap"
+ elog ""
+ elog "Adding keycodes to an existing xmodmap:"
+ elog "cat /usr/share/g15daemon/contrib/xmodmaprc >> ~/.Xmodmap"
+}
+
+pkg_postrm() {
+ if use python; then
+ python_mod_cleanup g15daemon.py
+ fi
+}
diff --git a/app-misc/g15daemon/metadata.xml b/app-misc/g15daemon/metadata.xml
new file mode 100644
index 000000000000..4aeeac5bc12b
--- /dev/null
+++ b/app-misc/g15daemon/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>
+ <email>robbat2@gentoo.org</email>
+ </maintainer>
+ <maintainer>
+ <email>polynomial-c@gentoo.org</email>
+ <name>Lars Wendler</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">g15daemon</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/g15macro/Manifest b/app-misc/g15macro/Manifest
new file mode 100644
index 000000000000..ff793a39682b
--- /dev/null
+++ b/app-misc/g15macro/Manifest
@@ -0,0 +1 @@
+DIST g15macro-1.0.3.tar.gz 324859 SHA256 be4a5ba422777b330d09169fe505eae433aad7378c2eaf411ea591723b82ace2 SHA512 8497aea4a6c8df3b9015ce87c38c8ad20fc66c6b2b04368716a11130e09ef75e32ba9664b57fcda0f5d8a962653ba46e6f851e6e56110d89629765cf77fa751d WHIRLPOOL 65f2f146b819604c6f26de1840f7c4ab61a53c103886ef94ae7bf57104ddb311962a7f279bddd10adcc665ad151bdc33d0cfd1aeb5f193247713bbc0ab879295
diff --git a/app-misc/g15macro/g15macro-1.0.3-r1.ebuild b/app-misc/g15macro/g15macro-1.0.3-r1.ebuild
new file mode 100644
index 000000000000..2dd1ac5efe3b
--- /dev/null
+++ b/app-misc/g15macro/g15macro-1.0.3-r1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+DESCRIPTION="Macro recording plugin to G15daemon"
+HOMEPAGE="http://g15daemon.sourceforge.net/"
+SRC_URI="mirror://sourceforge/g15daemon/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc ~ppc64 x86"
+IUSE=""
+
+DEPEND=">=app-misc/g15daemon-1.9.0
+ dev-libs/libg15
+ dev-libs/libg15render
+ x11-libs/libX11
+ x11-proto/xextproto
+ x11-proto/xproto
+ x11-libs/libXtst"
+
+RDEPEND="${DEPEND}
+ sys-libs/zlib"
+
+src_configure() {
+ econf --enable-xtest
+}
+
+src_install() {
+ default
+ rm -rf "${ED}"/usr/share/doc/${P}
+}
diff --git a/app-misc/g15macro/metadata.xml b/app-misc/g15macro/metadata.xml
new file mode 100644
index 000000000000..4aeeac5bc12b
--- /dev/null
+++ b/app-misc/g15macro/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>
+ <email>robbat2@gentoo.org</email>
+ </maintainer>
+ <maintainer>
+ <email>polynomial-c@gentoo.org</email>
+ <name>Lars Wendler</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">g15daemon</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/g15message/Manifest b/app-misc/g15message/Manifest
new file mode 100644
index 000000000000..9facc8f1f1dd
--- /dev/null
+++ b/app-misc/g15message/Manifest
@@ -0,0 +1 @@
+DIST g15message-1.0.0.tar.bz2 219798 SHA256 8e1f5459e206cc6458c09c11ceb36ee8781769a0964ff7a5a17d1980c20cfc34 SHA512 608fb789e1390e6f8fabe4c1f21cabfb0c445660a2629616ddca253d232d9e58775c8aeb8c44dde0b014e6e26cbab70db991000f1bfcb4daed1727a06de7a78f WHIRLPOOL 8d5f865efd729f30d5fe49419bdcc4811ff630d17e2097a0792faae7a7ecbd716cc83f1e54b089a248e66f61bb44516dccd2b84e71ce24efe6047283e3f0ca19
diff --git a/app-misc/g15message/g15message-1.0.0.ebuild b/app-misc/g15message/g15message-1.0.0.ebuild
new file mode 100644
index 000000000000..97c034e23b05
--- /dev/null
+++ b/app-misc/g15message/g15message-1.0.0.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+DESCRIPTION="A simple message/alert client for G15daemon"
+HOMEPAGE="http://g15daemon.sourceforge.net/"
+SRC_URI="mirror://sourceforge/g15daemon/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE=""
+
+DEPEND=">=app-misc/g15daemon-1.9.0
+ dev-libs/libg15
+ dev-libs/libg15render
+ sys-libs/zlib"
+
+RDEPEND="${DEPEND}"
+
+src_install() {
+ emake DESTDIR="${D}" install || die "make install failed"
+ rm "$D"/usr/share/doc/${P}/{COPYING,NEWS}
+
+ prepalldocs
+}
diff --git a/app-misc/g15message/metadata.xml b/app-misc/g15message/metadata.xml
new file mode 100644
index 000000000000..4aeeac5bc12b
--- /dev/null
+++ b/app-misc/g15message/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>
+ <email>robbat2@gentoo.org</email>
+ </maintainer>
+ <maintainer>
+ <email>polynomial-c@gentoo.org</email>
+ <name>Lars Wendler</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">g15daemon</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/g15mpd/Manifest b/app-misc/g15mpd/Manifest
new file mode 100644
index 000000000000..07b2d13aba19
--- /dev/null
+++ b/app-misc/g15mpd/Manifest
@@ -0,0 +1 @@
+DIST g15mpd-1.0.0.tar.bz2 220482 SHA256 c7792951f1168144108f8eb66ae6d41b63ac2cb4448827d7e3f755ccfdc72afe SHA512 509b634c8ba1f3b9efd0d7af47b553671efe3526c9acd44b292bf5883b1016cfbf18dec69c8bb5b3a35853e76b9b4fe7a51cd2a33acf4c755d2824dc793fa0ca WHIRLPOOL 1acc183e5e0840f0e49554fc6749852716ebcfa87d897d3ff8e790c5e865ef4725a8cd1cee70691ebeae3368dd3271c108794e565948ff0620426b6baae3a3c9
diff --git a/app-misc/g15mpd/files/g15mpd-1.0.0-cflags-and-lib-fix.patch b/app-misc/g15mpd/files/g15mpd-1.0.0-cflags-and-lib-fix.patch
new file mode 100644
index 000000000000..5bdb1261f367
--- /dev/null
+++ b/app-misc/g15mpd/files/g15mpd-1.0.0-cflags-and-lib-fix.patch
@@ -0,0 +1,18 @@
+diff -ruN g15mpd-1.0.0/Makefile.am g15mpd-1.0.0-patched/Makefile.am
+--- g15mpd-1.0.0/Makefile.am 2014-01-17 13:43:28.536056492 -0500
++++ g15mpd-1.0.0-patched/Makefile.am 2014-01-17 13:43:31.596056410 -0500
+@@ -1,12 +1,12 @@
+ AM_CPPFLAGS = @libmpd_CFLAGS@
+-AM_CFLAGS = -O3 -Wall @CFLAGS@ -I$(top_builddir) -I$(top_srcdir)
++AM_CFLAGS = @CFLAGS@ -I$(top_builddir) -I$(top_srcdir)
+ METASOURCES = AUTO
+ bin_PROGRAMS = g15mpd
+
+ docdir = $(prefix)/share/doc/$(PACKAGE)-$(VERSION)
+ doc_DATA = README ChangeLog AUTHORS NEWS COPYING
+
+-LIBS = -lg15daemon_client -lg15render -lX11 -lXtst @libmpd_LIBS@
++LIBS = -lpthread -lg15daemon_client -lg15render -lX11 -lXtst @libmpd_LIBS@
+ IMCLUDES = -I
+ g15mpd_LDFLAGS = -avoid-version
+ g15mpd_SOURCES = g15mpd.c
diff --git a/app-misc/g15mpd/files/g15mpd-1.0.0-libmpd.patch b/app-misc/g15mpd/files/g15mpd-1.0.0-libmpd.patch
new file mode 100644
index 000000000000..57d2fb8a1ef6
--- /dev/null
+++ b/app-misc/g15mpd/files/g15mpd-1.0.0-libmpd.patch
@@ -0,0 +1,34 @@
+diff --git a/Makefile.am b/Makefile.am
+index e407dab..6404618 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -1,4 +1,4 @@
+-
++AM_CPPFLAGS = @libmpd_CFLAGS@
+ AM_CFLAGS = -O3 -Wall @CFLAGS@ -I$(top_builddir) -I$(top_srcdir)
+ METASOURCES = AUTO
+ bin_PROGRAMS = g15mpd
+@@ -6,7 +6,7 @@ bin_PROGRAMS = g15mpd
+ docdir = $(prefix)/share/doc/$(PACKAGE)-$(VERSION)
+ doc_DATA = README ChangeLog AUTHORS NEWS COPYING
+
+-LIBS = -lg15daemon_client -lg15render -lX11 -lXtst -lmpd
++LIBS = -lg15daemon_client -lg15render -lX11 -lXtst @libmpd_LIBS@
+ IMCLUDES = -I
+ g15mpd_LDFLAGS = -avoid-version
+ g15mpd_SOURCES = g15mpd.c
+diff --git a/configure.in b/configure.in
+index aaa361c..83281d0 100644
+--- a/configure.in
++++ b/configure.in
+@@ -18,7 +18,9 @@ AC_HEADER_SYS_WAIT
+ AC_CHECK_HEADERS(g15daemon_client.h libg15render.h,,AC_MSG_ERROR(["libg15daemon_client (or its devel package) could not be found. please install it"]))
+ AC_CHECK_HEADERS(X11/Xlib.h X11/XF86keysym.h,,AC_MSG_ERROR(["Xorg development files could not be found. please install the devel package"]))
+ AC_CHECK_HEADERS(X11/extensions/XTest.h,,AC_MSG_ERROR(["Xorg XTEST Extension devel headers could not be found. please install the devel package"]))
+-AC_CHECK_HEADERS(libmpd/libmpd.h,,AC_MSG_ERROR(["libmpd development files could not be found. please install the libmpd devel package"]))
++PKG_CHECK_MODULES([libmpd], [libmpd])
++AC_SUBST(libmpd_LIBS)
++AC_SUBST(libmpd_CFLAGS)
+ AC_PATH_X
+
+ AC_OUTPUT(Makefile)
diff --git a/app-misc/g15mpd/g15mpd-1.0.0-r1.ebuild b/app-misc/g15mpd/g15mpd-1.0.0-r1.ebuild
new file mode 100644
index 000000000000..8d752a77fa0a
--- /dev/null
+++ b/app-misc/g15mpd/g15mpd-1.0.0-r1.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit autotools eutils
+
+DESCRIPTION="MPD (music player daemon) plugin to G15daemon"
+HOMEPAGE="http://g15daemon.sourceforge.net/"
+SRC_URI="mirror://sourceforge/g15daemon/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+RDEPEND="
+ >=app-misc/g15daemon-1.9
+ dev-libs/libg15
+ dev-libs/libg15render
+ >=media-libs/libmpd-0.17
+ sys-libs/zlib
+ x11-libs/libX11
+ x11-libs/libXtst
+"
+DEPEND="${RDEPEND}
+ x11-proto/xproto
+ x11-proto/xextproto"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-libmpd.patch
+ epatch "${FILESDIR}/${PN}-1.0.0-cflags-and-lib-fix.patch"
+ eautoreconf
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ rm "${D}"/usr/share/doc/${P}/{COPYING,NEWS}
+}
diff --git a/app-misc/g15mpd/metadata.xml b/app-misc/g15mpd/metadata.xml
new file mode 100644
index 000000000000..966a40b5ccc1
--- /dev/null
+++ b/app-misc/g15mpd/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>
+ <email>maintainer-needed@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">g15daemon</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/g15stats/Manifest b/app-misc/g15stats/Manifest
new file mode 100644
index 000000000000..de6272512f6d
--- /dev/null
+++ b/app-misc/g15stats/Manifest
@@ -0,0 +1 @@
+DIST g15stats-1.9.7.tar.bz2 24103 SHA256 55669ffc080091beb59934e3cdd54e305da340f090a0e4ca6289d3ddc041a3d5 SHA512 de447dfddd563513205b29b3611b0558371b2a7fbe7bf3aa11cd997c0ee2767b3aba05df9745d15e5c0b81382b96163fb7d33ba6a77e04ac817c7a8e26e228ff WHIRLPOOL abe464c0ea44b14a5101a023d3de52907f21c91828b6791b678e6efc4875b129d7a75cb554a21e09a046a52da72b083a9df1c0f1a5a4f284572d954bcb4e3dda
diff --git a/app-misc/g15stats/files/g15stats-1.9.7.confd b/app-misc/g15stats/files/g15stats-1.9.7.confd
new file mode 100644
index 000000000000..4bf61c238488
--- /dev/null
+++ b/app-misc/g15stats/files/g15stats-1.9.7.confd
@@ -0,0 +1,20 @@
+# /etc/conf.d/g15stats: Configuration for the G15 stats
+
+#Gather statistics from named interface (ie eth0)
+#Network Screen displays Total bytes In/Out, history graph, Peak speed.
+IFACE="eth0"
+
+# Please see g15stats --help for meanings
+#TEMP_INPUT=1
+#GLOBAL_TEMP_INPUT=1
+#FAN_INPUT=1
+
+# please see g15stats --help for all options
+# As of 1.9.7, the options where:
+# --unicore
+# --net-scale-absolute
+# --info-rotate
+# --variable-cpu
+# --refresh
+# --disable-freq
+EXTRA_OPTS="${IFACE:+--interface} ${IFACE} ${TEMP_INPUT:+--temperature} ${TEMP_INPUT} ${GLOBAL_TEMP_INPUT:+--global-temp} ${GLOBAL_TEMP_INPUT} ${FAN_INPUT:+--fan} ${FAN_INPUT}"
diff --git a/app-misc/g15stats/files/g15stats-1.9.7.initd b/app-misc/g15stats/files/g15stats-1.9.7.initd
new file mode 100644
index 000000000000..57fedd4ae6f4
--- /dev/null
+++ b/app-misc/g15stats/files/g15stats-1.9.7.initd
@@ -0,0 +1,24 @@
+#!/sbin/runscript
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+PIDFILE=/var/run/${SVCNAME}.pid
+
+depend() {
+ need g15daemon
+ after xdm
+}
+
+start() {
+ ebegin "Starting ${SVCNAME}"
+ start-stop-daemon --start --background --make-pidfile --pidfile ${PIDFILE} --exec \
+ /usr/bin/g15stats -- "${EXTRA_OPTS}"
+ eend $?
+}
+
+stop() {
+ ebegin "Stoping ${SVCNAME}"
+ start-stop-daemon --stop --pidfile ${PIDFILE} --name g15stats
+ eend $?
+}
diff --git a/app-misc/g15stats/g15stats-1.9.7.ebuild b/app-misc/g15stats/g15stats-1.9.7.ebuild
new file mode 100644
index 000000000000..0c34a10e6574
--- /dev/null
+++ b/app-misc/g15stats/g15stats-1.9.7.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+DESCRIPTION="CPU, memory, swap, network stats for G15 Keyboard"
+HOMEPAGE="http://g15daemon.sourceforge.net/"
+SRC_URI="mirror://sourceforge/g15daemon/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=">=app-misc/g15daemon-1.9.0
+ dev-libs/libg15
+ dev-libs/libg15render
+ sys-libs/zlib
+ gnome-base/libgtop"
+
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_prepare() {
+ sh autogen.sh
+}
+
+src_configure() {
+ export CPPFLAGS=$CFLAGS
+ econf
+}
+
+src_compile() {
+ emake
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "make install failed"
+ rm "$D"/usr/share/doc/${P}/{COPYING,NEWS}
+
+ newconfd "${FILESDIR}/${PN}-1.9.7.confd" ${PN}
+ newinitd "${FILESDIR}/${PN}-1.9.7.initd" ${PN}
+}
+
+pkg_postinst() {
+ elog "Remember to set the interface you want monitored in"
+ elog "/etc/conf.d/g15stats"
+}
diff --git a/app-misc/g15stats/metadata.xml b/app-misc/g15stats/metadata.xml
new file mode 100644
index 000000000000..4aeeac5bc12b
--- /dev/null
+++ b/app-misc/g15stats/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>
+ <email>robbat2@gentoo.org</email>
+ </maintainer>
+ <maintainer>
+ <email>polynomial-c@gentoo.org</email>
+ <name>Lars Wendler</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">g15daemon</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/gcal/Manifest b/app-misc/gcal/Manifest
new file mode 100644
index 000000000000..02834c7038bf
--- /dev/null
+++ b/app-misc/gcal/Manifest
@@ -0,0 +1 @@
+DIST gcal-3.6.3.tar.xz 1640172 SHA256 6742913a1d011ac109ad713ef4a8263eaf4c5cfd315471626a92f094e3e4b31b SHA512 9be7d6e58a55fbb7531f91bd2a6fa51e8d62364636c31d8d65f6ac24415ac2de8af5eaab8496e155c2820b7480ecf926c4395114ff4363deb21bd268dec44963 WHIRLPOOL 8dc5c99af8b76d58f751f28d687bf1bf5ba62864df38570de7d8a11fbf09e5d5d93688f6ab7d26ecc5b9676c4f5f0a2b8572c5271fb0c82a64e82ca30d77a071
diff --git a/app-misc/gcal/gcal-3.6.3.ebuild b/app-misc/gcal/gcal-3.6.3.ebuild
new file mode 100644
index 000000000000..860cbde89b84
--- /dev/null
+++ b/app-misc/gcal/gcal-3.6.3.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils flag-o-matic toolchain-funcs
+
+DESCRIPTION="The GNU Calendar - a replacement for cal"
+HOMEPAGE="http://www.gnu.org/software/gcal/"
+SRC_URI="mirror://gnu/gcal/${P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 ~arm ppc x86 ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
+IUSE="ncurses nls unicode"
+
+DEPEND="
+ app-arch/xz-utils
+ nls? ( >=sys-devel/gettext-0.17 )"
+RDEPEND="nls? ( virtual/libintl )"
+
+DOCS=( BUGS LIMITATIONS NEWS README THANKS TODO )
+
+src_configure() {
+ tc-export CC
+ append-cppflags -D_GNU_SOURCE
+ econf \
+ --disable-rpath \
+ $(use_enable nls) \
+ $(use_enable ncurses term) \
+ $(use_enable unicode)
+}
diff --git a/app-misc/gcal/metadata.xml b/app-misc/gcal/metadata.xml
new file mode 100644
index 000000000000..d8de67ce3e0b
--- /dev/null
+++ b/app-misc/gcal/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>shell-tools</herd>
+ <longdescription>
+ Gcal is a program similar the standard calendar programs BSD "cal" and
+ "calendar". Gcal displays hybrid and proleptic Julian and Gregorian calendar
+ sheets, respectively, for one month, three months or a whole year. It also
+ displays eternal holiday lists for many countries around the globe, and
+ features a very powerful creation of fixed date lists that can be used for
+ reminding purposes. Gcal can calculate various astronomical data and times
+ of the Sun and the Moon for at pleasure any location, precisely enough for
+ most civil purposes. Gcal supports some other calendar systems, for example
+ the Chinese and Japanese calendar, the Hebrew calendar and the civil Islamic
+ calendar, too.
+</longdescription>
+</pkgmetadata>
diff --git a/app-misc/gcalcli/Manifest b/app-misc/gcalcli/Manifest
new file mode 100644
index 000000000000..5383329dace9
--- /dev/null
+++ b/app-misc/gcalcli/Manifest
@@ -0,0 +1 @@
+DIST gcalcli-3.2.tar.gz 1672457 SHA256 9b3465be8e64c291ffe4582f8cb779a7025c700e6a83aae74722d87a3b88d55a SHA512 a2e0d9aea2f27eaee3796acfbfdc08b88a7792002b10f0e44b0db1187a7ecd50aa97f78df7236038c8c18bc1b6dacbfa4b26db6bfb5762c880415c10a5364d83 WHIRLPOOL 66b8e954c5d4527e2725d0f07786262f4365f356e3ef893aa8253d07c41523b5f9c71bffd03acc02b27c57001f0c1e7b3cd92fea7396974b8898b4940abff6fb
diff --git a/app-misc/gcalcli/gcalcli-3.2.ebuild b/app-misc/gcalcli/gcalcli-3.2.ebuild
new file mode 100644
index 000000000000..c42c2b3f9691
--- /dev/null
+++ b/app-misc/gcalcli/gcalcli-3.2.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+# google-api-python-client only supports these
+PYTHON_COMPAT=( python2_7 pypy )
+
+inherit python-r1
+
+DESCRIPTION="Google Calendar Command Line Interface"
+HOMEPAGE="https://github.com/insanum/gcalcli"
+SRC_URI="https://github.com/insanum/gcalcli/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND="dev-python/python-dateutil
+ dev-python/google-api-python-client
+ dev-python/gdata
+ dev-python/vobject"
+
+src_install() {
+ dodoc -r ChangeLog README.md docs
+ python_foreach_impl python_doscript ${PN}
+}
diff --git a/app-misc/gcalcli/metadata.xml b/app-misc/gcalcli/metadata.xml
new file mode 100644
index 000000000000..a4ecbfb3a3a7
--- /dev/null
+++ b/app-misc/gcalcli/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>
+ <email>robbat2@gentoo.org</email>
+ <name>Robin H. Johnson</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">insanum/gcalcli</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/gcstar/Manifest b/app-misc/gcstar/Manifest
new file mode 100644
index 000000000000..c3f678d433f8
--- /dev/null
+++ b/app-misc/gcstar/Manifest
@@ -0,0 +1 @@
+DIST gcstar-1.7.0.tar.gz 4506937 SHA256 3cd76231c5410653b241c5aa37dc8120f4f94c3bccb3290f97ac0347acad7039 SHA512 9cb22a7ee38bbeae67ffc6f649ef6e988da43a1f353b027bacbf14ffcca8a4c12ef28d64876b2171396315eae95f76708a1307255eabc3eed6776137e2ae7090 WHIRLPOOL 6ce65af3395f9319d1123446e616f6b983170f14736ed47e5b20184d8dccd57f858758393dcf384bf5f7df46dac200945e21c9303c71a1f280d11939bf21daa4
diff --git a/app-misc/gcstar/files/gcstar-1.4.0-man.patch b/app-misc/gcstar/files/gcstar-1.4.0-man.patch
new file mode 100644
index 000000000000..dfcade74c740
--- /dev/null
+++ b/app-misc/gcstar/files/gcstar-1.4.0-man.patch
@@ -0,0 +1,26 @@
+Install man files in /usr/share/man, not /usr/man
+
+--- gcstar/install 2008-03-04 22:56:00.000000000 -0500
++++ gcstar-1.4.0/install 2008-06-06 18:16:17.819918815 -0400
+@@ -107,7 +107,7 @@
+ }
+
+ unlink $baseDir.'/bin/'.$binName;
+- unlink $baseDir.'/man/man1/'.$binName.'.1.gz';
++ unlink $baseDir.'/share/man/man1/'.$binName.'.1.gz';
+
+ # remove menu and mime items
+
+@@ -187,9 +187,9 @@
+ mkpath $baseDir.'/bin';
+ copy 'bin/gcstar', $baseDir.'/bin/'.$binName;
+
+- verbosePrint $lang{InstallCopyDirectory}, $baseDir.'/man/man1';
+- mkpath $baseDir.'/man/man1';
+- my $manPage = "$baseDir/man/man1/$binName.1";
++ verbosePrint $lang{InstallCopyDirectory}, $baseDir.'/share/man/man1';
++ mkpath $baseDir.'/share/man/man1';
++ my $manPage = "$baseDir/share/man/man1/$binName.1";
+ copy 'man/gcstar.1', $manPage;
+ `gzip -f $manPage 2>&1 >/dev/null`;
+
diff --git a/app-misc/gcstar/files/gcstar-1.7.0-gcstar.desktop.patch b/app-misc/gcstar/files/gcstar-1.7.0-gcstar.desktop.patch
new file mode 100644
index 000000000000..62b6a7b47401
--- /dev/null
+++ b/app-misc/gcstar/files/gcstar-1.7.0-gcstar.desktop.patch
@@ -0,0 +1,23 @@
+From e78617436de63141cd4ff6e42fc0391a9a00d80a Mon Sep 17 00:00:00 2001
+From: Alexandre Rostovtsev <tetromino@gentoo.org>
+Date: Sat, 8 Sep 2012 18:14:40 -0400
+Subject: [PATCH] gcstar.desktop: MimeType list must be terminated with ';'
+
+Needed for gcstar.desktop to pass validation with desktop-file-utils-0.20
+---
+ gcstar/share/applications/gcstar.desktop | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/gcstar/share/applications/gcstar.desktop b/gcstar/share/applications/gcstar.desktop
+index aa6a46d..c7a146e 100644
+--- a/gcstar/share/applications/gcstar.desktop
++++ b/gcstar/share/applications/gcstar.desktop
+@@ -15,4 +15,4 @@ Terminal=false
+ StartupNotify=true
+ Type=Application
+ Categories=Office;
+-MimeType=application/x-gcstar
++MimeType=application/x-gcstar;
+--
+1.7.12
+
diff --git a/app-misc/gcstar/gcstar-1.7.0.ebuild b/app-misc/gcstar/gcstar-1.7.0.ebuild
new file mode 100644
index 000000000000..b89ea30b2b6f
--- /dev/null
+++ b/app-misc/gcstar/gcstar-1.7.0.ebuild
@@ -0,0 +1,114 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+inherit eutils fdo-mime gnome2-utils
+
+DESCRIPTION="Manage your collections of movies, games, books, music and more"
+HOMEPAGE="http://www.gcstar.org/"
+SRC_URI="http://download.gna.org/gcstar/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="cddb gnome mp3 spell stats tellico vorbis"
+
+RDEPEND="dev-lang/perl
+ dev-perl/Archive-Zip
+ dev-perl/DateTime-Format-Strptime
+ dev-perl/gtk2-perl
+ dev-perl/HTML-Parser
+ dev-perl/libwww-perl
+ dev-perl/URI
+ dev-perl/XML-Parser
+ dev-perl/XML-Simple
+ virtual/perl-Archive-Tar
+ virtual/perl-Encode
+ virtual/perl-Getopt-Long
+ virtual/perl-File-Path
+ virtual/perl-File-Spec
+ virtual/perl-File-Temp
+ virtual/perl-IO-Compress
+ virtual/perl-libnet
+ virtual/perl-Storable
+ virtual/perl-Time-Piece
+
+ cddb? ( dev-perl/Net-FreeDB )
+ gnome? ( dev-perl/gnome2-vfs-perl )
+ mp3? ( dev-perl/MP3-Info dev-perl/MP3-Tag )
+ spell? ( dev-perl/gtk2-spell )
+ stats? ( dev-perl/Date-Calc
+ dev-perl/GD[png,truetype] )
+ tellico? ( virtual/perl-Digest-MD5
+ virtual/perl-MIME-Base64 )
+ vorbis? ( dev-perl/Ogg-Vorbis-Header-PurePerl )"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/${PN}"
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-1.4.0-man.patch"
+ epatch "${FILESDIR}/${P}-gcstar.desktop.patch"
+}
+
+src_install() {
+ if [[ -n ${LINGUAS+set} ]]; then
+ # LINGUAS is set, let's try to respect it.
+ pushd lib/gcstar/GCLang > /dev/null
+
+ mkdir tmp || die "mkdir failed"
+ mv ?? ZH_CN tmp || die "mv 1 failed"
+ # English version should be always available so we will keep it
+ mv tmp/EN . || die "mv 2 failed"
+
+ for x in ${LINGUAS}; do
+ if [[ ${x} = "zh_CN" ]]; then
+ mv "tmp/ZH_CN" . || die "mv 3 failed"
+ else
+ # GCstar uses upper-case, 2-letter language codes
+ d=$(echo ${x} | tr '[:lower:]' '[:upper:]' | sed -e 's:_.*::')
+ if [[ -d "tmp/${d}" ]]; then
+ mv "tmp/${d}" . || die "mv 5 failed"
+ fi
+ fi
+ done
+
+ rm -rf tmp
+ popd > /dev/null
+ fi
+
+ # Yes, ED *is* needed here. gcstar's install lacks any concept of DESTDIR.
+ ./install --prefix="${ED}usr" \
+ --noclean --nomenu || die "install script failed"
+
+ domenu share/applications/gcstar.desktop
+ for size in 16 22 24 32 36 48 64 72 96 128 256
+ do
+ insinto /usr/share/icons/hicolor/${size}x${size}/apps
+ newins share/gcstar/icons/gcstar_${size}x${size}.png gcstar.png
+ done
+ insinto /usr/share/icons/hicolor/scalable/apps
+ newins share/gcstar/icons/gcstar_scalable.svg gcstar.svg
+ insinto /usr/share/mime/packages
+ doins share/applications/gcstar.xml
+
+ dodoc CHANGELOG README README.fr
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+ gnome2_icon_cache_update
+}
diff --git a/app-misc/gcstar/metadata.xml b/app-misc/gcstar/metadata.xml
new file mode 100644
index 000000000000..fec796b174bc
--- /dev/null
+++ b/app-misc/gcstar/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>
+ <email>tetromino@gentoo.org</email>
+ <name>Alexandre Rostovtsev</name>
+ </maintainer>
+ <longdescription lang="en">
+ GCstar is an application for managing your collections. It supports many
+ types of collections, including movies, books, games, comics, stamps,
+ coins, and many more. You can even create your own collection type for
+ whatever unique thing it is that you collect! Detailed information on
+ each item can be automatically retrieved from the internet and you can
+ store additional data, such as the location or who you've lent it to.
+ You may also search and filter your collections by many criteria.
+ </longdescription>
+ <use>
+ <flag name="stats">Enable statistics reporting</flag>
+ <flag name="tellico">Enable support for <pkg>kde-misc/tellico</pkg>
+ files</flag>
+ </use>
+</pkgmetadata>
diff --git a/app-misc/geekcode/Manifest b/app-misc/geekcode/Manifest
new file mode 100644
index 000000000000..f8cc5234cc10
--- /dev/null
+++ b/app-misc/geekcode/Manifest
@@ -0,0 +1 @@
+DIST geekcode-1.7.3.tar.gz 60617 SHA256 7244972147f8855864df497f52531dbb2b3e6b9ffd2a0ce2f97e7626d166495e SHA512 eca8489dafee507246538bbb8d35cc17c5712571603bad1f470803883cdbaf9658769df77e214704b6a5adec382f76e599a2f6c48ec3759861159ac626131bfa WHIRLPOOL 4274d841946871dc42fc2c254a9b2ad2281c5650c2a3cc942ad412891980810fc2ef6a3d5a64b16ef3bb7d7fe1ee2057d7277dd1899129afa4adeb975752261e
diff --git a/app-misc/geekcode/files/geekcode-1.7.3-exit.patch b/app-misc/geekcode/files/geekcode-1.7.3-exit.patch
new file mode 100644
index 000000000000..23eba06a52eb
--- /dev/null
+++ b/app-misc/geekcode/files/geekcode-1.7.3-exit.patch
@@ -0,0 +1,10 @@
+--- geekcode.h.orig 2003-06-30 16:47:40.000000000 +0200
++++ geekcode.h 2010-12-30 19:14:51.000000000 +0100
+@@ -22,6 +22,7 @@
+ #ifndef __INCLUDED_GEEKCODE_H__
+ #define __INCLUDED_GEEKCODE_H__
+
++#include <stdlib.h> /* exit() */
+
+ #define VERSION "1.7.3" /* Added in v1.2 */
+
diff --git a/app-misc/geekcode/geekcode-1.7.3-r1.ebuild b/app-misc/geekcode/geekcode-1.7.3-r1.ebuild
new file mode 100644
index 000000000000..cd165c69042e
--- /dev/null
+++ b/app-misc/geekcode/geekcode-1.7.3-r1.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="2"
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Geek code generator"
+HOMEPAGE="http://sourceforge.net/projects/geekcode"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm ~mips ppc ppc64 x86 ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x86-macos"
+IUSE=""
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-exit.patch
+ sed -i Makefile -e 's| -o | ${LDFLAGS}&|g' || die "sed Makefile"
+}
+
+src_compile() {
+ emake CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" \
+ CC="$(tc-getCC)" || die "emake failed"
+}
+
+src_install() {
+ dobin geekcode || die
+ dodoc CHANGES README geekcode.txt
+}
diff --git a/app-misc/geekcode/metadata.xml b/app-misc/geekcode/metadata.xml
new file mode 100644
index 000000000000..17d411bddcdd
--- /dev/null
+++ b/app-misc/geekcode/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>
+ <email>pinkbyte@gentoo.org</email>
+ <name>Sergey Popov</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">geekcode</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/geneweb/Manifest b/app-misc/geneweb/Manifest
new file mode 100644
index 000000000000..325a6215ab2f
--- /dev/null
+++ b/app-misc/geneweb/Manifest
@@ -0,0 +1,2 @@
+DIST geneweb-6.07-reduce-utf8.ml.patch.gz 185409 SHA256 cc5b7d30333e8c7b187b83106189b5e63a7d423c2e500b77b5d087cd8cd239fa SHA512 d6b71fc6d3a1488f6e96e65ab0c942c08b9e0307b2d06c9bb97fde0c2e35af2fb4b52011024e67550e608603eacfaf5ee312c99c9228edfedc2dbe82745de227 WHIRLPOOL 75e30b8ef19803dcc6f391fc798c2bb4d4e4fa685d0d5d060dcb1a9ad676a45f5016fef2e6306019876d0d30d662ee3f67f361267a2829b2ce679836c573104c
+DIST gw-6.07-src.tgz 1855016 SHA256 c1ecc337f8bce4d8509ca49081d098b5a44ddb6407208496e55e9a38d6bfb1f6 SHA512 719884af80809b25946175731ae20b280e13f6e18471903d2222928c11838a2a92a43f03dd8152b7b01dfcaf45fbd942035f4b54f049899ea134cd161cfc971d WHIRLPOOL 70305616cafcb9476814e3fe8355571611fef4eabe022afd2f3b92c3a9c9c6bc2be69a37532e4b04cc16e9ce8979abda1b103f4606a8784bf64caa0c1b9ff5e5
diff --git a/app-misc/geneweb/files/geneweb-6.07-gentoo.patch b/app-misc/geneweb/files/geneweb-6.07-gentoo.patch
new file mode 100644
index 000000000000..a7cdff7a44c5
--- /dev/null
+++ b/app-misc/geneweb/files/geneweb-6.07-gentoo.patch
@@ -0,0 +1,30 @@
+--- setup/setup.ml.old 2007-08-07 19:25:13.000000000 +0200
++++ setup/setup.ml 2007-08-07 19:24:59.000000000 +0200
+@@ -5,8 +5,8 @@
+
+ value port = ref 2316;
+ value default_lang = ref "en";
+-value setup_dir = ref ".";
+-value bin_dir = ref "";
++value setup_dir = ref "/usr/share/geneweb";
++value bin_dir = ref "/usr/bin";
+ value lang_param = ref "";
+ value only_file = ref "";
+
+--- tools/Makefile.inc.unix.old 2008-04-23 15:22:50.000000000 +0200
++++ tools/Makefile.inc.unix 2008-04-23 15:23:04.000000000 +0200
+@@ -5,11 +5,11 @@
+ CAMLP5F=-DUNIX
+ CAMLP5D=+camlp5
+ LIBUNIX=-cclib -lunix
+-OCAMLC=ocamlc.opt -warn-error A
+-OCAMLOPT=ocamlopt.opt -warn-error A
++OCAMLC=ocamlc.opt
++OCAMLOPT=ocamlopt.opt
+ OCAMLI=
+ OCAMLD=
+-STRIP=strip
++STRIP=true
+ RM=/bin/rm -f
+ EXE=
+ STATIC=-ccopt -static
diff --git a/app-misc/geneweb/files/geneweb-6.07-parallellbuild.patch b/app-misc/geneweb/files/geneweb-6.07-parallellbuild.patch
new file mode 100644
index 000000000000..cb1a5b0125e9
--- /dev/null
+++ b/app-misc/geneweb/files/geneweb-6.07-parallellbuild.patch
@@ -0,0 +1,68 @@
+--- wserver/Makefile.old 2011-03-11 13:47:04.000000000 +0100
++++ wserver/Makefile 2011-03-11 13:47:20.000000000 +0100
+@@ -4,8 +4,10 @@
+
+ OBJS=wserver.cmo
+
+-all:: pa_macro5.cmo $(OBJS)
++all:: pa_macro5.cmo
++ $(MAKE) $(OBJS)
+-opt:: pa_macro5.cmo $(OBJS:.cmo=.cmx)
++opt:: pa_macro5.cmo
++ $(MAKE) $(OBJS:.cmo=.cmx)
+
+ pa_macro5.cmo: pa_macro5.ml
+ camlp5r pa_extend.cmo q_MLast.cmo -o pa_macro5.ppo pa_macro5.ml
+--- src/Makefile.old 2013-04-18 21:29:52.727049806 +0200
++++ src/Makefile 2013-04-18 21:30:58.838414496 +0200
+@@ -153,6 +153,8 @@
+ ) | \
+ sort | uniq | grep -v '^$$' > i18n
+
++config.cmi: gwdb.cmi
++
+ always:
+
+ depend:
+--- src/.depend.old 2014-07-17 09:18:26.882149121 +0200
++++ src/.depend 2014-07-17 09:19:07.981770328 +0200
+@@ -162,7 +162,7 @@
+ mutil.cmx notesLinks.cmx progrBar.cmx secure.cmx select.cmx
+ history.cmo: adef.cmi buff.cmo config.cmi date.cmi def.cmi gutil.cmi \
+ gwdb.cmi hutil.cmi mutil.cmi secure.cmi templ.cmi templAst.cmi util.cmi \
+- history_diff.cmi ../wserver/wserver.cmi history.cmi
++ history_diff.cmo ../wserver/wserver.cmi history.cmi
+ history.cmx: adef.cmx buff.cmx config.cmi date.cmx def.cmi gutil.cmx \
+ gwdb.cmx hutil.cmx mutil.cmx secure.cmx templ.cmx templAst.cmi util.cmx \
+ history_diff.cmx ../wserver/wserver.cmx history.cmi
+--- ged2gwb/.depend.old 2014-07-17 09:23:02.119612299 +0200
++++ ged2gwb/.depend 2014-07-17 09:23:53.987134380 +0200
+@@ -1,7 +1,7 @@
+ ged2gwb2.cmo: ../src/adef.cmi ../src/ansel.cmo ../src/argl.cmo \
+ ../src/buff.cmo ../src/calendar.cmi ../src/db2link.cmi ../src/def.cmi \
+ ../src/futil.cmi ../src/gwcomp.cmi ../src/lock.cmi ../src/mutil.cmi \
+- ../src/name.cmi ../src/secure.cmi ./utf8.cmi
++ ../src/name.cmi ../src/secure.cmi ./utf8.cmo
+ ged2gwb2.cmx: ../src/adef.cmx ../src/ansel.cmx ../src/argl.cmx \
+ ../src/buff.cmx ../src/calendar.cmx ../src/db2link.cmx ../src/def.cmi \
+ ../src/futil.cmx ../src/gwcomp.cmx ../src/lock.cmx ../src/mutil.cmx \
+@@ -10,7 +10,7 @@
+ ../src/buff.cmo ../src/calendar.cmi ../src/check.cmi \
+ ../src/checkItem.cmi ../src/dbdisk.cmi ../src/def.cmi ../src/gwdb.cmi \
+ ../src/lock.cmi ../src/mutil.cmi ../src/name.cmi ../src/outbase.cmi \
+- ../src/secure.cmi ./utf8.cmi
++ ../src/secure.cmi ./utf8.cmo
+ ged2gwb.cmx: ../src/adef.cmx ../src/ansel.cmx ../src/argl.cmx \
+ ../src/buff.cmx ../src/calendar.cmx ../src/check.cmx \
+ ../src/checkItem.cmx ../src/dbdisk.cmi ../src/def.cmi ../src/gwdb.cmx \
+--- Makefile.old 2014-10-30 08:36:50.308668062 +0100
++++ Makefile 2014-10-30 08:37:13.204451602 +0100
+@@ -65,7 +65,7 @@
+
+ distrib: new_distrib wrappers
+
+-wrappers:
++wrappers: new_distrib
+ if test "$(CAMLP5F)" = "-DWIN95"; then \
+ echo -ne 'setlocal enableextensions\r\n' > $(DESTDIR)/gwd.bat; \
+ echo -ne 'md bases\r\n' >> $(DESTDIR)/gwd.bat; \
diff --git a/app-misc/geneweb/files/geneweb.confd b/app-misc/geneweb/files/geneweb.confd
new file mode 100644
index 000000000000..3a93f09d8f19
--- /dev/null
+++ b/app-misc/geneweb/files/geneweb.confd
@@ -0,0 +1,6 @@
+#
+# GeneWeb Configuration Data
+#
+
+# The default language
+LANG="it"
diff --git a/app-misc/geneweb/files/geneweb.initd b/app-misc/geneweb/files/geneweb.initd
new file mode 100644
index 000000000000..8ed7013ab509
--- /dev/null
+++ b/app-misc/geneweb/files/geneweb.initd
@@ -0,0 +1,20 @@
+#!/sbin/runscript
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting geneweb server"
+ start-stop-daemon -S -u geneweb -x /usr/bin/gwd -- -bd /var/lib/geneweb -lang $LANG -log /var/log/geneweb.log -daemon
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping geneweb server"
+ start-stop-daemon -K -u geneweb -x /usr/bin/gwd
+ eend $?
+}
diff --git a/app-misc/geneweb/geneweb-6.07.ebuild b/app-misc/geneweb/geneweb-6.07.ebuild
new file mode 100644
index 000000000000..7ec6bc9ec4d5
--- /dev/null
+++ b/app-misc/geneweb/geneweb-6.07.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+inherit eutils user
+
+MY_PN=gw
+MY_PV=${PV/./-}
+MY_P=${MY_PN}-${PV}
+
+DESCRIPTION="Genealogy software program with a Web interface"
+HOMEPAGE="http://opensource.geneanet.org/projects/geneweb"
+SRC_URI="http://opensource.geneanet.org/attachments/download/240/${MY_P}-src.tgz
+ mirror://gentoo/${P}-reduce-utf8.ml.patch.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="+ocamlopt"
+
+RDEPEND="dev-lang/ocaml[ocamlopt?]
+ dev-ml/camlp5[ocamlopt?]"
+DEPEND="${RDEPEND}
+ !net-p2p/ghostwhitecrab"
+
+S=${WORKDIR}/gw-${PV}-src
+
+src_prepare() {
+ esvn_clean
+ epatch "${FILESDIR}"/${P}-gentoo.patch \
+ "${FILESDIR}"/${P}-parallellbuild.patch \
+ ../${P}-reduce-utf8.ml.patch
+}
+
+src_compile() {
+ if use ocamlopt; then
+ emake
+ else
+ emake OCAMLC=ocamlc OCAMLOPT=ocamlopt out
+ # If using bytecode we dont want to strip the binary as it would remove
+ # the bytecode and only leave ocamlrun...
+ export STRIP_MASK="*/bin/*"
+ fi
+}
+
+src_install() {
+ dodoc ICHANGES
+ emake distrib
+ # Install doc
+ cd distribution
+ dodoc CHANGES.txt
+ # Install binaries
+ cd gw
+ dobin gwc gwc1 gwc2 consang gwd gwu update_nldb ged2gwb ged2gwb2 gwb2ged gwsetup
+ insinto /usr/lib/${PN}
+ doins -r gwtp_tmp/*
+ dodoc a.gwf
+ insinto /usr/share/${PN}
+ doins -r etc images lang setup gwd.arg only.txt
+
+ cd ../..
+
+ # Install binaries
+ dobin src/check_base
+ # Install manpages
+ doman man/*
+
+ # Install doc
+ insinto /usr/share/doc/${PF}/contrib
+ doins -r contrib/{gwdiff,misc}
+
+ newinitd "${FILESDIR}/geneweb.initd" geneweb
+ newconfd "${FILESDIR}/geneweb.confd" geneweb
+}
+
+pkg_postinst() {
+ enewuser geneweb "" "/bin/bash" /var/lib/geneweb
+ einfo "A CGI program has been installed in /usr/lib/${PN}. Follow the"
+ einfo "instructions on the README in that directory to use it"
+ einfo "For 64 bits architecture you need to rebuild the database"
+ einfo "\"gwu foo > foo.gw \" will save the database (use the previous"
+ einfo "version to do that). \"gwc2 foo.gw -o bar \" will restore it "
+ einfo "(usiing the current package)"
+}
diff --git a/app-misc/geneweb/metadata.xml b/app-misc/geneweb/metadata.xml
new file mode 100644
index 000000000000..48ff7bde0cdb
--- /dev/null
+++ b/app-misc/geneweb/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>
+ <email>tupone@gentoo.org</email>
+ <name>Tupone Alfredo</name>
+</maintainer>
+<longdescription lang="en">
+GeneWeb is a genealogy software program with a Web interface. It can be used
+off-line or in a Web environment. It uses very efficient techniques of
+relationship and consanguinity computing, developed in collaboration with Didier
+Rémy, research Director at INRIA.
+</longdescription>
+<use>
+ <flag name='ocamlopt'>Enable ocamlopt support (<pkg>dev-lang/ocaml</pkg>
+ native code compiler)</flag>
+</use>
+</pkgmetadata>
diff --git a/app-misc/gentoo/Manifest b/app-misc/gentoo/Manifest
new file mode 100644
index 000000000000..18c0df017665
--- /dev/null
+++ b/app-misc/gentoo/Manifest
@@ -0,0 +1 @@
+DIST gentoo-0.20.6.tar.gz 1609301 SHA256 724cc64a573cdd0ce34cf9803e28b5302031677131accf57148937f8fd128c84 SHA512 1a6493a7ca6c72930285628c749434b145ac7b6469ab9985beeb6ab5cbb0b69f6e45b51b2ba83553192625584bc3df1da943b7e26e3da37217117fd1d7326d47 WHIRLPOOL 9bc66d0c209ddfaecdb9af3851059a657eadd1194092dac2c5f04107f26e4d9010e8ece1e6473d32f2a290c9d8b53514a5691fda5bd02e7dfe0347bdfb31107f
diff --git a/app-misc/gentoo/gentoo-0.20.6.ebuild b/app-misc/gentoo/gentoo-0.20.6.ebuild
new file mode 100644
index 000000000000..2cf997e81084
--- /dev/null
+++ b/app-misc/gentoo/gentoo-0.20.6.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit autotools eutils
+
+DESCRIPTION="A modern GTK+ based filemanager for any WM"
+HOMEPAGE="http://www.obsession.se/gentoo/ http://gentoo.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86"
+IUSE="nls"
+
+RDEPEND="
+ >x11-libs/gtk+-3.12:3
+ dev-libs/glib:2
+ x11-libs/cairo
+ x11-libs/gdk-pixbuf
+ x11-libs/pango
+"
+DEPEND="
+ ${RDEPEND}
+ nls? ( sys-devel/gettext )
+"
+
+DOCS=(
+ AUTHORS BUGS CONFIG-CHANGES CREDITS NEWS README TODO docs/{FAQ,menus.txt}
+)
+
+src_prepare() {
+ sed -i \
+ -e 's^icons/gnome/16x16/mimetypes^gentoo/icons^' \
+ gentoorc.in || die
+ sed -i \
+ -e '/GTK_DISABLE_DEPRECATED/d' \
+ -e '/^GENTOO_CFLAGS=/s|".*"|"${CFLAGS}"|g' \
+ -e 's|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|g' \
+ configure.ac || die #357343
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --sysconfdir=/etc/gentoo \
+ $(use_enable nls)
+}
+
+src_install() {
+ default
+
+ dohtml -r docs/{images,config,*.{html,css}}
+ newman docs/gentoo.1x gentoo.1
+ docinto scratch
+ dodoc docs/scratch/*
+
+ make_desktop_entry ${PN} Gentoo \
+ /usr/share/${PN}/icons/${PN}.png \
+ "System;FileTools;FileManager"
+}
diff --git a/app-misc/gentoo/metadata.xml b/app-misc/gentoo/metadata.xml
new file mode 100644
index 000000000000..2c6f3bff0351
--- /dev/null
+++ b/app-misc/gentoo/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>desktop-misc</herd>
+ <upstream>
+ <remote-id type="sourceforge">gentoo</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/geoclue/Manifest b/app-misc/geoclue/Manifest
new file mode 100644
index 000000000000..6e2600cf6dc3
--- /dev/null
+++ b/app-misc/geoclue/Manifest
@@ -0,0 +1,4 @@
+DIST geoclue-0.12.99.tar.gz 608074 SHA256 fe396c91cb52de4219281f4d9223156338fc03670d34700281e86d1399b80a72 SHA512 32f946c9ee66cff2a6564b275d5f7bdf0d42832166c9fbeccb0aa55f3c3370fd8de114ad26477df6a2ee9d22250a5b104ec384032b28c3a62c356baea05d1bc2 WHIRLPOOL fc7e96d6646a7fa527807db2a3375a714243fb935f064b9acbb84f8652cc64e19d2655979c053e2f1b433c69a47a393123bc4bb2f8f16395a3ecbba668c9f1bd
+DIST geoclue-2.1.10.tar.xz 334916 SHA256 f1d7e7a9c60633d3d747f55fee848299114b3222a4d65e955c2cbcd297d01c68 SHA512 c0efc76dd368a29033591486de419079b72089edea2de52336e6618a01feedf211cdcb1eb804a80ff43e8495951d1bba9a10b43c8bbec310706c5fb8d3ca30ac WHIRLPOOL f9d53465dd0bc74b95402ab39c7eace4c5820cffd6890e17ad9a082dbd18694ac6f1d61ca5ca4a55c2f6cc3b2b4154dded37efc05806c9cf73d91bbb51cf9cd8
+DIST geoclue-2.1.9.tar.xz 331532 SHA256 b416eea6042d774359f7a141e4e57704c3220363ab8e0bf5c212b1bd2976092b SHA512 6c787b2ba3994bc720a96a1075b4c5ecfae734bbda9f5ae86464f1c83eea7e259130a2e8cd2e2f389f10293037841271556ba810ddcd4800f668625f47f9ecf1 WHIRLPOOL 69532951fda41c1e69de0c74e080a3a16b2406134585c1f6951c66caa2b5bd19893d02348ae21e2f46a48e1120797b7f999eda90303fcc5c659ad0d8f9a7c4d2
+DIST geoclue-2.2.0.tar.xz 338912 SHA256 a490de0d4f97cb65f81e9fd0f687c7e84ef2c41509c214a1438964f541c7d446 SHA512 78ddd7a6df8066d97fb00758106f0fe307b9db9dd3d6a90b922bf31a031a53ac1c2c450a7a91c45ddae3f8c98fec54e7fe653f1f1f45935833860e5a24647c01 WHIRLPOOL fb76dde50855a0c533c1100571eae3e06c42827133f30928280ef1ca869f8d9f48a60e4959cdefacd7771408bfe608697e0a04c2ec461035b685fc18dffc9066
diff --git a/app-misc/geoclue/files/geoclue-0.12.0_p20110307-use-fallback-mac.patch b/app-misc/geoclue/files/geoclue-0.12.0_p20110307-use-fallback-mac.patch
new file mode 100644
index 000000000000..9c9115a284ef
--- /dev/null
+++ b/app-misc/geoclue/files/geoclue-0.12.0_p20110307-use-fallback-mac.patch
@@ -0,0 +1,16 @@
+Force geoclue to use the "fallback" mac address fetching code.
+The NM-based code does not seem to work.
+
+Patch by Kevin McCarthy <signals@gentoo.org>
+
+--- src/connectivity.c
++++ src/connectivity.c
+@@ -218,7 +218,7 @@
+ geoclue_connectivity_get_router_mac (GeoclueConnectivity *self)
+ {
+ if (self == NULL ||
+- GEOCLUE_CONNECTIVITY_GET_INTERFACE (self)->get_router_mac == NULL) {
++ GEOCLUE_CONNECTIVITY_GET_INTERFACE (self)->get_router_mac == NULL || 1) {
+ char *mac = NULL;
+ guint i;
+ int ret_val;
diff --git a/app-misc/geoclue/files/geoclue-0.12.0_p20110307-use-flag.patch b/app-misc/geoclue/files/geoclue-0.12.0_p20110307-use-flag.patch
new file mode 100644
index 000000000000..236c98928ba7
--- /dev/null
+++ b/app-misc/geoclue/files/geoclue-0.12.0_p20110307-use-flag.patch
@@ -0,0 +1,79 @@
+Add configure options for all providers except localnet.
+
+Patch by Kevin McCarthy <signals@gentoo.org>
+
+--- configure.ac
++++ configure.ac
+@@ -158,7 +158,71 @@
+ AC_SUBST(CONNECTIVITY_LIBS)
+ AC_SUBST(CONNECTIVITY_CFLAGS)
+
+-PROVIDER_SUBDIRS="example hostip geonames nominatim manual plazes localnet yahoo gsmloc"
++PROVIDER_SUBDIRS="localnet"
++
++AC_ARG_ENABLE(hostip,
++ AS_HELP_STRING([--enable-hostip=@<:@no/yes/auto@:>@],
++ [build with hostip support]), ,
++ enable_hostip=auto)
++
++if test "x$enable_hostip" != "xno"; then
++ PROVIDER_SUBDIRS="$PROVIDER_SUBDIRS hostip"
++fi
++
++AC_ARG_ENABLE(geonames,
++ AS_HELP_STRING([--enable-geonames=@<:@no/yes/auto@:>@],
++ [build with geonames support]), ,
++ enable_geonames=auto)
++
++if test "x$enable_geonames" != "xno"; then
++ PROVIDER_SUBDIRS="$PROVIDER_SUBDIRS geonames"
++fi
++
++AC_ARG_ENABLE(nominatim,
++ AS_HELP_STRING([--enable-nominatim=@<:@no/yes/auto@:>@],
++ [build with nominatim support]), ,
++ enable_nominatim=auto)
++
++if test "x$enable_nominatim" != "xno"; then
++ PROVIDER_SUBDIRS="$PROVIDER_SUBDIRS nominatim"
++fi
++
++AC_ARG_ENABLE(manual,
++ AS_HELP_STRING([--enable-manual=@<:@no/yes/auto@:>@],
++ [build with manual support]), ,
++ enable_manual=auto)
++
++if test "x$enable_manual" != "xno"; then
++ PROVIDER_SUBDIRS="$PROVIDER_SUBDIRS manual"
++fi
++
++AC_ARG_ENABLE(plazes,
++ AS_HELP_STRING([--enable-plazes=@<:@no/yes/auto@:>@],
++ [build with plazes support]), ,
++ enable_plazes=auto)
++
++if test "x$enable_plazes" != "xno"; then
++ PROVIDER_SUBDIRS="$PROVIDER_SUBDIRS plazes"
++fi
++
++AC_ARG_ENABLE(yahoo,
++ AS_HELP_STRING([--enable-yahoo=@<:@no/yes/auto@:>@],
++ [build with yahoo support]), ,
++ enable_yahoo=auto)
++
++if test "x$enable_yahoo" != "xno"; then
++ PROVIDER_SUBDIRS="$PROVIDER_SUBDIRS yahoo"
++fi
++
++AC_ARG_ENABLE(gsmloc,
++ AS_HELP_STRING([--enable-gsmloc=@<:@no/yes/auto@:>@],
++ [build with gsmloc support]), ,
++ enable_gsmloc=auto)
++
++if test "x$enable_gsmloc" != "xno"; then
++ PROVIDER_SUBDIRS="$PROVIDER_SUBDIRS gsmloc"
++fi
++
+
+ # -----------------------------------------------------------
+ # gypsy / gpsd / skyhook
diff --git a/app-misc/geoclue/files/geoclue-0.12.99-gpsd.patch b/app-misc/geoclue/files/geoclue-0.12.99-gpsd.patch
new file mode 100644
index 000000000000..51160d6296e0
--- /dev/null
+++ b/app-misc/geoclue/files/geoclue-0.12.99-gpsd.patch
@@ -0,0 +1,73 @@
+Description: Refactoring to support new libgps API
+Author: James Page <james.page@ubuntu.com>
+Bug: https://bugs.freedesktop.org/show_bug.cgi?id=40996
+Forwarded: no
+
+--- providers/gpsd/geoclue-gpsd.c
++++ providers/gpsd/geoclue-gpsd.c
+@@ -40,7 +40,12 @@
+ #include <geoclue/gc-iface-position.h>
+ #include <geoclue/gc-iface-velocity.h>
+
++#if GPSD_API_MAJOR_VERSION >= 5
++/* gps_data conflicts with gps_data function */
++typedef struct gps_data_t gps_data_l;
++#else
+ typedef struct gps_data_t gps_data;
++#endif
+ typedef struct gps_fix_t gps_fix;
+
+ /* only listing used tags */
+@@ -59,7 +64,11 @@
+ char *host;
+ char *port;
+
++#if GPSD_API_MAJOR_VERSION >= 5
++ gps_data_l *gpsdata;
++#else
+ gps_data *gpsdata;
++#endif
+
+ gps_fix *last_fix;
+
+@@ -394,10 +403,16 @@
+ static gboolean
+ geoclue_gpsd_start_gpsd (GeoclueGpsd *self)
+ {
++#if GPSD_API_MAJOR_VERSION >= 5
++ int status = gps_open (self->host, self->port, self->gpsdata);
++ if (status == 0) {
++ gps_stream(self->gpsdata, WATCH_ENABLE | WATCH_NMEA, NULL);
++#else
+ self->gpsdata = gps_open (self->host, self->port);
+ if (self->gpsdata) {
+ gps_stream(self->gpsdata, WATCH_ENABLE | WATCH_NMEA | POLL_NONBLOCK, NULL);
+ gps_set_raw_hook (self->gpsdata, gpsd_raw_hook);
++#endif
+ return TRUE;
+ } else {
+ g_warning ("gps_open() failed, is gpsd running (host=%s,port=%s)?", self->host, self->port);
+@@ -410,10 +425,23 @@
+ {
+ GeoclueGpsd *self = (GeoclueGpsd*)data;
+ if (self->gpsdata) {
++#if GPSD_API_MAJOR_VERSION >= 5
++ /* gps_poll and gps_set_raw_hook no longer present in this API version */
++ if (gps_waiting(self->gpsdata, 500)) {
++ if (gps_read(self->gpsdata) == -1) {
++ geoclue_gpsd_set_status (self, GEOCLUE_STATUS_ERROR);
++ geoclue_gpsd_stop_gpsd(self);
++ return FALSE;
++ } else {
++ /* Call existing raw_hook to process the data */
++ gpsd_raw_hook(self->gpsdata, NULL, 0);
++ }
++#else
+ if (gps_poll(self->gpsdata) < 0) {
+ geoclue_gpsd_set_status (self, GEOCLUE_STATUS_ERROR);
+ geoclue_gpsd_stop_gpsd(self);
+ return FALSE;
++#endif
+ }
+ }
+ return TRUE;
diff --git a/app-misc/geoclue/geoclue-0.12.99.ebuild b/app-misc/geoclue/geoclue-0.12.99.ebuild
new file mode 100644
index 000000000000..b29db17fd7ec
--- /dev/null
+++ b/app-misc/geoclue/geoclue-0.12.99.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+inherit autotools eutils
+
+DESCRIPTION="A geoinformation D-Bus service"
+HOMEPAGE="http://freedesktop.org/wiki/Software/GeoClue"
+SRC_URI="http://freedesktop.org/~hadess/${P}.tar.gz"
+
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm ia64 ~mips ppc ppc64 sparc x86 ~amd64-fbsd"
+IUSE="connman geonames gps gsmloc gtk hostip manual networkmanager nominatim plazes skyhook static-libs yahoo-geo"
+
+REQUIRED_USE="skyhook? ( networkmanager )"
+
+RDEPEND=">=dev-libs/dbus-glib-0.100
+ >=dev-libs/glib-2
+ dev-libs/libxml2
+ sys-apps/dbus
+ gps? ( sci-geosciences/gpsd )
+ gtk? ( x11-libs/gtk+:2 )
+ networkmanager? ( net-misc/networkmanager )
+ skyhook? ( net-libs/libsoup )"
+DEPEND="${RDEPEND}
+ dev-util/gtk-doc-am
+ virtual/pkgconfig"
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${PN}-0.12.0_p20110307-use-flag.patch \
+ "${FILESDIR}"/${PN}-0.12.0_p20110307-use-fallback-mac.patch \
+ "${FILESDIR}"/${P}-gpsd.patch
+
+ sed -i -e '/CFLAGS/s:-g ::' configure.ac || die #399177
+ sed -e "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" -i configure.ac || die
+ eautoreconf
+}
+
+src_configure() {
+ # Conic is only for Maemo. Don't enable.
+ # Gypsy has multiple vulnerabilities:
+ # https://bugs.freedesktop.org/show_bug.cgi?id=33431
+ econf \
+ --disable-silent-rules \
+ $(use_enable static-libs static) \
+ --disable-schemas-compile \
+ $(use_enable gtk tests) \
+ $(use_enable gtk) \
+ --disable-conic \
+ $(use_enable connman) \
+ $(use_enable networkmanager) \
+ --disable-gypsy \
+ $(use_enable gps gpsd) \
+ $(use_enable skyhook) \
+ $(use_enable geonames) \
+ $(use_enable gsmloc) \
+ $(use_enable hostip) \
+ $(use_enable manual) \
+ $(use_enable nominatim) \
+ $(use_enable plazes) \
+ $(use_enable yahoo-geo yahoo) \
+ --with-html-dir=/usr/share/doc/${PF}/html
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ use gtk && dobin test/.libs/geoclue-test-gui
+ prune_libtool_files
+}
diff --git a/app-misc/geoclue/geoclue-2.1.10.ebuild b/app-misc/geoclue/geoclue-2.1.10.ebuild
new file mode 100644
index 000000000000..463fdcfb6aa2
--- /dev/null
+++ b/app-misc/geoclue/geoclue-2.1.10.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+GCONF_DEBUG="no"
+
+inherit gnome2 systemd user versionator
+
+MY_PV=$(get_version_component_range 1-2)
+DESCRIPTION="A geoinformation D-Bus service"
+HOMEPAGE="http://freedesktop.org/wiki/Software/GeoClue"
+SRC_URI="http://www.freedesktop.org/software/${PN}/releases/${MY_PV}/${P}.tar.xz"
+
+LICENSE="LGPL-2"
+SLOT="2.0"
+KEYWORDS="~alpha amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sparc x86 ~amd64-fbsd"
+IUSE="+modemmanager"
+
+RDEPEND="
+ >=dev-libs/glib-2.34:2
+ >=dev-libs/json-glib-0.14
+ >=net-libs/libsoup-2.42:2.4
+ sys-apps/dbus
+ modemmanager? ( >=net-misc/modemmanager-1 )
+ !<sci-geosciences/geocode-glib-3.10.0
+"
+DEPEND="${RDEPEND}
+ dev-util/gdbus-codegen
+ >=dev-util/gtk-doc-am-1
+ >=dev-util/intltool-0.40
+ virtual/pkgconfig
+"
+
+src_configure() {
+ # debug only affects CFLAGS
+ gnome2_src_configure \
+ --with-dbus-service-user=geoclue \
+ $(use_enable modemmanager 3g-source) \
+ $(use_enable modemmanager cdma-source) \
+ $(use_enable modemmanager modem-gps-source) \
+ $(systemd_with_unitdir)
+}
+
+pkg_preinst() {
+ enewgroup geoclue
+ enewuser geoclue -1 -1 /var/lib/geoclue geoclue
+}
diff --git a/app-misc/geoclue/geoclue-2.1.9.ebuild b/app-misc/geoclue/geoclue-2.1.9.ebuild
new file mode 100644
index 000000000000..470726e2e997
--- /dev/null
+++ b/app-misc/geoclue/geoclue-2.1.9.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+GCONF_DEBUG="no"
+
+inherit gnome2 systemd user versionator
+
+MY_PV=$(get_version_component_range 1-2)
+DESCRIPTION="A geoinformation D-Bus service"
+HOMEPAGE="http://freedesktop.org/wiki/Software/GeoClue"
+SRC_URI="http://www.freedesktop.org/software/${PN}/releases/${MY_PV}/${P}.tar.xz"
+
+LICENSE="LGPL-2"
+SLOT="2.0"
+KEYWORDS="~alpha amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sparc x86 ~amd64-fbsd"
+IUSE="+modemmanager"
+
+RDEPEND="
+ >=dev-libs/glib-2.34:2
+ >=dev-libs/json-glib-0.14
+ >=net-libs/libsoup-2.42:2.4
+ sys-apps/dbus
+ modemmanager? ( >=net-misc/modemmanager-1 )
+ !<sci-geosciences/geocode-glib-3.10.0
+"
+DEPEND="${RDEPEND}
+ dev-util/gdbus-codegen
+ >=dev-util/gtk-doc-am-1
+ >=dev-util/intltool-0.40
+ virtual/pkgconfig
+"
+
+src_configure() {
+ # debug only affects CFLAGS
+ gnome2_src_configure \
+ --with-dbus-service-user=geoclue \
+ $(use_enable modemmanager 3g-source) \
+ $(use_enable modemmanager modem-gps-source) \
+ $(systemd_with_unitdir)
+}
+
+pkg_preinst() {
+ enewgroup geoclue
+ enewuser geoclue -1 -1 /var/lib/geoclue geoclue
+}
diff --git a/app-misc/geoclue/geoclue-2.2.0.ebuild b/app-misc/geoclue/geoclue-2.2.0.ebuild
new file mode 100644
index 000000000000..a695fc1c7745
--- /dev/null
+++ b/app-misc/geoclue/geoclue-2.2.0.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+GCONF_DEBUG="no"
+
+inherit gnome2 systemd user versionator
+
+MY_PV=$(get_version_component_range 1-2)
+DESCRIPTION="A geoinformation D-Bus service"
+HOMEPAGE="http://freedesktop.org/wiki/Software/GeoClue"
+SRC_URI="http://www.freedesktop.org/software/${PN}/releases/${MY_PV}/${P}.tar.xz"
+
+LICENSE="LGPL-2"
+SLOT="2.0"
+KEYWORDS="~alpha amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sparc x86 ~amd64-fbsd"
+IUSE="+modemmanager"
+
+RDEPEND="
+ >=dev-libs/glib-2.34:2
+ >=dev-libs/json-glib-0.14
+ >=net-libs/libsoup-2.42:2.4
+ sys-apps/dbus
+ modemmanager? ( >=net-misc/modemmanager-1 )
+ !<sci-geosciences/geocode-glib-3.10.0
+"
+DEPEND="${RDEPEND}
+ dev-util/gdbus-codegen
+ >=dev-util/gtk-doc-am-1
+ >=dev-util/intltool-0.40
+ virtual/pkgconfig
+"
+
+src_configure() {
+ # debug only affects CFLAGS
+ gnome2_src_configure \
+ --with-dbus-service-user=geoclue \
+ $(use_enable modemmanager 3g-source) \
+ $(use_enable modemmanager cdma-source) \
+ $(use_enable modemmanager modem-gps-source) \
+ $(systemd_with_unitdir)
+}
+
+pkg_preinst() {
+ enewgroup geoclue
+ enewuser geoclue -1 -1 /var/lib/geoclue geoclue
+}
diff --git a/app-misc/geoclue/metadata.xml b/app-misc/geoclue/metadata.xml
new file mode 100644
index 000000000000..280739e0eae7
--- /dev/null
+++ b/app-misc/geoclue/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>gnome</herd>
+ <herd>desktop-misc</herd>
+ <use>
+ <flag name="geonames">Install geonames.org provider</flag>
+ <flag name="gsmloc">Install GSM location provider</flag>
+ <flag name="gtk">Install gtk-based geoclue-test-gui</flag>
+ <flag name="hostip">Install hostip.info provder</flag>
+ <flag name="manual">Install manual provider</flag>
+ <flag name="modemmanager">Enable geolocation through 3G or GPS enabled hardware through <pkg>net-misc/modemmanager</pkg>.</flag>
+ <flag name="nominatim">Install openstreetmap.org provider</flag>
+ <flag name="plazes">Install plazes.com provider</flag>
+ <flag name="skyhook">Install skyhookwireless.com provider</flag>
+ <flag name="yahoo-geo">Install Yahoo geolocation provider</flag>
+ </use>
+</pkgmetadata>
diff --git a/app-misc/getopt/Manifest b/app-misc/getopt/Manifest
new file mode 100644
index 000000000000..b7d7a89d5ea8
--- /dev/null
+++ b/app-misc/getopt/Manifest
@@ -0,0 +1,3 @@
+DIST getopt-1.1.4.tar.gz 37163 SHA256 41083d9993c26792851e79b81a0991996a3f61e14998fdd607615cc3bf933bab SHA512 9ec9b5ca50a02b6ae772b133408e61fb9fcb5840c00f23d1c836a9c7ee86778211dcb1ecf5cdcaf9e2488b2db0671e29bc8be55f1a7ca4f1d48cc3921dfe04ad WHIRLPOOL 64e4942064930303ecc8cd6ea22f93ccd0c34415815f1e4fc43d2786b1e3bd511fac6d0aa6ef470b0a026a7776c4e0b345b1beada0c972203808232d0c331727
+DIST getopt-1.1.5.tar.gz 51794 SHA256 11893276b94b1629606ab75772143918a5713259950fbf4216288e246f19fbb6 SHA512 43597a1a8dd1dc188b6b4f0a8f8d438456013276aa1c719889e242ba2b526dccbca2fccd3d82d1541f4e0920fd277c101a436ed0c208124227481f792cb1cf75 WHIRLPOOL c5de1797b0c294a404ef8e801d86677d0b84fd6974e5d5ad8d234ae28db5446d0b13766362ecac459b3f8ce07d56282a3f0274b460d5d95118000762d9374815
+DIST getopt-1.1.6.tar.gz 58926 SHA256 d0bf1dc642a993e7388a1cddfb9409bed375c21d5278056ccca3a0acd09dc5fe SHA512 aa5476e729f33ddd3f32f38b2565da319fdfe034f11549218d5d9953e70dad764e0d9a82bb10efe4043c86ae87f944619b8a2f29a197f592bd855699961d8e10 WHIRLPOOL 0fa96415fa5d9b001313b1491a0f260922dbb52ac72d6242e6ff332ac802e3d6cac2401c8e8a8f9cc09376d3c51f4b1cc3bd0f976dc857cd72c1ffc7b1d770da
diff --git a/app-misc/getopt/files/getopt-1.1.4-irix.patch b/app-misc/getopt/files/getopt-1.1.4-irix.patch
new file mode 100644
index 000000000000..0c344a80131a
--- /dev/null
+++ b/app-misc/getopt/files/getopt-1.1.4-irix.patch
@@ -0,0 +1,17 @@
+http://bugs.gentoo.org/show_bug.cgi?id=211499
+
+--- gnu/getopt.c.dist
++++ gnu/getopt.c
+@@ -69,12 +69,7 @@
+ #include <unistd.h>
+ #endif /* GNU C library. */
+
+-#ifdef VMS
+-#include <unixlib.h>
+-#if HAVE_STRING_H - 0
+ #include <string.h>
+-#endif
+-#endif
+
+ #if defined (WIN32) && !defined (__CYGWIN32__)
+ /* It's not Unix, really. See? Capital letters. */
diff --git a/app-misc/getopt/files/getopt-1.1.4-libintl.patch b/app-misc/getopt/files/getopt-1.1.4-libintl.patch
new file mode 100644
index 000000000000..232e487b3d31
--- /dev/null
+++ b/app-misc/getopt/files/getopt-1.1.4-libintl.patch
@@ -0,0 +1,34 @@
+Index: getopt-1.1.4/Makefile
+===================================================================
+--- getopt-1.1.4.orig/Makefile
++++ getopt-1.1.4/Makefile
+@@ -33,7 +33,10 @@ MSGFMT=msgfmt
+ LANGUAGES = cs de es fr it ja nl pt_BR
+ MOFILES:=$(patsubst %,po/%.mo,$(LANGUAGES))
+
+-CPPFLAGS=-DLIBCGETOPT=$(LIBCGETOPT) -DWITH_GETTEXT=$(WITH_GETTEXT) -DLOCALEDIR=\"$(localedir)\" -DNOT_UTIL_LINUX
++CPPFLAGS=-DLIBCGETOPT=$(LIBCGETOPT) -DLOCALEDIR=\"$(localedir)\" -DNOT_UTIL_LINUX
++ifeq ($(WITHOUT_GETTEXT),1)
++CPPFLAGS+=-DWITHOUT_GETTEXT
++endif
+ ifeq ($(LIBCGETOPT),0)
+ CPPFLAGS+=-I./gnu
+ endif
+@@ -62,7 +65,7 @@ clean: clean_po
+ -$(RM) $(objects) $(binaries)
+
+ getopt: $(objects)
+- $(CC) $(LDFLAGS) -o $@ $(objects)
++ $(CC) $(LDFLAGS) -o $@ $(objects) $(LIBINTL)
+
+ install: getopt install_po
+ $(INSTALL) -m 755 -d $(DESTDIR)$(bindir) $(DESTDIR)$(man1dir)
+@@ -75,7 +78,7 @@ install_doc:
+ getopt-test.bash getopt-test.tcsh \
+ $(DESTDIR)$(getoptdir)
+
+-ifeq ($(WITH_GETTEXT),1)
++ifeq ($(WITHOUT_GETTEXT),0)
+ all_po: $(MOFILES)
+ install_po: all_po
+ $(INSTALL) -m 755 -d $(DESTDIR)$(localedir)
diff --git a/app-misc/getopt/files/getopt-1.1.4-longrename.patch b/app-misc/getopt/files/getopt-1.1.4-longrename.patch
new file mode 100644
index 000000000000..dc3ecb066378
--- /dev/null
+++ b/app-misc/getopt/files/getopt-1.1.4-longrename.patch
@@ -0,0 +1,118 @@
+Index: getopt-1.1.4/getopt.c
+===================================================================
+--- getopt-1.1.4.orig/getopt.c
++++ getopt-1.1.4/getopt.c
+@@ -88,7 +88,7 @@ void *our_malloc(size_t size)
+ {
+ void *ret=malloc(size);
+ if (! ret) {
+- fprintf(stderr,_("%s: Out of memory!\n"),"getopt");
++ fprintf(stderr,_("%s: Out of memory!\n"),"getopt-long");
+ exit(3);
+ }
+ return(ret);
+@@ -98,7 +98,7 @@ void *our_realloc(void *ptr, size_t size
+ {
+ void *ret=realloc(ptr,size);
+ if (! ret && size) {
+- fprintf(stderr,_("%s: Out of memory!\n"),"getopt");
++ fprintf(stderr,_("%s: Out of memory!\n"),"getopt-long");
+ exit(3);
+ }
+ return(ret);
+@@ -231,8 +231,8 @@ int generate_output(char * argv[],int ar
+ void parse_error(const char *message)
+ {
+ if (message)
+- fprintf(stderr,"getopt: %s\n",message);
+- fputs(_("Try `getopt --help' for more information.\n"),stderr);
++ fprintf(stderr,"getopt-long: %s\n",message);
++ fputs(_("Try `getopt-long --help' for more information.\n"),stderr);
+ exit(2);
+ }
+
+@@ -323,10 +323,10 @@ void set_shell(const char *new_shell)
+
+ void print_help(void)
+ {
+- fputs(_("Usage: getopt optstring parameters\n"),stderr);
+- fputs(_(" getopt [options] [--] optstring parameters\n"),stderr);
+- fputs(_(" getopt [options] -o|--options optstring [options] [--]\n"),stderr);
+- fputs(_(" parameters\n"),stderr);
++ fputs(_("Usage: getopt-long optstring parameters\n"),stderr);
++ fputs(_(" getopt-long [options] [--] optstring parameters\n"),stderr);
++ fputs(_(" getopt-long [options] -o|--options optstring [options] [--]\n"),stderr);
++ fputs(_(" parameters\n"),stderr);
+ fputs(_(" -a, --alternative Allow long options starting with single -\n"),stderr);
+ fputs(_(" -h, --help This small usage guide\n"),stderr);
+ fputs(_(" -l, --longoptions=longopts Long options to be recognized\n"),stderr);
+@@ -335,7 +335,7 @@ void print_help(void)
+ fputs(_(" -q, --quiet Disable error reporting by getopt(3)\n"),stderr);
+ fputs(_(" -Q, --quiet-output No normal output\n"),stderr);
+ fputs(_(" -s, --shell=shell Set shell quoting conventions\n"),stderr);
+- fputs(_(" -T, --test Test for getopt(1) version\n"),stderr);
++ fputs(_(" -T, --test Test for getopt-long(1) version\n"),stderr);
+ fputs(_(" -u, --unqote Do not quote the output\n"),stderr);
+ fputs(_(" -V, --version Output version information\n"),stderr);
+ exit(2);
+@@ -443,7 +443,7 @@ int main(int argc, char *argv[])
+ quote=0;
+ break;
+ case 'V':
+- printf(_("getopt (enhanced) 1.1.4\n"));
++ printf(_("getopt-long (enhanced) 1.1.4\n"));
+ exit(0);
+ case '?':
+ case ':':
+Index: getopt-1.1.4/getopt-parse.bash
+===================================================================
+--- getopt-1.1.4.orig/getopt-parse.bash
++++ getopt-1.1.4/getopt-parse.bash
+@@ -19,7 +19,7 @@
+ # Note that we use `"$@"' to let each command-line parameter expand to a
+ # separate word. The quotes around `$@' are essential!
+ # We need TEMP as the `eval set --' would nuke the return value of getopt.
+-TEMP=`getopt -o ab:c:: --long a-long,b-long:,c-long:: \
++TEMP=`getopt-long -o ab:c:: --long a-long,b-long:,c-long:: \
+ -n 'example.bash' -- "$@"`
+
+ if [ $? != 0 ] ; then echo "Terminating..." >&2 ; exit 1 ; fi
+Index: getopt-1.1.4/getopt-parse.tcsh
+===================================================================
+--- getopt-1.1.4.orig/getopt-parse.tcsh
++++ getopt-1.1.4/getopt-parse.tcsh
+@@ -26,7 +26,7 @@
+ # as a list. The ':q` copies that list without doing any substitutions:
+ # each element of argv becomes a separate argument for getopt. The braces
+ # are needed because the result is also a list.
+-set temp=(`getopt -s tcsh -o ab:c:: --long a-long,b-long:,c-long:: -- $argv:q`)
++set temp=(`getopt-long -s tcsh -o ab:c:: --long a-long,b-long:,c-long:: -- $argv:q`)
+ if ($? != 0) then
+ echo "Terminating..." >/dev/stderr
+ exit 1
+Index: getopt-1.1.4/Makefile
+===================================================================
+--- getopt-1.1.4.orig/Makefile
++++ getopt-1.1.4/Makefile
+@@ -85,7 +85,7 @@ install_po: all_po
+ for lang in $(LANGUAGES) ; do \
+ dir=$(localedir)/$$lang/LC_MESSAGES; \
+ $(INSTALL) -m 755 -d $(DESTDIR)$$dir ;\
+- $(INSTALL) -m 644 po/$$lang.mo $(DESTDIR)$$dir/getopt.mo ;\
++ $(INSTALL) -m 644 po/$$lang.mo $(DESTDIR)$$dir/getopt-long.mo ;\
+ done
+ clean_po:
+ $(RM) $(MOFILES)
+Index: getopt-1.1.4/nls.h
+===================================================================
+--- getopt-1.1.4.orig/nls.h
++++ getopt-1.1.4/nls.h
+@@ -29,7 +29,7 @@
+ #ifndef GETOPT_NLS
+ #define GETOPT_NLS
+
+-#define PACKAGE "getopt"
++#define PACKAGE "getopt-long"
+
+ #ifndef WITHOUT_GETTEXT
+ #include <libintl.h>
diff --git a/app-misc/getopt/files/getopt-1.1.5-libintl.patch b/app-misc/getopt/files/getopt-1.1.5-libintl.patch
new file mode 100644
index 000000000000..b40367105ed0
--- /dev/null
+++ b/app-misc/getopt/files/getopt-1.1.5-libintl.patch
@@ -0,0 +1,11 @@
+--- Makefile.orig 2012-12-28 11:40:09.524686698 +0100
++++ Makefile 2012-12-28 11:41:20.646157275 +0100
+@@ -61,7 +61,7 @@
+ -$(RM) $(objects) $(binaries)
+
+ getopt: $(objects)
+- $(CC) $(LDFLAGS) -o $@ $(objects)
++ $(CC) $(LDFLAGS) -o $@ $(objects) $(LIBINTL)
+
+ install: getopt install_po
+ $(INSTALL) -m 755 -d $(DESTDIR)$(bindir) $(DESTDIR)$(man1dir)
diff --git a/app-misc/getopt/files/getopt-1.1.5-longrename.patch b/app-misc/getopt/files/getopt-1.1.5-longrename.patch
new file mode 100644
index 000000000000..03f2ca5a7445
--- /dev/null
+++ b/app-misc/getopt/files/getopt-1.1.5-longrename.patch
@@ -0,0 +1,79 @@
+--- getopt-1.1.5/getopt-parse.bash
++++ getopt-1.1.5/getopt-parse.bash
+@@ -19,7 +19,7 @@
+ # Note that we use `"$@"' to let each command-line parameter expand to a
+ # separate word. The quotes around `$@' are essential!
+ # We need TEMP as the `eval set --' would nuke the return value of getopt.
+-TEMP=`getopt -o ab:c:: --long a-long,b-long:,c-long:: \
++TEMP=`getopt-long -o ab:c:: --long a-long,b-long:,c-long:: \
+ -n 'example.bash' -- "$@"`
+
+ if [ $? != 0 ] ; then echo "Terminating..." >&2 ; exit 1 ; fi
+--- getopt-1.1.5/getopt-parse.tcsh
++++ getopt-1.1.5/getopt-parse.tcsh
+@@ -26,7 +26,7 @@
+ # as a list. The ':q` copies that list without doing any substitutions:
+ # each element of argv becomes a separate argument for getopt. The braces
+ # are needed because the result is also a list.
+-set temp=(`getopt -s tcsh -o ab:c:: --long a-long,b-long:,c-long:: -- $argv:q`)
++set temp=(`getopt-long -s tcsh -o ab:c:: --long a-long,b-long:,c-long:: -- $argv:q`)
+ if ($? != 0) then
+ echo "Terminating..." >/dev/stderr
+ exit 1
+--- getopt-1.1.5/getopt.c
++++ getopt-1.1.5/getopt.c
+@@ -320,10 +320,10 @@
+
+ static void __attribute__ ((__noreturn__)) print_help(void)
+ {
+- fputs(_("Usage: getopt optstring parameters\n"), stderr);
+- fputs(_(" getopt [options] [--] optstring parameters\n"), stderr);
+- fputs(_(" getopt [options] -o|--options optstring [options] [--]\n"), stderr);
+- fputs(_(" parameters\n"), stderr);
++ fputs(_("Usage: getopt-long optstring parameters\n"), stderr);
++ fputs(_(" getopt-long [options] [--] optstring parameters\n"), stderr);
++ fputs(_(" getopt-long [options] -o|--options optstring [options] [--]\n"), stderr);
++ fputs(_(" parameters\n"), stderr);
+ fputs(_("\nOptions:\n"), stderr);
+ fputs(_(" -a, --alternative Allow long options starting with single -\n"), stderr);
+ fputs(_(" -h, --help This small usage guide\n"), stderr);
+@@ -333,7 +333,7 @@
+ fputs(_(" -q, --quiet Disable error reporting by getopt(3)\n"), stderr);
+ fputs(_(" -Q, --quiet-output No normal output\n"), stderr);
+ fputs(_(" -s, --shell <shell> Set shell quoting conventions\n"), stderr);
+- fputs(_(" -T, --test Test for getopt(1) version\n"), stderr);
++ fputs(_(" -T, --test Test for getopt-long(1) version\n"), stderr);
+ fputs(_(" -u, --unquote Do not quote the output\n"), stderr);
+ fputs(_(" -V, --version Output version information\n"), stderr);
+ fputc('\n', stderr);
+--- getopt-1.1.5/Makefile
++++ getopt-1.1.5/Makefile
+@@ -32,7 +32,7 @@
+ LANGUAGES = ca cs da de es et eu fi fr gl hu id it ja nl pl pt_BR ru sl sv tr uk vi zh_CN zh_TW
+ MOFILES:=$(patsubst %,po/%.mo,$(LANGUAGES))
+
+-CPPFLAGS=-DLIBCGETOPT=$(LIBCGETOPT) -DWITHOUT_GETTEXT=$(WITHOUT_GETTEXT) -DLOCALEDIR=\"$(localedir)\" -DNOT_UTIL_LINUX -Dprogram_invocation_short_name=\"$(PACKAGE)\" -Dprogram_version=\"$(VERSION)\"
++CPPFLAGS=-DLIBCGETOPT=$(LIBCGETOPT) -DWITHOUT_GETTEXT=$(WITHOUT_GETTEXT) -DLOCALEDIR=\"$(localedir)\" -DNOT_UTIL_LINUX -Dprogram_invocation_short_name=\"$(PACKAGE)-long\" -Dprogram_version=\"$(VERSION)\"
+ ifeq ($(LIBCGETOPT),0)
+ CPPFLAGS+=-I./gnu
+ endif
+@@ -81,7 +81,7 @@
+ for lang in $(LANGUAGES) ; do \
+ dir=$(localedir)/$$lang/LC_MESSAGES; \
+ $(INSTALL) -m 755 -d $(DESTDIR)$$dir ;\
+- $(INSTALL) -m 644 po/$$lang.mo $(DESTDIR)$$dir/getopt.mo ;\
++ $(INSTALL) -m 644 po/$$lang.mo $(DESTDIR)$$dir/getopt-long.mo ;\
+ done
+ clean_po:
+ $(RM) $(MOFILES)
+--- getopt-1.1.5/nls.h
++++ getopt-1.1.5/nls.h
+@@ -29,7 +29,7 @@
+ #ifndef GETOPT_NLS
+ #define GETOPT_NLS
+
+-#define PACKAGE "getopt"
++#define PACKAGE "getopt-long"
+
+ #if WITHOUT_GETTEXT
+ #define _(Text) (Text)
diff --git a/app-misc/getopt/files/getopt-1.1.5-setlocale.patch b/app-misc/getopt/files/getopt-1.1.5-setlocale.patch
new file mode 100644
index 000000000000..2d302d9c6a67
--- /dev/null
+++ b/app-misc/getopt/files/getopt-1.1.5-setlocale.patch
@@ -0,0 +1,12 @@
+setlocale: we need locale.h for LC_ALL on OpenIndiana
+
+--- getopt-1.1.5/nls.h
++++ getopt-1.1.5/nls.h
+@@ -40,6 +40,7 @@
+ #undef setlocale
+ #define setlocale(Category,Locale) /* empty */
+ #else /* not WITHOUT_GETTEXT */
++#include <locale.h>
+ #include <libintl.h>
+ #define _(Text) gettext (Text)
+ #endif /* WITHOUT_GETTEXT */
diff --git a/app-misc/getopt/files/getopt-1.1.6-longrename.patch b/app-misc/getopt/files/getopt-1.1.6-longrename.patch
new file mode 100644
index 000000000000..f2b4ba79a090
--- /dev/null
+++ b/app-misc/getopt/files/getopt-1.1.6-longrename.patch
@@ -0,0 +1,70 @@
+--- a/Makefile
++++ b/Makefile
+@@ -32,7 +32,7 @@ MSGFMT=msgfmt
+ LANGUAGES = ca cs da de es et eu fi fr gl hr hu id it ja nl pl pt_BR ru sl sv tr uk vi zh_CN zh_TW
+ MOFILES:=$(patsubst %,po/%.mo,$(LANGUAGES))
+
+-CPPFLAGS=-DLIBCGETOPT=$(LIBCGETOPT) -DWITHOUT_GETTEXT=$(WITHOUT_GETTEXT) -DLOCALEDIR=\"$(localedir)\" -DNOT_UTIL_LINUX -Dprogram_invocation_short_name=\"$(PACKAGE)\" -Dprogram_version=\"$(VERSION)\"
++CPPFLAGS=-DLIBCGETOPT=$(LIBCGETOPT) -DWITHOUT_GETTEXT=$(WITHOUT_GETTEXT) -DLOCALEDIR=\"$(localedir)\" -DNOT_UTIL_LINUX -Dprogram_invocation_short_name=\"$(PACKAGE)-long\" -Dprogram_version=\"$(VERSION)\"
+ ifeq ($(LIBCGETOPT),0)
+ CPPFLAGS+=-I./gnu
+ endif
+@@ -81,7 +81,7 @@ install_po: all_po
+ for lang in $(LANGUAGES) ; do \
+ dir=$(localedir)/$$lang/LC_MESSAGES; \
+ $(INSTALL) -m 755 -d $(DESTDIR)$$dir ;\
+- $(INSTALL) -m 644 po/$$lang.mo $(DESTDIR)$$dir/getopt.mo ;\
++ $(INSTALL) -m 644 po/$$lang.mo $(DESTDIR)$$dir/getopt-long.mo ;\
+ done
+ clean_po:
+ $(RM) $(MOFILES)
+--- a/getopt-parse.bash
++++ b/getopt-parse.bash
+@@ -19,7 +19,7 @@
+ # Note that we use `"$@"' to let each command-line parameter expand to a
+ # separate word. The quotes around `$@' are essential!
+ # We need TEMP as the `eval set --' would nuke the return value of getopt.
+-TEMP=`getopt -o ab:c:: --long a-long,b-long:,c-long:: \
++TEMP=`getopt-long -o ab:c:: --long a-long,b-long:,c-long:: \
+ -n 'example.bash' -- "$@"`
+
+ if [ $? != 0 ] ; then echo "Terminating..." >&2 ; exit 1 ; fi
+--- a/getopt-parse.tcsh
++++ b/getopt-parse.tcsh
+@@ -26,7 +26,7 @@
+ # as a list. The ':q` copies that list without doing any substitutions:
+ # each element of argv becomes a separate argument for getopt. The braces
+ # are needed because the result is also a list.
+-set temp=(`getopt -s tcsh -o ab:c:: --long a-long,b-long:,c-long:: -- $argv:q`)
++set temp=(`getopt-long -s tcsh -o ab:c:: --long a-long,b-long:,c-long:: -- $argv:q`)
+ if ($? != 0) then
+ echo "Terminating..." >/dev/stderr
+ exit 1
+--- a/getopt.c
++++ b/getopt.c
+@@ -344,12 +344,12 @@ static void __attribute__ ((__noreturn__)) print_help(void)
+ fputs(_(" -q, --quiet Disable error reporting by getopt(3)\n"), stderr);
+ fputs(_(" -Q, --quiet-output No normal output\n"), stderr);
+ fputs(_(" -s, --shell <shell> Set shell quoting conventions\n"), stderr);
+- fputs(_(" -T, --test Test for getopt(1) version\n"), stderr);
++ fputs(_(" -T, --test Test for getopt-long(1) version\n"), stderr);
+ fputs(_(" -u, --unquoted Do not quote the output\n"), stderr);
+ fputs(USAGE_SEPARATOR, stderr);
+ fputs(USAGE_HELP, stderr);
+ fputs(USAGE_VERSION, stderr);
+- fprintf(stderr, USAGE_MAN_TAIL("getopt(1)"));
++ fprintf(stderr, USAGE_MAN_TAIL("getopt-long(1)"));
+ exit(PARAMETER_EXIT_CODE);
+ }
+
+--- a/nls.h
++++ b/nls.h
+@@ -29,7 +29,7 @@
+ #ifndef GETOPT_NLS
+ #define GETOPT_NLS
+
+-#define PACKAGE "getopt"
++#define PACKAGE "getopt-long"
+
+ #if WITHOUT_GETTEXT
+ #define _(Text) (Text)
diff --git a/app-misc/getopt/getopt-1.1.4.ebuild b/app-misc/getopt/getopt-1.1.4.ebuild
new file mode 100644
index 000000000000..c808b17962af
--- /dev/null
+++ b/app-misc/getopt/getopt-1.1.4.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=3
+
+inherit toolchain-funcs eutils
+
+DESCRIPTION="getopt(1) replacement supporting GNU-style long options"
+HOMEPAGE="http://software.frodo.looijaard.name/getopt/"
+SRC_URI="http://software.frodo.looijaard.name/getopt/files/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~x86-interix ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~x64-solaris ~x86-solaris"
+IUSE="nls"
+
+RDEPEND="nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ nls? ( sys-devel/gettext )"
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-libintl.patch"
+ epatch "${FILESDIR}/${P}-longrename.patch"
+
+ # hopefully this is portable enough
+ epatch "${FILESDIR}"/${P}-irix.patch
+}
+
+src_compile() {
+ local nogettext="1"
+ local libintl=""
+ local libcgetopt=1
+
+ if use nls; then
+ nogettext=0
+ has_version sys-libs/glibc || libintl="-lintl"
+ fi
+
+ [[ ${CHOST} == *-irix* ]] && libcgetopt=0
+ [[ ${CHOST} == *-interix* ]] && libcgetopt=0
+
+ emake CC="$(tc-getCC)" prefix="${EPREFIX}/usr" \
+ LIBCGETOPT=${libcgetopt} \
+ WITHOUT_GETTEXT=${nogettext} LIBINTL=${libintl} \
+ CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" || die "emake failed"
+}
+
+src_install() {
+ use nls && make prefix="${EPREFIX}/usr" DESTDIR="${D}" install_po
+
+ into /usr
+ newbin getopt getopt-long
+
+ # at least on interix, the system getopt is ... broken...
+ # util-linux, which would provide the getopt binary, does not build &
+ # install on interix/prefix, so, this has to provide it.
+ [[ ${CHOST} == *-interix* || ${CHOST} == *-mint* ]] && \
+ dosym getopt-long /usr/bin/getopt
+
+ newman getopt.1 getopt-long.1
+
+ dodoc "${S}/getopt-"*sh
+}
diff --git a/app-misc/getopt/getopt-1.1.5.ebuild b/app-misc/getopt/getopt-1.1.5.ebuild
new file mode 100644
index 000000000000..2bf8b781b433
--- /dev/null
+++ b/app-misc/getopt/getopt-1.1.5.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=3
+
+inherit toolchain-funcs eutils
+
+DESCRIPTION="getopt(1) replacement supporting GNU-style long options"
+HOMEPAGE="http://software.frodo.looijaard.name/getopt/"
+SRC_URI="http://software.frodo.looijaard.name/getopt/files/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~x86-interix ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~x64-solaris ~x86-solaris"
+IUSE="nls"
+
+RDEPEND="nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ nls? ( sys-devel/gettext )"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-libintl.patch
+ epatch "${FILESDIR}"/${P}-setlocale.patch
+ epatch "${FILESDIR}"/${P}-longrename.patch
+
+ # hopefully this is portable enough
+ epatch "${FILESDIR}"/${PN}-1.1.4-irix.patch
+}
+
+src_compile() {
+ local nogettext="1"
+ local libintl=""
+ local libcgetopt=1
+
+ if use nls; then
+ nogettext=0
+ has_version sys-libs/glibc || libintl="-lintl"
+ fi
+
+ [[ ${CHOST} == *-irix* ]] && libcgetopt=0
+ [[ ${CHOST} == *-interix* ]] && libcgetopt=0
+
+ emake CC="$(tc-getCC)" prefix="${EPREFIX}/usr" \
+ LIBCGETOPT=${libcgetopt} \
+ WITHOUT_GETTEXT=${nogettext} LIBINTL=${libintl} \
+ CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" || die "emake failed"
+}
+
+src_install() {
+ use nls && make prefix="${EPREFIX}/usr" DESTDIR="${D}" install_po
+
+ into /usr
+ newbin getopt getopt-long
+
+ # at least on interix, the system getopt is ... broken...
+ # util-linux, which would provide the getopt binary, does not build &
+ # install on interix/prefix, so, this has to provide it.
+ [[ ${CHOST} == *-interix* || ${CHOST} == *-mint* ]] && \
+ dosym getopt-long /usr/bin/getopt
+
+ newman getopt.1 getopt-long.1
+
+ dodoc "${S}/getopt-"*sh
+}
diff --git a/app-misc/getopt/getopt-1.1.6.ebuild b/app-misc/getopt/getopt-1.1.6.ebuild
new file mode 100644
index 000000000000..52424263d9bc
--- /dev/null
+++ b/app-misc/getopt/getopt-1.1.6.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit toolchain-funcs eutils
+
+DESCRIPTION="getopt(1) replacement supporting GNU-style long options"
+HOMEPAGE="http://software.frodo.looijaard.name/getopt/"
+SRC_URI="http://frodo.looijaard.name/system/files/software/getopt/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~x86-interix ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~x64-solaris ~x86-solaris"
+IUSE="nls"
+
+RDEPEND="nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ nls? ( sys-devel/gettext )"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-1.1.5-libintl.patch
+ epatch "${FILESDIR}"/${PN}-1.1.5-setlocale.patch
+ epatch "${FILESDIR}"/${PN}-1.1.6-longrename.patch
+
+ # hopefully this is portable enough
+ epatch "${FILESDIR}"/${PN}-1.1.4-irix.patch
+}
+
+src_compile() {
+ local nogettext="1"
+ local libintl=""
+ local libcgetopt=1
+
+ if use nls; then
+ nogettext=0
+ has_version sys-libs/glibc || libintl="-lintl"
+ fi
+
+ [[ ${CHOST} == *-aix* ]] && libcgetopt=0
+ [[ ${CHOST} == *-irix* ]] && libcgetopt=0
+ [[ ${CHOST} == *-interix* ]] && libcgetopt=0
+
+ emake CC="$(tc-getCC)" prefix="${EPREFIX}/usr" \
+ LIBCGETOPT=${libcgetopt} \
+ WITHOUT_GETTEXT=${nogettext} LIBINTL=${libintl} \
+ CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" || die "emake failed"
+}
+
+src_install() {
+ use nls && emake prefix="${EPREFIX}/usr" DESTDIR="${D}" install_po
+
+ newbin getopt getopt-long
+
+ # at least on interix, the system getopt is ... broken...
+ # util-linux, which would provide the getopt binary, does not build &
+ # install on interix/prefix, so, this has to provide it.
+ [[ ${CHOST} == *-interix* || ${CHOST} == *-mint* ]] && \
+ dosym getopt-long /usr/bin/getopt
+
+ newman getopt.1 getopt-long.1
+
+ dodoc getopt-*sh
+}
diff --git a/app-misc/getopt/metadata.xml b/app-misc/getopt/metadata.xml
new file mode 100644
index 000000000000..f4618b6e7fe3
--- /dev/null
+++ b/app-misc/getopt/metadata.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>bsd</herd>
+<herd>prefix</herd>
+</pkgmetadata>
diff --git a/app-misc/glastree/Manifest b/app-misc/glastree/Manifest
new file mode 100644
index 000000000000..240900acdf26
--- /dev/null
+++ b/app-misc/glastree/Manifest
@@ -0,0 +1 @@
+DIST glastree-1.04.tar.gz 5846 SHA256 067d01d98ae155f1fa1ba25a27dd72d27d4455d71107c3e6e6f1cdc41a0e0fd3 SHA512 81b819bc91780f42f945db13efc97faadd661c3272007dc0b90ed998776d3fc0fbe406249f069f0065271208c9f6ccd0488021d384e05d5b9da39311bec8f94d WHIRLPOOL 3c9f1bec8aa10e19e7f3c8e28f6196b50b583c637e7ec1ad1e53f001d48bd59e1c9a580da08d8bc4ad9ba66ad6e95d3244744bd157a90901a8acb97e44cc91a2
diff --git a/app-misc/glastree/files/glastree-posix-make.patch b/app-misc/glastree/files/glastree-posix-make.patch
new file mode 100644
index 000000000000..07e4bf6ec91a
--- /dev/null
+++ b/app-misc/glastree/files/glastree-posix-make.patch
@@ -0,0 +1,16 @@
+Make sure the perl code is valid both with and without the backslashes.
+Some make versions strip them, others don't.
+
+--- glastree-1.04/Makefile
++++ glastree-1.04/Makefile
+@@ -24,8 +24,8 @@
+
+ install:
+ @perl -e 'eval "use Date::Calc"; \
+- print "Checking for prereq Date::Calc..."; \
+- if ($$@) { print "\nThis program requires the Date::Calc module.\n"; exit 1; } \
++ print "Checking for prereq Date::Calc..."; if ($$@) { \
++ print "\nThis program requires the Date::Calc module.\n"; exit 1; } \
+ print " OK\n"; '
+
+ $(INSTALL) -d $(INSTROOT)/$(INSTBIN)
diff --git a/app-misc/glastree/glastree-1.04.ebuild b/app-misc/glastree/glastree-1.04.ebuild
new file mode 100644
index 000000000000..7eb6c997c3b2
--- /dev/null
+++ b/app-misc/glastree/glastree-1.04.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit eutils
+
+DESCRIPTION="glastree is a poor mans snapshot utility using hardlinks written in perl"
+HOMEPAGE="http://www.igmus.org/code/"
+SRC_URI="http://www.igmus.org/files/${P}.tar.gz"
+DEPEND="dev-lang/perl
+ dev-perl/Date-Calc"
+SLOT="0"
+KEYWORDS="~amd64 ppc x86"
+IUSE=""
+LICENSE="public-domain"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-posix-make.patch
+}
+
+src_compile() { :; }
+
+src_install() {
+ dodir /usr/share/man/man1
+ emake INSTROOT="${D}"/usr INSTMAN=share/man install
+ dodoc README CHANGES THANKS TODO
+}
diff --git a/app-misc/glastree/metadata.xml b/app-misc/glastree/metadata.xml
new file mode 100644
index 000000000000..d9cd2cad66c2
--- /dev/null
+++ b/app-misc/glastree/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>
+<email>maintainer-needed@gentoo.org</email>
+</maintainer>
+</pkgmetadata>
diff --git a/app-misc/glcdprocdriver/Manifest b/app-misc/glcdprocdriver/Manifest
new file mode 100644
index 000000000000..3bbafa325b77
--- /dev/null
+++ b/app-misc/glcdprocdriver/Manifest
@@ -0,0 +1 @@
+DIST glcdprocdriver-0.0.6.tar.bz2 17209 SHA256 6554b08eac5a2ecc573a808bdbc9ee01466c1c951c96840510a1cde7dcee875a SHA512 c489b6e6d6a72306867adb94ed6a6cf6354c834a27fd2ab2ac733707954b18bf93dc56a868e167fcb183602c03ac648bb941699760817e414ab8e8592edb8b7e WHIRLPOOL 05fffdd9e63c67f1755580a4ec43f9c752ad20c874f56021c233f08bd05dc780483af628b5735da05e1f4ad2d90479cd511445bb8fba2245b3186bad654f9524
diff --git a/app-misc/glcdprocdriver/files/glcdprocdriver-0.0.3-makefile.patch b/app-misc/glcdprocdriver/files/glcdprocdriver-0.0.3-makefile.patch
new file mode 100644
index 000000000000..51b93347acf1
--- /dev/null
+++ b/app-misc/glcdprocdriver/files/glcdprocdriver-0.0.3-makefile.patch
@@ -0,0 +1,22 @@
+--- ./Makefile 2006-10-05 08:37:03.000000000 +0000
++++ ./Makefile 2007-04-07 19:06:00.000000000 +0000
+@@ -11,6 +11,8 @@
+ PACKAGE = $(ARCHIVE)
+ TMPDIR = /tmp
+
++LIBS=-lglcddrivers -lglcdgraphics
++
+
+ LIBNAME = libglcdprocdriver.so
+ SONAME = $(LIBNAME).1
+@@ -24,6 +26,9 @@
+
+ all: $(LIBNAME)
+
++$(OBJS): %.o: %.c
++ $(CXX) -c -fPIC $(CXXFLAGS) $< -o $@
++
+ $(LIBNAME): $(OBJS)
+- $(CXX) $(CXXFLAGS) -shared $(OBJS) $(LIBS) -Wl,-soname="$(SONAME)" -o $@
++ $(CXX) $(LDFLAGS) -shared $(OBJS) $(LIBS) -Wl,-soname="$(SONAME)" -o $@
+
diff --git a/app-misc/glcdprocdriver/files/glcdprocdriver-gcc43.patch b/app-misc/glcdprocdriver/files/glcdprocdriver-gcc43.patch
new file mode 100644
index 000000000000..8f9fc27a75b9
--- /dev/null
+++ b/app-misc/glcdprocdriver/files/glcdprocdriver-gcc43.patch
@@ -0,0 +1,15 @@
+--- glcdprocdriver-0.0.4a/glcddriver.c 2007-04-17 19:05:54.000000000 -0300
++++ glcdprocdriver-0.0.4/glcddriver.c 2009-01-17 14:49:39.000000000 -0400
+@@ -4,11 +4,11 @@
+ *
+ * (c) 2005 Lucian Muresan <lucianm AT users.sourceforge.net>
+ */
++#include <stdlib.h>
+ #include <syslog.h>
+ #include "glcddriver.h"
+ #include "icons.h"
+
+-
+ /*
+ *
+ * The following icon IDs are taken from lcdproc/drivers/lcd.h
diff --git a/app-misc/glcdprocdriver/files/glcdprocdriver-gcc44.patch b/app-misc/glcdprocdriver/files/glcdprocdriver-gcc44.patch
new file mode 100644
index 000000000000..9d7095b4c9d9
--- /dev/null
+++ b/app-misc/glcdprocdriver/files/glcdprocdriver-gcc44.patch
@@ -0,0 +1,12 @@
+diff --git a/glcddriver.c b/glcddriver.c
+index b337a2b..575978a 100644
+--- a/glcddriver.c
++++ b/glcddriver.c
+@@ -4,6 +4,7 @@
+ *
+ * (c) 2005-2009 Lucian Muresan <lucianm AT users.sourceforge.net>
+ */
++#include <stdio.h>
+ #include <syslog.h>
+ #include <stdlib.h>
+ #include "glcddriver.h"
diff --git a/app-misc/glcdprocdriver/glcdprocdriver-0.0.6.ebuild b/app-misc/glcdprocdriver/glcdprocdriver-0.0.6.ebuild
new file mode 100644
index 000000000000..0f525a1f825e
--- /dev/null
+++ b/app-misc/glcdprocdriver/glcdprocdriver-0.0.6.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+inherit multilib toolchain-funcs eutils
+
+DESCRIPTION="Glue library for the glcdlib LCDproc driver based on GraphLCD"
+HOMEPAGE="http://www.muresan.de/graphlcd/lcdproc/"
+SRC_URI="http://www.muresan.de/graphlcd/lcdproc/${P}.tar.bz2"
+
+KEYWORDS="amd64 ~ppc x86"
+SLOT="0"
+LICENSE="GPL-2"
+
+DEPEND=">=app-misc/graphlcd-base-0.1.3
+ sys-libs/glibc"
+RDEPEND=${DEPEND}
+
+src_compile() {
+ emake LDFLAGS="${LDFLAGS}" CXX="$(tc-getCXX)" CXXFLAGS="${CXXFLAGS}"
+}
+
+src_install()
+{
+ emake DESTDIR="${D}/usr" LIBDIR="${D}/usr/$(get_libdir)" install
+ dodoc AUTHORS README INSTALL TODO ChangeLog
+ dosym usr/$(get_libdir)/libglcdprocdriver.so{,.1}
+}
diff --git a/app-misc/glcdprocdriver/metadata.xml b/app-misc/glcdprocdriver/metadata.xml
new file mode 100644
index 000000000000..a5ec2f6d094c
--- /dev/null
+++ b/app-misc/glcdprocdriver/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>
+ <email>maintainer-needed@gentoo.org</email>
+ </maintainer>
+ <longdescription lang="en">
+ GLCDprocDriver is the glue between the app-misc/graphlcd-base
+ library, which is written in C++, and app-misc/lcdproc's
+ meta-driver glcdlib, which extends supported displays in LCDproc
+ by those supported through graphlcd-base (just in text mode, of
+ course).
+ </longdescription>
+</pkgmetadata>
diff --git a/app-misc/glimpse/Manifest b/app-misc/glimpse/Manifest
new file mode 100644
index 000000000000..32d8385fa63a
--- /dev/null
+++ b/app-misc/glimpse/Manifest
@@ -0,0 +1,2 @@
+DIST glimpse-4.18.5.tar.gz 402754 SHA256 ef15d43db09d59fdce6d46343ac38a3d996924dfce3287ba63c76e6be93b70e1 SHA512 74cdc44f3eff6da62456f5ff6cf13172386bf73175e05258965ca15408bb77839b7e8bfc07e16c1cd4b4ebfaf499097ee24aac5ec77427390ed7e6e9ae3343de WHIRLPOOL a99a39168848869cf88a7664528f10b110c9b5f71c5859a3f9861599cfd0a887d512ae97f4b2fa84da1415fbe0df236259f16cbdad2c1ddfc85569424f162422
+DIST glimpse-4.18.6.tar.gz 812595 SHA256 0c21d27d6a3fe37dacdc66ef9194623f5a94b2f5d221dff8f187f69f629beade SHA512 884daf2057f46bbe29ad2c3e9000e18a3fcc5101abdcb5193dcf66e5da650e2528a6d2cef05ab4176243f381ba03f533cba989cad329697808d97a61f1b42d3a WHIRLPOOL 9b6ecf23ed3a15f53d9324de0a271722a3d8a6b153d146388a25a2e3878ffda537e16ec3d7a2903dd964acfc889352bf89fb28c8a99309793ceefa215b2f4ae6
diff --git a/app-misc/glimpse/files/glimpse-4.18.5-makefile.patch b/app-misc/glimpse/files/glimpse-4.18.5-makefile.patch
new file mode 100644
index 000000000000..86064099adf2
--- /dev/null
+++ b/app-misc/glimpse/files/glimpse-4.18.5-makefile.patch
@@ -0,0 +1,42 @@
+--- Makefile.in 2006-03-10 20:42:12.000000000 -0500
++++ Makefile.in.new 2010-08-12 21:12:41.000000000 -0400
+@@ -52,7 +52,7 @@
+ PROGAGREP = agrep/agrep
+ OPTIMIZEFLAGS = -O2
+ INCLUDEFLAGS = -I$(INDEXDIR) -I$(AGREPDIR) -I$(TEMPLATEDIR)/include
+-CFLAGS = $(INCLUDEFLAGS) $(DEFS)
++CFLAGS = $(INCLUDEFLAGS) $(DEFS) $(OPTIMIZEFLAGS)
+
+ OBJS = get_filename.o \
+ get_index.o \
+@@ -78,7 +78,7 @@
+ $(INDEXDIR)/memlook.c \
+ $(INDEXDIR)/io.c
+
+-all: build-sub @TARGET@
++all: build-sub
+ Sall: $(PROG) $(PROGSERVER) $(PROGINDEX)
+ agrep: $(PROGAGREP)
+ NOTSall: $(NOTSPROG) $(NOTSPROGSERVER)
+@@ -87,6 +87,7 @@
+ for d in $(SUBDIRS) ; do \
+ ( cd $$d; $(MAKE) ); \
+ done
++ $(MAKE) @TARGET@
+
+ # Check target
+
+@@ -105,11 +106,11 @@
+
+ install-man:
+ for d in $(MANUAL) ; do \
+- $(INSTALL_MAN) $$d $(mandir) ; \
++ $(INSTALL_MAN) $$d $(mandir)/man1/ ; \
+ done
+
+ installdirs: mkinstalldirs
+- $(srcdir)/mkinstalldirs $(bindir) $(mandir)
++ $(srcdir)/mkinstalldirs $(bindir) $(mandir)/man1/
+
+ clean:
+ for d in $(SUBDIRS); do \
diff --git a/app-misc/glimpse/glimpse-4.18.5.ebuild b/app-misc/glimpse/glimpse-4.18.5.ebuild
new file mode 100644
index 000000000000..3fcb7ceffb99
--- /dev/null
+++ b/app-misc/glimpse/glimpse-4.18.5.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit flag-o-matic eutils
+
+DESCRIPTION="A index/query system to search a large set of files quickly"
+HOMEPAGE="http://webglimpse.net/"
+SRC_URI="http://webglimpse.net/trial/${P}.tar.gz"
+
+LICENSE="glimpse"
+SLOT="0"
+KEYWORDS="alpha amd64 ia64 ~mips ppc ~ppc64 sparc x86 ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
+IUSE="static"
+
+RDEPEND="!dev-libs/tre
+ !app-text/agrep"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ sed -i \
+ -e "s:CC=.*:CC=$(tc-getCC):" \
+ -e 's:-O3 -fomit-frame-pointer:$(OPTIMIZEFLAGS):' \
+ dynfilters/Makefile.in \
+ || die "removing -O3 failed"
+ sed -i \
+ -e '/^CFLAGS/s:$: $(OPTIMIZEFLAGS):' \
+ {agrep,compress,index}/Makefile.in \
+ libtemplate/{template,util}/Makefile.in \
+ || die "inserting OPTIMIZEFLAGS failed"
+ sed -i \
+ -e 's:$(mandir):&/man1/:' \
+ agrep/Makefile.in \
+ || die "adding man1 to man install dir failed"
+
+ sed -i \
+ -e '/^LDFLAGS/d' \
+ {agrep,compress,index}/Makefile.in \
+ || die "LDFLAGS sed failed"
+
+ epatch "${FILESDIR}"/${P}-makefile.patch
+}
+
+src_compile() {
+ use static && append-ldflags -static
+
+ econf || die
+ emake OPTIMIZEFLAGS="${CFLAGS}" || die
+}
+
+src_install() {
+ einstall || die
+}
diff --git a/app-misc/glimpse/glimpse-4.18.6.ebuild b/app-misc/glimpse/glimpse-4.18.6.ebuild
new file mode 100644
index 000000000000..854eaa946366
--- /dev/null
+++ b/app-misc/glimpse/glimpse-4.18.6.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+inherit flag-o-matic eutils
+
+DESCRIPTION="A index/query system to search a large set of files quickly"
+HOMEPAGE="http://webglimpse.net/"
+SRC_URI="http://webglimpse.net/trial/${P}.tar.gz"
+
+LICENSE="glimpse"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
+IUSE="static"
+
+RDEPEND="!dev-libs/tre
+ !app-text/agrep"
+
+src_prepare() {
+ sed -i \
+ -e "s:CC=.*:CC=$(tc-getCC):" \
+ -e 's:-O3 -fomit-frame-pointer:$(OPTIMIZEFLAGS):' \
+ dynfilters/Makefile.in \
+ || die "removing -O3 failed"
+ sed -i \
+ -e '/^CFLAGS/s:$: $(OPTIMIZEFLAGS):' \
+ {agrep,compress,index}/Makefile.in \
+ libtemplate/{template,util}/Makefile.in \
+ || die "inserting OPTIMIZEFLAGS failed"
+ sed -i \
+ -e 's:$(mandir):&/man1/:' \
+ agrep/Makefile.in \
+ || die "adding man1 to man install dir failed"
+
+ sed -i \
+ -e '/^LDFLAGS/d' \
+ {agrep,compress,index}/Makefile.in \
+ || die "LDFLAGS sed failed"
+
+ epatch "${FILESDIR}"/${PN}-4.18.5-makefile.patch
+}
+
+src_configure() {
+ use static && append-ldflags -static
+
+ econf || die
+}
+
+src_compile() {
+ emake OPTIMIZEFLAGS="${CFLAGS}" || die
+}
+
+src_install() {
+ einstall || die
+}
diff --git a/app-misc/glimpse/metadata.xml b/app-misc/glimpse/metadata.xml
new file mode 100644
index 000000000000..91f4e72fb544
--- /dev/null
+++ b/app-misc/glimpse/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>
+ <email>maintainer-needed@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-misc/gnomecatalog/Manifest b/app-misc/gnomecatalog/Manifest
new file mode 100644
index 000000000000..b8a08437be29
--- /dev/null
+++ b/app-misc/gnomecatalog/Manifest
@@ -0,0 +1 @@
+DIST gnomecatalog-0.3.4.2.tar.bz2 58983 SHA256 4bd0352b994b9d63be3eb465db57dee38d4f87adff8c0b901687b735cc7dfa4e SHA512 fa72e58d429d9fcf62adde848e942f83a6b6b8e0e9ad3121f1ffdb6547b9299ae2200a08aa9b1b191b5c994c09a0a33de421c3715fc96717e17ddafd9fbe55f2 WHIRLPOOL 87a64d6e2bae56c7af66d12c5f1bdb5775b9f842b6e329975fbe5625024ce5488e1843e985d36e8963b79ad43eabb866005a7aeb50e220bfd5a8eda380c92631
diff --git a/app-misc/gnomecatalog/files/gnomecatalog-0.3.4.2-dbus.patch b/app-misc/gnomecatalog/files/gnomecatalog-0.3.4.2-dbus.patch
new file mode 100644
index 000000000000..705c148963a2
--- /dev/null
+++ b/app-misc/gnomecatalog/files/gnomecatalog-0.3.4.2-dbus.patch
@@ -0,0 +1,109 @@
+# https://sourceforge.net/tracker2/?func=detail&aid=2622610&group_id=118573&atid=681722
+--- a/gnomecatalog/data.py (revision 1)
++++ b/gnomecatalog/data.py (working copy)
+@@ -33,32 +33,34 @@
+
+ """ Leemos el disco y lo insertamos en la base de datos """
+ def import_disk(self):
+- path = self.config.get("source")
++
++ for path in utils.get_path():
++ #~ path = self.config.get("source")
+
+- database = storage.Sqlite(self.opened_database, self.app, True)
++ database = storage.Sqlite(self.opened_database, self.app, True)
+
+- if self.config.get("thumbnails") == "True":
+- if not os.path.exists(database.database + "_thumbs"):
+- os.mkdir(database.database + "_thumbs")
++ if self.config.get("thumbnails") == "True":
++ if not os.path.exists(database.database + "_thumbs"):
++ os.mkdir(database.database + "_thumbs")
+
+- """Importamos un nuevo disco"""
+- if not utils.is_mounted(path):
+- self.__path = path
+- self.__progress = self.app.progress_bar
+- utils.mount(path, self._mount_callback)
++ """Importamos un nuevo disco"""
++ if not utils.is_mounted(path):
++ self.__path = path
++ self.__progress = self.app.progress_bar
++ utils.mount(path, self._mount_callback)
+
+- disk = self.reader.read(path, self.app.progress_bar)
++ disk = self.reader.read(path, self.app.progress_bar)
+
+- if disk:
+- """ ahora insertamos los datos en la base de datos. """
+- disk = database.insert_disk(disk)
+- if self.config.get("eject") == "True": utils.eject(path)
+- self.app.set_guardar_state(True)
+-# self.load_data()
+-# self.treeDisk.select(disk)
+- # self.show_files_from_selected()
+- database.close()
+- return disk
++ if disk:
++ """ ahora insertamos los datos en la base de datos. """
++ disk = database.insert_disk(disk)
++ if self.config.get("eject") == "True": utils.eject(path)
++ self.app.set_guardar_state(True)
++ # self.load_data()
++ # self.treeDisk.select(disk)
++ # self.show_files_from_selected()
++ database.close()
++ return disk
+
+
+ """ Carga los discos de a base de datos en el treeview tree """
+--- a/gnomecatalog/utils.py (revision 1)
++++ b/gnomecatalog/utils.py (working copy)
+@@ -1,6 +1,28 @@
+ import os, commands, time
+ import gnomevfs, gtk
++import dbus, dbus.glib, sys, urllib
+
++
++def get_path():
++ path = []
++ bus = dbus.SystemBus()
++ hal_obj = bus.get_object ('org.freedesktop.Hal', '/org/freedesktop/Hal/Manager')
++ hal = dbus.Interface (hal_obj, 'org.freedesktop.Hal.Manager')
++ udis = hal.FindDeviceByCapability ('storage')
++ for udi in udis:
++ dev_obj = bus.get_object ('org.freedesktop.Hal', udi)
++ dev = dbus.Interface (dev_obj, 'org.freedesktop.Hal.Device')
++ if (dev.GetProperty ('storage.removable')):
++ block = dev.GetProperty ('block.device')
++ f = open ('/etc/mtab')
++ for line in f.readlines():
++ if (line.find (block) == 0):
++ mount = line.split()
++ path.append(mount[1].replace('\\040',' '))
++ f.close()
++ return path
++
++
+ def locate_file(path, type = "icons"):
+ prefixes = ['', 'usr/', 'usr/local/']
+ if type == "glade":
+--- a/gnomecatalog/ui/app.py (revision 1)
++++ b/gnomecatalog/ui/app.py (working copy)
+@@ -162,14 +162,6 @@
+ self.import_thread.start()
+ gobject.timeout_add(1000, self.wait_import_cb)
+
+-# t2 = threading.Thread(target=self.wait_import_cb)
+-# t2.setDaemon(True)
+-# t2.start()
+-
+-# gobject.idle_add(self.wait_import_cb, t)
+-
+- #dialogs.addDisk(self.data).loadDisk()
+-
+ def wait_import_cb(self):
+ if not self.import_thread.isAlive():
+ self.hbox_import.hide()
+
+
diff --git a/app-misc/gnomecatalog/gnomecatalog-0.3.4.2-r1.ebuild b/app-misc/gnomecatalog/gnomecatalog-0.3.4.2-r1.ebuild
new file mode 100644
index 000000000000..47c90307ae36
--- /dev/null
+++ b/app-misc/gnomecatalog/gnomecatalog-0.3.4.2-r1.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="sqlite,xml"
+
+inherit distutils-r1 eutils fdo-mime gnome2-utils
+
+DESCRIPTION="Cataloging software for CDs and DVDs"
+HOMEPAGE="http://gnomecatalog.sf.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="
+ dev-python/gconf-python:2[${PYTHON_USEDEP}]
+ dev-python/gnome-vfs-python:2[${PYTHON_USEDEP}]
+ dev-python/kaa-metadata[${PYTHON_USEDEP}]
+ dev-python/libgnome-python:2[${PYTHON_USEDEP}]
+ dev-python/pygobject:2[${PYTHON_USEDEP}]
+ >=dev-python/pygtk-2.4:2[${PYTHON_USEDEP}]
+ dev-python/pyvorbis[${PYTHON_USEDEP}]
+ >=gnome-base/libglade-2:2.0
+ >=x11-libs/gtk+-2.4:2
+"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ # Fix importing from a single folder in /media
+ epatch "${FILESDIR}"/${P}-dbus.patch
+
+ # Use sqlite3 instead of pysqlite2, bug #452126.
+ sed -i -e 's:from pysqlite2 import dbapi2:import sqlite3:' \
+ gnomecatalog/storage.py || die
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+ fdo-mime_mime_database_update
+}
+
+pkg_postrm() {
+ fdo-mime_mime_database_update
+ gnome2_icon_cache_update
+}
diff --git a/app-misc/gnomecatalog/metadata.xml b/app-misc/gnomecatalog/metadata.xml
new file mode 100644
index 000000000000..ef92f514a8ff
--- /dev/null
+++ b/app-misc/gnomecatalog/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>
+ <email>maintainer-needed@gentoo.org</email>
+ <description>Cataloging software for CDs and DVDs.</description>
+ </maintainer>
+ <longdescription>
+ Generate thumbnails of the video files and image files via nautilus (gnome
+ file manager), and saves it in the database files.
+
+ Save the metadata of the files, then you can search in the metatada of mp3,
+ avis, images (exif).
+</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">gnomecatalog</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/gnote/Manifest b/app-misc/gnote/Manifest
new file mode 100644
index 000000000000..191627daaa0b
--- /dev/null
+++ b/app-misc/gnote/Manifest
@@ -0,0 +1,4 @@
+DIST boost.m4-32553aaf4d5090da19aa0ec33b936982c685009f.zip 48610 SHA256 c7125b532d10e14c4969446b2a9297bfe4ee58d33fedc54a6cb8937e7bc0d41c SHA512 717232e8076f585f64fd7d11128168ab6ed002675f13f0a21c22a6cba57756f11fd63a621d003f90403ffbdab95806a42dba49d3f82b847d2a1e743710c6ef34 WHIRLPOOL a6ccc5feece027b78512c587b60215574ba1a8a826a3b559a7fde81c544be7a24a2d118e9e558cb592bc7441371ac38d463f757632a94e25726346c3087c3941
+DIST gnote-3.14.2.tar.xz 3146108 SHA256 4d01745cab0a01c6b4a921c376c11f1dcb40bf3e635fb88739afb05994a89c22 SHA512 100c86330876507e784300407c9b66de0ee709c0a0368a51c6823e37bc97d8891b52630c1e33fcb09c6d3f7dedbfa5c323cb8326476b0cef2bdfc6dfc88ba2a0 WHIRLPOOL 5b965f8c45814504e8b679f6f4eabfc1907af2cc30c5c45b36efa9fa19bbd57e65739b356f2ea934d6a5c260b0ee301007ed11edc31a73d5921aeb93d1717ca9
+DIST gnote-3.16.1.tar.xz 3059032 SHA256 8360a8ddfbc1cddd8970a29c66965f2de4d1330145f7cc7d47831205e2b10087 SHA512 33a5485343e08ab9adbd36aacc63f779991759d753e7c3132b14465b128596b77a2ba6517eaec188dd042b89c38100bf83ddd772f0cf0bf338f9ec41139e68be WHIRLPOOL 60dd34fed6a611c4484d39eab945e8806421f6df7f269dca928f4a84a7442d249faa2677877067cb657d79b37b267dd0ca42d7a25d3d2b54f24fa9f87d56423d
+DIST gnote-3.16.2.tar.xz 3068136 SHA256 5c5b55b5c548d15e344d59fdd2a0260b1acbd13a9fa4cf9bfc1fe6e68a041e07 SHA512 b9d405ad8392d526fcb4098952c6531ba99b1a9b74a1bb857886b3017b676938e001ea7332bd189d5bdbbf554b40bcff57c995d6391135d4176ba00529d4b130 WHIRLPOOL c6d94674093eb1883b87c5da9d302c99f73fd32e51d728b406d2f8f8a40cc8eac85e6be39f5d0ad38d5f492699c1d97a7e642dc31df791cde16b09957d98f418
diff --git a/app-misc/gnote/gnote-3.14.2.ebuild b/app-misc/gnote/gnote-3.14.2.ebuild
new file mode 100644
index 000000000000..77df19a3e748
--- /dev/null
+++ b/app-misc/gnote/gnote-3.14.2.ebuild
@@ -0,0 +1,82 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+GCONF_DEBUG="no"
+
+inherit autotools gnome2 readme.gentoo
+
+DESCRIPTION="Desktop note-taking application"
+HOMEPAGE="https://wiki.gnome.org/Apps/Gnote"
+
+BOOST_M4_COMMIT=32553aaf4d5090da19aa0ec33b936982c685009f
+SRC_URI="${SRC_URI}
+ https://github.com/tsuna/boost.m4/archive/${BOOST_M4_COMMIT}.zip -> boost.m4-${BOOST_M4_COMMIT}.zip"
+# Use sys-devel/boost-m4 when it's bumped, bug #549618
+
+LICENSE="GPL-3+ FDL-1.1"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="debug X"
+
+# Automagic glib-2.32 dep
+COMMON_DEPEND="
+ >=app-crypt/libsecret-0.8
+ >=app-text/gtkspell-3.0:3
+ >=dev-cpp/glibmm-2.32:2
+ >=dev-cpp/gtkmm-3.10:3.0
+ >=dev-libs/boost-1.34
+ >=dev-libs/glib-2.32:2
+ >=dev-libs/libxml2-2:2
+ dev-libs/libxslt
+ >=sys-apps/util-linux-2.16:=
+ >=x11-libs/gtk+-3.10:3
+ X? ( x11-libs/libX11 )
+"
+RDEPEND="${COMMON_DEPEND}
+ gnome-base/gsettings-desktop-schemas
+"
+DEPEND="${DEPEND}
+ app-text/docbook-xml-dtd:4.1.2
+ dev-util/desktop-file-utils
+ >=dev-util/intltool-0.35.0
+ virtual/pkgconfig
+"
+
+src_prepare() {
+ # Use newer boost.m4 to allow build with gcc-5.1; fixed upsteam in 3.16
+ cp "../boost.m4-${BOOST_M4_COMMIT}/build-aux/boost.m4" m4/ || die
+ eautoreconf
+
+ # Do not alter CFLAGS
+ sed 's/-DDEBUG -g/-DDEBUG/' -i configure.ac configure || die
+ gnome2_src_prepare
+
+ if has_version net-fs/wdfs; then
+ DOC_CONTENTS="You have net-fs/wdfs installed. app-misc/gnote will use it to
+ synchronize notes."
+ else
+ DOC_CONTENTS="Gnote can use net-fs/wdfs to synchronize notes.
+ If you want to use that functionality just emerge net-fs/wdfs.
+ Gnote will automatically detect that you did and let you use it."
+ fi
+}
+
+src_configure() {
+ gnome2_src_configure \
+ --disable-static \
+ $(use_enable debug) \
+ $(use_with X x11-support) \
+ ITSTOOL=$(type -P true)
+}
+
+src_install() {
+ gnome2_src_install
+ readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+ gnome2_pkg_postinst
+ readme.gentoo_print_elog
+}
diff --git a/app-misc/gnote/gnote-3.16.1.ebuild b/app-misc/gnote/gnote-3.16.1.ebuild
new file mode 100644
index 000000000000..5943ae2b5754
--- /dev/null
+++ b/app-misc/gnote/gnote-3.16.1.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+GCONF_DEBUG="no"
+GNOME2_LA_PUNT="yes"
+
+inherit gnome2 readme.gentoo
+
+DESCRIPTION="Desktop note-taking application"
+HOMEPAGE="https://wiki.gnome.org/Apps/Gnote"
+
+LICENSE="GPL-3+ FDL-1.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug X"
+
+# Automagic glib-2.32 dep
+COMMON_DEPEND="
+ >=app-crypt/libsecret-0.8
+ >=app-text/gtkspell-3.0:3
+ >=dev-cpp/glibmm-2.32:2
+ >=dev-cpp/gtkmm-3.10:3.0
+ >=dev-libs/boost-1.34
+ >=dev-libs/glib-2.32:2
+ >=dev-libs/libxml2-2:2
+ dev-libs/libxslt
+ >=sys-apps/util-linux-2.16:=
+ >=x11-libs/gtk+-3.10:3
+ X? ( x11-libs/libX11 )
+"
+RDEPEND="${COMMON_DEPEND}
+ gnome-base/gsettings-desktop-schemas
+"
+DEPEND="${DEPEND}
+ app-text/docbook-xml-dtd:4.1.2
+ dev-util/desktop-file-utils
+ >=dev-util/intltool-0.35.0
+ virtual/pkgconfig
+"
+
+src_prepare() {
+ # Do not alter CFLAGS
+ sed 's/-DDEBUG -g/-DDEBUG/' -i configure.ac configure || die
+ gnome2_src_prepare
+
+ if has_version net-fs/wdfs; then
+ DOC_CONTENTS="You have net-fs/wdfs installed. app-misc/gnote will use it to
+ synchronize notes."
+ else
+ DOC_CONTENTS="Gnote can use net-fs/wdfs to synchronize notes.
+ If you want to use that functionality just emerge net-fs/wdfs.
+ Gnote will automatically detect that you did and let you use it."
+ fi
+}
+
+src_configure() {
+ gnome2_src_configure \
+ --disable-static \
+ $(use_enable debug) \
+ $(use_with X x11-support) \
+ ITSTOOL=$(type -P true)
+}
+
+src_install() {
+ gnome2_src_install
+ readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+ gnome2_pkg_postinst
+ readme.gentoo_print_elog
+}
diff --git a/app-misc/gnote/gnote-3.16.2.ebuild b/app-misc/gnote/gnote-3.16.2.ebuild
new file mode 100644
index 000000000000..a040b8f2bf3a
--- /dev/null
+++ b/app-misc/gnote/gnote-3.16.2.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+GCONF_DEBUG="no"
+GNOME2_LA_PUNT="yes"
+
+inherit gnome2 readme.gentoo
+
+DESCRIPTION="Desktop note-taking application"
+HOMEPAGE="https://wiki.gnome.org/Apps/Gnote"
+
+LICENSE="GPL-3+ FDL-1.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug X"
+
+# Automagic glib-2.32 dep
+COMMON_DEPEND="
+ >=app-crypt/libsecret-0.8
+ >=app-text/gtkspell-3.0:3
+ >=dev-cpp/glibmm-2.32:2
+ >=dev-cpp/gtkmm-3.10:3.0
+ >=dev-libs/boost-1.34
+ >=dev-libs/glib-2.32:2[dbus]
+ >=dev-libs/libxml2-2:2
+ dev-libs/libxslt
+ >=sys-apps/util-linux-2.16:=
+ >=x11-libs/gtk+-3.10:3
+ X? ( x11-libs/libX11 )
+"
+RDEPEND="${COMMON_DEPEND}
+ gnome-base/gsettings-desktop-schemas
+"
+DEPEND="${DEPEND}
+ app-text/docbook-xml-dtd:4.1.2
+ dev-util/desktop-file-utils
+ >=dev-util/intltool-0.35.0
+ dev-util/itstool
+ virtual/pkgconfig
+"
+
+src_prepare() {
+ # Do not alter CFLAGS
+ sed 's/-DDEBUG -g/-DDEBUG/' -i configure.ac configure || die
+ gnome2_src_prepare
+
+ if has_version net-fs/wdfs; then
+ DOC_CONTENTS="You have net-fs/wdfs installed. app-misc/gnote will use it to
+ synchronize notes."
+ else
+ DOC_CONTENTS="Gnote can use net-fs/wdfs to synchronize notes.
+ If you want to use that functionality just emerge net-fs/wdfs.
+ Gnote will automatically detect that you did and let you use it."
+ fi
+}
+
+src_configure() {
+ gnome2_src_configure \
+ --disable-static \
+ $(use_enable debug) \
+ $(use_with X x11-support)
+}
+
+src_install() {
+ gnome2_src_install
+ readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+ gnome2_pkg_postinst
+ readme.gentoo_print_elog
+}
diff --git a/app-misc/gnote/metadata.xml b/app-misc/gnote/metadata.xml
new file mode 100644
index 000000000000..348778d43318
--- /dev/null
+++ b/app-misc/gnote/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>gnome</herd>
+ <upstream>
+ <remote-id type="github">tsuna/boost.m4</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/gnuit/Manifest b/app-misc/gnuit/Manifest
new file mode 100644
index 000000000000..8e1df2823375
--- /dev/null
+++ b/app-misc/gnuit/Manifest
@@ -0,0 +1 @@
+DIST gnuit-4.9.5.tar.gz 894362 SHA256 6b6e96db13bafa5ad35c735b2277699d4244088c709a3e134fb1a3e8c8a8557c SHA512 91f1a86f45d5a2fab91941587aed3c1e57ae68271584bef38560c9a31fabbdfeba801d87cdf5640ba9f2041e43305e49c64953b8d5370f3f6a463b2fa2a7c5da WHIRLPOOL 45c9539fb1bcc8bb985b0d63ae24c7be50773cbddb81b986d48a3b9f290fcf3ca4649eda3d830beafe0c2b854a82e7b90d3082231a8e401643cc3fa6d59af18b
diff --git a/app-misc/gnuit/files/gnuit-4.9.5-format-security.patch b/app-misc/gnuit/files/gnuit-4.9.5-format-security.patch
new file mode 100644
index 000000000000..ec2a1c51fdb8
--- /dev/null
+++ b/app-misc/gnuit/files/gnuit-4.9.5-format-security.patch
@@ -0,0 +1,16 @@
+ src/git.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/git.c b/src/git.c
+index c6040b2..595912d 100644
+--- a/src/git.c
++++ b/src/git.c
+@@ -1917,7 +1917,7 @@ main(argc, argv)
+ printf("%s %s (%s)\n", PRODUCT, VERSION, HOST);
+ #endif /* !HAVE_GCC */
+
+- printf(copyright);
++ printf("%s", copyright);
+
+ #ifdef DEBIAN
+ add_to_environment("GIT_EDITOR", "EDITOR", "sensible-editor");
diff --git a/app-misc/gnuit/gnuit-4.9.5-r2.ebuild b/app-misc/gnuit/gnuit-4.9.5-r2.ebuild
new file mode 100644
index 000000000000..b7df33cc026f
--- /dev/null
+++ b/app-misc/gnuit/gnuit-4.9.5-r2.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils
+
+DESCRIPTION="GNU Interactive Tools - increase speed and efficiency of most daily tasks"
+HOMEPAGE="http://www.gnu.org/software/gnuit/"
+SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-3 FDL-1.3"
+SLOT="0"
+KEYWORDS="amd64 ppc sparc x86"
+IUSE=""
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-format-security.patch
+}
+
+src_configure() {
+ # The transition option controls whether a "git" wrapper is installed, it is
+ # disabled explicitly so we don't need to block on dev-vcs/git.
+ econf --disable-transition
+}
+
+src_install() {
+ default
+ #emake DESTDIR="${D}" htmldir="/usr/share/doc/${PF}/html" install
+ mv "${D}/usr/bin/gitview" "${D}/usr/bin/gnuitview" || die
+}
+
+pkg_postinst() {
+ elog "The 'git' tool this package previously installed is now called 'gitfm'"
+ elog "The 'gitview' tool this package previously installed is now called 'gnuitview'"
+ elog "If you want the 'gitaction' tool to use your preferred desktop"
+ elog "application settings install the 'x11-misc/xdg-utils' package."
+}
diff --git a/app-misc/gnuit/metadata.xml b/app-misc/gnuit/metadata.xml
new file mode 100644
index 000000000000..40149c995561
--- /dev/null
+++ b/app-misc/gnuit/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>shell-tools</herd>
+</pkgmetadata>
diff --git a/app-misc/gnutu/Manifest b/app-misc/gnutu/Manifest
new file mode 100644
index 000000000000..38d1cce4b241
--- /dev/null
+++ b/app-misc/gnutu/Manifest
@@ -0,0 +1 @@
+DIST gnutu-2.5.tar.gz 287100 SHA256 a614d7dea5412273321e2ccccf6a9cabecc5e345af11ef6c766ae8ab74e5ff24 SHA512 b3ce4a39ca06cdb18459b64ca0ee167a735ae01dcac155c606d4ee61ace4d128540aa60f5ca2c0a5ed9ed561a7b1ebe02cd1dd4cffe79c3f0cbb8af831fdcd82 WHIRLPOOL 383ba76e50203d50df6f1fc544ffbeb487a97d79cba75791e6469b728bb1378ea1121e70252f915c4382d99a55b4b8cf7ac9a62b2d44235a7d3be0484f07a211
diff --git a/app-misc/gnutu/files/gnutu-2.0-event.patch b/app-misc/gnutu/files/gnutu-2.0-event.patch
new file mode 100644
index 000000000000..72203cfd9891
--- /dev/null
+++ b/app-misc/gnutu/files/gnutu-2.0-event.patch
@@ -0,0 +1,11 @@
+--- src/Widgets/DateEdit.cs.old 2005-09-08 04:52:07.195144232 +0900
++++ src/Widgets/DateEdit.cs 2005-09-08 04:53:34.173921448 +0900
+@@ -74,7 +74,7 @@
+ }
+
+
+- private void on_CalendarWindow_focus_out (object obj, EventArgs args)
++ private void on_CalendarWindow_focus_out (object obj, Gtk.FocusOutEventArgs args)
+ {
+ CalendarWindow.Hide ();
+ SelectBtn.Active = false;
diff --git a/app-misc/gnutu/gnutu-2.5.ebuild b/app-misc/gnutu/gnutu-2.5.ebuild
new file mode 100644
index 000000000000..8b92b328afd7
--- /dev/null
+++ b/app-misc/gnutu/gnutu-2.5.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+DESCRIPTION="GNU Student's Timetable for polish users"
+HOMEPAGE="http://gnutu.devnull.pl/"
+SRC_URI="http://gnutu.devnull.pl/download/sources/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=">=dev-lang/mono-1.2.5.1-r1
+ >=dev-dotnet/gtk-sharp-2.10.0
+ >=dev-dotnet/glade-sharp-2.10.0"
+DEPEND="${RDEPEND}
+ sys-devel/gettext"
+
+DOCS=( ChangeLog AUTHORS NEWS README )
diff --git a/app-misc/gnutu/metadata.xml b/app-misc/gnutu/metadata.xml
new file mode 100644
index 000000000000..b1c2d9026bdc
--- /dev/null
+++ b/app-misc/gnutu/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>
+ <email>maintainer-needed@gentoo.org</email>
+ </maintainer>
+ <longdescription lang="en">
+ GNUTU is a polish program. It is designed for students from primary and
+ secondary schools – using it, you can note various information (like marks,
+ tests dates and important school events). It also can create various statistics,
+ calculate your average; it can also serve as a journal and many, many more...
+ </longdescription>
+ <longdescription lang="ja">
+ GNUTUはポーランド語のプログラムです。GNUTUは学生のために作ったプログラムです。この
+ プログラムで、色々なこと(ノートやテストの年月日や必要なイベント)を取れる。統計を
+ 作って、点数割り出すも出来る。
+ </longdescription>
+</pkgmetadata>
diff --git a/app-misc/golly/Manifest b/app-misc/golly/Manifest
new file mode 100644
index 000000000000..eaf3147ac607
--- /dev/null
+++ b/app-misc/golly/Manifest
@@ -0,0 +1,4 @@
+DIST golly-2.4-src.tar.gz 2612440 SHA256 b5e4fe5dfb9f6b6a514211b31498be886012638e8aaae16a08b50bf2f6d676c4 SHA512 7e49d72ff638c21f7bdf9de6d254e6baa4989735bdc3d9c52ec9eeacce7e9c6261d32f86b9c62478c3192d17aaba0f30994ad8e9be625dfa21de4d2b035493f9 WHIRLPOOL 556b4a319091f34362c66452b898c281620d0c98b71fbe9491a32e08edafea988d850287178d74cb2b2c34e12954f4fdb4477effa80e8f54aa938930383efe01
+DIST golly-2.5-src.tar.gz 3381010 SHA256 b741c0b33fccdc72cd602fb5fcab099c4611d1a92d6bdd89b24d7410c28bbeac SHA512 832d839151ecba4302444cc9a4b22c490220c433941ed806d9a0df07c7d0ea230d89ea1fbe120e8f7d9659a850916379e722c9a1765bcf22bb74964f94d8cf27 WHIRLPOOL 1cbabcbabe14a9dd2991fb30c6fec1e8b6cdb61f7eede3e5ed9041d74b35718804e4394be0a8bb04204eb617f28db4e26f0af50dc48d8e5cf312860941b687f5
+DIST golly-2.6-src.tar.gz 3545388 SHA256 1fe2f983144bc895eaa1242f95c5bb49344cc0139b5c3309e6b4fa219c1f33d8 SHA512 77a59f3f944883c1265880bc9e093abcf9490f96e1309c952aefb8e7ff2c6e4727ef17510f4181d068d3c8228ef8e192b8f0d63a08c6fa2070350d770eb3e8cd WHIRLPOOL 428f813df40a6ec4b7944549e7895db9e1fbefdc2993c1b9fbfdea43301ff80fa51ef9c79b63e908d5a8d093fe9077134f2ced797a709a2cca47d491219daea4
+DIST golly-2.7-src.tar.gz 3881882 SHA256 9af30afd7b03b3eebcfaec088d67c495609aef72516d9ca8f076b62f32b5e17b SHA512 084919f508b471cc0937d50307410c3f48281e7328e3b9d20e634b9ddfe5909e3b9a000da5a9845a2ba7e45a733fee39e2e6d55902c9af110b5f2d7ea8654d77 WHIRLPOOL 5c391894943593391e2c784f28c00cbbb479068936c6bd754d6c81847d4b0a3c57aad65535a5d8f5f97f789225a6d8d18f52b203ea9340fdd49f641fac8ae42e
diff --git a/app-misc/golly/golly-2.4-r1.ebuild b/app-misc/golly/golly-2.4-r1.ebuild
new file mode 100644
index 000000000000..5e724aba8ce5
--- /dev/null
+++ b/app-misc/golly/golly-2.4-r1.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+WX_GTK_VER=2.8
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit eutils python-single-r1 toolchain-funcs wxwidgets
+
+DESCRIPTION="simulator for Conway's Game of Life and other cellular automata"
+HOMEPAGE="http://golly.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="dev-lang/perl
+ sys-libs/zlib
+ x11-libs/wxGTK:${WX_GTK_VER}[X]"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/${P}-src
+
+src_prepare() {
+ sed -e 's:-O2::' -i configure Makefile.{am,in} || die
+}
+
+src_configure() {
+ econf --with-perl-shlib="libperl.so"
+}
+
+src_compile() {
+ emake AR=$(tc-getAR)
+}
+
+src_install() {
+ emake docdir= DESTDIR="${D}" install
+ newicon appicon.xpm ${PN}.xpm
+ dodoc README TODO
+}
diff --git a/app-misc/golly/golly-2.4.ebuild b/app-misc/golly/golly-2.4.ebuild
new file mode 100644
index 000000000000..bef8156c13d3
--- /dev/null
+++ b/app-misc/golly/golly-2.4.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+PYTHON_DEPEND=2
+WX_GTK_VER=2.8
+
+inherit python toolchain-funcs wxwidgets
+
+MY_P=${P}-src
+DESCRIPTION="simulator for Conway's Game of Life and other cellular automata"
+HOMEPAGE="http://golly.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="dev-lang/perl
+ sys-libs/zlib
+ x11-libs/wxGTK:${WX_GTK_VER}[X]"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/${MY_P}
+
+pkg_setup() {
+ python_set_active_version 2
+ python_pkg_setup
+}
+
+src_prepare() {
+ sed -e 's:-O2::' -i configure Makefile.{am,in} || die
+}
+
+src_configure() {
+ econf \
+ --with-perl-shlib="libperl.so" \
+ --with-python-shlib="$(python_get_library)"
+}
+
+src_install() {
+ emake docdir= DESTDIR="${D}" install
+ dodoc README TODO
+}
diff --git a/app-misc/golly/golly-2.5.ebuild b/app-misc/golly/golly-2.5.ebuild
new file mode 100644
index 000000000000..b944dcd7c16e
--- /dev/null
+++ b/app-misc/golly/golly-2.5.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+WX_GTK_VER=2.8
+PYTHON_COMPAT=( python2_7 )
+
+inherit eutils python-single-r1 gnome2-utils wxwidgets
+
+DESCRIPTION="simulator for Conway's Game of Life and other cellular automata"
+HOMEPAGE="http://golly.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-lang/perl
+ sys-libs/zlib
+ x11-libs/wxGTK:${WX_GTK_VER}[X]"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/${P}-src
+ECONF_SOURCE=gui-wx/configure
+
+src_configure() {
+ econf --with-perl-shlib="libperl.so"
+}
+
+src_install() {
+ emake docdir= DESTDIR="${D}" install
+ dodoc docs/ReadMe.html
+ newicon --size 32 gui-wx/icons/appicon.xpm ${PN}.xpm
+ make_desktop_entry ${PN} "Golly" ${PN} "Science"
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/app-misc/golly/golly-2.6.ebuild b/app-misc/golly/golly-2.6.ebuild
new file mode 100644
index 000000000000..b944dcd7c16e
--- /dev/null
+++ b/app-misc/golly/golly-2.6.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+WX_GTK_VER=2.8
+PYTHON_COMPAT=( python2_7 )
+
+inherit eutils python-single-r1 gnome2-utils wxwidgets
+
+DESCRIPTION="simulator for Conway's Game of Life and other cellular automata"
+HOMEPAGE="http://golly.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-lang/perl
+ sys-libs/zlib
+ x11-libs/wxGTK:${WX_GTK_VER}[X]"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/${P}-src
+ECONF_SOURCE=gui-wx/configure
+
+src_configure() {
+ econf --with-perl-shlib="libperl.so"
+}
+
+src_install() {
+ emake docdir= DESTDIR="${D}" install
+ dodoc docs/ReadMe.html
+ newicon --size 32 gui-wx/icons/appicon.xpm ${PN}.xpm
+ make_desktop_entry ${PN} "Golly" ${PN} "Science"
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/app-misc/golly/golly-2.7.ebuild b/app-misc/golly/golly-2.7.ebuild
new file mode 100644
index 000000000000..b944dcd7c16e
--- /dev/null
+++ b/app-misc/golly/golly-2.7.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+WX_GTK_VER=2.8
+PYTHON_COMPAT=( python2_7 )
+
+inherit eutils python-single-r1 gnome2-utils wxwidgets
+
+DESCRIPTION="simulator for Conway's Game of Life and other cellular automata"
+HOMEPAGE="http://golly.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-lang/perl
+ sys-libs/zlib
+ x11-libs/wxGTK:${WX_GTK_VER}[X]"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/${P}-src
+ECONF_SOURCE=gui-wx/configure
+
+src_configure() {
+ econf --with-perl-shlib="libperl.so"
+}
+
+src_install() {
+ emake docdir= DESTDIR="${D}" install
+ dodoc docs/ReadMe.html
+ newicon --size 32 gui-wx/icons/appicon.xpm ${PN}.xpm
+ make_desktop_entry ${PN} "Golly" ${PN} "Science"
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/app-misc/golly/metadata.xml b/app-misc/golly/metadata.xml
new file mode 100644
index 000000000000..35b6316a12a6
--- /dev/null
+++ b/app-misc/golly/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>
+ <email>xmw@gentoo.org</email>
+ <name>Michael Weber</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">golly</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/goobook/Manifest b/app-misc/goobook/Manifest
new file mode 100644
index 000000000000..592c4992a3b7
--- /dev/null
+++ b/app-misc/goobook/Manifest
@@ -0,0 +1,2 @@
+DIST goobook-1.8.tar.gz 29231 SHA256 55c48e2c0e2f22743a0096829e4ed0f3e14978df4d30ec6559195c80f9b9be2f SHA512 4a284e334a7389a28a28b5fa40c39d68a5ab891cb59c79fadc12736867fd8eecf073993e5ac017e577d786e244cb847a76ebe549b226f94cb4c144202203a680 WHIRLPOOL b8071d01433719742663aa15849cc7094ebf8eba5787e32aba84295cd55fd94e5cf6300e2140eb8a4cc6ad45a8b6097d7733ee68909993f81429ad8a6f12b152
+DIST goobook-1.9.tar.gz 29274 SHA256 311cb344d285e8af36dcd4546d3bd499939140287a12b2d509ea6f2535c2b50b SHA512 66d017bfa0fcad39d24b80e454d4d2e97f92a95f6dbf545739b89721b8c44702177a7f656d9cf1f38ac8278f235935afe666047cbfb64733f8deae6838f91d81 WHIRLPOOL 64d79136a126a19baec327de8cee928d4db025b06ad9364954efbe3cc5e9712f0c1539a57bcd73000f989027c46acfff05ddd75db228eade568c9ded189f3f52
diff --git a/app-misc/goobook/goobook-1.8.ebuild b/app-misc/goobook/goobook-1.8.ebuild
new file mode 100644
index 000000000000..b5636229d544
--- /dev/null
+++ b/app-misc/goobook/goobook-1.8.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1 readme.gentoo
+
+DESCRIPTION="Google Contacts wrapper for mutt"
+HOMEPAGE="https://gitlab.com/goobook/goobook"
+SRC_URI="mirror://pypi/g/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}
+ >=dev-python/gdata-2.0.7[${PYTHON_USEDEP}]
+ >=dev-python/hcs-utils-1.3[${PYTHON_USEDEP}]
+ >=dev-python/keyring-0.2[${PYTHON_USEDEP}]
+ >=dev-python/simplejson-2.1.0[${PYTHON_USEDEP}]
+ >=dev-python/httplib2-0.9.1[${PYTHON_USEDEP}]
+ >=dev-python/oauth2client-1.4.11[${PYTHON_USEDEP}]"
+
+DEPEND="${PYTHON_DEPS}
+ dev-python/setuptools"
+
+src_install() {
+ distutils-r1_src_install
+ readme.gentoo_create_doc
+}
+
+FORCE_PRINT_ELOG=1 # remove in the next bump
+DISABLE_AUTOFORMATTING=1
+DOC_CONTENTS="
+To setup initial authentication, execute:
+
+~ $ goobook authenticate
+
+If you want to use goobook from mutt, add this in your .muttrc file:
+ set query_command=\"goobook query '%s'\"
+to query address book.
+
+You may find more information and advanced configuration tips at
+http://pypi.python.org/pypi/${PN}/${PV} in \"Configure/Mutt\" section"
diff --git a/app-misc/goobook/goobook-1.9.ebuild b/app-misc/goobook/goobook-1.9.ebuild
new file mode 100644
index 000000000000..b5636229d544
--- /dev/null
+++ b/app-misc/goobook/goobook-1.9.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1 readme.gentoo
+
+DESCRIPTION="Google Contacts wrapper for mutt"
+HOMEPAGE="https://gitlab.com/goobook/goobook"
+SRC_URI="mirror://pypi/g/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}
+ >=dev-python/gdata-2.0.7[${PYTHON_USEDEP}]
+ >=dev-python/hcs-utils-1.3[${PYTHON_USEDEP}]
+ >=dev-python/keyring-0.2[${PYTHON_USEDEP}]
+ >=dev-python/simplejson-2.1.0[${PYTHON_USEDEP}]
+ >=dev-python/httplib2-0.9.1[${PYTHON_USEDEP}]
+ >=dev-python/oauth2client-1.4.11[${PYTHON_USEDEP}]"
+
+DEPEND="${PYTHON_DEPS}
+ dev-python/setuptools"
+
+src_install() {
+ distutils-r1_src_install
+ readme.gentoo_create_doc
+}
+
+FORCE_PRINT_ELOG=1 # remove in the next bump
+DISABLE_AUTOFORMATTING=1
+DOC_CONTENTS="
+To setup initial authentication, execute:
+
+~ $ goobook authenticate
+
+If you want to use goobook from mutt, add this in your .muttrc file:
+ set query_command=\"goobook query '%s'\"
+to query address book.
+
+You may find more information and advanced configuration tips at
+http://pypi.python.org/pypi/${PN}/${PV} in \"Configure/Mutt\" section"
diff --git a/app-misc/goobook/metadata.xml b/app-misc/goobook/metadata.xml
new file mode 100644
index 000000000000..20b50d5355b8
--- /dev/null
+++ b/app-misc/goobook/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>proxy-maintainers</herd>
+ <maintainer>
+ <email>fabiano.francesconi@gmail.com</email>
+ <name>Fabiano Francesconi</name>
+ <description>Maintainer. Assign bugs to him</description>
+ </maintainer>
+ <longdescription lang="en">
+ </longdescription>
+ <upstream>
+ <remote-id type="pypi">goobook</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/gourmet/Manifest b/app-misc/gourmet/Manifest
new file mode 100644
index 000000000000..6f83468fbd51
--- /dev/null
+++ b/app-misc/gourmet/Manifest
@@ -0,0 +1 @@
+DIST gourmet-0.17.4.tar.gz 8487830 SHA256 13edd3b9c3a3507d20b80cff0f88183ac7979b720e7577290815ffacca097fe3 SHA512 54010a5527f33e08b38d0fdf143cc4528e8ccc65ccad3253074135212751c3bc4385ba5f721327268f455bf85ff6f248e56ebfa1b98933a4ee061983eb9daa4e WHIRLPOOL 9f0f795ee405c0e72587451cbe5b6b72d5d35df2697f55325879c6841a39110773a4837f93b7823e4c0f64a48feb7b192a76cb6c7cc91f8bcd1bf40e9a065105
diff --git a/app-misc/gourmet/files/desktop-entry.patch b/app-misc/gourmet/files/desktop-entry.patch
new file mode 100644
index 000000000000..b79aa5f7b770
--- /dev/null
+++ b/app-misc/gourmet/files/desktop-entry.patch
@@ -0,0 +1,10 @@
+--- gourmet.desktop.in
++++ gourmet.desktop.in
+@@ -4,6 +4,6 @@ _Comment=Organize recipes, create shopping lists, calculate nutritional informat
+ Exec=gourmet
+ Terminal=false
+ Type=Application
+-Categories=GNOME;Application;Utility;
++Categories=GNOME;Utility;
+ StartupNotify=true
+ Icon=gourmet
diff --git a/app-misc/gourmet/files/gourmet-0.16.1-PIL-png.patch b/app-misc/gourmet/files/gourmet-0.16.1-PIL-png.patch
new file mode 100644
index 000000000000..2ddbd553222f
--- /dev/null
+++ b/app-misc/gourmet/files/gourmet-0.16.1-PIL-png.patch
@@ -0,0 +1,29 @@
+From 4eb110bbbc58af97fd6994b96d9482783037058d Mon Sep 17 00:00:00 2001
+From: Bernhard Reiter <ockham@raz.or.at>
+Date: Wed, 13 Nov 2013 15:24:09 +0100
+Subject: [PATCH] Fix another PIL import.
+
+Reported at https://answers.launchpad.net/gourmet/+question/238352#comment-6
+---
+ gourmet/gtk_extras/thumbnail.py | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/gourmet/gtk_extras/thumbnail.py b/gourmet/gtk_extras/thumbnail.py
+index d096126..ea7e72c 100644
+--- a/gourmet/gtk_extras/thumbnail.py
++++ b/gourmet/gtk_extras/thumbnail.py
+@@ -81,7 +81,10 @@ def create_thumbnail (path, thumbpath, uri, type="large"):
+ info['Software']='Gourmet Recipe Manager'
+ info['URI']=str(uri)
+ # now we must create our image guy
+- import PngImagePlugin
++ try:
++ from PIL import PngImagePlugin
++ except ImportError:
++ import PngImagePlugin
+ pnginfo = PngImagePlugin.PngInfo()
+
+ for k,v in info.items():
+--
+1.8.4
+
diff --git a/app-misc/gourmet/files/gourmet-0.16.1-pictures-dir.patch b/app-misc/gourmet/files/gourmet-0.16.1-pictures-dir.patch
new file mode 100644
index 000000000000..5c2bc3161baa
--- /dev/null
+++ b/app-misc/gourmet/files/gourmet-0.16.1-pictures-dir.patch
@@ -0,0 +1,13 @@
+--- gourmet/gtk_extras/dialog_extras.py 2013-10-31 09:03:08.456469166 -0500
++++ gourmet/gtk_extras/dialog_extras.py 2013-10-31 09:04:18.175067008 -0500
+@@ -1096,7 +1096,9 @@
+ buttons=None
+ ):
+ FileSelectorDialog.__init__(self, title, filename, filters, action, set_filter, buttons)
+- self.fsd.set_current_folder(get_user_special_dir(USER_DIRECTORY_PICTURES))
++ pictures_dir = get_user_special_dir(USER_DIRECTORY_PICTURES)
++ if not pictures_dir == None:
++ self.fsd.set_current_folder(pictures_dir)
+
+ def post_dialog (self):
+ self.preview = gtk.Image()
diff --git a/app-misc/gourmet/files/no-docs-0.17.0.patch b/app-misc/gourmet/files/no-docs-0.17.0.patch
new file mode 100644
index 000000000000..9002a2ef3384
--- /dev/null
+++ b/app-misc/gourmet/files/no-docs-0.17.0.patch
@@ -0,0 +1,10 @@
+--- setup.py 2014-03-02 14:56:56.090600468 -0500
++++ setup.py 2014-03-02 14:57:00.184465687 -0500
+@@ -141,7 +141,6 @@
+
+ files.extend(data_files)
+ files.extend([(os.path.join(base,'ui'), glob.glob(os.path.join('ui','*.ui')))])
+- files.extend([(os.path.join('share','doc','gourmet'), ['FAQ', 'LICENSE'])])
+
+ return files
+
diff --git a/app-misc/gourmet/files/no-docs.patch b/app-misc/gourmet/files/no-docs.patch
new file mode 100644
index 000000000000..0a2aa7eeec41
--- /dev/null
+++ b/app-misc/gourmet/files/no-docs.patch
@@ -0,0 +1,10 @@
+--- setup.py 2013-03-16 15:26:19.760162984 -0400
++++ setup.py 2013-03-16 15:26:26.966497095 -0400
+@@ -119,7 +119,6 @@
+
+ files.extend(data_files)
+ files.extend([(os.path.join(base,'ui'), glob.glob(os.path.join('ui','*.ui')))])
+- files.extend([(os.path.join('share','doc','gourmet'), ['FAQ', 'LICENSE'])])
+ #print 'DATA FILES:',files
+ return files
+
diff --git a/app-misc/gourmet/files/nutritional-db-fix.patch b/app-misc/gourmet/files/nutritional-db-fix.patch
new file mode 100644
index 000000000000..4779551c89d8
--- /dev/null
+++ b/app-misc/gourmet/files/nutritional-db-fix.patch
@@ -0,0 +1,29 @@
+--- gourmet/plugins/nutritional_information/data_plugin.py 2013-08-28 19:13:38.000000000 -0400
++++ gourmet/plugins/nutritional_information/data_plugin.py 2013-10-30 23:37:51.358616037 -0400
+@@ -20,7 +20,7 @@
+ pass
+ self.db._setup_object_for_table(self.db.usda_weights_table, UsdaWeight)
+
+- def setup_nutrition_conversions_table (self):
++ def setup_nutritionconversions_table (self):
+ self.db.nutritionconversions_table = Table('nutritionconversions',self.db.metadata,
+ Column('id',Integer(),primary_key=True),
+ Column('ingkey',String(length=255),**{}),
+@@ -58,7 +58,7 @@
+
+ self.setup_usda_weights_table()
+ self.setup_nutritionaliases_table()
+- self.setup_nutrition_conversions_table()
++ self.setup_nutritionconversions_table()
+ self.db.do_add_nutrition = self.do_add_nutrition
+
+ def update_version (self, gourmet_stored, plugin_stored, gourmet_current, plugin_current):
+@@ -68,7 +68,7 @@
+ print 'RECREATE USDA WEIGHTS TABLE'
+ self.db.alter_table('usda_weights',self.setup_usda_weights_table,{},
+ [name for lname,name,typ in parser_data.WEIGHT_FIELDS])
+- self.db.alter_table('nutritionconversions',self.setup_nutrition_conversions_table,{},
++ self.db.alter_table('nutritionconversions',self.setup_nutritionconversions_table,{},
+ ['ingkey','unit','factor'])
+ if plugin_stored == '1':
+ # Add choline
diff --git a/app-misc/gourmet/gourmet-0.17.4.ebuild b/app-misc/gourmet/gourmet-0.17.4.ebuild
new file mode 100644
index 000000000000..26ebce155998
--- /dev/null
+++ b/app-misc/gourmet/gourmet-0.17.4.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="sqlite"
+# Parallel builds fail when building translations
+DISTUTILS_NO_PARALLEL_BUILD=1
+
+inherit distutils-r1
+
+DESCRIPTION="Recipe Organizer and Shopping List Generator for Gnome"
+HOMEPAGE="http://thinkle.github.com/gourmet/"
+SRC_URI="https://github.com/thinkle/gourmet/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="-i18n -ipython pdf print spell sound web"
+
+RDEPEND=">=dev-python/pygtk-2.22.0:2[${PYTHON_USEDEP}]
+ >=dev-python/sqlalchemy-0.7.9-r1[${PYTHON_USEDEP}]
+ virtual/python-imaging[${PYTHON_USEDEP}]
+ i18n? ( dev-python/elib-intl[${PYTHON_USEDEP}] )
+ ipython? ( >=dev-python/ipython-0.13.2[${PYTHON_USEDEP}] )
+ pdf? ( >=dev-python/reportlab-2.6[${PYTHON_USEDEP}]
+ >=dev-python/python-poppler-0.12.1-r4[${PYTHON_USEDEP}] )
+ print? ( >=dev-python/reportlab-2.6[${PYTHON_USEDEP}]
+ >=dev-python/python-poppler-0.12.1-r4[${PYTHON_USEDEP}] )
+ spell? ( >=dev-python/gtkspell-python-2.25.3-r1[${PYTHON_USEDEP}] )
+ sound? ( >=dev-python/gst-python-0.10.22-r1:0.10[${PYTHON_USEDEP}] )
+ web? ( >=dev-python/beautifulsoup-3.2.1-r1:python-2[${PYTHON_USEDEP}] )"
+DEPEND="${RDEPEND}
+ dev-util/intltool
+ >=dev-python/python-distutils-extra-2.37-r1[${PYTHON_USEDEP}]"
+
+PATCHES=( ${FILESDIR}/no-docs-0.17.0.patch )
+DOCS=( ChangeLog CODING.md FAQ README.md TESTS TODO.md )
+
+python_prepare_all() {
+ # Modify these lines before copying them out
+ sed -i "s:base_dir = '..':base_dir = '/usr/share':" gourmet/settings.py || die
+ sed -i 's:data_dir = os.path.join(base_dir, "gourmet", "data"):data_dir = os.path.join(base_dir, "gourmet"):' gourmet/settings.py || die
+ sed -i 's:\(icon_base = os.path.join(data_dir,\) "icons",:\1 "gourmet",:' gourmet/settings.py || die
+ sed -i 's:\(locale_base = os.path.join(base_dir, "gourmet",\) "build",:\1:' gourmet/settings.py || die
+ sed -i 's:\(plugin_base = os.path.join(base_dir,\) "gourmet", "build", "share",:\1:' gourmet/settings.py || die
+ distutils-r1_python_prepare_all
+}
+
+python_prepare() {
+ distutils-r1_python_prepare
+ sed -i "s:\(lib_dir = \)'../gourmet':\1'$(python_get_sitedir)':" gourmet/settings.py || die
+}
+
+src_install() {
+ distutils-r1_src_install
+ doman gourmet.1
+}
diff --git a/app-misc/gourmet/metadata.xml b/app-misc/gourmet/metadata.xml
new file mode 100644
index 000000000000..0eef08b5197a
--- /dev/null
+++ b/app-misc/gourmet/metadata.xml
@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>nixphoeni@gentoo.org</email>
+ <name>Joe Sapp</name>
+ </maintainer>
+ <longdescription>
+ Gourmet Recipe Manager is an application to store, organize
+ and search recipes. Gourmet also makes it easy to create
+ shopping lists from recipes. Gourmet imports recipes from a
+ number of sources, including MealMaster and MasterCook
+ archives and several popular websites. Gourmet can export
+ recipes as text, MealMaster files, HTML web pages, PDF, and
+ a custom XML format for exchange with other Gourmet users.
+ Gourmet supports linking images with recipes.
+ </longdescription>
+ <upstream>
+ <maintainer>
+ <email>Thomas_Hinkle@alumni.brown.edu</email>
+ <name>Thomas Mills Hinkle</name>
+ </maintainer>
+ <maintainer>
+ <email>ockham@raz.or.at</email>
+ <name>Bernhard Reiter</name>
+ </maintainer>
+ <bugs-to>https://github.com/thinkle/gourmet/issues</bugs-to>
+ <remote-id type="github">thinkle/gourmet</remote-id>
+ </upstream>
+ <use>
+ <flag name='i18n'>
+ <pkg>&gt;app-misc/gourmet-0.16</pkg>
+ Enable support for i18n through elib.intl
+ </flag>
+ <flag name='ipython'>
+ <pkg>&gt;app-misc/gourmet-0.16</pkg>
+ Enable support for the interactive Python console plugin
+ </flag>
+ <flag name='pdf'>Enable export to PDF</flag>
+ <flag name='print'>
+ <pkg>&gt;app-misc/gourmet-0.16</pkg>
+ Enable pretty Python printing
+ </flag>
+ <flag name='spell'>
+ <pkg>&gt;app-misc/gourmet-0.16</pkg>
+ Enable support for the spell check plugin
+ </flag>
+ <flag name='web'>
+ <pkg>&gt;app-misc/gourmet-0.16</pkg>
+ Enable support for the web import plugin
+ </flag>
+ </use>
+</pkgmetadata>
diff --git a/app-misc/grabcartoons/files/2.8.4-fix-install-paths.patch b/app-misc/grabcartoons/files/2.8.4-fix-install-paths.patch
new file mode 100644
index 000000000000..420640b3de6c
--- /dev/null
+++ b/app-misc/grabcartoons/files/2.8.4-fix-install-paths.patch
@@ -0,0 +1,32 @@
+diff --git a/Makefile b/Makefile
+index a1f53e6..0a9bec4 100644
+--- a/Makefile
++++ b/Makefile
+@@ -23,9 +23,9 @@ all:
+
+ install:
+ mkdir -p -m 755 $(PREFIX)/bin
+- mkdir -p -m 755 $(PREFIX)/lib/grabcartoons/modules
+- install -m 755 grabcartoons.pl $(PREFIX)/bin
+- install -m 644 modules/*.pl $(PREFIX)/lib/grabcartoons/modules
++ mkdir -p -m 755 $(PREFIX)/share/grabcartoons/modules
++ install -m 755 grabcartoons.pl $(PREFIX)/bin/grabcartoons
++ install -m 644 modules/*.pl $(PREFIX)/share/grabcartoons/modules
+
+ test:
+ ./grabcartoons.pl $(V) "$(C)" > "$(OUT)"
+diff --git a/grabcartoons.pl b/grabcartoons.pl
+index cdc4152..d732301 100755
+--- a/grabcartoons.pl
++++ b/grabcartoons.pl
+@@ -38,8 +38,8 @@ $XTRN_CMD="$XTRN_PROG -q -O- $USER_AGENT_CMD";
+ # Where to load cartoon modules from
+ @MODULE_DIRS=("$FindBin::Bin/modules",
+ "$FindBin::RealBin/modules",
+- "$FindBin::Bin/../lib/grabcartoons/modules",
+- "$FindBin::RealBin/../lib/grabcartoons/modules",
++ "$FindBin::Bin/../share/grabcartoons/modules",
++ "$FindBin::RealBin/../share/grabcartoons/modules",
+ "$HOME/.grabcartoons/modules",
+ "$HOME/.grabcartoons",
+ @GRABCARTOONS_DIRS,
diff --git a/app-misc/grabcartoons/grabcartoons-2.8.4_p20141112.ebuild b/app-misc/grabcartoons/grabcartoons-2.8.4_p20141112.ebuild
new file mode 100644
index 000000000000..370741d5813e
--- /dev/null
+++ b/app-misc/grabcartoons/grabcartoons-2.8.4_p20141112.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils git-r3
+
+DESCRIPTION="Comic-summarizing utility"
+HOMEPAGE="http://zzamboni.org/grabcartoons"
+
+EGIT_REPO_URI="https://github.com/zzamboni/grabcartoons.git"
+
+if [[ "${PV}" != "9999" ]] ; then
+ KEYWORDS="~amd64 ~x86"
+ EGIT_COMMIT="cb230f01fb288a0b9f0fc437545b97d06c846bd3"
+fi
+
+LICENSE="BSD"
+SLOT="0"
+
+RDEPEND="dev-lang/perl
+ virtual/perl-Getopt-Long"
+
+# Opens a web page, which is unacceptable during an emerge.
+RESTRICT="test"
+
+src_prepare() {
+ epatch "${FILESDIR}"/2.8.4-fix-install-paths.patch
+}
+
+src_install() {
+ emake PREFIX="${ED}"/usr install
+ dodoc ChangeLog README
+}
diff --git a/app-misc/grabcartoons/grabcartoons-9999.ebuild b/app-misc/grabcartoons/grabcartoons-9999.ebuild
new file mode 100644
index 000000000000..6917a5f5ee6f
--- /dev/null
+++ b/app-misc/grabcartoons/grabcartoons-9999.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils git-r3
+
+DESCRIPTION="Comic-summarizing utility"
+HOMEPAGE="http://zzamboni.org/grabcartoons"
+
+EGIT_REPO_URI="https://github.com/zzamboni/grabcartoons.git"
+
+if [[ "${PV}" != "9999" ]] ; then
+ KEYWORDS="~amd64 ~x86"
+ #EGIT_COMMIT=""
+fi
+
+LICENSE="BSD"
+SLOT="0"
+
+RDEPEND="dev-lang/perl
+ virtual/perl-Getopt-Long"
+
+# Opens a web page, which is unacceptable during an emerge.
+RESTRICT="test"
+
+src_prepare() {
+ epatch "${FILESDIR}"/2.8.4-fix-install-paths.patch
+}
+
+src_install() {
+ emake PREFIX="${ED}"/usr install
+ dodoc ChangeLog README
+}
diff --git a/app-misc/grabcartoons/metadata.xml b/app-misc/grabcartoons/metadata.xml
new file mode 100644
index 000000000000..effbbf33eac8
--- /dev/null
+++ b/app-misc/grabcartoons/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><email>maintainer-needed@gentoo.org</email></maintainer>
+</pkgmetadata>
diff --git a/app-misc/gramps/Manifest b/app-misc/gramps/Manifest
new file mode 100644
index 000000000000..39006df3a5fd
--- /dev/null
+++ b/app-misc/gramps/Manifest
@@ -0,0 +1,2 @@
+DIST gramps-3.4.5.tar.gz 10444188 SHA256 940b665a2e0dadf7ee310bdd1a1033c20816c856df8a7d6c4e0850a60471dbc7 SHA512 c9b517f58712d9f585dbddcb394d3605a5f823950a8c3c5a4ffd20d1a8523d6b75f9b6193271adabe76edc073dd6b4c20811de62582a2930b84d88922b4e52b3 WHIRLPOOL 4e30108881900883a4cb3c3ee4c9ef78e04d0850c3dbdaf97569f44cdfb2e56463f3f156f041b4dec6650c722f12cc0909689edc9591c97c5b02b1705860c228
+DIST gramps-3.4.9.tar.gz 10190446 SHA256 402a8616efeda730d10941690edb6dfb2719c3f7383e376a404577412676a8f3 SHA512 f15481b3791a98568a0a7f734ef5eb9a1149cf76c5e83f1270eee41bcf3518713391cb271a54177e6e6bbaf78da098d7a7a2a807266c971c1331dbb9d29d5fbb WHIRLPOOL 834777cb20ee7a3ef7a2397eef5a0e70caab02666cf127ba01f6310ac68463ea67733883cd3ca63676b9541dc104da818986d7b249950ae6a30415f5fa1bddee
diff --git a/app-misc/gramps/files/gramps-3.4.0-use_bsddb3.patch b/app-misc/gramps/files/gramps-3.4.0-use_bsddb3.patch
new file mode 100644
index 000000000000..6815ef6ef1f0
--- /dev/null
+++ b/app-misc/gramps/files/gramps-3.4.0-use_bsddb3.patch
@@ -0,0 +1,11 @@
+--- src/config.py.orig 2012-06-02 07:05:21.479670747 +0200
++++ src/config.py 2012-06-02 07:05:58.444713800 +0200
+@@ -302,7 +302,7 @@
+ register('preferences.use-last-view', True)
+ register('preferences.last-view', '')
+ register('preferences.last-views', [])
+-register('preferences.use-bsddb3', False)
++register('preferences.use-bsddb3', True)
+ register('preferences.family-relation-type', 3) # UNKNOWN
+
+ register('researcher.researcher-addr', '')
diff --git a/app-misc/gramps/gramps-3.4.5-r1.ebuild b/app-misc/gramps/gramps-3.4.5-r1.ebuild
new file mode 100644
index 000000000000..f35d5395ac95
--- /dev/null
+++ b/app-misc/gramps/gramps-3.4.5-r1.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+GCONF_DEBUG="no"
+
+inherit eutils gnome2 python-single-r1
+
+DESCRIPTION="Genealogical Research and Analysis Management Programming System"
+HOMEPAGE="http://www.gramps-project.org/"
+SRC_URI="mirror://sourceforge/gramps/Stable/${PV}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+
+IUSE="gnome reports spell webkit"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}
+ dev-python/bsddb3[${PYTHON_USEDEP}]
+ >=dev-python/pygtk-2.16.0[${PYTHON_USEDEP}]
+ dev-python/pygoocanvas[${PYTHON_USEDEP}]
+ x11-misc/xdg-utils
+ gnome-base/librsvg:2
+ gnome? (
+ dev-python/libgnome-python[${PYTHON_USEDEP}]
+ dev-python/gconf-python[${PYTHON_USEDEP}] )
+ spell? ( dev-python/gtkspell-python[${PYTHON_USEDEP}] )
+ reports? ( media-gfx/graphviz )
+ webkit? ( dev-python/pywebkitgtk[${PYTHON_USEDEP}] )
+"
+DEPEND="${RDEPEND}
+ dev-util/intltool
+ sys-devel/gettext
+ virtual/libiconv
+ virtual/pkgconfig
+"
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-3.4.0-use_bsddb3.patch"
+
+ # Fix install path, bug 423315 for example
+ einfo "Fix installation path"
+ find . -iname 'Makefile.in' | xargs \
+ sed "s;\(pkgdatadir = \)\(\$(datadir)\);\1$(python_get_sitedir);" -i \
+ || die
+ find . -iname 'Makefile.in' | xargs \
+ sed "s;\(pkgpythondir = \)\(\$(datadir)\);\1$(python_get_sitedir);" -i \
+ || die
+
+ sed "s;\$(prefix)/share/gramps;/$(python_get_sitedir)/@PACKAGE@;" \
+ -i src/Makefile.in || die
+
+ sed "s;\$(prefix)/share/gramps;/$(python_get_sitedir)/@PACKAGE@;" \
+ -i src/docgen/Makefile.in || die
+
+ einfo "Fix wrapper script"
+ sed "s;@datadir@;$(python_get_sitedir);" \
+ -i gramps.sh.in || die
+
+ einfo "Fix icon location"
+ sed "s;gramps/;pixmap/;g" -i data/gramps.keys.in || die
+
+ python_fix_shebang .
+
+ gnome2_src_prepare
+}
+
+src_configure() {
+ gnome2_src_configure \
+ --disable-mime-install \
+ PYTHON="${EROOT}"/usr/bin/python2
+}
diff --git a/app-misc/gramps/gramps-3.4.9.ebuild b/app-misc/gramps/gramps-3.4.9.ebuild
new file mode 100644
index 000000000000..487be35d554c
--- /dev/null
+++ b/app-misc/gramps/gramps-3.4.9.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+GCONF_DEBUG="no"
+
+inherit eutils gnome2 python-single-r1
+
+DESCRIPTION="Genealogical Research and Analysis Management Programming System"
+HOMEPAGE="http://www.gramps-project.org/"
+SRC_URI="mirror://sourceforge/gramps/Stable/${PV}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+IUSE="gnome reports spell webkit"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}
+ dev-python/bsddb3[${PYTHON_USEDEP}]
+ dev-python/pygoocanvas[${PYTHON_USEDEP}]
+ >=dev-python/pygtk-2.16.0[${PYTHON_USEDEP}]
+ gnome-base/librsvg:2
+ sci-geosciences/osm-gps-map
+ x11-misc/xdg-utils
+ gnome? (
+ dev-python/gconf-python[${PYTHON_USEDEP}]
+ dev-python/libgnome-python[${PYTHON_USEDEP}]
+ )
+ spell? ( dev-python/gtkspell-python[${PYTHON_USEDEP}] )
+ reports? ( media-gfx/graphviz )
+ webkit? ( dev-python/pywebkitgtk[${PYTHON_USEDEP}] )
+"
+DEPEND="${RDEPEND}
+ dev-util/intltool
+ sys-devel/gettext
+ virtual/libiconv
+ virtual/pkgconfig
+"
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-3.4.0-use_bsddb3.patch"
+
+ # Fix install path, bug 423315 for example
+ einfo "Fix installation path"
+ find . -iname 'Makefile.in' | xargs \
+ sed "s;\(pkgdatadir = \)\(\$(datadir)\);\1$(python_get_sitedir);" -i \
+ || die
+ find . -iname 'Makefile.in' | xargs \
+ sed "s;\(pkgpythondir = \)\(\$(datadir)\);\1$(python_get_sitedir);" -i \
+ || die
+
+ sed "s;\$(prefix)/share/gramps;/$(python_get_sitedir)/@PACKAGE@;" \
+ -i src/Makefile.in || die
+
+ sed "s;\$(prefix)/share/gramps;/$(python_get_sitedir)/@PACKAGE@;" \
+ -i src/docgen/Makefile.in || die
+
+ einfo "Fix wrapper script"
+ sed "s;@datadir@;$(python_get_sitedir);" \
+ -i gramps.sh.in || die
+
+ einfo "Fix icon location"
+ sed "s;gramps/;pixmap/;g" -i data/gramps.keys.in || die
+
+ python_fix_shebang .
+
+ gnome2_src_prepare
+}
+
+src_configure() {
+ gnome2_src_configure \
+ --disable-mime-install \
+ PYTHON="${EROOT}"/usr/bin/python2
+}
diff --git a/app-misc/gramps/metadata.xml b/app-misc/gramps/metadata.xml
new file mode 100644
index 000000000000..37cc4dfa2abf
--- /dev/null
+++ b/app-misc/gramps/metadata.xml
@@ -0,0 +1,99 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>fauli@gentoo.org</email>
+ <name>Christian Faulhammer</name>
+ </maintainer>
+ <longdescription lang="en">
+GRAMPS helps you track your family tree. It allows you to store, edit,
+and research genealogical data. GRAMPS attempts to provide all of the
+common capabilities of other genealogical programs, but, more
+importantly, to provide an additional capability of integration not
+common to these programs. This is the ability to input any bits and
+pieces of information directly into GRAMPS and rearrange/manipulate
+any/all data events in the entire data base (in any order or sequence)
+to assist the user in doing research, analysis and correlation with
+the potential of filling relationship gaps.
+</longdescription>
+ <longdescription lang="cs">
+GRAMPS Vám pomůže sledovat Váš rodokmen. Dovolí Vám využít počítač pro
+ukládání, úpravy a zkoumání genealogických dat.
+
+GRAMPS se snaží nabídnout všechny vlastnosti obvyklé u jiných
+dostupných genealogických programů. Oproti nim však poskytuje další
+možnosti integrace, které u těchto programů nejsou běžné. Je to
+možnost vložit jakýkoli kus informace přímo do GRAMPS a
+přeskupit/manipulovat jednotlivými/všemi událostmi v celé
+databázi. Tím pomáhá badateli při výzkumu, analýze a korelacích s
+potenciálem zaplnění mezer ve vztazích mezi subjekty.
+</longdescription>
+ <longdescription lang="de">
+GRAMPS hilft dir, deinen Familienstammbaum zurückzuverfolgen. Es
+erlaubt dir das Speichern, Bearbeiten, und Erforschen genealogischer
+Daten mit deinem Computer. GRAMPS versucht alle möglichen Funktionen,
+die andere genealogische Programme bieten einzubeziehen, aber noch
+viel wichtiger, die Möglichkeit des einfachen Imports fremder Daten zu
+bieten. Das ist die Fähigkeit jedes noch so kleine Detail direkt in
+GRAMPS einzugeben und alle damit verbundenen Daten und Events in der
+gesamten Datenbank neu zu ordnen oder zu manipulieren um die Arbeit
+für den Benutzer zu erleichtern. So können jederzeit potentielle
+Lücken in jeglichen Beziehungen gefüllt werden.
+</longdescription>
+ <longdescription lang="fr">
+GRAMPS vous aide à suivre votre lignée. Il vous permet de stocker,
+éditer, ainsi que rechercher des données généalogiques avec votre
+ordinateur. GRAMPS tente de fournir toutes les capacités communes aux
+autres programmes généalogiques, mais, plus important, fournir des
+capacités supplémentaires non communes à ces programmes. C'est la
+capacité d'entrer toutes parties d'informations directement dans
+GRAMPS et réarranger/manipuler quelques/toutes données événement dans
+la base de données (dans n'importe quel ordre ou séquence) pour
+assiter l'utilisateur dans ses recherches, analyse et corrélation avec
+les relations possibles.
+</longdescription>
+ <longdescription lang="nl">
+GRAMPS laat je toe je familiestamboom op te stellen. Het programma
+laat je toe om je genealogische gegevens op te slaan, te wijzigen en
+genealogisch onderzoek te doen met je computer. GRAMPS probeert om
+bovenover de gebruikelijke mogelijkheden die andere genealogische
+programma's bieden, een verdergaande integratiemogelijkheid te geven
+die die andere programma's niet hebben. Je kan zo alle stukjes en
+gedeelten van informatie rechtstreeks in GRAMPS invoeren en achteraf
+kan je dan deze gegevens bewerken/manipuleren. Dit kan je doen met het
+volledige gegevensbestand( in gelijkwelke volgorde). Zo wordt de
+gebruiker ondersteund in zijn onderzoeken biedt dit een hulp bij
+analyse en de correlatie om zo relatieleemten te kunnen opvullen.
+</longdescription>
+ <longdescription lang="pl">
+GRAMPS pomaga Ci śledzić Twoje drzewo rodzinne. Pozwala Ci wprowadzać,
+edytować i analizować informacje genealogiczne za pomocą
+komputera. GRAMPS próbuje zapewnić wszystkie wspólne cechy innych
+programów genealogicznych, ale, co ważniejsze, dostarczyć Ci
+możliwości w nich nie dostępne. Ma możliwość wprowadzenia każdej
+informacji i wiadomości bezpośrednio do programu i późniejszą analizę
+i zmianę zdarzeń czy pojedynczo, czy grupowo (w dowolnej kolejności) w
+celu pomocy użytkownikowi w analizie, badaniu i korelowaniu
+potencjalnych luk w relacjach w rodzinie.
+</longdescription>
+ <longdescription lang="sl">
+GRAMPS vam pomaga voditi svoj rodovnik. Z njim lahko shranjujete,
+urejate in raziskujete rodoslovne podatke na svojem
+računalniku. Pogram GRAMPS vključuje večino skupnih elementov drugih
+rodoslovnih programov, poleg tega pa omogoča še funkcije, ki jih ti
+programi običajno nimajo. Med njimi sta npr. možnost vnosa
+kakršnegakoli podatka neposredno v GRAMPS ter preurejanje in
+spreminjanje vseh zapisov dogodkov v celotni bazi podatkov (ne glede
+na vrstni red), kar vam bo v pomoč pri vaših raziskavah, analizah in
+zapolnjevanju vrzeli v rodoslovnih podatkih.
+</longdescription>
+ <use>
+ <flag name="reports">All external software that is needed for graphical
+ reports will be installed</flag>
+ <flag name="webkit">Use Webkit-based rendering for geographical
+ data view.</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">gramps</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/granule/Manifest b/app-misc/granule/Manifest
new file mode 100644
index 000000000000..13eb2581c093
--- /dev/null
+++ b/app-misc/granule/Manifest
@@ -0,0 +1 @@
+DIST granule-1.4.0-7.tar.gz 677428 SHA256 356463f586b8b6147a05ab00ca8b5e7f8f85d2ec3981fbb9c0c0c2e2da6f58c9 SHA512 a5e3640c06b573a2bca01a4b893fec7ff363185e121a09c23f99297651518f7745f130b31165c47ee0c603c3ff2f59d996197c4b507edc8487998ddb80cef8b6 WHIRLPOOL 54f13dea2f0aa0a56e5b9f382c9b677d75293b26dce2acc3b6ecfa049844389c53a8dcab3e857220ef24b8bb545ffe3a479c9db520916944686044afe851a6d0
diff --git a/app-misc/granule/files/granule-1.4.0-fix-template-with-permissive.patch b/app-misc/granule/files/granule-1.4.0-fix-template-with-permissive.patch
new file mode 100644
index 000000000000..252c41e77973
--- /dev/null
+++ b/app-misc/granule/files/granule-1.4.0-fix-template-with-permissive.patch
@@ -0,0 +1,15 @@
+Description: Fix build with gcc4.8 and -fpermissive
+Bug-Debian: http://bugs.debian.org/701292
+Last-Update: 2013-08-11
+
+--- granule-1.4.0-7.orig/src/Granule.cpp
++++ granule-1.4.0-7/src/Granule.cpp
+@@ -56,7 +56,7 @@ ASSA_DECL_SINGLETON(Granule);
+
+ static const int TIMEOUT = 2000; // 2 seconds (1,000 mls = 1 sec).
+
+-template <> xmlExternalEntityLoader Granule::m_default_entity_loader = 0;
++xmlExternalEntityLoader Granule::m_default_entity_loader = 0;
+
+ /*******************************************************************************
+ Member Functions
diff --git a/app-misc/granule/granule-1.4.0.ebuild b/app-misc/granule/granule-1.4.0.ebuild
new file mode 100644
index 000000000000..e4cb4d359246
--- /dev/null
+++ b/app-misc/granule/granule-1.4.0.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="2"
+inherit eutils
+
+DESCRIPTION="A flashcard program that implements Leitner cardfile methodology"
+HOMEPAGE="http://granule.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}-7.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND=">=dev-cpp/gtkmm-2.4.1:2.4
+ >=dev-cpp/libassa-3.5.0
+ x11-libs/gtk+:2
+ dev-cpp/glibmm:2
+ >=dev-libs/libsigc++-2.0
+ x11-libs/pango
+ dev-libs/glib:2
+ dev-libs/libxml2"
+DEPEND="${RDEPEND}
+ sys-devel/gettext
+ dev-util/intltool
+ virtual/pkgconfig"
+
+S="${WORKDIR}/${P}-7"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-fix-template-with-permissive.patch
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+ dodoc AUTHORS ChangeLog NEWS README
+}
diff --git a/app-misc/granule/metadata.xml b/app-misc/granule/metadata.xml
new file mode 100644
index 000000000000..a217de5054de
--- /dev/null
+++ b/app-misc/granule/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>
+ <email>angelos@gentoo.org</email>
+ <name>Christoph Mende</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">granule</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/graphlcd-base/Manifest b/app-misc/graphlcd-base/Manifest
new file mode 100644
index 000000000000..fb72c6976164
--- /dev/null
+++ b/app-misc/graphlcd-base/Manifest
@@ -0,0 +1,3 @@
+DIST graphlcd-base-0.1.5.tgz 99863 SHA256 7b11d1e68aa3f9b65ae437e9d6b5bd8bdaba86f7abf93e4ae5ee6b2427b5a47f SHA512 7556c2504726af1ba1889d4a87533f441a4acbc8936f2638710e364e041d67ef471ca363410a7b271f1677fe60377b95dae44237ae0be62c0885f2e92ad4f237 WHIRLPOOL 274a08f56dc48ad030cabcb041a09f41cce68fe8136661ee35a1a19443474ba465576ef654e6c3409814e17d61bfe8dbe0c3de629cff2d6c882285f13c33ae40
+DIST graphlcd-base-0.1.5_utf8.diff.tgz 5040 SHA256 02aeee8f7fcfacf927c86cb9bcb7a67fa5574ad43871938f1e99e618852fbfcb SHA512 ac9cfed725be4a8d04f6898a8e5810a888e4b50c341f9ab668dbb27798007fb66d160ab021729af6083ec1b5e902520602e871cbdd7edefce1e03c06826e9dd7 WHIRLPOOL 1dd8ba284593173efff7b03e70ce80b58d8b03bdb3cb6653ff5f7f885545a41b45407b6f12090f82141cbdb4a1dff2dcf4fa2ce96e5b8294fc050e9716ebedcf
+DIST graphlcd-base-0.1.9.tgz 130390 SHA256 6579e47150e1a9e79fd7866430f4090a50a1c9e0303251012b3fcb433f538fcc SHA512 3769cd31281f40c1cb343a70cba1fee4b27b5ab1454609dca430199b731744d63244ac39d6460c18b236dd1eaaae8284e236c63493b2df23c394ff628f3fb834 WHIRLPOOL 8718c6aecab2036412dcaf962d9725cf2e6052b86bac06b7aff63273cca9363a411b4d4255e14c820216c2e035784f51718e3c8cfd980a7a2a82f4a013358da6
diff --git a/app-misc/graphlcd-base/files/graphlcd-base-0.1.5-gcc43.patch b/app-misc/graphlcd-base/files/graphlcd-base-0.1.5-gcc43.patch
new file mode 100644
index 000000000000..5ec1fa276fae
--- /dev/null
+++ b/app-misc/graphlcd-base/files/graphlcd-base-0.1.5-gcc43.patch
@@ -0,0 +1,312 @@
+diff -NrU5 graphlcd-base-0.1.5.orig/glcddrivers/avrctl.c graphlcd-base-0.1.5/glcddrivers/avrctl.c
+--- graphlcd-base-0.1.5.orig/glcddrivers/avrctl.c 2008-06-15 14:01:50.000000000 +0200
++++ graphlcd-base-0.1.5/glcddrivers/avrctl.c 2008-06-15 14:02:15.000000000 +0200
+@@ -9,10 +9,11 @@
+ * (c) 2005 Andreas Regel <andreas.regel AT powarman.de>
+ */
+
+ #include <stdint.h>
+ #include <syslog.h>
++#include <cstring>
+
+ #include "common.h"
+ #include "config.h"
+ #include "port.h"
+ #include "avrctl.h"
+diff -NrU5 graphlcd-base-0.1.5.orig/glcddrivers/config.c graphlcd-base-0.1.5/glcddrivers/config.c
+--- graphlcd-base-0.1.5.orig/glcddrivers/config.c 2008-06-15 14:01:52.000000000 +0200
++++ graphlcd-base-0.1.5/glcddrivers/config.c 2008-06-15 14:02:15.000000000 +0200
+@@ -9,10 +9,12 @@
+ * (c) 2004 Andreas Regel <andreas.regel AT powarman.de>
+ */
+
+ #include <syslog.h>
+ #include <fstream>
++#include <cstring>
++#include <cstdlib>
+
+ #include "common.h"
+ #include "config.h"
+ #include "drivers.h"
+
+diff -NrU5 graphlcd-base-0.1.5.orig/glcddrivers/framebuffer.c graphlcd-base-0.1.5/glcddrivers/framebuffer.c
+--- graphlcd-base-0.1.5.orig/glcddrivers/framebuffer.c 2008-06-15 14:01:53.000000000 +0200
++++ graphlcd-base-0.1.5/glcddrivers/framebuffer.c 2008-06-15 14:02:15.000000000 +0200
+@@ -14,10 +14,12 @@
+ #include <stdio.h>
+ #include <syslog.h>
+ #include <unistd.h>
+ #include <sys/mman.h>
+ #include <sys/ioctl.h>
++#include <cstdlib>
++#include <cstring>
+
+ #include "common.h"
+ #include "config.h"
+ #include "framebuffer.h"
+
+diff -NrU5 graphlcd-base-0.1.5.orig/glcddrivers/g15daemon.c graphlcd-base-0.1.5/glcddrivers/g15daemon.c
+--- graphlcd-base-0.1.5.orig/glcddrivers/g15daemon.c 2008-06-15 13:47:31.000000000 +0200
++++ graphlcd-base-0.1.5/glcddrivers/g15daemon.c 2008-06-15 14:07:32.000000000 +0200
+@@ -17,10 +17,11 @@
+ #include <sys/ioctl.h>
+ #include <sys/socket.h>
+ #include <poll.h>
+ #include <arpa/inet.h>
+ #include <unistd.h>
++#include <cstring>
+
+ #include "common.h"
+ #include "config.h"
+
+ #include "g15daemon.h"
+diff -NrU5 graphlcd-base-0.1.5.orig/glcddrivers/gu126x64D-K610A4.c graphlcd-base-0.1.5/glcddrivers/gu126x64D-K610A4.c
+--- graphlcd-base-0.1.5.orig/glcddrivers/gu126x64D-K610A4.c 2008-06-15 13:47:31.000000000 +0200
++++ graphlcd-base-0.1.5/glcddrivers/gu126x64D-K610A4.c 2008-06-15 14:08:52.000000000 +0200
+@@ -23,10 +23,12 @@
+
+ #include <errno.h>
+ #include <syslog.h>
+ #include <unistd.h>
+ #include <sys/time.h>
++#include <cstring>
++#include <cstdlib>
+
+ #include "common.h"
+ #include "config.h"
+ #include "gu126x64D-K610A4.h"
+ #include "port.h"
+diff -NrU5 graphlcd-base-0.1.5.orig/glcddrivers/gu140x32f.c graphlcd-base-0.1.5/glcddrivers/gu140x32f.c
+--- graphlcd-base-0.1.5.orig/glcddrivers/gu140x32f.c 2008-06-15 14:01:53.000000000 +0200
++++ graphlcd-base-0.1.5/glcddrivers/gu140x32f.c 2008-06-15 14:02:15.000000000 +0200
+@@ -19,10 +19,11 @@
+
+ #include <errno.h>
+ #include <syslog.h>
+ #include <unistd.h>
+ #include <sys/time.h>
++#include <cstring>
+
+ #include "common.h"
+ #include "config.h"
+ #include "gu140x32f.h"
+ #include "port.h"
+diff -NrU5 graphlcd-base-0.1.5.orig/glcddrivers/gu256x64-372.c graphlcd-base-0.1.5/glcddrivers/gu256x64-372.c
+--- graphlcd-base-0.1.5.orig/glcddrivers/gu256x64-372.c 2008-06-15 14:01:54.000000000 +0200
++++ graphlcd-base-0.1.5/glcddrivers/gu256x64-372.c 2008-06-15 14:02:15.000000000 +0200
+@@ -21,10 +21,11 @@
+
+ #include <errno.h>
+ #include <syslog.h>
+ #include <unistd.h>
+ #include <sys/time.h>
++#include <cstring>
+
+ #include "common.h"
+ #include "config.h"
+ #include "gu256x64-372.h"
+ #include "port.h"
+diff -NrU5 graphlcd-base-0.1.5.orig/glcddrivers/gu256x64-3900.c graphlcd-base-0.1.5/glcddrivers/gu256x64-3900.c
+--- graphlcd-base-0.1.5.orig/glcddrivers/gu256x64-3900.c 2008-06-15 14:01:54.000000000 +0200
++++ graphlcd-base-0.1.5/glcddrivers/gu256x64-3900.c 2008-06-15 14:02:15.000000000 +0200
+@@ -27,10 +27,11 @@
+ #include <fcntl.h>
+ #include <syslog.h>
+ #include <unistd.h>
+ #include <termios.h>
+ #include <sys/time.h>
++#include <cstring>
+
+ #include "common.h"
+ #include "config.h"
+ #include "gu256x64-3900.h"
+ #include "port.h"
+diff -NrU5 graphlcd-base-0.1.5.orig/glcddrivers/hd61830.c graphlcd-base-0.1.5/glcddrivers/hd61830.c
+--- graphlcd-base-0.1.5.orig/glcddrivers/hd61830.c 2008-06-15 13:47:31.000000000 +0200
++++ graphlcd-base-0.1.5/glcddrivers/hd61830.c 2008-06-15 14:03:34.000000000 +0200
+@@ -9,10 +9,11 @@
+ * (c) 2001-2004 Carsten Siebholz <c.siebholz AT t-online.de>
+ */
+
+ #include <syslog.h>
+ #include <sys/time.h>
++#include <cstring>
+
+ #include "common.h"
+ #include "config.h"
+ #include "hd61830.h"
+ #include "port.h"
+diff -NrU5 graphlcd-base-0.1.5.orig/glcddrivers/image.c graphlcd-base-0.1.5/glcddrivers/image.c
+--- graphlcd-base-0.1.5.orig/glcddrivers/image.c 2008-06-15 13:47:31.000000000 +0200
++++ graphlcd-base-0.1.5/glcddrivers/image.c 2008-06-15 14:04:11.000000000 +0200
+@@ -10,10 +10,11 @@
+ * (c) 2004 Andreas Regel <andreas.regel AT powarman.de>
+ */
+
+ #include <stdio.h>
+ #include <syslog.h>
++#include <cstring>
+
+ #include "common.h"
+ #include "config.h"
+ #include "image.h"
+
+diff -NrU5 graphlcd-base-0.1.5.orig/glcddrivers/ks0108.c graphlcd-base-0.1.5/glcddrivers/ks0108.c
+--- graphlcd-base-0.1.5.orig/glcddrivers/ks0108.c 2008-06-15 13:47:31.000000000 +0200
++++ graphlcd-base-0.1.5/glcddrivers/ks0108.c 2008-06-15 14:03:45.000000000 +0200
+@@ -9,10 +9,11 @@
+ * (c) 2003 Andreas 'randy' Weinberger <vdr AT smue.org>
+ */
+
+ #include <syslog.h>
+ #include <sys/time.h>
++#include <cstring>
+
+ #include "common.h"
+ #include "config.h"
+ #include "ks0108.h"
+ #include "port.h"
+diff -NrU5 graphlcd-base-0.1.5.orig/glcddrivers/network.c graphlcd-base-0.1.5/glcddrivers/network.c
+--- graphlcd-base-0.1.5.orig/glcddrivers/network.c 2008-06-15 13:47:31.000000000 +0200
++++ graphlcd-base-0.1.5/glcddrivers/network.c 2008-06-15 14:08:05.000000000 +0200
+@@ -16,10 +16,11 @@
+ #include <sys/types.h>
+ #include <sys/socket.h>
+ #include <netinet/in.h>
+ #include <arpa/inet.h>
+ #include <errno.h>
++#include <cstring>
+
+ #include "common.h"
+ #include "config.h"
+ #include "network.h"
+
+diff -NrU5 graphlcd-base-0.1.5.orig/glcddrivers/noritake800.c graphlcd-base-0.1.5/glcddrivers/noritake800.c
+--- graphlcd-base-0.1.5.orig/glcddrivers/noritake800.c 2008-06-15 13:47:31.000000000 +0200
++++ graphlcd-base-0.1.5/glcddrivers/noritake800.c 2008-06-15 14:07:04.000000000 +0200
+@@ -32,10 +32,11 @@
+
+ #include <errno.h>
+ #include <syslog.h>
+ #include <unistd.h>
+ #include <sys/time.h>
++#include <cstring>
+
+ #include "common.h"
+ #include "config.h"
+ #include "noritake800.h"
+ #include "port.h"
+diff -NrU5 graphlcd-base-0.1.5.orig/glcddrivers/sed1330.c graphlcd-base-0.1.5/glcddrivers/sed1330.c
+--- graphlcd-base-0.1.5.orig/glcddrivers/sed1330.c 2008-06-15 13:47:31.000000000 +0200
++++ graphlcd-base-0.1.5/glcddrivers/sed1330.c 2008-06-15 14:05:55.000000000 +0200
+@@ -17,10 +17,12 @@
+ * (c) 2003 Roland Praml <praml.roland AT t-online.de>
+ */
+
+ #include <syslog.h>
+ #include <sys/time.h>
++#include <cstring>
++#include <cstdlib>
+
+ #include "common.h"
+ #include "config.h"
+ #include "port.h"
+ #include "sed1330.h"
+diff -NrU5 graphlcd-base-0.1.5.orig/glcddrivers/sed1520.c graphlcd-base-0.1.5/glcddrivers/sed1520.c
+--- graphlcd-base-0.1.5.orig/glcddrivers/sed1520.c 2008-06-15 13:47:31.000000000 +0200
++++ graphlcd-base-0.1.5/glcddrivers/sed1520.c 2008-06-15 14:05:31.000000000 +0200
+@@ -9,10 +9,11 @@
+ * (c) 2003 Andreas 'randy' Weinberger <vdr AT smue.org>
+ */
+
+ #include <syslog.h>
+ #include <sys/time.h>
++#include <cstring>
+
+ #include "common.h"
+ #include "config.h"
+ #include "port.h"
+ #include "sed1520.h"
+diff -NrU5 graphlcd-base-0.1.5.orig/glcddrivers/simlcd.c graphlcd-base-0.1.5/glcddrivers/simlcd.c
+--- graphlcd-base-0.1.5.orig/glcddrivers/simlcd.c 2008-06-15 14:01:55.000000000 +0200
++++ graphlcd-base-0.1.5/glcddrivers/simlcd.c 2008-06-15 14:02:15.000000000 +0200
+@@ -11,10 +11,11 @@
+ * (c) 2001-2004 Carsten Siebholz <c.siebholz AT t-online.de>
+ */
+
+ #include <stdio.h>
+ #include <syslog.h>
++#include <cstring>
+
+ #include "common.h"
+ #include "config.h"
+ #include "simlcd.h"
+
+diff -NrU5 graphlcd-base-0.1.5.orig/glcddrivers/t6963c.c graphlcd-base-0.1.5/glcddrivers/t6963c.c
+--- graphlcd-base-0.1.5.orig/glcddrivers/t6963c.c 2008-06-15 13:47:31.000000000 +0200
++++ graphlcd-base-0.1.5/glcddrivers/t6963c.c 2008-06-15 14:06:33.000000000 +0200
+@@ -10,10 +10,12 @@
+ *
+ * (c) 2003, 2004 Andreas Regel <andreas.regel AT powarman.de>
+ */
+
+ #include <syslog.h>
++#include <cstring>
++#include <cstdlib>
+
+ #include "common.h"
+ #include "config.h"
+ #include "port.h"
+ #include "t6963c.h"
+diff -NrU5 graphlcd-base-0.1.5.orig/glcdgraphics/glcd.c graphlcd-base-0.1.5/glcdgraphics/glcd.c
+--- graphlcd-base-0.1.5.orig/glcdgraphics/glcd.c 2008-06-15 14:01:55.000000000 +0200
++++ graphlcd-base-0.1.5/glcdgraphics/glcd.c 2008-06-15 14:02:15.000000000 +0200
+@@ -14,11 +14,11 @@
+
+ #include <stdio.h>
+ #include <stdint.h>
+ #include <syslog.h>
+
+-#include <string>
++#include <cstring>
+
+ #include "bitmap.h"
+ #include "glcd.h"
+ #include "image.h"
+
+diff -NrU5 graphlcd-base-0.1.5.orig/glcdgraphics/pbm.c graphlcd-base-0.1.5/glcdgraphics/pbm.c
+--- graphlcd-base-0.1.5.orig/glcdgraphics/pbm.c 2008-06-15 14:01:55.000000000 +0200
++++ graphlcd-base-0.1.5/glcdgraphics/pbm.c 2008-06-15 14:02:15.000000000 +0200
+@@ -10,12 +10,13 @@
+ */
+
+ #include <stdio.h>
+ #include <stdint.h>
+ #include <syslog.h>
++#include <cstdlib>
+
+-#include <string>
++#include <cstring>
+
+ #include "bitmap.h"
+ #include "pbm.h"
+ #include "image.h"
+
+diff -NrU5 graphlcd-base-0.1.5.orig/tools/convpic/bmp.c graphlcd-base-0.1.5/tools/convpic/bmp.c
+--- graphlcd-base-0.1.5.orig/tools/convpic/bmp.c 2008-06-15 13:47:31.000000000 +0200
++++ graphlcd-base-0.1.5/tools/convpic/bmp.c 2008-06-15 14:09:57.000000000 +0200
+@@ -27,12 +27,12 @@
+ ***************************************************************************/
+
+ #include <stdio.h>
+ #include <stdint.h>
+ #include <string.h>
+-
+-#include <string>
++#include <cstring>
++#include <cstdlib>
+
+ #include <glcdgraphics/bitmap.h>
+ #include <glcdgraphics/image.h>
+
+ #include "bmp.h"
diff --git a/app-misc/graphlcd-base/files/graphlcd-base-0.1.5-nostrip.patch b/app-misc/graphlcd-base/files/graphlcd-base-0.1.5-nostrip.patch
new file mode 100644
index 000000000000..9973394f150b
--- /dev/null
+++ b/app-misc/graphlcd-base/files/graphlcd-base-0.1.5-nostrip.patch
@@ -0,0 +1,75 @@
+remove strip -s in makefile
+
+Joerg Bornkessel <hd_brummy@gentoo.org> 06 April 2007
+diff -Naur graphlcd-base-0.1.5.orig/tools/convpic/Makefile graphlcd-base-0.1.5/tools/convpic/Makefile
+--- graphlcd-base-0.1.5.orig/tools/convpic/Makefile 2007-04-06 20:34:29.000000000 +0200
++++ graphlcd-base-0.1.5/tools/convpic/Makefile 2007-04-06 20:35:17.000000000 +0200
+@@ -36,7 +36,7 @@
+
+ install: $(PRGNAME)
+ install -d $(BINDIR)
+- install -m 755 -o root -g root -s $(PRGNAME) $(BINDIR)
++ install -m 755 -o root -g root $(PRGNAME) $(BINDIR)
+
+ uninstall:
+ rm -f $(BINDIR)/$(PRGNAME)
+diff -Naur graphlcd-base-0.1.5.orig/tools/crtfont/Makefile graphlcd-base-0.1.5/tools/crtfont/Makefile
+--- graphlcd-base-0.1.5.orig/tools/crtfont/Makefile 2007-04-06 20:34:29.000000000 +0200
++++ graphlcd-base-0.1.5/tools/crtfont/Makefile 2007-04-06 20:35:32.000000000 +0200
+@@ -35,7 +35,7 @@
+
+ install: $(PRGNAME)
+ install -d $(BINDIR)
+- install -m 755 -o root -g root -s $(PRGNAME) $(BINDIR)
++ install -m 755 -o root -g root $(PRGNAME) $(BINDIR)
+
+ uninstall:
+ rm -f $(BINDIR)/$(PRGNAME)
+diff -Naur graphlcd-base-0.1.5.orig/tools/genfont/Makefile graphlcd-base-0.1.5/tools/genfont/Makefile
+--- graphlcd-base-0.1.5.orig/tools/genfont/Makefile 2007-04-06 20:34:29.000000000 +0200
++++ graphlcd-base-0.1.5/tools/genfont/Makefile 2007-04-06 20:35:43.000000000 +0200
+@@ -38,7 +38,7 @@
+
+ install: $(PRGNAME)
+ install -d $(BINDIR)
+- install -m 755 -o root -g root -s $(PRGNAME) $(BINDIR)
++ install -m 755 -o root -g root $(PRGNAME) $(BINDIR)
+
+ uninstall:
+ rm -f $(BINDIR)/$(PRGNAME)
+diff -Naur graphlcd-base-0.1.5.orig/tools/lcdtestpattern/Makefile graphlcd-base-0.1.5/tools/lcdtestpattern/Makefile
+--- graphlcd-base-0.1.5.orig/tools/lcdtestpattern/Makefile 2007-04-06 20:34:29.000000000 +0200
++++ graphlcd-base-0.1.5/tools/lcdtestpattern/Makefile 2007-04-06 20:35:57.000000000 +0200
+@@ -36,7 +36,7 @@
+
+ install: $(PRGNAME)
+ install -d $(BINDIR)
+- install -m 755 -o root -g root -s $(PRGNAME) $(BINDIR)
++ install -m 755 -o root -g root $(PRGNAME) $(BINDIR)
+
+ uninstall:
+ rm -f $(BINDIR)/$(PRGNAME)
+diff -Naur graphlcd-base-0.1.5.orig/tools/showpic/Makefile graphlcd-base-0.1.5/tools/showpic/Makefile
+--- graphlcd-base-0.1.5.orig/tools/showpic/Makefile 2007-04-06 20:34:29.000000000 +0200
++++ graphlcd-base-0.1.5/tools/showpic/Makefile 2007-04-06 20:36:09.000000000 +0200
+@@ -36,7 +36,7 @@
+
+ install: $(PRGNAME)
+ install -d $(BINDIR)
+- install -m 755 -o root -g root -s $(PRGNAME) $(BINDIR)
++ install -m 755 -o root -g root $(PRGNAME) $(BINDIR)
+
+ uninstall:
+ rm -f $(BINDIR)/$(PRGNAME)
+diff -Naur graphlcd-base-0.1.5.orig/tools/showtext/Makefile graphlcd-base-0.1.5/tools/showtext/Makefile
+--- graphlcd-base-0.1.5.orig/tools/showtext/Makefile 2007-04-06 20:34:29.000000000 +0200
++++ graphlcd-base-0.1.5/tools/showtext/Makefile 2007-04-06 20:36:21.000000000 +0200
+@@ -36,7 +36,7 @@
+
+ install: $(PRGNAME)
+ install -d $(BINDIR)
+- install -m 755 -o root -g root -s $(PRGNAME) $(BINDIR)
++ install -m 755 -o root -g root $(PRGNAME) $(BINDIR)
+
+ uninstall:
+ rm -f $(BINDIR)/$(PRGNAME)
diff --git a/app-misc/graphlcd-base/graphlcd-base-0.1.5-r1.ebuild b/app-misc/graphlcd-base/graphlcd-base-0.1.5-r1.ebuild
new file mode 100644
index 000000000000..a74905475a7d
--- /dev/null
+++ b/app-misc/graphlcd-base/graphlcd-base-0.1.5-r1.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit eutils flag-o-matic multilib
+
+VERSION="226" # every bump, new version
+
+DESCRIPTION="Graphical LCD Driver"
+HOMEPAGE="http://projects.vdr-developer.org/projects/graphlcd"
+SRC_URI="mirror://vdr-developerorg/${VERSION}/${P}.tgz
+ mirror://vdrfiles/${PN}/${P}_utf8.diff.tgz"
+
+KEYWORDS="amd64 x86 ~ppc"
+SLOT="0"
+LICENSE="GPL-2"
+IUSE="truetype unicode g15"
+
+DEPEND=""
+
+RDEPEND="truetype? ( media-libs/freetype media-fonts/corefonts )
+ unicode? ( media-libs/freetype media-fonts/corefonts )
+ g15? ( app-misc/g15daemon )"
+
+src_unpack() {
+
+ unpack ${A}
+ cd "${S}"
+
+ sed -i Make.config -e "s:usr\/local:usr:" -e "s:FLAGS *=:FLAGS ?=:"
+ epatch "${FILESDIR}/${P}-nostrip.patch"
+ epatch "${FILESDIR}/${P}-gcc43.patch"
+
+ use !truetype && sed -i "s:HAVE_FREETYPE2:#HAVE_FREETYPE2:" Make.config
+
+ use unicode && epatch "${WORKDIR}/${P}_utf8.diff" && \
+ sed -i "s:#HAVE_FREETYPE2:HAVE_FREETYPE2:" Make.config
+}
+
+src_install() {
+
+ make DESTDIR="${D}"/usr LIBDIR="${D}"/usr/$(get_libdir) install || die "make install failed"
+
+ insinto /etc
+ doins graphlcd.conf
+
+ dodoc docs/*
+}
diff --git a/app-misc/graphlcd-base/graphlcd-base-0.1.9.ebuild b/app-misc/graphlcd-base/graphlcd-base-0.1.9.ebuild
new file mode 100644
index 000000000000..b9f72c1307ca
--- /dev/null
+++ b/app-misc/graphlcd-base/graphlcd-base-0.1.9.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit eutils flag-o-matic multilib
+
+VERSION="501" #every bump, new version
+
+DESCRIPTION="Graphical LCD Driver"
+HOMEPAGE="http://projects.vdr-developer.org/projects/show/graphlcd"
+SRC_URI="mirror://vdr-developerorg/${VERSION}/${P}.tgz"
+
+KEYWORDS="~amd64 ~ppc ~x86"
+SLOT="0"
+LICENSE="GPL-2"
+IUSE="g15"
+
+DEPEND="media-libs/freetype"
+RDEPEND="g15? ( app-misc/g15daemon )
+ media-libs/freetype"
+
+src_prepare() {
+ sed -i Make.config -e "s:usr\/local:usr:" -e "s:FLAGS *=:FLAGS ?=:"
+ epatch "${FILESDIR}/${PN}-0.1.5-nostrip.patch"
+
+ sed -i glcdskin/Makefile -e "s:-shared:\$(LDFLAGS) -shared:"
+}
+
+src_install() {
+ emake DESTDIR="${D}"/usr LIBDIR="${D}"/usr/$(get_libdir) install
+
+ insinto /etc
+ doins graphlcd.conf
+
+ dodoc docs/*
+}
diff --git a/app-misc/graphlcd-base/metadata.xml b/app-misc/graphlcd-base/metadata.xml
new file mode 100644
index 000000000000..58564540da14
--- /dev/null
+++ b/app-misc/graphlcd-base/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>
+ <email>vdr@gentoo.org</email>
+ <name>gentoo-vdr-project</name>
+</maintainer>
+<longdescription lang="en">
+ This package provides Graphical LCD Driver.
+</longdescription>
+<use>
+ <flag name='g15'>Add support for <pkg>app-misc/g15daemon</pkg> driver
+ (e.g. Logitech G15 Keybord)</flag>
+</use>
+</pkgmetadata>
diff --git a/app-misc/grc/Manifest b/app-misc/grc/Manifest
new file mode 100644
index 000000000000..7ed9f32136da
--- /dev/null
+++ b/app-misc/grc/Manifest
@@ -0,0 +1 @@
+DIST grc_1.5.tar.gz 26363 SHA256 a2581f065236868bd8b09536616a588792f60fcba4e54d69e2cad65aae73dddc SHA512 6b95a8db5df0d99b49052deb086ac02b180810ce754c744e145e3e0508562fb632e7fdb38ec4ad039f6e998c4122b065ba53925d73268c589475e36c16aa68d7 WHIRLPOOL 1a4ee3612024c95d296772c43c1ed21ebb9e1d50e1fa4af13a6d09a1d63f59ec7f53084b68dbe0b7a4eb1300269ca714d8b972507d671e973b11822e1b4e82a9
diff --git a/app-misc/grc/files/1.0.6-support-more-files.patch b/app-misc/grc/files/1.0.6-support-more-files.patch
new file mode 100644
index 000000000000..57f60a74ae13
--- /dev/null
+++ b/app-misc/grc/files/1.0.6-support-more-files.patch
@@ -0,0 +1,60 @@
+diff -ur grc-1.0.6.orig/conf.gcc grc-1.0.6/conf.gcc
+--- grc-1.0.6.orig/conf.gcc 2004-08-25 23:23:15.898638944 -0400
++++ grc-1.0.6/conf.gcc 2004-08-25 23:26:54.297437280 -0400
+@@ -1,10 +1,10 @@
+ #
+-regexp=\bgcc\b
+-colours=yellow
+-count=more
++regexp=\b(g?cc|[gc]\+\+|g?as|ld)\b
++colours=white bold
++count=once
+ .........
+ #
+-regexp=^.*?:
++regexp=^\S*:
+ colours=red
+ count=once
+ .........
+@@ -12,6 +12,10 @@
+ regexp=\`\w+\'
+ colours=green
+ .........
++# compilation method modifiers
++regexp=\s\-(O\d?|f\S+|pthread|g\S*|c|W\S,\S+)\b
++colours=yellow
++.........
+ # -O
+ regexp=\-O\d
+ colours=green
+@@ -24,10 +28,10 @@
+ # stderr to grcat
+ #
+ # warning
+-regexp=warning
++regexp=[Ww]arning[:\b]
+ colours=yellow
+ .........
+ # error
+-regexp=error
++regexp=[Ee]rror[:\b]
+ colours=red blink
+ count=stop
+diff -ur grc-1.0.6.orig/grc.conf grc-1.0.6/grc.conf
+--- grc-1.0.6.orig/grc.conf 2004-08-25 23:23:15.870643200 -0400
++++ grc-1.0.6/grc.conf 2004-08-25 23:23:57.814266800 -0400
+@@ -15,9 +15,13 @@
+ conf.traceroute
+
+ # gcc command
+-(^|[/\w\.]+/)g?cc\s
++(^|[/\w\.]+/)(g?cc|[gc]\+\+)\s
+ conf.gcc
+
++# configure command
++(^|[/\w\.]+/)configure
++conf.configure
++
+ # make command
+ (^|[/\w\.]+/)g?make\s?
+ conf.gcc
diff --git a/app-misc/grc/files/conf.configure b/app-misc/grc/files/conf.configure
new file mode 100644
index 000000000000..8f26c601eba8
--- /dev/null
+++ b/app-misc/grc/files/conf.configure
@@ -0,0 +1,27 @@
+# cache functions
+regexp=\b(loading|updating|creating) cache\b
+colours=yellow bold
+.........
+# checking
+regexp=\bchecking\s*(for|if|whether|command|how|that)?(\s*to)?\b
+colours=yellow
+.........
+# result is complex
+regexp=\.\.\. .*$
+colours=cyan
+.........
+# check succeeded
+regexp=\.\.\.( \(cached\))? yes$
+colours=blue bold
+.........
+# check did not succeed
+regexp=\.\.\.( \(cached\))? no$
+colours=magenta
+.........
+# ... should be normal
+regexp=\.\.\.
+colours=default
+.........
+# creating stuff
+regexp=\bcreating\b
+colours=green
diff --git a/app-misc/grc/files/grc-1.4-ipv6.patch b/app-misc/grc/files/grc-1.4-ipv6.patch
new file mode 100644
index 000000000000..81945ea42618
--- /dev/null
+++ b/app-misc/grc/files/grc-1.4-ipv6.patch
@@ -0,0 +1,16 @@
+ conf.netstat | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/conf.netstat b/conf.netstat
+index 2dd96e3..ec2779b 100644
+--- a/conf.netstat
++++ b/conf.netstat
+@@ -19,7 +19,7 @@ regexp=^IPX.*[\dABCDEF]+:[\dABCDEF]+
+ colours=green
+ =======
+ # protocols
+-regexp=(^tcp|^udp|^unix|^IPX|STREAM|DGRAM)
++regexp=(^tcp6|^tcp|^udp6|^udp|^unix|^IPX|STREAM|DGRAM)
+ colours=bold blue
+ =======
+ # status
diff --git a/app-misc/grc/files/grc-1.4-support-more-files.patch b/app-misc/grc/files/grc-1.4-support-more-files.patch
new file mode 100644
index 000000000000..d90fe86bb16f
--- /dev/null
+++ b/app-misc/grc/files/grc-1.4-support-more-files.patch
@@ -0,0 +1,53 @@
+--- grc-1.4.orig/conf.gcc
++++ grc-1.4/conf.gcc
+@@ -1,7 +1,7 @@
+ #
+-regexp=\bgcc\b
+-colours=yellow
+-count=more
++regexp=\b(g?cc|[gc]\+\+|g?as|ld)\b
++colours=white bold
++count=once
+ .........
+ #
+ regexp=^[^:\s]*?:\d+:
+@@ -15,6 +15,10 @@
+ regexp=\`[A-Za-z0-9_():&*]+( const)?\'
+ colours=magenta
+ .........
++# compilation method modifiers
++regexp=\s\-(O\d?|f\S+|pthread|g\S*|c|W\S,\S+)\b
++colours=yellow
++.........
+ # -O
+ regexp=\-O\d
+ colours=green
+@@ -27,7 +31,7 @@
+ # stderr to grcat
+ #
+ # warning
+-regexp=warning:.*
++regexp=[Ww]arning[:\b]
+ colours=white
+ .........
+ regexp=warning:
+@@ -35,7 +39,7 @@
+ count=once
+ .........
+ # error
+-regexp=error:.*
++regexp=[Ee]rror[:\b]
+ colours=bold white
+ .........
+ regexp=error:
+--- grc-1.4.orig/grc.conf
++++ grc-1.4/grc.conf
+@@ -19,7 +19,7 @@
+ conf.traceroute
+
+ # gcc command
+-(^|[/\w\.]+/)g?cc\s
++(^|[/\w\.]+/)(g?cc|[gc]\+\+)\s
+ conf.gcc
+
+ # make command
diff --git a/app-misc/grc/grc-1.5.ebuild b/app-misc/grc/grc-1.5.ebuild
new file mode 100644
index 000000000000..8756c16e29fb
--- /dev/null
+++ b/app-misc/grc/grc-1.5.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 pypy )
+
+inherit eutils python-r1
+
+DESCRIPTION="Generic Colouriser beautifies your logfiles or output of commands"
+HOMEPAGE="http://kassiopeia.juls.savba.sk/~garabik/software/grc.html"
+SRC_URI="http://kassiopeia.juls.savba.sk/~garabik/software/${PN}/${P/-/_}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE=""
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${PN}-1.4-support-more-files.patch \
+ "${FILESDIR}"/${PN}-1.4-ipv6.patch
+}
+
+src_install() {
+ python_foreach_impl python_doscript grc grcat
+
+ insinto /usr/share/grc
+ doins conf.* "${FILESDIR}"/conf.*
+
+ insinto /etc
+ doins grc.conf
+
+ dodoc README INSTALL TODO debian/changelog CREDITS
+ doman grc.1 grcat.1
+}
diff --git a/app-misc/grc/metadata.xml b/app-misc/grc/metadata.xml
new file mode 100644
index 000000000000..f23b9cae1593
--- /dev/null
+++ b/app-misc/grc/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>shell-tools</herd>
+</pkgmetadata>
diff --git a/app-misc/gtk-sunlight/Manifest b/app-misc/gtk-sunlight/Manifest
new file mode 100644
index 000000000000..32ca881b9822
--- /dev/null
+++ b/app-misc/gtk-sunlight/Manifest
@@ -0,0 +1 @@
+DIST gtk-sunlight_0.4.2.orig.tar.gz 562581 SHA256 b661fb74b93b194fec9761ffb64594c3b4bf02fced1a51348e3ff64959883f45 SHA512 6490172beeb4c3566a42de858e321cdf83be6852d5c290f75f41d22855d002e8609948164cb757e787a1123a4fe47b69272996ffc821c057b7c6ce8b0b180083 WHIRLPOOL 2626d3a0a324e14e39b95aa82fd853064984055e28f824735d8f8a384e3b16969705b688a761d96c865f93116094571b2b663635f6662382f0da2e9de8d6e17e
diff --git a/app-misc/gtk-sunlight/gtk-sunlight-0.4.2.ebuild b/app-misc/gtk-sunlight/gtk-sunlight-0.4.2.ebuild
new file mode 100644
index 000000000000..220b23be84c8
--- /dev/null
+++ b/app-misc/gtk-sunlight/gtk-sunlight-0.4.2.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit toolchain-funcs
+
+DESCRIPTION="Real-time Sunlight Wallpaper"
+HOMEPAGE="http://realtimesunlightwallpaper.weebly.com/"
+SRC_URI="http://ppa.launchpad.net/realtime.sunlight.wallpaper/rsw/ubuntu/pool/main/g/${PN}/${PN}_${PV}.orig.tar.gz"
+
+LICENSE="GPL-1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="dev-libs/glib:2
+ x11-libs/gtk+:2"
+DEPEND="${REPEND}
+ virtual/pkgconfig"
+
+src_compile() {
+ tc-export CC
+ default
+}
diff --git a/app-misc/gtk-sunlight/metadata.xml b/app-misc/gtk-sunlight/metadata.xml
new file mode 100644
index 000000000000..0f350e3d4d81
--- /dev/null
+++ b/app-misc/gtk-sunlight/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer>
+ <email>xmw@gentoo.org</email>
+ <name>Michael Weber</name>
+</maintainer>
+</pkgmetadata>
diff --git a/app-misc/gtypist/Manifest b/app-misc/gtypist/Manifest
new file mode 100644
index 000000000000..69a7eb28ea46
--- /dev/null
+++ b/app-misc/gtypist/Manifest
@@ -0,0 +1,5 @@
+DIST colemak.typ 8922 SHA256 2bbe1e7b25f85f1dd7eaa469c7996b033e23537c7c475df99da19bd6429a055e SHA512 f2c2816836c83d7b640f7f703a4924c62ff0746e0d4cf2a2ca36d434017770272518b835ea273815c93ab9df1c0e4d142f5fea1e5f0b1484ecdc652a53bdc499 WHIRLPOOL 9cead498b590c46cc5130084f903ab8aaf0efd77c9c36c3ccc3224c0e12a506e177ce581cefcd0e55f140b67c6fe6f19b797e1e1d0b7cbf20c7566fce5921fc7
+DIST gtypist-2.8.5.tar.gz 1148279 SHA256 a58b7551a8ca0dd841d230d519c265e8e448c13f517688e029c8ded011cc9d17 SHA512 2671ac0bd5e8681b090911c0d19a439aef2588bbeaa980aed50252a0e8727f4aae0044d1e4d0f7cbbd946881f4a7fa60fda444a668f3c004e64cf4ed6a33eb7e WHIRLPOOL 1285470f4d33bc2c5a9c61996db0346fe2700e4e85f8963529393ac549a2468ecdebddf0138ed5b4ca6e89e6dc71d869c21ee06d65baedaa2c4bf0e537ece0c8
+DIST gtypist-2.9.1.tar.xz 954920 SHA256 baf8445777fbbb46217863c42d06376f04207b98ffef73885e3d0618550262fb SHA512 dd5d96882c1fa9c786e30d21ab3424be25caecf2850a00edee531ba58aba026efedb12ca8edf34a52033bd0ba28b25ae6a62590e938d7f86124097e7e166e8d9 WHIRLPOOL baae17c47a8d7a5f962fcd9fb5efa64f7346872f4ca439bd34a4fd19d84bdfc7d30cfffcf95de1bafc3fc23f7d468cd3eedd23d86e44f5ac99717e3ea6aab5ae
+DIST gtypist-2.9.2.tar.xz 956252 SHA256 5f27042b080c911c4ea2b252ac893401b0129ae5b98b31edb8e9845656b6135d SHA512 6191735c383aeedf3017f9bcd1897d35b2f40ea9de74e94d5c544708e4eca86585ce11984ace75945ac5b61e0f5b73c0f2461c55a6dd3b5d2833b4ceeee90c3f WHIRLPOOL 0123421bd0939220ee1eab02f246cca1b4785029afd2da9705e8f271da85250b4e344b5be59731abc7a548790bd87a176fdf3f6004f1f7fd813a99a004567bc1
+DIST gtypist-2.9.5.tar.xz 929356 SHA256 c13af40b12479f8219ffa6c66020618c0ce305ad305590fde02d2c20eb9cf977 SHA512 d6891cd58d23f9b023aec97dc825cb15f7371ab18e82133b9a284d3329b1526bda8e1c5d7225f335c5ec673280cbbe3ad92471eeb15db4ecf29e7feffe27e095 WHIRLPOOL 46d53852986cdefe52f24bf91fa12b37e4d48a7d73c9b94fc7cd15a8bb60b89bcd626f6016089cd84cd524d96dfa7ac68adce40548ab0965b9ec9ec96169232f
diff --git a/app-misc/gtypist/files/50gtypist-gentoo.el b/app-misc/gtypist/files/50gtypist-gentoo.el
new file mode 100644
index 000000000000..8d888d4dcd87
--- /dev/null
+++ b/app-misc/gtypist/files/50gtypist-gentoo.el
@@ -0,0 +1,6 @@
+
+;; gtypist site-lisp configuration
+
+(add-to-list 'load-path "@SITELISP@")
+(autoload 'gtypist-mode "gtypist-mode" nil t)
+(add-to-list 'auto-mode-alist '("\\.typ\\'" . gtypist-mode))
diff --git a/app-misc/gtypist/files/gtypist-2.8.3-xemacs-compat.patch b/app-misc/gtypist/files/gtypist-2.8.3-xemacs-compat.patch
new file mode 100644
index 000000000000..166a82c48263
--- /dev/null
+++ b/app-misc/gtypist/files/gtypist-2.8.3-xemacs-compat.patch
@@ -0,0 +1,18 @@
+--- gtypist-2.8.3-orig/tools/gtypist-mode.el 2003-09-28 23:35:22.000000000 +0200
++++ gtypist-2.8.3/tools/gtypist-mode.el 2007-04-21 14:49:16.000000000 +0200
+@@ -95,7 +95,14 @@
+
+ (require 'font-lock)
+ (require 'thingatpt)
+-(require 'executable) ;; executable-find
++
++(eval-and-compile
++ (cond
++ ((fboundp 'executable-find))
++ ((fboundp 'locate-file)
++ (defun executable-find (command)
++ (locate-file command exec-path nil 'executable)))
++ (t (require 'executable))))
+
+ (defvar gtypist-mode-syntax-table nil "Syntax-table for gtypist-mode.")
+ (unless gtypist-mode-syntax-table
diff --git a/app-misc/gtypist/gtypist-2.8.5-r1.ebuild b/app-misc/gtypist/gtypist-2.8.5-r1.ebuild
new file mode 100644
index 000000000000..619ddfd61e8e
--- /dev/null
+++ b/app-misc/gtypist/gtypist-2.8.5-r1.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit eutils elisp-common
+
+DESCRIPTION="Universal typing tutor"
+HOMEPAGE="http://www.gnu.org/software/gtypist/"
+SRC_URI="mirror://gnu/gtypist/${P}.tar.gz
+ http://colemak.com/pub/learn/colemak.typ"
+
+LICENSE="GPL-2 public-domain"
+SLOT="0"
+KEYWORDS="amd64 ppc x86 ~amd64-linux"
+IUSE="nls emacs xemacs"
+
+DEPEND=">=sys-libs/ncurses-5.2
+ emacs? ( virtual/emacs )
+ xemacs? ( !emacs? ( app-editors/xemacs app-xemacs/fsf-compat ) )"
+
+RDEPEND="${DEPEND}"
+
+SITEFILE=50${PN}-gentoo.el
+
+src_unpack() {
+ unpack ${P}.tar.gz
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-2.8.3-xemacs-compat.patch
+}
+
+src_configure() {
+ local lispdir=""
+ if use emacs; then
+ lispdir="${SITELISP}/${PN}"
+ einfo "Configuring to build with GNU Emacs support"
+ elif use xemacs; then
+ lispdir="${EPREFIX}/usr/lib/xemacs/site-packages/lisp/${PN}"
+ einfo "Configuring to build with XEmacs support"
+ fi
+
+ econf $(use_enable nls) \
+ EMACS=$(usev emacs || usev xemacs || echo no) \
+ --with-lispdir="${lispdir}"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ dodoc AUTHORS ChangeLog NEWS README THANKS TODO
+
+ insinto /usr/share/gtypist
+ doins "${DISTDIR}"/colemak.typ
+
+ if use emacs; then
+ 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/app-misc/gtypist/gtypist-2.9.1.ebuild b/app-misc/gtypist/gtypist-2.9.1.ebuild
new file mode 100644
index 000000000000..ae6a1e756b93
--- /dev/null
+++ b/app-misc/gtypist/gtypist-2.9.1.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit eutils elisp-common
+
+DESCRIPTION="Universal typing tutor"
+HOMEPAGE="http://www.gnu.org/software/gtypist/"
+SRC_URI="mirror://gnu/gtypist/${P}.tar.xz
+ http://colemak.com/pub/learn/colemak.typ"
+
+LICENSE="GPL-2 public-domain"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux"
+IUSE="nls emacs xemacs"
+
+DEPEND=">=sys-libs/ncurses-5.2
+ emacs? ( virtual/emacs )
+ xemacs? ( !emacs? ( app-editors/xemacs app-xemacs/fsf-compat ) )"
+
+RDEPEND="${DEPEND}"
+
+SITEFILE=50${PN}-gentoo.el
+
+src_unpack() {
+ unpack ${P}.tar.xz
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-2.8.3-xemacs-compat.patch
+}
+
+src_configure() {
+ local lispdir=""
+ if use emacs; then
+ lispdir="${SITELISP}/${PN}"
+ einfo "Configuring to build with GNU Emacs support"
+ elif use xemacs; then
+ lispdir="${EPREFIX}/usr/lib/xemacs/site-packages/lisp/${PN}"
+ einfo "Configuring to build with XEmacs support"
+ fi
+
+ econf $(use_enable nls) \
+ EMACS=$(usev emacs || usev xemacs || echo no) \
+ --with-lispdir="${lispdir}"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ dodoc AUTHORS ChangeLog NEWS README THANKS TODO
+
+ insinto /usr/share/gtypist
+ doins "${DISTDIR}"/colemak.typ
+
+ if use emacs; then
+ 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/app-misc/gtypist/gtypist-2.9.2.ebuild b/app-misc/gtypist/gtypist-2.9.2.ebuild
new file mode 100644
index 000000000000..618a4910abae
--- /dev/null
+++ b/app-misc/gtypist/gtypist-2.9.2.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit eutils elisp-common
+
+DESCRIPTION="Universal typing tutor"
+HOMEPAGE="http://www.gnu.org/software/gtypist/"
+SRC_URI="mirror://gnu/gtypist/${P}.tar.xz
+ http://colemak.com/pub/learn/colemak.typ"
+
+LICENSE="GPL-2 public-domain"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux"
+IUSE="nls emacs xemacs"
+
+DEPEND=">=sys-libs/ncurses-5.2
+ emacs? ( virtual/emacs )
+ xemacs? ( !emacs? ( app-editors/xemacs app-xemacs/fsf-compat ) )"
+
+RDEPEND="${DEPEND}"
+
+SITEFILE=50${PN}-gentoo.el
+
+src_unpack() {
+ unpack ${P}.tar.xz
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-2.8.3-xemacs-compat.patch
+}
+
+src_configure() {
+ local lispdir=""
+ if use emacs; then
+ lispdir="${SITELISP}/${PN}"
+ einfo "Configuring to build with GNU Emacs support"
+ elif use xemacs; then
+ lispdir="${EPREFIX}/usr/lib/xemacs/site-packages/lisp/${PN}"
+ einfo "Configuring to build with XEmacs support"
+ fi
+
+ econf $(use_enable nls) \
+ EMACS=$(usev emacs || usev xemacs || echo no) \
+ --with-lispdir="${lispdir}"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ dodoc AUTHORS ChangeLog NEWS README THANKS TODO
+
+ insinto /usr/share/gtypist
+ doins "${DISTDIR}"/colemak.typ
+
+ if use emacs; then
+ 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/app-misc/gtypist/gtypist-2.9.5.ebuild b/app-misc/gtypist/gtypist-2.9.5.ebuild
new file mode 100644
index 000000000000..7e101ebea26e
--- /dev/null
+++ b/app-misc/gtypist/gtypist-2.9.5.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils elisp-common
+
+DESCRIPTION="Universal typing tutor"
+HOMEPAGE="http://www.gnu.org/software/gtypist/"
+SRC_URI="mirror://gnu/gtypist/${P}.tar.xz
+ http://colemak.com/pub/learn/colemak.typ"
+
+LICENSE="GPL-2 public-domain"
+SLOT="0"
+KEYWORDS="amd64 ppc x86 ~amd64-linux"
+IUSE="nls emacs xemacs"
+
+DEPEND="
+ >=sys-libs/ncurses-5.2
+ emacs? ( virtual/emacs )
+ xemacs? ( !emacs? ( app-editors/xemacs app-xemacs/fsf-compat ) )
+"
+RDEPEND="${DEPEND}"
+
+SITEFILE=50${PN}-gentoo.el
+
+src_unpack() {
+ unpack ${P}.tar.xz
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-2.8.3-xemacs-compat.patch
+}
+
+src_configure() {
+ local lispdir=""
+ if use emacs; then
+ lispdir="${SITELISP}/${PN}"
+ einfo "Configuring to build with GNU Emacs support"
+ elif use xemacs; then
+ lispdir="${EPREFIX}/usr/lib/xemacs/site-packages/lisp/${PN}"
+ einfo "Configuring to build with XEmacs support"
+ fi
+
+ econf \
+ $(use_enable nls) \
+ EMACS=$(usev emacs || usev xemacs || echo no) \
+ --with-lispdir="${lispdir}"
+}
+
+DOCS=( AUTHORS ChangeLog NEWS README THANKS TODO )
+
+src_install() {
+ default
+
+ insinto /usr/share/gtypist
+ doins "${DISTDIR}"/colemak.typ
+
+ if use emacs; then
+ 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/app-misc/gtypist/metadata.xml b/app-misc/gtypist/metadata.xml
new file mode 100644
index 000000000000..601749080185
--- /dev/null
+++ b/app-misc/gtypist/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>proxy-maintainers</herd>
+ <maintainer>
+ <email>dabbott@gentoo.org</email>
+ <name>David Abbott</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-misc/hachoir-metadata/Manifest b/app-misc/hachoir-metadata/Manifest
new file mode 100644
index 000000000000..701b028cb438
--- /dev/null
+++ b/app-misc/hachoir-metadata/Manifest
@@ -0,0 +1 @@
+DIST hachoir-metadata-1.3.3.tar.gz 52304 SHA256 ec403f13a44e2cf3d26001f8f440cdc4329a316a4c971035944bfadacc90eb3c SHA512 f0958e1bb6fbeca56caa31a8574da2f64df969cdb9de80e733b36dfae0e07c8f0fbecc53f801a359f7d16ac1a3b3e0605b7c6a3bd6da3c09a3cf2c971bf8750a WHIRLPOOL 8ce755703c74005e7d355ca7a60e22a69f8d19b9bb66e540191b7b4d547fb6b54ce9db723fefc3f79941870b6621b9e9c7b5ace29f3995c68381da42ace1feff
diff --git a/app-misc/hachoir-metadata/hachoir-metadata-1.3.3-r1.ebuild b/app-misc/hachoir-metadata/hachoir-metadata-1.3.3-r1.ebuild
new file mode 100644
index 000000000000..f5f6ff8b871b
--- /dev/null
+++ b/app-misc/hachoir-metadata/hachoir-metadata-1.3.3-r1.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1
+
+DESCRIPTION="Program to extract metadata using Hachoir library"
+HOMEPAGE="http://bitbucket.org/haypo/hachoir/wiki/hachoir-metadata http://pypi.python.org/pypi/hachoir-metadata"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="gnome gtk kde qt4"
+
+RDEPEND="
+ >=dev-python/hachoir-core-1.3[${PYTHON_USEDEP}]
+ >=dev-python/hachoir-parser-1.3[${PYTHON_USEDEP}]
+ gtk? ( >=dev-python/pygtk-2.0[${PYTHON_USEDEP}] )
+ gnome? ( gnome-base/nautilus gnome-extra/zenity )
+ kde? ( kde-apps/konqueror )
+ qt4? ( dev-python/PyQt4[${PYTHON_USEDEP}] )"
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]"
+
+python_prepare_all() {
+ if ! use gtk; then
+ sed -i -e '/SCRIPTS/s:, "hachoir-metadata-gtk"::' setup.py || die
+ fi
+
+ distutils-r1_python_prepare_all
+}
+
+python_configure_all() {
+ mydistutilsargs=( --setuptools )
+
+ use qt4 || mydistutilsargs+=( --disable-qt )
+}
+
+python_test() {
+ "${PYTHON}" test_doc.py || die "Tests fail with ${EPYTHON}"
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+
+ if use gnome; then
+ exeinto /usr/share/nautilus-scripts
+ doexe gnome/hachoir
+ fi
+
+ if use kde; then
+ dobin kde/hachoir-metadata-kde
+ insinto /usr/share/apps/konqueror/servicemenus
+ doins kde/hachoir.desktop
+ fi
+
+ if ! use gtk; then
+ rm "${ED}usr/bin/hachoir-metadata-gtk"* || die
+ fi
+}
+
+pkg_postinst() {
+ if use gnome; then
+ elog "To enable the nautilus script, symlink it with:"
+ elog " $ mkdir -p ~/.gnome2/nautilus-scripts"
+ elog " $ ln -s /usr/share/nautilus-scripts/hachoir ~/.gnome2/nautilus-script"
+ fi
+}
diff --git a/app-misc/hachoir-metadata/metadata.xml b/app-misc/hachoir-metadata/metadata.xml
new file mode 100644
index 000000000000..aedfa7dcf95e
--- /dev/null
+++ b/app-misc/hachoir-metadata/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>
+ <email>maintainer-needed@gentoo.org</email>
+ </maintainer>
+ <longdescription lang="en">tool to extract metadata from multimedia files (sound, video, archives,
+ etc.)</longdescription>
+ <upstream>
+ <remote-id type="pypi">hachoir-metadata</remote-id>
+ <remote-id type="bitbucket">haypo/hachoir</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/hachoir-subfile/Manifest b/app-misc/hachoir-subfile/Manifest
new file mode 100644
index 000000000000..0d8fe1294c79
--- /dev/null
+++ b/app-misc/hachoir-subfile/Manifest
@@ -0,0 +1 @@
+DIST hachoir-subfile-0.5.3.tar.gz 15499 SHA256 b8e4933e566524804382c8f8a9a9b58a4e25ad24ebf75beb0da5d8705c61f0d6 SHA512 b34cf7d7befc1031ae821dc5124b83d198cbd6d2f95666b8497b23a87c748d574637ed65023c7e1e2532a3a62ca079dfd13d11dbcac31457c6423309208d0ce4 WHIRLPOOL f40633897acbda4905e05c5d840ab4df82e1052be785ef2fd4f635dd504609b1fb922c20dbec201f4fb3ed4684ebf5c6e7333fb2d907e41358e5cf8c6059ca84
diff --git a/app-misc/hachoir-subfile/hachoir-subfile-0.5.3-r1.ebuild b/app-misc/hachoir-subfile/hachoir-subfile-0.5.3-r1.ebuild
new file mode 100644
index 000000000000..0877cc7a7562
--- /dev/null
+++ b/app-misc/hachoir-subfile/hachoir-subfile-0.5.3-r1.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1
+
+DESCRIPTION="Find subfile in any binary stream"
+HOMEPAGE="http://bitbucket.org/haypo/hachoir/wiki/hachoir-subfile http://pypi.python.org/pypi/hachoir-subfile"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+RDEPEND=">=dev-python/hachoir-core-1.1[${PYTHON_USEDEP}]
+ >=dev-python/hachoir-parser-1.1[${PYTHON_USEDEP}]
+ >=dev-python/hachoir-regex-1.0.1[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]"
+
+python_configure_all() {
+ mydistutilsargs=(
+ --setuptools
+ )
+}
diff --git a/app-misc/hachoir-subfile/metadata.xml b/app-misc/hachoir-subfile/metadata.xml
new file mode 100644
index 000000000000..f1abda712cdb
--- /dev/null
+++ b/app-misc/hachoir-subfile/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>
+ <email>maintainer-needed@gentoo.org</email>
+ </maintainer>
+ <longdescription lang="en">a tool based on hachoir-parser to find subfiles in any binary stream.</longdescription>
+ <upstream>
+ <remote-id type="pypi">hachoir-subfile</remote-id>
+ <remote-id type="bitbucket">haypo/hachoir</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/hachoir-urwid/Manifest b/app-misc/hachoir-urwid/Manifest
new file mode 100644
index 000000000000..1e757727a99a
--- /dev/null
+++ b/app-misc/hachoir-urwid/Manifest
@@ -0,0 +1 @@
+DIST hachoir-urwid-1.1.tar.gz 17845 SHA256 95161ccc0708818958e974fde4d395ddf181cc05e92839e2c6aff1a8cac40681 SHA512 e434756903e4b3885166b825331921fe9c959247a9bf8bad324aa8e3e2b5f4ce22a1546e38df9ce9a8fcfbbb96c6e6ca4bc42e455e66eeec178d85849b1526b2 WHIRLPOOL 9717926eb74d9883d8ce24a5d18a1a98add5d70c4066e49dd1794576767db2a1af36734984dbe84d9b1556baedd0057f7dcf12f44ecda23ff2c91d838ee4857d
diff --git a/app-misc/hachoir-urwid/hachoir-urwid-1.1-r1.ebuild b/app-misc/hachoir-urwid/hachoir-urwid-1.1-r1.ebuild
new file mode 100644
index 000000000000..5599ea17c919
--- /dev/null
+++ b/app-misc/hachoir-urwid/hachoir-urwid-1.1-r1.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="ncurses"
+
+inherit distutils-r1
+
+DESCRIPTION="Binary file explorer using Hachoir and urwid libraries"
+HOMEPAGE="http://bitbucket.org/haypo/hachoir/wiki/hachoir-urwid http://pypi.python.org/pypi/hachoir-urwid"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=">=dev-python/hachoir-core-1.2[${PYTHON_USEDEP}]
+ >=dev-python/hachoir-parser-1.0[${PYTHON_USEDEP}]
+ >=dev-python/urwid-0.9.4[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]"
+
+python_configure_all() {
+ mydistutilsargs=(
+ --setuptools
+ )
+}
diff --git a/app-misc/hachoir-urwid/metadata.xml b/app-misc/hachoir-urwid/metadata.xml
new file mode 100644
index 000000000000..5a26c18f7e9d
--- /dev/null
+++ b/app-misc/hachoir-urwid/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>
+ <email>maintainer-needed@gentoo.org</email>
+ </maintainer>
+ <longdescription lang="en">user interface based on hachoir-parser to explore a binary file.</longdescription>
+ <upstream>
+ <remote-id type="pypi">hachoir-urwid</remote-id>
+ <remote-id type="bitbucket">haypo/hachoir</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/hatools/Manifest b/app-misc/hatools/Manifest
new file mode 100644
index 000000000000..d8fd6a8338db
--- /dev/null
+++ b/app-misc/hatools/Manifest
@@ -0,0 +1 @@
+DIST hatools-2.14.tar.gz 156771 SHA256 4bad4723056f87f30633a4702b96be3b2e0d1218b7b96a79c71f42ca3f5dd109 SHA512 359b652696b6f56287e336df0a844e3d4df098ee896bb5857e9fec087ccb122a5a94aac01ae4c87e530716dfa373814ec78b415dd76f65d5e60a8274af70755c WHIRLPOOL 5c87e7acdfcb2faa6a865c50c4c8bf4b93fedcd430c03e7729eae6a0ece80bf8ab0c5a2fa496db42569a5aaa9bafc462d3569638624b58dd995096b9b66ec59e
diff --git a/app-misc/hatools/hatools-2.14.ebuild b/app-misc/hatools/hatools-2.14.ebuild
new file mode 100644
index 000000000000..bdba033bd889
--- /dev/null
+++ b/app-misc/hatools/hatools-2.14.ebuild
@@ -0,0 +1,18 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+DESCRIPTION="High availability environment tools for shell scripting"
+HOMEPAGE="http://www.fatalmind.com/software/hatools/"
+SRC_URI="http://www.fatalmind.com/software/hatools/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~mips ~ppc x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x86-solaris"
+IUSE="test"
+
+src_prepare() {
+ sed 's:ksh:bash:g' -i test.sh || die
+}
diff --git a/app-misc/hatools/metadata.xml b/app-misc/hatools/metadata.xml
new file mode 100644
index 000000000000..40149c995561
--- /dev/null
+++ b/app-misc/hatools/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>shell-tools</herd>
+</pkgmetadata>
diff --git a/app-misc/hddled/Manifest b/app-misc/hddled/Manifest
new file mode 100644
index 000000000000..d930f4beca1f
--- /dev/null
+++ b/app-misc/hddled/Manifest
@@ -0,0 +1 @@
+DIST hddled-0.3.c.xz 3108 SHA256 abb2ad3a654419bb5e92e909674ef12aa5adc79d65b88c802060082e7b8fff2f SHA512 9f535557aff78d3c9693a8d34810a768e8306de73841ba0d0a928a5d205a8a5faf632a9bf51db8763b5d8d2b3de73ee6f06af62f1a0025b0912c7c18133cdf19 WHIRLPOOL 35f7f73a6186cac079adf36737f0f88f9addbd2ed289dca4a88b87e717a7ab42a078710a4e0355243cd4f238d31837d36d26df2b79b3ffecbbb80b37105f18b0
diff --git a/app-misc/hddled/hddled-0.3.ebuild b/app-misc/hddled/hddled-0.3.ebuild
new file mode 100644
index 000000000000..18f1c2fa5d47
--- /dev/null
+++ b/app-misc/hddled/hddled-0.3.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit toolchain-funcs
+
+DESCRIPTION="Show hard disk activity using the scroll lock LED"
+HOMEPAGE="http://members.optusnet.com.au/foonly/whirlpool/code/"
+SRC_URI="mirror://gentoo/${P}.c.xz"
+
+LICENSE="Unlicense"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="X"
+
+DEPEND="X? ( x11-libs/libX11 )"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}
+
+src_unpack() {
+ unpack ${A}
+ mv ${P}.c ${PN}.c || die
+}
+
+src_compile() {
+ $(tc-getCC) ${CFLAGS} -o ${PN} ${PN}.c ${LDFLAGS} || die
+ if use X ; then
+ $(tc-getCC) ${CFLAGS} -DX -lX11 -o x${PN} ${PN}.c ${LDFLAGS} || die
+ fi
+}
+
+src_install() {
+ dobin ${PN} || die
+ if use X ; then
+ dobin x${PN} || die
+ elog "X version was renamed to x${PN}"
+ fi
+}
diff --git a/app-misc/hddled/metadata.xml b/app-misc/hddled/metadata.xml
new file mode 100644
index 000000000000..59acc2cc580e
--- /dev/null
+++ b/app-misc/hddled/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>
+<email>xmw@gentoo.org</email>
+<name>Michael Weber</name>
+</maintainer>
+</pkgmetadata>
+
diff --git a/app-misc/hello/Manifest b/app-misc/hello/Manifest
new file mode 100644
index 000000000000..031bfa8bce06
--- /dev/null
+++ b/app-misc/hello/Manifest
@@ -0,0 +1,2 @@
+DIST hello-2.8.tar.gz 697483 SHA256 e6b77f81f7cf7daefad4a9f5b65de6cae9c3f13b8cfbaea8cb53bb5ea5460d73 SHA512 87fdd330fccc7d42c76df9902e21184e7976e4eb95f43dd30417030170471c34be68c37958acb6e4d3ac5f2ed7f6897730388bb6d38f5b0c06202cb8ffccb6e7 WHIRLPOOL 33f8043d8915a3ca6ce7569d2559df990d9abe17f89773230506b7ef480444fec417bbe0073c8d97d85187069b294ed4233faf81933d57c65707ab7648184b9d
+DIST hello-2.9.tar.gz 723645 SHA256 ecbb7a2214196c57ff9340aa71458e1559abd38f6d8d169666846935df191ea7 SHA512 b2be91f436d8ebbf431af7f2bb9b61453cfcd336e2745971be48c2c94d7b6ea615e05ef0526fc25f235377d3f7073e1c432c0d522891a8978252267a61aeec86 WHIRLPOOL daf3efa4571bda38f22f4cabb8707ddba883e39a097171013093fe70aa36385032331336f785a1788f51a7b7ab331c11093d88d3028893d2034aaf84eca51ef4
diff --git a/app-misc/hello/hello-2.8.ebuild b/app-misc/hello/hello-2.8.ebuild
new file mode 100644
index 000000000000..7dc4f4dba005
--- /dev/null
+++ b/app-misc/hello/hello-2.8.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+DESCRIPTION="GNU \"Hello, world\" application"
+HOMEPAGE="http://www.gnu.org/software/hello/"
+SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
+
+LICENSE="FDL-1.3 GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="nls"
+
+DOCS=(AUTHORS ChangeLog ChangeLog.O NEWS README THANKS TODO contrib/evolution.txt)
+
+src_configure() {
+ econf $(use_enable nls)
+}
+
+src_install() {
+ default
+
+ for x in contrib man doc po tests src; do
+ newdoc $x/ChangeLog ChangeLog.$x || die "newdoc failed"
+ done
+}
diff --git a/app-misc/hello/hello-2.9.ebuild b/app-misc/hello/hello-2.9.ebuild
new file mode 100644
index 000000000000..1de1a3336555
--- /dev/null
+++ b/app-misc/hello/hello-2.9.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+DESCRIPTION="GNU \"Hello, world\" application"
+HOMEPAGE="http://www.gnu.org/software/hello/"
+SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
+
+LICENSE="FDL-1.3 GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="nls"
+
+DOCS=(AUTHORS ChangeLog ChangeLog.O NEWS README THANKS TODO contrib/evolution.txt)
+
+src_configure() {
+ econf $(use_enable nls)
+}
+
+src_install() {
+ default
+
+ for x in contrib man doc po tests src; do
+ newdoc $x/ChangeLog ChangeLog.$x || die "newdoc failed"
+ done
+}
diff --git a/app-misc/hello/metadata.xml b/app-misc/hello/metadata.xml
new file mode 100644
index 000000000000..992bdd959c40
--- /dev/null
+++ b/app-misc/hello/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer>
+ <email>jcallen@gentoo.org</email>
+ <name>Jonathan Callen</name>
+</maintainer>
+</pkgmetadata>
diff --git a/app-misc/hexcompare/Manifest b/app-misc/hexcompare/Manifest
new file mode 100644
index 000000000000..c916b102200a
--- /dev/null
+++ b/app-misc/hexcompare/Manifest
@@ -0,0 +1,2 @@
+DIST hexcompare-1.0.4.tar.gz 9686 SHA256 a9609b28099d7578228f359a460a06f7fc1ae8cde614ea10e525b88eb04a9451 SHA512 847bf7e26f27aa0ff56e38b3fe95ad7940a0226e0c496963530fa405d8a3a50f8288a4c7f28d48d4cce05e52c1f69180917a7f10da0943cabf977f78b62eb5fe WHIRLPOOL 45925df7b39ccd9f27532f8148b70a106a50958bac0f129bb37b408b3916dbd801713fac790c0326489a4843b300bd0ccd0d55a62c832caefc0b8090fda15d1b
+DIST hexcompare-101.tar.gz 8718 SHA256 3aad559a1784aacd315109ebad47ab99364ad8c9ab6410463f3d457d5d7e7e76 SHA512 dacce9eefc37b139347452aaf1698f0f1c9fc9b6bca83487154aab840735cd3a46ddb333b76a268149b99d4ef786123cd1799dfb809c047ada62dd87d8dd5dc2 WHIRLPOOL b0979a4d6f8df3fce4530c9baf1d1dcaca39ed753fc81fe28443e30f43a11e56dcbb31e9519fa428a5bd7e6a3be2462c26056a8e0e8fa0f3e5578c3bd3adccf1
diff --git a/app-misc/hexcompare/files/hexcompare-1.0.1.patch b/app-misc/hexcompare/files/hexcompare-1.0.1.patch
new file mode 100644
index 000000000000..8971a5e2c703
--- /dev/null
+++ b/app-misc/hexcompare/files/hexcompare-1.0.1.patch
@@ -0,0 +1,52 @@
+--- hexcompare-101/gui.c
++++ hexcompare-101/gui.c
+@@ -39,7 +39,7 @@
+ {
+ // With a given offset, calculate which element it corresponds to
+ // in the offset_index.
+- int i, current_block;
++ int i, current_block = 0;
+ for (i = 0; i < total_blocks; i++) {
+
+ // Go block by block, and see if our offset is greater than
+@@ -62,7 +62,7 @@
+ char offset_query[32];
+ char offset_line[32];
+ int offset_size = 0;
+- int previous_size, current_size, i;
++ int previous_size, current_size = 0, i;
+ int redo_loop = false;
+
+ // Endless loop until we figure out an offset size that is constant
+@@ -533,10 +533,6 @@
+
+ // Create variables.
+ int i, j;
+- bool active_declared = false;
+- int offset_string_length = 0;
+- unsigned long temp_offset;
+- char offset_line[32];
+
+ // Define colors block diagram.
+ init_pair(BLOCK_SAME, COLOR_WHITE, COLOR_BLUE);
+@@ -621,12 +617,6 @@
+ //
+ //
+
+- // Create variables.
+- int i, j;
+- bool active_declared = false;
+- int offset_string_length = 0;
+- unsigned long temp_offset;
+-
+ // Define colors block diagram.
+ init_pair(BLOCK_SAME, COLOR_WHITE, COLOR_BLUE);
+ init_pair(BLOCK_DIFFERENT, COLOR_WHITE, COLOR_RED);
+@@ -753,7 +743,6 @@
+ while((key_pressed = wgetch(main_window)) != 'q')
+ {
+ int rows;
+- int bytes_per_row = (width - SIDE_MARGIN*2) * bytes_per_block;
+ if (mode == OVERVIEW_MODE) rows = 5; else rows = height - 5;
+
+ switch(key_pressed)
diff --git a/app-misc/hexcompare/files/hexcompare-1.0.4-Makefile.patch b/app-misc/hexcompare/files/hexcompare-1.0.4-Makefile.patch
new file mode 100644
index 000000000000..5ccef2047bc7
--- /dev/null
+++ b/app-misc/hexcompare/files/hexcompare-1.0.4-Makefile.patch
@@ -0,0 +1,14 @@
+--- hexcompare-1.0.4/Makefile
++++ hexcompare-1.0.4/Makefile
+@@ -1,9 +1,9 @@
+-CFLAGS = -O3 -Wall -Wextra -pedantic -Wformat-security -std=gnu89
++CFLAGS += -Wall -Wextra -pedantic -Wformat-security -std=gnu89
+
+ all: hexcompare
+
+ hexcompare: main.c gui.c
+- $(CC) $(CFLAGS) -o hexcompare main.c gui.c -lncurses
++ $(CC) $(CFLAGS) `pkg-config --cflags ncurses` -o hexcompare main.c gui.c `pkg-config --libs ncurses`
+
+ clean:
+ rm -f *.o
diff --git a/app-misc/hexcompare/hexcompare-1.0.1.ebuild b/app-misc/hexcompare/hexcompare-1.0.1.ebuild
new file mode 100644
index 000000000000..b05a75e5693d
--- /dev/null
+++ b/app-misc/hexcompare/hexcompare-1.0.1.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=3
+
+inherit eutils toolchain-funcs versionator
+
+DESCRIPTION="ncurses-based visual comparison of binary files"
+HOMEPAGE="http://hexcompare.sourceforge.net/"
+MY_P=${PN}-$(replace_all_version_separators '')
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="sys-libs/ncurses"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}.patch
+}
+
+src_compile() {
+ $(tc-getCC) \
+ ${CFLAGS} $(/usr/bin/ncurses5-config --cflags) \
+ -o ${PN} main.c gui.c \
+ ${LDFLAGS} $(/usr/bin/ncurses5-config --libs) || die
+}
+
+src_install() {
+ dobin ${PN} || die
+ dodoc README || die
+}
diff --git a/app-misc/hexcompare/hexcompare-1.0.4.ebuild b/app-misc/hexcompare/hexcompare-1.0.4.ebuild
new file mode 100644
index 000000000000..67f2047c110a
--- /dev/null
+++ b/app-misc/hexcompare/hexcompare-1.0.4.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="ncurses-based visual comparison of binary files"
+HOMEPAGE="http://hexcompare.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="sys-libs/ncurses:5"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-Makefile.patch
+ tc-export CC
+}
+
+src_install() {
+ dobin ${PN}
+ dodoc README
+}
diff --git a/app-misc/hexcompare/metadata.xml b/app-misc/hexcompare/metadata.xml
new file mode 100644
index 000000000000..d5c82fe0dcaf
--- /dev/null
+++ b/app-misc/hexcompare/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>
+ <email>xmw@gentoo.org</email>
+ <name>Michael Weber</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">hexcompare</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/hilite/Manifest b/app-misc/hilite/Manifest
new file mode 100644
index 000000000000..f1ac3cd72b17
--- /dev/null
+++ b/app-misc/hilite/Manifest
@@ -0,0 +1 @@
+DIST hilite-1.5.c 2872 SHA256 e15bdff2605e8d23832d6828a62194ca26dedab691c9d75df2877468c2f6aaeb SHA512 571fb962e430d3c9e5494d802f529529a5bd0bf6dd7f398e7c55dd5a8effc568f9153edecf50d2e296b97eb20b2ddaa52c2214b9dd989449aff3b93a0547ad45 WHIRLPOOL 8e9f9844e92c3a1cacdb8cdfe6b95ba0c3bb90716c5946b1c4a6c917e6b2ac6e8ea57a87712f13b7a6822fb82f879fafdd7bc7984537614bbd84c8d8af92d9b6
diff --git a/app-misc/hilite/hilite-1.5.ebuild b/app-misc/hilite/hilite-1.5.ebuild
new file mode 100644
index 000000000000..365b73a58112
--- /dev/null
+++ b/app-misc/hilite/hilite-1.5.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit toolchain-funcs
+
+DESCRIPTION="A utility which highlights stderr text in red"
+HOMEPAGE="http://sourceforge.net/projects/hilite"
+SRC_URI="mirror://gentoo/${P}.c"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~hppa ~ia64 ~mips ppc sparc x86 ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE=""
+
+S="${WORKDIR}"
+
+src_unpack() {
+ cp "${DISTDIR}"/${A} "${WORKDIR}"/
+}
+
+src_compile() {
+ einfo "$(tc-getCC) ${LDFLAGS} ${CFLAGS} -o ${PN} ${P}.c"
+ $(tc-getCC) ${LDFLAGS} ${CFLAGS} -o ${PN} ${P}.c || die
+}
+
+src_install() {
+ dobin hilite || die
+}
diff --git a/app-misc/hilite/metadata.xml b/app-misc/hilite/metadata.xml
new file mode 100644
index 000000000000..80ac69d9c2f2
--- /dev/null
+++ b/app-misc/hilite/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>shell-tools</herd>
+</pkgmetadata>
diff --git a/app-misc/hivex/Manifest b/app-misc/hivex/Manifest
new file mode 100644
index 000000000000..f027ce845d27
--- /dev/null
+++ b/app-misc/hivex/Manifest
@@ -0,0 +1 @@
+DIST hivex-1.3.11.tar.gz 1264487 SHA256 c63adf6c7ef9140acf20775d35bef35ab563c0d2f59d3dfb8e0d15cfa7c77678 SHA512 1ff9fbcfb976fea5bba41c5ff06e4dc68af0e507accc236ca0406644ee2c865619b3b3bf9550124778fcd782ddc257f1d89861b45f48c0c3ceed18dfa1e02ced WHIRLPOOL 6d741ad14660390b2c171bff400645cbcd20a991a55b7fb4e349c864e2dd4e606f57f344d8b851acf87d12bf8a3b608a77c073c565d9aa55cd23094d7e09e8cd
diff --git a/app-misc/hivex/hivex-1.3.11-r1.ebuild b/app-misc/hivex/hivex-1.3.11-r1.ebuild
new file mode 100644
index 000000000000..eb9f3d47c977
--- /dev/null
+++ b/app-misc/hivex/hivex-1.3.11-r1.ebuild
@@ -0,0 +1,117 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+AUTOTOOLS_IN_SOURCE_BUILD=1
+
+USE_RUBY="ruby20 ruby21"
+RUBY_OPTIONAL=yes
+
+PYTHON_COMPAT=(python2_7 python3_{3,4})
+
+inherit autotools-utils eutils perl-app ruby-ng python-single-r1
+
+DESCRIPTION="Library for reading and writing Windows Registry 'hive' binary files"
+HOMEPAGE="http://libguestfs.org"
+SRC_URI="http://libguestfs.org/download/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="ocaml readline +perl python test static-libs ruby"
+
+RDEPEND="
+ virtual/libiconv
+ virtual/libintl
+ dev-libs/libxml2:2
+ ocaml? ( dev-lang/ocaml[ocamlopt]
+ dev-ml/findlib[ocamlopt]
+ )
+ readline? ( sys-libs/readline )
+ perl? ( dev-perl/IO-stringy )
+ ruby? ( $(ruby_implementations_depend) )
+ python? ( ${PYTHON_DEPS} )
+ "
+
+DEPEND="${RDEPEND}
+ dev-lang/perl
+ perl? (
+ test? ( dev-perl/Pod-Coverage
+ dev-perl/Test-Pod-Coverage )
+ )
+ "
+
+ruby_add_bdepend "ruby? ( dev-ruby/rake
+ virtual/rubygems
+ dev-ruby/rdoc )"
+ruby_add_rdepend "ruby? ( virtual/rubygems )"
+
+REQUIRED_USE="python? ( ${PYTHON_REQ_USE} )"
+
+DOCS=( README )
+S="${WORKDIR}/${P}"
+
+#We are aware of rather poor quality of this ebuild, but the bump is required to fix security bug. We will fix other matters later.
+
+pkg_setup() {
+ if use python; then
+ python-single-r1_pkg_setup
+ fi
+ if use perl; then
+ perl_set_version
+ fi
+}
+
+src_unpack() {
+ default
+}
+
+src_prepare() {
+ epatch_user
+}
+
+src_configure() {
+ local myeconfargs=(
+ $(use_with readline)
+ $(use_enable ocaml)
+ $(use_enable perl)
+ --enable-nls
+ $(use_enable python)
+ $(use_enable ruby)
+ --disable-rpath )
+
+ autotools-utils_src_configure
+
+ if use perl; then
+ pushd perl
+ perl-app_src_configure
+ popd
+ fi
+}
+
+src_compile() {
+ autotools-utils_src_compile
+}
+
+# Test binding's dont't wok properly in gentoo layout
+#src_test() {
+# if use perl;then
+# pushd perl
+# perl-app_src_install
+# popd
+# fi
+#
+# autotools-utils_src_compile check
+#}
+
+src_install() {
+ strip-linguas -i po
+
+ autotools-utils_src_install "LINGUAS=""${LINGUAS}"""
+
+ if use perl; then
+ perl_delete_localpod
+ fi
+}
diff --git a/app-misc/hivex/hivex-1.3.11.ebuild b/app-misc/hivex/hivex-1.3.11.ebuild
new file mode 100644
index 000000000000..2ed926f32416
--- /dev/null
+++ b/app-misc/hivex/hivex-1.3.11.ebuild
@@ -0,0 +1,116 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+AUTOTOOLS_IN_SOURCE_BUILD=1
+
+USE_RUBY="ruby20"
+RUBY_OPTIONAL=yes
+
+PYTHON_COMPAT=(python2_7 python3_{3,4})
+
+inherit autotools-utils eutils perl-app ruby-ng python-single-r1
+
+DESCRIPTION="Library for reading and writing Windows Registry 'hive' binary files"
+HOMEPAGE="http://libguestfs.org"
+SRC_URI="http://libguestfs.org/download/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="ocaml readline +perl python test static-libs ruby"
+
+RDEPEND="
+ virtual/libiconv
+ virtual/libintl
+ dev-libs/libxml2:2
+ ocaml? ( dev-lang/ocaml[ocamlopt]
+ dev-ml/findlib[ocamlopt]
+ )
+ readline? ( sys-libs/readline )
+ perl? ( dev-perl/IO-stringy )
+ ruby? ( $(ruby_implementations_depend) )
+ python? ( ${PYTHON_DEPS} )
+ "
+
+DEPEND="${RDEPEND}
+ dev-lang/perl
+ perl? (
+ test? ( dev-perl/Pod-Coverage
+ dev-perl/Test-Pod-Coverage )
+ )
+ "
+ruby_add_bdepend "ruby? ( dev-ruby/rake
+ virtual/rubygems
+ dev-ruby/rdoc )"
+ruby_add_rdepend "ruby? ( virtual/rubygems )"
+
+REQUIRED_USE="python? ( ${PYTHON_REQ_USE} )"
+
+DOCS=( README )
+S="${WORKDIR}/${P}"
+
+#We are aware of rather poor quality of this ebuild, but the bump is required to fix security bug. We will fix other matters later.
+
+pkg_setup() {
+ if use python; then
+ python-single-r1_pkg_setup
+ fi
+ if use perl; then
+ perl_set_version
+ fi
+}
+
+src_unpack() {
+ default
+}
+
+src_prepare() {
+ epatch_user
+}
+
+src_configure() {
+ local myeconfargs=(
+ $(use_with readline)
+ $(use_enable ocaml)
+ $(use_enable perl)
+ --enable-nls
+ $(use_enable python)
+ $(use_enable ruby)
+ --disable-rpath )
+
+ autotools-utils_src_configure
+
+ if use perl; then
+ pushd perl
+ perl-app_src_configure
+ popd
+ fi
+}
+
+src_compile() {
+ autotools-utils_src_compile
+}
+
+# Test binding's dont't wok properly in gentoo layout
+#src_test() {
+# if use perl;then
+# pushd perl
+# perl-app_src_install
+# popd
+# fi
+#
+# autotools-utils_src_compile check
+#}
+
+src_install() {
+ strip-linguas -i po
+
+ autotools-utils_src_install "LINGUAS=""${LINGUAS}"""
+
+ if use perl; then
+ perl_delete_localpod
+ fi
+}
diff --git a/app-misc/hivex/metadata.xml b/app-misc/hivex/metadata.xml
new file mode 100644
index 000000000000..60c7f53239ef
--- /dev/null
+++ b/app-misc/hivex/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>proxy-maintainers</herd>
+<maintainer>
+ <email>andreis.vinogradovs@gmail.com</email>
+ <name>Andreis Vinogradovs</name>
+</maintainer>
+<maintainer>
+ <email>maksbotan@gentoo.org</email>
+ <name>Maxim Koltsov</name>
+</maintainer>
+</pkgmetadata>
diff --git a/app-misc/ifp-line/Manifest b/app-misc/ifp-line/Manifest
new file mode 100644
index 000000000000..577df739b5cc
--- /dev/null
+++ b/app-misc/ifp-line/Manifest
@@ -0,0 +1 @@
+DIST ifp-line-0.3.tar.gz 138272 SHA256 2d44807abbd5d2202d253b550b867dfa3776a71bf6d3f202b0f1254e66325257 SHA512 516ad85fdaf69111581b013b2517c7083656436d429a86ec5ca4b7dcaf1c841538f98138cce8839d990a34550f11cc6bc9dedc701b0123b9cb73a91a7d78694d WHIRLPOOL 868dc9508086a4ba76620d682e1702dded82bf69cd19e42667dac239c6825d0dfb01aaa30d5560e9fe670bf735479b88cae816ab58daa1dacbebe03fa01c05e6
diff --git a/app-misc/ifp-line/files/ifp-line-0.3-fix-warnings.patch b/app-misc/ifp-line/files/ifp-line-0.3-fix-warnings.patch
new file mode 100644
index 000000000000..f7fe1de4b1ff
--- /dev/null
+++ b/app-misc/ifp-line/files/ifp-line-0.3-fix-warnings.patch
@@ -0,0 +1,30 @@
+--- unicodehack.c.orig 2006-01-31 20:18:16.000000000 -0500
++++ unicodehack.c 2006-01-31 20:18:39.000000000 -0500
+@@ -26,7 +26,7 @@
+ return -1;
+ }
+
+- if ( (retval = iconv(cd, (const char **)&src, &srcln, &dst, &dstln)) == -1) {
++ if ( (retval = iconv(cd, (char **)&src, &srcln, &dst, &dstln)) == -1) {
+ // XXX ignore error message "iconv: Illiegal byte sequence"
+ // with GNU libiconv. No effect for output in now.
+ //perror("iconv");
+@@ -43,7 +43,7 @@
+ /**
+ * @return less then zero: error.
+ */
+-int unicode2locale(char *dst, size_t dstln, const char *src, size_t srcln) {
++int unicode2locale(char *dst, size_t dstln, char *src, size_t srcln) {
+ iconv_t cd;
+ int retval;
+
+--- unicodehack.h.orig 2006-01-31 20:19:05.000000000 -0500
++++ unicodehack.h 2006-01-31 20:19:26.000000000 -0500
+@@ -4,6 +4,6 @@
+ #define IFPLINE_UNICODEHACK_H
+
+ extern int locale2unicode(char*, size_t, const char*, size_t);
+-extern int unicode2locale(char*, size_t, const char*, size_t);
++extern int unicode2locale(char*, size_t, char*, size_t);
+
+ #endif // IFPLINE_UNICODEHACK_H
diff --git a/app-misc/ifp-line/ifp-line-0.3.ebuild b/app-misc/ifp-line/ifp-line-0.3.ebuild
new file mode 100644
index 000000000000..2b5e596348a6
--- /dev/null
+++ b/app-misc/ifp-line/ifp-line-0.3.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=2
+inherit eutils
+
+DESCRIPTION="iRiver iFP open-source driver"
+HOMEPAGE="http://ifp-driver.sourceforge.net/"
+SRC_URI="mirror://sourceforge/ifp-driver/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE=""
+
+RDEPEND="virtual/libusb:0"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-fix-warnings.patch
+}
+
+src_install() {
+ dobin ifp || die
+ dodoc NEWS README TIPS ChangeLog
+ doman ifp.1
+
+ exeinto /usr/share/${PN}
+ doexe nonroot.sh || die
+}
+
+pkg_postinst() {
+ elog
+ elog "To enable non-root usage of ${PN}, you use any of the following"
+ elog "methods."
+ elog
+ elog " 1. Follow the TIPS file in"
+ elog " /usr/share/doc/${PF}"
+ elog
+ elog " 2. Run /usr/share/${PN}/nonroot.sh"
+ elog
+}
diff --git a/app-misc/ifp-line/metadata.xml b/app-misc/ifp-line/metadata.xml
new file mode 100644
index 000000000000..74257d7e3e82
--- /dev/null
+++ b/app-misc/ifp-line/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>sound</herd>
+ <upstream>
+ <remote-id type="sourceforge">ifp-driver</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/ignuit/Manifest b/app-misc/ignuit/Manifest
new file mode 100644
index 000000000000..0d64423fde3c
--- /dev/null
+++ b/app-misc/ignuit/Manifest
@@ -0,0 +1 @@
+DIST ignuit-2.20.0.tar.gz 541546 SHA256 5dc75cef0707677421c272c430cebf5c3730cbcfaeba6428fe14f6bd085d3630 SHA512 3d3a786ce87e252b1529ba427da52356d43554da6c23dfd3353f91b2c3962a83769431794c433c8ba8478ef48b8ef470a042416c5d2b2c0683711b09c959e106 WHIRLPOOL d93d2acb472bd23721c866f7231d301da8d9ee1f6894d51e1166bdc538ce0b99af2d3a79dd27ca72fd7ca6ab9a5a8b6aefd97d0219292e893ada9bdb7e8dd649
diff --git a/app-misc/ignuit/ignuit-2.20.0.ebuild b/app-misc/ignuit/ignuit-2.20.0.ebuild
new file mode 100644
index 000000000000..89040c3222cd
--- /dev/null
+++ b/app-misc/ignuit/ignuit-2.20.0.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+DESCRIPTION="Memorization aid based on the Leitner flashcard system"
+HOMEPAGE="http://homepages.ihug.co.nz/~trmusson/programs.html#ignuit"
+SRC_URI="http://homepages.ihug.co.nz/~trmusson/stuff/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 ppc ppc64 x86"
+IUSE="examples"
+
+RDEPEND="app-text/dvipng
+ >=app-text/gnome-doc-utils-0.3.2
+ app-text/scrollkeeper
+ dev-libs/glib:2
+ dev-libs/libxml2:2
+ dev-libs/libxslt
+ >=gnome-base/libgnomeui-2.22.1
+ gnome-base/gconf:2
+ gnome-base/libglade:2.0
+ >=media-libs/gstreamer-0.10.20:0.10
+ x11-libs/gtk+:2
+ x11-libs/pango
+ virtual/latex-base"
+
+DEPEND="${RDEPEND}
+ dev-util/intltool
+ sys-devel/gettext"
+
+src_install() {
+ emake DESTDIR="${D}" install
+ dodoc AUTHORS NEWS README TODO
+
+ if use examples; then
+ insinto /usr/share/doc/${PF}
+ doins -r examples
+ fi
+}
diff --git a/app-misc/ignuit/metadata.xml b/app-misc/ignuit/metadata.xml
new file mode 100644
index 000000000000..e96e35b1a37c
--- /dev/null
+++ b/app-misc/ignuit/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>maintainer-needed@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
+
diff --git a/app-misc/iguanaIR/Manifest b/app-misc/iguanaIR/Manifest
new file mode 100644
index 000000000000..4311df55f5d9
--- /dev/null
+++ b/app-misc/iguanaIR/Manifest
@@ -0,0 +1,2 @@
+DIST iguanaIR-0.93.tar.bz2 1006655 SHA256 4a2f546eb0f99a3617efe20676633f06e2b74f8b352be939acff30d226cabca8 SHA512 c955c366aba87f58638ed187657ff4c73e03dc3a8f0295ea740ce612bb38f639fa48c56735156268712a6fd00c85b132e14819fb7cf21988dbb18cc0cc4fce9d WHIRLPOOL d051fa30aaa70e2e53b4f7ec7aac28d30126e57d92ffac4e6bfa5aa7a749b66cb54ba4d82f288770d90a05e136c596503f2079be262afd06aabf1b9d9de4ef34
+DIST iguanaIR-1.0.1.tar.bz2 287572 SHA256 1ba324667671892b2a36aee0089d0afafd266f8b255b073b113eb5ab71f38fcc SHA512 d70e792d6d51b99d9d82e4411bb16de24846d87b5066592734b614a866cdfb317f3aafbab6ef478552b57c4077776daa6db89b44201103ecaec8fd44df041e0e WHIRLPOOL 5b04d462c30b8e141b95614de8e08a951792d3f0e0bf71f535ba84c15f0b445ac136f296d7be5f829cf9f0aec37267af4ca6f9b9ad5d8a7936003bfa94c0023a
diff --git a/app-misc/iguanaIR/files/40-iguanaIR.rules b/app-misc/iguanaIR/files/40-iguanaIR.rules
new file mode 100644
index 000000000000..6cccbc9757e7
--- /dev/null
+++ b/app-misc/iguanaIR/files/40-iguanaIR.rules
@@ -0,0 +1,5 @@
+
+ACTION=="add", ATTRS{manufacturer}=="IguanaWorks", MODE="0660", RUN+="/etc/init.d/iguanaIR rescan"
+
+# DEBUGGING ADDITION:
+#RUN += "/bin/bash -c 'echo $major $minor r=$result i=$id n=$number k=$kernel p=$parent r=$root >> /tmp/udev.txt'"
diff --git a/app-misc/iguanaIR/files/iguanaIR-0.93-asneeded.patch b/app-misc/iguanaIR/files/iguanaIR-0.93-asneeded.patch
new file mode 100644
index 000000000000..099b1a4ee4f0
--- /dev/null
+++ b/app-misc/iguanaIR/files/iguanaIR-0.93-asneeded.patch
@@ -0,0 +1,29 @@
+--- iguanaIR-0.93.orig/Makefile.in 2009-12-13 15:27:50.942734390 +0100
++++ iguanaIR-0.93/Makefile.in 2009-12-13 15:29:58.580486676 +0100
+@@ -48,14 +48,14 @@
+ igclient igdaemon: libiguanaIR.so
+
+ libiguanaIR.so: iguanaIR.o support.o dataPackets.o pipes.o base.o
+- $(CC) -shared $(CPPFLAGS) $^ -lpopt -lrt -o $@
++ $(CC) -shared $(CPPFLAGS) $^ -o $@ -lpopt -lrt
+
+ igdaemon: daemon.o client-interface.o device-interface.o usbclient.o \
+ list.o compatibility.o
+- $(CC) $(CPPFLAGS) $(CFLAGS) $^ $(LIBS) -lusb -L. -liguanaIR -o $@
++ $(CC) $(CPPFLAGS) $(CFLAGS) $^ -o $@ -L. -liguanaIR -lusb -lpopt
+
+ igclient: client.o list.o
+- $(CC) $(CPPFLAGS) $^ -lpopt -L. -liguanaIR -o $@
++ $(CC) $(CPPFLAGS) $^ -o $@ -L. -liguanaIR -lpopt
+
+ %.o: %.c Makefile iguanaIR.h
+ $(CC) -c $(CPPFLAGS) $(CFLAGS) $< -o $@
+@@ -71,7 +71,7 @@
+ swig $(CPPFLAGS) -python $<
+
+ _iguanaIR.so: iguanaIR_wrap.c
+- $(CC) $(CPPFLAGS) -shared $(CFLAGS) -Wno-strict-aliasing -Wno-unused -Wno-implicit-function-declaration -Wno-long-long @PYTHON_CPPFLAGS@ $^ -L. -liguanaIR -o $@
++ $(CC) $(CPPFLAGS) -shared $(CFLAGS) -Wno-strict-aliasing -Wno-unused -Wno-implicit-function-declaration -Wno-long-long @PYTHON_CPPFLAGS@ $^ -o $@ -L. -liguanaIR
+ endif
+
+ .PHONY: install
diff --git a/app-misc/iguanaIR/files/iguanaIR-0.93-gentoo.diff b/app-misc/iguanaIR/files/iguanaIR-0.93-gentoo.diff
new file mode 100644
index 000000000000..96793837ae30
--- /dev/null
+++ b/app-misc/iguanaIR/files/iguanaIR-0.93-gentoo.diff
@@ -0,0 +1,34 @@
+diff -Naur iguanaIR-0.93.orig/iguanaIR.gentoo.init iguanaIR-0.93/iguanaIR.gentoo.init
+--- iguanaIR-0.93.orig/iguanaIR.gentoo.init 2008-03-20 15:34:46.000000000 +0100
++++ iguanaIR-0.93/iguanaIR.gentoo.init 2008-03-20 15:38:06.000000000 +0100
+@@ -1,7 +1,7 @@
+ #!/sbin/runscript
+
+ # load the settings
+-[ -f /etc/default/iguanaIR ] && . /etc/default/iguanaIR
++[ -f /etc/iguanaIR/iguanaIR ] && . /etc/iguanaIR/iguanaIR
+
+ # common defaults
+ IGPATH=/usr/bin/igdaemon
+diff -Naur iguanaIR-0.93.orig/Makefile.in iguanaIR-0.93/Makefile.in
+--- iguanaIR-0.93.orig/Makefile.in 2008-03-20 15:34:46.000000000 +0100
++++ iguanaIR-0.93/Makefile.in 2008-03-20 15:36:49.000000000 +0100
+@@ -79,12 +79,12 @@
+ install -D igclient $(DESTDIR)/usr/bin/igclient
+ install -D igdaemon $(DESTDIR)/usr/bin/igdaemon
+ install -D libiguanaIR.so $(DESTDIR)/usr/$(LIBDIR)/libiguanaIR.so
+- install -D iguanaIR.init $(DESTDIR)/etc/rc.d/init.d/iguanaIR
+- install -D --mode=0644 iguanaIR.options $(DESTDIR)/etc/default/iguanaIR
+- install -D iguanaIR.h $(DESTDIR)/usr/include/iguanaIR.h
+- install -D --mode 644 plug-trigger/udev/iguanaIR.rules \
+- $(DESTDIR)/etc/udev/rules.d/iguanaIR.rules
+- install --mode 755 -d $(DESTDIR)/etc/udev/devices/iguanaIR
++ install -D iguanaIR.gentoo.init $(DESTDIR)/etc/init.d/iguanaIR
++ install -D --mode=0644 iguanaIR.options $(DESTDIR)/etc/iguanaIR/iguanaIR
++ install -D --mode=0644 iguanaIR.h $(DESTDIR)/usr/include/iguanaIR.h
++# install -D --mode=644 plug-trigger/udev/iguanaIR.rules \
++# $(DESTDIR)/etc/udev/rules.d/iguanaIR.rules
++# install --mode 755 -d $(DESTDIR)/etc/udev/devices/iguanaIR
+ # This is for fairly old versions of Fedora....
+ # install -D --mode 644 plug-trigger/hotplug/iguanaIR.usermap \
+ # $(DESTDIR)/etc/hotplug/usb/iguanaIR.usermap
diff --git a/app-misc/iguanaIR/iguanaIR-0.93.ebuild b/app-misc/iguanaIR/iguanaIR-0.93.ebuild
new file mode 100644
index 000000000000..974ff8be4315
--- /dev/null
+++ b/app-misc/iguanaIR/iguanaIR-0.93.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+inherit eutils flag-o-matic python
+
+DESCRIPTION="library for Irman control of Unix software"
+HOMEPAGE="http://iguanaworks.net/index.php"
+SRC_URI="http://iguanaworks.net/downloads/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc ppc64 x86"
+IUSE=""
+
+RDEPEND="dev-libs/popt
+ virtual/libusb:0"
+DEPEND="${RDEPEND}
+ || ( dev-lang/python:2.7 dev-lang/python:2.6 )"
+
+pkg_setup() {
+ append-flags -fPIC
+
+ python_set_active_version 2
+ python_pkg_setup
+}
+
+src_prepare() {
+ sed -i -e 's:CFLAGS =:CFLAGS ?=:' Makefile.in || die
+
+ epatch \
+ "${FILESDIR}"/${P}-gentoo.diff \
+ "${FILESDIR}"/${P}-asneeded.patch
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+
+ insinto /lib/udev/rules.d
+ doins "${FILESDIR}"/40-iguanaIR.rules
+}
diff --git a/app-misc/iguanaIR/iguanaIR-1.0.1.ebuild b/app-misc/iguanaIR/iguanaIR-1.0.1.ebuild
new file mode 100644
index 000000000000..55c7e58b5ecd
--- /dev/null
+++ b/app-misc/iguanaIR/iguanaIR-1.0.1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+inherit python user
+
+DESCRIPTION="library for Irman control of Unix software"
+HOMEPAGE="http://iguanaworks.net/index.php"
+SRC_URI="http://iguanaworks.net/downloads/${P}.tar.bz2"
+
+LICENSE="GPL-2 LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE=""
+
+# sys-apps/lsb-release is used by the init script for detecting Gentoo
+RDEPEND="dev-libs/popt
+ sys-apps/lsb-release
+ virtual/libusb:0"
+DEPEND="${RDEPEND}
+ || ( dev-lang/python:2.7 dev-lang/python:2.6 )
+ >=dev-lang/swig-2.0.0"
+
+pkg_setup() {
+ enewgroup iguanair
+ enewuser iguanair -1 -1 -1 'iguanair,usb'
+
+ python_set_active_version 2
+ python_pkg_setup
+}
+
+src_prepare() {
+ # Working around bug in SWIG version checking
+ sed -i -e 's:1.3.31:2.0.0:g' configure || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+
+ dodoc AUTHORS README.txt WHY notes.txt protocols.txt
+
+ rm -f docs/{Makefile,pullDocs}
+ dodoc -r docs
+}
diff --git a/app-misc/iguanaIR/metadata.xml b/app-misc/iguanaIR/metadata.xml
new file mode 100644
index 000000000000..32917ab8cd32
--- /dev/null
+++ b/app-misc/iguanaIR/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>media-tv</herd>
+<maintainer>
+<email>hd_brummy@gentoo.org</email>
+<name>Joerg Bornkessel</name>
+</maintainer>
+</pkgmetadata>
+
diff --git a/app-misc/inputlircd/Manifest b/app-misc/inputlircd/Manifest
new file mode 100644
index 000000000000..c78d22c48ce4
--- /dev/null
+++ b/app-misc/inputlircd/Manifest
@@ -0,0 +1,2 @@
+DIST inputlircd-0.0.1_pre11.tar.bz2 4370 SHA256 ddd49668e3cf1275de04a74a7191f1b0e73947673d824bdb092d1ba0294c23e0 SHA512 e09546340843f4df01f22c2e5347bcbae7078c521c7e4d5216d061beb93f7ae660e96d1942e6e931e0f72c930b8383cf6f83c70f1f242587da82edc4a04b6d76 WHIRLPOOL 64f21ac9a1b7a23f66d60b65e88d73aa7f41ee60c29ffc87e70dd482bc8fd672bd171be9aa5f901c66c96bcd8791bcac0c55b82b3979e0154c302bcf2fca0391
+DIST inputlircd-0.0.1_pre15.tar.gz 5226 SHA256 c4eec38bee39715ba00985e741bf703fb8b356af09ec2372f6b68f03703bd79b SHA512 6f7dd15875eeccac1f666af82dabba243707c9b3c3b2e39070032fb3d4a40c1c0ae6fbca2e7be02ce7061d289d9ad07b9ee38c5f5b0f33d5a6c413df5bfd6365 WHIRLPOOL 71985a6a559734b36e005d8e87586759eb2a98e55804c01d2d230cd995af3d01f6fed9b59c8279349f4c3daa8d847af9162df9ec5c261679dc588360b9e9e05a
diff --git a/app-misc/inputlircd/files/inputlircd.conf b/app-misc/inputlircd/files/inputlircd.conf
new file mode 100644
index 000000000000..7e718ebdfb5b
--- /dev/null
+++ b/app-misc/inputlircd/files/inputlircd.conf
@@ -0,0 +1,2 @@
+# Options to pass to the lircd process
+INPUTLIRCD_OPTS="/dev/input/event2"
diff --git a/app-misc/inputlircd/files/inputlircd.init b/app-misc/inputlircd/files/inputlircd.init
new file mode 100755
index 000000000000..921337847b1b
--- /dev/null
+++ b/app-misc/inputlircd/files/inputlircd.init
@@ -0,0 +1,13 @@
+#!/sbin/runscript
+
+start() {
+ ebegin "Starting lircd"
+ start-stop-daemon --start --quiet --exec /usr/sbin/inputlircd -- ${INPUTLIRCD_OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping lircd"
+ start-stop-daemon --stop --quiet --exec /usr/sbin/inputlircd
+ eend $?
+}
diff --git a/app-misc/inputlircd/files/inputlircd.init.2 b/app-misc/inputlircd/files/inputlircd.init.2
new file mode 100755
index 000000000000..2acdedc81ba2
--- /dev/null
+++ b/app-misc/inputlircd/files/inputlircd.init.2
@@ -0,0 +1,17 @@
+#!/sbin/runscript
+
+depend() {
+ provide lirc
+}
+
+start() {
+ ebegin "Starting inputlircd"
+ start-stop-daemon --start --quiet --exec /usr/sbin/inputlircd -- ${INPUTLIRCD_OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping inputlircd"
+ start-stop-daemon --stop --quiet --exec /usr/sbin/inputlircd
+ eend $?
+}
diff --git a/app-misc/inputlircd/inputlircd-0.0.1_pre11-r1.ebuild b/app-misc/inputlircd/inputlircd-0.0.1_pre11-r1.ebuild
new file mode 100644
index 000000000000..6d10a0bf1d40
--- /dev/null
+++ b/app-misc/inputlircd/inputlircd-0.0.1_pre11-r1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit toolchain-funcs
+
+DESCRIPTION="Inputlirc daemon to utilize /dev/input/event*"
+HOMEPAGE="http://svn.sliepen.eu.org/inputlirc/trunk"
+SRC_URI="http://gentooexperimental.org/~genstef/dist/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ sed -e 's:$(CFLAGS):$(CFLAGS) $(LDFLAGS):' -i Makefile || die
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" || die "make failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" PREFIX=/usr install || die "emake install failed"
+
+ newinitd "${FILESDIR}"/inputlircd.init.2 inputlircd
+ newconfd "${FILESDIR}"/inputlircd.conf inputlircd
+}
diff --git a/app-misc/inputlircd/inputlircd-0.0.1_pre11.ebuild b/app-misc/inputlircd/inputlircd-0.0.1_pre11.ebuild
new file mode 100644
index 000000000000..b6f54e039cda
--- /dev/null
+++ b/app-misc/inputlircd/inputlircd-0.0.1_pre11.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+DESCRIPTION="Inputlirc daemon to utilize /dev/input/event*"
+HOMEPAGE="http://svn.sliepen.eu.org/inputlirc/trunk"
+SRC_URI="http://gentooexperimental.org/~genstef/dist/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 ia64 ppc ppc64 x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+src_install() {
+ emake DESTDIR="${D}" PREFIX=/usr install || die "emake install failed"
+
+ newinitd "${FILESDIR}"/inputlircd.init inputlircd
+ newconfd "${FILESDIR}"/inputlircd.conf inputlircd
+}
diff --git a/app-misc/inputlircd/inputlircd-0.0.1_pre15.ebuild b/app-misc/inputlircd/inputlircd-0.0.1_pre15.ebuild
new file mode 100644
index 000000000000..952cb5444f5b
--- /dev/null
+++ b/app-misc/inputlircd/inputlircd-0.0.1_pre15.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit toolchain-funcs
+
+DESCRIPTION="Inputlirc daemon to utilize /dev/input/event*"
+HOMEPAGE="http://svn.sliepen.eu.org/inputlirc/trunk"
+SRC_URI="http://gentooexperimental.org/~genstef/dist/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ sed -e 's:$(CFLAGS):$(CFLAGS) $(LDFLAGS):' -i Makefile || die
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" || die "make failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" PREFIX=/usr install || die "emake install failed"
+
+ newinitd "${FILESDIR}"/inputlircd.init.2 inputlircd
+ newconfd "${FILESDIR}"/inputlircd.conf inputlircd
+}
diff --git a/app-misc/inputlircd/metadata.xml b/app-misc/inputlircd/metadata.xml
new file mode 100644
index 000000000000..a6b9e38a1b93
--- /dev/null
+++ b/app-misc/inputlircd/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>media-tv</herd>
+</pkgmetadata>
diff --git a/app-misc/interceptty/Manifest b/app-misc/interceptty/Manifest
new file mode 100644
index 000000000000..093da40d942e
--- /dev/null
+++ b/app-misc/interceptty/Manifest
@@ -0,0 +1 @@
+DIST interceptty-0.6.tar.gz 95911 SHA256 0fe4b881a56c9fe94d3409f303839e03e7b43cfb1fb0d6a3ba3255fa2b190641 SHA512 0aab17a3f0462d738befae62ffc78c9b72042fd9e9234ce55731b3b7bcef763684c46992cc8b814e982824964963bb1aba14111e0a49c43d3ca6b43e4b9f1095 WHIRLPOOL 1a0c481cab60006238aba35da7a2d7347ad2a9e1435e3b092fe5b1beccb02ce5aef68f7a2cd4951b4827e09a895152dabe5330d217f6eadc4b668718a0095d23
diff --git a/app-misc/interceptty/interceptty-0.6.ebuild b/app-misc/interceptty/interceptty-0.6.ebuild
new file mode 100644
index 000000000000..6eda3a8b98f9
--- /dev/null
+++ b/app-misc/interceptty/interceptty-0.6.ebuild
@@ -0,0 +1,19 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+DESCRIPTION="a program that can sit between a serial port and an application"
+HOMEPAGE="http://www.suspectclass.com/~sgifford/interceptty/"
+SRC_URI="http://www.suspectclass.com/~sgifford/${PN}/files/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+src_install() {
+ into /usr
+ dobin interceptty interceptty-nicedump || die
+ dodoc AUTHORS NEWS README TODO
+ doman interceptty.1
+}
diff --git a/app-misc/interceptty/metadata.xml b/app-misc/interceptty/metadata.xml
new file mode 100644
index 000000000000..c6d862855eb5
--- /dev/null
+++ b/app-misc/interceptty/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>
+ <email>robbat2@gentoo.org</email>
+</maintainer>
+</pkgmetadata>
diff --git a/app-misc/irtrans-irclient/Manifest b/app-misc/irtrans-irclient/Manifest
new file mode 100644
index 000000000000..536936f82741
--- /dev/null
+++ b/app-misc/irtrans-irclient/Manifest
@@ -0,0 +1,2 @@
+DIST irclient-src-6.01.05.tar.gz 69814 SHA256 c37fdff95794e343505f57ad5782a3100c3a3a572c3ab8064fe93de94b00efca SHA512 47d76f66ce6422252624dd805fbff042bcd9443f04b656cb2b20267dbf42a57345a0ac5cda0204a44535088a06c1232d2dea6305ad3561c78a7330774c1e998e WHIRLPOOL 7db08272d9de796ac68eaf5ee854488c03fd19ee69135afb45a888100c12f5238720d4dc5c6f4f26e397de416276a3b1bbba2637fbcce27ca28051c2828ea075
+DIST irtrans-irclient-5.11.04-ip_assign-1.patch.bz2 5051 SHA256 094ee33b2a7a7fb4752bda0896a7a23895fa8eba86164fe9e0c4e63790e34739 SHA512 9be72f7f6fcc24c9bda73cf5dd8a2c112c6cb82e2ef50d40c17b43d7dcb8f11bcf8bc0ebb914046b5429bce1b4936278ade936db6c916384fbd637a300f528cf WHIRLPOOL 50f8ff9ce0cb6f555160a9f5e93be0dd91cde28defad82de6e670e10d011a5bc48839c953c2cd0b21f178c9a81f5393d18847fd2164a22a65f986445ed2b88b1
diff --git a/app-misc/irtrans-irclient/irtrans-irclient-6.01.05.ebuild b/app-misc/irtrans-irclient/irtrans-irclient-6.01.05.ebuild
new file mode 100644
index 000000000000..0562c8e03dca
--- /dev/null
+++ b/app-misc/irtrans-irclient/irtrans-irclient-6.01.05.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="2"
+
+inherit eutils flag-o-matic toolchain-funcs
+
+RESTRICT="strip"
+
+DESCRIPTION="IRTrans Server"
+HOMEPAGE="http://www.irtrans.de"
+SRC_URI="http://www.irtrans.de/download/Client/irclient-src.tar.gz -> irclient-src-${PV}.tar.gz
+ http://ftp.disconnected-by-peer.at/irtrans/${PN}-5.11.04-ip_assign-1.patch.bz2"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~x86 ~amd64 ~arm"
+IUSE=""
+
+DEPEND=""
+RDEPEND="${RDEPND}"
+
+S="${WORKDIR}"
+
+src_prepare() {
+ epatch "${WORKDIR}/${PN}"-5.11.04-ip_assign-1.patch
+}
+
+src_compile() {
+
+ append-flags -DLINUX
+
+ # Set sane defaults (arm target has no -D flags added)
+ irbuild=irclient_arm
+ irclient=irclient
+ ipbuild=ip_assign_arm
+ ip_assign=ip_assign
+
+ # change variable by need
+ if use x86 ; then
+ irbuild=irclient
+ ipbuild=ip_assign
+ elif use amd64 ; then
+ irbuild=irclient64
+ irclient=irclient64
+ ipbuild=ip_assign64
+ ip_assign=ip_assign64
+ fi
+
+ # Some output for bugreport
+ einfo "CFLAGS=\"${CFLAGS}\""
+ einfo "Build client Target=\"${irbuild}\""
+ einfo "Build client Binary=\"${irclient}\""
+ einfo "Build ip_assign Target=\"${ipbuild}\""
+ einfo "Build ip_assign Binary=\"${ip_assign}\""
+
+ # Build
+ emake CXX="$(tc-getCXX)" CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" CXXFLAGS="${CXXFLAGS}" "${irbuild}" || die "emake irclient failed"
+ emake CXX="$(tc-getCXX)" CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" CXXFLAGS="${CXXFLAGS}" "${ipbuild}" || die "emake ip_assign failed"
+}
+
+src_install() {
+
+ newbin "${WORKDIR}/${irclient}" irclient
+ newbin "${WORKDIR}/${ip_assign}" ip_assign
+}
diff --git a/app-misc/irtrans-irclient/metadata.xml b/app-misc/irtrans-irclient/metadata.xml
new file mode 100644
index 000000000000..72a97e453c9c
--- /dev/null
+++ b/app-misc/irtrans-irclient/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>proxy-maintainers</herd>
+<maintainer>
+<email>mario.fetka@gmail.com</email>
+<name>Mario Fetka</name>
+<description>Proxied maintainer</description>
+</maintainer>
+
+<maintainer>
+<email>hd_brummy@gentoo.org</email>
+<name>Joerg Bornkessel</name>
+<description>Proxying maintainer</description>
+</maintainer>
+</pkgmetadata>
+
diff --git a/app-misc/irtrans-irserver/Manifest b/app-misc/irtrans-irserver/Manifest
new file mode 100644
index 000000000000..36ea3b72f752
--- /dev/null
+++ b/app-misc/irtrans-irserver/Manifest
@@ -0,0 +1,2 @@
+DIST irserver-6.09.04.tar.gz 665809 SHA256 ad7d8d42afef595a596c086d5df496fabe788147e26b15a8ec43e814583cffb1 SHA512 d63f8bc79c2a5a8050c5ac21b086be3826f66102dc2f111bf8084b57756c6bcd84615d1675781b26520c34f7a3e08726dbc4ae94dd4f4afc446383597c433399 WHIRLPOOL b9389b4c316d481ff9434501c38009e667ff560dd88a69d27dcb6e577a715439d7c62f1764e2cc5879b9e069d5f07e4ca8454d4c28397bb32c2b67db20598213
+DIST irserver-src-6.09.04.tar.gz 200481 SHA256 0ce8baa3216d0c45bec0fb8384363c5a4ae93b384654d758373f912648ffb930 SHA512 09c38066e64404808856a89a8451e41a6eb8a51b98635b1515fc07050f25b4552b9cc912bd9612c6746ba67cd9b1bb45f3d4871dfa820c9e9bd810ede20f28d6 WHIRLPOOL 2fff3f6a24f6d74efc98a5ad818c6a098f176e97df9d0a8be3ac89109c71350a4ba88feb4b78ca947dab6bf515c29d86b5c61cdf9523dc13bc2782697a2d8fae
diff --git a/app-misc/irtrans-irserver/files/irtrans-server.confd b/app-misc/irtrans-irserver/files/irtrans-server.confd
new file mode 100644
index 000000000000..fb2f5b0e51ca
--- /dev/null
+++ b/app-misc/irtrans-irserver/files/irtrans-server.confd
@@ -0,0 +1,13 @@
+# Config for irtrans-server
+# $Id$
+
+# Controls which information is logged. Standard is loglevel 1.
+# Possible values are 0-4. 0=Nothing is logged. 4=debug output.
+LOGLEVEL="1"
+
+# Starts the irserver as a LINUX Service.
+# run '/usr/bin/irtrans --help' for all Parameters
+OPT="-daemon"
+
+# LINUX Devices: /dev/ttyS0 - /dev/ttySn or /dev/ttyUSB0 - /dev/ttyUSBn for USB devices
+IRDEVICE="/dev/ttyUSB0"
diff --git a/app-misc/irtrans-irserver/files/irtrans-server.initd b/app-misc/irtrans-irserver/files/irtrans-server.initd
new file mode 100644
index 000000000000..7e77d4d2edd2
--- /dev/null
+++ b/app-misc/irtrans-irserver/files/irtrans-server.initd
@@ -0,0 +1,22 @@
+#!/sbin/runscript
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+depend() {
+ need net
+ provide lirc
+}
+
+start() {
+ ebegin "Starting IRTrans"
+ eval start-stop-daemon --start --quiet --exec /usr/bin/irserver --pidfile /var/run/irtrans-irserver.pid \
+ -- -logfile /var/log/irserver.log -loglevel "${LOGLEVEL}" -pidfile /var/run/irtrans-irserver.pid "${OPT}" "${IRDEVICE}"
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping IRTrans"
+ start-stop-daemon --stop --quiet --pidfile /var/run/irtrans-irserver.pid
+ eend $?
+}
diff --git a/app-misc/irtrans-irserver/irtrans-irserver-6.09.04.ebuild b/app-misc/irtrans-irserver/irtrans-irserver-6.09.04.ebuild
new file mode 100644
index 000000000000..f97ae980b67b
--- /dev/null
+++ b/app-misc/irtrans-irserver/irtrans-irserver-6.09.04.ebuild
@@ -0,0 +1,84 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+inherit eutils flag-o-matic toolchain-funcs mono-env multilib
+
+RESTRICT="strip"
+
+DESCRIPTION="IRTrans Server"
+HOMEPAGE="http://www.irtrans.de"
+SRC_URI="http://ftp.disconnected-by-peer.at/irtrans/irserver-src-${PV}.tar.gz
+ http://ftp.disconnected-by-peer.at/irtrans/irserver-${PV}.tar.gz
+ http://www.irtrans.de/download/Server/Linux/irserver-src.tar.gz -> irserver-src-${PV}.tar.gz
+ http://www.irtrans.de/download/Server/Linux/irserver.tar.gz -> irserver-${PV}.tar.gz"
+
+LICENSE="BSD GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64 ~arm"
+IUSE="mono"
+
+RDEPEND="mono? ( >=dev-lang/mono-2.10.5 )"
+
+S="${WORKDIR}"
+
+src_prepare() {
+ sed -e 's!^ODIRARM = .*!ODIRARM = n800!' -i makefile
+}
+
+src_compile() {
+ append-flags -DLINUX -DMEDIACENTER
+ append-ldflags --static
+
+ # Set sane defaults (arm target has no -D flags added)
+ irbuild=irserver_arm_noccf
+ irserver=irserver
+
+ # change variable by need
+ if use x86 ; then
+ irbuild=irserver
+ elif use amd64 ; then
+ irbuild=irserver64
+ irserver=irserver64
+ elif use arm ; then
+ irbuild=irserver_arm
+ fi
+
+ # Some output for bugreport
+ einfo "CFLAGS=\"${CFLAGS}\""
+ einfo "Build Target=\"${irbuild}\""
+ einfo "Build Binary=\"${irserver}\""
+
+ # Build
+ emake CXX="$(tc-getCXX)" CC="$(tc-getCC)" CFLAGS="${CFLAGS}" \
+ CXXFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS}" "${irbuild}"
+}
+
+src_install() {
+ newbin "${WORKDIR}/${irserver}" irserver
+
+ keepdir /etc/irserver/remotes
+
+ docinto remotes
+ dodoc remotes/*
+
+ newinitd "${FILESDIR}"/irtrans-server.initd irtrans-server
+ newconfd "${FILESDIR}"/irtrans-server.confd irtrans-server
+
+ if use mono ; then
+ # Wrapper script to launch mono
+ make_wrapper irguiclient "mono /usr/$(get_libdir)/${PN}/GUIClient.exe"
+
+ insinto /usr/$(get_libdir)/${PN}/
+ exeinto /usr/$(get_libdir)/${PN}/
+
+ # The Libs and Translations
+ doins GUIClient/*.tra
+ doexe GUIClient/*.dll
+
+ # The actual executable
+ doexe GUIClient/*.exe
+ fi
+}
diff --git a/app-misc/irtrans-irserver/metadata.xml b/app-misc/irtrans-irserver/metadata.xml
new file mode 100644
index 000000000000..efcfc9083432
--- /dev/null
+++ b/app-misc/irtrans-irserver/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>proxy-maintainers</herd>
+ <maintainer>
+ <email>mario.fetka@gmail.com</email>
+ <name>Mario Fetka</name>
+ <description>Proxied maintainer</description>
+ </maintainer>
+ <maintainer>
+ <email>hd_brummy@gentoo.org</email>
+ <name>Joerg Bornkessel</name>
+ <description>Proxying maintainer</description>
+ </maintainer>
+ <use>
+ <flag name='mono'>Enable mono support</flag>
+ </use>
+</pkgmetadata>
+
diff --git a/app-misc/jail/Manifest b/app-misc/jail/Manifest
new file mode 100644
index 000000000000..3bcd9b67ff1b
--- /dev/null
+++ b/app-misc/jail/Manifest
@@ -0,0 +1 @@
+DIST jail-2.0.tar.gz 31095 SHA256 0ecdcc5230c99a7382d168ea60e9253c6bf5eec60b50f04f2588185c1974b07e SHA512 dfca62091b34f9adbe4e94de1dbf0ccd31bd3f8e492ea9788f712e97271b389475bc19e0390c12445353c4f73e5ba2458360bf55f5f64491705e82192db985ae WHIRLPOOL bd8619ae57d0e56d164397e8a0fb795ed2fe7215064aef5cfbfb293ea3325d5177b673459011781b0bbeddf2b0327987d5fb95a5dfe957b359908ca10db5147c
diff --git a/app-misc/jail/files/jail-1.9-gentoo.patch b/app-misc/jail/files/jail-1.9-gentoo.patch
new file mode 100644
index 000000000000..74d48561004c
--- /dev/null
+++ b/app-misc/jail/files/jail-1.9-gentoo.patch
@@ -0,0 +1,130 @@
+--- a/install.sh Fri Oct 26 11:37:07 2001
++++ b/install.sh Sat Jul 20 04:43:09 2002
+@@ -23,7 +23,7 @@
+ #
+ ##############################################################################
+
+-TMPFILE=/tmp/jail.tmp
++TMPFILE=jail.tmp
+
+ # ----------------------------------------------------------------------------
+
+@@ -63,16 +63,16 @@
+
+ gen_jail_conf() {
+
+-cp etc/jail.conf /tmp/jail.conf.tmp
++cp etc/jail.conf jail.conf.tmp
+
+-parse_tag /tmp/jail.conf.tmp __VERSION__ $1
+-parse_tag /tmp/jail.conf.tmp __ARCH__ $2
+-parse_tag /tmp/jail.conf.tmp __DEBUG__ $3
+-parse_tag /tmp/jail.conf.tmp __INSTALLDIR__ $4
+-
+-mv /tmp/jail.conf.tmp /tmp/jail.conf
+-install_file /tmp/jail.conf $4/etc $5 $6 $7
+-rm /tmp/jail.conf
++parse_tag jail.conf.tmp __VERSION__ $1
++parse_tag jail.conf.tmp __ARCH__ $2
++parse_tag jail.conf.tmp __DEBUG__ $3
++parse_tag jail.conf.tmp __INSTALLDIR__ $4
++
++mv jail.conf.tmp jail.conf
++install_file jail.conf $4/etc $5 $6 $7
++rm jail.conf
+
+ }
+
+@@ -80,13 +80,13 @@
+
+ gen_libjail() {
+
+-cp lib/libjail.pm /tmp/libjail.pm.tmp
++cp lib/libjail.pm libjail.pm.tmp
+
+-parse_tag /tmp/libjail.pm.tmp __INSTALLDIR__ $1
++parse_tag libjail.pm.tmp __INSTALLDIR__ $1
+
+-mv /tmp/libjail.pm.tmp /tmp/libjail.pm
+-install_file /tmp/libjail.pm $1/lib $2 $3 $4
+-rm /tmp/libjail.pm
++mv libjail.pm.tmp libjail.pm
++install_file libjail.pm $1/lib $2 $3 $4
++rm libjail.pm
+
+ }
+
+@@ -94,14 +94,14 @@
+
+ gen_mkenv() {
+
+-cp bin/mkjailenv /tmp/mkjailenv.tmp
++cp bin/mkjailenv mkjailenv.tmp
+
+-parse_tag /tmp/mkjailenv.tmp __INSTALLDIR__ $1
+-parse_tag /tmp/mkjailenv.tmp __PERL__ $2
++parse_tag mkjailenv.tmp __INSTALLDIR__ $1
++parse_tag mkjailenv.tmp __PERL__ $2
+
+-mv /tmp/mkjailenv.tmp /tmp/mkjailenv
+-install_file /tmp/mkjailenv $1/bin $3 $4 $5
+-rm /tmp/mkjailenv
++mv mkjailenv.tmp mkjailenv
++install_file mkjailenv $1/bin $3 $4 $5
++rm mkjailenv
+
+ }
+
+@@ -109,14 +109,14 @@
+
+ gen_addjailsw() {
+
+-cp bin/addjailsw /tmp/addjailsw.tmp
++cp bin/addjailsw addjailsw.tmp
+
+-parse_tag /tmp/addjailsw.tmp __INSTALLDIR__ $1
+-parse_tag /tmp/addjailsw.tmp __PERL__ $2
++parse_tag addjailsw.tmp __INSTALLDIR__ $1
++parse_tag addjailsw.tmp __PERL__ $2
+
+-mv /tmp/addjailsw.tmp /tmp/addjailsw
+-install_file /tmp/addjailsw $1/bin $3 $4 $5
+-rm /tmp/addjailsw
++mv addjailsw.tmp addjailsw
++install_file addjailsw $1/bin $3 $4 $5
++rm addjailsw
+
+ }
+
+@@ -125,14 +125,14 @@
+
+ gen_addjailuser() {
+
+-cp bin/addjailuser /tmp/addjailuser.tmp
++cp bin/addjailuser addjailuser.tmp
+
+-parse_tag /tmp/addjailuser.tmp __INSTALLDIR__ $1
+-parse_tag /tmp/addjailuser.tmp __PERL__ $2
++parse_tag addjailuser.tmp __INSTALLDIR__ $1
++parse_tag addjailuser.tmp __PERL__ $2
+
+-mv /tmp/addjailuser.tmp /tmp/addjailuser
+-install_file /tmp/addjailuser $1/bin $3 $4 $5
+-rm /tmp/addjailuser
++mv addjailuser.tmp addjailuser
++install_file addjailuser $1/bin $3 $4 $5
++rm addjailuser
+
+ }
+
+--- a/src/preinstall.sh Fri Oct 26 11:36:09 2001
++++ b/src/preinstall.sh Sat Jul 20 04:44:11 2002
+@@ -23,7 +23,7 @@
+ #
+ ##############################################################################
+
+-TMPFILE=/tmp/jail.tmp
++TMPFILE=jail.tmp
+
+
+ # ----------------------------------------------------------------------------
diff --git a/app-misc/jail/files/jail-1.9-ldflags.patch b/app-misc/jail/files/jail-1.9-ldflags.patch
new file mode 100644
index 000000000000..6b9e5731bb27
--- /dev/null
+++ b/app-misc/jail/files/jail-1.9-ldflags.patch
@@ -0,0 +1,11 @@
+--- a/src/Makefile 2001-10-29 18:40:48.000000000 +0100
++++ b/src/Makefile 2010-09-17 07:28:09.000000000 +0200
+@@ -60,7 +60,7 @@
+ all: jail
+
+ jail: jail.c $(OBJ)
+- $(CC) $(CFLAGS) $(INCLUDE) jail.c -o jail $(OBJ) $(LIBS) && \
++ $(CC) $(CFLAGS) $(LDFLAGS) $(INCLUDE) jail.c -o jail $(OBJ) $(LIBS) && \
+ cp jail ../bin
+
+ clean:
diff --git a/app-misc/jail/files/jail-1.9-multiuser-rsa.patch b/app-misc/jail/files/jail-1.9-multiuser-rsa.patch
new file mode 100644
index 000000000000..e0aad4f65c72
--- /dev/null
+++ b/app-misc/jail/files/jail-1.9-multiuser-rsa.patch
@@ -0,0 +1,44 @@
+--- a/src/jail.c 2004-09-19 23:48:14.000000000 -0500
++++ b/src/jail.c 2004-09-20 00:07:48.000000000 -0500
+@@ -115,6 +115,20 @@
+ #include "helpers.h"
+ #include "types.h"
+
++
++
++void make_jail_dir( char* dir )
++{
++ for( ; *dir != '\0'; ++dir )
++ {
++ if( *dir == '.' )
++ {
++ *dir = '\0';
++ break;
++ }
++ }
++}
++
+ //////////////////////////////////////////////////////////////////////////////
+ //
+ // main()
+@@ -211,6 +225,7 @@
+ fprintf(stderr,"jail: can't get passwd info for uid %d\n",uid);
+ exit(-1);
+ }
++ make_jail_dir(pwdent->dir);
+
+ //
+ // create the terminal devices here
+@@ -289,7 +304,6 @@
+ free(pwdent->dir);
+ pwdent->dir = tmp_str;
+
+-
+ #if DEBUG != 0
+ fprintf(stderr,"jail: doing chdir(%s)\n",pwdent->dir);
+ #endif
+@@ -494,4 +508,3 @@
+ return(-4);
+ }
+
+-
diff --git a/app-misc/jail/files/jail-1.9-wrongshell.patch b/app-misc/jail/files/jail-1.9-wrongshell.patch
new file mode 100644
index 000000000000..1924337d06e4
--- /dev/null
+++ b/app-misc/jail/files/jail-1.9-wrongshell.patch
@@ -0,0 +1,11 @@
+--- a/lib/arch/generic/functions 2001-10-26 04:36:09.000000000 -0500
++++ b/lib/arch/generic/functions 2003-07-30 18:23:57.000000000 -0500
+@@ -831,7 +831,7 @@
+
+ if (!$found || !-e $SHELLS_FILE) {
+ open(F,">>".$SHELLS_FILE);
+- print F "$INSTALL_DIR/jail\n";
++ print F "$INSTALL_DIR/bin/jail\n";
+ close(F);
+ }
+ }
diff --git a/app-misc/jail/jail-2.0.ebuild b/app-misc/jail/jail-2.0.ebuild
new file mode 100644
index 000000000000..79b1b7181f8f
--- /dev/null
+++ b/app-misc/jail/jail-2.0.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+inherit eutils flag-o-matic
+
+DESCRIPTION="a tool that builds a chroot and configures all the required files, directories and libraries"
+HOMEPAGE="https://github.com/spiculator/jail"
+SRC_URI="https://github.com/spiculator/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE=""
+
+DEPEND=">=sys-apps/sed-4"
+RDEPEND="dev-lang/perl
+ dev-util/strace"
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${PN}-1.9-gentoo.patch \
+ "${FILESDIR}"/${PN}-1.9-wrongshell.patch \
+ "${FILESDIR}"/${PN}-1.9-multiuser-rsa.patch \
+ "${FILESDIR}"/${PN}-1.9-ldflags.patch
+}
+
+src_compile() {
+ # configuration files should be installed in /etc not /usr/etc
+ sed -i "s:\$4/etc:\${D}/etc:g" install.sh || die
+
+ # the destination directory should be /usr not /usr/local
+ sed -i -e "s:usr/local:${D}/usr:g" \
+ -e "s:^COPT =.*:COPT = -Wl,-z,no:g" src/Makefile || die
+
+ # Below didn't work. Don't know why
+ #append-ldflags -Wl,-z,now
+ emake -C src CC="$(tc-getCC)" CFLAGS="${CFLAGS}"
+}
+
+src_install() {
+ emake -C src install
+
+ # remove //var/tmp/portage/${P}/image//usr from files
+ FILES=( "${D}/usr/bin/mkjailenv"
+ "${D}/usr/bin/addjailsw"
+ "${D}/usr/bin/addjailuser"
+ "${D}/etc/jail.conf"
+ "${D}/usr/lib/libjail.pm"
+ "${D}/usr/lib/arch/generic/definitions"
+ "${D}/usr/lib/arch/generic/functions"
+ "${D}/usr/lib/arch/linux/definitions"
+ "${D}/usr/lib/arch/linux/functions"
+ "${D}/usr/lib/arch/freebsd/definitions"
+ "${D}/usr/lib/arch/freebsd/functions"
+ "${D}/usr/lib/arch/irix/definitions"
+ "${D}/usr/lib/arch/irix/functions"
+ "${D}/usr/lib/arch/solaris/definitions"
+ "${D}/usr/lib/arch/solaris/functions" )
+
+ for f in "${FILES[@]}"; do
+ sed -i "s:/${D}/usr:/usr:g" ${f} || die
+ done
+
+ sed -i "s:/usr/etc:/etc:" "${D}"/usr/lib/libjail.pm || die
+
+ dodoc doc/{CHANGELOG,INSTALL,README,SECURITY,VERSION}
+}
diff --git a/app-misc/jail/metadata.xml b/app-misc/jail/metadata.xml
new file mode 100644
index 000000000000..48f89fef7f38
--- /dev/null
+++ b/app-misc/jail/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>proxy-maintainers</herd>
+ <maintainer>
+ <email>spiculator@gmail.com</email>
+ <name>Sergey Redin</name>
+ <description>Maintainer, Assign bugs</description>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">spiculator/jail</remote-id>
+ <bugs-to>https://github.com/spiculator/jail/issues</bugs-to>
+ </upstream>
+ <longdescription>
+Jail Chroot Project is an attempt of write a tool that builds a chrooted environment.
+The main goal of Jail is to be as simple as possible, and highly portable. The most
+difficult step when building a chrooted environment is to set up the right libraries and
+files. Here, Jail comes to the rescue with a tool to automagically configures and builds
+all the required files, directories and libraries.</longdescription>
+</pkgmetadata>
diff --git a/app-misc/jdictionary/Manifest b/app-misc/jdictionary/Manifest
new file mode 100644
index 000000000000..c5bc092a2244
--- /dev/null
+++ b/app-misc/jdictionary/Manifest
@@ -0,0 +1 @@
+DIST jdictionary-1_8.zip 467815 SHA256 0243ca1031e6bbdb3f12c10b7f2d267ce9a213e934af775aeb008e2e2a6db826 SHA512 87b46dbc1f8408a83bc8ec41aa842c6cb82519eb40cb09478f28dd7f18478e7e35214c66503b84facca94ddc208136a7747c9f0b5c5981d511ba90660aef7af2 WHIRLPOOL 48fa27857f0e1e9f480f523165d686da3861d1e614c0dd0016e0c3f2517e2d1586ad04fed94f1af96ff54b476e6350efae03a566a4089a27d49a6f8a8a663007
diff --git a/app-misc/jdictionary/jdictionary-1.8-r2.ebuild b/app-misc/jdictionary/jdictionary-1.8-r2.ebuild
new file mode 100644
index 000000000000..11166a40fb17
--- /dev/null
+++ b/app-misc/jdictionary/jdictionary-1.8-r2.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit java-pkg-2 eutils
+
+DESCRIPTION="A online Java-based dictionary"
+HOMEPAGE="http://jdictionary.sourceforge.net/"
+SRC_URI="mirror://sourceforge/jdictionary/jdictionary-${PV/./_}.zip"
+
+IUSE=""
+SLOT="0"
+LICENSE="LGPL-2.1"
+KEYWORDS="amd64 ppc x86"
+
+RDEPEND=">=virtual/jre-1.3"
+DEPEND=">=virtual/jdk-1.3
+ app-arch/unzip"
+S="${WORKDIR}/${PN}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ mkdir compiled
+
+ jar xf ${PN}.jar || die "failed to unpack jar"
+ cp -r resources compiled
+}
+
+src_compile() {
+ ejavac -classpath . $(find . -name \*.java) -d compiled || die "failed to build"
+ jar cf ${PN}.jar -C compiled . || die "failed to make jar"
+}
+
+src_install() {
+ java-pkg_dojar ${PN}.jar
+
+ java-pkg_dolauncher ${PN} --main info.jdictionary.JDictionary
+ make_desktop_entry ${PN} JDictionary
+}
diff --git a/app-misc/jdictionary/jdictionary-1.8-r3.ebuild b/app-misc/jdictionary/jdictionary-1.8-r3.ebuild
new file mode 100644
index 000000000000..3008a3199501
--- /dev/null
+++ b/app-misc/jdictionary/jdictionary-1.8-r3.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit java-pkg-2 eutils
+
+DESCRIPTION="A online Java-based dictionary"
+HOMEPAGE="http://jdictionary.sourceforge.net/"
+SRC_URI="mirror://sourceforge/jdictionary/jdictionary-${PV/./_}.zip"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+RDEPEND="
+ >=virtual/jre-1.5"
+DEPEND="
+ >=virtual/jdk-1.5
+ app-arch/unzip"
+
+S="${WORKDIR}/${PN}"
+
+java_prepare() {
+ mkdir compiled || die
+ unpack ./${PN}.jar || die
+ cp -r resources compiled || die
+
+ find \( -name '*.jar' -o -name '*.class' \) -exec rm {} + || die
+}
+
+src_compile() {
+ ejavac -classpath . -encoding ISO-8859-1 $(find . -name \*.java) -d compiled || die
+ jar cf ${PN}.jar -C compiled . || die
+}
+
+src_install() {
+ java-pkg_dojar ${PN}.jar
+
+ java-pkg_dolauncher ${PN} --main info.jdictionary.JDictionary
+ make_desktop_entry ${PN} JDictionary
+}
diff --git a/app-misc/jdictionary/metadata.xml b/app-misc/jdictionary/metadata.xml
new file mode 100644
index 000000000000..2c92fc556776
--- /dev/null
+++ b/app-misc/jdictionary/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>java</herd>
+ <upstream>
+ <remote-id type="sourceforge">jdictionary</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/jitac/Manifest b/app-misc/jitac/Manifest
new file mode 100644
index 000000000000..aee8c009ffd8
--- /dev/null
+++ b/app-misc/jitac/Manifest
@@ -0,0 +1 @@
+DIST jitac-0.3.0.src.jar 141514 SHA256 83ec678cb805a3763683a1d6eba2ec4e949a54fbff71b925de50d193f7345569 SHA512 8a21e80246e450c9afb7e92cad14b8901fab7e039a7312df0b87cdab307c68a3db8a1090cb044b74c50eee47dd480f8c8d1465111e2f508584d38c9ef31511f8 WHIRLPOOL bbe0d05701a69d8735ff1bd1413f1b96385c3a48ac623b73f1ba5ea892127fc40912abb81fabb6d00f248d29ed107f690f7a287a1ead37a29efab95b76494c67
diff --git a/app-misc/jitac/jitac-0.3.0.ebuild b/app-misc/jitac/jitac-0.3.0.ebuild
new file mode 100644
index 000000000000..1f3427746dbe
--- /dev/null
+++ b/app-misc/jitac/jitac-0.3.0.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit java-pkg-2
+
+DESCRIPTION="An image to ASCII converter written in Java"
+HOMEPAGE="http://www.roqe.org/jitac/"
+SRC_URI="http://www.roqe.org/jitac/${P}.src.jar"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE="doc"
+
+COMMON_DEP="
+ dev-java/sun-jimi:0"
+RDEPEND="${COMMON_DEP}
+ >=virtual/jre-1.5"
+DEPEND="${COMMON_DEP}
+ >=virtual/jdk-1.5"
+
+S=${WORKDIR}
+
+src_unpack() {
+ jar -xvf "${DISTDIR}"/${A} || die "failed to unpack"
+}
+
+src_compile() {
+ ejavac -classpath $(java-pkg_getjars sun-jimi):. $(find -name *.java)
+ find . -name "*.class" -or -name "*.bdf" \
+ -or -name "*.properties" -or -name "README" \
+ | xargs jar -cf ${PN}.jar || die "failed to create jar"
+}
+
+src_install() {
+ java-pkg_dojar ${PN}.jar
+ java-pkg_dolauncher ${PN} --main org.roqe.jitac.Jitac
+
+ dodoc org/roqe/jitac/README
+ use doc && java-pkg_dohtml -r org/roqe/jitac/docs/*
+}
diff --git a/app-misc/jitac/metadata.xml b/app-misc/jitac/metadata.xml
new file mode 100644
index 000000000000..838c00a4a448
--- /dev/null
+++ b/app-misc/jitac/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>java</herd>
+</pkgmetadata>
diff --git a/app-misc/jot/Manifest b/app-misc/jot/Manifest
new file mode 100644
index 000000000000..5181cd702203
--- /dev/null
+++ b/app-misc/jot/Manifest
@@ -0,0 +1 @@
+DIST athena-jot-9.0-3.src.rpm 25378 SHA256 8129a00ec17c9f4102dd3cffdb841390e01617f78b1a032d07d145e372b10c58 SHA512 b284121cbca3e98181285eac007b2c9133826c18157f9d1f983b83443f91a3e00c29b30ceb986fbbd86cda1541f0990b5d66579387b78143c250bb01453d7296 WHIRLPOOL ac1d6888c9d4d6f87472878b49017fd5cd2f957c5601e0c6fa09caee137126fa94e3412337e5f5cc7c820cddf341bbf46303869ff4c908884be9940764816d69
diff --git a/app-misc/jot/jot-9.0-r1.ebuild b/app-misc/jot/jot-9.0-r1.ebuild
new file mode 100644
index 000000000000..0618eb8e45e3
--- /dev/null
+++ b/app-misc/jot/jot-9.0-r1.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit rpm toolchain-funcs
+
+RH_REV=3
+
+DESCRIPTION="Print out increasing, decreasing, random, or redundant data"
+HOMEPAGE="http://freshmeat.net/projects/bsd-jot/"
+SRC_URI="http://www.mit.edu/afs/athena/system/rhlinux/athena-${PV}/free/SRPMS/athena-${P}-${RH_REV}.src.rpm"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86"
+IUSE=""
+
+S="${WORKDIR}/athena-${P}"
+
+src_prepare() {
+ tc-export CC
+}
diff --git a/app-misc/jot/jot-9.0.ebuild b/app-misc/jot/jot-9.0.ebuild
new file mode 100644
index 000000000000..1ec5228bff2f
--- /dev/null
+++ b/app-misc/jot/jot-9.0.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit rpm
+
+RH_REV=3
+DESCRIPTION="Print out increasing, decreasing, random, or redundant data"
+HOMEPAGE="http://freshmeat.net/projects/bsd-jot/"
+SRC_URI="http://www.mit.edu/afs/athena/system/rhlinux/athena-${PV}/free/SRPMS/athena-${P}-${RH_REV}.src.rpm"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE=""
+
+S="${WORKDIR}/athena-${P}"
+
+src_install() {
+ einstall || die
+}
diff --git a/app-misc/jot/metadata.xml b/app-misc/jot/metadata.xml
new file mode 100644
index 000000000000..8316cf847a61
--- /dev/null
+++ b/app-misc/jot/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>shell-tools</herd>
+ <upstream>
+ <remote-id type="freshmeat">bsd-jot</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/joy2key/Manifest b/app-misc/joy2key/Manifest
new file mode 100644
index 000000000000..5aa099abb8f9
--- /dev/null
+++ b/app-misc/joy2key/Manifest
@@ -0,0 +1 @@
+DIST joy2key-1.6.3.tar.bz2 70545 SHA256 cf6f452632bb661cf889d843e9ebb9f4fe6ddf4bfe14193ebf74c2d1e2b89f50 SHA512 33767058cb32aa18a418d37f48d80200a99ce12b765ec758bde7efdda575ffc78af3039584fe3ef267baaacc3724b3203d858017c945824cc949b9cd6fe97bec WHIRLPOOL 26356d8afe214c8b93056f128db79b7476a709992ec606a4006b7bf44aca182bb25de5da9d0fc26500cd101c9a522e53c4ee7d373f4ed90afee3409b554789f8
diff --git a/app-misc/joy2key/files/1.6.1-fix-configure.diff b/app-misc/joy2key/files/1.6.1-fix-configure.diff
new file mode 100644
index 000000000000..2f46050a25e5
--- /dev/null
+++ b/app-misc/joy2key/files/1.6.1-fix-configure.diff
@@ -0,0 +1,27 @@
+--- configure.ac 2001-04-10 11:36:09.000000000 -0600
++++ configure.ac 2005-03-19 08:40:56.377832328 -0700
+@@ -20,8 +20,22 @@
+ AC_DEFINE(ENABLE_CONSOLE))
+
+ AC_ARG_ENABLE(X, [ --disable-X do not compile in X features],
+- if test $enableval != no; then AC_DEFINE(ENABLE_X) export xstuff="-L$x_libraries -lX11"; fi,
+- AC_DEFINE(ENABLE_X) export X_Stuff="-L$x_libraries -lX11")
++ if test $enableval != no; then AC_DEFINE(ENABLE_X)
++ if test -n "$x_libraries";
++ then
++ export xstuff="-L$x_libraries -lX11"
++ else
++ export xstuff="-lX11"
++ fi
++ fi
++ ,
++ AC_DEFINE(ENABLE_X)
++ if test -n "$x_libraries";
++ then
++ export X_Stuff="-L$x_libraries -lX11"
++ else
++ export X_Stuff="-lX11"
++ fi)
+
+ AC_SUBST(X_Stuff)
+ AC_SUBST(x_headers)
diff --git a/app-misc/joy2key/files/fix-configure.in.diff b/app-misc/joy2key/files/fix-configure.in.diff
new file mode 100644
index 000000000000..bc3cef9b51fd
--- /dev/null
+++ b/app-misc/joy2key/files/fix-configure.in.diff
@@ -0,0 +1,27 @@
+--- configure.in 2001-04-10 11:36:09.000000000 -0600
++++ configure.in 2005-03-19 08:40:56.377832328 -0700
+@@ -20,8 +20,22 @@
+ AC_DEFINE(ENABLE_CONSOLE))
+
+ AC_ARG_ENABLE(X, [ --disable-X do not compile in X features],
+- if test $enableval != no; then AC_DEFINE(ENABLE_X) export xstuff="-L$x_libraries -lX11"; fi,
+- AC_DEFINE(ENABLE_X) export X_Stuff="-L$x_libraries -lX11")
++ if test $enableval != no; then AC_DEFINE(ENABLE_X)
++ if test -n "$x_libraries";
++ then
++ export xstuff="-L$x_libraries -lX11"
++ else
++ export xstuff="-lX11"
++ fi
++ fi
++ ,
++ AC_DEFINE(ENABLE_X)
++ if test -n "$x_libraries";
++ then
++ export X_Stuff="-L$x_libraries -lX11"
++ else
++ export X_Stuff="-lX11"
++ fi)
+
+ AC_SUBST(X_Stuff)
+ AC_SUBST(x_headers)
diff --git a/app-misc/joy2key/joy2key-1.6.3.ebuild b/app-misc/joy2key/joy2key-1.6.3.ebuild
new file mode 100644
index 000000000000..12774e2d28bb
--- /dev/null
+++ b/app-misc/joy2key/joy2key-1.6.3.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+DESCRIPTION="An application that translates joystick events to keyboard events"
+HOMEPAGE="http://sourceforge.net/projects/joy2key"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE="X"
+
+RDEPEND="X? ( x11-libs/libX11
+ x11-apps/xwininfo )"
+DEPEND="${RDEPEND}
+ X? ( x11-proto/xproto )"
+
+src_compile() {
+ econf --disable-dependency-tracking $(use_enable X)
+ emake || die "emake failed."
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed."
+ dodoc AUTHORS ChangeLog joy2keyrc.sample rawscancodes README TODO
+}
diff --git a/app-misc/joy2key/metadata.xml b/app-misc/joy2key/metadata.xml
new file mode 100644
index 000000000000..80d21cfddf3d
--- /dev/null
+++ b/app-misc/joy2key/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>
+ <email>maintainer-needed@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">joy2key</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/joymouse/Manifest b/app-misc/joymouse/Manifest
new file mode 100644
index 000000000000..80a4663451b5
--- /dev/null
+++ b/app-misc/joymouse/Manifest
@@ -0,0 +1 @@
+DIST joymouse-0.5.tar.gz 92464 SHA256 65aca171c3cbe71a3a858ecd41d0e9c89627770fc56a7d8024af21521aed0fd7 SHA512 85831ee72bf518dd8337b6d5cc7fac48bfbe9f4e038d3b05e42279e2aef58c6aa191e4027f9a06cd0e4713ac1d3f692cd5d58d1a263cbe234f590011eb8a6c2b WHIRLPOOL cadc15721c6b16024e23c19528a5e1ba1b9cee1f4c735f8a41975772039a02b9233fdfe4ea5241b9c787c538131ebc770ad6433bf4d7f722b2b11c400a9923cb
diff --git a/app-misc/joymouse/joymouse-0.5.ebuild b/app-misc/joymouse/joymouse-0.5.ebuild
new file mode 100644
index 000000000000..8c5b39dac786
--- /dev/null
+++ b/app-misc/joymouse/joymouse-0.5.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+DESCRIPTION="An application that translates joystick events to mouse events"
+HOMEPAGE="http://sourceforge.net/projects/joymouse-linux"
+SRC_URI="mirror://sourceforge/joymouse-linux/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~mips ~ppc x86"
+IUSE=""
+
+DEPEND="x11-proto/xextproto
+ x11-proto/inputproto"
+RDEPEND="x11-libs/libX11
+ x11-libs/libXtst"
+
+src_prepare() {
+ sed -i 's/printf(message/fputs(message, stdout/g' src/joymouse.c || die
+}
+
+src_install() {
+ default
+}
diff --git a/app-misc/joymouse/metadata.xml b/app-misc/joymouse/metadata.xml
new file mode 100644
index 000000000000..1ad1c0a5d386
--- /dev/null
+++ b/app-misc/joymouse/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>games</herd>
+ <upstream>
+ <remote-id type="sourceforge">joymouse-linux</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/jq/Manifest b/app-misc/jq/Manifest
new file mode 100644
index 000000000000..b9320a7f4dc3
--- /dev/null
+++ b/app-misc/jq/Manifest
@@ -0,0 +1 @@
+DIST jq-1.4.tar.gz 578317 SHA256 998c41babeb57b4304e65b4eb73094279b3ab1e63801b6b4bddd487ce009b39d SHA512 02e601b713a3249bcfe5373153dff38a63bf504895181ca3f691dbf033b407373a9c5880001bbd1954123cdf89f4fe75e2a5168e7a7cf13b3f7355dc18f92458 WHIRLPOOL 93c85a40d8aaf36d1f846ee9050aebe32a3a135e89a64647688b447af8733d210a4716d4ee62271a7d33f2e498e8aee7b2e88ed5373d0ec07e810215c1d288ab
diff --git a/app-misc/jq/files/jq-1.4-dynamic-link.patch b/app-misc/jq/files/jq-1.4-dynamic-link.patch
new file mode 100644
index 000000000000..b958a1556125
--- /dev/null
+++ b/app-misc/jq/files/jq-1.4-dynamic-link.patch
@@ -0,0 +1,12 @@
+do not statically link libjq since we install it
+
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -53,7 +53,6 @@
+
+ bin_PROGRAMS = jq
+ jq_SOURCES = main.c
+-jq_LDFLAGS = -static-libtool-libs
+ jq_LDADD = libjq.la -lm
+
+ ### Tests (make check)
diff --git a/app-misc/jq/jq-1.4-r1.ebuild b/app-misc/jq/jq-1.4-r1.ebuild
new file mode 100644
index 000000000000..418c2e1bc880
--- /dev/null
+++ b/app-misc/jq/jq-1.4-r1.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit autotools eutils
+
+DESCRIPTION="A lightweight and flexible command-line JSON processor"
+HOMEPAGE="http://stedolan.github.com/jq/"
+SRC_URI="http://stedolan.github.io/jq/download/source/${P}.tar.gz"
+
+LICENSE="MIT CC-BY-3.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="static-libs test"
+
+DEPEND="sys-devel/bison
+ sys-devel/flex
+ test? ( dev-util/valgrind )"
+
+DOCS=( AUTHORS README )
+
+src_prepare() {
+ sed -i '/^dist_doc_DATA/d' Makefile.am || die
+ epatch "${FILESDIR}"/${PN}-1.4-dynamic-link.patch
+ eautoreconf
+}
+
+src_configure() {
+ # don't try to rebuild docs
+ econf \
+ --disable-docs \
+ $(use_enable static-libs static)
+}
+
+src_install() {
+ default
+ use static-libs || find "${ED}" -name libjq.la -delete
+}
diff --git a/app-misc/jq/jq-1.4.ebuild b/app-misc/jq/jq-1.4.ebuild
new file mode 100644
index 000000000000..5a02642a07a7
--- /dev/null
+++ b/app-misc/jq/jq-1.4.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit autotools eutils
+
+DESCRIPTION="A lightweight and flexible command-line JSON processor"
+HOMEPAGE="http://stedolan.github.com/jq/"
+SRC_URI="http://stedolan.github.io/jq/download/source/${P}.tar.gz"
+
+LICENSE="MIT CC-BY-3.0"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="test"
+
+DEPEND="sys-devel/bison
+ sys-devel/flex
+ test? ( dev-util/valgrind )"
+
+DOCS=( AUTHORS README )
+
+src_prepare() {
+ sed -i '/^dist_doc_DATA/d' Makefile.am || die
+ eautoreconf
+}
+
+src_configure() {
+ # don't try to rebuild docs
+ econf --disable-docs
+}
diff --git a/app-misc/jq/metadata.xml b/app-misc/jq/metadata.xml
new file mode 100644
index 000000000000..efa5eb0078f3
--- /dev/null
+++ b/app-misc/jq/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version = '1.0' encoding = 'UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>radhermit@gentoo.org</email>
+ <name>Tim Harder</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-misc/kanatest/Manifest b/app-misc/kanatest/Manifest
new file mode 100644
index 000000000000..ca0e2b425b3b
--- /dev/null
+++ b/app-misc/kanatest/Manifest
@@ -0,0 +1 @@
+DIST kanatest-0.4.8.tar.gz 302154 SHA256 a31682604bc6db9c0cb2e15429b8a5b64c04f1ed96df912cab71d4337567c513 SHA512 c52a5e4104c17eae29f03f30abd7f003c83757e04298427112593603eab0edf7d7927b0567a053f2ea3b8aac66921546180c452d84ef6b3cdc2a361f14cbac47 WHIRLPOOL f828297eab1c381c201d1c31fc1e58b5af0a1dd4e9007b0e36c77f97d1d8e9c6ee679afda2defa0bd5f3fa9fdbd8d2a033c98e9e823cec2d8161e9b72e207a0a
diff --git a/app-misc/kanatest/files/kanatest-0.4.8+gtk-2.22.patch b/app-misc/kanatest/files/kanatest-0.4.8+gtk-2.22.patch
new file mode 100644
index 000000000000..5db2c1e0adaf
--- /dev/null
+++ b/app-misc/kanatest/files/kanatest-0.4.8+gtk-2.22.patch
@@ -0,0 +1,23 @@
+Index: kanatest-0.4.8/Makefile.am
+===================================================================
+--- kanatest-0.4.8.orig/Makefile.am
++++ kanatest-0.4.8/Makefile.am
+@@ -1,5 +1,5 @@
+ SUBDIRS = src po data
+-ACLOCAL_AMFLAGS = -I m4 -Wall
++ACLOCAL_AMFLAGS = -Wall
+
+ EXTRA_DIST = README AUTHORS TRANSLATORS COPYING ChangeLog
+
+Index: kanatest-0.4.8/src/Makefile.am
+===================================================================
+--- kanatest-0.4.8.orig/src/Makefile.am
++++ kanatest-0.4.8/src/Makefile.am
+@@ -1,6 +1,5 @@
+ REVISION := $(shell if test -e .svn; then echo -DREV=\"`LC_ALL=C svn info | sed -n '/^Rev/p'| sed -e 's/^Revision:\ //'`\"; fi;)
+-AM_CPPFLAGS = -Wall -DLOCALEDIR=\"$(datadir)/locale\" $(REVISION) \
+- -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED
++AM_CPPFLAGS = -Wall -DLOCALEDIR=\"$(datadir)/locale\" $(REVISION)
+ bin_PROGRAMS = kanatest
+ kanatest_SOURCES = about.c about.h \
+ chart.c chart.h \
diff --git a/app-misc/kanatest/files/kanatest-0.4.8-autoconf.patch b/app-misc/kanatest/files/kanatest-0.4.8-autoconf.patch
new file mode 100644
index 000000000000..e92747646a6c
--- /dev/null
+++ b/app-misc/kanatest/files/kanatest-0.4.8-autoconf.patch
@@ -0,0 +1,13 @@
+diff --git a/configure.ac b/configure.ac
+index eca7a05..b5ac45c 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -3,7 +3,7 @@
+
+ AC_PREREQ(2.59)
+ AC_INIT([Kanatest], [0.4.8], [pasp@users.sf.net])
+-AM_INIT_AUTOMAKE([-Wall -Werror foreign])
++AM_INIT_AUTOMAKE([-Wall -Wno-portability -Werror foreign])
+ AC_CONFIG_SRCDIR([src/about.c])
+ AC_CONFIG_HEADER([config.h])
+
diff --git a/app-misc/kanatest/files/kanatest-0.4.8-cflags.patch b/app-misc/kanatest/files/kanatest-0.4.8-cflags.patch
new file mode 100644
index 000000000000..1f3835803e8b
--- /dev/null
+++ b/app-misc/kanatest/files/kanatest-0.4.8-cflags.patch
@@ -0,0 +1,13 @@
+diff --git a/configure.ac b/configure.ac
+index b5ac45c..c2c6d18 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -38,7 +38,7 @@ AC_CHECK_LIB(xml2,
+ [],
+ [AC_MSG_ERROR(You do not appear to have libxml2 installed.)])
+
+-CFLAGS="$BUILD_CFLAGS -Wall $PLATFORM_CFLAGS -D_GNU_SOURCE"
++CFLAGS="$CFLAGS $BUILD_CFLAGS -Wall $PLATFORM_CFLAGS -D_GNU_SOURCE"
+ CXXFLAGS="$CFLAGS"
+ CPPFLAGS="$gtk_CFLAGS $xml_CFLAGS"
+ LIBS="$gtk_LIBS $xml_LIBS"
diff --git a/app-misc/kanatest/kanatest-0.4.8.ebuild b/app-misc/kanatest/kanatest-0.4.8.ebuild
new file mode 100644
index 000000000000..7787edffe147
--- /dev/null
+++ b/app-misc/kanatest/kanatest-0.4.8.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit autotools eutils gnome2-utils
+
+DESCRIPTION="Visual flashcard tool for memorizing the Japanese Hiragana and Katakana alphabet"
+HOMEPAGE="http://www.clayo.org/kanatest"
+SRC_URI="http://www.clayo.org/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2 GPL-2+"
+SLOT="0"
+KEYWORDS="amd64 ppc ppc64 x86"
+IUSE=""
+
+RDEPEND=">=x11-libs/gtk+-2.12:2=
+ dev-libs/libxml2:="
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+DOCS="AUTHORS TRANSLATORS ChangeLog README"
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${P}+gtk-2.22.patch \
+ "${FILESDIR}"/${P}-autoconf.patch \
+ "${FILESDIR}"/${P}-cflags.patch
+
+ sed -i \
+ -e '/Encoding/d' \
+ -e '/^Categories/s:Application;::' \
+ -e '/^Icon/s:.png::' \
+ data/${PN}.desktop || die
+
+ eautoreconf
+}
+
+pkg_preinst() { gnome2_icon_savelist; }
+pkg_postinst() { gnome2_icon_cache_update; }
+pkg_postrm() { gnome2_icon_cache_update; }
diff --git a/app-misc/kanatest/metadata.xml b/app-misc/kanatest/metadata.xml
new file mode 100644
index 000000000000..2d5852c16c60
--- /dev/null
+++ b/app-misc/kanatest/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>cjk</herd>
+</pkgmetadata>
diff --git a/app-misc/klavaro/Manifest b/app-misc/klavaro/Manifest
new file mode 100644
index 000000000000..a2fca2ec1636
--- /dev/null
+++ b/app-misc/klavaro/Manifest
@@ -0,0 +1 @@
+DIST klavaro-3.01.tar.bz2 1140146 SHA256 ed71d522c29113d5d6517a65cbf95dafbe85ca4bb978139b804b98f128015e85 SHA512 5d58269867d2b39309e07ca9dd6c525d67acaca93dea0010332e39e8f3dd444070dbc75abad00ac4ca3fd4155f41cf871cb8ccee3dc332aa31f85c8b17d7c48b WHIRLPOOL 7c45bf861cdca5ee40bf525377ab679bc8d02b6fc3c6559ccd376896c53246bca32a569721e77f4003c19488cbcc88c6ec48a17ee54b1fb0a959c3c76b69d977
diff --git a/app-misc/klavaro/files/klavaro-3.0.1-datadir.patch b/app-misc/klavaro/files/klavaro-3.0.1-datadir.patch
new file mode 100644
index 000000000000..21047a197ccb
--- /dev/null
+++ b/app-misc/klavaro/files/klavaro-3.0.1-datadir.patch
@@ -0,0 +1,27 @@
+--- data/Makefile.am 2014-12-18 23:16:47.513887559 -0500
++++ data/Makefile.am 2014-12-18 23:16:59.060609420 -0500
+@@ -151,11 +151,11 @@
+ EXTRA_DIST = $(klavaro_data)
+ else
+ @INTLTOOL_DESKTOP_RULE@
+-desktopdir = $(prefix)/$(DATADIRNAME)/applications
++desktopdir = $(datadir)/applications
+ desktop_in_file = klavaro.desktop.in
+ desktop_DATA = $(desktop_in_file:.desktop.in=.desktop)
+ @INTLTOOL_XML_RULE@
+-appdatadir = $(prefix)/$(DATADIRNAME)/appdata
++appdatadir = $(datadir)/appdata
+ appdata_in_files = klavaro.appdata.xml.in
+ appdata_DATA = $(appdata_in_files:.xml.in=.xml)
+ DISTCLEANFILES = $(desktop_DATA) \
+--- src/Makefile.am 2014-12-18 23:17:35.956725053 -0500
++++ src/Makefile.am 2014-12-18 23:17:45.309501898 -0500
+@@ -20,7 +20,7 @@
+
+ AM_CPPFLAGS = @GTK_CFLAGS@ \
+ -DPACKAGE_DATA_DIR=\""$(datadir)"\" \
+- -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\"
++ -DPACKAGE_LOCALE_DIR=\""$(datadir)/locale"\"
+
+ AM_CFLAGS = -Wextra \
+ -I$(top_srcdir)/gtkdatabox
diff --git a/app-misc/klavaro/files/klavaro-3.0.1-out-of-source.patch b/app-misc/klavaro/files/klavaro-3.0.1-out-of-source.patch
new file mode 100644
index 000000000000..5e4a9d48fbd1
--- /dev/null
+++ b/app-misc/klavaro/files/klavaro-3.0.1-out-of-source.patch
@@ -0,0 +1,11 @@
+--- src/Makefile.am 2014-09-05 10:26:56.000000000 -0400
++++ src/Makefile.am 2014-12-18 21:27:55.443335860 -0500
+@@ -29,7 +29,7 @@
+
+ klavaro_LDADD = @GTK_LIBS@ \
+ -lgmodule-2.0 \
+- $(top_srcdir)/gtkdatabox/libgtkdataboks.la
++ $(top_builddir)/gtkdatabox/libgtkdataboks.la
+
+ if IS_POSIX
+ AM_CFLAGS += -export-dynamic
diff --git a/app-misc/klavaro/files/klavaro-3.0.1-static.patch b/app-misc/klavaro/files/klavaro-3.0.1-static.patch
new file mode 100644
index 000000000000..010cd11de005
--- /dev/null
+++ b/app-misc/klavaro/files/klavaro-3.0.1-static.patch
@@ -0,0 +1,8 @@
+--- gtkdatabox/Makefile.am 2014-12-18 21:26:18.129806730 -0500
++++ gtkdatabox/Makefile.am 2014-12-18 21:26:30.528364491 -0500
+@@ -1,4 +1,4 @@
+-lib_LTLIBRARIES = libgtkdataboks.la
++noinst_LTLIBRARIES = libgtkdataboks.la
+ libgtkdataboks_la_SOURCES= \
+ gtkdatabox.c\
+ gtkdatabox_marshal.c\
diff --git a/app-misc/klavaro/files/klavaro-desktop-keywords.patch b/app-misc/klavaro/files/klavaro-desktop-keywords.patch
new file mode 100644
index 000000000000..fbf39ab954be
--- /dev/null
+++ b/app-misc/klavaro/files/klavaro-desktop-keywords.patch
@@ -0,0 +1,11 @@
+--- data/klavaro.desktop.in 2015-01-07 21:52:37.877646655 -0500
++++ data/klavaro.desktop.in 2015-01-07 21:52:56.391720366 -0500
+@@ -2,7 +2,7 @@
+ Name=Klavaro
+ _Comment=A very flexible and efficient touch typing tutor.
+ # Translators: these are keywords related to the program. CAI above means Computer Aided Instruction. Feel free to add and/or change the keywords in your language.
+-_Keywords=keyboard;typing;tutor;CAI
++_Keywords=keyboard;typing;tutor;CAI;
+
+ Exec=klavaro
+ Icon=klavaro
diff --git a/app-misc/klavaro/klavaro-3.0.1.ebuild b/app-misc/klavaro/klavaro-3.0.1.ebuild
new file mode 100644
index 000000000000..c3450a50dfce
--- /dev/null
+++ b/app-misc/klavaro/klavaro-3.0.1.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+AUTOTOOLS_AUTORECONF=yes
+
+inherit autotools-utils versionator
+
+MY_P="${PN}-$(delete_version_separator 2)"
+
+DESCRIPTION="Another free touch typing tutor program"
+HOMEPAGE="http://klavaro.sourceforge.net/"
+SRC_URI="mirror://sourceforge/project/${PN}/${MY_P}.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="+static-libs"
+
+RDEPEND="
+ net-misc/curl
+ x11-libs/cairo
+ x11-libs/gtk+:3
+ x11-libs/pango
+"
+# gtk+3 version needed
+# x11-libs/gtkdatabox
+
+DEPEND="${RDEPEND}
+ dev-util/intltool
+ >=sys-devel/gettext-0.18.3
+ dev-util/gtk-builder-convert
+ "
+
+PATCHES=(
+ "${FILESDIR}"/${P}-out-of-source.patch
+ "${FILESDIR}"/${P}-static.patch
+ "${FILESDIR}"/${P}-datadir.patch
+ "${FILESDIR}"/${PN}-desktop-keywords.patch
+ )
+
+S="${WORKDIR}"/${MY_P}
diff --git a/app-misc/klavaro/metadata.xml b/app-misc/klavaro/metadata.xml
new file mode 100644
index 000000000000..4f23a8c52bb3
--- /dev/null
+++ b/app-misc/klavaro/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>
+ <email>maintainer-needed@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">klavaro</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/ktoblzcheck/Manifest b/app-misc/ktoblzcheck/Manifest
new file mode 100644
index 000000000000..81cf00595bc4
--- /dev/null
+++ b/app-misc/ktoblzcheck/Manifest
@@ -0,0 +1,3 @@
+DIST ktoblzcheck-1.39.tar.gz 547649 SHA256 c7017be79b58d0b6c2e919877b7d320da5dcba92d558f36f437da34d9b2dcb41 SHA512 d393fef7aba5af7a0f3901b9a646f5869e66116c1ac065f091d0c6d10bb8fd305ade2acdc1ad64c3f4cecd1ed4162a0b1b5ddc92cd557aa0f9bdfa3dd6225734 WHIRLPOOL 33fd63878ff88c15090aa4eceed30c8edc4021a7bed851068fe6d244b6ce26714616c75ab8821568e13b27a5dec4e4ed8b2b2be8834b24c7ce8c2b42f930496e
+DIST ktoblzcheck-1.45.tar.gz 572929 SHA256 f5be987c7f7c6935ad8ef80349beea6852f16dd9e16fd1494c9864ce3394a289 SHA512 07c8ed763961c245f55e739d6d821d09d7fe8965365dd74f1e14d5a634eb55dcb8e7abc50700a905450510c2491a1776cc03bf343391147e373e238d30fbb5d8 WHIRLPOOL 2a9304e4052c79d76708823bfdd21b90d7c5206ca6612b6e3b79b5965612d6b4eb7f25b6a45284aafe8b7ac860e6185f3bedd1df4b195cbc7c135d1faf317fba
+DIST ktoblzcheck-1.48.tar.gz 561054 SHA256 0f4e66d3a880355b1afc88870d224755e078dfaf192242d9c6acb8853f5bcf58 SHA512 897a98b7f39cee43f46fb34009e5d51b06fc0734f4c6e50adf888e9663114c7f927ba5b34cfe8786cb4558621828a580076cd975512a253f247b1e4ce5cfb089 WHIRLPOOL 71a4734aecc042ac2ca6a1cea84fbd70303df3666a76b09696c53ff883c7e0de7588b7eb393774327dd601fb6a4e23aa13b116da2995d006f6b8777f4de8f42d
diff --git a/app-misc/ktoblzcheck/ktoblzcheck-1.39.ebuild b/app-misc/ktoblzcheck/ktoblzcheck-1.39.ebuild
new file mode 100644
index 000000000000..83015d8a81a8
--- /dev/null
+++ b/app-misc/ktoblzcheck/ktoblzcheck-1.39.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+PYTHON_DEPEND="python? 2:2.6"
+inherit python
+
+DESCRIPTION="Library to check account numbers and bank codes of German banks"
+HOMEPAGE="http://ktoblzcheck.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="amd64 ppc ~ppc64 ~sparc x86"
+IUSE="python"
+
+RDEPEND="app-text/recode
+ virtual/awk
+ sys-apps/grep
+ sys-apps/sed
+ || ( net-misc/wget www-client/lynx )"
+DEPEND="${RDEPEND}
+ >=sys-devel/libtool-2.2.6b"
+
+DOCS="AUTHORS ChangeLog NEWS README"
+
+pkg_setup() {
+ if use python; then
+ python_set_active_version 2
+ python_pkg_setup
+ fi
+}
+
+src_prepare() {
+ >py-compile
+}
+
+src_configure() {
+ econf $(use_enable python)
+}
+
+src_install() {
+ default
+ find "${ED}" -name '*.la' -exec rm -f {} +
+}
+
+pkg_postinst() {
+ use python && python_mod_optimize ktoblzcheck.py
+}
+
+pkg_postrm() {
+ use python && python_mod_cleanup ktoblzcheck.py
+}
diff --git a/app-misc/ktoblzcheck/ktoblzcheck-1.45.ebuild b/app-misc/ktoblzcheck/ktoblzcheck-1.45.ebuild
new file mode 100644
index 000000000000..ef4c0fd303e7
--- /dev/null
+++ b/app-misc/ktoblzcheck/ktoblzcheck-1.45.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+inherit python-single-r1
+
+DESCRIPTION="Library to check account numbers and bank codes of German banks"
+HOMEPAGE="http://ktoblzcheck.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="python"
+
+RDEPEND="app-text/recode
+ virtual/awk
+ sys-apps/grep
+ sys-apps/sed
+ || ( net-misc/wget www-client/lynx )
+ python? ( ${PYTHON_DEPS} )"
+DEPEND="${RDEPEND}
+ >=sys-devel/libtool-2.2.6b"
+REQUIRED_USE=${PYTHON_REQUIRED_USE}
+
+DOCS="AUTHORS ChangeLog NEWS README"
+
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+}
+
+src_configure() {
+ econf $(use_enable python)
+}
+
+src_install() {
+ default
+ find "${ED}" -name '*.la' -exec rm -f {} +
+}
diff --git a/app-misc/ktoblzcheck/ktoblzcheck-1.48.ebuild b/app-misc/ktoblzcheck/ktoblzcheck-1.48.ebuild
new file mode 100644
index 000000000000..c2ee3f03ebe3
--- /dev/null
+++ b/app-misc/ktoblzcheck/ktoblzcheck-1.48.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+inherit python-single-r1
+
+DESCRIPTION="Library to check account numbers and bank codes of German banks"
+HOMEPAGE="http://ktoblzcheck.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="python"
+
+RDEPEND="app-text/recode
+ virtual/awk
+ sys-apps/grep
+ sys-apps/sed
+ || ( net-misc/wget www-client/lynx )
+ python? ( ${PYTHON_DEPS} )"
+DEPEND="${RDEPEND}
+ >=sys-devel/libtool-2.2.6b"
+REQUIRED_USE=${PYTHON_REQUIRED_USE}
+
+DOCS="AUTHORS ChangeLog NEWS README"
+
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+}
+
+src_configure() {
+ econf $(use_enable python)
+}
+
+src_install() {
+ default
+ find "${ED}" -name '*.la' -exec rm -f {} +
+}
diff --git a/app-misc/ktoblzcheck/metadata.xml b/app-misc/ktoblzcheck/metadata.xml
new file mode 100644
index 000000000000..a1c6038a6128
--- /dev/null
+++ b/app-misc/ktoblzcheck/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>
+ <email>hanno@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">ktoblzcheck</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/lcd-stuff/Manifest b/app-misc/lcd-stuff/Manifest
new file mode 100644
index 000000000000..d0345ceb3249
--- /dev/null
+++ b/app-misc/lcd-stuff/Manifest
@@ -0,0 +1 @@
+DIST lcd-stuff-0.1.6.tar.bz2 126696 SHA256 c42ff77f5cf2b88bb7b46b73453f3f2d20617d93ebf1b5ff28ce365afa40500e SHA512 62abfcd207710685501551a81050f903606ad459deeb4b716d03b9657e332615b63cc402027006ab218bc4c59ac1149a21b8da506f62742252312394b5e87395 WHIRLPOOL df444c2c3dbeafae5cb912c63d8e768f587daadf5d13098f29793f7548d532f710d8c0c0f9c4c4aadf86bcfad9ec5f210851e6e2790ac55f0b0a2a23f910a7a5
diff --git a/app-misc/lcd-stuff/files/lcd-stuff-0.1.2-mpd.patch b/app-misc/lcd-stuff/files/lcd-stuff-0.1.2-mpd.patch
new file mode 100644
index 000000000000..f8f5cdb9ea36
--- /dev/null
+++ b/app-misc/lcd-stuff/files/lcd-stuff-0.1.2-mpd.patch
@@ -0,0 +1,23 @@
+Patch by Andrej Kacian <ticho@gentoo.org> from bug #177587
+
+
+diff -ur lcd-stuff-0.1.2-orig/src/mpd.c lcd-stuff-0.1.2/src/mpd.c
+--- lcd-stuff-0.1.2-orig/src/mpd.c 2007-05-10 23:26:55.000000000 +0200
++++ lcd-stuff-0.1.2/src/mpd.c 2007-05-10 23:27:59.000000000 +0200
+@@ -119,14 +119,13 @@
+ case MPD_DATA_TYPE_PLAYLIST:
+ g_ptr_array_add(array, g_path_get_basename(data->playlist));
+ g_free(data->playlist);
++ data->playlist = NULL;
+ break;
+
+ case MPD_DATA_TYPE_DIRECTORY:
+- g_free(data->directory);
+- break;
+-
+ case MPD_INFO_ENTITY_TYPE_SONG:
+ g_free(data->directory);
++ data->directory = NULL;
+ break;
+
+ default:
diff --git a/app-misc/lcd-stuff/files/lcd-stuff-0.1.2-r1.initd b/app-misc/lcd-stuff/files/lcd-stuff-0.1.2-r1.initd
new file mode 100644
index 000000000000..c59bc87974c1
--- /dev/null
+++ b/app-misc/lcd-stuff/files/lcd-stuff-0.1.2-r1.initd
@@ -0,0 +1,24 @@
+#!/sbin/runscript
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+PIDFILE=/var/run/${SVCNAME}.pid
+
+depend() {
+ use LCDd
+}
+
+start() {
+ ebegin "Starting ${SVCNAME}"
+
+ start-stop-daemon --start --background --pidfile ${PIDFILE} --make-pidfile --exec \
+ /usr/bin/lcd-stuff -- -f 1 -s 1 -r "${REPORTLEVEL}" -a "${ADDRESS}" -p "${TCPPORT}" -c "${CONFIGFILE}"
+ eend $?
+}
+
+stop() {
+ ebegin "Stoping ${SVCNAME}"
+ start-stop-daemon --stop --pidfile ${PIDFILE} --name "lcd-stuff"
+ eend $?
+}
diff --git a/app-misc/lcd-stuff/files/lcd-stuff-0.1.3-socket-h.patch b/app-misc/lcd-stuff/files/lcd-stuff-0.1.3-socket-h.patch
new file mode 100644
index 000000000000..d717927c756d
--- /dev/null
+++ b/app-misc/lcd-stuff/files/lcd-stuff-0.1.3-socket-h.patch
@@ -0,0 +1,33 @@
+From: Robert Buchholz <rbu@gentoo.org>
+To: lcdproc@lists.omnipotent.net
+Subject: Re: [Lcdproc] [ANNOUNCE] lcd-stuff 0.1.3
+Cc: Bernhard Walle <bernhard.walle@gmx.de>
+Date: Wed, 8 Aug 2007 22:06:33 +0200
+
+When compiling against the latest version of libmrss
+(0.18.0), compilation breaks because mrss.h includes
+sys/socket.h. That header uses SHUT_RDWR as a variable name
+(which has to be undefined), but lcd-stuff's shared/sockets.h
+defines that macro.
+
+The attached patch fixes this on lcd-stuff's side.
+
+Index: lcd-stuff-0.1.3/src/rss.c
+===================================================================
+--- lcd-stuff-0.1.3.orig/src/rss.c
++++ lcd-stuff-0.1.3/src/rss.c
+@@ -24,12 +24,12 @@
+ #include <string.h>
+ #include <errno.h>
+
++#include <mrss.h>
++
+ #include <shared/report.h>
+ #include <shared/sockets.h>
+ #include <shared/str.h>
+
+-#include <mrss.h>
+-
+ #include "rss.h"
+ #include "main.h"
+ #include "constants.h"
diff --git a/app-misc/lcd-stuff/files/lcd-stuff.confd b/app-misc/lcd-stuff/files/lcd-stuff.confd
new file mode 100644
index 000000000000..c32169ba42ff
--- /dev/null
+++ b/app-misc/lcd-stuff/files/lcd-stuff.confd
@@ -0,0 +1,13 @@
+# /etc/conf.d/lcd-stuff: Configuration for lcd-stuff LCDproc client
+
+# Host name that is running LCDd
+ADDRESS=localhost
+
+# TCP Port of LCDd on $ADDRESS
+TCPPORT=13666
+
+# Report level (0: none, 5: debug)
+REPORTLEVEL=2
+
+# Configuration file for lcd-stuff
+CONFIGFILE="/etc/lcd-stuff.conf"
diff --git a/app-misc/lcd-stuff/lcd-stuff-0.1.6.ebuild b/app-misc/lcd-stuff/lcd-stuff-0.1.6.ebuild
new file mode 100644
index 000000000000..c8fe4315ac24
--- /dev/null
+++ b/app-misc/lcd-stuff/lcd-stuff-0.1.6.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=2
+inherit eutils
+
+DESCRIPTION="lcd-stuff is a client for lcdproc that displays RSS, Weather, MPD and new mail"
+HOMEPAGE="http://lcd-stuff.berlios.de/"
+SRC_URI="mirror://berlios/${PN}/${P}.tar.bz2"
+
+KEYWORDS="amd64 x86"
+SLOT="0"
+LICENSE="GPL-2" # and GPL-2 only
+
+RDEPEND="app-misc/lcdproc
+ net-misc/curl
+ dev-libs/glib
+ imap? ( net-libs/libetpan )
+ mpd? ( >=media-libs/libmpd-0.12.0 )
+ mp3? ( media-libs/taglib )
+ xml? ( net-libs/libnxml )
+ rss? ( net-libs/libmrss net-libs/libnxml )"
+DEPEND="${DEPEND}
+ virtual/pkgconfig"
+
+IUSE="imap mpd mp3 xml rss"
+
+src_configure() {
+ local XMLRSSLIB="$(use_enable rss mrss)"
+ if use rss ; then
+ # If we want rss, we must also have xml
+ XMLRSSLIB="${XMLRSSLIB} --enable-nxml"
+ else
+ XMLRSSLIB="${XMLRSSLIB} $(use_enable xml nxml)"
+ fi
+
+ econf \
+ $(use_enable imap libetpan) \
+ $(use_enable mpd libmpd) \
+ $(use_enable mp3 taglib_c) \
+ $XMLRSSLIB \
+ || die "configure failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "make install failed"
+
+ insinto /etc
+ doins lcd-stuff.conf
+
+ newconfd "${FILESDIR}/${PN}.confd" ${PN}
+ newinitd "${FILESDIR}/${PN}-0.1.2-r1.initd" ${PN}
+
+ dodoc ChangeLog README
+}
diff --git a/app-misc/lcd-stuff/metadata.xml b/app-misc/lcd-stuff/metadata.xml
new file mode 100644
index 000000000000..90b1182f20be
--- /dev/null
+++ b/app-misc/lcd-stuff/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>proxy-maintainers</herd>
+<maintainer>
+<email>bernhard.walle@gmx.de</email>
+<name>Bernhard Walle</name>
+<description>Upstream maintainer wants to be CC'ed directly on bugs.</description>
+</maintainer>
+<longdescription lang="en">
+ lcd-stuff is a client for app-misc/lcdproc written in C. It features
+ displaying of e-mail using POP3 and IMAP, mpd control, news items using RSS,
+ display of the weather from weather.com and it can fill your MP3 player with
+ directory and file names based on the title.
+</longdescription>
+<use>
+ <flag name='mpd'>Add support for display of mpd controlled music
+ (<pkg>media-libs/libmpd</pkg>)</flag>
+</use>
+</pkgmetadata>
diff --git a/app-misc/lcd4linux/Manifest b/app-misc/lcd4linux/Manifest
new file mode 100644
index 000000000000..398d2efe4906
--- /dev/null
+++ b/app-misc/lcd4linux/Manifest
@@ -0,0 +1 @@
+DIST lcd4linux-0.10.1-RC2.tar.gz 386188 SHA256 9e69ded08dc9a8c75f36a3c020e7aa96b90313d91b2f58add6d4dfff1f8861b0 SHA512 8c4299f50ab4068d4106ba32309f4f66bfedf382a4aed7495cf400d22c57c22c4dfabd80f7e4355417c5c0d964e69f0c268a50bae6924b759b720bd728a969f9 WHIRLPOOL 71c4189e4e9a229e448d44097c2d6e5ab7c71fa97a92815438307f728b86ee238a114a14c73511e473f4c26bbc52a8b67a1a00693c7ef789c909b64165a3f075
diff --git a/app-misc/lcd4linux/files/lcd4linux-0.10.1_rc2-autoconf-2.65.patch b/app-misc/lcd4linux/files/lcd4linux-0.10.1_rc2-autoconf-2.65.patch
new file mode 100644
index 000000000000..6b176a6ecf64
--- /dev/null
+++ b/app-misc/lcd4linux/files/lcd4linux-0.10.1_rc2-autoconf-2.65.patch
@@ -0,0 +1,20 @@
+--- ac_python_devel.m4.orig 2010-03-06 01:28:40.000000000 +0200
++++ ac_python_devel.m4 2010-03-06 01:29:47.000000000 +0200
+@@ -68,7 +68,7 @@
+ PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
+ Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
+ to something else than an empty string.
+-])dnl
++])
+ else
+ AC_MSG_RESULT([skip at user request])
+ fi
+@@ -92,7 +92,7 @@
+ If you have it installed, but it isn't the default Python
+ interpreter in your system path, please pass the PYTHON_VERSION
+ variable to configure. See ``configure --help'' for reference.
+-])dnl
++])
+ fi
+ fi
+
diff --git a/app-misc/lcd4linux/files/lcd4linux-0.10.1_rc2-missing-header.patch b/app-misc/lcd4linux/files/lcd4linux-0.10.1_rc2-missing-header.patch
new file mode 100644
index 000000000000..6b38dc038c4a
--- /dev/null
+++ b/app-misc/lcd4linux/files/lcd4linux-0.10.1_rc2-missing-header.patch
@@ -0,0 +1,12 @@
+diff -ur lcd4linux-0.10.1-RC2.orig/lcd4linux.c lcd4linux-0.10.1-RC2/lcdinux-0.10.1-RC2/lcd4linux.c
+--- lcd4linux.c 2007-03-22 15:10:41.000000000 +0900
++++ lcd4linux.c 2011-11-23 12:12:03.782869315 +0800
+@@ -26,7 +26,7 @@
+ */
+
+ #include "config.h"
+-
++#include <sys/stat.h>
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <string.h>
diff --git a/app-misc/lcd4linux/files/lcd4linux-0.10.1_rc2-mpd.patch b/app-misc/lcd4linux/files/lcd4linux-0.10.1_rc2-mpd.patch
new file mode 100644
index 000000000000..c3fa8ac36350
--- /dev/null
+++ b/app-misc/lcd4linux/files/lcd4linux-0.10.1_rc2-mpd.patch
@@ -0,0 +1,374 @@
+Patch for >=lcd4linux-0.10.1_rc2-r1
+
+Fixes memory and other bugs in plugin_mpd
+
+Accepted upstream
+
+Index: plugin_mpd.c
+===================================================================
+--- plugin_mpd.c (Revision 801)
++++ plugin_mpd.c (Arbeitskopie)
+@@ -4,6 +4,7 @@
+ * mpd informations
+ *
+ * Copyright (C) 2006 Stefan Kuhne <sk-privat@gmx.net>
++ * Copyright (C) 2007 Robert Buchholz <rbu@gentoo.org>
+ * Copyright (C) 2006 The LCD4Linux Team <lcd4linux-devel@users.sourceforge.net>
+ *
+ * This file is part of LCD4Linux.
+@@ -81,8 +82,8 @@
+
+ iport = strtol(port, &test, 10);
+
+- if (iport < 0 || *test != '\0') {
+- fprintf(stderr, "MPD_PORT \"%s\" is not a positive integer\n", port);
++ if ((iport < 0) || (*test != '\0')) {
++ error("[MPD] MPD_PORT \"%s\" is not a positive integer\n", port);
+ exit(EXIT_FAILURE);
+ }
+
+@@ -94,17 +95,16 @@
+ mpd_sendCommandListEnd(mpd.conn);
+
+ if ((mpd.status = mpd_getStatus(mpd.conn)) == NULL) {
+- fprintf(stderr, "%s\n", mpd.conn->errorStr);
++ error("[MPD] error when getting status: %s\n", mpd.conn->errorStr);
+ mpd_closeConnection(mpd.conn);
+- }
+-
+- if (mpd.status->error) {
+- printf("error: %s\n", mpd.status->error);
+- }
+-
+- if (mpd.conn->error) {
+- fprintf(stderr, "%s\n", mpd.conn->errorStr);
++ mpd.conn = NULL;
++ } else if (mpd.status->error) {
++ info("[MPD] status error when connecting: %s\n", mpd.status->error);
++ } else if (mpd.conn->error) {
++ error("[MPD] error when connecting: %s\n", mpd.conn->errorStr);
++ mpd_freeStatus(mpd.status);
+ mpd_closeConnection(mpd.conn);
++ mpd.conn = NULL;
+ }
+
+ return mpd;
+@@ -114,14 +114,15 @@
+ static void disconnect(struct Pointer mpd)
+ {
+ if (mpd.conn->error) {
+- fprintf(stderr, "%s\n", mpd.conn->errorStr);
++ error("[MPD] error when disconnecting: %s\n", mpd.conn->errorStr);
++ mpd_freeStatus(mpd.status);
+ mpd_closeConnection(mpd.conn);
++ return;
+ }
+
+ mpd_finishCommand(mpd.conn);
+ if (mpd.conn->error) {
+- fprintf(stderr, "%s\n", mpd.conn->errorStr);
+- mpd_closeConnection(mpd.conn);
++ error("[MPD] error when disconnecting: %s\n", mpd.conn->errorStr);
+ }
+
+ mpd_freeStatus(mpd.status);
+@@ -132,8 +133,12 @@
+
+ static void artist(RESULT * result, RESULT * query)
+ {
+- char *value = " ";
++ char *value = NULL;
+ struct Pointer mpd = connect();
++ if (mpd.conn == NULL) {
++ SetResult(&result, R_STRING, " ");
++ return;
++ }
+
+ mpd_nextListOkCommand(mpd.conn);
+
+@@ -145,9 +150,10 @@
+ continue;
+ }
+
+- if (song->artist) {
++ if (!value && song->artist) {
++ /* we found our first song */
+ value = strdup(song->artist);
+- //add comment
++ /* add comment */
+ if (query) {
+ char *myarg;
+ myarg = strdup(R2S(query));
+@@ -160,8 +166,8 @@
+
+ disconnect(mpd);
+
+- /* store result */
+- SetResult(&result, R_STRING, value);
++ /* store result, value must not be NULL */
++ SetResult(&result, R_STRING, value ? value : " ");
+
+ free(value);
+ }
+@@ -169,8 +175,12 @@
+
+ static void title(RESULT * result)
+ {
+- char *value = " ";
++ char *value = NULL;
+ struct Pointer mpd = connect();
++ if (mpd.conn == NULL) {
++ SetResult(&result, R_STRING, " ");
++ return;
++ }
+
+ mpd_nextListOkCommand(mpd.conn);
+
+@@ -182,7 +192,7 @@
+ continue;
+ }
+
+- if (song->title) {
++ if (!value && song->title) {
+ value = strdup(song->title);
+ }
+ mpd_freeInfoEntity(mpd.entity);
+@@ -190,8 +200,8 @@
+
+ disconnect(mpd);
+
+- /* store result */
+- SetResult(&result, R_STRING, value);
++ /* store result, value must not be NULL */
++ SetResult(&result, R_STRING, value ? value : " ");
+
+ free(value);
+ }
+@@ -199,8 +209,12 @@
+
+ static void album(RESULT * result)
+ {
+- char *value = " ";
++ char *value = NULL;
+ struct Pointer mpd = connect();
++ if (mpd.conn == NULL) {
++ SetResult(&result, R_STRING, " ");
++ return;
++ }
+
+ mpd_nextListOkCommand(mpd.conn);
+
+@@ -212,7 +226,7 @@
+ continue;
+ }
+
+- if (song->album) {
++ if (!value && song->album) {
+ value = strdup(song->album);
+ }
+ mpd_freeInfoEntity(mpd.entity);
+@@ -220,8 +234,8 @@
+
+ disconnect(mpd);
+
+- /* store result */
+- SetResult(&result, R_STRING, value);
++ /* store result, value must not be NULL */
++ SetResult(&result, R_STRING, value ? value : " ");
+
+ free(value);
+ }
+@@ -236,7 +250,7 @@
+ void error_callback( __attribute__ ((unused)) MpdObj * mi, int errorid, char *msg, __attribute__ ((unused))
+ void *userdata)
+ {
+- printf("Error %i: '%s'\n", errorid, msg);
++ info("[MPD] caught error %i: '%s'\n", errorid, msg);
+ }
+
+ static int mpd_get(int function)
+@@ -278,95 +292,89 @@
+
+ static void elapsedTime(RESULT * result)
+ {
+- char *value = " ";
++ char myTime[6] = " ";
+
+- int playTime = mpd_get(_mpd_status_get_elapsed_song_time);
++ const int playTime = mpd_get(_mpd_status_get_elapsed_song_time);
+
+- if (playTime != -1) {
+- char myTime[6];
+- memset(myTime, 0, 6);
+- int minutes = (int) (playTime / 60);
+- int seconds = (int) (playTime % 60);
++ if ((playTime >= 0) && (playTime < 6000)) {
++ const int minutes = (int) (playTime / 60);
++ const int seconds = (int) (playTime % 60);
+ sprintf(myTime, "%02d:%02d", minutes, seconds);
++ } else if (playTime >= 6000) {
++ strcpy(myTime, "LONG");
++ }
+
+- value = strdup(myTime);
+- }
+- // store result
+- SetResult(&result, R_STRING, value);
++ /* store result */
++ SetResult(&result, R_STRING, myTime);
+ }
+
+ static void elapsedTimeSec(RESULT * result)
+ {
+- int playTime = mpd_get(_mpd_status_get_elapsed_song_time);
++ const int playTime = mpd_get(_mpd_status_get_elapsed_song_time);
+ double d = 0.0;
+
+ if (playTime != -1)
+ d = playTime;
+
+- // store result
++ /* store result */
+ SetResult(&result, R_NUMBER, &d);
+ }
+
+ static void totalTime(RESULT * result)
+ {
+- char *value = " ";
++ char myTime[6] = "ERROR";
+
+- int totTime = mpd_get(_mpd_status_get_total_song_time);
+- if (totTime != -1) {
+- char myTime[6];
+- memset(myTime, 0, 6);
+- int minutes = (int) (totTime / 60);
+- int seconds = (int) (totTime % 60);
++ const int totTime = mpd_get(_mpd_status_get_total_song_time);
++ if ((totTime >= 0) && (totTime < 6000)) {
++ const int minutes = (int) (totTime / 60);
++ const int seconds = (int) (totTime % 60);
+ sprintf(myTime, "%02d:%02d", minutes, seconds);
++ } else if (totTime >= 6000) {
++ strcpy(myTime, "LONG");
++ }
+
+- value = strdup(myTime);
+- } else
+- value = strdup("ERROR");
+- // store result
+- SetResult(&result, R_STRING, value);
++ /* store result */
++ SetResult(&result, R_STRING, myTime);
+ }
+
+ static void totalTimeSec(RESULT * result)
+ {
+- int totTime = mpd_get(_mpd_status_get_total_song_time);
++ const int totTime = mpd_get(_mpd_status_get_total_song_time);
+ double d = 0.0;
+
+ if (totTime != -1)
+ d = totTime;
+
+- // store result
++ /* store result */
+ SetResult(&result, R_NUMBER, &d);
+ }
+
+ static void bitRate(RESULT * result)
+ {
+- char *value = "";
++ char rateStr[4];
+
+- int rate = mpd_get(_mpd_status_get_bitrate);
++ const int rate = mpd_get(_mpd_status_get_bitrate);
+
+- if (rate != -1) {
+- char rateStr[4];
+- memset(rateStr, 0, 4);
++ if ((rate >= 0) && (rate < 1000)) {
+ sprintf(rateStr, "%03d", rate);
++ }
+
+- value = strdup(rateStr);
+- }
+- // store result
+- SetResult(&result, R_STRING, value);
++ /* store result */
++ SetResult(&result, R_STRING, rateStr);
+ }
+
+ static void getRepeat(RESULT * result)
+ {
+ char *value = " ";
+
+- int rep = mpd_get(_mpd_player_get_repeat);
++ const int rep = mpd_get(_mpd_player_get_repeat);
+
+ if (rep != -1) {
+ if (rep)
+- value = strdup("REP");
+- // else value = strdup(" ");
++ value = "REP";
++ /* else value = strdup(" "); */
+ }
+- // store result
++ /* store result */
+ SetResult(&result, R_STRING, value);
+ }
+
+@@ -375,26 +383,26 @@
+ {
+ char *value = " ";
+
+- int ran = mpd_get(_mpd_player_get_random);
++ const int ran = mpd_get(_mpd_player_get_random);
+
+ if (ran != -1) {
+ if (ran)
+ value = strdup("RND");
+- // else value = strdup(" ");
++ /* else value = strdup(" "); */
+ }
+- // store result
++ /* store result */
+ SetResult(&result, R_STRING, value);
+ }
+
+ static void getRepRand(RESULT * result)
+ {
+- char *value = " ";
++ char str[9] = " ";
+
+- int ran = mpd_get(_mpd_player_get_random);
+- int rep = mpd_get(_mpd_player_get_repeat);
++ const int ran = mpd_get(_mpd_player_get_random);
++ const int rep = mpd_get(_mpd_player_get_repeat);
+
+ if (ran != -1 && rep != -1) {
+- char str[9];
++
+ if (rep)
+ sprintf(str, "REP/");
+ else
+@@ -403,17 +411,16 @@
+ sprintf(str, "%sRND", str);
+ else
+ sprintf(str, "%s---", str);
+- value = strdup(str);
+ }
+- // store result
+- SetResult(&result, R_STRING, value);
++ /* store result */
++ SetResult(&result, R_STRING, str);
+ }
+
+ int plugin_init_mpd(void)
+ {
+ /* Check for File */
+ if (mpd_get(_mpd_dummy) != 1) {
+- error("Error: Cannot connect to MPD! Is MPD started?");
++ error("[MPD] Error: Cannot connect to MPD! Is MPD started?");
+ return -1;
+ }
+
diff --git a/app-misc/lcd4linux/files/lcd4linux-0.10.1_rc2-nordtsc.patch b/app-misc/lcd4linux/files/lcd4linux-0.10.1_rc2-nordtsc.patch
new file mode 100644
index 000000000000..b25d01e8e901
--- /dev/null
+++ b/app-misc/lcd4linux/files/lcd4linux-0.10.1_rc2-nordtsc.patch
@@ -0,0 +1,187 @@
+kMessage-ID: <47011930.60100@reinelt.co.at>
+Date: Mon, 01 Oct 2007 17:58:40 +0200
+From: Michael Reinelt <michael@reinelt.co.at>
+Subject: [Lcd4linux-devel] asm/msr.h inclusion and RDTSC stuff removed
+
+Hi there,
+
+I just committed a changeset where I removed the whole RDTSC delay loop
+stuff, and therefore lcd4linux does no longer need asm/msr.h
+
+Instead, a gettimeofday() delay loop will be used when necessary.
+
+The rdtsc stuff worked fine, but had two major disadvantages: It did not
+work with variable CPU frequencies, and latest kernels do no longer
+offer the rdtsc() macro.
+
+The changeset has been committed to trunk, and will be backported to the
+0.10.1 branch as soon as I get some positive feedback 8or at least I
+don't get any negative feedback)
+
+
+bye, Michael
+
+--
+Michael Reinelt <michael@reinelt.co.at>
+http://home.pages.at/reinelt
+GPG-Key 0xDF13BA50
+ICQ #288386781
+
+Index: configure.in
+===================================================================
+--- lcd4linux-0.10.1-RC2/configure.in.orig
++++ lcd4linux-0.10.1-RC2/configure.in
+@@ -99,7 +99,6 @@ AC_HEADER_STDC
+ AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h netinet/in.h stdlib.h string.h sys/ioctl.h sys/socket.h sys/time.h sys/vfs.h syslog.h termios.h unistd.h])
+ AC_CHECK_HEADERS(sys/io.h asm/io.h)
+ AC_CHECK_HEADERS(linux/parport.h linux/ppdev.h)
+-AC_CHECK_HEADERS(asm/msr.h)
+
+ # Checks for typedefs, structures, and compiler characteristics.
+ AC_C_CONST
+Index: udelay.c
+===================================================================
+--- lcd4linux-0.10.1-RC2/udelay.c.orig
++++ lcd4linux-0.10.1-RC2/udelay.c
+@@ -55,11 +55,6 @@
+ #include <string.h>
+ #include <sys/time.h>
+
+-#ifdef HAVE_ASM_MSR_H
+-#define u32 unsigned int
+-#include <asm/msr.h>
+-#endif
+-
+
+ #include "debug.h"
+ #include "cfg.h"
+@@ -67,79 +62,10 @@
+ #include "udelay.h"
+
+
+-static unsigned int ticks_per_usec = 0;
+-
+-
+-static void getCPUinfo(int *hasTSC, double *MHz)
+-{
+- int fd;
+- char buffer[4096], *p;
+-
+- *hasTSC = 0;
+- *MHz = -1;
+-
+- fd = open("/proc/cpuinfo", O_RDONLY);
+- if (fd == -1) {
+- error("udelay: open(/proc/cpuinfo) failed: %s", strerror(errno));
+- return;
+- }
+- if (read(fd, &buffer, sizeof(buffer) - 1) == -1) {
+- error("udelay: read(/proc/cpuinfo) failed: %s", strerror(errno));
+- close(fd);
+- return;
+- }
+- close(fd);
+-
+- p = strstr(buffer, "flags");
+- if (p == NULL) {
+- info("udelay: /proc/cpuinfo has no 'flags' line");
+- } else {
+- p = strstr(p, "tsc");
+- if (p == NULL) {
+- info("udelay: CPU does not support Time Stamp Counter");
+- } else {
+- info("udelay: CPU supports Time Stamp Counter");
+- *hasTSC = 1;
+- }
+- }
+-
+- p = strstr(buffer, "cpu MHz");
+- if (p == NULL) {
+- info("udelay: /proc/cpuinfo has no 'cpu MHz' line");
+- } else {
+- if (sscanf(p + 7, " : %lf", MHz) != 1) {
+- error("udelay: parse(/proc/cpuinfo) failed: unknown 'cpu MHz' format");
+- *MHz = -1;
+- } else {
+- info("udelay: CPU runs at %f MHz", *MHz);
+- }
+- }
+-
+-}
+-
+
+ void udelay_init(void)
+ {
+-#ifdef HAVE_ASM_MSR_H
+-
+- int tsc;
+- double mhz;
+-
+- getCPUinfo(&tsc, &mhz);
+-
+- if (tsc && mhz > 0.0) {
+- ticks_per_usec = ceil(mhz);
+- info("udelay: using TSC delay loop, %u ticks per microsecond", ticks_per_usec);
+- } else
+-#else
+- error("udelay: The file 'include/asm/msr.h' was missing at compile time.");
+- error("udelay: Even if your CPU supports TSC, it will not be used!");
+- error("udelay: You *really* should install msr.h and recompile LCD4linux!");
+-#endif
+- {
+- ticks_per_usec = 0;
+- info("udelay: using gettimeofday() delay loop");
+- }
++ info("udelay: using gettimeofday() delay loop");
+ }
+
+
+@@ -172,37 +98,17 @@ unsigned long timing(const char *driver,
+ void ndelay(const unsigned long nsec)
+ {
+
+-#ifdef HAVE_ASM_MSR_H
+-
+- if (ticks_per_usec) {
++ struct timeval now, end;
+
+- unsigned int t1, t2;
+- unsigned long tsc;
+-
+- tsc = (nsec * ticks_per_usec + 999) / 1000;
+-
+- rdtscl(t1);
+- do {
+- rep_nop();
+- rdtscl(t2);
+- } while ((t2 - t1) < tsc);
+-
+- } else
+-#endif
+-
+- {
+- struct timeval now, end;
+-
+- gettimeofday(&end, NULL);
+- end.tv_usec += (nsec + 999) / 1000;
+- while (end.tv_usec > 1000000) {
+- end.tv_usec -= 1000000;
+- end.tv_sec++;
+- }
+-
+- do {
+- rep_nop();
+- gettimeofday(&now, NULL);
+- } while (now.tv_sec == end.tv_sec ? now.tv_usec < end.tv_usec : now.tv_sec < end.tv_sec);
++ gettimeofday(&end, NULL);
++ end.tv_usec += (nsec + 999) / 1000;
++ while (end.tv_usec > 1000000) {
++ end.tv_usec -= 1000000;
++ end.tv_sec++;
+ }
++
++ do {
++ rep_nop();
++ gettimeofday(&now, NULL);
++ } while (now.tv_sec == end.tv_sec ? now.tv_usec < end.tv_usec : now.tv_sec < end.tv_sec);
+ }
diff --git a/app-misc/lcd4linux/files/lcd4linux-0.10.1_rc2-usbdebug.patch b/app-misc/lcd4linux/files/lcd4linux-0.10.1_rc2-usbdebug.patch
new file mode 100644
index 000000000000..6ecc7a248990
--- /dev/null
+++ b/app-misc/lcd4linux/files/lcd4linux-0.10.1_rc2-usbdebug.patch
@@ -0,0 +1,121 @@
+diff -crB lcd4linux-0.10.1-RC2-orig/drv_BWCT.c lcd4linux-0.10.1-RC2/drv_BWCT.c
+*** lcd4linux-0.10.1-RC2-orig/drv_BWCT.c 2007-02-25 13:39:09.000000000 +0100
+--- lcd4linux-0.10.1-RC2/drv_BWCT.c 2013-11-10 21:32:06.119047221 +0100
+***************
+*** 72,78 ****
+ static usb_dev_handle *lcd;
+ static int interface;
+
+- extern int usb_debug;
+ extern int got_signal;
+
+
+--- 72,77 ----
+***************
+*** 89,96 ****
+
+ info("%s: scanning USB for BWCT LCD...", Name);
+
+- usb_debug = 0;
+-
+ usb_init();
+ usb_find_busses();
+ usb_find_devices();
+--- 88,93 ----
+diff -crB lcd4linux-0.10.1-RC2-orig/drv_LCD2USB.c lcd4linux-0.10.1-RC2/drv_LCD2USB.c
+*** lcd4linux-0.10.1-RC2-orig/drv_LCD2USB.c 2007-02-25 13:39:10.000000000 +0100
+--- lcd4linux-0.10.1-RC2/drv_LCD2USB.c 2013-11-10 21:32:15.686677498 +0100
+***************
+*** 98,104 ****
+ static usb_dev_handle *lcd;
+ static int controllers = 0;
+
+- extern int usb_debug;
+ extern int got_signal;
+
+ /****************************************/
+--- 98,103 ----
+***************
+*** 120,127 ****
+ if (device_id != NULL)
+ info("%s: scanning for device id: %s", Name, device_id);
+
+- usb_debug = 0;
+-
+ usb_init();
+ usb_find_busses();
+ usb_find_devices();
+--- 119,124 ----
+diff -crB lcd4linux-0.10.1-RC2-orig/drv_picoLCD.c lcd4linux-0.10.1-RC2/drv_picoLCD.c
+*** lcd4linux-0.10.1-RC2-orig/drv_picoLCD.c 2007-02-25 13:39:10.000000000 +0100
+--- lcd4linux-0.10.1-RC2/drv_picoLCD.c 2013-11-10 21:32:30.102120440 +0100
+***************
+*** 75,81 ****
+ static char *BufPtr;
+
+ static usb_dev_handle *lcd;
+- extern int usb_debug;
+
+
+
+--- 75,80 ----
+***************
+*** 97,104 ****
+
+ info("%s: scanning for picoLCD...", Name);
+
+- usb_debug = 0;
+-
+ usb_init();
+ usb_find_busses();
+ usb_find_devices();
+--- 96,101 ----
+diff -crB lcd4linux-0.10.1-RC2-orig/drv_Trefon.c lcd4linux-0.10.1-RC2/drv_Trefon.c
+*** lcd4linux-0.10.1-RC2-orig/drv_Trefon.c 2007-02-25 13:39:10.000000000 +0100
+--- lcd4linux-0.10.1-RC2/drv_Trefon.c 2013-11-10 21:32:46.441489039 +0100
+***************
+*** 72,78 ****
+ static usb_dev_handle *lcd;
+ static int interface;
+
+- extern int usb_debug;
+
+
+ /****************************************/
+--- 72,77 ----
+***************
+*** 88,95 ****
+
+ info("%s: scanning USB for TREFON LCD...", Name);
+
+- usb_debug = 0;
+-
+ usb_init();
+ usb_find_busses();
+ usb_find_devices();
+--- 87,92 ----
+diff -crB lcd4linux-0.10.1-RC2-orig/drv_USBLCD.c lcd4linux-0.10.1-RC2/drv_USBLCD.c
+*** lcd4linux-0.10.1-RC2-orig/drv_USBLCD.c 2007-02-25 13:39:10.000000000 +0100
+--- lcd4linux-0.10.1-RC2/drv_USBLCD.c 2013-11-10 21:33:01.508906792 +0100
+***************
+*** 86,93 ****
+ static usb_dev_handle *lcd;
+ static int interface;
+
+- extern int usb_debug;
+-
+ #endif
+
+
+--- 86,91 ----
+***************
+*** 107,114 ****
+
+ info("%s: scanning for USBLCD...", Name);
+
+- usb_debug = 0;
+-
+ usb_init();
+ usb_find_busses();
+ usb_find_devices();
+--- 105,110 ----
diff --git a/app-misc/lcd4linux/files/lcd4linux-0.10.1_rc2-warnings.patch b/app-misc/lcd4linux/files/lcd4linux-0.10.1_rc2-warnings.patch
new file mode 100644
index 000000000000..58791ee91ff7
--- /dev/null
+++ b/app-misc/lcd4linux/files/lcd4linux-0.10.1_rc2-warnings.patch
@@ -0,0 +1,64 @@
+Index: ./plugin_kvv.c
+===================================================================
+--- ./plugin_kvv.c (revision 771)
++++ ./plugin_kvv.c (revision 797)
+@@ -414,5 +414,5 @@
+
+ if (count > 0) {
+- char *input, *cookie, *name, *value;
++ char *input, *cookie, *name = NULL, *value = NULL;
+ int input_len, cookie_len, name_len, value_len;
+
+Index: ./plugin_mpd.c
+===================================================================
+--- ./plugin_mpd.c (revision 786)
++++ ./plugin_mpd.c (revision 797)
+@@ -65,5 +65,10 @@
+ int iport;
+ char *test;
+- struct Pointer mpd;
++
++ struct Pointer mpd = {
++ .conn = NULL,
++ .status = NULL,
++ .entity = NULL
++ };
+
+ if ((test = getenv("MPD_HOST"))) {
+@@ -229,5 +234,6 @@
+ #define _mpd_player_get_random 005
+
+-void error_callback(MpdObj * mi, int errorid, char *msg, void *userdata)
++void error_callback( __attribute__ ((unused)) MpdObj * mi, int errorid, char *msg, __attribute__ ((unused))
++ void *userdata)
+ {
+ printf("Error %i: '%s'\n", errorid, msg);
+Index: ./drv_Image.c
+===================================================================
+--- ./drv_Image.c (revision 771)
++++ ./drv_Image.c (revision 797)
+@@ -115,5 +115,5 @@
+ if (bitbuf == NULL) {
+ if ((bitbuf = malloc(xsize * ysize * sizeof(*bitbuf))) == NULL) {
+- error("%s: malloc(%d) failed: %s", Name, (int) xsize * ysize * sizeof(*bitbuf), strerror(errno));
++ error("%s: malloc() failed: %s", Name, strerror(errno));
+ return -1;
+ }
+@@ -122,5 +122,5 @@
+ if (rowbuf == NULL) {
+ if ((rowbuf = malloc(3 * xsize * sizeof(*rowbuf))) == NULL) {
+- error("Raster: malloc(%d) failed: %s", (int) 3 * xsize * sizeof(*rowbuf), strerror(errno));
++ error("Raster: malloc() failed: %s", strerror(errno));
+ return -1;
+ }
+Index: ./plugin_i2c_sensors.c
+===================================================================
+--- ./plugin_i2c_sensors.c (revision 771)
++++ ./plugin_i2c_sensors.c (revision 797)
+@@ -297,5 +297,5 @@
+ strcat(path_cfg, "/");
+ }
+- debug("using i2c sensors at %s (from %s)", path, cfg_source());
++ debug("using i2c sensors at %s (from %s)", path_cfg, cfg_source());
+ path = realloc(path, strlen(path_cfg) + 1);
+ strcpy(path, path_cfg);
diff --git a/app-misc/lcd4linux/files/lcd4linux-0.10.1_rc2.initd b/app-misc/lcd4linux/files/lcd4linux-0.10.1_rc2.initd
new file mode 100644
index 000000000000..1e8be0c36de5
--- /dev/null
+++ b/app-misc/lcd4linux/files/lcd4linux-0.10.1_rc2.initd
@@ -0,0 +1,23 @@
+#!/sbin/runscript
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+PIDFILE=/var/run/lcd4linux.pid
+DAEMON=/usr/bin/lcd4linux
+
+depend() {
+ use net
+}
+
+start() {
+ ebegin "Starting lcd4linux"
+ start-stop-daemon --start --quiet --pidfile ${PIDFILE} --exec ${DAEMON}
+ eend $? "Failed to start lcd4linux. Did you remember to set up /etc/lcd4linux.conf?"
+}
+
+stop() {
+ ebegin "Stopping lcd4linux"
+ start-stop-daemon --stop --quiet --oknodo --exec ${DAEMON} --pidfile ${PIDFILE}
+ eend $?
+}
diff --git a/app-misc/lcd4linux/lcd4linux-0.10.1_rc2-r3.ebuild b/app-misc/lcd4linux/lcd4linux-0.10.1_rc2-r3.ebuild
new file mode 100644
index 000000000000..ab108066bee0
--- /dev/null
+++ b/app-misc/lcd4linux/lcd4linux-0.10.1_rc2-r3.ebuild
@@ -0,0 +1,175 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+WANT_AUTOMAKE="1.9"
+inherit eutils multilib autotools python-single-r1
+
+MY_P=${P/_rc/-RC}
+
+DESCRIPTION="Shows system and ISDN information on an external display or in a X11 window"
+HOMEPAGE="http://ssl.bulix.org/projects/lcd4linux"
+SRC_URI="mirror://gentoo/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+
+IUSE="mysql python iconv mpd"
+
+# The following array holds the USE_EXPANDed keywords
+IUSE_LCD_DEVICES=(beckmannegle bwct cfontz ncurses cwlinux
+ ea232 g15 hd44780 hd44780i2c lcd2usb
+ lcdlinux lcdterm ledmatrix lph7508 m50530
+ mtxorb milfordbpk noritake null picolcd
+ png ppm routerboard serdisplib simplelcd
+ t6963 trefon usbhub usblcd wincor
+ X luise)
+
+# Iterate through the array and add the lcd_devices_* that we support
+NUM_DEVICES=${#IUSE_LCD_DEVICES[@]}
+index=0
+while [ "${index}" -lt "${NUM_DEVICES}" ] ; do
+ IUSE="${IUSE} lcd_devices_${IUSE_LCD_DEVICES[$index]}"
+ let "index = ${index} + 1"
+done
+
+DEPEND="
+ mysql? ( virtual/mysql )
+ iconv? ( virtual/libiconv )
+ mpd? ( media-libs/libmpd )
+
+ lcd_devices_bwct? ( =virtual/libusb-0* )
+ lcd_devices_g15? ( =virtual/libusb-0* )
+ lcd_devices_lcd2usb? ( =virtual/libusb-0* )
+ lcd_devices_picolcd? ( =virtual/libusb-0* )
+ lcd_devices_trefon? ( =virtual/libusb-0* )
+ lcd_devices_usbhub? ( =virtual/libusb-0* )
+ lcd_devices_usblcd? ( =virtual/libusb-0* )
+ lcd_devices_luise? ( dev-libs/luise-bin )
+ lcd_devices_ncurses? ( sys-libs/ncurses )
+ lcd_devices_noritake? ( media-libs/gd )
+ lcd_devices_t6963? ( media-libs/gd )
+ lcd_devices_png? ( media-libs/libpng media-libs/gd )
+ lcd_devices_X? ( x11-libs/libX11 media-libs/gd )
+ lcd_devices_serdisplib? ( dev-libs/serdisplib media-libs/gd )
+"
+RDEPEND="${DEPEND}
+ python? ( ${PYTHON_DEPS} )
+"
+
+S="${WORKDIR}/${MY_P}"
+
+pkg_setup() {
+ elog "If you wish to compile only specific plugins, please use"
+ elog "the LCD4LINUX_PLUGINS environment variable. Plugins must be comma separated and can be either of:"
+ elog "apm cpuinfo diskstats dvb exec file i2c_sensors imon isdn kvv loadavg meminfo netdev pop3 ppp proc_stat seti statfs uname uptime wireless"
+
+ use python && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-warnings.patch"
+ epatch "${FILESDIR}/${P}-mpd.patch"
+ epatch "${FILESDIR}/${P}-nordtsc.patch"
+ epatch "${FILESDIR}/${P}-autoconf-2.65.patch"
+ epatch "${FILESDIR}/${P}-missing-header.patch"
+ epatch "${FILESDIR}/${P}-usbdebug.patch"
+ eautoreconf
+}
+
+src_configure() {
+ # This array contains the driver names required by configure --with-drivers=
+ # The positions must be the same as the corresponding use_expand flags
+ local DEVICE_DRIVERS=(BeckmannEgle BWCT CrystalFontz Curses Cwlinux
+ EA232graphic G15 HD44780 HD44780-I2C LCD2USB
+ LCDLinux LCDTerm LEDMatrix LPH7508 M50530
+ MatrixOrbital MilfordInstruments Noritake NULL picoLCD
+ PNG PPM RouterBoard serdisplib SimpleLCD
+ T6963 Trefon USBHUB USBLCD WincorNixdorf
+ X11 LUIse)
+
+ local myconf myp
+
+ # plugins
+ if [ -n "$LCD4LINUX_PLUGINS" ]; then
+ myp="$LCD4LINUX_PLUGINS"
+ else
+ myp="all,!xmms"
+ fi
+ use iconv || myp="${myp},!iconv"
+ use mpd || myp="${myp},!mpd"
+ use mysql || myp="${myp},!mysql"
+ use python || myp="${myp},!python"
+ elog "Active plugins: ${myp}"
+
+ # Generate comma separated list of drivers
+ local COMMA_DRIVERS
+ local FIRST_DRIVER
+ local index=0
+ local driver
+
+ while [ "${index}" -lt "${NUM_DEVICES}" ] ; do
+ if use "lcd_devices_${IUSE_LCD_DEVICES[$index]}" ; then
+ driver=${DEVICE_DRIVERS[$index]}
+ if [ -z ${COMMA_DRIVERS} ] ; then
+ # First in the list
+ COMMA_DRIVERS="${driver}"
+ FIRST_DRIVER="${driver}"
+ else
+ # Second, third, ... include a comma at the front
+ COMMA_DRIVERS="${COMMA_DRIVERS},${driver}"
+ fi
+ fi
+ let "index = ${index} + 1"
+ done
+
+ # activate at least one driver
+ if [ -z ${COMMA_DRIVERS} ] ; then
+ COMMA_DRIVERS="NULL"
+ fi
+
+ # workaround the build failing because of b0rked settings
+ if use lcd_devices_hd44780 && use lcd_devices_hd44780i2c ; then
+ echo
+ ewarn "Disabling hd44780 LCD_DEVICE as hd44780i2c is set!"
+ echo
+ COMMA_DRIVERS="${COMMA_DRIVERS},!HD44780"
+ fi
+
+ # avoid package brokenness
+ if use lcd_devices_X ; then
+ myconf="--x-libraries=/usr/$(get_libdir) --x-include=/usr/include"
+ else
+ myconf="--without-x"
+ fi
+
+ econf \
+ --sysconfdir=/etc/lcd4linux \
+ --with-drivers="${COMMA_DRIVERS}" \
+ --with-plugins="${myp}" \
+ $(use_with python) \
+ ${myconf}
+
+ sed -i.orig -e 's/-L -lX11/ -lX11 /g' Makefile || die "sed fixup failed"
+}
+
+src_install() {
+ default
+
+ newinitd "${FILESDIR}/${P}.initd" ${PN}
+
+ insinto /etc
+ insopts -o root -g root -m 0600
+ newins lcd4linux.conf.sample lcd4linux.conf
+}
+
+pkg_postinst() {
+ if use lcd_devices_lcdlinux; then
+ ewarn "To actually use the lcd-linux devices, you will need to install the lcd-linux kernel module."
+ ewarn "You can either do that yourself, see http://lcd-linux.sf.net or "
+ ewarn "checkout http://overlays.gentoo.org/dev/jokey/browser/trunk and emerge app-misc/lcd-linux"
+ fi
+}
diff --git a/app-misc/lcd4linux/metadata.xml b/app-misc/lcd4linux/metadata.xml
new file mode 100644
index 000000000000..cee8d88109d9
--- /dev/null
+++ b/app-misc/lcd4linux/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>
+<email>maintainer-needed@gentoo.org</email>
+</maintainer>
+<longdescription lang="en">
+ LCD4Linux is a small program that grabs information from the kernel and some
+ subsystems and displays it on an external liquid crystal display. It is
+ fully configurable and supports many data sources, displays and plugins.
+</longdescription>
+<use>
+ <flag name='mpd'>Add support for display of mpd controlled music
+ (<pkg>media-libs/libmpd</pkg>)</flag>
+</use>
+</pkgmetadata>
diff --git a/app-misc/lcdproc/Manifest b/app-misc/lcdproc/Manifest
new file mode 100644
index 000000000000..1f2bed5a72da
--- /dev/null
+++ b/app-misc/lcdproc/Manifest
@@ -0,0 +1,4 @@
+DIST lcdproc-0.5.2-patches.tar.gz 6571 SHA256 b578bbb2e0e1adabfd8eda2101d9023652c8d3c112d7dc78fb77026d5f2db13d SHA512 d872099e524ed99525b642783d413f0cbff68aceb30857a4b7078390be9f98aa3acfa23c72e4455802376bc1bedb20019fa8a79e97066e2a1e97b5d68fbcd975 WHIRLPOOL ab515ad64770c96b72e7ed71809bcfe371600547da6fcd1253cc65a22baca79393a14ef815552b74e0d388c263635f1d2a4200f46646ffe925a31217327b915f
+DIST lcdproc-0.5.2.tar.gz 822695 SHA256 3261910dd9155229a2a6067c82ec4cca0d7900420f2d74c87a24b41b9b961036 SHA512 e21a1f2d3d5f53aa09477e9aea1f9685c1fe224a8f79f15d0d032214de211c51619a9eea9183743c024859349d481fe35d7999cc51e0de81dc2fa8e0c85d7a5d WHIRLPOOL 0d09e9aa6b8e55a00b96a5ace3749fec100130d91008dfaae3b011f8d352716cf64aa77be866ca4fb1c1d1b434bb0b91307b14ff2a36b28de8b71f9afcb58698
+DIST lcdproc-0.5.5.tar.gz 946206 SHA256 b136b47d7bf585a003334f432d8730a36ef5ed1cd520084b919667d825e48d42 SHA512 42500188adb018547db4db4a472dded478a03f19974843865e07a466870fbca409b4259b57366b7dfdd4a5fd444a89c1930032d1127ae036128dbd9279a24b29 WHIRLPOOL 1ba4728b6ee24dd32bbf24f80434c836a78cc4ab196088daa882ef10796b284d4659283b3d891117d46f2beb450d3f6b2ca9d0d686fb5fe291b192ab2dc106e3
+DIST lcdproc-0.5.6.tar.gz 998996 SHA256 bd2f43c30ff43b30f43110abe6b4a5bc8e0267cb9f57fa97cc5e5ef9488b984a SHA512 7c506b4691c8544855dadf939863672230c3e0903bbe4bbde82df04ff932f818cdc406c5b159554ec155d0c46fff23d435121298f4e19bac73658b121c6b8220 WHIRLPOOL 79c2c46e56092b121a24458127b28c9e10b232825f58a1fef6e42a940687ce4a3950a9007c907eb28706e56971c4a99cdba3b9c1745d2c6cf9dedf49451bc16f
diff --git a/app-misc/lcdproc/files/0.5.1-LCDd.initd b/app-misc/lcdproc/files/0.5.1-LCDd.initd
new file mode 100644
index 000000000000..8bc9f8eee08c
--- /dev/null
+++ b/app-misc/lcdproc/files/0.5.1-LCDd.initd
@@ -0,0 +1,22 @@
+#!/sbin/runscript
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+depend() {
+ use net
+ use g15daemon
+}
+
+start() {
+ ebegin "Starting LCDd"
+ start-stop-daemon --start --quiet -m --pidfile /var/run/LCDd.pid \
+ --background --exec /usr/sbin/LCDd -- -s 1 -f
+ eend $? "Failed to start LCDd. Did you remember to set a driver in /etc/LCDd.conf? See syslog for details."
+}
+
+stop() {
+ ebegin "Stopping LCDd"
+ start-stop-daemon --stop --quiet --pidfile /var/run/LCDd.pid
+ eend $?
+}
diff --git a/app-misc/lcdproc/files/0.5.1-lcdproc.initd b/app-misc/lcdproc/files/0.5.1-lcdproc.initd
new file mode 100644
index 000000000000..8cc979a53209
--- /dev/null
+++ b/app-misc/lcdproc/files/0.5.1-lcdproc.initd
@@ -0,0 +1,21 @@
+#!/sbin/runscript
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+depend(){
+ use LCDd
+}
+
+start() {
+ ebegin "Starting lcdproc"
+ start-stop-daemon --start --background \
+ --exec /usr/bin/lcdproc
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping lcdproc"
+ start-stop-daemon --stop --exec /usr/bin/lcdproc
+ eend $?
+}
diff --git a/app-misc/lcdproc/files/0.5.2-r2-lcdproc.initd b/app-misc/lcdproc/files/0.5.2-r2-lcdproc.initd
new file mode 100644
index 000000000000..ecb98f8135aa
--- /dev/null
+++ b/app-misc/lcdproc/files/0.5.2-r2-lcdproc.initd
@@ -0,0 +1,22 @@
+#!/sbin/runscript
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+depend(){
+ use LCDd
+ after ntp-client
+}
+
+start() {
+ ebegin "Starting lcdproc"
+ start-stop-daemon --start --background \
+ --exec /usr/bin/lcdproc
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping lcdproc"
+ start-stop-daemon --stop --exec /usr/bin/lcdproc
+ eend $?
+}
diff --git a/app-misc/lcdproc/lcdproc-0.5.2-r1.ebuild b/app-misc/lcdproc/lcdproc-0.5.2-r1.ebuild
new file mode 100644
index 000000000000..9dfa05d2360f
--- /dev/null
+++ b/app-misc/lcdproc/lcdproc-0.5.2-r1.ebuild
@@ -0,0 +1,184 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+WANT_AUTOMAKE="1.9"
+inherit eutils autotools multilib
+
+DESCRIPTION="Client/Server suite to drive all kinds of LCD (-like) devices"
+HOMEPAGE="http://lcdproc.org/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz
+ mirror://gentoo/${P}-patches.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc ppc64 x86"
+
+IUSE="doc debug nfs samba seamless-hbars usb lirc irman joystick"
+
+# The following array holds the USE_EXPANDed keywords
+IUSE_LCD_DEVICES=(ncurses bayrad cfontz cfontz633 cfontzpacket
+ cwlinux eyeboxone g15 graphlcd glk
+ hd44780 icpa106 imon iowarrior
+ lb216 lcdm001 lcterm
+ md8800 ms6931 mtcs16209x mtxorb noritakevfd
+ pyramid sed1330 sed1520 serialvfd sli
+ stv5730 svga t6963 text tyan
+ ula200 xosd ea65 picolcd serialpos )
+
+# Iterate through the array and add the lcd_devices_* that we support
+NUM_DEVICES=${#IUSE_LCD_DEVICES[@]}
+index=0
+while [ "${index}" -lt "${NUM_DEVICES}" ] ; do
+ IUSE="${IUSE} lcd_devices_${IUSE_LCD_DEVICES[${index}]}"
+ let "index = ${index} + 1"
+done
+
+RDEPEND="
+ usb? ( =virtual/libusb-0* )
+ lirc? ( app-misc/lirc )
+ irman? ( media-libs/libirman )
+
+ lcd_devices_graphlcd? ( app-misc/graphlcd-base app-misc/glcdprocdriver )
+ lcd_devices_g15? ( dev-libs/libg15 >=dev-libs/libg15render-1.1.1 )
+ lcd_devices_ncurses? ( sys-libs/ncurses )
+ lcd_devices_svga? ( media-libs/svgalib )
+ lcd_devices_ula200? ( >=dev-embedded/libftdi-0.7 =virtual/libusb-0* )
+ lcd_devices_xosd? ( x11-libs/xosd x11-libs/libX11 x11-libs/libXext )
+ lcd_devices_cfontzpacket? ( =virtual/libusb-0* )
+ lcd_devices_cwlinux? ( =virtual/libusb-0* )
+ lcd_devices_pyramid? ( =virtual/libusb-0* )
+ lcd_devices_picolcd? ( =virtual/libusb-0* )"
+DEPEND="${RDEPEND}
+ doc? ( app-text/xmlto )"
+RDEPEND="${RDEPEND}
+ lcd_devices_g15? ( app-misc/g15daemon )"
+
+pkg_setup() {
+ if [ -n "${LCDPROC_DRIVERS}" ] ; then
+ ewarn "Setting the drivers to compile via LCDPROC_DRIVERS is not supported anymore."
+ ewarn "Please use LCD_DEVICES now and see emerge -pv output for the options."
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${WORKDIR}/${P}-patches/${PV}-picolcd.patch"
+
+ sed -i "79s:server/drivers:/usr/$(get_libdir)/lcdproc:" LCDd.conf
+ einfo "Patching LCDd.conf to use DriverPath=/usr/$(get_libdir)/lcdproc/"
+
+ eautoreconf
+}
+
+src_compile() {
+ # This array contains the driver names required by configure --with-drivers=
+ # The positions must be the same as the corresponding use_expand flags
+ local DEVICE_DRIVERS=(curses bayrad CFontz CFontz633 CFontzPacket
+ CwLnx EyeboxOne g15 glcdlib glk
+ hd44780 icp_a106 imon IOWarrior
+ lb216 lcdm001 lcterm
+ MD8800 ms6931 mtc_s16209x MtxOrb NoritakeVFD
+ pyramid sed1330 sed1520 serialVFD sli
+ stv5730 svga t6963 text tyan
+ ula200 xosd ea65 picolcd serialPOS)
+
+ # Generate comma separated list of drivers
+ COMMA_DRIVERS=""
+ FIRST_DRIVER=""
+ local index=0
+
+ while [ "${index}" -lt "${NUM_DEVICES}" ] ; do
+ if use "lcd_devices_${IUSE_LCD_DEVICES[${index}]}" ; then
+ append-driver "${DEVICE_DRIVERS[${index}]}"
+ fi
+ let "index = ${index} + 1"
+ done
+
+ # Append the not-lcd-drivers (input)
+ use lirc && append-driver "lirc"
+ use irman && append-driver "irman"
+ use joystick && append-driver "joy"
+
+ if [ -z "${COMMA_DRIVERS}" ] ; then
+ ewarn "You are compiling LCDd without support for any LCD drivers at all."
+ else
+ # Patch the config to contain a driver that is actually installed instead of the default
+ elog "Compiling the following drivers for LCDd: ${COMMA_DRIVERS}"
+ elog "Setting Driver=${FIRST_DRIVER} in LCDd.conf"
+ sed -i "44s:curses:${FIRST_DRIVER}:" LCDd.conf
+ fi
+
+ local ENABLEUSB
+ if use lcd_devices_cfontzpacket || use lcd_devices_cwlinux || use lcd_devices_pyramid; then
+ ENABLEUSB="--enable-libusb"
+ else
+ ENABLEUSB="$(use_enable usb libusb)"
+ fi
+
+ econf \
+ $(use_enable debug) \
+ $(use_enable nfs stat-nfs) \
+ $(use_enable samba stat-smbfs ) \
+ $(use_enable seamless-hbars) \
+ ${ENABLEUSB} \
+ "--enable-drivers=${COMMA_DRIVERS}" \
+ || die "configure failed"
+
+ emake || die "make failed"
+
+ if use doc; then
+ ebegin "Creating user documentation"
+ cd "${S}"/docs/lcdproc-user
+ xmlto html --skip-validation lcdproc-user.docbook
+ eend $?
+
+ ebegin "Creating dev documentation"
+ cd "${S}"/docs/lcdproc-dev
+ xmlto html --skip-validation lcdproc-dev.docbook
+ eend $?
+ fi
+}
+
+append-driver() {
+ [[ -z $* ]] && return 0
+ if [ -z "${COMMA_DRIVERS}" ] ; then
+ # First in the list
+ COMMA_DRIVERS="$*"
+ FIRST_DRIVER="$*"
+ else
+ # Second, third, ... include a comma at the front
+ COMMA_DRIVERS="${COMMA_DRIVERS},$*"
+ fi
+ return 0
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "make install failed"
+
+ # move example clients installed to /usr/bin
+ rm -f "${D}"/usr/bin/{tail,lcdmetar,iosock,fortune,x11amp}.pl
+ insinto /usr/share/lcdproc/clients
+ doins clients/examples/*.pl
+ doins clients/metar/
+
+ newinitd "${FILESDIR}/0.5.1-LCDd.initd" LCDd
+ newinitd "${FILESDIR}/0.5.1-lcdproc.initd" lcdproc
+
+ dodoc README CREDITS ChangeLog INSTALL TODO
+ dodoc docs/README.* docs/*.txt
+
+ if use doc; then
+ insinto /usr/share/doc/${PF}/lcdproc-user
+ doins docs/lcdproc-user/*.html
+ insinto /usr/share/doc/${PF}/lcdproc-dev
+ doins docs/lcdproc-dev/*.html
+ fi
+}
+
+pkg_postinst() {
+ ewarn "IMPORTANT: Please update your /etc/LCDd.conf"
+ ewarn "As of lcdproc-0.5.1-r2, the DriverPath changed from /usr/share/lcdproc to /usr/$(get_libdir)/lcdproc ."
+}
diff --git a/app-misc/lcdproc/lcdproc-0.5.5.ebuild b/app-misc/lcdproc/lcdproc-0.5.5.ebuild
new file mode 100644
index 000000000000..173312be0673
--- /dev/null
+++ b/app-misc/lcdproc/lcdproc-0.5.5.ebuild
@@ -0,0 +1,192 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+inherit multilib versionator
+
+MY_PV=$(replace_version_separator 3 '-')
+MY_P=${PN}-${MY_PV}
+S=${WORKDIR}/${MY_P}
+
+DESCRIPTION="Client/Server suite to drive all kinds of LCD (-like) devices"
+HOMEPAGE="http://lcdproc.org/"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+
+IUSE="doc debug hid nfs samba seamless-hbars usb lirc irman joystick ftdi"
+
+# The following array holds the USE_EXPANDed keywords
+IUSE_LCD_DEVICES=(ncurses bayrad cfontz cfontz633 cfontzpacket
+ cwlinux eyeboxone g15 graphlcd glk
+ hd44780 icpa106 imon imonlcd iowarrior
+ lb216 lcdm001 lcterm
+ md8800 mdm166a ms6931 mtcs16209x mtxorb noritakevfd
+ pyramid sed1330 sed1520 serialvfd sli
+ stv5730 SureElec svga t6963 text tyan
+ ula200 xosd ea65 picolcd serialpos
+ i2500vfd irtrans lis shuttlevfd )
+
+# Iterate through the array and add the lcd_devices_* that we support
+NUM_DEVICES=${#IUSE_LCD_DEVICES[@]}
+index=0
+while [ "${index}" -lt "${NUM_DEVICES}" ] ; do
+ IUSE="${IUSE} lcd_devices_${IUSE_LCD_DEVICES[${index}]}"
+ let "index = ${index} + 1"
+done
+
+REQUIRED_USE="lcd_devices_mdm166a? ( hid )"
+
+RDEPEND="
+ usb? ( virtual/libusb:0 )
+ ftdi? ( dev-embedded/libftdi )
+ lirc? ( app-misc/lirc )
+ irman? ( media-libs/libirman )
+ hid? ( >=dev-libs/libhid-0.2.16 )
+
+ lcd_devices_graphlcd? ( app-misc/graphlcd-base app-misc/glcdprocdriver )
+ lcd_devices_g15? ( dev-libs/libg15 dev-libs/libg15render )
+ lcd_devices_ncurses? ( sys-libs/ncurses )
+ lcd_devices_svga? ( media-libs/svgalib )
+ lcd_devices_ula200? ( dev-embedded/libftdi )
+ lcd_devices_xosd? ( x11-libs/xosd x11-libs/libX11 x11-libs/libXext )
+ lcd_devices_cfontzpacket? ( virtual/libusb:0 )
+ lcd_devices_cwlinux? ( virtual/libusb:0 )
+ lcd_devices_pyramid? ( virtual/libusb:0 )
+ lcd_devices_picolcd? ( virtual/libusb:0 )
+ lcd_devices_i2500vfd? ( dev-embedded/libftdi )
+ lcd_devices_lis? ( dev-embedded/libftdi virtual/libusb:0 )
+ lcd_devices_shuttlevfd? ( virtual/libusb:0 )"
+DEPEND="${RDEPEND}
+ doc? ( app-text/xmlto
+ app-text/docbook-xml-dtd:4.5 )"
+RDEPEND="${RDEPEND}
+ lcd_devices_g15? ( app-misc/g15daemon )"
+
+pkg_setup() {
+ if [ -n "${LCDPROC_DRIVERS}" ] ; then
+ ewarn "Setting the drivers to compile via LCDPROC_DRIVERS is not supported anymore."
+ ewarn "Please use LCD_DEVICES now and see emerge -pv output for the options."
+ fi
+}
+
+src_prepare() {
+ sed -i "37s:server/drivers:/usr/$(get_libdir)/lcdproc:" LCDd.conf || die
+ einfo "Patching LCDd.conf to use DriverPath=/usr/$(get_libdir)/lcdproc/"
+}
+
+src_configure() {
+ # This array contains the driver names required by configure --with-drivers=
+ # The positions must be the same as the corresponding use_expand flags
+ local DEVICE_DRIVERS=(curses bayrad CFontz CFontz633 CFontzPacket
+ CwLnx EyeboxOne g15 glcdlib glk
+ hd44780 icp_a106 imon imonlcd IOWarrior
+ lb216 lcdm001 lcterm
+ MD8800 mdm166a ms6931 mtc_s16209x MtxOrb NoritakeVFD
+ pyramid sed1330 sed1520 serialVFD sli
+ stv5730 SureElec svga t6963 text tyan
+ ula200 xosd ea65 picolcd serialPOS
+ i2500vfd irtrans lis shuttleVFD )
+
+ # Generate comma separated list of drivers
+ COMMA_DRIVERS=""
+ FIRST_DRIVER=""
+ local index=0
+
+ while [ "${index}" -lt "${NUM_DEVICES}" ] ; do
+ if use "lcd_devices_${IUSE_LCD_DEVICES[${index}]}" ; then
+ append-driver "${DEVICE_DRIVERS[${index}]}"
+ fi
+ let "index = ${index} + 1"
+ done
+
+ # Append the not-lcd-drivers (input)
+ use lirc && append-driver "lirc"
+ use irman && append-driver "irman"
+ use joystick && append-driver "joy"
+
+ if [ -z "${COMMA_DRIVERS}" ] ; then
+ ewarn "You are compiling LCDd without support for any LCD drivers at all."
+ else
+ # Patch the config to contain a driver that is actually installed instead of the default
+ elog "Compiling the following drivers for LCDd: ${COMMA_DRIVERS}"
+ elog "Setting Driver=${FIRST_DRIVER} in LCDd.conf"
+ sed -i "53s:curses:${FIRST_DRIVER}:" LCDd.conf || die
+ fi
+
+ local EXTRA_CONF
+ if use lcd_devices_cfontzpacket || use lcd_devices_cwlinux || use lcd_devices_pyramid || \
+ use lcd_devices_picolcd || use lcd_devices_lis || use lcd_devices_shuttlevfd ; then
+ EXTRA_CONF="--enable-libusb"
+ else
+ EXTRA_CONF="$(use_enable usb libusb)"
+ fi
+
+ if use lcd_devices_ula200 || use lcd_devices_i2500vfd || use lcd_devices_lis ; then
+ EXTRA_CONF="${EXTRA_CONF} --enable-libftdi"
+ else
+ EXTRA_CONF="${EXTRA_CONF} $(use_enable ftdi libftdi)"
+ fi
+
+ econf --enable-extra-charmaps \
+ $(use_enable debug) \
+ $(use_enable nfs stat-nfs) \
+ $(use_enable samba stat-smbfs ) \
+ $(use_enable seamless-hbars) \
+ ${EXTRA_CONF} \
+ "--enable-drivers=${COMMA_DRIVERS}"
+}
+
+src_compile() {
+ default
+
+ if use doc; then
+ ebegin "Creating user documentation"
+ cd "${S}"/docs/lcdproc-user
+ xmlto html --skip-validation lcdproc-user.docbook
+ eend $?
+
+ ebegin "Creating dev documentation"
+ cd "${S}"/docs/lcdproc-dev
+ xmlto html --skip-validation lcdproc-dev.docbook
+ eend $?
+ fi
+}
+
+append-driver() {
+ [[ -z $* ]] && return 0
+ if [ -z "${COMMA_DRIVERS}" ] ; then
+ # First in the list
+ COMMA_DRIVERS="$*"
+ FIRST_DRIVER="$*"
+ else
+ # Second, third, ... include a comma at the front
+ COMMA_DRIVERS="${COMMA_DRIVERS},$*"
+ fi
+ return 0
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+
+ # move example clients installed to /usr/bin
+ rm -f "${D}"/usr/bin/{tail,lcdmetar,iosock,fortune,x11amp}.pl
+ insinto /usr/share/lcdproc/clients
+ doins clients/examples/*.pl
+ doins clients/metar/*.pl
+
+ newinitd "${FILESDIR}/0.5.1-LCDd.initd" LCDd
+ newinitd "${FILESDIR}/0.5.2-r2-lcdproc.initd" lcdproc
+
+ dodoc README CREDITS ChangeLog INSTALL TODO
+
+ if use doc; then
+ insinto /usr/share/doc/${PF}/lcdproc-user
+ doins docs/lcdproc-user/*.html
+ insinto /usr/share/doc/${PF}/lcdproc-dev
+ doins docs/lcdproc-dev/*.html
+ fi
+}
diff --git a/app-misc/lcdproc/lcdproc-0.5.6-r1.ebuild b/app-misc/lcdproc/lcdproc-0.5.6-r1.ebuild
new file mode 100644
index 000000000000..bd5e8a1e2ddd
--- /dev/null
+++ b/app-misc/lcdproc/lcdproc-0.5.6-r1.ebuild
@@ -0,0 +1,196 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit multilib versionator
+
+MY_PV=$(replace_version_separator 3 '-')
+MY_P=${PN}-${MY_PV}
+S=${WORKDIR}/${MY_P}
+
+DESCRIPTION="Client/Server suite to drive all kinds of LCD (-like) devices"
+HOMEPAGE="http://lcdproc.org/"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+
+IUSE="debug doc ftdi hid irman joystick lirc nfs png samba seamless-hbars truetype usb"
+
+# The following array holds the USE_EXPANDed keywords
+IUSE_LCD_DEVICES=(ncurses bayrad cfontz cfontzpacket
+ cwlinux eyeboxone g15 graphlcd glk
+ hd44780 icpa106 imon imonlcd iowarrior
+ lb216 lcdm001 lcterm
+ md8800 mdm166a ms6931 mtcs16209x mtxorb noritakevfd
+ pyramid sdeclcd sed1330 sed1520 serialvfd sli
+ stv5730 SureElec svga t6963 text tyan
+ ula200 vlsys_m428 xosd ea65 picolcd serialpos
+ i2500vfd irtrans lis shuttlevfd )
+
+# Iterate through the array and add the lcd_devices_* that we support
+NUM_DEVICES=${#IUSE_LCD_DEVICES[@]}
+index=0
+while [ "${index}" -lt "${NUM_DEVICES}" ] ; do
+ IUSE="${IUSE} lcd_devices_${IUSE_LCD_DEVICES[${index}]}"
+ let "index = ${index} + 1"
+done
+
+REQUIRED_USE="lcd_devices_mdm166a? ( hid )"
+
+RDEPEND="
+ ftdi? ( dev-embedded/libftdi )
+ hid? ( >=dev-libs/libhid-0.2.16 )
+ irman? ( media-libs/libirman )
+ lirc? ( app-misc/lirc )
+ png? ( media-libs/libpng:0 )
+ truetype? ( media-libs/freetype:2 )
+ usb? ( virtual/libusb:0 )
+
+ lcd_devices_graphlcd? ( app-misc/graphlcd-base app-misc/glcdprocdriver dev-libs/serdisplib )
+ lcd_devices_g15? ( dev-libs/libg15 dev-libs/libg15render )
+ lcd_devices_ncurses? ( sys-libs/ncurses )
+ lcd_devices_svga? ( media-libs/svgalib )
+ lcd_devices_ula200? ( dev-embedded/libftdi )
+ lcd_devices_xosd? ( x11-libs/xosd x11-libs/libX11 x11-libs/libXext )
+ lcd_devices_cfontzpacket? ( virtual/libusb:0 )
+ lcd_devices_cwlinux? ( virtual/libusb:0 )
+ lcd_devices_pyramid? ( virtual/libusb:0 )
+ lcd_devices_picolcd? ( virtual/libusb:0 )
+ lcd_devices_i2500vfd? ( dev-embedded/libftdi )
+ lcd_devices_lis? ( dev-embedded/libftdi virtual/libusb:0 )
+ lcd_devices_shuttlevfd? ( virtual/libusb:0 )"
+DEPEND="${RDEPEND}
+ doc? ( app-text/xmlto
+ app-text/docbook-xml-dtd:4.5 )"
+RDEPEND="${RDEPEND}
+ lcd_devices_g15? ( app-misc/g15daemon )"
+
+pkg_setup() {
+ if [ -n "${LCDPROC_DRIVERS}" ] ; then
+ ewarn "Setting the drivers to compile via LCDPROC_DRIVERS is not supported anymore."
+ ewarn "Please use LCD_DEVICES now and see emerge -pv output for the options."
+ fi
+}
+
+src_prepare() {
+ sed -i "37s:server/drivers:/usr/$(get_libdir)/lcdproc:" LCDd.conf || die
+ einfo "Patching LCDd.conf to use DriverPath=/usr/$(get_libdir)/lcdproc/"
+}
+
+src_configure() {
+ # This array contains the driver names required by configure --with-drivers=
+ # The positions must be the same as the corresponding use_expand flags
+ local DEVICE_DRIVERS=(curses bayrad CFontz CFontzPacket
+ CwLnx EyeboxOne g15 glcd,glcdlib glk
+ hd44780 icp_a106 imon imonlcd IOWarrior
+ lb216 lcdm001 lcterm
+ MD8800 mdm166a ms6931 mtc_s16209x MtxOrb NoritakeVFD
+ pyramid sdeclcd sed1330 sed1520 serialVFD sli
+ stv5730 SureElec svga t6963 text tyan
+ ula200 vlsys_m428 xosd ea65 picolcd serialPOS
+ i2500vfd irtrans lis shuttleVFD )
+
+ # Generate comma separated list of drivers
+ COMMA_DRIVERS=""
+ FIRST_DRIVER=""
+ local index=0
+
+ while [ "${index}" -lt "${NUM_DEVICES}" ] ; do
+ if use "lcd_devices_${IUSE_LCD_DEVICES[${index}]}" ; then
+ append-driver "${DEVICE_DRIVERS[${index}]}"
+ fi
+ let "index = ${index} + 1"
+ done
+
+ # Append the not-lcd-drivers (input)
+ use lirc && append-driver "lirc"
+ use irman && append-driver "irman"
+ use joystick && append-driver "joy"
+
+ if [ -z "${COMMA_DRIVERS}" ] ; then
+ ewarn "You are compiling LCDd without support for any LCD drivers at all."
+ else
+ # Patch the config to contain a driver that is actually installed instead of the default
+ elog "Compiling the following drivers for LCDd: ${COMMA_DRIVERS}"
+ elog "Setting Driver=${FIRST_DRIVER} in LCDd.conf"
+ sed -i "53s:curses:${FIRST_DRIVER}:" LCDd.conf || die
+ fi
+
+ local EXTRA_CONF
+ if use lcd_devices_cfontzpacket || use lcd_devices_cwlinux || use lcd_devices_pyramid || \
+ use lcd_devices_picolcd || use lcd_devices_lis || use lcd_devices_shuttlevfd ; then
+ EXTRA_CONF="--enable-libusb"
+ else
+ EXTRA_CONF="$(use_enable usb libusb)"
+ fi
+
+ if use lcd_devices_ula200 || use lcd_devices_i2500vfd || use lcd_devices_lis ; then
+ EXTRA_CONF="${EXTRA_CONF} --enable-libftdi"
+ else
+ EXTRA_CONF="${EXTRA_CONF} $(use_enable ftdi libftdi)"
+ fi
+
+ econf --enable-extra-charmaps \
+ $(use_enable debug) \
+ $(use_enable nfs stat-nfs) \
+ $(use_enable png libpng) \
+ $(use_enable samba stat-smbfs ) \
+ $(use_enable seamless-hbars) \
+ $(use_enable truetype freetype) \
+ ${EXTRA_CONF} \
+ "--enable-drivers=${COMMA_DRIVERS}"
+}
+
+src_compile() {
+ default
+
+ if use doc; then
+ ebegin "Creating user documentation"
+ cd "${S}"/docs/lcdproc-user
+ xmlto html --skip-validation lcdproc-user.docbook
+ eend $?
+
+ ebegin "Creating dev documentation"
+ cd "${S}"/docs/lcdproc-dev
+ xmlto html --skip-validation lcdproc-dev.docbook
+ eend $?
+ fi
+}
+
+append-driver() {
+ [[ -z $* ]] && return 0
+ if [ -z "${COMMA_DRIVERS}" ] ; then
+ # First in the list
+ COMMA_DRIVERS="$*"
+ FIRST_DRIVER="$*"
+ else
+ # Second, third, ... include a comma at the front
+ COMMA_DRIVERS="${COMMA_DRIVERS},$*"
+ fi
+ return 0
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+
+ # move example clients installed to /usr/bin
+ rm -f "${D}"/usr/bin/{tail,lcdmetar,iosock,fortune,x11amp}.pl
+ insinto /usr/share/lcdproc/clients
+ doins clients/examples/*.pl
+ doins clients/metar/*.pl
+
+ newinitd "${FILESDIR}/0.5.1-LCDd.initd" LCDd
+ newinitd "${FILESDIR}/0.5.2-r2-lcdproc.initd" lcdproc
+
+ dodoc README CREDITS ChangeLog INSTALL TODO
+
+ if use doc; then
+ insinto /usr/share/doc/${PF}/lcdproc-user
+ doins docs/lcdproc-user/*.html
+ insinto /usr/share/doc/${PF}/lcdproc-dev
+ doins docs/lcdproc-dev/*.html
+ fi
+}
diff --git a/app-misc/lcdproc/metadata.xml b/app-misc/lcdproc/metadata.xml
new file mode 100644
index 000000000000..8cbb4937167a
--- /dev/null
+++ b/app-misc/lcdproc/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>
+ <email>xmw@gentoo.org</email>
+ <name>Michael Weber</name>
+ </maintainer>
+ <longdescription lang="en">
+ LCDproc is a piece of software that displays real-time system information
+ from your Linux/*BSD box on a LCD. The server supports several serial
+ devices: Matrix Orbital, CrystalFontz, Bayrad, LB216, LCDM001
+ (kernelconcepts.de), Wirz-SLI, Cwlinux(.com) and PIC-an-LCD; and some
+ devices connected to the LPT port: HD44780, STV5730, T6963, SED1520 and
+ SED1330. Various clients are available that display things like CPU load,
+ system load, memory usage, uptime, and a lot more.
+</longdescription>
+ <use>
+ <flag name="hid">Enable HID support using libhid</flag>
+ <flag name="irman">Enable support for IRMan (<pkg>media-libs/libirman</pkg>)</flag>
+ <flag name="nfs">Adds support for NFS file system</flag>
+ <flag name="seamless-hbars">Try to avoid gaps in horizontal bars</flag>
+ <flag name="ftdi">Enable support for FTDI connections in some selected LCD_DEVICES (currently hd44780)</flag>
+ <flag name="lcd_devices_sdeclcd">Enable support for VLSYS M428 display</flag>
+ <flag name="lcd_devices_vlsys_m428">Enable support for VLSYS M428 display</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">lcdproc</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/leave/Manifest b/app-misc/leave/Manifest
new file mode 100644
index 000000000000..09004f131995
--- /dev/null
+++ b/app-misc/leave/Manifest
@@ -0,0 +1 @@
+DIST leave-20100918.tar.gz 3477 SHA256 a467a4841b9d0a2daafbc5485d3761a9ca14b84f17320bc224b490edabfd0c97 SHA512 69df594800159bc80baeb3945aad144ceabe21bdac22ed2cd706b0ec610895dc82e58bae59ed0230eb97e909812bc90237b7c70e965125e7fa6767972a6259d1 WHIRLPOOL 8c7a0dd09916133cf6207e4540da63391c6310bf541d6461efd6b178754b6d8e268968fb5bf3dfb0c6bbacd23e1ce87b53f2a1d301e8b0535cb28013fa3fefdf
diff --git a/app-misc/leave/files/README b/app-misc/leave/files/README
new file mode 100644
index 000000000000..1af71d7431fd
--- /dev/null
+++ b/app-misc/leave/files/README
@@ -0,0 +1,9 @@
+The leave utility waits until the specified time, then reminds you that you
+have to leave. You are reminded 5 minutes and 1 minute before the actual
+time, at the time, and every minute thereafter. When you log off, leave
+exits just before it would have printed the next message.
+
+To get rid of leave you should either log off or use `kill -s KILL` giving its
+process id.
+
+This program is included with FreeBSD and is distributed under the BSD license.
diff --git a/app-misc/leave/files/leave-fix-makefile.diff b/app-misc/leave/files/leave-fix-makefile.diff
new file mode 100644
index 000000000000..efcb89eadea6
--- /dev/null
+++ b/app-misc/leave/files/leave-fix-makefile.diff
@@ -0,0 +1,20 @@
+--- Makefile.orig 2004-10-16 23:04:50.144563171 -0400
++++ Makefile 2004-10-16 23:57:27.639495962 -0400
+@@ -2,5 +2,16 @@
+ # $FreeBSD: /repoman/r/ncvs/src/usr.bin/leave/Makefile,v 1.5 2002/02/08 22:31:41 markm Exp $
+
+ PROG= leave
++CC ?= gcc
++CFLAGS=
++LDFLAGS=
+
+-.include <bsd.prog.mk>
++#.include <bsd.prog.mk>
++
++all: $(PROG)
++$(PROG): leave.o
++ $(CC) $(LDFLAGS) leave.o -o $(PROG)
++leave.o:
++ $(CC) $(CFLAGS) -c leave.c
++clean:
++ rm -f $(PROG) *.o
diff --git a/app-misc/leave/leave-20100918.ebuild b/app-misc/leave/leave-20100918.ebuild
new file mode 100644
index 000000000000..e2412fd36985
--- /dev/null
+++ b/app-misc/leave/leave-20100918.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="3"
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Command-line tool from FreeBSD that reminds you when its time to leave"
+HOMEPAGE="http://www.freebsd.org/cgi/cvsweb.cgi/src/usr.bin/leave/"
+SRC_URI="mirror://gentoo/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE=""
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-fix-makefile.diff"
+}
+
+src_compile() {
+ emake \
+ CC="$(tc-getCC)" \
+ CFLAGS="${CFLAGS}" \
+ LDFLAGS="${LDFLAGS}"\
+ || die "emake failed"
+}
+
+src_install() {
+ dobin leave || die "dobin failed"
+ doman leave.1 || die "doman failed"
+ dodoc "${FILESDIR}/README" || die "dodoc failed"
+}
diff --git a/app-misc/leave/metadata.xml b/app-misc/leave/metadata.xml
new file mode 100644
index 000000000000..40149c995561
--- /dev/null
+++ b/app-misc/leave/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>shell-tools</herd>
+</pkgmetadata>
diff --git a/app-misc/ledit/Manifest b/app-misc/ledit/Manifest
new file mode 100644
index 000000000000..ca5def5f0466
--- /dev/null
+++ b/app-misc/ledit/Manifest
@@ -0,0 +1 @@
+DIST ledit-2.03.tgz 24319 SHA256 ce08a8568c964009ccb0cbba45ae78b9a96c823f42a4fd61431a5b0c2c7a19ce SHA512 94281ea31d02c046db73bed42a1835826f063ff5d1ff4c374356e37fdf6b1a018f95a6372ece0eec53193aaf2e95c234c509ac178541bfe48dbc6f223f34f661 WHIRLPOOL da09a026b1b06cd6496b4195062a670d8cbe9900da54d52b83451f2cbfc877471fdce113306ec0027b045b3038dc709645573b70106792d9f154b1ca84477b41
diff --git a/app-misc/ledit/ledit-2.03.ebuild b/app-misc/ledit/ledit-2.03.ebuild
new file mode 100644
index 000000000000..1416711bafa7
--- /dev/null
+++ b/app-misc/ledit/ledit-2.03.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils
+
+RESTRICT="installsources"
+IUSE="+ocamlopt"
+
+DESCRIPTION="A line editor to be used with interactive commands"
+SRC_URI="http://pauillac.inria.fr/~ddr/ledit/distrib/src/${P}.tgz"
+HOMEPAGE="http://pauillac.inria.fr/~ddr/ledit/"
+
+DEPEND=">=dev-lang/ocaml-3.09:=[ocamlopt?]
+ dev-ml/camlp5:="
+RDEPEND="${DEPEND}"
+
+SLOT="0"
+LICENSE="BSD"
+KEYWORDS="amd64 ppc x86 ~x86-fbsd"
+
+src_compile() {
+ emake -j1 all
+ if use ocamlopt; then
+ emake -j1 ledit.opt
+ else
+ # If using bytecode we dont want to strip the binary as it would remove the
+ # bytecode and only leave ocamlrun...
+ export STRIP_MASK="*/bin/*"
+ fi
+}
+
+src_install() {
+ if use ocamlopt; then
+ newbin ledit.opt ledit
+ else
+ newbin ledit.out ledit
+ fi
+ doman ledit.1
+ dodoc CHANGES README
+}
diff --git a/app-misc/ledit/metadata.xml b/app-misc/ledit/metadata.xml
new file mode 100644
index 000000000000..849ed8ebf13d
--- /dev/null
+++ b/app-misc/ledit/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>ml</herd>
+</pkgmetadata>
diff --git a/app-misc/lfm/Manifest b/app-misc/lfm/Manifest
new file mode 100644
index 000000000000..85c41d8de693
--- /dev/null
+++ b/app-misc/lfm/Manifest
@@ -0,0 +1 @@
+DIST lfm-2.3.tar.gz 119120 SHA256 e8df188c17d4d676cf41ccae9f6bf82aa0c5ff3942d5aad985990ad1446c9504 SHA512 d244cd03ebf4b145c0d364d9d7038a2b640010e7e6bc413a3613d4519afac4856ee7694a962176d7693bef6503b80703685b1cefab1eda0f8d0768ae10abf6c7 WHIRLPOOL 559bfd2bda0438709f53a7c22f285aeb932e6929b7c0e16af2684088c65f21a068440e5888e772a0b67bd45c2541a2441a5a22ab13011aa8eb97dd7bd5fc591f
diff --git a/app-misc/lfm/files/lfm-2.3-no-doc.patch b/app-misc/lfm/files/lfm-2.3-no-doc.patch
new file mode 100644
index 000000000000..3b69881589e0
--- /dev/null
+++ b/app-misc/lfm/files/lfm-2.3-no-doc.patch
@@ -0,0 +1,12 @@
+--- lfm-2.3/setup.py.orig
++++ lfm-2.3/setup.py
+@@ -56,8 +56,7 @@
+ 'lfm/actions', 'lfm/compress', 'lfm/utils', 'lfm/vfs',
+ 'lfm/config', 'lfm/pyview'],
+ scripts = ['lfm/lfm', 'lfm/pyview'],
+- data_files = [('share/doc/lfm', DOC_FILES),
+- ('share/man/man1', MAN_FILES)]
++ data_files = [('share/man/man1', MAN_FILES)]
+ # **addargs
+ )
+
diff --git a/app-misc/lfm/lfm-2.3-r1.ebuild b/app-misc/lfm/lfm-2.3-r1.ebuild
new file mode 100644
index 000000000000..d8feba38bdb2
--- /dev/null
+++ b/app-misc/lfm/lfm-2.3-r1.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="ncurses"
+
+inherit distutils-r1 eutils
+
+DESCRIPTION="Last File Manager is a powerful file manager for the console"
+HOMEPAGE="http://code.google.com/p/lfm/"
+SRC_URI="http://lfm.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-no-doc.patch
+}
diff --git a/app-misc/lfm/metadata.xml b/app-misc/lfm/metadata.xml
new file mode 100644
index 000000000000..ccea844db312
--- /dev/null
+++ b/app-misc/lfm/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>
+ <email>maintainer-needed@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-misc/linux-logo/Manifest b/app-misc/linux-logo/Manifest
new file mode 100644
index 000000000000..82104ca83690
--- /dev/null
+++ b/app-misc/linux-logo/Manifest
@@ -0,0 +1 @@
+DIST linux_logo-5.11.tar.gz 103623 SHA256 f56634d7b6bebd6598705d973997435fdc9cb9115dea3cc1d63398c92ebe72d9 SHA512 3c11d59eeb1ea613eb66d3ea5ef2d7c9ef906cb12430b9350570a6a1937ec174bdd974e6227358339c3fd2e0647a5066a0bea22289c4aa9bc8b03afb0033f114 WHIRLPOOL d2f83045df8c2f23f74a527af1aa36ea952fb3595ebed39d216b6ccdf12609051598024e703c8af6d496cf1c7e66de27104dfdb885fe8bbab60e1607fd0ed1a5
diff --git a/app-misc/linux-logo/files/gentoo-alt.logo b/app-misc/linux-logo/files/gentoo-alt.logo
new file mode 100644
index 000000000000..f60430dade98
--- /dev/null
+++ b/app-misc/linux-logo/files/gentoo-alt.logo
@@ -0,0 +1,39 @@
+# Gentoo Logo
+# Added by James Rowe <Jay@jnrowe.uklinux.net>
+# Assigned to Gentoo Foundation under GPL2
+
+SYSINFO_POSITION bottom
+
+NAME gentoo-alt
+
+DESCRIPTION_STRING Gentoo Linux Logo
+
+BEGIN_LOGO
+
+
+ .
+ .vir. d$b
+ .d$$$$$$b. .cd$$b. .d$$b. d$$$$$$$$$$$b .d$$b. .d$$b.
+ $$$$( )$$$b d$$$()$$$. d$$$$$$$b Q$$$$$$$P$$$P.$$$$$$$b. .$$$$$$$b.
+ Q$$$$$$$$$$B$$$$$$$$P" d$$$PQ$$$$b. $$$$. .$$$P' `$$$ .$$$P' `$$$
+ "$$$$$$$P Q$$$$$$$b d$$$P Q$$$$b $$$$b $$$$b..d$$$ $$$$b..d$$$
+ d$$$$$$P" "$$$$$$$$ Q$$$ Q$$$$ $$$$$ `Q$$$$$$$P `Q$$$$$$$P
+| $$$$$$$P `""""" "" "" Q$$$P "Q$$$P" "Q$$$P"
+| `Q$$P" """
++--------------------------------------------------------- l i n u x
+END_LOGO
+
+BEGIN_ASCII_LOGO
+
+
+ .
+ .vir. d$b
+ .d$$$$$$b. .cd$$b. .d$$b. d$$$$$$$$$$$b .d$$b. .d$$b.
+ $$$$( )$$$b d$$$()$$$. d$$$$$$$b Q$$$$$$$P$$$P.$$$$$$$b. .$$$$$$$b.
+ Q$$$$$$$$$$B$$$$$$$$P" d$$$PQ$$$$b. $$$$. .$$$P' `$$$ .$$$P' `$$$
+ "$$$$$$$P Q$$$$$$$b d$$$P Q$$$$b $$$$b $$$$b..d$$$ $$$$b..d$$$
+ d$$$$$$P" "$$$$$$$$ Q$$$ Q$$$$ $$$$$ `Q$$$$$$$P `Q$$$$$$$P
+| $$$$$$$P `""""" "" "" Q$$$P "Q$$$P" "Q$$$P"
+| `Q$$P" """
++--------------------------------------------------------- l i n u x
+END_ASCII_LOGO
diff --git a/app-misc/linux-logo/files/gentoo-linux.logo b/app-misc/linux-logo/files/gentoo-linux.logo
new file mode 100644
index 000000000000..73581f001eb5
--- /dev/null
+++ b/app-misc/linux-logo/files/gentoo-linux.logo
@@ -0,0 +1,82 @@
+# Gentoo Linux logo
+# Drawn by Harri Hautakangas
+# Assigned to Gentoo Foundation under GPL2
+
+SYSINFO_POSITION bottom
+
+NAME gentoo
+
+DESCRIPTION_STRING Gentoo Logo
+
+BEGIN_LOGO
+.....####......................................##
+#.............................
+....#######....................... ###
+.........###.............................
+...##########.....................
+####....#############...................
+.....
+...####..#######....#####
+........######...#############...
+#####.......#####....
+...#############...######
+#......########...
+############..#######
+.....#######...
+....###########.. ##
+#.####..... ###
+#.####......###
+#.... #########...#########
+..
+......########...########
+......#####..###
+#.....####....###########
+.###########.
+.......######....######........
+####....####....
+####....########
+###.###########.
+......######.....######.......
+#####.....####..
+.####....#####.
+.####.#####..####
+.
+.....######......##########...
+####.......####.
+.####....##########
+..##########..
+.....#####.......########
+###.#####........#
+###.####.....#
+#######....########...
+.....####.........#
+#########.#####
+........####.###
+#......######......#
+#####....
+......##...........######## 
+. ####.........##...
+###.......####........
+####.....
+................................................................
+... ...........
+
+END_LOGO
+
+BEGIN_ASCII_LOGO
+.....####......................................###.............................
+....#######....................... ###.........###.............................
+...##########.....................####....#############........................
+...####..#######....#####........######...#############...#####.......#####....
+...#############...#######......########...############..#######.....#######...
+....###########.. ###.####..... ####.####......####.... #########...#########..
+......########...########......#####..####.....####....###########.###########.
+.......######....######........####....####....####....###########.###########.
+......######.....######.......#####.....####...####....#####..####.#####..####.
+.....######......##########...####.......####..####....##########..##########..
+.....#####.......###########.#####........####.####.....########....########...
+.....####.........##########.#####........####.####......######......######....
+......##...........######## . ####.........##...###.......####........####.....
+................................................................... ...........
+
+END_ASCII_LOGO
diff --git a/app-misc/linux-logo/files/linux-logo-5.11.conf b/app-misc/linux-logo/files/linux-logo-5.11.conf
new file mode 100644
index 000000000000..355ebc5cc089
--- /dev/null
+++ b/app-misc/linux-logo/files/linux-logo-5.11.conf
@@ -0,0 +1,28 @@
+# Seq Description Output
+# ----------------------------------------------------------------
+# ## #
+# #B Bogomips 374.37
+# #C Compiled Date #47 Fri Jan 8 10:37:09 EST 1999
+# #E User Text My Favorite Linux Distribution
+# Displayed with -t
+# #H Hostname deranged
+# #L Load average Load average 0.04, 0.01, 0.01
+# #M Megahertz 188Mhz
+# where supported
+# #N Number of CPU's Two
+# #O OS Name Linux
+# #P Processor or Processors Processor
+# #R Ram 64M
+# in Megabytes
+# #S Plural s
+# #T Type of CPU K6
+# #U Uptime Uptime 10 hours 59 minutes
+# #V Version of OS 2.2.0-pre5
+# #X CPU Vendor AMD
+# \\n carriage return
+
+LOGO="-L gentoo"
+FORMAT="Gentoo #O `cat /etc/gentoo-release | awk '{ print $5,$6 }'`\n#O #V, Compiled #C\n#N #X #T #M CPU#S, #R RAM, #B Bogomips\n#U\n#H / \l \n"
+FORMATNET="Gentoo #O `cat /etc/gentoo-release | awk '{ print $5,$6 }'`\n#O #V, Compiled #C\n#N #X #T #M CPU#S, #R RAM, #B Bogomips\n#U\n#H\n"
+OPTIONS="-f -u"
+
diff --git a/app-misc/linux-logo/files/linux-logo.init.d b/app-misc/linux-logo/files/linux-logo.init.d
new file mode 100644
index 000000000000..50ca96b04eb3
--- /dev/null
+++ b/app-misc/linux-logo/files/linux-logo.init.d
@@ -0,0 +1,36 @@
+#!/sbin/runscript
+
+ISSUE_BACKUP_FILE="/etc/issue.linux-logo.backup"
+ISSUE_NET_BACKUP_FILE="/etc/issue.net.linux-logo.backup"
+
+start() {
+ ebegin "Starting linux_logo"
+
+ if [ ! -x /usr/bin/linux_logo ]
+ then
+ eerror "ERROR: linux_logo not found !"
+ return 1
+ fi
+
+ ebegin " Creating /etc/issue"
+ cp /etc/issue ${ISSUE_BACKUP_FILE} 2> /dev/null
+ /usr/bin/linux_logo ${LOGO} ${OPTIONS} -F "${FORMAT}" > /etc/issue
+ eend $? " Failed to create /etc/issue"
+
+ if [ -f /etc/issue.net ]
+ then
+ ebegin " Creating /etc/issue.net"
+ cp /etc/issue.net ${ISSUE_NET_BACKUP_FILE} 2> /dev/null
+ /usr/bin/linux_logo ${LOGO} ${OPTIONS} -F "${FORMATNET}" > \
+ /etc/issue.net
+ eend $? " Failed to create /etc/issue.net"
+ fi
+}
+
+stop() {
+ ebegin "Stopping linux_logo"
+ [ -f ${ISSUE_NET_BACKUP_FILE} ] && \
+ mv ${ISSUE_NET_BACKUP_FILE} /etc/issue.net 2> /dev/null
+ [ -f ${ISSUE_BACKUP_FILE} ] && \
+ mv ${ISSUE_BACKUP_FILE} /etc/issue 2> /dev/null
+}
diff --git a/app-misc/linux-logo/files/linux-logo.service b/app-misc/linux-logo/files/linux-logo.service
new file mode 100644
index 000000000000..658d7103c5e9
--- /dev/null
+++ b/app-misc/linux-logo/files/linux-logo.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=linux-logo-creator
+After=systemd-user-sessions.service
+
+[Service]
+ExecStart=/usr/bin/linux_logo_creator
+
+[Install]
+WantedBy=logo.target
diff --git a/app-misc/linux-logo/files/linux_logo_creator b/app-misc/linux-logo/files/linux_logo_creator
new file mode 100644
index 000000000000..5acc2fd5b85b
--- /dev/null
+++ b/app-misc/linux-logo/files/linux_logo_creator
@@ -0,0 +1,12 @@
+#!/bin/bash
+FORMAT="Gentoo #O `cat /etc/gentoo-release | awk '{ print $5,$6 }'`\n#O #V, Compiled #C\n#N #X #T #M CPU#S, #R RAM, #B Bogomips\n#U\n#H / \l \n"
+FORMATNET="Gentoo #O `cat /etc/gentoo-release | awk '{ print $5,$6 }'`\n#O #V, Compiled #C\n#N #X #T #M CPU#S, #R RAM, #B Bogomips\n#U\n#H\n"
+OPTIONS="-L 2 -f -u"
+OPTIONSNET="-L 2 -f -u -a "
+
+# FORMAT="Gentoo Linux `cat /etc/gentoo-release | awk '{ print $5,$6 }'`"
+# /usr/bin/linux_logo -L 2 -f -u
+
+/usr/bin/linux_logo ${LOGO} ${OPTIONS} -F "${FORMAT}" > /etc/issue
+/usr/bin/linux_logo ${LOGO} ${OPTIONSNET} -F "${FORMATNET}" > /etc/issue.net
+
diff --git a/app-misc/linux-logo/files/logo-config b/app-misc/linux-logo/files/logo-config
new file mode 100644
index 000000000000..68ce395cf5ec
--- /dev/null
+++ b/app-misc/linux-logo/files/logo-config
@@ -0,0 +1,7 @@
+./logos/gentoo-linux.logo
+./logos/gentoo-alt.logo
+./logos/banner-simplified.logo
+./logos/banner.logo
+./logos/classic-no_periods.logo
+./logos/classic-no_periods_or_chars.logo
+./logos/classic.logo
diff --git a/app-misc/linux-logo/linux-logo-5.11-r3.ebuild b/app-misc/linux-logo/linux-logo-5.11-r3.ebuild
new file mode 100644
index 000000000000..99586b380b48
--- /dev/null
+++ b/app-misc/linux-logo/linux-logo-5.11-r3.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit toolchain-funcs systemd
+
+MY_P=${PN/-/_}-${PV}
+S=${WORKDIR}/${MY_P}
+DESCRIPTION="A utility that displays an ANSI/ASCII logo and some system information"
+HOMEPAGE="http://www.deater.net/weave/vmwprod/linux_logo/"
+SRC_URI="http://www.deater.net/weave/vmwprod/linux_logo/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 hppa ~ia64 ~mips ppc sparc x86 ~amd64-linux ~x86-linux"
+IUSE="nls"
+
+RDEPEND="nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ nls? ( sys-devel/gettext )"
+
+src_prepare() {
+ cp "${FILESDIR}"/logo-config "${S}/logo_config" || die
+ cp "${FILESDIR}"/linux_logo_creator "${S}/" || die
+ cp "${FILESDIR}"/linux-logo.service "${S}/" || die
+ cp "${FILESDIR}"/gentoo-*.logo "${S}"/logos/ || die
+
+ # Remove warn_unused_result warning
+ sed -i -e 's/FILE \*fff;/FILE \*fff;\n char *stemp;/' \
+ -e 's/fgets/stemp=fgets/' "${S}"/load_logo.c || die
+}
+
+src_configure() {
+ ARCH="" ./configure --prefix="${ED}"/usr || die
+}
+
+src_compile() {
+ emake CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" CC="$(tc-getCC)"
+}
+
+src_install() {
+ emake install
+
+ dodoc BUGS README README.CUSTOM_LOGOS TODO USAGE LINUX_LOGO.FAQ
+
+ dobin "${FILESDIR}"/linux_logo_creator
+ newinitd "${FILESDIR}"/${PN}.init.d ${PN}
+ newconfd "${FILESDIR}"/${P}.conf ${PN}
+
+ # systemd support
+ systemd_newunit "${FILESDIR}/linux-logo.service" "linux-logo.service"
+}
+
+pkg_postinst() {
+ echo
+ elog "Linux_logo ebuild for Gentoo comes with two Gentoo logos."
+ elog ""
+ elog "To display the first Gentoo logo type: linux_logo -L gentoo"
+ elog "To display the second Gentoo logo type: linux_logo -L gentoo-alt"
+ elog "To display all the logos available type: linux_logo -L list."
+ elog ""
+ elog "To start linux_logo on boot, please type:"
+ elog " rc-update add linux-logo default"
+ elog "or for systemd"
+ elog " systemctl enable linux-logo.service"
+ elog "which uses the settings found in"
+ elog " /etc/conf.d/linux-logo"
+ echo
+}
+
+pkg_prerm() {
+ # Restore issue files
+ mv /etc/issue.linux-logo.backup /etc/issue 2> /dev/null
+ mv /etc/issue.net.linux-logo.backup /etc/issue.net 2> /dev/null
+}
diff --git a/app-misc/linux-logo/metadata.xml b/app-misc/linux-logo/metadata.xml
new file mode 100644
index 000000000000..ccd2d6efab7e
--- /dev/null
+++ b/app-misc/linux-logo/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>
+ <email>nimiux@gentoo.org</email>
+ <name>Chema Alonso</name>
+</maintainer>
+<longdescription lang="en">
+ A utility that displays an ANSI/ASCII logo and some system information
+</longdescription>
+<longdescription lang="es">
+ Una utlidad que muestra un logotipo ANSI/ASCII e información del sistema
+</longdescription>
+<use>
+ <flag name="nls">Add Native Language Support (using gettext - GNU locale utilities)</flag>
+</use>
+</pkgmetadata>
diff --git a/app-misc/linuxspa/Manifest b/app-misc/linuxspa/Manifest
new file mode 100644
index 000000000000..a497c6e9c632
--- /dev/null
+++ b/app-misc/linuxspa/Manifest
@@ -0,0 +1 @@
+DIST LinuxSPA-0.7.1.tgz 45448 SHA256 7acef814174e2007d201f8b14a432075ede3709317c4632916dcca04187c97d1 SHA512 4b622330e88abe7d4b91392e75ef8d90902b731e051a7bdc93895aa82b6ae33a5e65bbe950c8d6884985cf8b7bdb1c3dd46b24d75f7c90a872e0a7758f929673 WHIRLPOOL 62c7b04590cd43886b06199f6357370af90f77a1c59cdd277db763ea43535a4833c499f5ea42ca948b3ac1326db19c4c580fd4b0f09568c90d7cf31851869b82
diff --git a/app-misc/linuxspa/files/linuxspa-0.7.1-compile-fix.patch b/app-misc/linuxspa/files/linuxspa-0.7.1-compile-fix.patch
new file mode 100644
index 000000000000..d8a3c858647b
--- /dev/null
+++ b/app-misc/linuxspa/files/linuxspa-0.7.1-compile-fix.patch
@@ -0,0 +1,12 @@
+diff -ur a/std232.c b/std232.c
+--- a/std232.c 2003-07-18 22:08:33.000000000 -0300
++++ b/std232.c 2006-05-11 21:31:33.000000000 -0300
+@@ -89,7 +89,7 @@
+ {
+ unsigned int index;
+
+- (unsigned int) index = strtol(temp, NULL, 16);
++ index = strtol(temp, NULL, 16);
+ if (index < 256)
+ return (&cmatrix[index][0]);
+ else return (&dmatrix[0]);
diff --git a/app-misc/linuxspa/linuxspa-0.7.1-r1.ebuild b/app-misc/linuxspa/linuxspa-0.7.1-r1.ebuild
new file mode 100644
index 000000000000..55a8c856a35f
--- /dev/null
+++ b/app-misc/linuxspa/linuxspa-0.7.1-r1.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit eutils toolchain-funcs
+
+MY_PN="LinuxSPA"
+DESCRIPTION="Linux Serial Protocol Analyser"
+HOMEPAGE="http://sourceforge.net/projects/serialsniffer/"
+SRC_URI="mirror://sourceforge/serialsniffer/${MY_PN}-${PV}.tgz"
+LICENSE="GPL-2"
+
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+S="${WORKDIR}/${MY_PN}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-compile-fix.patch
+ sed -i Makefile \
+ -e 's| -o | $(LDFLAGS)&|g' \
+ || die "sed Makefile"
+}
+
+src_compile() {
+ emake \
+ CC="$(tc-getCC)" \
+ CFLAGS="${CFLAGS} -Wall" \
+ LDFLAGS="${LDFLAGS}"
+}
+
+src_install() {
+ dobin LinuxSPA std232
+ dodoc ASCII_Filter.txt BCircuit.txt LinuxSPA.png READING_Materials.txt \
+ README TODO connector-1a.ps connector-2a.ps cooked.file raw.file
+}
diff --git a/app-misc/linuxspa/linuxspa-0.7.1.ebuild b/app-misc/linuxspa/linuxspa-0.7.1.ebuild
new file mode 100644
index 000000000000..5a3b084544f8
--- /dev/null
+++ b/app-misc/linuxspa/linuxspa-0.7.1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Linux Serial Protocol Analyser"
+HOMEPAGE="http://sourceforge.net/projects/serialsniffer/"
+SRC_URI="mirror://sourceforge/serialsniffer/LinuxSPA-0.7.1.tgz"
+LICENSE="GPL-2"
+
+SLOT="0"
+KEYWORDS="x86"
+IUSE=""
+
+MY_PN="LinuxSPA"
+S="${WORKDIR}/${MY_PN}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-compile-fix.patch
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" || die "emake failed"
+}
+
+src_install() {
+ dobin LinuxSPA std232
+ insinto /usr/share/doc/${P}
+ doins ASCII_Filter.txt BCircuit.txt LinuxSPA.png READING_Materials.txt
+ doins README TODO connector-1a.ps connector-2a.ps cooked.file raw.file
+}
diff --git a/app-misc/linuxspa/metadata.xml b/app-misc/linuxspa/metadata.xml
new file mode 100644
index 000000000000..10bb7f173697
--- /dev/null
+++ b/app-misc/linuxspa/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>
+ <email>maintainer-needed@gentoo.org</email>
+ </maintainer>
+ <longdescription>Linux Serial Protocol Analyser</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">serialsniffer</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/lirc/Manifest b/app-misc/lirc/Manifest
new file mode 100644
index 000000000000..354c2b935cc8
--- /dev/null
+++ b/app-misc/lirc/Manifest
@@ -0,0 +1 @@
+DIST lirc-0.9.0.tar.bz2 857286 SHA256 6323afae6ad498d4369675f77ec3dbb680fe661bea586aa296e67f2e2daba4ff SHA512 e91534c63e6065bd7da3b15e1676edf1672b8beb21864a6825df86247d7d165bf2dee6f8191732933e24e42a406e46afc55559948e4061eed2de7b08fac13431 WHIRLPOOL 0a1c00b07898aa7a5d78865fb73c6d26c6331dd0a4945773a801d29e40298b365eb58cae113a95fcf73be678a24ac082ad0868e8051303d732882fb82a859a7b
diff --git a/app-misc/lirc/files/irexec-confd b/app-misc/lirc/files/irexec-confd
new file mode 100644
index 000000000000..48eb8dd4c806
--- /dev/null
+++ b/app-misc/lirc/files/irexec-confd
@@ -0,0 +1,9 @@
+# Options to pass to the irexec process
+IREXEC_OPTS="/etc/lircrc"
+
+# User to execute irexec as.
+# Warning: Running irexec as root can open security holes
+#IREXEC_USER="root"
+
+# Use this to disable the warning printed when starting irexec as root
+# IREXEC_DISABLE_ROOT_WARNING=yes
diff --git a/app-misc/lirc/files/irexec-initd b/app-misc/lirc/files/irexec-initd
new file mode 100755
index 000000000000..377ca0d2cf97
--- /dev/null
+++ b/app-misc/lirc/files/irexec-initd
@@ -0,0 +1,28 @@
+#!/sbin/runscript
+# Copyright 2003 Martin Hierling <mad@cc.fh-lippe.de>
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+: ${IREXEC_USER:=root}
+
+depend() {
+ need lircd
+}
+
+start() {
+ if [ "x${IREXEC_USER}" = "xroot" -a "x${IREXEC_DISABLE_ROOT_WARNING}" != "xyes" ]; then
+ ewarn "Warning: Running irexec as root can open security holes"
+ fi
+
+ ebegin "Starting irexec"
+ start-stop-daemon --start --chuid ${IREXEC_USER} --user ${IREXEC_USER} --chdir / \
+ --exec /usr/bin/irexec -- --daemon ${IREXEC_OPTS}
+ eend $? "Failed to start irexec."
+}
+
+stop() {
+ ebegin "Stopping irexec"
+ start-stop-daemon --stop --exec /usr/bin/irexec --user ${IREXEC_USER}
+ eend $? "Failed to stop irexec."
+}
+
diff --git a/app-misc/lirc/files/irexec-initd-0.8.6-r2 b/app-misc/lirc/files/irexec-initd-0.8.6-r2
new file mode 100755
index 000000000000..8c940d764e86
--- /dev/null
+++ b/app-misc/lirc/files/irexec-initd-0.8.6-r2
@@ -0,0 +1,28 @@
+#!/sbin/runscript
+# Copyright 2003 Martin Hierling <mad@cc.fh-lippe.de>
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+: ${IREXEC_USER:=root}
+
+depend() {
+ need lirc
+}
+
+start() {
+ if [ "x${IREXEC_USER}" = "xroot" -a "x${IREXEC_DISABLE_ROOT_WARNING}" != "xyes" ]; then
+ ewarn "Warning: Running irexec as root can open security holes"
+ fi
+
+ ebegin "Starting irexec"
+ start-stop-daemon --start --chuid ${IREXEC_USER} --user ${IREXEC_USER} --chdir / \
+ --exec /usr/bin/irexec -- --daemon ${IREXEC_OPTS}
+ eend $? "Failed to start irexec."
+}
+
+stop() {
+ ebegin "Stopping irexec"
+ start-stop-daemon --stop --exec /usr/bin/irexec --user ${IREXEC_USER}
+ eend $? "Failed to stop irexec."
+}
+
diff --git a/app-misc/lirc/files/irexec.service b/app-misc/lirc/files/irexec.service
new file mode 100644
index 000000000000..53dac65dc234
--- /dev/null
+++ b/app-misc/lirc/files/irexec.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=IR Exec
+After=lirc.service
+Wants=lirc.service
+
+[Service]
+ExecStart=/usr/bin/irexec
+
+[Install]
+WantedBy=multi-user.target
diff --git a/app-misc/lirc/files/lirc-0.8.3_pre1-remotewonderplus.patch b/app-misc/lirc/files/lirc-0.8.3_pre1-remotewonderplus.patch
new file mode 100644
index 000000000000..66527bcc5709
--- /dev/null
+++ b/app-misc/lirc/files/lirc-0.8.3_pre1-remotewonderplus.patch
@@ -0,0 +1,26 @@
+--- lirc-0.8.0/drivers/lirc_atiusb/lirc_atiusb.c.orig 2005-10-29 08:18:53.000000000 -0600
++++ lirc-0.8.0/drivers/lirc_atiusb/lirc_atiusb.c 2006-04-01 14:31:05.000000000 -0700
+@@ -147,8 +147,9 @@
+ /* init strings */
+ #define USB_OUTLEN 7
+
+-static char init1[] = {0x01, 0x00, 0x20, 0x14};
+-static char init2[] = {0x01, 0x00, 0x20, 0x14, 0x20, 0x20, 0x20};
++static char init1[] = {0x80, 0x05, 0x1b, 0x15, 0x14, 0x20, 0x24, 0x15};
++static char init2[] = {0x83, 0x03};
++static char init3[] = {0x84, 0xd7, 0x020};
+
+ struct in_endpt {
+ /* inner link in list of endpoints for the remote specified by ir */
+@@ -1034,8 +1034,9 @@
+ usb_sndintpipe(ir->usbdev, oep->ep->bEndpointAddress), oep->buf,
+ USB_OUTLEN, usb_remote_send, oep, oep->ep->bInterval);
+
+- send_packet(oep, 0x8004, init1);
+- send_packet(oep, 0x8007, init2);
++ send_packet(oep, 0x8007, init1);
++ send_packet(oep, 0x8002, init2);
++ send_packet(oep, 0x8003, init3);
+ }
+ }
+
diff --git a/app-misc/lirc/files/lirc-0.8.4-portaudio_check.patch b/app-misc/lirc/files/lirc-0.8.4-portaudio_check.patch
new file mode 100644
index 000000000000..36f5f360cd18
--- /dev/null
+++ b/app-misc/lirc/files/lirc-0.8.4-portaudio_check.patch
@@ -0,0 +1,18 @@
+Portaudio is only needed for LIRC_DEVICES=audio, so not checking for Portaudio when the device is disabled will prevent automagic dependencies.
+--- configure.ac.orig 2009-03-13 10:02:50.000000000 +0100
++++ configure.ac 2009-03-13 10:04:00.000000000 +0100
+@@ -336,14 +336,6 @@
+ AC_DEFINE(HAVE_LIBIRMAN_SW)
+ possible_drivers="${possible_drivers} (irman_sw)"
+ )
+-dnl audio driver requires PortAudio library installed and some linker flags
+-AC_CHECK_HEADERS(portaudio.h,[
+- AC_CHECK_LIB(portaudio, Pa_Initialize,[
+- AC_DEFINE(HAVE_LIBPORTAUDIO)
+- possible_drivers="${possible_drivers} (audio)"
+- ],,${portaudio_lib_other}
+- )]
+-)
+ dnl audio_alsa driver requires ALSA library installed and some linker flags
+ have_alsa=no
+ AC_CHECK_HEADERS(alsa/asoundlib.h,[
diff --git a/app-misc/lirc/files/lirc-0.9.0-add-zotac-support.patch b/app-misc/lirc/files/lirc-0.9.0-add-zotac-support.patch
new file mode 100644
index 000000000000..381860ced6fb
--- /dev/null
+++ b/app-misc/lirc/files/lirc-0.9.0-add-zotac-support.patch
@@ -0,0 +1,658 @@
+diff -rupN base/configure.ac mod/configure.ac
+--- base/configure.ac 2011-03-25 23:28:18.000000000 +0100
++++ mod/configure.ac 2013-03-21 16:25:07.218419985 +0100
+@@ -383,7 +383,7 @@ AC_CHECK_HEADERS(linux/input.h,[
+ dnl check if hiddev is available
+ AC_CHECK_HEADERS([linux/types.h])
+ AC_CHECK_HEADERS([linux/hiddev.h],[
+- possible_drivers="${possible_drivers} (asusdh) (bw6130) (dvico) (macmini)"
++ possible_drivers="${possible_drivers} (asusdh) (bw6130) (dvico) (macmini) (zotac)"
+ AC_MSG_CHECKING(for HIDDEV_FLAG_UREF support)
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
+ #include <linux/types.h>
+@@ -393,7 +393,7 @@ AC_CHECK_HEADERS([linux/hiddev.h],[
+ ]])],[
+ AC_MSG_RESULT(yes)
+ AC_DEFINE(HAVE_LINUX_HIDDEV_FLAG_UREF)
+- possible_drivers="${possible_drivers} (samsung) (sb0540)"
++ possible_drivers="${possible_drivers} (samsung) (sb0540) (zotac)"
+ ],[
+ AC_MSG_RESULT(no)
+ ])
+@@ -446,7 +446,7 @@ AC_ARG_WITH(driver,
+ srm7500libusb, tekram,
+ tekram_bt829, tira, tira_raw, ttusbir,
+ tuxbox, tvbox, udp, uirt2, uirt2_raw,
+- usb_uirt_raw, usbx, wpc8769l],
++ usb_uirt_raw, usbx, wpc8769l, zotac],
+ driver=${withval},
+ driver="unset"
+ )
+@@ -464,6 +464,7 @@ portaudio_lib=""
+ alsa_lib=""
+ atilibusb_lib=""
+ atwf83_lib=""
++zotac_lib=""
+ awlibusb_lib=""
+ dfclibusb_lib=""
+ srm7500libusb_lib=""
+@@ -683,6 +684,10 @@ if test "$driver" = "userspace" -o "$dri
+ usbx)
+ hw_module="${hw_module} hw_usbx.o serial.o"
+ ;;
++ zotac)
++ hw_module="${hw_module} hw_zotac.o"
++ zotac_lib=-lpthread
++ ;;
+ esac
+ done
+ #remove duplicates
+@@ -733,6 +738,14 @@ if test "$driver" = "alsa_usb"; then
+ lircd_conf="creative/lircd.conf.alsa_usb"
+ fi
+
++if test "$driver" = "zotac"; then
++ lirc_driver="$driver"
++ hw_module="hw_zotac.o"
++ HW_DEFAULT="hw_zotac"
++ lircd_conf="zotac/lircd.conf.zotac"
++ zotac_lib=-lpthread
++fi
++
+ if test "$driver" = "animax"; then
+ lirc_driver="lirc_dev lirc_serial"
+ lircd_conf="animax/lircd.conf.animax"
+@@ -1499,6 +1512,7 @@ if test "$lirc_driver" = "none" || \
+ test "$lirc_driver" = "macmini" || \
+ test "$lirc_driver" = "samsung" || \
+ test "$lirc_driver" = "sb0540" || \
++ test "$lirc_driver" = "zotac" || \
+ test "$lirc_driver" = "srm7500libusb" || \
+ test "$lirc_driver" = "userspace"; then
+ lirc_driver=
+@@ -1669,7 +1683,7 @@ if ! echo ${hw_module}|grep " receive.o"
+ receive="receive.o"
+ fi
+
+-hw_module_libs="${alsa_lib} ${atilibusb_lib} ${awlibusb_lib} ${caraca_lib} ${commandir_lib} ${dfclibusb_lib} ${ftdi_lib} ${iguanaIR_lib} ${irman_lib} ${portaudio_lib} ${srm7500libusb_lib} ${atwf83_lib}"
++hw_module_libs="${alsa_lib} ${atilibusb_lib} ${awlibusb_lib} ${caraca_lib} ${commandir_lib} ${dfclibusb_lib} ${ftdi_lib} ${iguanaIR_lib} ${irman_lib} ${portaudio_lib} ${srm7500libusb_lib} ${atwf83_lib} ${zotac_lib}"
+
+ dnl tell the Makefiles what we decided
+ AC_SUBST(daemon)
+diff -rupN base/daemons/Makefile.am mod/daemons/Makefile.am
+--- base/daemons/Makefile.am 2011-03-25 23:28:18.000000000 +0100
++++ mod/daemons/Makefile.am 2013-03-21 16:25:40.488790784 +0100
+@@ -58,7 +58,8 @@ EXTRA_libhw_module_a_SOURCES = \
+ hw_usbx.c hw_usbx.h \
+ receive.c receive.h \
+ transmit.c transmit.h \
+- serial.c serial.h
++ serial.c serial.h \
++ hw_zotac.c
+
+ libhw_module_a_LIBADD = @hw_module@
+ libhw_module_a_DEPENDENCIES = @hw_module@
+diff -rupN base/daemons/hw-types.c mod/daemons/hw-types.c
+--- base/daemons/hw-types.c 2011-03-25 23:28:18.000000000 +0100
++++ mod/daemons/hw-types.c 2013-03-21 16:26:38.913200218 +0100
+@@ -59,6 +59,7 @@ extern struct hardware hw_uirt2;
+ extern struct hardware hw_uirt2_raw;
+ extern struct hardware hw_usb_uirt_raw;
+ extern struct hardware hw_usbx;
++extern struct hardware hw_zotac;
+
+ #ifndef HW_DEFAULT
+ # define HW_DEFAULT hw_default
+@@ -160,6 +161,7 @@ struct hardware *hw_list[] = {
+ #ifdef HAVE_LINUX_HIDDEV_FLAG_UREF
+ &hw_samsung,
+ &hw_sb0540,
++ &hw_zotac,
+ #endif
+ &hw_silitek,
+ #ifdef HAVE_LIBUSB
+diff -rupN base/daemons/hw_zotac.c mod/daemons/hw_zotac.c
+--- base/daemons/hw_zotac.c 1970-01-01 01:00:00.000000000 +0100
++++ mod/daemons/hw_zotac.c 2013-03-21 16:31:06.989272556 +0100
+@@ -0,0 +1,429 @@
++/****************************************************************************
++ ** hw_zotac.c *************************************************************
++ ****************************************************************************
++ *
++ * Lirc driver for Zotac remote
++ *
++ * Copyright (C) 2010 Rainer Hochecker
++ *
++ * Distribute under GPL version 2 or later.
++ *
++ */
++
++#ifdef HAVE_CONFIG_H
++# include <config.h>
++#endif
++
++#include <stdio.h>
++#include <pthread.h>
++#include <sys/fcntl.h>
++#include <signal.h>
++#include <linux/hiddev.h>
++#include <sys/ioctl.h>
++#include "hardware.h"
++#include "ir_remote.h"
++#include "lircd.h"
++
++enum {
++ RPT_NO = 0,
++ RPT_YES = 1,
++};
++
++static int zotac_init();
++static int zotac_deinit();
++static char *zotac_rec(struct ir_remote *remotes);
++static int zotac_decode(struct ir_remote *remote, ir_code * prep, ir_code * codep, ir_code * postp, int *repeat_flagp,
++ lirc_t * min_remaining_gapp, lirc_t * max_remaining_gapp);
++static void *zotac_repeat();
++static int zotac_getcode();
++
++/** Max number of repetitions */
++static unsigned max_repeat_count = 500;
++/** Code that triggers key release */
++static unsigned release_code = 0x00000000;
++/** Code that triggers device remove */
++static unsigned remove_code =0x00FFFFFF;
++/** Time to wait before first repetition */
++static unsigned repeat_time1_us = 500000;
++/** Time to wait between two repetitions */
++static unsigned repeat_time2_us = 100000;
++/** Pipe between main thread and repetition thread */
++static int fd_pipe[2] = { -1, -1 };
++
++/** Thread that simulates repetitions */
++static pthread_t repeat_thread;
++/** File descriptor for the real device */
++static int fd_hidraw;
++
++static int main_code_length = 32;
++static signed int main_code = 0;
++static struct timeval start, end, last;
++static int repeat_state = RPT_NO;
++static int error_state = 0;
++static int probe_code = 0;
++
++#ifdef HAVE_LINUX_HIDDEV_FLAG_UREF
++/* Zotac USB iR Receiver */
++struct hardware hw_zotac = {
++ "/dev/usb/hiddev0", /* "device" */
++ -1, /* fd (device) */
++ LIRC_CAN_REC_LIRCCODE, /* features */
++ 0, /* send_mode */
++ LIRC_MODE_LIRCCODE, /* rec_mode */
++ 32, /* code_length */
++ zotac_init, /* init_func */
++ zotac_deinit, /* deinit_func */
++ NULL, /* send_func */
++ zotac_rec, /* rec_func */
++ zotac_decode, /* decode_func */
++ NULL, /* ioctl_func */
++ NULL, /* readdata */
++ "zotac" /* name */
++};
++#endif
++
++static int zotac_decode(struct ir_remote *remote, ir_code * prep, ir_code * codep, ir_code * postp, int *repeat_flagp,
++ lirc_t * min_remaining_gapp, lirc_t * max_remaining_gapp)
++{
++ LOGPRINTF(1, "zotac_decode");
++
++ if (!map_code(remote, prep, codep, postp, 0, 0, main_code_length, main_code, 0, 0)) {
++ return 0;
++ }
++
++ map_gap(remote, &start, &last, 0, repeat_flagp, min_remaining_gapp, max_remaining_gapp);
++ /* override repeat */
++ *repeat_flagp = repeat_state;
++
++ return 1;
++}
++
++static int zotac_getcode() {
++
++ ssize_t rd;
++ struct hiddev_usage_ref uref;
++ struct hiddev_report_info rinfo;
++ struct hiddev_field_info finfo;
++ int shift = 0;
++
++ rd = read(fd_hidraw, &uref, sizeof(uref));
++ if (rd < 0) {
++ logprintf(LOG_ERR, "error reading '%s'", hw.device);
++ logperror(LOG_ERR, NULL);
++ zotac_deinit();
++ error_state = 1;
++ return -1;
++ }
++
++ if (uref.field_index == HID_FIELD_INDEX_NONE) {
++ /*
++ * we get this when the new report has been send from
++ * device at this point we have the uref structure
++ * prefilled with correct report type and id
++ *
++ */
++
++ switch (uref.report_id) {
++ case 1: /* USB standard keyboard usage page */
++ {
++ /* This page reports cursor keys */
++ LOGPRINTF(3, "Keyboard (standard)\n");
++
++ /* check for special codes */
++ uref.field_index = 0;
++ uref.usage_index = 1;
++ /* fetch the usage code for given indexes */
++ ioctl(fd_hidraw, HIDIOCGUCODE, &uref, sizeof(uref));
++ /* fetch the value from report */
++ ioctl(fd_hidraw, HIDIOCGUSAGE, &uref, sizeof(uref));
++
++ if (uref.value)
++ shift = 1;
++
++ /* populate required field number */
++ uref.field_index = 1;
++ uref.usage_index = 0;
++ /* fetch the usage code for given indexes */
++ ioctl(fd_hidraw, HIDIOCGUCODE, &uref, sizeof(uref));
++ /* fetch the value from report */
++ ioctl(fd_hidraw, HIDIOCGUSAGE, &uref, sizeof(uref));
++ /* now we have the key */
++
++ LOGPRINTF(3, "usage: %x value: %x shift: %d\n",uref.usage_code, uref.value, shift);
++
++ /* now we have the key */
++ if (uref.value) {
++ probe_code = (uref.usage_code | uref.value);
++ if (shift)
++ probe_code |= 0x10000000;
++ LOGPRINTF(3, "Main code 1: %x\n", probe_code);
++ return 1;
++ }
++ else {
++ LOGPRINTF(3, "rel button\n");
++ probe_code = release_code;
++ return 2;
++ }
++ }
++ break;
++
++ case 2:
++ case 3: /* USB generic desktop usage page */
++ case 4:
++ {
++ /* This page reports power key
++ * (via SystemControl SLEEP)
++ */
++ LOGPRINTF(3, "Generic desktop (standard)\n");
++
++
++ /* traverse report descriptor */
++ rinfo.report_type = HID_REPORT_TYPE_INPUT;
++ rinfo.report_id = HID_REPORT_ID_FIRST;
++ rd = ioctl(fd_hidraw, HIDIOCGREPORTINFO, &rinfo);
++
++ unsigned int i,j;
++ while (rd >= 0) {
++ for (i = 0; i < rinfo.num_fields; i++) {
++ finfo.report_type = rinfo.report_type;
++ finfo.report_id = rinfo.report_id;
++ finfo.field_index = i;
++ ioctl(fd_hidraw, HIDIOCGFIELDINFO, &finfo);
++ for (j = 0; j < finfo.maxusage; j++) {
++ uref.field_index = i;
++ uref.usage_index = j;
++ ioctl(fd_hidraw, HIDIOCGUCODE, &uref);
++ ioctl(fd_hidraw, HIDIOCGUSAGE, &uref);
++
++ if (uref.value != 0) {
++ LOGPRINTF(3, "field: %d, idx: %d, usage: %x value: %x\n",i, j, uref.usage_code, uref.value);
++ probe_code = uref.usage_code;
++ return 1;
++ }
++ }
++ }
++ rinfo.report_id |= HID_REPORT_ID_NEXT;
++ rd = ioctl(fd_hidraw, HIDIOCGREPORTINFO, &rinfo);
++ }
++ return 2;
++ }
++ break;
++ default:
++ /* Unknown/unsupported report id.
++ * Should not happen because remaining reports
++ * from report descriptor seem to be unused by remote.
++ */
++ logprintf(LOG_ERR, "Unexpected report id %d", uref.report_id);
++ break;
++ }
++ }
++ else {
++ /* This page reports power key
++ * (via SystemControl SLEEP)
++ */
++ LOGPRINTF(3, "Same Event ...\n");
++
++ /* traverse report descriptor */
++ rinfo.report_type = HID_REPORT_TYPE_INPUT;
++ rinfo.report_id = HID_REPORT_ID_FIRST;
++ rd = ioctl(fd_hidraw, HIDIOCGREPORTINFO, &rinfo);
++
++ unsigned int i,j;
++ while (rd >= 0) {
++ for (i = 0; i < rinfo.num_fields; i++) {
++ finfo.report_type = rinfo.report_type;
++ finfo.report_id = rinfo.report_id;
++ finfo.field_index = i;
++ ioctl(fd_hidraw, HIDIOCGFIELDINFO, &finfo);
++ for (j = 0; j < finfo.maxusage; j++) {
++ uref.field_index = i;
++ uref.usage_index = j;
++ ioctl(fd_hidraw, HIDIOCGUCODE, &uref);
++ ioctl(fd_hidraw, HIDIOCGUSAGE, &uref);
++
++ if (uref.value != 0) {
++ LOGPRINTF(3, "usage: %x value: %x\n",uref.usage_code, uref.value);
++ //probe_code = uref.usage_code;
++ return 0;
++ }
++ }
++ }
++ rinfo.report_id |= HID_REPORT_ID_NEXT;
++ rd = ioctl(fd_hidraw, HIDIOCGREPORTINFO, &rinfo);
++ }
++ return 2;
++ }
++ return 0;
++}
++
++static int zotac_init()
++{
++ logprintf(LOG_INFO, "zotac initializing '%s'", hw.device);
++ if ((fd_hidraw = open(hw.device, O_RDONLY)) < 0) {
++ logprintf(LOG_ERR, "unable to open '%s'", hw.device);
++ return 0;
++ }
++ int flags = HIDDEV_FLAG_UREF | HIDDEV_FLAG_REPORT;
++ if (ioctl(fd_hidraw, HIDIOCSFLAG, &flags)) {
++ return 0;
++ }
++ hw.fd = fd_hidraw;
++
++ /* Create pipe so that events sent by the repeat thread will
++ trigger main thread */
++ if (pipe(fd_pipe) != 0) {
++ logperror(LOG_ERR, "couldn't open pipe");
++ close(fd_hidraw);
++ return 0;
++ }
++ hw.fd = fd_pipe[0];
++ /* Create thread to simulate repetitions */
++ if (pthread_create(&repeat_thread, NULL, zotac_repeat, NULL)) {
++ logprintf(LOG_ERR, "Could not create \"repeat thread\"");
++ return 0;
++ }
++ return 1;
++}
++
++static int zotac_deinit()
++{
++ pthread_cancel(repeat_thread);
++ if (fd_hidraw != -1) {
++ // Close device if it is open
++ logprintf(LOG_INFO, "closing '%s'", hw.device);
++ close(fd_hidraw);
++ fd_hidraw = -1;
++ }
++ // Close pipe input
++ if (fd_pipe[1] >= 0) {
++ close(fd_pipe[1]);
++ fd_pipe[1] = -1;
++ }
++ // Close pipe output
++ if (fd_pipe[0] >= 0) {
++ close(fd_pipe[0]);
++ fd_pipe[0] = -1;
++ }
++ hw.fd = -1;
++ return 1;
++}
++
++/**
++ * Runtime that reads device, forwards codes to main thread
++ * and simulates repetitions.
++ */
++static void *zotac_repeat()
++{
++ int repeat_count = 0;
++ unsigned current_code;
++ int ret;
++ int sel;
++ fd_set files;
++ struct timeval delay;
++ int pressed = 0;
++ int fd = fd_pipe[1];
++
++ while (1) {
++ // Initialize set to monitor device's events
++ FD_ZERO(&files);
++ FD_SET(fd_hidraw, &files);
++ if (pressed) {
++ sel = select(FD_SETSIZE, &files, NULL, NULL, &delay);
++ } else {
++ sel = select(FD_SETSIZE, &files, NULL, NULL, NULL);
++ }
++
++ switch (sel) {
++ case 1:
++ // Data ready in device's file
++ ret = zotac_getcode();
++
++ if (ret < 0) {
++ // Error
++ logprintf(LOG_ERR, "(%s) Could not read %s", __FUNCTION__, hw.device);
++ goto exit_loop;
++ }
++ if (ret == 1) {
++ // Key code : forward it to main thread
++ pressed = 1;
++ repeat_count = 0;
++ delay.tv_sec = 0;
++ delay.tv_usec = repeat_time1_us;
++ current_code = probe_code;
++ } else if (ret == 2) {
++ // Release code : stop repetitions
++ pressed = 0;
++ current_code = release_code;
++ } else if (ret == 0) {
++ continue;
++ }
++ break;
++ case 0:
++ repeat_count++;
++ if (repeat_count >= max_repeat_count) {
++ // Too many repetitions, something must have gone wrong
++ logprintf(LOG_ERR,"(%s) too many repetitions", __FUNCTION__);
++ goto exit_loop;
++ }
++ // Timeout : send current_code again to main
++ // thread to simulate repetition
++ delay.tv_sec = 0;
++ delay.tv_usec = repeat_time2_us;
++ break;
++ default:
++ // Error
++ logprintf(LOG_ERR, "(%s) select() failed", __FUNCTION__);
++ goto exit_loop;
++ }
++ // Send code to main thread through pipe
++ write(fd, &current_code, sizeof(current_code));
++ }
++exit_loop:
++
++ // Wake up main thread with special key code
++ current_code = remove_code;
++ write(fd, &current_code, sizeof(current_code));
++ return NULL;
++}
++
++/*
++* Aureal Technology ATWF@83 cheap remote
++* specific code.
++*/
++
++static char *zotac_rec(struct ir_remote *remotes)
++{
++ unsigned ev;
++ int rd;
++ last = end;
++ gettimeofday(&start, NULL);
++ rd = read(hw.fd, &ev, sizeof(ev));
++
++ if (rd == -1) {
++ // Error
++ logprintf(LOG_ERR, "(%s) could not read pipe", __FUNCTION__);
++ zotac_deinit();
++ return 0;
++ }
++
++ if (ev == release_code) {
++ // Release code
++ main_code = 0;
++ return 0;
++ } else if (ev == remove_code) {
++ // Device has been removed
++ zotac_deinit();
++ return 0;
++ }
++
++ LOGPRINTF(1, "zotac : %x", ev);
++ // Record the code and check for repetition
++ if (main_code == ev) {
++ repeat_state = RPT_YES;
++ } else {
++ main_code = ev;
++ repeat_state = RPT_NO;
++ }
++ gettimeofday(&end, NULL);
++ return decode_all(remotes);
++}
+diff -rupN base/remotes/zotac/lircd.conf.zotac mod/remotes/zotac/lircd.conf.zotac
+--- base/remotes/zotac/lircd.conf.zotac 1970-01-01 01:00:00.000000000 +0100
++++ mod/remotes/zotac/lircd.conf.zotac 2013-03-21 16:31:31.343367869 +0100
+@@ -0,0 +1,77 @@
++
++# Please make this file available to others
++# by sending it to <lirc@bartelmus.de>
++#
++# this config file was automatically generated
++# using lirc-0.9.1-git(zotac) on Mon Apr 2 14:10:29 2012
++#
++# contributed by
++#
++# brand: zotac.conf
++# model no. of remote control:
++# devices being controlled by this remote:
++#
++
++begin remote
++
++ name zotac.conf
++ bits 32
++ eps 30
++ aeps 100
++
++ one 0 0
++ zero 0 0
++ gap 100123
++ min_repeat 9
++# suppress_repeat 9
++# uncomment to suppress unwanted repeats
++# toggle_bit_mask 0x7004F
++
++ begin codes
++ KEY_SLEEP 0x00010082
++ KEY_WAKEUP 0x00010083
++ KEY_RECORD 0x000C00B2
++ KEY_PAUSE 0x000C00B1
++ KEY_STOP 0x000C00B7
++ KEY_REWIND 0x000C00B4
++ KEY_PLAY 0x000C00B0
++ KEY_FORWARD 0x000C00B3
++ KEY_LEFTSHIFT 0x000C00B6
++ KEY_RIGHTSHIFT 0x000C00B5
++ KEY_BACK 0x000C0224
++ KEY_INFO 0x000C0209
++ KEY_MENU 0xFFBC000D
++ KEY_UP 0x00070052
++ KEY_LEFT 0x00070050
++ KEY_RIGHT 0x0007004F
++ KEY_DOWN 0x00070051
++ KEY_OK 0x00070028
++ KEY_VOLUMEUP 0x000C00E9
++ KEY_VOLUMEDOWN 0x000C00EA
++ KEY_MUTE 0x000C00E2
++ KEY_CHANNELUP 0x000C009C
++ KEY_CHANNELDOWN 0x000C009D
++ KEY_1 0x0007001E
++ KEY_2 0x0007001F
++ KEY_3 0x00070020
++ KEY_4 0x00070021
++ KEY_5 0x00070022
++ KEY_6 0x00070023
++ KEY_7 0x00070024
++ KEY_8 0x00070025
++ KEY_9 0x00070026
++ KEY_0 0x00070027
++ KEY_NUMERIC_STAR 0x10070025
++ KEY_NUMERIC_POUND 0x10070020
++ KEY_CLEAR 0x00070029
++ KEY_TEXT 0xFFBC005A
++ KEY_TITLE 0x000C008D
++ KEY_ENTER 0x00070028
++ KEY_RED 0xFFBC005B
++ KEY_GREEN 0xFFBC005C
++ KEY_YELLOW 0xFFBC005D
++ KEY_BLUE 0xFFBC005E
++ end codes
++
++end remote
++
+diff -rupN base/setup.data mod/setup.data
+--- base/setup.data 2011-03-25 23:28:18.000000000 +0100
++++ mod/setup.data 2013-03-21 16:28:11.433935463 +0100
+@@ -146,6 +146,7 @@ hw_menu_entry: @hw-usb
+ usb_uirt_raw: "USB-UIRT"
+ mplay: "VLSystem MPlay Blast"
+ mplay: "VLSystem MPlay Mini"
++ zotac: "Zotac USB IR Receiver"
+
+ param_type: \
+ act200l \
+@@ -260,7 +261,8 @@ param_type: \
+ ttusbir \
+ tvbox \
+ udp \
+- wpc8769l
++ wpc8769l \
++ zotac
+ none:
+
+ default_param: \
+@@ -331,7 +333,8 @@ default_param: \
+ ttusbir \
+ tvbox \
+ udp \
+- wpc8769l
++ wpc8769l \
++ zotac
+ none:
+
+ default_param: \
diff --git a/app-misc/lirc/files/lirc-0.9.0-atiusb_kfifo.patch b/app-misc/lirc/files/lirc-0.9.0-atiusb_kfifo.patch
new file mode 100644
index 000000000000..32edb244b412
--- /dev/null
+++ b/app-misc/lirc/files/lirc-0.9.0-atiusb_kfifo.patch
@@ -0,0 +1,14 @@
+--- a/drivers/lirc_atiusb/lirc_atiusb.c 2012-07-17 16:04:39.000000000 -0400
++++ b/drivers/lirc_atiusb/lirc_atiusb.c 2012-07-17 16:19:06.000000000 -0400
+@@ -1050,7 +1050,11 @@
+ goto new_irctl_failure_check;
+ }
+
++#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 38)
+ if (lirc_buffer_init(driver->rbuf, dclen, 1)) {
++#else
++ if (lirc_buffer_init(driver->rbuf, dclen, 2)) {
++#endif
+ mem_failure = 4;
+ goto new_irctl_failure_check;
+ }
diff --git a/app-misc/lirc/files/lirc-0.9.0-fixed-font.patch b/app-misc/lirc/files/lirc-0.9.0-fixed-font.patch
new file mode 100644
index 000000000000..fd122e7362b6
--- /dev/null
+++ b/app-misc/lirc/files/lirc-0.9.0-fixed-font.patch
@@ -0,0 +1,20 @@
+--- a/tools/xmode2.c 2011-03-25 23:28:18.000000000 +0100
++++ b/tools/xmode2.c 2012-07-29 19:36:34.972246587 +0200
+@@ -69,7 +69,7 @@
+ Window w0, w1; /*w0 = root */
+ char w1_wname[] = "xmode2";
+ char w1_iname[] = "xmode2";
+-char font1_name[] = "-*-Courier-medium-r-*-*-8-*-*-m-*-iso8859-1";
++char font1_name[] = "fixed";
+
+ int w1_x = 0, w1_y = 0;
+ unsigned int w1_w = 640, w1_h = 480, w1_border = 0;
+@@ -201,7 +201,7 @@
+ printf("coudn't allocate blue color\n");
+ f1_str = XLoadQueryFont(d1, font1_name);
+ if (f1_str == NULL) {
+- printf("could't load font\n");
++ printf("couldn't load font\n");
+ exit(EXIT_FAILURE);
+ }
+
diff --git a/app-misc/lirc/files/lirc-0.9.0-kernel-2.6.39-fixes.patch b/app-misc/lirc/files/lirc-0.9.0-kernel-2.6.39-fixes.patch
new file mode 100644
index 000000000000..624737090bbe
--- /dev/null
+++ b/app-misc/lirc/files/lirc-0.9.0-kernel-2.6.39-fixes.patch
@@ -0,0 +1,67 @@
+diff -u a/drivers/lirc_atiusb/lirc_atiusb.c b/drivers/lirc_atiusb/lirc_atiusb.c
+--- a/drivers/lirc_atiusb/lirc_atiusb.c
++++ b/drivers/lirc_atiusb/lirc_atiusb.c
+@@ -48,7 +48,9 @@
+ #include <linux/slab.h>
+ #include <linux/module.h>
+ #include <linux/kmod.h>
++#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 39)
+ #include <linux/smp_lock.h>
++#endif
+ #include <linux/completion.h>
+ #include <linux/uaccess.h>
+ #include <linux/usb.h>
+diff -u a/drivers/lirc_i2c/lirc_i2c.c b/drivers/lirc_i2c/lirc_i2c.c
+--- a/drivers/lirc_i2c/lirc_i2c.c
++++ b/drivers/lirc_i2c/lirc_i2c.c
+@@ -555,8 +555,8 @@ static int ir_probe(struct i2c_client *client, const struct i2c_device_id *id)
+ kfree(ir);
+ return -EINVAL;
+ }
+- printk(KERN_INFO "lirc_i2c: chip 0x%x found @ 0x%02x (%s)\n",
+- adap->id, addr, ir->c.name);
++ printk(KERN_INFO "lirc_i2c: chip found @ 0x%02x (%s)\n",
++ addr, ir->c.name);
+
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 31)
+ /* register device */
+diff -u a/drivers/lirc_wpc8769l/lirc_wpc8769l.c b/drivers/lirc_wpc8769l/lirc_wpc8769l.c
+--- a/drivers/lirc_wpc8769l/lirc_wpc8769l.c
++++ b/drivers/lirc_wpc8769l/lirc_wpc8769l.c
+@@ -361,14 +361,22 @@ static irqreturn_t irq_handler(int irqno, void *blah, struct pt_regs *regs)
+ size = count << 3;
+
+ ldata = (unsigned long *) data_buf;
++#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 39)
+ next_one = generic_find_next_le_bit(ldata, size, 0);
++#else
++ next_one = find_next_zero_bit_le(ldata, size, 0);
++#endif
+
+ if (next_one > 0)
+ put_pulse_bit(next_one
+ * WPC8769L_USECS_PER_BIT);
+
+ while (next_one < size) {
++#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 39)
+ next_zero = generic_find_next_zero_le_bit(ldata,
++#else
++ next_zero = find_next_zero_bit_le(ldata,
++#endif
+ size, next_one + 1);
+
+ put_space_bit(
+@@ -376,7 +384,11 @@ static irqreturn_t irq_handler(int irqno, void *blah, struct pt_regs *regs)
+ * WPC8769L_USECS_PER_BIT);
+
+ if (next_zero < size) {
++#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 39)
+ next_one = generic_find_next_le_bit(ldata,
++#else
++ next_one = find_next_bit_le(ldata,
++#endif
+ size, next_zero + 1);
+
+ put_pulse_bit(
+--
+1.7.5.4
diff --git a/app-misc/lirc/files/lirc-0.9.0-kernel-3.3.0-fixes.patch b/app-misc/lirc/files/lirc-0.9.0-kernel-3.3.0-fixes.patch
new file mode 100644
index 000000000000..9b7d3ef1f539
--- /dev/null
+++ b/app-misc/lirc/files/lirc-0.9.0-kernel-3.3.0-fixes.patch
@@ -0,0 +1,50 @@
+diff -ur drivers/lirc_serial/lirc_serial.c drivers.new/lirc_serial/lirc_serial.c
+--- drivers/lirc_serial/lirc_serial.c 2011-03-25 18:28:18.000000000 -0400
++++ drivers.new/lirc_serial/lirc_serial.c 2012-10-24 14:32:14.000000000 -0400
+@@ -66,7 +66,12 @@
+ #include <linux/poll.h>
+ #include <linux/platform_device.h>
+
++#include "drivers/kcompat.h"
++#if LINUX_VERSION_CODE > KERNEL_VERSION(3, 3, 0)
++#include <asm/switch_to.h>
++#else
+ #include <asm/system.h>
++#endif
+ #include <linux/io.h>
+ #include <linux/irq.h>
+ #include <linux/fcntl.h>
+@@ -80,7 +85,6 @@
+ #define UART_IE_IXP42X_UUE 0x40 /* IXP42X UART Unit enable */
+ #define UART_IE_IXP42X_RTOIE 0x10 /* IXP42X Receiver Data Timeout int.enable */
+
+-#include "drivers/kcompat.h"
+ #if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 35)
+ #include <media/lirc.h>
+ #include <media/lirc_dev.h>
+diff -ur drivers/lirc_sir/lirc_sir.c drivers.new/lirc_sir/lirc_sir.c
+--- drivers/lirc_sir/lirc_sir.c 2011-03-25 18:28:18.000000000 -0400
++++ drivers.new/lirc_sir/lirc_sir.c 2012-10-24 14:32:46.000000000 -0400
+@@ -59,7 +59,14 @@
+ #include <linux/mm.h>
+ #include <linux/delay.h>
+ #include <linux/poll.h>
++
++#include "drivers/kcompat.h"
++#if LINUX_VERSION_CODE > KERNEL_VERSION(3, 3, 0)
++#include <asm/switch_to.h>
++#else
+ #include <asm/system.h>
++#endif
++
+ #include <linux/io.h>
+ #include <asm/irq.h>
+ #include <linux/fcntl.h>
+@@ -74,7 +81,6 @@
+
+ #include <linux/timer.h>
+
+-#include "drivers/kcompat.h"
+ #if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 35)
+ #include <media/lirc.h>
+ #include <media/lirc_dev.h>
diff --git a/app-misc/lirc/files/lirc-0.9.0-kernel-3.5-err-fix.patch b/app-misc/lirc/files/lirc-0.9.0-kernel-3.5-err-fix.patch
new file mode 100644
index 000000000000..b06d94efb322
--- /dev/null
+++ b/app-misc/lirc/files/lirc-0.9.0-kernel-3.5-err-fix.patch
@@ -0,0 +1,12 @@
+--- a/drivers/kcompat.h 2011-03-25 18:28:18.000000000 -0400
++++ b/drivers/kcompat.h 2012-11-27 13:37:55.000000000 -0500
+@@ -136,4 +136,9 @@
+ )
+ #endif
+
++#ifndef err
++#define err(format, arg...) \
++ printk(KERN_ERR KBUILD_MODNAME ": " format "\n", ##arg)
++#endif
++
+ #endif /* _KCOMPAT_H */
diff --git a/app-misc/lirc/files/lirc-0.9.0-kernel-3.8-fixes.patch b/app-misc/lirc/files/lirc-0.9.0-kernel-3.8-fixes.patch
new file mode 100644
index 000000000000..bd11b61c19d8
--- /dev/null
+++ b/app-misc/lirc/files/lirc-0.9.0-kernel-3.8-fixes.patch
@@ -0,0 +1,80 @@
+diff -Naur lirc-0.9.0/drivers/lirc_serial/lirc_serial.c lirc-0.9.0.new/drivers/lirc_serial/lirc_serial.c
+--- lirc-0.9.0/drivers/lirc_serial/lirc_serial.c 2013-05-24 11:58:31.017566567 -0400
++++ lirc-0.9.0.new/drivers/lirc_serial/lirc_serial.c 2013-05-24 12:00:38.733568898 -0400
+@@ -1107,12 +1107,12 @@
+
+ static struct platform_device *lirc_serial_dev;
+
+-static int __devinit lirc_serial_probe(struct platform_device *dev)
++static int lirc_serial_probe(struct platform_device *dev)
+ {
+ return 0;
+ }
+
+-static int __devexit lirc_serial_remove(struct platform_device *dev)
++static int lirc_serial_remove(struct platform_device *dev)
+ {
+ return 0;
+ }
+@@ -1163,7 +1163,7 @@
+
+ static struct platform_driver lirc_serial_driver = {
+ .probe = lirc_serial_probe,
+- .remove = __devexit_p(lirc_serial_remove),
++ .remove = lirc_serial_remove,
+ .suspend = lirc_serial_suspend,
+ .resume = lirc_serial_resume,
+ .driver = {
+diff -Naur lirc-0.9.0/drivers/lirc_sir/lirc_sir.c lirc-0.9.0.new/drivers/lirc_sir/lirc_sir.c
+--- lirc-0.9.0/drivers/lirc_sir/lirc_sir.c 2013-05-24 11:58:31.017566567 -0400
++++ lirc-0.9.0.new/drivers/lirc_sir/lirc_sir.c 2013-05-24 12:00:38.733568898 -0400
+@@ -1296,19 +1296,19 @@
+ return 0;
+ }
+
+-static int __devinit lirc_sir_probe(struct platform_device *dev)
++static int lirc_sir_probe(struct platform_device *dev)
+ {
+ return 0;
+ }
+
+-static int __devexit lirc_sir_remove(struct platform_device *dev)
++static int lirc_sir_remove(struct platform_device *dev)
+ {
+ return 0;
+ }
+
+ static struct platform_driver lirc_sir_driver = {
+ .probe = lirc_sir_probe,
+- .remove = __devexit_p(lirc_sir_remove),
++ .remove = lirc_sir_remove,
+ .driver = {
+ .name = "lirc_sir",
+ .owner = THIS_MODULE,
+diff -Naur lirc-0.9.0/drivers/lirc_wpc8769l/lirc_wpc8769l.c lirc-0.9.0.new/drivers/lirc_wpc8769l/lirc_wpc8769l.c
+--- lirc-0.9.0/drivers/lirc_wpc8769l/lirc_wpc8769l.c 2013-05-24 11:58:30.974566567 -0400
++++ lirc-0.9.0.new/drivers/lirc_wpc8769l/lirc_wpc8769l.c 2013-05-24 12:00:38.734568898 -0400
+@@ -942,12 +942,12 @@
+ #ifdef MODULE
+ static struct platform_device *lirc_wpc8769l_platform_dev;
+
+-static int __devinit lirc_wpc8769l_probe(struct platform_device *dev)
++static int lirc_wpc8769l_probe(struct platform_device *dev)
+ {
+ return 0;
+ }
+
+-static int __devexit lirc_wpc8769l_remove(struct platform_device *dev)
++static int lirc_wpc8769l_remove(struct platform_device *dev)
+ {
+ return 0;
+ }
+@@ -975,7 +975,7 @@
+
+ static struct platform_driver lirc_wpc8769l_platform_driver = {
+ .probe = lirc_wpc8769l_probe,
+- .remove = __devexit_p(lirc_wpc8769l_remove),
++ .remove = lirc_wpc8769l_remove,
+ .suspend = lirc_wpc8769l_suspend,
+ .resume = lirc_wpc8769l_resume,
+ .driver = {
diff --git a/app-misc/lirc/files/lirc.service b/app-misc/lirc/files/lirc.service
new file mode 100644
index 000000000000..68547863aa01
--- /dev/null
+++ b/app-misc/lirc/files/lirc.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=Linux Infrared Remote Control
+After=network.target
+
+[Service]
+ExecStart=/usr/sbin/lircd --nodaemon --driver=default --device=/dev/lirc0
+
+[Install]
+WantedBy=multi-user.target
+
diff --git a/app-misc/lirc/files/lircd-0.8.3 b/app-misc/lirc/files/lircd-0.8.3
new file mode 100644
index 000000000000..50b7cae7f905
--- /dev/null
+++ b/app-misc/lirc/files/lircd-0.8.3
@@ -0,0 +1,23 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+PIDFILE=/var/run/${SVCNAME}.pid
+
+depend() {
+ provide lirc
+}
+
+start() {
+ ebegin "Starting lircd"
+ start-stop-daemon --start --quiet --pidfile "${PIDFILE}" --exec /usr/sbin/lircd -- \
+ -P "${PIDFILE}" ${LIRCD_OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping lircd"
+ start-stop-daemon --stop --quiet --pidfile "${PIDFILE}" --exec /usr/sbin/lircd
+ eend $?
+}
diff --git a/app-misc/lirc/files/lircd-0.8.6 b/app-misc/lirc/files/lircd-0.8.6
new file mode 100644
index 000000000000..afa79c86c051
--- /dev/null
+++ b/app-misc/lirc/files/lircd-0.8.6
@@ -0,0 +1,41 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+PIDFILE=/var/run/lirc/${SVCNAME}.pid
+LIRCD_SYMLINKFILE=/dev/lircd
+LIRCD_SOCKET=/var/run/lirc/lircd
+
+depend() {
+ need localmount
+ use modules
+ provide lirc
+}
+
+start() {
+ local retval
+ ebegin "Starting lircd"
+ rm -f ${LIRCD_SOCKET} && ln -s ${LIRCD_SOCKET} ${LIRCD_SYMLINKFILE}
+ if [ $? -ne 0 ]; then
+ eend $? "Unable to create symbolic link ${LIRCD_SYMLINKFILE}"
+ return 1
+ fi
+
+ start-stop-daemon --start --quiet --pidfile "${PIDFILE}" --exec /usr/sbin/lircd -- \
+ -P "${PIDFILE}" ${LIRCD_OPTS}
+ retval=$?
+
+ if [ ${retval} -ne 0 ]; then
+ rm -f ${LIRCD_SOCKET}
+ fi
+
+ eend ${retval}
+}
+
+stop() {
+ ebegin "Stopping lircd"
+ rm -f ${LIRCD_SYMLINKFILE}
+ start-stop-daemon --stop --quiet --pidfile "${PIDFILE}" --exec /usr/sbin/lircd
+ eend $?
+}
diff --git a/app-misc/lirc/files/lircd-0.8.6-r2 b/app-misc/lirc/files/lircd-0.8.6-r2
new file mode 100644
index 000000000000..ed47795f6502
--- /dev/null
+++ b/app-misc/lirc/files/lircd-0.8.6-r2
@@ -0,0 +1,52 @@
+#!/sbin/runscript
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+PIDFILE=/var/run/lirc/${SVCNAME}.pid
+: ${LIRCD_SYMLINKFILE:=/dev/lircd}
+: ${LIRCD_SOCKET:=/var/run/lirc/lircd}
+
+depend() {
+ need localmount
+ use modules
+ provide lirc
+}
+
+start() {
+ local retval
+
+ ebegin "Starting lircd"
+
+ for retval in ${LIRCD_SET_SYSCLASSRCS} ; do
+ if [ -e /sys/class/rc/${retval}/protocols ] && \
+ grep -qs 'lirc' /sys/class/rc/${retval}/protocols ; then
+ einfo "Setting lirc protocol active for ${retval}"
+ echo lirc >/sys/class/rc/${retval}/protocols
+ fi
+ done
+
+ checkpath -q -d -m 0755 -o root:root /var/run/lirc
+ rm -Rf ${LIRCD_SOCKET} && ln -s ${LIRCD_SOCKET} ${LIRCD_SYMLINKFILE}
+ if [ $? -ne 0 ]; then
+ eend $? "Unable to create symbolic link ${LIRCD_SYMLINKFILE}"
+ return 1
+ fi
+
+ start-stop-daemon --start --quiet --pidfile "${PIDFILE}" --exec /usr/sbin/lircd -- \
+ -P "${PIDFILE}" ${LIRCD_OPTS}
+ retval=$?
+
+ if [ ${retval} -ne 0 ]; then
+ rm -Rf ${LIRCD_SOCKET}
+ fi
+
+ eend ${retval}
+}
+
+stop() {
+ ebegin "Stopping lircd"
+ rm -f ${LIRCD_SYMLINKFILE}
+ start-stop-daemon --stop --quiet --pidfile "${PIDFILE}" --exec /usr/sbin/lircd
+ eend $?
+}
diff --git a/app-misc/lirc/files/lircd.conf.2 b/app-misc/lirc/files/lircd.conf.2
new file mode 100644
index 000000000000..cfda2b802a9e
--- /dev/null
+++ b/app-misc/lirc/files/lircd.conf.2
@@ -0,0 +1,10 @@
+# Options to pass to the lircd process
+
+# for devices with lirc-kernel-module
+#LIRCD_OPTS="-d /dev/lirc0"
+#LIRCD_OPTS="-d /dev/lirc"
+
+# for devices using the input-layer
+#LIRCD_OPTS="-H devinput -d /dev/input/by-path/pci-0000:00:0a.0--event-ir"
+# This should work, Bug #235107
+#LIRCD_OPTS="-H devinput -d name=*DVB*"
diff --git a/app-misc/lirc/files/lircd.conf.4 b/app-misc/lirc/files/lircd.conf.4
new file mode 100644
index 000000000000..f59c5f214283
--- /dev/null
+++ b/app-misc/lirc/files/lircd.conf.4
@@ -0,0 +1,22 @@
+# Options to pass to the lircd process
+
+# for devices with lirc-kernel-module
+#LIRCD_OPTS="-d /dev/lirc0"
+#LIRCD_OPTS="-d /dev/lirc"
+
+# for devices using the input-layer
+#LIRCD_OPTS="-H devinput -d /dev/input/by-path/pci-0000:00:0a.0--event-ir"
+# This should work, Bug #235107
+#LIRCD_OPTS="-H devinput -d name=*DVB*"
+
+# set default protocol to 'lirc' for in-kernel IR decoding
+# for the following entries in /sys/class/rc/
+# (space-separated list if there is more than one)
+LIRCD_SET_SYSCLASSRCS="rc0"
+
+# If running mulitple instances of lircd, the following
+# can be used to override the default socket path and
+# socket symlink
+#LIRCD_SOCKET="/var/run/lirc/lircd"
+#LIRCD_SYMLINKFILE="/dev/lircd"
+
diff --git a/app-misc/lirc/files/lircm.service b/app-misc/lirc/files/lircm.service
new file mode 100644
index 000000000000..cfd2c93caf6a
--- /dev/null
+++ b/app-misc/lirc/files/lircm.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=LIRC Mouse
+Requires=lirc.service
+After=network.target lirc.service
+
+[Service]
+ExecStart=/usr/sbin/lircmd --nodaemon
+
+[Install]
+WantedBy=multi-user.target
+
diff --git a/app-misc/lirc/files/lircmd b/app-misc/lirc/files/lircmd
new file mode 100644
index 000000000000..b9903b78c628
--- /dev/null
+++ b/app-misc/lirc/files/lircmd
@@ -0,0 +1,20 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+depend() {
+ need lircd
+}
+
+start() {
+ ebegin "Starting lircmd"
+ start-stop-daemon --start --quiet --exec /usr/sbin/lircmd
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping lircmd"
+ start-stop-daemon --stop --quiet --exec /usr/sbin/lircmd
+ eend $?
+}
diff --git a/app-misc/lirc/files/modprobed.lirc b/app-misc/lirc/files/modprobed.lirc
new file mode 100644
index 000000000000..2ed95589b66d
--- /dev/null
+++ b/app-misc/lirc/files/modprobed.lirc
@@ -0,0 +1,22 @@
+#
+# For first serial receivers:
+#
+#options lirc_serial irq=4 io=0x3f8
+#options lirc_sir irq=4 io=0x3f8
+
+#
+# Detach first serial port from serial-driver.
+# Use this when you have your serial-port-driver statically
+# compiled into your kernel, or as a module but loaded before
+# the lirc-module.
+#
+#install lirc_serial setserial /dev/ttyS0 uart none; modprobe --ignore-install lirc_serial
+#
+#install lirc_sir setserial /dev/ttyS0 uart none; modprobe --ignore-install lirc_sir
+
+
+#
+# For parallel receivers:
+#
+#options lirc_parallel irq=7 io=0x3bc
+
diff --git a/app-misc/lirc/files/modulesd.lirc b/app-misc/lirc/files/modulesd.lirc
new file mode 100644
index 000000000000..d1838c53cc00
--- /dev/null
+++ b/app-misc/lirc/files/modulesd.lirc
@@ -0,0 +1,22 @@
+#
+# For first serial receivers:
+#
+#options lirc_serial irq=4 io=0x3f8
+#options lirc_sir irq=4 io=0x3f8
+
+#
+# Detach first serial port from serial-driver.
+# Use this when you have your serial-port-driver statically
+# compiled into your kernel, or as a module but loaded before
+# the lirc-module.
+#
+#pre-install lirc_serial setserial /dev/ttyS0 uart none
+#
+#pre-install lirc_sir setserial /dev/ttyS0 uart none
+
+
+#
+# For parallel receivers:
+#
+#options lirc_parallel irq=7 io=0x3bc
+
diff --git a/app-misc/lirc/lirc-0.9.0-r2.ebuild b/app-misc/lirc/lirc-0.9.0-r2.ebuild
new file mode 100644
index 000000000000..0a4289e40891
--- /dev/null
+++ b/app-misc/lirc/lirc-0.9.0-r2.ebuild
@@ -0,0 +1,427 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit eutils linux-mod linux-info toolchain-funcs flag-o-matic autotools
+
+DESCRIPTION="decode and send infra-red signals of many commonly used remote controls"
+HOMEPAGE="http://www.lirc.org/"
+
+MY_P=${PN}-${PV/_/}
+
+if [[ "${PV/_pre/}" = "${PV}" ]]; then
+ SRC_URI="mirror://sourceforge/lirc/${MY_P}.tar.bz2"
+else
+ SRC_URI="http://www.lirc.org/software/snapshots/${MY_P}.tar.bz2"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc ppc64 x86"
+IUSE="debug doc hardware-carrier transmitter static-libs X"
+
+S="${WORKDIR}/${MY_P}"
+
+RDEPEND="
+ X? (
+ x11-libs/libX11
+ x11-libs/libSM
+ x11-libs/libICE
+ )
+ lirc_devices_alsa_usb? ( media-libs/alsa-lib )
+ lirc_devices_audio? ( >media-libs/portaudio-18 )
+ lirc_devices_irman? ( media-libs/libirman )"
+
+# 2012-07-17, Ian Stakenvicius
+# A helper script that scrapes out values for nearly all of the variables below
+# from lirc's configure.ac is available at
+# http://dev.gentoo.org/~axs/helper-for-lirc-iuse.sh
+
+# This are drivers with names matching the
+# parameter --with-driver=NAME
+IUSE_LIRC_DEVICES_DIRECT="
+ all userspace accent act200l act220l
+ adaptec alsa_usb animax asusdh atilibusb
+ atiusb audio audio_alsa avermedia avermedia_vdomate
+ avermedia98 awlibusb bestbuy bestbuy2 breakoutbox
+ bte bw6130 caraca chronos commandir
+ cph06x creative creative_infracd
+ devinput digimatrix dsp dvico ea65 ene0100
+ exaudio flyvideo ftdi gvbctv5pci hauppauge
+ hauppauge_dvb hercules_smarttv_stereo i2cuser
+ igorplugusb iguanaIR imon imon_24g imon_knob
+ imon_lcd imon_pad imon_rsc irdeo irdeo_remote
+ irlink irman irreal it87 ite8709
+ knc_one kworld leadtek_0007 leadtek_0010
+ leadtek_pvr2000 livedrive_midi
+ livedrive_seq logitech macmini
+ mediafocusI mouseremote
+ mouseremote_ps2 mp3anywhere mplay nslu2
+ packard_bell parallel pcmak pcmak_usb
+ pctv pixelview_bt878 pixelview_pak
+ pixelview_pro provideo realmagic
+ remotemaster sa1100 samsung sasem sb0540 serial
+ silitek sir slinke streamzap tekram
+ tekram_bt829 tira ttusbir tuxbox tvbox udp uirt2
+ uirt2_raw usb_uirt_raw usbx wpc8769l"
+
+# drivers that need special handling and
+# must have another name specified for
+# parameter --with-driver=NAME
+IUSE_LIRC_DEVICES_SPECIAL="
+ serial_igor_cesko
+ remote_wonder_plus xboxusb usbirboy inputlirc"
+
+IUSE_LIRC_DEVICES="${IUSE_LIRC_DEVICES_DIRECT} ${IUSE_LIRC_DEVICES_SPECIAL}"
+
+# The following are lists which are used to provide ewarns on incompatibilities
+# with the kernel:
+
+#drivers that do not build kernel modules
+NO_KMOD_BUILT_FOR_DEV="
+ accent bte creative creative_infracd devinput dsp ea65 exaudio
+ ftdi i2cuser irlink irreal livedrive_midi livedrive_seq logitech
+ mediafocusI mouseremote mouseremote_ps2 mp3anywhere mplay mplay2
+ pcmak pcmak_usb pctv realmagic remotemaster silitek tira tira_raw
+ tuxbox udp uirt2 uirt2_raw usb_uirt_raw usbx"
+
+#drivers that build lirc_dev and so will conflict with kernel lirc_dev
+LIRCDEV_BUILT_FOR_DEV="all
+ act200l act220l adaptec animax atiusb breakoutbox hauppauge
+ hauppauge_dvb hercules_smarttv_stereo igorplugusb imon imon_24g
+ imon_knob imon_lcd imon_pad imon_rsc irdeo irdeo_remote knc_one
+ leadtek_pvr2000 nslu2 packard_bell parallel pixelview_bt878
+ provideo sa1100 sasem serial sir tekram tekram_bt829 ttusbir
+ tvbox wpc8769l"
+
+#lirc_gpio drivers, which cannot be supported on kernel >= 2.6.22
+LIRC_GPIO_DEV="
+ avermedia avermedia98 avermedia_vdomate bestbuy bestbuy2 chronos
+ cph03x cph06x flyvideo gvbctv5pci kworld leadtek_0007 leadtek_0010
+ pixelview_pak pixelview_pro"
+
+#device-driver which use libusb
+LIBUSB_USED_BY_DEV="
+ all atilibusb awlibusb sasem igorplugusb imon imon_lcd imon_pad
+ imon_rsc streamzap xboxusb irlink commandir"
+
+for dev in ${LIBUSB_USED_BY_DEV}; do
+ DEPEND="${DEPEND} lirc_devices_${dev}? ( virtual/libusb:0 )"
+done
+
+# adding only compile-time depends
+DEPEND="${RDEPEND} ${DEPEND}
+ virtual/linux-sources
+ lirc_devices_ftdi? ( dev-embedded/libftdi )
+ lirc_devices_all? ( dev-embedded/libftdi )"
+
+# adding only run-time depends
+RDEPEND="${RDEPEND}
+ lirc_devices_usbirboy? ( app-misc/usbirboy )
+ lirc_devices_inputlirc? ( app-misc/inputlircd )
+ lirc_devices_iguanaIR? ( app-misc/iguanaIR )"
+
+# add all devices to IUSE
+# and ensure lirc_devices_all is not set alongside lirc_devices_*
+REQUIRED_USE="lirc_devices_all? ("
+for dev in ${IUSE_LIRC_DEVICES}; do
+ IUSE="${IUSE} lirc_devices_${dev}"
+ if [[ "${dev}" != "all" ]]; then
+ REQUIRED_USE="${REQUIRED_USE} !lirc_devices_${dev}"
+ fi
+done
+REQUIRED_USE="${REQUIRED_USE} )"
+
+add_device() {
+ local dev="${1}"
+ local desc="device ${dev}"
+ if [[ -n "${2}" ]]; then
+ desc="${2}"
+ fi
+
+ # Bug #187418
+ if kernel_is ge 2 6 22 && [[ " ${LIRC_GPIO_DEV} " == *" ${dev} "* ]]; then
+ eerror "${desc} uses lirc_gpio which fails with kernel 2.6.22 or above. Not building."
+ eerror "Use 'devinput' instead, or use 'userspace' along with in-kernel drivers"
+ return 0
+ fi
+ : ${lirc_device_count:=0}
+ ((lirc_device_count++))
+
+ elog "Compiling support for ${desc}"
+
+ if [[ " ${LIRCDEV_BUILT_FOR_DEV} " == *" ${dev} "* ]] ; then
+ if linux_chkconfig_present LIRC ; then
+ ewarn "${desc} builds lirc_dev and CONFIG_LIRC is set in the kernel -- this may conflict."
+ fi
+ if ! linux_chkconfig_present MODULE_UNLOAD ; then
+ ewarn "${desc} builds modules and CONFIG_MODULE_UNLOAD is unset in kernel."
+ ewarn "You will need MODULE_UNLOAD support in your kernel."
+ fi
+ fi
+ if [[ " ${NO_KMOD_BUILT_FOR_DEV} " == *" ${dev} "* ]] && ! linux_chkconfig_present IR_LIRC_CODEC ; then
+ ewarn "${desc} builds no kernel module and CONFIG_IR_LIRC_CODEC is unset in kernel."
+ fi
+
+ if [[ ${lirc_device_count} -eq 2 ]] ; then
+ ewarn
+ ewarn "LIRC_DEVICES has more than one entry."
+ ewarn "When selecting multiple devices for lirc to be supported,"
+ ewarn "it can not be guaranteed that the drivers play nice together."
+ ewarn "If this is not intended, then please adjust LIRC_DEVICES"
+ ewarn "and re-emerge."
+ ewarn
+ fi
+
+ MY_OPTS="${MY_OPTS} --with-driver=${dev}"
+}
+
+pkg_pretend() {
+ if [[ -n "${LIRC_OPTS}" ]] ; then
+ ewarn
+ ewarn "LIRC_OPTS is deprecated from lirc-0.8.0-r1 on."
+ ewarn
+ ewarn "Please use LIRC_DEVICES from now on."
+ ewarn "e.g. LIRC_DEVICES=\"serial sir\""
+ ewarn
+ ewarn "Flags are now set per use-flags."
+ ewarn "e.g. transmitter, hardware-carrier"
+
+ local opt
+ local unsupported_opts=""
+
+ # test for allowed options for LIRC_OPTS
+ for opt in ${LIRC_OPTS}; do
+ case ${opt} in
+ --with-port=*|--with-irq=*|--with-timer=*|--with-tty=*)
+ MY_OPTS="${MY_OPTS} ${opt}"
+ ;;
+ *)
+ unsupported_opts="${unsupported_opts} ${opt}"
+ ;;
+ esac
+ done
+ if [[ -n ${unsupported_opts} ]]; then
+ eerror "These options are no longer allowed to be set"
+ eerror "with LIRC_OPTS: ${unsupported_opts}"
+ die "LIRC_OPTS is no longer supported, use LIRC_DEVICES."
+ fi
+ fi
+}
+
+pkg_setup() {
+ linux-mod_pkg_setup
+
+ # set default configure options
+ MY_OPTS=""
+ LIRC_DRIVER_DEVICE="/dev/lirc0"
+
+ if use lirc_devices_all; then
+ # compile in drivers for a lot of devices
+ add_device all "a lot of devices"
+ else
+ # compile in only requested drivers
+ local dev
+ for dev in ${IUSE_LIRC_DEVICES_DIRECT}; do
+ if use lirc_devices_${dev}; then
+ add_device ${dev}
+ fi
+ done
+
+ if use lirc_devices_remote_wonder_plus; then
+ add_device atiusb "device Remote Wonder Plus (atiusb-based)"
+ fi
+
+ if use lirc_devices_serial_igor_cesko; then
+ add_device serial "serial with Igor Cesko design"
+ MY_OPTS="${MY_OPTS} --with-igor"
+ fi
+
+ if use lirc_devices_imon_pad; then
+ ewarn "The imon_pad driver has incorporated the previous pad2keys patch"
+ ewarn "and removed the pad2keys_active option for the lirc_imon module"
+ ewarn "because it is always active."
+ ewarn "If you have an older imon VFD device, you may need to add the module"
+ ewarn "option display_type=1 to override autodetection and force VFD mode."
+ fi
+
+ if use lirc_devices_xboxusb; then
+ add_device atiusb "device xboxusb"
+ fi
+
+ if use lirc_devices_usbirboy; then
+ add_device userspace "device usbirboy"
+ LIRC_DRIVER_DEVICE="/dev/usbirboy"
+ fi
+
+ if [[ "${MY_OPTS}" == "" ]]; then
+ if [[ "${PROFILE_ARCH}" == "xbox" ]]; then
+ # on xbox: use special driver
+ add_device atiusb "device xboxusb"
+ else
+ # no driver requested
+ elog
+ elog "Compiling only the lirc-applications, but no drivers."
+ elog "Enable drivers with LIRC_DEVICES if you need them."
+ MY_OPTS="--with-driver=none"
+ fi
+ fi
+ fi
+
+ use hardware-carrier && MY_OPTS="${MY_OPTS} --without-soft-carrier"
+ use transmitter && MY_OPTS="${MY_OPTS} --with-transmitter"
+
+ einfo
+ einfo "lirc-configure-opts: ${MY_OPTS}"
+ elog "Setting default lirc-device to ${LIRC_DRIVER_DEVICE}"
+
+ filter-flags -Wl,-O1
+}
+
+src_prepare() {
+ # Rip out dos CRLF
+ edos2unix contrib/lirc.rules
+
+ # Apply patches needed for some special device-types
+ use lirc_devices_audio || epatch "${FILESDIR}"/lirc-0.8.4-portaudio_check.patch
+ use lirc_devices_remote_wonder_plus && epatch "${FILESDIR}"/lirc-0.8.3_pre1-remotewonderplus.patch
+
+ # Apply fixes for kernel-2.6.39 and above
+ epatch "${FILESDIR}"/${P}-kernel-2.6.39-fixes.patch
+ # Slightly massaged upstream patch to fix kfifo issues >=2.6.38
+ # for bug 377033
+ epatch "${FILESDIR}"/${P}-atiusb_kfifo.patch
+ # Apply fixes for kernel-3.3 and above (bug 439538)
+ epatch "${FILESDIR}"/${P}-kernel-3.3.0-fixes.patch
+ # Apply fix for missing err() in usb.h for kernel 3.5+ (bug 444736)
+ epatch "${FILESDIR}"/${P}-kernel-3.5-err-fix.patch
+ # Apply fix for missing __devinit __devexit defines in kernel 3.8+ (bug 461532)
+ epatch "${FILESDIR}"/${P}-kernel-3.8-fixes.patch
+
+ # Do not build drivers from the top-level Makefile
+ sed -i -e 's:\(SUBDIRS =\) drivers\(.*\):\1\2:' Makefile.am
+
+ # remove parallel driver on SMP systems
+ if linux_chkconfig_present SMP ; then
+ sed -i -e "s:lirc_parallel\.o::" drivers/lirc_parallel/Makefile.am
+ fi
+
+ # Bug #187418 - only need this part for lirc_devices_all as others die in pkg_setup
+ if use lirc_devices_all && kernel_is ge 2 6 22 ; then
+ ewarn "Disabling lirc_gpio driver as it does no longer work Kernel 2.6.22+"
+ sed -i -e "s:lirc_gpio\.o::" drivers/lirc_gpio/Makefile.am
+ fi
+
+ # respect CFLAGS
+ sed -i -e 's:CFLAGS="-O2:CFLAGS=""\n#CFLAGS="-O2:' configure.ac
+
+ # setting default device-node
+ local f
+ for f in configure.ac acconfig.h; do
+ [[ -f "$f" ]] && sed -i -e '/#define LIRC_DRIVER_DEVICE/d' "$f"
+ done
+ echo "#define LIRC_DRIVER_DEVICE \"${LIRC_DRIVER_DEVICE}\"" >> acconfig.h
+
+ sed -e "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" -i configure.ac || die # automake 1.13
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --localstatedir=/var \
+ --with-syslog=LOG_DAEMON \
+ --enable-sandboxed \
+ --with-kerneldir="${KV_DIR}" \
+ --with-moduledir="/lib/modules/${KV_FULL}/misc" \
+ $(use_enable debug) \
+ $(use_enable static-libs static) \
+ $(use_with X x) \
+ ${MY_OPTS} \
+ ABI="${KERNEL_ABI}" \
+ ARCH="$(tc-arch-kernel)"
+}
+
+src_compile() {
+ # force non-parallel make, Bug 196134 (confirmed valid for 0.9.0-r2)
+ emake -j1
+
+ MODULE_NAMES="lirc(misc:${S}/drivers)"
+ BUILD_TARGETS="all"
+ linux-mod_src_compile
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ emake -C drivers DESTDIR="${D}" install
+
+ newinitd "${FILESDIR}"/lircd-0.8.6-r2 lircd
+ newinitd "${FILESDIR}"/lircmd lircmd
+ newconfd "${FILESDIR}"/lircd.conf.4 lircd
+
+ insinto /etc/modprobe.d/
+ newins "${FILESDIR}"/modprobed.lirc lirc.conf
+
+ newinitd "${FILESDIR}"/irexec-initd-0.8.6-r2 irexec
+ newconfd "${FILESDIR}"/irexec-confd irexec
+
+ if use doc ; then
+ dohtml doc/html/*.html
+ insinto /usr/share/doc/${PF}/images
+ doins doc/images/*
+ fi
+
+ insinto /usr/share/lirc/remotes
+ doins -r remotes/*
+
+ keepdir /etc/lirc
+ if [[ -e "${D}"/etc/lirc/lircd.conf ]]; then
+ newdoc "${D}"/etc/lirc/lircd.conf lircd.conf.example
+ fi
+
+ use static-libs || rm "${D}/usr/$(get_libdir)/liblirc_client.la"
+}
+
+pkg_preinst() {
+ linux-mod_pkg_preinst
+
+ local dir="${EROOT}/etc/modprobe.d"
+ if [[ -a "${dir}"/lirc && ! -a "${dir}"/lirc.conf ]]; then
+ elog "Renaming ${dir}/lirc to lirc.conf"
+ mv -f "${dir}/lirc" "${dir}/lirc.conf"
+ fi
+
+ # copy the first file that can be found
+ if [[ -f "${EROOT}"/etc/lirc/lircd.conf ]]; then
+ cp "${EROOT}"/etc/lirc/lircd.conf "${T}"/lircd.conf
+ elif [[ -f "${EROOT}"/etc/lircd.conf ]]; then
+ cp "${EROOT}"/etc/lircd.conf "${T}"/lircd.conf
+ MOVE_OLD_LIRCD_CONF=1
+ elif [[ -f "${D}"/etc/lirc/lircd.conf ]]; then
+ cp "${D}"/etc/lirc/lircd.conf "${T}"/lircd.conf
+ fi
+
+ # stop portage from touching the config file
+ if [[ -e "${D}"/etc/lirc/lircd.conf ]]; then
+ rm -f "${D}"/etc/lirc/lircd.conf
+ fi
+}
+
+pkg_postinst() {
+ linux-mod_pkg_postinst
+
+ # copy config file to new location
+ # without portage knowing about it
+ # so it will not delete it on unmerge or ever touch it again
+ if [[ -e "${T}"/lircd.conf ]]; then
+ cp "${T}"/lircd.conf "${EROOT}"/etc/lirc/lircd.conf
+ if [[ "$MOVE_OLD_LIRCD_CONF" = "1" ]]; then
+ elog "Moved /etc/lircd.conf to /etc/lirc/lircd.conf"
+ rm -f "${EROOT}"/etc/lircd.conf
+ fi
+ fi
+
+ einfo "The new default location for lircd.conf is inside of"
+ einfo "/etc/lirc/ directory"
+}
diff --git a/app-misc/lirc/lirc-0.9.0-r3.ebuild b/app-misc/lirc/lirc-0.9.0-r3.ebuild
new file mode 100644
index 000000000000..51d2bf45e5e7
--- /dev/null
+++ b/app-misc/lirc/lirc-0.9.0-r3.ebuild
@@ -0,0 +1,429 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit eutils linux-mod linux-info toolchain-funcs flag-o-matic autotools
+
+DESCRIPTION="decode and send infra-red signals of many commonly used remote controls"
+HOMEPAGE="http://www.lirc.org/"
+
+MY_P=${PN}-${PV/_/}
+
+if [[ "${PV/_pre/}" = "${PV}" ]]; then
+ SRC_URI="mirror://sourceforge/lirc/${MY_P}.tar.bz2"
+else
+ SRC_URI="http://www.lirc.org/software/snapshots/${MY_P}.tar.bz2"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE="debug doc hardware-carrier transmitter static-libs X"
+
+S="${WORKDIR}/${MY_P}"
+
+RDEPEND="
+ X? (
+ x11-libs/libX11
+ x11-libs/libSM
+ x11-libs/libICE
+ )
+ lirc_devices_alsa_usb? ( media-libs/alsa-lib )
+ lirc_devices_audio? ( >media-libs/portaudio-18 )
+ lirc_devices_irman? ( media-libs/libirman )"
+
+# 2012-07-17, Ian Stakenvicius
+# A helper script that scrapes out values for nearly all of the variables below
+# from lirc's configure.ac is available at
+# http://dev.gentoo.org/~axs/helper-for-lirc-iuse.sh
+
+# This are drivers with names matching the
+# parameter --with-driver=NAME
+IUSE_LIRC_DEVICES_DIRECT="
+ all userspace accent act200l act220l
+ adaptec alsa_usb animax asusdh atilibusb
+ atiusb audio audio_alsa avermedia avermedia_vdomate
+ avermedia98 awlibusb bestbuy bestbuy2 breakoutbox
+ bte bw6130 caraca chronos commandir
+ cph06x creative creative_infracd
+ devinput digimatrix dsp dvico ea65 ene0100
+ exaudio flyvideo ftdi gvbctv5pci hauppauge
+ hauppauge_dvb hercules_smarttv_stereo i2cuser
+ igorplugusb iguanaIR imon imon_24g imon_knob
+ imon_lcd imon_pad imon_rsc irdeo irdeo_remote
+ irlink irman irreal it87 ite8709
+ knc_one kworld leadtek_0007 leadtek_0010
+ leadtek_pvr2000 livedrive_midi
+ livedrive_seq logitech macmini
+ mediafocusI mouseremote
+ mouseremote_ps2 mp3anywhere mplay nslu2
+ packard_bell parallel pcmak pcmak_usb
+ pctv pixelview_bt878 pixelview_pak
+ pixelview_pro provideo realmagic
+ remotemaster sa1100 samsung sasem sb0540 serial
+ silitek sir slinke streamzap tekram
+ tekram_bt829 tira ttusbir tuxbox tvbox udp uirt2
+ uirt2_raw usb_uirt_raw usbx wpc8769l zotac"
+
+# drivers that need special handling and
+# must have another name specified for
+# parameter --with-driver=NAME
+IUSE_LIRC_DEVICES_SPECIAL="
+ serial_igor_cesko
+ remote_wonder_plus xboxusb usbirboy inputlirc"
+
+IUSE_LIRC_DEVICES="${IUSE_LIRC_DEVICES_DIRECT} ${IUSE_LIRC_DEVICES_SPECIAL}"
+
+# The following are lists which are used to provide ewarns on incompatibilities
+# with the kernel:
+
+#drivers that do not build kernel modules
+NO_KMOD_BUILT_FOR_DEV="
+ accent bte creative creative_infracd devinput dsp ea65 exaudio
+ ftdi i2cuser irlink irreal livedrive_midi livedrive_seq logitech
+ mediafocusI mouseremote mouseremote_ps2 mp3anywhere mplay mplay2
+ pcmak pcmak_usb pctv realmagic remotemaster silitek tira tira_raw
+ tuxbox udp uirt2 uirt2_raw usb_uirt_raw usbx"
+
+#drivers that build lirc_dev and so will conflict with kernel lirc_dev
+LIRCDEV_BUILT_FOR_DEV="all
+ act200l act220l adaptec animax atiusb breakoutbox hauppauge
+ hauppauge_dvb hercules_smarttv_stereo igorplugusb imon imon_24g
+ imon_knob imon_lcd imon_pad imon_rsc irdeo irdeo_remote knc_one
+ leadtek_pvr2000 nslu2 packard_bell parallel pixelview_bt878
+ provideo sa1100 sasem serial sir tekram tekram_bt829 ttusbir
+ tvbox wpc8769l zotac"
+
+#lirc_gpio drivers, which cannot be supported on kernel >= 2.6.22
+LIRC_GPIO_DEV="
+ avermedia avermedia98 avermedia_vdomate bestbuy bestbuy2 chronos
+ cph03x cph06x flyvideo gvbctv5pci kworld leadtek_0007 leadtek_0010
+ pixelview_pak pixelview_pro"
+
+#device-driver which use libusb
+LIBUSB_USED_BY_DEV="
+ all atilibusb awlibusb sasem igorplugusb imon imon_lcd imon_pad
+ imon_rsc streamzap xboxusb irlink commandir"
+
+for dev in ${LIBUSB_USED_BY_DEV}; do
+ DEPEND="${DEPEND} lirc_devices_${dev}? ( virtual/libusb:0 )"
+done
+
+# adding only compile-time depends
+DEPEND="${RDEPEND} ${DEPEND}
+ virtual/linux-sources
+ lirc_devices_ftdi? ( dev-embedded/libftdi )
+ lirc_devices_all? ( dev-embedded/libftdi )"
+
+# adding only run-time depends
+RDEPEND="${RDEPEND}
+ lirc_devices_usbirboy? ( app-misc/usbirboy )
+ lirc_devices_inputlirc? ( app-misc/inputlircd )
+ lirc_devices_iguanaIR? ( app-misc/iguanaIR )"
+
+# add all devices to IUSE
+# and ensure lirc_devices_all is not set alongside lirc_devices_*
+REQUIRED_USE="lirc_devices_all? ("
+for dev in ${IUSE_LIRC_DEVICES}; do
+ IUSE="${IUSE} lirc_devices_${dev}"
+ if [[ "${dev}" != "all" ]]; then
+ REQUIRED_USE="${REQUIRED_USE} !lirc_devices_${dev}"
+ fi
+done
+REQUIRED_USE="${REQUIRED_USE} )"
+
+add_device() {
+ local dev="${1}"
+ local desc="device ${dev}"
+ if [[ -n "${2}" ]]; then
+ desc="${2}"
+ fi
+
+ # Bug #187418
+ if kernel_is ge 2 6 22 && [[ " ${LIRC_GPIO_DEV} " == *" ${dev} "* ]]; then
+ eerror "${desc} uses lirc_gpio which fails with kernel 2.6.22 or above. Not building."
+ eerror "Use 'devinput' instead, or use 'userspace' along with in-kernel drivers"
+ return 0
+ fi
+ : ${lirc_device_count:=0}
+ ((lirc_device_count++))
+
+ elog "Compiling support for ${desc}"
+
+ if [[ " ${LIRCDEV_BUILT_FOR_DEV} " == *" ${dev} "* ]] ; then
+ if linux_chkconfig_present LIRC ; then
+ ewarn "${desc} builds lirc_dev and CONFIG_LIRC is set in the kernel -- this may conflict."
+ fi
+ if ! linux_chkconfig_present MODULE_UNLOAD ; then
+ ewarn "${desc} builds modules and CONFIG_MODULE_UNLOAD is unset in kernel."
+ ewarn "You will need MODULE_UNLOAD support in your kernel."
+ fi
+ fi
+ if [[ " ${NO_KMOD_BUILT_FOR_DEV} " == *" ${dev} "* ]] && ! linux_chkconfig_present IR_LIRC_CODEC ; then
+ ewarn "${desc} builds no kernel module and CONFIG_IR_LIRC_CODEC is unset in kernel."
+ fi
+
+ if [[ ${lirc_device_count} -eq 2 ]] ; then
+ ewarn
+ ewarn "LIRC_DEVICES has more than one entry."
+ ewarn "When selecting multiple devices for lirc to be supported,"
+ ewarn "it can not be guaranteed that the drivers play nice together."
+ ewarn "If this is not intended, then please adjust LIRC_DEVICES"
+ ewarn "and re-emerge."
+ ewarn
+ fi
+
+ MY_OPTS="${MY_OPTS} --with-driver=${dev}"
+}
+
+pkg_pretend() {
+ if [[ -n "${LIRC_OPTS}" ]] ; then
+ ewarn
+ ewarn "LIRC_OPTS is deprecated from lirc-0.8.0-r1 on."
+ ewarn
+ ewarn "Please use LIRC_DEVICES from now on."
+ ewarn "e.g. LIRC_DEVICES=\"serial sir\""
+ ewarn
+ ewarn "Flags are now set per use-flags."
+ ewarn "e.g. transmitter, hardware-carrier"
+
+ local opt
+ local unsupported_opts=""
+
+ # test for allowed options for LIRC_OPTS
+ for opt in ${LIRC_OPTS}; do
+ case ${opt} in
+ --with-port=*|--with-irq=*|--with-timer=*|--with-tty=*)
+ MY_OPTS="${MY_OPTS} ${opt}"
+ ;;
+ *)
+ unsupported_opts="${unsupported_opts} ${opt}"
+ ;;
+ esac
+ done
+ if [[ -n ${unsupported_opts} ]]; then
+ eerror "These options are no longer allowed to be set"
+ eerror "with LIRC_OPTS: ${unsupported_opts}"
+ die "LIRC_OPTS is no longer supported, use LIRC_DEVICES."
+ fi
+ fi
+}
+
+pkg_setup() {
+ linux-mod_pkg_setup
+
+ # set default configure options
+ MY_OPTS=""
+ LIRC_DRIVER_DEVICE="/dev/lirc0"
+
+ if use lirc_devices_all; then
+ # compile in drivers for a lot of devices
+ add_device all "a lot of devices"
+ else
+ # compile in only requested drivers
+ local dev
+ for dev in ${IUSE_LIRC_DEVICES_DIRECT}; do
+ if use lirc_devices_${dev}; then
+ add_device ${dev}
+ fi
+ done
+
+ if use lirc_devices_remote_wonder_plus; then
+ add_device atiusb "device Remote Wonder Plus (atiusb-based)"
+ fi
+
+ if use lirc_devices_serial_igor_cesko; then
+ add_device serial "serial with Igor Cesko design"
+ MY_OPTS="${MY_OPTS} --with-igor"
+ fi
+
+ if use lirc_devices_imon_pad; then
+ ewarn "The imon_pad driver has incorporated the previous pad2keys patch"
+ ewarn "and removed the pad2keys_active option for the lirc_imon module"
+ ewarn "because it is always active."
+ ewarn "If you have an older imon VFD device, you may need to add the module"
+ ewarn "option display_type=1 to override autodetection and force VFD mode."
+ fi
+
+ if use lirc_devices_xboxusb; then
+ add_device atiusb "device xboxusb"
+ fi
+
+ if use lirc_devices_usbirboy; then
+ add_device userspace "device usbirboy"
+ LIRC_DRIVER_DEVICE="/dev/usbirboy"
+ fi
+
+ if [[ "${MY_OPTS}" == "" ]]; then
+ if [[ "${PROFILE_ARCH}" == "xbox" ]]; then
+ # on xbox: use special driver
+ add_device atiusb "device xboxusb"
+ else
+ # no driver requested
+ elog
+ elog "Compiling only the lirc-applications, but no drivers."
+ elog "Enable drivers with LIRC_DEVICES if you need them."
+ MY_OPTS="--with-driver=none"
+ fi
+ fi
+ fi
+
+ use hardware-carrier && MY_OPTS="${MY_OPTS} --without-soft-carrier"
+ use transmitter && MY_OPTS="${MY_OPTS} --with-transmitter"
+
+ einfo
+ einfo "lirc-configure-opts: ${MY_OPTS}"
+ elog "Setting default lirc-device to ${LIRC_DRIVER_DEVICE}"
+
+ filter-flags -Wl,-O1
+}
+
+src_prepare() {
+ # Rip out dos CRLF
+ edos2unix contrib/lirc.rules
+
+ # Apply patches needed for some special device-types
+ use lirc_devices_audio || epatch "${FILESDIR}"/lirc-0.8.4-portaudio_check.patch
+ use lirc_devices_remote_wonder_plus && epatch "${FILESDIR}"/lirc-0.8.3_pre1-remotewonderplus.patch
+
+ # Apply fixes for kernel-2.6.39 and above
+ epatch "${FILESDIR}"/${P}-kernel-2.6.39-fixes.patch
+ # Slightly massaged upstream patch to fix kfifo issues >=2.6.38
+ # for bug 377033
+ epatch "${FILESDIR}"/${P}-atiusb_kfifo.patch
+ # Apply fixes for kernel-3.3 and above (bug 439538)
+ epatch "${FILESDIR}"/${P}-kernel-3.3.0-fixes.patch
+ # Apply fix for missing err() in usb.h for kernel 3.5+ (bug 444736)
+ epatch "${FILESDIR}"/${P}-kernel-3.5-err-fix.patch
+ # Apply fix for missing __devinit __devexit defines in kernel 3.8+ (bug 461532)
+ epatch "${FILESDIR}"/${P}-kernel-3.8-fixes.patch
+ # Add support for zotac remote, bug 342848
+ epatch "${FILESDIR}"/${P}-add-zotac-support.patch
+
+ # Do not build drivers from the top-level Makefile
+ sed -i -e 's:\(SUBDIRS =\) drivers\(.*\):\1\2:' Makefile.am
+
+ # remove parallel driver on SMP systems
+ if linux_chkconfig_present SMP ; then
+ sed -i -e "s:lirc_parallel\.o::" drivers/lirc_parallel/Makefile.am
+ fi
+
+ # Bug #187418 - only need this part for lirc_devices_all as others die in pkg_setup
+ if use lirc_devices_all && kernel_is ge 2 6 22 ; then
+ ewarn "Disabling lirc_gpio driver as it does no longer work Kernel 2.6.22+"
+ sed -i -e "s:lirc_gpio\.o::" drivers/lirc_gpio/Makefile.am
+ fi
+
+ # respect CFLAGS
+ sed -i -e 's:CFLAGS="-O2:CFLAGS=""\n#CFLAGS="-O2:' configure.ac
+
+ # setting default device-node
+ local f
+ for f in configure.ac acconfig.h; do
+ [[ -f "$f" ]] && sed -i -e '/#define LIRC_DRIVER_DEVICE/d' "$f"
+ done
+ echo "#define LIRC_DRIVER_DEVICE \"${LIRC_DRIVER_DEVICE}\"" >> acconfig.h
+
+ sed -e "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" -i configure.ac || die # automake 1.13
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --localstatedir=/var \
+ --with-syslog=LOG_DAEMON \
+ --enable-sandboxed \
+ --with-kerneldir="${KV_DIR}" \
+ --with-moduledir="/lib/modules/${KV_FULL}/misc" \
+ $(use_enable debug) \
+ $(use_enable static-libs static) \
+ $(use_with X x) \
+ ${MY_OPTS} \
+ ABI="${KERNEL_ABI}" \
+ ARCH="$(tc-arch-kernel)"
+}
+
+src_compile() {
+ # force non-parallel make, Bug 196134 (confirmed valid for 0.9.0-r2)
+ emake -j1
+
+ MODULE_NAMES="lirc(misc:${S}/drivers)"
+ BUILD_TARGETS="all"
+ linux-mod_src_compile
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ emake -C drivers DESTDIR="${D}" install
+
+ newinitd "${FILESDIR}"/lircd-0.8.6-r2 lircd
+ newinitd "${FILESDIR}"/lircmd lircmd
+ newconfd "${FILESDIR}"/lircd.conf.4 lircd
+
+ insinto /etc/modprobe.d/
+ newins "${FILESDIR}"/modprobed.lirc lirc.conf
+
+ newinitd "${FILESDIR}"/irexec-initd-0.8.6-r2 irexec
+ newconfd "${FILESDIR}"/irexec-confd irexec
+
+ if use doc ; then
+ dohtml doc/html/*.html
+ insinto /usr/share/doc/${PF}/images
+ doins doc/images/*
+ fi
+
+ insinto /usr/share/lirc/remotes
+ doins -r remotes/*
+
+ keepdir /etc/lirc
+ if [[ -e "${D}"/etc/lirc/lircd.conf ]]; then
+ newdoc "${D}"/etc/lirc/lircd.conf lircd.conf.example
+ fi
+
+ use static-libs || rm "${D}/usr/$(get_libdir)/liblirc_client.la"
+}
+
+pkg_preinst() {
+ linux-mod_pkg_preinst
+
+ local dir="${EROOT}/etc/modprobe.d"
+ if [[ -a "${dir}"/lirc && ! -a "${dir}"/lirc.conf ]]; then
+ elog "Renaming ${dir}/lirc to lirc.conf"
+ mv -f "${dir}/lirc" "${dir}/lirc.conf"
+ fi
+
+ # copy the first file that can be found
+ if [[ -f "${EROOT}"/etc/lirc/lircd.conf ]]; then
+ cp "${EROOT}"/etc/lirc/lircd.conf "${T}"/lircd.conf
+ elif [[ -f "${EROOT}"/etc/lircd.conf ]]; then
+ cp "${EROOT}"/etc/lircd.conf "${T}"/lircd.conf
+ MOVE_OLD_LIRCD_CONF=1
+ elif [[ -f "${D}"/etc/lirc/lircd.conf ]]; then
+ cp "${D}"/etc/lirc/lircd.conf "${T}"/lircd.conf
+ fi
+
+ # stop portage from touching the config file
+ if [[ -e "${D}"/etc/lirc/lircd.conf ]]; then
+ rm -f "${D}"/etc/lirc/lircd.conf
+ fi
+}
+
+pkg_postinst() {
+ linux-mod_pkg_postinst
+
+ # copy config file to new location
+ # without portage knowing about it
+ # so it will not delete it on unmerge or ever touch it again
+ if [[ -e "${T}"/lircd.conf ]]; then
+ cp "${T}"/lircd.conf "${EROOT}"/etc/lirc/lircd.conf
+ if [[ "$MOVE_OLD_LIRCD_CONF" = "1" ]]; then
+ elog "Moved /etc/lircd.conf to /etc/lirc/lircd.conf"
+ rm -f "${EROOT}"/etc/lircd.conf
+ fi
+ fi
+
+ einfo "The new default location for lircd.conf is inside of"
+ einfo "/etc/lirc/ directory"
+}
diff --git a/app-misc/lirc/lirc-0.9.0-r4.ebuild b/app-misc/lirc/lirc-0.9.0-r4.ebuild
new file mode 100644
index 000000000000..5b8b2f3a497a
--- /dev/null
+++ b/app-misc/lirc/lirc-0.9.0-r4.ebuild
@@ -0,0 +1,431 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit eutils linux-mod linux-info toolchain-funcs flag-o-matic autotools
+
+DESCRIPTION="decode and send infra-red signals of many commonly used remote controls"
+HOMEPAGE="http://www.lirc.org/"
+
+MY_P=${PN}-${PV/_/}
+
+if [[ "${PV/_pre/}" = "${PV}" ]]; then
+ SRC_URI="mirror://sourceforge/lirc/${MY_P}.tar.bz2"
+else
+ SRC_URI="http://www.lirc.org/software/snapshots/${MY_P}.tar.bz2"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE="debug doc hardware-carrier transmitter static-libs X"
+
+S="${WORKDIR}/${MY_P}"
+
+RDEPEND="
+ X? (
+ x11-libs/libX11
+ x11-libs/libSM
+ x11-libs/libICE
+ )
+ lirc_devices_alsa_usb? ( media-libs/alsa-lib )
+ lirc_devices_audio? ( >media-libs/portaudio-18 )
+ lirc_devices_irman? ( media-libs/libirman )"
+
+# 2012-07-17, Ian Stakenvicius
+# A helper script that scrapes out values for nearly all of the variables below
+# from lirc's configure.ac is available at
+# http://dev.gentoo.org/~axs/helper-for-lirc-iuse.sh
+
+# This are drivers with names matching the
+# parameter --with-driver=NAME
+IUSE_LIRC_DEVICES_DIRECT="
+ all userspace accent act200l act220l
+ adaptec alsa_usb animax asusdh atilibusb
+ atiusb audio audio_alsa avermedia avermedia_vdomate
+ avermedia98 awlibusb bestbuy bestbuy2 breakoutbox
+ bte bw6130 caraca chronos commandir
+ cph06x creative creative_infracd
+ devinput digimatrix dsp dvico ea65 ene0100
+ exaudio flyvideo ftdi gvbctv5pci hauppauge
+ hauppauge_dvb hercules_smarttv_stereo i2cuser
+ igorplugusb iguanaIR imon imon_24g imon_knob
+ imon_lcd imon_pad imon_rsc irdeo irdeo_remote
+ irlink irman irreal it87 ite8709
+ knc_one kworld leadtek_0007 leadtek_0010
+ leadtek_pvr2000 livedrive_midi
+ livedrive_seq logitech macmini
+ mediafocusI mouseremote
+ mouseremote_ps2 mp3anywhere mplay nslu2
+ packard_bell parallel pcmak pcmak_usb
+ pctv pixelview_bt878 pixelview_pak
+ pixelview_pro provideo realmagic
+ remotemaster sa1100 samsung sasem sb0540 serial
+ silitek sir slinke streamzap tekram
+ tekram_bt829 tira ttusbir tuxbox tvbox udp uirt2
+ uirt2_raw usb_uirt_raw usbx wpc8769l zotac"
+
+# drivers that need special handling and
+# must have another name specified for
+# parameter --with-driver=NAME
+IUSE_LIRC_DEVICES_SPECIAL="
+ serial_igor_cesko
+ remote_wonder_plus xboxusb usbirboy inputlirc"
+
+IUSE_LIRC_DEVICES="${IUSE_LIRC_DEVICES_DIRECT} ${IUSE_LIRC_DEVICES_SPECIAL}"
+
+# The following are lists which are used to provide ewarns on incompatibilities
+# with the kernel:
+
+#drivers that do not build kernel modules
+NO_KMOD_BUILT_FOR_DEV="
+ accent bte creative creative_infracd devinput dsp ea65 exaudio
+ ftdi i2cuser irlink irreal livedrive_midi livedrive_seq logitech
+ mediafocusI mouseremote mouseremote_ps2 mp3anywhere mplay mplay2
+ pcmak pcmak_usb pctv realmagic remotemaster silitek tira tira_raw
+ tuxbox udp uirt2 uirt2_raw usb_uirt_raw usbx"
+
+#drivers that build lirc_dev and so will conflict with kernel lirc_dev
+LIRCDEV_BUILT_FOR_DEV="all
+ act200l act220l adaptec animax atiusb breakoutbox hauppauge
+ hauppauge_dvb hercules_smarttv_stereo igorplugusb imon imon_24g
+ imon_knob imon_lcd imon_pad imon_rsc irdeo irdeo_remote knc_one
+ leadtek_pvr2000 nslu2 packard_bell parallel pixelview_bt878
+ provideo sa1100 sasem serial sir tekram tekram_bt829 ttusbir
+ tvbox wpc8769l zotac"
+
+#lirc_gpio drivers, which cannot be supported on kernel >= 2.6.22
+LIRC_GPIO_DEV="
+ avermedia avermedia98 avermedia_vdomate bestbuy bestbuy2 chronos
+ cph03x cph06x flyvideo gvbctv5pci kworld leadtek_0007 leadtek_0010
+ pixelview_pak pixelview_pro"
+
+#device-driver which use libusb
+LIBUSB_USED_BY_DEV="
+ all atilibusb awlibusb sasem igorplugusb imon imon_lcd imon_pad
+ imon_rsc streamzap xboxusb irlink commandir"
+
+for dev in ${LIBUSB_USED_BY_DEV}; do
+ DEPEND="${DEPEND} lirc_devices_${dev}? ( virtual/libusb:0 )"
+done
+
+# adding only compile-time depends
+DEPEND="${RDEPEND} ${DEPEND}
+ virtual/linux-sources
+ lirc_devices_ftdi? ( dev-embedded/libftdi )
+ lirc_devices_all? ( dev-embedded/libftdi )"
+
+# adding only run-time depends
+RDEPEND="${RDEPEND}
+ lirc_devices_usbirboy? ( app-misc/usbirboy )
+ lirc_devices_inputlirc? ( app-misc/inputlircd )
+ lirc_devices_iguanaIR? ( app-misc/iguanaIR )"
+
+# add all devices to IUSE
+# and ensure lirc_devices_all is not set alongside lirc_devices_*
+REQUIRED_USE="lirc_devices_all? ("
+for dev in ${IUSE_LIRC_DEVICES}; do
+ IUSE="${IUSE} lirc_devices_${dev}"
+ if [[ "${dev}" != "all" ]]; then
+ REQUIRED_USE="${REQUIRED_USE} !lirc_devices_${dev}"
+ fi
+done
+REQUIRED_USE="${REQUIRED_USE} )"
+
+add_device() {
+ local dev="${1}"
+ local desc="device ${dev}"
+ if [[ -n "${2}" ]]; then
+ desc="${2}"
+ fi
+
+ # Bug #187418
+ if kernel_is ge 2 6 22 && [[ " ${LIRC_GPIO_DEV} " == *" ${dev} "* ]]; then
+ eerror "${desc} uses lirc_gpio which fails with kernel 2.6.22 or above. Not building."
+ eerror "Use 'devinput' instead, or use 'userspace' along with in-kernel drivers"
+ return 0
+ fi
+ : ${lirc_device_count:=0}
+ ((lirc_device_count++))
+
+ elog "Compiling support for ${desc}"
+
+ if [[ " ${LIRCDEV_BUILT_FOR_DEV} " == *" ${dev} "* ]] ; then
+ if linux_chkconfig_present LIRC ; then
+ ewarn "${desc} builds lirc_dev and CONFIG_LIRC is set in the kernel -- this may conflict."
+ fi
+ if ! linux_chkconfig_present MODULE_UNLOAD ; then
+ ewarn "${desc} builds modules and CONFIG_MODULE_UNLOAD is unset in kernel."
+ ewarn "You will need MODULE_UNLOAD support in your kernel."
+ fi
+ fi
+ if [[ " ${NO_KMOD_BUILT_FOR_DEV} " == *" ${dev} "* ]] && ! linux_chkconfig_present IR_LIRC_CODEC ; then
+ ewarn "${desc} builds no kernel module and CONFIG_IR_LIRC_CODEC is unset in kernel."
+ fi
+
+ if [[ ${lirc_device_count} -eq 2 ]] ; then
+ ewarn
+ ewarn "LIRC_DEVICES has more than one entry."
+ ewarn "When selecting multiple devices for lirc to be supported,"
+ ewarn "it can not be guaranteed that the drivers play nice together."
+ ewarn "If this is not intended, then please adjust LIRC_DEVICES"
+ ewarn "and re-emerge."
+ ewarn
+ fi
+
+ MY_OPTS="${MY_OPTS} --with-driver=${dev}"
+}
+
+pkg_pretend() {
+ if [[ -n "${LIRC_OPTS}" ]] ; then
+ ewarn
+ ewarn "LIRC_OPTS is deprecated from lirc-0.8.0-r1 on."
+ ewarn
+ ewarn "Please use LIRC_DEVICES from now on."
+ ewarn "e.g. LIRC_DEVICES=\"serial sir\""
+ ewarn
+ ewarn "Flags are now set per use-flags."
+ ewarn "e.g. transmitter, hardware-carrier"
+
+ local opt
+ local unsupported_opts=""
+
+ # test for allowed options for LIRC_OPTS
+ for opt in ${LIRC_OPTS}; do
+ case ${opt} in
+ --with-port=*|--with-irq=*|--with-timer=*|--with-tty=*)
+ MY_OPTS="${MY_OPTS} ${opt}"
+ ;;
+ *)
+ unsupported_opts="${unsupported_opts} ${opt}"
+ ;;
+ esac
+ done
+ if [[ -n ${unsupported_opts} ]]; then
+ eerror "These options are no longer allowed to be set"
+ eerror "with LIRC_OPTS: ${unsupported_opts}"
+ die "LIRC_OPTS is no longer supported, use LIRC_DEVICES."
+ fi
+ fi
+}
+
+pkg_setup() {
+ linux-mod_pkg_setup
+
+ # set default configure options
+ MY_OPTS=""
+ LIRC_DRIVER_DEVICE="/dev/lirc0"
+
+ if use lirc_devices_all; then
+ # compile in drivers for a lot of devices
+ add_device all "a lot of devices"
+ else
+ # compile in only requested drivers
+ local dev
+ for dev in ${IUSE_LIRC_DEVICES_DIRECT}; do
+ if use lirc_devices_${dev}; then
+ add_device ${dev}
+ fi
+ done
+
+ if use lirc_devices_remote_wonder_plus; then
+ add_device atiusb "device Remote Wonder Plus (atiusb-based)"
+ fi
+
+ if use lirc_devices_serial_igor_cesko; then
+ add_device serial "serial with Igor Cesko design"
+ MY_OPTS="${MY_OPTS} --with-igor"
+ fi
+
+ if use lirc_devices_imon_pad; then
+ ewarn "The imon_pad driver has incorporated the previous pad2keys patch"
+ ewarn "and removed the pad2keys_active option for the lirc_imon module"
+ ewarn "because it is always active."
+ ewarn "If you have an older imon VFD device, you may need to add the module"
+ ewarn "option display_type=1 to override autodetection and force VFD mode."
+ fi
+
+ if use lirc_devices_xboxusb; then
+ add_device atiusb "device xboxusb"
+ fi
+
+ if use lirc_devices_usbirboy; then
+ add_device userspace "device usbirboy"
+ LIRC_DRIVER_DEVICE="/dev/usbirboy"
+ fi
+
+ if [[ "${MY_OPTS}" == "" ]]; then
+ if [[ "${PROFILE_ARCH}" == "xbox" ]]; then
+ # on xbox: use special driver
+ add_device atiusb "device xboxusb"
+ else
+ # no driver requested
+ elog
+ elog "Compiling only the lirc-applications, but no drivers."
+ elog "Enable drivers with LIRC_DEVICES if you need them."
+ MY_OPTS="--with-driver=none"
+ fi
+ fi
+ fi
+
+ use hardware-carrier && MY_OPTS="${MY_OPTS} --without-soft-carrier"
+ use transmitter && MY_OPTS="${MY_OPTS} --with-transmitter"
+
+ einfo
+ einfo "lirc-configure-opts: ${MY_OPTS}"
+ elog "Setting default lirc-device to ${LIRC_DRIVER_DEVICE}"
+
+ filter-flags -Wl,-O1
+}
+
+src_prepare() {
+ # Rip out dos CRLF
+ edos2unix contrib/lirc.rules
+
+ # Apply patches needed for some special device-types
+ use lirc_devices_audio || epatch "${FILESDIR}"/lirc-0.8.4-portaudio_check.patch
+ use lirc_devices_remote_wonder_plus && epatch "${FILESDIR}"/lirc-0.8.3_pre1-remotewonderplus.patch
+
+ # Apply fixes for kernel-2.6.39 and above
+ epatch "${FILESDIR}"/${P}-kernel-2.6.39-fixes.patch
+ # Slightly massaged upstream patch to fix kfifo issues >=2.6.38
+ # for bug 377033
+ epatch "${FILESDIR}"/${P}-atiusb_kfifo.patch
+ # Apply fixes for kernel-3.3 and above (bug 439538)
+ epatch "${FILESDIR}"/${P}-kernel-3.3.0-fixes.patch
+ # Apply fix for missing err() in usb.h for kernel 3.5+ (bug 444736)
+ epatch "${FILESDIR}"/${P}-kernel-3.5-err-fix.patch
+ # Apply fix for missing __devinit __devexit defines in kernel 3.8+ (bug 461532)
+ epatch "${FILESDIR}"/${P}-kernel-3.8-fixes.patch
+ # Add support for zotac remote, bug 342848
+ epatch "${FILESDIR}"/${P}-add-zotac-support.patch
+ # Use fixed font
+ epatch "${FILESDIR}"/${P}-fixed-font.patch
+
+ # Do not build drivers from the top-level Makefile
+ sed -i -e 's:\(SUBDIRS =\) drivers\(.*\):\1\2:' Makefile.am
+
+ # remove parallel driver on SMP systems
+ if linux_chkconfig_present SMP ; then
+ sed -i -e "s:lirc_parallel\.o::" drivers/lirc_parallel/Makefile.am
+ fi
+
+ # Bug #187418 - only need this part for lirc_devices_all as others die in pkg_setup
+ if use lirc_devices_all && kernel_is ge 2 6 22 ; then
+ ewarn "Disabling lirc_gpio driver as it does no longer work Kernel 2.6.22+"
+ sed -i -e "s:lirc_gpio\.o::" drivers/lirc_gpio/Makefile.am
+ fi
+
+ # respect CFLAGS
+ sed -i -e 's:CFLAGS="-O2:CFLAGS=""\n#CFLAGS="-O2:' configure.ac
+
+ # setting default device-node
+ local f
+ for f in configure.ac acconfig.h; do
+ [[ -f "$f" ]] && sed -i -e '/#define LIRC_DRIVER_DEVICE/d' "$f"
+ done
+ echo "#define LIRC_DRIVER_DEVICE \"${LIRC_DRIVER_DEVICE}\"" >> acconfig.h
+
+ sed -e "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" -i configure.ac || die # automake 1.13
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --localstatedir=/var \
+ --with-syslog=LOG_DAEMON \
+ --enable-sandboxed \
+ --with-kerneldir="${KV_DIR}" \
+ --with-moduledir="/lib/modules/${KV_FULL}/misc" \
+ $(use_enable debug) \
+ $(use_enable static-libs static) \
+ $(use_with X x) \
+ ${MY_OPTS} \
+ ABI="${KERNEL_ABI}" \
+ ARCH="$(tc-arch-kernel)"
+}
+
+src_compile() {
+ # force non-parallel make, Bug 196134 (confirmed valid for 0.9.0-r2)
+ emake -j1
+
+ MODULE_NAMES="lirc(misc:${S}/drivers)"
+ BUILD_TARGETS="all"
+ linux-mod_src_compile
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ emake -C drivers DESTDIR="${D}" install
+
+ newinitd "${FILESDIR}"/lircd-0.8.6-r2 lircd
+ newinitd "${FILESDIR}"/lircmd lircmd
+ newconfd "${FILESDIR}"/lircd.conf.4 lircd
+
+ insinto /etc/modprobe.d/
+ newins "${FILESDIR}"/modprobed.lirc lirc.conf
+
+ newinitd "${FILESDIR}"/irexec-initd-0.8.6-r2 irexec
+ newconfd "${FILESDIR}"/irexec-confd irexec
+
+ if use doc ; then
+ dohtml doc/html/*.html
+ insinto /usr/share/doc/${PF}/images
+ doins doc/images/*
+ fi
+
+ insinto /usr/share/lirc/remotes
+ doins -r remotes/*
+
+ keepdir /etc/lirc
+ if [[ -e "${D}"/etc/lirc/lircd.conf ]]; then
+ newdoc "${D}"/etc/lirc/lircd.conf lircd.conf.example
+ fi
+
+ use static-libs || rm "${D}/usr/$(get_libdir)/liblirc_client.la"
+}
+
+pkg_preinst() {
+ linux-mod_pkg_preinst
+
+ local dir="${EROOT}/etc/modprobe.d"
+ if [[ -a "${dir}"/lirc && ! -a "${dir}"/lirc.conf ]]; then
+ elog "Renaming ${dir}/lirc to lirc.conf"
+ mv -f "${dir}/lirc" "${dir}/lirc.conf"
+ fi
+
+ # copy the first file that can be found
+ if [[ -f "${EROOT}"/etc/lirc/lircd.conf ]]; then
+ cp "${EROOT}"/etc/lirc/lircd.conf "${T}"/lircd.conf
+ elif [[ -f "${EROOT}"/etc/lircd.conf ]]; then
+ cp "${EROOT}"/etc/lircd.conf "${T}"/lircd.conf
+ MOVE_OLD_LIRCD_CONF=1
+ elif [[ -f "${D}"/etc/lirc/lircd.conf ]]; then
+ cp "${D}"/etc/lirc/lircd.conf "${T}"/lircd.conf
+ fi
+
+ # stop portage from touching the config file
+ if [[ -e "${D}"/etc/lirc/lircd.conf ]]; then
+ rm -f "${D}"/etc/lirc/lircd.conf
+ fi
+}
+
+pkg_postinst() {
+ linux-mod_pkg_postinst
+
+ # copy config file to new location
+ # without portage knowing about it
+ # so it will not delete it on unmerge or ever touch it again
+ if [[ -e "${T}"/lircd.conf ]]; then
+ cp "${T}"/lircd.conf "${EROOT}"/etc/lirc/lircd.conf
+ if [[ "$MOVE_OLD_LIRCD_CONF" = "1" ]]; then
+ elog "Moved /etc/lircd.conf to /etc/lirc/lircd.conf"
+ rm -f "${EROOT}"/etc/lircd.conf
+ fi
+ fi
+
+ einfo "The new default location for lircd.conf is inside of"
+ einfo "/etc/lirc/ directory"
+}
diff --git a/app-misc/lirc/lirc-0.9.0-r5.ebuild b/app-misc/lirc/lirc-0.9.0-r5.ebuild
new file mode 100644
index 000000000000..3181b5b1a159
--- /dev/null
+++ b/app-misc/lirc/lirc-0.9.0-r5.ebuild
@@ -0,0 +1,435 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit eutils linux-mod linux-info systemd toolchain-funcs flag-o-matic autotools
+
+DESCRIPTION="decode and send infra-red signals of many commonly used remote controls"
+HOMEPAGE="http://www.lirc.org/"
+
+MY_P=${PN}-${PV/_/}
+
+if [[ "${PV/_pre/}" = "${PV}" ]]; then
+ SRC_URI="mirror://sourceforge/lirc/${MY_P}.tar.bz2"
+else
+ SRC_URI="http://www.lirc.org/software/snapshots/${MY_P}.tar.bz2"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc ppc64 x86"
+IUSE="debug doc hardware-carrier transmitter static-libs X"
+
+S="${WORKDIR}/${MY_P}"
+
+RDEPEND="
+ X? (
+ x11-libs/libX11
+ x11-libs/libSM
+ x11-libs/libICE
+ )
+ lirc_devices_alsa_usb? ( media-libs/alsa-lib )
+ lirc_devices_audio? ( >media-libs/portaudio-18 )
+ lirc_devices_irman? ( media-libs/libirman )"
+
+# 2012-07-17, Ian Stakenvicius
+# A helper script that scrapes out values for nearly all of the variables below
+# from lirc's configure.ac is available at
+# http://dev.gentoo.org/~axs/helper-for-lirc-iuse.sh
+
+# This are drivers with names matching the
+# parameter --with-driver=NAME
+IUSE_LIRC_DEVICES_DIRECT="
+ all userspace accent act200l act220l
+ adaptec alsa_usb animax asusdh atilibusb
+ atiusb audio audio_alsa avermedia avermedia_vdomate
+ avermedia98 awlibusb bestbuy bestbuy2 breakoutbox
+ bte bw6130 caraca chronos commandir
+ cph06x creative creative_infracd
+ devinput digimatrix dsp dvico ea65 ene0100
+ exaudio flyvideo ftdi gvbctv5pci hauppauge
+ hauppauge_dvb hercules_smarttv_stereo i2cuser
+ igorplugusb iguanaIR imon imon_24g imon_knob
+ imon_lcd imon_pad imon_rsc irdeo irdeo_remote
+ irlink irman irreal it87 ite8709
+ knc_one kworld leadtek_0007 leadtek_0010
+ leadtek_pvr2000 livedrive_midi
+ livedrive_seq logitech macmini
+ mediafocusI mouseremote
+ mouseremote_ps2 mp3anywhere mplay nslu2
+ packard_bell parallel pcmak pcmak_usb
+ pctv pixelview_bt878 pixelview_pak
+ pixelview_pro provideo realmagic
+ remotemaster sa1100 samsung sasem sb0540 serial
+ silitek sir slinke streamzap tekram
+ tekram_bt829 tira ttusbir tuxbox tvbox udp uirt2
+ uirt2_raw usb_uirt_raw usbx wpc8769l zotac"
+
+# drivers that need special handling and
+# must have another name specified for
+# parameter --with-driver=NAME
+IUSE_LIRC_DEVICES_SPECIAL="
+ serial_igor_cesko
+ remote_wonder_plus xboxusb usbirboy inputlirc"
+
+IUSE_LIRC_DEVICES="${IUSE_LIRC_DEVICES_DIRECT} ${IUSE_LIRC_DEVICES_SPECIAL}"
+
+# The following are lists which are used to provide ewarns on incompatibilities
+# with the kernel:
+
+#drivers that do not build kernel modules
+NO_KMOD_BUILT_FOR_DEV="
+ accent bte creative creative_infracd devinput dsp ea65 exaudio
+ ftdi i2cuser irlink irreal livedrive_midi livedrive_seq logitech
+ mediafocusI mouseremote mouseremote_ps2 mp3anywhere mplay mplay2
+ pcmak pcmak_usb pctv realmagic remotemaster silitek tira tira_raw
+ tuxbox udp uirt2 uirt2_raw usb_uirt_raw usbx"
+
+#drivers that build lirc_dev and so will conflict with kernel lirc_dev
+LIRCDEV_BUILT_FOR_DEV="all
+ act200l act220l adaptec animax atiusb breakoutbox hauppauge
+ hauppauge_dvb hercules_smarttv_stereo igorplugusb imon imon_24g
+ imon_knob imon_lcd imon_pad imon_rsc irdeo irdeo_remote knc_one
+ leadtek_pvr2000 nslu2 packard_bell parallel pixelview_bt878
+ provideo sa1100 sasem serial sir tekram tekram_bt829 ttusbir
+ tvbox wpc8769l zotac"
+
+#lirc_gpio drivers, which cannot be supported on kernel >= 2.6.22
+LIRC_GPIO_DEV="
+ avermedia avermedia98 avermedia_vdomate bestbuy bestbuy2 chronos
+ cph03x cph06x flyvideo gvbctv5pci kworld leadtek_0007 leadtek_0010
+ pixelview_pak pixelview_pro"
+
+#device-driver which use libusb
+LIBUSB_USED_BY_DEV="
+ all atilibusb awlibusb sasem igorplugusb imon imon_lcd imon_pad
+ imon_rsc streamzap xboxusb irlink commandir"
+
+for dev in ${LIBUSB_USED_BY_DEV}; do
+ DEPEND="${DEPEND} lirc_devices_${dev}? ( virtual/libusb:0 )"
+done
+
+# adding only compile-time depends
+DEPEND="${RDEPEND} ${DEPEND}
+ virtual/linux-sources
+ lirc_devices_ftdi? ( dev-embedded/libftdi )
+ lirc_devices_all? ( dev-embedded/libftdi )"
+
+# adding only run-time depends
+RDEPEND="${RDEPEND}
+ lirc_devices_usbirboy? ( app-misc/usbirboy )
+ lirc_devices_inputlirc? ( app-misc/inputlircd )
+ lirc_devices_iguanaIR? ( app-misc/iguanaIR )"
+
+# add all devices to IUSE
+# and ensure lirc_devices_all is not set alongside lirc_devices_*
+REQUIRED_USE="lirc_devices_all? ("
+for dev in ${IUSE_LIRC_DEVICES}; do
+ IUSE="${IUSE} lirc_devices_${dev}"
+ if [[ "${dev}" != "all" ]]; then
+ REQUIRED_USE="${REQUIRED_USE} !lirc_devices_${dev}"
+ fi
+done
+REQUIRED_USE="${REQUIRED_USE} )"
+
+add_device() {
+ local dev="${1}"
+ local desc="device ${dev}"
+ if [[ -n "${2}" ]]; then
+ desc="${2}"
+ fi
+
+ # Bug #187418
+ if kernel_is ge 2 6 22 && [[ " ${LIRC_GPIO_DEV} " == *" ${dev} "* ]]; then
+ eerror "${desc} uses lirc_gpio which fails with kernel 2.6.22 or above. Not building."
+ eerror "Use 'devinput' instead, or use 'userspace' along with in-kernel drivers"
+ return 0
+ fi
+ : ${lirc_device_count:=0}
+ ((lirc_device_count++))
+
+ elog "Compiling support for ${desc}"
+
+ if [[ " ${LIRCDEV_BUILT_FOR_DEV} " == *" ${dev} "* ]] ; then
+ if linux_chkconfig_present LIRC ; then
+ ewarn "${desc} builds lirc_dev and CONFIG_LIRC is set in the kernel -- this may conflict."
+ fi
+ if ! linux_chkconfig_present MODULE_UNLOAD ; then
+ ewarn "${desc} builds modules and CONFIG_MODULE_UNLOAD is unset in kernel."
+ ewarn "You will need MODULE_UNLOAD support in your kernel."
+ fi
+ fi
+ if [[ " ${NO_KMOD_BUILT_FOR_DEV} " == *" ${dev} "* ]] && ! linux_chkconfig_present IR_LIRC_CODEC ; then
+ ewarn "${desc} builds no kernel module and CONFIG_IR_LIRC_CODEC is unset in kernel."
+ fi
+
+ if [[ ${lirc_device_count} -eq 2 ]] ; then
+ ewarn
+ ewarn "LIRC_DEVICES has more than one entry."
+ ewarn "When selecting multiple devices for lirc to be supported,"
+ ewarn "it can not be guaranteed that the drivers play nice together."
+ ewarn "If this is not intended, then please adjust LIRC_DEVICES"
+ ewarn "and re-emerge."
+ ewarn
+ fi
+
+ MY_OPTS="${MY_OPTS} --with-driver=${dev}"
+}
+
+pkg_pretend() {
+ if [[ -n "${LIRC_OPTS}" ]] ; then
+ ewarn
+ ewarn "LIRC_OPTS is deprecated from lirc-0.8.0-r1 on."
+ ewarn
+ ewarn "Please use LIRC_DEVICES from now on."
+ ewarn "e.g. LIRC_DEVICES=\"serial sir\""
+ ewarn
+ ewarn "Flags are now set per use-flags."
+ ewarn "e.g. transmitter, hardware-carrier"
+
+ local opt
+ local unsupported_opts=""
+
+ # test for allowed options for LIRC_OPTS
+ for opt in ${LIRC_OPTS}; do
+ case ${opt} in
+ --with-port=*|--with-irq=*|--with-timer=*|--with-tty=*)
+ MY_OPTS="${MY_OPTS} ${opt}"
+ ;;
+ *)
+ unsupported_opts="${unsupported_opts} ${opt}"
+ ;;
+ esac
+ done
+ if [[ -n ${unsupported_opts} ]]; then
+ eerror "These options are no longer allowed to be set"
+ eerror "with LIRC_OPTS: ${unsupported_opts}"
+ die "LIRC_OPTS is no longer supported, use LIRC_DEVICES."
+ fi
+ fi
+}
+
+pkg_setup() {
+ linux-mod_pkg_setup
+
+ # set default configure options
+ MY_OPTS=""
+ LIRC_DRIVER_DEVICE="/dev/lirc0"
+
+ if use lirc_devices_all; then
+ # compile in drivers for a lot of devices
+ add_device all "a lot of devices"
+ else
+ # compile in only requested drivers
+ local dev
+ for dev in ${IUSE_LIRC_DEVICES_DIRECT}; do
+ if use lirc_devices_${dev}; then
+ add_device ${dev}
+ fi
+ done
+
+ if use lirc_devices_remote_wonder_plus; then
+ add_device atiusb "device Remote Wonder Plus (atiusb-based)"
+ fi
+
+ if use lirc_devices_serial_igor_cesko; then
+ add_device serial "serial with Igor Cesko design"
+ MY_OPTS="${MY_OPTS} --with-igor"
+ fi
+
+ if use lirc_devices_imon_pad; then
+ ewarn "The imon_pad driver has incorporated the previous pad2keys patch"
+ ewarn "and removed the pad2keys_active option for the lirc_imon module"
+ ewarn "because it is always active."
+ ewarn "If you have an older imon VFD device, you may need to add the module"
+ ewarn "option display_type=1 to override autodetection and force VFD mode."
+ fi
+
+ if use lirc_devices_xboxusb; then
+ add_device atiusb "device xboxusb"
+ fi
+
+ if use lirc_devices_usbirboy; then
+ add_device userspace "device usbirboy"
+ LIRC_DRIVER_DEVICE="/dev/usbirboy"
+ fi
+
+ if [[ "${MY_OPTS}" == "" ]]; then
+ if [[ "${PROFILE_ARCH}" == "xbox" ]]; then
+ # on xbox: use special driver
+ add_device atiusb "device xboxusb"
+ else
+ # no driver requested
+ elog
+ elog "Compiling only the lirc-applications, but no drivers."
+ elog "Enable drivers with LIRC_DEVICES if you need them."
+ MY_OPTS="--with-driver=none"
+ fi
+ fi
+ fi
+
+ use hardware-carrier && MY_OPTS="${MY_OPTS} --without-soft-carrier"
+ use transmitter && MY_OPTS="${MY_OPTS} --with-transmitter"
+
+ einfo
+ einfo "lirc-configure-opts: ${MY_OPTS}"
+ elog "Setting default lirc-device to ${LIRC_DRIVER_DEVICE}"
+
+ filter-flags -Wl,-O1
+}
+
+src_prepare() {
+ # Rip out dos CRLF
+ edos2unix contrib/lirc.rules
+
+ # Apply patches needed for some special device-types
+ use lirc_devices_audio || epatch "${FILESDIR}"/lirc-0.8.4-portaudio_check.patch
+ use lirc_devices_remote_wonder_plus && epatch "${FILESDIR}"/lirc-0.8.3_pre1-remotewonderplus.patch
+
+ # Apply fixes for kernel-2.6.39 and above
+ epatch "${FILESDIR}"/${P}-kernel-2.6.39-fixes.patch
+ # Slightly massaged upstream patch to fix kfifo issues >=2.6.38
+ # for bug 377033
+ epatch "${FILESDIR}"/${P}-atiusb_kfifo.patch
+ # Apply fixes for kernel-3.3 and above (bug 439538)
+ epatch "${FILESDIR}"/${P}-kernel-3.3.0-fixes.patch
+ # Apply fix for missing err() in usb.h for kernel 3.5+ (bug 444736)
+ epatch "${FILESDIR}"/${P}-kernel-3.5-err-fix.patch
+ # Apply fix for missing __devinit __devexit defines in kernel 3.8+ (bug 461532)
+ epatch "${FILESDIR}"/${P}-kernel-3.8-fixes.patch
+ # Add support for zotac remote, bug 342848
+ epatch "${FILESDIR}"/${P}-add-zotac-support.patch
+ # Use fixed font
+ epatch "${FILESDIR}"/${P}-fixed-font.patch
+
+ # Do not build drivers from the top-level Makefile
+ sed -i -e 's:\(SUBDIRS =\) drivers\(.*\):\1\2:' Makefile.am
+
+ # remove parallel driver on SMP systems
+ if linux_chkconfig_present SMP ; then
+ sed -i -e "s:lirc_parallel\.o::" drivers/lirc_parallel/Makefile.am
+ fi
+
+ # Bug #187418 - only need this part for lirc_devices_all as others die in pkg_setup
+ if use lirc_devices_all && kernel_is ge 2 6 22 ; then
+ ewarn "Disabling lirc_gpio driver as it does no longer work Kernel 2.6.22+"
+ sed -i -e "s:lirc_gpio\.o::" drivers/lirc_gpio/Makefile.am
+ fi
+
+ # respect CFLAGS
+ sed -i -e 's:CFLAGS="-O2:CFLAGS=""\n#CFLAGS="-O2:' configure.ac
+
+ # setting default device-node
+ local f
+ for f in configure.ac acconfig.h; do
+ [[ -f "$f" ]] && sed -i -e '/#define LIRC_DRIVER_DEVICE/d' "$f"
+ done
+ echo "#define LIRC_DRIVER_DEVICE \"${LIRC_DRIVER_DEVICE}\"" >> acconfig.h
+
+ sed -e "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" -i configure.ac || die # automake 1.13
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --localstatedir=/var \
+ --with-syslog=LOG_DAEMON \
+ --enable-sandboxed \
+ --with-kerneldir="${KV_DIR}" \
+ --with-moduledir="/lib/modules/${KV_FULL}/misc" \
+ $(use_enable debug) \
+ $(use_enable static-libs static) \
+ $(use_with X x) \
+ ${MY_OPTS} \
+ ABI="${KERNEL_ABI}" \
+ ARCH="$(tc-arch-kernel)"
+}
+
+src_compile() {
+ # force non-parallel make, Bug 196134 (confirmed valid for 0.9.0-r2)
+ emake -j1
+
+ MODULE_NAMES="lirc(misc:${S}/drivers)"
+ BUILD_TARGETS="all"
+ linux-mod_src_compile
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ emake -C drivers DESTDIR="${D}" install
+
+ newinitd "${FILESDIR}"/lircd-0.8.6-r2 lircd
+ newinitd "${FILESDIR}"/lircmd lircmd
+ newconfd "${FILESDIR}"/lircd.conf.4 lircd
+
+ insinto /etc/modprobe.d/
+ newins "${FILESDIR}"/modprobed.lirc lirc.conf
+
+ newinitd "${FILESDIR}"/irexec-initd-0.8.6-r2 irexec
+ newconfd "${FILESDIR}"/irexec-confd irexec
+
+ systemd_dounit "${FILESDIR}"/irexec.service
+ systemd_dounit "${FILESDIR}"/lirc.service
+ systemd_dounit "${FILESDIR}"/lircm.service
+
+ if use doc ; then
+ dohtml doc/html/*.html
+ insinto /usr/share/doc/${PF}/images
+ doins doc/images/*
+ fi
+
+ insinto /usr/share/lirc/remotes
+ doins -r remotes/*
+
+ keepdir /etc/lirc
+ if [[ -e "${D}"/etc/lirc/lircd.conf ]]; then
+ newdoc "${D}"/etc/lirc/lircd.conf lircd.conf.example
+ fi
+
+ use static-libs || rm "${D}/usr/$(get_libdir)/liblirc_client.la"
+}
+
+pkg_preinst() {
+ linux-mod_pkg_preinst
+
+ local dir="${EROOT}/etc/modprobe.d"
+ if [[ -a "${dir}"/lirc && ! -a "${dir}"/lirc.conf ]]; then
+ elog "Renaming ${dir}/lirc to lirc.conf"
+ mv -f "${dir}/lirc" "${dir}/lirc.conf"
+ fi
+
+ # copy the first file that can be found
+ if [[ -f "${EROOT}"/etc/lirc/lircd.conf ]]; then
+ cp "${EROOT}"/etc/lirc/lircd.conf "${T}"/lircd.conf
+ elif [[ -f "${EROOT}"/etc/lircd.conf ]]; then
+ cp "${EROOT}"/etc/lircd.conf "${T}"/lircd.conf
+ MOVE_OLD_LIRCD_CONF=1
+ elif [[ -f "${D}"/etc/lirc/lircd.conf ]]; then
+ cp "${D}"/etc/lirc/lircd.conf "${T}"/lircd.conf
+ fi
+
+ # stop portage from touching the config file
+ if [[ -e "${D}"/etc/lirc/lircd.conf ]]; then
+ rm -f "${D}"/etc/lirc/lircd.conf
+ fi
+}
+
+pkg_postinst() {
+ linux-mod_pkg_postinst
+
+ # copy config file to new location
+ # without portage knowing about it
+ # so it will not delete it on unmerge or ever touch it again
+ if [[ -e "${T}"/lircd.conf ]]; then
+ cp "${T}"/lircd.conf "${EROOT}"/etc/lirc/lircd.conf
+ if [[ "$MOVE_OLD_LIRCD_CONF" = "1" ]]; then
+ elog "Moved /etc/lircd.conf to /etc/lirc/lircd.conf"
+ rm -f "${EROOT}"/etc/lircd.conf
+ fi
+ fi
+
+ einfo "The new default location for lircd.conf is inside of"
+ einfo "/etc/lirc/ directory"
+}
diff --git a/app-misc/lirc/metadata.xml b/app-misc/lirc/metadata.xml
new file mode 100644
index 000000000000..199a453f60ec
--- /dev/null
+++ b/app-misc/lirc/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>media-tv</herd>
+ <use>
+ <flag name="hardware-carrier">The transmitter device generates its clock
+ signal in hardware</flag>
+ <flag name="transmitter">Add transmitter support to some lirc-drivers
+ (e.g. serial)</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">lirc</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/livecd-tools/Manifest b/app-misc/livecd-tools/Manifest
new file mode 100644
index 000000000000..b1bf44c13daf
--- /dev/null
+++ b/app-misc/livecd-tools/Manifest
@@ -0,0 +1,2 @@
+DIST livecd-tools-2.0.3.tar.bz2 11343 SHA256 72ade5e5f2a28dc46008ae206309f6c797f5b005caea583d20ba13e2434dd728 SHA512 dde8972e164335046d5b7755b97e4ec53e5f18b96c85a3f79825e6ac659039ad96d16c1189761611d1c49ba97de2d96b7fd629e78d20c680a879881a678ce889 WHIRLPOOL 369e5082d4416e0ee5376f76a4187141120946e176543d02cfba7a9f6c047cc8f2198940fe14750b7314a87db9b73881ba1684330a5e1ae1ad6716a6910f2ee3
+DIST livecd-tools-2.0.4.tar.xz 10580 SHA256 a819344ce79c9d0dce4a8339fe09b485b169b42063dbe1f6d2245ef57c867e51 SHA512 242d0d27d141af7c4a0c9be390d4faf9fc97b840a55f76e0a804838b98ba95a644be8a4f2ff1353bf7782b8db24b72b8f24a2fe01f60449c9687efbbfad4d6f3 WHIRLPOOL 591457dd46190b72a2f8fc50bc3869163c604f6850944fdf74bad4d145c0c214c89336547f3daaa2942088b83c86254c7289cd34a897da79130888248c661283
diff --git a/app-misc/livecd-tools/livecd-tools-2.0.3.ebuild b/app-misc/livecd-tools/livecd-tools-2.0.3.ebuild
new file mode 100644
index 000000000000..f808d300e619
--- /dev/null
+++ b/app-misc/livecd-tools/livecd-tools-2.0.3.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+if [[ ${PV} == "9999" ]]; then
+ EGIT_REPO_URI="git://anongit.gentoo.org/proj/livecd-tools.git"
+ inherit git-2
+else
+ SRC_URI="mirror://gentoo/${P}.tar.bz2"
+ KEYWORDS="alpha amd64 hppa ia64 ~mips ppc ppc64 sparc x86"
+fi
+
+inherit eutils
+
+DESCRIPTION="Gentoo LiveCD tools for autoconfiguration of hardware"
+HOMEPAGE="http://wolf31o2.org/projects/livecd-tools"
+
+SLOT="0"
+LICENSE="GPL-2"
+IUSE=""
+
+RDEPEND="dev-util/dialog
+ net-dialup/mingetty
+ >=sys-apps/baselayout-2
+ >=sys-apps/openrc-0.8.2-r1
+ sys-apps/pciutils
+ sys-apps/gawk
+ sys-apps/sed"
+
+pkg_setup() {
+ ewarn "This package is designed for use on the LiveCD only and will do"
+ ewarn "unspeakably horrible and unexpected things on a normal system."
+ ewarn "YOU HAVE BEEN WARNED!!!"
+}
+
+src_install() {
+ doconfd conf.d/*
+ doinitd init.d/*
+ dosbin net-setup
+ into /
+ dosbin livecd-functions.sh
+}
diff --git a/app-misc/livecd-tools/livecd-tools-2.0.4.ebuild b/app-misc/livecd-tools/livecd-tools-2.0.4.ebuild
new file mode 100644
index 000000000000..423aecf1ff18
--- /dev/null
+++ b/app-misc/livecd-tools/livecd-tools-2.0.4.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+if [[ ${PV} == "9999" ]]; then
+ EGIT_REPO_URI="git://anongit.gentoo.org/proj/livecd-tools.git"
+ inherit git-2
+else
+ SRC_URI="https://dev.gentoo.org/~zerochaos/distfiles/${P}.tar.xz"
+ KEYWORDS="alpha amd64 hppa ia64 ~mips ppc ppc64 sparc x86"
+fi
+
+inherit eutils
+
+DESCRIPTION="Gentoo LiveCD tools for autoconfiguration of hardware"
+HOMEPAGE="http://wolf31o2.org/projects/livecd-tools"
+
+SLOT="0"
+LICENSE="GPL-2"
+IUSE=""
+
+RDEPEND="dev-util/dialog
+ net-dialup/mingetty
+ >=sys-apps/baselayout-2
+ >=sys-apps/openrc-0.8.2-r1
+ sys-apps/pciutils
+ sys-apps/gawk
+ sys-apps/sed"
+
+pkg_setup() {
+ ewarn "This package is designed for use on the LiveCD only and will do"
+ ewarn "unspeakably horrible and unexpected things on a normal system."
+ ewarn "YOU HAVE BEEN WARNED!!!"
+}
+
+src_install() {
+ doconfd conf.d/*
+ doinitd init.d/*
+ dosbin net-setup
+ into /
+ dosbin livecd-functions.sh
+}
diff --git a/app-misc/livecd-tools/livecd-tools-9999.ebuild b/app-misc/livecd-tools/livecd-tools-9999.ebuild
new file mode 100644
index 000000000000..ebd8b9b8efc3
--- /dev/null
+++ b/app-misc/livecd-tools/livecd-tools-9999.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+if [[ ${PV} == "9999" ]]; then
+ EGIT_REPO_URI="git://anongit.gentoo.org/proj/livecd-tools.git"
+ inherit git-2
+else
+ SRC_URI="mirror://gentoo/${P}.tar.bz2"
+ KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
+fi
+
+inherit eutils
+
+DESCRIPTION="Gentoo LiveCD tools for autoconfiguration of hardware"
+HOMEPAGE="http://wolf31o2.org/projects/livecd-tools"
+
+SLOT="0"
+LICENSE="GPL-2"
+IUSE=""
+
+RDEPEND="dev-util/dialog
+ net-dialup/mingetty
+ >=sys-apps/baselayout-2
+ >=sys-apps/openrc-0.8.2-r1
+ sys-apps/pciutils
+ sys-apps/gawk
+ sys-apps/sed"
+
+pkg_setup() {
+ ewarn "This package is designed for use on the LiveCD only and will do"
+ ewarn "unspeakably horrible and unexpected things on a normal system."
+ ewarn "YOU HAVE BEEN WARNED!!!"
+}
+
+src_install() {
+ doconfd conf.d/*
+ doinitd init.d/*
+ dosbin net-setup
+ into /
+ dosbin livecd-functions.sh
+}
diff --git a/app-misc/livecd-tools/metadata.xml b/app-misc/livecd-tools/metadata.xml
new file mode 100644
index 000000000000..88653ddd7172
--- /dev/null
+++ b/app-misc/livecd-tools/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>livecd</herd>
+</pkgmetadata>
diff --git a/app-misc/lockfile-progs/Manifest b/app-misc/lockfile-progs/Manifest
new file mode 100644
index 000000000000..743f4f124011
--- /dev/null
+++ b/app-misc/lockfile-progs/Manifest
@@ -0,0 +1,2 @@
+DIST lockfile-progs_0.1.16.tar.gz 155901 SHA256 f95132d632687af971da830497f06257fa86aedbc4b76874456652f06a0a8a69 SHA512 374879dbfeb1f0e555a2fa0fa3ea77cbee0a70a492d52695b9b7bce284c0a8b7878978d64d6ec03d2cd6799f31a6a3e6bac7d00d857f90a08acda2e74ef6dee4 WHIRLPOOL 76b26ddf865db1fd83728958a453906860bc1a11e532aed0ad635c9ff887a9bca670314849f059c78319ce7c23176c9f17b662d629ce3574db0effb3f51c89b8
+DIST lockfile-progs_0.1.17.tar.gz 14833 SHA256 03fb05d25499532f497775b1747b61fa6beebf12d3bcc951e125349ae166c511 SHA512 9d912e1a518fe9c02054beb25c4591df6db55cc2fe9b7049fb85368465bd9ced9660bb0a809ee60a7effbdc6524613c40fa69d9d27fc2cfc964f41b7486c3596 WHIRLPOOL 7fc3febe9c495ba9aaefc8924f17c955c506169d00ea372ceae71e7e594478c1d15283b80dd6f8f9b27e82a86d9984b4a4aa96586316a4fb8dff5169072ed64f
diff --git a/app-misc/lockfile-progs/files/Makefile b/app-misc/lockfile-progs/files/Makefile
new file mode 100644
index 000000000000..27276b30f5da
--- /dev/null
+++ b/app-misc/lockfile-progs/files/Makefile
@@ -0,0 +1,55 @@
+all: lockfile-create
+
+lockfile-create: lockfile-progs.o
+ ${CC} -o $@ ${CFLAGS} ${LDFLAGS} $^ -llockfile
+
+install: all
+ install -d $(DESTDIR)/usr/bin
+
+ install --mode=755 lockfile-create $(DESTDIR)/usr/bin/lockfile-create
+ ln -s lockfile-create $(DESTDIR)/usr/bin/lockfile-remove
+ ln -s lockfile-create $(DESTDIR)/usr/bin/lockfile-touch
+ ln -s lockfile-create $(DESTDIR)/usr/bin/lockfile-check
+
+ install --mode=755 lockfile-create $(DESTDIR)/usr/bin/mail-lock
+ ln -s mail-lock $(DESTDIR)/usr/bin/mail-unlock
+ ln -s mail-unlock $(DESTDIR)/usr/bin/mail-touchlock
+
+ install -d $(DESTDIR)/usr/share/man/man1
+
+ install --mode=644 lockfile-progs.1 $(DESTDIR)/usr/share/man/man1
+ ln -s lockfile-progs.1 $(DESTDIR)/usr/share/man/man1/lockfile-create.1
+ ln -s lockfile-progs.1 $(DESTDIR)/usr/share/man/man1/lockfile-remove.1
+ ln -s lockfile-progs.1 $(DESTDIR)/usr/share/man/man1/lockfile-touch.1
+ ln -s lockfile-progs.1 $(DESTDIR)/usr/share/man/man1/lockfile-check.1
+
+ ln -s lockfile-progs.1 $(DESTDIR)/usr/share/man/man1/mail-lock.1
+ ln -s lockfile-progs.1 $(DESTDIR)/usr/share/man/man1/mail-unlock.1
+ ln -s lockfile-progs.1 $(DESTDIR)/usr/share/man/man1/mail-touchlock.1
+
+test: all
+ ln -s lockfile-create ./lockfile-remove
+ ln -s lockfile-create ./lockfile-touch
+ ln -s lockfile-create ./lockfile-check
+
+ ./lockfile-create testfile
+ ./lockfile-check testfile
+ ./lockfile-touch --oneshot testfile
+ ./lockfile-check testfile
+ ./lockfile-remove testfile
+ ! test -e testfile
+ ! ./lockfile-check testfile
+
+ ./lockfile-create --lock-name test.lock
+ ./lockfile-check --lock-name test.lock
+ ! ./lockfile-check test.lock
+ ! test -e test.lock.lock
+ ./lockfile-touch --oneshot --lock-name test.lock
+ ./lockfile-check --lock-name test.lock
+ ! ./lockfile-check test.lock
+ ./lockfile-remove --lock-name test.lock
+ ! test -e test.lock
+ ! ./lockfile-check --lock-name test.lock
+ ! ./lockfile-check test.lock
+
+.PHONY: install test
diff --git a/app-misc/lockfile-progs/lockfile-progs-0.1.16.ebuild b/app-misc/lockfile-progs/lockfile-progs-0.1.16.ebuild
new file mode 100644
index 000000000000..632604130367
--- /dev/null
+++ b/app-misc/lockfile-progs/lockfile-progs-0.1.16.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+DESCRIPTION="Programs to safely lock/unlock files and mailboxes"
+HOMEPAGE="http://packages.debian.org/sid/lockfile-progs"
+SRC_URI="mirror://debian/pool/main/l/${PN}/${PN}_${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 arm ~mips ppc s390 sh sparc x86"
+IUSE=""
+
+DEPEND="net-libs/liblockfile"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/main"
+
+src_prepare() {
+ # Provide better Makefile, with clear separation between compilation
+ # and installation.
+ cp "${FILESDIR}/Makefile" . || die
+}
diff --git a/app-misc/lockfile-progs/lockfile-progs-0.1.17.ebuild b/app-misc/lockfile-progs/lockfile-progs-0.1.17.ebuild
new file mode 100644
index 000000000000..4daf115a5902
--- /dev/null
+++ b/app-misc/lockfile-progs/lockfile-progs-0.1.17.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+inherit toolchain-funcs
+
+DESCRIPTION="Programs to safely lock/unlock files and mailboxes"
+HOMEPAGE="http://packages.debian.org/sid/lockfile-progs"
+SRC_URI="mirror://debian/pool/main/l/${PN}/${PN}_${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 arm ~mips ppc ~s390 ~sh sparc x86"
+IUSE=""
+
+DEPEND="net-libs/liblockfile"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ # Provide better Makefile, with clear separation between compilation
+ # and installation.
+ cp "${FILESDIR}/Makefile" . || die
+}
+
+src_compile() {
+ tc-export CC
+ default
+}
+
+src_install() {
+ # Makefile has no notion of PREFIX, bindir, and the like
+ emake DESTDIR="${ED}" install || die
+}
diff --git a/app-misc/lockfile-progs/metadata.xml b/app-misc/lockfile-progs/metadata.xml
new file mode 100644
index 000000000000..d047926ffe02
--- /dev/null
+++ b/app-misc/lockfile-progs/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>phajdan.jr@gentoo.org</email>
+ <name>Pawel Hajdan jr</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-misc/logitech-applet/Manifest b/app-misc/logitech-applet/Manifest
new file mode 100644
index 000000000000..ada7417327a4
--- /dev/null
+++ b/app-misc/logitech-applet/Manifest
@@ -0,0 +1 @@
+DIST logitech_applet-0.4test1.tar.gz 75783 SHA256 1858d58c63919431df05e629dc044a0b0b69a38034c7d533343759beb1ef405b SHA512 64389b365d9d3473bf3ec027c7d9ee34cbdcddf9abb6bfabf4e771a255dade80e6758b7a997da3eaf23c19f1bd4559e79fb199e9f62e0f2ad1af92eab4b23789 WHIRLPOOL 73aab1005e4c2b079736e5c710b19e6cfafbabe284b8d4b341042becd1f4937a37c9eec1db5ca39eed378f1a425a4902a535e64fa7098123a61151f36e62cd94
diff --git a/app-misc/logitech-applet/files/40-logitech_applet.rules b/app-misc/logitech-applet/files/40-logitech_applet.rules
new file mode 100644
index 000000000000..a51277c3ecb9
--- /dev/null
+++ b/app-misc/logitech-applet/files/40-logitech_applet.rules
@@ -0,0 +1,6 @@
+ACTION!="add", GOTO="logitech_applet_rules_end"
+SUBSYSTEM!="usb*", GOTO="logitech_applet_rules_end"
+
+ATTRS{manufacturer}=="Logitech", ATTRS{product}=="USB-PS/2 Optical Mouse", RUN+="/usr/sbin/logitech_applet -s 800"
+
+LABEL="logitech_applet_rules_end"
diff --git a/app-misc/logitech-applet/files/logitech-applet-0.4_pre1-mx300-mx518.patch b/app-misc/logitech-applet/files/logitech-applet-0.4_pre1-mx300-mx518.patch
new file mode 100644
index 000000000000..3e2e06536fcd
--- /dev/null
+++ b/app-misc/logitech-applet/files/logitech-applet-0.4_pre1-mx300-mx518.patch
@@ -0,0 +1,139 @@
+--- a/logitech_applet.c
++++ b/logitech_applet.c
+@@ -40,6 +40,44 @@
+ #endif
+
+ #define VENDOR_LOGITECH 0x046D
++#define HAS_RES 0x01 /* mouse supports variable resolution */
++#define HAS_SS 0x02 /* mouse supports smart scroll control */
++#define HAS_CSR 0x04 /* mouse supports cordless status reporting and control */
++#define HAS_SSR 0x08 /* mouse supports smart scroll reporting */
++#define USE_CH2 0x10 /* mouse needs to use the second channel */
++
++struct device_table {
++ int idVendor;
++ int idProduct;
++ char* Model;
++ char* Name;
++ int flags;
++}
++
++device_table[] = {
++ { VENDOR_LOGITECH, 0xC00E, "M-BJ58", "Wheel Mouse Optical", HAS_RES },
++ { VENDOR_LOGITECH, 0xC00F, "M-BJ79", "MouseMan Traveler", HAS_RES },
++ { VENDOR_LOGITECH, 0xC012, "M-BL63B", "MouseMan Dual Optical", HAS_RES },
++ { VENDOR_LOGITECH, 0xC01B, "M-BP86", "MX310 Optical Mouse", HAS_RES },
++ { VENDOR_LOGITECH, 0xC01D, "M-BS81A", "MX510 Optical Mouse", HAS_RES | HAS_SS | HAS_SSR },
++ { VENDOR_LOGITECH, 0xC01E, "M-BS81A", "MX518 Optical Mouse", HAS_RES },
++ { VENDOR_LOGITECH, 0xC01F, "M-BS82", "MX300 Optical Mouse", HAS_RES },
++ { VENDOR_LOGITECH, 0xC024, "M-BP82", "MX300 Optical Mouse", HAS_RES },
++ { VENDOR_LOGITECH, 0xC025, "M-BP81A", "MX500 Optical Mouse", HAS_RES | HAS_SS | HAS_SSR },
++ { VENDOR_LOGITECH, 0xC031, "M-UT58A", "iFeel Mouse (silver)", HAS_RES },
++ { VENDOR_LOGITECH, 0xC051, "M-BS81A", "MX518 Optical Mouse", HAS_RES },
++ { VENDOR_LOGITECH, 0xC501, "C-BA4-MSE", "Mouse Receiver", HAS_CSR },
++ { VENDOR_LOGITECH, 0xC502, "C-UA3-DUAL", "Dual Receiver", HAS_CSR | USE_CH2},
++ { VENDOR_LOGITECH, 0xC504, "C-BD9-DUAL", "Cordless Freedom Optical", HAS_CSR | USE_CH2 },
++ { VENDOR_LOGITECH, 0xC505, "C-BG17-DUAL", "Cordless Elite Duo", HAS_SS | HAS_SSR | HAS_CSR | USE_CH2},
++ { VENDOR_LOGITECH, 0xC506, "C-BF16-MSE", "MX700 Optical Mouse", HAS_SS | HAS_CSR },
++ { VENDOR_LOGITECH, 0xC508, "C-BA4-MSE", "Cordless Optical TrackMan", HAS_SS | HAS_CSR },
++ { VENDOR_LOGITECH, 0xC50B, "967300-0403", "Cordless MX Duo Receiver", HAS_SS|HAS_CSR },
++ { VENDOR_LOGITECH, 0xC50E, "M-RAG97", "MX1000 Laser Mouse", HAS_SS | HAS_CSR },
++ { VENDOR_LOGITECH, 0xC702, "C-UF15", "Receiver for Cordless Presenter", HAS_CSR },
++ { 0, 0, 0, 0, 0 }
++};
++
+
+ int get_resolution(struct usb_device *dev)
+ {
+@@ -141,7 +179,12 @@
+ return cruise;
+ }
+
+-/* resolution should be 0x03 for 400cpi, 0x04 for 800cpi */
++/* resolution should be:
++ * - 0x03 for 400cpi
++ * - 0x04 for 800cpi
++ * - 0x05 for 1200cpi
++ * - 0x06 for 1600cpi (actually 1800cpi on newer MX518)
++ */
+ int set_resolution(struct usb_device *dev, int resolution)
+ {
+ usb_dev_handle *usb_h;
+@@ -233,39 +276,6 @@
+ printf("Logitech Mouse Applet, Version %s\n", VERSION);
+ }
+
+-#define HAS_RES 0x01 /* mouse supports variable resolution */
+-#define HAS_SS 0x02 /* mouse supports smart scroll control */
+-#define HAS_CSR 0x04 /* mouse supports cordless status reporting and control */
+-#define HAS_SSR 0x08 /* mouse supports smart scroll reporting */
+-#define USE_CH2 0x10 /* mouse needs to use the second channel */
+-
+-struct device_table {
+- int idVendor;
+- int idProduct;
+- char* Model;
+- char* Name;
+- int flags;
+-} device_table[] = {
+- { VENDOR_LOGITECH, 0xC00E, "M-BJ58", "Wheel Mouse Optical", HAS_RES },
+- { VENDOR_LOGITECH, 0xC00F, "M-BJ79", "MouseMan Traveler", HAS_RES },
+- { VENDOR_LOGITECH, 0xC012, "M-BL63B", "MouseMan Dual Optical", HAS_RES },
+- { VENDOR_LOGITECH, 0xC01B, "M-BP86", "MX310 Optical Mouse", HAS_RES },
+- { VENDOR_LOGITECH, 0xC01D, "M-BS81A", "MX510 Optical Mouse", HAS_RES | HAS_SS | HAS_SSR },
+- { VENDOR_LOGITECH, 0xC024, "M-BP82", "MX300 Optical Mouse", HAS_RES },
+- { VENDOR_LOGITECH, 0xC025, "M-BP81A", "MX500 Optical Mouse", HAS_RES | HAS_SS | HAS_SSR },
+- { VENDOR_LOGITECH, 0xC031, "M-UT58A", "iFeel Mouse (silver)", HAS_RES },
+- { VENDOR_LOGITECH, 0xC501, "C-BA4-MSE", "Mouse Receiver", HAS_CSR },
+- { VENDOR_LOGITECH, 0xC502, "C-UA3-DUAL", "Dual Receiver", HAS_CSR | USE_CH2},
+- { VENDOR_LOGITECH, 0xC504, "C-BD9-DUAL", "Cordless Freedom Optical", HAS_CSR | USE_CH2 },
+- { VENDOR_LOGITECH, 0xC505, "C-BG17-DUAL", "Cordless Elite Duo", HAS_SS | HAS_SSR | HAS_CSR | USE_CH2},
+- { VENDOR_LOGITECH, 0xC506, "C-BF16-MSE", "MX700 Optical Mouse", HAS_SS | HAS_CSR },
+- { VENDOR_LOGITECH, 0xC508, "C-BA4-MSE", "Cordless Optical TrackMan", HAS_SS | HAS_CSR },
+- { VENDOR_LOGITECH, 0xC50B, "967300-0403", "Cordless MX Duo Receiver", HAS_SS|HAS_CSR },
+- { VENDOR_LOGITECH, 0xC50E, "M-RAG97", "MX1000 Laser Mouse", HAS_SS | HAS_CSR },
+- { VENDOR_LOGITECH, 0xC702, "C-UF15", "Receiver for Cordless Presenter", HAS_CSR },
+- { 0, 0, 0, 0, 0 }
+-};
+-
+ int main(int argc, char **argv)
+ {
+ struct usb_bus *bus;
+@@ -318,8 +328,12 @@
+ resolution = 400;
+ else if (!strcmp("800", optarg))
+ resolution = 800;
++ else if (!strcmp("1200", optarg))
++ resolution = 1200;
++ else if (!strcmp("1600", optarg))
++ resolution = 1600;
+ else
+- printf("Bad argument (should be 400 or 800)\n");
++ printf("Bad argument (should be 400, 800, 1200 or 1600)\n");
+ break;
+ case 'v':
+ version();
+@@ -363,14 +377,22 @@
+ break;
+ case 4: printf("800cpi\n");
+ break;
++ case 5: printf("1200cpi\n");
++ break;
++ case 6: printf("1600cpi\n");
++ break;
+ default: printf("(Unexpected result:%i)\n", resolution);
+ break;
+ }
+ } else {
+ if (400 == resolution)
+ set_resolution(dev, 0x03);
+- else
++ else if (800 == resolution)
+ set_resolution(dev, 0x04);
++ else if (1200 == resolution)
++ set_resolution(dev, 0x05);
++ else
++ set_resolution(dev, 0x06);
+ }
+ }
+
diff --git a/app-misc/logitech-applet/logitech-applet-0.4_pre1-r3.ebuild b/app-misc/logitech-applet/logitech-applet-0.4_pre1-r3.ebuild
new file mode 100644
index 000000000000..359c8068cf1f
--- /dev/null
+++ b/app-misc/logitech-applet/logitech-applet-0.4_pre1-r3.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils
+
+MY_P=${P/_pre/test}
+MY_P=${MY_P/-applet/_applet}
+
+DESCRIPTION="Control utility for some special features of some special Logitech USB mice!"
+HOMEPAGE="http://wiki.gentoo.org/wiki/No_homepage"
+SRC_URI="mirror://gentoo/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+
+DEPEND="virtual/libusb:0"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-mx300-mx518.patch
+}
+
+src_install() {
+ dosbin logitech_applet
+ dodoc AUTHORS ChangeLog README doc/article.txt
+
+ docinto examples
+ dodoc "${FILESDIR}"/40-logitech_applet.rules
+}
diff --git a/app-misc/logitech-applet/metadata.xml b/app-misc/logitech-applet/metadata.xml
new file mode 100644
index 000000000000..40838bc36783
--- /dev/null
+++ b/app-misc/logitech-applet/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>desktop-misc</herd>
+</pkgmetadata>
diff --git a/app-misc/logserial/Manifest b/app-misc/logserial/Manifest
new file mode 100644
index 000000000000..717f2f9ab953
--- /dev/null
+++ b/app-misc/logserial/Manifest
@@ -0,0 +1 @@
+DIST logserial-0.4.2.tar.gz 9697 SHA256 7647e16a884d3596844893234d8f0c7cc517441e2f8d592e11af427b8f0fbf9a SHA512 63784f5f3b84c1fbf85e0b5295ab33c427626562d880de3202b792ad354f93d645d4c2ddb7dc38d48ee25a15df51f1544aa0abea45fccef333553492ed86e9ad WHIRLPOOL e05f47b38830624c00c45006e076bdf13b42428217e7b8f8f41b6e5a71eafe6ec2ab579bd16b2e55d9973e26692e1047e896da3a0c8da47863290f081448ad73
diff --git a/app-misc/logserial/files/logserial-0.4.2-gentoo.patch b/app-misc/logserial/files/logserial-0.4.2-gentoo.patch
new file mode 100644
index 000000000000..dd594e34f76a
--- /dev/null
+++ b/app-misc/logserial/files/logserial-0.4.2-gentoo.patch
@@ -0,0 +1,30 @@
+diff -ur logserial-0.4.2.orig/Makefile logserial-0.4.2/Makefile
+--- logserial-0.4.2.orig/Makefile 2003-04-12 19:41:07.000000000 +0300
++++ logserial-0.4.2/Makefile 2009-07-21 19:39:18.000000000 +0300
+@@ -5,22 +5,20 @@
+ # FUNCTION:
+ # Makefile for logserial
+
+-CC=gcc
++CC ?= gcc
+
+ NAME=logserial
+ VERSION=0.4.2
+
+ OBJS= logserial.o sysdep1.o
+
+-OPTIMIZE= -O3 -m486 -Wall -D_POSIX -D_SYSV -D_SELECT -D_HAVE_MACROS
+-DEBUG_FLAGS= #-g
+-
+-CFLAGS= $(DEBUG_FLAGS) $(OPTIMIZE)
++CFLAGS += -Wall
++CPPFLAGS += -D_POSIX -D_SYSV -D_SELECT -D_HAVE_MACROS
+
+ all: $(NAME)
+
+ $(NAME): $(OBJS)
+- $(CC) $(CFLAGS) -o $(NAME) $(OBJS)
++ $(CC) $(LDFLAGS) $(CFLAGS) $(CPPFLAGS) -o $(NAME) $(OBJS)
+
+ $(NAME).o: $(NAME).c
+
diff --git a/app-misc/logserial/logserial-0.4.2.ebuild b/app-misc/logserial/logserial-0.4.2.ebuild
new file mode 100644
index 000000000000..9964c0359672
--- /dev/null
+++ b/app-misc/logserial/logserial-0.4.2.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=2
+inherit eutils toolchain-funcs
+
+DESCRIPTION="A tool for logging raw data from a serial device"
+HOMEPAGE="http://www.gtlib.cc.gatech.edu/pub/Linux/system/serial/logserial-0.4.2.lsm"
+SRC_URI="http://www.gtlib.cc.gatech.edu/pub/Linux/system/serial/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND=""
+DEPEND=""
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-gentoo.patch
+}
+
+src_compile() {
+ tc-export CC
+ emake || die "emake failed"
+}
+
+src_install() {
+ dobin logserial || die "dobin failed"
+ dodoc CHANGELOG README
+}
diff --git a/app-misc/logserial/metadata.xml b/app-misc/logserial/metadata.xml
new file mode 100644
index 000000000000..a8bc14fa4c0c
--- /dev/null
+++ b/app-misc/logserial/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>
+ <email>xmw@gentoo.org</email>
+ <name>Michael Weber</name>
+ </maintainer>
+ <longdescription lang="en">
+ Package for loging incoming bytes on asynchronous serial ports. It was
+ written for loging calls on our telephone central, but you can use it
+ for any devices connected to serial ports.
+ </longdescription>
+</pkgmetadata>
diff --git a/app-misc/lsx/Manifest b/app-misc/lsx/Manifest
new file mode 100644
index 000000000000..b9b532b2b000
--- /dev/null
+++ b/app-misc/lsx/Manifest
@@ -0,0 +1 @@
+DIST lsx-0.1.tar.gz 2130 SHA256 b30f8282f2de25bd59edb2dfdc033320539adf56199351a6b5d80e05965add94 SHA512 19f3fa4ecc22817332716d58d287ab7ea4b07bbed1d909b00931b272f1613d8aeb315435495d51a5f918f53e3f0ce68e964813cdbfefce0176924f3c75aa623a WHIRLPOOL 3a17d3a1b5856b69bc1b44fb7a5f145d11579fb52a862189d6f01d62d01a1a28b3a2b79f3648e7e74893da0393bd22781f7c375fa011046ca8ae4ce6548a99b3
diff --git a/app-misc/lsx/lsx-0.1.ebuild b/app-misc/lsx/lsx-0.1.ebuild
new file mode 100644
index 000000000000..73c4a8dd87b5
--- /dev/null
+++ b/app-misc/lsx/lsx-0.1.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit toolchain-funcs
+
+DESCRIPTION="list executables"
+HOMEPAGE="http://tools.suckless.org/lsx"
+SRC_URI="http://suckless.org/download/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ sed -i \
+ -e "s/.*strip.*//" \
+ Makefile || die "sed failed"
+
+ sed -i \
+ -e "s/CFLAGS = -Os/CFLAGS +=/" \
+ -e "s/LDFLAGS =/LDFLAGS +=/" \
+ config.mk || die "sed failed"
+}
+
+src_compile() {
+ emake CC=$(tc-getCC) || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" PREFIX="/usr" install || die "emake install failed"
+
+ # collision with net-dialup/lrzsz
+ mv "${D}/usr/bin/${PN}" "${D}/usr/bin/${PN}-suckless"
+
+ dodoc README
+}
+
+pkg_postinst() {
+ elog "Run ${PN} with ${PN}-suckless"
+}
diff --git a/app-misc/lsx/metadata.xml b/app-misc/lsx/metadata.xml
new file mode 100644
index 000000000000..c4cfedcdc836
--- /dev/null
+++ b/app-misc/lsx/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer>
+ <email>maintainer-needed@gentoo.org</email>
+</maintainer>
+<longdescription>Prints all executable file names of given absolute paths to standard output</longdescription>
+</pkgmetadata>
diff --git a/app-misc/ltunify/Manifest b/app-misc/ltunify/Manifest
new file mode 100644
index 000000000000..7e7a59bedda0
--- /dev/null
+++ b/app-misc/ltunify/Manifest
@@ -0,0 +1 @@
+DIST ltunify-0.2.tar.gz 28897 SHA256 cd55e6d47abc6c7266d5a4811fd43829233eadae7d35e5d4765bc52bb30e1f8a SHA512 e6eaf5c3ef555712219a3edd74d8d8edd3380908cd08dc5168a07111ddb7bf7d0e3d1a5eaf90f6e7ac9faf0474c31827ba0f9f511f170ab8900f0b90f65aa85a WHIRLPOOL 32626cb198e92db68556c6be15ae62c66699d7b5dda263b1823be256fa379d139262001e42e8e1fff38c3abe694fe3baea2bbf176bbac1ef20f4179b3dfc21a5
diff --git a/app-misc/ltunify/ltunify-0.2-r1.ebuild b/app-misc/ltunify/ltunify-0.2-r1.ebuild
new file mode 100644
index 000000000000..8026f2df13ff
--- /dev/null
+++ b/app-misc/ltunify/ltunify-0.2-r1.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit toolchain-funcs udev
+
+DESCRIPTION="Tool for working with Logitech Unifying receivers and devices"
+HOMEPAGE="https://lekensteyn.nl/logitech-unifying.html https://git.lekensteyn.nl/ltunify/"
+SRC_URI="https://git.lekensteyn.nl/${PN}/snapshot/${P}.tar.gz"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+src_prepare() {
+ sed -i '/^override CFLAGS/d' Makefile || die
+
+ # allow plugdev group r/w access
+ sed -i 's/^#MODE=/MODE=/' udev/42-logitech-unify-permissions.rules || die
+
+ tc-export CC
+}
+
+src_compile() {
+ emake ${PN}
+}
+
+src_install() {
+ dobin ${PN}
+ dodoc NEWS README.txt
+
+ # avoid file collision with solaar
+ udev_newrules udev/42-logitech-unify-permissions.rules 42-logitech-unify-${PN}.rules
+}
diff --git a/app-misc/ltunify/metadata.xml b/app-misc/ltunify/metadata.xml
new file mode 100644
index 000000000000..efa5eb0078f3
--- /dev/null
+++ b/app-misc/ltunify/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version = '1.0' encoding = 'UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>radhermit@gentoo.org</email>
+ <name>Tim Harder</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-misc/lxsplit/Manifest b/app-misc/lxsplit/Manifest
new file mode 100644
index 000000000000..f6f96353733b
--- /dev/null
+++ b/app-misc/lxsplit/Manifest
@@ -0,0 +1 @@
+DIST lxsplit-0.2.4.tar.gz 14663 SHA256 858fa939803b2eba97ccc5ec57011c4f4b613ff299abbdc51e2f921016845056 SHA512 2483010752177232801029b969a01a2702830c47e5d6a185784d9d945b792aecb778241d08d97cc0c02977afec02bf3f6a20e24da2fdbecad2dcef1de95b0575 WHIRLPOOL c3ca65e3ee588d753060ee31ed9bf25a682a0db7cced39d34724c7a65c4f4d0768cc8c21ca74c5ec1542990fb6c1a022a023d0c64377a782f7e57a460a133a23
diff --git a/app-misc/lxsplit/lxsplit-0.2.4.ebuild b/app-misc/lxsplit/lxsplit-0.2.4.ebuild
new file mode 100644
index 000000000000..d86a79cf75c8
--- /dev/null
+++ b/app-misc/lxsplit/lxsplit-0.2.4.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit toolchain-funcs
+
+DESCRIPTION="Command-line file splitter/joiner for Linux"
+HOMEPAGE="http://lxsplit.sourceforge.net"
+SRC_URI="mirror://sourceforge/lxsplit/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE=""
+
+src_compile() {
+ tc-export CC
+ emake CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" || die
+}
+
+src_install() {
+ dobin lxsplit || die
+ dodoc ChangeLog README || die
+}
diff --git a/app-misc/lxsplit/metadata.xml b/app-misc/lxsplit/metadata.xml
new file mode 100644
index 000000000000..25dad7549cd7
--- /dev/null
+++ b/app-misc/lxsplit/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>shell-tools</herd>
+ <upstream>
+ <remote-id type="sourceforge">lxsplit</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/magneto-loader/Manifest b/app-misc/magneto-loader/Manifest
new file mode 100644
index 000000000000..520d012e476c
--- /dev/null
+++ b/app-misc/magneto-loader/Manifest
@@ -0,0 +1 @@
+DIST entropy-254.tar.bz2 18516662 SHA256 5e411472eaf7016a68a4aa81ef92dd3aad8403fc65a0ffb09c57b91c959ca3a6 SHA512 3b3e82abad8008720e370b7892b7be1c48aaa6605914db977f68b9a108ada0a4adbaa5b7b50a9a02ba9c8b0bdefadcda1eceee2c7c2abc385b3daf669649e2da WHIRLPOOL 593469b858707e4ceca56146fa1d608141e44dda0a0921ed6a3ec566878c1e3c153410233f088d57db4f8bd9d1c796bd945cbea3ba455572efc05eca42023ce5
diff --git a/app-misc/magneto-loader/magneto-loader-254.ebuild b/app-misc/magneto-loader/magneto-loader-254.ebuild
new file mode 100644
index 000000000000..42f5b6b706e3
--- /dev/null
+++ b/app-misc/magneto-loader/magneto-loader-254.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit eutils python-single-r1
+
+DESCRIPTION="Official Sabayon Linux Entropy Notification Applet Loader"
+HOMEPAGE="http://www.sabayon.org"
+LICENSE="GPL-2"
+
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE=""
+
+SRC_URI="mirror://sabayon/sys-apps/entropy-${PV}.tar.bz2"
+S="${WORKDIR}/entropy-${PV}/magneto"
+
+DEPEND="${PYTHON_DEPS}
+ ~sys-apps/magneto-core-${PV}[${PYTHON_USEDEP}]
+ ~app-admin/rigo-${PV}[${PYTHON_USEDEP}]"
+RDEPEND="${DEPEND}"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+src_install() {
+ emake DESTDIR="${D}" LIBDIR="usr/lib" magneto-loader-install || die "make install failed"
+}
diff --git a/app-misc/magneto-loader/metadata.xml b/app-misc/magneto-loader/metadata.xml
new file mode 100644
index 000000000000..187f7a710efe
--- /dev/null
+++ b/app-misc/magneto-loader/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>
+ <email>lxnay@gentoo.org</email>
+ <name>Fabio Erculiani</name>
+ </maintainer>
+ <use>
+ </use>
+</pkgmetadata>
+
diff --git a/app-misc/matew/Manifest b/app-misc/matew/Manifest
new file mode 100644
index 000000000000..dd5ed13f3526
--- /dev/null
+++ b/app-misc/matew/Manifest
@@ -0,0 +1 @@
+DIST matew-1.9.tar.bz2 29690 SHA256 282d998d8562b8b11b217ff76ce2ef233038768312a6e9eb2c126e8bb42cac25 SHA512 3d4f37c16567cd93b7a699c4d5f01cd655b57b79aa865aed11cb8aab7afb6cc5dc2cba9aa59f72128efa179e08eb95b1226d068e3ae15aec063bb252d9fa77b9 WHIRLPOOL f56d2a1042c6aacb1c421d018740e77cd5c980fdfba22a08de8619f61624394040516026e133fb2b1119ac512f738340ea2332333e82253a9e2c70d6070150ad
diff --git a/app-misc/matew/matew-1.9.ebuild b/app-misc/matew/matew-1.9.ebuild
new file mode 100644
index 000000000000..326b2179771b
--- /dev/null
+++ b/app-misc/matew/matew-1.9.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+DESCRIPTION="Make Album The Easy Way (Matew) is an HTML/CSS generator for static image albums"
+HOMEPAGE="http://inquisb.github.io/matew/"
+SRC_URI="mirror://sourceforge/matew/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~ppc ~amd64"
+IUSE=""
+
+DEPEND=""
+RDEPEND="${DEPEND}
+ media-gfx/imagemagick
+ app-shells/bash
+ sys-apps/coreutils
+"
+
+src_install() {
+ dobin "${S}"/src/matew "${S}"/src/matew-cleanup "${S}"/src/matew-wizard
+ insinto /etc/matew/styles
+ doins "${S}"/src/styles/*
+ insinto /etc/matew/languages
+ doins "${S}"/src/languages/*
+ dodoc "${S}"/doc/AUTHOR "${S}"/doc/ChangeLog "${S}"/doc/README \
+ "${S}"/doc/THANKS "${S}"/doc/TODO
+ doman "${S}"/doc/man/matew.1.gz
+}
+
+pkg_postinst() {
+ elog "Matew files installed successfully!"
+ elog "Run matew-wizard and read instructions."
+}
diff --git a/app-misc/matew/metadata.xml b/app-misc/matew/metadata.xml
new file mode 100644
index 000000000000..ba7f23233247
--- /dev/null
+++ b/app-misc/matew/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>web-apps</herd>
+ <upstream>
+ <remote-id type="sourceforge">matew</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/mc/Manifest b/app-misc/mc/Manifest
new file mode 100644
index 000000000000..0e16dbf5ff25
--- /dev/null
+++ b/app-misc/mc/Manifest
@@ -0,0 +1,4 @@
+DIST mc-4.8.11.tar.xz 2211144 SHA256 1877ea844f9d71e133b9e03ca3bebcd7b10b9ba5b419b8d268e255816fe1993a SHA512 5afb9e0704b8c0e98cd4787f03baf40131a0ab40027103e42f44b2ebd5b6c33b8702d7f534ca8175f3b8efbb25a04f08f0f51a1eb3a1783a99e6117472344fbc WHIRLPOOL bbe6dbad549f45b9d4aab0985ce9a2c35e42017d2f2020972d27d8d43c66473c49fea8754fd6635195b72e6a531625a28327c0f2aa65f5e79cea0db0d54ea7e6
+DIST mc-4.8.12.tar.xz 2237892 SHA256 5f2fd570a798dc0cc06374adffef8ca403588c4e73dfdf908e9a4311718153fe SHA512 f482177fd2a457b75d96b953922f473ad669ae4d83910c0c3d5445dd459fff38c9abdc0b39e531b58692e00beb6cae2ca4858d79f55204105a62889784b1fbd3 WHIRLPOOL 79fa8fef9f1a076588093360a1f1b5f31ad6e88c2de285408c118492f9d1e9d37ab8d36d3d96b3dae29e3d547a5ecca601cf5ef0a49e7d3e6f5c81a8172536ba
+DIST mc-4.8.13.tar.xz 2231448 SHA256 36d6191a47ec5d89d3788e48846fb620c481816441ff25264add8898d277b657 SHA512 556047072cc1d22a911cfb3cc82b03d204881f2773e06a8fe2020ecfbd4ffa491e1c710ca2124b9f3b219cd73f2b732a4bfad1671f095c1768864704514b067f WHIRLPOOL 4224dea453e6d46aa0a783bcf1778dab5dc8eac090bae45a617145a8507e7c65b78dd7d7b0f50d2477a4002c62c75ce5304be59a20e84842042fe602318cccf4
+DIST mc-4.8.14.tar.xz 2305788 SHA256 6b1f74efbdf394bfab084f4d2ea2e72173de5f12cd42be2533ca2c3b72edb8e6 SHA512 656a15d117db9a831dcd6f59965a643199cf533d744db3bb6dfaba59854eb07213fa54a3aeb1878abb179d836b434d84490ba505e05c7d829b4ae2ac46e5e724 WHIRLPOOL 6a59dbb517960e39c52c4eaa04b295e17af97cc121ffd2f93f35ad42940dc870f39c3a8c2c310051807ef5649b11fab05e46567b1a635b4e0e192924bd0ae0aa
diff --git a/app-misc/mc/files/mc-4.8.11-ncurses_build_fix.patch b/app-misc/mc/files/mc-4.8.11-ncurses_build_fix.patch
new file mode 100644
index 000000000000..0d986eb59f83
--- /dev/null
+++ b/app-misc/mc/files/mc-4.8.11-ncurses_build_fix.patch
@@ -0,0 +1,38 @@
+Index: lib/tty/key.c
+===================================================================
+--- lib/tty/key.c (revision 0ed4a91d7df4e50512defd2e0734ecab7c9da07f)
++++ lib/tty/key.c (revision 21bf5d2dde704fd9ae90d991ce1279ba925897c9)
+@@ -1947,4 +1947,5 @@
+ {
+ int c;
++ static int flag = 0; /* Return value from select */
+ #ifdef HAVE_LIBGPM
+ static struct Gpm_Event ev; /* Mouse event */
+@@ -1979,5 +1980,4 @@
+ {
+ int nfd;
+- static int flag = 0; /* Return value from select */
+ fd_set select_set;
+
+Index: lib/tty/tty-ncurses.c
+===================================================================
+--- lib/tty/tty-ncurses.c (revision bb65b467900ea9eb1f7867c059fd26fac86c747c)
++++ lib/tty/tty-ncurses.c (revision 21bf5d2dde704fd9ae90d991ce1279ba925897c9)
+@@ -50,4 +50,5 @@
+ #include "tty.h"
+ #include "color-internal.h"
++#include "key.h"
+ #include "mouse.h"
+ #include "win.h"
+@@ -531,4 +532,5 @@
+ {
+ int res;
++ unsigned char str[UTF8_CHAR_LEN + 1];
+
+ res = g_unichar_to_utf8 (c, (char *) str);
+@@ -541,5 +543,4 @@
+ else
+ {
+- unsigned char str[UTF8_CHAR_LEN + 1];
+ const char *s;
+
diff --git a/app-misc/mc/files/mc-4.8.13-3297-prealloc.patch b/app-misc/mc/files/mc-4.8.13-3297-prealloc.patch
new file mode 100644
index 000000000000..d84c3484ceba
--- /dev/null
+++ b/app-misc/mc/files/mc-4.8.13-3297-prealloc.patch
@@ -0,0 +1,120 @@
+commit a3486faac37680e3bcf7d0b3905f745765a823fd
+Author: Andrew Borodin <aborodin@vmail.ru>
+Date: Mon Nov 10 10:32:34 2014 +0300
+
+ Ticket #3297: don't lose file in case of preallocate space fail.
+
+ Don't remove the destination file if it was retrieved incompletely
+ but it was already exist and appended during copy/move operation.
+
+ Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
+
+diff --git a/src/filemanager/file.c b/src/filemanager/file.c
+index 9fbf081..3009ccf 100644
+--- a/src/filemanager/file.c
++++ b/src/filemanager/file.c
+@@ -1497,7 +1497,6 @@ copy_file_file (file_op_total_context_t * tctx, file_op_context_t * ctx,
+ int open_flags;
+ gboolean is_first_time = TRUE;
+ vfs_path_t *src_vpath = NULL, *dst_vpath = NULL;
+- gboolean write_errno_nospace = FALSE;
+
+ /* FIXME: We should not be using global variables! */
+ ctx->do_reget = 0;
+@@ -1739,28 +1738,39 @@ copy_file_file (file_op_total_context_t * tctx, file_op_context_t * ctx,
+ goto ret;
+ }
+
+- while (TRUE)
++ /* try preallocate space; if fail, try copy anyway */
++ while (vfs_preallocate (dest_desc, file_size, ctx->do_append != 0 ? sb.st_size : 0) != 0)
+ {
+- errno = vfs_preallocate (dest_desc, file_size, (ctx->do_append != 0) ? sb.st_size : 0);
+- if (errno == 0)
++ if (ctx->skip_all)
++ {
++ /* cannot allocate, start the file copying anyway */
++ return_status = FILE_CONT;
+ break;
++ }
+
+- if (ctx->skip_all)
+- return_status = FILE_SKIPALL;
+- else
++ return_status =
++ file_error (_("Cannot preallocate space for target file \"%s\"\n%s"), dst_path);
++
++ if (return_status == FILE_SKIPALL)
++ ctx->skip_all = TRUE;
++
++ if (ctx->skip_all || return_status == FILE_SKIP)
+ {
+- return_status =
+- file_error (_("Cannot preallocate space for target file \"%s\"\n%s"), dst_path);
+- if (return_status == FILE_RETRY)
+- continue;
+- if (return_status == FILE_SKIPALL)
+- ctx->skip_all = TRUE;
++ /* skip the space allocation error, start file copying */
++ return_status = FILE_CONT;
++ break;
+ }
+- mc_close (dest_desc);
+- dest_desc = -1;
+- mc_unlink (dst_vpath);
+- dst_status = DEST_NONE;
+- goto ret;
++
++ if (return_status == FILE_ABORT)
++ {
++ mc_close (dest_desc);
++ dest_desc = -1;
++ mc_unlink (dst_vpath);
++ dst_status = DEST_NONE;
++ goto ret;
++ }
++
++ /* return_status == FILE_RETRY -- try allocate space again */
+ }
+
+ ctx->eta_secs = 0.0;
+@@ -1822,6 +1832,8 @@ copy_file_file (file_op_total_context_t * tctx, file_op_context_t * ctx,
+ /* dst_write */
+ while ((n_written = mc_write (dest_desc, t, n_read)) < n_read)
+ {
++ gboolean write_errno_nospace;
++
+ if (n_written > 0)
+ {
+ n_read -= n_written;
+@@ -1851,10 +1863,6 @@ copy_file_file (file_op_total_context_t * tctx, file_op_context_t * ctx,
+ }
+ if (return_status != FILE_RETRY)
+ goto ret;
+-
+- /* User pressed "Retry". Will the next mc_write() call be successful?
+- * Reset error flag to be ready for that. */
+- write_errno_nospace = FALSE;
+ }
+ }
+
+@@ -1933,16 +1941,9 @@ copy_file_file (file_op_total_context_t * tctx, file_op_context_t * ctx,
+
+ if (dst_status == DEST_SHORT)
+ {
+- /* Remove short file */
+- int result = 0;
+-
+- /* In case of copy/move to full partition, keep source file
+- * and remove incomplete destination one */
+- if (!write_errno_nospace)
+- result = query_dialog (Q_ ("DialogTitle|Copy"),
+- _("Incomplete file was retrieved. Keep it?"),
+- D_ERROR, 2, _("&Delete"), _("&Keep"));
+- if (result == 0)
++ /* Query to remove short file */
++ if (query_dialog (Q_ ("DialogTitle|Copy"), _("Incomplete file was retrieved. Keep it?"),
++ D_ERROR, 2, _("&Delete"), _("&Keep")) == 0)
+ mc_unlink (dst_vpath);
+ }
+ else if (dst_status == DEST_FULL)
diff --git a/app-misc/mc/files/mc-4.8.13-tinfo.patch b/app-misc/mc/files/mc-4.8.13-tinfo.patch
new file mode 100644
index 000000000000..761c103df654
--- /dev/null
+++ b/app-misc/mc/files/mc-4.8.13-tinfo.patch
@@ -0,0 +1,39 @@
+Gentoo-bug: https://bugs.gentoo.org/527118
+--- a/m4.include/mc-with-screen-ncurses.m4
++++ b/m4.include/mc-with-screen-ncurses.m4
+@@ -101,6 +101,9 @@
+ LIBS=
+ AC_SEARCH_LIBS([has_colors], [ncurses], [MCLIBS="$MCLIBS $LIBS"],
+ [AC_MSG_ERROR([Cannot find ncurses library])])
++ AC_SEARCH_LIBS([stdscr],[tinfo ncurses],[MCLIBS="$MCLIBS $LIBS"],
++ [AC_MSG_ERROR([Cannot find a library providing stdscr])])
++
+
+ screen_type=ncurses
+ screen_msg="Ncurses library"
+@@ -111,10 +114,15 @@
+ AC_SEARCH_LIBS([addwstr], [ncursesw ncurses curses], [MCLIBS="$MCLIBS $LIBS";ncursesw_found=yes],
+ [AC_MSG_WARN([Cannot find ncurses library, that support wide characters])])
+
++ AC_SEARCH_LIBS([stdscr],[tinfo ncursesw ncurses curses],[MCLIBS="$MCLIBS $LIBS"],
++ [AC_MSG_ERROR([Cannot find a library providing stdscr])])
++
+ if test x"$ncursesw_found" = "x"; then
+ LIBS=
+ AC_SEARCH_LIBS([has_colors], [ncurses curses], [MCLIBS="$MCLIBS $LIBS"],
+ [AC_MSG_ERROR([Cannot find ncurses library])])
++ AC_SEARCH_LIBS([stdscr],[tinfo ncurses curses],[MCLIBS="$MCLIBS $LIBS"],
++ [AC_MSG_ERROR([Cannot find a library providing stdscr])])
+ fi
+
+ dnl Check the header
+@@ -166,6 +174,9 @@
+ LIBS=
+ AC_SEARCH_LIBS([has_colors], [ncursesw], [MCLIBS="$MCLIBS $LIBS"],
+ [AC_MSG_ERROR([Cannot find ncursesw library])])
++ AC_SEARCH_LIBS([stdscr],[tinfow ncursesw],[MCLIBS="$MCLIBS $LIBS"],
++ [AC_MSG_ERROR([Cannot find a library providing stdscr])])
++
+
+ dnl Check the header
+ ncurses_h_found=
diff --git a/app-misc/mc/mc-4.8.11.ebuild b/app-misc/mc/mc-4.8.11.ebuild
new file mode 100644
index 000000000000..6b7bf3ce452a
--- /dev/null
+++ b/app-misc/mc/mc-4.8.11.ebuild
@@ -0,0 +1,99 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils flag-o-matic
+
+MY_P=${P/_/-}
+
+DESCRIPTION="GNU Midnight Commander is a text based file manager"
+HOMEPAGE="http://www.midnight-commander.org"
+SRC_URI="http://www.midnight-commander.org/downloads/${MY_P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x86-solaris"
+IUSE="+edit gpm mclib nls samba sftp +slang spell test X +xdg"
+
+REQUIRED_USE="spell? ( edit )"
+
+RDEPEND=">=dev-libs/glib-2.8:2
+ gpm? ( sys-libs/gpm )
+ kernel_linux? ( sys-fs/e2fsprogs )
+ samba? ( net-fs/samba )
+ sftp? ( net-libs/libssh2 )
+ slang? ( >=sys-libs/slang-2 )
+ !slang? ( sys-libs/ncurses )
+ spell? ( app-text/aspell )
+ X? ( x11-libs/libX11
+ x11-libs/libICE
+ x11-libs/libXau
+ x11-libs/libXdmcp
+ x11-libs/libSM )"
+DEPEND="${RDEPEND}
+ app-arch/xz-utils
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )
+ test? ( dev-libs/check )
+ "
+
+[[ -n ${LIVE_EBUILD} ]] && DEPEND="${DEPEND} dev-vcs/cvs" # needed only for SCM source tree (autopoint uses cvs)
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-ncurses_build_fix.patch
+
+ [[ -n ${LIVE_EBUILD} ]] && ./autogen.sh
+}
+
+S=${WORKDIR}/${MY_P}
+
+src_configure() {
+ local myscreen=ncurses
+ use slang && myscreen=slang
+ [[ ${CHOST} == *-solaris* ]] && append-ldflags "-lnsl -lsocket"
+
+ local homedir=".mc"
+ use xdg && homedir="XDG"
+
+ econf \
+ --disable-silent-rules \
+ --disable-dependency-tracking \
+ $(use_enable nls) \
+ --enable-vfs \
+ $(use_enable kernel_linux vfs-undelfs) \
+ --enable-charset \
+ $(use_with X x) \
+ $(use_enable samba vfs-smb) \
+ $(use_enable sftp vfs-sftp) \
+ $(use_enable spell aspell) \
+ $(use_with gpm gpm-mouse) \
+ --with-screen=${myscreen} \
+ $(use_with edit internal-edit) \
+ $(use_enable mclib) \
+ $(use_enable test tests) \
+ --with-homedir=${homedir}
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ dodoc AUTHORS README NEWS
+
+ # fix bug #334383
+ if use kernel_linux && [[ ${EUID} == 0 ]] ; then
+ fowners root:tty /usr/libexec/mc/cons.saver
+ fperms g+s /usr/libexec/mc/cons.saver
+ fi
+
+ if ! use xdg ; then
+ sed 's@MC_XDG_OPEN="xdg-open"@MC_XDG_OPEN="/bin/false"@' \
+ -i "${ED}"/usr/libexec/mc/ext.d/*.sh || die
+ fi
+}
+
+pkg_postinst() {
+ elog "To enable exiting to latest working directory,"
+ elog "put this into your ~/.bashrc:"
+ elog ". ${EPREFIX}/usr/libexec/mc/mc.sh"
+}
diff --git a/app-misc/mc/mc-4.8.12.ebuild b/app-misc/mc/mc-4.8.12.ebuild
new file mode 100644
index 000000000000..7074bfcd5334
--- /dev/null
+++ b/app-misc/mc/mc-4.8.12.ebuild
@@ -0,0 +1,97 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils flag-o-matic
+
+MY_P=${P/_/-}
+
+DESCRIPTION="GNU Midnight Commander is a text based file manager"
+HOMEPAGE="http://www.midnight-commander.org"
+SRC_URI="http://www.midnight-commander.org/downloads/${MY_P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x86-solaris"
+IUSE="+edit gpm mclib nls samba sftp +slang spell test X +xdg"
+
+REQUIRED_USE="spell? ( edit )"
+
+RDEPEND=">=dev-libs/glib-2.8:2
+ gpm? ( sys-libs/gpm )
+ kernel_linux? ( sys-fs/e2fsprogs )
+ samba? ( net-fs/samba )
+ sftp? ( net-libs/libssh2 )
+ slang? ( >=sys-libs/slang-2 )
+ !slang? ( sys-libs/ncurses )
+ spell? ( app-text/aspell )
+ X? ( x11-libs/libX11
+ x11-libs/libICE
+ x11-libs/libXau
+ x11-libs/libXdmcp
+ x11-libs/libSM )"
+DEPEND="${RDEPEND}
+ app-arch/xz-utils
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )
+ test? ( dev-libs/check )
+ "
+
+[[ -n ${LIVE_EBUILD} ]] && DEPEND="${DEPEND} dev-vcs/cvs" # needed only for SCM source tree (autopoint uses cvs)
+
+src_prepare() {
+ [[ -n ${LIVE_EBUILD} ]] && ./autogen.sh
+}
+
+S=${WORKDIR}/${MY_P}
+
+src_configure() {
+ local myscreen=ncurses
+ use slang && myscreen=slang
+ [[ ${CHOST} == *-solaris* ]] && append-ldflags "-lnsl -lsocket"
+
+ local homedir=".mc"
+ use xdg && homedir="XDG"
+
+ econf \
+ --disable-silent-rules \
+ --disable-dependency-tracking \
+ $(use_enable nls) \
+ --enable-vfs \
+ $(use_enable kernel_linux vfs-undelfs) \
+ --enable-charset \
+ $(use_with X x) \
+ $(use_enable samba vfs-smb) \
+ $(use_enable sftp vfs-sftp) \
+ $(use_enable spell aspell) \
+ $(use_with gpm gpm-mouse) \
+ --with-screen=${myscreen} \
+ $(use_with edit internal-edit) \
+ $(use_enable mclib) \
+ $(use_enable test tests) \
+ --with-homedir=${homedir}
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ dodoc AUTHORS README NEWS
+
+ # fix bug #334383
+ if use kernel_linux && [[ ${EUID} == 0 ]] ; then
+ fowners root:tty /usr/libexec/mc/cons.saver
+ fperms g+s /usr/libexec/mc/cons.saver
+ fi
+
+ if ! use xdg ; then
+ sed 's@MC_XDG_OPEN="xdg-open"@MC_XDG_OPEN="/bin/false"@' \
+ -i "${ED}"/usr/libexec/mc/ext.d/*.sh || die
+ fi
+}
+
+pkg_postinst() {
+ elog "To enable exiting to latest working directory,"
+ elog "put this into your ~/.bashrc:"
+ elog ". ${EPREFIX}/usr/libexec/mc/mc.sh"
+}
diff --git a/app-misc/mc/mc-4.8.13-r1.ebuild b/app-misc/mc/mc-4.8.13-r1.ebuild
new file mode 100644
index 000000000000..5e32124487df
--- /dev/null
+++ b/app-misc/mc/mc-4.8.13-r1.ebuild
@@ -0,0 +1,102 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit autotools eutils flag-o-matic
+
+MY_P=${P/_/-}
+
+DESCRIPTION="GNU Midnight Commander is a text based file manager"
+HOMEPAGE="http://www.midnight-commander.org"
+SRC_URI="http://www.midnight-commander.org/downloads/${MY_P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x86-solaris"
+IUSE="+edit gpm mclib nls samba sftp +slang spell test X +xdg"
+
+REQUIRED_USE="spell? ( edit )"
+
+RDEPEND=">=dev-libs/glib-2.8:2
+ gpm? ( sys-libs/gpm )
+ kernel_linux? ( sys-fs/e2fsprogs )
+ samba? ( net-fs/samba )
+ sftp? ( net-libs/libssh2 )
+ slang? ( >=sys-libs/slang-2 )
+ !slang? ( sys-libs/ncurses )
+ spell? ( app-text/aspell )
+ X? ( x11-libs/libX11
+ x11-libs/libICE
+ x11-libs/libXau
+ x11-libs/libXdmcp
+ x11-libs/libSM )"
+DEPEND="${RDEPEND}
+ app-arch/xz-utils
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )
+ test? ( dev-libs/check )
+ "
+
+[[ -n ${LIVE_EBUILD} ]] && DEPEND="${DEPEND} dev-vcs/cvs" # needed only for SCM source tree (autopoint uses cvs)
+
+src_prepare() {
+ [[ -n ${LIVE_EBUILD} ]] && ./autogen.sh
+
+ epatch "${FILESDIR}"/${P}-tinfo.patch
+ epatch "${FILESDIR}"/${P}-3297-prealloc.patch
+ epatch_user
+ eautoreconf
+}
+
+S=${WORKDIR}/${MY_P}
+
+src_configure() {
+ local myscreen=ncurses
+ use slang && myscreen=slang
+ [[ ${CHOST} == *-solaris* ]] && append-ldflags "-lnsl -lsocket"
+
+ local homedir=".mc"
+ use xdg && homedir="XDG"
+
+ econf \
+ --disable-silent-rules \
+ --disable-dependency-tracking \
+ $(use_enable nls) \
+ --enable-vfs \
+ $(use_enable kernel_linux vfs-undelfs) \
+ --enable-charset \
+ $(use_with X x) \
+ $(use_enable samba vfs-smb) \
+ $(use_enable sftp vfs-sftp) \
+ $(use_enable spell aspell) \
+ $(use_with gpm gpm-mouse) \
+ --with-screen=${myscreen} \
+ $(use_with edit internal-edit) \
+ $(use_enable mclib) \
+ $(use_enable test tests) \
+ --with-homedir=${homedir}
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ dodoc AUTHORS README NEWS
+
+ # fix bug #334383
+ if use kernel_linux && [[ ${EUID} == 0 ]] ; then
+ fowners root:tty /usr/libexec/mc/cons.saver
+ fperms g+s /usr/libexec/mc/cons.saver
+ fi
+
+ if ! use xdg ; then
+ sed 's@MC_XDG_OPEN="xdg-open"@MC_XDG_OPEN="/bin/false"@' \
+ -i "${ED}"/usr/libexec/mc/ext.d/*.sh || die
+ fi
+}
+
+pkg_postinst() {
+ elog "To enable exiting to latest working directory,"
+ elog "put this into your ~/.bashrc:"
+ elog ". ${EPREFIX}/usr/libexec/mc/mc.sh"
+}
diff --git a/app-misc/mc/mc-4.8.13.ebuild b/app-misc/mc/mc-4.8.13.ebuild
new file mode 100644
index 000000000000..e5c3d02b7366
--- /dev/null
+++ b/app-misc/mc/mc-4.8.13.ebuild
@@ -0,0 +1,100 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit autotools eutils flag-o-matic
+
+MY_P=${P/_/-}
+
+DESCRIPTION="GNU Midnight Commander is a text based file manager"
+HOMEPAGE="http://www.midnight-commander.org"
+SRC_URI="http://www.midnight-commander.org/downloads/${MY_P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x86-solaris"
+IUSE="+edit gpm mclib nls samba sftp +slang spell test X +xdg"
+
+REQUIRED_USE="spell? ( edit )"
+
+RDEPEND=">=dev-libs/glib-2.8:2
+ gpm? ( sys-libs/gpm )
+ kernel_linux? ( sys-fs/e2fsprogs )
+ samba? ( net-fs/samba )
+ sftp? ( net-libs/libssh2 )
+ slang? ( >=sys-libs/slang-2 )
+ !slang? ( sys-libs/ncurses )
+ spell? ( app-text/aspell )
+ X? ( x11-libs/libX11
+ x11-libs/libICE
+ x11-libs/libXau
+ x11-libs/libXdmcp
+ x11-libs/libSM )"
+DEPEND="${RDEPEND}
+ app-arch/xz-utils
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )
+ test? ( dev-libs/check )
+ "
+
+[[ -n ${LIVE_EBUILD} ]] && DEPEND="${DEPEND} dev-vcs/cvs" # needed only for SCM source tree (autopoint uses cvs)
+
+src_prepare() {
+ [[ -n ${LIVE_EBUILD} ]] && ./autogen.sh
+
+ epatch "${FILESDIR}"/${P}-tinfo.patch
+ eautoreconf
+}
+
+S=${WORKDIR}/${MY_P}
+
+src_configure() {
+ local myscreen=ncurses
+ use slang && myscreen=slang
+ [[ ${CHOST} == *-solaris* ]] && append-ldflags "-lnsl -lsocket"
+
+ local homedir=".mc"
+ use xdg && homedir="XDG"
+
+ econf \
+ --disable-silent-rules \
+ --disable-dependency-tracking \
+ $(use_enable nls) \
+ --enable-vfs \
+ $(use_enable kernel_linux vfs-undelfs) \
+ --enable-charset \
+ $(use_with X x) \
+ $(use_enable samba vfs-smb) \
+ $(use_enable sftp vfs-sftp) \
+ $(use_enable spell aspell) \
+ $(use_with gpm gpm-mouse) \
+ --with-screen=${myscreen} \
+ $(use_with edit internal-edit) \
+ $(use_enable mclib) \
+ $(use_enable test tests) \
+ --with-homedir=${homedir}
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ dodoc AUTHORS README NEWS
+
+ # fix bug #334383
+ if use kernel_linux && [[ ${EUID} == 0 ]] ; then
+ fowners root:tty /usr/libexec/mc/cons.saver
+ fperms g+s /usr/libexec/mc/cons.saver
+ fi
+
+ if ! use xdg ; then
+ sed 's@MC_XDG_OPEN="xdg-open"@MC_XDG_OPEN="/bin/false"@' \
+ -i "${ED}"/usr/libexec/mc/ext.d/*.sh || die
+ fi
+}
+
+pkg_postinst() {
+ elog "To enable exiting to latest working directory,"
+ elog "put this into your ~/.bashrc:"
+ elog ". ${EPREFIX}/usr/libexec/mc/mc.sh"
+}
diff --git a/app-misc/mc/mc-4.8.14.ebuild b/app-misc/mc/mc-4.8.14.ebuild
new file mode 100644
index 000000000000..cebc4816d00f
--- /dev/null
+++ b/app-misc/mc/mc-4.8.14.ebuild
@@ -0,0 +1,101 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit autotools eutils flag-o-matic
+
+MY_P=${P/_/-}
+
+DESCRIPTION="GNU Midnight Commander is a text based file manager"
+HOMEPAGE="http://www.midnight-commander.org"
+SRC_URI="http://www.midnight-commander.org/downloads/${MY_P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x86-solaris"
+IUSE="+edit gpm mclib nls samba sftp +slang spell test X +xdg"
+
+REQUIRED_USE="spell? ( edit )"
+
+RDEPEND=">=dev-libs/glib-2.8:2
+ gpm? ( sys-libs/gpm )
+ kernel_linux? ( sys-fs/e2fsprogs )
+ samba? ( net-fs/samba )
+ sftp? ( net-libs/libssh2 )
+ slang? ( >=sys-libs/slang-2 )
+ !slang? ( sys-libs/ncurses )
+ spell? ( app-text/aspell )
+ X? ( x11-libs/libX11
+ x11-libs/libICE
+ x11-libs/libXau
+ x11-libs/libXdmcp
+ x11-libs/libSM )"
+DEPEND="${RDEPEND}
+ app-arch/xz-utils
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )
+ test? ( dev-libs/check )
+ "
+
+[[ -n ${LIVE_EBUILD} ]] && DEPEND="${DEPEND} dev-vcs/cvs" # needed only for SCM source tree (autopoint uses cvs)
+
+src_prepare() {
+ [[ -n ${LIVE_EBUILD} ]] && ./autogen.sh
+
+ epatch "${FILESDIR}"/${PN}-4.8.13-tinfo.patch
+ epatch_user
+ eautoreconf
+}
+
+S=${WORKDIR}/${MY_P}
+
+src_configure() {
+ local myscreen=ncurses
+ use slang && myscreen=slang
+ [[ ${CHOST} == *-solaris* ]] && append-ldflags "-lnsl -lsocket"
+
+ local homedir=".mc"
+ use xdg && homedir="XDG"
+
+ econf \
+ --disable-silent-rules \
+ --disable-dependency-tracking \
+ $(use_enable nls) \
+ --enable-vfs \
+ $(use_enable kernel_linux vfs-undelfs) \
+ --enable-charset \
+ $(use_with X x) \
+ $(use_enable samba vfs-smb) \
+ $(use_enable sftp vfs-sftp) \
+ $(use_enable spell aspell) \
+ $(use_with gpm gpm-mouse) \
+ --with-screen=${myscreen} \
+ $(use_with edit internal-edit) \
+ $(use_enable mclib) \
+ $(use_enable test tests) \
+ --with-homedir=${homedir}
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ dodoc AUTHORS README NEWS
+
+ # fix bug #334383
+ if use kernel_linux && [[ ${EUID} == 0 ]] ; then
+ fowners root:tty /usr/libexec/mc/cons.saver
+ fperms g+s /usr/libexec/mc/cons.saver
+ fi
+
+ if ! use xdg ; then
+ sed 's@MC_XDG_OPEN="xdg-open"@MC_XDG_OPEN="/bin/false"@' \
+ -i "${ED}"/usr/libexec/mc/ext.d/*.sh || die
+ fi
+}
+
+pkg_postinst() {
+ elog "To enable exiting to latest working directory,"
+ elog "put this into your ~/.bashrc:"
+ elog ". ${EPREFIX}/usr/libexec/mc/mc.sh"
+}
diff --git a/app-misc/mc/mc-9999.ebuild b/app-misc/mc/mc-9999.ebuild
new file mode 100644
index 000000000000..2988f1b7027c
--- /dev/null
+++ b/app-misc/mc/mc-9999.ebuild
@@ -0,0 +1,108 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+if [[ ${PV} = *9999* ]]; then
+ EGIT_REPO_URI="git://github.com/MidnightCommander/mc.git http://github.com/MidnightCommander/mc.git git://midnight-commander.org/git/mc.git"
+ LIVE_ECLASSES="git-2 autotools"
+ LIVE_EBUILD=yes
+fi
+
+inherit eutils flag-o-matic ${LIVE_ECLASSES}
+
+MY_P=${P/_/-}
+
+if [[ -z ${LIVE_EBUILD} ]]; then
+ SRC_URI="http://www.midnight-commander.org/downloads/${MY_P}.tar.xz"
+ KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~x86-interix ~amd64-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x86-solaris"
+fi
+
+DESCRIPTION="GNU Midnight Commander is a text based file manager"
+HOMEPAGE="http://www.midnight-commander.org"
+
+LICENSE="GPL-3"
+SLOT="0"
+IUSE="+edit gpm mclib nls samba sftp +slang spell test X +xdg"
+
+REQUIRED_USE="spell? ( edit )"
+
+RDEPEND=">=dev-libs/glib-2.8:2
+ gpm? ( sys-libs/gpm )
+ kernel_linux? ( sys-fs/e2fsprogs )
+ samba? ( net-fs/samba )
+ sftp? ( net-libs/libssh2 )
+ slang? ( >=sys-libs/slang-2 )
+ !slang? ( sys-libs/ncurses )
+ spell? ( app-text/aspell )
+ X? ( x11-libs/libX11
+ x11-libs/libICE
+ x11-libs/libXau
+ x11-libs/libXdmcp
+ x11-libs/libSM )"
+DEPEND="${RDEPEND}
+ app-arch/xz-utils
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )
+ test? ( dev-libs/check )
+ "
+
+[[ -n ${LIVE_EBUILD} ]] && DEPEND="${DEPEND} dev-vcs/cvs" # needed only for SCM source tree (autopoint uses cvs)
+
+src_prepare() {
+ epatch_user
+
+ [[ -n ${LIVE_EBUILD} ]] && ./autogen.sh
+}
+
+S=${WORKDIR}/${MY_P}
+
+src_configure() {
+ local myscreen=ncurses
+ use slang && myscreen=slang
+ [[ ${CHOST} == *-solaris* ]] && append-ldflags "-lnsl -lsocket"
+
+ local homedir=".mc"
+ use xdg && homedir="XDG"
+
+ econf \
+ --disable-silent-rules \
+ --disable-dependency-tracking \
+ $(use_enable nls) \
+ --enable-vfs \
+ $(use_enable kernel_linux vfs-undelfs) \
+ --enable-charset \
+ $(use_with X x) \
+ $(use_enable samba vfs-smb) \
+ $(use_enable sftp vfs-sftp) \
+ $(use_enable spell aspell) \
+ $(use_with gpm gpm-mouse) \
+ --with-screen=${myscreen} \
+ $(use_with edit internal-edit) \
+ $(use_enable mclib) \
+ $(use_enable test tests) \
+ --with-homedir=${homedir}
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ dodoc AUTHORS doc/{FAQ,NEWS,README}
+
+ # fix bug #334383
+ if use kernel_linux && [[ ${EUID} == 0 ]] ; then
+ fowners root:tty /usr/libexec/mc/cons.saver
+ fperms g+s /usr/libexec/mc/cons.saver
+ fi
+
+ if ! use xdg ; then
+ sed 's@MC_XDG_OPEN="xdg-open"@MC_XDG_OPEN="/bin/false"@' \
+ -i "${ED}"/usr/libexec/mc/ext.d/*.sh || die
+ fi
+}
+
+pkg_postinst() {
+ elog "To enable exiting to latest working directory,"
+ elog "put this into your ~/.bashrc:"
+ elog ". ${EPREFIX}/usr/libexec/mc/mc.sh"
+}
diff --git a/app-misc/mc/metadata.xml b/app-misc/mc/metadata.xml
new file mode 100644
index 000000000000..2045d54a3048
--- /dev/null
+++ b/app-misc/mc/metadata.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>desktop-misc</herd>
+ <maintainer>
+ <email>wired@gentoo.org</email>
+ <name>Alex Alexander</name>
+ </maintainer>
+ <maintainer>
+ <email>slyfox@gentoo.org</email>
+ <name>Sergei Trofimovich</name>
+ </maintainer>
+ <maintainer>
+ <email>polynomial-c@gentoo.org</email>
+ <name>Lars Wendler</name>
+ </maintainer>
+ <use>
+ <flag name="edit">Compile and install the mcedit application</flag>
+ <flag name="mclib">Compile and install the libmc.so shared library</flag>
+ <flag name="sftp">Add support for sftp (uses <pkg>net-libs/libssh2</pkg> for it).</flag>
+ <flag name="slang">Use <pkg>sys-libs/slang</pkg> instead of <pkg>sys-libs/ncurses</pkg>.</flag>
+ <flag name="xdg">Toggles mc's config dir location. Enable for $XDG_CONFIG_HOME/mc, disable for $HOME/.mc</flag>
+ </use>
+</pkgmetadata>
diff --git a/app-misc/media-player-info/Manifest b/app-misc/media-player-info/Manifest
new file mode 100644
index 000000000000..55cf4010944b
--- /dev/null
+++ b/app-misc/media-player-info/Manifest
@@ -0,0 +1,2 @@
+DIST media-player-info-21.tar.gz 103224 SHA256 eae5a41d27715c9280128ff770a491dae2e73e2ebeef41630b069ad0d4795127 SHA512 d281984cd746984a4b618478d9fdc3249ad4f84c38d4c6486cbf9f50d44d1ca089d8950989e34157139560b97b0093befb34a7dc465121af37dc3cbf26f04bb5 WHIRLPOOL 18b32b6dabafbdc3697af7285b373bd87bd7f3f087d7344170e99428374d57e25efbaafdc703d4b587dd2addc29701afbf352282fe2f10ffb7b8fbe5589edf5a
+DIST media-player-info-22.tar.gz 104833 SHA256 7ee7d7712834860533c46b16947238ef5b5d72f394fa7fb52783a15fba7b2336 SHA512 7686aadb559b5a2cd2b969b9aadcf4c2b35037702e6fef4db66c6b8c0860d400c9f46a3b46150b9ce573d4f1fca53a5302fa7c1cdf888942a6489613c4d3c071 WHIRLPOOL 65994db840df66a9fa1b819fae743f3c14e50591b36fe2d56a6a92346746cb0db1b5f2822944b0e2caa35a198fcf56fbd2af4aee62cc85053e4b3134f41eb977
diff --git a/app-misc/media-player-info/files/media-player-info-21-udev.patch b/app-misc/media-player-info/files/media-player-info-21-udev.patch
new file mode 100644
index 000000000000..fd2fe4b28af3
--- /dev/null
+++ b/app-misc/media-player-info/files/media-player-info-21-udev.patch
@@ -0,0 +1,20 @@
+From 952a7e728356681f019f3a5076169daa24b946b9 Mon Sep 17 00:00:00 2001
+From: Martin Pitt <martinpitt@gnome.org>
+Date: Mon, 30 Sep 2013 12:07:49 +0000
+Subject: Terminate udev rules with an empty line
+
+Apparently newer udev versions now complain about the lack of it. Reported by
+Frederic Crozat.
+---
+diff --git a/tools/mpi2udev.py b/tools/mpi2udev.py
+index d33055b..33fdfa2 100755
+--- a/tools/mpi2udev.py
++++ b/tools/mpi2udev.py
+@@ -126,4 +126,4 @@ for f in sys.argv[2:]:
+ parse_mpi(f, hwdb)
+
+ # udev rules footer
+-os.write(sys.stdout.fileno(), b'\nLABEL="media_player_end"')
++os.write(sys.stdout.fileno(), b'\nLABEL="media_player_end"\n')
+--
+cgit v0.9.0.2-2-gbebe
diff --git a/app-misc/media-player-info/media-player-info-21-r1.ebuild b/app-misc/media-player-info/media-player-info-21-r1.ebuild
new file mode 100644
index 000000000000..5298d99fd1a1
--- /dev/null
+++ b/app-misc/media-player-info/media-player-info-21-r1.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python{3_3,3_4} )
+
+inherit eutils python-any-r1
+
+DESCRIPTION="A repository of data files describing media player capabilities"
+HOMEPAGE="http://cgit.freedesktop.org/media-player-info/"
+SRC_URI="http://www.freedesktop.org/software/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ppc ppc64 ~sh ~sparc x86"
+IUSE=""
+
+# http://cgit.freedesktop.org/media-player-info/commit/?id=d83dd01a0a1df6198ee08954da1c033b88a1004b
+RDEPEND=">=virtual/udev-208"
+DEPEND="${RDEPEND}
+ ${PYTHON_DEPS}
+ virtual/pkgconfig"
+
+DOCS="AUTHORS NEWS README"
+
+# This ebuild does not install any binaries
+RESTRICT="binchecks strip"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-udev.patch
+}
+
+pkg_postinst() {
+ # Run for /lib/udev/hwdb.d/20-usb-media-players.hwdb
+ udevadm hwdb --update --root="${ROOT%/}"
+ # http://cgit.freedesktop.org/systemd/systemd/commit/?id=1fab57c209035f7e66198343074e9cee06718bda
+ if [[ ${ROOT} != "" ]] && [[ ${ROOT} != "/" ]]; then
+ return 0
+ fi
+ udevadm control --reload
+}
diff --git a/app-misc/media-player-info/media-player-info-22.ebuild b/app-misc/media-player-info/media-player-info-22.ebuild
new file mode 100644
index 000000000000..57e5f6a8093f
--- /dev/null
+++ b/app-misc/media-player-info/media-player-info-22.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python{3_3,3_4} )
+
+inherit eutils python-any-r1
+
+DESCRIPTION="A repository of data files describing media player capabilities"
+HOMEPAGE="http://cgit.freedesktop.org/media-player-info/"
+SRC_URI="http://www.freedesktop.org/software/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86"
+IUSE=""
+
+# http://cgit.freedesktop.org/media-player-info/commit/?id=d83dd01a0a1df6198ee08954da1c033b88a1004b
+RDEPEND=">=virtual/udev-208"
+DEPEND="${RDEPEND}
+ ${PYTHON_DEPS}
+ virtual/pkgconfig
+"
+
+# This ebuild does not install any binaries
+RESTRICT="binchecks strip"
+
+pkg_postinst() {
+ # Run for /lib/udev/hwdb.d/20-usb-media-players.hwdb
+ udevadm hwdb --update --root="${ROOT%/}"
+ # http://cgit.freedesktop.org/systemd/systemd/commit/?id=1fab57c209035f7e66198343074e9cee06718bda
+ if [[ ${ROOT} != "" ]] && [[ ${ROOT} != "/" ]]; then
+ return 0
+ fi
+ udevadm control --reload
+}
diff --git a/app-misc/media-player-info/metadata.xml b/app-misc/media-player-info/metadata.xml
new file mode 100644
index 000000000000..941d094fcec5
--- /dev/null
+++ b/app-misc/media-player-info/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>freedesktop</herd>
+</pkgmetadata>
diff --git a/app-misc/mediacrush-cli/Manifest b/app-misc/mediacrush-cli/Manifest
new file mode 100644
index 000000000000..374ae634efe6
--- /dev/null
+++ b/app-misc/mediacrush-cli/Manifest
@@ -0,0 +1 @@
+DIST mediacrush-cli-1.1.2.tar.gz 3299 SHA256 eaa8f7f7999246bc5cb2fb356cfb35263009b5a0f386000488e638e81fb5a72a SHA512 fa4c905e75ffe1d16a83a6c3cc29dd2e28eb9097d1bc95742ece2356ab6e219c15c75bab7a09443c98b18e438d1e6690968d24c35eb7a3dd0877dff36574761c WHIRLPOOL 3614a7afacb6edcfd7c589f0bbe2769143c0a3638331d0b64c2e25f2d2b0fe89c32c1281e91da4ca315df3f8b9e15a47009e9bcb6d750721ec98345cdac4ed76
diff --git a/app-misc/mediacrush-cli/mediacrush-cli-1.1.2.ebuild b/app-misc/mediacrush-cli/mediacrush-cli-1.1.2.ebuild
new file mode 100644
index 000000000000..647c55768664
--- /dev/null
+++ b/app-misc/mediacrush-cli/mediacrush-cli-1.1.2.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+if [[ ${PV} == 9999 ]]; then
+ EGIT_REPO_URI="git://github.com/MediaCrush/MediaCrush-cli.git"
+ SRC_URI=""
+ KEYWORDS=""
+ inherit git-r3
+else
+ SRC_URI="https://github.com/MediaCrush/MediaCrush-cli/archive/${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+ S="${WORKDIR}/MediaCrush-cli-${PV}"
+fi
+
+DESCRIPTION="A bash script for working with MediaCrush from a shell"
+HOMEPAGE="https://github.com/MediaCrush/MediaCrush-cli"
+
+LICENSE="MIT"
+SLOT="0"
+IUSE=""
+
+DEPEND="
+ app-text/asciidoc
+"
+RDEPEND="
+ app-editors/vim-core
+ net-misc/curl
+ sys-apps/file
+ sys-apps/sed
+"
+
+src_compile() {
+ a2x --doctype manpage --format manpage mediacrush.1.txt
+}
+
+src_install() {
+ dobin mediacrush
+ doman mediacrush.1
+
+ if ! has_version x11-misc/xdg-utils; then
+ einfo "Install x11-misc/xdg-utils to enable '--open' argument"
+ fi
+}
diff --git a/app-misc/mediacrush-cli/mediacrush-cli-9999.ebuild b/app-misc/mediacrush-cli/mediacrush-cli-9999.ebuild
new file mode 100644
index 000000000000..4df6a7c4320b
--- /dev/null
+++ b/app-misc/mediacrush-cli/mediacrush-cli-9999.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+if [[ ${PV} == 9999 ]]; then
+ EGIT_REPO_URI="git://github.com/MediaCrush/MediaCrush-cli.git"
+ SRC_URI=""
+ KEYWORDS=""
+ inherit git-r3
+else
+ SRC_URI="https://github.com/MediaCrush/MediaCrush-cli/archive/${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+ S="${WORKDIR}/MediaCrush-cli-${PV}"
+fi
+
+DESCRIPTION="A bash script for working with MediaCrush from a shell"
+HOMEPAGE="https://github.com/MediaCrush/MediaCrush-cli"
+
+LICENSE="MIT"
+SLOT="0"
+IUSE=""
+
+DEPEND="
+ app-text/asciidoc
+"
+RDEPEND="
+ net-misc/curl
+ sys-apps/file
+ sys-apps/sed
+"
+
+src_compile() {
+ a2x --doctype manpage --format manpage mediacrush.1.txt
+}
+
+src_install() {
+ dobin mediacrush
+ doman mediacrush.1
+
+ if ! has_version x11-misc/xdg-utils; then
+ einfo "Install x11-misc/xdg-utils to enable '--open' argument"
+ fi
+}
diff --git a/app-misc/mediacrush-cli/metadata.xml b/app-misc/mediacrush-cli/metadata.xml
new file mode 100644
index 000000000000..0902c6843253
--- /dev/null
+++ b/app-misc/mediacrush-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>
+ <email>maksbotan@gentoo.org</email>
+ <name>Maxim Koltsov</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">MediaCrush/MediaCrush-cli</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/mencal/Manifest b/app-misc/mencal/Manifest
new file mode 100644
index 000000000000..e8af5a3c16bc
--- /dev/null
+++ b/app-misc/mencal/Manifest
@@ -0,0 +1 @@
+DIST mencal-2.3.tar.gz 19169 SHA256 cdab443a349572b811cfde7b194ad9ccb56989942b358d43b1a81047fa1a0f44 SHA512 1c65015aa62ad1572d0d2f49a40e5fd02762a82c729bcd09657087d9e20b0d7ad1a5d6bc9729f522cf35f0752193bf70614e4cf7ed06c5940b0c7dd4f2746ea4 WHIRLPOOL e9c27cb03a848b6e6478cf2b67e40e57084ad4a420a7e462f33df2b1d73bb89c8236f8dff0fa3fc5c85c423260969bccb6bd12cdeeaded3d700c32c25476ae3c
diff --git a/app-misc/mencal/mencal-2.3.ebuild b/app-misc/mencal/mencal-2.3.ebuild
new file mode 100644
index 000000000000..818fbf7c223f
--- /dev/null
+++ b/app-misc/mencal/mencal-2.3.ebuild
@@ -0,0 +1,19 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+DESCRIPTION="A calendar that can be used to track menstruation (or other) cycles conveniently"
+HOMEPAGE="http://www.kyberdigi.cz/projects/mencal/english.html"
+SRC_URI="http://www.kyberdigi.cz/projects/mencal/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~ppc sparc ~mips alpha ~hppa amd64 ia64 ~ppc64"
+IUSE=""
+
+DEPEND="dev-lang/perl"
+
+src_install() {
+ dobin mencal
+ dodoc README
+}
diff --git a/app-misc/mencal/metadata.xml b/app-misc/mencal/metadata.xml
new file mode 100644
index 000000000000..59e2b8f78cb5
--- /dev/null
+++ b/app-misc/mencal/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>maintainer-needed@gentoo.org</email>
+ <name>Default assignee for orphaned packages</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-misc/mepl/Manifest b/app-misc/mepl/Manifest
new file mode 100644
index 000000000000..bd802e36b55b
--- /dev/null
+++ b/app-misc/mepl/Manifest
@@ -0,0 +1 @@
+DIST mepl0.45.tar.gz 18968 SHA256 2a42634428ac6f54536ca40f05417babf5f27c7a2821b77a21d84cc1627ca62b SHA512 679ac7548f6a4870164410db403d9fb8a18d7daa651a29d8e0dd87d8d3fdf1f9e8d381513ab922188951eba0798b1d32eadceafa117236ff54ef3e645d876c1e WHIRLPOOL c1c49075c186ce5228664510df84909d356950d5aea9aa80777ea5285c3e06dd95a27d3000fbe63555ed4e772c151dc56902f4ea7b50581beb6afbd552d1ea31
diff --git a/app-misc/mepl/files/gcc433.patch b/app-misc/mepl/files/gcc433.patch
new file mode 100644
index 000000000000..821f1330e377
--- /dev/null
+++ b/app-misc/mepl/files/gcc433.patch
@@ -0,0 +1,16 @@
+--- mepl.c 2009-04-07 21:17:32.000000000 +0200
++++ mepl.c.new 2009-04-07 21:16:48.000000000 +0200
+@@ -1,3 +1,4 @@
++#include <stdlib.h>
+ #define VERSION "0.45 Don Nov 25 19:13:58 CET 1999"
+ /* Version: @(#) mepl.c 0.45
+ Autor: Frank Holtz <frank@hof-berlin.de>--- mepl.c 2009-04-07 21:08:18.000000000 +0200
+@@ -347,7 +347,7 @@
+ errz=0;
+ do {
+ error=0;
+- resout=open(resdat,O_WRONLY | O_TRUNC | O_CREAT); /* In Datei zwischenspeichern */
++ resout=open(resdat,O_WRONLY | O_TRUNC | O_CREAT,0600); /* In Datei zwischenspeichern */
+ sendstr(ATSENDMEM);
+ line[2]=0;
+ /* Erstes Zeichen suchen */
diff --git a/app-misc/mepl/mepl-0.45.ebuild b/app-misc/mepl/mepl-0.45.ebuild
new file mode 100644
index 000000000000..e1235218c0f1
--- /dev/null
+++ b/app-misc/mepl/mepl-0.45.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Self-employed-mode software for 3COM/USR message modems"
+HOMEPAGE="http://www.hof-berlin.de/mepl/"
+SRC_URI="http://www.hof-berlin.de/mepl/mepl${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc x86"
+IUSE=""
+
+DEPEND=""
+
+S=${WORKDIR}/${PN}${PV}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}/gcc433.patch"
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" CFLAGS="${CFLAGS} -DMEPLCONFIG=\\\"/etc/mepl.conf\\\"\
+ ${LDFLAGS}" en || die
+}
+
+src_install() {
+ dobin mepl meplmail || die
+ insinto /etc
+ doins mepl.conf
+ newman mepl.en mepl.7
+}
diff --git a/app-misc/mepl/metadata.xml b/app-misc/mepl/metadata.xml
new file mode 100644
index 000000000000..ff62877c67ae
--- /dev/null
+++ b/app-misc/mepl/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>
+ <email>maintainer-needed@gentoo.org</email>
+</maintainer>
+</pkgmetadata>
diff --git a/app-misc/metadata.xml b/app-misc/metadata.xml
new file mode 100644
index 000000000000..98bcf3dff285
--- /dev/null
+++ b/app-misc/metadata.xml
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE catmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<catmetadata>
+ <longdescription lang="en">
+ The app-misc category contains various miscellaneous application
+ packages which don't belong anywhere else.
+ </longdescription>
+ <longdescription lang="de">
+ Die Kategorie app-misc enthält verschiedenste Applikationen welche
+ keiner anderen Kategorie zugeordnet werden konnten.
+ </longdescription>
+ <longdescription lang="nl">
+ De app-misc categorie bevat applicaties die niet in een specifieke
+ categorie geplaatst konden worden.
+ </longdescription>
+ <longdescription lang="vi">
+ Nhóm app-misc chứa các ứng dụng linh tinh, không thuộc
+ về nhóm nào cả.
+ </longdescription>
+ <longdescription lang="it">
+ La cateogria app-misc contiene varie applicazioni che non ricadono nelle altre categorie.
+ </longdescription>
+ <longdescription lang="pt">
+ A categoria app-misc contém vários pacotes de aplicações mistas
+ que não pertencem a outros lugares.
+ </longdescription>
+ <longdescription lang="pl">
+ Kategoria app-misc zawiera wiele rozmaitych programów, które nie
+ pasowały do żadnej innej kategorii.
+ </longdescription>
+ <longdescription lang="es">
+ La categoría app-misc contiene varios paquetes de aplicaciones
+ misceláneas que no pertenecen a ninguna otra categoría.
+ </longdescription>
+</catmetadata>
+
diff --git a/app-misc/metromap/Manifest b/app-misc/metromap/Manifest
new file mode 100644
index 000000000000..71f1fc7dbc17
--- /dev/null
+++ b/app-misc/metromap/Manifest
@@ -0,0 +1 @@
+DIST metromap-0.1.4.tar.bz2 3419243 SHA256 7fc3b7dd92443ace8944429895c27b2d9bc6444d1eef973b5608cdba72b38fba SHA512 16407c9c8f2d3f608e9188e40b38d20530f552254dbe0c59d7c94ed913b8cb61deae23ffc6180d17fee0d98091c269f24eb04e624dedbb37cc6ece85b46e93ec WHIRLPOOL 5acd843dfa35b87b804c4e879253843f60c4c6df4e0d1dfa5975006b3d9cfe2d58a418f2255b88ab35f1052eeb6a929ba6b00ba1ae75b51d8129021051ee2516
diff --git a/app-misc/metromap/metadata.xml b/app-misc/metromap/metadata.xml
new file mode 100644
index 000000000000..496cc906a4cf
--- /dev/null
+++ b/app-misc/metromap/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>proxy-maintainers</herd>
+ <maintainer>
+ <email>nikoli@gmx.us</email>
+ <name>Nikoli</name>
+ </maintainer>
+ <maintainer>
+ <email>maksbotan@gentoo.org</email>
+ <name>Maxim Koltsov</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-misc/metromap/metromap-0.1.4-r1.ebuild b/app-misc/metromap/metromap-0.1.4-r1.ebuild
new file mode 100644
index 000000000000..3f80b469ec59
--- /dev/null
+++ b/app-misc/metromap/metromap-0.1.4-r1.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit python-single-r1 gnome2-utils
+
+DESCRIPTION="Metromap is simple pygtk+2 programm for finding paths in metro(subway) maps"
+HOMEPAGE="http://metromap.antex.ru/"
+SRC_URI="http://metromap.antex.ru/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}
+ dev-python/pygobject:2[${PYTHON_USEDEP}]
+ >=dev-python/pygtk-2.8:2[${PYTHON_USEDEP}]
+"
+DEPEND="${RDEPEND}
+ sys-devel/gettext
+"
+
+src_prepare() {
+ python_fix_shebang .
+ sed -e 's,Gtk;,GTK;,' -i metromap.desktop || die
+}
+
+src_compile() { :; }
+
+src_install() {
+ emake DESTDIR="${ED}"/usr install
+ python_optimize "${ED}"/usr/share/metromap/modules/
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/app-misc/mime-types/Manifest b/app-misc/mime-types/Manifest
new file mode 100644
index 000000000000..c147d58c6b5a
--- /dev/null
+++ b/app-misc/mime-types/Manifest
@@ -0,0 +1 @@
+DIST mime-types-9.tar.bz2 15524 SHA256 b4638a734f121be30a546ed092aec16bf74e9b88ed7921fba89cf7e2c0462b5e SHA512 066cea30c02a326e64680422b31aff0849c0a8c7486738f2edf339b88426c6ac5a365d4fa4c80c84df0fa4c39b5e13d45db314a1bf47ce369c132dd1c46130d6 WHIRLPOOL 61c7fe4879caf0d732f2667f784955d40f6645e257fcca0a29180dc4462437a864fd8ea55bf37be94ac2bb572a6c8e906494c57d6c8275938d52defc0b766cde
diff --git a/app-misc/mime-types/metadata.xml b/app-misc/mime-types/metadata.xml
new file mode 100644
index 000000000000..f93bc00f409c
--- /dev/null
+++ b/app-misc/mime-types/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>net-mail</herd>
+<maintainer>
+ <email>djc@gentoo.org</email>
+ <name>Dirkjan Ochtman</name>
+</maintainer>
+</pkgmetadata>
diff --git a/app-misc/mime-types/mime-types-9.ebuild b/app-misc/mime-types/mime-types-9.ebuild
new file mode 100644
index 000000000000..da2076de2269
--- /dev/null
+++ b/app-misc/mime-types/mime-types-9.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+DESCRIPTION="Provides /etc/mime.types file"
+HOMEPAGE="http://www.gentoo.org/"
+SRC_URI="mirror://gentoo/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+src_install() {
+ insinto /etc
+ doins mime.types || die
+}
diff --git a/app-misc/misterhouse/Manifest b/app-misc/misterhouse/Manifest
new file mode 100644
index 000000000000..7880aed61968
--- /dev/null
+++ b/app-misc/misterhouse/Manifest
@@ -0,0 +1,2 @@
+DIST misterhouse-2.103.tar.gz 7417915 SHA256 e96c09e61486036f36cf0ffd9837a82e5edc5d0681c8652f80edf085702f7780 SHA512 41fa6d2220345df1b01bebed2d9803911f970eea9f98418e7df08537b3e1c563c0996b831276115c30a2f760e92d0df29b0053a2bfc117299f4caae9c7456870 WHIRLPOOL 2fc2269707e0d8e5f21d77b3f66643c11f579c73622e6f81936f966cab4ee5a912361df31f4ceeff81a715bbbcaccc5e9ceaaba5a2cc5ddd5e1e0c9a780a8785
+DIST misterhouse-2.105.tar.gz 8647595 SHA256 f2c8100a4c1f1c050a66310d6ddc8bf8a0d6fa7396829683877fc9b431739cbf SHA512 305601d953b2f7de1e8cb95a76b24aedb1615e3b874e2f999854172c9bec3da2ec13e0777cd0a4c15b6d92daffb34df761ae28bca4147e7435b280e00da3c14c WHIRLPOOL ebd12a5980cefc30610530d4d133aa07508daa045032e45117c59f6b3e41ae090416d4c513c1352ce8fa95789dc1614711ae203315c2db846fa7b064140e6840
diff --git a/app-misc/misterhouse/files/misterhouse.conf b/app-misc/misterhouse/files/misterhouse.conf
new file mode 100644
index 000000000000..6b6abbaeb63b
--- /dev/null
+++ b/app-misc/misterhouse/files/misterhouse.conf
@@ -0,0 +1,12 @@
+# Config file for /etc/init.d/misterhouse
+
+# NOTICE: This stub file can contains any overrides to the default
+# mh.ini. Anything not listed in here will be pulled from the main
+# mh.ini file.
+
+
+# Disable launching the tk gui - this is being run from init.d after all :)
+tk=0
+
+# Override the pid file location
+pid_file=/var/run/misterhouse.pid
diff --git a/app-misc/misterhouse/files/misterhouse.init b/app-misc/misterhouse/files/misterhouse.init
new file mode 100755
index 000000000000..bd3d72b39548
--- /dev/null
+++ b/app-misc/misterhouse/files/misterhouse.init
@@ -0,0 +1,18 @@
+#!/sbin/runscript
+
+depend() {
+ need clock hostname net
+}
+
+start() {
+ export mh_parms="/etc/conf.d/misterhouse"
+ ebegin "Starting misterhouse"
+ start-stop-daemon --start --background --exec /opt/misterhouse/bin/mh -- -log_file="/var/log/misterhouse.log"
+ eend $? "Failed to start misterhouse"
+}
+
+stop() {
+ ebegin "Stopping misterhouse"
+ start-stop-daemon --stop --quiet --pidfile /var/run/misterhouse.pid
+ eend $? "Failed to stop misterhouse"
+}
diff --git a/app-misc/misterhouse/metadata.xml b/app-misc/misterhouse/metadata.xml
new file mode 100644
index 000000000000..dd245b1d22bf
--- /dev/null
+++ b/app-misc/misterhouse/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>
+ <email>maintainer-needed@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">misterhouse</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/misterhouse/misterhouse-2.103.ebuild b/app-misc/misterhouse/misterhouse-2.103.ebuild
new file mode 100644
index 000000000000..6015f56bb58b
--- /dev/null
+++ b/app-misc/misterhouse/misterhouse-2.103.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+DESCRIPTION="Mister House, an open source home automation program with X10 support"
+HOMEPAGE="http://misterhouse.sf.net/"
+LICENSE="GPL-1"
+SRC_URI="mirror://sourceforge/misterhouse/${P}.tar.gz"
+
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="tk mysql"
+
+QA_PREBUILT="opt/misterhouse/bin/viavoice_server"
+
+RDEPEND="dev-lang/perl
+ tk? ( dev-perl/perl-tk
+ dev-perl/Tk-CursorControl )
+ mysql? ( dev-perl/DBD-mysql )
+ || ( app-accessibility/festival
+ app-accessibility/flite )
+ dev-perl/GD
+ virtual/perl-DB_File
+ dev-perl/TermReadKey
+ virtual/perl-Time-HiRes
+ dev-perl/Audio-Mixer
+ dev-perl/Text-LevenshteinXS"
+
+src_install() {
+ dodir /opt/misterhouse
+
+ cp -r "${S}/bin" "${D}/opt/misterhouse"
+ cp -r "${S}/code" "${D}/opt/misterhouse"
+ cp -r "${S}/data" "${D}/opt/misterhouse"
+ for a in "${S}"/docs/*; do
+ dodoc ${a}
+ done
+ dosym /usr/share/doc/${PF} /opt/misterhouse/docs
+ cp -r "${S}/lib" "${D}/opt/misterhouse"
+ cp -r "${S}/sounds" "${D}/opt/misterhouse"
+ cp -r "${S}/web" "${D}/opt/misterhouse"
+ newconfd "${FILESDIR}"/misterhouse.conf misterhouse
+ newinitd "${FILESDIR}"/misterhouse.init misterhouse
+
+}
+
+pkg_postinst() {
+ cd /opt/misterhouse/bin
+ ./configure
+}
diff --git a/app-misc/misterhouse/misterhouse-2.105.ebuild b/app-misc/misterhouse/misterhouse-2.105.ebuild
new file mode 100644
index 000000000000..985312320572
--- /dev/null
+++ b/app-misc/misterhouse/misterhouse-2.105.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+DESCRIPTION="Mister House, an open source home automation program with X10 support"
+HOMEPAGE="http://misterhouse.sf.net/"
+LICENSE="GPL-1"
+SRC_URI="mirror://sourceforge/misterhouse/${P}.tar.gz"
+
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="tk mysql"
+
+S="${WORKDIR}/mh"
+
+RDEPEND="dev-lang/perl
+ tk? ( dev-perl/perl-tk
+ dev-perl/Tk-CursorControl )
+ mysql? ( dev-perl/DBD-mysql )
+ || ( app-accessibility/festival
+ app-accessibility/flite )
+ dev-perl/GD
+ virtual/perl-DB_File
+ dev-perl/TermReadKey
+ virtual/perl-Time-HiRes
+ dev-perl/Audio-Mixer
+ dev-perl/Text-LevenshteinXS"
+
+src_install() {
+ dodir /opt/misterhouse
+
+ cp -r "${S}/bin" "${D}/opt/misterhouse" || die
+ cp -r "${S}/code" "${D}/opt/misterhouse" || die
+ cp -r "${S}/data" "${D}/opt/misterhouse" || die
+ for a in "${S}"/docs/*; do
+ dodoc ${a} || die
+ done
+ dosym /usr/share/doc/${PF} /opt/misterhouse/docs
+ cp -r "${S}/lib" "${D}/opt/misterhouse" || die
+ cp -r "${S}/sounds" "${D}/opt/misterhouse" || die
+ cp -r "${S}/web" "${D}/opt/misterhouse" || die
+ newconfd "${FILESDIR}"/misterhouse.conf misterhouse
+ newinitd "${FILESDIR}"/misterhouse.init misterhouse
+
+}
+
+pkg_postinst() {
+ cd /opt/misterhouse/bin
+ ./configure
+}
diff --git a/app-misc/mmv/Manifest b/app-misc/mmv/Manifest
new file mode 100644
index 000000000000..94adcdd0ada8
--- /dev/null
+++ b/app-misc/mmv/Manifest
@@ -0,0 +1,3 @@
+DIST mmv_1.01b-15.diff.gz 10613 SHA256 9ad3e3d47510f816b4a18bae04ea75913588eec92248182f85dd09bc5ad2df13 SHA512 965db30f8981a973c93dec14348c451604fe37fbd5576d5eb0e38de8cef21e5b6c9a3560e46725b6beaac2d9722cb9a874f7eb2b5e9d9cdf22e67eb367991550 WHIRLPOOL 4374d053e65c05747509b4a3759b3330e45504b8325ae60f6e70ed67317e5a6383adf334f73e05f2a1ef89b884452169e5a437d583ef402bb4001ee544034210
+DIST mmv_1.01b-18.debian.tar.gz 13463 SHA256 4af5c83cacb27c7720bf65cac9a4f6c1fe698474a716e2df0fbad9181e6844e7 SHA512 3543aff53c67cab00689d4c8b778447c976a7860a569bd51f74534bec8bd3b67b9e12743bd03bc6fda930748abddd12e16f1965686cbce04bd48bf191fc4127b WHIRLPOOL 57dd2ebb1d075f9479d0466cc39f4cf3ebe3e8457b96a56a0f5d1b63c6ada01ec281fcf5e79220e07256aa1edfb046d8ddf75df8ab6c1ac25ff67074c0760ed2
+DIST mmv_1.01b.orig.tar.gz 25656 SHA256 0399c027ea1e51fd607266c1e33573866d4db89f64a74be8b4a1d2d1ff1fdeef SHA512 4bf4e096b930bdde225ba5de761e968af3aed33dc13194b1a1a79078cd27e158b04aae131b5167cf5f844e35355d67359443cd598db22da15a5af06752438917 WHIRLPOOL 318484c12416174535ba6e77929798418943ae521e339a7f68b1b7a488b4058cbe88de019e07b705879597ef04d6c325c15d2869b224827dca6d9519c8772aa5
diff --git a/app-misc/mmv/metadata.xml b/app-misc/mmv/metadata.xml
new file mode 100644
index 000000000000..40149c995561
--- /dev/null
+++ b/app-misc/mmv/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>shell-tools</herd>
+</pkgmetadata>
diff --git a/app-misc/mmv/mmv-1.01b_p15.ebuild b/app-misc/mmv/mmv-1.01b_p15.ebuild
new file mode 100644
index 000000000000..ec7fa57ddfe9
--- /dev/null
+++ b/app-misc/mmv/mmv-1.01b_p15.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="3"
+
+inherit eutils flag-o-matic toolchain-funcs
+
+DEB_PATCH_VER=${PV#*_p}
+MY_VER=${PV%_p*}
+
+DESCRIPTION="Move/copy/append/link multiple files according to a set of wildcard patterns"
+HOMEPAGE="http://packages.debian.org/unstable/utils/mmv"
+SRC_URI="
+ mirror://debian/pool/main/m/mmv/${PN}_${MY_VER}.orig.tar.gz
+ mirror://debian/pool/main/m/mmv/${PN}_${MY_VER}-${DEB_PATCH_VER}.diff.gz"
+
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="~alpha amd64 ppc x86 ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
+IUSE=""
+
+S="${WORKDIR}"/${PN}-${MY_VER}.orig
+
+src_prepare() {
+ epatch "${DISTDIR}"/${PN}_${MY_VER}-${DEB_PATCH_VER}.diff.gz
+}
+
+src_compile() {
+ # i wonder how this works on other platforms if CFLAGS from makefile are
+ # overridden, see bug #218082
+ [[ ${CHOST} == *-interix* ]] && append-flags -DIS_SYSV -DHAS_RENAME -DHAS_DIRENT
+ [[ ${CHOST} == *-interix* ]] || append-lfs-flags
+
+ emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" || die
+}
+
+src_install() {
+ dobin mmv || die
+ dosym mmv /usr/bin/mcp || die
+ dosym mmv /usr/bin/mln || die
+ dosym mmv /usr/bin/mad || die
+
+ doman mmv.1 || die
+ newman mmv.1 mcp.1 || die
+ newman mmv.1 mln.1 || die
+ newman mmv.1 mad.1 || die
+
+ dodoc ANNOUNCE debian/{changelog,control} || die
+}
diff --git a/app-misc/mmv/mmv-1.01b_p18.ebuild b/app-misc/mmv/mmv-1.01b_p18.ebuild
new file mode 100644
index 000000000000..582fa4e005f8
--- /dev/null
+++ b/app-misc/mmv/mmv-1.01b_p18.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils flag-o-matic toolchain-funcs
+
+DEB_PATCH_VER=${PV#*_p}
+MY_VER=${PV%_p*}
+
+DESCRIPTION="Move/copy/append/link multiple files according to a set of wildcard patterns"
+HOMEPAGE="http://packages.debian.org/unstable/utils/mmv"
+SRC_URI="
+ mirror://debian/pool/main/m/mmv/${PN}_${MY_VER}.orig.tar.gz
+ mirror://debian/pool/main/m/mmv/${PN}_${MY_VER}-${DEB_PATCH_VER}.debian.tar.gz"
+
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="~alpha amd64 ~ppc x86 ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
+IUSE=""
+
+S="${WORKDIR}"/${PN}-${MY_VER}.orig
+
+src_prepare() {
+ epatch "${WORKDIR}"/debian/patches/*.diff
+}
+
+src_compile() {
+ # i wonder how this works on other platforms if CFLAGS from makefile are
+ # overridden, see bug #218082
+ [[ ${CHOST} == *-interix* ]] && append-flags -DIS_SYSV -DHAS_RENAME -DHAS_DIRENT
+ [[ ${CHOST} == *-interix* ]] || append-lfs-flags
+
+ emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
+}
+
+src_install() {
+ dobin mmv
+ dosym mmv /usr/bin/mcp
+ dosym mmv /usr/bin/mln
+ dosym mmv /usr/bin/mad
+
+ doman mmv.1
+ newman mmv.1 mcp.1
+ newman mmv.1 mln.1
+ newman mmv.1 mad.1
+
+ dodoc ANNOUNCE "${WORKDIR}"/debian/{changelog,control}
+}
diff --git a/app-misc/mouseremote/Manifest b/app-misc/mouseremote/Manifest
new file mode 100644
index 000000000000..f14c2450ca99
--- /dev/null
+++ b/app-misc/mouseremote/Manifest
@@ -0,0 +1 @@
+DIST MouseRemote.tar.gz 41752 SHA256 cde90093c11d7d5b398d2ff9448a7c67bfc3bfa26d71802dff2de715f179b50f SHA512 d92ec4a1efda7e63cc02283b2aabcd6b42bedba17539371856e6ca3b6b5feaf9c306604db9a781836375afb6da226c16b8031f5f749d367857c2cde28e097483 WHIRLPOOL 43f66bad05a2e8f64cc384e7e4d9fcc9eb53bbc19b215713fd0ff5b8f71095d933e80dafd02393c1f5a99f688edab5f2051355246e2d5a938200fe2c49c30d6b
diff --git a/app-misc/mouseremote/files/mouseremote-0.90-makefile.diff b/app-misc/mouseremote/files/mouseremote-0.90-makefile.diff
new file mode 100644
index 000000000000..6f0354903011
--- /dev/null
+++ b/app-misc/mouseremote/files/mouseremote-0.90-makefile.diff
@@ -0,0 +1,20 @@
+--- MultiMouse/Makefile 1997-08-21 08:52:56.000000000 -0400
++++ MultiMouse/Makefile.new 2010-08-13 00:05:47.000000000 -0400
+@@ -20,14 +20,13 @@
+ -DMOUSE_FIFO=\"$(FIFO)\"\
+ -DLOCKDIR=\"$(LOCKDIR)\"\
+ -DMAX_MICE=$(MICE)
+-CFLAGS= $(OPTS)\
+- -O2 # -DDEBUG
+-LDLAGS= -O2
++
++OUTPUT_OPTION= $(OPTS) -o $@
+
+ all: $(TARGET)
+
+ multimoused: $(OBJS)
+- $(CC) -o $@ $(OBJS)
++ $(CC) $(LDFLAGS) -o $@ $(OBJS)
+
+ multimouse.1 multimoused.8 multimouse: Makefile
+ sed -e 's|%LOCKDIR%|$(LOCKDIR)|' -e 's|%BINDIR%|$(BINDIR)|'\
diff --git a/app-misc/mouseremote/files/mouseremote-gentoo-0.90-r1.diff b/app-misc/mouseremote/files/mouseremote-gentoo-0.90-r1.diff
new file mode 100644
index 000000000000..d86902e37ed5
--- /dev/null
+++ b/app-misc/mouseremote/files/mouseremote-gentoo-0.90-r1.diff
@@ -0,0 +1,66 @@
+diff -Naur MouseRemote.ORG/client/MouseRemote.conf MouseRemote/client/MouseRemote.conf
+--- MouseRemote.ORG/client/MouseRemote.conf Sat Oct 9 21:03:42 1999
++++ MouseRemote/client/MouseRemote.conf Sat May 4 16:04:43 2002
+@@ -61,3 +61,35 @@
+
+ # Definitions for the DVD device
+ [DVD]
++Power
++ChUp
++ChDown
++Mute
++VolUp
++VolDown
++Play
++Stop
++TxtRes
++Rew
++FF
++0
++1
++2
++3
++4
++5
++6
++7
++8
++9
++Ent
++Pause
++Last
++Disp
++AB
++Shift
++Guide
++Select
++TxtOff
++TxtTrns
++Rec
+diff -Naur MouseRemote.ORG/client/MouseRemoteKeys.pl MouseRemote/client/MouseRemoteKeys.pl
+--- MouseRemote.ORG/client/MouseRemoteKeys.pl Sun Oct 10 00:09:42 1999
++++ MouseRemote/client/MouseRemoteKeys.pl Sat May 4 15:58:58 2002
+@@ -11,6 +11,7 @@
+ play => 0x0d,
+ stop => 0x0e,
+ power => 0x0f,
++ txtres => 0x1b,
+ rew => 0x1c,
+ ff => 0x1d,
+ 0 => 0x40,
+@@ -31,11 +32,13 @@
+ 'shift' => 0x6b,
+ guide => 0x6d,
+ 'select' => 0x93,
++ txtoff => 0x9b,
++ txttrns => 0xeb,
+ rec => 0xff,
+
+ pc => 0x2b,
+- phone => 0x4b,
++ phone => 0x4b, # Marked as F2 on my model
+ web => 0x8b,
+ cd => 0xab,
+- dvd => 0xcb,
++ dvd => 0xcb, # Marked as F1 on my model
+ );
diff --git a/app-misc/mouseremote/files/mouseremote-gentoo.diff b/app-misc/mouseremote/files/mouseremote-gentoo.diff
new file mode 100644
index 000000000000..5c0963859078
--- /dev/null
+++ b/app-misc/mouseremote/files/mouseremote-gentoo.diff
@@ -0,0 +1,82 @@
+diff -Naur MouseRemote.ORG/MultiMouse/Makefile MouseRemote/MultiMouse/Makefile
+--- MouseRemote.ORG/MultiMouse/Makefile Thu Aug 21 14:52:56 1997
++++ MouseRemote/MultiMouse/Makefile Sat May 4 15:49:16 2002
+@@ -20,10 +20,10 @@
+ -DMOUSE_FIFO=\"$(FIFO)\"\
+ -DLOCKDIR=\"$(LOCKDIR)\"\
+ -DMAX_MICE=$(MICE)
+-CFLAGS= $(OPTS)\
+- -O2 # -DDEBUG
+ LDLAGS= -O2
+
++OUTPUT_OPTION= $(OPTS) -o $@
++
+ all: $(TARGET)
+
+ multimoused: $(OBJS)
+diff -Naur MouseRemote.ORG/client/MouseRemote.conf MouseRemote/client/MouseRemote.conf
+--- MouseRemote.ORG/client/MouseRemote.conf Sat Oct 9 21:03:42 1999
++++ MouseRemote/client/MouseRemote.conf Sat May 4 16:04:43 2002
+@@ -61,3 +61,35 @@
+
+ # Definitions for the DVD device
+ [DVD]
++Power
++ChUp
++ChDown
++Mute
++VolUp
++VolDown
++Play
++Stop
++TxtRes
++Rew
++FF
++0
++1
++2
++3
++4
++5
++6
++7
++8
++9
++Ent
++Pause
++Last
++Disp
++AB
++Shift
++Guide
++Select
++TxtOff
++TxtTrns
++Rec
+diff -Naur MouseRemote.ORG/client/MouseRemoteKeys.pl MouseRemote/client/MouseRemoteKeys.pl
+--- MouseRemote.ORG/client/MouseRemoteKeys.pl Sun Oct 10 00:09:42 1999
++++ MouseRemote/client/MouseRemoteKeys.pl Sat May 4 15:58:58 2002
+@@ -11,6 +11,7 @@
+ play => 0x0d,
+ stop => 0x0e,
+ power => 0x0f,
++ txtres => 0x1b,
+ rew => 0x1c,
+ ff => 0x1d,
+ 0 => 0x40,
+@@ -31,11 +32,13 @@
+ 'shift' => 0x6b,
+ guide => 0x6d,
+ 'select' => 0x93,
++ txtoff => 0x9b,
++ txttrns => 0xeb,
+ rec => 0xff,
+
+ pc => 0x2b,
+- phone => 0x4b,
++ phone => 0x4b, # Marked as F2 on my model
+ web => 0x8b,
+ cd => 0xab,
+- dvd => 0xcb,
++ dvd => 0xcb, # Marked as F1 on my model
+ );
diff --git a/app-misc/mouseremote/files/mouseremote.conf b/app-misc/mouseremote/files/mouseremote.conf
new file mode 100644
index 000000000000..60057c9ef75a
--- /dev/null
+++ b/app-misc/mouseremote/files/mouseremote.conf
@@ -0,0 +1,14 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+# Config file for /etc/init.d/mouseremote
+
+# Configure the type of mouseremote you have and the device it is connected to
+
+# If your device is attached to the regular psaux port then set DRV to X10
+# If your device is attached to a serial port then set DRV to SX10
+#DRV=SX10
+
+# Set this to the port on which your mouseremote is attached
+#DEV=/dev/ttyS1
diff --git a/app-misc/mouseremote/files/mouseremote.start b/app-misc/mouseremote/files/mouseremote.start
new file mode 100644
index 000000000000..e804e750cc56
--- /dev/null
+++ b/app-misc/mouseremote/files/mouseremote.start
@@ -0,0 +1,29 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+depend() {
+ use modules logger
+ before xdm
+}
+
+checkconfig() {
+ [ -z "$DEV" ] || [ -z "$DRV" ] || return 0
+ eerror "You need to setup DEV and DRV in /etc/conf.d/mouseremote first"
+ return 1
+}
+
+start() {
+ checkconfig || return 1
+
+ ebegin "Starting X10 MouseRemote Server"
+ /usr/sbin/multimoused -${DRV} ${DEV} 2> /dev/null
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping X10 MouseRemote Server"
+ kill $(cat /var/lock/MultiMouse.pid)
+ eend ${?} "Failed to stop MouseRemote Server"
+}
diff --git a/app-misc/mouseremote/metadata.xml b/app-misc/mouseremote/metadata.xml
new file mode 100644
index 000000000000..a40624fba8f0
--- /dev/null
+++ b/app-misc/mouseremote/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>
+ <email>maintainer-needed@gentoo.org</email>
+</maintainer>
+</pkgmetadata>
diff --git a/app-misc/mouseremote/mouseremote-0.90-r1.ebuild b/app-misc/mouseremote/mouseremote-0.90-r1.ebuild
new file mode 100644
index 000000000000..7f96710f6294
--- /dev/null
+++ b/app-misc/mouseremote/mouseremote-0.90-r1.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit eutils
+
+S="${WORKDIR}/MouseRemote"
+DESCRIPTION="X10 MouseRemote"
+HOMEPAGE="http://www4.pair.com/gribnif/ha/"
+SRC_URI="http://www4.pair.com/gribnif/ha/MouseRemote.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="amd64 ~ppc x86"
+IUSE=""
+
+DEPEND="virtual/perl-Time-HiRes"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}"/${P}-makefile.diff
+ epatch "${FILESDIR}"/${PN}-gentoo-${PVR}.diff
+}
+
+src_compile() {
+ cd MultiMouse && emake \
+ CC=$(tc-getCC) \
+ PREFIX=/usr \
+ LOCKDIR=/var/lock \
+ JMANDIR=/usr/share/man/ja_JP.ujis || die
+}
+
+src_install() {
+ dobin MultiMouse/multimouse || die
+ dosbin MultiMouse/multimoused || die
+
+ dodoc README MultiMouse/README.jis MultiMouse/README.newstuff || die
+ newdoc MultiMouse/README README.MultiMouse || die
+ newdoc client/MouseRemote.conf MouseRemote.conf.dist || die
+ newdoc client/MouseRemote.pl MouseRemote.pl.dist || die
+ newdoc client/MouseRemoteKeys.pl MouseRemoteKeys.pl.dist || die
+
+ newinitd "${FILESDIR}"/mouseremote.start mouseremote || die
+ newconfd "${FILESDIR}"/mouseremote.conf mouseremote || die
+}
+
+pkg_postinst() {
+ [ -e /dev/mumse ] || mkfifo "${ROOT}"/dev/mumse
+ [ -e /dev/x10fifo ] || mkfifo "${ROOT}"/dev/x10fifo
+
+ elog "To use the mouse function in X, add the following to your XF86Config"
+ elog "Section \"InputDevice\""
+ elog " Identifier \"MouseREM\""
+ elog " Driver \"mouse\""
+ elog " Option \"Protocol\" \"MouseSystems\""
+ elog " Option \"Device\" \"/dev/mumse\""
+ elog "EndSection"
+ elog
+ elog "Don't forget to add the new device to the section \"ServerLayout\""
+ elog "like: InputDevice \"MouseREM\" \"SendCoreEvents\""
+ elog
+ elog "Enable the daemon with \"rc-update add mouseremote default\"."
+ elog
+ elog "Configure the daemon is run in /etc/conf.d/mouseremote."
+ elog
+ elog "See /usr/share/doc/${PF} on how to configure the buttons."
+}
diff --git a/app-misc/mtail/Manifest b/app-misc/mtail/Manifest
new file mode 100644
index 000000000000..9e6efceede34
--- /dev/null
+++ b/app-misc/mtail/Manifest
@@ -0,0 +1,2 @@
+DIST mtail-1.1.1.tgz 9124 SHA256 1c82feb4ced3dc861497d4adc27a4d62d7002112bcfa24d1655348dda79bf3ab SHA512 987816ce5d12996192c881be1ac5a28c3457757e981ab35e657fb226c3980a22091c9fc85f68c13eb1c01939e08e492814b6a03c9b1f4f4bc1878c4f13ec8a0e WHIRLPOOL 2fbcbd3f3ab76dbbd801c898b8a9a32c636c02d69ddfcc505e280f7fcbb0aaa8e8f7f6c6f6fbdf05a753b460a086af573d25d5ba991ce3002d8047c9e69b5552
+DIST mtailrc-syslog.sample 1785 SHA256 3ec8e4fb26d138aab3e445d33adef5180db2a45eb65a942432c4c170840a3682 SHA512 d6bbaafa7c599f443c788697087ebef69a8e279b0715fa4e5b770531cbd254a646014fa98e5e5d444c48d23974201d36a856b34507a91e1b6abbb423f7015c75 WHIRLPOOL 40a6cf32c13aa86145570828e3cfbf2e6253ecdffc8103f86237286f170338e97aaf7087f6d3d25c6ffbbf3eb1afd1d41aa94a5266f8cd9181be756bbbe1b108
diff --git a/app-misc/mtail/files/mtail-1.1.1-remove-blanks.patch b/app-misc/mtail/files/mtail-1.1.1-remove-blanks.patch
new file mode 100644
index 000000000000..9645e263deda
--- /dev/null
+++ b/app-misc/mtail/files/mtail-1.1.1-remove-blanks.patch
@@ -0,0 +1,52 @@
+--- mtail.orig 2003-11-07 19:02:34.000000000 +0000
++++ mtail 2003-11-07 19:19:18.000000000 +0000
+@@ -46,6 +46,7 @@
+ verbose = 0
+ silent = 0
+ active = 0
++remove_blanks = 0
+
+ # sets up the interrupt handler, calls processargs(), sets up and starts the
+ # tailers.
+@@ -119,6 +120,8 @@
+ if line[len(line)-1] == '\n':
+ line = line[:len(line)-1]
+ line = filter(line)
++ if remove_blanks and not line:
++ continue
+ lock.acquire()
+ try:
+ if (multiple or verbose) and (not silent) \
+@@ -138,12 +141,14 @@
+ global verbose
+ global silent
+ global config_file
++ global remove_blanks
+ filenames = []
+ lines = None
+ follow = 0
+ try:
+ opts, pargs = getopt.getopt(sys.argv[1:], 'fn:?hvq', ["follow",
+- "lines=", "help", "verbose", "quiet", "silent", "config="])
++ "lines=", "help", "verbose", "quiet", "silent", "config=",
++ "remove-blanks"])
+ except getopt.error:
+ print 'unrecognized option!'
+ print
+@@ -163,6 +168,8 @@
+ silent = 1
+ elif opt[0] in ['--config']:
+ config_file = opt[1]
++ elif opt[0] in ['--remove-blanks']:
++ remove_blanks = 1
+ if lines == None:
+ lines = 10
+ for filename in pargs:
+@@ -186,6 +193,7 @@
+ print ' -v, --verbose always output headers giving file names'
+ print ' -q, --quiet, --silent never output headers giving file names'
+ print ' --config=FILE use config file FILE instead of ~/.mtailrc'
++ print ' --remove-blanks do not display blank lines'
+ print
+ print 'with more than one filename, mtail will precede each chunk from'
+ print 'each with a header giving the file name. if no filenames are given'
diff --git a/app-misc/mtail/metadata.xml b/app-misc/mtail/metadata.xml
new file mode 100644
index 000000000000..36a21bace4d6
--- /dev/null
+++ b/app-misc/mtail/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>shell-tools</herd>
+ <longdescription lang="en">
+ mtail is a small tail workalike that performs output coloring using
+ ansi escape sequences (although the sequences are overridable, so you
+ could cause it to output something else, e.g. html font tags, if you
+ really wanted to). mtail is written in python, is fairly small, and
+ should be relatively platform-independent.
+ </longdescription>
+</pkgmetadata>
diff --git a/app-misc/mtail/mtail-1.1.1-r2.ebuild b/app-misc/mtail/mtail-1.1.1-r2.ebuild
new file mode 100644
index 000000000000..b6fa941fb5ed
--- /dev/null
+++ b/app-misc/mtail/mtail-1.1.1-r2.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="3"
+
+inherit eutils python
+
+DESCRIPTION="Tail workalike, that performs output colourising"
+HOMEPAGE="http://matt.immute.net/src/mtail/"
+SRC_URI="http://matt.immute.net/src/mtail/mtail-${PV}.tgz
+ http://matt.immute.net/src/mtail/mtailrc-syslog.sample"
+
+LICENSE="HPND"
+SLOT="0"
+KEYWORDS="alpha amd64 ~mips ppc sparc x86 ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE=""
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-remove-blanks.patch
+ python_convert_shebangs -r 2 .
+}
+
+src_install() {
+ dobin mtail || die
+ dodoc CHANGES mtailrc.sample README "${DISTDIR}"/mtailrc-syslog.sample || die
+}
diff --git a/app-misc/mtail/mtail-1.1.1-r3.ebuild b/app-misc/mtail/mtail-1.1.1-r3.ebuild
new file mode 100644
index 000000000000..e39550b60f0d
--- /dev/null
+++ b/app-misc/mtail/mtail-1.1.1-r3.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+inherit eutils python-single-r1
+
+DESCRIPTION="Tail workalike, that performs output colourising"
+HOMEPAGE="http://matt.immute.net/src/mtail/"
+SRC_URI="http://matt.immute.net/src/mtail/mtail-${PV}.tgz
+ http://matt.immute.net/src/mtail/mtailrc-syslog.sample"
+
+LICENSE="HPND"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~mips ~ppc ~sparc ~x86 ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE=""
+
+RDEPEND=${PYTHON_DEPS}
+REQUIRED_USE=${PYTHON_REQUIRED_USE}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-remove-blanks.patch
+ python_fix_shebang .
+}
+
+src_install() {
+ dobin mtail || die
+ dodoc CHANGES mtailrc.sample README "${DISTDIR}"/mtailrc-syslog.sample || die
+}
diff --git a/app-misc/multimon/Manifest b/app-misc/multimon/Manifest
new file mode 100644
index 000000000000..475280672055
--- /dev/null
+++ b/app-misc/multimon/Manifest
@@ -0,0 +1,2 @@
+DIST multimon-1.0-ubuntu.patch.xz 18532 SHA256 2d1e990dec9a949e7293a18eee7559d3df53133fc78c129e38d5b5fc439a6586 SHA512 1773bf4d1b0be59c2187543328a1cd59d097f026418b3c96afbd48f9c8491fb1c082d5d2e58b1d3242a912737915b5cdaf6e879ae82f2e7bc292919579ebcc28 WHIRLPOOL b49e64f5694db7791574bf2fddb9ca071b912bb4510701fafeed614cc8805df9130ce6bfeae9c380fecfd46656f3ff0f8d80625d93585c1ccff28e1e71d544ed
+DIST multimon.tar.gz 49256 SHA256 bb4957f10ffbe0bdefb91170beeba22edba7cac265855fe47960d5f7033b5255 SHA512 e52a30996a66ca68a25490d3c522fe71454d0b3d4a0dd8ba567483fa8afe6350b68f391e7b8a4f5cd0c8440762b9cd7258c8efb5cc737c8780c3c2af77a9dba5 WHIRLPOOL ec0b97860037321e8cc29340bc41faddb2d073f361f83d656310f63ba8eaad51b5ac7102b08ba503b24c333714be4377afdf19075f10c189eaf5e20e3a6684b0
diff --git a/app-misc/multimon/files/multimon-1.0-flags.patch b/app-misc/multimon/files/multimon-1.0-flags.patch
new file mode 100644
index 000000000000..232cb4e15ac2
--- /dev/null
+++ b/app-misc/multimon/files/multimon-1.0-flags.patch
@@ -0,0 +1,46 @@
+--- Makefile.orig 1997-12-08 17:56:05.000000000 +0100
++++ Makefile 2010-10-20 06:16:56.000000000 +0200
+@@ -8,7 +8,7 @@
+ else
+ CFLAGS +=-O3 -DSUN_AUDIO -DARCH_SPARC
+ endif
+-LDFLAGSX =-lX11 -L/usr/X11R6/lib -R/usr/X11R6/lib -lsocket -lnsl
++LIBSX =-lX11 -L/usr/X11R6/lib -R/usr/X11R6/lib -lsocket -lnsl
+ else
+ ifeq ($(DEBUG),y)
+ CFLAGS +=-g -O -m486 -malign-loops=2 -malign-jumps=2 \
+@@ -17,7 +17,7 @@
+ CFLAGS +=-O3 -m486 -malign-loops=2 -malign-jumps=2 \
+ -malign-functions=2 -DARCH_I386
+ endif
+-LDFLAGSX =-lX11 -L/usr/X11R6/lib
++LIBSX =-lX11 -L/usr/X11R6/lib
+ endif
+
+
+@@ -28,7 +28,7 @@
+
+ AS =as
+ LD =ld
+-LDFLAGS =-lm
++LIBS =-lm
+ HOSTCC =gcc
+ CC =gcc
+ MAKE =make
+@@ -67,13 +67,13 @@
+ $(MKDIR) $(BINDIR)
+
+ $(BINDIR)/multimon: $(OBJ_L2) $(OBJ_L1) $(OBJ_MISC)
+- $(CC) $^ $(LDFLAGS) $(LDFLAGSX) -o $@
++ $(CC) $(LDFLAGS) $^ $(LIBS) $(LIBSX) -o $@
+
+ $(BINDIR)/gen: $(OBJ_GEN)
+- $(CC) $^ $(LDFLAGS) -o $@
++ $(CC) $(LDFLAGS) $^ $(LIBS) -o $@
+
+ $(BINDIR)/mkcostab: $(BINDIR)/mkcostab.o
+- $(CC) $^ $(LDFLAGS) -o $@
++ $(CC) $(LDFLAGS) $^ $(LIBS) -o $@
+
+ costabi.c costabf.c: $(BINDIR)/mkcostab
+ $(BINDIR)/mkcostab
diff --git a/app-misc/multimon/files/multimon-1.0-includes.patch b/app-misc/multimon/files/multimon-1.0-includes.patch
new file mode 100644
index 000000000000..940841382d00
--- /dev/null
+++ b/app-misc/multimon/files/multimon-1.0-includes.patch
@@ -0,0 +1,20 @@
+--- mkcostab.c.orig 1997-12-08 17:56:06.000000000 +0100
++++ mkcostab.c 2010-10-20 06:20:08.000000000 +0200
+@@ -23,6 +23,7 @@
+
+ #include <math.h>
+ #include <stdio.h>
++#include <stdlib.h> /* exit() */
+
+ /* ---------------------------------------------------------------------- */
+
+--- xdisplay.c.orig 1997-12-08 17:56:06.000000000 +0100
++++ xdisplay.c 2010-10-20 06:19:37.000000000 +0200
+@@ -36,6 +36,7 @@
+ #include <X11/X.h>
+ #include <X11/Xlib.h>
+ #include <X11/Xutil.h>
++#include <stdlib.h> /* abort() exit() */
+
+ /* ---------------------------------------------------------------------- */
+
diff --git a/app-misc/multimon/files/multimon-1.0-prll.patch b/app-misc/multimon/files/multimon-1.0-prll.patch
new file mode 100644
index 000000000000..0664bea9e9c1
--- /dev/null
+++ b/app-misc/multimon/files/multimon-1.0-prll.patch
@@ -0,0 +1,75 @@
+ Makefile | 35 ++++++++++++++++-------------------
+ 1 files changed, 16 insertions(+), 19 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index 74453f2..28a3b7d 100644
+--- a/Makefile
++++ b/Makefile
+@@ -37,15 +37,15 @@ AR =ar
+ STRIP =strip
+ MKDIR =mkdir
+
+-all: $(BINDIR) $(BINDIR)/multimon $(BINDIR)/gen
++all: multimon gen
+
+-$(BINDIR)/%.s: %.c
++%.s: %.c
+ $(CC) $(CFLAGS) -S -o $@ $<
+
+-$(BINDIR)/%.o: $(BINDIR)/%.s
++%.o: %.s
+ $(AS) -c -o $@ $<
+
+-$(BINDIR)/%.o: %.c
++%.o: %.c
+ $(CC) $(CFLAGS) -c -o $@ $<
+
+ SRC_L2 =hdlc.c pocsag.c
+@@ -57,26 +57,23 @@ SRC_MISC =unixinput.c costabf.c xdisplay.c
+
+ SRC_GEN =gen.c gen_dtmf.c gen_sin.c gen_zvei.c gen_hdlc.c costabi.c
+
+-OBJ_L2 =$(SRC_L2:%.c=$(BINDIR)/%.o)
+-OBJ_L1 =$(SRC_L1:%.c=$(BINDIR)/%.o)
+-OBJ_MISC =$(SRC_MISC:%.c=$(BINDIR)/%.o)
++OBJ_L2 =$(SRC_L2:%.c=%.o)
++OBJ_L1 =$(SRC_L1:%.c=%.o)
++OBJ_MISC =$(SRC_MISC:%.c=%.o)
+
+-OBJ_GEN =$(SRC_GEN:%.c=$(BINDIR)/%.o)
++OBJ_GEN =$(SRC_GEN:%.c=%.o)
+
+-$(BINDIR):
+- $(MKDIR) $(BINDIR)
+-
+-$(BINDIR)/multimon: $(OBJ_L2) $(OBJ_L1) $(OBJ_MISC)
++multimon: $(OBJ_L2) $(OBJ_L1) $(OBJ_MISC)
+ $(CC) $(LDFLAGS) $^ $(LIBS) $(LIBSX) -o $@
+
+-$(BINDIR)/gen: $(OBJ_GEN)
++gen: $(OBJ_GEN)
+ $(CC) $(LDFLAGS) $^ $(LIBS) -o $@
+
+-$(BINDIR)/mkcostab: $(BINDIR)/mkcostab.o
++mkcostab: mkcostab.o
+ $(CC) $(LDFLAGS) $^ $(LIBS) -o $@
+
+-costabi.c costabf.c: $(BINDIR)/mkcostab
+- $(BINDIR)/mkcostab
++costabi.c costabf.c: mkcostab
++ ./mkcostab
+
+ clean:
+ $(RM) -f core `find . -name '*.[oas]' -print`
+@@ -85,8 +82,8 @@ clean:
+
+
+ depend dep:
+- $(CPP) -M $(CFLAGS) $(SRC_MISC) $(SRC_L1) $(SRC_L2) $(SRC_GEN) mkcostab.c > $(BINDIR)/.depend
++ $(CPP) -M $(CFLAGS) $(SRC_MISC) $(SRC_L1) $(SRC_L2) $(SRC_GEN) mkcostab.c > .depend
+
+-ifeq ($(BINDIR)/.depend,$(wildcard $(BINDIR)/.depend))
+-include $(BINDIR)/.depend
++ifeq (.depend,$(wildcard .depend))
++include .depend
+ endif
diff --git a/app-misc/multimon/metadata.xml b/app-misc/multimon/metadata.xml
new file mode 100644
index 000000000000..91f4e72fb544
--- /dev/null
+++ b/app-misc/multimon/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>
+ <email>maintainer-needed@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-misc/multimon/multimon-1.0-r2.ebuild b/app-misc/multimon/multimon-1.0-r2.ebuild
new file mode 100644
index 000000000000..89fb2972fb58
--- /dev/null
+++ b/app-misc/multimon/multimon-1.0-r2.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Decoding digital transmission codes"
+HOMEPAGE="http://www.baycom.org/~tom/ham/linux/multimon.html"
+SRC_URI="http://www.baycom.org/~tom/ham/linux/multimon.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~ppc x86"
+IUSE=""
+
+RDEPEND="x11-libs/libX11"
+DEPEND="${RDEPEND}
+ x11-proto/xproto"
+
+S=${WORKDIR}/multimon
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${P}-flags.patch \
+ "${FILESDIR}"/${P}-prll.patch \
+ "${FILESDIR}"/${P}-includes.patch
+ sed \
+ -e '/^$(BINDIR)\//s:$: $(BINDIR):g' \
+ -i Makefile || die
+}
+
+src_compile() {
+ # bug #369713
+ emake CFLAGS="${CFLAGS}" CC=$(tc-getCC)
+}
+
+src_install() {
+ mv gen multimon-gen
+ dobin multimon-gen mkcostab multimon
+}
+
+pkg_postinst() {
+ ewarn "The gen command has been renamed to multimon-gen to avoid conflicts"
+ ewarn "with dev-ruby/gen (#247156)"
+}
diff --git a/app-misc/multimon/multimon-1.0-r3.ebuild b/app-misc/multimon/multimon-1.0-r3.ebuild
new file mode 100644
index 000000000000..a5edd0772794
--- /dev/null
+++ b/app-misc/multimon/multimon-1.0-r3.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Decoding digital transmission codes"
+HOMEPAGE="http://www.baycom.org/~tom/ham/linux/multimon.html"
+SRC_URI="http://www.baycom.org/~tom/ham/linux/multimon.tar.gz
+ http://dev.gentoo.org/~lu_zero/distfiles/${P}-ubuntu.patch.xz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+RDEPEND="x11-libs/libX11"
+DEPEND="${RDEPEND}
+ x11-proto/xproto"
+
+S=${WORKDIR}/multimon
+
+src_prepare() {
+ epatch \
+ "${WORKDIR}"/${P}-ubuntu.patch \
+ "${FILESDIR}"/${P}-flags.patch \
+ "${FILESDIR}"/${P}-prll.patch \
+ "${FILESDIR}"/${P}-includes.patch
+ sed \
+ -e '/^$(BINDIR)\//s:$: $(BINDIR):g' \
+ -i Makefile || die
+}
+
+src_compile() {
+ # bug #369713
+ emake CFLAGS="${CFLAGS}" CC=$(tc-getCC)
+}
+
+src_install() {
+ mv gen multimon-gen
+ dobin multimon-gen mkcostab multimon
+ doman multimon.1 multimon-gen.1
+}
+
+pkg_postinst() {
+ ewarn "The gen command has been renamed to multimon-gen to avoid conflicts"
+ ewarn "with dev-ruby/gen (#247156)"
+}
diff --git a/app-misc/muttprint/Manifest b/app-misc/muttprint/Manifest
new file mode 100644
index 000000000000..f15979c6acfe
--- /dev/null
+++ b/app-misc/muttprint/Manifest
@@ -0,0 +1 @@
+DIST muttprint-0.73.tar.gz 361268 SHA256 7cabe6a0aa59849f84914a2da33320611a2fcf5896b94ff957cfade8a325deb6 SHA512 607bdbee769e6d3a954979f15f017875a70078462bdbd747ff65dc3ac61fda3a0c32b261430faab8e457d6781b03d9f266ae2d21cdbdd058a7635ba9ddd27834 WHIRLPOOL 19cbef9d33717d4c16b6bb90204b98485b530e99cefa5535850deecb50a5aba5c639f72979b05d5b53b1b475c6a8df60cd6c49c85c43c2eb3357b3880b2b6975
diff --git a/app-misc/muttprint/files/muttprint-0.73-manuals.patch b/app-misc/muttprint/files/muttprint-0.73-manuals.patch
new file mode 100644
index 000000000000..57dd12dfa74f
--- /dev/null
+++ b/app-misc/muttprint/files/muttprint-0.73-manuals.patch
@@ -0,0 +1,140 @@
+diff -u -r a/doc/manual/en/manual-en.sgml b/doc/manual/en/manual-en.sgml
+--- a/doc/manual/en/manual-en.sgml 2005-05-16 14:38:51.000000000 +0200
++++ b/doc/manual/en/manual-en.sgml 2011-11-27 23:45:50.970890374 +0100
+@@ -191,6 +191,7 @@
+ <para>As mentioned above, there must be a small C program compiled. If you use Perl
+ 5.8 and/or Linux, you could skip this step. For this, just execute
+
++ </para>
+ <para>
+ <prompt>$ </prompt>
+ <userinput>make</userinput>
+@@ -278,7 +279,7 @@
+
+ <para>You have to add or change following line in the file
+ <Filename>$HOME/.muttrc</Filename> or system wide in
+- <FileName>##SYSCONFDIR##/Muttrc</FileName>:</para>
++ <FileName>/etc/Muttrc</FileName>:</para>
+
+ <ProgramListing>set print_command="muttprint"</ProgramListing>
+
+@@ -316,7 +317,7 @@
+ </ProgramListing>
+
+ <para>You'll find more information in the documentation of Mutt
+- (<Filename>##DOCDIR##/mutt/manual.txt(.gz)</Filename>).</para>
++ (<Filename>/usr/share/doc/muttprint/mutt/manual.txt(.gz)</Filename>).</para>
+
+ </sect3>
+
+@@ -345,7 +346,7 @@
+ <para>In the dialogue <GUImenu>Misc</GUImenu>, <GUImenuItem>Config
+ Misc</GUImenuItem> you have to do an entry in <GUIlabel>Print
+ Command</GUIlabel>:
+- <literal>##BINDIR##/muttprint -f $f</literal>.</para>
++ <literal>/usr/bin/muttprint -f $f</literal>.</para>
+
+
+ <Note>
+@@ -393,7 +394,7 @@
+ <para>You find the code in <filename>README.Gnus</filename> and I
+ would like to refer to this file in this manual. If you use
+ packages for the installation you should find this file in the
+- <filename>##DOCDIR##/muttprint/</filename>
++ <filename>/usr/share/doc/muttprint/muttprint/</filename>
+ directory.</para>
+ </sect3>
+
+@@ -445,7 +446,7 @@
+
+ <para>Some things could be configured in Muttprint. This is permanently
+ done in the configuration files <filename>$HOME/.muttprintrc</filename>
+- (only for the current user) or <filename>##SYSCONFDIR##/Muttprintrc</filename>
++ (only for the current user) or <filename>/etc/Muttprintrc</filename>
+ (global for all users). User settings override global settings.</para>
+
+ <para>You can also specify an additional configuration file with the
+@@ -466,7 +467,7 @@
+ <para>An example for a configuration file is distributed with
+ Muttprint (<filename>sample-muttprintrc</filename>). If you've
+ installed a RPM or Debian package, you'll find it in
+- <filename>##DOCDIR##/muttprint/</filename>.</para>
++ <filename>/usr/share/doc/muttprint/muttprint/</filename>.</para>
+
+ <para>An example for a correct assignment:</para>
+
+@@ -550,7 +551,7 @@
+
+ <para>Additionally, Muttprint comes with some example pictures that
+ are already converted into the EPS format. After the installation,
+- you'll find this in <filename>##SHAREDIR##/muttprint</filename>.</para>
++ you'll find this in <filename>/usr/share/muttprint</filename>.</para>
+
+ <para>If the printing of the graphic should turned off,
+ set <literal>PENGUIN</literal> to the value <literal>off</literal>.
+@@ -917,7 +918,7 @@
+ value. Possible are only <literal>A4</literal> and
+ <literal>letter</literal>.</para>
+
+- <para>If there exists a file <filename>##SYSCONFDIR##/papersize</filename> as
++ <para>If there exists a file <filename>/etc/papersize</filename> as
+ usually on Debian systems, it is evaluated, too. Own settings overwrite
+ this system settings.</para>
+
+@@ -1023,7 +1024,7 @@
+ <para>For this, you can assign the variable <literal>BACKGROUND</literal>
+ the value <literal>on</literal>. In the debug mode (see <xref
+ linkend="debug">) this option has no effect.</para>
+-
++ </sect3>
+ <sect3 id="debug">
+ <title>Error messages</title>
+
+diff -u -r a/doc/manual/it/manual-it.sgml b/doc/manual/it/manual-it.sgml
+--- a/doc/manual/it/manual-it.sgml 2005-05-16 14:38:51.000000000 +0200
++++ b/doc/manual/it/manual-it.sgml 2011-11-27 23:45:33.378110313 +0100
+@@ -264,7 +264,7 @@
+
+ <para>Puoi trovere maggiori informazioni nelle documentazione di
+ Mutt
+- (<Filename>##DOCDIR##/mutt/manual.txt(.gz)</Filename>).</para>
++ (<Filename>/usr/share/doc/muttprint/mutt/manual.txt(.gz)</Filename>).</para>
+
+ </sect3>
+
+@@ -296,7 +296,7 @@
+ <para>Nel dialogo <GUImenu>Misc</GUImenu>, <GUImenuItem>Config
+ Misc</GUImenuItem> devi settare una entry in <GUIlabel>Print
+ Command</GUIlabel>:
+- <literal>##BINDIR##/muttprint -f $f</literal>.</para>
++ <literal>/usr/bin/muttprint -f $f</literal>.</para>
+
+
+ <Note>
+@@ -345,7 +345,7 @@
+ <para>Poui trovare il codice in <filename>README.Gnus</filename> e
+ preferirei far riferimento a questo file per questo manuale.
+ Se usi i pacchetti per l'installazione dovresti trovare
+- questo file in <filename>##DOCDIR##/muttprint/</filename>.</para>
++ questo file in <filename>/usr/share/doc/muttprint/muttprint/</filename>.</para>
+ </sect3>
+
+ <sect3>
+@@ -874,7 +874,7 @@
+ Sono possibili solo <literal>A4</literal> e <literal>letter</literal>.
+ </para>
+
+- <para>Se presente un file <filename>##SYSCONFDIR##/papersize</filename> come
++ <para>Se presente un file <filename>/etc/papersize</filename> come
+ di soliuto nei sistemi Debian, viene anch'esso considerato.
+ Le proprie impostazione prevarranno su quelle di sistema.</para>
+
+@@ -1079,7 +1079,7 @@
+ <row>
+ <entry>ISO-8859-4</entry>
+ <entry><literal>latin4</literal></entry>
+- <entry>Lingue Europa sud-orientale ed altre lingue/entry>
++ <entry>Lingue Europa sud-orientale ed altre lingue</entry>
+ </row>
+ <row>
+ <entry>ISO-8859-9</entry>
diff --git a/app-misc/muttprint/files/muttprint-0.73-pod-encoding.patch b/app-misc/muttprint/files/muttprint-0.73-pod-encoding.patch
new file mode 100644
index 000000000000..e51095a8e75a
--- /dev/null
+++ b/app-misc/muttprint/files/muttprint-0.73-pod-encoding.patch
@@ -0,0 +1,32 @@
+diff -Nuar a/doc/manpages/de/muttprint.pod b/doc/manpages/de/muttprint.pod
+--- a/doc/manpages/de/muttprint.pod 2006-05-06 09:13:46.000000000 +0200
++++ b/doc/manpages/de/muttprint.pod 2014-08-19 19:00:14.939978099 +0200
+@@ -1,3 +1,4 @@
++=encoding latin1
+ =head1 NAME
+
+ muttprint - schner Ausdruck von Mails mit Mutt
+diff -Nuar a/doc/manpages/en/muttprint.pod b/doc/manpages/en/muttprint.pod
+--- a/doc/manpages/en/muttprint.pod 2006-05-06 09:13:46.000000000 +0200
++++ b/doc/manpages/en/muttprint.pod 2014-08-19 19:00:09.349978130 +0200
+@@ -1,3 +1,4 @@
++=encoding latin1
+ =head1 NAME
+
+ muttprint - pretty printing of mails with Mutt
+diff -Nuar a/doc/manpages/es/muttprint.pod b/doc/manpages/es/muttprint.pod
+--- a/doc/manpages/es/muttprint.pod 2006-05-06 09:13:46.000000000 +0200
++++ b/doc/manpages/es/muttprint.pod 2014-08-19 19:00:11.109978120 +0200
+@@ -1,3 +1,4 @@
++=encoding latin1
+ =head1 NOMBRE
+
+ muttprint - impresin elegante de mensajes de correo con Mutt
+diff -Nuar a/doc/manpages/it/muttprint.pod b/doc/manpages/it/muttprint.pod
+--- a/doc/manpages/it/muttprint.pod 2006-05-06 09:13:46.000000000 +0200
++++ b/doc/manpages/it/muttprint.pod 2014-08-19 19:00:12.679978111 +0200
+@@ -1,3 +1,4 @@
++=encoding latin1
+ =head1 NOME
+
+ muttprint - stampa raffinata della posta elettronica con Mutt
diff --git a/app-misc/muttprint/files/muttprint-0.73-r3-pod-encoding.patch b/app-misc/muttprint/files/muttprint-0.73-r3-pod-encoding.patch
new file mode 100644
index 000000000000..1a939582c1bf
--- /dev/null
+++ b/app-misc/muttprint/files/muttprint-0.73-r3-pod-encoding.patch
@@ -0,0 +1,36 @@
+diff -Nuar a/doc/manpages/de/muttprint.pod b/doc/manpages/de/muttprint.pod
+--- a/doc/manpages/de/muttprint.pod 2006-05-06 09:13:46.000000000 +0200
++++ b/doc/manpages/de/muttprint.pod 2014-12-19 23:17:31.939783684 +0100
+@@ -1,3 +1,5 @@
++=encoding latin1
++
+ =head1 NAME
+
+ muttprint - schner Ausdruck von Mails mit Mutt
+diff -Nuar a/doc/manpages/en/muttprint.pod b/doc/manpages/en/muttprint.pod
+--- a/doc/manpages/en/muttprint.pod 2006-05-06 09:13:46.000000000 +0200
++++ b/doc/manpages/en/muttprint.pod 2014-12-19 23:17:15.219783778 +0100
+@@ -1,3 +1,5 @@
++=encoding latin1
++
+ =head1 NAME
+
+ muttprint - pretty printing of mails with Mutt
+diff -Nuar a/doc/manpages/es/muttprint.pod b/doc/manpages/es/muttprint.pod
+--- a/doc/manpages/es/muttprint.pod 2006-05-06 09:13:46.000000000 +0200
++++ b/doc/manpages/es/muttprint.pod 2014-12-19 23:17:25.029783723 +0100
+@@ -1,3 +1,5 @@
++=encoding latin1
++
+ =head1 NOMBRE
+
+ muttprint - impresin elegante de mensajes de correo con Mutt
+diff -Nuar a/doc/manpages/it/muttprint.pod b/doc/manpages/it/muttprint.pod
+--- a/doc/manpages/it/muttprint.pod 2006-05-06 09:13:46.000000000 +0200
++++ b/doc/manpages/it/muttprint.pod 2014-12-19 23:17:39.779783640 +0100
+@@ -1,3 +1,5 @@
++=encoding latin1
++
+ =head1 NOME
+
+ muttprint - stampa raffinata della posta elettronica con Mutt
diff --git a/app-misc/muttprint/files/muttprint-0.73-warning.patch b/app-misc/muttprint/files/muttprint-0.73-warning.patch
new file mode 100644
index 000000000000..e17f658732d9
--- /dev/null
+++ b/app-misc/muttprint/files/muttprint-0.73-warning.patch
@@ -0,0 +1,20 @@
+diff -Nur a/muttprint b/muttprint
+--- a/muttprint 2012-04-28 13:46:46.109925472 +0200
++++ b/muttprint 2012-04-28 13:48:40.919924827 +0200
+@@ -740,6 +740,8 @@
+ }
+ }
+
++chdir($ENV{HOME}) || chdir('/');
++
+ ################################### ENDE ####################################
+
+
+@@ -1791,6 +1793,7 @@
+ output \*STDERR, $messageString;
+ }
+ }
++ chdir($ENV{HOME}) || chdir('/');
+ exit 1;
+ }
+
diff --git a/app-misc/muttprint/metadata.xml b/app-misc/muttprint/metadata.xml
new file mode 100644
index 000000000000..ec09092962a5
--- /dev/null
+++ b/app-misc/muttprint/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>
+ <email>nimiux@gentoo.org</email>
+ <name>Chema Alonso</name>
+ </maintainer>
+ <longdescription lang="en">
+ Pretty printing of your mails
+ </longdescription>
+ <longdescription lang="es">
+ Impresión elegante de sus correos
+ </longdescription>
+ <use>
+ <flag name="doc">Builds documentation</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">muttprint</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/muttprint/muttprint-0.73-r1.ebuild b/app-misc/muttprint/muttprint-0.73-r1.ebuild
new file mode 100644
index 000000000000..6609a9df793b
--- /dev/null
+++ b/app-misc/muttprint/muttprint-0.73-r1.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit autotools-utils eutils
+
+DESCRIPTION="Script for pretty printing of your mails"
+HOMEPAGE="http://muttprint.sourceforge.net"
+SRC_URI="mirror://sourceforge/muttprint/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="amd64 ppc ppc64 x86"
+IUSE="doc"
+
+DEPEND="dev-lang/perl
+ virtual/latex-base
+ doc? (
+ app-text/dvipsk
+ app-text/docbook-sgml-utils[jadetex] )"
+
+RDEPEND="dev-lang/perl
+ virtual/latex-base
+ dev-texlive/texlive-latexextra"
+
+AUTOTOOLS_IN_SOURCE_BUILD=1
+
+patch_docs() {
+ sed -i -e 's/db2pdf/docbook2pdf/' "${S}"/configure.ac || die
+ for l in de en es it sl
+ do
+ sed -i -e "/^docdir/s/$/-${PV}/" \
+ -e 's/db2/docbook2/' -e 's/ -s / -d /' \
+ -e "s|manual-${l}-sed/||" \
+ -e "s/mv manual-${l}-sed.dvi/cp manual-${l}-sed.dvi/" \
+ "${S}"/doc/manual/${l}/Makefile.am || die
+ done
+}
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-warning.patch"
+ epatch "${FILESDIR}/${P}-manuals.patch"
+
+ if use doc ; then
+ # Patch docbook and docdir
+ patch_docs
+ else
+ # Don't do manuals
+ sed -i -e '/db2pdf/d' "${S}"/configure.ac || die
+ fi
+ sed -i -e "/^docdir/s/$/-${PV}/" "${S}"/Makefile.am || die
+
+ # The distfile does not include the png files, nor penguin.jpg
+ sed -i -e '/.*png /d' -e '/penguin.jpg /d' "${S}"/pics/Makefile.am || die
+
+ eautoreconf
+}
+
+src_configure() {
+ econf --docdir="/usr/share/doc/${PF}"
+}
+
+src_compile() {
+ # Parallel build does not work when USE="doc"
+ emake -j1
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+
+ dodoc ChangeLog
+}
diff --git a/app-misc/muttprint/muttprint-0.73-r2.ebuild b/app-misc/muttprint/muttprint-0.73-r2.ebuild
new file mode 100644
index 000000000000..d97c4401f556
--- /dev/null
+++ b/app-misc/muttprint/muttprint-0.73-r2.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit autotools-utils eutils
+
+DESCRIPTION="Script for pretty printing of your mails"
+HOMEPAGE="http://muttprint.sourceforge.net"
+SRC_URI="mirror://sourceforge/muttprint/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="amd64 ppc ppc64 x86"
+IUSE="doc"
+
+DEPEND="dev-lang/perl
+ virtual/latex-base
+ doc? (
+ app-text/dvipsk
+ app-text/docbook-sgml-utils[jadetex] )"
+
+RDEPEND="dev-lang/perl
+ virtual/latex-base
+ dev-texlive/texlive-latexextra"
+
+AUTOTOOLS_IN_SOURCE_BUILD=1
+
+patch_docs() {
+ sed -i -e 's/db2pdf/docbook2pdf/' "${S}"/configure.ac || die
+ for l in de en es it sl
+ do
+ sed -i -e "/^docdir/s/$/-${PV}/" \
+ -e 's/db2/docbook2/' -e 's/ -s / -d /' \
+ -e "s|manual-${l}-sed/||" \
+ -e "s/mv manual-${l}-sed.dvi/cp manual-${l}-sed.dvi/" \
+ "${S}"/doc/manual/${l}/Makefile.am || die
+ done
+}
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-warning.patch"
+ epatch "${FILESDIR}/${P}-manuals.patch"
+ epatch "${FILESDIR}/${P}-pod-encoding.patch"
+
+ if use doc ; then
+ # Patch docbook and docdir
+ patch_docs
+ else
+ # Don't do manuals
+ sed -i -e '/db2pdf/d' "${S}"/configure.ac || die
+ fi
+ sed -i -e "/^docdir/s/$/-${PV}/" "${S}"/Makefile.am || die
+
+ # The distfile does not include the png files, nor penguin.jpg
+ sed -i -e '/.*png /d' -e '/penguin.jpg /d' "${S}"/pics/Makefile.am || die
+
+ eautoreconf
+}
+
+src_configure() {
+ econf --docdir="/usr/share/doc/${PF}"
+}
+
+src_compile() {
+ # Parallel build does not work when USE="doc"
+ emake -j1
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+
+ dodoc ChangeLog
+}
diff --git a/app-misc/muttprint/muttprint-0.73-r3.ebuild b/app-misc/muttprint/muttprint-0.73-r3.ebuild
new file mode 100644
index 000000000000..9fa7d4e8c628
--- /dev/null
+++ b/app-misc/muttprint/muttprint-0.73-r3.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit autotools-utils eutils
+
+DESCRIPTION="Script for pretty printing of your mails"
+HOMEPAGE="http://muttprint.sourceforge.net"
+SRC_URI="mirror://sourceforge/muttprint/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="amd64 ppc ppc64 x86"
+IUSE="doc"
+
+DEPEND="dev-lang/perl
+ virtual/latex-base
+ doc? (
+ app-text/dvipsk
+ app-text/docbook-sgml-utils[jadetex] )"
+
+RDEPEND="dev-lang/perl
+ virtual/latex-base
+ dev-texlive/texlive-latexextra"
+
+AUTOTOOLS_IN_SOURCE_BUILD=1
+
+patch_docs() {
+ sed -i -e 's/db2pdf/docbook2pdf/' "${S}"/configure.ac || die
+ for l in de en es it sl
+ do
+ sed -i -e "/^docdir/s/$/-${PV}/" \
+ -e 's/db2/docbook2/' -e 's/ -s / -d /' \
+ -e "s|manual-${l}-sed/||" \
+ -e "s/mv manual-${l}-sed.dvi/cp manual-${l}-sed.dvi/" \
+ "${S}"/doc/manual/${l}/Makefile.am || die
+ done
+}
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-warning.patch"
+ epatch "${FILESDIR}/${P}-manuals.patch"
+ epatch "${FILESDIR}/${PF}-pod-encoding.patch"
+
+ if use doc ; then
+ # Patch docbook and docdir
+ patch_docs
+ else
+ # Don't do manuals
+ sed -i -e '/db2pdf/d' "${S}"/configure.ac || die
+ fi
+ sed -i -e "/^docdir/s/$/-${PV}/" "${S}"/Makefile.am || die
+
+ # The distfile does not include the png files, nor penguin.jpg
+ sed -i -e '/.*png /d' -e '/penguin.jpg /d' "${S}"/pics/Makefile.am || die
+
+ eautoreconf
+}
+
+src_configure() {
+ econf --docdir="/usr/share/doc/${PF}"
+}
+
+src_compile() {
+ # Parallel build does not work when USE="doc"
+ emake -j1
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+
+ dodoc ChangeLog
+}
diff --git a/app-misc/muttprint/muttprint-0.73.ebuild b/app-misc/muttprint/muttprint-0.73.ebuild
new file mode 100644
index 000000000000..f7de4eacd216
--- /dev/null
+++ b/app-misc/muttprint/muttprint-0.73.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit autotools-utils eutils
+
+DESCRIPTION="Script for pretty printing of your mails"
+HOMEPAGE="http://muttprint.sourceforge.net"
+SRC_URI="mirror://sourceforge/muttprint/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE="doc"
+
+DEPEND="dev-lang/perl
+ virtual/latex-base
+ doc? (
+ app-text/dvipsk
+ app-text/docbook-sgml-utils[jadetex] )"
+
+RDEPEND="dev-lang/perl
+ virtual/latex-base"
+
+patch_docs() {
+ sed -i -e 's/db2pdf/docbook2pdf/' "${S}"/configure.ac || die
+ for l in de en es it sl
+ do
+ sed -i -e "/^docdir/s/$/-${PV}/" \
+ -e 's/db2/docbook2/' -e 's/ -s / -d /' \
+ -e "s|manual-${l}-sed/||" \
+ -e "s/mv manual-${l}-sed.dvi/cp manual-${l}-sed.dvi/" \
+ "${S}"/doc/manual/${l}/Makefile.am || die
+ done
+}
+
+src_prepare() {
+ epatch "${FILESDIR}/${PF}-warning.patch"
+ epatch "${FILESDIR}/${PF}-manuals.patch"
+
+ if use doc ; then
+ # Patch docbook and docdir
+ patch_docs
+ else
+ # Don't do manuals
+ sed -i -e '/db2pdf/d' "${S}"/configure.ac || die
+ fi
+ sed -i -e "/^docdir/s/$/-${PV}/" "${S}"/Makefile.am || die
+
+ # The distfile does not include the png files, nor penguin.jpg
+ sed -i -e '/.*png /d' -e '/penguin.jpg /d' "${S}"/pics/Makefile.am || die
+
+ eautoreconf
+}
+
+src_configure() {
+ econf --docdir="/usr/share/doc/${PF}"
+}
+
+src_compile() {
+ # Paralell build does not work when USE="doc"
+ emake -j1
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+
+ dodoc ChangeLog
+}
diff --git a/app-misc/mvcase/Manifest b/app-misc/mvcase/Manifest
new file mode 100644
index 000000000000..ee94bcdfb16c
--- /dev/null
+++ b/app-misc/mvcase/Manifest
@@ -0,0 +1 @@
+DIST mvcase-0.1.tar.gz 9467 SHA256 87eb97918fde3a740f4c4968b7fb737909de124ea89774d34c0201bd107c93a2 SHA512 1b6030d51cd0da7bede43f1b528c2b2cc713b3c6ca0ccbb4931672185998957aad1b2e0e78a78148c412b6a36052076caca3606016ad1404e6028442dff8648c WHIRLPOOL c47c1bcb8839478c72577481936a68b1a805f4bb4cdd7ec5770adc9c30862ef766483470f1e0a5677a04fe4dded2b4236a7f16eb76ef78a3414737aca7c44cab
diff --git a/app-misc/mvcase/files/mvcase-0.1-flags.patch b/app-misc/mvcase/files/mvcase-0.1-flags.patch
new file mode 100644
index 000000000000..e0a9e99160f8
--- /dev/null
+++ b/app-misc/mvcase/files/mvcase-0.1-flags.patch
@@ -0,0 +1,25 @@
+From: Julian Ospald <hasufell@gentoo.org>
+Date: Wed Nov 14 23:22:15 UTC 2012
+Subject: build system
+
+ respect CC, CFLAGS and LDFLAGS
+
+--- mvcase-0.1/Makefile
++++ mvcase-0.1/Makefile
+@@ -6,14 +6,13 @@
+ MANPATH=/usr/man
+ COMPILE=gcc
+ ROFF=groff
+-CFLAGS=
+-CLIBS=-lshhopt
++LIBS=-lshhopt
+ INSTALL=install
+
+ all: mvcase mvcase.1.gz
+
+ mvcase: mvcase.c
+- $(COMPILE) $(CFLAGS) mvcase.c -o mvcase $(CLIBS)
++ $(CC) $(CFLAGS) mvcase.c -o mvcase $(LDFLAGS) $(LIBS)
+
+ mvcase.1.gz: mvcase.1
+ $(ROFF) -man -Tascii mvcase.1 | gzip > mvcase.1.gz
diff --git a/app-misc/mvcase/files/mvcase-0.1-includes.patch b/app-misc/mvcase/files/mvcase-0.1-includes.patch
new file mode 100644
index 000000000000..095f07a06780
--- /dev/null
+++ b/app-misc/mvcase/files/mvcase-0.1-includes.patch
@@ -0,0 +1,25 @@
+* Fix compiler warnings.
+* Remove unused variable.
+
+--- a/mvcase.c
++++ b/mvcase.c
+@@ -17,6 +17,10 @@
+ */
+
+ #include <stdio.h>
++#include <stdlib.h> /* exit() free() realloc() */
++#include <string.h> /* strlen() strcpy() */
++#include <strings.h> /* rindex() */
++#include <ctype.h> /* tolower() toupper() */
+ #include <shhopt.h>
+
+ #define VERSION_INT 0
+@@ -45,7 +45,7 @@
+
+ int main (int argc, char **argv)
+ {
+- int i,j,k;
++ int i,j;
+ int static flag_upper = 0;
+ int static flag_lower = 0;
+ int static flag_path = 0;
diff --git a/app-misc/mvcase/metadata.xml b/app-misc/mvcase/metadata.xml
new file mode 100644
index 000000000000..91f4e72fb544
--- /dev/null
+++ b/app-misc/mvcase/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>
+ <email>maintainer-needed@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-misc/mvcase/mvcase-0.1-r1.ebuild b/app-misc/mvcase/mvcase-0.1-r1.ebuild
new file mode 100644
index 000000000000..c2be991b789a
--- /dev/null
+++ b/app-misc/mvcase/mvcase-0.1-r1.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="2"
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="A modified version of mv, used to convert filenames to lower/upper case"
+HOMEPAGE="http://www.ibiblio.org/pub/Linux/utils/file"
+SRC_URI="http://www.ibiblio.org/pub/Linux/utils/file/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE=""
+
+DEPEND="dev-libs/shhopt"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-includes.patch \
+ "${FILESDIR}"/${P}-flags.patch
+}
+
+src_compile() {
+ tc-export CC
+ emake || die
+}
+
+src_install() {
+ dobin mvcase || die
+ doman mvcase.1
+ dodoc INSTALL
+}
diff --git a/app-misc/note/Manifest b/app-misc/note/Manifest
new file mode 100644
index 000000000000..4d7860e8d05d
--- /dev/null
+++ b/app-misc/note/Manifest
@@ -0,0 +1 @@
+DIST note-1.3.3.tar.gz 42691 SHA256 5287906338554a1ea06105048b5b6c5457076e44475a58e43433be775c108365 SHA512 99744394084eec3bf84ecef10b2bc294375f18f6ce41614316c4f4bc02a73297f4b3a956f48fb424bb0b0f100ea23debea49c1029887ca52043dd733de0fcfad WHIRLPOOL 67fece1ca8b63685e3bd587c8831cdf021c771e498eaeb690423dfafe2d6d5a25940f2f0f047ec681320dd9610f7b9e24f42587b7d99819ecf1f2390fb3d42bf
diff --git a/app-misc/note/metadata.xml b/app-misc/note/metadata.xml
new file mode 100644
index 000000000000..622e71e1aee3
--- /dev/null
+++ b/app-misc/note/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>
+ <email>maintainer-needed@gentoo.org</email>
+ <name>Default assignee for orphaned packages</name>
+</maintainer>
+<use>
+ <flag name='general'>Add support for ascii flatfile backend</flag>
+ <flag name='text'>Add support for text backend</flag>
+</use>
+</pkgmetadata>
diff --git a/app-misc/note/note-1.3.3-r1.ebuild b/app-misc/note/note-1.3.3-r1.ebuild
new file mode 100644
index 000000000000..33575e76e8e7
--- /dev/null
+++ b/app-misc/note/note-1.3.3-r1.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit perl-module
+
+DESCRIPTION="A note taking perl program"
+HOMEPAGE="http://www.daemon.de/NOTE"
+SRC_URI="http://www.daemon.de/files/mirror/ftp.daemon.de/scip/Apps/note/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE="crypt dbm general mysql text"
+
+DEPEND="dev-perl/TermReadKey
+ dev-perl/Term-ReadLine-Perl
+ virtual/perl-Storable
+ dev-perl/Config-General
+ crypt? ( dev-perl/crypt-cbc
+ dev-perl/Crypt-Blowfish
+ dev-perl/Crypt-DES )
+ mysql? ( virtual/mysql
+ dev-perl/DBD-mysql )"
+RDEPEND=""
+
+src_install() {
+ perl-module_src_install
+
+ # Adding some basic utitily for testing note
+ dodir /usr/share/${PN}
+ cp "${S}/bin/stresstest.sh" "${D}/usr/share/${PN}"
+
+ # Adding some help for mysql backend driver
+ if use mysql; then
+ dodir /usr/share/${PN}/mysql
+ cp -r "${S}/mysql" "${D}/usr/share/${PN}"
+ fi
+
+ # Adding a sample configuration file
+ dodir /etc
+ cp "${S}/config/noterc" "${D}/etc"
+
+ # Supressing file not needed
+ for v in mysql text dbm general; do
+ if ! use ${v}; then
+ for u in `find "${D}" -type f -name *${v}.*pm`; do
+ rm "${u}"
+ done
+ fi
+ done
+
+ dodoc UPGRADE VERSION
+}
diff --git a/app-misc/nullmodem/Manifest b/app-misc/nullmodem/Manifest
new file mode 100644
index 000000000000..13809ad50cd4
--- /dev/null
+++ b/app-misc/nullmodem/Manifest
@@ -0,0 +1 @@
+DIST nullmodem-0.0.6.tar.gz 350584 SHA256 230dc2dcfd428757af080648be0bc01ebba99fb56c9571d4d53cf84f3b338cd3 SHA512 d87c4ceaaa16f67c4ddc42d86f8ed81f0e14e1180b25e9000868f715b2f553d0cc165812d1f945a83486cf1c356c1303682eb17fb12632252d28bcb84edeec7c WHIRLPOOL af4edf6bbe69f3e7bac6c8102409698fad27577ab5ce3729d1b6b63fc54081be95bc746abf5326f5dd4906bc2fb8f100c62527b1b39f08b64e122bf4bb1bcf16
diff --git a/app-misc/nullmodem/metadata.xml b/app-misc/nullmodem/metadata.xml
new file mode 100644
index 000000000000..ba531e83c4dc
--- /dev/null
+++ b/app-misc/nullmodem/metadata.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer>
+ <email>tomjbe@gentoo.org</email>
+</maintainer>
+<longdescription>
+Pseudo-Terminals (ptys) are a type of interprocess communication with a master
+and a slave end. One program (in our case nullmodem) opens the master sides of
+connections and therefore provides connectible slave sides of connections.
+If nullmodem receives some data on one of these connections it retransmits them
+on all other connections. It can be seen as a network with star-type wiring.
+Because the names of the slave side ptys are dynamic, nullmodem creates
+symbolic links to filenames of your choice.
+e.g. the command nullmodem /tmp/loop0 /tmp/loop1 /tmp/loop2
+creates a pty-network with 3 slave sides linked to the names /tmp/loop0,
+/tmp/loop1 and /tmp/loop2.
+If you close a slave side connection nullmodem will detect this and provide
+a new stub to connect to and update the symbolic link.
+</longdescription>
+</pkgmetadata>
diff --git a/app-misc/nullmodem/nullmodem-0.0.6.ebuild b/app-misc/nullmodem/nullmodem-0.0.6.ebuild
new file mode 100644
index 000000000000..8bea5443aa2b
--- /dev/null
+++ b/app-misc/nullmodem/nullmodem-0.0.6.ebuild
@@ -0,0 +1,19 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="2"
+
+DESCRIPTION="A Utility to loopback Pseudo-Terminals"
+HOMEPAGE="http://www.ant.uni-bremen.de/whomes/rinas/nullmodem/"
+SRC_URI="http://www.ant.uni-bremen.de/whomes/rinas/nullmodem/download/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+src_install() {
+ emake install DESTDIR="${D}" || die
+ dodoc ChangeLog README || die
+}
diff --git a/app-misc/nut/Manifest b/app-misc/nut/Manifest
new file mode 100644
index 000000000000..af2fd300212c
--- /dev/null
+++ b/app-misc/nut/Manifest
@@ -0,0 +1 @@
+DIST nut-20.1.tar.gz 1441077 SHA256 3f8c648669d4e9af3a7684fffb74baefb04f29bfe5a847acb3aa9df3540c4c7c SHA512 2ed79fb345f029f5deaed4e23531256f2f76f5ca05ae46d3d5f4503fef663cde81f6695a9b5b741d02c5880ef611fa8495fcce3bcadf1ca8abdbc2b395bced6a WHIRLPOOL 1ae20ff747e77de007281740337dfde19370d621e2bac264ed9922ce691118680ab33ffc97b0c61e529b6c1e9e6567266eb7176ee96e620a0081b68c1db18150
diff --git a/app-misc/nut/metadata.xml b/app-misc/nut/metadata.xml
new file mode 100644
index 000000000000..77c9c4eb12f0
--- /dev/null
+++ b/app-misc/nut/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>
+ <email>maintainer-needed@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">nut</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/nut/nut-20.1.ebuild b/app-misc/nut/nut-20.1.ebuild
new file mode 100644
index 000000000000..d57fd102452d
--- /dev/null
+++ b/app-misc/nut/nut-20.1.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit toolchain-funcs
+
+DESCRIPTION="Record what you eat and analyze your nutrient levels"
+HOMEPAGE="http://nut.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha amd64 ~arm ppc x86"
+
+src_compile() {
+ emake \
+ CC="$(tc-getCC)" \
+ OPT="${CFLAGS}" FOODDIR=\\\"/usr/share/nut\\\" \
+ nut
+}
+
+src_install() {
+ insinto /usr/share/nut
+ doins raw.data/*
+
+ dobin nut
+ doman nut.1
+}
diff --git a/app-misc/ofl/Manifest b/app-misc/ofl/Manifest
new file mode 100644
index 000000000000..8b00f18e65f3
--- /dev/null
+++ b/app-misc/ofl/Manifest
@@ -0,0 +1 @@
+DIST hxtools-20110721.tar.xz 270020 SHA256 5f5642c75f94b207fa32088bdf73429a6b447af2a81b139d977435fbb2c32eed SHA512 e3dcd6b1add6824ee38ed140a6c422315afc7cec5ebd352c684c506ef25638885393b2dff3582c317862a6ae8de97105abf95b3fc16832d3247f93b2c7283c26 WHIRLPOOL 0c36c7b3c618ef3c51a0dec926536f2a8d07259108f99dde265a4032b802331b4f98f1682d184ea68cb38c127157b72dbdf5df06c2967352dd1488c1f8a6e250
diff --git a/app-misc/ofl/metadata.xml b/app-misc/ofl/metadata.xml
new file mode 100644
index 000000000000..335b9b4cce4d
--- /dev/null
+++ b/app-misc/ofl/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer>
+ <email>mattst88@gentoo.org</email>
+ <name>Matt Turner</name>
+</maintainer>
+</pkgmetadata>
diff --git a/app-misc/ofl/ofl-20110721.ebuild b/app-misc/ofl/ofl-20110721.ebuild
new file mode 100644
index 000000000000..193ba1f2dbba
--- /dev/null
+++ b/app-misc/ofl/ofl-20110721.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit toolchain-funcs
+
+DESCRIPTION="Open file lister (replaces fuser and lsof -m)"
+HOMEPAGE="http://jengelh.medozas.de/projects/hxtools/"
+SRC_URI="http://jftp.medozas.de/hxtools/hxtools-${PV}.tar.xz"
+
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+DEPEND=">=sys-libs/libhx-3.4"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}"/hxtools-${PV}
+
+src_configure() {
+ # We're just building a single utility. Don't bother
+ # with the build system.
+ :
+}
+
+src_compile() {
+ CC=$(tc-getCC) CFLAGS=${CFLAGS} LDLIBS="-lHX" \
+ emake V=1 -C sadmin ofl
+}
+
+src_install() {
+ dobin sadmin/ofl
+ doman doc/ofl.1
+}
diff --git a/app-misc/ompload/Manifest b/app-misc/ompload/Manifest
new file mode 100644
index 000000000000..390ee0b5a46d
--- /dev/null
+++ b/app-misc/ompload/Manifest
@@ -0,0 +1 @@
+DIST ompload-20101220 6707 SHA256 514a82a1a0266b2db03d18910f181a543952740963ad782503b76c7205572a66 SHA512 6ec9e35b748a650658b8b9dcbdbd8fd9d5df519148647c9ad591a1b8701a4c283333650a82422201799a0797334b1e4f875ae62d90449f32f7cad8c1344f8a29 WHIRLPOOL 323546a20ea131255ef45f1071414bc41e759e2c66ef46ac7a54034d0959113c9e040e796b6a4db824655e8771c5a6737f251941dd6d283dd408da436a8c841e
diff --git a/app-misc/ompload/metadata.xml b/app-misc/ompload/metadata.xml
new file mode 100644
index 000000000000..243b1ca9f63a
--- /dev/null
+++ b/app-misc/ompload/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>xmw@gentoo.org</email>
+ <name>Michael Weber</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-misc/ompload/ompload-20101220.ebuild b/app-misc/ompload/ompload-20101220.ebuild
new file mode 100644
index 000000000000..b573653284e7
--- /dev/null
+++ b/app-misc/ompload/ompload-20101220.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=3
+
+DESCRIPTION="CLI script for uploading files to http://ompldr.org/"
+HOMEPAGE="http://ompldr.org/"
+SRC_URI="mirror://gentoo/${P}"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 ppc sparc x86 ~x86-fbsd"
+IUSE=""
+
+DEPEND=""
+RDEPEND=">=dev-lang/ruby-1.8
+ net-misc/curl"
+
+src_unpack() {
+ install -D "${DISTDIR}"/${P} "${S}"/${PN} || die
+}
+
+src_install() {
+ dobin ${PN} || die
+}
diff --git a/app-misc/ondir/Manifest b/app-misc/ondir/Manifest
new file mode 100644
index 000000000000..0c2141ef1d47
--- /dev/null
+++ b/app-misc/ondir/Manifest
@@ -0,0 +1 @@
+DIST ondir-0.2.2.tar.gz 20138 SHA256 475fe7bd447756b4effde87c8aa67e063d805b775785b9f39858422dc244aef2 SHA512 5c2c53532934b25d2a170c619d067c369b6acf2ef3e0a87607619613dcc0bbfc570937fb91cdc5df3f22ae0453b5a5d00edd57cd1b852f7a076c15b96c45d4dd WHIRLPOOL 0b696b38f44ed1a58a3b0f7a136ddac6f4a031af5b5275f7e2e0548726bc244ffe741e9952c8651cba8bcc04fc01e10c21b26d77549f2ff419f9f2c0fab662d5
diff --git a/app-misc/ondir/metadata.xml b/app-misc/ondir/metadata.xml
new file mode 100644
index 000000000000..40149c995561
--- /dev/null
+++ b/app-misc/ondir/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>shell-tools</herd>
+</pkgmetadata>
diff --git a/app-misc/ondir/ondir-0.2.2-r1.ebuild b/app-misc/ondir/ondir-0.2.2-r1.ebuild
new file mode 100644
index 000000000000..0fd9fadffa3d
--- /dev/null
+++ b/app-misc/ondir/ondir-0.2.2-r1.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="3"
+
+inherit toolchain-funcs
+
+DESCRIPTION="Automatically execute scripts as you traverse directories"
+HOMEPAGE="http://swapoff.org/OnDir"
+SRC_URI="http://swapoff.org/files/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86 ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
+IUSE=""
+
+DEPEND="sys-apps/sed"
+RDEPEND=""
+
+src_prepare() {
+ sed -i \
+ -e "s:\(/man/.*$\):/share\1:g" \
+ -e "s:-g:${CFLAGS}:" Makefile || die "sed Makefile failed"
+}
+
+src_compile() {
+ emake \
+ CC="$(tc-getCC)" \
+ PREFIX="${EPREFIX}/usr" \
+ CONF="${EPREFIX}/etc/ondirrc" \
+ LDFLAGS="${LDFLAGS}" || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" CONF="${EPREFIX}/etc/ondirrc" install || die
+ dodoc AUTHORS ChangeLog README INSTALL scripts.tcsh scripts.sh || die
+ newdoc ondirrc.eg ondirrc.example || die
+ dohtml changelog.html ondir.1.html || die
+}
diff --git a/app-misc/oneko/Manifest b/app-misc/oneko/Manifest
new file mode 100644
index 000000000000..45c190943c6e
--- /dev/null
+++ b/app-misc/oneko/Manifest
@@ -0,0 +1,4 @@
+DIST oneko-1.2-cat.png 223 SHA256 994dec71c4021f4e228b8c69fcefde5b11244445ff8ff6d43b3790beecef5800 SHA512 f3543be2bac0d14d3db5fe6bc33cf59caae743d547993fe010c79d2bfc6f8720d608026d692733b7519d5b6b99db09f58f34af9bd2d8fcc3556b6994734f24bf WHIRLPOOL 964abd226d16bd6ba469a43775a357782f3d35c73d76c61082a6e9629f33724de4ec81e41dc9efe43081754043165dac7ce2fd790fbc8d043672dc63c8ca2253
+DIST oneko-1.2-dog.png 236 SHA256 5ca2d41b5538618196cfe9e40dd75856fde77fe35cba99ed9b2eacf1fb0e5502 SHA512 11e4a4ecfba26a0ea782846ca288da7ba3f68629dc8f4b0d7987923f06afe57971d53c9161ed13711a9a1f737ea3d8ec76f559311dd10234dca49cfa9d20f533 WHIRLPOOL d6c1545191d46de1a782668b1b29de6e483359a1346efa79adb1a24b6660b55f054d37707d0103ec002ce34a2924f82a6e01d1f84fc4c33337c925991fbfbfc6
+DIST oneko-1.2-sakura-nobsd.patch.bz2 2967 SHA256 335965399706844874a9700d70f66d53a862efa8f49297d67c5ac9f7ab7ec37a SHA512 dbab7471b1c76d8bd7b0c0f9512ce274d98b7e96e8f1cb781a07b031d3a23c0c716222465dee16ad77f658c681116e71e6f8f50ab45ee8f24d132e24fed6849e WHIRLPOOL c600481394d45c5d3f3a7e20a94f5dfeb65ba0101c9609ea185e6b99207ab1f7ff7701a110287f19271fa63c5aac4672c6550884b6491a240f6b99eff1420925
+DIST oneko-1.2.sakura.5.tar.gz 76825 SHA256 2c2e05f1241e9b76f54475b5577cd4fb6670de058218d04a741a04ebd4a2b22f SHA512 328bc267c027dc2bf9f4d0bf7a3a5cfb0f77e7ffe566dad58ba8728a8d72f905ef0b1b92fea77179d1e79886aea8a6b27cda44dc227d96b69ed34b4fdde3ec15 WHIRLPOOL 084c6e44ca0fec0352d227fb2e81427f2a1fb5e3be2153a5e4467e26b2280899b418f2869c63214d7a687a9e32858fe4860fe9c8b276f9917539ee03f386161f
diff --git a/app-misc/oneko/files/oneko-1.2-include.patch b/app-misc/oneko/files/oneko-1.2-include.patch
new file mode 100644
index 000000000000..70b3c2405a5c
--- /dev/null
+++ b/app-misc/oneko/files/oneko-1.2-include.patch
@@ -0,0 +1,10 @@
+--- a/oneko.h
++++ b/oneko.h
+@@ -14,6 +14,7 @@
+
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <unistd.h> /* pause() */
+ #include <string.h>
+
+ #include <signal.h>
diff --git a/app-misc/oneko/metadata.xml b/app-misc/oneko/metadata.xml
new file mode 100644
index 000000000000..731225048652
--- /dev/null
+++ b/app-misc/oneko/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>desktop-misc</herd>
+</pkgmetadata>
diff --git a/app-misc/oneko/oneko-1.2-r2.ebuild b/app-misc/oneko/oneko-1.2-r2.ebuild
new file mode 100644
index 000000000000..76fc65a8d762
--- /dev/null
+++ b/app-misc/oneko/oneko-1.2-r2.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils toolchain-funcs
+
+DESCRIPTION="A cat, dog and others which chase the mouse or windows around the screen"
+HOMEPAGE="http://www.daidouji.com/oneko/"
+SRC_URI="http://www.daidouji.com/oneko/distfiles/${P}.sakura.5.tar.gz
+ mirror://gentoo/${P}-cat.png
+ mirror://gentoo/${P}-dog.png
+ mirror://gentoo/${P}-sakura-nobsd.patch.bz2"
+
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="amd64 ppc ppc64 x86"
+
+RDEPEND="
+ x11-libs/libX11
+ x11-libs/libXext
+"
+DEPEND="
+ ${RDEPEND}
+ x11-misc/gccmakedep
+ x11-misc/imake
+ app-text/rman
+ x11-proto/xextproto
+"
+
+S=${WORKDIR}/oneko-${PV}.sakura.5
+
+src_prepare() {
+ epatch \
+ "${WORKDIR}"/${P}-sakura-nobsd.patch \
+ "${FILESDIR}"/${P}-include.patch
+}
+
+src_configure() {
+ xmkmf -a || die
+}
+
+src_compile() {
+ emake \
+ CC="$(tc-getCC)" \
+ CCOPTIONS="${CFLAGS}" \
+ EXTRA_LDOPTIONS="${LDFLAGS}" \
+ || die
+}
+
+src_install() {
+ dobin oneko
+ newman oneko._man oneko.1x
+ dodoc README README-NEW README-SUPP
+ newicon "${DISTDIR}/${P}-cat.png" "cat.png"
+ newicon "${DISTDIR}/${P}-dog.png" "dog.png"
+ make_desktop_entry "oneko" "oneko (cat)" "cat" "Game;Amusement"
+ make_desktop_entry "oneko -dog" "oneko (dog)" "dog" "Game;Amusement"
+ make_desktop_entry "killall -TERM oneko" "oneko kill" "" "Game;Amusement"
+}
+
+pkg_postinst() {
+ elog "To kill oneko, type the following in a terminal:"
+ elog ""
+ elog "killall oneko"
+ elog ""
+ elog "If your mouse cursor changes to the default black cross"
+ elog "after running ${PN}, you should emerge x11-apps/xsetroot"
+ elog "and run:"
+ elog ""
+ elog "xsetroot -cursor_name left_ptr"
+ elog ""
+}
diff --git a/app-misc/pal/Manifest b/app-misc/pal/Manifest
new file mode 100644
index 000000000000..a392d585572c
--- /dev/null
+++ b/app-misc/pal/Manifest
@@ -0,0 +1 @@
+DIST pal-0.4.3.tgz 130865 SHA256 ce470cb7be76522ff58cd0325ad7817b6cc2132a5e0cea55de8c9eb63b54551c SHA512 8d543706e6dcabbdeb246ff18917b490da43c3211266dc67417906eb92602a107b066e2cb156da2b5362a19ac4992d1f21dc873485d3250912a53143f8257bf8 WHIRLPOOL ffe71469258a9f78ce47deed4b488b49df466c6ed2144186852ade1a55ee670747580ff18140dba92b007c148701bfa8a2c68a260259831f5eb357f5c8bf4d5c
diff --git a/app-misc/pal/files/0.4.3-ldflags.patch b/app-misc/pal/files/0.4.3-ldflags.patch
new file mode 100644
index 000000000000..0bfd750ac5e7
--- /dev/null
+++ b/app-misc/pal/files/0.4.3-ldflags.patch
@@ -0,0 +1,8 @@
+--- a/src/Makefile.defs
++++ b/src/Makefile.defs
+@@ -25,4 +25,4 @@
+
+ CFLAGS = ${OPT}
+ CPPFLAGS = ${INCLDIR} ${DEFS}
+-LDFLAGS = ${LIBDIR} ${LIBS}
++LDFLAGS = ${LIBDIR} ${LIBS} ${LDOPT}
diff --git a/app-misc/pal/files/0.4.3-strip.patch b/app-misc/pal/files/0.4.3-strip.patch
new file mode 100644
index 000000000000..b3bfe3fd99f1
--- /dev/null
+++ b/app-misc/pal/files/0.4.3-strip.patch
@@ -0,0 +1,17 @@
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -21,10 +21,10 @@
+ $(NAME): $(OBJ)
+ @echo " [gcc] $(NAME)"
+ @$(CC) $(CFLAGS) $(OBJ) $(LDFLAGS) -o $(NAME)
+-ifneq ($(DEBUG),1)
+- @echo " [strip] $(NAME)"
+- @strip $(NAME)
+-endif
++#ifneq ($(DEBUG),1)
++# @echo " [strip] $(NAME)"
++# @strip $(NAME)
++#endif
+
+
+
diff --git a/app-misc/pal/files/pal-0.4.3-pkg_config.patch b/app-misc/pal/files/pal-0.4.3-pkg_config.patch
new file mode 100644
index 000000000000..2a299538e999
--- /dev/null
+++ b/app-misc/pal/files/pal-0.4.3-pkg_config.patch
@@ -0,0 +1,14 @@
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -2,9 +2,9 @@
+
+ include Makefile.defs
+
+-INCLDIR = -I${prefix}/include `pkg-config --cflags glib-2.0`
++INCLDIR = -I${prefix}/include $(shell ${PKG_CONFIG} --cflags glib-2.0)
+ LIBDIR =
+-LIBS = `pkg-config --libs glib-2.0` -lreadline -lncurses
++LIBS = $(shell ${PKG_CONFIG} --libs glib-2.0) -lreadline $(shell ${PKG_CONFIG} --libs ncurses)
+
+ SRC = main.c colorize.c output.c input.c event.c rl.c html.c latex.c \
+ add.c edit.c del.c remind.c search.c manage.c
diff --git a/app-misc/pal/files/pal-0.4.3-prefix.patch b/app-misc/pal/files/pal-0.4.3-prefix.patch
new file mode 100644
index 000000000000..08dfba41c7e7
--- /dev/null
+++ b/app-misc/pal/files/pal-0.4.3-prefix.patch
@@ -0,0 +1,44 @@
+--- a/src/Makefile.defs
++++ b/src/Makefile.defs
+@@ -3,7 +3,7 @@
+
+ # directory to install to. Depending on your distribution, you might
+ # want to change this to /usr/local
+-prefix = /usr
++prefix = @GENTOO_PORTAGE_EPREFIX@/usr
+ CC = gcc
+
+ PAL_VERSION = 0.3.5_pre1
+--- a/src/input.c
++++ b/src/input.c
+@@ -567,7 +567,7 @@
+ }
+
+ /* attempt to copy /etc/pal.conf to ~/.pal/pal.conf */
+- file = fopen("/etc/pal.conf", "r");
++ file = fopen("@GENTOO_PORTAGE_EPREFIX@/etc/pal.conf", "r");
+
+ /* if not found, try PREFIX/share/pal/pal.conf instead */
+ /* NOTE: This is will be removed in the future */
+@@ -577,7 +577,7 @@
+
+ if(file == NULL)
+ {
+- pal_output_error(_("ERROR: Can't open file: /etc/pal.conf\n"));
++ pal_output_error(_("ERROR: Can't open file: @GENTOO_PORTAGE_EPREFIX@/etc/pal.conf\n"));
+ pal_output_error(_("ERROR: Can't open file: " PREFIX "/share/pal/pal.conf\n"));
+ pal_output_error(_("ERROR: This indicates an improper installation.\n"));
+ return ht;
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -51,8 +51,8 @@
+ @echo " --- Installing global data --- "
+ @mkdir -p ${DESTDIR}${prefix}/share/pal;
+ install -m 0644 -o root ../share/*.pal ${DESTDIR}${prefix}/share/pal
+- @mkdir -p ${DESTDIR}/etc;
+- install -m 0644 -o root ../pal.conf ${DESTDIR}/etc/
++ @mkdir -p ${DESTDIR}@GENTOO_PORTAGE_EPREFIX@/etc;
++ install -m 0644 -o root ../pal.conf ${DESTDIR}@GENTOO_PORTAGE_EPREFIX@/etc/
+ @echo
+
+ # "install" will install the files needed by pal and also check to see
diff --git a/app-misc/pal/metadata.xml b/app-misc/pal/metadata.xml
new file mode 100644
index 000000000000..4bcaedf05298
--- /dev/null
+++ b/app-misc/pal/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>
+ <email>maintainer-needed@gentoo.org</email>
+ </maintainer>
+ <longdescription>
+ pal is a command-line calendar program for Unix/Linux systems that can keep
+ track of events. It has similarities with the Unix cal command, the more
+ complex GNU gcal program and the calendar program distributed with the BSDs.
+</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">palcal</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/pal/pal-0.4.3-r1.ebuild b/app-misc/pal/pal-0.4.3-r1.ebuild
new file mode 100644
index 000000000000..b312cf2c0baa
--- /dev/null
+++ b/app-misc/pal/pal-0.4.3-r1.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils prefix toolchain-funcs
+
+DESCRIPTION="pal command-line calendar program"
+HOMEPAGE="http://palcal.sourceforge.net/"
+SRC_URI="mirror://sourceforge/palcal/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~hppa ppc x86 ~x86-interix ~amd64-linux ~x86-linux ~x86-macos"
+IUSE="nls"
+
+RDEPEND="
+ >=dev-libs/glib-2.0
+ nls? ( virtual/libintl )
+ sys-libs/ncurses
+ sys-libs/readline
+"
+DEPEND="
+ ${RDEPEND}
+ nls? ( sys-devel/gettext )
+ virtual/pkgconfig
+"
+
+S=${WORKDIR}/${P}/src
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PV}-strip.patch
+ epatch "${FILESDIR}"/${PV}-ldflags.patch
+ epatch "${FILESDIR}"/${P}-pkg_config.patch
+ epatch "${FILESDIR}"/${P}-prefix.patch
+
+ eprefixify Makefile.defs input.c Makefile
+ sed -i -e 's/ -o root//g' {.,convert}/Makefile || die
+
+ tc-export PKG_CONFIG
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" OPT="${CFLAGS}" LDOPT="${LDFLAGS}"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install-man install-bin install-share
+
+ if use nls; then
+ emake DESTDIR="${D}" install-mo
+ fi
+
+ dodoc "${WORKDIR}"/${P}/{ChangeLog,doc/example.css}
+}
diff --git a/app-misc/pax-utils/Manifest b/app-misc/pax-utils/Manifest
new file mode 100644
index 000000000000..893520fbed53
--- /dev/null
+++ b/app-misc/pax-utils/Manifest
@@ -0,0 +1,17 @@
+DIST pax-utils-0.2.1.tar.bz2 80580 SHA256 6a5beefb686e425eb6829bc716d2b32b64c2e854287c212c9853bc2beb705c3a SHA512 a8c18a4538227e0a9d34d9e6e6f4c99f50de376b876032092175a7a277d8f5982495ebb28542fddc7361b649e30528a775817749be0c13bd24244bf3c80a57dc WHIRLPOOL 4a77d3ea435a9905a93f0bfc2f1ee33fc709ef7d71e48c44b1b33277ccbd34d586f404c3f7004450612a68f7d4b9810d1cb98c1f255e9d8e0e87fa6fe157eccc
+DIST pax-utils-0.2.2.tar.bz2 80999 SHA256 eac86abe7871ee12452d221c1e7c21acb9ba78ba2cba1daa587d3c93c77acd07 SHA512 ed1e2e80fd9a3a24bf520b01f6ab3dc63d3aa48915cd896ca9c98c443ca80a06b7ef00aefee52e770f3fd211257989624b4fcd0b96c6a6cb2f13f9d0fe7a8d84 WHIRLPOOL e1281fc0265e159d4a8085220ed239572f1dea3d269cc4e3f5bba06b0cac7a3091e44924137bf75acc38f999caf16893f978516f3ea4c99caf58f91e5336304d
+DIST pax-utils-0.2.3.tar.xz 76652 SHA256 b2cdc20a0c67b78753ff4c4cbaa84b8175b0e2eb926de7390daef34a19297285 SHA512 98ad1410eaf42fd1a279523f73b89166d57e630e0e402343b48b32913c62017eec19aefdc92327a32ef27273d360defbefc9c8b9607747db22224643c03a901a WHIRLPOOL b26569ffe566d12c7097e9fd07b3f9335aaa2a9640c28a3178f28dedd5fcb2305e507f6c34902183d3a6612efe212e5314d3fc89f0d0f8ff59f6568c8245668f
+DIST pax-utils-0.3.0.tar.xz 79892 SHA256 d6d2992a40d89ab02d39a90d3c88ef553ecf1c9b93bae82efe16453b9152696a SHA512 0192c95d210a348e1aaec5b7cce14978447e5fb3c5da234e0244b78db096a04bc53d07b457839c16b6a98cadcae6bb3d9e8bb1e807d920c92c271184f1b03a0d WHIRLPOOL 9c5be4c94b1d619c6f8ee6ec039957765226867a0faefc18b689b61a2874b27a42e13c7572dd4b467948eefbd4d5fd1c9be0788d3f53310045e703ea362efddc
+DIST pax-utils-0.4.tar.xz 80300 SHA256 2a19285f5793fa30a6540ae67511cd5dabd543cc11130dd2eb741edfd2fc1e7f SHA512 3b9242805a042dc6bf53bfa8355f5f157425a944c49a780ae131642484463aa63cf62959075215cb9dde02b15cdab2210e7ad4f4498dad8218ada9459dbd3be8 WHIRLPOOL e33b91df453d52cbb95ad51bffc307cf5c450ba006a9671217818da870131255529452f3fd4c8644fb09ad28a1faa5f8fd5461e4f1c48349d44233eb502bc53d
+DIST pax-utils-0.5.tar.xz 80672 SHA256 1ba4f5e8680449c18841db2397aca320527fb06628b4ad9212e42f5e01de833b SHA512 6831d2495298c16f3eddc1fe2af5864775acbdd9feac17d8660b1a4e807acdb9c121ae667cf2476887e776cae39334ea4f93d2e5f46c8c739d3044db8cfd9248 WHIRLPOOL 73bf1a1875c465afbf3418d286cc7d42b18eb5560f0a941ab7be0745a640fce0fdb1a084ac9dabedf2a1833b9282a9256c1b08b8c9242b69e211f15d3e45ce55
+DIST pax-utils-0.6.tar.xz 87548 SHA256 1ffd4bf7bf3f8bb404007dd1617edfb0297e4c65a2c1153712e4a76875038784 SHA512 1d13659f647cf1f6301fda124cf7092c8e40e3772b4dae9f19f66329c40239f5ee07730c14538bdbfaa65e890515e0468476c8a88850f6d24ea2268a9fdb4193 WHIRLPOOL b889d61f8dbaf2ac06ca532ca381d375d0cef5d8c6fae763fa2c8e12cffa9244e637f90de29cb3ce024a15da143a388499be9654d1a3b9c93c408f4e93e3bc78
+DIST pax-utils-0.7.tar.xz 90188 SHA256 1ac4cee9a9ca97a723505eb29a25e50adeccffba3f0f0ef4f035cf082caf3b84 SHA512 d99f325b1d3ffc4955bc09aedcbeabea2d87a9647da31db1518de9daa55fbe0e5dd09feedd8dbcd8c4b53825a788ae7c9b904a927abc9ae995385dfd00d44f4a WHIRLPOOL dac9bb6c4e9bbf2b374371009ec16e9bf0e7a69e33494511f99e1cf2c34f684638fa8069a9f3845b8b91edea2927f18f410b9c6e62718c376b96c11d92c84634
+DIST pax-utils-0.8.1.tar.xz 94772 SHA256 844ff25b1a11bcef92ef34b22f576f226a772b67196818656f8874513438f5b9 SHA512 bd8ae0c35058b79a99bcbb5df234c8d4a02ccf0ebd4b06cc30cdb01bc50b7e5ba6cc5cbbf820a0d57dcdc751fd1ea81d5969a4447c4594ab170958edabe41740 WHIRLPOOL 3932cd20479ecbe3d99a6d6e5ce1fd5a5a9d9c96986eccb6cd282457a83d165f1964cfdc232c53cedc1c0dbc391b992129fd1610919cf98f0177e037fa7eed06
+DIST pax-utils-0.9.1.tar.xz 668824 SHA256 643ccaf6952f836c42aafcd5ad7e5f7de2d3472225a34603680b151a8b198b0c SHA512 718cf371a2b14333fcc47e7c250ba4996bc2f4b3cab3373524215c74cdf979669cfd47b48f1b08214fb958e65e7ce83ecd74bd855f5e008d235fa6c4c57dad8e WHIRLPOOL 1dbd064a57c5b4f7a988f8e3487d51c7835be8cd6e070d8aab6d143139f5f3003d482887ed18438bc3b1ab24624e3aa2bc88d699bd8cee15703b42b0647996b4
+DIST pax-utils-0.9.2.tar.xz 675804 SHA256 578801df0661b1b7b8fed0ce4a9859239f919fd37529907681e51091a1bcb4de SHA512 476517e6deb76f34fee0f8ce298103bbcace04192380d13b743a9948e3afba0fca2743f4eceb9bacad84e1f8916f17919a53781f8fbad83326d8a36db04d2c2e WHIRLPOOL 0260e72974b7682864718d0d21b4128207c78d6e13125f5c9666f649b7a638e2c944c6157cd56d475528c7715ad7da76375614ce5d5cc5b191f95c94bf935e00
+DIST pax-utils-1.0.1.tar.xz 619788 SHA256 87654ec8c207ab35fc05e96ec89b196cf7ab765e0e7919015ccaa7f0e66e246c SHA512 f41e8188254dd1290eba4b36f3b22f2e4422ac03c234ba7438490ae0025a03a4ede05827023a8ccca913ebe44237c248455df47cb4dc63c85056511230e66eff WHIRLPOOL bdcad84ee44b855beff64ff06271b5eda252b10490714b8f22421fbf3b57eac8476fd061efb4d10745ff9a55d465da15dc417844dd13342fa394e709c018fdee
+DIST pax-utils-1.0.2.tar.xz 621068 SHA256 b8395de0f414a70fa74234c43a10666fd8ba311488c5b7c2eb6f055aea45e094 SHA512 268edd05ec30d723d198a49c7023068274b4f5187cf18582006b23d483a6889743cdb733b65f59f2e963a371220e31211dc43cd655c53cab4bf08645dcf7a9ff WHIRLPOOL c87c78db0e13edf6b477b9f0f5e251e80edbc25a40f0e7341fe20600140af929b576aa10217b331a2783034bc568eba3ff786a50496bf41f64381f0aa0e252a5
+DIST pax-utils-1.0.3.tar.xz 621460 SHA256 8535a94e1f77841da92d5526d2935abb786437fdf11be9ed077a78ab5e6b5670 SHA512 3f8654a3bd66177a39b7f0e9a7ffc0f127e5529f4f45c8c1beea5eb92060bf01f205daf22cdeb4e50ee1022d170307fc70c1d73b197405be7a6bc9acec621d26 WHIRLPOOL 1930e7d575357a67e07ee5ed9c559cd0501588d6c739ded10fecf215ce8746b0ffbe55d0e0cee739c6f5aee62630f45f7af211e853f9cc3b3418f4961391a2a8
+DIST pax-utils-1.0.4.tar.xz 622280 SHA256 f7e16cf22d4dc431feb49d3fad21fd7f9703ec3a9b5bde24fe426891a376d5f3 SHA512 73051b77cc6c0411b4747082a806a620edc60eb89b061208246fd22dc107cfbf92767d56c012fd57eda1fb8cd40365b6b4f87fdc2217c9437be7d71a407a0f66 WHIRLPOOL 5ab2fd742a194e8e4e8381d8a721da4d9fe8c0fb5dbaf873d2887abf4741263f6072191eddc033b6a572faa92ff5dde1bfedd68ad053f4488101df935acd0b3b
+DIST pax-utils-1.0.5.tar.xz 622532 SHA256 f69a9938e4af7912d26d585094bc0203e43571a990fdd048319088a8b8ad906f SHA512 e8e07acf8295d90f30ea464e8060ae66ffabfa79a22b44e8c00eebf532ef78eb987eb7b69ecbf9f5bd25ec3e3964a746f546abbf111e065c5683c9f47194d026 WHIRLPOOL 0ac1ec6191106f20da3ba2a1a7ffe9ad7db184d1b79d13800b0844b7e250eadc750735dfeba70858d0b845669812be0fd761c26036d022322f251024bb437272
+DIST pax-utils-1.0.tar.xz 619104 SHA256 c39fcc181c7c6a03527687d9977e1c2ce2b47b28918426a057d56b43a429e312 SHA512 ec44e5f848e64ba70eeb2ca670189c84a0b0d36ee745ae956ee56d291dd3c5b3fe56527867a52e264babfbaaad49ec59338fadc297256a7a4708cf65f97db4c5 WHIRLPOOL 86f91917d7723066a849f2225987b9739f3c484626735c77ee27286ea1785e316b374110226688ad8d380b90b5aa140e1060cc2411cd6d1d250a1918ed33d575
diff --git a/app-misc/pax-utils/metadata.xml b/app-misc/pax-utils/metadata.xml
new file mode 100644
index 000000000000..e812a23bb21c
--- /dev/null
+++ b/app-misc/pax-utils/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>
+ <email>vapier@gentoo.org</email>
+ <description>Maintainer</description>
+ </maintainer>
+ <longdescription>A suite of ELF tools to aid auditing systems. Contains various ELF related utils for ELF32, ELF64 binaries useful for displaying PaX and security info on a large groups of binary files.</longdescription>
+ <use>
+ <flag name='python'>Install a more powerful/faster version of lddtree</flag>
+ </use>
+</pkgmetadata>
diff --git a/app-misc/pax-utils/pax-utils-0.2.1.ebuild b/app-misc/pax-utils/pax-utils-0.2.1.ebuild
new file mode 100644
index 000000000000..83f641a3401e
--- /dev/null
+++ b/app-misc/pax-utils/pax-utils-0.2.1.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit toolchain-funcs
+
+DESCRIPTION="ELF related utils for ELF 32/64 binaries that can check files for security relevant properties"
+HOMEPAGE="http://hardened.gentoo.org/pax-utils.xml"
+SRC_URI="mirror://gentoo/pax-utils-${PV}.tar.bz2
+ http://dev.gentoo.org/~solar/pax/pax-utils-${PV}.tar.bz2
+ http://dev.gentoo.org/~vapier/dist/pax-utils-${PV}.tar.bz2"
+#SRC_URI="http://wh0rd.org/pax-utils-${PV}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
+IUSE="caps"
+#RESTRICT="mirror"
+
+DEPEND="caps? ( sys-libs/libcap )"
+
+src_compile() {
+ emake CC="$(tc-getCC)" USE_CAP=$(use caps && echo yes) || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+ dodoc BUGS README TODO
+}
diff --git a/app-misc/pax-utils/pax-utils-0.2.2.ebuild b/app-misc/pax-utils/pax-utils-0.2.2.ebuild
new file mode 100644
index 000000000000..83f641a3401e
--- /dev/null
+++ b/app-misc/pax-utils/pax-utils-0.2.2.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit toolchain-funcs
+
+DESCRIPTION="ELF related utils for ELF 32/64 binaries that can check files for security relevant properties"
+HOMEPAGE="http://hardened.gentoo.org/pax-utils.xml"
+SRC_URI="mirror://gentoo/pax-utils-${PV}.tar.bz2
+ http://dev.gentoo.org/~solar/pax/pax-utils-${PV}.tar.bz2
+ http://dev.gentoo.org/~vapier/dist/pax-utils-${PV}.tar.bz2"
+#SRC_URI="http://wh0rd.org/pax-utils-${PV}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
+IUSE="caps"
+#RESTRICT="mirror"
+
+DEPEND="caps? ( sys-libs/libcap )"
+
+src_compile() {
+ emake CC="$(tc-getCC)" USE_CAP=$(use caps && echo yes) || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+ dodoc BUGS README TODO
+}
diff --git a/app-misc/pax-utils/pax-utils-0.2.3.ebuild b/app-misc/pax-utils/pax-utils-0.2.3.ebuild
new file mode 100644
index 000000000000..b7da82b1281c
--- /dev/null
+++ b/app-misc/pax-utils/pax-utils-0.2.3.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit toolchain-funcs unpacker
+
+DESCRIPTION="ELF related utils for ELF 32/64 binaries that can check files for security relevant properties"
+HOMEPAGE="http://hardened.gentoo.org/pax-utils.xml"
+SRC_URI="mirror://gentoo/pax-utils-${PV}.tar.xz
+ http://dev.gentoo.org/~solar/pax/pax-utils-${PV}.tar.xz
+ http://dev.gentoo.org/~vapier/dist/pax-utils-${PV}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
+IUSE="caps"
+#RESTRICT="mirror"
+
+RDEPEND="caps? ( sys-libs/libcap )"
+DEPEND="${RDEPEND}
+ app-arch/xz-utils"
+
+src_compile() {
+ emake CC="$(tc-getCC)" USE_CAP=$(use caps && echo yes) || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+ dodoc BUGS README TODO
+}
diff --git a/app-misc/pax-utils/pax-utils-0.3.0.ebuild b/app-misc/pax-utils/pax-utils-0.3.0.ebuild
new file mode 100644
index 000000000000..c4c5ba0844f3
--- /dev/null
+++ b/app-misc/pax-utils/pax-utils-0.3.0.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit toolchain-funcs unpacker
+
+DESCRIPTION="ELF related utils for ELF 32/64 binaries that can check files for security relevant properties"
+HOMEPAGE="http://hardened.gentoo.org/pax-utils.xml"
+SRC_URI="mirror://gentoo/pax-utils-${PV}.tar.xz
+ http://dev.gentoo.org/~solar/pax/pax-utils-${PV}.tar.xz
+ http://dev.gentoo.org/~vapier/dist/pax-utils-${PV}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
+IUSE="caps"
+#RESTRICT="mirror"
+
+RDEPEND="caps? ( sys-libs/libcap )"
+DEPEND="${RDEPEND}
+ app-arch/xz-utils"
+
+src_compile() {
+ emake CC="$(tc-getCC)" USE_CAP=$(use caps && echo yes) || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+ dodoc BUGS README TODO
+}
diff --git a/app-misc/pax-utils/pax-utils-0.4.ebuild b/app-misc/pax-utils/pax-utils-0.4.ebuild
new file mode 100644
index 000000000000..e7fd801369db
--- /dev/null
+++ b/app-misc/pax-utils/pax-utils-0.4.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit eutils toolchain-funcs unpacker
+
+DESCRIPTION="ELF related utils for ELF 32/64 binaries that can check files for security relevant properties"
+HOMEPAGE="http://hardened.gentoo.org/pax-utils.xml"
+SRC_URI="mirror://gentoo/pax-utils-${PV}.tar.xz
+ http://dev.gentoo.org/~solar/pax/pax-utils-${PV}.tar.xz
+ http://dev.gentoo.org/~vapier/dist/pax-utils-${PV}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
+IUSE="caps"
+#RESTRICT="mirror"
+
+RDEPEND="caps? ( sys-libs/libcap )"
+DEPEND="${RDEPEND}
+ app-arch/xz-utils"
+
+src_compile() {
+ emake CC="$(tc-getCC)" USE_CAP=$(usex caps) || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" PKGDOCDIR='$(DOCDIR)'/${PF} install || die
+ prepalldocs
+}
diff --git a/app-misc/pax-utils/pax-utils-0.5.ebuild b/app-misc/pax-utils/pax-utils-0.5.ebuild
new file mode 100644
index 000000000000..94b8b584dc48
--- /dev/null
+++ b/app-misc/pax-utils/pax-utils-0.5.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit eutils toolchain-funcs unpacker
+
+DESCRIPTION="ELF related utils for ELF 32/64 binaries that can check files for security relevant properties"
+HOMEPAGE="http://hardened.gentoo.org/pax-utils.xml"
+SRC_URI="mirror://gentoo/pax-utils-${PV}.tar.xz
+ http://dev.gentoo.org/~solar/pax/pax-utils-${PV}.tar.xz
+ http://dev.gentoo.org/~vapier/dist/pax-utils-${PV}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
+IUSE="caps"
+#RESTRICT="mirror"
+
+RDEPEND="caps? ( sys-libs/libcap )"
+DEPEND="${RDEPEND}
+ app-arch/xz-utils"
+
+src_compile() {
+ emake CC="$(tc-getCC)" USE_CAP=$(usex caps) || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" PKGDOCDIR='$(DOCDIR)'/${PF} install || die
+ prepalldocs
+}
diff --git a/app-misc/pax-utils/pax-utils-0.6.ebuild b/app-misc/pax-utils/pax-utils-0.6.ebuild
new file mode 100644
index 000000000000..704943f25006
--- /dev/null
+++ b/app-misc/pax-utils/pax-utils-0.6.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit eutils toolchain-funcs unpacker
+
+DESCRIPTION="ELF related utils for ELF 32/64 binaries that can check files for security relevant properties"
+HOMEPAGE="http://hardened.gentoo.org/pax-utils.xml"
+SRC_URI="mirror://gentoo/pax-utils-${PV}.tar.xz
+ http://dev.gentoo.org/~solar/pax/pax-utils-${PV}.tar.xz
+ http://dev.gentoo.org/~vapier/dist/pax-utils-${PV}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
+IUSE="caps python"
+#RESTRICT="mirror"
+
+RDEPEND="caps? ( sys-libs/libcap )
+ python? ( dev-python/pyelftools )"
+DEPEND="${RDEPEND}
+ app-arch/xz-utils"
+
+_emake() {
+ emake \
+ USE_CAP=$(usex caps) \
+ USE_PYTHON=$(usex python) \
+ "$@" || die
+}
+
+src_compile() {
+ _emake CC="$(tc-getCC)"
+}
+
+src_install() {
+ _emake DESTDIR="${D}" PKGDOCDIR='$(DOCDIR)'/${PF} install
+ prepalldocs
+}
diff --git a/app-misc/pax-utils/pax-utils-0.7.ebuild b/app-misc/pax-utils/pax-utils-0.7.ebuild
new file mode 100644
index 000000000000..09c51aad09d8
--- /dev/null
+++ b/app-misc/pax-utils/pax-utils-0.7.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit eutils toolchain-funcs unpacker
+
+DESCRIPTION="ELF related utils for ELF 32/64 binaries that can check files for security relevant properties"
+HOMEPAGE="http://hardened.gentoo.org/pax-utils.xml"
+SRC_URI="mirror://gentoo/pax-utils-${PV}.tar.xz
+ http://dev.gentoo.org/~solar/pax/pax-utils-${PV}.tar.xz
+ http://dev.gentoo.org/~vapier/dist/pax-utils-${PV}.tar.xz"
+
+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="caps python"
+#RESTRICT="mirror"
+
+RDEPEND="caps? ( sys-libs/libcap )
+ python? ( dev-python/pyelftools )"
+DEPEND="${RDEPEND}
+ app-arch/xz-utils"
+
+_emake() {
+ emake \
+ USE_CAP=$(usex caps) \
+ USE_PYTHON=$(usex python) \
+ "$@"
+}
+
+src_compile() {
+ _emake CC="$(tc-getCC)"
+}
+
+src_test() {
+ _emake check
+}
+
+src_install() {
+ _emake DESTDIR="${ED}" PKGDOCDIR='$(DOCDIR)'/${PF} install
+}
diff --git a/app-misc/pax-utils/pax-utils-0.8.1.ebuild b/app-misc/pax-utils/pax-utils-0.8.1.ebuild
new file mode 100644
index 000000000000..09c51aad09d8
--- /dev/null
+++ b/app-misc/pax-utils/pax-utils-0.8.1.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit eutils toolchain-funcs unpacker
+
+DESCRIPTION="ELF related utils for ELF 32/64 binaries that can check files for security relevant properties"
+HOMEPAGE="http://hardened.gentoo.org/pax-utils.xml"
+SRC_URI="mirror://gentoo/pax-utils-${PV}.tar.xz
+ http://dev.gentoo.org/~solar/pax/pax-utils-${PV}.tar.xz
+ http://dev.gentoo.org/~vapier/dist/pax-utils-${PV}.tar.xz"
+
+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="caps python"
+#RESTRICT="mirror"
+
+RDEPEND="caps? ( sys-libs/libcap )
+ python? ( dev-python/pyelftools )"
+DEPEND="${RDEPEND}
+ app-arch/xz-utils"
+
+_emake() {
+ emake \
+ USE_CAP=$(usex caps) \
+ USE_PYTHON=$(usex python) \
+ "$@"
+}
+
+src_compile() {
+ _emake CC="$(tc-getCC)"
+}
+
+src_test() {
+ _emake check
+}
+
+src_install() {
+ _emake DESTDIR="${ED}" PKGDOCDIR='$(DOCDIR)'/${PF} install
+}
diff --git a/app-misc/pax-utils/pax-utils-0.9.1.ebuild b/app-misc/pax-utils/pax-utils-0.9.1.ebuild
new file mode 100644
index 000000000000..092f5c1b7837
--- /dev/null
+++ b/app-misc/pax-utils/pax-utils-0.9.1.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+inherit eutils toolchain-funcs unpacker
+
+DESCRIPTION="ELF related utils for ELF 32/64 binaries that can check files for security relevant properties"
+HOMEPAGE="http://hardened.gentoo.org/pax-utils.xml"
+SRC_URI="mirror://gentoo/pax-utils-${PV}.tar.xz
+ http://dev.gentoo.org/~solar/pax/pax-utils-${PV}.tar.xz
+ http://dev.gentoo.org/~vapier/dist/pax-utils-${PV}.tar.xz"
+
+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="caps python"
+
+RDEPEND="caps? ( sys-libs/libcap )
+ python? ( dev-python/pyelftools )"
+DEPEND="${RDEPEND}
+ app-arch/xz-utils"
+
+_emake() {
+ emake \
+ USE_CAP=$(usex caps) \
+ USE_PYTHON=$(usex python) \
+ "$@"
+}
+
+src_configure() {
+ # Avoid slow configure+gnulib+make if on an up-to-date Linux system
+ if use prefix || ! use kernel_linux || \
+ has_version '<sys-libs/glibc-2.10'
+ then
+ econf $(use_with caps) $(use_with python)
+ else
+ tc-export CC
+ fi
+}
+
+src_compile() {
+ _emake
+}
+
+src_test() {
+ _emake check
+}
+
+src_install() {
+ _emake DESTDIR="${ED}" PKGDOCDIR='$(DOCDIR)'/${PF} install
+}
diff --git a/app-misc/pax-utils/pax-utils-0.9.2.ebuild b/app-misc/pax-utils/pax-utils-0.9.2.ebuild
new file mode 100644
index 000000000000..092f5c1b7837
--- /dev/null
+++ b/app-misc/pax-utils/pax-utils-0.9.2.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+inherit eutils toolchain-funcs unpacker
+
+DESCRIPTION="ELF related utils for ELF 32/64 binaries that can check files for security relevant properties"
+HOMEPAGE="http://hardened.gentoo.org/pax-utils.xml"
+SRC_URI="mirror://gentoo/pax-utils-${PV}.tar.xz
+ http://dev.gentoo.org/~solar/pax/pax-utils-${PV}.tar.xz
+ http://dev.gentoo.org/~vapier/dist/pax-utils-${PV}.tar.xz"
+
+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="caps python"
+
+RDEPEND="caps? ( sys-libs/libcap )
+ python? ( dev-python/pyelftools )"
+DEPEND="${RDEPEND}
+ app-arch/xz-utils"
+
+_emake() {
+ emake \
+ USE_CAP=$(usex caps) \
+ USE_PYTHON=$(usex python) \
+ "$@"
+}
+
+src_configure() {
+ # Avoid slow configure+gnulib+make if on an up-to-date Linux system
+ if use prefix || ! use kernel_linux || \
+ has_version '<sys-libs/glibc-2.10'
+ then
+ econf $(use_with caps) $(use_with python)
+ else
+ tc-export CC
+ fi
+}
+
+src_compile() {
+ _emake
+}
+
+src_test() {
+ _emake check
+}
+
+src_install() {
+ _emake DESTDIR="${ED}" PKGDOCDIR='$(DOCDIR)'/${PF} install
+}
diff --git a/app-misc/pax-utils/pax-utils-1.0.1.ebuild b/app-misc/pax-utils/pax-utils-1.0.1.ebuild
new file mode 100644
index 000000000000..93e641feb0a6
--- /dev/null
+++ b/app-misc/pax-utils/pax-utils-1.0.1.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+inherit eutils toolchain-funcs unpacker
+
+DESCRIPTION="ELF related utils for ELF 32/64 binaries that can check files for security relevant properties"
+HOMEPAGE="https://wiki.gentoo.org/index.php?title=Project:Hardened/PaX_Utilities"
+SRC_URI="mirror://gentoo/pax-utils-${PV}.tar.xz
+ http://dev.gentoo.org/~solar/pax/pax-utils-${PV}.tar.xz
+ http://dev.gentoo.org/~vapier/dist/pax-utils-${PV}.tar.xz"
+
+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="caps python"
+
+RDEPEND="caps? ( sys-libs/libcap )
+ python? ( dev-python/pyelftools )"
+DEPEND="${RDEPEND}
+ app-arch/xz-utils"
+
+_emake() {
+ emake \
+ USE_CAP=$(usex caps) \
+ USE_PYTHON=$(usex python) \
+ "$@"
+}
+
+src_configure() {
+ # Avoid slow configure+gnulib+make if on an up-to-date Linux system
+ if use prefix || ! use kernel_linux || \
+ has_version '<sys-libs/glibc-2.10'
+ then
+ econf $(use_with caps) $(use_with python)
+ else
+ tc-export CC
+ fi
+}
+
+src_compile() {
+ _emake
+}
+
+src_test() {
+ _emake check
+}
+
+src_install() {
+ _emake DESTDIR="${ED}" PKGDOCDIR='$(DOCDIR)'/${PF} install
+}
diff --git a/app-misc/pax-utils/pax-utils-1.0.2.ebuild b/app-misc/pax-utils/pax-utils-1.0.2.ebuild
new file mode 100644
index 000000000000..93e641feb0a6
--- /dev/null
+++ b/app-misc/pax-utils/pax-utils-1.0.2.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+inherit eutils toolchain-funcs unpacker
+
+DESCRIPTION="ELF related utils for ELF 32/64 binaries that can check files for security relevant properties"
+HOMEPAGE="https://wiki.gentoo.org/index.php?title=Project:Hardened/PaX_Utilities"
+SRC_URI="mirror://gentoo/pax-utils-${PV}.tar.xz
+ http://dev.gentoo.org/~solar/pax/pax-utils-${PV}.tar.xz
+ http://dev.gentoo.org/~vapier/dist/pax-utils-${PV}.tar.xz"
+
+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="caps python"
+
+RDEPEND="caps? ( sys-libs/libcap )
+ python? ( dev-python/pyelftools )"
+DEPEND="${RDEPEND}
+ app-arch/xz-utils"
+
+_emake() {
+ emake \
+ USE_CAP=$(usex caps) \
+ USE_PYTHON=$(usex python) \
+ "$@"
+}
+
+src_configure() {
+ # Avoid slow configure+gnulib+make if on an up-to-date Linux system
+ if use prefix || ! use kernel_linux || \
+ has_version '<sys-libs/glibc-2.10'
+ then
+ econf $(use_with caps) $(use_with python)
+ else
+ tc-export CC
+ fi
+}
+
+src_compile() {
+ _emake
+}
+
+src_test() {
+ _emake check
+}
+
+src_install() {
+ _emake DESTDIR="${ED}" PKGDOCDIR='$(DOCDIR)'/${PF} install
+}
diff --git a/app-misc/pax-utils/pax-utils-1.0.3.ebuild b/app-misc/pax-utils/pax-utils-1.0.3.ebuild
new file mode 100644
index 000000000000..e58aca45647e
--- /dev/null
+++ b/app-misc/pax-utils/pax-utils-1.0.3.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+inherit eutils toolchain-funcs unpacker
+
+DESCRIPTION="ELF related utils for ELF 32/64 binaries that can check files for security relevant properties"
+HOMEPAGE="https://wiki.gentoo.org/index.php?title=Project:Hardened/PaX_Utilities"
+SRC_URI="mirror://gentoo/pax-utils-${PV}.tar.xz
+ http://dev.gentoo.org/~solar/pax/pax-utils-${PV}.tar.xz
+ http://dev.gentoo.org/~vapier/dist/pax-utils-${PV}.tar.xz"
+
+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="caps python"
+
+RDEPEND="caps? ( sys-libs/libcap )
+ python? ( dev-python/pyelftools )"
+DEPEND="${RDEPEND}
+ app-arch/xz-utils"
+
+_emake() {
+ emake \
+ USE_CAP=$(usex caps) \
+ USE_PYTHON=$(usex python) \
+ "$@"
+}
+
+src_configure() {
+ # Avoid slow configure+gnulib+make if on an up-to-date Linux system
+ if use prefix || ! use kernel_linux || \
+ has_version '<sys-libs/glibc-2.10'
+ then
+ econf $(use_with caps) $(use_with python)
+ else
+ tc-export CC
+ fi
+}
+
+src_compile() {
+ _emake
+}
+
+src_test() {
+ _emake check
+}
+
+src_install() {
+ _emake DESTDIR="${ED}" PKGDOCDIR='$(DOCDIR)'/${PF} install
+}
diff --git a/app-misc/pax-utils/pax-utils-1.0.4.ebuild b/app-misc/pax-utils/pax-utils-1.0.4.ebuild
new file mode 100644
index 000000000000..93e641feb0a6
--- /dev/null
+++ b/app-misc/pax-utils/pax-utils-1.0.4.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+inherit eutils toolchain-funcs unpacker
+
+DESCRIPTION="ELF related utils for ELF 32/64 binaries that can check files for security relevant properties"
+HOMEPAGE="https://wiki.gentoo.org/index.php?title=Project:Hardened/PaX_Utilities"
+SRC_URI="mirror://gentoo/pax-utils-${PV}.tar.xz
+ http://dev.gentoo.org/~solar/pax/pax-utils-${PV}.tar.xz
+ http://dev.gentoo.org/~vapier/dist/pax-utils-${PV}.tar.xz"
+
+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="caps python"
+
+RDEPEND="caps? ( sys-libs/libcap )
+ python? ( dev-python/pyelftools )"
+DEPEND="${RDEPEND}
+ app-arch/xz-utils"
+
+_emake() {
+ emake \
+ USE_CAP=$(usex caps) \
+ USE_PYTHON=$(usex python) \
+ "$@"
+}
+
+src_configure() {
+ # Avoid slow configure+gnulib+make if on an up-to-date Linux system
+ if use prefix || ! use kernel_linux || \
+ has_version '<sys-libs/glibc-2.10'
+ then
+ econf $(use_with caps) $(use_with python)
+ else
+ tc-export CC
+ fi
+}
+
+src_compile() {
+ _emake
+}
+
+src_test() {
+ _emake check
+}
+
+src_install() {
+ _emake DESTDIR="${ED}" PKGDOCDIR='$(DOCDIR)'/${PF} install
+}
diff --git a/app-misc/pax-utils/pax-utils-1.0.5.ebuild b/app-misc/pax-utils/pax-utils-1.0.5.ebuild
new file mode 100644
index 000000000000..93e641feb0a6
--- /dev/null
+++ b/app-misc/pax-utils/pax-utils-1.0.5.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+inherit eutils toolchain-funcs unpacker
+
+DESCRIPTION="ELF related utils for ELF 32/64 binaries that can check files for security relevant properties"
+HOMEPAGE="https://wiki.gentoo.org/index.php?title=Project:Hardened/PaX_Utilities"
+SRC_URI="mirror://gentoo/pax-utils-${PV}.tar.xz
+ http://dev.gentoo.org/~solar/pax/pax-utils-${PV}.tar.xz
+ http://dev.gentoo.org/~vapier/dist/pax-utils-${PV}.tar.xz"
+
+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="caps python"
+
+RDEPEND="caps? ( sys-libs/libcap )
+ python? ( dev-python/pyelftools )"
+DEPEND="${RDEPEND}
+ app-arch/xz-utils"
+
+_emake() {
+ emake \
+ USE_CAP=$(usex caps) \
+ USE_PYTHON=$(usex python) \
+ "$@"
+}
+
+src_configure() {
+ # Avoid slow configure+gnulib+make if on an up-to-date Linux system
+ if use prefix || ! use kernel_linux || \
+ has_version '<sys-libs/glibc-2.10'
+ then
+ econf $(use_with caps) $(use_with python)
+ else
+ tc-export CC
+ fi
+}
+
+src_compile() {
+ _emake
+}
+
+src_test() {
+ _emake check
+}
+
+src_install() {
+ _emake DESTDIR="${ED}" PKGDOCDIR='$(DOCDIR)'/${PF} install
+}
diff --git a/app-misc/pax-utils/pax-utils-1.0.ebuild b/app-misc/pax-utils/pax-utils-1.0.ebuild
new file mode 100644
index 000000000000..93e641feb0a6
--- /dev/null
+++ b/app-misc/pax-utils/pax-utils-1.0.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+inherit eutils toolchain-funcs unpacker
+
+DESCRIPTION="ELF related utils for ELF 32/64 binaries that can check files for security relevant properties"
+HOMEPAGE="https://wiki.gentoo.org/index.php?title=Project:Hardened/PaX_Utilities"
+SRC_URI="mirror://gentoo/pax-utils-${PV}.tar.xz
+ http://dev.gentoo.org/~solar/pax/pax-utils-${PV}.tar.xz
+ http://dev.gentoo.org/~vapier/dist/pax-utils-${PV}.tar.xz"
+
+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="caps python"
+
+RDEPEND="caps? ( sys-libs/libcap )
+ python? ( dev-python/pyelftools )"
+DEPEND="${RDEPEND}
+ app-arch/xz-utils"
+
+_emake() {
+ emake \
+ USE_CAP=$(usex caps) \
+ USE_PYTHON=$(usex python) \
+ "$@"
+}
+
+src_configure() {
+ # Avoid slow configure+gnulib+make if on an up-to-date Linux system
+ if use prefix || ! use kernel_linux || \
+ has_version '<sys-libs/glibc-2.10'
+ then
+ econf $(use_with caps) $(use_with python)
+ else
+ tc-export CC
+ fi
+}
+
+src_compile() {
+ _emake
+}
+
+src_test() {
+ _emake check
+}
+
+src_install() {
+ _emake DESTDIR="${ED}" PKGDOCDIR='$(DOCDIR)'/${PF} install
+}
diff --git a/app-misc/pdfpc/Manifest b/app-misc/pdfpc/Manifest
new file mode 100644
index 000000000000..9af3ea7e7588
--- /dev/null
+++ b/app-misc/pdfpc/Manifest
@@ -0,0 +1,2 @@
+DIST pdfpc-3.1.1.tgz 199004 SHA256 ec5ffb9c2b55d1bac76172a6a13ed527ceed8cf0d659aca5e302f6a7185f00f2 SHA512 554203094b18fe11fd085414961de6644df3c258ad52d46ad171cfd6c2199028bcbaa9560bdaba63d83f858b467407cc276972b34f341cc25260db1d1358e88d WHIRLPOOL bddcba6a4285ea2b58dd01f76b7b050db630eaa97de5bba32a66f7f85563e6a99763a52e82286297f605dfa59d9ff918007baab297e587968ac1c83e3d69e8a8
+DIST pdfpc-v4.0.0.tar.gz 71039 SHA256 c091c554f4e3ed8735df40055253459c47b09590775a6f9b5b6abf1b42647a62 SHA512 2c822dee9c47be4858a9a20c729864120335b506d1271d032635653e394db3934bf0a1c261d6bcfeb416918e5c20553de688106fa2ad40834f91f75bf11a231d WHIRLPOOL f52f05bb9073505fc798c6182fb73e1b94fc007304105b1d038a5d6fcb791616e6afc2a42e02ef76bd0fc1a1cdd446cd8866ea4d08bba7a655428ffbe7266a3a
diff --git a/app-misc/pdfpc/metadata.xml b/app-misc/pdfpc/metadata.xml
new file mode 100644
index 000000000000..6fba54ab8c23
--- /dev/null
+++ b/app-misc/pdfpc/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>
+ <email>mrueg@gentoo.org</email>
+ <name>Manuel Rüger</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">pdfpc/pdfpc</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/pdfpc/pdfpc-3.1.1.ebuild b/app-misc/pdfpc/pdfpc-3.1.1.ebuild
new file mode 100644
index 000000000000..ca28658f0ac7
--- /dev/null
+++ b/app-misc/pdfpc/pdfpc-3.1.1.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit cmake-utils
+
+DESCRIPTION="Presenter console with multi-monitor support for PDF files"
+HOMEPAGE="http://davvil.github.com/pdfpc/"
+SRC_URI="mirror://github/davvil/${PN}/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND="app-text/poppler:=[cairo]
+ dev-libs/glib:2
+ dev-libs/libgee:0
+ gnome-base/librsvg
+ x11-libs/gtk+:2"
+DEPEND="${RDEPEND}"
+
+src_configure(){
+ local mycmakeargs=(
+ -DSYSCONFDIR="${EPREFIX}/etc"
+ )
+ cmake-utils_src_configure
+}
diff --git a/app-misc/pdfpc/pdfpc-4.0.0-r1.ebuild b/app-misc/pdfpc/pdfpc-4.0.0-r1.ebuild
new file mode 100644
index 000000000000..d88d3c24423d
--- /dev/null
+++ b/app-misc/pdfpc/pdfpc-4.0.0-r1.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+VALA_MIN_API_VERSION="0.26"
+VALA_MAX_API_VERSION="0.28" # fix sed line if you increase this
+
+inherit vala cmake-utils
+
+DESCRIPTION="Presenter console with multi-monitor support for PDF files"
+HOMEPAGE="http://pdfpc.github.io"
+SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${PV}/${PN}-v${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="app-text/poppler:=[cairo]
+ dev-libs/glib:2
+ dev-libs/libgee:0.8
+ gnome-base/librsvg
+ media-libs/gstreamer:1.0
+ media-libs/gst-plugins-base:1.0
+ x11-libs/gtk+:3"
+DEPEND="${RDEPEND}
+ $(vala_depend)"
+
+S=${WORKDIR}/${PN}-v${PV}
+
+src_prepare() {
+ sed -i -e "s/valac-0.20/valac-0.28 valac-0.26/" cmake/Vala_CMake/vala/FindVala.cmake || die
+ vala_src_prepare
+}
+
+src_configure(){
+ local mycmakeargs=(
+ -DSYSCONFDIR="${EPREFIX}/etc"
+ )
+ cmake-utils_src_configure
+}
diff --git a/app-misc/perltrash/Manifest b/app-misc/perltrash/Manifest
new file mode 100644
index 000000000000..9b43d7e533fa
--- /dev/null
+++ b/app-misc/perltrash/Manifest
@@ -0,0 +1 @@
+DIST perltrash-0.3.tar.bz2 10871 SHA256 5ce31f06ed28fab0f8fe81abaaacacb355b9f87b7bfad98b318766e926ef6201 SHA512 610657a42be862c687caff4be5833e1ac629ec5869e6f7263cd96fa5f275b27aa435b1872737cf51afcc75083e4647fcdd3b7e3d1448039c78c1fc489c63492a WHIRLPOOL 97be0d0a70a559bdcfc5d76ba3601cffdfbd67a4e0353eb500bb7eb7b3adac8ee3e9ea7cc7efa088044859f9636968fedabb531b015aa8e2a2ed70552023d55e
diff --git a/app-misc/perltrash/metadata.xml b/app-misc/perltrash/metadata.xml
new file mode 100644
index 000000000000..120e2cd7e124
--- /dev/null
+++ b/app-misc/perltrash/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>maintainer-needed@gentoo.org</email>
+ <name>maintainer-needed</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-misc/perltrash/perltrash-0.3.ebuild b/app-misc/perltrash/perltrash-0.3.ebuild
new file mode 100644
index 000000000000..983585f845fe
--- /dev/null
+++ b/app-misc/perltrash/perltrash-0.3.ebuild
@@ -0,0 +1,19 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+DESCRIPTION="Command-line trash can emulation"
+HOMEPAGE="http://www.iq-computing.de/perltrash"
+SRC_URI="ftp://www.iq-computing.de/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="x86 ppc amd64"
+IUSE=""
+
+RDEPEND=">=dev-lang/perl-5"
+
+src_install() {
+ newbin perltrash.pl perltrash || die
+ dodoc README.txt
+}
diff --git a/app-misc/pfm/Manifest b/app-misc/pfm/Manifest
new file mode 100644
index 000000000000..653b091650dc
--- /dev/null
+++ b/app-misc/pfm/Manifest
@@ -0,0 +1 @@
+DIST pfm-2.12.3.tar.gz 2272053 SHA256 01a2845916f7fc4bcadb929f0fcaf05ab838016efdc15568ceefb0e209809a00 SHA512 d9feeaa95a0114ee513835a9273b62164a851ae8599d27575b3545f02144b4cf970a066afd5acec03092f0d49c85929c8127d1e134d1e80c15fe6d0a9b6921fc WHIRLPOOL 680cf8edc4540e3f611c515a2d4a9548d4832b3d5d459832333c41fb8f380bfdd8779557af4ec0341788bb2d92b76cbb507467caa990634d0bb1272638418cd5
diff --git a/app-misc/pfm/metadata.xml b/app-misc/pfm/metadata.xml
new file mode 100644
index 000000000000..9f39207c218d
--- /dev/null
+++ b/app-misc/pfm/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>
+ <email>radhermit@gentoo.org</email>
+ <name>Tim Harder</name>
+ </maintainer>
+ <maintainer>
+ <email>monsieurp@gentoo.org</email>
+ <name>Patrice Clement</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">p-f-m</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/pfm/pfm-2.12.3.ebuild b/app-misc/pfm/pfm-2.12.3.ebuild
new file mode 100644
index 000000000000..16c8f6b751d1
--- /dev/null
+++ b/app-misc/pfm/pfm-2.12.3.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit perl-app
+
+DESCRIPTION="A terminal-based file manager written in Perl"
+HOMEPAGE="http://p-f-m.sourceforge.net/"
+SRC_URI="mirror://sourceforge/p-f-m/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+
+RDEPEND=">=dev-lang/perl-5.8
+ >=dev-perl/File-Stat-Bits-1.10.0
+ >=dev-perl/HTML-Parser-3.59
+ >=dev-perl/libwww-perl-5.827
+ >=dev-perl/Term-ReadLine-Gnu-1.09
+ >=dev-perl/Term-Screen-1.30.0
+ >=dev-perl/Term-ScreenColor-1.130.0
+ sys-libs/ncurses
+ sys-libs/readline
+ >=virtual/perl-File-Temp-0.22
+ >=virtual/perl-Module-Load-0.16"
diff --git a/app-misc/physlock/Manifest b/app-misc/physlock/Manifest
new file mode 100644
index 000000000000..8cf53ecab6c7
--- /dev/null
+++ b/app-misc/physlock/Manifest
@@ -0,0 +1,3 @@
+DIST physlock-0.4.3.tar.gz 12834 SHA256 16c0cff09c06a0c701e6ff6f074690280ff3d14cc02980a007eb66bd93fff1f2 SHA512 bdaa335b9fbc15cc5206f195075c2d2425933012d0fe1a52244bf1137e2af11faa9d0194b3ea46158230991a56c398a9d5dc8f56eee9716306c88adbd28ddd47 WHIRLPOOL 418be6340b98630e5d0d2dd22f2972b7ca3edd241b0fd025349adb5d6af01abffae1e628556bc88793174c25769ed2ecf4a77032928a6afed860e58663444e3a
+DIST physlock-0.4.4.tar.gz 12711 SHA256 792b9167cbda178a04f8cdc490c49529405356d26bb87e5367ef2a964a17b476 SHA512 ed24132c7f41a6dc26c3182dcd1f19155b4e36dcc5f3030a7f9fed61ccf83b764ceb18ed48ff46c6c8972f3fc514c7e6031cf7ae8057602a24dc737950e72c13 WHIRLPOOL e96491208cfc37d3415c540d7257d757556ededdf3b5c5d1caca368b8fc3d457d7bc3bec6bea7c517943b51adf1c260a187533d86ed9abcee4cd866072a3d9ca
+DIST physlock-0.4.5.tar.gz 12804 SHA256 5ddb42553142c5e2b8744d086bb8f5bf131a29fc58b8886e825b80e6a456961c SHA512 ab2e71bdc0004d97e3742cf8155602c036dafa22156147cc3cd4050c1665e54d4ca04ee8dc1f763e6369a5d6592524cbc8e10c56870905a1b13385640f4ec476 WHIRLPOOL e770cc9e4448c3407c12d51e1bb2d1fec5f74cdc5be4d6503fa89a297b3a40b7f5bb67466fbb641e2af249339aacdf2abb5de9ac145482c1b283604abbb51533
diff --git a/app-misc/physlock/files/physlock-0.4.4-makefile.patch b/app-misc/physlock/files/physlock-0.4.4-makefile.patch
new file mode 100644
index 000000000000..4491e0596670
--- /dev/null
+++ b/app-misc/physlock/files/physlock-0.4.4-makefile.patch
@@ -0,0 +1,16 @@
+--- physlock-0.4.4/Makefile
++++ physlock-0.4.4/Makefile
+@@ -2,10 +2,10 @@
+
+ VERSION = 0.4.4
+
+-CC = gcc
++CC ?= gcc
+ PREFIX = /usr/local
+-CFLAGS = -Wall -pedantic -DVERSION=\"$(VERSION)\"
+-LDFLAGS =
++CFLAGS += -Wall -pedantic -DVERSION=\"$(VERSION)\"
++LDFLAGS +=
+ LIBS = -lcrypt
+
+ SRC = auth.c main.c options.c util.c vt.c
diff --git a/app-misc/physlock/metadata.xml b/app-misc/physlock/metadata.xml
new file mode 100644
index 000000000000..edab7aa4c610
--- /dev/null
+++ b/app-misc/physlock/metadata.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>radhermit@gentoo.org</email>
+ <name>Tim Harder</name>
+ </maintainer>
+ <longdescription lang="en">
+ Control physical access to a linux computer by locking all of its virtual
+ terminals / consoles.
+
+ physlock is an alternative to vlock, it is equivalent to `vlock -an'. It is
+ written because vlock blocks some linux kernel mechanisms like hibernate and
+ suspend and can therefore only be used with some limitations. physlock is
+ designed to be more lightweight, it does not have a plugin interface and it is
+ not started using a shell script wrapper.
+ </longdescription>
+ <upstream>
+ <remote-id type="github">muennich/physlock</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/physlock/physlock-0.4.3.ebuild b/app-misc/physlock/physlock-0.4.3.ebuild
new file mode 100644
index 000000000000..4eba3b67a255
--- /dev/null
+++ b/app-misc/physlock/physlock-0.4.3.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit toolchain-funcs
+
+DESCRIPTION="lightweight Linux console locking tool"
+HOMEPAGE="https://github.com/muennich/physlock"
+SRC_URI="mirror://github/muennich/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE=""
+
+src_prepare() {
+ tc-export CC
+}
+
+src_install() {
+ emake DESTDIR="${D}" PREFIX=/usr install
+}
diff --git a/app-misc/physlock/physlock-0.4.4.ebuild b/app-misc/physlock/physlock-0.4.4.ebuild
new file mode 100644
index 000000000000..750977a1c0e5
--- /dev/null
+++ b/app-misc/physlock/physlock-0.4.4.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit toolchain-funcs eutils
+
+DESCRIPTION="lightweight Linux console locking tool"
+HOMEPAGE="https://github.com/muennich/physlock"
+SRC_URI="https://github.com/muennich/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-makefile.patch
+ tc-export CC
+}
+
+src_install() {
+ emake DESTDIR="${D}" PREFIX=/usr install
+}
diff --git a/app-misc/physlock/physlock-0.4.5.ebuild b/app-misc/physlock/physlock-0.4.5.ebuild
new file mode 100644
index 000000000000..a4f7d832671f
--- /dev/null
+++ b/app-misc/physlock/physlock-0.4.5.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit toolchain-funcs eutils
+
+DESCRIPTION="lightweight Linux console locking tool"
+HOMEPAGE="https://github.com/muennich/physlock"
+SRC_URI="https://github.com/muennich/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-0.4.4-makefile.patch
+ tc-export CC
+}
+
+src_install() {
+ emake DESTDIR="${D}" PREFIX=/usr install
+}
diff --git a/app-misc/pip/Manifest b/app-misc/pip/Manifest
new file mode 100644
index 000000000000..0af4a22f2639
--- /dev/null
+++ b/app-misc/pip/Manifest
@@ -0,0 +1 @@
+DIST pip-1.2.tar.bz2 17752 SHA256 a80767586037c862886d94fa31fbe0e70a3a02c951abbb823ffe6ff7a0f5334b SHA512 a09695a881585baea292d305c3e0dc4ed7d5ccc0cb8138f402d73e75bbc6d014e09c3b3091f6b92be97a8034c262bd98cebf71e08cc7c44e635483bb31a40a29 WHIRLPOOL d2bd963018575aaeae7e1cc132baaadf6db3a1509d1e4635d695bb142195b8192b611ac388f6c86f72ccb035c51d164bba3b0233d6de1794fde9f002549d0636
diff --git a/app-misc/pip/metadata.xml b/app-misc/pip/metadata.xml
new file mode 100644
index 000000000000..40149c995561
--- /dev/null
+++ b/app-misc/pip/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>shell-tools</herd>
+</pkgmetadata>
diff --git a/app-misc/pip/pip-1.2-r2.ebuild b/app-misc/pip/pip-1.2-r2.ebuild
new file mode 100644
index 000000000000..106cb7305f42
--- /dev/null
+++ b/app-misc/pip/pip-1.2-r2.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils perl-app
+
+DESCRIPTION="Wrapper around programs that don't support stdin/stdout"
+HOMEPAGE="http://membled.com/work/apps/pip/"
+SRC_URI="http://membled.com/work/apps/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE=""
+
+src_install() {
+ perl-module_src_install
+ mv "${ED}"/usr/bin/{pip,gpip} || die 'rename failed'
+}
+
+pkg_postinst() {
+ ewarn "To avoid collisions with dev-python/pip executable file of this package was renamed to 'gpip'"
+}
diff --git a/app-misc/pipeworks/Manifest b/app-misc/pipeworks/Manifest
new file mode 100644
index 000000000000..0b6077650f02
--- /dev/null
+++ b/app-misc/pipeworks/Manifest
@@ -0,0 +1 @@
+DIST pipeworks-0.4.tar.gz 11560 SHA256 8360164e11f53f0cd84e9a4c0c11fcd951767ea0afd256537131fbc42ec51466 SHA512 ddd9875deab26d0f0b673846c7838733a2c3ec573fbd06d85e4058adb3b0d5274daeac1165b573743b8b3da6aa05c24b9ecc0ac788b24a42cf0f379a8eb56ebd WHIRLPOOL 4fb1e6ec0fd4d7a30481e6aa642083b1205620f8fe5c185b698d3cf2ab82f7b2cf0ee3e59f12fb47590ed9e21448eced4385e50b1882a4ed9ce88fa014c9def9
diff --git a/app-misc/pipeworks/metadata.xml b/app-misc/pipeworks/metadata.xml
new file mode 100644
index 000000000000..05d609b8e207
--- /dev/null
+++ b/app-misc/pipeworks/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>
+ <email>maintainer-needed@gentoo.org</email>
+ </maintainer>
+ <longdescription>
+pipeworks is a benchmarking tool for pipelines that is very similar to pipemeter. It writes its stdin to its
+stdout, while reporting the data flow rate to stderr. It features adjustable block size and bandwidth limiting
+capabilities.
+</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">pipeworks</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/pipeworks/pipeworks-0.4.ebuild b/app-misc/pipeworks/pipeworks-0.4.ebuild
new file mode 100644
index 000000000000..b882e0707722
--- /dev/null
+++ b/app-misc/pipeworks/pipeworks-0.4.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit toolchain-funcs
+
+DESCRIPTION="a small utility that measures throughput between stdin and stdout"
+HOMEPAGE="http://pipeworks.sourceforge.net/"
+SRC_URI="mirror://sourceforge/pipeworks/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86 ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
+IUSE=""
+
+DEPEND=""
+
+src_compile() {
+ emake CC="$(tc-getCC) ${CFLAGS} ${LDFLAGS}" || die "emake failed"
+}
+
+src_install() {
+ dobin pipeworks || die "dobin failed"
+ doman pipeworks.1
+ dodoc Changelog README
+}
diff --git a/app-misc/plod/Manifest b/app-misc/plod/Manifest
new file mode 100644
index 000000000000..ba155b1d7930
--- /dev/null
+++ b/app-misc/plod/Manifest
@@ -0,0 +1 @@
+DIST plod-1.9.tar.gz 29551 SHA256 e8f33c1d039ea52593365877ece67013438f7888a80306012ed89666ab8e2535 SHA512 0cf1365963ee0f5a8db445c16ce37890429a4c951ce547560e845316950b4f485ecdc0885e2d35cb240bf9d7bec587c0d913774b05cfca8a145c1837281cad88 WHIRLPOOL 32918454f2c4f8ee4335a8cb49ee19e7f7dcdbed83fad45f831e36b35866bd4d67804143017dce6f97433ead1103e125a9f1368d2c12a8b6b9abbd80caa6a9fc
diff --git a/app-misc/plod/files/plodrc b/app-misc/plod/files/plodrc
new file mode 100644
index 000000000000..9185f36eed5c
--- /dev/null
+++ b/app-misc/plod/files/plodrc
@@ -0,0 +1,2 @@
+# We don't use CRYPTCMD at default
+$CRYPTCMD = undef;
diff --git a/app-misc/plod/metadata.xml b/app-misc/plod/metadata.xml
new file mode 100644
index 000000000000..7d16b6208690
--- /dev/null
+++ b/app-misc/plod/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>
+ <email>maintainer-needed@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-misc/plod/plod-1.9.ebuild b/app-misc/plod/plod-1.9.ebuild
new file mode 100644
index 000000000000..076913aba586
--- /dev/null
+++ b/app-misc/plod/plod-1.9.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+DESCRIPTION="PLOD is a tool designed to help administrators (and others) keep
+track of their daily activities."
+HOMEPAGE="http://www.deer-run.com/~hal/"
+SRC_URI="http://www.far2wise.net/plod/${P}.tar.gz"
+
+LICENSE="|| ( Artistic GPL-2 )"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+DEPEND="dev-lang/perl"
+RDEPEND="${DEPEND}"
+
+src_unpack() {
+ unpack ${A}
+
+ cd "${S}"
+
+ # Get rid of this nasty /usr/local paths
+ einfo "Patching paths"
+ sed -e 's#/usr/local#/usr#' -i plod
+}
+
+src_install() {
+ dobin plod
+ dodoc README
+ doman plod.1.gz
+
+ insinto /etc
+ doins "${FILESDIR}"/plodrc
+}
diff --git a/app-misc/ps3pf_utils/Manifest b/app-misc/ps3pf_utils/Manifest
new file mode 100644
index 000000000000..70d6a975c273
--- /dev/null
+++ b/app-misc/ps3pf_utils/Manifest
@@ -0,0 +1,3 @@
+DIST ps3-utils-2.2.0.tar.bz2 361144 SHA256 b457354fd828229aedfb243fe0df748c2778f295ec1a4297e2cfa47b5b666b8b SHA512 278b4430e307493481ccbe5f1c92968921d5af9b2d09a80a9356ccce984318356183be4983ae5c13bd5e79c2e28c839df0402382d8be5d342a8605236cc060f1 WHIRLPOOL b2be34a1aefacee857450bbee1712f4fd7ae5a1229ab3aeeb93ed5bdad58da912a9a0c5be11657d903e469bf578cfda08fa043fecdaf806a83b15848760bca59
+DIST ps3-utils-2.3.tar.bz2 351066 SHA256 c44a84da3cf37ecc69b36f6079a814e680cf37c74cb7d55f457635adb8209351 SHA512 523e8c28325dc77478cc910a62249bfcd29b35b50e9b01d0d6dec600af302a4a3eff532b313d82fb23c4ff5436955629d8a72f1afb03b76f2b1b9cbd534e8396 WHIRLPOOL ca14e25d139bf4196104075ed8780bbd553e303192710f1cbfa432612fa78f21463a5eb249f1d3963f27876c2a067607331d84b260954870db1599f2ac2d77e9
+DIST ps3pf_utils-2.1.1.tar.bz2 980229 SHA256 9fc907b3b82198ae2ca45699885f1b7f4d28c7d8df1b8ef96ba3cd8476f0cd49 SHA512 5ac971659d946aff3bbaa5090f65018c67bf42309bb855742f1e21d226d619d9f16495396527fe7121d8a5599f5f7496127cb06b011d80b780de19bb73ce668d WHIRLPOOL f19978fcb733d926673fa8849ff4589cf53d91dcc739e1c03db95913c598a0118ca9b3eb6fea7a982fa3bbf31127305f14ffebc2d32f549db48c3d3553a63cd1
diff --git a/app-misc/ps3pf_utils/metadata.xml b/app-misc/ps3pf_utils/metadata.xml
new file mode 100644
index 000000000000..f9a5b22fcbec
--- /dev/null
+++ b/app-misc/ps3pf_utils/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>ppc64</herd>
+</pkgmetadata>
diff --git a/app-misc/ps3pf_utils/ps3pf_utils-2.1.1.ebuild b/app-misc/ps3pf_utils/ps3pf_utils-2.1.1.ebuild
new file mode 100644
index 000000000000..e034fb60bb29
--- /dev/null
+++ b/app-misc/ps3pf_utils/ps3pf_utils-2.1.1.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit flag-o-matic
+
+DESCRIPTION="Utilities to set the ps3 specific features"
+HOMEPAGE="http://www.playstation.com/ps3-openplatform/index.html"
+#SRC_URI="http://www.powerdeveloper.org/files/Cell/SourceCD/${P}.tar.bz2
+SRC_URI="mirror://gentoo/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~ppc ~ppc64"
+IUSE=""
+
+# fixme: depend on a version of sys-kernel/linux-headers that supports ps3
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+}
diff --git a/app-misc/ps3pf_utils/ps3pf_utils-2.2.0.ebuild b/app-misc/ps3pf_utils/ps3pf_utils-2.2.0.ebuild
new file mode 100644
index 000000000000..a4ab67e1d5b6
--- /dev/null
+++ b/app-misc/ps3pf_utils/ps3pf_utils-2.2.0.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit flag-o-matic
+
+DESCRIPTION="Utilities to set the ps3 specific features"
+HOMEPAGE="http://www.playstation.com/ps3-openplatform/index.html"
+SRC_URI="mirror://gentoo/ps3-utils-${PV}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="-ppc -ppc64"
+IUSE=""
+
+# fixme: depend on a version of sys-kernel/linux-headers that supports ps3
+
+S=${WORKDIR}/ps3-utils-${PV}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+}
diff --git a/app-misc/ps3pf_utils/ps3pf_utils-2.3.ebuild b/app-misc/ps3pf_utils/ps3pf_utils-2.3.ebuild
new file mode 100644
index 000000000000..1e18e38f1b13
--- /dev/null
+++ b/app-misc/ps3pf_utils/ps3pf_utils-2.3.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit flag-o-matic
+
+DESCRIPTION="Utilities to set the ps3 specific features"
+HOMEPAGE="http://www.playstation.com/ps3-openplatform/index.html"
+SRC_URI="mirror://kernel/linux/kernel/people/geoff/cell/ps3-utils/ps3-utils-${PV}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~ppc ~ppc64"
+IUSE=""
+
+# fixme: depend on a version of sys-kernel/linux-headers that supports ps3
+
+S=${WORKDIR}/ps3-utils-${PV}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+}
diff --git a/app-misc/pwsafe/Manifest b/app-misc/pwsafe/Manifest
new file mode 100644
index 000000000000..2dc6178b7ca7
--- /dev/null
+++ b/app-misc/pwsafe/Manifest
@@ -0,0 +1 @@
+DIST pwsafe-0.2.0.tar.gz 127433 SHA256 61e91dc5114fe014a49afabd574eda5ff49b36c81a6d492c03fcb10ba6af47b7 SHA512 e8d3684f523f83def6317ef5561a02d1493685cfbda18707644bf335b7f45b1a548aae17a735838d9f6df345ddb17934607162a6e99348df625b34a9ad5f4cf3 WHIRLPOOL c80ef8c398e5cb68920b11815e0aa042adf2ddaa78c75157e346566b210f5aba000f71c4a2172d6cf2c5a9707fe82af8a1379dbf9bb3ac2f71b6e12aebbbb975
diff --git a/app-misc/pwsafe/files/pwsafe-0.2.0-XChangeProperty.patch b/app-misc/pwsafe/files/pwsafe-0.2.0-XChangeProperty.patch
new file mode 100644
index 000000000000..3fadfc2765fb
--- /dev/null
+++ b/app-misc/pwsafe/files/pwsafe-0.2.0-XChangeProperty.patch
@@ -0,0 +1,22 @@
+This patch came from <https://bugzilla.redhat.com/show_bug.cgi?id=667541>.
+
+Index: pwsafe.cpp
+===================================================================
+RCS file: /cvsroot/pwsafe/pwsafe/pwsafe.cpp,v
+retrieving revision 1.57
+diff -u -r1.57 pwsafe.cpp
+--- pwsafe.cpp 12 Aug 2007 12:33:06 -0000 1.57
++++ pwsafe.cpp 5 Jan 2011 22:16:43 -0000
+@@ -1820,10 +1820,10 @@
+ if (xev.xselectionrequest.target == XA_TARGETS(xdisplay)) {
+ // tell them what we can supply
+ const Atom targets[] = { XA_TARGETS(xdisplay), XA_TIMESTAMP(xdisplay), XA_TEXT(xdisplay), XA_STRING };
+- XChangeProperty(xdisplay, xev.xselectionrequest.requestor, prop, XA_TARGETS(xdisplay), 32, PropModeReplace, reinterpret_cast<const unsigned char*>(&targets), sizeof(targets)/sizeof(targets[0]));
++ XChangeProperty(xdisplay, xev.xselectionrequest.requestor, prop, XA_ATOM, 32, PropModeReplace, reinterpret_cast<const unsigned char*>(&targets), sizeof(targets)/sizeof(targets[0]));
+ }
+ else if (xev.xselectionrequest.target == XA_TIMESTAMP(xdisplay)) {
+- XChangeProperty(xdisplay, xev.xselectionrequest.requestor, prop, XA_TIMESTAMP(xdisplay), 32, PropModeReplace, reinterpret_cast<const unsigned char*>(&timestamp), 1);
++ XChangeProperty(xdisplay, xev.xselectionrequest.requestor, prop, XA_INTEGER, 32, PropModeReplace, reinterpret_cast<const unsigned char*>(&timestamp), 1);
+ }
+ else if (xev.xselectionrequest.target == XA_TEXT(xdisplay) ||
+ xev.xselectionrequest.target == XA_STRING) {
diff --git a/app-misc/pwsafe/files/pwsafe-0.2.0-cvs-1.57.patch b/app-misc/pwsafe/files/pwsafe-0.2.0-cvs-1.57.patch
new file mode 100644
index 000000000000..7f62eb59d429
--- /dev/null
+++ b/app-misc/pwsafe/files/pwsafe-0.2.0-cvs-1.57.patch
@@ -0,0 +1,48 @@
+Index: pwsafe.cpp
+===================================================================
+RCS file: /cvsroot/pwsafe/pwsafe/pwsafe.cpp,v
+retrieving revision 1.56
+retrieving revision 1.57
+diff -u -r1.56 -r1.57
+--- pwsafe.cpp 30 Sep 2005 10:30:56 -0000 1.56
++++ pwsafe.cpp 12 Aug 2007 12:33:06 -0000 1.57
+@@ -3346,6 +3346,12 @@
+ }
+
+ bufpos += rc;
++ buf[bufpos] = '\0';
++
++ if (rc == 0) {
++ // EOF (ctrl-D)
++ break;
++ }
+
+ if (bufpos == buflen && !strchr(buf,'\n')) {
+ // we needed a bigger buffer
+@@ -3354,6 +3360,7 @@
+ fprintf(stderr, "Error: %s out of memory\n", program_name);
+ memset(buf,0,buflen);
+ free(buf);
++ throw FailEx();
+ }
+
+ memcpy(new_buf, buf, bufpos);
+@@ -3364,9 +3371,15 @@
+ }
+ }
+
+- int len = strchr(buf,'\n') - buf;
+- saved.assign(buf+len+1, bufpos-(len+1));
+- buf[len] = '\0';
++ char* lf = strchr(buf,'\n');
++ if (lf) {
++ // save the rest of the input for later
++ saved.assign(lf+1);
++ *lf = '\0';
++ } else {
++ saved.assign("",0);
++ }
++
+ return buf;
+ }
+ #endif // WITH_READLINE
diff --git a/app-misc/pwsafe/files/pwsafe-0.2.0-fake-readline.patch b/app-misc/pwsafe/files/pwsafe-0.2.0-fake-readline.patch
new file mode 100644
index 000000000000..4e0f4ad4dfd6
--- /dev/null
+++ b/app-misc/pwsafe/files/pwsafe-0.2.0-fake-readline.patch
@@ -0,0 +1,107 @@
+Index: pwsafe.cpp
+===================================================================
+RCS file: /cvsroot/pwsafe/pwsafe/pwsafe.cpp,v
+retrieving revision 1.57
+diff -u -r1.57 pwsafe.cpp
+--- pwsafe.cpp 12 Aug 2007 12:33:06 -0000 1.57
++++ pwsafe.cpp 30 Mar 2011 07:22:11 -0000
+@@ -3325,61 +3325,48 @@
+ static char* readline(const char* prompt) {
+ printf("%s", prompt);
+ fflush(stdout);
+-
+- static secstring saved;
+- int buflen = saved.length() + 100;
+- int bufpos = saved.length();
+- char* buf = reinterpret_cast<char*>(malloc(buflen+1));
+- if (!buf)
+- throw FailEx();
+- memcpy(buf, saved.data(), saved.length());
+- buf[saved.length()] = '\0';
+-
+- while (!strchr(buf,'\n')) {
+- const int rc = ::read(STDIN_FILENO, buf+bufpos, buflen);
+-
+- if (rc == -1) {
+- fprintf(stderr, "Error: %s read(STDIN) failed: %s\n", program_name, strerror(errno));
+- memset(buf,0,buflen);
+- free(buf);
+- throw FailEx();
+- }
+-
+- bufpos += rc;
+- buf[bufpos] = '\0';
+-
+- if (rc == 0) {
+- // EOF (ctrl-D)
+- break;
+- }
+-
+- if (bufpos == buflen && !strchr(buf,'\n')) {
+- // we needed a bigger buffer
+- char* new_buf = reinterpret_cast<char*>(malloc(2*buflen+1));
+- if (!new_buf) {
+- fprintf(stderr, "Error: %s out of memory\n", program_name);
+- memset(buf,0,buflen);
+- free(buf);
+- throw FailEx();
+- }
+
+- memcpy(new_buf, buf, bufpos);
+- memset(buf, 0, buflen);
+- free(buf);
+- buf = new_buf;
+- buflen *= 2;
+- }
+- }
++ size_t buflen = 100;
++ size_t bufpos = 0;
++ char* buf = static_cast<char*>(malloc(buflen+1));
++ if (!buf)
++ throw FailEx();
+
+- char* lf = strchr(buf,'\n');
+- if (lf) {
+- // save the rest of the input for later
+- saved.assign(lf+1);
+- *lf = '\0';
+- } else {
+- saved.assign("",0);
++ for (;;) {
++ const ssize_t rc = ::read(STDIN_FILENO, buf+bufpos, 1);
++ if (rc == -1) {
++ fprintf(stderr, "Error: %s read(STDIN) failed: %s\n", program_name, strerror(errno));
++ memset(buf,0,bufpos);
++ free(buf);
++ throw FailEx();
++ } else if (rc == 0) {
++ // EOF (ctrl-D)
++ break;
++ } else if (buf[bufpos] == '\n') {
++ // end of line
++ break;
++ }
++
++ ++bufpos;
++
++ if (bufpos == buflen) {
++ // we need a bigger buffer
++ char* new_buf = static_cast<char*>(malloc(2*buflen+1));
++ if (!new_buf) {
++ fprintf(stderr, "Error: %s out of memory\n", program_name);
++ memset(buf,0,bufpos);
++ free(buf);
++ throw FailEx();
++ }
++ memcpy(new_buf, buf, bufpos);
++ memset(buf, 0, bufpos);
++ free(buf);
++ buf = new_buf;
++ buflen *= 2;
++ }
+ }
+
++ buf[bufpos] = '\0';
+ return buf;
+ }
+ #endif // WITH_READLINE
diff --git a/app-misc/pwsafe/files/pwsafe-0.2.0-man-page-option-syntax.patch b/app-misc/pwsafe/files/pwsafe-0.2.0-man-page-option-syntax.patch
new file mode 100644
index 000000000000..a83d3a83d8eb
--- /dev/null
+++ b/app-misc/pwsafe/files/pwsafe-0.2.0-man-page-option-syntax.patch
@@ -0,0 +1,30 @@
+Index: pwsafe.1.in
+===================================================================
+RCS file: /cvsroot/pwsafe/pwsafe/pwsafe.1.in,v
+retrieving revision 1.8
+diff -u -r1.8 pwsafe.1.in
+--- pwsafe.1.in 18 Mar 2006 14:17:41 -0000 1.8
++++ pwsafe.1.in 30 Mar 2011 07:42:23 -0000
+@@ -52,18 +52,18 @@
+ .B \-\-passwd
+ Change the database's passphrase.
+ .TP
+-.B \-\-list[=REGEX]
++.B \-\-list [REGEX]
+ List all [matching] entries in database.
+ .BR
+ If \-u or \-p is given then REGEX must match only one entry, and only the requested field(s) are emitted.
+ .TP
+-.B \-a, \-\-add[=NAME]
++.B \-a, \-\-add [NAME]
+ Add an entry to database.
+ .TP
+-.B \-e, \-\-edit=REGEX
++.B \-e, \-\-edit REGEX
+ Edit an entry.
+ .TP
+-.B \-\-delete=NAME
++.B \-\-delete NAME
+ Delete an entry from database.
+ .TP
+ If no command is given, an interactive mode is entered.
diff --git a/app-misc/pwsafe/files/pwsafe-0.2.0-printf.patch b/app-misc/pwsafe/files/pwsafe-0.2.0-printf.patch
new file mode 100644
index 000000000000..409f3a7220ed
--- /dev/null
+++ b/app-misc/pwsafe/files/pwsafe-0.2.0-printf.patch
@@ -0,0 +1,43 @@
+Index: pwsafe.cpp
+===================================================================
+RCS file: /cvsroot/pwsafe/pwsafe/pwsafe.cpp,v
+retrieving revision 1.57
+diff -u -r1.57 pwsafe.cpp
+--- pwsafe.cpp 12 Aug 2007 12:33:06 -0000 1.57
++++ pwsafe.cpp 30 Mar 2011 05:44:07 -0000
+@@ -1619,7 +1619,7 @@
+ snprintf(ent_buf, sizeof(ent_buf), "%d", entropy_needed);
+ ent_buf[sizeof(ent_buf)-1] = '\0';
+ char len_buf[24];
+- snprintf(len_buf, sizeof(len_buf), "%d", pw.length());
++ snprintf(len_buf, sizeof(len_buf), "%lu", static_cast<unsigned long>(pw.length()));
+ len_buf[sizeof(len_buf)-1] = '\0';
+ switch (tolower(get1char("Use "+pw+"\ntype "+type_name+", length "+len_buf+", "+ent_buf+" bits of entropy [y/N/ /+/-/q/?] ? ", 'n'))) {
+ case 'y':
+@@ -2380,7 +2380,7 @@
+ version = VERSION_1_7;
+ }
+
+- if (arg_verbose > 1) printf("read in %u entries\n", entries.size());
++ if (arg_verbose > 1) printf("read in %lu entries\n", static_cast<unsigned long>(entries.size()));
+
+ opened = true;
+ return true;
+@@ -2601,7 +2601,7 @@
+ for (matches_t::const_iterator i=matches.begin(); i!=matches.end() && count < 3; ++i, ++count)
+ printf("%s%s", (count?", ":""), (*i)->groupname().c_str());
+ if (count != matches.size())
+- printf(", ... (%u more) ", matches.size()-3);
++ printf(", ... (%lu more) ", static_cast<unsigned long>(matches.size()-3));
+ printf(".\n");
+ throw FailEx();
+ }
+@@ -2637,7 +2637,7 @@
+ // print out the UUID too
+ fprintf(outfile, "%s\n", formatuuid(e.uuid).c_str());
+ if (!e.extras.empty())
+- fprintf(outfile, "and %u unknown extra fields\n", e.extras.size());
++ fprintf(outfile, "and %lu unknown extra fields\n", static_cast<unsigned long>(e.extras.size()));
+ }
+ } else
+ // just print out the name
diff --git a/app-misc/pwsafe/metadata.xml b/app-misc/pwsafe/metadata.xml
new file mode 100644
index 000000000000..690806854e51
--- /dev/null
+++ b/app-misc/pwsafe/metadata.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>proxy-maintainers</herd>
+ <maintainer>
+ <email>headch@gmail.com</email>
+ <name>Christopher Head</name>
+ <description>Proxy maintainer, assign bugs</description>
+ </maintainer>
+ <longdescription lang="en">
+ pwsafe is a commandline password database utility compatible with
+ Counterpane's Password Safe. It is compatible with Counterpane Password
+ Safe 1.9.x and 2.0 databases. It can interact with X11 selection and
+ clipboard.
+ </longdescription>
+ <upstream>
+ <maintainer>
+ <email>ndade@nsd.dyndns.org</email>
+ <name>Nicolas Dade</name>
+ </maintainer>
+ <remote-id type="sourceforge">pwsafe</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/pwsafe/pwsafe-0.2.0-r2.ebuild b/app-misc/pwsafe/pwsafe-0.2.0-r2.ebuild
new file mode 100644
index 000000000000..3b6da2bd4eeb
--- /dev/null
+++ b/app-misc/pwsafe/pwsafe-0.2.0-r2.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+inherit base eutils
+
+DESCRIPTION="A Password Safe compatible command-line password manager"
+HOMEPAGE="http://nsd.dyndns.org/pwsafe/"
+SRC_URI="http://nsd.dyndns.org/pwsafe/releases/${P}.tar.gz"
+PATCHES=(
+ "${FILESDIR}/${P}-cvs-1.57.patch"
+ "${FILESDIR}/${P}-printf.patch"
+ "${FILESDIR}/${P}-fake-readline.patch"
+ "${FILESDIR}/${P}-man-page-option-syntax.patch"
+ "${FILESDIR}/${P}-XChangeProperty.patch"
+ )
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+
+IUSE="X readline"
+
+DEPEND="sys-libs/ncurses
+ dev-libs/openssl
+ readline? ( sys-libs/readline )
+ X? ( x11-libs/libSM
+ x11-libs/libICE
+ x11-libs/libXmu
+ x11-libs/libX11 )"
+RDEPEND="${DEPEND}"
+
+src_configure() {
+ econf $(use_with X x) $(use_with readline)
+}
+
+src_install() {
+ doman pwsafe.1
+ dobin pwsafe
+ dodoc README NEWS
+}
diff --git a/app-misc/pysmssend/Manifest b/app-misc/pysmssend/Manifest
new file mode 100644
index 000000000000..0c2bda6266a3
--- /dev/null
+++ b/app-misc/pysmssend/Manifest
@@ -0,0 +1 @@
+DIST pysmssend-1.48.tar.gz 58172 SHA256 8b8744eb0625d6f65632c56f58a304c5c9825d417d81f523024629ea611520ce SHA512 d1d08e11bb4a5f450a98e9bf6292ce65edb61e0610e085dd79dcb80fd8ce1d15f7350797a0150eb6ddcc0116c17e3290f2790632eb7f54ab66efdcf662022088 WHIRLPOOL 29d3a06ec73f3b667228aa4d3e8d710607fb313331c41470b7aeda4fcdb265ae31feed0714b3a75a110d289d03b87047d3600121c2e82dac0c7ed2cc288fdd1b
diff --git a/app-misc/pysmssend/metadata.xml b/app-misc/pysmssend/metadata.xml
new file mode 100644
index 000000000000..5e3a61a90139
--- /dev/null
+++ b/app-misc/pysmssend/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>
+<email>hwoarang@gentoo.org</email>
+<name>Markos Chandras</name>
+</maintainer>
+<longdescription lang="en">
+</longdescription>
+</pkgmetadata>
+
diff --git a/app-misc/pysmssend/pysmssend-1.48-r1.ebuild b/app-misc/pysmssend/pysmssend-1.48-r1.ebuild
new file mode 100644
index 000000000000..9916e17ba2a8
--- /dev/null
+++ b/app-misc/pysmssend/pysmssend-1.48-r1.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1 eutils
+
+DESCRIPTION="Python Application for sending sms over multiple ISPs"
+HOMEPAGE="http://pysmssend.silverarrow.org/"
+SRC_URI="http://pysmssend.silverarrow.org/files/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="qt4"
+
+DEPEND=">dev-python/mechanize-0.1.7b[${PYTHON_USEDEP}]
+ qt4? ( dev-python/PyQt4[X,${PYTHON_USEDEP}] )"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}
+
+python_install() {
+ distutils-r1_python_install
+
+ python_doscript pysmssendcmd
+ if use qt4; then
+ python_doscript pysmssend
+ else
+ ln -s pysmssendcmd "${D}$(python_get_scriptdir)"/pysmssend || die
+ fi
+}
+
+src_install() {
+ distutils-r1_src_install
+ if use qt4; then
+ insinto /usr/share/${PN}/Icons
+ doins Icons/*
+ doicon Icons/pysmssend.png
+ make_desktop_entry pysmssend pySMSsend pysmssend \
+ "Applications;Network"
+ else
+ dosym pysmssendcmd /usr/bin/pysmssend
+ fi
+ dodoc README AUTHORS TODO
+}
diff --git a/app-misc/pysmssend/pysmssend-1.48.ebuild b/app-misc/pysmssend/pysmssend-1.48.ebuild
new file mode 100644
index 000000000000..08381ddd3d8f
--- /dev/null
+++ b/app-misc/pysmssend/pysmssend-1.48.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="3"
+PYTHON_DEPEND="2:2.5"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="2.4 3.*"
+
+inherit distutils eutils
+
+DESCRIPTION="Python Application for sending sms over multiple ISPs"
+HOMEPAGE="http://pysmssend.silverarrow.org/"
+SRC_URI="http://pysmssend.silverarrow.org/files/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="qt4"
+
+DEPEND=">dev-python/mechanize-0.1.7b
+ qt4? ( dev-python/PyQt4[X] )"
+RDEPEND="${DEPEND}"
+
+PYTHON_MODNAME="pysmssendmod"
+
+src_prepare() {
+ python_convert_shebangs -r 2 .
+}
+
+src_install() {
+ distutils_src_install
+ if use qt4; then
+ insinto /usr/share/${PN}/Icons || die "insinto failed"
+ doins Icons/* || die "doins failed"
+ doicon Icons/pysmssend.png || die "doicon failed"
+ dobin pysmssend pysmssendcmd || die "failed to create executables"
+ make_desktop_entry pysmssend pySMSsend pysmssend \
+ "Applications;Network" || die "make_desktop_entry failed"
+ else
+ dobin pysmssendcmd || die "failed to create executable"
+ dosym pysmssendcmd /usr/bin/pysmssend || die "dosym failed"
+ fi
+ dodoc README AUTHORS TODO || die "dodoc failed"
+}
diff --git a/app-misc/pysmssend/pysmssend-9999.ebuild b/app-misc/pysmssend/pysmssend-9999.ebuild
new file mode 100644
index 000000000000..46c91f583534
--- /dev/null
+++ b/app-misc/pysmssend/pysmssend-9999.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="3"
+PYTHON_DEPEND="2:2.5"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="2.4 3.*"
+EGIT_REPO_URI="git://github.com/hwoarang/${PN}.git
+ http://github.com/hwoarang/${PN}.git"
+
+inherit distutils eutils git-2
+
+DESCRIPTION="Python Application for sending sms over multiple ISPs"
+HOMEPAGE="http://pysmssend.silverarrow.org/"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS=""
+IUSE="qt4"
+
+DEPEND=">=dev-python/mechanize-0.1.9
+ qt4? ( >=dev-python/PyQt4-4.3[X] )"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/pysmssend"
+
+PYTHON_MODNAME="pysmssendmod"
+
+src_prepare() {
+ python_convert_shebangs -r 2 .
+}
+
+src_install() {
+ distutils_src_install
+ if use qt4; then
+ insinto /usr/share/${PN}/Icons || die "insinto failed"
+ doins Icons/* || die "doins failed"
+ doicon Icons/pysmssend.png || die "doicon failed"
+ dobin pysmssend pysmssendcmd || die "failed to create executables"
+ domenu ${PN}.desktop || die "make_desktop_entry failed"
+ else
+ dobin pysmssendcmd || die "failed to create executable"
+ dosym pysmssendcmd /usr/bin/pysmssend || die "dosym failed"
+ fi
+ dodoc README AUTHORS TODO || die "dodoc failed"
+}
+
+pkg_postinst() {
+ distutils_pkg_postinst
+ elog
+ elog "${PN} can use dev-python/python-gnupg"
+ elog "for keeping your account data encrypted"
+ elog "and secured. If you want to use it,"
+ elog "first install dev-python/python-gnupg using"
+ elog "emerge -av dev-python/python/gnupg"
+ elog "and then edit your ~/.pysmssend/config"
+ elog "file and set:"
+ elog
+ elog "pysmssend_gpg_support=1"
+ elog "pysmssend_gpg_key=<your_gpg_key_id>"
+ elog
+}
diff --git a/app-misc/pystopwatch/Manifest b/app-misc/pystopwatch/Manifest
new file mode 100644
index 000000000000..08e06c02a860
--- /dev/null
+++ b/app-misc/pystopwatch/Manifest
@@ -0,0 +1 @@
+DIST pystopwatch-2012.12.24.1.tar.xz 14580 SHA256 d74b6b6e5263e40ce45c0333df1f44e618d87a967d02e0c911782b3ebfdd2a94 SHA512 4b3af373356eaafd14caeecb34150fef8e7099120855230dce7c0eabba68f75d497c3cc2eb733a086a02a96ae5feeca1898ba201a5f6f5597dcd32de9c80b3df WHIRLPOOL 6a37b84f9d932e399eb7df3b59fd94b8ab3bb6c698466cdd495bfaf6b494698579f86f8eebf1032a529b3482b225e0cb857d09dcb8f4e7c1fab5d28475daba2e
diff --git a/app-misc/pystopwatch/metadata.xml b/app-misc/pystopwatch/metadata.xml
new file mode 100644
index 000000000000..59acc2cc580e
--- /dev/null
+++ b/app-misc/pystopwatch/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>
+<email>xmw@gentoo.org</email>
+<name>Michael Weber</name>
+</maintainer>
+</pkgmetadata>
+
diff --git a/app-misc/pystopwatch/pystopwatch-2012.12.24.1-r1.ebuild b/app-misc/pystopwatch/pystopwatch-2012.12.24.1-r1.ebuild
new file mode 100644
index 000000000000..92d9356eae6c
--- /dev/null
+++ b/app-misc/pystopwatch/pystopwatch-2012.12.24.1-r1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit python-single-r1
+
+DESCRIPTION="clock and two countdown functions that can minimize to the tray"
+HOMEPAGE="http://xyne.archlinux.ca/projects/pystopwatch"
+SRC_URI="http://xyne.archlinux.ca/projects/${PN}/src/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+
+IUSE=""
+REQUIRED_USE=${PYTHON_REQUIRED_USE}
+
+RDEPEND="
+ dev-python/pygtk:2[${PYTHON_USEDEP}]
+ gnome-base/librsvg
+ ${PYTHON_DEPS}
+"
+DEPEND=""
+
+src_prepare() {
+ unpack ./man/${PN}.1.gz
+}
+
+src_install() {
+ python_doscript ${PN}
+ doman ${PN}.1
+}
diff --git a/app-misc/pystopwatch/pystopwatch-2012.12.24.1.ebuild b/app-misc/pystopwatch/pystopwatch-2012.12.24.1.ebuild
new file mode 100644
index 000000000000..d4b994af9266
--- /dev/null
+++ b/app-misc/pystopwatch/pystopwatch-2012.12.24.1.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+PYTHON_DEPEND=2
+
+inherit python
+
+DESCRIPTION="clock and two countdown functions that can minimize to the tray"
+HOMEPAGE="http://xyne.archlinux.ca/projects/pystopwatch"
+SRC_URI="http://xyne.archlinux.ca/projects/${PN}/src/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND="dev-python/pygtk:2"
+DEPEND=""
+
+src_prepare() {
+ unpack ./man/${PN}.1.gz
+}
+
+src_install() {
+ dobin ${PN}
+ doman ${PN}.1
+}
diff --git a/app-misc/ranger/Manifest b/app-misc/ranger/Manifest
new file mode 100644
index 000000000000..2e8fbe7e737b
--- /dev/null
+++ b/app-misc/ranger/Manifest
@@ -0,0 +1 @@
+DIST ranger-1.7.1.tar.gz 266089 SHA256 f8b06135165142508ae7ec22ab2c95f6e51b4018c645d11226086d4c45b7df86 SHA512 646e2e4286813085820f35d5dfb6528ed1005e833db92d0521164c067aed2bdf56f4d3acc7ef77388e54a7f7191608e390b65305f62fed39b4109e3fff27f410 WHIRLPOOL 4b9dae8bc99ab4a310d0d71e7793b2cdd21e4146f389b02f8a1496f8f1bae4015a31e9d4de993720297139ac7a377d6673f4eea1250d802298c076769fedfc18
diff --git a/app-misc/ranger/files/ranger-1.6.1-w3mimgdisplay.patch b/app-misc/ranger/files/ranger-1.6.1-w3mimgdisplay.patch
new file mode 100644
index 000000000000..3e11c33a697e
--- /dev/null
+++ b/app-misc/ranger/files/ranger-1.6.1-w3mimgdisplay.patch
@@ -0,0 +1,11 @@
+--- ranger-1.6.1/ranger/ext/img_display.py
++++ ranger-1.6.1/ranger/ext/img_display.py
+@@ -13,7 +13,7 @@
+ import termios, fcntl, struct, sys, os
+ from subprocess import Popen, PIPE
+
+-W3MIMGDISPLAY_PATH = '/usr/lib/w3m/w3mimgdisplay'
++W3MIMGDISPLAY_PATH = '/usr/libexec/w3m/w3mimgdisplay'
+ W3MIMGDISPLAY_OPTIONS = []
+
+ class ImgDisplayUnsupportedException(Exception):
diff --git a/app-misc/ranger/metadata.xml b/app-misc/ranger/metadata.xml
new file mode 100644
index 000000000000..5cb9dc86a6f5
--- /dev/null
+++ b/app-misc/ranger/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>
+ <email>radhermit@gentoo.org</email>
+ <name>Tim Harder</name>
+ </maintainer>
+ <longdescription lang="en">
+ Ranger is a console file manager that gives you greater flexibility and a
+ good overview of your files without having to leave your console. It
+ visualizes the directory tree in two dimensions: the directory hierarchy on
+ one, lists of files on the other, with a preview to the right so you know
+ where you'll be going.
+ </longdescription>
+</pkgmetadata>
diff --git a/app-misc/ranger/ranger-1.7.1.ebuild b/app-misc/ranger/ranger-1.7.1.ebuild
new file mode 100644
index 000000000000..5653d30e82f1
--- /dev/null
+++ b/app-misc/ranger/ranger-1.7.1.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python{2_7,3_3,3_4} )
+PYTHON_REQ_USE="ncurses"
+
+inherit distutils-r1
+
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="git://git.savannah.nongnu.org/ranger.git"
+ inherit git-r3
+else
+ SRC_URI="http://nongnu.org/${PN}/${P}.tar.gz"
+ KEYWORDS="amd64 ~ppc x86"
+fi
+
+DESCRIPTION="A vim-inspired file manager for the console"
+HOMEPAGE="http://ranger.nongnu.org/"
+LICENSE="GPL-3"
+SLOT="0"
+
+RDEPEND="virtual/pager"
+
+PATCHES=( "${FILESDIR}"/${PN}-1.6.1-w3mimgdisplay.patch )
+
+src_prepare() {
+ sed -i "s|share/doc/ranger|share/doc/${PF}|" setup.py doc/ranger.1 || die
+ distutils-r1_src_prepare
+}
+
+pkg_postinst() {
+ if [[ -z ${REPLACING_VERSIONS} ]]; then
+ elog "Ranger has many optional dependencies to support enhanced file previews."
+ elog "See the README or homepage for more details."
+ fi
+}
diff --git a/app-misc/ranger/ranger-9999.ebuild b/app-misc/ranger/ranger-9999.ebuild
new file mode 100644
index 000000000000..8c5d92b4b0d9
--- /dev/null
+++ b/app-misc/ranger/ranger-9999.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python{2_7,3_3,3_4} )
+PYTHON_REQ_USE="ncurses"
+
+inherit distutils-r1
+
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="git://git.savannah.nongnu.org/ranger.git"
+ inherit git-r3
+else
+ SRC_URI="http://nongnu.org/${PN}/${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+DESCRIPTION="A vim-inspired file manager for the console"
+HOMEPAGE="http://ranger.nongnu.org/"
+LICENSE="GPL-3"
+SLOT="0"
+
+RDEPEND="virtual/pager"
+
+pkg_postinst() {
+ if [[ -z ${REPLACING_VERSIONS} ]]; then
+ elog "Ranger has many optional dependencies to support enhanced file previews."
+ elog "See the README or homepage for more details."
+ fi
+}
diff --git a/app-misc/razertool/Manifest b/app-misc/razertool/Manifest
new file mode 100644
index 000000000000..568021f938a6
--- /dev/null
+++ b/app-misc/razertool/Manifest
@@ -0,0 +1 @@
+DIST razertool_0.0.7.orig.tar.gz 192274 SHA256 fd7026f6082b90306de3536f9395ae9407c282f2d60a32fd5406e358f48b977d SHA512 0221ec90b55f4459f5a772eb651e9807423d9e3c82ebd680ee835167bcebf2552e1d7767d294c5392b1fbc58558084e7022cb67f529c033eaff33b4fb3eb1017 WHIRLPOOL 19ce64cdc9d473066bfdc6a2ffe5f3a8096f8d1247ab447f50d41a505410765d4c9b56e5c14873af3735cf8fe9cfdd9a4cea8175f5b806ccc5c4739a6ebe3e69
diff --git a/app-misc/razertool/metadata.xml b/app-misc/razertool/metadata.xml
new file mode 100644
index 000000000000..42280e49bd3d
--- /dev/null
+++ b/app-misc/razertool/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>
+ <email>voyageur@gentoo.org</email>
+ <name>Bernard Cafarelli</name>
+ </maintainer>
+ <longdescription>RazerTool is an unofficial tool for controlling Razer Copperhead(TM) mice in *nix. It has both command-line and gtk+-2.x versions. Allows to switch and alter profiles, upgrade firmware, ...</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">razertool</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/razertool/razertool-0.0.7-r3.ebuild b/app-misc/razertool/razertool-0.0.7-r3.ebuild
new file mode 100644
index 000000000000..aac0ec26c5ae
--- /dev/null
+++ b/app-misc/razertool/razertool-0.0.7-r3.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=2
+inherit eutils
+
+DESCRIPTION="Unofficial tool for controlling the Razer Copperhead mouse"
+HOMEPAGE="http://razertool.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P/-/_}.orig.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="gtk"
+
+RDEPEND="virtual/libusb:0
+ gtk? (
+ >=gnome-base/librsvg-2.0
+ >=x11-libs/cairo-1.0.0
+ >=x11-libs/gtk+-2.8.0:2 )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_prepare() {
+ sed -i razertool.rules.example \
+ -e 's:ACTION=="add", ::;s:BUS=:SUBSYSTEMS=:;s:SYSFS{:ATTRS{:g' \
+ || die "sed razertool.rules.example action failed"
+
+ # plugdev group may not exist (created by hal), default to usb
+ sed -i razertool.rules.example \
+ -e 's:plugdev:usb:' \
+ || die "sed razertool.rules.example plugdev failed"
+}
+
+src_configure() {
+ econf $(use_enable gtk)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+
+ insinto /lib/udev/rules.d
+ newins razertool.rules.example 90-razertool.rules || die
+
+ dodoc AUTHORS ChangeLog NEWS README
+
+ # Icon and desktop entry
+ dosym /usr/share/${PN}/pixmaps/${PN}-icon.png /usr/share/pixmaps/${PN}-icon.png
+ make_desktop_entry "razertool-gtk" "RazerTool" ${PN}-icon "GTK;Settings;HardwareSettings"
+}
+
+pkg_postinst() {
+ elog "Razer Copperhead mice need firmware version 6.20 or higher"
+ elog "to work properly. Running ${PN} on mice with older firmwares"
+ elog "might lead to random USB-disconnects."
+ elog "To run as non-root, add yourself to the usb group:"
+ elog " gpasswd -a <user> usb"
+ elog "or adapt permissions/owner/group in:"
+ elog " /etc/udev/rules.d/90-razertool.rules"
+ elog "Then unplug and plug in the mouse."
+}
diff --git a/app-misc/realpath/Manifest b/app-misc/realpath/Manifest
new file mode 100644
index 000000000000..71d10b2cdc64
--- /dev/null
+++ b/app-misc/realpath/Manifest
@@ -0,0 +1,4 @@
+DIST realpath_1.17.tar.gz 17800 SHA256 214962d9c6e5a0a446d9cf3368bd1ab6cf2c209fbce1fe52e852763e70da984b SHA512 d4f8105e9256b140918dfa400eaac07bec9c29bced7284ab2a3a96282b13b59dca32ab0af38836dfe89dd4e3bf8b038ef4cf61a96d19951f46ac13264ceeec96 WHIRLPOOL a0b96eb70e5aa27fd76d1f4635de950c1adcac8ce3b2a9414fcd54df5df2b01818f3641b3fc049650a05373ffb45dad2a918bfe949fb057592338d9320b9f0a5
+DIST realpath_1.17_i386.deb 16372 SHA256 07f47353d2552aec26c679c32b2335302cd1fe54e5c1a290ec4b708fd1b0d104 SHA512 15704a27f3f140c4d69411bfd9c319e3205e7b70cccefdc5bec94ad10d6b6c6ad948c2fa51cf2ed69c8884928ba6dcb83a865185f3b010dc6eb343c2125c2118 WHIRLPOOL abf52c219d3b4f8a186bec4549d9e50f933924ea4676298b12c8da3373e3eb82dac301729153cb8ea427d5321ce4500c2872d55c9c83602abaf04392a1a8bbe1
+DIST realpath_1.18.tar.gz 17618 SHA256 e085f617874ef34453be553a2900c15969d78836ce6476b1c6382a69ea4f75de SHA512 98daa53b7a6d4b40ea3ff9ea89b7cb97782dd53f031e41a228a5aa8d2a41ae7920cbc1e2213f568098496e5c25da1381f08fb939f8668733a3c391f744fd16ed WHIRLPOOL c643e4098eb5474956cc4d1ada9a2676b3a494ece47fb2f298cc1a5aa1457d4b494476f65c55f131e4dd309a2ed12224f53071cc5e0863a9cc59b45137ec2526
+DIST realpath_1.18_i386.deb 16426 SHA256 e9b2103ed8b8041ea6c02e587242b18a4f4b4d4ee6d8c990b4969af1d688d1fd SHA512 fb2062041f8089a5ff07f76a9833e9d8bbe9560d72d4d5803c9524aeb782f9f4a135921b9984432ccfa361edc785a0f33785377ddf031a07ed316861a00a6f37 WHIRLPOOL e22ca8a14c1e329c8576001b325a96bf110eda8f82b368ee1bff7da35a68805a4fe19174f5518d6fd614f5c2df5c939b6316e4898e2f4ad75fd465413444fc13
diff --git a/app-misc/realpath/files/realpath-1.14-no-po4a.patch b/app-misc/realpath/files/realpath-1.14-no-po4a.patch
new file mode 100644
index 000000000000..cfa780553646
--- /dev/null
+++ b/app-misc/realpath/files/realpath-1.14-no-po4a.patch
@@ -0,0 +1,12 @@
+Don't require po4a at build time.
+http://bugs.gentoo.org/269905
+
+--- realpath-1.14-orig/po/Makefile 2009-02-22 12:56:47.000000000 +0100
++++ realpath-1.14/po/Makefile 2009-05-19 23:45:26.000000000 +0200
+@@ -4,5 +4,5 @@
+ #
+
+ ALL_TARGET=
+-SUBDIRS=bin man
++SUBDIRS=bin
+ include ../common.mk
diff --git a/app-misc/realpath/files/realpath-1.15-build.patch b/app-misc/realpath/files/realpath-1.15-build.patch
new file mode 100644
index 000000000000..7b90a0c0c27b
--- /dev/null
+++ b/app-misc/realpath/files/realpath-1.15-build.patch
@@ -0,0 +1,35 @@
+diff --git a/common.mk b/common.mk
+index 18f539c..142f7e6 100644
+--- a/common.mk
++++ b/common.mk
+@@ -34,16 +34,11 @@ webcgidir := $(prefix)/lib/cgi-bin
+ applicationsdir := $(prefix)/share/applications
+
+ PERL := /usr/bin/perl
+-CC := gcc
+-CFLAGS = -Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes -Werror -g -DVERSION='"$(VERSION)"' -DPACKAGE='"$(PACKAGE)"' -DLOCALEDIR='"$(nlsdir)"'
+-LDFLAGS :=
+-LIBS :=
++CC ?= gcc
++CFLAGS += -Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes -DVERSION='"$(VERSION)"' -DPACKAGE='"$(PACKAGE)"' -DLOCALEDIR='"$(nlsdir)"'
++LDFLAGS +=
++LIBS +=
+
+-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+- CFLAGS += -O0
+-else
+- CFLAGS += -O2
+-endif
+
+
+ # determine our version number
+@@ -60,9 +55,6 @@ ifndef VERSION
+ unexport CDPATH ENV
+
+ ifdef DESTDIR
+- ifneq ($(DESTDIR),$(abspath $(DESTDIR)))
+- $(error DESTDIR "$(DESTDIR)" is not an absolute path)
+- endif
+ override ddirshort := DESTDIR
+ export ddirshort
+ endif
diff --git a/app-misc/realpath/files/realpath-1.15-prefix.patch b/app-misc/realpath/files/realpath-1.15-prefix.patch
new file mode 100644
index 000000000000..f9534641382f
--- /dev/null
+++ b/app-misc/realpath/files/realpath-1.15-prefix.patch
@@ -0,0 +1,39 @@
+diff --git a/common.mk b/common.mk
+index 2443a40..0a342ee 100644
+--- a/common.mk
++++ b/common.mk
+@@ -8,17 +8,19 @@ override TOPDIR := $(dir $(call getCurrentMakefileName))
+
+ override PACKAGE := realpath
+
+-PATH := /usr/bin:/usr/sbin:/bin:/sbin:$(PATH)
++#PATH := /usr/bin:/usr/sbin:/bin:/sbin:$(PATH)
++
++SHELL := @GENTOO_PORTAGE_EPREFIX@/bin/bash
+
+ # build abstraction
+-install_file := install -p -o root -g root -m 644
+-install_script := install -p -o root -g root -m 755
+-install_dir := install -d -o root -g root -m 755
++install_file := install -p -m 644
++install_script := install -p -m 755
++install_dir := install -d -m 755
+ install_link := ln -sf
+ compress := gzip -9f
+
+-prefix := /usr
+-etcdir := /etc/$(PACKAGE)
++prefix := @GENTOO_PORTAGE_EPREFIX@/usr
++etcdir := @GENTOO_PORTAGE_EPREFIX@/etc/$(PACKAGE)
+ bindir := $(prefix)/bin
+ sbindir := $(prefix)/sbin
+ mandir := $(prefix)/share/man
+@@ -33,7 +35,7 @@ webdocrootdir := /var/www
+ webcgidir := $(prefix)/lib/cgi-bin
+ applicationsdir := $(prefix)/share/applications
+
+-PERL := /usr/bin/perl
++PERL := @GENTOO_PORTAGE_EPREFIX@/usr/bin/perl
+ CC ?= gcc
+ CFLAGS += -Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes -DVERSION='"$(VERSION)"' -DPACKAGE='"$(PACKAGE)"' -DLOCALEDIR='"$(nlsdir)"'
+ LDFLAGS +=
diff --git a/app-misc/realpath/files/realpath-1.16-nonls.patch b/app-misc/realpath/files/realpath-1.16-nonls.patch
new file mode 100644
index 000000000000..d758d03ff89b
--- /dev/null
+++ b/app-misc/realpath/files/realpath-1.16-nonls.patch
@@ -0,0 +1,29 @@
+ src/realpath.c | 6 +-----
+ 1 files changed, 1 insertions(+), 5 deletions(-)
+
+diff --git a/src/realpath.c b/src/realpath.c
+index 76fc909..e2cf86f 100644
+--- a/src/realpath.c
++++ b/src/realpath.c
+@@ -23,10 +23,9 @@
+ #include <errno.h>
+ #include <getopt.h>
+ #include <stdarg.h>
+-#include <libintl.h>
+ #include <locale.h>
+
+-#define _(String) gettext (String)
++#define _(String) (String)
+
+ static char *stripdir(char * dir, char *buf, int maxlen);
+
+@@ -116,9 +115,6 @@ int main(int argc, char **argv) {
+
+ myname = ( p = strchr(argv[0], '/') ) ? p+1 : argv[0];
+
+- setlocale(LC_ALL, "");
+- bindtextdomain(PACKAGE, LOCALEDIR);
+- textdomain(PACKAGE);
+
+
+ parse_options(argc, argv);
diff --git a/app-misc/realpath/files/realpath-1.17-build.patch b/app-misc/realpath/files/realpath-1.17-build.patch
new file mode 100644
index 000000000000..c4a8b3dfc9b9
--- /dev/null
+++ b/app-misc/realpath/files/realpath-1.17-build.patch
@@ -0,0 +1,43 @@
+--- a/common.mk
++++ b/common.mk
+@@ -33,16 +33,9 @@
+ applicationsdir := $(prefix)/share/applications
+
+ PERL := /usr/bin/perl
+-CC := gcc
+-CFLAGS += $(CPPFLAGS) -Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes -Werror -g -DVERSION='"$(VERSION)"' -DPACKAGE='"$(PACKAGE)"' -DLOCALEDIR='"$(nlsdir)"'
+-LIBS :=
+-
+-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+- CFLAGS += -O0
+-else
+- CFLAGS += -O2
+-endif
+-
++CC ?= gcc
++CFLAGS += $(CPPFLAGS) -Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes -DVERSION='"$(VERSION)"' -DPACKAGE='"$(PACKAGE)"' -DLOCALEDIR='"$(nlsdir)"'
++LIBS +=
+
+ # determine our version number
+ ifndef VERSION
+@@ -58,9 +51,6 @@
+ unexport CDPATH ENV
+
+ ifdef DESTDIR
+- ifneq ($(DESTDIR),$(abspath $(DESTDIR)))
+- $(error DESTDIR "$(DESTDIR)" is not an absolute path)
+- endif
+ override ddirshort := DESTDIR
+ export ddirshort
+ endif
+@@ -108,7 +99,9 @@
+ esac; fi;
+ endef
+ else
+- msg := :
++ define msg
++ :
++ endef
+ endif
+
+ msgprefix := *$(subst * ,*,$(wordlist 1,$(MAKELEVEL),* * * * * * * * * * * * * * * * * *))
diff --git a/app-misc/realpath/metadata.xml b/app-misc/realpath/metadata.xml
new file mode 100644
index 000000000000..c0dd433566a9
--- /dev/null
+++ b/app-misc/realpath/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>shell-tools</herd>
+ <longdescription lang="en">
+ The realpath utility finds the canonicalized absolute pathname of its
+ arguments in a similar way to readlink -f.
+</longdescription>
+</pkgmetadata>
diff --git a/app-misc/realpath/realpath-1.17.ebuild b/app-misc/realpath/realpath-1.17.ebuild
new file mode 100644
index 000000000000..a3d2eb1c9f15
--- /dev/null
+++ b/app-misc/realpath/realpath-1.17.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+inherit eutils toolchain-funcs flag-o-matic multilib prefix
+
+DESCRIPTION="Return the canonicalized absolute pathname"
+HOMEPAGE="http://packages.debian.org/unstable/utils/realpath"
+SRC_URI="
+ mirror://debian/pool/main/r/${PN}/${PN}_${PV}.tar.gz
+ nls? ( mirror://debian/pool/main/r/${PN}/${PN}_${PV}_i386.deb )"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE="nls"
+
+RDEPEND="!sys-freebsd/freebsd-bin
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ nls? ( sys-devel/gettext )
+ x86-interix? ( dev-libs/gnulib )
+ elibc_mintlib? ( virtual/libiconv )"
+
+src_unpack() {
+ unpack ${PN}_${PV}.tar.gz
+
+ if use nls; then
+ # Unpack the .deb file, in order to get the preprocessed man page
+ # translations. This way we avoid a dependency on app-text/po4a.
+ mkdir deb
+ cd deb
+ unpack ${PN}_${PV}_i386.deb
+ unpack ./data.tar.gz
+ fi
+}
+
+src_prepare() {
+ use nls || epatch "${FILESDIR}"/${PN}-1.16-nonls.patch
+ epatch "${FILESDIR}"/${PN}-1.17-build.patch
+ epatch "${FILESDIR}"/${PN}-1.14-no-po4a.patch
+ epatch "${FILESDIR}"/${PN}-1.15-prefix.patch
+ eprefixify common.mk
+}
+
+src_compile() {
+ tc-export CC
+ use nls && use !elibc_glibc && append-libs -lintl
+ [[ ${CHOST} == *-mint* ]] && append-libs "-liconv"
+ if [[ ${CHOST} == *-irix* || ${CHOST} == *-interix[35]* ]] ; then
+ append-flags -I"${EPREFIX}"/usr/$(get_libdir)/gnulib/include
+ append-ldflags -L"${EPREFIX}"/usr/$(get_libdir)/gnulib/$(get_libdir)
+ append-libs -lgnu
+ fi
+
+ local subdir
+ for subdir in src man $(usex nls po ''); do
+ emake MAKE_VERBOSE=yes VERSION="${PV}" -C ${subdir}
+ done
+}
+
+src_install() {
+ emake VERSION="${PV}" SUBDIRS="src man $(usex nls po '')" \
+ DESTDIR="${D}" install
+ newdoc debian/changelog ChangeLog.debian
+
+ if use nls; then
+ local dir
+ for dir in "${WORKDIR}"/deb/usr/share/man/*; do
+ [ -f "${dir}"/man1/realpath.1 ] || continue
+ newman "${dir}"/man1/realpath.1 realpath.${dir##*/}.1
+ done
+ fi
+}
diff --git a/app-misc/realpath/realpath-1.18.ebuild b/app-misc/realpath/realpath-1.18.ebuild
new file mode 100644
index 000000000000..5c5975f9a2f7
--- /dev/null
+++ b/app-misc/realpath/realpath-1.18.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils flag-o-matic multilib prefix toolchain-funcs
+
+DESCRIPTION="Return the canonicalized absolute pathname"
+HOMEPAGE="http://packages.debian.org/unstable/utils/realpath"
+SRC_URI="
+ mirror://debian/pool/main/r/${PN}/${PN}_${PV}.tar.gz
+ nls? ( mirror://debian/pool/main/r/${PN}/${PN}_${PV}_i386.deb )"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE="nls"
+
+RDEPEND="
+ !sys-freebsd/freebsd-bin
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ nls? ( sys-devel/gettext )
+ x86-interix? ( dev-libs/gnulib )
+ elibc_mintlib? ( virtual/libiconv )"
+
+src_unpack() {
+ unpack ${PN}_${PV}.tar.gz
+
+ if use nls; then
+ # Unpack the .deb file, in order to get the preprocessed man page
+ # translations. This way we avoid a dependency on app-text/po4a.
+ mkdir deb
+ cd deb
+ unpack ${PN}_${PV}_i386.deb
+ unpack ./data.tar.gz
+ fi
+}
+
+src_prepare() {
+ use nls || epatch "${FILESDIR}"/${PN}-1.16-nonls.patch
+ epatch \
+ "${FILESDIR}"/${PN}-1.17-build.patch \
+ "${FILESDIR}"/${PN}-1.14-no-po4a.patch \
+ "${FILESDIR}"/${PN}-1.15-prefix.patch
+ eprefixify common.mk
+}
+
+src_compile() {
+ tc-export CC
+ use nls && use !elibc_glibc && append-libs -lintl
+ [[ ${CHOST} == *-mint* ]] && append-libs "-liconv"
+ if [[ ${CHOST} == *-irix* || ${CHOST} == *-interix[35]* ]] ; then
+ append-flags -I"${EPREFIX}"/usr/$(get_libdir)/gnulib/include
+ append-ldflags -L"${EPREFIX}"/usr/$(get_libdir)/gnulib/$(get_libdir)
+ append-libs -lgnu
+ fi
+
+ local subdir
+ for subdir in src man $(usex nls po ''); do
+ emake MAKE_VERBOSE=yes VERSION="${PV}" -C ${subdir}
+ done
+}
+
+src_install() {
+ emake \
+ VERSION="${PV}" \
+ SUBDIRS="src man $(usex nls po '')" \
+ DESTDIR="${D}" \
+ install
+ newdoc debian/changelog ChangeLog.debian
+
+ if use nls; then
+ local dir
+ for dir in "${WORKDIR}"/deb/usr/share/man/*; do
+ [ -f "${dir}"/man1/realpath.1 ] || continue
+ newman "${dir}"/man1/realpath.1 realpath.${dir##*/}.1
+ done
+ fi
+}
diff --git a/app-misc/recoll/Manifest b/app-misc/recoll/Manifest
new file mode 100644
index 000000000000..4cec73367476
--- /dev/null
+++ b/app-misc/recoll/Manifest
@@ -0,0 +1,2 @@
+DIST recoll-1.17.3.tar.gz 1757278 SHA256 7778f80546e6b10ca45bfb7f8bb0876ccf3987dd4e98c5003ff923bd8b5acb1c SHA512 b41d28255e6bfbfc8e0025d88c3d56ecfbd35814bfa359c41f3e5d3cc25debe6d66dc617aa4c012e1911aa8c373c48a1661f7fff926e2cce423562af82c2fb31 WHIRLPOOL 3ba9d58a0df401832b1a97f34f4caec1b79aa7de027b936b05195d447e374097bff9205714b1a97c287610c74c0ec2e7e726b144c2295859c293a013c3564644
+DIST recoll-1.19.5.tar.gz 1997615 SHA256 c4d63a4cd1a598117a521a883a6078082b30fe63eef84a879da9b467fcb56a8d SHA512 45ae5dc6d4f6d6dbb3d7e634bd60a2835b767e5d2d8d188636ab4b1777d65a6918c09d5bc09e80e4849aea6e8b2c9c430b99a9e56b645531065e558f4161a5f3 WHIRLPOOL df099f39a681aa1956076018861d064445bcb9fc050c866133a830ebeddb33efcc9a06596ce18d17d80bcfdb663bb780434719092c6c571f42b6093a4c750be3
diff --git a/app-misc/recoll/metadata.xml b/app-misc/recoll/metadata.xml
new file mode 100644
index 000000000000..ed2d6b0e562e
--- /dev/null
+++ b/app-misc/recoll/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>
+ <email>maintainer-needed@gentoo.org</email>
+</maintainer>
+<use>
+ <flag name='camelcase'>Enable indexing for camelCase sentences and words</flag>
+ <flag name='chm'>Index chm files</flag>
+ <flag name='dvi'>Index dvi files</flag>
+ <flag name='ics'>Index iCalendar files</flag>
+ <flag name='info'>Index GNU info files</flag>
+ <flag name='inotify'>Use the Linux Kernel notification subsystem for monitoring file alterations in realtime</flag>
+ <flag name='lyx'>Index Latex lyx files</flag>
+ <flag name='msdoc'>Index Microsoft Word documents</flag>
+ <flag name='msppt'>Index Microsoft PowerPoint documents</flag>
+ <flag name='msxls'>Index Microsoft Excel documents</flag>
+ <flag name='pdf'>Index PDF documents</flag>
+ <flag name='rtf'>Index Microsoft RTF documents</flag>
+ <flag name='session'>Stop monitoring file alterations when X11 session terminates</flag>
+ <flag name='sound'>Index audio files</flag>
+ <flag name='tex'>Index TeX files</flag>
+ <flag name='wordperfect'>Index WordPerfect documents</flag>
+ <flag name='xml'>Index several XML-based formats (Abiword, FictionBook, Kword, Office OpenXML, OpenDocument, SVG)</flag>
+</use>
+</pkgmetadata>
diff --git a/app-misc/recoll/recoll-1.17.3-r1.ebuild b/app-misc/recoll/recoll-1.17.3-r1.ebuild
new file mode 100644
index 000000000000..8e8e80d774d7
--- /dev/null
+++ b/app-misc/recoll/recoll-1.17.3-r1.ebuild
@@ -0,0 +1,161 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+PYTHON_DEPEND="2"
+inherit toolchain-funcs qt4-r2 linux-info python
+
+DESCRIPTION="A personal full text search package"
+HOMEPAGE="http://www.lesbonscomptes.com/recoll/"
+SRC_URI="http://www.lesbonscomptes.com/recoll/${P}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+
+INDEX_HELPERS="chm djvu dvi exif postscript ics info lyx msdoc msppt msxls pdf rtf sound tex wordperfect xml"
+IUSE="+spell +inotify +qt4 +session camelcase xattr fam ${INDEX_HELPERS}"
+
+DEPEND="
+ virtual/libiconv
+ >=dev-libs/xapian-1.0.12
+ sys-libs/zlib
+ spell? ( app-text/aspell )
+ !inotify? ( fam? ( virtual/fam ) )
+ qt4? (
+ dev-qt/qtcore:4[qt3support]
+ dev-qt/qtwebkit:4
+ )
+ session? (
+ inotify? ( x11-libs/libX11 x11-libs/libSM x11-libs/libICE )
+ !inotify? ( fam? ( x11-libs/libX11 x11-libs/libSM x11-libs/libICE ) )
+ )
+"
+
+RDEPEND="
+ ${DEPEND}
+ app-arch/unzip
+ sys-apps/sed
+ virtual/awk
+ pdf? ( app-text/poppler )
+ postscript? ( app-text/pstotext )
+ msdoc? ( app-text/antiword )
+ msxls? ( app-text/catdoc )
+ msppt? ( app-text/catdoc )
+ wordperfect? ( app-text/libwpd:0.9 )
+ rtf? ( app-text/unrtf )
+ tex? ( dev-tex/detex )
+ dvi? ( virtual/tex-base )
+ djvu? ( >=app-text/djvu-3.5.15 )
+ exif? ( media-libs/exiftool )
+ chm? ( dev-python/pychm )
+ ics? ( dev-python/icalendar )
+ lyx? ( app-office/lyx )
+ sound? ( media-libs/mutagen )
+ xml? ( dev-libs/libxslt )
+ info? ( sys-apps/texinfo )
+ "
+
+REQUIRED_USE="^^ ( fam inotify ) session? ( || ( fam inotify ) )"
+
+pkg_pretend() {
+ if use inotify; then
+ CONFIG_CHECK="~INOTIFY_USER"
+ check_extra_config
+ fi
+}
+
+pkg_setup() {
+ python_set_active_version 2
+ python_pkg_setup
+
+ local i at_least_one_helper
+
+ at_least_one_helper=0
+ for i in $INDEX_HELPERS; do
+ if use $i; then
+ at_least_one_helper=1
+ break
+ fi
+ done
+ if [[ $at_least_one_helper -eq 0 ]]; then
+ ewarn
+ ewarn "You did not enable any of the optional file format flags."
+ ewarn "Recoll can read some file formats natively, but many of them"
+ ewarn "are optional since they require external helpers."
+ ewarn
+ fi
+}
+
+src_prepare() {
+ # remember configure.ac is b0rked. Fix it before using eautoreconf in the
+ # future
+ # eautoreconf
+
+ # do not strip binaries
+ sed -i -e "/STRIP/d" "${S}"/${PN}install.in \
+ || die "Failed to fix the installation script"
+ # Drop all the QMAKE lines. We will do it ourselves
+ sed -i -e "/QMAKE/d" Makefile.in || die
+}
+
+src_configure() {
+ local qtconf
+
+ use qt4 && qtconf="QMAKEPATH=/usr/bin/qmake"
+
+ econf \
+ $(use_with spell aspell) \
+ $(use_enable xattr) \
+ $(use_with inotify) \
+ $(use_enable qt4 qtgui) \
+ $(use_enable camelcase) \
+ $(use_with fam) \
+ $(use_with inotify) \
+ $(use_enable session x11mon) \
+ ${qtconf}
+ if use qt4; then
+ cd qtgui && eqmake4 ${PN}.pro && cd ..
+ fi
+}
+
+src_compile() {
+ # Do not let upstream people decide on our behalf
+ sed -i "s:ar ru:$(tc-getAR) ru:" lib/Makefile || die
+
+ emake \
+ CC=$(tc-getCC) \
+ CXX=$(tc-getCXX) \
+ CFLAGS="${CFLAGS} ${LDFLAGS}" \
+ CXXFLAGS="${CXXFLAGS} ${LDFLAGS}"
+}
+
+src_install() {
+ # You probably wonder why I did not fix recollinstall in src_prepare.
+ # --prefix requires an absolute path but recollinstall requires prefix
+ # to be actually 'usr' because double // makes portage sad. And no, I am not
+ # gonna ask upstream to fix the build system
+ sed -i -e "/PREFIX/s:/usr:usr:" "${S}"/${PN}install || die
+ sed -i -e "/prefix/s:/usr:usr:" "${S}"/Makefile || die
+
+ emake DESTDIR="${D%/}" install
+ dodoc ChangeLog README
+ mv "${D}/usr/share/${PN}/doc" "${D}/usr/share/doc/${PF}/html"
+ dosym /usr/share/doc/${PF}/html /usr/share/${PN}/doc
+}
+
+pkg_postinst() {
+ elog
+ elog "Default configuration files located at"
+ elog "/usr/share/${PN}/examples. Either edit these files to match"
+ elog "your needs or copy them to ~/.recoll/ and edit these files"
+ elog "instead."
+ elog
+ if use xattr; then
+ elog "Use flag \"xattr\" enables support for fetching field values"
+ elog "from extended file attributes. You will also need to set up a"
+ elog "map from the attributes names to the Recoll field names"
+ elog "(see comment at the end of the fields configuration file."
+ fi
+}
diff --git a/app-misc/recoll/recoll-1.19.5.ebuild b/app-misc/recoll/recoll-1.19.5.ebuild
new file mode 100644
index 000000000000..9c074c11139b
--- /dev/null
+++ b/app-misc/recoll/recoll-1.19.5.ebuild
@@ -0,0 +1,178 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+PYTHON_DEPEND="2"
+inherit toolchain-funcs qt4-r2 linux-info python readme.gentoo
+
+DESCRIPTION="A personal full text search package"
+HOMEPAGE="http://www.lesbonscomptes.com/recoll/"
+SRC_URI="http://www.lesbonscomptes.com/recoll/${P}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+INDEX_HELPERS="chm djvu dvi exif postscript ics info lyx msdoc msppt msxls pdf rtf sound tex wordperfect xml"
+IUSE="+spell inotify +qt4 +session camelcase xattr webkit fam ${INDEX_HELPERS}"
+
+DEPEND="
+ virtual/libiconv
+ >=dev-libs/xapian-1.0.12
+ sys-libs/zlib
+ spell? ( app-text/aspell )
+ !inotify? ( fam? ( virtual/fam ) )
+ qt4? ( dev-qt/qtcore:4[qt3support] )
+ webkit? ( dev-qt/qtwebkit:4 )
+ session? (
+ inotify? ( x11-libs/libX11 x11-libs/libSM x11-libs/libICE )
+ !inotify? ( fam? ( x11-libs/libX11 x11-libs/libSM x11-libs/libICE ) )
+ )
+"
+
+RDEPEND="
+ ${DEPEND}
+ app-arch/unzip
+ sys-apps/sed
+ virtual/awk
+ pdf? ( app-text/poppler )
+ postscript? ( app-text/pstotext )
+ msdoc? ( app-text/antiword )
+ msxls? ( app-text/catdoc )
+ msppt? ( app-text/catdoc )
+ wordperfect? ( app-text/libwpd:0.9 )
+ rtf? ( app-text/unrtf )
+ tex? ( dev-tex/detex )
+ dvi? ( virtual/tex-base )
+ djvu? ( >=app-text/djvu-3.5.15 )
+ exif? ( media-libs/exiftool )
+ chm? ( dev-python/pychm )
+ ics? ( dev-python/icalendar )
+ lyx? ( app-office/lyx )
+ sound? ( media-libs/mutagen )
+ xml? ( dev-libs/libxslt )
+ info? ( sys-apps/texinfo )
+ "
+
+REQUIRED_USE="session? ( || ( fam inotify ) )"
+
+pkg_pretend() {
+ if use inotify; then
+ CONFIG_CHECK="~INOTIFY_USER"
+ check_extra_config
+ fi
+}
+
+pkg_setup() {
+ python_set_active_version 2
+ python_pkg_setup
+
+ local i at_least_one_helper
+
+ at_least_one_helper=0
+ for i in $INDEX_HELPERS; do
+ if use $i; then
+ at_least_one_helper=1
+ break
+ fi
+ done
+ if [[ $at_least_one_helper -eq 0 ]]; then
+ ewarn
+ ewarn "You did not enable any of the optional file format flags."
+ ewarn "Recoll can read some file formats natively, but many of them"
+ ewarn "are optional since they require external helpers."
+ ewarn
+ fi
+}
+
+src_prepare() {
+ use xattr && has_version "${CATEGORY}/${PN}:${SLOT}[-xattr]" && FORCE_PRINT_ELOG="yes"
+ ! use xattr && has_version "${CATEGORY}/${PN}:${SLOT}[xattr]" && FORCE_PRINT_ELOG="yes"
+
+ DOC_CONTENTS="Default configuration files located at
+ /usr/share/${PN}/examples. Either edit these files to match
+ your needs or copy them to ~/.recoll/ and edit these files
+ instead."
+
+ use xattr && DOC_CONTENTS+="
+ Use flag \"xattr\" enables support for fetching field values
+ from extended file attributes. You will also need to set up a
+ map from the attributes names to the Recoll field names
+ (see comment at the end of the fields configuration file."
+
+ # remember configure.ac is b0rked. Fix it before using eautoreconf in the
+ # future
+ # eautoreconf
+
+ # do not strip binaries
+ sed -i -e "/STRIP/d" "${S}"/${PN}install.in \
+ || die "Failed to fix the installation script"
+ # Drop all the QMAKE lines. We will do it ourselves
+ sed -i -e "/QMAKE/d" Makefile.in || die
+}
+
+src_configure() {
+ local qtconf
+
+ if use qt4 || use webkit; then
+ qtconf="QMAKEPATH=/usr/bin/qmake"
+ fi
+
+ econf \
+ $(use_with spell aspell) \
+ $(use_enable xattr) \
+ $(use_with inotify) \
+ $(use_enable qt4 qtgui) \
+ $(use_enable camelcase) \
+ $(use_with fam) \
+ $(use_with inotify) \
+ $(use_enable session x11mon) \
+ ${qtconf}
+ if use qt4; then
+ cd qtgui && eqmake4 ${PN}.pro && cd ..
+ fi
+}
+
+src_compile() {
+ # Do not let upstream people decide on our behalf
+ sed -i "s:ar ru:$(tc-getAR) ru:" lib/Makefile || die
+
+ emake \
+ CC=$(tc-getCC) \
+ CXX=$(tc-getCXX) \
+ CFLAGS="${CFLAGS} ${LDFLAGS}" \
+ CXXFLAGS="${CXXFLAGS} ${LDFLAGS}"
+}
+
+src_install() {
+ # You probably wonder why I did not fix recollinstall in src_prepare.
+ # --prefix requires an absolute path but recollinstall requires prefix
+ # to be actually 'usr' because double // makes portage sad. And no, I am not
+ # gonna ask upstream to fix the build system
+ sed -i -e "/PREFIX/s:/usr:usr:" "${S}"/${PN}install || die
+ sed -i -e "/prefix/s:/usr:usr:" "${S}"/Makefile || die
+
+ emake DESTDIR="${D%/}" install
+ dodoc ChangeLog README
+ mv "${D}/usr/share/${PN}/doc" "${D}/usr/share/doc/${PF}/html"
+ dosym /usr/share/doc/${PF}/html /usr/share/${PN}/doc
+
+ readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+ readme.gentoo_print_elog
+
+ if [[ -n ${REPLACING_VERSIONS} ]]; then
+ elog
+ elog "1.18 introduces significant index formats"
+ elog "changes to support optional character case and diacritics"
+ elog "sensitivity, and it will be advisable to reset the index in"
+ elog "most cases. This will be best done by destroying the index"
+ elog "directory (rm -rf ~/.recoll/xapiandb). If 1.18 is not configured"
+ elog "for case and diacritics sensitivity, it is mostly compatible"
+ elog "with 1.17 indexes."
+ elog
+ fi
+}
diff --git a/app-misc/regex-markup/Manifest b/app-misc/regex-markup/Manifest
new file mode 100644
index 000000000000..c74ab978540d
--- /dev/null
+++ b/app-misc/regex-markup/Manifest
@@ -0,0 +1 @@
+DIST regex-markup-0.10.0.tar.gz 424480 SHA256 879f0af7622c1eb2d1b7c5f7d0ec53ea96fd48b05bc4f4c17542a2ea17fafba5 SHA512 fddb43b41771e5f75a140798304023087931da383cdee0b6fa9c0bd867e9e5280f484bc6182960c08993d91963de22fa9f0052e867a58067dfc39d9b761e0e9f WHIRLPOOL 2ec2c4c207437aafaab620b23d5f0e287211283615699e824ebc52f82245a8e25454b0b0801bfb063ba5b765b8bc722798baca83ce7e91c3895701ddc8e7d1a3
diff --git a/app-misc/regex-markup/files/regex-markup-0.10.0-locale.patch b/app-misc/regex-markup/files/regex-markup-0.10.0-locale.patch
new file mode 100644
index 000000000000..be9c74a66ceb
--- /dev/null
+++ b/app-misc/regex-markup/files/regex-markup-0.10.0-locale.patch
@@ -0,0 +1,29 @@
+ src/cacheline.c | 2 ++
+ src/remark.c | 1 +
+ 2 files changed, 3 insertions(+), 0 deletions(-)
+
+diff --git a/src/cacheline.c b/src/cacheline.c
+index 8c6f97b..f395c60 100644
+--- a/src/cacheline.c
++++ b/src/cacheline.c
+@@ -27,6 +27,8 @@
+ #include "getline.h" /* Gnulib/GNU Libc */
+ #include "version-etc.h" /* Gnulib */
+
++#include <locale.h>
++
+ enum {
+ HELP_OPT = 256,
+ VERSION_OPT
+diff --git a/src/remark.c b/src/remark.c
+index dcf8327..8998112 100644
+--- a/src/remark.c
++++ b/src/remark.c
+@@ -44,6 +44,7 @@
+ #include "common/intutil.h"
+ /* regex-markup */
+ #include "remark.h"
++#include <locale.h>
+
+ #define PROGRAM "remark"
+
diff --git a/app-misc/regex-markup/metadata.xml b/app-misc/regex-markup/metadata.xml
new file mode 100644
index 000000000000..59e2b8f78cb5
--- /dev/null
+++ b/app-misc/regex-markup/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>maintainer-needed@gentoo.org</email>
+ <name>Default assignee for orphaned packages</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-misc/regex-markup/regex-markup-0.10.0.ebuild b/app-misc/regex-markup/regex-markup-0.10.0.ebuild
new file mode 100644
index 000000000000..b6ae39a6a8ec
--- /dev/null
+++ b/app-misc/regex-markup/regex-markup-0.10.0.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit eutils
+
+DESCRIPTION="A tool to color syslog files as well"
+HOMEPAGE="http://www.nongnu.org/regex-markup/"
+SRC_URI="http://savannah.nongnu.org/download/regex-markup/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE="examples nls"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-locale.patch
+}
+
+src_configure() {
+ econf \
+ --enable-largefile \
+ $(use_enable nls)
+}
+
+src_install() {
+ default
+ if use examples; then
+ cd examples
+ emake -f Makefile
+ fi
+}
diff --git a/app-misc/regionset/Manifest b/app-misc/regionset/Manifest
new file mode 100644
index 000000000000..3fa38e108e1f
--- /dev/null
+++ b/app-misc/regionset/Manifest
@@ -0,0 +1,2 @@
+DIST regionset-0.1.tar.gz 17095 SHA256 acb6f2ae259750fa4db5b9f7b64ae83d9d7ac6ad96b070d976ef1ef2a660a6d5 SHA512 19e1a681f6acc9f7da064432f893cd6736e3b54e5f0187025b9702a7301a982bc2f3948604e3bc9f7f15b20feb0dbc0424ad9727790cddb448b89189c1ce18c3 WHIRLPOOL 771d57b28a5045f15bb235135670cfc095a17045684bec5d9307c5a3bf81428f7ea528e75f99c67462b273b9cd60cac1d71db1abc0fb95c4a9bae0d18ce0ba62
+DIST regionset-0.2.tar.gz 19063 SHA256 0d5c86656efbb6c2efdeed730cff8e5109bd075139ce55542072cbda0ad2f7b9 SHA512 7d7fa92a2031a1d18032ba0979fe0ee27ff84c02977dc03df394383a2d562925b38eedfd478ee08d60e84de60914278f7880c10a43552345fe36af0c0fee6431 WHIRLPOOL 535699b2b35ea21bee4f71fd353bf3245ced1eb6a6e4377f6ec1e900bf802e62134b22d9d0d0a880a99d9f96decf5d70f37892aefa2a44c39e803a9ee5545f9b
diff --git a/app-misc/regionset/metadata.xml b/app-misc/regionset/metadata.xml
new file mode 100644
index 000000000000..bb93fa2613e7
--- /dev/null
+++ b/app-misc/regionset/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>media-optical</herd>
+</pkgmetadata>
diff --git a/app-misc/regionset/regionset-0.1-r1.ebuild b/app-misc/regionset/regionset-0.1-r1.ebuild
new file mode 100644
index 000000000000..6bcefe9e1e98
--- /dev/null
+++ b/app-misc/regionset/regionset-0.1-r1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+inherit toolchain-funcs
+
+DESCRIPTION="Sets the region on DVD drives"
+HOMEPAGE="http://linvdr.org/projects/regionset/"
+SRC_URI="http://linvdr.org/download/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE=""
+
+src_compile() {
+ $(tc-getCC) ${CFLAGS} ${LDFLAGS} -o ${PN} ${PN}.c dvd_udf.c || die
+}
+
+src_install() {
+ dosbin regionset || die
+ dodoc ChangeLog README || die
+}
+
+pkg_postinst() {
+ ewarn "By default regionset uses /dev/dvd, specify a different device"
+ ewarn "as a command line argument if you need to. You need write access"
+ ewarn "to do this, preferably as root."
+ ewarn
+ ewarn "Most drives can only have their region changed 4 or 5 times."
+ ewarn
+ ewarn "When you use regionset, you MUST have a cd or dvd in the drive"
+ ewarn "otherwise nasty things will happen to your drive's firmware."
+}
diff --git a/app-misc/regionset/regionset-0.2.ebuild b/app-misc/regionset/regionset-0.2.ebuild
new file mode 100644
index 000000000000..f4c5f51823fa
--- /dev/null
+++ b/app-misc/regionset/regionset-0.2.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit toolchain-funcs
+
+DESCRIPTION="Sets the region on DVD drives"
+HOMEPAGE="http://linvdr.org/projects/regionset/"
+SRC_URI="http://linvdr.org/download/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+src_prepare() {
+ sed "/^\.IR/s@${PN}@${PF}@" -i ${PN}.8 || die
+}
+
+src_compile() {
+ $(tc-getCC) ${CFLAGS} ${LDFLAGS} -o ${PN} ${PN}.c dvd_udf.c || die
+}
+
+src_install() {
+ dosbin ${PN}
+ doman ${PN}.8
+ dodoc debian/changelog README
+}
+
+pkg_postinst() {
+ ewarn "By default regionset uses /dev/dvd, specify a different device"
+ ewarn "as a command line argument if you need to. You need write access"
+ ewarn "to do this, preferably as root."
+ ewarn
+ ewarn "Most drives can only have their region changed 4 or 5 times."
+ ewarn
+ ewarn "When you use regionset, you MUST have a cd or dvd in the drive"
+ ewarn "otherwise nasty things will happen to your drive's firmware."
+}
diff --git a/app-misc/relevation/Manifest b/app-misc/relevation/Manifest
new file mode 100644
index 000000000000..107dc25a4d2a
--- /dev/null
+++ b/app-misc/relevation/Manifest
@@ -0,0 +1 @@
+DIST relevation-1.3.tar.gz 28053 SHA256 aa31c2a1a5ae0aa6b836e061bc504d0164c664c819a2259bc3c08fd0039859bf SHA512 42aab7107a63b1a9e6908cd8e49c3775f41f8acd025ee633bbac09ed5648c7bbfa584ed9bbfbfee12d26ab648b457aa974d8d52753a6b4faec3bd8ab605fec05 WHIRLPOOL c713f0a7da744e73df4b21f03995ee9fdd16ffaaab6e42ddb030c1b7b2476d61deb65ee787d76cbbae3b5834ec592cbfe35cab74ac46d529df431b2d50406952
diff --git a/app-misc/relevation/metadata.xml b/app-misc/relevation/metadata.xml
new file mode 100644
index 000000000000..efa5eb0078f3
--- /dev/null
+++ b/app-misc/relevation/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version = '1.0' encoding = 'UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>radhermit@gentoo.org</email>
+ <name>Tim Harder</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-misc/relevation/relevation-1.3.ebuild b/app-misc/relevation/relevation-1.3.ebuild
new file mode 100644
index 000000000000..ed2cceb2aac7
--- /dev/null
+++ b/app-misc/relevation/relevation-1.3.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1
+
+DESCRIPTION="a command-line searcher for the Revelation password manager"
+HOMEPAGE="http://p.outlyer.net/relevation/"
+SRC_URI="http://p.outlyer.net/${PN}/files/${P}.tar.gz"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="dev-python/lxml[${PYTHON_USEDEP}]
+ dev-python/pycrypto[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}"
+
+python_prepare_all() {
+ # install extra scripts in proper doc dir
+ sed -i "s#relevation/extra#${PF}/extra#" setup.py || die
+
+ distutils-r1_python_prepare_all
+}
diff --git a/app-misc/remind/Manifest b/app-misc/remind/Manifest
new file mode 100644
index 000000000000..dab5c1c5d1f8
--- /dev/null
+++ b/app-misc/remind/Manifest
@@ -0,0 +1,3 @@
+DIST remind-03.01.13.tar.gz 361650 SHA256 cf2663d5eb41863fc98da7c8db31ae0a86fbe7137aada81d0649523b4a0bfc4f SHA512 28478e78a52055ca0c8f8d1da82149c4afa4436bb02652c39eb0547777b7fad0a9489faf3c86f9225dad5f843a708b72dd48e1aa44bd02f4361600cf2d0f0392 WHIRLPOOL dede62bb7e053317ca6434907ce63d4e49517ad0c250f12fd66769df2babef8f56306b4082a9948a501ee0f9766ba3e3a35440d38317bde230d1ebd7f53782a9
+DIST remind-03.01.14.tar.gz 362771 SHA256 0ad14ae796dfd844e2901c691d03ebdd173fd8a71141df0c26c1d192f29031ad SHA512 2dd26d70287a4aa060cfb762ea670b899ecf22de4aa4bf611decdd7d53537370a949277d691f6f7a6baeb4d599ccf4428c5ef476cd8286824269095d7036388c WHIRLPOOL 9c9666339304262d2463bca0b25596de168d66d27fe1f77723008708a176d0f84614bd29303e1ae48a8ad45783e8809571fcc3f6cc446b4895ffeba54a9da646
+DIST remind-03.01.15.tar.gz 363101 SHA256 8adab4c0b30a556c34223094c5c74779164d5f3b8be66b8039f44b577e678ec1 SHA512 335f3ca88237f1ae53768b9ecdeb03f0bb1e706a8afd3ba36121ec76048a08fbc0d5ec72b05e552394b4cf2131be335c49533e1212b7e713ef16002a0621fc84 WHIRLPOOL 523d5d413586d6bc80d6714c5b5e9064b2162c29450298a19fd056b7542fdbbd8ae722c2b78f6c0e96d601d7ad6ad382c9b15a6d40609de66970250a50f2eb7f
diff --git a/app-misc/remind/metadata.xml b/app-misc/remind/metadata.xml
new file mode 100644
index 000000000000..540f810e069d
--- /dev/null
+++ b/app-misc/remind/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>desktop-misc</herd>
+</pkgmetadata>
diff --git a/app-misc/remind/remind-03.01.13.ebuild b/app-misc/remind/remind-03.01.13.ebuild
new file mode 100644
index 000000000000..f86e628bf861
--- /dev/null
+++ b/app-misc/remind/remind-03.01.13.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+DESCRIPTION="Ridiculously functional reminder program"
+HOMEPAGE="http://www.roaringpenguin.com/products/remind"
+SRC_URI="http://www.roaringpenguin.com/files/download/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86 ~x86-fbsd"
+IUSE="tk"
+
+RDEPEND="tk? ( dev-lang/tk dev-tcltk/tcllib )"
+
+DOCS="docs/WHATSNEW examples/defs.rem www/README.*"
+
+src_prepare() {
+ sed -i 's:$(MAKE) install:&-nostripped:' "${S}"/Makefile || die
+}
+
+src_test() {
+ if [[ ${EUID} -eq 0 ]] ; then
+ ewarn "Testing fails if run as root. Skipping tests."
+ return
+ fi
+ emake test
+}
+
+src_install() {
+ default
+ dobin www/rem2html
+
+ if ! use tk ; then
+ rm "${D}"/usr/bin/tkremind "${D}"/usr/share/man/man1/tkremind* \
+ "${D}"/usr/bin/cm2rem* "${D}"/usr/share/man/man1/cm2rem*
+ fi
+
+ rm "${S}"/contrib/rem2ics-*/{Makefile,rem2ics.spec} || die
+ insinto /usr/share/${PN}
+ doins -r contrib/
+}
diff --git a/app-misc/remind/remind-03.01.14.ebuild b/app-misc/remind/remind-03.01.14.ebuild
new file mode 100644
index 000000000000..dac2f9490e28
--- /dev/null
+++ b/app-misc/remind/remind-03.01.14.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+DESCRIPTION="Ridiculously functional reminder program"
+HOMEPAGE="http://www.roaringpenguin.com/products/remind"
+SRC_URI="http://www.roaringpenguin.com/files/download/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd"
+IUSE="tk"
+
+RDEPEND="tk? ( dev-lang/tk dev-tcltk/tcllib )"
+
+DOCS="docs/WHATSNEW examples/defs.rem www/README.*"
+
+src_prepare() {
+ sed -i 's:$(MAKE) install:&-nostripped:' "${S}"/Makefile || die
+}
+
+src_test() {
+ if [[ ${EUID} -eq 0 ]] ; then
+ ewarn "Testing fails if run as root. Skipping tests."
+ else
+ emake test
+ fi
+}
+
+src_install() {
+ default
+ dobin www/rem2html
+
+ if ! use tk ; then
+ rm "${D}"/usr/bin/tkremind "${D}"/usr/share/man/man1/tkremind* \
+ "${D}"/usr/bin/cm2rem* "${D}"/usr/share/man/man1/cm2rem*
+ fi
+
+ rm "${S}"/contrib/rem2ics-*/{Makefile,rem2ics.spec} || die
+ insinto /usr/share/${PN}
+ doins -r contrib/
+}
diff --git a/app-misc/remind/remind-03.01.15.ebuild b/app-misc/remind/remind-03.01.15.ebuild
new file mode 100644
index 000000000000..7ec7732091d6
--- /dev/null
+++ b/app-misc/remind/remind-03.01.15.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+DESCRIPTION="Ridiculously functional reminder program"
+HOMEPAGE="http://www.roaringpenguin.com/products/remind"
+SRC_URI="http://www.roaringpenguin.com/files/download/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86 ~x86-fbsd"
+IUSE="tk"
+
+RDEPEND="tk? ( dev-lang/tk dev-tcltk/tcllib )"
+
+DOCS="docs/WHATSNEW examples/defs.rem www/README.*"
+
+src_prepare() {
+ sed -i 's:$(MAKE) install:&-nostripped:' "${S}"/Makefile || die
+}
+
+src_test() {
+ if [[ ${EUID} -eq 0 ]] ; then
+ ewarn "Testing fails if run as root. Skipping tests."
+ else
+ emake test
+ fi
+}
+
+src_install() {
+ default
+ dobin www/rem2html
+
+ if ! use tk ; then
+ rm "${D}"/usr/bin/tkremind "${D}"/usr/share/man/man1/tkremind* \
+ "${D}"/usr/bin/cm2rem* "${D}"/usr/share/man/man1/cm2rem*
+ fi
+
+ rm "${S}"/contrib/rem2ics-*/{Makefile,rem2ics.spec} || die
+ insinto /usr/share/${PN}
+ doins -r contrib/
+}
diff --git a/app-misc/reptyr/Manifest b/app-misc/reptyr/Manifest
new file mode 100644
index 000000000000..7ae34c9defaf
--- /dev/null
+++ b/app-misc/reptyr/Manifest
@@ -0,0 +1,4 @@
+DIST reptyr-0.5.tar.gz 16150 SHA256 b58bff5e06096ce4409983cce85fabc1280ed4115c478c0fec968ce2a4dcec1c SHA512 d38d5986b38c643a2c04429e23d5af0cbd7280ed709c441cf0e217f4fe0e4fd19d7ecb76817aedcf9a2092a8041e22aa77828c07e0cea010478192085b1d8f4b WHIRLPOOL 19fdb5f35b05c2f03ab5af1cc2e2b1510733f1b54d6af6bb14db31185f432df5ff7515b1b36207b976ca5beb2649ca7a1c51d52cb0827280e62bedd05e965726
+DIST reptyr-0.6.1.tar.gz 27865 SHA256 9255c83c8b3544a7974b92dcfa4cced2749635f5f99e045b1dd54dfdefd1a00f SHA512 880f2fdc1bb7cab1f880bb49148bfdee10d7af7b9dac47a5ca7414ab10bf53f561e6092a005ce46544d732200d73687dcf893216010b04ed6c2260ea9a8db2dd WHIRLPOOL ee89917cce87d2708dd06ffcfb0273d44ecdc0baed8fe0fa4942b6918e524fdcf58afd0d4d72f54e2343782aa4b8b1ab04015e1259fdd87f3fd007393c1ba2ab
+DIST reptyr-0.6.2.tar.gz 28533 SHA256 c73de510eeedc37a0aac63ea4be9a3c841bbbda029232f871b15d53733a0ee1e SHA512 ad0b378d3c30bbfaa30dfcc06c405c375c7e9bcc3bae2e7fb97b8c3f88f482f461c9c846df0064cc842149b07b8a6b616d95f74cdf38f1b2a5011f6b9328c327 WHIRLPOOL 47cd5ffb5f0b02df218a8af67c0458e9b69bce5172d30f36a692418437363a585ab345e556de034703ca5ac9826a8bd086b85aa492050551e9204a99700fd1fb
+DIST reptyr-0.6.tar.gz 27802 SHA256 71a4f87da228807e540d688b1446d9ba28556e02a9a63175981f66bb39f1049b SHA512 f862644dc2008b7b39f3ef3eca26abc5651d32c9dfb8d2d3b7b9e2f310ebf481a82a95f00417ab87d52f475aea03bdcebeb00e0499e9a0ec89f1f816b96a7f9d WHIRLPOOL 58b995f3799a650a88a44a813356dee4ce6267f314cd5ce797c4452e70e60549756d7b846b5c16ad4007ad09252ac80c6fdde442c5d43dc76bca3cc145dc6107
diff --git a/app-misc/reptyr/metadata.xml b/app-misc/reptyr/metadata.xml
new file mode 100644
index 000000000000..2f53db109e26
--- /dev/null
+++ b/app-misc/reptyr/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>shell-tools</herd>
+ <maintainer>
+ <email>radhermit@gentoo.org</email>
+ <name>Tim Harder</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">nelhage/reptyr</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/reptyr/reptyr-0.5.ebuild b/app-misc/reptyr/reptyr-0.5.ebuild
new file mode 100644
index 000000000000..5bc6f3c1e55e
--- /dev/null
+++ b/app-misc/reptyr/reptyr-0.5.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit toolchain-funcs flag-o-matic vcs-snapshot
+
+DESCRIPTION="A utility to attach a running program to a new terminal"
+HOMEPAGE="https://github.com/nelhage/reptyr"
+SRC_URI="https://github.com/nelhage/${PN}/archive/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="amd64 ~arm x86 ~amd64-linux ~x86-linux"
+
+src_prepare() {
+ # respect CFLAGS
+ sed -i '/^override/d' Makefile || die
+}
+
+src_compile() {
+ append-cppflags -D_GNU_SOURCE
+ emake CC=$(tc-getCC) CFLAGS="${CFLAGS}"
+}
+
+src_install() {
+ emake DESTDIR="${D}" PREFIX="${EPREFIX}"/usr install
+ dodoc ChangeLog NOTES README.md
+}
diff --git a/app-misc/reptyr/reptyr-0.6.1.ebuild b/app-misc/reptyr/reptyr-0.6.1.ebuild
new file mode 100644
index 000000000000..52746dfb619a
--- /dev/null
+++ b/app-misc/reptyr/reptyr-0.6.1.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit toolchain-funcs flag-o-matic vcs-snapshot
+
+DESCRIPTION="A utility to attach a running program to a new terminal"
+HOMEPAGE="https://github.com/nelhage/reptyr"
+SRC_URI="https://github.com/nelhage/${PN}/archive/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
+
+RESTRICT="test"
+
+src_prepare() {
+ # respect CFLAGS
+ sed -i '/^override/d' Makefile || die
+}
+
+src_compile() {
+ append-cppflags -D_GNU_SOURCE
+ emake CC=$(tc-getCC) CFLAGS="${CFLAGS}"
+}
+
+src_install() {
+ emake DESTDIR="${D}" PREFIX="${EPREFIX}"/usr install
+ dodoc ChangeLog NOTES README.md
+}
diff --git a/app-misc/reptyr/reptyr-0.6.2.ebuild b/app-misc/reptyr/reptyr-0.6.2.ebuild
new file mode 100644
index 000000000000..52746dfb619a
--- /dev/null
+++ b/app-misc/reptyr/reptyr-0.6.2.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit toolchain-funcs flag-o-matic vcs-snapshot
+
+DESCRIPTION="A utility to attach a running program to a new terminal"
+HOMEPAGE="https://github.com/nelhage/reptyr"
+SRC_URI="https://github.com/nelhage/${PN}/archive/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
+
+RESTRICT="test"
+
+src_prepare() {
+ # respect CFLAGS
+ sed -i '/^override/d' Makefile || die
+}
+
+src_compile() {
+ append-cppflags -D_GNU_SOURCE
+ emake CC=$(tc-getCC) CFLAGS="${CFLAGS}"
+}
+
+src_install() {
+ emake DESTDIR="${D}" PREFIX="${EPREFIX}"/usr install
+ dodoc ChangeLog NOTES README.md
+}
diff --git a/app-misc/reptyr/reptyr-0.6.ebuild b/app-misc/reptyr/reptyr-0.6.ebuild
new file mode 100644
index 000000000000..52746dfb619a
--- /dev/null
+++ b/app-misc/reptyr/reptyr-0.6.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit toolchain-funcs flag-o-matic vcs-snapshot
+
+DESCRIPTION="A utility to attach a running program to a new terminal"
+HOMEPAGE="https://github.com/nelhage/reptyr"
+SRC_URI="https://github.com/nelhage/${PN}/archive/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
+
+RESTRICT="test"
+
+src_prepare() {
+ # respect CFLAGS
+ sed -i '/^override/d' Makefile || die
+}
+
+src_compile() {
+ append-cppflags -D_GNU_SOURCE
+ emake CC=$(tc-getCC) CFLAGS="${CFLAGS}"
+}
+
+src_install() {
+ emake DESTDIR="${D}" PREFIX="${EPREFIX}"/usr install
+ dodoc ChangeLog NOTES README.md
+}
diff --git a/app-misc/rioutil/Manifest b/app-misc/rioutil/Manifest
new file mode 100644
index 000000000000..cafc74dca10e
--- /dev/null
+++ b/app-misc/rioutil/Manifest
@@ -0,0 +1 @@
+DIST rioutil-1.5.0.tar.gz 401244 SHA256 4991cda30bcd0cd01097c4d220c5facf67e988d4bbfc2f272a359ac89d52e9a7 SHA512 3e3bf1c053e2f0146c504c5015e33cd3281daad136f41d82100d6181b6720c7f1131615c663f821573d7aeb077efc1b59e8e23a8f15a851e332ad61ea0479f1d WHIRLPOOL dbf9a1d4164dd2987e856f534a26230a57daced5c9a6f465652b16cdca94832a06514ff753c2ae5af2a5cc27d487ec1de6e143b1854b1207f1d81dd2d8f2d486
diff --git a/app-misc/rioutil/files/75-rio.rules b/app-misc/rioutil/files/75-rio.rules
new file mode 100644
index 000000000000..610131a7dbe2
--- /dev/null
+++ b/app-misc/rioutil/files/75-rio.rules
@@ -0,0 +1,38 @@
+ACTION!="add", GOTO="rio_rules_end"
+SUBSYSTEM!="usb|usb_device", GOTO="rio_rules_end"
+
+# Diamond flash players
+# Rio 600
+ATTRS{idVendor}=="045a", ATTRS{idProduct}=="5001", MODE="0660", GROUP="usb"
+# Rio 800
+ATTRS{idVendor}=="045a", ATTRS{idProduct}=="5002", MODE="0660", GROUP="usb"
+# Nike psa[play
+ATTRS{idVendor}=="045a", ATTRS{idProduct}=="5003", MODE="0660", GROUP="usb"
+# Rio S10
+ATTRS{idVendor}=="045a", ATTRS{idProduct}=="5005", MODE="0660", GROUP="usb"
+# Rio S50
+ATTRS{idVendor}=="045a", ATTRS{idProduct}=="5006", MODE="0660", GROUP="usb"
+# Rio S35
+ATTRS{idVendor}=="045a", ATTRS{idProduct}=="5007", MODE="0660", GROUP="usb"
+# Rio 900
+ATTRS{idVendor}=="045a", ATTRS{idProduct}=="5008", MODE="0660", GROUP="usb"
+# Rio S30
+ATTRS{idVendor}=="045a", ATTRS{idProduct}=="5009", MODE="0660", GROUP="usb"
+# Fuse
+ATTRS{idVendor}=="045a", ATTRS{idProduct}=="500d", MODE="0660", GROUP="usb"
+# Chiba
+ATTRS{idVendor}=="045a", ATTRS{idProduct}=="500e", MODE="0660", GROUP="usb"
+# Cali
+ATTRS{idVendor}=="045a", ATTRS{idProduct}=="500f", MODE="0660", GROUP="usb"
+# Cali256
+ATTRS{idVendor}=="045a", ATTRS{idProduct}=="503f", MODE="0660", GROUP="usb"
+# Rio S11
+ATTRS{idVendor}=="045a", ATTRS{idProduct}=="5010", MODE="0660", GROUP="usb"
+
+# Diamond hard drive players
+# Rio Riot
+ATTRS{idVendor}=="045a", ATTRS{idProduct}=="5202", MODE="0660", GROUP="usb"
+# Nitrus
+ATTRS{idVendor}=="045a", ATTRS{idProduct}=="5220", MODE="0660", GROUP="usb"
+
+LABEL="rio_rules_end"
diff --git a/app-misc/rioutil/files/rioutil-1.5.0-buffer-overflow.patch b/app-misc/rioutil/files/rioutil-1.5.0-buffer-overflow.patch
new file mode 100644
index 000000000000..1739a146c485
--- /dev/null
+++ b/app-misc/rioutil/files/rioutil-1.5.0-buffer-overflow.patch
@@ -0,0 +1,15 @@
+flist->genre is defined as 'char genre[17]' so don't copy 22 into it
+
+Patch by Kevin McCarthy <signals42@gmail.com>
+
+--- librioutil/file_list.c
++++ librioutil/file_list.c
+@@ -241,7 +241,7 @@
+ strncpy(flist->title, info.data->title, 64);
+ strncpy(flist->album, info.data->album, 64);
+ strncpy(flist->name, info.data->name, 64);
+- strncpy(flist->genre, (char *)info.data->genre2, 22);
++ strncpy(flist->genre, (char *)info.data->genre2, 17);
+
+ strncpy(flist->year, (char *)info.data->year2, 4);
+
diff --git a/app-misc/rioutil/metadata.xml b/app-misc/rioutil/metadata.xml
new file mode 100644
index 000000000000..855f76f97b84
--- /dev/null
+++ b/app-misc/rioutil/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>
+ <email>maintainer-needed@gentoo.org</email>
+ <description>This package lacks a primary herd or maintainer.</description>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">rioutil</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/rioutil/rioutil-1.5.0-r2.ebuild b/app-misc/rioutil/rioutil-1.5.0-r2.ebuild
new file mode 100644
index 000000000000..3233708aeb3d
--- /dev/null
+++ b/app-misc/rioutil/rioutil-1.5.0-r2.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+inherit multilib eutils
+
+DESCRIPTION="Command line tool for transfering mp3s to and from a Rio 600, 800, Rio Riot, and Nike PSA/Play"
+HOMEPAGE="http://rioutil.sourceforge.net/"
+SRC_URI="mirror://sourceforge/rioutil/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86"
+IUSE=""
+
+RDEPEND="virtual/libusb:0"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-buffer-overflow.patch
+}
+
+src_configure() {
+ econf --disable-static
+}
+
+src_install() {
+ emake DESTDIR="${D}" libdir="/usr/$(get_libdir)" install
+ find "${ED}" -name '*.la' -exec rm -f {} +
+ dodoc AUTHORS ChangeLog NEWS README TODO
+
+ insinto /lib/udev/rules.d
+ doins "${FILESDIR}"/75-rio.rules
+}
diff --git a/app-misc/rl/Manifest b/app-misc/rl/Manifest
new file mode 100644
index 000000000000..17427f8ce248
--- /dev/null
+++ b/app-misc/rl/Manifest
@@ -0,0 +1 @@
+DIST rl-0.2.7.tar.gz 131028 SHA256 1cfca23d6a14acd190c5a6261923757d20cb94861c9b2066991ec7a7cae33bc8 SHA512 c9db8564832494148ed8e60df844a2a383e52b9d293564cf46b393e57a88f773b7307a1dd749d4e5e2daef1632b5350de00ab2585478ff3c18bffa1c5c573f8d WHIRLPOOL ee388274029b4ed5c8bc58f27a8fc1c9ccc7be2167426d5e4751eb26f88a238084bde89d9c036fd5d067ceff72e3191a4b32aa0e067c491ce6b87d20f077654c
diff --git a/app-misc/rl/metadata.xml b/app-misc/rl/metadata.xml
new file mode 100644
index 000000000000..7d749dcbefb7
--- /dev/null
+++ b/app-misc/rl/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>shell-tools</herd>
+ <maintainer>
+ <email>swegener@gentoo.org</email>
+ <description>primary maintainer</description>
+ </maintainer>
+ <longdescription>randomize lines can be used to randomize the contents of text files or standard input.</longdescription>
+</pkgmetadata>
diff --git a/app-misc/rl/rl-0.2.7.ebuild b/app-misc/rl/rl-0.2.7.ebuild
new file mode 100644
index 000000000000..eb7d68467b79
--- /dev/null
+++ b/app-misc/rl/rl-0.2.7.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+DESCRIPTION="Randomize lines from text files or stdin"
+HOMEPAGE="http://ch.tudelft.nl/~arthur/rl/"
+SRC_URI="http://ch.tudelft.nl/~arthur/rl/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ia64 ~mips ppc s390 sparc x86"
+IUSE="debug"
+
+src_compile() {
+ local myconf=""
+
+ use debug && myconf="${myconf} --enable-debug"
+
+ econf ${myconf}
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake install DESTDIR="${D}" || die "install failed"
+ dodoc AUTHORS ChangeLog INSTALL NEWS README TODO || die
+}
diff --git a/app-misc/rlwrap/Manifest b/app-misc/rlwrap/Manifest
new file mode 100644
index 000000000000..7613889c4192
--- /dev/null
+++ b/app-misc/rlwrap/Manifest
@@ -0,0 +1,3 @@
+DIST rlwrap-0.37.tar.gz 251438 SHA256 8403a2c184a33ee293a30637afd1362e7dbe0ee642c33b54b2fca68162498bbd SHA512 39edeaed5d36636ea3fa7993808a485ce5c6f303621c64f4a758b29b4fb0bb9ca0bfc60317bd8efa95c7e138db7ff0cb8fdb712a7d1582ea1c732e143efdd9c2 WHIRLPOOL 874950e10c990a3789f806aa0d9a48dc0b03d23da445c75248d1df319a080ae3bcd076a563121e4f5c3230cd6f66352552778d593e5545c84580ce6ae31c0268
+DIST rlwrap-0.41.tar.gz 259472 SHA256 34497647b68df4ee031acf4ef80c09c79fe02b9027e8988a64e13f9ebc17c20a SHA512 1a2949b5a1009da8bbc6bf4bb4a7a829fc0c2c37dacdb102ce4c102b636762a4dd5224f293e419159b691ef78419de1e322a42b41694cd4fbf384e21759e34d9 WHIRLPOOL e5a7d201b775e8891396e3b025563554bf4c0b62d73008bdc23cc456e9a0fc770a8a713171a0e119ff1579815004b1e3ca1a4f42ec0cb0eb0d25e1be38d463f1
+DIST rlwrap-0.42.tar.gz 279608 SHA256 5a70d8469db9d0a6630628f2d5d2972ad16c092400b7fbbdf699693ec0f87e44 SHA512 991885e75aabf0d43581d59f7c78f7f64c3f32072de08ff5796cba75c0716548d2186cbe2d739f3e772871e3586d036f069db73b2ee8a30b2f7985088d0f68df WHIRLPOOL a4ff4ac599f87695c15060dcacb2d10b5d8ff21512f38b7374e096ef71ae17f7e977ecb9e3004c231d8d8c5b37e2ddbab724fedb3439f507a5a483373f4af14b
diff --git a/app-misc/rlwrap/metadata.xml b/app-misc/rlwrap/metadata.xml
new file mode 100644
index 000000000000..0c2b9b15728e
--- /dev/null
+++ b/app-misc/rlwrap/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>common-lisp</herd>
+ <longdescription>
+ rlwrap is a 'readline wrapper' that uses the GNU Readline library to
+ allow the editing of keyboard input for any other command. Input
+ history is remembered across invocations, separately for each command;
+ history completion and search work as in bash and completion word
+ lists can be specified on the command line.
+ </longdescription>
+ <use>
+ <flag name="debug">Enable debug</flag>
+ </use>
+</pkgmetadata>
diff --git a/app-misc/rlwrap/rlwrap-0.37.ebuild b/app-misc/rlwrap/rlwrap-0.37.ebuild
new file mode 100644
index 000000000000..ea180cc3ea73
--- /dev/null
+++ b/app-misc/rlwrap/rlwrap-0.37.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=3
+
+DESCRIPTION="GNU readline wrapper"
+HOMEPAGE="http://utopia.knoware.nl/~hlub/uck/rlwrap/"
+SRC_URI="http://utopia.knoware.nl/~hlub/uck/rlwrap/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~mips ppc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+IUSE="debug"
+
+RDEPEND="sys-libs/readline"
+DEPEND="${RDEPEND}"
+
+src_configure() {
+ econf \
+ $(use_enable debug)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+ dodoc AUTHORS BUGS ChangeLog NEWS README # PLEA TODO
+}
diff --git a/app-misc/rlwrap/rlwrap-0.41.ebuild b/app-misc/rlwrap/rlwrap-0.41.ebuild
new file mode 100644
index 000000000000..61c9a2eb106b
--- /dev/null
+++ b/app-misc/rlwrap/rlwrap-0.41.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+DESCRIPTION="GNU readline wrapper"
+HOMEPAGE="http://utopia.knoware.nl/~hlub/uck/rlwrap/"
+SRC_URI="http://utopia.knoware.nl/~hlub/uck/rlwrap/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~mips ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+IUSE="debug"
+
+RDEPEND="sys-libs/readline"
+DEPEND="${RDEPEND}"
+
+src_configure() {
+ econf \
+ $(use_enable debug)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+ dodoc AUTHORS BUGS ChangeLog NEWS README # PLEA TODO
+}
diff --git a/app-misc/rlwrap/rlwrap-0.42.ebuild b/app-misc/rlwrap/rlwrap-0.42.ebuild
new file mode 100644
index 000000000000..a42f734d8375
--- /dev/null
+++ b/app-misc/rlwrap/rlwrap-0.42.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+DESCRIPTION="GNU readline wrapper"
+HOMEPAGE="http://utopia.knoware.nl/~hlub/uck/rlwrap/"
+SRC_URI="http://utopia.knoware.nl/~hlub/uck/rlwrap/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~mips ppc x86 ~ppc-aix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+IUSE="debug"
+
+RDEPEND="sys-libs/readline"
+DEPEND="${RDEPEND}"
+
+src_configure() {
+ econf \
+ $(use_enable debug)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+ dodoc AUTHORS BUGS ChangeLog NEWS README # PLEA TODO
+}
diff --git a/app-misc/roadnav/Manifest b/app-misc/roadnav/Manifest
new file mode 100644
index 000000000000..ff6be1e4b450
--- /dev/null
+++ b/app-misc/roadnav/Manifest
@@ -0,0 +1 @@
+DIST roadnav-0.19.tar.gz 1289497 SHA256 6354600e10ec6be17a8f7c0282a11e80b1ad6cb4e59c979dd7e336ffcc22143e SHA512 981b7d0b506c977b5c882c7d815566450966de969f46b6ecd7deb10f418d09630e90cc12f308924d7453c3a44f7317d8e91d6b3706ecebe76a97dc62adf44b45 WHIRLPOOL cf613b7003b9800ffb89986e0dbd3496596ca7789946931a97fc749c10b03d2f44a88aa4db39e15c49559afcfda7a076a39b21817bd387aa80bd4be5b240c608
diff --git a/app-misc/roadnav/files/roadnav-0.19-gcc45.patch b/app-misc/roadnav/files/roadnav-0.19-gcc45.patch
new file mode 100644
index 000000000000..60e562bfa789
--- /dev/null
+++ b/app-misc/roadnav/files/roadnav-0.19-gcc45.patch
@@ -0,0 +1,26 @@
+diff --git a/src/GPSInterface_Serial.cpp b/src/GPSInterface_Serial.cpp
+index c3e9435..fcae209 100644
+--- a/src/GPSInterface_Serial.cpp
++++ b/src/GPSInterface_Serial.cpp
+@@ -243,7 +243,7 @@ IGPSInterface::EGPSStatus GPSInterface_Serial::GetData(wxGPSEvent * pGPSEvent)
+
+ // Echo DeLorme Tripmate's and Earthmate's hello message
+ LibRoadnavDebug1(wxT("SerialIO"), wxT("Echoing hello message: %s"), strSentence.c_str());
+- sprintf(szOut, "%s\r\n", strSentence.mb_str(*wxConvCurrent));
++ sprintf(szOut, "%s\r\n", static_cast<const char *>(strSentence.mb_str(*wxConvCurrent)));
+ WriteSerial(szOut);
+ }
+ else if (!VerifyGPSChecksum(strSentence)) // check NMEA validity
+diff --git a/src/TTS_Festival.cpp b/src/TTS_Festival.cpp
+index 8623cb3..2950490 100644
+--- a/src/TTS_Festival.cpp
++++ b/src/TTS_Festival.cpp
+@@ -88,7 +88,7 @@ ITTS::ETTSStatus TTS_Festival::Speak(const wxString & strText)
+ ppszArgs[2],
+ 64 + strText.Length(),
+ wxT("echo \\(SayText \\\"%ss\\\"\\) | festival"),
+- strText.mb_str(*wxConvCurrent)
++ static_cast<const char *>(strText.mb_str(*wxConvCurrent))
+ );
+
+ wxExecute(ppszArgs, wxEXEC_SYNC);
diff --git a/app-misc/roadnav/metadata.xml b/app-misc/roadnav/metadata.xml
new file mode 100644
index 000000000000..29dde1bff37a
--- /dev/null
+++ b/app-misc/roadnav/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>proxy-maintainers</herd>
+ <maintainer>
+ <email>andrew.cremins@gmail.com</email>
+ </maintainer>
+ <use>
+ <flag name="festival">Enable support for
+ <pkg>app-accessibility/festival</pkg></flag>
+ <flag name="openstreetmap">Enable openstreetmap support</flag>
+ <flag name="scripting">Enable scripting support</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">roadnav</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/roadnav/roadnav-0.19-r1.ebuild b/app-misc/roadnav/roadnav-0.19-r1.ebuild
new file mode 100644
index 000000000000..58db4b8118b7
--- /dev/null
+++ b/app-misc/roadnav/roadnav-0.19-r1.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+WX_GTK_VER=2.8
+
+inherit eutils wxwidgets
+
+DESCRIPTION="Roadnav is a street map application with routing and GPS support"
+HOMEPAGE="http://roadnav.sourceforge.net"
+SRC_URI="mirror://sourceforge/roadnav/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="gps festival openstreetmap scripting" #flite, see bug #516426
+
+DEPEND="
+ x11-libs/wxGTK:2.8[X]
+ ~dev-libs/libroadnav-${PV}
+ festival? ( app-accessibility/festival )
+ gps? ( sci-geosciences/gpsd )
+"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-gcc45.patch
+}
+
+src_configure() {
+ econf \
+ $(use_enable festival) \
+ $(use_enable gps gpsd) \
+ $(use_enable openstreetmap) \
+ $(use_enable scripting) \
+ --disable-flite \
+ --with-wx-config=${WX_CONFIG}
+}
+
+src_install() {
+ default
+
+ # generic or empty
+ for f in NEWS COPYING INSTALL; do
+ rm -f "${D}"/usr/share/doc/${PN}/${f}
+ done
+
+ # --docdir is broken and hardcoded to ${PN}
+ mv "${D}"/usr/share/doc/${PN} "${D}"/usr/share/doc/${P}
+
+ domenu "${S}"/roadnav.desktop
+}
+
+pkg_postinst() {
+ echo
+ elog "After upgrading to ${P} you will need to recompile your maps."
+ echo
+}
diff --git a/app-misc/rox-filer/Manifest b/app-misc/rox-filer/Manifest
new file mode 100644
index 000000000000..5b8031bec96e
--- /dev/null
+++ b/app-misc/rox-filer/Manifest
@@ -0,0 +1 @@
+DIST rox-filer-2.11.tar.bz2 1907026 SHA256 a929bd32ee18ef7a2ed48b971574574592c42e34ae09f36604bf663d7c101ba8 SHA512 2ef5e7a5d6f4bbb825d6f01725ad4149b9cabfb6fe82c33631bb145f5a3c84e345c372b7698170c1ef78b30ffbc4665495cc266da4828cc8b4b256b592b2c50b WHIRLPOOL 4efac80bbaa83bc053393d34bfb015ae6a50064651e351c6a889abd604a42f0346a4011d0f4dfd6bf8a29c8e0e077d5bbc34367f795e97f77225c27de66900ef
diff --git a/app-misc/rox-filer/files/rox-filer-2.11-in-source-build.patch b/app-misc/rox-filer/files/rox-filer-2.11-in-source-build.patch
new file mode 100644
index 000000000000..d5400ec5f63f
--- /dev/null
+++ b/app-misc/rox-filer/files/rox-filer-2.11-in-source-build.patch
@@ -0,0 +1,15 @@
+--- /root/configure 2015-03-09 16:39:03.921516152 +0800
++++ src/configure 2015-03-09 16:39:08.455516081 +0800
+@@ -2133,12 +2133,6 @@
+
+ ac_config_headers="$ac_config_headers config.h"
+
+-
+- if [ -f configure ]; then
+- as_fn_error $? "Please run configure from the build directory (try ../AppRun --compile)" "$LINENO" 5
+- exit 1
+-fi
+-
+ ac_ext=c
+ ac_cpp='$CPP $CPPFLAGS'
+ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
diff --git a/app-misc/rox-filer/files/rox.desktop b/app-misc/rox-filer/files/rox.desktop
new file mode 100644
index 000000000000..e0b83df58bc2
--- /dev/null
+++ b/app-misc/rox-filer/files/rox.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Type=Application
+Name=Rox-Filer
+Comment=The Rox File Manager
+Icon=rox
+Exec=rox
+Categories=GTK;System;Core;
+StartupNotify=true
+Terminal=false
diff --git a/app-misc/rox-filer/metadata.xml b/app-misc/rox-filer/metadata.xml
new file mode 100644
index 000000000000..386e0d25ea97
--- /dev/null
+++ b/app-misc/rox-filer/metadata.xml
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>proxy-maintainers</herd>
+<maintainer>
+ <email>ppurka@gmail.com</email>
+ <name>Punarbasu 'ppurka' Purkayastha</name>
+ <description>Primary Maintainer, Assign bugs</description>
+</maintainer>
+<maintainer>
+ <email>forestmoonsilence@gmail.com</email>
+ <name>sitquietly</name>
+ <description>Co Maintainer, CC bugs</description>
+</maintainer>
+<upstream>
+ <maintainer status="active">
+ <email>talex5@gmail.com</email>
+ <name>Thomas Leonard</name>
+ <description>Primary Author</description>
+ </maintainer>
+ <bugs-to>http://rox.sourceforge.net/desktop/lists</bugs-to>
+ <remote-id type="sourceforge">rox</remote-id>
+</upstream>
+<longdescription lang="en">
+ ROX-Filer is a fast and powerful graphical file manager for the
+ X Window System. You can use it as a small and fast filer within your
+ current desktop, or get it to manage your pinboard, panels and
+ applications. It is also the core component of the ROX Desktop.
+ Many of the filer's features were inspired by RISC OS. `ROX'
+ stands for `RISC OS–On–X'. The latest development for ROX-Filer can be
+ found in GitHub: https://github.com/rox-desktop/rox-filer
+</longdescription>
+</pkgmetadata>
diff --git a/app-misc/rox-filer/rox-filer-2.11.ebuild b/app-misc/rox-filer/rox-filer-2.11.ebuild
new file mode 100644
index 000000000000..ff80e29383f7
--- /dev/null
+++ b/app-misc/rox-filer/rox-filer-2.11.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils virtualx
+
+DESCRIPTION="ROX-Filer a drag and drop spatial file manager"
+HOMEPAGE="http://rox.sourceforge.net/desktop"
+SRC_URI="mirror://sourceforge/rox/${P}.tar.bz2"
+
+LICENSE="GPL-2 LGPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE=""
+
+COMMON_DEPEND="dev-lang/perl
+ dev-libs/libxml2:2
+ gnome-base/libglade:2.0
+ x11-libs/gtk+:2"
+RDEPEND="${COMMON_DEPEND}
+ x11-misc/shared-mime-info"
+DEPEND="${COMMON_DEPEND}
+ dev-util/intltool
+ sys-devel/gettext
+ virtual/pkgconfig"
+
+S="${WORKDIR}/${P}"/ROX-Filer/src
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-in-source-build.patch"
+
+ sed -i -e 's:g_strdup(getenv("APP_DIR")):"/usr/share/rox":' \
+ main.c || die "sed failed"
+}
+
+src_configure() {
+ econf LIBS="-lm -ldl"
+}
+
+src_install() {
+ cd "${WORKDIR}/${P}"/ROX-Filer || die
+ dodir /usr/share/applications /usr/share/pixmaps /usr/share/rox/Help
+ insinto /usr/share/rox
+ doins -r Messages Options.xml ROX images style.css .DirIcon Templates.ui
+ insinto /usr/share/rox/Help
+ doins Help/*.html Help/README*
+
+ doman ../rox.1
+
+ newbin ROX-Filer rox
+
+ dosym /usr/share/rox/ROX/MIME/text-x-{diff,patch}.png
+ dosym /usr/share/rox/ROX/MIME/application-x-font-{afm,type1}.png
+ dosym /usr/share/rox/ROX/MIME/application-xml{,-dtd}.png
+ dosym /usr/share/rox/ROX/MIME/application-xml{,-external-parsed-entity}.png
+ dosym /usr/share/rox/ROX/MIME/application-{,rdf+}xml.png
+ dosym /usr/share/rox/ROX/MIME/application-x{ml,-xbel}.png
+ dosym /usr/share/rox/ROX/MIME/application-{x-shell,java}script.png
+ dosym /usr/share/rox/ROX/MIME/application-x-{bzip,xz}-compressed-tar.png
+ dosym /usr/share/rox/ROX/MIME/application-x-{bzip,lzma}-compressed-tar.png
+ dosym /usr/share/rox/ROX/MIME/application-x-{bzip-compressed-tar,lzo}.png
+ dosym /usr/share/rox/ROX/MIME/application-x-{bzip,xz}.png
+ dosym /usr/share/rox/ROX/MIME/application-x-{gzip,lzma}.png
+ dosym /usr/share/rox/ROX/MIME/application-{msword,rtf}.png
+
+ dosym /usr/share/rox/.DirIcon /usr/share/pixmaps/rox.png
+
+ insinto /usr/share/applications
+ doins "${FILESDIR}"/rox.desktop
+}
diff --git a/app-misc/run-mailcap/Manifest b/app-misc/run-mailcap/Manifest
new file mode 100644
index 000000000000..209f3a6aaf94
--- /dev/null
+++ b/app-misc/run-mailcap/Manifest
@@ -0,0 +1,2 @@
+DIST mime-support_3.39-1.tar.gz 28441 SHA256 2fe267478fdf9edbef427967a8141ed8ceb5ccd15ca9eaaa336a44a7982220ea SHA512 20603262ceb0592a4d2d3519af7498eb790c2b57887ba7c59cddb48e497b3d3ba567cd7882bc35d7dd0b07bbbf0f2a750ae92f3a540c3d5b124baf1d8211eff1 WHIRLPOOL 0ffb41799983ca6eaf11cc08927b5ea7e95cc56625e25b6d9cb61fb6ef652d40bde210bc4b32ea6aebcd03feda1ae74e0ef796b2aff3f65e38d26e15d401ba2b
+DIST mime-support_3.52-1.tar.gz 31107 SHA256 78ebee71b8de0fbf606f58255b43bfda1dbc94d0e8c416e8b7f233548cf47ea4 SHA512 445d96a95c56564c56babb5883319d57535c372ebd96c95c0fafc4264be7a7b5075145afa5ec27a16668800b78c092fb5014a710cdf451c521ae25c35640e66a WHIRLPOOL a2c6d8709b4e5abc1cfa4ef8602d5654c31278c06fbf739d9b383f28d2390adca6d184dc8943b576fb82d65f4afcbb1cf9d92882a4d13da538968023979aba23
diff --git a/app-misc/run-mailcap/files/run-mailcap-breakrecursion.patch b/app-misc/run-mailcap/files/run-mailcap-breakrecursion.patch
new file mode 100644
index 000000000000..326abd263ce1
--- /dev/null
+++ b/app-misc/run-mailcap/files/run-mailcap-breakrecursion.patch
@@ -0,0 +1,11 @@
+--- mime-support/run-mailcap.old 2005-08-03 15:36:00.000000000 -0400
++++ mime-support/run-mailcap 2005-08-03 15:37:41.000000000 -0400
+@@ -440,7 +440,7 @@
+ $fail++;
+ next;
+ }
+- } elsif ($action eq 'view' && $match =~ m/;\s*copiousoutput\s*($|;)/) {
++ } elsif ($action eq 'view' && $match =~ m/;\s*copiousoutput\s*($|;)/ && $type ne 'text/plain') {
+ $comm .= " | $0 --action=$action text/plain:-";
+ }
+
diff --git a/app-misc/run-mailcap/metadata.xml b/app-misc/run-mailcap/metadata.xml
new file mode 100644
index 000000000000..91f4e72fb544
--- /dev/null
+++ b/app-misc/run-mailcap/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>
+ <email>maintainer-needed@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-misc/run-mailcap/run-mailcap-3.39_p1.ebuild b/app-misc/run-mailcap/run-mailcap-3.39_p1.ebuild
new file mode 100644
index 000000000000..0f34cf482cc5
--- /dev/null
+++ b/app-misc/run-mailcap/run-mailcap-3.39_p1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit eutils
+
+MY_PV="${PV/_p/-}"
+DESCRIPTION="Execute programs via entries in the mailcap file"
+HOMEPAGE="http://packages.debian.org/unstable/net/mime-support"
+SRC_URI="mirror://debian/pool/main/m/mime-support/mime-support_${MY_PV}.tar.gz"
+LICENSE="freedist"
+SLOT="0"
+KEYWORDS="alpha amd64 hppa ia64 ~mips ppc ppc64 sparc x86"
+IUSE=""
+DEPEND=""
+RDEPEND=">=dev-lang/perl-5.6
+ app-misc/mime-types"
+
+S=${WORKDIR}/mime-support
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/run-mailcap-breakrecursion.patch
+ sed -i run-mailcap -e 's:^\(\$xtermprgrm=\)"/usr/bin/x-terminal-emulator":\1$ENV{XTERMCMD} || "xterm":'
+}
+
+src_install() {
+ dobin run-mailcap
+ newman run-mailcap.man run-mailcap.1
+ newman mailcap.man mailcap.4
+ for i in compose edit see print; do
+ dosym run-mailcap /usr/bin/$i
+ dosym run-mailcap.1 /usr/share/man/man1/$i.1
+ done
+}
diff --git a/app-misc/run-mailcap/run-mailcap-3.52_p1.ebuild b/app-misc/run-mailcap/run-mailcap-3.52_p1.ebuild
new file mode 100644
index 000000000000..5ceec80b7a1b
--- /dev/null
+++ b/app-misc/run-mailcap/run-mailcap-3.52_p1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+MY_PV="${PV/_p/-}"
+DESCRIPTION="Execute programs via entries in the mailcap file"
+HOMEPAGE="http://packages.debian.org/unstable/net/mime-support"
+SRC_URI="mirror://debian/pool/main/m/mime-support/mime-support_${MY_PV}.tar.gz"
+LICENSE="freedist"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
+IUSE=""
+DEPEND=""
+RDEPEND=">=dev-lang/perl-5.6
+ app-misc/mime-types"
+
+S=${WORKDIR}/mime-support
+
+src_prepare() {
+ sed -i run-mailcap -e 's:^\(\$xtermprgrm=\)"/usr/bin/x-terminal-emulator":\1$ENV{XTERMCMD} || "xterm":'
+}
+
+src_install() {
+ dobin run-mailcap
+ newman run-mailcap.man run-mailcap.1
+ newman mailcap.man mailcap.4
+ for i in compose edit see print; do
+ dosym run-mailcap /usr/bin/$i
+ dosym run-mailcap.1 /usr/share/man/man1/$i.1
+ done
+}
diff --git a/app-misc/scope/Manifest b/app-misc/scope/Manifest
new file mode 100644
index 000000000000..e065685b9387
--- /dev/null
+++ b/app-misc/scope/Manifest
@@ -0,0 +1 @@
+DIST scope-0.04.tar.gz 69250 SHA256 cee7db04fef99e50255d6dc4e6cb3d6c87843c51868017c3a69879ce01dd7101 SHA512 9067b7a870d6d409c2ee0406a7ba33e5a2bfb395de4ccf9b39b39f0ed49b9b4f7290844be7d375c7638e65715b4e1f4d80bfc6f333b9bbe1de5fe695eb164a03 WHIRLPOOL b2453768484349702aff73de768210cce480cde591273b8062faeebfe9493a76e32cad1b7ceb1b07ed62aae52e12bd3ccd640992584589292ecf41f5846345d3
diff --git a/app-misc/scope/metadata.xml b/app-misc/scope/metadata.xml
new file mode 100644
index 000000000000..348a7a1a755a
--- /dev/null
+++ b/app-misc/scope/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>
+ <email>zlogene@gentoo.org</email>
+ <name>Mikle Kolyada</name>
+ </maintainer>
+ <maintainer>
+ <email>pinkbyte@gentoo.org</email>
+ <name>Sergey Popov</name>
+ </maintainer>
+ <longdescription lang="en">Serial Line Analyser</longdescription>
+</pkgmetadata>
diff --git a/app-misc/scope/scope-0.04-r1.ebuild b/app-misc/scope/scope-0.04-r1.ebuild
new file mode 100644
index 000000000000..3525bbe34317
--- /dev/null
+++ b/app-misc/scope/scope-0.04-r1.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit toolchain-funcs
+
+DESCRIPTION="Serial Line Analyser"
+HOMEPAGE="http://www.gumbley.me.uk/scope.html"
+SRC_URI="http://www.gumbley.me.uk/${P}.tar.gz"
+LICENSE="GPL-2"
+
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DOCS=( README )
+
+src_prepare() {
+ # bug 459848
+ tc-export CC
+}
diff --git a/app-misc/screen/Manifest b/app-misc/screen/Manifest
new file mode 100644
index 000000000000..fa65084d3b8a
--- /dev/null
+++ b/app-misc/screen/Manifest
@@ -0,0 +1,3 @@
+DIST screen-4.0.3.tar.gz 840602 SHA256 78f0d5b1496084a5902586304d4a73954b2bfe33ea13edceecf21615c39e6c77 SHA512 24c1f598972f3dc9ed49cd2c05852190a0190d22fa01401eee8484627c8dd2815f0a422d9b2697faa8aaa0b3efc6730a94e2d5aa787dbe5e9ec719143176c338 WHIRLPOOL 6774786126eb05749d432593bc2c1febdc57896959220a609feb138bdc16b8da278aea63af1ccfd5c7d38ccaa9e7d28980e9e14d0009d36a54cdbd9e4cb0fca7
+DIST screen-4.2.1.tar.gz 1062485 SHA256 5468545047e301d2b3579f9d9ce00466d14a7eec95ce806e3834a3d6b0b9b080 SHA512 30826b2a2fc436483276b90cc4c6679470f7ccb7098c9bb8457d0e534998cd12da02882cf80678465f6540cade170c3fdc6bdfa31b07359ff0d3ffe2d6063710 WHIRLPOOL 7d4209651a016a9ab91aec385532c6ebd7a6d96a60342721f3a53752924c3fb72aa3d648ad665b67fab0a78d6019396abe13e04f556c7e5e9f71bf3238e64cc5
+DIST screen-4.3.1.tar.gz 845958 SHA256 fa4049f8aee283de62e283d427f2cfd35d6c369b40f7f45f947dbfd915699d63 SHA512 8e8a25b23330a7d8e00fc9e6cc430f0eb3937ccf4183efbd6fd24e4dc04cc09b3acae45bfc24892faee433b18fa79b1cfe0211fd75c0d74ecf908f916bf774aa WHIRLPOOL b47f7538351028cc3a2ec7f69a9373e152fa7655c6ae9feb75ba46db3cdc9b7d58ce78043993b7f134da3a04754c5e52d1a77da4c30a8decda21c79cf5c50f51
diff --git a/app-misc/screen/files/4.0.2-64bit-time.patch b/app-misc/screen/files/4.0.2-64bit-time.patch
new file mode 100644
index 000000000000..645b37f9b098
--- /dev/null
+++ b/app-misc/screen/files/4.0.2-64bit-time.patch
@@ -0,0 +1,11 @@
+--- utmp.c.orig 2004-11-14 23:15:28.000000000 +0100
++++ utmp.c 2004-11-14 23:15:39.000000000 +0100
+@@ -618,7 +618,7 @@
+ #endif /* sgi */
+ strncpy(u->ut_line, line, sizeof(u->ut_line));
+ u->ut_pid = pid;
+- (void)time((time_t *)&u->ut_time);
++ u->ut_time = time(NULL);
+ }
+
+ static slot_t
diff --git a/app-misc/screen/files/4.0.2-no-libelf.patch b/app-misc/screen/files/4.0.2-no-libelf.patch
new file mode 100644
index 000000000000..df06383c9d86
--- /dev/null
+++ b/app-misc/screen/files/4.0.2-no-libelf.patch
@@ -0,0 +1,18 @@
+--- screen-4.0.2/configure.in 2005-05-22 19:55:06.559874997 +0000
++++ screen-4.0.2-no-libelf/configure.in 2005-05-22 19:56:05.895801017 +0000
+@@ -195,15 +195,6 @@
+ #endif
+ ], LIBS="$LIBS -lsocket -linet";seqptx=1)
+
+-oldlibs="$LIBS"
+-LIBS="$LIBS -lelf"
+-AC_CHECKING(SVR4)
+-AC_TRY_LINK([#include <utmpx.h>
+-],,
+-[AC_CHECK_HEADER(dwarf.h, AC_DEFINE(SVR4) AC_DEFINE(BUGGYGETLOGIN),
+-[AC_CHECK_HEADER(elf.h, AC_DEFINE(SVR4) AC_DEFINE(BUGGYGETLOGIN))])]
+-,LIBS="$oldlibs")
+-
+ AC_CHECKING(for Solaris 2.x)
+ AC_EGREP_CPP(yes,
+ [#if defined(SVR4) && defined(sun)
diff --git a/app-misc/screen/files/4.0.2-no-pty.patch b/app-misc/screen/files/4.0.2-no-pty.patch
new file mode 100644
index 000000000000..7b7b7984fff9
--- /dev/null
+++ b/app-misc/screen/files/4.0.2-no-pty.patch
@@ -0,0 +1,14 @@
+--- screen-4.0.2/pty.c.orig 2004-07-29 23:53:45.313533536 -0400
++++ screen-4.0.2/pty.c 2004-07-29 23:53:59.011451136 -0400
+@@ -33,11 +33,6 @@
+ # include <sys/ioctl.h>
+ #endif
+
+-/* for solaris 2.1, Unixware (SVR4.2) and possibly others */
+-#ifdef HAVE_SVR4_PTYS
+-# include <sys/stropts.h>
+-#endif
+-
+ #if defined(sun) && defined(LOCKPTY) && !defined(TIOCEXCL)
+ # include <sys/ttold.h>
+ #endif
diff --git a/app-misc/screen/files/4.0.2-no-utempter.patch b/app-misc/screen/files/4.0.2-no-utempter.patch
new file mode 100644
index 000000000000..2a06119bf4b5
--- /dev/null
+++ b/app-misc/screen/files/4.0.2-no-utempter.patch
@@ -0,0 +1,14 @@
+--- screen-4.0.2/configure.in.orig 2004-12-17 19:55:45.314670411 +0100
++++ screen-4.0.2/configure.in 2004-12-17 19:55:50.575941541 +0100
+@@ -855,11 +855,6 @@
+ #include <utmp.h>
+ #endif
+ ],[struct utmp u; u.ut_host[0] = 0;], AC_DEFINE(UTHOST))
+-AC_CHECK_HEADER(utempter.h, have_utempter=yes, have_utempter=no)
+-if test "$have_utempter" = yes; then
+- AC_DEFINE(HAVE_UTEMPTER)
+- LIBS="$LIBS -lutempter"
+-fi
+
+ dnl
+ dnl **** loadav ****
diff --git a/app-misc/screen/files/4.0.2-nonblock.patch b/app-misc/screen/files/4.0.2-nonblock.patch
new file mode 100644
index 000000000000..f27c903a8dd9
--- /dev/null
+++ b/app-misc/screen/files/4.0.2-nonblock.patch
@@ -0,0 +1,11 @@
+--- screen.c.orig 2006-04-02 17:05:28.000000000 +0200
++++ screen.c 2006-04-02 17:05:39.000000000 +0200
+@@ -1197,7 +1197,7 @@ char **av;
+ if (!detached)
+ {
+ /* reopen tty. must do this, because fd 0 may be RDONLY */
+- if ((n = secopen(attach_tty, O_RDWR, 0)) < 0)
++ if ((n = secopen(attach_tty, O_RDWR | O_NONBLOCK, 0)) < 0)
+ Panic(0, "Cannot reopen '%s' - please check.", attach_tty);
+ }
+ else
diff --git a/app-misc/screen/files/4.0.2-windowlist-multiuser-fix.patch b/app-misc/screen/files/4.0.2-windowlist-multiuser-fix.patch
new file mode 100644
index 000000000000..09848e93ef2e
--- /dev/null
+++ b/app-misc/screen/files/4.0.2-windowlist-multiuser-fix.patch
@@ -0,0 +1,12 @@
+diff -Nur screen-4.0.2.orig/process.c screen-4.0.2/process.c
+--- screen-4.0.2.orig/process.c 2003-09-18 14:53:54.000000000 +0200
++++ screen-4.0.2/process.c 2005-07-06 19:55:08.370772955 +0200
+@@ -4841,7 +4841,7 @@
+ s = buf;
+ for (display = displays; display; display = display->d_next)
+ {
+- if (D_user == olddisplay->d_user)
++ if (olddisplay && D_user == olddisplay->d_user)
+ continue;
+ for (cv = D_cvlist; cv; cv = cv->c_next)
+ if (Layer2Window(cv->c_layer) == p)
diff --git a/app-misc/screen/files/4.0.3-extend-d_termname-ng2.patch b/app-misc/screen/files/4.0.3-extend-d_termname-ng2.patch
new file mode 100644
index 000000000000..21b11080dfa0
--- /dev/null
+++ b/app-misc/screen/files/4.0.3-extend-d_termname-ng2.patch
@@ -0,0 +1,203 @@
+diff --git a/acls.c b/acls.c
+index 0f98df2..5f26d70 100644
+--- a/acls.c
++++ b/acls.c
+@@ -178,7 +178,7 @@ struct acluser **up;
+ #endif
+ (*up)->u_Esc = DefaultEsc;
+ (*up)->u_MetaEsc = DefaultMetaEsc;
+- strncpy((*up)->u_name, name, 20);
++ strncpy((*up)->u_name, name, MAXSTR);
+ (*up)->u_password = NULL;
+ if (pass)
+ (*up)->u_password = SaveStr(pass);
+@@ -314,8 +314,8 @@ struct acluser **up;
+ return UserAdd(name, pass, up);
+ if (!strcmp(name, "nobody")) /* he remains without password */
+ return -1;
+- strncpy((*up)->u_password, pass ? pass : "", 20);
+- (*up)->u_password[20] = '\0';
++ strncpy((*up)->u_password, pass ? pass : "", MAXSTR);
++ (*up)->u_password[MAXSTR] = '\0';
+ return 0;
+ }
+ #endif
+diff --git a/acls.h b/acls.h
+index c41b714..7f20f55 100644
+--- a/acls.h
++++ b/acls.h
+@@ -36,6 +36,16 @@
+ #define ACLBYTE(data, w) ((data)[(w) >> 3])
+ #define ACLBIT(w) (0x80 >> ((w) & 7))
+
++#include <limits.h>
++
++#ifndef NAME_MAX
++# ifndef MAXNAMELEN
++# define NAME_MAX 255
++# else
++# define NAME_MAX MAXNAMELEN
++# endif
++#endif
++
+ typedef unsigned char * AclBits;
+
+ /*
+@@ -73,7 +83,7 @@ struct plop
+ typedef struct acluser
+ {
+ struct acluser *u_next; /* continue the main user list */
+- char u_name[20+1]; /* login name how he showed up */
++ char u_name[NAME_MAX+1]; /* login name how he showed up */
+ char *u_password; /* his password (may be NullStr). */
+ int u_checkpassword; /* nonzero if this u_password is valid */
+ int u_detachwin; /* the window where he last detached */
+diff --git a/display.h b/display.h
+index ef99954..563fcd0 100644
+--- a/display.h
++++ b/display.h
+@@ -22,6 +22,16 @@
+ * $Id: display.h,v 1.9 1994/05/31 12:31:54 mlschroe Exp $ FAU
+ */
+
++#include <limits.h>
++
++#ifndef NAME_MAX
++# ifndef MAXNAMELEN
++# define NAME_MAX 255
++# else
++# define NAME_MAX MAXNAMELEN
++# endif
++#endif
++
+ #ifdef MAPKEYS
+
+ #define KMAP_KEYS (T_OCAPS-T_CAPS)
+@@ -85,7 +95,7 @@ struct display
+ struct win *d_other; /* pointer to other window */
+ int d_nonblock; /* -1 don't block if obufmax reached */
+ /* >0: block after nonblock secs */
+- char d_termname[20 + 1]; /* $TERM */
++ char d_termname[NAME_MAX + 1]; /* $TERM */
+ char *d_tentry; /* buffer for tgetstr */
+ char d_tcinited; /* termcap inited flag */
+ int d_width, d_height; /* width/height of the screen */
+diff --git a/screen.c b/screen.c
+index 70741df..6f45b60 100644
+--- a/screen.c
++++ b/screen.c
+@@ -106,6 +106,16 @@ FILE *dfp;
+ #endif
+
+
++#include <limits.h>
++
++#ifndef NAME_MAX
++# ifndef MAXNAMELEN
++# define NAME_MAX 255
++# else
++# define NAME_MAX MAXNAMELEN
++# endif
++#endif
++
+ extern char Term[], screenterm[], **environ, Termcap[];
+ int force_vt = 1;
+ int VBellWait, MsgWait, MsgMinWait, SilenceWait;
+@@ -877,13 +887,13 @@ char **av;
+
+ if (home == 0 || *home == '\0')
+ home = ppp->pw_dir;
+- if (strlen(LoginName) > 20)
++ if (strlen(LoginName) > NAME_MAX)
+ Panic(0, "LoginName too long - sorry.");
+ #ifdef MULTIUSER
+- if (multi && strlen(multi) > 20)
++ if (multi && strlen(multi) > NAME_MAX)
+ Panic(0, "Screen owner name too long - sorry.");
+ #endif
+- if (strlen(home) > MAXPATHLEN - 25)
++ if (strlen(home) > MAXPATHLEN - NAME_MAX)
+ Panic(0, "$HOME too long - sorry.");
+
+ attach_tty = "";
+diff --git a/screen.h b/screen.h
+index 4f9f354..bcaaaf6 100644
+--- a/screen.h
++++ b/screen.h
+@@ -43,6 +43,15 @@
+ #include "comm.h"
+ #include "layer.h"
+ #include "term.h"
++#include <limits.h>
++
++#ifndef NAME_MAX
++# ifndef MAXNAMELEN
++# define NAME_MAX 255
++# else
++# define NAME_MAX MAXNAMELEN
++# endif
++#endif
+
+
+ #ifdef DEBUG
+@@ -195,26 +204,26 @@ struct msg
+ create;
+ struct
+ {
+- char auser[20 + 1]; /* username */
++ char auser[NAME_MAX + 1]; /* username */
+ int apid; /* pid of frontend */
+ int adaptflag; /* adapt window size? */
+ int lines, columns; /* display size */
+ char preselect[20];
+ int esc; /* his new escape character unless -1 */
+ int meta_esc; /* his new meta esc character unless -1 */
+- char envterm[20 + 1]; /* terminal type */
++ char envterm[NAME_MAX + 1]; /* terminal type */
+ int encoding; /* encoding of display */
+ }
+ attach;
+ struct
+ {
+- char duser[20 + 1]; /* username */
++ char duser[NAME_MAX + 1]; /* username */
+ int dpid; /* pid of frontend */
+ }
+ detach;
+ struct
+ {
+- char auser[20 + 1]; /* username */
++ char auser[NAME_MAX + 1]; /* username */
+ int nargs;
+ char cmd[MAXPATHLEN]; /* command */
+ int apid; /* pid of frontend */
+diff --git a/socket.c b/socket.c
+index 62a73af..1cc9c27 100644
+--- a/socket.c
++++ b/socket.c
+@@ -45,6 +45,16 @@
+
+ #include "extern.h"
+
++#include <limits.h>
++
++#ifndef NAME_MAX
++# ifndef MAXNAMELEN
++# define NAME_MAX 255
++# else
++# define NAME_MAX MAXNAMELEN
++# endif
++#endif
++
+ static int CheckPid __P((int));
+ static void ExecCreate __P((struct msg *));
+ static void DoCommandMsg __P((struct msg *));
+@@ -1248,7 +1258,7 @@ static void PasswordProcessInput __P((char *, int));
+
+ struct pwdata {
+ int l;
+- char buf[20 + 1];
++ char buf[NAME_MAX + 1];
+ struct msg m;
+ };
+
diff --git a/app-misc/screen/files/screen-4.0.1-int-overflow-fix.patch b/app-misc/screen/files/screen-4.0.1-int-overflow-fix.patch
new file mode 100644
index 000000000000..4a40c8dd2c7c
--- /dev/null
+++ b/app-misc/screen/files/screen-4.0.1-int-overflow-fix.patch
@@ -0,0 +1,31 @@
+--- ansi.c.orig 2003-09-08 10:24:44.000000000 -0400
++++ ansi.c 2003-11-29 10:41:15.000000000 -0500
+@@ -559,7 +559,7 @@
+ {
+ case '0': case '1': case '2': case '3': case '4':
+ case '5': case '6': case '7': case '8': case '9':
+- if (curr->w_NumArgs < MAXARGS)
++ if (curr->w_NumArgs >= 0 && curr->w_NumArgs < MAXARGS)
+ {
+ if (curr->w_args[curr->w_NumArgs] < 100000000)
+ curr->w_args[curr->w_NumArgs] =
+--- resize.c.orig 2003-09-08 10:26:31.000000000 -0400
++++ resize.c 2003-11-29 10:41:50.000000000 -0500
+@@ -682,6 +682,17 @@
+ if (wi == 0)
+ he = hi = 0;
+
++ if (wi > 1000)
++ {
++ Msg(0, "Window width too large, truncated");
++ wi = 1000;
++ }
++ if (he > 1000)
++ {
++ Msg(0, "Window height too large, truncated");
++ he = 1000;
++ }
++
+ if (p->w_width == wi && p->w_height == he && p->w_histheight == hi)
+ {
+ debug("ChangeWindowSize: No change.\n");
diff --git a/app-misc/screen/files/screen-4.0.1-vsprintf.patch b/app-misc/screen/files/screen-4.0.1-vsprintf.patch
new file mode 100644
index 000000000000..b2f7a20f9e92
--- /dev/null
+++ b/app-misc/screen/files/screen-4.0.1-vsprintf.patch
@@ -0,0 +1,13 @@
+--- screen-4.0.1/configure.in 2003-06-03 07:58:24.000000000 -0400
++++ screen-4.0.1/configure.in.agriffis 2004-01-13 12:07:37.000000000 -0500
+@@ -1206,7 +1206,9 @@
+ rm -f /tmp/conftest*
+
+ AC_MSG_CHECKING(for vsprintf)
+-AC_TRY_LINK(,[vsprintf(0,0,0);], AC_MSG_RESULT(yes);AC_DEFINE(USEVARARGS), AC_MSG_RESULT(no))
++AC_TRY_LINK([#include <stdarg.h>],[va_list valist; vsprintf(0,0,valist);],
++ [AC_MSG_RESULT(yes);AC_DEFINE(USEVARARGS)],
++ [AC_MSG_RESULT(no)])
+
+ AC_HEADER_DIRENT
+
diff --git a/app-misc/screen/files/screen-4.0.3-config.h-autoconf-2.62.patch b/app-misc/screen/files/screen-4.0.3-config.h-autoconf-2.62.patch
new file mode 100644
index 000000000000..5605fdac7414
--- /dev/null
+++ b/app-misc/screen/files/screen-4.0.3-config.h-autoconf-2.62.patch
@@ -0,0 +1,14 @@
+compability for sys-devel/autoconf-2.62
+
+https://bugs.gentoo.org/show_bug.cgi?id=217311
+
+--- screen/config.h.in
++++ screen/config.h.in
+@@ -563,7 +563,6 @@
+ * If you are on a SYS V machine that restricts filename length to 14
+ * characters, you may need to enforce that by setting NAME_MAX to 14
+ */
+-#undef NAME_MAX /* KEEP_UNDEF_HERE override system value */
+ #undef NAME_MAX
+
+ /*
diff --git a/app-misc/screen/files/screen-4.0.3-cppflags.patch b/app-misc/screen/files/screen-4.0.3-cppflags.patch
new file mode 100644
index 000000000000..ee3455ff92f6
--- /dev/null
+++ b/app-misc/screen/files/screen-4.0.3-cppflags.patch
@@ -0,0 +1,20 @@
+--- screen-4.0.3/Makefile.in
++++ screen-4.0.3/Makefile.in
+@@ -68,7 +68,7 @@
+ $(CC) $(LDFLAGS) -o $@ $(OFILES) $(LIBS)
+
+ .c.o:
+- $(CC) -c -I. -I$(srcdir) $(M_CFLAGS) $(DEFS) $(OPTIONS) $(CFLAGS) $<
++ $(CC) -c -I. -I$(srcdir) $(M_CFLAGS) $(DEFS) $(OPTIONS) $(CPPFLAGS) $(CFLAGS) $<
+
+ install_bin: .version screen
+ -if [ -f $(DESTDIR)$(bindir)/$(SCREEN) ] && [ ! -f $(DESTDIR)$(bindir)/$(SCREEN).old ]; \
+@@ -122,7 +122,7 @@
+ sh $(srcdir)/tty.sh tty.c
+
+ comm.h: comm.c comm.sh config.h
+- AWK=$(AWK) CC="$(CC) $(CFLAGS)" srcdir=${srcdir} sh $(srcdir)/comm.sh
++ AWK=$(AWK) CC="$(CC) $(CFLAGS) $(CPPFLAGS)" srcdir=${srcdir} sh $(srcdir)/comm.sh
+
+ osdef.h: osdef.sh config.h osdef.h.in
+ CPP="$(CPP) $(CPPFLAGS)" srcdir=${srcdir} sh $(srcdir)/osdef.sh
diff --git a/app-misc/screen/files/screen-4.0.3-crosscompile.patch b/app-misc/screen/files/screen-4.0.3-crosscompile.patch
new file mode 100644
index 000000000000..6e6bb948b919
--- /dev/null
+++ b/app-misc/screen/files/screen-4.0.3-crosscompile.patch
@@ -0,0 +1,598 @@
+--- configure.in~ 2008-11-23 17:43:48.000000000 +0000
++++ configure.in 2008-11-23 17:43:48.000000000 +0000
+@@ -46,6 +46,7 @@
+ AC_PROG_GCC_TRADITIONAL
+ AC_ISC_POSIX
+
++AC_MSG_CHECKING([for compiler sanity])
+ AC_TRY_RUN(main(){exit(0);},,[
+ if test $CC != cc ; then
+ AC_NOTE(Your $CC failed - restarting with CC=cc)
+@@ -54,22 +55,17 @@
+ export CC
+ exec $0 $configure_args
+ fi
+-])
+-
+-AC_TRY_RUN(main(){exit(0);},,
+-exec 5>&2
+-eval $ac_link
+-AC_NOTE(CC=$CC; CFLAGS=$CFLAGS; LIBS=$LIBS;)
+-AC_NOTE($ac_compile)
+-AC_MSG_ERROR(Can't run the compiler - sorry))
++],AC_MSG_WARN([skipping test due to crosscompilation]))
+
++AC_MSG_CHECKING([if compiler sets exit status])
+ AC_TRY_RUN([
+ main()
+ {
+ int __something_strange_();
+ __something_strange_(0);
+ }
+-],AC_MSG_ERROR(Your compiler does not set the exit status - sorry))
++],AC_MSG_ERROR(Your compiler does not set the exit status - sorry),,
++AC_MSG_WARN(skipping test due to crosscompilation))
+
+ AC_PROG_AWK
+
+@@ -103,6 +99,7 @@
+ dnl
+ dnl **** special unix variants ****
+ dnl
++AH_TEMPLATE(ISC,[])
+ if test -n "$ISC"; then
+ AC_DEFINE(ISC) LIBS="$LIBS -linet"
+ fi
+@@ -114,11 +111,13 @@
+ dnl fi
+ dnl fi
+
++AH_TEMPLATE([sysV68],[])
+ if test -f /sysV68 ; then
+ AC_DEFINE(sysV68)
+ fi
+
+ AC_CHECKING(for MIPS)
++AH_TEMPLATE([MIPS],[])
+ if test -f /lib/libmld.a || test -f /usr/lib/libmld.a || test -f /usr/lib/cmplrs/cc/libmld.a; then
+ oldlibs="$LIBS"
+ test -f /bin/mx || LIBS="$LIBS -lmld" # for nlist. But not on alpha.
+@@ -132,6 +131,8 @@
+ AC_CHECKING(wait3)
+ AC_TRY_LINK(,[wait3();], ,
+ AC_CHECKING(wait2)
++AH_TEMPLATE([USE_WAIT2],[On RISCOS we prefer wait2() over wait3(). rouilj@sni-usa.com])
++dnl TODO(Hannes) shipped config.h.in wraps the define in #ifdef BSDWAIT
+ AC_TRY_LINK(,[wait2();],
+ dnl John Rouillard (rouilj@sni-usa.com):
+ dnl need -I/usr/include/bsd in RISCOS otherwise sockets are broken, no
+@@ -154,9 +155,11 @@
+ oldlibs="$LIBS"
+ LIBS="$LIBS -lpyr"
+ AC_CHECKING(Pyramid OSX)
++AH_TEMPLATE([OSX], [Pyramid OSX])
+ AC_TRY_LINK(,[open_controlling_pty("")], AC_DEFINE(OSX), LIBS="$oldlibs")
+ fi
+
++AH_TEMPLATE([POSIX],[Define POSIX if your system supports IEEE Std 1003.1-1988 (POSIX).])
+ dnl ghazi@caip.rutgers.edu (Kaveh R. Ghazi):
+ dnl BBN butterfly is not POSIX, but a MACH BSD system.
+ dnl Do not define POSIX and TERMIO.
+@@ -183,6 +186,7 @@
+ fi
+
+ AC_CHECKING(for System V)
++AH_TEMPLATE([SYSV], [Define SYSV if your machine is SYSV complient (Sys V, HPUX, A/UX)])
+ AC_TRY_COMPILE(
+ [#include <sys/types.h>
+ #include <signal.h>
+@@ -226,6 +230,9 @@
+ dnl
+
+ AC_CHECKING(BSD job jontrol)
++AH_TEMPLATE([BSDJOBS],
++[Define BSDJOBS if you have BSD-style job control (both process
++ groups and a tty that deals correctly with them)])
+ AC_TRY_LINK(
+ [#include <sys/types.h>
+ #include <sys/ioctl.h>
+@@ -246,6 +253,10 @@
+ dnl **** setreuid(), seteuid() ****
+ dnl
+ AC_CHECKING(setreuid)
++AH_TEMPLATE([HAVE_SETREUID],
++[If your system has the calls setreuid() and setregid(),
++ define HAVE_SETREUID. Otherwise screen will use a forked process to
++ safely create output files without retaining any special privileges.])
+ AC_TRY_LINK(,[
+ #ifdef __hpux
+ setresuid(0, 0, 0);
+@@ -260,6 +271,9 @@
+ dnl Solaris seteuid doesn't change the saved uid, bad for
+ dnl multiuser screen sessions
+ AC_CHECKING(seteuid)
++AH_TEMPLATE([HAVE_SETEUID],
++[If your system supports BSD4.4's seteuid() and setegid(), define
++ HAVE_SETEUID.])
+ AC_TRY_LINK(,[
+ #if defined(linux) || defined(NeXT) || defined(_AUX_SOURCE) || defined(AUX) || defined(ultrix) || (defined(sun) && defined(SVR4)) || defined(ISC) || defined(sony_news)
+ seteuid_is_broken(0);
+@@ -284,6 +298,8 @@
+ dnl
+
+ AC_CHECKING(fifos)
++AC_CACHE_CHECK([usable fifos],
++ [screen_cv_sys_fifo_usable],
+ AC_TRY_RUN([
+ #include <sys/types.h>
+ #include <sys/stat.h>
+@@ -348,12 +364,15 @@
+ exit(1);
+ exit(0);
+ }
+-], AC_NOTE(- your fifos are usable) fifo=1,
+-AC_NOTE(- your fifos are not usable))
++], screen_cv_sys_fifo_usable=yes, screen_cv_sys_fifo_usable=no))
+ rm -f /tmp/conftest*
+
+-if test -n "$fifo"; then
+-AC_CHECKING(for broken fifo implementation)
++if test X"$screen_cv_sys_fifo_usable" = Xyes; then
++AH_TEMPLATE([BROKEN_PIPE],
++[Define this if your system exits select() immediatly if a pipe is
++ opened read-only and no writer has opened it.])
++AC_CACHE_CHECK([broken fifo implementation],
++ [screen_cv_sys_fifo_broken_impl],
+ AC_TRY_RUN([
+ #include <sys/types.h>
+ #include <fcntl.h>
+@@ -398,9 +416,12 @@
+ exit(1);
+ exit(0);
+ }
+-], AC_NOTE(- your implementation is ok),
+-AC_NOTE(- you have a broken implementation) AC_DEFINE(BROKEN_PIPE) fifobr=1)
++], screen_cv_sys_fifo_broken_impl=no,
++screen_cv_sys_fifo_broken_impl=yes))
++if test X"$screen_cv_sys_fifo_broken_impl" = Xyes; then
++ AC_DEFINE(BROKEN_PIPE)
++fi
+ rm -f /tmp/conftest*
+ fi
+
+ dnl
+@@ -410,6 +430,8 @@
+ dnl
+
+ AC_CHECKING(sockets)
++AC_CACHE_CHECK([sockets are usable],
++ [screen_cv_sys_sockets_usable],
+ AC_TRY_RUN([
+ #include <sys/types.h>
+ #include <sys/socket.h>
+@@ -460,12 +482,16 @@
+ exit(1);
+ exit(0);
+ }
+-], AC_NOTE(- your sockets are usable) sock=1,
+-AC_NOTE(- your sockets are not usable))
+-rm -f /tmp/conftest*
++], screen_cv_sys_sockets_usable=yes,
++screen_cv_sys_sockets_usable=no))
+
+-if test -n "$sock"; then
++if test X"$screen_cv_sys_sockets_usable" = Xyes; then
+ AC_CHECKING(socket implementation)
++AH_TEMPLATE([SOCK_NOT_IN_FS],
++[Define this if the unix-domain socket implementation doesn't
++ create a socket in the filesystem.])
++AC_CACHE_CHECK([if sockets are not stored in the filesystem],
++ [screen_cv_sys_sockets_nofs],
+ AC_TRY_RUN([
+ #include <sys/types.h>
+ #include <sys/stat.h>
+@@ -491,22 +517,25 @@
+ close(s);
+ exit(0);
+ }
+-],AC_NOTE(- you are normal),
+-AC_NOTE(- unix domain sockets are not kept in the filesystem)
+-AC_DEFINE(SOCK_NOT_IN_FS) socknofs=1)
+-rm -f /tmp/conftest*
++], screen_cv_sys_sockets_nofs=no,
++screen_cv_sys_sockets_nofs=yes))
++
++if test X"$screen_cv_sys_sockets_nofs" = Xyes; then
++ AC_DEFINE(SOCK_NOT_IN_FS)
++fi
+ fi
+
+
+ dnl
+ dnl **** choose sockets or fifos ****
+ dnl
+-if test -n "$fifo"; then
+- if test -n "$sock"; then
+- if test -n "$nore"; then
++AH_TEMPLATE([NAMEDPIPE], [Define this if your system supports named pipes.])
++if test X"$screen_cv_sys_fifo_usable" = Xyes; then
++ if test X"$screen_cv_sys_sockets_usable" = Xyes; then
++ if test X"$screen_cv_sys_sockets_nofs" = Xyes; then
+ AC_NOTE(- hmmm... better take the fifos)
+ AC_DEFINE(NAMEDPIPE)
+- elif test -n "$fifobr"; then
++ elif test X"$screen_cv_sys_fifo_broken_impl" = Xyes; then
+ AC_NOTE(- as your fifos are broken lets use the sockets.)
+ else
+ AC_NOTE(- both sockets and fifos usable. let's take fifos.)
+@@ -516,7 +545,7 @@
+ AC_NOTE(- using named pipes, of course)
+ AC_DEFINE(NAMEDPIPE)
+ fi
+-elif test -n "$sock"; then
++elif test X"$screen_cv_sys_sockets_usable" = Xyes; then
+ AC_NOTE(- using unix-domain sockets, of course)
+ else
+ AC_MSG_ERROR(you have neither usable sockets nor usable pipes -> no screen)
+@@ -526,7 +555,11 @@
+ dnl **** check the select implementation ****
+ dnl
+
+-AC_CHECKING(select return value)
++AH_TEMPLATE([SELECT_BROKEN],
++[If the select return value doesn't treat a descriptor that is
++ usable for reading and writing as two hits, define SELECT_BROKEN.])
++AC_CACHE_CHECK([for broken select return value],
++ [screen_cv_sys_select_broken_retval],
+ AC_TRY_RUN([
+ #include <sys/types.h>
+ #include <sys/stat.h>
+@@ -625,17 +658,26 @@
+ exit(1);
+ exit(0);
+ }
+-],AC_NOTE(- select is ok),
+-AC_NOTE(- select can't count) AC_DEFINE(SELECT_BROKEN))
++], screen_cv_sys_select_broken_retval=no,
++screen_cv_sys_select_broken_retval=yes))
++if test X"$screen_cv_sys_select_broken_retval" = Xyes; then
++ AC_DEFINE(SELECT_BROKEN)
++fi
+
+ dnl
+ dnl **** termcap or terminfo ****
+ dnl
++AH_TEMPLATE([TERMINFO],
++[Define TERMINFO if your machine emulates the termcap routines
++ with the terminfo database.
++ Thus the .screenrc file is parsed for
++ the command 'terminfo' and not 'termcap'])
++
+ AC_CHECKING(for tgetent)
+ AC_TRY_LINK(,tgetent((char *)0, (char *)0);,,
+ olibs="$LIBS"
+-LIBS="-lcurses $olibs"
+ AC_CHECKING(libcurses)
++AC_CHECK_LIB(ncursesw,tgetent)
+ AC_TRY_LINK(,[
+ #ifdef __hpux
+ __sorry_hpux_libcurses_is_totally_broken_in_10_10();
+@@ -654,24 +696,39 @@
+ AC_TRY_LINK(,tgetent((char *)0, (char *)0);,,
+ AC_MSG_ERROR(!!! no tgetent - no screen))))))
+
+-AC_TRY_RUN([
++AC_CACHE_CHECK([using terminfo database],[screen_cv_sys_terminfo_used],
++ AC_TRY_RUN([
+ main()
+ {
+ exit(strcmp(tgoto("%p1%d", 0, 1), "1") ? 0 : 1);
+-}], AC_NOTE(- you use the termcap database),
+-AC_NOTE(- you use the terminfo database) AC_DEFINE(TERMINFO))
++}
++ ], screen_cv_sys_terminfo_used=no,
++ screen_cv_sys_terminfo_used=yes)
++)
++
++if test X"$screen_cv_sys_terminfo_used" = Xyes; then
++ AC_DEFINE(TERMINFO)
++fi
++
+ AC_CHECKING(ospeed)
++AH_TEMPLATE([NEED_OSPEED],[If your library does not define ospeed, define this.])
+ AC_TRY_LINK(extern short ospeed;,ospeed=5;,,AC_DEFINE(NEED_OSPEED))
+
+ dnl
+ dnl **** PTY specific things ****
+ dnl
++AH_TEMPLATE([HAVE_DEV_PTC],
++[define HAVE_DEV_PTC if you have a /dev/ptc character special
++ device.])
+ AC_CHECKING(for /dev/ptc)
+ if test -r /dev/ptc; then
+ AC_DEFINE(HAVE_DEV_PTC)
+ fi
+
+ AC_CHECKING(for SVR4 ptys)
++AH_TEMPLATE([HAVE_SVR4_PTYS],
++[define HAVE_SVR4_PTYS if you have a /dev/ptmx character special
++ device and support the ptsname(), grantpt(), unlockpt() functions.])
+ sysvr4ptys=
+ if test -c /dev/ptmx ; then
+ AC_TRY_LINK([],[ptsname(0);grantpt(0);unlockpt(0);],[AC_DEFINE(HAVE_SVR4_PTYS)
+@@ -687,6 +744,13 @@
+ fi
+
+ AC_CHECKING(for ptyranges)
++AH_TEMPLATE([PTYRANGE0],
++[define PTYRANGE0 and or PTYRANGE1 if you want to adapt screen
++ to unusual environments. E.g. For SunOs the defaults are "qpr" and
++ "0123456789abcdef". For SunOs 4.1.2
++ #define PTYRANGE0 "pqrstuvwxyzPQRST"
++ is recommended by Dan Jacobson.])
++AH_TEMPLATE([PTYRANGE1],[])
+ if test -d /dev/ptym ; then
+ pdir='/dev/ptym'
+ else
+@@ -850,20 +914,39 @@
+ dnl
+ dnl **** loadav ****
+ dnl
++
++AH_TEMPLATE([LOADAV],
++[If you want the "time" command to display the current load average
++ define LOADAV. Maybe you must install screen with the needed
++ privileges to read /dev/kmem.
++ Note that NLIST_ stuff is only checked, when getloadavg() is not available.
++])
++AH_TEMPLATE([LOADAV_NUM])
++AH_TEMPLATE([LOADAV_TYPE])
++AH_TEMPLATE([LOADAV_SCALE])
++AH_TEMPLATE([LOADAV_GETLOADAVG])
++AH_TEMPLATE([LOADAV_UNIX])
++AH_TEMPLATE([LOADAV_AVENRUN])
++AH_TEMPLATE([LOADAV_USE_NLIST64])
++
++AH_TEMPLATE([NLIST_DECLARED])
++AH_TEMPLATE([NLIST_STRUCT])
++AH_TEMPLATE([NLIST_NAME_UNION])
++
+ AC_CHECKING(for libutil(s))
+-test -f /usr/lib/libutils.a && LIBS="$LIBS -lutils"
+-test -f /usr/lib/libutil.a && LIBS="$LIBS -lutil"
++dnl I have no idea whether "login" is an appropriate symbol to check for here - Hannes
++AC_CHECK_LIB(utils,login)
++AC_CHECK_LIB(util,login)
+
+ AC_CHECKING(getloadavg)
+ AC_TRY_LINK(,[getloadavg((double *)0, 0);],
+ AC_DEFINE(LOADAV_GETLOADAVG) load=1,
+-if test -f /usr/lib/libkvm.a ; then
+ olibs="$LIBS"
+-LIBS="$LIBS -lkvm"
++AC_CHECK_LIB(kvm,kvm_open,
+ AC_CHECKING(getloadavg with -lkvm)
+ AC_TRY_LINK(,[getloadavg((double *)0, 0);],
+ AC_DEFINE(LOADAV_GETLOADAVG) load=1, LIBS="$olibs")
+-fi
++)
+ )
+
+ if test -z "$load" ; then
+@@ -1005,6 +1088,11 @@
+ dnl
+ dnl **** signal handling ****
+ dnl
++
++AH_TEMPLATE([SIGVOID],
++[Define SIGVOID if your signal handlers return void. On older
++ systems, signal returns int, but on newer ones, it returns void.])
++
+ if test -n "$posix" ; then
+
+ dnl POSIX has reliable signals with void return type.
+@@ -1014,6 +1102,7 @@
+ else
+
+ AC_CHECKING(return type of signal handlers)
++AH_TEMPLATE([USESIGSET], [Define USESIGSET if you have sigset for BSD 4.1 reliable signals.])
+ AC_TRY_COMPILE(
+ [#include <sys/types.h>
+ #include <signal.h>
+@@ -1033,6 +1122,9 @@
+ #endif
+ ], AC_DEFINE(USESIGSET))
+ AC_CHECKING(signal implementation)
++AH_TEMPLATE([SYSVSIGS],
++[Define SYSVSIGS if signal handlers must be reinstalled after
++ they have been called.])
+ AC_TRY_RUN([
+ #include <sys/types.h>
+ #include <signal.h>
+@@ -1075,13 +1167,14 @@
+ dnl
+
+ AC_CHECKING(for crypt and sec libraries)
+-test -f /lib/libcrypt_d.a || test -f /usr/lib/libcrypt_d.a && LIBS="$LIBS -lcrypt_d"
++dnl I have no idea whether "crypt" is an appropriate symbol to check for here - Hannes
++AC_CHECK_LIB(crypt_d,crypt)
+ oldlibs="$LIBS"
+-LIBS="$LIBS -lcrypt"
+ AC_CHECKING(crypt)
+ AC_TRY_LINK(,,,LIBS="$oldlibs")
+-test -f /lib/libsec.a || test -f /usr/lib/libsec.a && LIBS="$LIBS -lsec"
+-test -f /lib/libshadow.a || test -f /usr/lib/libshadow.a && LIBS="$LIBS -lshadow"
++AC_CHECK_LIB(crypt,crypt)
++AC_CHECK_LIB(sec,crypt)
++AC_CHECK_LIB(shadow,getspnam)
+ oldlibs="$LIBS"
+ LIBS="$LIBS -lsun"
+ AC_CHECKING(IRIX sun library)
+@@ -1104,6 +1197,13 @@
+ dnl **** misc things ****
+ dnl
+ AC_CHECKING(wait union)
++AH_TEMPLATE([BSDWAIT],
++[Define BSDWAIT if your system defines a 'union wait' in <sys/wait.h>
++
++ Only allow BSDWAIT i.e. wait3 on nonposix systems, since
++ posix implies wait(3) and waitpid(3). vdlinden@fwi.uva.nl
++ TODO(Hannes) shipped config.h.in does that with a #ifdef
++])
+ AC_TRY_COMPILE([#include <sys/types.h>
+ #include <sys/wait.h>
+ ],[
+@@ -1114,6 +1214,13 @@
+ #endif
+ ],AC_DEFINE(BSDWAIT))
+
++AH_TEMPLATE([TERMIO],
++[Define TERMIO if you have struct termio instead of struct sgttyb.
++ This is usually the case for SVID systems, where BSD uses sgttyb.
++ POSIX systems should define this anyway, even though they use
++ struct termios.])
++
++
+ if test -z "$butterfly"; then
+ AC_CHECKING(for termio or termios)
+ AC_TRY_CPP([#include <termio.h>], AC_DEFINE(TERMIO),
+@@ -1123,17 +1230,35 @@
+ )
+ fi
+
++AH_TEMPLATE([CYTERMIO], [Define CYTERMIO if you have cyrillic termio modes.])
++
+ dnl AC_CHECK_HEADER(shadow.h, AC_DEFINE(SHADOWPW))
+ AC_CHECKING(getspnam)
++AH_TEMPLATE([SHADOWPW],
++[If the passwords are stored in a shadow file and you want the
++ builtin lock to work properly, define SHADOWPW.])
+ AC_TRY_LINK([#include <shadow.h>], [getspnam("x");],AC_DEFINE(SHADOWPW))
+
+ AC_CHECKING(getttyent)
++AH_TEMPLATE([GETTTYENT],
++[If your system has the new format /etc/ttys (like 4.3 BSD) and the
++ getttyent(3) library functions, define GETTTYENT.])
+ AC_TRY_LINK(,[getttyent();], AC_DEFINE(GETTTYENT))
+
+ AC_CHECKING(fdwalk)
++AH_TEMPLATE([HAVE_FDWALK],
++[Newer versions of Solaris include fdwalk, which can greatly improve
++ the startup time of screen; otherwise screen spends a lot of time
++ closing file descriptors.])
+ AC_TRY_LINK([#include <stdlib.h>], [fdwalk(NULL, NULL);],AC_DEFINE(HAVE_FDWALK))
+
+-AC_CHECKING(whether memcpy/memmove/bcopy handles overlapping arguments)
++AH_TEMPLATE([USEBCOPY],
++[Define USEBCOPY if the bcopy/memcpy from your system's C library
++ supports the overlapping of source and destination blocks. When
++ undefined, screen uses its own (probably slower) version of bcopy().])
++
++AC_CACHE_CHECK([if bcopy handles overlap],
++ [screen_cv_sys_bcopy_overlap],
+ AC_TRY_RUN([
+ main() {
+ char buf[10];
+@@ -1146,7 +1271,21 @@
+ if (strncmp(buf, "cdedef", 6))
+ exit(1);
+ exit(0); /* libc version works properly. */
+-}], AC_DEFINE(USEBCOPY))
++}], screen_cv_sys_bcopy_overlap=yes,
++screen_cv_sys_bcopy_overlap=no))
++if test X"$screen_cv_sys_bcopy_overlap" = Xyes; then
++ AC_DEFINE(USEBCOPY)
++fi
++
++AH_TEMPLATE([USEMEMMOVE],
++[SYSV machines may have a working memcpy() -- Oh, this is
++ quite unlikely. Tell me if you see one.
++ "But then, memmove() should work, if at all available" he thought...
++ Boing, never say "works everywhere" unless you checked SCO UNIX.
++ Their memove fails the test in the configure script. Sigh. (Juergen)
++])
++AC_CACHE_CHECK([if memmove handles overlap],
++ [screen_cv_sys_memmove_overlap],
+
+ AC_TRY_RUN([
+ #define bcopy(s,d,l) memmove(d,s,l)
+@@ -1161,9 +1300,15 @@
+ if (strncmp(buf, "cdedef", 6))
+ exit(1);
+ exit(0); /* libc version works properly. */
+-}], AC_DEFINE(USEMEMMOVE))
+-
++}], screen_cv_sys_memmove_overlap=yes,
++screen_cv_sys_memmove_overlap=no))
++if test X"$screen_cv_sys_memmove_overlap" = Xyes; then
++ AC_DEFINE(USEMEMMOVE)
++fi
+
++AH_TEMPLATE([USEMEMCPY],[])
++AC_CACHE_CHECK([if memcpy handles overlap],
++ [screen_cv_sys_memcpy_overlap],
+ AC_TRY_RUN([
+ #define bcopy(s,d,l) memcpy(d,s,l)
+ main() {
+@@ -1177,9 +1322,19 @@
+ if (strncmp(buf, "cdedef", 6))
+ exit(1);
+ exit(0); /* libc version works properly. */
+-}], AC_DEFINE(USEMEMCPY))
++}], screen_cv_sys_memcpy_overlap=yes,
++screen_cv_sys_memcpy_overlap=no))
++if test X"$screen_cv_sys_memcpy_overlap" = Xyes; then
++ AC_DEFINE(USEMEMCPY)
++fi
+
+ AC_MSG_CHECKING(long file names)
++AH_TEMPLATE([NAME_MAX],
++[If you are on a SYS V machine that restricts filename length to 14
++ characters, you may need to enforce that by setting NAME_MAX to 14])
++dnl TODO(Hannes) shipped config.h.in has
++dnl #undef NAME_MAX /* KEEP_UNDEF_HERE override system value */
++dnl ahead of this
+ (echo 1 > /tmp/conftest9012345) 2>/dev/null
+ (echo 2 > /tmp/conftest9012346) 2>/dev/null
+ val=`cat /tmp/conftest9012345 2>/dev/null`
+@@ -1192,6 +1347,10 @@
+ rm -f /tmp/conftest*
+
+ AC_MSG_CHECKING(for vsprintf)
++AH_TEMPLATE([USEVARARGS],
++[If your system has vsprintf() and requires the use of the macros in
++ "varargs.h" to use functions with variable arguments,
++ define USEVARARGS.])
+ AC_TRY_LINK([#include <stdarg.h>],[va_list valist; vsprintf(0,0,valist);],
+ [AC_MSG_RESULT(yes);AC_DEFINE(USEVARARGS)],
+ [AC_MSG_RESULT(no)])
+@@ -1199,12 +1358,19 @@
+ AC_HEADER_DIRENT
+
+ AC_MSG_CHECKING(for setenv)
++AH_TEMPLATE([USESETENV], [If your system has setenv() and unsetenv() define USESETENV])
+ AC_TRY_LINK(,[setenv((char *)0,(char *)0);unsetenv((char *)0);], AC_MSG_RESULT(yes);AC_DEFINE(USESETENV),
+ AC_MSG_RESULT(no)
+ AC_MSG_CHECKING(for putenv)
++AH_TEMPLATE([NEEDPUTENV],
++[If your system does not come with a setenv()/putenv()/getenv()
++ functions, you may bring in our own code by defining NEEDPUTENV.])
+ AC_TRY_LINK(,[putenv((char *)0);unsetenv((char *)0);], AC_MSG_RESULT(yes) , AC_MSG_RESULT(no);AC_DEFINE(NEEDPUTENV)
+ ))
+ AC_MSG_CHECKING([for nl_langinfo(CODESET)])
++AH_TEMPLATE([HAVE_NL_LANGINFO],
++[define HAVE_NL_LANGINFO if your system has the nl_langinfo() call
++ and <langinfo.h> defines CODESET.])
+ AC_TRY_LINK([
+ #include <langinfo.h>
+ ],[nl_langinfo(CODESET);], AC_MSG_RESULT(yes);AC_DEFINE(HAVE_NL_LANGINFO), AC_MSG_RESULT(no))
+@@ -1254,7 +1420,8 @@
+ dnl Ptx bug workaround -- insert -lc after -ltermcap
+ test -n "$seqptx" && LIBS="-ltermcap -lc -lsocket -linet -lnsl -lsec -lseq"
+
+-AC_TRY_RUN(main(){exit(0);},,AC_MSG_ERROR(Can't run the compiler - internal error. Sorry.))
++AC_MSG_CHECKING(compiler sanity)
++AC_TRY_RUN(main(){exit(0);},,AC_MSG_ERROR(Can't run the compiler - internal error. Sorry.), AC_MSG_WARN(Skipping test due to crosscompilation))
+
+ ETCSCREENRC="\"/usr/local/etc/screenrc\""
+ if test -n "$prefix"; then
diff --git a/app-misc/screen/files/screen-4.0.3-setenv_autoconf.patch b/app-misc/screen/files/screen-4.0.3-setenv_autoconf.patch
new file mode 100644
index 000000000000..e47a15d66c23
--- /dev/null
+++ b/app-misc/screen/files/screen-4.0.3-setenv_autoconf.patch
@@ -0,0 +1,79 @@
+--- configure.in.DIST 2006-10-31 21:39:07.010473000 -0800
++++ configure.in 2006-10-31 21:43:05.630162000 -0800
+@@ -1211,15 +1211,32 @@
+ AC_HEADER_DIRENT
+
+ AC_MSG_CHECKING(for setenv)
+-AH_TEMPLATE([USESETENV], [If your system has setenv() and unsetenv() define USESETENV])
+-AC_TRY_LINK(,[setenv((char *)0,(char *)0);unsetenv((char *)0);], AC_MSG_RESULT(yes);AC_DEFINE(USESETENV),
+-AC_MSG_RESULT(no)
+-AC_MSG_CHECKING(for putenv)
+-AH_TEMPLATE([NEEDPUTENV],
+-[If your system does not come with a setenv()/putenv()/getenv()
+- functions, you may bring in our own code by defining NEEDPUTENV.])
+-AC_TRY_LINK(,[putenv((char *)0);unsetenv((char *)0);], AC_MSG_RESULT(yes) , AC_MSG_RESULT(no);AC_DEFINE(NEEDPUTENV)
+-))
++if test -z "$ac_setenv_args"; then
++ AC_TRY_LINK(
++ [#include <stdlib.h>],
++ [
++ setenv((char *) 0, (char *) 0, 0);
++ ], ac_setenv_args=3)
++fi
++if test -z "$ac_setenv_args"; then
++ AC_TRY_LINK(
++ [#include <stdlib.h>],
++ [
++ setenv((char *) 0, (char *) 0);
++ ], ac_setenv_args=2)
++fi
++if test -n "$ac_setenv_args"; then
++ AC_DEFINE(USESETENV)
++ if test "$ac_setenv_args" = 3; then
++ AC_DEFINE(HAVE_SETENV_3)
++ elif test "$ac_setenv_args" = 2; then
++ AC_DEFINE(HAVE_SETENV_2)
++ fi
++else
++ AC_MSG_RESULT(no)
++ AC_MSG_CHECKING(for putenv)
++ AC_TRY_LINK(,[putenv((char *)0);unsetenv((char *)0);], AC_MSG_RESULT(yes) , AC_MSG_RESULT(no);AC_DEFINE(NEEDPUTENV))
++fi
+ AC_MSG_CHECKING([for nl_langinfo(CODESET)])
+ AH_TEMPLATE([HAVE_NL_LANGINFO],
+ [define HAVE_NL_LANGINFO if your system has the nl_langinfo() call
+--- config.h.in.DIST 2006-10-31 21:43:23.233714000 -0800
++++ config.h.in 2006-10-31 21:44:27.346275000 -0800
+@@ -548,6 +548,16 @@
+ #undef USESETENV
+
+ /*
++ * If setenv() takes 3 arguments define HAVE_SETENV_3
++ */
++#undef HAVE_SETENV_3
++
++/*
++ * If setenv() takes 2 arguments define HAVE_SETENV_2
++ */
++#undef HAVE_SETENV_2
++
++/*
+ * If your system does not come with a setenv()/putenv()/getenv()
+ * functions, you may bring in our own code by defining NEEDPUTENV.
+ */
+--- misc.c.DIST 2006-10-31 20:55:42.481760000 -0800
++++ misc.c 2006-10-31 21:53:24.143551000 -0800
+@@ -613,11 +613,11 @@
+ */
+ # endif /* NEEDSETENV */
+ #else /* USESETENV */
+-# if defined(linux) || defined(__convex__) || (BSD >= 199103)
++# if HAVE_SETENV_3
+ setenv(var, value, 1);
+ # else
+ setenv(var, value);
+-# endif /* linux || convex || BSD >= 199103 */
++# endif /* HAVE_SETENV_3 */
+ #endif /* USESETENV */
+ }
+
diff --git a/app-misc/screen/files/screen-4.3.0-no-utempter.patch b/app-misc/screen/files/screen-4.3.0-no-utempter.patch
new file mode 100644
index 000000000000..9a830a252b41
--- /dev/null
+++ b/app-misc/screen/files/screen-4.3.0-no-utempter.patch
@@ -0,0 +1,14 @@
+--- screen-4.3.0/configure.ac
++++ screen-4.3.0/configure.ac
+@@ -878,11 +878,6 @@
+ #include <utmp.h>
+ #endif
+ ],[struct utmp u; u.ut_host[0] = 0;], AC_DEFINE(UTHOST))
+-AC_CHECK_HEADER(utempter.h, have_utempter=yes, have_utempter=no)
+-if test "$have_utempter" = yes; then
+- AC_DEFINE(HAVE_UTEMPTER)
+- LIBS="$LIBS -lutempter"
+-fi
+
+ dnl
+ dnl **** loadav ****
diff --git a/app-misc/screen/files/screenrc b/app-misc/screen/files/screenrc
new file mode 100644
index 000000000000..11f2f551b0bc
--- /dev/null
+++ b/app-misc/screen/files/screenrc
@@ -0,0 +1,356 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+#
+# /etc/screenrc
+#
+# This is the system wide screenrc.
+#
+# You can use this file to change the default behavior of screen system wide
+# or copy it to ~/.screenrc and use it as a starting point for your own
+# settings.
+#
+# Commands in this file are used to set options, bind screen functions to
+# keys, redefine terminal capabilities, and to automatically establish one or
+# more windows at the beginning of your screen session.
+#
+# This is not a comprehensive list of options, look at the screen manual for
+# details on everything that you can put in this file.
+#
+#
+
+# ==============================================================================
+# SCREEN SETTINGS
+# ==============================================================================
+
+# ESCAPE - the COMMAND CHARACTER
+# ===============================================================
+# escape ^aa # default
+# escape ^^^^ # suggested binding (Control-^) for Emacs users
+
+
+# PASSWORD
+# ===============================================================
+# This commands sets the *internal* password for the screen session.
+# WARNING!! If this is set then a "lock" command will only let you in to the
+# session after you enter the user's account password and then *also*
+# the internal password for that session. This gives additional safety but,
+# if you forget the internal password then you cannot resume your session.
+# Use :password to generate a password
+# password ODSJQf.4IJN7E # "1234"
+
+
+# VARIABLES
+# ===============================================================
+# No annoying audible bell, using "visual bell"
+# vbell on # default: off
+# vbell_msg " -- Bell,Bell!! -- " # default: "Wuff,Wuff!!"
+
+# Automatically detach on hangup.
+ autodetach on # default: on
+
+# Don't display the copyright page
+ startup_message off # default: on
+
+# Uses nethack-style messages
+# nethack on # default: off
+
+# Affects the copying of text regions
+ crlf off # default: off
+
+# Enable/disable multiuser mode. Standard screen operation is singleuser.
+# In multiuser mode the commands acladd, aclchg, aclgrp and acldel can be used
+# to enable (and disable) other user accessing this screen session.
+# Requires suid-root.
+ multiuser off
+
+# Change default scrollback value for new windows
+ defscrollback 1000 # default: 100
+
+# Define the time that all windows monitored for silence should
+# wait before displaying a message. Default 30 seconds.
+ silencewait 15 # default: 30
+
+# bufferfile: The file to use for commands
+# "readbuf" ('<') and "writebuf" ('>'):
+ bufferfile $HOME/.screen_exchange
+#
+# hardcopydir: The directory which contains all hardcopies.
+# hardcopydir ~/.hardcopy
+# hardcopydir ~/.screen
+#
+# shell: Default process started in screen's windows.
+# Makes it possible to use a different shell inside screen
+# than is set as the default login shell.
+# If begins with a '-' character, the shell will be started as a login shell.
+# shell zsh
+# shell bash
+# shell ksh
+ shell -$SHELL
+
+# shellaka '> |tcsh'
+# shelltitle '$ |bash'
+
+# emulate .logout message
+ pow_detach_msg "Screen session of \$LOGNAME \$:cr:\$:nl:ended."
+
+# caption always " %w --- %c:%s"
+# caption always "%3n %t%? @%u%?%? [%h]%?%=%c"
+
+# advertise hardstatus support to $TERMCAP
+# termcapinfo * '' 'hs:ts=\E_:fs=\E\\:ds=\E_\E\\'
+
+# set every new windows hardstatus line to somenthing descriptive
+# defhstatus "screen: ^En (^Et)"
+
+# don't kill window after the process died
+# zombie "^["
+
+# ignore displays that block on output
+defnonblock on
+
+# XTERM TWEAKS
+# ===============================================================
+
+# xterm understands both im/ic and doesn't have a status line.
+# Note: Do not specify im and ic in the real termcap/info file as
+# some programs (e.g. vi) will not work anymore.
+ termcap xterm* hs@:cs=\E[%i%d;%dr:im=\E[4h:ei=\E[4l
+ terminfo xterm* hs@:cs=\E[%i%p1%d;%p2%dr:im=\E[4h:ei=\E[4l
+
+# 80/132 column switching must be enabled for ^AW to work
+# change init sequence to not switch width
+ termcapinfo xterm* Z0=\E[?3h:Z1=\E[?3l:is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l
+
+# Make the output buffer large for (fast) xterms.
+# termcapinfo xterm* OL=10000
+ termcapinfo xterm* OL=100
+
+# tell screen that xterm can switch to dark background and has function
+# keys.
+ termcapinfo xterm* 'VR=\E[?5h:VN=\E[?5l'
+ termcapinfo xterm* 'k1=\E[11~:k2=\E[12~:k3=\E[13~:k4=\E[14~'
+ termcapinfo xterm* 'kh=\EOH:kI=\E[2~:kD=\E[3~:kH=\EOF:kP=\E[5~:kN=\E[6~'
+
+# special xterm hardstatus: use the window title.
+ termcapinfo xterm* 'hs:ts=\E]2;:fs=\007:ds=\E]2;screen\007'
+
+#terminfo xterm 'vb=\E[?5h$<200/>\E[?5l'
+ termcapinfo xterm* 'vi=\E[?25l:ve=\E[34h\E[?25h:vs=\E[34l'
+
+# emulate part of the 'K' charset
+ termcapinfo xterm* 'XC=K%,%\E(B,[\304,\\\\\326,]\334,{\344,|\366,}\374,~\337'
+
+# xterm-52 tweaks:
+# - uses background color for delete operations
+ termcapinfo xterm* be
+
+# Do not use xterm's alternative window buffer, it breaks scrollback (see bug #61195)
+ termcapinfo xterm*|xs ti@:te=\E[2J
+
+# WYSE TERMINALS
+# ===============================================================
+
+#wyse-75-42 must have flow control (xo = "terminal uses xon/xoff")
+#essential to have it here, as this is a slow terminal.
+ termcapinfo wy75-42 xo:hs@
+
+# New termcap sequences for cursor application mode.
+ termcapinfo wy* CS=\E[?1h:CE=\E[?1l:vi=\E[?25l:ve=\E[?25h:VR=\E[?5h:VN=\E[?5l:cb=\E[1K:CD=\E[1J
+
+
+# OTHER TERMINALS
+# ===============================================================
+
+# make hp700 termcap/info better
+ termcapinfo hp700 'Z0=\E[?3h:Z1=\E[?3l:hs:ts=\E[62"p\E[0$~\E[2$~\E[1$}:fs=\E[0}\E[61"p:ds=\E[62"p\E[1$~\E[61"p:ic@'
+
+# Extend the vt100 desciption by some sequences.
+ termcap vt100* ms:AL=\E[%dL:DL=\E[%dM:UP=\E[%dA:DO=\E[%dB:LE=\E[%dD:RI=\E[%dC
+ terminfo vt100* ms:AL=\E[%p1%dL:DL=\E[%p1%dM:UP=\E[%p1%dA:DO=\E[%p1%dB:LE=\E[%p1%dD:RI=\E[%p1%dC
+ termcapinfo linux C8
+# old rxvt versions also need this
+# termcapinfo rxvt C8
+
+
+# KEYBINDINGS
+# ==============================================================
+# The "bind" command assign keys to (internal) commands
+# SCREEN checks all the keys you type; you type the key
+# which is known as the "command character" then SCREEN
+# eats this key, too, and checks whether this key is
+# "bound" to a command. If so then SCREEN will execute it.
+#
+# The command "bind" allows you to chose which keys
+# will be assigned to the commands.
+#
+# Some commands are bound to several keys -
+# usually to both some letter and its corresponding
+# control key combination, eg the command
+# "(create) screen" is bound to both 'c' and '^C'.
+#
+# The following list shows the default bindings:
+#
+# break ^B b
+# clear C
+# colon :
+# copy ^[ [
+# detach ^D d
+# digraph ^V
+# displays *
+# dumptermcap .
+# fit F
+# flow ^F f
+# focus ^I
+# hardcopy h
+# help ?
+# history { }
+# info i
+# kill K k
+# lastmsg ^M m
+# license ,
+# log H
+# login L
+# meta x
+# monitor M
+# next ^@ ^N sp n
+# number N
+# only Q
+# other ^X
+# pow_break B
+# pow_detach D
+# prev ^H ^P p ^?
+# quit \
+# readbuf <
+# redisplay ^L l
+# remove X
+# removebuf =
+# reset Z
+# screen ^C c
+# select " '
+# silence _
+# split S
+# suspend ^Z z
+# time ^T t
+# title A
+# vbell ^G
+# version v
+# width W
+# windows ^W w
+# wrap ^R r
+# writebuf >
+# xoff ^S s
+# xon ^Q q
+# ^] paste .
+# - select -
+# 0 select 0
+# 1 select 1
+# 2 select 2
+# 3 select 3
+# 4 select 4
+# 5 select 5
+# 6 select 6
+# 7 select 7
+# 8 select 8
+# 9 select 9
+# I login on
+# O login off
+# ] paste .
+#
+
+# And here are the default bind commands if you need them:
+#
+# bind A title
+# bind C clear
+# bind D pow_detach
+# bind F fit
+# bind H log
+# bind I login on
+# bind K kill
+# bind L login
+# bind M monitor
+# bind N number
+# bind O login off
+# bind Q only
+# bind S split
+# bind W width
+# bind X remove
+# bind Z reset
+
+# Let's remove some dangerous key bindings ...
+ bind k
+ bind ^k
+# bind . dumptermcap # default
+ bind .
+# bind ^\ quit # default
+ bind ^\
+# bind \\ quit # default
+ bind \\
+# bind ^h ??? # default
+ bind ^h
+# bind h hardcopy # default
+ bind h
+
+# ... and make them better.
+ bind 'K' kill
+ bind 'I' login on
+ bind 'O' login off
+ bind '}' history
+
+# Yet another hack:
+# Prepend/append register [/] to the paste if ^a^] is pressed.
+# This lets me have autoindent mode in vi.
+ register [ "\033:se noai\015a"
+ register ] "\033:se ai\015a"
+ bind ^] paste [.]
+
+
+# hardstatus alwaysignore
+# hardstatus alwayslastline "%Lw"
+
+# Resize the current region. The space will be removed from or added to
+# the region below or if there's not enough space from the region above.
+ bind = resize =
+ bind + resize +3
+ bind - resize -3
+# bind _ resize max
+#
+# attrcolor u "-u b"
+# attrcolor b "R"
+
+# STARTUP SCREENS
+# ===============================================================
+# Defines the time screen delays a new message when one message
+# is currently displayed. The default is 1 second.
+# msgminwait 2
+
+# Time a message is displayed if screen is not disturbed by
+# other activity. The dafault is 5 seconds:
+# msgwait 2
+
+# Briefly show the version number of this starting
+# screen session - but only for *one* second:
+# msgwait 1
+# version
+
+# Welcome the user:
+# echo "welcome :-)"
+# echo "I love you today."
+
+# Uncomment one/some following lines to automatically let
+# SCREEN start some programs in the given window numbers:
+# screen -t MAIL 0 mutt
+# screen -t EDIT 1 vim
+# screen -t GOOGLE 2 links http://www.google.com
+# screen -t NEWS 3 slrn
+# screen -t WWW 4 links http://www.math.fu-berlin.de/~guckes/
+# screen 5
+# screen 6
+
+# Set the environment variable var to value string. If only var is specified,
+# you'll be prompted to enter a value. If no parameters are specified,
+# you'll be prompted for both variable and value. The environment is
+# inherited by all subsequently forked shells.
+# setenv PROMPT_COMMAND 'echo -n -e "\033k\033\134"'
+
+# Don't you want to start programs which need a DISPLAY ?
+# setenv DISPLAY ''
diff --git a/app-misc/screen/metadata.xml b/app-misc/screen/metadata.xml
new file mode 100644
index 000000000000..87bfb0b9eb6b
--- /dev/null
+++ b/app-misc/screen/metadata.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>shell-tools</herd>
+ <maintainer>
+ <email>swegener@gentoo.org</email>
+ <description>Primary Maintainer</description>
+ </maintainer>
+ <longdescription>
+Screen is a full-screen window manager that multiplexes a physical terminal
+between several processes, typically interactive shells. Each virtual terminal
+provides the functions of the DEC VT100 terminal and, in addition, several
+control functions from the ANSI X3.64 (ISO 6429) and ISO 2022 standards (e.g.,
+insert/delete line and support for multiple character sets). There is a
+scrollback history buffer for each virtual terminal and a copy-and-paste
+mechanism that allows the user to move text regions between windows. When screen
+is called, it creates a single window with a shell in it (or the specified
+command) and then gets out of your way so that you can use the program as you
+normally would. Then, at any time, you can create new (full-screen) windows with
+other programs in them (including more shells), kill the current window, view a
+list of the active windows, turn output logging on and off, copy text between
+windows, view the scrollback history, switch between windows, etc. All windows
+run their programs completely independent of each other. Programs continue to
+run when their window is currently not visible and even when the whole screen
+session is detached from the users terminal.
+</longdescription>
+ <use>
+ <flag name="multiuser">Enable multiuser support (by setting correct
+ permissions)</flag>
+ <flag name="nethack">Express error messages in nethack style</flag>
+ </use>
+</pkgmetadata>
diff --git a/app-misc/screen/screen-4.0.3-r6.ebuild b/app-misc/screen/screen-4.0.3-r6.ebuild
new file mode 100644
index 000000000000..a3fde6f6968b
--- /dev/null
+++ b/app-misc/screen/screen-4.0.3-r6.ebuild
@@ -0,0 +1,163 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+WANT_AUTOCONF="2.5"
+
+inherit eutils flag-o-matic toolchain-funcs pam autotools user
+
+DESCRIPTION="Full-screen window manager that multiplexes physical terminals between several processes"
+HOMEPAGE="http://www.gnu.org/software/screen/"
+SRC_URI="ftp://ftp.uni-erlangen.de/pub/utilities/${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 ~hppa-hpux ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE="debug nethack pam selinux multiuser"
+
+DEPEND=">=sys-libs/ncurses-5.2
+ pam? ( virtual/pam )"
+RDEPEND="${DEPEND}
+ selinux? ( sec-policy/selinux-screen )"
+
+pkg_setup() {
+ # Make sure utmp group exists, as it's used later on.
+ enewgroup utmp 406
+}
+
+src_prepare() {
+ # Bug 34599: integer overflow in 4.0.1
+ # (Nov 29 2003 -solar)
+ epatch "${FILESDIR}"/screen-4.0.1-int-overflow-fix.patch
+
+ # Bug 31070: configure problem which affects alpha
+ # (13 Jan 2004 agriffis)
+ epatch "${FILESDIR}"/screen-4.0.1-vsprintf.patch
+
+ # uclibc doesnt have sys/stropts.h
+ if ! (echo '#include <sys/stropts.h>' | $(tc-getCC) -E - &>/dev/null) ; then
+ epatch "${FILESDIR}"/4.0.2-no-pty.patch
+ fi
+
+ # Don't use utempter even if it is found on the system
+ epatch "${FILESDIR}"/4.0.2-no-utempter.patch
+
+ # Don't link against libelf even if it is found on the system
+ epatch "${FILESDIR}"/4.0.2-no-libelf.patch
+
+ # Patch for time function on 64bit systems
+ epatch "${FILESDIR}"/4.0.2-64bit-time.patch
+
+ # Patch that makes %u work for windowlist -b formats
+ epatch "${FILESDIR}"/4.0.2-windowlist-multiuser-fix.patch
+
+ # Open tty in non-blocking mode
+ epatch "${FILESDIR}"/4.0.2-nonblock.patch
+
+ # compability for sys-devel/autoconf-2.62
+ epatch "${FILESDIR}"/screen-4.0.3-config.h-autoconf-2.62.patch
+
+ # crosscompile patch
+ epatch "${FILESDIR}"/"${P}"-crosscompile.patch
+
+ # sched.h is a system header and causes problems with some C libraries
+ mv sched.h _sched.h || die
+ sed -i '/include/s:sched.h:_sched.h:' screen.h || die
+
+ # Allow for more rendition (color/attribute) changes in status bars
+ sed -i \
+ -e "s:#define MAX_WINMSG_REND 16:#define MAX_WINMSG_REND 64:" \
+ screen.c \
+ || die "sed screen.c failed"
+
+ # Fix manpage.
+ sed -i \
+ -e "s:/usr/local/etc/screenrc:${EPREFIX}/etc/screenrc:g" \
+ -e "s:/usr/local/screens:${EPREFIX}/var/run/screen:g" \
+ -e "s:/local/etc/screenrc:${EPREFIX}/etc/screenrc:g" \
+ -e "s:/etc/utmp:${EPREFIX}/var/run/utmp:g" \
+ -e "s:/local/screens/S-:${EPREFIX}/var/run/screen/S-:g" \
+ doc/screen.1 \
+ || die "sed doc/screen.1 failed"
+
+ # proper setenv detection for Solaris
+ epatch "${FILESDIR}"/${P}-setenv_autoconf.patch
+
+ # Allow TERM string large enough to use with rxvt-unicode-256color
+ # Allow usernames up to 32 chars
+ epatch "${FILESDIR}"/${PV}-extend-d_termname-ng2.patch
+
+ # support CPPFLAGS
+ epatch "${FILESDIR}"/${P}-cppflags.patch
+
+ sed \
+ -e 's:termlib:tinfo:g' \
+ -i configure.in || die
+
+ # reconfigure
+ eautoconf
+}
+
+src_configure() {
+ append-cppflags "-DMAXWIN=${MAX_SCREEN_WINDOWS:-100}"
+
+ [[ ${CHOST} == *-solaris* ]] && append-libs -lsocket -lnsl
+
+ use nethack || append-cppflags "-DNONETHACK"
+ use debug && append-cppflags "-DDEBUG"
+
+ econf \
+ --with-socket-dir="${EPREFIX}/var/run/screen" \
+ --with-sys-screenrc="${EPREFIX}/etc/screenrc" \
+ --with-pty-mode=0620 \
+ --with-pty-group=5 \
+ --enable-rxvt_osc \
+ --enable-telnet \
+ --enable-colors256 \
+ $(use_enable pam) \
+ $(use multiuser || echo --disable-socket-dir)
+
+ # Second try to fix bug 12683, this time without changing term.h
+ # The last try seemed to break screen at run-time.
+ # (16 Jan 2003 agriffis)
+ LC_ALL=POSIX make term.h || die "Failed making term.h"
+}
+
+src_install() {
+ dobin screen
+
+ if use multiuser || use prefix
+ then
+ fperms 4755 /usr/bin/screen
+ else
+ fowners root:utmp /usr/bin/screen
+ fperms 2755 /usr/bin/screen
+ fi
+
+ insinto /usr/share/screen
+ doins terminfo/{screencap,screeninfo.src}
+ insinto /usr/share/screen/utf8encodings
+ doins utf8encodings/??
+ insinto /etc
+ doins "${FILESDIR}"/screenrc
+
+ pamd_mimic_system screen auth
+
+ dodoc \
+ README ChangeLog INSTALL TODO NEWS* patchlevel.h \
+ doc/{FAQ,README.DOTSCREEN,fdpat.ps,window_to_display.ps}
+
+ doman doc/screen.1
+ doinfo doc/screen.info*
+}
+
+pkg_postinst() {
+ if [[ -z ${REPLACING_VERSIONS} ]]
+ then
+ elog "Some dangerous key bindings have been removed or changed to more safe values."
+ elog "We enable some xterm hacks in our default screenrc, which might break some"
+ elog "applications. Please check /etc/screenrc for information on these changes."
+ fi
+}
diff --git a/app-misc/screen/screen-4.0.3-r7.ebuild b/app-misc/screen/screen-4.0.3-r7.ebuild
new file mode 100644
index 000000000000..050e5e3ab9ea
--- /dev/null
+++ b/app-misc/screen/screen-4.0.3-r7.ebuild
@@ -0,0 +1,163 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+WANT_AUTOCONF="2.5"
+
+inherit eutils flag-o-matic toolchain-funcs pam autotools user
+
+DESCRIPTION="Full-screen window manager that multiplexes physical terminals between several processes"
+HOMEPAGE="http://www.gnu.org/software/screen/"
+SRC_URI="ftp://ftp.uni-erlangen.de/pub/utilities/${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 ~hppa-hpux ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE="debug nethack pam selinux multiuser"
+
+DEPEND=">=sys-libs/ncurses-5.2
+ pam? ( virtual/pam )"
+RDEPEND="${DEPEND}
+ selinux? ( sec-policy/selinux-screen )"
+
+pkg_setup() {
+ # Make sure utmp group exists, as it's used later on.
+ enewgroup utmp 406
+}
+
+src_prepare() {
+ # Bug 34599: integer overflow in 4.0.1
+ # (Nov 29 2003 -solar)
+ epatch "${FILESDIR}"/screen-4.0.1-int-overflow-fix.patch
+
+ # Bug 31070: configure problem which affects alpha
+ # (13 Jan 2004 agriffis)
+ epatch "${FILESDIR}"/screen-4.0.1-vsprintf.patch
+
+ # uclibc doesnt have sys/stropts.h
+ if ! (echo '#include <sys/stropts.h>' | $(tc-getCC) -E - &>/dev/null) ; then
+ epatch "${FILESDIR}"/4.0.2-no-pty.patch
+ fi
+
+ # Don't use utempter even if it is found on the system
+ epatch "${FILESDIR}"/4.0.2-no-utempter.patch
+
+ # Don't link against libelf even if it is found on the system
+ epatch "${FILESDIR}"/4.0.2-no-libelf.patch
+
+ # Patch for time function on 64bit systems
+ epatch "${FILESDIR}"/4.0.2-64bit-time.patch
+
+ # Patch that makes %u work for windowlist -b formats
+ epatch "${FILESDIR}"/4.0.2-windowlist-multiuser-fix.patch
+
+ # Open tty in non-blocking mode
+ epatch "${FILESDIR}"/4.0.2-nonblock.patch
+
+ # compability for sys-devel/autoconf-2.62
+ epatch "${FILESDIR}"/screen-4.0.3-config.h-autoconf-2.62.patch
+
+ # crosscompile patch
+ epatch "${FILESDIR}"/"${P}"-crosscompile.patch
+
+ # sched.h is a system header and causes problems with some C libraries
+ mv sched.h _sched.h || die
+ sed -i '/include/s:sched.h:_sched.h:' screen.h || die
+
+ # Allow for more rendition (color/attribute) changes in status bars
+ sed -i \
+ -e "s:#define MAX_WINMSG_REND 16:#define MAX_WINMSG_REND 64:" \
+ screen.c \
+ || die "sed screen.c failed"
+
+ # Fix manpage.
+ sed -i \
+ -e "s:/usr/local/etc/screenrc:${EPREFIX}/etc/screenrc:g" \
+ -e "s:/usr/local/screens:${EPREFIX}/var/run/screen:g" \
+ -e "s:/local/etc/screenrc:${EPREFIX}/etc/screenrc:g" \
+ -e "s:/etc/utmp:${EPREFIX}/var/run/utmp:g" \
+ -e "s:/local/screens/S-:${EPREFIX}/var/run/screen/S-:g" \
+ doc/screen.1 \
+ || die "sed doc/screen.1 failed"
+
+ # proper setenv detection for Solaris
+ epatch "${FILESDIR}"/${P}-setenv_autoconf.patch
+
+ # Allow TERM string large enough to use with rxvt-unicode-256color
+ # Allow usernames up to 32 chars
+ epatch "${FILESDIR}"/${PV}-extend-d_termname-ng2.patch
+
+ # support CPPFLAGS
+ epatch "${FILESDIR}"/${P}-cppflags.patch
+
+ sed \
+ -e 's:termlib:tinfo:g' \
+ -i configure.in || die
+
+ # reconfigure
+ eautoconf
+}
+
+src_configure() {
+ append-cppflags "-DMAXWIN=${MAX_SCREEN_WINDOWS:-100}"
+
+ [[ ${CHOST} == *-solaris* ]] && append-libs -lsocket -lnsl
+
+ use nethack || append-cppflags "-DNONETHACK"
+ use debug && append-cppflags "-DDEBUG"
+
+ econf \
+ --with-socket-dir="${EPREFIX}/var/run/screen" \
+ --with-sys-screenrc="${EPREFIX}/etc/screenrc" \
+ --with-pty-mode=0620 \
+ --with-pty-group=5 \
+ --enable-rxvt_osc \
+ --enable-telnet \
+ --enable-colors256 \
+ $(use_enable pam) \
+ $(use multiuser || echo --disable-socket-dir)
+
+ # Second try to fix bug 12683, this time without changing term.h
+ # The last try seemed to break screen at run-time.
+ # (16 Jan 2003 agriffis)
+ LC_ALL=POSIX make term.h || die "Failed making term.h"
+}
+
+src_install() {
+ dobin screen
+
+ if use multiuser || use prefix
+ then
+ fperms 4755 /usr/bin/screen
+ else
+ fowners root:utmp /usr/bin/screen
+ fperms 2755 /usr/bin/screen
+ fi
+
+ insinto /usr/share/screen
+ doins terminfo/{screencap,screeninfo.src}
+ insinto /usr/share/screen/utf8encodings
+ doins utf8encodings/??
+ insinto /etc
+ doins "${FILESDIR}"/screenrc
+
+ pamd_mimic_system screen auth
+
+ dodoc \
+ README ChangeLog INSTALL TODO NEWS* patchlevel.h \
+ doc/{FAQ,README.DOTSCREEN,fdpat.ps,window_to_display.ps}
+
+ doman doc/screen.1
+ doinfo doc/screen.info*
+}
+
+pkg_postinst() {
+ if [[ -z ${REPLACING_VERSIONS} ]]
+ then
+ elog "Some dangerous key bindings have been removed or changed to more safe values."
+ elog "We enable some xterm hacks in our default screenrc, which might break some"
+ elog "applications. Please check /etc/screenrc for information on these changes."
+ fi
+}
diff --git a/app-misc/screen/screen-4.0.3-r8.ebuild b/app-misc/screen/screen-4.0.3-r8.ebuild
new file mode 100644
index 000000000000..528eb5ac4231
--- /dev/null
+++ b/app-misc/screen/screen-4.0.3-r8.ebuild
@@ -0,0 +1,173 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+WANT_AUTOCONF="2.5"
+
+inherit eutils flag-o-matic toolchain-funcs pam autotools user
+
+DESCRIPTION="Full-screen window manager that multiplexes physical terminals between several processes"
+HOMEPAGE="http://www.gnu.org/software/screen/"
+SRC_URI="ftp://ftp.uni-erlangen.de/pub/utilities/${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 ~hppa-hpux ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE="debug nethack pam selinux multiuser"
+
+DEPEND=">=sys-libs/ncurses-5.2
+ pam? ( virtual/pam )"
+RDEPEND="${DEPEND}
+ selinux? ( sec-policy/selinux-screen )
+ !<sys-apps/openrc-0.11.6"
+
+pkg_setup() {
+ # Make sure utmp group exists, as it's used later on.
+ enewgroup utmp 406
+}
+
+src_prepare() {
+ # Bug 34599: integer overflow in 4.0.1
+ # (Nov 29 2003 -solar)
+ epatch "${FILESDIR}"/screen-4.0.1-int-overflow-fix.patch
+
+ # Bug 31070: configure problem which affects alpha
+ # (13 Jan 2004 agriffis)
+ epatch "${FILESDIR}"/screen-4.0.1-vsprintf.patch
+
+ # uclibc doesnt have sys/stropts.h
+ if ! (echo '#include <sys/stropts.h>' | $(tc-getCC) -E - &>/dev/null) ; then
+ epatch "${FILESDIR}"/4.0.2-no-pty.patch
+ fi
+
+ # Don't use utempter even if it is found on the system
+ epatch "${FILESDIR}"/4.0.2-no-utempter.patch
+
+ # Don't link against libelf even if it is found on the system
+ epatch "${FILESDIR}"/4.0.2-no-libelf.patch
+
+ # Patch for time function on 64bit systems
+ epatch "${FILESDIR}"/4.0.2-64bit-time.patch
+
+ # Patch that makes %u work for windowlist -b formats
+ epatch "${FILESDIR}"/4.0.2-windowlist-multiuser-fix.patch
+
+ # Open tty in non-blocking mode
+ epatch "${FILESDIR}"/4.0.2-nonblock.patch
+
+ # compability for sys-devel/autoconf-2.62
+ epatch "${FILESDIR}"/screen-4.0.3-config.h-autoconf-2.62.patch
+
+ # crosscompile patch
+ epatch "${FILESDIR}"/"${P}"-crosscompile.patch
+
+ # sched.h is a system header and causes problems with some C libraries
+ mv sched.h _sched.h || die
+ sed -i '/include/s:sched.h:_sched.h:' screen.h || die
+
+ # Allow for more rendition (color/attribute) changes in status bars
+ sed -i \
+ -e "s:#define MAX_WINMSG_REND 16:#define MAX_WINMSG_REND 64:" \
+ screen.c \
+ || die "sed screen.c failed"
+
+ # Fix manpage.
+ sed -i \
+ -e "s:/usr/local/etc/screenrc:${EPREFIX}/etc/screenrc:g" \
+ -e "s:/usr/local/screens:${EPREFIX}/run/screen:g" \
+ -e "s:/local/etc/screenrc:${EPREFIX}/etc/screenrc:g" \
+ -e "s:/etc/utmp:${EPREFIX}/var/run/utmp:g" \
+ -e "s:/local/screens/S-:${EPREFIX}/run/screen/S-:g" \
+ doc/screen.1 \
+ || die "sed doc/screen.1 failed"
+
+ # proper setenv detection for Solaris
+ epatch "${FILESDIR}"/${P}-setenv_autoconf.patch
+
+ # Allow TERM string large enough to use with rxvt-unicode-256color
+ # Allow usernames up to 32 chars
+ epatch "${FILESDIR}"/${PV}-extend-d_termname-ng2.patch
+
+ # support CPPFLAGS
+ epatch "${FILESDIR}"/${P}-cppflags.patch
+
+ sed \
+ -e 's:termlib:tinfo:g' \
+ -i configure.in || die
+
+ # reconfigure
+ eautoconf
+}
+
+src_configure() {
+ append-cppflags "-DMAXWIN=${MAX_SCREEN_WINDOWS:-100}"
+
+ [[ ${CHOST} == *-solaris* ]] && append-libs -lsocket -lnsl
+
+ use nethack || append-cppflags "-DNONETHACK"
+ use debug && append-cppflags "-DDEBUG"
+
+ econf \
+ --with-socket-dir="${EPREFIX}/run/screen" \
+ --with-sys-screenrc="${EPREFIX}/etc/screenrc" \
+ --with-pty-mode=0620 \
+ --with-pty-group=5 \
+ --enable-rxvt_osc \
+ --enable-telnet \
+ --enable-colors256 \
+ $(use_enable pam)
+
+ # Second try to fix bug 12683, this time without changing term.h
+ # The last try seemed to break screen at run-time.
+ # (16 Jan 2003 agriffis)
+ LC_ALL=POSIX make term.h || die "Failed making term.h"
+}
+
+src_install() {
+ local tmpfiles_perms tmpfiles_group
+
+ dobin screen
+
+ if use multiuser ; then
+ use prefix || fperms 4755 /usr/bin/screen
+ tmpfiles_perms="0755"
+ tmpfiles_group="root"
+ else
+ fowners root:utmp /usr/bin/screen
+ fperms 2755 /usr/bin/screen
+ tmpfiles_perms="0775"
+ tmpfiles_group="utmp"
+ fi
+
+ dodir /etc/tmpfiles.d
+ echo "d /run/screen ${tmpfiles_perms} root ${tmpfiles_group}" >"${ED}"/etc/tmpfiles.d/screen.conf
+
+ insinto /usr/share/screen
+ doins terminfo/{screencap,screeninfo.src}
+ insinto /usr/share/screen/utf8encodings
+ doins utf8encodings/??
+ insinto /etc
+ doins "${FILESDIR}"/screenrc
+
+ pamd_mimic_system screen auth
+
+ dodoc \
+ README ChangeLog INSTALL TODO NEWS* patchlevel.h \
+ doc/{FAQ,README.DOTSCREEN,fdpat.ps,window_to_display.ps}
+
+ doman doc/screen.1
+ doinfo doc/screen.info*
+}
+
+pkg_postinst() {
+ if [[ -z ${REPLACING_VERSIONS} ]]
+ then
+ elog "Some dangerous key bindings have been removed or changed to more safe values."
+ elog "We enable some xterm hacks in our default screenrc, which might break some"
+ elog "applications. Please check /etc/screenrc for information on these changes."
+ fi
+
+ ewarn "This revision changes the screen socket location to /run/screen."
+}
diff --git a/app-misc/screen/screen-4.2.1-r2.ebuild b/app-misc/screen/screen-4.2.1-r2.ebuild
new file mode 100644
index 000000000000..c5d04d19bb35
--- /dev/null
+++ b/app-misc/screen/screen-4.2.1-r2.ebuild
@@ -0,0 +1,145 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit autotools eutils flag-o-matic pam toolchain-funcs user
+
+DESCRIPTION="Full-screen window manager that multiplexes physical terminals between several processes"
+HOMEPAGE="http://www.gnu.org/software/screen/"
+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 ~hppa-hpux ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE="debug nethack pam selinux multiuser"
+
+CDEPEND=">=sys-libs/ncurses-5.2
+ pam? ( virtual/pam )"
+RDEPEND="${CDEPEND}
+ selinux? ( sec-policy/selinux-screen )"
+DEPEND="${CDEPEND}
+ sys-apps/texinfo"
+
+pkg_setup() {
+ # Make sure utmp group exists, as it's used later on.
+ enewgroup utmp 406
+}
+
+src_prepare() {
+ # Don't use utempter even if it is found on the system
+ epatch "${FILESDIR}"/4.0.2-no-utempter.patch
+
+ # sched.h is a system header and causes problems with some C libraries
+ mv sched.h _sched.h || die
+ sed -i '/include/ s:sched.h:_sched.h:' screen.h || die
+
+ # Fix manpage.
+ sed -i \
+ -e "s:/usr/local/etc/screenrc:${EPREFIX}/etc/screenrc:g" \
+ -e "s:/usr/local/screens:${EPREFIX}/tmp/screen:g" \
+ -e "s:/local/etc/screenrc:${EPREFIX}/etc/screenrc:g" \
+ -e "s:/etc/utmp:${EPREFIX}/var/run/utmp:g" \
+ -e "s:/local/screens/S-:${EPREFIX}/tmp/screen/S-:g" \
+ doc/screen.1 \
+ || die
+
+ # reconfigure
+ eautoreconf
+}
+
+src_configure() {
+ append-cppflags "-DMAXWIN=${MAX_SCREEN_WINDOWS:-100}"
+
+ if [[ ${CHOST} == *-solaris* ]] ; then
+ # https://lists.gnu.org/archive/html/screen-devel/2014-04/msg00095.html
+ append-cppflags -D_XOPEN_SOURCE \
+ -D_XOPEN_SOURCE_EXTENDED=1 \
+ -D__EXTENSIONS__
+ append-libs -lsocket -lnsl
+ fi
+
+ use nethack || append-cppflags "-DNONETHACK"
+ use debug && append-cppflags "-DDEBUG"
+
+ econf \
+ --with-socket-dir="${EPREFIX}/tmp/screen" \
+ --with-sys-screenrc="${EPREFIX}/etc/screenrc" \
+ --with-pty-mode=0620 \
+ --with-pty-group=5 \
+ --enable-rxvt_osc \
+ --enable-telnet \
+ --enable-colors256 \
+ $(use_enable pam)
+}
+
+src_compile() {
+ LC_ALL=POSIX emake comm.h term.h
+ emake osdef.h
+
+ emake -C doc screen.info
+ default
+}
+
+src_install() {
+ local tmpfiles_perms tmpfiles_group
+
+ dobin screen
+
+ if use multiuser || use prefix
+ then
+ fperms 4755 /usr/bin/screen
+ tmpfiles_perms="0755"
+ tmpfiles_group="root"
+ else
+ fowners root:utmp /usr/bin/screen
+ fperms 2755 /usr/bin/screen
+ tmpfiles_perms="0775"
+ tmpfiles_group="utmp"
+ fi
+
+ dodir /etc/tmpfiles.d
+ echo "d /tmp/screen ${tmpfiles_perms} root ${tmpfiles_group}" \
+ > "${ED}"/etc/tmpfiles.d/screen.conf
+
+ insinto /usr/share/screen
+ doins terminfo/{screencap,screeninfo.src}
+ insinto /usr/share/screen/utf8encodings
+ doins utf8encodings/??
+ insinto /etc
+ doins "${FILESDIR}"/screenrc
+
+ pamd_mimic_system screen auth
+
+ dodoc \
+ README ChangeLog INSTALL TODO NEWS* patchlevel.h \
+ doc/{FAQ,README.DOTSCREEN,fdpat.ps,window_to_display.ps}
+
+ doman doc/screen.1
+ doinfo doc/screen.info
+}
+
+pkg_postinst() {
+ if [[ -z ${REPLACING_VERSIONS} ]]
+ then
+ elog "Some dangerous key bindings have been removed or changed to more safe values."
+ elog "We enable some xterm hacks in our default screenrc, which might break some"
+ elog "applications. Please check /etc/screenrc for information on these changes."
+ fi
+
+ # Add /tmp/screen in case it doesn't exist yet. This should solve
+ # problems like bug #508634 where tmpfiles.d isn't in effect.
+ local rundir="${EROOT%/}/tmp/screen"
+ if [[ ! -d ${rundir} ]] ; then
+ if use multiuser || use prefix ; then
+ tmpfiles_group="root"
+ else
+ tmpfiles_group="utmp"
+ fi
+ mkdir -m 0775 "${rundir}"
+ chgrp ${tmpfiles_group} "${rundir}"
+ fi
+
+ ewarn "This revision changes the screen socket location to ${rundir}"
+}
diff --git a/app-misc/screen/screen-4.3.1.ebuild b/app-misc/screen/screen-4.3.1.ebuild
new file mode 100644
index 000000000000..b46e4b57e241
--- /dev/null
+++ b/app-misc/screen/screen-4.3.1.ebuild
@@ -0,0 +1,145 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit autotools eutils flag-o-matic pam toolchain-funcs user
+
+DESCRIPTION="Full-screen window manager that multiplexes physical terminals between several processes"
+HOMEPAGE="http://www.gnu.org/software/screen/"
+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 ~hppa-hpux ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE="debug nethack pam selinux multiuser"
+
+CDEPEND=">=sys-libs/ncurses-5.2
+ pam? ( virtual/pam )"
+RDEPEND="${CDEPEND}
+ selinux? ( sec-policy/selinux-screen )"
+DEPEND="${CDEPEND}
+ sys-apps/texinfo"
+
+pkg_setup() {
+ # Make sure utmp group exists, as it's used later on.
+ enewgroup utmp 406
+}
+
+src_prepare() {
+ # Don't use utempter even if it is found on the system
+ epatch "${FILESDIR}"/${PN}-4.3.0-no-utempter.patch
+
+ # sched.h is a system header and causes problems with some C libraries
+ mv sched.h _sched.h || die
+ sed -i '/include/ s:sched.h:_sched.h:' screen.h || die
+
+ # Fix manpage.
+ sed -i \
+ -e "s:/usr/local/etc/screenrc:${EPREFIX}/etc/screenrc:g" \
+ -e "s:/usr/local/screens:${EPREFIX}/tmp/screen:g" \
+ -e "s:/local/etc/screenrc:${EPREFIX}/etc/screenrc:g" \
+ -e "s:/etc/utmp:${EPREFIX}/var/run/utmp:g" \
+ -e "s:/local/screens/S-:${EPREFIX}/tmp/screen/S-:g" \
+ doc/screen.1 \
+ || die
+
+ # reconfigure
+ eautoreconf
+}
+
+src_configure() {
+ append-cppflags "-DMAXWIN=${MAX_SCREEN_WINDOWS:-100}"
+
+ if [[ ${CHOST} == *-solaris* ]] ; then
+ # https://lists.gnu.org/archive/html/screen-devel/2014-04/msg00095.html
+ append-cppflags -D_XOPEN_SOURCE \
+ -D_XOPEN_SOURCE_EXTENDED=1 \
+ -D__EXTENSIONS__
+ append-libs -lsocket -lnsl
+ fi
+
+ use nethack || append-cppflags "-DNONETHACK"
+ use debug && append-cppflags "-DDEBUG"
+
+ econf \
+ --with-socket-dir="${EPREFIX}/tmp/screen" \
+ --with-sys-screenrc="${EPREFIX}/etc/screenrc" \
+ --with-pty-mode=0620 \
+ --with-pty-group=5 \
+ --enable-rxvt_osc \
+ --enable-telnet \
+ --enable-colors256 \
+ $(use_enable pam)
+}
+
+src_compile() {
+ LC_ALL=POSIX emake comm.h term.h
+ emake osdef.h
+
+ emake -C doc screen.info
+ default
+}
+
+src_install() {
+ local tmpfiles_perms tmpfiles_group
+
+ dobin screen
+
+ if use multiuser || use prefix
+ then
+ fperms 4755 /usr/bin/screen
+ tmpfiles_perms="0755"
+ tmpfiles_group="root"
+ else
+ fowners root:utmp /usr/bin/screen
+ fperms 2755 /usr/bin/screen
+ tmpfiles_perms="0775"
+ tmpfiles_group="utmp"
+ fi
+
+ dodir /etc/tmpfiles.d
+ echo "d /tmp/screen ${tmpfiles_perms} root ${tmpfiles_group}" \
+ > "${ED}"/etc/tmpfiles.d/screen.conf
+
+ insinto /usr/share/screen
+ doins terminfo/{screencap,screeninfo.src}
+ insinto /usr/share/screen/utf8encodings
+ doins utf8encodings/??
+ insinto /etc
+ doins "${FILESDIR}"/screenrc
+
+ pamd_mimic_system screen auth
+
+ dodoc \
+ README ChangeLog INSTALL TODO NEWS* patchlevel.h \
+ doc/{FAQ,README.DOTSCREEN,fdpat.ps,window_to_display.ps}
+
+ doman doc/screen.1
+ doinfo doc/screen.info
+}
+
+pkg_postinst() {
+ if [[ -z ${REPLACING_VERSIONS} ]]
+ then
+ elog "Some dangerous key bindings have been removed or changed to more safe values."
+ elog "We enable some xterm hacks in our default screenrc, which might break some"
+ elog "applications. Please check /etc/screenrc for information on these changes."
+ fi
+
+ # Add /tmp/screen in case it doesn't exist yet. This should solve
+ # problems like bug #508634 where tmpfiles.d isn't in effect.
+ local rundir="${EROOT%/}/tmp/screen"
+ if [[ ! -d ${rundir} ]] ; then
+ if use multiuser || use prefix ; then
+ tmpfiles_group="root"
+ else
+ tmpfiles_group="utmp"
+ fi
+ mkdir -m 0775 "${rundir}"
+ chgrp ${tmpfiles_group} "${rundir}"
+ fi
+
+ ewarn "This revision changes the screen socket location to ${rundir}"
+}
diff --git a/app-misc/screen/screen-9999.ebuild b/app-misc/screen/screen-9999.ebuild
new file mode 100644
index 000000000000..2b211a10782d
--- /dev/null
+++ b/app-misc/screen/screen-9999.ebuild
@@ -0,0 +1,146 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+EGIT_REPO_URI="git://git.savannah.gnu.org/screen.git"
+EGIT_BOOTSTRAP="cd src; ./autogen.sh"
+EGIT_SOURCEDIR="${WORKDIR}/${P}" # needed for setting S later on
+
+WANT_AUTOCONF="2.5"
+
+inherit eutils flag-o-matic toolchain-funcs pam autotools user git-2
+
+DESCRIPTION="Full-screen window manager that multiplexes physical terminals between several processes"
+HOMEPAGE="http://www.gnu.org/software/screen/"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS=""
+IUSE="debug nethack pam selinux multiuser"
+
+CDEPEND=">=sys-libs/ncurses-5.2
+ pam? ( virtual/pam )"
+RDEPEND="${CDEPEND}
+ selinux? ( sec-policy/selinux-screen )"
+DEPEND="${CDEPEND}
+ sys-apps/texinfo"
+
+S="${WORKDIR}"/${P}/src
+
+pkg_setup() {
+ # Make sure utmp group exists, as it's used later on.
+ enewgroup utmp 406
+}
+
+src_prepare() {
+ # Don't use utempter even if it is found on the system
+ epatch "${FILESDIR}"/4.0.2-no-utempter.patch
+
+ # sched.h is a system header and causes problems with some C libraries
+ mv sched.h _sched.h || die
+ sed -i '/include/ s:sched.h:_sched.h:' screen.h || die
+
+ # Fix manpage.
+ sed -i \
+ -e "s:/usr/local/etc/screenrc:${EPREFIX}/etc/screenrc:g" \
+ -e "s:/usr/local/screens:${EPREFIX}/tmp/screen:g" \
+ -e "s:/local/etc/screenrc:${EPREFIX}/etc/screenrc:g" \
+ -e "s:/etc/utmp:${EPREFIX}/var/run/utmp:g" \
+ -e "s:/local/screens/S-:${EPREFIX}/tmp/screen/S-:g" \
+ doc/screen.1 \
+ || die
+
+ # reconfigure
+ eautoreconf
+}
+
+src_configure() {
+ append-cppflags "-DMAXWIN=${MAX_SCREEN_WINDOWS:-100}"
+
+ [[ ${CHOST} == *-solaris* ]] && append-libs -lsocket -lnsl
+
+ use nethack || append-cppflags "-DNONETHACK"
+ use debug && append-cppflags "-DDEBUG"
+
+ econf \
+ --with-socket-dir="${EPREFIX}/tmp/screen" \
+ --with-sys-screenrc="${EPREFIX}/etc/screenrc" \
+ --with-pty-mode=0620 \
+ --with-pty-group=5 \
+ --enable-rxvt_osc \
+ --enable-telnet \
+ --enable-colors256 \
+ $(use_enable pam)
+}
+
+src_compile() {
+ LC_ALL=POSIX emake comm.h term.h
+ emake osdef.h
+
+ emake -C doc screen.info
+ default
+}
+
+src_install() {
+ local tmpfiles_perms tmpfiles_group
+
+ dobin screen
+
+ if use multiuser || use prefix
+ then
+ fperms 4755 /usr/bin/screen
+ tmpfiles_perms="0755"
+ tmpfiles_group="root"
+ else
+ fowners root:utmp /usr/bin/screen
+ fperms 2755 /usr/bin/screen
+ tmpfiles_perms="0775"
+ tmpfiles_group="utmp"
+ fi
+
+ dodir /etc/tmpfiles.d
+ echo "d /tmp/screen ${tmpfiles_perms} root ${tmpfiles_group}" \
+ >"${ED}"/etc/tmpfiles.d/screen.conf
+
+ insinto /usr/share/screen
+ doins terminfo/{screencap,screeninfo.src}
+ insinto /usr/share/screen/utf8encodings
+ doins utf8encodings/??
+ insinto /etc
+ doins "${FILESDIR}"/screenrc
+
+ pamd_mimic_system screen auth
+
+ dodoc \
+ README ChangeLog INSTALL TODO NEWS* patchlevel.h \
+ doc/{FAQ,README.DOTSCREEN,fdpat.ps,window_to_display.ps}
+
+ doman doc/screen.1
+ doinfo doc/screen.info
+}
+
+pkg_postinst() {
+ if [[ -z ${REPLACING_VERSIONS} ]]
+ then
+ elog "Some dangerous key bindings have been removed or changed to more safe values."
+ elog "We enable some xterm hacks in our default screenrc, which might break some"
+ elog "applications. Please check /etc/screenrc for information on these changes."
+ fi
+
+ # Add /tmp/screen in case it doesn't exist yet. This should solve
+ # problems like bug #508634 where tmpfiles.d isn't in effect.
+ local rundir="${EROOT%/}/tmp/screen"
+ if [[ ! -d ${rundir} ]] ; then
+ if use multiuser || use prefix ; then
+ tmpfiles_group="root"
+ else
+ tmpfiles_group="utmp"
+ fi
+ mkdir -m 0775 "${rundir}"
+ chgrp ${tmpfiles_group} "${rundir}"
+ fi
+
+ ewarn "This revision changes the screen socket location to /run/screen."
+}
diff --git a/app-misc/screenfetch/Manifest b/app-misc/screenfetch/Manifest
new file mode 100644
index 000000000000..6780eab83df9
--- /dev/null
+++ b/app-misc/screenfetch/Manifest
@@ -0,0 +1,3 @@
+DIST screenfetch-2.7.7.zip 41420 SHA256 c50322375929c78b13afc5fd4e62259087db3988283109ddcf60e98194f3adc8 SHA512 b783c05fc385d176e8d4e06c647c86ceef0ec465ddaa7ceab4116dc844e6a3a4cb10a706aef62ed4c0e1893942be4761dc1962e99d45b528742372415bd17b10 WHIRLPOOL ab863a39d5610ca86302cdbedbb83c4a4da6909093c0a6b7e43d92c1a5f1bf86a34f2ce316ab6168fa6097d478b4838160758a8ce0de9c0404ed538461f868c3
+DIST screenfetch-3.2.2.tar.gz 46668 SHA256 6f30cc06b1f19cbeffc211afdf4c754c1e77b5e35965240ea77b032bb2e32bd4 SHA512 f8ddfcebe69919c9163c2377de8dfb28f15c9dd59c43d73245591b2ba6c41123c6c8130b673d87e6068850fca3b277f93bbb626e228266ea0c87be5856e823da WHIRLPOOL 7514eafaa7fb1df51a8beb5720f771217b32b902ca4e4433cfbe0f058dc11ccd82529b7622a1686878ad2e983063cfeaed0c9302b47f335a1dc4e5cb628568e4
+DIST screenfetch-3.6.5.tar.gz 54153 SHA256 b6605a94be9720a5e64778dcc43ddf23e435d6704c5d177b671aa57d34966f20 SHA512 291ec0d313deebe7931b739578b69f590ae32cb7a59c5ae6975b25240d9c5bd92b8957d6a53baf78aa95737642eadd37e081fae5b5ca5120da5a9d76bb980c59 WHIRLPOOL 33b8be75c98e09adde332792b10ff1aa808d6ed5d170aaeb9ee8eaa25925119b82a49902d39d810ae908fc65a864d5b7b6cbe9ce956054b08a8eda96e3ac4ab3
diff --git a/app-misc/screenfetch/metadata.xml b/app-misc/screenfetch/metadata.xml
new file mode 100644
index 000000000000..465f93093bd1
--- /dev/null
+++ b/app-misc/screenfetch/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>
+ <email>hwoarang@gentoo.org</email>
+ <name>Markos Chandras</name>
+ </maintainer>
+ <use>
+ <flag name="X">Use the <pkg>media-gfx/scrot</pkg> package to take screenshots</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">KittyKatt/screenFetch</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/screenfetch/screenfetch-2.7.7.ebuild b/app-misc/screenfetch/screenfetch-2.7.7.ebuild
new file mode 100644
index 000000000000..d96f19d8fbba
--- /dev/null
+++ b/app-misc/screenfetch/screenfetch-2.7.7.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+MY_PN="${PN/f/F}"
+DESCRIPTION="A Bash Screenshot Information Tool"
+HOMEPAGE="https://github.com/KittyKatt/screenFetch"
+SRC_URI="http://github.com/KittyKatt/${MY_PN}/zipball/v${PV} -> ${P}.zip"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="X"
+
+DEPEND="app-arch/unzip"
+RDEPEND="X? ( media-gfx/scrot x11-apps/xdpyinfo )"
+
+GIT_HASH="4881270"
+S="${WORKDIR}"/KittyKatt-${MY_PN}-${GIT_HASH}
+
+src_install() {
+ dobin ${PN}-dev
+ # also known as screenfetch
+ dosym ${PN}-dev /usr/bin/${PN}
+ dodoc CHANGELOG README.mkdn TODO
+}
diff --git a/app-misc/screenfetch/screenfetch-3.2.2.ebuild b/app-misc/screenfetch/screenfetch-3.2.2.ebuild
new file mode 100644
index 000000000000..8157a0064ac4
--- /dev/null
+++ b/app-misc/screenfetch/screenfetch-3.2.2.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+MY_PN="${PN/f/F}"
+DESCRIPTION="A Bash Screenshot Information Tool"
+HOMEPAGE="https://github.com/KittyKatt/screenFetch"
+if [[ ${PV} == *9999* ]]; then
+ inherit git-2
+ EGIT_REPO_URI="https://github.com/KittyKatt/screenFetch"
+ KEYWORDS=""
+else
+ SRC_URI="https://github.com/KittyKatt/${MY_PN}/archive/v${PV}.tar.gz -> \
+ ${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+ S="${WORKDIR}/${MY_PN}-${PV}"
+fi
+
+LICENSE="GPL-3"
+SLOT="0"
+IUSE="X"
+
+DEPEND=""
+RDEPEND="X? ( media-gfx/scrot x11-apps/xdpyinfo )"
+
+src_install() {
+ newbin ${PN}-dev ${PN}
+ dodoc CHANGELOG README.mkdn TODO
+}
diff --git a/app-misc/screenfetch/screenfetch-3.6.5.ebuild b/app-misc/screenfetch/screenfetch-3.6.5.ebuild
new file mode 100644
index 000000000000..40b61c8286ec
--- /dev/null
+++ b/app-misc/screenfetch/screenfetch-3.6.5.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+MY_PN="${PN/f/F}"
+DESCRIPTION="A Bash Screenshot Information Tool"
+HOMEPAGE="https://github.com/KittyKatt/screenFetch"
+if [[ ${PV} == *9999* ]]; then
+ inherit git-2
+ EGIT_REPO_URI="https://github.com/KittyKatt/screenFetch"
+ KEYWORDS=""
+else
+ SRC_URI="https://github.com/KittyKatt/${MY_PN}/archive/v${PV}.tar.gz -> \
+ ${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+ S="${WORKDIR}/${MY_PN}-${PV}"
+fi
+
+LICENSE="GPL-3"
+SLOT="0"
+IUSE="X"
+
+DEPEND=""
+RDEPEND="X? ( media-gfx/scrot x11-apps/xdpyinfo )"
+
+src_install() {
+ newbin ${PN}-dev ${PN}
+ dodoc CHANGELOG README.mkdn TODO
+}
diff --git a/app-misc/screenfetch/screenfetch-9999.ebuild b/app-misc/screenfetch/screenfetch-9999.ebuild
new file mode 100644
index 000000000000..8157a0064ac4
--- /dev/null
+++ b/app-misc/screenfetch/screenfetch-9999.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+MY_PN="${PN/f/F}"
+DESCRIPTION="A Bash Screenshot Information Tool"
+HOMEPAGE="https://github.com/KittyKatt/screenFetch"
+if [[ ${PV} == *9999* ]]; then
+ inherit git-2
+ EGIT_REPO_URI="https://github.com/KittyKatt/screenFetch"
+ KEYWORDS=""
+else
+ SRC_URI="https://github.com/KittyKatt/${MY_PN}/archive/v${PV}.tar.gz -> \
+ ${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+ S="${WORKDIR}/${MY_PN}-${PV}"
+fi
+
+LICENSE="GPL-3"
+SLOT="0"
+IUSE="X"
+
+DEPEND=""
+RDEPEND="X? ( media-gfx/scrot x11-apps/xdpyinfo )"
+
+src_install() {
+ newbin ${PN}-dev ${PN}
+ dodoc CHANGELOG README.mkdn TODO
+}
diff --git a/app-misc/screenie/Manifest b/app-misc/screenie/Manifest
new file mode 100644
index 000000000000..fa8f9b5166f3
--- /dev/null
+++ b/app-misc/screenie/Manifest
@@ -0,0 +1 @@
+DIST screenie-1.30.0.tar.bz2 10068 SHA256 60e141a2b036375d93f5edf6b29d5008ec54d9c8f501a21ffce17748bd64b96a SHA512 8068421aaa461df32bccbe72e23474b20ef3f761e78a3e520c1f9f19a383d9ad9fd0377e2cdf1c4f023ca570b172a40ebff63d3cb538b96d1e1706fe83d03fdd WHIRLPOOL e842eef4bd97270ad2360f22896678b3515323e56b441d7e3e82165d2fe79de83e1b3cf4262a571a83519683be89af878664d0a9bccbce6646bc31d1f93b84b0
diff --git a/app-misc/screenie/files/screenie-CVE-2008-5371.patch b/app-misc/screenie/files/screenie-CVE-2008-5371.patch
new file mode 100644
index 000000000000..2bf8dbdc6b8a
--- /dev/null
+++ b/app-misc/screenie/files/screenie-CVE-2008-5371.patch
@@ -0,0 +1,26 @@
+Patch for bug 250476 (CVE-2008-5371), courtesy of nion@debian.org.
+
+diff -u screenie-1.30.0/screenie screenie-1.30.0/screenie
+--- screenie-1.30.0/screenie
++++ screenie-1.30.0/screenie
+@@ -19,7 +19,7 @@
+ # Foundation Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
+
+ #global settings
+-TMPF=/tmp/.screenie.$$
++TMPF=$(mktemp -t skreenie.XXXXXX || exit 1)
+ ACTIVE_SCREENS="screen \-ls | awk '/tached/ { print \$1}' | sort"
+ i=0
+ e=0
+@@ -59,9 +59,9 @@
+ esac
+
+ #cleanup temp files
+-if test -f /tmp/.screenie*
++if test -f $TMPF
+ then
+- rm /tmp/.screenie* >/dev/null 2>&1
++ rm $TMPF >/dev/null 2>&1
+ fi
+
+ while :
diff --git a/app-misc/screenie/metadata.xml b/app-misc/screenie/metadata.xml
new file mode 100644
index 000000000000..b614aabc0394
--- /dev/null
+++ b/app-misc/screenie/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>proxy-maintainers</herd>
+ <maintainer>
+ <email>rgkmg25@gmail.com</email>
+ <name>Robert Kowalski</name>
+ <description>Proxy Maintainer. CC on bugs</description>
+ </maintainer>
+ <longdescription lang="en">
+ Screenie is a small and lightweight GNU screen(1) frontend that is
+ designed to be a session handler that simplifies the process of
+ administrating detached jobs by providing an interactive menu.
+ </longdescription>
+ <longdescription lang="ja">
+ Screenie「スクリーネ」と言うアップは小さいなGNU
+ Screen(1)フロントエンドです。対話的メニューで
+ プロセス管理を安くなります。
+ </longdescription>
+</pkgmetadata>
diff --git a/app-misc/screenie/screenie-1.30.0-r1.ebuild b/app-misc/screenie/screenie-1.30.0-r1.ebuild
new file mode 100644
index 000000000000..e554e7b5e392
--- /dev/null
+++ b/app-misc/screenie/screenie-1.30.0-r1.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="2"
+
+inherit eutils
+
+DESCRIPTION="screen(1) frontend that is designed to be a session handler"
+HOMEPAGE="http://pubwww.hsz-t.ch/~mgloor/screenie.html"
+SRC_URI="http://pubwww.hsz-t.ch/~mgloor/data/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 hppa ia64 sparc x86 ~x86-fbsd"
+IUSE=""
+
+RDEPEND="app-misc/screen"
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-CVE-2008-5371.patch"
+}
+
+src_install() {
+ dobin screenie || die "dobin failed"
+ dodoc AUTHORS ChangeLog INSTALL README TODO || die "dodoc failed"
+}
diff --git a/app-misc/scrub/Manifest b/app-misc/scrub/Manifest
new file mode 100644
index 000000000000..b60eb1d7c838
--- /dev/null
+++ b/app-misc/scrub/Manifest
@@ -0,0 +1,2 @@
+DIST scrub-2.5.2.tar.bz2 161468 SHA256 51ee4963759cf07b186bb583ef2839618c1131bbbbdfae849ca76a2259cbc461 SHA512 23815831a356b3a7c6a75354134c49912dc97f9e54130acaa9ee8e80cf839e18238bf69cf6d5aaf79dbbc3dc4195ca78cb6f0d5aca11972726956040fcc424e7 WHIRLPOOL 80b8514e21bff2b1aa2628da7c46d679ea72328db26ac676189c09986f7d1f9e0ac63af7e8c8796237f42b86e707acfc90113af9c16194bc63382e848afb5f6a
+DIST scrub-2.6.1.tar.gz 362536 SHA256 43d98d3795bc2de7920efe81ef2c5de4e9ed1f903c35c939a7d65adc416d6cb8 SHA512 6e434b9d81c5ac473188c37af790c808771204203b3f04a5ca316c6a890f872d1beb73ce4713546e14ae91287d7adaf2fbfa44a30af634c2b3af890e2a0e8640 WHIRLPOOL 443a790da1e2507984e8b5f55f566fcf8f850b7b81b4e01c4df5fa8d6b9045494af1defd4b36baaa44a91ae99fea18a9de2be41b8af52cea5f8fa103c92f4e21
diff --git a/app-misc/scrub/metadata.xml b/app-misc/scrub/metadata.xml
new file mode 100644
index 000000000000..5fbbd9e0811c
--- /dev/null
+++ b/app-misc/scrub/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>
+ <email>dev-zero@gentoo.org</email>
+ <name>Tiziano Müller</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="google-code">diskscrub</remote-id>
+ <remote-id type="github">chaos/scrub</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/scrub/scrub-2.5.2.ebuild b/app-misc/scrub/scrub-2.5.2.ebuild
new file mode 100644
index 000000000000..3f6669a5cb04
--- /dev/null
+++ b/app-misc/scrub/scrub-2.5.2.ebuild
@@ -0,0 +1,17 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+DESCRIPTION="write patterns on disk/file"
+HOMEPAGE="http://code.google.com/p/diskscrub/"
+SRC_URI="http://diskscrub.googlecode.com/files/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~sparc x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
diff --git a/app-misc/scrub/scrub-2.6.1.ebuild b/app-misc/scrub/scrub-2.6.1.ebuild
new file mode 100644
index 000000000000..baffb377e835
--- /dev/null
+++ b/app-misc/scrub/scrub-2.6.1.ebuild
@@ -0,0 +1,17 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+DESCRIPTION="Write patterns on disk/file"
+HOMEPAGE="http://code.google.com/p/diskscrub/"
+SRC_URI="https://github.com/chaos/${PN}/releases/download/${PV}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~sparc ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
diff --git a/app-misc/sl/Manifest b/app-misc/sl/Manifest
new file mode 100644
index 000000000000..ed3775d409e3
--- /dev/null
+++ b/app-misc/sl/Manifest
@@ -0,0 +1,3 @@
+DIST sl.en.1.gz 467 SHA256 51dc6d6c902a9c8dd1f04379b53d873e0f321d78710a7fecccf68f08ca6923dc SHA512 5acfc9818ea0f2d3931a24ae0ed1c82685b38b384bd635122ddfbf5d04199cbc3cbc370fa9be48825440abad972029218285a5486ee820f77ea8ab77a3dec2e6 WHIRLPOOL 10fe3e52a18a739381ac7b6ea16cb58a04550bb57534dd3226de349eafad51cce60b7ea7f5ff36ece008d363e81b5c37e3ec943ac8183b8183a95012b7adb0ae
+DIST sl.tar 20480 SHA256 b2bcbd86acf2017c84b6aaf6161b3b24f97e34a2d70ab0204c9503f5d50965f4 SHA512 eb0cc0bc0d6e795e32ed84a6813644b41e81ad6fd7ac51e67ec6c99747acdbc9d102041d3af53c9ba75ba7b1581ab4c6a14fc9db20e1f69a30713aefb17f7737 WHIRLPOOL 5173ab275c8a47ef6a20c39bcb7053a9f5d317c092f5813b882913ed625d806f477eaee35398b53fc40b0944f298d3fc540ce94ec9b343491286237aa35b4168
+DIST sl5-1.patch 36035 SHA256 4943b6f000f518ed08755b36d9b753291989c4867e55d74bc4cc4502f6e9422f SHA512 25321da4fd2359f1e47a6ab939d3ce5dc8a160a6ede4db3e7355d5efcecf686622f3c9e3e941eeeeed504c61cb15b959648d97f70a97f88efe3a2628eaa96038 WHIRLPOOL 56d11bcdf9f1e27d1261b4616859b8381c6ae49c0897d28a7214fe59f7227013b39ff55d438078bd3cd7e196403a327af1edaba8be38255db38f2090db3070b8
diff --git a/app-misc/sl/files/Makefile b/app-misc/sl/files/Makefile
new file mode 100644
index 000000000000..663a9bff6b1d
--- /dev/null
+++ b/app-misc/sl/files/Makefile
@@ -0,0 +1,5 @@
+LDLIBS = -lncurses
+all: sl
+sl: sl.o
+clean:
+ rm -f sl sl.o
diff --git a/app-misc/sl/files/fix_compilation.patch b/app-misc/sl/files/fix_compilation.patch
new file mode 100644
index 000000000000..5b63a844f9f5
--- /dev/null
+++ b/app-misc/sl/files/fix_compilation.patch
@@ -0,0 +1,22 @@
+--- sl.orig/sl.c 2010-08-09 21:36:45.483225339 +0200
++++ sl/sl.c 2010-08-09 22:01:12.462051982 +0200
+@@ -30,6 +30,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <strings.h>
++#include <string.h>
+ #include <time.h>
+ #ifdef LINUX20
+ #include <ncurses/curses.h>
+@@ -186,10 +187,7 @@ int main(int argc, char *argv[])
+ scrollok(stdscr, FALSE);
+ DIREC = RTOL;
+ p = 3 * COLS / 10;
+- pp = (char*)malloc((size_t)(COLS + ALL_LENGTH + 10) * (D51HIGHT + 1) * (D51PATTERNS + 1));
+- for (i = 0; i <= (COLS + ALL_LENGTH + 1) * (D51HIGHT + 1) * D51PATTERNS; ++i) {
+- pp[i] = (char)NULL;
+- }
++ pp = (char *)calloc(1, (size_t)(COLS + ALL_LENGTH + 10) * (D51HIGHT + 1) * (D51PATTERNS + 1));
+
+ for (j = 0; j < D51PATTERNS; ++j) {
+ for (i = 0; i <= D51HIGHT; ++i) {
diff --git a/app-misc/sl/files/sl-3.03-gentoo.diff b/app-misc/sl/files/sl-3.03-gentoo.diff
new file mode 100644
index 000000000000..e6350ca5b37e
--- /dev/null
+++ b/app-misc/sl/files/sl-3.03-gentoo.diff
@@ -0,0 +1,10 @@
+--- sl.c.orig 2003-09-07 14:20:29.000000000 +0900
++++ sl.c 2003-09-07 14:21:11.000000000 +0900
+@@ -164,6 +164,7 @@
+ signal(SIGINT, end_proc);
+ #else
++ signal(SIGTSTP, SIG_IGN);
+ signal(SIGINT, SIG_IGN);
+ PASSNUM = (int)(drand48() * 20.0) + 10;
+ if (drand48() > 0.5) {
+ ONEDIREC = 1;
diff --git a/app-misc/sl/metadata.xml b/app-misc/sl/metadata.xml
new file mode 100644
index 000000000000..39604b73ef34
--- /dev/null
+++ b/app-misc/sl/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>
+ <email>jdhore@gentoo.org</email>
+ <name>Jeff Horelick</name>
+ </maintainer>
+ <longdescription lang="en">
+ SL is an extremely sophisticated type remediation program at which you
+ will be astonished. The original program has experienced gradual
+ modifications and enhancements so that one can never think of better
+ software than SL.
+ </longdescription>
+</pkgmetadata>
diff --git a/app-misc/sl/sl-3.03-r3.ebuild b/app-misc/sl/sl-3.03-r3.ebuild
new file mode 100644
index 000000000000..b9165ebacf64
--- /dev/null
+++ b/app-misc/sl/sl-3.03-r3.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit eutils toolchain-funcs flag-o-matic
+
+SL_PATCH="sl5-1.patch"
+
+DESCRIPTION="sophisticated graphical program which corrects your miss typing"
+HOMEPAGE="http://www.tkl.iis.u-tokyo.ac.jp/~toyoda/index_e.html http://www.izumix.org.uk/sl/"
+SRC_URI="http://www.tkl.iis.u-tokyo.ac.jp/~toyoda/sl/${PN}.tar
+ !vanilla? (
+ http://www.linet.gr.jp/~izumi/sl/${SL_PATCH}
+ http://www.sodan.ecc.u-tokyo.ac.jp/~okayama/sl/${PN}.en.1.gz
+ )"
+
+LICENSE="freedist"
+SLOT="0"
+KEYWORDS="alpha amd64 hppa ppc ppc64 sparc x86 ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE="debug linguas_ja vanilla"
+
+REQUIRED_USE="debug? ( !vanilla )"
+
+DEPEND="sys-libs/ncurses"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/${PN}
+
+pkg_setup() {
+ tc-export CC
+ use debug && append-cppflags -DDEBUG
+}
+
+src_prepare() {
+ if ! use vanilla ; then
+ epatch -p1 "${DISTDIR}/${SL_PATCH}"
+ epatch "${FILESDIR}/${P}-gentoo.diff"
+ epatch "${FILESDIR}/fix_compilation.patch"
+ fi
+
+ cp "${FILESDIR}"/Makefile "${S}" || die
+
+ if use linguas_ja; then
+ iconv -f ISO-2022-JP -t EUC-JP sl.1 > sl.ja.1
+ fi
+}
+
+src_install() {
+ dobin sl
+ dodoc sl.txt
+
+ if ! use vanilla ; then
+ newman "${WORKDIR}/sl.en.1" sl.1
+ fi
+
+ if use linguas_ja ; then
+ dodoc README*
+ insinto /usr/share/man/ja/man1
+ newins sl.ja.1 sl.1
+ fi
+}
diff --git a/app-misc/slashtime/Manifest b/app-misc/slashtime/Manifest
new file mode 100644
index 000000000000..4d9e430f1b52
--- /dev/null
+++ b/app-misc/slashtime/Manifest
@@ -0,0 +1 @@
+DIST slashtime-0.5.13.tar.bz2 51154 SHA256 19b1d589142258d70d72eba043545667a305360ca9ff5ee78109a17a3076804d SHA512 bb80965882c8078aa7830d0d0bffa48c84ad455f7882500f68c100e65ff0978d5825dff9b8feb1daa0b3557a68c8d6162b0761bdb424f36a94e934ee1b616f59 WHIRLPOOL d88f0f8f6536102122bfcd570bb820e6b23eec8a09a5599e21d066109c6f43ddfe09a97773e904502b7e1d4c50cc00fe8642df1f038a06de5d1349b72ecce570
diff --git a/app-misc/slashtime/metadata.xml b/app-misc/slashtime/metadata.xml
new file mode 100644
index 000000000000..604e0a4238bb
--- /dev/null
+++ b/app-misc/slashtime/metadata.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>java</herd>
+</pkgmetadata>
+
diff --git a/app-misc/slashtime/slashtime-0.5.13-r1.ebuild b/app-misc/slashtime/slashtime-0.5.13-r1.ebuild
new file mode 100644
index 000000000000..ddd6d9c5a7b2
--- /dev/null
+++ b/app-misc/slashtime/slashtime-0.5.13-r1.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+JAVA_PKG_IUSE="source"
+
+inherit java-pkg-2
+
+DESCRIPTION="View the time at locations around the world"
+HOMEPAGE="http://research.operationaldynamics.com/projects/slashtime/"
+SRC_URI="http://research.operationaldynamics.com/projects/${PN}/dist/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+
+COMMON_DEP="dev-java/java-gnome:4.1"
+
+DEPEND=">=virtual/jdk-1.5
+ ${COMMON_DEP}"
+
+RDEPEND=">=virtual/jre-1.5
+ ${COMMON_DEP}"
+
+src_configure() {
+ # Handwritten in perl so not using econf
+ ./configure prefix=/usr jardir=/usr/share/${PN}/lib || die
+}
+
+src_compile() {
+ emake
+}
+
+src_install() {
+ # This is needed to generate the slashtime jar.
+ emake -j1 DESTDIR="${D}" install
+
+ java-pkg_register-dependency java-gnome-4.1 gtk.jar
+ java-pkg_regjar /usr/share/${PN}/lib/${PN}.jar
+
+ # Replace slashtime launcher with our own.
+ rm "${D}"/usr/bin/slashtime || die
+ java-pkg_dolauncher ${PN} --main slashtime.client.Master --pwd /usr
+
+ dodoc AUTHORS HACKING PLACES README TODO
+
+ use source && java-pkg_dosrc src/java/slashtime
+}
diff --git a/app-misc/sleepyhead/Manifest b/app-misc/sleepyhead/Manifest
new file mode 100644
index 000000000000..59cc1efe8695
--- /dev/null
+++ b/app-misc/sleepyhead/Manifest
@@ -0,0 +1,2 @@
+DIST sleepyhead-0.9.2.2.tgz 1399077 SHA256 49bcc7cf2b8351026a1f30b44d71a8500b9c74c6f6ac1aeeb14ca3b039ee7123 SHA512 bb6219c8575b8723b2db063d9a40b164d1aa50223b63468457c85b18895aefc74835d55bcd1f7d0e48e942531bd77041a749e44d870189d9ba011ad85d13c7fa WHIRLPOOL 3e1955aa2d1ab96da8a4f091f15538ba2bd091d935a2b9acaa012c7aadf304e7dcf5cf0f3284e0ed4c29d11f39420f236144adcaec0646f0f4d879c375a822c8
+DIST sleepyhead-0.9.3.tgz 1804053 SHA256 b807f12c3f767037dd2e5bfdeb1f353e425ad537509be4cf3918ec61cf2efea2 SHA512 e50476e9b64ce056d33a55798a86b26fef6db4e8c6058e4e6c5c547e15acb745ea5d79bf3978713583da943626b2395894ed8109fa30a55ca15fa53ff29a2ac9 WHIRLPOOL 5759d97c0309a5c9f312ae9fde85531bc718da4fffe375d6f08b06dd2f34877e935339fa56634f482a3bfc66877c0ad0f4577832f3f89a64ec24dc18b880b826
diff --git a/app-misc/sleepyhead/files/common_gui.patch b/app-misc/sleepyhead/files/common_gui.patch
new file mode 100644
index 000000000000..6e41e0ac4ce9
--- /dev/null
+++ b/app-misc/sleepyhead/files/common_gui.patch
@@ -0,0 +1,12 @@
+diff --git a/common_gui.cpp b/common_gui.cpp
+index 0f38ce8..36b0b9e 100644
+--- a/common_gui.cpp
++++ b/common_gui.cpp
+@@ -6,6 +6,7 @@
+
+ #include "common_gui.h"
+ #include "qglobal.h"
++#include <unistd.h>
+
+ #ifdef Q_WS_WIN32
+ #include "windows.h"
diff --git a/app-misc/sleepyhead/files/gitfix.patch b/app-misc/sleepyhead/files/gitfix.patch
new file mode 100644
index 000000000000..46cbef0a4530
--- /dev/null
+++ b/app-misc/sleepyhead/files/gitfix.patch
@@ -0,0 +1,15 @@
+--- a/SleepyHeadQT.pro
++++ b/SleepyHeadQT.pro
+@@ -31,10 +31,10 @@ TEMPLATE = app
+
+ #exists(.git):DEFINES += GIT_BRANCH=\\\"$$system(git rev-parse --symbolic-full-name --abbrev-ref HEAD)\\\"
+ exists(.git):DEFINES += GIT_BRANCH=\\\"$$system(git rev-parse --abbrev-ref HEAD)\\\"
+-else:DEFINES += GIT_BRANCH=\\\"NOT BUILT FROM GIT SOURCE\\\"
++else:DEFINES += GIT_BRANCH=\\\"UNKNOWN\\\"
+
+ exists(.git):DEFINES += GIT_REVISION=\\\"$$system(git rev-parse HEAD)\\\"
+-else:DEFINES += GIT_BRANCH=\\\"UNKNOWN\\\"
++else:DEFINES += GIT_REVISION=\\\"UNKNOWN\\\"
+
+ SOURCES += main.cpp\
+ SleepLib/machine.cpp \
diff --git a/app-misc/sleepyhead/files/prs1-64fix.patch b/app-misc/sleepyhead/files/prs1-64fix.patch
new file mode 100644
index 000000000000..a7b1070eeb4c
--- /dev/null
+++ b/app-misc/sleepyhead/files/prs1-64fix.patch
@@ -0,0 +1,13 @@
+diff --git a/SleepLib/loader_plugins/prs1_loader.cpp b/SleepLib/loader_plugins/prs1_loader.cpp
+index d7f102c..61f2d34 100644
+--- a/SleepLib/loader_plugins/prs1_loader.cpp
++++ b/SleepLib/loader_plugins/prs1_loader.cpp
+@@ -597,7 +597,7 @@ bool PRS1Loader::Parse002v5(qint32 sequence, quint32 timestamp, unsigned char *b
+ CPAP_LeakTotal, PRS1_12
+ };
+
+- int ncodes=sizeof(Codes)/sizeof(QString);
++ int ncodes=sizeof(Codes)/sizeof(ChannelID);
+ EventList * Code[0x20]={NULL};
+
+
diff --git a/app-misc/sleepyhead/files/prs1-code8fix.patch b/app-misc/sleepyhead/files/prs1-code8fix.patch
new file mode 100644
index 000000000000..ec7a121674be
--- /dev/null
+++ b/app-misc/sleepyhead/files/prs1-code8fix.patch
@@ -0,0 +1,12 @@
+diff --git a/SleepLib/loader_plugins/prs1_loader.cpp b/SleepLib/loader_plugins/prs1_loader.cpp
+index d7f102c..95de13b 100644
+--- a/SleepLib/loader_plugins/prs1_loader.cpp
++++ b/SleepLib/loader_plugins/prs1_loader.cpp
+@@ -722,6 +722,7 @@ bool PRS1Loader::Parse002v5(qint32 sequence, quint32 timestamp, unsigned char *b
+ if (!(Code[10]=session->AddEventList(cpapcode,EVL_Event))) return false;
+ }
+ Code[10]->AddEvent(tt,data[0]);
++ pos++;
+ break;
+ case 0x09: // ASV Codes
+ //code=CPAP_FlowLimit;
diff --git a/app-misc/sleepyhead/metadata.xml b/app-misc/sleepyhead/metadata.xml
new file mode 100644
index 000000000000..b65fdaadcfef
--- /dev/null
+++ b/app-misc/sleepyhead/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer>
+ <email>rich0@gentoo.org</email>
+</maintainer>
+<longdescription>QT-based application used to analyze data from various CPAP machines.</longdescription>
+</pkgmetadata>
diff --git a/app-misc/sleepyhead/sleepyhead-0.9.2.2-r1.ebuild b/app-misc/sleepyhead/sleepyhead-0.9.2.2-r1.ebuild
new file mode 100644
index 000000000000..fd2c41de6c25
--- /dev/null
+++ b/app-misc/sleepyhead/sleepyhead-0.9.2.2-r1.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+inherit eutils qt4-r2
+DESCRIPTION="Software used to analyze data from CPAP machines"
+HOMEPAGE="https://sourceforge.net/apps/mediawiki/sleepyhead/index.php?title=Main_Page"
+
+# Point to any required sources; these will be automatically downloaded by
+# Portage.
+SRC_URI="https://github.com/rich0/rich0-sleepyhead/tarball/${PV} -> ${P}.tgz"
+LICENSE="GPL-2"
+SLOT="0"
+
+KEYWORDS="~amd64"
+
+IUSE=""
+
+DEPEND="virtual/opengl
+ x11-libs/libX11
+ dev-qt/qtcore:4
+ dev-qt/qtgui:4
+ dev-qt/qtopengl:4
+ dev-qt/qtwebkit:4"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/rich0-rich0-sleepyhead-86250b9"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+}
+
+src_prepare() {
+# qt4_src_prepare
+ cd "{$S}"
+ epatch "${FILESDIR}/gitfix.patch"
+ epatch "${FILESDIR}/prs1-64fix.patch"
+ epatch "${FILESDIR}/prs1-code8fix.patch"
+ epatch "${FILESDIR}/common_gui.patch"
+
+ sed -i '1i#define OF(x) x' quazip/ioapi.h quazip/unzip.c quazip/unzip.h \
+ quazip/zip.c quazip/zip.h quazip/zlib.h
+ eqmake4 SleepyHeadQT.pro
+}
+
+src_install() {
+ cd "{$S}"
+ dobin SleepyHead || die
+ dodoc README || die
+ dodoc docs/* || die
+}
diff --git a/app-misc/sleepyhead/sleepyhead-0.9.2.2.ebuild b/app-misc/sleepyhead/sleepyhead-0.9.2.2.ebuild
new file mode 100644
index 000000000000..909952576b95
--- /dev/null
+++ b/app-misc/sleepyhead/sleepyhead-0.9.2.2.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+inherit eutils qt4-r2
+DESCRIPTION="Software used to analyze data from CPAP machines"
+HOMEPAGE="https://sourceforge.net/apps/mediawiki/sleepyhead/index.php?title=Main_Page"
+
+# Point to any required sources; these will be automatically downloaded by
+# Portage.
+SRC_URI="https://github.com/rich0/rich0-sleepyhead/tarball/${PV} -> ${P}.tgz"
+LICENSE="GPL-2"
+SLOT="0"
+
+KEYWORDS="~amd64"
+
+IUSE=""
+
+DEPEND="virtual/opengl
+ x11-libs/libX11
+ dev-qt/qtcore:4
+ dev-qt/qtgui:4
+ dev-qt/qtopengl:4
+ dev-qt/qtwebkit:4"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/rich0-rich0-sleepyhead-86250b9"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+}
+
+src_prepare() {
+# qt4_src_prepare
+ cd "{$S}"
+ epatch "${FILESDIR}/gitfix.patch"
+ epatch "${FILESDIR}/prs1-64fix.patch"
+ sed -i '1i#define OF(x) x' quazip/ioapi.h quazip/unzip.c quazip/unzip.h \
+ quazip/zip.c quazip/zip.h quazip/zlib.h
+ eqmake4 SleepyHeadQT.pro
+}
+
+src_install() {
+ cd "{$S}"
+ dobin SleepyHead || die
+ dodoc README || die
+ dodoc docs/* || die
+}
diff --git a/app-misc/sleepyhead/sleepyhead-0.9.3.ebuild b/app-misc/sleepyhead/sleepyhead-0.9.3.ebuild
new file mode 100644
index 000000000000..6e71eca84d99
--- /dev/null
+++ b/app-misc/sleepyhead/sleepyhead-0.9.3.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+inherit eutils qt4-r2
+DESCRIPTION="Software used to analyze data from CPAP machines"
+HOMEPAGE="https://sourceforge.net/apps/mediawiki/sleepyhead/index.php?title=Main_Page"
+
+# Point to any required sources; these will be automatically downloaded by
+# Portage.
+SRC_URI="https://github.com/rich0/rich0-sleepyhead/tarball/${PV} -> ${P}.tgz"
+LICENSE="GPL-2"
+SLOT="0"
+
+KEYWORDS="~amd64"
+
+IUSE=""
+
+DEPEND="virtual/opengl
+ x11-libs/libX11
+ dev-qt/qtcore:4
+ dev-qt/qtgui:4
+ dev-qt/qtopengl:4
+ dev-qt/qtwebkit:4
+ virtual/glu"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/rich0-rich0-sleepyhead-34e0b92"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+}
+
+src_prepare() {
+# qt4_src_prepare
+ cd "{$S}"
+ epatch "${FILESDIR}/common_gui.patch"
+
+# sed -i '1i#define OF(x) x' quazip/ioapi.h quazip/unzip.c quazip/unzip.h \
+# quazip/zip.c quazip/zip.h quazip/zlib.h
+ eqmake4 SleepyHeadQT.pro
+}
+
+src_install() {
+ cd "{$S}"
+ dobin SleepyHead || die
+ dodoc README || die
+ dodoc docs/* || die
+}
diff --git a/app-misc/sleepyhead/sleepyhead-9999.ebuild b/app-misc/sleepyhead/sleepyhead-9999.ebuild
new file mode 100644
index 000000000000..40f5acb9f657
--- /dev/null
+++ b/app-misc/sleepyhead/sleepyhead-9999.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils git-2 qt4-r2
+DESCRIPTION="Software used to analyze data from CPAP machines"
+HOMEPAGE="https://sourceforge.net/apps/mediawiki/sleepyhead/index.php?title=Main_Page"
+
+# Point to any required sources; these will be automatically downloaded by
+# Portage.
+EGIT_REPO_URI="git://github.com/rich0/rich0-sleepyhead.git"
+EGIT_BRANCH="rich-test"
+
+LICENSE="GPL-2"
+SLOT="0"
+
+KEYWORDS="~amd64"
+
+IUSE="debug"
+
+DEPEND="virtual/opengl:=
+ x11-libs/libX11:=
+ dev-qt/qtcore:4=
+ dev-qt/qtgui:4=
+ dev-qt/qtopengl:4=
+ dev-qt/qtwebkit:4=
+ dev-libs/quazip:="
+RDEPEND="${DEPEND}"
+
+src_unpack() {
+git-2_src_unpack
+}
+
+src_prepare() {
+# qt4_src_prepare
+ cd "{$S}"
+# sed -i '1i#define OF(x) x' quazip/ioapi.h quazip/unzip.c quazip/unzip.h \
+# quazip/zip.c quazip/zip.h quazip/zlib.h
+ eqmake4 SleepyHeadQT.pro
+}
+
+src_install() {
+ cd "{$S}"
+ dobin sleepyhead/SleepyHead || die
+ dodoc README || die
+ dodoc sleepyhead/docs/* || die
+}
diff --git a/app-misc/slmon/Manifest b/app-misc/slmon/Manifest
new file mode 100644
index 000000000000..da3adfdedfab
--- /dev/null
+++ b/app-misc/slmon/Manifest
@@ -0,0 +1 @@
+DIST slmon-0.5.13.tar.gz 103826 SHA256 dc38740e4e0cccb86ccf76aaad5734d7d1e42e144615ee09bc8c8c9290110b28 SHA512 84bf1e3eda9c05c7029630802b6853cba1c1220fd210c2a8f26f6ffafff3aa5a8bf9945b74ca508fbf4a9038b5df26ebed529d6377fab1df4dd778cccfd74f75 WHIRLPOOL 7b4f9b081737355dd7e0aa96da2be8c8bf12fd951487851c432c63131003f7ab1b93a2bad5206d9edf8b1ad7aca553885b04942ea30c570ca68680afb094fc1c
diff --git a/app-misc/slmon/files/slmon-0.5.13-invalid-free.patch b/app-misc/slmon/files/slmon-0.5.13-invalid-free.patch
new file mode 100644
index 000000000000..d7b0e24e07d9
--- /dev/null
+++ b/app-misc/slmon/files/slmon-0.5.13-invalid-free.patch
@@ -0,0 +1,18 @@
+http://bugs.gentoo.org/151293
+
+--- rc.c
++++ rc.c
+@@ -177,9 +177,10 @@
+ char *home, dotrc[1024] = { 0 };
+
+ home = getenv("HOME");
+- strcpy(dotrc, home);
+- strcat(dotrc, "/.slmonrc");
+- free(home);
++ if ( home != NULL ) {
++ strcpy(dotrc, home);
++ strcat(dotrc, "/.slmonrc");
++ }
+
+ if ((f = fopen("/etc/slmonrc", "r")) != NULL) {
+ slmon_conf_parse(f);
diff --git a/app-misc/slmon/files/slmon-0.5.13-make-382.patch b/app-misc/slmon/files/slmon-0.5.13-make-382.patch
new file mode 100644
index 000000000000..bb128f5803e6
--- /dev/null
+++ b/app-misc/slmon/files/slmon-0.5.13-make-382.patch
@@ -0,0 +1,11 @@
+http://bugs.gentoo.org/337403
+
+--- Makefile.am
++++ Makefile.am
+@@ -15,5 +15,5 @@
+ #slmon_LDFLAGS = `libgtop-config --cflags --libs`
+
+ release:
+- $(MAKE) dist distdir=$(PACKAGE)-$(VERSION)
++ $(MAKE) dist distdir=$(PACKAGE)-$(VERSION)
+
diff --git a/app-misc/slmon/metadata.xml b/app-misc/slmon/metadata.xml
new file mode 100644
index 000000000000..076e04f24c49
--- /dev/null
+++ b/app-misc/slmon/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>
+ <email>maintainer-needed@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">slmon</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/slmon/slmon-0.5.13.ebuild b/app-misc/slmon/slmon-0.5.13.ebuild
new file mode 100644
index 000000000000..a667ab05b20e
--- /dev/null
+++ b/app-misc/slmon/slmon-0.5.13.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit autotools eutils
+
+DESCRIPTION="Colored text-based system performance monitor"
+HOMEPAGE="http://slmon.sourceforge.net"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 x86"
+IUSE="debug"
+
+RDEPEND="
+ dev-libs/glib:2
+ sys-libs/slang
+ gnome-base/libgtop
+"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-make-382.patch \
+ "${FILESDIR}"/${P}-invalid-free.patch
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --disable-dependency-tracking \
+ $(use_enable debug)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+ dodoc AUTHORS ChangeLog README slmonrc TODO
+ dohtml *.html
+}
diff --git a/app-misc/smtm/Manifest b/app-misc/smtm/Manifest
new file mode 100644
index 000000000000..35faf45a61b8
--- /dev/null
+++ b/app-misc/smtm/Manifest
@@ -0,0 +1 @@
+DIST smtm_1.6.10.tar.gz 54033 SHA256 bad7fe5ebdf93db5e63855abe05cda739882f2d455aac4d25a5519e87935c825 SHA512 0cacafb8cfe1411b6b5db677bf15ad731b2e2181ee14ff8374e1fa01ad931e8f92efff29774e84950178f20805b18518067643e3c98d7990e1d1b93b7dd347d9 WHIRLPOOL 9c7b5254351adc44f994a07245056b88336b0ce08a4b35c7455794a7ff034314d45d24e6816d737ecf2152321c1ebfd347d6a69ef7604f39ebdb1c8fb6ec4a97
diff --git a/app-misc/smtm/metadata.xml b/app-misc/smtm/metadata.xml
new file mode 100644
index 000000000000..91f4e72fb544
--- /dev/null
+++ b/app-misc/smtm/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>
+ <email>maintainer-needed@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-misc/smtm/smtm-1.6.10-r1.ebuild b/app-misc/smtm/smtm-1.6.10-r1.ebuild
new file mode 100644
index 000000000000..14a034469bf8
--- /dev/null
+++ b/app-misc/smtm/smtm-1.6.10-r1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit perl-module
+
+DESCRIPTION="Stock ticker, profit/loss calculator and chart tool"
+HOMEPAGE="http://eddelbuettel.com/dirk/code/smtm.html"
+SRC_URI="http://eddelbuettel.com/dirk/code/smtm/smtm_${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+# This warrants USE examples
+IUSE=""
+
+DEPEND="dev-perl/perl-tk
+ dev-perl/DateManip
+ dev-perl/HTML-Parser
+ dev-perl/Finance-YahooQuote
+ dev-perl/libwww-perl"
+
+SRC_TEST="do parallel"
+
+src_install() {
+ perl-module_src_install
+ # install examples into own folder for now
+ docompress -x usr/share/doc/${PF}/examples
+ insinto usr/share/doc/${PF}/examples
+ doins examples/*
+}
diff --git a/app-misc/socnetv/Manifest b/app-misc/socnetv/Manifest
new file mode 100644
index 000000000000..9a1c2a8032e8
--- /dev/null
+++ b/app-misc/socnetv/Manifest
@@ -0,0 +1 @@
+DIST SocNetV-0.90.tar.gz 371285 SHA256 044988db0cb068c61f8310fa6e51fe2db098cc9a040694b69cab495066b35744 SHA512 a2f6972486d5437977f76539ae00fa6400d979285926398629209199d2fb8b8758c1fd18dc88d89e19865072b9749d5183151c93b6714f802589b0fe10ea7791 WHIRLPOOL bec2654fb2c2141d55e4dee4ea41880d451de8f30d23292abf064df3fec691a3df15a2dcd76961685b5ed0a39e4b9ca979227e2be3d120cbd8865c24d7c4ea7b
diff --git a/app-misc/socnetv/metadata.xml b/app-misc/socnetv/metadata.xml
new file mode 100644
index 000000000000..0580520cf4be
--- /dev/null
+++ b/app-misc/socnetv/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>
+ <email>hwoarang@gentoo.org</email>
+ <name>Markos Chandras</name>
+ </maintainer>
+ <longdescription lang="en">
+ Social Networks Visualizer (SocNetV) is a flexible and user-friendly tool for
+ the analysis and visualization of Social Networks. It lets you construct networks
+ (mathematical graphs) with a few clicks on a virtual canvas or load networks of
+ various formats (GraphViz, GraphML, Adjacency, Pajek, UCINET, etc) and modify them
+ to suit your needs. SocNetV also offers a built-in web crawler, allowing you to
+ automatically create networks from all links found in a given initial URL.
+ </longdescription>
+ <upstream>
+ <remote-id type="sourceforge">socnetv</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/socnetv/socnetv-0.90.ebuild b/app-misc/socnetv/socnetv-0.90.ebuild
new file mode 100644
index 000000000000..ce6c2dd891a8
--- /dev/null
+++ b/app-misc/socnetv/socnetv-0.90.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+inherit eutils qt4-r2 toolchain-funcs
+
+MY_PN="SocNetV"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Qt Social Network Visualizer"
+HOMEPAGE="http://socnetv.sourceforge.net/"
+SRC_URI="mirror://sourceforge/socnetv/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="doc"
+
+DEPEND="dev-qt/qtgui:4
+ dev-qt/qtwebkit:4"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ qt4-r2_src_prepare
+ sed -i "s/@make/@+make/" Makefile.in \
+ || die "Fix parallel build"
+}
+
+src_compile() {
+ emake CXX="$(tc-getCXX)" CXXFLAGS="${LDFLAGS} ${CXXFLAGS}" \
+ LFLAGS="${LDFLAGS}"
+}
+
+src_install() {
+ dobin socnetv
+ doicon src/images/socnetv.png
+ make_desktop_entry ${PN} SocNetV ${PN} 'Science'
+ insinto /usr/share/${PN}/examples
+ doins nets/*
+ dodoc AUTHORS ChangeLog README TODO
+ if use doc; then
+ dohtml -r "${S}"/manual/*
+ fi
+ doman "${S}/man/${PN}.1.gz"
+}
diff --git a/app-misc/solaar/Manifest b/app-misc/solaar/Manifest
new file mode 100644
index 000000000000..96b231792d2f
--- /dev/null
+++ b/app-misc/solaar/Manifest
@@ -0,0 +1 @@
+DIST solaar-0.9.2.tar.gz 864509 SHA256 b2802812e5aafae4801692ac8cf8a11e9f46f2adc43522d977ef35257e7ea424 SHA512 13f469df753cc8fab55f5259ccc3e62b6e44471d277d240cd56ce0580144d2b1f95d731268176648663dd15e5607bfb512f477362f4f100aa0a653b001dfe04b WHIRLPOOL 3ae66957355c1b40ce43d6033f81912c5cc984e4bebbfc423c42312173ada6b69af7c6e1ceacd0893617b7770878b36ee7e90103db8c5fb6e35efe20c2f8f2e1
diff --git a/app-misc/solaar/metadata.xml b/app-misc/solaar/metadata.xml
new file mode 100644
index 000000000000..6d5e71085eca
--- /dev/null
+++ b/app-misc/solaar/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>
+ <email>maintainer-needed@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">pwr/Solaar</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/solaar/solaar-0.9.2-r3.ebuild b/app-misc/solaar/solaar-0.9.2-r3.ebuild
new file mode 100644
index 000000000000..e7fd78fdf911
--- /dev/null
+++ b/app-misc/solaar/solaar-0.9.2-r3.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python{2_7,3_3,3_4} )
+
+inherit distutils-r1 udev user linux-info gnome2-utils
+
+DESCRIPTION="A Linux device manager for Logitech's Unifying Receiver peripherals"
+HOMEPAGE="http://pwr.github.com/Solaar/"
+SRC_URI="https://github.com/pwr/Solaar/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~arm x86"
+IUSE="doc"
+
+RDEPEND=">=dev-python/pyudev-0.13[${PYTHON_USEDEP}]
+ dev-python/pygobject:3[${PYTHON_USEDEP}]
+ x11-libs/gtk+:3[introspection]"
+
+S=${WORKDIR}/Solaar-${PV}
+
+CONFIG_CHECK="~HID_LOGITECH_DJ ~HIDRAW"
+
+python_prepare_all() {
+ # don't autostart (bug #494608)
+ sed -i '/yield autostart_path/d' setup.py || die
+
+ # grant plugdev group rw access
+ sed -i 's/#MODE=/MODE=/' rules.d/42-logitech-unify-permissions.rules || die
+
+ distutils-r1_python_prepare_all
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+
+ udev_dorules rules.d/*.rules
+
+ dodoc docs/devices.md
+ if use doc; then
+ dodoc -r docs/*
+ fi
+}
+
+pkg_postinst() {
+ enewgroup plugdev
+
+ if [[ -z ${REPLACING_VERSIONS} ]] ; then
+ elog "Users must be in the plugdev group to use this application."
+ fi
+
+ gnome2_icon_cache_update
+}
+
+pkg_preinst() { gnome2_icon_savelist; }
+pkg_postrm() { gnome2_icon_cache_update; }
diff --git a/app-misc/sonypid/Manifest b/app-misc/sonypid/Manifest
new file mode 100644
index 000000000000..f589f230e0e7
--- /dev/null
+++ b/app-misc/sonypid/Manifest
@@ -0,0 +1 @@
+DIST sonypid-1.9.tar.bz2 9710 SHA256 619fa7299cd0ad202985cbb30ff5725b07622f565cd41035d4538ce490099602 SHA512 fcd2b2d2a9db94cd59b8d0f23c41aca2e738e433ecd6818ce84cc1298f5609c84aa16b75e0ce1323e24bf6bb59feccd28c5016549d0690e6dd2f3aae1244e3d0 WHIRLPOOL b5262b702e1b6de5e2846e1e3a99c69512e1b3d66d248f56247e97b01b19c111b181659bafba1e336453fcd6f9421ab030d976223cce9613e0168e6c251e5dbf
diff --git a/app-misc/sonypid/metadata.xml b/app-misc/sonypid/metadata.xml
new file mode 100644
index 000000000000..d9cd2cad66c2
--- /dev/null
+++ b/app-misc/sonypid/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>
+<email>maintainer-needed@gentoo.org</email>
+</maintainer>
+</pkgmetadata>
diff --git a/app-misc/sonypid/sonypid-1.9.ebuild b/app-misc/sonypid/sonypid-1.9.ebuild
new file mode 100644
index 000000000000..f8a0fd3b2758
--- /dev/null
+++ b/app-misc/sonypid/sonypid-1.9.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit toolchain-funcs
+
+DESCRIPTION="tool to use the Sony Vaios jog-dial as a mouse-wheel"
+HOMEPAGE="http://www.popies.net/sonypi/"
+SRC_URI="http://www.popies.net/sonypi/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 x86"
+IUSE=""
+
+RDEPEND="x11-libs/libXtst"
+DEPEND="${RDEPEND}
+ x11-proto/inputproto"
+
+src_compile() {
+ emake CFLAGS="${CFLAGS}" CC="$(tc-getCC)" LDFLAGS="${LDFLAGS}"
+}
+
+src_install() {
+ dobin sonypid
+ dodoc AUTHORS CHANGES
+}
diff --git a/app-misc/spacenavd/Manifest b/app-misc/spacenavd/Manifest
new file mode 100644
index 000000000000..f3abd1d0ac2a
--- /dev/null
+++ b/app-misc/spacenavd/Manifest
@@ -0,0 +1 @@
+DIST spacenavd-0.5.tar.gz 41746 SHA256 0eecc5b5ad47ee6376d1521f2bc7c8f8fc02904cf3fede3f77e59f4795b592e3 SHA512 908f598e4ba5febbc1191cc32cd444817acd40c22e79b1f139c50787e1e25d4cd8328dc3fd6d9dde09bb80232b52f0e75ae429fb3345eb51fbe5a47577b038e2 WHIRLPOOL e2cf70c7e9cc4b8e32b15ab79dae565c8c2a4bc32a6485a0a1857ea4d4667859ac0bb82e32cd54b722d51c34b9ea094fe8bcb1459a9f60077bde8a01207ab910
diff --git a/app-misc/spacenavd/files/99-space-navigator.rules b/app-misc/spacenavd/files/99-space-navigator.rules
new file mode 100644
index 000000000000..a5e8f0b65305
--- /dev/null
+++ b/app-misc/spacenavd/files/99-space-navigator.rules
@@ -0,0 +1,6 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2 or later
+# $Id$
+
+# Start daemon on insertion of a SpaceNavigator device
+SUBSYSTEM=="usb", ACTION=="add", ATTRS{manufacturer}=="3Dconnexion", ATTRS{product}=="Space Navigator", RUN+="/etc/init.d/spacenavd --quiet start"
diff --git a/app-misc/spacenavd/files/99-space-navigator.rules-r1 b/app-misc/spacenavd/files/99-space-navigator.rules-r1
new file mode 100644
index 000000000000..8135060fbf23
--- /dev/null
+++ b/app-misc/spacenavd/files/99-space-navigator.rules-r1
@@ -0,0 +1,7 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2 or later
+# $Id$
+
+# Start daemon on insertion of a SpaceNavigator device
+SUBSYSTEM=="usb", ACTION=="add", ATTRS{manufacturer}=="3Dconnexion", ATTRS{product}=="Space Navigator", RUN+="/etc/init.d/spacenavd --quiet start"
+SUBSYSTEM=="usb", ACTION=="add", ATTRS{manufacturer}=="3Dconnexion", ATTRS{product}=="SpaceNavigator", TAG+="systemd", ENV{SYSTEMD_WANTS}+="spacenavd.service"
diff --git a/app-misc/spacenavd/files/spacenavd-0.5-custom-flags.patch b/app-misc/spacenavd/files/spacenavd-0.5-custom-flags.patch
new file mode 100644
index 000000000000..3b834a43952d
--- /dev/null
+++ b/app-misc/spacenavd/files/spacenavd-0.5-custom-flags.patch
@@ -0,0 +1,67 @@
+diff -Npur spacenavd-0.5.orig/Makefile.in spacenavd-0.5/Makefile.in
+--- spacenavd-0.5.orig/Makefile.in 2012-01-31 22:22:20.460368687 +0100
++++ spacenavd-0.5/Makefile.in 2012-01-31 22:23:18.170367675 +0100
+@@ -6,8 +6,8 @@ ctl = spnavd_ctl
+
+ CC = gcc
+ INSTALL = install
+-CFLAGS = -pedantic -Wall $(dbg) $(opt) -fno-strict-aliasing -I$(srcdir)/src
+-LDFLAGS = $(xlib)
++CFLAGS = $(opt) -fno-strict-aliasing -I$(srcdir)/src
++LDFLAGS = $(ldopt) $(xlib)
+
+ $(bin): $(obj)
+ $(CC) -o $@ $(obj) $(LDFLAGS)
+diff -Npur spacenavd-0.5.orig/configure spacenavd-0.5/configure
+--- spacenavd-0.5.orig/configure 2012-01-31 22:22:20.460368687 +0100
++++ spacenavd-0.5/configure 2012-01-31 22:22:49.257368187 +0100
+@@ -28,6 +28,7 @@ test_kver() {
+
+ PREFIX=/usr/local
+ OPT=yes
++LDOPT=yes
+ DBG=yes
+ X11=yes
+ HOTPLUG=yes
+@@ -70,6 +71,11 @@ for arg; do
+ --disable-opt)
+ OPT=no;;
+
++ --enable-ldopt)
++ LDOPT=yes;;
++ --disable-ldopt)
++ LDOPT=no;;
++
+ --enable-debug)
+ DBG=yes;;
+ --disable-debug)
+@@ -95,6 +101,8 @@ for arg; do
+ echo ' --disable-hotplug: disable hotplug, fallback to polling for the device'
+ echo ' --enable-opt: enable speed optimizations (default)'
+ echo ' --disable-opt: disable speed optimizations'
++ echo ' --enable-ldopt: enable link optimizations (default)'
++ echo ' --disable-ldopt: disable link optimizations'
+ echo ' --enable-debug: include debugging symbols (default)'
+ echo ' --disable-debug: do not include debugging symbols'
+ echo 'all invalid options are silently ignored'
+@@ -105,6 +113,7 @@ done
+
+ echo " prefix: $PREFIX"
+ echo " optimize for speed: $OPT"
++echo " optimize link: $LDOPT"
+ echo " include debugging symbols: $DBG"
+ echo " x11 communication method: $X11"
+ echo " use hotplug: $HOTPLUG"
+@@ -128,7 +137,11 @@ if [ "$DBG" = 'yes' ]; then
+ fi
+
+ if [ "$OPT" = 'yes' ]; then
+- echo 'opt = -O3' >>Makefile
++ echo "opt = ${CFLAGS:--O3}" >>Makefile
++fi
++
++if [ "$LDOPT" = 'yes' ]; then
++ echo "ldopt = ${LDFLAGS}" >>Makefile
+ fi
+
+ if [ "$X11" = 'yes' ]; then
diff --git a/app-misc/spacenavd/files/spacenavd-0.5-destdir.patch b/app-misc/spacenavd/files/spacenavd-0.5-destdir.patch
new file mode 100644
index 000000000000..5b2372242e14
--- /dev/null
+++ b/app-misc/spacenavd/files/spacenavd-0.5-destdir.patch
@@ -0,0 +1,16 @@
+diff -Npur spacenavd-0.5.orig/Makefile.in spacenavd-0.5/Makefile.in
+--- spacenavd-0.5.orig/Makefile.in 2011-11-16 21:43:53.210859753 +0100
++++ spacenavd-0.5/Makefile.in 2011-11-16 21:45:36.386857932 +0100
+@@ -24,9 +24,9 @@ clean:
+
+ .PHONY: install
+ install: $(bin)
+- $(INSTALL) -d $(PREFIX)/bin
+- $(INSTALL) -m 755 $(bin) $(PREFIX)/bin/$(bin)
+- $(INSTALL) -m 755 $(srcdir)/$(ctl) $(PREFIX)/bin/$(ctl)
++ $(INSTALL) -d $(DESTDIR)$(PREFIX)/bin
++ $(INSTALL) -m 755 $(bin) $(DESTDIR)$(PREFIX)/bin/$(bin)
++ $(INSTALL) -m 755 $(srcdir)/$(ctl) $(DESTDIR)$(PREFIX)/bin/$(ctl)
+ cd $(srcdir) && ./setup_init --no-install
+
+ # [ -d /etc/hal/fdi/policy ] && \
diff --git a/app-misc/spacenavd/files/spacenavd-0.5-no-x11.patch b/app-misc/spacenavd/files/spacenavd-0.5-no-x11.patch
new file mode 100644
index 000000000000..bbdd7d6196ec
--- /dev/null
+++ b/app-misc/spacenavd/files/spacenavd-0.5-no-x11.patch
@@ -0,0 +1,13 @@
+diff -Npur spacenavd-0.5.old/src/event.c spacenavd-0.5/src/event.c
+--- src/event.c 2012-03-21 22:15:37.093401293 +0100
++++ src/event.c 2012-03-21 22:14:10.734401301 +0100
+@@ -20,7 +20,9 @@ along with this program. If not, see <h
+ #include <stdlib.h>
+ #include "event.h"
+ #include "client.h"
++#ifdef USE_X11
+ #include "proto_x11.h"
++#endif
+ #include "proto_unix.h"
+ #include "spnavd.h"
+
diff --git a/app-misc/spacenavd/files/spacenavd.service b/app-misc/spacenavd/files/spacenavd.service
new file mode 100644
index 000000000000..b9b14d80086a
--- /dev/null
+++ b/app-misc/spacenavd/files/spacenavd.service
@@ -0,0 +1,8 @@
+[Unit]
+Description=3Dconnexion Input Devices Userspace Driver
+
+[Service]
+ExecStart=/usr/bin/spacenavd -d
+
+[Install]
+WantedBy=multi-user.target
diff --git a/app-misc/spacenavd/files/spnavd b/app-misc/spacenavd/files/spnavd
new file mode 100644
index 000000000000..383a2adc390f
--- /dev/null
+++ b/app-misc/spacenavd/files/spnavd
@@ -0,0 +1,27 @@
+#!/sbin/runscript
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License, v2 or later
+
+depend() {
+ need localmount
+ after bootmisc
+}
+
+start() {
+ ebegin "Starting Spacenav system daemon"
+
+ start-stop-daemon --start --pidfile /var/run/spnavd.pid --exec /usr/bin/spacenavd
+ eend $?
+}
+
+stop() {
+ local retval
+
+ ebegin "Stopping Spacenav system daemon"
+
+ start-stop-daemon --stop --pidfile /var/run/spnavd.pid
+ retval=$?
+
+ eend ${retval}
+ return ${retval}
+}
diff --git a/app-misc/spacenavd/metadata.xml b/app-misc/spacenavd/metadata.xml
new file mode 100644
index 000000000000..7427fff80184
--- /dev/null
+++ b/app-misc/spacenavd/metadata.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>proxy-maintainers</herd>
+ <maintainer>
+ <email>anthoine.bourgeois@gmail.com</email>
+ <name>Anthoine Bourgeois</name>
+ </maintainer>
+ <maintainer>
+ <email>sping@gentoo.org</email>
+ <name>Sebastian Pipping</name>
+ </maintainer>
+ <longdescription>
+ The spacenavd daemon can be used directly as a drop-in replacement
+ to the 3DxWare daemon. It can communicate with the official magellan
+ SDK, and thus any program compiled with it can work with spacenavd
+ transparently without any change or need of recompilation.
+ Also, spacenavd provides an alternative communication protocol, for
+ programs that use libspnav, that doesn't require an X server, as the
+ original protocol does.
+ </longdescription>
+ <upstream>
+ <remote-id type="sourceforge">spacenav</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/spacenavd/spacenavd-0.5-r2.ebuild b/app-misc/spacenavd/spacenavd-0.5-r2.ebuild
new file mode 100644
index 000000000000..3a87bac9d9c4
--- /dev/null
+++ b/app-misc/spacenavd/spacenavd-0.5-r2.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+inherit eutils linux-info toolchain-funcs
+
+MY_PN='spacenav'
+DESCRIPTION="The spacenavd daemon provides free alternative to the 3dxserv daemon"
+HOMEPAGE="http://spacenav.sourceforge.net/"
+SRC_URI="mirror://sourceforge/project/${MY_PN}/${MY_PN}%20daemon/${PN}%20${PV}/${P}.tar.gz"
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 ppc64 x86"
+IUSE="X"
+
+RDEPEND="X? ( x11-apps/xdpyinfo )"
+DEPEND="${RDEPEND}"
+
+pkg_setup() {
+ CONFIG_CHECK="~INPUT_EVDEV"
+ ERROR_CFG="Your kernel needs INPUT_EVDEV for the spacenavd to work properly"
+ check_extra_config
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-destdir.patch
+ epatch "${FILESDIR}"/${P}-custom-flags.patch
+ epatch "${FILESDIR}"/${P}-no-x11.patch
+}
+
+src_configure() {
+ econf \
+ --enable-opt --enable-ldopt \
+ $(use_enable X x11)
+}
+
+src_compile() {
+ emake CC=$(tc-getCC)
+}
+
+src_install() {
+ # Config file
+ insinto /etc
+ newins "${S}/doc/example-spnavrc" spnavrc.sample || die
+
+ # Init script
+ newinitd "${FILESDIR}/spnavd" spacenavd || die
+
+ # Install udev rule but leave activiation to the user
+ # since Xorg may be configured to grab the device already
+ insinto /etc/udev/rules.d
+ newins "${FILESDIR}"/99-space-navigator.rules 99-space-navigator.rules.ignored || die
+
+ # Daemon
+ dobin "${S}/spacenavd"
+ use X && dobin "${S}/spnavd_ctl"
+}
+
+pkg_postinst() {
+ elog "To start the Spacenav daemon system-wide by default"
+ elog "you should add it to the default runlevel :"
+ elog "\`rc-update add spacenavd default\`"
+ elog
+ if use X; then
+ elog "To start generating Spacenav X events by default"
+ elog "you should add this command in your user startup"
+ elog "scripts such as .gnomerc or .xinitrc :"
+ elog "\`spnavd_ctl x11 start\`"
+ elog
+ fi
+ elog "If you want to auto-start the daemon when you plug in"
+ elog "a SpaceNavigator device, activate the related udev rule :"
+ elog "\`sudo ln -s 99-space-navigator.rules.ignored /etc/udev/rules.d/99-space-navigator.rules\`"
+ elog
+ ewarn "You must restart spnavd \`/etc/init.d/spacenavd restart\` to run"
+ ewarn "the new version of the daemon."
+}
diff --git a/app-misc/spacenavd/spacenavd-0.5-r4.ebuild b/app-misc/spacenavd/spacenavd-0.5-r4.ebuild
new file mode 100644
index 000000000000..80b98d24127f
--- /dev/null
+++ b/app-misc/spacenavd/spacenavd-0.5-r4.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+inherit eutils linux-info toolchain-funcs udev
+
+MY_PN='spacenav'
+DESCRIPTION="The spacenavd daemon provides free alternative to the 3dxserv daemon"
+HOMEPAGE="http://spacenav.sourceforge.net/"
+SRC_URI="mirror://sourceforge/project/${MY_PN}/${MY_PN}%20daemon/${PN}%20${PV}/${P}.tar.gz"
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 ppc64 x86"
+IUSE="X"
+
+RDEPEND="X? ( x11-apps/xdpyinfo )"
+DEPEND="${RDEPEND}"
+
+pkg_setup() {
+ CONFIG_CHECK="~INPUT_EVDEV"
+ ERROR_CFG="Your kernel needs INPUT_EVDEV for the spacenavd to work properly"
+ check_extra_config
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-destdir.patch
+ epatch "${FILESDIR}"/${P}-custom-flags.patch
+ epatch "${FILESDIR}"/${P}-no-x11.patch
+}
+
+src_configure() {
+ econf \
+ --enable-opt --enable-ldopt \
+ $(use_enable X x11)
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)"
+}
+
+src_install() {
+ # Config file
+ insinto /etc
+ newins "${S}/doc/example-spnavrc" spnavrc.sample
+
+ # Init script
+ newinitd "${FILESDIR}/spnavd" spacenavd
+
+ # Install udev rule but leave activiation to the user
+ # since Xorg may be configured to grab the device already
+ insinto "$(get_udevdir)"
+ newins "${FILESDIR}"/99-space-navigator.rules 99-space-navigator.rules.ignored
+
+ # Daemon
+ dobin "${S}/spacenavd"
+ use X && dobin "${S}/spnavd_ctl"
+}
+
+pkg_postinst() {
+ elog "To start the Spacenav daemon system-wide by default"
+ elog "you should add it to the default runlevel :"
+ elog "\`rc-update add spacenavd default\`"
+ elog
+ if use X; then
+ elog "To start generating Spacenav X events by default"
+ elog "you should add this command in your user startup"
+ elog "scripts such as .gnomerc or .xinitrc :"
+ elog "\`spnavd_ctl x11 start\`"
+ elog
+ fi
+ elog
+ elog "If you want to auto-start the daemon when you plug in"
+ elog "a SpaceNavigator device, activate the related udev rule :"
+ elog "\`sudo ln -s $(get_udevdir)/rules.d/99-space-navigator.rules.ignored /etc/udev/rules.d\`"
+ ewarn "You must restart spnavd \`/etc/init.d/spacenavd restart\` to run"
+ ewarn "the new version of the daemon."
+}
diff --git a/app-misc/spacenavd/spacenavd-0.5-r5.ebuild b/app-misc/spacenavd/spacenavd-0.5-r5.ebuild
new file mode 100644
index 000000000000..7cbf4815a2af
--- /dev/null
+++ b/app-misc/spacenavd/spacenavd-0.5-r5.ebuild
@@ -0,0 +1,82 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+inherit eutils linux-info systemd toolchain-funcs udev
+
+MY_PN='spacenav'
+DESCRIPTION="The spacenavd daemon provides free alternative to the 3dxserv daemon"
+HOMEPAGE="http://spacenav.sourceforge.net/"
+SRC_URI="mirror://sourceforge/project/${MY_PN}/${MY_PN}%20daemon/${PN}%20${PV}/${P}.tar.gz"
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 ppc64 x86"
+IUSE="X"
+
+RDEPEND="X? ( x11-apps/xdpyinfo )"
+DEPEND="${RDEPEND}"
+
+pkg_setup() {
+ CONFIG_CHECK="~INPUT_EVDEV"
+ ERROR_CFG="Your kernel needs INPUT_EVDEV for the spacenavd to work properly"
+ check_extra_config
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-destdir.patch
+ epatch "${FILESDIR}"/${P}-custom-flags.patch
+ epatch "${FILESDIR}"/${P}-no-x11.patch
+}
+
+src_configure() {
+ econf \
+ --enable-opt --enable-ldopt \
+ $(use_enable X x11)
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)"
+}
+
+src_install() {
+ # Config file
+ insinto /etc
+ newins "${S}/doc/example-spnavrc" spnavrc.sample
+
+ # Init script
+ newinitd "${FILESDIR}/spnavd" spacenavd
+ systemd_dounit "${FILESDIR}/spacenavd.service"
+
+ # Install udev rule but leave activiation to the user
+ # since Xorg may be configured to grab the device already
+ insinto "$(get_udevdir)"
+ newins "${FILESDIR}"/99-space-navigator.rules-r1 99-space-navigator.rules.ignored
+
+ # Daemon
+ dobin "${S}/spacenavd"
+ use X && dobin "${S}/spnavd_ctl"
+}
+
+pkg_postinst() {
+ elog "To start the Spacenav daemon system-wide by default"
+ elog "you should add it to the default runlevel :"
+ elog "\`rc-update add spacenavd default\` (for openRC)"
+ elog "\`systemctl enable spacenavd\` (for systemd)"
+ elog
+ if use X; then
+ elog "To start generating Spacenav X events by default"
+ elog "you should add this command in your user startup"
+ elog "scripts such as .gnomerc or .xinitrc :"
+ elog "\`spnavd_ctl x11 start\`"
+ elog
+ fi
+ elog
+ elog "If you want to auto-start the daemon when you plug in"
+ elog "a SpaceNavigator device, activate the related udev rule :"
+ elog "\`sudo ln -s $(get_udevdir)/rules.d/99-space-navigator.rules.ignored /etc/udev/rules.d\`"
+ ewarn "You must restart spnavd \`/etc/init.d/spacenavd restart\` to run"
+ ewarn "the new version of the daemon or \`systemctl restart spacenavd\`"
+ ewarn "if using systemd."
+}
diff --git a/app-misc/specto/Manifest b/app-misc/specto/Manifest
new file mode 100644
index 000000000000..c5454e64d670
--- /dev/null
+++ b/app-misc/specto/Manifest
@@ -0,0 +1 @@
+DIST specto-0.4.1.tar.gz 316337 SHA256 aa2415ea35f00a0bb6fc20dda56ef7c840c8971e325f87eae80f6f9cd40d8ecc SHA512 0952b3411618188eec1f4e73895d4ce4a7696617d4ff2621552a5f06248853d0feccb6887a41af2ac4fbc928d366e89bcf87425a6786dfc91254b9c6f766f197 WHIRLPOOL 7be6a5911db5e6cabe66994f9c58bd1ab17bcb1925d08c5fbea54cb44cec3a01591d1e66bf7d690ca3dceb3b1c598b0c02b03c9eef7419ac663c8c09a5c8961c
diff --git a/app-misc/specto/files/specto-0.4.1-icon-theme.patch b/app-misc/specto/files/specto-0.4.1-icon-theme.patch
new file mode 100644
index 000000000000..60870deba203
--- /dev/null
+++ b/app-misc/specto/files/specto-0.4.1-icon-theme.patch
@@ -0,0 +1,30 @@
+Replace some GNOME icons with their FreeDesktop equivalents
+so that it works with oxygen as a theme.
+
+--- specto-0.4.1/spectlib/notifier.py
++++ specto-0.4.1/spectlib/notifier.py
+@@ -213,11 +213,11 @@
+ """ show the right icon for the status from the watch. """
+ watch = self.specto.watch_db[id]
+ statusbar = self.builder.get_object("statusbar1")
+- icon = self.get_icon("error", 50, False)
++ icon = self.get_icon("dialog-error", 50, False)
+
+ try:
+ if status == "checking":
+- icon = self.get_icon("reload", 0, False)
++ icon = self.get_icon("view-refresh", 0, False)
+ statusbar.push(0, (datetime.today().strftime("%H:%M") + " - " + _('The watch "%s" is checking.') % watch.name))
+
+ elif status == "idle":
+@@ -242,8 +242,8 @@
+
+ elif status == "error":
+ statusbar.push(0, (datetime.today().strftime("%H:%M") + " - " + _('The watch "%s" has a problem.') % watch.name))
+- balloon_icon = self.get_icon("error", 0, True)
+- icon = self.get_icon("error", 50, False)
++ balloon_icon = self.get_icon("dialog-error", 0, True)
++ icon = self.get_icon("dialog-error", 50, False)
+ if self.specto.specto_gconf.get_entry("pop_toast") == True:
+ body = watch.escape(watch.error_message)
+ self.balloon.show_toast(body, balloon_icon, urgency="critical", summary=(_("%s encountered a problem") % watch.name))
diff --git a/app-misc/specto/metadata.xml b/app-misc/specto/metadata.xml
new file mode 100644
index 000000000000..a039e79a8927
--- /dev/null
+++ b/app-misc/specto/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>
+ <email>xmw@gentoo.org</email>
+ <name>Michael Weber</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="google-code">specto</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/specto/specto-0.4.1-r1.ebuild b/app-misc/specto/specto-0.4.1-r1.ebuild
new file mode 100644
index 000000000000..8aac48935a51
--- /dev/null
+++ b/app-misc/specto/specto-0.4.1-r1.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1 eutils
+
+DESCRIPTION="watch configurable events and trigger notifications"
+HOMEPAGE="http://specto.sourceforge.net/"
+SRC_URI="http://${PN}.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="linguas_cs linguas_de linguas_es linguas_fr linguas_it
+ linguas_pt_BR linguas_ro linguas_sv linguas_tr"
+
+RDEPEND="dev-python/gconf-python[${PYTHON_USEDEP}]
+ dev-python/dbus-python[${PYTHON_USEDEP}]
+ dev-python/libgnome-python[${PYTHON_USEDEP}]
+ dev-python/notify-python[${PYTHON_USEDEP}]
+ >=dev-python/pygtk-2.10[${PYTHON_USEDEP}]"
+DEPEND=""
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-icon-theme.patch
+
+ sed -e "s:share/doc/specto:share/doc/${PF}:" \
+ -i setup.py spectlib/util.py || die
+
+ if [ -n "${LINGUAS}" ] ; then
+ sed -e "/^i18n_languages = /s: = .*: = \"${LINGUAS}\":" \
+ -i setup.py || die
+ fi
+
+ distutils-r1_src_prepare
+}
diff --git a/app-misc/sphinx/Manifest b/app-misc/sphinx/Manifest
new file mode 100644
index 000000000000..fe330f828260
--- /dev/null
+++ b/app-misc/sphinx/Manifest
@@ -0,0 +1,5 @@
+DIST libstemmer_c-20091122.tgz 129207 SHA256 ad4e152379214480d599c86dd19421a36fce78cedd20fc324520c5bba0a512e7 SHA512 d1b2203dcc3d0f421526d3ec2f7e04889f93221222efe50501b4a1c7e74dfc51905141d4ada5a76feab5cec8dbc64f55dd55b53f6e89f658c67e72dc6667091d WHIRLPOOL 03baf5de80854a2726990d1f79e17a46342b0d8431a564805d78878bba1eba0c1aba6f4f53c64eb1a1946b50053632c32c9106305f0a53623068531f2b67b5c4
+DIST sphinx-0.9.9.tar.gz 1218359 SHA256 bf8f55ffc095ff6b628f0cbc7eb54761811140140679a1c869cc1b17c42803e4 SHA512 bf1f6b3429beac9336ed975137b9cc582541357df487ae97f407589458fa4cc4f3a797c868fd505c6b4e97a73b30a0f7f9c7ab6b3d8685ba173fde6d1d5383c2 WHIRLPOOL 70a7db079e35671c17f1c29d71569c4b643462475b10dbed6342a74ed20304ea740e442fb97af874fb3acc3cb9eb8a07ff43aa90dc90c9cf477fb1d651ced021
+DIST sphinx-2.0.10-release.tar.gz 2016687 SHA256 efc9e90d1edec4f159846c8d4ca8839e7dcf9ef88c117d0d369aaead75809f0a SHA512 d22a0ce261cd6decda2e9e91fc9806699c818bb45a9c9c5e11a0944a698d47b5862c577eb55e7b57dd208db982e7f8bfc7163af37aaedc1c537841aff1409952 WHIRLPOOL 46e17cc73225692e8ab73438547863ba78ef7c1be306bd46e393723220007b95d9a0ca62cbd8175423b62bf4599a68c4a4831ac6472d02249104ecdf0e3892ac
+DIST sphinx-2.1.8-release.tar.gz 2442119 SHA256 8aebff8b00ec07b71790a67781c80a9a9b3ee28e2a35b226663aaf37cb78b6db SHA512 e53d62a694c1f89a9614d15a7820f245cdad03d6bc4d512dd3dd743908f11c582f45d5cc0a416d0d05b4cbfaffc491fe40e704c03149774ef498b54519d288cf WHIRLPOOL e4bb44920ed536bf6f8dd52fa1c373e9c88fb07a98a7458bd6f39feee2f10323bae13431d26d6340537cc3d2bfde9b4af188cac89b8bf1694aeb3d0842ad71e7
+DIST sphinx-2.1.9-release.tar.gz 2443797 SHA256 6289aa0ac3e1456a0c9181ce6bce2287778b5a163f685a1376e181fc87eb7c03 SHA512 7f4538011db5d68bd00c00978d476f780fc2d355113bd2819996bacbaef90b0de5b14c946a9aad83157b818d9b6b01ee0a26bc72862cfd151067ad9967c18f56 WHIRLPOOL fd9e6d31c8b9d88b8de7462ccd947aeb85d97ee4c23c64788653f732a5e47dad134c0f8cedc3b0ccc2d744eb0c4aaeb2d32fbdb02bae50be0d4ed8841a0683a1
diff --git a/app-misc/sphinx/files/searchd.rc b/app-misc/sphinx/files/searchd.rc
new file mode 100644
index 000000000000..3719850bb006
--- /dev/null
+++ b/app-misc/sphinx/files/searchd.rc
@@ -0,0 +1,32 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+depend() {
+ need net
+ use logger
+}
+
+checkconfig() {
+ if [ ! -f /etc/sphinx/sphinx.conf ] ; then
+ eerror "Please create /etc/sphinx/sphinx.conf"
+ eerror "Sample conf: /etc/sphinx/sphinx.conf.dist"
+ return 1
+ fi
+ return 0
+}
+
+start() {
+ checkconfig || return $?
+
+ ebegin "Starting sphinx searchd"
+ start-stop-daemon --start --exec /usr/bin/searchd
+ eend $? "Failed to start sphinx searchd"
+}
+
+stop() {
+ ebegin "Stopping sphinx searchd"
+ start-stop-daemon --stop --exec /usr/bin/searchd
+ eend $? "Failed to stop sphinx searchd"
+}
diff --git a/app-misc/sphinx/files/sphinx-1.10_beta-darwin8.patch b/app-misc/sphinx/files/sphinx-1.10_beta-darwin8.patch
new file mode 100644
index 000000000000..73ddd556d76d
--- /dev/null
+++ b/app-misc/sphinx/files/sphinx-1.10_beta-darwin8.patch
@@ -0,0 +1,23 @@
+Darwin8 has no backtrace functionalities yet
+
+--- src/searchd.cpp
++++ src/searchd.cpp
+@@ -1291,6 +1291,10 @@
+ __asm __volatile__ ( "movq %%rbp,%0":"=r"(pFramePointer):"r"(pFramePointer) );
+ #endif
+
++#ifndef SIGRETURN_FRAME_OFFSET
++ sphLogFatal ( "Cannot get stack frame pointer on this architecture" );
++#else
++
+ if ( !pFramePointer )
+ {
+ sphLogFatal ( "Frame pointer is null. Unable to backtrace the stack. Did you build the searchd with -fomit-frame-pointer?" );
+@@ -1329,6 +1333,7 @@
+ if ( !bOk )
+ sphWarning ( "Something wrong in frame pointers. BackTrace failed (failed FP was %p)", pNewFP );
+ else
++#endif
+ #endif // !HAVE_BACKTRACE
+ sphInfo ( "Stack trace seems to be succesfull. Now you have to resolve the numbers above and attach resolved values to the bugreport. See the section about resolving in the documentation" );
+
diff --git a/app-misc/sphinx/files/sphinx-1.10_beta-libsphinxclient-darwin.patch b/app-misc/sphinx/files/sphinx-1.10_beta-libsphinxclient-darwin.patch
new file mode 100644
index 000000000000..594b7351e121
--- /dev/null
+++ b/app-misc/sphinx/files/sphinx-1.10_beta-libsphinxclient-darwin.patch
@@ -0,0 +1,22 @@
+On Darwin, the linker doesn't like it when vsnprintf is prefixed by an
+underscore. This obviously is an error, since it's only necessary for
+Windows. Add an extra guard, such that vsnprintf is left alone.
+
+--- api/libsphinxclient/sphinxclient.c
++++ api/libsphinxclient/sphinxclient.c
+@@ -13,6 +13,7 @@
+ // did not, you can find it at http://www.gnu.org/
+ //
+
++#if defined(_MSC_VER)
+ #if _MSC_VER>=1400
+ // VS 2005 and above
+ #define _CRT_SECURE_NO_DEPRECATE 1
+@@ -21,6 +22,7 @@
+ // VS 2003 and below
+ #define vsnprintf _vsnprintf
+ #endif
++#endif
+
+ #include <stdlib.h>
+ #include <stdarg.h>
diff --git a/app-misc/sphinx/files/sphinx-1.10_beta-nosigpipe.patch b/app-misc/sphinx/files/sphinx-1.10_beta-nosigpipe.patch
new file mode 100644
index 000000000000..a713a891f21d
--- /dev/null
+++ b/app-misc/sphinx/files/sphinx-1.10_beta-nosigpipe.patch
@@ -0,0 +1,26 @@
+Part of upstream fix:
+http://code.google.com/p/sphinxsearch/source/detail?r=2423
+
+--- api/libsphinxclient/sphinxclient.c.~1~ 2010-07-15 13:05:40.000000000 +0200
++++ api/libsphinxclient/sphinxclient.c 2010-11-09 19:55:28.964939046 +0100
+@@ -1268,7 +1268,11 @@
+ static sphinx_bool net_write ( int fd, const char * bytes, int len, sphinx_client * client )
+ {
+ int res;
++#if defined(_WIN32) || defined(SO_NOSIGPIPE)
+ res = send ( fd, bytes, len, 0 );
++#else
++ res = send ( fd, bytes, len, MSG_NOSIGNAL );
++#endif
+
+ if ( res<0 )
+ {
+@@ -1354,7 +1358,7 @@
+ }
+
+ optval = 1;
+-#ifndef _WIN32
++#if defined(SO_NOSIGPIPE)
+ if ( setsockopt ( sock, SOL_SOCKET, SO_NOSIGPIPE, (void *)&optval, (socklen_t)sizeof(optval) ) < 0 )
+ {
+ set_error ( client, "setsockopt() failed: %s", sock_error() );
diff --git a/app-misc/sphinx/files/sphinx-2.0.1_beta-darwin8.patch b/app-misc/sphinx/files/sphinx-2.0.1_beta-darwin8.patch
new file mode 100644
index 000000000000..e0dcd54097fd
--- /dev/null
+++ b/app-misc/sphinx/files/sphinx-2.0.1_beta-darwin8.patch
@@ -0,0 +1,22 @@
+Darwin8 has no backtrace functionalities yet
+
+--- src/sphinxutils.cpp
++++ src/sphinxutils.cpp
+@@ -1364,6 +1364,9 @@
+ }
+ sphSafeInfo ( iFD, "Stack bottom = 0x%p, thread stack size = 0x%x", pMyStack, iStackSize );
+
++#ifndef SIGRETURN_FRAME_OFFSET
++ sphLogFatal ( "Cannot get stack frame pointer on this architecture" );
++#else
+ while ( pMyStack && !bSafe )
+ {
+ sphSafeInfo ( iFD, "begin of manual backtrace:" );
+@@ -1421,6 +1424,7 @@
+
+ break;
+ }
++#endif
+
+ #if HAVE_BACKTRACE
+ sphSafeInfo ( iFD, "begin of system backtrace:" );
diff --git a/app-misc/sphinx/files/sphinx-2.0.1_beta-solaris.patch b/app-misc/sphinx/files/sphinx-2.0.1_beta-solaris.patch
new file mode 100644
index 000000000000..6cc69d2ccd96
--- /dev/null
+++ b/app-misc/sphinx/files/sphinx-2.0.1_beta-solaris.patch
@@ -0,0 +1,35 @@
+link against required libraries
+include sys/fcntl.h for F_[SG]ET constants
+don't try to use an undefined constant
+
+--- api/libsphinxclient/configure.in
++++ api/libsphinxclient/configure.in
+@@ -33,6 +33,9 @@
+ dnl Checks for header files.
+ AC_CHECK_HEADERS(string.h strings.h unistd.h stdint.h)
+
++AC_CHECK_LIB([nsl], gethostbyname)
++AC_CHECK_LIB([socket], connect)
++
+ DEFAULT_INSTALL_PREFIX="/usr/local"
+
+ AC_ARG_ENABLE(debug,
+--- api/libsphinxclient/sphinxclient.c
++++ api/libsphinxclient/sphinxclient.c
+@@ -57,6 +57,7 @@
+ #include <netdb.h>
+ #include <errno.h>
+ #include <sys/un.h>
++ #include <sys/fcntl.h>
+ #endif
+
+ //////////////////////////////////////////////////////////////////////////
+@@ -1280,7 +1281,7 @@
+ static sphinx_bool net_write ( int fd, const char * bytes, int len, sphinx_client * client )
+ {
+ int res;
+-#if defined(_WIN32) || defined(SO_NOSIGPIPE)
++#if defined(_WIN32) || defined(SO_NOSIGPIPE) || !defined(MSG_NOSIGNAL)
+ res = send ( fd, bytes, len, 0 );
+ #else
+ res = send ( fd, bytes, len, MSG_NOSIGNAL );
diff --git a/app-misc/sphinx/files/sphinx-2.0.4_gcc-4.7.patch b/app-misc/sphinx/files/sphinx-2.0.4_gcc-4.7.patch
new file mode 100644
index 000000000000..180db1b57c45
--- /dev/null
+++ b/app-misc/sphinx/files/sphinx-2.0.4_gcc-4.7.patch
@@ -0,0 +1,29 @@
+--- a/src/sphinxexpr.cpp
++++ b/src/sphinxexpr.cpp
+@@ -1796,7 +1796,7 @@ public:
+ /// evaluate arg, return interval id
+ virtual int IntEval ( const CSphMatch & tMatch ) const
+ {
+- T val = ExprEval ( this->m_pArg, tMatch ); // 'this' fixes gcc braindamage
++ T val = this->ExprEval ( this->m_pArg, tMatch ); // 'this' fixes gcc braindamage
+ ARRAY_FOREACH ( i, this->m_dValues ) // FIXME! OPTIMIZE! perform binary search here
+ if ( val<this->m_dValues[i] )
+ return i;
+@@ -1827,7 +1827,7 @@ public:
+ /// evaluate arg, return interval id
+ virtual int IntEval ( const CSphMatch & tMatch ) const
+ {
+- T val = ExprEval ( this->m_pArg, tMatch ); // 'this' fixes gcc braindamage
++ T val = this->ExprEval ( this->m_pArg, tMatch ); // 'this' fixes gcc braindamage
+ ARRAY_FOREACH ( i, m_dTurnPoints )
+ if ( val < Expr_ArgVsSet_c<T>::ExprEval ( m_dTurnPoints[i], tMatch ) )
+ return i;
+@@ -1873,7 +1873,7 @@ public:
+ /// evaluate arg, check if the value is within set
+ virtual int IntEval ( const CSphMatch & tMatch ) const
+ {
+- T val = ExprEval ( this->m_pArg, tMatch ); // 'this' fixes gcc braindamage
++ T val = this->ExprEval ( this->m_pArg, tMatch ); // 'this' fixes gcc braindamage
+ return this->m_dValues.BinarySearch ( val )!=NULL;
+ }
+
diff --git a/app-misc/sphinx/metadata.xml b/app-misc/sphinx/metadata.xml
new file mode 100644
index 000000000000..d605858165cf
--- /dev/null
+++ b/app-misc/sphinx/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>
+ <email>graaff@gentoo.org</email>
+</maintainer>
+<use>
+ <flag name='id64'>use 64-bit document and word IDs</flag>
+ <flag name='stemmer'>Enable language stemming support</flag>
+</use>
+</pkgmetadata>
diff --git a/app-misc/sphinx/sphinx-0.9.9.ebuild b/app-misc/sphinx/sphinx-0.9.9.ebuild
new file mode 100644
index 000000000000..3f6b0db95494
--- /dev/null
+++ b/app-misc/sphinx/sphinx-0.9.9.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=2
+inherit eutils autotools
+
+WANT_AUTOMAKE="1.11"
+
+MY_P=${P/_/-}
+
+# This has been added by Gentoo, to explicitly version libstemmer.
+# It is the date that http://snowball.tartarus.org/dist/libstemmer_c.tgz was
+# fetched.
+STEMMER_PV="20091122"
+DESCRIPTION="Full-text search engine with support for MySQL and PostgreSQL"
+HOMEPAGE="http://www.sphinxsearch.com/"
+SRC_URI="http://sphinxsearch.com/downloads/${MY_P}.tar.gz
+ stemmer? ( mirror://gentoo/libstemmer_c-${STEMMER_PV}.tgz )"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="debug id64 mysql postgres stemmer test"
+
+RDEPEND="mysql? ( virtual/mysql )
+ postgres? ( dev-db/postgresql )"
+DEPEND="${RDEPEND}
+ test? ( dev-lang/php )"
+
+# Tests require a live database.
+RESTRICT="test"
+
+S=${WORKDIR}/${MY_P}
+
+src_unpack() {
+ unpack ${MY_P}.tar.gz
+ if use stemmer; then
+ cd "${S}"
+ unpack libstemmer_c-${STEMMER_PV}.tgz
+ fi
+}
+
+src_prepare() {
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --sysconfdir="/etc/${PN}" \
+ $(use_enable id64) \
+ $(use_with debug) \
+ $(use_with mysql) \
+ $(use_with postgres pgsql) \
+ $(use_with stemmer libstemmer)
+}
+
+src_compile() {
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "install failed"
+ dodoc doc/*
+
+ dodir /var/lib/sphinx
+ dodir /var/log/sphinx
+ dodir /var/run/sphinx
+
+ newinitd "${FILESDIR}"/searchd.rc searchd
+}
diff --git a/app-misc/sphinx/sphinx-2.0.10.ebuild b/app-misc/sphinx/sphinx-2.0.10.ebuild
new file mode 100644
index 000000000000..64bc30073f64
--- /dev/null
+++ b/app-misc/sphinx/sphinx-2.0.10.ebuild
@@ -0,0 +1,101 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils autotools toolchain-funcs
+
+#MY_P=${P/_/-}
+MY_P=${P}-release
+
+# This has been added by Gentoo, to explicitly version libstemmer.
+# It is the date that http://snowball.tartarus.org/dist/libstemmer_c.tgz was
+# fetched.
+STEMMER_PV="20091122"
+DESCRIPTION="Full-text search engine with support for MySQL and PostgreSQL"
+HOMEPAGE="http://www.sphinxsearch.com/"
+SRC_URI="http://sphinxsearch.com/files/${MY_P}.tar.gz
+ stemmer? ( mirror://gentoo/libstemmer_c-${STEMMER_PV}.tgz )"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc x86 ~amd64-linux ~ppc-macos ~x86-macos ~sparc-solaris ~sparc64-solaris"
+IUSE="debug id64 mysql odbc postgres stemmer test"
+
+RDEPEND="mysql? ( virtual/mysql )
+ postgres? ( dev-db/postgresql )
+ odbc? ( dev-db/unixODBC )
+ virtual/libiconv"
+DEPEND="${RDEPEND}
+ test? ( dev-lang/php )"
+
+S=${WORKDIR}/${MY_P}
+
+src_unpack() {
+ unpack ${MY_P}.tar.gz
+ if use stemmer; then
+ cd "${S}"
+ unpack libstemmer_c-${STEMMER_PV}.tgz
+ fi
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-2.0.1_beta-darwin8.patch
+
+ # drop nasty hardcoded search path breaking Prefix
+ # We patch configure directly since otherwise we need to run
+ # eautoreconf twice and that causes problems, bug 425380
+ sed -i -e 's/\/usr\/local\//\/someplace\/nonexisting\//g' configure || die
+
+ # Fix QA compilation warnings.
+ sed -i -e '19i#include <string.h>' api/libsphinxclient/test.c || die
+
+ pushd api/libsphinxclient || die
+ eautoreconf
+ popd || die
+}
+
+src_configure() {
+ # fix libiconv detection
+ use !elibc_glibc && export ac_cv_search_iconv=-liconv
+
+ econf \
+ --sysconfdir="${EPREFIX}/etc/${PN}" \
+ $(use_enable id64) \
+ $(use_with debug) \
+ $(use_with mysql) \
+ $(use_with odbc unixodbc) \
+ $(use_with postgres pgsql) \
+ $(use_with stemmer libstemmer)
+
+ cd api/libsphinxclient || die
+ econf STRIP=:
+}
+
+src_compile() {
+ emake AR="$(tc-getAR)" || die "emake failed"
+
+ emake -j 1 -C api/libsphinxclient || die "emake libsphinxclient failed"
+}
+
+src_test() {
+ elog "Tests require access to a live MySQL database and may require configuration."
+ elog "You will find them in /usr/share/${PN}/test and they require dev-lang/php"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "install failed"
+ emake DESTDIR="${D}" -C api/libsphinxclient install || die "install libsphinxclient failed"
+
+ dodoc doc/*
+
+ dodir /var/lib/sphinx
+ dodir /var/log/sphinx
+
+ newinitd "${FILESDIR}"/searchd.rc searchd
+
+ if use test; then
+ insinto /usr/share/${PN}
+ doins -r test
+ fi
+}
diff --git a/app-misc/sphinx/sphinx-2.1.8.ebuild b/app-misc/sphinx/sphinx-2.1.8.ebuild
new file mode 100644
index 000000000000..9fa5e9f97f8a
--- /dev/null
+++ b/app-misc/sphinx/sphinx-2.1.8.ebuild
@@ -0,0 +1,90 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils autotools toolchain-funcs
+
+#MY_P=${P/_/-}
+MY_P=${P}-release
+
+DESCRIPTION="Full-text search engine with support for MySQL and PostgreSQL"
+HOMEPAGE="http://www.sphinxsearch.com/"
+SRC_URI="http://sphinxsearch.com/files/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc x86 ~amd64-linux ~ppc-macos ~x86-macos ~sparc-solaris ~sparc64-solaris"
+IUSE="debug id64 mysql odbc postgres stemmer syslog test xml"
+
+RDEPEND="mysql? ( virtual/mysql )
+ postgres? ( dev-db/postgresql )
+ odbc? ( dev-db/unixODBC )
+ stemmer? ( dev-libs/snowball-stemmer )
+ xml? ( dev-libs/expat )
+ virtual/libiconv"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-2.0.1_beta-darwin8.patch
+
+ # drop nasty hardcoded search path breaking Prefix
+ # We patch configure directly since otherwise we need to run
+ # eautoreconf twice and that causes problems, bug 425380
+ sed -i -e 's/\/usr\/local\//\/someplace\/nonexisting\//g' configure || die
+
+ # Fix QA compilation warnings.
+ sed -i -e '19i#include <string.h>' api/libsphinxclient/test.c || die
+
+ pushd api/libsphinxclient || die
+ eautoreconf
+ popd || die
+}
+
+src_configure() {
+ # fix libiconv detection
+ use !elibc_glibc && export ac_cv_search_iconv=-liconv
+
+ econf \
+ --sysconfdir="${EPREFIX}/etc/${PN}" \
+ $(use_enable id64) \
+ $(use_with debug) \
+ $(use_with mysql) \
+ $(use_with odbc unixodbc) \
+ $(use_with postgres pgsql) \
+ $(use_with stemmer libstemmer) \
+ $(use_with syslog syslog) \
+ $(use_with xml libexpat )
+
+ cd api/libsphinxclient || die
+ econf STRIP=:
+}
+
+src_compile() {
+ emake AR="$(tc-getAR)" || die "emake failed"
+
+ emake -j 1 -C api/libsphinxclient || die "emake libsphinxclient failed"
+}
+
+src_test() {
+ elog "Tests require access to a live MySQL database and may require configuration."
+ elog "You will find them in /usr/share/${PN}/test and they require dev-lang/php"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "install failed"
+ emake DESTDIR="${D}" -C api/libsphinxclient install || die "install libsphinxclient failed"
+
+ dodoc doc/*
+
+ dodir /var/lib/sphinx
+ dodir /var/log/sphinx
+
+ newinitd "${FILESDIR}"/searchd.rc searchd
+
+ if use test; then
+ insinto /usr/share/${PN}
+ doins -r test
+ fi
+}
diff --git a/app-misc/sphinx/sphinx-2.1.9.ebuild b/app-misc/sphinx/sphinx-2.1.9.ebuild
new file mode 100644
index 000000000000..3f2b3307dbb4
--- /dev/null
+++ b/app-misc/sphinx/sphinx-2.1.9.ebuild
@@ -0,0 +1,90 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils autotools toolchain-funcs
+
+#MY_P=${P/_/-}
+MY_P=${P}-release
+
+DESCRIPTION="Full-text search engine with support for MySQL and PostgreSQL"
+HOMEPAGE="http://www.sphinxsearch.com/"
+SRC_URI="http://sphinxsearch.com/files/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~ppc-macos ~x86-macos ~sparc-solaris ~sparc64-solaris"
+IUSE="debug id64 mysql odbc postgres stemmer syslog test xml"
+
+RDEPEND="mysql? ( virtual/mysql )
+ postgres? ( dev-db/postgresql )
+ odbc? ( dev-db/unixODBC )
+ stemmer? ( dev-libs/snowball-stemmer )
+ xml? ( dev-libs/expat )
+ virtual/libiconv"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-2.0.1_beta-darwin8.patch
+
+ # drop nasty hardcoded search path breaking Prefix
+ # We patch configure directly since otherwise we need to run
+ # eautoreconf twice and that causes problems, bug 425380
+ sed -i -e 's/\/usr\/local\//\/someplace\/nonexisting\//g' configure || die
+
+ # Fix QA compilation warnings.
+ sed -i -e '19i#include <string.h>' api/libsphinxclient/test.c || die
+
+ pushd api/libsphinxclient || die
+ eautoreconf
+ popd || die
+}
+
+src_configure() {
+ # fix libiconv detection
+ use !elibc_glibc && export ac_cv_search_iconv=-liconv
+
+ econf \
+ --sysconfdir="${EPREFIX}/etc/${PN}" \
+ $(use_enable id64) \
+ $(use_with debug) \
+ $(use_with mysql) \
+ $(use_with odbc unixodbc) \
+ $(use_with postgres pgsql) \
+ $(use_with stemmer libstemmer) \
+ $(use_with syslog syslog) \
+ $(use_with xml libexpat )
+
+ cd api/libsphinxclient || die
+ econf STRIP=:
+}
+
+src_compile() {
+ emake AR="$(tc-getAR)" || die "emake failed"
+
+ emake -j 1 -C api/libsphinxclient || die "emake libsphinxclient failed"
+}
+
+src_test() {
+ elog "Tests require access to a live MySQL database and may require configuration."
+ elog "You will find them in /usr/share/${PN}/test and they require dev-lang/php"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "install failed"
+ emake DESTDIR="${D}" -C api/libsphinxclient install || die "install libsphinxclient failed"
+
+ dodoc doc/*
+
+ dodir /var/lib/sphinx
+ dodir /var/log/sphinx
+
+ newinitd "${FILESDIR}"/searchd.rc searchd
+
+ if use test; then
+ insinto /usr/share/${PN}
+ doins -r test
+ fi
+}
diff --git a/app-misc/splitvt/Manifest b/app-misc/splitvt/Manifest
new file mode 100644
index 000000000000..bda046d5cce6
--- /dev/null
+++ b/app-misc/splitvt/Manifest
@@ -0,0 +1,2 @@
+DIST splitvt-1.6.6.tar.gz 64797 SHA256 70a03afe3a43c7458c5fe0152c386f62669107e045b973aecc667259b1820937 SHA512 a0a0ea2251489f14e2ba7af9bb1b9d309d6fa310f434090d97af2a0805c398731dec45a5cc15c2074af4d3f33b02c5bab019743530619755382af80ff86fa670 WHIRLPOOL 89b5df9427d5bef4a3d7ecbf4bdf6bc8a18eefb65a89cfb3c807ee1063038d1c15d788b2404daaf1595da7a390bfa5106b4d26d2cc34961082e5d21ad73f26fd
+DIST splitvt_1.6.6-7.diff.gz 11073 SHA256 083f6f3e0f35a10859270f29ca02605e04918bcd5bf2ad94d71f2b13283310e4 SHA512 620f3f6e7f22284ef8054e371a87421beeb2ef355b7084748cbd1f7a3a128c9da11f291fdaf1d393010c0f7affce8d6e56a7ae0977d9831b9d3b98963c55c71f WHIRLPOOL e721fd06ac3276b503b1867fe522b8cdf2ed549c50d36247e3c4204400986b33ed63fb3cab0dac7e2f75981846e358bba628158e02dbeb8a2c53e1b4543e6a82
diff --git a/app-misc/splitvt/files/1.6.6-ldflags.patch b/app-misc/splitvt/files/1.6.6-ldflags.patch
new file mode 100644
index 000000000000..5a545ad98ee8
--- /dev/null
+++ b/app-misc/splitvt/files/1.6.6-ldflags.patch
@@ -0,0 +1,23 @@
+diff --git a/config.c b/config.c
+index 6e8b090..2f3c8dc 100644
+--- a/config.c
++++ b/config.c
+@@ -229,15 +229,15 @@ char *argv[];
+ }
+ fprintf(makefile,
+ "PTYOPTS = -DPTYCHAR=$(PTYCHAR) -DHEXDIGIT=$(HEXDIGIT)\n");
+- sprintf(line, "\nCFLAGS = -Wall %s $(PTYOPTS)\nLIBS = %s\n", cflags, ldflags);
++ sprintf(line, "\nCFLAGS = %s $(PTYOPTS)\nLIBS = %s\n", cflags, ldflags);
+ fprintf(makefile, "%s", line);
+ fprintf(makefile, "OBJS = splitvt.o misc.o utmp.o vt100.o videomem.o terminal.o vttest.o vtmouse.o \\\n");
+ fprintf(makefile, " parserc.o lock.o cut-paste.o\n\n");
+ fprintf(makefile, "splitvt: $(OBJS)\n");
+ #if defined(linux) && !defined(DEBUG)
+- fprintf(makefile, "\t$(CC) -o $@ $(OBJS) $(LIBS)\n");
++ fprintf(makefile, "\t$(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)\n");
+ #else
+- fprintf(makefile, "\t$(CC) -o $@ $(OBJS) $(LIBS)\n");
++ fprintf(makefile, "\t$(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)\n");
+ #endif
+ fprintf(makefile, "\nclean: \n\trm -f *.o core \n");
+ fprintf(makefile, "\ndistclean: clean\n\trm -f splitvt Makefile\n");
diff --git a/app-misc/splitvt/metadata.xml b/app-misc/splitvt/metadata.xml
new file mode 100644
index 000000000000..f23b9cae1593
--- /dev/null
+++ b/app-misc/splitvt/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>shell-tools</herd>
+</pkgmetadata>
diff --git a/app-misc/splitvt/splitvt-1.6.6-r2.ebuild b/app-misc/splitvt/splitvt-1.6.6-r2.ebuild
new file mode 100644
index 000000000000..280ebf0e0b3b
--- /dev/null
+++ b/app-misc/splitvt/splitvt-1.6.6-r2.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="3"
+
+inherit eutils toolchain-funcs
+
+MY_P="${P/-/_}"
+DEB_PL="7"
+
+DESCRIPTION="Splitting terminals into two shells"
+HOMEPAGE="http://www.devolution.com/~slouken/projects/splitvt"
+SRC_URI="
+ http://www.devolution.com/~slouken/projects/${PN}/${P}.tar.gz
+ mirror://debian/pool/main/s/splitvt/${MY_P}-${DEB_PL}.diff.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ia64 ppc sparc x86"
+IUSE=""
+
+DEPEND=">=sys-libs/ncurses-5.2"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch \
+ "${WORKDIR}"/${MY_P}-${DEB_PL}.diff \
+ "${FILESDIR}"/${PV}-ldflags.patch
+ sed -i \
+ -e "s:/usr/local/bin:${D}/usr/bin:g" \
+ -e "s:/usr/local/man/:${D}/usr/share/man/:g" config.c || die
+}
+
+src_configure() {
+ # upstream has their own weirdo configure script...
+ ./configure || die "configure failed"
+ sed -i -e "s:-O2:${CFLAGS}:" -e "s:^CC = gcc:CC = $(tc-getCC):" Makefile || die
+}
+
+src_install() {
+ dodir /usr/bin /usr/share/man/man1/ || die
+ make install || die "make install failed"
+ fperms 755 /usr/bin/xsplitvt || die
+ dodoc ANNOUNCE BLURB CHANGES NOTES README TODO || die
+ doman splitvt.1 || die
+}
diff --git a/app-misc/srm/Manifest b/app-misc/srm/Manifest
new file mode 100644
index 000000000000..50f10ee2d848
--- /dev/null
+++ b/app-misc/srm/Manifest
@@ -0,0 +1,2 @@
+DIST srm-1.2.11.tar.gz 124982 SHA256 5105152d1d8e6166a5b1bef6b4ec945fd9dcc03289ff8916e98f44bfa8f25a8a SHA512 4b9b80242242dc64dcf97e4180676a1dc8b64d43f144ad4278d6762716e5e1b77b4c794900c298a919be7bdf1af71dcaf7286d4fae909ec5314752bfb73da8db WHIRLPOOL cf9980c745d79564adf913e5729f223861128d7cb1eea7b90829b09425f4d2e34ccc20d233dca88370467500826ca766f912fa565c16f3b959982c00b43204bc
+DIST srm-1.2.15.tar.gz 132031 SHA256 7583c1120e911e292f22b4a1d949b32c23518038afd966d527dae87c61565283 SHA512 a8ec78473c55b70557fca88f525998ed51df3be58618b9da220e1bb73df013163f4e1563cbe2062b9cf1512152afeb9004b5be0be69cc1278c0d28597310dfd2 WHIRLPOOL 342d3bbdd94ff756a1253df7e8d0040c1d8bc744c695f970c89f2a62dcfd43fbdcaee16a9ac54a87c25d3be02d36b96f659cbb317d090b5fe1b45135865f1adb
diff --git a/app-misc/srm/files/cflags.patch b/app-misc/srm/files/cflags.patch
new file mode 100644
index 000000000000..d8f598b6892a
--- /dev/null
+++ b/app-misc/srm/files/cflags.patch
@@ -0,0 +1,21 @@
+diff -Naur srm-1.2.11.orig/configure.in srm-1.2.11/configure.in
+--- srm-1.2.11.orig/configure.in 2010-06-06 13:22:08.000000000 -0400
++++ srm-1.2.11/configure.in 2011-09-28 21:23:24.562682859 -0400
+@@ -6,8 +6,6 @@
+
+ dnl Checks for programs.
+ AC_PROG_CC
+-dnl reset CFLAGS
+-CFLAGS=
+
+ AC_PROG_INSTALL
+ AC_PROG_RANLIB
+@@ -42,7 +40,7 @@
+ CFLAGS="$CFLAGS -g"
+ AC_MSG_RESULT(yes)
+ else
+- CFLAGS="$CFLAGS -O2 -DNDEBUG"
++ CFLAGS="$CFLAGS -DNDEBUG"
+ AC_MSG_RESULT(no)
+ fi
+
diff --git a/app-misc/srm/files/srm-1.2.11-cflags.patch b/app-misc/srm/files/srm-1.2.11-cflags.patch
new file mode 100644
index 000000000000..7f05c5d2aa9d
--- /dev/null
+++ b/app-misc/srm/files/srm-1.2.11-cflags.patch
@@ -0,0 +1,23 @@
+--- configure.in 2010-06-06 13:22:08.000000000 -0400
++++ configure.in 2011-11-06 11:36:37.684800151 -0500
+@@ -6,8 +6,6 @@
+
+ dnl Checks for programs.
+ AC_PROG_CC
+-dnl reset CFLAGS
+-CFLAGS=
+
+ AC_PROG_INSTALL
+ AC_PROG_RANLIB
+@@ -39,10 +37,9 @@
+ AC_ARG_ENABLE(debug, [ --enable-debug=[no/yes] turn on debugging
+ [default=$debug_default]],, enable_debug=$debug_default)
+ if test "x$enable_debug" = "xyes"; then
+- CFLAGS="$CFLAGS -g"
+ AC_MSG_RESULT(yes)
+ else
+- CFLAGS="$CFLAGS -O2 -DNDEBUG"
++ CFLAGS="$CFLAGS -DNDEBUG"
+ AC_MSG_RESULT(no)
+ fi
+
diff --git a/app-misc/srm/files/srm-1.2.15-cflags.patch b/app-misc/srm/files/srm-1.2.15-cflags.patch
new file mode 100644
index 000000000000..0a45bdc12520
--- /dev/null
+++ b/app-misc/srm/files/srm-1.2.15-cflags.patch
@@ -0,0 +1,10 @@
+--- srm-1.2.15/configure.ac
++++ srm-1.2.15/configure.ac
+@@ -42,7 +42,6 @@
+ AC_ARG_ENABLE(debug, [ --enable-debug=[no/yes] turn on debugging
+ [default=$debug_default]],, enable_debug=$debug_default)
+ if test "x$enable_debug" = "xyes"; then
+- CFLAGS="$CFLAGS -g"
+ AC_MSG_RESULT(yes)
+ else
+ CFLAGS="$CFLAGS -DNDEBUG"
diff --git a/app-misc/srm/files/srm-1.2.8-remove-mount.patch b/app-misc/srm/files/srm-1.2.8-remove-mount.patch
new file mode 100644
index 000000000000..0f3297a43a3f
--- /dev/null
+++ b/app-misc/srm/files/srm-1.2.8-remove-mount.patch
@@ -0,0 +1,13 @@
+--- src/sunlink.c 2007-03-05 03:01:00.000000000 +0530
++++ src/sunlink.c 2007-03-05 03:01:16.000000000 +0530
+@@ -20,9 +20,8 @@
+ #include <sys/vfs.h>
+ #endif
+
+-#if HAVE_SYS_PARAM_H && HAVE_SYS_MOUNT_H
++#if HAVE_SYS_PARAM_H
+ #include <sys/param.h>
+-#include <sys/mount.h>
+ #endif
+
+ #include "srm.h"
diff --git a/app-misc/srm/metadata.xml b/app-misc/srm/metadata.xml
new file mode 100644
index 000000000000..d8967968aa27
--- /dev/null
+++ b/app-misc/srm/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>
+ <email>idella4@gentoo.org</email>
+ <name>Ian Delaney</name>
+ </maintainer>
+ <maintainer>
+ <email>titanofold@gentoo.org</email>
+ <name>Aaron W. Swenson</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">srm</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/srm/srm-1.2.11-r2.ebuild b/app-misc/srm/srm-1.2.11-r2.ebuild
new file mode 100644
index 000000000000..fbbfdf4b7722
--- /dev/null
+++ b/app-misc/srm/srm-1.2.11-r2.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+inherit autotools eutils
+
+DESCRIPTION="A command-line compatible rm which destroys file contents before unlinking"
+HOMEPAGE="http://sourceforge.net/projects/srm/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="amd64 ppc ~ppc64 x86"
+IUSE="debug"
+
+DEPEND="!app-misc/secure-delete
+ sys-kernel/linux-headers
+"
+
+DOCS=( AUTHORS ChangeLog NEWS README TODO )
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-1.2.11-cflags.patch"
+ eautoreconf
+}
+
+src_configure() {
+ econf $(use_enable debug)
+}
+
+pkg_postinst() {
+ ewarn "Please note that srm will not work as expected with any journaled file"
+ ewarn "system (e.g., reiserfs, ext3)."
+ ewarn "See: ${EROOT%/}/usr/share/doc/${PF}/README"
+}
diff --git a/app-misc/srm/srm-1.2.15.ebuild b/app-misc/srm/srm-1.2.15.ebuild
new file mode 100644
index 000000000000..fdcc2a77a523
--- /dev/null
+++ b/app-misc/srm/srm-1.2.15.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit autotools eutils
+
+DESCRIPTION="A command-line compatible rm which destroys file contents before unlinking"
+HOMEPAGE="http://sourceforge.net/projects/srm/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE="debug"
+
+DEPEND="!app-misc/secure-delete
+ sys-kernel/linux-headers
+"
+
+DOCS=( AUTHORS ChangeLog NEWS README TODO )
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-1.2.15-cflags.patch"
+ eautoreconf
+}
+
+src_configure() {
+ econf $(use_enable debug)
+}
+
+pkg_postinst() {
+ ewarn "Please note that srm will not work as expected with any journaled file"
+ ewarn "system (e.g., reiserfs, ext3)."
+ ewarn "See: ${EROOT%/}/usr/share/doc/${PF}/README"
+}
diff --git a/app-misc/strigi/Manifest b/app-misc/strigi/Manifest
new file mode 100644
index 000000000000..5aaea43c1189
--- /dev/null
+++ b/app-misc/strigi/Manifest
@@ -0,0 +1 @@
+DIST strigi-0.7.8.tar.bz2 810574 SHA256 43e461a625acdefa59bf58cc9d10aebda9eba920dfbe800fc77e6dcbf1eff989 SHA512 536f5bd5ed13d87d30c2fa31b6dcb2a883df173e5d60deefe0fdeb843f40f29f7edd0041029dc013bb31a205572087ed95ca661bcdf6d989d9806931716b1043 WHIRLPOOL 6853025cee89811dadb6e7f6309a6a8dfec1863cb75ab8af04a9a21b228b74723de06c4f787342ce7a0d6087303ecc0c4f599c2a3978838675678343d0b84ae4
diff --git a/app-misc/strigi/files/strigi-0.7.8-gcc-4.8.patch b/app-misc/strigi/files/strigi-0.7.8-gcc-4.8.patch
new file mode 100644
index 000000000000..f525a71627a6
--- /dev/null
+++ b/app-misc/strigi/files/strigi-0.7.8-gcc-4.8.patch
@@ -0,0 +1,11 @@
+--- libstreams/include/strigi/bufferedstream.h
++++ libstreams/include/strigi/bufferedstream.h
+@@ -34,7 +34,7 @@
+ * BufferedStream will do the rest.
+ */
+ template <class T>
+-class BufferedStream : public StreamBase<T> {
++class STREAMS_EXPORT BufferedStream : public StreamBase<T> {
+ private:
+ StreamBuffer<T> buffer;
+ bool finishedWritingToBuffer;
diff --git a/app-misc/strigi/files/strigi-0.7.8-libav10.patch b/app-misc/strigi/files/strigi-0.7.8-libav10.patch
new file mode 100644
index 000000000000..b38763ff29c0
--- /dev/null
+++ b/app-misc/strigi/files/strigi-0.7.8-libav10.patch
@@ -0,0 +1,16 @@
+Index: strigi-0.7.8/libstreamanalyzer/plugins/endplugins/ffmpegendanalyzer.cpp
+===================================================================
+--- strigi-0.7.8.orig/libstreamanalyzer/plugins/endplugins/ffmpegendanalyzer.cpp 2013-02-05 21:34:52.000000000 +0000
++++ strigi-0.7.8/libstreamanalyzer/plugins/endplugins/ffmpegendanalyzer.cpp 2014-02-28 21:45:10.570587443 +0000
+@@ -481,9 +481,9 @@
+ outs << codec.height;
+ ar.addTriplet(streamuri, heightPropertyName, outs.str());
+ }
+- if (stream.r_frame_rate.num && stream.r_frame_rate.den) {
++ if (stream.avg_frame_rate.num && stream.avg_frame_rate.den) {
+ ostringstream outs;
+- outs << stream.r_frame_rate.num / stream.r_frame_rate.den;
++ outs << stream.avg_frame_rate.num / stream.avg_frame_rate.den;
+ ar.addTriplet(streamuri, frameRatePropertyName, outs.str());
+ }
+ if (codec.pix_fmt != PIX_FMT_NONE) {}//FIXME pixel format
diff --git a/app-misc/strigi/metadata.xml b/app-misc/strigi/metadata.xml
new file mode 100644
index 000000000000..ceb0f7756c4a
--- /dev/null
+++ b/app-misc/strigi/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <use>
+ <flag name="clucene">Enable <pkg>dev-cpp/clucene</pkg> backend support.</flag>
+ <flag name="inotify">Enable support for inotify.</flag>
+ <flag name="log">Enables advanced logging through <pkg>dev-libs/log4cxx</pkg>.</flag>
+ </use>
+ <herd>kde</herd>
+</pkgmetadata>
diff --git a/app-misc/strigi/strigi-0.7.8-r1.ebuild b/app-misc/strigi/strigi-0.7.8-r1.ebuild
new file mode 100644
index 000000000000..eb9271eaaa75
--- /dev/null
+++ b/app-misc/strigi/strigi-0.7.8-r1.ebuild
@@ -0,0 +1,99 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+if [[ "${PV}" != "9999" ]]; then
+ SRC_URI="http://www.vandenoever.info/software/strigi/${P}.tar.bz2"
+ KEYWORDS="amd64 ~arm ppc ppc64 x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
+else
+ EGIT_REPO_URI=( "git://anongit.kde.org/strigi" )
+ GIT_ECLASS="git-r3"
+ KEYWORDS=""
+fi
+
+inherit cmake-utils ${GIT_ECLASS}
+
+DESCRIPTION="Fast crawling desktop search engine with Qt4 GUI"
+HOMEPAGE="https://projects.kde.org/projects/kdesupport/strigi/strigi"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="clucene +dbus debug exif fam ffmpeg inotify libav log +qt4 test"
+
+RDEPEND="
+ app-arch/bzip2
+ dev-libs/libxml2:2
+ sys-libs/zlib
+ virtual/libiconv
+ clucene? ( >=dev-cpp/clucene-0.9.21[-debug] )
+ dbus? (
+ sys-apps/dbus
+ qt4? ( dev-qt/qtdbus:4 )
+ )
+ exif? ( media-gfx/exiv2:= )
+ fam? ( virtual/fam )
+ ffmpeg? (
+ libav? ( media-video/libav:0= )
+ !libav? ( media-video/ffmpeg:0= )
+ )
+ log? ( >=dev-libs/log4cxx-0.10.0 )
+ qt4? (
+ dev-qt/qtcore:4
+ dev-qt/qtgui:4
+ )
+"
+DEPEND="${RDEPEND}
+ test? ( dev-util/cppunit )
+"
+
+PATCHES=(
+ "${FILESDIR}/${P}-gcc-4.8.patch"
+ "${FILESDIR}/${P}-libav10.patch"
+)
+
+if [[ ${PV} == 9999 ]] ; then
+ src_unpack() {
+ git config --global url."git://anongit.kde.org/".insteadOf "kde:" || die
+ git-r3_src_unpack
+ pushd "${S}" > /dev/null || die
+ git submodule foreach git checkout master || die
+ popd > /dev/null || die
+ }
+fi
+
+src_configure() {
+ # Enabled: POLLING (only reliable way to check for files changed.)
+ # Disabled: xine - recommended upstream to keep it this way
+ local mycmakeargs=(
+ -DENABLE_POLLING=ON
+ -DFORCE_DEPS=ON
+ -DENABLE_REGENERATEXSD=OFF
+ -DENABLE_XINE=OFF
+ $(cmake-utils_use_enable clucene CLUCENE)
+ $(cmake-utils_use_enable clucene CLUCENE_NG)
+ $(cmake-utils_use_enable dbus)
+ $(cmake-utils_use_enable exif EXIV2)
+ $(cmake-utils_use_enable fam)
+ $(cmake-utils_use_enable ffmpeg)
+ $(cmake-utils_use_enable inotify)
+ $(cmake-utils_use_enable log LOG4CXX)
+ $(cmake-utils_use_enable qt4)
+ $(cmake-utils_use_find_package test CPPUNIT)
+ )
+
+ if use qt4; then
+ mycmakeargs+=( -DENABLE_DBUS=ON )
+ fi
+
+ cmake-utils_src_configure
+}
+
+pkg_postinst() {
+ if ! use clucene ; then
+ elog "Because you didn't enable the clucene backend, strigi may not be functional."
+ elog "If you intend to use standalone strigi indexer (not needed for KDE),"
+ elog "be sure to reinstall app-misc/strigi with the clucene USE flag enabled."
+ fi
+}
diff --git a/app-misc/subsurface/Manifest b/app-misc/subsurface/Manifest
new file mode 100644
index 000000000000..455da8167d7b
--- /dev/null
+++ b/app-misc/subsurface/Manifest
@@ -0,0 +1,2 @@
+DIST Subsurface-4.2.tgz 5029228 SHA256 eb2d9542c7eb69166adef80effe7202afa17970bf7a0d29811eb4f991b3e2294 SHA512 01c930dd1bf663c23d93e85dcf3071d9b0a4f0cf275e8759ad3bd44a7996f21e1a4d783a63b3d96a8df2dab0627ce4ee76fd194382caafb6aba7fd6c2f9a7d16 WHIRLPOOL 063b979d13fd3d084ef09af36453f01e539d1958c9901fc3a21eb6eeedf2d8e6cda5ff8a5fd905e3023dbe41059400864b780cad506730b82834de6f70fe5444
+DIST subsurface-3.1.1.tar.gz 1143335 SHA256 3bbd490871c3ea476943e320e6d7cebdcaebc393503c32ac811cc52c6dfee17b SHA512 b53cd797f803219449cc497b3486660bf873e5c29b2f4e15653c5ae06e1a1884b1a4e2aa79ed67998539dc0c5fd413b1b19f8ad52d8234f74700575cc577b615 WHIRLPOOL 84e123c2bb7a3529e311b35035f3668d70d8913ba08e1460e8f6e6531403b69c03f5993c01a29c284ac9deb5b2c62a614182b0ed209483735b5236a4bc454083
diff --git a/app-misc/subsurface/metadata.xml b/app-misc/subsurface/metadata.xml
new file mode 100644
index 000000000000..e3c5a074c70b
--- /dev/null
+++ b/app-misc/subsurface/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>
+ <email>me@bearsh.org</email>
+ <name>Martin Gysel</name>
+ <description>Proxy maintainer. Assign bugs to him.</description>
+ </maintainer>
+ <maintainer>
+ <email>bauman.aaron@gmail.com</email>
+ <name>Aaron Bauman</name>
+ <description>Proxy maintainer. Please CC bugs to him.</description>
+ </maintainer>
+ <herd>proxy-maintainers</herd>
+ <longdescription lang="en">
+ An open source dive log program.
+ </longdescription>
+ <use>
+ <flag name="linguas_da_DK">Language support for da_DK.</flag>
+ <flag name="linguas_de_CH">Language support for de_CH.</flag>
+ <flag name="linguas_gsw">Language support for gsw.</flag>
+ <flag name="linguas_hr_HR">Language support for hr_HR.</flag>
+ </use>
+</pkgmetadata>
diff --git a/app-misc/subsurface/subsurface-3.1.1.ebuild b/app-misc/subsurface/subsurface-3.1.1.ebuild
new file mode 100644
index 000000000000..b180ac025941
--- /dev/null
+++ b/app-misc/subsurface/subsurface-3.1.1.ebuild
@@ -0,0 +1,110 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+if [[ ${PV} = *9999* ]]; then
+ EGIT_REPO_URI="git://subsurface.hohndel.org/subsurface.git"
+ GIT_ECLASS="git-2"
+ LIBDC_V="0.4.1"
+else
+ SRC_URI="http://subsurface.hohndel.org/downloads/Subsurface-${PV}.tgz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+ LIBDC_V="0.4.1"
+ S="${WORKDIR}/${P/s/S}"
+fi
+
+inherit eutils gnome2-utils ${GIT_ECLASS}
+
+LINGUAS="bg bg_BG br ca ca_ES da_DK de de_CH de_DE da ee es es_ES et_EE fi fi_FI fr fr_FR gsw hr
+ hr_HR it it_IT nb nb_NO nl nl_NL nn no pl pl_PL pt pt_BR pt_PT ru ru_RU sk sk_SK sv sv_SE"
+
+DESCRIPTION="An open source dive log program"
+HOMEPAGE="http://subsurface.hohndel.org"
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="doc usb"
+for LINGUA in ${LINGUAS}; do
+ IUSE+=" linguas_${LINGUA}"
+done
+
+RDEPEND="dev-db/sqlite:3
+ dev-libs/glib:2
+ dev-libs/libxml2
+ dev-libs/libxslt
+ dev-libs/libzip
+ gnome-base/gconf:2
+ sci-geosciences/osm-gps-map
+ net-libs/libsoup:2.4
+ virtual/libusb
+ x11-libs/cairo
+ x11-libs/gdk-pixbuf:2
+ x11-libs/gtk+:2
+ x11-libs/pango
+"
+DEPEND="${RDEPEND}
+ >=dev-libs/libdivecomputer-${LIBDC_V}[static-libs,usb?]
+ virtual/pkgconfig
+ doc? ( app-text/asciidoc )
+"
+
+src_unpack() {
+ if [[ ${PV} = *9999* ]]; then
+ git-2_src_unpack
+ else
+ unpack ${A}
+ fi
+}
+
+src_prepare() {
+ # Don't hardcode gcc.
+ sed -i 's|CC\=gcc||' Makefile || die "Failed to fix gcc hardcode issues."
+
+ # Don't hardcode CFLAGS.
+ sed -i 's|CFLAGS\=.*||' Makefile || die "Failed to fix hardcoded CFLAGS."
+
+ # Don't call gtk_update_icon_cache.
+ sed -i -e "s|\$(gtk_update_icon_cache)|:|" Makefile || die "Failed to disable gtk_update_icon_cache call."
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)"
+
+ if use doc; then
+ cd "Documentation" && emake user-manual.xhtml
+ fi
+}
+
+src_install() {
+ emake DESTDIR="${D}" CC="$(tc-getCC)" install
+
+ # Remove unwanted linguas
+ local del
+ for LANG in $(ls "${D}/usr/share/locale"); do
+ del=1
+ for LINGUA in ${LINGUAS}; do
+ if [[ ${LANG/.UTF-8/} == ${LINGUA} ]]; then
+ if use linguas_${LINGUA}; then
+ del=0
+ fi
+ break
+ fi
+ done
+ if [[ ${del} == 1 ]]; then
+ rm -r "${D}/usr/share/locale/${LANG}" || die "Removing language ${LANG} failed."
+ fi
+ done
+
+ if use doc; then
+ dohtml -r "${S}/Documentation/"
+ fi
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/app-misc/subsurface/subsurface-4.2.ebuild b/app-misc/subsurface/subsurface-4.2.ebuild
new file mode 100644
index 000000000000..5f6437ac0fa7
--- /dev/null
+++ b/app-misc/subsurface/subsurface-4.2.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+if [[ ${PV} = *9999* ]]; then
+ EGIT_REPO_URI="git://subsurface.hohndel.org/subsurface.git"
+ GIT_ECLASS="git-2"
+ KEYWORDS=""
+ SRC_URI=""
+ LIBDC_V="0.4.2"
+else
+ MY_P=${P/s/S}
+ SRC_URI="http://subsurface.hohndel.org/downloads/${MY_P}.tgz https://bitbucket.org/bearsh/bearshlay/downloads/${MY_P}.tgz"
+ KEYWORDS="~amd64 ~x86"
+ LIBDC_V="0.4.2"
+fi
+
+PLOCALES="bg_BG da_DK de_CH de_DE el_GR en_GB es_ES et_EE fi_FI fr_FR he hu it_IT
+ lv_LV nb_NO nl_NL pl_PL pt_BR pt_PT ro_RO ru_RU sk_SK sv_SE tr zh_TW
+"
+
+inherit eutils l10n qt4-r2 ${GIT_ECLASS}
+
+DESCRIPTION="An open source dive log program"
+HOMEPAGE="http://subsurface.hohndel.org"
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="debug doc usb"
+
+RDEPEND="dev-db/sqlite:3
+ dev-libs/glib:2
+ >=dev-libs/libdivecomputer-${LIBDC_V}[usb?]
+ dev-libs/libgit2:=
+ dev-libs/libxml2
+ dev-libs/libxslt
+ dev-libs/libzip
+ dev-qt/qtcore:4
+ dev-qt/qtgui:4
+ dev-qt/qtsvg:4
+ dev-qt/qtwebkit:4
+ kde-apps/marble:4
+"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ doc? ( app-text/asciidoc )
+"
+
+DOCS="README"
+
+src_unpack() {
+ if [[ ${PV} = *9999* ]]; then
+ git-2_src_unpack
+ else
+ unpack ${A}
+ mv ${MY_P}* ${P} || die "failed to mv the files to ${P}"
+ fi
+}
+
+rm_trans() {
+ rm "${ED}/usr/share/${PN}/translations/${PN}_${1}.qm" || die "rm ${PN}_${1}.qm failed"
+}
+
+src_install() {
+ qt4-r2_src_install
+
+ l10n_for_each_disabled_locale_do rm_trans
+
+ # this is not a translation but present (no need to die if not present)
+ rm "${ED}/usr/share/${PN}/translations/${PN}_source.qm"
+
+ if ! use doc; then
+ rm -R "${ED}/usr/share/${PN}/Documentation"* || die "rm doc failed"
+ fi
+}
diff --git a/app-misc/subsurface/subsurface-9999.ebuild b/app-misc/subsurface/subsurface-9999.ebuild
new file mode 100644
index 000000000000..5f6437ac0fa7
--- /dev/null
+++ b/app-misc/subsurface/subsurface-9999.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+if [[ ${PV} = *9999* ]]; then
+ EGIT_REPO_URI="git://subsurface.hohndel.org/subsurface.git"
+ GIT_ECLASS="git-2"
+ KEYWORDS=""
+ SRC_URI=""
+ LIBDC_V="0.4.2"
+else
+ MY_P=${P/s/S}
+ SRC_URI="http://subsurface.hohndel.org/downloads/${MY_P}.tgz https://bitbucket.org/bearsh/bearshlay/downloads/${MY_P}.tgz"
+ KEYWORDS="~amd64 ~x86"
+ LIBDC_V="0.4.2"
+fi
+
+PLOCALES="bg_BG da_DK de_CH de_DE el_GR en_GB es_ES et_EE fi_FI fr_FR he hu it_IT
+ lv_LV nb_NO nl_NL pl_PL pt_BR pt_PT ro_RO ru_RU sk_SK sv_SE tr zh_TW
+"
+
+inherit eutils l10n qt4-r2 ${GIT_ECLASS}
+
+DESCRIPTION="An open source dive log program"
+HOMEPAGE="http://subsurface.hohndel.org"
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="debug doc usb"
+
+RDEPEND="dev-db/sqlite:3
+ dev-libs/glib:2
+ >=dev-libs/libdivecomputer-${LIBDC_V}[usb?]
+ dev-libs/libgit2:=
+ dev-libs/libxml2
+ dev-libs/libxslt
+ dev-libs/libzip
+ dev-qt/qtcore:4
+ dev-qt/qtgui:4
+ dev-qt/qtsvg:4
+ dev-qt/qtwebkit:4
+ kde-apps/marble:4
+"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ doc? ( app-text/asciidoc )
+"
+
+DOCS="README"
+
+src_unpack() {
+ if [[ ${PV} = *9999* ]]; then
+ git-2_src_unpack
+ else
+ unpack ${A}
+ mv ${MY_P}* ${P} || die "failed to mv the files to ${P}"
+ fi
+}
+
+rm_trans() {
+ rm "${ED}/usr/share/${PN}/translations/${PN}_${1}.qm" || die "rm ${PN}_${1}.qm failed"
+}
+
+src_install() {
+ qt4-r2_src_install
+
+ l10n_for_each_disabled_locale_do rm_trans
+
+ # this is not a translation but present (no need to die if not present)
+ rm "${ED}/usr/share/${PN}/translations/${PN}_source.qm"
+
+ if ! use doc; then
+ rm -R "${ED}/usr/share/${PN}/Documentation"* || die "rm doc failed"
+ fi
+}
diff --git a/app-misc/supercat/Manifest b/app-misc/supercat/Manifest
new file mode 100644
index 000000000000..84dfdde2c846
--- /dev/null
+++ b/app-misc/supercat/Manifest
@@ -0,0 +1 @@
+DIST supercat-0.5.5.tar.gz 103545 SHA256 c49bd0b72509a166fb8686c999169b2c970595bc565d0b0379a01323657c01bf SHA512 24989935ea7b863638165f7102ae511b9be00ff4399f433fc9ec2fc33543eea907b8bd46e819d815344c8c8467bc702b9a5b32aa55bd21be2670237fa1d711de WHIRLPOOL f6dcfc68def95450c2a2c99b22baebc97736e17dc35406252d4a8b9a5c4fe05aed61eb0e2b3f0bf0a26ddd39a22420b34129e990e338c5a0ebf175f8efd37d70
diff --git a/app-misc/supercat/metadata.xml b/app-misc/supercat/metadata.xml
new file mode 100644
index 000000000000..80ac69d9c2f2
--- /dev/null
+++ b/app-misc/supercat/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>shell-tools</herd>
+</pkgmetadata>
diff --git a/app-misc/supercat/supercat-0.5.5-r1.ebuild b/app-misc/supercat/supercat-0.5.5-r1.ebuild
new file mode 100644
index 000000000000..c17e40580b5a
--- /dev/null
+++ b/app-misc/supercat/supercat-0.5.5-r1.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="3"
+
+DESCRIPTION="A text file colorizer using powerful regular expressions"
+HOMEPAGE="http://supercat.nosredna.net"
+SRC_URI="http://supercat.nosredna.net/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 ppc64 sparc x86 ~amd64-linux ~x86-linux ~x86-macos"
+IUSE=""
+
+src_configure() {
+ econf --with-system-directory="${EPREFIX}/etc/supercat"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "Install failed!"
+
+ dodoc ChangeLog || die
+}
diff --git a/app-misc/symlinks/Manifest b/app-misc/symlinks/Manifest
new file mode 100644
index 000000000000..d6b0c112efee
--- /dev/null
+++ b/app-misc/symlinks/Manifest
@@ -0,0 +1 @@
+DIST symlinks-1.4.tar.gz 4942 SHA256 b0bb689dd0a2c46d9a7dd111b053707aba7b9cf29c4f0bad32984b14bdbe0399 SHA512 d1efb1ca553cc9eb95f1d113e453acd22c9f0964eacec985c85c125de23ae9d636b9ced182c2673f455e5d897ad15a978a424170fce767ccc492443eac7f972f WHIRLPOOL 4161680c79b58aac890fbc60e48e1659b253a88c67ea8684fd3d2efc216d20c74b0bfb770a1c74cab49a3e9753be484f350f9726acfdcafcd76260f579348da8
diff --git a/app-misc/symlinks/files/symlinks-1.2-fix-implicit-declaration.patch b/app-misc/symlinks/files/symlinks-1.2-fix-implicit-declaration.patch
new file mode 100644
index 000000000000..a5e9b0d6314a
--- /dev/null
+++ b/app-misc/symlinks/files/symlinks-1.2-fix-implicit-declaration.patch
@@ -0,0 +1,11 @@
+diff -Naur symlinks-1.2-orig/symlinks.c symlinks-1.2/symlinks.c
+--- symlinks-1.2-orig/symlinks.c 1996-10-15 15:02:57.000000000 -0400
++++ symlinks-1.2/symlinks.c 2007-12-10 18:08:43.000000000 -0500
+@@ -3,6 +3,7 @@
+ #define _POSIX_SOURCE
+ #endif
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <malloc.h>
+ #include <string.h>
+ #include <fcntl.h>
diff --git a/app-misc/symlinks/metadata.xml b/app-misc/symlinks/metadata.xml
new file mode 100644
index 000000000000..8cefae8361fc
--- /dev/null
+++ b/app-misc/symlinks/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>shell-tools</herd>
+ <longdescription lang="en">
+ Symlinks scans directories for symbolic links and lists them on stdout.
+ Each link is prefixed with a classification of relative, absolute,
+ dangling, messy, lengthy or other_fs. Symlinks can also convert
+ absolute links (within the same filesystem) to relative links and can
+ delete messy and dangling links.
+ </longdescription>
+</pkgmetadata>
diff --git a/app-misc/symlinks/symlinks-1.4-r2.ebuild b/app-misc/symlinks/symlinks-1.4-r2.ebuild
new file mode 100644
index 000000000000..752ec8e05c0c
--- /dev/null
+++ b/app-misc/symlinks/symlinks-1.4-r2.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit flag-o-matic eutils toolchain-funcs
+
+DESCRIPTION="Scans for and fixes broken or messy symlinks"
+HOMEPAGE="http://www.ibiblio.org/pub/linux/utils/file/"
+SRC_URI="http://www.ibiblio.org/pub/linux/utils/file/${P}.tar.gz"
+
+LICENSE="freedist"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="static"
+
+src_prepare() {
+ # could be useful if being used to repair
+ # symlinks that are preventing shared libraries from
+ # functioning.
+ use static && append-flags -static
+ append-lfs-flags
+ sed 's:-O2::g' -i Makefile || die
+}
+
+src_compile() {
+ emake CC=$(tc-getCC) CFLAGS="${CPPFLAGS} ${CFLAGS} ${LDFLAGS}"
+}
+
+src_install() {
+ dobin symlinks
+ doman symlinks.8
+ dodoc symlinks.lsm
+}
diff --git a/app-misc/symlinks/symlinks-1.4.ebuild b/app-misc/symlinks/symlinks-1.4.ebuild
new file mode 100644
index 000000000000..c30aaedb3ddf
--- /dev/null
+++ b/app-misc/symlinks/symlinks-1.4.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit flag-o-matic eutils toolchain-funcs
+
+DESCRIPTION="Scans for and fixes broken or messy symlinks"
+HOMEPAGE="http://www.ibiblio.org/pub/linux/utils/file/"
+SRC_URI="http://www.ibiblio.org/pub/linux/utils/file/${P}.tar.gz"
+
+LICENSE="freedist"
+SLOT="0"
+KEYWORDS="alpha amd64 ~arm hppa ia64 ppc ppc64 sparc x86"
+IUSE="static"
+
+src_compile() {
+ # could be useful if being used to repair
+ # symlinks that are preventing shared libraries from
+ # functioning.
+ use static && append-flags -static
+ emake CC=$(tc-getCC) CFLAGS="${CFLAGS} ${LDFLAGS}" || die
+}
+
+src_install() {
+ dobin symlinks || die
+ doman symlinks.8 || die
+ dodoc symlinks.lsm || die
+}
diff --git a/app-misc/tablix/Manifest b/app-misc/tablix/Manifest
new file mode 100644
index 000000000000..498edc1680b8
--- /dev/null
+++ b/app-misc/tablix/Manifest
@@ -0,0 +1 @@
+DIST tablix2-0.3.5.tar.gz 4361294 SHA256 800ad85cb15d654a200a1b72969c219e29cbe5f55d4f092e316e52062083fd1d SHA512 bc5a892182185904ae836d4218668d23d9dfe7a593101ee26554212e71aabcb1d4a75fa2f09ce0635af46b03861759695418f4113abafe387de66b3e9be1b6d2 WHIRLPOOL c3ebae34df9844fa7d8a5c5702ae78e87504a201a8081ce40e273ca1b73b420dd2a5178cf956e859a95fa6d688f71283d819d52bcf1c56c8a6667ca8e57084b2
diff --git a/app-misc/tablix/metadata.xml b/app-misc/tablix/metadata.xml
new file mode 100644
index 000000000000..189ede33672d
--- /dev/null
+++ b/app-misc/tablix/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><email>maintainer-needed@gentoo.org</email></maintainer>
+<use>
+ <flag name='pvm'>Add support for parallel virtual machine
+ (<pkg>sys-cluster/pvm</pkg>)</flag>
+</use>
+</pkgmetadata>
diff --git a/app-misc/tablix/tablix-0.3.5-r1.ebuild b/app-misc/tablix/tablix-0.3.5-r1.ebuild
new file mode 100644
index 000000000000..8c1feee3393f
--- /dev/null
+++ b/app-misc/tablix/tablix-0.3.5-r1.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="2"
+inherit eutils autotools
+
+MY_PV="${PN}2-${PV}"
+
+DESCRIPTION="Tablix is a powerful free software kernel for solving general timetabling problems"
+HOMEPAGE="http://www.tablix.org/"
+SRC_URI="http://www.tablix.org/releases/stable/${MY_PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc x86"
+IUSE="pvm"
+
+DEPEND=">=dev-libs/libxml2-2.4.3
+ pvm? ( sys-cluster/pvm )"
+
+S="${WORKDIR}/${MY_PV}"
+
+pkg_setup() {
+ if ! use pvm; then
+ ewarn
+ ewarn "Without parallel virtual machine support, tablix will not be able"
+ ewarn "to solve even moderately complex problems. Even if you are using"
+ ewarn "a single machine, USE=pvm is highly recommended."
+ ewarn
+ epause 5
+ fi
+}
+
+src_prepare() {
+ sed -i "/^localedir/s:/locale:/share/${PN}/locale:" configure.in \
+ || die "sed failed"
+ sed -i "/^ACLOCAL_AMFLAGS/s:^:#:" Makefile.am \
+ || die "sed failed"
+ eautoreconf
+ # fix compilation when no optimizations are enabled wrt bug #240046
+ sed -i -e '32 d' -e '34 d' src/master.c || die "sed failed"
+ sed -i -e '31 d' -e '33 d' src/main.c || die "sed failed"
+ sed -i -e '30 d' -e '32 d' src/output.c || die "sed failed"
+
+}
+
+src_configure() {
+ econf \
+ $(use_with pvm pvm3) \
+ || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+ dodoc AUTHORS BUGS ChangeLog NEWS README
+ cd doc
+ dodoc manual.pdf modules.pdf modules2.pdf morphix.pdf
+}
diff --git a/app-misc/task/Manifest b/app-misc/task/Manifest
new file mode 100644
index 000000000000..7ab22c0d1fd0
--- /dev/null
+++ b/app-misc/task/Manifest
@@ -0,0 +1 @@
+DIST task-2.4.4.tar.gz 2352265 SHA256 7ff406414e0be480f91981831507ac255297aab33d8246f98dbfd2b1b2df8e3b SHA512 23565dc21bb5a05af5fe44235756ac5ecbd3b7cd94b2edc2ed0b0bd4efc5a12739cc8e3474174878595188ba726428b865dee3a79f0ad2550d5a0bc25415b103 WHIRLPOOL f071926d77a228289e2fb6a9e5c53e9db9e2d278879bf6249b04b0e7f7afe5f4195f9ea3fb42ac4aac318d0f53eda378ac24c73321d99a83c0f22295ad1dcaf4
diff --git a/app-misc/task/metadata.xml b/app-misc/task/metadata.xml
new file mode 100644
index 000000000000..fa0354c5b926
--- /dev/null
+++ b/app-misc/task/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer>
+ <email>radhermit@gentoo.org</email>
+ <name>Tim Harder</name>
+</maintainer>
+</pkgmetadata>
diff --git a/app-misc/task/task-2.4.4.ebuild b/app-misc/task/task-2.4.4.ebuild
new file mode 100644
index 000000000000..b3b3f3465567
--- /dev/null
+++ b/app-misc/task/task-2.4.4.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils cmake-utils bash-completion-r1
+
+DESCRIPTION="Taskwarrior is a command-line todo list manager"
+HOMEPAGE="http://taskwarrior.org/"
+SRC_URI="http://taskwarrior.org/download/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="amd64 ~arm x86 ~x64-macos"
+IUSE="gnutls vim-syntax zsh-completion"
+
+DEPEND="sys-libs/readline:0
+ gnutls? ( net-libs/gnutls )
+ elibc_glibc? ( sys-apps/util-linux )"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ # use the correct directory locations
+ sed -i "s:/usr/local/bin:${EPREFIX}/usr/bin:" \
+ scripts/add-ons/* || die
+
+ # don't automatically install scripts
+ sed -i '/scripts/d' CMakeLists.txt || die
+}
+
+src_configure() {
+ mycmakeargs=(
+ $(cmake-utils_use_use gnutls GNUTLS)
+ -DTASK_DOCDIR=share/doc/${PF}
+ -DTASK_RCDIR=share/${PN}/rc
+ )
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ newbashcomp scripts/bash/task.sh task
+
+ if use vim-syntax ; then
+ rm scripts/vim/README
+ insinto /usr/share/vim/vimfiles
+ doins -r scripts/vim/*
+ fi
+
+ if use zsh-completion ; then
+ insinto /usr/share/zsh/site-functions
+ doins scripts/zsh/*
+ fi
+
+ exeinto /usr/share/${PN}/scripts
+ doexe scripts/add-ons/*
+}
diff --git a/app-misc/tasque/Manifest b/app-misc/tasque/Manifest
new file mode 100644
index 000000000000..9c9ac6a365ea
--- /dev/null
+++ b/app-misc/tasque/Manifest
@@ -0,0 +1,2 @@
+DIST tasque-0.1.11.tar.xz 443516 SHA256 c2fa0932a8339aea1fc1faa419a714abd3e471ae40312803d63592f1584451aa SHA512 0f887f9f26bf755bdf03c7da07b98972674169a201d9f65a15b152f327f843dc630599462b4591f2e7c270a49753c31e262690c2a2b8742182bff569029d3ee2 WHIRLPOOL 307659e00e5046bd6dfc9c4cd1b672298ab7889efd25ae17477ed37947cd966cc6850177be2e47c7d8c8c7ccad4de4464188bb878f80daf4ebbc300221208440
+DIST tasque-0.1.12.tar.xz 461576 SHA256 db4d4a822cfa87ce8cf311189e17fa8fbda37e7c943874b6bf62c6a84b2d824d SHA512 441aa1a13d260e59ef07bb75a0b38b43cbcc30737589922ba4e697220fdd0a9bfe9af8c1c2484b6c0d68a4f33cb0f895822cb04e90d6782db66c0f80de50078b WHIRLPOOL 4ea0288712f596b720f38e5b0f20c4e1c43ab6b7cee206b814b2e272fcdd33ddcaf93b4aaafdef82e3fe2e1371176b7599161e1d32a262a4f92ef057bf14b2a3
diff --git a/app-misc/tasque/metadata.xml b/app-misc/tasque/metadata.xml
new file mode 100644
index 000000000000..0d070c987577
--- /dev/null
+++ b/app-misc/tasque/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>dotnet</herd>
+ <maintainer>
+ <email>suka@gentoo.org</email>
+ <name>Andreas Proschofsky</name>
+ </maintainer>
+ <use>
+ <flag name='rememberthemilk'>
+ Allows you to use http://www.rememberthemilk.com/ as your storage backend.
+ </flag>
+ <flag name='hiveminder'>
+ Allows you to use http://www.hiveminder.com/ as your storage backend.
+ </flag>
+ </use>
+</pkgmetadata>
diff --git a/app-misc/tasque/tasque-0.1.11.ebuild b/app-misc/tasque/tasque-0.1.11.ebuild
new file mode 100644
index 000000000000..08f916a47318
--- /dev/null
+++ b/app-misc/tasque/tasque-0.1.11.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+inherit eutils gnome.org mono
+
+DESCRIPTION="Tasky is a simple task management app (TODO list) for the Linux Desktop"
+HOMEPAGE="http://live.gnome.org/Tasque"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="+rememberthemilk +sqlite hiveminder debug"
+
+RDEPEND=">=dev-dotnet/gtk-sharp-2.12.7-r5
+ >=dev-dotnet/gnome-sharp-2.24.0
+ >=dev-dotnet/notify-sharp-0.4.0_pre20080912
+ >=dev-dotnet/ndesk-dbus-0.6
+ >=dev-dotnet/ndesk-dbus-glib-0.4
+ sqlite? ( dev-db/sqlite:3 )
+ "
+
+DEPEND="${RDEPEND}"
+
+pkg_setup() {
+ BACKEND=false
+ for usef in sqlite hiveminder rememberthemilk
+ do
+ use $usef && BACKEND=true
+ done
+ if [[ "${BACKEND}" != "true" ]]
+ then
+ eerror "You must select one of the following backends by enabling their useflag:"
+ eerror "sqlite ( uses a local, file-backed database to keep track of your TODO list )"
+ eerror "rememberthemilk ( integrates with www.rememberthemilk.com )"
+ eerror "hiveminder ( integrates with www.hiveminder.com )"
+ die "Please select a backend"
+ fi
+}
+
+src_configure() {
+ #http://bugzilla.gnome.org/show_bug.cgi?id=568910
+ export GTK_DOTNET_20_LIBS=" " \
+ GTK_DOTNET_20_CFLAGS=" "
+ econf --disable-backend-icecore \
+ --disable-backend-eds \
+ --disable-appindicator \
+ --enable-backend-rtm \
+ $(use_enable sqlite backend-sqlite) \
+ $(use_enable hiveminder backend-hiveminder) \
+ $(use_enable debug)
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die "emake failed"
+ dodoc NEWS TODO README AUTHORS || die "docs installation failed"
+ mv_command="cp -pPR" mono_multilib_comply
+}
diff --git a/app-misc/tasque/tasque-0.1.12.ebuild b/app-misc/tasque/tasque-0.1.12.ebuild
new file mode 100644
index 000000000000..b431d99c278f
--- /dev/null
+++ b/app-misc/tasque/tasque-0.1.12.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils gnome.org mono
+
+DESCRIPTION="Simple task management app (TODO list) for the Linux Desktop"
+HOMEPAGE="https://live.gnome.org/Tasque"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+rememberthemilk +sqlite hiveminder debug"
+
+LANGS="ca ca@valencia cs da de el en_GB eo es et fi fr gl hu id it ja lv nb nds nl pl
+ pt pt_BR ro ru sl sr sr@latin sv th tr zh_CN zh_TW"
+
+for lang in ${LANGS}; do
+ IUSE+=" linguas_${lang}"
+done
+
+REQUIRED_USE="|| ( rememberthemilk sqlite hiveminder )"
+
+RDEPEND=">=dev-dotnet/gtk-sharp-2.12.7-r5
+ >=dev-dotnet/notify-sharp-0.4.0_pre20080912
+ dev-dotnet/dbus-sharp
+ dev-dotnet/dbus-sharp-glib
+ sqlite? ( dev-db/sqlite:3 )"
+DEPEND="${RDEPEND}"
+
+src_configure() {
+ econf --disable-backend-icecore \
+ --disable-backend-eds \
+ --disable-appindicator \
+ --enable-backend-rtm \
+ $(use_enable sqlite backend-sqlite) \
+ $(use_enable hiveminder backend-hiveminder) \
+ $(use_enable debug)
+}
+
+src_install() {
+ default
+ mv_command="cp -pPR" mono_multilib_comply
+ einfo "Cleaning up locales..."
+ for lang in ${LANGS}; do
+ use "linguas_${lang}" && {
+ einfo "- keeping ${lang}"
+ continue
+ }
+ rm -Rf "${D}"/usr/share/locale/"${lang}" || die
+ done
+}
diff --git a/app-misc/tdfsb/Manifest b/app-misc/tdfsb/Manifest
new file mode 100644
index 000000000000..90e112043279
--- /dev/null
+++ b/app-misc/tdfsb/Manifest
@@ -0,0 +1 @@
+DIST tdfsb-0.0.10.tar.gz 35630 SHA256 91283a0863f7c38028346ab4edfd180d0ce6cee3f1a7c44bf3c181a74063f4c3 SHA512 4bfde530761bbc8373f2a9cc8bc5a4ea721ac564e7440d67ebf0c8b019c553b2e1288db86e54aaf111253decdbd4df93ea812fd5a70fd95acf11ff702387a7eb WHIRLPOOL 4058bbe99eb6d6e0bfba5d36e062c2e802285e0e99c5ee622f767fb898c82ca6f3e40d96107b9417013aca8a63158cccabdee4e120cc78f0c304c56074263969
diff --git a/app-misc/tdfsb/files/tdfsb-0.0.10-asneeded.patch b/app-misc/tdfsb/files/tdfsb-0.0.10-asneeded.patch
new file mode 100644
index 000000000000..c84cc4d5f17d
--- /dev/null
+++ b/app-misc/tdfsb/files/tdfsb-0.0.10-asneeded.patch
@@ -0,0 +1,23 @@
+diff --git a/compile.sh b/compile.sh
+index fcd6583..2480364 100755
+--- a/compile.sh
++++ b/compile.sh
+@@ -26,15 +26,15 @@ ARGS2=$($SDL_CONFIG --cflags);
+ if uname -s | grep -i -c "LINUX" > /dev/null; then
+ echo "GNU/Linux detected.";
+ echo "compiling...";
+- gcc $ARGS1 $ARGS2 -I/usr/local/include -I/usr/include/ -I/usr/X11R6/include -L/usr/lib/ -L/usr/local/lib/ -L/usr/X11R6/lib -lSDL_image -lGL -lGLU -lglut -lXmu -lXi -lXext -lX11 -lm -lsmpeg -D_THREAD_SAFE -O2 -x c -o tdfsb tdfsb.c;
++ gcc $ARGS2 -I/usr/local/include -I/usr/include/ -I/usr/X11R6/include -L/usr/lib/ -L/usr/local/lib/ -L/usr/X11R6/lib -D_THREAD_SAFE -O2 -x c -o tdfsb tdfsb.c $ARGS1 -lSDL_image -lGL -lGLU -lglut -lXmu -lXi -lXext -lX11 -lm -lsmpeg;
+ elif uname -s | grep -i -c "BEOS" > /dev/null; then
+ echo "BeOS detected.";
+ echo "compiling...";
+- gcc $ARGS1 $ARGS2 -I/boot/develop/tools/gnupro/include/ -I/boot/develop/headers/be/opengl/ -L/boot/home/config/lib -L/boot/develop/tools/gnupro/lib/ -lSDL_image -lGL -lglut -lsmpeg -D_THREAD_SAFE -O2 -x c -o tdfsb tdfsb.c;
++ gcc $ARGS2 -I/boot/develop/tools/gnupro/include/ -I/boot/develop/headers/be/opengl/ -L/boot/home/config/lib -L/boot/develop/tools/gnupro/lib/ -D_THREAD_SAFE -O2 -x c -o tdfsb tdfsb.c $ARGS1 -lSDL_image -lGL -lglut -lsmpeg;
+ elif uname -s | grep -i -c "BSD" > /dev/null; then
+ echo "BSD detected.";
+ echo "compiling...";
+- gcc $ARGS1 $ARGS2 -I/usr/local/include -I/usr/include/ -I/usr/X11R6/include -L/usr/lib/ -L/usr/local/lib/ -L/usr/X11R6/lib -lSDL_image -lGL -lGLU -lglut -lXmu -lXi -lXext -lX11 -lm -lsmpeg -D_THREAD_SAFE -O2 -x c -o tdfsb tdfsb.c;
++ gcc $ARGS2 -I/usr/local/include -I/usr/include/ -I/usr/X11R6/include -L/usr/lib/ -L/usr/local/lib/ -L/usr/X11R6/lib -D_THREAD_SAFE -O2 -x c -o tdfsb tdfsb.c $ARGS1 -lSDL_image -lGL -lGLU -lglut -lXmu -lXi -lXext -lX11 -lm -lsmpeg;
+ else
+ echo "Unknown OS. If you are running Linux, BeOS or";
+ echo "FreeBSD please send me the output of 'uname -s'."
diff --git a/app-misc/tdfsb/files/tdfsb-0.0.10-debugging.patch b/app-misc/tdfsb/files/tdfsb-0.0.10-debugging.patch
new file mode 100644
index 000000000000..e7f24d89ebf4
--- /dev/null
+++ b/app-misc/tdfsb/files/tdfsb-0.0.10-debugging.patch
@@ -0,0 +1,28 @@
+diff --git a/compile.sh b/compile.sh
+index 2480364..96e9bd2 100755
+--- a/compile.sh
++++ b/compile.sh
+@@ -23,18 +23,20 @@ echo "Using $SDL_CONFIG.";
+ ARGS1=$($SDL_CONFIG --libs);
+ ARGS2=$($SDL_CONFIG --cflags);
+
++set -x
++
+ if uname -s | grep -i -c "LINUX" > /dev/null; then
+ echo "GNU/Linux detected.";
+ echo "compiling...";
+- gcc $ARGS2 -I/usr/local/include -I/usr/include/ -I/usr/X11R6/include -L/usr/lib/ -L/usr/local/lib/ -L/usr/X11R6/lib -D_THREAD_SAFE -O2 -x c -o tdfsb tdfsb.c $ARGS1 -lSDL_image -lGL -lGLU -lglut -lXmu -lXi -lXext -lX11 -lm -lsmpeg;
++ gcc $ARGS2 -I/usr/local/include -I/usr/include/ -I/usr/X11R6/include -L/usr/lib/ -L/usr/local/lib/ -L/usr/X11R6/lib -D_THREAD_SAFE -O2 -x c -o tdfsb tdfsb.c $ARGS1 -lSDL_image -lGL -lGLU -lglut -lXmu -lXi -lXext -lX11 -lm -lsmpeg || exit 1
+ elif uname -s | grep -i -c "BEOS" > /dev/null; then
+ echo "BeOS detected.";
+ echo "compiling...";
+- gcc $ARGS2 -I/boot/develop/tools/gnupro/include/ -I/boot/develop/headers/be/opengl/ -L/boot/home/config/lib -L/boot/develop/tools/gnupro/lib/ -D_THREAD_SAFE -O2 -x c -o tdfsb tdfsb.c $ARGS1 -lSDL_image -lGL -lglut -lsmpeg;
++ gcc $ARGS2 -I/boot/develop/tools/gnupro/include/ -I/boot/develop/headers/be/opengl/ -L/boot/home/config/lib -L/boot/develop/tools/gnupro/lib/ -D_THREAD_SAFE -O2 -x c -o tdfsb tdfsb.c $ARGS1 -lSDL_image -lGL -lglut -lsmpeg || exit 1
+ elif uname -s | grep -i -c "BSD" > /dev/null; then
+ echo "BSD detected.";
+ echo "compiling...";
+- gcc $ARGS2 -I/usr/local/include -I/usr/include/ -I/usr/X11R6/include -L/usr/lib/ -L/usr/local/lib/ -L/usr/X11R6/lib -D_THREAD_SAFE -O2 -x c -o tdfsb tdfsb.c $ARGS1 -lSDL_image -lGL -lGLU -lglut -lXmu -lXi -lXext -lX11 -lm -lsmpeg;
++ gcc $ARGS2 -I/usr/local/include -I/usr/include/ -I/usr/X11R6/include -L/usr/lib/ -L/usr/local/lib/ -L/usr/X11R6/lib -D_THREAD_SAFE -O2 -x c -o tdfsb tdfsb.c $ARGS1 -lSDL_image -lGL -lGLU -lglut -lXmu -lXi -lXext -lX11 -lm -lsmpeg || exit 1
+ else
+ echo "Unknown OS. If you are running Linux, BeOS or";
+ echo "FreeBSD please send me the output of 'uname -s'."
diff --git a/app-misc/tdfsb/metadata.xml b/app-misc/tdfsb/metadata.xml
new file mode 100644
index 000000000000..e8adccd3c655
--- /dev/null
+++ b/app-misc/tdfsb/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer>
+ <email>angelos@gentoo.org</email>
+ <name>Christoph Mende</name>
+</maintainer>
+</pkgmetadata>
diff --git a/app-misc/tdfsb/tdfsb-0.0.10.ebuild b/app-misc/tdfsb/tdfsb-0.0.10.ebuild
new file mode 100644
index 000000000000..4b6c7651733a
--- /dev/null
+++ b/app-misc/tdfsb/tdfsb-0.0.10.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="SDL based graphical file browser"
+HOMEPAGE="http://www.determinate.net/webdata/seg/tdfsb.html"
+SRC_URI="http://www.determinate.net/webdata/data/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="alpha amd64 ppc -sparc x86"
+IUSE=""
+
+DEPEND="media-libs/smpeg
+ media-libs/sdl-image
+ media-libs/freeglut"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-asneeded.patch \
+ "${FILESDIR}"/${P}-debugging.patch
+
+ sed -i -e "s:-O2:${CFLAGS} ${LDFLAGS}:" \
+ -e "s:gcc:$(tc-getCC):" "${S}"/compile.sh || die
+}
+
+src_compile() {
+ ./compile.sh || die "compile failed"
+}
+
+src_install() {
+ dobin tdfsb
+ dodoc ChangeLog README
+}
diff --git a/app-misc/tdl/Manifest b/app-misc/tdl/Manifest
new file mode 100644
index 000000000000..eb231c0f6916
--- /dev/null
+++ b/app-misc/tdl/Manifest
@@ -0,0 +1,2 @@
+DIST tdl-1.5.2.tar.gz 66057 SHA256 b43ed73bbdc77527c164b7e99f28c5fe2b7626d30adace78d8c40cca74f7fbfb SHA512 8c07a5b6a5434bb567a2d68b6e0215bbfa7be3f7176ae1042652ac18684289117230af25d8d161fcf1ba27d9b740fd3fcd43c3213467b533de64390686481fe0 WHIRLPOOL e1e136bc01716e41b56df16caa6bc9bfa7742abf0b50a376a9aea9ddec61931d064eef2a1d59a3b1fa3eacf49ffd9164fd95d70af2811d6fb8fe1447c9fecde5
+DIST tdl-screenshot.png.tar 20480 SHA256 9deb053eebc426cd3fd694cfa953043faf7da86ff65c498a135d01bafe5d68c4 SHA512 caca9793626b320ded4c7f16425b98e4bfde9ab0ca3c1bea60ecc8aaa8db080ab6fc3c474aef4d56e394b6415ec1162671329912aa22452dbd5dc72b50c7c8f6 WHIRLPOOL e2dc07ecf38f9a1945299c919f797d946ba99c32274b132b3deb6d0889a474138bff2ed485a901188ec67917523fa9818e2692b21ba12e4a16ded6c5519b4c41
diff --git a/app-misc/tdl/files/1.5.2-ldflags.patch b/app-misc/tdl/files/1.5.2-ldflags.patch
new file mode 100644
index 000000000000..d807fdf02246
--- /dev/null
+++ b/app-misc/tdl/files/1.5.2-ldflags.patch
@@ -0,0 +1,13 @@
+diff --git a/Makefile.in b/Makefile.in
+index 46b05ca..eb9b656 100644
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -52,7 +52,7 @@ OBJ = main.o io.o add.o done.o remove.o move.o list.o \
+ all : tdl
+
+ tdl : $(OBJ)
+- $(CC) $(CFLAGS) -o tdl $(OBJ) $(LIB_READLINE)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o tdl $(OBJ) $(LIB_READLINE)
+
+ %.o : %.c
+ $(CC) $(CFLAGS) -c $<
diff --git a/app-misc/tdl/files/tdl-1.5.2-list.c.patch b/app-misc/tdl/files/tdl-1.5.2-list.c.patch
new file mode 100644
index 000000000000..d2cc39bd49c1
--- /dev/null
+++ b/app-misc/tdl/files/tdl-1.5.2-list.c.patch
@@ -0,0 +1,34 @@
+--- tdl-1.5.2.orig/list.c
++++ tdl-1.5.2/list.c
+@@ -75,14 +75,15 @@
+ static void print_timestamp(int timestamp, char *leader, int indent, int monochrome)/*{{{*/
+ {
+ char buffer[32];
+- time_t now;
++ time_t now, timestamp2;
+ long diff, days_ago, days_ahead;
+
+ now = time(NULL);
+ diff = now - timestamp;
+ days_ago = (diff + ((diff > 0) ? 43200 : -43200)) / 86400;
++ timestamp2 = (time_t) timestamp;
+ strftime(buffer, sizeof(buffer), "%a %d %b %Y %H:%M",
+- localtime((time_t *)&timestamp));
++ localtime(&timestamp2));
+ do_indent(indent+2);
+ if (days_ago < 0) {
+ days_ahead = - days_ago;
+@@ -524,6 +525,13 @@
+ * Otherwise, use the priority from the specified node, _except_ when
+ * that is higher than normal, in which case use normal. */
+ prio_to_use = (prio_set) ? prio : ((node_prio > prio) ? prio : node_prio);
++ /* if listing up-to-some-depth (option -N) and also
++ * beginning at some top-level (option NNN) then depth must be
++ * decremented by 1
++ * see: http://bugs.debian.org/364083 */
++ if (options.depth > 0) {
++ options.depth--;
++ }
+ list_chain(&n->kids, INDENT_TAB, 0, &options, index_buffer, prio_to_use, now, hits);
+ }
+ } else if ((y[0] == '-') && (y[1] == '-')) {
diff --git a/app-misc/tdl/files/tdl-1.5.2-main.c.patch b/app-misc/tdl/files/tdl-1.5.2-main.c.patch
new file mode 100644
index 000000000000..c195a1e5cb7c
--- /dev/null
+++ b/app-misc/tdl/files/tdl-1.5.2-main.c.patch
@@ -0,0 +1,178 @@
+--- tdl-1.5.2.orig/main.c
++++ tdl-1.5.2/main.c
+@@ -80,7 +80,7 @@
+ return;
+ }
+ /*}}}*/
+-static volatile void unlock_and_exit(int code)/*{{{*/
++static void unlock_and_exit(int code)/*{{{*/
+ {
+ unlock_database();
+ exit(code);
+@@ -237,22 +237,91 @@
+
+ }
+ /*}}}*/
+-static void rename_database(char *path)/*{{{*/
++static mode_t get_mode(const char *path); /* prototype */
++/*}}}*/
++static int copy_file_contents(char *pathsrc, char *pathdest) {
++ int src, dest;
++ ssize_t rdsize = 1;
++ char buf[4096];
++
++ src = open(pathsrc, O_RDONLY);
++ if (src == -1) {
++ perror("warning, couldn't open database");
++ return 0;
++ }
++ dest = open(pathdest, O_WRONLY | O_CREAT, get_mode(pathsrc));
++ if (dest == -1) {
++ perror("warning, couldn't open/create backup database");
++ close(src);
++ return 0;
++ }
++ if (ftruncate(dest,0) != 0) {
++ perror("warning, couldn't truncate backup database");
++ close(src);
++ close(dest);
++ return 0;
++ }
++ lseek(src,0,SEEK_SET);
++ lseek(dest,0,SEEK_SET);
++ while (rdsize > 0) {
++ rdsize = read(src, buf, 4096);
++ if (rdsize == -1) {
++ perror("warning, error reading database");
++ close(src);
++ close(dest);
++ return 0;
++ }
++ if (rdsize > 0) {
++ if (write(dest, buf, rdsize) != rdsize) {
++ perror("warning, error writing to backup database");
++ close(src);
++ close(dest);
++ return 0;
++ }
++ }
++ }
++ close(src);
++ close(dest);
++ return 1;
++}
++/*}}}*/
++static int path_is_symlink(char *path) {
++ int i;
++ struct stat s;
++ i = lstat(path, &s);
++ if ((i == 0) && (S_ISLNK(s.st_mode))) {
++ return 1; /* is a symlink */
++ }
++ return 0; /* not a symlink */
++}
++/*}}}*/
++static int rename_database(char *path)/*{{{*/
+ {
+- int len;
++ /* the rename_database function returns 1 if database or/and
++ * database backup file are symlinks; otherwise returns 0 */
++ int len, symlinks;
+ char *pathbak;
+-
++
+ len = strlen(path);
+ pathbak = new_array(char, len + 5);
+ strcpy(pathbak, path);
+ strcat(pathbak, ".bak");
+- if (rename(path, pathbak) < 0) {
+- if (is_noisy) {
+- perror("warning, couldn't save backup database:");
++
++ symlinks = path_is_symlink(path) | path_is_symlink(pathbak);
++
++ if (symlinks) {
++ if (access(path,F_OK) == 0) {
++ copy_file_contents(path, pathbak);
++ }
++ } else {
++ if (rename(path, pathbak) < 0) {
++ if (is_noisy) {
++ perror("warning, couldn't save backup database:");
++ }
+ }
+ }
+ free(pathbak);
+- return;
++ return symlinks;
+ }
+ /*}}}*/
+ static char *executable_name(char *argv0)/*{{{*/
+@@ -315,7 +384,7 @@
+ /*}}}*/
+ static void save_database(char *path)/*{{{*/
+ {
+- FILE *out;
++ FILE *out = NULL;
+ int out_fd;
+ mode_t database_mode;
+ if (is_loaded && currently_dirty) {
+@@ -324,20 +393,34 @@
+ /* The next line only used to happen if the command wasn't 'create'.
+ * However, it should quietly fail for create, where the existing database
+ * doesn't exist */
+- rename_database(path);
+-
+- /* Open database this way so that the permissions from the existing
+- database can be duplicated onto the new one in way free of race
+- conditions. */
+- out_fd = open(path, O_WRONLY | O_CREAT | O_EXCL, database_mode);
+- if (out_fd < 0) {
+- fprintf(stderr, "Could not open new database %s for writing : %s\n",
+- path, strerror(errno));
+- unlock_and_exit(1);
++ if (rename_database(path) == 0) {
++ /* database is a regular file */
++ /* Open database this way so that the permissions from the existing
++ database can be duplicated onto the new one in way free of race
++ conditions. */
++ out_fd = open(path, O_WRONLY | O_CREAT | O_EXCL, database_mode);
++ if (out_fd < 0) {
++ fprintf(stderr, "Could not open new database %s for writing : %s\n",
++ path, strerror(errno));
++ unlock_and_exit(1);
++ }
+ } else {
+- /* Normal case */
+- out = fdopen(out_fd, "wb");
++ /* database and/or backup database are symlinks */
++ /* we should truncate existing file and write its contents */
++ out_fd = open(path, O_WRONLY | O_CREAT, database_mode);
++ if (out_fd < 0) {
++ fprintf(stderr, "Could not open database %s for writing : %s\n",
++ path, strerror(errno));
++ unlock_and_exit(1);
++ } else {
++ /* Normal case */
++ if (ftruncate(out_fd, 0) != 0) {
++ perror("warning, couldn't truncate database:");
++ unlock_and_exit(1);
++ }
++ }
+ }
++ out = fdopen(out_fd, "wb");
+ if (!out) {
+ fprintf(stderr, "Cannot open database %s for writing\n", path);
+ unlock_and_exit(1);
+@@ -728,6 +811,11 @@
+
+ if (!is_loaded && cmds[index].load_db) {
+ load_database(current_database_path);
++ if (is_interactive && (!is_loaded)) {
++ fprintf(stderr, "error: could not open database. please create a "
++ "database with 'tdl create' before using this tdl command\n");
++ unlock_and_exit(-1);
++ }
+ }
+
+ pp = is_tdl ? (p + 1) : p;
diff --git a/app-misc/tdl/files/tdl-1.5.2-man.patch b/app-misc/tdl/files/tdl-1.5.2-man.patch
new file mode 100644
index 000000000000..955201a2fe2f
--- /dev/null
+++ b/app-misc/tdl/files/tdl-1.5.2-man.patch
@@ -0,0 +1,507 @@
+--- tdl-1.5.2.orig/tdl.1
++++ tdl-1.5.2/tdl.1
+@@ -2,25 +2,25 @@
+ .SH NAME
+ tdl \- To do list manager
+ .SH SYNOPSIS
+-tdl [-q]
++tdl [\-q]
+ .br
+-tdl [-q] add|edit|defer|log
++tdl [\-q] add|edit|defer|log
+ .br
+-tdl [-q] list|done|undo|report
++tdl [\-q] list|done|undo|report
+ .br
+-tdl [-q] remove|above|below|into|clone|copyto
++tdl [\-q] remove|above|below|into|clone|copyto
+ .br
+-tdl [-q] postpone|ignore|open
++tdl [\-q] postpone|ignore|open
+ .br
+-tdl [-q] which|version|help
++tdl [\-q] which|version|help
+ .br
+-tdla [-q]
++tdla [\-q]
+ .br
+-tdll [-q]
++tdll [\-q]
+ .br
+-tdld [-q]
++tdld [\-q]
+ .br
+-tdlg [-q]
++tdlg [\-q]
+
+ .SH DESCRIPTION
+ A program for managing a to-do list.
+@@ -68,9 +68,9 @@
+ modified database back to the disk. Only use it if you want to discard
+ all changes made in this tdl run.
+
+-.pp
++.PP
+ All forms may take
+-.I -q
++.I \-q
+ as the first command line argument. Currently, this suppresses the warning
+ message if no existing database can be found. The intended use is for using
+ .B tdll
+@@ -104,7 +104,7 @@
+ appear as the last children of the parent node afterwards.
+ .P
+ .ce 1
+---ooOOoo--
++\-\-ooOOoo-\-
+ .PP
+ .B tdl add
+ .I [@datespec]
+@@ -156,7 +156,7 @@
+ environment is set, in which case this specifies the path to use).
+ .P
+ .ce 1
+---ooOOoo--
++\-\-ooOOoo-\-
+ .PP
+ .B tdl below
+ .I index_to_insert_below
+@@ -173,7 +173,7 @@
+ appear as the first children of the parent node afterwards.
+ .P
+ .ce 1
+---ooOOoo--
++\-\-ooOOoo-\-
+ .PP
+ .B tdl clone
+ .I index_to_clone ...
+@@ -185,7 +185,7 @@
+ to change its text.
+ .P
+ .ce 1
+---ooOOoo--
++\-\-ooOOoo-\-
+ .PP
+ .B tdl copyto
+ .I new_parent_index
+@@ -197,7 +197,7 @@
+ children of an existing entry, rather than making them new top level entries.
+ .P
+ .ce 1
+---ooOOoo--
++\-\-ooOOoo-\-
+ .PP
+ .B tdl create
+ .PP
+@@ -217,7 +217,7 @@
+ TDL_DATABASE.
+ .P
+ .ce 1
+---ooOOoo--
++\-\-ooOOoo-\-
+ .PP
+ .B tdl defer
+ .I [@datespec]
+@@ -233,7 +233,7 @@
+ .P
+ which defers entries 1, 2.1 and all its children, and 5 until the following Friday.
+ To list deferred entries, use
+-.I list -p
++.I list \-p
+ , to defer entries indefinitely, see
+ .I postpone
+ command.
+@@ -242,7 +242,7 @@
+ command.
+ .P
+ .ce 1
+---ooOOoo--
++\-\-ooOOoo-\-
+ .PP
+ .B tdl done
+ .I @datespec
+@@ -278,7 +278,7 @@
+ section later in this page.
+ .P
+ .ce 1
+---ooOOoo--
++\-\-ooOOoo-\-
+ .PP
+ .B tdl edit
+ .I index_to_change
+@@ -294,7 +294,7 @@
+ command.
+ .P
+ .ce 1
+---ooOOoo--
++\-\-ooOOoo-\-
+ .PP
+ .B exit
+ .PP
+@@ -308,7 +308,7 @@
+ command, which loses all updates made during the current tdl run.
+ .P
+ .ce 1
+---ooOOoo--
++\-\-ooOOoo-\-
+ .PP
+ .B tdl export
+ .I filename
+@@ -322,14 +322,14 @@
+ the original database.
+ .P
+ .ce 1
+---ooOOoo--
++\-\-ooOOoo-\-
+ .PP
+ .B tdl help
+ .PP
+ This command displays a summary of use of each of the commands.
+ .P
+ .ce 1
+---ooOOoo--
++\-\-ooOOoo-\-
+ .PP
+ .B tdl ignore
+ .I index_to_ignore ...
+@@ -353,7 +353,7 @@
+ it
+ .P
+ .ce 1
+---ooOOoo--
++\-\-ooOOoo-\-
+ .PP
+ .B tdl import
+ .I filename
+@@ -367,7 +367,7 @@
+ wanted to merge their entries to form one combo database.
+ .P
+ .ce 1
+---ooOOoo--
++\-\-ooOOoo-\-
+ .PP
+ .B tdl into
+ .I new_parent_index
+@@ -381,23 +381,23 @@
+ argument has ".0" appended to it.
+ .P
+ .ce 1
+---ooOOoo--
++\-\-ooOOoo-\-
+ .PP
+ .B tdl list
+-.I [-v]
+-.I [-a]
+-.I [-p]
+-.I [-m]
+-.I [-1...9]
++.I [\-v]
++.I [\-a]
++.I [\-p]
++.I [\-m]
++.I [\-1...9]
+ .I [<min-priority>]
+ .I [<parent_index>|<search_conditions>...]
+ .br
+ .B tdll
+-.I [-v]
+-.I [-a]
+-.I [-p]
+-.I [-m]
+-.I [-1...9]
++.I [\-v]
++.I [\-a]
++.I [\-p]
++.I [\-m]
++.I [\-1...9]
+ .I [<min-priority>]
+ .I [<parent_index>|<search_conditions...]
+ .PP
+@@ -410,13 +410,13 @@
+ .B done
+ and which don't have start times deferred into the future are shown. If you
+ want to display all entries, include the
+-.B -a
++.B \-a
+ option (which means 'all'). If you want to display the dates and times when
+ the entries were added and/or done, include the
+-.B -v
++.B \-v
+ option (which means 'verbose').
+ The
+-.B -p
++.B \-p
+ option stands for postponed. It means that tasks which are 'deferred' or 'postponed'
+ are shown as well as open tasks.
+ .PP
+@@ -431,14 +431,14 @@
+ top node of each part of the database you want to show. So if your database
+ contains entries with indices 1, 2, 2.1, 2.2, 2.2.1, 3 and 4, the command
+ .PP
+-tdl list -a 2
++tdl list \-a 2
+ .PP
+ will show all entries 2, 2.1, 2.2 and 2.2.1, whether or not they are completed.
+ .PP
+ Also by default, all entries in the database, at any depth, will be shown. If
+ you only wish to show 'top-level' entries, for example, you can use
+ .PP
+-tdl list -1
++tdl list \-1
+ .PP
+ This lists level-1 entries. Any level-1 entry with hidden child entries
+ underneath it will show a summary of how many such children there are. For
+@@ -454,11 +454,11 @@
+ the normal 'negative index' method can't be used to specify an entry a certain
+ distance from the end of the list. If you want to do this, use a syntax like
+ .PP
+-tdl list -- -1
++tdl list \-\- \-1
+ .PP
+ to show the last index in the array, or
+ .PP
+-tdl list -2 -- -3 -2 -1
++tdl list \-2 \-\- \-3 \-2 \-1
+ .PP
+ to show level-1 and level-2 entries within the last 3 level-1 entries in the
+ list.
+@@ -489,7 +489,7 @@
+ approximate matches with keys up to 31 characters.
+ .PP
+ By default, the listing is produced with colour highlighting. The
+-.B -m
++.B \-m
+ option can be used to produce a monochrome listing instead. Alternatively, the
+ .B TDL_LIST_MONOCHROME
+ enviroment variable can be set (to any value) to achieve the same effect.
+@@ -512,7 +512,7 @@
+ .TE
+ .P
+ .ce 1
+---ooOOoo--
++\-\-ooOOoo-\-
+ .PP
+ .B tdl log
+ .br
+@@ -530,7 +530,7 @@
+ command.
+ .P
+ .ce 1
+---ooOOoo--
++\-\-ooOOoo-\-
+ .PP
+ .B narrow
+ .I new_root_index
+@@ -562,7 +562,7 @@
+ wouldn't make much sense).
+ .P
+ .ce 1
+---ooOOoo--
++\-\-ooOOoo-\-
+ .PP
+ .B tdl open
+ .I index_to_reopen[...] ...
+@@ -573,7 +573,7 @@
+ current time.
+ .P
+ .ce 1
+---ooOOoo--
++\-\-ooOOoo-\-
+ .PP
+ .B tdl postpone
+ .I index_to_postpone[...] ...
+@@ -586,7 +586,7 @@
+ command.
+ .P
+ .ce 1
+---ooOOoo--
++\-\-ooOOoo-\-
+ .PP
+ .B tdl pri
+ .I new_priority
+@@ -602,7 +602,7 @@
+ command.
+ .P
+ .ce 1
+---ooOOoo--
++\-\-ooOOoo-\-
+ .PP
+ .B tdl purge
+ .I since_epoch
+@@ -626,7 +626,7 @@
+ descendents. The default is to purge the entire database.
+ .P
+ .ce 1
+---ooOOoo--
++\-\-ooOOoo-\-
+ .PP
+ .B quit
+ .PP
+@@ -642,7 +642,7 @@
+ The main use for the quit command would be to avoid damaging the database if a serious error had been made.
+ .P
+ .ce 1
+---ooOOoo--
++\-\-ooOOoo-\-
+ .PP
+ .B tdl remove
+ .I index_to_remove ...
+@@ -659,7 +659,7 @@
+ descendents. This provides a quick way to remove a whole sub-tree of tasks.
+ .P
+ .ce 1
+---ooOOoo--
++\-\-ooOOoo-\-
+ .PP
+ .B tdl report
+ .I start_time
+@@ -688,12 +688,12 @@
+ will list all tasks completed between 2 and 1 weeks ago.
+ .PP
+ Where a child entry has been completed in the reporting period, but its parent
+-has not been completed, the parent text in the report will be surrounded by
+-'[[' and ']]'. To give one example, this will happen if the parent has other
++has not been completed, the parent text in the report will be surrounded by '[['
++and ']]'. To give one example, this will happen if the parent has other
+ child entries that haven't been completed yet.
+ .P
+ .ce 1
+---ooOOoo--
++\-\-ooOOoo-\-
+ .PP
+ .B revert
+ .PP
+@@ -706,7 +706,7 @@
+ The revert command does not take any arguments.
+ .P
+ .ce 1
+---ooOOoo--
++\-\-ooOOoo-\-
+ .PP
+ .B save
+ .PP
+@@ -728,7 +728,7 @@
+ The save command does not take any arguments.
+ .P
+ .ce 1
+---ooOOoo--
++\-\-ooOOoo-\-
+ .PP
+ .B tdl undo
+ .I index_of_entry_to_undo ...
+@@ -742,7 +742,7 @@
+ descendents. This provides a quick way to re-open a whole sub-tree of tasks.
+ .P
+ .ce 1
+---ooOOoo--
++\-\-ooOOoo-\-
+ .PP
+ .B tdl usage
+ .PP
+@@ -751,21 +751,21 @@
+ (q.v.)
+ .P
+ .ce 1
+---ooOOoo--
++\-\-ooOOoo-\-
+ .PP
+ .B tdl version
+ .PP
+ Show the version number of the software.
+ .P
+ .ce 1
+---ooOOoo--
++\-\-ooOOoo-\-
+ .PP
+ .B tdl which
+ .PP
+ Show the filename of the database that tdl accesses in the current context.
+ .P
+ .ce 1
+---ooOOoo--
++\-\-ooOOoo-\-
+ .PP
+ .B widen
+ .I n_level
+@@ -831,30 +831,30 @@
+ .TS
+ tab(&);
+ l l.
+--1h & exactly 1 hour ago
+--2d & exactly 2 days ago
++\-1h & exactly 1 hour ago
++\-2d & exactly 2 days ago
+ +1w & exactly 1 week in the future
+ +1m & exactly 1 month (30 days) in the future
+ +2y & exactly 2 years in the future
+--1d-0815 & 08:15am yesterday
++\-1d-0815 & 08:15am yesterday
+ +1d-08 & 8am tomorrow
+ +1w-08 & 8am on the same day as today next week
+ +6h-08 & 8am on the day containing the time 6 hours ahead of now
+-\.-08 & 8am today
+-\.-20 & 8pm today
++\.\-08 & 8am today
++\.\-20 & 8pm today
+ 20011020 & absolute : 12 noon on 20th October 2001
+ 011020 & absolute : 12 noon on 20th October 2001 (current century)
+ 1020 & absolute : 12 noon on 20th October 2001 (current century and year)
+ 20 & absolute : 12 noon on 20th October 2001 (current century, year and month)
+-20011020-081500 & absolute : 08:15am on 20th October 2001
+-20011020-0815 & absolute : 08:15am on 20th October 2001 (seconds=0)
+-20011020-08 & absolute : 08:00am on 20th October 2001 (minutes=seconds=0)
+-011020-08 & absolute : 08:00am on 20th October 2001 (minutes=seconds=0, current century)
++20011020\-081500 & absolute : 08:15am on 20th October 2001
++20011020\-0815 & absolute : 08:15am on 20th October 2001 (seconds=0)
++20011020\-08 & absolute : 08:00am on 20th October 2001 (minutes=seconds=0)
++011020\-08 & absolute : 08:00am on 20th October 2001 (minutes=seconds=0, current century)
+ etc & (see below)
+--sun & 12 noon on the previous Sunday
++\-sun & 12 noon on the previous Sunday
+ +sat & 12 noon on the following Saturday
+ +sat-08 & 8am on the following Saturday
+--tue-0815 & 08:15am on the previous Tuesday
++\-tue-0815 & 08:15am on the previous Tuesday
+ etc & (see below)
+ .TE
+ .PP
+@@ -876,7 +876,7 @@
+ of the more uses of this mode are rather far-fetched.
+ .PP
+ For the weekday and relative formats, the sign is actually optional. The
+-default sign (implying past (-) or future (+)) will then be assumed depending on
++default sign (implying past (\-) or future (+)) will then be assumed depending on
+ the command as shown below:
+
+ .PP
+@@ -886,9 +886,9 @@
+ Command & Default & Reason
+ _
+ add & + & Add entries with deferred start times
+-done & - & Entries have been completed at some time in the past
+-report & - & Reporting on earlier completed tasks not future ones
+-purge & - & Tasks won't be completed in the future, so no need to purge future ones
++done & \- & Entries have been completed at some time in the past
++report & \- & Reporting on earlier completed tasks not future ones
++purge & \- & Tasks won't be completed in the future, so no need to purge future ones
+ .TE
+
+ .SH HOMEPAGE
+@@ -943,16 +943,7 @@
+ .IP
+ cd project1
+ .br
+-ln -s ../project2/.tdldb .
++ln \-s ../project2/.tdldb .
+
+ .SH BUGS
+ Please report them to the author.
+-
+-.SH SEE ALSO
+-The full documentation for tdl is maintained as a Texinfo manual. If the info and tdl
+-programs are properly installed at your site, the command
+-.IP
+-info tdl
+-.PP
+-should give you access to the complete manual.
+-
diff --git a/app-misc/tdl/metadata.xml b/app-misc/tdl/metadata.xml
new file mode 100644
index 000000000000..26e00e65cfb9
--- /dev/null
+++ b/app-misc/tdl/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>shell-tools</herd>
+ <longdescription lang="en">
+ tdl is a command-line application for managing a list of outstanding
+ tasks that you have to do. It can organise tasks in a hierarchy, produce
+ weekly reports of completed tasks and so on.
+ </longdescription>
+</pkgmetadata>
diff --git a/app-misc/tdl/tdl-1.5.2-r2.ebuild b/app-misc/tdl/tdl-1.5.2-r2.ebuild
new file mode 100644
index 000000000000..5fb37d220f2f
--- /dev/null
+++ b/app-misc/tdl/tdl-1.5.2-r2.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit eutils flag-o-matic toolchain-funcs
+
+DESCRIPTION="Command line To Do List manager"
+HOMEPAGE="http://www.rc0.org.uk/tdl/"
+SRC_URI="
+ http://www.rpcurnow.force9.co.uk/tdl/${P}.tar.gz
+ http://dev.gentoo.org/~jlec/distfiles/${PN}-screenshot.png.tar"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE="doc readline"
+
+RDEPEND="
+ sys-libs/ncurses
+ sys-libs/readline"
+DEPEND="${RDEPEND}
+ sys-apps/sed
+ sys-apps/texinfo
+ doc? ( virtual/texi2dvi )"
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${PV}-ldflags.patch \
+ "${FILESDIR}"/${P}-list.c.patch \
+ "${FILESDIR}"/${P}-main.c.patch \
+ "${FILESDIR}"/${P}-man.patch
+
+ tc-export CC
+}
+
+src_configure() {
+ local myconf="--prefix=${EPREFIX}/usr"
+
+ if ! use readline; then
+ myconf="${myconf} --without-readline"
+
+ sed -i 's#\($(LIB_READLINE)\)#\1 -lncurses##g' "${S}"/Makefile.in || die
+ fi
+ sed -i 's#-ltermcap#-lncurses#g' "${S}"/configure || die
+
+ # XXX: do not replace with econf.
+ "${S}"/configure ${myconf} || die "configure failed, sorry!"
+}
+
+src_compile() {
+ emake all tdl.info tdl.html tdl.txt
+ use doc && emake tdl.dvi tdl.ps tdl.pdf
+}
+
+src_install() {
+ local i
+
+ dodoc README NEWS tdl.txt "${WORKDIR}"/screenshot.png
+ doinfo tdl.info
+ dohtml tdl.html
+
+ dobin tdl
+ doman tdl.1
+
+ for i in tdl{a,l,d,g}
+ do
+ dosym tdl /usr/bin/${i}
+ dosym tdl.1 /usr/share/man/man1/${i}.1
+ done
+
+ if use doc; then
+ dodoc tdl.dvi tdl.ps tdl.pdf
+ fi
+}
diff --git a/app-misc/terminal-colors/Manifest b/app-misc/terminal-colors/Manifest
new file mode 100644
index 000000000000..4da065e63fc1
--- /dev/null
+++ b/app-misc/terminal-colors/Manifest
@@ -0,0 +1,3 @@
+DIST terminal-colors-2.0.bz2 4604 SHA256 50c7c7647b3cbbf55ea8314ad81d71bbe301e7b7f7241017a6d16f7ff93ce66b SHA512 b5f253841d29057ca4236b5291fb58f0ed2e02404bf3145f7ca28c49e5cd22ae98df4b40ddc7b5f74c562cf87cc192f3d8c600fd83aefd850f25e03544ddcc25 WHIRLPOOL 70d302038257959e3c9c62788811d9db70acec36ec866c608c0dbe0640266ebb44b5ed382659288820bdf7a9e372c18e5c04f4afd555b78baecdcaf175386184
+DIST terminal-colors-2.1.bz2 4836 SHA256 519652ebd0fbdb4728a34b23994b52a63f07b582375641527d52cd273c90283b SHA512 7bce1ba6eac6897fa7a63b3339d4493817f205f7fdb4e93454fdbc3b169235cd9bc32505b9896d6f6cac493c584e49bc2fd23ba3ce2b66ef85ac38079186e579 WHIRLPOOL d58d0db20d0426d526788d3c1ad34ea0a1f9294252ff830d1ff23d09f95e455a260398a8c98efd2045b6de2345d4a6c6e570f89d6e5372b28506c0cec1778ad5
+DIST terminal-colors-2.2.bz2 4826 SHA256 0daaffc2cb96af416e3292869762ced792511ae71f1661d94bada52314243009 SHA512 ddd1a3cf6786011372ca83b3fe86a88c863a1fa1b5cf8450cabd364a3330847145cf4bd5eb8d50baa7c26b17c392eb0f629007dbb765b36b3904d0783216ce36 WHIRLPOOL 6160962dd908788bddd33650a95d4c6a45b2b6c69cfa566c48c28383977b3ed75dbf5129c3d54268af9ad48c37eb3ef6594b23b60579d1e078dfe7e73cbd466e
diff --git a/app-misc/terminal-colors/metadata.xml b/app-misc/terminal-colors/metadata.xml
new file mode 100644
index 000000000000..157326a7e891
--- /dev/null
+++ b/app-misc/terminal-colors/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>radhermit@gentoo.org</email>
+ <name>Tim Harder</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-misc/terminal-colors/terminal-colors-2.0.ebuild b/app-misc/terminal-colors/terminal-colors-2.0.ebuild
new file mode 100644
index 000000000000..0e8bae3e6828
--- /dev/null
+++ b/app-misc/terminal-colors/terminal-colors-2.0.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python{2_7,3_3} )
+PYTHON_REQ_USE="ncurses"
+
+inherit python-r1
+
+DESCRIPTION="A tool to display color charts for 8, 16, 88, and 256 color terminals"
+HOMEPAGE="http://zhar.net/projects/shell/terminal-colors"
+SRC_URI="http://dev.gentoo.org/~radhermit/distfiles/${P}.bz2"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="${PYTHON_DEPS}"
+
+S=${WORKDIR}
+
+src_install() {
+ python_foreach_impl python_newscript ${P} ${PN}
+}
diff --git a/app-misc/terminal-colors/terminal-colors-2.1.ebuild b/app-misc/terminal-colors/terminal-colors-2.1.ebuild
new file mode 100644
index 000000000000..0e8bae3e6828
--- /dev/null
+++ b/app-misc/terminal-colors/terminal-colors-2.1.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python{2_7,3_3} )
+PYTHON_REQ_USE="ncurses"
+
+inherit python-r1
+
+DESCRIPTION="A tool to display color charts for 8, 16, 88, and 256 color terminals"
+HOMEPAGE="http://zhar.net/projects/shell/terminal-colors"
+SRC_URI="http://dev.gentoo.org/~radhermit/distfiles/${P}.bz2"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="${PYTHON_DEPS}"
+
+S=${WORKDIR}
+
+src_install() {
+ python_foreach_impl python_newscript ${P} ${PN}
+}
diff --git a/app-misc/terminal-colors/terminal-colors-2.2.ebuild b/app-misc/terminal-colors/terminal-colors-2.2.ebuild
new file mode 100644
index 000000000000..04938ecb7b40
--- /dev/null
+++ b/app-misc/terminal-colors/terminal-colors-2.2.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python{2_7,3_3,3_4} )
+PYTHON_REQ_USE="ncurses"
+
+inherit python-r1
+
+DESCRIPTION="A tool to display color charts for 8, 16, 88, and 256 color terminals"
+HOMEPAGE="http://zhar.net/projects/shell/terminal-colors"
+SRC_URI="http://dev.gentoo.org/~radhermit/distfiles/${P}.bz2"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~x64-macos"
+
+RDEPEND="${PYTHON_DEPS}"
+
+S=${WORKDIR}
+
+src_install() {
+ python_foreach_impl python_newscript ${P} ${PN}
+}
diff --git a/app-misc/timestamp/Manifest b/app-misc/timestamp/Manifest
new file mode 100644
index 000000000000..e18d901112d6
--- /dev/null
+++ b/app-misc/timestamp/Manifest
@@ -0,0 +1 @@
+DIST timestamp-1.1.tar.gz 61578 SHA256 8bb39d7db691f995ddb4cb4320a9ca1c3c793ade6bb419e3b280b3e69c26ce70 SHA512 38952f40938e45e178e310dfc3b974c1974485614f4da7617790642f8594a4583e97ec056cb2f4fe2761d86d04595bc0d387312803bf95add929d48863fd6b9b WHIRLPOOL 4a8191a4649cc40246714b124a975cf56ec5376d3da7f250f75fb542c477cf2085da03ca2c11c5a37a6634eb2320229d019688bcc52d47ad0ad597bc7b760751
diff --git a/app-misc/timestamp/metadata.xml b/app-misc/timestamp/metadata.xml
new file mode 100644
index 000000000000..40149c995561
--- /dev/null
+++ b/app-misc/timestamp/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>shell-tools</herd>
+</pkgmetadata>
diff --git a/app-misc/timestamp/timestamp-1.1.ebuild b/app-misc/timestamp/timestamp-1.1.ebuild
new file mode 100644
index 000000000000..b723a0849701
--- /dev/null
+++ b/app-misc/timestamp/timestamp-1.1.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+DESCRIPTION="A text filtering pipe that marks each line with a timestamp"
+HOMEPAGE="http://math.smsu.edu/~erik/software.php?id=95"
+SRC_URI="http://math.smsu.edu/~erik/files/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86"
+IUSE=""
+
+DEPEND="!sys-apps/moreutils"
+RDEPEND="${DEPEND}"
+
+src_install() {
+ make DESTDIR="${D}" install || die "make install failed"
+ dodoc ChangeLog || die
+}
diff --git a/app-misc/tkpasman/Manifest b/app-misc/tkpasman/Manifest
new file mode 100644
index 000000000000..e07de0a68622
--- /dev/null
+++ b/app-misc/tkpasman/Manifest
@@ -0,0 +1 @@
+DIST TkPasMan-2.2b.tar.gz 31365 SHA256 c6f99905a2395e251d92e2f9cbda486492895bb969cb5693bfeffdb849fbd4fc SHA512 ca74ed6a5989c21b266ff4bed00963d46eb05e1a7a0822dceeae5c87bcbb7bf36a775eedf86244fa1121008a6df59fa38003e07e8cb6e4ddf98c895b61f24f12 WHIRLPOOL f7a49837a8fe64a28961f1c494d83b3374f479878e85bdc0b442350dfcfb387795cae19eeedfd7aa11f2a985970d1803c27de131456470cc5403c344a996ce4b
diff --git a/app-misc/tkpasman/files/tkpasman-2.2a-gentoo.patch b/app-misc/tkpasman/files/tkpasman-2.2a-gentoo.patch
new file mode 100644
index 000000000000..d52d5129b7c7
--- /dev/null
+++ b/app-misc/tkpasman/files/tkpasman-2.2a-gentoo.patch
@@ -0,0 +1,22 @@
+--- build.sh 2005-01-01 19:18:44.290385166 +0000
++++ build.sh 2005-01-01 19:22:45.846161383 +0000
+@@ -44,8 +44,8 @@
+ #
+ # Try to find wish8.3, tclsh8.3 and openssl
+ #
+-WISH=`FIND "$WISH" "" wish8.4 wish8.3 wish`
+-TCLSH=`FIND "$TCLSH" "" tclsh8.4 tclsh8.3 tclsh`
++WISH=`FIND "$WISH" "" wish wish8.4 wish8.3`
++TCLSH=`FIND "$TCLSH" "" tclsh tclsh8.4 tclsh8.3`
+ OPENSSL=`FIND "$OPENSSL" "$OPENSSL_SEARCH_PATH" openssl ssl`
+
+ #
+@@ -88,7 +88,7 @@
+ if test "$USE_OPENSSL" = "true" -a -x "$OPENSSL"
+ then
+ echo "Found OpenSSL program: $OPENSSL"
+- ENC=`$OPENSSL list-cipher-commands|sort|egrep "^($ENC)\$"|head -1`
++ ENC=`$OPENSSL list-cipher-commands|sort|egrep "^($ENC)\$"|head -n 1`
+ if test -z "$ENC"
+ then
+ echo "Could not find a suitable encryption algorithm."
diff --git a/app-misc/tkpasman/metadata.xml b/app-misc/tkpasman/metadata.xml
new file mode 100644
index 000000000000..1470e032181b
--- /dev/null
+++ b/app-misc/tkpasman/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>
+ <email>maintainer-needed@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-misc/tkpasman/tkpasman-2.2b.ebuild b/app-misc/tkpasman/tkpasman-2.2b.ebuild
new file mode 100644
index 000000000000..7e4b709cf6ef
--- /dev/null
+++ b/app-misc/tkpasman/tkpasman-2.2b.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils
+
+MY_P="TkPasMan-${PV}"
+
+DESCRIPTION="A useful and reliable personal password manager, written in Tcl/Tk"
+HOMEPAGE="http://www.xs4all.nl/~wbsoft/linux/tkpasman.html"
+SRC_URI="http://www.xs4all.nl/~wbsoft/linux/projects/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE="ssl"
+
+DEPEND="
+ >=dev-lang/tcl-8.3:0=
+ >=dev-lang/tk-8.3:0="
+RDEPEND="${DEPEND}
+ ssl? ( dev-libs/openssl )
+ "
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-2.2a-gentoo.patch
+
+ if use ssl; then
+ sed -i "s:^USE_OPENSSL=true:USE_OPENSSL=false:g" config || die
+ fi
+}
+
+src_install() {
+ dobin ${PN}
+ dodoc README ChangeLog TODO WARNING INSTALL
+}
diff --git a/app-misc/tmux-mem-cpu-load/Manifest b/app-misc/tmux-mem-cpu-load/Manifest
new file mode 100644
index 000000000000..339ceeaa86ed
--- /dev/null
+++ b/app-misc/tmux-mem-cpu-load/Manifest
@@ -0,0 +1,2 @@
+DIST tmux-mem-cpu-load-2.1.0.tar.gz 2705 SHA256 846036b3d9b0f5e6b6e88988f483f0d82060ca2bbe9fbbd4f4d63ac287eccb7c SHA512 18db125eededc3b2d75f74563e2173daa9fd0a72a9e1eefa93010d3a338403a1393c1a49471e03703d0a72ce7a407070836e5f0486a19e83c02abe1bbec2d2b9 WHIRLPOOL fa64abb9f6e5f43311e13c7777dee835f0b75d9fef1c12c548d8705a86cc67cb18c1164d160d2ce216f8cea7d5b6ae9aae24f80fbac544bdcec20fa2011dbe94
+DIST tmux-mem-cpu-load-2.2.1.tar.gz 9893 SHA256 fd90bd8d66f275f4cae36dc5bd05a2826ca3be63a86b916ef7a2b9d956817b9d SHA512 44d677bbe9eb457b8857c603f469c46767878b2b8af8f169f2b01393ce65fc8da3c33288bc0743b3c2846b77de798437130a7676ca95c5cab52cd4166d9ded73 WHIRLPOOL 4512f46972cd7f3eb6c4881ac735b71a4084b3e8a66906d85d9761343617647477f8b4559860a9104b3eaecf2486aea5a2c8a7c7f0011c878c2114259eba5823
diff --git a/app-misc/tmux-mem-cpu-load/metadata.xml b/app-misc/tmux-mem-cpu-load/metadata.xml
new file mode 100644
index 000000000000..3ec619e87141
--- /dev/null
+++ b/app-misc/tmux-mem-cpu-load/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>
+ <email>wired@gentoo.org</email>
+ <name>Alex Alexander</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">thewtex/tmux-mem-cpu-load</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/tmux-mem-cpu-load/tmux-mem-cpu-load-2.1.0.ebuild b/app-misc/tmux-mem-cpu-load/tmux-mem-cpu-load-2.1.0.ebuild
new file mode 100644
index 000000000000..efea556786c5
--- /dev/null
+++ b/app-misc/tmux-mem-cpu-load/tmux-mem-cpu-load-2.1.0.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="3"
+
+inherit cmake-utils
+
+IUSE=""
+if [[ ${PV} == *9999* ]]; then
+ inherit git
+ EGIT_REPO_URI=${EGIT_REPO_URI:-"git://github.com/thewtex/tmux-mem-cpu-load.git"}
+ KEYWORDS=""
+ SRC_URI=""
+else
+ KEYWORDS="amd64 x86"
+ SRC_URI="http://www.github.com/thewtex/${PN}/tarball/v${PV} -> ${P}.tar.gz"
+fi
+
+DESCRIPTION="CPU, RAM memory, and load monitor for use with tmux"
+HOMEPAGE="http://github.com/thewtex/tmux-mem-cpu-load/"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+
+src_prepare() {
+ if [[ ${PV} == *9999* ]]; then
+ git_src_prepare
+ else
+ cd "${WORKDIR}"/thewtex-${PN}-*
+ S=$(pwd)
+ fi
+}
+
+src_install() {
+ cmake-utils_src_install
+ dodoc README.rst || die
+}
diff --git a/app-misc/tmux-mem-cpu-load/tmux-mem-cpu-load-2.2.1-r1.ebuild b/app-misc/tmux-mem-cpu-load/tmux-mem-cpu-load-2.2.1-r1.ebuild
new file mode 100644
index 000000000000..f974ec800d8c
--- /dev/null
+++ b/app-misc/tmux-mem-cpu-load/tmux-mem-cpu-load-2.2.1-r1.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit cmake-utils
+
+IUSE=""
+if [[ ${PV} == *9999* ]]; then
+ inherit git-r3
+ EGIT_REPO_URI=${EGIT_REPO_URI:-"git://github.com/thewtex/tmux-mem-cpu-load.git"}
+ KEYWORDS=""
+ SRC_URI=""
+else
+ KEYWORDS="~amd64 ~x86"
+ SRC_URI="https://github.com/thewtex/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+fi
+
+DESCRIPTION="CPU, RAM memory, and load monitor for use with tmux"
+HOMEPAGE="http://github.com/thewtex/tmux-mem-cpu-load/"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+
+src_install() {
+ cmake-utils_src_install
+ dodoc README.rst
+}
diff --git a/app-misc/tmux-mem-cpu-load/tmux-mem-cpu-load-2.2.1.ebuild b/app-misc/tmux-mem-cpu-load/tmux-mem-cpu-load-2.2.1.ebuild
new file mode 100644
index 000000000000..1cb6e7791abf
--- /dev/null
+++ b/app-misc/tmux-mem-cpu-load/tmux-mem-cpu-load-2.2.1.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="3"
+
+inherit cmake-utils
+
+IUSE=""
+if [[ ${PV} == *9999* ]]; then
+ inherit git-r3
+ EGIT_REPO_URI=${EGIT_REPO_URI:-"git://github.com/thewtex/tmux-mem-cpu-load.git"}
+ KEYWORDS=""
+ SRC_URI=""
+else
+ KEYWORDS="~amd64 ~x86"
+ SRC_URI="https://github.com/thewtex/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+fi
+
+DESCRIPTION="CPU, RAM memory, and load monitor for use with tmux"
+HOMEPAGE="http://github.com/thewtex/tmux-mem-cpu-load/"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+
+DOCS=( README.rst )
diff --git a/app-misc/tmux-mem-cpu-load/tmux-mem-cpu-load-9999.ebuild b/app-misc/tmux-mem-cpu-load/tmux-mem-cpu-load-9999.ebuild
new file mode 100644
index 000000000000..503b44064e7b
--- /dev/null
+++ b/app-misc/tmux-mem-cpu-load/tmux-mem-cpu-load-9999.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit cmake-utils
+
+IUSE=""
+if [[ ${PV} == *9999* ]]; then
+ inherit git-r3
+ EGIT_REPO_URI=${EGIT_REPO_URI:-"git://github.com/thewtex/tmux-mem-cpu-load.git"}
+ KEYWORDS=""
+ SRC_URI=""
+else
+ KEYWORDS="~amd64 ~x86"
+ SRC_URI="https://github.com/thewtex/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+fi
+
+DESCRIPTION="CPU, RAM memory, and load monitor for use with tmux"
+HOMEPAGE="http://github.com/thewtex/tmux-mem-cpu-load/"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+
+DOCS=( README.rst )
diff --git a/app-misc/tmux/Manifest b/app-misc/tmux/Manifest
new file mode 100644
index 000000000000..40e25698d461
--- /dev/null
+++ b/app-misc/tmux/Manifest
@@ -0,0 +1,2 @@
+DIST tmux-1.9a.tar.gz 447938 SHA256 c5e3b22b901cf109b20dab54a4a651f0471abd1f79f6039d79b250d21c2733f5 SHA512 842984638dc1f7364c03393187379598f35679d535d911d5df4016944d6032e61a1bf840d7d339c6e99b30c55581d470acca85ab6ee5799b8927d18c0e9a91df WHIRLPOOL eca5cd48a263e25d24b7e2865f76bb30267e20590e9b2a905637498d7992389b9c7e0253c992780b1a6458869204cffcf93f4dba09efdfeb2f803a0f95f6553e
+DIST tmux-2.0.tar.gz 455754 SHA256 795f4b4446b0ea968b9201c25e8c1ef8a6ade710ebca4657dd879c35916ad362 SHA512 8a4be40ceb9b371a91107173de08348c4379b103454fa397ee326506f78a5fda1034dc7148c090c687221eddb8a2fc0c3aeb85da57841df6bcd74fb5f4f5f53d WHIRLPOOL d5c9570aafed049b1404e9243e0339202bfa33e8ca2874f304cb9a7c764b7878db19f87aa5f6b9a9476038bc3702e5d11784c8ca83eb731e61763ecb08a39fec
diff --git a/app-misc/tmux/files/tmux-1.9a-flags.patch b/app-misc/tmux/files/tmux-1.9a-flags.patch
new file mode 100644
index 000000000000..8bf21d86ed6c
--- /dev/null
+++ b/app-misc/tmux/files/tmux-1.9a-flags.patch
@@ -0,0 +1,28 @@
+--- tmux-1.9a/Makefile.am
++++ tmux-1.9a/Makefile.am
+@@ -27,23 +27,20 @@
+ if IS_GCC
+ CFLAGS += -std=gnu99
+ if IS_DEBUG
+-CFLAGS += -O0 -g
+ CFLAGS += -Wno-long-long -Wall -W -Wnested-externs -Wformat=2
+ CFLAGS += -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations
+ CFLAGS += -Wwrite-strings -Wshadow -Wpointer-arith -Wsign-compare
+ CFLAGS += -Wundef -Wbad-function-cast -Winline -Wcast-align
+ CFLAGS += -Wdeclaration-after-statement
+ CPPFLAGS += -DDEBUG
+-else
+-CFLAGS += -O2
+ endif
+ if IS_GCC4
+-CPPFLAGS += -iquote. -I/usr/local/include
++CPPFLAGS += -iquote.
+ if IS_DEBUG
+ CFLAGS += -Wno-pointer-sign
+ endif
+ else
+-CPPFLAGS += -I. -I- -I/usr/local/include
++CPPFLAGS += -I. -I-
+ endif
+ endif
+
diff --git a/app-misc/tmux/files/tmux-2.0-flags.patch b/app-misc/tmux/files/tmux-2.0-flags.patch
new file mode 100644
index 000000000000..d2c40e04b788
--- /dev/null
+++ b/app-misc/tmux/files/tmux-2.0-flags.patch
@@ -0,0 +1,18 @@
+ Makefile.am | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/Makefile.am b/Makefile.am
+index 63e20b1..a2fec1e 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -25,9 +25,8 @@ endif
+ # Set flags for gcc. gcc4 whines abouts silly stuff so it needs slightly
+ # different flags.
+ if IS_GCC
+-CFLAGS += -std=gnu99 -O2
++CFLAGS += -std=gnu99
+ if IS_DEBUG
+-CFLAGS += -g
+ CFLAGS += -Wno-long-long -Wall -W -Wnested-externs -Wformat=2
+ CFLAGS += -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations
+ CFLAGS += -Wwrite-strings -Wshadow -Wpointer-arith -Wsign-compare
diff --git a/app-misc/tmux/files/tmux.vim b/app-misc/tmux/files/tmux.vim
new file mode 100644
index 000000000000..baac50adab16
--- /dev/null
+++ b/app-misc/tmux/files/tmux.vim
@@ -0,0 +1 @@
+au BufNewFile,BufRead .tmux.conf*,tmux.conf* setf tmux
diff --git a/app-misc/tmux/metadata.xml b/app-misc/tmux/metadata.xml
new file mode 100644
index 000000000000..a88ed84b3bba
--- /dev/null
+++ b/app-misc/tmux/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>shell-tools</herd>
+ <maintainer>
+ <email>wired@gentoo.org</email>
+ <name>Alex Alexander</name>
+ </maintainer>
+ <longdescription>
+ tmux is a "terminal multiplexer", it enables a number of terminals
+ (or windows) to be accessed and controlled from a single terminal.
+ tmux is intended to be a simple, modern, BSD-licensed alternative to
+ programs such as <pkg>app-misc/screen</pkg>.
+ </longdescription>
+</pkgmetadata>
diff --git a/app-misc/tmux/tmux-1.9a.ebuild b/app-misc/tmux/tmux-1.9a.ebuild
new file mode 100644
index 000000000000..df654947cb46
--- /dev/null
+++ b/app-misc/tmux/tmux-1.9a.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+AUTOTOOLS_AUTORECONF=true
+
+inherit autotools-utils bash-completion-r1 flag-o-matic
+
+DESCRIPTION="Terminal multiplexer"
+HOMEPAGE="http://tmux.github.io/"
+SRC_URI="https://github.com/${PN}/${PN}/releases/download/${PV}/${P}.tar.gz"
+
+LICENSE="ISC"
+SLOT="0"
+KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh ~sparc x86 ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+IUSE="debug selinux vim-syntax"
+
+COMMON_DEPEND="
+ >=dev-libs/libevent-2.0.10
+ sys-libs/ncurses"
+DEPEND="${COMMON_DEPEND}
+ virtual/pkgconfig"
+RDEPEND="${COMMON_DEPEND}
+ selinux? ( sec-policy/selinux-screen )
+ vim-syntax? ( || (
+ app-editors/vim
+ app-editors/gvim ) )"
+
+DOCS=( CHANGES FAQ README TODO )
+
+PATCHES=( "${FILESDIR}"/${P}-flags.patch )
+
+pkg_setup() {
+ if has_version "<app-misc/tmux-1.9a"; then
+ echo
+ ewarn "Some configuration options changed in this release."
+ ewarn "Please read the CHANGES file in /usr/share/doc/${PF}/"
+ ewarn
+ ewarn "WARNING: After updating to ${P} you will _not_ be able to connect to any"
+ ewarn "older, running tmux server instances. You'll have to use an existing client to"
+ ewarn "end your old sessions or kill the old server instances. Otherwise you'll have"
+ ewarn "to temporarily downgrade to access them."
+ echo
+ fi
+}
+
+src_prepare() {
+ # bug 438558
+ # 1.7 segfaults when entering copy mode if compiled with -Os
+ replace-flags -Os -O2
+
+ # regenerate aclocal.m4 to support earlier automake versions
+ rm aclocal.m4 || die
+
+ # remove generated files
+ rm -r compat/.{dirstamp,deps} || die
+
+ autotools-utils_src_prepare
+}
+
+src_configure() {
+ local myeconfargs=(
+ --sysconfdir="${EPREFIX}"/etc
+ $(use_enable debug)
+ )
+ autotools-utils_src_configure
+}
+
+src_install() {
+ autotools-utils_src_install
+
+ newbashcomp examples/bash_completion_tmux.sh ${PN}
+
+ docinto examples
+ dodoc examples/*.conf
+
+ if use vim-syntax; then
+ insinto /usr/share/vim/vimfiles/syntax
+ doins examples/tmux.vim
+
+ insinto /usr/share/vim/vimfiles/ftdetect
+ doins "${FILESDIR}"/tmux.vim
+ fi
+}
diff --git a/app-misc/tmux/tmux-2.0.ebuild b/app-misc/tmux/tmux-2.0.ebuild
new file mode 100644
index 000000000000..f82e139e0918
--- /dev/null
+++ b/app-misc/tmux/tmux-2.0.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+AUTOTOOLS_AUTORECONF=true
+
+inherit autotools-utils bash-completion-r1 flag-o-matic
+
+DESCRIPTION="Terminal multiplexer"
+HOMEPAGE="http://tmux.github.io/"
+SRC_URI="https://github.com/${PN}/${PN}/releases/download/${PV}/${P}.tar.gz"
+
+LICENSE="ISC"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+IUSE="debug selinux vim-syntax"
+
+COMMON_DEPEND="
+ >=dev-libs/libevent-2.0.10
+ sys-libs/ncurses"
+DEPEND="${COMMON_DEPEND}
+ virtual/pkgconfig"
+RDEPEND="${COMMON_DEPEND}
+ selinux? ( sec-policy/selinux-screen )
+ vim-syntax? ( || (
+ app-editors/vim
+ app-editors/gvim ) )"
+
+DOCS=( CHANGES FAQ README TODO )
+
+PATCHES=( "${FILESDIR}"/${P}-flags.patch )
+
+pkg_setup() {
+ if has_version "<app-misc/tmux-1.9a"; then
+ echo
+ ewarn "Some configuration options changed in this release."
+ ewarn "Please read the CHANGES file in /usr/share/doc/${PF}/"
+ ewarn
+ ewarn "WARNING: After updating to ${P} you will _not_ be able to connect to any"
+ ewarn "older, running tmux server instances. You'll have to use an existing client to"
+ ewarn "end your old sessions or kill the old server instances. Otherwise you'll have"
+ ewarn "to temporarily downgrade to access them."
+ echo
+ fi
+}
+
+src_prepare() {
+ # bug 438558
+ # 1.7 segfaults when entering copy mode if compiled with -Os
+ replace-flags -Os -O2
+
+ # regenerate aclocal.m4 to support earlier automake versions
+ rm aclocal.m4 || die
+
+ # remove generated files
+ rm -r compat/.{dirstamp,deps} || die
+
+ autotools-utils_src_prepare
+}
+
+src_configure() {
+ local myeconfargs=(
+ --sysconfdir="${EPREFIX}"/etc
+ $(use_enable debug)
+ )
+ autotools-utils_src_configure
+}
+
+src_install() {
+ autotools-utils_src_install
+
+ newbashcomp examples/bash_completion_tmux.sh ${PN}
+
+ docinto examples
+ dodoc examples/*.conf
+
+ if use vim-syntax; then
+ insinto /usr/share/vim/vimfiles/syntax
+ doins examples/tmux.vim
+
+ insinto /usr/share/vim/vimfiles/ftdetect
+ doins "${FILESDIR}"/tmux.vim
+ fi
+}
diff --git a/app-misc/tmux/tmux-9999.ebuild b/app-misc/tmux/tmux-9999.ebuild
new file mode 100644
index 000000000000..f809290ff99e
--- /dev/null
+++ b/app-misc/tmux/tmux-9999.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+AUTOTOOLS_AUTORECONF=true
+
+inherit autotools-utils git-r3 bash-completion-r1 flag-o-matic
+
+EGIT_REPO_URI="https://github.com/tmux/tmux.git"
+
+DESCRIPTION="Terminal multiplexer"
+HOMEPAGE="http://tmux.github.io/"
+SRC_URI=""
+
+LICENSE="ISC"
+SLOT="0"
+KEYWORDS=""
+IUSE="debug selinux vim-syntax"
+
+COMMON_DEPEND="
+ >=dev-libs/libevent-2.0.10
+ sys-libs/ncurses"
+DEPEND="${COMMON_DEPEND}
+ virtual/pkgconfig"
+RDEPEND="${COMMON_DEPEND}
+ selinux? ( sec-policy/selinux-screen )
+ vim-syntax? ( || (
+ app-editors/vim
+ app-editors/gvim ) )"
+
+DOCS=( CHANGES FAQ README TODO )
+
+src_prepare() {
+ # respect CFLAGS and don't add some includes
+ sed \
+ -e 's:-I/usr/local/include::' \
+ -e 's:-O2::' \
+ -i Makefile.am || die
+
+ # bug 438558
+ # 1.7 segfaults when entering copy mode if compiled with -Os
+ replace-flags -Os -O2
+
+ autotools-utils_src_prepare
+}
+
+src_configure() {
+ local myeconfargs=(
+ --sysconfdir="${EPREFIX}"/etc
+ $(use_enable debug)
+ )
+ autotools-utils_src_configure
+}
+
+src_install() {
+ autotools-utils_src_install
+
+ newbashcomp examples/bash_completion_tmux.sh ${PN}
+
+ docinto examples
+ dodoc examples/*.conf
+
+ if use vim-syntax; then
+ insinto /usr/share/vim/vimfiles/syntax
+ doins examples/tmux.vim
+
+ insinto /usr/share/vim/vimfiles/ftdetect
+ doins "${FILESDIR}"/tmux.vim
+ fi
+}
diff --git a/app-misc/toilet/Manifest b/app-misc/toilet/Manifest
new file mode 100644
index 000000000000..7d7caeebd1cf
--- /dev/null
+++ b/app-misc/toilet/Manifest
@@ -0,0 +1 @@
+DIST toilet-0.3.tar.gz 864880 SHA256 89d4b530c394313cc3f3a4e07a7394fa82a6091f44df44dfcd0ebcb3300a81de SHA512 64b9389562a51e7dba6e3f1dd27c5340f90df25d8fbf1e041b539f5243b5b6b7af1ebf033a511053ad72a73908d496a1f3d14c4ac656425aefb8364a0664ceed WHIRLPOOL 0c85602851649e3168706063bdb772820e6b4b15f16a982ace772499fbbdddab5baaf8cf6d1cdd1d352dc8a4de667a756c75b22fe270ccb9d3325decba8b9e0c
diff --git a/app-misc/toilet/metadata.xml b/app-misc/toilet/metadata.xml
new file mode 100644
index 000000000000..ed5201a28ad6
--- /dev/null
+++ b/app-misc/toilet/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>xmw@gentoo.org</email>
+ <name>Michael Weber</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-misc/toilet/toilet-0.3.ebuild b/app-misc/toilet/toilet-0.3.ebuild
new file mode 100644
index 000000000000..2bee85b9938b
--- /dev/null
+++ b/app-misc/toilet/toilet-0.3.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+DESCRIPTION="The Other Implementations letters. Figlet replacement"
+HOMEPAGE="http://caca.zoy.org/wiki/toilet"
+SRC_URI="http://caca.zoy.org/raw-attachment/wiki/${PN}/${P}.tar.gz"
+
+LICENSE="WTFPL-2"
+SLOT="0"
+KEYWORDS="amd64 arm ~ppc ~ppc64 ~sparc x86 ~x86-fbsd"
+IUSE=""
+
+RDEPEND=">=media-libs/libcaca-0.99_beta18"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_prepare() {
+ sed -i \
+ -e 's:-g -O2 -fno-strength-reduce -fomit-frame-pointer::' \
+ configure || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ dodoc ChangeLog NEWS README TODO
+}
diff --git a/app-misc/tomboy/Manifest b/app-misc/tomboy/Manifest
new file mode 100644
index 000000000000..6bbd89179c6d
--- /dev/null
+++ b/app-misc/tomboy/Manifest
@@ -0,0 +1 @@
+DIST tomboy-1.14.1.tar.xz 6681068 SHA256 f9e81fd9c9a9180e8ddcb4b9237ead0c842aa5b5ac21af87e97939e5015af018 SHA512 98f46faff05cc6a9f708c880ed5a40dfb91f8e496c3b8bd3b49545b8cc095e643bd677cdf36601c95e53639fdb723aa9ac3e79b5c34aed24c4009729fd390a30 WHIRLPOOL 89eefc434f1257f56c74e88c221b4b029d90e3aca609fbd92e3c00ccc43ed4466509dabda77e949ff040c0286ee54c22ec8eeb720f70add29e79413dffacdd5b
diff --git a/app-misc/tomboy/metadata.xml b/app-misc/tomboy/metadata.xml
new file mode 100644
index 000000000000..d35e9300c540
--- /dev/null
+++ b/app-misc/tomboy/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>dotnet</herd>
+</pkgmetadata>
diff --git a/app-misc/tomboy/tomboy-1.14.1.ebuild b/app-misc/tomboy/tomboy-1.14.1.ebuild
new file mode 100644
index 000000000000..57f99e7d0d7e
--- /dev/null
+++ b/app-misc/tomboy/tomboy-1.14.1.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+GCONF_DEBUG="no"
+GNOME2_LA_PUNT="yes"
+
+inherit autotools eutils gnome2 mono
+
+DESCRIPTION="Desktop note-taking application"
+HOMEPAGE="http://projects.gnome.org/tomboy/"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86"
+IUSE="eds test"
+
+RDEPEND="
+ app-text/gtkspell:2
+ dev-dotnet/gconf-sharp:2
+ dev-dotnet/gtk-sharp:2
+ dev-dotnet/mono-addins[gtk]
+ dev-dotnet/dbus-sharp
+ dev-dotnet/dbus-sharp-glib
+ dev-lang/mono
+ dev-libs/atk:=
+ gnome-base/gconf:2
+ x11-libs/gtk+:2
+ eds? ( dev-libs/gmime:2.6[mono] )
+"
+DEPEND="${RDEPEND}
+ app-text/gnome-doc-utils
+ app-text/rarian
+ dev-util/intltool
+ virtual/pkgconfig
+ sys-devel/gettext
+"
+
+src_prepare() {
+ sed \
+ -e "s:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:g" \
+ -i configure.in || die
+
+ eautoreconf
+ gnome2_src_prepare
+}
+
+src_configure() {
+ gnome2_src_configure \
+ --disable-panel-applet \
+ --disable-galago \
+ --disable-update-mimedb \
+ $(use_enable eds evolution) \
+ $(use_enable test tests)
+}
+
+src_compile() {
+ # Not parallel build safe due upstream bug #631546
+ MAKEOPTS="${MAKEOPTS} -j1" gnome2_src_compile
+}
diff --git a/app-misc/towitoko/Manifest b/app-misc/towitoko/Manifest
new file mode 100644
index 000000000000..5fb37fdb9676
--- /dev/null
+++ b/app-misc/towitoko/Manifest
@@ -0,0 +1 @@
+DIST towitoko-2.0.7.tar.gz 280177 SHA256 28f36954b5225dbb1729728fadaa723f49e141c5a4b77dc75d9558d787c8e660 SHA512 e2e21bda3b1dad55dee1cfb4063e114394a21973b4b2409b9dcff1479fc312fb93bf6e634d38e1f7a30e6f835d87af8268a478b534f65c916eeb13d5dbd07b86 WHIRLPOOL d3ff6aaa3c33570389ebef6d1d0648d55ea1653227e5fb0128a48f11dec5b3d42f7b9e46bdcee7c45f038c0acff66b67fe9d33ed9c7c5f8ed380e2a8a128fd19
diff --git a/app-misc/towitoko/metadata.xml b/app-misc/towitoko/metadata.xml
new file mode 100644
index 000000000000..2bda83b020a2
--- /dev/null
+++ b/app-misc/towitoko/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>
+ <email>maintainer-needed@gentoo.org</email>
+</maintainer>
+<use>
+ <flag name='moneyplex'>Makes libtowitoko work for the moneyplex home banking
+ software</flag>
+</use>
+</pkgmetadata>
diff --git a/app-misc/towitoko/towitoko-2.0.7-r2.ebuild b/app-misc/towitoko/towitoko-2.0.7-r2.ebuild
new file mode 100644
index 000000000000..0a2c0f45ddee
--- /dev/null
+++ b/app-misc/towitoko/towitoko-2.0.7-r2.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+IUSE="moneyplex"
+
+DESCRIPTION="This library provides a driver for using Towitoko smartcard readers under UNIX environment"
+SRC_URI="mirror://gentoo/${P}.tar.gz"
+HOMEPAGE="http://www.gentoo.org/"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ppc x86"
+
+src_compile() {
+ local myconf
+
+ myconf=""
+ use moneyplex && myconf="${myconf} --disable-atr-check"
+
+ econf \
+ $(use_enable moneyplex win32-com) \
+ ${myconf} || die "econf failed"
+ emake || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+}
+
+pkg_postinst() {
+ if ! use moneyplex
+ then
+ elog "If you want to use the moneyplex home banking software from"
+ elog "http://www.matrica.de"
+ elog "then please re-emerge this package with 'moneyplex' in USE"
+ fi
+}
diff --git a/app-misc/tpconfig/Manifest b/app-misc/tpconfig/Manifest
new file mode 100644
index 000000000000..bddca86bbe14
--- /dev/null
+++ b/app-misc/tpconfig/Manifest
@@ -0,0 +1 @@
+DIST tpconfig-3.1.3.tar.gz 106789 SHA256 3413a9cc735908b1aed6968afc18768daba6d2da26003682510fa4a0fd6cdc95 SHA512 b10b709f113dcd526c7521f519466677a1dd37b5c3bd4adf7a0fdbf95428bf56777a726b85e158c4842d406e7659f1b6e161c68bc6f6c6739d376ab84351efc9 WHIRLPOOL 278eb797588b0e0b72f6e6ed76e936fa336971b4c22ce2f2eafb5465df6835a730b0cf4f132e3bb86dbd74178fdb6cc6a58b247c46eefdc730e897d56d712b0c
diff --git a/app-misc/tpconfig/files/tpconfig b/app-misc/tpconfig/files/tpconfig
new file mode 100644
index 000000000000..62cb0a7e5a8f
--- /dev/null
+++ b/app-misc/tpconfig/files/tpconfig
@@ -0,0 +1,23 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+depend() {
+ before xdm
+}
+
+start() {
+ ebegin "Loading tpconfig options..."
+ /usr/bin/tpconfig ${TPOPTIONS} > /dev/null 2> /tmp/tpconfig.start
+ if [ -z "`cat /tmp/tpconfig.start 2> /dev/null`" ]; then
+ eend 0
+ else
+ eend 1
+ fi
+}
+
+stop() {
+ ebegin "Stoping tpconfig (this does nothing)..."
+ eend 0
+}
diff --git a/app-misc/tpconfig/files/tpconfig.conf b/app-misc/tpconfig/files/tpconfig.conf
new file mode 100644
index 000000000000..46937f17f561
--- /dev/null
+++ b/app-misc/tpconfig/files/tpconfig.conf
@@ -0,0 +1,5 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+TPOPTIONS="--tapmode=0"
diff --git a/app-misc/tpconfig/metadata.xml b/app-misc/tpconfig/metadata.xml
new file mode 100644
index 000000000000..a40624fba8f0
--- /dev/null
+++ b/app-misc/tpconfig/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>
+ <email>maintainer-needed@gentoo.org</email>
+</maintainer>
+</pkgmetadata>
diff --git a/app-misc/tpconfig/tpconfig-3.1.3.ebuild b/app-misc/tpconfig/tpconfig-3.1.3.ebuild
new file mode 100644
index 000000000000..29cebe217914
--- /dev/null
+++ b/app-misc/tpconfig/tpconfig-3.1.3.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit toolchain-funcs
+
+DESCRIPTION="Touchpad config for ALPS and Synaptics TPs. Controls tap/click behaviour"
+HOMEPAGE="http://www.compass.com/synaptics/"
+SRC_URI="http://www.compass.com/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 x86"
+IUSE=""
+
+src_compile() {
+ econf
+ emake CC="$(tc-getCC)" || die "emake failed"
+}
+
+src_install() {
+ dobin tpconfig || die "dobin failed!"
+ dodoc README AUTHORS NEWS INSTALL
+ doinitd "${FILESDIR}"/tpconfig
+ newconfd "${FILESDIR}"/tpconfig.conf tpconfig
+}
diff --git a/app-misc/tpipe/Manifest b/app-misc/tpipe/Manifest
new file mode 100644
index 000000000000..3082808ea533
--- /dev/null
+++ b/app-misc/tpipe/Manifest
@@ -0,0 +1 @@
+DIST tpipe-1.6.tar.gz 12425 SHA256 d7eac07b862399d6d92a854c49635f9b2b24bda436c5c426f2eca59857168795 SHA512 3429a7ee0711f47e87ed2c46009c43dd7c3fa378a98083da58f22d1cd0a87cbbe7a900e98abc05d1375ffe8cfe56e02d25991f53a42bca1825556b07983bbb8d WHIRLPOOL b3ffabca14594e0d7cfc8d48b8fb3b121fba357ce68aa17f380deeb6c27e0dce9f18dd09c4396e87da3e8e11fa62b5ffbaa4e055d517edc6304f0c3bf8315a4b
diff --git a/app-misc/tpipe/metadata.xml b/app-misc/tpipe/metadata.xml
new file mode 100644
index 000000000000..3fe269f0a5ae
--- /dev/null
+++ b/app-misc/tpipe/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>shell-tools</herd>
+<maintainer>
+ <email>robbat2@gentoo.org</email>
+</maintainer>
+</pkgmetadata>
diff --git a/app-misc/tpipe/tpipe-1.6.ebuild b/app-misc/tpipe/tpipe-1.6.ebuild
new file mode 100644
index 000000000000..48592e17e23a
--- /dev/null
+++ b/app-misc/tpipe/tpipe-1.6.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit toolchain-funcs
+
+DESCRIPTION="Command to duplicate standard input to more than one program"
+HOMEPAGE="http://www.eurogaran.com/downloads/tpipe"
+SRC_URI="http://www.eurogaran.com/downloads/tpipe/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE=""
+
+src_compile() {
+ emake OPTFLAGS="-ansi -pedantic ${CFLAGS}" PREFIX=/usr CC="$(tc-getCC)" LDFLAGS="${LDFLAGS}" || die
+}
+
+src_install() {
+ dobin tpipe || die
+ doman tpipe.1 || die
+ dodoc README.txt || die
+}
diff --git a/app-misc/tprint/Manifest b/app-misc/tprint/Manifest
new file mode 100644
index 000000000000..b8f680f4c3d8
--- /dev/null
+++ b/app-misc/tprint/Manifest
@@ -0,0 +1 @@
+DIST tprint-1.1.0.tar.gz 14089 SHA256 1faec152e3cad3fd448ab082c1a69b8eca718b94394b7f317fe153783616da75 SHA512 828135ba52a163b00257e243e683f0f01b3a47b161785c70aa2b43f227859a6a4e629687d07190c42941ab03012d6bb1eddeb3767f177af6302a873cb7713831 WHIRLPOOL d94e33e769fa5762cb742d37fc4a29eb882344605c5a4a4250dcbb616930b6a91bb6bb67fb32112cfc5641500ffaa09a4542f927ba94696cd4b9844739a53c93
diff --git a/app-misc/tprint/metadata.xml b/app-misc/tprint/metadata.xml
new file mode 100644
index 000000000000..f3fda2e81bac
--- /dev/null
+++ b/app-misc/tprint/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>
+ <email>maintainer-needed@gentoo.org</email>
+ </maintainer>
+ <longdescription>The Transparent Print utility program for Linux. Provides an easy way to transparently print to serial terminals that have printers attached.</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">tprint</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/tprint/tprint-1.1.0-r1.ebuild b/app-misc/tprint/tprint-1.1.0-r1.ebuild
new file mode 100644
index 000000000000..0030bededf75
--- /dev/null
+++ b/app-misc/tprint/tprint-1.1.0-r1.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit toolchain-funcs
+
+DESCRIPTION="Transparent Print Utility for terminals"
+HOMEPAGE="http://sourceforge.net/projects/tprint/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~ppc ~x86"
+IUSE=""
+
+src_prepare() {
+ sed -i Makefile \
+ -e 's:cc:$(CC):g' \
+ -e 's:-g -O2:$(CFLAGS) $(LDFLAGS):g' \
+ || die "sed failed"
+}
+
+src_compile() {
+ emake CC=$(tc-getCC)
+}
+
+src_install() {
+ insinto /etc/tprint
+ doins tprint.conf
+ dobin tprint
+
+ dodoc INSTALL README
+}
diff --git a/app-misc/tracker/Manifest b/app-misc/tracker/Manifest
new file mode 100644
index 000000000000..f9e25ec13ec8
--- /dev/null
+++ b/app-misc/tracker/Manifest
@@ -0,0 +1,3 @@
+DIST tracker-1.2.5.tar.xz 6033708 SHA256 1e614bc33f93d5820f3c90510e11210bf34d02dba6ccbd3dc30097758a6d31aa SHA512 8b2027e4350286d1d9c8274aa7addf0653f116389584b2cea35dc9d68563135340ac89873027d531beea2cce44b20d4a9718d6986fb486a2ef77f9cab8189699 WHIRLPOOL 4e1e923106a4b732029db9e12d8e4576aa71db64a803b8afc91f0d41793a6d22f8eb7654d0b3ac71af21ab5061432ddae1db0b3afc97d019c246c4eabf1f14d3
+DIST tracker-1.2.6.tar.xz 6049860 SHA256 09851691d527b505ed96987c08142f4dbe4f511ea155b66e99b83f73da7c93c4 SHA512 b812d8dba3225f30fa0f091617acd294d1ead23a67ebfe12ced08c24ae7fcef017b602241d4205a696adb51c0bfcaebdd0a40317c95177ba934eeae99f46165f WHIRLPOOL d4be5d8d63ca9268bd8be4eee4096e344fb17ac1d36e559ba5548b1dab099d9169f9973fee9d80bec8afa1286306d71596a9f2c3031333ab08c46e2dda59cdda
+DIST tracker-1.4.0.tar.xz 5940004 SHA256 c87c35b55ab3a201f6bf306b812532de2bd35f3946a7fe966963c5d3e3d251eb SHA512 1c2fd8d877297cbe30dfe933b05a5fcf46a1a9b96b76f09dc56e888223e7828ee75008e79505d86f4f824f449ac5f984cc7bebcdf23fe42924d7de98afc90626 WHIRLPOOL 69d72e138d9f63376591087b1d5d7e2335cde72bce5a9fd031fa5d4bbaf2b9d7d917871f0ea5df82e4790c043220a8afe21be74ac1ac1601a20d846ac04e2c1c
diff --git a/app-misc/tracker/files/tracker-1.4.0-have-gstreamer-fix.patch b/app-misc/tracker/files/tracker-1.4.0-have-gstreamer-fix.patch
new file mode 100644
index 000000000000..de2b774d9417
--- /dev/null
+++ b/app-misc/tracker/files/tracker-1.4.0-have-gstreamer-fix.patch
@@ -0,0 +1,35 @@
+From 32333d707ca2a4a33bbefd051c70f037d81207eb Mon Sep 17 00:00:00 2001
+From: Gilles Dartiguelongue <eva@gentoo.org>
+Date: Wed, 3 Jun 2015 23:42:56 +0200
+Subject: [PATCH] Fix AM_CONDITIONAL position HAVE_{GSTREAMER,LIBAV} definition
+
+---
+ configure.ac | 9 ++++-----
+ 1 file changed, 4 insertions(+), 5 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index b2e3ae8..6ed8801 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -1884,14 +1884,13 @@ fi
+
+ if test "$have_generic_media_handler_app" = "GStreamer"; then
+ AC_DEFINE(HAVE_GSTREAMER, [], [Define if we have GStreamer])
+- AM_CONDITIONAL(HAVE_GSTREAMER, true)
+- AM_CONDITIONAL(HAVE_LIBAV, false)
+ elif test "$have_generic_media_handler_app" = "libav"; then
+- AC_DEFINE(HAVE_GSTREAMER, [], [Define if we have libav])
+- AM_CONDITIONAL(HAVE_LIBAV, true)
+- AM_CONDITIONAL(HAVE_GSTREAMER, false)
++ AC_DEFINE(HAVE_LIBAV, [], [Define if we have libav])
+ fi
+
++AM_CONDITIONAL(HAVE_GSTREAMER, [test "$have_generic_media_handler_app" = "GStreamer"])
++AM_CONDITIONAL(HAVE_LIBAV, [test "$have_generic_media_handler_app" = "libav"])
++
+ ###########################################################################
+ # Check for gstreamer backend: tagreadbin/decodebin2/discoverer/gupnp-dlna
+ ###########################################################################
+--
+2.4.1
+
diff --git a/app-misc/tracker/metadata.xml b/app-misc/tracker/metadata.xml
new file mode 100644
index 000000000000..0cebc0bb8a66
--- /dev/null
+++ b/app-misc/tracker/metadata.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>gnome</herd>
+<use>
+ <flag name="cue">Enable cue sheet parsing</flag>
+ <!-- 'firefox-bookmarks' instead of 'firefox' to prevent most users from
+ enabling this by accident; it has some stability problems and
+ performance implications -->
+ <flag name="firefox-bookmarks">Install bookmark data miner plugin for
+ <pkg>www-client/firefox</pkg> and <pkg>www-client/firefox-bin</pkg></flag>
+ <flag name="gsf">Enable <pkg>gnome-extra/libgsf</pkg> based data extractor and
+ for ODT.</flag>
+ <flag name="iptc">Enable extraction of IPTC data from pictures</flag>
+ <flag name="iso">Enable extraction of metadata from ISO disk images</flag>
+ <flag name="miner-fs">Enable tracker-miner-fs (required for filesystem indexing)</flag>
+ <flag name="nautilus">Enable tracker to integrate with
+ <pkg>gnome-base/nautilus</pkg> by providing entries in its context menu
+ </flag>
+ <flag name="playlist">Add support for playlists</flag>
+ <flag name="stemmer">Add word stemming via <pkg>dev-libs/snowball-stemmer</pkg>.</flag>
+ <flag name="thunderbird">Install email data miner plugin for
+ <pkg>mail-client/thunderbird</pkg> and
+ <pkg>mail-client/thunderbird-bin</pkg></flag>
+ <flag name="xps">Add support for XPS file format through <pkg>app-text/libgxps</pkg>.</flag>
+</use>
+</pkgmetadata>
diff --git a/app-misc/tracker/tracker-1.2.5.ebuild b/app-misc/tracker/tracker-1.2.5.ebuild
new file mode 100644
index 000000000000..9dbc75ae9581
--- /dev/null
+++ b/app-misc/tracker/tracker-1.2.5.ebuild
@@ -0,0 +1,262 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+GCONF_DEBUG="no"
+GNOME2_LA_PUNT="yes"
+PYTHON_COMPAT=( python2_7 )
+VALA_MIN_API_VERSION="0.18"
+
+inherit autotools eutils gnome2 linux-info multilib python-any-r1 vala versionator virtualx
+
+DESCRIPTION="A tagging metadata database, search tool and indexer"
+HOMEPAGE="https://wiki.gnome.org/Projects/Tracker"
+
+LICENSE="GPL-2+ LGPL-2.1+"
+SLOT="0/100"
+IUSE="cue eds elibc_glibc exif ffmpeg firefox-bookmarks flac gif gsf
+gstreamer gtk iptc +iso +jpeg +miner-fs mp3 nautilus networkmanager
+pdf playlist rss test thunderbird +tiff upnp-av upower +vorbis +xml xmp xps"
+
+KEYWORDS="~alpha amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc x86"
+
+REQUIRED_USE="
+ ?? ( gstreamer ffmpeg )
+ cue? ( gstreamer )
+ upnp-av? ( gstreamer )
+ !miner-fs? ( !cue !exif !flac !gif !gsf !iptc !iso !jpeg !mp3 !pdf !playlist !tiff !vorbis !xml !xmp !xps )
+"
+
+# According to NEWS, introspection is non-optional
+# glibc-2.12 needed for SCHED_IDLE (see bug #385003)
+# sqlite-3.7.16 for FTS4 support
+RDEPEND="
+ >=app-i18n/enca-1.9
+ >=dev-db/sqlite-3.7.16:=
+ >=dev-libs/glib-2.40:2
+ >=dev-libs/gobject-introspection-0.9.5
+ >=dev-libs/icu-4.8.1.1:=
+ || (
+ >=media-gfx/imagemagick-5.2.1[png,jpeg=]
+ media-gfx/graphicsmagick[imagemagick,png,jpeg=] )
+ >=media-libs/libpng-1.2:0=
+ >=media-libs/libmediaart-0.5:1.0
+ >=x11-libs/pango-1:=
+ sys-apps/util-linux
+
+ cue? ( media-libs/libcue )
+ eds? (
+ >=mail-client/evolution-3.3.5:=
+ >=gnome-extra/evolution-data-server-3.3.5:=
+ <mail-client/evolution-3.5.3
+ <gnome-extra/evolution-data-server-3.5.3 )
+ elibc_glibc? ( >=sys-libs/glibc-2.12 )
+ exif? ( >=media-libs/libexif-0.6 )
+ ffmpeg? ( >=virtual/ffmpeg-9 )
+ firefox-bookmarks? ( || (
+ >=www-client/firefox-4.0
+ >=www-client/firefox-bin-4.0 ) )
+ flac? ( >=media-libs/flac-1.2.1 )
+ gif? ( media-libs/giflib )
+ gsf? ( >=gnome-extra/libgsf-1.14.24 )
+ gstreamer? (
+ media-libs/gstreamer:1.0
+ media-libs/gst-plugins-base:1.0 )
+ gtk? (
+ >=dev-libs/libgee-0.3:0.8
+ >=x11-libs/gtk+-3:3 )
+ iptc? ( media-libs/libiptcdata )
+ iso? ( >=sys-libs/libosinfo-0.2.9:= )
+ jpeg? ( virtual/jpeg:0 )
+ upower? ( || ( >=sys-power/upower-0.9:= sys-power/upower-pm-utils ) )
+ mp3? ( >=media-libs/taglib-1.6 )
+ networkmanager? ( >=net-misc/networkmanager-0.8 )
+ pdf? (
+ >=x11-libs/cairo-1:=
+ >=app-text/poppler-0.16:=[cairo,utils]
+ >=x11-libs/gtk+-2.12:2 )
+ playlist? ( >=dev-libs/totem-pl-parser-3 )
+ rss? ( net-libs/libgrss:0.5 )
+ thunderbird? ( || (
+ >=mail-client/thunderbird-5.0
+ >=mail-client/thunderbird-bin-5.0 ) )
+ tiff? ( media-libs/tiff:0 )
+ upnp-av? ( >=media-libs/gupnp-dlna-0.9.4:2.0 )
+ vorbis? ( >=media-libs/libvorbis-0.22 )
+ xml? ( >=dev-libs/libxml2-2.6 )
+ xmp? ( >=media-libs/exempi-2.1 )
+ xps? ( app-text/libgxps )
+ !gstreamer? ( !ffmpeg? ( || ( media-video/totem media-video/mplayer ) ) )
+"
+DEPEND="${RDEPEND}
+ ${PYTHON_DEPS}
+ $(vala_depend)
+ >=dev-util/gtk-doc-am-1.8
+ >=dev-util/intltool-0.40.0
+ >=sys-devel/gettext-0.17
+ virtual/pkgconfig
+ gtk? ( >=dev-libs/libgee-0.3 )
+ test? (
+ >=dev-libs/dbus-glib-0.82-r1
+ >=sys-apps/dbus-1.3.1[X] )
+"
+PDEPEND="nautilus? ( ~gnome-extra/nautilus-tracker-tags-${PV} )"
+
+# configure mixes enable-compile-warnings and with-compile-warnings
+# See upstream bug #705315
+QA_CONFIGURE_OPTIONS="--enable-compile-warnings"
+
+function inotify_enabled() {
+ if linux_config_exists; then
+ if ! linux_chkconfig_present INOTIFY_USER; then
+ ewarn "You should enable the INOTIFY support in your kernel."
+ ewarn "Check the 'Inotify support for userland' under the 'File systems'"
+ ewarn "option. It is marked as CONFIG_INOTIFY_USER in the config"
+ die 'missing CONFIG_INOTIFY'
+ fi
+ else
+ einfo "Could not check for INOTIFY support in your kernel."
+ fi
+}
+
+pkg_setup() {
+ linux-info_pkg_setup
+ inotify_enabled
+
+ python-any-r1_pkg_setup
+}
+
+src_prepare() {
+ # Don't run 'firefox --version' or 'thunderbird --version'; it results in
+ # access violations on some setups (bug #385347, #385495).
+ create_version_script "www-client/firefox" "Mozilla Firefox" firefox-version.sh
+ create_version_script "mail-client/thunderbird" "Mozilla Thunderbird" thunderbird-version.sh
+
+ # Skip broken tests
+ # https://bugzilla.gnome.org/show_bug.cgi?id=699408
+ sed -e '\%/libtracker-common/file-utils/has_write_access_or_was_created%,+1 d' \
+ -i tests/libtracker-common/tracker-file-utils-test.c || die
+ # Fails inside portage, not outside
+ # https://bugzilla.gnome.org/show_bug.cgi?id=699413
+ sed -e '\%/steroids/tracker/tracker_sparql_update_async%,+3 d' \
+ -i tests/tracker-steroids/tracker-test.c || die
+
+ eautoreconf # See bug #367975
+ gnome2_src_prepare
+ vala_src_prepare
+}
+
+src_configure() {
+ local myconf=""
+
+ if use gstreamer ; then
+ myconf="${myconf} --enable-generic-media-extractor=gstreamer"
+ if use upnp-av; then
+ myconf="${myconf} --with-gstreamer-backend=gupnp-dlna"
+ else
+ myconf="${myconf} --with-gstreamer-backend=discoverer"
+ fi
+ elif use ffmpeg ; then
+ myconf="${myconf} --enable-generic-media-extractor=libav"
+ else
+ myconf="${myconf} --enable-generic-media-extractor=external"
+ fi
+
+ # unicode-support: libunistring, libicu or glib ?
+ # According to NEWS, introspection is required
+ # is not being generated
+ # nautilus extension is in a separate package, nautilus-tracker-tags
+ gnome2_src_configure \
+ --disable-hal \
+ --disable-nautilus-extension \
+ --enable-abiword \
+ --enable-artwork \
+ --enable-dvi \
+ --enable-enca \
+ --enable-guarantee-metadata \
+ --enable-icon \
+ --enable-introspection \
+ --enable-libmediaart \
+ --enable-libpng \
+ --enable-miner-apps \
+ --enable-miner-user-guides \
+ --enable-ps \
+ --enable-text \
+ --enable-tracker-fts \
+ --enable-tracker-writeback \
+ --with-unicode-support=libicu \
+ $(use_enable cue libcue) \
+ $(use_enable eds miner-evolution) \
+ $(use_enable exif libexif) \
+ $(use_enable firefox-bookmarks miner-firefox) \
+ $(use_with firefox-bookmarks firefox-plugin-dir "${EPREFIX}"/usr/$(get_libdir)/firefox/extensions) \
+ FIREFOX="${S}"/firefox-version.sh \
+ $(use_enable flac libflac) \
+ $(use_enable gif libgif) \
+ $(use_enable gsf libgsf) \
+ $(use_enable gtk tracker-needle) \
+ $(use_enable gtk tracker-preferences) \
+ $(use_enable iptc libiptcdata) \
+ $(use_enable iso libosinfo) \
+ $(use_enable jpeg libjpeg) \
+ $(use_enable upower upower) \
+ $(use_enable miner-fs) \
+ $(use_enable mp3 taglib) \
+ $(use_enable mp3) \
+ $(use_enable networkmanager network-manager) \
+ $(use_enable pdf poppler) \
+ $(use_enable playlist) \
+ $(use_enable rss miner-rss) \
+ $(use_enable test functional-tests) \
+ $(use_enable test unit-tests) \
+ $(use_enable thunderbird miner-thunderbird) \
+ $(use_with thunderbird thunderbird-plugin-dir "${EPREFIX}"/usr/$(get_libdir)/thunderbird/extensions) \
+ THUNDERBIRD="${S}"/thunderbird-version.sh \
+ $(use_enable tiff libtiff) \
+ $(use_enable vorbis libvorbis) \
+ $(use_enable xml libxml2) \
+ $(use_enable xmp exempi) \
+ $(use_enable xps libgxps) \
+ ${myconf}
+}
+
+src_test() {
+ export G_MESSAGES_DEBUG=all # upstream bug #699401#c1
+ unset DBUS_SESSION_BUS_ADDRESS
+ Xemake check
+}
+
+src_install() {
+ gnome2_src_install
+
+ # Manually symlink extensions for {firefox,thunderbird}-bin
+ if use firefox-bookmarks; then
+ dosym /usr/share/xul-ext/trackerfox \
+ /usr/$(get_libdir)/firefox-bin/extensions/trackerfox@bustany.org
+ fi
+
+ if use thunderbird; then
+ dosym /usr/share/xul-ext/trackerbird \
+ /usr/$(get_libdir)/thunderbird-bin/extensions/trackerbird@bustany.org
+ fi
+}
+
+create_version_script() {
+ # Create script $3 that prints "$2 MAX(VERSION($1), VERSION($1-bin))"
+
+ local v=$(best_version ${1})
+ v=${v#${1}-}
+ local vbin=$(best_version ${1}-bin)
+ vbin=${vbin#${1}-bin-}
+
+ if [[ -z ${v} ]]; then
+ v=${vbin}
+ else
+ version_compare ${v} ${vbin}
+ [[ $? -eq 1 ]] && v=${vbin}
+ fi
+
+ echo -e "#!/bin/sh\necho $2 $v" > "$3" || die
+ chmod +x "$3" || die
+}
diff --git a/app-misc/tracker/tracker-1.2.6.ebuild b/app-misc/tracker/tracker-1.2.6.ebuild
new file mode 100644
index 000000000000..8fb6dcbff3ba
--- /dev/null
+++ b/app-misc/tracker/tracker-1.2.6.ebuild
@@ -0,0 +1,268 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+GCONF_DEBUG="no"
+GNOME2_LA_PUNT="yes"
+PYTHON_COMPAT=( python2_7 )
+VALA_MIN_API_VERSION="0.18"
+
+inherit autotools eutils gnome2 linux-info multilib python-any-r1 vala versionator virtualx
+
+DESCRIPTION="A tagging metadata database, search tool and indexer"
+HOMEPAGE="https://wiki.gnome.org/Projects/Tracker"
+
+LICENSE="GPL-2+ LGPL-2.1+"
+SLOT="0/100"
+IUSE="cue eds elibc_glibc exif ffmpeg firefox-bookmarks flac gif gsf
+gstreamer gtk iptc +iso +jpeg +miner-fs mp3 nautilus networkmanager
+pdf playlist rss test thunderbird +tiff upnp-av upower +vorbis +xml xmp xps"
+
+KEYWORDS="~alpha amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc x86"
+
+REQUIRED_USE="
+ ?? ( gstreamer ffmpeg )
+ cue? ( gstreamer )
+ upnp-av? ( gstreamer )
+ !miner-fs? ( !cue !exif !flac !gif !gsf !iptc !iso !jpeg !mp3 !pdf !playlist !tiff !vorbis !xml !xmp !xps )
+"
+
+# According to NEWS, introspection is non-optional
+# glibc-2.12 needed for SCHED_IDLE (see bug #385003)
+# sqlite-3.7.16 for FTS4 support
+RDEPEND="
+ >=app-i18n/enca-1.9
+ >=dev-db/sqlite-3.7.16:=
+ >=dev-libs/glib-2.40:2
+ >=dev-libs/gobject-introspection-0.9.5
+ >=dev-libs/icu-4.8.1.1:=
+ || (
+ >=media-gfx/imagemagick-5.2.1[png,jpeg=]
+ media-gfx/graphicsmagick[imagemagick,png,jpeg=] )
+ >=media-libs/libpng-1.2:0=
+ >=media-libs/libmediaart-0.5:1.0
+ >=x11-libs/pango-1:=
+ sys-apps/util-linux
+
+ cue? ( media-libs/libcue )
+ eds? (
+ >=mail-client/evolution-3.3.5:=
+ >=gnome-extra/evolution-data-server-3.3.5:=
+ <mail-client/evolution-3.5.3
+ <gnome-extra/evolution-data-server-3.5.3 )
+ elibc_glibc? ( >=sys-libs/glibc-2.12 )
+ exif? ( >=media-libs/libexif-0.6 )
+ ffmpeg? ( >=virtual/ffmpeg-9 )
+ firefox-bookmarks? ( || (
+ >=www-client/firefox-4.0
+ >=www-client/firefox-bin-4.0 ) )
+ flac? ( >=media-libs/flac-1.2.1 )
+ gif? ( media-libs/giflib )
+ gsf? ( >=gnome-extra/libgsf-1.14.24 )
+ gstreamer? (
+ media-libs/gstreamer:1.0
+ media-libs/gst-plugins-base:1.0 )
+ gtk? (
+ >=dev-libs/libgee-0.3:0.8
+ >=x11-libs/gtk+-3:3 )
+ iptc? ( media-libs/libiptcdata )
+ iso? ( >=sys-libs/libosinfo-0.2.9:= )
+ jpeg? ( virtual/jpeg:0 )
+ upower? ( || ( >=sys-power/upower-0.9:= sys-power/upower-pm-utils ) )
+ mp3? ( >=media-libs/taglib-1.6 )
+ networkmanager? ( >=net-misc/networkmanager-0.8 )
+ pdf? (
+ >=x11-libs/cairo-1:=
+ >=app-text/poppler-0.16:=[cairo,utils]
+ >=x11-libs/gtk+-2.12:2 )
+ playlist? ( >=dev-libs/totem-pl-parser-3 )
+ rss? ( net-libs/libgrss:0.5 )
+ thunderbird? ( || (
+ >=mail-client/thunderbird-5.0
+ >=mail-client/thunderbird-bin-5.0 ) )
+ tiff? ( media-libs/tiff:0 )
+ upnp-av? ( >=media-libs/gupnp-dlna-0.9.4:2.0 )
+ vorbis? ( >=media-libs/libvorbis-0.22 )
+ xml? ( >=dev-libs/libxml2-2.6 )
+ xmp? ( >=media-libs/exempi-2.1 )
+ xps? ( app-text/libgxps )
+ !gstreamer? ( !ffmpeg? ( || ( media-video/totem media-video/mplayer ) ) )
+"
+DEPEND="${RDEPEND}
+ ${PYTHON_DEPS}
+ $(vala_depend)
+ >=dev-util/gtk-doc-am-1.8
+ >=dev-util/intltool-0.40.0
+ >=sys-devel/gettext-0.17
+ virtual/pkgconfig
+ gtk? ( >=dev-libs/libgee-0.3 )
+ test? (
+ >=dev-libs/dbus-glib-0.82-r1
+ >=sys-apps/dbus-1.3.1[X] )
+"
+PDEPEND="nautilus? ( ~gnome-extra/nautilus-tracker-tags-${PV} )"
+
+# configure mixes enable-compile-warnings and with-compile-warnings
+# See upstream bug #705315
+QA_CONFIGURE_OPTIONS="--enable-compile-warnings"
+
+function inotify_enabled() {
+ if linux_config_exists; then
+ if ! linux_chkconfig_present INOTIFY_USER; then
+ ewarn "You should enable the INOTIFY support in your kernel."
+ ewarn "Check the 'Inotify support for userland' under the 'File systems'"
+ ewarn "option. It is marked as CONFIG_INOTIFY_USER in the config"
+ die 'missing CONFIG_INOTIFY'
+ fi
+ else
+ einfo "Could not check for INOTIFY support in your kernel."
+ fi
+}
+
+pkg_setup() {
+ linux-info_pkg_setup
+ inotify_enabled
+
+ python-any-r1_pkg_setup
+}
+
+src_prepare() {
+ # Don't run 'firefox --version' or 'thunderbird --version'; it results in
+ # access violations on some setups (bug #385347, #385495).
+ create_version_script "www-client/firefox" "Mozilla Firefox" firefox-version.sh
+ create_version_script "mail-client/thunderbird" "Mozilla Thunderbird" thunderbird-version.sh
+
+ # Skip broken tests
+ # https://bugzilla.gnome.org/show_bug.cgi?id=699408
+ sed -e '\%/libtracker-common/file-utils/has_write_access_or_was_created%,+1 d' \
+ -i tests/libtracker-common/tracker-file-utils-test.c || die
+ # Fails inside portage, not outside
+ # https://bugzilla.gnome.org/show_bug.cgi?id=699413
+ sed -e '\%/steroids/tracker/tracker_sparql_update_async%,+3 d' \
+ -i tests/tracker-steroids/tracker-test.c || die
+
+ # Looks like sorting got fixed but not test reference files
+ sort "${S}"/tests/libtracker-data/functions/functions-tracker-1.out \
+ -o "${S}"/tests/libtracker-data/functions/functions-tracker-1.out || die
+ sort "${S}"/tests/libtracker-data/functions/functions-tracker-2.out \
+ -o "${S}"/tests/libtracker-data/functions/functions-tracker-2.out || die
+
+ eautoreconf # See bug #367975
+ gnome2_src_prepare
+ vala_src_prepare
+}
+
+src_configure() {
+ local myconf=""
+
+ if use gstreamer ; then
+ myconf="${myconf} --enable-generic-media-extractor=gstreamer"
+ if use upnp-av; then
+ myconf="${myconf} --with-gstreamer-backend=gupnp-dlna"
+ else
+ myconf="${myconf} --with-gstreamer-backend=discoverer"
+ fi
+ elif use ffmpeg ; then
+ myconf="${myconf} --enable-generic-media-extractor=libav"
+ else
+ myconf="${myconf} --enable-generic-media-extractor=external"
+ fi
+
+ # unicode-support: libunistring, libicu or glib ?
+ # According to NEWS, introspection is required
+ # is not being generated
+ # nautilus extension is in a separate package, nautilus-tracker-tags
+ gnome2_src_configure \
+ --disable-hal \
+ --disable-nautilus-extension \
+ --enable-abiword \
+ --enable-artwork \
+ --enable-dvi \
+ --enable-enca \
+ --enable-guarantee-metadata \
+ --enable-icon \
+ --enable-introspection \
+ --enable-libmediaart \
+ --enable-libpng \
+ --enable-miner-apps \
+ --enable-miner-user-guides \
+ --enable-ps \
+ --enable-text \
+ --enable-tracker-fts \
+ --enable-tracker-writeback \
+ --with-unicode-support=libicu \
+ $(use_enable cue libcue) \
+ $(use_enable eds miner-evolution) \
+ $(use_enable exif libexif) \
+ $(use_enable firefox-bookmarks miner-firefox) \
+ $(use_with firefox-bookmarks firefox-plugin-dir "${EPREFIX}"/usr/$(get_libdir)/firefox/extensions) \
+ FIREFOX="${S}"/firefox-version.sh \
+ $(use_enable flac libflac) \
+ $(use_enable gif libgif) \
+ $(use_enable gsf libgsf) \
+ $(use_enable gtk tracker-needle) \
+ $(use_enable gtk tracker-preferences) \
+ $(use_enable iptc libiptcdata) \
+ $(use_enable iso libosinfo) \
+ $(use_enable jpeg libjpeg) \
+ $(use_enable upower upower) \
+ $(use_enable miner-fs) \
+ $(use_enable mp3 taglib) \
+ $(use_enable mp3) \
+ $(use_enable networkmanager network-manager) \
+ $(use_enable pdf poppler) \
+ $(use_enable playlist) \
+ $(use_enable rss miner-rss) \
+ $(use_enable test functional-tests) \
+ $(use_enable test unit-tests) \
+ $(use_enable thunderbird miner-thunderbird) \
+ $(use_with thunderbird thunderbird-plugin-dir "${EPREFIX}"/usr/$(get_libdir)/thunderbird/extensions) \
+ THUNDERBIRD="${S}"/thunderbird-version.sh \
+ $(use_enable tiff libtiff) \
+ $(use_enable vorbis libvorbis) \
+ $(use_enable xml libxml2) \
+ $(use_enable xmp exempi) \
+ $(use_enable xps libgxps) \
+ ${myconf}
+}
+
+src_test() {
+ export G_MESSAGES_DEBUG=all # upstream bug #699401#c1
+ unset DBUS_SESSION_BUS_ADDRESS
+ Xemake check
+}
+
+src_install() {
+ gnome2_src_install
+
+ # Manually symlink extensions for {firefox,thunderbird}-bin
+ if use firefox-bookmarks; then
+ dosym /usr/share/xul-ext/trackerfox \
+ /usr/$(get_libdir)/firefox-bin/extensions/trackerfox@bustany.org
+ fi
+
+ if use thunderbird; then
+ dosym /usr/share/xul-ext/trackerbird \
+ /usr/$(get_libdir)/thunderbird-bin/extensions/trackerbird@bustany.org
+ fi
+}
+
+create_version_script() {
+ # Create script $3 that prints "$2 MAX(VERSION($1), VERSION($1-bin))"
+
+ local v=$(best_version ${1})
+ v=${v#${1}-}
+ local vbin=$(best_version ${1}-bin)
+ vbin=${vbin#${1}-bin-}
+
+ if [[ -z ${v} ]]; then
+ v=${vbin}
+ else
+ version_compare ${v} ${vbin}
+ [[ $? -eq 1 ]] && v=${vbin}
+ fi
+
+ echo -e "#!/bin/sh\necho $2 $v" > "$3" || die
+ chmod +x "$3" || die
+}
diff --git a/app-misc/tracker/tracker-1.4.0.ebuild b/app-misc/tracker/tracker-1.4.0.ebuild
new file mode 100644
index 000000000000..a378ffed52c0
--- /dev/null
+++ b/app-misc/tracker/tracker-1.4.0.ebuild
@@ -0,0 +1,269 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+GCONF_DEBUG="no"
+GNOME2_LA_PUNT="yes"
+PYTHON_COMPAT=( python2_7 )
+VALA_MIN_API_VERSION="0.18"
+
+inherit autotools eutils gnome2 linux-info multilib python-any-r1 vala versionator virtualx
+
+DESCRIPTION="A tagging metadata database, search tool and indexer"
+HOMEPAGE="https://wiki.gnome.org/Projects/Tracker"
+
+LICENSE="GPL-2+ LGPL-2.1+"
+SLOT="0/100"
+IUSE="cue eds elibc_glibc exif ffmpeg firefox-bookmarks flac gif gsf
+gstreamer gtk iptc +iso +jpeg libav +miner-fs mp3 nautilus networkmanager
+pdf playlist rss stemmer test thunderbird +tiff upnp-av upower +vorbis +xml xmp xps"
+
+KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+
+REQUIRED_USE="
+ ?? ( gstreamer ffmpeg )
+ cue? ( gstreamer )
+ upnp-av? ( gstreamer )
+ !miner-fs? ( !cue !exif !flac !gif !gsf !iptc !iso !jpeg !mp3 !pdf !playlist !tiff !vorbis !xml !xmp !xps )
+"
+
+# According to NEWS, introspection is non-optional
+# glibc-2.12 needed for SCHED_IDLE (see bug #385003)
+# sqlite-3.7.16 for FTS4 support
+RDEPEND="
+ >=app-i18n/enca-1.9
+ >=dev-db/sqlite-3.7.16:=
+ >=dev-libs/glib-2.40:2
+ >=dev-libs/gobject-introspection-0.9.5
+ >=dev-libs/icu-4.8.1.1:=
+ || (
+ >=media-gfx/imagemagick-5.2.1[png,jpeg=]
+ media-gfx/graphicsmagick[imagemagick,png,jpeg=] )
+ >=media-libs/libpng-1.2:0=
+ >=media-libs/libmediaart-1.9:2.0
+ >=x11-libs/pango-1:=
+ sys-apps/util-linux
+
+ cue? ( media-libs/libcue )
+ eds? (
+ >=mail-client/evolution-3.3.5:=
+ >=gnome-extra/evolution-data-server-3.3.5:=
+ <mail-client/evolution-3.5.3
+ <gnome-extra/evolution-data-server-3.5.3 )
+ elibc_glibc? ( >=sys-libs/glibc-2.12 )
+ exif? ( >=media-libs/libexif-0.6 )
+ ffmpeg? (
+ libav? ( media-video/libav:= )
+ !libav? ( media-video/ffmpeg:0= )
+ )
+ firefox-bookmarks? ( || (
+ >=www-client/firefox-4.0
+ >=www-client/firefox-bin-4.0 ) )
+ flac? ( >=media-libs/flac-1.2.1 )
+ gif? ( media-libs/giflib )
+ gsf? ( >=gnome-extra/libgsf-1.14.24 )
+ gstreamer? (
+ media-libs/gstreamer:1.0
+ media-libs/gst-plugins-base:1.0 )
+ gtk? (
+ >=dev-libs/libgee-0.3:0.8
+ >=x11-libs/gtk+-3:3 )
+ iptc? ( media-libs/libiptcdata )
+ iso? ( >=sys-libs/libosinfo-0.2.9:= )
+ jpeg? ( virtual/jpeg:0 )
+ upower? ( || ( >=sys-power/upower-0.9:= sys-power/upower-pm-utils ) )
+ mp3? ( >=media-libs/taglib-1.6 )
+ networkmanager? ( >=net-misc/networkmanager-0.8 )
+ pdf? (
+ >=x11-libs/cairo-1:=
+ >=app-text/poppler-0.16:=[cairo,utils]
+ >=x11-libs/gtk+-2.12:2 )
+ playlist? ( >=dev-libs/totem-pl-parser-3 )
+ rss? ( net-libs/libgrss:0.5 )
+ stemmer? ( dev-libs/snowball-stemmer )
+ thunderbird? ( || (
+ >=mail-client/thunderbird-5.0
+ >=mail-client/thunderbird-bin-5.0 ) )
+ tiff? ( media-libs/tiff:0 )
+ upnp-av? ( >=media-libs/gupnp-dlna-0.9.4:2.0 )
+ vorbis? ( >=media-libs/libvorbis-0.22 )
+ xml? ( >=dev-libs/libxml2-2.6 )
+ xmp? ( >=media-libs/exempi-2.1 )
+ xps? ( app-text/libgxps )
+ !gstreamer? ( !ffmpeg? ( || ( media-video/totem media-video/mplayer ) ) )
+"
+DEPEND="${RDEPEND}
+ ${PYTHON_DEPS}
+ $(vala_depend)
+ >=dev-libs/libxslt-1
+ >=dev-util/gtk-doc-am-1.8
+ >=dev-util/intltool-0.40.0
+ >=sys-devel/gettext-0.17
+ virtual/pkgconfig
+ gtk? ( >=dev-libs/libgee-0.3 )
+ test? (
+ >=dev-libs/dbus-glib-0.82-r1
+ >=sys-apps/dbus-1.3.1[X] )
+"
+PDEPEND="nautilus? ( ~gnome-extra/nautilus-tracker-tags-${PV} )"
+
+# configure mixes enable-compile-warnings and with-compile-warnings
+# See upstream bug #705315
+QA_CONFIGURE_OPTIONS="--enable-compile-warnings"
+
+function inotify_enabled() {
+ if linux_config_exists; then
+ if ! linux_chkconfig_present INOTIFY_USER; then
+ ewarn "You should enable the INOTIFY support in your kernel."
+ ewarn "Check the 'Inotify support for userland' under the 'File systems'"
+ ewarn "option. It is marked as CONFIG_INOTIFY_USER in the config"
+ die 'missing CONFIG_INOTIFY'
+ fi
+ else
+ einfo "Could not check for INOTIFY support in your kernel."
+ fi
+}
+
+pkg_setup() {
+ linux-info_pkg_setup
+ inotify_enabled
+
+ python-any-r1_pkg_setup
+}
+
+src_prepare() {
+ # Fix position of AM_CONDITIONAL, bug #550910, upstream bug #750368
+ epatch "${FILESDIR}"/${PN}-1.4.0-have-gstreamer-fix.patch
+
+ # Don't run 'firefox --version' or 'thunderbird --version'; it results in
+ # access violations on some setups (bug #385347, #385495).
+ create_version_script "www-client/firefox" "Mozilla Firefox" firefox-version.sh
+ create_version_script "mail-client/thunderbird" "Mozilla Thunderbird" thunderbird-version.sh
+
+ # Looks like sorting got fixed but not test reference files
+ sort "${S}"/tests/libtracker-data/functions/functions-tracker-1.out \
+ -o "${S}"/tests/libtracker-data/functions/functions-tracker-1.out || die
+ sort "${S}"/tests/libtracker-data/functions/functions-tracker-2.out \
+ -o "${S}"/tests/libtracker-data/functions/functions-tracker-2.out || die
+
+ eautoreconf # See bug #367975
+ gnome2_src_prepare
+ vala_src_prepare
+}
+
+src_configure() {
+ local myconf=""
+
+ if use gstreamer ; then
+ myconf="${myconf} --enable-generic-media-extractor=gstreamer"
+ if use upnp-av; then
+ myconf="${myconf} --with-gstreamer-backend=gupnp-dlna"
+ else
+ myconf="${myconf} --with-gstreamer-backend=discoverer"
+ fi
+ elif use ffmpeg ; then
+ myconf="${myconf} --enable-generic-media-extractor=libav"
+ else
+ myconf="${myconf} --enable-generic-media-extractor=external"
+ fi
+
+ # unicode-support: libunistring, libicu or glib ?
+ # According to NEWS, introspection is required
+ # is not being generated
+ # nautilus extension is in a separate package, nautilus-tracker-tags
+ gnome2_src_configure \
+ --disable-hal \
+ --disable-nautilus-extension \
+ --disable-static \
+ --enable-abiword \
+ --enable-artwork \
+ --enable-cfg-man-pages \
+ --enable-dvi \
+ --enable-enca \
+ --enable-guarantee-metadata \
+ --enable-icon \
+ --enable-introspection \
+ --enable-libmediaart \
+ --enable-libpng \
+ --enable-miner-apps \
+ --enable-miner-user-guides \
+ --enable-ps \
+ --enable-text \
+ --enable-tracker-fts \
+ --enable-tracker-writeback \
+ --with-unicode-support=libicu \
+ $(use_enable cue libcue) \
+ $(use_enable eds miner-evolution) \
+ $(use_enable exif libexif) \
+ $(use_enable firefox-bookmarks miner-firefox) \
+ $(use_with firefox-bookmarks firefox-plugin-dir "${EPREFIX}"/usr/$(get_libdir)/firefox/extensions) \
+ FIREFOX="${S}"/firefox-version.sh \
+ $(use_enable flac libflac) \
+ $(use_enable gif libgif) \
+ $(use_enable gsf libgsf) \
+ $(use_enable gtk tracker-needle) \
+ $(use_enable gtk tracker-preferences) \
+ $(use_enable iptc libiptcdata) \
+ $(use_enable iso libosinfo) \
+ $(use_enable jpeg libjpeg) \
+ $(use_enable upower upower) \
+ $(use_enable miner-fs) \
+ $(use_enable mp3 taglib) \
+ $(use_enable mp3) \
+ $(use_enable networkmanager network-manager) \
+ $(use_enable pdf poppler) \
+ $(use_enable playlist) \
+ $(use_enable rss miner-rss) \
+ $(use_enable stemmer libstemmer) \
+ $(use_enable test functional-tests) \
+ $(use_enable test unit-tests) \
+ $(use_enable thunderbird miner-thunderbird) \
+ $(use_with thunderbird thunderbird-plugin-dir "${EPREFIX}"/usr/$(get_libdir)/thunderbird/extensions) \
+ THUNDERBIRD="${S}"/thunderbird-version.sh \
+ $(use_enable tiff libtiff) \
+ $(use_enable vorbis libvorbis) \
+ $(use_enable xml libxml2) \
+ $(use_enable xmp exempi) \
+ $(use_enable xps libgxps) \
+ ${myconf}
+}
+
+src_test() {
+ # G_MESSAGES_DEBUG, upstream bug #699401#c1
+ Xemake check TESTS_ENVIRONMENT="dbus-run-session" G_MESSAGES_DEBUG="all"
+}
+
+src_install() {
+ gnome2_src_install
+
+ # Manually symlink extensions for {firefox,thunderbird}-bin
+ if use firefox-bookmarks; then
+ dosym /usr/share/xul-ext/trackerfox \
+ /usr/$(get_libdir)/firefox-bin/extensions/trackerfox@bustany.org
+ fi
+
+ if use thunderbird; then
+ dosym /usr/share/xul-ext/trackerbird \
+ /usr/$(get_libdir)/thunderbird-bin/extensions/trackerbird@bustany.org
+ fi
+}
+
+create_version_script() {
+ # Create script $3 that prints "$2 MAX(VERSION($1), VERSION($1-bin))"
+
+ local v=$(best_version ${1})
+ v=${v#${1}-}
+ local vbin=$(best_version ${1}-bin)
+ vbin=${vbin#${1}-bin-}
+
+ if [[ -z ${v} ]]; then
+ v=${vbin}
+ else
+ version_compare ${v} ${vbin}
+ [[ $? -eq 1 ]] && v=${vbin}
+ fi
+
+ echo -e "#!/bin/sh\necho $2 $v" > "$3" || die
+ chmod +x "$3" || die
+}
diff --git a/app-misc/trash-cli/Manifest b/app-misc/trash-cli/Manifest
new file mode 100644
index 000000000000..cca0346dc7eb
--- /dev/null
+++ b/app-misc/trash-cli/Manifest
@@ -0,0 +1 @@
+DIST trash-cli-0.12.9.14.tar.gz 62090 SHA256 e0371b28324188d4936cbeea7c74f85a28306588c1ad15b5d3af33372bd5eb11 SHA512 3846ec4e2e491b09ad93134313a875fb3e072abe3e895956b62a3e4f350c1f10dd1ded3fea0caec3fa8a6bd39f2d0a63ac6a3a070a6204fd2f27f1e447f5ba6c WHIRLPOOL ee9bb75ca3b3b9f141777a581862b57dd12db38490761dc2cd429ec60eca972292b207063615d8a2c233dd613772fb65a7c6faaadd925410ce9f964b10a8e445
diff --git a/app-misc/trash-cli/metadata.xml b/app-misc/trash-cli/metadata.xml
new file mode 100644
index 000000000000..eaee8326e08d
--- /dev/null
+++ b/app-misc/trash-cli/metadata.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>proxy-maintainers</herd>
+ <maintainer>
+ <email>alex_y_xu@yahoo.ca</email>
+ <name>Alex Xu</name>
+ <description>Proxied maintainer</description>
+ </maintainer>
+ <upstream>
+ <maintainer status="active">
+ <email>sito@andreafrancia.it</email>
+ </maintainer>
+ <changelog>https://github.com/andreafrancia/trash-cli/commits/master</changelog>
+ <doc lang="en">https://github.com/andreafrancia/trash-cli/blob/master/README.txt</doc>
+ <bugs-to>https://github.com/andreafrancia/trash-cli/issues</bugs-to>
+ <remote-id type="github">andreafrancia/trash-cli</remote-id>
+ </upstream>
+ <longdescription lang="en">
+ Trash-cli trashes files recording the original path, deletion date, and
+ permissions. It uses the same trashcan of KDE, GNOME, and XFCE, but you can
+ call it from the command line (and scripts).
+ </longdescription>
+</pkgmetadata>
diff --git a/app-misc/trash-cli/trash-cli-0.12.9.14-r2.ebuild b/app-misc/trash-cli/trash-cli-0.12.9.14-r2.ebuild
new file mode 100644
index 000000000000..10a4351450c7
--- /dev/null
+++ b/app-misc/trash-cli/trash-cli-0.12.9.14-r2.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1 vcs-snapshot
+
+DESCRIPTION="Python scripts to manipulate trash cans via the command line"
+HOMEPAGE="https://github.com/andreafrancia/trash-cli"
+SRC_URI="http://github.com/andreafrancia/${PN}/tarball/${PV} ->
+ ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
diff --git a/app-misc/ttyrec/Manifest b/app-misc/ttyrec/Manifest
new file mode 100644
index 000000000000..4334db30229e
--- /dev/null
+++ b/app-misc/ttyrec/Manifest
@@ -0,0 +1 @@
+DIST ttyrec-1.0.8.tar.gz 8528 SHA256 ef5e9bf276b65bb831f9c2554cd8784bd5b4ee65353808f82b7e2aef851587ec SHA512 b7f6f4c78c5148dacc7058534d89f13fcf333ee9e099d4475135e9c15a99a8aed72bf4bd5954652a6bb044d11ad35b4cb8d07208a5349c79c811f68fde7e8611 WHIRLPOOL d8f51ea4c88082b0f272170fec7aed0fa14d153b145f17958dc6101b5e383bbf7dfc4c5ed9cdbac23c08cef6baf25f4b65f3db13f7575bae65bf9ca3f58d48e3
diff --git a/app-misc/ttyrec/files/ttyrec-1.0.8-ldflags.patch b/app-misc/ttyrec/files/ttyrec-1.0.8-ldflags.patch
new file mode 100644
index 000000000000..5b2393ce5393
--- /dev/null
+++ b/app-misc/ttyrec/files/ttyrec-1.0.8-ldflags.patch
@@ -0,0 +1,19 @@
+--- Makefile~ 2010-08-09 14:01:24.351716328 -0400
++++ Makefile 2010-08-09 14:00:45.981716329 -0400
+@@ -10,13 +10,13 @@
+ all: $(TARGET)
+
+ ttyrec: ttyrec.o io.o
+- $(CC) $(CFLAGS) -o ttyrec ttyrec.o io.o
++ $(CC) $(LDFLAGS) $(CFLAGS) -o ttyrec ttyrec.o io.o
+
+ ttyplay: ttyplay.o io.o
+- $(CC) $(CFLAGS) -o ttyplay ttyplay.o io.o
++ $(CC) $(LDFLAGS) $(CFLAGS) -o ttyplay ttyplay.o io.o
+
+ ttytime: ttytime.o io.o
+- $(CC) $(CFLAGS) -o ttytime ttytime.o io.o
++ $(CC) $(LDFLAGS) $(CFLAGS) -o ttytime ttytime.o io.o
+
+ clean:
+ rm -f *.o $(TARGET) ttyrecord *~
diff --git a/app-misc/ttyrec/metadata.xml b/app-misc/ttyrec/metadata.xml
new file mode 100644
index 000000000000..9d75d428f7db
--- /dev/null
+++ b/app-misc/ttyrec/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>
+<email>maintainer-needed@gentoo.org</email>
+</maintainer>
+<longdescription>
+ttyrec is a tty recorder. Recorded data can be played back with the
+included ttyplay command. ttyrec is just a derivative of script
+command for recording timing information with microsecond accuracy as
+well. It can record emacs -nw, vi, lynx, or any programs running on
+tty.
+</longdescription>
+</pkgmetadata>
diff --git a/app-misc/ttyrec/ttyrec-1.0.8-r1.ebuild b/app-misc/ttyrec/ttyrec-1.0.8-r1.ebuild
new file mode 100644
index 000000000000..c8b7fb28f029
--- /dev/null
+++ b/app-misc/ttyrec/ttyrec-1.0.8-r1.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit base flag-o-matic toolchain-funcs
+
+DESCRIPTION="tty recorder"
+HOMEPAGE="http://namazu.org/~satoru/ttyrec/"
+SRC_URI="http://namazu.org/~satoru/ttyrec/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
+
+# Bug 331843
+PATCHES=( "${FILESDIR}/${P}-ldflags.patch" )
+
+src_compile() {
+ # Bug 106530
+ [[ ${CHOST} != *-darwin* ]] && append-cppflags -DSVR4 -D_XOPEN_SOURCE=500
+ emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}"
+}
+
+src_install() {
+ dobin ttyrec ttyplay ttytime
+ dodoc README
+ doman *.1
+}
diff --git a/app-misc/ttysnoop/Manifest b/app-misc/ttysnoop/Manifest
new file mode 100644
index 000000000000..a8a55d00231c
--- /dev/null
+++ b/app-misc/ttysnoop/Manifest
@@ -0,0 +1 @@
+DIST ttysnoop-0.12d.k26.tar.gz 9376 SHA256 250d7027af95f49f7d081a42878bf13b393db8e4475120278bb5e2a820fb6249 SHA512 9ac90ce08e170442718ca4871b7cb569acd8a594e63a56a6889ff0852be93a6ae8e7a212ba1064e74286043dad5a27af5d8588cb3b1ea297db4bf7fa10c66665 WHIRLPOOL c11cced3730e5591c2f4d3920a39a2a58177d4889e1b3cd7d2aedb46d15937637cc64fe2ed1412d6481adccd9459204097ffd62e59cd85687fd9f6263ad2830f
diff --git a/app-misc/ttysnoop/files/pinkbyte_masking.patch b/app-misc/ttysnoop/files/pinkbyte_masking.patch
new file mode 100644
index 000000000000..a0539c239b04
--- /dev/null
+++ b/app-misc/ttysnoop/files/pinkbyte_masking.patch
@@ -0,0 +1,41 @@
+--- ttysnoops.c 2009-08-13 17:11:30.705202250 +0400
++++ ttysnoops.c 2009-08-13 17:17:29.989201055 +0400
+@@ -18,6 +18,7 @@
+ v0.12d 8-4-98 Carl Declerck - updated #includes a bit
+ k26 28-5-00 Vinicius Anselmo - added sound alert (demoniac) created by Stas
+ k26 31-5-04 Vinicius Anselmo - updated for unix98 pty support
++ k26 13-8-09 Pinkbyte - deleted fucking sound alert and "bye bye" message ;)
+ */
+
+ #include <sys/types.h>
+@@ -502,22 +503,6 @@
+ struct utmp utmp;
+ int ptyfd, servfd, len, n, sel, susp = 0;
+
+- /* demoniac begin */
+-
+- StopHandle();
+-
+- if (InitSound()) /* play if we can */
+- {
+- DoSound(466, SLEN); // A#4
+- DoSound(622, SLEN); // D#5
+- DoSound(784, SLEN); // G5
+- DoSound(932, SLEN*2); // A#5
+- DoSound(784, SLEN); // G5
+- DoSound(932, SLEN*3); // A#5
+- }
+-
+- /* demoniac end */
+-
+ if (!isatty(STDIN_FILENO))
+ errorf ("stdin is not a tty\n");
+
+@@ -660,7 +645,6 @@
+ {
+ if ((n = read(ptyfd, buff, BUFF_SIZE)) < 1)
+ {
+- errorf ("bye bye\n");
+ exit (0);
+ }
+
diff --git a/app-misc/ttysnoop/files/ttysnoop-makefile.patch b/app-misc/ttysnoop/files/ttysnoop-makefile.patch
new file mode 100644
index 000000000000..54d04dd40a29
--- /dev/null
+++ b/app-misc/ttysnoop/files/ttysnoop-makefile.patch
@@ -0,0 +1,36 @@
+--- Makefile 2004-06-07 04:27:40.000000000 +0400
++++ Makefile 2011-07-21 11:50:22.580167326 +0400
+@@ -11,7 +11,7 @@
+
+ # For shadow support
+
+-CCOPTS = -O2 -DSHADOW_PWD
++CCOPTS = -DSHADOW_PWD
+ LIBS = -lcrypt
+ #LIBS = -lshadow
+
+@@ -24,19 +24,19 @@
+ all: ttysnoops ttysnoop
+
+ ttysnoops: $(SERVEROBJS)
+- $(CC) $(SERVEROBJS) -o ttysnoops $(LIBS)
++ $(CC) $(SERVEROBJS) -o ttysnoops $(LDFLAGS) $(LIBS)
+
+ ttysnoop: $(CLIENTOBJS)
+- $(CC) $(CLIENTOBJS) -o ttysnoop $(LIBS)
++ $(CC) $(CLIENTOBJS) -o ttysnoop $(LDFLAGS) $(LIBS)
+
+ ttysnoops.o: $(SERVERSRCS) $(INCLUDES)
+- $(CC) $(CCOPTS) -c -o ttysnoops.o $(SERVERSRCS)
++ $(CC) $(CCOPTS) $(CFLAGS) -c -o ttysnoops.o $(SERVERSRCS)
+
+ ttysnoop.o: $(CLIENTSRCS) $(INCLUDES)
+- $(CC) $(CCOPTS) -c -o ttysnoop.o $(CLIENTSRCS)
++ $(CC) $(CCOPTS) $(CFLAGS) -c -o ttysnoop.o $(CLIENTSRCS)
+
+ common.o: common.c common.h
+- $(CC) $(CCOPTS) -c -o common.o common.c
++ $(CC) $(CCOPTS) $(CFLAGS) -c -o common.o common.c
+
+ clean:
+ rm -f *.o core ttysnoop ttysnoops
diff --git a/app-misc/ttysnoop/metadata.xml b/app-misc/ttysnoop/metadata.xml
new file mode 100644
index 000000000000..b6b8956cde34
--- /dev/null
+++ b/app-misc/ttysnoop/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>pinkbyte@gentoo.org</email>
+ <name>Sergey Popov</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-misc/ttysnoop/ttysnoop-0.12d.ebuild b/app-misc/ttysnoop/ttysnoop-0.12d.ebuild
new file mode 100644
index 000000000000..072f2d0f98b3
--- /dev/null
+++ b/app-misc/ttysnoop/ttysnoop-0.12d.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+MY_P="${P}.k26"
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Tool to snoop on login tty's through another tty-device or pseudo-tty"
+HOMEPAGE="http://sysd.org/stas/node/35"
+SRC_URI="http://sysd.org/stas/files/active/0/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=""
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+DOCS="README snooptab.dist"
+
+src_prepare(){
+ epatch "${FILESDIR}"/pinkbyte_masking.patch
+ epatch "${FILESDIR}"/"${PN}"-makefile.patch
+}
+
+src_compile(){
+ emake CC="$(tc-getCC)"
+}
+
+src_install() {
+ dodir /var/spool/ttysnoop
+ fperms o= /var/spool/ttysnoop
+ dodoc ${DOCS}
+ dosbin ttysnoop
+ dosbin ttysnoops
+ doman ttysnoop.8
+ insinto /etc
+ newins snooptab.dist snooptab
+}
diff --git a/app-misc/unfoo/Manifest b/app-misc/unfoo/Manifest
new file mode 100644
index 000000000000..60b39fc2752b
--- /dev/null
+++ b/app-misc/unfoo/Manifest
@@ -0,0 +1 @@
+DIST unfoo-1.0.8.tar.gz 31862 SHA256 badc62603f1f7293032b36a1a3f1051b715b31895700d116d74cba4cb68af1e5 SHA512 b4a2489ca4ae5a81feacc57aa7c9c6437e3fbb0cec997d1b5e182e9ea7e19c13998968f23094e78908e6d41e699d50a1353ae475ec32146c63298eff06182281 WHIRLPOOL a6ab9fe60f73d07753760cba5d6d9d9ed7694fc1fba233c0510b823e1ad6f8e539207815543c690072545178841336d853ae6378fa88dc63e7668d1c3d266205
diff --git a/app-misc/unfoo/metadata.xml b/app-misc/unfoo/metadata.xml
new file mode 100644
index 000000000000..01018901a9f6
--- /dev/null
+++ b/app-misc/unfoo/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>shell-tools</herd>
+ <use>
+ <flag name="minimal">Do not install all support archive binaries</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">jlec/unfoo</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/unfoo/unfoo-1.0.8.ebuild b/app-misc/unfoo/unfoo-1.0.8.ebuild
new file mode 100644
index 000000000000..43ee3a57b7c7
--- /dev/null
+++ b/app-misc/unfoo/unfoo-1.0.8.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+DESCRIPTION="A simple bash driven frontend to simplify decompression of files"
+HOMEPAGE="http://obsoleet.org/code/unfoo"
+SRC_URI="https://github.com/jlec/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 ppc ppc64 ~s390 x86 ~amd64-linux ~x86-linux"
+IUSE="+minimal test"
+
+COMMON_DEPS="
+ || (
+ app-arch/bzip2
+ app-arch/lbzip2[symlink]
+ app-arch/pbzip2[symlink] )
+ || (
+ app-arch/gzip
+ app-arch/pigz[symlink] )
+ app-arch/p7zip
+ || (
+ app-arch/rar
+ app-arch/unrar-gpl
+ app-arch/unrar )
+ app-arch/unace
+ app-arch/unzip
+ app-arch/xz-utils"
+RDEPEND="!minimal? ( ${COMMON_DEPS} )"
+DEPEND="test? ( ${COMMON_DEPS} )"
+
+src_compile() { :; }
+
+src_install() {
+ dodoc README*
+ dobin ${PN}
+}
+
+pkg_postinst() {
+ if [[ -z ${REPLACING_VERSIONS} ]]; then
+ echo
+ elog "unfoo can handle far more than just .tar*, but it requires some"
+ elog "optional packages to do so. For a list, either consult the source"
+ elog "(less /usr/bin/unfoo), or see http://obsoleet.org/code/unfoo"
+ elog "To get full support please use USE=-minimal"
+ elif [[ ${REPLACING_VERSIONS} < 1.0.7 ]]; then
+ elog "To get full support please use USE=-minimal"
+ fi
+}
diff --git a/app-misc/uptimed/Manifest b/app-misc/uptimed/Manifest
new file mode 100644
index 000000000000..c97ec1485031
--- /dev/null
+++ b/app-misc/uptimed/Manifest
@@ -0,0 +1,2 @@
+DIST uptimed-0.3.18.tar.gz 397295 SHA256 fe9c0c78c8fca1ef9b61474f2039dc3634f2caf1c547b7ddc7a4eaa31238b2c9 SHA512 6ccc9eebec2ed1b4dd0cc11590ba277c7ed453c244207772c26d147682627e47e7265e1b599ed505fb8aae8b013c61e77889e9d5ed638f994b579142b85fed1f WHIRLPOOL 848ff159267bb71fa5b8a63f55a954d21c125306d1defb60c807921130c820c8576a050326ba0fe718805f34b17c4092a01b534ffdc852599da47ced0a754b19
+DIST uptimed-0.4.0.tar.gz 55026 SHA256 26891965bb499065e34072cecd3eb8087102b1c05f530c8fe8504a07c722f9bf SHA512 918cd9e065d5005daf5062f14dffb725cb6d6764aa571fd45d63de3f7349b910cbae0dedc832f9bfb52a42caea90e8aec8390685baaf0718fec827240e517900 WHIRLPOOL 7611a0fda9c1f9f4bee30cb6f38c65dd93dfeb185335d34173f6abf4eb6e12747f27b0adb649a33807cda264671d98be0b3135b36abde111b7d30e06b885923f
diff --git a/app-misc/uptimed/files/uptimed.init b/app-misc/uptimed/files/uptimed.init
new file mode 100644
index 000000000000..45f8d39b7345
--- /dev/null
+++ b/app-misc/uptimed/files/uptimed.init
@@ -0,0 +1,14 @@
+#!/sbin/runscript
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+description="uptimed - a daemon to record uptime records"
+pidfile="/var/run/uptimed/uptimed.pid"
+command="/usr/sbin/uptimed"
+command_args="-p ${pidfile}"
+start_stop_daemon_args="-u uptimed"
+
+start_pre() {
+ checkpath -q -d -o uptimed ${pidfile%/*}
+}
diff --git a/app-misc/uptimed/files/uptimed.service b/app-misc/uptimed/files/uptimed.service
new file mode 100644
index 000000000000..531c41570216
--- /dev/null
+++ b/app-misc/uptimed/files/uptimed.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=Uptime record tracking daemon
+Documentation=man:uptimed(8) man:uprecords(1)
+
+[Service]
+ExecStartPre=/usr/sbin/uptimed -b
+ExecStart=/usr/sbin/uptimed -f
+
+[Install]
+WantedBy=multi-user.target
diff --git a/app-misc/uptimed/metadata.xml b/app-misc/uptimed/metadata.xml
new file mode 100644
index 000000000000..982f54ca71c7
--- /dev/null
+++ b/app-misc/uptimed/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>
+ <email>polynomial-c@gentoo.org</email>
+ <name>Lars Wendler</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">rpodgorny/uptimed</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/uptimed/uptimed-0.3.18.ebuild b/app-misc/uptimed/uptimed-0.3.18.ebuild
new file mode 100644
index 000000000000..4d744d8eefe8
--- /dev/null
+++ b/app-misc/uptimed/uptimed-0.3.18.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit autotools eutils user systemd
+
+DESCRIPTION="System uptime record daemon that keeps track of your highest uptimes"
+HOMEPAGE="https://github.com/rpodgorny/uptimed/"
+SRC_URI="https://github.com/rpodgorny/uptimed/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 ~arm hppa ~mips ppc ppc64 sparc x86 ~x86-fbsd"
+IUSE="static-libs"
+
+pkg_setup() {
+ enewgroup uptimed
+ enewuser uptimed -1 -1 -1 uptimed
+}
+
+src_prepare() {
+ # respect DESTDIR
+ sed -i -e 's|-d \(/var/spool.*\)$|-d $(DESTDIR)\1|' Makefile.am || die
+ # fix configure.ac for >=automake-1.13 (bug #467582)
+ sed 's@AM_CONFIG_HEADER@AC_CONFIG_HEADERS@' -i configure.ac || die
+ eautoreconf
+}
+
+src_configure() {
+ econf $(use_enable static-libs static)
+}
+
+src_install() {
+ default
+ prune_libtool_files --all
+ keepdir /var/spool/uptimed
+ fowners uptimed:uptimed /var/spool/uptimed
+ dodoc ChangeLog README TODO AUTHORS CREDITS INSTALL.cgi sample-cgi/*
+ newinitd "${FILESDIR}"/uptimed.init uptimed
+ systemd_dounit "${FILESDIR}/${PN}.service"
+}
+
+pkg_postinst() {
+ einfo "Fixing permissions in /var/spool/${PN}"
+ chown -R uptimed:uptimed /var/spool/${PN}
+ echo
+ elog "Start uptimed with '/etc/init.d/uptimed start' (for openRC)"
+ elog "or systemctl start uptimed (for systemd)"
+ elog "To view your uptime records, use the command 'uprecords'."
+ echo
+}
diff --git a/app-misc/uptimed/uptimed-0.4.0.ebuild b/app-misc/uptimed/uptimed-0.4.0.ebuild
new file mode 100644
index 000000000000..50530a0cea31
--- /dev/null
+++ b/app-misc/uptimed/uptimed-0.4.0.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit autotools eutils user systemd
+
+DESCRIPTION="System uptime record daemon that keeps track of your highest uptimes"
+HOMEPAGE="https://github.com/rpodgorny/uptimed/"
+SRC_URI="https://github.com/rpodgorny/uptimed/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+IUSE="static-libs"
+
+pkg_setup() {
+ enewgroup uptimed
+ enewuser uptimed -1 -1 -1 uptimed
+}
+
+src_prepare() {
+ # respect DESTDIR
+ sed -i -e 's|-d \(/var/spool.*\)$|-d $(DESTDIR)\1|' Makefile.am || die
+ # fix configure.ac for >=automake-1.13 (bug #467582)
+ sed 's@AM_CONFIG_HEADER@AC_CONFIG_HEADERS@' -i configure.ac || die
+ eautoreconf
+}
+
+src_configure() {
+ econf $(use_enable static-libs static)
+}
+
+src_install() {
+ default
+ prune_libtool_files --all
+ keepdir /var/spool/uptimed
+ fowners uptimed:uptimed /var/spool/uptimed
+ dodoc ChangeLog README.md TODO AUTHORS CREDITS INSTALL.cgi sample-cgi/*
+ newinitd "${FILESDIR}"/${PN}.init uptimed
+ systemd_dounit "${FILESDIR}/${PN}.service"
+}
+
+pkg_postinst() {
+ einfo "Fixing permissions in /var/spool/${PN}"
+ chown -R uptimed:uptimed /var/spool/${PN}
+ echo
+ elog "Start uptimed with '/etc/init.d/uptimed start' (for openRC)"
+ elog "or systemctl start uptimed (for systemd)"
+ elog "To view your uptime records, use the command 'uprecords'."
+ echo
+}
diff --git a/app-misc/usbirboy/Manifest b/app-misc/usbirboy/Manifest
new file mode 100644
index 000000000000..99ca6f47fe05
--- /dev/null
+++ b/app-misc/usbirboy/Manifest
@@ -0,0 +1,2 @@
+DIST usbirboy-0.2.1.tar.gz 38664 SHA256 144e6e29dcce004f4999e2f90551529346516c478ae0773f753fda3abaed3ffd SHA512 f26daa847214f60e0883f261cf11d758f0d7a61434e2ec3c7dcee9862362d4a0d16225619cf920528a9a40f245eee97a3531112c1b57e1bec4d191a4196f161c WHIRLPOOL b1b31cdf874d8b0c040f4921bcab47d5292fba56600cab64c9b8e340c04267f3f1099473aa250043e775176cb0df4ba6b6eb1e4ee9616a7482ebfd95dfe652ab
+DIST usbirboy-0.3.1.tar.gz 49649 SHA256 cb879c1c67bb8deba385a12d5d97ca9ea6b148e77d1cd985a4fa3054b71d5cc6 SHA512 49f5c9eed4272b3066a87bfbacf95b39f1912a0fd22e580a87cf6b850e4ce98adb2c7ffb08b4c3db6d5b9cf298caa279ebeb51372eb95b9edf0b1ca02ecfba60 WHIRLPOOL e542f81644ca84953b2c789676a8f7b469358e0283262cb4881dfe0e4e87b8c140b5b47c68699057bcf5ccff0ba9771dfcd40ed1859d945604223c6e2e6084c0
diff --git a/app-misc/usbirboy/files/usbirboy-0.2.1-kernel-2.6.16.diff b/app-misc/usbirboy/files/usbirboy-0.2.1-kernel-2.6.16.diff
new file mode 100644
index 000000000000..bc2a2f0b3194
--- /dev/null
+++ b/app-misc/usbirboy/files/usbirboy-0.2.1-kernel-2.6.16.diff
@@ -0,0 +1,43 @@
+diff -ru usbirboy-0.2.1-orig/usbirboykmod/usbirboy.c usbirboy-0.2.1/usbirboykmod/usbirboy.c
+--- usbirboy-0.2.1-orig/usbirboykmod/usbirboy.c 2006-06-08 07:52:54.211338228 +0200
++++ usbirboy-0.2.1/usbirboykmod/usbirboy.c 2006-06-08 07:57:26.989743855 +0200
+@@ -76,6 +76,14 @@
+ #define LIRC_SET_REC_MODE _IOW('i', 0x00000012, __u32)
+
+
++#include <linux/version.h>
++
++#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,16)
++#define USBIRBOY_THIS_MODULE(x) x,
++#else /* >= 2.6.16 */
++#define USBIRBOY_THIS_MODULE(x)
++#endif
++
+
+ /* prevent races between open() and disconnect() */
+ static DECLARE_MUTEX (disconnect_sem);
+@@ -778,7 +784,7 @@
+
+ /*defines user space function bodies*/
+ static struct file_operations usbirboy_fops = {
+- .owner = THIS_MODULE,
++ USBIRBOY_THIS_MODULE(.owner = THIS_MODULE)
+ .read = usbirboy_user_read,
+ .ioctl = usbirboy_user_ioctl,
+ .open = usbirboy_user_open,
+@@ -790,13 +796,13 @@
+ static struct usb_class_driver usbirboy_class = {
+ .name = DRIVER_NAME,
+ .fops = &usbirboy_fops,
+- .mode = S_IFCHR | S_IRUSR | S_IRGRP | S_IROTH,
++ USBIRBOY_THIS_MODULE(.mode = S_IFCHR | S_IRUSR | S_IRGRP | S_IROTH)
+ .minor_base = USBIRBOY_MINOR_BASE,
+ };
+
+ /*driver info for kernel*/
+ static struct usb_driver usbirboy_driver = {
+- .owner = THIS_MODULE,
++ USBIRBOY_THIS_MODULE(.owner = THIS_MODULE)
+ .name = DRIVER_NAME,
+ .id_table = usbirboy_device_table,
+ .probe = usbirboy_usb_probe,
diff --git a/app-misc/usbirboy/files/usbirboy-0.2.1-module_param.diff b/app-misc/usbirboy/files/usbirboy-0.2.1-module_param.diff
new file mode 100644
index 000000000000..176ed375fb72
--- /dev/null
+++ b/app-misc/usbirboy/files/usbirboy-0.2.1-module_param.diff
@@ -0,0 +1,23 @@
+Nur in usbirboy-0.2.1/usbirboykmod: Modules.symvers.
+Nur in usbirboy-0.2.1/usbirboykmod/.tmp_versions: usbirboy.mod.
+diff -ru usbirboy-0.2.1-orig/usbirboykmod/usbirboy.c usbirboy-0.2.1/usbirboykmod/usbirboy.c
+--- usbirboy-0.2.1-orig/usbirboykmod/usbirboy.c 2006-07-03 10:30:07.393102962 +0200
++++ usbirboy-0.2.1/usbirboykmod/usbirboy.c 2006-07-03 10:34:02.999771952 +0200
+@@ -90,7 +90,8 @@
+
+ /* define debug kernel option */
+ static int debug = 0;
+-MODULE_PARM(debug, "i");
++module_param(debug, bool, 0644);
++MODULE_PARM_DESC(debug, "Enable debugging messages");
+
+ static struct usb_driver usbirboy_driver;
+ static struct usb_class_driver usbirboy_class;
+Nur in usbirboy-0.2.1/usbirboykmod: usbirboy.ko.
+Nur in usbirboy-0.2.1/usbirboykmod: .usbirboy.ko.cmd.
+Nur in usbirboy-0.2.1/usbirboykmod: usbirboy.mod.c.
+Nur in usbirboy-0.2.1/usbirboykmod: usbirboy.mod.o.
+Nur in usbirboy-0.2.1/usbirboykmod: .usbirboy.mod.o.cmd.
+Nur in usbirboy-0.2.1/usbirboykmod: usbirboy.o.
+Nur in usbirboy-0.2.1/usbirboykmod: .usbirboy.o.cmd.
+Nur in usbirboy-0.2.1-orig/usbirboykmod: .usbirboy.o.d.
diff --git a/app-misc/usbirboy/files/usbirboy-0.2.1-nice-kernel-msgs.diff b/app-misc/usbirboy/files/usbirboy-0.2.1-nice-kernel-msgs.diff
new file mode 100644
index 000000000000..8cac30623f9c
--- /dev/null
+++ b/app-misc/usbirboy/files/usbirboy-0.2.1-nice-kernel-msgs.diff
@@ -0,0 +1,48 @@
+diff -ru usbirboy-0.2.1-orig/usbirboykmod/usbirboy.c usbirboy-0.2.1/usbirboykmod/usbirboy.c
+--- usbirboy-0.2.1-orig/usbirboykmod/usbirboy.c 2006-07-06 11:47:10.353523729 +0200
++++ usbirboy-0.2.1/usbirboykmod/usbirboy.c 2006-07-06 11:49:45.352506621 +0200
+@@ -65,6 +65,8 @@
+ #define __END_DEBUG }
+
+
++#define usbirboy_info(format, arg...) printk(KERN_INFO "%s: " format "\n" , \
++ DRIVER_NAME , ## arg)
+
+ /* Strait from lirc.h adopted ioctl definitions */
+ /* Lets hope they dont change those*/
+@@ -636,7 +638,7 @@
+
+
+ /* let the user know what node this device is now attached to */
+- info("USB-IR-Boy device attached to usbirboy with minor %d\n", irdev->minor);
++ usbirboy_info("USB-IR-Boy device attached to usbirboy with minor %d", irdev->minor);
+ __DEBUG
+ printk("<----- %s \n", __FUNCTION__);
+ __END_DEBUG
+@@ -725,7 +727,7 @@
+ usbirboy_cleanup (usbirdev);
+ up (&disconnect_sem);
+
+- info( "USB-IR-Boy device disconnected. Minor: %d\n",minor);
++ usbirboy_info( "USB-IR-Boy device disconnected. Minor: %d",minor);
+ __DEBUG
+ printk("<----- %s \n", __FUNCTION__);
+ __END_DEBUG
+@@ -754,7 +756,7 @@
+ return -1;
+ }
+
+- info( DRIVER_DESC ":" DRIVER_VERSION);
++ usbirboy_info( DRIVER_DESC ":" DRIVER_VERSION);
+
+ __DEBUG
+ printk("<----- %s \n", __FUNCTION__);
+@@ -772,7 +774,7 @@
+ __END_DEBUG
+ usb_deregister (&usbirboy_driver);
+
+- info( "usbirboy_driver deregistered...\n");
++ usbirboy_info( "driver deregistered...");
+ __DEBUG
+ printk("<----- %s \n", __FUNCTION__);
+ __END_DEBUG
diff --git a/app-misc/usbirboy/metadata.xml b/app-misc/usbirboy/metadata.xml
new file mode 100644
index 000000000000..d07e38bcb915
--- /dev/null
+++ b/app-misc/usbirboy/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>media-tv</herd>
+ <upstream>
+ <remote-id type="sourceforge">usbirboy</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/usbirboy/usbirboy-0.2.1-r1.ebuild b/app-misc/usbirboy/usbirboy-0.2.1-r1.ebuild
new file mode 100644
index 000000000000..ba716fc47dc3
--- /dev/null
+++ b/app-misc/usbirboy/usbirboy-0.2.1-r1.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit linux-mod eutils
+
+DESCRIPTION="Use home made infrared receiver connected via USB"
+HOMEPAGE="http://usbirboy.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha amd64 ia64 ppc ppc64 x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+S="${WORKDIR}/${P}/usbirboykmod"
+
+pkg_setup() {
+ linux-mod_pkg_setup
+
+ if ! kernel_is -ge 2 6; then
+ die "This package works only with 2.6 kernel!"
+ fi
+
+ if ! linux_chkconfig_present USB; then
+ die "You need a kernel with enabled USB support!"
+ fi
+
+ MODULE_NAMES="usbirboy(misc:${S})"
+ BUILD_PARAMS="INCLUDE=${KV_DIR}"
+ BUILD_TARGETS="default"
+}
+
+src_unpack() {
+ unpack ${A}
+
+ epatch "${FILESDIR}/${P}-kernel-2.6.16.diff"
+ epatch "${FILESDIR}/${P}-module_param.diff"
+ epatch "${FILESDIR}/${P}-nice-kernel-msgs.diff"
+}
+
+src_install() {
+ linux-mod_src_install
+
+ dodoc README
+ newdoc ../usbirboymcu/README README.mcu
+
+ insinto /usr/share/${PN}
+ doins ../mcubin/usbirboy.s19
+
+ # Add configuration for udev
+ dodir /etc/udev/rules.d
+ echo 'KERNEL=="usbirboy", NAME="%k", SYMLINK="lirc"' \
+ > "${D}etc/udev/rules.d/55-${PN}.rules"
+}
+
+pkg_postinst() {
+ linux-mod_pkg_postinst
+ elog
+ elog "Firmware file has been installed to /usr/share/${PN}"
+ elog
+}
diff --git a/app-misc/usbirboy/usbirboy-0.3.1-r1.ebuild b/app-misc/usbirboy/usbirboy-0.3.1-r1.ebuild
new file mode 100644
index 000000000000..fe9b8383adac
--- /dev/null
+++ b/app-misc/usbirboy/usbirboy-0.3.1-r1.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit linux-mod eutils
+
+DESCRIPTION="Use home made infrared receiver connected via USB"
+HOMEPAGE="http://usbirboy.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+S="${WORKDIR}/${P}/usbirboykmod"
+
+pkg_setup() {
+ linux-mod_pkg_setup
+
+ if ! kernel_is -ge 2 6; then
+ die "This package works only with 2.6 kernel!"
+ fi
+
+ if ! linux_chkconfig_present USB; then
+ die "You need a kernel with enabled USB support!"
+ fi
+
+ MODULE_NAMES="usbirboy(misc:${S})"
+ BUILD_PARAMS="INCLUDE=${KV_DIR}"
+ BUILD_TARGETS="clean all"
+}
+
+src_install() {
+ linux-mod_src_install
+
+ dodoc README
+ newdoc ../usbirboymcu/README README.mcu
+
+ insinto /usr/share/${PN}
+ doins ../mcubin/usbirboy.s19
+
+ # Add configuration for udev
+ dodir /etc/udev/rules.d
+ echo 'KERNEL=="usbirboy", SYMLINK+="lirc"' \
+ > "${D}etc/udev/rules.d/30-${PN}.rules"
+}
+
+pkg_postinst() {
+ linux-mod_pkg_postinst
+ elog
+ elog "Firmware file has been installed to /usr/share/${PN}"
+ elog
+}
diff --git a/app-misc/usbirboy/usbirboy-0.3.1.ebuild b/app-misc/usbirboy/usbirboy-0.3.1.ebuild
new file mode 100644
index 000000000000..c25c5ead0c75
--- /dev/null
+++ b/app-misc/usbirboy/usbirboy-0.3.1.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit linux-mod eutils
+
+DESCRIPTION="Use home made infrared receiver connected via USB"
+HOMEPAGE="http://usbirboy.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+S="${WORKDIR}/${P}/usbirboykmod"
+
+pkg_setup() {
+ linux-mod_pkg_setup
+
+ if ! kernel_is -ge 2 6; then
+ die "This package works only with 2.6 kernel!"
+ fi
+
+ if ! linux_chkconfig_present USB; then
+ die "You need a kernel with enabled USB support!"
+ fi
+
+ MODULE_NAMES="usbirboy(misc:${S})"
+ BUILD_PARAMS="INCLUDE=${KV_DIR}"
+ BUILD_TARGETS="clean all"
+}
+
+src_install() {
+ linux-mod_src_install
+
+ dodoc README
+ newdoc ../usbirboymcu/README README.mcu
+
+ insinto /usr/share/${PN}
+ doins ../mcubin/usbirboy.s19
+
+ # Add configuration for udev
+ dodir /etc/udev/rules.d
+ echo 'KERNEL=="usbirboy", NAME="%k", SYMLINK="lirc"' \
+ > "${D}etc/udev/rules.d/55-${PN}.rules"
+}
+
+pkg_postinst() {
+ linux-mod_pkg_postinst
+ elog
+ elog "Firmware file has been installed to /usr/share/${PN}"
+ elog
+}
diff --git a/app-misc/utimer/Manifest b/app-misc/utimer/Manifest
new file mode 100644
index 000000000000..2dadde178f9b
--- /dev/null
+++ b/app-misc/utimer/Manifest
@@ -0,0 +1 @@
+DIST utimer-0.4.tar.gz 144408 SHA256 07a9d28e15155a10b7e6b22af05c84c878d95be782b6b0afaadec2f7884aa0f7 SHA512 f1a375de4b4b5b0f478e208e055badb12a49524137cbd9626238bc5fc35cf3576e7a7c66759dd00a061d12dc7a0ad3ee6974abc8213f5f6f8e22c50eb2901032 WHIRLPOOL ca76a257ae83f8197c84dea7bae0ddaabc3847e82d1f868fd92fec65340cdc317582d553a912897d3743c9f913559018467ea40274a4e3dc26e5b3a9a47710c3
diff --git a/app-misc/utimer/metadata.xml b/app-misc/utimer/metadata.xml
new file mode 100644
index 000000000000..eaebd024bbfc
--- /dev/null
+++ b/app-misc/utimer/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>proxy-maintainers</herd>
+<maintainer>
+<email>hwoarang@gentoo.org</email>
+<name>Markos Chandras</name>
+<description>Proxy maintainer. CC him on bugs</description>
+</maintainer>
+<maintainer>
+<email>lavi.kfir@gmail.com</email>
+<name>Kfir Lavi</name>
+<description>Maintainer. Assign bugs to him</description>
+</maintainer>
+<longdescription lang="en">
+</longdescription>
+</pkgmetadata>
+
diff --git a/app-misc/utimer/utimer-0.4.ebuild b/app-misc/utimer/utimer-0.4.ebuild
new file mode 100644
index 000000000000..9feea5d8b5c3
--- /dev/null
+++ b/app-misc/utimer/utimer-0.4.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=2
+
+DESCRIPTION="A command line timer and stopwatch"
+HOMEPAGE="http://utimer.codealpha.net/utimer"
+SRC_URI="http://utimer.codealpha.net/dl.php?file=${P}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="debug nls"
+
+DEPEND=">=dev-libs/glib-2.18.2
+ >=dev-util/intltool-0.40.5"
+RDEPEND="${RDEPEND}"
+
+src_configure() {
+ local myconf=
+ if use debug; then
+ myconf="--enable-debug=yes"
+ else
+ myconf="--enable-debug=no"
+ fi
+ econf ${myconf} $(use_enable nls)
+}
+
+src_install() {
+ emake install DESTDIR="${D}" || die "failed to install"
+ dodoc AUTHORS ChangeLog NEWS README || die "dodoc failed"
+}
diff --git a/app-misc/vcp/Manifest b/app-misc/vcp/Manifest
new file mode 100644
index 000000000000..217dcc282e38
--- /dev/null
+++ b/app-misc/vcp/Manifest
@@ -0,0 +1 @@
+DIST vcp-2.2.tar.gz 20075 SHA256 2827f09e46e975bdd079f7ad826d29dd6eafa567dcb9059b7fb2a9a49f931b01 SHA512 3f9f60bce875f16a825b935fd241b11cc75d45b85b66133b27d16b86644c4bbfe69fa5f22571703e0ed6d235498f920a8796f6d74259db51a1abbd626c6f5137 WHIRLPOOL f0bea40888a271baf154a35928c3369c8bfe01ad0406386d8bc305138f2268e4460848d801ff55a5ab9fc8f9b55156ea7e8445a78365a8ceac3673dace0354f3
diff --git a/app-misc/vcp/metadata.xml b/app-misc/vcp/metadata.xml
new file mode 100644
index 000000000000..40149c995561
--- /dev/null
+++ b/app-misc/vcp/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>shell-tools</herd>
+</pkgmetadata>
diff --git a/app-misc/vcp/vcp-2.2-r1.ebuild b/app-misc/vcp/vcp-2.2-r1.ebuild
new file mode 100644
index 000000000000..cd3b7e4e2ceb
--- /dev/null
+++ b/app-misc/vcp/vcp-2.2-r1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="2"
+
+inherit flag-o-matic toolchain-funcs
+
+DESCRIPTION="copy files/directories in a curses interface"
+HOMEPAGE="http://members.iinet.net.au/~lynx/vcp/"
+SRC_URI="http://members.iinet.net.au/~lynx/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 ppc ~sparc x86"
+IUSE=""
+
+DEPEND="sys-libs/ncurses"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ sed -i Makefile -e '/-o vcp/s|$(CFLAGS)|& $(LDFLAGS)|' || die "sed Makefile"
+}
+
+src_compile() {
+ filter-lfs-flags
+ emake CC="$(tc-getCC)" || die "emake failed"
+}
+
+src_install() {
+ dobin vcp || die "dobin failed"
+ doman vcp.1 || die "doman failed"
+ insinto /etc
+ newins vcp.conf.sample vcp.conf || die "newins failed"
+ dodoc Changelog README INSTALL || die "dodoc failed"
+}
diff --git a/app-misc/vifm/Manifest b/app-misc/vifm/Manifest
new file mode 100644
index 000000000000..f0663e6d36d4
--- /dev/null
+++ b/app-misc/vifm/Manifest
@@ -0,0 +1,4 @@
+DIST vifm-0.7.2.tar.bz2 468086 SHA256 f95e49a8518dd1acc9b7b750658a98bcf1cb538e25520a5a300b5812108fbc8d SHA512 24a5ad44cecd01f489b95008f0b98ad6cd63656bc7fe4a888101f369f9b258cb87b8025efac30237fbaebc7aff14d173d02118839312017276f3f6b62ea4a3b9 WHIRLPOOL 9c954dbe659e3303315642738bafb962f6f20820af0fe587b3c525ad7a93aca3f9090fe5d2d871a291ce95c9add81f7d717ae5adbdcbe2a58d2889e0bf3e50dc
+DIST vifm-0.7.7.tar.bz2 633812 SHA256 0dc0271c016ab2d2017bc3c2389bd2ab747603f1c05f425a8a181f5cdaacd4d1 SHA512 a95ee365a287c06515c5541ce67e609dacb8b8640f0fec5b33bd3794a8f8445fd8052e5bbd42bda0d23f9c5b5e5591978412bcea0c7ceb6ab403fa271e219455 WHIRLPOOL 8faea36324a8cf6c125996170ab87ee58f71cadea4263857d6c89593ceea54a1a2645368718d89ec31daf477bb54c3955275c68e933a5220373a620c10d2df97
+DIST vifm-0.7.8.tar.bz2 623154 SHA256 5dfbb26c2038a58dcff12026dab736e29d547b4aa3ff5912e4d844064c9e7603 SHA512 ac70055739aeee915ccf5b22bd497ff691d159d9c0aaa4d38de69db33538a5360c9cabe0678ce51f7bce26adfc5657860d071725a14adf577f263bd180fab676 WHIRLPOOL 899ee45e6ff1ee8a3aa05bed01358c0e95cfad226713597737bd0b5eef8518deefabe9f3eff9ebde91a508818d1fcc2a3bd8ade714da8e91eaf11ac314ae51dd
+DIST vifm-0.8.tar.bz2 756795 SHA256 69eb6b50dcf462f4233ff987f0b6a295df08a27bc42577ebef725bfe58dbdeeb SHA512 b4727b7a9f577eb05c4e8830849a00759cbeb35457c8fa533136a0a68124312f2bb8c5c21239fbbd34f567ddaca247ede05e48e72b890bb4f15d12adebc23210 WHIRLPOOL 78d030cc9eda292ce75656eedc3ede3e02c87522517d7b7d49f0e993dbfc438a5b5e0dcf8fed531eeb1e045f01d5418d1e7fbc84cb53da800bb54d7ab4a636d7
diff --git a/app-misc/vifm/files/vifm-0.7.8-fix-ncurses-tinfo.patch b/app-misc/vifm/files/vifm-0.7.8-fix-ncurses-tinfo.patch
new file mode 100644
index 000000000000..888acd41c318
--- /dev/null
+++ b/app-misc/vifm/files/vifm-0.7.8-fix-ncurses-tinfo.patch
@@ -0,0 +1,14 @@
+diff -Nuar a/configure.ac b/configure.ac
+--- a/configure.ac 2014-10-25 17:09:35.000000000 +0200
++++ b/configure.ac 2014-11-26 16:42:50.229999426 +0100
+@@ -335,7 +335,9 @@
+ if test x$vifm_cv_curses = x/usr -a -d /usr/include/${curses_lib_name}; then
+ CPPFLAGS="$CPPFLAGS -I/usr/include/${curses_lib_name}"
+ fi
+- ncurses_found=yes])
++ ncurses_found=yes]
++ AC_SEARCH_LIBS([curs_set], [tinfo],,
++ AC_MSG_ERROR(could not find a library providing curs_set)))
+ dnl If libncursesw is not found on OS X, check for libncurses. On OS X it has
+ dnl support of wide characters.
+ if test -n "$OSX_HOST" -a "x$ncurses_found" != "xyes"; then
diff --git a/app-misc/vifm/metadata.xml b/app-misc/vifm/metadata.xml
new file mode 100644
index 000000000000..6e5b5f80d1bc
--- /dev/null
+++ b/app-misc/vifm/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>
+ <email>nimiux@gentoo.org</email>
+ <name>Chema Alonso</name>
+ </maintainer>
+ <longdescription>
+ Vifm is a ncurses based file manager with vi like keybindings. If you
+ use vi, vifm gives you complete keyboard control over your files without
+ having to learn a new set of commands.
+ </longdescription>
+ <longdescription lang="es">
+ Vifm es un gestor de ficheros basado en ncurses con definiciones de
+ teclas estilo vi. Si utiliza vi, vifm le ofrece un control completo
+ de sus ficheros utilizando el teclado si tener que aprender un nuevo
+ conjunto de órdenes.
+ </longdescription>
+ <use>
+ <flag name="compatibility">Compatibility with previous versions of vifm</flag>
+ <flag name="developer">Enable features of interest to developers</flag>
+ <flag name="extended-keys">Support for extended keys (arrows, home etc)</flag>
+ <flag name="gtk">Use gtk+ to determine mimetypes</flag>
+ <flag name="magic">Use libmagic to determine mimetypes</flag>
+ <flag name="vim">Install the vifm vim plugin and vim-compatible documentation</flag>
+ <flag name="vim-plugin">Install the vifm vim plugin</flag>
+ <flag name="vim-syntax">Pulls in related vim syntax scripts</flag>
+ <flag name="X">Add support for X11</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">vifm</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/vifm/vifm-0.7.2.ebuild b/app-misc/vifm/vifm-0.7.2.ebuild
new file mode 100644
index 000000000000..c3b4be3ccddc
--- /dev/null
+++ b/app-misc/vifm/vifm-0.7.2.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit base
+
+DESCRIPTION="Console file manager with vi(m)-like keybindings"
+HOMEPAGE="http://vifm.info/"
+SRC_URI="mirror://sourceforge/vifm/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc s390 x86"
+IUSE="+compatibility +extended-keys +magic vim-plugin vim-syntax"
+
+DEPEND="
+ >=sys-libs/ncurses-5.7-r7
+ magic? ( sys-apps/file )
+"
+RDEPEND="
+ ${DEPEND}
+ vim-plugin? ( >=app-editors/vim-7.3 )
+ vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )
+"
+
+DOCS=( AUTHORS FAQ NEWS README TODO )
+
+S="${WORKDIR}"
+
+src_configure() {
+ econf \
+ $(use_enable compatibility compatibility-mode) \
+ $(use_enable extended-keys) \
+ $(use_with magic libmagic)
+}
+
+src_install() {
+ base_src_install
+
+ if use vim-syntax; then
+ local t
+ for t in ftdetect ftplugin syntax; do
+ insinto /usr/share/vim/vimfiles/"${t}"
+ doins "${S}"/data/vim/"${t}"/"${PN}".vim
+ done
+ fi
+ if use vim-plugin; then
+ local t
+ for t in doc plugin; do
+ insinto /usr/share/vim/vimfiles/"${t}"
+ doins "${S}"/data/vim/"${t}"/"${PN}".*
+ done
+ fi
+}
+
+pkg_postinst() {
+ elog "To use vim to view the vifm help, copy /usr/share/${P}/vifm.txt"
+ elog " to ~/.vim/doc/ and run ':helptags ~/.vim/doc' in vim,"
+ elog "then edit ~/.vifm/vifmrc${PV/a/} and set USE_VIM_HELP=1"
+ elog ""
+ elog "To use the vifm plugin in vim, copy /usr/share/${P}/vifm.vim to"
+ elog " /usr/share/vim/vimXX/"
+}
diff --git a/app-misc/vifm/vifm-0.7.7.ebuild b/app-misc/vifm/vifm-0.7.7.ebuild
new file mode 100644
index 000000000000..06c2fbfbca5d
--- /dev/null
+++ b/app-misc/vifm/vifm-0.7.7.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit base vim-doc
+
+DESCRIPTION="Console file manager with vi(m)-like keybindings"
+HOMEPAGE="http://vifm.info/"
+SRC_URI="mirror://sourceforge/vifm/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc ~s390 x86"
+IUSE="X developer +extended-keys gtk +magic vim vim-syntax"
+
+DEPEND="
+ >=sys-libs/ncurses-5.7-r7
+ magic? ( sys-apps/file )
+ gtk? ( x11-libs/gtk+:2 )
+ X? ( x11-libs/libX11 )
+"
+RDEPEND="
+ ${DEPEND}
+ vim? ( || ( app-editors/vim app-editors/gvim ) )
+ vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )
+"
+
+DOCS=( AUTHORS FAQ NEWS README TODO )
+
+src_configure() {
+ econf \
+ $(use_enable developer) \
+ $(use_enable extended-keys) \
+ $(use_with magic libmagic) \
+ $(use_with gtk) \
+ $(use_with X X11)
+}
+
+src_install() {
+ base_src_install
+
+ if use vim; then
+ local t
+ for t in doc plugin; do
+ insinto /usr/share/vim/vimfiles/"${t}"
+ doins "${S}"/data/vim/"${t}"/"${PN}".*
+ done
+ fi
+
+ if use vim-syntax; then
+ local t
+ for t in ftdetect ftplugin syntax; do
+ insinto /usr/share/vim/vimfiles/"${t}"
+ doins "${S}"/data/vim/"${t}"/"${PN}".vim
+ done
+ fi
+}
+
+src_test() {
+ emake check
+}
+
+pkg_postinst() {
+ if use vim; then
+ update_vim_helptags
+
+ if [[ -n ${REPLACING_VERSIONS} ]]; then
+ elog
+ elog "You don't need to copy or link any files for"
+ elog " the vim plugin and documentation to work anymore."
+ elog "If you copied any vifm files to ~/.vim/ manually"
+ elog " in earlier vifm versions, please delete them."
+ fi
+ elog
+ elog "To use vim in vifm to view the documentation"
+ elog " edit ~/.vifm/vifmrc and set vimhelp instead of novimhelp"
+ elog
+ fi
+}
+
+pkg_postrm() {
+ use vim && update_vim_helptags
+}
diff --git a/app-misc/vifm/vifm-0.7.8.ebuild b/app-misc/vifm/vifm-0.7.8.ebuild
new file mode 100644
index 000000000000..4f158045dd37
--- /dev/null
+++ b/app-misc/vifm/vifm-0.7.8.ebuild
@@ -0,0 +1,95 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit autotools eutils vim-doc
+
+DESCRIPTION="Console file manager with vi(m)-like keybindings"
+HOMEPAGE="http://vifm.info/"
+SRC_URI="mirror://sourceforge/vifm/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc ~s390 x86"
+IUSE="X developer +extended-keys gtk +magic vim vim-syntax"
+
+DEPEND="
+ >=sys-libs/ncurses-5.7-r7
+ magic? ( sys-apps/file )
+ gtk? ( x11-libs/gtk+:2 )
+ X? ( x11-libs/libX11 )
+"
+RDEPEND="
+ ${DEPEND}
+ vim? ( || ( app-editors/vim app-editors/gvim ) )
+ vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )
+"
+
+DOCS="AUTHORS FAQ NEWS README TODO"
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-fix-ncurses-tinfo.patch"
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_enable developer) \
+ $(use_enable extended-keys) \
+ $(use_with magic libmagic) \
+ $(use_with gtk) \
+ $(use_with X X11)
+}
+
+src_compile() {
+ default
+}
+
+src_install() {
+ einstall
+ dodoc ${DOCS}
+
+ if use vim; then
+ local t
+ for t in app plugin; do
+ insinto /usr/share/vim/vimfiles/"${t}"
+ doins "${S}"/data/vim/doc/"${t}"/"${PN}"*
+ done
+ fi
+
+ if use vim-syntax; then
+ local t
+ for t in ftdetect ftplugin syntax; do
+ insinto /usr/share/vim/vimfiles/"${t}"
+ doins "${S}"/data/vim/"${t}"/"${PN}".vim
+ done
+ fi
+}
+
+src_test() {
+ emake check
+}
+
+pkg_postinst() {
+ if use vim; then
+ update_vim_helptags
+
+ if [[ -n ${REPLACING_VERSIONS} ]]; then
+ elog
+ elog "You don't need to copy or link any files for"
+ elog " the vim plugin and documentation to work anymore."
+ elog "If you copied any vifm files to ~/.vim/ manually"
+ elog " in earlier vifm versions, please delete them."
+ fi
+ elog
+ elog "To use vim in vifm to view the documentation"
+ elog " edit ~/.vifm/vifmrc and set vimhelp instead of novimhelp"
+ elog
+ fi
+}
+
+pkg_postrm() {
+ use vim && update_vim_helptags
+}
diff --git a/app-misc/vifm/vifm-0.8.ebuild b/app-misc/vifm/vifm-0.8.ebuild
new file mode 100644
index 000000000000..01d28b9ec95a
--- /dev/null
+++ b/app-misc/vifm/vifm-0.8.ebuild
@@ -0,0 +1,94 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit autotools vim-doc
+
+DESCRIPTION="Console file manager with vi(m)-like keybindings"
+HOMEPAGE="http://vifm.info/"
+SRC_URI="mirror://sourceforge/vifm/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~s390 ~x86"
+IUSE="X developer +extended-keys gtk +magic vim vim-syntax"
+
+DEPEND="
+ >=sys-libs/ncurses-5.7-r7
+ magic? ( sys-apps/file )
+ gtk? ( x11-libs/gtk+:2 )
+ X? ( x11-libs/libX11 )
+"
+RDEPEND="
+ ${DEPEND}
+ vim? ( || ( app-editors/vim app-editors/gvim ) )
+ vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )
+"
+
+DOCS="AUTHORS FAQ NEWS README TODO"
+
+src_prepare() {
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_enable developer) \
+ $(use_enable extended-keys) \
+ $(use_with magic libmagic) \
+ $(use_with gtk) \
+ $(use_with X X11)
+}
+
+src_compile() {
+ default
+}
+
+src_install() {
+ einstall
+ dodoc ${DOCS}
+
+ if use vim; then
+ local t
+ for t in app plugin; do
+ insinto /usr/share/vim/vimfiles/"${t}"
+ doins "${S}"/data/vim/doc/"${t}"/"${PN}"*
+ done
+ fi
+
+ if use vim-syntax; then
+ local t
+ for t in ftdetect ftplugin syntax; do
+ insinto /usr/share/vim/vimfiles/"${t}"
+ doins "${S}"/data/vim/"${t}"/"${PN}".vim
+ done
+ fi
+}
+
+src_test() {
+ emake check
+}
+
+pkg_postinst() {
+ if use vim; then
+ update_vim_helptags
+
+ if [[ -n ${REPLACING_VERSIONS} ]]; then
+ elog
+ elog "You don't need to copy or link any files for"
+ elog " the vim plugin and documentation to work anymore."
+ elog "If you copied any vifm files to ~/.vim/ manually"
+ elog " in earlier vifm versions, please delete them."
+ fi
+ elog
+ elog "To use vim in vifm to view the documentation"
+ elog " edit ~/.vifm/vifmrc and set vimhelp instead of novimhelp"
+ elog
+ fi
+}
+
+pkg_postrm() {
+ use vim && update_vim_helptags
+}
diff --git a/app-misc/vittk/Manifest b/app-misc/vittk/Manifest
new file mode 100644
index 000000000000..7cd4afbd1d00
--- /dev/null
+++ b/app-misc/vittk/Manifest
@@ -0,0 +1 @@
+DIST vittk-1.3.tar.gz 71921 SHA256 da672b7845855211644a5a0771500cffb1756c579d57dc33e2dabc5b86d8a5dd SHA512 feda4eda7780a5a2a51acbc4c4d47ba5b88c3c01c82ae8715e7822700843e0d7de365b786554db59f7e40dbdff6f6bb0083a2126b1b082586504d8d16112af6d WHIRLPOOL 2bdd3d08e67afc0e4b12e8bd7e2bc6a6803683bfcd816330ea2ee2639256c618f96eec44d51723c280cbc5764f24a27ce925b3278e30c4b9fd06b1e134eb9ab7
diff --git a/app-misc/vittk/files/vittk-1.1.1-dirs.patch b/app-misc/vittk/files/vittk-1.1.1-dirs.patch
new file mode 100644
index 000000000000..050d1bcded01
--- /dev/null
+++ b/app-misc/vittk/files/vittk-1.1.1-dirs.patch
@@ -0,0 +1,66 @@
+--- vittk-1.1.1.orig/vittk.in
++++ vittk-1.1.1/vittk.in
+@@ -17,7 +17,7 @@
+
+ set font "@FONT@"
+ set system_task_cmd "ls"
+-set system_vittkrc "@prefix@/etc/vittkrc"
++set system_vittkrc "@sysconfdir@/vittkrc"
+ set task "@TASK@"
+ set ver "@VER@"
+
+@@ -28,8 +28,8 @@
+ source ./vars.tcl
+ set auto_path ". $auto_path"
+ } else {
+- source @prefix@/lib/vittk/vars.tcl
+- set auto_path "@prefix@/lib/vittk $auto_path"
++ source @libdir@/vittk/vars.tcl
++ set auto_path "@libdir@/vittk $auto_path"
+ }
+
+ ReadRcs
+--- vittk-1.1.1.orig/vittk.man.in
++++ vittk-1.1.1/vittk.man.in
+@@ -89,13 +89,13 @@
+ in Taskwarrior. At this time, various other parts of the VITtk color
+ scheme can only be changed system-wide by altering the variables in
+ .br
+-@prefix@/lib/vars.tcl.
++@libdir@/vars.tcl.
+ .SH FONTS
+ VITtk requires a fixed-width font for it's columns to align correctly.
+ The default font "TkFixedFont" has been set to ensure this happens. You can
+ use other Xwindows fonts by using the -fn option or your ~/.vittkrc file.
+ Instructions for browsing fixed-width fonts can be found in the
+-/usr/local/share/doc/vittk/Fonts file. If you specify a proportional font
++@docdir@/Fonts file. If you specify a proportional font
+ (you will get a warning message and) the VITtk display will probably look very
+ bad, and if you use the -fn option with the name of a non-existent font then
+ VITtk will default the default tcl/tkfont (e.g. "fixed") without warning.
+@@ -103,20 +103,20 @@
+ fixed-width, so care should be taken to specify an existing font.
+ .SH SETTINGS
+ There are a number of settings which allow you to "remotely control"
+-many aspects of VITtk. Refer to the @prefix@/etc/vittkrc file for more
++many aspects of VITtk. Refer to the @sysconfdir@/vittkrc file for more
+ information. There are also some settings which are hard-coded
+ (e.g. how long feedback messages are displayed.) These could be
+-changed sytem-wide by editing @prefix@/lib/vars.tcl.
++changed sytem-wide by editing @libdir@/vars.tcl.
+ .SH FILES
+-@prefix@/etc/vittkrc - the system-wide VITtk configuration file
++@sysconfdir@/vittkrc - the system-wide VITtk configuration file
+ .br
+ ~/.vittkrc - user VITtk configuration file
+ .br
+ /tmp/vittk-$USER.log - VITtk actions log
+ .br
+-@prefix@/share/doc/vittk/README - quick start and more information
++@docdir@/README - quick start and more information
+ .br
+-@prefix@/share/doc/vittk/Tutorial - a brief VITtk tutoral
++@docdir@/Tutorial - a brief VITtk tutoral
+ .SH CREDITS & COPYRIGHT
+ VITtk was written by Steve Rader (C) 2011.
+
diff --git a/app-misc/vittk/files/vittk-1.3-configure.patch b/app-misc/vittk/files/vittk-1.3-configure.patch
new file mode 100644
index 000000000000..b45464bfb8b1
--- /dev/null
+++ b/app-misc/vittk/files/vittk-1.3-configure.patch
@@ -0,0 +1,32 @@
+--- vittk-1.3/configure.in.orig
++++ vittk-1.3/configure.in
+@@ -14,11 +14,11 @@
+ fi
+ AC_SUBST(BASH)
+
+-AC_PATH_PROG(WISH, wish, NOT_FOUND)
+-if test "$WISH" = "NOT_FOUND"; then
+- AC_MSG_ERROR([can not continue: wish not found])
++AC_PATH_PROG(TCLSH, tclsh, NOT_FOUND)
++if test "$TCLSH" = "NOT_FOUND"; then
++ AC_MSG_ERROR([can not continue: tclsh not found])
+ fi
+-AC_SUBST(WISH)
++AC_SUBST(TCLSH)
+
+ AC_PATH_PROG(TASK, task, NOT_FOUND)
+ if test "$TASK" = "NOT_FOUND"; then
+@@ -30,12 +30,9 @@
+ AC_SUBST(FONT)
+
+ AC_OUTPUT(task-startstop task-undo Makefile vittk.man vittk)
+-chmod 755 task-startstop
+-chmod 755 task-undo
+-chmod 755 vittk
+
+ echo creating ./tclIndex
+-echo "auto_mkindex `pwd`; exit" | $WISH
++echo "auto_mkindex `pwd`; exit" | $TCLSH
+
+ echo "./configure is done"
+ echo "now do \"sudo make install\" or \"make install\""
diff --git a/app-misc/vittk/files/vittk-1.3-makefile.patch b/app-misc/vittk/files/vittk-1.3-makefile.patch
new file mode 100644
index 000000000000..a7148fdf64dc
--- /dev/null
+++ b/app-misc/vittk/files/vittk-1.3-makefile.patch
@@ -0,0 +1,87 @@
+--- vittk-1.3/Makefile.in.orig
++++ vittk-1.3/Makefile.in
+@@ -10,45 +10,45 @@
+ @echo "usage: make install"
+
+ install:
+- @if [ ! -d @prefix@/bin ]; then \
+- echo mkdir -p @prefix@/bin ; \
+- mkdir -p @prefix@/bin ; \
++ @if [ ! -d $(DESTDIR)@prefix@/bin ]; then \
++ echo mkdir -p $(DESTDIR)@prefix@/bin ; \
++ mkdir -p $(DESTDIR)@prefix@/bin ; \
+ fi
+- @if [ ! -d @prefix@/share/doc/vittk ]; then \
+- echo mkdir -p @prefix@/share/doc/vittk ; \
+- mkdir -p @prefix@/share/doc/vittk ; \
++ @if [ ! -d $(DESTDIR)@docdir@ ]; then \
++ echo mkdir -p $(DESTDIR)@docdir@ ; \
++ mkdir -p $(DESTDIR)@docdir@ ; \
+ fi
+- @echo installing documentation in @prefix@/share/doc/vittk
+- @$(INSTALL) -c -m 644 Caveats @prefix@/share/doc/vittk/Caveats
+- @$(INSTALL) -c -m 644 Fonts @prefix@/share/doc/vittk/Fonts
+- @$(INSTALL) -c -m 644 README @prefix@/share/doc/vittk/README
+- @$(INSTALL) -c -m 644 Tutorial @prefix@/share/doc/vittk/Tutorial
+- @$(INSTALL) -c -m 644 WhatsNew @prefix@/share/doc/vittk/WhatsNew
+- @echo installing man page in @prefix@/man/man1
+- @if [ ! -d @prefix@/man/man1 ]; then \
+- echo mkdir -p @prefix@/man/man1 ; \
+- mkdir -p @prefix@/man/man1 ; \
++ @echo installing documentation in $(DESTDIR)@docdir@
++ @$(INSTALL) -c -m 644 Caveats $(DESTDIR)@docdir@/Caveats
++ @$(INSTALL) -c -m 644 Fonts $(DESTDIR)@docdir@/Fonts
++ @$(INSTALL) -c -m 644 README $(DESTDIR)@docdir@/README
++ @$(INSTALL) -c -m 644 Tutorial $(DESTDIR)@docdir@/Tutorial
++ @$(INSTALL) -c -m 644 WhatsNew $(DESTDIR)@docdir@/WhatsNew
++ @echo installing man page in $(DESTDIR)@mandir@/man1
++ @if [ ! -d $(DESTDIR)@mandir@/man1 ]; then \
++ echo mkdir -p $(DESTDIR)@mandir@/man1 ; \
++ mkdir -p $(DESTDIR)@mandir@/man1 ; \
+ fi
+- @$(INSTALL) -c -m 644 vittk.man @prefix@/man/man1/vittk.1
+- @echo installing vittkrc in @prefix@/etc
+- @$(INSTALL) -c -m 644 vittkrc @prefix@/etc/vittkrc
+- @if [ ! -d @prefix@/libexec/vittk ]; then \
+- echo mkdir -p @prefix@/libexec/vittk ; \
+- mkdir -p @prefix@/libexec/vittk ; \
++ @$(INSTALL) -c -m 644 vittk.man $(DESTDIR)@mandir@/man1/vittk.1
++ @echo installing vittkrc in $(DESTDIR)@sysconfdir@
++ @$(INSTALL) -c -m 644 vittkrc $(DESTDIR)@sysconfdir@/vittkrc
++ @if [ ! -d $(DESTDIR)@prefix@/libexec/vittk ]; then \
++ echo mkdir -p $(DESTDIR)@prefix@/libexec/vittk ; \
++ mkdir -p $(DESTDIR)@prefix@/libexec/vittk ; \
+ fi
+- @echo installing task-startstop in @prefix@/libexec/vittk
+- @$(INSTALL) -c -m 755 task-startstop @prefix@/libexec/vittk/task-startstop
+- @echo installing task-undo in @prefix@/libexec/vittk
+- @$(INSTALL) -c -m 755 task-undo @prefix@/libexec/vittk/task-undo
+- @echo installing .tcl files and tclIndex in @prefix@/lib/vittk
+- @if [ ! -d @prefix@/lib/vittk ]; then \
+- echo mkdir -p @prefix@/lib/vittk ; \
+- mkdir -p @prefix@/lib/vittk ; \
++ @echo installing task-startstop in $(DESTDIR)@prefix@/libexec/vittk
++ @$(INSTALL) -c -m 755 task-startstop $(DESTDIR)@prefix@/libexec/vittk/task-startstop
++ @echo installing task-undo in $(DESTDIR)@prefix@/libexec/vittk
++ @$(INSTALL) -c -m 755 task-undo $(DESTDIR)@prefix@/libexec/vittk/task-undo
++ @echo installing .tcl files and tclIndex in $(DESTDIR)@libdir@/vittk
++ @if [ ! -d $(DESTDIR)@libdir@/vittk ]; then \
++ echo mkdir -p $(DESTDIR)@libdir@/vittk ; \
++ mkdir -p $(DESTDIR)@libdir@/vittk ; \
+ fi
+- @cp *.tcl @prefix@/lib/vittk
+- @cp tclIndex @prefix@/lib/vittk
+- @echo installing vittk in @prefix@/bin
+- @$(INSTALL) -c -m 755 vittk @prefix@/bin/vittk
++ @cp *.tcl $(DESTDIR)@libdir@/vittk
++ @cp tclIndex $(DESTDIR)@libdir@/vittk
++ @echo installing vittk in $(DESTDIR)@prefix@/bin
++ @$(INSTALL) -c -m 755 vittk $(DESTDIR)@prefix@/bin/vittk
+
+ autoconf:
+ @make -f .makefile autoconf
+@@ -61,3 +61,4 @@
+ dogfood:
+ @make -f .makefile dogfood
+
++check:
diff --git a/app-misc/vittk/metadata.xml b/app-misc/vittk/metadata.xml
new file mode 100644
index 000000000000..5119d3aa19f6
--- /dev/null
+++ b/app-misc/vittk/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>
+ <email>radhermit@gentoo.org</email>
+ <name>Tim Harder</name>
+</maintainer>
+<longdescription lang="en">
+ A comprehensive front end for Taskwarrior (<pkg>app-misc/task</pkg>) that
+ provides a fullscreen emulated terminal window with modes and commands
+ modeled after the vi editor.
+</longdescription>
+</pkgmetadata>
diff --git a/app-misc/vittk/vittk-1.3.ebuild b/app-misc/vittk/vittk-1.3.ebuild
new file mode 100644
index 000000000000..0e8ac0c6b97f
--- /dev/null
+++ b/app-misc/vittk/vittk-1.3.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit eutils autotools
+
+DESCRIPTION="A front end for Taskwarrior (app-misc/task)"
+HOMEPAGE="http://taskwarrior.org/wiki/taskwarrior/Vittk"
+SRC_URI="http://taskwarrior.org/download/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-lang/tcl:0"
+RDEPEND="${DEPEND}
+ dev-lang/tk:0
+ app-misc/task"
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${P}-configure.patch \
+ "${FILESDIR}"/${P}-makefile.patch \
+ "${FILESDIR}"/${PN}-1.1.1-dirs.patch
+ eautoreconf
+}
+
+src_configure() {
+ econf --docdir="${EPREFIX}"/usr/share/doc/${PF}
+}
diff --git a/app-misc/vlock/Manifest b/app-misc/vlock/Manifest
new file mode 100644
index 000000000000..7456862c7d27
--- /dev/null
+++ b/app-misc/vlock/Manifest
@@ -0,0 +1 @@
+DIST vlock-2.2.3.tar.gz 54860 SHA256 85aa5aed1ae49351378a0bd527a013078f0f969372a63164b1944174ae1a5e39 SHA512 7eba8fe4f7085be7ef9169843d0814e55840b823dfc061727db037d2420e8ff4b669a3b08e15f61cdd9d5048c1e088288a46acad341cbe97585e64da2b58c855 WHIRLPOOL 3cc62216d07111eaa5c3298714274266e1a204c79423c1447205d8df7aadeaac51dcab287d7cda0456fbaf605cc5ac31a838350ac07878b6778f8903390328d6
diff --git a/app-misc/vlock/files/vlock-2.2.2-asneeded.patch b/app-misc/vlock/files/vlock-2.2.2-asneeded.patch
new file mode 100644
index 000000000000..8baeed37caf6
--- /dev/null
+++ b/app-misc/vlock/files/vlock-2.2.2-asneeded.patch
@@ -0,0 +1,11 @@
+--- tests/Makefile.old 2008-10-16 13:48:37.000000000 +0200
++++ tests/Makefile 2008-10-16 13:48:53.000000000 +0200
+@@ -16,7 +16,7 @@
+ TEST_SOURCES = $(TESTED_SOURCES:%=test_%)
+ TEST_OBJECTS = $(TEST_SOURCES:.c=.o)
+
+-vlock-test : override LDFLAGS+=-lcunit
++vlock-test : override LDLIBS+=-lcunit
+ vlock-test: vlock-test.o $(TEST_OBJECTS) $(TESTED_OBJECTS)
+
+ vlock-test.o: $(TEST_SOURCES:.c=.h)
diff --git a/app-misc/vlock/files/vlock-2.2.2-test_process.patch b/app-misc/vlock/files/vlock-2.2.2-test_process.patch
new file mode 100644
index 000000000000..83ecd4b14e2c
--- /dev/null
+++ b/app-misc/vlock/files/vlock-2.2.2-test_process.patch
@@ -0,0 +1,28 @@
+--- tests/test_process.c.old 2008-10-16 14:10:16.000000000 +0200
++++ tests/test_process.c 2008-10-16 14:11:26.000000000 +0200
+@@ -12,6 +12,7 @@
+
+ #include "test_process.h"
+
++/* Dustin Polke: This test is flaky, sometimes it passes, sometimes not... Thus exclude it
+ void test_wait_for_death(void)
+ {
+ pid_t pid = fork();
+@@ -25,6 +26,7 @@
+ CU_ASSERT(!wait_for_death(pid, 0, 2000));
+ CU_ASSERT(wait_for_death(pid, 0, 20000));
+ }
++*/
+
+ void test_ensure_death(void)
+ {
+@@ -137,7 +139,8 @@
+ }
+
+ CU_TestInfo process_tests[] = {
+- { "test_wait_for_death", test_wait_for_death },
++/* Dustin Polke: This test is flaky, sometimes it passes, sometimes not... Thus exclude it
++ { "test_wait_for_death", test_wait_for_death }, */
+ { "test_ensure_death", test_ensure_death },
+ { "test_create_child_function", test_create_child_function },
+ { "test_create_child_process", test_create_child_process },
diff --git a/app-misc/vlock/metadata.xml b/app-misc/vlock/metadata.xml
new file mode 100644
index 000000000000..40149c995561
--- /dev/null
+++ b/app-misc/vlock/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>shell-tools</herd>
+</pkgmetadata>
diff --git a/app-misc/vlock/vlock-2.2.3.ebuild b/app-misc/vlock/vlock-2.2.3.ebuild
new file mode 100644
index 000000000000..5bd63d854f50
--- /dev/null
+++ b/app-misc/vlock/vlock-2.2.3.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+inherit eutils pam toolchain-funcs multilib user
+
+DESCRIPTION="A console screen locker"
+HOMEPAGE="http://cthulhu.c3d2.de/~toidinamai/vlock/vlock.html"
+SRC_URI="http://cthulhu.c3d2.de/~toidinamai/vlock/archive/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 hppa ia64 ~mips ppc ppc64 sparc x86"
+IUSE="pam test"
+
+RDEPEND="pam? ( sys-libs/pam )"
+DEPEND="${RDEPEND}
+ test? ( dev-util/cunit )"
+
+pkg_setup() {
+ enewgroup vlock
+}
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}/${PN}-2.2.2-asneeded.patch" \
+ "${FILESDIR}/${PN}-2.2.2-test_process.patch"
+}
+
+src_configure() {
+ if use pam; then
+ myconf="--enable-pam"
+ else
+ myconf="--enable-shadow"
+ fi
+ # this package has handmade configure system which fails with econf...
+ ./configure --prefix=/usr \
+ --mandir=/usr/share/man \
+ --libdir=/usr/$(get_libdir) \
+ ${myconf} \
+ CC="$(tc-getCC)" \
+ LD="$(tc-getLD)" \
+ CFLAGS="${CFLAGS} -pedantic -std=gnu99" \
+ LDFLAGS="${LDFLAGS}" || die "configure failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ use pam && pamd_mimic_system vlock auth
+ dodoc ChangeLog PLUGINS README README.X11 SECURITY STYLE TODO
+}
diff --git a/app-misc/vzstats/Manifest b/app-misc/vzstats/Manifest
new file mode 100644
index 000000000000..371b78a6c056
--- /dev/null
+++ b/app-misc/vzstats/Manifest
@@ -0,0 +1,3 @@
+DIST vzstats-0.3.2.tar.bz2 11560 SHA256 df54a0f1d3012bbb41d231af1590653be32079314bce07be2d0ef5ee035cf027 SHA512 43d7a16ff2f051c94faa00e99d6d77d34707026319c34b61e2354fb2916e06af43b73c4476d1ee98c195b43e6e8bc540d0cb09d4345286682c830cea87abff59 WHIRLPOOL c8f459e9ab089d77266c45d45d75c48f002815dfd693f6c25ba7416a668aa35973ff964e4f8c98f3e5f2448e2bfb875240a6f9d11fee67ba343a098cbec99a08
+DIST vzstats-0.4.tar.bz2 12187 SHA256 ae63a1925611827d773a6123a761788d8ea90a8021a3695d7984baafbffedf0d SHA512 6d9885ce7f5dac3d50afc5583da8f84524ba6600c1587b8df75c12c9f09a273e91482cdd52cef41773c76c8b0d1a8b957ac9f0ecb9125a81e8021e332ab237f7 WHIRLPOOL c20b8deea14b2d61983d4e78bec9e0820fe718d6aac79c370fd62aea474dd37291b38d29297d9544c7cd6926d866e66988c9de8acc53ddc449e37570ca087a9d
+DIST vzstats-0.5.1.tar.bz2 17548 SHA256 eddb2f4f617c2937cc6587269453eb768c0d9fbfd9bdc125b82b5540cb287df3 SHA512 ea58ba065fda6f1e1bebcdd273e231d1da46934d0c5217e1acc0a3ecb2ce5738975d3155939c6f74ba407796ae94af4ba405efdb0c808e9bbbbded48285a6663 WHIRLPOOL 8a694ae07d1caf309332b825da6cc3438fd5fbac956c60ccac3b9c2c7afda59c8171fbad4a00afb0a1b7118966e25275c5fc10ae15b399606737cf875f8f2471
diff --git a/app-misc/vzstats/metadata.xml b/app-misc/vzstats/metadata.xml
new file mode 100644
index 000000000000..a9d54a531d50
--- /dev/null
+++ b/app-misc/vzstats/metadata.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>proxy-maintainers</herd>
+ <maintainer>
+ <email>andreis.vinogradovs@gmail.com</email>
+ <name>Andreis Vinogradovs</name>
+ <description>Primary maintainer, assign bugs to him</description>
+ </maintainer>
+ <upstream>
+ <maintainer status="active">
+ <email>kir@openvz.org</email>
+ <name>Kir Kolyshkin</name>
+ </maintainer>
+ </upstream>
+ <longdescription>This is an OpenVZ component to gather OpenVZ usage and hardware statistics,
+ in order to improve the project.
+
+ Statistics gathered and reported include the following:
+ 1 Hardware info.
+ - CPU, disk, memory/swap, PCI devices
+ 2 Software info.
+ - host distribution, versions of OpenVZ components, kernel version
+ 3 Containers info.
+ - number of containers existing/running/using ploop/using vswap
+ - OS templates of containers
+ </longdescription>
+</pkgmetadata>
diff --git a/app-misc/vzstats/vzstats-0.3.2.ebuild b/app-misc/vzstats/vzstats-0.3.2.ebuild
new file mode 100644
index 000000000000..91a4d62bf650
--- /dev/null
+++ b/app-misc/vzstats/vzstats-0.3.2.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit bash-completion-r1
+
+DESCRIPTION="OpenVZ stats collection daemon"
+HOMEPAGE="http://stats.openvz.org"
+SRC_URI="http://download.openvz.org/utils/${PN}/${PV}/src/${P}.tar.bz2"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="
+ virtual/cron
+ sys-process/cronbase
+ net-misc/curl[ssl]
+ app-portage/gentoolkit
+ sys-cluster/vzctl
+ "
+RDEPEND="${DEPEND}"
+
+src_install() {
+ emake install install-cronjob DESTDIR="${D}"
+ dodoc README
+ newbashcomp bash_completion.sh vzstats
+}
diff --git a/app-misc/vzstats/vzstats-0.4.ebuild b/app-misc/vzstats/vzstats-0.4.ebuild
new file mode 100644
index 000000000000..91a4d62bf650
--- /dev/null
+++ b/app-misc/vzstats/vzstats-0.4.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit bash-completion-r1
+
+DESCRIPTION="OpenVZ stats collection daemon"
+HOMEPAGE="http://stats.openvz.org"
+SRC_URI="http://download.openvz.org/utils/${PN}/${PV}/src/${P}.tar.bz2"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="
+ virtual/cron
+ sys-process/cronbase
+ net-misc/curl[ssl]
+ app-portage/gentoolkit
+ sys-cluster/vzctl
+ "
+RDEPEND="${DEPEND}"
+
+src_install() {
+ emake install install-cronjob DESTDIR="${D}"
+ dodoc README
+ newbashcomp bash_completion.sh vzstats
+}
diff --git a/app-misc/vzstats/vzstats-0.5.1.ebuild b/app-misc/vzstats/vzstats-0.5.1.ebuild
new file mode 100644
index 000000000000..91a4d62bf650
--- /dev/null
+++ b/app-misc/vzstats/vzstats-0.5.1.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit bash-completion-r1
+
+DESCRIPTION="OpenVZ stats collection daemon"
+HOMEPAGE="http://stats.openvz.org"
+SRC_URI="http://download.openvz.org/utils/${PN}/${PV}/src/${P}.tar.bz2"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="
+ virtual/cron
+ sys-process/cronbase
+ net-misc/curl[ssl]
+ app-portage/gentoolkit
+ sys-cluster/vzctl
+ "
+RDEPEND="${DEPEND}"
+
+src_install() {
+ emake install install-cronjob DESTDIR="${D}"
+ dodoc README
+ newbashcomp bash_completion.sh vzstats
+}
diff --git a/app-misc/wcd/Manifest b/app-misc/wcd/Manifest
new file mode 100644
index 000000000000..be0d9b6cf252
--- /dev/null
+++ b/app-misc/wcd/Manifest
@@ -0,0 +1 @@
+DIST wcd-5.2.7.tar.gz 622613 SHA256 e5f56824e054c6726186271b20a5de3c5b167116b97785a925907981cf3e3b39 SHA512 9f5b89d8160f685b729234cc8c03f16b795797dd6eaf2d9e1bbf1949b27ef971908b78642679d3bf1d99b128b390cd5dbd211e4ff03b0539dd287c578088e02e WHIRLPOOL 3354e380dceaed394e0eb9bac3f474edc819270a117baf5812a1e7252b2cef207862746af2b21dd71de837459bc6281a45a9099f5a6351def49e3c1ce780960d
diff --git a/app-misc/wcd/files/wcd-5.2.5-gentoo.patch b/app-misc/wcd/files/wcd-5.2.5-gentoo.patch
new file mode 100644
index 000000000000..c838e131aa5f
--- /dev/null
+++ b/app-misc/wcd/files/wcd-5.2.5-gentoo.patch
@@ -0,0 +1,72 @@
+ src/Makefile | 20 ++++++++++----------
+ 1 file changed, 10 insertions(+), 10 deletions(-)
+
+diff --git a/src/Makefile b/src/Makefile
+index d4120cc..4505b8d 100644
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -46,12 +46,12 @@ include version.mk
+
+ CC ?= gcc
+ STATIC =
+-STRIP = strip
++STRIP =
+
+ ENABLE_NLS = 1
+
+ PACKAGE = wcd
+-EXT = .exe
++EXT =
+ PROGRAM = $(PACKAGE)$(EXT)
+ BIN = $(PROGRAM)
+
+@@ -188,9 +188,9 @@ endif
+ # possible values: ncurses, curses, pdcurses, pdcursesw or <empty>
+
+ ifdef UCS
+- CURSES = ncursesw
++ CURSES = $(shell pkg-config --libs ncursesw)
+ else
+- CURSES = ncurses
++ CURSES = $(shell pkg-config --libs ncurses)
+ endif
+
+ ifdef CURSES
+@@ -201,7 +201,7 @@ endif
+
+ ifneq (,$(CURSES))
+ DEFS_CURSES = -DWCD_USECURSES
+- LIB_CURSES = -l$(CURSES)
++ LIB_CURSES = $(CURSES)
+ endif
+
+
+@@ -406,15 +406,15 @@ ifdef ASCII_TREE
+ endif
+
+ LDFLAGS_USER =
+-LDFLAGS = $(RPM_OPT_FLAGS) \
++LIBS = $(RPM_OPT_FLAGS) \
+ $(LDFLAGS_EXTRA) \
+ $(NLFLAG) \
+ $(LDFLAG_STATIC) \
+ $(LDFLAGS_USER)
+
+-LIBS = $(LIB_CURSES) \
+- $(LIB_UNISTRING) \
+- $(LIBS_EXTRA)
++LIBS += $(LIB_CURSES) \
++ $(LIB_UNISTRING) \
++ $(LIBS_EXTRA)
+
+ DEFS_USER =
+ DEFS = $(DEF_UNIX) $(DEFS_CURSES) $(EXTRA_DEFS) $(DEFS_USER)
+@@ -470,7 +470,7 @@ status:
+
+ $(BIN): $(OBJS1)
+ $(MAKE) status
+- $(CC) $(OBJS1) $(LDFLAGS) $(LIBS) -o $@
++ $(CC) $(LDFLAGS) $(OBJS1) -o $@ $(LIBS)
+
+ %.o: %.c
+ $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(DEFS) -c $< -o $@
diff --git a/app-misc/wcd/metadata.xml b/app-misc/wcd/metadata.xml
new file mode 100644
index 000000000000..25d6ffee85fd
--- /dev/null
+++ b/app-misc/wcd/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>shell-tools</herd>
+ <maintainer>
+ <email>jlec@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-misc/wcd/wcd-5.2.7.ebuild b/app-misc/wcd/wcd-5.2.7.ebuild
new file mode 100644
index 000000000000..d47e18cfe9c3
--- /dev/null
+++ b/app-misc/wcd/wcd-5.2.7.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Wherever Change Directory"
+HOMEPAGE="http://waterlan.home.xs4all.nl/#WCD_ANCHOR"
+SRC_URI="http://waterlan.home.xs4all.nl/${PN}/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="amd64 arm x86 ~amd64-linux ~x86-linux"
+IUSE="nls unicode"
+
+CDEPEND="
+ sys-libs/ncurses[unicode?]
+ unicode? ( dev-libs/libunistring )"
+DEPEND="${CDEPEND}
+ app-text/ghostscript-gpl"
+RDEPEND="${CDEPEND}"
+
+S="${WORKDIR}"/${P}/src
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${PN}-5.2.5-gentoo.patch
+ tc-export CC
+}
+
+src_compile() {
+ local mycompile="LFS=1"
+ use nls || mycompile="${mycompile} ENABLE_NLS="
+ use unicode && mycompile="${mycompile} UCS=1 UNINORM=1"
+ emake \
+ ${mycompile}
+}
+
+src_install() {
+ local DOCS="../README.txt"
+ default
+ emake DESTDIR="${D}" DOTWCD=1 install-profile sysconfdir="/etc"
+}
diff --git a/app-misc/webcomics-collector/Manifest b/app-misc/webcomics-collector/Manifest
new file mode 100644
index 000000000000..d2a78ca71a70
--- /dev/null
+++ b/app-misc/webcomics-collector/Manifest
@@ -0,0 +1 @@
+DIST collector-0.7.3.tar.bz2 66069 SHA256 ad66469b166efe2d8f642666755289ebab4a447d96d01ab18d2e91b546f3802c SHA512 6ac846550311cbfb54580bf7971ec2fdf5a0e5321eaf75a97ff1eb91367ddbbf03421855750d21547c0910be7037a989a9be5a08d19eb9556b228faaf9c90035 WHIRLPOOL 2a79d331c08f09eafc93f45bd716996750fe8479ea80be0a1a56139223768b53e9dcbd9c14798ccdbe0c7e1c6f1eb4ba534a3283c579d1c94b560ed1c7e6424e
diff --git a/app-misc/webcomics-collector/metadata.xml b/app-misc/webcomics-collector/metadata.xml
new file mode 100644
index 000000000000..d9cd2cad66c2
--- /dev/null
+++ b/app-misc/webcomics-collector/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>
+<email>maintainer-needed@gentoo.org</email>
+</maintainer>
+</pkgmetadata>
diff --git a/app-misc/webcomics-collector/webcomics-collector-0.7.3-r1.ebuild b/app-misc/webcomics-collector/webcomics-collector-0.7.3-r1.ebuild
new file mode 100644
index 000000000000..5bf04cdf48d6
--- /dev/null
+++ b/app-misc/webcomics-collector/webcomics-collector-0.7.3-r1.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+DISTUTILS_SINGLE_IMPL=1
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="gdbm"
+
+inherit distutils-r1
+
+DESCRIPTION="python script for downloading webcomics"
+HOMEPAGE="http://collector.skumleren.net/"
+SRC_URI="http://collector.skumleren.net/releases/collector-${PV}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+S="${WORKDIR}/collector-${PV}"
+
+DOCS=( Changelog README UPGRADE )
+
+python_install() {
+ distutils-r1_python_install
+ python_fix_shebang "${ED}"usr/share/collector
+}
+
+pkg_postinst() {
+ ewarn "If you are upgrading from an earlier version of Collector, please"
+ ewarn "read UPGRADE. This new version will not be able to use your old"
+ ewarn "archives if you do not follow the upgrade instructions!"
+}
diff --git a/app-misc/webcomics-collector/webcomics-collector-0.7.3.ebuild b/app-misc/webcomics-collector/webcomics-collector-0.7.3.ebuild
new file mode 100644
index 000000000000..e3e1b776eefe
--- /dev/null
+++ b/app-misc/webcomics-collector/webcomics-collector-0.7.3.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="3"
+PYTHON_DEPEND="2"
+PYTHON_USE_WITH="gdbm"
+
+inherit distutils
+
+DESCRIPTION="python script for downloading webcomics"
+HOMEPAGE="http://collector.skumleren.net/"
+SRC_URI="http://collector.skumleren.net/releases/collector-${PV}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc sparc x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+S="${WORKDIR}/collector-${PV}"
+
+DOCS="UPGRADE"
+PYTHON_MODNAME="Collector.py"
+
+pkg_setup() {
+ python_set_active_version 2
+ python_pkg_setup
+}
+
+pkg_postinst() {
+ distutils_pkg_postinst
+
+ ewarn "If you are upgrading from an earlier version of Collector, please"
+ ewarn "read UPGRADE. This new version will not be able to use your old"
+ ewarn "archives if you do not follow the upgrade instructions!"
+}
diff --git a/app-misc/when/Manifest b/app-misc/when/Manifest
new file mode 100644
index 000000000000..9a8ee2e6261b
--- /dev/null
+++ b/app-misc/when/Manifest
@@ -0,0 +1 @@
+DIST when-1.1.33.tar.gz 49740 SHA256 568a49e999363a018186e03c38d116c587b332f7fcf60820f9cfc34779050ab0 SHA512 5c0934257133f75a7de984499f99f68dde5343d51051acf1b454f04dae82254c733e946a6c5ead546dc3c07cd113d938a48c95af39b80cbfc04ee6d748223c83 WHIRLPOOL 9bcbe73a4034b817fc34d302689a0b404563081163c692ee23e484fbb9ab993a90a5d468f2586e7f5327abad98f4033ebd7546255f682898e899a9fdd7629c97
diff --git a/app-misc/when/metadata.xml b/app-misc/when/metadata.xml
new file mode 100644
index 000000000000..f23b9cae1593
--- /dev/null
+++ b/app-misc/when/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>shell-tools</herd>
+</pkgmetadata>
diff --git a/app-misc/when/when-1.1.33.ebuild b/app-misc/when/when-1.1.33.ebuild
new file mode 100644
index 000000000000..a4a2e3c63817
--- /dev/null
+++ b/app-misc/when/when-1.1.33.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+DESCRIPTION="Extremely simple personal calendar program aimed at the Unix geek who wants something minimalistic"
+HOMEPAGE="http://www.lightandmatter.com/when/when.html"
+SRC_URI="http://www.lightandmatter.com/when/when.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Artistic"
+SLOT="0"
+KEYWORDS="amd64 ppc x86 ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
+
+DEPEND="dev-lang/perl"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/when_dist
+
+src_prepare() {
+ # Fix path for tests
+ sed -i 's,^ when, ./when,' Makefile || die 'sed failed'
+}
+
+src_compile() { :; }
+
+src_test() {
+ # The when command requires these files, or attempts to run setup function.
+ mkdir "${HOME}"/.when || die 'mkdir failed'
+ touch "${HOME}"/.when/{calendar,preferences} || die 'touch failed'
+ emake test
+}
+
+src_install() {
+ dobin ${PN}
+ doman ${PN}.1
+ dodoc README
+}
diff --git a/app-misc/wipe/Manifest b/app-misc/wipe/Manifest
new file mode 100644
index 000000000000..11beeb601b92
--- /dev/null
+++ b/app-misc/wipe/Manifest
@@ -0,0 +1,2 @@
+DIST wipe-2.3.1.tar.bz2 72297 SHA256 463916370f9b35bb34419c2c0ae3dc4c0a471db32e8595afa1d14c0337b61aa0 SHA512 63870e68fa5dbf90abb686052f8dcc216ccb93b0c4f5cc10d60ccf43f3606ba91b46dc1e3d8b34d201f7ea657f70b45a61d5d04facf5b2a3e47d2286c46e7110 WHIRLPOOL ed86197371451d0b7f9a0b635ac085c2376217f06fee09ce1aa0443e8515fcb9a4fe3098a19eb0f2e55cd1b79589af49798d6f44ab1ea99f2cdc8104ee4142f8
+DIST wipe-wip-20050509.tar.bz2 71680 SHA256 27802542acd1324457a2846e7c63a54b2d35780b42c639e467d823f56928c63b SHA512 0d2fd32b073d9be23bdb304e4adab4d928683e2f3f85b6555b457ca459980006cafa88e389b464d5ac5c138efd42d272fe769ed76ba2459391ca88cd80ace6a1 WHIRLPOOL 81f25331abd912f0fcab3d79ea08ee60d8572ad2933014ddd01d4db3046e5f56d06e73329f4bf8b25427cdd59ad03e2bd9e9c71f7e0d939b1b5981efa5e54df9
diff --git a/app-misc/wipe/files/wipe-2.2.20050509-gentoo.patch b/app-misc/wipe/files/wipe-2.2.20050509-gentoo.patch
new file mode 100644
index 000000000000..2519118e2f5e
--- /dev/null
+++ b/app-misc/wipe/files/wipe-2.2.20050509-gentoo.patch
@@ -0,0 +1,106 @@
+* Get rid of a lot of compiler flag cruft
+* Respect LDFLAGS and CFLAGS
+
+--- a/configure.in 2004-11-28 00:47:52.000000000 +0100
++++ b/configure.in 2010-09-19 05:49:48.000000000 +0200
+@@ -14,12 +14,7 @@
+ bin=wipe
+
+ fullCFLAGS=""
+-wallCFLAGS=""
+-pendanticCFLAGS=""
+-tempCFLAGS=""
+-temp2CFLAGS=""
+-checkCFLAGS=""
+-optCFLAGS=""
++optCFLAGS="${CFLAGS}"
+ #CFLAGS="-g -Wall -Werror -ansi -pedantic -O2 -finline-functions -ffast-math -fomit-frame-pointer"
+
+ AC_CANONICAL_SYSTEM
+@@ -34,65 +29,9 @@
+ AC_PROG_INSTALL
+
+ dnl Compilation tests
+-AC_MSG_CHECKING([whether the C compiler accepts -pipe])
+-CFLAGS="-pipe"
+-AC_TRY_COMPILE(,,AC_MSG_RESULT(yes); tempCFLAGS="$CFLAGS",AC_MSG_RESULT(no))
+-
+-AC_MSG_CHECKING([whether the C compiler accepts -g])
+-CFLAGS="-g"
+-AC_TRY_COMPILE(,,AC_MSG_RESULT(yes); debugCFLAGS="$CFLAGS",AC_MSG_RESULT(no))
+-
+-AC_MSG_CHECKING([whether the C compiler accepts -O0])
+-CFLAGS="-O0"
+-AC_TRY_COMPILE(,,AC_MSG_RESULT(yes); debugCFLAGS="$debugCFLAGS $CFLAGS",AC_MSG_RESULT(no))
+-
+-AC_MSG_CHECKING([whether the C compiler accepts -O2])
+-CFLAGS="-O2"
+-AC_TRY_COMPILE(,,AC_MSG_RESULT(yes); tempCFLAGS="$tempCFLAGS $CFLAGS",AC_MSG_RESULT(no))
+-
+-AC_MSG_CHECKING([whether the C compiler accepts -ansi])
+-CFLAGS="-ansi"
+-AC_TRY_COMPILE(,,AC_MSG_RESULT(yes); checkCFLAGS="$checkCFLAGS $CFLAGS",AC_MSG_RESULT(no))
+-
+-AC_MSG_CHECKING([whether the C compiler accepts -pedantic])
+-CFLAGS="-pedantic"
+-AC_TRY_COMPILE(,,AC_MSG_RESULT(yes); checkCFLAGS="$checkCFLAGS $CFLAGS",AC_MSG_RESULT(no))
+-
+-AC_MSG_CHECKING([whether the C compiler accepts -Wall])
+-CFLAGS="-Wall"
+-AC_TRY_COMPILE(,,AC_MSG_RESULT(yes); wallCFLAGS="$CFLAGS",AC_MSG_RESULT(no))
+-
+-AC_MSG_CHECKING([whether the C compiler accepts -Werror])
+-CFLAGS="-Werror"
+-AC_TRY_COMPILE(,,AC_MSG_RESULT(yes); pedanticCFLAGS="$wallCFLAGS $CFLAGS",AC_MSG_RESULT(no))
+-
+-AC_MSG_CHECKING([whether the C compiler accepts -ffast-math])
+-CFLAGS="-ffast-math"
+-AC_TRY_COMPILE(,,AC_MSG_RESULT(yes); optCFLAGS="$optCFLAGS $CFLAGS",AC_MSG_RESULT(no))
+-
+-AC_ARG_ENABLE(wall,
+- [ --enable-wall compile with -ansi -pedantic -Wall -Werror],
+- [with_wall=$enableval],
+- [with_wall=no])
+-test "$with_wall" = "yes" && fullCFLAGS="$checkCFLAGS $wallCFLAGS $pendanticCFLAGS $fullCFLAGS"
+-
+-temp2CFLAGS="$tempCFLAGS $optCFLAGS"
+-
+-AC_ARG_ENABLE(debug,
+- [ --enable-debug compile for debugger compatibility],
+- [with_debug=$enableval],
+- [with_debug=no])
+-test "$with_debug" = "yes" && temp2CFLAGS="$wallCFLAGS $debugCFLAGS"
+-
+-AC_ARG_ENABLE(efence,
+- [ --enable-efence debug build + link with electric fence],
+- [with_efence=$enableval],
+- [with_efence=no])
+-test "$with_efence" = "yes" && temp2CFLAGS="$debugCFLAGS" && LIBS="-lefence"
+-
+-DEBUG="$debugCFLAGS $fullCFLAGS"
+-fullCFLAGS="$temp2CFLAGS $fullCFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
+-CFLAGS="$checkCFLAGS -D__USE_BSD -D_BSD_SOURCE -D__USE_POSIX -D_POSIX_SOURCE -D_POSIX_MAPPED_FILES"
++
++fullCFLAGS="$optCFLAGS $fullCFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
++CFLAGS="$fullCFLAGS" # -D__USE_BSD -D_BSD_SOURCE -D__USE_POSIX -D_POSIX_SOURCE -D_POSIX_MAPPED_FILES"
+
+ dnl Checks for libraries.
+
+@@ -124,6 +63,4 @@
+
+ dnl Done with tests
+
+-CFLAGS="$fullCFLAGS"
+-
+ AC_OUTPUT(Makefile)
+--- a/Makefile.in 2003-08-31 03:18:03.000000000 +0200
++++ b/Makefile.in 2010-09-19 05:50:30.000000000 +0200
+@@ -31,7 +31,7 @@
+ all: $(REQ) $(BIN)
+
+ $(BIN): main.o wipe.o rand.o dir.o file.o blkdev.o lock.o text.o str.o percent.o prompt.o io.o mt.o
+- $(CC) $(LIBS) *.o -o $@
++ $(CC) $(CFLAGS) $(LDFLAGS) $(LIBS) *.o -o $@
+
+
+ # restores everything to a pre-configured state
diff --git a/app-misc/wipe/files/wipe-2.3.1-LDFLAGS.patch b/app-misc/wipe/files/wipe-2.3.1-LDFLAGS.patch
new file mode 100644
index 000000000000..23a5d19d1cd7
--- /dev/null
+++ b/app-misc/wipe/files/wipe-2.3.1-LDFLAGS.patch
@@ -0,0 +1,19 @@
+--- wipe-2.3.1/Makefile.in
++++ wipe-2.3.1/Makefile.in
+@@ -5,6 +5,7 @@
+
+ CC=@CC@
+ CFLAGS=@CFLAGS@ -I@srcdir@ -D@OSTYPE@ $(DEFINES)
++LDFLAGS=@LDFLAGS@
+ DEBUG=@DEBUG@ -I@srcdir@ -D@OSTYPE@ $(DEFINES)
+
+ LIBS=@LIBS@
+@@ -31,7 +32,7 @@
+ all: $(REQ) $(BIN)
+
+ $(BIN): main.o wipe.o rand.o dir.o file.o blkdev.o lock.o text.o str.o percent.o prompt.o io.o mt.o
+- $(CC) $(LIBS) *.o -o $@
++ $(CC) $(LIBS) *.o -o $@ $(LDFLAGS)
+
+
+ # restores everything to a pre-configured state
diff --git a/app-misc/wipe/metadata.xml b/app-misc/wipe/metadata.xml
new file mode 100644
index 000000000000..f8e9260fc418
--- /dev/null
+++ b/app-misc/wipe/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>
+ <email>xmw@gentoo.org</email>
+ <name>Michael Weber</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">wipe</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/wipe/wipe-2.2.20050509-r1.ebuild b/app-misc/wipe/wipe-2.2.20050509-r1.ebuild
new file mode 100644
index 000000000000..39a49197a85b
--- /dev/null
+++ b/app-misc/wipe/wipe-2.2.20050509-r1.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="2"
+
+inherit autotools eutils toolchain-funcs versionator
+
+MY_PV=$(get_version_component_range 3)
+MY_SRC=${PN}-wip-${MY_PV}
+S="${WORKDIR}/${PN}"
+
+DESCRIPTION="Secure file wiping utility based on Peter Gutman's patterns"
+HOMEPAGE="http://wipe.sourceforge.net/"
+SRC_URI="mirror://sourceforge/wipe/${MY_SRC}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-gentoo.patch
+ eautoreconf
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" || die emake failed
+}
+
+src_install() {
+ dobin wipe || die "dobin failed"
+ doman wipe.1
+ dodoc CHANGES README TODO TESTING
+}
+
+pkg_postinst() {
+ elog "Note that wipe is useless on journalling filesystems, such as reiserfs or XFS."
+ elog "See documentation for more info."
+}
diff --git a/app-misc/wipe/wipe-2.2.20050509.ebuild b/app-misc/wipe/wipe-2.2.20050509.ebuild
new file mode 100644
index 000000000000..a5bb8aa065bf
--- /dev/null
+++ b/app-misc/wipe/wipe-2.2.20050509.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit versionator toolchain-funcs
+
+MY_PV=$(get_version_component_range 3)
+MY_SRC=${PN}-wip-${MY_PV}
+S="${WORKDIR}/${PN}"
+
+DESCRIPTION="Secure file wiping utility based on Peter Gutman's patterns"
+HOMEPAGE="http://wipe.sourceforge.net/"
+SRC_URI="mirror://sourceforge/wipe/${MY_SRC}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc ~ppc64 x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+
+src_compile() {
+ econf
+ sed -i -e "s:-pipe -O2:${CFLAGS}:" "${S}"/Makefile || die "sed failed"
+ emake CC="$(tc-getCC)" || die emake failed
+}
+
+src_install() {
+ dobin wipe || die "dobin failed"
+ doman wipe.1
+ dodoc CHANGES README TODO TESTING
+}
+
+pkg_postinst() {
+ elog "Note that wipe is useless on journalling filesystems, such as reiserfs or XFS."
+ elog "See documentation for more info."
+}
diff --git a/app-misc/wipe/wipe-2.3.1.ebuild b/app-misc/wipe/wipe-2.3.1.ebuild
new file mode 100644
index 000000000000..ca4133152567
--- /dev/null
+++ b/app-misc/wipe/wipe-2.3.1.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=3
+
+inherit autotools eutils
+
+DESCRIPTION="Secure file wiping utility based on Peter Gutman's patterns"
+HOMEPAGE="http://wipe.sourceforge.net/"
+SRC_URI="mirror://sourceforge/wipe/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc ~ppc64 x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-LDFLAGS.patch
+ eautoreconf
+}
+
+src_compile() {
+ emake CFLAGS="${CFLAGS}" || die
+}
+
+src_install() {
+ dobin wipe || die
+ doman wipe.1 || die
+ dodoc CHANGES README TODO TESTING || die
+}
+
+pkg_postinst() {
+ elog "Note that wipe is useless on journaling filesystems,"
+ elog "such as reiserfs, XFS, or ext3."
+ elog "See documentation for more info."
+}
diff --git a/app-misc/worker/Manifest b/app-misc/worker/Manifest
new file mode 100644
index 000000000000..dce63adb0a54
--- /dev/null
+++ b/app-misc/worker/Manifest
@@ -0,0 +1 @@
+DIST worker-2.19.6.tar.bz2 1191546 SHA256 25998018bd3b50819cf2bbb35c3c2f0eb6449efd6b9da84f2f39c3e0570d188e SHA512 401c986ff532c225cbd183afd8424e900ed8ff874368d68cb985136d130b5a4d4746a59e391ba01ae610eacd4fec0d76061ba967112b8262e4a9297599596b60 WHIRLPOOL 1b209710fd0c47d565eb85d7f631cd31690314139793428ab9d8105a31d0ac940011622bf6f56951be96e193c5291d8b9a9ab325058117d23a84cd4b75f32320
diff --git a/app-misc/worker/metadata.xml b/app-misc/worker/metadata.xml
new file mode 100644
index 000000000000..dd6a7aa850ba
--- /dev/null
+++ b/app-misc/worker/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>
+ <email>maintainer-needed@gentoo.org</email>
+</maintainer>
+<longdescription>
+ Worker is a filemanager for X-Window on UNIX.
+ It's a clone of the filemanager "Directory Opus 4", a very famous program
+ for Amiga-systems. The dirs and files are shown in two independent panels
+ (similar to MidnightCommander).
+</longdescription>
+<use>
+ <flag name='avfs'>Enable support for <pkg>sys-fs/avfs</pkg></flag>
+ <flag name='magic'>Add magic file support from <pkg>sys-apps/file</pkg> to automatically detect file types</flag>
+</use>
+</pkgmetadata>
diff --git a/app-misc/worker/worker-2.19.6.ebuild b/app-misc/worker/worker-2.19.6.ebuild
new file mode 100644
index 000000000000..61b49f61a231
--- /dev/null
+++ b/app-misc/worker/worker-2.19.6.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Worker Filemanager: Amiga Directory Opus 4 clone"
+HOMEPAGE="http://www.boomerangsworld.de/cms/worker/"
+SRC_URI="http://www.boomerangsworld.de/cms/worker/downloads/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~arm ~hppa ppc ~ppc64 x86"
+IUSE="avfs debug dbus examples libnotify +magic xinerama xft"
+
+RDEPEND="x11-libs/libSM
+ x11-libs/libX11
+ avfs? ( >=sys-fs/avfs-0.9.5 )
+ dbus? ( dev-libs/dbus-glib )
+ magic? ( sys-apps/file )
+ xft? ( x11-libs/libXft )
+ xinerama? ( x11-libs/libXinerama )"
+DEPEND="${RDEPEND}"
+
+DOCS=( AUTHORS ChangeLog INSTALL NEWS README README_LARGEFILES THANKS )
+
+src_prepare() {
+ # respect AR, bug #466014
+ sed -i -e "/AR/s/ar/$(tc-getAR)/" src/aguix/Makefile.in || die 'sed on Makefile.in failed'
+
+ epatch_user
+}
+
+src_configure() {
+ # there is no option for disabling libXinerama support
+ use xinerama || export ac_cv_lib_Xinerama_XineramaQueryScreens=no
+ econf \
+ --without-hal \
+ $(use_with avfs) \
+ $(use_with dbus) \
+ $(use_enable debug) \
+ $(use_enable libnotify inotify) \
+ $(use_with magic libmagic) \
+ $(use_enable xft)
+}
+
+src_install() {
+ default
+ if use examples; then
+ docinto examples
+ dodoc examples/config-*
+ fi
+}
diff --git a/app-misc/workrave/Manifest b/app-misc/workrave/Manifest
new file mode 100644
index 000000000000..9decac1cd090
--- /dev/null
+++ b/app-misc/workrave/Manifest
@@ -0,0 +1,2 @@
+DIST v1_10_6.tar.gz 6444740 SHA256 f8699fbbfef7f3de2226f5f7dc4c74d98de3b59bfed4c6dac70bb231ec405760 SHA512 5c2a7dac1614751edf925eefa945e08e0b2fb318903b12fc8d4acde0b6027ecb534c90933da14796edc958f0d9a2f892815fddea9ab41ac921756fc5577acd8e WHIRLPOOL 91c47a66f0ab60f2560b103ef7ac6591088296b470d3403d6d9f511d44e361fc6841d9fda85d9c24d6c60595ea66b2a18ebb34c806d3ab4b465895a427a6d819
+DIST workrave-1.10.1.tar.gz 6800197 SHA256 6ef89aebd278e27d3b73896485e7d8aaef415e7d18318d3bb7ba0d0507bd48de SHA512 4f721ebaceb43f542c25b0eb3fcd2e2d205290c982ddb57628c56bfed0c63fdde85adf304b4fdaf07908e31e8e31942ffdf17a9f1f0a3e62fec71aa5722d946a WHIRLPOOL f365ba528ef56cc6475dc7898b98d08532724a5cebab81e0a7b25534eaa78871a7ac2e7d7d016fd6812099031355d4950b7eecd671befa2127295cbc68dca498
diff --git a/app-misc/workrave/files/workrave-1.10.1-desktop.patch b/app-misc/workrave/files/workrave-1.10.1-desktop.patch
new file mode 100644
index 000000000000..5ab662e42564
--- /dev/null
+++ b/app-misc/workrave/files/workrave-1.10.1-desktop.patch
@@ -0,0 +1,10 @@
+--- frontend/gtkmm/src/workrave.desktop.in~ 2013-06-11 22:40:13.000000000 +0200
++++ frontend/gtkmm/src/workrave.desktop.in 2014-07-15 11:59:15.905346840 +0200
+@@ -1,6 +1,6 @@
+ [Desktop Entry]
+ Type=Application
+-Categories=Utility;GTK;Accessibility
++Categories=Utility;GTK;Accessibility;
+ Exec=workrave
+ Icon=workrave
+ _Comment=Assists in the prevention and recovery of Repetitive Strain Injury (RSI)
diff --git a/app-misc/workrave/metadata.xml b/app-misc/workrave/metadata.xml
new file mode 100644
index 000000000000..524385dcb3eb
--- /dev/null
+++ b/app-misc/workrave/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>gnome</herd>
+ <use>
+ <flag name="distribution">Enable networking. See
+ http://www.workrave.org/features/</flag>
+ <flag name="mate">Add support for MATE panel</flag>
+ <flag name="xfce">Add support for XFCE panel</flag>
+ </use>
+ <longdescription>
+ Workrave is a program that assists in the recovery and prevention
+ of Repetitive Strain Injury (RSI). The program frequently alerts
+ you to take micro-pauses, rest breaks and restricts you to your
+ daily limit.
+</longdescription>
+ <upstream>
+ <remote-id type="github">rcaelers/workrave</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/workrave/workrave-1.10.1.ebuild b/app-misc/workrave/workrave-1.10.1.ebuild
new file mode 100644
index 000000000000..88b5be4f92ae
--- /dev/null
+++ b/app-misc/workrave/workrave-1.10.1.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+GCONF_DEBUG="yes"
+PYTHON_COMPAT=( python2_7 )
+
+inherit eutils gnome2 python-single-r1
+
+DESCRIPTION="Helpful utility to attack Repetitive Strain Injury (RSI)"
+HOMEPAGE="http://www.workrave.org/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86"
+IUSE="dbus doc distribution gstreamer nls pulseaudio test"
+
+RDEPEND="
+ >=dev-libs/glib-2.28.0:2
+ >=x11-libs/gtk+-3.0:3
+ >=dev-cpp/gtkmm-3.0.0:3.0
+ >=dev-cpp/glibmm-2.28.0:2
+ >=dev-libs/libsigc++-2.2.4.2:2
+ dbus? (
+ >=sys-apps/dbus-1.2
+ dev-libs/dbus-glib )
+ distribution? ( >=net-libs/gnet-2 )
+ gstreamer? (
+ >=media-libs/gstreamer-0.10:0.10
+ >=media-libs/gst-plugins-base-0.10:0.10 )
+ pulseaudio? ( >=media-sound/pulseaudio-0.9.15 )
+ x11-libs/libXScrnSaver
+ x11-libs/libSM
+ x11-libs/libX11
+ x11-libs/libXtst
+ x11-libs/libXt
+ x11-libs/libXmu
+"
+DEPEND="${RDEPEND}
+ >=dev-util/intltool-0.40.0
+ x11-proto/xproto
+ x11-proto/inputproto
+ x11-proto/recordproto
+ dev-python/cheetah
+ virtual/pkgconfig
+ doc? (
+ app-text/docbook-sgml-utils
+ app-text/xmlto )
+ nls? ( >=sys-devel/gettext-0.17 )
+"
+
+pkg_setup() {
+ python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-1.10.1-desktop.patch"
+ gnome2_src_prepare
+}
+
+src_configure() {
+ gnome2_src_configure \
+ --disable-experimental \
+ --disable-static \
+ --disable-xml \
+ $(use_enable dbus) \
+ $(use_enable doc manual) \
+ $(use_enable distribution) \
+ $(use_enable gstreamer) \
+ $(use_enable nls) \
+ $(use_enable pulseaudio pulse) \
+ $(use_enable test tests)
+}
diff --git a/app-misc/workrave/workrave-1.10.6-r1.ebuild b/app-misc/workrave/workrave-1.10.6-r1.ebuild
new file mode 100644
index 000000000000..930b0fe3311b
--- /dev/null
+++ b/app-misc/workrave/workrave-1.10.6-r1.ebuild
@@ -0,0 +1,95 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+GCONF_DEBUG="yes"
+PYTHON_COMPAT=( python2_7 )
+
+inherit autotools eutils gnome2 python-single-r1 versionator
+
+DESCRIPTION="Helpful utility to attack Repetitive Strain Injury (RSI)"
+HOMEPAGE="http://www.workrave.org/"
+# SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+MY_PV=$(replace_all_version_separators '_')
+SRC_URI="https://github.com/rcaelers/${PN}/archive/v${MY_PV}.tar.gz"
+S="${WORKDIR}/${PN}-${MY_PV}"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86"
+
+# dbus support looks to be used only for trying to use panel applets on gnome3!
+IUSE="ayatana doc distribution gnome gstreamer mate nls pulseaudio test xfce"
+
+RDEPEND="
+ >=dev-libs/glib-2.28.0:2
+ >=x11-libs/gtk+-3.0:3
+ >=dev-cpp/gtkmm-3.0.0:3.0
+ >=dev-cpp/glibmm-2.28.0:2
+ >=dev-libs/libsigc++-2.2.4.2:2
+ ayatana? (
+ >=dev-libs/libdbusmenu-0.4[gtk3]
+ >=dev-libs/libindicator-0.4:3 )
+ distribution? ( >=net-libs/gnet-2 )
+ gnome? ( >=gnome-base/gnome-shell-3.6.2 )
+ gstreamer? (
+ media-libs/gstreamer:1.0
+ media-libs/gst-plugins-base:1.0 )
+ mate? ( mate-base/mate-applets )
+ pulseaudio? ( >=media-sound/pulseaudio-0.9.15 )
+ xfce? (
+ >=x11-libs/gtk+-2.6.0:2
+ >=xfce-base/xfce4-panel-4.4 )
+ x11-libs/libXScrnSaver
+ x11-libs/libSM
+ x11-libs/libX11
+ x11-libs/libXtst
+ x11-libs/libXt
+ x11-libs/libXmu
+"
+# dbus? (
+# >=sys-apps/dbus-1.2
+# dev-libs/dbus-glib )
+
+DEPEND="${RDEPEND}
+ >=dev-util/intltool-0.40.0
+ x11-proto/xproto
+ x11-proto/inputproto
+ x11-proto/recordproto
+ dev-python/cheetah
+ virtual/pkgconfig
+ doc? (
+ app-text/docbook-sgml-utils
+ app-text/xmlto )
+ nls? ( >=sys-devel/gettext-0.17 )
+"
+
+pkg_setup() {
+ python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ eautoreconf
+ gnome2_src_prepare
+}
+
+src_configure() {
+ gnome2_src_configure \
+ --disable-dbus \
+ --enable-exercises \
+ --disable-experimental \
+ --disable-gnome2 \
+ --disable-static \
+ --disable-xml \
+ $(use_enable ayatana indicator) \
+ $(use_enable doc manual) \
+ $(use_enable distribution) \
+ $(use_enable gnome gnome3) \
+ $(use_enable gstreamer) \
+ $(use_enable mate) \
+ $(use_enable nls) \
+ $(use_enable pulseaudio pulse) \
+ $(use_enable test tests) \
+ $(use_enable xfce)
+}
diff --git a/app-misc/wyrd/Manifest b/app-misc/wyrd/Manifest
new file mode 100644
index 000000000000..d12777aef5bb
--- /dev/null
+++ b/app-misc/wyrd/Manifest
@@ -0,0 +1,3 @@
+DIST wyrd-1.4.4.tar.gz 226757 SHA256 154f5cefc86d43077f3c150e5b50a27d33fe7a7e50d7b90f39d16f054f5c570a SHA512 944e76774320d7c0109fdb22c03a2ac100399c2f4bd250c5d8c35eff5a44671b2e7a722c11b59b02bfe3e9b24ab6e3153306139ee379f1017c750b2cc81ccfb7 WHIRLPOOL 9712a3566a4f3636383b0f7de893a5f1e87bef49b467aefe5a2145e363b18d67979e024fa2bb3ff201c6ed01e7adc1ef242718518a770a20981054a2dba02682
+DIST wyrd-1.4.5.tar.gz 398294 SHA256 c8844d85767b3b9cc9ce4f430e0ef83ba29d96c630f03c508eab5ab86204137b SHA512 5d4707f726ea725cd005e82fc17fa5452ecd087a8946733bf3e92f1cc99d3291758b7756ab2fac75d8b4ff6793897da7982c16f889ff3bfca00853653a09d924 WHIRLPOOL 100262c30f50d68a5a9a14cebdaeed9977844ef84fb240b391bcff1dfb0484a56c53795ba179c20f48315384586b150dc537291d90a4f2da4fd24906d56a876b
+DIST wyrd-1.4.6.tar.gz 425829 SHA256 b2b51d6fb38f8b8b3ec30ee72093f791ba9b6fe35418191bc2011d2c8079997e SHA512 fc09c4567ea8d6225638ee6851ddab716665913b7d7b2f6b5a3cc7f2af9144df617e2a95ca78c74874bec3ff355aba028c7c51eafe1426d9ae803ab77ce84477 WHIRLPOOL 651fc8b8e2d12b35bb8a4e9a4284a2a428737b1856edb4bbfc112e5a8db5686220bacbd77c6f1513894ba69ee9b8eed719a7b8596bce76af0887bd11575c133a
diff --git a/app-misc/wyrd/files/ocaml4.patch b/app-misc/wyrd/files/ocaml4.patch
new file mode 100644
index 000000000000..50967e5305e9
--- /dev/null
+++ b/app-misc/wyrd/files/ocaml4.patch
@@ -0,0 +1,20 @@
+Index: wyrd-1.4.5/configure.ac
+===================================================================
+--- wyrd-1.4.5.orig/configure.ac
++++ wyrd-1.4.5/configure.ac
+@@ -61,6 +61,7 @@ echo "ocaml library path is $OCAMLLIB"
+ # check for sufficient OCAMLVERSION
+ OCAMLMAJORVERSION=`echo $OCAMLVERSION | cut -d '.' -f 1`
+ OCAMLMINORVERSION=`echo $OCAMLVERSION | cut -d '.' -f 2`
++if test $OCAMLMAJORVERSION -lt 4 ; then
+ if test $OCAMLMAJORVERSION -lt 3 ; then
+ AC_MSG_ERROR(Wyrd requires OCaml version 3.08 or greater.)
+ else
+@@ -68,6 +69,7 @@ else
+ AC_MSG_ERROR(Wyrd requires OCaml version 3.08 or greater.)
+ fi
+ fi
++fi
+
+
+ # then we look for ocamlopt; if not present, we issue a warning
diff --git a/app-misc/wyrd/metadata.xml b/app-misc/wyrd/metadata.xml
new file mode 100644
index 000000000000..70a77c240afa
--- /dev/null
+++ b/app-misc/wyrd/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>ml</herd>
+ <longdescription lang="en">
+ Wyrd is a text-based front-end to Remind, a sophisticated calendar and alarm
+ program. Remind's power lies in its programmability, and Wyrd does not hide this
+ capability behind flashy GUI dialogs. Rather, Wyrd is designed to make you more
+ efficient at editing your reminder files directly. It also offers a scrollable
+ timetable suitable for visualizing your schedule at a glance.
+ </longdescription>
+</pkgmetadata>
diff --git a/app-misc/wyrd/wyrd-1.4.4.ebuild b/app-misc/wyrd/wyrd-1.4.4.ebuild
new file mode 100644
index 000000000000..fad37811a3ec
--- /dev/null
+++ b/app-misc/wyrd/wyrd-1.4.4.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=2
+
+DESCRIPTION="Text-based front-end to Remind"
+HOMEPAGE="http://pessimization.com/software/wyrd/"
+SRC_URI="http://pessimization.com/software/wyrd/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86"
+IUSE="unicode"
+
+DEPEND=">=dev-lang/ocaml-3.08
+ sys-libs/ncurses[unicode?]
+ >=app-misc/remind-03.01"
+RDEPEND=${DEPEND}
+
+src_configure() {
+ econf \
+ $(use_enable unicode utf8)
+}
+
+src_install() {
+ export STRIP_MASK="/usr/bin/wyrd"
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dodoc ChangeLog || die "dodoc failed"
+ dohtml doc/manual.html || die "dohtml failed"
+}
diff --git a/app-misc/wyrd/wyrd-1.4.5.ebuild b/app-misc/wyrd/wyrd-1.4.5.ebuild
new file mode 100644
index 000000000000..f87da1176e5c
--- /dev/null
+++ b/app-misc/wyrd/wyrd-1.4.5.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit eutils autotools
+
+DESCRIPTION="Text-based front-end to Remind"
+HOMEPAGE="http://pessimization.com/software/wyrd/"
+SRC_URI="http://pessimization.com/software/wyrd/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="unicode"
+
+RDEPEND="
+ sys-libs/ncurses[unicode?]
+ >=app-misc/remind-03.01
+"
+DEPEND="${RDEPEND}
+ >=dev-lang/ocaml-3.08
+"
+
+src_prepare() {
+ epatch "${FILESDIR}/ocaml4.patch"
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_enable unicode utf8)
+}
+
+src_compile() {
+ # no parallel build, see https://bugs.launchpad.net/wyrd/+bug/691827
+ emake -j1
+}
+
+src_install() {
+ export STRIP_MASK="/usr/bin/wyrd"
+ emake DESTDIR="${D}" install
+ dodoc ChangeLog
+ dohtml doc/manual.html
+}
diff --git a/app-misc/wyrd/wyrd-1.4.6.ebuild b/app-misc/wyrd/wyrd-1.4.6.ebuild
new file mode 100644
index 000000000000..a6f57895aac3
--- /dev/null
+++ b/app-misc/wyrd/wyrd-1.4.6.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+DESCRIPTION="Text-based front-end to Remind"
+HOMEPAGE="http://pessimization.com/software/wyrd/"
+SRC_URI="http://pessimization.com/software/wyrd/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86"
+IUSE="unicode"
+
+RDEPEND="
+ sys-libs/ncurses[unicode?]
+ >=app-misc/remind-03.01
+ || ( dev-ml/camlp4:= <dev-lang/ocaml-4.02.0 )
+"
+DEPEND="${RDEPEND}
+ >=dev-lang/ocaml-3.08
+"
+
+src_configure() {
+ econf \
+ $(use_enable unicode utf8)
+}
+
+src_install() {
+ export STRIP_MASK="/usr/bin/wyrd"
+ emake DESTDIR="${D}" install
+ dodoc ChangeLog
+ dohtml doc/manual.html
+}
diff --git a/app-misc/xmind/Manifest b/app-misc/xmind/Manifest
new file mode 100644
index 000000000000..ae24342ec7af
--- /dev/null
+++ b/app-misc/xmind/Manifest
@@ -0,0 +1,4 @@
+DIST xmind-icons.tar.xz 5024 SHA256 6a5e087c5c66aa6f36b7822268b486922157e3b75a091b6fbdeec905607b8aa5 SHA512 3ee6b8e42b75305bec8f97f733575f10ca3d08e1c5a76a10700776cb7740ae6f8a0f3dfbc4112d60ab2499915ca4ea0e3d56fd49e55bec00fccdc8710d9f9f0d WHIRLPOOL 590571a8b950ff6200d92417ab7eede2a8856263bc07c00fb129d751d9a00ae9bab69d916aab2f04d8270eadb0466723e99570032eacabd7350afd3cca4b8f23
+DIST xmind-portable-3.4.1.201401221918.zip 138440913 SHA256 f70b8317ec0fe512e507bc26cc7fed70348af3c1d8c17603a78359175fc01261 SHA512 06d6473b26a0eef97d6651d14c13d7fd28fda19b33b2aea4f924d2e0f0d3131f19d5b64e081ba0d537c44eb09e27a83596aca91156bd32c5377903fbb7da9804 WHIRLPOOL 2601e8f293ef97d12576a461bb3b7a8e68bf6a4f807f780b9e6b7a12c20030bc979f61cf1f76f6deb617c57aa2c16e8d35621e66c5df825f8800ca38304d8ee0
+DIST xmind-portable-3.5.1.201411201906.zip 160601004 SHA256 920321dc254604d51d4b3b4718ba04271de0e47b63a836fc597467c4062a89e4 SHA512 24da7bf3bfbc0beddbf6f4bb4b9d465e28c652b6e80ba9e0bc2a52cc2ff8c175a83ea8cc0d5b3dc87961c5b6666b6294ca836e29795631db41455ef1b8b2b3f0 WHIRLPOOL 9dab13d6578fe7e817cfa43ce171e33ae5f6d0f939f307b8cf15d651a70800763776bf9ed318a7116716dc7aa20793455a771d46f38ca13780dc9272024f73fe
+DIST xmind-portable-3.5.3.201506180105.zip 159265180 SHA256 38a20e7c4a19c13eb26f5f27ff1898fa4ca463d234e72c616b2305c7a3b31efc SHA512 d41deebec769d06276d051c57e546c44e4283feabd5f6c45ce97efdbf755d75e9b99d39b6fd10baf2f4735f25a695d2902ca9888d94ad414318f38c55e3f4af5 WHIRLPOOL 8aae5af4a2ad14afc2883b56a8b57b9906a7a1cd8e7959175d3a3e780b48725d5e7af83325e0c10e4f5cfee921637656171d21f8190f47810d7b40095a0da489
diff --git a/app-misc/xmind/files/x-xmind.xml b/app-misc/xmind/files/x-xmind.xml
new file mode 100644
index 000000000000..57292e9c689b
--- /dev/null
+++ b/app-misc/xmind/files/x-xmind.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
+ <mime-type type="application/x-xmind">
+ <sub-class-of type="application/zip"/>
+ <comment>XMind Workbook</comment>
+ <alias type="application/vnd.xmind.workbook"/>
+ <generic-icon name="package-x-generic"/>
+ <glob pattern="*.xmind"/>
+ </mime-type>
+</mime-info>
diff --git a/app-misc/xmind/files/xmind-3.4.0-config.ini b/app-misc/xmind/files/xmind-3.4.0-config.ini
new file mode 100644
index 000000000000..62abbd1f31ff
--- /dev/null
+++ b/app-misc/xmind/files/xmind-3.4.0-config.ini
@@ -0,0 +1,20 @@
+#These configurations are shared among all installs. Branded For XMind 2013.
+#Tue, 05 Nov 2013 22:06:37 +0800
+
+eclipse.buildId=3.4.0.201311050558
+org.xmind.product.distribution.id=cathy_portable
+org.xmind.product.license.restrictions=
+org.xmind.debug.core.workbookSave=true
+#This configuration file was written by: org.eclipse.equinox.internal.frameworkadmin.equinox.EquinoxFwConfigFileParser
+#Tue Nov 05 22:05:55 HKT 2013
+eclipse.p2.profile=profile
+osgi.framework=file\:plugins/org.eclipse.osgi_3.8.2.v20130124-134944.jar
+osgi.bundles=reference\:file\:org.eclipse.equinox.simpleconfigurator_1.0.301.v20120914-163612.jar@1\:start
+org.eclipse.equinox.simpleconfigurator.configUrl=file\:org.eclipse.equinox.simpleconfigurator/bundles.info
+eclipse.product=org.xmind.cathy.product
+osgi.splashPath=platform\:/base/plugins/org.xmind.cathy
+osgi.framework.extensions=reference\:file\:org.eclipse.osgi.nl_da_4.2.0.v20121120043402.jar,reference\:file\:org.eclipse.osgi.nl_de_4.2.0.v20121120043402.jar,reference\:file\:org.eclipse.osgi.nl_es_4.2.0.v20121120043402.jar,reference\:file\:org.eclipse.osgi.nl_fr_4.2.0.v20121120043402.jar,reference\:file\:org.eclipse.osgi.nl_ja_4.2.0.v20121120043402.jar,reference\:file\:org.eclipse.osgi.nl_ko_4.2.0.v20121120043402.jar,reference\:file\:org.eclipse.osgi.nl_ru_4.2.0.v20121120043402.jar,reference\:file\:org.eclipse.osgi.nl_sl_4.2.0.v20121120043402.jar,reference\:file\:org.eclipse.osgi.nl_zh_4.2.0.v20121120043402.jar,reference\:file\:org.eclipse.osgi.nl_zh_TW_4.2.0.v20121120043402.jar
+osgi.bundles.defaultStartLevel=4
+eclipse.p2.data.area=@config.dir/../p2
+eclipse.application=org.xmind.cathy.application
+osgi.requiredJavaVersion=1.5
diff --git a/app-misc/xmind/files/xmind-thumbnailer b/app-misc/xmind/files/xmind-thumbnailer
new file mode 100644
index 000000000000..48eb89b8cd9a
--- /dev/null
+++ b/app-misc/xmind/files/xmind-thumbnailer
@@ -0,0 +1,78 @@
+#!/usr/bin/env python
+
+import gnomevfs
+import os
+import sys
+import zipfile
+from PIL import Image, ImageEnhance
+
+# Alter these varibles to change thumbnail look
+ICON_PATH = "/usr/share/icons/hicolor/32x32/apps/xmind.png" # Change this path to alter icons
+ICON_OPACITY = 0.6 #Opacity of the icon (between 0.0 and 1.0)
+THUMBNAIL_BACKGROUND_COLOR = "white" # Color of the background
+
+in_file_path = gnomevfs.get_local_path_from_uri(sys.argv[1])
+out_file_path = sys.argv[2]
+path_without_thumbs = os.getenv("HOME")+"/Templates"
+
+def get_icon(thumbnail_size):
+ #Load icon
+ icon = Image.open(ICON_PATH).convert("RGBA")
+ #Set it's opacity
+ icon = set_icon_opacity(icon,ICON_OPACITY)
+ #And set it's position in thumbnail
+ icon_posx=thumbnail_size[0]-icon.size[0]
+ icon_posy=thumbnail_size[1]-icon.size[1]
+ icon_width=thumbnail_size[0]
+ icon_height=thumbnail_size[1]
+ return {"image":icon,"position":(icon_posx,icon_posy,icon_width,icon_height)}
+
+def get_basic_thumbnail():
+ #Find out if the file is not in Templates directory
+ if in_file_path.find(path_without_thumbs)!=0:
+ try:
+ #Extract thumbnail from Xmind file and save it
+ zip=zipfile.ZipFile(in_file_path,mode="r")
+ picture=zip.read("Thumbnails/thumbnail.jpg")
+ zip.close()
+ thumbnail=open(out_file_path,"w")
+ thumbnail.write(picture)
+ thumbnail.write("/n")
+ thumbnail.close()
+ #Open saved thumbnail
+ image=Image.open(out_file_path).convert("RGBA")
+ if image.size[0]>200:
+ image = image.resize((200,image.size[1]*200/image.size[0]))
+ if image.size[1]>200:
+ image = image.resize((image.size[0]*200/image.size[1],200))
+ return {"suceeded":True,"image":image,"size":(image.size[0],image.size[1])}
+
+ except:
+ return {"suceeded":False}
+ else:
+ return {"suceeded":False}
+
+# Nicked from http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/362879
+def set_icon_opacity(icon,opacity):
+ #Returns an image with reduced opacity.
+ assert opacity >= 0 and opacity <= 1
+ if icon.mode != 'RGBA':
+ icon = icon.convert('RGBA')
+ else:
+ icon = icon.copy()
+ alpha = icon.split()[3]
+ alpha = ImageEnhance.Brightness(alpha).enhance(opacity)
+ icon.putalpha(alpha)
+ return icon
+
+thumbnail=get_basic_thumbnail()
+if thumbnail["suceeded"]:
+ background=Image.new("RGB", thumbnail["size"], THUMBNAIL_BACKGROUND_COLOR)
+ icon=get_icon(thumbnail["size"])
+ thumbnail=thumbnail["image"]
+ # Add thumbnail
+ background.paste(thumbnail, None, thumbnail)
+ # Add icon
+ background.paste(icon["image"],icon["position"],icon["image"])
+ # Save thumbnail
+ background.save(out_file_path,"PNG")
diff --git a/app-misc/xmind/files/xmind-wrapper b/app-misc/xmind/files/xmind-wrapper
new file mode 100755
index 000000000000..728edce3e24a
--- /dev/null
+++ b/app-misc/xmind/files/xmind-wrapper
@@ -0,0 +1,8 @@
+#!/bin/bash
+#XMind wrapper script, copies configuration stuff into the user's local config dir if either
+#the files aren't there or are older than the set in /opt (indicating that XMind has been upgraded)
+if [ ! -f ~/.xmind/configuration-cathy/config.ini -o ~/.xmind/configuration-cathy/config.ini -ot /opt/xmind/XMind/configuration/config.ini ]; then
+ mkdir -p ~/.xmind/configuration-cathy
+ cp -r /opt/xmind/XMind/configuration/* ~/.xmind/configuration-cathy/
+fi
+/opt/xmind/XMind/XMind
diff --git a/app-misc/xmind/files/xmind.schemas b/app-misc/xmind/files/xmind.schemas
new file mode 100644
index 000000000000..336b09ecd837
--- /dev/null
+++ b/app-misc/xmind/files/xmind.schemas
@@ -0,0 +1,30 @@
+<gconfschemafile>
+ <schemalist>
+
+ <schema>
+ <key>/schemas/desktop/gnome/thumbnailers/application@x-xmind/enable</key>
+ <applyto>/desktop/gnome/thumbnailers/application@x-xmind/enable</applyto>
+ <owner>xmind-thumb</owner>
+ <type>bool</type>
+ <default>true</default>
+ <locale name="C">
+ <short></short>
+ <long></long>
+ </locale>
+ </schema>
+
+
+ <schema>
+ <key>/schemas/desktop/gnome/thumbnailers/application@x-xmind/command</key>
+ <applyto>/desktop/gnome/thumbnailers/application@x-xmind/command</applyto>
+ <owner>xmind-thumb</owner>
+ <type>string</type>
+ <default>/usr/bin/xmind-thumbnailer %u %o</default>
+ <locale name="C">
+ <short></short>
+ <long></long>
+ </locale>
+ </schema>
+
+ </schemalist>
+</gconfschemafile>
diff --git a/app-misc/xmind/metadata.xml b/app-misc/xmind/metadata.xml
new file mode 100644
index 000000000000..b8f97c36765b
--- /dev/null
+++ b/app-misc/xmind/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>creffett@gentoo.org</email>
+ <name>Chris Reffett</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-misc/xmind/xmind-3.4.1.201401221918.ebuild b/app-misc/xmind/xmind-3.4.1.201401221918.ebuild
new file mode 100644
index 000000000000..91fe2883470f
--- /dev/null
+++ b/app-misc/xmind/xmind-3.4.1.201401221918.ebuild
@@ -0,0 +1,89 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils multilib gnome2-utils
+
+MY_PN="${PN}-portable"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="A brainstorming and mind mapping software tool"
+HOMEPAGE="http://www.xmind.net"
+SRC_URI="http://dl2.xmind.net/xmind-downloads/${MY_P}.zip
+ http://dev.gentoo.org/~creffett/distfiles/xmind-icons.tar.xz"
+LICENSE="EPL-1.0 LGPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND="
+ >=virtual/jre-1.5
+ x11-libs/gtk+:2
+"
+
+S=${WORKDIR}
+
+QA_PRESTRIPPED="opt/xmind/XMind/libcairo-swt.so"
+QA_FLAGS_IGNORED="
+ opt/xmind/Commons/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20120522-1813/eclipse_1502.so
+ opt/xmind/Commons/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.200.v20120522-1813/eclipse_1502.so
+ opt/xmind/XMind/libcairo-swt.so
+ opt/xmind/XMind/XMind
+"
+
+src_configure() {
+ if use amd64; then
+ XDIR="XMind_Linux_64bit"
+ else
+ XDIR="XMind_Linux"
+ fi
+ mv "$XDIR" XMind || die
+ mv XMind/.eclipseproduct Commons || die
+ cp "${FILESDIR}"/${PN}-3.4.0-config.ini Commons/configuration || die #Combined common+linux config.ini
+ # force data instance & config area to be at home/.xmind directory
+ sed -i -e '/-configuration/d' \
+ -e '/\.\/configuration/d' \
+ -e '/-data/d' \
+ -e '/\.\.\/Commons\/data\/workspace-cathy/d' \
+ -e 's/\.\.\/Commons/\/opt\/xmind\/Commons/g' XMind/XMind.ini || die
+ echo '-Dosgi.instance.area=@user.home/.xmind/workspace-cathy' >> XMind/XMind.ini || die
+ echo '-Dosgi.configuration.area=@user.home/.xmind/configuration-cathy' >> XMind/XMind.ini || die
+}
+
+src_compile() {
+ :
+}
+
+src_install() {
+ insinto /opt/xmind
+ doins -r Commons XMind || die
+ fperms a+rx "/opt/xmind/XMind/XMind"
+
+ dodir /opt/bin
+ exeinto /opt/bin
+ newexe "${FILESDIR}/xmind-wrapper" xmind
+
+ # install icons
+ local res
+ for res in 16 32 48; do
+ newicon -s ${res} "${WORKDIR}/xmind-icons/xmind.${res}.png" xmind.png
+ done
+
+ # make desktop entry
+ make_desktop_entry "xmind %F" XMind xmind Office "MimeType=application/x-xmind;"
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+ elog "For audio notes support, install media-sound/lame"
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/app-misc/xmind/xmind-3.5.1.201411201906.ebuild b/app-misc/xmind/xmind-3.5.1.201411201906.ebuild
new file mode 100644
index 000000000000..62b6a53a5e22
--- /dev/null
+++ b/app-misc/xmind/xmind-3.5.1.201411201906.ebuild
@@ -0,0 +1,89 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils multilib gnome2-utils
+
+MY_PN="${PN}-portable"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="A brainstorming and mind mapping software tool"
+HOMEPAGE="http://www.xmind.net"
+SRC_URI="http://dl2.xmind.net/xmind-downloads/${MY_P}.zip
+ http://dev.gentoo.org/~creffett/distfiles/xmind-icons.tar.xz"
+LICENSE="EPL-1.0 LGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="
+ >=virtual/jre-1.5
+ x11-libs/gtk+:2
+"
+
+S=${WORKDIR}
+
+QA_PRESTRIPPED="opt/xmind/XMind/libcairo-swt.so"
+QA_FLAGS_IGNORED="
+ opt/xmind/Commons/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20120522-1813/eclipse_1502.so
+ opt/xmind/Commons/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.200.v20120522-1813/eclipse_1502.so
+ opt/xmind/XMind/libcairo-swt.so
+ opt/xmind/XMind/XMind
+"
+
+src_configure() {
+ if use amd64; then
+ XDIR="XMind_Linux_64bit"
+ else
+ XDIR="XMind_Linux"
+ fi
+ mv "$XDIR" XMind || die
+ mv XMind/.eclipseproduct Commons || die
+ cp "${FILESDIR}"/${PN}-3.4.0-config.ini Commons/configuration || die #Combined common+linux config.ini
+ # force data instance & config area to be at home/.xmind directory
+ sed -i -e '/-configuration/d' \
+ -e '/\.\/configuration/d' \
+ -e '/-data/d' \
+ -e '/\.\.\/Commons\/data\/workspace-cathy/d' \
+ -e 's/\.\.\/Commons/\/opt\/xmind\/Commons/g' XMind/XMind.ini || die
+ echo '-Dosgi.instance.area=@user.home/.xmind/workspace-cathy' >> XMind/XMind.ini || die
+ echo '-Dosgi.configuration.area=@user.home/.xmind/configuration-cathy' >> XMind/XMind.ini || die
+}
+
+src_compile() {
+ :
+}
+
+src_install() {
+ insinto /opt/xmind
+ doins -r Commons XMind || die
+ fperms a+rx "/opt/xmind/XMind/XMind"
+
+ dodir /opt/bin
+ exeinto /opt/bin
+ newexe "${FILESDIR}/xmind-wrapper" xmind
+
+ # install icons
+ local res
+ for res in 16 32 48; do
+ newicon -s ${res} "${WORKDIR}/xmind-icons/xmind.${res}.png" xmind.png
+ done
+
+ # make desktop entry
+ make_desktop_entry "xmind %F" XMind xmind Office "MimeType=application/x-xmind;"
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+ elog "For audio notes support, install media-sound/lame"
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/app-misc/xmind/xmind-3.5.3.201506180105.ebuild b/app-misc/xmind/xmind-3.5.3.201506180105.ebuild
new file mode 100644
index 000000000000..62b6a53a5e22
--- /dev/null
+++ b/app-misc/xmind/xmind-3.5.3.201506180105.ebuild
@@ -0,0 +1,89 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils multilib gnome2-utils
+
+MY_PN="${PN}-portable"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="A brainstorming and mind mapping software tool"
+HOMEPAGE="http://www.xmind.net"
+SRC_URI="http://dl2.xmind.net/xmind-downloads/${MY_P}.zip
+ http://dev.gentoo.org/~creffett/distfiles/xmind-icons.tar.xz"
+LICENSE="EPL-1.0 LGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="
+ >=virtual/jre-1.5
+ x11-libs/gtk+:2
+"
+
+S=${WORKDIR}
+
+QA_PRESTRIPPED="opt/xmind/XMind/libcairo-swt.so"
+QA_FLAGS_IGNORED="
+ opt/xmind/Commons/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20120522-1813/eclipse_1502.so
+ opt/xmind/Commons/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.200.v20120522-1813/eclipse_1502.so
+ opt/xmind/XMind/libcairo-swt.so
+ opt/xmind/XMind/XMind
+"
+
+src_configure() {
+ if use amd64; then
+ XDIR="XMind_Linux_64bit"
+ else
+ XDIR="XMind_Linux"
+ fi
+ mv "$XDIR" XMind || die
+ mv XMind/.eclipseproduct Commons || die
+ cp "${FILESDIR}"/${PN}-3.4.0-config.ini Commons/configuration || die #Combined common+linux config.ini
+ # force data instance & config area to be at home/.xmind directory
+ sed -i -e '/-configuration/d' \
+ -e '/\.\/configuration/d' \
+ -e '/-data/d' \
+ -e '/\.\.\/Commons\/data\/workspace-cathy/d' \
+ -e 's/\.\.\/Commons/\/opt\/xmind\/Commons/g' XMind/XMind.ini || die
+ echo '-Dosgi.instance.area=@user.home/.xmind/workspace-cathy' >> XMind/XMind.ini || die
+ echo '-Dosgi.configuration.area=@user.home/.xmind/configuration-cathy' >> XMind/XMind.ini || die
+}
+
+src_compile() {
+ :
+}
+
+src_install() {
+ insinto /opt/xmind
+ doins -r Commons XMind || die
+ fperms a+rx "/opt/xmind/XMind/XMind"
+
+ dodir /opt/bin
+ exeinto /opt/bin
+ newexe "${FILESDIR}/xmind-wrapper" xmind
+
+ # install icons
+ local res
+ for res in 16 32 48; do
+ newicon -s ${res} "${WORKDIR}/xmind-icons/xmind.${res}.png" xmind.png
+ done
+
+ # make desktop entry
+ make_desktop_entry "xmind %F" XMind xmind Office "MimeType=application/x-xmind;"
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+ elog "For audio notes support, install media-sound/lame"
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/app-misc/yagtd/Manifest b/app-misc/yagtd/Manifest
new file mode 100644
index 000000000000..2faf3dffe5bd
--- /dev/null
+++ b/app-misc/yagtd/Manifest
@@ -0,0 +1 @@
+DIST yagtd-0.3.4.tar.gz 1402287 SHA256 777b3e56b5a6449383c5a86f8dfc41664eeda046c75fefa2b49b8d87028db7fa SHA512 99f8dd5344615285a09e039f9c829fdcb09305baa1beaef03710fb5661ba5dde53491264142e9ed2c207e89e06855cbd64621e447468aa033e9f972b896385a8 WHIRLPOOL 209554eaa13538bce5b4112267ece4e1250efaaff56697f324b97382386884a7c3143da798b3c003766e4b66aa8a9a0ab5d804f5f4212018c2f31602b3ba4472
diff --git a/app-misc/yagtd/metadata.xml b/app-misc/yagtd/metadata.xml
new file mode 100644
index 000000000000..81adea60373a
--- /dev/null
+++ b/app-misc/yagtd/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>
+ <email>maintainer-needed@gentoo.org</email>
+</maintainer>
+<longdescription lang="en">
+yaGTD incorporates major features from Allen's 'Getting Things Done' philosophy and
+notion of urgency and importance preached by Stephen Covey
+(cf Seven Habits of Highly Effective People book).
+To resume, if you are comfortable at the command line a simple plain text is an
+age-old but perfect method for tracking your stuff, and yaGTD can help you to
+manage efficiently this file.
+</longdescription>
+</pkgmetadata>
+
diff --git a/app-misc/yagtd/yagtd-0.3.4-r1.ebuild b/app-misc/yagtd/yagtd-0.3.4-r1.ebuild
new file mode 100644
index 000000000000..dab244bd6050
--- /dev/null
+++ b/app-misc/yagtd/yagtd-0.3.4-r1.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1
+
+DESCRIPTION="CLI todo list manager based on the 'Getting Things Done' philosophy"
+HOMEPAGE="https://gna.org/projects/yagtd/"
+SRC_URI="http://download.gna.org/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+src_prepare() {
+ #fix doc install location
+ sed -i -e "s:\/doc\/yagtd:\/doc\/${P}:g" setup.py || die
+
+ distutils-r1_src_prepare
+}
+
+python_install() {
+ distutils-r1_python_install
+ ln -s yagtd.py "${D}$(python_get_scriptdir)"/yagtd || die
+}
+
+src_install() {
+ distutils-r1_src_install
+ dosym yagtd.py /usr/bin/yagtd
+}
diff --git a/app-misc/yagtd/yagtd-0.3.4.ebuild b/app-misc/yagtd/yagtd-0.3.4.ebuild
new file mode 100644
index 000000000000..d31f2f750c1a
--- /dev/null
+++ b/app-misc/yagtd/yagtd-0.3.4.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="3"
+PYTHON_DEPEND="2"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="3.*"
+
+inherit distutils
+
+DESCRIPTION="CLI todo list manager based on the 'Getting Things Done' philosophy"
+HOMEPAGE="https://gna.org/projects/yagtd/"
+SRC_URI="http://download.gna.org/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+PYTHON_MODNAME="gtd.py yagtd.py"
+
+src_prepare() {
+ #fix doc install location
+ sed -i -e "s:\/doc\/yagtd:\/doc\/${P}:g" setup.py || die
+}
+
+src_install() {
+ distutils_src_install
+ dosym /usr/bin/yagtd.py /usr/bin/yagtd
+}
diff --git a/app-misc/ytree/Manifest b/app-misc/ytree/Manifest
new file mode 100644
index 000000000000..8e9d38cfcc09
--- /dev/null
+++ b/app-misc/ytree/Manifest
@@ -0,0 +1,2 @@
+DIST ytree-1.97.tar.gz 121571 SHA256 9db152524d08ec0d61b2b83a37435c5e77ebfc4b21f973fddfb571beb445a60d SHA512 30054868149071426944eb46bb2815a579d2212dcbd25faa0fe574cd28102cc0d57993954b9e55c0e1a8b6afe5492d25749a4ab5790d5c6b1630e965a2f39096 WHIRLPOOL ed58b5c68c17b573c02735626579d2dfb36ca2c59589a152c08b12497f772b92e054a8e903e85c4aaf7c39b18a7f75842f9b4e989180f2f3bbe8619e1ed5ca23
+DIST ytree-1.98.tar.gz 122610 SHA256 e7264e1c112bf62aba1f6ed0078308930cd8f01317a157ed1718b8dac09195c5 SHA512 b75f3b04af72270e2b4db6dc7448435fdf2d197d98bd2f4fdf6d3131091c8c3a697f8b0cabc1625502c616cee4e27ae6aa6fa2bfc082beeae1b6ecad9921dbef WHIRLPOOL 292da20c8c918eb468ccab6d0a5e09ecef8c44dad990326e2366eac81f11c039d1461308b053b54d751a7fb883dac9dda28d6abe6d12f2682c4b58dc58390665
diff --git a/app-misc/ytree/files/ytree-1.94-bindir.patch b/app-misc/ytree/files/ytree-1.94-bindir.patch
new file mode 100644
index 000000000000..a79904e923b3
--- /dev/null
+++ b/app-misc/ytree/files/ytree-1.94-bindir.patch
@@ -0,0 +1,11 @@
+--- ./Makefile.orig 2010-04-11 17:44:57.511131862 +0200
++++ ./Makefile 2010-04-11 17:44:14.143178887 +0200
+@@ -225,6 +225,8 @@
+ $(CC) $(LFLAGS) -o $@ $(OBJS) $(LDFLAGS)
+
+ install: $(MAIN)
++ if [ ! -d $(BINDIR) ]; then mkdir -p $(BINDIR); fi
++ if [ ! -d $(MANDIR) ]; then mkdir -p $(MANDIR); fi
+ install $(MAIN) $(BINDIR)
+ gzip -9c ytree.1 > ytree.1.gz
+ if [ -d $(MANDIR) ]; then install -m 0644 ytree.1.gz $(MANDIR)/; fi
diff --git a/app-misc/ytree/metadata.xml b/app-misc/ytree/metadata.xml
new file mode 100644
index 000000000000..91f4e72fb544
--- /dev/null
+++ b/app-misc/ytree/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>
+ <email>maintainer-needed@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-misc/ytree/ytree-1.97.ebuild b/app-misc/ytree/ytree-1.97.ebuild
new file mode 100644
index 000000000000..d44d09a1b996
--- /dev/null
+++ b/app-misc/ytree/ytree-1.97.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="A (curses-based) file manager"
+HOMEPAGE="http://www.han.de/~werner/ytree.html"
+SRC_URI="http://www.han.de/~werner/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 x86"
+IUSE=""
+
+DEPEND="
+ sys-libs/readline
+ sys-libs/ncurses
+"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-1.94-bindir.patch
+}
+
+pkg_setup() {
+ tc-export CC
+}
+
+src_install() {
+ emake DESTDIR="${D}usr" install || die "emake install failed"
+ dodoc ytree.conf
+}
diff --git a/app-misc/ytree/ytree-1.98.ebuild b/app-misc/ytree/ytree-1.98.ebuild
new file mode 100644
index 000000000000..630402351e90
--- /dev/null
+++ b/app-misc/ytree/ytree-1.98.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="A (curses-based) file manager"
+HOMEPAGE="http://www.han.de/~werner/ytree.html"
+SRC_URI="http://www.han.de/~werner/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="
+ sys-libs/readline
+ sys-libs/ncurses
+"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-1.94-bindir.patch
+}
+
+pkg_setup() {
+ tc-export CC
+}
+
+src_install() {
+ emake DESTDIR="${D}usr" install
+ dodoc CHANGES README THANKS ytree.conf
+}
diff --git a/app-misc/yworklog/Manifest b/app-misc/yworklog/Manifest
new file mode 100644
index 000000000000..7b193f4f9589
--- /dev/null
+++ b/app-misc/yworklog/Manifest
@@ -0,0 +1 @@
+DIST yworklog-0.0.7.tar.gz 9689 SHA256 45c815506ca8560fe4b406164a84c44154d4ab7a7515aadd134ae42c424fb928 SHA512 66a9dd118dfaca04d70738a4edfbd905b19661753bc0a637032cba458b173839d23a1430b3667c90acec6597b98383a0dce8c229a1fac233c84870aff7707fca WHIRLPOOL ec3e0acbf2530050a5aafd9df41aa734b11d3601de898ff54c9252db1b6272ec30854c57b04d0e975e78c8521e0e788babafa76cc71823d53bcedfef6ffd904c
diff --git a/app-misc/yworklog/metadata.xml b/app-misc/yworklog/metadata.xml
new file mode 100644
index 000000000000..d70174a2e003
--- /dev/null
+++ b/app-misc/yworklog/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>python</herd>
+ <maintainer>
+ <email>yac@gentoo.org</email>
+ <name>Jan Matejka</name>
+ </maintainer>
+ <longdescription lang="en">
+ </longdescription>
+ <upstream>
+ <remote-id type="pypi">yworklog</remote-id>
+ <remote-id type="github">yaccz/worklog</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-misc/yworklog/yworklog-0.0.7.ebuild b/app-misc/yworklog/yworklog-0.0.7.ebuild
new file mode 100644
index 000000000000..5ced9d8acc40
--- /dev/null
+++ b/app-misc/yworklog/yworklog-0.0.7.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE=sqlite
+
+inherit distutils-r1
+
+DESCRIPTION="Stack based utility with CLI interface helping to monitor time spent on tasks"
+HOMEPAGE="https://github.com/yaccz/worklog"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 x86"
+
+RDEPEND="dev-python/sqlalchemy
+ dev-python/cement[${PYTHON_USEDEP}]
+ dev-python/pyxdg[${PYTHON_USEDEP}]
+ dev-python/alembic[${PYTHON_USEDEP}]
+"
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]
+"
diff --git a/app-misc/zisofs-tools/Manifest b/app-misc/zisofs-tools/Manifest
new file mode 100644
index 000000000000..88c1e63f260a
--- /dev/null
+++ b/app-misc/zisofs-tools/Manifest
@@ -0,0 +1,2 @@
+DIST zisofs-tools-1.0.6.tar.bz2 53138 SHA256 a7d80141be2b52df99423cc617ad9dab8e81b1c79ca437789bbb1a9433524e3e SHA512 7928c40bd421853adde1da874a574ccaaa2b9ac3cb6d0fe241763bb64f66717dd83991f92bad093a1044e35f72f84643568af4a4999cfe62b85777df24fc0b96 WHIRLPOOL eb3a0ed0394bba3a2dc4f51aba0a2071b4f69db997f46f577550afbe296dbbede564641cc29d5b8d032ab8e1cc9ea90abbc3f43aa33984d564def8aadfd3eddf
+DIST zisofs-tools-1.0.8.tar.bz2 52968 SHA256 ae4e53e4914934d41660248fb59d3c8761f1f1fd180d5ec993c17ddb3afd04f3 SHA512 2c50bb73428c065e02e95def81950e1f64aff3cec0a4d74ee91ddbf4c15b81a423d8a128a4abc2e11aeb866b9d5f67f55019f7ae884c9e1a8b013ed3133db50d WHIRLPOOL 05b59ba8423be7ac1f257ce6106f32be00cc62ffd2891c8f620e65b5eda28611aefd073f3832088bfcb42309d92e0b8866ed219b273b9d9431af928e032a061f
diff --git a/app-misc/zisofs-tools/metadata.xml b/app-misc/zisofs-tools/metadata.xml
new file mode 100644
index 000000000000..74d25af22b2e
--- /dev/null
+++ b/app-misc/zisofs-tools/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>kernel-misc</herd>
+</pkgmetadata>
diff --git a/app-misc/zisofs-tools/zisofs-tools-1.0.6.ebuild b/app-misc/zisofs-tools/zisofs-tools-1.0.6.ebuild
new file mode 100644
index 000000000000..eb489423f2d6
--- /dev/null
+++ b/app-misc/zisofs-tools/zisofs-tools-1.0.6.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit flag-o-matic
+
+DESCRIPTION="User utilities for zisofs"
+HOMEPAGE="http://www.kernel.org/pub/linux/utils/fs/zisofs/"
+SRC_URI="mirror://kernel/linux/utils/fs/zisofs/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 s390 sh sparc x86"
+IUSE="static"
+
+DEPEND=">=sys-libs/zlib-1.1.4"
+
+src_compile() {
+ use static && append-ldflags -static
+ econf || die
+ emake || die
+}
+
+src_install() {
+ emake INSTALLROOT="${D}" install || die
+ dodoc CHANGES INSTALL README
+}
diff --git a/app-misc/zisofs-tools/zisofs-tools-1.0.8.ebuild b/app-misc/zisofs-tools/zisofs-tools-1.0.8.ebuild
new file mode 100644
index 000000000000..f3c0d05bd821
--- /dev/null
+++ b/app-misc/zisofs-tools/zisofs-tools-1.0.8.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit flag-o-matic
+
+DESCRIPTION="User utilities for zisofs"
+HOMEPAGE="http://www.kernel.org/pub/linux/utils/fs/zisofs/"
+SRC_URI="mirror://kernel/linux/utils/fs/zisofs/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos"
+IUSE="static"
+
+DEPEND=">=sys-libs/zlib-1.1.4"
+
+src_compile() {
+ use static && append-ldflags -static
+ econf || die
+ emake || die
+}
+
+src_install() {
+ emake INSTALLROOT="${D}" install || die
+ dodoc CHANGES INSTALL README
+}
diff --git a/app-misc/zygrib/Manifest b/app-misc/zygrib/Manifest
new file mode 100644
index 000000000000..ffa43cb28660
--- /dev/null
+++ b/app-misc/zygrib/Manifest
@@ -0,0 +1,7 @@
+DIST zygrib-6.2.3.tgz 15256377 SHA256 f4086211e13d1e285a8228c98f568c8472031361b72c6d4e5327e67a57693cee SHA512 f838611aa2dd4544c353bd25c7450a1cb805ea5ec8fb6bc3ebd1b7d3a46c87034fef4151fd0c39f9587fb433fdc2ccab3f1b321724e398135f5e71cdccf65bef WHIRLPOOL b0a3c9521f4eb62511e464e87de2dd293e92e03d884e7c47a79f1151d2ca79f922b0098882b34c62ba6c67ce4cb1107dea4fb44b0b557a796d76259edc22dd40
+DIST zygrib-7.0.0.tgz 15287496 SHA256 b60c1a318ba6afb4aec3ad1c241cfd6282e4fb5a34962c43fa2fb99aae1b9f53 SHA512 ae6e279b874aca510ccf91fecab06ce155427edd6a45844ef1053617512fd81e110f2338c22b10879c8e93dab226cfcdf58bf0270e4ed83931369c51b8869399 WHIRLPOOL ba9a0aac64b4a62e3d619e571f1dce404790dab4992d66ec77d3316ab34f5649b1228f5ed5b8078f6845dc5a0874be6b7959db1a1e374461dae5e07e63f46282
+DIST zygrib-cities_0-300.txt.gz 517620 SHA256 443015f38acbe3cc972b04b80b0011c53bae939dcf1c23a2f1e4eb344048444b SHA512 f3c51e600e21d082759d3cf71c48742896e8cf3838e08c57eefa312ac7ef2dd1f23cbf02e9374aa9779be4bc5c04fd2748ef814b5b4b40b9d24fe4f1f5de4d80 WHIRLPOOL 41433660c8044f8f970acac4e4cc0754fc6ffa313bb1ca4ea06475760bf50423f8244d8efd56d31f796da2768fb0886f94afd07d1441f66e822717315c036da3
+DIST zygrib-cities_1k-3k.txt.gz 495119 SHA256 08a4071b0044d20410c894bab11fcaf05533d3d8299233b91430b8f8eafe1ce1 SHA512 010d6688b9c381f0ace549c53a45f8bd43f1d6846dc01241ab7bfdf30b0629f39ef2a9a715c55a534634ad8480bc2edc2796a09f0c369406027f35f6b4ba8c08 WHIRLPOOL 05a03c46932ab2911a33644050d16837879765db362ecad63ae6dbc5674e9c0974a66d0f58133c05294f8b46f46fa1e5b2af326161f7cfe2e7aa08b2e314e7c0
+DIST zygrib-cities_300-1k.txt.gz 512733 SHA256 6fb04f9c27420ec6f4793be4842a6e6831ee1219d1834a8c1c7d67c3c19cafd0 SHA512 f22f10c5d4d011593cf658acc2b2bdb6678d9ad26be0dfab67e2e6546439adc2c5a26d04889ddfd3544dbd2ff4d52e1d17e7d4b7d929e589fe55ceb6c0dc4112 WHIRLPOOL 2642614d918ac091aca958143aee686dc077ca020962db224713507a6453ebf48fdc16b92b58560746b10edc5041814628f238fc42105e0bf473d871c474258b
+DIST zygrib-icon.png 851 SHA256 42a9cea5b780fd1fef66b3ba5327f93690d29373e2d95434d8f96440bd1425e7 SHA512 9f36e96be1efa5df558321b631b43a7496ec812e76eb1eb5392b1a0afdec782f427b9d0b697102a661258ac1edd00b4bb0a84788c73e1fcd5f16584ad566fe5b WHIRLPOOL 72f2ae9d804977d6b8b04e5d9695c3e6cf1c7802b03e43ef0e7b760b614a65f01fe121134abc7357544b660a3afbe83cbf464fc371c21013c03beb988de524ee
+DIST zygrib-maps2.4.tgz 105735981 SHA256 3cd6bf3de709ff4afb193a7bb5455f28d6ab540687a97f2d978bd0a21592750e SHA512 0f10786ef81141299fd9550e36d976ce126b0d3523b56c10b19a839d56e17697ac93915b46f31d6691950f1e6d13c368fa1d198a5e2d830768fcb9e63034b487 WHIRLPOOL c92677721f234b80ee8f33c30f88f0ce5b82128ae189209f1d484fa1dae3a9dd1346ef8cf4b925cbdb1244f80f7ebb3adbe8229b3f27ce605e73dcce5f1fabee
diff --git a/app-misc/zygrib/files/zygrib b/app-misc/zygrib/files/zygrib
new file mode 100644
index 000000000000..f3d23f6ff74a
--- /dev/null
+++ b/app-misc/zygrib/files/zygrib
@@ -0,0 +1,2 @@
+#!/bin/sh
+cd /opt/zyGrib && exec bin/zyGrib
diff --git a/app-misc/zygrib/files/zygrib.desktop b/app-misc/zygrib/files/zygrib.desktop
new file mode 100644
index 000000000000..92873a1b87a5
--- /dev/null
+++ b/app-misc/zygrib/files/zygrib.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Version=1.0
+Name=zyGrib
+GenericName=GRIB File Viewer
+Comment=Weather data visualization
+Exec=/usr/bin/zygrib
+Terminal=false
+X-MultipleArgs=false
+Icon=zygrib
+Type=Application
+Categories=Network;
diff --git a/app-misc/zygrib/metadata.xml b/app-misc/zygrib/metadata.xml
new file mode 100644
index 000000000000..f5433d54ae9f
--- /dev/null
+++ b/app-misc/zygrib/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>
+ <email>mschiff@gentoo.org</email>
+ </maintainer>
+ <use>
+ <flag name='maps'>Installs additional GSHHS maps for high resolution coastline data and cities</flag>
+ </use>
+</pkgmetadata>
+
diff --git a/app-misc/zygrib/zygrib-6.2.3.ebuild b/app-misc/zygrib/zygrib-6.2.3.ebuild
new file mode 100644
index 000000000000..6c1678abd6c1
--- /dev/null
+++ b/app-misc/zygrib/zygrib-6.2.3.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils qt4-r2
+
+MY_PN="zyGrib"
+
+DESCRIPTION="GRIB File Viewer - Weather data visualization"
+HOMEPAGE="http://www.zygrib.org/"
+SRC_URI="http://www.zygrib.org/getfile.php?file=${MY_PN}-${PV}.tgz -> ${P}.tgz
+ http://dev.gentoo.org/~mschiff/distfiles/${PN}-icon.png
+ maps? (
+ http://zygrib.org/getfile.php?file=zyGrib_maps2.4.tgz -> zygrib-maps2.4.tgz
+ http://www.zygrib.org/getfile.php?file=cities_1k-3k.txt.gz -> zygrib-cities_1k-3k.txt.gz
+ http://www.zygrib.org/getfile.php?file=cities_300-1k.txt.gz -> zygrib-cities_300-1k.txt.gz
+ http://www.zygrib.org/getfile.php?file=cities_0-300.txt.gz -> zygrib-cities_0-300.txt.gz
+ )"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+maps"
+
+DEPEND="app-arch/bzip2
+dev-qt/qtsvg:4
+sci-libs/libnova
+sci-libs/proj
+sys-libs/zlib
+x11-libs/qwt:6"
+
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+src_prepare() {
+ sed -i 's,INSTALLDIR=$(HOME)/zyGrib,INSTALLDIR=$(DESTDIR)/opt/zyGrib,' Makefile
+}
+
+src_install() {
+ default
+ rm zyGrib
+ doicon -s 32 "${DISTDIR}/zygrib-icon.png"
+ make_wrapper "${PN}" "./bin/${MY_PN}" "/opt/${MY_PN}"
+ domenu "${FILESDIR}/zygrib.desktop"
+
+ if use maps; then
+ insinto "/opt/${MY_PN}"
+ doins -r "${WORKDIR}/data"
+ insinto "/opt/${MY_PN}/data/gis"
+ gzip "${WORKDIR}"/*.txt
+ doins "${WORKDIR}"/*.txt.gz
+ fi
+}
diff --git a/app-misc/zygrib/zygrib-7.0.0.ebuild b/app-misc/zygrib/zygrib-7.0.0.ebuild
new file mode 100644
index 000000000000..d4e056612a82
--- /dev/null
+++ b/app-misc/zygrib/zygrib-7.0.0.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils qt4-r2
+
+MY_PN="zyGrib"
+
+DESCRIPTION="GRIB File Viewer - Weather data visualization"
+HOMEPAGE="http://www.zygrib.org/"
+SRC_URI="http://www.zygrib.org/getfile.php?file=${MY_PN}-${PV}.tgz -> ${P}.tgz
+ http://dev.gentoo.org/~mschiff/distfiles/${PN}-icon.png
+ maps? (
+ http://zygrib.org/getfile.php?file=zyGrib_maps2.4.tgz -> zygrib-maps2.4.tgz
+ http://www.zygrib.org/getfile.php?file=cities_1k-3k.txt.gz -> zygrib-cities_1k-3k.txt.gz
+ http://www.zygrib.org/getfile.php?file=cities_300-1k.txt.gz -> zygrib-cities_300-1k.txt.gz
+ http://www.zygrib.org/getfile.php?file=cities_0-300.txt.gz -> zygrib-cities_0-300.txt.gz
+ )"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+maps"
+
+DEPEND="app-arch/bzip2
+dev-qt/qtsvg:4
+sci-libs/libnova
+sci-libs/proj
+sys-libs/zlib
+x11-libs/qwt:6"
+
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+src_prepare() {
+ sed -i 's,INSTALLDIR=$(HOME)/zyGrib,INSTALLDIR=$(DESTDIR)/opt/zyGrib,' Makefile
+ sed -i 's,QMAKE=/usr/bin/qmake-qt4,QMAKE=/usr/bin/qmake,' Makefile
+}
+
+src_install() {
+ default
+ rm zyGrib
+ doicon -s 32 "${DISTDIR}/zygrib-icon.png"
+ make_wrapper "${PN}" "./bin/${MY_PN}" "/opt/${MY_PN}"
+ domenu "${FILESDIR}/zygrib.desktop"
+
+ if use maps; then
+ insinto "/opt/${MY_PN}"
+ doins -r "${WORKDIR}/data"
+ insinto "/opt/${MY_PN}/data/gis"
+ gzip "${WORKDIR}"/*.txt
+ doins "${WORKDIR}"/*.txt.gz
+ fi
+}