mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
x11-plugins/wmgrabimage: EAPI7, use HTTPS, improve ebuild
This commit is contained in:
committed by
Bernard Cafarelli
parent
e6cd88f7dd
commit
08089c660e
@@ -1,5 +1,5 @@
|
||||
--- Makefile.orig 2001-05-27 19:02:18.000000000 +0000
|
||||
+++ Makefile 2004-06-22 21:05:36.711363520 +0000
|
||||
--- a/Makefile 2001-05-27 19:02:18.000000000 +0000
|
||||
+++ b/Makefile 2004-06-22 21:05:36.711363520 +0000
|
||||
@@ -30,5 +30,4 @@
|
||||
install:: wmGrabImage
|
||||
install -s -m 0755 wmGrabImage $(DESTDIR)/bin
|
||||
|
||||
49
x11-plugins/wmgrabimage/wmgrabimage-0.72-r2.ebuild
Normal file
49
x11-plugins/wmgrabimage/wmgrabimage-0.72-r2.ebuild
Normal file
@@ -0,0 +1,49 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit desktop
|
||||
|
||||
MY_PN=${PN/grabi/GrabI}
|
||||
|
||||
DESCRIPTION="wmGrabImage grabs an image from the WWW and displays it"
|
||||
HOMEPAGE="https://www.dockapps.net/wmgrabimage"
|
||||
SRC_URI="https://www.dockapps.net/download/${MY_PN}-${PV}.tgz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=">=net-misc/wget-1.9-r2
|
||||
>=media-gfx/imagemagick-5.5.7.15
|
||||
x11-libs/libX11
|
||||
x11-libs/libXext
|
||||
x11-libs/libXpm"
|
||||
DEPEND="${RDEPEND}
|
||||
x11-base/xorg-proto"
|
||||
|
||||
S=${WORKDIR}/${MY_PN}-${PV}/${MY_PN}
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${PN}-noman.patch )
|
||||
|
||||
src_prepare() {
|
||||
sed -i -e 's/-geom /-geometry /' GrabImage || die "sed failed."
|
||||
sed -i -e 's/install -s -m /install -m /' Makefile || die "sed failed."
|
||||
default
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake clean
|
||||
emake CFLAGS="${CFLAGS} -Wall" SYSTEM="${LDFLAGS}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dodir /usr/bin
|
||||
emake DESTDIR="${D}/usr" install
|
||||
|
||||
doman wmGrabImage.1
|
||||
domenu "${FILESDIR}"/${PN}.desktop
|
||||
dodoc ../{BUGS,CHANGES,HINTS,TODO}
|
||||
}
|
||||
Reference in New Issue
Block a user