summaryrefslogtreecommitdiff
path: root/media-libs/aalib
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /media-libs/aalib
reinit the tree, so we can have metadata
Diffstat (limited to 'media-libs/aalib')
-rw-r--r--media-libs/aalib/Manifest14
-rw-r--r--media-libs/aalib/aalib-1.4_rc5-r6.ebuild67
-rw-r--r--media-libs/aalib/aalib-1.4_rc5-r7.ebuild68
-rw-r--r--media-libs/aalib/aalib-1.4_rc5-r8.ebuild70
-rw-r--r--media-libs/aalib/files/aalib-1.4_rc4-gentoo.patch35
-rw-r--r--media-libs/aalib/files/aalib-1.4_rc4-m4.patch9
-rw-r--r--media-libs/aalib/files/aalib-1.4_rc5-fix-aarender.patch34
-rw-r--r--media-libs/aalib/files/aalib-1.4_rc5-fix-protos.patch56
-rw-r--r--media-libs/aalib/files/aalib-1.4_rc5-key-down-OOB.patch23
-rw-r--r--media-libs/aalib/files/aalib-1.4_rc5-more-protos.patch55
-rw-r--r--media-libs/aalib/files/aalib-1.4_rc5-tinfo.patch19
-rw-r--r--media-libs/aalib/metadata.xml14
12 files changed, 464 insertions, 0 deletions
diff --git a/media-libs/aalib/Manifest b/media-libs/aalib/Manifest
new file mode 100644
index 000000000000..25a3e17548a9
--- /dev/null
+++ b/media-libs/aalib/Manifest
@@ -0,0 +1,14 @@
+AUX aalib-1.4_rc4-gentoo.patch 1245 SHA256 fa5d946e9d0e4a78c37187f6795b27bcb057e9e2ec00fe3a873a11e25fba23a7 SHA512 058f594a573ac61dcd484b85bebdde8f80bb567ec72c0692312e3d129b5656b902ddcbe3253623812aabb82e3a4503b9cb22510faefe86595549c4dc090460a4 WHIRLPOOL 5846e3481f5c95819a21b69a5a09804c834095f558e2458c8c4ed4ede568f5510687a5f06ce1e2850f7453222cadd721339e1f01ae88b8fc02545b56389a89db
+AUX aalib-1.4_rc4-m4.patch 241 SHA256 24d09cb9eb9ed8d0990c677b5fbfe43762fe872d198c146c7de6fdb39eab692f SHA512 bea8e769596ec8d529d67a2b6081d2a7c1e47d9089551a31356f8b15a4dbfd36fdc97839754ef188621d8870628707b274f2183cebffc219ea0f3784fa12d8f1 WHIRLPOOL 9d5cf224edf45ffef0b42f8087d43833a86ee13e9b7871f422024d84bc36f905ef5dce5f39799104bf24046164a6c9c2e84b01165c57bf90c6a396dffb90f560
+AUX aalib-1.4_rc5-fix-aarender.patch 1350 SHA256 ce8900622dd0fca6ccd35ea7027e159ae1174bb2876ca0ca87b7a66d51a451a6 SHA512 83f6a1fffcdfa342d23df9a47d3803cd4416fba33a126602cc341405b953600f5e7b14ce21bd9f7699113f975815ddfcb6a9a95cc392ae62828557f59064a9da WHIRLPOOL 45ea620daa1074294a37effc557d6b642f015f795d3142de951cf85574bc971e384ba5afe0c7d5f4039719a4cd52c55443844a2efa98bfa63d5bd5c3245d3413
+AUX aalib-1.4_rc5-fix-protos.patch 2105 SHA256 1ada77080d8dbd5636d2d9a29a3fcf9033fe9ff9860cede5ab8338d5bcbea161 SHA512 e46268f5fb972500851f5489cc6311171a07a8b1a7a564bdafe5760008db72787650ad74e5144cbdb30b7fef027ee646e5534dd2eabddbd057bef1b27229af37 WHIRLPOOL 063fcd38329c7c2a841d004059c01314d17148c64408631f6a9a58f2d8594984aebd76874bce1666b0e4d02e3d204cbba84e2593f12e6a62611b50e63bf78cc2
+AUX aalib-1.4_rc5-key-down-OOB.patch 504 SHA256 1fbba4b022e2d14981e6595d2eecc8f97f979b25acee4e6871bb415a5bf5da89 SHA512 e3a79459024e25180b5407b92031c1b675659038289daff5a62485a01dc79afd8223652f9bd3e521a975158ecaa8210e35e536dfe3719259f2631a87d83e19b7 WHIRLPOOL c00c311c651b86489b90d0aac0807fb2c8fda65a7dde1346133f046a221b78d2895747b8001a43ec8bf7a8ff6b731556110ee83a0d6a8f591fdfe6050fdc91f0
+AUX aalib-1.4_rc5-more-protos.patch 1499 SHA256 0da5911eb5308dead7f42ee6b0ffa355618d26ba234d33f0a941b8be46505337 SHA512 c2b723af88a0ca70505086bc7436e5c213d2f52698b293392be2a6b18ef26ef285a09e460577a4a60b328df45b1d61c50064f3ba1f3df43a844082f2c5da25b2 WHIRLPOOL 7450c95c39a238fb6941f5529c188415145d4f30e64f07673b3bf7abf3fcae19cdb86e4edf179603fb501a4be82b202de3098527d1ef8a822aeafc994b3f1eda
+AUX aalib-1.4_rc5-tinfo.patch 709 SHA256 283b4a484b16cb422db7ecef0771d10e8a85a9eadeb6128fd86bf5545ab386c0 SHA512 2abab613af549f4c24f7d617cf65de773e7850ec8485dfa23de2405ed59cf14f7cb70c2f1b701e27ae541e5f75302f4d28c3f866303bfc901a96074c9d9d534b WHIRLPOOL ab11bf3e74fbf8d4cdc1f593bef4589d0f8d31d41230ecc5add3f7a8ee7586875997e76cec3084da3955c6960126c6cb6832210128e9ac4ab72c0e9f8dca54c2
+DIST aalib-1.4rc5.tar.gz 391028 SHA256 fbddda9230cf6ee2a4f5706b4b11e2190ae45f5eda1f0409dc4f99b35e0a70ee SHA512 3e4506eccce3b81ccbbb79a4a1b90abd39e2259e6043fde90f70b9ca279bd4c37758a047167267b97c4ec92f64fb17c7c8f548114f0d0c6e78ddb9463b5f1299 WHIRLPOOL ec98116736b64eb6e855777a5ec13894446b76beb4f874a490144919031d6ddd341b49cc429b2c918acde5cebc22a3e2dc97b949379200f441d2c544a02f2736
+EBUILD aalib-1.4_rc5-r6.ebuild 1777 SHA256 7502da878db0c09cc3d7947078413318e96c5d34b1ddeb1d01726fb6ecc2e34c SHA512 58b7e629913798018fff1cb4b8ee5f2c13804502e945ce4a78e30dfc90e945f2d2798a572de8ffecd500f10923b805fa8abd39f7cb14ca4bdc1629ac93ec1b7a WHIRLPOOL 3b57fe57c3fb313b5fccdfa081cc7687530e57ceed0377c937637a41651ece3913936d049f93d03723c43a4e455ab22e59cffe7c5e0d4b49e39a7776596cf87e
+EBUILD aalib-1.4_rc5-r7.ebuild 1841 SHA256 085a51e161d224a610f1ab95f7cbfc359cfc0d877e1f470e72086fa6184b25d8 SHA512 35485de873027f7ea88f450c88f8d84d3a9b769914887d6d6368d89798a02d96ae133c9477b956292abb8756c1a222b94541f45725507cdcae315e6f3e5add33 WHIRLPOOL ee20b463dc641cc1fca9c309c325f272fd3e9140ce8941e3e8f3c6fff9259d86eb962aff358b28f3aed9128f693f1f0dc32ec437c661ff73d366746fbd04d8c9
+EBUILD aalib-1.4_rc5-r8.ebuild 1985 SHA256 e916d85fe8dc90db1869f0a6fbff00b8f9ae83d93532a9dbfe4823b8ac9f77d9 SHA512 e1647dca40dcf445e9ea658c0c4b240ab845ee8bfadb525ec478135efb4f76add8aafcf8f05fd68013ae1bd0e8752656e42940da8138176e139c4c79213c1e9b WHIRLPOOL 0672f0190fdd192a7bcd219ea1cd386259099948d5eb5204a6f9e32b10bc39688dd171378192c578432060860c3b3bcc41600895cac3e2ebe69b7c00cbcae972
+MISC ChangeLog 3081 SHA256 b4074ee1205d8ff93f12166df49f59df17d368f79359ebe35b9714761d72de32 SHA512 e5b2267ea10c2330ac879ab5b9b8b3107e4cc3add18210884f7d5ca6e6d8ecbe8dbc9a35af9d0b820e535572de2e2791fc9be898e2a4a29e2e9934a7d8af0674 WHIRLPOOL bac9b692b5b0575638c38e8dcd1f147dd108251e7aa77e64d24d7ac1603e5673f7440d7e6102b786c1dadb5276b2a1f85eb0eacc7857178377fa454631ebbea3
+MISC ChangeLog-2015 8310 SHA256 82994e80b6c101f3da0166d28c2e4093bd3d389066c02b55de161de8d413f741 SHA512 06923cc0eb9e07b97235c679541f70c3e06d269df098a344063033761a04167081fa75d6f1481c41382357b5788b14a20dcee9e0a2562b8eae9b5a195dcd5033 WHIRLPOOL 6930157cca9e45d7ea7529404aef8f8a31b5bc43743f0cf800339432102559c9a47e4a0705113cb3c2a3c210b2c1dc70594a4ff8211ebcaa6fe7d3f224f4522a
+MISC metadata.xml 415 SHA256 b297f18d12d029fdbdcea182aeddb14efaa09191315226b2422959f2db5da036 SHA512 f49d1e3652e86e14a048ad6944c108bec49ba19b961ea89b171d55e789e9c42bd4f981086dc643daf1c805fec79de3831488bdc9c29c2c1a6d6e4b00bb786def WHIRLPOOL 6b6330f34a1e5197bedbbe7a85fb385670adde2cbaba605e5ebb5f017da4065c16142a4009acdd83314c8c23ada097103501313bbffc959ce77e9eda1329082a
diff --git a/media-libs/aalib/aalib-1.4_rc5-r6.ebuild b/media-libs/aalib/aalib-1.4_rc5-r6.ebuild
new file mode 100644
index 000000000000..91b4a855d733
--- /dev/null
+++ b/media-libs/aalib/aalib-1.4_rc5-r6.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit autotools-multilib eutils toolchain-funcs
+
+MY_P="${P/_/}"
+S="${WORKDIR}/${PN}-1.4.0"
+
+DESCRIPTION="A ASCII-Graphics Library"
+HOMEPAGE="http://aa-project.sourceforge.net/aalib/"
+SRC_URI="mirror://sourceforge/aa-project/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd"
+IUSE="X slang gpm static-libs"
+
+RDEPEND="
+ X? ( >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}] )
+ gpm? ( >=sys-libs/gpm-1.20.7-r2[${MULTILIB_USEDEP}] )
+ slang? ( >=sys-libs/slang-2.2.4-r1[${MULTILIB_USEDEP}] )
+ >=sys-libs/ncurses-5.9-r3:0=[${MULTILIB_USEDEP}]
+"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ X? ( x11-proto/xproto )
+"
+
+DOCS="ANNOUNCE AUTHORS ChangeLog NEWS README*"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-1.4_rc4-gentoo.patch
+ epatch "${FILESDIR}"/${PN}-1.4_rc4-m4.patch
+ epatch "${FILESDIR}"/${PN}-1.4_rc5-fix-protos.patch #224267
+ epatch "${FILESDIR}"/${PN}-1.4_rc5-fix-aarender.patch #214142
+ epatch "${FILESDIR}"/${PN}-1.4_rc5-tinfo.patch #468566
+
+ sed -i -e 's:#include <malloc.h>:#include <stdlib.h>:g' "${S}"/src/*.c
+
+ # Fix bug #165617.
+ use gpm || sed -i \
+ 's/gpm_mousedriver_test=yes/gpm_mousedriver_test=no/' "${S}/configure.in"
+
+ #467988 automake-1.13
+ mv configure.{in,ac} || die
+ sed -i 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/g' configure.ac || die
+
+ eautoreconf
+}
+
+src_configure() {
+ local myeconfargs=(
+ $(use_with slang slang-driver)
+ $(use_with X x11-driver)
+ $(use_enable static-libs static)
+ )
+
+ PKG_CONFIG=$(tc-getPKG_CONFIG) \
+ autotools-multilib_src_configure
+}
+
+src_install() {
+ autotools-multilib_src_install
+ use static-libs || prune_libtool_files --all
+}
diff --git a/media-libs/aalib/aalib-1.4_rc5-r7.ebuild b/media-libs/aalib/aalib-1.4_rc5-r7.ebuild
new file mode 100644
index 000000000000..fca6534c9223
--- /dev/null
+++ b/media-libs/aalib/aalib-1.4_rc5-r7.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit autotools-multilib eutils toolchain-funcs
+
+MY_P="${P/_/}"
+S="${WORKDIR}/${PN}-1.4.0"
+
+DESCRIPTION="A ASCII-Graphics Library"
+HOMEPAGE="http://aa-project.sourceforge.net/aalib/"
+SRC_URI="mirror://sourceforge/aa-project/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
+IUSE="X slang gpm static-libs"
+
+RDEPEND="
+ X? ( >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}] )
+ gpm? ( >=sys-libs/gpm-1.20.7-r2[${MULTILIB_USEDEP}] )
+ slang? ( >=sys-libs/slang-2.2.4-r1[${MULTILIB_USEDEP}] )
+ >=sys-libs/ncurses-5.9-r3:0=[${MULTILIB_USEDEP}]
+"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ X? ( x11-proto/xproto )
+"
+
+DOCS="ANNOUNCE AUTHORS ChangeLog NEWS README*"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-1.4_rc4-gentoo.patch
+ epatch "${FILESDIR}"/${PN}-1.4_rc4-m4.patch
+ epatch "${FILESDIR}"/${PN}-1.4_rc5-fix-protos.patch #224267
+ epatch "${FILESDIR}"/${PN}-1.4_rc5-fix-aarender.patch #214142
+ epatch "${FILESDIR}"/${PN}-1.4_rc5-tinfo.patch #468566
+ epatch "${FILESDIR}"/${PN}-1.4_rc6-key-down-OOB.patch
+
+ sed -i -e 's:#include <malloc.h>:#include <stdlib.h>:g' "${S}"/src/*.c
+
+ # Fix bug #165617.
+ use gpm || sed -i \
+ 's/gpm_mousedriver_test=yes/gpm_mousedriver_test=no/' "${S}/configure.in"
+
+ #467988 automake-1.13
+ mv configure.{in,ac} || die
+ sed -i 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/g' configure.ac || die
+
+ eautoreconf
+}
+
+src_configure() {
+ local myeconfargs=(
+ $(use_with slang slang-driver)
+ $(use_with X x11-driver)
+ $(use_enable static-libs static)
+ )
+
+ PKG_CONFIG=$(tc-getPKG_CONFIG) \
+ autotools-multilib_src_configure
+}
+
+src_install() {
+ autotools-multilib_src_install
+ use static-libs || prune_libtool_files --all
+}
diff --git a/media-libs/aalib/aalib-1.4_rc5-r8.ebuild b/media-libs/aalib/aalib-1.4_rc5-r8.ebuild
new file mode 100644
index 000000000000..ed1597ebd57f
--- /dev/null
+++ b/media-libs/aalib/aalib-1.4_rc5-r8.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit autotools-multilib eutils toolchain-funcs
+
+MY_P="${P/_/}"
+S="${WORKDIR}/${PN}-1.4.0"
+
+DESCRIPTION="A ASCII-Graphics Library"
+HOMEPAGE="http://aa-project.sourceforge.net/aalib/"
+SRC_URI="mirror://sourceforge/aa-project/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris"
+IUSE="X slang gpm static-libs"
+
+RDEPEND="
+ X? ( >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}] )
+ gpm? ( >=sys-libs/gpm-1.20.7-r2[${MULTILIB_USEDEP}] )
+ slang? ( >=sys-libs/slang-2.2.4-r1[${MULTILIB_USEDEP}] )
+ >=sys-libs/ncurses-5.9-r3:0=[${MULTILIB_USEDEP}]
+"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ X? ( x11-proto/xproto )
+"
+
+DOCS="ANNOUNCE AUTHORS ChangeLog NEWS README*"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-1.4_rc4-gentoo.patch
+ epatch "${FILESDIR}"/${PN}-1.4_rc4-m4.patch
+ epatch "${FILESDIR}"/${PN}-1.4_rc5-fix-protos.patch #224267
+ epatch "${FILESDIR}"/${PN}-1.4_rc5-fix-aarender.patch #214142
+ epatch "${FILESDIR}"/${PN}-1.4_rc5-tinfo.patch #468566
+ epatch "${FILESDIR}"/${PN}-1.4_rc5-key-down-OOB.patch
+ epatch "${FILESDIR}"/${PN}-1.4_rc5-more-protos.patch
+
+ sed -i -e 's:#include <malloc.h>:#include <stdlib.h>:g' "${S}"/src/*.c
+
+ # Fix bug #165617.
+ use gpm || sed -i \
+ 's/gpm_mousedriver_test=yes/gpm_mousedriver_test=no/' "${S}/configure.in"
+
+ #467988 automake-1.13
+ mv configure.{in,ac} || die
+ sed -i 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/g' configure.ac || die
+
+ epatch_user
+ eautoreconf
+}
+
+src_configure() {
+ local myeconfargs=(
+ $(use_with slang slang-driver)
+ $(use_with X x11-driver)
+ $(use_enable static-libs static)
+ )
+
+ PKG_CONFIG=$(tc-getPKG_CONFIG) \
+ autotools-multilib_src_configure
+}
+
+src_install() {
+ autotools-multilib_src_install
+ use static-libs || prune_libtool_files --all
+}
diff --git a/media-libs/aalib/files/aalib-1.4_rc4-gentoo.patch b/media-libs/aalib/files/aalib-1.4_rc4-gentoo.patch
new file mode 100644
index 000000000000..4eb4a391a5be
--- /dev/null
+++ b/media-libs/aalib/files/aalib-1.4_rc4-gentoo.patch
@@ -0,0 +1,35 @@
+Fix --with-gpm-mouse usage to not be so freaky. Don't patch
+configure.in that way we avoid having to run autotools.
+
+ AC_ARG_WITH(gpm-mouse,
+ - [ --with-gpm-mouse=base-dir Specifies the base gpm directory],
+ - if test x$withval = xyes
+ + [ --with-gpm-mouse=base-dir/no Specifies the base gpm directory],
+ + if test x$withval = xno
+ then
+ - AC_MSG_WARN(Usage is: --with-gpm-mouse=base-dir)
+ + gpm_mousedriver_test=no
+ else
+--- aalib-1.4.0/configure
++++ aalib-1.4.0/configure
+@@ -28,7 +28,7 @@
+ ac_help="$ac_help
+ --with-curses-driver=no/yes Used to disable/force curses driver"
+ ac_help="$ac_help
+- --with-gpm-mouse=base-dir Specifies the base gpm directory"
++ --with-gpm-mouse=base-dir/no Specifies the base gpm directory"
+ ac_help="$ac_help
+ --with-x use the X Window System"
+ ac_help="$ac_help
+@@ -1960,9 +1960,9 @@
+ # Check whether --with-gpm-mouse or --without-gpm-mouse was given.
+ if test "${with_gpm_mouse+set}" = set; then
+ withval="$with_gpm_mouse"
+- if test x$withval = xyes
++ if test x$withval = xno
+ then
+- echo "configure: warning: Usage is: --with-gpm-mouse=base-dir" 1>&2
++ gpm_mousedriver_test=no
+ else
+ LIBS="$LIBS -L$withval/lib -lgpm"
+ cat >> confdefs.h <<\EOF
diff --git a/media-libs/aalib/files/aalib-1.4_rc4-m4.patch b/media-libs/aalib/files/aalib-1.4_rc4-m4.patch
new file mode 100644
index 000000000000..3670f19125fc
--- /dev/null
+++ b/media-libs/aalib/files/aalib-1.4_rc4-m4.patch
@@ -0,0 +1,9 @@
+Get rid of aclocal warning:
+/usr/share/aclocal/aalib.m4:12: warning: underquoted definition of AM_PATH_AALIB
+--- aalib-1.4.0/aalib.m4
++++ aalib-1.4.0/aalib.m4
+@@ -11,3 +11,3 @@
+ dnl
+-AC_DEFUN(AM_PATH_AALIB,
++AC_DEFUN([AM_PATH_AALIB],
+ [dnl
diff --git a/media-libs/aalib/files/aalib-1.4_rc5-fix-aarender.patch b/media-libs/aalib/files/aalib-1.4_rc5-fix-aarender.patch
new file mode 100644
index 000000000000..97c59836b5c9
--- /dev/null
+++ b/media-libs/aalib/files/aalib-1.4_rc5-fix-aarender.patch
@@ -0,0 +1,34 @@
+This bug can be seen very clearly with e.g. mplayer -vo aa -monitoraspect 3
+in which case a big part of the picture is missing or there is even completely
+black output.
+
+The reason for this is, when drawing only a part of the picture via aarender()
+the first X coordinate is used for the loop count, but it is not applied to the
+destination and source image index, thus instead of (re)drawing the middle part
+of the image, it draws always the left part.
+
+Actual Results:
+only the left part of the image is draw (depending on the video, only the left
+black bar might be draw, so you will see nothing at all - if so use a slightly
+smaller value for -monitoraspect).
+
+Expected Results:
+All of the image should be drawn, and -monitoraspect should only squeeze the
+image, not cause part of it to miss.
+
+Gentoo-bug: http://bugs.gentoo.org/id=214142
+Reported-by: Reimar Döffinger
+Fixed-by: Reimar Döffinger
+--- src/aarender.c.orig 2008-03-18 23:55:32.000000000 +0100
++++ src/aarender.c 2008-03-18 23:55:50.000000000 +0100
+@@ -94,8 +94,8 @@
+ gamma = randomval / 2;
+ mval = (c->parameters[c->filltable[255]].p[4]);
+ for (y = y1; y < y2; y++) {
+- pos = 2 * y * wi;
+- pos1 = y * aa_scrwidth(c);
++ pos = 2 * (y * wi + x1);
++ pos1 = y * aa_scrwidth(c) + x1;
+ esum = 0;
+ for (x = x1; x < x2; x++) {
+ i1 = table[((((int) c->imagebuffer[pos])))];
diff --git a/media-libs/aalib/files/aalib-1.4_rc5-fix-protos.patch b/media-libs/aalib/files/aalib-1.4_rc5-fix-protos.patch
new file mode 100644
index 000000000000..b22738a25c6c
--- /dev/null
+++ b/media-libs/aalib/files/aalib-1.4_rc5-fix-protos.patch
@@ -0,0 +1,56 @@
+fix missing protos
+
+ * QA Notice: Package triggers severe warnings which indicate that it
+ * may exhibit random runtime failures.
+ * aainfo.c:12:2: warning: incompatible implicit declaration of built-in function 'exit'
+ * aainfo.c:17:2: warning: incompatible implicit declaration of built-in function 'exit'
+ * aatest.c:8:5: warning: incompatible implicit declaration of built-in function 'strcpy'
+ * aatest.c:11:2: warning: incompatible implicit declaration of built-in function 'exit'
+ * aatest.c:16:2: warning: incompatible implicit declaration of built-in function 'exit'
+ * aatest.c:21:2: warning: incompatible implicit declaration of built-in function 'exit'
+ * aafire.c:55:7: warning: incompatible implicit declaration of built-in function 'exit'
+ * aafire.c:68:3: warning: incompatible implicit declaration of built-in function 'exit'
+ * aafire.c:154:7: warning: incompatible implicit declaration of built-in function 'exit'
+ * aasavefont.c:10:2: warning: incompatible implicit declaration of built-in function 'exit'
+
+Gentoo-bug: http://bugs.gentoo.org/224267
+Reported-by: Peter Hüwe
+diff --git a/src/aafire.c b/src/aafire.c
+index 4f36149..5e41237 100644
+--- a/src/aafire.c
++++ b/src/aafire.c
+@@ -1,4 +1,5 @@
+ #include <stdio.h>
++#include <stdlib.h> /* exit() */
+ #include "aalib.h"
+
+ #define XSIZ aa_imgwidth(context)
+diff --git a/src/aainfo.c b/src/aainfo.c
+index d3f6d50..e24082d 100644
+--- a/src/aainfo.c
++++ b/src/aainfo.c
+@@ -1,4 +1,4 @@
+-
++#include <stdlib.h> /* exit() */
+ #include "aalib.h"
+ #include "aaint.h"
+ int main(int argc, char **argv)
+diff --git a/src/aasavefont.c b/src/aasavefont.c
+index b00e1e6..16591e8 100644
+--- a/src/aasavefont.c
++++ b/src/aasavefont.c
+@@ -1,3 +1,4 @@
++#include <stdlib.h> /* exit() */
+ #include "aalib.h"
+ int main(int argc, char **argv)
+ {
+diff --git a/src/aatest.c b/src/aatest.c
+index 9816f5d..ed0c2da 100644
+--- a/src/aatest.c
++++ b/src/aatest.c
+@@ -1,3 +1,5 @@
++#include <string.h> /* strcpy() */
++#include <stdlib.h> /* exit() */
+ #include "aalib.h"
+ int main(int argc, char **argv)
+ {
diff --git a/media-libs/aalib/files/aalib-1.4_rc5-key-down-OOB.patch b/media-libs/aalib/files/aalib-1.4_rc5-key-down-OOB.patch
new file mode 100644
index 000000000000..8078aa5b2708
--- /dev/null
+++ b/media-libs/aalib/files/aalib-1.4_rc5-key-down-OOB.patch
@@ -0,0 +1,23 @@
+diff -Naur a/src/aalinuxkbd.c b/src/aalinuxkbd.c
+--- a/src/aalinuxkbd.c 2016-12-19 12:40:26.660039735 +0100
++++ b/src/aalinuxkbd.c 2016-12-19 12:42:21.692045971 +0100
+@@ -114,6 +114,7 @@
+ static int vtswitch_allowed;
+
+ static char key_down[128];
++static size_t key_down_size = 128;
+ static int closed = 1;
+ static int mypid;
+
+@@ -165,10 +166,7 @@
+
+ static void blank_key_down(void)
+ {
+- int f;
+-
+- for (f = 0; f < NR_KEYS; f++)
+- key_down[f] = 0;
++ memset(key_down, 0, key_down_size);
+ }
+
+
diff --git a/media-libs/aalib/files/aalib-1.4_rc5-more-protos.patch b/media-libs/aalib/files/aalib-1.4_rc5-more-protos.patch
new file mode 100644
index 000000000000..58d37f1cb7c9
--- /dev/null
+++ b/media-libs/aalib/files/aalib-1.4_rc5-more-protos.patch
@@ -0,0 +1,55 @@
+diff --git a/src/aakbdreg.c b/src/aakbdreg.c
+index f4f8efb..b344dd8 100644
+--- a/src/aakbdreg.c
++++ b/src/aakbdreg.c
+@@ -1,2 +1,3 @@
+ #include <stdlib.h>
++#include <string.h> /* strcmp */
+ #include "config.h"
+diff --git a/src/aalinuxkbd.c b/src/aalinuxkbd.c
+index a5379bb..e816eb2 100644
+--- a/src/aalinuxkbd.c
++++ b/src/aalinuxkbd.c
+@@ -10,2 +10,3 @@
+ #include "config.h"
++#include <stdlib.h> /* atexit */
+ #ifdef LINUX_DRIVER
+@@ -135,3 +136,3 @@ static int get_keyb_map(void)
+
+- if (ioctl(tty_fd, KDGKBENT, (unsigned int) &keyb_ent))
++ if (ioctl(tty_fd, KDGKBENT, &keyb_ent))
+ return (0);
+@@ -144,3 +145,3 @@ static int get_keyb_map(void)
+
+- if (ioctl(tty_fd, KDGKBENT, (unsigned int) &keyb_ent))
++ if (ioctl(tty_fd, KDGKBENT, &keyb_ent))
+ return (0);
+@@ -200,3 +201,3 @@ static int rawmode_init(void)
+ if (!closed)
+- return;
++ return (1);
+ mypid = getpid();
+diff --git a/src/aamoureg.c b/src/aamoureg.c
+index bb55fe3..4a533b6 100644
+--- a/src/aamoureg.c
++++ b/src/aamoureg.c
+@@ -1,2 +1,3 @@
+ #include <stdlib.h>
++#include <string.h> /* strcmp */
+ #include "config.h"
+diff --git a/src/aaregist.c b/src/aaregist.c
+index 765155e..f9190ab 100644
+--- a/src/aaregist.c
++++ b/src/aaregist.c
+@@ -1,2 +1,3 @@
+ #include <stdlib.h>
++#include <string.h> /* strcmp */
+ #include "config.h"
+diff --git a/src/aaxkbd.c b/src/aaxkbd.c
+index dacc80f..c252cd9 100644
+--- a/src/aaxkbd.c
++++ b/src/aaxkbd.c
+@@ -7,2 +7,3 @@
+ #include <X11/Xlib.h>
++#include <X11/Xutil.h>
+ #include <X11/keysymdef.h>
diff --git a/media-libs/aalib/files/aalib-1.4_rc5-tinfo.patch b/media-libs/aalib/files/aalib-1.4_rc5-tinfo.patch
new file mode 100644
index 000000000000..daf9cde9f575
--- /dev/null
+++ b/media-libs/aalib/files/aalib-1.4_rc5-tinfo.patch
@@ -0,0 +1,19 @@
+diff --git a/configure.ac b/configure.ac
+index 66bcbc0..f15f06e 100644
+--- a/configure.in
++++ b/configure.in
+@@ -302,6 +302,14 @@ AC_DEFUN(AC_CURSES, [
+ if test "$curses_driver_test" = yes; then
+ if $search_ncurses
+ then
+ AC_CHECKING("location of curses")
++ PKG_CHECK_MODULES([CURSES], [ncurses], [
++ AC_MSG_RESULT([Found ncurses via pkg-config: CURSES_CFLAGS="$CURSES_CFLAGS" CURSES_LIBS="$CURSES_LIBS"])
++ CFLAGS="$CFLAGS $CURSES_CFLAGS"
++ LIBS="$LIBS $CURSES_LIBS"
++ AALIB_LIBS="$AALIB_LIBS $CURSES_LIBS"
++ search_ncurses=false
++ curses_driver=true
++ ], [])
+
+ AC_NCURSES(/usr/include, ncurses.h, , -I/usr/include/ncurses , "ncurses on /usr/include")
diff --git a/media-libs/aalib/metadata.xml b/media-libs/aalib/metadata.xml
new file mode 100644
index 000000000000..15c6c447bea7
--- /dev/null
+++ b/media-libs/aalib/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>media-video@gentoo.org</email>
+ </maintainer>
+ <maintainer type="person">
+ <email>slyfox@gentoo.org</email>
+ <name>Sergei Trofimovich</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">aa-project</remote-id>
+ </upstream>
+</pkgmetadata>