You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
84 lines
1.9 KiB
84 lines
1.9 KiB
3 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
13 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
5 years ago
|
EAPI="7"
|
||
3 years ago
|
USE_RUBY="ruby26 ruby27 ruby30"
|
||
13 years ago
|
|
||
9 years ago
|
inherit ruby-ng toolchain-funcs
|
||
13 years ago
|
|
||
3 years ago
|
SRC_URI="https://dev.gentoo.org/~radhermit/dist/${P}.tar.gz"
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
13 years ago
|
|
||
|
DESCRIPTION="A manual tiling window manager"
|
||
5 years ago
|
HOMEPAGE="https://subforge.org/projects/subtle/wiki"
|
||
13 years ago
|
|
||
|
LICENSE="GPL-2"
|
||
|
SLOT="0"
|
||
|
IUSE="debug doc +xft xinerama xpm +xrandr +xtest"
|
||
5 years ago
|
RESTRICT="!test? ( test )"
|
||
13 years ago
|
|
||
|
RDEPEND="x11-libs/libX11
|
||
|
xft? ( x11-libs/libXft )
|
||
|
xinerama? ( x11-libs/libXinerama )
|
||
|
xpm? ( x11-libs/libXpm )
|
||
|
xtest? ( x11-libs/libXtst )
|
||
|
xrandr? ( x11-libs/libXrandr )"
|
||
5 years ago
|
DEPEND="${RDEPEND}"
|
||
|
BDEPEND="virtual/pkgconfig"
|
||
13 years ago
|
|
||
3 years ago
|
ruby_add_rdepend "dev-ruby/minitar"
|
||
7 years ago
|
ruby_add_bdepend "dev-ruby/rake doc? ( dev-ruby/rdoc )"
|
||
13 years ago
|
|
||
|
all_ruby_unpack() {
|
||
9 years ago
|
if [[ ${PV} == "9999" ]]; then
|
||
|
mercurial_src_unpack
|
||
|
else
|
||
|
default
|
||
|
fi
|
||
13 years ago
|
}
|
||
|
|
||
|
each_ruby_configure() {
|
||
|
local myconf
|
||
|
use debug && myconf+=" debug=yes" || myconf+=" debug=no"
|
||
|
use xft && myconf+=" xft=yes" || myconf+=" xft=no"
|
||
|
use xinerama && myconf+=" xinerama=yes" || myconf+=" xinerama=no"
|
||
|
use xpm && myconf+=" xpm=yes" || myconf+=" xpm=no"
|
||
|
use xtest && myconf+=" xtest=yes" || myconf+=" xtest=no"
|
||
|
use xrandr && myconf+=" xrandr=yes" || myconf+=" xrandr=no"
|
||
|
|
||
12 years ago
|
${RUBY} -S rake -v CC="$(tc-getCC)" destdir="${D}" ${myconf} config || die
|
||
13 years ago
|
}
|
||
|
|
||
|
each_ruby_compile() {
|
||
12 years ago
|
${RUBY} -S rake -v build || die
|
||
|
}
|
||
|
|
||
|
all_ruby_compile() {
|
||
|
use doc && { rake rdoc || die ; }
|
||
13 years ago
|
}
|
||
|
|
||
|
each_ruby_install() {
|
||
12 years ago
|
${RUBY} -S rake -v install || die
|
||
13 years ago
|
}
|
||
|
|
||
|
all_ruby_install() {
|
||
|
dodir /etc/X11/Sessions
|
||
|
cat <<-EOF > "${D}/etc/X11/Sessions/${PN}"
|
||
|
#!/bin/sh
|
||
|
exec /usr/bin/subtle
|
||
|
EOF
|
||
|
fperms a+x /etc/X11/Sessions/${PN}
|
||
|
|
||
12 years ago
|
insinto /usr/share/xsessions
|
||
|
doins data/${PN}.desktop
|
||
|
|
||
13 years ago
|
dodoc AUTHORS NEWS
|
||
|
|
||
5 years ago
|
use doc && dodoc -r html
|
||
13 years ago
|
}
|
||
|
|
||
|
pkg_postinst() {
|
||
|
elog "Note that surserver will currently not work since dev-ruby/datamapper"
|
||
12 years ago
|
elog "is not in the tree."
|
||
13 years ago
|
}
|