summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikle Kolyada <zlogene@gentoo.org>2019-02-15 22:39:28 +0300
committerMikle Kolyada <zlogene@gentoo.org>2019-02-15 22:39:51 +0300
commit3510c4511535a1cb22340f2016e164e1b17295b5 (patch)
treedaa625abc2b09004889ffac5340beee6a24dd30b
parentmedia-gfx/aview: amd64 stable wrt bug #676548 (diff)
downloadgentoo-3510c4511535a1cb22340f2016e164e1b17295b5.tar.gz
gentoo-3510c4511535a1cb22340f2016e164e1b17295b5.tar.bz2
gentoo-3510c4511535a1cb22340f2016e164e1b17295b5.zip
media-gfx/aview: Drop old
Signed-off-by: Mikle Kolyada <zlogene@gentoo.org> Package-Manager: Portage-2.3.51, Repoman-2.3.11
-rw-r--r--media-gfx/aview/aview-1.3.0_rc1-r1.ebuild39
-rw-r--r--media-gfx/aview/files/aview-1.3.0_rc1-filename-spaces.patch53
-rw-r--r--media-gfx/aview/files/aview-1.3.0_rc1-tmp_creation.patch46
3 files changed, 0 insertions, 138 deletions
diff --git a/media-gfx/aview/aview-1.3.0_rc1-r1.ebuild b/media-gfx/aview/aview-1.3.0_rc1-r1.ebuild
deleted file mode 100644
index d7700f08235..00000000000
--- a/media-gfx/aview/aview-1.3.0_rc1-r1.ebuild
+++ /dev/null
@@ -1,39 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=0
-
-inherit base
-
-MY_P=${P/_/}
-S=${WORKDIR}/${MY_P/rc*/}
-DESCRIPTION="An ASCII Image Viewer"
-SRC_URI="mirror://sourceforge/aa-project/${MY_P}.tar.gz"
-HOMEPAGE="http://aa-project.sourceforge.net/aview/"
-
-SLOT="0"
-LICENSE="GPL-2"
-KEYWORDS="amd64 ppc x86"
-IUSE=""
-
-DEPEND=">=media-libs/aalib-1.4_rc4"
-RDEPEND="${DEPEND}"
-
-PATCHES=(
- "${FILESDIR}"/${P}-filename-spaces.patch
- "${FILESDIR}"/${P}-tmp_creation.patch
- "${FILESDIR}"/${P}-includes.patch
-)
-
-src_compile() {
- econf || die
- make aview || die
-}
-
-src_install() {
- into /usr
- dobin aview asciiview
-
- doman *.1
- dodoc ANNOUNCE ChangeLog README TODO
-}
diff --git a/media-gfx/aview/files/aview-1.3.0_rc1-filename-spaces.patch b/media-gfx/aview/files/aview-1.3.0_rc1-filename-spaces.patch
deleted file mode 100644
index e42ed0d5c58..00000000000
--- a/media-gfx/aview/files/aview-1.3.0_rc1-filename-spaces.patch
+++ /dev/null
@@ -1,53 +0,0 @@
-diff -ur aview-1.3.0-orig/asciiview aview-1.3.0/asciiview
---- aview-1.3.0-orig/asciiview 2005-08-15 21:20:16.000000000 -0400
-+++ aview-1.3.0/asciiview 2005-08-15 21:20:19.000000000 -0400
-@@ -7,9 +7,9 @@
- }
- myconvert()
- {
-- if anytopnm $1 >/tmp/aview$$.pgm 2>/dev/null ; then
-+ if anytopnm "$1" >/tmp/aview$$.pgm 2>/dev/null ; then
- exit
-- elif convert -colorspace gray $1 pgm:- 2>/dev/null ; then
-+ elif convert -colorspace gray "$1" pgm:- 2>/dev/null ; then
- exit
- fi
- echo "Failed to convert file format to PNM by both convert and anytopnm" >&2
-@@ -44,8 +44,13 @@
- options="$options $1"
- shift
- ;;
-- *)
-- filenames="$filenames $1"
-+ *)
-+ if [ "$filenames" = "" ]
-+ then
-+ filenames=$1 #avoid leading null
-+ else
-+ filenames=$(echo -e "$filenames\000$1")
-+ fi
- shift
- ;;
- esac
-@@ -53,15 +58,16 @@
- trap clear 0
- mkfifo /tmp/aview$$.pgm
- outfile=/tmp/aview$$.pgm
--for name in $filenames ; do
--if test -r $name ; then
--case $name in
-+IFS=$(echo -e "\000")
-+echo $filenames | while read name; do
-+if test -r "$name" ; then
-+case "$name" in
- *.fli | *.lfc | *.flic )
- PATH="$PATH:."
-- aaflip $options $name
-+ aaflip $options "$name"
- ;;
- *)
-- myconvert $name >/tmp/aview$$.pgm &
-+ myconvert "$name" >/tmp/aview$$.pgm &
- pid=$!
- PATH="$PATH:."
- aview $options /tmp/aview$$.pgm
diff --git a/media-gfx/aview/files/aview-1.3.0_rc1-tmp_creation.patch b/media-gfx/aview/files/aview-1.3.0_rc1-tmp_creation.patch
deleted file mode 100644
index f792e8bfebb..00000000000
--- a/media-gfx/aview/files/aview-1.3.0_rc1-tmp_creation.patch
+++ /dev/null
@@ -1,46 +0,0 @@
-Fix insecure temporary file creation, see:
-https://bugs.gentoo.org/show_bug.cgi?id=235808
-
-Index: aview-1.3.0/asciiview
-===================================================================
---- aview-1.3.0.orig/asciiview
-+++ aview-1.3.0/asciiview
-@@ -3,11 +3,11 @@
- clear()
- {
- kill $! 2>/dev/null
-- rm -f /tmp/aview$$.pgm 2>/dev/null
-+ rm -rf $tmpdir 2>/dev/null
- }
- myconvert()
- {
-- if anytopnm "$1" >/tmp/aview$$.pgm 2>/dev/null ; then
-+ if anytopnm "$1" >"$2" 2>/dev/null ; then
- exit
- elif convert -colorspace gray "$1" pgm:- 2>/dev/null ; then
- exit
-@@ -56,8 +56,9 @@ while [ "$1" != "" ]; do
- esac
- done
- trap clear 0
--mkfifo /tmp/aview$$.pgm
--outfile=/tmp/aview$$.pgm
-+tmpdir=`mktemp -t -d`
-+outfile=$tmpdir/aview.pgm
-+mkfifo $outfile
- IFS=$(echo -e "\000")
- echo $filenames | while read name; do
- if test -r "$name" ; then
-@@ -67,10 +68,10 @@ case "$name" in
- aaflip $options "$name"
- ;;
- *)
-- myconvert "$name" >/tmp/aview$$.pgm &
-+ myconvert "$name" "$outfile" >"$outfile" &
- pid=$!
- PATH="$PATH:."
-- aview $options /tmp/aview$$.pgm
-+ aview $options $outfile
- kill $pid 2>/dev/null
- esac
- else