summary refs log tree commit diff
path: root/x11-misc/bgs/bgs-0.8.ebuild
blob: bf7d66b9bc4c102490ffdf49a25b8f2a87650933 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6

DESCRIPTION="Simple background setter based on imlib2"
HOMEPAGE="https://github.com/Gottox/bgs"
SRC_URI="https://github.com/Gottox/bgs/archive/v${PV}.tar.gz"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="xinerama"

DEPEND="media-libs/imlib2
	x11-libs/libX11
"
RDEPEND="${DEPEND}"

src_prepare() {
	default

	sed -e 's/PREFIX = \/usr\/local/PREFIX = \/usr/' -i config.mk || die

	if use xinerama; then
		sed -e '/XINERAMALIBS/d' -i config.mk || die
		sed -e '/XINERAMAFLAGS/d' -i config.mk || die
	fi
}

Consider giving Nix/NixOS a try! <3